@alauda-fe/common 1.4.30-beta.1 → 1.4.31-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.
- package/api/platform-ui.service.d.ts +0 -6
- package/business/resource-select/exports/cluster-list/component.d.ts +1 -1
- package/core/types/k8s/raw.d.ts +2 -1
- package/core/types/resource-definitions.d.ts +1 -1
- package/core/utils/version.d.ts +1 -1
- package/esm2022/api/platform-ui.service.mjs +1 -7
- package/esm2022/business/resource-select/exports/namespace-list/component.mjs +2 -2
- package/esm2022/code/yaml-examples.mjs +141 -57
- package/esm2022/code/yaml-sidebar/component.mjs +4 -4
- package/esm2022/core/abstract/base-form-container.mjs +3 -2
- package/esm2022/core/types/k8s/raw.mjs +1 -1
- package/esm2022/license/license-api.mjs +28 -24
- package/esm2022/license/license.service.mjs +25 -34
- package/esm2022/metric-chart/utils.mjs +4 -2
- package/esm2022/page-scaffold/navigation/breadcrumb/breadcrumb.component.mjs +37 -36
- package/esm2022/page-scaffold/page-header/component.mjs +18 -7
- package/esm2022/page-scaffold/page-header/header-notify/component/header-notify.component.mjs +25 -26
- package/esm2022/page-scaffold/page-header/help-menu/component/component.mjs +2 -2
- package/esm2022/view-zchart/units.mjs +2 -2
- package/license/license-api.d.ts +5 -8
- package/license/license.service.d.ts +2 -8
- package/package.json +1 -1
- package/page-scaffold/page-header/component.d.ts +1 -0
- package/styles/markdown-body.scss +2 -0
- package/table/component.d.ts +1 -1
- package/table/helper.d.ts +1 -1
|
@@ -265,11 +265,11 @@ export class HelpMenuComponent {
|
|
|
265
265
|
} if (rf & 2) {
|
|
266
266
|
const menu_r10 = i0.ɵɵreference(3);
|
|
267
267
|
i0.ɵɵproperty("auiDropdown", menu_r10);
|
|
268
|
-
} }, styles: [".menu[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:2px;color:var(--acl-page-header-text-color);cursor:pointer}.menu[_ngcontent-%COMP%]:hover, .menu.isActive[_ngcontent-%COMP%]{color:#fff;background-color:rgb(var(--aui-color-primary))}.menu__icon[_ngcontent-%COMP%]{font-size:16px}.menu__pointer[_ngcontent-%COMP%]{font-size:12px;margin-left:-2px}.platform__version[_ngcontent-%COMP%]{color:#fff;font-size:18px;padding:32px 24px;background-image:url(^images/platform_version_bg.svg)}.platform__version-title[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:14px}.platform__version-title__name[_ngcontent-%COMP%]{margin-right:8px;line-height:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.platform__version-title__name-version[_ngcontent-%COMP%]{font-size:24px;display:flex;flex-wrap:wrap;flex:1;overflow:hidden;align-items:baseline;line-height:1}.platform__version-title__toolTip[_ngcontent-%COMP%]{height:16px;color:rgb(var(--aui-color-primary));margin-bottom:10px;font-size:12px;line-height:14px;padding:1px 8px;background-color:#ffffffd9;border-radius:99px 95px 95px 99px}.platform__version-title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;width:42px;height:42px}.platform__version-title[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{height:32px;width:1px;opacity:.66;background-color:rgb(var(--aui-color-n-10));margin:0 12px}.platform__component-info[_ngcontent-%COMP%]{color:rgb(var(--aui-color-n-4));padding:20px 20px 0}.platform__component-info[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:14px;margin-bottom:12px}.platform__component-info[_ngcontent-%COMP%] .component-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,calc((100% - 34px) / 3));grid-gap:16px;max-height:312px;overflow-y:auto}.platform__component-info[_ngcontent-%COMP%] .component-item[_ngcontent-%COMP%]{display:flex;align-items:center;padding:16px;border-radius:2px;background-color:rgb(var(--aui-color-n-9))}.platform__component-info[_ngcontent-%COMP%] .component-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:36px;height:36px}.platform__component-info[_ngcontent-%COMP%] .component-item-info[_ngcontent-%COMP%]{margin-left:12px;color:rgb(var(--aui-color-n-1));overflow:hidden}.platform__component-info[_ngcontent-%COMP%] .component-item-info__name[_ngcontent-%COMP%], .platform__component-info[_ngcontent-%COMP%] .component-item-info__version[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform__component-info[_ngcontent-%COMP%] .component-item-info__name[_ngcontent-%COMP%]{font-size:var(--aui-font-size-xl);font-weight:var(--aui-font-weight-bolder);line-height:var(--aui-line-height-xl);margin-bottom:2px}.platform__component-info[_ngcontent-%COMP%] .component-item-info__version[_ngcontent-%COMP%]{font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m)}.platform__action[_ngcontent-%COMP%]{padding:20px;display:flex;justify-content:flex-end}.no-component[_ngcontent-%COMP%]{height:60px;border:dashed 1px rgb(var(--aui-color-n-7));background-color:rgb(var(--aui-color-n-10));display:flex;align-items:center;justify-content:center}.loading[_ngcontent-%COMP%]{height:312px;display:flex;justify-content:center;align-items:center} .acl-page-header__tooltip--small .aui-menu-item:hover{color:rgb(var(--aui-color-primary))} .acl-help-menu-item:not(:hover) .aui-icon{color:rgb(var(--aui-color-n-2))}"], changeDetection: 0 }); }
|
|
268
|
+
} }, styles: [".menu[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:2px;color:var(--acl-page-header-text-color);cursor:pointer}.menu[_ngcontent-%COMP%]:hover, .menu.isActive[_ngcontent-%COMP%]{color:#fff;background-color:rgb(var(--aui-color-primary))}.menu__icon[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:16px}.menu__pointer[_ngcontent-%COMP%]{font-size:12px;margin-left:-2px}.platform__version[_ngcontent-%COMP%]{color:#fff;font-size:18px;padding:32px 24px;background-image:url(^images/platform_version_bg.svg)}.platform__version-title[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:14px}.platform__version-title__name[_ngcontent-%COMP%]{margin-right:8px;line-height:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.platform__version-title__name-version[_ngcontent-%COMP%]{font-size:24px;display:flex;flex-wrap:wrap;flex:1;overflow:hidden;align-items:baseline;line-height:1}.platform__version-title__toolTip[_ngcontent-%COMP%]{height:16px;color:rgb(var(--aui-color-primary));margin-bottom:10px;font-size:12px;line-height:14px;padding:1px 8px;background-color:#ffffffd9;border-radius:99px 95px 95px 99px}.platform__version-title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;width:42px;height:42px}.platform__version-title[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{height:32px;width:1px;opacity:.66;background-color:rgb(var(--aui-color-n-10));margin:0 12px}.platform__component-info[_ngcontent-%COMP%]{color:rgb(var(--aui-color-n-4));padding:20px 20px 0}.platform__component-info[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:14px;margin-bottom:12px}.platform__component-info[_ngcontent-%COMP%] .component-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,calc((100% - 34px) / 3));grid-gap:16px;max-height:312px;overflow-y:auto}.platform__component-info[_ngcontent-%COMP%] .component-item[_ngcontent-%COMP%]{display:flex;align-items:center;padding:16px;border-radius:2px;background-color:rgb(var(--aui-color-n-9))}.platform__component-info[_ngcontent-%COMP%] .component-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:36px;height:36px}.platform__component-info[_ngcontent-%COMP%] .component-item-info[_ngcontent-%COMP%]{margin-left:12px;color:rgb(var(--aui-color-n-1));overflow:hidden}.platform__component-info[_ngcontent-%COMP%] .component-item-info__name[_ngcontent-%COMP%], .platform__component-info[_ngcontent-%COMP%] .component-item-info__version[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform__component-info[_ngcontent-%COMP%] .component-item-info__name[_ngcontent-%COMP%]{font-size:var(--aui-font-size-xl);font-weight:var(--aui-font-weight-bolder);line-height:var(--aui-line-height-xl);margin-bottom:2px}.platform__component-info[_ngcontent-%COMP%] .component-item-info__version[_ngcontent-%COMP%]{font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m)}.platform__action[_ngcontent-%COMP%]{padding:20px;display:flex;justify-content:flex-end}.no-component[_ngcontent-%COMP%]{height:60px;border:dashed 1px rgb(var(--aui-color-n-7));background-color:rgb(var(--aui-color-n-10));display:flex;align-items:center;justify-content:center}.loading[_ngcontent-%COMP%]{height:312px;display:flex;justify-content:center;align-items:center} .acl-page-header__tooltip--small .aui-menu-item:hover{color:rgb(var(--aui-color-primary))} .acl-help-menu-item:not(:hover) .aui-icon{color:rgb(var(--aui-color-n-2))}"], changeDetection: 0 }); }
|
|
269
269
|
}
|
|
270
270
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HelpMenuComponent, [{
|
|
271
271
|
type: Component,
|
|
272
|
-
args: [{ selector: 'acl-help-menu', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"menu\"\n [auiDropdown]=\"menu\"\n auiDropdownClass=\"acl-page-header__tooltip--small\"\n>\n <aui-icon\n icon=\"question_circle\"\n class=\"menu__icon\"\n ></aui-icon>\n</div>\n\n<ng-template #menu>\n <aui-menu>\n <aui-menu-item\n *ngIf=\"helpDocPath\"\n class=\"acl-help-menu-item\"\n [aclHelpDoc]=\"helpDocPath\"\n aclHelpDocTarget=\"blank\"\n >\n <aui-icon icon=\"help_doc\"></aui-icon>\n <span class=\"tw-ml-[4px]\">{{ 'help_doc' | translate }}</span>\n </aui-menu-item>\n\n <aui-menu-item\n class=\"acl-help-menu-item\"\n [divide]=\"true\"\n (click)=\"viewPlatformInfo(platformInfo)\"\n >\n <aui-icon icon=\"info_circle\"></aui-icon>\n <span>{{ 'about_platform' | translate }}</span>\n </aui-menu-item>\n\n <ng-content></ng-content>\n </aui-menu>\n</ng-template>\n\n<ng-template #platformInfo>\n <aui-dialog-content class=\"platform-about-dialog\">\n <div class=\"platform__version\">\n <div class=\"platform__version-title\">\n <img src=\"/console/api/v1/cm/ui-logos/logo\" />\n <span class=\"line\"></span>\n <div class=\"platform__version-title__name-version\">\n <span class=\"platform__version-title__name\">{{\n platformName ? (platformName | translate) : 'ACP'\n }}</span>\n <span\n style=\"margin-right: 8px\"\n *ngIf=\"isRuntime\"\n >\n {{ 'runtime_edition' | translate }}\n </span>\n <span\n [auiTooltip]=\"platformStageVersion\"\n [auiTooltipContext]=\"{ version: platformVersion?.all }\"\n auiTooltipPosition=\"end\"\n auiTooltipType=\"empty\"\n >\n {{ platformVersion?.main }}</span\n >\n </div>\n </div>\n <div class=\"platform__version-desc\">{{ platformTip | translate }}</div>\n </div>\n <div class=\"platform__component-info\">\n <div class=\"label\">\n {{ 'platform_related_open_source_component_info' | translate }}\n </div>\n <ng-container *ngIf=\"!loading; else loadingTmp\">\n <div\n class=\"component-container\"\n *ngIf=\"componentVersionList?.length; else noComponent\"\n >\n <div\n class=\"component-item\"\n *ngFor=\"let componentVersion of componentVersionList\"\n >\n <img [src]=\"'icons/' + componentVersion.name + '.svg'\" />\n <div class=\"component-item-info\">\n <div\n class=\"component-item-info__name\"\n [title]=\"componentVersion.name\"\n >\n {{ componentVersion.name }}\n </div>\n <div\n class=\"component-item-info__version\"\n [title]=\"componentVersion.version\"\n >\n {{ componentVersion.version }}\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <div class=\"platform__action\">\n <button\n aui-button\n (click)=\"close()\"\n >\n {{ 'close' | translate }}\n </button>\n </div>\n </aui-dialog-content>\n</ng-template>\n\n<ng-template #noComponent>\n <div class=\"no-component\">{{ 'no_open_source_components' | translate }}</div>\n</ng-template>\n\n<ng-template #loadingTmp>\n <div class=\"loading\">\n <acl-loading-mask [loading]=\"loading\"></acl-loading-mask>\n </div>\n</ng-template>\n\n<ng-template\n #platformStageVersion\n let-version=\"version\"\n>\n <div class=\"platform__version-title__toolTip\">{{ version }}</div>\n</ng-template>\n", styles: [".menu{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:2px;color:var(--acl-page-header-text-color);cursor:pointer}.menu:hover,.menu.isActive{color:#fff;background-color:rgb(var(--aui-color-primary))}.menu__icon{font-size:16px}.menu__pointer{font-size:12px;margin-left:-2px}.platform__version{color:#fff;font-size:18px;padding:32px 24px;background-image:url(^images/platform_version_bg.svg)}.platform__version-title{display:flex;align-items:center;margin-bottom:14px}.platform__version-title__name{margin-right:8px;line-height:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.platform__version-title__name-version{font-size:24px;display:flex;flex-wrap:wrap;flex:1;overflow:hidden;align-items:baseline;line-height:1}.platform__version-title__toolTip{height:16px;color:rgb(var(--aui-color-primary));margin-bottom:10px;font-size:12px;line-height:14px;padding:1px 8px;background-color:#ffffffd9;border-radius:99px 95px 95px 99px}.platform__version-title img{max-width:240px;width:42px;height:42px}.platform__version-title .line{height:32px;width:1px;opacity:.66;background-color:rgb(var(--aui-color-n-10));margin:0 12px}.platform__component-info{color:rgb(var(--aui-color-n-4));padding:20px 20px 0}.platform__component-info .label{font-size:14px;margin-bottom:12px}.platform__component-info .component-container{display:grid;grid-template-columns:repeat(3,calc((100% - 34px) / 3));grid-gap:16px;max-height:312px;overflow-y:auto}.platform__component-info .component-item{display:flex;align-items:center;padding:16px;border-radius:2px;background-color:rgb(var(--aui-color-n-9))}.platform__component-info .component-item img{width:36px;height:36px}.platform__component-info .component-item-info{margin-left:12px;color:rgb(var(--aui-color-n-1));overflow:hidden}.platform__component-info .component-item-info__name,.platform__component-info .component-item-info__version{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform__component-info .component-item-info__name{font-size:var(--aui-font-size-xl);font-weight:var(--aui-font-weight-bolder);line-height:var(--aui-line-height-xl);margin-bottom:2px}.platform__component-info .component-item-info__version{font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m)}.platform__action{padding:20px;display:flex;justify-content:flex-end}.no-component{height:60px;border:dashed 1px rgb(var(--aui-color-n-7));background-color:rgb(var(--aui-color-n-10));display:flex;align-items:center;justify-content:center}.loading{height:312px;display:flex;justify-content:center;align-items:center}::ng-deep .acl-page-header__tooltip--small .aui-menu-item:hover{color:rgb(var(--aui-color-primary))}::ng-deep .acl-help-menu-item:not(:hover) .aui-icon{color:rgb(var(--aui-color-n-2))}\n"] }]
|
|
272
|
+
args: [{ selector: 'acl-help-menu', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"menu\"\n [auiDropdown]=\"menu\"\n auiDropdownClass=\"acl-page-header__tooltip--small\"\n>\n <aui-icon\n icon=\"question_circle\"\n class=\"menu__icon\"\n ></aui-icon>\n</div>\n\n<ng-template #menu>\n <aui-menu>\n <aui-menu-item\n *ngIf=\"helpDocPath\"\n class=\"acl-help-menu-item\"\n [aclHelpDoc]=\"helpDocPath\"\n aclHelpDocTarget=\"blank\"\n >\n <aui-icon icon=\"help_doc\"></aui-icon>\n <span class=\"tw-ml-[4px]\">{{ 'help_doc' | translate }}</span>\n </aui-menu-item>\n\n <aui-menu-item\n class=\"acl-help-menu-item\"\n [divide]=\"true\"\n (click)=\"viewPlatformInfo(platformInfo)\"\n >\n <aui-icon icon=\"info_circle\"></aui-icon>\n <span>{{ 'about_platform' | translate }}</span>\n </aui-menu-item>\n\n <ng-content></ng-content>\n </aui-menu>\n</ng-template>\n\n<ng-template #platformInfo>\n <aui-dialog-content class=\"platform-about-dialog\">\n <div class=\"platform__version\">\n <div class=\"platform__version-title\">\n <img src=\"/console/api/v1/cm/ui-logos/logo\" />\n <span class=\"line\"></span>\n <div class=\"platform__version-title__name-version\">\n <span class=\"platform__version-title__name\">{{\n platformName ? (platformName | translate) : 'ACP'\n }}</span>\n <span\n style=\"margin-right: 8px\"\n *ngIf=\"isRuntime\"\n >\n {{ 'runtime_edition' | translate }}\n </span>\n <span\n [auiTooltip]=\"platformStageVersion\"\n [auiTooltipContext]=\"{ version: platformVersion?.all }\"\n auiTooltipPosition=\"end\"\n auiTooltipType=\"empty\"\n >\n {{ platformVersion?.main }}</span\n >\n </div>\n </div>\n <div class=\"platform__version-desc\">{{ platformTip | translate }}</div>\n </div>\n <div class=\"platform__component-info\">\n <div class=\"label\">\n {{ 'platform_related_open_source_component_info' | translate }}\n </div>\n <ng-container *ngIf=\"!loading; else loadingTmp\">\n <div\n class=\"component-container\"\n *ngIf=\"componentVersionList?.length; else noComponent\"\n >\n <div\n class=\"component-item\"\n *ngFor=\"let componentVersion of componentVersionList\"\n >\n <img [src]=\"'icons/' + componentVersion.name + '.svg'\" />\n <div class=\"component-item-info\">\n <div\n class=\"component-item-info__name\"\n [title]=\"componentVersion.name\"\n >\n {{ componentVersion.name }}\n </div>\n <div\n class=\"component-item-info__version\"\n [title]=\"componentVersion.version\"\n >\n {{ componentVersion.version }}\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n <div class=\"platform__action\">\n <button\n aui-button\n (click)=\"close()\"\n >\n {{ 'close' | translate }}\n </button>\n </div>\n </aui-dialog-content>\n</ng-template>\n\n<ng-template #noComponent>\n <div class=\"no-component\">{{ 'no_open_source_components' | translate }}</div>\n</ng-template>\n\n<ng-template #loadingTmp>\n <div class=\"loading\">\n <acl-loading-mask [loading]=\"loading\"></acl-loading-mask>\n </div>\n</ng-template>\n\n<ng-template\n #platformStageVersion\n let-version=\"version\"\n>\n <div class=\"platform__version-title__toolTip\">{{ version }}</div>\n</ng-template>\n", styles: [".menu{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:2px;color:var(--acl-page-header-text-color);cursor:pointer}.menu:hover,.menu.isActive{color:#fff;background-color:rgb(var(--aui-color-primary))}.menu__icon{display:flex;align-items:center;font-size:16px}.menu__pointer{font-size:12px;margin-left:-2px}.platform__version{color:#fff;font-size:18px;padding:32px 24px;background-image:url(^images/platform_version_bg.svg)}.platform__version-title{display:flex;align-items:center;margin-bottom:14px}.platform__version-title__name{margin-right:8px;line-height:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.platform__version-title__name-version{font-size:24px;display:flex;flex-wrap:wrap;flex:1;overflow:hidden;align-items:baseline;line-height:1}.platform__version-title__toolTip{height:16px;color:rgb(var(--aui-color-primary));margin-bottom:10px;font-size:12px;line-height:14px;padding:1px 8px;background-color:#ffffffd9;border-radius:99px 95px 95px 99px}.platform__version-title img{max-width:240px;width:42px;height:42px}.platform__version-title .line{height:32px;width:1px;opacity:.66;background-color:rgb(var(--aui-color-n-10));margin:0 12px}.platform__component-info{color:rgb(var(--aui-color-n-4));padding:20px 20px 0}.platform__component-info .label{font-size:14px;margin-bottom:12px}.platform__component-info .component-container{display:grid;grid-template-columns:repeat(3,calc((100% - 34px) / 3));grid-gap:16px;max-height:312px;overflow-y:auto}.platform__component-info .component-item{display:flex;align-items:center;padding:16px;border-radius:2px;background-color:rgb(var(--aui-color-n-9))}.platform__component-info .component-item img{width:36px;height:36px}.platform__component-info .component-item-info{margin-left:12px;color:rgb(var(--aui-color-n-1));overflow:hidden}.platform__component-info .component-item-info__name,.platform__component-info .component-item-info__version{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.platform__component-info .component-item-info__name{font-size:var(--aui-font-size-xl);font-weight:var(--aui-font-weight-bolder);line-height:var(--aui-line-height-xl);margin-bottom:2px}.platform__component-info .component-item-info__version{font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m)}.platform__action{padding:20px;display:flex;justify-content:flex-end}.no-component{height:60px;border:dashed 1px rgb(var(--aui-color-n-7));background-color:rgb(var(--aui-color-n-10));display:flex;align-items:center;justify-content:center}.loading{height:312px;display:flex;justify-content:center;align-items:center}::ng-deep .acl-page-header__tooltip--small .aui-menu-item:hover{color:rgb(var(--aui-color-primary))}::ng-deep .acl-help-menu-item:not(:hover) .aui-icon{color:rgb(var(--aui-color-n-2))}\n"] }]
|
|
273
273
|
}], () => [{ type: undefined, decorators: [{
|
|
274
274
|
type: Inject,
|
|
275
275
|
args: [TOKEN_BASE_HREF]
|
|
@@ -4,7 +4,7 @@ export function getMethodValue(methods, items, defaultKey) {
|
|
|
4
4
|
return methods?.reduce((prev, key) => {
|
|
5
5
|
const obj = {};
|
|
6
6
|
const curr = defaultKey || key;
|
|
7
|
-
if (key === 'latest') {
|
|
7
|
+
if (key === 'latest' || key === 'last') {
|
|
8
8
|
obj[curr] = items?.at(-1)?.y;
|
|
9
9
|
}
|
|
10
10
|
const values = items?.map(d => d.y);
|
|
@@ -37,4 +37,4 @@ export function pointFormat(value) {
|
|
|
37
37
|
export function handleDateFormat(date, format = DATE_TIME_FORMAT) {
|
|
38
38
|
return String(dayjs(date).isValid() ? dayjs(date).format(format) : date);
|
|
39
39
|
}
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5pdHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbW1vbi9zcmMvdmlldy16Y2hhcnQvdW5pdHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFxQixNQUFNLE9BQU8sQ0FBQztBQUcxQyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUV0RCxNQUFNLFVBQVUsY0FBYyxDQUM1QixPQUFpQixFQUNqQixLQUF5QixFQUN6QixVQUFtQjtJQUVuQixPQUFPLE9BQU8sRUFBRSxNQUFNLENBQUMsQ0FBQyxJQUFJLEVBQUUsR0FBRyxFQUFFLEVBQUU7UUFDbkMsTUFBTSxHQUFHLEdBQTJCLEVBQUUsQ0FBQztRQUN2QyxNQUFNLElBQUksR0FBRyxVQUFVLElBQUksR0FBRyxDQUFDO1FBQy9CLElBQUksR0FBRyxLQUFLLFFBQVEsSUFBSSxHQUFHLEtBQUssTUFBTSxFQUFFLENBQUM7WUFDdkMsR0FBRyxDQUFDLElBQUksQ0FBQyxHQUFHLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUM7UUFDL0IsQ0FBQztRQUNELE1BQU0sTUFBTSxHQUFHLEtBQUssRUFBR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VybiAnJyArIHZhbHVlO1xuICB9XG4gIHJldHVybiBkYXRhID4gMCAmJiBkYXRhIDwgMC4wMSA/ICc8MC4wMScgOiBkYXRhLnRvRml4ZWQoMik7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBoYW5kbGVEYXRlRm9ybWF0KGRhdGU6IENvbmZpZ1R5cGUsIGZvcm1hdCA9IERBVEVfVElNRV9GT1JNQVQpIHtcbiAgcmV0dXJuIFN0cmluZyhkYXlqcyhkYXRlKS5pc1ZhbGlkKCkgPyBkYXlqcyhkYXRlKS5mb3JtYXQoZm9ybWF0KSA6IGRhdGUpO1xufVxuIl19
|
package/license/license-api.d.ts
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @packageDocumentation
|
|
3
|
-
* @module license-api
|
|
4
|
-
*/
|
|
5
|
-
import { HttpClient } from '@angular/common/http';
|
|
6
1
|
import { FeatureGate, FeatureGateEnterpriseSupport } from '../core/public-api';
|
|
7
2
|
import * as i0 from "@angular/core";
|
|
8
3
|
export declare const LICENSE_FEATURE_GATE = "{{API_GATEWAY}}/fg/v1/featuregates/license";
|
|
4
|
+
export declare const ENTERPRISE_SUPPORT_FEATURE_GATE = "{{API_GATEWAY}}/fg/v1/featuregates/enterprise-support";
|
|
9
5
|
export declare function getResourceNum(resource?: Record<string, number>): number;
|
|
10
6
|
export declare function formatProductName(productName: string): string;
|
|
11
7
|
export declare class LicenseApiService {
|
|
12
8
|
private readonly http;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
private readonly licenseExempted$;
|
|
10
|
+
isLicenseExempted(): import("rxjs").Observable<boolean>;
|
|
11
|
+
getLicense(product: string): import("rxjs").Observable<FeatureGate>;
|
|
16
12
|
getEnterpriseSupport(product?: string): import("rxjs").Observable<FeatureGateEnterpriseSupport>;
|
|
13
|
+
getLicenseResourceLimit(check: 'resource' | 'node' | 'version', resource: number): import("rxjs").Observable<boolean>;
|
|
17
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<LicenseApiService, never>;
|
|
18
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<LicenseApiService>;
|
|
19
16
|
}
|
|
@@ -2,20 +2,14 @@
|
|
|
2
2
|
* @packageDocumentation
|
|
3
3
|
* @module license
|
|
4
4
|
*/
|
|
5
|
-
import { HttpClient } from '@angular/common/http';
|
|
6
5
|
import { InjectionToken } from '@angular/core';
|
|
7
|
-
import { Observable } from 'rxjs';
|
|
8
|
-
import { K8sUtilService } from '../core/public-api';
|
|
9
6
|
import { LicenseProductName, LicenseStatus } from './license.type';
|
|
10
7
|
import * as i0 from "@angular/core";
|
|
11
8
|
export declare const LICENSE_PRODUCT_NAME_TOKEN: InjectionToken<LicenseProductName>;
|
|
12
9
|
export declare class LicenseService {
|
|
13
10
|
private readonly productName;
|
|
14
|
-
private readonly
|
|
15
|
-
|
|
16
|
-
status$: Observable<LicenseStatus>;
|
|
17
|
-
constructor(productName: LicenseProductName, http: HttpClient, k8sUtil: K8sUtilService);
|
|
18
|
-
getStatus(): Observable<LicenseStatus>;
|
|
11
|
+
private readonly licenseApi;
|
|
12
|
+
status$: import("rxjs").Observable<LicenseStatus>;
|
|
19
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<LicenseService, never>;
|
|
20
14
|
static ɵprov: i0.ɵɵInjectableDeclaration<LicenseService>;
|
|
21
15
|
}
|
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@ export declare class PageHeaderComponent {
|
|
|
11
11
|
helpDocPath: string;
|
|
12
12
|
menuActions: boolean;
|
|
13
13
|
menuSeparator: boolean;
|
|
14
|
+
isLicenseExempted: import("@angular/core").Signal<boolean>;
|
|
14
15
|
constructor(logoUrl: string, translate: TranslateService);
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageHeaderComponent, never>;
|
|
16
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<PageHeaderComponent, "acl-page-header", never, { "title": { "alias": "title"; "required": false; }; "currentProduct": { "alias": "currentProduct"; "required": false; }; "helpDocPath": { "alias": "helpDocPath"; "required": false; }; "menuActions": { "alias": "menuActions"; "required": false; }; "menuSeparator": { "alias": "menuSeparator"; "required": false; }; }, {}, never, ["*", "[customActions]", "[aclHelpMenuContent]", "[aclAccountMenuContent]"], false, never>;
|
package/table/component.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export declare class TableComponent<Item extends object, Context = TableUtilServ
|
|
|
52
52
|
finalDataSource$: Observable<Item[]>;
|
|
53
53
|
finalResourceName$: Observable<string>;
|
|
54
54
|
columnDefs$: Observable<TableColumnDefs<Item, Context>>;
|
|
55
|
-
columnNames$: Observable<import("@alauda-fe/common").LiteralUnion<"
|
|
55
|
+
columnNames$: Observable<import("@alauda-fe/common").LiteralUnion<"name" | "action", string>[]>;
|
|
56
56
|
activeSort$$: ReplaySubject<Sort>;
|
|
57
57
|
activeSort$: Observable<Sort>;
|
|
58
58
|
filteredItems$: Observable<Item[]>;
|
package/table/helper.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function defaultFilter<T extends string | number>(value: T, filterValue: T, _item: unknown, name: string): boolean;
|
|
2
|
-
export declare function defaultSorter<T>(a: T, b: T):
|
|
2
|
+
export declare function defaultSorter<T>(a: T, b: T): 1 | 0 | -1;
|