@wavemaker/app-ng-runtime 11.10.4-rc.6083 → 11.10.5-1.6111
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/components/data/table/bundles/index.umd.js +13 -2
- package/components/data/table/esm2022/table.component.mjs +14 -3
- package/components/data/table/fesm2022/index.mjs +13 -2
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/data/table/table.component.d.ts +1 -0
- package/components/input/currency/bundles/index.umd.js +3 -3
- package/components/input/currency/esm2022/currency.component.mjs +4 -4
- package/components/input/currency/fesm2022/index.mjs +3 -3
- package/components/input/currency/fesm2022/index.mjs.map +1 -1
- package/components/input/default/bundles/index.umd.js +14 -4
- package/components/input/default/esm2022/number/number.component.mjs +4 -4
- package/components/input/default/esm2022/text/locale/number-locale.mjs +12 -2
- package/components/input/default/fesm2022/index.mjs +14 -4
- package/components/input/default/fesm2022/index.mjs.map +1 -1
- package/components/input/default/text/locale/number-locale.d.ts +1 -0
- package/components/navigation/popover/bundles/index.umd.js +6 -6
- package/components/navigation/popover/esm2022/popover.component.mjs +7 -7
- package/components/navigation/popover/fesm2022/index.mjs +6 -6
- package/components/navigation/popover/fesm2022/index.mjs.map +1 -1
- package/components/navigation/popover/popover.component.d.ts +4 -0
- package/core/bundles/index.umd.js +3 -1
- package/core/esm2022/utils/build-utils.mjs +4 -2
- package/core/fesm2022/index.mjs +3 -1
- package/core/fesm2022/index.mjs.map +1 -1
- package/locales/moment-timezone/moment-timezone-with-data.js +6 -5
- package/npm-shrinkwrap.json +2 -2
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +2 -2
- package/runtime/base/components/base-spa-page.component.d.ts +1 -1
- package/runtime/base/esm2022/components/base-spa-page.component.mjs +3 -3
- package/runtime/base/fesm2022/index.mjs +2 -2
- package/runtime/base/fesm2022/index.mjs.map +1 -1
- package/scripts/datatable/datatable.js +20 -4
|
@@ -274,6 +274,7 @@ export declare class TableComponent extends StylableComponent implements AfterCo
|
|
|
274
274
|
onBeforeFormRender: (row: any, e: any, operation: any) => any;
|
|
275
275
|
registerRowNgClassWatcher: (rowData: any, index: any) => void;
|
|
276
276
|
registerColNgClassWatcher: (rowData: any, colDef: any, rowIndex: any, colIndex: any, summaryRow: any) => void;
|
|
277
|
+
registerCollapseOrExpandTitleWatch: (expr: any, rowData: any, index: any, titleName: any, element: any) => void;
|
|
277
278
|
clearCustomExpression: () => void;
|
|
278
279
|
clearRowDetailExpression: () => void;
|
|
279
280
|
generateCustomExpressions: (rowData: any, index: any, summaryRow?: any) => void;
|
|
@@ -87,11 +87,11 @@
|
|
|
87
87
|
i2.provideAs(CurrencyComponent, i3.NG_VALUE_ACCESSOR, true),
|
|
88
88
|
i2.provideAs(CurrencyComponent, i3.NG_VALIDATORS, true),
|
|
89
89
|
i2.provideAsWidgetRef(CurrencyComponent)
|
|
90
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 3, vars: 13, consts: [["input", ""], [1, "input-group-addon", 3, "textContent"], ["role", "textbox", "type", "text", "inputmode", "decimal", "focus-target", "", 1, "form-control", "app-textbox", "app-currency-input", 3, "focus", "input", "blur", "ngModelChange", "keydown", "keydown.enter", "keydown.ArrowUp", "keydown.ArrowDown", "autofocus", "readonly", "disabled", "required", "pattern", "ngModel", "ngModelOptions"]], template: function CurrencyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
90
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 3, vars: 13, consts: [["input", ""], [1, "input-group-addon", 3, "textContent"], ["role", "textbox", "type", "text", "inputmode", "decimal", "focus-target", "", 1, "form-control", "app-textbox", "app-currency-input", 3, "focus", "input", "paste", "blur", "ngModelChange", "keydown", "keydown.enter", "keydown.ArrowUp", "keydown.ArrowDown", "autofocus", "readonly", "disabled", "required", "pattern", "ngModel", "ngModelOptions"]], template: function CurrencyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
91
91
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
92
92
|
i0__namespace.ɵɵelement(0, "span", 1);
|
|
93
93
|
i0__namespace.ɵɵelementStart(1, "input", 2, 0);
|
|
94
|
-
i0__namespace.ɵɵlistener("focus", function CurrencyComponent_Template_input_focus_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("input", function CurrencyComponent_Template_input_input_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onInputChange($event.target.value)); })("blur", function CurrencyComponent_Template_input_blur_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); ctx.handleBlur($event); return i0__namespace.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("ngModelChange", function CurrencyComponent_Template_input_ngModelChange_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onModelChange($event)); })("keydown", function CurrencyComponent_Template_input_keydown_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.validateInputEntry($event)); })("keydown.enter", function CurrencyComponent_Template_input_keydown_enter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onEnter($event)); })("keydown.ArrowUp", function CurrencyComponent_Template_input_keydown_ArrowUp_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onArrowPress($event, "UP")); })("keydown.ArrowDown", function CurrencyComponent_Template_input_keydown_ArrowDown_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onArrowPress($event, "DOWN")); });
|
|
94
|
+
i0__namespace.ɵɵlistener("focus", function CurrencyComponent_Template_input_focus_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("input", function CurrencyComponent_Template_input_input_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onInputChange($event.target.value)); })("paste", function CurrencyComponent_Template_input_paste_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onPaste($event)); })("blur", function CurrencyComponent_Template_input_blur_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); ctx.handleBlur($event); return i0__namespace.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("ngModelChange", function CurrencyComponent_Template_input_ngModelChange_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onModelChange($event)); })("keydown", function CurrencyComponent_Template_input_keydown_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.validateInputEntry($event)); })("keydown.enter", function CurrencyComponent_Template_input_keydown_enter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onEnter($event)); })("keydown.ArrowUp", function CurrencyComponent_Template_input_keydown_ArrowUp_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onArrowPress($event, "UP")); })("keydown.ArrowDown", function CurrencyComponent_Template_input_keydown_ArrowDown_1_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onArrowPress($event, "DOWN")); });
|
|
95
95
|
i0__namespace.ɵɵelementEnd();
|
|
96
96
|
} if (rf & 2) {
|
|
97
97
|
i0__namespace.ɵɵproperty("textContent", ctx.currencySymbol);
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
i2.provideAs(CurrencyComponent, i3.NG_VALUE_ACCESSOR, true),
|
|
107
107
|
i2.provideAs(CurrencyComponent, i3.NG_VALIDATORS, true),
|
|
108
108
|
i2.provideAsWidgetRef(CurrencyComponent)
|
|
109
|
-
], template: "<span class=\"input-group-addon\" [textContent]=\"currencySymbol\"></span>\n<input class=\"form-control app-textbox app-currency-input\"\n #input\n role=\"textbox\"\n type=\"text\"\n inputmode=\"decimal\"\n focus-target\n [autofocus]=\"autofocus\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [pattern]=\"regexp\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"arialabel || currencyCode\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [ngModel]=\"displayValue\"\n [ngModelOptions]=\"ngModelOptions\"\n\n (focus)=\"checkForTrailingZeros($event)\"\n (input)=\"onInputChange($event.target.value)\"\n (blur)=\"handleBlur($event); checkForTrailingZeros($event);\"\n (ngModelChange)=\"onModelChange($event)\"\n (keydown)=\"validateInputEntry($event);\"\n (keydown.enter)=\"onEnter($event)\"\n (keydown.ArrowUp)=\"onArrowPress($event, 'UP')\"\n (keydown.ArrowDown)=\"onArrowPress($event, 'DOWN')\">\n" }]
|
|
109
|
+
], template: "<span class=\"input-group-addon\" [textContent]=\"currencySymbol\"></span>\n<input class=\"form-control app-textbox app-currency-input\"\n #input\n role=\"textbox\"\n type=\"text\"\n inputmode=\"decimal\"\n focus-target\n [autofocus]=\"autofocus\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [pattern]=\"regexp\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"arialabel || currencyCode\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [ngModel]=\"displayValue\"\n [ngModelOptions]=\"ngModelOptions\"\n\n (focus)=\"checkForTrailingZeros($event)\"\n (input)=\"onInputChange($event.target.value)\"\n (paste)=\"onPaste($event)\"\n (blur)=\"handleBlur($event); checkForTrailingZeros($event);\"\n (ngModelChange)=\"onModelChange($event)\"\n (keydown)=\"validateInputEntry($event);\"\n (keydown.enter)=\"onEnter($event)\"\n (keydown.ArrowUp)=\"onArrowPress($event, 'UP')\"\n (keydown.ArrowDown)=\"onArrowPress($event, 'DOWN')\">\n" }]
|
|
110
110
|
}], () => [{ type: i0__namespace.Injector }, { type: i1__namespace.AppDefaults }, { type: i1__namespace.AbstractI18nService }, { type: i2__namespace.TrailingZeroDecimalPipe }, { type: undefined, decorators: [{
|
|
111
111
|
type: i0.Inject,
|
|
112
112
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -44,11 +44,11 @@ export class CurrencyComponent extends NumberLocale {
|
|
|
44
44
|
provideAs(CurrencyComponent, NG_VALUE_ACCESSOR, true),
|
|
45
45
|
provideAs(CurrencyComponent, NG_VALIDATORS, true),
|
|
46
46
|
provideAsWidgetRef(CurrencyComponent)
|
|
47
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 3, vars: 13, consts: [["input", ""], [1, "input-group-addon", 3, "textContent"], ["role", "textbox", "type", "text", "inputmode", "decimal", "focus-target", "", 1, "form-control", "app-textbox", "app-currency-input", 3, "focus", "input", "blur", "ngModelChange", "keydown", "keydown.enter", "keydown.ArrowUp", "keydown.ArrowDown", "autofocus", "readonly", "disabled", "required", "pattern", "ngModel", "ngModelOptions"]], template: function CurrencyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
47
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 3, vars: 13, consts: [["input", ""], [1, "input-group-addon", 3, "textContent"], ["role", "textbox", "type", "text", "inputmode", "decimal", "focus-target", "", 1, "form-control", "app-textbox", "app-currency-input", 3, "focus", "input", "paste", "blur", "ngModelChange", "keydown", "keydown.enter", "keydown.ArrowUp", "keydown.ArrowDown", "autofocus", "readonly", "disabled", "required", "pattern", "ngModel", "ngModelOptions"]], template: function CurrencyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
48
48
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
49
49
|
i0.ɵɵelement(0, "span", 1);
|
|
50
50
|
i0.ɵɵelementStart(1, "input", 2, 0);
|
|
51
|
-
i0.ɵɵlistener("focus", function CurrencyComponent_Template_input_focus_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("input", function CurrencyComponent_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onInputChange($event.target.value)); })("blur", function CurrencyComponent_Template_input_blur_1_listener($event) { i0.ɵɵrestoreView(_r1); ctx.handleBlur($event); return i0.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("ngModelChange", function CurrencyComponent_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onModelChange($event)); })("keydown", function CurrencyComponent_Template_input_keydown_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.validateInputEntry($event)); })("keydown.enter", function CurrencyComponent_Template_input_keydown_enter_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onEnter($event)); })("keydown.ArrowUp", function CurrencyComponent_Template_input_keydown_ArrowUp_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onArrowPress($event, "UP")); })("keydown.ArrowDown", function CurrencyComponent_Template_input_keydown_ArrowDown_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onArrowPress($event, "DOWN")); });
|
|
51
|
+
i0.ɵɵlistener("focus", function CurrencyComponent_Template_input_focus_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("input", function CurrencyComponent_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onInputChange($event.target.value)); })("paste", function CurrencyComponent_Template_input_paste_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onPaste($event)); })("blur", function CurrencyComponent_Template_input_blur_1_listener($event) { i0.ɵɵrestoreView(_r1); ctx.handleBlur($event); return i0.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("ngModelChange", function CurrencyComponent_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onModelChange($event)); })("keydown", function CurrencyComponent_Template_input_keydown_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.validateInputEntry($event)); })("keydown.enter", function CurrencyComponent_Template_input_keydown_enter_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onEnter($event)); })("keydown.ArrowUp", function CurrencyComponent_Template_input_keydown_ArrowUp_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onArrowPress($event, "UP")); })("keydown.ArrowDown", function CurrencyComponent_Template_input_keydown_ArrowDown_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onArrowPress($event, "DOWN")); });
|
|
52
52
|
i0.ɵɵelementEnd();
|
|
53
53
|
} if (rf & 2) {
|
|
54
54
|
i0.ɵɵproperty("textContent", ctx.currencySymbol);
|
|
@@ -63,7 +63,7 @@ export class CurrencyComponent extends NumberLocale {
|
|
|
63
63
|
provideAs(CurrencyComponent, NG_VALUE_ACCESSOR, true),
|
|
64
64
|
provideAs(CurrencyComponent, NG_VALIDATORS, true),
|
|
65
65
|
provideAsWidgetRef(CurrencyComponent)
|
|
66
|
-
], template: "<span class=\"input-group-addon\" [textContent]=\"currencySymbol\"></span>\n<input class=\"form-control app-textbox app-currency-input\"\n #input\n role=\"textbox\"\n type=\"text\"\n inputmode=\"decimal\"\n focus-target\n [autofocus]=\"autofocus\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [pattern]=\"regexp\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"arialabel || currencyCode\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [ngModel]=\"displayValue\"\n [ngModelOptions]=\"ngModelOptions\"\n\n (focus)=\"checkForTrailingZeros($event)\"\n (input)=\"onInputChange($event.target.value)\"\n (blur)=\"handleBlur($event); checkForTrailingZeros($event);\"\n (ngModelChange)=\"onModelChange($event)\"\n (keydown)=\"validateInputEntry($event);\"\n (keydown.enter)=\"onEnter($event)\"\n (keydown.ArrowUp)=\"onArrowPress($event, 'UP')\"\n (keydown.ArrowDown)=\"onArrowPress($event, 'DOWN')\">\n" }]
|
|
66
|
+
], template: "<span class=\"input-group-addon\" [textContent]=\"currencySymbol\"></span>\n<input class=\"form-control app-textbox app-currency-input\"\n #input\n role=\"textbox\"\n type=\"text\"\n inputmode=\"decimal\"\n focus-target\n [autofocus]=\"autofocus\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [pattern]=\"regexp\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"arialabel || currencyCode\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [ngModel]=\"displayValue\"\n [ngModelOptions]=\"ngModelOptions\"\n\n (focus)=\"checkForTrailingZeros($event)\"\n (input)=\"onInputChange($event.target.value)\"\n (paste)=\"onPaste($event)\"\n (blur)=\"handleBlur($event); checkForTrailingZeros($event);\"\n (ngModelChange)=\"onModelChange($event)\"\n (keydown)=\"validateInputEntry($event);\"\n (keydown.enter)=\"onEnter($event)\"\n (keydown.ArrowUp)=\"onArrowPress($event, 'UP')\"\n (keydown.ArrowDown)=\"onArrowPress($event, 'DOWN')\">\n" }]
|
|
67
67
|
}], () => [{ type: i0.Injector }, { type: i1.AppDefaults }, { type: i1.AbstractI18nService }, { type: i2.TrailingZeroDecimalPipe }, { type: undefined, decorators: [{
|
|
68
68
|
type: Inject,
|
|
69
69
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -77,4 +77,4 @@ export class CurrencyComponent extends NumberLocale {
|
|
|
77
77
|
args: ['input', { static: true, read: ElementRef }]
|
|
78
78
|
}] }); })();
|
|
79
79
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CurrencyComponent, { className: "CurrencyComponent", filePath: "currency.component.ts", lineNumber: 26 }); })();
|
|
80
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
80
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycmVuY3kuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29tcG9uZW50cy93aWRnZXRzL2lucHV0L2N1cnJlbmN5L3NyYy9jdXJyZW5jeS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3dpZGdldHMvaW5wdXQvY3VycmVuY3kvc3JjL2N1cnJlbmN5LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxRQUFRLEVBQUUsUUFBUSxFQUFFLFNBQVMsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUMzRixPQUFPLEVBQUMsYUFBYSxFQUFFLGlCQUFpQixFQUFFLE9BQU8sRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBRXpFLE9BQU8sRUFBQyxtQkFBbUIsRUFBRSxXQUFXLEVBQUUsYUFBYSxFQUFDLE1BQU0sVUFBVSxDQUFDO0FBQ3pFLE9BQU8sRUFBZ0IsU0FBUyxFQUFFLGtCQUFrQixFQUFFLHVCQUF1QixFQUFDLE1BQU0scUJBQXFCLENBQUM7QUFDMUcsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLHNCQUFzQixDQUFDO0FBRWxELE9BQU8sRUFBQyxhQUFhLEVBQUMsTUFBTSxrQkFBa0IsQ0FBQzs7Ozs7OztBQUUvQyxNQUFNLFdBQVcsR0FBRywwQkFBMEIsQ0FBQztBQUUvQ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JGV2ZW50LnRhcmdldC52YWx1ZSlcIlxuICAgICAgIChwYXN0ZSk9XCJvblBhc3RlKCRldmVudClcIlxuICAgICAgIChibHVyKT1cImhhbmRsZUJsdXIoJGV2ZW50KTsgY2hlY2tGb3JUcmFpbGluZ1plcm9zKCRldmVudCk7XCJcbiAgICAgICAobmdNb2RlbENoYW5nZSk9XCJvbk1vZGVsQ2hhbmdlKCRldmVudClcIlxuICAgICAgIChrZXlkb3duKT1cInZhbGlkYXRlSW5wdXRFbnRyeSgkZXZlbnQpO1wiXG4gICAgICAgKGtleWRvd24uZW50ZXIpPVwib25FbnRlcigkZXZlbnQpXCJcbiAgICAgICAoa2V5ZG93bi5BcnJvd1VwKT1cIm9uQXJyb3dQcmVzcygkZXZlbnQsICdVUCcpXCJcbiAgICAgICAoa2V5ZG93bi5BcnJvd0Rvd24pPVwib25BcnJvd1ByZXNzKCRldmVudCwgJ0RPV04nKVwiPlxuIl19
|
|
@@ -70,11 +70,11 @@ class CurrencyComponent extends NumberLocale {
|
|
|
70
70
|
provideAs(CurrencyComponent, NG_VALUE_ACCESSOR, true),
|
|
71
71
|
provideAs(CurrencyComponent, NG_VALIDATORS, true),
|
|
72
72
|
provideAsWidgetRef(CurrencyComponent)
|
|
73
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 3, vars: 13, consts: [["input", ""], [1, "input-group-addon", 3, "textContent"], ["role", "textbox", "type", "text", "inputmode", "decimal", "focus-target", "", 1, "form-control", "app-textbox", "app-currency-input", 3, "focus", "input", "blur", "ngModelChange", "keydown", "keydown.enter", "keydown.ArrowUp", "keydown.ArrowDown", "autofocus", "readonly", "disabled", "required", "pattern", "ngModel", "ngModelOptions"]], template: function CurrencyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
73
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 3, vars: 13, consts: [["input", ""], [1, "input-group-addon", 3, "textContent"], ["role", "textbox", "type", "text", "inputmode", "decimal", "focus-target", "", 1, "form-control", "app-textbox", "app-currency-input", 3, "focus", "input", "paste", "blur", "ngModelChange", "keydown", "keydown.enter", "keydown.ArrowUp", "keydown.ArrowDown", "autofocus", "readonly", "disabled", "required", "pattern", "ngModel", "ngModelOptions"]], template: function CurrencyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
74
74
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
75
75
|
i0.ɵɵelement(0, "span", 1);
|
|
76
76
|
i0.ɵɵelementStart(1, "input", 2, 0);
|
|
77
|
-
i0.ɵɵlistener("focus", function CurrencyComponent_Template_input_focus_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("input", function CurrencyComponent_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onInputChange($event.target.value)); })("blur", function CurrencyComponent_Template_input_blur_1_listener($event) { i0.ɵɵrestoreView(_r1); ctx.handleBlur($event); return i0.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("ngModelChange", function CurrencyComponent_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onModelChange($event)); })("keydown", function CurrencyComponent_Template_input_keydown_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.validateInputEntry($event)); })("keydown.enter", function CurrencyComponent_Template_input_keydown_enter_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onEnter($event)); })("keydown.ArrowUp", function CurrencyComponent_Template_input_keydown_ArrowUp_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onArrowPress($event, "UP")); })("keydown.ArrowDown", function CurrencyComponent_Template_input_keydown_ArrowDown_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onArrowPress($event, "DOWN")); });
|
|
77
|
+
i0.ɵɵlistener("focus", function CurrencyComponent_Template_input_focus_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("input", function CurrencyComponent_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onInputChange($event.target.value)); })("paste", function CurrencyComponent_Template_input_paste_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onPaste($event)); })("blur", function CurrencyComponent_Template_input_blur_1_listener($event) { i0.ɵɵrestoreView(_r1); ctx.handleBlur($event); return i0.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("ngModelChange", function CurrencyComponent_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onModelChange($event)); })("keydown", function CurrencyComponent_Template_input_keydown_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.validateInputEntry($event)); })("keydown.enter", function CurrencyComponent_Template_input_keydown_enter_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onEnter($event)); })("keydown.ArrowUp", function CurrencyComponent_Template_input_keydown_ArrowUp_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onArrowPress($event, "UP")); })("keydown.ArrowDown", function CurrencyComponent_Template_input_keydown_ArrowDown_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onArrowPress($event, "DOWN")); });
|
|
78
78
|
i0.ɵɵelementEnd();
|
|
79
79
|
} if (rf & 2) {
|
|
80
80
|
i0.ɵɵproperty("textContent", ctx.currencySymbol);
|
|
@@ -89,7 +89,7 @@ class CurrencyComponent extends NumberLocale {
|
|
|
89
89
|
provideAs(CurrencyComponent, NG_VALUE_ACCESSOR, true),
|
|
90
90
|
provideAs(CurrencyComponent, NG_VALIDATORS, true),
|
|
91
91
|
provideAsWidgetRef(CurrencyComponent)
|
|
92
|
-
], template: "<span class=\"input-group-addon\" [textContent]=\"currencySymbol\"></span>\n<input class=\"form-control app-textbox app-currency-input\"\n #input\n role=\"textbox\"\n type=\"text\"\n inputmode=\"decimal\"\n focus-target\n [autofocus]=\"autofocus\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [pattern]=\"regexp\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"arialabel || currencyCode\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [ngModel]=\"displayValue\"\n [ngModelOptions]=\"ngModelOptions\"\n\n (focus)=\"checkForTrailingZeros($event)\"\n (input)=\"onInputChange($event.target.value)\"\n (blur)=\"handleBlur($event); checkForTrailingZeros($event);\"\n (ngModelChange)=\"onModelChange($event)\"\n (keydown)=\"validateInputEntry($event);\"\n (keydown.enter)=\"onEnter($event)\"\n (keydown.ArrowUp)=\"onArrowPress($event, 'UP')\"\n (keydown.ArrowDown)=\"onArrowPress($event, 'DOWN')\">\n" }]
|
|
92
|
+
], template: "<span class=\"input-group-addon\" [textContent]=\"currencySymbol\"></span>\n<input class=\"form-control app-textbox app-currency-input\"\n #input\n role=\"textbox\"\n type=\"text\"\n inputmode=\"decimal\"\n focus-target\n [autofocus]=\"autofocus\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [pattern]=\"regexp\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"arialabel || currencyCode\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [ngModel]=\"displayValue\"\n [ngModelOptions]=\"ngModelOptions\"\n\n (focus)=\"checkForTrailingZeros($event)\"\n (input)=\"onInputChange($event.target.value)\"\n (paste)=\"onPaste($event)\"\n (blur)=\"handleBlur($event); checkForTrailingZeros($event);\"\n (ngModelChange)=\"onModelChange($event)\"\n (keydown)=\"validateInputEntry($event);\"\n (keydown.enter)=\"onEnter($event)\"\n (keydown.ArrowUp)=\"onArrowPress($event, 'UP')\"\n (keydown.ArrowDown)=\"onArrowPress($event, 'DOWN')\">\n" }]
|
|
93
93
|
}], () => [{ type: i0.Injector }, { type: i1.AppDefaults }, { type: i1.AbstractI18nService }, { type: i2.TrailingZeroDecimalPipe }, { type: undefined, decorators: [{
|
|
94
94
|
type: Inject,
|
|
95
95
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/input/currency/src/currency.props.ts","../../../../../projects/components/widgets/input/currency/src/currency.component.ts","../../../../../projects/components/widgets/input/currency/src/currency.component.html","../../../../../projects/components/widgets/input/currency/src/currency.module.ts","../../../../../projects/components/widgets/input/currency/src/index.ts"],"sourcesContent":["import {PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register, registerFormWidget} from '@wm/components/base';\nimport {FormWidgetType} from '@wm/core';\n\nexport const currencyProps = new Map(\n [\n ['class', PROP_STRING],\n ['currency', PROP_STRING],\n ['datavalue', PROP_STRING],\n ['disabled', PROP_BOOLEAN],\n ['hint', PROP_STRING],\n ['arialabel', PROP_STRING],\n ['maxvalue', PROP_NUMBER],\n ['minvalue', PROP_NUMBER],\n ['name', PROP_STRING],\n ['placeholder', {value: 'Enter value', ...PROP_STRING}],\n ['readonly', PROP_BOOLEAN],\n ['required', PROP_BOOLEAN],\n ['shortcutkey', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['step', {value: 1, ...PROP_NUMBER}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['trailingzero', {value: false, ...PROP_BOOLEAN}],\n ['inputmode', {value: 'natural', ...PROP_STRING}]\n ]\n);\n\nexport const registerProps = () => {\n register(\n 'wm-currency',\n currencyProps\n );\n registerFormWidget(\n FormWidgetType.CURRENCY,\n new Map(currencyProps)\n );\n};\n","import {Component, ElementRef, Inject, Injector, Optional, ViewChild} from '@angular/core';\nimport {NG_VALIDATORS, NG_VALUE_ACCESSOR, NgModel} from '@angular/forms';\n\nimport {AbstractI18nService, AppDefaults, CURRENCY_INFO} from '@wm/core';\nimport {IWidgetConfig, provideAs, provideAsWidgetRef, TrailingZeroDecimalPipe} from '@wm/components/base';\nimport {NumberLocale} from '@wm/components/input';\n\nimport {registerProps} from './currency.props';\n\nconst DEFAULT_CLS = 'input-group app-currency';\n\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-currency',\n hostClass: DEFAULT_CLS\n};\n\n@Component({\n selector: '[wmCurrency]',\n templateUrl: './currency.component.html',\n providers: [\n provideAs(CurrencyComponent, NG_VALUE_ACCESSOR, true),\n provideAs(CurrencyComponent, NG_VALIDATORS, true),\n provideAsWidgetRef(CurrencyComponent)\n ]\n})\nexport class CurrencyComponent extends NumberLocale {\n static initializeProps = registerProps();\n\n currencyCode: string;\n currencySymbol: string;\n public required: boolean;\n public regexp: any;\n public disabled: boolean;\n public autofocus: boolean;\n public name: string;\n public tabindex: any;\n public shortcutkey: string;\n public hint: string;\n public arialabel: string;\n\n @ViewChild(NgModel, {static: true}) ngModel: NgModel;\n @ViewChild('input', { static: true, read: ElementRef }) inputEl: ElementRef;\n\n constructor(inj: Injector, private appDefaults: AppDefaults, i18nService: AbstractI18nService, trailingZeroDecimalPipe: TrailingZeroDecimalPipe, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_CONFIG, i18nService, trailingZeroDecimalPipe, explicitContext);\n this.currencyCode = this.appDefaults.currencyCode || 'USD';\n this.currencySymbol = CURRENCY_INFO[this.appDefaults.currencyCode || \"USD\"].symbol;\n }\n\n onPropertyChange(key: string, nv: any, ov?: any) {\n if (key === 'currency') {\n this.currencyCode = nv;\n this.currencySymbol = CURRENCY_INFO[this.currencyCode|| this.appDefaults.currencyCode].symbol;\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n}\n","<span class=\"input-group-addon\" [textContent]=\"currencySymbol\"></span>\n<input class=\"form-control app-textbox app-currency-input\"\n #input\n role=\"textbox\"\n type=\"text\"\n inputmode=\"decimal\"\n focus-target\n [autofocus]=\"autofocus\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [pattern]=\"regexp\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"arialabel || currencyCode\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [ngModel]=\"displayValue\"\n [ngModelOptions]=\"ngModelOptions\"\n\n (focus)=\"checkForTrailingZeros($event)\"\n (input)=\"onInputChange($event.target.value)\"\n (blur)=\"handleBlur($event); checkForTrailingZeros($event);\"\n (ngModelChange)=\"onModelChange($event)\"\n (keydown)=\"validateInputEntry($event);\"\n (keydown.enter)=\"onEnter($event)\"\n (keydown.ArrowUp)=\"onArrowPress($event, 'UP')\"\n (keydown.ArrowDown)=\"onArrowPress($event, 'DOWN')\">\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { InputModule } from '@wm/components/input';\n\nimport { CurrencyComponent } from './currency.component';\n\nconst components = [\n CurrencyComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n InputModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class CurrencyModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;AAGO,MAAM,aAAa,GAAG,IAAI,GAAG,CAChC;IACI,CAAC,OAAO,EAAE,WAAW,CAAC;IACtB,CAAC,UAAU,EAAE,WAAW,CAAC;IACzB,CAAC,WAAW,EAAE,WAAW,CAAC;IAC1B,CAAC,UAAU,EAAE,YAAY,CAAC;IAC1B,CAAC,MAAM,EAAE,WAAW,CAAC;IACrB,CAAC,WAAW,EAAE,WAAW,CAAC;IAC1B,CAAC,UAAU,EAAE,WAAW,CAAC;IACzB,CAAC,UAAU,EAAE,WAA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AAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,OAAO,EAAE;oBACL,YAAY;oBACZ,WAAW;oBACX,WAAW;oBACX;AACH,iBAAA;AACD,gBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU;AAC1B,aAAA;;wFACY,cAAc,EAAA,EAAA,YAAA,EAAA,CAbvB,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAKb,YAAY;QACZ,WAAW;QACX,WAAW;AACX,QAAA,kBAAkB,aARtB,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACVrB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/input/currency/src/currency.props.ts","../../../../../projects/components/widgets/input/currency/src/currency.component.ts","../../../../../projects/components/widgets/input/currency/src/currency.component.html","../../../../../projects/components/widgets/input/currency/src/currency.module.ts","../../../../../projects/components/widgets/input/currency/src/index.ts"],"sourcesContent":["import {PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register, registerFormWidget} from '@wm/components/base';\nimport {FormWidgetType} from '@wm/core';\n\nexport const currencyProps = new Map(\n [\n ['class', PROP_STRING],\n ['currency', PROP_STRING],\n ['datavalue', PROP_STRING],\n ['disabled', PROP_BOOLEAN],\n ['hint', PROP_STRING],\n ['arialabel', PROP_STRING],\n ['maxvalue', PROP_NUMBER],\n ['minvalue', PROP_NUMBER],\n ['name', PROP_STRING],\n ['placeholder', {value: 'Enter value', ...PROP_STRING}],\n ['readonly', PROP_BOOLEAN],\n ['required', PROP_BOOLEAN],\n ['shortcutkey', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['step', {value: 1, ...PROP_NUMBER}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['trailingzero', {value: false, ...PROP_BOOLEAN}],\n ['inputmode', {value: 'natural', ...PROP_STRING}]\n ]\n);\n\nexport const registerProps = () => {\n register(\n 'wm-currency',\n currencyProps\n );\n registerFormWidget(\n FormWidgetType.CURRENCY,\n new Map(currencyProps)\n );\n};\n","import {Component, ElementRef, Inject, Injector, Optional, ViewChild} from '@angular/core';\nimport {NG_VALIDATORS, NG_VALUE_ACCESSOR, NgModel} from '@angular/forms';\n\nimport {AbstractI18nService, AppDefaults, CURRENCY_INFO} from '@wm/core';\nimport {IWidgetConfig, provideAs, provideAsWidgetRef, TrailingZeroDecimalPipe} from '@wm/components/base';\nimport {NumberLocale} from '@wm/components/input';\n\nimport {registerProps} from './currency.props';\n\nconst DEFAULT_CLS = 'input-group app-currency';\n\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-currency',\n hostClass: DEFAULT_CLS\n};\n\n@Component({\n selector: '[wmCurrency]',\n templateUrl: './currency.component.html',\n providers: [\n provideAs(CurrencyComponent, NG_VALUE_ACCESSOR, true),\n provideAs(CurrencyComponent, NG_VALIDATORS, true),\n provideAsWidgetRef(CurrencyComponent)\n ]\n})\nexport class CurrencyComponent extends NumberLocale {\n static initializeProps = registerProps();\n\n currencyCode: string;\n currencySymbol: string;\n public required: boolean;\n public regexp: any;\n public disabled: boolean;\n public autofocus: boolean;\n public name: string;\n public tabindex: any;\n public shortcutkey: string;\n public hint: string;\n public arialabel: string;\n\n @ViewChild(NgModel, {static: true}) ngModel: NgModel;\n @ViewChild('input', { static: true, read: ElementRef }) inputEl: ElementRef;\n\n constructor(inj: Injector, private appDefaults: AppDefaults, i18nService: AbstractI18nService, trailingZeroDecimalPipe: TrailingZeroDecimalPipe, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_CONFIG, i18nService, trailingZeroDecimalPipe, explicitContext);\n this.currencyCode = this.appDefaults.currencyCode || 'USD';\n this.currencySymbol = CURRENCY_INFO[this.appDefaults.currencyCode || \"USD\"].symbol;\n }\n\n onPropertyChange(key: string, nv: any, ov?: any) {\n if (key === 'currency') {\n this.currencyCode = nv;\n this.currencySymbol = CURRENCY_INFO[this.currencyCode|| this.appDefaults.currencyCode].symbol;\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n}\n","<span class=\"input-group-addon\" [textContent]=\"currencySymbol\"></span>\n<input class=\"form-control app-textbox app-currency-input\"\n #input\n role=\"textbox\"\n type=\"text\"\n inputmode=\"decimal\"\n focus-target\n [autofocus]=\"autofocus\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [pattern]=\"regexp\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"arialabel || currencyCode\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [ngModel]=\"displayValue\"\n [ngModelOptions]=\"ngModelOptions\"\n\n (focus)=\"checkForTrailingZeros($event)\"\n (input)=\"onInputChange($event.target.value)\"\n (paste)=\"onPaste($event)\"\n (blur)=\"handleBlur($event); checkForTrailingZeros($event);\"\n (ngModelChange)=\"onModelChange($event)\"\n (keydown)=\"validateInputEntry($event);\"\n (keydown.enter)=\"onEnter($event)\"\n (keydown.ArrowUp)=\"onArrowPress($event, 'UP')\"\n (keydown.ArrowDown)=\"onArrowPress($event, 'DOWN')\">\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { InputModule } from '@wm/components/input';\n\nimport { CurrencyComponent } from './currency.component';\n\nconst components = [\n CurrencyComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n InputModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class CurrencyModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;AAGO,MAAM,aAAa,GAAG,IAAI,GAAG,CAChC;IACI,CAAC,OAAO,EAAE,WAAW,CAAC;IACtB,CAAC,UAAU,EAAE,WAAW,CAAC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,cAAc,EAAA,EAAA,YAAA,EAAA,CAbvB,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAKb,YAAY;QACZ,WAAW;QACX,WAAW;AACX,QAAA,kBAAkB,aARtB,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACVrB;;AAEG;;;;"}
|
|
@@ -1805,7 +1805,7 @@
|
|
|
1805
1805
|
return;
|
|
1806
1806
|
}
|
|
1807
1807
|
const validity = new RegExp(`^[\\d\\s-,.e+${this.GROUP}${this.DECIMAL}]$`, 'i');
|
|
1808
|
-
const inputValue = $event.target
|
|
1808
|
+
const inputValue = $event.target?.value || "";
|
|
1809
1809
|
// when input mode is financial, do not restrict user on entering the value when step value limit is reached.
|
|
1810
1810
|
this.inputmode === i2.INPUTMODE.FINANCIAL;
|
|
1811
1811
|
// Validates if user eneters more than 16 digits
|
|
@@ -1891,6 +1891,16 @@
|
|
|
1891
1891
|
super.onPropertyChange(key, nv, ov);
|
|
1892
1892
|
}
|
|
1893
1893
|
}
|
|
1894
|
+
onPaste($event) {
|
|
1895
|
+
const pastedData = $event.clipboardData.getData('text');
|
|
1896
|
+
for (const char of pastedData) {
|
|
1897
|
+
const mockEvent = new KeyboardEvent('keypress', { key: char });
|
|
1898
|
+
if (this.validateInputEntry(mockEvent) === false) {
|
|
1899
|
+
$event.preventDefault();
|
|
1900
|
+
return;
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1894
1904
|
};
|
|
1895
1905
|
exports.NumberLocale = tslib.__decorate([
|
|
1896
1906
|
tslib.__param(4, i0.Inject('EXPLICIT_CONTEXT')),
|
|
@@ -1922,10 +1932,10 @@
|
|
|
1922
1932
|
i2.provideAs(NumberComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
1923
1933
|
i2.provideAs(NumberComponent, i2$1.NG_VALIDATORS, true),
|
|
1924
1934
|
i2.provideAsWidgetRef(NumberComponent)
|
|
1925
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$8, decls: 2, vars: 14, consts: [["input", ""], ["inputmode", "decimal", "focus-target", "", "type", "text", 1, "form-control", "app-textbox", "app-number-input", 3, "ngModelChange", "blur", "focus", "input", "keypress", "keydown.backspace", "keydown.delete", "keydown.enter", "keydown.ArrowUp", "keydown.ArrowDown", "ngModel", "readonly", "disabled", "pattern", "autofocus", "ngClass", "ngStyle", "ngModelOptions", "required"]], template: function NumberComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1935
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$8, decls: 2, vars: 14, consts: [["input", ""], ["inputmode", "decimal", "focus-target", "", "type", "text", 1, "form-control", "app-textbox", "app-number-input", 3, "ngModelChange", "blur", "focus", "input", "keypress", "paste", "keydown.backspace", "keydown.delete", "keydown.enter", "keydown.ArrowUp", "keydown.ArrowDown", "ngModel", "readonly", "disabled", "pattern", "autofocus", "ngClass", "ngStyle", "ngModelOptions", "required"]], template: function NumberComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1926
1936
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
1927
1937
|
i0__namespace.ɵɵelementStart(0, "input", 1, 0);
|
|
1928
|
-
i0__namespace.ɵɵlistener("ngModelChange", function NumberComponent_Template_input_ngModelChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onModelChange($event)); })("blur", function NumberComponent_Template_input_blur_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); ctx.handleBlur($event); return i0__namespace.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("focus", function NumberComponent_Template_input_focus_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("input", function NumberComponent_Template_input_input_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onInputChange($event.target.value)); })("keypress", function NumberComponent_Template_input_keypress_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.validateInputEntry($event)); })("keydown.backspace", function NumberComponent_Template_input_keydown_backspace_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onBackspace($event)); })("keydown.delete", function NumberComponent_Template_input_keydown_delete_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onDelete($event)); })("keydown.enter", function NumberComponent_Template_input_keydown_enter_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onEnter($event)); })("keydown.ArrowUp", function NumberComponent_Template_input_keydown_ArrowUp_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onArrowPress($event, "UP")); })("keydown.ArrowDown", function NumberComponent_Template_input_keydown_ArrowDown_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onArrowPress($event, "DOWN")); });
|
|
1938
|
+
i0__namespace.ɵɵlistener("ngModelChange", function NumberComponent_Template_input_ngModelChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onModelChange($event)); })("blur", function NumberComponent_Template_input_blur_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); ctx.handleBlur($event); return i0__namespace.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("focus", function NumberComponent_Template_input_focus_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("input", function NumberComponent_Template_input_input_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onInputChange($event.target.value)); })("keypress", function NumberComponent_Template_input_keypress_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.validateInputEntry($event)); })("paste", function NumberComponent_Template_input_paste_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onPaste($event)); })("keydown.backspace", function NumberComponent_Template_input_keydown_backspace_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onBackspace($event)); })("keydown.delete", function NumberComponent_Template_input_keydown_delete_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onDelete($event)); })("keydown.enter", function NumberComponent_Template_input_keydown_enter_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onEnter($event)); })("keydown.ArrowUp", function NumberComponent_Template_input_keydown_ArrowUp_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onArrowPress($event, "UP")); })("keydown.ArrowDown", function NumberComponent_Template_input_keydown_ArrowDown_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); return i0__namespace.ɵɵresetView(ctx.onArrowPress($event, "DOWN")); });
|
|
1929
1939
|
i0__namespace.ɵɵelementEnd();
|
|
1930
1940
|
} if (rf & 2) {
|
|
1931
1941
|
i0__namespace.ɵɵproperty("ngModel", ctx.displayValue)("readonly", ctx.readonly)("disabled", ctx.disabled)("pattern", ctx.regexp)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle)("ngModelOptions", ctx.ngModelOptions)("required", ctx.required);
|
|
@@ -1938,7 +1948,7 @@
|
|
|
1938
1948
|
i2.provideAs(NumberComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
1939
1949
|
i2.provideAs(NumberComponent, i2$1.NG_VALIDATORS, true),
|
|
1940
1950
|
i2.provideAsWidgetRef(NumberComponent)
|
|
1941
|
-
], template: "<input class=\"form-control app-textbox app-number-input\"\n inputmode=\"decimal\"\n focus-target\n [attr.name]=\"name\"\n type=\"text\"\n [ngModel]=\"displayValue\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [pattern]=\"regexp\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"arialabel\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (ngModelChange)=\"onModelChange($event)\"\n (blur)=\"handleBlur($event); checkForTrailingZeros($event);\"\n (focus)=\"checkForTrailingZeros($event)\"\n (input)=\"onInputChange($event.target.value)\"\n [ngModelOptions]=\"ngModelOptions\"\n [required]=\"required\"\n (keypress)=\"validateInputEntry($event)\"\n (keydown.backspace)=\"onBackspace($event)\"\n (keydown.delete)=\"onDelete($event)\"\n (keydown.enter)=\"onEnter($event)\"\n (keydown.ArrowUp)=\"onArrowPress($event, 'UP')\"\n (keydown.ArrowDown)=\"onArrowPress($event, 'DOWN')\"\n #input>\n" }]
|
|
1951
|
+
], template: "<input class=\"form-control app-textbox app-number-input\"\n inputmode=\"decimal\"\n focus-target\n [attr.name]=\"name\"\n type=\"text\"\n [ngModel]=\"displayValue\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [pattern]=\"regexp\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"arialabel\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (ngModelChange)=\"onModelChange($event)\"\n (blur)=\"handleBlur($event); checkForTrailingZeros($event);\"\n (focus)=\"checkForTrailingZeros($event)\"\n (input)=\"onInputChange($event.target.value)\"\n [ngModelOptions]=\"ngModelOptions\"\n [required]=\"required\"\n (keypress)=\"validateInputEntry($event)\"\n (paste)=\"onPaste($event)\"\n (keydown.backspace)=\"onBackspace($event)\"\n (keydown.delete)=\"onDelete($event)\"\n (keydown.enter)=\"onEnter($event)\"\n (keydown.ArrowUp)=\"onArrowPress($event, 'UP')\"\n (keydown.ArrowDown)=\"onArrowPress($event, 'DOWN')\"\n #input>\n" }]
|
|
1942
1952
|
}], () => [{ type: i0__namespace.Injector }, { type: i1$1__namespace.AbstractI18nService }, { type: i2__namespace.TrailingZeroDecimalPipe }, { type: undefined, decorators: [{
|
|
1943
1953
|
type: i0.Inject,
|
|
1944
1954
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -32,10 +32,10 @@ export class NumberComponent extends NumberLocale {
|
|
|
32
32
|
provideAs(NumberComponent, NG_VALUE_ACCESSOR, true),
|
|
33
33
|
provideAs(NumberComponent, NG_VALIDATORS, true),
|
|
34
34
|
provideAsWidgetRef(NumberComponent)
|
|
35
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 14, consts: [["input", ""], ["inputmode", "decimal", "focus-target", "", "type", "text", 1, "form-control", "app-textbox", "app-number-input", 3, "ngModelChange", "blur", "focus", "input", "keypress", "keydown.backspace", "keydown.delete", "keydown.enter", "keydown.ArrowUp", "keydown.ArrowDown", "ngModel", "readonly", "disabled", "pattern", "autofocus", "ngClass", "ngStyle", "ngModelOptions", "required"]], template: function NumberComponent_Template(rf, ctx) { if (rf & 1) {
|
|
35
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 14, consts: [["input", ""], ["inputmode", "decimal", "focus-target", "", "type", "text", 1, "form-control", "app-textbox", "app-number-input", 3, "ngModelChange", "blur", "focus", "input", "keypress", "paste", "keydown.backspace", "keydown.delete", "keydown.enter", "keydown.ArrowUp", "keydown.ArrowDown", "ngModel", "readonly", "disabled", "pattern", "autofocus", "ngClass", "ngStyle", "ngModelOptions", "required"]], template: function NumberComponent_Template(rf, ctx) { if (rf & 1) {
|
|
36
36
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
37
37
|
i0.ɵɵelementStart(0, "input", 1, 0);
|
|
38
|
-
i0.ɵɵlistener("ngModelChange", function NumberComponent_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onModelChange($event)); })("blur", function NumberComponent_Template_input_blur_0_listener($event) { i0.ɵɵrestoreView(_r1); ctx.handleBlur($event); return i0.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("focus", function NumberComponent_Template_input_focus_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("input", function NumberComponent_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onInputChange($event.target.value)); })("keypress", function NumberComponent_Template_input_keypress_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.validateInputEntry($event)); })("keydown.backspace", function NumberComponent_Template_input_keydown_backspace_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onBackspace($event)); })("keydown.delete", function NumberComponent_Template_input_keydown_delete_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onDelete($event)); })("keydown.enter", function NumberComponent_Template_input_keydown_enter_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onEnter($event)); })("keydown.ArrowUp", function NumberComponent_Template_input_keydown_ArrowUp_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onArrowPress($event, "UP")); })("keydown.ArrowDown", function NumberComponent_Template_input_keydown_ArrowDown_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onArrowPress($event, "DOWN")); });
|
|
38
|
+
i0.ɵɵlistener("ngModelChange", function NumberComponent_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onModelChange($event)); })("blur", function NumberComponent_Template_input_blur_0_listener($event) { i0.ɵɵrestoreView(_r1); ctx.handleBlur($event); return i0.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("focus", function NumberComponent_Template_input_focus_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("input", function NumberComponent_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onInputChange($event.target.value)); })("keypress", function NumberComponent_Template_input_keypress_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.validateInputEntry($event)); })("paste", function NumberComponent_Template_input_paste_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onPaste($event)); })("keydown.backspace", function NumberComponent_Template_input_keydown_backspace_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onBackspace($event)); })("keydown.delete", function NumberComponent_Template_input_keydown_delete_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onDelete($event)); })("keydown.enter", function NumberComponent_Template_input_keydown_enter_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onEnter($event)); })("keydown.ArrowUp", function NumberComponent_Template_input_keydown_ArrowUp_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onArrowPress($event, "UP")); })("keydown.ArrowDown", function NumberComponent_Template_input_keydown_ArrowDown_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onArrowPress($event, "DOWN")); });
|
|
39
39
|
i0.ɵɵelementEnd();
|
|
40
40
|
} if (rf & 2) {
|
|
41
41
|
i0.ɵɵproperty("ngModel", ctx.displayValue)("readonly", ctx.readonly)("disabled", ctx.disabled)("pattern", ctx.regexp)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle)("ngModelOptions", ctx.ngModelOptions)("required", ctx.required);
|
|
@@ -48,7 +48,7 @@ export class NumberComponent extends NumberLocale {
|
|
|
48
48
|
provideAs(NumberComponent, NG_VALUE_ACCESSOR, true),
|
|
49
49
|
provideAs(NumberComponent, NG_VALIDATORS, true),
|
|
50
50
|
provideAsWidgetRef(NumberComponent)
|
|
51
|
-
], template: "<input class=\"form-control app-textbox app-number-input\"\n inputmode=\"decimal\"\n focus-target\n [attr.name]=\"name\"\n type=\"text\"\n [ngModel]=\"displayValue\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [pattern]=\"regexp\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"arialabel\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (ngModelChange)=\"onModelChange($event)\"\n (blur)=\"handleBlur($event); checkForTrailingZeros($event);\"\n (focus)=\"checkForTrailingZeros($event)\"\n (input)=\"onInputChange($event.target.value)\"\n [ngModelOptions]=\"ngModelOptions\"\n [required]=\"required\"\n (keypress)=\"validateInputEntry($event)\"\n (keydown.backspace)=\"onBackspace($event)\"\n (keydown.delete)=\"onDelete($event)\"\n (keydown.enter)=\"onEnter($event)\"\n (keydown.ArrowUp)=\"onArrowPress($event, 'UP')\"\n (keydown.ArrowDown)=\"onArrowPress($event, 'DOWN')\"\n #input>\n" }]
|
|
51
|
+
], template: "<input class=\"form-control app-textbox app-number-input\"\n inputmode=\"decimal\"\n focus-target\n [attr.name]=\"name\"\n type=\"text\"\n [ngModel]=\"displayValue\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [pattern]=\"regexp\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"arialabel\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (ngModelChange)=\"onModelChange($event)\"\n (blur)=\"handleBlur($event); checkForTrailingZeros($event);\"\n (focus)=\"checkForTrailingZeros($event)\"\n (input)=\"onInputChange($event.target.value)\"\n [ngModelOptions]=\"ngModelOptions\"\n [required]=\"required\"\n (keypress)=\"validateInputEntry($event)\"\n (paste)=\"onPaste($event)\"\n (keydown.backspace)=\"onBackspace($event)\"\n (keydown.delete)=\"onDelete($event)\"\n (keydown.enter)=\"onEnter($event)\"\n (keydown.ArrowUp)=\"onArrowPress($event, 'UP')\"\n (keydown.ArrowDown)=\"onArrowPress($event, 'DOWN')\"\n #input>\n" }]
|
|
52
52
|
}], () => [{ type: i0.Injector }, { type: i1.AbstractI18nService }, { type: i2.TrailingZeroDecimalPipe }, { type: undefined, decorators: [{
|
|
53
53
|
type: Inject,
|
|
54
54
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -62,4 +62,4 @@ export class NumberComponent extends NumberLocale {
|
|
|
62
62
|
args: [NgModel, { static: true }]
|
|
63
63
|
}] }); })();
|
|
64
64
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NumberComponent, { className: "NumberComponent", filePath: "number/number.component.ts", lineNumber: 24 }); })();
|
|
65
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
65
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudHMvd2lkZ2V0cy9pbnB1dC9kZWZhdWx0L3NyYy9udW1iZXIvbnVtYmVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudHMvd2lkZ2V0cy9pbnB1dC9kZWZhdWx0L3NyYy9udW1iZXIvbnVtYmVyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxhQUFhLEVBQUUsaUJBQWlCLEVBQUUsT0FBTyxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFDekUsT0FBTyxFQUFDLFNBQVMsRUFBRSxVQUFVLEVB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