@c8y/ng1-modules 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/core/locales/de.po +4 -1
- package/core/locales/en.po +3 -0
- package/core/locales/en_US.po +3 -0
- package/core/locales/es.po +3 -0
- package/core/locales/fr.po +3 -0
- package/core/locales/ja_JP.po +3 -0
- package/core/locales/nl.po +3 -0
- package/core/locales/pl.po +3 -0
- package/core/locales/pt_BR.po +3 -0
- package/core/ui/schemaForm/schemaPropertyEditor.component.js +1 -1
- package/core/ui/schemaForm/schemaPropertyEditor.html +1 -0
- package/package.json +1 -1
- package/tenantApplications/subscribed-applications/subscribed-applications.component.js +1 -1
- package/tenantApplications/subscribed-applications/subscribed-applications.html +2 -0
- package/tenantApplications/views/index.html +1 -0
- package/tenants/controllers/customProperties.js +1 -1
- package/tenants/index.js +1 -1
- package/tenants/views/customProperties.html +65 -54
- package/tenants/views/detail.html +2 -0
package/core/locales/de.po
CHANGED
|
@@ -5375,8 +5375,11 @@ msgstr "Anzeigen"
|
|
|
5375
5375
|
msgid "Display a configurable SVG."
|
|
5376
5376
|
msgstr "Zeigt eine konfigurierbare Vektorgrafik (SVG) an."
|
|
5377
5377
|
|
|
5378
|
+
msgid "Display a link to the Dashboard manager under the Configuration navigator menu."
|
|
5379
|
+
msgstr "Zeigt einen Link zum Dashboard-Manager unter dem Konfigurationsnavigatormenü."
|
|
5380
|
+
|
|
5378
5381
|
msgid "Display a link to the Data point library under the Configuration navigator menu."
|
|
5379
|
-
msgstr "Zeigen Sie eine Verknüpfung zur Datenpunktbibliothek im
|
|
5382
|
+
msgstr "Zeigen Sie eine Verknüpfung zur Datenpunktbibliothek im Konfigurationsnavigatormenü an."
|
|
5380
5383
|
|
|
5381
5384
|
msgid "Display a link to the Exports list under the Configuration navigator menu."
|
|
5382
5385
|
msgstr "Zeigen Sie einen Link zur Exportliste im Konfigurationsnavigatormenü an."
|
package/core/locales/en.po
CHANGED
|
@@ -781,6 +781,9 @@ msgstr "e.g. Doe"
|
|
|
781
781
|
msgid "e.g. Joe`LOCALIZE`"
|
|
782
782
|
msgstr "e.g. Joe"
|
|
783
783
|
|
|
784
|
+
msgid "e.g. REF12345`reference number`"
|
|
785
|
+
msgstr "e.g. REF12345"
|
|
786
|
+
|
|
784
787
|
msgid "e.g. Speditionstraße 13, Düsseldorf`LOCALIZE`"
|
|
785
788
|
msgstr "e.g. Speditionstraße 13, Düsseldorf"
|
|
786
789
|
|
package/core/locales/en_US.po
CHANGED
|
@@ -781,6 +781,9 @@ msgstr "e.g. Doe"
|
|
|
781
781
|
msgid "e.g. Joe`LOCALIZE`"
|
|
782
782
|
msgstr "e.g. Joe"
|
|
783
783
|
|
|
784
|
+
msgid "e.g. REF12345`reference number`"
|
|
785
|
+
msgstr "e.g. REF12345"
|
|
786
|
+
|
|
784
787
|
msgid "e.g. Speditionstraße 13, Düsseldorf`LOCALIZE`"
|
|
785
788
|
msgstr "e.g. Speditionstraße 13, Düsseldorf"
|
|
786
789
|
|
package/core/locales/es.po
CHANGED
|
@@ -5385,6 +5385,9 @@ msgstr "Mostrar"
|
|
|
5385
5385
|
msgid "Display a configurable SVG."
|
|
5386
5386
|
msgstr "Mostrar un SVG configurable."
|
|
5387
5387
|
|
|
5388
|
+
msgid "Display a link to the Dashboard manager under the Configuration navigator menu."
|
|
5389
|
+
msgstr "Mostrar un enlace al Administrador de cuadros de mando en el menú del navegador Configuración."
|
|
5390
|
+
|
|
5388
5391
|
msgid "Display a link to the Data point library under the Configuration navigator menu."
|
|
5389
5392
|
msgstr "Muestra un enlace a la biblioteca de punto de datos en el menú de navegador de configuración."
|
|
5390
5393
|
|
package/core/locales/fr.po
CHANGED
|
@@ -5385,6 +5385,9 @@ msgstr "Affichage"
|
|
|
5385
5385
|
msgid "Display a configurable SVG."
|
|
5386
5386
|
msgstr "Afficher un SVG configurable."
|
|
5387
5387
|
|
|
5388
|
+
msgid "Display a link to the Dashboard manager under the Configuration navigator menu."
|
|
5389
|
+
msgstr "Afficher un lien vers le gestionnaire du Tableau de bord dans le menu du navigateur Configuration."
|
|
5390
|
+
|
|
5388
5391
|
msgid "Display a link to the Data point library under the Configuration navigator menu."
|
|
5389
5392
|
msgstr "Affichez un lien vers la librairie de points de données dans le menu Configuration du navigateur."
|
|
5390
5393
|
|
package/core/locales/ja_JP.po
CHANGED
|
@@ -5366,6 +5366,9 @@ msgstr "表示する"
|
|
|
5366
5366
|
msgid "Display a configurable SVG."
|
|
5367
5367
|
msgstr "設定可能な SVG ファイルを表示。"
|
|
5368
5368
|
|
|
5369
|
+
msgid "Display a link to the Dashboard manager under the Configuration navigator menu."
|
|
5370
|
+
msgstr "構成ナビゲーターメニューの下にダッシュボードマネージャーへのリンクを表示します。"
|
|
5371
|
+
|
|
5369
5372
|
# /* locked: requested by customer in MTM-52050 */
|
|
5370
5373
|
msgid "Display a link to the Data point library under the Configuration navigator menu."
|
|
5371
5374
|
msgstr "ナビゲーターメニューの [構成] の下にデータ ポイント ライブラリへのリンクを表示します。"
|
package/core/locales/nl.po
CHANGED
|
@@ -5385,6 +5385,9 @@ msgstr "Weergeven"
|
|
|
5385
5385
|
msgid "Display a configurable SVG."
|
|
5386
5386
|
msgstr "Een configureerbare SVG weergeven."
|
|
5387
5387
|
|
|
5388
|
+
msgid "Display a link to the Dashboard manager under the Configuration navigator menu."
|
|
5389
|
+
msgstr "Weergeven van een link naar de Dashboardmanager onder het menu Configuratie Navigator."
|
|
5390
|
+
|
|
5388
5391
|
msgid "Display a link to the Data point library under the Configuration navigator menu."
|
|
5389
5392
|
msgstr "Geef een link naar de gegevenspuntbibliotheek weer onder het configuratienavigatiemenu."
|
|
5390
5393
|
|
package/core/locales/pl.po
CHANGED
|
@@ -5405,6 +5405,9 @@ msgstr "Wyświetl"
|
|
|
5405
5405
|
msgid "Display a configurable SVG."
|
|
5406
5406
|
msgstr "Wyświetl konfigurowalny plik SVG."
|
|
5407
5407
|
|
|
5408
|
+
msgid "Display a link to the Dashboard manager under the Configuration navigator menu."
|
|
5409
|
+
msgstr "Wyświetl łącze do Menedżera pulpitów w menu Nawigator konfiguracji."
|
|
5410
|
+
|
|
5408
5411
|
msgid "Display a link to the Data point library under the Configuration navigator menu."
|
|
5409
5412
|
msgstr "Wyświetl łącze do Biblioteki punktów danych w menu nawigatora Konfiguracja."
|
|
5410
5413
|
|
package/core/locales/pt_BR.po
CHANGED
|
@@ -5385,6 +5385,9 @@ msgstr "Exibir"
|
|
|
5385
5385
|
msgid "Display a configurable SVG."
|
|
5386
5386
|
msgstr "Exibe um SVG configurável."
|
|
5387
5387
|
|
|
5388
|
+
msgid "Display a link to the Dashboard manager under the Configuration navigator menu."
|
|
5389
|
+
msgstr "Exibir um link para o Gerente de painéis no menu do navegador Configurações."
|
|
5390
|
+
|
|
5388
5391
|
msgid "Display a link to the Data point library under the Configuration navigator menu."
|
|
5389
5392
|
msgstr "Exibe um link para a biblioteca de pontos de dados no menu de navegação Configuração."
|
|
5390
5393
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{function e(r){var t,
|
|
1
|
+
(()=>{function e(r){var t,p=this,e=r.Types,n=r.Validations;function i(e){return!!_.includes(p.schemaPropertyType.validations,e)}function o(o){return _.reduce(n.values(),function(e,r){var t=i(r),p=!_.isUndefined(o.schema[r.value]);return e[r.value]=t&&p,e},{})}_.assign(p,{Types:e,Validations:n,isValidationSupported:i,$onChanges:function(e){e._property&&(p.property=_.cloneDeep(p._property),p.schemaPropertyType=r.getType(p.property),p.validationsApplied=o(p.property))},$doCheck:function(){var e=(()=>{var t={key:p.property.key,schema:p.property.schema};return _.forEach(p.validationsApplied,function(e,r){e||"required"===r||_.unset(t,["schema",r])}),t})();(e=>{var r=!_.isEqual(e,t);return t=_.cloneDeep(e),r})(e)&&p.onChange({property:e,originalProperty:p._property})},setType:function(){r.setType(p.property,p.schemaPropertyType),p.validationsApplied=o(p.property)},updateRequiredValidationApplied:function(){p.property.schema.required||_.unset(p.property.schema,"required")}})}e.$inject=["SchemaPropertiesSvc"],angular.module("c8y.ui").component("c8ySchemaPropertyEditor",{bindings:{_property:"<property",onChange:"&"},templateUrl:":::PLUGIN_PATH:::/ui/schemaForm/schemaPropertyEditor.html",controller:e,controllerAs:"vm"})})();
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{function t(t,n){var i=this,e=t.tenantId,
|
|
1
|
+
(()=>{function t(t,n){var i=this,e=t.tenantId,a={},t=_.memoize(function(t){t=o(t.id);return _.get(t,"instances")},function(t){return t.id}),s=null;function c(t){_.forEach(t,function(t){var n=t.applicationId;n&&(a[n]=t)})}function o(t){t=_.get(a,t);return n.getApplicationStatusForTenant(t,e)}_.assign(i,{$onInit:function(){var t={tenantId:e,filters:{pageSize:2e3}};n.getApplicationMOs(t).then(c)},openItem:function(t){(s=s!==t?t:null)&&(t=>{(t=o(t))?i.instancesStatus=n.getInstanceCounts(_.get(t,"details")):i.instancesStatus={}})(t.id)},isOpen:function(t){return s===t},hasApplicationStatus:function(t){t=o(t.id);return!_.isEmpty(t)},memoizedGetSubscriptionInstances:t,instancesStatus:{},getStatusIcon:function(t){t=_.find(n.status.values(),{value:_.get(o(t),"status")});return _.get(t,"icon")},getStringTooltip:function(t){t=_.find(n.status.values(),{value:_.get(o(t),"status")});return _.get(t,"label")}})}t.$inject=["$routeParams","c8yApplication"],angular.module("c8y.tenantApplications").component("c8ySubscribedApplications",{bindings:{associatedApplications:"<",dissociate:"<",tenant:"<"},templateUrl:":::PLUGIN_PATH:::/subscribed-applications/subscribed-applications.html",controller:t,controllerAs:"vm"})})();
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
<div class="card d-grid content-fullpage grid__col--6-6--md">
|
|
14
14
|
<c8y-subscribed-applications
|
|
15
15
|
dissociate="dissociate"
|
|
16
|
+
tenant="tenant"
|
|
16
17
|
class="inner-scroll bg-level-0"
|
|
17
18
|
associated-applications="associatedApplications"
|
|
18
19
|
></c8y-subscribed-applications>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{function e(
|
|
1
|
+
(()=>{function e(n,e,t,r,s,i,a,o,c){var u=this,p=t.tenantId,l=i.another(i.paths.Tenants,{tenantId:p}),m="c8ySchema!!customProperties",h={notitle:!0};_.assign(u,{schema:{},form:[],cancel:function(){e.path("tenants")},save:function(e){return s.save(_.pick(u.tenant,["id","applications","customProperties"])).then(function(){o.success(c("Custom properties saved.")),e.$setPristine()})}}),u.loaded=!1,n.all({rootProperty:l.list().then(function(e){return _.filter(e,{id:m})}),isGainsightKeyDefined:_.get(window,"C8Y_APP.gainsightKey")?n.resolve(!!window.C8Y_APP.gainsightKey):a.detailValue({category:"configuration",key:"system.gainsight.api.key"}).then(function(e){return!!e})}).then(function(e){var t=e.rootProperty,i=e.isGainsightKeyDefined;return e=t,n.all({schema:l.getSchema(e),form:l.getForm(e,h),tenant:s.detail(p).then(r.getResData)}).then(function(e){return e.schema.properties.customProperties.properties=_.omit(e.schema.properties.customProperties.properties,["externalReference","limit.devices.number","limit.http.requests","limit.http.queue","limit.stream.requests","limit.stream.queue","cepServer.queue.limit","data-broker.queue.limit","gainsightEnabled"]),e}).then(function(e){return{results:e,isGainsightKeyDefined:i}})}).then(function(e){var t=e.results;u.schema=e.isGainsightKeyDefined?t.schema:(e=>(e=_.cloneDeep(e),_.unset(e,"properties.customProperties.properties.gainsightEnabled"),e))(t.schema),u.form=t.form,u.tenant=t.tenant,u.hasCustomProperties=0<Object.keys(u.schema.properties.customProperties.properties).length}).finally(function(){u.loaded=!0})}e.$inject=["$q","$location","$routeParams","c8yBase","c8yTenant","c8yPropertiesLibrary","c8ySettings","c8yAlert","gettext"],angular.module("c8y.tenants").controller("tenantCustomPropertiesCtrl",e)})();
|
package/tenants/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{function
|
|
1
|
+
(()=>{function e(e,t,n,r){r.when("/tenants/new",{templateUrl:":::PLUGIN_PATH:::/views/detail.html",controller:"tenantDetailCtrl"}),e.when("/tenants/:tenantId",{templateUrl:":::PLUGIN_PATH:::/views/detail.html",controller:"tenantDetailCtrl",icon:"new-property",name:n("Properties"),priority:4e3})}e.$inject=["c8yViewsProvider","c8yTitleProvider","gettext","$routeProvider"],angular.module("c8y.tenants",[]).config(e)})();
|
|
@@ -1,54 +1,65 @@
|
|
|
1
|
-
<c8y-breadcrumbs-set>
|
|
2
|
-
<c8y-breadcrumbs-item
|
|
3
|
-
path="#tenants"
|
|
4
|
-
label="{{ 'Subtenants' | translate }}"
|
|
5
|
-
icon="c8y-sub-tenants"
|
|
6
|
-
></c8y-breadcrumbs-item>
|
|
7
|
-
<c8y-breadcrumbs-item
|
|
8
|
-
label="{{ 'Tenants' | translate }}"
|
|
9
|
-
icon="c8y-sub-tenants"
|
|
10
|
-
></c8y-breadcrumbs-item>
|
|
11
|
-
</c8y-breadcrumbs-set>
|
|
12
|
-
|
|
13
|
-
<form name="tenantCustomPropertiesForm" novalidate class="row">
|
|
14
|
-
<div class="col-md-8 col-xs-12">
|
|
15
|
-
<div class="card card--fullpage m-b-0">
|
|
16
|
-
<div class="card-header separator">
|
|
17
|
-
<div class="card-title">
|
|
18
|
-
{{ 'Custom properties' | translate }}
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
<div class="inner-scroll">
|
|
22
|
-
<div class="card-block">
|
|
23
|
-
<c8y-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
</
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
1
|
+
<c8y-breadcrumbs-set>
|
|
2
|
+
<c8y-breadcrumbs-item
|
|
3
|
+
path="#tenants"
|
|
4
|
+
label="{{ 'Subtenants' | translate }}"
|
|
5
|
+
icon="c8y-sub-tenants"
|
|
6
|
+
></c8y-breadcrumbs-item>
|
|
7
|
+
<c8y-breadcrumbs-item
|
|
8
|
+
label="{{ 'Tenants' | translate }}"
|
|
9
|
+
icon="c8y-sub-tenants"
|
|
10
|
+
></c8y-breadcrumbs-item>
|
|
11
|
+
</c8y-breadcrumbs-set>
|
|
12
|
+
|
|
13
|
+
<form name="tenantCustomPropertiesForm" novalidate class="row">
|
|
14
|
+
<div class="col-md-8 col-xs-12">
|
|
15
|
+
<div class="card card--fullpage m-b-0">
|
|
16
|
+
<div class="card-header separator">
|
|
17
|
+
<div class="card-title">
|
|
18
|
+
{{ 'Custom properties' | translate }}
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="inner-scroll">
|
|
22
|
+
<div class="card-block">
|
|
23
|
+
<c8y-loading ng-if="!vm.loaded"></c8y-loading>
|
|
24
|
+
<c8y-ui-empty-state
|
|
25
|
+
[icon]="'property-script'"
|
|
26
|
+
[title]="'No custom properties yet.' | translate"
|
|
27
|
+
[subtitle]="'Add a new custom property for tenants in Properties library.' | translate"
|
|
28
|
+
ng-if="vm.loaded && !vm.hasCustomProperties"
|
|
29
|
+
></c8y-ui-empty-state>
|
|
30
|
+
<c8y-schema-form
|
|
31
|
+
class="d-contents"
|
|
32
|
+
ng-if="vm.loaded && vm.hasCustomProperties"
|
|
33
|
+
schema="vm.schema"
|
|
34
|
+
form="vm.form"
|
|
35
|
+
model="vm.tenant"
|
|
36
|
+
options="{pristine: { errors: true }}"
|
|
37
|
+
class="d-contents"
|
|
38
|
+
>
|
|
39
|
+
</c8y-schema-form>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
<div
|
|
43
|
+
class="card-footer separator"
|
|
44
|
+
ng-if="vm.loaded && vm.hasCustomProperties"
|
|
45
|
+
>
|
|
46
|
+
<button
|
|
47
|
+
title="{{ 'Cancel' | translate }}"
|
|
48
|
+
class="btn btn-default"
|
|
49
|
+
ng-click="vm.cancel()"
|
|
50
|
+
>
|
|
51
|
+
{{ 'Cancel' | translate }}
|
|
52
|
+
</button>
|
|
53
|
+
<button
|
|
54
|
+
title="{{ 'Save' | translate }}"
|
|
55
|
+
class="btn btn-primary"
|
|
56
|
+
ng-disabled="tenantCustomPropertiesForm.$invalid || !tenantCustomPropertiesForm.$dirty"
|
|
57
|
+
ng-click="vm.save(tenantCustomPropertiesForm)"
|
|
58
|
+
translate
|
|
59
|
+
>
|
|
60
|
+
Save
|
|
61
|
+
</button>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</form>
|