@c8y/ngx-components 1021.7.0 → 1021.11.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.
Files changed (70) hide show
  1. package/cockpit-config/cockpit-config.model.d.ts +1 -0
  2. package/cockpit-config/cockpit-config.model.d.ts.map +1 -1
  3. package/context-dashboard/dashboard-manager/dashboard-manager.module.d.ts.map +1 -1
  4. package/core/common/options.service.d.ts +1 -1
  5. package/core/common/options.service.d.ts.map +1 -1
  6. package/core/forms/validation-pattern.d.ts +4 -0
  7. package/core/forms/validation-pattern.d.ts.map +1 -1
  8. package/core/plugins/plugins.service.d.ts +1 -1
  9. package/core/plugins/plugins.service.d.ts.map +1 -1
  10. package/esm2022/assets-navigator/asset-selector/asset-selector-node.component.mjs +3 -3
  11. package/esm2022/cockpit-config/cockpit-config.model.mjs +3 -2
  12. package/esm2022/cockpit-config/feature-config.component.mjs +3 -3
  13. package/esm2022/context-dashboard/dashboard-manager/dashboard-manager.module.mjs +5 -3
  14. package/esm2022/core/common/options.service.mjs +3 -3
  15. package/esm2022/core/docs/defaults.items.mjs +2 -2
  16. package/esm2022/core/forms/validation-pattern.mjs +5 -1
  17. package/esm2022/core/plugins/plugins.service.mjs +3 -3
  18. package/esm2022/core/router/context-route.guard.mjs +2 -2
  19. package/esm2022/core/search/search-input.component.mjs +3 -3
  20. package/esm2022/operations/bulk-operation-scheduler/operation-scheduler.component.mjs +7 -5
  21. package/esm2022/search/search-action.component.mjs +3 -3
  22. package/esm2022/tenants/custom-properties/custom-properties.component.mjs +90 -0
  23. package/esm2022/tenants/custom-properties/custom-properties.service.mjs +76 -0
  24. package/esm2022/tenants/custom-properties/custom-property-field/custom-property-field.component.mjs +29 -0
  25. package/esm2022/tenants/index.mjs +2 -1
  26. package/esm2022/tenants/tenant-limits/tenant-limits-definitions.mjs +92 -0
  27. package/esm2022/tenants/tenant-limits/tenant-limits.component.mjs +124 -0
  28. package/esm2022/tenants/tenants.module.mjs +42 -4
  29. package/esm2022/widgets/implementations/help-and-service-widget/help-and-service-view/help-and-service-view.component.mjs +2 -2
  30. package/fesm2022/c8y-ngx-components-assets-navigator.mjs +2 -2
  31. package/fesm2022/c8y-ngx-components-assets-navigator.mjs.map +1 -1
  32. package/fesm2022/c8y-ngx-components-cockpit-config.mjs +4 -3
  33. package/fesm2022/c8y-ngx-components-cockpit-config.mjs.map +1 -1
  34. package/fesm2022/c8y-ngx-components-context-dashboard.mjs +4 -2
  35. package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
  36. package/fesm2022/c8y-ngx-components-operations-bulk-operation-scheduler.mjs +6 -4
  37. package/fesm2022/c8y-ngx-components-operations-bulk-operation-scheduler.mjs.map +1 -1
  38. package/fesm2022/c8y-ngx-components-search.mjs +2 -2
  39. package/fesm2022/c8y-ngx-components-search.mjs.map +1 -1
  40. package/fesm2022/c8y-ngx-components-tenants.mjs +416 -11
  41. package/fesm2022/c8y-ngx-components-tenants.mjs.map +1 -1
  42. package/fesm2022/c8y-ngx-components-widgets-implementations-help-and-service-widget.mjs +1 -1
  43. package/fesm2022/c8y-ngx-components-widgets-implementations-help-and-service-widget.mjs.map +1 -1
  44. package/fesm2022/c8y-ngx-components.mjs +277 -273
  45. package/fesm2022/c8y-ngx-components.mjs.map +1 -1
  46. package/locales/de.po +4 -1
  47. package/locales/en.po +3 -0
  48. package/locales/en_US.po +3 -0
  49. package/locales/es.po +3 -0
  50. package/locales/fr.po +3 -0
  51. package/locales/ja_JP.po +3 -0
  52. package/locales/locales.pot +38 -0
  53. package/locales/nl.po +3 -0
  54. package/locales/pl.po +3 -0
  55. package/locales/pt_BR.po +3 -0
  56. package/operations/bulk-operation-scheduler/operation-scheduler.component.d.ts.map +1 -1
  57. package/package.json +1 -1
  58. package/tenants/custom-properties/custom-properties.component.d.ts +26 -0
  59. package/tenants/custom-properties/custom-properties.component.d.ts.map +1 -0
  60. package/tenants/custom-properties/custom-properties.service.d.ts +26 -0
  61. package/tenants/custom-properties/custom-properties.service.d.ts.map +1 -0
  62. package/tenants/custom-properties/custom-property-field/custom-property-field.component.d.ts +10 -0
  63. package/tenants/custom-properties/custom-property-field/custom-property-field.component.d.ts.map +1 -0
  64. package/tenants/index.d.ts +1 -0
  65. package/tenants/index.d.ts.map +1 -1
  66. package/tenants/tenant-limits/tenant-limits-definitions.d.ts +117 -0
  67. package/tenants/tenant-limits/tenant-limits-definitions.d.ts.map +1 -0
  68. package/tenants/tenant-limits/tenant-limits.component.d.ts +39 -0
  69. package/tenants/tenant-limits/tenant-limits.component.d.ts.map +1 -0
  70. package/tenants/tenants.module.d.ts.map +1 -1
@@ -0,0 +1,117 @@
1
+ import { ValidatorFn } from '@angular/forms';
2
+ export interface TenantLimit {
3
+ id: string;
4
+ validators: ValidatorFn[];
5
+ defaultValue: number | string | boolean | null;
6
+ type: 'text' | 'checkbox' | 'number';
7
+ label: string;
8
+ labelArgs?: object;
9
+ placeholder?: string;
10
+ placeholderArgs?: object;
11
+ }
12
+ /**
13
+ * Define all hardTyped custom properties, and their configuration in one place.
14
+ *
15
+ * This exported const utilizes typescript inferring,
16
+ * while still benefiting from hard typing, thanks to "satisfies" keyword
17
+ */
18
+ declare const tenantLimitsCustomPropertiesDefinition: {
19
+ externalReference: {
20
+ id: string;
21
+ validators: any[];
22
+ defaultValue: any;
23
+ type: "text";
24
+ label: "External reference";
25
+ placeholder: "e.g. REF12345`reference number`";
26
+ };
27
+ limitDevicesNumber: {
28
+ id: string;
29
+ validators: ValidatorFn[];
30
+ defaultValue: any;
31
+ type: "number";
32
+ label: "Limit number of devices";
33
+ placeholder: "e.g. {{ example }}";
34
+ placeholderArgs: {
35
+ example: number;
36
+ };
37
+ };
38
+ limitHttpRequests: {
39
+ id: string;
40
+ validators: ValidatorFn[];
41
+ defaultValue: any;
42
+ type: "number";
43
+ label: "Limit HTTP requests";
44
+ placeholder: "e.g. {{ example }}";
45
+ placeholderArgs: {
46
+ example: number;
47
+ };
48
+ };
49
+ limitHttpQueue: {
50
+ id: string;
51
+ validators: ValidatorFn[];
52
+ defaultValue: any;
53
+ type: "number";
54
+ label: "Limit HTTP queue";
55
+ placeholder: "e.g. {{ example }}";
56
+ placeholderArgs: {
57
+ example: number;
58
+ };
59
+ };
60
+ limitStreamRequests: {
61
+ id: string;
62
+ validators: ValidatorFn[];
63
+ defaultValue: any;
64
+ type: "number";
65
+ label: "Limit stream requests";
66
+ placeholder: "e.g. {{ example }}";
67
+ placeholderArgs: {
68
+ example: number;
69
+ };
70
+ };
71
+ limitStreamQueue: {
72
+ id: string;
73
+ validators: ValidatorFn[];
74
+ defaultValue: any;
75
+ type: "number";
76
+ label: "Limit stream queue";
77
+ placeholder: "e.g. {{ example }}";
78
+ placeholderArgs: {
79
+ example: number;
80
+ };
81
+ };
82
+ cepServerQueueLimit: {
83
+ id: string;
84
+ validators: ValidatorFn[];
85
+ defaultValue: any;
86
+ type: "number";
87
+ label: "Limit CEP server queue";
88
+ placeholder: "e.g. {{ example }}";
89
+ placeholderArgs: {
90
+ example: number;
91
+ };
92
+ };
93
+ dataBrokerQueueLimit: {
94
+ id: string;
95
+ validators: ValidatorFn[];
96
+ defaultValue: any;
97
+ type: "number";
98
+ label: "Limit data broker queue";
99
+ placeholder: "e.g. {{ example }}";
100
+ placeholderArgs: {
101
+ example: number;
102
+ };
103
+ };
104
+ gainsightEnabled: {
105
+ id: string;
106
+ validators: any[];
107
+ defaultValue: false;
108
+ type: "checkbox";
109
+ label: "Enable Gainsight product experience tracking";
110
+ };
111
+ };
112
+ type Keys = keyof typeof tenantLimitsCustomPropertiesDefinition;
113
+ export declare const tenantLimitsCustomProperties: {
114
+ [K in Keys]: TenantLimit;
115
+ };
116
+ export {};
117
+ //# sourceMappingURL=tenant-limits-definitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenant-limits-definitions.d.ts","sourceRoot":"","sources":["../../../tenants/tenant-limits/tenant-limits-definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAc,MAAM,gBAAgB,CAAC;AAIzD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,WAAW,EAAE,CAAC;IAC1B,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IAC/C,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;GAKG;AACH,QAAA,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFL,CAAC;AAExC,KAAK,IAAI,GAAG,MAAM,OAAO,sCAAsC,CAAC;AAEhE,eAAO,MAAM,4BAA4B,EAAE;KAAG,CAAC,IAAI,IAAI,GAAG,WAAW;CAC7B,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { ApplicationService, ITenant, TenantOptionsService, TenantService } from '@c8y/client';
4
+ import { ActivatedRoute } from '@angular/router';
5
+ import { AlertService } from '@c8y/ngx-components';
6
+ import * as i0 from "@angular/core";
7
+ export declare class TenantLimitsComponent implements OnInit {
8
+ private tenantService;
9
+ private tenantOptionsService;
10
+ private alertService;
11
+ private activatedRoute;
12
+ private applicationService;
13
+ fieldDefinitions: {
14
+ externalReference: import("./tenant-limits-definitions").TenantLimit;
15
+ limitDevicesNumber: import("./tenant-limits-definitions").TenantLimit;
16
+ limitHttpRequests: import("./tenant-limits-definitions").TenantLimit;
17
+ limitHttpQueue: import("./tenant-limits-definitions").TenantLimit;
18
+ limitStreamRequests: import("./tenant-limits-definitions").TenantLimit;
19
+ limitStreamQueue: import("./tenant-limits-definitions").TenantLimit;
20
+ cepServerQueueLimit: import("./tenant-limits-definitions").TenantLimit;
21
+ dataBrokerQueueLimit: import("./tenant-limits-definitions").TenantLimit;
22
+ gainsightEnabled: import("./tenant-limits-definitions").TenantLimit;
23
+ };
24
+ fieldKeys: string[];
25
+ limitsForm: FormGroup;
26
+ tenant: ITenant | null;
27
+ initialized: boolean;
28
+ constructor(tenantService: TenantService, tenantOptionsService: TenantOptionsService, alertService: AlertService, activatedRoute: ActivatedRoute, applicationService: ApplicationService);
29
+ ngOnInit(): Promise<void>;
30
+ onSubmit(): Promise<void>;
31
+ private loadTenantDetails;
32
+ private setupConditionalFields;
33
+ private isGainsightAvailable;
34
+ private generateForm;
35
+ private getDirtyValues;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<TenantLimitsComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<TenantLimitsComponent, "c8y-tenant-limits", never, {}, {}, never, never, true, never>;
38
+ }
39
+ //# sourceMappingURL=tenant-limits.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenant-limits.component.d.ts","sourceRoot":"","sources":["../../../tenants/tenant-limits/tenant-limits.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,SAAS,EAAoC,MAAM,gBAAgB,CAAC;AAE7E,OAAO,EACL,kBAAkB,EAElB,OAAO,EACP,oBAAoB,EACpB,aAAa,EACd,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAc,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAoC,MAAM,qBAAqB,CAAC;;AAIrF,qBAMa,qBAAsB,YAAW,MAAM;IAQhD,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,oBAAoB;IAC5B,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,kBAAkB;IAX5B,gBAAgB;;;;;;;;;;MAAuC;IACvD,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,UAAU,EAAE,SAAS,CAAqB;IAC1C,MAAM,EAAE,OAAO,GAAG,IAAI,CAAQ;IAC9B,WAAW,UAAS;gBAGV,aAAa,EAAE,aAAa,EAC5B,oBAAoB,EAAE,oBAAoB,EAC1C,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB;IAG1C,QAAQ;IAOR,QAAQ;YAqBA,iBAAiB;YAWjB,sBAAsB;YA8BtB,oBAAoB;IAgBlC,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,cAAc;yCA5GX,qBAAqB;2CAArB,qBAAqB;CAsHjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tenants.module.d.ts","sourceRoot":"","sources":["../../tenants/tenants.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAY,MAAM,eAAe,CAAC;AAS9D,OAAO,EAAE,mBAAmB,EAAyB,MAAM,iBAAiB,CAAC;;;;;;;;AAG7E,qBAmBa,aAAa;IACxB,MAAM,CAAC,MAAM,CAAC,MAAM,GAAE,mBAAwB,GAAG,mBAAmB,CAAC,aAAa,CAAC;yCADxE,aAAa;0CAAb,aAAa;0CAAb,aAAa;CAYzB"}
1
+ {"version":3,"file":"tenants.module.d.ts","sourceRoot":"","sources":["../../tenants/tenants.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAY,MAAM,eAAe,CAAC;AAS9D,OAAO,EAAE,mBAAmB,EAAyB,MAAM,iBAAiB,CAAC;;;;;;;;AAK7E,qBAqCa,aAAa;IACxB,MAAM,CAAC,MAAM,CAAC,MAAM,GAAE,mBAAwB,GAAG,mBAAmB,CAAC,aAAa,CAAC;yCADxE,aAAa;0CAAb,aAAa;0CAAb,aAAa;CAYzB"}