@seniorsistemas/angular-components 17.8.14 → 17.9.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.
Files changed (36) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +86 -39
  2. package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
  3. package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
  4. package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
  5. package/components/locale/pipes/numeric.pipe.d.ts +1 -1
  6. package/components/locale/services/numeric.service.d.ts +2 -2
  7. package/components/table/table-column/models/column.interface.d.ts +1 -0
  8. package/components/table/table-column/table-columns.component.d.ts +3 -1
  9. package/components/tiered-menu/tiered-menu.directive.d.ts +1 -0
  10. package/esm2015/components/locale/pipes/numeric.pipe.js +2 -2
  11. package/esm2015/components/locale/services/numeric.service.js +8 -5
  12. package/esm2015/components/navigation-button/navigation-button.component.js +17 -9
  13. package/esm2015/components/table/table-column/models/column.interface.js +1 -1
  14. package/esm2015/components/table/table-column/table-columns.component.js +34 -29
  15. package/esm2015/components/tiered-menu/tiered-menu.directive.js +7 -2
  16. package/esm2015/utils/currency/currency.service.js +29 -0
  17. package/esm2015/utils/currency/index.js +2 -0
  18. package/esm2015/utils/index.js +2 -1
  19. package/esm5/components/locale/pipes/numeric.pipe.js +2 -2
  20. package/esm5/components/locale/services/numeric.service.js +8 -5
  21. package/esm5/components/navigation-button/navigation-button.component.js +17 -9
  22. package/esm5/components/table/table-column/models/column.interface.js +1 -1
  23. package/esm5/components/table/table-column/table-columns.component.js +31 -26
  24. package/esm5/components/tiered-menu/tiered-menu.directive.js +8 -2
  25. package/esm5/utils/currency/currency.service.js +31 -0
  26. package/esm5/utils/currency/index.js +2 -0
  27. package/esm5/utils/index.js +2 -1
  28. package/fesm2015/seniorsistemas-angular-components.js +86 -43
  29. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  30. package/fesm5/seniorsistemas-angular-components.js +86 -40
  31. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  32. package/package.json +1 -1
  33. package/seniorsistemas-angular-components.metadata.json +1 -1
  34. package/utils/currency/currency.service.d.ts +8 -0
  35. package/utils/currency/index.d.ts +1 -0
  36. package/utils/index.d.ts +1 -0
@@ -7163,14 +7163,17 @@ var NumericService = /** @class */ (function () {
7163
7163
  * Documentation is available at {@link https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat Intl.NumberFormatOptions}.
7164
7164
  *
7165
7165
  * @param {number | string | BigNumber} value The value to be formatted.
7166
- * @param {Intl.NumberFormatOptions} options Options that overwrites the default Intl.NumberFormatOptions.
7166
+ * @param options Locale and numberFormatOptions that overwrites the default Intl.NumberFormatOptions.
7167
7167
  * @return `string` The formatted value.
7168
7168
  */
7169
7169
  NumericService.prototype.instant = function (value, options) {
7170
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
7171
- options = __assign(__assign({}, options), { locale: (_c = (_a = options === null || options === void 0 ? void 0 : options.locale) !== null && _a !== void 0 ? _a : (_b = this.localeService.getLocaleOptions()) === null || _b === void 0 ? void 0 : _b.locale) !== null && _c !== void 0 ? _c : "pt-BR", options: __assign(__assign({}, options === null || options === void 0 ? void 0 : options.options), { currency: ((_d = options === null || options === void 0 ? void 0 : options.options) === null || _d === void 0 ? void 0 : _d.style) === "currency" ? (_f = (_e = options === null || options === void 0 ? void 0 : options.options) === null || _e === void 0 ? void 0 : _e.currency) !== null && _f !== void 0 ? _f : "BRL" : undefined, currencyDisplay: ((_g = options === null || options === void 0 ? void 0 : options.options) === null || _g === void 0 ? void 0 : _g.style) === "currency" ? (_j = (_h = options === null || options === void 0 ? void 0 : options.options) === null || _h === void 0 ? void 0 : _h.currencyDisplay) !== null && _j !== void 0 ? _j : "narrowSymbol" : undefined, minimumFractionDigits: (_l = (_k = options === null || options === void 0 ? void 0 : options.options) === null || _k === void 0 ? void 0 : _k.minimumFractionDigits) !== null && _l !== void 0 ? _l : 0 }) });
7170
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
7171
+ options = __assign(__assign({}, options), { locale: (_c = (_a = options === null || options === void 0 ? void 0 : options.locale) !== null && _a !== void 0 ? _a : (_b = this.localeService.getLocaleOptions()) === null || _b === void 0 ? void 0 : _b.locale) !== null && _c !== void 0 ? _c : "pt-BR", numberFormatOptions: __assign(__assign({}, options === null || options === void 0 ? void 0 : options.numberFormatOptions), { currency: ((_d = options === null || options === void 0 ? void 0 : options.numberFormatOptions) === null || _d === void 0 ? void 0 : _d.style) === "currency" ? ((_f = (_e = options === null || options === void 0 ? void 0 : options.numberFormatOptions) === null || _e === void 0 ? void 0 : _e.currency) !== null && _f !== void 0 ? _f : "BRL") : undefined, currencyDisplay: ((_g = options === null || options === void 0 ? void 0 : options.numberFormatOptions) === null || _g === void 0 ? void 0 : _g.style) === "currency"
7172
+ ? ((_j = (_h = options === null || options === void 0 ? void 0 : options.numberFormatOptions) === null || _h === void 0 ? void 0 : _h.currencyDisplay) !== null && _j !== void 0 ? _j : "narrowSymbol")
7173
+ : undefined, minimumFractionDigits: (_l = (_k = options === null || options === void 0 ? void 0 : options.numberFormatOptions) === null || _k === void 0 ? void 0 : _k.minimumFractionDigits) !== null && _l !== void 0 ? _l : 2, maximumFractionDigits: (_o = (_m = options === null || options === void 0 ? void 0 : options.numberFormatOptions) === null || _m === void 0 ? void 0 : _m.maximumFractionDigits) !== null && _o !== void 0 ? _o : 2 }) });
7174
+ options.numberFormatOptions["trailingZeroDisplay"] = "stripIfInteger";
7172
7175
  // From https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
7173
- return new Intl.NumberFormat(options.locale, options.options).format(this.getType(value) === "number" || this.getType(value) === "string" ? value : value.toString());
7176
+ return new Intl.NumberFormat(options.locale, options.numberFormatOptions).format(this.getType(value) === "number" || this.getType(value) === "string" ? value : value.toString());
7174
7177
  };
7175
7178
  NumericService.prototype.getType = function (value) {
7176
7179
  // From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof
@@ -7225,7 +7228,7 @@ var NumericPipe = /** @class */ (function () {
7225
7228
  : this.localeService.getLocale().pipe(map(function (locale) {
7226
7229
  return _this.numericService.instant(value, {
7227
7230
  locale: locale,
7228
- options: options === null || options === void 0 ? void 0 : options.options,
7231
+ numberFormatOptions: options === null || options === void 0 ? void 0 : options.numberFormatOptions,
7229
7232
  });
7230
7233
  }));
7231
7234
  };
@@ -8195,14 +8198,15 @@ var EnumBadgeColors;
8195
8198
 
8196
8199
  var moment$4 = moment_;
8197
8200
  var TableColumnsComponent = /** @class */ (function () {
8198
- function TableColumnsComponent(localeService, viewContainerRef, translate, hostProjectConfigs) {
8201
+ function TableColumnsComponent(localeService, viewContainerRef, translate, numericService, hostProjectConfigs) {
8199
8202
  this.localeService = localeService;
8200
8203
  this.viewContainerRef = viewContainerRef;
8201
8204
  this.translate = translate;
8205
+ this.numericService = numericService;
8202
8206
  this.hostProjectConfigs = hostProjectConfigs;
8203
8207
  this.locale = {
8204
8208
  calendar: __assign(__assign({}, this.localeService.getLocaleOptions().calendar), { dateFormat: convertToMomentDateFormat(this.localeService.getLocaleOptions().calendar.dateFormat) }),
8205
- number: __assign(__assign({}, this.localeService.getLocaleOptions().number), { scale: 0 })
8209
+ number: __assign(__assign({}, this.localeService.getLocaleOptions().number), { scale: 0 }),
8206
8210
  };
8207
8211
  this.formattedColumns = [];
8208
8212
  }
@@ -8225,7 +8229,7 @@ var TableColumnsComponent = /** @class */ (function () {
8225
8229
  return {
8226
8230
  value: string,
8227
8231
  isUninformed: string === uninformed,
8228
- separator: !isLastIndex ? separator : ""
8232
+ separator: !isLastIndex ? separator : "",
8229
8233
  };
8230
8234
  });
8231
8235
  }
@@ -8258,10 +8262,10 @@ var TableColumnsComponent = /** @class */ (function () {
8258
8262
  return column.prefix ? column.prefix : this.hostProjectConfigs.domain + "." + this.hostProjectConfigs.service + ".";
8259
8263
  };
8260
8264
  TableColumnsComponent.prototype.isAttributeValueInvalid = function (attributeValue) {
8261
- return attributeValue === null ||
8265
+ return (attributeValue === null ||
8262
8266
  attributeValue === undefined ||
8263
8267
  (this.isArray(attributeValue) && !attributeValue.length) ||
8264
- (typeof attributeValue === 'string' && attributeValue.trim() === '');
8268
+ (typeof attributeValue === "string" && attributeValue.trim() === ""));
8265
8269
  };
8266
8270
  TableColumnsComponent.prototype.getFormattedColumnValue = function (column, columnValue, unifiedColumnValues, uninformedText, uninformedNumber) {
8267
8271
  if (uninformedNumber === column.attributes.length) {
@@ -8274,13 +8278,9 @@ var TableColumnsComponent = /** @class */ (function () {
8274
8278
  };
8275
8279
  TableColumnsComponent.prototype.getAttributeValue = function (attribute, rowValue) {
8276
8280
  var attributeValue;
8277
- attribute
8278
- .split("/")
8279
- .forEach(function (value) {
8281
+ attribute.split("/").forEach(function (value) {
8280
8282
  if (!attributeValue) {
8281
- value
8282
- .split(".")
8283
- .forEach(function (val, i) {
8283
+ value.split(".").forEach(function (val, i) {
8284
8284
  if (!rowValue) {
8285
8285
  return;
8286
8286
  }
@@ -8298,9 +8298,7 @@ var TableColumnsComponent = /** @class */ (function () {
8298
8298
  return attributeValue;
8299
8299
  };
8300
8300
  TableColumnsComponent.prototype.getNumberConfigs = function (column) {
8301
- return __assign(__assign({}, this.locale.number), { scale: column.scale !== null && column.scale !== undefined
8302
- ? this.getColumnScale(column.scale)
8303
- : this.locale.number.scale, prefix: this.locale.number.currencySymbol + " " });
8301
+ return __assign(__assign({}, this.locale.number), { scale: column.scale !== null && column.scale !== undefined ? this.getColumnScale(column.scale) : this.locale.number.scale, prefix: this.locale.number.currencySymbol + " " });
8304
8302
  };
8305
8303
  TableColumnsComponent.prototype.getDateFormat = function (column, locale) {
8306
8304
  return column.dateFormat ? column.dateFormat : locale.calendar.dateFormat;
@@ -8312,8 +8310,8 @@ var TableColumnsComponent = /** @class */ (function () {
8312
8310
  var separator = this.getColumnSeparator(column);
8313
8311
  var uninformed = this.translate.instant(prefix + "empty_label");
8314
8312
  var style = column.style;
8315
- var columnValue = column.attributes
8316
- .map(function (attribute) {
8313
+ var columnValue = column.attributes.map(function (attribute) {
8314
+ var _a, _b;
8317
8315
  var attributeValue = _this.getAttributeValue(attribute, rowValue);
8318
8316
  if (_this.isAttributeValueInvalid(attributeValue)) {
8319
8317
  return uninformed;
@@ -8323,7 +8321,10 @@ var TableColumnsComponent = /** @class */ (function () {
8323
8321
  case EnumColumnFieldType.ENUM:
8324
8322
  return _this.translate.instant(column.enumPrefix + attributeValue.toString().toLowerCase());
8325
8323
  case EnumColumnFieldType.CURRENCY:
8326
- return applyMask(attributeValue, numberConfigs, _this.isNumber(attributeValue));
8324
+ return ((_a = attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.options) === null || _a === void 0 ? void 0 : _a.numberFormatOptions) ? _this.numericService.instant(attributeValue.value, {
8325
+ numberFormatOptions: attributeValue.options.numberFormatOptions,
8326
+ })
8327
+ : applyMask(attributeValue, numberConfigs, _this.isNumber(attributeValue));
8327
8328
  case EnumColumnFieldType.DATE:
8328
8329
  var dateFormat = _this.getDateFormat(column, locale);
8329
8330
  return moment$4(attributeValue).format(dateFormat);
@@ -8332,7 +8333,14 @@ var TableColumnsComponent = /** @class */ (function () {
8332
8333
  return _this.translate.instant(prefix + value);
8333
8334
  case EnumColumnFieldType.NUMBER:
8334
8335
  numberConfigs.prefix = "";
8335
- return applyMask(attributeValue, numberConfigs, _this.isNumber(attributeValue));
8336
+ return ((_b = attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.options) === null || _b === void 0 ? void 0 : _b.numberFormatOptions) ? _this.numericService.instant(attributeValue.value, {
8337
+ numberFormatOptions: attributeValue.options.numberFormatOptions,
8338
+ })
8339
+ : column.numberFormatOptions
8340
+ ? _this.numericService.instant(attributeValue, {
8341
+ numberFormatOptions: column.numberFormatOptions,
8342
+ })
8343
+ : applyMask(attributeValue, numberConfigs, _this.isNumber(attributeValue));
8336
8344
  case EnumColumnFieldType.TOKENS:
8337
8345
  return _this.getTokens(attributeValue);
8338
8346
  default:
@@ -8340,9 +8348,7 @@ var TableColumnsComponent = /** @class */ (function () {
8340
8348
  }
8341
8349
  });
8342
8350
  var unifiedColumnValues = columnValue.join(separator);
8343
- var uninformedNumber = unifiedColumnValues
8344
- .split(separator)
8345
- .filter(function (value) { return value === uninformed; }).length;
8351
+ var uninformedNumber = unifiedColumnValues.split(separator).filter(function (value) { return value === uninformed; }).length;
8346
8352
  var formattedColumnValue = this.getFormattedColumnValue(column, columnValue, unifiedColumnValues, uninformed, uninformedNumber);
8347
8353
  return {
8348
8354
  style: style,
@@ -8354,7 +8360,7 @@ var TableColumnsComponent = /** @class */ (function () {
8354
8360
  tooltip: this.getColumnTooltip(column.tooltip),
8355
8361
  infoSign: this.getColumnInfoSign(column.infoSign),
8356
8362
  onLinkClick: column.onLinkClick,
8357
- onColumnClick: column.onColumnClick
8363
+ onColumnClick: column.onColumnClick,
8358
8364
  };
8359
8365
  };
8360
8366
  TableColumnsComponent.prototype.getColumnScale = function (scale) {
@@ -8382,7 +8388,7 @@ var TableColumnsComponent = /** @class */ (function () {
8382
8388
  return "";
8383
8389
  };
8384
8390
  TableColumnsComponent.prototype.isNumber = function (value) {
8385
- return !(new BigNumber(value).isNaN());
8391
+ return !new BigNumber(value).isNaN();
8386
8392
  };
8387
8393
  TableColumnsComponent.prototype.getTokens = function (values) {
8388
8394
  if (!this.isArray(values)) {
@@ -8399,7 +8405,7 @@ var TableColumnsComponent = /** @class */ (function () {
8399
8405
  .map(function (value) {
8400
8406
  var label = typeof value === "symbol" ? value.toString() : "" + value;
8401
8407
  return {
8402
- label: label
8408
+ label: label,
8403
8409
  };
8404
8410
  });
8405
8411
  };
@@ -8419,6 +8425,7 @@ var TableColumnsComponent = /** @class */ (function () {
8419
8425
  { type: LocaleService },
8420
8426
  { type: ViewContainerRef },
8421
8427
  { type: TranslateService },
8428
+ { type: NumericService },
8422
8429
  { type: undefined, decorators: [{ type: Inject, args: [HostProjectConfigsInjectionToken,] }] }
8423
8430
  ]; };
8424
8431
  __decorate([
@@ -8439,7 +8446,7 @@ var TableColumnsComponent = /** @class */ (function () {
8439
8446
  selector: "s-table-columns",
8440
8447
  styles: [":host{display:none}"]
8441
8448
  }),
8442
- __param(3, Inject(HostProjectConfigsInjectionToken))
8449
+ __param(4, Inject(HostProjectConfigsInjectionToken))
8443
8450
  ], TableColumnsComponent);
8444
8451
  return TableColumnsComponent;
8445
8452
  }());
@@ -14804,11 +14811,11 @@ var NavigationButtonComponent = /** @class */ (function () {
14804
14811
  var previous = this.steps[this.currentIndex];
14805
14812
  if (this.currentIndex < this.steps.length - 1) {
14806
14813
  this.currentIndex++;
14814
+ var current = this.steps[this.currentIndex];
14815
+ this._onChange && this._onChange(current.value);
14816
+ this.stepChanged.emit({ previous: previous, current: current });
14807
14817
  }
14808
- var current = this.steps[this.currentIndex];
14809
14818
  this._onTouched && this._onTouched();
14810
- this._onChange && this._onChange(current.value);
14811
- this.stepChanged.emit({ previous: previous, current: current });
14812
14819
  };
14813
14820
  NavigationButtonComponent.prototype.onPrevious = function () {
14814
14821
  if (this.isDisabled)
@@ -14816,18 +14823,26 @@ var NavigationButtonComponent = /** @class */ (function () {
14816
14823
  var previous = this.steps[this.currentIndex];
14817
14824
  if (this.currentIndex > 0) {
14818
14825
  this.currentIndex--;
14826
+ var current = this.steps[this.currentIndex];
14827
+ this._onChange && this._onChange(current.value);
14828
+ this.stepChanged.emit({ previous: previous, current: current });
14819
14829
  }
14820
- var current = this.steps[this.currentIndex];
14821
14830
  this._onTouched && this._onTouched();
14822
- this._onChange && this._onChange(current.value);
14823
- this.stepChanged.emit({ previous: previous, current: current });
14824
14831
  };
14825
14832
  NavigationButtonComponent.prototype._createTieredMenuItems = function () {
14826
14833
  var _this = this;
14827
14834
  this.steps.forEach(function (step) {
14828
14835
  _this.tieredMenuItems.push({
14829
14836
  label: step.label,
14830
- command: function () { return (_this.currentIndex = _this.steps.findIndex(function (s) { return s === step; })); },
14837
+ command: function () {
14838
+ var index = _this.steps.findIndex(function (s) { return s === step; });
14839
+ if (_this.currentIndex !== index) {
14840
+ _this._onChange && _this._onChange(step.value);
14841
+ _this.stepChanged.emit({ previous: _this.steps[_this.currentIndex], current: step });
14842
+ _this.currentIndex = index;
14843
+ }
14844
+ _this._onTouched && _this._onTouched();
14845
+ },
14831
14846
  });
14832
14847
  });
14833
14848
  };
@@ -14853,7 +14868,7 @@ var NavigationButtonComponent = /** @class */ (function () {
14853
14868
  NavigationButtonComponent = NavigationButtonComponent_1 = __decorate([
14854
14869
  Component({
14855
14870
  selector: "s-navigation-button",
14856
- template: "<div class=\"navigation-button\" [ngClass]=\"{ 'navigation-button--disabled': isDisabled}\">\n <button\n class=\"option option--previous\"\n [ngClass]=\"{ 'option--disabled': currentIndex === 0 }\"\n (click)=\"onPrevious()\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n\n <ng-container *ngIf=\"steps[currentIndex].tooltip || tooltip; then tooltipBlock; else noTooltipBlock\"></ng-container>\n\n <ng-template #tooltipBlock>\n <button\n [sTooltip]=\"steps[currentIndex].tooltip || tooltip\"\n class=\"step\"\n sTieredMenu [items]=\"tieredMenuItems\">\n {{ steps[currentIndex].label }}\n </button>\n </ng-template>\n\n <ng-template #noTooltipBlock>\n <button class=\"step\">\n {{ steps[currentIndex].label }}\n </button>\n </ng-template>\n\n <button\n class=\"option option--next\"\n [ngClass]=\"{ 'option--disabled': currentIndex === steps.length - 1 }\"\n (click)=\"onNext()\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n</div>\n",
14871
+ template: "<div class=\"navigation-button\" [ngClass]=\"{ 'navigation-button--disabled': isDisabled}\">\n <button\n class=\"option option--previous\"\n [ngClass]=\"{ 'option--disabled': currentIndex === 0 }\"\n (click)=\"onPrevious()\">\n <i class=\"fas fa-chevron-left\"></i>\n </button>\n\n <ng-container *ngIf=\"steps[currentIndex].tooltip || tooltip; then tooltipBlock; else noTooltipBlock\"></ng-container>\n\n <ng-template #tooltipBlock>\n <button\n [sTooltip]=\"steps[currentIndex].tooltip || tooltip\"\n class=\"step\"\n sTieredMenu [items]=\"tieredMenuItems\"\n [focusedItem]=\"tieredMenuItems[currentIndex]\">\n {{ steps[currentIndex].label }}\n </button>\n </ng-template>\n\n <ng-template #noTooltipBlock>\n <button class=\"step\">\n {{ steps[currentIndex].label }}\n </button>\n </ng-template>\n\n <button\n class=\"option option--next\"\n [ngClass]=\"{ 'option--disabled': currentIndex === steps.length - 1 }\"\n (click)=\"onNext()\">\n <i class=\"fas fa-chevron-right\"></i>\n </button>\n</div>\n",
14857
14872
  providers: [
14858
14873
  {
14859
14874
  provide: NG_VALUE_ACCESSOR,
@@ -15486,6 +15501,7 @@ var TieredMenuDirective = /** @class */ (function () {
15486
15501
  this._tieredMenuGlobalService = _tieredMenuGlobalService;
15487
15502
  this._changeDetectorRef = _changeDetectorRef;
15488
15503
  this.items = [];
15504
+ this.focusedItem = undefined;
15489
15505
  this.triggerEvent = "click";
15490
15506
  this._componentRef = null;
15491
15507
  this._isNested = false;
@@ -15640,9 +15656,11 @@ var TieredMenuDirective = /** @class */ (function () {
15640
15656
  this._destroy();
15641
15657
  };
15642
15658
  TieredMenuDirective.prototype._updateServiceItems = function () {
15659
+ var _this = this;
15660
+ var _a;
15643
15661
  this._tieredMenuService.items = this._tieredMenuService.normalizeData(this.items);
15644
15662
  this._tieredMenuService.currentItems = this._tieredMenuService.items;
15645
- this._tieredMenuService.currentItem = this._tieredMenuService.items[0];
15663
+ this._tieredMenuService.currentItem = (_a = this._tieredMenuService.items.find(function (i) { var _a; return i.label === ((_a = _this.focusedItem) === null || _a === void 0 ? void 0 : _a.label); })) !== null && _a !== void 0 ? _a : this._tieredMenuService.items[0];
15646
15664
  };
15647
15665
  TieredMenuDirective.ctorParameters = function () { return [
15648
15666
  { type: ElementRef },
@@ -15657,6 +15675,9 @@ var TieredMenuDirective = /** @class */ (function () {
15657
15675
  __decorate([
15658
15676
  Input()
15659
15677
  ], TieredMenuDirective.prototype, "items", void 0);
15678
+ __decorate([
15679
+ Input()
15680
+ ], TieredMenuDirective.prototype, "focusedItem", void 0);
15660
15681
  __decorate([
15661
15682
  Input()
15662
15683
  ], TieredMenuDirective.prototype, "triggerEvent", void 0);
@@ -17846,6 +17867,31 @@ var WorkspaceSwitchModule = /** @class */ (function () {
17846
17867
  return WorkspaceSwitchModule;
17847
17868
  }());
17848
17869
 
17870
+ var CurrencyService = /** @class */ (function () {
17871
+ function CurrencyService(localeService) {
17872
+ this.localeService = localeService;
17873
+ }
17874
+ CurrencyService.prototype.getCurrencySymbol = function (_a) {
17875
+ var currency = _a.currency;
17876
+ var _b, _c;
17877
+ var numberFormat = new Intl.NumberFormat(this.localeService.getLocaleOptions().locale, {
17878
+ style: "currency",
17879
+ currency: currency !== null && currency !== void 0 ? currency : "BRL",
17880
+ currencyDisplay: 'narrowSymbol',
17881
+ maximumFractionDigits: 5,
17882
+ });
17883
+ return (_c = (_b = numberFormat.formatToParts(1).find(function (x) { return x.type === "currency"; })) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : "";
17884
+ };
17885
+ CurrencyService.ctorParameters = function () { return [
17886
+ { type: LocaleService }
17887
+ ]; };
17888
+ CurrencyService.ɵprov = ɵɵdefineInjectable({ factory: function CurrencyService_Factory() { return new CurrencyService(ɵɵinject(LocaleService)); }, token: CurrencyService, providedIn: "root" });
17889
+ CurrencyService = __decorate([
17890
+ Injectable({ providedIn: "root" })
17891
+ ], CurrencyService);
17892
+ return CurrencyService;
17893
+ }());
17894
+
17849
17895
  var fallback = {
17850
17896
  "platform.angular_components.drag_your_photo_or": "Arraste sua foto ou",
17851
17897
  "platform.angular_components.select_a_file": "selecione um arquivo",
@@ -18165,5 +18211,5 @@ var fallback = {
18165
18211
  * Generated bundle index. Do not edit.
18166
18212
  */
18167
18213
 
18168
- export { AccordionComponent, AccordionModule, AccordionPanelComponent, AlertComponent, AlertModule, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, CardComponent, CardModule, CardTemplateTypes, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileUploadPermissions, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, KanbanComponent, KanbanModule, KanbanTemplateTypes, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationButtonComponent, NavigationButtonModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TextAreaField, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, convertToMomentDateFormat, countries, fallback, TooltipComponent as ɵa, TooltipDirective as ɵb, TextFieldComponent as ɵba, NumberFieldModule as ɵbb, LocalizedNumberInputModule as ɵbc, NumberInputModule as ɵbd, NumberFieldComponent as ɵbe, CurrencyFieldModule as ɵbf, CurrencyFieldComponent as ɵbg, NumberFieldModule$1 as ɵbh, BignumberInputModule as ɵbi, BignumberFieldComponent as ɵbj, ProfilePictureModule as ɵbk, ThumbnailService as ɵbl, StructureModule as ɵbm, HeaderComponent as ɵbn, FooterComponent as ɵbo, ProfilePictureFieldComponent as ɵbp, AutocompleteFieldComponent as ɵbq, BooleanFieldComponent as ɵbr, BooleanSwitchFieldComponent as ɵbs, CalendarFieldComponent as ɵbt, ChipsFieldComponent as ɵbu, CountryPhonePickerFieldComponent as ɵbv, DynamicFieldComponent as ɵbw, DynamicFormDirective as ɵbx, FieldsetComponent as ɵby, FileUploadComponent$1 as ɵbz, TemplateDirective as ɵc, LookupFieldComponent as ɵca, RadioButtonComponent as ɵcb, RowComponent as ɵcc, SectionComponent as ɵcd, SelectFieldComponent as ɵce, SliderFieldComponent as ɵcf, TextAreaFieldComponent as ɵcg, TextAreaIAFieldComponent as ɵch, IAssistService as ɵci, DecimalField as ɵck, SideTableComponent as ɵcl, InfiniteScrollModule as ɵcm, InfiniteScrollDirective as ɵcn, IAInsightSidebarComponent as ɵco, IAInsightCardComponent as ɵcp, IAInsightCardLoaderComponent as ɵcq, KanbanEventService as ɵcr, KanbanItemComponent as ɵcs, KanbanColumnComponent as ɵct, KanbanItemDraggingComponent as ɵcu, NumberLocaleOptions as ɵcv, TieredMenuEventService as ɵcw, TieredMenuService as ɵcx, TieredMenuGlobalService as ɵcy, TieredMenuComponent as ɵcz, TemplateModule as ɵd, TieredMenuNestedComponent as ɵda, TieredMenuItemComponent as ɵdb, TieredMenuDividerComponent as ɵdc, BorderButtonModule as ɵdd, BorderButtonComponent as ɵde, ProgressBarDeterminateComponent as ɵdf, ProgressBarIndeterminateComponent as ɵdg, SelectButtonItemComponent as ɵdh, SlidePanelService as ɵdi, TimelineItemModule as ɵdj, TimelineIconItemComponent as ɵdk, HorizontalTimelineModule as ɵdl, HorizontalTimelineComponent as ɵdm, VerticalTimelineModule as ɵdn, VerticalTimelineComponent as ɵdo, RangeLineComponent as ɵdp, CollapseOptionComponent as ɵdq, CollapsedItemsComponent as ɵdr, VerticalItemsComponent as ɵds, CustomTranslationsModule as ɵe, CodeEditorComponent as ɵf, CoreFacade as ɵg, CodeMirror6Core as ɵh, CountryPhonePickerService as ɵi, LocalizedCurrencyImpurePipe as ɵj, LocalizedBignumberPipe as ɵk, LocalizedBignumberImpurePipe as ɵl, NumericPipe as ɵm, NumericService as ɵn, EmptyStateGoBackComponent as ɵo, IAssistIconComponent as ɵp, SeniorIconComponent as ɵq, DotsIndicatorComponent as ɵr, LoadingIndicatorComponent as ɵs, FileUploadService as ɵt, InfoSignComponent as ɵu, TableColumnsComponent as ɵv, TablePagingComponent as ɵw, PasswordFieldModule as ɵx, PasswordFieldComponent as ɵy, TextFieldModule as ɵz };
18214
+ export { AccordionComponent, AccordionModule, AccordionPanelComponent, AlertComponent, AlertModule, AngularComponentsModule, AutocompleteField, BadgeColors, BadgeComponent, BadgeModule, BaseFieldComponent, BignumberField, BignumberInputDirective, BignumberInputModule, BooleanField, BooleanOptionsLabel, BreadcrumbComponent, BreadcrumbModule, Breakpoints, ButtonComponent, ButtonModule, ButtonPriority, ButtonSize, CalendarField, CalendarLocaleOptions, CalendarMaskDirective, CalendarMaskModule, CardComponent, CardModule, CardTemplateTypes, ChipsField, CodeEditorModule, CollapseLinkComponent, CollapseLinkModule, ControlErrorsComponent, ControlErrorsModule, CountryPhonePickerComponent, CountryPhonePickerModule, CurrencyField, CurrencyService, CustomFieldsComponent, CustomFieldsModule, CustomFieldsService, DEFAULT_CALENDAR_LOCALE_OPTIONS, DEFAULT_LOCALE_OPTIONS, DEFAULT_NUMBER_LOCALE_OPTIONS, DebounceUtils, DoubleClickDirective, DynamicConfig, DynamicFormComponent, DynamicFormModule, DynamicType, EditableOverlayDirective, EditableOverlayModule, EmptyStateComponent, EmptyStateModule, EnumBadgeColors, EnumColumnFieldType, EnumSeverity, ExportUtils, Field, FieldType, Fieldset, FileUploadComponent, FileUploadModule, FileUploadPermissions, FileValidation, FormField, GanttComponent, GanttModule, GlobalSearchComponent, GlobalSearchDropdownItemComponent, GlobalSearchModule, GlobalSearchSizeEnum, HostProjectConfigsInjectionToken, IAInsightComponent, IAInsightModule, IAInsightTemplateTypes, ImageCropperComponent, ImageCropperModule, ImageCropperService, InfoSignDirective, InfoSignModule, KanbanComponent, KanbanModule, KanbanTemplateTypes, Languages, LoadingStateComponent, LoadingStateDirective, LoadingStateModule, LocaleModule, LocaleOptions, LocaleService, LocalizedCurrencyPipe, LocalizedCurrencyPipeOptions, LocalizedDateImpurePipe, LocalizedDatePipe, LocalizedNumberInputDirective, LocalizedNumberInputModule, LocalizedNumberPipe, LocalizedTimeImpurePipe, LocalizedTimePipe, LongPressDirective, LookupComponent, LookupField, MaskFormatterModule, MaskFormatterPipe, MouseEventsModule, NavigationButtonComponent, NavigationButtonModule, NavigationDirective, NumberAlignmentOption, NumberField, NumberInputDirective, NumberInputModule, NumberLocaleOptions, ObjectCardComponent, ObjectCardFieldComponent, ObjectCardMainComponent, ObjectCardModule, Option, Ordination, PanelComponent, PanelModule, PasswordField, PasswordStrengthComponent, PasswordStrengthDirective, PasswordStrengthModule, PasswordStrengthPositions, PasswordStrengths, ProductHeaderComponent, ProductHeaderModule, ProfilePicturePickerComponent, ProfilePicturePickerModule, ProgressBarColors, ProgressBarComponent, ProgressBarModule, RadioButtonField, RatingScaleComponent, RatingScaleModule, RationButtonOption, RowTogllerDirective, SVGFactoryDirective, SVGFactoryModule, Section, SelectButtonComponent, SelectButtonModule, SelectField, SelectOption, SidebarComponent, SidebarModule, SlidePanelComponent, SlidePanelModule, SplitButtonComponent, SplitButtonModule, SplitButtonType, StatsCardComponent, StatsCardModule, StepState, StepsComponent, StepsModule, Structure, SwitchComponent, SwitchModule, TableFrozenPositionDirective, TableHeaderCheckboxComponent, TableHeaderCheckboxModule, TableModule, TaxCalculationLanguageConfigs, TextAreaField, TextField, Themes, ThumbnailComponent, ThumbnailModule, ThumbnailSize, TieredMenuDirective, TieredMenuModule, TileComponent, TileModule, TimelineComponent, TimelineItem, TimelineItemSeverity, TimelineItemSize, TimelineModule, TokenListComponent, TokenListModule, TooltipModule, TooltipPosition, ValidateErrors, ViewMode, WorkspaceSwitchComponent, WorkspaceSwitchModule, convertToMomentDateFormat, countries, fallback, TooltipComponent as ɵa, TooltipDirective as ɵb, TextFieldComponent as ɵba, NumberFieldModule as ɵbb, LocalizedNumberInputModule as ɵbc, NumberInputModule as ɵbd, NumberFieldComponent as ɵbe, CurrencyFieldModule as ɵbf, CurrencyFieldComponent as ɵbg, NumberFieldModule$1 as ɵbh, BignumberInputModule as ɵbi, BignumberFieldComponent as ɵbj, ProfilePictureModule as ɵbk, ThumbnailService as ɵbl, StructureModule as ɵbm, HeaderComponent as ɵbn, FooterComponent as ɵbo, ProfilePictureFieldComponent as ɵbp, AutocompleteFieldComponent as ɵbq, BooleanFieldComponent as ɵbr, BooleanSwitchFieldComponent as ɵbs, CalendarFieldComponent as ɵbt, ChipsFieldComponent as ɵbu, CountryPhonePickerFieldComponent as ɵbv, DynamicFieldComponent as ɵbw, DynamicFormDirective as ɵbx, FieldsetComponent as ɵby, FileUploadComponent$1 as ɵbz, TemplateDirective as ɵc, LookupFieldComponent as ɵca, RadioButtonComponent as ɵcb, RowComponent as ɵcc, SectionComponent as ɵcd, SelectFieldComponent as ɵce, SliderFieldComponent as ɵcf, TextAreaFieldComponent as ɵcg, TextAreaIAFieldComponent as ɵch, IAssistService as ɵci, DecimalField as ɵck, SideTableComponent as ɵcl, InfiniteScrollModule as ɵcm, InfiniteScrollDirective as ɵcn, IAInsightSidebarComponent as ɵco, IAInsightCardComponent as ɵcp, IAInsightCardLoaderComponent as ɵcq, KanbanEventService as ɵcr, KanbanItemComponent as ɵcs, KanbanColumnComponent as ɵct, KanbanItemDraggingComponent as ɵcu, NumberLocaleOptions as ɵcv, TieredMenuEventService as ɵcw, TieredMenuService as ɵcx, TieredMenuGlobalService as ɵcy, TieredMenuComponent as ɵcz, TemplateModule as ɵd, TieredMenuNestedComponent as ɵda, TieredMenuItemComponent as ɵdb, TieredMenuDividerComponent as ɵdc, BorderButtonModule as ɵdd, BorderButtonComponent as ɵde, ProgressBarDeterminateComponent as ɵdf, ProgressBarIndeterminateComponent as ɵdg, SelectButtonItemComponent as ɵdh, SlidePanelService as ɵdi, TimelineItemModule as ɵdj, TimelineIconItemComponent as ɵdk, HorizontalTimelineModule as ɵdl, HorizontalTimelineComponent as ɵdm, VerticalTimelineModule as ɵdn, VerticalTimelineComponent as ɵdo, RangeLineComponent as ɵdp, CollapseOptionComponent as ɵdq, CollapsedItemsComponent as ɵdr, VerticalItemsComponent as ɵds, CustomTranslationsModule as ɵe, CodeEditorComponent as ɵf, CoreFacade as ɵg, CodeMirror6Core as ɵh, CountryPhonePickerService as ɵi, LocalizedCurrencyImpurePipe as ɵj, LocalizedBignumberPipe as ɵk, LocalizedBignumberImpurePipe as ɵl, NumericPipe as ɵm, NumericService as ɵn, EmptyStateGoBackComponent as ɵo, IAssistIconComponent as ɵp, SeniorIconComponent as ɵq, DotsIndicatorComponent as ɵr, LoadingIndicatorComponent as ɵs, FileUploadService as ɵt, InfoSignComponent as ɵu, TableColumnsComponent as ɵv, TablePagingComponent as ɵw, PasswordFieldModule as ɵx, PasswordFieldComponent as ɵy, TextFieldModule as ɵz };
18169
18215
  //# sourceMappingURL=seniorsistemas-angular-components.js.map