@gipisistemas/ng-core 1.1.8 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- package/bundles/gipisistemas-ng-core.umd.js +223 -41
- package/bundles/gipisistemas-ng-core.umd.js.map +1 -1
- package/bundles/gipisistemas-ng-core.umd.min.js +8 -8
- package/bundles/gipisistemas-ng-core.umd.min.js.map +1 -1
- package/esm2015/core/utils/phone.util.js +12 -7
- package/esm2015/gipi-components.js +2 -1
- package/esm2015/shared/gipi-components/datepicker/datepicker/datepicker.component.js +2 -2
- package/esm2015/shared/gipi-components/input-phone/input-phone.component.js +175 -0
- package/esm2015/shared/shared.module.js +3 -1
- package/esm5/core/utils/phone.util.js +12 -7
- package/esm5/gipi-components.js +2 -1
- package/esm5/shared/gipi-components/datepicker/datepicker/datepicker.component.js +2 -2
- package/esm5/shared/gipi-components/input-phone/input-phone.component.js +182 -0
- package/esm5/shared/shared.module.js +3 -1
- package/fesm2015/gipisistemas-ng-core.js +219 -45
- package/fesm2015/gipisistemas-ng-core.js.map +1 -1
- package/fesm5/gipisistemas-ng-core.js +225 -44
- package/fesm5/gipisistemas-ng-core.js.map +1 -1
- package/gipi-components.d.ts +1 -0
- package/gipisistemas-ng-core.metadata.json +1 -1
- package/package.json +1 -1
- package/shared/gipi-components/input-phone/input-phone.component.d.ts +39 -0
@@ -1195,14 +1195,12 @@ class PhoneUtil {
|
|
1195
1195
|
static format(number, mask) {
|
1196
1196
|
let numberNotFormatted = NumberUtil.onlyNumbers(number);
|
1197
1197
|
let phoneFormatted = '';
|
1198
|
-
if ((numberNotFormatted.length < 8) ||
|
1199
|
-
(numberNotFormatted.length > 12) ||
|
1200
|
-
(!this.isPossible(numberNotFormatted) && !this.isValid(numberNotFormatted))) {
|
1201
|
-
return numberNotFormatted;
|
1202
|
-
}
|
1203
1198
|
if (StringUtil.isEmpty(mask)) {
|
1204
1199
|
mask = this.mask(numberNotFormatted);
|
1205
1200
|
}
|
1201
|
+
if (mask === '0*') {
|
1202
|
+
return numberNotFormatted;
|
1203
|
+
}
|
1206
1204
|
for (let i = 0, j = 0; i < mask.length && j < numberNotFormatted.length; i++) {
|
1207
1205
|
phoneFormatted += mask.charAt(i) === '0' ? numberNotFormatted.charAt(j++) : mask.charAt(i);
|
1208
1206
|
}
|
@@ -1224,7 +1222,14 @@ class PhoneUtil {
|
|
1224
1222
|
case 8: return '0000-0000';
|
1225
1223
|
case 9: return '0 0000-0000';
|
1226
1224
|
case 10: return '(00) 0000-0000';
|
1227
|
-
case 11:
|
1225
|
+
case 11:
|
1226
|
+
{
|
1227
|
+
const startWithZero = phoneAux.startsWith('0');
|
1228
|
+
return (startWithZero
|
1229
|
+
? '(000) 0000-0000'
|
1230
|
+
: '(00) 0 0000-0000');
|
1231
|
+
}
|
1232
|
+
;
|
1228
1233
|
case 12: return '(000) 0 0000-0000';
|
1229
1234
|
default: return '0*';
|
1230
1235
|
}
|
@@ -10713,15 +10718,183 @@ GIPIInputMonthPickerComponent = GIPIInputMonthPickerComponent_1 = __decorate([
|
|
10713
10718
|
GIPINgConfig])
|
10714
10719
|
], GIPIInputMonthPickerComponent);
|
10715
10720
|
|
10716
|
-
var
|
10721
|
+
var GIPIInputPhoneComponent_1;
|
10717
10722
|
let nextUniqueId$8 = 0;
|
10723
|
+
let GIPIInputPhoneComponent = GIPIInputPhoneComponent_1 = class GIPIInputPhoneComponent {
|
10724
|
+
constructor(elementRef, _changeDetectorRef) {
|
10725
|
+
this.elementRef = elementRef;
|
10726
|
+
this._changeDetectorRef = _changeDetectorRef;
|
10727
|
+
this._name = `gipi-input-phone-${nextUniqueId$8++}`;
|
10728
|
+
this._inputEnter$ = new BehaviorSubject(false);
|
10729
|
+
this.maskPhone$ = new BehaviorSubject('0*');
|
10730
|
+
this.id = this._name;
|
10731
|
+
this.name = this._name;
|
10732
|
+
this.label = '';
|
10733
|
+
this.tooltip = '';
|
10734
|
+
this.placeholder = '';
|
10735
|
+
this.disabled = false;
|
10736
|
+
this.loading = false;
|
10737
|
+
this.required = false;
|
10738
|
+
/** Indica se é um número estrangeiro */
|
10739
|
+
this.foreign = false;
|
10740
|
+
this.appearance = 'outline';
|
10741
|
+
this._value = '';
|
10742
|
+
this.focus = new EventEmitter();
|
10743
|
+
this.blur = new EventEmitter();
|
10744
|
+
this.onChange = () => { };
|
10745
|
+
this.onTouch = () => { };
|
10746
|
+
}
|
10747
|
+
get value() {
|
10748
|
+
return this._value;
|
10749
|
+
}
|
10750
|
+
set value(value) {
|
10751
|
+
this._value = value;
|
10752
|
+
const isInputEntered = this._inputEnter$.getValue();
|
10753
|
+
if (!isInputEntered) {
|
10754
|
+
this._changeDetectorRef.detectChanges();
|
10755
|
+
}
|
10756
|
+
this.onChange(this._value);
|
10757
|
+
this.onTouch();
|
10758
|
+
}
|
10759
|
+
ngOnInit() { }
|
10760
|
+
writeValue(value) {
|
10761
|
+
this.value = value;
|
10762
|
+
if (!StringUtil.isEmpty(this.value) && !this.foreign) {
|
10763
|
+
this.onInputExit();
|
10764
|
+
}
|
10765
|
+
}
|
10766
|
+
registerOnChange(fn) {
|
10767
|
+
this.onChange = fn;
|
10768
|
+
}
|
10769
|
+
registerOnTouched(fn) {
|
10770
|
+
this.onTouch = fn;
|
10771
|
+
}
|
10772
|
+
setDisabledState(isDisabled) {
|
10773
|
+
this.disabled = isDisabled;
|
10774
|
+
this._changeDetectorRef.detectChanges();
|
10775
|
+
}
|
10776
|
+
onFocus(event) {
|
10777
|
+
if (!this.disabled) {
|
10778
|
+
this.focus.emit(event);
|
10779
|
+
}
|
10780
|
+
}
|
10781
|
+
onBlur(event) {
|
10782
|
+
if (!this.disabled) {
|
10783
|
+
this.blur.emit(event);
|
10784
|
+
this.onTouch();
|
10785
|
+
}
|
10786
|
+
}
|
10787
|
+
onInputEnter() {
|
10788
|
+
if (this.foreign) {
|
10789
|
+
return;
|
10790
|
+
}
|
10791
|
+
this._inputEnter$.next(true);
|
10792
|
+
const tempValue = this.value;
|
10793
|
+
this.value = '';
|
10794
|
+
this._changeDetectorRef.detectChanges();
|
10795
|
+
this.maskPhone$.next('0*');
|
10796
|
+
setTimeout(_ => this.value = tempValue);
|
10797
|
+
}
|
10798
|
+
onInputExit() {
|
10799
|
+
if (this.foreign) {
|
10800
|
+
return;
|
10801
|
+
}
|
10802
|
+
this._inputEnter$.next(false);
|
10803
|
+
if (!this.value) {
|
10804
|
+
this.maskPhone$.next('0*');
|
10805
|
+
return;
|
10806
|
+
}
|
10807
|
+
const mask = PhoneUtil.mask(this.value);
|
10808
|
+
this.maskPhone$.next(mask);
|
10809
|
+
}
|
10810
|
+
};
|
10811
|
+
GIPIInputPhoneComponent.ctorParameters = () => [
|
10812
|
+
{ type: ElementRef },
|
10813
|
+
{ type: ChangeDetectorRef }
|
10814
|
+
];
|
10815
|
+
__decorate([
|
10816
|
+
ViewChild('input', { static: false, read: ElementRef }),
|
10817
|
+
__metadata("design:type", ElementRef)
|
10818
|
+
], GIPIInputPhoneComponent.prototype, "_elementRef", void 0);
|
10819
|
+
__decorate([
|
10820
|
+
Input(),
|
10821
|
+
__metadata("design:type", Object)
|
10822
|
+
], GIPIInputPhoneComponent.prototype, "id", void 0);
|
10823
|
+
__decorate([
|
10824
|
+
Input(),
|
10825
|
+
__metadata("design:type", String)
|
10826
|
+
], GIPIInputPhoneComponent.prototype, "name", void 0);
|
10827
|
+
__decorate([
|
10828
|
+
Input(),
|
10829
|
+
__metadata("design:type", String)
|
10830
|
+
], GIPIInputPhoneComponent.prototype, "label", void 0);
|
10831
|
+
__decorate([
|
10832
|
+
Input(),
|
10833
|
+
__metadata("design:type", String)
|
10834
|
+
], GIPIInputPhoneComponent.prototype, "tooltip", void 0);
|
10835
|
+
__decorate([
|
10836
|
+
Input(),
|
10837
|
+
__metadata("design:type", String)
|
10838
|
+
], GIPIInputPhoneComponent.prototype, "placeholder", void 0);
|
10839
|
+
__decorate([
|
10840
|
+
Input(),
|
10841
|
+
__metadata("design:type", Boolean)
|
10842
|
+
], GIPIInputPhoneComponent.prototype, "disabled", void 0);
|
10843
|
+
__decorate([
|
10844
|
+
Input(),
|
10845
|
+
__metadata("design:type", Boolean)
|
10846
|
+
], GIPIInputPhoneComponent.prototype, "loading", void 0);
|
10847
|
+
__decorate([
|
10848
|
+
Input(),
|
10849
|
+
__metadata("design:type", Boolean)
|
10850
|
+
], GIPIInputPhoneComponent.prototype, "required", void 0);
|
10851
|
+
__decorate([
|
10852
|
+
Input(),
|
10853
|
+
__metadata("design:type", Boolean)
|
10854
|
+
], GIPIInputPhoneComponent.prototype, "foreign", void 0);
|
10855
|
+
__decorate([
|
10856
|
+
Input(),
|
10857
|
+
__metadata("design:type", String)
|
10858
|
+
], GIPIInputPhoneComponent.prototype, "appearance", void 0);
|
10859
|
+
__decorate([
|
10860
|
+
Input(),
|
10861
|
+
__metadata("design:type", String),
|
10862
|
+
__metadata("design:paramtypes", [String])
|
10863
|
+
], GIPIInputPhoneComponent.prototype, "value", null);
|
10864
|
+
__decorate([
|
10865
|
+
Output(),
|
10866
|
+
__metadata("design:type", EventEmitter)
|
10867
|
+
], GIPIInputPhoneComponent.prototype, "focus", void 0);
|
10868
|
+
__decorate([
|
10869
|
+
Output(),
|
10870
|
+
__metadata("design:type", EventEmitter)
|
10871
|
+
], GIPIInputPhoneComponent.prototype, "blur", void 0);
|
10872
|
+
GIPIInputPhoneComponent = GIPIInputPhoneComponent_1 = __decorate([
|
10873
|
+
Component({
|
10874
|
+
selector: 'gipi-input-phone',
|
10875
|
+
template: "<div fxLayout=\"column\">\n <mat-label *ngIf=\"label\">\n {{ label }}\n <span *ngIf=\"required && label\"> * </span>\n <gipi-helpful-tip *ngIf=\"tooltip && label\"\n [tooltip]=\"tooltip\">\n </gipi-helpful-tip>\n </mat-label>\n\n <mat-form-field [appearance]=\"appearance\">\n <input #input\n matInput\n type=\"text\"\n autocomplete=\"off\"\n [attr.id]=\"id\"\n [name]=\"name\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [min]=\"0\"\n [max]=\"!foreign ? 12 : 15\"\n [maxlength]=\"!foreign ? 12 : 15\"\n [mask]=\"!foreign ? (maskPhone$ | async) : '0*'\"\n [(ngModel)]=\"value\"\n (focus)=\"onInputEnter(); onFocus($event)\"\n (blur)=\"onInputExit(); onBlur($event)\">\n </mat-form-field>\n</div>",
|
10876
|
+
providers: [
|
10877
|
+
{
|
10878
|
+
provide: NG_VALUE_ACCESSOR,
|
10879
|
+
useExisting: forwardRef(() => GIPIInputPhoneComponent_1),
|
10880
|
+
multi: true
|
10881
|
+
}
|
10882
|
+
],
|
10883
|
+
styles: [":host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#d14014!important}"]
|
10884
|
+
}),
|
10885
|
+
__metadata("design:paramtypes", [ElementRef,
|
10886
|
+
ChangeDetectorRef])
|
10887
|
+
], GIPIInputPhoneComponent);
|
10888
|
+
|
10889
|
+
var GIPIInputSelectEnumComponent_1;
|
10890
|
+
let nextUniqueId$9 = 0;
|
10718
10891
|
/** A altura dos itens selecionados em unidades `px`. */
|
10719
10892
|
const OPTION_HEIGHT_PX = 40;
|
10720
10893
|
let GIPIInputSelectEnumComponent = GIPIInputSelectEnumComponent_1 = class GIPIInputSelectEnumComponent {
|
10721
10894
|
constructor(elementRef, _changeDetectorRef) {
|
10722
10895
|
this.elementRef = elementRef;
|
10723
10896
|
this._changeDetectorRef = _changeDetectorRef;
|
10724
|
-
this._name = `gipi-input-select-enum-${nextUniqueId$
|
10897
|
+
this._name = `gipi-input-select-enum-${nextUniqueId$9++}`;
|
10725
10898
|
this._enumList = [];
|
10726
10899
|
this._itemSizeScrollViewport = 5;
|
10727
10900
|
this._lastOptionSelected = null;
|
@@ -11596,11 +11769,11 @@ GIPIOverlayComponent = GIPIOverlayComponent_1 = __decorate([
|
|
11596
11769
|
var GIPIInputSelectComponent_1;
|
11597
11770
|
/** A altura dos itens selecionados em unidades `px`. */
|
11598
11771
|
const OPTION_HEIGHT_PX$1 = 44;
|
11599
|
-
let nextUniqueId$
|
11772
|
+
let nextUniqueId$a = 0;
|
11600
11773
|
let GIPIInputSelectComponent = GIPIInputSelectComponent_1 = class GIPIInputSelectComponent {
|
11601
11774
|
constructor(_changeDetectorRef) {
|
11602
11775
|
this._changeDetectorRef = _changeDetectorRef;
|
11603
|
-
this._name = `gipi-input-select-${nextUniqueId$
|
11776
|
+
this._name = `gipi-input-select-${nextUniqueId$a++}`;
|
11604
11777
|
this._onDestroy = new Subject();
|
11605
11778
|
this._itemSizeScrollViewport = 5;
|
11606
11779
|
this._overlayVisible = false;
|
@@ -12241,13 +12414,13 @@ GIPIInputSelectComponent = GIPIInputSelectComponent_1 = __decorate([
|
|
12241
12414
|
], GIPIInputSelectComponent);
|
12242
12415
|
|
12243
12416
|
var GIPIInputSelectListboxComponent_1;
|
12244
|
-
let nextUniqueId$
|
12417
|
+
let nextUniqueId$b = 0;
|
12245
12418
|
let GIPIInputSelectListboxComponent = GIPIInputSelectListboxComponent_1 = class GIPIInputSelectListboxComponent {
|
12246
12419
|
constructor(_changeDetectorRef, _elementRef, _renderer) {
|
12247
12420
|
this._changeDetectorRef = _changeDetectorRef;
|
12248
12421
|
this._elementRef = _elementRef;
|
12249
12422
|
this._renderer = _renderer;
|
12250
|
-
this._name = `gipi-input-select-listbox-${nextUniqueId$
|
12423
|
+
this._name = `gipi-input-select-listbox-${nextUniqueId$b++}`;
|
12251
12424
|
this._isOverlayChildrenClicked = false;
|
12252
12425
|
this._overlayVisible = false;
|
12253
12426
|
this._selectEntityOpened = false;
|
@@ -13018,11 +13191,11 @@ GIPIInputSearchComponent = GIPIInputSearchComponent_1 = __decorate([
|
|
13018
13191
|
], GIPIInputSearchComponent);
|
13019
13192
|
|
13020
13193
|
var GIPIInputSelectPagedComponent_1;
|
13021
|
-
let nextUniqueId$
|
13194
|
+
let nextUniqueId$c = 0;
|
13022
13195
|
let GIPIInputSelectPagedComponent = GIPIInputSelectPagedComponent_1 = class GIPIInputSelectPagedComponent {
|
13023
13196
|
constructor(_changeDetectorRef) {
|
13024
13197
|
this._changeDetectorRef = _changeDetectorRef;
|
13025
|
-
this._name = `gipi-input-select-paged-${nextUniqueId$
|
13198
|
+
this._name = `gipi-input-select-paged-${nextUniqueId$c++}`;
|
13026
13199
|
this.valueSearchCtrl = new FormControl('');
|
13027
13200
|
this.totalOptions = 0;
|
13028
13201
|
this.subscriptions = [];
|
@@ -13360,12 +13533,12 @@ GIPIInputSelectPagedComponent = GIPIInputSelectPagedComponent_1 = __decorate([
|
|
13360
13533
|
], GIPIInputSelectPagedComponent);
|
13361
13534
|
|
13362
13535
|
var GIPIInputSelectRadioComponent_1;
|
13363
|
-
let nextUniqueId$
|
13536
|
+
let nextUniqueId$d = 0;
|
13364
13537
|
let GIPIInputSelectRadioComponent = GIPIInputSelectRadioComponent_1 = class GIPIInputSelectRadioComponent {
|
13365
13538
|
constructor(elementRef, _changeDetectorRef) {
|
13366
13539
|
this.elementRef = elementRef;
|
13367
13540
|
this._changeDetectorRef = _changeDetectorRef;
|
13368
|
-
this._name = `gipi-input-select-radio-${nextUniqueId$
|
13541
|
+
this._name = `gipi-input-select-radio-${nextUniqueId$d++}`;
|
13369
13542
|
this._enumList = [];
|
13370
13543
|
this.id = this._name;
|
13371
13544
|
this.name = this._name;
|
@@ -13868,11 +14041,11 @@ class PasswordUtil {
|
|
13868
14041
|
}
|
13869
14042
|
|
13870
14043
|
var GIPIPasswordRequerimentsComponent_1;
|
13871
|
-
let nextUniqueId$
|
14044
|
+
let nextUniqueId$e = 0;
|
13872
14045
|
let GIPIPasswordRequerimentsComponent = GIPIPasswordRequerimentsComponent_1 = class GIPIPasswordRequerimentsComponent {
|
13873
14046
|
constructor(_changeDetectorRef) {
|
13874
14047
|
this._changeDetectorRef = _changeDetectorRef;
|
13875
|
-
this._name = `gipi-password-requeriments-${nextUniqueId$
|
14048
|
+
this._name = `gipi-password-requeriments-${nextUniqueId$e++}`;
|
13876
14049
|
this.id = this._name;
|
13877
14050
|
this.name = this._name;
|
13878
14051
|
this.disabled = false;
|
@@ -14421,11 +14594,11 @@ GIPIPopoverTarget = __decorate([
|
|
14421
14594
|
], GIPIPopoverTarget);
|
14422
14595
|
|
14423
14596
|
var GIPIRadioGroupComponent_1;
|
14424
|
-
let nextUniqueId$
|
14597
|
+
let nextUniqueId$f = 0;
|
14425
14598
|
let GIPIRadioGroupComponent = GIPIRadioGroupComponent_1 = class GIPIRadioGroupComponent {
|
14426
14599
|
constructor(_changeDetectorRef) {
|
14427
14600
|
this._changeDetectorRef = _changeDetectorRef;
|
14428
|
-
this._name = `gipi-radio-group-${nextUniqueId$
|
14601
|
+
this._name = `gipi-radio-group-${nextUniqueId$f++}`;
|
14429
14602
|
this._enumList = [];
|
14430
14603
|
this.id = this._name;
|
14431
14604
|
this.name = this._name;
|
@@ -14559,7 +14732,7 @@ GIPIRadioGroupComponent = GIPIRadioGroupComponent_1 = __decorate([
|
|
14559
14732
|
], GIPIRadioGroupComponent);
|
14560
14733
|
|
14561
14734
|
var GIPIRangePageComponent_1;
|
14562
|
-
let nextUniqueId$
|
14735
|
+
let nextUniqueId$g = 0;
|
14563
14736
|
class RangePage {
|
14564
14737
|
constructor(start, end) {
|
14565
14738
|
this.start = start;
|
@@ -14576,7 +14749,7 @@ let GIPIRangePageComponent = GIPIRangePageComponent_1 = class GIPIRangePageCompo
|
|
14576
14749
|
constructor(elementRef, _changeDetectorRef) {
|
14577
14750
|
this.elementRef = elementRef;
|
14578
14751
|
this._changeDetectorRef = _changeDetectorRef;
|
14579
|
-
this._name = `gipi-range-page-${nextUniqueId$
|
14752
|
+
this._name = `gipi-range-page-${nextUniqueId$g++}`;
|
14580
14753
|
this._startPage = 1;
|
14581
14754
|
this._endPage = 1;
|
14582
14755
|
this.id = this._name;
|
@@ -14806,12 +14979,12 @@ GIPIRangePageComponent = GIPIRangePageComponent_1 = __decorate([
|
|
14806
14979
|
], GIPIRangePageComponent);
|
14807
14980
|
|
14808
14981
|
var GIPIRangeSliderComponent_1;
|
14809
|
-
let nextUniqueId$
|
14982
|
+
let nextUniqueId$h = 0;
|
14810
14983
|
let GIPIRangeSliderComponent = GIPIRangeSliderComponent_1 = class GIPIRangeSliderComponent {
|
14811
14984
|
constructor(elementRef, _changeDetectorRef) {
|
14812
14985
|
this.elementRef = elementRef;
|
14813
14986
|
this._changeDetectorRef = _changeDetectorRef;
|
14814
|
-
this._name = `gipi-range-slider-${nextUniqueId$
|
14987
|
+
this._name = `gipi-range-slider-${nextUniqueId$h++}`;
|
14815
14988
|
this.id = this._name;
|
14816
14989
|
this.name = this._name;
|
14817
14990
|
this.label = '';
|
@@ -15960,11 +16133,11 @@ GIPISidenavComponent = GIPISidenavComponent_1 = __decorate([
|
|
15960
16133
|
], GIPISidenavComponent);
|
15961
16134
|
|
15962
16135
|
var GIPISlideToggleComponent_1;
|
15963
|
-
let nextUniqueId$
|
16136
|
+
let nextUniqueId$i = 0;
|
15964
16137
|
let GIPISlideToggleComponent = GIPISlideToggleComponent_1 = class GIPISlideToggleComponent {
|
15965
16138
|
constructor(_changeDetectorRef) {
|
15966
16139
|
this._changeDetectorRef = _changeDetectorRef;
|
15967
|
-
this._name = `gipi-slide-toggle-${nextUniqueId$
|
16140
|
+
this._name = `gipi-slide-toggle-${nextUniqueId$i++}`;
|
15968
16141
|
this._slideToggleValue = false;
|
15969
16142
|
this.id = this._name;
|
15970
16143
|
this.name = this._name;
|
@@ -16068,11 +16241,11 @@ GIPISlideToggleComponent = GIPISlideToggleComponent_1 = __decorate([
|
|
16068
16241
|
], GIPISlideToggleComponent);
|
16069
16242
|
|
16070
16243
|
var GIPISplitButtonComponent_1;
|
16071
|
-
let nextUniqueId$
|
16244
|
+
let nextUniqueId$j = 0;
|
16072
16245
|
let GIPISplitButtonComponent = GIPISplitButtonComponent_1 = class GIPISplitButtonComponent {
|
16073
16246
|
constructor(elementRef) {
|
16074
16247
|
this.elementRef = elementRef;
|
16075
|
-
this._uniqueId = nextUniqueId$
|
16248
|
+
this._uniqueId = nextUniqueId$j++;
|
16076
16249
|
this._name = `gipi-split-button-${this._uniqueId}`;
|
16077
16250
|
this.idBtnDefault = `gipi-split-button-default-${this._uniqueId}`;
|
16078
16251
|
this.idBtnMenu = `gipi-split-button-menu-${this._uniqueId}`;
|
@@ -16109,7 +16282,7 @@ let GIPISplitButtonComponent = GIPISplitButtonComponent_1 = class GIPISplitButto
|
|
16109
16282
|
return attributes.some(attribute => this.getHostElement().hasAttribute(attribute));
|
16110
16283
|
}
|
16111
16284
|
btnIdAndName() {
|
16112
|
-
const uniqueId = nextUniqueId$
|
16285
|
+
const uniqueId = nextUniqueId$j++;
|
16113
16286
|
return {
|
16114
16287
|
btnDefault: `gipi-split-button-default-${uniqueId}`,
|
16115
16288
|
btnMenu: `gipi-split-button-menu-${uniqueId}`,
|
@@ -17010,10 +17183,10 @@ class TabModel {
|
|
17010
17183
|
}
|
17011
17184
|
}
|
17012
17185
|
|
17013
|
-
let nextUniqueId$
|
17186
|
+
let nextUniqueId$k = 0;
|
17014
17187
|
let GIPITabComponent = class GIPITabComponent {
|
17015
17188
|
constructor() {
|
17016
|
-
this._name = `gipi-tab-${nextUniqueId$
|
17189
|
+
this._name = `gipi-tab-${nextUniqueId$k++}`;
|
17017
17190
|
this.id = this._name;
|
17018
17191
|
this.name = this._name;
|
17019
17192
|
this.active = false;
|
@@ -17085,12 +17258,12 @@ GIPITabComponent = __decorate([
|
|
17085
17258
|
__metadata("design:paramtypes", [])
|
17086
17259
|
], GIPITabComponent);
|
17087
17260
|
|
17088
|
-
let nextUniqueId$
|
17261
|
+
let nextUniqueId$l = 0;
|
17089
17262
|
let GIPITabGroupComponent = class GIPITabGroupComponent {
|
17090
17263
|
constructor(elementRef, _componentFactoryResolver) {
|
17091
17264
|
this.elementRef = elementRef;
|
17092
17265
|
this._componentFactoryResolver = _componentFactoryResolver;
|
17093
|
-
this._name = `gipi-tab-${nextUniqueId$
|
17266
|
+
this._name = `gipi-tab-${nextUniqueId$l++}`;
|
17094
17267
|
this.id = this._name;
|
17095
17268
|
this.name = this._name;
|
17096
17269
|
this.dynamicTabs = [];
|
@@ -17217,12 +17390,12 @@ GIPITabGroupComponent = __decorate([
|
|
17217
17390
|
], GIPITabGroupComponent);
|
17218
17391
|
|
17219
17392
|
var GIPITextareaComponent_1;
|
17220
|
-
let nextUniqueId$
|
17393
|
+
let nextUniqueId$m = 0;
|
17221
17394
|
let GIPITextareaComponent = GIPITextareaComponent_1 = class GIPITextareaComponent {
|
17222
17395
|
constructor(elementRef, _changeDetectorRef) {
|
17223
17396
|
this.elementRef = elementRef;
|
17224
17397
|
this._changeDetectorRef = _changeDetectorRef;
|
17225
|
-
this._name = `gipi-textarea-${nextUniqueId$
|
17398
|
+
this._name = `gipi-textarea-${nextUniqueId$m++}`;
|
17226
17399
|
this.id = this._name;
|
17227
17400
|
this.name = this._name;
|
17228
17401
|
this.label = '';
|
@@ -21385,7 +21558,7 @@ MatDatepickerInput = MatDatepickerInput_1 = __decorate([
|
|
21385
21558
|
* found in the LICENSE file at https://angular.io/license
|
21386
21559
|
*/
|
21387
21560
|
var MatDateRangeInput_1;
|
21388
|
-
let nextUniqueId$
|
21561
|
+
let nextUniqueId$n = 0;
|
21389
21562
|
let MatDateRangeInput = MatDateRangeInput_1 = class MatDateRangeInput {
|
21390
21563
|
constructor(_changeDetectorRef, _elementRef, control, _dateAdapter, _formField) {
|
21391
21564
|
this._changeDetectorRef = _changeDetectorRef;
|
@@ -21393,7 +21566,7 @@ let MatDateRangeInput = MatDateRangeInput_1 = class MatDateRangeInput {
|
|
21393
21566
|
this._dateAdapter = _dateAdapter;
|
21394
21567
|
this._formField = _formField;
|
21395
21568
|
/** Unique ID for the input. */
|
21396
|
-
this.id = `mat-date-range-input-${nextUniqueId$
|
21569
|
+
this.id = `mat-date-range-input-${nextUniqueId$n++}`;
|
21397
21570
|
/** Whether the control is focused. */
|
21398
21571
|
this.focused = false;
|
21399
21572
|
/** Name of the form control. */
|
@@ -22181,12 +22354,12 @@ class BrowserUtil {
|
|
22181
22354
|
|
22182
22355
|
var DateRangePickerComponent_1;
|
22183
22356
|
const moment$1 = moment_;
|
22184
|
-
let nextUniqueId$
|
22357
|
+
let nextUniqueId$o = 0;
|
22185
22358
|
let DateRangePickerComponent = DateRangePickerComponent_1 = class DateRangePickerComponent {
|
22186
22359
|
constructor(elementRef, _changeDetectorRef) {
|
22187
22360
|
this.elementRef = elementRef;
|
22188
22361
|
this._changeDetectorRef = _changeDetectorRef;
|
22189
|
-
this._name = `gipi-date-range-${nextUniqueId$
|
22362
|
+
this._name = `gipi-date-range-${nextUniqueId$o++}`;
|
22190
22363
|
this.idStartDate = `${this._name}-start`;
|
22191
22364
|
this.idEndDate = `${this._name}-end`;
|
22192
22365
|
this.nameStartDate = `${this._name}-start`;
|
@@ -22810,12 +22983,12 @@ PresetRangeComponent = PresetRangeComponent_1 = __decorate([
|
|
22810
22983
|
|
22811
22984
|
var DatepickerComponent_1;
|
22812
22985
|
const moment$3 = moment_;
|
22813
|
-
let nextUniqueId$
|
22986
|
+
let nextUniqueId$p = 0;
|
22814
22987
|
let DatepickerComponent = DatepickerComponent_1 = class DatepickerComponent {
|
22815
22988
|
constructor(elementRef, _changeDetectorRef) {
|
22816
22989
|
this.elementRef = elementRef;
|
22817
22990
|
this._changeDetectorRef = _changeDetectorRef;
|
22818
|
-
this._name = `gipi-date-range-${nextUniqueId$
|
22991
|
+
this._name = `gipi-date-range-${nextUniqueId$p++}`;
|
22819
22992
|
this.id = `${this._name}-date`;
|
22820
22993
|
this.name = `${this._name}-date`;
|
22821
22994
|
this.label = '';
|
@@ -22885,7 +23058,7 @@ let DatepickerComponent = DatepickerComponent_1 = class DatepickerComponent {
|
|
22885
23058
|
ngOnInit() { }
|
22886
23059
|
ngOnDestroy() { }
|
22887
23060
|
writeValue(value) {
|
22888
|
-
this.
|
23061
|
+
this.value = value;
|
22889
23062
|
this._changeDetectorRef.detectChanges();
|
22890
23063
|
}
|
22891
23064
|
registerOnChange(fn) {
|
@@ -23358,7 +23531,7 @@ class MonthPickerModel {
|
|
23358
23531
|
this.updateYearText();
|
23359
23532
|
}
|
23360
23533
|
}
|
23361
|
-
let nextUniqueId$
|
23534
|
+
let nextUniqueId$q = 0;
|
23362
23535
|
let MonthYearPickerComponent = MonthYearPickerComponent_1 = class MonthYearPickerComponent {
|
23363
23536
|
constructor(elementRef, _changeDetectorRef, _overlay, _ngZone, _viewContainerRef, scrollStrategy, _dir, _document) {
|
23364
23537
|
this.elementRef = elementRef;
|
@@ -23368,7 +23541,7 @@ let MonthYearPickerComponent = MonthYearPickerComponent_1 = class MonthYearPicke
|
|
23368
23541
|
this._viewContainerRef = _viewContainerRef;
|
23369
23542
|
this._dir = _dir;
|
23370
23543
|
this._document = _document;
|
23371
|
-
this._name = `gipi-date-range-${nextUniqueId$
|
23544
|
+
this._name = `gipi-date-range-${nextUniqueId$q++}`;
|
23372
23545
|
this._focusedElementBeforeOpen = null;
|
23373
23546
|
this._backdropHarnessClass = `${this._name}-backdrop`;
|
23374
23547
|
this._stateChanges = new Subject();
|
@@ -23827,6 +24000,7 @@ const GIPIComponents = [
|
|
23827
24000
|
GIPITextareaComponent,
|
23828
24001
|
GIPISplitButtonComponent,
|
23829
24002
|
GIPISkeletonComponent,
|
24003
|
+
GIPIInputPhoneComponent,
|
23830
24004
|
// Tabs
|
23831
24005
|
GIPITabGroupComponent,
|
23832
24006
|
GIPITabComponent,
|
@@ -26911,5 +27085,5 @@ const MAT_NATIVE_DATE_FORMATS = {
|
|
26911
27085
|
* Generated bundle index. Do not edit.
|
26912
27086
|
*/
|
26913
27087
|
|
26914
|
-
export { APP_MESSAGES, AbstractComponent, AbstractCrudComponent, AbstractCrudService, AbstractDTO, AbstractFindComponent, AbstractFindService, AbstractModel, AbstractService, AlertComponent, Archive, ArrayUtil, AuthGuard, AuthInterceptor, AuthenticationService, BaseUser, BreakpointEnum, BreakpointObserverService, BrowserUtil, ButtonComponent, CalendarMonthYearComponent, CardComponent, ChartDTO, CheckboxComponent, ConfirmationDTO, ConfirmationService, CoreModule, CriteriaOperationEnum, CriteriaSortDirectionEnum, CurrencyUtil, DEFAULT_MESSAGES, DateAdapter, DateRange, DateRangePickerComponent, DateUtil, DatepickerModule, DefaultMatCalendarRangeStrategy, DialogDTO, DialogService, DocumentUtil, EmailUtil, ErrorInterceptor, FilterDTO, GIPIAbstractComponent, GIPIAbstractCrudComponent, GIPIAbstractCrudService, GIPIAbstractDTO, GIPIAbstractFilterModel, GIPIAbstractFindComponent, GIPIAbstractFormComponent, GIPIAbstractModel, GIPIAbstractService, GIPIActionRowComponent, GIPIAppliedFilter, GIPIAutowired, GIPIBadgeComponent, GIPIBaseService, GIPIBreakpointService, GIPIButtonComponent, GIPICardComponent, GIPIColDirective, GIPIConfirmationDialogComponent, GIPIConnectedOverlayScrollHandler, GIPIDomHandler, GIPIDropdownMenuComponent, GIPIDynamicTabDirective, GIPIEmptyStateComponent, GIPIExpansionPanelComponent, GIPIFileDragAndDropComponent, GIPIFileService, GIPIFooterComponent, GIPIFormFieldComponent, GIPIHelpfulTipComponent, GIPIInfiniteScrollDirective, GIPIInputCheckboxComponent, GIPIInputCurrencyComponent, GIPIInputMonthPickerComponent, GIPIInputSearchComponent, GIPIInputSelectComponent, GIPIInputSelectEnumComponent, GIPIInputSelectListboxComponent, GIPIInputSelectPagedComponent, GIPIInputSelectRadioComponent, GIPINotificationComponent, GIPINoveltiesComponent, GIPIOverlayComponent, GIPIOverlayService, GIPIPageEvent, GIPIPageModel, GIPIPaginatePipe, GIPIPaginationControlsDirective, GIPIPaginationService, GIPIPasswordRequerimentsComponent, GIPIPopoverComponent, GIPIPopoverTarget, GIPIPopoverTrigger, GIPIRadioGroupComponent, GIPIRangePageComponent, GIPIRangeSliderComponent, GIPIResizeService, GIPIRowDirective, GIPISelectButtonComponent, GIPISelectComponent, GIPISessionStorageService, GIPISidenavComponent, GIPISidenavContainerComponent, GIPISkeletonComponent, GIPISkeletonDirective, GIPISlideToggleComponent, GIPISortDirectionEnum, GIPISortModel, GIPISplitButtonComponent, GIPIStepperComponent, GIPITabComponent, GIPITabGroupComponent, GIPITableBodyComponent, GIPITableComponent, GIPITableFooterComponent, GIPITableHeaderComponent, GIPITablePaginationComponent, GIPITableProgressBarComponent, GIPITemplateDirective, GIPITextareaComponent, GIPIToolbarComponent, GIPITopNavComponent, GIPIUserProfileComponent, GIPI_BREAKPOINTS, GIPI_CUSTOM_BREAKPOINTS_PROVIDER, GIPI_MONTH_YEAR_SCROLL_STRATEGY, GIPI_MONTH_YEAR_SCROLL_STRATEGY_FACTORY, GIPI_MONTH_YEAR_SCROLL_STRATEGY_FACTORY_PROVIDER, INJECTOR, IconComponent, InputComponent, InputCurrencyComponent, InputFileComponent, InputListboxDTO, ItssTemplate, LoadingComponent, LoadingOverlayComponent, LocalTimeEnum, LocalTimePipe, MAT_DATEPICKER_SCROLL_STRATEGY, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER, MAT_DATEPICKER_VALIDATORS, MAT_DATEPICKER_VALUE_ACCESSOR, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MAT_DATE_LOCALE_FACTORY, MAT_DATE_LOCALE_PROVIDER, MAT_DATE_RANGE_SELECTION_STRATEGY, MAT_NATIVE_DATE_FORMATS, MAT_RANGE_DATE_SELECTION_MODEL_FACTORY, MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER, MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY, MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER, MatCalendar, MatCalendarBody, MatCalendarCell, MatCalendarHeader, MatDateRangeInput, MatDateRangePicker, MatDateSelectionModel, MatDatepicker, MatDatepickerContent, MatDatepickerInput, MatDatepickerInputEvent, MatDatepickerIntl, MatDatepickerToggle, MatDatepickerToggleIcon, MatEndDate, MatMonthView, MatMultiYearView, MatRangeDateSelectionModel, MatSingleDateSelectionModel, MatStartDate, MatYearView, MaxRangeDirective, MaxRangeSelectionStrategy, MenuDTO, MenuTypeEnum, MessageDTO, MessageService, MonthPickerModel, MonthYear, MonthYearPickerComponent, MonthYearPickerModule, MultitenantModel, NativeDateAdapter, NavService, NumberUtil, ObjectUtil, OverlayPanelComponent, POINTS_NAME, PageDTO, PasswordUtil, Permission, PermissionGuard, PhoneMaskDirective, PhoneUtil, Platform, PopoverComponent, PopoverRef, PopoverService, PresetRangeComponent, RadioButtonEnum, RadioGroupEntityComponent, RadioGroupEnumComponent, RangePage, Role, SelectButtonAddComponent, SelectButtonNextBatchComponent, SelectEntityComponent, SelectEntityPagedComponent, SelectEnumComponent, SelectMonthPeriodComponent, SelectNoEntriesFoundDirective, SelectSearchClearDirective, SelectSearchComponent, SharedModule, SlideToggleComponent, SortDTO, SortDirectionEnum, SortModel, StepperComponent, StringUtil, SvgRegisterService, TabDTO, TabModel, TableColumnBuilder, TableColumnBuilderModel, TableColumnDTO, TableColumnModel, TableComponent, TableScrolledComponent, TimeUtil, TokenDTO, URLParamsUtil, UUIDUtil, customCurrencyMaskConfig, getReflectType, gridResponsiveMap, matDatepickerAnimations, nextUniqueId$
|
27088
|
+
export { APP_MESSAGES, AbstractComponent, AbstractCrudComponent, AbstractCrudService, AbstractDTO, AbstractFindComponent, AbstractFindService, AbstractModel, AbstractService, AlertComponent, Archive, ArrayUtil, AuthGuard, AuthInterceptor, AuthenticationService, BaseUser, BreakpointEnum, BreakpointObserverService, BrowserUtil, ButtonComponent, CalendarMonthYearComponent, CardComponent, ChartDTO, CheckboxComponent, ConfirmationDTO, ConfirmationService, CoreModule, CriteriaOperationEnum, CriteriaSortDirectionEnum, CurrencyUtil, DEFAULT_MESSAGES, DateAdapter, DateRange, DateRangePickerComponent, DateUtil, DatepickerModule, DefaultMatCalendarRangeStrategy, DialogDTO, DialogService, DocumentUtil, EmailUtil, ErrorInterceptor, FilterDTO, GIPIAbstractComponent, GIPIAbstractCrudComponent, GIPIAbstractCrudService, GIPIAbstractDTO, GIPIAbstractFilterModel, GIPIAbstractFindComponent, GIPIAbstractFormComponent, GIPIAbstractModel, GIPIAbstractService, GIPIActionRowComponent, GIPIAppliedFilter, GIPIAutowired, GIPIBadgeComponent, GIPIBaseService, GIPIBreakpointService, GIPIButtonComponent, GIPICardComponent, GIPIColDirective, GIPIConfirmationDialogComponent, GIPIConnectedOverlayScrollHandler, GIPIDomHandler, GIPIDropdownMenuComponent, GIPIDynamicTabDirective, GIPIEmptyStateComponent, GIPIExpansionPanelComponent, GIPIFileDragAndDropComponent, GIPIFileService, GIPIFooterComponent, GIPIFormFieldComponent, GIPIHelpfulTipComponent, GIPIInfiniteScrollDirective, GIPIInputCheckboxComponent, GIPIInputCurrencyComponent, GIPIInputMonthPickerComponent, GIPIInputPhoneComponent, GIPIInputSearchComponent, GIPIInputSelectComponent, GIPIInputSelectEnumComponent, GIPIInputSelectListboxComponent, GIPIInputSelectPagedComponent, GIPIInputSelectRadioComponent, GIPINotificationComponent, GIPINoveltiesComponent, GIPIOverlayComponent, GIPIOverlayService, GIPIPageEvent, GIPIPageModel, GIPIPaginatePipe, GIPIPaginationControlsDirective, GIPIPaginationService, GIPIPasswordRequerimentsComponent, GIPIPopoverComponent, GIPIPopoverTarget, GIPIPopoverTrigger, GIPIRadioGroupComponent, GIPIRangePageComponent, GIPIRangeSliderComponent, GIPIResizeService, GIPIRowDirective, GIPISelectButtonComponent, GIPISelectComponent, GIPISessionStorageService, GIPISidenavComponent, GIPISidenavContainerComponent, GIPISkeletonComponent, GIPISkeletonDirective, GIPISlideToggleComponent, GIPISortDirectionEnum, GIPISortModel, GIPISplitButtonComponent, GIPIStepperComponent, GIPITabComponent, GIPITabGroupComponent, GIPITableBodyComponent, GIPITableComponent, GIPITableFooterComponent, GIPITableHeaderComponent, GIPITablePaginationComponent, GIPITableProgressBarComponent, GIPITemplateDirective, GIPITextareaComponent, GIPIToolbarComponent, GIPITopNavComponent, GIPIUserProfileComponent, GIPI_BREAKPOINTS, GIPI_CUSTOM_BREAKPOINTS_PROVIDER, GIPI_MONTH_YEAR_SCROLL_STRATEGY, GIPI_MONTH_YEAR_SCROLL_STRATEGY_FACTORY, GIPI_MONTH_YEAR_SCROLL_STRATEGY_FACTORY_PROVIDER, INJECTOR, IconComponent, InputComponent, InputCurrencyComponent, InputFileComponent, InputListboxDTO, ItssTemplate, LoadingComponent, LoadingOverlayComponent, LocalTimeEnum, LocalTimePipe, MAT_DATEPICKER_SCROLL_STRATEGY, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY, MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER, MAT_DATEPICKER_VALIDATORS, MAT_DATEPICKER_VALUE_ACCESSOR, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MAT_DATE_LOCALE_FACTORY, MAT_DATE_LOCALE_PROVIDER, MAT_DATE_RANGE_SELECTION_STRATEGY, MAT_NATIVE_DATE_FORMATS, MAT_RANGE_DATE_SELECTION_MODEL_FACTORY, MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER, MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY, MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER, MatCalendar, MatCalendarBody, MatCalendarCell, MatCalendarHeader, MatDateRangeInput, MatDateRangePicker, MatDateSelectionModel, MatDatepicker, MatDatepickerContent, MatDatepickerInput, MatDatepickerInputEvent, MatDatepickerIntl, MatDatepickerToggle, MatDatepickerToggleIcon, MatEndDate, MatMonthView, MatMultiYearView, MatRangeDateSelectionModel, MatSingleDateSelectionModel, MatStartDate, MatYearView, MaxRangeDirective, MaxRangeSelectionStrategy, MenuDTO, MenuTypeEnum, MessageDTO, MessageService, MonthPickerModel, MonthYear, MonthYearPickerComponent, MonthYearPickerModule, MultitenantModel, NativeDateAdapter, NavService, NumberUtil, ObjectUtil, OverlayPanelComponent, POINTS_NAME, PageDTO, PasswordUtil, Permission, PermissionGuard, PhoneMaskDirective, PhoneUtil, Platform, PopoverComponent, PopoverRef, PopoverService, PresetRangeComponent, RadioButtonEnum, RadioGroupEntityComponent, RadioGroupEnumComponent, RangePage, Role, SelectButtonAddComponent, SelectButtonNextBatchComponent, SelectEntityComponent, SelectEntityPagedComponent, SelectEnumComponent, SelectMonthPeriodComponent, SelectNoEntriesFoundDirective, SelectSearchClearDirective, SelectSearchComponent, SharedModule, SlideToggleComponent, SortDTO, SortDirectionEnum, SortModel, StepperComponent, StringUtil, SvgRegisterService, TabDTO, TabModel, TableColumnBuilder, TableColumnBuilderModel, TableColumnDTO, TableColumnModel, TableComponent, TableScrolledComponent, TimeUtil, TokenDTO, URLParamsUtil, UUIDUtil, customCurrencyMaskConfig, getReflectType, gridResponsiveMap, matDatepickerAnimations, nextUniqueId$o as nextUniqueId, siderResponsiveMap, transformPopover, yearsPerPage$1 as yearsPerPage, yearsPerRow, ƟCMP, ƟFAC, ƟPROV, ɵ0$3 as ɵ0, MAT_DATE_RANGE_INPUT_PARENT as ɵa, MAT_CALENDAR_RANGE_STRATEGY_PROVIDER_FACTORY as ɵb, MAT_CALENDAR_RANGE_STRATEGY_PROVIDER as ɵc, MatDatepickerBase as ɵd, MAT_FORM_FIELD as ɵe, MatDatepickerInputBase as ɵf, GIPINgConfig as ɵg, GIPIChipsComponent as ɵh, GIPIFileDragAndDropDirective as ɵi, TextareaComponent as ɵj, UpperCaseDirective as ɵk, LowerCaseDirective as ɵl, SpaceDropDirective as ɵm, InputSelectInfiniteScrollDirective as ɵn, ITSS_SELECT_SEARCH_DEFAULT_OPTIONS as ɵo, MaterialModule as ɵq, DatepickerComponent as ɵr };
|
26915
27089
|
//# sourceMappingURL=gipisistemas-ng-core.js.map
|