@alauda-fe/common 1.2.0 → 1.3.0-beta.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 (92) hide show
  1. package/api/api-gateway.service.d.ts +1 -11
  2. package/api/public-api.d.ts +0 -1
  3. package/array-form-table/key-value-form/component.d.ts +3 -2
  4. package/async-data/async-data.module.d.ts +6 -0
  5. package/authorization/public-api.d.ts +1 -0
  6. package/authorization/state.service.d.ts +13 -20
  7. package/authorization/storage-token.d.ts +11 -0
  8. package/chart/common/tooltip/tooltip.component.d.ts +2 -1
  9. package/core/abstract/base-form-container.d.ts +1 -1
  10. package/core/constants/tokens.d.ts +0 -18
  11. package/core/module.d.ts +16 -15
  12. package/core/services/k8s-util.service.d.ts +0 -5
  13. package/core/types/k8s/crd.d.ts +2 -1
  14. package/core/utils/common.d.ts +2 -1
  15. package/esm2022/api/api-gateway.service.mjs +10 -20
  16. package/esm2022/api/product.service.mjs +4 -4
  17. package/esm2022/api/project-api.service.mjs +4 -4
  18. package/esm2022/api/public-api.mjs +1 -2
  19. package/esm2022/array-form-table/key-value-form/component.mjs +65 -43
  20. package/esm2022/async-data/async-data.module.mjs +17 -5
  21. package/esm2022/authorization/public-api.mjs +2 -1
  22. package/esm2022/authorization/state.service.mjs +86 -115
  23. package/esm2022/authorization/storage-token.mjs +85 -0
  24. package/esm2022/business/resource-select/exports/cluster-selector/component.mjs +2 -2
  25. package/esm2022/business/resource-select/exports/mesh-group-selector/component.mjs +2 -2
  26. package/esm2022/business/resource-select/exports/namespace-selector/component.mjs +2 -2
  27. package/esm2022/business/resource-select/exports/project-selector/component.mjs +2 -2
  28. package/esm2022/business/resource-select/module.mjs +9 -9
  29. package/esm2022/chart/chart.module.mjs +1 -1
  30. package/esm2022/chart/common/tooltip/tooltip.component.mjs +5 -2
  31. package/esm2022/core/abstract/base-form-container.mjs +1 -1
  32. package/esm2022/core/abstract/base-nested-form-control.mjs +2 -2
  33. package/esm2022/core/constants/tokens.mjs +1 -46
  34. package/esm2022/core/module.mjs +10 -3
  35. package/esm2022/core/pipes/page-env.pipe.mjs +6 -3
  36. package/esm2022/core/services/feature-gate.service.mjs +3 -3
  37. package/esm2022/core/services/k8s-util.service.mjs +1 -13
  38. package/esm2022/core/types/k8s/crd.mjs +1 -1
  39. package/esm2022/core/utils/common.mjs +11 -9
  40. package/esm2022/disabled-container/disabled-container.component.mjs +2 -2
  41. package/esm2022/form/validators/utils.mjs +37 -34
  42. package/esm2022/graph-canvas/graph-store.service.mjs +2 -2
  43. package/esm2022/help-document/service.mjs +3 -2
  44. package/esm2022/lazy-component/lazy-load-component.mjs +138 -0
  45. package/esm2022/lazy-component/public-api.mjs +14 -0
  46. package/esm2022/lazy-component/visibility.service.mjs +37 -0
  47. package/esm2022/list-display/component.mjs +159 -0
  48. package/esm2022/list-display/public-api.mjs +2 -0
  49. package/esm2022/metric-chart/metric-chart.component.mjs +2 -2
  50. package/esm2022/multi-search/action-input/component.mjs +2 -2
  51. package/esm2022/notification/feedback-notification/component.mjs +10 -4
  52. package/esm2022/notification/public-api.mjs +1 -2
  53. package/esm2022/page-scaffold/navigation/lottie-icons/animation-data.mjs +3 -1
  54. package/esm2022/page-scaffold/navigation/lottie-icons/animations/dashboard.json +1 -0
  55. package/esm2022/page-scaffold/navigation/nav-menu/nav-menu.types.mjs +1 -1
  56. package/esm2022/page-scaffold/page-header/common-layout/product-select/component.mjs +10 -13
  57. package/esm2022/page-scaffold/page-header/help-menu/component/component.mjs +3 -3
  58. package/esm2022/public-api.mjs +4 -4
  59. package/esm2022/table/component.mjs +5 -5
  60. package/esm2022/table/types.mjs +1 -1
  61. package/esm2022/translate/i18n-config.mjs +17 -5
  62. package/esm2022/view-chart/view-chart.module.mjs +1 -1
  63. package/esm2022/view-zchart/custom-template/dropdown-legend.mjs +3 -3
  64. package/esm2022/view-zchart/legend/legend.component.mjs +8 -8
  65. package/esm2022/view-zchart/units.mjs +13 -1
  66. package/esm2022/view-zchart/view-zchart.component.mjs +2 -2
  67. package/esm2022/view-zchart/view-zchart.module.mjs +1 -1
  68. package/esm2022/widget/foldable-item-in-table/component.mjs +2 -2
  69. package/esm2022/widget/search-panel/component.mjs +4 -4
  70. package/esm2022/xterm/xterm-terminal/xterm-terminal.component.mjs +66 -69
  71. package/esm2022/xterm/xterm.component.mjs +11 -3
  72. package/form/validators/utils.d.ts +7 -0
  73. package/lazy-component/lazy-load-component.d.ts +25 -0
  74. package/lazy-component/public-api.d.ts +9 -0
  75. package/lazy-component/visibility.service.d.ts +11 -0
  76. package/list-display/component.d.ts +15 -0
  77. package/list-display/public-api.d.ts +1 -0
  78. package/notification/feedback-notification/component.d.ts +1 -5
  79. package/notification/public-api.d.ts +0 -1
  80. package/package.json +2 -2
  81. package/page-scaffold/navigation/nav-menu/nav-menu.types.d.ts +1 -0
  82. package/page-scaffold/page-header/common-layout/product-select/component.d.ts +1 -2
  83. package/public-api.d.ts +3 -3
  84. package/styles/global.scss +6 -0
  85. package/styles/reset-browser.scss +4 -0
  86. package/styles/tailwind-preset.scss +1 -1
  87. package/table/types.d.ts +2 -0
  88. package/translate/i18n-config.d.ts +1 -1
  89. package/view-zchart/custom-template/dropdown-legend.d.ts +1 -1
  90. package/view-zchart/units.d.ts +3 -0
  91. package/xterm/xterm-terminal/xterm-terminal.component.d.ts +4 -3
  92. package/xterm/xterm.component.d.ts +4 -2
@@ -0,0 +1,25 @@
1
+ import { ElementRef, OnInit, OnDestroy, TemplateRef } from '@angular/core';
2
+ import { VisibilityService } from './visibility.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class LazyContentDirective {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<LazyContentDirective, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LazyContentDirective, "[aclLazyContent]", never, {}, {}, never, never, true, never>;
7
+ }
8
+ export declare class LazyPlaceholderDirective {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<LazyPlaceholderDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LazyPlaceholderDirective, "[aclLazyPlaceholder]", never, {}, {}, never, never, true, never>;
11
+ }
12
+ export declare class LazyComponent implements OnInit, OnDestroy {
13
+ private readonly el;
14
+ private readonly visibilityService;
15
+ $$isVisible: import("@angular/core").WritableSignal<boolean>;
16
+ template: TemplateRef<unknown>;
17
+ placeholder: TemplateRef<unknown>;
18
+ destroyOnHide: boolean;
19
+ private subscription;
20
+ constructor(el: ElementRef, visibilityService: VisibilityService);
21
+ ngOnInit(): void;
22
+ ngOnDestroy(): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<LazyComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<LazyComponent, "acl-lazy-component", never, { "destroyOnHide": { "alias": "destroyOnHide"; "required": false; }; }, {}, ["template", "placeholder"], never, true, never>;
25
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * @module lazy-component
4
+ * @preferred
5
+ */
6
+ import { LazyContentDirective, LazyPlaceholderDirective, LazyComponent } from './lazy-load-component';
7
+ export * from './lazy-load-component';
8
+ export * from './visibility.service';
9
+ export declare const LAZY_COMPONENTS: readonly [typeof LazyPlaceholderDirective, typeof LazyContentDirective, typeof LazyComponent];
@@ -0,0 +1,11 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class VisibilityService {
5
+ private readonly observer;
6
+ private readonly visibilityChangeSubject;
7
+ observe(element: ElementRef): Observable<boolean>;
8
+ unobserve(element: ElementRef): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisibilityService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<VisibilityService>;
11
+ }
@@ -0,0 +1,15 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ListDisplayComponent<T> {
4
+ data: T[];
5
+ threshold: number;
6
+ mode: 'total' | 'more';
7
+ direction: 'row' | 'column';
8
+ template: TemplateRef<any>;
9
+ childTemplate: TemplateRef<any>;
10
+ templateContext(item: T): T & {
11
+ $implicit: T;
12
+ };
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<ListDisplayComponent<any>, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<ListDisplayComponent<any>, "acl-list-display", never, { "data": { "alias": "data"; "required": false; }; "threshold": { "alias": "threshold"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "template": { "alias": "template"; "required": false; }; }, {}, ["childTemplate"], never, true, never>;
15
+ }
@@ -0,0 +1 @@
1
+ export * from './component';
@@ -1,7 +1,3 @@
1
- /**
2
- * @packageDocumentation
3
- * @module notification
4
- */
5
1
  import { EventEmitter } from '@angular/core';
6
2
  import * as i0 from "@angular/core";
7
3
  export declare class FeedbackNotificationComponent {
@@ -12,6 +8,6 @@ export declare class FeedbackNotificationComponent {
12
8
  onPrimary: EventEmitter<void>;
13
9
  onSecondary: EventEmitter<void>;
14
10
  static ɵfac: i0.ɵɵFactoryDeclaration<FeedbackNotificationComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<FeedbackNotificationComponent, "ng-component", never, { "primary": { "alias": "primary"; "required": false; }; "secondary": { "alias": "secondary"; "required": false; }; "content": { "alias": "content"; "required": false; }; "pre": { "alias": "pre"; "required": false; }; }, { "onPrimary": "onPrimary"; "onSecondary": "onSecondary"; }, never, never, false, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<FeedbackNotificationComponent, "ng-component", never, { "primary": { "alias": "primary"; "required": false; }; "secondary": { "alias": "secondary"; "required": false; }; "content": { "alias": "content"; "required": false; }; "pre": { "alias": "pre"; "required": false; }; }, { "onPrimary": "onPrimary"; "onSecondary": "onSecondary"; }, never, never, true, never>;
16
12
  }
17
13
  export type FeedbackNotificationProps = Partial<Pick<FeedbackNotificationComponent, 'primary' | 'secondary' | 'content' | 'pre'>>;
@@ -7,6 +7,5 @@
7
7
  export * from './errors-mapper';
8
8
  export * from './feedback-notification/component';
9
9
  export * from './helpers';
10
- export * from './notification-util.module';
11
10
  export * from './notification-util.service';
12
11
  export * from './resource-error.interceptor';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda-fe/common",
3
- "version": "1.2.0",
3
+ "version": "1.3.0-beta.0",
4
4
  "description": "Alauda frontend team common codes.",
5
5
  "author": "Alauda Frontend",
6
6
  "license": "MIT",
@@ -12,7 +12,7 @@
12
12
  "ui"
13
13
  ],
14
14
  "peerDependencies": {
15
- "@alauda-fe/i18n": "1.0.3",
15
+ "@alauda-fe/i18n": "1.0.4",
16
16
  "@alauda/chart": "^0.1.11",
17
17
  "@alauda/code-editor": "^5.1.0",
18
18
  "@alauda/ui": "^7.2.0",
@@ -10,6 +10,7 @@ export interface NavItemConfig {
10
10
  animJson?: string;
11
11
  stage?: 'Alpha' | 'Beta';
12
12
  divider?: boolean;
13
+ negate?: boolean;
13
14
  children?: NavItemConfig[];
14
15
  routerLink?: Array<string | StringMap>;
15
16
  routerLinkQueryParams?: StringMap;
@@ -9,7 +9,6 @@ import * as i0 from "@angular/core";
9
9
  export declare const PRODUCT_ICON_MAP: StringMap;
10
10
  export declare class ProductSelectComponent implements OnInit {
11
11
  private readonly store;
12
- private readonly idTokenKey;
13
12
  private readonly router;
14
13
  private readonly k8sPermission;
15
14
  private readonly productSelectService;
@@ -22,7 +21,7 @@ export declare class ProductSelectComponent implements OnInit {
22
21
  portalProduct$: import("rxjs").Observable<ProductEntry>;
23
22
  disabled$: import("rxjs").Observable<boolean>;
24
23
  isPortal: boolean;
25
- constructor(store: CommonLayoutStoreService, idTokenKey: string, router: Router, k8sPermission: K8sPermissionService, productSelectService: ProductSelectService);
24
+ constructor(store: CommonLayoutStoreService, router: Router, k8sPermission: K8sPermissionService, productSelectService: ProductSelectService);
26
25
  ngOnInit(): void;
27
26
  jump(entrypoint: string, ssoEnabled: boolean, target?: string): void;
28
27
  navigateToPortal(event: MouseEvent): void;
package/public-api.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from './business/public-api';
5
5
  export * from './code/public-api';
6
6
  export * from './disabled-container/public-api';
7
7
  export * from './k8s-resource-list/public-api';
8
+ export * from './lazy-component/public-api';
8
9
  export * from './license/public-api';
9
10
  export * from './notification/public-api';
10
11
  export * from './permission/public-api';
@@ -13,10 +14,10 @@ export * from './core/public-api';
13
14
  export * from './help-document/public-api';
14
15
  export * from './array-form-table/public-api';
15
16
  export * from './widget/public-api';
16
- export * from './abnormal-page/public-api';
17
17
  export * from './view-chart/public-api';
18
18
  export * from './view-zchart/public-api';
19
19
  export * from './metric-chart/public-api';
20
+ export * from './abnormal-page/public-api';
20
21
  export * from './mutable/public-api';
21
22
  export * from './pie-derivative-chart/public-api';
22
23
  export * from './overview-banner/public-api';
@@ -33,10 +34,9 @@ export * from './searchable-selector/public-api';
33
34
  export * from './grid-layout/public-api';
34
35
  export * from './editable-text/public-api';
35
36
  export * from './window-channel/public-api';
36
- export * from './a-chart/public-api';
37
- export * from './a-metric-chart/public-api';
38
37
  export * from './custom-columns-setting/public-api';
39
38
  export * from './iframe-config/public-api';
40
39
  export * from './effect-directive/public-api';
41
40
  export * from './xterm/public-api';
42
41
  export * from './k8s-shared/public-api';
42
+ export * from './list-display/public-api';
@@ -887,3 +887,9 @@ ul.acl-tooltip-ul {
887
887
  margin-top: 4px;
888
888
  }
889
889
  }
890
+
891
+ .aui-code-editor-toolbar {
892
+ .aui-checkbox {
893
+ height: use-var(line-height-m);
894
+ }
895
+ }
@@ -18,6 +18,10 @@
18
18
  }
19
19
  }
20
20
 
21
+ em {
22
+ font-style: italic;
23
+ }
24
+
21
25
  ol {
22
26
  list-style: decimal;
23
27
  margin-left: 16px;
@@ -1 +1 @@
1
- /*! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\!tw-visible{visibility:visible!important}.tw-invisible{visibility:hidden}.tw-fixed{position:fixed}.tw-absolute{position:absolute}.tw-relative{position:relative}.tw-left-0{left:0}.tw-right-\[16px\]{right:16px}.tw-top-0{top:0}.tw-top-\[12px\]{top:12px}.tw-mb-12{margin-bottom:12px}.tw-mb-20{margin-bottom:20px}.tw-mb-4{margin-bottom:4px}.tw-ml-6{margin-left:6px}.tw-ml-\[-4px\]{margin-left:-4px}.tw-ml-\[4px\]{margin-left:4px}.tw-mr-16{margin-right:16px}.tw-mr-4{margin-right:4px}.tw-mr-6{margin-right:6px}.tw-mr-8{margin-right:8px}.tw-mr-\[4px\]{margin-right:4px}.tw-mt-0{margin-top:0}.tw-mt-8{margin-top:8px}.tw-line-clamp-2{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;overflow:hidden}.tw-block{display:block}.tw-flex{display:flex}.tw-hidden{display:none}.tw-h-0{height:0}.tw-h-\[100\%\]{height:100%}.tw-h-\[100vh\]{height:100vh}.tw-h-\[200px\]{height:200px}.tw-h-\[22px\]{height:22px}.tw-h-full{height:100%}.tw-min-h-\[360px\]{min-height:360px}.tw-w-\[100\%\]{width:100%}.tw-w-\[200px\]{width:200px}.tw-w-full{width:100%}.tw-min-w-\[160px\]{min-width:160px}.tw-min-w-\[220px\]{min-width:220px}.tw-min-w-\[260px\]{min-width:260px}.tw-max-w-\[400px\]{max-width:400px}.tw-max-w-\[45\%\]{max-width:45%}.tw-flex-1{flex:1 1 0%}.tw-flex-shrink-0{flex-shrink:0}.tw-cursor-pointer{cursor:pointer}.tw-select-none{user-select:none}.tw-list-disc{list-style-type:disc}.tw-flex-row{flex-direction:row}.tw-flex-col{flex-direction:column}.tw-items-start{align-items:flex-start}.tw-items-center{align-items:center}.tw-justify-start{justify-content:flex-start}.tw-justify-end{justify-content:flex-end}.tw-justify-center{justify-content:center}.tw-overflow-hidden{overflow:hidden}.tw-overflow-y-auto{overflow-y:auto}.tw-overflow-x-hidden{overflow-x:hidden}.tw-text-ellipsis{text-overflow:ellipsis}.tw-break-words{overflow-wrap:break-word}.tw-break-all{word-break:break-all}.tw-bg-n-10{background-color:rgb(var(--aui-color-n-10))}.tw-bg-n-8{background-color:rgb(var(--aui-color-n-8))}.tw-bg-p-6{background-color:rgb(var(--aui-color-p-6))}.tw-p-12{padding:12px}.tw-p-\[12px_16px\]{padding:12px 16px}.tw-py-8{padding-bottom:8px;padding-top:8px}.tw-pl-8{padding-left:8px}.tw-pr-16{padding-right:16px}.tw-text-center{text-align:center}.\!tw-text-s{font-size:var(--aui-font-size-s)!important}.tw-text-l{font-size:var(--aui-font-size-l)}.tw-text-m{font-size:var(--aui-font-size-m)}.tw-text-s{font-size:var(--aui-font-size-s)}.tw-text-xl{font-size:var(--aui-font-size-xl)}.tw-font-bold{font-weight:var(--aui-font-weight-bold)}.tw-font-bolder{font-weight:var(--aui-font-weight-bolder)}.tw-leading-m{line-height:var(--aui-line-height-m)}.\!tw-text-n-2{color:rgb(var(--aui-color-n-2))!important}.tw-text-help-text{color:rgb(var(--aui-color-help-text))}.tw-text-main-text{color:rgb(var(--aui-color-main-text))}.tw-text-n-1{color:rgb(var(--aui-color-n-1))}.tw-text-n-2{color:rgb(var(--aui-color-n-2))}.tw-text-n-4{color:rgb(var(--aui-color-n-4))}.tw-text-p-2{color:rgb(var(--aui-color-p-2))}.tw-text-primary{color:rgb(var(--aui-color-primary))}.tw-text-red{color:rgb(var(--aui-color-red))}.tw-size-\[16px\]{height:16px;width:16px}.tw-icon-l{font-size:var(--aui-icon-size-l)}.tw-icon-m{font-size:var(--aui-icon-size-m)}.tw-leading-text-xl{font-size:var(--aui-font-size-xl);line-height:var(--aui-line-height-xl)}.tw-required-mark:before{--tw-text-opacity:1;--tw-content:"*";color:rgb(235 98 98/var(--tw-text-opacity));content:var(--tw-content);margin-right:var(--aui-spacing-s)}.tw-text-overflow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hover\:\!tw-text-primary:hover{color:rgb(var(--aui-color-primary))!important}.hover\:tw-text-primary:hover{color:rgb(var(--aui-color-primary))}html:not([lang|=zh]) .lang-not-zh\:\!tw-w-\[230px\]{width:230px!important}
1
+ /*! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\!tw-visible{visibility:visible!important}.tw-invisible{visibility:hidden}.tw-fixed{position:fixed}.tw-absolute{position:absolute}.tw-relative{position:relative}.tw-left-0{left:0}.tw-right-\[16px\]{right:16px}.tw-top-0{top:0}.tw-top-\[12px\]{top:12px}.tw-z-10{z-index:10}.tw-mb-12{margin-bottom:12px}.tw-mb-20{margin-bottom:20px}.tw-mb-4{margin-bottom:4px}.tw-mb-8{margin-bottom:8px}.tw-ml-6{margin-left:6px}.tw-ml-8{margin-left:8px}.tw-ml-\[-4px\]{margin-left:-4px}.tw-ml-\[4px\]{margin-left:4px}.tw-mr-16{margin-right:16px}.tw-mr-4{margin-right:4px}.tw-mr-6{margin-right:6px}.tw-mr-8{margin-right:8px}.tw-mr-\[4px\]{margin-right:4px}.tw-mt-0{margin-top:0}.tw-mt-20{margin-top:20px}.tw-mt-8{margin-top:8px}.tw-line-clamp-2{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;overflow:hidden}.tw-block{display:block}.\!tw-flex{display:flex!important}.tw-flex{display:flex}.tw-hidden{display:none}.tw-h-0{height:0}.tw-h-1\/2{height:50%}.tw-h-\[100\%\]{height:100%}.tw-h-\[100vh\]{height:100vh}.tw-h-\[200px\]{height:200px}.tw-h-\[22px\]{height:22px}.tw-h-full{height:100%}.tw-min-h-0{min-height:0}.tw-min-h-\[360px\]{min-height:360px}.tw-w-\[100\%\]{width:100%}.tw-w-\[200px\]{width:200px}.tw-w-full{width:100%}.tw-min-w-\[160px\]{min-width:160px}.tw-min-w-\[220px\]{min-width:220px}.tw-min-w-\[260px\]{min-width:260px}.tw-max-w-\[400px\]{max-width:400px}.tw-max-w-\[45\%\]{max-width:45%}.tw-flex-1{flex:1 1 0%}.tw-flex-shrink-0{flex-shrink:0}.tw-cursor-pointer{cursor:pointer}.tw-select-none{user-select:none}.tw-list-disc{list-style-type:disc}.tw-flex-row{flex-direction:row}.tw-flex-col{flex-direction:column}.tw-flex-wrap{flex-wrap:wrap}.tw-items-start{align-items:flex-start}.tw-items-center{align-items:center}.tw-justify-start{justify-content:flex-start}.tw-justify-end{justify-content:flex-end}.tw-justify-center{justify-content:center}.tw-justify-between{justify-content:space-between}.tw-overflow-hidden{overflow:hidden}.tw-overflow-y-auto{overflow-y:auto}.tw-overflow-x-hidden{overflow-x:hidden}.tw-overflow-ellipsis,.tw-text-ellipsis{text-overflow:ellipsis}.tw-break-words{overflow-wrap:break-word}.tw-break-all{word-break:break-all}.tw-bg-n-10{background-color:rgb(var(--aui-color-n-10))}.tw-bg-n-8{background-color:rgb(var(--aui-color-n-8))}.tw-bg-p-6{background-color:rgb(var(--aui-color-p-6))}.tw-p-12{padding:12px}.tw-p-\[12px_16px\]{padding:12px 16px}.tw-px-16{padding-left:16px;padding-right:16px}.tw-py-8{padding-bottom:8px;padding-top:8px}.tw-pl-8{padding-left:8px}.tw-pr-16{padding-right:16px}.tw-text-center{text-align:center}.\!tw-text-s{font-size:var(--aui-font-size-s)!important}.tw-text-l{font-size:var(--aui-font-size-l)}.tw-text-m{font-size:var(--aui-font-size-m)}.tw-text-s{font-size:var(--aui-font-size-s)}.tw-text-xl{font-size:var(--aui-font-size-xl)}.tw-font-bold{font-weight:var(--aui-font-weight-bold)}.tw-font-bolder{font-weight:var(--aui-font-weight-bolder)}.tw-leading-m{line-height:var(--aui-line-height-m)}.\!tw-text-n-2{color:rgb(var(--aui-color-n-2))!important}.tw-text-help-text{color:rgb(var(--aui-color-help-text))}.tw-text-main-text{color:rgb(var(--aui-color-main-text))}.tw-text-n-1{color:rgb(var(--aui-color-n-1))}.tw-text-n-2{color:rgb(var(--aui-color-n-2))}.tw-text-n-4{color:rgb(var(--aui-color-n-4))}.tw-text-p-2{color:rgb(var(--aui-color-p-2))}.tw-text-primary{color:rgb(var(--aui-color-primary))}.tw-text-red{color:rgb(var(--aui-color-red))}.tw-size-\[16px\]{height:16px;width:16px}.tw-icon-l{font-size:var(--aui-icon-size-l)}.tw-icon-m{font-size:var(--aui-icon-size-m)}.tw-leading-text-xl{font-size:var(--aui-font-size-xl);line-height:var(--aui-line-height-xl)}.tw-required-mark:before{--tw-text-opacity:1;--tw-content:"*";color:rgb(235 98 98/var(--tw-text-opacity));content:var(--tw-content);margin-right:var(--aui-spacing-s)}.tw-text-overflow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hover\:\!tw-text-primary:hover{color:rgb(var(--aui-color-primary))!important}.hover\:tw-text-primary:hover{color:rgb(var(--aui-color-primary))}html:not([lang|=zh]) .lang-not-zh\:\!tw-w-\[230px\]{width:230px!important}
package/table/types.d.ts CHANGED
@@ -22,6 +22,8 @@ export interface TableColumnDef<Item extends object, Context = TableUtilService<
22
22
  ellipsis?: boolean;
23
23
  class?: string | Record<string, boolean>;
24
24
  style?: string | Record<string, string | number>;
25
+ sticky?: boolean;
26
+ stickyEnd?: boolean;
25
27
  extra?: Extra;
26
28
  }
27
29
  export interface TableColumnNameExtra {
@@ -8,5 +8,5 @@ export declare function loadAvailableLanguages(): Promise<Array<{
8
8
  name: string;
9
9
  }>>;
10
10
  export declare function getAvailableLanguages(): DeepReadonly<typeof __availableLanguages>;
11
- export declare function getUserLanguage(): string;
11
+ export declare function getUserLanguage(availableLanguages?: string[]): string;
12
12
  export {};
@@ -7,5 +7,5 @@ export declare class LegendDropdownComponent {
7
7
  noData: boolean;
8
8
  isCard: boolean;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<LegendDropdownComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<LegendDropdownComponent, "acl-legend-dropdown", never, { "data": { "alias": "data"; "required": false; }; "legendTemplate": { "alias": "legendTemplate"; "required": false; }; "noData": { "alias": "noData"; "required": false; }; "isCard": { "alias": "isCard"; "required": false; }; }, {}, never, never, false, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<LegendDropdownComponent, "acl-view-legend-dropdown", never, { "data": { "alias": "data"; "required": false; }; "legendTemplate": { "alias": "legendTemplate"; "required": false; }; "noData": { "alias": "noData"; "required": false; }; "isCard": { "alias": "isCard"; "required": false; }; }, {}, never, never, false, never>;
11
11
  }
@@ -1,2 +1,5 @@
1
+ import { ConfigType } from 'dayjs';
1
2
  import type { DataItem } from 'zz-chart';
2
3
  export declare function getMethodValue(methods: string[], items: DataItem['values'], defaultKey?: string): Record<string, number>;
4
+ export declare function pointFormat(value: number): string;
5
+ export declare function handleDateFormat(date: ConfigType, format?: string): string;
@@ -1,6 +1,7 @@
1
1
  import { DialogRef, DialogService, SearchComponent, ThemeService } from '@alauda/ui';
2
2
  import { ChangeDetectorRef, TemplateRef } from '@angular/core';
3
- import { XtermComponent } from '../xterm.component';
3
+ import { Terminal } from 'xterm';
4
+ import { SearchAddon } from 'xterm-addon-search';
4
5
  import * as i0 from "@angular/core";
5
6
  export interface XtermTerminalActionConfig {
6
7
  find?: boolean;
@@ -20,9 +21,10 @@ export declare class XtermTerminalComponent {
20
21
  private readonly theme;
21
22
  logs: string | string[];
22
23
  actionConfig: XtermTerminalActionConfig;
23
- logXtermComponent: XtermComponent;
24
24
  searchInputRef: SearchComponent;
25
25
  viewTemplateRef: TemplateRef<any>;
26
+ terminal: Terminal;
27
+ searchAddon: SearchAddon;
26
28
  searching: boolean;
27
29
  searchKeyword: string;
28
30
  fullscreenDialog: DialogRef<XtermTerminalComponent>;
@@ -38,7 +40,6 @@ export declare class XtermTerminalComponent {
38
40
  export(): void;
39
41
  private logsStringify;
40
42
  copy(): void;
41
- write(logs: string | string[]): void;
42
43
  static ɵfac: i0.ɵɵFactoryDeclaration<XtermTerminalComponent, [null, null, { optional: true; }]>;
43
44
  static ɵcmp: i0.ɵɵComponentDeclaration<XtermTerminalComponent, "acl-xterm-terminal", never, { "logs": { "alias": "logs"; "required": false; }; "actionConfig": { "alias": "actionConfig"; "required": false; }; }, {}, never, ["[aclXtermTerminalToolbarLeft]", "[aclXtermTerminalToolbarRight]"], true, never>;
44
45
  }
@@ -1,5 +1,5 @@
1
1
  import { Theme } from '@alauda/ui';
2
- import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
2
+ import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
3
3
  import { Observable } from 'rxjs';
4
4
  import { ITerminalOptions, Terminal } from 'xterm';
5
5
  import { FitAddon } from 'xterm-addon-fit';
@@ -11,6 +11,8 @@ export declare class XtermComponent implements AfterViewInit, OnDestroy {
11
11
  logs$: Observable<string[] | string>;
12
12
  logs: string[] | string;
13
13
  terminalWrapper: ElementRef;
14
+ searchAddonInit: EventEmitter<SearchAddon>;
15
+ terminalInit: EventEmitter<Terminal>;
14
16
  terminal: Terminal;
15
17
  searchAddon: SearchAddon;
16
18
  fitAddon: FitAddon;
@@ -24,5 +26,5 @@ export declare class XtermComponent implements AfterViewInit, OnDestroy {
24
26
  bindCopyEvent(): void;
25
27
  setTheme(theme?: Theme): void;
26
28
  static ɵfac: i0.ɵɵFactoryDeclaration<XtermComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<XtermComponent, "acl-xterm", never, { "theme": { "alias": "theme"; "required": false; }; "logs": { "alias": "logs"; "required": false; }; }, {}, never, never, true, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<XtermComponent, "acl-xterm", never, { "theme": { "alias": "theme"; "required": false; }; "logs": { "alias": "logs"; "required": false; }; }, { "searchAddonInit": "searchAddonInit"; "terminalInit": "terminalInit"; }, never, never, true, never>;
28
30
  }