@sumaris-net/ngx-components 1.23.68 → 1.23.69

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.
@@ -114,6 +114,64 @@
114
114
  function __param(paramIndex, decorator) {
115
115
  return function (target, key) { decorator(target, key, paramIndex); };
116
116
  }
117
+ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
118
+ function accept(f) { if (f !== void 0 && typeof f !== "function")
119
+ throw new TypeError("Function expected"); return f; }
120
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
121
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
122
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
123
+ var _, done = false;
124
+ for (var i = decorators.length - 1; i >= 0; i--) {
125
+ var context = {};
126
+ for (var p in contextIn)
127
+ context[p] = p === "access" ? {} : contextIn[p];
128
+ for (var p in contextIn.access)
129
+ context.access[p] = contextIn.access[p];
130
+ context.addInitializer = function (f) { if (done)
131
+ throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
132
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
133
+ if (kind === "accessor") {
134
+ if (result === void 0)
135
+ continue;
136
+ if (result === null || typeof result !== "object")
137
+ throw new TypeError("Object expected");
138
+ if (_ = accept(result.get))
139
+ descriptor.get = _;
140
+ if (_ = accept(result.set))
141
+ descriptor.set = _;
142
+ if (_ = accept(result.init))
143
+ initializers.push(_);
144
+ }
145
+ else if (_ = accept(result)) {
146
+ if (kind === "field")
147
+ initializers.push(_);
148
+ else
149
+ descriptor[key] = _;
150
+ }
151
+ }
152
+ if (target)
153
+ Object.defineProperty(target, contextIn.name, descriptor);
154
+ done = true;
155
+ }
156
+ ;
157
+ function __runInitializers(thisArg, initializers, value) {
158
+ var useValue = arguments.length > 2;
159
+ for (var i = 0; i < initializers.length; i++) {
160
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
161
+ }
162
+ return useValue ? value : void 0;
163
+ }
164
+ ;
165
+ function __propKey(x) {
166
+ return typeof x === "symbol" ? x : "".concat(x);
167
+ }
168
+ ;
169
+ function __setFunctionName(f, name, prefix) {
170
+ if (typeof name === "symbol")
171
+ name = name.description ? "[".concat(name.description, "]") : "";
172
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
173
+ }
174
+ ;
117
175
  function __metadata(metadataKey, metadataValue) {
118
176
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
119
177
  return Reflect.metadata(metadataKey, metadataValue);
@@ -313,7 +371,7 @@
313
371
  function __asyncDelegator(o) {
314
372
  var i, p;
315
373
  return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
316
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
374
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
317
375
  }
318
376
  function __asyncValues(o) {
319
377
  if (!Symbol.asyncIterator)
@@ -9925,13 +9983,9 @@
9925
9983
  function MatPaginatorI18n(translate) {
9926
9984
  var _this = _super.call(this) || this;
9927
9985
  _this.translate = translate;
9928
- _this.itemsPerPageLabel = 'Items per page';
9929
- _this.nextPageLabel = 'Next page';
9930
- _this.previousPageLabel = 'Previous page';
9931
9986
  _this.getRangeLabel = function (page, pageSize, length) {
9932
- var of = this.translate ? this.translate.instant('COMMON.PAGINATOR.OF') : 'of';
9933
9987
  if (length === 0 || pageSize === 0) {
9934
- return '0 ' + of + ' ' + length;
9988
+ return '0 ' + _this.ofLabel + ' ' + length;
9935
9989
  }
9936
9990
  length = Math.max(length, 0);
9937
9991
  var startIndex = page * pageSize;
@@ -9939,18 +9993,26 @@
9939
9993
  var endIndex = startIndex < length ?
9940
9994
  Math.min(startIndex + pageSize, length) :
9941
9995
  startIndex + pageSize;
9942
- return startIndex + 1 + ' - ' + endIndex + ' ' + of + ' ' + length;
9996
+ return startIndex + 1 + ' - ' + endIndex + ' ' + _this.ofLabel + ' ' + length;
9943
9997
  };
9944
- _this.translate = translate;
9945
- translate.onLangChange.subscribe(function () { return _this.translateLabels(); });
9946
- _this.translateLabels();
9998
+ _this.translate.get([
9999
+ 'COMMON.PAGINATOR.ITEMS_PER_PAGE',
10000
+ 'COMMON.PAGINATOR.NEXT_PAGE',
10001
+ 'COMMON.PAGINATOR.PREVIOUS_PAGE',
10002
+ 'COMMON.PAGINATOR.OF',
10003
+ ])
10004
+ .subscribe(function (translations) {
10005
+ console.info('[MatPaginatorI18n] Update pagination translations');
10006
+ _this.itemsPerPageLabel = _this._getTranslationValue(translations, 'COMMON.PAGINATOR.ITEMS_PER_PAGE', '');
10007
+ _this.nextPageLabel = _this._getTranslationValue(translations, 'COMMON.PAGINATOR.NEXT_PAGE', '>');
10008
+ _this.previousPageLabel = _this._getTranslationValue(translations, 'COMMON.PAGINATOR.PREVIOUS_PAGE', '<');
10009
+ _this.ofLabel = _this._getTranslationValue(translations, 'COMMON.PAGINATOR.OF', '/');
10010
+ _this.changes.next();
10011
+ });
9947
10012
  return _this;
9948
10013
  }
9949
- MatPaginatorI18n.prototype.translateLabels = function () {
9950
- //console.debug("[i18n] Update pagination translations");
9951
- this.itemsPerPageLabel = this.translate.instant('COMMON.PAGINATOR.ITEMS_PER_PAGE');
9952
- this.nextPageLabel = this.translate.instant('COMMON.PAGINATOR.NEXT_PAGE');
9953
- this.previousPageLabel = this.translate.instant('COMMON.PAGINATOR.PREVIOUS_PAGE');
10014
+ MatPaginatorI18n.prototype._getTranslationValue = function (translations, key, defaultValue) {
10015
+ return (translations[key] !== key) ? translations[key] : defaultValue;
9954
10016
  };
9955
10017
  return MatPaginatorI18n;
9956
10018
  }(paginator.MatPaginatorIntl));
@@ -17972,6 +18034,7 @@
17972
18034
  };
17973
18035
  return Software;
17974
18036
  }(Entity));
18037
+ exports.Software.ENTITY_NAME = 'Software';
17975
18038
  exports.Software = Software_1 = __decorate([
17976
18039
  EntityClass({ typename: 'SoftwareVO' })
17977
18040
  ], exports.Software);