1597 lines
198 KiB
JavaScript
1597 lines
198 KiB
JavaScript
import { CommonModule, DOCUMENT } from '@angular/common';
|
|
import { ChangeDetectionStrategy, Component, ContentChildren, EventEmitter, Inject, Input, NgModule, Output, ViewChild, ViewEncapsulation, booleanAttribute, forwardRef, numberAttribute } from '@angular/core';
|
|
import { NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';
|
|
import { PrimeTemplate, SharedModule } from 'primeng/api';
|
|
import { AutoFocusModule } from 'primeng/autofocus';
|
|
import { ButtonModule } from 'primeng/button';
|
|
import { DomHandler } from 'primeng/dom';
|
|
import { AngleDownIcon } from 'primeng/icons/angledown';
|
|
import { AngleUpIcon } from 'primeng/icons/angleup';
|
|
import { TimesIcon } from 'primeng/icons/times';
|
|
import { InputTextModule } from 'primeng/inputtext';
|
|
import * as i0 from "@angular/core";
|
|
import * as i1 from "@angular/common";
|
|
import * as i2 from "primeng/inputtext";
|
|
import * as i3 from "primeng/button";
|
|
import * as i4 from "primeng/autofocus";
|
|
export const INPUTNUMBER_VALUE_ACCESSOR = {
|
|
provide: NG_VALUE_ACCESSOR,
|
|
useExisting: forwardRef(() => InputNumber),
|
|
multi: true
|
|
};
|
|
/**
|
|
* InputNumber is an input component to provide numerical input.
|
|
* @group Components
|
|
*/
|
|
export class InputNumber {
|
|
document;
|
|
el;
|
|
cd;
|
|
injector;
|
|
/**
|
|
* Displays spinner buttons.
|
|
* @group Props
|
|
*/
|
|
showButtons = false;
|
|
/**
|
|
* Whether to format the value.
|
|
* @group Props
|
|
*/
|
|
format = true;
|
|
/**
|
|
* Layout of the buttons, valid values are "stacked" (default), "horizontal" and "vertical".
|
|
* @group Props
|
|
*/
|
|
buttonLayout = 'stacked';
|
|
/**
|
|
* Identifier of the focus input to match a label defined for the component.
|
|
* @group Props
|
|
*/
|
|
inputId;
|
|
/**
|
|
* Style class of the component.
|
|
* @group Props
|
|
*/
|
|
styleClass;
|
|
/**
|
|
* Inline style of the component.
|
|
* @group Props
|
|
*/
|
|
style;
|
|
/**
|
|
* Advisory information to display on input.
|
|
* @group Props
|
|
*/
|
|
placeholder;
|
|
/**
|
|
* Size of the input field.
|
|
* @group Props
|
|
*/
|
|
size;
|
|
/**
|
|
* Maximum number of character allows in the input field.
|
|
* @group Props
|
|
*/
|
|
maxlength;
|
|
/**
|
|
* Specifies tab order of the element.
|
|
* @group Props
|
|
*/
|
|
tabindex;
|
|
/**
|
|
* Title text of the input text.
|
|
* @group Props
|
|
*/
|
|
title;
|
|
/**
|
|
* Specifies one or more IDs in the DOM that labels the input field.
|
|
* @group Props
|
|
*/
|
|
ariaLabelledBy;
|
|
/**
|
|
* Used to define a string that labels the input element.
|
|
* @group Props
|
|
*/
|
|
ariaLabel;
|
|
/**
|
|
* Used to indicate that user input is required on an element before a form can be submitted.
|
|
* @group Props
|
|
*/
|
|
ariaRequired;
|
|
/**
|
|
* Name of the input field.
|
|
* @group Props
|
|
*/
|
|
name;
|
|
/**
|
|
* Indicates that whether the input field is required.
|
|
* @group Props
|
|
*/
|
|
required;
|
|
/**
|
|
* Used to define a string that autocomplete attribute the current element.
|
|
* @group Props
|
|
*/
|
|
autocomplete;
|
|
/**
|
|
* Mininum boundary value.
|
|
* @group Props
|
|
*/
|
|
min;
|
|
/**
|
|
* Maximum boundary value.
|
|
* @group Props
|
|
*/
|
|
max;
|
|
/**
|
|
* Style class of the increment button.
|
|
* @group Props
|
|
*/
|
|
incrementButtonClass;
|
|
/**
|
|
* Style class of the decrement button.
|
|
* @group Props
|
|
*/
|
|
decrementButtonClass;
|
|
/**
|
|
* Style class of the increment button.
|
|
* @group Props
|
|
*/
|
|
incrementButtonIcon;
|
|
/**
|
|
* Style class of the decrement button.
|
|
* @group Props
|
|
*/
|
|
decrementButtonIcon;
|
|
/**
|
|
* When present, it specifies that an input field is read-only.
|
|
* @group Props
|
|
*/
|
|
readonly = false;
|
|
/**
|
|
* Step factor to increment/decrement the value.
|
|
* @group Props
|
|
*/
|
|
step = 1;
|
|
/**
|
|
* Determines whether the input field is empty.
|
|
* @group Props
|
|
*/
|
|
allowEmpty = true;
|
|
/**
|
|
* Locale to be used in formatting.
|
|
* @group Props
|
|
*/
|
|
locale;
|
|
/**
|
|
* The locale matching algorithm to use. Possible values are "lookup" and "best fit"; the default is "best fit". See Locale Negotiation for details.
|
|
* @group Props
|
|
*/
|
|
localeMatcher;
|
|
/**
|
|
* Defines the behavior of the component, valid values are "decimal" and "currency".
|
|
* @group Props
|
|
*/
|
|
mode = 'decimal';
|
|
/**
|
|
* The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB. There is no default value; if the style is "currency", the currency property must be provided.
|
|
* @group Props
|
|
*/
|
|
currency;
|
|
/**
|
|
* How to display the currency in currency formatting. Possible values are "symbol" to use a localized currency symbol such as €, ü"code" to use the ISO currency code, "name" to use a localized currency name such as "dollar"; the default is "symbol".
|
|
* @group Props
|
|
*/
|
|
currencyDisplay;
|
|
/**
|
|
* Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.
|
|
* @group Props
|
|
*/
|
|
useGrouping = true;
|
|
/**
|
|
* Specifies the input variant of the component.
|
|
* @group Props
|
|
*/
|
|
variant = 'outlined';
|
|
/**
|
|
* The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the ISO 4217 currency code list (2 if the list doesn't provide that information).
|
|
* @group Props
|
|
*/
|
|
minFractionDigits;
|
|
/**
|
|
* The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the ISO 4217 currency code list (2 if the list doesn't provide that information).
|
|
* @group Props
|
|
*/
|
|
maxFractionDigits;
|
|
/**
|
|
* Text to display before the value.
|
|
* @group Props
|
|
*/
|
|
prefix;
|
|
/**
|
|
* Text to display after the value.
|
|
* @group Props
|
|
*/
|
|
suffix;
|
|
/**
|
|
* Inline style of the input field.
|
|
* @group Props
|
|
*/
|
|
inputStyle;
|
|
/**
|
|
* Style class of the input field.
|
|
* @group Props
|
|
*/
|
|
inputStyleClass;
|
|
/**
|
|
* When enabled, a clear icon is displayed to clear the value.
|
|
* @group Props
|
|
*/
|
|
showClear = false;
|
|
/**
|
|
* When present, it specifies that the component should automatically get focus on load.
|
|
* @group Props
|
|
*/
|
|
autofocus;
|
|
/**
|
|
* When present, it specifies that the element should be disabled.
|
|
* @group Props
|
|
*/
|
|
get disabled() {
|
|
return this._disabled;
|
|
}
|
|
set disabled(disabled) {
|
|
if (disabled)
|
|
this.focused = false;
|
|
this._disabled = disabled;
|
|
if (this.timer)
|
|
this.clearTimer();
|
|
}
|
|
/**
|
|
* Callback to invoke on input.
|
|
* @param {InputNumberInputEvent} event - Custom input event.
|
|
* @group Emits
|
|
*/
|
|
onInput = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when the component receives focus.
|
|
* @param {Event} event - Browser event.
|
|
* @group Emits
|
|
*/
|
|
onFocus = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when the component loses focus.
|
|
* @param {Event} event - Browser event.
|
|
* @group Emits
|
|
*/
|
|
onBlur = new EventEmitter();
|
|
/**
|
|
* Callback to invoke on input key press.
|
|
* @param {KeyboardEvent} event - Keyboard event.
|
|
* @group Emits
|
|
*/
|
|
onKeyDown = new EventEmitter();
|
|
/**
|
|
* Callback to invoke when clear token is clicked.
|
|
* @group Emits
|
|
*/
|
|
onClear = new EventEmitter();
|
|
input;
|
|
templates;
|
|
clearIconTemplate;
|
|
incrementButtonIconTemplate;
|
|
decrementButtonIconTemplate;
|
|
value;
|
|
onModelChange = () => { };
|
|
onModelTouched = () => { };
|
|
focused;
|
|
initialized;
|
|
groupChar = '';
|
|
prefixChar = '';
|
|
suffixChar = '';
|
|
isSpecialChar;
|
|
timer;
|
|
lastValue;
|
|
_numeral;
|
|
numberFormat;
|
|
_decimal;
|
|
_decimalChar;
|
|
_group;
|
|
_minusSign;
|
|
_currency;
|
|
_prefix;
|
|
_suffix;
|
|
_index;
|
|
_disabled;
|
|
ngControl = null;
|
|
constructor(document, el, cd, injector) {
|
|
this.document = document;
|
|
this.el = el;
|
|
this.cd = cd;
|
|
this.injector = injector;
|
|
}
|
|
ngOnChanges(simpleChange) {
|
|
const props = ['locale', 'localeMatcher', 'mode', 'currency', 'currencyDisplay', 'useGrouping', 'minFractionDigits', 'maxFractionDigits', 'prefix', 'suffix'];
|
|
if (props.some((p) => !!simpleChange[p])) {
|
|
this.updateConstructParser();
|
|
}
|
|
}
|
|
ngAfterContentInit() {
|
|
this.templates.forEach((item) => {
|
|
switch (item.getType()) {
|
|
case 'clearicon':
|
|
this.clearIconTemplate = item.template;
|
|
break;
|
|
case 'incrementbuttonicon':
|
|
this.incrementButtonIconTemplate = item.template;
|
|
break;
|
|
case 'decrementbuttonicon':
|
|
this.decrementButtonIconTemplate = item.template;
|
|
break;
|
|
}
|
|
});
|
|
}
|
|
ngOnInit() {
|
|
this.ngControl = this.injector.get(NgControl, null, { optional: true });
|
|
this.constructParser();
|
|
this.initialized = true;
|
|
}
|
|
getOptions() {
|
|
return {
|
|
localeMatcher: this.localeMatcher,
|
|
style: this.mode,
|
|
currency: this.currency,
|
|
currencyDisplay: this.currencyDisplay,
|
|
useGrouping: this.useGrouping,
|
|
minimumFractionDigits: this.minFractionDigits,
|
|
maximumFractionDigits: this.maxFractionDigits
|
|
};
|
|
}
|
|
constructParser() {
|
|
this.numberFormat = new Intl.NumberFormat(this.locale, this.getOptions());
|
|
const numerals = [...new Intl.NumberFormat(this.locale, { useGrouping: false }).format(9876543210)].reverse();
|
|
const index = new Map(numerals.map((d, i) => [d, i]));
|
|
this._numeral = new RegExp(`[${numerals.join('')}]`, 'g');
|
|
this._group = this.getGroupingExpression();
|
|
this._minusSign = this.getMinusSignExpression();
|
|
this._currency = this.getCurrencyExpression();
|
|
this._decimal = this.getDecimalExpression();
|
|
this._decimalChar = this.getDecimalChar();
|
|
this._suffix = this.getSuffixExpression();
|
|
this._prefix = this.getPrefixExpression();
|
|
this._index = (d) => index.get(d);
|
|
}
|
|
updateConstructParser() {
|
|
if (this.initialized) {
|
|
this.constructParser();
|
|
}
|
|
}
|
|
escapeRegExp(text) {
|
|
return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
|
|
}
|
|
getDecimalExpression() {
|
|
const decimalChar = this.getDecimalChar();
|
|
return new RegExp(`[${decimalChar}]`, 'g');
|
|
}
|
|
getDecimalChar() {
|
|
const formatter = new Intl.NumberFormat(this.locale, { ...this.getOptions(), useGrouping: false });
|
|
return formatter
|
|
.format(1.1)
|
|
.replace(this._currency, '')
|
|
.trim()
|
|
.replace(this._numeral, '');
|
|
}
|
|
getGroupingExpression() {
|
|
const formatter = new Intl.NumberFormat(this.locale, { useGrouping: true });
|
|
this.groupChar = formatter.format(1000000).trim().replace(this._numeral, '').charAt(0);
|
|
return new RegExp(`[${this.groupChar}]`, 'g');
|
|
}
|
|
getMinusSignExpression() {
|
|
const formatter = new Intl.NumberFormat(this.locale, { useGrouping: false });
|
|
return new RegExp(`[${formatter.format(-1).trim().replace(this._numeral, '')}]`, 'g');
|
|
}
|
|
getCurrencyExpression() {
|
|
if (this.currency) {
|
|
const formatter = new Intl.NumberFormat(this.locale, { style: 'currency', currency: this.currency, currencyDisplay: this.currencyDisplay, minimumFractionDigits: 0, maximumFractionDigits: 0 });
|
|
return new RegExp(`[${formatter.format(1).replace(/\s/g, '').replace(this._numeral, '').replace(this._group, '')}]`, 'g');
|
|
}
|
|
return new RegExp(`[]`, 'g');
|
|
}
|
|
getPrefixExpression() {
|
|
if (this.prefix) {
|
|
this.prefixChar = this.prefix;
|
|
}
|
|
else {
|
|
const formatter = new Intl.NumberFormat(this.locale, { style: this.mode, currency: this.currency, currencyDisplay: this.currencyDisplay });
|
|
this.prefixChar = formatter.format(1).split('1')[0];
|
|
}
|
|
return new RegExp(`${this.escapeRegExp(this.prefixChar || '')}`, 'g');
|
|
}
|
|
getSuffixExpression() {
|
|
if (this.suffix) {
|
|
this.suffixChar = this.suffix;
|
|
}
|
|
else {
|
|
const formatter = new Intl.NumberFormat(this.locale, { style: this.mode, currency: this.currency, currencyDisplay: this.currencyDisplay, minimumFractionDigits: 0, maximumFractionDigits: 0 });
|
|
this.suffixChar = formatter.format(1).split('1')[1];
|
|
}
|
|
return new RegExp(`${this.escapeRegExp(this.suffixChar || '')}`, 'g');
|
|
}
|
|
formatValue(value) {
|
|
if (value != null) {
|
|
if (value === '-') {
|
|
// Minus sign
|
|
return value;
|
|
}
|
|
if (this.format) {
|
|
let formatter = new Intl.NumberFormat(this.locale, this.getOptions());
|
|
let formattedValue = formatter.format(value);
|
|
if (this.prefix && value != this.prefix) {
|
|
formattedValue = this.prefix + formattedValue;
|
|
}
|
|
if (this.suffix && value != this.suffix) {
|
|
formattedValue = formattedValue + this.suffix;
|
|
}
|
|
return formattedValue;
|
|
}
|
|
return value.toString();
|
|
}
|
|
return '';
|
|
}
|
|
parseValue(text) {
|
|
const suffixRegex = new RegExp(this._suffix, '');
|
|
const prefixRegex = new RegExp(this._prefix, '');
|
|
const currencyRegex = new RegExp(this._currency, '');
|
|
let filteredText = text
|
|
.replace(suffixRegex, '')
|
|
.replace(prefixRegex, '')
|
|
.trim()
|
|
.replace(/\s/g, '')
|
|
.replace(currencyRegex, '')
|
|
.replace(this._group, '')
|
|
.replace(this._minusSign, '-')
|
|
.replace(this._decimal, '.')
|
|
.replace(this._numeral, this._index);
|
|
if (filteredText) {
|
|
if (filteredText === '-')
|
|
// Minus sign
|
|
return filteredText;
|
|
let parsedValue = +filteredText;
|
|
return isNaN(parsedValue) ? null : parsedValue;
|
|
}
|
|
return null;
|
|
}
|
|
repeat(event, interval, dir) {
|
|
if (this.readonly) {
|
|
return;
|
|
}
|
|
let i = interval || 500;
|
|
this.clearTimer();
|
|
this.timer = setTimeout(() => {
|
|
this.repeat(event, 40, dir);
|
|
}, i);
|
|
this.spin(event, dir);
|
|
}
|
|
spin(event, dir) {
|
|
let step = this.step * dir;
|
|
let currentValue = this.parseValue(this.input?.nativeElement.value) || 0;
|
|
let newValue = this.validateValue(currentValue + step);
|
|
if (this.maxlength && this.maxlength < this.formatValue(newValue).length) {
|
|
return;
|
|
}
|
|
this.updateInput(newValue, null, 'spin', null);
|
|
this.updateModel(event, newValue);
|
|
this.handleOnInput(event, currentValue, newValue);
|
|
}
|
|
clear() {
|
|
this.value = null;
|
|
this.onModelChange(this.value);
|
|
this.onClear.emit();
|
|
}
|
|
onUpButtonMouseDown(event) {
|
|
if (event.button === 2) {
|
|
this.clearTimer();
|
|
return;
|
|
}
|
|
if (!this.disabled) {
|
|
this.input?.nativeElement.focus();
|
|
this.repeat(event, null, 1);
|
|
event.preventDefault();
|
|
}
|
|
}
|
|
onUpButtonMouseUp() {
|
|
if (!this.disabled) {
|
|
this.clearTimer();
|
|
}
|
|
}
|
|
onUpButtonMouseLeave() {
|
|
if (!this.disabled) {
|
|
this.clearTimer();
|
|
}
|
|
}
|
|
onUpButtonKeyDown(event) {
|
|
if (event.keyCode === 32 || event.keyCode === 13) {
|
|
this.repeat(event, null, 1);
|
|
}
|
|
}
|
|
onUpButtonKeyUp() {
|
|
if (!this.disabled) {
|
|
this.clearTimer();
|
|
}
|
|
}
|
|
onDownButtonMouseDown(event) {
|
|
if (event.button === 2) {
|
|
this.clearTimer();
|
|
return;
|
|
}
|
|
if (!this.disabled) {
|
|
this.input?.nativeElement.focus();
|
|
this.repeat(event, null, -1);
|
|
event.preventDefault();
|
|
}
|
|
}
|
|
onDownButtonMouseUp() {
|
|
if (!this.disabled) {
|
|
this.clearTimer();
|
|
}
|
|
}
|
|
onDownButtonMouseLeave() {
|
|
if (!this.disabled) {
|
|
this.clearTimer();
|
|
}
|
|
}
|
|
onDownButtonKeyUp() {
|
|
if (!this.disabled) {
|
|
this.clearTimer();
|
|
}
|
|
}
|
|
onDownButtonKeyDown(event) {
|
|
if (event.keyCode === 32 || event.keyCode === 13) {
|
|
this.repeat(event, null, -1);
|
|
}
|
|
}
|
|
onUserInput(event) {
|
|
if (this.readonly) {
|
|
return;
|
|
}
|
|
if (this.isSpecialChar) {
|
|
event.target.value = this.lastValue;
|
|
}
|
|
this.isSpecialChar = false;
|
|
}
|
|
onInputKeyDown(event) {
|
|
if (this.readonly) {
|
|
return;
|
|
}
|
|
this.lastValue = event.target.value;
|
|
if (event.shiftKey || event.altKey) {
|
|
this.isSpecialChar = true;
|
|
return;
|
|
}
|
|
let selectionStart = event.target.selectionStart;
|
|
let selectionEnd = event.target.selectionEnd;
|
|
let inputValue = event.target.value;
|
|
let newValueStr = null;
|
|
if (event.altKey) {
|
|
event.preventDefault();
|
|
}
|
|
switch (event.key) {
|
|
case 'ArrowUp':
|
|
this.spin(event, 1);
|
|
event.preventDefault();
|
|
break;
|
|
case 'ArrowDown':
|
|
this.spin(event, -1);
|
|
event.preventDefault();
|
|
break;
|
|
case 'ArrowLeft':
|
|
for (let index = selectionStart; index <= inputValue.length; index++) {
|
|
const previousCharIndex = index === 0 ? 0 : index - 1;
|
|
if (this.isNumeralChar(inputValue.charAt(previousCharIndex))) {
|
|
this.input.nativeElement.setSelectionRange(index, index);
|
|
break;
|
|
}
|
|
}
|
|
break;
|
|
case 'ArrowRight':
|
|
for (let index = selectionEnd; index >= 0; index--) {
|
|
if (this.isNumeralChar(inputValue.charAt(index))) {
|
|
this.input.nativeElement.setSelectionRange(index, index);
|
|
break;
|
|
}
|
|
}
|
|
break;
|
|
case 'Tab':
|
|
case 'Enter':
|
|
newValueStr = this.validateValue(this.parseValue(this.input.nativeElement.value));
|
|
this.input.nativeElement.value = this.formatValue(newValueStr);
|
|
this.input.nativeElement.setAttribute('aria-valuenow', newValueStr);
|
|
this.updateModel(event, newValueStr);
|
|
break;
|
|
case 'Backspace': {
|
|
event.preventDefault();
|
|
if (selectionStart === selectionEnd) {
|
|
if ((selectionStart == 1 && this.prefix) || (selectionStart == inputValue.length && this.suffix)) {
|
|
break;
|
|
}
|
|
const deleteChar = inputValue.charAt(selectionStart - 1);
|
|
const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
|
|
if (this.isNumeralChar(deleteChar)) {
|
|
const decimalLength = this.getDecimalLength(inputValue);
|
|
if (this._group.test(deleteChar)) {
|
|
this._group.lastIndex = 0;
|
|
newValueStr = inputValue.slice(0, selectionStart - 2) + inputValue.slice(selectionStart - 1);
|
|
}
|
|
else if (this._decimal.test(deleteChar)) {
|
|
this._decimal.lastIndex = 0;
|
|
if (decimalLength) {
|
|
this.input?.nativeElement.setSelectionRange(selectionStart - 1, selectionStart - 1);
|
|
}
|
|
else {
|
|
newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
|
|
}
|
|
}
|
|
else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
|
|
const insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? '' : '0';
|
|
newValueStr = inputValue.slice(0, selectionStart - 1) + insertedText + inputValue.slice(selectionStart);
|
|
}
|
|
else if (decimalCharIndexWithoutPrefix === 1) {
|
|
newValueStr = inputValue.slice(0, selectionStart - 1) + '0' + inputValue.slice(selectionStart);
|
|
newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
|
|
}
|
|
else {
|
|
newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
|
|
}
|
|
}
|
|
else if (this.mode === 'currency' && deleteChar.search(this._currency) != -1) {
|
|
newValueStr = inputValue.slice(1);
|
|
}
|
|
this.updateValue(event, newValueStr, null, 'delete-single');
|
|
}
|
|
else {
|
|
newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
|
|
this.updateValue(event, newValueStr, null, 'delete-range');
|
|
}
|
|
break;
|
|
}
|
|
case 'Delete':
|
|
event.preventDefault();
|
|
if (selectionStart === selectionEnd) {
|
|
if ((selectionStart == 0 && this.prefix) || (selectionStart == inputValue.length - 1 && this.suffix)) {
|
|
break;
|
|
}
|
|
const deleteChar = inputValue.charAt(selectionStart);
|
|
const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
|
|
if (this.isNumeralChar(deleteChar)) {
|
|
const decimalLength = this.getDecimalLength(inputValue);
|
|
if (this._group.test(deleteChar)) {
|
|
this._group.lastIndex = 0;
|
|
newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 2);
|
|
}
|
|
else if (this._decimal.test(deleteChar)) {
|
|
this._decimal.lastIndex = 0;
|
|
if (decimalLength) {
|
|
this.input?.nativeElement.setSelectionRange(selectionStart + 1, selectionStart + 1);
|
|
}
|
|
else {
|
|
newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
|
|
}
|
|
}
|
|
else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
|
|
const insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? '' : '0';
|
|
newValueStr = inputValue.slice(0, selectionStart) + insertedText + inputValue.slice(selectionStart + 1);
|
|
}
|
|
else if (decimalCharIndexWithoutPrefix === 1) {
|
|
newValueStr = inputValue.slice(0, selectionStart) + '0' + inputValue.slice(selectionStart + 1);
|
|
newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
|
|
}
|
|
else {
|
|
newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
|
|
}
|
|
}
|
|
this.updateValue(event, newValueStr, null, 'delete-back-single');
|
|
}
|
|
else {
|
|
newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
|
|
this.updateValue(event, newValueStr, null, 'delete-range');
|
|
}
|
|
break;
|
|
case 'Home':
|
|
if (this.min) {
|
|
this.updateModel(event, this.min);
|
|
event.preventDefault();
|
|
}
|
|
break;
|
|
case 'End':
|
|
if (this.max) {
|
|
this.updateModel(event, this.max);
|
|
event.preventDefault();
|
|
}
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
this.onKeyDown.emit(event);
|
|
}
|
|
onInputKeyPress(event) {
|
|
if (this.readonly) {
|
|
return;
|
|
}
|
|
let code = event.which || event.keyCode;
|
|
let char = String.fromCharCode(code);
|
|
let isDecimalSign = this.isDecimalSign(char);
|
|
const isMinusSign = this.isMinusSign(char);
|
|
if (code != 13) {
|
|
event.preventDefault();
|
|
}
|
|
if (!isDecimalSign && event.code === 'NumpadDecimal') {
|
|
isDecimalSign = true;
|
|
char = this._decimalChar;
|
|
code = char.charCodeAt(0);
|
|
}
|
|
const newValue = this.parseValue(this.input.nativeElement.value + char);
|
|
const newValueStr = newValue != null ? newValue.toString() : '';
|
|
if (this.maxlength && this.getSelectedText()?.length == this.maxlength) {
|
|
this.insert(event, char, { isDecimalSign, isMinusSign });
|
|
return;
|
|
}
|
|
if (this.maxlength && newValueStr.length > this.maxlength) {
|
|
return;
|
|
}
|
|
if ((48 <= code && code <= 57) || isMinusSign || isDecimalSign) {
|
|
this.insert(event, char, { isDecimalSign, isMinusSign });
|
|
}
|
|
}
|
|
getSelectedText() {
|
|
return (window
|
|
?.getSelection()
|
|
?.toString()
|
|
.replaceAll(/[^0-9']/g, '') || '');
|
|
}
|
|
onPaste(event) {
|
|
if (!this.disabled && !this.readonly) {
|
|
event.preventDefault();
|
|
let data = (event.clipboardData || this.document.defaultView['clipboardData']).getData('Text');
|
|
if (data) {
|
|
if (this.maxlength) {
|
|
data = data.toString().substring(0, this.maxlength);
|
|
}
|
|
let filteredData = this.parseValue(data);
|
|
if (filteredData != null) {
|
|
this.insert(event, filteredData.toString());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
allowMinusSign() {
|
|
return this.min == null || this.min < 0;
|
|
}
|
|
isMinusSign(char) {
|
|
if (this._minusSign.test(char) || char === '-') {
|
|
this._minusSign.lastIndex = 0;
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
isDecimalSign(char) {
|
|
if (this._decimal.test(char)) {
|
|
this._decimal.lastIndex = 0;
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
isDecimalMode() {
|
|
return this.mode === 'decimal';
|
|
}
|
|
getDecimalCharIndexes(val) {
|
|
let decimalCharIndex = val.search(this._decimal);
|
|
this._decimal.lastIndex = 0;
|
|
const filteredVal = val
|
|
.replace(this._prefix, '')
|
|
.trim()
|
|
.replace(/\s/g, '')
|
|
.replace(this._currency, '');
|
|
const decimalCharIndexWithoutPrefix = filteredVal.search(this._decimal);
|
|
this._decimal.lastIndex = 0;
|
|
return { decimalCharIndex, decimalCharIndexWithoutPrefix };
|
|
}
|
|
getCharIndexes(val) {
|
|
const decimalCharIndex = val.search(this._decimal);
|
|
this._decimal.lastIndex = 0;
|
|
const minusCharIndex = val.search(this._minusSign);
|
|
this._minusSign.lastIndex = 0;
|
|
const suffixCharIndex = val.search(this._suffix);
|
|
this._suffix.lastIndex = 0;
|
|
const currencyCharIndex = val.search(this._currency);
|
|
this._currency.lastIndex = 0;
|
|
return { decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex };
|
|
}
|
|
insert(event, text, sign = { isDecimalSign: false, isMinusSign: false }) {
|
|
const minusCharIndexOnText = text.search(this._minusSign);
|
|
this._minusSign.lastIndex = 0;
|
|
if (!this.allowMinusSign() && minusCharIndexOnText !== -1) {
|
|
return;
|
|
}
|
|
let selectionStart = this.input?.nativeElement.selectionStart;
|
|
let selectionEnd = this.input?.nativeElement.selectionEnd;
|
|
let inputValue = this.input?.nativeElement.value.trim();
|
|
const { decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex } = this.getCharIndexes(inputValue);
|
|
let newValueStr;
|
|
if (sign.isMinusSign) {
|
|
if (selectionStart === 0) {
|
|
newValueStr = inputValue;
|
|
if (minusCharIndex === -1 || selectionEnd !== 0) {
|
|
newValueStr = this.insertText(inputValue, text, 0, selectionEnd);
|
|
}
|
|
this.updateValue(event, newValueStr, text, 'insert');
|
|
}
|
|
}
|
|
else if (sign.isDecimalSign) {
|
|
if (decimalCharIndex > 0 && selectionStart === decimalCharIndex) {
|
|
this.updateValue(event, inputValue, text, 'insert');
|
|
}
|
|
else if (decimalCharIndex > selectionStart && decimalCharIndex < selectionEnd) {
|
|
newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
|
|
this.updateValue(event, newValueStr, text, 'insert');
|
|
}
|
|
else if (decimalCharIndex === -1 && this.maxFractionDigits) {
|
|
newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
|
|
this.updateValue(event, newValueStr, text, 'insert');
|
|
}
|
|
}
|
|
else {
|
|
const maxFractionDigits = this.numberFormat.resolvedOptions().maximumFractionDigits;
|
|
const operation = selectionStart !== selectionEnd ? 'range-insert' : 'insert';
|
|
if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
|
|
if (selectionStart + text.length - (decimalCharIndex + 1) <= maxFractionDigits) {
|
|
const charIndex = currencyCharIndex >= selectionStart ? currencyCharIndex - 1 : suffixCharIndex >= selectionStart ? suffixCharIndex : inputValue.length;
|
|
newValueStr = inputValue.slice(0, selectionStart) + text + inputValue.slice(selectionStart + text.length, charIndex) + inputValue.slice(charIndex);
|
|
this.updateValue(event, newValueStr, text, operation);
|
|
}
|
|
}
|
|
else {
|
|
newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
|
|
this.updateValue(event, newValueStr, text, operation);
|
|
}
|
|
}
|
|
}
|
|
insertText(value, text, start, end) {
|
|
let textSplit = text === '.' ? text : text.split('.');
|
|
if (textSplit.length === 2) {
|
|
const decimalCharIndex = value.slice(start, end).search(this._decimal);
|
|
this._decimal.lastIndex = 0;
|
|
return decimalCharIndex > 0 ? value.slice(0, start) + this.formatValue(text) + value.slice(end) : value || this.formatValue(text);
|
|
}
|
|
else if (end - start === value.length) {
|
|
return this.formatValue(text);
|
|
}
|
|
else if (start === 0) {
|
|
return text + value.slice(end);
|
|
}
|
|
else if (end === value.length) {
|
|
return value.slice(0, start) + text;
|
|
}
|
|
else {
|
|
return value.slice(0, start) + text + value.slice(end);
|
|
}
|
|
}
|
|
deleteRange(value, start, end) {
|
|
let newValueStr;
|
|
if (end - start === value.length)
|
|
newValueStr = '';
|
|
else if (start === 0)
|
|
newValueStr = value.slice(end);
|
|
else if (end === value.length)
|
|
newValueStr = value.slice(0, start);
|
|
else
|
|
newValueStr = value.slice(0, start) + value.slice(end);
|
|
return newValueStr;
|
|
}
|
|
initCursor() {
|
|
let selectionStart = this.input?.nativeElement.selectionStart;
|
|
let inputValue = this.input?.nativeElement.value;
|
|
let valueLength = inputValue.length;
|
|
let index = null;
|
|
// remove prefix
|
|
let prefixLength = (this.prefixChar || '').length;
|
|
inputValue = inputValue.replace(this._prefix, '');
|
|
selectionStart = selectionStart - prefixLength;
|
|
let char = inputValue.charAt(selectionStart);
|
|
if (this.isNumeralChar(char)) {
|
|
return selectionStart + prefixLength;
|
|
}
|
|
//left
|
|
let i = selectionStart - 1;
|
|
while (i >= 0) {
|
|
char = inputValue.charAt(i);
|
|
if (this.isNumeralChar(char)) {
|
|
index = i + prefixLength;
|
|
break;
|
|
}
|
|
else {
|
|
i--;
|
|
}
|
|
}
|
|
if (index !== null) {
|
|
this.input?.nativeElement.setSelectionRange(index + 1, index + 1);
|
|
}
|
|
else {
|
|
i = selectionStart;
|
|
while (i < valueLength) {
|
|
char = inputValue.charAt(i);
|
|
if (this.isNumeralChar(char)) {
|
|
index = i + prefixLength;
|
|
break;
|
|
}
|
|
else {
|
|
i++;
|
|
}
|
|
}
|
|
if (index !== null) {
|
|
this.input?.nativeElement.setSelectionRange(index, index);
|
|
}
|
|
}
|
|
return index || 0;
|
|
}
|
|
onInputClick() {
|
|
const currentValue = this.input?.nativeElement.value;
|
|
if (!this.readonly && currentValue !== DomHandler.getSelection()) {
|
|
this.initCursor();
|
|
}
|
|
}
|
|
isNumeralChar(char) {
|
|
if (char.length === 1 && (this._numeral.test(char) || this._decimal.test(char) || this._group.test(char) || this._minusSign.test(char))) {
|
|
this.resetRegex();
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
resetRegex() {
|
|
this._numeral.lastIndex = 0;
|
|
this._decimal.lastIndex = 0;
|
|
this._group.lastIndex = 0;
|
|
this._minusSign.lastIndex = 0;
|
|
}
|
|
updateValue(event, valueStr, insertedValueStr, operation) {
|
|
let currentValue = this.input?.nativeElement.value;
|
|
let newValue = null;
|
|
if (valueStr != null) {
|
|
newValue = this.parseValue(valueStr);
|
|
newValue = !newValue && !this.allowEmpty ? 0 : newValue;
|
|
this.updateInput(newValue, insertedValueStr, operation, valueStr);
|
|
this.handleOnInput(event, currentValue, newValue);
|
|
}
|
|
}
|
|
handleOnInput(event, currentValue, newValue) {
|
|
if (this.isValueChanged(currentValue, newValue)) {
|
|
this.input.nativeElement.value = this.formatValue(newValue);
|
|
this.input?.nativeElement.setAttribute('aria-valuenow', newValue);
|
|
this.updateModel(event, newValue);
|
|
this.onInput.emit({ originalEvent: event, value: newValue, formattedValue: currentValue });
|
|
}
|
|
}
|
|
isValueChanged(currentValue, newValue) {
|
|
if (newValue === null && currentValue !== null) {
|
|
return true;
|
|
}
|
|
if (newValue != null) {
|
|
let parsedCurrentValue = typeof currentValue === 'string' ? this.parseValue(currentValue) : currentValue;
|
|
return newValue !== parsedCurrentValue;
|
|
}
|
|
return false;
|
|
}
|
|
validateValue(value) {
|
|
if (value === '-' || value == null) {
|
|
return null;
|
|
}
|
|
if (this.min != null && value < this.min) {
|
|
return this.min;
|
|
}
|
|
if (this.max != null && value > this.max) {
|
|
return this.max;
|
|
}
|
|
return value;
|
|
}
|
|
updateInput(value, insertedValueStr, operation, valueStr) {
|
|
insertedValueStr = insertedValueStr || '';
|
|
let inputValue = this.input?.nativeElement.value;
|
|
let newValue = this.formatValue(value);
|
|
let currentLength = inputValue.length;
|
|
if (newValue !== valueStr) {
|
|
newValue = this.concatValues(newValue, valueStr);
|
|
}
|
|
if (currentLength === 0) {
|
|
this.input.nativeElement.value = newValue;
|
|
this.input.nativeElement.setSelectionRange(0, 0);
|
|
const index = this.initCursor();
|
|
const selectionEnd = index + insertedValueStr.length;
|
|
this.input.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
|
|
}
|
|
else {
|
|
let selectionStart = this.input.nativeElement.selectionStart;
|
|
let selectionEnd = this.input.nativeElement.selectionEnd;
|
|
if (this.maxlength && newValue.length > this.maxlength) {
|
|
newValue = newValue.slice(0, this.maxlength);
|
|
selectionStart = Math.min(selectionStart, this.maxlength);
|
|
selectionEnd = Math.min(selectionEnd, this.maxlength);
|
|
}
|
|
if (this.maxlength && this.maxlength < newValue.length) {
|
|
return;
|
|
}
|
|
this.input.nativeElement.value = newValue;
|
|
let newLength = newValue.length;
|
|
if (operation === 'range-insert') {
|
|
const startValue = this.parseValue((inputValue || '').slice(0, selectionStart));
|
|
const startValueStr = startValue !== null ? startValue.toString() : '';
|
|
const startExpr = startValueStr.split('').join(`(${this.groupChar})?`);
|
|
const sRegex = new RegExp(startExpr, 'g');
|
|
sRegex.test(newValue);
|
|
const tExpr = insertedValueStr.split('').join(`(${this.groupChar})?`);
|
|
const tRegex = new RegExp(tExpr, 'g');
|
|
tRegex.test(newValue.slice(sRegex.lastIndex));
|
|
selectionEnd = sRegex.lastIndex + tRegex.lastIndex;
|
|
this.input.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
|
|
}
|
|
else if (newLength === currentLength) {
|
|
if (operation === 'insert' || operation === 'delete-back-single')
|
|
this.input.nativeElement.setSelectionRange(selectionEnd + 1, selectionEnd + 1);
|
|
else if (operation === 'delete-single')
|
|
this.input.nativeElement.setSelectionRange(selectionEnd - 1, selectionEnd - 1);
|
|
else if (operation === 'delete-range' || operation === 'spin')
|
|
this.input.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
|
|
}
|
|
else if (operation === 'delete-back-single') {
|
|
let prevChar = inputValue.charAt(selectionEnd - 1);
|
|
let nextChar = inputValue.charAt(selectionEnd);
|
|
let diff = currentLength - newLength;
|
|
let isGroupChar = this._group.test(nextChar);
|
|
if (isGroupChar && diff === 1) {
|
|
selectionEnd += 1;
|
|
}
|
|
else if (!isGroupChar && this.isNumeralChar(prevChar)) {
|
|
selectionEnd += -1 * diff + 1;
|
|
}
|
|
this._group.lastIndex = 0;
|
|
this.input.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
|
|
}
|
|
else if (inputValue === '-' && operation === 'insert') {
|
|
this.input.nativeElement.setSelectionRange(0, 0);
|
|
const index = this.initCursor();
|
|
const selectionEnd = index + insertedValueStr.length + 1;
|
|
this.input.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
|
|
}
|
|
else {
|
|
selectionEnd = selectionEnd + (newLength - currentLength);
|
|
this.input.nativeElement.setSelectionRange(selectionEnd, selectionEnd);
|
|
}
|
|
}
|
|
this.input.nativeElement.setAttribute('aria-valuenow', value);
|
|
}
|
|
concatValues(val1, val2) {
|
|
if (val1 && val2) {
|
|
let decimalCharIndex = val2.search(this._decimal);
|
|
this._decimal.lastIndex = 0;
|
|
if (this.suffixChar) {
|
|
return decimalCharIndex !== -1 ? val1 : val1.replace(this.suffixChar, '').split(this._decimal)[0] + val2.replace(this.suffixChar, '').slice(decimalCharIndex) + this.suffixChar;
|
|
}
|
|
else {
|
|
return decimalCharIndex !== -1 ? val1.split(this._decimal)[0] + val2.slice(decimalCharIndex) : val1;
|
|
}
|
|
}
|
|
return val1;
|
|
}
|
|
getDecimalLength(value) {
|
|
if (value) {
|
|
const valueSplit = value.split(this._decimal);
|
|
if (valueSplit.length === 2) {
|
|
return valueSplit[1]
|
|
.replace(this._suffix, '')
|
|
.trim()
|
|
.replace(/\s/g, '')
|
|
.replace(this._currency, '').length;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
onInputFocus(event) {
|
|
this.focused = true;
|
|
this.onFocus.emit(event);
|
|
}
|
|
onInputBlur(event) {
|
|
this.focused = false;
|
|
const newValueNumber = this.validateValue(this.parseValue(this.input.nativeElement.value));
|
|
const newValueString = newValueNumber?.toString();
|
|
this.input.nativeElement.value = this.formatValue(newValueString);
|
|
this.input.nativeElement.setAttribute('aria-valuenow', newValueString);
|
|
this.updateModel(event, newValueNumber);
|
|
this.onBlur.emit(event);
|
|
}
|
|
formattedValue() {
|
|
const val = !this.value && !this.allowEmpty ? 0 : this.value;
|
|
return this.formatValue(val);
|
|
}
|
|
updateModel(event, value) {
|
|
const isBlurUpdateOnMode = this.ngControl?.control?.updateOn === 'blur';
|
|
if (this.value !== value) {
|
|
this.value = value;
|
|
if (!(isBlurUpdateOnMode && this.focused)) {
|
|
this.onModelChange(value);
|
|
}
|
|
}
|
|
else if (isBlurUpdateOnMode) {
|
|
this.onModelChange(value);
|
|
}
|
|
this.onModelTouched();
|
|
}
|
|
writeValue(value) {
|
|
this.value = value;
|
|
this.cd.markForCheck();
|
|
}
|
|
registerOnChange(fn) {
|
|
this.onModelChange = fn;
|
|
}
|
|
registerOnTouched(fn) {
|
|
this.onModelTouched = fn;
|
|
}
|
|
setDisabledState(val) {
|
|
this.disabled = val;
|
|
this.cd.markForCheck();
|
|
}
|
|
get filled() {
|
|
return this.value != null && this.value.toString().length > 0;
|
|
}
|
|
clearTimer() {
|
|
if (this.timer) {
|
|
clearInterval(this.timer);
|
|
}
|
|
}
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: InputNumber, deps: [{ token: DOCUMENT }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "17.3.7", type: InputNumber, selector: "p-inputNumber", inputs: { showButtons: ["showButtons", "showButtons", booleanAttribute], format: ["format", "format", booleanAttribute], buttonLayout: "buttonLayout", inputId: "inputId", styleClass: "styleClass", style: "style", placeholder: "placeholder", size: ["size", "size", numberAttribute], maxlength: ["maxlength", "maxlength", numberAttribute], tabindex: ["tabindex", "tabindex", numberAttribute], title: "title", ariaLabelledBy: "ariaLabelledBy", ariaLabel: "ariaLabel", ariaRequired: ["ariaRequired", "ariaRequired", booleanAttribute], name: "name", required: ["required", "required", booleanAttribute], autocomplete: "autocomplete", min: ["min", "min", numberAttribute], max: ["max", "max", numberAttribute], incrementButtonClass: "incrementButtonClass", decrementButtonClass: "decrementButtonClass", incrementButtonIcon: "incrementButtonIcon", decrementButtonIcon: "decrementButtonIcon", readonly: ["readonly", "readonly", booleanAttribute], step: ["step", "step", numberAttribute], allowEmpty: ["allowEmpty", "allowEmpty", booleanAttribute], locale: "locale", localeMatcher: "localeMatcher", mode: "mode", currency: "currency", currencyDisplay: "currencyDisplay", useGrouping: ["useGrouping", "useGrouping", booleanAttribute], variant: "variant", minFractionDigits: ["minFractionDigits", "minFractionDigits", (value) => numberAttribute(value, null)], maxFractionDigits: ["maxFractionDigits", "maxFractionDigits", (value) => numberAttribute(value, null)], prefix: "prefix", suffix: "suffix", inputStyle: "inputStyle", inputStyleClass: "inputStyleClass", showClear: ["showClear", "showClear", booleanAttribute], autofocus: ["autofocus", "autofocus", booleanAttribute], disabled: "disabled" }, outputs: { onInput: "onInput", onFocus: "onFocus", onBlur: "onBlur", onKeyDown: "onKeyDown", onClear: "onClear" }, host: { properties: { "class.p-inputwrapper-filled": "filled", "class.p-inputwrapper-focus": "focused", "class.p-inputnumber-clearable": "showClear && buttonLayout != \"vertical\"" }, classAttribute: "p-element p-inputwrapper" }, providers: [INPUTNUMBER_VALUE_ACCESSOR], queries: [{ propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
<span
|
|
[ngClass]="{
|
|
'p-inputnumber p-component': true,
|
|
'p-inputnumber-buttons-stacked': this.showButtons && this.buttonLayout === 'stacked',
|
|
'p-inputnumber-buttons-horizontal': this.showButtons && this.buttonLayout === 'horizontal',
|
|
'p-inputnumber-buttons-vertical': this.showButtons && this.buttonLayout === 'vertical'
|
|
}"
|
|
[ngStyle]="style"
|
|
[class]="styleClass"
|
|
[attr.data-pc-name]="'inputnumber'"
|
|
[attr.data-pc-section]="'root'"
|
|
>
|
|
<input
|
|
pInputText
|
|
#input
|
|
[attr.id]="inputId"
|
|
role="spinbutton"
|
|
[ngClass]="'p-inputnumber-input'"
|
|
[ngStyle]="inputStyle"
|
|
[class]="inputStyleClass"
|
|
[value]="formattedValue()"
|
|
[variant]="variant"
|
|
[attr.aria-valuemin]="min"
|
|
[attr.aria-valuemax]="max"
|
|
[attr.aria-valuenow]="value"
|
|
[disabled]="disabled"
|
|
[readonly]="readonly"
|
|
[attr.placeholder]="placeholder"
|
|
[attr.aria-label]="ariaLabel"
|
|
[attr.aria-labelledby]="ariaLabelledBy"
|
|
[attr.title]="title"
|
|
[attr.size]="size"
|
|
[attr.name]="name"
|
|
[attr.autocomplete]="autocomplete"
|
|
[attr.maxlength]="maxlength"
|
|
[attr.tabindex]="tabindex"
|
|
[attr.aria-required]="ariaRequired"
|
|
[attr.required]="required"
|
|
[attr.min]="min"
|
|
[attr.max]="max"
|
|
inputmode="decimal"
|
|
(input)="onUserInput($event)"
|
|
(keydown)="onInputKeyDown($event)"
|
|
(keypress)="onInputKeyPress($event)"
|
|
(paste)="onPaste($event)"
|
|
(click)="onInputClick()"
|
|
(focus)="onInputFocus($event)"
|
|
(blur)="onInputBlur($event)"
|
|
[attr.data-pc-section]="'input'"
|
|
pAutoFocus
|
|
[autofocus]="autofocus"
|
|
/>
|
|
<ng-container *ngIf="buttonLayout != 'vertical' && showClear && value">
|
|
<TimesIcon *ngIf="!clearIconTemplate" [ngClass]="'p-inputnumber-clear-icon'" (click)="clear()" [attr.data-pc-section]="'clearIcon'" />
|
|
<span *ngIf="clearIconTemplate" (click)="clear()" class="p-inputnumber-clear-icon" [attr.data-pc-section]="'clearIcon'">
|
|
<ng-template *ngTemplateOutlet="clearIconTemplate"></ng-template>
|
|
</span>
|
|
</ng-container>
|
|
<span class="p-inputnumber-button-group" *ngIf="showButtons && buttonLayout === 'stacked'" [attr.data-pc-section]="'buttonGroup'">
|
|
<button
|
|
type="button"
|
|
pButton
|
|
[ngClass]="{ 'p-inputnumber-button p-inputnumber-button-up': true }"
|
|
class="p-button-icon-only"
|
|
[class]="incrementButtonClass"
|
|
[disabled]="disabled"
|
|
tabindex="-1"
|
|
(mousedown)="onUpButtonMouseDown($event)"
|
|
(mouseup)="onUpButtonMouseUp()"
|
|
(mouseleave)="onUpButtonMouseLeave()"
|
|
(keydown)="onUpButtonKeyDown($event)"
|
|
(keyup)="onUpButtonKeyUp()"
|
|
[attr.aria-hidden]="true"
|
|
[attr.data-pc-section]="'incrementbutton'"
|
|
>
|
|
<span *ngIf="incrementButtonIcon" [ngClass]="incrementButtonIcon" [attr.data-pc-section]="'incrementbuttonicon'"></span>
|
|
<ng-container *ngIf="!incrementButtonIcon">
|
|
<AngleUpIcon *ngIf="!incrementButtonIconTemplate" [attr.data-pc-section]="'incrementbuttonicon'" />
|
|
<ng-template *ngTemplateOutlet="incrementButtonIconTemplate"></ng-template>
|
|
</ng-container>
|
|
</button>
|
|
<button
|
|
type="button"
|
|
pButton
|
|
[ngClass]="{ 'p-inputnumber-button p-inputnumber-button-down': true }"
|
|
class="p-button-icon-only"
|
|
[class]="decrementButtonClass"
|
|
[disabled]="disabled"
|
|
tabindex="-1"
|
|
[attr.aria-hidden]="true"
|
|
(mousedown)="onDownButtonMouseDown($event)"
|
|
(mouseup)="onDownButtonMouseUp()"
|
|
(mouseleave)="onDownButtonMouseLeave()"
|
|
(keydown)="onDownButtonKeyDown($event)"
|
|
(keyup)="onDownButtonKeyUp()"
|
|
[attr.data-pc-section]="decrementbutton"
|
|
>
|
|
<span *ngIf="decrementButtonIcon" [ngClass]="decrementButtonIcon" [attr.data-pc-section]="'decrementbuttonicon'"></span>
|
|
<ng-container *ngIf="!decrementButtonIcon">
|
|
<AngleDownIcon *ngIf="!decrementButtonIconTemplate" [attr.data-pc-section]="'decrementbuttonicon'" />
|
|
<ng-template *ngTemplateOutlet="decrementButtonIconTemplate"></ng-template>
|
|
</ng-container>
|
|
</button>
|
|
</span>
|
|
<button
|
|
*ngIf="showButtons && buttonLayout !== 'stacked'"
|
|
type="button"
|
|
pButton
|
|
[ngClass]="{ 'p-inputnumber-button p-inputnumber-button-up': true }"
|
|
[class]="incrementButtonClass"
|
|
class="p-button-icon-only"
|
|
[disabled]="disabled"
|
|
tabindex="-1"
|
|
[attr.aria-hidden]="true"
|
|
(mousedown)="onUpButtonMouseDown($event)"
|
|
(mouseup)="onUpButtonMouseUp()"
|
|
(mouseleave)="onUpButtonMouseLeave()"
|
|
(keydown)="onUpButtonKeyDown($event)"
|
|
(keyup)="onUpButtonKeyUp()"
|
|
[attr.data-pc-section]="'incrementbutton'"
|
|
>
|
|
<span *ngIf="incrementButtonIcon" [ngClass]="incrementButtonIcon" [attr.data-pc-section]="'incrementbuttonicon'"></span>
|
|
<ng-container *ngIf="!incrementButtonIcon">
|
|
<AngleUpIcon *ngIf="!incrementButtonIconTemplate" [attr.data-pc-section]="'incrementbuttonicon'" />
|
|
<ng-template *ngTemplateOutlet="incrementButtonIconTemplate"></ng-template>
|
|
</ng-container>
|
|
</button>
|
|
<button
|
|
*ngIf="showButtons && buttonLayout !== 'stacked'"
|
|
type="button"
|
|
pButton
|
|
[ngClass]="{ 'p-inputnumber-button p-inputnumber-button-down': true }"
|
|
class="p-button-icon-only"
|
|
[class]="decrementButtonClass"
|
|
[disabled]="disabled"
|
|
tabindex="-1"
|
|
[attr.aria-hidden]="true"
|
|
(mousedown)="onDownButtonMouseDown($event)"
|
|
(mouseup)="onDownButtonMouseUp()"
|
|
(mouseleave)="onDownButtonMouseLeave()"
|
|
(keydown)="onDownButtonKeyDown($event)"
|
|
(keyup)="onDownButtonKeyUp()"
|
|
[attr.data-pc-section]="'decrementbutton'"
|
|
>
|
|
<span *ngIf="decrementButtonIcon" [ngClass]="decrementButtonIcon" [attr.data-pc-section]="'decrementbuttonicon'"></span>
|
|
<ng-container *ngIf="!decrementButtonIcon">
|
|
<AngleDownIcon *ngIf="!decrementButtonIconTemplate" [attr.data-pc-section]="'decrementbuttonicon'" />
|
|
<ng-template *ngTemplateOutlet="decrementButtonIconTemplate"></ng-template>
|
|
</ng-container>
|
|
</button>
|
|
</span>
|
|
`, isInline: true, styles: ["@layer primeng{p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(() => i1.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i0.forwardRef(() => i2.InputText), selector: "[pInputText]", inputs: ["variant"] }, { kind: "directive", type: i0.forwardRef(() => i3.ButtonDirective), selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }, { kind: "directive", type: i0.forwardRef(() => i4.AutoFocus), selector: "[pAutoFocus]", inputs: ["autofocus"] }, { kind: "component", type: i0.forwardRef(() => TimesIcon), selector: "TimesIcon" }, { kind: "component", type: i0.forwardRef(() => AngleUpIcon), selector: "AngleUpIcon" }, { kind: "component", type: i0.forwardRef(() => AngleDownIcon), selector: "AngleDownIcon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: InputNumber, decorators: [{
|
|
type: Component,
|
|
args: [{ selector: 'p-inputNumber', template: `
|
|
<span
|
|
[ngClass]="{
|
|
'p-inputnumber p-component': true,
|
|
'p-inputnumber-buttons-stacked': this.showButtons && this.buttonLayout === 'stacked',
|
|
'p-inputnumber-buttons-horizontal': this.showButtons && this.buttonLayout === 'horizontal',
|
|
'p-inputnumber-buttons-vertical': this.showButtons && this.buttonLayout === 'vertical'
|
|
}"
|
|
[ngStyle]="style"
|
|
[class]="styleClass"
|
|
[attr.data-pc-name]="'inputnumber'"
|
|
[attr.data-pc-section]="'root'"
|
|
>
|
|
<input
|
|
pInputText
|
|
#input
|
|
[attr.id]="inputId"
|
|
role="spinbutton"
|
|
[ngClass]="'p-inputnumber-input'"
|
|
[ngStyle]="inputStyle"
|
|
[class]="inputStyleClass"
|
|
[value]="formattedValue()"
|
|
[variant]="variant"
|
|
[attr.aria-valuemin]="min"
|
|
[attr.aria-valuemax]="max"
|
|
[attr.aria-valuenow]="value"
|
|
[disabled]="disabled"
|
|
[readonly]="readonly"
|
|
[attr.placeholder]="placeholder"
|
|
[attr.aria-label]="ariaLabel"
|
|
[attr.aria-labelledby]="ariaLabelledBy"
|
|
[attr.title]="title"
|
|
[attr.size]="size"
|
|
[attr.name]="name"
|
|
[attr.autocomplete]="autocomplete"
|
|
[attr.maxlength]="maxlength"
|
|
[attr.tabindex]="tabindex"
|
|
[attr.aria-required]="ariaRequired"
|
|
[attr.required]="required"
|
|
[attr.min]="min"
|
|
[attr.max]="max"
|
|
inputmode="decimal"
|
|
(input)="onUserInput($event)"
|
|
(keydown)="onInputKeyDown($event)"
|
|
(keypress)="onInputKeyPress($event)"
|
|
(paste)="onPaste($event)"
|
|
(click)="onInputClick()"
|
|
(focus)="onInputFocus($event)"
|
|
(blur)="onInputBlur($event)"
|
|
[attr.data-pc-section]="'input'"
|
|
pAutoFocus
|
|
[autofocus]="autofocus"
|
|
/>
|
|
<ng-container *ngIf="buttonLayout != 'vertical' && showClear && value">
|
|
<TimesIcon *ngIf="!clearIconTemplate" [ngClass]="'p-inputnumber-clear-icon'" (click)="clear()" [attr.data-pc-section]="'clearIcon'" />
|
|
<span *ngIf="clearIconTemplate" (click)="clear()" class="p-inputnumber-clear-icon" [attr.data-pc-section]="'clearIcon'">
|
|
<ng-template *ngTemplateOutlet="clearIconTemplate"></ng-template>
|
|
</span>
|
|
</ng-container>
|
|
<span class="p-inputnumber-button-group" *ngIf="showButtons && buttonLayout === 'stacked'" [attr.data-pc-section]="'buttonGroup'">
|
|
<button
|
|
type="button"
|
|
pButton
|
|
[ngClass]="{ 'p-inputnumber-button p-inputnumber-button-up': true }"
|
|
class="p-button-icon-only"
|
|
[class]="incrementButtonClass"
|
|
[disabled]="disabled"
|
|
tabindex="-1"
|
|
(mousedown)="onUpButtonMouseDown($event)"
|
|
(mouseup)="onUpButtonMouseUp()"
|
|
(mouseleave)="onUpButtonMouseLeave()"
|
|
(keydown)="onUpButtonKeyDown($event)"
|
|
(keyup)="onUpButtonKeyUp()"
|
|
[attr.aria-hidden]="true"
|
|
[attr.data-pc-section]="'incrementbutton'"
|
|
>
|
|
<span *ngIf="incrementButtonIcon" [ngClass]="incrementButtonIcon" [attr.data-pc-section]="'incrementbuttonicon'"></span>
|
|
<ng-container *ngIf="!incrementButtonIcon">
|
|
<AngleUpIcon *ngIf="!incrementButtonIconTemplate" [attr.data-pc-section]="'incrementbuttonicon'" />
|
|
<ng-template *ngTemplateOutlet="incrementButtonIconTemplate"></ng-template>
|
|
</ng-container>
|
|
</button>
|
|
<button
|
|
type="button"
|
|
pButton
|
|
[ngClass]="{ 'p-inputnumber-button p-inputnumber-button-down': true }"
|
|
class="p-button-icon-only"
|
|
[class]="decrementButtonClass"
|
|
[disabled]="disabled"
|
|
tabindex="-1"
|
|
[attr.aria-hidden]="true"
|
|
(mousedown)="onDownButtonMouseDown($event)"
|
|
(mouseup)="onDownButtonMouseUp()"
|
|
(mouseleave)="onDownButtonMouseLeave()"
|
|
(keydown)="onDownButtonKeyDown($event)"
|
|
(keyup)="onDownButtonKeyUp()"
|
|
[attr.data-pc-section]="decrementbutton"
|
|
>
|
|
<span *ngIf="decrementButtonIcon" [ngClass]="decrementButtonIcon" [attr.data-pc-section]="'decrementbuttonicon'"></span>
|
|
<ng-container *ngIf="!decrementButtonIcon">
|
|
<AngleDownIcon *ngIf="!decrementButtonIconTemplate" [attr.data-pc-section]="'decrementbuttonicon'" />
|
|
<ng-template *ngTemplateOutlet="decrementButtonIconTemplate"></ng-template>
|
|
</ng-container>
|
|
</button>
|
|
</span>
|
|
<button
|
|
*ngIf="showButtons && buttonLayout !== 'stacked'"
|
|
type="button"
|
|
pButton
|
|
[ngClass]="{ 'p-inputnumber-button p-inputnumber-button-up': true }"
|
|
[class]="incrementButtonClass"
|
|
class="p-button-icon-only"
|
|
[disabled]="disabled"
|
|
tabindex="-1"
|
|
[attr.aria-hidden]="true"
|
|
(mousedown)="onUpButtonMouseDown($event)"
|
|
(mouseup)="onUpButtonMouseUp()"
|
|
(mouseleave)="onUpButtonMouseLeave()"
|
|
(keydown)="onUpButtonKeyDown($event)"
|
|
(keyup)="onUpButtonKeyUp()"
|
|
[attr.data-pc-section]="'incrementbutton'"
|
|
>
|
|
<span *ngIf="incrementButtonIcon" [ngClass]="incrementButtonIcon" [attr.data-pc-section]="'incrementbuttonicon'"></span>
|
|
<ng-container *ngIf="!incrementButtonIcon">
|
|
<AngleUpIcon *ngIf="!incrementButtonIconTemplate" [attr.data-pc-section]="'incrementbuttonicon'" />
|
|
<ng-template *ngTemplateOutlet="incrementButtonIconTemplate"></ng-template>
|
|
</ng-container>
|
|
</button>
|
|
<button
|
|
*ngIf="showButtons && buttonLayout !== 'stacked'"
|
|
type="button"
|
|
pButton
|
|
[ngClass]="{ 'p-inputnumber-button p-inputnumber-button-down': true }"
|
|
class="p-button-icon-only"
|
|
[class]="decrementButtonClass"
|
|
[disabled]="disabled"
|
|
tabindex="-1"
|
|
[attr.aria-hidden]="true"
|
|
(mousedown)="onDownButtonMouseDown($event)"
|
|
(mouseup)="onDownButtonMouseUp()"
|
|
(mouseleave)="onDownButtonMouseLeave()"
|
|
(keydown)="onDownButtonKeyDown($event)"
|
|
(keyup)="onDownButtonKeyUp()"
|
|
[attr.data-pc-section]="'decrementbutton'"
|
|
>
|
|
<span *ngIf="decrementButtonIcon" [ngClass]="decrementButtonIcon" [attr.data-pc-section]="'decrementbuttonicon'"></span>
|
|
<ng-container *ngIf="!decrementButtonIcon">
|
|
<AngleDownIcon *ngIf="!decrementButtonIconTemplate" [attr.data-pc-section]="'decrementbuttonicon'" />
|
|
<ng-template *ngTemplateOutlet="decrementButtonIconTemplate"></ng-template>
|
|
</ng-container>
|
|
</button>
|
|
</span>
|
|
`, changeDetection: ChangeDetectionStrategy.OnPush, providers: [INPUTNUMBER_VALUE_ACCESSOR], encapsulation: ViewEncapsulation.None, host: {
|
|
class: 'p-element p-inputwrapper',
|
|
'[class.p-inputwrapper-filled]': 'filled',
|
|
'[class.p-inputwrapper-focus]': 'focused',
|
|
'[class.p-inputnumber-clearable]': 'showClear && buttonLayout != "vertical"'
|
|
}, styles: ["@layer primeng{p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}}\n"] }]
|
|
}], ctorParameters: () => [{ type: Document, decorators: [{
|
|
type: Inject,
|
|
args: [DOCUMENT]
|
|
}] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.Injector }], propDecorators: { showButtons: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], format: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], buttonLayout: [{
|
|
type: Input
|
|
}], inputId: [{
|
|
type: Input
|
|
}], styleClass: [{
|
|
type: Input
|
|
}], style: [{
|
|
type: Input
|
|
}], placeholder: [{
|
|
type: Input
|
|
}], size: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], maxlength: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], tabindex: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], title: [{
|
|
type: Input
|
|
}], ariaLabelledBy: [{
|
|
type: Input
|
|
}], ariaLabel: [{
|
|
type: Input
|
|
}], ariaRequired: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], name: [{
|
|
type: Input
|
|
}], required: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], autocomplete: [{
|
|
type: Input
|
|
}], min: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], max: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], incrementButtonClass: [{
|
|
type: Input
|
|
}], decrementButtonClass: [{
|
|
type: Input
|
|
}], incrementButtonIcon: [{
|
|
type: Input
|
|
}], decrementButtonIcon: [{
|
|
type: Input
|
|
}], readonly: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], step: [{
|
|
type: Input,
|
|
args: [{ transform: numberAttribute }]
|
|
}], allowEmpty: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], locale: [{
|
|
type: Input
|
|
}], localeMatcher: [{
|
|
type: Input
|
|
}], mode: [{
|
|
type: Input
|
|
}], currency: [{
|
|
type: Input
|
|
}], currencyDisplay: [{
|
|
type: Input
|
|
}], useGrouping: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], variant: [{
|
|
type: Input
|
|
}], minFractionDigits: [{
|
|
type: Input,
|
|
args: [{ transform: (value) => numberAttribute(value, null) }]
|
|
}], maxFractionDigits: [{
|
|
type: Input,
|
|
args: [{ transform: (value) => numberAttribute(value, null) }]
|
|
}], prefix: [{
|
|
type: Input
|
|
}], suffix: [{
|
|
type: Input
|
|
}], inputStyle: [{
|
|
type: Input
|
|
}], inputStyleClass: [{
|
|
type: Input
|
|
}], showClear: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], autofocus: [{
|
|
type: Input,
|
|
args: [{ transform: booleanAttribute }]
|
|
}], disabled: [{
|
|
type: Input
|
|
}], onInput: [{
|
|
type: Output
|
|
}], onFocus: [{
|
|
type: Output
|
|
}], onBlur: [{
|
|
type: Output
|
|
}], onKeyDown: [{
|
|
type: Output
|
|
}], onClear: [{
|
|
type: Output
|
|
}], input: [{
|
|
type: ViewChild,
|
|
args: ['input']
|
|
}], templates: [{
|
|
type: ContentChildren,
|
|
args: [PrimeTemplate]
|
|
}] } });
|
|
export class InputNumberModule {
|
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: InputNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.7", ngImport: i0, type: InputNumberModule, declarations: [InputNumber], imports: [CommonModule, InputTextModule, ButtonModule, AutoFocusModule, TimesIcon, AngleUpIcon, AngleDownIcon], exports: [InputNumber, SharedModule] });
|
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: InputNumberModule, imports: [CommonModule, InputTextModule, ButtonModule, AutoFocusModule, TimesIcon, AngleUpIcon, AngleDownIcon, SharedModule] });
|
|
}
|
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: InputNumberModule, decorators: [{
|
|
type: NgModule,
|
|
args: [{
|
|
imports: [CommonModule, InputTextModule, ButtonModule, AutoFocusModule, TimesIcon, AngleUpIcon, AngleDownIcon],
|
|
exports: [InputNumber, SharedModule],
|
|
declarations: [InputNumber]
|
|
}]
|
|
}] });
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXRudW1iZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvaW5wdXRudW1iZXIvaW5wdXRudW1iZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxRQUFRLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUN6RCxPQUFPLEVBRUgsdUJBQXVCLEVBRXZCLFNBQVMsRUFDVCxlQUFlLEVBRWYsWUFBWSxFQUNaLE1BQU0sRUFFTixLQUFLLEVBQ0wsUUFBUSxFQUdSLE1BQU0sRUFJTixTQUFTLEVBQ1Qs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LlxuICogQGdyb3VwIENvbXBvbmVudHNcbiAqL1xuQENvbXBvbmVudCh7XG4gICAgc2VsZWN0b3I6ICdwLWlucHV0TnVtYmVyJyxcbiAgICB0ZW1wbGF0ZTogYFxuICAgICAgICA8c3BhblxuICAgICAgICAgICAgW25nQ2xhc3NdPVwie1xuICAgICAgICAgICAgICAgICdwLWlucHV0bnVtYmVyIHAtY29tcG9uZW50JzogdHJ1ZSxcbiAgICAgICAgICAgICAgICAncC1pbnB1dG51bWJlci1idXR0b25zLXN0YWNrZWQnOiB0aGlzLnNob3dCdXR0b25zICYmIHRoaXMuYnV0dG9uTGF5b3V0ID09PSAnc3RhY2tlZCcsXG4gICAgICAgICAgICAgICAgJ3AtaW5wdXRudW1iZXItYnV0dG9ucy1ob3Jpem9udGFsJzogdGhpcy5zaG93QnV0dG9ucyAmJiB0aGlzLmJ1dHRvbkxheW91dCA9PT0gJ2hvcml6b250YWwnLFxuICAgICAgICAgICAgICAgICdwLWlucHV0bnVtYmVyLWJ1dHRvbnMtdmVydGljYWwnOiB0aGlzLnNob3dCdXR0b25zICYmIHRoaXMuYnV0dG9uTGF5b3V0ID09PSAndmVydGljYWwnXG4gICAgICAgICAgICB9XCJcbiAgICAgICAgICAgIFtuZ1N0eWxlXT1cInN0eWxlXCJcbiAgICAgICAgICAgIFtjbGFzc109XCJzdHlsZUNsYXNzXCJcbiAgICAgICAgICAgIFthdHRyLmRhdGEtcGMtbmFtZV09XCInaW5wdXRudW1iZXInXCJcbiAgICAgICAgICAgIFthdHRyLmRhdGEtcGMtc2VjdGlvbl09XCIncm9vdCdcIlxuICAgICAgICA+XG4gICAgICAgICAgICA8aW5wdXRcbiAgICAgICAgICAgICAgICBwSW5wdXRUZXh0XG4gICAgICAgICAgICAgICAgI2lucHV0XG4gICAgICAgICAgICAgICAgW2F0dHIuaWRdPVwiaW5wdXRJZFwiXG4gICAgICAgICAgICAgICAgcm9sZT1cInNwaW5idXR0b25cIlxuICAgICAgICAgICAgICAgIFtuZ0NsYXNzXT1cIidwLWlucHV0bnVtYmVyLWlucHV0J1wiXG4gICAgICAgICAgICAgICAgW25nU3R5bGVdPVwiaW5wdXRTdHlsZVwiXG4gICAgICAgICAgICAgICAgW2NsYXNzXT1cImlucHV0U3R5bGVDbGFzc1wiXG4gICAgICAgICAgICAgICAgW3ZhbHVlXT1cImZvcm1hdHRlZFZhbHVlKClcIlxuICAgICAgICAgICAgICAgIFt2YXJpYW50XT1cInZhcmlhbnRcIlxuICAgICAgICAgICAgICAgIFthdHRyLmFyaWEtdmFsdWVtaW5dPVwibWluXCJcbiAgICAgICAgICAgICAgICBbYXR0ci5hcmlhLXZhbHVlbWF4XT1cIm1heFwiXG4gICAgICAgICAgICAgICAgW2F0dHIuYXJpYS12YWx1ZW5vd109XCJ2YWx1ZVwiXG4gICAgICAgICAgICAgICAgW2Rpc2FibGVkXT1cImRpc2FibGVkXCJcbiAgICAgICAgICAgICAgICBbcmVhZG9ubHldPVwicmVhZG9ubHlcIlxuICAgICAgICAgICAgICAgIFthdHRyLnBsYWNlaG9sZGVyXT1cInBsYWNlaG9sZGVyXCJcbiAgICAgICAgICAgICAgICBbYXR0ci5hcmlhLWxhYmVsXT1cImFyaWFMYWJlbFwiXG4gICAgICAgICAgICAgICAgW2F0dHIuYXJpYS1sYWJlbGxlZGJ5XT1cImFyaWFMYWJlbGxlZEJ5XCJcbiAgICAgICAgICAgICAgICBbYXR0ci50aXRsZV09XCJ0aXRsZVwiXG4gICAgICAgICAgICAgICAgW2F0dHIuc2l6ZV09XCJzaXplXCJcbiAgICAgICAgICAgICAgICBbYXR0ci5uYW1lXT1cIm5hbWVcIlxuICAgICAgICAgICAgICAgIFthdHRyLmF1dG9jb21wbGV0ZV09XCJhdXRvY29tcGxldGVcIlxuICAgICAgICAgICAgICAgIFthdHRyLm1heGxlbmd0aF09XCJtYXhsZW5ndGhcIlxuICAgICAgICAgICAgICAgIFthdHRyLnRhYmluZGV4XT1cInRhYmluZGV4XCJcbiAgICAgICAgICAgICAgICBbYXR0ci5hcmlhLXJlcXVpcmVkXT1cImFyaWFSZXF1aXJlZFwiXG4gICAgICAgICAgICAgICAgW2F0dHIucmVxdWlyZWRdPVwicmVxdWlyZWRcIlxuICAgICAgICAgICAgICAgIFthdHRyLm1pbl09XCJtaW5cIlxuICAgICAgICAgICAgICAgIFthdHRyLm1heF09XCJtYXhcIlxuICAgICAgICAgICAgICAgIGlucHV0bW9kZT1cImRlY2ltYWxcIlxuICAgICAgICAgICAgICAgIChpbnB1dCk9XCJvblVzZXJJbnB1dCgkZXZlbnQpXCJcbiAgICAgICAgICAgICAgICAoa2V5ZG93bik9XCJvbklucHV0S2V5RG93bigkZXZlbnQpXCJcbiAgICAgICAgICAgICAgICAoa2V5cHJlc3MpPVwib25JbnB1dEtleVByZXNzKCRldmVudClcIlxuICAgICAgICAgICAgICAgIChwYXN0ZSk9XCJvblBhc3RlKCRldmVudClcIlxuICAgICAgICAgICAgICAgIChjbGljayk9XCJvbklucHV0Q2xpY2soKVwiXG4gICAgICAgICAgICAgICAgKGZvY3VzKT1cIm9uSW5wdXRGb2N1cygkZXZlbnQpXCJcbiAgICAgICAgICAgICAgICAoYmx1cik9XCJvbklucHV0Qmx1cigkZXZlbnQpXCJcbiAgICAgICAgICAgICAgICBbYXR0ci5kYXRhLXBjLXNlY3Rpb25dPVwiJ2lucHV0J1wiXG4gICAgICAgICAgICAgICAgcEF1dG9Gb2N1c1xuICAgICAgICAgICAgICAgIFthdXRvZm9jdXNdPVwiYXV0b2ZvY3VzXCJcbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiYnV0dG9uTGF5b3V0ICE9ICd2ZXJ0aWNhbCcgJiYgc2hvd0NsZWFyICYmIHZhbHVlXCI+XG4gICAgICAgICAgICAgICAgPFRpbWVzSWNvbiAqbmdJZj1cIiFjbGVhckljb25UZW1wbGF0ZVwiIFtuZ0NsYXNzXT1cIidwLWlucHV0bnVtYmVyLWNsZ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uICAgICAgICAgICAgICAgICAgICB0YWJpbmRleD1cIi0xXCJcbiAgICAgICAgICAgICAgICAgICAgKG1vdXNlZG93bik9XCJvblVwQnV0dG9uTW91c2VEb3duKCRldmVudClcIlxuICAgICAgICAgICAgICAgICAgICAobW91c2V1cCk9XCJvblVwQnV0dG9uTW91c2VVcCgpXCJcbiAgICAgICAgICAgICAgICAgICAgKG1vdXNlbGVhdmUpPVwib25VcEJ1dHRvbk1vdXNlTGVhdmUoKVwiXG4gICAgICAgICAgICAgICAgICAgIChrZXlkb3duKT1cIm9uVXBCdXR0b25LZXlEb3duKCRldmVudClcIlxuICAgICAgICAgICAgICAgICAgICAoa2V5dXApPVwib25VcEJ1dHRvbktleVVwKClcIlxuICAgICAgICAgICAgICAgICAgICBbYXR0ci5hcmlhLWhpZGRlbl09XCJ0cnVlXCJcbiAgICAgICAgICAgICAgICAgICAgW2F0dHIuZGF0YS1wYy1zZWN0aW9uXT1cIidpbmNyZW1lbnRidXR0b24nXCJcbiAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgIDxzcGFuICpuZ0lmPVwiaW5jcmVtZW50QnV0dG9uSWNvblwiIFtuZ0NsYXNzXT1cImluY3JlbWVudEJ1dHRvbkljb25cIiBbYXR0ci5kYXRhLXBjLXNlY3Rpb25dPVwiJ2luY3JlbWVudGJ1dHRvbmljb24nXCI+PC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiIWluY3JlbWVudEJ1dHRvbkljb25cIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxBbmdsZVVwSWNvbiAqbmdJZj1cIiFpbmNyZW1lbnRCdXR0b25JY29uVGVtcGxhdGVcIiBbYXR0ci5kYXRhLXBjLXNlY3Rpb25dPVwiJ2luY3JlbWVudGJ1dHRvbmljb24nXCIgLz5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxuZy10ZW1wbGF0ZSAqbmdUZW1wbGF0ZU91dGxldD1cImluY3JlbWVudEJ1dHRvbkljb25UZW1wbGF0ZVwiPjwvbmctdGVtcGxhdGU+XG4gICAgICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgIDwvYnV0dG9uPlxuICAgICAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICAgICAgICAgIHBCdXR0b25cbiAgICAgICAgICAgICAgICAgICAgW25nQ2xhc3NdPVwieyAncC1pbnB1dG51bWJlci1idXR0b24gcC1pbnB1dG51bWJlci1idXR0b24tZG93bic6IHRydWUgfVwiXG4gICAgICAgICAgICAgICAgICAgIGNsYXNzPVwicC1idXR0b24taWNvbi1vbmx5XCJcbiAgICAgICAgICAgICAgICAgICAgW2NsYXNzXT1cImRlY3JlbWVudEJ1dHRvbkNsYXNzXCJcbiAgICAgICAgICAgICAgICAgICAgW2Rpc2FibGVkXT1cImRpc2FibGVkXCJcbiAgICAgICAgICAgICAgICAgICAgdGFiaW5kZXg9XCItMVwiXG4gICAgICAgICAgICAgICAgICAgIFthdHRyLmFyaWEtaGlkZGVuXT1cInRydWVcIlxuICAgICAgICAgICAgICAgICAgICAobW91c2Vkb3duKT1cIm9uRG93bkJ1dHRvbk1vdXNlRG93bigkZXZlbnQpXCJcbiAgICAgICAgICAgICAgICAgICAgKG1vdXNldXApPVwib25Eb3duQnV0dG9uTW91c2VVcCgpXCJcbiAgICAgICAgICAgICAgICAgICAgKG1vdXNlbGVhdmUpPVwib25Eb3duQnV0dG9uTW91c2VMZWF2ZSgpXCJcbiAgICAgICAgICAgICAgICAgICAgKGtleWRvd24pPVwib25Eb3duQnV0dG9uS2V5RG93bigkZXZlbnQpXCJcbiAgICAgICAgICAgICAgICAgICAgKGtleXVwKT1cIm9uRG93bkJ1dHRvbktleVVwKClcIlxuICAgICAgICAgICAgICAgICAgICBbYXR0ci5kYXRhLXBjLXNlY3Rpb25dPVwiZGVjcmVtZW50YnV0dG9uXCJcbiAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgIDxzcGFuICpuZ0lmPVwiZGVjcmVtZW50QnV0dG9uSWNvblwiIFtuZ0NsYXNzXT1cImRlY3JlbWVudEJ1dHRvbkljb25cIiBbYXR0ci5kYXRhLXBjLXNlY3Rpb25dPVwiJ2RlY3JlbWVudGJ1dHRvbmljb24nXCI+PC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiIWRlY3JlbWVudEJ1dHRvbkljb25cIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxBbmdsZURvd25JY29uICpuZ0lmPVwiIWRlY3JlbWVudEJ1dHRvbkljb25UZW1wbGF0ZVwiIFthdHRyLmRhdGEtcGMtc2VjdGlvbl09XCInZGVjcmVtZW50YnV0dG9uaWNvbidcIiAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgPG5nLXRlbXBsYXRlICpuZ1RlbXBsYXRlT3V0bGV0PVwiZGVjcmVtZW50QnV0dG9uSWNvblRlbXBsYXRlXCI+PC9uZy10ZW1wbGF0ZT5cbiAgICAgICAgICAgICAgICAgICAgPC9uZy1jb250YWluZXI+XG4gICAgICAgICAgICAgICAgPC9idXR0b24+XG4gICAgICAgICAgICA8L3NwYW4+XG4gICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgKm5nSWY9XCJzaG93QnV0dG9ucyAmJiBidXR0b25MYXlvdXQgIT09ICdzdGFja2VkJ1wiXG4gICAgICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXG4gICAgICAgICAgICAgICAgcEJ1dHRvblxuICAgICAgICAgICAgICAgIFtuZ0NsYXNzXT1cInsgJ3AtaW5wdXRudW1iZXItYnV0dG9uIHAtaW5wdXRudW1iZXItYnV0dG9uLXVwJzogdHJ1ZSB9XCJcbiAgICAgICAgICAgICAgICBbY2xhc3NdPVwiaW5jcmVtZW50QnV0dG9uQ2xhc3NcIlxuICAgICAgICAgICAgICAgIGNsYXNzPVwicC1idXR0b24taWNvbi1vbmx5XCJcbiAgICAgICAgICAgICAgICBbZGlzYWJsZWRdPVwiZGlzYWJsZWRcIlxuICAgICAgICAgICAgICAgIHRhYmluZGV4PVwiLTFcIlxuICAgICAgICAgICAgICAgIFthdHRyLmFyaWEtaGlkZGVuXT1cInRydWVcIlxuICAgICAgICAgICAgICAgIChtb3VzZWRvd24pPVwib25VcEJ1dHRvbk1vdXNlRG93bigkZXZlbnQpXCJcbiAgICAgICAgICAgICAgICAobW91c2V1cCk9XCJvblVwQnV0dG9uTW91c2VVcCgpXCJcbiAgICAgICAgICAgICAgICAobW91c2VsZWF2ZSk9XCJvblVwQnV0dG9uTW91c2VMZWF2ZSgpXCJcbiAgICAgICAgICAgICAgICAoa2V5ZG93bik9XCJvblVwQnV0dG9uS2V5RG93bigkZXZlbnQpXCJcbiAgICAgICAgICAgICAgICAoa2V5dXApPVwib25VcEJ1dHRvbktleVVwKClcIlxuICAgICAgICAgICAgICAgIFthdHRyLmRhdGEtcGMtc2VjdGlvbl09XCInaW5jcmVtZW50YnV0dG9uJ1wiXG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgPHNwYW4gKm5nSWY9XCJpbmNyZW1lbnRCdXR0b25JY29uXCIgW25nQ2xhc3NdPVwiaW5jcmVtZW50QnV0dG9uSWNvblwiIFthdHRyLmRhdGEtcGMtc2VjdGlvbl09XCInaW5jcmVtZW50YnV0dG9uaWNvbidcIj48L3NwYW4+XG4gICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cIiFpbmNyZW1lbnRCdXR0b25JY29uXCI+XG4gICAgICAgICAgICAgICAgICAgIDxBbmdsZVVwSWNvbiAqbmdJZj1cIiFpbmNyZW1lbnRCdXR0b25JY29uVGVtcGxhdGVcIiBbYXR0ci5kYXRhLXBjLXNlY3Rpb25dPVwiJ2luY3JlbWVudGJ1dHRvbmljb24nXCIgLz5cbiAgICAgICAgICAgICAgICAgICAgPG5nLXRlbXBsYXRlICpuZ1RlbXBsYXRlT3V0bGV0PVwiaW5jcmVtZW50QnV0dG9uSWNvblRlbXBsYXRlXCI+PC9uZy10ZW1wbGF0ZT5cbiAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgIDwvYnV0dG9uPlxuICAgICAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgICAgICpuZ0lmPVwic2hvd0J1dHRvbnMgJiYgYnV0dG9uTGF5b3V0ICE9PSAnc3RhY2tlZCdcIlxuICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICAgICAgICAgIHBCdXR0b25cbiAgICAgICAgICAgICAgICBbbmdDbGFzc109XCJ7ICdwLWlucHV0bnVtYmVyLWJ1dHRvbiBwLWlucHV0bnVtYmVyLWJ1dHRvbi1kb3duJzogdHJ1ZSB9XCJcbiAgICAgICAgICAgICAgICBjbGFzcz1cInAtYnV0dG9uLWljb24tb25seVwiXG4gICAgICAgICAgICAgICAgW2NsYXNzXT1cImRlY3JlbWVudEJ1dHRvbkNsYXNzXCJcbiAgICAgICAgICAgICAgICBbZGlzYWJsZWRdPVwiZGlzYWJsZWRcIlxuICAgICAgICAgICAgICAgIHRhYmluZGV4PVwiLTFcIlxuICAgICAgICAgICAgICAgIFthdHRyLmFyaWEtaGlkZGVuXT1cInRydWVcIlxuICAgICAgICAgICAgICAgIChtb3VzZWRvd24pPVwib25Eb3duQnV0dG9uTW91c2VEb3duKCRldmVudClcIlxuICAgICAgICAgICAgICAgIChtb3VzZXVwKT1cIm9uRG93bkJ1dHRvbk1vdXNlVXAoKVwiXG4gICAgICAgICAgICAgICAgKG1vdXNlbGVhdmUpPVwib25Eb3duQnV0dG9uTW91c2VMZWF2ZSgpXCJcbiAgICAgICAgICAgICAgICAoa2V5ZG93bik9XCJvbkRvd25CdXR0b25LZXlEb3duKCRldmVudClcIlxuICAgICAgICAgICAgICAgIChrZXl1cCk9XCJvbkRv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ScsICdjdXJyZW5jeScsICdjdXJyZW5jeURpc3BsYXknLCAndXNlR3JvdXBpbmcnLCAnbWluRnJhY3Rpb25EaWdpdHMnLCAnbWF4RnJhY3Rpb25EaWdpdHMnLCAncHJlZml4JywgJ3N1ZmZpeCddO1xuICAgICAgICBpZiAocHJvcHMuc29tZSgocCkgPT4gISFzaW1wbGVDaGFuZ2VbcF0pKSB7XG4gICAgICAgICAgICB0aGlzLnVwZGF0ZUNvbnN0cnVjdFBhcnNlcigpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgbmdBZnRlckNvbnRlbnRJbml0KCkge1xuICAgICAgICB0aGlzLnRlbXBsYXRlcy5mb3JFYWNoKChpdGVtKSA9PiB7XG4gICAgICAgICAgICBzd2l0Y2ggKGl0ZW0uZ2V0VHlwZSgpKSB7XG4gICAgICAgICAgICAgICAgY2FzZSAnY2xlYXJpY29uJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jbGVhckljb25UZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZSAnaW5jcmVtZW50YnV0dG9uaWNvbic6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaW5jcmVtZW50QnV0dG9uSWNvblRlbXBsYXRlID0gaXRlbS50ZW1wbGF0ZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlICdkZWNyZW1lbnRidXR0b25pY29uJzpcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5kZWNyZW1lbnRCdXR0b25JY29uVGVtcGxhdGUgPSBpdGVtLnRlbXBsYXRlO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgbmdPbkluaXQoKSB7XG4gICAgICAgIHRoaXMubmdDb250cm9sID0gdGhpcy5pbmplY3Rvci5nZXQo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AgbGV0IGZpbHRlcmVkVGV4dCA9IHRleHRcbiAgICAgICAgICAgIC5yZXBsYWNlKHN1ZmZpeFJlZ2V4LCAnJylcbiAgICAgICAgICAgIC5yZXBsYWNlKHByZWZpeFJlZ2V4LCAnJylcbiAgICAgICAgICAgIC50cmltKClcbiAgICAgICAgICAgIC5yZXBsYWNlKC9cXHMvZywgJycpXG4gICAgICAgICAgICAucmVwbGFjZShjdXJyZW5jeVJlZ2V4LCAnJylcbiAgICAgICAgICAgIC5yZXBsYWNlKHRoaXMuX2dyb3VwLCAnJylcbiAgICAgICAgICAgIC5yZXBsYWNlKHRoaXMuX21pbnVzU2lnbiwgJy0nKVxuICAgICAgICAgICAgLnJlcGxhY2UodGhpcy5fZGVjaW1hbCwgJy4nKVxuICAgICAgICAgICAgLnJlcGxhY2UodGhpcy5fbnVtZXJhbCwgdGhpcy5faW5kZXgpO1xuXG4gICAgICAgIGlmIChmaWx0ZXJlZFRleHQpIHtcbiAgICAgICAgICAgIGlmIChmaWx0ZXJlZFRleHQgPT09ICctJylcbiAgICAgICAgICAgICAgICAvLyBNaW51cyBzaWduXG4gICAgICAgICAgICAgICAgcmV0dXJuIGZpbHRlcmVkVGV4dDtcblxuICAgICAgICAgICAgbGV0IHBhcnNlZFZhbHVlID0gK2ZpbHRlcmVkVGV4dDtcbiAgICAgICAgICAgIHJldHVybiBpc05hTihwYXJzZWRWYWx1ZSkgPyBudWxsIDogcGFyc2VkVmFsdWU7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG5cbiAgICByZXBlYXQoZXZlbnQ6IEV2ZW50LCBpbnRlcnZhbDogbnVtYmVyIHwgbnVsbCwgZGlyOiBudW1iZXIpIHtcbiAgICAgICAgaWYgKHRoaXMucmVhZG9ubHkpIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBpID0gaW50ZXJ2YWwgfHwgNTAwO1xuXG4gICAgICAgIHRoaX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VEb3duKGV2ZW50OiBNb3VzZUV2ZW50KSB7XG4gICAgICAgIGlmIChldmVudC5idXR0b24gPT09IDIpIHtcbiAgICAgICAgICAgIHRoaXMuY2xlYXJUaW1lcigpO1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKCF0aGlzLmRpc2FibGVkKSB7XG4gICAgICAgICAgICB0aGlzLmlucHV0Py5uYXRpdmVFbGVtZW50LmZvY3VzKCk7XG4gICAgICAgICAgICB0aGlzLnJlcGVhdChldmVudCwgbnVsbCwgMSk7XG4gICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25VcEJ1dHRvbk1vdXNlVXAoKSB7XG4gICAgICAgIGlmICghdGhpcy5kaXNhYmxlZCkge1xuICAgICAgICAgICAgdGhpcy5jbGVhclRpbWVyKCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvblVwQnV0dG9uTW91c2VMZWF2ZSgpIHtcbiAgICAgICAgaWYgKCF0aGlzLmRpc2FibGVkKSB7XG4gICAgICAgICAgICB0aGlzLmNsZWFyVGltZXIoKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG9uVXBCdXR0b25LZXlEb3duKGV2ZW50OiBLZXlib2FyZEV2ZW50KSB7XG4gICAgICAgIGlmIChldmVudC5rZXlDb2RlID09PSAzMiB8fCBldmVudC5rZXlDb2RlID09PSAxMykge1xuICAgICAgICAgICAgdGhpcy5yZXBlYXQoZXZlbnQsIG51bGwsIDEpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25VcEJ1dHRvbktleVVwKCkge1xuICAgICAgICBpZiAoIXRoaXMuZGlzYWJsZWQpIHtcbiAgICAgICAgICAgIHRoaXMuY2xlYXJUaW1lcigpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25Eb3duQnV0dG9uTW91c2VEb3duKGV2ZW50OiBNb3VzZUV2ZW50KSB7XG4gICAgICAgIGlmIChldmVudC5idXR0b24gPT09IDIpIHtcbiAgICAgICAgICAgIHRoaXMuY2xlYXJUaW1lcigpO1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICAgIGlmICghdGhpcy5kaXNhYmxlZCkge1xuICAgICAgICAgICAgdGhpcy5pbnB1dD8ubmF0aXZlRWxlbWVudC5mb2N1cygpO1xuICAgICAgICAgICAgdGhpcy5yZXBlYXQoZXZlbnQsIG51bGwsIC0xKTtcbiAgICAgICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvbkRvd25CdXR0b25Nb3VzZVVwKCkge1xuICAgICAgICBpZiAoIXRoaXMuZGlzYWJsZWQpIHtcbiAgICAgICAgICAgIHRoaXMuY2xlYXJUaW1lcigpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25Eb3duQnV0dG9uTW91c2VMZWF2ZSgpIHtcbiAgICAgICAgaWYgKCF0aGlzLmRpc2FibGVkKSB7XG4gICAgICAgICAgICB0aGlzLmNsZWFyVGltZXIoKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG9uRG93bkJ1dHRvbktleVVwKCkge1xuICAgICAgICBpZiAoIXRoaXMuZGlzYWJsZWQpIHtcbiAgICAgICAgICAgIHRoaXMuY2xlYXJUaW1lcigpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25Eb3duQnV0dG9uS2V5RG93bihldmVudDogS2V5Ym9hcmRFdmVudCkge1xuICAgICAgICBpZiAoZXZlbnQua2V5Q29kZSA9PT0gMzIgfHwgZXZlbnQua2V5Q29kZSA9PT0gMTMpIHtcbiAgICAgICAgICAgIHRoaXMucmVwZWF0KGV2ZW50LCBudWxsLCAtMSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvblVzZXJJbnB1dChldmVudDogRXZlbnQpIHtcbiAgICAgICAgaWYgKHRoaXMucmVhZG9ubHkpIHtcbiAgICAgICA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ICAgaWYgKGV2ZW50LmFsdEtleSkge1xuICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHN3aXRjaCAoZXZlbnQua2V5KSB7XG4gICAgICAgICAgICBjYXNlICdBcnJvd1VwJzpcbiAgICAgICAgICAgICAgICB0aGlzLnNwaW4oZXZlbnQsIDEpO1xuICAgICAgICAgICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIGNhc2UgJ0Fycm93RG93bic6XG4gICAgICAgICAgICAgICAgdGhpcy5zcGluKGV2ZW50LCAtMSk7XG4gICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgY2FzZSAnQXJyb3dMZWZ0JzpcbiAgICAgICAgICAgICAgICBmb3IgKGxldCBpbmRleCA9IHNlbGVjdGlvblN0YXJ0OyBpbmRleCA8PSBpbnB1dFZhbHVlLmxlbmd0aDsgaW5kZXgrKykge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBwcmV2aW91c0NoYXJJbmRleCA9IGluZGV4ID09PSAwID8gMCA6IGluZGV4IC0gMTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMuaXNOdW1lcmFsQ2hhcihpbnB1dFZhbHVlLmNoYXJBdChwcmV2aW91c0NoYXJJbmRleCkpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmlucHV0Lm5hdGl2ZUVsZW1lbnQuc2V0U2VsZWN0aW9uUmFuZ2UoaW5kZXgsIGluZGV4KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICBjYXNlICdBcnJvd1JpZ2h0JzpcbiAgICAgICAgICAgICAgICBmb3IgKGxldCBpbmRleCA9IHNlbGVjdGlvbkVuZDsgaW5kZXggPj0gMDsgaW5kZXgtLSkge1xuICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5pc051bWVyYWxDaGFyKGlucHV0VmFsdWUuY2hhckF0KGluZGV4KSkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuaW5wdXQubmF0aXZlRWxlbWVudC5zZXRTZWxlY3Rpb25SYW5nZShpbmRleCwgaW5kZXgpO1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIGNhc2UgJ1RhYic6XG4gICAgICAgICAgICBjYXNlICdFbnRlcic6XG4gICAgICAgICAgICAgICAgbmV3VmFsdWVTdHIgPSB0aGlzLnZhbGlkYXRlVmFsdWUodGhpcy5wYXJzZVZhbHVlKHRoaXMuaW5wdXQubmF0aXZlRWxlbWVudC52YWx1ZSkpO1xuICAgICAgICAgICAgICAgIHRoaXMuaW5wdXQubmF0aXZlRWxlbWVudC52YWx1ZSA9IHRoaXMuZm9ybWF0VmFsdWUobmV3VmFsdWVTdHIpO1xuICAgICAgICAgICAgICAgIHRoaXMuaW5wdXQubmF0aXZlRWxlbWVudC5zZXRBdHRyaWJ1dGUoJ2FyaWEtdmFsdWVub3cnLCBuZXdWYWx1ZVN0cik7XG4gICAgICAgICAgICAgICAgdGhpcy51cGRhdGVNb2RlbChldmVudCwgbmV3VmFsdWVTdHIpO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICBjYXNlICdCYWNrc3BhY2UnOiB7XG4gICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcblxuICAgICAgICAgICAgICAgIGlmIChzZWxlY3Rpb25TdGFydCA9PT0gc2VsZWN0aW9uRW5kKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmICgoc2VsZWN0aW9uU3RhcnQgPT0gMSAmJiB0aGlzLnByZWZpeCkgfHwgKHNlbGVjdGlvblN0YXJ0ID09IGlucHV0VmFsdWUubGVuZ3RoICYmIHRoaXMuc3VmZml4KSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICBjb25zdCBkZWxldGVDaGFyID0gaW5wdXRWYWx1ZS5jaGFyQXQoc2VsZWN0aW9uU3RhcnQgLSAxKTtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgeyBkZWNpbWFsQ2hhckluZGV4LCBkZWNpbWFsQ2hhckluZGV4V2l0aG91dFByZWZpeCB9ID0gdGhpcy5nZXREZWNpbWFsQ2hhckluZGV4ZXMoaW5wdXRWYWx1ZSk7XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMuaXNOdW1lcmFsQ2hhcihkZWxldGVDaGFyKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgZGVjaW1hbExlbmd0aCA9IHRoaXMuZ2V0RGVjaW1hbExlbmd0aChpbnB1dFZhbHVlKTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMuX2dyb3VwLnRlc3QoZGVsZXRlQ2hhcikpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9ncm91cC5sYXN0SW5kZXggPSAwO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ld1ZhbHVlU3RyID0gaW5wdXRWYWx1ZS5zbGljZSgwLCBzZWxlY3Rpb25TdGFydCAtIDIpICsgaW5wdXRWYWx1ZS5zbGljZShzZWxlY3Rpb25TdGFydCAtIDEpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmICh0aGlzLl9kZWNpbWFsLnRlc3QoZGVsZXRlQ2hhcikpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9kZWNpbWFsLmxhc3RJbmRleCA9IDA7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoZGVjaW1hbExlbmd0aCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmlucHV0Py5uYXRpdmVFbGVtZW50LnNldFNlbGVjdGlvblJhbmdlKHNlbGVjdGlvblN0YXJ0IC0gMSwgc2VsZWN0aW9uU3RhcnQgLSAxKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuZXdWYWx1ZVN0ciA9IGlucHV0VmFsdWUuc2xpY2UoMCwgc2VsZWN0aW9uU3RhcnQgLSAxKSArIGlucHV0VmFsdWUuc2xpY2Uoc2VsZWN0aW9uU3RhcnQpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoZGVjaW1hbENoYXJJbmRleCA+IDAgJiYgc2VsZWN0aW9uU3RhcnQgPiBkZWNpbWFsQ2hhckluZGV4KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgaW5zZXJ0ZWRUZXh0ID0gdGhpcy5pc0RlY2ltYWxNb2RlKCkgJiYgKHRoaXMubWluRnJhY3Rpb25EaWdpdHMgfHwgMCkgPCBkZWNpbWFsTGVuZ3RoID8gJycgOiAnMCc7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3VmFsdWVTdHIgPSBpbnB1dFZhbHVlLnNsaWNlKDAsIHNlbGVjdGlvblN0YXJ0IC0gMSkgKyBpbnNlcnRlZFRleHQgKyBpbnB1dFZhbHVlLnNsaWNlKHNlbGVjdGlvblN0YXJ0KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoZGVjaW1hbENoYXJJbmRleFdpdGhvdXRQcmVmaXggPT09IDEpIHtcbiAgICAgICAgICAgIC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mFsdWVTdHIsIG51bGwsICdkZWxldGUtcmFuZ2UnKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgY2FzZSAnRGVsZXRlJzpcbiAgICAgICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuXG4gICAgICAgICAgICAgICAgaWYgKHNlbGVjdGlvblN0YXJ0ID09PSBzZWxlY3Rpb25FbmQpIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKChzZWxlY3Rpb25TdGFydCA9PSAwICYmIHRoaXMucHJlZml4KSB8fCAoc2VsZWN0aW9uU3RhcnQgPT0gaW5wdXRWYWx1ZS5sZW5ndGggLSAxICYmIHRoaXMuc3VmZml4KSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgY29uc3QgZGVsZXRlQ2hhciA9IGlucHV0VmFsdWUuY2hhckF0KHNlbGVjdGlvblN0YXJ0KTtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgeyBkZWNpbWFsQ2hhckluZGV4LCBkZWNpbWFsQ2hhckluZGV4V2l0aG91dFByZWZpeCB9ID0gdGhpcy5nZXREZWNpbWFsQ2hhckluZGV4ZXMoaW5wdXRWYWx1ZSk7XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMuaXNOdW1lcmFsQ2hhcihkZWxldGVDaGFyKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgZGVjaW1hbExlbmd0aCA9IHRoaXMuZ2V0RGVjaW1hbExlbmd0aChpbnB1dFZhbHVlKTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMuX2dyb3VwLnRlc3QoZGVsZXRlQ2hhcikpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9ncm91cC5sYXN0SW5kZXggPSAwO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ld1ZhbHVlU3RyID0gaW5wdXRWYWx1ZS5zbGljZSgwLCBzZWxlY3Rpb25TdGFydCkgKyBpbnB1dFZhbHVlLnNsaWNlKHNlbGVjdGlvblN0YXJ0ICsgMik7XG4gICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHRoaXMuX2RlY2ltYWwudGVzdChkZWxldGVDaGFyKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuX2RlY2ltYWwubGFzdEluZGV4ID0gMDtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChkZWNpbWFsTGVuZ3RoKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuaW5wdXQ/Lm5hdGl2ZUVsZW1lbnQuc2V0U2VsZWN0aW9uUmFuZ2Uoc2VsZWN0aW9uU3RhcnQgKyAxLCBzZWxlY3Rpb25TdGFydCArIDEpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ld1ZhbHVlU3RyID0gaW5wdXRWYWx1ZS5zbGljZSgwLCBzZWxlY3Rpb25TdGFydCkgKyBpbnB1dFZhbHVlLnNsaWNlKHNlbGVjdGlvblN0YXJ0ICsgMSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmIChkZWNpbWFsQ2hhckluZGV4ID4gMCAmJiBzZWxlY3Rpb25TdGFydCA+IGRlY2ltYWxDaGFySW5kZXgpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBpbnNlcnRlZFRleHQgPSB0aGlzLmlzRGVjaW1hbE1vZGUoKSAmJiAodGhpcy5taW5GcmFjdGlvbkRpZ2l0cyB8fCAwKSA8IGRlY2ltYWxMZW5ndGggPyAnJyA6ICcwJztcbiAgICAgICAgICAg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HNlbGVjdGlvbkVuZCk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMudXBkYXRlVmFsdWUoZXZlbnQsIG5ld1ZhbHVlU3RyLCBudWxsLCAnZGVsZXRlLXJhbmdlJyk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICBjYXNlICdIb21lJzpcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5taW4pIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy51cGRhdGVNb2RlbChldmVudCwgdGhpcy5taW4pO1xuICAgICAgICAgICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgY2FzZSAnRW5kJzpcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5tYXgpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy51cGRhdGVNb2RlbChldmVudCwgdGhpcy5tYXgpO1xuICAgICAgICAgICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMub25LZXlEb3duLmVtaXQoZXZlbnQpO1xuICAgIH1cblxuICAgIG9uSW5wdXRLZXlQcmVzcyhldmVudDogS2V5Ym9hcmRFdmVudCkge1xuICAgICAgICBpZiAodGhpcy5yZWFkb25seSkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IGNvZGUgPSBldmVudC53aGljaCB8fCBldmVudC5rZXlDb2RlO1xuICAgICAgICBsZXQgY2hhciA9IFN0cmluZy5mcm9tQ2hhckNvZGUoY29kZSk7XG4gICAgICAgIGxldCBpc0RlY2ltYWxTaWduID0g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fCBpc01pbnVzU2lnbiB8fCBpc0RlY2ltYWxTaWduKSB7XG4gICAgICAgICAgICB0aGlzLmluc2VydChldmVudCwgY2hhciwgeyBpc0RlY2ltYWxTaWduLCBpc01pbnVzU2lnbiB9KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHByaXZhdGUgZ2V0U2VsZWN0ZWRUZXh0KCkge1xuICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgd2luZG93XG4gICAgICAgICAgICAgICAgPy5nZXRTZWxlY3Rpb24oKVxuICAgICAgICAgICAgICAgID8udG9TdHJpbmcoKVxuICAgICAgICAgICAgICAgIC5yZXBsYWNlQWxsKC9bXjAtOSddL2csICcnKSB8fCAnJ1xuICAgICAgICApO1xuICAgIH1cblxuICAgIG9uUGFzdGUoZXZlbnQ6IENsaXBib2FyZEV2ZW50KSB7XG4gICAgICAgIGlmICghdGhpcy5kaXNhYmxlZCAmJiAhdGhpcy5yZWFkb25seSkge1xuICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgIGxldCBkYXRhID0gKGV2ZW50LmNsaXBib2FyZERhdGEgfHwgKHRoaXMuZG9jdW1lbnQgYXMgYW55KS5kZWZhdWx0Vmlld1snY2xpcGJvYXJkRGF0YSddKS5nZXREYXRhKCdUZXh0Jyk7XG4gICAgICAgICAgICBpZiAoZGF0YSkge1xuICAgICAgICAgICAgICAgIGlmICh0aGlzLm1heGxlbmd0aCkge1xuICAgICAgICAgICAgICAgICAgICBkYXRhID0gZGF0YS50b1N0cmluZygpLnN1YnN0cmluZygwLCB0aGlzLm1heGxlbmd0aCk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgbGV0IGZpbHRlcmVkRGF0YSA9IHRoaXMucGFyc2VWYWx1ZShkYXRhKTtcbiAgICAgICAgICAgICAgICBpZiAoZmlsdGVyZWREYXRhICE9IG51bGwpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5pbnNlcnQoZXZlbnQsIGZpbHRlcmVkRGF0YS50b1N0cmluZygpKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBhbGxvd01pbnVzU2lnbigpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMubWluID09IG51bGwgfHwgdGhpcy5taW4gPCAwO1xuICAgIH1cblxuICAgIGlzTWludXNTaWduKGNoYXI6IHN0cmluZykge1xuICAgICAgICBpZiAodGhpcy5fbWludXNTaWduLnRlc3QoY2hhcikgfHwgY2hhciA9PT0gJy0nKSB7XG4gICAgICAgICAgICB0aGlzLl9taW51c1NpZ24ubGFzdEluZGV4ID0gMDtcbiAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cblxuICAgIGlzRGVjaW1hbFNpZ24oY2hhcjogc3RyaW5nKSB7XG4gICAgICAgIGlmICh0aGlzLl9kZWNpbWFsLnRlc3QoY2hhcikpIHtcbiAgICAgICAgICAgIHRoaXMuX2RlY2ltYWwubGFzdEluZGV4ID0gMDtcbiAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cblxuICAgIGlzRGVjaW1hbE1vZGUoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLm1vZGUgPT09ICdkZWNpbWFsJztcbiAgICB9XG5cbiAgICBnZXREZWNpbWFsQ2hhckluZGV4ZXModmFsOiBzdHJpbmcpIHtcbiAgICAgICAgbGV0IGRlY2ltYWxDaGFySW5kZXggPSB2YWwuc2VhcmNoKHRoaXMuX2RlY2ltYWwpO1xuICAgICAgICB0aGlzLl9kZWNpbWFsLmxhc3RJbmRleCA9IDA7XG5cbiAgICAgICAgY29uc3QgZmlsdGVyZWRWYWwgPSB2YWxcbiAgICAgICAgICAgIC5yZXBsYWNlKHRoaXMuX3ByZWZpeCBhc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NlIHtcbiAgICAgICAgICAgICAgICBpLS07XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoaW5kZXggIT09IG51bGwpIHtcbiAgICAgICAgICAgIHRoaXMuaW5wdXQ/Lm5hdGl2ZUVsZW1lbnQuc2V0U2VsZWN0aW9uUmFuZ2UoaW5kZXggKyAxLCBpbmRleCArIDEpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgaSA9IHNlbGVjdGlvblN0YXJ0O1xuICAgICAgICAgICAgd2hpbGUgKGkgPCB2YWx1ZUxlbmd0aCkge1xuICAgICAgICAgICAgICAgIGNoYXIgPSBpbnB1dFZhbHVlLmNoYXJBdChpKTtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5pc051bWVyYWxDaGFyKGNoYXIpKSB7XG4gICAgICAgICAgICAgICAgICAgIGluZGV4ID0gaSArIHByZWZpeExlbmd0aDtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgaSsrO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKGluZGV4ICE9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5pbnB1dD8ubmF0aXZlRWxlbWVudC5zZXRTZWxlY3Rpb25SYW5nZShpbmRleCwgaW5kZXgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGluZGV4IHx8IDA7XG4gICAgfVxuXG4gICAgb25JbnB1dENsaWNrKCkge1xuICAgICAgICBjb25zdCBjdXJyZW50VmFsdWUgPSB0aGlzLmlucHV0Py5uYXRpdmVFbGVtZW50LnZhbHVlO1xuXG4gICAgICAgIGlmICghdGhpcy5yZWFkb25seSAmJiBjdXJyZW50VmFsdWUgIT09IERvbUhhbmRsZXIuZ2V0U2VsZWN0aW9uKCkpIHtcbiAgICAgICAgICA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