@c8y/ng1-modules 1020.26.2 → 1020.27.0

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.
@@ -762,6 +762,9 @@ msgstr "Hinzufügen"
762
762
  msgid "Add Byte Order Mask (for Windows)"
763
763
  msgstr "Byte Order Mask hinzufügen (für Windows)"
764
764
 
765
+ msgid "Add Header"
766
+ msgstr "Kopfzeile hinzufügen"
767
+
765
768
  msgid "Add KPI"
766
769
  msgstr "KPI hinzufügen"
767
770
 
@@ -12302,9 +12305,6 @@ msgstr "Entfernungen"
12302
12305
  msgid "Remove"
12303
12306
  msgstr "Löschen"
12304
12307
 
12305
- msgid "Remove action"
12306
- msgstr "Aktion entfernen"
12307
-
12308
12308
  msgid "Remove applied branding"
12309
12309
  msgstr "Angewendetes Branding entfernen"
12310
12310
 
@@ -12635,8 +12635,8 @@ msgstr "Verschiebt das Dezimalzeichen um die angegebene Anzahl an Stellen nach r
12635
12635
  msgid "Right shift`noun`"
12636
12636
  msgstr "Rechts-Shift"
12637
12637
 
12638
- msgid "Role cannot be deleted because it is assigned to users."
12639
- msgstr "Die Rolle kann nicht gelöscht werden, solange sie Benutzern zugewiesen ist."
12638
+ msgid "Role \"{{ roleName }}\" cannot be deleted because it is assigned to a dynamic access mapping in Single sign-on configuration."
12639
+ msgstr "Die Rolle \"{{ roleName }}\" kann nicht gelöscht werden, da sie einer dynamischen Rechtezuordnung in der Single Sign-On-Konfiguration zugewiesen ist."
12640
12640
 
12641
12641
  msgid "Role deleted."
12642
12642
  msgstr "Rolle gelöscht."
@@ -15461,8 +15461,8 @@ msgstr "Aktuelle Alarme und Ereignisse, die hinzugefügt werden können:"
15461
15461
  msgid "The following operations are supported:"
15462
15462
  msgstr "Folgende Operationen werden unterstützt:"
15463
15463
 
15464
- msgid "The following placeholders are available:"
15465
- msgstr "Folgende Platzhalter stehen zur Verfügung:"
15464
+ msgid "The following placeholders are available: ${value}`KEEP_ORIGINAL`, ${serverId}`KEEP_ORIGINAL`, ${nodeId}`KEEP_ORIGINAL`, ${deviceId}`KEEP_ORIGINAL`."
15465
+ msgstr "Die folgenden Platzhalter sind verfügbar: ${value}, ${serverId}, ${nodeId}, ${deviceId}."
15466
15466
 
15467
15467
  msgid ""
15468
15468
  "The homepage of this application. By default, it is a customizable dashboard displaying\n"
@@ -18535,6 +18535,9 @@ msgstr "Globale Rollen [{{globalRolesList}}] entfernt"
18535
18535
  msgid "green"
18536
18536
  msgstr "grün"
18537
18537
 
18538
+ msgid "headers"
18539
+ msgstr "Kopfzeilen"
18540
+
18538
18541
  msgid "hours"
18539
18542
  msgstr "Stunden"
18540
18543
 
@@ -682,6 +682,9 @@ msgstr "Suspended"
682
682
  msgid "The \"contextPath`KEEP_ORIGINAL`\" or \"key`KEEP_ORIGINAL`\" of the uploaded archive do not match with the existing application."
683
683
  msgstr "The \"contextPath\" or \"key\" of the uploaded archive do not match with the existing application."
684
684
 
685
+ msgid "The following placeholders are available: ${value}`KEEP_ORIGINAL`, ${serverId}`KEEP_ORIGINAL`, ${nodeId}`KEEP_ORIGINAL`, ${deviceId}`KEEP_ORIGINAL`."
686
+ msgstr "The following placeholders are available: ${value}, ${serverId}, ${nodeId}, ${deviceId}."
687
+
685
688
  msgid "To`date`"
686
689
  msgstr "To"
687
690
 
@@ -764,6 +764,9 @@ msgstr "Agregar"
764
764
  msgid "Add Byte Order Mask (for Windows)"
765
765
  msgstr "Agregar máscara de órdenes de byte (para Windows)"
766
766
 
767
+ msgid "Add Header"
768
+ msgstr "Agregar encabezados"
769
+
767
770
  msgid "Add KPI"
768
771
  msgstr "Agregar KPI"
769
772
 
@@ -12332,9 +12335,6 @@ msgstr "Eliminaciones"
12332
12335
  msgid "Remove"
12333
12336
  msgstr "Quitar"
12334
12337
 
12335
- msgid "Remove action"
12336
- msgstr "Quitar acción"
12337
-
12338
12338
  msgid "Remove applied branding"
12339
12339
  msgstr "Quitar la identidad de marca aplicada"
12340
12340
 
@@ -12665,8 +12665,8 @@ msgstr "Separador decimal a la derecha el número de posiciones indicado."
12665
12665
  msgid "Right shift`noun`"
12666
12666
  msgstr "Margen derecho"
12667
12667
 
12668
- msgid "Role cannot be deleted because it is assigned to users."
12669
- msgstr "El rol no se puede eliminar porque está asignado a usuarios."
12668
+ msgid "Role \"{{ roleName }}\" cannot be deleted because it is assigned to a dynamic access mapping in Single sign-on configuration."
12669
+ msgstr "El rol \"{{ roleName }}\" no se puede eliminar porque está asignado a una asignación de acceso dinámica en la configuración de inicio de sesión único."
12670
12670
 
12671
12671
  msgid "Role deleted."
12672
12672
  msgstr "Rol eliminado."
@@ -15490,8 +15490,8 @@ msgstr "Lo siguiente son alarmas y eventos recientes que puede que desee agregar
15490
15490
  msgid "The following operations are supported:"
15491
15491
  msgstr "Se admiten las siguientes operaciones:"
15492
15492
 
15493
- msgid "The following placeholders are available:"
15494
- msgstr "Disponibles se encuentran los siguientes marcadores de posición:"
15493
+ msgid "The following placeholders are available: ${value}`KEEP_ORIGINAL`, ${serverId}`KEEP_ORIGINAL`, ${nodeId}`KEEP_ORIGINAL`, ${deviceId}`KEEP_ORIGINAL`."
15494
+ msgstr "Están disponibles los siguientes Marcadores de posición: ${value}, ${serverId}, ${nodeId}, ${deviceId}."
15495
15495
 
15496
15496
  msgid ""
15497
15497
  "The homepage of this application. By default, it is a customizable dashboard displaying\n"
@@ -18561,6 +18561,9 @@ msgstr "roles globales [{{globalRolesList}}] eliminados"
18561
18561
  msgid "green"
18562
18562
  msgstr "green"
18563
18563
 
18564
+ msgid "headers"
18565
+ msgstr "encabezados"
18566
+
18564
18567
  msgid "hours"
18565
18568
  msgstr "horas"
18566
18569
 
@@ -764,6 +764,9 @@ msgstr "Ajouter"
764
764
  msgid "Add Byte Order Mask (for Windows)"
765
765
  msgstr "Ajouter un masque de commande d'octet (pour Windows)"
766
766
 
767
+ msgid "Add Header"
768
+ msgstr "Ajouter un En-tête"
769
+
767
770
  msgid "Add KPI"
768
771
  msgstr "Ajouter KPI"
769
772
 
@@ -12332,9 +12335,6 @@ msgstr "Suppressions"
12332
12335
  msgid "Remove"
12333
12336
  msgstr "Supprimer"
12334
12337
 
12335
- msgid "Remove action"
12336
- msgstr "Supprimer l'action"
12337
-
12338
12338
  msgid "Remove applied branding"
12339
12339
  msgstr "Supprimer configuration de personnalisation appliquée"
12340
12340
 
@@ -12665,8 +12665,8 @@ msgstr "Décalez la décimale à droite du nombre de places indiqué."
12665
12665
  msgid "Right shift`noun`"
12666
12666
  msgstr "Décaler à droite"
12667
12667
 
12668
- msgid "Role cannot be deleted because it is assigned to users."
12669
- msgstr "Le rôle ne peut pas être supprimé car il est affecté à des utilisateurs."
12668
+ msgid "Role \"{{ roleName }}\" cannot be deleted because it is assigned to a dynamic access mapping in Single sign-on configuration."
12669
+ msgstr "Le rôle \"{{ roleName }}\" ne peut pas être supprimé car il est affecté à un mappage d'accès dynamique dans la configuration de la connexion unique."
12670
12670
 
12671
12671
  msgid "Role deleted."
12672
12672
  msgstr "Rôle supprimé."
@@ -15490,8 +15490,8 @@ msgstr "Voici les alarmes et événements les plus récents que vous pouvez ajou
15490
15490
  msgid "The following operations are supported:"
15491
15491
  msgstr "Les opérations suivantes sont prises en charge :"
15492
15492
 
15493
- msgid "The following placeholders are available:"
15494
- msgstr "Les espaces suivants réservés sont disponibles :"
15493
+ msgid "The following placeholders are available: ${value}`KEEP_ORIGINAL`, ${serverId}`KEEP_ORIGINAL`, ${nodeId}`KEEP_ORIGINAL`, ${deviceId}`KEEP_ORIGINAL`."
15494
+ msgstr "Les caractères réservés suivants sont disponibles : ${value}, ${serverId}, ${nodeId}, ${deviceId}."
15495
15495
 
15496
15496
  msgid ""
15497
15497
  "The homepage of this application. By default, it is a customizable dashboard displaying\n"
@@ -18562,6 +18562,9 @@ msgstr "rôles globaux [{{globalRolesList}}] supprimés"
18562
18562
  msgid "green"
18563
18563
  msgstr "vert"
18564
18564
 
18565
+ msgid "headers"
18566
+ msgstr "en-têtes"
18567
+
18565
18568
  msgid "hours"
18566
18569
  msgstr "heures"
18567
18570
 
@@ -741,6 +741,9 @@ msgstr "追加"
741
741
  msgid "Add Byte Order Mask (for Windows)"
742
742
  msgstr "バイトオーダーのマスクを追加 (Windows向け)"
743
743
 
744
+ msgid "Add Header"
745
+ msgstr "ヘッダーを追加"
746
+
744
747
  msgid "Add KPI"
745
748
  msgstr "KPI を追加"
746
749
 
@@ -12325,9 +12328,6 @@ msgstr "削除"
12325
12328
  msgid "Remove"
12326
12329
  msgstr "削除"
12327
12330
 
12328
- msgid "Remove action"
12329
- msgstr "アクションを削除"
12330
-
12331
12331
  msgid "Remove applied branding"
12332
12332
  msgstr "適用されたブランディングの削除"
12333
12333
 
@@ -12659,8 +12659,8 @@ msgstr "指定した少数位数で小数点を右方向にシフト。"
12659
12659
  msgid "Right shift`noun`"
12660
12660
  msgstr "右シフト"
12661
12661
 
12662
- msgid "Role cannot be deleted because it is assigned to users."
12663
- msgstr "ロールはユーザーに割り当てられているため削除できません。"
12662
+ msgid "Role \"{{ roleName }}\" cannot be deleted because it is assigned to a dynamic access mapping in Single sign-on configuration."
12663
+ msgstr "ロール「{{ roleName }}」はシングルサインオン構成の動的アクセスマッピングに割り当てられているため、削除できません。"
12664
12664
 
12665
12665
  msgid "Role deleted."
12666
12666
  msgstr "ロールは削除されました。"
@@ -15484,8 +15484,8 @@ msgstr "次の最新のアラームとイベントを追加できます:"
15484
15484
  msgid "The following operations are supported:"
15485
15485
  msgstr "次の操作がサポートされています:"
15486
15486
 
15487
- msgid "The following placeholders are available:"
15488
- msgstr "次のプレースホルダーが使用できます:"
15487
+ msgid "The following placeholders are available: ${value}`KEEP_ORIGINAL`, ${serverId}`KEEP_ORIGINAL`, ${nodeId}`KEEP_ORIGINAL`, ${deviceId}`KEEP_ORIGINAL`."
15488
+ msgstr "使用可能なプレースホルダーは次のとおりです:${value}, ${serverId}, ${nodeId}, ${deviceId}。"
15489
15489
 
15490
15490
  msgid ""
15491
15491
  "The homepage of this application. By default, it is a customizable dashboard displaying\n"
@@ -18559,6 +18559,9 @@ msgstr "グローバル ロール [{{globalRolesList}}] が削除されました
18559
18559
  msgid "green"
18560
18560
  msgstr "緑"
18561
18561
 
18562
+ msgid "headers"
18563
+ msgstr "ヘッダー"
18564
+
18562
18565
  msgid "hours"
18563
18566
  msgstr "時間"
18564
18567
 
@@ -764,6 +764,9 @@ msgstr "Toevoegen"
764
764
  msgid "Add Byte Order Mask (for Windows)"
765
765
  msgstr "Byte Order Mask toevoegen (voor Windows)"
766
766
 
767
+ msgid "Add Header"
768
+ msgstr "Kop toevoegen"
769
+
767
770
  msgid "Add KPI"
768
771
  msgstr "KPI toevoegen"
769
772
 
@@ -12331,9 +12334,6 @@ msgstr "Verwijderingen"
12331
12334
  msgid "Remove"
12332
12335
  msgstr "Verwijderen"
12333
12336
 
12334
- msgid "Remove action"
12335
- msgstr "Actie verwijderen"
12336
-
12337
12337
  msgid "Remove applied branding"
12338
12338
  msgstr "Toegepaste branding verwijderen"
12339
12339
 
@@ -12664,8 +12664,8 @@ msgstr "De decimale komma met het gegeven aantal posities naar rechts verplaatse
12664
12664
  msgid "Right shift`noun`"
12665
12665
  msgstr "Rechtsverschuiving"
12666
12666
 
12667
- msgid "Role cannot be deleted because it is assigned to users."
12668
- msgstr "Rol kan niet worden gewist omdat hij is toegewezen aan gebruikers."
12667
+ msgid "Role \"{{ roleName }}\" cannot be deleted because it is assigned to a dynamic access mapping in Single sign-on configuration."
12668
+ msgstr "Rol \"{{ roleName }}\" kan niet worden verwijderd omdat deze is toegewezen aan een Dynamische toegangstoewijzing in de configuratie Single sign-on."
12669
12669
 
12670
12670
  msgid "Role deleted."
12671
12671
  msgstr "Rol verwijderd."
@@ -15489,8 +15489,8 @@ msgstr "De volgende zijn recente alarmen en gebeurtenissen die u misschien wilt
15489
15489
  msgid "The following operations are supported:"
15490
15490
  msgstr "De volgende bewerkingen worden ondersteund:"
15491
15491
 
15492
- msgid "The following placeholders are available:"
15493
- msgstr "De volgende tijdelijke aanduidingen zijn beschikbaar:"
15492
+ msgid "The following placeholders are available: ${value}`KEEP_ORIGINAL`, ${serverId}`KEEP_ORIGINAL`, ${nodeId}`KEEP_ORIGINAL`, ${deviceId}`KEEP_ORIGINAL`."
15493
+ msgstr "De volgende Tijdelijke aanduidingen zijn beschikbaar: ${value}, ${serverId}, ${nodeId}, ${deviceId}."
15494
15494
 
15495
15495
  msgid ""
15496
15496
  "The homepage of this application. By default, it is a customizable dashboard displaying\n"
@@ -18560,6 +18560,9 @@ msgstr "globale rollen [{{globalRolesList}}] verwijderd"
18560
18560
  msgid "green"
18561
18561
  msgstr "groen"
18562
18562
 
18563
+ msgid "headers"
18564
+ msgstr "koppen"
18565
+
18563
18566
  msgid "hours"
18564
18567
  msgstr "uren"
18565
18568
 
@@ -783,6 +783,9 @@ msgstr "Dodaj"
783
783
  msgid "Add Byte Order Mask (for Windows)"
784
784
  msgstr "Dodaj maskę kolejności bajtów (w systemie Windows)"
785
785
 
786
+ msgid "Add Header"
787
+ msgstr "Dodaj Nagłówek"
788
+
786
789
  msgid "Add KPI"
787
790
  msgstr "Dodaj KPI"
788
791
 
@@ -12355,9 +12358,6 @@ msgstr "Usunięcia"
12355
12358
  msgid "Remove"
12356
12359
  msgstr "Usuń"
12357
12360
 
12358
- msgid "Remove action"
12359
- msgstr "Usuń działanie"
12360
-
12361
12361
  msgid "Remove applied branding"
12362
12362
  msgstr "Usuń zastosowane oznakowanie marką"
12363
12363
 
@@ -12688,8 +12688,8 @@ msgstr "Przesuń separator dziesiętny w prawo o podaną liczbę miejsc."
12688
12688
  msgid "Right shift`noun`"
12689
12689
  msgstr "Przesunięcie w prawo"
12690
12690
 
12691
- msgid "Role cannot be deleted because it is assigned to users."
12692
- msgstr "Nie można usunąć roli, ponieważ jest przypisana do użytkowników."
12691
+ msgid "Role \"{{ roleName }}\" cannot be deleted because it is assigned to a dynamic access mapping in Single sign-on configuration."
12692
+ msgstr "Nie można usunąć roli \"{{ roleName }}}\", ponieważ jest ona przypisana do Dynamicznego mapowania dostępu w konfiguracji logowania jednokrotnego."
12693
12693
 
12694
12694
  msgid "Role deleted."
12695
12695
  msgstr "Usunięto rolę."
@@ -15515,8 +15515,8 @@ msgstr "Poniżej przedstawiono najnowsze alarmy i zdarzenia, które można doda
15515
15515
  msgid "The following operations are supported:"
15516
15516
  msgstr "Obsługiwane są następujące operacje:"
15517
15517
 
15518
- msgid "The following placeholders are available:"
15519
- msgstr "Dostępne są następujące symbole zastępcze:"
15518
+ msgid "The following placeholders are available: ${value}`KEEP_ORIGINAL`, ${serverId}`KEEP_ORIGINAL`, ${nodeId}`KEEP_ORIGINAL`, ${deviceId}`KEEP_ORIGINAL`."
15519
+ msgstr "Dostępne są następujące Symbole zastępcze: ${value}, ${serverId}, ${nodeId}, ${deviceId}."
15520
15520
 
15521
15521
  msgid ""
15522
15522
  "The homepage of this application. By default, it is a customizable dashboard displaying\n"
@@ -18588,6 +18588,9 @@ msgstr "role globalne [{{globalRolesList}}] usunięto"
18588
18588
  msgid "green"
18589
18589
  msgstr "zielony"
18590
18590
 
18591
+ msgid "headers"
18592
+ msgstr "nagłówki"
18593
+
18591
18594
  msgid "hours"
18592
18595
  msgstr "godz"
18593
18596
 
@@ -764,6 +764,9 @@ msgstr "Adicionar"
764
764
  msgid "Add Byte Order Mask (for Windows)"
765
765
  msgstr "Adicionar máscara de ordem de byte (para Windows)"
766
766
 
767
+ msgid "Add Header"
768
+ msgstr "Adicionar cabeçalho"
769
+
767
770
  msgid "Add KPI"
768
771
  msgstr "Adicionar KPI"
769
772
 
@@ -12331,9 +12334,6 @@ msgstr "Remoções"
12331
12334
  msgid "Remove"
12332
12335
  msgstr "Remover"
12333
12336
 
12334
- msgid "Remove action"
12335
- msgstr "Remover ação"
12336
-
12337
12337
  msgid "Remove applied branding"
12338
12338
  msgstr "Remover marca aplicada"
12339
12339
 
@@ -12664,8 +12664,8 @@ msgstr "Deslocar o ponto decimal para a direita no número de posições especif
12664
12664
  msgid "Right shift`noun`"
12665
12665
  msgstr "Deslocar para a direita"
12666
12666
 
12667
- msgid "Role cannot be deleted because it is assigned to users."
12668
- msgstr "O papel não pode ser excluído porque está atribuído a usuários."
12667
+ msgid "Role \"{{ roleName }}\" cannot be deleted because it is assigned to a dynamic access mapping in Single sign-on configuration."
12668
+ msgstr "O papel \"{{ roleName }}\" não pode ser excluído porque está atribuído a um mapeamento de acesso dinâmico na configuração de Single sign-on."
12669
12669
 
12670
12670
  msgid "Role deleted."
12671
12671
  msgstr "Papel excluído."
@@ -15489,8 +15489,8 @@ msgstr "Os itens a seguir são alarmes e eventos recentes que talvez você queir
15489
15489
  msgid "The following operations are supported:"
15490
15490
  msgstr "São suportadas as seguintes operações:"
15491
15491
 
15492
- msgid "The following placeholders are available:"
15493
- msgstr "Estão disponíveis os seguintes espaços reservados:"
15492
+ msgid "The following placeholders are available: ${value}`KEEP_ORIGINAL`, ${serverId}`KEEP_ORIGINAL`, ${nodeId}`KEEP_ORIGINAL`, ${deviceId}`KEEP_ORIGINAL`."
15493
+ msgstr "Os seguintes espaços reservados estão disponíveis: ${value}, ${serverId}, ${nodeId}, ${deviceId}."
15494
15494
 
15495
15495
  msgid ""
15496
15496
  "The homepage of this application. By default, it is a customizable dashboard displaying\n"
@@ -18560,6 +18560,9 @@ msgstr "papéis globais [{{globalRolesList}}] removidos"
18560
18560
  msgid "green"
18561
18561
  msgstr "verde"
18562
18562
 
18563
+ msgid "headers"
18564
+ msgstr "cabeçalhos"
18565
+
18563
18566
  msgid "hours"
18564
18567
  msgstr "horas"
18565
18568
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/ng1-modules",
3
- "version": "1020.26.2",
3
+ "version": "1020.27.0",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity",
6
6
  "description": "AngularJS modules for Cumulocity IoT applications.",
@@ -1 +1 @@
1
- "use strict";!function(){function e(g,e,n){v.$inject=["$rootScope","$location","$q","gettextCatalog","c8yBase","c8yTitle","c8yModal","c8yAlert","c8yRoles","c8yPermissions","c8yRolesUiStrings"],u.$inject=["$routeParams","c8yTenant"];var y="roles",b="roles/inventory_roles",R="".concat(y,"/global/:roleId"),w="".concat(y,"/inventory/:roleId"),t="c8y-users",o=g("Global roles"),a={priority:1e3,icon:"connected-people",template:"<c8y-roles-list tab-name=\"'".concat(o,'\' | translate" roles="vm.globalRoles" help-text="vm.globalHelpText" on-remove="vm.onRemove(role, vm.globalRoles)" add-role="vm.add(\'global\')" on-load-next="vm.loadNext(\'global\')"></c8y-roles-list>'),name:o,controller:"c8yRolesOverviewCtrl",controllerAs:"vm"},r=g("Inventory roles"),l={icon:"insurance-agent",template:"<c8y-roles-list tab-name=\"'".concat(r,'\' | translate" roles="vm.inventoryRoles" help-text="vm.inventoryHelpText" on-remove="vm.onRemove(role, vm.inventoryRoles)" add-role="vm.add(\'inventory\')" on-load-next="vm.loadNext(\'inventory\')"></c8y-roles-list>'),name:r,controller:"c8yRolesOverviewCtrl",controllerAs:"vm"},i={template:"<c8y-role-detail-global tab-name=\"'".concat(o,'\' | translate" id="vm.params.roleId" duplicate-id="vm.params.duplicate"></c8y-role-global-global>')},c={template:"<c8y-role-detail-inventory tab-name=\"'".concat(r,'\' | translate" id="vm.params.roleId" duplicate-id="vm.params.duplicate" is-top-tenant="vm.isTopTenant"></c8y-role-detail-inventory>')},s={controllerAs:"vm",controller:u};function u(e,n){var t=this;_.assign(t,{isTopTenant:!1,params:e}),n.isCurrentUserTopTenant().then(function(e){t.isTopTenant=e})}var T=["READ","ADMIN","CREATE","UPDATE"],E="ROLE_USER_MANAGEMENT_ADMIN",m=["ROLE_USER_MANAGEMENT_READ",E];function d(){e.when("/".concat(y),a),e.when("/".concat(y),l),e.when("/".concat(R),_.assign(i,s)),e.when("/".concat(w),_.assign(c,s))}function v(a,t,r,l,o,e,i,c,s,n,u){return{ROUTE_LIST:y,STRINGS:u,listGlobalPermissions:function(){return n.listGlobal().then(function(e){return _.filter(e,function(e){return _.includes(T,e.access)})})},list:m,setListTitle:function(){e.changeTitle({title:g("Roles")})},add:d,edit:function(e){var n=s.isGlobal(e)?R:w;return function(e,n){e=o.getId(e),n=n.replace(/:\w+/,e);return t.search("duplicate",null),t.path(n)}(e,n)},duplicate:function(e){d(s.isGlobal(e)?"global":"inventory",e.id)},removeAfterConfirmation:function(e){var n={title:g("Delete role"),body:l.getString('You are about to delete role "{{name}}". Do you want to proceed?',e),labels:{ok:g("Delete")},status:"danger"},n=i(n),t=_.partial(s.remove,e),o=_.partial(s.global.remove,e),e=s.isGlobal(e)?o:t;return n.then(e).then(function(){return c.success(g("Role deleted."))}).catch(function(e){var n=_.get(e,"status");return n&&(422===n?c.warning(g("Role cannot be deleted because it is assigned to users.")):(n=e,n=_.get(n,"data",n),a.$emit("alert",{type:"danger",text:$("<div/>").text(l.getString(n.message)).html(),detailedData:n}))),r.reject(e)})},canCreate:function(){return n.hasAnyRole([E])},newInventoryRole:function(e){var n=r.when({name:l.getString("New inventory role"),permissions:[]});e&&(n=s.detail(e).then(function(e){var e=e.data,n={};return n.name="".concat(e.name," 2"),n.permissions=_.map(e.permissions,function(e){return _.omit(e,["id"])}),n}));return n},saveInventoryRole:function(e){var n=r.when();e.id||(n=v(e,e.name).catch(h(e.name)));return n.then(_.partial(s.save,e)).then(function(){return c.success(g("Inventory role saved."))}).then(m)},saveInventoryRoleName:function(n,t){return v(n,t).then(function(){var e;return n.id?e=s.update({id:n.id,name:t}).then(function(e){return n.name=t,e}):n.name=t,e},h(t))},newGlobalRole:function(e){var n=r.when({name:l.getString("New global role")});e&&(n=s.global.detail(e).then(function(e){e=_.pick(e.data,["name","roles","applications"]);return e.name+=" 2",e}));return n},saveGlobalRole:function(n,t){return(n.id?function(){var e=a.$new(!0);return e.role=n,i({templateUrl:":::PLUGIN_PATH:::/detail/roleGlobalSaveConfirm.html",title:g("Confirm saving changes?"),scope:e})}():r.when()).then(function(){var e=r.when();return(e=n.id?e:f(n,n.name).catch(h(n.name))).then(_.partial(s.global.save,n))}).then(function(e){return s.global.updateRoles(e,t)}).then(function(){return c.success(g("Global role saved."))}).then(m)},saveGlobalRoleName:function(n,t){return f(n,t).then(function(){var e=r.when();return n.id?e=s.global.update({id:n.id,name:t}).then(function(e){return n.name=t,e}):n.name=t,e},h(t))},isUndeletable:function(e){return s.isGlobal(e)&&("admins"===_.lowerCase(e.name)||"devices"===_.lowerCase(e.name)||n.hasRole(e,"ROLE_NO_DELETE"))}};function m(){var e=new RegExp("\\/roles\\/inventory\\/(\\w+)"),e=t.path().match(e),e="/".concat(e?b:y);t.path(e),t.search("duplicate",null)}function d(e,n){e=("global"===e?R:w).replace(/:\w+/,"new");t.path(e),n&&t.search("duplicate",n)}function v(n,t){return s.list().then(function(e){return p(e,n,t)})}function p(e,n,t){e=_.filter(e,function(e){return e.id!==n.id});return _.some(e,{name:t})&&r.reject({duplicate:!0})}function h(n){return function(e){return _.get(e,"duplicate")&&c.danger(l.getString('There is already a role with the name "{{name}}"',{name:n})),r.reject()}}function f(n,t){return s.global.list().then(function(e){return p(e,n,t)})}}return{$get:v,init:function(){d(),n.addNavigation({name:g("Roles"),parent:g("Accounts"),routerLinkExact:!1,priority:4900,path:y,icon:t,showIfPermissions:{anyRole:m}})},hookViews:d}}e.$inject=["gettext","c8yViewsProvider","c8yNavigatorProvider"],angular.module("c8y.roles").provider("c8yRolesUi",e)}();
1
+ "use strict";!function(){function e(g,e,n){v.$inject=["$rootScope","$location","$q","gettextCatalog","c8yBase","c8yTitle","c8yModal","c8yAlert","c8yRoles","c8yPermissions","c8yRolesUiStrings"],u.$inject=["$routeParams","c8yTenant"];var y="roles",b="roles/inventory_roles",R="".concat(y,"/global/:roleId"),w="".concat(y,"/inventory/:roleId"),t="c8y-users",o=g("Global roles"),a={priority:1e3,icon:"connected-people",template:"<c8y-roles-list tab-name=\"'".concat(o,'\' | translate" roles="vm.globalRoles" help-text="vm.globalHelpText" on-remove="vm.onRemove(role, vm.globalRoles)" add-role="vm.add(\'global\')" on-load-next="vm.loadNext(\'global\')"></c8y-roles-list>'),name:o,controller:"c8yRolesOverviewCtrl",controllerAs:"vm"},r=g("Inventory roles"),l={icon:"insurance-agent",template:"<c8y-roles-list tab-name=\"'".concat(r,'\' | translate" roles="vm.inventoryRoles" help-text="vm.inventoryHelpText" on-remove="vm.onRemove(role, vm.inventoryRoles)" add-role="vm.add(\'inventory\')" on-load-next="vm.loadNext(\'inventory\')"></c8y-roles-list>'),name:r,controller:"c8yRolesOverviewCtrl",controllerAs:"vm"},i={template:"<c8y-role-detail-global tab-name=\"'".concat(o,'\' | translate" id="vm.params.roleId" duplicate-id="vm.params.duplicate"></c8y-role-global-global>')},c={template:"<c8y-role-detail-inventory tab-name=\"'".concat(r,'\' | translate" id="vm.params.roleId" duplicate-id="vm.params.duplicate" is-top-tenant="vm.isTopTenant"></c8y-role-detail-inventory>')},s={controllerAs:"vm",controller:u};function u(e,n){var t=this;_.assign(t,{isTopTenant:!1,params:e}),n.isCurrentUserTopTenant().then(function(e){t.isTopTenant=e})}var T=["READ","ADMIN","CREATE","UPDATE"],E="ROLE_USER_MANAGEMENT_ADMIN",m=["ROLE_USER_MANAGEMENT_READ",E];function d(){e.when("/".concat(y),a),e.when("/".concat(y),l),e.when("/".concat(R),_.assign(i,s)),e.when("/".concat(w),_.assign(c,s))}function v(a,t,r,l,o,e,i,c,s,n,u){return{ROUTE_LIST:y,STRINGS:u,listGlobalPermissions:function(){return n.listGlobal().then(function(e){return _.filter(e,function(e){return _.includes(T,e.access)})})},list:m,setListTitle:function(){e.changeTitle({title:g("Roles")})},add:d,edit:function(e){var n=s.isGlobal(e)?R:w;return function(e,n){e=o.getId(e),n=n.replace(/:\w+/,e);return t.search("duplicate",null),t.path(n)}(e,n)},duplicate:function(e){d(s.isGlobal(e)?"global":"inventory",e.id)},removeAfterConfirmation:function(e){var n={title:g("Delete role"),body:l.getString('You are about to delete role "{{name}}". Do you want to proceed?',e),labels:{ok:g("Delete")},status:"danger"},n=i(n),t=_.partial(s.remove,e),o=_.partial(s.global.remove,e),e=s.isGlobal(e)?o:t;return n.then(e).then(function(){return c.success(g("Role deleted."))}).catch(function(e){var n;return _.get(e,"status")&&(n=e,n=_.get(n,"data",n),a.$emit("alert",{type:"danger",text:$("<div/>").text(l.getString(n.message)).html(),detailedData:n})),r.reject(e)})},canCreate:function(){return n.hasAnyRole([E])},newInventoryRole:function(e){var n=r.when({name:l.getString("New inventory role"),permissions:[]});e&&(n=s.detail(e).then(function(e){var e=e.data,n={};return n.name="".concat(e.name," 2"),n.permissions=_.map(e.permissions,function(e){return _.omit(e,["id"])}),n}));return n},saveInventoryRole:function(e){var n=r.when();e.id||(n=v(e,e.name).catch(h(e.name)));return n.then(_.partial(s.save,e)).then(function(){return c.success(g("Inventory role saved."))}).then(m)},saveInventoryRoleName:function(n,t){return v(n,t).then(function(){var e;return n.id?e=s.update({id:n.id,name:t}).then(function(e){return n.name=t,e}):n.name=t,e},h(t))},newGlobalRole:function(e){var n=r.when({name:l.getString("New global role")});e&&(n=s.global.detail(e).then(function(e){e=_.pick(e.data,["name","roles","applications"]);return e.name+=" 2",e}));return n},saveGlobalRole:function(n,t){return(n.id?function(){var e=a.$new(!0);return e.role=n,i({templateUrl:":::PLUGIN_PATH:::/detail/roleGlobalSaveConfirm.html",title:g("Confirm saving changes?"),scope:e})}():r.when()).then(function(){var e=r.when();return(e=n.id?e:f(n,n.name).catch(h(n.name))).then(_.partial(s.global.save,n))}).then(function(e){return s.global.updateRoles(e,t)}).then(function(){return c.success(g("Global role saved."))}).then(m)},saveGlobalRoleName:function(n,t){return f(n,t).then(function(){var e=r.when();return n.id?e=s.global.update({id:n.id,name:t}).then(function(e){return n.name=t,e}):n.name=t,e},h(t))},isUndeletable:function(e){return s.isGlobal(e)&&("admins"===_.lowerCase(e.name)||"devices"===_.lowerCase(e.name)||n.hasRole(e,"ROLE_NO_DELETE"))}};function m(){var e=new RegExp("\\/roles\\/inventory\\/(\\w+)"),e=t.path().match(e),e="/".concat(e?b:y);t.path(e),t.search("duplicate",null)}function d(e,n){e=("global"===e?R:w).replace(/:\w+/,"new");t.path(e),n&&t.search("duplicate",n)}function v(n,t){return s.list().then(function(e){return p(e,n,t)})}function p(e,n,t){e=_.filter(e,function(e){return e.id!==n.id});return _.some(e,{name:t})&&r.reject({duplicate:!0})}function h(n){return function(e){return _.get(e,"duplicate")&&c.danger(l.getString('There is already a role with the name "{{name}}"',{name:n})),r.reject()}}function f(n,t){return s.global.list().then(function(e){return p(e,n,t)})}}return{$get:v,init:function(){d(),n.addNavigation({name:g("Roles"),parent:g("Accounts"),routerLinkExact:!1,priority:4900,path:y,icon:t,showIfPermissions:{anyRole:m}})},hookViews:d}}e.$inject=["gettext","c8yViewsProvider","c8yNavigatorProvider"],angular.module("c8y.roles").provider("c8yRolesUi",e)}();