@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.
- package/cockpit-config/cockpit-config.model.d.ts +1 -0
- package/cockpit-config/cockpit-config.model.d.ts.map +1 -1
- package/context-dashboard/dashboard-manager/dashboard-manager.module.d.ts.map +1 -1
- package/core/common/options.service.d.ts +1 -1
- package/core/common/options.service.d.ts.map +1 -1
- package/core/forms/validation-pattern.d.ts +4 -0
- package/core/forms/validation-pattern.d.ts.map +1 -1
- package/core/plugins/plugins.service.d.ts +1 -1
- package/core/plugins/plugins.service.d.ts.map +1 -1
- package/esm2022/assets-navigator/asset-selector/asset-selector-node.component.mjs +3 -3
- package/esm2022/cockpit-config/cockpit-config.model.mjs +3 -2
- package/esm2022/cockpit-config/feature-config.component.mjs +3 -3
- package/esm2022/context-dashboard/dashboard-manager/dashboard-manager.module.mjs +5 -3
- package/esm2022/core/common/options.service.mjs +3 -3
- package/esm2022/core/docs/defaults.items.mjs +2 -2
- package/esm2022/core/forms/validation-pattern.mjs +5 -1
- package/esm2022/core/plugins/plugins.service.mjs +3 -3
- package/esm2022/core/router/context-route.guard.mjs +2 -2
- package/esm2022/core/search/search-input.component.mjs +3 -3
- package/esm2022/operations/bulk-operation-scheduler/operation-scheduler.component.mjs +7 -5
- package/esm2022/search/search-action.component.mjs +3 -3
- package/esm2022/tenants/custom-properties/custom-properties.component.mjs +90 -0
- package/esm2022/tenants/custom-properties/custom-properties.service.mjs +76 -0
- package/esm2022/tenants/custom-properties/custom-property-field/custom-property-field.component.mjs +29 -0
- package/esm2022/tenants/index.mjs +2 -1
- package/esm2022/tenants/tenant-limits/tenant-limits-definitions.mjs +92 -0
- package/esm2022/tenants/tenant-limits/tenant-limits.component.mjs +124 -0
- package/esm2022/tenants/tenants.module.mjs +42 -4
- package/esm2022/widgets/implementations/help-and-service-widget/help-and-service-view/help-and-service-view.component.mjs +2 -2
- package/fesm2022/c8y-ngx-components-assets-navigator.mjs +2 -2
- package/fesm2022/c8y-ngx-components-assets-navigator.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-cockpit-config.mjs +4 -3
- package/fesm2022/c8y-ngx-components-cockpit-config.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs +4 -2
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-bulk-operation-scheduler.mjs +6 -4
- package/fesm2022/c8y-ngx-components-operations-bulk-operation-scheduler.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-search.mjs +2 -2
- package/fesm2022/c8y-ngx-components-search.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-tenants.mjs +416 -11
- package/fesm2022/c8y-ngx-components-tenants.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-help-and-service-widget.mjs +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-help-and-service-widget.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +277 -273
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/locales/de.po +4 -1
- package/locales/en.po +3 -0
- package/locales/en_US.po +3 -0
- package/locales/es.po +3 -0
- package/locales/fr.po +3 -0
- package/locales/ja_JP.po +3 -0
- package/locales/locales.pot +38 -0
- package/locales/nl.po +3 -0
- package/locales/pl.po +3 -0
- package/locales/pt_BR.po +3 -0
- package/operations/bulk-operation-scheduler/operation-scheduler.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/tenants/custom-properties/custom-properties.component.d.ts +26 -0
- package/tenants/custom-properties/custom-properties.component.d.ts.map +1 -0
- package/tenants/custom-properties/custom-properties.service.d.ts +26 -0
- package/tenants/custom-properties/custom-properties.service.d.ts.map +1 -0
- package/tenants/custom-properties/custom-property-field/custom-property-field.component.d.ts +10 -0
- package/tenants/custom-properties/custom-property-field/custom-property-field.component.d.ts.map +1 -0
- package/tenants/index.d.ts +1 -0
- package/tenants/index.d.ts.map +1 -1
- package/tenants/tenant-limits/tenant-limits-definitions.d.ts +117 -0
- package/tenants/tenant-limits/tenant-limits-definitions.d.ts.map +1 -0
- package/tenants/tenant-limits/tenant-limits.component.d.ts +39 -0
- package/tenants/tenant-limits/tenant-limits.component.d.ts.map +1 -0
- 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;;;;;;;;
|
|
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"}
|