@seniorsistemas/angular-components 17.17.12 → 17.17.14
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 +68 -56
- 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/dynamic-form/configurations/fields/field.d.ts +2 -0
- package/components/info-sign/info-sign.directive.d.ts +1 -0
- package/components/table/table-paging/table-paging.component.d.ts +9 -12
- package/components/tooltip/tooltip.directive.d.ts +2 -7
- package/esm2015/components/dynamic-form/components/dynamic-field/dynamic-field.component.js +2 -2
- package/esm2015/components/dynamic-form/components/field-label/field-label.component.js +2 -2
- package/esm2015/components/dynamic-form/components/fields/radio-button/radio-button-field.component.js +9 -2
- package/esm2015/components/dynamic-form/components/grid/row/row.component.js +2 -2
- package/esm2015/components/dynamic-form/configurations/fields/field.js +3 -2
- package/esm2015/components/info-sign/info-sign.directive.js +12 -5
- package/esm2015/components/table/table-paging/table-paging.component.js +6 -4
- package/esm2015/components/tooltip/tooltip.directive.js +42 -40
- package/esm5/components/dynamic-form/components/dynamic-field/dynamic-field.component.js +2 -2
- package/esm5/components/dynamic-form/components/field-label/field-label.component.js +2 -2
- package/esm5/components/dynamic-form/components/fields/radio-button/radio-button-field.component.js +3 -3
- package/esm5/components/dynamic-form/components/grid/row/row.component.js +2 -2
- package/esm5/components/dynamic-form/configurations/fields/field.js +3 -2
- package/esm5/components/info-sign/info-sign.directive.js +12 -5
- package/esm5/components/table/table-paging/table-paging.component.js +6 -6
- package/esm5/components/tooltip/tooltip.directive.js +45 -40
- package/fesm2015/seniorsistemas-angular-components.js +71 -53
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +68 -56
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -532,6 +532,8 @@
|
|
|
532
532
|
return TooltipComponent;
|
|
533
533
|
}());
|
|
534
534
|
|
|
535
|
+
var isNullOrUndefined = function (value) { return value === null || value === undefined; };
|
|
536
|
+
|
|
535
537
|
var DEFAULT_TIMER = 300;
|
|
536
538
|
var DebounceUtils = /** @class */ (function () {
|
|
537
539
|
function DebounceUtils() {
|
|
@@ -606,8 +608,9 @@
|
|
|
606
608
|
this.visible = true;
|
|
607
609
|
this.mobileBehavior = MobileBehavior.Pressing;
|
|
608
610
|
this.componentRef = null;
|
|
611
|
+
this.existFocusedInputRefTooltip = false;
|
|
609
612
|
this.boundOnWindowMouseMoveFunction = this.onWindowMouseMove.bind(this);
|
|
610
|
-
this.debounceCreateTooltipFunction = this.debounceUtils.debounceLeading(function () { return _this.
|
|
613
|
+
this.debounceCreateTooltipFunction = this.debounceUtils.debounceLeading(function () { return _this._createTooltip(true, true); });
|
|
611
614
|
}
|
|
612
615
|
TooltipDirective.prototype.ngOnInit = function () {
|
|
613
616
|
this.validatePosition();
|
|
@@ -628,7 +631,7 @@
|
|
|
628
631
|
left: Math.min(elementRect.left, toolTipRect.left),
|
|
629
632
|
bottom: Math.max(elementRect.bottom, toolTipRect.bottom),
|
|
630
633
|
};
|
|
631
|
-
if (this.isMousePositionOutsideOfElement(event.clientX, event.clientY, totalElementArea)) {
|
|
634
|
+
if (this.isMousePositionOutsideOfElement(event.clientX, event.clientY, totalElementArea) && !this.existFocusedInputRefTooltip) {
|
|
632
635
|
this.destroy();
|
|
633
636
|
}
|
|
634
637
|
};
|
|
@@ -643,15 +646,17 @@
|
|
|
643
646
|
if (this.focusedInputRef) {
|
|
644
647
|
var inputFocus = this.focusedInputRef;
|
|
645
648
|
var icon_1 = this.getIconFromFocusedInput();
|
|
646
|
-
this.renderer.listen(
|
|
649
|
+
this.renderer.listen(inputFocus, "focus", function () {
|
|
647
650
|
if (icon_1) {
|
|
648
|
-
_this.
|
|
651
|
+
_this.existFocusedInputRefTooltip = true;
|
|
652
|
+
_this._createTooltip(false, false);
|
|
649
653
|
}
|
|
650
654
|
});
|
|
651
655
|
this.renderer.listen(inputFocus, "blur", function () {
|
|
652
656
|
if (icon_1) {
|
|
653
657
|
_this.removeTooltip(icon_1);
|
|
654
658
|
_this.destroy();
|
|
659
|
+
_this.existFocusedInputRefTooltip = false;
|
|
655
660
|
}
|
|
656
661
|
});
|
|
657
662
|
}
|
|
@@ -682,7 +687,7 @@
|
|
|
682
687
|
};
|
|
683
688
|
TooltipDirective.prototype.onFocus = function () {
|
|
684
689
|
if (this.tooltipEvent === TooltipEvent.Focus) {
|
|
685
|
-
this.
|
|
690
|
+
this._createTooltip(true, true);
|
|
686
691
|
}
|
|
687
692
|
};
|
|
688
693
|
TooltipDirective.prototype.onBlur = function () {
|
|
@@ -696,14 +701,18 @@
|
|
|
696
701
|
}
|
|
697
702
|
};
|
|
698
703
|
TooltipDirective.prototype.onMouseLeave = function () {
|
|
699
|
-
if (this.tooltipEvent === TooltipEvent.Hover) {
|
|
704
|
+
if (this.tooltipEvent === TooltipEvent.Hover && !this.existFocusedInputRefTooltip) {
|
|
700
705
|
this.destroy();
|
|
701
706
|
}
|
|
702
707
|
};
|
|
703
708
|
TooltipDirective.prototype.onTouchStart = function () {
|
|
709
|
+
var _this = this;
|
|
704
710
|
if (this.tooltipEvent === TooltipEvent.Hover) {
|
|
705
711
|
window.clearTimeout(this.touchTimeout);
|
|
706
|
-
|
|
712
|
+
var _delay = this.mobileBehavior === MobileBehavior.Pressing ? this.showDelay : 0;
|
|
713
|
+
this.touchTimeout = window.setTimeout(function () {
|
|
714
|
+
_this._createTooltip(true, true);
|
|
715
|
+
}, _delay);
|
|
707
716
|
}
|
|
708
717
|
};
|
|
709
718
|
TooltipDirective.prototype.onTouchEnd = function () {
|
|
@@ -721,43 +730,37 @@
|
|
|
721
730
|
throw new Error("Tooltip " + this.position + " position is unexpected");
|
|
722
731
|
}
|
|
723
732
|
};
|
|
724
|
-
TooltipDirective.prototype.createTootip = function () {
|
|
725
|
-
var _a;
|
|
726
|
-
if (this.componentRef === null && ((_a = this.tooltip) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
727
|
-
var domElem = this.getDomElement();
|
|
728
|
-
document.body.appendChild(domElem);
|
|
729
|
-
this.setTooltipComponentProperties();
|
|
730
|
-
this.showTimeout = window.setTimeout(this.showTooltip.bind(this), this.showDelay);
|
|
731
|
-
this.tooltipDivElement = domElem.querySelector(".tooltip");
|
|
732
|
-
if (this.displayTime) {
|
|
733
|
-
window.setTimeout(this.destroy.bind(this), this.displayTime);
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
};
|
|
737
733
|
TooltipDirective.prototype.getDomElement = function () {
|
|
738
734
|
var componentFactory = this.componentFactoryResolver.resolveComponentFactory(TooltipComponent);
|
|
739
735
|
this.componentRef = componentFactory.create(this.injector);
|
|
740
736
|
this.appRef.attachView(this.componentRef.hostView);
|
|
741
737
|
return this.componentRef.hostView.rootNodes[0];
|
|
742
738
|
};
|
|
743
|
-
|
|
744
|
-
* Cria um tooltip para o icone do input em focus.
|
|
745
|
-
*
|
|
746
|
-
* @param icon O ícone do input em focus.
|
|
747
|
-
*/
|
|
748
|
-
TooltipDirective.prototype.createTootipByFocus = function (icon) {
|
|
739
|
+
TooltipDirective.prototype._createTooltip = function (useShowDelay, autoDestroy) {
|
|
749
740
|
var _this = this;
|
|
741
|
+
if (useShowDelay === void 0) { useShowDelay = false; }
|
|
742
|
+
if (autoDestroy === void 0) { autoDestroy = true; }
|
|
750
743
|
var _a;
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
744
|
+
var hasText = ((_a = this.tooltip) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
745
|
+
var hasComponentRef = this.componentRef !== null;
|
|
746
|
+
if (!hasText || hasComponentRef) {
|
|
747
|
+
return;
|
|
748
|
+
}
|
|
749
|
+
var domElement = this.getDomElement();
|
|
750
|
+
document.body.appendChild(domElement);
|
|
751
|
+
this.tooltipDivElement = domElement.querySelector(".tooltip");
|
|
752
|
+
this.setTooltipComponentProperties();
|
|
753
|
+
var _showDelay = useShowDelay ? this.showDelay : 0;
|
|
754
|
+
setTimeout(function () {
|
|
755
|
+
_this.showTooltip();
|
|
756
|
+
}, _showDelay);
|
|
757
|
+
this.renderer.listen(window, "scroll", function () {
|
|
758
|
+
_this.setTooltipPositionProperty();
|
|
759
|
+
});
|
|
760
|
+
if (autoDestroy && this.displayTime) {
|
|
761
|
+
setTimeout(function () {
|
|
762
|
+
_this.destroy();
|
|
763
|
+
}, this.displayTime);
|
|
761
764
|
}
|
|
762
765
|
};
|
|
763
766
|
TooltipDirective.prototype.showTooltip = function () {
|
|
@@ -767,11 +770,14 @@
|
|
|
767
770
|
window.addEventListener("mousemove", this.boundOnWindowMouseMoveFunction);
|
|
768
771
|
}
|
|
769
772
|
};
|
|
770
|
-
TooltipDirective.prototype.setTooltipPositionProperty = function (
|
|
773
|
+
TooltipDirective.prototype.setTooltipPositionProperty = function () {
|
|
771
774
|
var e_1, _a;
|
|
775
|
+
if (!this.componentRef) {
|
|
776
|
+
return;
|
|
777
|
+
}
|
|
772
778
|
var margin = 20;
|
|
773
779
|
var anchorSize = 5;
|
|
774
|
-
var domElem =
|
|
780
|
+
var domElem = this.componentRef.hostView.rootNodes[0].querySelector("#tooltip");
|
|
775
781
|
var _b = domElem.getBoundingClientRect(), height = _b.height, width = _b.width;
|
|
776
782
|
var _c = this.elementRef.nativeElement.getBoundingClientRect(), left = _c.left, right = _c.right, top = _c.top, bottom = _c.bottom;
|
|
777
783
|
var positions = [
|
|
@@ -831,7 +837,7 @@
|
|
|
831
837
|
}
|
|
832
838
|
};
|
|
833
839
|
TooltipDirective.prototype.destroy = function () {
|
|
834
|
-
if (this.componentRef
|
|
840
|
+
if (!isNullOrUndefined(this.componentRef)) {
|
|
835
841
|
window.clearTimeout(this.showTimeout);
|
|
836
842
|
this.appRef.detachView(this.componentRef.hostView);
|
|
837
843
|
this.componentRef.destroy();
|
|
@@ -5390,8 +5396,6 @@
|
|
|
5390
5396
|
.replace(/\byy\b/, "YYYY"); // year (four digits)
|
|
5391
5397
|
};
|
|
5392
5398
|
|
|
5393
|
-
var isNullOrUndefined = function (value) { return value === null || value === undefined; };
|
|
5394
|
-
|
|
5395
5399
|
var CountryPhonePickerComponent = /** @class */ (function () {
|
|
5396
5400
|
function CountryPhonePickerComponent(_countryPhonePickerService, _translate, _eRef, platformId) {
|
|
5397
5401
|
var _this = this;
|
|
@@ -5786,7 +5790,7 @@
|
|
|
5786
5790
|
var Field = /** @class */ (function () {
|
|
5787
5791
|
function Field(config) {
|
|
5788
5792
|
var _this = this;
|
|
5789
|
-
var _a, _b, _c, _d, _e;
|
|
5793
|
+
var _a, _b, _c, _d, _e, _f;
|
|
5790
5794
|
if ((_a = config.footer) === null || _a === void 0 ? void 0 : _a.help) {
|
|
5791
5795
|
config.footer.help = __assign({ visible: function () { return true; } }, (_b = config.footer) === null || _b === void 0 ? void 0 : _b.help);
|
|
5792
5796
|
}
|
|
@@ -5813,6 +5817,7 @@
|
|
|
5813
5817
|
this.CustomFieldClass = config.CustomFieldClass;
|
|
5814
5818
|
this.CustomFieldComponentClass = config.CustomFieldComponentClass;
|
|
5815
5819
|
this.displayTimeInfoSign = (_e = config.displayTimeInfoSign) !== null && _e !== void 0 ? _e : 5000;
|
|
5820
|
+
this.useInfoSignFocusedInputRef = (_f = config.useInfoSignFocusedInputRef) !== null && _f !== void 0 ? _f : true;
|
|
5816
5821
|
}
|
|
5817
5822
|
return Field;
|
|
5818
5823
|
}());
|
|
@@ -7844,6 +7849,7 @@
|
|
|
7844
7849
|
this.viewContainer = viewContainer;
|
|
7845
7850
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
7846
7851
|
this.displayTime = 5000;
|
|
7852
|
+
this.useFocusedInputRef = true;
|
|
7847
7853
|
}
|
|
7848
7854
|
InfoSignDirective.prototype.ngOnChanges = function () {
|
|
7849
7855
|
this.createInfoSign();
|
|
@@ -7861,10 +7867,13 @@
|
|
|
7861
7867
|
this.viewContainer.clear();
|
|
7862
7868
|
var componentFactory = this.componentFactoryResolver.resolveComponentFactory(InfoSignComponent);
|
|
7863
7869
|
this.componentRef = this.viewContainer.createComponent(componentFactory);
|
|
7864
|
-
this.componentRef.instance
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7870
|
+
var _infoSignComponent = this.componentRef.instance;
|
|
7871
|
+
_infoSignComponent.templateRef = this.templateRef;
|
|
7872
|
+
_infoSignComponent.tooltip = this.sInfoSign;
|
|
7873
|
+
_infoSignComponent.displayTime = this.displayTime;
|
|
7874
|
+
if (this.useFocusedInputRef) {
|
|
7875
|
+
_infoSignComponent.focusedInputRef = this.focusedInputRef;
|
|
7876
|
+
}
|
|
7868
7877
|
}
|
|
7869
7878
|
else if (this.componentRef && this.sInfoSign) {
|
|
7870
7879
|
this.componentRef.instance.tooltip = this.sInfoSign;
|
|
@@ -7888,6 +7897,9 @@
|
|
|
7888
7897
|
__decorate([
|
|
7889
7898
|
core.Input('sInfoSignFocusedInputRef')
|
|
7890
7899
|
], InfoSignDirective.prototype, "focusedInputRef", void 0);
|
|
7900
|
+
__decorate([
|
|
7901
|
+
core.Input('sInfoSignUseFocusedInputRef')
|
|
7902
|
+
], InfoSignDirective.prototype, "useFocusedInputRef", void 0);
|
|
7891
7903
|
InfoSignDirective = __decorate([
|
|
7892
7904
|
core.Directive({
|
|
7893
7905
|
selector: "[sInfoSign]"
|
|
@@ -10316,9 +10328,7 @@
|
|
|
10316
10328
|
*/
|
|
10317
10329
|
TablePagingComponent.prototype.mapNumberFormatOptionsExport = function (columns, tableData) {
|
|
10318
10330
|
var hasNumberFormatOptionsColumns = columns.some(function (column) { return column.numberFormatOptions; });
|
|
10319
|
-
var hasNumberFormatOptionsRows = tableData.some(function (rowData) {
|
|
10320
|
-
return Object.keys(rowData).some(function (key) { var _a; return (_a = rowData[key].options) === null || _a === void 0 ? void 0 : _a.numberFormatOptions; });
|
|
10321
|
-
});
|
|
10331
|
+
var hasNumberFormatOptionsRows = tableData.some(function (rowData) { return Object.keys(rowData).some(function (key) { var _a, _b; return (_b = (_a = rowData[key]) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.numberFormatOptions; }); });
|
|
10322
10332
|
if (!hasNumberFormatOptionsColumns && !hasNumberFormatOptionsRows)
|
|
10323
10333
|
return tableData;
|
|
10324
10334
|
var mappedTableData = __spread(tableData);
|
|
@@ -10334,8 +10344,9 @@
|
|
|
10334
10344
|
try {
|
|
10335
10345
|
for (var attributes_1 = (e_2 = void 0, __values(attributes)), attributes_1_1 = attributes_1.next(); !attributes_1_1.done; attributes_1_1 = attributes_1.next()) {
|
|
10336
10346
|
var attribute = attributes_1_1.value;
|
|
10337
|
-
if ((_c = row[attribute].options) === null || _c === void 0 ? void 0 : _c.numberFormatOptions)
|
|
10347
|
+
if ((_c = row[attribute].options) === null || _c === void 0 ? void 0 : _c.numberFormatOptions) {
|
|
10338
10348
|
continue;
|
|
10349
|
+
}
|
|
10339
10350
|
var value = row[attribute];
|
|
10340
10351
|
var mappedValue = numberFormatOptions.style === "percent" ? new BigNumber__default(value).times(100) : new BigNumber__default(value);
|
|
10341
10352
|
var numberFormat = new Intl.NumberFormat("en-US", __assign(__assign({}, numberFormatOptions), { style: "decimal", useGrouping: false }));
|
|
@@ -10365,7 +10376,8 @@
|
|
|
10365
10376
|
mappedTableData = tableData.map(function (rowData) {
|
|
10366
10377
|
var e_3, _a;
|
|
10367
10378
|
var row = __assign({}, rowData);
|
|
10368
|
-
var keysWithNumberFormatOptions = Object.keys(row)
|
|
10379
|
+
var keysWithNumberFormatOptions = Object.keys(row)
|
|
10380
|
+
.filter(function (key) { var _a, _b; return (_b = (_a = row[key]) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.numberFormatOptions; });
|
|
10369
10381
|
try {
|
|
10370
10382
|
for (var keysWithNumberFormatOptions_1 = __values(keysWithNumberFormatOptions), keysWithNumberFormatOptions_1_1 = keysWithNumberFormatOptions_1.next(); !keysWithNumberFormatOptions_1_1.done; keysWithNumberFormatOptions_1_1 = keysWithNumberFormatOptions_1.next()) {
|
|
10371
10383
|
var key = keysWithNumberFormatOptions_1_1.value;
|
|
@@ -10905,9 +10917,9 @@
|
|
|
10905
10917
|
], RadioButtonComponent.prototype, "onFocus", void 0);
|
|
10906
10918
|
RadioButtonComponent = __decorate([
|
|
10907
10919
|
core.Component({
|
|
10908
|
-
template: "<s-field-label [field]=\"field\"></s-field-label>\n\n<ng-container *ngIf=\"field.verticalAlignment;else horizontalAlignment\">\n <div class=\"ui-g\">\n <div\n *ngFor=\"let option of field.options; let i = index\"\n class=\"ui-g-12\">\n <ng-container\n [ngTemplateOutlet]=\"radioButton\"\n [ngTemplateOutletContext]=\"{option: option, index: i}\">\n </ng-container>\n </div>\n <s-button\n *ngIf=\"field.showClear && !field.required() && !formControl.disabled\"\n [label]=\"field.clearLabel || 'Clear selection'\"\n (onClick)=\"onClear()\"\n priority=\"link\">\n </s-button>\n </div>\n</ng-container>\n\n<ng-template #horizontalAlignment>\n <div class=\"ui-g\">\n <ng-container\n *ngFor=\"let option of field.options; let i = index\"\n [ngTemplateOutlet]=\"radioButton\"\n [ngTemplateOutletContext]=\"{option: option, index: i}\">\n </ng-container>\n </div>\n <s-button\n *ngIf=\"field.showClear && !field.required() && !formControl.disabled\"\n class=\"horizontal-clear-option\"\n [label]=\"field.clearLabel || 'Clear selection'\"\n (onClick)=\"onClear()\"\n priority=\"link\">\n </s-button>\n</ng-template>\n\n<ng-template #radioButton let-option=\"option\" let-i=\"index\">\n <p-radioButton\n [name]=\"field.name\"\n [value]=\"option.value\"\n [label]=\"option.label\"\n [formControl]=\"formControl\"\n [inputId]=\"(field.id || field.name) + '-' + i\"\n [sTooltip]=\"field.tooltip\"\n (onClick)=\"onClick.next($event)\"\n (onFocus)=\"onFocus.next($event)\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\">\n </p-radioButton>\n</ng-template>\n",
|
|
10920
|
+
template: "<s-field-label [field]=\"field\"></s-field-label>\n\n<ng-container *ngIf=\"field.verticalAlignment;else horizontalAlignment\">\n <div class=\"ui-g\">\n <div\n *ngFor=\"let option of field.options; let i = index\"\n class=\"ui-g-12\">\n <ng-container\n [ngTemplateOutlet]=\"radioButton\"\n [ngTemplateOutletContext]=\"{option: option, index: i}\">\n </ng-container>\n </div>\n <s-button\n *ngIf=\"field.showClear && !field.required() && !formControl.disabled\"\n [label]=\"field.clearLabel || 'Clear selection'\"\n (onClick)=\"onClear()\"\n priority=\"link\">\n </s-button>\n </div>\n</ng-container>\n\n<ng-template #horizontalAlignment>\n <div class=\"ui-g horizontal-radio-buttons-container\">\n <ng-container\n *ngFor=\"let option of field.options; let i = index\"\n [ngTemplateOutlet]=\"radioButton\"\n [ngTemplateOutletContext]=\"{option: option, index: i}\">\n </ng-container>\n </div>\n <s-button\n *ngIf=\"field.showClear && !field.required() && !formControl.disabled\"\n class=\"horizontal-clear-option\"\n [label]=\"field.clearLabel || 'Clear selection'\"\n (onClick)=\"onClear()\"\n priority=\"link\">\n </s-button>\n</ng-template>\n\n<ng-template #radioButton let-option=\"option\" let-i=\"index\">\n <p-radioButton\n class=\"radio-button-item\"\n [name]=\"field.name\"\n [value]=\"option.value\"\n [label]=\"option.label\"\n [formControl]=\"formControl\"\n [inputId]=\"(field.id || field.name) + '-' + i\"\n [sTooltip]=\"field.tooltip\"\n (onClick)=\"onClick.next($event)\"\n (onFocus)=\"onFocus.next($event)\"\n (onBlur)=\"field.onBlur ? field.onBlur($event) : null\">\n </p-radioButton>\n</ng-template>\n",
|
|
10909
10921
|
encapsulation: core.ViewEncapsulation.None,
|
|
10910
|
-
styles: ["\n s-button.horizontal-clear-option button {\n width: min-content !important;\n }\n "]
|
|
10922
|
+
styles: ["\n s-button.horizontal-clear-option button {\n width: min-content !important;\n }\n\n .horizontal-radio-buttons-container {\n gap: 20px 40px;\n .radio-button-item {\n margin: 0;\n }\n }\n "]
|
|
10911
10923
|
})
|
|
10912
10924
|
], RadioButtonComponent);
|
|
10913
10925
|
return RadioButtonComponent;
|
|
@@ -11229,7 +11241,7 @@
|
|
|
11229
11241
|
], RowComponent.prototype, "errorMessages", void 0);
|
|
11230
11242
|
RowComponent = __decorate([
|
|
11231
11243
|
core.Component({
|
|
11232
|
-
template: "\n <div class=\"ui-fluid\" [formGroup]=\"group\">\n <div class=\"ui-g\">\n <ng-container *ngFor=\"let field of config.fields\">\n <div [ngClass]=\"field.gridClass\" *ngIf=\"field.visible()\">\n <ng-container *ngIf=\"field.type === FieldType.Custom && field.label\" >\n <label *sInfoSign=\"field.infoSign\" [for]=\"field.name\" [ngClass]=\"{ required: field.required() }\" >\n {{ field.label }}\n </label>\n </ng-container>\n\n <ng-container *sDynamicForm=\"{ id: id, config: field, group: group}\"></ng-container>\n\n <s-control-errors [form]=\"group\" [control]=\"group.controls[field.name]\"\n [errorMessages]=\"getErrorMessages(field.errorMessages)\"></s-control-errors>\n\n <ng-container *ngIf=\"field.footer\">\n <ng-container *ngIf=\"field.footer.help\">\n <span *ngIf=\"field.footer.help.visible({ abstractControl: group.controls[field.name], formField: field })\" style=\"color: #888B99\">{{ field.footer.help.text }}</span>\n </ng-container>\n\n <ng-container *ngIf=\"field.footer.link\">\n <div\n *ngIf=\"field.footer.link.visible({ abstractControl: group.controls[field.name], formField: field })\"\n class=\"ui-g\"\n style=\"margin-left: -17px\"\n >\n <s-button\n [label]=\"field.footer.link.label\"\n priority=\"link\"\n (onClick)=\"field.footer.link.onClick({ abstractControl: group.controls[field.name], formField: field })\"\n [auxiliary]=\"true\"\n ></s-button>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-template *ngIf=\"field?.bottomTemplate\" [ngTemplateOutlet]=\"field.bottomTemplate\"></ng-template>\n </div>\n </ng-container>\n </div>\n "
|
|
11244
|
+
template: "\n <div class=\"ui-fluid\" [formGroup]=\"group\">\n <div class=\"ui-g\">\n <ng-container *ngFor=\"let field of config.fields\">\n <div [ngClass]=\"field.gridClass\" *ngIf=\"field.visible()\">\n <ng-container *ngIf=\"field.type === FieldType.Custom && field.label\" >\n <label *sInfoSign=\"field.infoSign; displayTime: field.displayTimeInfoSign; useFocusedInputRef: field.useInfoSignFocusedInputRef\" [for]=\"field.name\" [ngClass]=\"{ required: field.required() }\" >\n {{ field.label }}\n </label>\n </ng-container>\n\n <ng-container *sDynamicForm=\"{ id: id, config: field, group: group}\"></ng-container>\n\n <s-control-errors [form]=\"group\" [control]=\"group.controls[field.name]\"\n [errorMessages]=\"getErrorMessages(field.errorMessages)\"></s-control-errors>\n\n <ng-container *ngIf=\"field.footer\">\n <ng-container *ngIf=\"field.footer.help\">\n <span *ngIf=\"field.footer.help.visible({ abstractControl: group.controls[field.name], formField: field })\" style=\"color: #888B99\">{{ field.footer.help.text }}</span>\n </ng-container>\n\n <ng-container *ngIf=\"field.footer.link\">\n <div\n *ngIf=\"field.footer.link.visible({ abstractControl: group.controls[field.name], formField: field })\"\n class=\"ui-g\"\n style=\"margin-left: -17px\"\n >\n <s-button\n [label]=\"field.footer.link.label\"\n priority=\"link\"\n (onClick)=\"field.footer.link.onClick({ abstractControl: group.controls[field.name], formField: field })\"\n [auxiliary]=\"true\"\n ></s-button>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-template *ngIf=\"field?.bottomTemplate\" [ngTemplateOutlet]=\"field.bottomTemplate\"></ng-template>\n </div>\n </ng-container>\n </div>\n "
|
|
11233
11245
|
})
|
|
11234
11246
|
], RowComponent);
|
|
11235
11247
|
return RowComponent;
|
|
@@ -11263,7 +11275,7 @@
|
|
|
11263
11275
|
DynamicFieldComponent = __decorate([
|
|
11264
11276
|
core.Component({
|
|
11265
11277
|
selector: "s-dynamic-field",
|
|
11266
|
-
template: "<div class=\"ui-fluid\" [formGroup]=\"form\">\n <div class=\"ui-g\">\n <ng-container *ngFor=\"let field of fields\">\n <div\n *ngIf=\"!field.visible || field.visible()\"\n [ngClass]=\"field.gridClass\">\n\n <ng-container *ngIf=\"field.label && field.type === FieldType.Custom\">\n <label\n *sInfoSign=\"
|
|
11278
|
+
template: "<div class=\"ui-fluid\" [formGroup]=\"form\">\n <div class=\"ui-g\">\n <ng-container *ngFor=\"let field of fields\">\n <div\n *ngIf=\"!field.visible || field.visible()\"\n [ngClass]=\"field.gridClass\">\n\n <ng-container *ngIf=\"field.label && field.type === FieldType.Custom\">\n <label\n *sInfoSign=\"field.infoSign; displayTime: field.displayTimeInfoSign; useFocusedInputRef: field.useInfoSignFocusedInputRef\"\n [for]=\"field.name\"\n [ngClass]=\"{ required: field.required() }\"\n >\n {{ field.label }}\n </label>\n </ng-container>\n\n <ng-container\n *sDynamicForm=\"{\n id: id,\n config: field,\n group: form\n }\"\n ></ng-container>\n\n <s-control-errors\n [form]=\"form\"\n [control]=\"form.controls[field.name]\"\n [errorMessages]=\"getErrorMessages(field.errorMessages)\"\n ></s-control-errors>\n\n <ng-container *ngIf=\"field.footer\">\n <ng-container *ngIf=\"field.footer.help\">\n <span\n *ngIf=\"\n field.footer.help.visible({\n abstractControl: form.controls[field.name],\n formField: field\n })\n \"\n style=\"color: #888b99\"\n >\n {{ field.footer.help.text }}\n </span>\n </ng-container>\n\n <ng-container *ngIf=\"field.footer.link\">\n <div\n *ngIf=\"\n field.footer.link.visible({\n abstractControl: form.controls[field.name],\n formField: field\n })\n \"\n class=\"ui-g\"\n style=\"margin-left: -10px\"\n >\n <s-button\n [label]=\"field.footer.link.label\"\n priority=\"link\"\n (onClick)=\"\n field.footer.link.onClick({\n abstractControl:\n form.controls[field.name],\n formField: field\n })\n \"\n [auxiliary]=\"true\"\n ></s-button>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-template\n *ngIf=\"field?.bottomTemplate\"\n [ngTemplateOutlet]=\"field.bottomTemplate\"\n ></ng-template>\n </div>\n </ng-container>\n </div>\n</div>\n"
|
|
11267
11279
|
})
|
|
11268
11280
|
], DynamicFieldComponent);
|
|
11269
11281
|
return DynamicFieldComponent;
|
|
@@ -12035,7 +12047,7 @@
|
|
|
12035
12047
|
FieldLabelComponent = __decorate([
|
|
12036
12048
|
core.Component({
|
|
12037
12049
|
selector: 's-field-label',
|
|
12038
|
-
template: "<!--\n Caso esse componente seja alterado/removido/movido,\n alterar a label no row.component.ts e dynamic-field.component.ts\n-->\n\n<span *ngIf=\"field.label\">\n <label\n *sInfoSign=\"field.infoSign; displayTime: field.displayTimeInfoSign; focusedInputRef: fieldContainerRef\"\n [for]=\"field.name\"\n [ngClass]=\"{ required: field.required() }\"\n >\n {{ field.label }}\n </label>\n</span>\n"
|
|
12050
|
+
template: "<!--\n Caso esse componente seja alterado/removido/movido,\n alterar a label no row.component.ts e dynamic-field.component.ts\n-->\n\n<span *ngIf=\"field.label\">\n <label\n *sInfoSign=\"field.infoSign; displayTime: field.displayTimeInfoSign; focusedInputRef: fieldContainerRef; useFocusedInputRef: field.useInfoSignFocusedInputRef\"\n [for]=\"field.name\"\n [ngClass]=\"{ required: field.required() }\"\n >\n {{ field.label }}\n </label>\n</span>\n"
|
|
12039
12051
|
})
|
|
12040
12052
|
], FieldLabelComponent);
|
|
12041
12053
|
return FieldLabelComponent;
|