@ngx-formly/material 6.0.0-next.1 → 6.0.0-next.2
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/README.md +2 -2
- package/checkbox/checkbox.module.d.ts +10 -0
- package/checkbox/checkbox.type.d.ts +3 -0
- package/checkbox/ngx-formly-material-checkbox.d.ts +1 -0
- package/checkbox/package.json +5 -6
- package/datepicker/datepicker.module.d.ts +11 -0
- package/datepicker/datepicker.type.d.ts +3 -0
- package/datepicker/ngx-formly-material-datepicker.d.ts +1 -1
- package/datepicker/package.json +5 -6
- package/esm2020/checkbox/checkbox.module.mjs +61 -0
- package/esm2020/checkbox/checkbox.type.mjs +109 -0
- package/{esm2015/checkbox/ngx-formly-material-checkbox.js → esm2020/checkbox/ngx-formly-material-checkbox.mjs} +0 -0
- package/{esm2015/checkbox/public_api.js → esm2020/checkbox/public_api.mjs} +0 -0
- package/esm2020/datepicker/datepicker.module.mjs +57 -0
- package/esm2020/datepicker/datepicker.type.mjs +117 -0
- package/esm2020/datepicker/ngx-formly-material-datepicker.mjs +5 -0
- package/{esm2015/datepicker/public_api.js → esm2020/datepicker/public_api.mjs} +0 -0
- package/esm2020/form-field/field.type.mjs +124 -0
- package/esm2020/form-field/form-field.module.mjs +47 -0
- package/esm2020/form-field/form-field.wrapper.mjs +141 -0
- package/esm2020/form-field/ngx-formly-material-form-field.mjs +5 -0
- package/{esm2015/form-field/public_api.js → esm2020/form-field/public_api.mjs} +0 -0
- package/esm2020/input/input.module.mjs +91 -0
- package/esm2020/input/input.type.mjs +79 -0
- package/{esm2015/input/ngx-formly-material-input.js → esm2020/input/ngx-formly-material-input.mjs} +0 -0
- package/{esm2015/input/public_api.js → esm2020/input/public_api.mjs} +0 -0
- package/{esm2015/lib/ui-material.js → esm2020/lib/ui-material.mjs} +0 -0
- package/esm2020/lib/ui-material.module.mjs +43 -0
- package/esm2020/multicheckbox/multicheckbox.module.mjs +57 -0
- package/esm2020/multicheckbox/multicheckbox.type.mjs +82 -0
- package/{esm2015/multicheckbox/ngx-formly-material-multicheckbox.js → esm2020/multicheckbox/ngx-formly-material-multicheckbox.mjs} +0 -0
- package/{esm2015/multicheckbox/public_api.js → esm2020/multicheckbox/public_api.mjs} +0 -0
- package/esm2020/native-select/native-select.module.mjs +57 -0
- package/esm2020/native-select/native-select.type.mjs +97 -0
- package/{esm2015/native-select/ngx-formly-material-native-select.js → esm2020/native-select/ngx-formly-material-native-select.mjs} +0 -0
- package/{esm2015/native-select/public_api.js → esm2020/native-select/public_api.mjs} +0 -0
- package/{esm2015/ngx-formly-material.js → esm2020/ngx-formly-material.mjs} +0 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/{esm2015/radio/ngx-formly-material-radio.js → esm2020/radio/ngx-formly-material-radio.mjs} +0 -0
- package/{esm2015/radio/public_api.js → esm2020/radio/public_api.mjs} +0 -0
- package/esm2020/radio/radio.module.mjs +57 -0
- package/esm2020/radio/radio.type.mjs +89 -0
- package/{esm2015/select/ngx-formly-material-select.js → esm2020/select/ngx-formly-material-select.mjs} +0 -0
- package/{esm2015/select/public_api.js → esm2020/select/public_api.mjs} +0 -0
- package/esm2020/select/select.module.mjs +63 -0
- package/esm2020/select/select.type.mjs +151 -0
- package/{esm2015/slider/ngx-formly-material-slider.js → esm2020/slider/ngx-formly-material-slider.mjs} +1 -2
- package/{esm2015/slider/public_api.js → esm2020/slider/public_api.mjs} +0 -0
- package/esm2020/slider/slider.module.mjs +53 -0
- package/esm2020/slider/slider.type.mjs +79 -0
- package/{esm2015/textarea/ngx-formly-material-textarea.js → esm2020/textarea/ngx-formly-material-textarea.mjs} +0 -0
- package/{esm2015/textarea/public_api.js → esm2020/textarea/public_api.mjs} +0 -0
- package/esm2020/textarea/textarea.module.mjs +53 -0
- package/esm2020/textarea/textarea.type.mjs +77 -0
- package/{esm2015/toggle/ngx-formly-material-toggle.js → esm2020/toggle/ngx-formly-material-toggle.mjs} +1 -2
- package/{esm2015/toggle/public_api.js → esm2020/toggle/public_api.mjs} +0 -0
- package/esm2020/toggle/toggle.module.mjs +53 -0
- package/esm2020/toggle/toggle.type.mjs +61 -0
- package/fesm2015/ngx-formly-material-checkbox.mjs +171 -0
- package/fesm2015/ngx-formly-material-checkbox.mjs.map +1 -0
- package/fesm2015/ngx-formly-material-datepicker.mjs +177 -0
- package/fesm2015/ngx-formly-material-datepicker.mjs.map +1 -0
- package/fesm2015/ngx-formly-material-form-field.mjs +312 -0
- package/fesm2015/ngx-formly-material-form-field.mjs.map +1 -0
- package/fesm2015/ngx-formly-material-input.mjs +172 -0
- package/fesm2015/ngx-formly-material-input.mjs.map +1 -0
- package/fesm2015/ngx-formly-material-multicheckbox.mjs +140 -0
- package/fesm2015/ngx-formly-material-multicheckbox.mjs.map +1 -0
- package/fesm2015/ngx-formly-material-native-select.mjs +156 -0
- package/fesm2015/ngx-formly-material-native-select.mjs.map +1 -0
- package/fesm2015/ngx-formly-material-radio.mjs +146 -0
- package/fesm2015/ngx-formly-material-radio.mjs.map +1 -0
- package/fesm2015/ngx-formly-material-select.mjs +219 -0
- package/fesm2015/ngx-formly-material-select.mjs.map +1 -0
- package/fesm2015/ngx-formly-material-slider.mjs +133 -0
- package/fesm2015/ngx-formly-material-slider.mjs.map +1 -0
- package/fesm2015/ngx-formly-material-textarea.mjs +131 -0
- package/fesm2015/ngx-formly-material-textarea.mjs.map +1 -0
- package/fesm2015/ngx-formly-material-toggle.mjs +115 -0
- package/fesm2015/ngx-formly-material-toggle.mjs.map +1 -0
- package/fesm2015/ngx-formly-material.mjs +55 -0
- package/fesm2015/ngx-formly-material.mjs.map +1 -0
- package/fesm2020/ngx-formly-material-checkbox.mjs +171 -0
- package/fesm2020/ngx-formly-material-checkbox.mjs.map +1 -0
- package/fesm2020/ngx-formly-material-datepicker.mjs +176 -0
- package/fesm2020/ngx-formly-material-datepicker.mjs.map +1 -0
- package/fesm2020/ngx-formly-material-form-field.mjs +309 -0
- package/fesm2020/ngx-formly-material-form-field.mjs.map +1 -0
- package/fesm2020/ngx-formly-material-input.mjs +172 -0
- package/fesm2020/ngx-formly-material-input.mjs.map +1 -0
- package/fesm2020/ngx-formly-material-multicheckbox.mjs +140 -0
- package/fesm2020/ngx-formly-material-multicheckbox.mjs.map +1 -0
- package/fesm2020/ngx-formly-material-native-select.mjs +156 -0
- package/fesm2020/ngx-formly-material-native-select.mjs.map +1 -0
- package/fesm2020/ngx-formly-material-radio.mjs +146 -0
- package/fesm2020/ngx-formly-material-radio.mjs.map +1 -0
- package/fesm2020/ngx-formly-material-select.mjs +216 -0
- package/fesm2020/ngx-formly-material-select.mjs.map +1 -0
- package/fesm2020/ngx-formly-material-slider.mjs +133 -0
- package/fesm2020/ngx-formly-material-slider.mjs.map +1 -0
- package/fesm2020/ngx-formly-material-textarea.mjs +131 -0
- package/fesm2020/ngx-formly-material-textarea.mjs.map +1 -0
- package/fesm2020/ngx-formly-material-toggle.mjs +115 -0
- package/fesm2020/ngx-formly-material-toggle.mjs.map +1 -0
- package/fesm2020/ngx-formly-material.mjs +55 -0
- package/fesm2020/ngx-formly-material.mjs.map +1 -0
- package/form-field/field.type.d.ts +3 -0
- package/form-field/form-field.module.d.ts +9 -0
- package/form-field/form-field.wrapper.d.ts +4 -3
- package/form-field/ngx-formly-material-form-field.d.ts +1 -1
- package/form-field/package.json +5 -6
- package/input/input.module.d.ts +10 -0
- package/input/input.type.d.ts +3 -0
- package/input/ngx-formly-material-input.d.ts +1 -0
- package/input/package.json +5 -6
- package/lib/ui-material.module.d.ts +11 -0
- package/multicheckbox/multicheckbox.module.d.ts +11 -0
- package/multicheckbox/multicheckbox.type.d.ts +3 -0
- package/multicheckbox/ngx-formly-material-multicheckbox.d.ts +1 -0
- package/multicheckbox/package.json +5 -6
- package/native-select/native-select.module.d.ts +11 -0
- package/native-select/native-select.type.d.ts +3 -0
- package/native-select/ngx-formly-material-native-select.d.ts +1 -0
- package/native-select/package.json +5 -6
- package/ngx-formly-material.d.ts +1 -0
- package/package.json +109 -9
- package/radio/ngx-formly-material-radio.d.ts +1 -0
- package/radio/package.json +5 -6
- package/radio/radio.module.d.ts +11 -0
- package/radio/radio.type.d.ts +3 -0
- package/select/ngx-formly-material-select.d.ts +1 -0
- package/select/package.json +5 -6
- package/select/select.module.d.ts +12 -0
- package/select/select.type.d.ts +5 -1
- package/slider/ngx-formly-material-slider.d.ts +1 -1
- package/slider/package.json +5 -6
- package/slider/slider.module.d.ts +10 -0
- package/slider/slider.type.d.ts +3 -0
- package/textarea/ngx-formly-material-textarea.d.ts +1 -0
- package/textarea/package.json +5 -6
- package/textarea/textarea.module.d.ts +10 -0
- package/textarea/textarea.type.d.ts +3 -0
- package/toggle/ngx-formly-material-toggle.d.ts +1 -1
- package/toggle/package.json +5 -6
- package/toggle/toggle.module.d.ts +10 -0
- package/toggle/toggle.type.d.ts +3 -0
- package/bundles/ngx-formly-material-checkbox.umd.js +0 -423
- package/bundles/ngx-formly-material-checkbox.umd.js.map +0 -1
- package/bundles/ngx-formly-material-checkbox.umd.min.js +0 -16
- package/bundles/ngx-formly-material-checkbox.umd.min.js.map +0 -1
- package/bundles/ngx-formly-material-datepicker.umd.js +0 -392
- package/bundles/ngx-formly-material-datepicker.umd.js.map +0 -1
- package/bundles/ngx-formly-material-datepicker.umd.min.js +0 -16
- package/bundles/ngx-formly-material-datepicker.umd.min.js.map +0 -1
- package/bundles/ngx-formly-material-form-field.umd.js +0 -575
- package/bundles/ngx-formly-material-form-field.umd.js.map +0 -1
- package/bundles/ngx-formly-material-form-field.umd.min.js +0 -16
- package/bundles/ngx-formly-material-form-field.umd.min.js.map +0 -1
- package/bundles/ngx-formly-material-input.umd.js +0 -393
- package/bundles/ngx-formly-material-input.umd.js.map +0 -1
- package/bundles/ngx-formly-material-input.umd.min.js +0 -16
- package/bundles/ngx-formly-material-input.umd.min.js.map +0 -1
- package/bundles/ngx-formly-material-multicheckbox.umd.js +0 -397
- package/bundles/ngx-formly-material-multicheckbox.umd.js.map +0 -1
- package/bundles/ngx-formly-material-multicheckbox.umd.min.js +0 -16
- package/bundles/ngx-formly-material-multicheckbox.umd.min.js.map +0 -1
- package/bundles/ngx-formly-material-native-select.umd.js +0 -374
- package/bundles/ngx-formly-material-native-select.umd.js.map +0 -1
- package/bundles/ngx-formly-material-native-select.umd.min.js +0 -16
- package/bundles/ngx-formly-material-native-select.umd.min.js.map +0 -1
- package/bundles/ngx-formly-material-radio.umd.js +0 -398
- package/bundles/ngx-formly-material-radio.umd.js.map +0 -1
- package/bundles/ngx-formly-material-radio.umd.min.js +0 -16
- package/bundles/ngx-formly-material-radio.umd.min.js.map +0 -1
- package/bundles/ngx-formly-material-select.umd.js +0 -411
- package/bundles/ngx-formly-material-select.umd.js.map +0 -1
- package/bundles/ngx-formly-material-select.umd.min.js +0 -16
- package/bundles/ngx-formly-material-select.umd.min.js.map +0 -1
- package/bundles/ngx-formly-material-slider.umd.js +0 -382
- package/bundles/ngx-formly-material-slider.umd.js.map +0 -1
- package/bundles/ngx-formly-material-slider.umd.min.js +0 -16
- package/bundles/ngx-formly-material-slider.umd.min.js.map +0 -1
- package/bundles/ngx-formly-material-textarea.umd.js +0 -379
- package/bundles/ngx-formly-material-textarea.umd.js.map +0 -1
- package/bundles/ngx-formly-material-textarea.umd.min.js +0 -16
- package/bundles/ngx-formly-material-textarea.umd.min.js.map +0 -1
- package/bundles/ngx-formly-material-toggle.umd.js +0 -382
- package/bundles/ngx-formly-material-toggle.umd.js.map +0 -1
- package/bundles/ngx-formly-material-toggle.umd.min.js +0 -16
- package/bundles/ngx-formly-material-toggle.umd.min.js.map +0 -1
- package/bundles/ngx-formly-material.umd.js +0 -45
- package/bundles/ngx-formly-material.umd.js.map +0 -1
- package/bundles/ngx-formly-material.umd.min.js +0 -2
- package/bundles/ngx-formly-material.umd.min.js.map +0 -1
- package/checkbox/ngx-formly-material-checkbox.metadata.json +0 -1
- package/datepicker/ngx-formly-material-datepicker.metadata.json +0 -1
- package/esm2015/checkbox/checkbox.module.js +0 -34
- package/esm2015/checkbox/checkbox.type.js +0 -80
- package/esm2015/datepicker/datepicker.module.js +0 -32
- package/esm2015/datepicker/datepicker.type.js +0 -73
- package/esm2015/datepicker/ngx-formly-material-datepicker.js +0 -6
- package/esm2015/form-field/field.type.js +0 -120
- package/esm2015/form-field/form-field.module.js +0 -27
- package/esm2015/form-field/form-field.wrapper.js +0 -91
- package/esm2015/form-field/ngx-formly-material-form-field.js +0 -6
- package/esm2015/input/input.module.js +0 -49
- package/esm2015/input/input.type.js +0 -43
- package/esm2015/lib/ui-material.module.js +0 -24
- package/esm2015/multicheckbox/multicheckbox.module.js +0 -32
- package/esm2015/multicheckbox/multicheckbox.type.js +0 -59
- package/esm2015/native-select/native-select.module.js +0 -32
- package/esm2015/native-select/native-select.type.js +0 -54
- package/esm2015/radio/radio.module.js +0 -32
- package/esm2015/radio/radio.type.js +0 -62
- package/esm2015/select/select.module.js +0 -35
- package/esm2015/select/select.type.js +0 -95
- package/esm2015/slider/slider.module.js +0 -30
- package/esm2015/slider/slider.type.js +0 -44
- package/esm2015/textarea/textarea.module.js +0 -30
- package/esm2015/textarea/textarea.type.js +0 -46
- package/esm2015/toggle/toggle.module.js +0 -30
- package/esm2015/toggle/toggle.type.js +0 -41
- package/fesm2015/ngx-formly-material-checkbox.js +0 -117
- package/fesm2015/ngx-formly-material-checkbox.js.map +0 -1
- package/fesm2015/ngx-formly-material-datepicker.js +0 -109
- package/fesm2015/ngx-formly-material-datepicker.js.map +0 -1
- package/fesm2015/ngx-formly-material-form-field.js +0 -238
- package/fesm2015/ngx-formly-material-form-field.js.map +0 -1
- package/fesm2015/ngx-formly-material-input.js +0 -96
- package/fesm2015/ngx-formly-material-input.js.map +0 -1
- package/fesm2015/ngx-formly-material-multicheckbox.js +0 -94
- package/fesm2015/ngx-formly-material-multicheckbox.js.map +0 -1
- package/fesm2015/ngx-formly-material-native-select.js +0 -90
- package/fesm2015/ngx-formly-material-native-select.js.map +0 -1
- package/fesm2015/ngx-formly-material-radio.js +0 -96
- package/fesm2015/ngx-formly-material-radio.js.map +0 -1
- package/fesm2015/ngx-formly-material-select.js +0 -134
- package/fesm2015/ngx-formly-material-select.js.map +0 -1
- package/fesm2015/ngx-formly-material-slider.js +0 -77
- package/fesm2015/ngx-formly-material-slider.js.map +0 -1
- package/fesm2015/ngx-formly-material-textarea.js +0 -79
- package/fesm2015/ngx-formly-material-textarea.js.map +0 -1
- package/fesm2015/ngx-formly-material-toggle.js +0 -74
- package/fesm2015/ngx-formly-material-toggle.js.map +0 -1
- package/fesm2015/ngx-formly-material.js +0 -36
- package/fesm2015/ngx-formly-material.js.map +0 -1
- package/form-field/ngx-formly-material-form-field.metadata.json +0 -1
- package/input/ngx-formly-material-input.metadata.json +0 -1
- package/multicheckbox/ngx-formly-material-multicheckbox.metadata.json +0 -1
- package/native-select/ngx-formly-material-native-select.metadata.json +0 -1
- package/ngx-formly-material.metadata.json +0 -1
- package/radio/ngx-formly-material-radio.metadata.json +0 -1
- package/select/ngx-formly-material-select.metadata.json +0 -1
- package/slider/ngx-formly-material-slider.metadata.json +0 -1
- package/textarea/ngx-formly-material-textarea.metadata.json +0 -1
- package/toggle/ngx-formly-material-toggle.metadata.json +0 -1
|
@@ -1,575 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@ngx-formly/core'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/cdk/a11y'), require('rxjs')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@ngx-formly/material/form-field', ['exports', '@angular/core', '@angular/common', '@ngx-formly/core', '@angular/forms', '@angular/material/form-field', '@angular/cdk/a11y', 'rxjs'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['ngx-formly'] = global['ngx-formly'] || {}, global['ngx-formly'].material = global['ngx-formly'].material || {}, global['ngx-formly'].material['form-field'] = {}), global.ng.core, global.ng.common, global.core, global.ng.forms, global.ng.material.formField, global.ng.cdk.a11y, global.rxjs));
|
|
5
|
-
}(this, (function (exports, core$1, common, core, forms, formField, a11y, rxjs) { 'use strict';
|
|
6
|
-
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation.
|
|
9
|
-
|
|
10
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
-
purpose with or without fee is hereby granted.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
-
***************************************************************************** */
|
|
21
|
-
/* global Reflect, Promise */
|
|
22
|
-
var extendStatics = function (d, b) {
|
|
23
|
-
extendStatics = Object.setPrototypeOf ||
|
|
24
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
25
|
-
function (d, b) { for (var p in b)
|
|
26
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
27
|
-
d[p] = b[p]; };
|
|
28
|
-
return extendStatics(d, b);
|
|
29
|
-
};
|
|
30
|
-
function __extends(d, b) {
|
|
31
|
-
if (typeof b !== "function" && b !== null)
|
|
32
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
33
|
-
extendStatics(d, b);
|
|
34
|
-
function __() { this.constructor = d; }
|
|
35
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36
|
-
}
|
|
37
|
-
var __assign = function () {
|
|
38
|
-
__assign = Object.assign || function __assign(t) {
|
|
39
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
40
|
-
s = arguments[i];
|
|
41
|
-
for (var p in s)
|
|
42
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
43
|
-
t[p] = s[p];
|
|
44
|
-
}
|
|
45
|
-
return t;
|
|
46
|
-
};
|
|
47
|
-
return __assign.apply(this, arguments);
|
|
48
|
-
};
|
|
49
|
-
function __rest(s, e) {
|
|
50
|
-
var t = {};
|
|
51
|
-
for (var p in s)
|
|
52
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
53
|
-
t[p] = s[p];
|
|
54
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
55
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
57
|
-
t[p[i]] = s[p[i]];
|
|
58
|
-
}
|
|
59
|
-
return t;
|
|
60
|
-
}
|
|
61
|
-
function __decorate(decorators, target, key, desc) {
|
|
62
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
63
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
64
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
65
|
-
else
|
|
66
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
67
|
-
if (d = decorators[i])
|
|
68
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
69
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
70
|
-
}
|
|
71
|
-
function __param(paramIndex, decorator) {
|
|
72
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
73
|
-
}
|
|
74
|
-
function __metadata(metadataKey, metadataValue) {
|
|
75
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
76
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
77
|
-
}
|
|
78
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
79
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
80
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
81
|
-
function fulfilled(value) { try {
|
|
82
|
-
step(generator.next(value));
|
|
83
|
-
}
|
|
84
|
-
catch (e) {
|
|
85
|
-
reject(e);
|
|
86
|
-
} }
|
|
87
|
-
function rejected(value) { try {
|
|
88
|
-
step(generator["throw"](value));
|
|
89
|
-
}
|
|
90
|
-
catch (e) {
|
|
91
|
-
reject(e);
|
|
92
|
-
} }
|
|
93
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
94
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
function __generator(thisArg, body) {
|
|
98
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
99
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
100
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
101
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
102
|
-
function step(op) {
|
|
103
|
-
if (f)
|
|
104
|
-
throw new TypeError("Generator is already executing.");
|
|
105
|
-
while (_)
|
|
106
|
-
try {
|
|
107
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
108
|
-
return t;
|
|
109
|
-
if (y = 0, t)
|
|
110
|
-
op = [op[0] & 2, t.value];
|
|
111
|
-
switch (op[0]) {
|
|
112
|
-
case 0:
|
|
113
|
-
case 1:
|
|
114
|
-
t = op;
|
|
115
|
-
break;
|
|
116
|
-
case 4:
|
|
117
|
-
_.label++;
|
|
118
|
-
return { value: op[1], done: false };
|
|
119
|
-
case 5:
|
|
120
|
-
_.label++;
|
|
121
|
-
y = op[1];
|
|
122
|
-
op = [0];
|
|
123
|
-
continue;
|
|
124
|
-
case 7:
|
|
125
|
-
op = _.ops.pop();
|
|
126
|
-
_.trys.pop();
|
|
127
|
-
continue;
|
|
128
|
-
default:
|
|
129
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
130
|
-
_ = 0;
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
134
|
-
_.label = op[1];
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
138
|
-
_.label = t[1];
|
|
139
|
-
t = op;
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
if (t && _.label < t[2]) {
|
|
143
|
-
_.label = t[2];
|
|
144
|
-
_.ops.push(op);
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
if (t[2])
|
|
148
|
-
_.ops.pop();
|
|
149
|
-
_.trys.pop();
|
|
150
|
-
continue;
|
|
151
|
-
}
|
|
152
|
-
op = body.call(thisArg, _);
|
|
153
|
-
}
|
|
154
|
-
catch (e) {
|
|
155
|
-
op = [6, e];
|
|
156
|
-
y = 0;
|
|
157
|
-
}
|
|
158
|
-
finally {
|
|
159
|
-
f = t = 0;
|
|
160
|
-
}
|
|
161
|
-
if (op[0] & 5)
|
|
162
|
-
throw op[1];
|
|
163
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
167
|
-
if (k2 === undefined)
|
|
168
|
-
k2 = k;
|
|
169
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
170
|
-
}) : (function (o, m, k, k2) {
|
|
171
|
-
if (k2 === undefined)
|
|
172
|
-
k2 = k;
|
|
173
|
-
o[k2] = m[k];
|
|
174
|
-
});
|
|
175
|
-
function __exportStar(m, o) {
|
|
176
|
-
for (var p in m)
|
|
177
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
178
|
-
__createBinding(o, m, p);
|
|
179
|
-
}
|
|
180
|
-
function __values(o) {
|
|
181
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
182
|
-
if (m)
|
|
183
|
-
return m.call(o);
|
|
184
|
-
if (o && typeof o.length === "number")
|
|
185
|
-
return {
|
|
186
|
-
next: function () {
|
|
187
|
-
if (o && i >= o.length)
|
|
188
|
-
o = void 0;
|
|
189
|
-
return { value: o && o[i++], done: !o };
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
193
|
-
}
|
|
194
|
-
function __read(o, n) {
|
|
195
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
196
|
-
if (!m)
|
|
197
|
-
return o;
|
|
198
|
-
var i = m.call(o), r, ar = [], e;
|
|
199
|
-
try {
|
|
200
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
201
|
-
ar.push(r.value);
|
|
202
|
-
}
|
|
203
|
-
catch (error) {
|
|
204
|
-
e = { error: error };
|
|
205
|
-
}
|
|
206
|
-
finally {
|
|
207
|
-
try {
|
|
208
|
-
if (r && !r.done && (m = i["return"]))
|
|
209
|
-
m.call(i);
|
|
210
|
-
}
|
|
211
|
-
finally {
|
|
212
|
-
if (e)
|
|
213
|
-
throw e.error;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
return ar;
|
|
217
|
-
}
|
|
218
|
-
/** @deprecated */
|
|
219
|
-
function __spread() {
|
|
220
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
221
|
-
ar = ar.concat(__read(arguments[i]));
|
|
222
|
-
return ar;
|
|
223
|
-
}
|
|
224
|
-
/** @deprecated */
|
|
225
|
-
function __spreadArrays() {
|
|
226
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
227
|
-
s += arguments[i].length;
|
|
228
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
229
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
230
|
-
r[k] = a[j];
|
|
231
|
-
return r;
|
|
232
|
-
}
|
|
233
|
-
function __spreadArray(to, from) {
|
|
234
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
235
|
-
to[j] = from[i];
|
|
236
|
-
return to;
|
|
237
|
-
}
|
|
238
|
-
function __await(v) {
|
|
239
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
240
|
-
}
|
|
241
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
242
|
-
if (!Symbol.asyncIterator)
|
|
243
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
244
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
245
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
246
|
-
function verb(n) { if (g[n])
|
|
247
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
248
|
-
function resume(n, v) { try {
|
|
249
|
-
step(g[n](v));
|
|
250
|
-
}
|
|
251
|
-
catch (e) {
|
|
252
|
-
settle(q[0][3], e);
|
|
253
|
-
} }
|
|
254
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
255
|
-
function fulfill(value) { resume("next", value); }
|
|
256
|
-
function reject(value) { resume("throw", value); }
|
|
257
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
258
|
-
resume(q[0][0], q[0][1]); }
|
|
259
|
-
}
|
|
260
|
-
function __asyncDelegator(o) {
|
|
261
|
-
var i, p;
|
|
262
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
263
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
264
|
-
}
|
|
265
|
-
function __asyncValues(o) {
|
|
266
|
-
if (!Symbol.asyncIterator)
|
|
267
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
268
|
-
var m = o[Symbol.asyncIterator], i;
|
|
269
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
270
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
271
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
272
|
-
}
|
|
273
|
-
function __makeTemplateObject(cooked, raw) {
|
|
274
|
-
if (Object.defineProperty) {
|
|
275
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
cooked.raw = raw;
|
|
279
|
-
}
|
|
280
|
-
return cooked;
|
|
281
|
-
}
|
|
282
|
-
;
|
|
283
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
284
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
285
|
-
}) : function (o, v) {
|
|
286
|
-
o["default"] = v;
|
|
287
|
-
};
|
|
288
|
-
function __importStar(mod) {
|
|
289
|
-
if (mod && mod.__esModule)
|
|
290
|
-
return mod;
|
|
291
|
-
var result = {};
|
|
292
|
-
if (mod != null)
|
|
293
|
-
for (var k in mod)
|
|
294
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
295
|
-
__createBinding(result, mod, k);
|
|
296
|
-
__setModuleDefault(result, mod);
|
|
297
|
-
return result;
|
|
298
|
-
}
|
|
299
|
-
function __importDefault(mod) {
|
|
300
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
301
|
-
}
|
|
302
|
-
function __classPrivateFieldGet(receiver, privateMap) {
|
|
303
|
-
if (!privateMap.has(receiver)) {
|
|
304
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
305
|
-
}
|
|
306
|
-
return privateMap.get(receiver);
|
|
307
|
-
}
|
|
308
|
-
function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
309
|
-
if (!privateMap.has(receiver)) {
|
|
310
|
-
throw new TypeError("attempted to set private field on non-instance");
|
|
311
|
-
}
|
|
312
|
-
privateMap.set(receiver, value);
|
|
313
|
-
return value;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
var FormlyWrapperFormField = /** @class */ (function (_super) {
|
|
317
|
-
__extends(FormlyWrapperFormField, _super);
|
|
318
|
-
function FormlyWrapperFormField(renderer, elementRef, focusMonitor) {
|
|
319
|
-
var _this = _super.call(this) || this;
|
|
320
|
-
_this.renderer = renderer;
|
|
321
|
-
_this.elementRef = elementRef;
|
|
322
|
-
_this.focusMonitor = focusMonitor;
|
|
323
|
-
return _this;
|
|
324
|
-
}
|
|
325
|
-
FormlyWrapperFormField.prototype.ngOnInit = function () {
|
|
326
|
-
var _this = this;
|
|
327
|
-
core.ɵdefineHiddenProp(this.field, '_formField', this.formField);
|
|
328
|
-
this.focusMonitor.monitor(this.elementRef, true).subscribe(function (origin) {
|
|
329
|
-
if (!origin && _this.field.focus) {
|
|
330
|
-
_this.field.focus = false;
|
|
331
|
-
}
|
|
332
|
-
});
|
|
333
|
-
};
|
|
334
|
-
FormlyWrapperFormField.prototype.ngAfterViewInit = function () {
|
|
335
|
-
// temporary fix for https://github.com/angular/material2/issues/7891
|
|
336
|
-
if (this.formField.appearance !== 'outline' && this.to.hideFieldUnderline === true) {
|
|
337
|
-
var underlineElement = this.formField._elementRef.nativeElement.querySelector('.mat-form-field-underline');
|
|
338
|
-
underlineElement && this.renderer.removeChild(underlineElement.parentNode, underlineElement);
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
FormlyWrapperFormField.prototype.ngOnDestroy = function () {
|
|
342
|
-
delete this.field._formField;
|
|
343
|
-
this.focusMonitor.stopMonitoring(this.elementRef);
|
|
344
|
-
};
|
|
345
|
-
return FormlyWrapperFormField;
|
|
346
|
-
}(core.FieldWrapper));
|
|
347
|
-
FormlyWrapperFormField.decorators = [
|
|
348
|
-
{ type: core$1.Component, args: [{
|
|
349
|
-
selector: 'formly-wrapper-mat-form-field',
|
|
350
|
-
template: "\n <!-- fix https://github.com/angular/material2/pull/7083 by setting width to 100% -->\n <mat-form-field\n [hideRequiredMarker]=\"true\"\n [floatLabel]=\"to.floatLabel\"\n [appearance]=\"to.appearance\"\n [color]=\"to.color\"\n [style.width]=\"'100%'\"\n >\n <ng-container #fieldComponent></ng-container>\n <mat-label *ngIf=\"to.label && to.hideLabel !== true\">\n {{ to.label }}\n <span *ngIf=\"to.required && to.hideRequiredMarker !== true\" class=\"mat-form-field-required-marker\">*</span>\n </mat-label>\n\n <ng-container matPrefix *ngIf=\"field._matprefix\">\n <ng-container *ngTemplateOutlet=\"field._matprefix\"></ng-container>\n </ng-container>\n\n <ng-container matSuffix *ngIf=\"field._matsuffix\">\n <ng-container *ngTemplateOutlet=\"field._matsuffix\"></ng-container>\n </ng-container>\n\n <mat-error>\n <formly-validation-message [field]=\"field\"></formly-validation-message>\n </mat-error>\n\n <mat-hint *ngIf=\"to.description || to.hintStart as hint\">\n <ng-container [ngTemplateOutlet]=\"stringOrTemplate\" [ngTemplateOutletContext]=\"{ content: hint }\">\n </ng-container>\n </mat-hint>\n\n <mat-hint *ngIf=\"to.hintEnd as hintEnd\" align=\"end\">\n <ng-container [ngTemplateOutlet]=\"stringOrTemplate\" [ngTemplateOutletContext]=\"{ content: hintEnd }\">\n </ng-container>\n </mat-hint>\n </mat-form-field>\n\n <ng-template #stringOrTemplate let-content=\"content\">\n <ng-container *ngIf=\"!content.createEmbeddedView; else template\">{{ content }}</ng-container>\n <ng-template #template>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </ng-template>\n </ng-template>\n ",
|
|
351
|
-
changeDetection: core$1.ChangeDetectionStrategy.OnPush
|
|
352
|
-
},] }
|
|
353
|
-
];
|
|
354
|
-
FormlyWrapperFormField.ctorParameters = function () { return [
|
|
355
|
-
{ type: core$1.Renderer2 },
|
|
356
|
-
{ type: core$1.ElementRef },
|
|
357
|
-
{ type: a11y.FocusMonitor }
|
|
358
|
-
]; };
|
|
359
|
-
FormlyWrapperFormField.propDecorators = {
|
|
360
|
-
formField: [{ type: core$1.ViewChild, args: [formField.MatFormField, { static: true },] }]
|
|
361
|
-
};
|
|
362
|
-
|
|
363
|
-
var FormlyMatFormFieldModule = /** @class */ (function () {
|
|
364
|
-
function FormlyMatFormFieldModule() {
|
|
365
|
-
}
|
|
366
|
-
return FormlyMatFormFieldModule;
|
|
367
|
-
}());
|
|
368
|
-
FormlyMatFormFieldModule.decorators = [
|
|
369
|
-
{ type: core$1.NgModule, args: [{
|
|
370
|
-
declarations: [FormlyWrapperFormField],
|
|
371
|
-
imports: [
|
|
372
|
-
common.CommonModule,
|
|
373
|
-
forms.ReactiveFormsModule,
|
|
374
|
-
formField.MatFormFieldModule,
|
|
375
|
-
core.FormlyModule.forChild({
|
|
376
|
-
wrappers: [
|
|
377
|
-
{
|
|
378
|
-
name: 'form-field',
|
|
379
|
-
component: FormlyWrapperFormField,
|
|
380
|
-
},
|
|
381
|
-
],
|
|
382
|
-
}),
|
|
383
|
-
],
|
|
384
|
-
},] }
|
|
385
|
-
];
|
|
386
|
-
|
|
387
|
-
var FieldType = /** @class */ (function (_super) {
|
|
388
|
-
__extends(FieldType, _super);
|
|
389
|
-
function FieldType() {
|
|
390
|
-
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
391
|
-
_this.errorStateMatcher = { isErrorState: function () { return _this.field && _this.showError; } };
|
|
392
|
-
_this.stateChanges = new rxjs.Subject();
|
|
393
|
-
_this._errorState = false;
|
|
394
|
-
return _this;
|
|
395
|
-
}
|
|
396
|
-
Object.defineProperty(FieldType.prototype, "_controls", {
|
|
397
|
-
set: function (controls) {
|
|
398
|
-
if (controls.length === 1 && !this.formFieldControl) {
|
|
399
|
-
this.formFieldControl = controls.first;
|
|
400
|
-
}
|
|
401
|
-
},
|
|
402
|
-
enumerable: false,
|
|
403
|
-
configurable: true
|
|
404
|
-
});
|
|
405
|
-
FieldType.prototype.ngOnInit = function () {
|
|
406
|
-
var _this = this;
|
|
407
|
-
core.ɵobserve(this, ['formFieldControl'], function (_c) {
|
|
408
|
-
var currentValue = _c.currentValue;
|
|
409
|
-
_this.attachControl(currentValue || _this);
|
|
410
|
-
});
|
|
411
|
-
};
|
|
412
|
-
FieldType.prototype.ngAfterViewInit = function () {
|
|
413
|
-
if (this.matPrefix) {
|
|
414
|
-
this.to.prefix = this.matPrefix;
|
|
415
|
-
}
|
|
416
|
-
if (this.matSuffix) {
|
|
417
|
-
this.to.prefix = this.matSuffix;
|
|
418
|
-
}
|
|
419
|
-
};
|
|
420
|
-
FieldType.prototype.ngOnDestroy = function () {
|
|
421
|
-
var _a;
|
|
422
|
-
(_a = this.formField) === null || _a === void 0 ? true : delete _a._control;
|
|
423
|
-
this.stateChanges.complete();
|
|
424
|
-
};
|
|
425
|
-
FieldType.prototype.setDescribedByIds = function (ids) { };
|
|
426
|
-
FieldType.prototype.onContainerClick = function (event) {
|
|
427
|
-
this.field.focus = true;
|
|
428
|
-
this.stateChanges.next();
|
|
429
|
-
};
|
|
430
|
-
Object.defineProperty(FieldType.prototype, "errorState", {
|
|
431
|
-
get: function () {
|
|
432
|
-
var showError = this.options.showError(this);
|
|
433
|
-
if (showError !== this._errorState) {
|
|
434
|
-
this._errorState = showError;
|
|
435
|
-
this.stateChanges.next();
|
|
436
|
-
}
|
|
437
|
-
return showError;
|
|
438
|
-
},
|
|
439
|
-
enumerable: false,
|
|
440
|
-
configurable: true
|
|
441
|
-
});
|
|
442
|
-
Object.defineProperty(FieldType.prototype, "controlType", {
|
|
443
|
-
get: function () {
|
|
444
|
-
if (this.to.type) {
|
|
445
|
-
return this.to.type;
|
|
446
|
-
}
|
|
447
|
-
if (this.field.type instanceof core$1.Type) {
|
|
448
|
-
return this.field.type.constructor.name;
|
|
449
|
-
}
|
|
450
|
-
return this.field.type;
|
|
451
|
-
},
|
|
452
|
-
enumerable: false,
|
|
453
|
-
configurable: true
|
|
454
|
-
});
|
|
455
|
-
Object.defineProperty(FieldType.prototype, "focused", {
|
|
456
|
-
get: function () {
|
|
457
|
-
return !!this.field.focus && !this.disabled;
|
|
458
|
-
},
|
|
459
|
-
enumerable: false,
|
|
460
|
-
configurable: true
|
|
461
|
-
});
|
|
462
|
-
Object.defineProperty(FieldType.prototype, "disabled", {
|
|
463
|
-
get: function () {
|
|
464
|
-
return !!this.to.disabled;
|
|
465
|
-
},
|
|
466
|
-
enumerable: false,
|
|
467
|
-
configurable: true
|
|
468
|
-
});
|
|
469
|
-
Object.defineProperty(FieldType.prototype, "required", {
|
|
470
|
-
get: function () {
|
|
471
|
-
return !!this.to.required;
|
|
472
|
-
},
|
|
473
|
-
enumerable: false,
|
|
474
|
-
configurable: true
|
|
475
|
-
});
|
|
476
|
-
Object.defineProperty(FieldType.prototype, "placeholder", {
|
|
477
|
-
get: function () {
|
|
478
|
-
return this.to.placeholder || '';
|
|
479
|
-
},
|
|
480
|
-
enumerable: false,
|
|
481
|
-
configurable: true
|
|
482
|
-
});
|
|
483
|
-
Object.defineProperty(FieldType.prototype, "shouldPlaceholderFloat", {
|
|
484
|
-
get: function () {
|
|
485
|
-
return this.shouldLabelFloat;
|
|
486
|
-
},
|
|
487
|
-
enumerable: false,
|
|
488
|
-
configurable: true
|
|
489
|
-
});
|
|
490
|
-
Object.defineProperty(FieldType.prototype, "value", {
|
|
491
|
-
get: function () {
|
|
492
|
-
return this.formControl.value;
|
|
493
|
-
},
|
|
494
|
-
set: function (value) {
|
|
495
|
-
this.formControl.patchValue(value);
|
|
496
|
-
},
|
|
497
|
-
enumerable: false,
|
|
498
|
-
configurable: true
|
|
499
|
-
});
|
|
500
|
-
Object.defineProperty(FieldType.prototype, "ngControl", {
|
|
501
|
-
get: function () {
|
|
502
|
-
return this.formControl;
|
|
503
|
-
},
|
|
504
|
-
enumerable: false,
|
|
505
|
-
configurable: true
|
|
506
|
-
});
|
|
507
|
-
Object.defineProperty(FieldType.prototype, "empty", {
|
|
508
|
-
get: function () {
|
|
509
|
-
return this.value == null || this.value === '';
|
|
510
|
-
},
|
|
511
|
-
enumerable: false,
|
|
512
|
-
configurable: true
|
|
513
|
-
});
|
|
514
|
-
Object.defineProperty(FieldType.prototype, "shouldLabelFloat", {
|
|
515
|
-
get: function () {
|
|
516
|
-
return this.focused || !this.empty;
|
|
517
|
-
},
|
|
518
|
-
enumerable: false,
|
|
519
|
-
configurable: true
|
|
520
|
-
});
|
|
521
|
-
Object.defineProperty(FieldType.prototype, "formField", {
|
|
522
|
-
get: function () {
|
|
523
|
-
var _a;
|
|
524
|
-
return (_a = this.field) === null || _a === void 0 ? void 0 : _a['_formField'];
|
|
525
|
-
},
|
|
526
|
-
enumerable: false,
|
|
527
|
-
configurable: true
|
|
528
|
-
});
|
|
529
|
-
FieldType.prototype.attachControl = function (control) {
|
|
530
|
-
var _this = this;
|
|
531
|
-
var _a, _b;
|
|
532
|
-
if (this.formField && control !== this.formField._control) {
|
|
533
|
-
this.formField._control = control;
|
|
534
|
-
// temporary fix for https://github.com/angular/material2/issues/6728
|
|
535
|
-
if ((_b = (_a = control === null || control === void 0 ? void 0 : control.ngControl) === null || _a === void 0 ? void 0 : _a.valueAccessor) === null || _b === void 0 ? void 0 : _b.hasOwnProperty('_formField')) {
|
|
536
|
-
control.ngControl.valueAccessor['_formField'] = this.formField;
|
|
537
|
-
}
|
|
538
|
-
['prefix', 'suffix'].forEach(function (type) { return core.ɵobserve(_this.field, ['templateOptions', type], function (_c) {
|
|
539
|
-
var currentValue = _c.currentValue;
|
|
540
|
-
return currentValue &&
|
|
541
|
-
Promise.resolve().then(function () {
|
|
542
|
-
_this.field["_mat" + type] = currentValue;
|
|
543
|
-
_this.options.detectChanges(_this.field);
|
|
544
|
-
});
|
|
545
|
-
}); });
|
|
546
|
-
// https://github.com/angular/components/issues/16209
|
|
547
|
-
var setDescribedByIds_1 = control.setDescribedByIds.bind(control);
|
|
548
|
-
control.setDescribedByIds = function (ids) {
|
|
549
|
-
setTimeout(function () { return setDescribedByIds_1(ids); });
|
|
550
|
-
};
|
|
551
|
-
}
|
|
552
|
-
};
|
|
553
|
-
return FieldType;
|
|
554
|
-
}(core.FieldType));
|
|
555
|
-
FieldType.decorators = [
|
|
556
|
-
{ type: core$1.Directive }
|
|
557
|
-
];
|
|
558
|
-
FieldType.propDecorators = {
|
|
559
|
-
matPrefix: [{ type: core$1.ViewChild, args: ['matPrefix',] }],
|
|
560
|
-
matSuffix: [{ type: core$1.ViewChild, args: ['matSuffix',] }],
|
|
561
|
-
_controls: [{ type: core$1.ViewChildren, args: [formField.MatFormFieldControl,] }]
|
|
562
|
-
};
|
|
563
|
-
|
|
564
|
-
/**
|
|
565
|
-
* Generated bundle index. Do not edit.
|
|
566
|
-
*/
|
|
567
|
-
|
|
568
|
-
exports.FieldType = FieldType;
|
|
569
|
-
exports.FormlyMatFormFieldModule = FormlyMatFormFieldModule;
|
|
570
|
-
exports.ɵa = FormlyWrapperFormField;
|
|
571
|
-
|
|
572
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
573
|
-
|
|
574
|
-
})));
|
|
575
|
-
//# sourceMappingURL=ngx-formly-material-form-field.umd.js.map
|