@wavemaker/app-ng-runtime 11.9.0-next.24942 → 11.9.0-next.24946
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.
- app-ng-runtime/build-task/bundles/index.umd.js +19 -19
- app-ng-runtime/build-task/esm2022/basic/default/anchor/anchor.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/default/html/html.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/default/icon/icon.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/default/label/label.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/default/picture/picture.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/default/spinner/spinner.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/rich-text-editor/rich-text-editor.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/device/barcode-scanner/barcode-scanner.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/device/camera/camera.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/input/default/button/button.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/input/default/button-group/button-group.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/input/default/switch/switch.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/footer/footer.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/header/header.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/layout.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/left-panel/left-panel.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/page.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/right-panel/right-panel.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/top-nav/top-nav.build.mjs +2 -2
- app-ng-runtime/build-task/fesm2022/index.mjs +19 -19
- app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/default/audio/audio.component.d.ts +1 -0
- app-ng-runtime/components/basic/default/bundles/index.umd.js +15 -9
- app-ng-runtime/components/basic/default/esm2022/anchor/anchor.props.mjs +2 -1
- app-ng-runtime/components/basic/default/esm2022/audio/audio.component.mjs +3 -3
- app-ng-runtime/components/basic/default/esm2022/audio/audio.props.mjs +2 -1
- app-ng-runtime/components/basic/default/esm2022/html/html.props.mjs +2 -1
- app-ng-runtime/components/basic/default/esm2022/icon/icon.component.mjs +3 -4
- app-ng-runtime/components/basic/default/esm2022/iframe/iframe.component.mjs +3 -3
- app-ng-runtime/components/basic/default/esm2022/iframe/iframe.props.mjs +3 -2
- app-ng-runtime/components/basic/default/esm2022/label/label.props.mjs +2 -1
- app-ng-runtime/components/basic/default/esm2022/picture/picture.props.mjs +2 -1
- app-ng-runtime/components/basic/default/esm2022/spinner/spinner.props.mjs +3 -2
- app-ng-runtime/components/basic/default/fesm2022/index.mjs +15 -9
- app-ng-runtime/components/basic/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/default/iframe/iframe.component.d.ts +1 -0
- app-ng-runtime/components/basic/progress/bundles/index.umd.js +6 -4
- app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +3 -3
- app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.props.mjs +2 -1
- app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.component.mjs +3 -3
- app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.props.mjs +2 -1
- app-ng-runtime/components/basic/progress/fesm2022/index.mjs +6 -4
- app-ng-runtime/components/basic/progress/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/progress/progress-bar/progress-bar.component.d.ts +1 -0
- app-ng-runtime/components/basic/progress/progress-circle/progress-circle.component.d.ts +1 -0
- app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +1 -0
- app-ng-runtime/components/basic/rich-text-editor/esm2022/rich-text-editor.props.mjs +2 -1
- app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs +1 -0
- app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/search/bundles/index.umd.js +5 -4
- app-ng-runtime/components/basic/search/esm2022/search.component.mjs +8 -8
- app-ng-runtime/components/basic/search/esm2022/search.props.mjs +2 -1
- app-ng-runtime/components/basic/search/fesm2022/index.mjs +5 -4
- app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/search/search.component.d.ts +1 -0
- app-ng-runtime/components/data/live-table/bundles/index.umd.js +2 -2
- app-ng-runtime/components/data/live-table/esm2022/live-table.component.mjs +3 -3
- app-ng-runtime/components/data/live-table/fesm2022/index.mjs +2 -2
- app-ng-runtime/components/data/live-table/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/color-picker/bundles/index.umd.js +3 -2
- app-ng-runtime/components/input/color-picker/color-picker.component.d.ts +1 -0
- app-ng-runtime/components/input/color-picker/esm2022/color-picker.component.mjs +4 -4
- app-ng-runtime/components/input/color-picker/esm2022/color-picker.props.mjs +2 -1
- app-ng-runtime/components/input/color-picker/fesm2022/index.mjs +3 -2
- app-ng-runtime/components/input/color-picker/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/currency/bundles/index.umd.js +4 -3
- app-ng-runtime/components/input/currency/currency.component.d.ts +1 -0
- app-ng-runtime/components/input/currency/esm2022/currency.component.mjs +6 -6
- app-ng-runtime/components/input/currency/esm2022/currency.props.mjs +2 -1
- app-ng-runtime/components/input/currency/fesm2022/index.mjs +4 -3
- app-ng-runtime/components/input/currency/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js +36 -25
- app-ng-runtime/components/input/default/button/button.component.d.ts +1 -0
- app-ng-runtime/components/input/default/checkbox/checkbox.component.d.ts +1 -0
- app-ng-runtime/components/input/default/esm2022/button/button.component.mjs +1 -1
- app-ng-runtime/components/input/default/esm2022/button/button.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/checkbox/checkbox.component.mjs +4 -4
- app-ng-runtime/components/input/default/esm2022/checkbox/checkbox.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/number/number.component.mjs +4 -4
- app-ng-runtime/components/input/default/esm2022/number/number.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/select/select.component.mjs +4 -4
- app-ng-runtime/components/input/default/esm2022/select/select.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/switch/switch.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/text/calendar/input-calendar.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2022/text/calendar/input-calendar.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/text/color/input-color.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2022/text/color/input-color.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/text/email/input-email.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2022/text/email/input-email.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/text/number/input-number.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2022/text/number/input-number.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/text/text/input-text.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2022/text/text/input-text.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/textarea/textarea.component.mjs +6 -6
- app-ng-runtime/components/input/default/esm2022/textarea/textarea.props.mjs +2 -1
- app-ng-runtime/components/input/default/fesm2022/index.mjs +36 -25
- app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/number/number.component.d.ts +1 -0
- app-ng-runtime/components/input/default/select/select.component.d.ts +1 -0
- app-ng-runtime/components/input/default/text/calendar/input-calendar.component.d.ts +1 -0
- app-ng-runtime/components/input/default/text/color/input-color.component.d.ts +1 -0
- app-ng-runtime/components/input/default/text/email/input-email.component.d.ts +1 -0
- app-ng-runtime/components/input/default/text/number/input-number.component.d.ts +1 -0
- app-ng-runtime/components/input/default/text/text/input-text.component.d.ts +1 -0
- app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +1 -0
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +12 -9
- app-ng-runtime/components/input/epoch/date/date.component.d.ts +1 -0
- app-ng-runtime/components/input/epoch/date-time/date-time.component.d.ts +2 -1
- app-ng-runtime/components/input/epoch/esm2022/date/date.component.mjs +6 -6
- app-ng-runtime/components/input/epoch/esm2022/date/date.props.mjs +2 -1
- app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.component.mjs +7 -7
- app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.props.mjs +2 -1
- app-ng-runtime/components/input/epoch/esm2022/time/time.component.mjs +7 -7
- app-ng-runtime/components/input/epoch/esm2022/time/time.props.mjs +2 -1
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs +12 -9
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/time/time.component.d.ts +1 -0
- app-ng-runtime/components/input/file-upload/bundles/index.umd.js +13 -11
- app-ng-runtime/components/input/file-upload/esm2022/file-upload.component.mjs +12 -12
- app-ng-runtime/components/input/file-upload/esm2022/file-upload.props.mjs +3 -1
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs +13 -11
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/file-upload/file-upload.component.d.ts +1 -0
- app-ng-runtime/components/input/slider/bundles/index.umd.js +3 -2
- app-ng-runtime/components/input/slider/esm2022/slider.component.mjs +4 -4
- app-ng-runtime/components/input/slider/esm2022/slider.props.mjs +2 -1
- app-ng-runtime/components/input/slider/fesm2022/index.mjs +3 -2
- app-ng-runtime/components/input/slider/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/slider/slider.component.d.ts +1 -0
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +4 -3
- app-ng-runtime/components/navigation/menu/esm2022/menu.component.mjs +4 -4
- app-ng-runtime/components/navigation/menu/esm2022/menu.props.mjs +2 -1
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs +4 -3
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/menu.component.d.ts +1 -0
- app-ng-runtime/components/navigation/popover/bundles/index.umd.js +4 -3
- app-ng-runtime/components/navigation/popover/esm2022/popover.component.mjs +4 -4
- app-ng-runtime/components/navigation/popover/esm2022/popover.props.mjs +2 -1
- app-ng-runtime/components/navigation/popover/fesm2022/index.mjs +4 -3
- app-ng-runtime/components/navigation/popover/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/popover/popover.component.d.ts +1 -0
- app-ng-runtime/components/page/default/bundles/index.umd.js +2 -1
- app-ng-runtime/components/page/default/esm2022/page.props.mjs +4 -3
- app-ng-runtime/components/page/default/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/page/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/footer/bundles/index.umd.js +2 -1
- app-ng-runtime/components/page/footer/esm2022/footer.props.mjs +3 -2
- app-ng-runtime/components/page/footer/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/page/footer/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/header/bundles/index.umd.js +2 -1
- app-ng-runtime/components/page/header/esm2022/header.props.mjs +3 -2
- app-ng-runtime/components/page/header/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/page/header/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/left-panel/bundles/index.umd.js +2 -1
- app-ng-runtime/components/page/left-panel/esm2022/left-panel.props.mjs +3 -2
- app-ng-runtime/components/page/left-panel/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/page/left-panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/right-panel/bundles/index.umd.js +2 -1
- app-ng-runtime/components/page/right-panel/esm2022/right-panel.props.mjs +3 -2
- app-ng-runtime/components/page/right-panel/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/page/right-panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/top-nav/bundles/index.umd.js +2 -1
- app-ng-runtime/components/page/top-nav/esm2022/top-nav.props.mjs +3 -2
- app-ng-runtime/components/page/top-nav/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/page/top-nav/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/core/bundles/index.umd.js +1 -1
- app-ng-runtime/core/esm2022/utils/build-utils.mjs +2 -2
- app-ng-runtime/core/fesm2022/index.mjs +1 -1
- app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/device/barcode-scanner/bundles/index.umd.js +2 -1
- app-ng-runtime/mobile/components/device/barcode-scanner/esm2022/barcode-scanner.props.mjs +3 -2
- app-ng-runtime/mobile/components/device/barcode-scanner/fesm2022/index.mjs +2 -1
- app-ng-runtime/mobile/components/device/barcode-scanner/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/device/camera/bundles/index.umd.js +2 -1
- app-ng-runtime/mobile/components/device/camera/esm2022/camera.props.mjs +3 -2
- app-ng-runtime/mobile/components/device/camera/fesm2022/index.mjs +2 -1
- app-ng-runtime/mobile/components/device/camera/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component, ElementRef, Inject, Injector, Optional, ViewChild } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { NG_VALIDATORS, NG_VALUE_ACCESSOR, NgModel } from '@angular/forms';
|
|
3
|
+
import { AbstractI18nService, AppDefaults, CURRENCY_INFO } from '@wm/core';
|
|
4
4
|
import { provideAs, provideAsWidgetRef, TrailingZeroDecimalPipe } from '@wm/components/base';
|
|
5
5
|
import { NumberLocale } from '@wm/components/input';
|
|
6
6
|
import { registerProps } from './currency.props';
|
|
@@ -54,7 +54,7 @@ export class CurrencyComponent extends NumberLocale {
|
|
|
54
54
|
i0.ɵɵproperty("textContent", ctx.currencySymbol);
|
|
55
55
|
i0.ɵɵadvance();
|
|
56
56
|
i0.ɵɵproperty("autofocus", ctx.autofocus)("readonly", ctx.readonly)("disabled", ctx.disabled)("required", ctx.required)("pattern", ctx.regexp)("ngModel", ctx.displayValue)("ngModelOptions", ctx.ngModelOptions);
|
|
57
|
-
i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.
|
|
57
|
+
i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.arialabel || ctx.currencyCode)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey);
|
|
58
58
|
} }, dependencies: [i3.DefaultValueAccessor, i3.NgControlStatus, i3.RequiredValidator, i3.PatternValidator, i3.NgModel, i2.TextContentDirective], encapsulation: 2 }); }
|
|
59
59
|
}
|
|
60
60
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CurrencyComponent, [{
|
|
@@ -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]=\"
|
|
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" }]
|
|
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']
|
|
@@ -76,5 +76,5 @@ export class CurrencyComponent extends NumberLocale {
|
|
|
76
76
|
type: ViewChild,
|
|
77
77
|
args: ['input', { static: true, read: ElementRef }]
|
|
78
78
|
}] }); })();
|
|
79
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CurrencyComponent, { className: "CurrencyComponent", filePath: "currency.component.ts", lineNumber:
|
|
80
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
79
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CurrencyComponent, { className: "CurrencyComponent", filePath: "currency.component.ts", lineNumber: 26 }); })();
|
|
80
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycmVuY3kuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29tcG9uZW50cy93aWRnZXR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W50KVwiXG4gICAgICAgKGtleWRvd24uQXJyb3dVcCk9XCJvbkFycm93UHJlc3MoJGV2ZW50LCAnVVAnKVwiXG4gICAgICAgKGtleWRvd24uQXJyb3dEb3duKT1cIm9uQXJyb3dQcmVzcygkZXZlbnQsICdET1dOJylcIj5cbiJdfQ==
|
|
@@ -6,6 +6,7 @@ export const currencyProps = new Map([
|
|
|
6
6
|
['datavalue', PROP_STRING],
|
|
7
7
|
['disabled', PROP_BOOLEAN],
|
|
8
8
|
['hint', PROP_STRING],
|
|
9
|
+
['arialabel', PROP_STRING],
|
|
9
10
|
['maxvalue', PROP_NUMBER],
|
|
10
11
|
['minvalue', PROP_NUMBER],
|
|
11
12
|
['name', PROP_STRING],
|
|
@@ -23,4 +24,4 @@ export const registerProps = () => {
|
|
|
23
24
|
register('wm-currency', currencyProps);
|
|
24
25
|
registerFormWidget(FormWidgetType.CURRENCY, new Map(currencyProps));
|
|
25
26
|
};
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycmVuY3kucHJvcHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3dpZGdldHMvaW5wdXQvY3VycmVuY3kvc3JjL2N1cnJlbmN5LnByb3BzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxZQUFZLEVBQUUsV0FBVyxFQUFFLFdBQVcsRUFBRSxRQUFRLEVBQUUsa0JBQWtCLEVBQUMsTUFBTSxxQkFBcUIsQ0FBQztBQUN6RyxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sVUFBVSxDQUFDO0FBRXhDLE1BQU0sQ0FBQyxNQUFNLGFBQWEsR0FBRyxJQUFJLEdBQUcsQ0FDaEM7SUFDSSxDQUFDLE9BQU8sRUFBRSx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MRUFOXSxcbiAgICAgICAgWydzaG9ydGN1dGtleScsIFBST1BfU1RSSU5HXSxcbiAgICAgICAgWydzaG93Jywge3ZhbHVlOiB0cnVlLCAuLi5QUk9QX0JPT0xFQU59XSxcbiAgICAgICAgWydzdGVwJywge3ZhbHVlOiAxLCAuLi5QUk9QX05VTUJFUn1dLFxuICAgICAgICBbJ3RhYmluZGV4Jywge3ZhbHVlOiAwLCAuLi5QUk9QX05VTUJFUn1dLFxuICAgICAgICBbJ3RyYWlsaW5nemVybycsIHt2YWx1ZTogZmFsc2UsIC4uLlBST1BfQk9PTEVBTn1dLFxuICAgICAgICBbJ2lucHV0bW9kZScsIHt2YWx1ZTogJ25hdHVyYWwnLCAuLi5QUk9QX1NUUklOR31dXG4gICAgXVxuKTtcblxuZXhwb3J0IGNvbnN0IHJlZ2lzdGVyUHJvcHMgPSAoKSA9PiB7XG4gICAgcmVnaXN0ZXIoXG4gICAgICAgICd3bS1jdXJyZW5jeScsXG4gICAgICAgIGN1cnJlbmN5UHJvcHNcbiAgICApO1xuICAgIHJlZ2lzdGVyRm9ybVdpZGdldChcbiAgICAgICAgRm9ybVdpZGdldFR5cGUuQ1VSUkVOQ1ksXG4gICAgICAgIG5ldyBNYXAoY3VycmVuY3lQcm9wcylcbiAgICApO1xufTtcbiJdfQ==
|
|
@@ -15,6 +15,7 @@ const currencyProps = new Map([
|
|
|
15
15
|
['datavalue', PROP_STRING],
|
|
16
16
|
['disabled', PROP_BOOLEAN],
|
|
17
17
|
['hint', PROP_STRING],
|
|
18
|
+
['arialabel', PROP_STRING],
|
|
18
19
|
['maxvalue', PROP_NUMBER],
|
|
19
20
|
['minvalue', PROP_NUMBER],
|
|
20
21
|
['name', PROP_STRING],
|
|
@@ -79,7 +80,7 @@ class CurrencyComponent extends NumberLocale {
|
|
|
79
80
|
i0.ɵɵproperty("textContent", ctx.currencySymbol);
|
|
80
81
|
i0.ɵɵadvance();
|
|
81
82
|
i0.ɵɵproperty("autofocus", ctx.autofocus)("readonly", ctx.readonly)("disabled", ctx.disabled)("required", ctx.required)("pattern", ctx.regexp)("ngModel", ctx.displayValue)("ngModelOptions", ctx.ngModelOptions);
|
|
82
|
-
i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.
|
|
83
|
+
i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.arialabel || ctx.currencyCode)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey);
|
|
83
84
|
} }, dependencies: [i3.DefaultValueAccessor, i3.NgControlStatus, i3.RequiredValidator, i3.PatternValidator, i3.NgModel, i2.TextContentDirective], encapsulation: 2 }); }
|
|
84
85
|
}
|
|
85
86
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CurrencyComponent, [{
|
|
@@ -88,7 +89,7 @@ class CurrencyComponent extends NumberLocale {
|
|
|
88
89
|
provideAs(CurrencyComponent, NG_VALUE_ACCESSOR, true),
|
|
89
90
|
provideAs(CurrencyComponent, NG_VALIDATORS, true),
|
|
90
91
|
provideAsWidgetRef(CurrencyComponent)
|
|
91
|
-
], 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]=\"
|
|
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
93
|
}], () => [{ type: i0.Injector }, { type: i1.AppDefaults }, { type: i1.AbstractI18nService }, { type: i2.TrailingZeroDecimalPipe }, { type: undefined, decorators: [{
|
|
93
94
|
type: Inject,
|
|
94
95
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -101,7 +102,7 @@ class CurrencyComponent extends NumberLocale {
|
|
|
101
102
|
type: ViewChild,
|
|
102
103
|
args: ['input', { static: true, read: ElementRef }]
|
|
103
104
|
}] }); })();
|
|
104
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CurrencyComponent, { className: "CurrencyComponent", filePath: "currency.component.ts", lineNumber:
|
|
105
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CurrencyComponent, { className: "CurrencyComponent", filePath: "currency.component.ts", lineNumber: 26 }); })();
|
|
105
106
|
|
|
106
107
|
const components = [
|
|
107
108
|
CurrencyComponent
|
|
@@ -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 ['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 { NgModel, NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';\nimport { DecimalPipe } from '@angular/common';\n\nimport {CURRENCY_INFO, AbstractI18nService, AppDefaults} 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\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]=\"hint || 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,UAAU,EAAE,WAAW,CAAC;IACzB,CAAC,UAAU,EAAE,WAAW,CAAC;IACzB,CAAC,MAAM,EAAE,WAAW,CAAC;IACrB,CAAC,aAAa,EAAE,EAAC,KAAK,EAAE,aAAa,EAAE,GAAG,WAAW,EAAC,CAAC;IACvD,CAAC,UAAU,EAAE,YAAY,CAAC;IAC1B,CAAC,UAAU,EAAE,YAAY,CAAC;IAC1B,CAAC,aAAa,EAAE,WAAW,CAAC;IAC5B,CAAC,MAAM,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EAAC,CAAC;IACxC,CAAC,MAAM,EAAE,EAAC,KAAK,EAAE,CAAC,EAAE,GAAG,WAAW,EAAC,CAAC;IACpC,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,CAAC,EAAE,GAAG,WAAW,EAAC,CAAC;IACxC,CAAC,cAAc,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,GAAG,YAA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AAiB,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 (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,WAAW,CAAC;IACzB,CAAC,MAAM,EAAE,WAAW,CAAC;IACrB,CAAC,aAAa,EAAE,EAAC,KA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,CAAA,EAAA;mEAAd,cAAc,EAAA,CAAA,CAAA,EAAA;uEARnB,YAAY;YACZ,WAAW;YACX,WAAW;YACX,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;;iFAKb,cAAc,EAAA,CAAA;cAV1B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,OAAO,EAAE;oBACL,YAAY;oBACZ,WAAW;oBACX,WAAW;oBACX,kBAAkB;AACrB,iBAAA;AACD,gBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,aAAA,CAAA;;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;;;;"}
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
['conditionalstyle', i2.PROP_ANY],
|
|
39
39
|
['disabled', i2.PROP_BOOLEAN],
|
|
40
40
|
['hint', i2.PROP_STRING],
|
|
41
|
+
['arialabel', i2.PROP_STRING],
|
|
41
42
|
['iconclass', i2.PROP_STRING],
|
|
42
43
|
['iconheight', i2.PROP_STRING],
|
|
43
44
|
['iconmargin', i2.PROP_STRING],
|
|
@@ -383,6 +384,7 @@
|
|
|
383
384
|
['datavalue', i2.PROP_STRING],
|
|
384
385
|
['disabled', i2.PROP_BOOLEAN],
|
|
385
386
|
['hint', i2.PROP_STRING],
|
|
387
|
+
['arialabel', i2.PROP_STRING],
|
|
386
388
|
['name', i2.PROP_STRING],
|
|
387
389
|
['readonly', i2.PROP_BOOLEAN],
|
|
388
390
|
['required', i2.PROP_BOOLEAN],
|
|
@@ -524,7 +526,7 @@
|
|
|
524
526
|
i0__namespace.ɵɵadvance();
|
|
525
527
|
i0__namespace.ɵɵtwoWayProperty("ngModel", ctx.proxyModel);
|
|
526
528
|
i0__namespace.ɵɵproperty("ngModelOptions", i0__namespace.ɵɵpureFunction0(18, _c3$2))("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled || ctx.readonly)("tabindex", ctx.tabindex);
|
|
527
|
-
i0__namespace.ɵɵattribute("name", ctx.name)("aria-label", ctx.
|
|
529
|
+
i0__namespace.ɵɵattribute("name", ctx.name)("aria-label", ctx.arialabel)("aria-checked", !!ctx.proxyModel)("accesskey", ctx.shortcutkey);
|
|
528
530
|
i0__namespace.ɵɵadvance(2);
|
|
529
531
|
i0__namespace.ɵɵproperty("innerHtml", ctx._caption, i0__namespace.ɵɵsanitizeHtml);
|
|
530
532
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -537,7 +539,7 @@
|
|
|
537
539
|
i2.provideAs(CheckboxComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
538
540
|
i2.provideAs(CheckboxComponent, i2$1.NG_VALIDATORS, true),
|
|
539
541
|
i2.provideAsWidgetRef(CheckboxComponent)
|
|
540
|
-
], template: "<label [ngClass]=\"{'unchecked': !proxyModel, 'disabled': (disabled || readonly), 'required': (required && _caption)}\">\n <input type=\"checkbox\"\n role=\"checkbox\"\n #checkbox\n [attr.name]=\"name\"\n [attr.aria-label]=\"
|
|
542
|
+
], template: "<label [ngClass]=\"{'unchecked': !proxyModel, 'disabled': (disabled || readonly), 'required': (required && _caption)}\">\n <input type=\"checkbox\"\n role=\"checkbox\"\n #checkbox\n [attr.name]=\"name\"\n [attr.aria-label]=\"arialabel\"\n [attr.aria-checked]=\"!!proxyModel\"\n focus-target\n [(ngModel)]=\"proxyModel\"\n [ngModelOptions]=\"{standalone: true}\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled || readonly\"\n [attr.accesskey]=\"shortcutkey\"\n [tabindex]=\"tabindex\"\n (blur)=\"invokeOnTouched($event)\"\n (ngModelChange)=\"handleChange($event)\">\n <span class=\"caption\" [innerHtml]=\"_caption\"></span>\n <img alt=\"Checkbox Image\" aria-hidden=\"true\" src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" class=\"switch\"/>\n</label>\n<input type=\"hidden\" class=\"ng-hide model-holder\" aria-hidden=\"true\" tabindex=\"-1\" [disabled]=\"disabled\" [value]=\"proxyModel\">\n" }]
|
|
541
543
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
542
544
|
type: i0.Attribute,
|
|
543
545
|
args: ['checkedvalue']
|
|
@@ -1236,6 +1238,7 @@
|
|
|
1236
1238
|
['datavalue', i2.PROP_STRING],
|
|
1237
1239
|
['disabled', i2.PROP_BOOLEAN],
|
|
1238
1240
|
['hint', i2.PROP_STRING],
|
|
1241
|
+
['arialabel', i2.PROP_STRING],
|
|
1239
1242
|
['localefilter', i2.PROP_STRING],
|
|
1240
1243
|
['minvalue', i2.PROP_NUMBER],
|
|
1241
1244
|
['maxvalue', i2.PROP_NUMBER],
|
|
@@ -1818,7 +1821,7 @@
|
|
|
1818
1821
|
i0__namespace.ɵɵelementEnd();
|
|
1819
1822
|
} if (rf & 2) {
|
|
1820
1823
|
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);
|
|
1821
|
-
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.
|
|
1824
|
+
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.arialabel);
|
|
1822
1825
|
} }, dependencies: [i1__namespace.NgClass, i1__namespace.NgStyle, i2$1__namespace.DefaultValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.PatternValidator, i2$1__namespace.NgModel], encapsulation: 2 }); }
|
|
1823
1826
|
}
|
|
1824
1827
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NumberComponent, [{
|
|
@@ -1827,7 +1830,7 @@
|
|
|
1827
1830
|
i2.provideAs(NumberComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
1828
1831
|
i2.provideAs(NumberComponent, i2$1.NG_VALIDATORS, true),
|
|
1829
1832
|
i2.provideAsWidgetRef(NumberComponent)
|
|
1830
|
-
], template: "<input class=\"form-control app-textbox app-number-input\"\n inputmode=\"decimal\"\n focus-target\n [attr.name]=\"name\"\n role=\"textbox\"\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]=\"
|
|
1833
|
+
], template: "<input class=\"form-control app-textbox app-number-input\"\n inputmode=\"decimal\"\n focus-target\n [attr.name]=\"name\"\n role=\"textbox\"\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.enter)=\"onEnter($event)\"\n (keydown.ArrowUp)=\"onArrowPress($event, 'UP')\"\n (keydown.ArrowDown)=\"onArrowPress($event, 'DOWN')\"\n #input>\n" }]
|
|
1831
1834
|
}], () => [{ type: i0__namespace.Injector }, { type: i1$1__namespace.AbstractI18nService }, { type: i2__namespace.TrailingZeroDecimalPipe }, { type: undefined, decorators: [{
|
|
1832
1835
|
type: i0.Inject,
|
|
1833
1836
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -2120,6 +2123,7 @@
|
|
|
2120
2123
|
['displayValue', i2.PROP_STRING],
|
|
2121
2124
|
['groupby', i2.PROP_STRING],
|
|
2122
2125
|
['hint', i2.PROP_STRING],
|
|
2126
|
+
['arialabel', i2.PROP_STRING],
|
|
2123
2127
|
['match', i2.PROP_STRING],
|
|
2124
2128
|
['multiple', { value: false, ...i2.PROP_BOOLEAN }],
|
|
2125
2129
|
['name', i2.PROP_STRING],
|
|
@@ -2334,7 +2338,7 @@
|
|
|
2334
2338
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$6, ctx.class))("disabled", ctx.disabled)("required", ctx.required)("tabindex", ctx.tabindex);
|
|
2335
2339
|
i0__namespace.ɵɵtwoWayProperty("ngModel", ctx.modelByKey);
|
|
2336
2340
|
i0__namespace.ɵɵproperty("ngModelOptions", i0__namespace.ɵɵpureFunction0(17, _c2$4))("multiple", ctx.multiple)("autofocus", ctx.autofocus);
|
|
2337
|
-
i0__namespace.ɵɵattribute("name", ctx.name)("aria-label", ctx.
|
|
2341
|
+
i0__namespace.ɵɵattribute("name", ctx.name)("aria-label", ctx.arialabel)("aria-multiselectable", ctx.multiple);
|
|
2338
2342
|
i0__namespace.ɵɵadvance(2);
|
|
2339
2343
|
i0__namespace.ɵɵproperty("textContent", ctx.placeholder)("hidden", !ctx.placeholder);
|
|
2340
2344
|
i0__namespace.ɵɵadvance();
|
|
@@ -2349,7 +2353,7 @@
|
|
|
2349
2353
|
i2.provideAs(SelectComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2350
2354
|
i2.provideAs(SelectComponent, i2$1.NG_VALIDATORS, true),
|
|
2351
2355
|
i2.provideAsWidgetRef(SelectComponent)
|
|
2352
|
-
], template: "<!--Updated focus with mousedown event. IOS devices not allow update of option value after opening dropdown-->\n<select role=\"listbox\" aria-haspopup=\"true\" aria-expanded=\"false\" #select\n focus-target\n [ngClass]=\"['app-select form-control', class]\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [(ngModel)]=\"modelByKey\"\n [ngModelOptions]=\"{standalone: true}\"\n [multiple]=\"multiple\"\n (change)=\"onSelectValueChange($event)\"\n (mousedown)=\"checkForFloatingLabel($event)\"\n (blur)=\"invokeOnTouched($event); checkForFloatingLabel($event)\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"
|
|
2356
|
+
], template: "<!--Updated focus with mousedown event. IOS devices not allow update of option value after opening dropdown-->\n<select role=\"listbox\" aria-haspopup=\"true\" aria-expanded=\"false\" #select\n focus-target\n [ngClass]=\"['app-select form-control', class]\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [(ngModel)]=\"modelByKey\"\n [ngModelOptions]=\"{standalone: true}\"\n [multiple]=\"multiple\"\n (change)=\"onSelectValueChange($event)\"\n (mousedown)=\"checkForFloatingLabel($event)\"\n (blur)=\"invokeOnTouched($event); checkForFloatingLabel($event)\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"arialabel\"\n [attr.aria-multiselectable]=\"multiple\"\n [autofocus]=\"autofocus\">\n\n <option selected\n value=\"undefined\"\n [textContent]=\"placeholder\"\n id=\"placeholderOption\"\n [hidden]=\"!placeholder\"></option>\n\n <ng-container *ngIf=\"groupby\">\n <optgroup *ngFor=\"let groupObj of groupedData\"\n [label]=\"groupObj.key\">\n <option *ngFor=\"let item of groupObj.data;\"\n [value]=\"item.key\"\n [selected]=\"item.selected\"\n [textContent]=\"item.label\"\n role=\"option\"></option>\n </optgroup>\n </ng-container>\n\n <ng-container *ngIf=\"!groupby\">\n <option *ngFor=\"let item of datasetItems\"\n [value]=\"item.key\"\n [selected]=\"item.selected\"\n [textContent]=\"item.label\"\n role=\"option\"></option>\n </ng-container>\n</select>\n" }]
|
|
2353
2357
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
2354
2358
|
type: i0.Inject,
|
|
2355
2359
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -2372,6 +2376,7 @@
|
|
|
2372
2376
|
['displayexpression', i2.PROP_STRING],
|
|
2373
2377
|
['displayfield', i2.PROP_STRING],
|
|
2374
2378
|
['hint', i2.PROP_STRING],
|
|
2379
|
+
['arialabel', i2.PROP_STRING],
|
|
2375
2380
|
['iconclass', i2.PROP_STRING],
|
|
2376
2381
|
['name', i2.PROP_STRING],
|
|
2377
2382
|
['orderby', i2.PROP_STRING],
|
|
@@ -2574,6 +2579,7 @@
|
|
|
2574
2579
|
['datavalue', i2.PROP_STRING],
|
|
2575
2580
|
['disabled', i2.PROP_BOOLEAN],
|
|
2576
2581
|
['hint', i2.PROP_STRING],
|
|
2582
|
+
['arialabel', i2.PROP_STRING],
|
|
2577
2583
|
['maxvalue', i2.PROP_NUMBER],
|
|
2578
2584
|
['minvalue', i2.PROP_NUMBER],
|
|
2579
2585
|
['name', i2.PROP_STRING],
|
|
@@ -2617,7 +2623,7 @@
|
|
|
2617
2623
|
i2.provideAs(InputCalendarComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2618
2624
|
i2.provideAs(InputCalendarComponent, i2$1.NG_VALIDATORS, true),
|
|
2619
2625
|
i2.provideAsWidgetRef(InputCalendarComponent)
|
|
2620
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$4, decls: 2, vars: 19, consts: [["input", ""], ["focus-target", "",
|
|
2626
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$4, decls: 2, vars: 19, consts: [["input", ""], ["focus-target", "", 1, "form-control", "app-textbox", 3, "ngModelChange", "blur", "type", "ngModel", "ngModelOptions", "readonly", "required", "disabled", "min", "max", "step", "autofocus", "autocomplete", "ngClass", "ngStyle"]], template: function InputCalendarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2621
2627
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
2622
2628
|
i0__namespace.ɵɵelementStart(0, "input", 1, 0);
|
|
2623
2629
|
i0__namespace.ɵɵtwoWayListener("ngModelChange", function InputCalendarComponent_Template_input_ngModelChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); i0__namespace.ɵɵtwoWayBindingSet(ctx.datavalue, $event) || (ctx.datavalue = $event); return i0__namespace.ɵɵresetView($event); });
|
|
@@ -2627,7 +2633,7 @@
|
|
|
2627
2633
|
i0__namespace.ɵɵproperty("type", ctx.type);
|
|
2628
2634
|
i0__namespace.ɵɵtwoWayProperty("ngModel", ctx.datavalue);
|
|
2629
2635
|
i0__namespace.ɵɵproperty("ngModelOptions", i0__namespace.ɵɵpureFunction0(18, _c2$2))("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("min", ctx.minvalue)("max", ctx.maxvalue)("step", ctx.step)("autofocus", ctx.autofocus)("autocomplete", ctx.autocomplete ? "on" : "off")("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle);
|
|
2630
|
-
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.
|
|
2636
|
+
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.arialabel || ctx.type + " field");
|
|
2631
2637
|
} }, dependencies: [i1__namespace.NgClass, i1__namespace.NgStyle, i2$1__namespace.DefaultValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.NgModel], encapsulation: 2 }); }
|
|
2632
2638
|
}
|
|
2633
2639
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputCalendarComponent, [{
|
|
@@ -2636,7 +2642,7 @@
|
|
|
2636
2642
|
i2.provideAs(InputCalendarComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2637
2643
|
i2.provideAs(InputCalendarComponent, i2$1.NG_VALIDATORS, true),
|
|
2638
2644
|
i2.provideAsWidgetRef(InputCalendarComponent)
|
|
2639
|
-
], template: "<input class=\"form-control app-textbox\"\n focus-target\n
|
|
2645
|
+
], template: "<input class=\"form-control app-textbox\"\n focus-target\n [type]=\"type\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"{standalone: true}\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [min]=\"minvalue\"\n [max]=\"maxvalue\"\n [step]=\"step\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"arialabel || type + ' field'\"\n [autofocus]=\"autofocus\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n #input>\n" }]
|
|
2640
2646
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
2641
2647
|
type: i0.Inject,
|
|
2642
2648
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -2660,6 +2666,7 @@
|
|
|
2660
2666
|
['datavalue', i2.PROP_STRING],
|
|
2661
2667
|
['disabled', i2.PROP_BOOLEAN],
|
|
2662
2668
|
['hint', i2.PROP_STRING],
|
|
2669
|
+
['arialabel', i2.PROP_STRING],
|
|
2663
2670
|
['name', i2.PROP_STRING],
|
|
2664
2671
|
['placeholder', { value: 'Enter text', ...i2.PROP_STRING }],
|
|
2665
2672
|
['readonly', i2.PROP_BOOLEAN],
|
|
@@ -2700,7 +2707,7 @@
|
|
|
2700
2707
|
i2.provideAs(InputColorComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2701
2708
|
i2.provideAs(InputColorComponent, i2$1.NG_VALIDATORS, true),
|
|
2702
2709
|
i2.provideAsWidgetRef(InputColorComponent)
|
|
2703
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$3, decls: 2, vars: 16, consts: [["input", ""], ["focus-target", "",
|
|
2710
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$3, decls: 2, vars: 16, consts: [["input", ""], ["focus-target", "", 1, "form-control", "app-textbox", 3, "ngModelChange", "blur", "type", "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "autofocus", "ngClass", "ngStyle"]], template: function InputColorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2704
2711
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
2705
2712
|
i0__namespace.ɵɵelementStart(0, "input", 1, 0);
|
|
2706
2713
|
i0__namespace.ɵɵtwoWayListener("ngModelChange", function InputColorComponent_Template_input_ngModelChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); i0__namespace.ɵɵtwoWayBindingSet(ctx.datavalue, $event) || (ctx.datavalue = $event); return i0__namespace.ɵɵresetView($event); });
|
|
@@ -2710,7 +2717,7 @@
|
|
|
2710
2717
|
i0__namespace.ɵɵproperty("type", ctx.type);
|
|
2711
2718
|
i0__namespace.ɵɵtwoWayProperty("ngModel", ctx.datavalue);
|
|
2712
2719
|
i0__namespace.ɵɵproperty("ngModelOptions", i0__namespace.ɵɵpureFunction0(15, _c2$1))("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle);
|
|
2713
|
-
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.
|
|
2720
|
+
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.arialabel);
|
|
2714
2721
|
} }, dependencies: [i1__namespace.NgClass, i1__namespace.NgStyle, i2$1__namespace.DefaultValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.MaxLengthValidator, i2$1__namespace.NgModel], encapsulation: 2 }); }
|
|
2715
2722
|
}
|
|
2716
2723
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputColorComponent, [{
|
|
@@ -2719,7 +2726,7 @@
|
|
|
2719
2726
|
i2.provideAs(InputColorComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2720
2727
|
i2.provideAs(InputColorComponent, i2$1.NG_VALIDATORS, true),
|
|
2721
2728
|
i2.provideAsWidgetRef(InputColorComponent)
|
|
2722
|
-
], template: "<input class=\"form-control app-textbox\"\n focus-target\n [type]=\"type\"\n
|
|
2729
|
+
], template: "<input class=\"form-control app-textbox\"\n focus-target\n [type]=\"type\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"{standalone: true}\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\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 (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n #input>\n" }]
|
|
2723
2730
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
2724
2731
|
type: i0.Inject,
|
|
2725
2732
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -2743,6 +2750,7 @@
|
|
|
2743
2750
|
['datavalue', i2.PROP_STRING],
|
|
2744
2751
|
['disabled', i2.PROP_BOOLEAN],
|
|
2745
2752
|
['hint', i2.PROP_STRING],
|
|
2753
|
+
['arialabel', i2.PROP_STRING],
|
|
2746
2754
|
['maxchars', i2.PROP_NUMBER],
|
|
2747
2755
|
['name', i2.PROP_STRING],
|
|
2748
2756
|
['placeholder', { value: 'Enter text', ...i2.PROP_STRING }],
|
|
@@ -2784,7 +2792,7 @@
|
|
|
2784
2792
|
i2.provideAs(InputEmailComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2785
2793
|
i2.provideAs(InputEmailComponent, i2$1.NG_VALIDATORS, true),
|
|
2786
2794
|
i2.provideAsWidgetRef(InputEmailComponent)
|
|
2787
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$2, decls: 2, vars: 17, consts: [["input", ""], ["focus-target", "", "
|
|
2795
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$2, decls: 2, vars: 17, consts: [["input", ""], ["focus-target", "", "email", "", 1, "form-control", "app-textbox", 3, "ngModelChange", "blur", "keyup.enter", "type", "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "pattern", "autofocus", "ngClass", "ngStyle", "autocomplete"]], template: function InputEmailComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2788
2796
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
2789
2797
|
i0__namespace.ɵɵelementStart(0, "input", 1, 0);
|
|
2790
2798
|
i0__namespace.ɵɵtwoWayListener("ngModelChange", function InputEmailComponent_Template_input_ngModelChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); i0__namespace.ɵɵtwoWayBindingSet(ctx.datavalue, $event) || (ctx.datavalue = $event); return i0__namespace.ɵɵresetView($event); });
|
|
@@ -2794,7 +2802,7 @@
|
|
|
2794
2802
|
i0__namespace.ɵɵproperty("type", ctx.type);
|
|
2795
2803
|
i0__namespace.ɵɵtwoWayProperty("ngModel", ctx.datavalue);
|
|
2796
2804
|
i0__namespace.ɵɵproperty("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("pattern", ctx.regexp)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle)("autocomplete", ctx.autocomplete ? "on" : "off");
|
|
2797
|
-
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.
|
|
2805
|
+
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.arialabel);
|
|
2798
2806
|
} }, dependencies: [i1__namespace.NgClass, i1__namespace.NgStyle, i2$1__namespace.DefaultValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.MaxLengthValidator, i2$1__namespace.PatternValidator, i2$1__namespace.EmailValidator, i2$1__namespace.NgModel], encapsulation: 2 }); }
|
|
2799
2807
|
}
|
|
2800
2808
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputEmailComponent, [{
|
|
@@ -2803,7 +2811,7 @@
|
|
|
2803
2811
|
i2.provideAs(InputEmailComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2804
2812
|
i2.provideAs(InputEmailComponent, i2$1.NG_VALIDATORS, true),
|
|
2805
2813
|
i2.provideAsWidgetRef(InputEmailComponent)
|
|
2806
|
-
], template: "<input class=\"form-control app-textbox\"\n focus-target\n
|
|
2814
|
+
], template: "<input class=\"form-control app-textbox\"\n focus-target\n [type]=\"type\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\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 (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n email\n #input>\n" }]
|
|
2807
2815
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
2808
2816
|
type: i0.Inject,
|
|
2809
2817
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -2827,6 +2835,7 @@
|
|
|
2827
2835
|
['datavalue', i2.PROP_STRING],
|
|
2828
2836
|
['disabled', i2.PROP_BOOLEAN],
|
|
2829
2837
|
['hint', i2.PROP_STRING],
|
|
2838
|
+
['arialabel', i2.PROP_STRING],
|
|
2830
2839
|
['maxchars', i2.PROP_NUMBER],
|
|
2831
2840
|
['maxvalue', i2.PROP_NUMBER],
|
|
2832
2841
|
['minvalue', i2.PROP_NUMBER],
|
|
@@ -2882,7 +2891,7 @@
|
|
|
2882
2891
|
i2.provideAs(InputNumberComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2883
2892
|
i2.provideAs(InputNumberComponent, i2$1.NG_VALIDATORS, true),
|
|
2884
2893
|
i2.provideAsWidgetRef(InputNumberComponent)
|
|
2885
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$1, decls: 2, vars: 22, consts: [["input", ""], ["focus-target", "",
|
|
2894
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$1, decls: 2, vars: 22, consts: [["input", ""], ["focus-target", "", 1, "form-control", "app-textbox", 3, "ngModelChange", "blur", "keyup.enter", "keydown.ArrowUp", "keydown.ArrowDown", "keypress", "ngClass", "type", "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "min", "max", "step", "autofocus", "ngStyle", "autocomplete"]], template: function InputNumberComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2886
2895
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
2887
2896
|
i0__namespace.ɵɵelementStart(0, "input", 1, 0);
|
|
2888
2897
|
i0__namespace.ɵɵtwoWayListener("ngModelChange", function InputNumberComponent_Template_input_ngModelChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); i0__namespace.ɵɵtwoWayBindingSet(ctx.datavalue, $event) || (ctx.datavalue = $event); return i0__namespace.ɵɵresetView($event); });
|
|
@@ -2892,7 +2901,7 @@
|
|
|
2892
2901
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(20, _c2, ctx.step === 0))("type", ctx.type);
|
|
2893
2902
|
i0__namespace.ɵɵtwoWayProperty("ngModel", ctx.datavalue);
|
|
2894
2903
|
i0__namespace.ɵɵproperty("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("min", ctx.minvalue)("max", ctx.maxvalue)("step", ctx.step)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle)("autocomplete", ctx.autocomplete ? "on" : "off");
|
|
2895
|
-
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.
|
|
2904
|
+
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.arialabel);
|
|
2896
2905
|
} }, dependencies: [i1__namespace.NgClass, i1__namespace.NgStyle, i2$1__namespace.DefaultValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.MaxLengthValidator, i2$1__namespace.NgModel], encapsulation: 2 }); }
|
|
2897
2906
|
}
|
|
2898
2907
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputNumberComponent, [{
|
|
@@ -2901,7 +2910,7 @@
|
|
|
2901
2910
|
i2.provideAs(InputNumberComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
2902
2911
|
i2.provideAs(InputNumberComponent, i2$1.NG_VALIDATORS, true),
|
|
2903
2912
|
i2.provideAsWidgetRef(InputNumberComponent)
|
|
2904
|
-
], template: "<input class=\"form-control app-textbox\"\n [ngClass]=\"{'step-hidden': step === 0}\"\n focus-target\n
|
|
2913
|
+
], template: "<input class=\"form-control app-textbox\"\n [ngClass]=\"{'step-hidden': step === 0}\"\n focus-target\n [type]=\"type\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [min]=\"minvalue\"\n [max]=\"maxvalue\"\n [step]=\"step\"\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 (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n (keydown.ArrowUp)=\"onArrowPress($event)\"\n (keydown.ArrowDown)=\"onArrowPress($event)\"\n (keypress)=\"validateInputEntry($event)\"\n #input>\n" }]
|
|
2905
2914
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
2906
2915
|
type: i0.Inject,
|
|
2907
2916
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -2926,6 +2935,7 @@
|
|
|
2926
2935
|
['disabled', i2.PROP_BOOLEAN],
|
|
2927
2936
|
['displayformat', i2.PROP_STRING],
|
|
2928
2937
|
['hint', i2.PROP_STRING],
|
|
2938
|
+
['arialabel', i2.PROP_STRING],
|
|
2929
2939
|
['maxchars', i2.PROP_NUMBER],
|
|
2930
2940
|
['name', i2.PROP_STRING],
|
|
2931
2941
|
['placeholder', { value: 'Enter text', ...i2.PROP_STRING }],
|
|
@@ -3049,7 +3059,7 @@
|
|
|
3049
3059
|
i2.provideAs(InputTextComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
3050
3060
|
i2.provideAs(InputTextComponent, i2$1.NG_VALIDATORS, true),
|
|
3051
3061
|
i2.provideAsWidgetRef(InputTextComponent)
|
|
3052
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 19, consts: [["input", ""], ["focus-target", "",
|
|
3062
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 19, consts: [["input", ""], ["focus-target", "", 1, "form-control", "app-textbox", 3, "ngModelChange", "blur", "focus", "keyup.enter", "type", "ngModel", "imask", "unmask", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "pattern", "autofocus", "ngClass", "ngStyle", "autocomplete"]], template: function InputTextComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3053
3063
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
3054
3064
|
i0__namespace.ɵɵelementStart(0, "input", 1, 0);
|
|
3055
3065
|
i0__namespace.ɵɵtwoWayListener("ngModelChange", function InputTextComponent_Template_input_ngModelChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); i0__namespace.ɵɵtwoWayBindingSet(ctx.datavalue, $event) || (ctx.datavalue = $event); return i0__namespace.ɵɵresetView($event); });
|
|
@@ -3059,7 +3069,7 @@
|
|
|
3059
3069
|
i0__namespace.ɵɵproperty("type", ctx.type);
|
|
3060
3070
|
i0__namespace.ɵɵtwoWayProperty("ngModel", ctx.datavalue);
|
|
3061
3071
|
i0__namespace.ɵɵproperty("imask", ctx.mask)("unmask", true)("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("pattern", ctx.regexp)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle)("autocomplete", ctx.autocomplete ? "on" : "off");
|
|
3062
|
-
i0__namespace.ɵɵattribute("name", ctx.name)("aria-label", ctx.
|
|
3072
|
+
i0__namespace.ɵɵattribute("name", ctx.name)("aria-label", ctx.arialabel)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey);
|
|
3063
3073
|
} }, dependencies: [i1__namespace.NgClass, i1__namespace.NgStyle, i2$1__namespace.DefaultValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.MaxLengthValidator, i2$1__namespace.PatternValidator, i2$1__namespace.NgModel, i3__namespace.IMaskDirective], encapsulation: 2 }); }
|
|
3064
3074
|
}
|
|
3065
3075
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputTextComponent, [{
|
|
@@ -3068,7 +3078,7 @@
|
|
|
3068
3078
|
i2.provideAs(InputTextComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
3069
3079
|
i2.provideAs(InputTextComponent, i2$1.NG_VALIDATORS, true),
|
|
3070
3080
|
i2.provideAsWidgetRef(InputTextComponent)
|
|
3071
|
-
], template: "<input class=\"form-control app-textbox\"\n focus-target\n
|
|
3081
|
+
], template: "<input class=\"form-control app-textbox\"\n focus-target\n [type]=\"type\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"arialabel\"\n [(ngModel)]=\"datavalue\"\n [imask]=\"mask\"\n [unmask]=\"true\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [pattern]=\"regexp\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (ngModelChange)=\"handleChange($event)\"\n (blur)=\"handleBlur($event); checkForDisplayFormat($event)\"\n (focus)=\"checkForDisplayFormat($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n #input>\n" }]
|
|
3072
3082
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
3073
3083
|
type: i0.Inject,
|
|
3074
3084
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -3094,6 +3104,7 @@
|
|
|
3094
3104
|
['datavalue', i2.PROP_STRING],
|
|
3095
3105
|
['disabled', i2.PROP_BOOLEAN],
|
|
3096
3106
|
['hint', i2.PROP_STRING],
|
|
3107
|
+
['arialabel', i2.PROP_STRING],
|
|
3097
3108
|
['maxchars', i2.PROP_NUMBER],
|
|
3098
3109
|
['name', i2.PROP_STRING],
|
|
3099
3110
|
['placeholder', { value: 'Place your text', ...i2.PROP_STRING }],
|
|
@@ -3151,7 +3162,7 @@
|
|
|
3151
3162
|
i2.provideAs(TextareaComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
3152
3163
|
i2.provideAs(TextareaComponent, i2$1.NG_VALIDATORS, true),
|
|
3153
3164
|
i2.provideAsWidgetRef(TextareaComponent)
|
|
3154
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 15, consts: [["textarea", ""], ["focus-target", "", "
|
|
3165
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 15, consts: [["textarea", ""], ["focus-target", "", "aria-multiline", "true", 1, "form-control", "app-textarea", 3, "ngModelChange", "blur", "input", "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "autofocus", "ngClass", "ngStyle"], ["class", "textarea-count", 4, "ngIf"], [1, "textarea-count"]], template: function TextareaComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3155
3166
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
3156
3167
|
i0__namespace.ɵɵelementStart(0, "textarea", 1, 0);
|
|
3157
3168
|
i0__namespace.ɵɵtwoWayListener("ngModelChange", function TextareaComponent_Template_textarea_ngModelChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r1); i0__namespace.ɵɵtwoWayBindingSet(ctx.datavalue, $event) || (ctx.datavalue = $event); return i0__namespace.ɵɵresetView($event); });
|
|
@@ -3161,7 +3172,7 @@
|
|
|
3161
3172
|
} if (rf & 2) {
|
|
3162
3173
|
i0__namespace.ɵɵtwoWayProperty("ngModel", ctx.datavalue);
|
|
3163
3174
|
i0__namespace.ɵɵproperty("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle);
|
|
3164
|
-
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.
|
|
3175
|
+
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.arialabel);
|
|
3165
3176
|
i0__namespace.ɵɵadvance(2);
|
|
3166
3177
|
i0__namespace.ɵɵproperty("ngIf", ctx.maxchars);
|
|
3167
3178
|
} }, dependencies: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgStyle, i2$1__namespace.DefaultValueAccessor, i2$1__namespace.NgControlStatus, i2$1__namespace.RequiredValidator, i2$1__namespace.MaxLengthValidator, i2$1__namespace.NgModel], encapsulation: 2 }); }
|
|
@@ -3172,7 +3183,7 @@
|
|
|
3172
3183
|
i2.provideAs(TextareaComponent, i2$1.NG_VALUE_ACCESSOR, true),
|
|
3173
3184
|
i2.provideAs(TextareaComponent, i2$1.NG_VALIDATORS, true),
|
|
3174
3185
|
i2.provideAsWidgetRef(TextareaComponent)
|
|
3175
|
-
], template: "<textarea class=\"form-control app-textarea\"\n focus-target\n
|
|
3186
|
+
], template: "<textarea class=\"form-control app-textarea\"\n focus-target\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"arialabel\"\n aria-multiline=\"true\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (blur)=\"handleBlur($event)\"\n (input)=\"onInputChange()\"\n (ngModelChange)=\"handleChange($event); onInputChange();\"\n #textarea\n></textarea>\n\n<div *ngIf=\"maxchars\" class=\"textarea-count\" >{{limitdisplaytext}}</div>\n" }]
|
|
3176
3187
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
3177
3188
|
type: i0.Inject,
|
|
3178
3189
|
args: ['EXPLICIT_CONTEXT']
|
|
@@ -3185,7 +3196,7 @@
|
|
|
3185
3196
|
type: i0.ViewChild,
|
|
3186
3197
|
args: [i2$1.NgModel]
|
|
3187
3198
|
}] }); })();
|
|
3188
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(TextareaComponent, { className: "TextareaComponent", filePath: "textarea/textarea.component.ts", lineNumber:
|
|
3199
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(TextareaComponent, { className: "TextareaComponent", filePath: "textarea/textarea.component.ts", lineNumber: 23 }); })();
|
|
3189
3200
|
|
|
3190
3201
|
class CaptionPositionDirective {
|
|
3191
3202
|
constructor(inj, app) {
|