@po-ui/ng-components 16.4.1 → 16.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/po-field/po-field.module.mjs +17 -13
- package/esm2022/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-multiselect/po-multiselect-base.component.mjs +30 -7
- package/esm2022/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.mjs +4 -4
- package/esm2022/lib/components/po-field/po-multiselect/po-multiselect-literals.interface.mjs +1 -1
- package/esm2022/lib/components/po-field/po-multiselect/po-multiselect.component.mjs +220 -51
- package/esm2022/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.mjs +3 -3
- package/esm2022/lib/components/po-listbox/po-item-list/po-item-list.component.mjs +2 -2
- package/esm2022/lib/components/po-table/po-table-base.component.mjs +5 -5
- package/esm2022/lib/components/po-tag/index.mjs +2 -1
- package/esm2022/lib/components/po-tag/interfaces/po-tag-literals.interface.mjs +2 -0
- package/esm2022/lib/components/po-tag/po-tag-base.component.mjs +70 -4
- package/esm2022/lib/components/po-tag/po-tag.component.mjs +52 -44
- package/esm2022/lib/enums/po-key-code.enum.mjs +5 -1
- package/fesm2022/po-ui-ng-components.mjs +701 -532
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-field/po-field.module.d.ts +44 -44
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +21 -2
- package/lib/components/po-field/po-multiselect/po-multiselect-literals.interface.d.ts +2 -0
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +18 -6
- package/lib/components/po-table/po-table-base.component.d.ts +2 -2
- package/lib/components/po-tag/index.d.ts +1 -0
- package/lib/components/po-tag/interfaces/po-tag-literals.interface.d.ts +11 -0
- package/lib/components/po-tag/po-tag-base.component.d.ts +50 -2
- package/lib/components/po-tag/po-tag.component.d.ts +6 -6
- package/lib/enums/po-key-code.enum.d.ts +5 -1
- package/package.json +4 -4
- package/po-ui-ng-components-16.5.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v14/index.js +1 -1
- package/schematics/ng-update/v15/index.js +1 -1
- package/schematics/ng-update/v16/index.js +1 -1
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/esm2022/lib/components/po-field/po-multiselect/po-multiselect-search/po-multiselect-search.component.mjs +0 -91
- package/esm2022/lib/components/po-tag/po-tag.literals.mjs +0 -15
- package/lib/components/po-field/po-multiselect/po-multiselect-search/po-multiselect-search.component.d.ts +0 -40
- package/lib/components/po-tag/po-tag.literals.d.ts +0 -14
- package/po-ui-ng-components-16.4.1.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, Input, Component, ChangeDetectionStrategy, NgModule, TemplateRef, EventEmitter, Output,
|
|
2
|
+
import { Directive, Input, Component, ChangeDetectionStrategy, NgModule, TemplateRef, Injectable, EventEmitter, Output, ElementRef, HostListener, ViewChild, ContentChildren, HostBinding, forwardRef, ViewChildren, ViewContainerRef, ContentChild, Pipe, inject, Injector, Inject, InjectionToken, APP_INITIALIZER } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule, DecimalPipe, NgOptimizedImage, CurrencyPipe, DatePipe, TitleCasePipe } from '@angular/common';
|
|
5
5
|
import * as i2$3 from '@angular/animations';
|
|
@@ -305,6 +305,25 @@ var PoTagType;
|
|
|
305
305
|
PoTagType["Neutral"] = "neutral";
|
|
306
306
|
})(PoTagType || (PoTagType = {}));
|
|
307
307
|
|
|
308
|
+
/**
|
|
309
|
+
* @docsPrivate
|
|
310
|
+
*
|
|
311
|
+
* @description
|
|
312
|
+
*
|
|
313
|
+
* Define os ícones disponíveis para o `po-tag`.
|
|
314
|
+
*/
|
|
315
|
+
var PoTagIcon;
|
|
316
|
+
(function (PoTagIcon) {
|
|
317
|
+
/** Ícone fechar. */
|
|
318
|
+
PoTagIcon["Danger"] = "po-icon-close";
|
|
319
|
+
/** Ícone de informação. */
|
|
320
|
+
PoTagIcon["Info"] = "po-icon-info";
|
|
321
|
+
/** Ícone que representa confirmação. */
|
|
322
|
+
PoTagIcon["Success"] = "po-icon-ok";
|
|
323
|
+
/** Ícone com ponto de exclamação. */
|
|
324
|
+
PoTagIcon["Warning"] = "po-icon-warning";
|
|
325
|
+
})(PoTagIcon || (PoTagIcon = {}));
|
|
326
|
+
|
|
308
327
|
/**
|
|
309
328
|
* @docsPrivate
|
|
310
329
|
*
|
|
@@ -1013,8 +1032,170 @@ function sortArrayOfObjects(items, key, isAscendingOrder) {
|
|
|
1013
1032
|
}
|
|
1014
1033
|
}
|
|
1015
1034
|
|
|
1035
|
+
const poDefaultLanguage = 'PO_DEFAULT_LANGUAGE';
|
|
1036
|
+
const poLocaleKey = 'PO_USER_LOCALE';
|
|
1037
|
+
/**
|
|
1038
|
+
* @docsPrivate
|
|
1039
|
+
*
|
|
1040
|
+
* @description
|
|
1041
|
+
*
|
|
1042
|
+
* Serviço responsável por gerenciar as linguagens da aplicação.
|
|
1043
|
+
*/
|
|
1044
|
+
class PoLanguageService {
|
|
1045
|
+
constructor() { }
|
|
1046
|
+
set languageDefault(language) {
|
|
1047
|
+
if (language && isLanguage(language)) {
|
|
1048
|
+
localStorage.setItem(poDefaultLanguage, language);
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
get languageDefault() {
|
|
1052
|
+
return localStorage.getItem(poDefaultLanguage);
|
|
1053
|
+
}
|
|
1054
|
+
/**
|
|
1055
|
+
* @description
|
|
1056
|
+
*
|
|
1057
|
+
* Método responsável por retornar o idioma ativo.
|
|
1058
|
+
*
|
|
1059
|
+
* A busca do idioma será feita na seguinte ordem:
|
|
1060
|
+
*
|
|
1061
|
+
* 1 - o idioma que foi armazenado no *localStorage*, através do método `setLanguage()` utilizado pelo i18n.
|
|
1062
|
+
*
|
|
1063
|
+
* 2 - o valor inserido nas configurações do módulo do i18n através do parâmetro `config`, sendo o idioma inserido
|
|
1064
|
+
* na propriedade `language` da interface `PoI18nConfigDefault`.
|
|
1065
|
+
*
|
|
1066
|
+
* 3 - o idioma do navegador utilizado.
|
|
1067
|
+
*
|
|
1068
|
+
* > Caso o idioma do navegador não seja suportado pelo PO (`pt`, `en`, `es` ou `ru`), será retornado valor `pt`.
|
|
1069
|
+
*
|
|
1070
|
+
* **Retorno:** `string` com a sigla do idioma ativo.
|
|
1071
|
+
*/
|
|
1072
|
+
getLanguage() {
|
|
1073
|
+
const language = localStorage.getItem(poLocaleKey) || this.languageDefault || getBrowserLanguage();
|
|
1074
|
+
return language && language.toLowerCase();
|
|
1075
|
+
}
|
|
1076
|
+
/**
|
|
1077
|
+
* @description
|
|
1078
|
+
*
|
|
1079
|
+
* Método responsável por retornar o idioma *default* da aplicação definido nas configurações do módulo do i18n através
|
|
1080
|
+
* do parâmetro `config`.
|
|
1081
|
+
*
|
|
1082
|
+
* **Retorno:** `string` com a sigla do idioma *default*.
|
|
1083
|
+
*/
|
|
1084
|
+
getLanguageDefault() {
|
|
1085
|
+
return this.languageDefault;
|
|
1086
|
+
}
|
|
1087
|
+
/**
|
|
1088
|
+
* @description
|
|
1089
|
+
*
|
|
1090
|
+
* Método responsável por retornar a abreviação do idioma ativo na aplicação.
|
|
1091
|
+
*
|
|
1092
|
+
* @default `pt`
|
|
1093
|
+
*
|
|
1094
|
+
* **Retorno:** `string` com a sigla abreviada do idioma ativo.
|
|
1095
|
+
*/
|
|
1096
|
+
getShortLanguage() {
|
|
1097
|
+
const language = this.getLanguage();
|
|
1098
|
+
const shortLanguage = getShortLanguage(language);
|
|
1099
|
+
return poLocales.includes(shortLanguage) ? shortLanguage : poLocaleDefault;
|
|
1100
|
+
}
|
|
1101
|
+
/**
|
|
1102
|
+
* @description
|
|
1103
|
+
*
|
|
1104
|
+
* Método para salvar o idioma da aplicação no *storage*, utilizado pelo serviço do i18n.
|
|
1105
|
+
*
|
|
1106
|
+
* > Ao definir um idioma por este método, todos os módulos da aplicação utilizarão o idioma definido.
|
|
1107
|
+
*
|
|
1108
|
+
* @param language sigla do idioma.
|
|
1109
|
+
*
|
|
1110
|
+
* Esta sigla deve ser composta por duas letras representando o idioma,
|
|
1111
|
+
* podendo ser adicionado outras duas letras representando o país, por exemplo: `pt`, `pt-BR`, `pt-br`, `en` ou `en-US`.
|
|
1112
|
+
*
|
|
1113
|
+
* > Caso seja informado um valor diferente deste padrão, o mesmo será ignorado.
|
|
1114
|
+
*/
|
|
1115
|
+
setLanguage(language) {
|
|
1116
|
+
if (!isLanguage(language)) {
|
|
1117
|
+
return;
|
|
1118
|
+
}
|
|
1119
|
+
localStorage.setItem(poLocaleKey, language.toLowerCase());
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
* @description
|
|
1123
|
+
*
|
|
1124
|
+
* Método que define o idioma configurado a partir do parâmetro `config` utilizado pelo módulo do i18n.
|
|
1125
|
+
*
|
|
1126
|
+
* > Ao definir um idioma por este serviço, apenas o módulo do i18n referente a esta configuração utilizará o idioma definido.
|
|
1127
|
+
*
|
|
1128
|
+
* @param language sigla do idioma.
|
|
1129
|
+
*
|
|
1130
|
+
* Esta sigla deve ser composta por duas letras representando o idioma,
|
|
1131
|
+
* podendo ser adicionado outras duas letras representando o país, por exemplo: `pt`, `pt-BR`, `pt-br`, `en` ou `en-US`.
|
|
1132
|
+
*
|
|
1133
|
+
* > Caso seja informado um valor diferente deste padrão, o mesmo será ignorado.
|
|
1134
|
+
*/
|
|
1135
|
+
setLanguageDefault(language) {
|
|
1136
|
+
this.languageDefault = language;
|
|
1137
|
+
}
|
|
1138
|
+
/**
|
|
1139
|
+
* @description
|
|
1140
|
+
*
|
|
1141
|
+
* Método que retorna o separador
|
|
1142
|
+
*
|
|
1143
|
+
* @param language sigla do idioma.
|
|
1144
|
+
*
|
|
1145
|
+
* Esta sigla deve ser composta por duas letras representando o idioma
|
|
1146
|
+
*
|
|
1147
|
+
* > Caso seja informado um valor diferente deste padrão, o mesmo será ignorado.
|
|
1148
|
+
*/
|
|
1149
|
+
getNumberSeparators(language) {
|
|
1150
|
+
language = language || this.getShortLanguage();
|
|
1151
|
+
const decimal = poLocaleDecimalSeparatorList.find(separator => separator.language === language) ?? {};
|
|
1152
|
+
const thousand = poLocaleThousandSeparatorList.find(separator => separator.language === language) ?? {};
|
|
1153
|
+
const decimalSeparator = decimal.separator ?? ',';
|
|
1154
|
+
const thousandSeparator = thousand.separator ?? '.';
|
|
1155
|
+
return { decimalSeparator, thousandSeparator };
|
|
1156
|
+
}
|
|
1157
|
+
/**
|
|
1158
|
+
* @description
|
|
1159
|
+
*
|
|
1160
|
+
* Método que retorna o separador de datas
|
|
1161
|
+
*
|
|
1162
|
+
* @param language sigla do idioma.
|
|
1163
|
+
*
|
|
1164
|
+
* Esta sigla deve ser composta por duas letras representando o idioma
|
|
1165
|
+
*
|
|
1166
|
+
* > Caso seja informado um valor diferente deste padrão, o mesmo será ignorado.
|
|
1167
|
+
*/
|
|
1168
|
+
getDateSeparator(language) {
|
|
1169
|
+
language = language || this.getShortLanguage();
|
|
1170
|
+
const separatorChar = poLocaleDateSeparatorList.find(separator => separator.locale === language) ?? {};
|
|
1171
|
+
return separatorChar.separator ?? '/';
|
|
1172
|
+
}
|
|
1173
|
+
static ɵfac = function PoLanguageService_Factory(t) { return new (t || PoLanguageService)(); };
|
|
1174
|
+
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoLanguageService, factory: PoLanguageService.ɵfac, providedIn: 'root' });
|
|
1175
|
+
}
|
|
1176
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoLanguageService, [{
|
|
1177
|
+
type: Injectable,
|
|
1178
|
+
args: [{
|
|
1179
|
+
providedIn: 'root'
|
|
1180
|
+
}]
|
|
1181
|
+
}], function () { return []; }, null); })();
|
|
1182
|
+
|
|
1016
1183
|
const poTagColors = Object.values(PoColorPaletteEnum);
|
|
1017
1184
|
const poTagOrientationDefault = PoTagOrientation.Vertical;
|
|
1185
|
+
const PoTagLiteralsDefault = {
|
|
1186
|
+
en: {
|
|
1187
|
+
remove: 'Clear'
|
|
1188
|
+
},
|
|
1189
|
+
es: {
|
|
1190
|
+
remove: 'Eliminar'
|
|
1191
|
+
},
|
|
1192
|
+
pt: {
|
|
1193
|
+
remove: 'Remover'
|
|
1194
|
+
},
|
|
1195
|
+
ru: {
|
|
1196
|
+
remove: 'удалять'
|
|
1197
|
+
}
|
|
1198
|
+
};
|
|
1018
1199
|
/**
|
|
1019
1200
|
* @description
|
|
1020
1201
|
*
|
|
@@ -1090,6 +1271,8 @@ class PoTagBaseComponent {
|
|
|
1090
1271
|
_inverse;
|
|
1091
1272
|
_orientation = poTagOrientationDefault;
|
|
1092
1273
|
_type;
|
|
1274
|
+
_literals;
|
|
1275
|
+
language;
|
|
1093
1276
|
/**
|
|
1094
1277
|
* @optional
|
|
1095
1278
|
*
|
|
@@ -1271,12 +1454,57 @@ class PoTagBaseComponent {
|
|
|
1271
1454
|
get type() {
|
|
1272
1455
|
return this._type;
|
|
1273
1456
|
}
|
|
1274
|
-
|
|
1275
|
-
|
|
1457
|
+
/**
|
|
1458
|
+
* @optional
|
|
1459
|
+
*
|
|
1460
|
+
* @description
|
|
1461
|
+
*
|
|
1462
|
+
* Objeto com as literais usadas no `po-tag`.
|
|
1463
|
+
*
|
|
1464
|
+
*
|
|
1465
|
+
* Para utilizar, basta passar a literal customizada:
|
|
1466
|
+
*
|
|
1467
|
+
* ```
|
|
1468
|
+
* const customLiterals: PoTagLiterals = {
|
|
1469
|
+
* remove: 'Remover itens'
|
|
1470
|
+
* };
|
|
1471
|
+
* ```
|
|
1472
|
+
*
|
|
1473
|
+
* E para carregar as literais customizadas, basta apenas passar o objeto para o componente:
|
|
1474
|
+
*
|
|
1475
|
+
* ```
|
|
1476
|
+
* <po-tag
|
|
1477
|
+
* [p-literals]="customLiterals">
|
|
1478
|
+
* </po-tag>
|
|
1479
|
+
* ```
|
|
1480
|
+
*
|
|
1481
|
+
* > O objeto padrão de literais será traduzido de acordo com o idioma do
|
|
1482
|
+
* [`PoI18nService`](/documentation/po-i18n) ou do browser.
|
|
1483
|
+
*/
|
|
1484
|
+
set literals(value) {
|
|
1485
|
+
if (value instanceof Object && !(value instanceof Array)) {
|
|
1486
|
+
this._literals = {
|
|
1487
|
+
...PoTagLiteralsDefault[poLocaleDefault],
|
|
1488
|
+
...PoTagLiteralsDefault[this.language],
|
|
1489
|
+
...value
|
|
1490
|
+
};
|
|
1491
|
+
}
|
|
1492
|
+
else {
|
|
1493
|
+
this._literals = PoTagLiteralsDefault[this.language];
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
get literals() {
|
|
1497
|
+
return this._literals || PoTagLiteralsDefault[this.language];
|
|
1498
|
+
}
|
|
1499
|
+
constructor(languageService) {
|
|
1500
|
+
this.language = languageService.getShortLanguage();
|
|
1501
|
+
}
|
|
1502
|
+
static ɵfac = function PoTagBaseComponent_Factory(t) { return new (t || PoTagBaseComponent)(i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
1503
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoTagBaseComponent, inputs: { label: ["p-label", "label"], removable: ["p-removable", "removable", convertToBoolean], disabled: ["p-disabled", "disabled", convertToBoolean], value: ["p-value", "value"], color: ["p-color", "color"], textColor: ["p-text-color", "textColor"], icon: ["p-icon", "icon"], inverse: ["p-inverse", "inverse"], orientation: ["p-orientation", "orientation"], type: ["p-type", "type"], literals: ["p-literals", "literals"] }, outputs: { click: "p-click", remove: "p-close" }, features: [i0.ɵɵInputTransformsFeature] });
|
|
1276
1504
|
}
|
|
1277
1505
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTagBaseComponent, [{
|
|
1278
1506
|
type: Directive
|
|
1279
|
-
}],
|
|
1507
|
+
}], function () { return [{ type: PoLanguageService }]; }, { label: [{
|
|
1280
1508
|
type: Input,
|
|
1281
1509
|
args: ['p-label']
|
|
1282
1510
|
}], removable: [{
|
|
@@ -1312,190 +1540,11 @@ class PoTagBaseComponent {
|
|
|
1312
1540
|
}], type: [{
|
|
1313
1541
|
type: Input,
|
|
1314
1542
|
args: ['p-type']
|
|
1543
|
+
}], literals: [{
|
|
1544
|
+
type: Input,
|
|
1545
|
+
args: ['p-literals']
|
|
1315
1546
|
}] }); })();
|
|
1316
1547
|
|
|
1317
|
-
/**
|
|
1318
|
-
* @docsPrivate
|
|
1319
|
-
*
|
|
1320
|
-
* @description
|
|
1321
|
-
*
|
|
1322
|
-
* Define os ícones disponíveis para o `po-tag`.
|
|
1323
|
-
*/
|
|
1324
|
-
var PoTagIcon;
|
|
1325
|
-
(function (PoTagIcon) {
|
|
1326
|
-
/** Ícone fechar. */
|
|
1327
|
-
PoTagIcon["Danger"] = "po-icon-close";
|
|
1328
|
-
/** Ícone de informação. */
|
|
1329
|
-
PoTagIcon["Info"] = "po-icon-info";
|
|
1330
|
-
/** Ícone que representa confirmação. */
|
|
1331
|
-
PoTagIcon["Success"] = "po-icon-ok";
|
|
1332
|
-
/** Ícone com ponto de exclamação. */
|
|
1333
|
-
PoTagIcon["Warning"] = "po-icon-warning";
|
|
1334
|
-
})(PoTagIcon || (PoTagIcon = {}));
|
|
1335
|
-
|
|
1336
|
-
const PoTagLiterals = {
|
|
1337
|
-
en: {
|
|
1338
|
-
remove: 'Remove'
|
|
1339
|
-
},
|
|
1340
|
-
es: {
|
|
1341
|
-
remove: 'Eliminar'
|
|
1342
|
-
},
|
|
1343
|
-
pt: {
|
|
1344
|
-
remove: 'Remover'
|
|
1345
|
-
},
|
|
1346
|
-
ru: {
|
|
1347
|
-
remove: 'удалять'
|
|
1348
|
-
}
|
|
1349
|
-
};
|
|
1350
|
-
|
|
1351
|
-
const poDefaultLanguage = 'PO_DEFAULT_LANGUAGE';
|
|
1352
|
-
const poLocaleKey = 'PO_USER_LOCALE';
|
|
1353
|
-
/**
|
|
1354
|
-
* @docsPrivate
|
|
1355
|
-
*
|
|
1356
|
-
* @description
|
|
1357
|
-
*
|
|
1358
|
-
* Serviço responsável por gerenciar as linguagens da aplicação.
|
|
1359
|
-
*/
|
|
1360
|
-
class PoLanguageService {
|
|
1361
|
-
constructor() { }
|
|
1362
|
-
set languageDefault(language) {
|
|
1363
|
-
if (language && isLanguage(language)) {
|
|
1364
|
-
localStorage.setItem(poDefaultLanguage, language);
|
|
1365
|
-
}
|
|
1366
|
-
}
|
|
1367
|
-
get languageDefault() {
|
|
1368
|
-
return localStorage.getItem(poDefaultLanguage);
|
|
1369
|
-
}
|
|
1370
|
-
/**
|
|
1371
|
-
* @description
|
|
1372
|
-
*
|
|
1373
|
-
* Método responsável por retornar o idioma ativo.
|
|
1374
|
-
*
|
|
1375
|
-
* A busca do idioma será feita na seguinte ordem:
|
|
1376
|
-
*
|
|
1377
|
-
* 1 - o idioma que foi armazenado no *localStorage*, através do método `setLanguage()` utilizado pelo i18n.
|
|
1378
|
-
*
|
|
1379
|
-
* 2 - o valor inserido nas configurações do módulo do i18n através do parâmetro `config`, sendo o idioma inserido
|
|
1380
|
-
* na propriedade `language` da interface `PoI18nConfigDefault`.
|
|
1381
|
-
*
|
|
1382
|
-
* 3 - o idioma do navegador utilizado.
|
|
1383
|
-
*
|
|
1384
|
-
* > Caso o idioma do navegador não seja suportado pelo PO (`pt`, `en`, `es` ou `ru`), será retornado valor `pt`.
|
|
1385
|
-
*
|
|
1386
|
-
* **Retorno:** `string` com a sigla do idioma ativo.
|
|
1387
|
-
*/
|
|
1388
|
-
getLanguage() {
|
|
1389
|
-
const language = localStorage.getItem(poLocaleKey) || this.languageDefault || getBrowserLanguage();
|
|
1390
|
-
return language && language.toLowerCase();
|
|
1391
|
-
}
|
|
1392
|
-
/**
|
|
1393
|
-
* @description
|
|
1394
|
-
*
|
|
1395
|
-
* Método responsável por retornar o idioma *default* da aplicação definido nas configurações do módulo do i18n através
|
|
1396
|
-
* do parâmetro `config`.
|
|
1397
|
-
*
|
|
1398
|
-
* **Retorno:** `string` com a sigla do idioma *default*.
|
|
1399
|
-
*/
|
|
1400
|
-
getLanguageDefault() {
|
|
1401
|
-
return this.languageDefault;
|
|
1402
|
-
}
|
|
1403
|
-
/**
|
|
1404
|
-
* @description
|
|
1405
|
-
*
|
|
1406
|
-
* Método responsável por retornar a abreviação do idioma ativo na aplicação.
|
|
1407
|
-
*
|
|
1408
|
-
* @default `pt`
|
|
1409
|
-
*
|
|
1410
|
-
* **Retorno:** `string` com a sigla abreviada do idioma ativo.
|
|
1411
|
-
*/
|
|
1412
|
-
getShortLanguage() {
|
|
1413
|
-
const language = this.getLanguage();
|
|
1414
|
-
const shortLanguage = getShortLanguage(language);
|
|
1415
|
-
return poLocales.includes(shortLanguage) ? shortLanguage : poLocaleDefault;
|
|
1416
|
-
}
|
|
1417
|
-
/**
|
|
1418
|
-
* @description
|
|
1419
|
-
*
|
|
1420
|
-
* Método para salvar o idioma da aplicação no *storage*, utilizado pelo serviço do i18n.
|
|
1421
|
-
*
|
|
1422
|
-
* > Ao definir um idioma por este método, todos os módulos da aplicação utilizarão o idioma definido.
|
|
1423
|
-
*
|
|
1424
|
-
* @param language sigla do idioma.
|
|
1425
|
-
*
|
|
1426
|
-
* Esta sigla deve ser composta por duas letras representando o idioma,
|
|
1427
|
-
* podendo ser adicionado outras duas letras representando o país, por exemplo: `pt`, `pt-BR`, `pt-br`, `en` ou `en-US`.
|
|
1428
|
-
*
|
|
1429
|
-
* > Caso seja informado um valor diferente deste padrão, o mesmo será ignorado.
|
|
1430
|
-
*/
|
|
1431
|
-
setLanguage(language) {
|
|
1432
|
-
if (!isLanguage(language)) {
|
|
1433
|
-
return;
|
|
1434
|
-
}
|
|
1435
|
-
localStorage.setItem(poLocaleKey, language.toLowerCase());
|
|
1436
|
-
}
|
|
1437
|
-
/**
|
|
1438
|
-
* @description
|
|
1439
|
-
*
|
|
1440
|
-
* Método que define o idioma configurado a partir do parâmetro `config` utilizado pelo módulo do i18n.
|
|
1441
|
-
*
|
|
1442
|
-
* > Ao definir um idioma por este serviço, apenas o módulo do i18n referente a esta configuração utilizará o idioma definido.
|
|
1443
|
-
*
|
|
1444
|
-
* @param language sigla do idioma.
|
|
1445
|
-
*
|
|
1446
|
-
* Esta sigla deve ser composta por duas letras representando o idioma,
|
|
1447
|
-
* podendo ser adicionado outras duas letras representando o país, por exemplo: `pt`, `pt-BR`, `pt-br`, `en` ou `en-US`.
|
|
1448
|
-
*
|
|
1449
|
-
* > Caso seja informado um valor diferente deste padrão, o mesmo será ignorado.
|
|
1450
|
-
*/
|
|
1451
|
-
setLanguageDefault(language) {
|
|
1452
|
-
this.languageDefault = language;
|
|
1453
|
-
}
|
|
1454
|
-
/**
|
|
1455
|
-
* @description
|
|
1456
|
-
*
|
|
1457
|
-
* Método que retorna o separador
|
|
1458
|
-
*
|
|
1459
|
-
* @param language sigla do idioma.
|
|
1460
|
-
*
|
|
1461
|
-
* Esta sigla deve ser composta por duas letras representando o idioma
|
|
1462
|
-
*
|
|
1463
|
-
* > Caso seja informado um valor diferente deste padrão, o mesmo será ignorado.
|
|
1464
|
-
*/
|
|
1465
|
-
getNumberSeparators(language) {
|
|
1466
|
-
language = language || this.getShortLanguage();
|
|
1467
|
-
const decimal = poLocaleDecimalSeparatorList.find(separator => separator.language === language) ?? {};
|
|
1468
|
-
const thousand = poLocaleThousandSeparatorList.find(separator => separator.language === language) ?? {};
|
|
1469
|
-
const decimalSeparator = decimal.separator ?? ',';
|
|
1470
|
-
const thousandSeparator = thousand.separator ?? '.';
|
|
1471
|
-
return { decimalSeparator, thousandSeparator };
|
|
1472
|
-
}
|
|
1473
|
-
/**
|
|
1474
|
-
* @description
|
|
1475
|
-
*
|
|
1476
|
-
* Método que retorna o separador de datas
|
|
1477
|
-
*
|
|
1478
|
-
* @param language sigla do idioma.
|
|
1479
|
-
*
|
|
1480
|
-
* Esta sigla deve ser composta por duas letras representando o idioma
|
|
1481
|
-
*
|
|
1482
|
-
* > Caso seja informado um valor diferente deste padrão, o mesmo será ignorado.
|
|
1483
|
-
*/
|
|
1484
|
-
getDateSeparator(language) {
|
|
1485
|
-
language = language || this.getShortLanguage();
|
|
1486
|
-
const separatorChar = poLocaleDateSeparatorList.find(separator => separator.locale === language) ?? {};
|
|
1487
|
-
return separatorChar.separator ?? '/';
|
|
1488
|
-
}
|
|
1489
|
-
static ɵfac = function PoLanguageService_Factory(t) { return new (t || PoLanguageService)(); };
|
|
1490
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoLanguageService, factory: PoLanguageService.ɵfac, providedIn: 'root' });
|
|
1491
|
-
}
|
|
1492
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoLanguageService, [{
|
|
1493
|
-
type: Injectable,
|
|
1494
|
-
args: [{
|
|
1495
|
-
providedIn: 'root'
|
|
1496
|
-
}]
|
|
1497
|
-
}], function () { return []; }, null); })();
|
|
1498
|
-
|
|
1499
1548
|
// Array de posições.
|
|
1500
1549
|
const PO_CONTROL_POSITIONS = [
|
|
1501
1550
|
'right',
|
|
@@ -2195,33 +2244,35 @@ class PoTooltipDirective extends PoTooltipBaseDirective {
|
|
|
2195
2244
|
args: ['keydown', ['$event']]
|
|
2196
2245
|
}] }); })();
|
|
2197
2246
|
|
|
2198
|
-
const _c0$
|
|
2199
|
-
|
|
2200
|
-
|
|
2247
|
+
const _c0$1D = ["tagContainer"];
|
|
2248
|
+
const _c1$F = ["tagClose"];
|
|
2249
|
+
const _c2$h = ["poTag"];
|
|
2250
|
+
function PoTagComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
2251
|
+
i0.ɵɵelementStart(0, "div", 10)(1, "span", 11);
|
|
2201
2252
|
i0.ɵɵtext(2);
|
|
2202
2253
|
i0.ɵɵelementEnd()();
|
|
2203
2254
|
} if (rf & 2) {
|
|
2204
|
-
const
|
|
2255
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
2205
2256
|
i0.ɵɵadvance(2);
|
|
2206
|
-
i0.ɵɵtextInterpolate(
|
|
2257
|
+
i0.ɵɵtextInterpolate(ctx_r0.tagOrientation ? ctx_r0.label + ":" : ctx_r0.label);
|
|
2207
2258
|
} }
|
|
2208
|
-
const
|
|
2259
|
+
const _c3$d = function (a0) { return { "color": a0 }; };
|
|
2209
2260
|
function PoTagComponent_po_icon_5_Template(rf, ctx) { if (rf & 1) {
|
|
2210
|
-
i0.ɵɵelement(0, "po-icon",
|
|
2261
|
+
i0.ɵɵelement(0, "po-icon", 12);
|
|
2211
2262
|
} if (rf & 2) {
|
|
2212
2263
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
2213
|
-
i0.ɵɵproperty("p-icon", !ctx_r2.type ? ctx_r2.icon : ctx_r2.iconFromType)("ngStyle", !ctx_r2.tagColor && ctx_r2.inverse && !ctx_r2.customTextColor ? i0.ɵɵpureFunction1(2,
|
|
2264
|
+
i0.ɵɵproperty("p-icon", !ctx_r2.type ? ctx_r2.icon : ctx_r2.iconFromType)("ngStyle", !ctx_r2.tagColor && ctx_r2.inverse && !ctx_r2.customTextColor ? i0.ɵɵpureFunction1(2, _c3$d, ctx_r2.customColor) : !ctx_r2.type && ctx_r2.customTextColor ? i0.ɵɵpureFunction1(4, _c3$d, ctx_r2.customTextColor) : "");
|
|
2214
2265
|
} }
|
|
2215
|
-
function
|
|
2216
|
-
const
|
|
2217
|
-
i0.ɵɵelementStart(0, "span",
|
|
2218
|
-
i0.ɵɵlistener("click", function
|
|
2266
|
+
function PoTagComponent_span_10_Template(rf, ctx) { if (rf & 1) {
|
|
2267
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
2268
|
+
i0.ɵɵelementStart(0, "span", 13, 14);
|
|
2269
|
+
i0.ɵɵlistener("click", function PoTagComponent_span_10_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.onClose()); })("keydown.enter", function PoTagComponent_span_10_Template_span_keydown_enter_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.onClose("enter")); });
|
|
2219
2270
|
i0.ɵɵelementEnd();
|
|
2220
2271
|
} if (rf & 2) {
|
|
2221
|
-
const
|
|
2222
|
-
i0.ɵɵclassProp("po-clickable", !
|
|
2223
|
-
i0.ɵɵproperty("tabindex", !
|
|
2224
|
-
i0.ɵɵattribute("aria-label",
|
|
2272
|
+
const ctx_r4 = i0.ɵɵnextContext();
|
|
2273
|
+
i0.ɵɵclassProp("po-clickable", !ctx_r4.disabled);
|
|
2274
|
+
i0.ɵɵproperty("p-tooltip", ctx_r4.literals.remove)("tabindex", !ctx_r4.disabled ? 0 : -1);
|
|
2275
|
+
i0.ɵɵattribute("aria-label", ctx_r4.setAriaLabel())("role", !ctx_r4.disabled ? "button" : "");
|
|
2225
2276
|
} }
|
|
2226
2277
|
const poTagTypeDefault = 'po-tag-' + PoTagType.Info;
|
|
2227
2278
|
/**
|
|
@@ -2246,18 +2297,13 @@ const poTagTypeDefault = 'po-tag-' + PoTagType.Info;
|
|
|
2246
2297
|
*/
|
|
2247
2298
|
class PoTagComponent extends PoTagBaseComponent {
|
|
2248
2299
|
el;
|
|
2249
|
-
languageService;
|
|
2250
2300
|
tagContainer;
|
|
2301
|
+
tagClose;
|
|
2302
|
+
poTag;
|
|
2251
2303
|
isClickable;
|
|
2252
|
-
literals;
|
|
2253
2304
|
constructor(el, languageService) {
|
|
2254
|
-
super();
|
|
2305
|
+
super(languageService);
|
|
2255
2306
|
this.el = el;
|
|
2256
|
-
this.languageService = languageService;
|
|
2257
|
-
const language = this.languageService.getShortLanguage();
|
|
2258
|
-
this.literals = {
|
|
2259
|
-
...PoTagLiterals[language]
|
|
2260
|
-
};
|
|
2261
2307
|
}
|
|
2262
2308
|
ngOnInit() {
|
|
2263
2309
|
this.isClickable = this.click.observers.length > 0;
|
|
@@ -2288,22 +2334,23 @@ class PoTagComponent extends PoTagBaseComponent {
|
|
|
2288
2334
|
get tagOrientation() {
|
|
2289
2335
|
return this.orientation === this.poTagOrientation.Horizontal;
|
|
2290
2336
|
}
|
|
2291
|
-
onClick() {
|
|
2337
|
+
onClick(event = 'click') {
|
|
2292
2338
|
if (!this.removable && !this.disabled) {
|
|
2293
|
-
const submittedTagItem = { value: this.value, type: this.type };
|
|
2339
|
+
const submittedTagItem = { value: this.value, type: this.type, event: event };
|
|
2294
2340
|
this.click.emit(submittedTagItem);
|
|
2295
2341
|
}
|
|
2296
2342
|
}
|
|
2297
|
-
onClose() {
|
|
2343
|
+
onClose(event = 'click') {
|
|
2298
2344
|
if (!this.disabled) {
|
|
2299
|
-
this.click.emit(
|
|
2345
|
+
this.click.emit(event);
|
|
2300
2346
|
this.onRemove();
|
|
2347
|
+
this.remove.emit(event);
|
|
2301
2348
|
}
|
|
2302
2349
|
}
|
|
2303
2350
|
onKeyPressed(event) {
|
|
2304
2351
|
event.preventDefault();
|
|
2305
2352
|
event.stopPropagation();
|
|
2306
|
-
this.onClick();
|
|
2353
|
+
this.onClick('enter');
|
|
2307
2354
|
}
|
|
2308
2355
|
styleTag() {
|
|
2309
2356
|
if (!this.tagColor && !this.inverse && !this.removable) {
|
|
@@ -2332,34 +2379,39 @@ class PoTagComponent extends PoTagBaseComponent {
|
|
|
2332
2379
|
}
|
|
2333
2380
|
static ɵfac = function PoTagComponent_Factory(t) { return new (t || PoTagComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
2334
2381
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTagComponent, selectors: [["po-tag"]], viewQuery: function PoTagComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2335
|
-
i0.ɵɵviewQuery(_c0$
|
|
2382
|
+
i0.ɵɵviewQuery(_c0$1D, 7);
|
|
2383
|
+
i0.ɵɵviewQuery(_c1$F, 7);
|
|
2384
|
+
i0.ɵɵviewQuery(_c2$h, 7);
|
|
2336
2385
|
} if (rf & 2) {
|
|
2337
2386
|
let _t;
|
|
2338
2387
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tagContainer = _t.first);
|
|
2339
|
-
|
|
2340
|
-
i0.ɵɵ
|
|
2341
|
-
|
|
2342
|
-
i0.ɵɵelementStart(
|
|
2343
|
-
i0.ɵɵ
|
|
2388
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tagClose = _t.first);
|
|
2389
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poTag = _t.first);
|
|
2390
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 24, consts: [[1, "po-tag-container"], ["class", "po-tag-title po-text-nowrap", 4, "ngIf"], [1, "po-tag-sub-container"], [1, "po-tag", 3, "ngClass", "ngStyle", "tabindex", "click", "keydown.enter", "keydown.space", "keyup.space"], ["poTag", ""], ["class", "po-tag-icon", 3, "p-icon", "ngStyle", 4, "ngIf"], ["p-tooltip-position", "top", 1, "po-tag-value", 3, "p-tooltip"], ["tagContainer", ""], [3, "ngStyle"], ["p-tooltip-position", "top", "class", "po-tag-remove po-icon po-icon-close", 3, "p-tooltip", "po-clickable", "tabindex", "click", "keydown.enter", 4, "ngIf"], [1, "po-tag-title", "po-text-nowrap"], [1, "po-tag-label"], [1, "po-tag-icon", 3, "p-icon", "ngStyle"], ["p-tooltip-position", "top", 1, "po-tag-remove", "po-icon", "po-icon-close", 3, "p-tooltip", "tabindex", "click", "keydown.enter"], ["tagClose", ""]], template: function PoTagComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2391
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
2392
|
+
i0.ɵɵtemplate(1, PoTagComponent_div_1_Template, 3, 1, "div", 1);
|
|
2393
|
+
i0.ɵɵelementStart(2, "div", 2)(3, "div", 3, 4);
|
|
2394
|
+
i0.ɵɵlistener("click", function PoTagComponent_Template_div_click_3_listener() { return ctx.onClick(); })("keydown.enter", function PoTagComponent_Template_div_keydown_enter_3_listener($event) { return ctx.onKeyPressed($event); })("keydown.space", function PoTagComponent_Template_div_keydown_space_3_listener($event) { return $event.preventDefault(); })("keyup.space", function PoTagComponent_Template_div_keyup_space_3_listener($event) { return ctx.onKeyPressed($event); });
|
|
2344
2395
|
i0.ɵɵtemplate(5, PoTagComponent_po_icon_5_Template, 1, 6, "po-icon", 5);
|
|
2345
|
-
i0.ɵɵelementStart(6, "div", 6)(
|
|
2346
|
-
i0.ɵɵtext(
|
|
2396
|
+
i0.ɵɵelementStart(6, "div", 6, 7)(8, "span", 8);
|
|
2397
|
+
i0.ɵɵtext(9);
|
|
2347
2398
|
i0.ɵɵelementEnd()();
|
|
2348
|
-
i0.ɵɵtemplate(
|
|
2399
|
+
i0.ɵɵtemplate(10, PoTagComponent_span_10_Template, 2, 6, "span", 9);
|
|
2349
2400
|
i0.ɵɵelementEnd()()();
|
|
2350
2401
|
} if (rf & 2) {
|
|
2351
2402
|
i0.ɵɵclassProp("po-tag-container-horizontal", ctx.tagOrientation);
|
|
2352
|
-
i0.ɵɵ
|
|
2353
|
-
i0.ɵɵadvance(2);
|
|
2403
|
+
i0.ɵɵadvance(1);
|
|
2354
2404
|
i0.ɵɵproperty("ngIf", ctx.label);
|
|
2355
2405
|
i0.ɵɵadvance(2);
|
|
2356
2406
|
i0.ɵɵclassProp("po-clickable", ctx.isClickable && !ctx.disabled && !ctx.removable)("po-tag-inverse", ctx.inverse && !ctx.type && !ctx.customTextColor && !ctx.removable)("po-tag-removable", ctx.removable)("po-tag-disabled", ctx.disabled && ctx.removable);
|
|
2357
2407
|
i0.ɵɵproperty("ngClass", ctx.tagColor)("ngStyle", ctx.styleTag())("tabindex", ctx.isClickable && !ctx.removable ? 0 : -1);
|
|
2358
2408
|
i0.ɵɵattribute("role", ctx.isClickable && !ctx.disabled ? "button" : "");
|
|
2359
|
-
i0.ɵɵadvance(
|
|
2409
|
+
i0.ɵɵadvance(2);
|
|
2360
2410
|
i0.ɵɵproperty("ngIf", ctx.icon && !ctx.removable);
|
|
2411
|
+
i0.ɵɵadvance(1);
|
|
2412
|
+
i0.ɵɵproperty("p-tooltip", ctx.getWidthTag() ? ctx.value : "");
|
|
2361
2413
|
i0.ɵɵadvance(2);
|
|
2362
|
-
i0.ɵɵproperty("ngStyle", !ctx.tagColor && ctx.inverse && !ctx.customTextColor ? i0.ɵɵpureFunction1(20,
|
|
2414
|
+
i0.ɵɵproperty("ngStyle", !ctx.tagColor && ctx.inverse && !ctx.customTextColor ? i0.ɵɵpureFunction1(20, _c3$d, ctx.customColor) : !ctx.type && ctx.customTextColor && !ctx.removable ? i0.ɵɵpureFunction1(22, _c3$d, ctx.customTextColor) : "");
|
|
2363
2415
|
i0.ɵɵadvance(1);
|
|
2364
2416
|
i0.ɵɵtextInterpolate(ctx.value);
|
|
2365
2417
|
i0.ɵɵadvance(1);
|
|
@@ -2368,10 +2420,16 @@ class PoTagComponent extends PoTagBaseComponent {
|
|
|
2368
2420
|
}
|
|
2369
2421
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTagComponent, [{
|
|
2370
2422
|
type: Component,
|
|
2371
|
-
args: [{ selector: 'po-tag', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div
|
|
2423
|
+
args: [{ selector: 'po-tag', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"po-tag-container\" [class.po-tag-container-horizontal]=\"tagOrientation\">\n <div *ngIf=\"label\" class=\"po-tag-title po-text-nowrap\">\n <span class=\"po-tag-label\">{{ tagOrientation ? label + ':' : label }}</span>\n </div>\n\n <div class=\"po-tag-sub-container\">\n <div\n #poTag\n class=\"po-tag\"\n [attr.role]=\"isClickable && !disabled ? 'button' : ''\"\n [class.po-clickable]=\"isClickable && !disabled && !removable\"\n [class.po-tag-inverse]=\"inverse && !type && !customTextColor && !removable\"\n [class.po-tag-removable]=\"removable\"\n [class.po-tag-disabled]=\"disabled && removable\"\n [ngClass]=\"tagColor\"\n [ngStyle]=\"styleTag()\"\n [tabindex]=\"isClickable && !removable ? 0 : -1\"\n (click)=\"onClick()\"\n (keydown.enter)=\"onKeyPressed($event)\"\n (keydown.space)=\"$event.preventDefault()\"\n (keyup.space)=\"onKeyPressed($event)\"\n >\n <po-icon\n *ngIf=\"icon && !removable\"\n class=\"po-tag-icon\"\n [p-icon]=\"!type ? icon : iconFromType\"\n [ngStyle]=\"\n !tagColor && inverse && !customTextColor\n ? { 'color': customColor }\n : !type && customTextColor\n ? { 'color': customTextColor }\n : ''\n \"\n >\n </po-icon>\n\n <div #tagContainer class=\"po-tag-value\" [p-tooltip]=\"getWidthTag() ? value : ''\" p-tooltip-position=\"top\">\n <span\n [ngStyle]=\"\n !tagColor && inverse && !customTextColor\n ? { 'color': customColor }\n : !type && customTextColor && !removable\n ? { 'color': customTextColor }\n : ''\n \"\n >{{ value }}</span\n >\n </div>\n\n <span\n #tagClose\n *ngIf=\"removable\"\n p-tooltip-position=\"top\"\n [p-tooltip]=\"literals.remove\"\n [attr.aria-label]=\"setAriaLabel()\"\n class=\"po-tag-remove po-icon po-icon-close\"\n [class.po-clickable]=\"!disabled\"\n [tabindex]=\"!disabled ? 0 : -1\"\n [attr.role]=\"!disabled ? 'button' : ''\"\n (click)=\"onClose()\"\n (keydown.enter)=\"onClose('enter')\"\n >\n </span>\n </div>\n </div>\n</div>\n" }]
|
|
2372
2424
|
}], function () { return [{ type: i0.ElementRef }, { type: PoLanguageService }]; }, { tagContainer: [{
|
|
2373
2425
|
type: ViewChild,
|
|
2374
2426
|
args: ['tagContainer', { static: true }]
|
|
2427
|
+
}], tagClose: [{
|
|
2428
|
+
type: ViewChild,
|
|
2429
|
+
args: ['tagClose', { static: true }]
|
|
2430
|
+
}], poTag: [{
|
|
2431
|
+
type: ViewChild,
|
|
2432
|
+
args: ['poTag', { static: true }]
|
|
2375
2433
|
}] }); })();
|
|
2376
2434
|
|
|
2377
2435
|
/**
|
|
@@ -2423,11 +2481,11 @@ function PoAccordionItemBodyComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
2423
2481
|
} if (rf & 2) {
|
|
2424
2482
|
i0.ɵɵproperty("@toggleBody", undefined);
|
|
2425
2483
|
} }
|
|
2426
|
-
const _c0$
|
|
2484
|
+
const _c0$1C = ["*"];
|
|
2427
2485
|
class PoAccordionItemBodyComponent {
|
|
2428
2486
|
expanded = false;
|
|
2429
2487
|
static ɵfac = function PoAccordionItemBodyComponent_Factory(t) { return new (t || PoAccordionItemBodyComponent)(); };
|
|
2430
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoAccordionItemBodyComponent, selectors: [["po-accordion-item-body"]], inputs: { expanded: ["p-expanded", "expanded"] }, ngContentSelectors: _c0$
|
|
2488
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoAccordionItemBodyComponent, selectors: [["po-accordion-item-body"]], inputs: { expanded: ["p-expanded", "expanded"] }, ngContentSelectors: _c0$1C, decls: 1, vars: 1, consts: [["class", "po-accordion-item-body", 4, "ngIf"], [1, "po-accordion-item-body"], [1, "po-accordion-item-body-content"]], template: function PoAccordionItemBodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2431
2489
|
i0.ɵɵprojectionDef();
|
|
2432
2490
|
i0.ɵɵtemplate(0, PoAccordionItemBodyComponent_div_0_Template, 3, 1, "div", 0);
|
|
2433
2491
|
} if (rf & 2) {
|
|
@@ -2562,7 +2620,7 @@ class PoAccordionService {
|
|
|
2562
2620
|
function PoAccordionItemComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
2563
2621
|
i0.ɵɵprojection(0);
|
|
2564
2622
|
} }
|
|
2565
|
-
const _c0$
|
|
2623
|
+
const _c0$1B = ["*"];
|
|
2566
2624
|
/**
|
|
2567
2625
|
* @description
|
|
2568
2626
|
*
|
|
@@ -2691,7 +2749,7 @@ class PoAccordionItemComponent {
|
|
|
2691
2749
|
} if (rf & 2) {
|
|
2692
2750
|
let _t;
|
|
2693
2751
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templateRef = _t.first);
|
|
2694
|
-
} }, inputs: { label: ["p-label", "label"], labelTag: ["p-label-tag", "labelTag"], disabledItem: ["p-disabled", "disabledItem", convertToBoolean], typeTag: ["p-type-tag", "typeTag"] }, outputs: { expandEvent: "p-expand", collapseEvent: "p-collapse" }, features: [i0.ɵɵInputTransformsFeature], ngContentSelectors: _c0$
|
|
2752
|
+
} }, inputs: { label: ["p-label", "label"], labelTag: ["p-label-tag", "labelTag"], disabledItem: ["p-disabled", "disabledItem", convertToBoolean], typeTag: ["p-type-tag", "typeTag"] }, outputs: { expandEvent: "p-expand", collapseEvent: "p-collapse" }, features: [i0.ɵɵInputTransformsFeature], ngContentSelectors: _c0$1B, decls: 1, vars: 0, template: function PoAccordionItemComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2695
2753
|
i0.ɵɵprojectionDef();
|
|
2696
2754
|
i0.ɵɵtemplate(0, PoAccordionItemComponent_ng_template_0_Template, 1, 0, "ng-template");
|
|
2697
2755
|
} }, encapsulation: 2 });
|
|
@@ -4555,6 +4613,10 @@ var PoKeyCodeEnum;
|
|
|
4555
4613
|
PoKeyCodeEnum[PoKeyCodeEnum["space"] = 32] = "space";
|
|
4556
4614
|
/** Tab */
|
|
4557
4615
|
PoKeyCodeEnum[PoKeyCodeEnum["tab"] = 9] = "tab";
|
|
4616
|
+
/** Arrow Left */
|
|
4617
|
+
PoKeyCodeEnum[PoKeyCodeEnum["left"] = 37] = "left";
|
|
4618
|
+
/** Arrow Right */
|
|
4619
|
+
PoKeyCodeEnum[PoKeyCodeEnum["right"] = 39] = "right";
|
|
4558
4620
|
})(PoKeyCodeEnum || (PoKeyCodeEnum = {}));
|
|
4559
4621
|
|
|
4560
4622
|
/**
|
|
@@ -4818,7 +4880,7 @@ class PoLabelComponent {
|
|
|
4818
4880
|
args: ['p-requirement']
|
|
4819
4881
|
}] }); })();
|
|
4820
4882
|
|
|
4821
|
-
const _c0$
|
|
4883
|
+
const _c0$1A = ["checkboxLabel"];
|
|
4822
4884
|
function PoCheckboxComponent_po_label_4_Template(rf, ctx) { if (rf & 1) {
|
|
4823
4885
|
i0.ɵɵelement(0, "po-label", 5);
|
|
4824
4886
|
} if (rf & 2) {
|
|
@@ -4901,7 +4963,7 @@ class PoCheckboxComponent extends PoCheckboxBaseComponent {
|
|
|
4901
4963
|
}
|
|
4902
4964
|
static ɵfac = function PoCheckboxComponent_Factory(t) { return new (t || PoCheckboxComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
4903
4965
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCheckboxComponent, selectors: [["po-checkbox"]], viewQuery: function PoCheckboxComponent_Query(rf, ctx) { if (rf & 1) {
|
|
4904
|
-
i0.ɵɵviewQuery(_c0$
|
|
4966
|
+
i0.ɵɵviewQuery(_c0$1A, 7);
|
|
4905
4967
|
} if (rf & 2) {
|
|
4906
4968
|
let _t;
|
|
4907
4969
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.checkboxLabel = _t.first);
|
|
@@ -4944,7 +5006,7 @@ class PoCheckboxComponent extends PoCheckboxBaseComponent {
|
|
|
4944
5006
|
args: ['checkboxLabel', { static: true }]
|
|
4945
5007
|
}] }); })();
|
|
4946
5008
|
|
|
4947
|
-
const _c0$
|
|
5009
|
+
const _c0$1z = ["itemList"];
|
|
4948
5010
|
function PoItemListComponent_div_1_po_icon_2_Template(rf, ctx) { if (rf & 1) {
|
|
4949
5011
|
i0.ɵɵelement(0, "po-icon", 8);
|
|
4950
5012
|
} if (rf & 2) {
|
|
@@ -5098,7 +5160,7 @@ class PoItemListComponent extends PoItemListBaseComponent {
|
|
|
5098
5160
|
}
|
|
5099
5161
|
static ɵfac = function PoItemListComponent_Factory(t) { return new (t || PoItemListComponent)(i0.ɵɵdirectiveInject(i1$1.DomSanitizer)); };
|
|
5100
5162
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoItemListComponent, selectors: [["po-item-list"]], viewQuery: function PoItemListComponent_Query(rf, ctx) { if (rf & 1) {
|
|
5101
|
-
i0.ɵɵviewQuery(_c0$
|
|
5163
|
+
i0.ɵɵviewQuery(_c0$1z, 7);
|
|
5102
5164
|
} if (rf & 2) {
|
|
5103
5165
|
let _t;
|
|
5104
5166
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemList = _t.first);
|
|
@@ -5119,13 +5181,13 @@ class PoItemListComponent extends PoItemListBaseComponent {
|
|
|
5119
5181
|
}
|
|
5120
5182
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoItemListComponent, [{
|
|
5121
5183
|
type: Component,
|
|
5122
|
-
args: [{ selector: 'po-item-list', template: "<ng-container [ngSwitch]=\"type\" (keydown)=\"onCheckboxItemEmit($event)\">\n <div\n *ngSwitchDefault\n #itemList\n [class.po-item-list__separator]=\"separator\"\n [class.po-item-list__disabled]=\"disabled || !visible\"\n [class.po-item-list__selected]=\"selected && !disabled\"\n [attr.aria-disabled]=\"disabled || !visible\"\n [attr.aria-label]=\"label\"\n [class.po-item-list__danger]=\"danger\"\n class=\"po-item-list po-item-list__action\"\n >\n <po-icon *ngIf=\"icon\" class=\"po-popup-icon-item po-icon\" [p-icon]=\"icon\"></po-icon>\n <span class=\"po-item-list-label\">{{ label }}</span>\n </div>\n <div\n *ngSwitchCase=\"'option'\"\n #itemList\n class=\"po-item-list po-item-list__option\"\n [class.po-item-list__separator]=\"separator\"\n [class.po-item-list__selected]=\"selected && !disabled\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-label]=\"label\"\n (click)=\"onComboItem(item, $event)\"\n >\n <span *ngIf=\"!template\" class=\"po-item-list-label\" [innerHTML]=\"getLabelFormatted(label)\"></span>\n\n <ng-template [ngTemplateOutlet]=\"template?.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: templateContext }\">\n </ng-template>\n </div>\n\n <div\n *ngSwitchCase=\"'check'\"\n class=\"po-item-list po-item-list__check\"\n [class.po-item-list__separator]=\"separator\"\n [class.po-item-list__selected]=\"selected && !disabled\"\n [class.po-item-list__disabled]=\"disabled\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-label]=\"label\"\n (click)=\"onCheckboxItem()\"\n (keydown)=\"onCheckboxItemEmit($event)\"\n (keyup)=\"onCheckboxItemEmit($event)\"\n >\n <po-checkbox\n [p-disabled-tabindex]=\"true\"\n [p-checkboxValue]=\"checkboxValue === null ? 'mixed' : checkboxValue\"\n [p-disabled]=\"disabled\"\n (p-change)=\"onSelectItem({label})\"\n ></po-checkbox>\n\n <span class=\"po-item-list__label\" *ngIf=\"!template\">{{ label }}</span>\n\n <ng-template [ngTemplateOutlet]=\"template?.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: templateContext }\">\n </ng-template>\n </div>\n</ng-container>\n" }]
|
|
5184
|
+
args: [{ selector: 'po-item-list', template: "<ng-container [ngSwitch]=\"type\" (keydown)=\"onCheckboxItemEmit($event)\">\n <div\n *ngSwitchDefault\n #itemList\n [class.po-item-list__separator]=\"separator\"\n [class.po-item-list__disabled]=\"disabled || !visible\"\n [class.po-item-list__selected]=\"selected && !disabled\"\n [attr.aria-disabled]=\"disabled || !visible\"\n [attr.aria-label]=\"label\"\n [class.po-item-list__danger]=\"danger\"\n class=\"po-item-list po-item-list__action\"\n >\n <po-icon *ngIf=\"icon\" class=\"po-popup-icon-item po-icon\" [p-icon]=\"icon\"></po-icon>\n <span class=\"po-item-list-label\">{{ label }}</span>\n </div>\n\n <div\n *ngSwitchCase=\"'option'\"\n #itemList\n class=\"po-item-list po-item-list__option\"\n [class.po-item-list__separator]=\"separator\"\n [class.po-item-list__selected]=\"selected && !disabled\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-label]=\"label\"\n (click)=\"onComboItem(item, $event)\"\n >\n <span *ngIf=\"!template\" class=\"po-item-list-label\" [innerHTML]=\"getLabelFormatted(label)\"></span>\n\n <ng-template [ngTemplateOutlet]=\"template?.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: templateContext }\">\n </ng-template>\n </div>\n\n <div\n *ngSwitchCase=\"'check'\"\n class=\"po-item-list po-item-list__check\"\n [class.po-item-list__separator]=\"separator\"\n [class.po-item-list__selected]=\"selected && !disabled\"\n [class.po-item-list__disabled]=\"disabled\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-label]=\"label\"\n (click)=\"onCheckboxItem()\"\n (keydown)=\"onCheckboxItemEmit($event)\"\n (keyup)=\"onCheckboxItemEmit($event)\"\n >\n <po-checkbox\n [p-disabled-tabindex]=\"true\"\n [p-checkboxValue]=\"checkboxValue === null ? 'mixed' : checkboxValue\"\n [p-disabled]=\"disabled\"\n (p-change)=\"onSelectItem({label})\"\n ></po-checkbox>\n\n <span class=\"po-item-list__label\" *ngIf=\"!template\">{{ label }}</span>\n\n <ng-template [ngTemplateOutlet]=\"template?.templateRef\" [ngTemplateOutletContext]=\"{ $implicit: templateContext }\">\n </ng-template>\n </div>\n</ng-container>\n" }]
|
|
5123
5185
|
}], function () { return [{ type: i1$1.DomSanitizer }]; }, { itemList: [{
|
|
5124
5186
|
type: ViewChild,
|
|
5125
5187
|
args: ['itemList', { static: true }]
|
|
5126
5188
|
}] }); })();
|
|
5127
5189
|
|
|
5128
|
-
const _c0$
|
|
5190
|
+
const _c0$1y = ["inputElement"];
|
|
5129
5191
|
/**
|
|
5130
5192
|
* @docsPrivate
|
|
5131
5193
|
*
|
|
@@ -5181,7 +5243,7 @@ class PoSearchListComponent {
|
|
|
5181
5243
|
}
|
|
5182
5244
|
static ɵfac = function PoSearchListComponent_Factory(t) { return new (t || PoSearchListComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
5183
5245
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoSearchListComponent, selectors: [["po-search-list"]], viewQuery: function PoSearchListComponent_Query(rf, ctx) { if (rf & 1) {
|
|
5184
|
-
i0.ɵɵviewQuery(_c0$
|
|
5246
|
+
i0.ɵɵviewQuery(_c0$1y, 7, ElementRef);
|
|
5185
5247
|
} if (rf & 2) {
|
|
5186
5248
|
let _t;
|
|
5187
5249
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
|
|
@@ -5217,7 +5279,7 @@ class PoSearchListComponent {
|
|
|
5217
5279
|
args: ['p-placeholder']
|
|
5218
5280
|
}] }); })();
|
|
5219
5281
|
|
|
5220
|
-
const _c0$
|
|
5282
|
+
const _c0$1x = ["listbox"];
|
|
5221
5283
|
const _c1$D = ["listboxItemList"];
|
|
5222
5284
|
const _c2$g = ["searchElement"];
|
|
5223
5285
|
function PoListBoxComponent_po_search_list_3_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -5490,7 +5552,7 @@ class PoListBoxComponent extends PoListBoxBaseComponent {
|
|
|
5490
5552
|
}
|
|
5491
5553
|
static ɵfac = function PoListBoxComponent_Factory(t) { return new (t || PoListBoxComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
5492
5554
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoListBoxComponent, selectors: [["po-listbox"]], viewQuery: function PoListBoxComponent_Query(rf, ctx) { if (rf & 1) {
|
|
5493
|
-
i0.ɵɵviewQuery(_c0$
|
|
5555
|
+
i0.ɵɵviewQuery(_c0$1x, 7);
|
|
5494
5556
|
i0.ɵɵviewQuery(_c1$D, 5);
|
|
5495
5557
|
i0.ɵɵviewQuery(_c2$g, 5);
|
|
5496
5558
|
} if (rf & 2) {
|
|
@@ -5536,7 +5598,7 @@ class PoListBoxComponent extends PoListBoxBaseComponent {
|
|
|
5536
5598
|
args: ['searchElement']
|
|
5537
5599
|
}] }); })();
|
|
5538
5600
|
|
|
5539
|
-
const _c0$
|
|
5601
|
+
const _c0$1w = ["popupRef"];
|
|
5540
5602
|
const _c1$C = ["listbox"];
|
|
5541
5603
|
const _c2$f = ["poListBoxRef"];
|
|
5542
5604
|
function PoPopupComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -5727,7 +5789,7 @@ class PoPopupComponent extends PoPopupBaseComponent {
|
|
|
5727
5789
|
}
|
|
5728
5790
|
static ɵfac = function PoPopupComponent_Factory(t) { return new (t || PoPopupComponent)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(PoControlPositionService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
5729
5791
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPopupComponent, selectors: [["po-popup"]], viewQuery: function PoPopupComponent_Query(rf, ctx) { if (rf & 1) {
|
|
5730
|
-
i0.ɵɵviewQuery(_c0$
|
|
5792
|
+
i0.ɵɵviewQuery(_c0$1w, 5, ElementRef);
|
|
5731
5793
|
i0.ɵɵviewQuery(_c1$C, 5, ElementRef);
|
|
5732
5794
|
i0.ɵɵviewQuery(_c2$f, 5);
|
|
5733
5795
|
} if (rf & 2) {
|
|
@@ -5928,7 +5990,7 @@ class PoBreadcrumbFavoriteComponent {
|
|
|
5928
5990
|
args: ['p-hidden-literal']
|
|
5929
5991
|
}] }); })();
|
|
5930
5992
|
|
|
5931
|
-
const _c0$
|
|
5993
|
+
const _c0$1v = ["breadcrumb"];
|
|
5932
5994
|
const _c1$B = ["dropdownIcon"];
|
|
5933
5995
|
const _c2$e = ["target"];
|
|
5934
5996
|
const _c3$a = ["popup"];
|
|
@@ -6198,7 +6260,7 @@ class PoBreadcrumbComponent extends PoBreadcrumbBaseComponent {
|
|
|
6198
6260
|
}
|
|
6199
6261
|
static ɵfac = function PoBreadcrumbComponent_Factory(t) { return new (t || PoBreadcrumbComponent)(i0.ɵɵdirectiveInject(i0.IterableDiffers), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
6200
6262
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoBreadcrumbComponent, selectors: [["po-breadcrumb"]], viewQuery: function PoBreadcrumbComponent_Query(rf, ctx) { if (rf & 1) {
|
|
6201
|
-
i0.ɵɵviewQuery(_c0$
|
|
6263
|
+
i0.ɵɵviewQuery(_c0$1v, 7, ElementRef);
|
|
6202
6264
|
i0.ɵɵviewQuery(_c1$B, 5, ElementRef);
|
|
6203
6265
|
i0.ɵɵviewQuery(_c2$e, 5, ElementRef);
|
|
6204
6266
|
i0.ɵɵviewQuery(_c3$a, 5);
|
|
@@ -6626,7 +6688,7 @@ class PoButtonBaseComponent {
|
|
|
6626
6688
|
args: ['p-aria-label']
|
|
6627
6689
|
}] }); })();
|
|
6628
6690
|
|
|
6629
|
-
const _c0$
|
|
6691
|
+
const _c0$1u = ["button"];
|
|
6630
6692
|
function PoButtonComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
6631
6693
|
i0.ɵɵelementStart(0, "div", 5);
|
|
6632
6694
|
i0.ɵɵelement(1, "po-loading-icon", 6);
|
|
@@ -6700,7 +6762,7 @@ class PoButtonComponent extends PoButtonBaseComponent {
|
|
|
6700
6762
|
}
|
|
6701
6763
|
static ɵfac = /*@__PURE__*/ function () { let ɵPoButtonComponent_BaseFactory; return function PoButtonComponent_Factory(t) { return (ɵPoButtonComponent_BaseFactory || (ɵPoButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(PoButtonComponent)))(t || PoButtonComponent); }; }();
|
|
6702
6764
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonComponent, selectors: [["po-button"]], viewQuery: function PoButtonComponent_Query(rf, ctx) { if (rf & 1) {
|
|
6703
|
-
i0.ɵɵviewQuery(_c0$
|
|
6765
|
+
i0.ɵɵviewQuery(_c0$1u, 7);
|
|
6704
6766
|
} if (rf & 2) {
|
|
6705
6767
|
let _t;
|
|
6706
6768
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.buttonElement = _t.first);
|
|
@@ -7626,7 +7688,7 @@ function PoCalendarHeaderComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
7626
7688
|
i0.ɵɵlistener("click", function PoCalendarHeaderComponent_span_4_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.next.emit()); });
|
|
7627
7689
|
i0.ɵɵelementEnd();
|
|
7628
7690
|
} }
|
|
7629
|
-
const _c0$
|
|
7691
|
+
const _c0$1t = ["*"];
|
|
7630
7692
|
class PoCalendarHeaderComponent {
|
|
7631
7693
|
hidePrevious = false;
|
|
7632
7694
|
hideNext = false;
|
|
@@ -7634,7 +7696,7 @@ class PoCalendarHeaderComponent {
|
|
|
7634
7696
|
next = new EventEmitter();
|
|
7635
7697
|
constructor() { }
|
|
7636
7698
|
static ɵfac = function PoCalendarHeaderComponent_Factory(t) { return new (t || PoCalendarHeaderComponent)(); };
|
|
7637
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCalendarHeaderComponent, selectors: [["po-calendar-header"]], inputs: { hidePrevious: ["p-hide-previous", "hidePrevious"], hideNext: ["p-hide-next", "hideNext"] }, outputs: { previous: "p-previous", next: "p-next" }, ngContentSelectors: _c0$
|
|
7699
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCalendarHeaderComponent, selectors: [["po-calendar-header"]], inputs: { hidePrevious: ["p-hide-previous", "hidePrevious"], hideNext: ["p-hide-next", "hideNext"] }, outputs: { previous: "p-previous", next: "p-next" }, ngContentSelectors: _c0$1t, decls: 5, vars: 2, consts: [[1, "po-calendar-header"], ["class", "po-calendar-header-left po-icon po-icon-arrow-left", 3, "click", 4, "ngIf"], ["attr-calendar", "", 1, "po-calendar-header-title"], ["class", "po-calendar-header-right po-icon po-icon-arrow-right", 3, "click", 4, "ngIf"], [1, "po-calendar-header-left", "po-icon", "po-icon-arrow-left", 3, "click"], [1, "po-calendar-header-right", "po-icon", "po-icon-arrow-right", 3, "click"]], template: function PoCalendarHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7638
7700
|
i0.ɵɵprojectionDef();
|
|
7639
7701
|
i0.ɵɵelementStart(0, "div", 0);
|
|
7640
7702
|
i0.ɵɵtemplate(1, PoCalendarHeaderComponent_span_1_Template, 1, 0, "span", 1);
|
|
@@ -8139,7 +8201,7 @@ function PoCalendarComponent_ng_template_1_ng_container_1_Template(rf, ctx) { if
|
|
|
8139
8201
|
function PoCalendarComponent_ng_template_1_ng_container_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
8140
8202
|
i0.ɵɵelementContainer(0);
|
|
8141
8203
|
} }
|
|
8142
|
-
const _c0$
|
|
8204
|
+
const _c0$1s = function () { return { partType: "end" }; };
|
|
8143
8205
|
function PoCalendarComponent_ng_template_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
8144
8206
|
i0.ɵɵelementContainerStart(0);
|
|
8145
8207
|
i0.ɵɵtemplate(1, PoCalendarComponent_ng_template_1_ng_container_2_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
@@ -8148,7 +8210,7 @@ function PoCalendarComponent_ng_template_1_ng_container_2_Template(rf, ctx) { if
|
|
|
8148
8210
|
i0.ɵɵnextContext(2);
|
|
8149
8211
|
const _r5 = i0.ɵɵreference(6);
|
|
8150
8212
|
i0.ɵɵadvance(1);
|
|
8151
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r5)("ngTemplateOutletContext", i0.ɵɵpureFunction0(2, _c0$
|
|
8213
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r5)("ngTemplateOutletContext", i0.ɵɵpureFunction0(2, _c0$1s));
|
|
8152
8214
|
} }
|
|
8153
8215
|
const _c1$A = function () { return { partType: "start" }; };
|
|
8154
8216
|
function PoCalendarComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -8602,7 +8664,7 @@ class PoChartMathsService {
|
|
|
8602
8664
|
}]
|
|
8603
8665
|
}], null, null); })();
|
|
8604
8666
|
|
|
8605
|
-
const _c0$
|
|
8667
|
+
const _c0$1r = ["chartLine"];
|
|
8606
8668
|
class PoChartLineBaseComponent {
|
|
8607
8669
|
mathsService;
|
|
8608
8670
|
renderer;
|
|
@@ -8741,7 +8803,7 @@ class PoChartLineBaseComponent {
|
|
|
8741
8803
|
}
|
|
8742
8804
|
static ɵfac = function PoChartLineBaseComponent_Factory(t) { return new (t || PoChartLineBaseComponent)(i0.ɵɵdirectiveInject(PoChartMathsService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
8743
8805
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoChartLineBaseComponent, viewQuery: function PoChartLineBaseComponent_Query(rf, ctx) { if (rf & 1) {
|
|
8744
|
-
i0.ɵɵviewQuery(_c0$
|
|
8806
|
+
i0.ɵɵviewQuery(_c0$1r, 5);
|
|
8745
8807
|
} if (rf & 2) {
|
|
8746
8808
|
let _t;
|
|
8747
8809
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chartLine = _t.first);
|
|
@@ -8781,7 +8843,7 @@ class PoChartLineBaseComponent {
|
|
|
8781
8843
|
args: ['p-series']
|
|
8782
8844
|
}] }); })();
|
|
8783
8845
|
|
|
8784
|
-
const _c0$
|
|
8846
|
+
const _c0$1q = ["chartPath"];
|
|
8785
8847
|
const _c1$z = ["po-chart-path", ""];
|
|
8786
8848
|
const pathDashoffsetDefaultWidth = 0;
|
|
8787
8849
|
class PoChartPathComponent {
|
|
@@ -8827,7 +8889,7 @@ class PoChartPathComponent {
|
|
|
8827
8889
|
}
|
|
8828
8890
|
static ɵfac = function PoChartPathComponent_Factory(t) { return new (t || PoChartPathComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
8829
8891
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartPathComponent, selectors: [["", "po-chart-path", ""]], viewQuery: function PoChartPathComponent_Query(rf, ctx) { if (rf & 1) {
|
|
8830
|
-
i0.ɵɵviewQuery(_c0$
|
|
8892
|
+
i0.ɵɵviewQuery(_c0$1q, 7);
|
|
8831
8893
|
} if (rf & 2) {
|
|
8832
8894
|
let _t;
|
|
8833
8895
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chartPath = _t.first);
|
|
@@ -8863,7 +8925,7 @@ class PoChartPathComponent {
|
|
|
8863
8925
|
args: ['p-animate']
|
|
8864
8926
|
}] }); })();
|
|
8865
8927
|
|
|
8866
|
-
const _c0$
|
|
8928
|
+
const _c0$1p = ["po-chart-series-point", ""];
|
|
8867
8929
|
function PoChartSeriesPointComponent__svg_circle_0_Template(rf, ctx) { if (rf & 1) {
|
|
8868
8930
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
8869
8931
|
i0.ɵɵnamespaceSVG();
|
|
@@ -8949,7 +9011,7 @@ class PoChartSeriesPointComponent {
|
|
|
8949
9011
|
}
|
|
8950
9012
|
}
|
|
8951
9013
|
static ɵfac = function PoChartSeriesPointComponent_Factory(t) { return new (t || PoChartSeriesPointComponent)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
8952
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartSeriesPointComponent, selectors: [["", "po-chart-series-point", ""]], inputs: { animate: ["p-animate", "animate"], isActive: ["p-is-active", "isActive", convertToBoolean], chartLine: ["p-chart-line", "chartLine", convertToBoolean], relativeTo: ["p-relative-to", "relativeTo"], color: ["p-color", "color"], coordinates: ["p-coordinates", "coordinates"] }, outputs: { pointClick: "p-point-click", pointHover: "p-point-hover" }, features: [i0.ɵɵInputTransformsFeature], attrs: _c0$
|
|
9014
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartSeriesPointComponent, selectors: [["", "po-chart-series-point", ""]], inputs: { animate: ["p-animate", "animate"], isActive: ["p-is-active", "isActive", convertToBoolean], chartLine: ["p-chart-line", "chartLine", convertToBoolean], relativeTo: ["p-relative-to", "relativeTo"], color: ["p-color", "color"], coordinates: ["p-coordinates", "coordinates"] }, outputs: { pointClick: "p-point-click", pointHover: "p-point-hover" }, features: [i0.ɵɵInputTransformsFeature], attrs: _c0$1p, decls: 2, vars: 4, consts: [["p-tooltip-position", "top", "class", "po-chart-line-point", 3, "p-tooltip", "p-append-in-body", "p-display-tooltip", "class", "po-chart-active-point", "click", "mouseenter", "mouseleave", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["p-tooltip-position", "top", 1, "po-chart-line-point", 3, "p-tooltip", "p-append-in-body", "p-display-tooltip", "click", "mouseenter", "mouseleave"]], template: function PoChartSeriesPointComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8953
9015
|
i0.ɵɵtemplate(0, PoChartSeriesPointComponent__svg_circle_0_Template, 1, 11, "circle", 0);
|
|
8954
9016
|
i0.ɵɵpipe(1, "async");
|
|
8955
9017
|
} if (rf & 2) {
|
|
@@ -8985,7 +9047,7 @@ class PoChartSeriesPointComponent {
|
|
|
8985
9047
|
args: ['p-coordinates']
|
|
8986
9048
|
}] }); })();
|
|
8987
9049
|
|
|
8988
|
-
const _c0$
|
|
9050
|
+
const _c0$1o = ["po-chart-area", ""];
|
|
8989
9051
|
function PoChartAreaComponent__svg_g_2_Template(rf, ctx) { if (rf & 1) {
|
|
8990
9052
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
8991
9053
|
i0.ɵɵnamespaceSVG();
|
|
@@ -9072,7 +9134,7 @@ class PoChartAreaComponent extends PoChartLineBaseComponent {
|
|
|
9072
9134
|
return undefined;
|
|
9073
9135
|
}
|
|
9074
9136
|
static ɵfac = function PoChartAreaComponent_Factory(t) { return new (t || PoChartAreaComponent)(i0.ɵɵdirectiveInject(PoChartMathsService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
9075
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartAreaComponent, selectors: [["", "po-chart-area", ""]], features: [i0.ɵɵInheritDefinitionFeature], attrs: _c0$
|
|
9137
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartAreaComponent, selectors: [["", "po-chart-area", ""]], features: [i0.ɵɵInheritDefinitionFeature], attrs: _c0$1o, decls: 3, vars: 2, consts: [["chartLine", ""], [3, "class", "mouseenter", "mouseleave", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "mouseenter", "mouseleave"], ["po-chart-path", "", 3, "p-chart-line", "p-animate", "p-color", "p-coordinates", "p-is-active"], ["po-chart-series-point", "", 3, "p-animate", "p-chart-line", "p-color", "p-coordinates", "p-is-active", "p-relative-to", "p-point-click", "p-point-hover"]], template: function PoChartAreaComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9076
9138
|
i0.ɵɵnamespaceSVG();
|
|
9077
9139
|
i0.ɵɵelementStart(0, "g", null, 0);
|
|
9078
9140
|
i0.ɵɵtemplate(2, PoChartAreaComponent__svg_g_2_Template, 3, 15, "g", 1);
|
|
@@ -9087,7 +9149,7 @@ class PoChartAreaComponent extends PoChartLineBaseComponent {
|
|
|
9087
9149
|
args: [{ selector: '[po-chart-area]', template: "<svg:g #chartLine>\n\n <svg:g *ngFor=\"let item of seriesPathsCoordinates; let i = index; trackBy: trackBy\"\n [class]=\"'po-chart-line-path-group-' + i\"\n (mouseenter)=\"onEnter(i)\"\n (mouseleave)=\"onLeave(i)\"\n >\n <!-- SERIES PATHS -->\n <svg:g po-chart-path\n [p-chart-line]=\"chartType === 'line'\"\n [attr.key]=\"'po-chart-line-path-' + i\"\n [p-animate]=\"animate\"\n [p-color]=\"item.color\" \n [p-coordinates]=\"item?.coordinates\"\n [p-is-active]=\"item.isActive\"\n >\n </svg:g>\n\n <!-- SERIES POINTS -->\n <svg:g po-chart-series-point\n [p-animate]=\"animate\"\n [p-chart-line]=\"chartType === 'line'\"\n [p-color]=\"item.color\"\n [p-coordinates]=\"seriesPointsCoordinates[i]\"\n [p-is-active]=\"activeTooltip\"\n [p-relative-to]=\"'po-chart-line-path-group-' + i\" \n [attr.key]=\"'po-chart-line-path-points-group-' + i\"\n (p-point-click)=\"onSeriePointClick($event)\"\n (p-point-hover)=\"onSeriePointHover($event)\"\n ></svg:g>\n </svg:g>\n\n</svg:g>" }]
|
|
9088
9150
|
}], function () { return [{ type: PoChartMathsService }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, null); })();
|
|
9089
9151
|
|
|
9090
|
-
const _c0$
|
|
9152
|
+
const _c0$1n = ["po-chart-axis-path", ""];
|
|
9091
9153
|
function PoChartAxisPathComponent__svg_path_1_Template(rf, ctx) { if (rf & 1) {
|
|
9092
9154
|
i0.ɵɵnamespaceSVG();
|
|
9093
9155
|
i0.ɵɵelement(0, "path", 1);
|
|
@@ -9110,7 +9172,7 @@ class PoChartAxisPathComponent {
|
|
|
9110
9172
|
return index;
|
|
9111
9173
|
}
|
|
9112
9174
|
static ɵfac = function PoChartAxisPathComponent_Factory(t) { return new (t || PoChartAxisPathComponent)(); };
|
|
9113
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartAxisPathComponent, selectors: [["", "po-chart-axis-path", ""]], inputs: { axisXCoordinates: ["p-axis-x-coordinates", "axisXCoordinates"], axisYCoordinates: ["p-axis-y-coordinates", "axisYCoordinates"] }, attrs: _c0$
|
|
9175
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartAxisPathComponent, selectors: [["", "po-chart-axis-path", ""]], inputs: { axisXCoordinates: ["p-axis-x-coordinates", "axisXCoordinates"], axisYCoordinates: ["p-axis-y-coordinates", "axisYCoordinates"] }, attrs: _c0$1n, decls: 4, vars: 4, consts: [["class", "po-chart-axis-path", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "po-chart-axis-path"]], template: function PoChartAxisPathComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9114
9176
|
i0.ɵɵnamespaceSVG();
|
|
9115
9177
|
i0.ɵɵelementStart(0, "g");
|
|
9116
9178
|
i0.ɵɵtemplate(1, PoChartAxisPathComponent__svg_path_1_Template, 1, 1, "path", 0);
|
|
@@ -9136,7 +9198,7 @@ class PoChartAxisPathComponent {
|
|
|
9136
9198
|
args: ['p-axis-y-coordinates']
|
|
9137
9199
|
}] }); })();
|
|
9138
9200
|
|
|
9139
|
-
const _c0$
|
|
9201
|
+
const _c0$1m = ["po-chart-axis-label", ""];
|
|
9140
9202
|
function PoChartAxisLabelComponent__svg_text_1_Template(rf, ctx) { if (rf & 1) {
|
|
9141
9203
|
i0.ɵɵnamespaceSVG();
|
|
9142
9204
|
i0.ɵɵelementStart(0, "text", 2);
|
|
@@ -9171,7 +9233,7 @@ class PoChartAxisLabelComponent {
|
|
|
9171
9233
|
return index;
|
|
9172
9234
|
}
|
|
9173
9235
|
static ɵfac = function PoChartAxisLabelComponent_Factory(t) { return new (t || PoChartAxisLabelComponent)(); };
|
|
9174
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartAxisLabelComponent, selectors: [["", "po-chart-axis-label", ""]], inputs: { alignByTheCorners: ["p-align-by-the-corners", "alignByTheCorners"], axisXLabelCoordinates: ["p-axis-x-label-coordinates", "axisXLabelCoordinates"], axisYLabelCoordinates: ["p-axis-y-label-coordinates", "axisYLabelCoordinates"], type: ["p-type", "type"] }, attrs: _c0$
|
|
9236
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartAxisLabelComponent, selectors: [["", "po-chart-axis-label", ""]], inputs: { alignByTheCorners: ["p-align-by-the-corners", "alignByTheCorners"], axisXLabelCoordinates: ["p-axis-x-label-coordinates", "axisXLabelCoordinates"], axisYLabelCoordinates: ["p-axis-y-label-coordinates", "axisYLabelCoordinates"], type: ["p-type", "type"] }, attrs: _c0$1m, decls: 4, vars: 4, consts: [["class", "po-chart-axis-x-label", "dominant-baseline", "middle", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "po-chart-axis-y-label", 3, "po-chart-centered-label", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["dominant-baseline", "middle", 1, "po-chart-axis-x-label"], [1, "po-chart-axis-y-label"]], template: function PoChartAxisLabelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9175
9237
|
i0.ɵɵnamespaceSVG();
|
|
9176
9238
|
i0.ɵɵelementStart(0, "g");
|
|
9177
9239
|
i0.ɵɵtemplate(1, PoChartAxisLabelComponent__svg_text_1_Template, 2, 3, "text", 0);
|
|
@@ -9203,7 +9265,7 @@ class PoChartAxisLabelComponent {
|
|
|
9203
9265
|
args: ['p-type']
|
|
9204
9266
|
}] }); })();
|
|
9205
9267
|
|
|
9206
|
-
const _c0$
|
|
9268
|
+
const _c0$1l = ["po-chart-axis", ""];
|
|
9207
9269
|
class PoChartAxisComponent {
|
|
9208
9270
|
mathsService;
|
|
9209
9271
|
alignByTheCorners = false;
|
|
@@ -9475,7 +9537,7 @@ class PoChartAxisComponent {
|
|
|
9475
9537
|
});
|
|
9476
9538
|
}
|
|
9477
9539
|
static ɵfac = function PoChartAxisComponent_Factory(t) { return new (t || PoChartAxisComponent)(i0.ɵɵdirectiveInject(PoChartMathsService)); };
|
|
9478
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartAxisComponent, selectors: [["", "po-chart-axis", ""]], inputs: { alignByTheCorners: ["p-align-by-the-corners", "alignByTheCorners"], type: ["p-type", "type"], range: ["p-range", "range"], series: ["p-series", "series"], categories: ["p-categories", "categories"], containerSize: ["p-container-size", "containerSize"], axisOptions: ["p-options", "axisOptions"] }, outputs: { categoriesCoordinates: "p-categories-coordinates" }, attrs: _c0$
|
|
9540
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartAxisComponent, selectors: [["", "po-chart-axis", ""]], inputs: { alignByTheCorners: ["p-align-by-the-corners", "alignByTheCorners"], type: ["p-type", "type"], range: ["p-range", "range"], series: ["p-series", "series"], categories: ["p-categories", "categories"], containerSize: ["p-container-size", "containerSize"], axisOptions: ["p-options", "axisOptions"] }, outputs: { categoriesCoordinates: "p-categories-coordinates" }, attrs: _c0$1l, decls: 2, vars: 6, consts: [["po-chart-axis-path", "", 3, "p-axis-x-coordinates", "p-axis-y-coordinates"], ["po-chart-axis-label", "", 3, "p-align-by-the-corners", "p-axis-x-label-coordinates", "p-axis-y-label-coordinates", "p-type"]], template: function PoChartAxisComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9479
9541
|
i0.ɵɵnamespaceSVG();
|
|
9480
9542
|
i0.ɵɵelement(0, "g", 0)(1, "g", 1);
|
|
9481
9543
|
} if (rf & 2) {
|
|
@@ -9617,7 +9679,7 @@ class PoChartBarBaseComponent {
|
|
|
9617
9679
|
args: ['p-series']
|
|
9618
9680
|
}] }); })();
|
|
9619
9681
|
|
|
9620
|
-
const _c0$
|
|
9682
|
+
const _c0$1k = ["po-chart-bar-path", ""];
|
|
9621
9683
|
function PoChartBarPathComponent__svg_path_0_Template(rf, ctx) { if (rf & 1) {
|
|
9622
9684
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
9623
9685
|
i0.ɵɵnamespaceSVG();
|
|
@@ -9650,7 +9712,7 @@ class PoChartBarPathComponent {
|
|
|
9650
9712
|
this.barHover.emit(selectedItem);
|
|
9651
9713
|
}
|
|
9652
9714
|
static ɵfac = function PoChartBarPathComponent_Factory(t) { return new (t || PoChartBarPathComponent)(); };
|
|
9653
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartBarPathComponent, selectors: [["", "po-chart-bar-path", ""]], inputs: { color: ["p-color", "color"], coordinates: ["p-coordinates", "coordinates"], tooltipPosition: ["p-tooltip-position", "tooltipPosition"] }, outputs: { barClick: "p-bar-click", barHover: "p-bar-hover" }, attrs: _c0$
|
|
9715
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartBarPathComponent, selectors: [["", "po-chart-bar-path", ""]], inputs: { color: ["p-color", "color"], coordinates: ["p-coordinates", "coordinates"], tooltipPosition: ["p-tooltip-position", "tooltipPosition"] }, outputs: { barClick: "p-bar-click", barHover: "p-bar-hover" }, attrs: _c0$1k, decls: 1, vars: 2, consts: [["class", "po-chart-bar-path", 3, "p-tooltip", "p-tooltip-position", "p-append-in-body", "class", "mouseenter", "click", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "po-chart-bar-path", 3, "p-tooltip", "p-tooltip-position", "p-append-in-body", "mouseenter", "click"]], template: function PoChartBarPathComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9654
9716
|
i0.ɵɵtemplate(0, PoChartBarPathComponent__svg_path_0_Template, 1, 7, "path", 0);
|
|
9655
9717
|
} if (rf & 2) {
|
|
9656
9718
|
i0.ɵɵproperty("ngForOf", ctx.coordinates)("ngForTrackBy", ctx.trackBy);
|
|
@@ -9676,7 +9738,7 @@ class PoChartBarPathComponent {
|
|
|
9676
9738
|
args: ['p-bar-hover']
|
|
9677
9739
|
}] }); })();
|
|
9678
9740
|
|
|
9679
|
-
const _c0$
|
|
9741
|
+
const _c0$1j = ["po-chart-bar", ""];
|
|
9680
9742
|
function PoChartBarComponent__svg_g_1_Template(rf, ctx) { if (rf & 1) {
|
|
9681
9743
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
9682
9744
|
i0.ɵɵnamespaceSVG();
|
|
@@ -9737,7 +9799,7 @@ class PoChartBarComponent extends PoChartBarBaseComponent {
|
|
|
9737
9799
|
return { y1, y2 };
|
|
9738
9800
|
}
|
|
9739
9801
|
static ɵfac = function PoChartBarComponent_Factory(t) { return new (t || PoChartBarComponent)(i0.ɵɵdirectiveInject(PoChartMathsService)); };
|
|
9740
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartBarComponent, selectors: [["", "po-chart-bar", ""]], features: [i0.ɵɵInheritDefinitionFeature], attrs: _c0$
|
|
9802
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartBarComponent, selectors: [["", "po-chart-bar", ""]], features: [i0.ɵɵInheritDefinitionFeature], attrs: _c0$1j, decls: 2, vars: 2, consts: [[3, "class", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["po-chart-bar-path", "", 3, "p-color", "p-coordinates", "p-tooltip-position", "p-bar-click", "p-bar-hover"]], template: function PoChartBarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9741
9803
|
i0.ɵɵnamespaceSVG();
|
|
9742
9804
|
i0.ɵɵelementStart(0, "g");
|
|
9743
9805
|
i0.ɵɵtemplate(1, PoChartBarComponent__svg_g_1_Template, 2, 6, "g", 0);
|
|
@@ -9752,7 +9814,7 @@ class PoChartBarComponent extends PoChartBarBaseComponent {
|
|
|
9752
9814
|
args: [{ selector: '[po-chart-bar]', template: "<svg:g>\n <svg:g *ngFor=\"let item of seriesPathsCoordinates; let i = index; trackBy: trackBy\"\n [class]=\"'po-chart-bar-group-' + i\"\n >\n <!-- SERIES PATHS -->\n <svg:g po-chart-bar-path\n [attr.key]=\"'po-chart-bar-path-' + i\"\n [p-color]=\"item[0]?.color\" \n [p-coordinates]=\"item\"\n [p-tooltip-position]=\"tooltipPosition\"\n (p-bar-click)=\"onSerieBarClick($event)\"\n (p-bar-hover)=\"onSerieBarHover($event)\"\n >\n </svg:g>\n </svg:g>\n</svg:g>" }]
|
|
9753
9815
|
}], function () { return [{ type: PoChartMathsService }]; }, null); })();
|
|
9754
9816
|
|
|
9755
|
-
const _c0$
|
|
9817
|
+
const _c0$1i = ["po-chart-column", ""];
|
|
9756
9818
|
function PoChartColumnComponent__svg_g_1_Template(rf, ctx) { if (rf & 1) {
|
|
9757
9819
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
9758
9820
|
i0.ɵɵnamespaceSVG();
|
|
@@ -9814,7 +9876,7 @@ class PoChartColumnComponent extends PoChartBarBaseComponent {
|
|
|
9814
9876
|
return { y1, y2 };
|
|
9815
9877
|
}
|
|
9816
9878
|
static ɵfac = function PoChartColumnComponent_Factory(t) { return new (t || PoChartColumnComponent)(i0.ɵɵdirectiveInject(PoChartMathsService)); };
|
|
9817
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartColumnComponent, selectors: [["", "po-chart-column", ""]], features: [i0.ɵɵInheritDefinitionFeature], attrs: _c0$
|
|
9879
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartColumnComponent, selectors: [["", "po-chart-column", ""]], features: [i0.ɵɵInheritDefinitionFeature], attrs: _c0$1i, decls: 2, vars: 2, consts: [[3, "class", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["po-chart-bar-path", "", 3, "p-color", "p-coordinates", "p-tooltip-position", "p-bar-click", "p-bar-hover"]], template: function PoChartColumnComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9818
9880
|
i0.ɵɵnamespaceSVG();
|
|
9819
9881
|
i0.ɵɵelementStart(0, "g");
|
|
9820
9882
|
i0.ɵɵtemplate(1, PoChartColumnComponent__svg_g_1_Template, 2, 6, "g", 0);
|
|
@@ -10248,7 +10310,7 @@ class PoChartSvgContainerService {
|
|
|
10248
10310
|
}]
|
|
10249
10311
|
}], function () { return []; }, null); })();
|
|
10250
10312
|
|
|
10251
|
-
const _c0$
|
|
10313
|
+
const _c0$1h = ["po-chart-line", ""];
|
|
10252
10314
|
function PoChartLineComponent__svg_g_2_Template(rf, ctx) { if (rf & 1) {
|
|
10253
10315
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
10254
10316
|
i0.ɵɵnamespaceSVG();
|
|
@@ -10298,7 +10360,7 @@ class PoChartLineComponent extends PoChartLineBaseComponent {
|
|
|
10298
10360
|
this.renderer.appendChild(this.chartLine.nativeElement, pathGroupElement[0]);
|
|
10299
10361
|
}
|
|
10300
10362
|
static ɵfac = function PoChartLineComponent_Factory(t) { return new (t || PoChartLineComponent)(i0.ɵɵdirectiveInject(PoChartMathsService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
10301
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartLineComponent, selectors: [["", "po-chart-line", ""]], features: [i0.ɵɵInheritDefinitionFeature], attrs: _c0$
|
|
10363
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartLineComponent, selectors: [["", "po-chart-line", ""]], features: [i0.ɵɵInheritDefinitionFeature], attrs: _c0$1h, decls: 3, vars: 2, consts: [["chartLine", ""], [3, "class", "mouseenter", "mouseleave", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "mouseenter", "mouseleave"], ["po-chart-path", "", 3, "p-chart-line", "p-animate", "p-color", "p-coordinates", "p-is-active"], ["po-chart-series-point", "", 3, "p-animate", "p-chart-line", "p-color", "p-coordinates", "p-is-active", "p-relative-to", "p-point-click", "p-point-hover"]], template: function PoChartLineComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10302
10364
|
i0.ɵɵnamespaceSVG();
|
|
10303
10365
|
i0.ɵɵelementStart(0, "g", null, 0);
|
|
10304
10366
|
i0.ɵɵtemplate(2, PoChartLineComponent__svg_g_2_Template, 3, 15, "g", 1);
|
|
@@ -10313,7 +10375,7 @@ class PoChartLineComponent extends PoChartLineBaseComponent {
|
|
|
10313
10375
|
args: [{ selector: '[po-chart-line]', template: "<svg:g #chartLine>\n\n <svg:g *ngFor=\"let item of seriesPathsCoordinates; let i = index; trackBy: trackBy\"\n [class]=\"'po-chart-line-path-group-' + i\"\n (mouseenter)=\"onEnter(i)\"\n (mouseleave)=\"onLeave(i)\"\n >\n <!-- SERIES PATHS -->\n <svg:g po-chart-path\n [p-chart-line]=\"chartType === 'line'\"\n [attr.key]=\"'po-chart-line-path-' + i\"\n [p-animate]=\"animate\"\n [p-color]=\"item.color\" \n [p-coordinates]=\"item?.coordinates\"\n [p-is-active]=\"item.isActive\"\n >\n </svg:g>\n\n <!-- SERIES POINTS -->\n <svg:g po-chart-series-point\n [p-animate]=\"animate\"\n [p-chart-line]=\"chartType === 'line'\"\n [p-color]=\"item.color\"\n [p-coordinates]=\"seriesPointsCoordinates[i]\"\n [p-is-active]=\"activeTooltip\"\n [p-relative-to]=\"'po-chart-line-path-group-' + i\" \n [attr.key]=\"'po-chart-line-path-points-group-' + i\"\n (p-point-click)=\"onSeriePointClick($event)\"\n (p-point-hover)=\"onSeriePointHover($event)\"\n ></svg:g>\n </svg:g>\n\n</svg:g>" }]
|
|
10314
10376
|
}], function () { return [{ type: PoChartMathsService }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, null); })();
|
|
10315
10377
|
|
|
10316
|
-
const _c0$
|
|
10378
|
+
const _c0$1g = ["svgPaths"];
|
|
10317
10379
|
const _c1$y = ["svgLabels"];
|
|
10318
10380
|
class PoChartCircularComponent {
|
|
10319
10381
|
ngZone;
|
|
@@ -10449,7 +10511,7 @@ class PoChartCircularComponent {
|
|
|
10449
10511
|
}
|
|
10450
10512
|
static ɵfac = function PoChartCircularComponent_Factory(t) { return new (t || PoChartCircularComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
10451
10513
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoChartCircularComponent, viewQuery: function PoChartCircularComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10452
|
-
i0.ɵɵviewQuery(_c0$
|
|
10514
|
+
i0.ɵɵviewQuery(_c0$1g, 5);
|
|
10453
10515
|
i0.ɵɵviewQuery(_c1$y, 5);
|
|
10454
10516
|
} if (rf & 2) {
|
|
10455
10517
|
let _t;
|
|
@@ -10575,7 +10637,7 @@ class PoChartTooltipDirective {
|
|
|
10575
10637
|
args: ['mousemove', ['$event']]
|
|
10576
10638
|
}] }); })();
|
|
10577
10639
|
|
|
10578
|
-
const _c0$
|
|
10640
|
+
const _c0$1f = ["svgPath"];
|
|
10579
10641
|
const _c1$x = ["po-chart-circular-path", ""];
|
|
10580
10642
|
class PoChartCircularPathComponent {
|
|
10581
10643
|
renderer;
|
|
@@ -10599,7 +10661,7 @@ class PoChartCircularPathComponent {
|
|
|
10599
10661
|
}
|
|
10600
10662
|
static ɵfac = function PoChartCircularPathComponent_Factory(t) { return new (t || PoChartCircularPathComponent)(i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
10601
10663
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartCircularPathComponent, selectors: [["", "po-chart-circular-path", ""]], viewQuery: function PoChartCircularPathComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10602
|
-
i0.ɵɵviewQuery(_c0$
|
|
10664
|
+
i0.ɵɵviewQuery(_c0$1f, 5, ElementRef);
|
|
10603
10665
|
} if (rf & 2) {
|
|
10604
10666
|
let _t;
|
|
10605
10667
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.svgPath = _t.first);
|
|
@@ -10631,7 +10693,7 @@ class PoChartCircularPathComponent {
|
|
|
10631
10693
|
args: ['svgPath', { read: ElementRef }]
|
|
10632
10694
|
}] }); })();
|
|
10633
10695
|
|
|
10634
|
-
const _c0$
|
|
10696
|
+
const _c0$1e = ["svgLabel"];
|
|
10635
10697
|
const _c1$w = ["po-chart-circular-label", ""];
|
|
10636
10698
|
class PoChartCircularLabelComponent {
|
|
10637
10699
|
changeDetection;
|
|
@@ -10651,7 +10713,7 @@ class PoChartCircularLabelComponent {
|
|
|
10651
10713
|
}
|
|
10652
10714
|
static ɵfac = function PoChartCircularLabelComponent_Factory(t) { return new (t || PoChartCircularLabelComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
10653
10715
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartCircularLabelComponent, selectors: [["", "po-chart-circular-label", ""]], viewQuery: function PoChartCircularLabelComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10654
|
-
i0.ɵɵviewQuery(_c0$
|
|
10716
|
+
i0.ɵɵviewQuery(_c0$1e, 5, ElementRef);
|
|
10655
10717
|
} if (rf & 2) {
|
|
10656
10718
|
let _t;
|
|
10657
10719
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.svgLabel = _t.first);
|
|
@@ -10681,7 +10743,7 @@ class PoChartCircularLabelComponent {
|
|
|
10681
10743
|
args: ['svgLabel', { read: ElementRef }]
|
|
10682
10744
|
}] }); })();
|
|
10683
10745
|
|
|
10684
|
-
const _c0$
|
|
10746
|
+
const _c0$1d = ["po-chart-pie", ""];
|
|
10685
10747
|
function PoChartPieComponent__svg_g_1_Template(rf, ctx) { if (rf & 1) {
|
|
10686
10748
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
10687
10749
|
i0.ɵɵnamespaceSVG();
|
|
@@ -10762,7 +10824,7 @@ class PoChartPieComponent extends PoChartCircularComponent {
|
|
|
10762
10824
|
return tooltipLabel || `${dataLabel}${dataValue}`;
|
|
10763
10825
|
}
|
|
10764
10826
|
static ɵfac = function PoChartPieComponent_Factory(t) { return new (t || PoChartPieComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
10765
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartPieComponent, selectors: [["", "po-chart-pie", ""]], features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], attrs: _c0$
|
|
10827
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartPieComponent, selectors: [["", "po-chart-pie", ""]], features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], attrs: _c0$1d, decls: 3, vars: 2, consts: [[4, "ngFor", "ngForOf"], [4, "ngIf"], ["po-chart-circular-path", "", 3, "p-serie", "p-on-click", "p-on-hover"], ["svgPaths", ""], ["po-chart-circular-label", "", 3, "p-serie", "p-show-label"], ["svgLabels", ""]], template: function PoChartPieComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10766
10828
|
i0.ɵɵnamespaceSVG();
|
|
10767
10829
|
i0.ɵɵelementStart(0, "g");
|
|
10768
10830
|
i0.ɵɵtemplate(1, PoChartPieComponent__svg_g_1_Template, 3, 2, "g", 0);
|
|
@@ -10780,7 +10842,7 @@ class PoChartPieComponent extends PoChartCircularComponent {
|
|
|
10780
10842
|
args: [{ selector: '[po-chart-pie]', template: "<svg:g>\n <!-- SERIES PATHS -->\n <svg:g *ngFor=\"let item of seriesList; let i = index\">\n <svg:g #svgPaths po-chart-circular-path\n [attr.key]=\"'po-chart-circular-path-' + i\"\n [p-serie]=\"item\"\n (p-on-click)=\"onSerieClick($event)\"\n (p-on-hover)=\"onSerieHover($event)\">\n </svg:g>\n </svg:g>\n\n <!-- SERIES LABELS -->\n <svg:g *ngIf=\"canDisplayLabels\">\n <svg:g *ngFor=\"let item of seriesLabels; let i = index\">\n <svg:g #svgLabels po-chart-circular-label\n [attr.key]=\"'po-chart-circular-label-' + i\"\n [p-serie]=\"item\"\n [p-show-label]=\"showLabels\">\n </svg:g>\n </svg:g>\n </svg:g>\n</svg:g>\n\n" }]
|
|
10781
10843
|
}], function () { return [{ type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, null); })();
|
|
10782
10844
|
|
|
10783
|
-
const _c0$
|
|
10845
|
+
const _c0$1c = ["po-chart-donut", ""];
|
|
10784
10846
|
function PoChartDonutComponent__svg_g_1_Template(rf, ctx) { if (rf & 1) {
|
|
10785
10847
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
10786
10848
|
i0.ɵɵnamespaceSVG();
|
|
@@ -10916,7 +10978,7 @@ class PoChartDonutComponent extends PoChartCircularComponent {
|
|
|
10916
10978
|
this.canDisplayLabels = radius - innerRadius >= radius - (radius - PoChartDonutDefaultThickness);
|
|
10917
10979
|
}
|
|
10918
10980
|
static ɵfac = function PoChartDonutComponent_Factory(t) { return new (t || PoChartDonutComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
10919
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartDonutComponent, selectors: [["", "po-chart-donut", ""]], features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], attrs: _c0$
|
|
10981
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartDonutComponent, selectors: [["", "po-chart-donut", ""]], features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], attrs: _c0$1c, decls: 3, vars: 2, consts: [[4, "ngFor", "ngForOf"], [4, "ngIf"], ["po-chart-circular-path", "", 3, "p-serie", "p-on-click", "p-on-hover"], ["svgPaths", ""], ["po-chart-circular-label", "", 3, "p-serie", "p-show-label"], ["svgLabels", ""]], template: function PoChartDonutComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10920
10982
|
i0.ɵɵnamespaceSVG();
|
|
10921
10983
|
i0.ɵɵelementStart(0, "g");
|
|
10922
10984
|
i0.ɵɵtemplate(1, PoChartDonutComponent__svg_g_1_Template, 3, 2, "g", 0);
|
|
@@ -10934,7 +10996,7 @@ class PoChartDonutComponent extends PoChartCircularComponent {
|
|
|
10934
10996
|
args: [{ selector: '[po-chart-donut]', template: "<svg:g>\n <!-- SERIES PATHS -->\n <svg:g *ngFor=\"let item of seriesList; let i = index\">\n <svg:g #svgPaths po-chart-circular-path\n [attr.key]=\"'po-chart-circular-path-' + i\"\n [p-serie]=\"item\"\n (p-on-click)=\"onSerieClick($event)\"\n (p-on-hover)=\"onSerieHover($event)\">\n </svg:g>\n </svg:g>\n\n <!-- SERIES LABELS -->\n <svg:g *ngIf=\"canDisplayLabels\">\n <svg:g *ngFor=\"let item of seriesLabels; let i = index\">\n <svg:g #svgLabels po-chart-circular-label\n [attr.key]=\"'po-chart-circular-label-' + i\"\n [p-serie]=\"item\"\n [p-show-label]=\"showLabels\">\n </svg:g>\n </svg:g>\n </svg:g>\n</svg:g>\n\n" }]
|
|
10935
10997
|
}], function () { return [{ type: i0.NgZone }, { type: i0.ChangeDetectorRef }]; }, null); })();
|
|
10936
10998
|
|
|
10937
|
-
const _c0$
|
|
10999
|
+
const _c0$1b = ["svgELement"];
|
|
10938
11000
|
function PoChartContainerComponent__svg_g_2_Template(rf, ctx) { if (rf & 1) {
|
|
10939
11001
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
10940
11002
|
i0.ɵɵnamespaceSVG();
|
|
@@ -11116,7 +11178,7 @@ class PoChartContainerComponent {
|
|
|
11116
11178
|
}
|
|
11117
11179
|
static ɵfac = function PoChartContainerComponent_Factory(t) { return new (t || PoChartContainerComponent)(i0.ɵɵdirectiveInject(PoChartMathsService)); };
|
|
11118
11180
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartContainerComponent, selectors: [["po-chart-container"]], viewQuery: function PoChartContainerComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11119
|
-
i0.ɵɵviewQuery(_c0$
|
|
11181
|
+
i0.ɵɵviewQuery(_c0$1b, 7);
|
|
11120
11182
|
} if (rf & 2) {
|
|
11121
11183
|
let _t;
|
|
11122
11184
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.svgELement = _t.first);
|
|
@@ -11266,7 +11328,7 @@ class PoResizeObserverDirective {
|
|
|
11266
11328
|
args: ['p-resize-observer']
|
|
11267
11329
|
}] }); })();
|
|
11268
11330
|
|
|
11269
|
-
const _c0$
|
|
11331
|
+
const _c0$1a = ["chartContainer"];
|
|
11270
11332
|
const _c1$v = ["chartHeader"];
|
|
11271
11333
|
const _c2$d = ["chartLegend"];
|
|
11272
11334
|
const _c3$9 = ["chartWrapper"];
|
|
@@ -11462,7 +11524,7 @@ class PoChartComponent extends PoChartBaseComponent {
|
|
|
11462
11524
|
}
|
|
11463
11525
|
static ɵfac = function PoChartComponent_Factory(t) { return new (t || PoChartComponent)(i0.ɵɵdirectiveInject(PoColorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PoChartSvgContainerService), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(PoChartMathsService), i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
11464
11526
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartComponent, selectors: [["po-chart"]], viewQuery: function PoChartComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11465
|
-
i0.ɵɵviewQuery(_c0$
|
|
11527
|
+
i0.ɵɵviewQuery(_c0$1a, 7, ViewContainerRef);
|
|
11466
11528
|
i0.ɵɵviewQuery(_c1$v, 7);
|
|
11467
11529
|
i0.ɵɵviewQuery(_c2$d, 5, ElementRef);
|
|
11468
11530
|
i0.ɵɵviewQuery(_c3$9, 7);
|
|
@@ -11665,7 +11727,7 @@ class PoContainerBaseComponent {
|
|
|
11665
11727
|
args: ['p-no-shadow']
|
|
11666
11728
|
}] }); })();
|
|
11667
11729
|
|
|
11668
|
-
const _c0$
|
|
11730
|
+
const _c0$19 = ["*"];
|
|
11669
11731
|
/**
|
|
11670
11732
|
* @docsExtends PoContainerBaseComponent
|
|
11671
11733
|
*
|
|
@@ -11689,7 +11751,7 @@ const _c0$1a = ["*"];
|
|
|
11689
11751
|
*/
|
|
11690
11752
|
class PoContainerComponent extends PoContainerBaseComponent {
|
|
11691
11753
|
static ɵfac = /*@__PURE__*/ function () { let ɵPoContainerComponent_BaseFactory; return function PoContainerComponent_Factory(t) { return (ɵPoContainerComponent_BaseFactory || (ɵPoContainerComponent_BaseFactory = i0.ɵɵgetInheritedFactory(PoContainerComponent)))(t || PoContainerComponent); }; }();
|
|
11692
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoContainerComponent, selectors: [["po-container"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$
|
|
11754
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoContainerComponent, selectors: [["po-container"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$19, decls: 2, vars: 6, consts: [[1, "po-container"]], template: function PoContainerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11693
11755
|
i0.ɵɵprojectionDef();
|
|
11694
11756
|
i0.ɵɵelementStart(0, "div", 0);
|
|
11695
11757
|
i0.ɵɵprojection(1);
|
|
@@ -11845,7 +11907,7 @@ class PoDisclaimerBaseComponent {
|
|
|
11845
11907
|
args: ['p-type']
|
|
11846
11908
|
}] }); })();
|
|
11847
11909
|
|
|
11848
|
-
const _c0$
|
|
11910
|
+
const _c0$18 = ["disclaimerContainer"];
|
|
11849
11911
|
function PoDisclaimerComponent_div_2_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
11850
11912
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
11851
11913
|
i0.ɵɵelementStart(0, "span", 7);
|
|
@@ -11897,7 +11959,7 @@ class PoDisclaimerComponent extends PoDisclaimerBaseComponent {
|
|
|
11897
11959
|
}
|
|
11898
11960
|
static ɵfac = /*@__PURE__*/ function () { let ɵPoDisclaimerComponent_BaseFactory; return function PoDisclaimerComponent_Factory(t) { return (ɵPoDisclaimerComponent_BaseFactory || (ɵPoDisclaimerComponent_BaseFactory = i0.ɵɵgetInheritedFactory(PoDisclaimerComponent)))(t || PoDisclaimerComponent); }; }();
|
|
11899
11961
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDisclaimerComponent, selectors: [["po-disclaimer"]], viewQuery: function PoDisclaimerComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11900
|
-
i0.ɵɵviewQuery(_c0$
|
|
11962
|
+
i0.ɵɵviewQuery(_c0$18, 7);
|
|
11901
11963
|
} if (rf & 2) {
|
|
11902
11964
|
let _t;
|
|
11903
11965
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.disclaimerContainer = _t.first);
|
|
@@ -12355,7 +12417,7 @@ class PoDropdownBaseComponent {
|
|
|
12355
12417
|
args: ['p-disabled']
|
|
12356
12418
|
}] }); })();
|
|
12357
12419
|
|
|
12358
|
-
const _c0$
|
|
12420
|
+
const _c0$17 = ["dropdownRef"];
|
|
12359
12421
|
const _c1$u = ["popupRef"];
|
|
12360
12422
|
const _c2$c = function (a0, a1) { return { "po-dropdown-button-disabled": a0, "po-dropdown-button-open": a1 }; };
|
|
12361
12423
|
const _c3$8 = function () { return ["bottom-left", "top-left"]; };
|
|
@@ -12445,7 +12507,7 @@ class PoDropdownComponent extends PoDropdownBaseComponent {
|
|
|
12445
12507
|
}
|
|
12446
12508
|
static ɵfac = function PoDropdownComponent_Factory(t) { return new (t || PoDropdownComponent)(i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
12447
12509
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDropdownComponent, selectors: [["po-dropdown"]], viewQuery: function PoDropdownComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12448
|
-
i0.ɵɵviewQuery(_c0$
|
|
12510
|
+
i0.ɵɵviewQuery(_c0$17, 7, ElementRef);
|
|
12449
12511
|
i0.ɵɵviewQuery(_c1$u, 5);
|
|
12450
12512
|
} if (rf & 2) {
|
|
12451
12513
|
let _t;
|
|
@@ -12601,7 +12663,7 @@ function PoFieldContainerComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
12601
12663
|
i0.ɵɵadvance(1);
|
|
12602
12664
|
i0.ɵɵtextInterpolate(ctx_r1.help);
|
|
12603
12665
|
} }
|
|
12604
|
-
const _c0$
|
|
12666
|
+
const _c0$16 = ["*"];
|
|
12605
12667
|
/**
|
|
12606
12668
|
* @docsPrivate
|
|
12607
12669
|
*
|
|
@@ -12664,7 +12726,7 @@ class PoFieldContainerComponent {
|
|
|
12664
12726
|
}
|
|
12665
12727
|
}
|
|
12666
12728
|
static ɵfac = function PoFieldContainerComponent_Factory(t) { return new (t || PoFieldContainerComponent)(i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
12667
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoFieldContainerComponent, selectors: [["po-field-container"]], inputs: { disabled: ["p-disabled", "disabled"], id: ["p-id", "id"], label: ["p-label", "label"], help: ["p-help", "help"], optional: ["p-optional", "optional"], required: ["p-required", "required"], showRequired: ["p-show-required", "showRequired"] }, features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$
|
|
12729
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoFieldContainerComponent, selectors: [["po-field-container"]], inputs: { disabled: ["p-disabled", "disabled"], id: ["p-id", "id"], label: ["p-label", "label"], help: ["p-help", "help"], optional: ["p-optional", "optional"], required: ["p-required", "required"], showRequired: ["p-show-required", "showRequired"] }, features: [i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$16, decls: 5, vars: 2, consts: [[1, "po-field-container"], [1, "po-field-container-title"], ["p-field", "true", 3, "p-disabled", "p-for", "p-label", "p-requirement", 4, "ngIf"], ["class", "po-field-help", 4, "ngIf"], ["p-field", "true", 3, "p-disabled", "p-for", "p-label", "p-requirement"], [1, "po-field-help"]], template: function PoFieldContainerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
12668
12730
|
i0.ɵɵprojectionDef();
|
|
12669
12731
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
12670
12732
|
i0.ɵɵtemplate(2, PoFieldContainerComponent_po_label_2_Template, 1, 4, "po-label", 2);
|
|
@@ -13111,7 +13173,7 @@ class PoCheckboxGroupBaseComponent {
|
|
|
13111
13173
|
args: ['p-show-required']
|
|
13112
13174
|
}] }); })();
|
|
13113
13175
|
|
|
13114
|
-
const _c0$
|
|
13176
|
+
const _c0$15 = ["checkboxLabel"];
|
|
13115
13177
|
function PoCheckboxGroupComponent_li_3_Template(rf, ctx) { if (rf & 1) {
|
|
13116
13178
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
13117
13179
|
i0.ɵɵelementStart(0, "li")(1, "po-checkbox", 4, 5);
|
|
@@ -13197,7 +13259,7 @@ class PoCheckboxGroupComponent extends PoCheckboxGroupBaseComponent {
|
|
|
13197
13259
|
}
|
|
13198
13260
|
static ɵfac = function PoCheckboxGroupComponent_Factory(t) { return new (t || PoCheckboxGroupComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
13199
13261
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCheckboxGroupComponent, selectors: [["po-checkbox-group"]], viewQuery: function PoCheckboxGroupComponent_Query(rf, ctx) { if (rf & 1) {
|
|
13200
|
-
i0.ɵɵviewQuery(_c0$
|
|
13262
|
+
i0.ɵɵviewQuery(_c0$15, 5);
|
|
13201
13263
|
} if (rf & 2) {
|
|
13202
13264
|
let _t;
|
|
13203
13265
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.checkboxLabels = _t);
|
|
@@ -13596,7 +13658,7 @@ var PoRadioSize;
|
|
|
13596
13658
|
PoRadioSize["Large"] = "large";
|
|
13597
13659
|
})(PoRadioSize || (PoRadioSize = {}));
|
|
13598
13660
|
|
|
13599
|
-
const _c0$
|
|
13661
|
+
const _c0$14 = ["radio"];
|
|
13600
13662
|
const _c1$t = ["radioInput"];
|
|
13601
13663
|
function PoRadioComponent_po_label_5_Template(rf, ctx) { if (rf & 1) {
|
|
13602
13664
|
i0.ɵɵelement(0, "po-label", 6);
|
|
@@ -13701,7 +13763,7 @@ class PoRadioComponent extends PoFieldModel {
|
|
|
13701
13763
|
}
|
|
13702
13764
|
static ɵfac = function PoRadioComponent_Factory(t) { return new (t || PoRadioComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
13703
13765
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoRadioComponent, selectors: [["po-radio"]], viewQuery: function PoRadioComponent_Query(rf, ctx) { if (rf & 1) {
|
|
13704
|
-
i0.ɵɵviewQuery(_c0$
|
|
13766
|
+
i0.ɵɵviewQuery(_c0$14, 7);
|
|
13705
13767
|
i0.ɵɵviewQuery(_c1$t, 7);
|
|
13706
13768
|
} if (rf & 2) {
|
|
13707
13769
|
let _t;
|
|
@@ -13772,7 +13834,7 @@ class PoRadioComponent extends PoFieldModel {
|
|
|
13772
13834
|
args: ['keydown', ['$event.target']]
|
|
13773
13835
|
}] }); })();
|
|
13774
13836
|
|
|
13775
|
-
const _c0$
|
|
13837
|
+
const _c0$13 = ["inp"];
|
|
13776
13838
|
const _c1$s = ["inputRadio"];
|
|
13777
13839
|
function PoRadioGroupComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
13778
13840
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
@@ -13885,7 +13947,7 @@ class PoRadioGroupComponent extends PoRadioGroupBaseComponent {
|
|
|
13885
13947
|
}
|
|
13886
13948
|
static ɵfac = function PoRadioGroupComponent_Factory(t) { return new (t || PoRadioGroupComponent)(i0.ɵɵdirectiveInject(i0.IterableDiffers), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
13887
13949
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoRadioGroupComponent, selectors: [["po-radio-group"]], viewQuery: function PoRadioGroupComponent_Query(rf, ctx) { if (rf & 1) {
|
|
13888
|
-
i0.ɵɵviewQuery(_c0$
|
|
13950
|
+
i0.ɵɵviewQuery(_c0$13, 7, ElementRef);
|
|
13889
13951
|
i0.ɵɵviewQuery(_c1$s, 5);
|
|
13890
13952
|
} if (rf & 2) {
|
|
13891
13953
|
let _t;
|
|
@@ -15066,7 +15128,7 @@ const PoDatepickerLiterals = {
|
|
|
15066
15128
|
}
|
|
15067
15129
|
};
|
|
15068
15130
|
|
|
15069
|
-
const _c0$
|
|
15131
|
+
const _c0$12 = ["calendar"];
|
|
15070
15132
|
const _c1$r = ["dialogPicker"];
|
|
15071
15133
|
const _c2$b = ["iconDatepicker"];
|
|
15072
15134
|
const _c3$7 = ["inp"];
|
|
@@ -15417,7 +15479,7 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
|
|
|
15417
15479
|
}
|
|
15418
15480
|
static ɵfac = function PoDatepickerComponent_Factory(t) { return new (t || PoDatepickerComponent)(i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(PoControlPositionService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
15419
15481
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDatepickerComponent, selectors: [["po-datepicker"]], viewQuery: function PoDatepickerComponent_Query(rf, ctx) { if (rf & 1) {
|
|
15420
|
-
i0.ɵɵviewQuery(_c0$
|
|
15482
|
+
i0.ɵɵviewQuery(_c0$12, 7);
|
|
15421
15483
|
i0.ɵɵviewQuery(_c1$r, 7, ElementRef);
|
|
15422
15484
|
i0.ɵɵviewQuery(_c2$b, 5);
|
|
15423
15485
|
i0.ɵɵviewQuery(_c3$7, 7, ElementRef);
|
|
@@ -15729,7 +15791,7 @@ class PoModalBaseComponent {
|
|
|
15729
15791
|
args: ['p-icon']
|
|
15730
15792
|
}] }); })();
|
|
15731
15793
|
|
|
15732
|
-
const _c0$
|
|
15794
|
+
const _c0$11 = ["*"];
|
|
15733
15795
|
/**
|
|
15734
15796
|
* @description
|
|
15735
15797
|
*
|
|
@@ -15760,7 +15822,7 @@ class PoModalFooterComponent {
|
|
|
15760
15822
|
*/
|
|
15761
15823
|
disabledAlign = false;
|
|
15762
15824
|
static ɵfac = function PoModalFooterComponent_Factory(t) { return new (t || PoModalFooterComponent)(); };
|
|
15763
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoModalFooterComponent, selectors: [["po-modal-footer"]], inputs: { disabledAlign: ["p-disabled-align", "disabledAlign"] }, ngContentSelectors: _c0$
|
|
15825
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoModalFooterComponent, selectors: [["po-modal-footer"]], inputs: { disabledAlign: ["p-disabled-align", "disabledAlign"] }, ngContentSelectors: _c0$11, decls: 2, vars: 2, consts: [[1, "po-modal-footer"]], template: function PoModalFooterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15764
15826
|
i0.ɵɵprojectionDef();
|
|
15765
15827
|
i0.ɵɵelementStart(0, "div", 0);
|
|
15766
15828
|
i0.ɵɵprojection(1);
|
|
@@ -15789,7 +15851,7 @@ class PoActiveOverlayService {
|
|
|
15789
15851
|
}]
|
|
15790
15852
|
}], null, null); })();
|
|
15791
15853
|
|
|
15792
|
-
const _c0$
|
|
15854
|
+
const _c0$10 = ["modalContent"];
|
|
15793
15855
|
const _c1$q = ["modalContainer"];
|
|
15794
15856
|
function PoModalComponent_div_0_po_icon_9_Template(rf, ctx) { if (rf & 1) {
|
|
15795
15857
|
i0.ɵɵelement(0, "po-icon", 16);
|
|
@@ -15973,7 +16035,7 @@ class PoModalComponent extends PoModalBaseComponent {
|
|
|
15973
16035
|
let _t;
|
|
15974
16036
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.modalFooter = _t.first);
|
|
15975
16037
|
} }, viewQuery: function PoModalComponent_Query(rf, ctx) { if (rf & 1) {
|
|
15976
|
-
i0.ɵɵviewQuery(_c0$
|
|
16038
|
+
i0.ɵɵviewQuery(_c0$10, 5, ElementRef);
|
|
15977
16039
|
i0.ɵɵviewQuery(_c1$q, 5, ElementRef);
|
|
15978
16040
|
} if (rf & 2) {
|
|
15979
16041
|
let _t;
|
|
@@ -16848,7 +16910,7 @@ var PoToasterType;
|
|
|
16848
16910
|
PoToasterType[PoToasterType["Warning"] = 3] = "Warning";
|
|
16849
16911
|
})(PoToasterType || (PoToasterType = {}));
|
|
16850
16912
|
|
|
16851
|
-
const _c0
|
|
16913
|
+
const _c0$$ = ["toaster"];
|
|
16852
16914
|
const _c1$p = ["buttonClose"];
|
|
16853
16915
|
function PoToasterComponent_po_button_8_Template(rf, ctx) { if (rf & 1) {
|
|
16854
16916
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
@@ -17001,7 +17063,7 @@ class PoToasterComponent extends PoToasterBaseComponent {
|
|
|
17001
17063
|
}
|
|
17002
17064
|
static ɵfac = function PoToasterComponent_Factory(t) { return new (t || PoToasterComponent)(i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
17003
17065
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoToasterComponent, selectors: [["po-toaster"]], viewQuery: function PoToasterComponent_Query(rf, ctx) { if (rf & 1) {
|
|
17004
|
-
i0.ɵɵviewQuery(_c0
|
|
17066
|
+
i0.ɵɵviewQuery(_c0$$, 5);
|
|
17005
17067
|
i0.ɵɵviewQuery(_c1$p, 5);
|
|
17006
17068
|
} if (rf & 2) {
|
|
17007
17069
|
let _t;
|
|
@@ -17292,7 +17354,7 @@ class PoPopoverBaseComponent {
|
|
|
17292
17354
|
args: ['p-trigger']
|
|
17293
17355
|
}] }); })();
|
|
17294
17356
|
|
|
17295
|
-
const _c0
|
|
17357
|
+
const _c0$_ = ["popoverElement"];
|
|
17296
17358
|
function PoPopoverComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
17297
17359
|
i0.ɵɵelement(0, "div");
|
|
17298
17360
|
} if (rf & 2) {
|
|
@@ -17436,7 +17498,7 @@ class PoPopoverComponent extends PoPopoverBaseComponent {
|
|
|
17436
17498
|
}
|
|
17437
17499
|
static ɵfac = function PoPopoverComponent_Factory(t) { return new (t || PoPopoverComponent)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(PoControlPositionService)); };
|
|
17438
17500
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPopoverComponent, selectors: [["po-popover"]], viewQuery: function PoPopoverComponent_Query(rf, ctx) { if (rf & 1) {
|
|
17439
|
-
i0.ɵɵviewQuery(_c0
|
|
17501
|
+
i0.ɵɵviewQuery(_c0$_, 7, ElementRef);
|
|
17440
17502
|
} if (rf & 2) {
|
|
17441
17503
|
let _t;
|
|
17442
17504
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popoverElement = _t.first);
|
|
@@ -17718,7 +17780,7 @@ class PoPageSlideBaseComponent {
|
|
|
17718
17780
|
args: ['p-size']
|
|
17719
17781
|
}] }); })();
|
|
17720
17782
|
|
|
17721
|
-
const _c0$
|
|
17783
|
+
const _c0$Z = ["pageContent"];
|
|
17722
17784
|
function PoPageSlideComponent_div_0_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
17723
17785
|
i0.ɵɵelementStart(0, "div", 10);
|
|
17724
17786
|
i0.ɵɵtext(1);
|
|
@@ -17853,7 +17915,7 @@ class PoPageSlideComponent extends PoPageSlideBaseComponent {
|
|
|
17853
17915
|
}
|
|
17854
17916
|
static ɵfac = function PoPageSlideComponent_Factory(t) { return new (t || PoPageSlideComponent)(i0.ɵɵdirectiveInject(PoActiveOverlayService)); };
|
|
17855
17917
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageSlideComponent, selectors: [["po-page-slide"]], viewQuery: function PoPageSlideComponent_Query(rf, ctx) { if (rf & 1) {
|
|
17856
|
-
i0.ɵɵviewQuery(_c0$
|
|
17918
|
+
i0.ɵɵviewQuery(_c0$Z, 5, ElementRef);
|
|
17857
17919
|
} if (rf & 2) {
|
|
17858
17920
|
let _t;
|
|
17859
17921
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.pageContent = _t.first);
|
|
@@ -17917,7 +17979,7 @@ class PoPageSlideModule {
|
|
|
17917
17979
|
}], null, null); })();
|
|
17918
17980
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoPageSlideModule, { declarations: [PoPageSlideComponent], imports: [CommonModule, FormsModule, PoButtonModule], exports: [PoPageSlideComponent] }); })();
|
|
17919
17981
|
|
|
17920
|
-
const _c0$
|
|
17982
|
+
const _c0$Y = function (a0, a1) { return { "po-clickable": a0, "po-table-icon-disabled": a1 }; };
|
|
17921
17983
|
/**
|
|
17922
17984
|
* @docsPrivate
|
|
17923
17985
|
*
|
|
@@ -17962,7 +18024,7 @@ class PoTableIconComponent {
|
|
|
17962
18024
|
i0.ɵɵelementEnd();
|
|
17963
18025
|
} if (rf & 2) {
|
|
17964
18026
|
i0.ɵɵclassMapInterpolate1("po-table-icon-content ", ctx.disabled ? "" : ctx.color, "");
|
|
17965
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7, _c0$
|
|
18027
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7, _c0$Y, ctx.clickable, ctx.disabled))("p-icon", ctx.icon)("p-tooltip", ctx.tooltip)("p-append-in-body", true);
|
|
17966
18028
|
} }, dependencies: [i1.NgClass, PoTooltipDirective, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
17967
18029
|
}
|
|
17968
18030
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTableIconComponent, [{
|
|
@@ -18136,7 +18198,7 @@ function PoTableColumnLinkComponent_po_link_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
18136
18198
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
18137
18199
|
i0.ɵɵproperty("p-label", ctx_r2.value)("p-open-new-tab", ctx_r2.openNewTab)("p-url", ctx_r2.link);
|
|
18138
18200
|
} }
|
|
18139
|
-
const _c0$
|
|
18201
|
+
const _c0$X = function (a0) { return { "po-table-link-disabled": a0 }; };
|
|
18140
18202
|
/**
|
|
18141
18203
|
* @docsPrivate
|
|
18142
18204
|
*
|
|
@@ -18167,7 +18229,7 @@ class PoTableColumnLinkComponent {
|
|
|
18167
18229
|
i0.ɵɵelementContainerEnd();
|
|
18168
18230
|
i0.ɵɵelementEnd();
|
|
18169
18231
|
} if (rf & 2) {
|
|
18170
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
18232
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$X, ctx.disabled));
|
|
18171
18233
|
i0.ɵɵadvance(1);
|
|
18172
18234
|
i0.ɵɵproperty("ngSwitch", ctx.type);
|
|
18173
18235
|
i0.ɵɵadvance(1);
|
|
@@ -18216,7 +18278,7 @@ var PoSwitchLabelPosition;
|
|
|
18216
18278
|
PoSwitchLabelPosition[PoSwitchLabelPosition["Left"] = 1] = "Left";
|
|
18217
18279
|
})(PoSwitchLabelPosition || (PoSwitchLabelPosition = {}));
|
|
18218
18280
|
|
|
18219
|
-
const _c0$
|
|
18281
|
+
const _c0$W = ["switchContainer"];
|
|
18220
18282
|
function PoSwitchComponent_po_icon_7_Template(rf, ctx) { if (rf & 1) {
|
|
18221
18283
|
i0.ɵɵelement(0, "po-icon", 10);
|
|
18222
18284
|
} }
|
|
@@ -18423,7 +18485,7 @@ class PoSwitchComponent extends PoFieldModel {
|
|
|
18423
18485
|
}
|
|
18424
18486
|
static ɵfac = function PoSwitchComponent_Factory(t) { return new (t || PoSwitchComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
18425
18487
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoSwitchComponent, selectors: [["po-switch"]], viewQuery: function PoSwitchComponent_Query(rf, ctx) { if (rf & 1) {
|
|
18426
|
-
i0.ɵɵviewQuery(_c0$
|
|
18488
|
+
i0.ɵɵviewQuery(_c0$W, 7);
|
|
18427
18489
|
} if (rf & 2) {
|
|
18428
18490
|
let _t;
|
|
18429
18491
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.switchContainer = _t.first);
|
|
@@ -18494,7 +18556,7 @@ class PoSwitchComponent extends PoFieldModel {
|
|
|
18494
18556
|
function PoTableListManagerComponent_section_0_ng_container_3_ng_container_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
18495
18557
|
i0.ɵɵelementContainer(0);
|
|
18496
18558
|
} }
|
|
18497
|
-
const _c0$
|
|
18559
|
+
const _c0$V = function (a0) { return { $implicit: a0 }; };
|
|
18498
18560
|
function PoTableListManagerComponent_section_0_ng_container_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
18499
18561
|
i0.ɵɵelementContainerStart(0);
|
|
18500
18562
|
i0.ɵɵelementStart(1, "li", 8);
|
|
@@ -18508,7 +18570,7 @@ function PoTableListManagerComponent_section_0_ng_container_3_ng_container_1_Tem
|
|
|
18508
18570
|
i0.ɵɵadvance(1);
|
|
18509
18571
|
i0.ɵɵclassProp("po-checkbox-group-item-disabled", option_r9.disabled || ctx_r10.disabled);
|
|
18510
18572
|
i0.ɵɵadvance(1);
|
|
18511
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0.ɵɵpureFunction1(4, _c0$
|
|
18573
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0.ɵɵpureFunction1(4, _c0$V, option_r9));
|
|
18512
18574
|
} }
|
|
18513
18575
|
function PoTableListManagerComponent_section_0_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
18514
18576
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -18545,7 +18607,7 @@ function PoTableListManagerComponent_ng_container_4_ng_container_1_ng_container_
|
|
|
18545
18607
|
i0.ɵɵnextContext();
|
|
18546
18608
|
const _r2 = i0.ɵɵreference(6);
|
|
18547
18609
|
i0.ɵɵadvance(1);
|
|
18548
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$
|
|
18610
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$V, option_r13));
|
|
18549
18611
|
} }
|
|
18550
18612
|
function PoTableListManagerComponent_ng_container_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
18551
18613
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -18779,7 +18841,7 @@ class PoTableListManagerComponent extends PoCheckboxGroupComponent {
|
|
|
18779
18841
|
args: [{ alias: 'p-hide-action-fixed-columns', transform: convertToBoolean }]
|
|
18780
18842
|
}] }); })();
|
|
18781
18843
|
|
|
18782
|
-
const _c0$
|
|
18844
|
+
const _c0$U = ["pageSlideColumnsManager"];
|
|
18783
18845
|
const PoTableColumnManagerMaxColumnsDefault = 99999;
|
|
18784
18846
|
const poTableColumnManagerLiteralsDefault = {
|
|
18785
18847
|
en: {
|
|
@@ -19086,7 +19148,7 @@ class PoTableColumnManagerComponent {
|
|
|
19086
19148
|
static ɵfac = function PoTableColumnManagerComponent_Factory(t) { return new (t || PoTableColumnManagerComponent)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
19087
19149
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableColumnManagerComponent, selectors: [["po-table-column-manager"]], viewQuery: function PoTableColumnManagerComponent_Query(rf, ctx) { if (rf & 1) {
|
|
19088
19150
|
i0.ɵɵviewQuery(PoPopoverComponent, 5);
|
|
19089
|
-
i0.ɵɵviewQuery(_c0$
|
|
19151
|
+
i0.ɵɵviewQuery(_c0$U, 5);
|
|
19090
19152
|
} if (rf & 2) {
|
|
19091
19153
|
let _t;
|
|
19092
19154
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popover = _t.first);
|
|
@@ -19577,9 +19639,9 @@ class PoTableBaseComponent {
|
|
|
19577
19639
|
*
|
|
19578
19640
|
* Permite que as ações em lote, responsável por excluir e exibir a quantidade de itens, sejam escondidas.
|
|
19579
19641
|
*
|
|
19580
|
-
* @default `
|
|
19642
|
+
* @default `true`
|
|
19581
19643
|
*/
|
|
19582
|
-
hideBatchActions =
|
|
19644
|
+
hideBatchActions = true;
|
|
19583
19645
|
/**
|
|
19584
19646
|
* @optional
|
|
19585
19647
|
*
|
|
@@ -19605,9 +19667,9 @@ class PoTableBaseComponent {
|
|
|
19605
19667
|
*
|
|
19606
19668
|
* Permite que o campo de pesquisa seja escondido.
|
|
19607
19669
|
*
|
|
19608
|
-
* @default `
|
|
19670
|
+
* @default `true`
|
|
19609
19671
|
*/
|
|
19610
|
-
hideTableSearch =
|
|
19672
|
+
hideTableSearch = true;
|
|
19611
19673
|
/**
|
|
19612
19674
|
* @optional
|
|
19613
19675
|
*
|
|
@@ -21021,7 +21083,7 @@ class PoTableRowTemplateDirective {
|
|
|
21021
21083
|
args: ['p-table-row-template-arrow-direction']
|
|
21022
21084
|
}] }); })();
|
|
21023
21085
|
|
|
21024
|
-
const _c0$
|
|
21086
|
+
const _c0$T = ["noColumnsHeader"];
|
|
21025
21087
|
const _c1$m = ["popup"];
|
|
21026
21088
|
const _c2$9 = ["tableFooter"];
|
|
21027
21089
|
const _c3$5 = ["tableWrapper"];
|
|
@@ -23178,7 +23240,7 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
23178
23240
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableCellTemplate = _t.first);
|
|
23179
23241
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableColumnTemplates = _t);
|
|
23180
23242
|
} }, viewQuery: function PoTableComponent_Query(rf, ctx) { if (rf & 1) {
|
|
23181
|
-
i0.ɵɵviewQuery(_c0$
|
|
23243
|
+
i0.ɵɵviewQuery(_c0$T, 5, ElementRef);
|
|
23182
23244
|
i0.ɵɵviewQuery(_c1$m, 5);
|
|
23183
23245
|
i0.ɵɵviewQuery(PoModalComponent, 7);
|
|
23184
23246
|
i0.ɵɵviewQuery(_c2$9, 5, ElementRef);
|
|
@@ -25182,7 +25244,7 @@ class PoComboFilterService {
|
|
|
25182
25244
|
type: Injectable
|
|
25183
25245
|
}], function () { return [{ type: i1$2.HttpClient }]; }, null); })();
|
|
25184
25246
|
|
|
25185
|
-
const _c0$
|
|
25247
|
+
const _c0$S = ["containerElement"];
|
|
25186
25248
|
const _c1$l = ["contentElement"];
|
|
25187
25249
|
const _c2$8 = ["iconArrow"];
|
|
25188
25250
|
const _c3$4 = ["inp"];
|
|
@@ -25713,7 +25775,7 @@ class PoComboComponent extends PoComboBaseComponent {
|
|
|
25713
25775
|
let _t;
|
|
25714
25776
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.comboOptionTemplate = _t.first);
|
|
25715
25777
|
} }, viewQuery: function PoComboComponent_Query(rf, ctx) { if (rf & 1) {
|
|
25716
|
-
i0.ɵɵviewQuery(_c0$
|
|
25778
|
+
i0.ɵɵviewQuery(_c0$S, 5, ElementRef);
|
|
25717
25779
|
i0.ɵɵviewQuery(_c1$l, 5, ElementRef);
|
|
25718
25780
|
i0.ɵɵviewQuery(_c2$8, 7, ElementRef);
|
|
25719
25781
|
i0.ɵɵviewQuery(_c3$4, 7, ElementRef);
|
|
@@ -26421,7 +26483,7 @@ class PoDatepickerRangeBaseComponent {
|
|
|
26421
26483
|
args: ['p-locale']
|
|
26422
26484
|
}] }); })();
|
|
26423
26485
|
|
|
26424
|
-
const _c0$
|
|
26486
|
+
const _c0$R = ["dateRangeField"];
|
|
26425
26487
|
const _c1$k = ["endDateInput"];
|
|
26426
26488
|
const _c2$7 = ["startDateInput"];
|
|
26427
26489
|
const _c3$3 = ["iconCalendar"];
|
|
@@ -26866,7 +26928,7 @@ class PoDatepickerRangeComponent extends PoDatepickerRangeBaseComponent {
|
|
|
26866
26928
|
}
|
|
26867
26929
|
static ɵfac = function PoDatepickerRangeComponent_Factory(t) { return new (t || PoDatepickerRangeComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PoControlPositionService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(PoDateService), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
26868
26930
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDatepickerRangeComponent, selectors: [["po-datepicker-range"]], viewQuery: function PoDatepickerRangeComponent_Query(rf, ctx) { if (rf & 1) {
|
|
26869
|
-
i0.ɵɵviewQuery(_c0$
|
|
26931
|
+
i0.ɵɵviewQuery(_c0$R, 7, ElementRef);
|
|
26870
26932
|
i0.ɵɵviewQuery(_c1$k, 7, ElementRef);
|
|
26871
26933
|
i0.ɵɵviewQuery(_c2$7, 7, ElementRef);
|
|
26872
26934
|
i0.ɵɵviewQuery(_c3$3, 7, ElementRef);
|
|
@@ -27410,7 +27472,7 @@ class PoInputBaseComponent {
|
|
|
27410
27472
|
args: ['p-mask-format-model']
|
|
27411
27473
|
}] }); })();
|
|
27412
27474
|
|
|
27413
|
-
const _c0$
|
|
27475
|
+
const _c0$Q = ["inp"];
|
|
27414
27476
|
function PoDecimalComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
27415
27477
|
i0.ɵɵelementStart(0, "div", 8);
|
|
27416
27478
|
i0.ɵɵelement(1, "po-icon", 9);
|
|
@@ -28022,7 +28084,7 @@ class PoDecimalComponent extends PoInputBaseComponent {
|
|
|
28022
28084
|
}
|
|
28023
28085
|
static ɵfac = function PoDecimalComponent_Factory(t) { return new (t || PoDecimalComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
28024
28086
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDecimalComponent, selectors: [["po-decimal"]], viewQuery: function PoDecimalComponent_Query(rf, ctx) { if (rf & 1) {
|
|
28025
|
-
i0.ɵɵviewQuery(_c0$
|
|
28087
|
+
i0.ɵɵviewQuery(_c0$Q, 7, ElementRef);
|
|
28026
28088
|
} if (rf & 2) {
|
|
28027
28089
|
let _t;
|
|
28028
28090
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputEl = _t.first);
|
|
@@ -28096,7 +28158,7 @@ class PoDecimalComponent extends PoInputBaseComponent {
|
|
|
28096
28158
|
args: ['p-max']
|
|
28097
28159
|
}] }); })();
|
|
28098
28160
|
|
|
28099
|
-
const _c0$
|
|
28161
|
+
const _c0$P = ["inp"];
|
|
28100
28162
|
/* eslint-disable @angular-eslint/directive-class-suffix */
|
|
28101
28163
|
class PoInputGeneric extends PoInputBaseComponent {
|
|
28102
28164
|
inputEl;
|
|
@@ -28296,7 +28358,7 @@ class PoInputGeneric extends PoInputBaseComponent {
|
|
|
28296
28358
|
}
|
|
28297
28359
|
static ɵfac = function PoInputGeneric_Factory(t) { return new (t || PoInputGeneric)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
28298
28360
|
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoInputGeneric, viewQuery: function PoInputGeneric_Query(rf, ctx) { if (rf & 1) {
|
|
28299
|
-
i0.ɵɵviewQuery(_c0$
|
|
28361
|
+
i0.ɵɵviewQuery(_c0$P, 7, ElementRef);
|
|
28300
28362
|
} if (rf & 2) {
|
|
28301
28363
|
let _t;
|
|
28302
28364
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputEl = _t.first);
|
|
@@ -28459,7 +28521,7 @@ class PoEmailComponent extends PoInputGeneric {
|
|
|
28459
28521
|
args: [{ selector: 'po-email', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$4, template: "<po-field-container\n [p-disabled]=\"disabled\"\n [p-id]=\"id\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n>\n <div class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [class.po-field-icon-disabled]=\"disabled\"\n [p-icon]=\"icon\"\n ></po-icon>\n </div>\n\n <input\n #inp\n class=\"po-input\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [type]=\"type\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"{{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
28460
28522
|
}], function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, null); })();
|
|
28461
28523
|
|
|
28462
|
-
const _c0$
|
|
28524
|
+
const _c0$O = ["inp"];
|
|
28463
28525
|
function PoInputComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
28464
28526
|
i0.ɵɵelementStart(0, "div", 8);
|
|
28465
28527
|
i0.ɵɵelement(1, "po-icon", 9);
|
|
@@ -28513,7 +28575,7 @@ class PoInputComponent extends PoInputGeneric {
|
|
|
28513
28575
|
}
|
|
28514
28576
|
static ɵfac = function PoInputComponent_Factory(t) { return new (t || PoInputComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
28515
28577
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoInputComponent, selectors: [["po-input"]], viewQuery: function PoInputComponent_Query(rf, ctx) { if (rf & 1) {
|
|
28516
|
-
i0.ɵɵviewQuery(_c0$
|
|
28578
|
+
i0.ɵɵviewQuery(_c0$O, 7);
|
|
28517
28579
|
} if (rf & 2) {
|
|
28518
28580
|
let _t;
|
|
28519
28581
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inp = _t.first);
|
|
@@ -29518,7 +29580,7 @@ class PoDynamicFormValidationService extends PoDynamicFormOperation {
|
|
|
29518
29580
|
type: Injectable
|
|
29519
29581
|
}], function () { return [{ type: i1$2.HttpClient }]; }, null); })();
|
|
29520
29582
|
|
|
29521
|
-
const _c0$
|
|
29583
|
+
const _c0$N = ["fieldsComponent"];
|
|
29522
29584
|
const _c1$j = ["dynamicForm"];
|
|
29523
29585
|
function PoDynamicFormComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
29524
29586
|
i0.ɵɵelementContainer(0);
|
|
@@ -29694,7 +29756,7 @@ class PoDynamicFormComponent extends PoDynamicFormBaseComponent {
|
|
|
29694
29756
|
}
|
|
29695
29757
|
static ɵfac = function PoDynamicFormComponent_Factory(t) { return new (t || PoDynamicFormComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PoDynamicFormLoadService), i0.ɵɵdirectiveInject(PoDynamicFormValidationService)); };
|
|
29696
29758
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDynamicFormComponent, selectors: [["po-dynamic-form"]], viewQuery: function PoDynamicFormComponent_Query(rf, ctx) { if (rf & 1) {
|
|
29697
|
-
i0.ɵɵviewQuery(_c0$
|
|
29759
|
+
i0.ɵɵviewQuery(_c0$N, 5);
|
|
29698
29760
|
i0.ɵɵviewQuery(_c1$j, 5);
|
|
29699
29761
|
} if (rf & 2) {
|
|
29700
29762
|
let _t;
|
|
@@ -29721,7 +29783,7 @@ class PoDynamicFormComponent extends PoDynamicFormBaseComponent {
|
|
|
29721
29783
|
args: ['dynamicForm']
|
|
29722
29784
|
}] }); })();
|
|
29723
29785
|
|
|
29724
|
-
const _c0$
|
|
29786
|
+
const _c0$M = ["inpsearch"];
|
|
29725
29787
|
const _c1$i = ["container"];
|
|
29726
29788
|
function PoLookupModalComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
29727
29789
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
@@ -29852,13 +29914,13 @@ class PoLookupModalComponent extends PoLookupModalBaseComponent {
|
|
|
29852
29914
|
}
|
|
29853
29915
|
static ɵfac = function PoLookupModalComponent_Factory(t) { return new (t || PoLookupModalComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
29854
29916
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoLookupModalComponent, selectors: [["po-lookup-modal"]], viewQuery: function PoLookupModalComponent_Query(rf, ctx) { if (rf & 1) {
|
|
29855
|
-
i0.ɵɵviewQuery(_c0$
|
|
29917
|
+
i0.ɵɵviewQuery(_c0$M, 5);
|
|
29856
29918
|
i0.ɵɵviewQuery(_c1$i, 5, ViewContainerRef);
|
|
29857
29919
|
} if (rf & 2) {
|
|
29858
29920
|
let _t;
|
|
29859
29921
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputSearchEl = _t.first);
|
|
29860
29922
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
|
|
29861
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 18, vars:
|
|
29923
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 18, vars: 25, consts: [["p-click-out", "false", "p-hide-close", "false", "p-size", "lg", 3, "p-primary-action", "p-secondary-action", "p-title"], [3, "hidden"], [1, "po-lookup-header", "po-pull-right", 3, "p-optional"], [1, "po-lookup-filter-content"], [1, "po-field-icon-container-right"], [1, "po-icon", "po-field-icon", "po-icon-search", "po-icon-input", 3, "click"], ["iconLookup", ""], ["name", "contentSearch", "type", "text", 1, "po-input", "po-input-icon-right", 3, "ngModel", "placeholder", "ngModelChange"], ["inpsearch", ""], ["class", "po-lookup-advanced-search", 4, "ngIf"], ["class", "po-md-12", 3, "p-disclaimers", "p-title", "p-change", 4, "ngIf"], [1, "po-row", "po-lookup-container-table"], [1, "po-md-12", 3, "p-selectable", "p-hide-detail", "p-single-select", "p-hide-action-fixed-columns", "p-sort", "p-columns", "p-height", "p-hide-columns-manager", "p-items", "p-literals", "p-loading", "p-show-more-disabled", "p-infinite-scroll", "p-selected", "p-unselected", "p-all-selected", "p-all-unselected", "p-show-more", "p-sort-by", "p-change-visible-columns", "p-restore-column-manager"], ["poTable", ""], ["class", "po-md-12", 3, "p-disclaimers", "p-remove", "p-remove-all", 4, "ngIf"], ["container", ""], [1, "po-lookup-advanced-search"], ["tabindex", "0", 1, "po-lookup-advanced-search-link", "po-icon-input", 3, "click", "keydown.enter"], [1, "po-md-12", 3, "p-disclaimers", "p-title", "p-change"], [1, "po-md-12", 3, "p-disclaimers", "p-remove", "p-remove-all"]], template: function PoLookupModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29862
29924
|
i0.ɵɵelementStart(0, "po-modal", 0)(1, "div", 1)(2, "po-field-container", 2)(3, "div", 3)(4, "div", 4)(5, "span", 5, 6);
|
|
29863
29925
|
i0.ɵɵlistener("click", function PoLookupModalComponent_Template_span_click_5_listener() { return ctx.search(); });
|
|
29864
29926
|
i0.ɵɵelementEnd()();
|
|
@@ -29891,7 +29953,7 @@ class PoLookupModalComponent extends PoLookupModalBaseComponent {
|
|
|
29891
29953
|
i0.ɵɵadvance(1);
|
|
29892
29954
|
i0.ɵɵattribute("data-multiple", ctx.multiple);
|
|
29893
29955
|
i0.ɵɵadvance(1);
|
|
29894
|
-
i0.ɵɵproperty("p-selectable", true)("p-hide-detail", true)("p-single-select", !ctx.multiple)("p-hide-action-fixed-columns", true)("p-sort", true)("p-
|
|
29956
|
+
i0.ɵɵproperty("p-selectable", true)("p-hide-detail", true)("p-single-select", !ctx.multiple)("p-hide-action-fixed-columns", true)("p-sort", true)("p-columns", ctx.columns)("p-height", ctx.tableHeight)("p-hide-columns-manager", ctx.hideColumnsManager)("p-items", ctx.items)("p-literals", ctx.tableLiterals)("p-loading", ctx.isLoading)("p-show-more-disabled", !ctx.hasNext)("p-infinite-scroll", ctx.infiniteScroll);
|
|
29895
29957
|
i0.ɵɵadvance(2);
|
|
29896
29958
|
i0.ɵɵproperty("ngIf", ctx.multiple);
|
|
29897
29959
|
i0.ɵɵadvance(1);
|
|
@@ -29900,7 +29962,7 @@ class PoLookupModalComponent extends PoLookupModalBaseComponent {
|
|
|
29900
29962
|
}
|
|
29901
29963
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoLookupModalComponent, [{
|
|
29902
29964
|
type: Component,
|
|
29903
|
-
args: [{ selector: 'po-lookup-modal', changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-modal\n p-click-out=\"false\"\n p-hide-close=\"false\"\n p-size=\"lg\"\n [p-primary-action]=\"isAdvancedFilter ? primaryActionAdvancedFilter : primaryAction\"\n [p-secondary-action]=\"isAdvancedFilter ? secondaryActionAdvancedFilter : secondaryAction\"\n [p-title]=\"isAdvancedFilter ? advancedFilterModalTitle : title\"\n>\n <div [hidden]=\"isAdvancedFilter\">\n <po-field-container class=\"po-lookup-header po-pull-right\" [p-optional]=\"false\">\n <div class=\"po-lookup-filter-content\">\n <div class=\"po-field-icon-container-right\">\n <span #iconLookup class=\"po-icon po-field-icon po-icon-search po-icon-input\" (click)=\"search()\"> </span>\n </div>\n\n <input\n #inpsearch\n class=\"po-input po-input-icon-right\"\n name=\"contentSearch\"\n [(ngModel)]=\"searchValue\"\n [placeholder]=\"literals.modalPlaceholder\"\n type=\"text\"\n />\n </div>\n\n <div *ngIf=\"advancedFilters && advancedFilters.length > 0\" class=\"po-lookup-advanced-search\">\n <span\n class=\"po-lookup-advanced-search-link po-icon-input\"\n tabindex=\"0\"\n (click)=\"onAdvancedFilter()\"\n (keydown.enter)=\"onAdvancedFilter()\"\n >\n {{ literals.modalAdvancedSearch }}\n </span>\n </div>\n </po-field-container>\n\n <!-- DISCLAIMER -->\n <po-disclaimer-group\n *ngIf=\"!!disclaimerGroup\"\n class=\"po-md-12\"\n [p-disclaimers]=\"disclaimerGroup?.disclaimers\"\n [p-title]=\"disclaimerGroup?.title\"\n (p-change)=\"onChangeDisclaimerGroup()\"\n >\n </po-disclaimer-group>\n\n <div class=\"po-row po-lookup-container-table\" [attr.data-multiple]=\"multiple\">\n <po-table\n #poTable\n class=\"po-md-12\"\n [p-selectable]=\"true\"\n [p-hide-detail]=\"true\"\n [p-single-select]=\"!multiple\"\n [p-hide-action-fixed-columns]=\"true\"\n [p-sort]=\"true\"\n [p-
|
|
29965
|
+
args: [{ selector: 'po-lookup-modal', changeDetection: ChangeDetectionStrategy.OnPush, template: "<po-modal\n p-click-out=\"false\"\n p-hide-close=\"false\"\n p-size=\"lg\"\n [p-primary-action]=\"isAdvancedFilter ? primaryActionAdvancedFilter : primaryAction\"\n [p-secondary-action]=\"isAdvancedFilter ? secondaryActionAdvancedFilter : secondaryAction\"\n [p-title]=\"isAdvancedFilter ? advancedFilterModalTitle : title\"\n>\n <div [hidden]=\"isAdvancedFilter\">\n <po-field-container class=\"po-lookup-header po-pull-right\" [p-optional]=\"false\">\n <div class=\"po-lookup-filter-content\">\n <div class=\"po-field-icon-container-right\">\n <span #iconLookup class=\"po-icon po-field-icon po-icon-search po-icon-input\" (click)=\"search()\"> </span>\n </div>\n\n <input\n #inpsearch\n class=\"po-input po-input-icon-right\"\n name=\"contentSearch\"\n [(ngModel)]=\"searchValue\"\n [placeholder]=\"literals.modalPlaceholder\"\n type=\"text\"\n />\n </div>\n\n <div *ngIf=\"advancedFilters && advancedFilters.length > 0\" class=\"po-lookup-advanced-search\">\n <span\n class=\"po-lookup-advanced-search-link po-icon-input\"\n tabindex=\"0\"\n (click)=\"onAdvancedFilter()\"\n (keydown.enter)=\"onAdvancedFilter()\"\n >\n {{ literals.modalAdvancedSearch }}\n </span>\n </div>\n </po-field-container>\n\n <!-- DISCLAIMER -->\n <po-disclaimer-group\n *ngIf=\"!!disclaimerGroup\"\n class=\"po-md-12\"\n [p-disclaimers]=\"disclaimerGroup?.disclaimers\"\n [p-title]=\"disclaimerGroup?.title\"\n (p-change)=\"onChangeDisclaimerGroup()\"\n >\n </po-disclaimer-group>\n\n <div class=\"po-row po-lookup-container-table\" [attr.data-multiple]=\"multiple\">\n <po-table\n #poTable\n class=\"po-md-12\"\n [p-selectable]=\"true\"\n [p-hide-detail]=\"true\"\n [p-single-select]=\"!multiple\"\n [p-hide-action-fixed-columns]=\"true\"\n [p-sort]=\"true\"\n [p-columns]=\"columns\"\n [p-height]=\"tableHeight\"\n [p-hide-columns-manager]=\"hideColumnsManager\"\n [p-items]=\"items\"\n [p-literals]=\"tableLiterals\"\n [p-loading]=\"isLoading\"\n [p-show-more-disabled]=\"!hasNext\"\n [p-infinite-scroll]=\"infiniteScroll\"\n (p-selected)=\"onSelect($event)\"\n (p-unselected)=\"onUnselect($event)\"\n (p-all-selected)=\"onAllSelected($event)\"\n (p-all-unselected)=\"onAllUnselected($event)\"\n (p-show-more)=\"showMoreEvent()\"\n (p-sort-by)=\"sortBy($event)\"\n (p-change-visible-columns)=\"changeVisibleColumns.emit($event)\"\n (p-restore-column-manager)=\"columnRestoreManager.emit($event)\"\n >\n </po-table>\n </div>\n\n <!-- DISCLAIMER -->\n <po-disclaimer-group\n *ngIf=\"multiple\"\n class=\"po-md-12\"\n [p-disclaimers]=\"selecteds\"\n (p-remove)=\"onUnselectFromDisclaimer($event.removedDisclaimer)\"\n (p-remove-all)=\"onAllUnselected($event)\"\n >\n </po-disclaimer-group>\n </div>\n <div [hidden]=\"!isAdvancedFilter\">\n <ng-container #container> </ng-container>\n </div>\n</po-modal>\n" }]
|
|
29904
29966
|
}], function () { return [{ type: i0.ComponentFactoryResolver }, { type: PoLanguageService }, { type: i0.ChangeDetectorRef }]; }, { inputSearchEl: [{
|
|
29905
29967
|
type: ViewChild,
|
|
29906
29968
|
args: ['inpsearch']
|
|
@@ -30738,7 +30800,7 @@ class PoLookupBaseComponent {
|
|
|
30738
30800
|
args: ['p-disabled']
|
|
30739
30801
|
}] }); })();
|
|
30740
30802
|
|
|
30741
|
-
const _c0$
|
|
30803
|
+
const _c0$L = ["inp"];
|
|
30742
30804
|
function PoLookupComponent_div_1_po_clean_4_Template(rf, ctx) { if (rf & 1) {
|
|
30743
30805
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
30744
30806
|
i0.ɵɵelementStart(0, "po-clean", 11);
|
|
@@ -31138,7 +31200,7 @@ class PoLookupComponent extends PoLookupBaseComponent {
|
|
|
31138
31200
|
}
|
|
31139
31201
|
static ɵfac = function PoLookupComponent_Factory(t) { return new (t || PoLookupComponent)(i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(PoLookupFilterService), i0.ɵɵdirectiveInject(PoLookupModalService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.Injector)); };
|
|
31140
31202
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoLookupComponent, selectors: [["po-lookup"]], viewQuery: function PoLookupComponent_Query(rf, ctx) { if (rf & 1) {
|
|
31141
|
-
i0.ɵɵviewQuery(_c0$
|
|
31203
|
+
i0.ɵɵviewQuery(_c0$L, 5, ElementRef);
|
|
31142
31204
|
} if (rf & 2) {
|
|
31143
31205
|
let _t;
|
|
31144
31206
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputEl = _t.first);
|
|
@@ -31236,22 +31298,26 @@ const poMultiselectLiteralsDefault = {
|
|
|
31236
31298
|
en: {
|
|
31237
31299
|
noData: 'No data found',
|
|
31238
31300
|
placeholderSearch: 'Search',
|
|
31239
|
-
selectAll: 'Select all'
|
|
31301
|
+
selectAll: 'Select all',
|
|
31302
|
+
selectItem: 'Select items'
|
|
31240
31303
|
},
|
|
31241
31304
|
es: {
|
|
31242
31305
|
noData: 'Datos no encontrados',
|
|
31243
31306
|
placeholderSearch: 'Busca',
|
|
31244
|
-
selectAll: 'Seleccionar todo'
|
|
31307
|
+
selectAll: 'Seleccionar todo',
|
|
31308
|
+
selectItem: 'Seleccionar items'
|
|
31245
31309
|
},
|
|
31246
31310
|
pt: {
|
|
31247
31311
|
noData: 'Nenhum dado encontrado',
|
|
31248
31312
|
placeholderSearch: 'Buscar',
|
|
31249
|
-
selectAll: 'Selecionar todos'
|
|
31313
|
+
selectAll: 'Selecionar todos',
|
|
31314
|
+
selectItem: 'Selecionar itens'
|
|
31250
31315
|
},
|
|
31251
31316
|
ru: {
|
|
31252
31317
|
noData: 'Данные не найдены',
|
|
31253
31318
|
placeholderSearch: 'искать',
|
|
31254
|
-
selectAll: 'Выбрать все'
|
|
31319
|
+
selectAll: 'Выбрать все',
|
|
31320
|
+
selectItem: 'Выбрать элементы'
|
|
31255
31321
|
}
|
|
31256
31322
|
};
|
|
31257
31323
|
/**
|
|
@@ -31267,6 +31333,23 @@ const poMultiselectLiteralsDefault = {
|
|
|
31267
31333
|
* po-select, po-combo ou po-radio-group.
|
|
31268
31334
|
*
|
|
31269
31335
|
* Com ele também é possível definir uma lista à partir da requisição de um serviço definido em `p-filter-service`.
|
|
31336
|
+
*
|
|
31337
|
+
* #### Boas práticas
|
|
31338
|
+
*
|
|
31339
|
+
* - Caso a lista apresente menos de 5 itens, considere utilizar outro componente;
|
|
31340
|
+
* - Não utilize o multiselect caso o usuário possa selecionar apenas uma opção. Para esse caso, opte por utilizar po-radio ou po-select;
|
|
31341
|
+
* - Sempre que possível, agrupe as opções e use labels curtas para descrever o conteúdo. Exemplo: em uma combinação de alimentos,
|
|
31342
|
+
* as opções podem ser agrupadas por Vegetais, Frutas, etc;
|
|
31343
|
+
*
|
|
31344
|
+
* #### Acessibilidade tratada no componente
|
|
31345
|
+
*
|
|
31346
|
+
* Algumas diretrizes de acessibilidade já são tratadas no componente internamente, e não podem ser alteradas pelo proprietário do conteúdo. São elas:
|
|
31347
|
+
*
|
|
31348
|
+
* - Quando em foco, o multiselect abre o listbox usando as teclas de Espaço ou Enter do teclado.
|
|
31349
|
+
* - Utilize as teclas Arrow Up [seta para cima] ou Arrow Down [seta para baixo] do teclado para navegar entre os itens do listbox.
|
|
31350
|
+
* - Utilize a tecla Esc do teclado para fechar o listbox.
|
|
31351
|
+
* - Quando um item estiver em foco, utilize as teclas Arrow Right [seta para direita] ou Arrow Left [seta para esquerda] do teclado para navegar entre eles.
|
|
31352
|
+
* - Quando em foco e havendo um item ou mais já selecionado, utilize a tecla Arrow Down [seta para baixo] do teclado para abrir o listbox.
|
|
31270
31353
|
*/
|
|
31271
31354
|
class PoMultiselectBaseComponent {
|
|
31272
31355
|
/**
|
|
@@ -31346,7 +31429,7 @@ class PoMultiselectBaseComponent {
|
|
|
31346
31429
|
appendBox = false;
|
|
31347
31430
|
selectedOptions = [];
|
|
31348
31431
|
visibleOptionsDropdown = [];
|
|
31349
|
-
|
|
31432
|
+
visibleTags = [];
|
|
31350
31433
|
isServerSearching = false;
|
|
31351
31434
|
isFirstFilter = true;
|
|
31352
31435
|
filterSubject = new Subject();
|
|
@@ -31459,7 +31542,9 @@ class PoMultiselectBaseComponent {
|
|
|
31459
31542
|
* ```
|
|
31460
31543
|
* const customLiterals: PoMultiselectLiterals = {
|
|
31461
31544
|
* noData: 'Nenhum dado encontrado',
|
|
31462
|
-
* placeholderSearch: 'Buscar'
|
|
31545
|
+
* placeholderSearch: 'Buscar',
|
|
31546
|
+
* selectAll: 'Select all',
|
|
31547
|
+
* selectItem: 'Select items'
|
|
31463
31548
|
* };
|
|
31464
31549
|
* ```
|
|
31465
31550
|
*
|
|
@@ -31968,7 +32053,7 @@ class PoMultiselectFilterService {
|
|
|
31968
32053
|
type: Injectable
|
|
31969
32054
|
}], function () { return [{ type: i1$2.HttpClient }]; }, null); })();
|
|
31970
32055
|
|
|
31971
|
-
const _c0$
|
|
32056
|
+
const _c0$K = ["dropdownElement"];
|
|
31972
32057
|
const _c1$h = ["iconElement"];
|
|
31973
32058
|
const _c2$6 = ["inputElement"];
|
|
31974
32059
|
function PoMultiselectComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -31978,18 +32063,19 @@ function PoMultiselectComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
31978
32063
|
} if (rf & 2) {
|
|
31979
32064
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
31980
32065
|
i0.ɵɵadvance(1);
|
|
31981
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r2.placeholder, " ");
|
|
32066
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.placeholder ? ctx_r2.placeholder : ctx_r2.literals.selectItem, " ");
|
|
31982
32067
|
} }
|
|
31983
|
-
function
|
|
31984
|
-
const
|
|
31985
|
-
i0.ɵɵelementStart(0, "po-
|
|
31986
|
-
i0.ɵɵlistener("
|
|
32068
|
+
function PoMultiselectComponent_po_tag_6_Template(rf, ctx) { if (rf & 1) {
|
|
32069
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
32070
|
+
i0.ɵɵelementStart(0, "po-tag", 16);
|
|
32071
|
+
i0.ɵɵlistener("p-close", function PoMultiselectComponent_po_tag_6_Template_po_tag_p_close_0_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r15); const tag_r12 = restoredCtx.$implicit; const ctx_r14 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r14.closeTag(tag_r12[ctx_r14.fieldValue], $event)); });
|
|
31987
32072
|
i0.ɵɵelementEnd();
|
|
31988
32073
|
} if (rf & 2) {
|
|
31989
|
-
const
|
|
32074
|
+
const tag_r12 = ctx.$implicit;
|
|
32075
|
+
const i_r13 = ctx.index;
|
|
31990
32076
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
31991
|
-
i0.ɵɵclassProp("po-clickable",
|
|
31992
|
-
i0.ɵɵproperty("p-
|
|
32077
|
+
i0.ɵɵclassProp("po-clickable", tag_r12[ctx_r3.fieldValue] === "" && !ctx_r3.disabled);
|
|
32078
|
+
i0.ɵɵproperty("p-value", tag_r12[ctx_r3.fieldLabel])("p-literals", i_r13 + 1 === ctx_r3.visibleTags.length && ctx_r3.hasMoreTag ? ctx_r3.literalsTag : undefined)("p-removable", true)("p-disabled", ctx_r3.disabled);
|
|
31993
32079
|
} }
|
|
31994
32080
|
function PoMultiselectComponent_ng_container_10_Template(rf, ctx) { if (rf & 1) {
|
|
31995
32081
|
i0.ɵɵelementContainer(0);
|
|
@@ -32024,7 +32110,7 @@ function PoMultiselectComponent_ng_template_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
32024
32110
|
function PoMultiselectComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
|
|
32025
32111
|
const _r21 = i0.ɵɵgetCurrentView();
|
|
32026
32112
|
i0.ɵɵelementStart(0, "po-multiselect-dropdown", 19, 20);
|
|
32027
|
-
i0.ɵɵlistener("p-change", function PoMultiselectComponent_ng_template_16_Template_po_multiselect_dropdown_p_change_0_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r20 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r20.changeItems($event)); })("p-change-search", function PoMultiselectComponent_ng_template_16_Template_po_multiselect_dropdown_p_change_search_0_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r22 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r22.changeSearch($event)); })("p-close-dropdown", function PoMultiselectComponent_ng_template_16_Template_po_multiselect_dropdown_p_close_dropdown_0_listener() { i0.ɵɵrestoreView(_r21); const ctx_r23 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r23.controlDropdownVisibility(false)); });
|
|
32113
|
+
i0.ɵɵlistener("p-change", function PoMultiselectComponent_ng_template_16_Template_po_multiselect_dropdown_p_change_0_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r20 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r20.changeItems($event)); })("p-change-search", function PoMultiselectComponent_ng_template_16_Template_po_multiselect_dropdown_p_change_search_0_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r22 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r22.changeSearch($event)); })("p-close-dropdown", function PoMultiselectComponent_ng_template_16_Template_po_multiselect_dropdown_p_close_dropdown_0_listener() { i0.ɵɵrestoreView(_r21); const ctx_r23 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r23.controlDropdownVisibility(false)); })("keydown", function PoMultiselectComponent_ng_template_16_Template_po_multiselect_dropdown_keydown_0_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r24 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r24.onKeyDownDropdown($event, 0)); });
|
|
32028
32114
|
i0.ɵɵelementEnd();
|
|
32029
32115
|
} if (rf & 2) {
|
|
32030
32116
|
const ctx_r11 = i0.ɵɵnextContext();
|
|
@@ -32032,6 +32118,22 @@ function PoMultiselectComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
|
|
|
32032
32118
|
} }
|
|
32033
32119
|
const poMultiselectContainerOffset = 8;
|
|
32034
32120
|
const poMultiselectContainerPositionDefault = 'bottom';
|
|
32121
|
+
const poMultiselectInputPaddingRight = 52;
|
|
32122
|
+
const poMultiselectSpaceBetweenTags = 8;
|
|
32123
|
+
const literalsTagRemoveOthers = {
|
|
32124
|
+
pt: {
|
|
32125
|
+
remove: 'Remover todos os itens selecionados'
|
|
32126
|
+
},
|
|
32127
|
+
ru: {
|
|
32128
|
+
remove: 'Удалить все выбранные элементы'
|
|
32129
|
+
},
|
|
32130
|
+
es: {
|
|
32131
|
+
remove: 'Eliminar todos los elementos seleccionados'
|
|
32132
|
+
},
|
|
32133
|
+
en: {
|
|
32134
|
+
remove: 'Clear all selected items'
|
|
32135
|
+
}
|
|
32136
|
+
};
|
|
32035
32137
|
/* istanbul ignore next */
|
|
32036
32138
|
const providers$1 = [
|
|
32037
32139
|
PoMultiselectFilterService,
|
|
@@ -32102,13 +32204,16 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
32102
32204
|
dropdown;
|
|
32103
32205
|
iconElement;
|
|
32104
32206
|
inputElement;
|
|
32105
|
-
|
|
32207
|
+
literalsTag;
|
|
32106
32208
|
dropdownIcon = 'po-icon-arrow-down';
|
|
32107
32209
|
dropdownOpen = false;
|
|
32108
32210
|
initialized = false;
|
|
32109
|
-
|
|
32211
|
+
hasMoreTag;
|
|
32110
32212
|
timeoutResize;
|
|
32111
32213
|
visibleElement = false;
|
|
32214
|
+
subscription = new Subscription();
|
|
32215
|
+
enterCloseTag = false;
|
|
32216
|
+
initCalculateItems = true;
|
|
32112
32217
|
isCalculateVisibleItems = true;
|
|
32113
32218
|
cacheOptions;
|
|
32114
32219
|
constructor(renderer, changeDetector, el, controlPosition, defaultService, languageService) {
|
|
@@ -32118,6 +32223,11 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
32118
32223
|
this.el = el;
|
|
32119
32224
|
this.controlPosition = controlPosition;
|
|
32120
32225
|
this.defaultService = defaultService;
|
|
32226
|
+
const language = languageService.getShortLanguage();
|
|
32227
|
+
this.literalsTag = {
|
|
32228
|
+
...literalsTagRemoveOthers[poLocaleDefault],
|
|
32229
|
+
...literalsTagRemoveOthers[language]
|
|
32230
|
+
};
|
|
32121
32231
|
}
|
|
32122
32232
|
ngAfterViewInit() {
|
|
32123
32233
|
if (this.autoFocus) {
|
|
@@ -32132,7 +32242,7 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
32132
32242
|
}
|
|
32133
32243
|
ngDoCheck() {
|
|
32134
32244
|
const inputWidth = this.inputElement.nativeElement.offsetWidth;
|
|
32135
|
-
// Permite que
|
|
32245
|
+
// Permite que as tags sejam calculadas na primeira vez que o componente torna-se visível,
|
|
32136
32246
|
// evitando com isso, problemas com Tabs ou Divs que iniciem escondidas.
|
|
32137
32247
|
if ((inputWidth && !this.visibleElement && this.initialized) || (inputWidth && this.isCalculateVisibleItems)) {
|
|
32138
32248
|
this.debounceResize();
|
|
@@ -32143,6 +32253,7 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
32143
32253
|
this.removeListeners();
|
|
32144
32254
|
this.getObjectsByValuesSubscription?.unsubscribe();
|
|
32145
32255
|
this.filterSubject?.unsubscribe();
|
|
32256
|
+
this.subscription.unsubscribe();
|
|
32146
32257
|
}
|
|
32147
32258
|
/**
|
|
32148
32259
|
* Função que atribui foco ao componente.
|
|
@@ -32167,46 +32278,54 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
32167
32278
|
}
|
|
32168
32279
|
}
|
|
32169
32280
|
getInputWidth() {
|
|
32170
|
-
return this.el.nativeElement.querySelector('.po-input').offsetWidth -
|
|
32281
|
+
return this.el.nativeElement.querySelector('.po-multiselect-input').offsetWidth - poMultiselectInputPaddingRight;
|
|
32171
32282
|
}
|
|
32172
|
-
|
|
32173
|
-
const
|
|
32174
|
-
return Array.from(
|
|
32283
|
+
getTagsWidth() {
|
|
32284
|
+
const tags = this.el.nativeElement.querySelectorAll('po-tag');
|
|
32285
|
+
return Array.from(tags).map(tag => tag['offsetWidth']);
|
|
32175
32286
|
}
|
|
32176
32287
|
calculateVisibleItems() {
|
|
32177
|
-
|
|
32288
|
+
this.hasMoreTag = false;
|
|
32289
|
+
const tagsWidth = this.getTagsWidth();
|
|
32178
32290
|
const inputWidth = this.getInputWidth();
|
|
32179
|
-
const
|
|
32180
|
-
const
|
|
32181
|
-
this.
|
|
32291
|
+
const extraTagSize = 63;
|
|
32292
|
+
const tagsVisible = tagsWidth[0];
|
|
32293
|
+
this.visibleTags = [];
|
|
32182
32294
|
if (inputWidth > 0) {
|
|
32183
32295
|
let sum = 0;
|
|
32184
32296
|
let i = 0;
|
|
32185
32297
|
for (i = 0; i < this.selectedOptions.length; i++) {
|
|
32186
|
-
sum +=
|
|
32187
|
-
this.
|
|
32298
|
+
sum += tagsWidth[i] + poMultiselectSpaceBetweenTags;
|
|
32299
|
+
this.visibleTags.push(this.selectedOptions[i]);
|
|
32188
32300
|
if (sum > inputWidth) {
|
|
32189
|
-
sum -=
|
|
32301
|
+
sum -= tagsWidth[i];
|
|
32190
32302
|
this.isCalculateVisibleItems = false;
|
|
32191
32303
|
break;
|
|
32192
32304
|
}
|
|
32193
32305
|
}
|
|
32194
|
-
if (
|
|
32306
|
+
if (tagsVisible || !this.selectedOptions.length) {
|
|
32195
32307
|
if (i === this.selectedOptions.length) {
|
|
32196
32308
|
this.isCalculateVisibleItems = false;
|
|
32197
32309
|
return;
|
|
32198
32310
|
}
|
|
32199
|
-
|
|
32200
|
-
|
|
32311
|
+
this.hasMoreTag = true;
|
|
32312
|
+
if (sum + extraTagSize > inputWidth) {
|
|
32313
|
+
this.visibleTags.splice(-2, 2);
|
|
32201
32314
|
const label = '+' + (this.selectedOptions.length + 1 - i).toString();
|
|
32202
|
-
this.
|
|
32315
|
+
this.visibleTags.push({ [this.fieldValue]: '', [this.fieldLabel]: label });
|
|
32203
32316
|
}
|
|
32204
32317
|
else {
|
|
32205
|
-
this.
|
|
32318
|
+
this.visibleTags.splice(-1, 1);
|
|
32206
32319
|
const label = '+' + (this.selectedOptions.length - i).toString();
|
|
32207
|
-
this.
|
|
32320
|
+
this.visibleTags.push({ [this.fieldValue]: '', [this.fieldLabel]: label });
|
|
32208
32321
|
}
|
|
32209
32322
|
}
|
|
32323
|
+
if (this.initCalculateItems) {
|
|
32324
|
+
setTimeout(() => {
|
|
32325
|
+
this.handleKeyboardNavigationTag();
|
|
32326
|
+
}, 300);
|
|
32327
|
+
}
|
|
32328
|
+
this.initCalculateItems = false;
|
|
32210
32329
|
}
|
|
32211
32330
|
this.changeDetector.markForCheck();
|
|
32212
32331
|
}
|
|
@@ -32217,10 +32336,13 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
32217
32336
|
this.changeDetector.detectChanges();
|
|
32218
32337
|
this.adjustContainerPosition();
|
|
32219
32338
|
}
|
|
32339
|
+
setTimeout(() => {
|
|
32340
|
+
this.handleKeyboardNavigationTag();
|
|
32341
|
+
}, 300);
|
|
32220
32342
|
}
|
|
32221
32343
|
updateVisibleItems() {
|
|
32222
32344
|
if (this.selectedOptions) {
|
|
32223
|
-
this.
|
|
32345
|
+
this.visibleTags = [].concat(this.selectedOptions);
|
|
32224
32346
|
}
|
|
32225
32347
|
this.debounceResize();
|
|
32226
32348
|
// quando estiver dentro de modal
|
|
@@ -32238,17 +32360,45 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
32238
32360
|
this.changeDetector.markForCheck();
|
|
32239
32361
|
}
|
|
32240
32362
|
onBlur() {
|
|
32363
|
+
if (typeof this.inputElement.nativeElement.getAttribute('aria-label') === 'string' &&
|
|
32364
|
+
this.inputElement.nativeElement.getAttribute('aria-label').includes('Unselected')) {
|
|
32365
|
+
this.inputElement.nativeElement.setAttribute('aria-label', this.label ? this.label : '');
|
|
32366
|
+
}
|
|
32241
32367
|
this.onModelTouched?.();
|
|
32242
32368
|
}
|
|
32243
32369
|
onKeyDown(event) {
|
|
32244
|
-
if (event.keyCode === PoKeyCodeEnum.
|
|
32370
|
+
if ((event.keyCode === PoKeyCodeEnum.tab && this.visibleTags.length > 1) ||
|
|
32371
|
+
(event.keyCode === PoKeyCodeEnum.tab && this.visibleTags.length < 1)) {
|
|
32372
|
+
return;
|
|
32373
|
+
}
|
|
32374
|
+
if (event.keyCode === PoKeyCodeEnum.esc) {
|
|
32375
|
+
event.preventDefault();
|
|
32376
|
+
this.controlDropdownVisibility(false);
|
|
32377
|
+
return;
|
|
32378
|
+
}
|
|
32379
|
+
if (event.keyCode === PoKeyCodeEnum.arrowDown && this.visibleTags.length > 0) {
|
|
32245
32380
|
event.preventDefault();
|
|
32246
32381
|
this.controlDropdownVisibility(true);
|
|
32382
|
+
this.dropdown?.listbox?.setFocus();
|
|
32247
32383
|
return;
|
|
32248
32384
|
}
|
|
32249
|
-
if (event.keyCode === PoKeyCodeEnum.
|
|
32250
|
-
this.
|
|
32385
|
+
if (event.keyCode === PoKeyCodeEnum.enter && !this.enterCloseTag) {
|
|
32386
|
+
if (this.visibleTags.length === 0) {
|
|
32387
|
+
this.toggleDropdownVisibility();
|
|
32388
|
+
this.focus();
|
|
32389
|
+
return;
|
|
32390
|
+
}
|
|
32391
|
+
else {
|
|
32392
|
+
event.preventDefault();
|
|
32393
|
+
this.toggleDropdownVisibility();
|
|
32394
|
+
return;
|
|
32395
|
+
}
|
|
32251
32396
|
}
|
|
32397
|
+
if (event.keyCode === PoKeyCodeEnum.space) {
|
|
32398
|
+
event.preventDefault();
|
|
32399
|
+
this.toggleDropdownVisibility();
|
|
32400
|
+
}
|
|
32401
|
+
this.enterCloseTag = false;
|
|
32252
32402
|
}
|
|
32253
32403
|
toggleDropdownVisibility() {
|
|
32254
32404
|
if (this.disabled) {
|
|
@@ -32259,6 +32409,13 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
32259
32409
|
}
|
|
32260
32410
|
this.controlDropdownVisibility(!this.dropdownOpen);
|
|
32261
32411
|
}
|
|
32412
|
+
onKeyDownDropdown(event, index) {
|
|
32413
|
+
if (event.key === 'Escape') {
|
|
32414
|
+
event.preventDefault();
|
|
32415
|
+
this.controlDropdownVisibility(false);
|
|
32416
|
+
this.inputElement.nativeElement.focus();
|
|
32417
|
+
}
|
|
32418
|
+
}
|
|
32262
32419
|
openDropdown(toOpen) {
|
|
32263
32420
|
if (toOpen && !this.disabled) {
|
|
32264
32421
|
this.controlDropdownVisibility(true);
|
|
@@ -32292,11 +32449,29 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
32292
32449
|
// timeout necessário para reposicionar corretamente quando dropdown estiver pra cima do input e realizar busca no input
|
|
32293
32450
|
setTimeout(() => this.adjustContainerPosition());
|
|
32294
32451
|
}
|
|
32295
|
-
|
|
32296
|
-
|
|
32297
|
-
this.
|
|
32298
|
-
|
|
32299
|
-
|
|
32452
|
+
closeTag(value, event) {
|
|
32453
|
+
let index;
|
|
32454
|
+
this.enterCloseTag = true;
|
|
32455
|
+
if (!value || (typeof value === 'string' && value.includes('+'))) {
|
|
32456
|
+
index = null;
|
|
32457
|
+
const itemsNotInVisibleTags = this.selectedOptions.filter(option => !this.visibleTags.includes(option));
|
|
32458
|
+
for (const option of this.visibleTags) {
|
|
32459
|
+
if (!this.selectedOptions.includes(option)) {
|
|
32460
|
+
this.selectedOptions.splice(this.visibleTags.length - 1, itemsNotInVisibleTags.length);
|
|
32461
|
+
this.updateVisibleItems();
|
|
32462
|
+
this.callOnChange(this.selectedOptions);
|
|
32463
|
+
}
|
|
32464
|
+
}
|
|
32465
|
+
}
|
|
32466
|
+
else {
|
|
32467
|
+
index = this.selectedOptions.findIndex(option => option[this.fieldValue] === value);
|
|
32468
|
+
this.selectedOptions.splice(index, 1);
|
|
32469
|
+
this.updateVisibleItems();
|
|
32470
|
+
this.callOnChange(this.selectedOptions);
|
|
32471
|
+
}
|
|
32472
|
+
setTimeout(() => {
|
|
32473
|
+
this.focusOnNextTag(index, event);
|
|
32474
|
+
}, 300);
|
|
32300
32475
|
}
|
|
32301
32476
|
wasClickedOnToggle(event) {
|
|
32302
32477
|
if (this.dropdownOpen &&
|
|
@@ -32345,6 +32520,84 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
32345
32520
|
this.setVisibleOptionsDropdown(this.options);
|
|
32346
32521
|
this.removeListeners();
|
|
32347
32522
|
}
|
|
32523
|
+
focusOnNextTag(indexClosed, clickOrEnter) {
|
|
32524
|
+
if (clickOrEnter === 'enter') {
|
|
32525
|
+
const tagRemoveElements = this.el.nativeElement.querySelectorAll('.po-tag-remove');
|
|
32526
|
+
indexClosed = indexClosed || indexClosed === 0 ? indexClosed : tagRemoveElements.length;
|
|
32527
|
+
if (tagRemoveElements.length === 0) {
|
|
32528
|
+
this.inputElement.nativeElement.focus();
|
|
32529
|
+
this.inputElement.nativeElement.setAttribute('aria-label', `Unselected items ${this.label}`);
|
|
32530
|
+
this.controlDropdownVisibility(true);
|
|
32531
|
+
}
|
|
32532
|
+
this.focusOnRemoveTag(tagRemoveElements, indexClosed);
|
|
32533
|
+
}
|
|
32534
|
+
else {
|
|
32535
|
+
indexClosed = 0;
|
|
32536
|
+
}
|
|
32537
|
+
this.handleKeyboardNavigationTag(indexClosed);
|
|
32538
|
+
}
|
|
32539
|
+
focusOnRemoveTag(tag, indexClosed) {
|
|
32540
|
+
if (tag.length === indexClosed) {
|
|
32541
|
+
tag[indexClosed - 1]?.focus();
|
|
32542
|
+
}
|
|
32543
|
+
else {
|
|
32544
|
+
tag[indexClosed]?.focus();
|
|
32545
|
+
}
|
|
32546
|
+
}
|
|
32547
|
+
handleKeyboardNavigationTag(initialIndex = 0) {
|
|
32548
|
+
this.subscription.unsubscribe();
|
|
32549
|
+
this.subscription = new Subscription();
|
|
32550
|
+
const tagRemoveElements = this.el.nativeElement.querySelectorAll('.po-tag-remove');
|
|
32551
|
+
this.initializeTagRemoveElements(tagRemoveElements, initialIndex);
|
|
32552
|
+
}
|
|
32553
|
+
setTabIndex(element, tabIndex) {
|
|
32554
|
+
element.setAttribute('tabindex', tabIndex);
|
|
32555
|
+
}
|
|
32556
|
+
handleArrowLeft(tagRemoveElements, index) {
|
|
32557
|
+
if (index > 0) {
|
|
32558
|
+
this.setTabIndex(tagRemoveElements[index], -1);
|
|
32559
|
+
tagRemoveElements[index - 1].focus();
|
|
32560
|
+
this.setTabIndex(tagRemoveElements[index - 1], 0);
|
|
32561
|
+
}
|
|
32562
|
+
}
|
|
32563
|
+
handleArrowRight(tagRemoveElements, index) {
|
|
32564
|
+
if (index < tagRemoveElements.length - 1) {
|
|
32565
|
+
this.setTabIndex(tagRemoveElements[index], -1);
|
|
32566
|
+
tagRemoveElements[index + 1].focus();
|
|
32567
|
+
this.setTabIndex(tagRemoveElements[index + 1], 0);
|
|
32568
|
+
}
|
|
32569
|
+
}
|
|
32570
|
+
handleKeyDown(event, tagRemoveElements, index) {
|
|
32571
|
+
const KEY_SPACE = 'Space';
|
|
32572
|
+
const KEY_ARROW_LEFT = 'ArrowLeft';
|
|
32573
|
+
const KEY_ARROW_RIGHT = 'ArrowRight';
|
|
32574
|
+
if (event.code === KEY_SPACE) {
|
|
32575
|
+
event.preventDefault();
|
|
32576
|
+
event.stopPropagation();
|
|
32577
|
+
}
|
|
32578
|
+
if (event.key === KEY_ARROW_LEFT) {
|
|
32579
|
+
this.handleArrowLeft(tagRemoveElements, index);
|
|
32580
|
+
}
|
|
32581
|
+
else if (event.key === KEY_ARROW_RIGHT) {
|
|
32582
|
+
this.handleArrowRight(tagRemoveElements, index);
|
|
32583
|
+
}
|
|
32584
|
+
}
|
|
32585
|
+
initializeTagRemoveElements(tagRemoveElements, initialIndex) {
|
|
32586
|
+
tagRemoveElements.forEach((tagRemoveElement, index) => {
|
|
32587
|
+
if (index === initialIndex) {
|
|
32588
|
+
this.setTabIndex(tagRemoveElements[initialIndex], 0);
|
|
32589
|
+
}
|
|
32590
|
+
else if (tagRemoveElements.length === initialIndex) {
|
|
32591
|
+
this.setTabIndex(tagRemoveElements[initialIndex - 1], 0);
|
|
32592
|
+
}
|
|
32593
|
+
else {
|
|
32594
|
+
this.setTabIndex(tagRemoveElement, -1);
|
|
32595
|
+
}
|
|
32596
|
+
this.subscription.add(fromEvent(tagRemoveElement, 'keydown').subscribe((event) => {
|
|
32597
|
+
this.handleKeyDown(event, tagRemoveElements, index);
|
|
32598
|
+
}));
|
|
32599
|
+
});
|
|
32600
|
+
}
|
|
32348
32601
|
initializeListeners() {
|
|
32349
32602
|
this.clickOutListener = this.renderer.listen('document', 'click', (event) => {
|
|
32350
32603
|
this.wasClickedOnToggle(event);
|
|
@@ -32389,8 +32642,8 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
32389
32642
|
let _t;
|
|
32390
32643
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.multiselectOptionTemplate = _t.first);
|
|
32391
32644
|
} }, viewQuery: function PoMultiselectComponent_Query(rf, ctx) { if (rf & 1) {
|
|
32392
|
-
i0.ɵɵviewQuery(_c0$
|
|
32393
|
-
i0.ɵɵviewQuery(_c0$
|
|
32645
|
+
i0.ɵɵviewQuery(_c0$K, 5, ElementRef);
|
|
32646
|
+
i0.ɵɵviewQuery(_c0$K, 5);
|
|
32394
32647
|
i0.ɵɵviewQuery(_c1$h, 7, ElementRef);
|
|
32395
32648
|
i0.ɵɵviewQuery(_c2$6, 7, ElementRef);
|
|
32396
32649
|
} if (rf & 2) {
|
|
@@ -32399,11 +32652,11 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
32399
32652
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dropdown = _t.first);
|
|
32400
32653
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.iconElement = _t.first);
|
|
32401
32654
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
|
|
32402
|
-
} }, features: [i0.ɵɵProvidersFeature(providers$1), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 18, vars:
|
|
32655
|
+
} }, features: [i0.ɵɵProvidersFeature(providers$1), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 18, vars: 30, consts: [[3, "p-disabled", "p-label", "p-optional", "p-required", "p-show-required"], ["cdkOverlayOrigin", "", 1, "po-field-container-content"], ["trigger", "cdkOverlayOrigin"], [1, "po-input-icon-right", "po-multiselect-input", 3, "tabindex", "keydown", "click", "blur"], ["inputElement", ""], ["class", "po-multiselect-input-placeholder", "aria-hidden", "true", 4, "ngIf"], [3, "p-value", "p-literals", "p-removable", "po-clickable", "p-disabled", "p-close", 4, "ngFor", "ngForOf"], [1, "po-field-icon-container-right"], [3, "ngClass"], ["iconElement", ""], [4, "ngIf", "ngIfThen", "ngIfElse"], ["dropdownDefault", ""], ["dropdownCDK", ""], [3, "p-help", "p-disabled"], ["dropdownListbox", ""], ["aria-hidden", "true", 1, "po-multiselect-input-placeholder"], [3, "p-value", "p-literals", "p-removable", "p-disabled", "p-close"], [4, "ngTemplateOutlet"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen"], [3, "p-searching", "p-hide-search", "p-hide-select-all", "p-literals", "p-options", "p-visible-options", "p-selected-options", "p-placeholder-search", "p-field-value", "p-field-label", "p-multiselect-template", "p-change", "p-change-search", "p-close-dropdown", "keydown"], ["dropdownElement", ""]], template: function PoMultiselectComponent_Template(rf, ctx) { if (rf & 1) {
|
|
32403
32656
|
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1, 2)(3, "div", 3, 4);
|
|
32404
|
-
i0.ɵɵlistener("
|
|
32657
|
+
i0.ɵɵlistener("keydown", function PoMultiselectComponent_Template_div_keydown_3_listener($event) { return ctx.onKeyDown($event); })("click", function PoMultiselectComponent_Template_div_click_3_listener() { return ctx.toggleDropdownVisibility(); })("blur", function PoMultiselectComponent_Template_div_blur_3_listener() { return ctx.onBlur(); });
|
|
32405
32658
|
i0.ɵɵtemplate(5, PoMultiselectComponent_span_5_Template, 2, 1, "span", 5);
|
|
32406
|
-
i0.ɵɵtemplate(6,
|
|
32659
|
+
i0.ɵɵtemplate(6, PoMultiselectComponent_po_tag_6_Template, 1, 6, "po-tag", 6);
|
|
32407
32660
|
i0.ɵɵelementStart(7, "div", 7);
|
|
32408
32661
|
i0.ɵɵelement(8, "span", 8, 9);
|
|
32409
32662
|
i0.ɵɵelementEnd()()();
|
|
@@ -32420,13 +32673,13 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
32420
32673
|
i0.ɵɵadvance(1);
|
|
32421
32674
|
i0.ɵɵclassProp("po-multiselect-show", ctx.dropdownOpen);
|
|
32422
32675
|
i0.ɵɵadvance(2);
|
|
32423
|
-
i0.ɵɵclassProp("po-multiselect-input-auto", ctx.autoHeight)("po-multiselect-input-static", !ctx.autoHeight)("po-multiselect-input-disabled", ctx.disabled);
|
|
32676
|
+
i0.ɵɵclassProp("po-multiselect-input-auto", ctx.autoHeight)("po-multiselect-input-static", !ctx.autoHeight)("po-multiselect-input-disabled", ctx.disabled)("po-multiselect-input-font", !ctx.disabled && !(ctx.visibleTags == null ? null : ctx.visibleTags.length));
|
|
32424
32677
|
i0.ɵɵproperty("tabindex", ctx.disabled ? -1 : 0);
|
|
32425
32678
|
i0.ɵɵattribute("disabled", ctx.disabled)("aria-label", ctx.label);
|
|
32426
32679
|
i0.ɵɵadvance(2);
|
|
32427
|
-
i0.ɵɵproperty("ngIf",
|
|
32680
|
+
i0.ɵɵproperty("ngIf", !ctx.disabled && !(ctx.visibleTags == null ? null : ctx.visibleTags.length));
|
|
32428
32681
|
i0.ɵɵadvance(1);
|
|
32429
|
-
i0.ɵɵproperty("ngForOf", ctx.
|
|
32682
|
+
i0.ɵɵproperty("ngForOf", ctx.visibleTags);
|
|
32430
32683
|
i0.ɵɵadvance(2);
|
|
32431
32684
|
i0.ɵɵclassMapInterpolate2("po-icon po-field-icon ", ctx.dropdownIcon, " ", ctx.disabled ? "po-icon-input-disabled" : "po-icon-input", "");
|
|
32432
32685
|
i0.ɵɵproperty("ngClass", ctx.disabled ? "po-field-icon-disabled" : "");
|
|
@@ -32438,7 +32691,7 @@ class PoMultiselectComponent extends PoMultiselectBaseComponent {
|
|
|
32438
32691
|
}
|
|
32439
32692
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoMultiselectComponent, [{
|
|
32440
32693
|
type: Component,
|
|
32441
|
-
args: [{ selector: 'po-multiselect', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$1, template: "<po-field-container\n [p-disabled]=\"disabled\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n>\n <div\n cdkOverlayOrigin\n #trigger=\"cdkOverlayOrigin\"\n class=\"po-field-container-content\"\n [class.po-multiselect-show]=\"dropdownOpen\"\n >\n <div\n #inputElement\n [tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled\"\n [attr.aria-label]=\"label\"\n class=\"po-input
|
|
32694
|
+
args: [{ selector: 'po-multiselect', changeDetection: ChangeDetectionStrategy.OnPush, providers: providers$1, template: "<po-field-container\n [p-disabled]=\"disabled\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n>\n <div\n cdkOverlayOrigin\n #trigger=\"cdkOverlayOrigin\"\n class=\"po-field-container-content\"\n [class.po-multiselect-show]=\"dropdownOpen\"\n >\n <div\n #inputElement\n [tabindex]=\"disabled ? -1 : 0\"\n [attr.disabled]=\"disabled\"\n [attr.aria-label]=\"label\"\n class=\"po-input-icon-right po-multiselect-input\"\n [class.po-multiselect-input-auto]=\"autoHeight\"\n [class.po-multiselect-input-static]=\"!autoHeight\"\n [class.po-multiselect-input-disabled]=\"disabled\"\n [class.po-multiselect-input-font]=\"!disabled && !visibleTags?.length\"\n (keydown)=\"onKeyDown($event)\"\n (click)=\"toggleDropdownVisibility()\"\n (blur)=\"onBlur()\"\n >\n <span *ngIf=\"!disabled && !visibleTags?.length\" class=\"po-multiselect-input-placeholder\" aria-hidden=\"true\">\n {{ placeholder ? placeholder : literals.selectItem }}\n </span>\n\n <po-tag\n *ngFor=\"let tag of visibleTags; index as i\"\n [p-value]=\"tag[fieldLabel]\"\n [p-literals]=\"i + 1 === visibleTags.length && hasMoreTag ? literalsTag : undefined\"\n [p-removable]=\"true\"\n [class.po-clickable]=\"tag[fieldValue] === '' && !disabled\"\n [p-disabled]=\"disabled\"\n (p-close)=\"closeTag(tag[fieldValue], $event)\"\n ></po-tag>\n\n <div class=\"po-field-icon-container-right\">\n <span\n #iconElement\n class=\"po-icon po-field-icon {{ dropdownIcon }} {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [ngClass]=\"disabled ? 'po-field-icon-disabled' : ''\"\n >\n </span>\n </div>\n </div>\n </div>\n\n <ng-container *ngIf=\"appendBox; then dropdownCDK; else dropdownDefault\"> </ng-container>\n\n <ng-template #dropdownDefault>\n <ng-container *ngTemplateOutlet=\"dropdownListbox\"> </ng-container>\n </ng-template>\n\n <ng-template #dropdownCDK>\n <ng-template cdkConnectedOverlay [cdkConnectedOverlayOrigin]=\"trigger\" [cdkConnectedOverlayOpen]=\"true\">\n <ng-container *ngTemplateOutlet=\"dropdownListbox\"></ng-container>\n </ng-template>\n </ng-template>\n\n <po-field-container-bottom [p-help]=\"help\" [p-disabled]=\"disabled\"></po-field-container-bottom>\n</po-field-container>\n\n<ng-template #dropdownListbox>\n <po-multiselect-dropdown\n #dropdownElement\n [p-searching]=\"isServerSearching\"\n [p-hide-search]=\"hideSearch\"\n [p-hide-select-all]=\"hideSelectAll\"\n [p-literals]=\"literals\"\n [p-options]=\"options\"\n [p-visible-options]=\"visibleOptionsDropdown\"\n [p-selected-options]=\"selectedOptions\"\n [p-placeholder-search]=\"placeholderSearch\"\n [p-field-value]=\"fieldValue\"\n [p-field-label]=\"fieldLabel\"\n [p-multiselect-template]=\"multiselectOptionTemplate\"\n (p-change)=\"changeItems($event)\"\n (p-change-search)=\"changeSearch($event)\"\n (p-close-dropdown)=\"controlDropdownVisibility(false)\"\n (keydown)=\"onKeyDownDropdown($event, 0)\"\n >\n </po-multiselect-dropdown>\n</ng-template>\n" }]
|
|
32442
32695
|
}], function () { return [{ type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: PoControlPositionService }, { type: PoMultiselectFilterService }, { type: PoLanguageService }]; }, { multiselectOptionTemplate: [{
|
|
32443
32696
|
type: ContentChild,
|
|
32444
32697
|
args: [PoMultiselectOptionTemplateDirective, { static: true }]
|
|
@@ -33165,7 +33418,7 @@ class PoRichTextBaseComponent {
|
|
|
33165
33418
|
args: ['p-show-required']
|
|
33166
33419
|
}] }); })();
|
|
33167
33420
|
|
|
33168
|
-
const _c0$
|
|
33421
|
+
const _c0$J = ["bodyElement"];
|
|
33169
33422
|
const poRichTextBodyCommands = [
|
|
33170
33423
|
'bold',
|
|
33171
33424
|
'italic',
|
|
@@ -33463,7 +33716,7 @@ class PoRichTextBodyComponent {
|
|
|
33463
33716
|
}
|
|
33464
33717
|
static ɵfac = function PoRichTextBodyComponent_Factory(t) { return new (t || PoRichTextBodyComponent)(i0.ɵɵdirectiveInject(PoRichTextService)); };
|
|
33465
33718
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoRichTextBodyComponent, selectors: [["po-rich-text-body"]], viewQuery: function PoRichTextBodyComponent_Query(rf, ctx) { if (rf & 1) {
|
|
33466
|
-
i0.ɵɵviewQuery(_c0$
|
|
33719
|
+
i0.ɵɵviewQuery(_c0$J, 7);
|
|
33467
33720
|
} if (rf & 2) {
|
|
33468
33721
|
let _t;
|
|
33469
33722
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.bodyElement = _t.first);
|
|
@@ -34473,7 +34726,7 @@ class PoUploadBaseComponent {
|
|
|
34473
34726
|
args: ['p-show-required']
|
|
34474
34727
|
}] }); })();
|
|
34475
34728
|
|
|
34476
|
-
const _c0$
|
|
34729
|
+
const _c0$I = ["selectFilesLink"];
|
|
34477
34730
|
function PoUploadDragDropAreaComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
34478
34731
|
i0.ɵɵelementContainer(0);
|
|
34479
34732
|
} }
|
|
@@ -34525,7 +34778,7 @@ class PoUploadDragDropAreaComponent {
|
|
|
34525
34778
|
}
|
|
34526
34779
|
static ɵfac = function PoUploadDragDropAreaComponent_Factory(t) { return new (t || PoUploadDragDropAreaComponent)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
34527
34780
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoUploadDragDropAreaComponent, selectors: [["po-upload-drag-drop-area"]], viewQuery: function PoUploadDragDropAreaComponent_Query(rf, ctx) { if (rf & 1) {
|
|
34528
|
-
i0.ɵɵviewQuery(_c0$
|
|
34781
|
+
i0.ɵɵviewQuery(_c0$I, 5);
|
|
34529
34782
|
} if (rf & 2) {
|
|
34530
34783
|
let _t;
|
|
34531
34784
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selectFilesLinkElement = _t.first);
|
|
@@ -34753,7 +35006,7 @@ class PoUploadDragDropDirective {
|
|
|
34753
35006
|
args: ['document:drop', ['$event']]
|
|
34754
35007
|
}] }); })();
|
|
34755
35008
|
|
|
34756
|
-
const _c0$
|
|
35009
|
+
const _c0$H = ["DragDropAreaFixed"];
|
|
34757
35010
|
class PoUploadDragDropAreaOverlayComponent {
|
|
34758
35011
|
renderer;
|
|
34759
35012
|
DragDropAreaFixed;
|
|
@@ -34781,7 +35034,7 @@ class PoUploadDragDropAreaOverlayComponent {
|
|
|
34781
35034
|
}
|
|
34782
35035
|
static ɵfac = function PoUploadDragDropAreaOverlayComponent_Factory(t) { return new (t || PoUploadDragDropAreaOverlayComponent)(i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
34783
35036
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoUploadDragDropAreaOverlayComponent, selectors: [["po-upload-drag-drop-area-overlay"]], viewQuery: function PoUploadDragDropAreaOverlayComponent_Query(rf, ctx) { if (rf & 1) {
|
|
34784
|
-
i0.ɵɵviewQuery(_c0$
|
|
35037
|
+
i0.ɵɵviewQuery(_c0$H, 7, ElementRef);
|
|
34785
35038
|
} if (rf & 2) {
|
|
34786
35039
|
let _t;
|
|
34787
35040
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.DragDropAreaFixed = _t.first);
|
|
@@ -34817,7 +35070,7 @@ class PoUploadDragDropAreaOverlayComponent {
|
|
|
34817
35070
|
args: ['p-area-element']
|
|
34818
35071
|
}] }); })();
|
|
34819
35072
|
|
|
34820
|
-
const _c0$
|
|
35073
|
+
const _c0$G = ["dragDropOverlay"];
|
|
34821
35074
|
function PoUploadDragDropComponent_po_upload_drag_drop_area_overlay_0_Template(rf, ctx) { if (rf & 1) {
|
|
34822
35075
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
34823
35076
|
i0.ɵɵelementStart(0, "po-upload-drag-drop-area-overlay", 2, 3);
|
|
@@ -34871,7 +35124,7 @@ class PoUploadDragDropComponent {
|
|
|
34871
35124
|
}
|
|
34872
35125
|
static ɵfac = function PoUploadDragDropComponent_Factory(t) { return new (t || PoUploadDragDropComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
34873
35126
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoUploadDragDropComponent, selectors: [["po-upload-drag-drop"]], viewQuery: function PoUploadDragDropComponent_Query(rf, ctx) { if (rf & 1) {
|
|
34874
|
-
i0.ɵɵviewQuery(_c0$
|
|
35127
|
+
i0.ɵɵviewQuery(_c0$G, 5, ElementRef);
|
|
34875
35128
|
i0.ɵɵviewQuery(PoUploadDragDropAreaComponent, 7);
|
|
34876
35129
|
} if (rf & 2) {
|
|
34877
35130
|
let _t;
|
|
@@ -34937,7 +35190,7 @@ function PoUploadFileRestrictionsComponent_p_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
34937
35190
|
i0.ɵɵadvance(1);
|
|
34938
35191
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r1.literals == null ? null : ctx_r1.literals.allowedFormats, ctx_r1.allowedExtensions), "\n");
|
|
34939
35192
|
} }
|
|
34940
|
-
const _c0$
|
|
35193
|
+
const _c0$F = function (a0, a1) { return [a0, a1]; };
|
|
34941
35194
|
function PoUploadFileRestrictionsComponent_p_2_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
34942
35195
|
i0.ɵɵelementStart(0, "span");
|
|
34943
35196
|
i0.ɵɵtext(1);
|
|
@@ -34946,7 +35199,7 @@ function PoUploadFileRestrictionsComponent_p_2_span_3_Template(rf, ctx) { if (rf
|
|
|
34946
35199
|
} if (rf & 2) {
|
|
34947
35200
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
34948
35201
|
i0.ɵɵadvance(1);
|
|
34949
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r3.literals == null ? null : ctx_r3.literals.allowedFileSizeRange, i0.ɵɵpureFunction2(4, _c0$
|
|
35202
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r3.literals == null ? null : ctx_r3.literals.allowedFileSizeRange, i0.ɵɵpureFunction2(4, _c0$F, ctx_r3.minFileSize, ctx_r3.maxFileSize)), " ");
|
|
34950
35203
|
} }
|
|
34951
35204
|
function PoUploadFileRestrictionsComponent_p_2_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
34952
35205
|
i0.ɵɵelementStart(0, "span");
|
|
@@ -35066,7 +35319,7 @@ class PoUploadFileRestrictionsComponent {
|
|
|
35066
35319
|
args: ['p-min-file-size']
|
|
35067
35320
|
}] }); })();
|
|
35068
35321
|
|
|
35069
|
-
const _c0$
|
|
35322
|
+
const _c0$E = ["inputFile"];
|
|
35070
35323
|
const _c1$f = ["uploadButton"];
|
|
35071
35324
|
function PoUploadComponent_po_upload_drag_drop_5_Template(rf, ctx) { if (rf & 1) {
|
|
35072
35325
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
@@ -35427,7 +35680,7 @@ class PoUploadComponent extends PoUploadBaseComponent {
|
|
|
35427
35680
|
}
|
|
35428
35681
|
static ɵfac = function PoUploadComponent_Factory(t) { return new (t || PoUploadComponent)(i0.ɵɵdirectiveInject(PoUploadService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(PoI18nPipe), i0.ɵɵdirectiveInject(PoNotificationService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
35429
35682
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoUploadComponent, selectors: [["po-upload"]], viewQuery: function PoUploadComponent_Query(rf, ctx) { if (rf & 1) {
|
|
35430
|
-
i0.ɵɵviewQuery(_c0$
|
|
35683
|
+
i0.ɵɵviewQuery(_c0$E, 7, ElementRef);
|
|
35431
35684
|
i0.ɵɵviewQuery(PoUploadDragDropComponent, 5);
|
|
35432
35685
|
i0.ɵɵviewQuery(_c1$f, 5);
|
|
35433
35686
|
} if (rf & 2) {
|
|
@@ -35639,7 +35892,7 @@ class PoUrlComponent extends PoInputGeneric {
|
|
|
35639
35892
|
], template: "<po-field-container\n [p-disabled]=\"disabled\"\n [p-id]=\"id\"\n [p-label]=\"label\"\n [p-optional]=\"optional\"\n [p-required]=\"required\"\n [p-show-required]=\"showRequired\"\n>\n <div class=\"po-field-container-content\">\n <div *ngIf=\"icon\" class=\"po-field-icon-container-left\">\n <po-icon\n class=\"po-field-icon {{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n [class.po-field-icon-disabled]=\"disabled\"\n [p-icon]=\"icon\"\n ></po-icon>\n </div>\n\n <input\n #inp\n class=\"po-input\"\n [attr.name]=\"name\"\n [autocomplete]=\"autocomplete\"\n [class.po-input-icon-left]=\"icon\"\n [class.po-input-icon-right]=\"clean\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"disabled ? '' : placeholder\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [type]=\"type\"\n (blur)=\"eventOnBlur($event)\"\n (click)=\"eventOnClick($event)\"\n (focus)=\"eventOnFocus($event)\"\n (input)=\"eventOnInput($event)\"\n />\n\n <div class=\"po-field-icon-container-right\">\n <po-clean\n class=\"{{ disabled ? 'po-icon-input-disabled' : 'po-icon-input' }}\"\n *ngIf=\"clean && !disabled && !readonly\"\n [p-element-ref]=\"inputEl\"\n (p-change-event)=\"clear($event)\"\n >\n </po-clean>\n </div>\n </div>\n\n <po-field-container-bottom\n [p-help]=\"help\"\n [p-disabled]=\"disabled\"\n [p-error-pattern]=\"getErrorPattern()\"\n ></po-field-container-bottom>\n</po-field-container>\n" }]
|
|
35640
35893
|
}], function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, null); })();
|
|
35641
35894
|
|
|
35642
|
-
const _c0$
|
|
35895
|
+
const _c0$D = ["modal"];
|
|
35643
35896
|
const _c1$e = ["modalImageForm"];
|
|
35644
35897
|
const _c2$3 = ["upload"];
|
|
35645
35898
|
const uploadRestrictions = ['.apng', '.bmp', '.gif', '.ico', '.jpeg', '.jpg', '.png', '.svg'];
|
|
@@ -35726,7 +35979,7 @@ class PoRichTextImageModalComponent {
|
|
|
35726
35979
|
}
|
|
35727
35980
|
static ɵfac = function PoRichTextImageModalComponent_Factory(t) { return new (t || PoRichTextImageModalComponent)(i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
35728
35981
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoRichTextImageModalComponent, selectors: [["po-rich-text-image-modal"]], viewQuery: function PoRichTextImageModalComponent_Query(rf, ctx) { if (rf & 1) {
|
|
35729
|
-
i0.ɵɵviewQuery(_c0$
|
|
35982
|
+
i0.ɵɵviewQuery(_c0$D, 7);
|
|
35730
35983
|
i0.ɵɵviewQuery(_c1$e, 5);
|
|
35731
35984
|
i0.ɵɵviewQuery(_c2$3, 7);
|
|
35732
35985
|
} if (rf & 2) {
|
|
@@ -35767,7 +36020,7 @@ class PoRichTextImageModalComponent {
|
|
|
35767
36020
|
args: ['p-command']
|
|
35768
36021
|
}] }); })();
|
|
35769
36022
|
|
|
35770
|
-
const _c0$
|
|
36023
|
+
const _c0$C = ["modal"];
|
|
35771
36024
|
const _c1$d = ["modalLinkForm"];
|
|
35772
36025
|
class PoRichTextLinkModalComponent {
|
|
35773
36026
|
languageService;
|
|
@@ -35912,7 +36165,7 @@ class PoRichTextLinkModalComponent {
|
|
|
35912
36165
|
}
|
|
35913
36166
|
static ɵfac = function PoRichTextLinkModalComponent_Factory(t) { return new (t || PoRichTextLinkModalComponent)(i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
35914
36167
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoRichTextLinkModalComponent, selectors: [["po-rich-text-link-modal"]], viewQuery: function PoRichTextLinkModalComponent_Query(rf, ctx) { if (rf & 1) {
|
|
35915
|
-
i0.ɵɵviewQuery(_c0$
|
|
36168
|
+
i0.ɵɵviewQuery(_c0$C, 7);
|
|
35916
36169
|
i0.ɵɵviewQuery(_c1$d, 5);
|
|
35917
36170
|
} if (rf & 2) {
|
|
35918
36171
|
let _t;
|
|
@@ -35950,7 +36203,7 @@ class PoRichTextLinkModalComponent {
|
|
|
35950
36203
|
args: ['p-link-editing']
|
|
35951
36204
|
}] }); })();
|
|
35952
36205
|
|
|
35953
|
-
const _c0$
|
|
36206
|
+
const _c0$B = ["colorPickerInput"];
|
|
35954
36207
|
const _c1$c = ["toolbarElement"];
|
|
35955
36208
|
function PoRichTextToolbarComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
35956
36209
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
@@ -36138,7 +36391,7 @@ class PoRichTextToolbarComponent {
|
|
|
36138
36391
|
}
|
|
36139
36392
|
static ɵfac = function PoRichTextToolbarComponent_Factory(t) { return new (t || PoRichTextToolbarComponent)(i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
36140
36393
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoRichTextToolbarComponent, selectors: [["po-rich-text-toolbar"]], viewQuery: function PoRichTextToolbarComponent_Query(rf, ctx) { if (rf & 1) {
|
|
36141
|
-
i0.ɵɵviewQuery(_c0$
|
|
36394
|
+
i0.ɵɵviewQuery(_c0$B, 5, ElementRef);
|
|
36142
36395
|
i0.ɵɵviewQuery(_c1$c, 7);
|
|
36143
36396
|
i0.ɵɵviewQuery(PoRichTextImageModalComponent, 7);
|
|
36144
36397
|
i0.ɵɵviewQuery(PoRichTextLinkModalComponent, 7);
|
|
@@ -36148,7 +36401,7 @@ class PoRichTextToolbarComponent {
|
|
|
36148
36401
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.toolbarElement = _t.first);
|
|
36149
36402
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.richTextImageModal = _t.first);
|
|
36150
36403
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.richTextLinkModal = _t.first);
|
|
36151
|
-
} }, inputs: { disabledTextAlign: ["p-disabled-text-align", "disabledTextAlign"], readonly: ["p-readonly", "readonly"] }, outputs: { command: "p-command", modal: "p-modal", linkEditing: "p-link-editing" }, decls: 16, vars: 6, consts: [[1, "po-rich-text-toolbar"], ["toolbarElement", ""], ["data-rich-text-toolbar", "format", 1, "po-rich-text-toolbar-button-align"], ["p-toggle", "multiple", 3, "p-buttons"], ["class", "po-rich-text-toolbar-button-align", "data-rich-text-toolbar", "color", 4, "ngIf"], ["class", "po-rich-text-toolbar-button-align", "data-rich-text-toolbar", "align", 4, "ngIf"], ["data-rich-text-toolbar", "list", 1, "po-rich-text-toolbar-button-align"], ["p-toggle", "single", 3, "p-buttons"], ["data-rich-text-toolbar", "link", 1, "po-rich-text-toolbar-button-align"], [3, "p-buttons"], ["data-rich-text-toolbar", "media", 1, "po-rich-text-toolbar-button-align"], [3, "p-command"], ["richTextImageModal", ""], [3, "p-command", "p-link-editing"], ["richTextLinkModal", ""], ["data-rich-text-toolbar", "color", 1, "po-rich-text-toolbar-button-align"], [1, "po-rich-text-toolbar-color-picker-container"], [1, "po-button", "po-button-default", "po-rich-text-toolbar-color-picker-button", 3, "disabled", "p-tooltip"], ["type", "color", 1, "po-rich-text-toolbar-color-picker-input", 3, "disabled", "change"], ["colorPickerInput", ""], ["data-rich-text-toolbar", "align", 1, "po-rich-text-toolbar-button-align"]], template: function PoRichTextToolbarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
36404
|
+
} }, inputs: { disabledTextAlign: ["p-disabled-text-align", "disabledTextAlign"], readonly: ["p-readonly", "readonly"] }, outputs: { command: "p-command", modal: "p-modal", linkEditing: "p-link-editing" }, decls: 16, vars: 6, consts: [[1, "po-rich-text-toolbar"], ["toolbarElement", ""], ["data-rich-text-toolbar", "format", 1, "po-rich-text-toolbar-button-align"], ["p-toggle", "multiple", 3, "p-buttons"], ["class", "po-rich-text-toolbar-button-align", "data-rich-text-toolbar", "color", 4, "ngIf"], ["class", "po-rich-text-toolbar-button-align", "data-rich-text-toolbar", "align", 4, "ngIf"], ["data-rich-text-toolbar", "list", 1, "po-rich-text-toolbar-button-align"], ["p-toggle", "single", 3, "p-buttons"], ["data-rich-text-toolbar", "link", 1, "po-rich-text-toolbar-button-align"], [3, "p-buttons"], ["data-rich-text-toolbar", "media", 1, "po-rich-text-toolbar-button-align"], [3, "p-command"], ["richTextImageModal", ""], [3, "p-command", "p-link-editing"], ["richTextLinkModal", ""], ["data-rich-text-toolbar", "color", 1, "po-rich-text-toolbar-button-align"], [1, "po-rich-text-toolbar-color-picker-container"], ["type", "button", 1, "po-button", "po-button-default", "po-rich-text-toolbar-color-picker-button", 3, "disabled", "p-tooltip"], ["type", "color", 1, "po-rich-text-toolbar-color-picker-input", 3, "disabled", "change"], ["colorPickerInput", ""], ["data-rich-text-toolbar", "align", 1, "po-rich-text-toolbar-button-align"]], template: function PoRichTextToolbarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
36152
36405
|
i0.ɵɵelementStart(0, "div", 0, 1)(2, "div", 2);
|
|
36153
36406
|
i0.ɵɵelement(3, "po-button-group", 3);
|
|
36154
36407
|
i0.ɵɵelementEnd();
|
|
@@ -36186,7 +36439,7 @@ class PoRichTextToolbarComponent {
|
|
|
36186
36439
|
}
|
|
36187
36440
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoRichTextToolbarComponent, [{
|
|
36188
36441
|
type: Component,
|
|
36189
|
-
args: [{ selector: 'po-rich-text-toolbar', template: "<div class=\"po-rich-text-toolbar\" #toolbarElement>\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"format\">\n <po-button-group p-toggle=\"multiple\" [p-buttons]=\"formatButtons\"> </po-button-group>\n </div>\n\n <div *ngIf=\"!isInternetExplorer\" class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"color\">\n <div class=\"po-rich-text-toolbar-color-picker-container\">\n <button\n class=\"po-button po-button-default po-rich-text-toolbar-color-picker-button\"\n [disabled]=\"readonly\"\n [p-tooltip]=\"literals.textColor\"\n [attr.aria-label]=\"literals.textColor\"\n >\n <input\n #colorPickerInput\n class=\"po-rich-text-toolbar-color-picker-input\"\n type=\"color\"\n [disabled]=\"readonly\"\n (change)=\"changeTextColor($event.target.value)\"\n [attr.aria-label]=\"literals.textColor\"\n />\n </button>\n </div>\n </div>\n\n <div *ngIf=\"!disabledTextAlign\" class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"align\">\n <po-button-group p-toggle=\"single\" [p-buttons]=\"alignButtons\"> </po-button-group>\n </div>\n\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"list\">\n <po-button-group p-toggle=\"single\" [p-buttons]=\"listButtons\"> </po-button-group>\n </div>\n\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"link\">\n <po-button-group [p-buttons]=\"linkButtons\"> </po-button-group>\n </div>\n\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"media\">\n <po-button-group [p-buttons]=\"mediaButtons\"> </po-button-group>\n </div>\n</div>\n\n<po-rich-text-image-modal #richTextImageModal (p-command)=\"emitCommand($event)\"> </po-rich-text-image-modal>\n\n<po-rich-text-link-modal\n #richTextLinkModal\n (p-command)=\"emitCommand($event)\"\n (p-link-editing)=\"emitLinkEditing($event)\"\n>\n</po-rich-text-link-modal>\n" }]
|
|
36442
|
+
args: [{ selector: 'po-rich-text-toolbar', template: "<div class=\"po-rich-text-toolbar\" #toolbarElement>\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"format\">\n <po-button-group p-toggle=\"multiple\" [p-buttons]=\"formatButtons\"> </po-button-group>\n </div>\n\n <div *ngIf=\"!isInternetExplorer\" class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"color\">\n <div class=\"po-rich-text-toolbar-color-picker-container\">\n <button\n type=\"button\"\n class=\"po-button po-button-default po-rich-text-toolbar-color-picker-button\"\n [disabled]=\"readonly\"\n [p-tooltip]=\"literals.textColor\"\n [attr.aria-label]=\"literals.textColor\"\n >\n <input\n #colorPickerInput\n class=\"po-rich-text-toolbar-color-picker-input\"\n type=\"color\"\n [disabled]=\"readonly\"\n (change)=\"changeTextColor($event.target.value)\"\n [attr.aria-label]=\"literals.textColor\"\n />\n </button>\n </div>\n </div>\n\n <div *ngIf=\"!disabledTextAlign\" class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"align\">\n <po-button-group p-toggle=\"single\" [p-buttons]=\"alignButtons\"> </po-button-group>\n </div>\n\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"list\">\n <po-button-group p-toggle=\"single\" [p-buttons]=\"listButtons\"> </po-button-group>\n </div>\n\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"link\">\n <po-button-group [p-buttons]=\"linkButtons\"> </po-button-group>\n </div>\n\n <div class=\"po-rich-text-toolbar-button-align\" data-rich-text-toolbar=\"media\">\n <po-button-group [p-buttons]=\"mediaButtons\"> </po-button-group>\n </div>\n</div>\n\n<po-rich-text-image-modal #richTextImageModal (p-command)=\"emitCommand($event)\"> </po-rich-text-image-modal>\n\n<po-rich-text-link-modal\n #richTextLinkModal\n (p-command)=\"emitCommand($event)\"\n (p-link-editing)=\"emitLinkEditing($event)\"\n>\n</po-rich-text-link-modal>\n" }]
|
|
36190
36443
|
}], function () { return [{ type: PoLanguageService }]; }, { colorPickerInput: [{
|
|
36191
36444
|
type: ViewChild,
|
|
36192
36445
|
args: ['colorPickerInput', { read: ElementRef }]
|
|
@@ -36448,7 +36701,7 @@ class PoFieldValidateModel extends PoFieldModel {
|
|
|
36448
36701
|
args: ['p-show-required']
|
|
36449
36702
|
}] }); })();
|
|
36450
36703
|
|
|
36451
|
-
const _c0$
|
|
36704
|
+
const _c0$A = ["select"];
|
|
36452
36705
|
function PoSelectComponent_option_4_Template(rf, ctx) { if (rf & 1) {
|
|
36453
36706
|
i0.ɵɵelementStart(0, "option", 8);
|
|
36454
36707
|
i0.ɵɵtext(1);
|
|
@@ -36838,7 +37091,7 @@ class PoSelectComponent extends PoFieldValidateModel {
|
|
|
36838
37091
|
}
|
|
36839
37092
|
static ɵfac = function PoSelectComponent_Factory(t) { return new (t || PoSelectComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
36840
37093
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoSelectComponent, selectors: [["po-select"]], viewQuery: function PoSelectComponent_Query(rf, ctx) { if (rf & 1) {
|
|
36841
|
-
i0.ɵɵviewQuery(_c0$
|
|
37094
|
+
i0.ɵɵviewQuery(_c0$A, 7, ElementRef);
|
|
36842
37095
|
} if (rf & 2) {
|
|
36843
37096
|
let _t;
|
|
36844
37097
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selectElement = _t.first);
|
|
@@ -37256,7 +37509,7 @@ class PoTextareaBaseComponent {
|
|
|
37256
37509
|
args: ['p-rows']
|
|
37257
37510
|
}] }); })();
|
|
37258
37511
|
|
|
37259
|
-
const _c0$
|
|
37512
|
+
const _c0$z = ["inp"];
|
|
37260
37513
|
/**
|
|
37261
37514
|
* @docsExtends PoTextareaBaseComponent
|
|
37262
37515
|
*
|
|
@@ -37361,7 +37614,7 @@ class PoTextareaComponent extends PoTextareaBaseComponent {
|
|
|
37361
37614
|
}
|
|
37362
37615
|
static ɵfac = function PoTextareaComponent_Factory(t) { return new (t || PoTextareaComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
37363
37616
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTextareaComponent, selectors: [["po-textarea"]], viewQuery: function PoTextareaComponent_Query(rf, ctx) { if (rf & 1) {
|
|
37364
|
-
i0.ɵɵviewQuery(_c0$
|
|
37617
|
+
i0.ɵɵviewQuery(_c0$z, 7, ElementRef);
|
|
37365
37618
|
} if (rf & 2) {
|
|
37366
37619
|
let _t;
|
|
37367
37620
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputEl = _t.first);
|
|
@@ -37446,7 +37699,7 @@ class PoSearchBaseComponent {
|
|
|
37446
37699
|
args: ['p-filter']
|
|
37447
37700
|
}] }); })();
|
|
37448
37701
|
|
|
37449
|
-
const _c0$
|
|
37702
|
+
const _c0$y = ["poSearchInput"];
|
|
37450
37703
|
function PoSearchComponent_po_icon_2_Template(rf, ctx) { if (rf & 1) {
|
|
37451
37704
|
i0.ɵɵelement(0, "po-icon", 7);
|
|
37452
37705
|
} }
|
|
@@ -37529,7 +37782,7 @@ class PoSearchComponent extends PoSearchBaseComponent {
|
|
|
37529
37782
|
}
|
|
37530
37783
|
static ɵfac = function PoSearchComponent_Factory(t) { return new (t || PoSearchComponent)(i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
37531
37784
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoSearchComponent, selectors: [["po-search"]], viewQuery: function PoSearchComponent_Query(rf, ctx) { if (rf & 1) {
|
|
37532
|
-
i0.ɵɵviewQuery(_c0$
|
|
37785
|
+
i0.ɵɵviewQuery(_c0$y, 7, ElementRef);
|
|
37533
37786
|
} if (rf & 2) {
|
|
37534
37787
|
let _t;
|
|
37535
37788
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poSearchInput = _t.first);
|
|
@@ -37714,7 +37967,7 @@ i0.ɵɵsetComponentScope(PoTableComponent, [i1.NgClass, i1.NgForOf, i1.NgIf, i1.
|
|
|
37714
37967
|
PoTableSubtitleFooterComponent,
|
|
37715
37968
|
PoTableColumnFrozenDirective], [i1.LowerCasePipe, i1.TitleCasePipe, i1.CurrencyPipe, i1.DatePipe, PoTimePipe]);
|
|
37716
37969
|
|
|
37717
|
-
const _c0$
|
|
37970
|
+
const _c0$x = ["container"];
|
|
37718
37971
|
const _c1$b = ["divElement"];
|
|
37719
37972
|
const _c2$2 = ["listbox"];
|
|
37720
37973
|
/**
|
|
@@ -37843,7 +38096,7 @@ class PoMultiselectDropdownComponent {
|
|
|
37843
38096
|
}
|
|
37844
38097
|
static ɵfac = function PoMultiselectDropdownComponent_Factory(t) { return new (t || PoMultiselectDropdownComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
37845
38098
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoMultiselectDropdownComponent, selectors: [["po-multiselect-dropdown"]], viewQuery: function PoMultiselectDropdownComponent_Query(rf, ctx) { if (rf & 1) {
|
|
37846
|
-
i0.ɵɵviewQuery(_c0$
|
|
38099
|
+
i0.ɵɵviewQuery(_c0$x, 7, ElementRef);
|
|
37847
38100
|
i0.ɵɵviewQuery(_c1$b, 7, ElementRef);
|
|
37848
38101
|
i0.ɵɵviewQuery(_c2$2, 5);
|
|
37849
38102
|
} if (rf & 2) {
|
|
@@ -37851,11 +38104,11 @@ class PoMultiselectDropdownComponent {
|
|
|
37851
38104
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.container = _t.first);
|
|
37852
38105
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.divElement = _t.first);
|
|
37853
38106
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.listbox = _t.first);
|
|
37854
|
-
} }, inputs: { isServerSearching: ["p-searching", "isServerSearching"], hideSearch: ["p-hide-search", "hideSearch"], literals: ["p-literals", "literals"], placeholderSearch: ["p-placeholder-search", "placeholderSearch"], selectedOptions: ["p-selected-options", "selectedOptions"], options: ["p-options", "options"], visibleOptions: ["p-visible-options", "visibleOptions"], hideSelectAll: ["p-hide-select-all", "hideSelectAll"], fieldValue: ["p-field-value", "fieldValue"], fieldLabel: ["p-field-label", "fieldLabel"], multiselectTemplate: ["p-multiselect-template", "multiselectTemplate"] }, outputs: { changeSearch: "p-change-search", change: "p-change", closeDropdown: "p-close-dropdown" }, decls: 7, vars: 15, consts: [[1, "po-multiselect-container", 3, "hidden"], ["container", ""], [3, "scrollTop"], ["divElement", ""], ["p-type", "check", 3, "p-items", "p-selected-options", "p-checkboxAllValue", "p-field-value", "p-field-value-search", "p-field-label", "p-literal-search", "p-literals", "p-is-searching", "p-hide-search", "p-hide-select-all", "p-template", "p-placeholder-search", "p-change", "p-change-all", "p-change-search"], ["listbox", ""]], template: function PoMultiselectDropdownComponent_Template(rf, ctx) { if (rf & 1) {
|
|
38107
|
+
} }, inputs: { isServerSearching: ["p-searching", "isServerSearching"], hideSearch: ["p-hide-search", "hideSearch"], literals: ["p-literals", "literals"], placeholderSearch: ["p-placeholder-search", "placeholderSearch"], selectedOptions: ["p-selected-options", "selectedOptions"], options: ["p-options", "options"], visibleOptions: ["p-visible-options", "visibleOptions"], hideSelectAll: ["p-hide-select-all", "hideSelectAll"], fieldValue: ["p-field-value", "fieldValue"], fieldLabel: ["p-field-label", "fieldLabel"], multiselectTemplate: ["p-multiselect-template", "multiselectTemplate"] }, outputs: { changeSearch: "p-change-search", change: "p-change", closeDropdown: "p-close-dropdown" }, decls: 7, vars: 15, consts: [[1, "po-multiselect-container", 3, "hidden"], ["container", ""], [3, "scrollTop"], ["divElement", ""], ["p-type", "check", 3, "p-items", "p-selected-options", "p-checkboxAllValue", "p-field-value", "p-field-value-search", "p-field-label", "p-literal-search", "p-literals", "p-is-searching", "p-hide-search", "p-hide-select-all", "p-template", "p-placeholder-search", "p-change", "p-change-all", "p-change-search", "p-close"], ["listbox", ""]], template: function PoMultiselectDropdownComponent_Template(rf, ctx) { if (rf & 1) {
|
|
37855
38108
|
i0.ɵɵelementStart(0, "div", 0, 1)(2, "div", 2, 3);
|
|
37856
38109
|
i0.ɵɵelementContainerStart(4);
|
|
37857
38110
|
i0.ɵɵelementStart(5, "po-listbox", 4, 5);
|
|
37858
|
-
i0.ɵɵlistener("p-change", function PoMultiselectDropdownComponent_Template_po_listbox_p_change_5_listener($event) { return ctx.clickItem($event); })("p-change-all", function PoMultiselectDropdownComponent_Template_po_listbox_p_change_all_5_listener() { return ctx.onClickSelectAll(); })("p-change-search", function PoMultiselectDropdownComponent_Template_po_listbox_p_change_search_5_listener($event) { return ctx.callChangeSearch($event); });
|
|
38111
|
+
i0.ɵɵlistener("p-change", function PoMultiselectDropdownComponent_Template_po_listbox_p_change_5_listener($event) { return ctx.clickItem($event); })("p-change-all", function PoMultiselectDropdownComponent_Template_po_listbox_p_change_all_5_listener() { return ctx.onClickSelectAll(); })("p-change-search", function PoMultiselectDropdownComponent_Template_po_listbox_p_change_search_5_listener($event) { return ctx.callChangeSearch($event); })("p-close", function PoMultiselectDropdownComponent_Template_po_listbox_p_close_5_listener() { return ctx.closeDropdown.emit(); });
|
|
37859
38112
|
i0.ɵɵelementEnd();
|
|
37860
38113
|
i0.ɵɵelementContainerEnd();
|
|
37861
38114
|
i0.ɵɵelementEnd()();
|
|
@@ -37869,7 +38122,7 @@ class PoMultiselectDropdownComponent {
|
|
|
37869
38122
|
}
|
|
37870
38123
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoMultiselectDropdownComponent, [{
|
|
37871
38124
|
type: Component,
|
|
37872
|
-
args: [{ selector: 'po-multiselect-dropdown', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div #container class=\"po-multiselect-container\" [hidden]=\"!show\">\n <div [scrollTop]=\"scrollTop\" #divElement>\n <ng-container>\n <po-listbox\n #listbox\n p-type=\"check\"\n [p-items]=\"visibleOptions\"\n [p-selected-options]=\"selectedOptions\"\n [p-checkboxAllValue]=\"getStateSelectAll()\"\n [p-field-value]=\"fieldValue\"\n [p-field-value-search]=\"fieldValue\"\n [p-field-label]=\"fieldLabel\"\n [p-literal-search]=\"literals\"\n [p-literals]=\"literals\"\n [p-is-searching]=\"isServerSearching\"\n [p-hide-search]=\"hideSearch\"\n [p-hide-select-all]=\"hideSelectAll\"\n [p-template]=\"multiselectTemplate\"\n [p-placeholder-search]=\"placeholderSearch\"\n (p-change)=\"clickItem($event)\"\n (p-change-all)=\"onClickSelectAll()\"\n (p-change-search)=\"callChangeSearch($event)\"\n >\n </po-listbox>\n </ng-container>\n </div>\n</div>\n" }]
|
|
38125
|
+
args: [{ selector: 'po-multiselect-dropdown', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div #container class=\"po-multiselect-container\" [hidden]=\"!show\">\n <div [scrollTop]=\"scrollTop\" #divElement>\n <ng-container>\n <po-listbox\n #listbox\n p-type=\"check\"\n [p-items]=\"visibleOptions\"\n [p-selected-options]=\"selectedOptions\"\n [p-checkboxAllValue]=\"getStateSelectAll()\"\n [p-field-value]=\"fieldValue\"\n [p-field-value-search]=\"fieldValue\"\n [p-field-label]=\"fieldLabel\"\n [p-literal-search]=\"literals\"\n [p-literals]=\"literals\"\n [p-is-searching]=\"isServerSearching\"\n [p-hide-search]=\"hideSearch\"\n [p-hide-select-all]=\"hideSelectAll\"\n [p-template]=\"multiselectTemplate\"\n [p-placeholder-search]=\"placeholderSearch\"\n (p-change)=\"clickItem($event)\"\n (p-change-all)=\"onClickSelectAll()\"\n (p-change-search)=\"callChangeSearch($event)\"\n (p-close)=\"closeDropdown.emit()\"\n >\n </po-listbox>\n </ng-container>\n </div>\n</div>\n" }]
|
|
37873
38126
|
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { isServerSearching: [{
|
|
37874
38127
|
type: Input,
|
|
37875
38128
|
args: ['p-searching']
|
|
@@ -37923,94 +38176,6 @@ class PoMultiselectDropdownComponent {
|
|
|
37923
38176
|
args: ['listbox']
|
|
37924
38177
|
}] }); })();
|
|
37925
38178
|
|
|
37926
|
-
const _c0$x = ["inputElement"];
|
|
37927
|
-
/**
|
|
37928
|
-
* @docsPrivate
|
|
37929
|
-
*
|
|
37930
|
-
* @description
|
|
37931
|
-
*
|
|
37932
|
-
* Componente de pesquisa que será criado dentro do dropdown do `po-multiselect`.
|
|
37933
|
-
*/
|
|
37934
|
-
class PoMultiselectSearchComponent {
|
|
37935
|
-
cd;
|
|
37936
|
-
inputElement;
|
|
37937
|
-
/** Propriedade que recebe as literais definidas no `po-multiselect`. */
|
|
37938
|
-
literals;
|
|
37939
|
-
fieldValue;
|
|
37940
|
-
/** Evento que será disparado a cada tecla digitada no campo de busca. */
|
|
37941
|
-
change = new EventEmitter();
|
|
37942
|
-
_placeholder;
|
|
37943
|
-
constructor(cd) {
|
|
37944
|
-
this.cd = cd;
|
|
37945
|
-
}
|
|
37946
|
-
/**
|
|
37947
|
-
* @optional
|
|
37948
|
-
*
|
|
37949
|
-
* @description
|
|
37950
|
-
*
|
|
37951
|
-
* Placeholder do campo de pesquisa.
|
|
37952
|
-
*
|
|
37953
|
-
* > Caso o mesmo não seja informado, o valor padrão será traduzido com base no idioma do navegador (pt, es e en).
|
|
37954
|
-
*
|
|
37955
|
-
* @default `Buscar`
|
|
37956
|
-
*/
|
|
37957
|
-
set placeholder(placeholder) {
|
|
37958
|
-
this._placeholder = placeholder && isTypeof(placeholder, 'string') ? placeholder : this.literals.placeholderSearch;
|
|
37959
|
-
}
|
|
37960
|
-
get placeholder() {
|
|
37961
|
-
return this._placeholder || this.literals.placeholderSearch;
|
|
37962
|
-
}
|
|
37963
|
-
get inputValue() {
|
|
37964
|
-
return this.inputElement.nativeElement.value;
|
|
37965
|
-
}
|
|
37966
|
-
onChange(event) {
|
|
37967
|
-
this.change.emit({ event: event, [this.fieldValue]: this.inputElement.nativeElement.value });
|
|
37968
|
-
}
|
|
37969
|
-
setFocus() {
|
|
37970
|
-
this.inputElement.nativeElement.focus();
|
|
37971
|
-
}
|
|
37972
|
-
clean() {
|
|
37973
|
-
this.inputElement.nativeElement.value = '';
|
|
37974
|
-
this.cd.markForCheck();
|
|
37975
|
-
}
|
|
37976
|
-
static ɵfac = function PoMultiselectSearchComponent_Factory(t) { return new (t || PoMultiselectSearchComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
37977
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoMultiselectSearchComponent, selectors: [["po-multiselect-search"]], viewQuery: function PoMultiselectSearchComponent_Query(rf, ctx) { if (rf & 1) {
|
|
37978
|
-
i0.ɵɵviewQuery(_c0$x, 7, ElementRef);
|
|
37979
|
-
} if (rf & 2) {
|
|
37980
|
-
let _t;
|
|
37981
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
|
|
37982
|
-
} }, inputs: { literals: ["p-literals", "literals"], fieldValue: ["p-field-value", "fieldValue"], placeholder: ["p-placeholder", "placeholder"] }, outputs: { change: "p-change" }, decls: 5, vars: 1, consts: [[1, "po-field-container-content", "po-multiselect-container-search"], [1, "po-field-icon-container-left"], [1, "po-icon", "po-icon-search", "po-field-icon", "po-icon-input"], ["type", "text", 1, "po-input", "po-input-icon-left", "po-multiselect-search-input", 3, "placeholder", "keyup"], ["inputElement", ""]], template: function PoMultiselectSearchComponent_Template(rf, ctx) { if (rf & 1) {
|
|
37983
|
-
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
37984
|
-
i0.ɵɵelement(2, "span", 2);
|
|
37985
|
-
i0.ɵɵelementEnd();
|
|
37986
|
-
i0.ɵɵelementStart(3, "input", 3, 4);
|
|
37987
|
-
i0.ɵɵlistener("keyup", function PoMultiselectSearchComponent_Template_input_keyup_3_listener($event) { return ctx.onChange($event); });
|
|
37988
|
-
i0.ɵɵelementEnd()();
|
|
37989
|
-
} if (rf & 2) {
|
|
37990
|
-
i0.ɵɵadvance(3);
|
|
37991
|
-
i0.ɵɵproperty("placeholder", ctx.placeholder);
|
|
37992
|
-
} }, encapsulation: 2, changeDetection: 0 });
|
|
37993
|
-
}
|
|
37994
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoMultiselectSearchComponent, [{
|
|
37995
|
-
type: Component,
|
|
37996
|
-
args: [{ selector: 'po-multiselect-search', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"po-field-container-content po-multiselect-container-search\">\n <div class=\"po-field-icon-container-left\">\n <span class=\"po-icon po-icon-search po-field-icon po-icon-input\"></span>\n </div>\n\n <input\n #inputElement\n class=\"po-input po-input-icon-left po-multiselect-search-input\"\n type=\"text\"\n [placeholder]=\"placeholder\"\n (keyup)=\"onChange($event)\"\n />\n</div>\n" }]
|
|
37997
|
-
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { inputElement: [{
|
|
37998
|
-
type: ViewChild,
|
|
37999
|
-
args: ['inputElement', { read: ElementRef, static: true }]
|
|
38000
|
-
}], literals: [{
|
|
38001
|
-
type: Input,
|
|
38002
|
-
args: ['p-literals']
|
|
38003
|
-
}], fieldValue: [{
|
|
38004
|
-
type: Input,
|
|
38005
|
-
args: ['p-field-value']
|
|
38006
|
-
}], change: [{
|
|
38007
|
-
type: Output,
|
|
38008
|
-
args: ['p-change']
|
|
38009
|
-
}], placeholder: [{
|
|
38010
|
-
type: Input,
|
|
38011
|
-
args: ['p-placeholder']
|
|
38012
|
-
}] }); })();
|
|
38013
|
-
|
|
38014
38179
|
/**
|
|
38015
38180
|
* @description
|
|
38016
38181
|
*
|
|
@@ -38052,7 +38217,8 @@ class PoFieldModule {
|
|
|
38052
38217
|
PoRadioModule,
|
|
38053
38218
|
PoLabelModule,
|
|
38054
38219
|
PoListBoxModule,
|
|
38055
|
-
PoSwitchModule,
|
|
38220
|
+
PoSwitchModule,
|
|
38221
|
+
PoTagModule, PoCheckboxGroupModule,
|
|
38056
38222
|
PoRadioGroupModule,
|
|
38057
38223
|
PoCleanModule,
|
|
38058
38224
|
PoDatepickerModule,
|
|
@@ -38060,7 +38226,8 @@ class PoFieldModule {
|
|
|
38060
38226
|
PoCheckboxModule,
|
|
38061
38227
|
PoRadioModule,
|
|
38062
38228
|
PoLabelModule,
|
|
38063
|
-
PoSwitchModule
|
|
38229
|
+
PoSwitchModule,
|
|
38230
|
+
PoTagModule] });
|
|
38064
38231
|
}
|
|
38065
38232
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoFieldModule, [{
|
|
38066
38233
|
type: NgModule,
|
|
@@ -38094,7 +38261,8 @@ class PoFieldModule {
|
|
|
38094
38261
|
PoRadioModule,
|
|
38095
38262
|
PoLabelModule,
|
|
38096
38263
|
PoListBoxModule,
|
|
38097
|
-
PoSwitchModule
|
|
38264
|
+
PoSwitchModule,
|
|
38265
|
+
PoTagModule
|
|
38098
38266
|
],
|
|
38099
38267
|
exports: [
|
|
38100
38268
|
PoCheckboxGroupModule,
|
|
@@ -38123,7 +38291,8 @@ class PoFieldModule {
|
|
|
38123
38291
|
PoCheckboxModule,
|
|
38124
38292
|
PoRadioModule,
|
|
38125
38293
|
PoLabelModule,
|
|
38126
|
-
PoSwitchModule
|
|
38294
|
+
PoSwitchModule,
|
|
38295
|
+
PoTagModule
|
|
38127
38296
|
],
|
|
38128
38297
|
declarations: [
|
|
38129
38298
|
PoComboComponent,
|
|
@@ -38138,7 +38307,6 @@ class PoFieldModule {
|
|
|
38138
38307
|
PoLookupModalComponent,
|
|
38139
38308
|
PoMultiselectComponent,
|
|
38140
38309
|
PoMultiselectDropdownComponent,
|
|
38141
|
-
PoMultiselectSearchComponent,
|
|
38142
38310
|
PoNumberComponent,
|
|
38143
38311
|
PoPasswordComponent,
|
|
38144
38312
|
PoRichTextBodyComponent,
|
|
@@ -38171,7 +38339,6 @@ class PoFieldModule {
|
|
|
38171
38339
|
PoLookupModalComponent,
|
|
38172
38340
|
PoMultiselectComponent,
|
|
38173
38341
|
PoMultiselectDropdownComponent,
|
|
38174
|
-
PoMultiselectSearchComponent,
|
|
38175
38342
|
PoNumberComponent,
|
|
38176
38343
|
PoPasswordComponent,
|
|
38177
38344
|
PoRichTextBodyComponent,
|
|
@@ -38211,7 +38378,8 @@ class PoFieldModule {
|
|
|
38211
38378
|
PoRadioModule,
|
|
38212
38379
|
PoLabelModule,
|
|
38213
38380
|
PoListBoxModule,
|
|
38214
|
-
PoSwitchModule
|
|
38381
|
+
PoSwitchModule,
|
|
38382
|
+
PoTagModule], exports: [PoCheckboxGroupModule,
|
|
38215
38383
|
PoRadioGroupModule,
|
|
38216
38384
|
PoCleanModule,
|
|
38217
38385
|
PoDatepickerModule,
|
|
@@ -38237,9 +38405,10 @@ class PoFieldModule {
|
|
|
38237
38405
|
PoCheckboxModule,
|
|
38238
38406
|
PoRadioModule,
|
|
38239
38407
|
PoLabelModule,
|
|
38240
|
-
PoSwitchModule
|
|
38408
|
+
PoSwitchModule,
|
|
38409
|
+
PoTagModule] }); })();
|
|
38241
38410
|
i0.ɵɵsetComponentScope(PoLookupModalComponent, function () { return [i1.NgIf, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.NgModel, PoDisclaimerGroupComponent, PoFieldContainerComponent, PoModalComponent, PoTableComponent]; }, []);
|
|
38242
|
-
i0.ɵɵsetComponentScope(PoMultiselectComponent, function () { return [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i5.CdkConnectedOverlay, i5.CdkOverlayOrigin,
|
|
38411
|
+
i0.ɵɵsetComponentScope(PoMultiselectComponent, function () { return [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i5.CdkConnectedOverlay, i5.CdkOverlayOrigin, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoTagComponent, PoMultiselectDropdownComponent]; }, []);
|
|
38243
38412
|
|
|
38244
38413
|
/**
|
|
38245
38414
|
* @usedBy PoInfoComponent
|