@c8y/ngx-components 1023.78.1 → 1023.78.4
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/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs +26 -8
- package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-device-management-welcome.mjs +11 -19
- package/fesm2022/c8y-ngx-components-widgets-implementations-device-management-welcome.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/locales/de.po +6 -3
- package/locales/es.po +3 -0
- package/locales/fr.po +3 -0
- package/locales/ja_JP.po +3 -0
- package/locales/ko.po +3 -0
- package/locales/locales.pot +6 -0
- package/locales/nl.po +3 -0
- package/locales/pl.po +3 -0
- package/locales/pt_BR.po +3 -0
- package/locales/zh_CN.po +3 -0
- package/locales/zh_TW.po +3 -0
- package/package.json +1 -1
- package/widgets/implementations/asset-table/index.d.ts.map +1 -1
- package/widgets/implementations/device-management-welcome/index.d.ts +2 -3
- package/widgets/implementations/device-management-welcome/index.d.ts.map +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, inject, Injector,
|
|
2
|
+
import { Component, inject, Injector, NgModule } from '@angular/core';
|
|
3
3
|
import { gettext } from '@c8y/ngx-components/gettext';
|
|
4
4
|
import * as i1 from '@c8y/ngx-components';
|
|
5
5
|
import { CoreModule, QuickLinkModule } from '@c8y/ngx-components';
|
|
@@ -26,30 +26,22 @@ class WelcomeToDeviceManagementComponent {
|
|
|
26
26
|
const { QuickLinksService, RelativeUrlParserPipe } = await import('@c8y/ngx-components/widgets/implementations/quick-links');
|
|
27
27
|
const pipe = new RelativeUrlParserPipe();
|
|
28
28
|
const transformUrl = (links) => links.map(link => ({ ...link, url: pipe.transform(link.url) }));
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
this.injector
|
|
30
|
+
.get(QuickLinksService)
|
|
31
|
+
.getQuickLinksForDeviceManagement$()
|
|
32
|
+
.pipe(take(1))
|
|
33
|
+
.subscribe(links => {
|
|
34
|
+
this.quickLinks = transformUrl(links);
|
|
31
35
|
this.isLoading = false;
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
this.injector
|
|
35
|
-
.get(QuickLinksService)
|
|
36
|
-
.getQuickLinksForDeviceManagement$()
|
|
37
|
-
.pipe(take(1))
|
|
38
|
-
.subscribe(links => {
|
|
39
|
-
this.quickLinks = transformUrl(links);
|
|
40
|
-
this.isLoading = false;
|
|
41
|
-
});
|
|
42
|
-
}
|
|
36
|
+
});
|
|
43
37
|
}
|
|
44
38
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: WelcomeToDeviceManagementComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
45
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: WelcomeToDeviceManagementComponent, isStandalone: true, selector: "c8y-welcome-to-devicemanagement",
|
|
39
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: WelcomeToDeviceManagementComponent, isStandalone: true, selector: "c8y-welcome-to-devicemanagement", ngImport: i0, template: "<div\n class=\"welcome-widget\"\n tabindex=\"0\"\n data-cy=\"welcome-widget\"\n>\n @if (isLoading) {\n <div class=\"p-16 text-center\">\n <c8y-loading></c8y-loading>\n </div>\n } @else {\n <div\n class=\"d-flex fit-h\"\n data-cy=\"quick-links-content\"\n >\n <div\n class=\"col-xs-12 col-md-6 a-s-stretch p-24\"\n data-cy=\"content-column\"\n >\n <h2 class=\"text-light\">{{ 'Welcome to Device Management' | translate }}</h2>\n <p class=\"text-16 text-light p-t-16 p-b-24\">{{ welcomeMessage | translate }}</p>\n <div\n class=\"card-group interact-grid tight-grid\"\n data-cy=\"quick-links-grid\"\n >\n @for (link of quickLinks; track link.url) {\n @let linkLabel = link.label | translate;\n <div class=\"col-sm-4 col-xs-6\">\n <a\n class=\"btn-clean card text-pre-normal\"\n [title]=\"linkLabel\"\n data-cy=\"quick-link\"\n [href]=\"link.url\"\n [target]=\"link.newTab ? '_blank' : '_self'\"\n [attr.rel]=\"link.newTab ? 'noopener noreferrer' : null\"\n c8yProductExperience\n [actionName]=\"'welcomeWidgetClicked'\"\n [actionData]=\"{ link: link.label }\"\n >\n <div class=\"card-block text-center\">\n <i\n class=\"c8y-icon-duocolor icon-32\"\n [c8yIcon]=\"link.icon\"\n data-cy=\"quick-link-icon\"\n ></i>\n <p\n class=\"text-muted\"\n [title]=\"linkLabel\"\n data-cy=\"quick-link-label\"\n >\n {{ linkLabel }}\n </p>\n </div>\n </a>\n </div>\n }\n </div>\n </div>\n <div\n class=\"welcome-illustration a-s-stretch\"\n data-cy=\"welcome-illustration\"\n >\n <c8y-dm-welcome-illustration />\n </div>\n </div>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i1.IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "component", type: i1.LoadingComponent, selector: "c8y-loading", inputs: ["layout", "progress", "message"] }, { kind: "directive", type: i1.ProductExperienceDirective, selector: "[c8yProductExperience]", inputs: ["actionName", "actionData", "inherit", "suppressDataOverriding"] }, { kind: "component", type: DmWelcomeIllustrationComponent, selector: "c8y-dm-welcome-illustration" }, { kind: "pipe", type: i1.C8yTranslatePipe, name: "translate" }] }); }
|
|
46
40
|
}
|
|
47
41
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: WelcomeToDeviceManagementComponent, decorators: [{
|
|
48
42
|
type: Component,
|
|
49
|
-
args: [{ selector: 'c8y-welcome-to-devicemanagement', standalone: true, imports: [CoreModule, DmWelcomeIllustrationComponent], template: "<div\n class=\"welcome-widget\"\n tabindex=\"0\"\n data-cy=\"welcome-widget\"\n>\n @if (isLoading) {\n <div class=\"p-16 text-center\">\n <c8y-loading></c8y-loading>\n </div>\n } @else {\n <div\n class=\"d-flex fit-h\"\n data-cy=\"quick-links-content\"\n >\n <div\n class=\"col-xs-12 col-md-6 a-s-stretch p-24\"\n data-cy=\"content-column\"\n >\n <h2 class=\"text-light\">{{ 'Welcome to Device Management' | translate }}</h2>\n <p class=\"text-16 text-light p-t-16 p-b-24\">{{ welcomeMessage | translate }}</p>\n <div\n class=\"card-group interact-grid tight-grid\"\n data-cy=\"quick-links-grid\"\n >\n @for (link of quickLinks; track link.url) {\n @let linkLabel =
|
|
50
|
-
}]
|
|
51
|
-
type: Input
|
|
52
|
-
}] } });
|
|
43
|
+
args: [{ selector: 'c8y-welcome-to-devicemanagement', standalone: true, imports: [CoreModule, DmWelcomeIllustrationComponent], template: "<div\n class=\"welcome-widget\"\n tabindex=\"0\"\n data-cy=\"welcome-widget\"\n>\n @if (isLoading) {\n <div class=\"p-16 text-center\">\n <c8y-loading></c8y-loading>\n </div>\n } @else {\n <div\n class=\"d-flex fit-h\"\n data-cy=\"quick-links-content\"\n >\n <div\n class=\"col-xs-12 col-md-6 a-s-stretch p-24\"\n data-cy=\"content-column\"\n >\n <h2 class=\"text-light\">{{ 'Welcome to Device Management' | translate }}</h2>\n <p class=\"text-16 text-light p-t-16 p-b-24\">{{ welcomeMessage | translate }}</p>\n <div\n class=\"card-group interact-grid tight-grid\"\n data-cy=\"quick-links-grid\"\n >\n @for (link of quickLinks; track link.url) {\n @let linkLabel = link.label | translate;\n <div class=\"col-sm-4 col-xs-6\">\n <a\n class=\"btn-clean card text-pre-normal\"\n [title]=\"linkLabel\"\n data-cy=\"quick-link\"\n [href]=\"link.url\"\n [target]=\"link.newTab ? '_blank' : '_self'\"\n [attr.rel]=\"link.newTab ? 'noopener noreferrer' : null\"\n c8yProductExperience\n [actionName]=\"'welcomeWidgetClicked'\"\n [actionData]=\"{ link: link.label }\"\n >\n <div class=\"card-block text-center\">\n <i\n class=\"c8y-icon-duocolor icon-32\"\n [c8yIcon]=\"link.icon\"\n data-cy=\"quick-link-icon\"\n ></i>\n <p\n class=\"text-muted\"\n [title]=\"linkLabel\"\n data-cy=\"quick-link-label\"\n >\n {{ linkLabel }}\n </p>\n </div>\n </a>\n </div>\n }\n </div>\n </div>\n <div\n class=\"welcome-illustration a-s-stretch\"\n data-cy=\"welcome-illustration\"\n >\n <c8y-dm-welcome-illustration />\n </div>\n </div>\n }\n</div>\n" }]
|
|
44
|
+
}] });
|
|
53
45
|
|
|
54
46
|
/**
|
|
55
47
|
* @deprecated
|