@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.
- package/bundles/seniorsistemas-angular-components.umd.js +86 -39
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/locale/pipes/numeric.pipe.d.ts +1 -1
- package/components/locale/services/numeric.service.d.ts +2 -2
- package/components/table/table-column/models/column.interface.d.ts +1 -0
- package/components/table/table-column/table-columns.component.d.ts +3 -1
- package/components/tiered-menu/tiered-menu.directive.d.ts +1 -0
- package/esm2015/components/locale/pipes/numeric.pipe.js +2 -2
- package/esm2015/components/locale/services/numeric.service.js +8 -5
- package/esm2015/components/navigation-button/navigation-button.component.js +17 -9
- package/esm2015/components/table/table-column/models/column.interface.js +1 -1
- package/esm2015/components/table/table-column/table-columns.component.js +34 -29
- package/esm2015/components/tiered-menu/tiered-menu.directive.js +7 -2
- package/esm2015/utils/currency/currency.service.js +29 -0
- package/esm2015/utils/currency/index.js +2 -0
- package/esm2015/utils/index.js +2 -1
- package/esm5/components/locale/pipes/numeric.pipe.js +2 -2
- package/esm5/components/locale/services/numeric.service.js +8 -5
- package/esm5/components/navigation-button/navigation-button.component.js +17 -9
- package/esm5/components/table/table-column/models/column.interface.js +1 -1
- package/esm5/components/table/table-column/table-columns.component.js +31 -26
- package/esm5/components/tiered-menu/tiered-menu.directive.js +8 -2
- package/esm5/utils/currency/currency.service.js +31 -0
- package/esm5/utils/currency/index.js +2 -0
- package/esm5/utils/index.js +2 -1
- package/fesm2015/seniorsistemas-angular-components.js +86 -43
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +86 -40
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
- package/utils/currency/currency.service.d.ts +8 -0
- package/utils/currency/index.d.ts +1 -0
- package/utils/index.d.ts +1 -0
|
@@ -6691,14 +6691,17 @@ let NumericService = class NumericService {
|
|
|
6691
6691
|
* Documentation is available at {@link https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat Intl.NumberFormatOptions}.
|
|
6692
6692
|
*
|
|
6693
6693
|
* @param {number | string | BigNumber} value The value to be formatted.
|
|
6694
|
-
* @param
|
|
6694
|
+
* @param options Locale and numberFormatOptions that overwrites the default Intl.NumberFormatOptions.
|
|
6695
6695
|
* @return `string` The formatted value.
|
|
6696
6696
|
*/
|
|
6697
6697
|
instant(value, options) {
|
|
6698
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
6699
|
-
options = Object.assign(Object.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",
|
|
6698
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
6699
|
+
options = Object.assign(Object.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: Object.assign(Object.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"
|
|
6700
|
+
? ((_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")
|
|
6701
|
+
: 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 }) });
|
|
6702
|
+
options.numberFormatOptions["trailingZeroDisplay"] = "stripIfInteger";
|
|
6700
6703
|
// From https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
|
|
6701
|
-
return new Intl.NumberFormat(options.locale, options.
|
|
6704
|
+
return new Intl.NumberFormat(options.locale, options.numberFormatOptions).format(this.getType(value) === "number" || this.getType(value) === "string" ? value : value.toString());
|
|
6702
6705
|
}
|
|
6703
6706
|
getType(value) {
|
|
6704
6707
|
// From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof
|
|
@@ -6750,7 +6753,7 @@ let NumericPipe = class NumericPipe {
|
|
|
6750
6753
|
return (options === null || options === void 0 ? void 0 : options.locale) ? of(this.numericService.instant(value, options))
|
|
6751
6754
|
: this.localeService.getLocale().pipe(map((locale) => this.numericService.instant(value, {
|
|
6752
6755
|
locale,
|
|
6753
|
-
|
|
6756
|
+
numberFormatOptions: options === null || options === void 0 ? void 0 : options.numberFormatOptions,
|
|
6754
6757
|
})));
|
|
6755
6758
|
}
|
|
6756
6759
|
};
|
|
@@ -7640,14 +7643,15 @@ var EnumBadgeColors;
|
|
|
7640
7643
|
|
|
7641
7644
|
const moment$4 = moment_;
|
|
7642
7645
|
let TableColumnsComponent = class TableColumnsComponent {
|
|
7643
|
-
constructor(localeService, viewContainerRef, translate, hostProjectConfigs) {
|
|
7646
|
+
constructor(localeService, viewContainerRef, translate, numericService, hostProjectConfigs) {
|
|
7644
7647
|
this.localeService = localeService;
|
|
7645
7648
|
this.viewContainerRef = viewContainerRef;
|
|
7646
7649
|
this.translate = translate;
|
|
7650
|
+
this.numericService = numericService;
|
|
7647
7651
|
this.hostProjectConfigs = hostProjectConfigs;
|
|
7648
7652
|
this.locale = {
|
|
7649
7653
|
calendar: Object.assign(Object.assign({}, this.localeService.getLocaleOptions().calendar), { dateFormat: convertToMomentDateFormat(this.localeService.getLocaleOptions().calendar.dateFormat) }),
|
|
7650
|
-
number: Object.assign(Object.assign({}, this.localeService.getLocaleOptions().number), { scale: 0 })
|
|
7654
|
+
number: Object.assign(Object.assign({}, this.localeService.getLocaleOptions().number), { scale: 0 }),
|
|
7651
7655
|
};
|
|
7652
7656
|
this.formattedColumns = [];
|
|
7653
7657
|
}
|
|
@@ -7670,7 +7674,7 @@ let TableColumnsComponent = class TableColumnsComponent {
|
|
|
7670
7674
|
return {
|
|
7671
7675
|
value: string,
|
|
7672
7676
|
isUninformed: string === uninformed,
|
|
7673
|
-
separator: !isLastIndex ? separator : ""
|
|
7677
|
+
separator: !isLastIndex ? separator : "",
|
|
7674
7678
|
};
|
|
7675
7679
|
});
|
|
7676
7680
|
}
|
|
@@ -7702,29 +7706,25 @@ let TableColumnsComponent = class TableColumnsComponent {
|
|
|
7702
7706
|
return column.prefix ? column.prefix : `${this.hostProjectConfigs.domain}.${this.hostProjectConfigs.service}.`;
|
|
7703
7707
|
}
|
|
7704
7708
|
isAttributeValueInvalid(attributeValue) {
|
|
7705
|
-
return attributeValue === null ||
|
|
7709
|
+
return (attributeValue === null ||
|
|
7706
7710
|
attributeValue === undefined ||
|
|
7707
7711
|
(this.isArray(attributeValue) && !attributeValue.length) ||
|
|
7708
|
-
(typeof attributeValue ===
|
|
7712
|
+
(typeof attributeValue === "string" && attributeValue.trim() === ""));
|
|
7709
7713
|
}
|
|
7710
7714
|
getFormattedColumnValue(column, columnValue, unifiedColumnValues, uninformedText, uninformedNumber) {
|
|
7711
7715
|
if (uninformedNumber === column.attributes.length) {
|
|
7712
7716
|
return uninformedText;
|
|
7713
7717
|
}
|
|
7714
7718
|
if (column.type === EnumColumnFieldType.TOKENS) {
|
|
7715
|
-
return [].concat.apply([], columnValue.filter(values => values !== uninformedText));
|
|
7719
|
+
return [].concat.apply([], columnValue.filter((values) => values !== uninformedText));
|
|
7716
7720
|
}
|
|
7717
7721
|
return unifiedColumnValues;
|
|
7718
7722
|
}
|
|
7719
7723
|
getAttributeValue(attribute, rowValue) {
|
|
7720
7724
|
let attributeValue;
|
|
7721
|
-
attribute
|
|
7722
|
-
.split("/")
|
|
7723
|
-
.forEach((value) => {
|
|
7725
|
+
attribute.split("/").forEach((value) => {
|
|
7724
7726
|
if (!attributeValue) {
|
|
7725
|
-
value
|
|
7726
|
-
.split(".")
|
|
7727
|
-
.forEach((val, i) => {
|
|
7727
|
+
value.split(".").forEach((val, i) => {
|
|
7728
7728
|
if (!rowValue) {
|
|
7729
7729
|
return;
|
|
7730
7730
|
}
|
|
@@ -7742,9 +7742,7 @@ let TableColumnsComponent = class TableColumnsComponent {
|
|
|
7742
7742
|
return attributeValue;
|
|
7743
7743
|
}
|
|
7744
7744
|
getNumberConfigs(column) {
|
|
7745
|
-
return Object.assign(Object.assign({}, this.locale.number), { scale: column.scale !== null && column.scale !== undefined
|
|
7746
|
-
? this.getColumnScale(column.scale)
|
|
7747
|
-
: this.locale.number.scale, prefix: `${this.locale.number.currencySymbol} ` });
|
|
7745
|
+
return Object.assign(Object.assign({}, this.locale.number), { scale: column.scale !== null && column.scale !== undefined ? this.getColumnScale(column.scale) : this.locale.number.scale, prefix: `${this.locale.number.currencySymbol} ` });
|
|
7748
7746
|
}
|
|
7749
7747
|
getDateFormat(column, locale) {
|
|
7750
7748
|
return column.dateFormat ? column.dateFormat : locale.calendar.dateFormat;
|
|
@@ -7755,8 +7753,8 @@ let TableColumnsComponent = class TableColumnsComponent {
|
|
|
7755
7753
|
const separator = this.getColumnSeparator(column);
|
|
7756
7754
|
const uninformed = this.translate.instant(prefix + "empty_label");
|
|
7757
7755
|
const style = column.style;
|
|
7758
|
-
const columnValue = column.attributes
|
|
7759
|
-
|
|
7756
|
+
const columnValue = column.attributes.map((attribute) => {
|
|
7757
|
+
var _a, _b;
|
|
7760
7758
|
const attributeValue = this.getAttributeValue(attribute, rowValue);
|
|
7761
7759
|
if (this.isAttributeValueInvalid(attributeValue)) {
|
|
7762
7760
|
return uninformed;
|
|
@@ -7766,7 +7764,10 @@ let TableColumnsComponent = class TableColumnsComponent {
|
|
|
7766
7764
|
case EnumColumnFieldType.ENUM:
|
|
7767
7765
|
return this.translate.instant(column.enumPrefix + attributeValue.toString().toLowerCase());
|
|
7768
7766
|
case EnumColumnFieldType.CURRENCY:
|
|
7769
|
-
return
|
|
7767
|
+
return ((_a = attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.options) === null || _a === void 0 ? void 0 : _a.numberFormatOptions) ? this.numericService.instant(attributeValue.value, {
|
|
7768
|
+
numberFormatOptions: attributeValue.options.numberFormatOptions,
|
|
7769
|
+
})
|
|
7770
|
+
: applyMask(attributeValue, numberConfigs, this.isNumber(attributeValue));
|
|
7770
7771
|
case EnumColumnFieldType.DATE:
|
|
7771
7772
|
const dateFormat = this.getDateFormat(column, locale);
|
|
7772
7773
|
return moment$4(attributeValue).format(dateFormat);
|
|
@@ -7775,7 +7776,14 @@ let TableColumnsComponent = class TableColumnsComponent {
|
|
|
7775
7776
|
return this.translate.instant(prefix + value);
|
|
7776
7777
|
case EnumColumnFieldType.NUMBER:
|
|
7777
7778
|
numberConfigs.prefix = "";
|
|
7778
|
-
return
|
|
7779
|
+
return ((_b = attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.options) === null || _b === void 0 ? void 0 : _b.numberFormatOptions) ? this.numericService.instant(attributeValue.value, {
|
|
7780
|
+
numberFormatOptions: attributeValue.options.numberFormatOptions,
|
|
7781
|
+
})
|
|
7782
|
+
: column.numberFormatOptions
|
|
7783
|
+
? this.numericService.instant(attributeValue, {
|
|
7784
|
+
numberFormatOptions: column.numberFormatOptions,
|
|
7785
|
+
})
|
|
7786
|
+
: applyMask(attributeValue, numberConfigs, this.isNumber(attributeValue));
|
|
7779
7787
|
case EnumColumnFieldType.TOKENS:
|
|
7780
7788
|
return this.getTokens(attributeValue);
|
|
7781
7789
|
default:
|
|
@@ -7783,9 +7791,7 @@ let TableColumnsComponent = class TableColumnsComponent {
|
|
|
7783
7791
|
}
|
|
7784
7792
|
});
|
|
7785
7793
|
const unifiedColumnValues = columnValue.join(separator);
|
|
7786
|
-
const uninformedNumber = unifiedColumnValues
|
|
7787
|
-
.split(separator)
|
|
7788
|
-
.filter(value => value === uninformed).length;
|
|
7794
|
+
const uninformedNumber = unifiedColumnValues.split(separator).filter((value) => value === uninformed).length;
|
|
7789
7795
|
const formattedColumnValue = this.getFormattedColumnValue(column, columnValue, unifiedColumnValues, uninformed, uninformedNumber);
|
|
7790
7796
|
return {
|
|
7791
7797
|
style,
|
|
@@ -7797,7 +7803,7 @@ let TableColumnsComponent = class TableColumnsComponent {
|
|
|
7797
7803
|
tooltip: this.getColumnTooltip(column.tooltip),
|
|
7798
7804
|
infoSign: this.getColumnInfoSign(column.infoSign),
|
|
7799
7805
|
onLinkClick: column.onLinkClick,
|
|
7800
|
-
onColumnClick: column.onColumnClick
|
|
7806
|
+
onColumnClick: column.onColumnClick,
|
|
7801
7807
|
};
|
|
7802
7808
|
}
|
|
7803
7809
|
getColumnScale(scale) {
|
|
@@ -7825,7 +7831,7 @@ let TableColumnsComponent = class TableColumnsComponent {
|
|
|
7825
7831
|
return "";
|
|
7826
7832
|
}
|
|
7827
7833
|
isNumber(value) {
|
|
7828
|
-
return !
|
|
7834
|
+
return !new BigNumber(value).isNaN();
|
|
7829
7835
|
}
|
|
7830
7836
|
getTokens(values) {
|
|
7831
7837
|
if (!this.isArray(values)) {
|
|
@@ -7842,7 +7848,7 @@ let TableColumnsComponent = class TableColumnsComponent {
|
|
|
7842
7848
|
.map((value) => {
|
|
7843
7849
|
const label = typeof value === "symbol" ? value.toString() : `${value}`;
|
|
7844
7850
|
return {
|
|
7845
|
-
label
|
|
7851
|
+
label,
|
|
7846
7852
|
};
|
|
7847
7853
|
});
|
|
7848
7854
|
}
|
|
@@ -7850,10 +7856,10 @@ let TableColumnsComponent = class TableColumnsComponent {
|
|
|
7850
7856
|
return this.isPrimitiveValuesArray(values) || this.isLabelObjectArray(values);
|
|
7851
7857
|
}
|
|
7852
7858
|
isPrimitiveValuesArray(values) {
|
|
7853
|
-
return values.filter(value => value !== Object(value)).length === values.length;
|
|
7859
|
+
return values.filter((value) => value !== Object(value)).length === values.length;
|
|
7854
7860
|
}
|
|
7855
7861
|
isLabelObjectArray(values) {
|
|
7856
|
-
return values.filter(value => (value === null || value === void 0 ? void 0 : value.label) !== null && (value === null || value === void 0 ? void 0 : value.label) !== undefined).length === values.length;
|
|
7862
|
+
return values.filter((value) => (value === null || value === void 0 ? void 0 : value.label) !== null && (value === null || value === void 0 ? void 0 : value.label) !== undefined).length === values.length;
|
|
7857
7863
|
}
|
|
7858
7864
|
sortColumnsBySequence(columns) {
|
|
7859
7865
|
return columns.sort((a, b) => a.sequence - b.sequence);
|
|
@@ -7863,6 +7869,7 @@ TableColumnsComponent.ctorParameters = () => [
|
|
|
7863
7869
|
{ type: LocaleService },
|
|
7864
7870
|
{ type: ViewContainerRef },
|
|
7865
7871
|
{ type: TranslateService },
|
|
7872
|
+
{ type: NumericService },
|
|
7866
7873
|
{ type: undefined, decorators: [{ type: Inject, args: [HostProjectConfigsInjectionToken,] }] }
|
|
7867
7874
|
];
|
|
7868
7875
|
__decorate([
|
|
@@ -7883,7 +7890,7 @@ TableColumnsComponent = __decorate([
|
|
|
7883
7890
|
selector: "s-table-columns",
|
|
7884
7891
|
styles: [":host{display:none}"]
|
|
7885
7892
|
}),
|
|
7886
|
-
__param(
|
|
7893
|
+
__param(4, Inject(HostProjectConfigsInjectionToken))
|
|
7887
7894
|
], TableColumnsComponent);
|
|
7888
7895
|
|
|
7889
7896
|
var TokenListComponent_1;
|
|
@@ -13867,11 +13874,11 @@ let NavigationButtonComponent = NavigationButtonComponent_1 = class NavigationBu
|
|
|
13867
13874
|
const previous = this.steps[this.currentIndex];
|
|
13868
13875
|
if (this.currentIndex < this.steps.length - 1) {
|
|
13869
13876
|
this.currentIndex++;
|
|
13877
|
+
const current = this.steps[this.currentIndex];
|
|
13878
|
+
this._onChange && this._onChange(current.value);
|
|
13879
|
+
this.stepChanged.emit({ previous, current });
|
|
13870
13880
|
}
|
|
13871
|
-
const current = this.steps[this.currentIndex];
|
|
13872
13881
|
this._onTouched && this._onTouched();
|
|
13873
|
-
this._onChange && this._onChange(current.value);
|
|
13874
|
-
this.stepChanged.emit({ previous, current });
|
|
13875
13882
|
}
|
|
13876
13883
|
onPrevious() {
|
|
13877
13884
|
if (this.isDisabled)
|
|
@@ -13879,17 +13886,25 @@ let NavigationButtonComponent = NavigationButtonComponent_1 = class NavigationBu
|
|
|
13879
13886
|
const previous = this.steps[this.currentIndex];
|
|
13880
13887
|
if (this.currentIndex > 0) {
|
|
13881
13888
|
this.currentIndex--;
|
|
13889
|
+
const current = this.steps[this.currentIndex];
|
|
13890
|
+
this._onChange && this._onChange(current.value);
|
|
13891
|
+
this.stepChanged.emit({ previous, current });
|
|
13882
13892
|
}
|
|
13883
|
-
const current = this.steps[this.currentIndex];
|
|
13884
13893
|
this._onTouched && this._onTouched();
|
|
13885
|
-
this._onChange && this._onChange(current.value);
|
|
13886
|
-
this.stepChanged.emit({ previous, current });
|
|
13887
13894
|
}
|
|
13888
13895
|
_createTieredMenuItems() {
|
|
13889
13896
|
this.steps.forEach((step) => {
|
|
13890
13897
|
this.tieredMenuItems.push({
|
|
13891
13898
|
label: step.label,
|
|
13892
|
-
command: () =>
|
|
13899
|
+
command: () => {
|
|
13900
|
+
const index = this.steps.findIndex((s) => s === step);
|
|
13901
|
+
if (this.currentIndex !== index) {
|
|
13902
|
+
this._onChange && this._onChange(step.value);
|
|
13903
|
+
this.stepChanged.emit({ previous: this.steps[this.currentIndex], current: step });
|
|
13904
|
+
this.currentIndex = index;
|
|
13905
|
+
}
|
|
13906
|
+
this._onTouched && this._onTouched();
|
|
13907
|
+
},
|
|
13893
13908
|
});
|
|
13894
13909
|
});
|
|
13895
13910
|
}
|
|
@@ -13915,7 +13930,7 @@ __decorate([
|
|
|
13915
13930
|
NavigationButtonComponent = NavigationButtonComponent_1 = __decorate([
|
|
13916
13931
|
Component({
|
|
13917
13932
|
selector: "s-navigation-button",
|
|
13918
|
-
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",
|
|
13933
|
+
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",
|
|
13919
13934
|
providers: [
|
|
13920
13935
|
{
|
|
13921
13936
|
provide: NG_VALUE_ACCESSOR,
|
|
@@ -14527,6 +14542,7 @@ let TieredMenuDirective = class TieredMenuDirective {
|
|
|
14527
14542
|
this._tieredMenuGlobalService = _tieredMenuGlobalService;
|
|
14528
14543
|
this._changeDetectorRef = _changeDetectorRef;
|
|
14529
14544
|
this.items = [];
|
|
14545
|
+
this.focusedItem = undefined;
|
|
14530
14546
|
this.triggerEvent = "click";
|
|
14531
14547
|
this._componentRef = null;
|
|
14532
14548
|
this._isNested = false;
|
|
@@ -14679,9 +14695,10 @@ let TieredMenuDirective = class TieredMenuDirective {
|
|
|
14679
14695
|
this._destroy();
|
|
14680
14696
|
}
|
|
14681
14697
|
_updateServiceItems() {
|
|
14698
|
+
var _a;
|
|
14682
14699
|
this._tieredMenuService.items = this._tieredMenuService.normalizeData(this.items);
|
|
14683
14700
|
this._tieredMenuService.currentItems = this._tieredMenuService.items;
|
|
14684
|
-
this._tieredMenuService.currentItem = this._tieredMenuService.items[0];
|
|
14701
|
+
this._tieredMenuService.currentItem = (_a = this._tieredMenuService.items.find((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];
|
|
14685
14702
|
}
|
|
14686
14703
|
};
|
|
14687
14704
|
TieredMenuDirective.ctorParameters = () => [
|
|
@@ -14697,6 +14714,9 @@ TieredMenuDirective.ctorParameters = () => [
|
|
|
14697
14714
|
__decorate([
|
|
14698
14715
|
Input()
|
|
14699
14716
|
], TieredMenuDirective.prototype, "items", void 0);
|
|
14717
|
+
__decorate([
|
|
14718
|
+
Input()
|
|
14719
|
+
], TieredMenuDirective.prototype, "focusedItem", void 0);
|
|
14700
14720
|
__decorate([
|
|
14701
14721
|
Input()
|
|
14702
14722
|
], TieredMenuDirective.prototype, "triggerEvent", void 0);
|
|
@@ -16715,6 +16735,29 @@ WorkspaceSwitchModule = __decorate([
|
|
|
16715
16735
|
})
|
|
16716
16736
|
], WorkspaceSwitchModule);
|
|
16717
16737
|
|
|
16738
|
+
let CurrencyService = class CurrencyService {
|
|
16739
|
+
constructor(localeService) {
|
|
16740
|
+
this.localeService = localeService;
|
|
16741
|
+
}
|
|
16742
|
+
getCurrencySymbol({ currency }) {
|
|
16743
|
+
var _a, _b;
|
|
16744
|
+
const numberFormat = new Intl.NumberFormat(this.localeService.getLocaleOptions().locale, {
|
|
16745
|
+
style: "currency",
|
|
16746
|
+
currency: currency !== null && currency !== void 0 ? currency : "BRL",
|
|
16747
|
+
currencyDisplay: 'narrowSymbol',
|
|
16748
|
+
maximumFractionDigits: 5,
|
|
16749
|
+
});
|
|
16750
|
+
return (_b = (_a = numberFormat.formatToParts(1).find((x) => x.type === "currency")) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : "";
|
|
16751
|
+
}
|
|
16752
|
+
};
|
|
16753
|
+
CurrencyService.ctorParameters = () => [
|
|
16754
|
+
{ type: LocaleService }
|
|
16755
|
+
];
|
|
16756
|
+
CurrencyService.ɵprov = ɵɵdefineInjectable({ factory: function CurrencyService_Factory() { return new CurrencyService(ɵɵinject(LocaleService)); }, token: CurrencyService, providedIn: "root" });
|
|
16757
|
+
CurrencyService = __decorate([
|
|
16758
|
+
Injectable({ providedIn: "root" })
|
|
16759
|
+
], CurrencyService);
|
|
16760
|
+
|
|
16718
16761
|
const fallback = {
|
|
16719
16762
|
"platform.angular_components.drag_your_photo_or": "Arraste sua foto ou",
|
|
16720
16763
|
"platform.angular_components.select_a_file": "selecione um arquivo",
|
|
@@ -17034,5 +17077,5 @@ const fallback = {
|
|
|
17034
17077
|
* Generated bundle index. Do not edit.
|
|
17035
17078
|
*/
|
|
17036
17079
|
|
|
17037
|
-
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 };
|
|
17080
|
+
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 };
|
|
17038
17081
|
//# sourceMappingURL=seniorsistemas-angular-components.js.map
|