@sd-angular/core 1.3.243 → 1.3.244
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/autocomplete/sd-angular-core-autocomplete.metadata.json +1 -1
- package/bundles/sd-angular-core-autocomplete.umd.js +20 -21
- package/bundles/sd-angular-core-autocomplete.umd.js.map +1 -1
- package/bundles/sd-angular-core-autocomplete.umd.min.js +1 -15
- package/bundles/sd-angular-core-autocomplete.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-date-full.umd.js +712 -0
- package/bundles/sd-angular-core-date-full.umd.js.map +1 -0
- package/bundles/sd-angular-core-date-full.umd.min.js +2 -0
- package/bundles/sd-angular-core-date-full.umd.min.js.map +1 -0
- package/bundles/sd-angular-core-date-time.umd.js +5 -6
- package/bundles/sd-angular-core-date-time.umd.js.map +1 -1
- package/bundles/sd-angular-core-date-time.umd.min.js +1 -1
- package/bundles/sd-angular-core-date-time.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-date.umd.js +719 -0
- package/bundles/sd-angular-core-date.umd.js.map +1 -0
- package/bundles/sd-angular-core-date.umd.min.js +2 -0
- package/bundles/sd-angular-core-date.umd.min.js.map +1 -0
- package/bundles/sd-angular-core-form.umd.js +10 -4
- package/bundles/sd-angular-core-form.umd.js.map +1 -1
- package/bundles/sd-angular-core-form.umd.min.js +1 -1
- package/bundles/sd-angular-core-form.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-input-number.umd.js +7 -10
- package/bundles/sd-angular-core-input-number.umd.js.map +1 -1
- package/bundles/sd-angular-core-input-number.umd.min.js +2 -2
- package/bundles/sd-angular-core-input-number.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-month.umd.js +742 -0
- package/bundles/sd-angular-core-month.umd.js.map +1 -0
- package/bundles/sd-angular-core-month.umd.min.js +2 -0
- package/bundles/sd-angular-core-month.umd.min.js.map +1 -0
- package/bundles/sd-angular-core.umd.js +4 -4
- package/bundles/sd-angular-core.umd.min.js +1 -1
- package/bundles/sd-angular-core.umd.min.js.map +1 -1
- package/date/index.d.ts +1 -0
- package/date/package.json +12 -0
- package/date/sd-angular-core-date.d.ts +4 -0
- package/date/sd-angular-core-date.metadata.json +1 -0
- package/date/src/lib/date.component.d.ts +63 -0
- package/date/src/lib/date.module.d.ts +2 -0
- package/date/src/public-api.d.ts +2 -0
- package/date-full/index.d.ts +1 -0
- package/date-full/package.json +12 -0
- package/date-full/sd-angular-core-date-full.d.ts +4 -0
- package/date-full/sd-angular-core-date-full.metadata.json +1 -0
- package/date-full/src/lib/date-full.component.d.ts +64 -0
- package/date-full/src/lib/date-full.module.d.ts +2 -0
- package/date-full/src/public-api.d.ts +2 -0
- package/date-time/sd-angular-core-date-time.metadata.json +1 -1
- package/esm2015/autocomplete/src/lib/autocomplete.component.js +2 -2
- package/esm2015/autocomplete/src/lib/autocomplete.module.js +8 -10
- package/esm2015/date/index.js +2 -0
- package/esm2015/date/sd-angular-core-date.js +5 -0
- package/esm2015/date/src/lib/date.component.js +310 -0
- package/esm2015/date/src/lib/date.module.js +38 -0
- package/esm2015/date/src/public-api.js +3 -0
- package/esm2015/date-full/index.js +2 -0
- package/esm2015/date-full/sd-angular-core-date-full.js +5 -0
- package/esm2015/date-full/src/lib/date-full.component.js +303 -0
- package/esm2015/date-full/src/lib/date-full.module.js +40 -0
- package/esm2015/date-full/src/public-api.js +3 -0
- package/esm2015/date-time/src/lib/date-time.component.js +2 -2
- package/esm2015/date-time/src/lib/date-time.module.js +10 -12
- package/esm2015/form/src/lib/form.module.js +21 -12
- package/esm2015/input-number/src/lib/input-number.component.js +2 -2
- package/esm2015/input-number/src/lib/input-number.module.js +3 -7
- package/esm2015/month/index.js +2 -0
- package/esm2015/month/sd-angular-core-month.js +5 -0
- package/esm2015/month/src/lib/month.component.js +334 -0
- package/esm2015/month/src/lib/month.module.js +40 -0
- package/esm2015/month/src/public-api.js +3 -0
- package/esm2015/public-api.js +4 -1
- package/fesm2015/sd-angular-core-autocomplete.js +8 -10
- package/fesm2015/sd-angular-core-autocomplete.js.map +1 -1
- package/fesm2015/sd-angular-core-date-full.js +344 -0
- package/fesm2015/sd-angular-core-date-full.js.map +1 -0
- package/fesm2015/sd-angular-core-date-time.js +12 -14
- package/fesm2015/sd-angular-core-date-time.js.map +1 -1
- package/fesm2015/sd-angular-core-date.js +349 -0
- package/fesm2015/sd-angular-core-date.js.map +1 -0
- package/fesm2015/sd-angular-core-form.js +19 -10
- package/fesm2015/sd-angular-core-form.js.map +1 -1
- package/fesm2015/sd-angular-core-input-number.js +3 -7
- package/fesm2015/sd-angular-core-input-number.js.map +1 -1
- package/fesm2015/sd-angular-core-month.js +374 -0
- package/fesm2015/sd-angular-core-month.js.map +1 -0
- package/fesm2015/sd-angular-core.js +3 -0
- package/fesm2015/sd-angular-core.js.map +1 -1
- package/form/sd-angular-core-form.metadata.json +1 -1
- package/input-number/sd-angular-core-input-number.metadata.json +1 -1
- package/month/index.d.ts +1 -0
- package/month/package.json +12 -0
- package/month/sd-angular-core-month.d.ts +4 -0
- package/month/sd-angular-core-month.metadata.json +1 -0
- package/month/src/lib/month.component.d.ts +66 -0
- package/month/src/lib/month.module.d.ts +2 -0
- package/month/src/public-api.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
- package/{sd-angular-core-1.3.243.tgz → sd-angular-core-1.3.244.tgz} +0 -0
|
@@ -0,0 +1,712 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('@angular/material-moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@angular/material/icon'), require('@angular/material/input'), require('@sd-angular/core/button'), require('@sd-angular/core/common'), require('@sd-angular/core/translate'), require('moment'), require('ngx-device-detector'), require('object-hash'), require('rxjs'), require('uuid')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@sd-angular/core/date-full', ['exports', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/common', '@angular/core', '@angular/forms', '@angular/material-moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', '@angular/material/icon', '@angular/material/input', '@sd-angular/core/button', '@sd-angular/core/common', '@sd-angular/core/translate', 'moment', 'ngx-device-detector', 'object-hash', 'rxjs', 'uuid'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sd-angular'] = global['sd-angular'] || {}, global['sd-angular'].core = global['sd-angular'].core || {}, global['sd-angular'].core['date-full'] = {}), global['@angular-material-components/datetime-picker'], global['@angular-material-components/moment-adapter'], global.ng.common, global.ng.core, global.ng.forms, global.ng.materialMomentAdapter, global.ng.material.datepicker, global.ng.material.formField, global.ng.material.icon, global.ng.material.input, global['sd-angular'].core.button, global['sd-angular'].core.common, global['sd-angular'].core.translate, global.moment, global['ngx-device-detector'], global.hash, global.rxjs, global.uuid));
|
|
5
|
+
}(this, (function (exports, datetimePicker, momentAdapter, common$1, core, forms, materialMomentAdapter, datepicker, formField, icon, input, button, common, translate, moment, ngxDeviceDetector, hash, rxjs, uuid) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
|
|
10
|
+
var hash__default = /*#__PURE__*/_interopDefaultLegacy(hash);
|
|
11
|
+
|
|
12
|
+
/*! *****************************************************************************
|
|
13
|
+
Copyright (c) Microsoft Corporation.
|
|
14
|
+
|
|
15
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
16
|
+
purpose with or without fee is hereby granted.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
19
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
20
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
21
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
22
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
23
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
24
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
25
|
+
***************************************************************************** */
|
|
26
|
+
/* global Reflect, Promise */
|
|
27
|
+
var extendStatics = function (d, b) {
|
|
28
|
+
extendStatics = Object.setPrototypeOf ||
|
|
29
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
30
|
+
function (d, b) { for (var p in b)
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
32
|
+
d[p] = b[p]; };
|
|
33
|
+
return extendStatics(d, b);
|
|
34
|
+
};
|
|
35
|
+
function __extends(d, b) {
|
|
36
|
+
if (typeof b !== "function" && b !== null)
|
|
37
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
38
|
+
extendStatics(d, b);
|
|
39
|
+
function __() { this.constructor = d; }
|
|
40
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
41
|
+
}
|
|
42
|
+
var __assign = function () {
|
|
43
|
+
__assign = Object.assign || function __assign(t) {
|
|
44
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
45
|
+
s = arguments[i];
|
|
46
|
+
for (var p in s)
|
|
47
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
48
|
+
t[p] = s[p];
|
|
49
|
+
}
|
|
50
|
+
return t;
|
|
51
|
+
};
|
|
52
|
+
return __assign.apply(this, arguments);
|
|
53
|
+
};
|
|
54
|
+
function __rest(s, e) {
|
|
55
|
+
var t = {};
|
|
56
|
+
for (var p in s)
|
|
57
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
58
|
+
t[p] = s[p];
|
|
59
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
60
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
61
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
62
|
+
t[p[i]] = s[p[i]];
|
|
63
|
+
}
|
|
64
|
+
return t;
|
|
65
|
+
}
|
|
66
|
+
function __decorate(decorators, target, key, desc) {
|
|
67
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
68
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
69
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
70
|
+
else
|
|
71
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
72
|
+
if (d = decorators[i])
|
|
73
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
74
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
75
|
+
}
|
|
76
|
+
function __param(paramIndex, decorator) {
|
|
77
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
78
|
+
}
|
|
79
|
+
function __metadata(metadataKey, metadataValue) {
|
|
80
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
81
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
82
|
+
}
|
|
83
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
84
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
85
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
86
|
+
function fulfilled(value) { try {
|
|
87
|
+
step(generator.next(value));
|
|
88
|
+
}
|
|
89
|
+
catch (e) {
|
|
90
|
+
reject(e);
|
|
91
|
+
} }
|
|
92
|
+
function rejected(value) { try {
|
|
93
|
+
step(generator["throw"](value));
|
|
94
|
+
}
|
|
95
|
+
catch (e) {
|
|
96
|
+
reject(e);
|
|
97
|
+
} }
|
|
98
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
99
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function __generator(thisArg, body) {
|
|
103
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
104
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
105
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
106
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
107
|
+
function step(op) {
|
|
108
|
+
if (f)
|
|
109
|
+
throw new TypeError("Generator is already executing.");
|
|
110
|
+
while (_)
|
|
111
|
+
try {
|
|
112
|
+
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)
|
|
113
|
+
return t;
|
|
114
|
+
if (y = 0, t)
|
|
115
|
+
op = [op[0] & 2, t.value];
|
|
116
|
+
switch (op[0]) {
|
|
117
|
+
case 0:
|
|
118
|
+
case 1:
|
|
119
|
+
t = op;
|
|
120
|
+
break;
|
|
121
|
+
case 4:
|
|
122
|
+
_.label++;
|
|
123
|
+
return { value: op[1], done: false };
|
|
124
|
+
case 5:
|
|
125
|
+
_.label++;
|
|
126
|
+
y = op[1];
|
|
127
|
+
op = [0];
|
|
128
|
+
continue;
|
|
129
|
+
case 7:
|
|
130
|
+
op = _.ops.pop();
|
|
131
|
+
_.trys.pop();
|
|
132
|
+
continue;
|
|
133
|
+
default:
|
|
134
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
135
|
+
_ = 0;
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
139
|
+
_.label = op[1];
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
143
|
+
_.label = t[1];
|
|
144
|
+
t = op;
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
if (t && _.label < t[2]) {
|
|
148
|
+
_.label = t[2];
|
|
149
|
+
_.ops.push(op);
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
if (t[2])
|
|
153
|
+
_.ops.pop();
|
|
154
|
+
_.trys.pop();
|
|
155
|
+
continue;
|
|
156
|
+
}
|
|
157
|
+
op = body.call(thisArg, _);
|
|
158
|
+
}
|
|
159
|
+
catch (e) {
|
|
160
|
+
op = [6, e];
|
|
161
|
+
y = 0;
|
|
162
|
+
}
|
|
163
|
+
finally {
|
|
164
|
+
f = t = 0;
|
|
165
|
+
}
|
|
166
|
+
if (op[0] & 5)
|
|
167
|
+
throw op[1];
|
|
168
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
172
|
+
if (k2 === undefined)
|
|
173
|
+
k2 = k;
|
|
174
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
175
|
+
}) : (function (o, m, k, k2) {
|
|
176
|
+
if (k2 === undefined)
|
|
177
|
+
k2 = k;
|
|
178
|
+
o[k2] = m[k];
|
|
179
|
+
});
|
|
180
|
+
function __exportStar(m, o) {
|
|
181
|
+
for (var p in m)
|
|
182
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
183
|
+
__createBinding(o, m, p);
|
|
184
|
+
}
|
|
185
|
+
function __values(o) {
|
|
186
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
187
|
+
if (m)
|
|
188
|
+
return m.call(o);
|
|
189
|
+
if (o && typeof o.length === "number")
|
|
190
|
+
return {
|
|
191
|
+
next: function () {
|
|
192
|
+
if (o && i >= o.length)
|
|
193
|
+
o = void 0;
|
|
194
|
+
return { value: o && o[i++], done: !o };
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
198
|
+
}
|
|
199
|
+
function __read(o, n) {
|
|
200
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
201
|
+
if (!m)
|
|
202
|
+
return o;
|
|
203
|
+
var i = m.call(o), r, ar = [], e;
|
|
204
|
+
try {
|
|
205
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
206
|
+
ar.push(r.value);
|
|
207
|
+
}
|
|
208
|
+
catch (error) {
|
|
209
|
+
e = { error: error };
|
|
210
|
+
}
|
|
211
|
+
finally {
|
|
212
|
+
try {
|
|
213
|
+
if (r && !r.done && (m = i["return"]))
|
|
214
|
+
m.call(i);
|
|
215
|
+
}
|
|
216
|
+
finally {
|
|
217
|
+
if (e)
|
|
218
|
+
throw e.error;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return ar;
|
|
222
|
+
}
|
|
223
|
+
/** @deprecated */
|
|
224
|
+
function __spread() {
|
|
225
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
226
|
+
ar = ar.concat(__read(arguments[i]));
|
|
227
|
+
return ar;
|
|
228
|
+
}
|
|
229
|
+
/** @deprecated */
|
|
230
|
+
function __spreadArrays() {
|
|
231
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
232
|
+
s += arguments[i].length;
|
|
233
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
234
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
235
|
+
r[k] = a[j];
|
|
236
|
+
return r;
|
|
237
|
+
}
|
|
238
|
+
function __spreadArray(to, from, pack) {
|
|
239
|
+
if (pack || arguments.length === 2)
|
|
240
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
241
|
+
if (ar || !(i in from)) {
|
|
242
|
+
if (!ar)
|
|
243
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
244
|
+
ar[i] = from[i];
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
248
|
+
}
|
|
249
|
+
function __await(v) {
|
|
250
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
251
|
+
}
|
|
252
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
253
|
+
if (!Symbol.asyncIterator)
|
|
254
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
255
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
256
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
257
|
+
function verb(n) { if (g[n])
|
|
258
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
259
|
+
function resume(n, v) { try {
|
|
260
|
+
step(g[n](v));
|
|
261
|
+
}
|
|
262
|
+
catch (e) {
|
|
263
|
+
settle(q[0][3], e);
|
|
264
|
+
} }
|
|
265
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
266
|
+
function fulfill(value) { resume("next", value); }
|
|
267
|
+
function reject(value) { resume("throw", value); }
|
|
268
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
269
|
+
resume(q[0][0], q[0][1]); }
|
|
270
|
+
}
|
|
271
|
+
function __asyncDelegator(o) {
|
|
272
|
+
var i, p;
|
|
273
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
274
|
+
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; }
|
|
275
|
+
}
|
|
276
|
+
function __asyncValues(o) {
|
|
277
|
+
if (!Symbol.asyncIterator)
|
|
278
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
279
|
+
var m = o[Symbol.asyncIterator], i;
|
|
280
|
+
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);
|
|
281
|
+
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); }); }; }
|
|
282
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
283
|
+
}
|
|
284
|
+
function __makeTemplateObject(cooked, raw) {
|
|
285
|
+
if (Object.defineProperty) {
|
|
286
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
287
|
+
}
|
|
288
|
+
else {
|
|
289
|
+
cooked.raw = raw;
|
|
290
|
+
}
|
|
291
|
+
return cooked;
|
|
292
|
+
}
|
|
293
|
+
;
|
|
294
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
295
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
296
|
+
}) : function (o, v) {
|
|
297
|
+
o["default"] = v;
|
|
298
|
+
};
|
|
299
|
+
function __importStar(mod) {
|
|
300
|
+
if (mod && mod.__esModule)
|
|
301
|
+
return mod;
|
|
302
|
+
var result = {};
|
|
303
|
+
if (mod != null)
|
|
304
|
+
for (var k in mod)
|
|
305
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
306
|
+
__createBinding(result, mod, k);
|
|
307
|
+
__setModuleDefault(result, mod);
|
|
308
|
+
return result;
|
|
309
|
+
}
|
|
310
|
+
function __importDefault(mod) {
|
|
311
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
312
|
+
}
|
|
313
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
314
|
+
if (kind === "a" && !f)
|
|
315
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
316
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
317
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
318
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
319
|
+
}
|
|
320
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
321
|
+
if (kind === "m")
|
|
322
|
+
throw new TypeError("Private method is not writable");
|
|
323
|
+
if (kind === "a" && !f)
|
|
324
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
325
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
326
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
327
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
var _date, _name, _form, _subscription;
|
|
331
|
+
var CUSTOM_DATETIME_FORMATS = {
|
|
332
|
+
parse: {
|
|
333
|
+
dateInput: 'DD/MM/YYYY HH:mm:ss'
|
|
334
|
+
},
|
|
335
|
+
display: {
|
|
336
|
+
dateInput: 'DD/MM/YYYY HH:mm:ss',
|
|
337
|
+
monthYearLabel: 'MMM YYYY',
|
|
338
|
+
dateA11yLabel: 'LL',
|
|
339
|
+
monthYearA11yLabel: 'MMMM YYYY'
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
var ɵ0 = CUSTOM_DATETIME_FORMATS;
|
|
343
|
+
var SdDateFull = /** @class */ (function () {
|
|
344
|
+
function SdDateFull(ref, deviceService, formConfig) {
|
|
345
|
+
var _this = this;
|
|
346
|
+
this.ref = ref;
|
|
347
|
+
this.formConfig = formConfig;
|
|
348
|
+
this.id = "I" + uuid.v4();
|
|
349
|
+
this.isMobileOrTablet = false;
|
|
350
|
+
_date.set(this, void 0);
|
|
351
|
+
_name.set(this, uuid.v4());
|
|
352
|
+
this.disableErrorMessage = false;
|
|
353
|
+
this.formControl = new common.SdFormControl();
|
|
354
|
+
_form.set(this, void 0);
|
|
355
|
+
this.required = false;
|
|
356
|
+
this.sdChange = new core.EventEmitter();
|
|
357
|
+
this.sdFocus = new core.EventEmitter();
|
|
358
|
+
this.modelChange = new core.EventEmitter();
|
|
359
|
+
_subscription.set(this, new rxjs.Subscription());
|
|
360
|
+
this.isFocused = false;
|
|
361
|
+
this.onFocus = function () {
|
|
362
|
+
_this.isFocused = true;
|
|
363
|
+
_this.sdFocus.emit();
|
|
364
|
+
};
|
|
365
|
+
this.onBlur = function () {
|
|
366
|
+
_this.isFocused = false;
|
|
367
|
+
};
|
|
368
|
+
this.onClick = function () {
|
|
369
|
+
var _a;
|
|
370
|
+
if ((_a = _this.sdView) === null || _a === void 0 ? void 0 : _a.templateRef) {
|
|
371
|
+
if (!_this.formControl.disabled && !_this.isFocused) {
|
|
372
|
+
_this.focus();
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
this.blur = function () {
|
|
377
|
+
var _a, _b;
|
|
378
|
+
(_b = (_a = _this.input) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.blur();
|
|
379
|
+
};
|
|
380
|
+
this.focus = function () {
|
|
381
|
+
_this.isFocused = true;
|
|
382
|
+
setTimeout(function () {
|
|
383
|
+
var _a, _b, _c;
|
|
384
|
+
(_b = (_a = _this.input) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.focus();
|
|
385
|
+
(_c = _this.dateTimePicker) === null || _c === void 0 ? void 0 : _c.open();
|
|
386
|
+
}, 100);
|
|
387
|
+
};
|
|
388
|
+
this.onKeyDown = function (event) {
|
|
389
|
+
var key = event.keyCode || event.charCode;
|
|
390
|
+
var isShift = false;
|
|
391
|
+
if (key === 16) {
|
|
392
|
+
isShift = true;
|
|
393
|
+
}
|
|
394
|
+
// cho phép copy parse
|
|
395
|
+
if (event.ctrlKey && (key === 67 || key === 86)) {
|
|
396
|
+
console.log('action copy parse... datepicker');
|
|
397
|
+
return true;
|
|
398
|
+
}
|
|
399
|
+
// Allow only Numeric Keys.
|
|
400
|
+
if (((key >= 48 && key <= 57) || key === 8 || key <= 37 || key <= 39 || (key >= 96 && key <= 105) || key === 191 || key === 186 || key === 59) && isShift === false) {
|
|
401
|
+
return true;
|
|
402
|
+
}
|
|
403
|
+
else {
|
|
404
|
+
return false;
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
this.onKeyup = function (event) {
|
|
408
|
+
var currentVal = event.target.value;
|
|
409
|
+
var formControl = _this.formControl;
|
|
410
|
+
var regex = /^([1-9]|([012][0-9])|(3[01]))\/([0]{0,1}[1-9]|1[012])\/\d\d\d\d [012]{0,1}[0-9]:[0-6][0-9]:[0-6][0-9]$/g;
|
|
411
|
+
if (currentVal && !regex.test(currentVal)) {
|
|
412
|
+
setTimeout(function () {
|
|
413
|
+
_this.isValid = true;
|
|
414
|
+
formControl.markAsDirty();
|
|
415
|
+
formControl.markAsTouched();
|
|
416
|
+
formControl.setErrors(Object.assign(Object.assign({}, formControl.errors), { date: "Sai \u0111\u1ECBnh d\u1EA1ng" }));
|
|
417
|
+
}, 0);
|
|
418
|
+
}
|
|
419
|
+
else {
|
|
420
|
+
setTimeout(function () {
|
|
421
|
+
_this.isValid = false;
|
|
422
|
+
formControl.setErrors(Object.assign(Object.assign({}, formControl.errors), { date: null }));
|
|
423
|
+
_this.formControl.updateValueAndValidity();
|
|
424
|
+
}, 0);
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
this.onChange = function (event) {
|
|
428
|
+
var _a;
|
|
429
|
+
var value = (_a = event.value) === null || _a === void 0 ? void 0 : _a.toDate();
|
|
430
|
+
if (!_this.isValid) {
|
|
431
|
+
if (new Date(__classPrivateFieldGet(_this, _date)) !== value) {
|
|
432
|
+
_this.modelChange.emit(value);
|
|
433
|
+
_this.sdChange.emit(value);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
else {
|
|
437
|
+
_this.isValid = false;
|
|
438
|
+
_this.formControl.setValue(null);
|
|
439
|
+
_this.modelChange.emit(null);
|
|
440
|
+
_this.sdChange.emit(null);
|
|
441
|
+
}
|
|
442
|
+
};
|
|
443
|
+
this.clear = function ($event) {
|
|
444
|
+
$event === null || $event === void 0 ? void 0 : $event.stopPropagation();
|
|
445
|
+
if (_this.formControl.value) {
|
|
446
|
+
_this.formControl.setValue(null);
|
|
447
|
+
_this.modelChange.emit(null);
|
|
448
|
+
_this.sdChange.emit(null);
|
|
449
|
+
}
|
|
450
|
+
};
|
|
451
|
+
this.isMobileOrTablet = !deviceService.isDesktop();
|
|
452
|
+
}
|
|
453
|
+
Object.defineProperty(SdDateFull.prototype, "name", {
|
|
454
|
+
set: function (val) {
|
|
455
|
+
if (val) {
|
|
456
|
+
__classPrivateFieldSet(this, _name, val);
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
enumerable: false,
|
|
460
|
+
configurable: true
|
|
461
|
+
});
|
|
462
|
+
Object.defineProperty(SdDateFull.prototype, "_disableErrorMessage", {
|
|
463
|
+
set: function (val) {
|
|
464
|
+
this.disableErrorMessage = (val === '') || val;
|
|
465
|
+
val = (val === '') || val;
|
|
466
|
+
},
|
|
467
|
+
enumerable: false,
|
|
468
|
+
configurable: true
|
|
469
|
+
});
|
|
470
|
+
Object.defineProperty(SdDateFull.prototype, "_min", {
|
|
471
|
+
set: function (val) {
|
|
472
|
+
if (Date.isDate(val)) {
|
|
473
|
+
this.min = new Date(val);
|
|
474
|
+
}
|
|
475
|
+
else {
|
|
476
|
+
this.min = null;
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
enumerable: false,
|
|
480
|
+
configurable: true
|
|
481
|
+
});
|
|
482
|
+
Object.defineProperty(SdDateFull.prototype, "_max", {
|
|
483
|
+
set: function (val) {
|
|
484
|
+
if (Date.isDate(val)) {
|
|
485
|
+
this.max = new Date(val);
|
|
486
|
+
}
|
|
487
|
+
else {
|
|
488
|
+
this.max = null;
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
enumerable: false,
|
|
492
|
+
configurable: true
|
|
493
|
+
});
|
|
494
|
+
Object.defineProperty(SdDateFull.prototype, "form", {
|
|
495
|
+
set: function (val) {
|
|
496
|
+
if (val) {
|
|
497
|
+
if (val instanceof forms.NgForm) {
|
|
498
|
+
__classPrivateFieldSet(this, _form, val.form);
|
|
499
|
+
}
|
|
500
|
+
else {
|
|
501
|
+
__classPrivateFieldSet(this, _form, val);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
enumerable: false,
|
|
506
|
+
configurable: true
|
|
507
|
+
});
|
|
508
|
+
Object.defineProperty(SdDateFull.prototype, "disabled", {
|
|
509
|
+
set: function (val) {
|
|
510
|
+
val = (val === '') || val;
|
|
511
|
+
if (val) {
|
|
512
|
+
this.formControl.disable();
|
|
513
|
+
}
|
|
514
|
+
else {
|
|
515
|
+
this.formControl.enable();
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
enumerable: false,
|
|
519
|
+
configurable: true
|
|
520
|
+
});
|
|
521
|
+
Object.defineProperty(SdDateFull.prototype, "_required", {
|
|
522
|
+
set: function (val) {
|
|
523
|
+
this.required = (val === '') || val;
|
|
524
|
+
if (this.required) {
|
|
525
|
+
this.formControl.setValidators([forms.Validators.required]);
|
|
526
|
+
}
|
|
527
|
+
else {
|
|
528
|
+
this.formControl.clearValidators();
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
enumerable: false,
|
|
532
|
+
configurable: true
|
|
533
|
+
});
|
|
534
|
+
Object.defineProperty(SdDateFull.prototype, "_inlineError", {
|
|
535
|
+
set: function (val) {
|
|
536
|
+
this.inlineError = val;
|
|
537
|
+
// this.#updateValidator();
|
|
538
|
+
if (this.inlineError) {
|
|
539
|
+
this.formControl.setValidators([this.customInlineErrorValidator()]);
|
|
540
|
+
this.formControl.updateValueAndValidity();
|
|
541
|
+
}
|
|
542
|
+
else {
|
|
543
|
+
this.formControl.clearValidators();
|
|
544
|
+
this.formControl.updateValueAndValidity();
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
enumerable: false,
|
|
548
|
+
configurable: true
|
|
549
|
+
});
|
|
550
|
+
Object.defineProperty(SdDateFull.prototype, "_label", {
|
|
551
|
+
set: function (val) {
|
|
552
|
+
this.label = val;
|
|
553
|
+
this.qcId = hash__default['default']({
|
|
554
|
+
selector: 'sd-date-full',
|
|
555
|
+
label: val
|
|
556
|
+
});
|
|
557
|
+
},
|
|
558
|
+
enumerable: false,
|
|
559
|
+
configurable: true
|
|
560
|
+
});
|
|
561
|
+
;
|
|
562
|
+
Object.defineProperty(SdDateFull.prototype, "minDate", {
|
|
563
|
+
set: function (val) {
|
|
564
|
+
if (Date.isDate(val)) {
|
|
565
|
+
this.min = new Date(val);
|
|
566
|
+
}
|
|
567
|
+
else {
|
|
568
|
+
this.min = null;
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
enumerable: false,
|
|
572
|
+
configurable: true
|
|
573
|
+
});
|
|
574
|
+
Object.defineProperty(SdDateFull.prototype, "maxDate", {
|
|
575
|
+
set: function (val) {
|
|
576
|
+
if (Date.isDate(val)) {
|
|
577
|
+
this.max = new Date(val);
|
|
578
|
+
}
|
|
579
|
+
else {
|
|
580
|
+
this.max = null;
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
enumerable: false,
|
|
584
|
+
configurable: true
|
|
585
|
+
});
|
|
586
|
+
Object.defineProperty(SdDateFull.prototype, "model", {
|
|
587
|
+
set: function (val) {
|
|
588
|
+
if (!Date.isDate(val)) {
|
|
589
|
+
val = null;
|
|
590
|
+
}
|
|
591
|
+
if (__classPrivateFieldGet(this, _date) !== val) {
|
|
592
|
+
__classPrivateFieldSet(this, _date, val);
|
|
593
|
+
var date = Date.isDate(__classPrivateFieldGet(this, _date)) ? moment__default['default'](Date.toFormat(__classPrivateFieldGet(this, _date), 'MM/dd/yyyy HH:mm:ss'), 'MM/DD/YYYY HH:mm:ss') : null;
|
|
594
|
+
this.formControl.setValue(date);
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
enumerable: false,
|
|
598
|
+
configurable: true
|
|
599
|
+
});
|
|
600
|
+
SdDateFull.prototype.ngOnDestroy = function () {
|
|
601
|
+
var _a;
|
|
602
|
+
(_a = __classPrivateFieldGet(this, _form)) === null || _a === void 0 ? void 0 : _a.removeControl(__classPrivateFieldGet(this, _name));
|
|
603
|
+
__classPrivateFieldGet(this, _subscription).unsubscribe();
|
|
604
|
+
};
|
|
605
|
+
SdDateFull.prototype.ngOnInit = function () {
|
|
606
|
+
var _this = this;
|
|
607
|
+
var _a, _b;
|
|
608
|
+
this.appearance = this.appearance || ((_a = this.formConfig) === null || _a === void 0 ? void 0 : _a.appearance);
|
|
609
|
+
__classPrivateFieldGet(this, _subscription).add(this.formControl.sdChanges.subscribe(function () {
|
|
610
|
+
// this.formControl.updateValueAndValidity();
|
|
611
|
+
_this.ref.markForCheck();
|
|
612
|
+
}));
|
|
613
|
+
(_b = __classPrivateFieldGet(this, _form)) === null || _b === void 0 ? void 0 : _b.addControl(__classPrivateFieldGet(this, _name), this.formControl);
|
|
614
|
+
};
|
|
615
|
+
// Hàm tạo Validators tùy chỉnh cho inlineError
|
|
616
|
+
SdDateFull.prototype.customInlineErrorValidator = function () {
|
|
617
|
+
return function (control) {
|
|
618
|
+
return { inlineError: true };
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
SdDateFull.prototype.ngAfterViewInit = function () {
|
|
622
|
+
};
|
|
623
|
+
SdDateFull.prototype.focusInputElement = function () {
|
|
624
|
+
var _a, _b;
|
|
625
|
+
(_b = (_a = this.input) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.focus();
|
|
626
|
+
};
|
|
627
|
+
return SdDateFull;
|
|
628
|
+
}());
|
|
629
|
+
_date = new WeakMap(), _name = new WeakMap(), _form = new WeakMap(), _subscription = new WeakMap();
|
|
630
|
+
SdDateFull.decorators = [
|
|
631
|
+
{ type: core.Component, args: [{
|
|
632
|
+
selector: 'sd-date-full',
|
|
633
|
+
template: "<ng-container *ngIf=\"!appearance && sdLabelDef?.templateRef\">\r\n <ng-container *ngTemplateOutlet=\"sdLabelDef.templateRef\"> </ng-container>\r\n</ng-container>\r\n<label *ngIf=\"!appearance && label && !sdLabelDef?.templateRef\" class=\"d-block mb-0 T14M\"\r\n >{{ label }} <span class=\"text-danger mb-2\" *ngIf=\"required\">*</span></label\r\n>\r\n<div\r\n class=\"d-flex align-items-center\"\r\n [class.sd-view]=\"sdView?.templateRef\"\r\n [class.c-focused]=\"isFocused\"\r\n [class.c-disabled]=\"formControl.disabled\"\r\n (click)=\"onClick()\">\r\n <ng-container *ngIf=\"sdView?.templateRef && !isFocused && !dateTimePicker?.opened; else default\">\r\n <ng-container *ngTemplateOutlet=\"sdView.templateRef; context: { value: formControl.value }\"> </ng-container>\r\n </ng-container>\r\n <ng-template #default>\r\n <mat-form-field\r\n class=\"sd-md\"\r\n [ngClass]=\"{ 'sd-sm': size === 'sm', 'no-padding-wrapper': disableErrorMessage }\"\r\n [appearance]=\"appearance || 'outline'\">\r\n <mat-label *ngIf=\"appearance && label\">{{ label }}</mat-label>\r\n <input\r\n aria-hidden=\"true\"\r\n [id]=\"id\"\r\n matInput\r\n (keyup)=\"onKeyup($event)\"\r\n (keydown)=\"onKeyDown($event)\"\r\n (dateChange)=\"onChange($event)\"\r\n [autocomplete]=\"id\"\r\n autocorrect=\"off\"\r\n [formControl]=\"formControl\"\r\n [ngxMatDatetimePicker]=\"picker1\"\r\n [placeholder]=\"placeholder || (appearance ? label : '')\"\r\n [min]=\"min\"\r\n [required]=\"required\"\r\n [max]=\"max\"\r\n (focus)=\"onFocus()\"\r\n (blur)=\"onBlur()\"\r\n [attr.data-qclabel]=\"label\"\r\n [attr.data-qcid]=\"qcId\"\r\n #input\r\n [maxLength]=\"19\" />\r\n <ng-content select=\"[sdSuffixIcon]\" matSuffix></ng-content>\r\n <mat-icon\r\n *ngIf=\"formControl?.value && !required && !formControl.disabled\"\r\n class=\"pointer sd-suffix-icon\"\r\n (click)=\"clear($event)\"\r\n matSuffix\r\n >cancel\r\n </mat-icon>\r\n <mat-datepicker-toggle matSuffix [for]=\"picker1\"> </mat-datepicker-toggle>\r\n <ngx-mat-datetime-picker\r\n #picker1\r\n [defaultTime]=\"defaultTime\"\r\n [touchUi]=\"isMobileOrTablet\"\r\n [showSpinners]=\"false\"\r\n (opened)=\"onFocus()\"\r\n (closed)=\"onBlur(); focusInputElement()\">\r\n </ngx-mat-datetime-picker>\r\n\r\n <mat-error *ngIf=\"formControl?.errors?.required && formControl?.touched\">\r\n <ng-container *ngIf=\"!disableErrorMessage\">{{ 'This field is required' | sdTranslate }}</ng-container>\r\n </mat-error>\r\n <mat-error *ngIf=\"formControl?.errors?.matDatetimePickerMin && formControl?.touched && !isFocused\">\r\n <ng-container *ngIf=\"!disableErrorMessage\"\r\n >{{ 'Min date' | sdTranslate }}:\r\n <strong>{{ min | date : 'dd/MM/yyyy HH:mm' }}</strong>\r\n </ng-container>\r\n </mat-error>\r\n <mat-error *ngIf=\"formControl?.errors?.matDatetimePickerMax && formControl?.touched && !isFocused\">\r\n <ng-container *ngIf=\"!disableErrorMessage\"\r\n >{{ 'Max date' | sdTranslate }}:\r\n <strong>{{ max | date : 'dd/MM/yyyy HH:mm' }}</strong>\r\n </ng-container>\r\n </mat-error>\r\n <mat-error *ngIf=\"formControl?.errors?.matDatetimePickerParse && formControl?.touched && !isFocused\">\r\n <ng-container *ngIf=\"!disableErrorMessage\"\r\n >{{ 'Parse error' | sdTranslate }}:\r\n <strong>{{ formControl?.errors?.matDatetimePickerParse?.text }}</strong>\r\n </ng-container>\r\n </mat-error>\r\n <mat-error *ngIf=\"formControl?.errors?.customValidator && formControl?.touched && !disableErrorMessage\">\r\n <ng-container *ngIf=\"!disableErrorMessage\">{{ formControl?.errors?.customValidator }} </ng-container>\r\n </mat-error>\r\n <mat-error *ngIf=\"formControl?.errors?.date && formControl?.touched && !disableErrorMessage\">\r\n <ng-container *ngIf=\"!disableErrorMessage\">{{ formControl?.errors?.date }} </ng-container>\r\n </mat-error>\r\n <mat-error *ngIf=\"formControl.errors?.inlineError && formControl?.touched && !disableErrorMessage\">\r\n <ng-container *ngIf=\"!disableErrorMessage\">{{ inlineError }}</ng-container>\r\n </mat-error>\r\n </mat-form-field>\r\n </ng-template>\r\n</div>\r\n",
|
|
634
|
+
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
635
|
+
providers: [
|
|
636
|
+
{ provide: datetimePicker.NGX_MAT_DATE_FORMATS, useValue: ɵ0 }
|
|
637
|
+
],
|
|
638
|
+
styles: [":host{display:block;padding-top:5px}:host ::ng-deep .mat-form-field.no-padding-wrapper .mat-form-field-wrapper{padding-bottom:0}:host ::ng-deep .mat-form-field.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{background:#f6f6f6;color:#e9e9e9}:host ::ng-deep .mat-form-field input.mat-input-element:disabled{color:#4d4d4d!important}:host ::ng-deep .mat-form-field .mat-placeholder-required{color:#f82c13}.sd-view:not(.c-focused):not(.c-disabled):hover{background-color:#ebecf0}"]
|
|
639
|
+
},] }
|
|
640
|
+
];
|
|
641
|
+
SdDateFull.ctorParameters = function () { return [
|
|
642
|
+
{ type: core.ChangeDetectorRef },
|
|
643
|
+
{ type: ngxDeviceDetector.DeviceDetectorService },
|
|
644
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [common.FORM_CONFIG,] }, { type: core.Optional }] }
|
|
645
|
+
]; };
|
|
646
|
+
SdDateFull.propDecorators = {
|
|
647
|
+
name: [{ type: core.Input }],
|
|
648
|
+
appearance: [{ type: core.Input }],
|
|
649
|
+
_disableErrorMessage: [{ type: core.Input, args: ['disableErrorMessage',] }],
|
|
650
|
+
_min: [{ type: core.Input, args: ['min',] }],
|
|
651
|
+
_max: [{ type: core.Input, args: ['max',] }],
|
|
652
|
+
size: [{ type: core.Input }],
|
|
653
|
+
form: [{ type: core.Input }],
|
|
654
|
+
disabled: [{ type: core.Input }],
|
|
655
|
+
_required: [{ type: core.Input, args: ['required',] }],
|
|
656
|
+
_inlineError: [{ type: core.Input, args: ['inlineError',] }],
|
|
657
|
+
_label: [{ type: core.Input, args: ['label',] }],
|
|
658
|
+
placeholder: [{ type: core.Input }],
|
|
659
|
+
defaultTime: [{ type: core.Input }],
|
|
660
|
+
minDate: [{ type: core.Input }],
|
|
661
|
+
maxDate: [{ type: core.Input }],
|
|
662
|
+
validator: [{ type: core.Input }],
|
|
663
|
+
sdChange: [{ type: core.Output }],
|
|
664
|
+
sdFocus: [{ type: core.Output }],
|
|
665
|
+
model: [{ type: core.Input }],
|
|
666
|
+
modelChange: [{ type: core.Output }],
|
|
667
|
+
sdView: [{ type: core.ContentChild, args: [common.SdViewDefDirective,] }],
|
|
668
|
+
sdLabelDef: [{ type: core.ContentChild, args: [common.SdLabelDefDirective,] }],
|
|
669
|
+
input: [{ type: core.ViewChild, args: ['input',] }],
|
|
670
|
+
dateTimePicker: [{ type: core.ViewChild, args: [datetimePicker.NgxMatDatetimePicker,] }]
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
var SdDateFullModule = /** @class */ (function () {
|
|
674
|
+
function SdDateFullModule() {
|
|
675
|
+
}
|
|
676
|
+
return SdDateFullModule;
|
|
677
|
+
}());
|
|
678
|
+
SdDateFullModule.decorators = [
|
|
679
|
+
{ type: core.NgModule, args: [{
|
|
680
|
+
imports: [
|
|
681
|
+
common$1.CommonModule,
|
|
682
|
+
forms.FormsModule,
|
|
683
|
+
forms.ReactiveFormsModule,
|
|
684
|
+
input.MatInputModule,
|
|
685
|
+
icon.MatIconModule,
|
|
686
|
+
formField.MatFormFieldModule,
|
|
687
|
+
datepicker.MatDatepickerModule,
|
|
688
|
+
materialMomentAdapter.MatMomentDateModule,
|
|
689
|
+
datetimePicker.NgxMatDatetimePickerModule,
|
|
690
|
+
datetimePicker.NgxMatTimepickerModule,
|
|
691
|
+
momentAdapter.NgxMatMomentModule,
|
|
692
|
+
translate.SdTranslateModule,
|
|
693
|
+
common.SdCommonModule,
|
|
694
|
+
button.SdButtonModule,
|
|
695
|
+
],
|
|
696
|
+
declarations: [SdDateFull],
|
|
697
|
+
exports: [common.SdCommonModule, SdDateFull],
|
|
698
|
+
providers: [],
|
|
699
|
+
},] }
|
|
700
|
+
];
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* Generated bundle index. Do not edit.
|
|
704
|
+
*/
|
|
705
|
+
|
|
706
|
+
exports.SdDateFull = SdDateFull;
|
|
707
|
+
exports.SdDateFullModule = SdDateFullModule;
|
|
708
|
+
|
|
709
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
710
|
+
|
|
711
|
+
})));
|
|
712
|
+
//# sourceMappingURL=sd-angular-core-date-full.umd.js.map
|