@c8y/ng1-modules 1021.22.145 → 1021.22.149
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 +1 -1
- package/core/locales/ja_JP.po +1 -1
- package/core/ui/itemSelector/itemSelector.component.js +1 -1
- package/core/ui/itemSelector/itemSelector.html +3 -3
- package/package.json +1 -1
- package/tenantApplications/controllers/main.js +1 -1
- package/tenantApplications/views/index.html +3 -3
package/core/locales/de.po
CHANGED
|
@@ -16592,7 +16592,7 @@ msgstr "Trackermodell \"{{ tracker.device.c8y_Hardware.model }}\" wird nicht unt
|
|
|
16592
16592
|
" Wählen Sie ein unterstütztes Modell aus der Liste."
|
|
16593
16593
|
|
|
16594
16594
|
msgid "Up"
|
|
16595
|
-
msgstr "
|
|
16595
|
+
msgstr "Wird ausgeführt"
|
|
16596
16596
|
|
|
16597
16597
|
msgid "Up to 1,000,000 records per data point, or up to the data retention limit"
|
|
16598
16598
|
msgstr "Bis zu 1.000.000 Datensätze pro Datenpunkt oder bis zur Grenze der Datenspeicherung"
|
package/core/locales/ja_JP.po
CHANGED
|
@@ -11125,7 +11125,7 @@ msgid "Open the application details"
|
|
|
11125
11125
|
msgstr "アプリケーションの詳細を開いてください"
|
|
11126
11126
|
|
|
11127
11127
|
msgid "OpenAPI specification`KEEP_ORIGINAL`"
|
|
11128
|
-
msgstr ""
|
|
11128
|
+
msgstr "OpenAPI 仕様"
|
|
11129
11129
|
|
|
11130
11130
|
msgid "Opening relay {{number}}."
|
|
11131
11131
|
msgstr "リレー {{number}} を開いています。"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()
|
|
1
|
+
function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(()=>{function e(t,e,r,n){var o=this,i=(_.assign(o,{onToggleDropdown:function(){delete o.textFilter,i=_.map(o.itemsSelected,_.clone)},allSelected:l,toggleSelectAll:function(){i=l()?[]:_.clone(u())},apply:function(){o.applying=!0;var e=u(i).map(function(e){return _.omit(e,"nameLabel")});t.when(o.onApply({items:e})).then(function(){o.isDropDownOpen=!1}).finally(function(){o.applying=!1})},toggle:function(e){c(e)?_.remove(i,{id:e.id}):i.push(e)},isSelected:c,$onChanges:function(e){e.items&&o.items&&(o.items=o.items.map(function(e){return _objectSpread({nameLabel:a(e)},e)}));e.itemsSelected&&(o.displayLabel=_(o.itemsSelected).sortBy(a).map(a).value().join(", "))},translateName:a,placeholder:function(){return _.isUndefined(o.textPlaceholder)?"----":o.textPlaceholder},filterItems:function(e){var t;return!o.textFilter||(t=o.textFilter.toLowerCase(),e.nameLabel.toLowerCase().includes(t))}}),[]);function l(){return _.every(u(),c)}function c(e){return _.some(i,{id:e.id})}function u(e){var t,e=e||o.items;return o.textFilter?(t=o.textFilter.toLowerCase(),e.filter(function(e){return e.nameLabel.toLowerCase().includes(t)})):e}function a(e){return r.getString(n.getName(e))}}e.$inject=["$q","$filter","gettextCatalog","c8yPropertyValueTransformService"],angular.module("c8y.ui").component("c8yItemSelector",{templateUrl:":::PLUGIN_PATH:::/ui/itemSelector/itemSelector.html",bindings:{textPlaceholder:"@",textApply:"@",styleButton:"<",items:"<",itemsSelected:"<",onApply:"&",dropdownMenuClasses:"<",disabled:"=ngDisabled"},controller:e,controllerAs:"vm"})})();
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
<li class="multiselect-item-container">
|
|
68
68
|
<ul class="list-unstyled" ng-if="vm.isDropDownOpen">
|
|
69
69
|
<li
|
|
70
|
-
ng-repeat="item in vm.items | filter:vm.
|
|
70
|
+
ng-repeat="item in vm.items | filter:vm.filterItems | orderBy:'nameLabel'"
|
|
71
71
|
class="multiselect-item"
|
|
72
72
|
>
|
|
73
73
|
<label
|
|
74
|
-
title="{{
|
|
74
|
+
title="{{ item.nameLabel }}"
|
|
75
75
|
class="c8y-checkbox input-sm text-truncate"
|
|
76
76
|
ng-click="::vm.toggle(item); $event.preventDefault()"
|
|
77
77
|
data-cy="c8y-item-selector--item"
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
ng-click="::vm.toggle(item); $event.stopPropagation()"
|
|
84
84
|
/>
|
|
85
85
|
<span></span>
|
|
86
|
-
<span class="label-text text-truncate" ng-bind="
|
|
86
|
+
<span class="label-text text-truncate" ng-bind="item.nameLabel"></span>
|
|
87
87
|
</label>
|
|
88
88
|
</li>
|
|
89
89
|
</ul>
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{function n(t,n,e,i,a,o,r,l){var n=n.tenantId,
|
|
1
|
+
(()=>{function n(t,n,e,i,a,o,r,l,c){var n=n.tenantId,u=[],p=null,s={},f=c("humanizeAppName");function m(n){s=n,t.tenant=s}function h(){return t.tenant.applications.references.map(function(n){return n.application})}function d(n){_.forEach(n,function(n){return u.push(n)}),t.owners=_(u).map("owner.tenant.id").uniq().map(function(n){return{value:n,label:n}}).concat({value:null,label:"- ".concat(l.getString("Show all"))}).value(),u.forEach(function(n){n.humanizedAppName=f(n)}),t.applications=u}t.filterOwner=function(n){return null===t.filter.owner||n.owner.tenant.id===t.filter.owner},t.filterText=function(n){return!t.filter.text||!t.filter.text.$||!!n.humanizedAppName&&n.humanizedAppName.toLowerCase().includes(t.filter.text.$.toLowerCase())},t.applications=u,t.associate=function(n){return a.addApplication(s,n).then(function(){t.associatedApplications.push(n)})},t.dissociate=function(n){return a.removeApplication(s,n).then(function(){return r.removeFromList(t.associatedApplications,n)})},t.openItem=function(n){p=p!==n?n:null},t.isOpen=function(n){return p===n},t.filter={owner:null,text:{}},t.popoverTemplateUrl=":::PLUGIN_PATH:::/views/popover.html",n&&"new"!==n&&a.detail(n).then(r.getResData).then(m).then(h).then(i.sortApps).then(function(n){t.associatedApplications=n}),i.listByTenant({pageSize:2e3}).then(function(n){return _.uniqBy(n,"id")}).then(d)}n.$inject=["$scope","$routeParams","$uibModal","c8yApplication","c8yTenant","c8yAlert","c8yBase","gettextCatalog","$filter"],angular.module("c8y.tenantApplications").controller("tenantAppAssignmentCtrl",n)})();
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
<li
|
|
77
77
|
class="c8y-list__item collapsible bg-inherit"
|
|
78
78
|
ng-class="{ expanded: isOpen(a) }"
|
|
79
|
-
ng-repeat="a in applications |filter:filterOwner|filter:
|
|
79
|
+
ng-repeat="a in applications |filter:filterOwner|filter:filterText"
|
|
80
80
|
>
|
|
81
81
|
<div class="c8y-list__item__block">
|
|
82
82
|
<div class="c8y-list__item__appicon p-l-0">
|
|
@@ -87,10 +87,10 @@
|
|
|
87
87
|
<button
|
|
88
88
|
class="btn-clean text-truncate"
|
|
89
89
|
type="button"
|
|
90
|
-
title="{{ a
|
|
90
|
+
title="{{ a.humanizedAppName }}"
|
|
91
91
|
ng-click="openItem(a)"
|
|
92
92
|
>
|
|
93
|
-
{{ a
|
|
93
|
+
{{ a.humanizedAppName }}
|
|
94
94
|
</button>
|
|
95
95
|
|
|
96
96
|
<button
|