@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
@@ -1248,14 +1248,12 @@ var PhoneUtil = /** @class */ (function () {
|
|
1248
1248
|
PhoneUtil.format = function (number, mask) {
|
1249
1249
|
var numberNotFormatted = NumberUtil.onlyNumbers(number);
|
1250
1250
|
var phoneFormatted = '';
|
1251
|
-
if ((numberNotFormatted.length < 8) ||
|
1252
|
-
(numberNotFormatted.length > 12) ||
|
1253
|
-
(!this.isPossible(numberNotFormatted) && !this.isValid(numberNotFormatted))) {
|
1254
|
-
return numberNotFormatted;
|
1255
|
-
}
|
1256
1251
|
if (StringUtil.isEmpty(mask)) {
|
1257
1252
|
mask = this.mask(numberNotFormatted);
|
1258
1253
|
}
|
1254
|
+
if (mask === '0*') {
|
1255
|
+
return numberNotFormatted;
|
1256
|
+
}
|
1259
1257
|
for (var i = 0, j = 0; i < mask.length && j < numberNotFormatted.length; i++) {
|
1260
1258
|
phoneFormatted += mask.charAt(i) === '0' ? numberNotFormatted.charAt(j++) : mask.charAt(i);
|
1261
1259
|
}
|
@@ -1277,7 +1275,14 @@ var PhoneUtil = /** @class */ (function () {
|
|
1277
1275
|
case 8: return '0000-0000';
|
1278
1276
|
case 9: return '0 0000-0000';
|
1279
1277
|
case 10: return '(00) 0000-0000';
|
1280
|
-
case 11:
|
1278
|
+
case 11:
|
1279
|
+
{
|
1280
|
+
var startWithZero = phoneAux.startsWith('0');
|
1281
|
+
return (startWithZero
|
1282
|
+
? '(000) 0000-0000'
|
1283
|
+
: '(00) 0 0000-0000');
|
1284
|
+
}
|
1285
|
+
;
|
1281
1286
|
case 12: return '(000) 0 0000-0000';
|
1282
1287
|
default: return '0*';
|
1283
1288
|
}
|
@@ -11263,13 +11268,188 @@ var GIPIInputMonthPickerComponent = /** @class */ (function () {
|
|
11263
11268
|
}());
|
11264
11269
|
|
11265
11270
|
var nextUniqueId$8 = 0;
|
11271
|
+
var GIPIInputPhoneComponent = /** @class */ (function () {
|
11272
|
+
function GIPIInputPhoneComponent(elementRef, _changeDetectorRef) {
|
11273
|
+
this.elementRef = elementRef;
|
11274
|
+
this._changeDetectorRef = _changeDetectorRef;
|
11275
|
+
this._name = "gipi-input-phone-" + nextUniqueId$8++;
|
11276
|
+
this._inputEnter$ = new BehaviorSubject(false);
|
11277
|
+
this.maskPhone$ = new BehaviorSubject('0*');
|
11278
|
+
this.id = this._name;
|
11279
|
+
this.name = this._name;
|
11280
|
+
this.label = '';
|
11281
|
+
this.tooltip = '';
|
11282
|
+
this.placeholder = '';
|
11283
|
+
this.disabled = false;
|
11284
|
+
this.loading = false;
|
11285
|
+
this.required = false;
|
11286
|
+
/** Indica se é um número estrangeiro */
|
11287
|
+
this.foreign = false;
|
11288
|
+
this.appearance = 'outline';
|
11289
|
+
this._value = '';
|
11290
|
+
this.focus = new EventEmitter();
|
11291
|
+
this.blur = new EventEmitter();
|
11292
|
+
this.onChange = function () { };
|
11293
|
+
this.onTouch = function () { };
|
11294
|
+
}
|
11295
|
+
GIPIInputPhoneComponent_1 = GIPIInputPhoneComponent;
|
11296
|
+
Object.defineProperty(GIPIInputPhoneComponent.prototype, "value", {
|
11297
|
+
get: function () {
|
11298
|
+
return this._value;
|
11299
|
+
},
|
11300
|
+
set: function (value) {
|
11301
|
+
this._value = value;
|
11302
|
+
var isInputEntered = this._inputEnter$.getValue();
|
11303
|
+
if (!isInputEntered) {
|
11304
|
+
this._changeDetectorRef.detectChanges();
|
11305
|
+
}
|
11306
|
+
this.onChange(this._value);
|
11307
|
+
this.onTouch();
|
11308
|
+
},
|
11309
|
+
enumerable: false,
|
11310
|
+
configurable: true
|
11311
|
+
});
|
11312
|
+
GIPIInputPhoneComponent.prototype.ngOnInit = function () { };
|
11313
|
+
GIPIInputPhoneComponent.prototype.writeValue = function (value) {
|
11314
|
+
this.value = value;
|
11315
|
+
if (!StringUtil.isEmpty(this.value) && !this.foreign) {
|
11316
|
+
this.onInputExit();
|
11317
|
+
}
|
11318
|
+
};
|
11319
|
+
GIPIInputPhoneComponent.prototype.registerOnChange = function (fn) {
|
11320
|
+
this.onChange = fn;
|
11321
|
+
};
|
11322
|
+
GIPIInputPhoneComponent.prototype.registerOnTouched = function (fn) {
|
11323
|
+
this.onTouch = fn;
|
11324
|
+
};
|
11325
|
+
GIPIInputPhoneComponent.prototype.setDisabledState = function (isDisabled) {
|
11326
|
+
this.disabled = isDisabled;
|
11327
|
+
this._changeDetectorRef.detectChanges();
|
11328
|
+
};
|
11329
|
+
GIPIInputPhoneComponent.prototype.onFocus = function (event) {
|
11330
|
+
if (!this.disabled) {
|
11331
|
+
this.focus.emit(event);
|
11332
|
+
}
|
11333
|
+
};
|
11334
|
+
GIPIInputPhoneComponent.prototype.onBlur = function (event) {
|
11335
|
+
if (!this.disabled) {
|
11336
|
+
this.blur.emit(event);
|
11337
|
+
this.onTouch();
|
11338
|
+
}
|
11339
|
+
};
|
11340
|
+
GIPIInputPhoneComponent.prototype.onInputEnter = function () {
|
11341
|
+
var _this = this;
|
11342
|
+
if (this.foreign) {
|
11343
|
+
return;
|
11344
|
+
}
|
11345
|
+
this._inputEnter$.next(true);
|
11346
|
+
var tempValue = this.value;
|
11347
|
+
this.value = '';
|
11348
|
+
this._changeDetectorRef.detectChanges();
|
11349
|
+
this.maskPhone$.next('0*');
|
11350
|
+
setTimeout(function (_) { return _this.value = tempValue; });
|
11351
|
+
};
|
11352
|
+
GIPIInputPhoneComponent.prototype.onInputExit = function () {
|
11353
|
+
if (this.foreign) {
|
11354
|
+
return;
|
11355
|
+
}
|
11356
|
+
this._inputEnter$.next(false);
|
11357
|
+
if (!this.value) {
|
11358
|
+
this.maskPhone$.next('0*');
|
11359
|
+
return;
|
11360
|
+
}
|
11361
|
+
var mask = PhoneUtil.mask(this.value);
|
11362
|
+
this.maskPhone$.next(mask);
|
11363
|
+
};
|
11364
|
+
var GIPIInputPhoneComponent_1;
|
11365
|
+
GIPIInputPhoneComponent.ctorParameters = function () { return [
|
11366
|
+
{ type: ElementRef },
|
11367
|
+
{ type: ChangeDetectorRef }
|
11368
|
+
]; };
|
11369
|
+
__decorate([
|
11370
|
+
ViewChild('input', { static: false, read: ElementRef }),
|
11371
|
+
__metadata("design:type", ElementRef)
|
11372
|
+
], GIPIInputPhoneComponent.prototype, "_elementRef", void 0);
|
11373
|
+
__decorate([
|
11374
|
+
Input(),
|
11375
|
+
__metadata("design:type", Object)
|
11376
|
+
], GIPIInputPhoneComponent.prototype, "id", void 0);
|
11377
|
+
__decorate([
|
11378
|
+
Input(),
|
11379
|
+
__metadata("design:type", String)
|
11380
|
+
], GIPIInputPhoneComponent.prototype, "name", void 0);
|
11381
|
+
__decorate([
|
11382
|
+
Input(),
|
11383
|
+
__metadata("design:type", String)
|
11384
|
+
], GIPIInputPhoneComponent.prototype, "label", void 0);
|
11385
|
+
__decorate([
|
11386
|
+
Input(),
|
11387
|
+
__metadata("design:type", String)
|
11388
|
+
], GIPIInputPhoneComponent.prototype, "tooltip", void 0);
|
11389
|
+
__decorate([
|
11390
|
+
Input(),
|
11391
|
+
__metadata("design:type", String)
|
11392
|
+
], GIPIInputPhoneComponent.prototype, "placeholder", void 0);
|
11393
|
+
__decorate([
|
11394
|
+
Input(),
|
11395
|
+
__metadata("design:type", Boolean)
|
11396
|
+
], GIPIInputPhoneComponent.prototype, "disabled", void 0);
|
11397
|
+
__decorate([
|
11398
|
+
Input(),
|
11399
|
+
__metadata("design:type", Boolean)
|
11400
|
+
], GIPIInputPhoneComponent.prototype, "loading", void 0);
|
11401
|
+
__decorate([
|
11402
|
+
Input(),
|
11403
|
+
__metadata("design:type", Boolean)
|
11404
|
+
], GIPIInputPhoneComponent.prototype, "required", void 0);
|
11405
|
+
__decorate([
|
11406
|
+
Input(),
|
11407
|
+
__metadata("design:type", Boolean)
|
11408
|
+
], GIPIInputPhoneComponent.prototype, "foreign", void 0);
|
11409
|
+
__decorate([
|
11410
|
+
Input(),
|
11411
|
+
__metadata("design:type", String)
|
11412
|
+
], GIPIInputPhoneComponent.prototype, "appearance", void 0);
|
11413
|
+
__decorate([
|
11414
|
+
Input(),
|
11415
|
+
__metadata("design:type", String),
|
11416
|
+
__metadata("design:paramtypes", [String])
|
11417
|
+
], GIPIInputPhoneComponent.prototype, "value", null);
|
11418
|
+
__decorate([
|
11419
|
+
Output(),
|
11420
|
+
__metadata("design:type", EventEmitter)
|
11421
|
+
], GIPIInputPhoneComponent.prototype, "focus", void 0);
|
11422
|
+
__decorate([
|
11423
|
+
Output(),
|
11424
|
+
__metadata("design:type", EventEmitter)
|
11425
|
+
], GIPIInputPhoneComponent.prototype, "blur", void 0);
|
11426
|
+
GIPIInputPhoneComponent = GIPIInputPhoneComponent_1 = __decorate([
|
11427
|
+
Component({
|
11428
|
+
selector: 'gipi-input-phone',
|
11429
|
+
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>",
|
11430
|
+
providers: [
|
11431
|
+
{
|
11432
|
+
provide: NG_VALUE_ACCESSOR,
|
11433
|
+
useExisting: forwardRef(function () { return GIPIInputPhoneComponent_1; }),
|
11434
|
+
multi: true
|
11435
|
+
}
|
11436
|
+
],
|
11437
|
+
styles: [":host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#d14014!important}"]
|
11438
|
+
}),
|
11439
|
+
__metadata("design:paramtypes", [ElementRef,
|
11440
|
+
ChangeDetectorRef])
|
11441
|
+
], GIPIInputPhoneComponent);
|
11442
|
+
return GIPIInputPhoneComponent;
|
11443
|
+
}());
|
11444
|
+
|
11445
|
+
var nextUniqueId$9 = 0;
|
11266
11446
|
/** A altura dos itens selecionados em unidades `px`. */
|
11267
11447
|
var OPTION_HEIGHT_PX = 40;
|
11268
11448
|
var GIPIInputSelectEnumComponent = /** @class */ (function () {
|
11269
11449
|
function GIPIInputSelectEnumComponent(elementRef, _changeDetectorRef) {
|
11270
11450
|
this.elementRef = elementRef;
|
11271
11451
|
this._changeDetectorRef = _changeDetectorRef;
|
11272
|
-
this._name = "gipi-input-select-enum-" + nextUniqueId$
|
11452
|
+
this._name = "gipi-input-select-enum-" + nextUniqueId$9++;
|
11273
11453
|
this._enumList = [];
|
11274
11454
|
this._itemSizeScrollViewport = 5;
|
11275
11455
|
this._lastOptionSelected = null;
|
@@ -12291,12 +12471,12 @@ var GIPIOverlayComponent = /** @class */ (function () {
|
|
12291
12471
|
|
12292
12472
|
/** A altura dos itens selecionados em unidades `px`. */
|
12293
12473
|
var OPTION_HEIGHT_PX$1 = 44;
|
12294
|
-
var nextUniqueId$
|
12474
|
+
var nextUniqueId$a = 0;
|
12295
12475
|
var GIPIInputSelectComponent = /** @class */ (function () {
|
12296
12476
|
function GIPIInputSelectComponent(_changeDetectorRef) {
|
12297
12477
|
var _this = this;
|
12298
12478
|
this._changeDetectorRef = _changeDetectorRef;
|
12299
|
-
this._name = "gipi-input-select-" + nextUniqueId$
|
12479
|
+
this._name = "gipi-input-select-" + nextUniqueId$a++;
|
12300
12480
|
this._onDestroy = new Subject();
|
12301
12481
|
this._itemSizeScrollViewport = 5;
|
12302
12482
|
this._overlayVisible = false;
|
@@ -12983,14 +13163,14 @@ var GIPIInputSelectComponent = /** @class */ (function () {
|
|
12983
13163
|
return GIPIInputSelectComponent;
|
12984
13164
|
}());
|
12985
13165
|
|
12986
|
-
var nextUniqueId$
|
13166
|
+
var nextUniqueId$b = 0;
|
12987
13167
|
var GIPIInputSelectListboxComponent = /** @class */ (function () {
|
12988
13168
|
function GIPIInputSelectListboxComponent(_changeDetectorRef, _elementRef, _renderer) {
|
12989
13169
|
var _this = this;
|
12990
13170
|
this._changeDetectorRef = _changeDetectorRef;
|
12991
13171
|
this._elementRef = _elementRef;
|
12992
13172
|
this._renderer = _renderer;
|
12993
|
-
this._name = "gipi-input-select-listbox-" + nextUniqueId$
|
13173
|
+
this._name = "gipi-input-select-listbox-" + nextUniqueId$b++;
|
12994
13174
|
this._isOverlayChildrenClicked = false;
|
12995
13175
|
this._overlayVisible = false;
|
12996
13176
|
this._selectEntityOpened = false;
|
@@ -13798,12 +13978,12 @@ var GIPIInputSearchComponent = /** @class */ (function () {
|
|
13798
13978
|
return GIPIInputSearchComponent;
|
13799
13979
|
}());
|
13800
13980
|
|
13801
|
-
var nextUniqueId$
|
13981
|
+
var nextUniqueId$c = 0;
|
13802
13982
|
var GIPIInputSelectPagedComponent = /** @class */ (function () {
|
13803
13983
|
function GIPIInputSelectPagedComponent(_changeDetectorRef) {
|
13804
13984
|
var _this = this;
|
13805
13985
|
this._changeDetectorRef = _changeDetectorRef;
|
13806
|
-
this._name = "gipi-input-select-paged-" + nextUniqueId$
|
13986
|
+
this._name = "gipi-input-select-paged-" + nextUniqueId$c++;
|
13807
13987
|
this.valueSearchCtrl = new FormControl('');
|
13808
13988
|
this.totalOptions = 0;
|
13809
13989
|
this.subscriptions = [];
|
@@ -14174,12 +14354,12 @@ var GIPIInputSelectPagedComponent = /** @class */ (function () {
|
|
14174
14354
|
return GIPIInputSelectPagedComponent;
|
14175
14355
|
}());
|
14176
14356
|
|
14177
|
-
var nextUniqueId$
|
14357
|
+
var nextUniqueId$d = 0;
|
14178
14358
|
var GIPIInputSelectRadioComponent = /** @class */ (function () {
|
14179
14359
|
function GIPIInputSelectRadioComponent(elementRef, _changeDetectorRef) {
|
14180
14360
|
this.elementRef = elementRef;
|
14181
14361
|
this._changeDetectorRef = _changeDetectorRef;
|
14182
|
-
this._name = "gipi-input-select-radio-" + nextUniqueId$
|
14362
|
+
this._name = "gipi-input-select-radio-" + nextUniqueId$d++;
|
14183
14363
|
this._enumList = [];
|
14184
14364
|
this.id = this._name;
|
14185
14365
|
this.name = this._name;
|
@@ -14706,11 +14886,11 @@ var PasswordUtil = /** @class */ (function () {
|
|
14706
14886
|
return PasswordUtil;
|
14707
14887
|
}());
|
14708
14888
|
|
14709
|
-
var nextUniqueId$
|
14889
|
+
var nextUniqueId$e = 0;
|
14710
14890
|
var GIPIPasswordRequerimentsComponent = /** @class */ (function () {
|
14711
14891
|
function GIPIPasswordRequerimentsComponent(_changeDetectorRef) {
|
14712
14892
|
this._changeDetectorRef = _changeDetectorRef;
|
14713
|
-
this._name = "gipi-password-requeriments-" + nextUniqueId$
|
14893
|
+
this._name = "gipi-password-requeriments-" + nextUniqueId$e++;
|
14714
14894
|
this.id = this._name;
|
14715
14895
|
this.name = this._name;
|
14716
14896
|
this.disabled = false;
|
@@ -15366,11 +15546,11 @@ var GIPIPopoverTarget = /** @class */ (function () {
|
|
15366
15546
|
return GIPIPopoverTarget;
|
15367
15547
|
}());
|
15368
15548
|
|
15369
|
-
var nextUniqueId$
|
15549
|
+
var nextUniqueId$f = 0;
|
15370
15550
|
var GIPIRadioGroupComponent = /** @class */ (function () {
|
15371
15551
|
function GIPIRadioGroupComponent(_changeDetectorRef) {
|
15372
15552
|
this._changeDetectorRef = _changeDetectorRef;
|
15373
|
-
this._name = "gipi-radio-group-" + nextUniqueId$
|
15553
|
+
this._name = "gipi-radio-group-" + nextUniqueId$f++;
|
15374
15554
|
this._enumList = [];
|
15375
15555
|
this.id = this._name;
|
15376
15556
|
this.name = this._name;
|
@@ -15516,7 +15696,7 @@ var GIPIRadioGroupComponent = /** @class */ (function () {
|
|
15516
15696
|
return GIPIRadioGroupComponent;
|
15517
15697
|
}());
|
15518
15698
|
|
15519
|
-
var nextUniqueId$
|
15699
|
+
var nextUniqueId$g = 0;
|
15520
15700
|
var RangePage = /** @class */ (function () {
|
15521
15701
|
function RangePage(start, end) {
|
15522
15702
|
this.start = start;
|
@@ -15535,7 +15715,7 @@ var GIPIRangePageComponent = /** @class */ (function () {
|
|
15535
15715
|
function GIPIRangePageComponent(elementRef, _changeDetectorRef) {
|
15536
15716
|
this.elementRef = elementRef;
|
15537
15717
|
this._changeDetectorRef = _changeDetectorRef;
|
15538
|
-
this._name = "gipi-range-page-" + nextUniqueId$
|
15718
|
+
this._name = "gipi-range-page-" + nextUniqueId$g++;
|
15539
15719
|
this._startPage = 1;
|
15540
15720
|
this._endPage = 1;
|
15541
15721
|
this.id = this._name;
|
@@ -15791,12 +15971,12 @@ var GIPIRangePageComponent = /** @class */ (function () {
|
|
15791
15971
|
return GIPIRangePageComponent;
|
15792
15972
|
}());
|
15793
15973
|
|
15794
|
-
var nextUniqueId$
|
15974
|
+
var nextUniqueId$h = 0;
|
15795
15975
|
var GIPIRangeSliderComponent = /** @class */ (function () {
|
15796
15976
|
function GIPIRangeSliderComponent(elementRef, _changeDetectorRef) {
|
15797
15977
|
this.elementRef = elementRef;
|
15798
15978
|
this._changeDetectorRef = _changeDetectorRef;
|
15799
|
-
this._name = "gipi-range-slider-" + nextUniqueId$
|
15979
|
+
this._name = "gipi-range-slider-" + nextUniqueId$h++;
|
15800
15980
|
this.id = this._name;
|
15801
15981
|
this.name = this._name;
|
15802
15982
|
this.label = '';
|
@@ -17052,11 +17232,11 @@ var GIPISidenavComponent = /** @class */ (function () {
|
|
17052
17232
|
return GIPISidenavComponent;
|
17053
17233
|
}());
|
17054
17234
|
|
17055
|
-
var nextUniqueId$
|
17235
|
+
var nextUniqueId$i = 0;
|
17056
17236
|
var GIPISlideToggleComponent = /** @class */ (function () {
|
17057
17237
|
function GIPISlideToggleComponent(_changeDetectorRef) {
|
17058
17238
|
this._changeDetectorRef = _changeDetectorRef;
|
17059
|
-
this._name = "gipi-slide-toggle-" + nextUniqueId$
|
17239
|
+
this._name = "gipi-slide-toggle-" + nextUniqueId$i++;
|
17060
17240
|
this._slideToggleValue = false;
|
17061
17241
|
this.id = this._name;
|
17062
17242
|
this.name = this._name;
|
@@ -17174,11 +17354,11 @@ var GIPISlideToggleComponent = /** @class */ (function () {
|
|
17174
17354
|
return GIPISlideToggleComponent;
|
17175
17355
|
}());
|
17176
17356
|
|
17177
|
-
var nextUniqueId$
|
17357
|
+
var nextUniqueId$j = 0;
|
17178
17358
|
var GIPISplitButtonComponent = /** @class */ (function () {
|
17179
17359
|
function GIPISplitButtonComponent(elementRef) {
|
17180
17360
|
this.elementRef = elementRef;
|
17181
|
-
this._uniqueId = nextUniqueId$
|
17361
|
+
this._uniqueId = nextUniqueId$j++;
|
17182
17362
|
this._name = "gipi-split-button-" + this._uniqueId;
|
17183
17363
|
this.idBtnDefault = "gipi-split-button-default-" + this._uniqueId;
|
17184
17364
|
this.idBtnMenu = "gipi-split-button-menu-" + this._uniqueId;
|
@@ -17221,7 +17401,7 @@ var GIPISplitButtonComponent = /** @class */ (function () {
|
|
17221
17401
|
return attributes.some(function (attribute) { return _this.getHostElement().hasAttribute(attribute); });
|
17222
17402
|
};
|
17223
17403
|
GIPISplitButtonComponent.prototype.btnIdAndName = function () {
|
17224
|
-
var uniqueId = nextUniqueId$
|
17404
|
+
var uniqueId = nextUniqueId$j++;
|
17225
17405
|
return {
|
17226
17406
|
btnDefault: "gipi-split-button-default-" + uniqueId,
|
17227
17407
|
btnMenu: "gipi-split-button-menu-" + uniqueId,
|
@@ -18170,10 +18350,10 @@ var TabModel = /** @class */ (function () {
|
|
18170
18350
|
return TabModel;
|
18171
18351
|
}());
|
18172
18352
|
|
18173
|
-
var nextUniqueId$
|
18353
|
+
var nextUniqueId$k = 0;
|
18174
18354
|
var GIPITabComponent = /** @class */ (function () {
|
18175
18355
|
function GIPITabComponent() {
|
18176
|
-
this._name = "gipi-tab-" + nextUniqueId$
|
18356
|
+
this._name = "gipi-tab-" + nextUniqueId$k++;
|
18177
18357
|
this.id = this._name;
|
18178
18358
|
this.name = this._name;
|
18179
18359
|
this.active = false;
|
@@ -18246,12 +18426,12 @@ var GIPITabComponent = /** @class */ (function () {
|
|
18246
18426
|
return GIPITabComponent;
|
18247
18427
|
}());
|
18248
18428
|
|
18249
|
-
var nextUniqueId$
|
18429
|
+
var nextUniqueId$l = 0;
|
18250
18430
|
var GIPITabGroupComponent = /** @class */ (function () {
|
18251
18431
|
function GIPITabGroupComponent(elementRef, _componentFactoryResolver) {
|
18252
18432
|
this.elementRef = elementRef;
|
18253
18433
|
this._componentFactoryResolver = _componentFactoryResolver;
|
18254
|
-
this._name = "gipi-tab-" + nextUniqueId$
|
18434
|
+
this._name = "gipi-tab-" + nextUniqueId$l++;
|
18255
18435
|
this.id = this._name;
|
18256
18436
|
this.name = this._name;
|
18257
18437
|
this.dynamicTabs = [];
|
@@ -18385,12 +18565,12 @@ var GIPITabGroupComponent = /** @class */ (function () {
|
|
18385
18565
|
return GIPITabGroupComponent;
|
18386
18566
|
}());
|
18387
18567
|
|
18388
|
-
var nextUniqueId$
|
18568
|
+
var nextUniqueId$m = 0;
|
18389
18569
|
var GIPITextareaComponent = /** @class */ (function () {
|
18390
18570
|
function GIPITextareaComponent(elementRef, _changeDetectorRef) {
|
18391
18571
|
this.elementRef = elementRef;
|
18392
18572
|
this._changeDetectorRef = _changeDetectorRef;
|
18393
|
-
this._name = "gipi-textarea-" + nextUniqueId$
|
18573
|
+
this._name = "gipi-textarea-" + nextUniqueId$m++;
|
18394
18574
|
this.id = this._name;
|
18395
18575
|
this.name = this._name;
|
18396
18576
|
this.label = '';
|
@@ -22844,7 +23024,7 @@ var MatDatepickerInput = /** @class */ (function (_super) {
|
|
22844
23024
|
* Use of this source code is governed by an MIT-style license that can be
|
22845
23025
|
* found in the LICENSE file at https://angular.io/license
|
22846
23026
|
*/
|
22847
|
-
var nextUniqueId$
|
23027
|
+
var nextUniqueId$n = 0;
|
22848
23028
|
var MatDateRangeInput = /** @class */ (function () {
|
22849
23029
|
function MatDateRangeInput(_changeDetectorRef, _elementRef, control, _dateAdapter, _formField) {
|
22850
23030
|
this._changeDetectorRef = _changeDetectorRef;
|
@@ -22852,7 +23032,7 @@ var MatDateRangeInput = /** @class */ (function () {
|
|
22852
23032
|
this._dateAdapter = _dateAdapter;
|
22853
23033
|
this._formField = _formField;
|
22854
23034
|
/** Unique ID for the input. */
|
22855
|
-
this.id = "mat-date-range-input-" + nextUniqueId$
|
23035
|
+
this.id = "mat-date-range-input-" + nextUniqueId$n++;
|
22856
23036
|
/** Whether the control is focused. */
|
22857
23037
|
this.focused = false;
|
22858
23038
|
/** Name of the form control. */
|
@@ -23706,12 +23886,12 @@ var BrowserUtil = /** @class */ (function () {
|
|
23706
23886
|
}());
|
23707
23887
|
|
23708
23888
|
var moment$1 = moment_;
|
23709
|
-
var nextUniqueId$
|
23889
|
+
var nextUniqueId$o = 0;
|
23710
23890
|
var DateRangePickerComponent = /** @class */ (function () {
|
23711
23891
|
function DateRangePickerComponent(elementRef, _changeDetectorRef) {
|
23712
23892
|
this.elementRef = elementRef;
|
23713
23893
|
this._changeDetectorRef = _changeDetectorRef;
|
23714
|
-
this._name = "gipi-date-range-" + nextUniqueId$
|
23894
|
+
this._name = "gipi-date-range-" + nextUniqueId$o++;
|
23715
23895
|
this.idStartDate = this._name + "-start";
|
23716
23896
|
this.idEndDate = this._name + "-end";
|
23717
23897
|
this.nameStartDate = this._name + "-start";
|
@@ -24427,12 +24607,12 @@ var PresetRangeComponent = /** @class */ (function () {
|
|
24427
24607
|
}());
|
24428
24608
|
|
24429
24609
|
var moment$3 = moment_;
|
24430
|
-
var nextUniqueId$
|
24610
|
+
var nextUniqueId$p = 0;
|
24431
24611
|
var DatepickerComponent = /** @class */ (function () {
|
24432
24612
|
function DatepickerComponent(elementRef, _changeDetectorRef) {
|
24433
24613
|
this.elementRef = elementRef;
|
24434
24614
|
this._changeDetectorRef = _changeDetectorRef;
|
24435
|
-
this._name = "gipi-date-range-" + nextUniqueId$
|
24615
|
+
this._name = "gipi-date-range-" + nextUniqueId$p++;
|
24436
24616
|
this.id = this._name + "-date";
|
24437
24617
|
this.name = this._name + "-date";
|
24438
24618
|
this.label = '';
|
@@ -24535,7 +24715,7 @@ var DatepickerComponent = /** @class */ (function () {
|
|
24535
24715
|
DatepickerComponent.prototype.ngOnInit = function () { };
|
24536
24716
|
DatepickerComponent.prototype.ngOnDestroy = function () { };
|
24537
24717
|
DatepickerComponent.prototype.writeValue = function (value) {
|
24538
|
-
this.
|
24718
|
+
this.value = value;
|
24539
24719
|
this._changeDetectorRef.detectChanges();
|
24540
24720
|
};
|
24541
24721
|
DatepickerComponent.prototype.registerOnChange = function (fn) {
|
@@ -25033,7 +25213,7 @@ var MonthPickerModel = /** @class */ (function () {
|
|
25033
25213
|
};
|
25034
25214
|
return MonthPickerModel;
|
25035
25215
|
}());
|
25036
|
-
var nextUniqueId$
|
25216
|
+
var nextUniqueId$q = 0;
|
25037
25217
|
var MonthYearPickerComponent = /** @class */ (function () {
|
25038
25218
|
function MonthYearPickerComponent(elementRef, _changeDetectorRef, _overlay, _ngZone, _viewContainerRef, scrollStrategy, _dir, _document) {
|
25039
25219
|
this.elementRef = elementRef;
|
@@ -25043,7 +25223,7 @@ var MonthYearPickerComponent = /** @class */ (function () {
|
|
25043
25223
|
this._viewContainerRef = _viewContainerRef;
|
25044
25224
|
this._dir = _dir;
|
25045
25225
|
this._document = _document;
|
25046
|
-
this._name = "gipi-date-range-" + nextUniqueId$
|
25226
|
+
this._name = "gipi-date-range-" + nextUniqueId$q++;
|
25047
25227
|
this._focusedElementBeforeOpen = null;
|
25048
25228
|
this._backdropHarnessClass = this._name + "-backdrop";
|
25049
25229
|
this._stateChanges = new Subject();
|
@@ -25535,6 +25715,7 @@ var GIPIComponents = [
|
|
25535
25715
|
GIPITextareaComponent,
|
25536
25716
|
GIPISplitButtonComponent,
|
25537
25717
|
GIPISkeletonComponent,
|
25718
|
+
GIPIInputPhoneComponent,
|
25538
25719
|
// Tabs
|
25539
25720
|
GIPITabGroupComponent,
|
25540
25721
|
GIPITabComponent,
|
@@ -29027,5 +29208,5 @@ var MAT_NATIVE_DATE_FORMATS = {
|
|
29027
29208
|
* Generated bundle index. Do not edit.
|
29028
29209
|
*/
|
29029
29210
|
|
29030
|
-
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$
|
29211
|
+
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 };
|
29031
29212
|
//# sourceMappingURL=gipisistemas-ng-core.js.map
|