@c8y/ngx-components 1024.20.8 → 1024.21.3

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 (127) hide show
  1. package/fesm2022/c8y-ngx-components-ai-agent-chat.mjs +527 -12
  2. package/fesm2022/c8y-ngx-components-ai-agent-chat.mjs.map +1 -1
  3. package/fesm2022/c8y-ngx-components-ai-ai-chat.mjs +31 -9
  4. package/fesm2022/c8y-ngx-components-ai-ai-chat.mjs.map +1 -1
  5. package/fesm2022/c8y-ngx-components-ai.mjs +503 -62
  6. package/fesm2022/c8y-ngx-components-ai.mjs.map +1 -1
  7. package/fesm2022/c8y-ngx-components-alarm-event-selector.mjs +2 -2
  8. package/fesm2022/c8y-ngx-components-alarm-event-selector.mjs.map +1 -1
  9. package/fesm2022/c8y-ngx-components-alarms.mjs +3 -3
  10. package/fesm2022/c8y-ngx-components-alarms.mjs.map +1 -1
  11. package/fesm2022/c8y-ngx-components-application-access-list.mjs +1 -1
  12. package/fesm2022/c8y-ngx-components-application-access-list.mjs.map +1 -1
  13. package/fesm2022/c8y-ngx-components-auth-configuration.mjs +1 -1
  14. package/fesm2022/c8y-ngx-components-auth-configuration.mjs.map +1 -1
  15. package/fesm2022/c8y-ngx-components-bookmarks.mjs +1 -1
  16. package/fesm2022/c8y-ngx-components-bookmarks.mjs.map +1 -1
  17. package/fesm2022/c8y-ngx-components-branding-shared-lazy.mjs +1 -1
  18. package/fesm2022/c8y-ngx-components-branding-shared-lazy.mjs.map +1 -1
  19. package/fesm2022/c8y-ngx-components-cockpit-config.mjs +5 -5
  20. package/fesm2022/c8y-ngx-components-cockpit-config.mjs.map +1 -1
  21. package/fesm2022/{c8y-ngx-components-context-dashboard-dashboard-version-history.component-Jyjkv4JT.mjs → c8y-ngx-components-context-dashboard-dashboard-version-history.component-CP1afwVe.mjs} +2 -2
  22. package/fesm2022/{c8y-ngx-components-context-dashboard-dashboard-version-history.component-Jyjkv4JT.mjs.map → c8y-ngx-components-context-dashboard-dashboard-version-history.component-CP1afwVe.mjs.map} +1 -1
  23. package/fesm2022/c8y-ngx-components-context-dashboard.mjs +3 -3
  24. package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
  25. package/fesm2022/{c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-UEUYsXBv.mjs → c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-CRvgIgri.mjs} +2 -2
  26. package/fesm2022/{c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-UEUYsXBv.mjs.map → c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-CRvgIgri.mjs.map} +1 -1
  27. package/fesm2022/c8y-ngx-components-dashboard-details-advanced-tab.mjs +2 -2
  28. package/fesm2022/c8y-ngx-components-dashboard-manager.mjs +1 -1
  29. package/fesm2022/c8y-ngx-components-dashboard-manager.mjs.map +1 -1
  30. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs +3 -3
  31. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs.map +1 -1
  32. package/fesm2022/c8y-ngx-components-datapoint-selector.mjs +2 -2
  33. package/fesm2022/c8y-ngx-components-datapoint-selector.mjs.map +1 -1
  34. package/fesm2022/c8y-ngx-components-device-profile.mjs +2 -2
  35. package/fesm2022/c8y-ngx-components-device-profile.mjs.map +1 -1
  36. package/fesm2022/c8y-ngx-components-diagnostics.mjs +1 -1
  37. package/fesm2022/c8y-ngx-components-diagnostics.mjs.map +1 -1
  38. package/fesm2022/c8y-ngx-components-echart.mjs +101 -45
  39. package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
  40. package/fesm2022/c8y-ngx-components-ecosystem-application-plugins.mjs +2 -2
  41. package/fesm2022/c8y-ngx-components-ecosystem-application-plugins.mjs.map +1 -1
  42. package/fesm2022/c8y-ngx-components-ecosystem-shared.mjs +1 -1
  43. package/fesm2022/c8y-ngx-components-ecosystem-shared.mjs.map +1 -1
  44. package/fesm2022/c8y-ngx-components-ecosystem.mjs +4 -4
  45. package/fesm2022/c8y-ngx-components-ecosystem.mjs.map +1 -1
  46. package/fesm2022/c8y-ngx-components-events-events-timeline.mjs +1 -1
  47. package/fesm2022/c8y-ngx-components-events-events-timeline.mjs.map +1 -1
  48. package/fesm2022/c8y-ngx-components-events.mjs +2 -2
  49. package/fesm2022/c8y-ngx-components-events.mjs.map +1 -1
  50. package/fesm2022/c8y-ngx-components-icon-selector.mjs +1 -1
  51. package/fesm2022/c8y-ngx-components-icon-selector.mjs.map +1 -1
  52. package/fesm2022/c8y-ngx-components-operations-bulk-operation-list-item.mjs +1 -1
  53. package/fesm2022/c8y-ngx-components-operations-bulk-operation-list-item.mjs.map +1 -1
  54. package/fesm2022/c8y-ngx-components-operations-operations-list.mjs +1 -1
  55. package/fesm2022/c8y-ngx-components-operations-operations-list.mjs.map +1 -1
  56. package/fesm2022/c8y-ngx-components-operations-operations-timeline.mjs +1 -1
  57. package/fesm2022/c8y-ngx-components-operations-operations-timeline.mjs.map +1 -1
  58. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-configuration.mjs +1 -1
  59. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-configuration.mjs.map +1 -1
  60. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-device-profile.mjs +2 -2
  61. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-device-profile.mjs.map +1 -1
  62. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-firmware.mjs +2 -2
  63. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-firmware.mjs.map +1 -1
  64. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-software.mjs +2 -2
  65. package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-software.mjs.map +1 -1
  66. package/fesm2022/c8y-ngx-components-protocol-lpwan.mjs +5 -5
  67. package/fesm2022/c8y-ngx-components-protocol-lpwan.mjs.map +1 -1
  68. package/fesm2022/c8y-ngx-components-protocol-opcua.mjs +1 -1
  69. package/fesm2022/c8y-ngx-components-protocol-opcua.mjs.map +1 -1
  70. package/fesm2022/c8y-ngx-components-register-device.mjs +3 -3
  71. package/fesm2022/c8y-ngx-components-register-device.mjs.map +1 -1
  72. package/fesm2022/c8y-ngx-components-remote-access-configurations.mjs +1 -1
  73. package/fesm2022/c8y-ngx-components-remote-access-configurations.mjs.map +1 -1
  74. package/fesm2022/c8y-ngx-components-replace-device-replace-device-wizard.mjs +1 -1
  75. package/fesm2022/c8y-ngx-components-replace-device-replace-device-wizard.mjs.map +1 -1
  76. package/fesm2022/c8y-ngx-components-report-dashboard.mjs +1 -1
  77. package/fesm2022/c8y-ngx-components-report-dashboard.mjs.map +1 -1
  78. package/fesm2022/c8y-ngx-components-repository-configuration.mjs +1 -1
  79. package/fesm2022/c8y-ngx-components-repository-configuration.mjs.map +1 -1
  80. package/fesm2022/c8y-ngx-components-repository-firmware.mjs +4 -4
  81. package/fesm2022/c8y-ngx-components-repository-firmware.mjs.map +1 -1
  82. package/fesm2022/c8y-ngx-components-repository-shared.mjs +2 -2
  83. package/fesm2022/c8y-ngx-components-repository-shared.mjs.map +1 -1
  84. package/fesm2022/c8y-ngx-components-repository-software.mjs +3 -3
  85. package/fesm2022/c8y-ngx-components-repository-software.mjs.map +1 -1
  86. package/fesm2022/c8y-ngx-components-static-assets-modal.mjs +1 -1
  87. package/fesm2022/c8y-ngx-components-static-assets-modal.mjs.map +1 -1
  88. package/fesm2022/c8y-ngx-components-tracking.mjs +1 -1
  89. package/fesm2022/c8y-ngx-components-tracking.mjs.map +1 -1
  90. package/fesm2022/c8y-ngx-components-trusted-certificates.mjs +1 -1
  91. package/fesm2022/c8y-ngx-components-trusted-certificates.mjs.map +1 -1
  92. package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs +1 -1
  93. package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs.map +1 -1
  94. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-list.mjs +2 -2
  95. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-list.mjs.map +1 -1
  96. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-table.mjs +1 -1
  97. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-table.mjs.map +1 -1
  98. package/fesm2022/c8y-ngx-components-widgets-implementations-image.mjs +1 -1
  99. package/fesm2022/c8y-ngx-components-widgets-implementations-image.mjs.map +1 -1
  100. package/fesm2022/c8y-ngx-components-widgets-implementations-quick-links.mjs +1 -1
  101. package/fesm2022/c8y-ngx-components-widgets-implementations-quick-links.mjs.map +1 -1
  102. package/fesm2022/c8y-ngx-components-widgets-implementations-scada.mjs +1 -1
  103. package/fesm2022/c8y-ngx-components-widgets-implementations-scada.mjs.map +1 -1
  104. package/fesm2022/c8y-ngx-components.mjs +306 -22
  105. package/fesm2022/c8y-ngx-components.mjs.map +1 -1
  106. package/locales/de.po +72 -0
  107. package/locales/es.po +72 -0
  108. package/locales/fr.po +72 -0
  109. package/locales/ja_JP.po +72 -0
  110. package/locales/ko.po +72 -0
  111. package/locales/locales.pot +72 -3
  112. package/locales/nl.po +72 -0
  113. package/locales/pl.po +73 -1
  114. package/locales/pt_BR.po +72 -0
  115. package/locales/zh_CN.po +72 -0
  116. package/locales/zh_TW.po +72 -0
  117. package/package.json +1 -1
  118. package/types/c8y-ngx-components-ai-agent-chat.d.ts +201 -3
  119. package/types/c8y-ngx-components-ai-agent-chat.d.ts.map +1 -1
  120. package/types/c8y-ngx-components-ai-ai-chat.d.ts +14 -4
  121. package/types/c8y-ngx-components-ai-ai-chat.d.ts.map +1 -1
  122. package/types/c8y-ngx-components-ai.d.ts +157 -2
  123. package/types/c8y-ngx-components-ai.d.ts.map +1 -1
  124. package/types/c8y-ngx-components-echart.d.ts +6 -0
  125. package/types/c8y-ngx-components-echart.d.ts.map +1 -1
  126. package/types/c8y-ngx-components.d.ts +170 -9
  127. package/types/c8y-ngx-components.d.ts.map +1 -1
@@ -61,7 +61,7 @@ class ApplicationAccessSubListComponent {
61
61
  this.accessToggled.emit(application);
62
62
  }
63
63
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: ApplicationAccessSubListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
64
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: ApplicationAccessSubListComponent, isStandalone: true, selector: "c8y-application-access-sub-list", inputs: { applications: { classPropertyName: "applications", publicName: "applications", isSignal: true, isRequired: false, transformFunction: null }, legend: { classPropertyName: "legend", publicName: "legend", isSignal: true, isRequired: false, transformFunction: null }, legendHelpText: { classPropertyName: "legendHelpText", publicName: "legendHelpText", isSignal: true, isRequired: false, transformFunction: null }, noOwnerAvailable: { classPropertyName: "noOwnerAvailable", publicName: "noOwnerAvailable", isSignal: true, isRequired: false, transformFunction: null }, appIdsOfGlobalRoles: { classPropertyName: "appIdsOfGlobalRoles", publicName: "appIdsOfGlobalRoles", isSignal: true, isRequired: false, transformFunction: null }, disabledEdit: { classPropertyName: "disabledEdit", publicName: "disabledEdit", isSignal: true, isRequired: false, transformFunction: null }, userWithOwner: { classPropertyName: "userWithOwner", publicName: "userWithOwner", isSignal: true, isRequired: false, transformFunction: null }, selectedAppIds: { classPropertyName: "selectedAppIds", publicName: "selectedAppIds", isSignal: true, isRequired: false, transformFunction: null }, allSelected: { classPropertyName: "allSelected", publicName: "allSelected", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { accessToggled: "accessToggled" }, ngImport: i0, template: "@if (applications().length) {\n <div class=\"legend form-block\">\n {{ legend() | translate }}\n @if (legendHelpText()) {\n <button\n class=\"btn-help btn-help--sm\"\n [attr.aria-label]=\"'Help' | translate\"\n [popover]=\"legendHelpText() | translate\"\n type=\"button\"\n [triggers]=\"'focus'\"\n ></button>\n }\n </div>\n\n @if (disabledEdit() && noOwnerAvailable()) {\n <div class=\"alert alert-info\">\n {{ noOwnerMessage | translate: { 'user.userName': userWithOwner()?.user.userName } }}\n </div>\n }\n\n <c8y-list-group>\n @for (application of applications(); track application.id) {\n @let applicationAlreadyInappIdsOfGlobalRoles =\n application | alreadyInArray: appIdsOfGlobalRoles();\n @let applicationName = application | humanizeAppName | async;\n <c8y-list-item>\n <c8y-list-item-body>\n <div class=\"d-flex\">\n <label class=\"c8y-checkbox a-i-center\">\n <input\n [attr.aria-label]=\"applicationName\"\n type=\"checkbox\"\n [checked]=\"\n allSelected() ||\n (application | alreadyInArray: selectedAppIds()) ||\n applicationAlreadyInappIdsOfGlobalRoles\n \"\n (click)=\"toggleAccess(application)\"\n [disabled]=\"disabledEdit() || applicationAlreadyInappIdsOfGlobalRoles\"\n />\n <span></span>\n <span class=\"icon-36 l-h-1 p-l-8\">\n <c8y-app-icon [app]=\"application\"></c8y-app-icon>\n </span>\n <span\n class=\"m-l-8 text-normal l-h-1\"\n [title]=\"applicationName\"\n >\n {{ applicationName }}\n <br />\n <small class=\"text-muted\">{{ application.contextPath }}</small>\n </span>\n </label>\n <span class=\"m-l-auto\"></span>\n @if (applicationAlreadyInappIdsOfGlobalRoles) {\n <button\n class=\"btn-help\"\n [attr.aria-label]=\"'Help' | translate\"\n [popover]=\"\n 'This application is already made available in a global role' | translate\n \"\n type=\"button\"\n [triggers]=\"'focus'\"\n ></button>\n }\n\n @if (\n (application | notAvailableInOwner: userWithOwner()?.owner) &&\n !applicationAlreadyInappIdsOfGlobalRoles\n ) {\n <button\n class=\"btn-dot\"\n [attr.aria-label]=\"'This application is not accessible by the owner.' | translate\"\n [popover]=\"'This application is not accessible by the owner.' | translate\"\n type=\"button\"\n [triggers]=\"'focus'\"\n >\n <i\n class=\"text-warning\"\n [c8yIcon]=\"'warning'\"\n ></i>\n </button>\n }\n </div>\n </c8y-list-item-body>\n </c8y-list-item>\n }\n </c8y-list-group>\n}\n", dependencies: [{ kind: "directive", type: PopoverDirective, selector: "[popover]", inputs: ["adaptivePosition", "boundariesElement", "popover", "popoverContext", "popoverTitle", "placement", "outsideClick", "triggers", "container", "containerClass", "isOpen", "delay"], outputs: ["onShown", "onHidden"], exportAs: ["bs-popover"] }, { kind: "component", type: ListGroupComponent, selector: "c8y-list-group" }, { kind: "component", type: ListItemComponent, selector: "c8y-list-item, c8y-li", inputs: ["active", "highlighted", "emptyActions", "dense", "collapsed", "selectable"], outputs: ["collapsedChange"] }, { kind: "component", type: ListItemBodyComponent, selector: "c8y-list-item-body, c8y-li-body", inputs: ["body"] }, { kind: "component", type: AppIconComponent, selector: "c8y-app-icon", inputs: ["contextPath", "name", "app"] }, { kind: "directive", type: IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: HumanizeAppNamePipe, name: "humanizeAppName" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: AlreadyInArrayPipe, name: "alreadyInArray" }, { kind: "pipe", type: NotAvailableInOwnerPipe, name: "notAvailableInOwner" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
64
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.19", type: ApplicationAccessSubListComponent, isStandalone: true, selector: "c8y-application-access-sub-list", inputs: { applications: { classPropertyName: "applications", publicName: "applications", isSignal: true, isRequired: false, transformFunction: null }, legend: { classPropertyName: "legend", publicName: "legend", isSignal: true, isRequired: false, transformFunction: null }, legendHelpText: { classPropertyName: "legendHelpText", publicName: "legendHelpText", isSignal: true, isRequired: false, transformFunction: null }, noOwnerAvailable: { classPropertyName: "noOwnerAvailable", publicName: "noOwnerAvailable", isSignal: true, isRequired: false, transformFunction: null }, appIdsOfGlobalRoles: { classPropertyName: "appIdsOfGlobalRoles", publicName: "appIdsOfGlobalRoles", isSignal: true, isRequired: false, transformFunction: null }, disabledEdit: { classPropertyName: "disabledEdit", publicName: "disabledEdit", isSignal: true, isRequired: false, transformFunction: null }, userWithOwner: { classPropertyName: "userWithOwner", publicName: "userWithOwner", isSignal: true, isRequired: false, transformFunction: null }, selectedAppIds: { classPropertyName: "selectedAppIds", publicName: "selectedAppIds", isSignal: true, isRequired: false, transformFunction: null }, allSelected: { classPropertyName: "allSelected", publicName: "allSelected", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { accessToggled: "accessToggled" }, ngImport: i0, template: "@if (applications().length) {\n <div class=\"legend form-block\">\n {{ legend() | translate }}\n @if (legendHelpText()) {\n <button\n class=\"btn-help btn-help--sm\"\n [attr.aria-label]=\"'Help' | translate\"\n [popover]=\"legendHelpText() | translate\"\n type=\"button\"\n [triggers]=\"'focus'\"\n ></button>\n }\n </div>\n\n @if (disabledEdit() && noOwnerAvailable()) {\n <div class=\"alert alert-info\">\n {{ noOwnerMessage | translate: { 'user.userName': userWithOwner()?.user.userName } }}\n </div>\n }\n\n <c8y-list-group>\n @for (application of applications(); track application.id) {\n @let applicationAlreadyInappIdsOfGlobalRoles =\n application | alreadyInArray: appIdsOfGlobalRoles();\n @let applicationName = application | humanizeAppName | async;\n <c8y-list-item>\n <c8y-list-item-body>\n <div class=\"d-flex\">\n <label class=\"c8y-checkbox a-i-center\">\n <input\n [attr.aria-label]=\"applicationName\"\n type=\"checkbox\"\n [checked]=\"\n allSelected() ||\n (application | alreadyInArray: selectedAppIds()) ||\n applicationAlreadyInappIdsOfGlobalRoles\n \"\n (click)=\"toggleAccess(application)\"\n [disabled]=\"disabledEdit() || applicationAlreadyInappIdsOfGlobalRoles\"\n />\n <span></span>\n <span class=\"icon-36 l-h-1 p-l-8\">\n <c8y-app-icon [app]=\"application\"></c8y-app-icon>\n </span>\n <span\n class=\"m-l-8 text-normal l-h-1\"\n [title]=\"applicationName\"\n >\n {{ applicationName }}\n <br />\n <small class=\"text-muted\">{{ application.contextPath }}</small>\n </span>\n </label>\n <span class=\"m-l-auto\"></span>\n @if (applicationAlreadyInappIdsOfGlobalRoles) {\n <button\n class=\"btn-help\"\n [attr.aria-label]=\"'Help' | translate\"\n [popover]=\"\n 'This application is already made available in a global role' | translate\n \"\n type=\"button\"\n [triggers]=\"'focus'\"\n ></button>\n }\n\n @if (\n (application | notAvailableInOwner: userWithOwner()?.owner) &&\n !applicationAlreadyInappIdsOfGlobalRoles\n ) {\n <button\n class=\"btn-dot\"\n [attr.aria-label]=\"'This application is not accessible by the owner.' | translate\"\n [popover]=\"'This application is not accessible by the owner.' | translate\"\n type=\"button\"\n [triggers]=\"'focus'\"\n >\n <i\n class=\"text-warning\"\n [c8yIcon]=\"'warning'\"\n ></i>\n </button>\n }\n </div>\n </c8y-list-item-body>\n </c8y-list-item>\n }\n </c8y-list-group>\n}\n", dependencies: [{ kind: "directive", type: PopoverDirective, selector: "[popover]", inputs: ["adaptivePosition", "boundariesElement", "popover", "popoverContext", "popoverTitle", "placement", "outsideClick", "triggers", "container", "containerClass", "isOpen", "delay"], outputs: ["onShown", "onHidden"], exportAs: ["bs-popover"] }, { kind: "component", type: ListGroupComponent, selector: "c8y-list-group" }, { kind: "component", type: ListItemComponent, selector: "c8y-list-item, c8y-li", inputs: ["active", "highlighted", "emptyActions", "dense", "collapsed", "selectable", "selectOnClick"], outputs: ["collapsedChange"] }, { kind: "component", type: ListItemBodyComponent, selector: "c8y-list-item-body, c8y-li-body", inputs: ["body"] }, { kind: "component", type: AppIconComponent, selector: "c8y-app-icon", inputs: ["contextPath", "name", "app"] }, { kind: "directive", type: IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: HumanizeAppNamePipe, name: "humanizeAppName" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: AlreadyInArrayPipe, name: "alreadyInArray" }, { kind: "pipe", type: NotAvailableInOwnerPipe, name: "notAvailableInOwner" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
65
65
  }
66
66
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: ApplicationAccessSubListComponent, decorators: [{
67
67
  type: Component,
@@ -1 +1 @@
1
- {"version":3,"file":"c8y-ngx-components-application-access-list.mjs","sources":["../../application-access/list/already-in-global-role.pipe.ts","../../application-access/list/not-available-in-owner.pipe.ts","../../application-access/list/application-access-sub-list/application-access-sub-list.component.ts","../../application-access/list/application-access-sub-list/application-access-sub-list.component.html","../../application-access/list/application-access-list/application-access-list.component.ts","../../application-access/list/application-access-list/application-access-list.component.html","../../application-access/list/c8y-ngx-components-application-access-list.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport { IApplication } from '@c8y/client';\n\n@Pipe({\n name: 'alreadyInArray'\n})\nexport class AlreadyInArrayPipe implements PipeTransform {\n transform(application: IApplication, appIdsOfGlobalRoles: (string | number)[]): boolean {\n if (!application || !appIdsOfGlobalRoles || Array.isArray(appIdsOfGlobalRoles) === false) {\n return false;\n }\n\n return appIdsOfGlobalRoles.includes(application.id);\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { IApplication, IUser } from '@c8y/client';\n\n@Pipe({\n name: 'notAvailableInOwner'\n})\nexport class NotAvailableInOwnerPipe implements PipeTransform {\n transform(application: IApplication, ownerUser: IUser | null): boolean {\n const ownerApps = ownerUser?.applications;\n if (!ownerApps) {\n return false;\n }\n const isAvailable = ownerApps.some(app => app.id === application.id);\n return !isAvailable;\n }\n}\n","import { AsyncPipe } from '@angular/common';\nimport { Component, input, output, ChangeDetectionStrategy } from '@angular/core';\nimport { IApplication, IUser } from '@c8y/client';\nimport {\n C8yTranslateDirective,\n ListGroupComponent,\n ListItemComponent,\n ListItemBodyComponent,\n C8yTranslatePipe,\n HumanizeAppNamePipe,\n AppIconComponent,\n IconDirective\n} from '@c8y/ngx-components';\nimport { PopoverDirective } from 'ngx-bootstrap/popover';\nimport { AlreadyInArrayPipe } from '../already-in-global-role.pipe';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport { NotAvailableInOwnerPipe } from '../not-available-in-owner.pipe';\n\n@Component({\n selector: 'c8y-application-access-sub-list',\n templateUrl: './application-access-sub-list.component.html',\n imports: [\n C8yTranslateDirective,\n C8yTranslatePipe,\n HumanizeAppNamePipe,\n PopoverDirective,\n ListGroupComponent,\n ListItemComponent,\n ListItemBodyComponent,\n AppIconComponent,\n AsyncPipe,\n AlreadyInArrayPipe,\n NotAvailableInOwnerPipe,\n IconDirective\n ],\n changeDetection: ChangeDetectionStrategy.Eager\n})\nexport class ApplicationAccessSubListComponent {\n applications = input<IApplication[]>();\n legend = input<string>('');\n legendHelpText = input<string>('');\n noOwnerAvailable = input<boolean>(false);\n appIdsOfGlobalRoles = input<(string | number)[]>([]);\n disabledEdit = input<boolean>(false);\n userWithOwner = input<{ user: IUser; owner: IUser | null } | null>(null);\n selectedAppIds = input<(string | number)[]>([]);\n allSelected = input<boolean>(false);\n\n accessToggled = output<IApplication>();\n\n noOwnerMessage = gettext(\n `You don't have the permission required to manage application access for {{ user.userName }}.`\n );\n\n toggleAccess(application: IApplication): void {\n this.accessToggled.emit(application);\n }\n}\n","@if (applications().length) {\n <div class=\"legend form-block\">\n {{ legend() | translate }}\n @if (legendHelpText()) {\n <button\n class=\"btn-help btn-help--sm\"\n [attr.aria-label]=\"'Help' | translate\"\n [popover]=\"legendHelpText() | translate\"\n type=\"button\"\n [triggers]=\"'focus'\"\n ></button>\n }\n </div>\n\n @if (disabledEdit() && noOwnerAvailable()) {\n <div class=\"alert alert-info\">\n {{ noOwnerMessage | translate: { 'user.userName': userWithOwner()?.user.userName } }}\n </div>\n }\n\n <c8y-list-group>\n @for (application of applications(); track application.id) {\n @let applicationAlreadyInappIdsOfGlobalRoles =\n application | alreadyInArray: appIdsOfGlobalRoles();\n @let applicationName = application | humanizeAppName | async;\n <c8y-list-item>\n <c8y-list-item-body>\n <div class=\"d-flex\">\n <label class=\"c8y-checkbox a-i-center\">\n <input\n [attr.aria-label]=\"applicationName\"\n type=\"checkbox\"\n [checked]=\"\n allSelected() ||\n (application | alreadyInArray: selectedAppIds()) ||\n applicationAlreadyInappIdsOfGlobalRoles\n \"\n (click)=\"toggleAccess(application)\"\n [disabled]=\"disabledEdit() || applicationAlreadyInappIdsOfGlobalRoles\"\n />\n <span></span>\n <span class=\"icon-36 l-h-1 p-l-8\">\n <c8y-app-icon [app]=\"application\"></c8y-app-icon>\n </span>\n <span\n class=\"m-l-8 text-normal l-h-1\"\n [title]=\"applicationName\"\n >\n {{ applicationName }}\n <br />\n <small class=\"text-muted\">{{ application.contextPath }}</small>\n </span>\n </label>\n <span class=\"m-l-auto\"></span>\n @if (applicationAlreadyInappIdsOfGlobalRoles) {\n <button\n class=\"btn-help\"\n [attr.aria-label]=\"'Help' | translate\"\n [popover]=\"\n 'This application is already made available in a global role' | translate\n \"\n type=\"button\"\n [triggers]=\"'focus'\"\n ></button>\n }\n\n @if (\n (application | notAvailableInOwner: userWithOwner()?.owner) &&\n !applicationAlreadyInappIdsOfGlobalRoles\n ) {\n <button\n class=\"btn-dot\"\n [attr.aria-label]=\"'This application is not accessible by the owner.' | translate\"\n [popover]=\"'This application is not accessible by the owner.' | translate\"\n type=\"button\"\n [triggers]=\"'focus'\"\n >\n <i\n class=\"text-warning\"\n [c8yIcon]=\"'warning'\"\n ></i>\n </button>\n }\n </div>\n </c8y-list-item-body>\n </c8y-list-item>\n }\n </c8y-list-group>\n}\n","import { Component, computed, forwardRef, inject, input, OnInit, signal, ChangeDetectionStrategy } from '@angular/core';\nimport { ApplicationAvailability, ApplicationService, IApplication, IUser } from '@c8y/client';\nimport { C8yTranslatePipe, AppStateService } from '@c8y/ngx-components';\nimport { ApplicationAccessSubListComponent } from '../application-access-sub-list/application-access-sub-list.component';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Component({\n selector: 'c8y-application-access-list',\n templateUrl: './application-access-list.component.html',\n imports: [C8yTranslatePipe, ApplicationAccessSubListComponent],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n multi: true,\n useExisting: forwardRef(() => ApplicationAccessListComponent)\n }\n ],\n changeDetection: ChangeDetectionStrategy.Eager\n})\nexport class ApplicationAccessListComponent implements OnInit, ControlValueAccessor {\n allApps = signal<IApplication[]>([]);\n nonMicroserviceApps = computed(() => {\n return this.allApps().filter(app => app.type !== 'MICROSERVICE');\n });\n marketApps = computed(() => {\n return this.nonMicroserviceApps().filter(\n app => app.availability === ApplicationAvailability.MARKET\n );\n });\n privateApps = computed(() => {\n return this.nonMicroserviceApps().filter(\n app => app.availability === ApplicationAvailability.PRIVATE\n );\n });\n userWithOwner = input<{ user: IUser; owner: IUser | null } | null>(null);\n appIdsOfGlobalRoles = computed(() => {\n const userWithOwner = this.userWithOwner();\n if (!userWithOwner || !userWithOwner.user?.groups) {\n return [];\n }\n const allApps = userWithOwner.user.groups.references\n .map(groupReference => groupReference.group.applications || [])\n .flat();\n\n return Array.from(new Set(allApps.map(app => app.id)));\n });\n disabledEdit = signal<boolean>(false);\n userOwnerAvailable = computed(() => {\n const userWithOwner = this.userWithOwner();\n if (userWithOwner?.owner) {\n return true;\n }\n return false;\n });\n selectedApps = signal<IApplication[]>([]);\n selectedAppIds = computed<(string | number)[]>(() => {\n return this.selectedApps().map(app => app.id);\n });\n allSelected = input<boolean>(false);\n\n private applicationService = inject(ApplicationService);\n private appState = inject(AppStateService);\n\n private onChange: (selectedApps: Partial<IApplication>[]) => void;\n private onTouched: () => void;\n\n async ngOnInit() {\n const { data: apps } = await this.applicationService.listByUser(\n this.appState.currentUser.value,\n { dropOverwrittenApps: true, noPaging: true }\n );\n\n const sortedApps = apps.sort((a, b) => a.name.localeCompare(b.name));\n\n this.allApps.set(sortedApps);\n }\n\n toggleAccess(app: IApplication): void {\n const selectedAppIds = this.selectedAppIds();\n if (selectedAppIds.includes(app.id)) {\n this.selectedApps.set(this.selectedApps().filter(selectedApp => selectedApp.id !== app.id));\n } else {\n this.selectedApps.set([...this.selectedApps(), app]);\n }\n if (this.onChange) {\n this.onChange(this.selectedApps());\n }\n if (this.onTouched) {\n this.onTouched();\n }\n }\n\n writeValue(selectedApps: Partial<IApplication>[]): void {\n this.selectedApps.set(selectedApps);\n }\n\n registerOnChange(fn: (selectedApps: Partial<IApplication>[]) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState?(isDisabled: boolean): void {\n this.disabledEdit.set(isDisabled);\n }\n}\n","<c8y-application-access-sub-list\n [applications]=\"marketApps()\"\n [legend]=\"'Subscribed applications' | translate\"\n [noOwnerAvailable]=\"!userOwnerAvailable()\"\n [appIdsOfGlobalRoles]=\"appIdsOfGlobalRoles()\"\n [userWithOwner]=\"userWithOwner()\"\n [disabledEdit]=\"disabledEdit()\"\n (accessToggled)=\"toggleAccess($event)\"\n [selectedAppIds]=\"selectedAppIds()\"\n [allSelected]=\"allSelected()\"\n></c8y-application-access-sub-list>\n\n<c8y-application-access-sub-list\n [applications]=\"privateApps()\"\n [legend]=\"'Custom applications' | translate\"\n [legendHelpText]=\"'Applications owned by your tenant' | translate\"\n [noOwnerAvailable]=\"!userOwnerAvailable()\"\n [appIdsOfGlobalRoles]=\"appIdsOfGlobalRoles()\"\n [userWithOwner]=\"userWithOwner()\"\n [disabledEdit]=\"disabledEdit()\"\n (accessToggled)=\"toggleAccess($event)\"\n [selectedAppIds]=\"selectedAppIds()\"\n [allSelected]=\"allSelected()\"\n></c8y-application-access-sub-list>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAMa,kBAAkB,CAAA;IAC7B,SAAS,CAAC,WAAyB,EAAE,mBAAwC,EAAA;AAC3E,QAAA,IAAI,CAAC,WAAW,IAAI,CAAC,mBAAmB,IAAI,KAAK,CAAC,OAAO,CAAC,mBAAmB,CAAC,KAAK,KAAK,EAAE;AACxF,YAAA,OAAO,KAAK;QACd;QAEA,OAAO,mBAAmB,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;IACrD;+GAP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f,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAb1C,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,6BAA6B,WAE9B,CAAC,gBAAgB,EAAE,iCAAiC,CAAC,EAAA,SAAA,EACnD;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,KAAK,EAAE,IAAI;AACX,4BAAA,WAAW,EAAE,UAAU,CAAC,oCAAoC;AAC7D;qBACF,EAAA,eAAA,EACgB,uBAAuB,CAAC,KAAK,EAAA,QAAA,EAAA,u9BAAA,EAAA;;;AEjBhD;;AAEG;;;;"}
1
+ {"version":3,"file":"c8y-ngx-components-application-access-list.mjs","sources":["../../application-access/list/already-in-global-role.pipe.ts","../../application-access/list/not-available-in-owner.pipe.ts","../../application-access/list/application-access-sub-list/application-access-sub-list.component.ts","../../application-access/list/application-access-sub-list/application-access-sub-list.component.html","../../application-access/list/application-access-list/application-access-list.component.ts","../../application-access/list/application-access-list/application-access-list.component.html","../../application-access/list/c8y-ngx-components-application-access-list.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport { IApplication } from '@c8y/client';\n\n@Pipe({\n name: 'alreadyInArray'\n})\nexport class AlreadyInArrayPipe implements PipeTransform {\n transform(application: IApplication, appIdsOfGlobalRoles: (string | number)[]): boolean {\n if (!application || !appIdsOfGlobalRoles || Array.isArray(appIdsOfGlobalRoles) === false) {\n return false;\n }\n\n return appIdsOfGlobalRoles.includes(application.id);\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { IApplication, IUser } from '@c8y/client';\n\n@Pipe({\n name: 'notAvailableInOwner'\n})\nexport class NotAvailableInOwnerPipe implements PipeTransform {\n transform(application: IApplication, ownerUser: IUser | null): boolean {\n const ownerApps = ownerUser?.applications;\n if (!ownerApps) {\n return false;\n }\n const isAvailable = ownerApps.some(app => app.id === application.id);\n return !isAvailable;\n }\n}\n","import { AsyncPipe } from '@angular/common';\nimport { Component, input, output, ChangeDetectionStrategy } from '@angular/core';\nimport { IApplication, IUser } from '@c8y/client';\nimport {\n C8yTranslateDirective,\n ListGroupComponent,\n ListItemComponent,\n ListItemBodyComponent,\n C8yTranslatePipe,\n HumanizeAppNamePipe,\n AppIconComponent,\n IconDirective\n} from '@c8y/ngx-components';\nimport { PopoverDirective } from 'ngx-bootstrap/popover';\nimport { AlreadyInArrayPipe } from '../already-in-global-role.pipe';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport { NotAvailableInOwnerPipe } from '../not-available-in-owner.pipe';\n\n@Component({\n selector: 'c8y-application-access-sub-list',\n templateUrl: './application-access-sub-list.component.html',\n imports: [\n C8yTranslateDirective,\n C8yTranslatePipe,\n HumanizeAppNamePipe,\n PopoverDirective,\n ListGroupComponent,\n ListItemComponent,\n ListItemBodyComponent,\n AppIconComponent,\n AsyncPipe,\n AlreadyInArrayPipe,\n NotAvailableInOwnerPipe,\n IconDirective\n ],\n changeDetection: ChangeDetectionStrategy.Eager\n})\nexport class ApplicationAccessSubListComponent {\n applications = input<IApplication[]>();\n legend = input<string>('');\n legendHelpText = input<string>('');\n noOwnerAvailable = input<boolean>(false);\n appIdsOfGlobalRoles = input<(string | number)[]>([]);\n disabledEdit = input<boolean>(false);\n userWithOwner = input<{ user: IUser; owner: IUser | null } | null>(null);\n selectedAppIds = input<(string | number)[]>([]);\n allSelected = input<boolean>(false);\n\n accessToggled = output<IApplication>();\n\n noOwnerMessage = gettext(\n `You don't have the permission required to manage application access for {{ user.userName }}.`\n );\n\n toggleAccess(application: IApplication): void {\n this.accessToggled.emit(application);\n }\n}\n","@if (applications().length) {\n <div class=\"legend form-block\">\n {{ legend() | translate }}\n @if (legendHelpText()) {\n <button\n class=\"btn-help btn-help--sm\"\n [attr.aria-label]=\"'Help' | translate\"\n [popover]=\"legendHelpText() | translate\"\n type=\"button\"\n [triggers]=\"'focus'\"\n ></button>\n }\n </div>\n\n @if (disabledEdit() && noOwnerAvailable()) {\n <div class=\"alert alert-info\">\n {{ noOwnerMessage | translate: { 'user.userName': userWithOwner()?.user.userName } }}\n </div>\n }\n\n <c8y-list-group>\n @for (application of applications(); track application.id) {\n @let applicationAlreadyInappIdsOfGlobalRoles =\n application | alreadyInArray: appIdsOfGlobalRoles();\n @let applicationName = application | humanizeAppName | async;\n <c8y-list-item>\n <c8y-list-item-body>\n <div class=\"d-flex\">\n <label class=\"c8y-checkbox a-i-center\">\n <input\n [attr.aria-label]=\"applicationName\"\n type=\"checkbox\"\n [checked]=\"\n allSelected() ||\n (application | alreadyInArray: selectedAppIds()) ||\n applicationAlreadyInappIdsOfGlobalRoles\n \"\n (click)=\"toggleAccess(application)\"\n [disabled]=\"disabledEdit() || applicationAlreadyInappIdsOfGlobalRoles\"\n />\n <span></span>\n <span class=\"icon-36 l-h-1 p-l-8\">\n <c8y-app-icon [app]=\"application\"></c8y-app-icon>\n </span>\n <span\n class=\"m-l-8 text-normal l-h-1\"\n [title]=\"applicationName\"\n >\n {{ applicationName }}\n <br />\n <small class=\"text-muted\">{{ application.contextPath }}</small>\n </span>\n </label>\n <span class=\"m-l-auto\"></span>\n @if (applicationAlreadyInappIdsOfGlobalRoles) {\n <button\n class=\"btn-help\"\n [attr.aria-label]=\"'Help' | translate\"\n [popover]=\"\n 'This application is already made available in a global role' | translate\n \"\n type=\"button\"\n [triggers]=\"'focus'\"\n ></button>\n }\n\n @if (\n (application | notAvailableInOwner: userWithOwner()?.owner) &&\n !applicationAlreadyInappIdsOfGlobalRoles\n ) {\n <button\n class=\"btn-dot\"\n [attr.aria-label]=\"'This application is not accessible by the owner.' | translate\"\n [popover]=\"'This application is not accessible by the owner.' | translate\"\n type=\"button\"\n [triggers]=\"'focus'\"\n >\n <i\n class=\"text-warning\"\n [c8yIcon]=\"'warning'\"\n ></i>\n </button>\n }\n </div>\n </c8y-list-item-body>\n </c8y-list-item>\n }\n </c8y-list-group>\n}\n","import { Component, computed, forwardRef, inject, input, OnInit, signal, ChangeDetectionStrategy } from '@angular/core';\nimport { ApplicationAvailability, ApplicationService, IApplication, IUser } from '@c8y/client';\nimport { C8yTranslatePipe, AppStateService } from '@c8y/ngx-components';\nimport { ApplicationAccessSubListComponent } from '../application-access-sub-list/application-access-sub-list.component';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Component({\n selector: 'c8y-application-access-list',\n templateUrl: './application-access-list.component.html',\n imports: [C8yTranslatePipe, ApplicationAccessSubListComponent],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n multi: true,\n useExisting: forwardRef(() => ApplicationAccessListComponent)\n }\n ],\n changeDetection: ChangeDetectionStrategy.Eager\n})\nexport class ApplicationAccessListComponent implements OnInit, ControlValueAccessor {\n allApps = signal<IApplication[]>([]);\n nonMicroserviceApps = computed(() => {\n return this.allApps().filter(app => app.type !== 'MICROSERVICE');\n });\n marketApps = computed(() => {\n return this.nonMicroserviceApps().filter(\n app => app.availability === ApplicationAvailability.MARKET\n );\n });\n privateApps = computed(() => {\n return this.nonMicroserviceApps().filter(\n app => app.availability === ApplicationAvailability.PRIVATE\n );\n });\n userWithOwner = input<{ user: IUser; owner: IUser | null } | null>(null);\n appIdsOfGlobalRoles = computed(() => {\n const userWithOwner = this.userWithOwner();\n if (!userWithOwner || !userWithOwner.user?.groups) {\n return [];\n }\n const allApps = userWithOwner.user.groups.references\n .map(groupReference => groupReference.group.applications || [])\n .flat();\n\n return Array.from(new Set(allApps.map(app => app.id)));\n });\n disabledEdit = signal<boolean>(false);\n userOwnerAvailable = computed(() => {\n const userWithOwner = this.userWithOwner();\n if (userWithOwner?.owner) {\n return true;\n }\n return false;\n });\n selectedApps = signal<IApplication[]>([]);\n selectedAppIds = computed<(string | number)[]>(() => {\n return this.selectedApps().map(app => app.id);\n });\n allSelected = input<boolean>(false);\n\n private applicationService = inject(ApplicationService);\n private appState = inject(AppStateService);\n\n private onChange: (selectedApps: Partial<IApplication>[]) => void;\n private onTouched: () => void;\n\n async ngOnInit() {\n const { data: apps } = await this.applicationService.listByUser(\n this.appState.currentUser.value,\n { dropOverwrittenApps: true, noPaging: true }\n );\n\n const sortedApps = apps.sort((a, b) => a.name.localeCompare(b.name));\n\n this.allApps.set(sortedApps);\n }\n\n toggleAccess(app: IApplication): void {\n const selectedAppIds = this.selectedAppIds();\n if (selectedAppIds.includes(app.id)) {\n this.selectedApps.set(this.selectedApps().filter(selectedApp => selectedApp.id !== app.id));\n } else {\n this.selectedApps.set([...this.selectedApps(), app]);\n }\n if (this.onChange) {\n this.onChange(this.selectedApps());\n }\n if (this.onTouched) {\n this.onTouched();\n }\n }\n\n writeValue(selectedApps: Partial<IApplication>[]): void {\n this.selectedApps.set(selectedApps);\n }\n\n registerOnChange(fn: (selectedApps: Partial<IApplication>[]) => void): void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState?(isDisabled: boolean): void {\n this.disabledEdit.set(isDisabled);\n }\n}\n","<c8y-application-access-sub-list\n [applications]=\"marketApps()\"\n [legend]=\"'Subscribed applications' | translate\"\n [noOwnerAvailable]=\"!userOwnerAvailable()\"\n [appIdsOfGlobalRoles]=\"appIdsOfGlobalRoles()\"\n [userWithOwner]=\"userWithOwner()\"\n [disabledEdit]=\"disabledEdit()\"\n (accessToggled)=\"toggleAccess($event)\"\n [selectedAppIds]=\"selectedAppIds()\"\n [allSelected]=\"allSelected()\"\n></c8y-application-access-sub-list>\n\n<c8y-application-access-sub-list\n [applications]=\"privateApps()\"\n [legend]=\"'Custom applications' | translate\"\n [legendHelpText]=\"'Applications owned by your tenant' | translate\"\n [noOwnerAvailable]=\"!userOwnerAvailable()\"\n [appIdsOfGlobalRoles]=\"appIdsOfGlobalRoles()\"\n [userWithOwner]=\"userWithOwner()\"\n [disabledEdit]=\"disabledEdit()\"\n (accessToggled)=\"toggleAccess($event)\"\n [selectedAppIds]=\"selectedAppIds()\"\n [allSelected]=\"allSelected()\"\n></c8y-application-access-sub-list>\n","/**\n * Generated bundle index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AA,EAAA,MAAA,EAAA,CAAA,cAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,qBAAA,EAAA,cAAA,EAAA,eAAA,EAAA,gBAAA,EAAA,aAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAnD,gBAAgB,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA,CAAA;;4FAUf,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAb1C,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,6BAA6B,WAE9B,CAAC,gBAAgB,EAAE,iCAAiC,CAAC,EAAA,SAAA,EACnD;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,KAAK,EAAE,IAAI;AACX,4BAAA,WAAW,EAAE,UAAU,CAAC,oCAAoC;AAC7D;qBACF,EAAA,eAAA,EACgB,uBAAuB,CAAC,KAAK,EAAA,QAAA,EAAA,u9BAAA,EAAA;;;AEjBhD;;AAEG;;;;"}
@@ -1673,7 +1673,7 @@ class PaginatedListGroupComponent {
1673
1673
  }
1674
1674
  }
1675
1675
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PaginatedListGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1676
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.19", type: PaginatedListGroupComponent, isStandalone: true, selector: "c8y-paginated-list-group", inputs: { items: "items", itemsPerPage: "itemsPerPage" }, queries: [{ propertyName: "itemTemplate", first: true, predicate: TemplateRef, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"container-fluid\"\n *ngIf=\"items.length > 0\"\n>\n <c8y-list-group>\n <c8y-li *ngFor=\"let item of currentPageItems; let i = index\">\n <ng-container\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item, index: getItemIndex(item) }\"\n ></ng-container>\n </c8y-li>\n <c8y-li class=\"sticky-bottom\">\n <pagination\n [totalItems]=\"items.length\"\n [(ngModel)]=\"currentPage\"\n [ngModelOptions]=\"{ standalone: true }\"\n [itemsPerPage]=\"itemsPerPage\"\n (pageChanged)=\"pageChanged($event)\"\n [maxSize]=\"10\"\n [boundaryLinks]=\"true\"\n previousText=\"&nbsp;\"\n nextText=\"&nbsp;\"\n firstText=\"&laquo;\"\n lastText=\"&raquo;\"\n ></pagination>\n </c8y-li>\n </c8y-list-group>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2.ListGroupComponent, selector: "c8y-list-group" }, { kind: "component", type: i2.ListItemComponent, selector: "c8y-list-item, c8y-li", inputs: ["active", "highlighted", "emptyActions", "dense", "collapsed", "selectable"], outputs: ["collapsedChange"] }, { kind: "ngmodule", type: PaginationModule }, { kind: "component", type: i4.PaginationComponent, selector: "pagination", inputs: ["align", "maxSize", "boundaryLinks", "directionLinks", "firstText", "previousText", "nextText", "lastText", "rotate", "pageBtnClass", "disabled", "customPageTemplate", "customNextTemplate", "customPreviousTemplate", "customFirstTemplate", "customLastTemplate", "itemsPerPage", "totalItems"], outputs: ["numPages", "pageChanged"] }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
1676
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.19", type: PaginatedListGroupComponent, isStandalone: true, selector: "c8y-paginated-list-group", inputs: { items: "items", itemsPerPage: "itemsPerPage" }, queries: [{ propertyName: "itemTemplate", first: true, predicate: TemplateRef, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"container-fluid\"\n *ngIf=\"items.length > 0\"\n>\n <c8y-list-group>\n <c8y-li *ngFor=\"let item of currentPageItems; let i = index\">\n <ng-container\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item, index: getItemIndex(item) }\"\n ></ng-container>\n </c8y-li>\n <c8y-li class=\"sticky-bottom\">\n <pagination\n [totalItems]=\"items.length\"\n [(ngModel)]=\"currentPage\"\n [ngModelOptions]=\"{ standalone: true }\"\n [itemsPerPage]=\"itemsPerPage\"\n (pageChanged)=\"pageChanged($event)\"\n [maxSize]=\"10\"\n [boundaryLinks]=\"true\"\n previousText=\"&nbsp;\"\n nextText=\"&nbsp;\"\n firstText=\"&laquo;\"\n lastText=\"&raquo;\"\n ></pagination>\n </c8y-li>\n </c8y-list-group>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2.ListGroupComponent, selector: "c8y-list-group" }, { kind: "component", type: i2.ListItemComponent, selector: "c8y-list-item, c8y-li", inputs: ["active", "highlighted", "emptyActions", "dense", "collapsed", "selectable", "selectOnClick"], outputs: ["collapsedChange"] }, { kind: "ngmodule", type: PaginationModule }, { kind: "component", type: i4.PaginationComponent, selector: "pagination", inputs: ["align", "maxSize", "boundaryLinks", "directionLinks", "firstText", "previousText", "nextText", "lastText", "rotate", "pageBtnClass", "disabled", "customPageTemplate", "customNextTemplate", "customPreviousTemplate", "customFirstTemplate", "customLastTemplate", "itemsPerPage", "totalItems"], outputs: ["numPages", "pageChanged"] }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
1677
1677
  }
1678
1678
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.19", ngImport: i0, type: PaginatedListGroupComponent, decorators: [{
1679
1679
  type: Component,