@alauda-fe/dynamic-plugin-shared 0.0.4-alpha.4 → 0.0.4-alpha.5

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.4-alpha.4",
3
+ "version": "0.0.4-alpha.5",
4
4
  "peerDependencies": {
5
5
  "@alauda/code-editor": "^5.1.0",
6
6
  "@alauda-fe/dynamic-plugin-sdk": "0.0.1-alpha.21",
package/styles/lib.scss CHANGED
@@ -1 +1 @@
1
- .tw-mb-12{margin-bottom:12px}.tw-mb-4{margin-bottom:4px}.tw-ml-6{margin-left:6px}.tw-ml-8{margin-left:8px}.tw-ml-\[-4px\]{margin-left:-4px}.tw-mr-4{margin-right:4px}.tw-mr-8{margin-right:8px}.tw-mt-0{margin-top:0}.tw-flex{display:flex}.tw-h-\[22px\]{height:22px}.tw-h-\[8px\]{height:8px}.tw-w-full{width:100%}.tw-min-w-\[160px\]{min-width:160px}.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-flex-col{flex-direction:column}.tw-items-center{align-items:center}.tw-justify-end{justify-content:flex-end}.tw-justify-between{justify-content:space-between}.tw-overflow-hidden{overflow:hidden}.tw-text-ellipsis{text-overflow:ellipsis}.tw-bg-p-6{background-color:rgb(var(--aui-color-p-6))}.tw-text-center{text-align:center}.\!tw-text-s{font-size:var(--aui-font-size-s)!important}.tw-text-m{font-size:var(--aui-font-size-m)}.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-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-red{color:rgb(var(--aui-color-red))}.tw-icon-m{font-size:var(--aui-icon-size-m)}.hover\:tw-text-primary:hover{color:rgb(var(--aui-color-primary))}
1
+ .tw-mb-12{margin-bottom:12px}.tw-mb-4{margin-bottom:4px}.tw-ml-6{margin-left:6px}.tw-ml-8{margin-left:8px}.tw-ml-\[-4px\]{margin-left:-4px}.tw-mr-4{margin-right:4px}.tw-mt-0{margin-top:0}.tw-flex{display:flex}.tw-h-\[22px\]{height:22px}.tw-h-\[8px\]{height:8px}.tw-w-full{width:100%}.tw-min-w-\[160px\]{min-width:160px}.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-flex-col{flex-direction:column}.tw-items-center{align-items:center}.tw-justify-end{justify-content:flex-end}.tw-justify-between{justify-content:space-between}.tw-overflow-hidden{overflow:hidden}.tw-text-ellipsis{text-overflow:ellipsis}.tw-bg-p-6{background-color:rgb(var(--aui-color-p-6))}.tw-text-center{text-align:center}.\!tw-text-s{font-size:var(--aui-font-size-s)!important}.tw-text-m{font-size:var(--aui-font-size-m)}.tw-text-main-text{color:rgb(var(--aui-color-main-text))}.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-red{color:rgb(var(--aui-color-red))}.tw-icon-m{font-size:var(--aui-icon-size-m)}.hover\:tw-text-primary:hover{color:rgb(var(--aui-color-primary))}
@@ -2,7 +2,7 @@
2
2
  @use 'node_modules/@alauda/ui/theme/var' as *;
3
3
  @use 'node_modules/@alauda/ui/theme/mixin' as *;
4
4
  @use 'node_modules/@alauda/ui/theme/pattern' as *;
5
- @use 'libs/dynamic-plugin-sdk/styles/mixins' as *;
5
+ @use 'node_modules/@alauda-fe/dynamic-plugin-sdk/styles/mixins' as *;
6
6
  @use './var' as shared-var;
7
7
 
8
8
  @mixin array-form-table {
@@ -2459,7 +2459,7 @@ declare const compareVersion: {
2459
2459
  gte: (v1: string, v2: string) => boolean;
2460
2460
  cmp: (v1: string, v2: string, operator: CompareOperator) => boolean;
2461
2461
  };
2462
- declare const compareMinorVersion: (v1: string, v2: string) => 0 | 1 | -1;
2462
+ declare const compareMinorVersion: (v1: string, v2: string) => 1 | 0 | -1;
2463
2463
 
2464
2464
  type AvailableResourceType = (typeof RESOURCE_MAC_TYPES)[number];
2465
2465
  interface ResourceControl {
@@ -2900,7 +2900,7 @@ declare class ScrollToFirstInvalidDirective {
2900
2900
  readonly cdkScrollable: CdkScrollable;
2901
2901
  labelOffset: number;
2902
2902
  aclScrollToFirstInvalid: boolean | '';
2903
- get containerEl(): (Window & typeof globalThis) | HTMLElement;
2903
+ get containerEl(): HTMLElement | (Window & typeof globalThis);
2904
2904
  onSubmit(): void;
2905
2905
  scrollToFirstInvalid(): void;
2906
2906
  getFirstInvalidInput(): HTMLElement;
@@ -3892,7 +3892,7 @@ declare class BaseNestedFormControl<V, M = V> implements AfterViewInit, OnDestro
3892
3892
  protected asyncValidator: boolean;
3893
3893
  protected cdr: ChangeDetectorRef;
3894
3894
  protected destroy$$: Subject<void>;
3895
- protected hostForm: FormGroupDirective | NgForm;
3895
+ protected hostForm: NgForm | FormGroupDirective;
3896
3896
  constructor();
3897
3897
  ngAfterViewInit(): void;
3898
3898
  ngOnDestroy(): void;
@@ -4978,11 +4978,11 @@ declare class K8SResourcePagedList<R extends KubernetesResource = KubernetesReso
4978
4978
  loading$: Observable<boolean>;
4979
4979
  items$: Observable<R[]>;
4980
4980
  totalItems$: Observable<number>;
4981
- loadError$: Observable<HttpErrorResponse | Status>;
4981
+ loadError$: Observable<Status | HttpErrorResponse>;
4982
4982
  $loading: Signal<boolean>;
4983
4983
  $items: Signal<R[]>;
4984
4984
  $totalItems: Signal<number>;
4985
- $loadError: Signal<HttpErrorResponse | Status>;
4985
+ $loadError: Signal<Status | HttpErrorResponse>;
4986
4986
  constructor(config: PagedListConfig<R, P>);
4987
4987
  reload(): void;
4988
4988
  private sourceLoadState;
@@ -5197,7 +5197,7 @@ declare class TableComponent<Item extends object, Context = TableUtilService<Ite
5197
5197
  }
5198
5198
 
5199
5199
  declare function defaultFilter<T extends string | number>(value: T, filterValue: T, _item: unknown, name: string): boolean;
5200
- declare function defaultSorter<T>(a: T, b: T): 0 | 1 | -1;
5200
+ declare function defaultSorter<T>(a: T, b: T): 1 | 0 | -1;
5201
5201
 
5202
5202
  declare class NamespaceBadgeComponent {
5203
5203
  name: string;
@@ -5698,7 +5698,7 @@ declare class ArrayFormTableComponent implements OnDestroy {
5698
5698
  addDisabled: boolean | '';
5699
5699
  actionColumnDivider: boolean | '';
5700
5700
  showZeroState: boolean;
5701
- get formDirective(): FormGroupDirective | NgForm;
5701
+ get formDirective(): NgForm | FormGroupDirective;
5702
5702
  /**
5703
5703
  * 自定义是否展示错误内容
5704
5704
  * 例如 control 是 FormGroup,只有在内部子 control 错误时才需要展示错误内容