@alauda-fe/dynamic-plugin-shared 0.0.3-alpha.0 → 0.0.3-alpha.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda-fe/dynamic-plugin-shared",
3
- "version": "0.0.3-alpha.0",
3
+ "version": "0.0.3-alpha.1",
4
4
  "peerDependencies": {
5
5
  "@alauda-fe/i18n": "1.0.4",
6
6
  "@alauda/chart": "^0.1.11",
@@ -1,9 +1,9 @@
1
1
  // stylelint-disable no-descending-specificity
2
- @import 'node_modules/@alauda/ui/theme/var';
3
- @import 'node_modules/@alauda/ui/theme/mixin';
4
- @import 'node_modules/@alauda/ui/theme/pattern';
5
- @import 'libs/dynamic-plugin-sdk/styles/mixins';
6
- @import './var';
2
+ @use 'node_modules/@alauda/ui/theme/var' as *;
3
+ @use 'node_modules/@alauda/ui/theme/mixin' as *;
4
+ @use 'node_modules/@alauda/ui/theme/pattern' as *;
5
+ @use 'libs/dynamic-plugin-sdk/styles/mixins' as *;
6
+ @use './var' as shared-var;
7
7
 
8
8
  @mixin array-form-table {
9
9
  .acl-array-form-table {
@@ -250,7 +250,9 @@
250
250
 
251
251
  @mixin detail-page-fullheight($gap: 0) {
252
252
  display: block;
253
- height: calc(100vh - (#{$page-top}) - #{111px + 16px + 20px + $gap});
253
+ height: calc(
254
+ 100vh - (#{shared-var.$page-top}) - #{111px + 16px + 20px + $gap}
255
+ );
254
256
 
255
257
  > .aui-card {
256
258
  height: 100%;
@@ -267,13 +269,13 @@
267
269
  // 通用创建/更新页,撑屏内容高度
268
270
  @mixin create-page-fullheight__card($hasSample: false) {
269
271
  $height: calc(
270
- 100vh - (#{$page-top}) - #{20px + 32px + 16px + 1px + 16px + 20px + 20px +
271
- $fixed-form-footer-height}
272
+ 100vh - (#{shared-var.$page-top}) - #{20px + 32px + 16px + 1px + 16px + 20px +
273
+ 20px + shared-var.$fixed-form-footer-height}
272
274
  );
273
275
  @if $hasSample == true {
274
276
  $height: calc(
275
277
  100vh -
276
- (#{$page-top}) -
278
+ (#{shared-var.$page-top}) -
277
279
  #{20px +
278
280
  32px +
279
281
  16px +
@@ -282,7 +284,7 @@
282
284
  20px +
283
285
  20px +
284
286
  15px +
285
- $fixed-form-footer-height}
287
+ shared-var.$fixed-form-footer-height}
286
288
  );
287
289
  }
288
290
 
@@ -300,7 +302,8 @@
300
302
  // 创建页,无card-header时撑屏内容高度
301
303
  @mixin create-page-fullheight__content {
302
304
  height: calc(
303
- 100vh - (#{$page-top}) - #{20px + 20px + 20px + $fixed-form-footer-height}
305
+ 100vh - (#{shared-var.$page-top}) - #{20px + 20px + 20px +
306
+ shared-var.$fixed-form-footer-height}
304
307
  );
305
308
  }
306
309
 
@@ -2420,7 +2420,7 @@ declare const compareVersion: {
2420
2420
  gte: (v1: string, v2: string) => boolean;
2421
2421
  cmp: (v1: string, v2: string, operator: CompareOperator) => boolean;
2422
2422
  };
2423
- declare const compareMinorVersion: (v1: string, v2: string) => 0 | 1 | -1;
2423
+ declare const compareMinorVersion: (v1: string, v2: string) => 1 | 0 | -1;
2424
2424
 
2425
2425
  type AvailableResourceType = (typeof RESOURCE_MAC_TYPES)[number];
2426
2426
  interface ResourceControl {
@@ -2858,7 +2858,7 @@ declare class ScrollToFirstInvalidDirective {
2858
2858
  readonly cdkScrollable: CdkScrollable;
2859
2859
  labelOffset: number;
2860
2860
  aclScrollToFirstInvalid: boolean | '';
2861
- get containerEl(): (Window & typeof globalThis) | HTMLElement;
2861
+ get containerEl(): HTMLElement | (Window & typeof globalThis);
2862
2862
  onSubmit(): void;
2863
2863
  scrollToFirstInvalid(): void;
2864
2864
  getFirstInvalidInput(): HTMLElement;
@@ -3850,7 +3850,7 @@ declare class BaseNestedFormControl<V, M = V> implements AfterViewInit, OnDestro
3850
3850
  protected asyncValidator: boolean;
3851
3851
  protected cdr: ChangeDetectorRef;
3852
3852
  protected destroy$$: Subject<void>;
3853
- protected hostForm: FormGroupDirective | NgForm;
3853
+ protected hostForm: NgForm | FormGroupDirective;
3854
3854
  constructor();
3855
3855
  ngAfterViewInit(): void;
3856
3856
  ngOnDestroy(): void;
@@ -4936,11 +4936,11 @@ declare class K8SResourcePagedList<R extends KubernetesResource = KubernetesReso
4936
4936
  loading$: Observable<boolean>;
4937
4937
  items$: Observable<R[]>;
4938
4938
  totalItems$: Observable<number>;
4939
- loadError$: Observable<HttpErrorResponse | Status>;
4939
+ loadError$: Observable<Status | HttpErrorResponse>;
4940
4940
  $loading: Signal<boolean>;
4941
4941
  $items: Signal<R[]>;
4942
4942
  $totalItems: Signal<number>;
4943
- $loadError: Signal<HttpErrorResponse | Status>;
4943
+ $loadError: Signal<Status | HttpErrorResponse>;
4944
4944
  constructor(config: PagedListConfig<R, P>);
4945
4945
  reload(): void;
4946
4946
  private sourceLoadState;
@@ -5168,7 +5168,7 @@ declare class TableComponent<Item extends object, Context = TableUtilService<Ite
5168
5168
  }
5169
5169
 
5170
5170
  declare function defaultFilter<T extends string | number>(value: T, filterValue: T, _item: unknown, name: string): boolean;
5171
- declare function defaultSorter<T>(a: T, b: T): 0 | 1 | -1;
5171
+ declare function defaultSorter<T>(a: T, b: T): 1 | 0 | -1;
5172
5172
 
5173
5173
  declare class NamespaceBadgeComponent {
5174
5174
  name: string;
@@ -5457,7 +5457,7 @@ declare class ArrayFormTableComponent implements OnDestroy {
5457
5457
  addDisabled: boolean | '';
5458
5458
  actionColumnDivider: boolean | '';
5459
5459
  showZeroState: boolean;
5460
- get formDirective(): FormGroupDirective | NgForm;
5460
+ get formDirective(): NgForm | FormGroupDirective;
5461
5461
  /**
5462
5462
  * 自定义是否展示错误内容
5463
5463
  * 例如 control 是 FormGroup,只有在内部子 control 错误时才需要展示错误内容