@gipisistemas/ng-core 1.1.3 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- package/assets/styles/colors.scss +5 -1
- package/bundles/gipisistemas-ng-core.umd.js +2098 -1285
- package/bundles/gipisistemas-ng-core.umd.js.map +1 -1
- package/bundles/gipisistemas-ng-core.umd.min.js +10 -9
- package/bundles/gipisistemas-ng-core.umd.min.js.map +1 -1
- package/core/gipi-components/models/sort.model.d.ts +3 -3
- package/core/utils/array.util.d.ts +2 -2
- package/core/utils/object.util.d.ts +3 -5
- package/core/utils/string.util.d.ts +4 -0
- package/esm2015/core/gipi-components/models/sort.model.js +1 -1
- package/esm2015/core/gipi-components/services/abstract-crud.service.js +18 -24
- package/esm2015/core/utils/array.util.js +4 -2
- package/esm2015/core/utils/object.util.js +5 -9
- package/esm2015/core/utils/string.util.js +27 -1
- package/esm2015/gipi-components.js +11 -1
- package/esm2015/shared/components/input/input.component.js +46 -23
- package/esm2015/shared/components/select-entity-paged/shared/select-search/select-search.component.js +2 -2
- package/esm2015/shared/components/table/table.component.js +1 -1
- package/esm2015/shared/gipi-components/abstract-form/abstract-form.component.js +1 -1
- package/esm2015/shared/gipi-components/button/button.component.js +18 -2
- package/esm2015/shared/gipi-components/card/card.component.js +113 -0
- package/esm2015/shared/gipi-components/datepicker/datepicker/datepicker.component.js +8 -3
- package/esm2015/shared/gipi-components/empty-state/empty-state.component.js +30 -0
- package/esm2015/shared/gipi-components/input-select-paged/input-search/input-search.component.js +2 -2
- package/esm2015/shared/gipi-components/layout-grid/col.directive.js +4 -4
- package/esm2015/shared/gipi-components/month-year-picker/month-year-picker.component.js +2 -2
- package/esm2015/shared/gipi-components/notification/notification.component.js +8 -3
- package/esm2015/shared/gipi-components/popover/shared/popover-trigger.js +4 -4
- package/esm2015/shared/gipi-components/sidebar/sidenav/sidenav.component.js +35 -3
- package/esm2015/shared/gipi-components/slide-toggle/slide-toggle.component.js +113 -0
- package/esm2015/shared/gipi-components/split-button/split-button.component.js +243 -0
- package/esm2015/shared/gipi-components/tabs/shared/dynamic-tab.directive.js +18 -0
- package/esm2015/shared/gipi-components/tabs/shared/tab.model.js +8 -0
- package/esm2015/shared/gipi-components/tabs/tab/tab.component.js +66 -0
- package/esm2015/shared/gipi-components/tabs/tab-group/tab-group.component.js +123 -0
- package/esm2015/shared/gipi-components/textarea/textarea.component.js +298 -0
- package/esm2015/shared/shared.module.js +22 -16
- package/esm2015/shared.js +1 -5
- package/esm5/core/gipi-components/models/sort.model.js +1 -1
- package/esm5/core/gipi-components/services/abstract-crud.service.js +18 -24
- package/esm5/core/utils/array.util.js +4 -3
- package/esm5/core/utils/object.util.js +5 -9
- package/esm5/core/utils/string.util.js +27 -1
- package/esm5/gipi-components.js +11 -1
- package/esm5/shared/components/input/input.component.js +46 -23
- package/esm5/shared/components/select-entity-paged/shared/select-search/select-search.component.js +2 -2
- package/esm5/shared/components/table/table.component.js +1 -1
- package/esm5/shared/gipi-components/abstract-form/abstract-form.component.js +1 -1
- package/esm5/shared/gipi-components/button/button.component.js +22 -2
- package/esm5/shared/gipi-components/card/card.component.js +135 -0
- package/esm5/shared/gipi-components/datepicker/datepicker/datepicker.component.js +8 -3
- package/esm5/shared/gipi-components/empty-state/empty-state.component.js +33 -0
- package/esm5/shared/gipi-components/input-select-paged/input-search/input-search.component.js +2 -2
- package/esm5/shared/gipi-components/layout-grid/col.directive.js +4 -4
- package/esm5/shared/gipi-components/month-year-picker/month-year-picker.component.js +2 -2
- package/esm5/shared/gipi-components/notification/notification.component.js +8 -3
- package/esm5/shared/gipi-components/popover/shared/popover-trigger.js +4 -4
- package/esm5/shared/gipi-components/sidebar/sidenav/sidenav.component.js +35 -3
- package/esm5/shared/gipi-components/slide-toggle/slide-toggle.component.js +127 -0
- package/esm5/shared/gipi-components/split-button/split-button.component.js +249 -0
- package/esm5/shared/gipi-components/tabs/shared/dynamic-tab.directive.js +19 -0
- package/esm5/shared/gipi-components/tabs/shared/tab.model.js +10 -0
- package/esm5/shared/gipi-components/tabs/tab/tab.component.js +67 -0
- package/esm5/shared/gipi-components/tabs/tab-group/tab-group.component.js +131 -0
- package/esm5/shared/gipi-components/textarea/textarea.component.js +352 -0
- package/esm5/shared/shared.module.js +22 -16
- package/esm5/shared.js +1 -5
- package/fesm2015/gipisistemas-ng-core.js +1991 -1274
- package/fesm2015/gipisistemas-ng-core.js.map +1 -1
- package/fesm5/gipisistemas-ng-core.js +2088 -1281
- package/fesm5/gipisistemas-ng-core.js.map +1 -1
- package/gipi-components.d.ts +9 -0
- package/gipisistemas-ng-core.metadata.json +1 -1
- package/package.json +1 -2
- package/shared/components/input/input.component.d.ts +13 -11
- package/shared/components/table/table.component.d.ts +3 -3
- package/shared/gipi-components/button/button.component.d.ts +14 -0
- package/shared/gipi-components/card/card.component.d.ts +23 -0
- package/shared/gipi-components/empty-state/empty-state.component.d.ts +5 -0
- package/shared/gipi-components/notification/notification.component.d.ts +1 -0
- package/shared/gipi-components/sidebar/sidenav/sidenav.component.d.ts +7 -0
- package/shared/gipi-components/slide-toggle/slide-toggle.component.d.ts +27 -0
- package/shared/gipi-components/split-button/split-button.component.d.ts +60 -0
- package/shared/{directives → gipi-components/tabs/shared}/dynamic-tab.directive.d.ts +1 -1
- package/shared/gipi-components/tabs/shared/tab.model.d.ts +12 -0
- package/shared/{components → gipi-components/tabs}/tab/tab.component.d.ts +4 -2
- package/shared/gipi-components/tabs/tab-group/tab-group.component.d.ts +22 -0
- package/shared/gipi-components/textarea/textarea.component.d.ts +68 -0
- package/shared.d.ts +0 -4
- package/esm2015/shared/components/select-button/select-button.component.js +0 -181
- package/esm2015/shared/components/tab/tab.component.js +0 -57
- package/esm2015/shared/components/tab-group/tab-group.component.js +0 -117
- package/esm2015/shared/directives/dynamic-tab.directive.js +0 -18
- package/esm5/shared/components/select-button/select-button.component.js +0 -195
- package/esm5/shared/components/tab/tab.component.js +0 -58
- package/esm5/shared/components/tab-group/tab-group.component.js +0 -125
- package/esm5/shared/directives/dynamic-tab.directive.js +0 -19
- package/shared/components/select-button/select-button.component.d.ts +0 -35
- package/shared/components/tab-group/tab-group.component.d.ts +0 -22
@@ -1,7 +1,7 @@
|
|
1
|
-
import { InjectionToken, NgModule, EventEmitter, ContentChild, TemplateRef, ViewChild, ElementRef, Input, Output, Component, forwardRef, Inject, ɵɵdefineInjectable, ɵɵinject, Injectable,
|
1
|
+
import { InjectionToken, NgModule, EventEmitter, ContentChild, TemplateRef, ViewChild, ElementRef, Input, Output, Component, forwardRef, Inject, ɵɵdefineInjectable, ɵɵinject, Injectable, ChangeDetectorRef, Renderer2, NgZone, ChangeDetectionStrategy, ViewEncapsulation, Optional, Directive, HostBinding, HostListener, RendererFactory2, Host, ViewContainerRef, Pipe, ContentChildren, QueryList, ComponentFactoryResolver, inject, LOCALE_ID, SkipSelf, InjectFlags, Injector, Self, Attribute, PLATFORM_ID, ɵstringify, INJECTOR as INJECTOR$1, ɵɵdirectiveInject } from '@angular/core';
|
2
2
|
import { __decorate, __spread, __metadata, __assign, __extends, __param, __values, __awaiter, __generator, __read } from 'tslib';
|
3
3
|
import { CdkStepperModule, CdkStepper } from '@angular/cdk/stepper';
|
4
|
-
import {
|
4
|
+
import { formatNumber, formatPercent, DOCUMENT, formatDate, isPlatformBrowser, CommonModule, formatCurrency } from '@angular/common';
|
5
5
|
import { BREAKPOINT, FlexLayoutModule } from '@angular/flex-layout';
|
6
6
|
import { NG_VALUE_ACCESSOR, FormControl, NgControl, NgForm, FormGroupDirective, Validators, NG_VALIDATORS, ControlContainer, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
7
7
|
import { MatMenu, MAT_SNACK_BAR_DATA, MatSnackBar, MatSelect as MatSelect$1, MatOption, MatFormField, MatTableDataSource, MatSort, MatPaginator, MatDialogRef, MAT_DIALOG_DATA, MatDialogConfig, MatDialog, MatNativeDateModule, MatRippleModule as MatRippleModule$1, MatDialogModule as MatDialogModule$1, MatIconRegistry } from '@angular/material';
|
@@ -53,9 +53,11 @@ import { MatTabsModule } from '@angular/material/tabs';
|
|
53
53
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
54
54
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
55
55
|
import { MatTreeModule } from '@angular/material/tree';
|
56
|
+
import rfdc_ from 'rfdc';
|
56
57
|
import { HttpHeaders, HttpParams, HttpClient, HttpErrorResponse, HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
57
58
|
import { Subject, throwError, BehaviorSubject, of, combineLatest, fromEvent, ReplaySubject, Subscription, merge } from 'rxjs';
|
58
59
|
import { debounceTime, map, distinctUntilChanged, switchMap, startWith, delay, takeUntil, take, tap, filter, auditTime, finalize, shareReplay, catchError } from 'rxjs/operators';
|
60
|
+
import { parsePhoneNumberFromString, getExampleNumber } from 'libphonenumber-js';
|
59
61
|
import { trigger, state, style, transition, animate, animation, useAnimation } from '@angular/animations';
|
60
62
|
import { A, Z, ZERO, NINE, SPACE, HOME, END, ENTER, ESCAPE, UP_ARROW, DOWN_ARROW, PAGE_DOWN, PAGE_UP, RIGHT_ARROW, LEFT_ARROW, BACKSPACE } from '@angular/cdk/keycodes';
|
61
63
|
import { coerceCssPixelValue, coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
|
@@ -68,7 +70,6 @@ import { matDatepickerAnimations as matDatepickerAnimations$1 } from '@angular/m
|
|
68
70
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
69
71
|
import { DomSanitizer } from '@angular/platform-browser';
|
70
72
|
import { onlyNumbers, isValidIE, isValidCEP } from '@brazilian-utils/brazilian-utils';
|
71
|
-
import { parsePhoneNumberFromString, getExampleNumber } from 'libphonenumber-js';
|
72
73
|
|
73
74
|
var APP_MESSAGES = new InjectionToken('app.messages');
|
74
75
|
var DEFAULT_MESSAGES = {
|
@@ -565,10 +566,37 @@ var StringUtil = /** @class */ (function () {
|
|
565
566
|
StringUtil.truncateWithEllipses = function (text, max) {
|
566
567
|
return text.trim().substring(0, max - 1) + (text.trim().length > max) ? '...' : '';
|
567
568
|
};
|
569
|
+
/** Codifica a string em Base64 */
|
570
|
+
StringUtil.encodeBase64 = function (input) {
|
571
|
+
if (this.isEmpty(input)) {
|
572
|
+
return '';
|
573
|
+
}
|
574
|
+
var utf8Encoder = new TextEncoder();
|
575
|
+
var utf8Bytes = utf8Encoder.encode(input);
|
576
|
+
var binary = '';
|
577
|
+
utf8Bytes.forEach(function (byte) {
|
578
|
+
binary += String.fromCharCode(byte);
|
579
|
+
});
|
580
|
+
return btoa(binary);
|
581
|
+
};
|
582
|
+
/** Decodifica a string Base64 */
|
583
|
+
StringUtil.decodeBase64 = function (input) {
|
584
|
+
if (this.isEmpty(input)) {
|
585
|
+
return '';
|
586
|
+
}
|
587
|
+
var binary = atob(input);
|
588
|
+
var utf8Decoder = new TextDecoder();
|
589
|
+
var utf8Bytes = new Uint8Array(binary.length);
|
590
|
+
for (var i = 0; i < binary.length; i++) {
|
591
|
+
utf8Bytes[i] = binary.charCodeAt(i);
|
592
|
+
}
|
593
|
+
return utf8Decoder.decode(utf8Bytes);
|
594
|
+
};
|
568
595
|
StringUtil.EMPTY = '';
|
569
596
|
return StringUtil;
|
570
597
|
}());
|
571
598
|
|
599
|
+
var cloneDeep = rfdc_();
|
572
600
|
/** @dynamic */
|
573
601
|
var ObjectUtil = /** @class */ (function () {
|
574
602
|
function ObjectUtil() {
|
@@ -582,21 +610,15 @@ var ObjectUtil = /** @class */ (function () {
|
|
582
610
|
}
|
583
611
|
var id = null;
|
584
612
|
if (typeof value === 'object') {
|
585
|
-
id =
|
613
|
+
id = value['id'];
|
586
614
|
}
|
587
615
|
return !UUIDUtil.isValid(id);
|
588
616
|
};
|
589
|
-
ObjectUtil.isNotNil = function (value) {
|
590
|
-
return typeof value !== 'undefined' && value !== null;
|
591
|
-
};
|
592
|
-
ObjectUtil.isNil = function (value) {
|
593
|
-
return typeof value === 'undefined' || value === null;
|
594
|
-
};
|
595
617
|
ObjectUtil.clone = function (value) {
|
596
618
|
if (ObjectUtil.isNull(value)) {
|
597
619
|
return new Object();
|
598
620
|
}
|
599
|
-
return
|
621
|
+
return cloneDeep(value);
|
600
622
|
};
|
601
623
|
ObjectUtil.resolveFieldData = function (data, field) {
|
602
624
|
if (data && field) {
|
@@ -1148,10 +1170,171 @@ var InputFileComponent = /** @class */ (function (_super) {
|
|
1148
1170
|
return InputFileComponent;
|
1149
1171
|
}(AbstractComponent));
|
1150
1172
|
|
1173
|
+
/** @dynamic */
|
1174
|
+
var NumberUtil = /** @class */ (function () {
|
1175
|
+
function NumberUtil() {
|
1176
|
+
}
|
1177
|
+
NumberUtil.isPositive = function (value) {
|
1178
|
+
return !ObjectUtil.isNull(value) && value > 0;
|
1179
|
+
};
|
1180
|
+
NumberUtil.isNegative = function (value) {
|
1181
|
+
return !ObjectUtil.isNull(value) && value < 0;
|
1182
|
+
};
|
1183
|
+
NumberUtil.format = function (value, digitsInfo, type) {
|
1184
|
+
if (!ObjectUtil.isNull(value) && (!type || type === 'NUMBER')) {
|
1185
|
+
return formatNumber(value, 'pt', digitsInfo);
|
1186
|
+
}
|
1187
|
+
else if (!ObjectUtil.isNull(value) && type === 'PERCENT') {
|
1188
|
+
return formatPercent(value / 100, 'pt', digitsInfo);
|
1189
|
+
}
|
1190
|
+
return StringUtil.EMPTY;
|
1191
|
+
};
|
1192
|
+
NumberUtil.onlyNumbers = function (value) {
|
1193
|
+
return String(value).replace(/[^\d]/g, '');
|
1194
|
+
};
|
1195
|
+
NumberUtil.isNumber = function (value) {
|
1196
|
+
return value !== null && value !== undefined && !isNaN(value) && typeof value === 'number';
|
1197
|
+
};
|
1198
|
+
return NumberUtil;
|
1199
|
+
}());
|
1200
|
+
|
1201
|
+
/** @dynamic */
|
1202
|
+
var PhoneUtil = /** @class */ (function () {
|
1203
|
+
function PhoneUtil() {
|
1204
|
+
}
|
1205
|
+
PhoneUtil.removeCharacters = function (value) {
|
1206
|
+
if (StringUtil.isEmpty(value)) {
|
1207
|
+
return '';
|
1208
|
+
}
|
1209
|
+
return value.replace(/\D/g, '');
|
1210
|
+
};
|
1211
|
+
PhoneUtil.maskLib = function (phoneNumber, state, country) {
|
1212
|
+
if (country === void 0) { country = 'BR'; }
|
1213
|
+
var exampleNumber;
|
1214
|
+
if (!StringUtil.isEmpty(phoneNumber)) {
|
1215
|
+
var parsedNumber = parsePhoneNumberFromString(phoneNumber, country);
|
1216
|
+
if (parsedNumber) {
|
1217
|
+
exampleNumber = parsedNumber;
|
1218
|
+
}
|
1219
|
+
}
|
1220
|
+
else {
|
1221
|
+
exampleNumber = getExampleNumber(country, state);
|
1222
|
+
}
|
1223
|
+
if (exampleNumber) {
|
1224
|
+
var formattedNumber = exampleNumber.formatNational();
|
1225
|
+
return formattedNumber.replace(/\d/g, '0');
|
1226
|
+
}
|
1227
|
+
else {
|
1228
|
+
throw new Error('Estado não suportado ou código de estado inválido.');
|
1229
|
+
}
|
1230
|
+
};
|
1231
|
+
PhoneUtil.formatLib = function (phoneNumber, country) {
|
1232
|
+
if (country === void 0) { country = 'BR'; }
|
1233
|
+
try {
|
1234
|
+
var parsedNumber = parsePhoneNumberFromString(phoneNumber, country);
|
1235
|
+
if (parsedNumber) {
|
1236
|
+
return parsedNumber.formatNational();
|
1237
|
+
}
|
1238
|
+
else {
|
1239
|
+
throw new Error('Número de telefone inválido.');
|
1240
|
+
}
|
1241
|
+
}
|
1242
|
+
catch (error) {
|
1243
|
+
throw new Error('Erro ao formatar o número de telefone: ' + error.message);
|
1244
|
+
}
|
1245
|
+
};
|
1246
|
+
PhoneUtil.format = function (number, mask) {
|
1247
|
+
var numberNotFormatted = NumberUtil.onlyNumbers(number);
|
1248
|
+
var phoneFormatted = '';
|
1249
|
+
if ((numberNotFormatted.length < 8) ||
|
1250
|
+
(numberNotFormatted.length > 12) ||
|
1251
|
+
(!this.isPossible(numberNotFormatted) && !this.isValid(numberNotFormatted))) {
|
1252
|
+
return numberNotFormatted;
|
1253
|
+
}
|
1254
|
+
if (StringUtil.isEmpty(mask)) {
|
1255
|
+
mask = this.mask(numberNotFormatted);
|
1256
|
+
}
|
1257
|
+
for (var i = 0, j = 0; i < mask.length && j < numberNotFormatted.length; i++) {
|
1258
|
+
phoneFormatted += mask.charAt(i) === '0' ? numberNotFormatted.charAt(j++) : mask.charAt(i);
|
1259
|
+
}
|
1260
|
+
return phoneFormatted;
|
1261
|
+
};
|
1262
|
+
PhoneUtil.mask = function (phone) {
|
1263
|
+
var specialPrefixes = ['0900', '0800', '0700', '0600', '0500', '0400', '0300', '0200', '0100'];
|
1264
|
+
var phoneAux = this.removeCharacters(phone.replace(/\D/g, ''));
|
1265
|
+
if ((phoneAux.length < 8) ||
|
1266
|
+
(phoneAux.length > 12) ||
|
1267
|
+
(!this.isPossible(phoneAux) && !this.isValid(phoneAux))) {
|
1268
|
+
return '0*';
|
1269
|
+
}
|
1270
|
+
var existInArray = specialPrefixes.some(function (prefix) { return phoneAux.startsWith(prefix); });
|
1271
|
+
if (existInArray) {
|
1272
|
+
return '0000 000 0000'; // Para números especiais como 0800
|
1273
|
+
}
|
1274
|
+
switch (phoneAux.length) {
|
1275
|
+
case 8: return '0000-0000';
|
1276
|
+
case 9: return '0 0000-0000';
|
1277
|
+
case 10: return '(00) 0000-0000';
|
1278
|
+
case 11: return '(00) 0 0000-0000';
|
1279
|
+
case 12: return '(000) 0 0000-0000';
|
1280
|
+
default: return '0*';
|
1281
|
+
}
|
1282
|
+
};
|
1283
|
+
PhoneUtil.isPossible = function (phoneNumber, country) {
|
1284
|
+
if (country === void 0) { country = 'BR'; }
|
1285
|
+
try {
|
1286
|
+
var parsedNumber = parsePhoneNumberFromString(phoneNumber, country);
|
1287
|
+
return parsedNumber ? parsedNumber.isPossible() : false;
|
1288
|
+
}
|
1289
|
+
catch (error) {
|
1290
|
+
return false;
|
1291
|
+
}
|
1292
|
+
};
|
1293
|
+
PhoneUtil.isValid = function (phoneNumber, country) {
|
1294
|
+
if (country === void 0) { country = 'BR'; }
|
1295
|
+
try {
|
1296
|
+
var parsedNumber = parsePhoneNumberFromString(phoneNumber, country);
|
1297
|
+
return parsedNumber ? parsedNumber.isValid() : false;
|
1298
|
+
}
|
1299
|
+
catch (error) {
|
1300
|
+
return false;
|
1301
|
+
}
|
1302
|
+
};
|
1303
|
+
PhoneUtil.getType = function (phoneNumber, country) {
|
1304
|
+
if (country === void 0) { country = 'BR'; }
|
1305
|
+
try {
|
1306
|
+
var parsedNumber = parsePhoneNumberFromString(phoneNumber, country);
|
1307
|
+
return parsedNumber ? parsedNumber.getType() : null;
|
1308
|
+
}
|
1309
|
+
catch (error) {
|
1310
|
+
return null;
|
1311
|
+
}
|
1312
|
+
};
|
1313
|
+
PhoneUtil.isEqual = function (phoneNumber1, phoneNumber2, country) {
|
1314
|
+
if (country === void 0) { country = 'BR'; }
|
1315
|
+
try {
|
1316
|
+
var parsedNumber1 = parsePhoneNumberFromString(phoneNumber1, country);
|
1317
|
+
var parsedNumber2 = parsePhoneNumberFromString(phoneNumber2, country);
|
1318
|
+
if (parsedNumber1 && parsedNumber2) {
|
1319
|
+
return parsedNumber1.isEqual(parsedNumber2);
|
1320
|
+
}
|
1321
|
+
else {
|
1322
|
+
return false;
|
1323
|
+
}
|
1324
|
+
}
|
1325
|
+
catch (error) {
|
1326
|
+
return false;
|
1327
|
+
}
|
1328
|
+
};
|
1329
|
+
return PhoneUtil;
|
1330
|
+
}());
|
1331
|
+
|
1151
1332
|
var InputComponent = /** @class */ (function () {
|
1152
|
-
function InputComponent() {
|
1153
|
-
this.
|
1154
|
-
this.
|
1333
|
+
function InputComponent(elementRef, _changeDetectorRef) {
|
1334
|
+
this.elementRef = elementRef;
|
1335
|
+
this._changeDetectorRef = _changeDetectorRef;
|
1336
|
+
this._inputSubject$ = new BehaviorSubject('');
|
1337
|
+
this._maskPhone$ = new BehaviorSubject('');
|
1155
1338
|
this.tooltip = '';
|
1156
1339
|
this.styleClassFormField = '';
|
1157
1340
|
this.styleClassSuffix = '';
|
@@ -1174,16 +1357,21 @@ var InputComponent = /** @class */ (function () {
|
|
1174
1357
|
InputComponent_1 = InputComponent;
|
1175
1358
|
Object.defineProperty(InputComponent.prototype, "value", {
|
1176
1359
|
get: function () {
|
1177
|
-
return this.
|
1360
|
+
return this._value;
|
1178
1361
|
},
|
1179
|
-
set: function (
|
1362
|
+
set: function (value) {
|
1363
|
+
var valueAux = null;
|
1180
1364
|
if (this.lowerCase) {
|
1181
|
-
|
1365
|
+
valueAux = this.checkLowercase(this.checkSpaceDrop(value));
|
1182
1366
|
}
|
1183
1367
|
else {
|
1184
|
-
|
1368
|
+
valueAux = this.checkUppercase(this.checkSpaceDrop(value));
|
1185
1369
|
}
|
1186
|
-
this.
|
1370
|
+
this._value = valueAux;
|
1371
|
+
if (this.value !== value) {
|
1372
|
+
this._changeDetectorRef.detectChanges();
|
1373
|
+
}
|
1374
|
+
this.onChange(this._value);
|
1187
1375
|
this.onTouch();
|
1188
1376
|
},
|
1189
1377
|
enumerable: false,
|
@@ -1192,12 +1380,13 @@ var InputComponent = /** @class */ (function () {
|
|
1192
1380
|
InputComponent.prototype.ngOnInit = function () {
|
1193
1381
|
var _this = this;
|
1194
1382
|
if (this.phone) {
|
1195
|
-
this._inputSubject
|
1196
|
-
|
1383
|
+
this._inputSubject$.pipe(debounceTime(300)).subscribe(function (value) {
|
1384
|
+
if (!StringUtil.isEmpty(value)) {
|
1385
|
+
_this._maskPhone$.next(PhoneUtil.mask(value));
|
1386
|
+
}
|
1197
1387
|
});
|
1198
1388
|
}
|
1199
1389
|
};
|
1200
|
-
InputComponent.prototype.ngAfterViewInit = function () { };
|
1201
1390
|
InputComponent.prototype.registerOnChange = function (fn) {
|
1202
1391
|
this.onChange = fn;
|
1203
1392
|
};
|
@@ -1205,8 +1394,16 @@ var InputComponent = /** @class */ (function () {
|
|
1205
1394
|
this.onTouch = fn;
|
1206
1395
|
};
|
1207
1396
|
InputComponent.prototype.writeValue = function (value) {
|
1397
|
+
if (this.phone && !StringUtil.isEmpty(value)) {
|
1398
|
+
this._inputSubject$.next(value);
|
1399
|
+
this._changeDetectorRef.detectChanges();
|
1400
|
+
}
|
1208
1401
|
this.value = value;
|
1209
1402
|
};
|
1403
|
+
InputComponent.prototype.setDisabledState = function (isDisabled) {
|
1404
|
+
this.disabled = isDisabled;
|
1405
|
+
this._changeDetectorRef.detectChanges();
|
1406
|
+
};
|
1210
1407
|
InputComponent.prototype.checkSpaceDrop = function (value) {
|
1211
1408
|
if (this.spaceDrop && value) {
|
1212
1409
|
return value.replace(/\s/g, '');
|
@@ -1236,23 +1433,27 @@ var InputComponent = /** @class */ (function () {
|
|
1236
1433
|
this.onTouch();
|
1237
1434
|
}
|
1238
1435
|
};
|
1239
|
-
InputComponent.prototype.
|
1436
|
+
InputComponent.prototype.onInputPhoneKeydown = function (event) {
|
1240
1437
|
if (!this.phone) {
|
1241
1438
|
return;
|
1242
1439
|
}
|
1243
1440
|
var value = PhoneUtil.removeCharacters(event.target.value);
|
1244
1441
|
var key = event.key;
|
1245
|
-
if (/\d/.test(key) && value.length < 12) {
|
1246
|
-
this._maskPhone
|
1442
|
+
if (/\d/.test(key) && ((value.trim().length < 8) || (value.trim().length > 12))) {
|
1443
|
+
this._maskPhone$.next('0*');
|
1247
1444
|
}
|
1248
1445
|
};
|
1249
1446
|
InputComponent.prototype.onInputPhoneChange = function (value) {
|
1250
1447
|
if (!this.phone) {
|
1251
1448
|
return;
|
1252
1449
|
}
|
1253
|
-
this._inputSubject
|
1450
|
+
this._inputSubject$.next(value);
|
1254
1451
|
};
|
1255
1452
|
var InputComponent_1;
|
1453
|
+
InputComponent.ctorParameters = function () { return [
|
1454
|
+
{ type: ElementRef },
|
1455
|
+
{ type: ChangeDetectorRef }
|
1456
|
+
]; };
|
1256
1457
|
__decorate([
|
1257
1458
|
ViewChild('input', { static: false, read: ElementRef }),
|
1258
1459
|
__metadata("design:type", ElementRef)
|
@@ -1322,9 +1523,10 @@ var InputComponent = /** @class */ (function () {
|
|
1322
1523
|
__metadata("design:type", String)
|
1323
1524
|
], InputComponent.prototype, "appearance", void 0);
|
1324
1525
|
__decorate([
|
1325
|
-
Input(
|
1326
|
-
__metadata("design:type", Object)
|
1327
|
-
|
1526
|
+
Input(),
|
1527
|
+
__metadata("design:type", Object),
|
1528
|
+
__metadata("design:paramtypes", [Object])
|
1529
|
+
], InputComponent.prototype, "value", null);
|
1328
1530
|
__decorate([
|
1329
1531
|
Input(),
|
1330
1532
|
__metadata("design:type", String)
|
@@ -1368,7 +1570,7 @@ var InputComponent = /** @class */ (function () {
|
|
1368
1570
|
InputComponent = InputComponent_1 = __decorate([
|
1369
1571
|
Component({
|
1370
1572
|
selector: 'itss-input',
|
1371
|
-
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 <ng-container *ngIf=\"hidePasswordManager && (type === 'password')\">\n <input style=\"opacity: 0;position: absolute;\">\n <input type=\"password\"\n style=\"opacity: 0;position: absolute;\">\n </ng-container>\n\n <mat-form-field [appearance]=\"appearance\"\n [class]=\"styleClassFormField\">\n <input matInput\n #input\n *ngIf=\"mask\"\n autocomplete=\"off\"\n upperCase\n lowerCase\n spaceDrop\n [enabledUpperCase]=\"upperCase\"\n [enabledLowerCase]=\"lowerCase\"\n [spaceDrop]=\"spaceDrop\"\n [name]=\"name\"\n [readonly]=\"readonly\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"value\"\n [type]=\"type\"\n [min]=\"min\"\n [max]=\"max\"\n [maxlength]=\"maxlength\"\n [mask]=\"phone ? (_maskPhone | async) : mask\"\n [dropSpecialCharacters]=\"dropSpecialCharacters\"\n [patterns]=\"patterns\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\"\n (
|
1573
|
+
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 <ng-container *ngIf=\"hidePasswordManager && (type === 'password')\">\n <input style=\"opacity: 0;position: absolute;\">\n <input type=\"password\"\n style=\"opacity: 0;position: absolute;\">\n </ng-container>\n\n <mat-form-field [appearance]=\"appearance\"\n [class]=\"styleClassFormField\">\n <input matInput\n #input\n *ngIf=\"mask || phone\"\n autocomplete=\"off\"\n upperCase\n lowerCase\n spaceDrop\n [enabledUpperCase]=\"upperCase\"\n [enabledLowerCase]=\"lowerCase\"\n [spaceDrop]=\"spaceDrop\"\n [name]=\"name\"\n [readonly]=\"readonly\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"value\"\n [type]=\"type\"\n [min]=\"min\"\n [max]=\"max\"\n [maxlength]=\"maxlength\"\n [mask]=\"phone ? (_maskPhone$ | async) : mask\"\n [dropSpecialCharacters]=\"dropSpecialCharacters\"\n [patterns]=\"patterns\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\"\n (keydown)=\"onInputPhoneKeydown($event)\"\n (ngModelChange)=\"onInputPhoneChange($event)\">\n\n <input matInput\n #input\n *ngIf=\"!mask && !phone\"\n [name]=\"name\"\n [readonly]=\"readonly\"\n [placeholder]=\"placeholder\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"value\"\n autocomplete=\"off\"\n upperCase\n [enabledUpperCase]=\"upperCase\"\n [type]=\"type\"\n [min]=\"min\"\n [max]=\"max\"\n [maxlength]=\"maxlength\"\n [mask]=\"''\"\n spaceDrop\n [spaceDrop]=\"spaceDrop\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur($event)\">\n\n <mat-spinner matPrefix\n *ngIf=\"loading\"\n mode=\"indeterminate\"\n diameter=\"17\">\n </mat-spinner>\n\n <div *ngIf=\"suffixRef\"\n matSuffix\n [class]=\"styleClassSuffix\">\n <ng-template [ngTemplateOutlet]=\"suffixRef\"> </ng-template>\n </div>\n </mat-form-field>\n</div>",
|
1372
1574
|
providers: [
|
1373
1575
|
{
|
1374
1576
|
provide: NG_VALUE_ACCESSOR,
|
@@ -1378,7 +1580,8 @@ var InputComponent = /** @class */ (function () {
|
|
1378
1580
|
],
|
1379
1581
|
styles: ["mat-label span{color:#d14014!important}"]
|
1380
1582
|
}),
|
1381
|
-
__metadata("design:paramtypes", [
|
1583
|
+
__metadata("design:paramtypes", [ElementRef,
|
1584
|
+
ChangeDetectorRef])
|
1382
1585
|
], InputComponent);
|
1383
1586
|
return InputComponent;
|
1384
1587
|
}());
|
@@ -2778,198 +2981,8 @@ var RadioGroupEnumComponent = /** @class */ (function () {
|
|
2778
2981
|
return RadioGroupEnumComponent;
|
2779
2982
|
}());
|
2780
2983
|
|
2781
|
-
var
|
2782
|
-
function
|
2783
|
-
this.cd = cd;
|
2784
|
-
this.tabindex = 0;
|
2785
|
-
this.onOptionClick = new EventEmitter();
|
2786
|
-
this.onChange = new EventEmitter();
|
2787
|
-
this.onModelChange = function () { };
|
2788
|
-
this.onModelTouched = function () { };
|
2789
|
-
}
|
2790
|
-
SelectButtonComponent_1 = SelectButtonComponent;
|
2791
|
-
SelectButtonComponent.prototype.ngOnInit = function () { };
|
2792
|
-
SelectButtonComponent.prototype.getPropertyLabel = function (option) {
|
2793
|
-
return this.property ? ObjectUtil.resolveFieldData(option, this.property) : (option.label !== undefined ? option.label : option);
|
2794
|
-
};
|
2795
|
-
SelectButtonComponent.prototype.getOptionValue = function (option) {
|
2796
|
-
return this.optionValue ? ObjectUtil.resolveFieldData(option, this.optionValue) : (this.property || option.value === undefined ? option : option.value);
|
2797
|
-
};
|
2798
|
-
SelectButtonComponent.prototype.isOptionDisabled = function (option) {
|
2799
|
-
return this.optionDisabled ? ObjectUtil.resolveFieldData(option, this.optionDisabled) : (option.disabled !== undefined ? option.disabled : false);
|
2800
|
-
};
|
2801
|
-
SelectButtonComponent.prototype.writeValue = function (value) {
|
2802
|
-
this.value = value;
|
2803
|
-
this.cd.markForCheck();
|
2804
|
-
};
|
2805
|
-
SelectButtonComponent.prototype.registerOnChange = function (fn) {
|
2806
|
-
this.onModelChange = fn;
|
2807
|
-
};
|
2808
|
-
SelectButtonComponent.prototype.registerOnTouched = function (fn) {
|
2809
|
-
this.onModelTouched = fn;
|
2810
|
-
};
|
2811
|
-
SelectButtonComponent.prototype.setDisabledState = function (val) {
|
2812
|
-
this.disabled = val;
|
2813
|
-
this.cd.markForCheck();
|
2814
|
-
};
|
2815
|
-
SelectButtonComponent.prototype.onItemClick = function (event, option, index) {
|
2816
|
-
if (this.disabled || this.isOptionDisabled(option)) {
|
2817
|
-
return;
|
2818
|
-
}
|
2819
|
-
if (this.multiple) {
|
2820
|
-
if (this.isSelected(option)) {
|
2821
|
-
this.removeOption(option);
|
2822
|
-
}
|
2823
|
-
else {
|
2824
|
-
this.value = __spread((this.value || []), [this.getOptionValue(option)]);
|
2825
|
-
}
|
2826
|
-
this.onModelChange(this.value);
|
2827
|
-
this.onChange.emit({
|
2828
|
-
originalEvent: event,
|
2829
|
-
value: this.value
|
2830
|
-
});
|
2831
|
-
}
|
2832
|
-
else {
|
2833
|
-
var value = this.getOptionValue(option);
|
2834
|
-
if (this.value !== value) {
|
2835
|
-
this.value = this.getOptionValue(option);
|
2836
|
-
this.onModelChange(this.value);
|
2837
|
-
this.onChange.emit({
|
2838
|
-
originalEvent: event,
|
2839
|
-
value: this.value
|
2840
|
-
});
|
2841
|
-
}
|
2842
|
-
}
|
2843
|
-
this.onOptionClick.emit({
|
2844
|
-
originalEvent: event,
|
2845
|
-
option: option,
|
2846
|
-
index: index
|
2847
|
-
});
|
2848
|
-
};
|
2849
|
-
SelectButtonComponent.prototype.onBlur = function () {
|
2850
|
-
this.onModelTouched();
|
2851
|
-
};
|
2852
|
-
SelectButtonComponent.prototype.removeOption = function (option) {
|
2853
|
-
var _this = this;
|
2854
|
-
this.value = this.value.filter(function (val) { return !ObjectUtil.equals(val, _this.getOptionValue(option), _this.dataKey); });
|
2855
|
-
};
|
2856
|
-
SelectButtonComponent.prototype.isSelected = function (option) {
|
2857
|
-
var e_1, _a;
|
2858
|
-
var selected = false;
|
2859
|
-
var optionValue = this.getOptionValue(option);
|
2860
|
-
if (this.multiple) {
|
2861
|
-
if (this.value) {
|
2862
|
-
try {
|
2863
|
-
for (var _b = __values(this.value), _c = _b.next(); !_c.done; _c = _b.next()) {
|
2864
|
-
var val = _c.value;
|
2865
|
-
if (ObjectUtil.equals(val, optionValue, this.dataKey)) {
|
2866
|
-
selected = true;
|
2867
|
-
break;
|
2868
|
-
}
|
2869
|
-
}
|
2870
|
-
}
|
2871
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
2872
|
-
finally {
|
2873
|
-
try {
|
2874
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
2875
|
-
}
|
2876
|
-
finally { if (e_1) throw e_1.error; }
|
2877
|
-
}
|
2878
|
-
}
|
2879
|
-
}
|
2880
|
-
else {
|
2881
|
-
selected = ObjectUtil.equals(this.getOptionValue(option), this.value, this.dataKey);
|
2882
|
-
}
|
2883
|
-
return selected;
|
2884
|
-
};
|
2885
|
-
var SelectButtonComponent_1;
|
2886
|
-
SelectButtonComponent.ctorParameters = function () { return [
|
2887
|
-
{ type: ChangeDetectorRef }
|
2888
|
-
]; };
|
2889
|
-
__decorate([
|
2890
|
-
Input(),
|
2891
|
-
__metadata("design:type", Array)
|
2892
|
-
], SelectButtonComponent.prototype, "options", void 0);
|
2893
|
-
__decorate([
|
2894
|
-
Input(),
|
2895
|
-
__metadata("design:type", String)
|
2896
|
-
], SelectButtonComponent.prototype, "property", void 0);
|
2897
|
-
__decorate([
|
2898
|
-
Input(),
|
2899
|
-
__metadata("design:type", String)
|
2900
|
-
], SelectButtonComponent.prototype, "optionValue", void 0);
|
2901
|
-
__decorate([
|
2902
|
-
Input(),
|
2903
|
-
__metadata("design:type", String)
|
2904
|
-
], SelectButtonComponent.prototype, "optionDisabled", void 0);
|
2905
|
-
__decorate([
|
2906
|
-
Input(),
|
2907
|
-
__metadata("design:type", Number)
|
2908
|
-
], SelectButtonComponent.prototype, "tabindex", void 0);
|
2909
|
-
__decorate([
|
2910
|
-
Input(),
|
2911
|
-
__metadata("design:type", Boolean)
|
2912
|
-
], SelectButtonComponent.prototype, "multiple", void 0);
|
2913
|
-
__decorate([
|
2914
|
-
Input(),
|
2915
|
-
__metadata("design:type", String)
|
2916
|
-
], SelectButtonComponent.prototype, "label", void 0);
|
2917
|
-
__decorate([
|
2918
|
-
Input(),
|
2919
|
-
__metadata("design:type", Boolean)
|
2920
|
-
], SelectButtonComponent.prototype, "required", void 0);
|
2921
|
-
__decorate([
|
2922
|
-
Input(),
|
2923
|
-
__metadata("design:type", String)
|
2924
|
-
], SelectButtonComponent.prototype, "styleClass", void 0);
|
2925
|
-
__decorate([
|
2926
|
-
Input(),
|
2927
|
-
__metadata("design:type", String)
|
2928
|
-
], SelectButtonComponent.prototype, "ariaLabelledBy", void 0);
|
2929
|
-
__decorate([
|
2930
|
-
Input(),
|
2931
|
-
__metadata("design:type", Boolean)
|
2932
|
-
], SelectButtonComponent.prototype, "disabled", void 0);
|
2933
|
-
__decorate([
|
2934
|
-
Input(),
|
2935
|
-
__metadata("design:type", String)
|
2936
|
-
], SelectButtonComponent.prototype, "dataKey", void 0);
|
2937
|
-
__decorate([
|
2938
|
-
Output(),
|
2939
|
-
__metadata("design:type", EventEmitter)
|
2940
|
-
], SelectButtonComponent.prototype, "onOptionClick", void 0);
|
2941
|
-
__decorate([
|
2942
|
-
Output(),
|
2943
|
-
__metadata("design:type", EventEmitter)
|
2944
|
-
], SelectButtonComponent.prototype, "onChange", void 0);
|
2945
|
-
__decorate([
|
2946
|
-
ContentChild(TemplateRef, { static: false }),
|
2947
|
-
__metadata("design:type", Object)
|
2948
|
-
], SelectButtonComponent.prototype, "itemTemplate", void 0);
|
2949
|
-
SelectButtonComponent = SelectButtonComponent_1 = __decorate([
|
2950
|
-
Component({
|
2951
|
-
selector: 'itss-select-button',
|
2952
|
-
template: "<div fxLayout=\"column\">\n <mat-label *ngIf=\"label\"\n class=\"label\">\n {{ label }}\n <span *ngIf=\"required && label\">*</span>\n </mat-label>\n\n <div [ngClass]=\"'selectbutton component'\"\n [class]=\"styleClass\"\n role=\"group\">\n <div *ngFor=\"let option of options; let i = index\"\n #btn\n class=\"button component\"\n [class]=\"option.styleClass\"\n role=\"button\"\n [attr.aria-pressed]=\"isSelected(option)\"\n [ngClass]=\"{'highlight': isSelected(option),\n 'disabled': disabled || isOptionDisabled(option),\n 'button-icon-only': (option.icon && !getPropertyLabel(option))}\"\n (click)=\"onItemClick($event,option,i)\"\n (keydown.enter)=\"onItemClick($event,option,i)\"\n [attr.title]=\"option.title\"\n [attr.aria-label]=\"option.label\"\n (blur)=\"onBlur()\"\n [attr.tabindex]=\"disabled ? null : tabindex\"\n [attr.aria-labelledby]=\"this.getPropertyLabel(option)\"\n [attr.id]=\"i\">\n\n <ng-container *ngIf=\"!itemTemplate else customcontent\">\n <span [ngClass]=\"'button-icon button-icon-left'\"\n [class]=\"option.icon\"\n *ngIf=\"option.icon\">\n </span>\n <span class=\"button-label\">\n {{ getPropertyLabel(option) }}\n </span>\n </ng-container>\n\n <ng-template #customcontent>\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: {$implicit: option, index: i}\"></ng-container>\n </ng-template>\n\n </div>\n </div>\n</div>",
|
2953
|
-
providers: [
|
2954
|
-
{
|
2955
|
-
provide: NG_VALUE_ACCESSOR,
|
2956
|
-
useExisting: forwardRef(function () { return SelectButtonComponent_1; }),
|
2957
|
-
multi: true
|
2958
|
-
}
|
2959
|
-
],
|
2960
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
2961
|
-
host: {
|
2962
|
-
'class': 'itss-element'
|
2963
|
-
},
|
2964
|
-
styles: [".label{color:#696969;font-size:1rem;margin-bottom:7px!important}.label>span{color:#f44336}.component{font-weight:400;display:flex;width:100%}.component:disabled,.disabled{cursor:not-allowed!important;background:#e0e0e0!important;border-color:#e0e0e0!important;color:#00000042!important}.selectbutton .button{background:#fff;border:1px solid #e1e5e4;color:#696969;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;padding:1rem;align-items:center;display:flex;justify-content:center;min-width:5rem;cursor:pointer}.selectbutton .button:first-of-type{border-top-left-radius:5px;border-bottom-left-radius:5px}.selectbutton .button:last-of-type{border-top-right-radius:5px;border-bottom-right-radius:5px}.selectbutton .button .button-icon-left,.selectbutton .button .button-icon-right{color:#696969}.selectbutton .button:not(.disabled):not(.highlight):hover{background:#f7f7f7;border-color:#e1e5e4;color:#696969}.selectbutton .button:not(.disabled):not(.highlight):hover .button-icon-left,.selectbutton .button:not(.disabled):not(.highlight):hover .button-icon-right{color:#696969}.selectbutton .button.highlight{background:#f3465c;border-color:#f3465c;color:#fff;cursor:default}.selectbutton .button.highlight .button-icon-left,.selectbutton .button.highlight .button-icon-right{color:#fff}.selectbutton .button.highlight:hover{background:#e6364e;border-color:#e6364e;color:#fff}.selectbutton .button.highlight:hover .button-icon-left,.selectbutton .button.highlight:hover .button-icon-right{color:#fff}itss-select-button.ng-dirty.ng-invalid>.selectbutton>.button{border-color:#f44336}.button.button-icon-only{width:3rem;padding:.75rem 0}.button.button-icon-only .button-icon-left,.button.button-icon-only .button-icon-right{margin:0}.button.button-icon-only.button-rounded{border-radius:50%;height:3rem}.button-label{font-weight:700}"]
|
2965
|
-
}),
|
2966
|
-
__metadata("design:paramtypes", [ChangeDetectorRef])
|
2967
|
-
], SelectButtonComponent);
|
2968
|
-
return SelectButtonComponent;
|
2969
|
-
}());
|
2970
|
-
|
2971
|
-
var SelectEntityPagedComponent = /** @class */ (function () {
|
2972
|
-
function SelectEntityPagedComponent(_changeDetectorRef) {
|
2984
|
+
var SelectEntityPagedComponent = /** @class */ (function () {
|
2985
|
+
function SelectEntityPagedComponent(_changeDetectorRef) {
|
2973
2986
|
var _this = this;
|
2974
2987
|
this._changeDetectorRef = _changeDetectorRef;
|
2975
2988
|
this.valueSearchCtrl = new FormControl('');
|
@@ -4162,7 +4175,7 @@ var SelectSearchComponent = /** @class */ (function () {
|
|
4162
4175
|
SelectSearchComponent = SelectSearchComponent_1 = __decorate([
|
4163
4176
|
Component({
|
4164
4177
|
selector: 'itss-input-search',
|
4165
|
-
template: "<!-- Espa\u00E7o reservado para ajustar o deslocamento vertical dos elementos mat-option -->\n<input matInput\n class=\"mat-select-search-input mat-select-search-hidden\" />\n\n<!-- Note: o mat-datepicker-content mat-tab-header \u00E9 necess\u00E1rio para herdar as cores do tema do material, consulte PR n\u00BA 22 -->\n<div #innerSelectSearch\n class=\"mat-select-search-inner mat-typography mat-datepicker-content mat-tab-header\"\n [ngClass]=\"{'mat-select-search-inner-multiple': matSelect.multiple, 'mat-select-search-inner-toggle-all': _isToggleAllCheckboxVisible() }\">\n\n <mat-checkbox *ngIf=\"_isToggleAllCheckboxVisible()\"\n class=\"mat-select-search-toggle-all-checkbox\"\n color=\"primary\"\n [color]=\"matFormField?.color\"\n [disabled]=\"searching\"\n [matTooltip]=\"toggleAllCheckboxTooltipMessage\"\n matTooltipClass=\"ngx-mat-select-search-toggle-all-tooltip\"\n [matTooltipPosition]=\"toggleAllCheckboxTooltipPosition\"\n [(ngModel)]=\"toggleAllCheckboxChecked\"\n [(indeterminate)]=\"toggleAllCheckboxIndeterminate\">\n </mat-checkbox>\n\n <input class=\"mat-select-search-input mat-input-element\"\n autocomplete=\"off\"\n [type]=\"type\"\n [formControl]=\"_formControl\"\n #searchSelectInput\n (keydown)=\"_handleKeydown($event)\"\n (keyup)=\"_handleKeyup($event)\"\n (blur)=\"onBlur()\"\n [placeholder]=\"placeholderLabel\"\n [attr.aria-label]=\"ariaLabel\">\n\n <mat-spinner *ngIf=\"searching\"\n class=\"mat-select-search-spinner\"\n diameter=\"16\">\n </mat-spinner>\n\n <button *ngIf=\"!hideClearSearchButton && value && !searching\"\n mat-icon-button\n aria-label=\"Clear\"\n (click)=\"_reset(true)\"\n class=\"mat-select-search-clear\">\n <ng-content *ngIf=\"clearIcon; else defaultIcon\"\n select=\"[itssSelectSearchClear]\">\n </ng-content>\n\n <ng-template #defaultIcon>\n <mat-icon [svgIcon]=\"closeSvgIcon\">\n {{ !closeSvgIcon ? closeIcon : null }}\n </mat-icon>\n </ng-template>\n </button>\n\n <ng-content select=\".mat-select-search-custom-header-content\"> </ng-content>\n\n <mat-divider> </mat-divider>\n</div>\n\n<div *ngIf=\"(_showNoEntriesFound$ | async) && !searching\"\n class=\"mat-select-search-no-entries-found\">\n <ng-content *ngIf=\"noEntriesFound; else defaultNoEntriesFound\"\n select=\"[itssSelectNoEntriesFound]\">\n </ng-content>\n\n <ng-template #defaultNoEntriesFound>\n {{ noEntriesFoundLabel }}\n </ng-template>\n</div
|
4178
|
+
template: "<!-- Espa\u00E7o reservado para ajustar o deslocamento vertical dos elementos mat-option -->\n<input matInput\n class=\"mat-select-search-input mat-select-search-hidden\" />\n\n<!-- Note: o mat-datepicker-content mat-tab-header \u00E9 necess\u00E1rio para herdar as cores do tema do material, consulte PR n\u00BA 22 -->\n<div #innerSelectSearch\n class=\"mat-select-search-inner mat-typography mat-datepicker-content mat-tab-header\"\n [ngClass]=\"{'mat-select-search-inner-multiple': matSelect.multiple, 'mat-select-search-inner-toggle-all': _isToggleAllCheckboxVisible() }\">\n\n <mat-checkbox *ngIf=\"_isToggleAllCheckboxVisible()\"\n class=\"mat-select-search-toggle-all-checkbox\"\n color=\"primary\"\n [color]=\"matFormField?.color\"\n [disabled]=\"searching\"\n [matTooltip]=\"toggleAllCheckboxTooltipMessage\"\n matTooltipClass=\"ngx-mat-select-search-toggle-all-tooltip\"\n [matTooltipPosition]=\"toggleAllCheckboxTooltipPosition\"\n [(ngModel)]=\"toggleAllCheckboxChecked\"\n [(indeterminate)]=\"toggleAllCheckboxIndeterminate\">\n </mat-checkbox>\n\n <input class=\"mat-select-search-input mat-input-element\"\n autocomplete=\"off\"\n [type]=\"type\"\n [formControl]=\"_formControl\"\n #searchSelectInput\n (keydown)=\"_handleKeydown($event)\"\n (keyup)=\"_handleKeyup($event)\"\n (blur)=\"onBlur()\"\n [placeholder]=\"placeholderLabel\"\n [attr.aria-label]=\"ariaLabel\"\n aria-hidden=\"false\">\n\n <mat-spinner *ngIf=\"searching\"\n class=\"mat-select-search-spinner\"\n diameter=\"16\">\n </mat-spinner>\n\n <button *ngIf=\"!hideClearSearchButton && value && !searching\"\n mat-icon-button\n aria-label=\"Clear\"\n (click)=\"_reset(true)\"\n class=\"mat-select-search-clear\">\n <ng-content *ngIf=\"clearIcon; else defaultIcon\"\n select=\"[itssSelectSearchClear]\">\n </ng-content>\n\n <ng-template #defaultIcon>\n <mat-icon [svgIcon]=\"closeSvgIcon\">\n {{ !closeSvgIcon ? closeIcon : null }}\n </mat-icon>\n </ng-template>\n </button>\n\n <ng-content select=\".mat-select-search-custom-header-content\"> </ng-content>\n\n <mat-divider> </mat-divider>\n</div>\n\n<div *ngIf=\"(_showNoEntriesFound$ | async) && !searching\"\n class=\"mat-select-search-no-entries-found\">\n <ng-content *ngIf=\"noEntriesFound; else defaultNoEntriesFound\"\n select=\"[itssSelectNoEntriesFound]\">\n </ng-content>\n\n <ng-template #defaultNoEntriesFound>\n {{ noEntriesFoundLabel }}\n </ng-template>\n</div>",
|
4166
4179
|
providers: [
|
4167
4180
|
{
|
4168
4181
|
provide: NG_VALUE_ACCESSOR,
|
@@ -4186,6 +4199,7 @@ var SelectSearchComponent = /** @class */ (function () {
|
|
4186
4199
|
return SelectSearchComponent;
|
4187
4200
|
}());
|
4188
4201
|
|
4202
|
+
var cloneDeep$1 = rfdc_();
|
4189
4203
|
/** @dynamic */
|
4190
4204
|
var ArrayUtil = /** @class */ (function () {
|
4191
4205
|
function ArrayUtil() {
|
@@ -4197,7 +4211,7 @@ var ArrayUtil = /** @class */ (function () {
|
|
4197
4211
|
if (ObjectUtil.isNull(value)) {
|
4198
4212
|
return new Array();
|
4199
4213
|
}
|
4200
|
-
return
|
4214
|
+
return cloneDeep$1(value);
|
4201
4215
|
};
|
4202
4216
|
/**
|
4203
4217
|
* Função para realizar ordenação de Array de objetos
|
@@ -4879,208 +4893,6 @@ var StepperComponent = /** @class */ (function (_super) {
|
|
4879
4893
|
return StepperComponent;
|
4880
4894
|
}(CdkStepper));
|
4881
4895
|
|
4882
|
-
var TabComponent = /** @class */ (function () {
|
4883
|
-
function TabComponent() {
|
4884
|
-
this.active = false;
|
4885
|
-
this.closeable = false;
|
4886
|
-
this.disabled = false;
|
4887
|
-
this.selectionChange = new EventEmitter();
|
4888
|
-
}
|
4889
|
-
TabComponent.prototype.ngOnInit = function () {
|
4890
|
-
};
|
4891
|
-
__decorate([
|
4892
|
-
Input(),
|
4893
|
-
__metadata("design:type", Number)
|
4894
|
-
], TabComponent.prototype, "index", void 0);
|
4895
|
-
__decorate([
|
4896
|
-
Input(),
|
4897
|
-
__metadata("design:type", String)
|
4898
|
-
], TabComponent.prototype, "label", void 0);
|
4899
|
-
__decorate([
|
4900
|
-
Input(),
|
4901
|
-
__metadata("design:type", Object)
|
4902
|
-
], TabComponent.prototype, "active", void 0);
|
4903
|
-
__decorate([
|
4904
|
-
Input(),
|
4905
|
-
__metadata("design:type", TemplateRef)
|
4906
|
-
], TabComponent.prototype, "template", void 0);
|
4907
|
-
__decorate([
|
4908
|
-
Input(),
|
4909
|
-
__metadata("design:type", Object)
|
4910
|
-
], TabComponent.prototype, "closeable", void 0);
|
4911
|
-
__decorate([
|
4912
|
-
Input(),
|
4913
|
-
__metadata("design:type", Object)
|
4914
|
-
], TabComponent.prototype, "disabled", void 0);
|
4915
|
-
__decorate([
|
4916
|
-
Input(),
|
4917
|
-
__metadata("design:type", Object)
|
4918
|
-
], TabComponent.prototype, "data", void 0);
|
4919
|
-
__decorate([
|
4920
|
-
Input(),
|
4921
|
-
__metadata("design:type", String)
|
4922
|
-
], TabComponent.prototype, "icon", void 0);
|
4923
|
-
__decorate([
|
4924
|
-
Output(),
|
4925
|
-
__metadata("design:type", Object)
|
4926
|
-
], TabComponent.prototype, "selectionChange", void 0);
|
4927
|
-
TabComponent = __decorate([
|
4928
|
-
Component({
|
4929
|
-
selector: 'itss-tab',
|
4930
|
-
template: "<div *ngIf=\"active\">\n <ng-content></ng-content>\n <ng-container *ngIf=\"template\"\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{$implicit: data}\">\n </ng-container>\n</div>\n",
|
4931
|
-
styles: [""]
|
4932
|
-
})
|
4933
|
-
], TabComponent);
|
4934
|
-
return TabComponent;
|
4935
|
-
}());
|
4936
|
-
|
4937
|
-
var DynamicTabDirective = /** @class */ (function () {
|
4938
|
-
function DynamicTabDirective(viewContainer) {
|
4939
|
-
this.viewContainer = viewContainer;
|
4940
|
-
}
|
4941
|
-
DynamicTabDirective.ctorParameters = function () { return [
|
4942
|
-
{ type: ViewContainerRef }
|
4943
|
-
]; };
|
4944
|
-
DynamicTabDirective = __decorate([
|
4945
|
-
Directive({
|
4946
|
-
selector: '[dynamicTab]'
|
4947
|
-
}),
|
4948
|
-
__metadata("design:paramtypes", [ViewContainerRef])
|
4949
|
-
], DynamicTabDirective);
|
4950
|
-
return DynamicTabDirective;
|
4951
|
-
}());
|
4952
|
-
|
4953
|
-
var TabDTO = /** @class */ (function (_super) {
|
4954
|
-
__extends(TabDTO, _super);
|
4955
|
-
function TabDTO() {
|
4956
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
4957
|
-
_this.active = false;
|
4958
|
-
_this.closeable = false;
|
4959
|
-
_this.disabled = false;
|
4960
|
-
return _this;
|
4961
|
-
}
|
4962
|
-
return TabDTO;
|
4963
|
-
}(AbstractDTO));
|
4964
|
-
|
4965
|
-
var TabGroupComponent = /** @class */ (function () {
|
4966
|
-
function TabGroupComponent(_componentFactoryResolver) {
|
4967
|
-
this._componentFactoryResolver = _componentFactoryResolver;
|
4968
|
-
this.dynamicTabs = [];
|
4969
|
-
}
|
4970
|
-
TabGroupComponent.prototype.ngOnInit = function () {
|
4971
|
-
};
|
4972
|
-
TabGroupComponent.prototype.ngAfterContentInit = function () {
|
4973
|
-
var activeTabs = this.tabs.filter(function (tab) { return tab.active; });
|
4974
|
-
if (activeTabs.length === 0 && this.tabs.length > 0) {
|
4975
|
-
this.selectTab(this.tabs.first);
|
4976
|
-
}
|
4977
|
-
};
|
4978
|
-
TabGroupComponent.prototype.openTab = function (label, template, data, closeable, disabled, action) {
|
4979
|
-
if (closeable === void 0) { closeable = false; }
|
4980
|
-
if (disabled === void 0) { disabled = false; }
|
4981
|
-
var tab = new TabDTO();
|
4982
|
-
tab.label = label;
|
4983
|
-
tab.template = template;
|
4984
|
-
tab.data = data;
|
4985
|
-
tab.closeable = closeable;
|
4986
|
-
tab.disabled = disabled;
|
4987
|
-
tab.action = action;
|
4988
|
-
this.openTabs(Array(tab));
|
4989
|
-
};
|
4990
|
-
TabGroupComponent.prototype.openTabs = function (tabs) {
|
4991
|
-
var _a;
|
4992
|
-
var _this = this;
|
4993
|
-
var tabsComponent = tabs.map(function (tab) { return _this.getTabComponent(tab.label, tab.template, tab.data, tab.closeable, tab.disabled, tab.action); });
|
4994
|
-
(_a = this.dynamicTabs).push.apply(_a, __spread(tabsComponent));
|
4995
|
-
this.selectTab(this.dynamicTabs[0]);
|
4996
|
-
};
|
4997
|
-
TabGroupComponent.prototype.getTabComponent = function (label, template, data, closeable, disabled, action) {
|
4998
|
-
if (closeable === void 0) { closeable = false; }
|
4999
|
-
if (disabled === void 0) { disabled = false; }
|
5000
|
-
var componentFactory = this._componentFactoryResolver.resolveComponentFactory(TabComponent);
|
5001
|
-
var componentRef = this.dynamicTabPlaceholder.viewContainer.createComponent(componentFactory);
|
5002
|
-
var instance = componentRef.instance;
|
5003
|
-
instance.label = label;
|
5004
|
-
instance.template = template;
|
5005
|
-
instance.data = data;
|
5006
|
-
instance.closeable = closeable;
|
5007
|
-
instance.disabled = disabled;
|
5008
|
-
instance.action = action;
|
5009
|
-
return componentRef.instance;
|
5010
|
-
};
|
5011
|
-
TabGroupComponent.prototype.selectTab = function (tab) {
|
5012
|
-
this.tabs.toArray().forEach(function (t) { return (t.active = false); });
|
5013
|
-
this.dynamicTabs.forEach(function (t) { return (t.active = false); });
|
5014
|
-
tab.active = true;
|
5015
|
-
tab.selectionChange.emit();
|
5016
|
-
if (tab.action) {
|
5017
|
-
tab.action(tab.data);
|
5018
|
-
}
|
5019
|
-
};
|
5020
|
-
TabGroupComponent.prototype.closeTab = function (tab) {
|
5021
|
-
var index = this.dynamicTabs.indexOf(tab);
|
5022
|
-
this.dynamicTabs.splice(index, 1);
|
5023
|
-
var viewContainerRef = this.dynamicTabPlaceholder.viewContainer;
|
5024
|
-
viewContainerRef.remove(index);
|
5025
|
-
if (this.tabs.length > 0) {
|
5026
|
-
this.selectTab(this.tabs.first);
|
5027
|
-
}
|
5028
|
-
};
|
5029
|
-
TabGroupComponent.prototype.closeActiveTab = function () {
|
5030
|
-
var activeTabs = this.dynamicTabs.filter(function (tab) { return tab.active; });
|
5031
|
-
if (activeTabs.length > 0) {
|
5032
|
-
this.closeTab(activeTabs[0]);
|
5033
|
-
}
|
5034
|
-
};
|
5035
|
-
TabGroupComponent.prototype.closeAllTabs = function () {
|
5036
|
-
var _this = this;
|
5037
|
-
var tabs = Object.assign([], this.dynamicTabs);
|
5038
|
-
if (tabs.length > 0) {
|
5039
|
-
tabs.forEach(function (tab) { return _this.closeTab(tab); });
|
5040
|
-
}
|
5041
|
-
};
|
5042
|
-
TabGroupComponent.prototype.nextTab = function () {
|
5043
|
-
var currentTab = this.tabs.toArray().find(function (tab) { return tab.active; });
|
5044
|
-
var nextTab = this.tabs.toArray()[this.tabs.toArray().indexOf(currentTab) + 1];
|
5045
|
-
if (nextTab != null) {
|
5046
|
-
this.tabs.toArray().forEach(function (t) { return (t.active = false); });
|
5047
|
-
this.dynamicTabs.forEach(function (t) { return (t.active = false); });
|
5048
|
-
nextTab.active = true;
|
5049
|
-
nextTab.selectionChange.emit();
|
5050
|
-
}
|
5051
|
-
};
|
5052
|
-
TabGroupComponent.prototype.previousTab = function () {
|
5053
|
-
var currentTab = this.tabs.toArray().find(function (tab) { return tab.active; });
|
5054
|
-
var previousTab = this.tabs.toArray()[this.tabs.toArray().indexOf(currentTab) - 1];
|
5055
|
-
if (previousTab != null) {
|
5056
|
-
this.tabs.toArray().forEach(function (t) { return (t.active = false); });
|
5057
|
-
this.dynamicTabs.forEach(function (t) { return (t.active = false); });
|
5058
|
-
previousTab.active = true;
|
5059
|
-
previousTab.selectionChange.emit();
|
5060
|
-
}
|
5061
|
-
};
|
5062
|
-
TabGroupComponent.ctorParameters = function () { return [
|
5063
|
-
{ type: ComponentFactoryResolver }
|
5064
|
-
]; };
|
5065
|
-
__decorate([
|
5066
|
-
ContentChildren(TabComponent),
|
5067
|
-
__metadata("design:type", QueryList)
|
5068
|
-
], TabGroupComponent.prototype, "tabs", void 0);
|
5069
|
-
__decorate([
|
5070
|
-
ViewChild(DynamicTabDirective, { static: false }),
|
5071
|
-
__metadata("design:type", DynamicTabDirective)
|
5072
|
-
], TabGroupComponent.prototype, "dynamicTabPlaceholder", void 0);
|
5073
|
-
TabGroupComponent = __decorate([
|
5074
|
-
Component({
|
5075
|
-
selector: 'itss-tab-group',
|
5076
|
-
template: "<nav mat-tab-nav-bar>\n <a mat-tab-link\n *ngFor=\"let tab of tabs\"\n (click)=\"selectTab(tab)\"\n [class.active]=\"tab.active\"\n [disabled]=\"tab.disabled\">\n <div mat-card-avatar\n *ngIf=\"tab.icon\">\n <mat-icon>{{ tab.icon }}</mat-icon>\n </div>\n\n {{ tab.label }}\n </a>\n\n <a mat-tab-link\n *ngFor=\"let tab of dynamicTabs\"\n (click)=\"selectTab(tab)\"\n [class.active]=\"tab.active\"\n [disabled]=\"tab.disabled\">\n <div mat-card-avatar\n *ngIf=\"tab.icon\">\n <mat-icon>{{ tab.icon }}</mat-icon>\n </div>\n\n {{ tab.label }}\n </a>\n</nav>\n\n<ng-content></ng-content>\n<ng-template dynamicTab\n #container></ng-template>\n",
|
5077
|
-
styles: [""]
|
5078
|
-
}),
|
5079
|
-
__metadata("design:paramtypes", [ComponentFactoryResolver])
|
5080
|
-
], TabGroupComponent);
|
5081
|
-
return TabGroupComponent;
|
5082
|
-
}());
|
5083
|
-
|
5084
4896
|
/**
|
5085
4897
|
* Throttle a function
|
5086
4898
|
*/
|
@@ -6914,7 +6726,7 @@ var GIPIColDirective = /** @class */ (function () {
|
|
6914
6726
|
};
|
6915
6727
|
GIPIColDirective.prototype._setHostClassMap = function () {
|
6916
6728
|
var _a;
|
6917
|
-
var hostClassMap = __assign((_a = {}, _a['grid-col'] = true, _a["grid-col-" + this.GIPISpan] = ObjectUtil.
|
6729
|
+
var hostClassMap = __assign((_a = {}, _a['grid-col'] = true, _a["grid-col-" + this.GIPISpan] = !ObjectUtil.isNull(this.GIPISpan), _a["grid-col-order-" + this.GIPIOrder] = !ObjectUtil.isNull(this.GIPIOrder), _a["grid-col-offset-" + this.GIPIOffset] = !ObjectUtil.isNull(this.GIPIOffset), _a["grid-col-pull-" + this.GIPIPull] = !ObjectUtil.isNull(this.GIPIPull), _a["grid-col-push-" + this.GIPIPush] = !ObjectUtil.isNull(this.GIPIPush), _a), this._generateClass());
|
6918
6730
|
for (var i in this._classMap) {
|
6919
6731
|
if (this._classMap.hasOwnProperty(i)) {
|
6920
6732
|
this.renderer.removeClass(this.elementRef.nativeElement, i);
|
@@ -6947,7 +6759,7 @@ var GIPIColDirective = /** @class */ (function () {
|
|
6947
6759
|
var listClassMap = {};
|
6948
6760
|
listOfSizeInputName.forEach(function (name) {
|
6949
6761
|
var sizeName = name.replace('GIPI', '').toLowerCase();
|
6950
|
-
if (ObjectUtil.
|
6762
|
+
if (!ObjectUtil.isNull(_this[name])) {
|
6951
6763
|
if (typeof _this[name] === 'number' || typeof _this[name] === 'string') {
|
6952
6764
|
listClassMap["grid-col-" + sizeName + "-" + _this[name]] = true;
|
6953
6765
|
}
|
@@ -6956,7 +6768,7 @@ var GIPIColDirective = /** @class */ (function () {
|
|
6956
6768
|
var prefixArray = ['span', 'pull', 'push', 'offset', 'order'];
|
6957
6769
|
prefixArray.forEach(function (prefix) {
|
6958
6770
|
var prefixClass = prefix === 'span' ? '-' : "-" + prefix + "-";
|
6959
|
-
listClassMap["grid-col-" + sizeName + prefixClass + embedded_1[prefix]] = embedded_1 && ObjectUtil.
|
6771
|
+
listClassMap["grid-col-" + sizeName + prefixClass + embedded_1[prefix]] = embedded_1 && !ObjectUtil.isNull(embedded_1[prefix]);
|
6960
6772
|
});
|
6961
6773
|
}
|
6962
6774
|
}
|
@@ -7363,6 +7175,22 @@ var GIPIPaginationControlsDirective = /** @class */ (function () {
|
|
7363
7175
|
return GIPIPaginationControlsDirective;
|
7364
7176
|
}());
|
7365
7177
|
|
7178
|
+
var GIPIDynamicTabDirective = /** @class */ (function () {
|
7179
|
+
function GIPIDynamicTabDirective(viewContainer) {
|
7180
|
+
this.viewContainer = viewContainer;
|
7181
|
+
}
|
7182
|
+
GIPIDynamicTabDirective.ctorParameters = function () { return [
|
7183
|
+
{ type: ViewContainerRef }
|
7184
|
+
]; };
|
7185
|
+
GIPIDynamicTabDirective = __decorate([
|
7186
|
+
Directive({
|
7187
|
+
selector: '[GIPIDynamicTab]'
|
7188
|
+
}),
|
7189
|
+
__metadata("design:paramtypes", [ViewContainerRef])
|
7190
|
+
], GIPIDynamicTabDirective);
|
7191
|
+
return GIPIDynamicTabDirective;
|
7192
|
+
}());
|
7193
|
+
|
7366
7194
|
var GIPITemplateDirective = /** @class */ (function () {
|
7367
7195
|
function GIPITemplateDirective(template) {
|
7368
7196
|
this.template = template;
|
@@ -7659,7 +7487,7 @@ var GIPIAbstractFormComponent = /** @class */ (function () {
|
|
7659
7487
|
Component({
|
7660
7488
|
selector: "gipi-abstract-form",
|
7661
7489
|
exportAs: 'gipiAbstractForm',
|
7662
|
-
template: "<div
|
7490
|
+
template: "<div class=\"form-content\"\n [class.form-dialog]=\"dialog\"\n [class.space-bottom]=\"!dialog\"\n [style.flex-direction]=\"flexDirection\"\n [style.align-items]=\"alignItems\"\n [style.justify-content]=\"justifyContent\"\n [style.gap]=\"getGap\"\n [style.padding]=\"getPadding\">\n <ng-content> </ng-content>\n</div>\n<div class=\"form-footer\"\n [style.margin-inline]=\"getPadding\"\n *ngIf=\"GIPIActionRowComponent\">\n <ng-content select=\"gipi-action-row\"> </ng-content>\n</div>",
|
7663
7491
|
providers: [
|
7664
7492
|
{
|
7665
7493
|
provide: NG_VALUE_ACCESSOR,
|
@@ -8597,7 +8425,7 @@ var GIPIPopoverTrigger = /** @class */ (function () {
|
|
8597
8425
|
var _this = this;
|
8598
8426
|
if (this._overlayRef) {
|
8599
8427
|
/** Only subscribe to backdrop if trigger event is click */
|
8600
|
-
if (this.triggerEvent
|
8428
|
+
if (this.triggerEvent !== 'hover' && this.backdropCloseOnClick) {
|
8601
8429
|
this._overlayRef.backdropClick()
|
8602
8430
|
.pipe(takeUntil(this.popoverClosed), takeUntil(this._onDestroy))
|
8603
8431
|
.subscribe(function () {
|
@@ -8681,8 +8509,8 @@ var GIPIPopoverTrigger = /** @class */ (function () {
|
|
8681
8509
|
GIPIPopoverTrigger.prototype._getOverlayConfig = function () {
|
8682
8510
|
var overlayState = new OverlayConfig();
|
8683
8511
|
overlayState.positionStrategy = this._getPosition();
|
8684
|
-
/** Display overlay backdrop if trigger event is
|
8685
|
-
if (this.triggerEvent
|
8512
|
+
/** Display overlay backdrop if trigger event is different of hover */
|
8513
|
+
if (this.triggerEvent !== 'hover') {
|
8686
8514
|
overlayState.hasBackdrop = true;
|
8687
8515
|
overlayState.backdropClass = 'cdk-overlay-transparent-backdrop';
|
8688
8516
|
}
|
@@ -8971,6 +8799,26 @@ var GIPIButtonComponent = /** @class */ (function () {
|
|
8971
8799
|
this.onBlur = new EventEmitter(true);
|
8972
8800
|
}
|
8973
8801
|
GIPIButtonComponent_1 = GIPIButtonComponent;
|
8802
|
+
Object.defineProperty(GIPIButtonComponent.prototype, "internalButtonClass", {
|
8803
|
+
get: function () {
|
8804
|
+
return {
|
8805
|
+
'button-base': true,
|
8806
|
+
'button-primary': (this.isButtonPrimary || this.isButtonPrimaryIcon),
|
8807
|
+
'button-primary-icon': this.isButtonPrimaryIcon,
|
8808
|
+
'button-secondary': (this.isButtonSecondary || this.isButtonSecondaryIcon),
|
8809
|
+
'button-secondary-icon': this.isButtonSecondaryIcon,
|
8810
|
+
'button-tertiary': (this.isButtonTertiary || this.isButtonTertiaryIcon),
|
8811
|
+
'button-tertiary-icon': this.isButtonTertiaryIcon,
|
8812
|
+
'button-link': this.isButtonLink,
|
8813
|
+
'button-only-icon': this.isButtonIcon,
|
8814
|
+
'button-for-input': this.isForInput,
|
8815
|
+
'button-notification': this.notification,
|
8816
|
+
'button-action': this.isButtonAction
|
8817
|
+
};
|
8818
|
+
},
|
8819
|
+
enumerable: false,
|
8820
|
+
configurable: true
|
8821
|
+
});
|
8974
8822
|
GIPIButtonComponent.prototype.ngOnInit = function () { };
|
8975
8823
|
GIPIButtonComponent.prototype.ngOnDestroy = function () {
|
8976
8824
|
if (this.popoverTrigger) {
|
@@ -9170,7 +9018,7 @@ var GIPIButtonComponent = /** @class */ (function () {
|
|
9170
9018
|
Component({
|
9171
9019
|
selector: "gipi-button[gipi-primary], gipi-button[gipi-primary-icon], gipi-button[gipi-secondary], gipi-button[gipi-secondary-icon],\n gipi-button[gipi-tertiary], gipi-button[gipi-link], gipi-button[gipi-icon], gipi-button[gipi-action]",
|
9172
9020
|
exportAs: 'gipiButton',
|
9173
|
-
template: "<button [attr.id]=\"id\"\n [attr.name]=\"name\"\n [attr.type]=\"type\"\n [attr.aria-label]=\"ariaLabel ? ariaLabel : label\"\n [attr.title]=\"title ? title : label\"\n [disabled]=\"disabled || loading\"\n [matTooltip]=\"tooltip\"\n role=\"button\"\n [class]=\"buttonClass\"\n [ngClass]=\"
|
9021
|
+
template: "<button [attr.id]=\"id\"\n [attr.name]=\"name\"\n [attr.type]=\"type\"\n [attr.aria-label]=\"ariaLabel ? ariaLabel : label\"\n [attr.title]=\"title ? title : label\"\n [disabled]=\"disabled || loading\"\n [matTooltip]=\"tooltip\"\n role=\"button\"\n [class]=\"buttonClass\"\n [ngClass]=\"internalButtonClass\"\n [style.padding.px]=\"buttonPadding\"\n #popoverTrigger=\"popoverTrigger\"\n [popoverTriggerFor]=\"btnPopover\"\n [popoverTriggerOn]=\"popover ? 'click' : 'none'\"\n [popoverBackdropCloseOnClick]=\"true\"\n (opened)=\"onOpenPopover.emit()\"\n (closed)=\"onClosePopover.emit()\"\n (click)=\"handleClick($event)\"\n (focus)=\"handleFocus($event)\"\n (blur)=\"handleBlur($event)\">\n <span [ngClass]=\"{'button-content': true,\n 'button-disabled': disabled,\n 'button-icon-left': ((iconPos === 'left') && label),\n 'button-icon-right': ((iconPos === 'right') && label),\n 'button-icon-top': ((iconPos === 'top') && label),\n 'button-icon-bottom': ((iconPos === 'bottom') && label),\n 'button-icon-center': (iconPos === 'center')}\">\n <mat-icon *ngIf=\"svgIcon || icon\"\n [svgIcon]=\"svgIcon\"\n [style.width.px]=\"iconWidth\"\n [style.height.px]=\"iconHeight\"\n [style.font-size.px]=\"iconWidth || iconHeight\">\n {{ (!svgIcon && icon) ? icon : '' }}\n </mat-icon>\n\n <span class=\"button-label\"\n [attr.aria-hidden]=\"(icon || svgIcon) && !label\"\n *ngIf=\"!isButtonIcon && label\">\n {{ label }}\n </span>\n </span>\n</button>\n\n<gipi-overlay *ngIf=\"overlay && !popover\"\n [(visible)]=\"_overlayVisible\"\n [appendTo]=\"'body'\"\n (onShow)=\"onShowOverlay.emit()\">\n <ng-content> </ng-content>\n</gipi-overlay>\n\n<gipi-popover #btnPopover=\"gipiPopover\"\n [popoverOverlapTrigger]=\"false\"\n [popoverCloseOnClick]=\"false\"\n [popoverArrowWidth]=\"0\"\n [popoverOffsetY]=\"3\"\n [fxHide]=\"!popover\">\n <div class=\"btn-popover-content\">\n <ng-content> </ng-content>\n </div>\n</gipi-popover>",
|
9174
9022
|
providers: [
|
9175
9023
|
{
|
9176
9024
|
provide: NG_VALUE_ACCESSOR,
|
@@ -9188,20 +9036,151 @@ var GIPIButtonComponent = /** @class */ (function () {
|
|
9188
9036
|
return GIPIButtonComponent;
|
9189
9037
|
}());
|
9190
9038
|
|
9191
|
-
var RemoveChange = /** @class */ (function () {
|
9192
|
-
function RemoveChange() {
|
9193
|
-
}
|
9194
|
-
return RemoveChange;
|
9195
|
-
}());
|
9196
9039
|
var nextUniqueId = 0;
|
9197
|
-
var
|
9198
|
-
function
|
9199
|
-
this._changeDetectorRef = _changeDetectorRef;
|
9040
|
+
var GIPICardComponent = /** @class */ (function () {
|
9041
|
+
function GIPICardComponent(elementRef, _changeDetectorRef) {
|
9200
9042
|
this.elementRef = elementRef;
|
9201
|
-
this.
|
9202
|
-
this.
|
9203
|
-
this.
|
9204
|
-
this.
|
9043
|
+
this._changeDetectorRef = _changeDetectorRef;
|
9044
|
+
this._uniqueId = "gipi-card-" + ++nextUniqueId;
|
9045
|
+
this._id = '';
|
9046
|
+
this._name = '';
|
9047
|
+
this._loading = false;
|
9048
|
+
this._shadow = true;
|
9049
|
+
this._padding = true;
|
9050
|
+
}
|
9051
|
+
GIPICardComponent_1 = GIPICardComponent;
|
9052
|
+
Object.defineProperty(GIPICardComponent.prototype, "id", {
|
9053
|
+
get: function () {
|
9054
|
+
return this._id;
|
9055
|
+
},
|
9056
|
+
set: function (value) {
|
9057
|
+
this._id = value || this._uniqueId;
|
9058
|
+
},
|
9059
|
+
enumerable: false,
|
9060
|
+
configurable: true
|
9061
|
+
});
|
9062
|
+
Object.defineProperty(GIPICardComponent.prototype, "name", {
|
9063
|
+
get: function () {
|
9064
|
+
return this._name;
|
9065
|
+
},
|
9066
|
+
set: function (value) {
|
9067
|
+
this._name = value || this._uniqueId;
|
9068
|
+
},
|
9069
|
+
enumerable: false,
|
9070
|
+
configurable: true
|
9071
|
+
});
|
9072
|
+
Object.defineProperty(GIPICardComponent.prototype, "loading", {
|
9073
|
+
get: function () {
|
9074
|
+
return this._loading;
|
9075
|
+
},
|
9076
|
+
set: function (value) {
|
9077
|
+
if (value !== this.loading) {
|
9078
|
+
this._loading = value;
|
9079
|
+
this._changeDetectorRef.markForCheck();
|
9080
|
+
}
|
9081
|
+
},
|
9082
|
+
enumerable: false,
|
9083
|
+
configurable: true
|
9084
|
+
});
|
9085
|
+
Object.defineProperty(GIPICardComponent.prototype, "shadow", {
|
9086
|
+
get: function () {
|
9087
|
+
return this._shadow;
|
9088
|
+
},
|
9089
|
+
set: function (value) {
|
9090
|
+
if (value !== this.shadow) {
|
9091
|
+
this._shadow = value;
|
9092
|
+
this._changeDetectorRef.markForCheck();
|
9093
|
+
}
|
9094
|
+
},
|
9095
|
+
enumerable: false,
|
9096
|
+
configurable: true
|
9097
|
+
});
|
9098
|
+
Object.defineProperty(GIPICardComponent.prototype, "padding", {
|
9099
|
+
get: function () {
|
9100
|
+
return this._padding;
|
9101
|
+
},
|
9102
|
+
set: function (value) {
|
9103
|
+
if (value !== this.padding) {
|
9104
|
+
this._padding = value;
|
9105
|
+
this._changeDetectorRef.markForCheck();
|
9106
|
+
}
|
9107
|
+
},
|
9108
|
+
enumerable: false,
|
9109
|
+
configurable: true
|
9110
|
+
});
|
9111
|
+
GIPICardComponent.prototype.ngOnInit = function () { };
|
9112
|
+
var GIPICardComponent_1;
|
9113
|
+
GIPICardComponent.ctorParameters = function () { return [
|
9114
|
+
{ type: ElementRef },
|
9115
|
+
{ type: ChangeDetectorRef }
|
9116
|
+
]; };
|
9117
|
+
__decorate([
|
9118
|
+
Input(),
|
9119
|
+
__metadata("design:type", String),
|
9120
|
+
__metadata("design:paramtypes", [String])
|
9121
|
+
], GIPICardComponent.prototype, "id", null);
|
9122
|
+
__decorate([
|
9123
|
+
Input(),
|
9124
|
+
__metadata("design:type", String),
|
9125
|
+
__metadata("design:paramtypes", [String])
|
9126
|
+
], GIPICardComponent.prototype, "name", null);
|
9127
|
+
__decorate([
|
9128
|
+
Input(),
|
9129
|
+
__metadata("design:type", Boolean),
|
9130
|
+
__metadata("design:paramtypes", [Boolean])
|
9131
|
+
], GIPICardComponent.prototype, "loading", null);
|
9132
|
+
__decorate([
|
9133
|
+
Input(),
|
9134
|
+
__metadata("design:type", Boolean),
|
9135
|
+
__metadata("design:paramtypes", [Boolean])
|
9136
|
+
], GIPICardComponent.prototype, "shadow", null);
|
9137
|
+
__decorate([
|
9138
|
+
Input(),
|
9139
|
+
__metadata("design:type", Boolean),
|
9140
|
+
__metadata("design:paramtypes", [Boolean])
|
9141
|
+
], GIPICardComponent.prototype, "padding", null);
|
9142
|
+
GIPICardComponent = GIPICardComponent_1 = __decorate([
|
9143
|
+
Component({
|
9144
|
+
selector: 'gipi-card',
|
9145
|
+
exportAs: 'gipiCard',
|
9146
|
+
template: "<ng-content></ng-content>",
|
9147
|
+
providers: [
|
9148
|
+
{
|
9149
|
+
provide: NG_VALUE_ACCESSOR,
|
9150
|
+
useExisting: forwardRef(function () { return GIPICardComponent_1; }),
|
9151
|
+
multi: true
|
9152
|
+
}
|
9153
|
+
],
|
9154
|
+
host: {
|
9155
|
+
'class': 'gipi-card',
|
9156
|
+
'[attr.id]': 'id',
|
9157
|
+
'[attr.name]': 'name',
|
9158
|
+
'[class.shadow-none]': '!shadow',
|
9159
|
+
'[class.padding-none]': '!padding',
|
9160
|
+
'[class.loading]': 'loading',
|
9161
|
+
},
|
9162
|
+
styles: [":host{display:block;flex:1;border-radius:.2rem;box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084);padding:1.6rem}.padding-none{padding:0!important}.shadow-none{box-shadow:none!important}"]
|
9163
|
+
}),
|
9164
|
+
__metadata("design:paramtypes", [ElementRef,
|
9165
|
+
ChangeDetectorRef])
|
9166
|
+
], GIPICardComponent);
|
9167
|
+
return GIPICardComponent;
|
9168
|
+
}());
|
9169
|
+
|
9170
|
+
var RemoveChange = /** @class */ (function () {
|
9171
|
+
function RemoveChange() {
|
9172
|
+
}
|
9173
|
+
return RemoveChange;
|
9174
|
+
}());
|
9175
|
+
var nextUniqueId$1 = 0;
|
9176
|
+
var GIPIChipsComponent = /** @class */ (function () {
|
9177
|
+
function GIPIChipsComponent(_changeDetectorRef, elementRef) {
|
9178
|
+
this._changeDetectorRef = _changeDetectorRef;
|
9179
|
+
this.elementRef = elementRef;
|
9180
|
+
this._name = "gipi-chips-" + nextUniqueId$1++;
|
9181
|
+
this.id = this._name;
|
9182
|
+
this.name = this._name;
|
9183
|
+
this.label = 'Selecionados';
|
9205
9184
|
this.labelRemoveAll = 'Limpar';
|
9206
9185
|
this.disabled = false;
|
9207
9186
|
this.showRemovableAll = false;
|
@@ -9391,12 +9370,12 @@ var GIPIConfirmationDialogComponent = /** @class */ (function () {
|
|
9391
9370
|
return GIPIConfirmationDialogComponent;
|
9392
9371
|
}());
|
9393
9372
|
|
9394
|
-
var nextUniqueId$
|
9373
|
+
var nextUniqueId$2 = 0;
|
9395
9374
|
var GIPIDropdownMenuComponent = /** @class */ (function () {
|
9396
9375
|
function GIPIDropdownMenuComponent(_changeDetectorRef, elementRef) {
|
9397
9376
|
this._changeDetectorRef = _changeDetectorRef;
|
9398
9377
|
this.elementRef = elementRef;
|
9399
|
-
this._name = "gipi-dropdown-menu-" + nextUniqueId$
|
9378
|
+
this._name = "gipi-dropdown-menu-" + nextUniqueId$2++;
|
9400
9379
|
this.id = this._name;
|
9401
9380
|
this.name = this._name;
|
9402
9381
|
this.label = '';
|
@@ -9577,6 +9556,35 @@ var GIPIDropdownMenuComponent = /** @class */ (function () {
|
|
9577
9556
|
return GIPIDropdownMenuComponent;
|
9578
9557
|
}());
|
9579
9558
|
|
9559
|
+
var GIPIEmptyStateComponent = /** @class */ (function () {
|
9560
|
+
function GIPIEmptyStateComponent() {
|
9561
|
+
}
|
9562
|
+
GIPIEmptyStateComponent_1 = GIPIEmptyStateComponent;
|
9563
|
+
GIPIEmptyStateComponent.prototype.ngOnInit = function () { };
|
9564
|
+
var GIPIEmptyStateComponent_1;
|
9565
|
+
GIPIEmptyStateComponent = GIPIEmptyStateComponent_1 = __decorate([
|
9566
|
+
Component({
|
9567
|
+
selector: 'gipi-empty-state',
|
9568
|
+
exportAs: 'gipiEmptyState',
|
9569
|
+
template: "<mat-icon>sentiment_very_dissatisfied</mat-icon>\nNenhum registro foi encontrado",
|
9570
|
+
providers: [
|
9571
|
+
{
|
9572
|
+
provide: NG_VALUE_ACCESSOR,
|
9573
|
+
useExisting: forwardRef(function () { return GIPIEmptyStateComponent_1; }),
|
9574
|
+
multi: true
|
9575
|
+
}
|
9576
|
+
],
|
9577
|
+
host: {
|
9578
|
+
'class': 'gipi-empty-state',
|
9579
|
+
},
|
9580
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
9581
|
+
styles: [":host{display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:1.4rem;font-weight:600;color:#131313;padding:2.4rem 0}:host>mat-icon{font-size:3.2rem;height:3.2rem;width:3.2rem;margin-bottom:5px}"]
|
9582
|
+
}),
|
9583
|
+
__metadata("design:paramtypes", [])
|
9584
|
+
], GIPIEmptyStateComponent);
|
9585
|
+
return GIPIEmptyStateComponent;
|
9586
|
+
}());
|
9587
|
+
|
9580
9588
|
var GIPIExpansionPanelComponent = /** @class */ (function () {
|
9581
9589
|
function GIPIExpansionPanelComponent(elementRef, _changeDetectorRef) {
|
9582
9590
|
this.elementRef = elementRef;
|
@@ -9988,12 +9996,12 @@ var GIPIFooterComponent = /** @class */ (function () {
|
|
9988
9996
|
return GIPIFooterComponent;
|
9989
9997
|
}());
|
9990
9998
|
|
9991
|
-
var nextUniqueId$
|
9999
|
+
var nextUniqueId$3 = 0;
|
9992
10000
|
var GIPIFormFieldComponent = /** @class */ (function () {
|
9993
10001
|
function GIPIFormFieldComponent(_changeDetectorRef, elementRef) {
|
9994
10002
|
this._changeDetectorRef = _changeDetectorRef;
|
9995
10003
|
this.elementRef = elementRef;
|
9996
|
-
this._name = "gipi-form-field-" + nextUniqueId$
|
10004
|
+
this._name = "gipi-form-field-" + nextUniqueId$3++;
|
9997
10005
|
this.id = this._name;
|
9998
10006
|
this.name = this._name;
|
9999
10007
|
this.label = '';
|
@@ -10259,12 +10267,12 @@ var GIPIFormFieldComponent = /** @class */ (function () {
|
|
10259
10267
|
return GIPIFormFieldComponent;
|
10260
10268
|
}());
|
10261
10269
|
|
10262
|
-
var nextUniqueId$
|
10270
|
+
var nextUniqueId$4 = 0;
|
10263
10271
|
var GIPIHelpfulTipComponent = /** @class */ (function () {
|
10264
10272
|
function GIPIHelpfulTipComponent(_changeDetectorRef, elementRef) {
|
10265
10273
|
this._changeDetectorRef = _changeDetectorRef;
|
10266
10274
|
this.elementRef = elementRef;
|
10267
|
-
this._name = "gipi-form-field-" + nextUniqueId$
|
10275
|
+
this._name = "gipi-form-field-" + nextUniqueId$4++;
|
10268
10276
|
this.id = this._name;
|
10269
10277
|
this.name = this._name;
|
10270
10278
|
this._tooltip = '';
|
@@ -10323,11 +10331,11 @@ var GIPIHelpfulTipComponent = /** @class */ (function () {
|
|
10323
10331
|
return GIPIHelpfulTipComponent;
|
10324
10332
|
}());
|
10325
10333
|
|
10326
|
-
var nextUniqueId$
|
10334
|
+
var nextUniqueId$5 = 0;
|
10327
10335
|
var GIPIInputCheckboxComponent = /** @class */ (function () {
|
10328
10336
|
function GIPIInputCheckboxComponent(_changeDetectorRef) {
|
10329
10337
|
this._changeDetectorRef = _changeDetectorRef;
|
10330
|
-
this._name = "gipi-input-checkbox-" + nextUniqueId$
|
10338
|
+
this._name = "gipi-input-checkbox-" + nextUniqueId$5++;
|
10331
10339
|
this.id = this._name;
|
10332
10340
|
this.name = this._name;
|
10333
10341
|
this.disabled = false;
|
@@ -10437,12 +10445,12 @@ var GIPIInputCheckboxComponent = /** @class */ (function () {
|
|
10437
10445
|
return GIPIInputCheckboxComponent;
|
10438
10446
|
}());
|
10439
10447
|
|
10440
|
-
var nextUniqueId$
|
10448
|
+
var nextUniqueId$6 = 0;
|
10441
10449
|
var GIPIInputCurrencyComponent = /** @class */ (function () {
|
10442
10450
|
function GIPIInputCurrencyComponent(_changeDetectorRef, elementRef) {
|
10443
10451
|
this._changeDetectorRef = _changeDetectorRef;
|
10444
10452
|
this.elementRef = elementRef;
|
10445
|
-
this._name = "gipi-input-currency-" + nextUniqueId$
|
10453
|
+
this._name = "gipi-input-currency-" + nextUniqueId$6++;
|
10446
10454
|
this.id = this._name;
|
10447
10455
|
this.name = this._name;
|
10448
10456
|
this.placeholder = '';
|
@@ -10640,12 +10648,12 @@ var GIPIInputCurrencyComponent = /** @class */ (function () {
|
|
10640
10648
|
}());
|
10641
10649
|
|
10642
10650
|
var yearsPerPage = 24;
|
10643
|
-
var nextUniqueId$
|
10651
|
+
var nextUniqueId$7 = 0;
|
10644
10652
|
var GIPIInputMonthPickerComponent = /** @class */ (function () {
|
10645
10653
|
function GIPIInputMonthPickerComponent(_changeDetectorRef, _config) {
|
10646
10654
|
this._changeDetectorRef = _changeDetectorRef;
|
10647
10655
|
this._config = _config;
|
10648
|
-
this._name = "gipi-input-monthpicker-" + nextUniqueId$
|
10656
|
+
this._name = "gipi-input-monthpicker-" + nextUniqueId$7++;
|
10649
10657
|
this._yearArrays = [];
|
10650
10658
|
this._now = new Date();
|
10651
10659
|
this._currentMonth = this._now.getMonth();
|
@@ -11059,14 +11067,14 @@ var GIPIInputMonthPickerComponent = /** @class */ (function () {
|
|
11059
11067
|
return GIPIInputMonthPickerComponent;
|
11060
11068
|
}());
|
11061
11069
|
|
11062
|
-
var nextUniqueId$
|
11070
|
+
var nextUniqueId$8 = 0;
|
11063
11071
|
/** A altura dos itens selecionados em unidades `px`. */
|
11064
11072
|
var OPTION_HEIGHT_PX = 40;
|
11065
11073
|
var GIPIInputSelectEnumComponent = /** @class */ (function () {
|
11066
11074
|
function GIPIInputSelectEnumComponent(elementRef, _changeDetectorRef) {
|
11067
11075
|
this.elementRef = elementRef;
|
11068
11076
|
this._changeDetectorRef = _changeDetectorRef;
|
11069
|
-
this._name = "gipi-input-select-enum-" + nextUniqueId$
|
11077
|
+
this._name = "gipi-input-select-enum-" + nextUniqueId$8++;
|
11070
11078
|
this._enumList = [];
|
11071
11079
|
this._itemSizeScrollViewport = 5;
|
11072
11080
|
this._lastOptionSelected = null;
|
@@ -12088,12 +12096,12 @@ var GIPIOverlayComponent = /** @class */ (function () {
|
|
12088
12096
|
|
12089
12097
|
/** A altura dos itens selecionados em unidades `px`. */
|
12090
12098
|
var OPTION_HEIGHT_PX$1 = 44;
|
12091
|
-
var nextUniqueId$
|
12099
|
+
var nextUniqueId$9 = 0;
|
12092
12100
|
var GIPIInputSelectComponent = /** @class */ (function () {
|
12093
12101
|
function GIPIInputSelectComponent(_changeDetectorRef) {
|
12094
12102
|
var _this = this;
|
12095
12103
|
this._changeDetectorRef = _changeDetectorRef;
|
12096
|
-
this._name = "gipi-input-select-" + nextUniqueId$
|
12104
|
+
this._name = "gipi-input-select-" + nextUniqueId$9++;
|
12097
12105
|
this._onDestroy = new Subject();
|
12098
12106
|
this._itemSizeScrollViewport = 5;
|
12099
12107
|
this._overlayVisible = false;
|
@@ -12780,14 +12788,14 @@ var GIPIInputSelectComponent = /** @class */ (function () {
|
|
12780
12788
|
return GIPIInputSelectComponent;
|
12781
12789
|
}());
|
12782
12790
|
|
12783
|
-
var nextUniqueId$
|
12791
|
+
var nextUniqueId$a = 0;
|
12784
12792
|
var GIPIInputSelectListboxComponent = /** @class */ (function () {
|
12785
12793
|
function GIPIInputSelectListboxComponent(_changeDetectorRef, _elementRef, _renderer) {
|
12786
12794
|
var _this = this;
|
12787
12795
|
this._changeDetectorRef = _changeDetectorRef;
|
12788
12796
|
this._elementRef = _elementRef;
|
12789
12797
|
this._renderer = _renderer;
|
12790
|
-
this._name = "gipi-input-select-listbox-" + nextUniqueId$
|
12798
|
+
this._name = "gipi-input-select-listbox-" + nextUniqueId$a++;
|
12791
12799
|
this._isOverlayChildrenClicked = false;
|
12792
12800
|
this._overlayVisible = false;
|
12793
12801
|
this._selectEntityOpened = false;
|
@@ -13569,7 +13577,7 @@ var GIPIInputSearchComponent = /** @class */ (function () {
|
|
13569
13577
|
Component({
|
13570
13578
|
selector: "gipi-input-search",
|
13571
13579
|
exportAs: 'gipiInputSearch',
|
13572
|
-
template: "<!-- Espa\u00E7o reservado para ajustar o deslocamento vertical dos elementos mat-option -->\n<input matInput\n class=\"mat-select-search-input mat-select-search-hidden\" />\n\n<!-- Note: o mat-datepicker-content mat-tab-header \u00E9 necess\u00E1rio para herdar as cores do tema do material, consulte PR n\u00BA 22 -->\n<div #innerSelectSearch\n class=\"mat-select-search-inner mat-typography mat-datepicker-content mat-tab-header\">\n\n <input class=\"mat-select-search-input mat-input-element\"\n aria-label=\"Pesquisa suspensa\"\n autocomplete=\"off\"\n type=\"text\"\n #searchSelectInput\n [placeholder]=\"placeholderLabel\"\n [formControl]=\"_formControl\"\n (keydown)=\"_handleKeydown($event)\"\n (keyup)=\"_handleKeyup($event)\"\n (blur)=\"onBlur()\">\n\n <mat-spinner *ngIf=\"searching\"\n class=\"mat-select-search-spinner\"\n diameter=\"16\">\n </mat-spinner>\n\n <button *ngIf=\"!hideClearSearchButton && value && !searching\"\n class=\"mat-select-search-clear\"\n aria-label=\"Limpar\"\n mat-icon-button\n (click)=\"_reset(true)\">\n <mat-icon> close </mat-icon>\n </button>\n\n <mat-divider> </mat-divider>\n</div>\n\n<div *ngIf=\"(_showNoEntriesFound$ | async) && !searching\"\n class=\"mat-select-search-no-entries-found\">\n <mat-icon>sentiment_very_dissatisfied</mat-icon>\n Nenhum registro foi encontrado\n</div>",
|
13580
|
+
template: "<!-- Espa\u00E7o reservado para ajustar o deslocamento vertical dos elementos mat-option -->\n<input matInput\n class=\"mat-select-search-input mat-select-search-hidden\" />\n\n<!-- Note: o mat-datepicker-content mat-tab-header \u00E9 necess\u00E1rio para herdar as cores do tema do material, consulte PR n\u00BA 22 -->\n<div #innerSelectSearch\n class=\"mat-select-search-inner mat-typography mat-datepicker-content mat-tab-header\">\n\n <input class=\"mat-select-search-input mat-input-element\"\n aria-label=\"Pesquisa suspensa\"\n aria-hidden=\"false\"\n autocomplete=\"off\"\n type=\"text\"\n #searchSelectInput\n [placeholder]=\"placeholderLabel\"\n [formControl]=\"_formControl\"\n (keydown)=\"_handleKeydown($event)\"\n (keyup)=\"_handleKeyup($event)\"\n (blur)=\"onBlur()\">\n\n <mat-spinner *ngIf=\"searching\"\n class=\"mat-select-search-spinner\"\n diameter=\"16\">\n </mat-spinner>\n\n <button *ngIf=\"!hideClearSearchButton && value && !searching\"\n class=\"mat-select-search-clear\"\n aria-label=\"Limpar\"\n mat-icon-button\n (click)=\"_reset(true)\">\n <mat-icon> close </mat-icon>\n </button>\n\n <mat-divider> </mat-divider>\n</div>\n\n<div *ngIf=\"(_showNoEntriesFound$ | async) && !searching\"\n class=\"mat-select-search-no-entries-found\">\n <mat-icon>sentiment_very_dissatisfied</mat-icon>\n Nenhum registro foi encontrado\n</div>",
|
13573
13581
|
providers: [
|
13574
13582
|
{
|
13575
13583
|
provide: NG_VALUE_ACCESSOR,
|
@@ -13595,12 +13603,12 @@ var GIPIInputSearchComponent = /** @class */ (function () {
|
|
13595
13603
|
return GIPIInputSearchComponent;
|
13596
13604
|
}());
|
13597
13605
|
|
13598
|
-
var nextUniqueId$
|
13606
|
+
var nextUniqueId$b = 0;
|
13599
13607
|
var GIPIInputSelectPagedComponent = /** @class */ (function () {
|
13600
13608
|
function GIPIInputSelectPagedComponent(_changeDetectorRef) {
|
13601
13609
|
var _this = this;
|
13602
13610
|
this._changeDetectorRef = _changeDetectorRef;
|
13603
|
-
this._name = "gipi-input-select-paged-" + nextUniqueId$
|
13611
|
+
this._name = "gipi-input-select-paged-" + nextUniqueId$b++;
|
13604
13612
|
this.valueSearchCtrl = new FormControl('');
|
13605
13613
|
this.totalOptions = 0;
|
13606
13614
|
this.subscriptions = [];
|
@@ -13971,12 +13979,12 @@ var GIPIInputSelectPagedComponent = /** @class */ (function () {
|
|
13971
13979
|
return GIPIInputSelectPagedComponent;
|
13972
13980
|
}());
|
13973
13981
|
|
13974
|
-
var nextUniqueId$
|
13982
|
+
var nextUniqueId$c = 0;
|
13975
13983
|
var GIPIInputSelectRadioComponent = /** @class */ (function () {
|
13976
13984
|
function GIPIInputSelectRadioComponent(elementRef, _changeDetectorRef) {
|
13977
13985
|
this.elementRef = elementRef;
|
13978
13986
|
this._changeDetectorRef = _changeDetectorRef;
|
13979
|
-
this._name = "gipi-input-select-radio-" + nextUniqueId$
|
13987
|
+
this._name = "gipi-input-select-radio-" + nextUniqueId$c++;
|
13980
13988
|
this._enumList = [];
|
13981
13989
|
this.id = this._name;
|
13982
13990
|
this.name = this._name;
|
@@ -14256,6 +14264,7 @@ var GIPINotificationComponent = /** @class */ (function () {
|
|
14256
14264
|
this.iconHeight = 24;
|
14257
14265
|
this.icon = null;
|
14258
14266
|
this.svgIcon = null;
|
14267
|
+
this.notification = false;
|
14259
14268
|
this.onShowOverlay = new EventEmitter();
|
14260
14269
|
this.onClick = new EventEmitter();
|
14261
14270
|
this.onFocus = new EventEmitter();
|
@@ -14312,6 +14321,10 @@ var GIPINotificationComponent = /** @class */ (function () {
|
|
14312
14321
|
Input(),
|
14313
14322
|
__metadata("design:type", String)
|
14314
14323
|
], GIPINotificationComponent.prototype, "tooltip", void 0);
|
14324
|
+
__decorate([
|
14325
|
+
Input(),
|
14326
|
+
__metadata("design:type", Boolean)
|
14327
|
+
], GIPINotificationComponent.prototype, "notification", void 0);
|
14315
14328
|
__decorate([
|
14316
14329
|
Output(),
|
14317
14330
|
__metadata("design:type", EventEmitter)
|
@@ -14332,7 +14345,7 @@ var GIPINotificationComponent = /** @class */ (function () {
|
|
14332
14345
|
Component({
|
14333
14346
|
selector: "gipi-notification",
|
14334
14347
|
exportAs: 'gipiNotification',
|
14335
|
-
template: "<gipi-button gipi-icon\n [id]=\"id\"\n [name]=\"name\"\n [ariaLabel]=\"ariaLabel\"\n [buttonPadding]=\"buttonPadding\"\n [iconWidth]=\"iconWidth\"\n [iconHeight]=\"iconHeight\"\n [icon]=\"icon\"\n [svgIcon]=\"svgIcon\"\n [disabled]=\"disabled\"\n [loading]=\"loading\"\n [tooltip]=\"tooltip\"\n [popover]=\"true\"\n [overlay]=\"false\"\n (onShowOverlay)=\"onShowOverlay.emit()\"\n (click)=\"onClick.emit($event)\"\n (focus)=\"onFocus.emit($event)\"\n (blur)=\"onBlur.emit($event)\">\n <
|
14348
|
+
template: "<gipi-button gipi-icon\n [id]=\"id\"\n [name]=\"name\"\n [ariaLabel]=\"ariaLabel\"\n [buttonPadding]=\"buttonPadding\"\n [iconWidth]=\"iconWidth\"\n [iconHeight]=\"iconHeight\"\n [icon]=\"icon\"\n [svgIcon]=\"svgIcon\"\n [disabled]=\"disabled\"\n [loading]=\"loading\"\n [tooltip]=\"tooltip\"\n [popover]=\"true\"\n [overlay]=\"false\"\n [notification]=\"notification\"\n (onShowOverlay)=\"onShowOverlay.emit()\"\n (click)=\"onClick.emit($event)\"\n (focus)=\"onFocus.emit($event)\"\n (blur)=\"onBlur.emit($event)\">\n <ng-content> </ng-content>\n</gipi-button>\n",
|
14336
14349
|
providers: [
|
14337
14350
|
{
|
14338
14351
|
provide: NG_VALUE_ACCESSOR,
|
@@ -14344,7 +14357,7 @@ var GIPINotificationComponent = /** @class */ (function () {
|
|
14344
14357
|
'class': 'gipi-notification',
|
14345
14358
|
},
|
14346
14359
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
14347
|
-
styles: [".button-only-icon{padding:4px!important}.button-only-icon .button-content>mat-icon{width:24px!important;height:24px!important}
|
14360
|
+
styles: [".button-only-icon{padding:4px!important}.button-only-icon .button-content>mat-icon{width:24px!important;height:24px!important}"]
|
14348
14361
|
}),
|
14349
14362
|
__metadata("design:paramtypes", [])
|
14350
14363
|
], GIPINotificationComponent);
|
@@ -14498,11 +14511,11 @@ var PasswordUtil = /** @class */ (function () {
|
|
14498
14511
|
return PasswordUtil;
|
14499
14512
|
}());
|
14500
14513
|
|
14501
|
-
var nextUniqueId$
|
14514
|
+
var nextUniqueId$d = 0;
|
14502
14515
|
var GIPIPasswordRequerimentsComponent = /** @class */ (function () {
|
14503
14516
|
function GIPIPasswordRequerimentsComponent(_changeDetectorRef) {
|
14504
14517
|
this._changeDetectorRef = _changeDetectorRef;
|
14505
|
-
this._name = "gipi-password-requeriments-" + nextUniqueId$
|
14518
|
+
this._name = "gipi-password-requeriments-" + nextUniqueId$d++;
|
14506
14519
|
this.id = this._name;
|
14507
14520
|
this.name = this._name;
|
14508
14521
|
this.disabled = false;
|
@@ -15158,11 +15171,11 @@ var GIPIPopoverTarget = /** @class */ (function () {
|
|
15158
15171
|
return GIPIPopoverTarget;
|
15159
15172
|
}());
|
15160
15173
|
|
15161
|
-
var nextUniqueId$
|
15174
|
+
var nextUniqueId$e = 0;
|
15162
15175
|
var GIPIRadioGroupComponent = /** @class */ (function () {
|
15163
15176
|
function GIPIRadioGroupComponent(_changeDetectorRef) {
|
15164
15177
|
this._changeDetectorRef = _changeDetectorRef;
|
15165
|
-
this._name = "gipi-radio-group-" + nextUniqueId$
|
15178
|
+
this._name = "gipi-radio-group-" + nextUniqueId$e++;
|
15166
15179
|
this._enumList = [];
|
15167
15180
|
this.id = this._name;
|
15168
15181
|
this.name = this._name;
|
@@ -15308,114 +15321,748 @@ var GIPIRadioGroupComponent = /** @class */ (function () {
|
|
15308
15321
|
return GIPIRadioGroupComponent;
|
15309
15322
|
}());
|
15310
15323
|
|
15311
|
-
var
|
15312
|
-
|
15313
|
-
|
15314
|
-
this.
|
15315
|
-
this.
|
15316
|
-
this.isButtonSecondary = this._hasHostAttributes('gipi-secondary');
|
15317
|
-
this.required = false;
|
15318
|
-
this.multiple = false;
|
15319
|
-
this.disabled = false;
|
15320
|
-
this.onOptionClick = new EventEmitter();
|
15321
|
-
this.onChange = new EventEmitter();
|
15322
|
-
this.onModelChange = function () { };
|
15323
|
-
this.onModelTouched = function () { };
|
15324
|
+
var nextUniqueId$f = 0;
|
15325
|
+
var RangePage = /** @class */ (function () {
|
15326
|
+
function RangePage(start, end) {
|
15327
|
+
this.start = start;
|
15328
|
+
this.end = end;
|
15324
15329
|
}
|
15325
|
-
|
15326
|
-
|
15327
|
-
GIPISelectButtonComponent.prototype.writeValue = function (obj) {
|
15328
|
-
this.value = obj;
|
15329
|
-
this._changeDetectorRef.markForCheck();
|
15330
|
-
};
|
15331
|
-
GIPISelectButtonComponent.prototype.registerOnChange = function (fn) {
|
15332
|
-
this.onModelChange = fn;
|
15333
|
-
};
|
15334
|
-
GIPISelectButtonComponent.prototype.registerOnTouched = function (fn) {
|
15335
|
-
this.onModelTouched = fn;
|
15336
|
-
};
|
15337
|
-
GIPISelectButtonComponent.prototype.setDisabledState = function (isDisabled) {
|
15338
|
-
this.disabled = isDisabled;
|
15339
|
-
this._changeDetectorRef.markForCheck();
|
15340
|
-
};
|
15341
|
-
GIPISelectButtonComponent.prototype.getOptionLabel = function (option) {
|
15342
|
-
return this.optionLabel ? ObjectUtil.resolveFieldData(option, this.optionLabel) : option.label != undefined ? option.label : option;
|
15343
|
-
};
|
15344
|
-
GIPISelectButtonComponent.prototype.getOptionValue = function (option) {
|
15345
|
-
return this.optionValue ? ObjectUtil.resolveFieldData(option, this.optionValue) : this.optionLabel || option.value === undefined ? option : option.value;
|
15346
|
-
};
|
15347
|
-
GIPISelectButtonComponent.prototype.isOptionDisabled = function (option) {
|
15348
|
-
return this.optionDisabled ? ObjectUtil.resolveFieldData(option, this.optionDisabled) : option.disabled !== undefined ? option.disabled : false;
|
15349
|
-
};
|
15350
|
-
GIPISelectButtonComponent.prototype.onItemClick = function (event, option, index) {
|
15351
|
-
if (this.disabled || this.isOptionDisabled(option)) {
|
15352
|
-
return;
|
15353
|
-
}
|
15354
|
-
if (this.multiple) {
|
15355
|
-
if (this.isSelected(option)) {
|
15356
|
-
this.removeOption(option);
|
15357
|
-
}
|
15358
|
-
else {
|
15359
|
-
this.value = __spread((this.value || []), [this.getOptionValue(option)]);
|
15360
|
-
}
|
15361
|
-
this.onModelChange(this.value);
|
15362
|
-
this.onChange.emit({
|
15363
|
-
originalEvent: event,
|
15364
|
-
value: this.value
|
15365
|
-
});
|
15366
|
-
}
|
15367
|
-
else {
|
15368
|
-
var value = this.getOptionValue(option);
|
15369
|
-
if (this.value !== value) {
|
15370
|
-
this.value = this.getOptionValue(option);
|
15371
|
-
this.onModelChange(this.value);
|
15372
|
-
this.onChange.emit({
|
15373
|
-
originalEvent: event,
|
15374
|
-
value: this.value
|
15375
|
-
});
|
15376
|
-
}
|
15377
|
-
}
|
15378
|
-
this.onOptionClick.emit({
|
15379
|
-
originalEvent: event,
|
15380
|
-
option: option,
|
15381
|
-
index: index
|
15382
|
-
});
|
15383
|
-
};
|
15384
|
-
GIPISelectButtonComponent.prototype.isSelected = function (option) {
|
15385
|
-
var e_1, _a;
|
15386
|
-
var selected = false;
|
15387
|
-
var optionValue = this.getOptionValue(option);
|
15388
|
-
if (this.multiple) {
|
15389
|
-
if (this.value && Array.isArray(this.value)) {
|
15390
|
-
try {
|
15391
|
-
for (var _b = __values(this.value), _c = _b.next(); !_c.done; _c = _b.next()) {
|
15392
|
-
var val = _c.value;
|
15393
|
-
if (ObjectUtil.equals(val, optionValue, this.dataKey)) {
|
15394
|
-
selected = true;
|
15395
|
-
break;
|
15396
|
-
}
|
15397
|
-
}
|
15398
|
-
}
|
15399
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
15400
|
-
finally {
|
15401
|
-
try {
|
15402
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
15403
|
-
}
|
15404
|
-
finally { if (e_1) throw e_1.error; }
|
15405
|
-
}
|
15406
|
-
}
|
15407
|
-
}
|
15408
|
-
else {
|
15409
|
-
selected = ObjectUtil.equals(this.getOptionValue(option), this.value, this.dataKey);
|
15410
|
-
}
|
15411
|
-
return selected;
|
15330
|
+
RangePage.prototype.getTotalCount = function () {
|
15331
|
+
return (this.end - this.start) + 1;
|
15412
15332
|
};
|
15413
|
-
|
15333
|
+
RangePage.prototype.getRange = function () {
|
15414
15334
|
var _this = this;
|
15415
|
-
|
15335
|
+
return Array.from({ length: this.getTotalCount() }, function (_, i) { return _this.start - 1 + i; });
|
15416
15336
|
};
|
15417
|
-
|
15418
|
-
|
15337
|
+
return RangePage;
|
15338
|
+
}());
|
15339
|
+
var GIPIRangePageComponent = /** @class */ (function () {
|
15340
|
+
function GIPIRangePageComponent(elementRef, _changeDetectorRef) {
|
15341
|
+
this.elementRef = elementRef;
|
15342
|
+
this._changeDetectorRef = _changeDetectorRef;
|
15343
|
+
this._name = "gipi-range-page-" + nextUniqueId$f++;
|
15344
|
+
this._startPage = 1;
|
15345
|
+
this._endPage = 1;
|
15346
|
+
this.id = this._name;
|
15347
|
+
this.name = this._name;
|
15348
|
+
this.label = '';
|
15349
|
+
this.tooltip = '';
|
15350
|
+
this.placeholderStart = '';
|
15351
|
+
this.placeholderEnd = '';
|
15352
|
+
this.help = '';
|
15353
|
+
this._min = 1;
|
15354
|
+
this._max = 100;
|
15355
|
+
this._step = 1;
|
15356
|
+
this._required = false;
|
15357
|
+
this._disabled = false;
|
15358
|
+
this.onChange = function (value) { };
|
15359
|
+
this.onTouched = function () { };
|
15360
|
+
}
|
15361
|
+
GIPIRangePageComponent_1 = GIPIRangePageComponent;
|
15362
|
+
Object.defineProperty(GIPIRangePageComponent.prototype, "min", {
|
15363
|
+
get: function () {
|
15364
|
+
return NumberUtil.isNumber(this._min) ? this._min : 1;
|
15365
|
+
},
|
15366
|
+
set: function (value) {
|
15367
|
+
this._min = value;
|
15368
|
+
this._initPage();
|
15369
|
+
},
|
15370
|
+
enumerable: false,
|
15371
|
+
configurable: true
|
15372
|
+
});
|
15373
|
+
Object.defineProperty(GIPIRangePageComponent.prototype, "max", {
|
15374
|
+
get: function () {
|
15375
|
+
return NumberUtil.isNumber(this._max) ? this._max : 100;
|
15376
|
+
},
|
15377
|
+
set: function (value) {
|
15378
|
+
this._max = value;
|
15379
|
+
this._initPage();
|
15380
|
+
},
|
15381
|
+
enumerable: false,
|
15382
|
+
configurable: true
|
15383
|
+
});
|
15384
|
+
Object.defineProperty(GIPIRangePageComponent.prototype, "step", {
|
15385
|
+
get: function () {
|
15386
|
+
return NumberUtil.isNumber(this._step) ? this._step : 1;
|
15387
|
+
},
|
15388
|
+
set: function (value) {
|
15389
|
+
this._step = value;
|
15390
|
+
this._initPage();
|
15391
|
+
},
|
15392
|
+
enumerable: false,
|
15393
|
+
configurable: true
|
15394
|
+
});
|
15395
|
+
Object.defineProperty(GIPIRangePageComponent.prototype, "required", {
|
15396
|
+
get: function () {
|
15397
|
+
return this._required;
|
15398
|
+
},
|
15399
|
+
set: function (value) {
|
15400
|
+
this._required = coerceBooleanProperty(value);
|
15401
|
+
},
|
15402
|
+
enumerable: false,
|
15403
|
+
configurable: true
|
15404
|
+
});
|
15405
|
+
Object.defineProperty(GIPIRangePageComponent.prototype, "disabled", {
|
15406
|
+
get: function () {
|
15407
|
+
return this._disabled;
|
15408
|
+
},
|
15409
|
+
set: function (value) {
|
15410
|
+
this._disabled = coerceBooleanProperty(value);
|
15411
|
+
},
|
15412
|
+
enumerable: false,
|
15413
|
+
configurable: true
|
15414
|
+
});
|
15415
|
+
Object.defineProperty(GIPIRangePageComponent.prototype, "formattedValue", {
|
15416
|
+
get: function () {
|
15417
|
+
return '';
|
15418
|
+
},
|
15419
|
+
enumerable: false,
|
15420
|
+
configurable: true
|
15421
|
+
});
|
15422
|
+
GIPIRangePageComponent.prototype.ngOnInit = function () {
|
15423
|
+
this._initPage();
|
15424
|
+
};
|
15425
|
+
GIPIRangePageComponent.prototype.ngOnDestroy = function () { };
|
15426
|
+
GIPIRangePageComponent.prototype.writeValue = function (value) {
|
15427
|
+
if (!ObjectUtil.isNull(value)) {
|
15428
|
+
this._startPage = value.start || this._startPage;
|
15429
|
+
this._endPage = value.end || this._endPage;
|
15430
|
+
}
|
15431
|
+
this._changeDetectorRef.detectChanges();
|
15432
|
+
};
|
15433
|
+
GIPIRangePageComponent.prototype.registerOnChange = function (fn) {
|
15434
|
+
this.onChange = fn;
|
15435
|
+
};
|
15436
|
+
GIPIRangePageComponent.prototype.registerOnTouched = function (fn) {
|
15437
|
+
this.onTouched = fn;
|
15438
|
+
};
|
15439
|
+
GIPIRangePageComponent.prototype.setDisabledState = function (isDisabled) {
|
15440
|
+
this.disabled = isDisabled;
|
15441
|
+
this._changeDetectorRef.markForCheck();
|
15442
|
+
};
|
15443
|
+
GIPIRangePageComponent.prototype._initPage = function () {
|
15444
|
+
this._startPage = this.min;
|
15445
|
+
this._endPage = Math.min(this._startPage + this.step - 1, this.max);
|
15446
|
+
};
|
15447
|
+
GIPIRangePageComponent.prototype.updateEndPage = function () {
|
15448
|
+
if (this.disabled) {
|
15449
|
+
return;
|
15450
|
+
}
|
15451
|
+
if (this._startPage < this.min) {
|
15452
|
+
this._startPage = this.min;
|
15453
|
+
}
|
15454
|
+
else if (this._startPage > this.max) {
|
15455
|
+
this._startPage = this.max;
|
15456
|
+
}
|
15457
|
+
if (this._endPage < this._startPage) {
|
15458
|
+
this._endPage = this._startPage;
|
15459
|
+
}
|
15460
|
+
else if (this._endPage > (this._startPage + (this.step - 1))) {
|
15461
|
+
this._endPage = Math.min(this._startPage + this.step - 1, this.max);
|
15462
|
+
}
|
15463
|
+
this._propagateChange();
|
15464
|
+
};
|
15465
|
+
GIPIRangePageComponent.prototype.updateStartPage = function () {
|
15466
|
+
if (this.disabled) {
|
15467
|
+
return;
|
15468
|
+
}
|
15469
|
+
if (this._endPage > this.max) {
|
15470
|
+
this._endPage = this.max;
|
15471
|
+
}
|
15472
|
+
else if (this._endPage > this.max) {
|
15473
|
+
this._endPage = this.max;
|
15474
|
+
}
|
15475
|
+
if (this._startPage > this._endPage) {
|
15476
|
+
this._startPage = this._endPage;
|
15477
|
+
}
|
15478
|
+
else if (this._startPage < (this._endPage - (this.step + 1))) {
|
15479
|
+
this._startPage = Math.max(this._endPage - this.step + 1, this.min);
|
15480
|
+
}
|
15481
|
+
this._propagateChange();
|
15482
|
+
};
|
15483
|
+
GIPIRangePageComponent.prototype.previous = function () {
|
15484
|
+
if (this.disabled) {
|
15485
|
+
return;
|
15486
|
+
}
|
15487
|
+
var newStartPage = Math.max(this._startPage - this.step + 1, this.min);
|
15488
|
+
var newEndPage = Math.min(newStartPage + this.step - 1, this.max);
|
15489
|
+
if (newEndPage >= this.min) {
|
15490
|
+
this._startPage = newStartPage;
|
15491
|
+
this._endPage = newEndPage;
|
15492
|
+
this._propagateChange();
|
15493
|
+
}
|
15494
|
+
};
|
15495
|
+
GIPIRangePageComponent.prototype.next = function () {
|
15496
|
+
if (this.disabled) {
|
15497
|
+
return;
|
15498
|
+
}
|
15499
|
+
// const newStartPage = Math.min(this._startPage + this.step, this.max - this.step + 1);
|
15500
|
+
// let newEndPage = newStartPage + this.step - 1;
|
15501
|
+
var newStartPage = Math.min(this._startPage + this.step, this.max);
|
15502
|
+
var newEndPage = Math.min(newStartPage + this.step - 1, this.max);
|
15503
|
+
if ((newStartPage === this.max) || (newEndPage > this.max)) {
|
15504
|
+
newEndPage = newStartPage;
|
15505
|
+
}
|
15506
|
+
if (newEndPage <= this.max) {
|
15507
|
+
this._startPage = newStartPage;
|
15508
|
+
this._endPage = newEndPage;
|
15509
|
+
this._propagateChange();
|
15510
|
+
}
|
15511
|
+
};
|
15512
|
+
GIPIRangePageComponent.prototype.selectText = function (input) {
|
15513
|
+
if (this.disabled || !input) {
|
15514
|
+
return;
|
15515
|
+
}
|
15516
|
+
setTimeout(function () { return input.select(); }, 0);
|
15517
|
+
};
|
15518
|
+
GIPIRangePageComponent.prototype._propagateChange = function () {
|
15519
|
+
this.onChange(new RangePage(this._startPage, this._endPage));
|
15520
|
+
this.onTouched();
|
15521
|
+
};
|
15522
|
+
var GIPIRangePageComponent_1;
|
15523
|
+
GIPIRangePageComponent.ctorParameters = function () { return [
|
15524
|
+
{ type: ElementRef },
|
15525
|
+
{ type: ChangeDetectorRef }
|
15526
|
+
]; };
|
15527
|
+
__decorate([
|
15528
|
+
Input(),
|
15529
|
+
__metadata("design:type", String)
|
15530
|
+
], GIPIRangePageComponent.prototype, "id", void 0);
|
15531
|
+
__decorate([
|
15532
|
+
Input(),
|
15533
|
+
__metadata("design:type", String)
|
15534
|
+
], GIPIRangePageComponent.prototype, "name", void 0);
|
15535
|
+
__decorate([
|
15536
|
+
Input(),
|
15537
|
+
__metadata("design:type", String)
|
15538
|
+
], GIPIRangePageComponent.prototype, "label", void 0);
|
15539
|
+
__decorate([
|
15540
|
+
Input(),
|
15541
|
+
__metadata("design:type", String)
|
15542
|
+
], GIPIRangePageComponent.prototype, "tooltip", void 0);
|
15543
|
+
__decorate([
|
15544
|
+
Input(),
|
15545
|
+
__metadata("design:type", String)
|
15546
|
+
], GIPIRangePageComponent.prototype, "placeholderStart", void 0);
|
15547
|
+
__decorate([
|
15548
|
+
Input(),
|
15549
|
+
__metadata("design:type", String)
|
15550
|
+
], GIPIRangePageComponent.prototype, "placeholderEnd", void 0);
|
15551
|
+
__decorate([
|
15552
|
+
Input(),
|
15553
|
+
__metadata("design:type", String)
|
15554
|
+
], GIPIRangePageComponent.prototype, "help", void 0);
|
15555
|
+
__decorate([
|
15556
|
+
Input(),
|
15557
|
+
__metadata("design:type", Number),
|
15558
|
+
__metadata("design:paramtypes", [Number])
|
15559
|
+
], GIPIRangePageComponent.prototype, "min", null);
|
15560
|
+
__decorate([
|
15561
|
+
Input(),
|
15562
|
+
__metadata("design:type", Number),
|
15563
|
+
__metadata("design:paramtypes", [Number])
|
15564
|
+
], GIPIRangePageComponent.prototype, "max", null);
|
15565
|
+
__decorate([
|
15566
|
+
Input(),
|
15567
|
+
__metadata("design:type", Number),
|
15568
|
+
__metadata("design:paramtypes", [Number])
|
15569
|
+
], GIPIRangePageComponent.prototype, "step", null);
|
15570
|
+
__decorate([
|
15571
|
+
Input(),
|
15572
|
+
__metadata("design:type", Boolean),
|
15573
|
+
__metadata("design:paramtypes", [Boolean])
|
15574
|
+
], GIPIRangePageComponent.prototype, "required", null);
|
15575
|
+
__decorate([
|
15576
|
+
Input(),
|
15577
|
+
__metadata("design:type", Boolean),
|
15578
|
+
__metadata("design:paramtypes", [Boolean])
|
15579
|
+
], GIPIRangePageComponent.prototype, "disabled", null);
|
15580
|
+
GIPIRangePageComponent = GIPIRangePageComponent_1 = __decorate([
|
15581
|
+
Component({
|
15582
|
+
selector: 'gipi-range-page',
|
15583
|
+
template: "<label *ngIf=\"label\"\n class=\"input-label\"\n [attr.for]=\"id\">\n {{ label }}\n <span *ngIf=\"required\"> * </span>\n <gipi-helpful-tip *ngIf=\"tooltip && label\"\n [tooltip]=\"tooltip\">\n </gipi-helpful-tip>\n</label>\n\n<div class=\"input-content\">\n <div class=\"prefix\"\n [class.disabled]=\"disabled\"\n (click)=\"previous()\">\n <mat-icon>chevron_left</mat-icon>\n </div>\n <input #startInput\n matInput\n class=\"input-element\"\n type=\"number\"\n [attr.id]=\"id\"\n [attr.name]=\"name\"\n [min]=\"min\"\n [max]=\"max\"\n [maxlength]=\"10\"\n [placeholder]=\"placeholderStart\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [readOnly]=\"false\"\n [autocomplete]=\"'off'\"\n [autofocus]=\"false\"\n [(ngModel)]=\"_startPage\"\n (keyup)=\"updateEndPage()\"\n (focus)=\"selectText(startInput)\"\n (click)=\"selectText(startInput)\" />\n <div class=\"infix\">\n a\n </div>\n <input #endInput\n matInput\n class=\"input-element\"\n type=\"number\"\n [attr.id]=\"id\"\n [attr.name]=\"name\"\n [min]=\"_startPage\"\n [max]=\"max\"\n [maxlength]=\"10\"\n [placeholder]=\"placeholderEnd\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [readOnly]=\"false\"\n [autocomplete]=\"'off'\"\n [autofocus]=\"false\"\n [(ngModel)]=\"_endPage\"\n (keyup)=\"updateStartPage()\"\n (focus)=\"selectText(endInput)\"\n (click)=\"selectText(endInput)\" />\n <div class=\"suffix\"\n [class.disabled]=\"disabled\"\n (click)=\"next()\">\n <mat-icon>chevron_right</mat-icon>\n </div>\n</div>\n\n<small *ngIf=\"help\"\n class=\"input-help\">\n {{ help }}\n</small>",
|
15584
|
+
providers: [
|
15585
|
+
{
|
15586
|
+
provide: NG_VALUE_ACCESSOR,
|
15587
|
+
useExisting: forwardRef(function () { return GIPIRangePageComponent_1; }),
|
15588
|
+
multi: true
|
15589
|
+
},
|
15590
|
+
],
|
15591
|
+
styles: [":host{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}:host .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}:host .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}:host .input-content{display:flex;font-family:inherit;font-size:inherit;color:inherit;height:4rem;background:#fff;border:1px solid rgba(0,0,0,.12);transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem}:host .input-content .input-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0;text-align:center;margin:0!important}:host .input-content .input-element::-webkit-inner-spin-button,:host .input-content .input-element::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;opacity:0}:host .input-content:has(.input-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}:host .input-content:has(.input-element:disabled) .suffix>mat-icon{color:#bbbdc1!important}:host .input-content .input-element:disabled{cursor:not-allowed}:host .input-content .infix,:host .input-content .prefix,:host .input-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;padding-inline:.8rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:.2s;background-color:#e0313e}:host .input-content .infix>mat-icon,:host .input-content .prefix>mat-icon,:host .input-content .suffix>mat-icon{width:2rem;height:2rem;font-size:2rem;color:#fff}:host .input-content .infix:not(.infix):not(.disabled):hover,:host .input-content .prefix:not(.infix):not(.disabled):hover,:host .input-content .suffix:not(.infix):not(.disabled):hover{background-color:#cc2d38}:host .input-content .infix:not(.infix):not(.disabled):active,:host .input-content .prefix:not(.infix):not(.disabled):active,:host .input-content .suffix:not(.infix):not(.disabled):active{background-color:#9f232c}:host .input-content .prefix.disabled,:host .input-content .suffix.disabled{background-color:#d1d2d4}:host .input-content .prefix.disabled>mat-icon,:host .input-content .suffix.disabled>mat-icon{color:#9a9da2}:host .input-content .prefix{border-right:1px solid rgba(0,0,0,.12);border-radius:.6rem 0 0 .6rem;cursor:pointer}:host .input-content .infix{width:1rem;padding:0;background-color:transparent}:host .input-content .suffix{border-left:1px solid rgba(0,0,0,.12);border-radius:0 .6rem .6rem 0;cursor:pointer}:host .input-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::-webkit-input-placeholder{color:#bbbdc1}:-moz-placeholder{color:#bbbdc1}::-moz-placeholder{color:#bbbdc1}:-ms-input-placeholder{color:#bbbdc1}"]
|
15592
|
+
}),
|
15593
|
+
__metadata("design:paramtypes", [ElementRef,
|
15594
|
+
ChangeDetectorRef])
|
15595
|
+
], GIPIRangePageComponent);
|
15596
|
+
return GIPIRangePageComponent;
|
15597
|
+
}());
|
15598
|
+
|
15599
|
+
var nextUniqueId$g = 0;
|
15600
|
+
var GIPIRangeSliderComponent = /** @class */ (function () {
|
15601
|
+
function GIPIRangeSliderComponent(elementRef, _changeDetectorRef) {
|
15602
|
+
this.elementRef = elementRef;
|
15603
|
+
this._changeDetectorRef = _changeDetectorRef;
|
15604
|
+
this._name = "gipi-range-slider-" + nextUniqueId$g++;
|
15605
|
+
this.id = this._name;
|
15606
|
+
this.name = this._name;
|
15607
|
+
this.label = '';
|
15608
|
+
this.help = '';
|
15609
|
+
this.min = 1;
|
15610
|
+
this.max = 100;
|
15611
|
+
this._maxRange = 5;
|
15612
|
+
this._fromValue = 1;
|
15613
|
+
this._toValue = 1;
|
15614
|
+
this._step = 1;
|
15615
|
+
this._disabled = false;
|
15616
|
+
this._required = false;
|
15617
|
+
this.onChange = function () { };
|
15618
|
+
this.onTouched = function () { };
|
15619
|
+
}
|
15620
|
+
GIPIRangeSliderComponent_1 = GIPIRangeSliderComponent;
|
15621
|
+
Object.defineProperty(GIPIRangeSliderComponent.prototype, "maxRange", {
|
15622
|
+
get: function () {
|
15623
|
+
return this._maxRange || 5;
|
15624
|
+
},
|
15625
|
+
set: function (value) {
|
15626
|
+
if (!value || (value <= 0)) {
|
15627
|
+
throw new Error('Minimum value for "maxRange" must be 1');
|
15628
|
+
}
|
15629
|
+
this._maxRange = value || 5;
|
15630
|
+
},
|
15631
|
+
enumerable: false,
|
15632
|
+
configurable: true
|
15633
|
+
});
|
15634
|
+
Object.defineProperty(GIPIRangeSliderComponent.prototype, "fromValue", {
|
15635
|
+
get: function () {
|
15636
|
+
return this._fromValue || 1;
|
15637
|
+
},
|
15638
|
+
set: function (value) {
|
15639
|
+
if (!value || (value <= 0)) {
|
15640
|
+
throw new Error('Minimum value for "from" must be 1');
|
15641
|
+
}
|
15642
|
+
this._fromValue = value || 1;
|
15643
|
+
},
|
15644
|
+
enumerable: false,
|
15645
|
+
configurable: true
|
15646
|
+
});
|
15647
|
+
Object.defineProperty(GIPIRangeSliderComponent.prototype, "toValue", {
|
15648
|
+
get: function () {
|
15649
|
+
return this._toValue || 1;
|
15650
|
+
},
|
15651
|
+
set: function (value) {
|
15652
|
+
if (!value || (value <= 0)) {
|
15653
|
+
throw new Error('Minimum value for "to" must be 1');
|
15654
|
+
}
|
15655
|
+
this._toValue = value || 1;
|
15656
|
+
},
|
15657
|
+
enumerable: false,
|
15658
|
+
configurable: true
|
15659
|
+
});
|
15660
|
+
Object.defineProperty(GIPIRangeSliderComponent.prototype, "step", {
|
15661
|
+
get: function () {
|
15662
|
+
return this._step || 1;
|
15663
|
+
},
|
15664
|
+
set: function (value) {
|
15665
|
+
if (!value || (value <= 0)) {
|
15666
|
+
throw new Error('Minimum value for "step" must be 1');
|
15667
|
+
}
|
15668
|
+
this._step = value || 1;
|
15669
|
+
},
|
15670
|
+
enumerable: false,
|
15671
|
+
configurable: true
|
15672
|
+
});
|
15673
|
+
Object.defineProperty(GIPIRangeSliderComponent.prototype, "disabled", {
|
15674
|
+
get: function () {
|
15675
|
+
return this._disabled;
|
15676
|
+
},
|
15677
|
+
set: function (value) {
|
15678
|
+
this._disabled = coerceBooleanProperty(value);
|
15679
|
+
},
|
15680
|
+
enumerable: false,
|
15681
|
+
configurable: true
|
15682
|
+
});
|
15683
|
+
Object.defineProperty(GIPIRangeSliderComponent.prototype, "required", {
|
15684
|
+
get: function () {
|
15685
|
+
return this._required;
|
15686
|
+
},
|
15687
|
+
set: function (value) {
|
15688
|
+
this._required = coerceBooleanProperty(value);
|
15689
|
+
},
|
15690
|
+
enumerable: false,
|
15691
|
+
configurable: true
|
15692
|
+
});
|
15693
|
+
GIPIRangeSliderComponent.prototype.ngOnInit = function () { };
|
15694
|
+
GIPIRangeSliderComponent.prototype.ngAfterViewInit = function () {
|
15695
|
+
this._fillSlider();
|
15696
|
+
this._setToggleAccessible();
|
15697
|
+
};
|
15698
|
+
GIPIRangeSliderComponent.prototype.ngOnDestroy = function () { };
|
15699
|
+
GIPIRangeSliderComponent.prototype.writeValue = function (value) {
|
15700
|
+
if (value) {
|
15701
|
+
this.fromValue = value.from;
|
15702
|
+
this.toValue = value.to;
|
15703
|
+
if (this.fromSlider && this.toSlider) {
|
15704
|
+
this.fromSlider.nativeElement.value = this.fromValue.toString();
|
15705
|
+
this.toSlider.nativeElement.value = this.toValue.toString();
|
15706
|
+
this._fillSlider();
|
15707
|
+
this._setToggleAccessible();
|
15708
|
+
}
|
15709
|
+
}
|
15710
|
+
};
|
15711
|
+
GIPIRangeSliderComponent.prototype.registerOnChange = function (fn) {
|
15712
|
+
this.onChange = fn;
|
15713
|
+
};
|
15714
|
+
GIPIRangeSliderComponent.prototype.registerOnTouched = function (fn) {
|
15715
|
+
this.onTouched = fn;
|
15716
|
+
};
|
15717
|
+
GIPIRangeSliderComponent.prototype.setDisabledState = function (isDisabled) {
|
15718
|
+
this.disabled = isDisabled;
|
15719
|
+
this._changeDetectorRef.markForCheck();
|
15720
|
+
};
|
15721
|
+
GIPIRangeSliderComponent.prototype.controlFromInput = function (isByNgModel) {
|
15722
|
+
var _a = __read(isByNgModel ? [this.fromValue, this.toValue] : this._getParsed(this.fromSlider.nativeElement, this.toSlider.nativeElement), 2), from = _a[0], to = _a[1];
|
15723
|
+
from = this._roundToStep(from);
|
15724
|
+
to = this._roundToStep(to);
|
15725
|
+
// if ((to - from) > this.maxRange) {
|
15726
|
+
// from = to - this.maxRange;
|
15727
|
+
// }
|
15728
|
+
this._fillSlider();
|
15729
|
+
this._setToggleAccessible();
|
15730
|
+
if (from > to) {
|
15731
|
+
this.fromValue = to;
|
15732
|
+
}
|
15733
|
+
this.fromSlider.nativeElement.value = this.fromValue.toString();
|
15734
|
+
this._notifyValueChange();
|
15735
|
+
};
|
15736
|
+
GIPIRangeSliderComponent.prototype.controlToInput = function (isByNgModel) {
|
15737
|
+
var _a = __read(isByNgModel ? [this.fromValue, this.toValue] : this._getParsed(this.fromSlider.nativeElement, this.toSlider.nativeElement), 2), from = _a[0], to = _a[1];
|
15738
|
+
from = this._roundToStep(from);
|
15739
|
+
to = this._roundToStep(to);
|
15740
|
+
// if ((to - from) > this.maxRange) {
|
15741
|
+
// to = from + this.maxRange;
|
15742
|
+
// }
|
15743
|
+
this._fillSlider();
|
15744
|
+
this._setToggleAccessible();
|
15745
|
+
if (from <= to) {
|
15746
|
+
this.toValue = to;
|
15747
|
+
}
|
15748
|
+
else {
|
15749
|
+
this.toValue = from;
|
15750
|
+
}
|
15751
|
+
this.toSlider.nativeElement.value = this.toValue.toString();
|
15752
|
+
this._notifyValueChange();
|
15753
|
+
};
|
15754
|
+
GIPIRangeSliderComponent.prototype.controlFromSlider = function () {
|
15755
|
+
var _a = __read(this._getParsed(this.fromSlider.nativeElement, this.toSlider.nativeElement), 2), from = _a[0], to = _a[1];
|
15756
|
+
from = this._roundToStep(from);
|
15757
|
+
to = this._roundToStep(to);
|
15758
|
+
if ((to - from) > this.maxRange) {
|
15759
|
+
from = to - this.maxRange;
|
15760
|
+
}
|
15761
|
+
this._fillSlider();
|
15762
|
+
this._setToggleAccessible();
|
15763
|
+
if ((to - from) === this.maxRange) {
|
15764
|
+
var _b = __read(this._getParsed(this.fromSlider.nativeElement, this.toSlider.nativeElement), 2), from_1 = _b[0], to_1 = _b[1];
|
15765
|
+
from_1 = this._roundToStep(from_1);
|
15766
|
+
to_1 = this._roundToStep(to_1);
|
15767
|
+
if ((to_1 - from_1) > this.maxRange) {
|
15768
|
+
to_1 = from_1 + this.maxRange;
|
15769
|
+
}
|
15770
|
+
this._fillSlider();
|
15771
|
+
if (from_1 <= to_1) {
|
15772
|
+
this.toValue = to_1;
|
15773
|
+
}
|
15774
|
+
else {
|
15775
|
+
this.toValue = from_1;
|
15776
|
+
}
|
15777
|
+
this.toSlider.nativeElement.value = this.toValue.toString();
|
15778
|
+
}
|
15779
|
+
if (from >= to) {
|
15780
|
+
this.fromValue = to;
|
15781
|
+
}
|
15782
|
+
else {
|
15783
|
+
this.fromValue = from;
|
15784
|
+
}
|
15785
|
+
this.fromSlider.nativeElement.value = this.fromValue.toString();
|
15786
|
+
this._notifyValueChange();
|
15787
|
+
};
|
15788
|
+
GIPIRangeSliderComponent.prototype.controlToSlider = function () {
|
15789
|
+
var _a = __read(this._getParsed(this.fromSlider.nativeElement, this.toSlider.nativeElement), 2), from = _a[0], to = _a[1];
|
15790
|
+
from = this._roundToStep(from);
|
15791
|
+
to = this._roundToStep(to);
|
15792
|
+
if ((to - from) > this.maxRange) {
|
15793
|
+
to = from + this.maxRange;
|
15794
|
+
}
|
15795
|
+
this._fillSlider();
|
15796
|
+
this._setToggleAccessible();
|
15797
|
+
if ((to - from) === this.maxRange) {
|
15798
|
+
var _b = __read(this._getParsed(this.fromSlider.nativeElement, this.toSlider.nativeElement), 2), from_2 = _b[0], to_2 = _b[1];
|
15799
|
+
from_2 = this._roundToStep(from_2);
|
15800
|
+
to_2 = this._roundToStep(to_2);
|
15801
|
+
if ((to_2 - from_2) > this.maxRange) {
|
15802
|
+
from_2 = to_2 - this.maxRange;
|
15803
|
+
}
|
15804
|
+
this._fillSlider();
|
15805
|
+
if (from_2 >= to_2) {
|
15806
|
+
this.fromValue = to_2;
|
15807
|
+
}
|
15808
|
+
else {
|
15809
|
+
this.fromValue = from_2;
|
15810
|
+
}
|
15811
|
+
this.fromSlider.nativeElement.value = this.fromValue.toString();
|
15812
|
+
}
|
15813
|
+
if (from <= to) {
|
15814
|
+
this.toValue = to;
|
15815
|
+
}
|
15816
|
+
else {
|
15817
|
+
this.toValue = from;
|
15818
|
+
}
|
15819
|
+
this.toSlider.nativeElement.value = this.toValue.toString();
|
15820
|
+
this._notifyValueChange();
|
15821
|
+
};
|
15822
|
+
GIPIRangeSliderComponent.prototype._getParsed = function (currentFrom, currentTo) {
|
15823
|
+
var from = parseInt(currentFrom.value, 10);
|
15824
|
+
var to = parseInt(currentTo.value, 10);
|
15825
|
+
return [from, to];
|
15826
|
+
};
|
15827
|
+
GIPIRangeSliderComponent.prototype._fillSlider = function () {
|
15828
|
+
var fromSliderEl = this.fromSlider.nativeElement;
|
15829
|
+
var toSliderEl = this.toSlider.nativeElement;
|
15830
|
+
var rangeDistance = Number(toSliderEl.max) - Number(toSliderEl.min);
|
15831
|
+
var fromPosition = (this.fromValue - Number(fromSliderEl.min));
|
15832
|
+
var toPosition = (this.toValue - Number(toSliderEl.min));
|
15833
|
+
var sliderColor = '#e0e1e2';
|
15834
|
+
var rangeColor = '#f1a0a6';
|
15835
|
+
toSliderEl.style.background = "linear-gradient(\n to right,\n " + sliderColor + " 0%,\n " + sliderColor + " " + (fromPosition) / (rangeDistance) * 100 + "%,\n " + rangeColor + " " + ((fromPosition) / (rangeDistance)) * 100 + "%,\n " + rangeColor + " " + (toPosition) / (rangeDistance) * 100 + "%,\n " + sliderColor + " " + (toPosition) / (rangeDistance) * 100 + "%,\n " + sliderColor + " 100%)";
|
15836
|
+
};
|
15837
|
+
GIPIRangeSliderComponent.prototype._setToggleAccessible = function () {
|
15838
|
+
var fromInput = this.fromSlider.nativeElement;
|
15839
|
+
var toInput = this.toSlider.nativeElement;
|
15840
|
+
var fromValue = parseInt(fromInput.value, 10);
|
15841
|
+
var toValue = parseInt(toInput.value, 10);
|
15842
|
+
if (fromValue <= parseInt(fromInput.min, 10) && toValue <= parseInt(toInput.min, 10)) {
|
15843
|
+
// Ambos estão no mínimo
|
15844
|
+
fromInput.style.zIndex = '1';
|
15845
|
+
toInput.style.zIndex = '2';
|
15846
|
+
}
|
15847
|
+
else if (fromValue >= parseInt(fromInput.max, 10) && toValue >= parseInt(toInput.max, 10)) {
|
15848
|
+
// Ambos estão no máximo
|
15849
|
+
fromInput.style.zIndex = '2';
|
15850
|
+
toInput.style.zIndex = '1';
|
15851
|
+
}
|
15852
|
+
else {
|
15853
|
+
// Caso geral
|
15854
|
+
fromInput.style.zIndex = '2';
|
15855
|
+
toInput.style.zIndex = '1';
|
15856
|
+
}
|
15857
|
+
};
|
15858
|
+
GIPIRangeSliderComponent.prototype._roundToStep = function (value) {
|
15859
|
+
return Math.round(value / this.step) * this.step;
|
15860
|
+
};
|
15861
|
+
GIPIRangeSliderComponent.prototype._notifyValueChange = function () {
|
15862
|
+
this.onChange({ from: this.fromValue, to: this.toValue });
|
15863
|
+
};
|
15864
|
+
GIPIRangeSliderComponent.prototype.onBlur = function () {
|
15865
|
+
this.onTouched();
|
15866
|
+
};
|
15867
|
+
var GIPIRangeSliderComponent_1;
|
15868
|
+
GIPIRangeSliderComponent.ctorParameters = function () { return [
|
15869
|
+
{ type: ElementRef },
|
15870
|
+
{ type: ChangeDetectorRef }
|
15871
|
+
]; };
|
15872
|
+
__decorate([
|
15873
|
+
ViewChild('fromSlider', { static: false }),
|
15874
|
+
__metadata("design:type", ElementRef)
|
15875
|
+
], GIPIRangeSliderComponent.prototype, "fromSlider", void 0);
|
15876
|
+
__decorate([
|
15877
|
+
ViewChild('toSlider', { static: false }),
|
15878
|
+
__metadata("design:type", ElementRef)
|
15879
|
+
], GIPIRangeSliderComponent.prototype, "toSlider", void 0);
|
15880
|
+
__decorate([
|
15881
|
+
Input(),
|
15882
|
+
__metadata("design:type", String)
|
15883
|
+
], GIPIRangeSliderComponent.prototype, "id", void 0);
|
15884
|
+
__decorate([
|
15885
|
+
Input(),
|
15886
|
+
__metadata("design:type", String)
|
15887
|
+
], GIPIRangeSliderComponent.prototype, "name", void 0);
|
15888
|
+
__decorate([
|
15889
|
+
Input(),
|
15890
|
+
__metadata("design:type", String)
|
15891
|
+
], GIPIRangeSliderComponent.prototype, "label", void 0);
|
15892
|
+
__decorate([
|
15893
|
+
Input(),
|
15894
|
+
__metadata("design:type", String)
|
15895
|
+
], GIPIRangeSliderComponent.prototype, "help", void 0);
|
15896
|
+
__decorate([
|
15897
|
+
Input(),
|
15898
|
+
__metadata("design:type", Number)
|
15899
|
+
], GIPIRangeSliderComponent.prototype, "min", void 0);
|
15900
|
+
__decorate([
|
15901
|
+
Input(),
|
15902
|
+
__metadata("design:type", Number)
|
15903
|
+
], GIPIRangeSliderComponent.prototype, "max", void 0);
|
15904
|
+
__decorate([
|
15905
|
+
Input(),
|
15906
|
+
__metadata("design:type", Number),
|
15907
|
+
__metadata("design:paramtypes", [Number])
|
15908
|
+
], GIPIRangeSliderComponent.prototype, "maxRange", null);
|
15909
|
+
__decorate([
|
15910
|
+
Input('from'),
|
15911
|
+
__metadata("design:type", Number),
|
15912
|
+
__metadata("design:paramtypes", [Number])
|
15913
|
+
], GIPIRangeSliderComponent.prototype, "fromValue", null);
|
15914
|
+
__decorate([
|
15915
|
+
Input('to'),
|
15916
|
+
__metadata("design:type", Number),
|
15917
|
+
__metadata("design:paramtypes", [Number])
|
15918
|
+
], GIPIRangeSliderComponent.prototype, "toValue", null);
|
15919
|
+
__decorate([
|
15920
|
+
Input(),
|
15921
|
+
__metadata("design:type", Number),
|
15922
|
+
__metadata("design:paramtypes", [Number])
|
15923
|
+
], GIPIRangeSliderComponent.prototype, "step", null);
|
15924
|
+
__decorate([
|
15925
|
+
Input(),
|
15926
|
+
__metadata("design:type", Boolean),
|
15927
|
+
__metadata("design:paramtypes", [Boolean])
|
15928
|
+
], GIPIRangeSliderComponent.prototype, "disabled", null);
|
15929
|
+
__decorate([
|
15930
|
+
Input(),
|
15931
|
+
__metadata("design:type", Boolean),
|
15932
|
+
__metadata("design:paramtypes", [Boolean])
|
15933
|
+
], GIPIRangeSliderComponent.prototype, "required", null);
|
15934
|
+
GIPIRangeSliderComponent = GIPIRangeSliderComponent_1 = __decorate([
|
15935
|
+
Component({
|
15936
|
+
selector: 'gipi-range-slider',
|
15937
|
+
exportAs: 'gipiRangeSlider',
|
15938
|
+
template: "<label *ngIf=\"label\"\n class=\"input-label\"\n [attr.for]=\"id\">\n {{ label }}\n <span *ngIf=\"required\"> * </span>\n</label>\n\n<div class=\"slider-wrapper\">\n <!-- <input type=\"number\"\n [min]=\"min\"\n [max]=\"max\"\n [step]=\"step\"\n [(ngModel)]=\"fromValue\"\n (ngModelChange)=\"controlFromInput(true)\"\n (input)=\"controlFromInput(false)\"\n (blur)=\"onBlur()\" /> -->\n <span class=\"value min\">\n {{ min }}\n </span>\n <div class=\"sliders-control\">\n <input #fromSlider\n id=\"fromSlider\"\n type=\"range\"\n class=\"from-value\"\n [min]=\"min\"\n [max]=\"max\"\n [value]=\"fromValue\"\n (input)=\"controlFromSlider()\"\n (mouseup)=\"controlFromSlider()\"\n (blur)=\"onBlur()\" />\n <input #toSlider\n id=\"toSlider\"\n type=\"range\"\n class=\"to-value\"\n [min]=\"min\"\n [max]=\"max\"\n [value]=\"toValue\"\n (input)=\"controlToSlider()\"\n (mouseup)=\"controlToSlider()\"\n (blur)=\"onBlur()\" />\n </div>\n <span class=\"value max\">\n {{ max }}\n </span>\n <!-- <input type=\"number\"\n [min]=\"min\"\n [max]=\"max\"\n [step]=\"step\"\n [(ngModel)]=\"toValue\"\n (ngModelChange)=\"controlToInput(true)\"\n (input)=\"controlToInput(false)\"\n (blur)=\"onBlur()\" /> -->\n</div>\n<span class=\"value min\">\n {{ fromValue }} - {{ toValue }}\n</span>\n<small *ngIf=\"help\"\n class=\"input-help\">\n {{ help }}\n</small>",
|
15939
|
+
providers: [
|
15940
|
+
{
|
15941
|
+
provide: NG_VALUE_ACCESSOR,
|
15942
|
+
useExisting: forwardRef(function () { return GIPIRangeSliderComponent_1; }),
|
15943
|
+
multi: true
|
15944
|
+
},
|
15945
|
+
],
|
15946
|
+
host: {
|
15947
|
+
'class': 'gipi-range-slider',
|
15948
|
+
},
|
15949
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
15950
|
+
styles: [":host{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}:host .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}:host .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}:host .slider-wrapper{display:flex;align-items:center;justify-content:space-between;gap:1.6rem}:host .slider-wrapper>input{display:flex;font-family:inherit;font-size:inherit;color:inherit;text-align:center;padding:.75rem .8rem;background:#fff;border:1px solid rgba(0,0,0,.12);transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem;outline:0}:host .sliders-control{display:flex;align-items:center;justify-content:center;padding:2rem;position:relative;flex:1}:host .from-value,:host .to-value{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:.6rem;border-radius:.4rem;width:100%;position:absolute;background-color:#e0e1e2;pointer-events:none;outline:0}:host .from-value::-webkit-slider-thumb,:host .to-value::-webkit-slider-thumb{-webkit-appearance:none;display:block;width:1.4rem;height:1.4rem;border-radius:50%;background-color:#e0313e;pointer-events:all;box-shadow:0 .5px 0 0 rgba(0,0,0,.08),0 1px 1px 0 rgba(0,0,0,.14);cursor:-webkit-grab;cursor:grab;outline:0}:host .from-value::-webkit-slider-thumb:hover,:host .to-value::-webkit-slider-thumb:hover{background-color:#cc2d38}:host .from-value::-webkit-slider-thumb:active,:host .to-value::-webkit-slider-thumb:active{box-shadow:inset 0 0 3px #e0313e,0 0 9px #e0313e;-webkit-box-shadow:inset 0 0 3px #e0313e,0 0 9px #e0313e;cursor:-webkit-grabbing;cursor:grabbing}:host input[type=number]{border:1px solid rgba(0,0,0,.12);color:#131313;width:50px;height:30px;font-size:20px;outline:0}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;opacity:0}:host #fromSlider{height:0;z-index:1}"]
|
15951
|
+
}),
|
15952
|
+
__metadata("design:paramtypes", [ElementRef,
|
15953
|
+
ChangeDetectorRef])
|
15954
|
+
], GIPIRangeSliderComponent);
|
15955
|
+
return GIPIRangeSliderComponent;
|
15956
|
+
}());
|
15957
|
+
|
15958
|
+
var GIPISelectButtonComponent = /** @class */ (function () {
|
15959
|
+
function GIPISelectButtonComponent(_elementRef, _changeDetectorRef) {
|
15960
|
+
this._elementRef = _elementRef;
|
15961
|
+
this._changeDetectorRef = _changeDetectorRef;
|
15962
|
+
this.isButtonPrimary = this._hasHostAttributes('gipi-primary');
|
15963
|
+
this.isButtonSecondary = this._hasHostAttributes('gipi-secondary');
|
15964
|
+
this.required = false;
|
15965
|
+
this.multiple = false;
|
15966
|
+
this.disabled = false;
|
15967
|
+
this.onOptionClick = new EventEmitter();
|
15968
|
+
this.onChange = new EventEmitter();
|
15969
|
+
this.onModelChange = function () { };
|
15970
|
+
this.onModelTouched = function () { };
|
15971
|
+
}
|
15972
|
+
GIPISelectButtonComponent_1 = GIPISelectButtonComponent;
|
15973
|
+
GIPISelectButtonComponent.prototype.ngOnInit = function () { };
|
15974
|
+
GIPISelectButtonComponent.prototype.writeValue = function (obj) {
|
15975
|
+
this.value = obj;
|
15976
|
+
this._changeDetectorRef.markForCheck();
|
15977
|
+
};
|
15978
|
+
GIPISelectButtonComponent.prototype.registerOnChange = function (fn) {
|
15979
|
+
this.onModelChange = fn;
|
15980
|
+
};
|
15981
|
+
GIPISelectButtonComponent.prototype.registerOnTouched = function (fn) {
|
15982
|
+
this.onModelTouched = fn;
|
15983
|
+
};
|
15984
|
+
GIPISelectButtonComponent.prototype.setDisabledState = function (isDisabled) {
|
15985
|
+
this.disabled = isDisabled;
|
15986
|
+
this._changeDetectorRef.markForCheck();
|
15987
|
+
};
|
15988
|
+
GIPISelectButtonComponent.prototype.getOptionLabel = function (option) {
|
15989
|
+
return this.optionLabel ? ObjectUtil.resolveFieldData(option, this.optionLabel) : option.label != undefined ? option.label : option;
|
15990
|
+
};
|
15991
|
+
GIPISelectButtonComponent.prototype.getOptionValue = function (option) {
|
15992
|
+
return this.optionValue ? ObjectUtil.resolveFieldData(option, this.optionValue) : this.optionLabel || option.value === undefined ? option : option.value;
|
15993
|
+
};
|
15994
|
+
GIPISelectButtonComponent.prototype.isOptionDisabled = function (option) {
|
15995
|
+
return this.optionDisabled ? ObjectUtil.resolveFieldData(option, this.optionDisabled) : option.disabled !== undefined ? option.disabled : false;
|
15996
|
+
};
|
15997
|
+
GIPISelectButtonComponent.prototype.onItemClick = function (event, option, index) {
|
15998
|
+
if (this.disabled || this.isOptionDisabled(option)) {
|
15999
|
+
return;
|
16000
|
+
}
|
16001
|
+
if (this.multiple) {
|
16002
|
+
if (this.isSelected(option)) {
|
16003
|
+
this.removeOption(option);
|
16004
|
+
}
|
16005
|
+
else {
|
16006
|
+
this.value = __spread((this.value || []), [this.getOptionValue(option)]);
|
16007
|
+
}
|
16008
|
+
this.onModelChange(this.value);
|
16009
|
+
this.onChange.emit({
|
16010
|
+
originalEvent: event,
|
16011
|
+
value: this.value
|
16012
|
+
});
|
16013
|
+
}
|
16014
|
+
else {
|
16015
|
+
var value = this.getOptionValue(option);
|
16016
|
+
if (this.value !== value) {
|
16017
|
+
this.value = this.getOptionValue(option);
|
16018
|
+
this.onModelChange(this.value);
|
16019
|
+
this.onChange.emit({
|
16020
|
+
originalEvent: event,
|
16021
|
+
value: this.value
|
16022
|
+
});
|
16023
|
+
}
|
16024
|
+
}
|
16025
|
+
this.onOptionClick.emit({
|
16026
|
+
originalEvent: event,
|
16027
|
+
option: option,
|
16028
|
+
index: index
|
16029
|
+
});
|
16030
|
+
};
|
16031
|
+
GIPISelectButtonComponent.prototype.isSelected = function (option) {
|
16032
|
+
var e_1, _a;
|
16033
|
+
var selected = false;
|
16034
|
+
var optionValue = this.getOptionValue(option);
|
16035
|
+
if (this.multiple) {
|
16036
|
+
if (this.value && Array.isArray(this.value)) {
|
16037
|
+
try {
|
16038
|
+
for (var _b = __values(this.value), _c = _b.next(); !_c.done; _c = _b.next()) {
|
16039
|
+
var val = _c.value;
|
16040
|
+
if (ObjectUtil.equals(val, optionValue, this.dataKey)) {
|
16041
|
+
selected = true;
|
16042
|
+
break;
|
16043
|
+
}
|
16044
|
+
}
|
16045
|
+
}
|
16046
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
16047
|
+
finally {
|
16048
|
+
try {
|
16049
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
16050
|
+
}
|
16051
|
+
finally { if (e_1) throw e_1.error; }
|
16052
|
+
}
|
16053
|
+
}
|
16054
|
+
}
|
16055
|
+
else {
|
16056
|
+
selected = ObjectUtil.equals(this.getOptionValue(option), this.value, this.dataKey);
|
16057
|
+
}
|
16058
|
+
return selected;
|
16059
|
+
};
|
16060
|
+
GIPISelectButtonComponent.prototype.removeOption = function (option) {
|
16061
|
+
var _this = this;
|
16062
|
+
this.value = this.value.filter(function (val) { return !ObjectUtil.equals(val, _this.getOptionValue(option), _this.dataKey); });
|
16063
|
+
};
|
16064
|
+
GIPISelectButtonComponent.prototype.onBlur = function () {
|
16065
|
+
this.onModelTouched();
|
15419
16066
|
};
|
15420
16067
|
GIPISelectButtonComponent.prototype._getHostElement = function () {
|
15421
16068
|
return this._elementRef.nativeElement;
|
@@ -15911,8 +16558,12 @@ var GIPISidenavComponent = /** @class */ (function () {
|
|
15911
16558
|
this._mouseEnter = false;
|
15912
16559
|
this.menuItems = [];
|
15913
16560
|
this.labelToggle = 'Retrair menu';
|
16561
|
+
this.showTagNewIntegration = false;
|
16562
|
+
this.showIntegration = false;
|
15914
16563
|
this.showConfiguration = false;
|
15915
16564
|
this.onClickMenuItem = new EventEmitter();
|
16565
|
+
this.onClickMenuIntegration = new EventEmitter();
|
16566
|
+
this.onClickMenuConfiguration = new EventEmitter();
|
15916
16567
|
}
|
15917
16568
|
GIPISidenavComponent_1 = GIPISidenavComponent;
|
15918
16569
|
GIPISidenavComponent.prototype.ngOnInit = function () { };
|
@@ -16102,6 +16753,26 @@ var GIPISidenavComponent = /** @class */ (function () {
|
|
16102
16753
|
Input(),
|
16103
16754
|
__metadata("design:type", String)
|
16104
16755
|
], GIPISidenavComponent.prototype, "labelToggle", void 0);
|
16756
|
+
__decorate([
|
16757
|
+
Input(),
|
16758
|
+
__metadata("design:type", Boolean)
|
16759
|
+
], GIPISidenavComponent.prototype, "showTagNewIntegration", void 0);
|
16760
|
+
__decorate([
|
16761
|
+
Input(),
|
16762
|
+
__metadata("design:type", String)
|
16763
|
+
], GIPISidenavComponent.prototype, "iconIntegration", void 0);
|
16764
|
+
__decorate([
|
16765
|
+
Input(),
|
16766
|
+
__metadata("design:type", String)
|
16767
|
+
], GIPISidenavComponent.prototype, "svgIconIntegration", void 0);
|
16768
|
+
__decorate([
|
16769
|
+
Input(),
|
16770
|
+
__metadata("design:type", String)
|
16771
|
+
], GIPISidenavComponent.prototype, "labelIntegration", void 0);
|
16772
|
+
__decorate([
|
16773
|
+
Input(),
|
16774
|
+
__metadata("design:type", Boolean)
|
16775
|
+
], GIPISidenavComponent.prototype, "showIntegration", void 0);
|
16105
16776
|
__decorate([
|
16106
16777
|
Input(),
|
16107
16778
|
__metadata("design:type", String)
|
@@ -16122,11 +16793,19 @@ var GIPISidenavComponent = /** @class */ (function () {
|
|
16122
16793
|
Output(),
|
16123
16794
|
__metadata("design:type", EventEmitter)
|
16124
16795
|
], GIPISidenavComponent.prototype, "onClickMenuItem", void 0);
|
16796
|
+
__decorate([
|
16797
|
+
Output(),
|
16798
|
+
__metadata("design:type", EventEmitter)
|
16799
|
+
], GIPISidenavComponent.prototype, "onClickMenuIntegration", void 0);
|
16800
|
+
__decorate([
|
16801
|
+
Output(),
|
16802
|
+
__metadata("design:type", EventEmitter)
|
16803
|
+
], GIPISidenavComponent.prototype, "onClickMenuConfiguration", void 0);
|
16125
16804
|
GIPISidenavComponent = GIPISidenavComponent_1 = __decorate([
|
16126
16805
|
Component({
|
16127
16806
|
selector: "gipi-sidenav",
|
16128
16807
|
exportAs: 'gipiSidenav',
|
16129
|
-
template: "<mat-sidenav #sidenav\n [mode]=\"(isScreenLarge | async) ? 'side' : 'over'\"\n class=\"sidenav\"\n [class.large-sidenav]=\"(isOpened | async)\"\n [class.small-sidenav]=\"!(isOpened | async)\"\n [disableClose]=\"(isScreenLarge | async)\"\n opened=\"true\">\n\n <div [ngClass]=\"{'sidenav-content-menu': true,\n 'show-
|
16808
|
+
template: "<mat-sidenav #sidenav\n [mode]=\"(isScreenLarge | async) ? 'side' : 'over'\"\n class=\"sidenav\"\n [class.large-sidenav]=\"(isOpened | async)\"\n [class.small-sidenav]=\"!(isOpened | async)\"\n [disableClose]=\"(isScreenLarge | async)\"\n opened=\"true\">\n\n <div [ngClass]=\"{'sidenav-content-menu': true,\n 'show-bottom': (showConfiguration || showIntegration)}\">\n\n <!-- Bot\u00E3o expandir e retrair o menu -->\n <button id=\"buttonToogleSidenav\"\n name=\"toggleSidenav\"\n class=\"toggle-sidenav\"\n (click)=\"toggleSidenav(); _mouseEnter = false;\">\n <mat-icon [@indicatorRotate]=\"(isOpened | async) ? 'opened': 'closed'\">\n chevron_right\n </mat-icon>\n\n {{ ((labelToggle) && (isOpened | async)) ? labelToggle : '' }}\n </button>\n\n <!-- Bot\u00E3o voltar do submenu -->\n <div class=\"sidenav-action-menu sidenav-menu-collapsable\">\n <a *ngIf=\"(isOpened | async) && (_levelOneMenuCollapsableSelected || _levelTwoMenuCollapsableSelected)\"\n (click)=\"onMenuCollapsableGoBack()\"\n (mouseenter)=\"!_mouseEnter && onMouseEnter()\"\n (mouseleave)=\"_mouseEnter && onMouseLeave()\">\n <mat-icon>\n arrow_back\n </mat-icon>\n <span>\n {{ (submenuBackButtonName | async) }}\n </span>\n </a>\n </div>\n\n <!-- Se o menu item for do tipo submenu -->\n <mat-nav-list class=\"sidenav-menu-list\"\n (mouseenter)=\"onMouseEnter()\"\n (mouseleave)=\"onMouseLeave()\">\n <div *ngFor=\"let menu of (levelMenuCollapsableSelected | async)\"\n class=\"sidenav-action-menu\">\n\n <a *ngIf=\"menu.type === 'ITEM'\"\n [routerLink]=\"menu.route\"\n [class.menu-active]=\"isMenuActive(menu)\"\n (click)=\"onMenuItemSelected(menu)\">\n <mat-icon *ngIf=\"menu.icon\">\n {{ menu.icon }}\n </mat-icon>\n <mat-icon *ngIf=\"menu.svgIcon\"\n [svgIcon]=\"menu.svgIcon\">\n </mat-icon>\n <span *ngIf=\"(isOpened | async)\">\n {{ getMenuName(menu.name) }}\n </span>\n </a>\n\n <a *ngIf=\"menu.type === 'COLLAPSABLE'\"\n [class.menu-active]=\"isMenuCollapsableActive(menu)\"\n (click)=\"onMenuCollapsableSelected(menu); onMenuItemSelected(menu, false)\">\n <mat-icon *ngIf=\"menu.icon\">\n {{ menu.icon }}\n </mat-icon>\n <mat-icon *ngIf=\"menu.svgIcon\"\n [svgIcon]=\"menu.svgIcon\">\n </mat-icon>\n <span *ngIf=\"(isOpened | async)\">\n {{ getMenuName(menu.name) }}\n </span>\n <mat-icon *ngIf=\"(isOpened | async)\">\n chevron_right\n </mat-icon>\n </a>\n\n </div>\n </mat-nav-list>\n </div>\n\n <div class=\"sidenav-action-menu sidenav-bottom-menu\">\n <a *ngIf=\"showIntegration\"\n (click)=\"onMenuItemSelected(null); onClickMenuIntegration.emit()\">\n <mat-icon *ngIf=\"iconIntegration\">\n {{ iconIntegration }}\n </mat-icon>\n <mat-icon *ngIf=\"svgIconIntegration\"\n [svgIcon]=\"svgIconIntegration\">\n </mat-icon>\n <span *ngIf=\"(labelIntegration) && (isOpened | async)\">\n {{ labelIntegration }}\n </span>\n <div class=\"tag-new\"\n *ngIf=\"showTagNewIntegration\">\n Novo\n </div>\n </a>\n\n <a *ngIf=\"showConfiguration\"\n (click)=\"onMenuItemSelected(null); onClickMenuConfiguration.emit()\">\n <mat-icon *ngIf=\"iconConfiguration\">\n {{ iconConfiguration }}\n </mat-icon>\n <mat-icon *ngIf=\"svgIconConfiguration\"\n [svgIcon]=\"svgIconConfiguration\">\n </mat-icon>\n <span *ngIf=\"(labelConfiguration) && (isOpened | async)\">\n {{ labelConfiguration }}\n </span>\n </a>\n </div>\n</mat-sidenav>\n",
|
16130
16809
|
encapsulation: ViewEncapsulation.None,
|
16131
16810
|
providers: [
|
16132
16811
|
{
|
@@ -16145,7 +16824,7 @@ var GIPISidenavComponent = /** @class */ (function () {
|
|
16145
16824
|
transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4,0.0,0.2,1)')),
|
16146
16825
|
])
|
16147
16826
|
],
|
16148
|
-
styles: [".sidenav{padding:.8rem 1.2rem;border-radius:5px;background-color:#fff;position:fixed!important;top:66px!important;bottom:8px!important;border:0!important}.sidenav.small-sidenav{overflow-y:auto;width:76px}.sidenav.small-sidenav .sidenav-
|
16827
|
+
styles: [".sidenav{padding:.8rem 1.2rem;border-radius:5px;background-color:#fff;position:fixed!important;top:66px!important;bottom:8px!important;border:0!important}.sidenav.small-sidenav{overflow-y:auto;width:76px}.sidenav.small-sidenav .sidenav-bottom-menu,.sidenav.small-sidenav .sidenav-content-menu .sidenav-menu-list .action-sidenav,.sidenav.small-sidenav .sidenav-content-menu .toggle-sidenav{text-align:center!important}.sidenav.large-sidenav{overflow-y:auto;width:248px}.sidenav .sidenav-content-menu{width:100%;background-color:#f5f5f6;border-radius:4px;display:flex;flex-direction:column;align-items:stretch;height:100%}.sidenav .sidenav-content-menu.show-bottom{height:calc(100% - 18px - 52px)!important}.sidenav .sidenav-content-menu .toggle-sidenav{all:unset;border-radius:4px;border:none;text-align:left;cursor:pointer;background-color:#e0313e;color:#fff;display:flex;align-items:center;gap:8px;padding:10px 16px}.sidenav .sidenav-content-menu .toggle-sidenav>mat-icon{width:2rem;height:2rem;font-size:2rem}.sidenav .sidenav-content-menu .toggle-sidenav:hover{background-color:#cc2d38}.sidenav .sidenav-content-menu .sidenav-menu-list{overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.sidenav .sidenav-content-menu .sidenav-menu-list::-webkit-scrollbar{display:none}.menu-active{color:#e0313e!important;background-color:#e0e1e2!important}.menu-active>mat-icon,.menu-active>mat-icon svg,.menu-active>mat-icon svg path{color:#e0313e!important;fill:#e0313e!important}.sidenav-action-menu{cursor:pointer;display:flex}.sidenav-action-menu.sidenav-bottom-menu{flex-direction:column;gap:1rem;margin-top:1rem}.sidenav-action-menu a{flex:1;padding:16px;background-color:#f5f5f6;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:1.4rem;font-weight:600}.sidenav-action-menu a:hover{background-color:#e0e1e2}.sidenav-action-menu a>span{flex:1;line-height:2rem}.sidenav-action-menu a>mat-icon{width:2rem;height:2rem;font-size:2rem;line-height:2rem;color:#595959;fill:#595959}.sidenav-action-menu a>mat-icon svg,.sidenav-action-menu a>mat-icon svg path{color:#595959;fill:#595959}.sidenav-bottom-menu a{border-radius:4px}.sidenav-menu-collapsable a{background-color:#e0e1e2}.sidenav-menu-collapsable a:hover{background-color:#d1d2d4}.mat-list-base{padding-top:0!important}.mat-drawer-inner-container{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;overflow:hidden!important}.mat-drawer:not(.mat-drawer-side){box-shadow:none!important}.tag-new{display:flex;align-items:center;justify-content:center;background-color:#e0313e;color:#fff;padding:.2rem .6rem;font-size:1rem;line-height:1.2rem;border-radius:.4rem}"]
|
16149
16828
|
}),
|
16150
16829
|
__metadata("design:paramtypes", [NavService,
|
16151
16830
|
BreakpointObserverService,
|
@@ -16154,6 +16833,128 @@ var GIPISidenavComponent = /** @class */ (function () {
|
|
16154
16833
|
return GIPISidenavComponent;
|
16155
16834
|
}());
|
16156
16835
|
|
16836
|
+
var nextUniqueId$h = 0;
|
16837
|
+
var GIPISlideToggleComponent = /** @class */ (function () {
|
16838
|
+
function GIPISlideToggleComponent(_changeDetectorRef) {
|
16839
|
+
this._changeDetectorRef = _changeDetectorRef;
|
16840
|
+
this._name = "gipi-slide-toggle-" + nextUniqueId$h++;
|
16841
|
+
this._slideToggleValue = false;
|
16842
|
+
this.id = this._name;
|
16843
|
+
this.name = this._name;
|
16844
|
+
this.label = '';
|
16845
|
+
this.help = '';
|
16846
|
+
this._required = false;
|
16847
|
+
this._disabled = false;
|
16848
|
+
this.onChange = function () { };
|
16849
|
+
this.onTouched = function () { };
|
16850
|
+
}
|
16851
|
+
GIPISlideToggleComponent_1 = GIPISlideToggleComponent;
|
16852
|
+
Object.defineProperty(GIPISlideToggleComponent.prototype, "slideToggleValue", {
|
16853
|
+
get: function () {
|
16854
|
+
return this._slideToggleValue;
|
16855
|
+
},
|
16856
|
+
set: function (value) {
|
16857
|
+
this._slideToggleValue = value;
|
16858
|
+
this.onChange(value);
|
16859
|
+
this.onTouched();
|
16860
|
+
},
|
16861
|
+
enumerable: false,
|
16862
|
+
configurable: true
|
16863
|
+
});
|
16864
|
+
Object.defineProperty(GIPISlideToggleComponent.prototype, "required", {
|
16865
|
+
get: function () {
|
16866
|
+
return this._required;
|
16867
|
+
},
|
16868
|
+
set: function (value) {
|
16869
|
+
if (this.required !== value) {
|
16870
|
+
this._required = coerceBooleanProperty(value);
|
16871
|
+
this._changeDetectorRef.markForCheck();
|
16872
|
+
}
|
16873
|
+
},
|
16874
|
+
enumerable: false,
|
16875
|
+
configurable: true
|
16876
|
+
});
|
16877
|
+
Object.defineProperty(GIPISlideToggleComponent.prototype, "disabled", {
|
16878
|
+
get: function () {
|
16879
|
+
return this._disabled;
|
16880
|
+
},
|
16881
|
+
set: function (value) {
|
16882
|
+
if (this.disabled !== value) {
|
16883
|
+
this._disabled = coerceBooleanProperty(value);
|
16884
|
+
this._changeDetectorRef.markForCheck();
|
16885
|
+
}
|
16886
|
+
},
|
16887
|
+
enumerable: false,
|
16888
|
+
configurable: true
|
16889
|
+
});
|
16890
|
+
GIPISlideToggleComponent.prototype.ngOnInit = function () { };
|
16891
|
+
GIPISlideToggleComponent.prototype.writeValue = function (value) {
|
16892
|
+
this.slideToggleValue = value;
|
16893
|
+
this._changeDetectorRef.markForCheck();
|
16894
|
+
};
|
16895
|
+
GIPISlideToggleComponent.prototype.registerOnChange = function (fn) {
|
16896
|
+
this.onChange = fn;
|
16897
|
+
};
|
16898
|
+
GIPISlideToggleComponent.prototype.registerOnTouched = function (fn) {
|
16899
|
+
this.onTouched = fn;
|
16900
|
+
};
|
16901
|
+
GIPISlideToggleComponent.prototype.setDisabledState = function (isDisabled) {
|
16902
|
+
this.disabled = isDisabled;
|
16903
|
+
this._changeDetectorRef.markForCheck();
|
16904
|
+
};
|
16905
|
+
var GIPISlideToggleComponent_1;
|
16906
|
+
GIPISlideToggleComponent.ctorParameters = function () { return [
|
16907
|
+
{ type: ChangeDetectorRef }
|
16908
|
+
]; };
|
16909
|
+
__decorate([
|
16910
|
+
Input(),
|
16911
|
+
__metadata("design:type", String)
|
16912
|
+
], GIPISlideToggleComponent.prototype, "id", void 0);
|
16913
|
+
__decorate([
|
16914
|
+
Input(),
|
16915
|
+
__metadata("design:type", String)
|
16916
|
+
], GIPISlideToggleComponent.prototype, "name", void 0);
|
16917
|
+
__decorate([
|
16918
|
+
Input(),
|
16919
|
+
__metadata("design:type", String)
|
16920
|
+
], GIPISlideToggleComponent.prototype, "label", void 0);
|
16921
|
+
__decorate([
|
16922
|
+
Input(),
|
16923
|
+
__metadata("design:type", String)
|
16924
|
+
], GIPISlideToggleComponent.prototype, "help", void 0);
|
16925
|
+
__decorate([
|
16926
|
+
Input(),
|
16927
|
+
__metadata("design:type", Boolean),
|
16928
|
+
__metadata("design:paramtypes", [Boolean])
|
16929
|
+
], GIPISlideToggleComponent.prototype, "required", null);
|
16930
|
+
__decorate([
|
16931
|
+
Input(),
|
16932
|
+
__metadata("design:type", Boolean),
|
16933
|
+
__metadata("design:paramtypes", [Boolean])
|
16934
|
+
], GIPISlideToggleComponent.prototype, "disabled", null);
|
16935
|
+
GIPISlideToggleComponent = GIPISlideToggleComponent_1 = __decorate([
|
16936
|
+
Component({
|
16937
|
+
selector: 'gipi-slide-toggle',
|
16938
|
+
exportAs: 'gipiSlideToggle',
|
16939
|
+
template: "<input class=\"toggle toggle-light\"\n type=\"checkbox\"\n [attr.id]=\"id\"\n [attr.name]=\"name\"\n [(ngModel)]=\"slideToggleValue\" />\n<label class=\"toggle-btn\"\n [attr.for]=\"id\">\n</label>\n<label class=\"toggle-label\"\n *ngIf=\"label\"\n [attr.for]=\"id\">\n {{ label }}\n</label>",
|
16940
|
+
providers: [
|
16941
|
+
{
|
16942
|
+
provide: NG_VALUE_ACCESSOR,
|
16943
|
+
useExisting: forwardRef(function () { return GIPISlideToggleComponent_1; }),
|
16944
|
+
multi: true,
|
16945
|
+
},
|
16946
|
+
],
|
16947
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
16948
|
+
host: {
|
16949
|
+
'class': 'gipi-slide-toggle',
|
16950
|
+
},
|
16951
|
+
styles: [":host{display:flex;align-items:center;cursor:pointer}.toggle-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-left:1rem;cursor:pointer}.toggle{display:none}.toggle ::-moz-selection,.toggle :after::-moz-selection,.toggle :before::-moz-selection,.toggle+.toggle-btn::-moz-selection,.toggle::-moz-selection,.toggle:after::-moz-selection,.toggle:before::-moz-selection{background:0 0}.toggle ::selection,.toggle :after::selection,.toggle :before::selection,.toggle+.toggle-btn::selection,.toggle::selection,.toggle:after::selection,.toggle:before::selection{background:0 0}.toggle+.toggle-btn{display:block;width:40px;height:24px;outline:0;background:#e0e1e2;border-radius:22px;padding:4px;transition:.4s;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.toggle+.toggle-btn:after,.toggle+.toggle-btn:before{content:\"\";display:block;width:16px;height:16px;position:relative}.toggle+.toggle-btn:after{left:0;background:#8c8f93;border-radius:50%;transition:.2s}.toggle+.toggle-btn:before{display:none}.toggle:checked+.toggle-btn:after{left:50%;background:#414244}"]
|
16952
|
+
}),
|
16953
|
+
__metadata("design:paramtypes", [ChangeDetectorRef])
|
16954
|
+
], GIPISlideToggleComponent);
|
16955
|
+
return GIPISlideToggleComponent;
|
16956
|
+
}());
|
16957
|
+
|
16157
16958
|
var GIPIStepperComponent = /** @class */ (function (_super) {
|
16158
16959
|
__extends(GIPIStepperComponent, _super);
|
16159
16960
|
function GIPIStepperComponent() {
|
@@ -16869,34 +17670,232 @@ var GIPITableComponent = /** @class */ (function () {
|
|
16869
17670
|
__metadata("design:type", Boolean)
|
16870
17671
|
], GIPITableComponent.prototype, "tableShowBorder", void 0);
|
16871
17672
|
__decorate([
|
16872
|
-
Input(),
|
16873
|
-
__metadata("design:type", Boolean)
|
16874
|
-
], GIPITableComponent.prototype, "hideHeader", void 0);
|
17673
|
+
Input(),
|
17674
|
+
__metadata("design:type", Boolean)
|
17675
|
+
], GIPITableComponent.prototype, "hideHeader", void 0);
|
17676
|
+
__decorate([
|
17677
|
+
Input(),
|
17678
|
+
__metadata("design:type", Boolean)
|
17679
|
+
], GIPITableComponent.prototype, "hideFooter", void 0);
|
17680
|
+
GIPITableComponent = GIPITableComponent_1 = __decorate([
|
17681
|
+
Component({
|
17682
|
+
selector: "gipi-table",
|
17683
|
+
exportAs: 'gipiTable',
|
17684
|
+
template: "<div role=\"table\"\n class=\"table\">\n <gipi-table-header [columns]=\"columns\"\n [loading]=\"loading\"\n [disabled]=\"disabled\"\n [sortActive]=\"sortActive\"\n [sortStart]=\"sortStart\"\n [sortLocked]=\"sortLocked\"\n [sortDisableClear]=\"sortDisableClear\"\n [sortAscendingIcon]=\"sortAscendingIcon\"\n [sortDescendingIcon]=\"sortDescendingIcon\"\n [sortUnsetIcon]=\"sortUnsetIcon\"\n (sortChange)=\"sortChange.emit($event)\">\n </gipi-table-header>\n <gipi-table-body [columns]=\"columns\"\n [loading]=\"loading\"\n [loadingDetail]=\"loadingDetail\"\n [disabled]=\"disabled\"\n [clickOnRow]=\"clickOnRow\"\n [expandable]=\"expandable\"\n [expandOnlyOneRow]=\"expandOnlyOneRow\"\n [rowExpandableFn]=\"rowExpandableFn\"\n [highlightRowFn]=\"highlightRowFn\"\n [trackBy]=\"trackBy\"\n [rowDetailRef]=\"rowDetailRef\"\n [rows]=\"rows\"\n (rowsExpandedChange)=\"rowsExpandedChange.emit($event)\"\n (rowDetailToggleChange)=\"rowDetailToggleChange.emit($event)\">\n </gipi-table-body>\n</div>",
|
17685
|
+
providers: [
|
17686
|
+
{
|
17687
|
+
provide: NG_VALUE_ACCESSOR,
|
17688
|
+
useExisting: forwardRef(function () { return GIPITableComponent_1; }),
|
17689
|
+
multi: true
|
17690
|
+
}
|
17691
|
+
],
|
17692
|
+
host: {
|
17693
|
+
'class': 'gipi-table',
|
17694
|
+
},
|
17695
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
17696
|
+
styles: [".table{border:1px solid #e0e1e2;border-radius:4px}"]
|
17697
|
+
}),
|
17698
|
+
__metadata("design:paramtypes", [])
|
17699
|
+
], GIPITableComponent);
|
17700
|
+
return GIPITableComponent;
|
17701
|
+
}());
|
17702
|
+
|
17703
|
+
var TabModel = /** @class */ (function () {
|
17704
|
+
function TabModel() {
|
17705
|
+
this.active = false;
|
17706
|
+
this.closeable = false;
|
17707
|
+
this.disabled = false;
|
17708
|
+
}
|
17709
|
+
return TabModel;
|
17710
|
+
}());
|
17711
|
+
|
17712
|
+
var GIPITabComponent = /** @class */ (function () {
|
17713
|
+
function GIPITabComponent() {
|
17714
|
+
this.active = false;
|
17715
|
+
this.closeable = false;
|
17716
|
+
this.disabled = false;
|
17717
|
+
this.selectionChange = new EventEmitter();
|
17718
|
+
}
|
17719
|
+
GIPITabComponent.prototype.ngOnInit = function () { };
|
17720
|
+
__decorate([
|
17721
|
+
Input(),
|
17722
|
+
__metadata("design:type", Number)
|
17723
|
+
], GIPITabComponent.prototype, "index", void 0);
|
17724
|
+
__decorate([
|
17725
|
+
Input(),
|
17726
|
+
__metadata("design:type", String)
|
17727
|
+
], GIPITabComponent.prototype, "label", void 0);
|
17728
|
+
__decorate([
|
17729
|
+
Input(),
|
17730
|
+
__metadata("design:type", Boolean)
|
17731
|
+
], GIPITabComponent.prototype, "active", void 0);
|
17732
|
+
__decorate([
|
17733
|
+
Input(),
|
17734
|
+
__metadata("design:type", TemplateRef)
|
17735
|
+
], GIPITabComponent.prototype, "template", void 0);
|
17736
|
+
__decorate([
|
17737
|
+
Input(),
|
17738
|
+
__metadata("design:type", Boolean)
|
17739
|
+
], GIPITabComponent.prototype, "closeable", void 0);
|
17740
|
+
__decorate([
|
17741
|
+
Input(),
|
17742
|
+
__metadata("design:type", Boolean)
|
17743
|
+
], GIPITabComponent.prototype, "disabled", void 0);
|
17744
|
+
__decorate([
|
17745
|
+
Input(),
|
17746
|
+
__metadata("design:type", Object)
|
17747
|
+
], GIPITabComponent.prototype, "data", void 0);
|
17748
|
+
__decorate([
|
17749
|
+
Input(),
|
17750
|
+
__metadata("design:type", String)
|
17751
|
+
], GIPITabComponent.prototype, "icon", void 0);
|
17752
|
+
__decorate([
|
17753
|
+
Input(),
|
17754
|
+
__metadata("design:type", String)
|
17755
|
+
], GIPITabComponent.prototype, "svgIcon", void 0);
|
17756
|
+
__decorate([
|
17757
|
+
Output(),
|
17758
|
+
__metadata("design:type", EventEmitter)
|
17759
|
+
], GIPITabComponent.prototype, "selectionChange", void 0);
|
17760
|
+
GIPITabComponent = __decorate([
|
17761
|
+
Component({
|
17762
|
+
selector: 'gipi-tab',
|
17763
|
+
exportAs: 'gipiTab',
|
17764
|
+
template: "<ng-container *ngIf=\"active\">\n <ng-content> </ng-content>\n <ng-container *ngIf=\"template\"\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"{$implicit: data}\">\n </ng-container>\n</ng-container>",
|
17765
|
+
host: {
|
17766
|
+
'class': 'gipi-tab',
|
17767
|
+
'[style.display]': '!active ? "none" : "block"',
|
17768
|
+
},
|
17769
|
+
styles: [":host{padding:1.6rem}"]
|
17770
|
+
}),
|
17771
|
+
__metadata("design:paramtypes", [])
|
17772
|
+
], GIPITabComponent);
|
17773
|
+
return GIPITabComponent;
|
17774
|
+
}());
|
17775
|
+
|
17776
|
+
var GIPITabGroupComponent = /** @class */ (function () {
|
17777
|
+
function GIPITabGroupComponent(elementRef, _componentFactoryResolver) {
|
17778
|
+
this.elementRef = elementRef;
|
17779
|
+
this._componentFactoryResolver = _componentFactoryResolver;
|
17780
|
+
this.dynamicTabs = [];
|
17781
|
+
}
|
17782
|
+
GIPITabGroupComponent.prototype.ngOnInit = function () { };
|
17783
|
+
GIPITabGroupComponent.prototype.ngAfterContentInit = function () {
|
17784
|
+
var activeTabs = this.tabQueryList.filter(function (tab) { return tab.active; });
|
17785
|
+
if (activeTabs.length === 0 && this.tabQueryList.length > 0) {
|
17786
|
+
this.selectTab(this.tabQueryList.first);
|
17787
|
+
}
|
17788
|
+
};
|
17789
|
+
GIPITabGroupComponent.prototype.openTab = function (label, template, data, closeable, disabled, action) {
|
17790
|
+
if (closeable === void 0) { closeable = false; }
|
17791
|
+
if (disabled === void 0) { disabled = false; }
|
17792
|
+
var tab = new TabModel();
|
17793
|
+
tab.label = label;
|
17794
|
+
tab.template = template;
|
17795
|
+
tab.data = data;
|
17796
|
+
tab.closeable = closeable;
|
17797
|
+
tab.disabled = disabled;
|
17798
|
+
tab.action = action;
|
17799
|
+
this._openTabs(Array(tab));
|
17800
|
+
};
|
17801
|
+
GIPITabGroupComponent.prototype._openTabs = function (tabList) {
|
17802
|
+
var _a;
|
17803
|
+
var _this = this;
|
17804
|
+
var tabsComponent = tabList.map(function (tab) { return _this._getTabComponent(tab.label, tab.template, tab.data, tab.closeable, tab.disabled, tab.action); });
|
17805
|
+
(_a = this.dynamicTabs).push.apply(_a, __spread(tabsComponent));
|
17806
|
+
this.selectTab(this.dynamicTabs[0]);
|
17807
|
+
};
|
17808
|
+
GIPITabGroupComponent.prototype._getTabComponent = function (label, template, data, closeable, disabled, action) {
|
17809
|
+
if (closeable === void 0) { closeable = false; }
|
17810
|
+
if (disabled === void 0) { disabled = false; }
|
17811
|
+
var componentFactory = this._componentFactoryResolver.resolveComponentFactory(GIPITabComponent);
|
17812
|
+
var componentRef = this.dynamicTabPlaceholder.viewContainer.createComponent(componentFactory);
|
17813
|
+
var instance = componentRef.instance;
|
17814
|
+
instance.label = label;
|
17815
|
+
instance.template = template;
|
17816
|
+
instance.data = data;
|
17817
|
+
instance.closeable = closeable;
|
17818
|
+
instance.disabled = disabled;
|
17819
|
+
instance.action = action;
|
17820
|
+
return componentRef.instance;
|
17821
|
+
};
|
17822
|
+
GIPITabGroupComponent.prototype.selectTab = function (tab) {
|
17823
|
+
this.tabQueryList.toArray().forEach(function (t) { return (t.active = false); });
|
17824
|
+
this.dynamicTabs.forEach(function (t) { return (t.active = false); });
|
17825
|
+
tab.active = true;
|
17826
|
+
tab.selectionChange.emit();
|
17827
|
+
if (tab.action) {
|
17828
|
+
tab.action(tab.data);
|
17829
|
+
}
|
17830
|
+
};
|
17831
|
+
GIPITabGroupComponent.prototype.closeTab = function (tab) {
|
17832
|
+
var index = this.dynamicTabs.indexOf(tab);
|
17833
|
+
this.dynamicTabs.splice(index, 1);
|
17834
|
+
var viewContainerRef = this.dynamicTabPlaceholder.viewContainer;
|
17835
|
+
viewContainerRef.remove(index);
|
17836
|
+
if (this.tabQueryList.length > 0) {
|
17837
|
+
this.selectTab(this.tabQueryList.first);
|
17838
|
+
}
|
17839
|
+
};
|
17840
|
+
GIPITabGroupComponent.prototype.closeActiveTab = function () {
|
17841
|
+
var activeTabs = this.dynamicTabs.filter(function (tab) { return tab.active; });
|
17842
|
+
if (activeTabs.length > 0) {
|
17843
|
+
this.closeTab(activeTabs[0]);
|
17844
|
+
}
|
17845
|
+
};
|
17846
|
+
GIPITabGroupComponent.prototype.closeAllTabs = function () {
|
17847
|
+
var _this = this;
|
17848
|
+
var tabs = Object.assign([], this.dynamicTabs);
|
17849
|
+
if (tabs.length > 0) {
|
17850
|
+
tabs.forEach(function (tab) { return _this.closeTab(tab); });
|
17851
|
+
}
|
17852
|
+
};
|
17853
|
+
GIPITabGroupComponent.prototype.nextTab = function () {
|
17854
|
+
var currentTab = this.tabQueryList.toArray().find(function (tab) { return tab.active; });
|
17855
|
+
var nextTab = this.tabQueryList.toArray()[this.tabQueryList.toArray().indexOf(currentTab) + 1];
|
17856
|
+
if (nextTab != null) {
|
17857
|
+
this.tabQueryList.toArray().forEach(function (t) { return (t.active = false); });
|
17858
|
+
this.dynamicTabs.forEach(function (t) { return (t.active = false); });
|
17859
|
+
nextTab.active = true;
|
17860
|
+
nextTab.selectionChange.emit();
|
17861
|
+
}
|
17862
|
+
};
|
17863
|
+
GIPITabGroupComponent.prototype.previousTab = function () {
|
17864
|
+
var currentTab = this.tabQueryList.toArray().find(function (tab) { return tab.active; });
|
17865
|
+
var previousTab = this.tabQueryList.toArray()[this.tabQueryList.toArray().indexOf(currentTab) - 1];
|
17866
|
+
if (previousTab != null) {
|
17867
|
+
this.tabQueryList.toArray().forEach(function (t) { return (t.active = false); });
|
17868
|
+
this.dynamicTabs.forEach(function (t) { return (t.active = false); });
|
17869
|
+
previousTab.active = true;
|
17870
|
+
previousTab.selectionChange.emit();
|
17871
|
+
}
|
17872
|
+
};
|
17873
|
+
GIPITabGroupComponent.ctorParameters = function () { return [
|
17874
|
+
{ type: ElementRef },
|
17875
|
+
{ type: ComponentFactoryResolver }
|
17876
|
+
]; };
|
17877
|
+
__decorate([
|
17878
|
+
ContentChildren(GIPITabComponent),
|
17879
|
+
__metadata("design:type", QueryList)
|
17880
|
+
], GIPITabGroupComponent.prototype, "tabQueryList", void 0);
|
16875
17881
|
__decorate([
|
16876
|
-
|
16877
|
-
__metadata("design:type",
|
16878
|
-
],
|
16879
|
-
|
17882
|
+
ViewChild(GIPIDynamicTabDirective, { static: false }),
|
17883
|
+
__metadata("design:type", GIPIDynamicTabDirective)
|
17884
|
+
], GIPITabGroupComponent.prototype, "dynamicTabPlaceholder", void 0);
|
17885
|
+
GIPITabGroupComponent = __decorate([
|
16880
17886
|
Component({
|
16881
|
-
selector:
|
16882
|
-
exportAs: '
|
16883
|
-
template: "<
|
16884
|
-
providers: [
|
16885
|
-
{
|
16886
|
-
provide: NG_VALUE_ACCESSOR,
|
16887
|
-
useExisting: forwardRef(function () { return GIPITableComponent_1; }),
|
16888
|
-
multi: true
|
16889
|
-
}
|
16890
|
-
],
|
17887
|
+
selector: 'gipi-tab-group',
|
17888
|
+
exportAs: 'gipiTabGroup',
|
17889
|
+
template: "<nav mat-tab-nav-bar>\n <a mat-tab-link\n *ngFor=\"let tab of tabQueryList\"\n (click)=\"selectTab(tab)\"\n [class.active]=\"tab.active\"\n [disabled]=\"tab.disabled\">\n <mat-icon *ngIf=\"tab.icon || tab.svgIcon\"\n [svgIcon]=\"tab.svgIcon ? tab.svgIcon : ''\">\n {{ !tab.svgIcon && tab.icon ? tab.icon : '' }}\n </mat-icon>\n\n {{ tab.label }}\n </a>\n\n <a mat-tab-link\n *ngFor=\"let tab of dynamicTabs\"\n (click)=\"selectTab(tab)\"\n [class.active]=\"tab.active\"\n [disabled]=\"tab.disabled\">\n <mat-icon *ngIf=\"tab.icon || tab.svgIcon\"\n [svgIcon]=\"tab.svgIcon ? tab.svgIcon : ''\">\n {{ !tab.svgIcon && tab.icon ? tab.icon : '' }}\n </mat-icon>\n\n {{ tab.label }}\n </a>\n</nav>\n\n<ng-content> </ng-content>\n<ng-template dynamicTab\n #container>\n</ng-template>",
|
16891
17890
|
host: {
|
16892
|
-
'class': 'gipi-
|
17891
|
+
'class': 'gipi-tab-group',
|
16893
17892
|
},
|
16894
|
-
|
16895
|
-
styles: [".table{border:1px solid #e0e1e2;border-radius:4px}"]
|
17893
|
+
styles: [":host{display:block;flex:1;width:100%;box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)}:host ::ng-deep .mat-tab-nav-bar{background:#f5f5f6;border:none;border-radius:.4rem;padding:.4rem;box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1)}:host ::ng-deep .mat-tab-links{display:flex;gap:1rem}:host ::ng-deep .mat-tab-link{height:auto!important;padding:1rem!important;opacity:1!important;border:none!important;border-radius:4px!important;transition:.2s!important;color:#595959!important;gap:1rem}:host ::ng-deep .mat-tab-link>mat-icon{width:2rem!important;height:2rem!important;font-size:2rem!important;color:#595959!important}:host ::ng-deep .mat-tab-link>mat-icon svg,:host ::ng-deep .mat-tab-link>mat-icon svg g path,:host ::ng-deep .mat-tab-link>mat-icon svg path{color:#595959!important;fill:#595959!important}:host ::ng-deep .mat-tab-link:not(.active):hover{background:#e0e1e2!important}:host ::ng-deep .mat-tab-link.active{background:#e0313e!important;color:#fff!important}:host ::ng-deep .mat-tab-link.active>mat-icon{color:#fff!important}:host ::ng-deep .mat-tab-link.active>mat-icon svg,:host ::ng-deep .mat-tab-link.active>mat-icon svg g path,:host ::ng-deep .mat-tab-link.active>mat-icon svg path{color:#fff!important;fill:#fff!important}:host ::ng-deep .mat-tab-link:disabled,:host ::ng-deep .mat-tab-link:disabled>mat-icon{color:#9a9da2!important;fill:#9a9da2!important}:host ::ng-deep .mat-tab-link:disabled svg,:host ::ng-deep .mat-tab-link:disabled svg g path,:host ::ng-deep .mat-tab-link:disabled svg path,:host ::ng-deep .mat-tab-link:disabled>mat-icon svg,:host ::ng-deep .mat-tab-link:disabled>mat-icon svg g path,:host ::ng-deep .mat-tab-link:disabled>mat-icon svg path{color:#9a9da2!important;fill:#9a9da2!important}:host ::ng-deep .mat-ink-bar{display:none!important}"]
|
16896
17894
|
}),
|
16897
|
-
__metadata("design:paramtypes", [
|
16898
|
-
|
16899
|
-
|
17895
|
+
__metadata("design:paramtypes", [ElementRef,
|
17896
|
+
ComponentFactoryResolver])
|
17897
|
+
], GIPITabGroupComponent);
|
17898
|
+
return GIPITabGroupComponent;
|
16900
17899
|
}());
|
16901
17900
|
|
16902
17901
|
var GIPIToolbarComponent = /** @class */ (function () {
|
@@ -16986,34 +17985,6 @@ var GIPITopNavComponent = /** @class */ (function () {
|
|
16986
17985
|
return GIPITopNavComponent;
|
16987
17986
|
}());
|
16988
17987
|
|
16989
|
-
/** @dynamic */
|
16990
|
-
var NumberUtil = /** @class */ (function () {
|
16991
|
-
function NumberUtil() {
|
16992
|
-
}
|
16993
|
-
NumberUtil.isPositive = function (value) {
|
16994
|
-
return !ObjectUtil.isNull(value) && value > 0;
|
16995
|
-
};
|
16996
|
-
NumberUtil.isNegative = function (value) {
|
16997
|
-
return !ObjectUtil.isNull(value) && value < 0;
|
16998
|
-
};
|
16999
|
-
NumberUtil.format = function (value, digitsInfo, type) {
|
17000
|
-
if (!ObjectUtil.isNull(value) && (!type || type === 'NUMBER')) {
|
17001
|
-
return formatNumber(value, 'pt', digitsInfo);
|
17002
|
-
}
|
17003
|
-
else if (!ObjectUtil.isNull(value) && type === 'PERCENT') {
|
17004
|
-
return formatPercent(value / 100, 'pt', digitsInfo);
|
17005
|
-
}
|
17006
|
-
return StringUtil.EMPTY;
|
17007
|
-
};
|
17008
|
-
NumberUtil.onlyNumbers = function (value) {
|
17009
|
-
return String(value).replace(/[^\d]/g, '');
|
17010
|
-
};
|
17011
|
-
NumberUtil.isNumber = function (value) {
|
17012
|
-
return value !== null && value !== undefined && !isNaN(value) && typeof value === 'number';
|
17013
|
-
};
|
17014
|
-
return NumberUtil;
|
17015
|
-
}());
|
17016
|
-
|
17017
17988
|
var moment = moment_;
|
17018
17989
|
/** @dynamic */
|
17019
17990
|
var DateUtil = /** @class */ (function () {
|
@@ -21039,7 +22010,7 @@ var MatDatepickerInput = /** @class */ (function (_super) {
|
|
21039
22010
|
* Use of this source code is governed by an MIT-style license that can be
|
21040
22011
|
* found in the LICENSE file at https://angular.io/license
|
21041
22012
|
*/
|
21042
|
-
var nextUniqueId$
|
22013
|
+
var nextUniqueId$i = 0;
|
21043
22014
|
var MatDateRangeInput = /** @class */ (function () {
|
21044
22015
|
function MatDateRangeInput(_changeDetectorRef, _elementRef, control, _dateAdapter, _formField) {
|
21045
22016
|
this._changeDetectorRef = _changeDetectorRef;
|
@@ -21047,7 +22018,7 @@ var MatDateRangeInput = /** @class */ (function () {
|
|
21047
22018
|
this._dateAdapter = _dateAdapter;
|
21048
22019
|
this._formField = _formField;
|
21049
22020
|
/** Unique ID for the input. */
|
21050
|
-
this.id = "mat-date-range-input-" + nextUniqueId$
|
22021
|
+
this.id = "mat-date-range-input-" + nextUniqueId$i++;
|
21051
22022
|
/** Whether the control is focused. */
|
21052
22023
|
this.focused = false;
|
21053
22024
|
/** Name of the form control. */
|
@@ -21901,12 +22872,12 @@ var BrowserUtil = /** @class */ (function () {
|
|
21901
22872
|
}());
|
21902
22873
|
|
21903
22874
|
var moment$1 = moment_;
|
21904
|
-
var nextUniqueId$
|
22875
|
+
var nextUniqueId$j = 0;
|
21905
22876
|
var DateRangePickerComponent = /** @class */ (function () {
|
21906
22877
|
function DateRangePickerComponent(elementRef, _changeDetectorRef) {
|
21907
22878
|
this.elementRef = elementRef;
|
21908
22879
|
this._changeDetectorRef = _changeDetectorRef;
|
21909
|
-
this._name = "gipi-date-range-" + nextUniqueId$
|
22880
|
+
this._name = "gipi-date-range-" + nextUniqueId$j++;
|
21910
22881
|
this.idStartDate = this._name + "-start";
|
21911
22882
|
this.idEndDate = this._name + "-end";
|
21912
22883
|
this.nameStartDate = this._name + "-start";
|
@@ -22622,12 +23593,12 @@ var PresetRangeComponent = /** @class */ (function () {
|
|
22622
23593
|
}());
|
22623
23594
|
|
22624
23595
|
var moment$3 = moment_;
|
22625
|
-
var nextUniqueId$
|
23596
|
+
var nextUniqueId$k = 0;
|
22626
23597
|
var DatepickerComponent = /** @class */ (function () {
|
22627
23598
|
function DatepickerComponent(elementRef, _changeDetectorRef) {
|
22628
23599
|
this.elementRef = elementRef;
|
22629
23600
|
this._changeDetectorRef = _changeDetectorRef;
|
22630
|
-
this._name = "gipi-date-range-" + nextUniqueId$
|
23601
|
+
this._name = "gipi-date-range-" + nextUniqueId$k++;
|
22631
23602
|
this.id = this._name + "-date";
|
22632
23603
|
this.name = this._name + "-date";
|
22633
23604
|
this.label = '';
|
@@ -22648,7 +23619,9 @@ var DatepickerComponent = /** @class */ (function () {
|
|
22648
23619
|
},
|
22649
23620
|
set: function (value) {
|
22650
23621
|
this._minDate = value;
|
22651
|
-
|
23622
|
+
if (!ObjectUtil.isNull(value)) {
|
23623
|
+
this._minDate.setHours(0, 0, 0, 0);
|
23624
|
+
}
|
22652
23625
|
},
|
22653
23626
|
enumerable: false,
|
22654
23627
|
configurable: true
|
@@ -22659,7 +23632,9 @@ var DatepickerComponent = /** @class */ (function () {
|
|
22659
23632
|
},
|
22660
23633
|
set: function (value) {
|
22661
23634
|
this._maxDate = value;
|
22662
|
-
|
23635
|
+
if (!ObjectUtil.isNull(value)) {
|
23636
|
+
this._maxDate.setHours(0, 0, 0, 0);
|
23637
|
+
}
|
22663
23638
|
},
|
22664
23639
|
enumerable: false,
|
22665
23640
|
configurable: true
|
@@ -23202,7 +24177,7 @@ var MonthPickerModel = /** @class */ (function () {
|
|
23202
24177
|
this.selectedYearMoment = moment$5();
|
23203
24178
|
this.updateYearText();
|
23204
24179
|
this.selectedMonthMoment = moment$5();
|
23205
|
-
this.months =
|
24180
|
+
this.months = ['Jan.', 'Fev.', 'Mar.', 'Abr.', 'Mai.', 'Jun.', 'Jul.', 'Ago.', 'Set.', 'Out.', 'Nov.', 'Dez.'];
|
23206
24181
|
this.selectedMonthIndex = this.selectedMonthMoment.month();
|
23207
24182
|
this.selectedMonthYear = this.selectedYearMoment.year();
|
23208
24183
|
}
|
@@ -23224,7 +24199,7 @@ var MonthPickerModel = /** @class */ (function () {
|
|
23224
24199
|
};
|
23225
24200
|
return MonthPickerModel;
|
23226
24201
|
}());
|
23227
|
-
var nextUniqueId$
|
24202
|
+
var nextUniqueId$l = 0;
|
23228
24203
|
var MonthYearPickerComponent = /** @class */ (function () {
|
23229
24204
|
function MonthYearPickerComponent(elementRef, _changeDetectorRef, _overlay, _ngZone, _viewContainerRef, scrollStrategy, _dir, _document) {
|
23230
24205
|
this.elementRef = elementRef;
|
@@ -23234,7 +24209,7 @@ var MonthYearPickerComponent = /** @class */ (function () {
|
|
23234
24209
|
this._viewContainerRef = _viewContainerRef;
|
23235
24210
|
this._dir = _dir;
|
23236
24211
|
this._document = _document;
|
23237
|
-
this._name = "gipi-date-range-" + nextUniqueId$
|
24212
|
+
this._name = "gipi-date-range-" + nextUniqueId$l++;
|
23238
24213
|
this._focusedElementBeforeOpen = null;
|
23239
24214
|
this._backdropHarnessClass = this._name + "-backdrop";
|
23240
24215
|
this._stateChanges = new Subject();
|
@@ -23653,392 +24628,394 @@ var MonthYearPickerModule = /** @class */ (function () {
|
|
23653
24628
|
MatButtonModule,
|
23654
24629
|
MatDialogModule,
|
23655
24630
|
OverlayModule,
|
23656
|
-
A11yModule,
|
23657
|
-
PortalModule,
|
23658
|
-
MatIconModule,
|
23659
|
-
FormsModule,
|
23660
|
-
ReactiveFormsModule,
|
23661
|
-
],
|
23662
|
-
exports: [
|
23663
|
-
ScrollingModule,
|
23664
|
-
CalendarMonthYearComponent,
|
23665
|
-
MonthYearPickerComponent,
|
23666
|
-
],
|
23667
|
-
declarations: [
|
23668
|
-
CalendarMonthYearComponent,
|
23669
|
-
MonthYearPickerComponent,
|
23670
|
-
],
|
23671
|
-
providers: [
|
23672
|
-
GIPI_MONTH_YEAR_SCROLL_STRATEGY_FACTORY_PROVIDER,
|
23673
|
-
],
|
23674
|
-
entryComponents: [
|
23675
|
-
CalendarMonthYearComponent,
|
23676
|
-
],
|
23677
|
-
})
|
23678
|
-
], MonthYearPickerModule);
|
23679
|
-
return MonthYearPickerModule;
|
23680
|
-
}());
|
23681
|
-
|
23682
|
-
var nextUniqueId$
|
23683
|
-
var
|
23684
|
-
function
|
23685
|
-
this.
|
23686
|
-
this.
|
23687
|
-
|
23688
|
-
|
23689
|
-
|
23690
|
-
|
23691
|
-
|
23692
|
-
|
23693
|
-
|
23694
|
-
|
23695
|
-
|
23696
|
-
|
23697
|
-
|
23698
|
-
|
23699
|
-
this.
|
23700
|
-
this.
|
23701
|
-
this.
|
23702
|
-
this.
|
23703
|
-
this.
|
23704
|
-
this.
|
23705
|
-
this.
|
23706
|
-
this.
|
23707
|
-
this.
|
23708
|
-
this.
|
23709
|
-
|
23710
|
-
|
23711
|
-
|
23712
|
-
|
23713
|
-
this.
|
23714
|
-
|
23715
|
-
this._disabled = false;
|
23716
|
-
this.onChange = function (value) { };
|
23717
|
-
this.onTouched = function () { };
|
23718
|
-
}
|
23719
|
-
GIPIRangePageComponent_1 = GIPIRangePageComponent;
|
23720
|
-
Object.defineProperty(GIPIRangePageComponent.prototype, "min", {
|
23721
|
-
get: function () {
|
23722
|
-
return NumberUtil.isNumber(this._min) ? this._min : 1;
|
23723
|
-
},
|
23724
|
-
set: function (value) {
|
23725
|
-
this._min = value;
|
23726
|
-
this._initPage();
|
23727
|
-
},
|
23728
|
-
enumerable: false,
|
23729
|
-
configurable: true
|
23730
|
-
});
|
23731
|
-
Object.defineProperty(GIPIRangePageComponent.prototype, "max", {
|
23732
|
-
get: function () {
|
23733
|
-
return NumberUtil.isNumber(this._max) ? this._max : 100;
|
23734
|
-
},
|
23735
|
-
set: function (value) {
|
23736
|
-
this._max = value;
|
23737
|
-
this._initPage();
|
23738
|
-
},
|
23739
|
-
enumerable: false,
|
23740
|
-
configurable: true
|
23741
|
-
});
|
23742
|
-
Object.defineProperty(GIPIRangePageComponent.prototype, "step", {
|
23743
|
-
get: function () {
|
23744
|
-
return NumberUtil.isNumber(this._step) ? this._step : 1;
|
23745
|
-
},
|
23746
|
-
set: function (value) {
|
23747
|
-
this._step = value;
|
23748
|
-
this._initPage();
|
23749
|
-
},
|
23750
|
-
enumerable: false,
|
23751
|
-
configurable: true
|
23752
|
-
});
|
23753
|
-
Object.defineProperty(GIPIRangePageComponent.prototype, "required", {
|
23754
|
-
get: function () {
|
23755
|
-
return this._required;
|
23756
|
-
},
|
23757
|
-
set: function (value) {
|
23758
|
-
this._required = coerceBooleanProperty(value);
|
23759
|
-
},
|
23760
|
-
enumerable: false,
|
23761
|
-
configurable: true
|
23762
|
-
});
|
23763
|
-
Object.defineProperty(GIPIRangePageComponent.prototype, "disabled", {
|
23764
|
-
get: function () {
|
23765
|
-
return this._disabled;
|
23766
|
-
},
|
23767
|
-
set: function (value) {
|
23768
|
-
this._disabled = coerceBooleanProperty(value);
|
23769
|
-
},
|
23770
|
-
enumerable: false,
|
23771
|
-
configurable: true
|
23772
|
-
});
|
23773
|
-
Object.defineProperty(GIPIRangePageComponent.prototype, "formattedValue", {
|
23774
|
-
get: function () {
|
23775
|
-
return '';
|
23776
|
-
},
|
23777
|
-
enumerable: false,
|
23778
|
-
configurable: true
|
23779
|
-
});
|
23780
|
-
GIPIRangePageComponent.prototype.ngOnInit = function () {
|
23781
|
-
this._initPage();
|
23782
|
-
};
|
23783
|
-
GIPIRangePageComponent.prototype.ngOnDestroy = function () { };
|
23784
|
-
GIPIRangePageComponent.prototype.writeValue = function (value) {
|
23785
|
-
if (!ObjectUtil.isNull(value)) {
|
23786
|
-
this._startPage = value.start || this._startPage;
|
23787
|
-
this._endPage = value.end || this._endPage;
|
24631
|
+
A11yModule,
|
24632
|
+
PortalModule,
|
24633
|
+
MatIconModule,
|
24634
|
+
FormsModule,
|
24635
|
+
ReactiveFormsModule,
|
24636
|
+
],
|
24637
|
+
exports: [
|
24638
|
+
ScrollingModule,
|
24639
|
+
CalendarMonthYearComponent,
|
24640
|
+
MonthYearPickerComponent,
|
24641
|
+
],
|
24642
|
+
declarations: [
|
24643
|
+
CalendarMonthYearComponent,
|
24644
|
+
MonthYearPickerComponent,
|
24645
|
+
],
|
24646
|
+
providers: [
|
24647
|
+
GIPI_MONTH_YEAR_SCROLL_STRATEGY_FACTORY_PROVIDER,
|
24648
|
+
],
|
24649
|
+
entryComponents: [
|
24650
|
+
CalendarMonthYearComponent,
|
24651
|
+
],
|
24652
|
+
})
|
24653
|
+
], MonthYearPickerModule);
|
24654
|
+
return MonthYearPickerModule;
|
24655
|
+
}());
|
24656
|
+
|
24657
|
+
var nextUniqueId$m = 0;
|
24658
|
+
var GIPISplitButtonComponent = /** @class */ (function () {
|
24659
|
+
function GIPISplitButtonComponent(elementRef) {
|
24660
|
+
this.elementRef = elementRef;
|
24661
|
+
this._uniqueId = nextUniqueId$m++;
|
24662
|
+
this._name = "gipi-split-button-" + this._uniqueId;
|
24663
|
+
this.idBtnDefault = "gipi-split-button-default-" + this._uniqueId;
|
24664
|
+
this.idBtnMenu = "gipi-split-button-menu-" + this._uniqueId;
|
24665
|
+
this.isSplitButtonPrimary = this._hasHostAttributes('gipi-primary');
|
24666
|
+
this.isSplitButtonSecondary = this._hasHostAttributes('gipi-secondary');
|
24667
|
+
this.isSplitButtonTertiary = this._hasHostAttributes('gipi-tertiary');
|
24668
|
+
this.isSplitButtonAction = this._hasHostAttributes('gipi-action');
|
24669
|
+
this.id = this._name;
|
24670
|
+
this.name = this._name;
|
24671
|
+
this.type = 'button';
|
24672
|
+
this.ariaLabel = '';
|
24673
|
+
this.title = '';
|
24674
|
+
this.label = '';
|
24675
|
+
this.disabled = false;
|
24676
|
+
this.loading = false;
|
24677
|
+
this.tooltip = '';
|
24678
|
+
this.splitOptions = [];
|
24679
|
+
this.onOpenPopover = new EventEmitter();
|
24680
|
+
this.onClosePopover = new EventEmitter();
|
24681
|
+
this.onClick = new EventEmitter(true);
|
24682
|
+
this.onFocus = new EventEmitter(true);
|
24683
|
+
this.onBlur = new EventEmitter(true);
|
24684
|
+
}
|
24685
|
+
GIPISplitButtonComponent_1 = GIPISplitButtonComponent;
|
24686
|
+
GIPISplitButtonComponent.prototype.ngOnInit = function () { };
|
24687
|
+
GIPISplitButtonComponent.prototype.ngOnDestroy = function () {
|
24688
|
+
if (this.popoverTrigger) {
|
24689
|
+
this.popoverTrigger.destroyPopover();
|
23788
24690
|
}
|
23789
|
-
this._changeDetectorRef.detectChanges();
|
23790
24691
|
};
|
23791
|
-
|
23792
|
-
this.
|
24692
|
+
GIPISplitButtonComponent.prototype.getHostElement = function () {
|
24693
|
+
return this.elementRef.nativeElement;
|
23793
24694
|
};
|
23794
|
-
|
23795
|
-
|
24695
|
+
GIPISplitButtonComponent.prototype._hasHostAttributes = function () {
|
24696
|
+
var _this = this;
|
24697
|
+
var attributes = [];
|
24698
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
24699
|
+
attributes[_i] = arguments[_i];
|
24700
|
+
}
|
24701
|
+
return attributes.some(function (attribute) { return _this.getHostElement().hasAttribute(attribute); });
|
23796
24702
|
};
|
23797
|
-
|
23798
|
-
|
23799
|
-
|
24703
|
+
GIPISplitButtonComponent.prototype.btnIdAndName = function () {
|
24704
|
+
var uniqueId = nextUniqueId$m++;
|
24705
|
+
return {
|
24706
|
+
btnDefault: "gipi-split-button-default-" + uniqueId,
|
24707
|
+
btnMenu: "gipi-split-button-menu-" + uniqueId,
|
24708
|
+
};
|
23800
24709
|
};
|
23801
|
-
|
23802
|
-
|
23803
|
-
|
24710
|
+
GIPISplitButtonComponent.prototype.getInternalButtonClass = function (isBtnDefault) {
|
24711
|
+
return {
|
24712
|
+
'button-default': isBtnDefault,
|
24713
|
+
'button-menu': !isBtnDefault,
|
24714
|
+
'button-primary': this.isSplitButtonPrimary,
|
24715
|
+
'button-secondary': this.isSplitButtonSecondary,
|
24716
|
+
'button-tertiary': this.isSplitButtonTertiary,
|
24717
|
+
'button-action': this.isSplitButtonAction,
|
24718
|
+
};
|
23804
24719
|
};
|
23805
|
-
|
23806
|
-
if (this.disabled) {
|
24720
|
+
GIPISplitButtonComponent.prototype.showPopover = function () {
|
24721
|
+
if (this.disabled || this.loading) {
|
23807
24722
|
return;
|
23808
24723
|
}
|
23809
|
-
|
23810
|
-
this.
|
23811
|
-
}
|
23812
|
-
else if (this._startPage > this.max) {
|
23813
|
-
this._startPage = this.max;
|
24724
|
+
else {
|
24725
|
+
this.popoverTrigger.openPopover();
|
23814
24726
|
}
|
23815
|
-
|
23816
|
-
|
24727
|
+
};
|
24728
|
+
GIPISplitButtonComponent.prototype.closePopover = function () {
|
24729
|
+
if (this.disabled || this.loading) {
|
24730
|
+
return;
|
23817
24731
|
}
|
23818
|
-
else
|
23819
|
-
this.
|
24732
|
+
else {
|
24733
|
+
this.popoverTrigger.closePopover();
|
23820
24734
|
}
|
23821
|
-
this._propagateChange();
|
23822
24735
|
};
|
23823
|
-
|
23824
|
-
if (this.disabled) {
|
24736
|
+
GIPISplitButtonComponent.prototype.handleClick = function (event) {
|
24737
|
+
if (this.disabled || this.loading) {
|
23825
24738
|
return;
|
23826
24739
|
}
|
23827
|
-
|
23828
|
-
this.
|
23829
|
-
|
23830
|
-
|
23831
|
-
this._endPage = this.max;
|
24740
|
+
else {
|
24741
|
+
this.onClick.emit(event);
|
24742
|
+
this.closePopover();
|
24743
|
+
event.stopPropagation();
|
23832
24744
|
}
|
23833
|
-
|
23834
|
-
|
24745
|
+
};
|
24746
|
+
GIPISplitButtonComponent.prototype.handleFocus = function (event) {
|
24747
|
+
if (this.disabled || this.loading) {
|
24748
|
+
return;
|
23835
24749
|
}
|
23836
|
-
else
|
23837
|
-
this.
|
24750
|
+
else {
|
24751
|
+
this.onFocus.emit(event);
|
24752
|
+
event.stopPropagation();
|
23838
24753
|
}
|
23839
|
-
this._propagateChange();
|
23840
24754
|
};
|
23841
|
-
|
23842
|
-
if (this.disabled) {
|
24755
|
+
GIPISplitButtonComponent.prototype.handleBlur = function (event) {
|
24756
|
+
if (this.disabled || this.loading) {
|
23843
24757
|
return;
|
23844
24758
|
}
|
23845
|
-
|
23846
|
-
|
23847
|
-
|
23848
|
-
this._startPage = newStartPage;
|
23849
|
-
this._endPage = newEndPage;
|
23850
|
-
this._propagateChange();
|
24759
|
+
else {
|
24760
|
+
this.onBlur.emit(event);
|
24761
|
+
event.stopPropagation();
|
23851
24762
|
}
|
23852
24763
|
};
|
23853
|
-
|
23854
|
-
if (this.disabled) {
|
24764
|
+
GIPISplitButtonComponent.prototype.handleClickBtnMenu = function (event) {
|
24765
|
+
if (this.disabled || this.loading) {
|
23855
24766
|
return;
|
23856
24767
|
}
|
23857
|
-
|
23858
|
-
|
23859
|
-
|
23860
|
-
|
23861
|
-
|
23862
|
-
newEndPage = newStartPage;
|
23863
|
-
}
|
23864
|
-
if (newEndPage <= this.max) {
|
23865
|
-
this._startPage = newStartPage;
|
23866
|
-
this._endPage = newEndPage;
|
23867
|
-
this._propagateChange();
|
24768
|
+
else {
|
24769
|
+
if (!ObjectUtil.isNull(this.popoverTrigger)) {
|
24770
|
+
this.popoverTrigger.togglePopover();
|
24771
|
+
}
|
24772
|
+
event.stopPropagation();
|
23868
24773
|
}
|
23869
24774
|
};
|
23870
|
-
|
23871
|
-
if (this.disabled || !
|
24775
|
+
GIPISplitButtonComponent.prototype.handleClickBtnSplitOption = function (option) {
|
24776
|
+
if (this.disabled || this.loading || !option || option.disabled || !option.clickFn) {
|
23872
24777
|
return;
|
23873
24778
|
}
|
23874
|
-
|
24779
|
+
else {
|
24780
|
+
option.clickFn();
|
24781
|
+
this.closePopover();
|
24782
|
+
}
|
23875
24783
|
};
|
23876
|
-
|
23877
|
-
|
23878
|
-
|
24784
|
+
GIPISplitButtonComponent.prototype.onResize = function (event) {
|
24785
|
+
if (this.popoverTrigger) {
|
24786
|
+
this.popoverTrigger.closePopover();
|
24787
|
+
event.stopPropagation();
|
24788
|
+
}
|
23879
24789
|
};
|
23880
|
-
var
|
23881
|
-
|
23882
|
-
{ type: ElementRef }
|
23883
|
-
{ type: ChangeDetectorRef }
|
24790
|
+
var GIPISplitButtonComponent_1;
|
24791
|
+
GIPISplitButtonComponent.ctorParameters = function () { return [
|
24792
|
+
{ type: ElementRef }
|
23884
24793
|
]; };
|
24794
|
+
__decorate([
|
24795
|
+
ViewChild(GIPIPopoverTrigger, { static: false }),
|
24796
|
+
__metadata("design:type", GIPIPopoverTrigger)
|
24797
|
+
], GIPISplitButtonComponent.prototype, "popoverTrigger", void 0);
|
23885
24798
|
__decorate([
|
23886
24799
|
Input(),
|
23887
24800
|
__metadata("design:type", String)
|
23888
|
-
],
|
24801
|
+
], GIPISplitButtonComponent.prototype, "id", void 0);
|
23889
24802
|
__decorate([
|
23890
24803
|
Input(),
|
23891
24804
|
__metadata("design:type", String)
|
23892
|
-
],
|
24805
|
+
], GIPISplitButtonComponent.prototype, "name", void 0);
|
23893
24806
|
__decorate([
|
23894
24807
|
Input(),
|
23895
24808
|
__metadata("design:type", String)
|
23896
|
-
],
|
24809
|
+
], GIPISplitButtonComponent.prototype, "type", void 0);
|
23897
24810
|
__decorate([
|
23898
24811
|
Input(),
|
23899
24812
|
__metadata("design:type", String)
|
23900
|
-
],
|
24813
|
+
], GIPISplitButtonComponent.prototype, "ariaLabel", void 0);
|
23901
24814
|
__decorate([
|
23902
24815
|
Input(),
|
23903
24816
|
__metadata("design:type", String)
|
23904
|
-
],
|
24817
|
+
], GIPISplitButtonComponent.prototype, "title", void 0);
|
23905
24818
|
__decorate([
|
23906
24819
|
Input(),
|
23907
24820
|
__metadata("design:type", String)
|
23908
|
-
],
|
24821
|
+
], GIPISplitButtonComponent.prototype, "label", void 0);
|
23909
24822
|
__decorate([
|
23910
24823
|
Input(),
|
23911
24824
|
__metadata("design:type", String)
|
23912
|
-
],
|
24825
|
+
], GIPISplitButtonComponent.prototype, "buttonClass", void 0);
|
23913
24826
|
__decorate([
|
23914
24827
|
Input(),
|
23915
|
-
__metadata("design:type",
|
23916
|
-
|
23917
|
-
], GIPIRangePageComponent.prototype, "min", null);
|
24828
|
+
__metadata("design:type", Boolean)
|
24829
|
+
], GIPISplitButtonComponent.prototype, "disabled", void 0);
|
23918
24830
|
__decorate([
|
23919
24831
|
Input(),
|
23920
|
-
__metadata("design:type",
|
23921
|
-
|
23922
|
-
], GIPIRangePageComponent.prototype, "max", null);
|
24832
|
+
__metadata("design:type", Boolean)
|
24833
|
+
], GIPISplitButtonComponent.prototype, "loading", void 0);
|
23923
24834
|
__decorate([
|
23924
24835
|
Input(),
|
23925
|
-
__metadata("design:type",
|
23926
|
-
|
23927
|
-
], GIPIRangePageComponent.prototype, "step", null);
|
24836
|
+
__metadata("design:type", String)
|
24837
|
+
], GIPISplitButtonComponent.prototype, "tooltip", void 0);
|
23928
24838
|
__decorate([
|
23929
|
-
Input(),
|
23930
|
-
__metadata("design:type",
|
23931
|
-
|
23932
|
-
], GIPIRangePageComponent.prototype, "required", null);
|
24839
|
+
Input('options'),
|
24840
|
+
__metadata("design:type", Array)
|
24841
|
+
], GIPISplitButtonComponent.prototype, "splitOptions", void 0);
|
23933
24842
|
__decorate([
|
23934
|
-
|
23935
|
-
__metadata("design:type",
|
23936
|
-
|
23937
|
-
|
23938
|
-
|
24843
|
+
Output(),
|
24844
|
+
__metadata("design:type", EventEmitter)
|
24845
|
+
], GIPISplitButtonComponent.prototype, "onOpenPopover", void 0);
|
24846
|
+
__decorate([
|
24847
|
+
Output(),
|
24848
|
+
__metadata("design:type", EventEmitter)
|
24849
|
+
], GIPISplitButtonComponent.prototype, "onClosePopover", void 0);
|
24850
|
+
__decorate([
|
24851
|
+
Output('click'),
|
24852
|
+
__metadata("design:type", EventEmitter)
|
24853
|
+
], GIPISplitButtonComponent.prototype, "onClick", void 0);
|
24854
|
+
__decorate([
|
24855
|
+
Output('focus'),
|
24856
|
+
__metadata("design:type", EventEmitter)
|
24857
|
+
], GIPISplitButtonComponent.prototype, "onFocus", void 0);
|
24858
|
+
__decorate([
|
24859
|
+
Output('blur'),
|
24860
|
+
__metadata("design:type", EventEmitter)
|
24861
|
+
], GIPISplitButtonComponent.prototype, "onBlur", void 0);
|
24862
|
+
__decorate([
|
24863
|
+
HostListener('window:resize', ['$event']),
|
24864
|
+
__metadata("design:type", Function),
|
24865
|
+
__metadata("design:paramtypes", [UIEvent]),
|
24866
|
+
__metadata("design:returntype", void 0)
|
24867
|
+
], GIPISplitButtonComponent.prototype, "onResize", null);
|
24868
|
+
GIPISplitButtonComponent = GIPISplitButtonComponent_1 = __decorate([
|
23939
24869
|
Component({
|
23940
|
-
selector:
|
23941
|
-
|
24870
|
+
selector: "gipi-split-button[gipi-primary], gipi-split-button[gipi-secondary],\n gipi-split-button[gipi-tertiary], gipi-split-button[gipi-action]",
|
24871
|
+
exportAs: 'gipiSplitButton',
|
24872
|
+
template: "<div [matTooltip]=\"tooltip\"\n [class]=\"buttonClass || ''\"\n [class.button-base]=\"true\"\n [class.disabled]=\"disabled || loading\"\n #popoverTrigger=\"popoverTrigger\"\n [popoverTriggerFor]=\"btnPopover\"\n [popoverTriggerOn]=\"'none'\"\n [popoverBackdropCloseOnClick]=\"true\"\n (opened)=\"onOpenPopover.emit()\"\n (closed)=\"onClosePopover.emit()\">\n <button [attr.id]=\"idBtnDefault\"\n [attr.name]=\"idBtnDefault\"\n [attr.type]=\"type\"\n [attr.aria-label]=\"ariaLabel ? ariaLabel : label\"\n [attr.title]=\"title ? title : label\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"getInternalButtonClass(true)\"\n role=\"button\"\n (click)=\"handleClick($event)\"\n (focus)=\"handleFocus($event)\"\n (blur)=\"handleBlur($event)\">\n {{ label ? label : '' }}\n </button>\n <button [attr.id]=\"idBtnMenu\"\n [attr.name]=\"idBtnMenu\"\n [attr.type]=\"type\"\n [attr.aria-label]=\"ariaLabel ? ariaLabel : label\"\n [attr.title]=\"title ? title : label\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"getInternalButtonClass(false)\"\n role=\"button\"\n (click)=\"handleClickBtnMenu($event)\">\n <mat-icon [@indicatorRotate]=\"popoverTrigger?.popoverOpen ? 'opened': 'closed'\"> expand_more </mat-icon>\n </button>\n</div>\n\n<gipi-popover #btnPopover=\"gipiPopover\"\n [popoverOverlapTrigger]=\"false\"\n [popoverCloseOnClick]=\"false\"\n [popoverArrowWidth]=\"0\"\n [popoverOffsetY]=\"3\">\n <div class=\"btn-popover-content\">\n <button class=\"btn-split-option\"\n *ngFor=\"let option of splitOptions\"\n [disabled]=\"option?.disabled\"\n (click)=\"handleClickBtnSplitOption(option)\">\n {{ option.label }}\n </button>\n </div>\n</gipi-popover>",
|
23942
24873
|
providers: [
|
23943
24874
|
{
|
23944
24875
|
provide: NG_VALUE_ACCESSOR,
|
23945
|
-
useExisting: forwardRef(function () { return
|
24876
|
+
useExisting: forwardRef(function () { return GIPISplitButtonComponent_1; }),
|
23946
24877
|
multi: true
|
23947
|
-
}
|
24878
|
+
}
|
23948
24879
|
],
|
23949
|
-
|
24880
|
+
host: {
|
24881
|
+
'class': 'gipi-split-button',
|
24882
|
+
'[attr.id]': 'id',
|
24883
|
+
'[attr.name]': 'name',
|
24884
|
+
},
|
24885
|
+
animations: [
|
24886
|
+
trigger('indicatorRotate', [
|
24887
|
+
state('closed', style({ transform: 'rotate(0deg)' })),
|
24888
|
+
state('opened', style({ transform: 'rotate(-180deg)' })),
|
24889
|
+
transition('opened <=> closed', animate('225ms cubic-bezier(0.4,0.0,0.2,1)')),
|
24890
|
+
])
|
24891
|
+
],
|
24892
|
+
styles: [".button-base{display:flex;flex-direction:row;justify-content:center;border-radius:4px;font-weight:600;font-size:1.4rem;line-height:1.6rem;cursor:pointer;outline:0;white-space:nowrap;text-decoration:none;vertical-align:middle;text-align:center;box-shadow:1px 1px 5px 0 rgba(0,0,0,.1);transition:.2s;width:100%;max-height:4rem;border:1px solid transparent;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.button-base.disabled{cursor:not-allowed!important;box-shadow:none}.button-base>button{display:flex;align-items:center;justify-content:center;border:none;outline:0;box-shadow:none;width:100%;height:40px;padding:12px 16px;overflow:hidden;border-radius:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;white-space:nowrap;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative}.button-base>button:not(.disabled):active{opacity:.8}.button-base .button-default{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.button-base .button-menu{max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content;border-top-left-radius:0!important;border-bottom-left-radius:0!important}.button-primary:not(:disabled),.button-primary:not(:disabled)>mat-icon{background-color:#e0313e;color:#fff;fill:#fff}.button-primary:not(:disabled).button-default,.button-primary:not(:disabled)>mat-icon.button-default{border-right:1px solid #9f232c}.button-primary:not(:disabled) svg,.button-primary:not(:disabled) svg g path,.button-primary:not(:disabled) svg path,.button-primary:not(:disabled)>mat-icon svg,.button-primary:not(:disabled)>mat-icon svg g path,.button-primary:not(:disabled)>mat-icon svg path{color:#fff;fill:#fff}.button-primary:disabled,.button-primary:disabled>mat-icon{background-color:#d1d2d4;color:#9a9da2;fill:#9a9da2}.button-primary:disabled.button-default,.button-primary:disabled>mat-icon.button-default{border-right:1px solid #9a9da2}.button-primary:disabled svg,.button-primary:disabled svg g path,.button-primary:disabled svg path,.button-primary:disabled>mat-icon svg,.button-primary:disabled>mat-icon svg g path,.button-primary:disabled>mat-icon svg path{color:#9a9da2;fill:#9a9da2}.button-primary:not(:disabled):hover,.button-primary:not(:disabled):hover>mat-icon{background-color:#cc2d38;color:#fff;fill:#fff}.button-primary:not(:disabled):hover svg,.button-primary:not(:disabled):hover svg g path,.button-primary:not(:disabled):hover svg path,.button-primary:not(:disabled):hover>mat-icon svg,.button-primary:not(:disabled):hover>mat-icon svg g path,.button-primary:not(:disabled):hover>mat-icon svg path{color:#fff;fill:#fff}.button-secondary{background-color:transparent}.button-secondary:not(:disabled),.button-secondary:not(:disabled)>mat-icon{border-color:#595959;color:#595959;fill:#595959}.button-secondary:not(:disabled).button-default,.button-secondary:not(:disabled)>mat-icon.button-default{border-right:1px solid #595959}.button-secondary:not(:disabled) svg,.button-secondary:not(:disabled) svg g path,.button-secondary:not(:disabled) svg path,.button-secondary:not(:disabled)>mat-icon svg,.button-secondary:not(:disabled)>mat-icon svg g path,.button-secondary:not(:disabled)>mat-icon svg path{color:#595959;fill:#595959}.button-secondary:disabled,.button-secondary:disabled>mat-icon{border-color:#d1d2d4;background-color:#d1d2d4;color:#9a9da2;fill:#9a9da2}.button-secondary:disabled.button-default,.button-secondary:disabled>mat-icon.button-default{border-right:1px solid #9a9da2}.button-secondary:disabled svg,.button-secondary:disabled svg g path,.button-secondary:disabled svg path,.button-secondary:disabled>mat-icon svg,.button-secondary:disabled>mat-icon svg g path,.button-secondary:disabled>mat-icon svg path{color:#9a9da2;fill:#9a9da2}.button-secondary:not(:disabled):hover,.button-secondary:not(:disabled):hover>mat-icon{border-color:#595959;background-color:#e0e1e2;color:#595959;fill:#595959}.button-secondary:not(:disabled):hover svg,.button-secondary:not(:disabled):hover svg g path,.button-secondary:not(:disabled):hover svg path,.button-secondary:not(:disabled):hover>mat-icon svg,.button-secondary:not(:disabled):hover>mat-icon svg g path,.button-secondary:not(:disabled):hover>mat-icon svg path{color:#595959;fill:#595959}.button-tertiary{background-color:#e7ebee;box-shadow:none}.button-tertiary:not(:disabled),.button-tertiary:not(:disabled)>mat-icon{color:#595959;fill:#595959}.button-tertiary:not(:disabled).button-default,.button-tertiary:not(:disabled)>mat-icon.button-default{border-right:1px solid #595959}.button-tertiary:not(:disabled) svg,.button-tertiary:not(:disabled) svg g path,.button-tertiary:not(:disabled) svg path,.button-tertiary:not(:disabled)>mat-icon svg,.button-tertiary:not(:disabled)>mat-icon svg g path,.button-tertiary:not(:disabled)>mat-icon svg path{color:#595959;fill:#595959}.button-tertiary:disabled,.button-tertiary:disabled>mat-icon{background-color:#d1d2d4;color:#9a9da2;fill:#9a9da2}.button-tertiary:disabled.button-default,.button-tertiary:disabled>mat-icon.button-default{border-right:1px solid #9a9da2}.button-tertiary:disabled svg,.button-tertiary:disabled svg g path,.button-tertiary:disabled svg path,.button-tertiary:disabled>mat-icon svg,.button-tertiary:disabled>mat-icon svg g path,.button-tertiary:disabled>mat-icon svg path{color:#9a9da2;fill:#9a9da2}.button-tertiary:not(:disabled):hover,.button-tertiary:not(:disabled):hover>mat-icon{background-color:#e0e1e2;color:#595959;fill:#595959}.button-tertiary:not(:disabled):hover svg,.button-tertiary:not(:disabled):hover svg g path,.button-tertiary:not(:disabled):hover svg path,.button-tertiary:not(:disabled):hover>mat-icon svg,.button-tertiary:not(:disabled):hover>mat-icon svg g path,.button-tertiary:not(:disabled):hover>mat-icon svg path{color:#595959;fill:#595959}.button-action{background-color:transparent;box-shadow:none;display:flex;justify-content:flex-start!important}.button-action:not(:disabled),.button-action:not(:disabled)>mat-icon{color:#262626;fill:#262626}.button-action:not(:disabled).button-default,.button-action:not(:disabled)>mat-icon.button-default{border-right:1px solid #262626}.button-action:not(:disabled) svg,.button-action:not(:disabled) svg g path,.button-action:not(:disabled) svg path,.button-action:not(:disabled)>mat-icon svg,.button-action:not(:disabled)>mat-icon svg g path,.button-action:not(:disabled)>mat-icon svg path{color:#262626;fill:#262626}.button-action:disabled,.button-action:disabled>mat-icon{color:#9a9da2;fill:#9a9da2}.button-action:disabled.button-default,.button-action:disabled>mat-icon.button-default{border-right:1px solid #9a9da2}.button-action:disabled svg,.button-action:disabled svg g path,.button-action:disabled svg path,.button-action:disabled>mat-icon svg,.button-action:disabled>mat-icon svg g path,.button-action:disabled>mat-icon svg path{color:#9a9da2;fill:#9a9da2}.button-action:not(:disabled):hover,.button-action:not(:disabled):hover>mat-icon{background-color:#f5f5f6;color:#262626;fill:#262626}.button-action:not(:disabled):hover svg,.button-action:not(:disabled):hover svg g path,.button-action:not(:disabled):hover svg path,.button-action:not(:disabled):hover>mat-icon svg,.button-action:not(:disabled):hover>mat-icon svg g path,.button-action:not(:disabled):hover>mat-icon svg path{color:#262626;fill:#262626}.disabled,:disabled{pointer-events:none!important}.btn-popover-content{display:flex;flex-direction:column;gap:.8rem;background-color:#fff;border-radius:4px;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);padding:8px}.btn-split-option{width:100%;padding:.8rem;border-radius:.4rem;border:1px solid transparent;text-align:left;outline:0;background-color:transparent;cursor:pointer}.btn-split-option:not(:disabled){color:#595959}.btn-split-option:disabled{border-color:#d1d2d4;background-color:#d1d2d4;color:#9a9da2;cursor:not-allowed}.btn-split-option:not(:disabled):hover{border-color:#595959;background-color:#e0e1e2;color:#595959}"]
|
23950
24893
|
}),
|
23951
|
-
__metadata("design:paramtypes", [ElementRef
|
23952
|
-
|
23953
|
-
|
23954
|
-
return GIPIRangePageComponent;
|
24894
|
+
__metadata("design:paramtypes", [ElementRef])
|
24895
|
+
], GIPISplitButtonComponent);
|
24896
|
+
return GIPISplitButtonComponent;
|
23955
24897
|
}());
|
23956
24898
|
|
23957
|
-
var nextUniqueId$
|
23958
|
-
var
|
23959
|
-
function
|
24899
|
+
var nextUniqueId$n = 0;
|
24900
|
+
var GIPITextareaComponent = /** @class */ (function () {
|
24901
|
+
function GIPITextareaComponent(elementRef, _changeDetectorRef) {
|
23960
24902
|
this.elementRef = elementRef;
|
23961
24903
|
this._changeDetectorRef = _changeDetectorRef;
|
23962
|
-
this._name = "gipi-
|
24904
|
+
this._name = "gipi-textarea-" + nextUniqueId$n++;
|
23963
24905
|
this.id = this._name;
|
23964
24906
|
this.name = this._name;
|
23965
24907
|
this.label = '';
|
24908
|
+
this.placeholder = '';
|
24909
|
+
this.cols = 20;
|
24910
|
+
this.rows = 4;
|
23966
24911
|
this.help = '';
|
23967
|
-
this.
|
23968
|
-
this.
|
23969
|
-
this.
|
23970
|
-
this.
|
23971
|
-
this.
|
23972
|
-
this.
|
23973
|
-
this.
|
24912
|
+
this.maxlength = 254;
|
24913
|
+
this.minlength = 0;
|
24914
|
+
this._resize = 'horizontal';
|
24915
|
+
this._minHeight = '60px';
|
24916
|
+
this._height = '60px';
|
24917
|
+
this._maxHeight = 'auto';
|
24918
|
+
this._autocomplete = 'off';
|
24919
|
+
this._autofocus = false;
|
24920
|
+
this._readOnly = false;
|
23974
24921
|
this._required = false;
|
24922
|
+
this._disabled = false;
|
24923
|
+
this._lowerCase = false;
|
24924
|
+
this._upperCase = false;
|
24925
|
+
this._spaceDrop = false;
|
23975
24926
|
this.onChange = function () { };
|
23976
24927
|
this.onTouched = function () { };
|
23977
24928
|
}
|
23978
|
-
|
23979
|
-
Object.defineProperty(
|
24929
|
+
GIPITextareaComponent_1 = GIPITextareaComponent;
|
24930
|
+
Object.defineProperty(GIPITextareaComponent.prototype, "resize", {
|
24931
|
+
get: function () {
|
24932
|
+
return this._resize;
|
24933
|
+
},
|
24934
|
+
set: function (value) {
|
24935
|
+
if (value !== this.resize) {
|
24936
|
+
this._resize = value.toLowerCase();
|
24937
|
+
this._changeDetectorRef.detectChanges();
|
24938
|
+
}
|
24939
|
+
},
|
24940
|
+
enumerable: false,
|
24941
|
+
configurable: true
|
24942
|
+
});
|
24943
|
+
Object.defineProperty(GIPITextareaComponent.prototype, "minHeight", {
|
24944
|
+
get: function () {
|
24945
|
+
return this._minHeight;
|
24946
|
+
},
|
24947
|
+
set: function (value) {
|
24948
|
+
if (value.trim().toUpperCase() === 'AUTO') {
|
24949
|
+
this._minHeight = 'auto';
|
24950
|
+
}
|
24951
|
+
else {
|
24952
|
+
this._minHeight = coerceCssPixelValue(value);
|
24953
|
+
}
|
24954
|
+
},
|
24955
|
+
enumerable: false,
|
24956
|
+
configurable: true
|
24957
|
+
});
|
24958
|
+
Object.defineProperty(GIPITextareaComponent.prototype, "height", {
|
23980
24959
|
get: function () {
|
23981
|
-
return this.
|
24960
|
+
return this._height;
|
23982
24961
|
},
|
23983
24962
|
set: function (value) {
|
23984
|
-
if (
|
23985
|
-
|
24963
|
+
if (value.trim().toUpperCase() === 'AUTO') {
|
24964
|
+
this._height = 'auto';
|
24965
|
+
}
|
24966
|
+
else {
|
24967
|
+
this._height = coerceCssPixelValue(value);
|
23986
24968
|
}
|
23987
|
-
this._maxRange = value || 5;
|
23988
24969
|
},
|
23989
24970
|
enumerable: false,
|
23990
24971
|
configurable: true
|
23991
24972
|
});
|
23992
|
-
Object.defineProperty(
|
24973
|
+
Object.defineProperty(GIPITextareaComponent.prototype, "maxHeight", {
|
23993
24974
|
get: function () {
|
23994
|
-
return this.
|
24975
|
+
return this._maxHeight;
|
23995
24976
|
},
|
23996
24977
|
set: function (value) {
|
23997
|
-
if (
|
23998
|
-
|
24978
|
+
if (value.trim().toUpperCase() === 'AUTO') {
|
24979
|
+
this._maxHeight = 'auto';
|
24980
|
+
}
|
24981
|
+
else {
|
24982
|
+
this._maxHeight = coerceCssPixelValue(value);
|
23999
24983
|
}
|
24000
|
-
this._fromValue = value || 1;
|
24001
24984
|
},
|
24002
24985
|
enumerable: false,
|
24003
24986
|
configurable: true
|
24004
24987
|
});
|
24005
|
-
Object.defineProperty(
|
24988
|
+
Object.defineProperty(GIPITextareaComponent.prototype, "autocomplete", {
|
24006
24989
|
get: function () {
|
24007
|
-
return this.
|
24990
|
+
return this._autocomplete;
|
24008
24991
|
},
|
24009
24992
|
set: function (value) {
|
24010
|
-
|
24011
|
-
throw new Error('Minimum value for "to" must be 1');
|
24012
|
-
}
|
24013
|
-
this._toValue = value || 1;
|
24993
|
+
this._autocomplete = value;
|
24014
24994
|
},
|
24015
24995
|
enumerable: false,
|
24016
24996
|
configurable: true
|
24017
24997
|
});
|
24018
|
-
Object.defineProperty(
|
24998
|
+
Object.defineProperty(GIPITextareaComponent.prototype, "autofocus", {
|
24019
24999
|
get: function () {
|
24020
|
-
return this.
|
25000
|
+
return this._autofocus;
|
24021
25001
|
},
|
24022
25002
|
set: function (value) {
|
24023
|
-
|
24024
|
-
throw new Error('Minimum value for "step" must be 1');
|
24025
|
-
}
|
24026
|
-
this._step = value || 1;
|
25003
|
+
this._autofocus = coerceBooleanProperty(value);
|
24027
25004
|
},
|
24028
25005
|
enumerable: false,
|
24029
25006
|
configurable: true
|
24030
25007
|
});
|
24031
|
-
Object.defineProperty(
|
25008
|
+
Object.defineProperty(GIPITextareaComponent.prototype, "readOnly", {
|
24032
25009
|
get: function () {
|
24033
|
-
return this.
|
25010
|
+
return this._readOnly;
|
24034
25011
|
},
|
24035
25012
|
set: function (value) {
|
24036
|
-
this.
|
25013
|
+
this._readOnly = coerceBooleanProperty(value);
|
24037
25014
|
},
|
24038
25015
|
enumerable: false,
|
24039
25016
|
configurable: true
|
24040
25017
|
});
|
24041
|
-
Object.defineProperty(
|
25018
|
+
Object.defineProperty(GIPITextareaComponent.prototype, "required", {
|
24042
25019
|
get: function () {
|
24043
25020
|
return this._required;
|
24044
25021
|
},
|
@@ -24048,269 +25025,222 @@ var GIPIRangeSliderComponent = /** @class */ (function () {
|
|
24048
25025
|
enumerable: false,
|
24049
25026
|
configurable: true
|
24050
25027
|
});
|
24051
|
-
|
24052
|
-
|
24053
|
-
|
24054
|
-
|
24055
|
-
|
24056
|
-
|
24057
|
-
|
24058
|
-
|
24059
|
-
|
24060
|
-
|
24061
|
-
|
24062
|
-
|
24063
|
-
|
24064
|
-
|
24065
|
-
|
24066
|
-
|
24067
|
-
}
|
25028
|
+
Object.defineProperty(GIPITextareaComponent.prototype, "disabled", {
|
25029
|
+
get: function () {
|
25030
|
+
return this._disabled;
|
25031
|
+
},
|
25032
|
+
set: function (value) {
|
25033
|
+
this._disabled = coerceBooleanProperty(value);
|
25034
|
+
},
|
25035
|
+
enumerable: false,
|
25036
|
+
configurable: true
|
25037
|
+
});
|
25038
|
+
Object.defineProperty(GIPITextareaComponent.prototype, "lowerCase", {
|
25039
|
+
get: function () {
|
25040
|
+
return this._lowerCase;
|
25041
|
+
},
|
25042
|
+
set: function (value) {
|
25043
|
+
this._lowerCase = coerceBooleanProperty(value);
|
25044
|
+
},
|
25045
|
+
enumerable: false,
|
25046
|
+
configurable: true
|
25047
|
+
});
|
25048
|
+
Object.defineProperty(GIPITextareaComponent.prototype, "upperCase", {
|
25049
|
+
get: function () {
|
25050
|
+
return this._upperCase;
|
25051
|
+
},
|
25052
|
+
set: function (value) {
|
25053
|
+
this._upperCase = coerceBooleanProperty(value);
|
25054
|
+
},
|
25055
|
+
enumerable: false,
|
25056
|
+
configurable: true
|
25057
|
+
});
|
25058
|
+
Object.defineProperty(GIPITextareaComponent.prototype, "spaceDrop", {
|
25059
|
+
get: function () {
|
25060
|
+
return this._spaceDrop;
|
25061
|
+
},
|
25062
|
+
set: function (value) {
|
25063
|
+
this._spaceDrop = coerceBooleanProperty(value);
|
25064
|
+
},
|
25065
|
+
enumerable: false,
|
25066
|
+
configurable: true
|
25067
|
+
});
|
25068
|
+
Object.defineProperty(GIPITextareaComponent.prototype, "value", {
|
25069
|
+
get: function () {
|
25070
|
+
return this._value;
|
25071
|
+
},
|
25072
|
+
set: function (value) {
|
25073
|
+
var valueAux = value;
|
25074
|
+
valueAux = this._checkSpaceDrop(valueAux);
|
25075
|
+
valueAux = this._checkLowercase(valueAux);
|
25076
|
+
valueAux = this._checkUppercase(valueAux);
|
25077
|
+
this._value = valueAux;
|
25078
|
+
this.onChange(this._value);
|
25079
|
+
this.onTouched(this._value);
|
25080
|
+
},
|
25081
|
+
enumerable: false,
|
25082
|
+
configurable: true
|
25083
|
+
});
|
25084
|
+
GIPITextareaComponent.prototype.ngOnInit = function () { };
|
25085
|
+
GIPITextareaComponent.prototype.writeValue = function (value) {
|
25086
|
+
this._value = value;
|
24068
25087
|
};
|
24069
|
-
|
25088
|
+
GIPITextareaComponent.prototype.registerOnChange = function (fn) {
|
24070
25089
|
this.onChange = fn;
|
24071
25090
|
};
|
24072
|
-
|
25091
|
+
GIPITextareaComponent.prototype.registerOnTouched = function (fn) {
|
24073
25092
|
this.onTouched = fn;
|
24074
25093
|
};
|
24075
|
-
|
25094
|
+
GIPITextareaComponent.prototype.setDisabledState = function (isDisabled) {
|
24076
25095
|
this.disabled = isDisabled;
|
24077
25096
|
this._changeDetectorRef.markForCheck();
|
24078
25097
|
};
|
24079
|
-
|
24080
|
-
|
24081
|
-
|
24082
|
-
to = this._roundToStep(to);
|
24083
|
-
// if ((to - from) > this.maxRange) {
|
24084
|
-
// from = to - this.maxRange;
|
24085
|
-
// }
|
24086
|
-
this._fillSlider();
|
24087
|
-
this._setToggleAccessible();
|
24088
|
-
if (from > to) {
|
24089
|
-
this.fromValue = to;
|
24090
|
-
}
|
24091
|
-
this.fromSlider.nativeElement.value = this.fromValue.toString();
|
24092
|
-
this._notifyValueChange();
|
24093
|
-
};
|
24094
|
-
GIPIRangeSliderComponent.prototype.controlToInput = function (isByNgModel) {
|
24095
|
-
var _a = __read(isByNgModel ? [this.fromValue, this.toValue] : this._getParsed(this.fromSlider.nativeElement, this.toSlider.nativeElement), 2), from = _a[0], to = _a[1];
|
24096
|
-
from = this._roundToStep(from);
|
24097
|
-
to = this._roundToStep(to);
|
24098
|
-
// if ((to - from) > this.maxRange) {
|
24099
|
-
// to = from + this.maxRange;
|
24100
|
-
// }
|
24101
|
-
this._fillSlider();
|
24102
|
-
this._setToggleAccessible();
|
24103
|
-
if (from <= to) {
|
24104
|
-
this.toValue = to;
|
24105
|
-
}
|
24106
|
-
else {
|
24107
|
-
this.toValue = from;
|
24108
|
-
}
|
24109
|
-
this.toSlider.nativeElement.value = this.toValue.toString();
|
24110
|
-
this._notifyValueChange();
|
24111
|
-
};
|
24112
|
-
GIPIRangeSliderComponent.prototype.controlFromSlider = function () {
|
24113
|
-
var _a = __read(this._getParsed(this.fromSlider.nativeElement, this.toSlider.nativeElement), 2), from = _a[0], to = _a[1];
|
24114
|
-
from = this._roundToStep(from);
|
24115
|
-
to = this._roundToStep(to);
|
24116
|
-
if ((to - from) > this.maxRange) {
|
24117
|
-
from = to - this.maxRange;
|
24118
|
-
}
|
24119
|
-
this._fillSlider();
|
24120
|
-
this._setToggleAccessible();
|
24121
|
-
if ((to - from) === this.maxRange) {
|
24122
|
-
var _b = __read(this._getParsed(this.fromSlider.nativeElement, this.toSlider.nativeElement), 2), from_1 = _b[0], to_1 = _b[1];
|
24123
|
-
from_1 = this._roundToStep(from_1);
|
24124
|
-
to_1 = this._roundToStep(to_1);
|
24125
|
-
if ((to_1 - from_1) > this.maxRange) {
|
24126
|
-
to_1 = from_1 + this.maxRange;
|
24127
|
-
}
|
24128
|
-
this._fillSlider();
|
24129
|
-
if (from_1 <= to_1) {
|
24130
|
-
this.toValue = to_1;
|
24131
|
-
}
|
24132
|
-
else {
|
24133
|
-
this.toValue = from_1;
|
24134
|
-
}
|
24135
|
-
this.toSlider.nativeElement.value = this.toValue.toString();
|
24136
|
-
}
|
24137
|
-
if (from >= to) {
|
24138
|
-
this.fromValue = to;
|
24139
|
-
}
|
24140
|
-
else {
|
24141
|
-
this.fromValue = from;
|
24142
|
-
}
|
24143
|
-
this.fromSlider.nativeElement.value = this.fromValue.toString();
|
24144
|
-
this._notifyValueChange();
|
24145
|
-
};
|
24146
|
-
GIPIRangeSliderComponent.prototype.controlToSlider = function () {
|
24147
|
-
var _a = __read(this._getParsed(this.fromSlider.nativeElement, this.toSlider.nativeElement), 2), from = _a[0], to = _a[1];
|
24148
|
-
from = this._roundToStep(from);
|
24149
|
-
to = this._roundToStep(to);
|
24150
|
-
if ((to - from) > this.maxRange) {
|
24151
|
-
to = from + this.maxRange;
|
24152
|
-
}
|
24153
|
-
this._fillSlider();
|
24154
|
-
this._setToggleAccessible();
|
24155
|
-
if ((to - from) === this.maxRange) {
|
24156
|
-
var _b = __read(this._getParsed(this.fromSlider.nativeElement, this.toSlider.nativeElement), 2), from_2 = _b[0], to_2 = _b[1];
|
24157
|
-
from_2 = this._roundToStep(from_2);
|
24158
|
-
to_2 = this._roundToStep(to_2);
|
24159
|
-
if ((to_2 - from_2) > this.maxRange) {
|
24160
|
-
from_2 = to_2 - this.maxRange;
|
24161
|
-
}
|
24162
|
-
this._fillSlider();
|
24163
|
-
if (from_2 >= to_2) {
|
24164
|
-
this.fromValue = to_2;
|
24165
|
-
}
|
24166
|
-
else {
|
24167
|
-
this.fromValue = from_2;
|
24168
|
-
}
|
24169
|
-
this.fromSlider.nativeElement.value = this.fromValue.toString();
|
24170
|
-
}
|
24171
|
-
if (from <= to) {
|
24172
|
-
this.toValue = to;
|
24173
|
-
}
|
24174
|
-
else {
|
24175
|
-
this.toValue = from;
|
25098
|
+
GIPITextareaComponent.prototype._checkSpaceDrop = function (value) {
|
25099
|
+
if (this.spaceDrop && value) {
|
25100
|
+
return value.replace(/\s/g, '');
|
24176
25101
|
}
|
24177
|
-
|
24178
|
-
this._notifyValueChange();
|
24179
|
-
};
|
24180
|
-
GIPIRangeSliderComponent.prototype._getParsed = function (currentFrom, currentTo) {
|
24181
|
-
var from = parseInt(currentFrom.value, 10);
|
24182
|
-
var to = parseInt(currentTo.value, 10);
|
24183
|
-
return [from, to];
|
24184
|
-
};
|
24185
|
-
GIPIRangeSliderComponent.prototype._fillSlider = function () {
|
24186
|
-
var fromSliderEl = this.fromSlider.nativeElement;
|
24187
|
-
var toSliderEl = this.toSlider.nativeElement;
|
24188
|
-
var rangeDistance = Number(toSliderEl.max) - Number(toSliderEl.min);
|
24189
|
-
var fromPosition = (this.fromValue - Number(fromSliderEl.min));
|
24190
|
-
var toPosition = (this.toValue - Number(toSliderEl.min));
|
24191
|
-
var sliderColor = '#e0e1e2';
|
24192
|
-
var rangeColor = '#f1a0a6';
|
24193
|
-
toSliderEl.style.background = "linear-gradient(\n to right,\n " + sliderColor + " 0%,\n " + sliderColor + " " + (fromPosition) / (rangeDistance) * 100 + "%,\n " + rangeColor + " " + ((fromPosition) / (rangeDistance)) * 100 + "%,\n " + rangeColor + " " + (toPosition) / (rangeDistance) * 100 + "%,\n " + sliderColor + " " + (toPosition) / (rangeDistance) * 100 + "%,\n " + sliderColor + " 100%)";
|
25102
|
+
return value;
|
24194
25103
|
};
|
24195
|
-
|
24196
|
-
|
24197
|
-
|
24198
|
-
var fromValue = parseInt(fromInput.value, 10);
|
24199
|
-
var toValue = parseInt(toInput.value, 10);
|
24200
|
-
if (fromValue <= parseInt(fromInput.min, 10) && toValue <= parseInt(toInput.min, 10)) {
|
24201
|
-
// Ambos estão no mínimo
|
24202
|
-
fromInput.style.zIndex = '1';
|
24203
|
-
toInput.style.zIndex = '2';
|
24204
|
-
}
|
24205
|
-
else if (fromValue >= parseInt(fromInput.max, 10) && toValue >= parseInt(toInput.max, 10)) {
|
24206
|
-
// Ambos estão no máximo
|
24207
|
-
fromInput.style.zIndex = '2';
|
24208
|
-
toInput.style.zIndex = '1';
|
24209
|
-
}
|
24210
|
-
else {
|
24211
|
-
// Caso geral
|
24212
|
-
fromInput.style.zIndex = '2';
|
24213
|
-
toInput.style.zIndex = '1';
|
25104
|
+
GIPITextareaComponent.prototype._checkUppercase = function (value) {
|
25105
|
+
if (this.upperCase && value) {
|
25106
|
+
return value.toUpperCase();
|
24214
25107
|
}
|
25108
|
+
return value;
|
24215
25109
|
};
|
24216
|
-
|
24217
|
-
|
24218
|
-
|
24219
|
-
|
24220
|
-
|
24221
|
-
};
|
24222
|
-
|
24223
|
-
|
24224
|
-
};
|
24225
|
-
var GIPIRangeSliderComponent_1;
|
24226
|
-
GIPIRangeSliderComponent.ctorParameters = function () { return [
|
25110
|
+
GIPITextareaComponent.prototype._checkLowercase = function (value) {
|
25111
|
+
if (this.lowerCase && value) {
|
25112
|
+
return value.toLowerCase();
|
25113
|
+
}
|
25114
|
+
return value;
|
25115
|
+
};
|
25116
|
+
var GIPITextareaComponent_1;
|
25117
|
+
GIPITextareaComponent.ctorParameters = function () { return [
|
24227
25118
|
{ type: ElementRef },
|
24228
25119
|
{ type: ChangeDetectorRef }
|
24229
25120
|
]; };
|
24230
25121
|
__decorate([
|
24231
|
-
|
24232
|
-
__metadata("design:type",
|
24233
|
-
],
|
24234
|
-
__decorate([
|
24235
|
-
ViewChild('toSlider', { static: false }),
|
24236
|
-
__metadata("design:type", ElementRef)
|
24237
|
-
], GIPIRangeSliderComponent.prototype, "toSlider", void 0);
|
25122
|
+
Input(),
|
25123
|
+
__metadata("design:type", String)
|
25124
|
+
], GIPITextareaComponent.prototype, "id", void 0);
|
24238
25125
|
__decorate([
|
24239
25126
|
Input(),
|
24240
25127
|
__metadata("design:type", String)
|
24241
|
-
],
|
25128
|
+
], GIPITextareaComponent.prototype, "name", void 0);
|
24242
25129
|
__decorate([
|
24243
25130
|
Input(),
|
24244
25131
|
__metadata("design:type", String)
|
24245
|
-
],
|
25132
|
+
], GIPITextareaComponent.prototype, "label", void 0);
|
24246
25133
|
__decorate([
|
24247
25134
|
Input(),
|
24248
25135
|
__metadata("design:type", String)
|
24249
|
-
],
|
25136
|
+
], GIPITextareaComponent.prototype, "placeholder", void 0);
|
25137
|
+
__decorate([
|
25138
|
+
Input(),
|
25139
|
+
__metadata("design:type", Number)
|
25140
|
+
], GIPITextareaComponent.prototype, "cols", void 0);
|
25141
|
+
__decorate([
|
25142
|
+
Input(),
|
25143
|
+
__metadata("design:type", Number)
|
25144
|
+
], GIPITextareaComponent.prototype, "rows", void 0);
|
24250
25145
|
__decorate([
|
24251
25146
|
Input(),
|
24252
25147
|
__metadata("design:type", String)
|
24253
|
-
],
|
25148
|
+
], GIPITextareaComponent.prototype, "help", void 0);
|
24254
25149
|
__decorate([
|
24255
25150
|
Input(),
|
24256
25151
|
__metadata("design:type", Number)
|
24257
|
-
],
|
25152
|
+
], GIPITextareaComponent.prototype, "maxlength", void 0);
|
24258
25153
|
__decorate([
|
24259
25154
|
Input(),
|
24260
25155
|
__metadata("design:type", Number)
|
24261
|
-
],
|
25156
|
+
], GIPITextareaComponent.prototype, "minlength", void 0);
|
24262
25157
|
__decorate([
|
24263
25158
|
Input(),
|
24264
|
-
__metadata("design:type",
|
24265
|
-
__metadata("design:paramtypes", [
|
24266
|
-
],
|
25159
|
+
__metadata("design:type", String),
|
25160
|
+
__metadata("design:paramtypes", [String])
|
25161
|
+
], GIPITextareaComponent.prototype, "resize", null);
|
24267
25162
|
__decorate([
|
24268
|
-
Input(
|
24269
|
-
__metadata("design:type",
|
24270
|
-
__metadata("design:paramtypes", [
|
24271
|
-
],
|
25163
|
+
Input(),
|
25164
|
+
__metadata("design:type", String),
|
25165
|
+
__metadata("design:paramtypes", [String])
|
25166
|
+
], GIPITextareaComponent.prototype, "minHeight", null);
|
24272
25167
|
__decorate([
|
24273
|
-
Input(
|
24274
|
-
__metadata("design:type",
|
24275
|
-
__metadata("design:paramtypes", [
|
24276
|
-
],
|
25168
|
+
Input(),
|
25169
|
+
__metadata("design:type", String),
|
25170
|
+
__metadata("design:paramtypes", [String])
|
25171
|
+
], GIPITextareaComponent.prototype, "height", null);
|
24277
25172
|
__decorate([
|
24278
25173
|
Input(),
|
24279
|
-
__metadata("design:type",
|
24280
|
-
__metadata("design:paramtypes", [
|
24281
|
-
],
|
25174
|
+
__metadata("design:type", String),
|
25175
|
+
__metadata("design:paramtypes", [String])
|
25176
|
+
], GIPITextareaComponent.prototype, "maxHeight", null);
|
25177
|
+
__decorate([
|
25178
|
+
Input(),
|
25179
|
+
__metadata("design:type", String),
|
25180
|
+
__metadata("design:paramtypes", [String])
|
25181
|
+
], GIPITextareaComponent.prototype, "autocomplete", null);
|
24282
25182
|
__decorate([
|
24283
25183
|
Input(),
|
24284
25184
|
__metadata("design:type", Boolean),
|
24285
25185
|
__metadata("design:paramtypes", [Boolean])
|
24286
|
-
],
|
25186
|
+
], GIPITextareaComponent.prototype, "autofocus", null);
|
24287
25187
|
__decorate([
|
24288
25188
|
Input(),
|
24289
25189
|
__metadata("design:type", Boolean),
|
24290
25190
|
__metadata("design:paramtypes", [Boolean])
|
24291
|
-
],
|
24292
|
-
|
25191
|
+
], GIPITextareaComponent.prototype, "readOnly", null);
|
25192
|
+
__decorate([
|
25193
|
+
Input(),
|
25194
|
+
__metadata("design:type", Boolean),
|
25195
|
+
__metadata("design:paramtypes", [Boolean])
|
25196
|
+
], GIPITextareaComponent.prototype, "required", null);
|
25197
|
+
__decorate([
|
25198
|
+
Input(),
|
25199
|
+
__metadata("design:type", Boolean),
|
25200
|
+
__metadata("design:paramtypes", [Boolean])
|
25201
|
+
], GIPITextareaComponent.prototype, "disabled", null);
|
25202
|
+
__decorate([
|
25203
|
+
Input(),
|
25204
|
+
__metadata("design:type", Boolean),
|
25205
|
+
__metadata("design:paramtypes", [Boolean])
|
25206
|
+
], GIPITextareaComponent.prototype, "lowerCase", null);
|
25207
|
+
__decorate([
|
25208
|
+
Input(),
|
25209
|
+
__metadata("design:type", Boolean),
|
25210
|
+
__metadata("design:paramtypes", [Boolean])
|
25211
|
+
], GIPITextareaComponent.prototype, "upperCase", null);
|
25212
|
+
__decorate([
|
25213
|
+
Input(),
|
25214
|
+
__metadata("design:type", Boolean),
|
25215
|
+
__metadata("design:paramtypes", [Boolean])
|
25216
|
+
], GIPITextareaComponent.prototype, "spaceDrop", null);
|
25217
|
+
__decorate([
|
25218
|
+
Input(),
|
25219
|
+
__metadata("design:type", Object),
|
25220
|
+
__metadata("design:paramtypes", [Object])
|
25221
|
+
], GIPITextareaComponent.prototype, "value", null);
|
25222
|
+
GIPITextareaComponent = GIPITextareaComponent_1 = __decorate([
|
24293
25223
|
Component({
|
24294
|
-
selector: 'gipi-
|
24295
|
-
exportAs: '
|
24296
|
-
template: "<label
|
25224
|
+
selector: 'gipi-textarea',
|
25225
|
+
exportAs: 'gipiTextarea',
|
25226
|
+
template: "<label class=\"textarea-label\"\n *ngIf=\"label\"\n [attr.for]=\"id\">\n {{ label }}\n <span *ngIf=\"required\"> * </span>\n</label>\n\n<textarea class=\"textarea-element\"\n [attr.id]=\"id\"\n [attr.name]=\"name\"\n [placeholder]=\"placeholder\"\n [cols]=\"cols\"\n [rows]=\"rows\"\n [class.resize-none]=\"resize === 'none'\"\n [class.resize-both]=\"resize === 'both'\"\n [class.resize-horizontal]=\"resize === 'horizontal'\"\n [class.resize-vertical]=\"resize === 'vertical'\"\n [style.min-height.px]=\"minHeight\"\n [style.height.px]=\"height\"\n [style.max-height.px]=\"maxHeight\"\n [minlength]=\"minlength\"\n [maxlength]=\"maxlength\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [readOnly]=\"readOnly\"\n [attr.autocomplete]=\"autocomplete\"\n [autofocus]=\"autofocus\"\n [(ngModel)]=\"value\"\n [value]=\"value\">\n </textarea>\n\n<small *ngIf=\"help\"\n class=\"textarea-help\">\n {{ help }}\n</small>",
|
24297
25227
|
providers: [
|
24298
25228
|
{
|
24299
25229
|
provide: NG_VALUE_ACCESSOR,
|
24300
|
-
useExisting: forwardRef(function () { return
|
25230
|
+
useExisting: forwardRef(function () { return GIPITextareaComponent_1; }),
|
24301
25231
|
multi: true
|
24302
|
-
}
|
25232
|
+
}
|
24303
25233
|
],
|
24304
25234
|
host: {
|
24305
|
-
'class': 'gipi-
|
25235
|
+
'class': 'gipi-textarea',
|
24306
25236
|
},
|
24307
25237
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
24308
|
-
styles: [":host{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}:host .
|
25238
|
+
styles: [":host{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}:host .textarea-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}:host .textarea-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}:host .textarea-element{display:flex;font-family:inherit;font-size:inherit;color:inherit;padding:.75rem .8rem;background:#fff;border:1px solid rgba(0,0,0,.12);transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:6px;caret-color:#696969;max-height:12rem;min-height:6rem;resize:vertical;outline:0;overflow:auto}:host .textarea-element:not(:disabled):hover{border-color:#6d6f73}:host .textarea-element:not(:disabled).ng-dirty.ng-invalid:enabled:hover,:host .textarea-element:not(:disabled):invalid:enabled:hover{border-color:#e07f62}:host .textarea-element:not(:disabled):enabled:focus{outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}:host .textarea-element:not(:disabled).ng-dirty.ng-invalid:enabled,:host .textarea-element:not(:disabled):invalid:enabled{border-color:#d14014}:host .textarea-element:not(:disabled).ng-dirty.ng-invalid:enabled:focus,:host .textarea-element:not(:disabled):invalid:enabled:focus{outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #f1c4b6;border-color:#d14014}:host .textarea-element:disabled{color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}:host .textarea-element.resize-none{resize:none}:host .textarea-element.resize-both{resize:both}:host .textarea-element.resize-horizontal{resize:horizontal}:host .textarea-element.resize-vertical{resize:vertical}:host .textarea-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::-webkit-input-placeholder{color:#bbbdc1}:-moz-placeholder{color:#bbbdc1}::-moz-placeholder{color:#bbbdc1}:-ms-input-placeholder{color:#bbbdc1}"]
|
24309
25239
|
}),
|
24310
25240
|
__metadata("design:paramtypes", [ElementRef,
|
24311
25241
|
ChangeDetectorRef])
|
24312
|
-
],
|
24313
|
-
return
|
25242
|
+
], GIPITextareaComponent);
|
25243
|
+
return GIPITextareaComponent;
|
24314
25244
|
}());
|
24315
25245
|
|
24316
25246
|
var INJECTOR;
|
@@ -24354,6 +25284,14 @@ var GIPIComponents = [
|
|
24354
25284
|
GIPIBadgeComponent,
|
24355
25285
|
GIPIRangeSliderComponent,
|
24356
25286
|
GIPIRangePageComponent,
|
25287
|
+
GIPISlideToggleComponent,
|
25288
|
+
GIPIEmptyStateComponent,
|
25289
|
+
GIPICardComponent,
|
25290
|
+
GIPITextareaComponent,
|
25291
|
+
GIPISplitButtonComponent,
|
25292
|
+
// Tabs
|
25293
|
+
GIPITabGroupComponent,
|
25294
|
+
GIPITabComponent,
|
24357
25295
|
// Table
|
24358
25296
|
GIPITableHeaderComponent,
|
24359
25297
|
GIPITableBodyComponent,
|
@@ -24369,6 +25307,7 @@ var GIPIDirectives = [
|
|
24369
25307
|
GIPIFileDragAndDropDirective,
|
24370
25308
|
GIPIInfiniteScrollDirective,
|
24371
25309
|
GIPIPaginationControlsDirective,
|
25310
|
+
GIPIDynamicTabDirective,
|
24372
25311
|
];
|
24373
25312
|
var GIPIPipes = [
|
24374
25313
|
GIPIPaginatePipe,
|
@@ -24416,9 +25355,6 @@ var SharedModule = /** @class */ (function () {
|
|
24416
25355
|
RadioGroupEntityComponent,
|
24417
25356
|
RadioGroupEnumComponent,
|
24418
25357
|
SlideToggleComponent,
|
24419
|
-
TabGroupComponent,
|
24420
|
-
TabComponent,
|
24421
|
-
DynamicTabDirective,
|
24422
25358
|
IconComponent,
|
24423
25359
|
StepperComponent,
|
24424
25360
|
TextareaComponent,
|
@@ -24431,7 +25367,6 @@ var SharedModule = /** @class */ (function () {
|
|
24431
25367
|
SpaceDropDirective,
|
24432
25368
|
OverlayPanelComponent,
|
24433
25369
|
ItssTemplate,
|
24434
|
-
SelectButtonComponent,
|
24435
25370
|
SelectMonthPeriodComponent,
|
24436
25371
|
InputSelectInfiniteScrollDirective,
|
24437
25372
|
TableScrolledComponent,
|
@@ -24483,8 +25418,6 @@ var SharedModule = /** @class */ (function () {
|
|
24483
25418
|
RadioGroupEntityComponent,
|
24484
25419
|
RadioGroupEnumComponent,
|
24485
25420
|
SlideToggleComponent,
|
24486
|
-
TabGroupComponent,
|
24487
|
-
TabComponent,
|
24488
25421
|
IconComponent,
|
24489
25422
|
StepperComponent,
|
24490
25423
|
TextareaComponent,
|
@@ -24494,7 +25427,6 @@ var SharedModule = /** @class */ (function () {
|
|
24494
25427
|
MentionModule,
|
24495
25428
|
OverlayPanelComponent,
|
24496
25429
|
ItssTemplate,
|
24497
|
-
SelectButtonComponent,
|
24498
25430
|
SelectMonthPeriodComponent,
|
24499
25431
|
InputSelectInfiniteScrollDirective,
|
24500
25432
|
TableScrolledComponent,
|
@@ -24509,8 +25441,8 @@ var SharedModule = /** @class */ (function () {
|
|
24509
25441
|
],
|
24510
25442
|
entryComponents: [
|
24511
25443
|
GIPIConfirmationDialogComponent,
|
24512
|
-
|
24513
|
-
|
25444
|
+
GIPITabGroupComponent,
|
25445
|
+
GIPITabComponent,
|
24514
25446
|
PopoverComponent,
|
24515
25447
|
],
|
24516
25448
|
providers: [
|
@@ -25381,33 +26313,27 @@ var GIPIAbstractCrudService = /** @class */ (function (_super) {
|
|
25381
26313
|
return this.baseService.httpClient.post(this.url('find-all', version), filter, this.options()).pipe(map(this.handleMapper), takeUntil(this.handleDestroy), catchError(this.handleError));
|
25382
26314
|
};
|
25383
26315
|
GIPIAbstractCrudService.prototype.findAllEnabled = function (page, size, version) {
|
25384
|
-
|
25385
|
-
|
25386
|
-
|
25387
|
-
|
25388
|
-
|
25389
|
-
|
25390
|
-
return this.baseService.httpClient.get(this.url("find-all-enabled
|
26316
|
+
var validatedPage = Math.max(page, 0);
|
26317
|
+
var validatedSize = Math.max(size, 10);
|
26318
|
+
var params = new URLSearchParams();
|
26319
|
+
params.set('page', validatedPage.toString());
|
26320
|
+
params.set('size', validatedSize.toString());
|
26321
|
+
var queryString = !StringUtil.isEmpty(params.toString()) ? "?" + params.toString() : '';
|
26322
|
+
return this.baseService.httpClient.get(this.url("find-all-enabled" + queryString, version), this.options()).pipe(map(this.handleMapper), takeUntil(this.handleDestroy), catchError(this.handleError));
|
25391
26323
|
};
|
25392
26324
|
GIPIAbstractCrudService.prototype.findByValue = function (value, page, size, sort, version) {
|
25393
|
-
var
|
25394
|
-
|
25395
|
-
|
25396
|
-
|
25397
|
-
|
25398
|
-
|
25399
|
-
|
25400
|
-
if ((!page) || (page && (page < 0))) {
|
25401
|
-
page = 0;
|
25402
|
-
}
|
25403
|
-
if ((!size) || (size && (size <= 0))) {
|
25404
|
-
size = 10;
|
25405
|
-
}
|
25406
|
-
var lSort = '';
|
26325
|
+
var formattedValue = !StringUtil.isEmpty(value) ? value.trim() : '';
|
26326
|
+
var validatedPage = Math.max(page, 0);
|
26327
|
+
var validatedSize = Math.max(size, 10);
|
26328
|
+
var params = new URLSearchParams();
|
26329
|
+
params.set('value', formattedValue);
|
26330
|
+
params.set('page', validatedPage.toString());
|
26331
|
+
params.set('size', validatedSize.toString());
|
25407
26332
|
if (!ObjectUtil.isNull(sort) && !StringUtil.isEmpty(sort.field)) {
|
25408
|
-
|
26333
|
+
params.set('sort', sort.field + "," + sort.direction);
|
25409
26334
|
}
|
25410
|
-
|
26335
|
+
var queryString = !StringUtil.isEmpty(params.toString()) ? "?" + params.toString() : '';
|
26336
|
+
return this.baseService.httpClient.get(this.url("find-by-value" + queryString, version), this.options()).pipe(map(this.handleMapper), takeUntil(this.handleDestroy), catchError(this.handleError));
|
25411
26337
|
};
|
25412
26338
|
/**
|
25413
26339
|
* Refers to the enable-or-disable endpoint
|
@@ -26700,6 +27626,18 @@ var MenuDTO = /** @class */ (function (_super) {
|
|
26700
27626
|
return MenuDTO;
|
26701
27627
|
}(AbstractDTO));
|
26702
27628
|
|
27629
|
+
var TabDTO = /** @class */ (function (_super) {
|
27630
|
+
__extends(TabDTO, _super);
|
27631
|
+
function TabDTO() {
|
27632
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
27633
|
+
_this.active = false;
|
27634
|
+
_this.closeable = false;
|
27635
|
+
_this.disabled = false;
|
27636
|
+
return _this;
|
27637
|
+
}
|
27638
|
+
return TabDTO;
|
27639
|
+
}(AbstractDTO));
|
27640
|
+
|
26703
27641
|
var TableColumnDTO = /** @class */ (function (_super) {
|
26704
27642
|
__extends(TableColumnDTO, _super);
|
26705
27643
|
function TableColumnDTO(name, property, value, sortable, hiddenSm, visible, width, marginLeft, marginRight, align, template, templateHeader, sliceLength, action) {
|
@@ -27132,137 +28070,6 @@ var EmailUtil = /** @class */ (function () {
|
|
27132
28070
|
return EmailUtil;
|
27133
28071
|
}());
|
27134
28072
|
|
27135
|
-
/** @dynamic */
|
27136
|
-
var PhoneUtil = /** @class */ (function () {
|
27137
|
-
function PhoneUtil() {
|
27138
|
-
}
|
27139
|
-
PhoneUtil.removeCharacters = function (value) {
|
27140
|
-
if (StringUtil.isEmpty(value)) {
|
27141
|
-
return '';
|
27142
|
-
}
|
27143
|
-
return value.replace(/\D/g, '');
|
27144
|
-
};
|
27145
|
-
PhoneUtil.maskLib = function (phoneNumber, state, country) {
|
27146
|
-
if (country === void 0) { country = 'BR'; }
|
27147
|
-
var exampleNumber;
|
27148
|
-
if (!StringUtil.isEmpty(phoneNumber)) {
|
27149
|
-
var parsedNumber = parsePhoneNumberFromString(phoneNumber, country);
|
27150
|
-
if (parsedNumber) {
|
27151
|
-
exampleNumber = parsedNumber;
|
27152
|
-
}
|
27153
|
-
}
|
27154
|
-
else {
|
27155
|
-
exampleNumber = getExampleNumber(country, state);
|
27156
|
-
}
|
27157
|
-
if (exampleNumber) {
|
27158
|
-
var formattedNumber = exampleNumber.formatNational();
|
27159
|
-
return formattedNumber.replace(/\d/g, '0');
|
27160
|
-
}
|
27161
|
-
else {
|
27162
|
-
throw new Error('Estado não suportado ou código de estado inválido.');
|
27163
|
-
}
|
27164
|
-
};
|
27165
|
-
PhoneUtil.formatLib = function (phoneNumber, country) {
|
27166
|
-
if (country === void 0) { country = 'BR'; }
|
27167
|
-
try {
|
27168
|
-
var parsedNumber = parsePhoneNumberFromString(phoneNumber, country);
|
27169
|
-
if (parsedNumber) {
|
27170
|
-
return parsedNumber.formatNational();
|
27171
|
-
}
|
27172
|
-
else {
|
27173
|
-
throw new Error('Número de telefone inválido.');
|
27174
|
-
}
|
27175
|
-
}
|
27176
|
-
catch (error) {
|
27177
|
-
throw new Error('Erro ao formatar o número de telefone: ' + error.message);
|
27178
|
-
}
|
27179
|
-
};
|
27180
|
-
PhoneUtil.format = function (number, mask) {
|
27181
|
-
var numberNotFormatted = NumberUtil.onlyNumbers(number);
|
27182
|
-
var phoneFormatted = '';
|
27183
|
-
if ((numberNotFormatted.length < 8) ||
|
27184
|
-
(numberNotFormatted.length > 12) ||
|
27185
|
-
(!this.isPossible(numberNotFormatted) && !this.isValid(numberNotFormatted))) {
|
27186
|
-
return numberNotFormatted;
|
27187
|
-
}
|
27188
|
-
if (StringUtil.isEmpty(mask)) {
|
27189
|
-
mask = this.mask(numberNotFormatted);
|
27190
|
-
}
|
27191
|
-
for (var i = 0, j = 0; i < mask.length && j < numberNotFormatted.length; i++) {
|
27192
|
-
phoneFormatted += mask.charAt(i) === '0' ? numberNotFormatted.charAt(j++) : mask.charAt(i);
|
27193
|
-
}
|
27194
|
-
return phoneFormatted;
|
27195
|
-
};
|
27196
|
-
PhoneUtil.mask = function (phone) {
|
27197
|
-
var specialPrefixes = ['0900', '0800', '0700', '0600', '0500', '0400', '0300', '0200', '0100'];
|
27198
|
-
var phoneAux = this.removeCharacters(phone.replace(/\D/g, ''));
|
27199
|
-
if ((phoneAux.length < 8) ||
|
27200
|
-
(phoneAux.length > 12) ||
|
27201
|
-
(!this.isPossible(phoneAux) && !this.isValid(phoneAux))) {
|
27202
|
-
return '0*';
|
27203
|
-
}
|
27204
|
-
var existInArray = specialPrefixes.some(function (prefix) { return phoneAux.startsWith(prefix); });
|
27205
|
-
if (existInArray) {
|
27206
|
-
return '0000 000 0000'; // Para números especiais como 0800
|
27207
|
-
}
|
27208
|
-
switch (phoneAux.length) {
|
27209
|
-
case 8: return '0000-0000';
|
27210
|
-
case 9: return '0 0000-0000';
|
27211
|
-
case 10: return '(00) 0000-0000';
|
27212
|
-
case 11: return '(00) 0 0000-0000';
|
27213
|
-
case 12: return '(000) 0 0000-0000';
|
27214
|
-
default: return '0*';
|
27215
|
-
}
|
27216
|
-
};
|
27217
|
-
PhoneUtil.isPossible = function (phoneNumber, country) {
|
27218
|
-
if (country === void 0) { country = 'BR'; }
|
27219
|
-
try {
|
27220
|
-
var parsedNumber = parsePhoneNumberFromString(phoneNumber, country);
|
27221
|
-
return parsedNumber ? parsedNumber.isPossible() : false;
|
27222
|
-
}
|
27223
|
-
catch (error) {
|
27224
|
-
return false;
|
27225
|
-
}
|
27226
|
-
};
|
27227
|
-
PhoneUtil.isValid = function (phoneNumber, country) {
|
27228
|
-
if (country === void 0) { country = 'BR'; }
|
27229
|
-
try {
|
27230
|
-
var parsedNumber = parsePhoneNumberFromString(phoneNumber, country);
|
27231
|
-
return parsedNumber ? parsedNumber.isValid() : false;
|
27232
|
-
}
|
27233
|
-
catch (error) {
|
27234
|
-
return false;
|
27235
|
-
}
|
27236
|
-
};
|
27237
|
-
PhoneUtil.getType = function (phoneNumber, country) {
|
27238
|
-
if (country === void 0) { country = 'BR'; }
|
27239
|
-
try {
|
27240
|
-
var parsedNumber = parsePhoneNumberFromString(phoneNumber, country);
|
27241
|
-
return parsedNumber ? parsedNumber.getType() : null;
|
27242
|
-
}
|
27243
|
-
catch (error) {
|
27244
|
-
return null;
|
27245
|
-
}
|
27246
|
-
};
|
27247
|
-
PhoneUtil.isEqual = function (phoneNumber1, phoneNumber2, country) {
|
27248
|
-
if (country === void 0) { country = 'BR'; }
|
27249
|
-
try {
|
27250
|
-
var parsedNumber1 = parsePhoneNumberFromString(phoneNumber1, country);
|
27251
|
-
var parsedNumber2 = parsePhoneNumberFromString(phoneNumber2, country);
|
27252
|
-
if (parsedNumber1 && parsedNumber2) {
|
27253
|
-
return parsedNumber1.isEqual(parsedNumber2);
|
27254
|
-
}
|
27255
|
-
else {
|
27256
|
-
return false;
|
27257
|
-
}
|
27258
|
-
}
|
27259
|
-
catch (error) {
|
27260
|
-
return false;
|
27261
|
-
}
|
27262
|
-
};
|
27263
|
-
return PhoneUtil;
|
27264
|
-
}());
|
27265
|
-
|
27266
28073
|
/** @dynamic */
|
27267
28074
|
var TableColumnBuilder = /** @class */ (function () {
|
27268
28075
|
function TableColumnBuilder(breakpointObserverService) {
|
@@ -27969,5 +28776,5 @@ var MAT_NATIVE_DATE_FORMATS = {
|
|
27969
28776
|
* Generated bundle index. Do not edit.
|
27970
28777
|
*/
|
27971
28778
|
|
27972
|
-
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,
|
28779
|
+
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, 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, PublicGuard, 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$j 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 };
|
27973
28780
|
//# sourceMappingURL=gipisistemas-ng-core.js.map
|