@openmrs/ngx-formentry 3.0.1-pre.61 → 3.0.1-pre.64
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/bundles/openmrs-ngx-formentry.umd.js +1102 -869
- package/bundles/openmrs-ngx-formentry.umd.js.map +1 -1
- package/components/afe-ng-select.component.d.ts +3 -4
- package/components/appointments-overview/appointments-overview.component.d.ts +3 -4
- package/components/check-box/checkbox.component.d.ts +3 -4
- package/components/custom-component-wrapper/custom-component-wrapper.component.d.ts +2 -4
- package/components/custom-control-wrapper/custom-control-wrapper.component.d.ts +1 -1
- package/components/date-time-picker/date-picker/date-picker.component.d.ts +3 -3
- package/components/date-time-picker/date-time-picker.component.d.ts +4 -5
- package/components/date-time-picker/picker-modal/modal.component.d.ts +4 -5
- package/components/date-time-picker/time-picker/time-picker.component.d.ts +3 -3
- package/components/file-upload/file-upload.component.d.ts +2 -2
- package/components/input/input.directive.d.ts +4 -4
- package/components/input/input.module.d.ts +1 -1
- package/components/input/label.component.d.ts +12 -12
- package/components/input/text-area.directive.d.ts +4 -4
- package/components/ngx-datetime-picker/ngx-datetime-picker.component.d.ts +1 -1
- package/components/ngx-pick-datetime/lib/date-time/calendar-body.component.d.ts +5 -9
- package/components/ngx-pick-datetime/lib/date-time/calendar-month-view.component.d.ts +2 -5
- package/components/ngx-pick-datetime/lib/date-time/calendar-multi-year-view.component.d.ts +6 -10
- package/components/ngx-pick-datetime/lib/date-time/calendar-year-view.component.d.ts +3 -6
- package/components/ngx-pick-datetime/lib/date-time/calendar.component.d.ts +4 -11
- package/components/ngx-pick-datetime/lib/date-time/date-time-inline.component.d.ts +5 -6
- package/components/ngx-pick-datetime/lib/date-time/date-time-picker-container.component.d.ts +15 -19
- package/components/ngx-pick-datetime/lib/date-time/date-time-picker-input.directive.d.ts +9 -15
- package/components/ngx-pick-datetime/lib/date-time/date-time-picker-trigger.directive.d.ts +5 -9
- package/components/ngx-pick-datetime/lib/date-time/date-time-picker.component.d.ts +3 -7
- package/components/ngx-pick-datetime/lib/date-time/timer-box.component.d.ts +2 -5
- package/components/ngx-pick-datetime/lib/date-time/timer.component.d.ts +5 -9
- package/components/ngx-pick-datetime/lib/dialog/dialog-container.component.d.ts +15 -16
- package/components/ngx-remote-select/ngx-remote-select.component.d.ts +5 -5
- package/components/ngx-tabset/components/ngx-tab-set.component.d.ts +2 -2
- package/components/ngx-tabset/components/tab.component.d.ts +1 -1
- package/components/ngx-tabset/directives/hover-class.directive.d.ts +2 -2
- package/components/number-input/number-input.component.d.ts +2 -2
- package/components/radio-button/radio.component.d.ts +3 -4
- package/components/select/optgroup.directive.d.ts +3 -3
- package/components/select/option.directive.d.ts +3 -3
- package/components/select/select.component.d.ts +6 -6
- package/components/select/select.module.d.ts +1 -1
- package/esm2015/components/afe-ng-select.component.js +4 -5
- package/esm2015/components/appointments-overview/appointments-overview.component.js +3 -4
- package/esm2015/components/check-box/checkbox.component.js +3 -4
- package/esm2015/components/custom-component-wrapper/custom-component-wrapper.component.js +3 -4
- package/esm2015/components/custom-control-wrapper/custom-control-wrapper.component.js +3 -3
- package/esm2015/components/date-time-picker/date-picker/date-picker.component.js +11 -11
- package/esm2015/components/date-time-picker/date-time-picker.component.js +7 -8
- package/esm2015/components/date-time-picker/picker-modal/modal.component.js +6 -7
- package/esm2015/components/date-time-picker/time-picker/time-picker.component.js +11 -11
- package/esm2015/components/file-upload/file-upload.component.js +3 -3
- package/esm2015/components/file-upload/secure.pipe.js +1 -3
- package/esm2015/components/input/input.directive.js +7 -8
- package/esm2015/components/input/input.module.js +7 -7
- package/esm2015/components/input/label.component.js +18 -19
- package/esm2015/components/input/text-area.directive.js +7 -8
- package/esm2015/components/ngx-datetime-picker/ngx-datetime-picker.component.js +4 -4
- package/esm2015/components/ngx-datetime-picker/ngx-datetime-picker.module.js +2 -3
- package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-body.component.js +13 -20
- package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-month-view.component.js +11 -16
- package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-multi-year-view.component.js +20 -24
- package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar-year-view.component.js +14 -19
- package/esm2015/components/ngx-pick-datetime/lib/date-time/calendar.component.js +13 -22
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-inline.component.js +18 -26
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-container.component.js +61 -53
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-input.directive.js +82 -73
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker-trigger.directive.js +20 -23
- package/esm2015/components/ngx-pick-datetime/lib/date-time/date-time-picker.component.js +6 -11
- package/esm2015/components/ngx-pick-datetime/lib/date-time/timer-box.component.js +12 -17
- package/esm2015/components/ngx-pick-datetime/lib/date-time/timer.component.js +19 -23
- package/esm2015/components/ngx-pick-datetime/lib/dialog/dialog-container.component.js +52 -41
- package/esm2015/components/ngx-remote-select/ngx-remote-select.component.js +6 -6
- package/esm2015/components/ngx-tabset/components/ngx-tab-set.component.js +6 -6
- package/esm2015/components/ngx-tabset/components/tab.component.js +3 -3
- package/esm2015/components/ngx-tabset/directives/hover-class.directive.js +4 -5
- package/esm2015/components/number-input/number-input.component.js +6 -6
- package/esm2015/components/radio-button/radio.component.js +3 -4
- package/esm2015/components/select/optgroup.directive.js +6 -8
- package/esm2015/components/select/option.directive.js +6 -8
- package/esm2015/components/select/select.component.js +16 -274
- package/esm2015/components/select/select.module.js +7 -7
- package/esm2015/form-entry/data-sources/data-sources.js +1 -2
- package/esm2015/form-entry/directives/collapse.directive.js +5 -9
- package/esm2015/form-entry/directives/{historical-value-directive.js → historical-value.directive.js} +3 -3
- package/esm2015/form-entry/error-renderer/error-renderer.component.js +3 -4
- package/esm2015/form-entry/expression-runner/expression-runner.js +1 -2
- package/esm2015/form-entry/form-entry.module.js +2 -2
- package/esm2015/form-entry/form-factory/form.js +1 -5
- package/esm2015/form-entry/form-renderer/form-renderer.component.js +9 -10
- package/esm2015/form-entry/helpers/js-expression-helper.js +16 -1
- package/esm2015/form-entry/helpers/risk-dataset-table.js +247 -0
- package/esm2015/form-entry/question-models/interfaces/date-question-options.js +1 -1
- package/esm2015/form-entry/value-adapters/encounter.adapter.js +1 -2
- package/esm2015/form-entry/value-adapters/obs-adapter-helper.js +1 -6
- package/esm2015/form-entry/value-adapters/obs.adapter.js +1 -5
- package/esm2015/form-entry/value-adapters/order.adapter.js +1 -2
- package/esm2015/form-entry/value-adapters/person-attribute.adapter.js +1 -2
- package/fesm2015/openmrs-ngx-formentry.js +901 -930
- package/fesm2015/openmrs-ngx-formentry.js.map +1 -1
- package/form-entry/directives/collapse.directive.d.ts +1 -1
- package/form-entry/directives/{historical-value-directive.d.ts → historical-value.directive.d.ts} +1 -1
- package/form-entry/error-renderer/error-renderer.component.d.ts +2 -4
- package/form-entry/form-entry.module.d.ts +1 -1
- package/form-entry/form-renderer/form-renderer.component.d.ts +1 -1
- package/form-entry/helpers/js-expression-helper.d.ts +2 -0
- package/form-entry/helpers/risk-dataset-table.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Pipe, TemplateRef, Component, Input, ContentChild, Directive, HostListener, EventEmitter, ContentChildren, Output, forwardRef, ViewChild, WrappedValue, InjectionToken, inject, LOCALE_ID, ChangeDetectionStrategy, Optional, Inject, SkipSelf,
|
|
2
|
+
import { Injectable, Pipe, TemplateRef, Component, Input, ContentChild, Directive, HostListener, EventEmitter, ContentChildren, Output, forwardRef, ViewChild, WrappedValue, InjectionToken, inject, LOCALE_ID, ChangeDetectionStrategy, HostBinding, Optional, Inject, SkipSelf, NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
5
|
-
import * as
|
|
5
|
+
import * as i19 from '@angular/forms';
|
|
6
6
|
import { AbstractControl, FormControl, FormGroup, FormArray, Validators, NG_VALUE_ACCESSOR, NG_VALIDATORS, FormsModule, ReactiveFormsModule, FormBuilder } from '@angular/forms';
|
|
7
7
|
import { Subject, BehaviorSubject, concat, of, Subscription, defer, merge } from 'rxjs';
|
|
8
8
|
import moment from 'moment';
|
|
@@ -702,7 +702,6 @@ class ExpressionRunner {
|
|
|
702
702
|
const runner = this;
|
|
703
703
|
const runnable = {
|
|
704
704
|
run: () => {
|
|
705
|
-
/* eslint-disable */
|
|
706
705
|
let scope = {};
|
|
707
706
|
if (control.uuid) {
|
|
708
707
|
scope[control.uuid] = control.value;
|
|
@@ -1327,6 +1326,253 @@ class FutureDateRestrictionValidator {
|
|
|
1327
1326
|
}
|
|
1328
1327
|
}
|
|
1329
1328
|
|
|
1329
|
+
// South East Asia Non Laboratory CVD Risk Array of Arrays
|
|
1330
|
+
// Vertically we have the BMI value eg for the first array [26(bmi < 20), 28(bmi 20 - 24), 30(bmi 25 - 29), 32(bmi 30 - 35), 34(bmi >= 35)]
|
|
1331
|
+
const southEastAsiaCvdRiskTables = [
|
|
1332
|
+
// Men
|
|
1333
|
+
[
|
|
1334
|
+
// Non smoker
|
|
1335
|
+
[
|
|
1336
|
+
// Age 70 - 74
|
|
1337
|
+
[
|
|
1338
|
+
[26, 28, 30, 32, 34],
|
|
1339
|
+
[21, 23, 25, 26, 28],
|
|
1340
|
+
[17, 19, 20, 21, 23],
|
|
1341
|
+
[14, 15, 16, 17, 18],
|
|
1342
|
+
[11, 12, 13, 14, 15], // sbp < 120
|
|
1343
|
+
],
|
|
1344
|
+
// Age 65 - 69
|
|
1345
|
+
[
|
|
1346
|
+
[20, 22, 24, 26, 28],
|
|
1347
|
+
[16, 17, 19, 21, 22],
|
|
1348
|
+
[12, 14, 15, 16, 18],
|
|
1349
|
+
[10, 11, 12, 13, 14],
|
|
1350
|
+
[8, 8, 9, 10, 11], // < 120
|
|
1351
|
+
],
|
|
1352
|
+
// Age 60 - 64
|
|
1353
|
+
[
|
|
1354
|
+
[15, 17, 19, 21, 23],
|
|
1355
|
+
[12, 13, 14, 16, 18],
|
|
1356
|
+
[9, 10, 11, 12, 14],
|
|
1357
|
+
[7, 8, 8, 9, 10],
|
|
1358
|
+
[5, 6, 6, 7, 8], // sbp < 120
|
|
1359
|
+
],
|
|
1360
|
+
// Age 55 - 59
|
|
1361
|
+
[
|
|
1362
|
+
[12, 13, 15, 16, 18],
|
|
1363
|
+
[9, 10, 11, 12, 14],
|
|
1364
|
+
[7, 7, 8, 9, 10],
|
|
1365
|
+
[5, 5, 6, 7, 8],
|
|
1366
|
+
[4, 4, 4, 5, 6], // sbp < 120
|
|
1367
|
+
],
|
|
1368
|
+
// Age 50 - 54
|
|
1369
|
+
[
|
|
1370
|
+
[9, 10, 11, 13, 15],
|
|
1371
|
+
[7, 7, 8, 9, 11],
|
|
1372
|
+
[5, 5, 6, 7, 8],
|
|
1373
|
+
[3, 4, 4, 5, 6],
|
|
1374
|
+
[2, 3, 3, 4, 4], // sbp < 120
|
|
1375
|
+
],
|
|
1376
|
+
// Age 45 - 49
|
|
1377
|
+
[
|
|
1378
|
+
[7, 8, 9, 10, 12],
|
|
1379
|
+
[5, 6, 6, 7, 8],
|
|
1380
|
+
[3, 4, 4, 5, 6],
|
|
1381
|
+
[2, 3, 3, 4, 4],
|
|
1382
|
+
[2, 2, 2, 2, 3], // < 120
|
|
1383
|
+
],
|
|
1384
|
+
// Age 40 - 44
|
|
1385
|
+
[
|
|
1386
|
+
[5, 6, 7, 8, 10],
|
|
1387
|
+
[4, 4, 5, 6, 7],
|
|
1388
|
+
[2, 3, 3, 4, 4],
|
|
1389
|
+
[2, 2, 2, 3, 3],
|
|
1390
|
+
[1, 1, 2, 2, 2],
|
|
1391
|
+
],
|
|
1392
|
+
],
|
|
1393
|
+
// Smoker
|
|
1394
|
+
[
|
|
1395
|
+
// Age 70 - 74
|
|
1396
|
+
[
|
|
1397
|
+
[34, 36, 39, 41, 44],
|
|
1398
|
+
[28, 30, 32, 34, 36],
|
|
1399
|
+
[23, 24, 26, 28, 30],
|
|
1400
|
+
[18, 20, 21, 23, 24],
|
|
1401
|
+
[15, 16, 17, 18, 20], // < 120
|
|
1402
|
+
],
|
|
1403
|
+
// Age 65 - 69
|
|
1404
|
+
[
|
|
1405
|
+
[28, 30, 33, 36, 39],
|
|
1406
|
+
[22, 24, 26, 29, 31],
|
|
1407
|
+
[18, 19, 21, 23, 25],
|
|
1408
|
+
[14, 15, 16, 18, 20],
|
|
1409
|
+
[11, 12, 13, 14, 16], // < 120
|
|
1410
|
+
],
|
|
1411
|
+
// Age 60 - 64
|
|
1412
|
+
[
|
|
1413
|
+
[23, 25, 28, 31, 34],
|
|
1414
|
+
[18, 18, 20, 22, 24],
|
|
1415
|
+
[14, 15, 17, 19, 21],
|
|
1416
|
+
[10, 12, 13, 14, 16],
|
|
1417
|
+
[8, 9, 10, 11, 12], // < 120
|
|
1418
|
+
],
|
|
1419
|
+
// Age 55 - 59
|
|
1420
|
+
[
|
|
1421
|
+
[19, 21, 24, 27, 30],
|
|
1422
|
+
[14, 16, 18, 20, 23],
|
|
1423
|
+
[11, 12, 13, 15, 17],
|
|
1424
|
+
[8, 9, 10, 11, 13],
|
|
1425
|
+
[6, 7, 7, 8, 10],
|
|
1426
|
+
],
|
|
1427
|
+
// Age 50 - 54
|
|
1428
|
+
[
|
|
1429
|
+
[15, 18, 20, 23, 27],
|
|
1430
|
+
[11, 13, 15, 17, 20],
|
|
1431
|
+
[8, 9, 11, 12, 14],
|
|
1432
|
+
[6, 7, 8, 9, 11],
|
|
1433
|
+
[4, 5, 6, 7, 8],
|
|
1434
|
+
],
|
|
1435
|
+
// Age 45 - 49
|
|
1436
|
+
[
|
|
1437
|
+
[13, 15, 17, 20, 23],
|
|
1438
|
+
[9, 10, 12, 14, 17],
|
|
1439
|
+
[6, 7, 9, 10, 12],
|
|
1440
|
+
[4, 5, 6, 7, 8],
|
|
1441
|
+
[3, 4, 4, 5, 6],
|
|
1442
|
+
],
|
|
1443
|
+
// Age 40 - 44
|
|
1444
|
+
[
|
|
1445
|
+
[10, 12, 14, 17, 20],
|
|
1446
|
+
[7, 8, 10, 12, 14],
|
|
1447
|
+
[5, 6, 7, 8, 10],
|
|
1448
|
+
[3, 4, 5, 6, 7],
|
|
1449
|
+
[2, 3, 3, 4, 5],
|
|
1450
|
+
],
|
|
1451
|
+
],
|
|
1452
|
+
],
|
|
1453
|
+
// Women
|
|
1454
|
+
[
|
|
1455
|
+
// Non smoker
|
|
1456
|
+
[
|
|
1457
|
+
// Age 70 -74
|
|
1458
|
+
[
|
|
1459
|
+
[21, 22, 22, 23, 24],
|
|
1460
|
+
[17, 18, 19, 19, 20],
|
|
1461
|
+
[15, 15, 16, 16, 17],
|
|
1462
|
+
[12, 12, 13, 13, 14],
|
|
1463
|
+
[10, 10, 11, 11, 11], // < 120
|
|
1464
|
+
],
|
|
1465
|
+
// Age 65 - 69
|
|
1466
|
+
[
|
|
1467
|
+
[16, 17, 18, 18, 19],
|
|
1468
|
+
[13, 14, 14, 15, 15],
|
|
1469
|
+
[11, 11, 11, 12, 12],
|
|
1470
|
+
[9, 9, 9, 10, 10],
|
|
1471
|
+
[7, 7, 7, 8, 8],
|
|
1472
|
+
],
|
|
1473
|
+
// Age 60 - 64
|
|
1474
|
+
[
|
|
1475
|
+
[13, 13, 14, 14, 15],
|
|
1476
|
+
[10, 10, 11, 11, 12],
|
|
1477
|
+
[8, 8, 8, 9, 9],
|
|
1478
|
+
[6, 6, 7, 7, 7],
|
|
1479
|
+
[5, 5, 5, 5, 6],
|
|
1480
|
+
],
|
|
1481
|
+
// Age 55 - 59
|
|
1482
|
+
[
|
|
1483
|
+
[10, 10, 11, 11, 12],
|
|
1484
|
+
[8, 8, 8, 9, 9],
|
|
1485
|
+
[6, 6, 6, 7, 7],
|
|
1486
|
+
[4, 5, 5, 5, 5],
|
|
1487
|
+
[3, 3, 4, 4, 4],
|
|
1488
|
+
],
|
|
1489
|
+
// Age 50 - 54
|
|
1490
|
+
[
|
|
1491
|
+
[8, 8, 8, 9, 9],
|
|
1492
|
+
[6, 6, 6, 7, 7],
|
|
1493
|
+
[4, 4, 5, 5, 5],
|
|
1494
|
+
[3, 3, 3, 4, 4],
|
|
1495
|
+
[2, 2, 3, 3, 3],
|
|
1496
|
+
],
|
|
1497
|
+
// Age 45 - 49
|
|
1498
|
+
[
|
|
1499
|
+
[6, 6, 7, 7, 7],
|
|
1500
|
+
[4, 5, 5, 5, 5],
|
|
1501
|
+
[3, 3, 3, 4, 4],
|
|
1502
|
+
[2, 2, 2, 3, 3],
|
|
1503
|
+
[2, 2, 2, 2, 2],
|
|
1504
|
+
],
|
|
1505
|
+
// Age 40 - 44
|
|
1506
|
+
[
|
|
1507
|
+
[5, 5, 5, 5, 6],
|
|
1508
|
+
[3, 3, 4, 4, 4],
|
|
1509
|
+
[2, 2, 3, 3, 3],
|
|
1510
|
+
[2, 2, 2, 2, 2],
|
|
1511
|
+
[1, 1, 1, 1, 1],
|
|
1512
|
+
],
|
|
1513
|
+
],
|
|
1514
|
+
// Smoker
|
|
1515
|
+
[
|
|
1516
|
+
// Age 70 - 74
|
|
1517
|
+
[
|
|
1518
|
+
[30, 31, 32, 33, 34],
|
|
1519
|
+
[25, 26, 27, 28, 29],
|
|
1520
|
+
[21, 22, 22, 23, 24],
|
|
1521
|
+
[17, 18, 19, 19, 20],
|
|
1522
|
+
[14, 15, 15, 16, 17],
|
|
1523
|
+
],
|
|
1524
|
+
// Age 65 - 69
|
|
1525
|
+
[
|
|
1526
|
+
[25, 26, 27, 29, 30],
|
|
1527
|
+
[21, 22, 22, 23, 24],
|
|
1528
|
+
[17, 18, 18, 19, 20],
|
|
1529
|
+
[14, 14, 15, 15, 16],
|
|
1530
|
+
[11, 11, 12, 12, 13],
|
|
1531
|
+
],
|
|
1532
|
+
// Age 60 - 64
|
|
1533
|
+
[
|
|
1534
|
+
[21, 22, 23, 25, 26],
|
|
1535
|
+
[17, 18, 19, 20, 21],
|
|
1536
|
+
[13, 14, 15, 16, 16],
|
|
1537
|
+
[11, 11, 12, 12, 13],
|
|
1538
|
+
[8, 9, 9, 10, 10],
|
|
1539
|
+
],
|
|
1540
|
+
// Age 55 - 59
|
|
1541
|
+
[
|
|
1542
|
+
[18, 19, 20, 21, 22],
|
|
1543
|
+
[14, 15, 15, 16, 17],
|
|
1544
|
+
[11, 11, 12, 13, 13],
|
|
1545
|
+
[8, 9, 9, 10, 10],
|
|
1546
|
+
[6, 7, 7, 7, 8],
|
|
1547
|
+
],
|
|
1548
|
+
// Age 50 - 54
|
|
1549
|
+
[
|
|
1550
|
+
[15, 16, 17, 18, 19],
|
|
1551
|
+
[11, 12, 13, 14, 14],
|
|
1552
|
+
[9, 9, 10, 10, 11],
|
|
1553
|
+
[6, 7, 7, 8, 8],
|
|
1554
|
+
[5, 5, 5, 6, 6],
|
|
1555
|
+
],
|
|
1556
|
+
// Age 45 - 49
|
|
1557
|
+
[
|
|
1558
|
+
[13, 14, 14, 15, 16],
|
|
1559
|
+
[9, 10, 11, 11, 12],
|
|
1560
|
+
[7, 7, 8, 8, 9],
|
|
1561
|
+
[5, 5, 6, 6, 6],
|
|
1562
|
+
[4, 4, 4, 4, 5],
|
|
1563
|
+
],
|
|
1564
|
+
// Age 40 - 44
|
|
1565
|
+
[
|
|
1566
|
+
[11, 11, 12, 13, 14],
|
|
1567
|
+
[8, 8, 9, 9, 10],
|
|
1568
|
+
[5, 6, 6, 7, 7],
|
|
1569
|
+
[4, 4, 4, 5, 5],
|
|
1570
|
+
[3, 3, 3, 3, 4],
|
|
1571
|
+
],
|
|
1572
|
+
],
|
|
1573
|
+
],
|
|
1574
|
+
];
|
|
1575
|
+
|
|
1330
1576
|
class JsExpressionHelper {
|
|
1331
1577
|
calcBMI(height, weight) {
|
|
1332
1578
|
let r;
|
|
@@ -1478,6 +1724,19 @@ class JsExpressionHelper {
|
|
|
1478
1724
|
}
|
|
1479
1725
|
return height && weight && refSectionObject ? formattedSDValue : null;
|
|
1480
1726
|
}
|
|
1727
|
+
calcSouthEastAsiaNonLabCVDRisk(sex, smoker, age, sbp, bmi) {
|
|
1728
|
+
// Bin functions
|
|
1729
|
+
const getAgeBin = (age) => Math.floor((Math.min(Math.max(40, age), 74) - 40) / 5);
|
|
1730
|
+
const getSbpBin = (sbp) => Math.max(0, Math.floor((Math.min(sbp, 180) - 120) / 20) + 1);
|
|
1731
|
+
const getBmiBin = (bmi) => Math.max(0, Math.floor((Math.min(bmi, 35) - 20) / 5) + 1);
|
|
1732
|
+
// Variables
|
|
1733
|
+
const sexIdx = sex === 'M' ? 0 : 1;
|
|
1734
|
+
const smokerIdx = smoker ? 1 : 0;
|
|
1735
|
+
const ageIdx = 6 - getAgeBin(age);
|
|
1736
|
+
const bmiIdx = getBmiBin(bmi);
|
|
1737
|
+
const sbpIdx = 4 - getSbpBin(sbp);
|
|
1738
|
+
return southEastAsiaCvdRiskTables[sexIdx][smokerIdx][ageIdx][sbpIdx][bmiIdx];
|
|
1739
|
+
}
|
|
1481
1740
|
isEmpty(val) {
|
|
1482
1741
|
if (val === undefined ||
|
|
1483
1742
|
val === null ||
|
|
@@ -1553,6 +1812,7 @@ class JsExpressionHelper {
|
|
|
1553
1812
|
calcBMIForAgeZscore: helper.calcBMIForAgeZscore,
|
|
1554
1813
|
calcWeightForHeightZscore: helper.calcWeightForHeightZscore,
|
|
1555
1814
|
calcHeightForAgeZscore: helper.calcHeightForAgeZscore,
|
|
1815
|
+
calcSouthEastAsiaNonLabCVDRisk: helper.calcSouthEastAsiaNonLabCVDRisk,
|
|
1556
1816
|
isEmpty: helper.isEmpty,
|
|
1557
1817
|
arrayContains: helper.arrayContains,
|
|
1558
1818
|
extractRepeatingGroupValues: helper.extractRepeatingGroupValues
|
|
@@ -1936,7 +2196,6 @@ class DataSources {
|
|
|
1936
2196
|
}
|
|
1937
2197
|
registerDataSource(key, dataSource, unWrap = false) {
|
|
1938
2198
|
if (unWrap) {
|
|
1939
|
-
// eslint-disable-next-line guard-for-in
|
|
1940
2199
|
for (const o in dataSource) {
|
|
1941
2200
|
this.registerDataSource(o, dataSource[o], false);
|
|
1942
2201
|
}
|
|
@@ -1965,11 +2224,11 @@ class TabComponent {
|
|
|
1965
2224
|
}
|
|
1966
2225
|
}
|
|
1967
2226
|
TabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1968
|
-
TabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TabComponent, selector: "
|
|
2227
|
+
TabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TabComponent, selector: "ofe-tab", inputs: { tabTitle: "tabTitle", tabSubTitle: "tabSubTitle", active: "active", disabled: "disabled", bypassDOM: "bypassDOM", customPaneClass: "customPaneClass" }, queries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: "<div *ngIf=\"active\" class=\"pane\" [ngClass]=\"customPaneClass\">\n <h4>{{ tabTitle }}</h4>\n <div *ngIf=\"bypassDOM\">\n <ng-container [ngTemplateOutlet]=\"template\"></ng-container>\n </div>\n <div *ngIf=\"!bypassDOM\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: ["h4{padding-left:1rem;margin-bottom:.5rem}h4:after{content:\"\";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-01)}.pane{background-color:#f4f4f4;margin:.5rem .125rem}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
1969
2228
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TabComponent, decorators: [{
|
|
1970
2229
|
type: Component,
|
|
1971
2230
|
args: [{
|
|
1972
|
-
selector: '
|
|
2231
|
+
selector: 'ofe-tab',
|
|
1973
2232
|
templateUrl: 'tab.component.html',
|
|
1974
2233
|
styleUrls: ['./tab.component.css']
|
|
1975
2234
|
}]
|
|
@@ -2002,15 +2261,14 @@ class HoverClassDirective {
|
|
|
2002
2261
|
}
|
|
2003
2262
|
}
|
|
2004
2263
|
HoverClassDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HoverClassDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2005
|
-
HoverClassDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: HoverClassDirective, selector: "[
|
|
2264
|
+
HoverClassDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: HoverClassDirective, selector: "[ofeHoverClass]", inputs: { hoverClass: "hoverClass" }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()" } }, ngImport: i0 });
|
|
2006
2265
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HoverClassDirective, decorators: [{
|
|
2007
2266
|
type: Directive,
|
|
2008
2267
|
args: [{
|
|
2009
|
-
selector: '[
|
|
2268
|
+
selector: '[ofeHoverClass]'
|
|
2010
2269
|
}]
|
|
2011
2270
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { hoverClass: [{
|
|
2012
|
-
type: Input
|
|
2013
|
-
args: ['hover-class']
|
|
2271
|
+
type: Input
|
|
2014
2272
|
}], onMouseEnter: [{
|
|
2015
2273
|
type: HostListener,
|
|
2016
2274
|
args: ['mouseenter']
|
|
@@ -2025,7 +2283,7 @@ class TabSetComponent {
|
|
|
2025
2283
|
this.customNavClass = '';
|
|
2026
2284
|
this.customTabsClass = '';
|
|
2027
2285
|
this.selectedIndex = 0;
|
|
2028
|
-
this.
|
|
2286
|
+
this.tabSelect = new EventEmitter();
|
|
2029
2287
|
}
|
|
2030
2288
|
ngOnChanges(changes) {
|
|
2031
2289
|
if (changes.selectedIndex && !changes.selectedIndex.firstChange) {
|
|
@@ -2052,7 +2310,7 @@ class TabSetComponent {
|
|
|
2052
2310
|
this.tabs.toArray().forEach((tab) => (tab.active = false));
|
|
2053
2311
|
// activate the tab the user has clicked on.
|
|
2054
2312
|
tabToSelect.active = true;
|
|
2055
|
-
this.
|
|
2313
|
+
this.tabSelect.emit(this.tabs.toArray().indexOf(tabToSelect));
|
|
2056
2314
|
}
|
|
2057
2315
|
getStatusClasses(active, disabled) {
|
|
2058
2316
|
if (active) {
|
|
@@ -2067,11 +2325,11 @@ class TabSetComponent {
|
|
|
2067
2325
|
}
|
|
2068
2326
|
}
|
|
2069
2327
|
TabSetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TabSetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2070
|
-
TabSetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TabSetComponent, selector: "
|
|
2328
|
+
TabSetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TabSetComponent, selector: "ofe-tab-set", inputs: { disableStyle: "disableStyle", customNavClass: "customNavClass", customTabsClass: "customTabsClass", selectedIndex: "selectedIndex" }, outputs: { tabSelect: "tabSelect" }, queries: [{ propertyName: "tabs", predicate: TabComponent }], usesOnChanges: true, ngImport: i0, template: "<div class=\"tab-container\">\n <div class=\"tab\">\n <button\n ofeHoverClass=\"hover\"\n class=\"tablinks completed\"\n *ngFor=\"let tab of tabs\"\n (click)=\"selectTab(tab)\"\n [class]=\"getStatusClasses(tab.active, tab.disabled)\"\n >\n <span>{{ tab.tabTitle }}</span>\n </button>\n </div>\n <div id=\"tab\" class=\"tab-content\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [".tab-container{overflow-x:hidden;display:flex}.tab{width:10rem;position:fixed}.tab button{font-family:inherit;display:block;background-color:inherit;width:100%;border:none;outline:none;text-align:left;transition:.3s;min-height:2rem;white-space:normal;word-wrap:break-word;margin:0 0 .063rem}.tab button :hover{cursor:pointer}@media screen and (max-width: 768px){.tab button{height:3rem;border-bottom:.0125rem solid var(--open-mrs-background-gray);width:10rem}}.tab button.active.hover{background-color:var(--gray-gray-10)}.tab button.enabled.hover{background-color:var(--gray-gray-10)}.tab button.completed{border-left:.5rem solid var(--inverse-support-02);background-color:var(--color-green-10);font-size:.875rem;font-weight:normal;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:.16px;color:#161616}.tab button.active{background-color:#ededed;border-left:.5rem solid #009d9a;font-size:.875rem;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:.16px;color:#161616}.tab button.enabled{background-color:#fff;border-left:.5rem solid #9ef0f0;font-size:.875rem;font-weight:normal;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:.16px;color:var(--color-gray-100)}.tab button.error{background-color:var(--color-red-10);border-left:.5rem solid var(--open-mrs-danger-red-60);font-size:.875rem;font-weight:normal;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:.16px;color:#da1e28}.tab button.disabled{background-color:#fff;border-left:.5rem solid #dae0e0;font-size:.875rem;font-weight:normal;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:.16px;color:var(--gray-gray-30)}.tab button.active.error{background-color:var(--color-red-20);border-left:.5rem solid var(--open-mrs-danger-red-60);font-size:.875rem;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.29;letter-spacing:.16px;color:#da1e28}.tab-content{width:100%;margin-left:10rem}\n"], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: HoverClassDirective, selector: "[ofeHoverClass]", inputs: ["hoverClass"] }] });
|
|
2071
2329
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TabSetComponent, decorators: [{
|
|
2072
2330
|
type: Component,
|
|
2073
2331
|
args: [{
|
|
2074
|
-
selector: '
|
|
2332
|
+
selector: 'ofe-tab-set',
|
|
2075
2333
|
styleUrls: ['ngx-tab-set.component.scss'],
|
|
2076
2334
|
templateUrl: 'ngx-tab-set.component.html'
|
|
2077
2335
|
}]
|
|
@@ -2086,7 +2344,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2086
2344
|
type: Input
|
|
2087
2345
|
}], selectedIndex: [{
|
|
2088
2346
|
type: Input
|
|
2089
|
-
}],
|
|
2347
|
+
}], tabSelect: [{
|
|
2090
2348
|
type: Output
|
|
2091
2349
|
}] } });
|
|
2092
2350
|
|
|
@@ -2094,14 +2352,13 @@ class CustomComponentWrapperComponent {
|
|
|
2094
2352
|
constructor() {
|
|
2095
2353
|
this.dark = true;
|
|
2096
2354
|
}
|
|
2097
|
-
ngOnInit() { }
|
|
2098
2355
|
}
|
|
2099
2356
|
CustomComponentWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomComponentWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2100
|
-
CustomComponentWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CustomComponentWrapperComponent, selector: "
|
|
2357
|
+
CustomComponentWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CustomComponentWrapperComponent, selector: "ofe-custom-component-wrapper", inputs: { componentConfigs: "componentConfigs", dark: "dark" }, ngImport: i0, template: "<div>\n <ng-template #error>Component Loading failed...</ng-template>\n <ng-template #loading>Loading Component...</ng-template>\n <div *ngFor=\"let componentConfig of componentConfigs\">\n <ax-lazy-element\n *axLazyElementDynamic=\"\n componentConfig.tag;\n url: componentConfig.url;\n module: true;\n errorTemplate: error;\n loadingTemplate: loading\n \"\n [config]=\"componentConfig\"\n [dark]=\"dark\"\n >\n </ax-lazy-element>\n </div>\n</div>\n", directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.LazyElementDynamicDirective, selector: "[axLazyElementDynamic]", inputs: ["axLazyElementDynamic", "axLazyElementDynamicUrl", "axLazyElementDynamicLoadingTemplate", "axLazyElementDynamicErrorTemplate", "axLazyElementDynamicModule", "axLazyElementDynamicImportMap"] }] });
|
|
2101
2358
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomComponentWrapperComponent, decorators: [{
|
|
2102
2359
|
type: Component,
|
|
2103
2360
|
args: [{
|
|
2104
|
-
selector: '
|
|
2361
|
+
selector: 'ofe-custom-component-wrapper',
|
|
2105
2362
|
templateUrl: 'custom-component-wrapper.component.html'
|
|
2106
2363
|
}]
|
|
2107
2364
|
}], propDecorators: { componentConfigs: [{
|
|
@@ -2162,7 +2419,7 @@ class CustomControlWrapperComponent {
|
|
|
2162
2419
|
}
|
|
2163
2420
|
}
|
|
2164
2421
|
CustomControlWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomControlWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2165
|
-
CustomControlWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CustomControlWrapperComponent, selector: "
|
|
2422
|
+
CustomControlWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CustomControlWrapperComponent, selector: "ofe-custom-control-wrapper", inputs: { question: "question" }, providers: [
|
|
2166
2423
|
{
|
|
2167
2424
|
provide: NG_VALUE_ACCESSOR,
|
|
2168
2425
|
multi: true,
|
|
@@ -2172,7 +2429,7 @@ CustomControlWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "1
|
|
|
2172
2429
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomControlWrapperComponent, decorators: [{
|
|
2173
2430
|
type: Component,
|
|
2174
2431
|
args: [{
|
|
2175
|
-
selector: '
|
|
2432
|
+
selector: 'ofe-custom-control-wrapper',
|
|
2176
2433
|
templateUrl: 'custom-control-wrapper.component.html',
|
|
2177
2434
|
providers: [
|
|
2178
2435
|
{
|
|
@@ -2186,26 +2443,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2186
2443
|
type: Input
|
|
2187
2444
|
}] } });
|
|
2188
2445
|
|
|
2189
|
-
/* eslint-disable @angular-eslint/component-class-suffix */
|
|
2190
2446
|
/**
|
|
2191
|
-
* `
|
|
2447
|
+
* `ofe-select` provides a styled `select` component.
|
|
2192
2448
|
*
|
|
2193
2449
|
* [See demo](../../?path=/story/select--basic)
|
|
2194
2450
|
*
|
|
2195
2451
|
* Example:
|
|
2196
2452
|
*
|
|
2197
2453
|
* ```
|
|
2198
|
-
* <
|
|
2454
|
+
* <ofe-select [(ngModel)]="model">
|
|
2199
2455
|
* <option value="default" disabled selected hidden>Choose an option</option>
|
|
2200
2456
|
* <option value="option1">Option 1</option>
|
|
2201
2457
|
* <option value="option2">Option 2</option>
|
|
2202
2458
|
* <option value="option3">Option 3</option>
|
|
2203
|
-
* </
|
|
2459
|
+
* </ofe-select>
|
|
2204
2460
|
* ```
|
|
2205
2461
|
*
|
|
2206
2462
|
* <example-url>../../iframe.html?id=select--basic</example-url>
|
|
2207
2463
|
*/
|
|
2208
|
-
class
|
|
2464
|
+
class SelectComponent {
|
|
2209
2465
|
constructor() {
|
|
2210
2466
|
/**
|
|
2211
2467
|
* `inline` or `default` select displays
|
|
@@ -2218,7 +2474,7 @@ class Select {
|
|
|
2218
2474
|
/**
|
|
2219
2475
|
* Sets the unique ID. Defaults to `select-${total count of selects instantiated}`
|
|
2220
2476
|
*/
|
|
2221
|
-
this.id = `select-${
|
|
2477
|
+
this.id = `select-${SelectComponent.selectCount++}`;
|
|
2222
2478
|
/**
|
|
2223
2479
|
* Number input field render size
|
|
2224
2480
|
*/
|
|
@@ -2309,282 +2565,25 @@ class Select {
|
|
|
2309
2565
|
/**
|
|
2310
2566
|
* Tracks the total number of selects instantiated. Used to generate unique IDs
|
|
2311
2567
|
*/
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2568
|
+
SelectComponent.selectCount = 0;
|
|
2569
|
+
SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2570
|
+
SelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SelectComponent, selector: "ofe-select", inputs: { display: "display", label: "label", helperText: "helperText", invalidText: "invalidText", warn: "warn", warnText: "warnText", id: "id", size: "size", disabled: "disabled", skeleton: "skeleton", invalid: "invalid", theme: "theme", ariaLabel: "ariaLabel", value: "value" }, outputs: { valueChange: "valueChange" }, host: { listeners: { "focusout": "focusOut()" } }, providers: [
|
|
2315
2571
|
{
|
|
2316
2572
|
provide: NG_VALUE_ACCESSOR,
|
|
2317
|
-
useExisting:
|
|
2573
|
+
useExisting: SelectComponent,
|
|
2318
2574
|
multi: true
|
|
2319
2575
|
}
|
|
2320
|
-
], viewQueries: [{ propertyName: "select", first: true, predicate: ["select"], descendants: true }], ngImport: i0, template:
|
|
2321
|
-
|
|
2322
|
-
<ng-template [ngIf]="skeleton">
|
|
2323
|
-
<div *ngIf="label" class="cds--label cds--skeleton"></div>
|
|
2324
|
-
<div class="cds--select cds--skeleton"></div>
|
|
2325
|
-
</ng-template>
|
|
2326
|
-
<div
|
|
2327
|
-
*ngIf="!skeleton"
|
|
2328
|
-
class="cds--select"
|
|
2329
|
-
[ngClass]="{
|
|
2330
|
-
'cds--select--inline': display === 'inline',
|
|
2331
|
-
'cds--select--light': theme === 'light',
|
|
2332
|
-
'cds--select--invalid': invalid,
|
|
2333
|
-
'cds--select--warning': warn,
|
|
2334
|
-
'cds--select--disabled': disabled
|
|
2335
|
-
}"
|
|
2336
|
-
>
|
|
2337
|
-
<label *ngIf="label" [for]="id" class="cds--label">
|
|
2338
|
-
<ng-container *ngIf="!isTemplate(label)">{{ label }}</ng-container>
|
|
2339
|
-
<ng-template
|
|
2340
|
-
*ngIf="isTemplate(label)"
|
|
2341
|
-
[ngTemplateOutlet]="label"
|
|
2342
|
-
></ng-template>
|
|
2343
|
-
</label>
|
|
2344
|
-
<div *ngIf="helperText" class="cds--form__helper-text">
|
|
2345
|
-
<ng-container *ngIf="!isTemplate(helperText)">{{
|
|
2346
|
-
helperText
|
|
2347
|
-
}}</ng-container>
|
|
2348
|
-
<ng-template
|
|
2349
|
-
*ngIf="isTemplate(helperText)"
|
|
2350
|
-
[ngTemplateOutlet]="helperText"
|
|
2351
|
-
></ng-template>
|
|
2352
|
-
</div>
|
|
2353
|
-
<div
|
|
2354
|
-
*ngIf="display === 'inline'; else noInline"
|
|
2355
|
-
class="cds--select-input--inline__wrapper"
|
|
2356
|
-
>
|
|
2357
|
-
<ng-container *ngTemplateOutlet="noInline"></ng-container>
|
|
2358
|
-
</div>
|
|
2359
|
-
</div>
|
|
2360
|
-
</div>
|
|
2361
|
-
|
|
2362
|
-
<!-- select element: dynamically projected based on 'display' variant -->
|
|
2363
|
-
<ng-template #noInline>
|
|
2364
|
-
<div
|
|
2365
|
-
class="cds--select-input__wrapper extend"
|
|
2366
|
-
[attr.data-invalid]="invalid ? true : null"
|
|
2367
|
-
>
|
|
2368
|
-
<select
|
|
2369
|
-
#select
|
|
2370
|
-
[attr.id]="id"
|
|
2371
|
-
[attr.aria-label]="ariaLabel"
|
|
2372
|
-
[disabled]="disabled"
|
|
2373
|
-
(change)="onChange($event)"
|
|
2374
|
-
[attr.aria-invalid]="invalid ? 'true' : null"
|
|
2375
|
-
class="cds--select-input"
|
|
2376
|
-
[ngClass]="{
|
|
2377
|
-
'cds--select-input--xl': size === 'xl',
|
|
2378
|
-
'cds--select-input--sm': size === 'sm'
|
|
2379
|
-
}"
|
|
2380
|
-
>
|
|
2381
|
-
<ng-content></ng-content>
|
|
2382
|
-
</select>
|
|
2383
|
-
<svg
|
|
2384
|
-
focusable="false"
|
|
2385
|
-
preserveAspectRatio="xMidYMid meet"
|
|
2386
|
-
style="will-change: transform;"
|
|
2387
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
2388
|
-
class="cds--select__arrow"
|
|
2389
|
-
width="16"
|
|
2390
|
-
height="16"
|
|
2391
|
-
viewBox="0 0 16 16"
|
|
2392
|
-
aria-hidden="true"
|
|
2393
|
-
>
|
|
2394
|
-
<path d="M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"></path>
|
|
2395
|
-
</svg>
|
|
2396
|
-
<svg
|
|
2397
|
-
*ngIf="invalid"
|
|
2398
|
-
focusable="false"
|
|
2399
|
-
preserveAspectRatio="xMidYMid meet"
|
|
2400
|
-
style="will-change: transform;"
|
|
2401
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
2402
|
-
class="cds--text-input__invalid-icon"
|
|
2403
|
-
width="16"
|
|
2404
|
-
height="16"
|
|
2405
|
-
viewBox="0 0 16 16"
|
|
2406
|
-
aria-hidden="true"
|
|
2407
|
-
>
|
|
2408
|
-
<path
|
|
2409
|
-
d="M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"
|
|
2410
|
-
></path>
|
|
2411
|
-
<path
|
|
2412
|
-
d="M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"
|
|
2413
|
-
data-icon-path="inner-path"
|
|
2414
|
-
opacity="0"
|
|
2415
|
-
></path>
|
|
2416
|
-
</svg>
|
|
2417
|
-
</div>
|
|
2418
|
-
<div
|
|
2419
|
-
*ngIf="invalid && invalidText && !warn"
|
|
2420
|
-
role="alert"
|
|
2421
|
-
class="cds--form-requirement"
|
|
2422
|
-
aria-live="polite"
|
|
2423
|
-
>
|
|
2424
|
-
<ng-container *ngIf="!isTemplate(invalidText)">{{
|
|
2425
|
-
invalidText
|
|
2426
|
-
}}</ng-container>
|
|
2427
|
-
<ng-template
|
|
2428
|
-
*ngIf="isTemplate(invalidText)"
|
|
2429
|
-
[ngTemplateOutlet]="invalidText"
|
|
2430
|
-
></ng-template>
|
|
2431
|
-
</div>
|
|
2432
|
-
<div *ngIf="!invalid && warn" class="cds--form-requirement">
|
|
2433
|
-
<ng-container *ngIf="!isTemplate(warnText)">{{
|
|
2434
|
-
warnText
|
|
2435
|
-
}}</ng-container>
|
|
2436
|
-
<ng-template
|
|
2437
|
-
*ngIf="isTemplate(warnText)"
|
|
2438
|
-
[ngTemplateOutlet]="warnText"
|
|
2439
|
-
></ng-template>
|
|
2440
|
-
</div>
|
|
2441
|
-
</ng-template>
|
|
2442
|
-
`, isInline: true, styles: ["\n .cds--select--inline .cds--form__helper-text {\n order: 4;\n }\n\n .cds--select--inline:not(.cds--select--invalid) .cds--form__helper-text {\n margin-top: 0;\n }\n .cds--select-input__wrapper {\n min-width: 16rem;\n }\n "], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
2443
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Select, decorators: [{
|
|
2576
|
+
], viewQueries: [{ propertyName: "select", first: true, predicate: ["select"], descendants: true }], ngImport: i0, template: "<div class=\"cds--form-item\">\n <ng-template [ngIf]=\"skeleton\">\n <div *ngIf=\"label\" class=\"cds--label cds--skeleton\"></div>\n <div class=\"cds--select cds--skeleton\"></div>\n </ng-template>\n <div\n *ngIf=\"!skeleton\"\n class=\"cds--select\"\n [ngClass]=\"{\n 'cds--select--inline': display === 'inline',\n 'cds--select--light': theme === 'light',\n 'cds--select--invalid': invalid,\n 'cds--select--warning': warn,\n 'cds--select--disabled': disabled\n }\"\n >\n <label *ngIf=\"label\" [for]=\"id\" class=\"cds--label\">\n <ng-container *ngIf=\"!isTemplate(label)\">{{ label }}</ng-container>\n <ng-template\n *ngIf=\"isTemplate(label)\"\n [ngTemplateOutlet]=\"label\"\n ></ng-template>\n </label>\n <div *ngIf=\"helperText\" class=\"cds--form__helper-text\">\n <ng-container *ngIf=\"!isTemplate(helperText)\">{{\n helperText\n }}</ng-container>\n <ng-template\n *ngIf=\"isTemplate(helperText)\"\n [ngTemplateOutlet]=\"helperText\"\n ></ng-template>\n </div>\n <div\n *ngIf=\"display === 'inline'; else noInline\"\n class=\"cds--select-input--inline__wrapper\"\n >\n <ng-container *ngTemplateOutlet=\"noInline\"></ng-container>\n </div>\n </div>\n</div>\n\n<!-- select element: dynamically projected based on 'display' variant -->\n<ng-template #noInline>\n <div\n class=\"cds--select-input__wrapper extend\"\n [attr.data-invalid]=\"invalid ? true : null\"\n >\n <select\n #select\n [attr.id]=\"id\"\n [attr.aria-label]=\"ariaLabel\"\n [disabled]=\"disabled\"\n (change)=\"onChange($event)\"\n [attr.aria-invalid]=\"invalid ? 'true' : null\"\n class=\"cds--select-input\"\n [ngClass]=\"{\n 'cds--select-input--xl': size === 'xl',\n 'cds--select-input--sm': size === 'sm'\n }\"\n >\n <ng-content></ng-content>\n </select>\n <svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n style=\"will-change: transform\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"cds--select__arrow\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n aria-hidden=\"true\"\n >\n <path d=\"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z\"></path>\n </svg>\n <svg\n *ngIf=\"invalid\"\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n style=\"will-change: transform\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"cds--text-input__invalid-icon\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z\"\n ></path>\n <path\n d=\"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z\"\n data-icon-path=\"inner-path\"\n opacity=\"0\"\n ></path>\n </svg>\n </div>\n <div\n *ngIf=\"invalid && invalidText && !warn\"\n role=\"alert\"\n class=\"cds--form-requirement\"\n aria-live=\"polite\"\n >\n <ng-container *ngIf=\"!isTemplate(invalidText)\">{{\n invalidText\n }}</ng-container>\n <ng-template\n *ngIf=\"isTemplate(invalidText)\"\n [ngTemplateOutlet]=\"invalidText\"\n ></ng-template>\n </div>\n <div *ngIf=\"!invalid && warn\" class=\"cds--form-requirement\">\n <ng-container *ngIf=\"!isTemplate(warnText)\">{{ warnText }}</ng-container>\n <ng-template\n *ngIf=\"isTemplate(warnText)\"\n [ngTemplateOutlet]=\"warnText\"\n ></ng-template>\n </div>\n</ng-template>\n", styles: [".cds--select--inline .cds--form__helper-text{order:4}.cds--select--inline:not(.cds--select--invalid) .cds--form__helper-text{margin-top:0}.cds--select-input__wrapper{min-width:16rem}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
2577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SelectComponent, decorators: [{
|
|
2444
2578
|
type: Component,
|
|
2445
2579
|
args: [{
|
|
2446
|
-
selector: '
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
<ng-template [ngIf]="skeleton">
|
|
2450
|
-
<div *ngIf="label" class="cds--label cds--skeleton"></div>
|
|
2451
|
-
<div class="cds--select cds--skeleton"></div>
|
|
2452
|
-
</ng-template>
|
|
2453
|
-
<div
|
|
2454
|
-
*ngIf="!skeleton"
|
|
2455
|
-
class="cds--select"
|
|
2456
|
-
[ngClass]="{
|
|
2457
|
-
'cds--select--inline': display === 'inline',
|
|
2458
|
-
'cds--select--light': theme === 'light',
|
|
2459
|
-
'cds--select--invalid': invalid,
|
|
2460
|
-
'cds--select--warning': warn,
|
|
2461
|
-
'cds--select--disabled': disabled
|
|
2462
|
-
}"
|
|
2463
|
-
>
|
|
2464
|
-
<label *ngIf="label" [for]="id" class="cds--label">
|
|
2465
|
-
<ng-container *ngIf="!isTemplate(label)">{{ label }}</ng-container>
|
|
2466
|
-
<ng-template
|
|
2467
|
-
*ngIf="isTemplate(label)"
|
|
2468
|
-
[ngTemplateOutlet]="label"
|
|
2469
|
-
></ng-template>
|
|
2470
|
-
</label>
|
|
2471
|
-
<div *ngIf="helperText" class="cds--form__helper-text">
|
|
2472
|
-
<ng-container *ngIf="!isTemplate(helperText)">{{
|
|
2473
|
-
helperText
|
|
2474
|
-
}}</ng-container>
|
|
2475
|
-
<ng-template
|
|
2476
|
-
*ngIf="isTemplate(helperText)"
|
|
2477
|
-
[ngTemplateOutlet]="helperText"
|
|
2478
|
-
></ng-template>
|
|
2479
|
-
</div>
|
|
2480
|
-
<div
|
|
2481
|
-
*ngIf="display === 'inline'; else noInline"
|
|
2482
|
-
class="cds--select-input--inline__wrapper"
|
|
2483
|
-
>
|
|
2484
|
-
<ng-container *ngTemplateOutlet="noInline"></ng-container>
|
|
2485
|
-
</div>
|
|
2486
|
-
</div>
|
|
2487
|
-
</div>
|
|
2488
|
-
|
|
2489
|
-
<!-- select element: dynamically projected based on 'display' variant -->
|
|
2490
|
-
<ng-template #noInline>
|
|
2491
|
-
<div
|
|
2492
|
-
class="cds--select-input__wrapper extend"
|
|
2493
|
-
[attr.data-invalid]="invalid ? true : null"
|
|
2494
|
-
>
|
|
2495
|
-
<select
|
|
2496
|
-
#select
|
|
2497
|
-
[attr.id]="id"
|
|
2498
|
-
[attr.aria-label]="ariaLabel"
|
|
2499
|
-
[disabled]="disabled"
|
|
2500
|
-
(change)="onChange($event)"
|
|
2501
|
-
[attr.aria-invalid]="invalid ? 'true' : null"
|
|
2502
|
-
class="cds--select-input"
|
|
2503
|
-
[ngClass]="{
|
|
2504
|
-
'cds--select-input--xl': size === 'xl',
|
|
2505
|
-
'cds--select-input--sm': size === 'sm'
|
|
2506
|
-
}"
|
|
2507
|
-
>
|
|
2508
|
-
<ng-content></ng-content>
|
|
2509
|
-
</select>
|
|
2510
|
-
<svg
|
|
2511
|
-
focusable="false"
|
|
2512
|
-
preserveAspectRatio="xMidYMid meet"
|
|
2513
|
-
style="will-change: transform;"
|
|
2514
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
2515
|
-
class="cds--select__arrow"
|
|
2516
|
-
width="16"
|
|
2517
|
-
height="16"
|
|
2518
|
-
viewBox="0 0 16 16"
|
|
2519
|
-
aria-hidden="true"
|
|
2520
|
-
>
|
|
2521
|
-
<path d="M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"></path>
|
|
2522
|
-
</svg>
|
|
2523
|
-
<svg
|
|
2524
|
-
*ngIf="invalid"
|
|
2525
|
-
focusable="false"
|
|
2526
|
-
preserveAspectRatio="xMidYMid meet"
|
|
2527
|
-
style="will-change: transform;"
|
|
2528
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
2529
|
-
class="cds--text-input__invalid-icon"
|
|
2530
|
-
width="16"
|
|
2531
|
-
height="16"
|
|
2532
|
-
viewBox="0 0 16 16"
|
|
2533
|
-
aria-hidden="true"
|
|
2534
|
-
>
|
|
2535
|
-
<path
|
|
2536
|
-
d="M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"
|
|
2537
|
-
></path>
|
|
2538
|
-
<path
|
|
2539
|
-
d="M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"
|
|
2540
|
-
data-icon-path="inner-path"
|
|
2541
|
-
opacity="0"
|
|
2542
|
-
></path>
|
|
2543
|
-
</svg>
|
|
2544
|
-
</div>
|
|
2545
|
-
<div
|
|
2546
|
-
*ngIf="invalid && invalidText && !warn"
|
|
2547
|
-
role="alert"
|
|
2548
|
-
class="cds--form-requirement"
|
|
2549
|
-
aria-live="polite"
|
|
2550
|
-
>
|
|
2551
|
-
<ng-container *ngIf="!isTemplate(invalidText)">{{
|
|
2552
|
-
invalidText
|
|
2553
|
-
}}</ng-container>
|
|
2554
|
-
<ng-template
|
|
2555
|
-
*ngIf="isTemplate(invalidText)"
|
|
2556
|
-
[ngTemplateOutlet]="invalidText"
|
|
2557
|
-
></ng-template>
|
|
2558
|
-
</div>
|
|
2559
|
-
<div *ngIf="!invalid && warn" class="cds--form-requirement">
|
|
2560
|
-
<ng-container *ngIf="!isTemplate(warnText)">{{
|
|
2561
|
-
warnText
|
|
2562
|
-
}}</ng-container>
|
|
2563
|
-
<ng-template
|
|
2564
|
-
*ngIf="isTemplate(warnText)"
|
|
2565
|
-
[ngTemplateOutlet]="warnText"
|
|
2566
|
-
></ng-template>
|
|
2567
|
-
</div>
|
|
2568
|
-
</ng-template>
|
|
2569
|
-
`,
|
|
2570
|
-
styles: [
|
|
2571
|
-
`
|
|
2572
|
-
.cds--select--inline .cds--form__helper-text {
|
|
2573
|
-
order: 4;
|
|
2574
|
-
}
|
|
2575
|
-
|
|
2576
|
-
.cds--select--inline:not(.cds--select--invalid) .cds--form__helper-text {
|
|
2577
|
-
margin-top: 0;
|
|
2578
|
-
}
|
|
2579
|
-
.cds--select-input__wrapper {
|
|
2580
|
-
min-width: 16rem;
|
|
2581
|
-
}
|
|
2582
|
-
`
|
|
2583
|
-
],
|
|
2580
|
+
selector: 'ofe-select',
|
|
2581
|
+
templateUrl: 'select.component.html',
|
|
2582
|
+
styleUrls: ['./select.component.scss'],
|
|
2584
2583
|
providers: [
|
|
2585
2584
|
{
|
|
2586
2585
|
provide: NG_VALUE_ACCESSOR,
|
|
2587
|
-
useExisting:
|
|
2586
|
+
useExisting: SelectComponent,
|
|
2588
2587
|
multi: true
|
|
2589
2588
|
}
|
|
2590
2589
|
]
|
|
@@ -2627,9 +2626,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2627
2626
|
args: ['focusout']
|
|
2628
2627
|
}] } });
|
|
2629
2628
|
|
|
2630
|
-
/* eslint-disable @angular-eslint/component-class-suffix */
|
|
2631
2629
|
// Using similarity from AsyncPipe to avoid having to pipe |secure|async in HTML.
|
|
2632
|
-
// eslint-disable-next-line @angular-eslint/use-pipe-transform-interface
|
|
2633
2630
|
class SecurePipe {
|
|
2634
2631
|
constructor(_ref, sanitizer) {
|
|
2635
2632
|
this._ref = _ref;
|
|
@@ -2807,17 +2804,17 @@ class FileUploadComponent {
|
|
|
2807
2804
|
}
|
|
2808
2805
|
}
|
|
2809
2806
|
FileUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FileUploadComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
2810
|
-
FileUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FileUploadComponent, selector: "
|
|
2807
|
+
FileUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FileUploadComponent, selector: "ofe-file-upload", inputs: { dataSource: "dataSource" }, providers: [
|
|
2811
2808
|
{
|
|
2812
2809
|
provide: NG_VALUE_ACCESSOR,
|
|
2813
2810
|
useExisting: forwardRef(() => FileUploadComponent),
|
|
2814
2811
|
multi: true
|
|
2815
2812
|
}
|
|
2816
|
-
], ngImport: i0, template: "<lib-ngx-file-uploader\n [srcUrl]=\"pdfUrl\"\n [formEntry]=\"formEntryMode\"\n [(ngModel)]=\"fileUuid\"\n (_onClear)=\"clearValue()\"\n (uploadData)=\"onFileChange($event)\"\n>\n</lib-ngx-file-uploader>\n<div *ngIf=\"fileUuid\">\n <img\n *ngIf=\"!pdfUploaded\"\n class=\"img-responsive\"\n [src]=\"fileUuid | secure: this.dataSource.fetchFile\"\n alt=\"\"\n />\n</div>\n", styles: ["\n img {\n margin-left: auto;\n margin-right: auto;\n display: block;\n }\n "], components: [{ type: i1$2.NgxFileUploaderComponent, selector: "lib-ngx-file-uploader", inputs: ["singleFile", "formEntry", "srcUrl", "source"], outputs: ["fileChanged", "uploadData", "_onClear"] }], directives: [{ type:
|
|
2813
|
+
], ngImport: i0, template: "<lib-ngx-file-uploader\n [srcUrl]=\"pdfUrl\"\n [formEntry]=\"formEntryMode\"\n [(ngModel)]=\"fileUuid\"\n (_onClear)=\"clearValue()\"\n (uploadData)=\"onFileChange($event)\"\n>\n</lib-ngx-file-uploader>\n<div *ngIf=\"fileUuid\">\n <img\n *ngIf=\"!pdfUploaded\"\n class=\"img-responsive\"\n [src]=\"fileUuid | secure: this.dataSource.fetchFile\"\n alt=\"\"\n />\n</div>\n", styles: ["\n img {\n margin-left: auto;\n margin-right: auto;\n display: block;\n }\n "], components: [{ type: i1$2.NgxFileUploaderComponent, selector: "lib-ngx-file-uploader", inputs: ["singleFile", "formEntry", "srcUrl", "source"], outputs: ["fileChanged", "uploadData", "_onClear"] }], directives: [{ type: i19.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i19.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "secure": SecurePipe } });
|
|
2817
2814
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FileUploadComponent, decorators: [{
|
|
2818
2815
|
type: Component,
|
|
2819
2816
|
args: [{
|
|
2820
|
-
selector: '
|
|
2817
|
+
selector: 'ofe-file-upload',
|
|
2821
2818
|
templateUrl: 'file-upload.component.html',
|
|
2822
2819
|
providers: [
|
|
2823
2820
|
{
|
|
@@ -2845,14 +2842,14 @@ class RemoteSelectComponent {
|
|
|
2845
2842
|
this.renderer = renderer;
|
|
2846
2843
|
this.remoteOptionsLoading = false;
|
|
2847
2844
|
this.remoteOptionInput$ = new Subject();
|
|
2848
|
-
this.placeholder = 'Search...';
|
|
2849
|
-
this.disabled = false;
|
|
2850
|
-
this.theme = 'dark';
|
|
2851
2845
|
this.items = [];
|
|
2852
2846
|
this.value = [];
|
|
2853
2847
|
this.loading = false;
|
|
2854
2848
|
this.searchText = '';
|
|
2855
2849
|
this.notFoundMsg = 'match no found';
|
|
2850
|
+
this.placeholder = 'Search...';
|
|
2851
|
+
this.disabled = false;
|
|
2852
|
+
this.theme = 'dark';
|
|
2856
2853
|
this.done = new EventEmitter();
|
|
2857
2854
|
this.compareItems = (item, selected) => {
|
|
2858
2855
|
if (item.value && selected.value) {
|
|
@@ -2933,17 +2930,17 @@ class RemoteSelectComponent {
|
|
|
2933
2930
|
}
|
|
2934
2931
|
}
|
|
2935
2932
|
RemoteSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RemoteSelectComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
2936
|
-
RemoteSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: RemoteSelectComponent, selector: "
|
|
2933
|
+
RemoteSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: RemoteSelectComponent, selector: "ofe-remote-select", inputs: { placeholder: "placeholder", componentID: "componentID", disabled: "disabled", theme: "theme", dataSource: "dataSource" }, outputs: { done: "done" }, providers: [
|
|
2937
2934
|
{
|
|
2938
2935
|
provide: NG_VALUE_ACCESSOR,
|
|
2939
2936
|
useExisting: forwardRef(() => RemoteSelectComponent),
|
|
2940
2937
|
multi: true
|
|
2941
2938
|
}
|
|
2942
|
-
], ngImport: i0, template: "<div>\n <ng-select\n [ngClass]=\"{ 'afe-custom': theme === 'light' }\"\n [disabled]=\"disabled\"\n [items]=\"remoteOptions$ | async\"\n bindLabel=\"label\"\n bindValue=\"value\"\n [multiple]=\"false\"\n [hideSelected]=\"true\"\n [compareWith]=\"compareItems\"\n [trackByFn]=\"trackByFn\"\n [loading]=\"loading\"\n typeToSearchText=\"Please enter 2 or more characters\"\n [typeahead]=\"remoteOptionInput$\"\n [(ngModel)]=\"selectedRemoteOptions\"\n (ngModelChange)=\"selected($event)\"\n >\n </ng-select>\n</div>\n", components: [{ type: i1$3.NgSelectComponent, selector: "ng-select", inputs: ["markFirst", "dropdownPosition", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "bufferAmount", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "bindLabel", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "virtualScroll", "openOnEnter", "appendTo", "bindValue", "appearance", "maxSelectedItems", "groupBy", "groupValue", "tabIndex", "typeahead"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type:
|
|
2939
|
+
], ngImport: i0, template: "<div>\n <ng-select\n [ngClass]=\"{ 'afe-custom': theme === 'light' }\"\n [disabled]=\"disabled\"\n [items]=\"remoteOptions$ | async\"\n bindLabel=\"label\"\n bindValue=\"value\"\n [multiple]=\"false\"\n [hideSelected]=\"true\"\n [compareWith]=\"compareItems\"\n [trackByFn]=\"trackByFn\"\n [loading]=\"loading\"\n typeToSearchText=\"Please enter 2 or more characters\"\n [typeahead]=\"remoteOptionInput$\"\n [(ngModel)]=\"selectedRemoteOptions\"\n (ngModelChange)=\"selected($event)\"\n >\n </ng-select>\n</div>\n", components: [{ type: i1$3.NgSelectComponent, selector: "ng-select", inputs: ["markFirst", "dropdownPosition", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "bufferAmount", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "bindLabel", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "virtualScroll", "openOnEnter", "appendTo", "bindValue", "appearance", "maxSelectedItems", "groupBy", "groupValue", "tabIndex", "typeahead"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i19.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i19.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "async": i1.AsyncPipe } });
|
|
2943
2940
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RemoteSelectComponent, decorators: [{
|
|
2944
2941
|
type: Component,
|
|
2945
2942
|
args: [{
|
|
2946
|
-
selector: '
|
|
2943
|
+
selector: 'ofe-remote-select',
|
|
2947
2944
|
templateUrl: 'remote-select.component.html',
|
|
2948
2945
|
providers: [
|
|
2949
2946
|
{
|
|
@@ -2967,65 +2964,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
2967
2964
|
type: Input
|
|
2968
2965
|
}] } });
|
|
2969
2966
|
|
|
2970
|
-
/**
|
|
2971
|
-
* date-time-picker-intl.service
|
|
2972
|
-
*/
|
|
2973
|
-
class OwlDateTimeIntl {
|
|
2974
|
-
constructor() {
|
|
2975
|
-
/**
|
|
2976
|
-
* Stream that emits whenever the labels here are changed. Use this to notify
|
|
2977
|
-
* components if the labels have changed after initialization.
|
|
2978
|
-
*/
|
|
2979
|
-
this.changes = new Subject();
|
|
2980
|
-
/** A label for the up second button (used by screen readers). */
|
|
2981
|
-
this.upSecondLabel = 'Add a second';
|
|
2982
|
-
/** A label for the down second button (used by screen readers). */
|
|
2983
|
-
this.downSecondLabel = 'Minus a second';
|
|
2984
|
-
/** A label for the up minute button (used by screen readers). */
|
|
2985
|
-
this.upMinuteLabel = 'Add a minute';
|
|
2986
|
-
/** A label for the down minute button (used by screen readers). */
|
|
2987
|
-
this.downMinuteLabel = 'Minus a minute';
|
|
2988
|
-
/** A label for the up hour button (used by screen readers). */
|
|
2989
|
-
this.upHourLabel = 'Add a hour';
|
|
2990
|
-
/** A label for the down hour button (used by screen readers). */
|
|
2991
|
-
this.downHourLabel = 'Minus a hour';
|
|
2992
|
-
/** A label for the previous month button (used by screen readers). */
|
|
2993
|
-
this.prevMonthLabel = 'Previous month';
|
|
2994
|
-
/** A label for the next month button (used by screen readers). */
|
|
2995
|
-
this.nextMonthLabel = 'Next month';
|
|
2996
|
-
/** A label for the previous year button (used by screen readers). */
|
|
2997
|
-
this.prevYearLabel = 'Previous year';
|
|
2998
|
-
/** A label for the next year button (used by screen readers). */
|
|
2999
|
-
this.nextYearLabel = 'Next year';
|
|
3000
|
-
/** A label for the previous multi-year button (used by screen readers). */
|
|
3001
|
-
this.prevMultiYearLabel = 'Previous 21 years';
|
|
3002
|
-
/** A label for the next multi-year button (used by screen readers). */
|
|
3003
|
-
this.nextMultiYearLabel = 'Next 21 years';
|
|
3004
|
-
/** A label for the 'switch to month view' button (used by screen readers). */
|
|
3005
|
-
this.switchToMonthViewLabel = 'Change to month view';
|
|
3006
|
-
/** A label for the 'switch to year view' button (used by screen readers). */
|
|
3007
|
-
this.switchToMultiYearViewLabel = 'Choose month and year';
|
|
3008
|
-
/** A label for the cancel button */
|
|
3009
|
-
this.cancelBtnLabel = 'Cancel';
|
|
3010
|
-
/** A label for the set button */
|
|
3011
|
-
this.setBtnLabel = 'Set';
|
|
3012
|
-
/** A label for the range 'from' in picker info */
|
|
3013
|
-
this.rangeFromLabel = 'From';
|
|
3014
|
-
/** A label for the range 'to' in picker info */
|
|
3015
|
-
this.rangeToLabel = 'To';
|
|
3016
|
-
/** A label for the hour12 button (AM) */
|
|
3017
|
-
this.hour12AMLabel = 'AM';
|
|
3018
|
-
/** A label for the hour12 button (PM) */
|
|
3019
|
-
this.hour12PMLabel = 'PM';
|
|
3020
|
-
}
|
|
3021
|
-
}
|
|
3022
|
-
OwlDateTimeIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlDateTimeIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3023
|
-
OwlDateTimeIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlDateTimeIntl, providedIn: 'root' });
|
|
3024
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlDateTimeIntl, decorators: [{
|
|
3025
|
-
type: Injectable,
|
|
3026
|
-
args: [{ providedIn: 'root' }]
|
|
3027
|
-
}] });
|
|
3028
|
-
|
|
3029
2967
|
/**
|
|
3030
2968
|
* date-time-adapter.class
|
|
3031
2969
|
*/
|
|
@@ -3138,13 +3076,71 @@ class DateTimeAdapter {
|
|
|
3138
3076
|
}
|
|
3139
3077
|
}
|
|
3140
3078
|
|
|
3079
|
+
/**
|
|
3080
|
+
* date-time-picker-intl.service
|
|
3081
|
+
*/
|
|
3082
|
+
class OwlDateTimeIntl {
|
|
3083
|
+
constructor() {
|
|
3084
|
+
/**
|
|
3085
|
+
* Stream that emits whenever the labels here are changed. Use this to notify
|
|
3086
|
+
* components if the labels have changed after initialization.
|
|
3087
|
+
*/
|
|
3088
|
+
this.changes = new Subject();
|
|
3089
|
+
/** A label for the up second button (used by screen readers). */
|
|
3090
|
+
this.upSecondLabel = 'Add a second';
|
|
3091
|
+
/** A label for the down second button (used by screen readers). */
|
|
3092
|
+
this.downSecondLabel = 'Minus a second';
|
|
3093
|
+
/** A label for the up minute button (used by screen readers). */
|
|
3094
|
+
this.upMinuteLabel = 'Add a minute';
|
|
3095
|
+
/** A label for the down minute button (used by screen readers). */
|
|
3096
|
+
this.downMinuteLabel = 'Minus a minute';
|
|
3097
|
+
/** A label for the up hour button (used by screen readers). */
|
|
3098
|
+
this.upHourLabel = 'Add a hour';
|
|
3099
|
+
/** A label for the down hour button (used by screen readers). */
|
|
3100
|
+
this.downHourLabel = 'Minus a hour';
|
|
3101
|
+
/** A label for the previous month button (used by screen readers). */
|
|
3102
|
+
this.prevMonthLabel = 'Previous month';
|
|
3103
|
+
/** A label for the next month button (used by screen readers). */
|
|
3104
|
+
this.nextMonthLabel = 'Next month';
|
|
3105
|
+
/** A label for the previous year button (used by screen readers). */
|
|
3106
|
+
this.prevYearLabel = 'Previous year';
|
|
3107
|
+
/** A label for the next year button (used by screen readers). */
|
|
3108
|
+
this.nextYearLabel = 'Next year';
|
|
3109
|
+
/** A label for the previous multi-year button (used by screen readers). */
|
|
3110
|
+
this.prevMultiYearLabel = 'Previous 21 years';
|
|
3111
|
+
/** A label for the next multi-year button (used by screen readers). */
|
|
3112
|
+
this.nextMultiYearLabel = 'Next 21 years';
|
|
3113
|
+
/** A label for the 'switch to month view' button (used by screen readers). */
|
|
3114
|
+
this.switchToMonthViewLabel = 'Change to month view';
|
|
3115
|
+
/** A label for the 'switch to year view' button (used by screen readers). */
|
|
3116
|
+
this.switchToMultiYearViewLabel = 'Choose month and year';
|
|
3117
|
+
/** A label for the cancel button */
|
|
3118
|
+
this.cancelBtnLabel = 'Cancel';
|
|
3119
|
+
/** A label for the set button */
|
|
3120
|
+
this.setBtnLabel = 'Set';
|
|
3121
|
+
/** A label for the range 'from' in picker info */
|
|
3122
|
+
this.rangeFromLabel = 'From';
|
|
3123
|
+
/** A label for the range 'to' in picker info */
|
|
3124
|
+
this.rangeToLabel = 'To';
|
|
3125
|
+
/** A label for the hour12 button (AM) */
|
|
3126
|
+
this.hour12AMLabel = 'AM';
|
|
3127
|
+
/** A label for the hour12 button (PM) */
|
|
3128
|
+
this.hour12PMLabel = 'PM';
|
|
3129
|
+
}
|
|
3130
|
+
}
|
|
3131
|
+
OwlDateTimeIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlDateTimeIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3132
|
+
OwlDateTimeIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlDateTimeIntl, providedIn: 'root' });
|
|
3133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlDateTimeIntl, decorators: [{
|
|
3134
|
+
type: Injectable,
|
|
3135
|
+
args: [{ providedIn: 'root' }]
|
|
3136
|
+
}] });
|
|
3137
|
+
|
|
3141
3138
|
/**
|
|
3142
3139
|
* date-time-format.class
|
|
3143
3140
|
*/
|
|
3144
3141
|
/** InjectionToken for date time picker that can be used to override default format. */
|
|
3145
3142
|
const OWL_DATE_TIME_FORMATS = new InjectionToken('OWL_DATE_TIME_FORMATS');
|
|
3146
3143
|
|
|
3147
|
-
/* eslint-disable @angular-eslint/component-class-suffix, @angular-eslint/no-host-metadata-property */
|
|
3148
3144
|
class CalendarCell {
|
|
3149
3145
|
constructor(value, displayValue, ariaLabel, enabled, out = false, cellClass = '') {
|
|
3150
3146
|
this.value = value;
|
|
@@ -3159,6 +3155,7 @@ class OwlCalendarBodyComponent {
|
|
|
3159
3155
|
constructor(elmRef, ngZone) {
|
|
3160
3156
|
this.elmRef = elmRef;
|
|
3161
3157
|
this.ngZone = ngZone;
|
|
3158
|
+
this.owlDTCalendarBodyClass = true;
|
|
3162
3159
|
/**
|
|
3163
3160
|
* The cell number of the active cell in the table.
|
|
3164
3161
|
*/
|
|
@@ -3174,10 +3171,7 @@ class OwlCalendarBodyComponent {
|
|
|
3174
3171
|
/**
|
|
3175
3172
|
* Emit when a calendar cell is selected
|
|
3176
3173
|
* */
|
|
3177
|
-
this.
|
|
3178
|
-
}
|
|
3179
|
-
get owlDTCalendarBodyClass() {
|
|
3180
|
-
return true;
|
|
3174
|
+
this.cellSelected = new EventEmitter();
|
|
3181
3175
|
}
|
|
3182
3176
|
get isInSingleMode() {
|
|
3183
3177
|
return this.selectMode === 'single';
|
|
@@ -3187,9 +3181,8 @@ class OwlCalendarBodyComponent {
|
|
|
3187
3181
|
this.selectMode === 'rangeFrom' ||
|
|
3188
3182
|
this.selectMode === 'rangeTo');
|
|
3189
3183
|
}
|
|
3190
|
-
ngOnInit() { }
|
|
3191
3184
|
selectCell(cell) {
|
|
3192
|
-
this.
|
|
3185
|
+
this.cellSelected.emit(cell);
|
|
3193
3186
|
}
|
|
3194
3187
|
isActiveCell(rowIndex, colIndex) {
|
|
3195
3188
|
const cellNumber = rowIndex * this.numCols + colIndex;
|
|
@@ -3261,21 +3254,21 @@ class OwlCalendarBodyComponent {
|
|
|
3261
3254
|
}
|
|
3262
3255
|
}
|
|
3263
3256
|
OwlCalendarBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlCalendarBodyComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
3264
|
-
OwlCalendarBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlCalendarBodyComponent, selector: "[owl-date-time-calendar-body]", inputs: { activeCell: "activeCell", rows: "rows", numCols: "numCols", cellRatio: "cellRatio", todayValue: "todayValue", selectedValues: "selectedValues", selectMode: "selectMode" }, outputs: {
|
|
3257
|
+
OwlCalendarBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlCalendarBodyComponent, selector: "[ofe-owl-date-time-calendar-body]", inputs: { activeCell: "activeCell", rows: "rows", numCols: "numCols", cellRatio: "cellRatio", todayValue: "todayValue", selectedValues: "selectedValues", selectMode: "selectMode" }, outputs: { cellSelected: "cellSelected" }, host: { properties: { "class.owl-dt-calendar-body": "this.owlDTCalendarBodyClass" } }, exportAs: ["owlDateTimeCalendarBody"], ngImport: i0, template: "<tr *ngFor=\"let row of rows; let rowIndex = index\" role=\"row\">\n <td\n *ngFor=\"let item of row; let colIndex = index\"\n class=\"owl-dt-calendar-cell {{ item.cellClass }}\"\n [tabindex]=\"isActiveCell(rowIndex, colIndex) ? 0 : -1\"\n [class.owl-dt-calendar-cell-active]=\"isActiveCell(rowIndex, colIndex)\"\n [class.owl-dt-calendar-cell-disabled]=\"!item.enabled\"\n [class.owl-dt-calendar-cell-in-range]=\"isInRange(item.value)\"\n [class.owl-dt-calendar-cell-range-from]=\"isRangeFrom(item.value)\"\n [class.owl-dt-calendar-cell-range-to]=\"isRangeTo(item.value)\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-disabled]=\"!item.enabled || null\"\n [style.width.%]=\"100 / numCols\"\n [style.paddingTop.%]=\"(50 * cellRatio) / numCols\"\n [style.paddingBottom.%]=\"(50 * cellRatio) / numCols\"\n (click)=\"selectCell(item)\"\n >\n <span\n class=\"owl-dt-calendar-cell-content\"\n [ngClass]=\"{\n 'owl-dt-calendar-cell-out': item.out,\n 'owl-dt-calendar-cell-today': item.value === todayValue,\n 'owl-dt-calendar-cell-selected': isSelected(item.value)\n }\"\n >\n {{ item.displayValue }}\n </span>\n </td>\n</tr>\n", styles: [""], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3265
3258
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlCalendarBodyComponent, decorators: [{
|
|
3266
3259
|
type: Component,
|
|
3267
3260
|
args: [{
|
|
3268
|
-
|
|
3261
|
+
/* eslint-disable-next-line @angular-eslint/component-selector */
|
|
3262
|
+
selector: '[ofe-owl-date-time-calendar-body]',
|
|
3269
3263
|
exportAs: 'owlDateTimeCalendarBody',
|
|
3270
3264
|
templateUrl: './calendar-body.component.html',
|
|
3271
3265
|
styleUrls: ['./calendar-body.component.scss'],
|
|
3272
|
-
host: {
|
|
3273
|
-
'[class.owl-dt-calendar-body]': 'owlDTCalendarBodyClass'
|
|
3274
|
-
},
|
|
3275
|
-
preserveWhitespaces: false,
|
|
3276
3266
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
3277
3267
|
}]
|
|
3278
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: {
|
|
3268
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { owlDTCalendarBodyClass: [{
|
|
3269
|
+
type: HostBinding,
|
|
3270
|
+
args: ['class.owl-dt-calendar-body']
|
|
3271
|
+
}], activeCell: [{
|
|
3279
3272
|
type: Input
|
|
3280
3273
|
}], rows: [{
|
|
3281
3274
|
type: Input
|
|
@@ -3289,11 +3282,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
3289
3282
|
type: Input
|
|
3290
3283
|
}], selectMode: [{
|
|
3291
3284
|
type: Input
|
|
3292
|
-
}],
|
|
3285
|
+
}], cellSelected: [{
|
|
3293
3286
|
type: Output
|
|
3294
3287
|
}] } });
|
|
3295
3288
|
|
|
3296
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
3297
3289
|
const DAYS_PER_WEEK = 7;
|
|
3298
3290
|
const WEEKS_PER_VIEW = 6;
|
|
3299
3291
|
class OwlMonthViewComponent {
|
|
@@ -3333,6 +3325,9 @@ class OwlMonthViewComponent {
|
|
|
3333
3325
|
/** Emits when any date is activated. */
|
|
3334
3326
|
this.pickerMomentChange = new EventEmitter();
|
|
3335
3327
|
}
|
|
3328
|
+
get owlDTCalendarView() {
|
|
3329
|
+
return true;
|
|
3330
|
+
}
|
|
3336
3331
|
get firstDayOfWeek() {
|
|
3337
3332
|
return this._firstDayOfWeek;
|
|
3338
3333
|
}
|
|
@@ -3443,9 +3438,6 @@ class OwlMonthViewComponent {
|
|
|
3443
3438
|
this.selectMode === 'rangeFrom' ||
|
|
3444
3439
|
this.selectMode === 'rangeTo');
|
|
3445
3440
|
}
|
|
3446
|
-
get owlDTCalendarView() {
|
|
3447
|
-
return true;
|
|
3448
|
-
}
|
|
3449
3441
|
ngOnInit() {
|
|
3450
3442
|
this.generateWeekDays();
|
|
3451
3443
|
this.localeSub = this.dateTimeAdapter.localeChanges.subscribe(() => {
|
|
@@ -3679,18 +3671,14 @@ class OwlMonthViewComponent {
|
|
|
3679
3671
|
}
|
|
3680
3672
|
}
|
|
3681
3673
|
OwlMonthViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlMonthViewComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DateTimeAdapter, optional: true }, { token: OWL_DATE_TIME_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
3682
|
-
OwlMonthViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlMonthViewComponent, selector: "owl-date-time-month-view", inputs: { hideOtherMonths: "hideOtherMonths", firstDayOfWeek: "firstDayOfWeek", selectMode: "selectMode", selected: "selected", selecteds: "selecteds", pickerMoment: "pickerMoment", dateFilter: "dateFilter", minDate: "minDate", maxDate: "maxDate" }, outputs: { selectedChange: "selectedChange", userSelection: "userSelection", pickerMomentChange: "pickerMomentChange" }, host: { properties: { "class.owl-dt-calendar-view": "owlDTCalendarView" } }, viewQueries: [{ propertyName: "calendarBodyElm", first: true, predicate: OwlCalendarBodyComponent, descendants: true, static: true }], exportAs: ["owlYearView"], ngImport: i0, template: "<table\n class=\"owl-dt-calendar-table owl-dt-calendar-month-table\"\n [class.owl-dt-calendar-only-current-month]=\"hideOtherMonths\"\n>\n <thead class=\"owl-dt-calendar-header\">\n <tr class=\"owl-dt-weekdays\">\n <th\n *ngFor=\"let weekday of weekdays\"\n [attr.aria-label]=\"weekday.long\"\n class=\"owl-dt-weekday\"\n scope=\"col\"\n >\n <span>{{ weekday.short }}</span>\n </th>\n </tr>\n <tr>\n <th\n class=\"owl-dt-calendar-table-divider\"\n aria-hidden=\"true\"\n colspan=\"7\"\n ></th>\n </tr>\n </thead>\n <tbody\n owl-date-time-calendar-body\n role=\"grid\"\n [rows]=\"days\"\n [todayValue]=\"todayDate\"\n [selectedValues]=\"selectedDates\"\n [selectMode]=\"selectMode\"\n [activeCell]=\"activeCell\"\n (keydown)=\"handleCalendarKeydown($event)\"\n (
|
|
3674
|
+
OwlMonthViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlMonthViewComponent, selector: "ofe-owl-date-time-month-view", inputs: { hideOtherMonths: "hideOtherMonths", firstDayOfWeek: "firstDayOfWeek", selectMode: "selectMode", selected: "selected", selecteds: "selecteds", pickerMoment: "pickerMoment", dateFilter: "dateFilter", minDate: "minDate", maxDate: "maxDate" }, outputs: { selectedChange: "selectedChange", userSelection: "userSelection", pickerMomentChange: "pickerMomentChange" }, host: { properties: { "class.owl-dt-calendar-view": "this.owlDTCalendarView" } }, viewQueries: [{ propertyName: "calendarBodyElm", first: true, predicate: OwlCalendarBodyComponent, descendants: true, static: true }], exportAs: ["owlYearView"], ngImport: i0, template: "<table\n class=\"owl-dt-calendar-table owl-dt-calendar-month-table\"\n [class.owl-dt-calendar-only-current-month]=\"hideOtherMonths\"\n>\n <thead class=\"owl-dt-calendar-header\">\n <tr class=\"owl-dt-weekdays\">\n <th\n *ngFor=\"let weekday of weekdays\"\n [attr.aria-label]=\"weekday.long\"\n class=\"owl-dt-weekday\"\n scope=\"col\"\n >\n <span>{{ weekday.short }}</span>\n </th>\n </tr>\n <tr>\n <th\n class=\"owl-dt-calendar-table-divider\"\n aria-hidden=\"true\"\n colspan=\"7\"\n ></th>\n </tr>\n </thead>\n <tbody\n ofe-owl-date-time-calendar-body\n role=\"grid\"\n [rows]=\"days\"\n [todayValue]=\"todayDate\"\n [selectedValues]=\"selectedDates\"\n [selectMode]=\"selectMode\"\n [activeCell]=\"activeCell\"\n (keydown)=\"handleCalendarKeydown($event)\"\n (cellSelected)=\"selectCalendarCell($event)\"\n ></tbody>\n</table>\n", styles: [""], components: [{ type: OwlCalendarBodyComponent, selector: "[ofe-owl-date-time-calendar-body]", inputs: ["activeCell", "rows", "numCols", "cellRatio", "todayValue", "selectedValues", "selectMode"], outputs: ["cellSelected"], exportAs: ["owlDateTimeCalendarBody"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3683
3675
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlMonthViewComponent, decorators: [{
|
|
3684
3676
|
type: Component,
|
|
3685
3677
|
args: [{
|
|
3686
|
-
selector: 'owl-date-time-month-view',
|
|
3678
|
+
selector: 'ofe-owl-date-time-month-view',
|
|
3687
3679
|
exportAs: 'owlYearView',
|
|
3688
3680
|
templateUrl: './calendar-month-view.component.html',
|
|
3689
3681
|
styleUrls: ['./calendar-month-view.component.scss'],
|
|
3690
|
-
host: {
|
|
3691
|
-
'[class.owl-dt-calendar-view]': 'owlDTCalendarView'
|
|
3692
|
-
},
|
|
3693
|
-
preserveWhitespaces: false,
|
|
3694
3682
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
3695
3683
|
}]
|
|
3696
3684
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: DateTimeAdapter, decorators: [{
|
|
@@ -3700,7 +3688,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
3700
3688
|
}, {
|
|
3701
3689
|
type: Inject,
|
|
3702
3690
|
args: [OWL_DATE_TIME_FORMATS]
|
|
3703
|
-
}] }]; }, propDecorators: {
|
|
3691
|
+
}] }]; }, propDecorators: { owlDTCalendarView: [{
|
|
3692
|
+
type: HostBinding,
|
|
3693
|
+
args: ['class.owl-dt-calendar-view']
|
|
3694
|
+
}], hideOtherMonths: [{
|
|
3704
3695
|
type: Input
|
|
3705
3696
|
}], firstDayOfWeek: [{
|
|
3706
3697
|
type: Input
|
|
@@ -3729,7 +3720,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
3729
3720
|
args: [OwlCalendarBodyComponent, { static: true }]
|
|
3730
3721
|
}] } });
|
|
3731
3722
|
|
|
3732
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
3733
3723
|
const MONTHS_PER_YEAR = 12;
|
|
3734
3724
|
const MONTHS_PER_ROW = 3;
|
|
3735
3725
|
class OwlYearViewComponent {
|
|
@@ -3752,7 +3742,7 @@ class OwlYearViewComponent {
|
|
|
3752
3742
|
/**
|
|
3753
3743
|
* Callback to invoke when a new month is selected
|
|
3754
3744
|
* */
|
|
3755
|
-
this.
|
|
3745
|
+
this.monthChange = new EventEmitter();
|
|
3756
3746
|
/**
|
|
3757
3747
|
* Emits the selected year. This doesn't imply a change on the selected date
|
|
3758
3748
|
* */
|
|
@@ -3763,6 +3753,9 @@ class OwlYearViewComponent {
|
|
|
3763
3753
|
this.keyboardEnter = new EventEmitter();
|
|
3764
3754
|
this.monthNames = this.dateTimeAdapter.getMonthNames('short');
|
|
3765
3755
|
}
|
|
3756
|
+
get owlDTCalendarView() {
|
|
3757
|
+
return true;
|
|
3758
|
+
}
|
|
3766
3759
|
get selectMode() {
|
|
3767
3760
|
return this._selectMode;
|
|
3768
3761
|
}
|
|
@@ -3848,9 +3841,6 @@ class OwlYearViewComponent {
|
|
|
3848
3841
|
this.selectMode === 'rangeFrom' ||
|
|
3849
3842
|
this.selectMode === 'rangeTo');
|
|
3850
3843
|
}
|
|
3851
|
-
get owlDTCalendarView() {
|
|
3852
|
-
return true;
|
|
3853
|
-
}
|
|
3854
3844
|
ngOnInit() {
|
|
3855
3845
|
this.localeSub = this.dateTimeAdapter.localeChanges.subscribe(() => {
|
|
3856
3846
|
this.generateMonthList();
|
|
@@ -3878,7 +3868,7 @@ class OwlYearViewComponent {
|
|
|
3878
3868
|
this.monthSelected.emit(firstDateOfMonth);
|
|
3879
3869
|
const daysInMonth = this.dateTimeAdapter.getNumDaysInMonth(firstDateOfMonth);
|
|
3880
3870
|
const result = this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment), month, Math.min(daysInMonth, this.dateTimeAdapter.getDate(this.pickerMoment)), this.dateTimeAdapter.getHours(this.pickerMoment), this.dateTimeAdapter.getMinutes(this.pickerMoment), this.dateTimeAdapter.getSeconds(this.pickerMoment));
|
|
3881
|
-
this.
|
|
3871
|
+
this.monthChange.emit(result);
|
|
3882
3872
|
}
|
|
3883
3873
|
/**
|
|
3884
3874
|
* Handle keydown event on calendar body
|
|
@@ -4047,18 +4037,14 @@ class OwlYearViewComponent {
|
|
|
4047
4037
|
}
|
|
4048
4038
|
}
|
|
4049
4039
|
OwlYearViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlYearViewComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DateTimeAdapter, optional: true }, { token: OWL_DATE_TIME_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
4050
|
-
OwlYearViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlYearViewComponent, selector: "owl-date-time-year-view", inputs: { selectMode: "selectMode", selected: "selected", selecteds: "selecteds", pickerMoment: "pickerMoment", dateFilter: "dateFilter", minDate: "minDate", maxDate: "maxDate" }, outputs: {
|
|
4040
|
+
OwlYearViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlYearViewComponent, selector: "ofe-owl-date-time-year-view", inputs: { selectMode: "selectMode", selected: "selected", selecteds: "selecteds", pickerMoment: "pickerMoment", dateFilter: "dateFilter", minDate: "minDate", maxDate: "maxDate" }, outputs: { monthChange: "monthChange", monthSelected: "monthSelected", pickerMomentChange: "pickerMomentChange", keyboardEnter: "keyboardEnter" }, host: { properties: { "class.owl-dt-calendar-view": "this.owlDTCalendarView" } }, viewQueries: [{ propertyName: "calendarBodyElm", first: true, predicate: OwlCalendarBodyComponent, descendants: true, static: true }], exportAs: ["owlMonthView"], ngImport: i0, template: "<table class=\"owl-dt-calendar-table owl-dt-calendar-year-table\">\n <thead class=\"owl-dt-calendar-header\">\n <tr>\n <th\n class=\"owl-dt-calendar-table-divider\"\n aria-hidden=\"true\"\n colspan=\"3\"\n ></th>\n </tr>\n </thead>\n <tbody\n ofe-owl-date-time-calendar-body\n role=\"grid\"\n [rows]=\"months\"\n [numCols]=\"3\"\n [cellRatio]=\"3 / 7\"\n [activeCell]=\"activeCell\"\n [todayValue]=\"todayMonth\"\n [selectedValues]=\"selectedMonths\"\n [selectMode]=\"selectMode\"\n (keydown)=\"handleCalendarKeydown($event)\"\n (cellSelected)=\"selectCalendarCell($event)\"\n ></tbody>\n</table>\n", styles: [""], components: [{ type: OwlCalendarBodyComponent, selector: "[ofe-owl-date-time-calendar-body]", inputs: ["activeCell", "rows", "numCols", "cellRatio", "todayValue", "selectedValues", "selectMode"], outputs: ["cellSelected"], exportAs: ["owlDateTimeCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4051
4041
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlYearViewComponent, decorators: [{
|
|
4052
4042
|
type: Component,
|
|
4053
4043
|
args: [{
|
|
4054
|
-
selector: 'owl-date-time-year-view',
|
|
4044
|
+
selector: 'ofe-owl-date-time-year-view',
|
|
4055
4045
|
exportAs: 'owlMonthView',
|
|
4056
4046
|
templateUrl: './calendar-year-view.component.html',
|
|
4057
4047
|
styleUrls: ['./calendar-year-view.component.scss'],
|
|
4058
|
-
host: {
|
|
4059
|
-
'[class.owl-dt-calendar-view]': 'owlDTCalendarView'
|
|
4060
|
-
},
|
|
4061
|
-
preserveWhitespaces: false,
|
|
4062
4048
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
4063
4049
|
}]
|
|
4064
4050
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: DateTimeAdapter, decorators: [{
|
|
@@ -4068,7 +4054,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4068
4054
|
}, {
|
|
4069
4055
|
type: Inject,
|
|
4070
4056
|
args: [OWL_DATE_TIME_FORMATS]
|
|
4071
|
-
}] }]; }, propDecorators: {
|
|
4057
|
+
}] }]; }, propDecorators: { owlDTCalendarView: [{
|
|
4058
|
+
type: HostBinding,
|
|
4059
|
+
args: ['class.owl-dt-calendar-view']
|
|
4060
|
+
}], selectMode: [{
|
|
4072
4061
|
type: Input
|
|
4073
4062
|
}], selected: [{
|
|
4074
4063
|
type: Input
|
|
@@ -4082,7 +4071,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4082
4071
|
type: Input
|
|
4083
4072
|
}], maxDate: [{
|
|
4084
4073
|
type: Input
|
|
4085
|
-
}],
|
|
4074
|
+
}], monthChange: [{
|
|
4086
4075
|
type: Output
|
|
4087
4076
|
}], monthSelected: [{
|
|
4088
4077
|
type: Output
|
|
@@ -4095,7 +4084,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4095
4084
|
args: [OwlCalendarBodyComponent, { static: true }]
|
|
4096
4085
|
}] } });
|
|
4097
4086
|
|
|
4098
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
4099
4087
|
const YEARS_PER_ROW = 3;
|
|
4100
4088
|
const YEAR_ROWS = 7;
|
|
4101
4089
|
class OwlMultiYearViewComponent {
|
|
@@ -4112,7 +4100,7 @@ class OwlMultiYearViewComponent {
|
|
|
4112
4100
|
/**
|
|
4113
4101
|
* Callback to invoke when a new month is selected
|
|
4114
4102
|
* */
|
|
4115
|
-
this.
|
|
4103
|
+
this.monthChange = new EventEmitter();
|
|
4116
4104
|
/**
|
|
4117
4105
|
* Emits the selected year. This doesn't imply a change on the selected date
|
|
4118
4106
|
* */
|
|
@@ -4122,6 +4110,12 @@ class OwlMultiYearViewComponent {
|
|
|
4122
4110
|
/** Emits when use keyboard enter to select a calendar cell */
|
|
4123
4111
|
this.keyboardEnter = new EventEmitter();
|
|
4124
4112
|
}
|
|
4113
|
+
get owlDTCalendarView() {
|
|
4114
|
+
return true;
|
|
4115
|
+
}
|
|
4116
|
+
get owlDTCalendarMultiYearView() {
|
|
4117
|
+
return true;
|
|
4118
|
+
}
|
|
4125
4119
|
get selectMode() {
|
|
4126
4120
|
return this._selectMode;
|
|
4127
4121
|
}
|
|
@@ -4229,13 +4223,6 @@ class OwlMultiYearViewComponent {
|
|
|
4229
4223
|
get nextButtonLabel() {
|
|
4230
4224
|
return this.pickerIntl.nextMultiYearLabel;
|
|
4231
4225
|
}
|
|
4232
|
-
get owlDTCalendarView() {
|
|
4233
|
-
return true;
|
|
4234
|
-
}
|
|
4235
|
-
get owlDTCalendarMultiYearView() {
|
|
4236
|
-
return true;
|
|
4237
|
-
}
|
|
4238
|
-
ngOnInit() { }
|
|
4239
4226
|
ngAfterContentInit() {
|
|
4240
4227
|
this._todayYear = this.dateTimeAdapter.getYear(this.dateTimeAdapter.now());
|
|
4241
4228
|
this.generateYearList();
|
|
@@ -4252,7 +4239,7 @@ class OwlMultiYearViewComponent {
|
|
|
4252
4239
|
const firstDateOfMonth = this.dateTimeAdapter.createDate(year, this.dateTimeAdapter.getMonth(this.pickerMoment), 1);
|
|
4253
4240
|
const daysInMonth = this.dateTimeAdapter.getNumDaysInMonth(firstDateOfMonth);
|
|
4254
4241
|
const selected = this.dateTimeAdapter.createDate(year, this.dateTimeAdapter.getMonth(this.pickerMoment), Math.min(daysInMonth, this.dateTimeAdapter.getDate(this.pickerMoment)), this.dateTimeAdapter.getHours(this.pickerMoment), this.dateTimeAdapter.getMinutes(this.pickerMoment), this.dateTimeAdapter.getSeconds(this.pickerMoment));
|
|
4255
|
-
this.
|
|
4242
|
+
this.monthChange.emit(selected);
|
|
4256
4243
|
}
|
|
4257
4244
|
/**
|
|
4258
4245
|
* Generate the previous year list
|
|
@@ -4422,23 +4409,24 @@ class OwlMultiYearViewComponent {
|
|
|
4422
4409
|
}
|
|
4423
4410
|
}
|
|
4424
4411
|
OwlMultiYearViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlMultiYearViewComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: OwlDateTimeIntl }, { token: DateTimeAdapter, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
4425
|
-
OwlMultiYearViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlMultiYearViewComponent, selector: "owl-date-time-multi-year-view", inputs: { selectMode: "selectMode", selected: "selected", selecteds: "selecteds", pickerMoment: "pickerMoment", dateFilter: "dateFilter", minDate: "minDate", maxDate: "maxDate" }, outputs: {
|
|
4412
|
+
OwlMultiYearViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlMultiYearViewComponent, selector: "ofe-owl-date-time-multi-year-view", inputs: { selectMode: "selectMode", selected: "selected", selecteds: "selecteds", pickerMoment: "pickerMoment", dateFilter: "dateFilter", minDate: "minDate", maxDate: "maxDate" }, outputs: { monthChange: "monthChange", yearSelected: "yearSelected", pickerMomentChange: "pickerMomentChange", keyboardEnter: "keyboardEnter" }, host: { properties: { "class.owl-dt-calendar-view": "this.owlDTCalendarView", "class.owl-dt-calendar-multi-year-view": "this.owlDTCalendarMultiYearView" } }, viewQueries: [{ propertyName: "calendarBodyElm", first: true, predicate: OwlCalendarBodyComponent, descendants: true, static: true }], ngImport: i0, template: "<button\n class=\"owl-dt-control-button owl-dt-control-arrow-button\"\n [disabled]=\"!previousEnabled()\"\n [attr.aria-label]=\"prevButtonLabel\"\n type=\"button\"\n tabindex=\"0\"\n (click)=\"prevYearList($event)\"\n>\n <span class=\"owl-dt-control-button-content\" tabindex=\"-1\">\n <!-- <editor-fold desc=\"SVG Arrow Left\"> -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n version=\"1.1\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 250.738 250.738\"\n style=\"enable-background: new 0 0 250.738 250.738\"\n xml:space=\"preserve\"\n width=\"100%\"\n height=\"100%\"\n >\n <path\n style=\"fill-rule: evenodd; clip-rule: evenodd\"\n d=\"M96.633,125.369l95.053-94.533c7.101-7.055,7.101-18.492,0-25.546 c-7.1-7.054-18.613-7.054-25.714,0L58.989,111.689c-3.784,3.759-5.487,8.759-5.238,13.68c-0.249,4.922,1.454,9.921,5.238,13.681 l106.983,106.398c7.101,7.055,18.613,7.055,25.714,0c7.101-7.054,7.101-18.491,0-25.544L96.633,125.369z\"\n />\n </svg>\n <!-- </editor-fold> -->\n </span>\n</button>\n<table class=\"owl-dt-calendar-table owl-dt-calendar-multi-year-table\">\n <thead class=\"owl-dt-calendar-header\">\n <tr>\n <th colspan=\"3\">{{ tableHeader }}</th>\n </tr>\n </thead>\n <tbody\n ofe-owl-date-time-calendar-body\n role=\"grid\"\n [rows]=\"years\"\n [numCols]=\"3\"\n [cellRatio]=\"3 / 7\"\n [activeCell]=\"activeCell\"\n [todayValue]=\"todayYear\"\n [selectedValues]=\"selectedYears\"\n [selectMode]=\"selectMode\"\n (keydown)=\"handleCalendarKeydown($event)\"\n (cellSelected)=\"selectCalendarCell($event)\"\n ></tbody>\n</table>\n<button\n class=\"owl-dt-control-button owl-dt-control-arrow-button\"\n [disabled]=\"!nextEnabled()\"\n [attr.aria-label]=\"nextButtonLabel\"\n type=\"button\"\n tabindex=\"0\"\n (click)=\"nextYearList($event)\"\n>\n <span class=\"owl-dt-control-button-content\" tabindex=\"-1\">\n <!-- <editor-fold desc=\"SVG Arrow Right\"> -->\n <svg\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 250.738 250.738\"\n style=\"enable-background: new 0 0 250.738 250.738\"\n xml:space=\"preserve\"\n >\n <path\n style=\"fill-rule: evenodd; clip-rule: evenodd\"\n d=\"M191.75,111.689L84.766,5.291c-7.1-7.055-18.613-7.055-25.713,0\n c-7.101,7.054-7.101,18.49,0,25.544l95.053,94.534l-95.053,94.533c-7.101,7.054-7.101,18.491,0,25.545\n c7.1,7.054,18.613,7.054,25.713,0L191.75,139.05c3.784-3.759,5.487-8.759,5.238-13.681\n C197.237,120.447,195.534,115.448,191.75,111.689z\"\n />\n </svg>\n <!-- </editor-fold> -->\n </span>\n</button>\n", styles: [""], components: [{ type: OwlCalendarBodyComponent, selector: "[ofe-owl-date-time-calendar-body]", inputs: ["activeCell", "rows", "numCols", "cellRatio", "todayValue", "selectedValues", "selectMode"], outputs: ["cellSelected"], exportAs: ["owlDateTimeCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4426
4413
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlMultiYearViewComponent, decorators: [{
|
|
4427
4414
|
type: Component,
|
|
4428
4415
|
args: [{
|
|
4429
|
-
selector: 'owl-date-time-multi-year-view',
|
|
4416
|
+
selector: 'ofe-owl-date-time-multi-year-view',
|
|
4430
4417
|
templateUrl: './calendar-multi-year-view.component.html',
|
|
4431
4418
|
styleUrls: ['./calendar-multi-year-view.component.scss'],
|
|
4432
|
-
host: {
|
|
4433
|
-
'[class.owl-dt-calendar-view]': 'owlDTCalendarView',
|
|
4434
|
-
'[class.owl-dt-calendar-multi-year-view]': 'owlDTCalendarMultiYearView'
|
|
4435
|
-
},
|
|
4436
|
-
preserveWhitespaces: false,
|
|
4437
4419
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
4438
4420
|
}]
|
|
4439
4421
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: OwlDateTimeIntl }, { type: DateTimeAdapter, decorators: [{
|
|
4440
4422
|
type: Optional
|
|
4441
|
-
}] }]; }, propDecorators: {
|
|
4423
|
+
}] }]; }, propDecorators: { owlDTCalendarView: [{
|
|
4424
|
+
type: HostBinding,
|
|
4425
|
+
args: ['class.owl-dt-calendar-view']
|
|
4426
|
+
}], owlDTCalendarMultiYearView: [{
|
|
4427
|
+
type: HostBinding,
|
|
4428
|
+
args: ['class.owl-dt-calendar-multi-year-view']
|
|
4429
|
+
}], selectMode: [{
|
|
4442
4430
|
type: Input
|
|
4443
4431
|
}], selected: [{
|
|
4444
4432
|
type: Input
|
|
@@ -4452,7 +4440,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4452
4440
|
type: Input
|
|
4453
4441
|
}], maxDate: [{
|
|
4454
4442
|
type: Input
|
|
4455
|
-
}],
|
|
4443
|
+
}], monthChange: [{
|
|
4456
4444
|
type: Output
|
|
4457
4445
|
}], yearSelected: [{
|
|
4458
4446
|
type: Output
|
|
@@ -4465,7 +4453,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4465
4453
|
args: [OwlCalendarBodyComponent, { static: true }]
|
|
4466
4454
|
}] } });
|
|
4467
4455
|
|
|
4468
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
4469
4456
|
class OwlCalendarComponent {
|
|
4470
4457
|
constructor(elmRef, pickerIntl, ngZone, cdRef, dateTimeAdapter, dateTimeFormats) {
|
|
4471
4458
|
this.elmRef = elmRef;
|
|
@@ -4518,6 +4505,9 @@ class OwlCalendarComponent {
|
|
|
4518
4505
|
this.cdRef.markForCheck();
|
|
4519
4506
|
});
|
|
4520
4507
|
}
|
|
4508
|
+
get owlDTCalendarClass() {
|
|
4509
|
+
return true;
|
|
4510
|
+
}
|
|
4521
4511
|
get minDate() {
|
|
4522
4512
|
return this._minDate;
|
|
4523
4513
|
}
|
|
@@ -4614,13 +4604,6 @@ class OwlCalendarComponent {
|
|
|
4614
4604
|
get isMonthView() {
|
|
4615
4605
|
return this._currentView === 'month';
|
|
4616
4606
|
}
|
|
4617
|
-
/**
|
|
4618
|
-
* Bind class 'owl-dt-calendar' to host
|
|
4619
|
-
* */
|
|
4620
|
-
get owlDTCalendarClass() {
|
|
4621
|
-
return true;
|
|
4622
|
-
}
|
|
4623
|
-
ngOnInit() { }
|
|
4624
4607
|
ngAfterContentInit() {
|
|
4625
4608
|
this._currentView = this.startView;
|
|
4626
4609
|
}
|
|
@@ -4752,18 +4735,14 @@ class OwlCalendarComponent {
|
|
|
4752
4735
|
}
|
|
4753
4736
|
}
|
|
4754
4737
|
OwlCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlCalendarComponent, deps: [{ token: i0.ElementRef }, { token: OwlDateTimeIntl }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: DateTimeAdapter, optional: true }, { token: OWL_DATE_TIME_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
4755
|
-
OwlCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlCalendarComponent, selector: "owl-date-time-calendar", inputs: { minDate: "minDate", maxDate: "maxDate", pickerMoment: "pickerMoment", selected: "selected", selecteds: "selecteds", dateFilter: "dateFilter", firstDayOfWeek: "firstDayOfWeek", selectMode: "selectMode", startView: "startView", hideOtherMonths: "hideOtherMonths" }, outputs: { pickerMomentChange: "pickerMomentChange", selectedChange: "selectedChange", userSelection: "userSelection", yearSelected: "yearSelected", monthSelected: "monthSelected" }, host: { properties: { "class.owl-dt-calendar": "owlDTCalendarClass" } }, exportAs: ["owlDateTimeCalendar"], ngImport: i0, template: "<div class=\"owl-dt-calendar-control\">\n <!-- focus when keyboard tab (http://kizu.ru/en/blog/keyboard-only-focus/#x) -->\n <button\n class=\"owl-dt-control owl-dt-control-button owl-dt-control-arrow-button\"\n type=\"button\"\n tabindex=\"0\"\n [style.visibility]=\"showControlArrows ? 'visible' : 'hidden'\"\n [disabled]=\"!prevButtonEnabled()\"\n [attr.aria-label]=\"prevButtonLabel\"\n (click)=\"previousClicked()\"\n >\n <span\n class=\"owl-dt-control-content owl-dt-control-button-content\"\n tabindex=\"-1\"\n >\n <!-- <editor-fold desc=\"SVG Arrow Left\"> -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n version=\"1.1\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 250.738 250.738\"\n style=\"enable-background: new 0 0 250.738 250.738\"\n xml:space=\"preserve\"\n width=\"100%\"\n height=\"100%\"\n >\n <path\n style=\"fill-rule: evenodd; clip-rule: evenodd\"\n d=\"M96.633,125.369l95.053-94.533c7.101-7.055,7.101-18.492,0-25.546 c-7.1-7.054-18.613-7.054-25.714,0L58.989,111.689c-3.784,3.759-5.487,8.759-5.238,13.68c-0.249,4.922,1.454,9.921,5.238,13.681 l106.983,106.398c7.101,7.055,18.613,7.055,25.714,0c7.101-7.054,7.101-18.491,0-25.544L96.633,125.369z\"\n />\n </svg>\n <!-- </editor-fold> -->\n </span>\n </button>\n <div class=\"owl-dt-calendar-control-content\">\n <button\n class=\"owl-dt-control owl-dt-control-button owl-dt-control-period-button\"\n type=\"button\"\n tabindex=\"0\"\n [attr.aria-label]=\"periodButtonLabel\"\n (click)=\"toggleViews()\"\n >\n <span\n class=\"owl-dt-control-content owl-dt-control-button-content\"\n tabindex=\"-1\"\n >\n {{ periodButtonText }}\n\n <span\n class=\"owl-dt-control-button-arrow\"\n [style.transform]=\"'rotate(' + (isMonthView ? 0 : 180) + 'deg)'\"\n >\n <!-- <editor-fold desc=\"SVG Arrow\"> -->\n <svg\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n x=\"0px\"\n y=\"0px\"\n width=\"50%\"\n height=\"50%\"\n viewBox=\"0 0 292.362 292.362\"\n style=\"enable-background: new 0 0 292.362 292.362\"\n xml:space=\"preserve\"\n >\n <g>\n <path\n d=\"M286.935,69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952,0-9.233,1.807-12.85,5.424\n C1.807,72.998,0,77.279,0,82.228c0,4.948,1.807,9.229,5.424,12.847l127.907,127.907c3.621,3.617,7.902,5.428,12.85,5.428\n s9.233-1.811,12.847-5.428L286.935,95.074c3.613-3.617,5.427-7.898,5.427-12.847C292.362,77.279,290.548,72.998,286.935,69.377z\"\n />\n </g>\n </svg>\n <!-- </editor-fold> -->\n </span>\n </span>\n </button>\n </div>\n <button\n class=\"owl-dt-control owl-dt-control-button owl-dt-control-arrow-button\"\n type=\"button\"\n tabindex=\"0\"\n [style.visibility]=\"showControlArrows ? 'visible' : 'hidden'\"\n [disabled]=\"!nextButtonEnabled()\"\n [attr.aria-label]=\"nextButtonLabel\"\n (click)=\"nextClicked()\"\n >\n <span\n class=\"owl-dt-control-content owl-dt-control-button-content\"\n tabindex=\"-1\"\n >\n <!-- <editor-fold desc=\"SVG Arrow Right\"> -->\n <svg\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 250.738 250.738\"\n style=\"enable-background: new 0 0 250.738 250.738\"\n xml:space=\"preserve\"\n >\n <path\n style=\"fill-rule: evenodd; clip-rule: evenodd\"\n d=\"M191.75,111.689L84.766,5.291c-7.1-7.055-18.613-7.055-25.713,0\n c-7.101,7.054-7.101,18.49,0,25.544l95.053,94.534l-95.053,94.533c-7.101,7.054-7.101,18.491,0,25.545\n c7.1,7.054,18.613,7.054,25.713,0L191.75,139.05c3.784-3.759,5.487-8.759,5.238-13.681\n C197.237,120.447,195.534,115.448,191.75,111.689z\"\n />\n </svg>\n <!-- </editor-fold> -->\n </span>\n </button>\n</div>\n<div\n class=\"owl-dt-calendar-main\"\n cdkMonitorSubtreeFocus\n [ngSwitch]=\"currentView\"\n tabindex=\"-1\"\n>\n <owl-date-time-month-view\n *ngSwitchCase=\"'month'\"\n [pickerMoment]=\"pickerMoment\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [selected]=\"selected\"\n [selecteds]=\"selecteds\"\n [selectMode]=\"selectMode\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [dateFilter]=\"dateFilter\"\n [hideOtherMonths]=\"hideOtherMonths\"\n (pickerMomentChange)=\"handlePickerMomentChange($event)\"\n (selectedChange)=\"dateSelected($event)\"\n (userSelection)=\"userSelected()\"\n ></owl-date-time-month-view>\n\n <owl-date-time-year-view\n *ngSwitchCase=\"'year'\"\n [pickerMoment]=\"pickerMoment\"\n [selected]=\"selected\"\n [selecteds]=\"selecteds\"\n [selectMode]=\"selectMode\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [dateFilter]=\"dateFilter\"\n (keyboardEnter)=\"focusActiveCell()\"\n (pickerMomentChange)=\"handlePickerMomentChange($event)\"\n (monthSelected)=\"selectMonthInYearView($event)\"\n (
|
|
4738
|
+
OwlCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlCalendarComponent, selector: "ofe-owl-date-time-calendar", inputs: { minDate: "minDate", maxDate: "maxDate", pickerMoment: "pickerMoment", selected: "selected", selecteds: "selecteds", dateFilter: "dateFilter", firstDayOfWeek: "firstDayOfWeek", selectMode: "selectMode", startView: "startView", hideOtherMonths: "hideOtherMonths" }, outputs: { pickerMomentChange: "pickerMomentChange", selectedChange: "selectedChange", userSelection: "userSelection", yearSelected: "yearSelected", monthSelected: "monthSelected" }, host: { properties: { "class.owl-dt-calendar": "this.owlDTCalendarClass" } }, exportAs: ["owlDateTimeCalendar"], ngImport: i0, template: "<div class=\"owl-dt-calendar-control\">\n <!-- focus when keyboard tab (http://kizu.ru/en/blog/keyboard-only-focus/#x) -->\n <button\n class=\"owl-dt-control owl-dt-control-button owl-dt-control-arrow-button\"\n type=\"button\"\n tabindex=\"0\"\n [style.visibility]=\"showControlArrows ? 'visible' : 'hidden'\"\n [disabled]=\"!prevButtonEnabled()\"\n [attr.aria-label]=\"prevButtonLabel\"\n (click)=\"previousClicked()\"\n >\n <span\n class=\"owl-dt-control-content owl-dt-control-button-content\"\n tabindex=\"-1\"\n >\n <!-- <editor-fold desc=\"SVG Arrow Left\"> -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n version=\"1.1\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 250.738 250.738\"\n style=\"enable-background: new 0 0 250.738 250.738\"\n xml:space=\"preserve\"\n width=\"100%\"\n height=\"100%\"\n >\n <path\n style=\"fill-rule: evenodd; clip-rule: evenodd\"\n d=\"M96.633,125.369l95.053-94.533c7.101-7.055,7.101-18.492,0-25.546 c-7.1-7.054-18.613-7.054-25.714,0L58.989,111.689c-3.784,3.759-5.487,8.759-5.238,13.68c-0.249,4.922,1.454,9.921,5.238,13.681 l106.983,106.398c7.101,7.055,18.613,7.055,25.714,0c7.101-7.054,7.101-18.491,0-25.544L96.633,125.369z\"\n />\n </svg>\n <!-- </editor-fold> -->\n </span>\n </button>\n <div class=\"owl-dt-calendar-control-content\">\n <button\n class=\"owl-dt-control owl-dt-control-button owl-dt-control-period-button\"\n type=\"button\"\n tabindex=\"0\"\n [attr.aria-label]=\"periodButtonLabel\"\n (click)=\"toggleViews()\"\n >\n <span\n class=\"owl-dt-control-content owl-dt-control-button-content\"\n tabindex=\"-1\"\n >\n {{ periodButtonText }}\n\n <span\n class=\"owl-dt-control-button-arrow\"\n [style.transform]=\"'rotate(' + (isMonthView ? 0 : 180) + 'deg)'\"\n >\n <!-- <editor-fold desc=\"SVG Arrow\"> -->\n <svg\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n x=\"0px\"\n y=\"0px\"\n width=\"50%\"\n height=\"50%\"\n viewBox=\"0 0 292.362 292.362\"\n style=\"enable-background: new 0 0 292.362 292.362\"\n xml:space=\"preserve\"\n >\n <g>\n <path\n d=\"M286.935,69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952,0-9.233,1.807-12.85,5.424\n C1.807,72.998,0,77.279,0,82.228c0,4.948,1.807,9.229,5.424,12.847l127.907,127.907c3.621,3.617,7.902,5.428,12.85,5.428\n s9.233-1.811,12.847-5.428L286.935,95.074c3.613-3.617,5.427-7.898,5.427-12.847C292.362,77.279,290.548,72.998,286.935,69.377z\"\n />\n </g>\n </svg>\n <!-- </editor-fold> -->\n </span>\n </span>\n </button>\n </div>\n <button\n class=\"owl-dt-control owl-dt-control-button owl-dt-control-arrow-button\"\n type=\"button\"\n tabindex=\"0\"\n [style.visibility]=\"showControlArrows ? 'visible' : 'hidden'\"\n [disabled]=\"!nextButtonEnabled()\"\n [attr.aria-label]=\"nextButtonLabel\"\n (click)=\"nextClicked()\"\n >\n <span\n class=\"owl-dt-control-content owl-dt-control-button-content\"\n tabindex=\"-1\"\n >\n <!-- <editor-fold desc=\"SVG Arrow Right\"> -->\n <svg\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 250.738 250.738\"\n style=\"enable-background: new 0 0 250.738 250.738\"\n xml:space=\"preserve\"\n >\n <path\n style=\"fill-rule: evenodd; clip-rule: evenodd\"\n d=\"M191.75,111.689L84.766,5.291c-7.1-7.055-18.613-7.055-25.713,0\n c-7.101,7.054-7.101,18.49,0,25.544l95.053,94.534l-95.053,94.533c-7.101,7.054-7.101,18.491,0,25.545\n c7.1,7.054,18.613,7.054,25.713,0L191.75,139.05c3.784-3.759,5.487-8.759,5.238-13.681\n C197.237,120.447,195.534,115.448,191.75,111.689z\"\n />\n </svg>\n <!-- </editor-fold> -->\n </span>\n </button>\n</div>\n<div\n class=\"owl-dt-calendar-main\"\n cdkMonitorSubtreeFocus\n [ngSwitch]=\"currentView\"\n tabindex=\"-1\"\n>\n <ofe-owl-date-time-month-view\n *ngSwitchCase=\"'month'\"\n [pickerMoment]=\"pickerMoment\"\n [firstDayOfWeek]=\"firstDayOfWeek\"\n [selected]=\"selected\"\n [selecteds]=\"selecteds\"\n [selectMode]=\"selectMode\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [dateFilter]=\"dateFilter\"\n [hideOtherMonths]=\"hideOtherMonths\"\n (pickerMomentChange)=\"handlePickerMomentChange($event)\"\n (selectedChange)=\"dateSelected($event)\"\n (userSelection)=\"userSelected()\"\n ></ofe-owl-date-time-month-view>\n\n <ofe-owl-date-time-year-view\n *ngSwitchCase=\"'year'\"\n [pickerMoment]=\"pickerMoment\"\n [selected]=\"selected\"\n [selecteds]=\"selecteds\"\n [selectMode]=\"selectMode\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [dateFilter]=\"dateFilter\"\n (keyboardEnter)=\"focusActiveCell()\"\n (pickerMomentChange)=\"handlePickerMomentChange($event)\"\n (monthSelected)=\"selectMonthInYearView($event)\"\n (monthChange)=\"goToDateInView($event, 'month')\"\n ></ofe-owl-date-time-year-view>\n\n <ofe-owl-date-time-multi-year-view\n *ngSwitchCase=\"'multi-years'\"\n [pickerMoment]=\"pickerMoment\"\n [selected]=\"selected\"\n [selecteds]=\"selecteds\"\n [selectMode]=\"selectMode\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [dateFilter]=\"dateFilter\"\n (keyboardEnter)=\"focusActiveCell()\"\n (pickerMomentChange)=\"handlePickerMomentChange($event)\"\n (yearSelected)=\"selectYearInMultiYearView($event)\"\n (monthChange)=\"goToDateInView($event, 'year')\"\n ></ofe-owl-date-time-multi-year-view>\n</div>\n", styles: [""], components: [{ type: OwlMonthViewComponent, selector: "ofe-owl-date-time-month-view", inputs: ["hideOtherMonths", "firstDayOfWeek", "selectMode", "selected", "selecteds", "pickerMoment", "dateFilter", "minDate", "maxDate"], outputs: ["selectedChange", "userSelection", "pickerMomentChange"], exportAs: ["owlYearView"] }, { type: OwlYearViewComponent, selector: "ofe-owl-date-time-year-view", inputs: ["selectMode", "selected", "selecteds", "pickerMoment", "dateFilter", "minDate", "maxDate"], outputs: ["monthChange", "monthSelected", "pickerMomentChange", "keyboardEnter"], exportAs: ["owlMonthView"] }, { type: OwlMultiYearViewComponent, selector: "ofe-owl-date-time-multi-year-view", inputs: ["selectMode", "selected", "selecteds", "pickerMoment", "dateFilter", "minDate", "maxDate"], outputs: ["monthChange", "yearSelected", "pickerMomentChange", "keyboardEnter"] }], directives: [{ type: i1$4.CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: ["cdkFocusChange"] }, { type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4756
4739
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlCalendarComponent, decorators: [{
|
|
4757
4740
|
type: Component,
|
|
4758
4741
|
args: [{
|
|
4759
|
-
selector: 'owl-date-time-calendar',
|
|
4742
|
+
selector: 'ofe-owl-date-time-calendar',
|
|
4760
4743
|
exportAs: 'owlDateTimeCalendar',
|
|
4761
4744
|
templateUrl: './calendar.component.html',
|
|
4762
4745
|
styleUrls: ['./calendar.component.scss'],
|
|
4763
|
-
host: {
|
|
4764
|
-
'[class.owl-dt-calendar]': 'owlDTCalendarClass'
|
|
4765
|
-
},
|
|
4766
|
-
preserveWhitespaces: false,
|
|
4767
4746
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
4768
4747
|
}]
|
|
4769
4748
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: OwlDateTimeIntl }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: DateTimeAdapter, decorators: [{
|
|
@@ -4773,7 +4752,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4773
4752
|
}, {
|
|
4774
4753
|
type: Inject,
|
|
4775
4754
|
args: [OWL_DATE_TIME_FORMATS]
|
|
4776
|
-
}] }]; }, propDecorators: {
|
|
4755
|
+
}] }]; }, propDecorators: { owlDTCalendarClass: [{
|
|
4756
|
+
type: HostBinding,
|
|
4757
|
+
args: ['class.owl-dt-calendar']
|
|
4758
|
+
}], minDate: [{
|
|
4777
4759
|
type: Input
|
|
4778
4760
|
}], maxDate: [{
|
|
4779
4761
|
type: Input
|
|
@@ -4805,6 +4787,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4805
4787
|
type: Output
|
|
4806
4788
|
}] } });
|
|
4807
4789
|
|
|
4790
|
+
/**
|
|
4791
|
+
* date-time-picker.animations
|
|
4792
|
+
*/
|
|
4793
|
+
const owlDateTimePickerAnimations = {
|
|
4794
|
+
transformPicker: trigger('transformPicker', [
|
|
4795
|
+
state('void', style({ opacity: 0, transform: 'scale(1, 0)' })),
|
|
4796
|
+
state('enter', style({ opacity: 1, transform: 'scale(1, 1)' })),
|
|
4797
|
+
transition('void => enter', group([
|
|
4798
|
+
query('@fadeInPicker', animateChild(), { optional: true }),
|
|
4799
|
+
animate('400ms cubic-bezier(0.25, 0.8, 0.25, 1)')
|
|
4800
|
+
])),
|
|
4801
|
+
transition('enter => void', animate('100ms linear', style({ opacity: 0 })))
|
|
4802
|
+
]),
|
|
4803
|
+
fadeInPicker: trigger('fadeInPicker', [
|
|
4804
|
+
state('enter', style({ opacity: 1 })),
|
|
4805
|
+
state('void', style({ opacity: 0 })),
|
|
4806
|
+
transition('void => enter', animate('400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)'))
|
|
4807
|
+
])
|
|
4808
|
+
};
|
|
4809
|
+
|
|
4808
4810
|
/**
|
|
4809
4811
|
* numberFixedLen.pipe
|
|
4810
4812
|
*/
|
|
@@ -4831,7 +4833,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4831
4833
|
}]
|
|
4832
4834
|
}] });
|
|
4833
4835
|
|
|
4834
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
4835
4836
|
class OwlTimerBoxComponent {
|
|
4836
4837
|
constructor() {
|
|
4837
4838
|
this.showDivider = false;
|
|
@@ -4841,12 +4842,12 @@ class OwlTimerBoxComponent {
|
|
|
4841
4842
|
this.inputStream = new Subject();
|
|
4842
4843
|
this.inputStreamSub = Subscription.EMPTY;
|
|
4843
4844
|
}
|
|
4844
|
-
get displayValue() {
|
|
4845
|
-
return this.boxValue || this.value;
|
|
4846
|
-
}
|
|
4847
4845
|
get owlDTTimerBoxClass() {
|
|
4848
4846
|
return true;
|
|
4849
4847
|
}
|
|
4848
|
+
get displayValue() {
|
|
4849
|
+
return this.boxValue || this.value;
|
|
4850
|
+
}
|
|
4850
4851
|
ngOnInit() {
|
|
4851
4852
|
this.inputStreamSub = this.inputStream
|
|
4852
4853
|
.pipe(debounceTime(500), distinctUntilChanged())
|
|
@@ -4880,21 +4881,20 @@ class OwlTimerBoxComponent {
|
|
|
4880
4881
|
}
|
|
4881
4882
|
}
|
|
4882
4883
|
OwlTimerBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlTimerBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4883
|
-
OwlTimerBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlTimerBoxComponent, selector: "owl-date-time-timer-box", inputs: { showDivider: "showDivider", upBtnAriaLabel: "upBtnAriaLabel", upBtnDisabled: "upBtnDisabled", downBtnAriaLabel: "downBtnAriaLabel", downBtnDisabled: "downBtnDisabled", boxValue: "boxValue", value: "value", min: "min", max: "max", step: "step", inputLabel: "inputLabel" }, outputs: { valueChange: "valueChange", inputChange: "inputChange" }, host: { properties: { "class.owl-dt-timer-box": "owlDTTimerBoxClass" } }, exportAs: ["owlDateTimeTimerBox"], ngImport: i0, template: "<div *ngIf=\"showDivider\" class=\"owl-dt-timer-divider\" aria-hidden=\"true\"></div>\n<button\n class=\"owl-dt-control-button owl-dt-control-arrow-button\"\n type=\"button\"\n tabindex=\"-1\"\n [disabled]=\"upBtnDisabled\"\n [attr.aria-label]=\"upBtnAriaLabel\"\n (click)=\"upBtnClicked()\"\n>\n <span class=\"owl-dt-control-button-content\" tabindex=\"-1\">\n <!-- <editor-fold desc=\"SVG Arrow Up\"> -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n version=\"1.1\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 451.847 451.846\"\n style=\"enable-background: new 0 0 451.847 451.846\"\n xml:space=\"preserve\"\n width=\"100%\"\n height=\"100%\"\n >\n <path\n d=\"M248.292,106.406l194.281,194.29c12.365,12.359,12.365,32.391,0,44.744c-12.354,12.354-32.391,12.354-44.744,0\n L225.923,173.529L54.018,345.44c-12.36,12.354-32.395,12.354-44.748,0c-12.359-12.354-12.359-32.391,0-44.75L203.554,106.4\n c6.18-6.174,14.271-9.259,22.369-9.259C234.018,97.141,242.115,100.232,248.292,106.406z\"\n />\n </svg>\n <!-- </editor-fold> -->\n </span>\n</button>\n<label class=\"owl-dt-timer-content\">\n <input\n class=\"owl-dt-timer-input\"\n maxlength=\"2\"\n [value]=\"displayValue | numberFixedLen: 2\"\n (input)=\"handleInputChange(valueInput.value)\"\n #valueInput\n />\n <span class=\"owl-hidden-accessible\">{{ inputLabel }}</span>\n</label>\n<button\n class=\"owl-dt-control-button owl-dt-control-arrow-button\"\n type=\"button\"\n tabindex=\"-1\"\n [disabled]=\"downBtnDisabled\"\n [attr.aria-label]=\"downBtnAriaLabel\"\n (click)=\"downBtnClicked()\"\n>\n <span class=\"owl-dt-control-button-content\" tabindex=\"-1\">\n <!-- <editor-fold desc=\"SVG Arrow Down\"> -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n version=\"1.1\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 451.847 451.846\"\n style=\"enable-background: new 0 0 451.847 451.846\"\n xml:space=\"preserve\"\n width=\"100%\"\n height=\"100%\"\n >\n <path\n d=\"M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751\n c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0\n c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z\"\n />\n </svg>\n <!-- </editor-fold> -->\n </span>\n</button>\n", styles: [""], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "numberFixedLen": NumberFixedLenPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4884
|
+
OwlTimerBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlTimerBoxComponent, selector: "ofe-owl-date-time-timer-box", inputs: { showDivider: "showDivider", upBtnAriaLabel: "upBtnAriaLabel", upBtnDisabled: "upBtnDisabled", downBtnAriaLabel: "downBtnAriaLabel", downBtnDisabled: "downBtnDisabled", boxValue: "boxValue", value: "value", min: "min", max: "max", step: "step", inputLabel: "inputLabel" }, outputs: { valueChange: "valueChange", inputChange: "inputChange" }, host: { properties: { "class.owl-dt-timer-box": "this.owlDTTimerBoxClass" } }, exportAs: ["owlDateTimeTimerBox"], ngImport: i0, template: "<div *ngIf=\"showDivider\" class=\"owl-dt-timer-divider\" aria-hidden=\"true\"></div>\n<button\n class=\"owl-dt-control-button owl-dt-control-arrow-button\"\n type=\"button\"\n tabindex=\"-1\"\n [disabled]=\"upBtnDisabled\"\n [attr.aria-label]=\"upBtnAriaLabel\"\n (click)=\"upBtnClicked()\"\n>\n <span class=\"owl-dt-control-button-content\" tabindex=\"-1\">\n <!-- <editor-fold desc=\"SVG Arrow Up\"> -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n version=\"1.1\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 451.847 451.846\"\n style=\"enable-background: new 0 0 451.847 451.846\"\n xml:space=\"preserve\"\n width=\"100%\"\n height=\"100%\"\n >\n <path\n d=\"M248.292,106.406l194.281,194.29c12.365,12.359,12.365,32.391,0,44.744c-12.354,12.354-32.391,12.354-44.744,0\n L225.923,173.529L54.018,345.44c-12.36,12.354-32.395,12.354-44.748,0c-12.359-12.354-12.359-32.391,0-44.75L203.554,106.4\n c6.18-6.174,14.271-9.259,22.369-9.259C234.018,97.141,242.115,100.232,248.292,106.406z\"\n />\n </svg>\n <!-- </editor-fold> -->\n </span>\n</button>\n<label class=\"owl-dt-timer-content\">\n <input\n class=\"owl-dt-timer-input\"\n maxlength=\"2\"\n [value]=\"displayValue | numberFixedLen: 2\"\n (input)=\"handleInputChange(valueInput.value)\"\n #valueInput\n />\n <span class=\"owl-hidden-accessible\">{{ inputLabel }}</span>\n</label>\n<button\n class=\"owl-dt-control-button owl-dt-control-arrow-button\"\n type=\"button\"\n tabindex=\"-1\"\n [disabled]=\"downBtnDisabled\"\n [attr.aria-label]=\"downBtnAriaLabel\"\n (click)=\"downBtnClicked()\"\n>\n <span class=\"owl-dt-control-button-content\" tabindex=\"-1\">\n <!-- <editor-fold desc=\"SVG Arrow Down\"> -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n version=\"1.1\"\n x=\"0px\"\n y=\"0px\"\n viewBox=\"0 0 451.847 451.846\"\n style=\"enable-background: new 0 0 451.847 451.846\"\n xml:space=\"preserve\"\n width=\"100%\"\n height=\"100%\"\n >\n <path\n d=\"M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751\n c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0\n c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z\"\n />\n </svg>\n <!-- </editor-fold> -->\n </span>\n</button>\n", styles: [""], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "numberFixedLen": NumberFixedLenPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4884
4885
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlTimerBoxComponent, decorators: [{
|
|
4885
4886
|
type: Component,
|
|
4886
4887
|
args: [{
|
|
4887
4888
|
exportAs: 'owlDateTimeTimerBox',
|
|
4888
|
-
selector: 'owl-date-time-timer-box',
|
|
4889
|
+
selector: 'ofe-owl-date-time-timer-box',
|
|
4889
4890
|
templateUrl: './timer-box.component.html',
|
|
4890
4891
|
styleUrls: ['./timer-box.component.scss'],
|
|
4891
|
-
|
|
4892
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4893
|
-
host: {
|
|
4894
|
-
'[class.owl-dt-timer-box]': 'owlDTTimerBoxClass'
|
|
4895
|
-
}
|
|
4892
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
4896
4893
|
}]
|
|
4897
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
4894
|
+
}], ctorParameters: function () { return []; }, propDecorators: { owlDTTimerBoxClass: [{
|
|
4895
|
+
type: HostBinding,
|
|
4896
|
+
args: ['class.owl-dt-timer-box']
|
|
4897
|
+
}], showDivider: [{
|
|
4898
4898
|
type: Input
|
|
4899
4899
|
}], upBtnAriaLabel: [{
|
|
4900
4900
|
type: Input
|
|
@@ -4922,7 +4922,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
4922
4922
|
type: Output
|
|
4923
4923
|
}] } });
|
|
4924
4924
|
|
|
4925
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
4926
4925
|
class OwlTimerComponent {
|
|
4927
4926
|
constructor(ngZone, elmRef, pickerIntl, cdRef, dateTimeAdapter) {
|
|
4928
4927
|
this.ngZone = ngZone;
|
|
@@ -4945,9 +4944,15 @@ class OwlTimerComponent {
|
|
|
4945
4944
|
this.stepSecond = 1;
|
|
4946
4945
|
this.selectedChange = new EventEmitter();
|
|
4947
4946
|
}
|
|
4948
|
-
get
|
|
4949
|
-
return
|
|
4950
|
-
}
|
|
4947
|
+
get owlDTTimeTabIndex() {
|
|
4948
|
+
return -1;
|
|
4949
|
+
}
|
|
4950
|
+
get owlDTTimerClass() {
|
|
4951
|
+
return true;
|
|
4952
|
+
}
|
|
4953
|
+
get pickerMoment() {
|
|
4954
|
+
return this._pickerMoment;
|
|
4955
|
+
}
|
|
4951
4956
|
set pickerMoment(value) {
|
|
4952
4957
|
value = this.dateTimeAdapter.deserialize(value);
|
|
4953
4958
|
this._pickerMoment = this.getValidDate(value) || this.dateTimeAdapter.now();
|
|
@@ -5026,13 +5031,6 @@ class OwlTimerComponent {
|
|
|
5026
5031
|
? this.pickerIntl.hour12PMLabel
|
|
5027
5032
|
: this.pickerIntl.hour12AMLabel;
|
|
5028
5033
|
}
|
|
5029
|
-
get owlDTTimerClass() {
|
|
5030
|
-
return true;
|
|
5031
|
-
}
|
|
5032
|
-
get owlDTTimeTabIndex() {
|
|
5033
|
-
return -1;
|
|
5034
|
-
}
|
|
5035
|
-
ngOnInit() { }
|
|
5036
5034
|
/**
|
|
5037
5035
|
* Focus to the host element
|
|
5038
5036
|
* */
|
|
@@ -5175,24 +5173,25 @@ class OwlTimerComponent {
|
|
|
5175
5173
|
}
|
|
5176
5174
|
}
|
|
5177
5175
|
OwlTimerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlTimerComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: OwlDateTimeIntl }, { token: i0.ChangeDetectorRef }, { token: DateTimeAdapter, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
5178
|
-
OwlTimerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlTimerComponent, selector: "owl-date-time-timer", inputs: { pickerMoment: "pickerMoment", minDateTime: "minDateTime", maxDateTime: "maxDateTime", showSecondsTimer: "showSecondsTimer", hour12Timer: "hour12Timer", stepHour: "stepHour", stepMinute: "stepMinute", stepSecond: "stepSecond" }, outputs: { selectedChange: "selectedChange" }, host: { properties: { "
|
|
5176
|
+
OwlTimerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlTimerComponent, selector: "ofe-owl-date-time-timer", inputs: { pickerMoment: "pickerMoment", minDateTime: "minDateTime", maxDateTime: "maxDateTime", showSecondsTimer: "showSecondsTimer", hour12Timer: "hour12Timer", stepHour: "stepHour", stepMinute: "stepMinute", stepSecond: "stepSecond" }, outputs: { selectedChange: "selectedChange" }, host: { properties: { "attr.tabindex": "this.owlDTTimeTabIndex", "class.owl-dt-timer": "this.owlDTTimerClass" } }, exportAs: ["owlDateTimeTimer"], ngImport: i0, template: "<ofe-owl-date-time-timer-box\n [upBtnAriaLabel]=\"upHourButtonLabel\"\n [downBtnAriaLabel]=\"downHourButtonLabel\"\n [upBtnDisabled]=\"!upHourEnabled()\"\n [downBtnDisabled]=\"!downHourEnabled()\"\n [boxValue]=\"hourBoxValue\"\n [value]=\"hourValue\"\n [min]=\"0\"\n [max]=\"23\"\n [step]=\"stepHour\"\n [inputLabel]=\"'Hour'\"\n (inputChange)=\"setHourValueViaInput($event)\"\n (valueChange)=\"setHourValue($event)\"\n></ofe-owl-date-time-timer-box>\n<ofe-owl-date-time-timer-box\n [showDivider]=\"true\"\n [upBtnAriaLabel]=\"upMinuteButtonLabel\"\n [downBtnAriaLabel]=\"downMinuteButtonLabel\"\n [upBtnDisabled]=\"!upMinuteEnabled()\"\n [downBtnDisabled]=\"!downMinuteEnabled()\"\n [value]=\"minuteValue\"\n [min]=\"0\"\n [max]=\"59\"\n [step]=\"stepMinute\"\n [inputLabel]=\"'Minute'\"\n (inputChange)=\"setMinuteValue($event)\"\n (valueChange)=\"setMinuteValue($event)\"\n></ofe-owl-date-time-timer-box>\n<ofe-owl-date-time-timer-box\n *ngIf=\"showSecondsTimer\"\n [showDivider]=\"true\"\n [upBtnAriaLabel]=\"upSecondButtonLabel\"\n [downBtnAriaLabel]=\"downSecondButtonLabel\"\n [upBtnDisabled]=\"!upSecondEnabled()\"\n [downBtnDisabled]=\"!downSecondEnabled()\"\n [value]=\"secondValue\"\n [min]=\"0\"\n [max]=\"59\"\n [step]=\"stepSecond\"\n [inputLabel]=\"'Second'\"\n (inputChange)=\"setSecondValue($event)\"\n (valueChange)=\"setSecondValue($event)\"\n></ofe-owl-date-time-timer-box>\n\n<div *ngIf=\"hour12Timer\" class=\"owl-dt-timer-hour12\">\n <button\n class=\"owl-dt-control-button owl-dt-timer-hour12-box\"\n type=\"button\"\n tabindex=\"0\"\n (click)=\"setMeridiem($event)\"\n >\n <span class=\"owl-dt-control-button-content\" tabindex=\"-1\">\n {{ hour12ButtonLabel }}\n </span>\n </button>\n</div>\n", styles: [""], components: [{ type: OwlTimerBoxComponent, selector: "ofe-owl-date-time-timer-box", inputs: ["showDivider", "upBtnAriaLabel", "upBtnDisabled", "downBtnAriaLabel", "downBtnDisabled", "boxValue", "value", "min", "max", "step", "inputLabel"], outputs: ["valueChange", "inputChange"], exportAs: ["owlDateTimeTimerBox"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5179
5177
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlTimerComponent, decorators: [{
|
|
5180
5178
|
type: Component,
|
|
5181
5179
|
args: [{
|
|
5182
5180
|
exportAs: 'owlDateTimeTimer',
|
|
5183
|
-
selector: 'owl-date-time-timer',
|
|
5181
|
+
selector: 'ofe-owl-date-time-timer',
|
|
5184
5182
|
templateUrl: './timer.component.html',
|
|
5185
5183
|
styleUrls: ['./timer.component.scss'],
|
|
5186
|
-
|
|
5187
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5188
|
-
host: {
|
|
5189
|
-
'[class.owl-dt-timer]': 'owlDTTimerClass',
|
|
5190
|
-
'[attr.tabindex]': 'owlDTTimeTabIndex'
|
|
5191
|
-
}
|
|
5184
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
5192
5185
|
}]
|
|
5193
5186
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.ElementRef }, { type: OwlDateTimeIntl }, { type: i0.ChangeDetectorRef }, { type: DateTimeAdapter, decorators: [{
|
|
5194
5187
|
type: Optional
|
|
5195
|
-
}] }]; }, propDecorators: {
|
|
5188
|
+
}] }]; }, propDecorators: { owlDTTimeTabIndex: [{
|
|
5189
|
+
type: HostBinding,
|
|
5190
|
+
args: ['attr.tabindex']
|
|
5191
|
+
}], owlDTTimerClass: [{
|
|
5192
|
+
type: HostBinding,
|
|
5193
|
+
args: ['class.owl-dt-timer']
|
|
5194
|
+
}], pickerMoment: [{
|
|
5196
5195
|
type: Input
|
|
5197
5196
|
}], minDateTime: [{
|
|
5198
5197
|
type: Input
|
|
@@ -5212,27 +5211,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5212
5211
|
type: Output
|
|
5213
5212
|
}] } });
|
|
5214
5213
|
|
|
5215
|
-
/**
|
|
5216
|
-
* date-time-picker.animations
|
|
5217
|
-
*/
|
|
5218
|
-
const owlDateTimePickerAnimations = {
|
|
5219
|
-
transformPicker: trigger('transformPicker', [
|
|
5220
|
-
state('void', style({ opacity: 0, transform: 'scale(1, 0)' })),
|
|
5221
|
-
state('enter', style({ opacity: 1, transform: 'scale(1, 1)' })),
|
|
5222
|
-
transition('void => enter', group([
|
|
5223
|
-
query('@fadeInPicker', animateChild(), { optional: true }),
|
|
5224
|
-
animate('400ms cubic-bezier(0.25, 0.8, 0.25, 1)')
|
|
5225
|
-
])),
|
|
5226
|
-
transition('enter => void', animate('100ms linear', style({ opacity: 0 })))
|
|
5227
|
-
]),
|
|
5228
|
-
fadeInPicker: trigger('fadeInPicker', [
|
|
5229
|
-
state('enter', style({ opacity: 1 })),
|
|
5230
|
-
state('void', style({ opacity: 0 })),
|
|
5231
|
-
transition('void => enter', animate('400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)'))
|
|
5232
|
-
])
|
|
5233
|
-
};
|
|
5234
|
-
|
|
5235
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
5236
5214
|
class OwlDateTimeContainerComponent {
|
|
5237
5215
|
constructor(cdRef, elmRef, pickerIntl, dateTimeAdapter) {
|
|
5238
5216
|
this.cdRef = cdRef;
|
|
@@ -5250,6 +5228,33 @@ class OwlDateTimeContainerComponent {
|
|
|
5250
5228
|
this.confirmSelected$ = new Subject();
|
|
5251
5229
|
this.pickerOpened$ = new Subject();
|
|
5252
5230
|
}
|
|
5231
|
+
get owlDTContainerClass() {
|
|
5232
|
+
return true;
|
|
5233
|
+
}
|
|
5234
|
+
get owlDTPopupContainerClass() {
|
|
5235
|
+
return this.picker.pickerMode === 'popup';
|
|
5236
|
+
}
|
|
5237
|
+
get owlDTDialogContainerClass() {
|
|
5238
|
+
return this.picker.pickerMode === 'dialog';
|
|
5239
|
+
}
|
|
5240
|
+
get owlDTInlineContainerClass() {
|
|
5241
|
+
return this.picker.pickerMode === 'inline';
|
|
5242
|
+
}
|
|
5243
|
+
get owlDTContainerDisabledClass() {
|
|
5244
|
+
return this.picker.disabled;
|
|
5245
|
+
}
|
|
5246
|
+
get owlDTContainerId() {
|
|
5247
|
+
return this.picker.id;
|
|
5248
|
+
}
|
|
5249
|
+
get owlDTContainerAnimation() {
|
|
5250
|
+
return this.picker.pickerMode === 'inline' ? '' : 'enter';
|
|
5251
|
+
}
|
|
5252
|
+
handleContainerAnimationDone(event) {
|
|
5253
|
+
const toState = event.toState;
|
|
5254
|
+
if (toState === 'enter') {
|
|
5255
|
+
this.pickerOpened$.next();
|
|
5256
|
+
}
|
|
5257
|
+
}
|
|
5253
5258
|
get hidePickerStream() {
|
|
5254
5259
|
return this.hidePicker$.asObservable();
|
|
5255
5260
|
}
|
|
@@ -5320,40 +5325,12 @@ class OwlDateTimeContainerComponent {
|
|
|
5320
5325
|
get containerElm() {
|
|
5321
5326
|
return this.elmRef.nativeElement;
|
|
5322
5327
|
}
|
|
5323
|
-
get owlDTContainerClass() {
|
|
5324
|
-
return true;
|
|
5325
|
-
}
|
|
5326
|
-
get owlDTPopupContainerClass() {
|
|
5327
|
-
return this.picker.pickerMode === 'popup';
|
|
5328
|
-
}
|
|
5329
|
-
get owlDTDialogContainerClass() {
|
|
5330
|
-
return this.picker.pickerMode === 'dialog';
|
|
5331
|
-
}
|
|
5332
|
-
get owlDTInlineContainerClass() {
|
|
5333
|
-
return this.picker.pickerMode === 'inline';
|
|
5334
|
-
}
|
|
5335
|
-
get owlDTContainerDisabledClass() {
|
|
5336
|
-
return this.picker.disabled;
|
|
5337
|
-
}
|
|
5338
|
-
get owlDTContainerId() {
|
|
5339
|
-
return this.picker.id;
|
|
5340
|
-
}
|
|
5341
|
-
get owlDTContainerAnimation() {
|
|
5342
|
-
return this.picker.pickerMode === 'inline' ? '' : 'enter';
|
|
5343
|
-
}
|
|
5344
|
-
ngOnInit() { }
|
|
5345
5328
|
ngAfterContentInit() {
|
|
5346
5329
|
this.initPicker();
|
|
5347
5330
|
}
|
|
5348
5331
|
ngAfterViewInit() {
|
|
5349
5332
|
this.focusPicker();
|
|
5350
5333
|
}
|
|
5351
|
-
handleContainerAnimationDone(event) {
|
|
5352
|
-
const toState = event.toState;
|
|
5353
|
-
if (toState === 'enter') {
|
|
5354
|
-
this.pickerOpened$.next();
|
|
5355
|
-
}
|
|
5356
|
-
}
|
|
5357
5334
|
dateSelected(date) {
|
|
5358
5335
|
let result;
|
|
5359
5336
|
if (this.picker.isInSingleMode) {
|
|
@@ -5567,7 +5544,7 @@ class OwlDateTimeContainerComponent {
|
|
|
5567
5544
|
}
|
|
5568
5545
|
}
|
|
5569
5546
|
OwlDateTimeContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlDateTimeContainerComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: OwlDateTimeIntl }, { token: DateTimeAdapter, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
5570
|
-
OwlDateTimeContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlDateTimeContainerComponent, selector: "owl-date-time-container", host: { listeners: { "@transformPicker.done": "handleContainerAnimationDone($event)" }, properties: { "class.owl-dt-container": "owlDTContainerClass", "class.owl-dt-popup-container": "owlDTPopupContainerClass", "class.owl-dt-dialog-container": "owlDTDialogContainerClass", "class.owl-dt-inline-container": "owlDTInlineContainerClass", "class.owl-dt-container-disabled": "owlDTContainerDisabledClass", "attr.id": "owlDTContainerId", "@transformPicker": "owlDTContainerAnimation" } }, viewQueries: [{ propertyName: "calendar", first: true, predicate: OwlCalendarComponent, descendants: true }, { propertyName: "timer", first: true, predicate: OwlTimerComponent, descendants: true }], exportAs: ["owlDateTimeContainer"], ngImport: i0, template: "<div\n [cdkTrapFocus]=\"picker.pickerMode !== 'inline'\"\n [@fadeInPicker]=\"picker.pickerMode === 'inline' ? '' : 'enter'\"\n class=\"owl-dt-container-inner\"\n>\n <owl-date-time-calendar\n *ngIf=\"pickerType === 'both' || pickerType === 'calendar'\"\n class=\"owl-dt-container-row\"\n [firstDayOfWeek]=\"picker.firstDayOfWeek\"\n [(pickerMoment)]=\"pickerMoment\"\n [selected]=\"picker.selected\"\n [selecteds]=\"picker.selecteds\"\n [selectMode]=\"picker.selectMode\"\n [minDate]=\"picker.minDateTime\"\n [maxDate]=\"picker.maxDateTime\"\n [dateFilter]=\"picker.dateTimeFilter\"\n [startView]=\"picker.startView\"\n [hideOtherMonths]=\"picker.hideOtherMonths\"\n (yearSelected)=\"picker.selectYear($event)\"\n (monthSelected)=\"picker.selectMonth($event)\"\n (selectedChange)=\"dateSelected($event)\"\n ></owl-date-time-calendar>\n
|
|
5547
|
+
OwlDateTimeContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlDateTimeContainerComponent, selector: "ofe-owl-date-time-container", host: { listeners: { "@transformPicker.done": "handleContainerAnimationDone($event)" }, properties: { "class.owl-dt-container": "this.owlDTContainerClass", "class.owl-dt-popup-container": "this.owlDTPopupContainerClass", "class.owl-dt-dialog-container": "this.owlDTDialogContainerClass", "class.owl-dt-inline-container": "this.owlDTInlineContainerClass", "class.owl-dt-container-disabled": "this.owlDTContainerDisabledClass", "attr.id": "this.owlDTContainerId", "@transformPicker": "this.owlDTContainerAnimation" } }, viewQueries: [{ propertyName: "calendar", first: true, predicate: OwlCalendarComponent, descendants: true }, { propertyName: "timer", first: true, predicate: OwlTimerComponent, descendants: true }], exportAs: ["owlDateTimeContainer"], ngImport: i0, template: "<div\n [cdkTrapFocus]=\"picker.pickerMode !== 'inline'\"\n [@fadeInPicker]=\"picker.pickerMode === 'inline' ? '' : 'enter'\"\n class=\"owl-dt-container-inner\"\n>\n <ofe-owl-date-time-calendar\n *ngIf=\"pickerType === 'both' || pickerType === 'calendar'\"\n class=\"owl-dt-container-row\"\n [firstDayOfWeek]=\"picker.firstDayOfWeek\"\n [(pickerMoment)]=\"pickerMoment\"\n [selected]=\"picker.selected\"\n [selecteds]=\"picker.selecteds\"\n [selectMode]=\"picker.selectMode\"\n [minDate]=\"picker.minDateTime\"\n [maxDate]=\"picker.maxDateTime\"\n [dateFilter]=\"picker.dateTimeFilter\"\n [startView]=\"picker.startView\"\n [hideOtherMonths]=\"picker.hideOtherMonths\"\n (yearSelected)=\"picker.selectYear($event)\"\n (monthSelected)=\"picker.selectMonth($event)\"\n (selectedChange)=\"dateSelected($event)\"\n ></ofe-owl-date-time-calendar>\n <ofe-owl-date-time-timer\n *ngIf=\"pickerType === 'both' || pickerType === 'timer'\"\n class=\"owl-dt-container-row\"\n [pickerMoment]=\"pickerMoment\"\n [minDateTime]=\"picker.minDateTime\"\n [maxDateTime]=\"picker.maxDateTime\"\n [showSecondsTimer]=\"picker.showSecondsTimer\"\n [hour12Timer]=\"picker.hour12Timer\"\n [stepHour]=\"picker.stepHour\"\n [stepMinute]=\"picker.stepMinute\"\n [stepSecond]=\"picker.stepSecond\"\n (selectedChange)=\"timeSelected($event)\"\n ></ofe-owl-date-time-timer>\n <div\n *ngIf=\"picker.isInRangeMode\"\n role=\"radiogroup\"\n class=\"owl-dt-container-info owl-dt-container-row\"\n >\n <div\n role=\"radio\"\n [tabindex]=\"activeSelectedIndex === 0 ? 0 : -1\"\n [attr.aria-checked]=\"activeSelectedIndex === 0\"\n class=\"owl-dt-control owl-dt-container-range owl-dt-container-from\"\n [ngClass]=\"{ 'owl-dt-container-info-active': activeSelectedIndex === 0 }\"\n (click)=\"handleClickOnInfoGroup($event, 0)\"\n (keydown)=\"handleKeydownOnInfoGroup($event, to, 0)\"\n #from\n >\n <span\n class=\"owl-dt-control-content owl-dt-container-range-content\"\n tabindex=\"-1\"\n >\n <span class=\"owl-dt-container-info-label\">{{ fromLabel }}:</span>\n <span class=\"owl-dt-container-info-value\">{{\n fromFormattedValue\n }}</span>\n </span>\n </div>\n <div\n role=\"radio\"\n [tabindex]=\"activeSelectedIndex === 1 ? 0 : -1\"\n [attr.aria-checked]=\"activeSelectedIndex === 1\"\n class=\"owl-dt-control owl-dt-container-range owl-dt-container-to\"\n [ngClass]=\"{ 'owl-dt-container-info-active': activeSelectedIndex === 1 }\"\n (click)=\"handleClickOnInfoGroup($event, 1)\"\n (keydown)=\"handleKeydownOnInfoGroup($event, from, 1)\"\n #to\n >\n <span\n class=\"owl-dt-control-content owl-dt-container-range-content\"\n tabindex=\"-1\"\n >\n <span class=\"owl-dt-container-info-label\">{{ toLabel }}:</span>\n <span class=\"owl-dt-container-info-value\">{{ toFormattedValue }}</span>\n </span>\n </div>\n </div>\n\n <div\n *ngIf=\"showControlButtons\"\n class=\"owl-dt-container-buttons owl-dt-container-row\"\n >\n <button\n class=\"owl-dt-control owl-dt-control-button owl-dt-container-control-button\"\n type=\"button\"\n tabindex=\"0\"\n (click)=\"onCancelClicked($event)\"\n >\n <span\n class=\"owl-dt-control-content owl-dt-control-button-content\"\n tabindex=\"-1\"\n >\n {{ cancelLabel }}\n </span>\n </button>\n <button\n class=\"owl-dt-control owl-dt-control-button owl-dt-container-control-button\"\n type=\"button\"\n tabindex=\"0\"\n (click)=\"onSetClicked($event)\"\n >\n <span\n class=\"owl-dt-control-content owl-dt-control-button-content\"\n tabindex=\"-1\"\n >\n {{ setLabel }}\n </span>\n </button>\n </div>\n</div>\n", styles: [""], components: [{ type: OwlCalendarComponent, selector: "ofe-owl-date-time-calendar", inputs: ["minDate", "maxDate", "pickerMoment", "selected", "selecteds", "dateFilter", "firstDayOfWeek", "selectMode", "startView", "hideOtherMonths"], outputs: ["pickerMomentChange", "selectedChange", "userSelection", "yearSelected", "monthSelected"], exportAs: ["owlDateTimeCalendar"] }, { type: OwlTimerComponent, selector: "ofe-owl-date-time-timer", inputs: ["pickerMoment", "minDateTime", "maxDateTime", "showSecondsTimer", "hour12Timer", "stepHour", "stepMinute", "stepSecond"], outputs: ["selectedChange"], exportAs: ["owlDateTimeTimer"] }], directives: [{ type: i1$4.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
|
|
5571
5548
|
owlDateTimePickerAnimations.transformPicker,
|
|
5572
5549
|
owlDateTimePickerAnimations.fadeInPicker
|
|
5573
5550
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
@@ -5575,25 +5552,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5575
5552
|
type: Component,
|
|
5576
5553
|
args: [{
|
|
5577
5554
|
exportAs: 'owlDateTimeContainer',
|
|
5578
|
-
selector: 'owl-date-time-container',
|
|
5555
|
+
selector: 'ofe-owl-date-time-container',
|
|
5579
5556
|
templateUrl: './date-time-picker-container.component.html',
|
|
5580
5557
|
styleUrls: ['./date-time-picker-container.component.scss'],
|
|
5581
5558
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5582
|
-
preserveWhitespaces: false,
|
|
5583
5559
|
animations: [
|
|
5584
5560
|
owlDateTimePickerAnimations.transformPicker,
|
|
5585
5561
|
owlDateTimePickerAnimations.fadeInPicker
|
|
5586
|
-
]
|
|
5587
|
-
host: {
|
|
5588
|
-
'(@transformPicker.done)': 'handleContainerAnimationDone($event)',
|
|
5589
|
-
'[class.owl-dt-container]': 'owlDTContainerClass',
|
|
5590
|
-
'[class.owl-dt-popup-container]': 'owlDTPopupContainerClass',
|
|
5591
|
-
'[class.owl-dt-dialog-container]': 'owlDTDialogContainerClass',
|
|
5592
|
-
'[class.owl-dt-inline-container]': 'owlDTInlineContainerClass',
|
|
5593
|
-
'[class.owl-dt-container-disabled]': 'owlDTContainerDisabledClass',
|
|
5594
|
-
'[attr.id]': 'owlDTContainerId',
|
|
5595
|
-
'[@transformPicker]': 'owlDTContainerAnimation'
|
|
5596
|
-
}
|
|
5562
|
+
]
|
|
5597
5563
|
}]
|
|
5598
5564
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: OwlDateTimeIntl }, { type: DateTimeAdapter, decorators: [{
|
|
5599
5565
|
type: Optional
|
|
@@ -5603,6 +5569,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
5603
5569
|
}], timer: [{
|
|
5604
5570
|
type: ViewChild,
|
|
5605
5571
|
args: [OwlTimerComponent, { static: false }]
|
|
5572
|
+
}], owlDTContainerClass: [{
|
|
5573
|
+
type: HostBinding,
|
|
5574
|
+
args: ['class.owl-dt-container']
|
|
5575
|
+
}], owlDTPopupContainerClass: [{
|
|
5576
|
+
type: HostBinding,
|
|
5577
|
+
args: ['class.owl-dt-popup-container']
|
|
5578
|
+
}], owlDTDialogContainerClass: [{
|
|
5579
|
+
type: HostBinding,
|
|
5580
|
+
args: ['class.owl-dt-dialog-container']
|
|
5581
|
+
}], owlDTInlineContainerClass: [{
|
|
5582
|
+
type: HostBinding,
|
|
5583
|
+
args: ['class.owl-dt-inline-container']
|
|
5584
|
+
}], owlDTContainerDisabledClass: [{
|
|
5585
|
+
type: HostBinding,
|
|
5586
|
+
args: ['class.owl-dt-container-disabled']
|
|
5587
|
+
}], owlDTContainerId: [{
|
|
5588
|
+
type: HostBinding,
|
|
5589
|
+
args: ['attr.id']
|
|
5590
|
+
}], owlDTContainerAnimation: [{
|
|
5591
|
+
type: HostBinding,
|
|
5592
|
+
args: ['@transformPicker']
|
|
5593
|
+
}], handleContainerAnimationDone: [{
|
|
5594
|
+
type: HostListener,
|
|
5595
|
+
args: ['@transformPicker.done', ['$event']]
|
|
5606
5596
|
}] } });
|
|
5607
5597
|
|
|
5608
5598
|
/**
|
|
@@ -5936,7 +5926,6 @@ class OwlDialogRef {
|
|
|
5936
5926
|
}
|
|
5937
5927
|
}
|
|
5938
5928
|
|
|
5939
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
5940
5929
|
const zoomFadeIn = {
|
|
5941
5930
|
opacity: 0,
|
|
5942
5931
|
transform: 'translateX({{ x }}) translateY({{ y }}) scale({{scale}})'
|
|
@@ -5971,15 +5960,12 @@ class OwlDialogContainerComponent extends BasePortalOutlet {
|
|
|
5971
5960
|
// This would help us to refocus back to element when the dialog was closed.
|
|
5972
5961
|
this.elementFocusedBeforeDialogWasOpened = null;
|
|
5973
5962
|
}
|
|
5974
|
-
get
|
|
5975
|
-
return
|
|
5963
|
+
get owlDialogContainerTabIndex() {
|
|
5964
|
+
return -1;
|
|
5976
5965
|
}
|
|
5977
5966
|
get owlDialogContainerClass() {
|
|
5978
5967
|
return true;
|
|
5979
5968
|
}
|
|
5980
|
-
get owlDialogContainerTabIndex() {
|
|
5981
|
-
return -1;
|
|
5982
|
-
}
|
|
5983
5969
|
get owlDialogContainerId() {
|
|
5984
5970
|
return this._config.id;
|
|
5985
5971
|
}
|
|
@@ -5995,7 +5981,23 @@ class OwlDialogContainerComponent extends BasePortalOutlet {
|
|
|
5995
5981
|
get owlDialogContainerAnimation() {
|
|
5996
5982
|
return { value: this.state, params: this.params };
|
|
5997
5983
|
}
|
|
5998
|
-
|
|
5984
|
+
onAnimationStart(event) {
|
|
5985
|
+
this.isAnimating = true;
|
|
5986
|
+
this.animationStateChanged.emit(event);
|
|
5987
|
+
}
|
|
5988
|
+
onAnimationDone(event) {
|
|
5989
|
+
if (event.toState === 'enter') {
|
|
5990
|
+
this.trapFocus();
|
|
5991
|
+
}
|
|
5992
|
+
else if (event.toState === 'exit') {
|
|
5993
|
+
this.restoreFocus();
|
|
5994
|
+
}
|
|
5995
|
+
this.animationStateChanged.emit(event);
|
|
5996
|
+
this.isAnimating = false;
|
|
5997
|
+
}
|
|
5998
|
+
get config() {
|
|
5999
|
+
return this._config;
|
|
6000
|
+
}
|
|
5999
6001
|
/**
|
|
6000
6002
|
* Attach a ComponentPortal as content to this dialog container.
|
|
6001
6003
|
*/
|
|
@@ -6015,20 +6017,6 @@ class OwlDialogContainerComponent extends BasePortalOutlet {
|
|
|
6015
6017
|
this.calculateZoomOrigin(event);
|
|
6016
6018
|
}
|
|
6017
6019
|
}
|
|
6018
|
-
onAnimationStart(event) {
|
|
6019
|
-
this.isAnimating = true;
|
|
6020
|
-
this.animationStateChanged.emit(event);
|
|
6021
|
-
}
|
|
6022
|
-
onAnimationDone(event) {
|
|
6023
|
-
if (event.toState === 'enter') {
|
|
6024
|
-
this.trapFocus();
|
|
6025
|
-
}
|
|
6026
|
-
else if (event.toState === 'exit') {
|
|
6027
|
-
this.restoreFocus();
|
|
6028
|
-
}
|
|
6029
|
-
this.animationStateChanged.emit(event);
|
|
6030
|
-
this.isAnimating = false;
|
|
6031
|
-
}
|
|
6032
6020
|
startExitAnimation() {
|
|
6033
6021
|
this.state = 'exit';
|
|
6034
6022
|
this.changeDetector.markForCheck();
|
|
@@ -6086,7 +6074,7 @@ class OwlDialogContainerComponent extends BasePortalOutlet {
|
|
|
6086
6074
|
}
|
|
6087
6075
|
}
|
|
6088
6076
|
OwlDialogContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlDialogContainerComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1$4.FocusTrapFactory }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
6089
|
-
OwlDialogContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlDialogContainerComponent, selector: "owl-dialog-container", host: { listeners: { "@slideModal.start": "onAnimationStart($event)", "@slideModal.done": "onAnimationDone($event)" }, properties: { "
|
|
6077
|
+
OwlDialogContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlDialogContainerComponent, selector: "ofe-owl-dialog-container", host: { listeners: { "@slideModal.start": "onAnimationStart($event)", "@slideModal.done": "onAnimationDone($event)" }, properties: { "attr.tabindex": "this.owlDialogContainerTabIndex", "class.owl-dialog-container": "this.owlDialogContainerClass", "attr.id": "this.owlDialogContainerId", "attr.role": "this.owlDialogContainerRole", "attr.aria-labelledby": "this.owlDialogContainerAriaLabelledby", "attr.aria-describedby": "this.owlDialogContainerAriaDescribedby", "@slideModal": "this.owlDialogContainerAnimation" } }, viewQueries: [{ propertyName: "portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-template cdkPortalOutlet></ng-template>\n", directives: [{ type: i2$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [
|
|
6090
6078
|
trigger('slideModal', [
|
|
6091
6079
|
transition('void => enter', [
|
|
6092
6080
|
style(zoomFadeInFrom),
|
|
@@ -6113,7 +6101,7 @@ OwlDialogContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
6113
6101
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlDialogContainerComponent, decorators: [{
|
|
6114
6102
|
type: Component,
|
|
6115
6103
|
args: [{
|
|
6116
|
-
selector: 'owl-dialog-container',
|
|
6104
|
+
selector: 'ofe-owl-dialog-container',
|
|
6117
6105
|
templateUrl: './dialog-container.component.html',
|
|
6118
6106
|
animations: [
|
|
6119
6107
|
trigger('slideModal', [
|
|
@@ -6138,25 +6126,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
6138
6126
|
}),
|
|
6139
6127
|
transition('enter => exit', [animateChild(), animate(200, style(zoomFadeIn))], { params: { x: '0px', y: '0px', ox: '50%', oy: '50%' } })
|
|
6140
6128
|
])
|
|
6141
|
-
]
|
|
6142
|
-
host: {
|
|
6143
|
-
'(@slideModal.start)': 'onAnimationStart($event)',
|
|
6144
|
-
'(@slideModal.done)': 'onAnimationDone($event)',
|
|
6145
|
-
'[class.owl-dialog-container]': 'owlDialogContainerClass',
|
|
6146
|
-
'[attr.tabindex]': 'owlDialogContainerTabIndex',
|
|
6147
|
-
'[attr.id]': 'owlDialogContainerId',
|
|
6148
|
-
'[attr.role]': 'owlDialogContainerRole',
|
|
6149
|
-
'[attr.aria-labelledby]': 'owlDialogContainerAriaLabelledby',
|
|
6150
|
-
'[attr.aria-describedby]': 'owlDialogContainerAriaDescribedby',
|
|
6151
|
-
'[@slideModal]': 'owlDialogContainerAnimation'
|
|
6152
|
-
}
|
|
6129
|
+
]
|
|
6153
6130
|
}]
|
|
6154
6131
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1$4.FocusTrapFactory }, { type: undefined, decorators: [{
|
|
6155
6132
|
type: Optional
|
|
6156
6133
|
}, {
|
|
6157
6134
|
type: Inject,
|
|
6158
6135
|
args: [DOCUMENT]
|
|
6159
|
-
}] }]; }, propDecorators: {
|
|
6136
|
+
}] }]; }, propDecorators: { owlDialogContainerTabIndex: [{
|
|
6137
|
+
type: HostBinding,
|
|
6138
|
+
args: ['attr.tabindex']
|
|
6139
|
+
}], owlDialogContainerClass: [{
|
|
6140
|
+
type: HostBinding,
|
|
6141
|
+
args: ['class.owl-dialog-container']
|
|
6142
|
+
}], owlDialogContainerId: [{
|
|
6143
|
+
type: HostBinding,
|
|
6144
|
+
args: ['attr.id']
|
|
6145
|
+
}], owlDialogContainerRole: [{
|
|
6146
|
+
type: HostBinding,
|
|
6147
|
+
args: ['attr.role']
|
|
6148
|
+
}], owlDialogContainerAriaLabelledby: [{
|
|
6149
|
+
type: HostBinding,
|
|
6150
|
+
args: ['attr.aria-labelledby']
|
|
6151
|
+
}], owlDialogContainerAriaDescribedby: [{
|
|
6152
|
+
type: HostBinding,
|
|
6153
|
+
args: ['attr.aria-describedby']
|
|
6154
|
+
}], owlDialogContainerAnimation: [{
|
|
6155
|
+
type: HostBinding,
|
|
6156
|
+
args: ['@slideModal']
|
|
6157
|
+
}], onAnimationStart: [{
|
|
6158
|
+
type: HostListener,
|
|
6159
|
+
args: ['@slideModal.start', ['$event']]
|
|
6160
|
+
}], onAnimationDone: [{
|
|
6161
|
+
type: HostListener,
|
|
6162
|
+
args: ['@slideModal.done', ['$event']]
|
|
6163
|
+
}], portalOutlet: [{
|
|
6160
6164
|
type: ViewChild,
|
|
6161
6165
|
args: [CdkPortalOutlet, { static: true }]
|
|
6162
6166
|
}] } });
|
|
@@ -6410,9 +6414,6 @@ function applyConfigDefaults(config, defaultOptions) {
|
|
|
6410
6414
|
return extendObject(new OwlDialogConfig(), config, defaultOptions);
|
|
6411
6415
|
}
|
|
6412
6416
|
|
|
6413
|
-
/**
|
|
6414
|
-
* date-time-picker.component
|
|
6415
|
-
*/
|
|
6416
6417
|
/** Injection token that determines the scroll handling while the dtPicker is open. */
|
|
6417
6418
|
const OWL_DTPICKER_SCROLL_STRATEGY = new InjectionToken('owl-dtpicker-scroll-strategy');
|
|
6418
6419
|
/** @docs-private */
|
|
@@ -6591,7 +6592,6 @@ class OwlDateTimeComponent extends OwlDateTime {
|
|
|
6591
6592
|
get isInRangeMode() {
|
|
6592
6593
|
return this._dtInput.isInRangeMode;
|
|
6593
6594
|
}
|
|
6594
|
-
ngOnInit() { }
|
|
6595
6595
|
ngOnDestroy() {
|
|
6596
6596
|
this.close();
|
|
6597
6597
|
this.dtInputSub.unsubscribe();
|
|
@@ -6874,16 +6874,15 @@ class OwlDateTimeComponent extends OwlDateTime {
|
|
|
6874
6874
|
}
|
|
6875
6875
|
}
|
|
6876
6876
|
OwlDateTimeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlDateTimeComponent, deps: [{ token: i1$5.Overlay }, { token: i0.ViewContainerRef }, { token: OwlDialogService }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: DateTimeAdapter, optional: true }, { token: OWL_DTPICKER_SCROLL_STRATEGY }, { token: OWL_DATE_TIME_FORMATS, optional: true }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
6877
|
-
OwlDateTimeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlDateTimeComponent, selector: "owl-date-time", inputs: { backdropClass: "backdropClass", panelClass: "panelClass", startAt: "startAt", pickerType: "pickerType", pickerMode: "pickerMode", disabled: "disabled", opened: "opened", scrollStrategy: "scrollStrategy" }, outputs: { afterPickerClosed: "afterPickerClosed", afterPickerOpen: "afterPickerOpen", yearSelected: "yearSelected", monthSelected: "monthSelected" }, exportAs: ["owlDateTime"], usesInheritance: true, ngImport: i0, template: "", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6877
|
+
OwlDateTimeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlDateTimeComponent, selector: "ofe-owl-date-time", inputs: { backdropClass: "backdropClass", panelClass: "panelClass", startAt: "startAt", pickerType: "pickerType", pickerMode: "pickerMode", disabled: "disabled", opened: "opened", scrollStrategy: "scrollStrategy" }, outputs: { afterPickerClosed: "afterPickerClosed", afterPickerOpen: "afterPickerOpen", yearSelected: "yearSelected", monthSelected: "monthSelected" }, exportAs: ["owlDateTime"], usesInheritance: true, ngImport: i0, template: "", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6878
6878
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlDateTimeComponent, decorators: [{
|
|
6879
6879
|
type: Component,
|
|
6880
6880
|
args: [{
|
|
6881
|
-
selector: 'owl-date-time',
|
|
6881
|
+
selector: 'ofe-owl-date-time',
|
|
6882
6882
|
exportAs: 'owlDateTime',
|
|
6883
6883
|
templateUrl: './date-time-picker.component.html',
|
|
6884
6884
|
styleUrls: ['./date-time-picker.component.scss'],
|
|
6885
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
6886
|
-
preserveWhitespaces: false
|
|
6885
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
6887
6886
|
}]
|
|
6888
6887
|
}], ctorParameters: function () { return [{ type: i1$5.Overlay }, { type: i0.ViewContainerRef }, { type: OwlDialogService }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: DateTimeAdapter, decorators: [{
|
|
6889
6888
|
type: Optional
|
|
@@ -6926,7 +6925,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
6926
6925
|
type: Output
|
|
6927
6926
|
}] } });
|
|
6928
6927
|
|
|
6929
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
6930
6928
|
const OWL_DATETIME_VALUE_ACCESSOR$1 = {
|
|
6931
6929
|
provide: NG_VALUE_ACCESSOR,
|
|
6932
6930
|
useExisting: forwardRef(() => OwlDateTimeInputDirective),
|
|
@@ -7075,6 +7073,56 @@ class OwlDateTimeInputDirective {
|
|
|
7075
7073
|
this.value = this.value;
|
|
7076
7074
|
});
|
|
7077
7075
|
}
|
|
7076
|
+
get owlDateTimeInputAriaHaspopup() {
|
|
7077
|
+
return true;
|
|
7078
|
+
}
|
|
7079
|
+
get maxIso8601() {
|
|
7080
|
+
return this.max ? this.dateTimeAdapter.toIso8601(this.max) : null;
|
|
7081
|
+
}
|
|
7082
|
+
get minIso8601() {
|
|
7083
|
+
return this.min ? this.dateTimeAdapter.toIso8601(this.min) : null;
|
|
7084
|
+
}
|
|
7085
|
+
get owlDateTimeInputAriaOwns() {
|
|
7086
|
+
return (this.dtPicker.opened && this.dtPicker.id) || null;
|
|
7087
|
+
}
|
|
7088
|
+
get owlDateTimeInputDisabled() {
|
|
7089
|
+
return this.disabled;
|
|
7090
|
+
}
|
|
7091
|
+
handleBlurOnHost($event) {
|
|
7092
|
+
this.onModelTouched();
|
|
7093
|
+
}
|
|
7094
|
+
handleChangeOnHost($event) {
|
|
7095
|
+
let v;
|
|
7096
|
+
if (this.isInSingleMode) {
|
|
7097
|
+
v = this.value;
|
|
7098
|
+
}
|
|
7099
|
+
else if (this.isInRangeMode) {
|
|
7100
|
+
v = this.values;
|
|
7101
|
+
}
|
|
7102
|
+
this.dateTimeChange.emit({
|
|
7103
|
+
source: this,
|
|
7104
|
+
value: v,
|
|
7105
|
+
input: this.elmRef.nativeElement
|
|
7106
|
+
});
|
|
7107
|
+
}
|
|
7108
|
+
handleInputOnHost($event) {
|
|
7109
|
+
const value = $event.target.value;
|
|
7110
|
+
if (this._selectMode === 'single') {
|
|
7111
|
+
this.changeInputInSingleMode(value);
|
|
7112
|
+
}
|
|
7113
|
+
else if (this._selectMode === 'range') {
|
|
7114
|
+
this.changeInputInRangeMode(value);
|
|
7115
|
+
}
|
|
7116
|
+
else {
|
|
7117
|
+
this.changeInputInRangeFromToMode(value);
|
|
7118
|
+
}
|
|
7119
|
+
}
|
|
7120
|
+
handleKeydownOnHost($event) {
|
|
7121
|
+
if ($event.altKey && $event.keyCode === DOWN_ARROW) {
|
|
7122
|
+
this.dtPicker.open();
|
|
7123
|
+
$event.preventDefault();
|
|
7124
|
+
}
|
|
7125
|
+
}
|
|
7078
7126
|
/**
|
|
7079
7127
|
* The date time picker that this input is associated with.
|
|
7080
7128
|
* */
|
|
@@ -7185,21 +7233,6 @@ class OwlDateTimeInputDirective {
|
|
|
7185
7233
|
this._selectMode === 'rangeFrom' ||
|
|
7186
7234
|
this._selectMode === 'rangeTo');
|
|
7187
7235
|
}
|
|
7188
|
-
get owlDateTimeInputAriaHaspopup() {
|
|
7189
|
-
return true;
|
|
7190
|
-
}
|
|
7191
|
-
get owlDateTimeInputAriaOwns() {
|
|
7192
|
-
return (this.dtPicker.opened && this.dtPicker.id) || null;
|
|
7193
|
-
}
|
|
7194
|
-
get minIso8601() {
|
|
7195
|
-
return this.min ? this.dateTimeAdapter.toIso8601(this.min) : null;
|
|
7196
|
-
}
|
|
7197
|
-
get maxIso8601() {
|
|
7198
|
-
return this.max ? this.dateTimeAdapter.toIso8601(this.max) : null;
|
|
7199
|
-
}
|
|
7200
|
-
get owlDateTimeInputDisabled() {
|
|
7201
|
-
return this.disabled;
|
|
7202
|
-
}
|
|
7203
7236
|
ngOnInit() {
|
|
7204
7237
|
if (!this.dtPicker) {
|
|
7205
7238
|
throw Error(`OwlDateTimePicker: the picker input doesn't have any associated owl-date-time component`);
|
|
@@ -7257,44 +7290,6 @@ class OwlDateTimeInputDirective {
|
|
|
7257
7290
|
registerOnValidatorChange(fn) {
|
|
7258
7291
|
this.validatorOnChange = fn;
|
|
7259
7292
|
}
|
|
7260
|
-
/**
|
|
7261
|
-
* Open the picker when user hold alt + DOWN_ARROW
|
|
7262
|
-
* */
|
|
7263
|
-
handleKeydownOnHost(event) {
|
|
7264
|
-
if (event.altKey && event.keyCode === DOWN_ARROW) {
|
|
7265
|
-
this.dtPicker.open();
|
|
7266
|
-
event.preventDefault();
|
|
7267
|
-
}
|
|
7268
|
-
}
|
|
7269
|
-
handleBlurOnHost(event) {
|
|
7270
|
-
this.onModelTouched();
|
|
7271
|
-
}
|
|
7272
|
-
handleInputOnHost(event) {
|
|
7273
|
-
const value = event.target.value;
|
|
7274
|
-
if (this._selectMode === 'single') {
|
|
7275
|
-
this.changeInputInSingleMode(value);
|
|
7276
|
-
}
|
|
7277
|
-
else if (this._selectMode === 'range') {
|
|
7278
|
-
this.changeInputInRangeMode(value);
|
|
7279
|
-
}
|
|
7280
|
-
else {
|
|
7281
|
-
this.changeInputInRangeFromToMode(value);
|
|
7282
|
-
}
|
|
7283
|
-
}
|
|
7284
|
-
handleChangeOnHost(event) {
|
|
7285
|
-
let v;
|
|
7286
|
-
if (this.isInSingleMode) {
|
|
7287
|
-
v = this.value;
|
|
7288
|
-
}
|
|
7289
|
-
else if (this.isInRangeMode) {
|
|
7290
|
-
v = this.values;
|
|
7291
|
-
}
|
|
7292
|
-
this.dateTimeChange.emit({
|
|
7293
|
-
source: this,
|
|
7294
|
-
value: v,
|
|
7295
|
-
input: this.elmRef.nativeElement
|
|
7296
|
-
});
|
|
7297
|
-
}
|
|
7298
7293
|
/**
|
|
7299
7294
|
* Set the native input property 'value'
|
|
7300
7295
|
*/
|
|
@@ -7468,23 +7463,12 @@ class OwlDateTimeInputDirective {
|
|
|
7468
7463
|
}
|
|
7469
7464
|
}
|
|
7470
7465
|
OwlDateTimeInputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlDateTimeInputDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DateTimeAdapter, optional: true }, { token: OWL_DATE_TIME_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7471
|
-
OwlDateTimeInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: OwlDateTimeInputDirective, selector: "input[owlDateTime]", inputs: { owlDateTime: "owlDateTime", owlDateTimeFilter: "owlDateTimeFilter", min: "min", max: "max", selectMode: "selectMode", value: "value", values: "values", _disabled: "_disabled", rangeSeparator: "rangeSeparator" }, outputs: { dateTimeChange: "dateTimeChange", dateTimeInput: "dateTimeInput" }, host: { listeners: { "
|
|
7466
|
+
OwlDateTimeInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: OwlDateTimeInputDirective, selector: "input[owlDateTime]", inputs: { owlDateTime: "owlDateTime", owlDateTimeFilter: "owlDateTimeFilter", min: "min", max: "max", selectMode: "selectMode", value: "value", values: "values", _disabled: "_disabled", rangeSeparator: "rangeSeparator" }, outputs: { dateTimeChange: "dateTimeChange", dateTimeInput: "dateTimeInput" }, host: { listeners: { "blur": "handleBlurOnHost($event)", "change": "handleChangeOnHost($event)", "input": "handleInputOnHost($event)", "keydown": "handleKeydownOnHost($event)" }, properties: { "attr.aria-haspopup": "this.owlDateTimeInputAriaHaspopup", "attr.max": "this.maxIso8601", "attr.min": "this.minIso8601", "attr.aria-owns": "this.owlDateTimeInputAriaOwns", "disabled": "this.owlDateTimeInputDisabled" } }, providers: [OWL_DATETIME_VALUE_ACCESSOR$1, OWL_DATETIME_VALIDATORS], exportAs: ["owlDateTimeInput"], ngImport: i0 });
|
|
7472
7467
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlDateTimeInputDirective, decorators: [{
|
|
7473
7468
|
type: Directive,
|
|
7474
7469
|
args: [{
|
|
7475
7470
|
selector: 'input[owlDateTime]',
|
|
7476
7471
|
exportAs: 'owlDateTimeInput',
|
|
7477
|
-
host: {
|
|
7478
|
-
'(keydown)': 'handleKeydownOnHost($event)',
|
|
7479
|
-
'(blur)': 'handleBlurOnHost($event)',
|
|
7480
|
-
'(input)': 'handleInputOnHost($event)',
|
|
7481
|
-
'(change)': 'handleChangeOnHost($event)',
|
|
7482
|
-
'[attr.aria-haspopup]': 'owlDateTimeInputAriaHaspopup',
|
|
7483
|
-
'[attr.aria-owns]': 'owlDateTimeInputAriaOwns',
|
|
7484
|
-
'[attr.min]': 'minIso8601',
|
|
7485
|
-
'[attr.max]': 'maxIso8601',
|
|
7486
|
-
'[disabled]': 'owlDateTimeInputDisabled'
|
|
7487
|
-
},
|
|
7488
7472
|
providers: [OWL_DATETIME_VALUE_ACCESSOR$1, OWL_DATETIME_VALIDATORS]
|
|
7489
7473
|
}]
|
|
7490
7474
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: DateTimeAdapter, decorators: [{
|
|
@@ -7494,7 +7478,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
7494
7478
|
}, {
|
|
7495
7479
|
type: Inject,
|
|
7496
7480
|
args: [OWL_DATE_TIME_FORMATS]
|
|
7497
|
-
}] }]; }, propDecorators: {
|
|
7481
|
+
}] }]; }, propDecorators: { owlDateTimeInputAriaHaspopup: [{
|
|
7482
|
+
type: HostBinding,
|
|
7483
|
+
args: ['attr.aria-haspopup']
|
|
7484
|
+
}], maxIso8601: [{
|
|
7485
|
+
type: HostBinding,
|
|
7486
|
+
args: ['attr.max']
|
|
7487
|
+
}], minIso8601: [{
|
|
7488
|
+
type: HostBinding,
|
|
7489
|
+
args: ['attr.min']
|
|
7490
|
+
}], owlDateTimeInputAriaOwns: [{
|
|
7491
|
+
type: HostBinding,
|
|
7492
|
+
args: ['attr.aria-owns']
|
|
7493
|
+
}], owlDateTimeInputDisabled: [{
|
|
7494
|
+
type: HostBinding,
|
|
7495
|
+
args: ['disabled']
|
|
7496
|
+
}], handleBlurOnHost: [{
|
|
7497
|
+
type: HostListener,
|
|
7498
|
+
args: ['blur', ['$event']]
|
|
7499
|
+
}], handleChangeOnHost: [{
|
|
7500
|
+
type: HostListener,
|
|
7501
|
+
args: ['change', ['$event']]
|
|
7502
|
+
}], handleInputOnHost: [{
|
|
7503
|
+
type: HostListener,
|
|
7504
|
+
args: ['input', ['$event']]
|
|
7505
|
+
}], handleKeydownOnHost: [{
|
|
7506
|
+
type: HostListener,
|
|
7507
|
+
args: ['keydown', ['$event']]
|
|
7508
|
+
}], owlDateTime: [{
|
|
7498
7509
|
type: Input
|
|
7499
7510
|
}], owlDateTimeFilter: [{
|
|
7500
7511
|
type: Input
|
|
@@ -7518,12 +7529,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
7518
7529
|
type: Output
|
|
7519
7530
|
}] } });
|
|
7520
7531
|
|
|
7521
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
7522
7532
|
class OwlDateTimeTriggerDirective {
|
|
7523
7533
|
constructor(changeDetector) {
|
|
7524
7534
|
this.changeDetector = changeDetector;
|
|
7525
7535
|
this.stateChanges = Subscription.EMPTY;
|
|
7526
7536
|
}
|
|
7537
|
+
get owlDTTriggerDisabledClass() {
|
|
7538
|
+
return this.disabled;
|
|
7539
|
+
}
|
|
7540
|
+
handleClickOnHost($event) {
|
|
7541
|
+
if (this.dtPicker) {
|
|
7542
|
+
this.dtPicker.open();
|
|
7543
|
+
$event.stopPropagation();
|
|
7544
|
+
}
|
|
7545
|
+
}
|
|
7527
7546
|
get disabled() {
|
|
7528
7547
|
return this._disabled === undefined
|
|
7529
7548
|
? this.dtPicker.disabled
|
|
@@ -7532,10 +7551,6 @@ class OwlDateTimeTriggerDirective {
|
|
|
7532
7551
|
set disabled(value) {
|
|
7533
7552
|
this._disabled = value;
|
|
7534
7553
|
}
|
|
7535
|
-
get owlDTTriggerDisabledClass() {
|
|
7536
|
-
return this.disabled;
|
|
7537
|
-
}
|
|
7538
|
-
ngOnInit() { }
|
|
7539
7554
|
ngOnChanges(changes) {
|
|
7540
7555
|
if (changes.datepicker) {
|
|
7541
7556
|
this.watchStateChanges();
|
|
@@ -7547,12 +7562,6 @@ class OwlDateTimeTriggerDirective {
|
|
|
7547
7562
|
ngOnDestroy() {
|
|
7548
7563
|
this.stateChanges.unsubscribe();
|
|
7549
7564
|
}
|
|
7550
|
-
handleClickOnHost(event) {
|
|
7551
|
-
if (this.dtPicker) {
|
|
7552
|
-
this.dtPicker.open();
|
|
7553
|
-
event.stopPropagation();
|
|
7554
|
-
}
|
|
7555
|
-
}
|
|
7556
7565
|
watchStateChanges() {
|
|
7557
7566
|
this.stateChanges.unsubscribe();
|
|
7558
7567
|
const inputDisabled = this.dtPicker && this.dtPicker.dtInput
|
|
@@ -7567,19 +7576,21 @@ class OwlDateTimeTriggerDirective {
|
|
|
7567
7576
|
}
|
|
7568
7577
|
}
|
|
7569
7578
|
OwlDateTimeTriggerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlDateTimeTriggerDirective, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7570
|
-
OwlDateTimeTriggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: OwlDateTimeTriggerDirective, selector: "[
|
|
7579
|
+
OwlDateTimeTriggerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: OwlDateTimeTriggerDirective, selector: "[ofeOwlDateTimeTrigger]", inputs: { dtPicker: ["ofeOwlDateTimeTrigger", "dtPicker"], disabled: "disabled" }, host: { listeners: { "click": "handleClickOnHost($event)" }, properties: { "class.owl-dt-trigger-disabled": "this.owlDTTriggerDisabledClass" } }, usesOnChanges: true, ngImport: i0 });
|
|
7571
7580
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlDateTimeTriggerDirective, decorators: [{
|
|
7572
7581
|
type: Directive,
|
|
7573
7582
|
args: [{
|
|
7574
|
-
selector: '[
|
|
7575
|
-
host: {
|
|
7576
|
-
'(click)': 'handleClickOnHost($event)',
|
|
7577
|
-
'[class.owl-dt-trigger-disabled]': 'owlDTTriggerDisabledClass'
|
|
7578
|
-
}
|
|
7583
|
+
selector: '[ofeOwlDateTimeTrigger]'
|
|
7579
7584
|
}]
|
|
7580
7585
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { dtPicker: [{
|
|
7581
7586
|
type: Input,
|
|
7582
|
-
args: ['
|
|
7587
|
+
args: ['ofeOwlDateTimeTrigger']
|
|
7588
|
+
}], owlDTTriggerDisabledClass: [{
|
|
7589
|
+
type: HostBinding,
|
|
7590
|
+
args: ['class.owl-dt-trigger-disabled']
|
|
7591
|
+
}], handleClickOnHost: [{
|
|
7592
|
+
type: HostListener,
|
|
7593
|
+
args: ['click', ['$event']]
|
|
7583
7594
|
}], disabled: [{
|
|
7584
7595
|
type: Input
|
|
7585
7596
|
}] } });
|
|
@@ -7622,17 +7633,17 @@ class NgxDatetimeComponent {
|
|
|
7622
7633
|
}
|
|
7623
7634
|
}
|
|
7624
7635
|
NgxDatetimeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NgxDatetimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7625
|
-
NgxDatetimeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NgxDatetimeComponent, selector: "ngx-
|
|
7636
|
+
NgxDatetimeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NgxDatetimeComponent, selector: "ofe-ngx-date-time-picker", inputs: { id: "id", theme: "theme", datePickerFormat: "datePickerFormat", showWeeks: "showWeeks", weeks: "weeks" }, providers: [
|
|
7626
7637
|
{
|
|
7627
7638
|
provide: NG_VALUE_ACCESSOR,
|
|
7628
7639
|
useExisting: forwardRef(() => NgxDatetimeComponent),
|
|
7629
7640
|
multi: true
|
|
7630
7641
|
}
|
|
7631
|
-
], ngImport: i0, template: "<div class=\"date-time-picker-container\">\n <div\n data-date-picker\n data-date-picker-type=\"single\"\n class=\"cds--date-picker cds--date-picker--single cds--date-picker--light\"\n [ngClass]=\"{\n 'cds--date-picker--light': theme === 'light'\n}\"\n >\n <div class=\"cds--date-picker-container fill\">\n <div class=\"cds--date-picker-input__wrapper\">\n <input\n [disabled]=\"isDisabled\"\n (dateTimeChange)=\"onInput($event)\"\n type=\"text\"\n class=\"cds--date-picker__input fill\"\n [id]=\"id\"\n [value]=\"value\"\n [owlDateTime]=\"dt1\"\n [
|
|
7642
|
+
], ngImport: i0, template: "<div class=\"date-time-picker-container\">\n <div\n data-date-picker\n data-date-picker-type=\"single\"\n class=\"cds--date-picker cds--date-picker--single cds--date-picker--light\"\n [ngClass]=\"{\n 'cds--date-picker--light': theme === 'light'\n}\"\n >\n <div class=\"cds--date-picker-container fill\">\n <div class=\"cds--date-picker-input__wrapper\">\n <input\n [disabled]=\"isDisabled\"\n (dateTimeChange)=\"onInput($event)\"\n type=\"text\"\n class=\"cds--date-picker__input fill\"\n [id]=\"id\"\n [value]=\"value\"\n [owlDateTime]=\"dt1\"\n [ofeOwlDateTimeTrigger]=\"dt1\"\n placeholder=\"mm/dd/yyyy\"\n data-date-picker-input\n />\n <svg\n [ofeOwlDateTimeTrigger]=\"dt1\"\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n style=\"will-change: transform\"\n xmlns=\"http://www.w3.org/2000/svg\"\n data-date-picker-icon=\"true\"\n class=\"cds--date-picker__icon\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M13,2h-2V1h-1v1H6V1H5v1H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V3C14,2.4,13.6,2,13,2z M13,13H3V6h10V13z M13,5H3V3h2v1h1V3h4v1h1V3h2V5z\"\n ></path>\n </svg>\n </div>\n </div>\n </div>\n\n <div\n *ngIf=\"showWeeks\"\n class=\"cds--select some-class week-select-wrapper\"\n [ngClass]=\"{'cds--select--light': theme === 'light'}\"\n >\n <div class=\"cds--select-input__wrapper\">\n <select\n (change)=\"onWeeksSelected($event.target.value)\"\n id=\"select-1\"\n class=\"cds--select-input\"\n >\n <option\n class=\"cds--select-option\"\n value=\"placeholder-item\"\n disabled=\"\"\n hidden=\"\"\n selected=\"\"\n >\n Select Weeks\n </option>\n <option\n class=\"cds--select-option\"\n [value]=\"week\"\n *ngFor=\"let week of weeks\"\n >\n {{week}} Weeks\n </option>\n </select>\n <svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"currentColor\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n aria-hidden=\"true\"\n class=\"cds--select__arrow\"\n >\n <path d=\"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z\"></path>\n </svg>\n </div>\n </div>\n</div>\n<ofe-owl-date-time\n [pickerType]=\"datePickerFormat ? datePickerFormat : 'calendar'\"\n [disabled]=\"isDisabled\"\n #dt1\n></ofe-owl-date-time>\n", styles: [".date-time-picker-container{display:flex;justify-content:space-between}.week-select-wrapper{margin-left:1rem;width:30%}\n"], components: [{ type: OwlDateTimeComponent, selector: "ofe-owl-date-time", inputs: ["backdropClass", "panelClass", "startAt", "pickerType", "pickerMode", "disabled", "opened", "scrollStrategy"], outputs: ["afterPickerClosed", "afterPickerOpen", "yearSelected", "monthSelected"], exportAs: ["owlDateTime"] }], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: OwlDateTimeInputDirective, selector: "input[owlDateTime]", inputs: ["owlDateTime", "owlDateTimeFilter", "min", "max", "selectMode", "value", "values", "_disabled", "rangeSeparator"], outputs: ["dateTimeChange", "dateTimeInput"], exportAs: ["owlDateTimeInput"] }, { type: OwlDateTimeTriggerDirective, selector: "[ofeOwlDateTimeTrigger]", inputs: ["ofeOwlDateTimeTrigger", "disabled"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i19.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i19.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
7632
7643
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NgxDatetimeComponent, decorators: [{
|
|
7633
7644
|
type: Component,
|
|
7634
7645
|
args: [{
|
|
7635
|
-
selector: 'ngx-
|
|
7646
|
+
selector: 'ofe-ngx-date-time-picker',
|
|
7636
7647
|
templateUrl: './ngx-datetime-picker.html',
|
|
7637
7648
|
styleUrls: ['./ngx-datetime-picker.css'],
|
|
7638
7649
|
providers: [
|
|
@@ -7708,7 +7719,7 @@ class NumberInputComponent {
|
|
|
7708
7719
|
/**
|
|
7709
7720
|
* Emits event notifying other classes when a change in state occurs in the input.
|
|
7710
7721
|
*/
|
|
7711
|
-
this.
|
|
7722
|
+
this.numberChange = new EventEmitter();
|
|
7712
7723
|
/**
|
|
7713
7724
|
* Sets the decrement label text
|
|
7714
7725
|
*/
|
|
@@ -7803,7 +7814,7 @@ class NumberInputComponent {
|
|
|
7803
7814
|
const event = new NumberChangeEvent();
|
|
7804
7815
|
event.source = this;
|
|
7805
7816
|
event.value = this.value;
|
|
7806
|
-
this.
|
|
7817
|
+
this.numberChange.emit(event);
|
|
7807
7818
|
this.propagateChange(this.value);
|
|
7808
7819
|
}
|
|
7809
7820
|
onNumberInputChange(event) {
|
|
@@ -7819,7 +7830,7 @@ class NumberInputComponent {
|
|
|
7819
7830
|
*/
|
|
7820
7831
|
NumberInputComponent.numberCount = 0;
|
|
7821
7832
|
NumberInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NumberInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7822
|
-
NumberInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NumberInputComponent, selector: "number-input", inputs: { theme: "theme", disabled: "disabled", skeleton: "skeleton", invalid: "invalid", id: "id", size: "size", required: "required", value: "value", min: "min", max: "max", label: "label", helperText: "helperText", invalidText: "invalidText", step: "step", precision: "precision", warn: "warn", warnText: "warnText", decrementLabel: "decrementLabel", incrementLabel: "incrementLabel" }, outputs: {
|
|
7833
|
+
NumberInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NumberInputComponent, selector: "ofe-number-input", inputs: { theme: "theme", disabled: "disabled", skeleton: "skeleton", invalid: "invalid", id: "id", size: "size", required: "required", value: "value", min: "min", max: "max", label: "label", helperText: "helperText", invalidText: "invalidText", step: "step", precision: "precision", warn: "warn", warnText: "warnText", decrementLabel: "decrementLabel", incrementLabel: "incrementLabel" }, outputs: { numberChange: "numberChange" }, host: { listeners: { "focusout": "focusOut()" } }, providers: [
|
|
7823
7834
|
{
|
|
7824
7835
|
provide: NG_VALUE_ACCESSOR,
|
|
7825
7836
|
useExisting: forwardRef(() => NumberInputComponent),
|
|
@@ -7829,7 +7840,7 @@ NumberInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
7829
7840
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NumberInputComponent, decorators: [{
|
|
7830
7841
|
type: Component,
|
|
7831
7842
|
args: [{
|
|
7832
|
-
selector: 'number-input',
|
|
7843
|
+
selector: 'ofe-number-input',
|
|
7833
7844
|
templateUrl: 'number-input.component.html',
|
|
7834
7845
|
providers: [
|
|
7835
7846
|
{
|
|
@@ -7873,7 +7884,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
7873
7884
|
type: Input
|
|
7874
7885
|
}], warnText: [{
|
|
7875
7886
|
type: Input
|
|
7876
|
-
}],
|
|
7887
|
+
}], numberChange: [{
|
|
7877
7888
|
type: Output
|
|
7878
7889
|
}], decrementLabel: [{
|
|
7879
7890
|
type: Input
|
|
@@ -7898,7 +7909,6 @@ class RadioButtonControlComponent {
|
|
|
7898
7909
|
return option;
|
|
7899
7910
|
});
|
|
7900
7911
|
}
|
|
7901
|
-
ngAfterViewInit() { }
|
|
7902
7912
|
writeValue(value) { }
|
|
7903
7913
|
registerOnChange(fn) {
|
|
7904
7914
|
this.onChange = fn;
|
|
@@ -7934,7 +7944,7 @@ class RadioButtonControlComponent {
|
|
|
7934
7944
|
}
|
|
7935
7945
|
}
|
|
7936
7946
|
RadioButtonControlComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RadioButtonControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7937
|
-
RadioButtonControlComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: RadioButtonControlComponent, selector: "radio", inputs: { id: "id", selected: "selected", options: "options", allowRadioUnselect: "allowRadioUnselect" }, providers: [
|
|
7947
|
+
RadioButtonControlComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: RadioButtonControlComponent, selector: "ofe-radio-button", inputs: { id: "id", selected: "selected", options: "options", allowRadioUnselect: "allowRadioUnselect" }, providers: [
|
|
7938
7948
|
{
|
|
7939
7949
|
provide: NG_VALUE_ACCESSOR,
|
|
7940
7950
|
useExisting: forwardRef(() => RadioButtonControlComponent),
|
|
@@ -7944,7 +7954,7 @@ RadioButtonControlComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
7944
7954
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: RadioButtonControlComponent, decorators: [{
|
|
7945
7955
|
type: Component,
|
|
7946
7956
|
args: [{
|
|
7947
|
-
selector: 'radio',
|
|
7957
|
+
selector: 'ofe-radio-button',
|
|
7948
7958
|
templateUrl: './radio.component.html',
|
|
7949
7959
|
providers: [
|
|
7950
7960
|
{
|
|
@@ -7979,7 +7989,6 @@ class CheckboxControlComponent {
|
|
|
7979
7989
|
return option;
|
|
7980
7990
|
});
|
|
7981
7991
|
}
|
|
7982
|
-
ngAfterViewInit() { }
|
|
7983
7992
|
writeValue(value) {
|
|
7984
7993
|
this.value = value;
|
|
7985
7994
|
}
|
|
@@ -8023,7 +8032,7 @@ class CheckboxControlComponent {
|
|
|
8023
8032
|
}
|
|
8024
8033
|
}
|
|
8025
8034
|
CheckboxControlComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CheckboxControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8026
|
-
CheckboxControlComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CheckboxControlComponent, selector: "checkbox", inputs: { id: "id", options: "options", selected: "selected" }, providers: [
|
|
8035
|
+
CheckboxControlComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CheckboxControlComponent, selector: "ofe-checkbox", inputs: { id: "id", options: "options", selected: "selected" }, providers: [
|
|
8027
8036
|
{
|
|
8028
8037
|
provide: NG_VALUE_ACCESSOR,
|
|
8029
8038
|
useExisting: forwardRef(() => CheckboxControlComponent),
|
|
@@ -8033,7 +8042,7 @@ CheckboxControlComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
8033
8042
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CheckboxControlComponent, decorators: [{
|
|
8034
8043
|
type: Component,
|
|
8035
8044
|
args: [{
|
|
8036
|
-
selector: 'checkbox',
|
|
8045
|
+
selector: 'ofe-checkbox',
|
|
8037
8046
|
templateUrl: './checkbox.component.html',
|
|
8038
8047
|
providers: [
|
|
8039
8048
|
{
|
|
@@ -8060,7 +8069,6 @@ class AppointmentsOverviewComponent {
|
|
|
8060
8069
|
this.appointments = [];
|
|
8061
8070
|
this.today = '';
|
|
8062
8071
|
}
|
|
8063
|
-
ngOnInit() { }
|
|
8064
8072
|
ngOnChanges() {
|
|
8065
8073
|
this.node.control.valueChanges.subscribe((appointmentDate) => {
|
|
8066
8074
|
var _a, _b;
|
|
@@ -8156,11 +8164,11 @@ class AppointmentsOverviewComponent {
|
|
|
8156
8164
|
}
|
|
8157
8165
|
}
|
|
8158
8166
|
AppointmentsOverviewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AppointmentsOverviewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8159
|
-
AppointmentsOverviewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppointmentsOverviewComponent, selector: "appointments-overview", inputs: { node: "node" }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"showAppointments\" class=\"container\">\n <div *ngIf=\"loadingAppointments\">\n <span *ngIf=\"!appointmentsLoaded && errorLoadingAppointments\"\n >Error checking appointments</span\n >\n <div\n *ngIf=\"loadingAppointments\"\n class=\"cds--inline-loading\"\n aria-live=\"assertive\"\n >\n <div class=\"cds--inline-loading__animation\">\n <div\n aria-atomic=\"true\"\n aria-labelledby=\"loading-id-2\"\n aria-live=\"assertive\"\n class=\"cds--loading cds--loading--small\"\n >\n <label id=\"loading-id-2\" class=\"cds--visually-hidden\"\n >Active loading indicator</label\n ><svg class=\"cds--loading__svg\" viewBox=\"0 0 100 100\">\n <title>Active loading indicator</title>\n <circle\n class=\"cds--loading__background\"\n cx=\"50%\"\n cy=\"50%\"\n r=\"44\"\n ></circle>\n <circle\n class=\"cds--loading__stroke\"\n cx=\"50%\"\n cy=\"50%\"\n r=\"44\"\n ></circle>\n </svg>\n </div>\n </div>\n <div class=\"cds--inline-loading__text\">Loading...</div>\n </div>\n </div>\n\n <div\n class=\"cds--data-table-content\"\n *ngIf=\"appointmentsLoaded && !errorLoadingAppointments\"\n >\n <table class=\"cds--data-table cds--data-table--no-border\">\n <thead>\n <tr>\n <th\n *ngFor=\"let appointment of appointments\"\n scope=\"col\"\n [ngClass]=\"{ active: appointment.date === today }\"\n >\n {{ appointment.date }}\n </th>\n </tr>\n </thead>\n <tbody aria-live=\"polite\">\n <tr>\n <td\n *ngFor=\"let appointment of appointments\"\n [ngClass]=\"{ active: appointment.date === today }\"\n >\n {{ appointment.count }}\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n</div>\n", styles: [".container{margin-top:.625rem}.active{background-color:#e0e0e0;cursor:pointer}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
8167
|
+
AppointmentsOverviewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppointmentsOverviewComponent, selector: "ofe-appointments-overview", inputs: { node: "node" }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"showAppointments\" class=\"container\">\n <div *ngIf=\"loadingAppointments\">\n <span *ngIf=\"!appointmentsLoaded && errorLoadingAppointments\"\n >Error checking appointments</span\n >\n <div\n *ngIf=\"loadingAppointments\"\n class=\"cds--inline-loading\"\n aria-live=\"assertive\"\n >\n <div class=\"cds--inline-loading__animation\">\n <div\n aria-atomic=\"true\"\n aria-labelledby=\"loading-id-2\"\n aria-live=\"assertive\"\n class=\"cds--loading cds--loading--small\"\n >\n <label id=\"loading-id-2\" class=\"cds--visually-hidden\"\n >Active loading indicator</label\n ><svg class=\"cds--loading__svg\" viewBox=\"0 0 100 100\">\n <title>Active loading indicator</title>\n <circle\n class=\"cds--loading__background\"\n cx=\"50%\"\n cy=\"50%\"\n r=\"44\"\n ></circle>\n <circle\n class=\"cds--loading__stroke\"\n cx=\"50%\"\n cy=\"50%\"\n r=\"44\"\n ></circle>\n </svg>\n </div>\n </div>\n <div class=\"cds--inline-loading__text\">Loading...</div>\n </div>\n </div>\n\n <div\n class=\"cds--data-table-content\"\n *ngIf=\"appointmentsLoaded && !errorLoadingAppointments\"\n >\n <table class=\"cds--data-table cds--data-table--no-border\">\n <thead>\n <tr>\n <th\n *ngFor=\"let appointment of appointments\"\n scope=\"col\"\n [ngClass]=\"{ active: appointment.date === today }\"\n >\n {{ appointment.date }}\n </th>\n </tr>\n </thead>\n <tbody aria-live=\"polite\">\n <tr>\n <td\n *ngFor=\"let appointment of appointments\"\n [ngClass]=\"{ active: appointment.date === today }\"\n >\n {{ appointment.count }}\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n</div>\n", styles: [".container{margin-top:.625rem}.active{background-color:#e0e0e0;cursor:pointer}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
8160
8168
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AppointmentsOverviewComponent, decorators: [{
|
|
8161
8169
|
type: Component,
|
|
8162
8170
|
args: [{
|
|
8163
|
-
selector: 'appointments-overview',
|
|
8171
|
+
selector: 'ofe-appointments-overview',
|
|
8164
8172
|
templateUrl: './appointments-overview.component.html',
|
|
8165
8173
|
styleUrls: ['./appointments-overview.component.css']
|
|
8166
8174
|
}]
|
|
@@ -8168,107 +8176,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
8168
8176
|
type: Input
|
|
8169
8177
|
}] } });
|
|
8170
8178
|
|
|
8171
|
-
class HistoricalFieldHelperService {
|
|
8172
|
-
getDisplayTextFromOptions(question, valueProperty, displayProperty) {
|
|
8173
|
-
let displayText = '';
|
|
8174
|
-
const historicalValue = question.historicalDataValue;
|
|
8175
|
-
if (_.isArray(historicalValue.value)) {
|
|
8176
|
-
let valueConverted = 0;
|
|
8177
|
-
_.each(historicalValue.value, (val) => {
|
|
8178
|
-
_.each(question.options, (option) => {
|
|
8179
|
-
if (option[valueProperty] === val) {
|
|
8180
|
-
if (valueConverted === 0) {
|
|
8181
|
-
displayText = displayText + option[displayProperty];
|
|
8182
|
-
}
|
|
8183
|
-
else {
|
|
8184
|
-
displayText = displayText + ', ' + option[displayProperty];
|
|
8185
|
-
}
|
|
8186
|
-
valueConverted++;
|
|
8187
|
-
}
|
|
8188
|
-
});
|
|
8189
|
-
});
|
|
8190
|
-
}
|
|
8191
|
-
else {
|
|
8192
|
-
_.each(question.options, (option) => {
|
|
8193
|
-
if (option[valueProperty] === historicalValue.value) {
|
|
8194
|
-
displayText = option[displayProperty];
|
|
8195
|
-
}
|
|
8196
|
-
});
|
|
8197
|
-
}
|
|
8198
|
-
return displayText;
|
|
8199
|
-
}
|
|
8200
|
-
}
|
|
8201
|
-
HistoricalFieldHelperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HistoricalFieldHelperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8202
|
-
HistoricalFieldHelperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HistoricalFieldHelperService });
|
|
8203
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HistoricalFieldHelperService, decorators: [{
|
|
8204
|
-
type: Injectable
|
|
8205
|
-
}] });
|
|
8206
|
-
|
|
8207
|
-
class HistoricalValueDirective {
|
|
8208
|
-
constructor(historicalFieldHelper) {
|
|
8209
|
-
this.historicalFieldHelper = historicalFieldHelper;
|
|
8210
|
-
this._nodeChange = new EventEmitter();
|
|
8211
|
-
}
|
|
8212
|
-
setValue(e) {
|
|
8213
|
-
if (e.target.name === 'historyValue') {
|
|
8214
|
-
if (this._node &&
|
|
8215
|
-
(!this.compareString(this._node.question.renderingType, 'page') ||
|
|
8216
|
-
!this.compareString(this._node.question.renderingType, 'section'))) {
|
|
8217
|
-
this._node.control.setValue(this._node.question.historicalDataValue.value);
|
|
8218
|
-
this._node.question['historicalValue'] = this._node.question.historicalDataValue;
|
|
8219
|
-
e.stopPropagation();
|
|
8220
|
-
this._nodeChange.emit(this._node);
|
|
8221
|
-
}
|
|
8222
|
-
}
|
|
8223
|
-
}
|
|
8224
|
-
compareString(a, b) {
|
|
8225
|
-
if (a === b) {
|
|
8226
|
-
return true;
|
|
8227
|
-
}
|
|
8228
|
-
else {
|
|
8229
|
-
return false;
|
|
8230
|
-
}
|
|
8231
|
-
}
|
|
8232
|
-
set node(node) {
|
|
8233
|
-
if (node) {
|
|
8234
|
-
this._node = node;
|
|
8235
|
-
if (this._node.question.enableHistoricalValue &&
|
|
8236
|
-
!_.isUndefined(this._node.question.historicalDataValue)) {
|
|
8237
|
-
const display = { text: '', _date: '' };
|
|
8238
|
-
if (this._node.question.renderingType === 'select' ||
|
|
8239
|
-
this._node.question.renderingType === 'multi-select' ||
|
|
8240
|
-
this._node.question.renderingType === 'single-select') {
|
|
8241
|
-
display.text = this.historicalFieldHelper.getDisplayTextFromOptions(this._node.question, 'value', 'label');
|
|
8242
|
-
display._date = this._node.question.historicalDataValue.valueDate;
|
|
8243
|
-
this._node.question['historicalDisplay'] = display;
|
|
8244
|
-
}
|
|
8245
|
-
else if (!_.isUndefined(this._node.question.historicalDataValue)) {
|
|
8246
|
-
display.text = this._node.question.historicalDataValue.value;
|
|
8247
|
-
display._date = this._node.question.historicalDataValue.valueDate;
|
|
8248
|
-
this._node.question['historicalDisplay'] = display;
|
|
8249
|
-
}
|
|
8250
|
-
}
|
|
8251
|
-
}
|
|
8252
|
-
}
|
|
8253
|
-
}
|
|
8254
|
-
HistoricalValueDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HistoricalValueDirective, deps: [{ token: HistoricalFieldHelperService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
8255
|
-
HistoricalValueDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: HistoricalValueDirective, selector: "[node]", inputs: { _node: "_node", node: "node" }, outputs: { _nodeChange: "_nodeChange" }, host: { listeners: { "click": "setValue($event)" } }, ngImport: i0 });
|
|
8256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HistoricalValueDirective, decorators: [{
|
|
8257
|
-
type: Directive,
|
|
8258
|
-
args: [{
|
|
8259
|
-
selector: `[node]`
|
|
8260
|
-
}]
|
|
8261
|
-
}], ctorParameters: function () { return [{ type: HistoricalFieldHelperService }]; }, propDecorators: { _node: [{
|
|
8262
|
-
type: Input
|
|
8263
|
-
}], _nodeChange: [{
|
|
8264
|
-
type: Output
|
|
8265
|
-
}], setValue: [{
|
|
8266
|
-
type: HostListener,
|
|
8267
|
-
args: ['click', ['$event']]
|
|
8268
|
-
}], node: [{
|
|
8269
|
-
type: Input
|
|
8270
|
-
}] } });
|
|
8271
|
-
|
|
8272
8179
|
const COLLAPSE_ANIMATION_TIMING = '400ms cubic-bezier(0.4,0.0,0.2,1)';
|
|
8273
8180
|
const expandAnimation = [
|
|
8274
8181
|
style({ height: 0, visibility: 'hidden' }),
|
|
@@ -8279,11 +8186,11 @@ const collapseAnimation = [
|
|
|
8279
8186
|
animate(COLLAPSE_ANIMATION_TIMING, style({ height: 0, visibility: 'hidden' }))
|
|
8280
8187
|
];
|
|
8281
8188
|
|
|
8282
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
8283
8189
|
class CollapseDirective {
|
|
8284
8190
|
constructor(_el, _renderer, _builder) {
|
|
8285
8191
|
this._el = _el;
|
|
8286
8192
|
this._renderer = _renderer;
|
|
8193
|
+
// @HostBinding('class.collapse')
|
|
8287
8194
|
/** This event fires as soon as content collapses */
|
|
8288
8195
|
this.collapsed = new EventEmitter();
|
|
8289
8196
|
/** This event fires when collapsing is started */
|
|
@@ -8405,16 +8312,12 @@ class CollapseDirective {
|
|
|
8405
8312
|
}
|
|
8406
8313
|
}
|
|
8407
8314
|
CollapseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CollapseDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1$6.AnimationBuilder }], target: i0.ɵɵFactoryTarget.Directive });
|
|
8408
|
-
CollapseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: CollapseDirective, selector: "[
|
|
8315
|
+
CollapseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: CollapseDirective, selector: "[ofeCollapse]", inputs: { display: "display", isAnimated: "isAnimated", collapse: "collapse" }, outputs: { collapsed: "collapsed", collapses: "collapses", expanded: "expanded", expands: "expands" }, host: { properties: { "class.in": "this.isExpanded", "class.show": "this.isExpanded", "attr.aria-expanded": "this.isExpanded", "attr.aria-hidden": "this.isCollapsed", "class.collapse": "this.isCollapse", "class.collapsing": "this.isCollapsing" } }, exportAs: ["bs-collapse"], ngImport: i0 });
|
|
8409
8316
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CollapseDirective, decorators: [{
|
|
8410
8317
|
type: Directive,
|
|
8411
8318
|
args: [{
|
|
8412
|
-
selector: '[
|
|
8413
|
-
exportAs: 'bs-collapse'
|
|
8414
|
-
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
|
|
8415
|
-
host: {
|
|
8416
|
-
'[class.collapse]': 'true'
|
|
8417
|
-
}
|
|
8319
|
+
selector: '[ofeCollapse]',
|
|
8320
|
+
exportAs: 'bs-collapse'
|
|
8418
8321
|
}]
|
|
8419
8322
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1$6.AnimationBuilder }]; }, propDecorators: { collapsed: [{
|
|
8420
8323
|
type: Output
|
|
@@ -8450,38 +8353,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
8450
8353
|
type: Input
|
|
8451
8354
|
}] } });
|
|
8452
8355
|
|
|
8453
|
-
/* eslint-disable @angular-eslint/component-class-suffix, @angular-eslint/directive-class-suffix */
|
|
8454
|
-
class Option$1 {
|
|
8455
|
-
constructor() {
|
|
8456
|
-
this.inputClass = 'cds--select-option';
|
|
8457
|
-
}
|
|
8458
|
-
}
|
|
8459
|
-
Option$1.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Option$1, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8460
|
-
Option$1.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: Option$1, selector: "option", host: { properties: { "class": "this.inputClass" } }, ngImport: i0 });
|
|
8461
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Option$1, decorators: [{
|
|
8462
|
-
type: Directive,
|
|
8463
|
-
args: [{
|
|
8464
|
-
// eslint-disable-next-line
|
|
8465
|
-
selector: 'option'
|
|
8466
|
-
}]
|
|
8467
|
-
}], propDecorators: { inputClass: [{
|
|
8468
|
-
type: HostBinding,
|
|
8469
|
-
args: ['class']
|
|
8470
|
-
}] } });
|
|
8471
|
-
|
|
8472
|
-
/* eslint-disable @angular-eslint/component-class-suffix, @angular-eslint/directive-class-suffix */
|
|
8473
8356
|
/**
|
|
8474
8357
|
* A directive for applying styling to a textarea element.
|
|
8475
8358
|
*
|
|
8476
8359
|
* Example:
|
|
8477
8360
|
*
|
|
8478
8361
|
* ```html
|
|
8479
|
-
* <textarea
|
|
8362
|
+
* <textarea ofeTextAreaInput></textarea>
|
|
8480
8363
|
* ```
|
|
8481
8364
|
*
|
|
8482
8365
|
* See the [vanilla carbon docs](http://www.carbondesignsystem.com/components/text-input/code) for more detail.
|
|
8483
8366
|
*/
|
|
8484
|
-
class
|
|
8367
|
+
class TextAreaDirective {
|
|
8485
8368
|
constructor() {
|
|
8486
8369
|
/**
|
|
8487
8370
|
* `light` or `dark` input theme
|
|
@@ -8495,12 +8378,12 @@ class TextArea {
|
|
|
8495
8378
|
return this.theme === 'light';
|
|
8496
8379
|
}
|
|
8497
8380
|
}
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type:
|
|
8381
|
+
TextAreaDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TextAreaDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8382
|
+
TextAreaDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TextAreaDirective, selector: "[ofeTextAreaInput]", inputs: { theme: "theme", invalid: "invalid", skeleton: "skeleton" }, host: { properties: { "class.cds--text-area": "this.baseClass", "class.cds--text-area--invalid": "this.invalid", "class.cds--skeleton": "this.skeleton", "class.cds--text-area--light": "this.isLightTheme" } }, ngImport: i0 });
|
|
8383
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TextAreaDirective, decorators: [{
|
|
8501
8384
|
type: Directive,
|
|
8502
8385
|
args: [{
|
|
8503
|
-
selector: '[
|
|
8386
|
+
selector: '[ofeTextAreaInput]'
|
|
8504
8387
|
}]
|
|
8505
8388
|
}], propDecorators: { theme: [{
|
|
8506
8389
|
type: Input
|
|
@@ -8522,19 +8405,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
8522
8405
|
args: ['class.cds--text-area--light']
|
|
8523
8406
|
}] } });
|
|
8524
8407
|
|
|
8525
|
-
/* eslint-disable @angular-eslint/component-class-suffix, @angular-eslint/directive-class-suffix */
|
|
8526
8408
|
/**
|
|
8527
8409
|
* A directive for applying styling to an input element.
|
|
8528
8410
|
*
|
|
8529
8411
|
* Example:
|
|
8530
8412
|
*
|
|
8531
8413
|
* ```html
|
|
8532
|
-
* <input
|
|
8414
|
+
* <input ofeTextInput/>
|
|
8533
8415
|
* ```
|
|
8534
8416
|
*
|
|
8535
8417
|
* See the [vanilla carbon docs](http://www.carbondesignsystem.com/components/text-input/code) for more detail.
|
|
8536
8418
|
*/
|
|
8537
|
-
class
|
|
8419
|
+
class TextInputDirective {
|
|
8538
8420
|
constructor() {
|
|
8539
8421
|
/**
|
|
8540
8422
|
* `light` or `dark` input theme
|
|
@@ -8559,12 +8441,12 @@ class TextInput {
|
|
|
8559
8441
|
return this.theme === 'light';
|
|
8560
8442
|
}
|
|
8561
8443
|
}
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type:
|
|
8444
|
+
TextInputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TextInputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8445
|
+
TextInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TextInputDirective, selector: "[ofeTextInput]", inputs: { theme: "theme", size: "size", invalid: "invalid", warn: "warn", skeleton: "skeleton" }, host: { properties: { "class.cds--text-input": "this.inputClass", "class.cds--text-input--xl": "this.isSizeXl", "class.cds--text-input--sm": "this.isSizeSm", "class.cds--text-input--invalid": "this.invalid", "class.cds--text-input__field-wrapper--warning": "this.warn", "class.cds--skeleton": "this.skeleton", "class.cds--text-input--light": "this.isLightTheme" } }, ngImport: i0 });
|
|
8446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TextInputDirective, decorators: [{
|
|
8565
8447
|
type: Directive,
|
|
8566
8448
|
args: [{
|
|
8567
|
-
selector: '[
|
|
8449
|
+
selector: '[ofeTextInput]'
|
|
8568
8450
|
}]
|
|
8569
8451
|
}], propDecorators: { theme: [{
|
|
8570
8452
|
type: Input
|
|
@@ -8599,6 +8481,107 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
8599
8481
|
args: ['class.cds--text-input--light']
|
|
8600
8482
|
}] } });
|
|
8601
8483
|
|
|
8484
|
+
class HistoricalFieldHelperService {
|
|
8485
|
+
getDisplayTextFromOptions(question, valueProperty, displayProperty) {
|
|
8486
|
+
let displayText = '';
|
|
8487
|
+
const historicalValue = question.historicalDataValue;
|
|
8488
|
+
if (_.isArray(historicalValue.value)) {
|
|
8489
|
+
let valueConverted = 0;
|
|
8490
|
+
_.each(historicalValue.value, (val) => {
|
|
8491
|
+
_.each(question.options, (option) => {
|
|
8492
|
+
if (option[valueProperty] === val) {
|
|
8493
|
+
if (valueConverted === 0) {
|
|
8494
|
+
displayText = displayText + option[displayProperty];
|
|
8495
|
+
}
|
|
8496
|
+
else {
|
|
8497
|
+
displayText = displayText + ', ' + option[displayProperty];
|
|
8498
|
+
}
|
|
8499
|
+
valueConverted++;
|
|
8500
|
+
}
|
|
8501
|
+
});
|
|
8502
|
+
});
|
|
8503
|
+
}
|
|
8504
|
+
else {
|
|
8505
|
+
_.each(question.options, (option) => {
|
|
8506
|
+
if (option[valueProperty] === historicalValue.value) {
|
|
8507
|
+
displayText = option[displayProperty];
|
|
8508
|
+
}
|
|
8509
|
+
});
|
|
8510
|
+
}
|
|
8511
|
+
return displayText;
|
|
8512
|
+
}
|
|
8513
|
+
}
|
|
8514
|
+
HistoricalFieldHelperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HistoricalFieldHelperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8515
|
+
HistoricalFieldHelperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HistoricalFieldHelperService });
|
|
8516
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HistoricalFieldHelperService, decorators: [{
|
|
8517
|
+
type: Injectable
|
|
8518
|
+
}] });
|
|
8519
|
+
|
|
8520
|
+
class HistoricalValueDirective {
|
|
8521
|
+
constructor(historicalFieldHelper) {
|
|
8522
|
+
this.historicalFieldHelper = historicalFieldHelper;
|
|
8523
|
+
this._nodeChange = new EventEmitter();
|
|
8524
|
+
}
|
|
8525
|
+
setValue(e) {
|
|
8526
|
+
if (e.target.name === 'historyValue') {
|
|
8527
|
+
if (this._node &&
|
|
8528
|
+
(!this.compareString(this._node.question.renderingType, 'page') ||
|
|
8529
|
+
!this.compareString(this._node.question.renderingType, 'section'))) {
|
|
8530
|
+
this._node.control.setValue(this._node.question.historicalDataValue.value);
|
|
8531
|
+
this._node.question['historicalValue'] = this._node.question.historicalDataValue;
|
|
8532
|
+
e.stopPropagation();
|
|
8533
|
+
this._nodeChange.emit(this._node);
|
|
8534
|
+
}
|
|
8535
|
+
}
|
|
8536
|
+
}
|
|
8537
|
+
compareString(a, b) {
|
|
8538
|
+
if (a === b) {
|
|
8539
|
+
return true;
|
|
8540
|
+
}
|
|
8541
|
+
else {
|
|
8542
|
+
return false;
|
|
8543
|
+
}
|
|
8544
|
+
}
|
|
8545
|
+
set node(node) {
|
|
8546
|
+
if (node) {
|
|
8547
|
+
this._node = node;
|
|
8548
|
+
if (this._node.question.enableHistoricalValue &&
|
|
8549
|
+
!_.isUndefined(this._node.question.historicalDataValue)) {
|
|
8550
|
+
const display = { text: '', _date: '' };
|
|
8551
|
+
if (this._node.question.renderingType === 'select' ||
|
|
8552
|
+
this._node.question.renderingType === 'multi-select' ||
|
|
8553
|
+
this._node.question.renderingType === 'single-select') {
|
|
8554
|
+
display.text = this.historicalFieldHelper.getDisplayTextFromOptions(this._node.question, 'value', 'label');
|
|
8555
|
+
display._date = this._node.question.historicalDataValue.valueDate;
|
|
8556
|
+
this._node.question['historicalDisplay'] = display;
|
|
8557
|
+
}
|
|
8558
|
+
else if (!_.isUndefined(this._node.question.historicalDataValue)) {
|
|
8559
|
+
display.text = this._node.question.historicalDataValue.value;
|
|
8560
|
+
display._date = this._node.question.historicalDataValue.valueDate;
|
|
8561
|
+
this._node.question['historicalDisplay'] = display;
|
|
8562
|
+
}
|
|
8563
|
+
}
|
|
8564
|
+
}
|
|
8565
|
+
}
|
|
8566
|
+
}
|
|
8567
|
+
HistoricalValueDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HistoricalValueDirective, deps: [{ token: HistoricalFieldHelperService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
8568
|
+
HistoricalValueDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: HistoricalValueDirective, selector: "[ofeNode]", inputs: { _node: "_node", node: "node" }, outputs: { _nodeChange: "_nodeChange" }, host: { listeners: { "click": "setValue($event)" } }, ngImport: i0 });
|
|
8569
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HistoricalValueDirective, decorators: [{
|
|
8570
|
+
type: Directive,
|
|
8571
|
+
args: [{
|
|
8572
|
+
selector: `[ofeNode]`
|
|
8573
|
+
}]
|
|
8574
|
+
}], ctorParameters: function () { return [{ type: HistoricalFieldHelperService }]; }, propDecorators: { _node: [{
|
|
8575
|
+
type: Input
|
|
8576
|
+
}], _nodeChange: [{
|
|
8577
|
+
type: Output
|
|
8578
|
+
}], setValue: [{
|
|
8579
|
+
type: HostListener,
|
|
8580
|
+
args: ['click', ['$event']]
|
|
8581
|
+
}], node: [{
|
|
8582
|
+
type: Input
|
|
8583
|
+
}] } });
|
|
8584
|
+
|
|
8602
8585
|
class FormRendererComponent {
|
|
8603
8586
|
constructor(validationFactory, dataSources, formErrorsService, document) {
|
|
8604
8587
|
this.validationFactory = validationFactory;
|
|
@@ -8799,11 +8782,11 @@ class FormRendererComponent {
|
|
|
8799
8782
|
}
|
|
8800
8783
|
}
|
|
8801
8784
|
FormRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormRendererComponent, deps: [{ token: ValidationFactory }, { token: DataSources }, { token: FormErrorsService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
8802
|
-
FormRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FormRendererComponent, selector: "form-renderer", inputs: { parentComponent: "parentComponent", node: "node", parentGroup: "parentGroup", theme: "theme", labelMap: "labelMap", controlId: "controlId" }, usesOnChanges: true, ngImport: i0, template: "<!--CONTAINERS-->\n<div *ngIf=\"node.question.renderingType === 'form'\">\n <ngx-tab-set (onSelect)=\"tabSelected($event)\" [selectedIndex]=\"activeTab\">\n <ngx-tab\n [tabTitle]=\"question.label\"\n *ngFor=\"let question of node.question.questions; let i = index\"\n >\n <form-renderer\n [node]=\"node.children[question.key]\"\n [parentComponent]=\"this\"\n [parentGroup]=\"node.control\"\n [labelMap]=\"labelMap\"\n >\n </form-renderer>\n </ngx-tab>\n\n <div *ngIf=\"showErrors()\" class=\"container\">\n <div\n data-notification\n *ngFor=\"let errorNode of errorNodes\"\n class=\"cds--inline-notification cds--inline-notification--error cds--inline-notification--low-contrast pointer\"\n role=\"alert\"\n (click)=\"announceErrorField(errorNode)\"\n >\n <div class=\"cds--inline-notification__details\">\n <div class=\"cds--inline-notification__text-wrapper\">\n <p class=\"cds--inline-notification__title\">\n {{ errorNode.question.label }}\n </p>\n <p class=\"cds--inline-notification__subtitle\">\n {{ getControlError(errorNode) }}\n </p>\n </div>\n </div>\n <button\n tabindex=\"0\"\n class=\"cds--inline-notification__action-button cds--btn cds--btn--sm cds--btn--ghost\"\n type=\"button\"\n >\n Fix\n </button>\n <svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n style=\"will-change: transform\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"cds--inline-notification__icon\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z\"\n ></path>\n <path\n d=\"M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z\"\n data-icon-path=\"inner-path\"\n opacity=\"0\"\n ></path>\n </svg>\n </div>\n </div>\n </ngx-tab-set>\n</div>\n<div *ngIf=\"node.question.renderingType === 'page'\">\n <!--Page Components-->\n <app-custom-component-wrapper\n [dark]=\"theme === 'light'\"\n [componentConfigs]=\"node.question.componentConfigs\"\n >\n </app-custom-component-wrapper>\n <form-renderer\n *ngFor=\"let question of node.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"node.children[question.key]\"\n [parentGroup]=\"parentGroup\"\n [labelMap]=\"labelMap\"\n ></form-renderer>\n</div>\n<div *ngIf=\"node.question.renderingType === 'section' && checkSection(node)\">\n <div\n class=\"cds--accordion__item\"\n [ngClass]=\"{ 'cds--accordion__item--active': !isCollapsed }\"\n >\n <button\n class=\"cds--accordion__heading\"\n type=\"button\"\n [attr.aria-expanded]=\"isCollapsed ? 'false' : 'true'\"\n aria-controls=\"accordion-item-0\"\n (click)=\"isCollapsed = !isCollapsed\"\n >\n <svg\n class=\"cds--accordion__arrow\"\n ibmIcon=\"chevron--right\"\n size=\"16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n aria-hidden=\"true\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n >\n <path d=\"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z\"></path>\n </svg>\n <p class=\"cds--accordion__title\">\n {{ node.question.label }}\n </p>\n </button>\n <div [collapse]=\"isCollapsed\">\n <!--Section Components-->\n <app-custom-component-wrapper\n [dark]=\"theme === 'light'\"\n [componentConfigs]=\"node.question.componentConfigs\"\n >\n </app-custom-component-wrapper>\n <div\n class=\"cds--accordion__content accordion-content-override\"\n [ngClass]=\"{\n 'accordion-content-dark': theme === 'light'\n }\"\n >\n <form-renderer\n *ngFor=\"let question of node.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"node.children[question.key]\"\n [parentGroup]=\"parentGroup\"\n [labelMap]=\"labelMap\"\n ></form-renderer>\n </div>\n </div>\n </div>\n</div>\n\n<!-- MESSAGES -->\n<div\n *ngIf=\"node.control && node.control.alert && node.control.alert !== ''\"\n class=\"alert alert-warning\"\n>\n <a class=\"close\" data-dismiss=\"alert\">×</a> {{ node.control.alert }}\n</div>\n\n<!--CONTROLS-->\n\n<div\n *ngIf=\"node.question.controlType === 0\"\n [formGroup]=\"parentGroup\"\n [hidden]=\"node.control.hidden\"\n [ngClass]=\"{ disabled: node.control.disabled }\"\n>\n <app-custom-component-wrapper\n [dark]=\"!(theme === 'light')\"\n [componentConfigs]=\"node.question.componentConfigs\"\n >\n </app-custom-component-wrapper>\n <div class=\"cds--form-item\">\n <!--LEAF CONTROL-->\n <div class=\"question-area\">\n <a\n class=\"form-tooltip pull-right\"\n (click)=\"toggleInformation(node.question.extras.id)\"\n data-placement=\"right\"\n *ngIf=\"\n node.question &&\n node.question.extras.questionInfo &&\n node.question.extras.questionInfo !== '' &&\n node.question.extras.questionInfo !== ' '\n \"\n >\n <i class=\"glyphicon glyphicon-question-sign\" aria-hidden=\"true\"></i>\n </a>\n\n <label\n *ngIf=\"node.question.label\"\n [style.color]=\"hasErrors() ? 'red' : ''\"\n class=\"cds--label\"\n [attr.for]=\"node.question.key\"\n >\n {{ node.question.required ? '*' : '' }}\n {{ node.question.prefix ? node.question.prefix + ' ' : ''\n }}{{ node.question.label }}\n </label>\n\n <div\n *ngIf=\"\n node.question.extras.questionOptions.customControl;\n else nativeControls\n \"\n >\n <app-custom-control-wrapper\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n [question]=\"node.question\"\n >\n </app-custom-control-wrapper>\n </div>\n\n <ng-template #nativeControls>\n <div class=\"afe-control\" [ngSwitch]=\"node.question.renderingType\">\n <ibm-select\n [theme]=\"theme\"\n *ngSwitchCase=\"'select'\"\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n >\n <option *ngFor=\"let o of node.question.options\" [value]=\"o.value\">\n {{ o.label }}\n </option>\n </ibm-select>\n\n <div *ngSwitchCase=\"'file'\">\n <app-file-upload\n [dataSource]=\"dataSource\"\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n (fileChanged)=\"upload($event)\"\n >\n </app-file-upload>\n </div>\n\n <textarea\n [theme]=\"theme\"\n ibmTextArea\n [ngClass]=\"{\n 'cds--text-area--light': theme === 'light',\n 'cds--text-area--invalid': !node.control.valid\n }\"\n [placeholder]=\"node.question.placeholder\"\n [rows]=\"node.question.rows\"\n class=\"cds--text-area\"\n *ngSwitchCase=\"'textarea'\"\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n [readOnly]=\"node.question.extras.readOnly\"\n >\n </textarea>\n\n <ngx-remote-select\n [theme]=\"theme\"\n *ngSwitchCase=\"'remote-select'\"\n [placeholder]=\"node.question.placeholder\"\n tabindex=\"0\"\n [dataSource]=\"dataSource\"\n [componentID]=\"node.question.key + 'id'\"\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n ></ngx-remote-select>\n\n <ngx-datetimepicker\n [weeks]=\"node.question.extras.questionOptions.weeksList\"\n [showWeeks]=\"node.question.showWeeksAdder\"\n [theme]=\"theme\"\n [id]=\"node.question.key + 'id'\"\n [formControlName]=\"node.question.key\"\n *ngSwitchCase=\"'date'\"\n [datePickerFormat]=\"node.question.datePickerFormat\"\n >\n </ngx-datetimepicker>\n <ng-select\n [ngClass]=\"{ 'afe-custom': theme === 'light' }\"\n [id]=\"node.question.key + 'id'\"\n *ngSwitchCase=\"'multi-select'\"\n [items]=\"node.question.options\"\n bindLabel=\"label\"\n bindValue=\"value\"\n [multiple]=\"true\"\n placeholder=\"\"\n clearAllText=\"Clear\"\n [formControlName]=\"node.question.key\"\n >\n </ng-select>\n\n <ng-select\n [ngClass]=\"{ 'afe-custom': theme === 'light' }\"\n [id]=\"node.question.key + 'id'\"\n *ngSwitchCase=\"'single-select'\"\n [items]=\"node.question.options\"\n bindLabel=\"label\"\n bindValue=\"value\"\n placeholder=\"\"\n clearAllText=\"Clear\"\n [formControlName]=\"node.question.key\"\n >\n </ng-select>\n\n <number-input\n [theme]=\"theme\"\n *ngSwitchCase=\"'number'\"\n [id]=\"node.question.key + 'id'\"\n [min]=\"node.question.extras.questionOptions.min\"\n [max]=\"node.question.extras.questionOptions.max\"\n [formControlName]=\"node.question.key\"\n [attr.placeholder]=\"node.question.placeholder\"\n >\n </number-input>\n\n <input\n [theme]=\"theme\"\n class=\"cds--text-input\"\n ibmText\n *ngSwitchDefault\n [formControlName]=\"node.question.key\"\n [attr.placeholder]=\"node.question.placeholder\"\n [type]=\"node.question.renderingType\"\n [id]=\"node.question.key + 'id'\"\n [readOnly]=\"node.question.extras.readOnly\"\n />\n\n <div *ngSwitchCase=\"'radio'\">\n <radio [id]=\"node.question.key + 'id'\" [formControlName]=\"node.question.key\"\n [options]=\"node.question.options\" [selected]=\"node.control.value\" [allowRadioUnselect]=\"node.question.allowRadioUnselect\"></radio>\n </div>\n\n <div *ngSwitchCase=\"'checkbox'\">\n <checkbox\n [id]=\"node.question.key + 'id' + controlId\"\n [formControlName]=\"node.question.key\"\n [options]=\"node.question.options\"\n [selected]=\"node.control.value\"\n ></checkbox>\n </div>\n\n <div\n *ngIf=\"\n node.question.enableHistoricalValue &&\n node.question.historicalDisplay\n \"\n style=\"margin-top: 2px\"\n >\n <div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col-xs-9\">\n <span class=\"text-warning\">Previous Value: </span>\n <strong>{{ node.question.historicalDisplay?.text }}</strong>\n <span *ngIf=\"node.question.showHistoricalValueDate\">\n <span> | </span>\n <strong class=\"text-primary\"\n >{{ node.question.historicalDisplay?._date | date }}\n </strong>\n <span\n class=\"text-primary\"\n *ngIf=\"\n node.question.historicalDisplay &&\n node.question.historicalDisplay._date\n \"\n >\n ({{\n node.question.historicalDisplay._date | timeAgo\n }})</span\n >\n </span>\n </div>\n <button\n type=\"button\"\n [node]=\"node\"\n [name]=\"'historyValue'\"\n class=\"cds--btn cds--btn--primary cds--btn--sm col-xs-3\"\n >\n Use Value\n </button>\n </div>\n </div>\n </div>\n <appointments-overview [node]=\"node\"></appointments-overview>\n <div *ngIf=\"hasErrors()\">\n <div *ngFor=\"let e of errors()\">\n <span class=\"text-danger\">{{ e }}</span>\n </div>\n </div>\n </div>\n </ng-template>\n\n <div\n class=\"question-info col-md-12 col-lg-12 col-sm-12\"\n id=\"{{ node.question.extras.id }}\"\n *ngIf=\"\n node.question &&\n node.question.extras.questionInfo &&\n node.question.extras.questionInfo !== '' &&\n node.question.extras.questionInfo !== ' '\n \"\n >\n {{ node.question.extras.questionInfo }}\n </div>\n </div>\n </div>\n</div>\n<div\n *ngIf=\"node.question.controlType === 1\"\n [hidden]=\"node.control.hidden\"\n [ngClass]=\"{ disabled: node.control.disabled }\"\n>\n <!--ARRAY CONTROL-->\n <div [ngSwitch]=\"node.question.renderingType\">\n <div class=\"well\" style=\"padding: 2px\" *ngSwitchCase=\"'repeating'\">\n <h4 style=\"margin: 2px; font-weight: bold\">{{ node.question.label }}</h4>\n <hr\n style=\"\n margin-left: -2px;\n margin-right: -2px;\n margin-bottom: 4px;\n margin-top: 8px;\n border-width: 2px;\n \"\n />\n <div [ngSwitch]=\"node.question.extras.type\">\n <div *ngSwitchCase=\"'testOrder'\">\n <div *ngFor=\"let child of node.children; let i = index\">\n <form-renderer\n *ngFor=\"let question of child.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"child.children[question.key]\"\n [parentGroup]=\"child.control\"\n [labelMap]=\"labelMap\"\n ></form-renderer>\n <div>{{ child.orderNumber }}</div>\n <button\n type=\"button \"\n class=\"cds--btn cds--btn--danger cds--btn--sm\"\n (click)=\"node.removeAt(i)\"\n >\n Remove\n </button>\n <br />\n <hr\n style=\"\n margin-left: -2px;\n margin-right: -2px;\n margin-bottom: 4px;\n margin-top: 8px;\n border-width: 1px;\n \"\n />\n </div>\n </div>\n\n <div *ngSwitchCase=\"'obsGroup'\" style=\"margin-bottom: 20px\">\n <div *ngFor=\"let child of node.children; let i = index\">\n <form-renderer\n *ngFor=\"let question of child.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"child.children[question.key]\"\n [parentGroup]=\"child.control\"\n [labelMap]=\"labelMap\"\n [controlId]=\"i\"\n ></form-renderer>\n <button\n type=\"button\"\n style=\"width: 100px\"\n class=\"cds--btn cds--btn--danger cds--btn--sm\"\n (click)=\"node.removeAt(i)\"\n >\n Remove\n </button>\n <br />\n <hr\n style=\"\n margin-left: -2px;\n margin-right: -2px;\n margin-bottom: 4px;\n margin-top: 8px;\n border-width: 1px;\n \"\n />\n </div>\n </div>\n </div>\n <button\n type=\"button\"\n class=\"cds--btn cds--btn--primary cds--btn--sm\"\n (click)=\"node.createChildNode()\"\n >\n Add\n </button>\n </div>\n </div>\n</div>\n<div\n *ngIf=\"node.question.controlType === 2\"\n [hidden]=\"node.control.hidden\"\n [ngClass]=\"{ disabled: node.control.disabled }\"\n>\n <!--GROUP-->\n <div [ngSwitch]=\"node.question.renderingType\">\n <div *ngSwitchCase=\"'group'\">\n <form-renderer\n *ngFor=\"let question of node.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"node.children[question.key]\"\n [parentGroup]=\"node.control\"\n [labelMap]=\"labelMap\"\n ></form-renderer>\n </div>\n <div\n *ngSwitchCase=\"'field-set'\"\n style=\"border: 1px solid #eeeeee; padding: 2px; margin: 2px\"\n >\n <form-renderer\n *ngFor=\"let question of node.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"node.children[question.key]\"\n [parentGroup]=\"node.control\"\n [labelMap]=\"labelMap\"\n ></form-renderer>\n </div>\n </div>\n</div>\n", styles: [".slider{width:auto;margin:30px}.slick-prev:before,.slick-next:before{color:#337ab7}.slick-dots{bottom:-40px}.slick-slide{outline:none}\n", "a{color:#fff;text-decoration:none;font-size:12px;text-transform:uppercase}ul{list-style-type:none;margin:2px auto;position:relative}li{display:block;padding:10px 20px;white-space:nowrap;transition:all .3s ease-in;border-bottom:4px solid transparent}li:hover{border-bottom:4px solid white;opacity:.7;cursor:pointer}.owl-theme .owl-controls .owl-nav{position:absolute;width:100%;top:0}.owl-theme .owl-controls .owl-nav [class*=owl-]{position:absolute;background:none;color:#000}.owl-theme .owl-controls .owl-nav [class*=owl-]:hover{background:none;color:#000}.owl-theme .owl-controls .owl-nav .owl-next{right:0;transform:translate(120%)}.owl-theme .owl-controls .owl-nav .owl-prev{left:0;transform:translate(-120%)}.slick-initialized .swipe-tab-content{position:relative;min-height:365px}@media screen and (min-width: 767px){.slick-initialized .swipe-tab-content{min-height:500px}}.slick-initialized .swipe-tab{display:flex;align-items:center;justify-content:center;height:50px;background:none;border:0;color:#757575;cursor:pointer;text-align:center;border-bottom:2px solid rgba(51,122,183,0);transition:all .5s}.slick-initialized .swipe-tab:hover{color:#337ab7}.slick-initialized .swipe-tab.active-tab{border-bottom-color:#337ab7;color:#337ab7;font-weight:bold}.disabled{opacity:.5;pointer-events:none}.select2-container{margin-top:-5px}.btn{padding:0 12px!important}.form-tooltip{color:#337ab7;display:inline-block}.question-info{opacity:0;height:0px;display:none;transition-duration:opacity 1s ease-out;transtion-delay:.5s;padding-top:2px;padding-bottom:2px;color:#696969;border-style:ridge;border-width:1px;border-color:#337ab7;margin-top:2px}.hide-info{display:none;height:0px}.form-tooltip:hover~.question-info{display:block;opacity:1;height:auto}.form-tooltip .tooltipcontent:after{content:\" \";position:absolute;bottom:100%;right:0%;margin-left:-5px;border-width:5px;border-style:solid;border-top-color:transparent;border-right-color:transparent;border-bottom-color:#337ab7;border-left-color:transparent}ng-select.form-control{padding-top:0;height:auto;padding-bottom:0}.forms-dropdown-menu{max-height:450px;overflow-y:scroll}.no-border{border:0;box-shadow:none}.text-danger{color:var(--cds-support-01, #da1e28)}.error{margin-bottom:3rem}.afe-control{margin-bottom:1.5rem}[hidden]{display:none!important}.accordion-content-dark{background-color:#f4f4f4;padding-right:1rem}.accordion-content-override{box-sizing:content-box}.question-area{width:100%;max-width:18rem}.in-line{display:inline-block;padding-right:.5rem}\n"], components: [{ type: TabSetComponent, selector: "ngx-tab-set", inputs: ["disableStyle", "customNavClass", "customTabsClass", "selectedIndex"], outputs: ["onSelect"] }, { type: TabComponent, selector: "ngx-tab", inputs: ["tabTitle", "tabSubTitle", "active", "disabled", "bypassDOM", "customPaneClass"] }, { type: FormRendererComponent, selector: "form-renderer", inputs: ["parentComponent", "node", "parentGroup", "theme", "labelMap", "controlId"] }, { type: CustomComponentWrapperComponent, selector: "app-custom-component-wrapper", inputs: ["componentConfigs", "dark"] }, { type: CustomControlWrapperComponent, selector: "app-custom-control-wrapper", inputs: ["question"] }, { type: Select, selector: "ibm-select", inputs: ["display", "label", "helperText", "invalidText", "warn", "warnText", "id", "size", "disabled", "skeleton", "invalid", "theme", "ariaLabel", "value"], outputs: ["valueChange"] }, { type: FileUploadComponent, selector: "app-file-upload", inputs: ["dataSource"] }, { type: RemoteSelectComponent, selector: "ngx-remote-select", inputs: ["placeholder", "componentID", "disabled", "theme", "dataSource"], outputs: ["done"] }, { type: NgxDatetimeComponent, selector: "ngx-datetimepicker", inputs: ["id", "theme", "datePickerFormat", "showWeeks", "weeks"] }, { type: i1$3.NgSelectComponent, selector: "ng-select", inputs: ["markFirst", "dropdownPosition", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "bufferAmount", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "bindLabel", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "virtualScroll", "openOnEnter", "appendTo", "bindValue", "appearance", "maxSelectedItems", "groupBy", "groupValue", "tabIndex", "typeahead"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { type: NumberInputComponent, selector: "number-input", inputs: ["theme", "disabled", "skeleton", "invalid", "id", "size", "required", "value", "min", "max", "label", "helperText", "invalidText", "step", "precision", "warn", "warnText", "decrementLabel", "incrementLabel"], outputs: ["change"] }, { type: RadioButtonControlComponent, selector: "radio", inputs: ["id", "selected", "options", "allowRadioUnselect"] }, { type: CheckboxControlComponent, selector: "checkbox", inputs: ["id", "options", "selected"] }, { type: AppointmentsOverviewComponent, selector: "appointments-overview", inputs: ["node"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: HistoricalValueDirective, selector: "[node]", inputs: ["_node", "node"], outputs: ["_nodeChange"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: CollapseDirective, selector: "[collapse]", inputs: ["display", "isAnimated", "collapse"], outputs: ["collapsed", "collapses", "expanded", "expands"], exportAs: ["bs-collapse"] }, { type: i20.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i20.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i20.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i20.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i20.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i20.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: Option$1, selector: "option" }, { type: i20.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: TextArea, selector: "[ibmTextArea]", inputs: ["theme", "invalid", "skeleton"] }, { type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: TextInput, selector: "[ibmText]", inputs: ["theme", "size", "invalid", "warn", "skeleton"] }], pipes: { "date": i1.DatePipe, "timeAgo": TimeAgoPipe } });
|
|
8785
|
+
FormRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FormRendererComponent, selector: "ofe-form-renderer", inputs: { parentComponent: "parentComponent", node: "node", parentGroup: "parentGroup", theme: "theme", labelMap: "labelMap", controlId: "controlId" }, usesOnChanges: true, ngImport: i0, template: "<!--CONTAINERS-->\n<div *ngIf=\"node.question.renderingType === 'form'\">\n <ofe-tab-set (tabSelect)=\"tabSelected($event)\" [selectedIndex]=\"activeTab\">\n <ofe-tab\n [tabTitle]=\"question.label\"\n *ngFor=\"let question of node.question.questions; let i = index\"\n >\n <ofe-form-renderer\n [node]=\"node.children[question.key]\"\n [parentComponent]=\"this\"\n [parentGroup]=\"node.control\"\n [labelMap]=\"labelMap\"\n >\n </ofe-form-renderer>\n </ofe-tab>\n <div *ngIf=\"showErrors()\" class=\"container\">\n <div\n data-notification\n *ngFor=\"let errorNode of errorNodes\"\n class=\"cds--inline-notification cds--inline-notification--error cds--inline-notification--low-contrast pointer\"\n role=\"alert\"\n (click)=\"announceErrorField(errorNode)\"\n >\n <div class=\"cds--inline-notification__details\">\n <div class=\"cds--inline-notification__text-wrapper\">\n <p class=\"cds--inline-notification__title\">\n {{ errorNode.question.label }}\n </p>\n <p class=\"cds--inline-notification__subtitle\">\n {{ getControlError(errorNode) }}\n </p>\n </div>\n </div>\n <button\n tabindex=\"0\"\n class=\"cds--inline-notification__action-button cds--btn cds--btn--sm cds--btn--ghost\"\n type=\"button\"\n >\n Fix\n </button>\n <svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n style=\"will-change: transform\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"cds--inline-notification__icon\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z\"\n ></path>\n <path\n d=\"M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z\"\n data-icon-path=\"inner-path\"\n opacity=\"0\"\n ></path>\n </svg>\n </div>\n </div>\n </ofe-tab-set>\n</div>\n<div *ngIf=\"node.question.renderingType === 'page'\">\n <!--Page Components-->\n <ofe-custom-component-wrapper\n [dark]=\"theme === 'light'\"\n [componentConfigs]=\"node.question.componentConfigs\"\n >\n </ofe-custom-component-wrapper>\n <ofe-form-renderer\n *ngFor=\"let question of node.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"node.children[question.key]\"\n [parentGroup]=\"parentGroup\"\n [labelMap]=\"labelMap\"\n ></ofe-form-renderer>\n</div>\n<div *ngIf=\"node.question.renderingType === 'section' && checkSection(node)\">\n <div\n class=\"cds--accordion__item\"\n [ngClass]=\"{ 'cds--accordion__item--active': !isCollapsed }\"\n >\n <button\n class=\"cds--accordion__heading\"\n type=\"button\"\n [attr.aria-expanded]=\"isCollapsed ? 'false' : 'true'\"\n aria-controls=\"accordion-item-0\"\n (click)=\"isCollapsed = !isCollapsed\"\n >\n <svg\n class=\"cds--accordion__arrow\"\n ibmIcon=\"chevron--right\"\n size=\"16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n aria-hidden=\"true\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n >\n <path d=\"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z\"></path>\n </svg>\n <p class=\"cds--accordion__title\">\n {{ node.question.label }}\n </p>\n </button>\n <div ofeCollapse=\"isCollapsed\">\n <!--Section Components-->\n <ofe-custom-component-wrapper\n [dark]=\"theme === 'light'\"\n [componentConfigs]=\"node.question.componentConfigs\"\n >\n </ofe-custom-component-wrapper>\n <div\n class=\"cds--accordion__content accordion-content-override\"\n [ngClass]=\"{\n 'accordion-content-dark': theme === 'light'\n }\"\n >\n <ofe-form-renderer\n *ngFor=\"let question of node.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"node.children[question.key]\"\n [parentGroup]=\"parentGroup\"\n [labelMap]=\"labelMap\"\n ></ofe-form-renderer>\n </div>\n </div>\n </div>\n</div>\n\n<!-- MESSAGES -->\n<div\n *ngIf=\"node.control && node.control.alert && node.control.alert !== ''\"\n class=\"alert alert-warning\"\n>\n <a class=\"close\" data-dismiss=\"alert\">×</a> {{ node.control.alert }}\n</div>\n\n<!--CONTROLS-->\n\n<div\n *ngIf=\"node.question.controlType === 0\"\n [formGroup]=\"parentGroup\"\n [hidden]=\"node.control.hidden\"\n [ngClass]=\"{ disabled: node.control.disabled }\"\n>\n <ofe-custom-component-wrapper\n [dark]=\"!(theme === 'light')\"\n [componentConfigs]=\"node.question.componentConfigs\"\n >\n </ofe-custom-component-wrapper>\n <div class=\"cds--form-item\">\n <!--LEAF CONTROL-->\n <div class=\"question-area\">\n <a\n class=\"form-tooltip pull-right\"\n (click)=\"toggleInformation(node.question.extras.id)\"\n data-placement=\"right\"\n *ngIf=\"\n node.question &&\n node.question.extras.questionInfo &&\n node.question.extras.questionInfo !== '' &&\n node.question.extras.questionInfo !== ' '\n \"\n >\n <i class=\"glyphicon glyphicon-question-sign\" aria-hidden=\"true\"></i>\n </a>\n\n <label\n *ngIf=\"node.question.label\"\n [style.color]=\"hasErrors() ? 'red' : ''\"\n class=\"cds--label\"\n [attr.for]=\"node.question.key\"\n >\n {{ node.question.required ? '*' : '' }}\n {{ node.question.prefix ? node.question.prefix + ' ' : ''\n }}{{ node.question.label }}\n </label>\n\n <div\n *ngIf=\"\n node.question.extras.questionOptions.customControl;\n else nativeControls\n \"\n >\n <ofe-custom-control-wrapper\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n [question]=\"node.question\"\n >\n </ofe-custom-control-wrapper>\n </div>\n\n <ng-template #nativeControls>\n <div class=\"afe-control\" [ngSwitch]=\"node.question.renderingType\">\n <ofe-select\n [theme]=\"theme\"\n *ngSwitchCase=\"'select'\"\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n >\n <option *ngFor=\"let o of node.question.options\" [value]=\"o.value\">\n {{ o.label }}\n </option>\n </ofe-select>\n\n <div *ngSwitchCase=\"'file'\">\n <ofe-file-upload\n [dataSource]=\"dataSource\"\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n (fileChanged)=\"upload($event)\"\n >\n </ofe-file-upload>\n </div>\n\n <textarea\n [theme]=\"theme\"\n ofeTextAreaInput\n [ngClass]=\"{\n 'cds--text-area--light': theme === 'light',\n 'cds--text-area--invalid': !node.control.valid\n }\"\n [placeholder]=\"node.question.placeholder\"\n [rows]=\"node.question.rows\"\n class=\"cds--text-area\"\n *ngSwitchCase=\"'textarea'\"\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n [readOnly]=\"node.question.extras.readOnly\"\n >\n </textarea>\n\n <ofe-remote-select\n [theme]=\"theme\"\n *ngSwitchCase=\"'remote-select'\"\n [placeholder]=\"node.question.placeholder\"\n tabindex=\"0\"\n [dataSource]=\"dataSource\"\n [componentID]=\"node.question.key + 'id'\"\n [formControlName]=\"node.question.key\"\n [id]=\"node.question.key + 'id'\"\n ></ofe-remote-select>\n\n <ofe-ngx-date-time-picker\n [weeks]=\"node.question.extras.questionOptions.weeksList\"\n [showWeeks]=\"node.question.showWeeksAdder\"\n [theme]=\"theme\"\n [id]=\"node.question.key + 'id'\"\n [formControlName]=\"node.question.key\"\n *ngSwitchCase=\"'date'\"\n [datePickerFormat]=\"node.question.datePickerFormat\"\n >\n </ofe-ngx-date-time-picker>\n <ng-select\n [ngClass]=\"{ 'afe-custom': theme === 'light' }\"\n [id]=\"node.question.key + 'id'\"\n *ngSwitchCase=\"'multi-select'\"\n [items]=\"node.question.options\"\n bindLabel=\"label\"\n bindValue=\"value\"\n [multiple]=\"true\"\n placeholder=\"\"\n clearAllText=\"Clear\"\n [formControlName]=\"node.question.key\"\n >\n </ng-select>\n\n <ng-select\n [ngClass]=\"{ 'afe-custom': theme === 'light' }\"\n [id]=\"node.question.key + 'id'\"\n *ngSwitchCase=\"'single-select'\"\n [items]=\"node.question.options\"\n bindLabel=\"label\"\n bindValue=\"value\"\n placeholder=\"\"\n clearAllText=\"Clear\"\n [formControlName]=\"node.question.key\"\n >\n </ng-select>\n\n <ofe-number-input\n [theme]=\"theme\"\n *ngSwitchCase=\"'number'\"\n [id]=\"node.question.key + 'id'\"\n [min]=\"node.question.extras.questionOptions.min\"\n [max]=\"node.question.extras.questionOptions.max\"\n [formControlName]=\"node.question.key\"\n [attr.placeholder]=\"node.question.placeholder\"\n >\n </ofe-number-input>\n\n <input\n [theme]=\"theme\"\n class=\"cds--text-input\"\n ofeTextInput\n *ngSwitchDefault\n [formControlName]=\"node.question.key\"\n [attr.placeholder]=\"node.question.placeholder\"\n [type]=\"node.question.renderingType\"\n [id]=\"node.question.key + 'id'\"\n [readOnly]=\"node.question.extras.readOnly\"\n />\n\n <div *ngSwitchCase=\"'radio'\">\n <ofe-radio-button\n [id]=\"node.question.key + 'id'\"\n [formControlName]=\"node.question.key\"\n [options]=\"node.question.options\"\n [selected]=\"node.control.value\"\n [allowRadioUnselect]=\"node.question.allowRadioUnselect\"\n ></ofe-radio-button>\n </div>\n\n <div *ngSwitchCase=\"'checkbox'\">\n <ofe-checkbox\n [id]=\"node.question.key + 'id' + controlId\"\n [formControlName]=\"node.question.key\"\n [options]=\"node.question.options\"\n [selected]=\"node.control.value\"\n ></ofe-checkbox>\n </div>\n\n <div\n *ngIf=\"\n node.question.enableHistoricalValue &&\n node.question.historicalDisplay\n \"\n style=\"margin-top: 2px\"\n >\n <div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col-xs-9\">\n <span class=\"text-warning\">Previous Value: </span>\n <strong>{{ node.question.historicalDisplay?.text }}</strong>\n <span *ngIf=\"node.question.showHistoricalValueDate\">\n <span> | </span>\n <strong class=\"text-primary\"\n >{{ node.question.historicalDisplay?._date | date }}\n </strong>\n <span\n class=\"text-primary\"\n *ngIf=\"\n node.question.historicalDisplay &&\n node.question.historicalDisplay._date\n \"\n >\n ({{\n node.question.historicalDisplay._date | timeAgo\n }})</span\n >\n </span>\n </div>\n <button\n type=\"button\"\n ofeNode=\"node\"\n [name]=\"'historyValue'\"\n class=\"cds--btn cds--btn--primary cds--btn--sm col-xs-3\"\n >\n Use Value\n </button>\n </div>\n </div>\n </div>\n <ofe-appointments-overview [node]=\"node\"></ofe-appointments-overview>\n <div *ngIf=\"hasErrors()\">\n <div *ngFor=\"let e of errors()\">\n <span class=\"text-danger\">{{ e }}</span>\n </div>\n </div>\n </div>\n </ng-template>\n\n <div\n class=\"question-info col-md-12 col-lg-12 col-sm-12\"\n id=\"{{ node.question.extras.id }}\"\n *ngIf=\"\n node.question &&\n node.question.extras.questionInfo &&\n node.question.extras.questionInfo !== '' &&\n node.question.extras.questionInfo !== ' '\n \"\n >\n {{ node.question.extras.questionInfo }}\n </div>\n </div>\n </div>\n</div>\n<div\n *ngIf=\"node.question.controlType === 1\"\n [hidden]=\"node.control.hidden\"\n [ngClass]=\"{ disabled: node.control.disabled }\"\n>\n <!--ARRAY CONTROL-->\n <div [ngSwitch]=\"node.question.renderingType\">\n <div class=\"well\" style=\"padding: 2px\" *ngSwitchCase=\"'repeating'\">\n <h4 style=\"margin: 2px; font-weight: bold\">{{ node.question.label }}</h4>\n <hr\n style=\"\n margin-left: -2px;\n margin-right: -2px;\n margin-bottom: 4px;\n margin-top: 8px;\n border-width: 2px;\n \"\n />\n <div [ngSwitch]=\"node.question.extras.type\">\n <div *ngSwitchCase=\"'testOrder'\">\n <div *ngFor=\"let child of node.children; let i = index\">\n <ofe-form-renderer\n *ngFor=\"let question of child.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"child.children[question.key]\"\n [parentGroup]=\"child.control\"\n [labelMap]=\"labelMap\"\n ></ofe-form-renderer>\n <div>{{ child.orderNumber }}</div>\n <button\n type=\"button \"\n class=\"cds--btn cds--btn--danger cds--btn--sm\"\n (click)=\"node.removeAt(i)\"\n >\n Remove\n </button>\n <br />\n <hr\n style=\"\n margin-left: -2px;\n margin-right: -2px;\n margin-bottom: 4px;\n margin-top: 8px;\n border-width: 1px;\n \"\n />\n </div>\n </div>\n\n <div *ngSwitchCase=\"'obsGroup'\" style=\"margin-bottom: 20px\">\n <div *ngFor=\"let child of node.children; let i = index\">\n <ofe-form-renderer\n *ngFor=\"let question of child.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"child.children[question.key]\"\n [parentGroup]=\"child.control\"\n [labelMap]=\"labelMap\"\n [controlId]=\"i\"\n ></ofe-form-renderer>\n <button\n type=\"button\"\n style=\"width: 100px\"\n class=\"cds--btn cds--btn--danger cds--btn--sm\"\n (click)=\"node.removeAt(i)\"\n >\n Remove\n </button>\n <br />\n <hr\n style=\"\n margin-left: -2px;\n margin-right: -2px;\n margin-bottom: 4px;\n margin-top: 8px;\n border-width: 1px;\n \"\n />\n </div>\n </div>\n </div>\n <button\n type=\"button\"\n class=\"cds--btn cds--btn--primary cds--btn--sm\"\n (click)=\"node.createChildNode()\"\n >\n Add\n </button>\n </div>\n </div>\n</div>\n<div\n *ngIf=\"node.question.controlType === 2\"\n [hidden]=\"node.control.hidden\"\n [ngClass]=\"{ disabled: node.control.disabled }\"\n>\n <!--GROUP-->\n <div [ngSwitch]=\"node.question.renderingType\">\n <div *ngSwitchCase=\"'group'\">\n <ofe-form-renderer\n *ngFor=\"let question of node.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"node.children[question.key]\"\n [parentGroup]=\"node.control\"\n [labelMap]=\"labelMap\"\n ></ofe-form-renderer>\n </div>\n <div\n *ngSwitchCase=\"'field-set'\"\n style=\"border: 1px solid #eeeeee; padding: 2px; margin: 2px\"\n >\n <ofe-form-renderer\n *ngFor=\"let question of node.question.questions\"\n [parentComponent]=\"this\"\n [node]=\"node.children[question.key]\"\n [parentGroup]=\"node.control\"\n [labelMap]=\"labelMap\"\n ></ofe-form-renderer>\n </div>\n </div>\n</div>\n", styles: [".slider{width:auto;margin:30px}.slick-prev:before,.slick-next:before{color:#337ab7}.slick-dots{bottom:-40px}.slick-slide{outline:none}\n", "a{color:#fff;text-decoration:none;font-size:12px;text-transform:uppercase}ul{list-style-type:none;margin:2px auto;position:relative}li{display:block;padding:10px 20px;white-space:nowrap;transition:all .3s ease-in;border-bottom:4px solid transparent}li:hover{border-bottom:4px solid white;opacity:.7;cursor:pointer}.owl-theme .owl-controls .owl-nav{position:absolute;width:100%;top:0}.owl-theme .owl-controls .owl-nav [class*=owl-]{position:absolute;background:none;color:#000}.owl-theme .owl-controls .owl-nav [class*=owl-]:hover{background:none;color:#000}.owl-theme .owl-controls .owl-nav .owl-next{right:0;transform:translate(120%)}.owl-theme .owl-controls .owl-nav .owl-prev{left:0;transform:translate(-120%)}.slick-initialized .swipe-tab-content{position:relative;min-height:365px}@media screen and (min-width: 767px){.slick-initialized .swipe-tab-content{min-height:500px}}.slick-initialized .swipe-tab{display:flex;align-items:center;justify-content:center;height:50px;background:none;border:0;color:#757575;cursor:pointer;text-align:center;border-bottom:2px solid rgba(51,122,183,0);transition:all .5s}.slick-initialized .swipe-tab:hover{color:#337ab7}.slick-initialized .swipe-tab.active-tab{border-bottom-color:#337ab7;color:#337ab7;font-weight:bold}.disabled{opacity:.5;pointer-events:none}.select2-container{margin-top:-5px}.btn{padding:0 12px!important}.form-tooltip{color:#337ab7;display:inline-block}.question-info{opacity:0;height:0px;display:none;transition-duration:opacity 1s ease-out;transtion-delay:.5s;padding-top:2px;padding-bottom:2px;color:#696969;border-style:ridge;border-width:1px;border-color:#337ab7;margin-top:2px}.hide-info{display:none;height:0px}.form-tooltip:hover~.question-info{display:block;opacity:1;height:auto}.form-tooltip .tooltipcontent:after{content:\" \";position:absolute;bottom:100%;right:0%;margin-left:-5px;border-width:5px;border-style:solid;border-top-color:transparent;border-right-color:transparent;border-bottom-color:#337ab7;border-left-color:transparent}ng-select.form-control{padding-top:0;height:auto;padding-bottom:0}.forms-dropdown-menu{max-height:450px;overflow-y:scroll}.no-border{border:0;box-shadow:none}.text-danger{color:var(--cds-support-01, #da1e28)}.error{margin-bottom:3rem}.afe-control{margin-bottom:1.5rem}[hidden]{display:none!important}.accordion-content-dark{background-color:#f4f4f4;padding-right:1rem}.accordion-content-override{box-sizing:content-box}.question-area{width:100%;max-width:18rem}.in-line{display:inline-block;padding-right:.5rem}\n"], components: [{ type: TabSetComponent, selector: "ofe-tab-set", inputs: ["disableStyle", "customNavClass", "customTabsClass", "selectedIndex"], outputs: ["tabSelect"] }, { type: TabComponent, selector: "ofe-tab", inputs: ["tabTitle", "tabSubTitle", "active", "disabled", "bypassDOM", "customPaneClass"] }, { type: FormRendererComponent, selector: "ofe-form-renderer", inputs: ["parentComponent", "node", "parentGroup", "theme", "labelMap", "controlId"] }, { type: CustomComponentWrapperComponent, selector: "ofe-custom-component-wrapper", inputs: ["componentConfigs", "dark"] }, { type: CustomControlWrapperComponent, selector: "ofe-custom-control-wrapper", inputs: ["question"] }, { type: SelectComponent, selector: "ofe-select", inputs: ["display", "label", "helperText", "invalidText", "warn", "warnText", "id", "size", "disabled", "skeleton", "invalid", "theme", "ariaLabel", "value"], outputs: ["valueChange"] }, { type: FileUploadComponent, selector: "ofe-file-upload", inputs: ["dataSource"] }, { type: RemoteSelectComponent, selector: "ofe-remote-select", inputs: ["placeholder", "componentID", "disabled", "theme", "dataSource"], outputs: ["done"] }, { type: NgxDatetimeComponent, selector: "ofe-ngx-date-time-picker", inputs: ["id", "theme", "datePickerFormat", "showWeeks", "weeks"] }, { type: i1$3.NgSelectComponent, selector: "ng-select", inputs: ["markFirst", "dropdownPosition", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "bufferAmount", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "bindLabel", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "virtualScroll", "openOnEnter", "appendTo", "bindValue", "appearance", "maxSelectedItems", "groupBy", "groupValue", "tabIndex", "typeahead"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { type: NumberInputComponent, selector: "ofe-number-input", inputs: ["theme", "disabled", "skeleton", "invalid", "id", "size", "required", "value", "min", "max", "label", "helperText", "invalidText", "step", "precision", "warn", "warnText", "decrementLabel", "incrementLabel"], outputs: ["numberChange"] }, { type: RadioButtonControlComponent, selector: "ofe-radio-button", inputs: ["id", "selected", "options", "allowRadioUnselect"] }, { type: CheckboxControlComponent, selector: "ofe-checkbox", inputs: ["id", "options", "selected"] }, { type: AppointmentsOverviewComponent, selector: "ofe-appointments-overview", inputs: ["node"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: CollapseDirective, selector: "[ofeCollapse]", inputs: ["display", "isAnimated", "collapse"], outputs: ["collapsed", "collapses", "expanded", "expands"], exportAs: ["bs-collapse"] }, { type: i19.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i19.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i19.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i19.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i19.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i19.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i19.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: TextAreaDirective, selector: "[ofeTextAreaInput]", inputs: ["theme", "invalid", "skeleton"] }, { type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: TextInputDirective, selector: "[ofeTextInput]", inputs: ["theme", "size", "invalid", "warn", "skeleton"] }, { type: HistoricalValueDirective, selector: "[ofeNode]", inputs: ["_node", "node"], outputs: ["_nodeChange"] }], pipes: { "date": i1.DatePipe, "timeAgo": TimeAgoPipe } });
|
|
8803
8786
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormRendererComponent, decorators: [{
|
|
8804
8787
|
type: Component,
|
|
8805
8788
|
args: [{
|
|
8806
|
-
selector: 'form-renderer',
|
|
8789
|
+
selector: 'ofe-form-renderer',
|
|
8807
8790
|
templateUrl: 'form-renderer.component.html',
|
|
8808
8791
|
styleUrls: ['../../style/app.css', './form-renderer.component.css']
|
|
8809
8792
|
}]
|
|
@@ -8882,7 +8865,6 @@ class Form {
|
|
|
8882
8865
|
searchNodeByQuestionType(rootNode, questionType, found) {
|
|
8883
8866
|
if (rootNode instanceof GroupNode) {
|
|
8884
8867
|
const nodeAsGroup = rootNode;
|
|
8885
|
-
// eslint-disable-next-line guard-for-in
|
|
8886
8868
|
for (const o in nodeAsGroup.children) {
|
|
8887
8869
|
this.searchNodeByQuestionType(nodeAsGroup.children[o], questionType, found);
|
|
8888
8870
|
}
|
|
@@ -8908,7 +8890,6 @@ class Form {
|
|
|
8908
8890
|
}
|
|
8909
8891
|
if (rootNode instanceof GroupNode) {
|
|
8910
8892
|
const nodeAsGroup = rootNode;
|
|
8911
|
-
// eslint-disable-next-line guard-for-in
|
|
8912
8893
|
for (const o in nodeAsGroup.children) {
|
|
8913
8894
|
this.findNodesByQuestionId(nodeAsGroup.children[o], questionId, results);
|
|
8914
8895
|
}
|
|
@@ -8977,7 +8958,6 @@ class Form {
|
|
|
8977
8958
|
}
|
|
8978
8959
|
if (rootNode instanceof GroupNode) {
|
|
8979
8960
|
const nodeAsGroup = rootNode;
|
|
8980
|
-
// eslint-disable-next-line guard-for-in
|
|
8981
8961
|
for (const o in nodeAsGroup.children) {
|
|
8982
8962
|
this._updateAlertsForAllControls(nodeAsGroup.children[o]);
|
|
8983
8963
|
}
|
|
@@ -9000,7 +8980,6 @@ class Form {
|
|
|
9000
8980
|
}
|
|
9001
8981
|
if (rootNode instanceof GroupNode) {
|
|
9002
8982
|
const nodeAsGroup = rootNode;
|
|
9003
|
-
// eslint-disable-next-line guard-for-in
|
|
9004
8983
|
for (const o in nodeAsGroup.children) {
|
|
9005
8984
|
this._updateHiddenDisabledStateForAllControls(nodeAsGroup.children[o]);
|
|
9006
8985
|
}
|
|
@@ -9019,7 +8998,6 @@ class ErrorRendererComponent {
|
|
|
9019
8998
|
this.validationFactory = validationFactory;
|
|
9020
8999
|
this.formErrorsService = formErrorsService;
|
|
9021
9000
|
}
|
|
9022
|
-
ngOnInit() { }
|
|
9023
9001
|
showErrors() {
|
|
9024
9002
|
return !this.form.valid && this.form.showErrors;
|
|
9025
9003
|
}
|
|
@@ -9050,11 +9028,11 @@ class ErrorRendererComponent {
|
|
|
9050
9028
|
}
|
|
9051
9029
|
}
|
|
9052
9030
|
ErrorRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ErrorRendererComponent, deps: [{ token: ValidationFactory }, { token: FormErrorsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
9053
|
-
ErrorRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ErrorRendererComponent, selector: "error-renderer", inputs: { form: "form" }, ngImport: i0, template: "<div *ngIf=\"showErrors()\" class=\"container\">\n <div\n data-notification\n *ngFor=\"let errorNode of errorNodes\"\n class=\"cds--inline-notification cds--inline-notification--error cds--inline-notification--low-contrast pointer\"\n role=\"alert\"\n (click)=\"announceErrorField(errorNode)\"\n >\n <div class=\"cds--inline-notification__details\">\n <div class=\"cds--inline-notification__text-wrapper\">\n <p class=\"cds--inline-notification__title\">\n {{ errorNode.question.label }}\n </p>\n <p class=\"cds--inline-notification__subtitle\">\n {{ getControlError(errorNode) }}\n </p>\n </div>\n </div>\n <button\n tabindex=\"0\"\n class=\"cds--inline-notification__action-button cds--btn cds--btn--sm cds--btn--ghost\"\n type=\"button\"\n >\n Fix\n </button>\n <svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n style=\"will-change: transform\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"cds--inline-notification__icon\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z\"\n ></path>\n <path\n d=\"M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z\"\n data-icon-path=\"inner-path\"\n opacity=\"0\"\n ></path>\n </svg>\n </div>\n</div>\n", styles: ["ul{list-style:none}.list-group-item{padding:2px 15px;cursor:pointer}ul li:hover{background-color:#fff}h4{margin-top:7px;margin-bottom:7px}.pointer{cursor:pointer}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
9031
|
+
ErrorRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ErrorRendererComponent, selector: "ofe-error-renderer", inputs: { form: "form" }, ngImport: i0, template: "<div *ngIf=\"showErrors()\" class=\"container\">\n <div\n data-notification\n *ngFor=\"let errorNode of errorNodes\"\n class=\"cds--inline-notification cds--inline-notification--error cds--inline-notification--low-contrast pointer\"\n role=\"alert\"\n (click)=\"announceErrorField(errorNode)\"\n >\n <div class=\"cds--inline-notification__details\">\n <div class=\"cds--inline-notification__text-wrapper\">\n <p class=\"cds--inline-notification__title\">\n {{ errorNode.question.label }}\n </p>\n <p class=\"cds--inline-notification__subtitle\">\n {{ getControlError(errorNode) }}\n </p>\n </div>\n </div>\n <button\n tabindex=\"0\"\n class=\"cds--inline-notification__action-button cds--btn cds--btn--sm cds--btn--ghost\"\n type=\"button\"\n >\n Fix\n </button>\n <svg\n focusable=\"false\"\n preserveAspectRatio=\"xMidYMid meet\"\n style=\"will-change: transform\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"cds--inline-notification__icon\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z\"\n ></path>\n <path\n d=\"M13.5,14.5l-8-8l1-1l8,8L13.5,14.5z\"\n data-icon-path=\"inner-path\"\n opacity=\"0\"\n ></path>\n </svg>\n </div>\n</div>\n", styles: ["ul{list-style:none}.list-group-item{padding:2px 15px;cursor:pointer}ul li:hover{background-color:#fff}h4{margin-top:7px;margin-bottom:7px}.pointer{cursor:pointer}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
9054
9032
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ErrorRendererComponent, decorators: [{
|
|
9055
9033
|
type: Component,
|
|
9056
9034
|
args: [{
|
|
9057
|
-
selector: 'error-renderer',
|
|
9035
|
+
selector: 'ofe-error-renderer',
|
|
9058
9036
|
templateUrl: 'error-renderer.component.html',
|
|
9059
9037
|
styleUrls: ['./error-renderer.component.css']
|
|
9060
9038
|
}]
|
|
@@ -9131,25 +9109,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9131
9109
|
// webpack2_
|
|
9132
9110
|
class ModalComponent {
|
|
9133
9111
|
constructor() {
|
|
9134
|
-
this.
|
|
9112
|
+
this.overlayClick = new EventEmitter();
|
|
9135
9113
|
}
|
|
9136
|
-
ngOnInit() { }
|
|
9137
9114
|
closeModal() {
|
|
9138
|
-
this.
|
|
9115
|
+
this.overlayClick.emit(false);
|
|
9139
9116
|
}
|
|
9140
9117
|
}
|
|
9141
9118
|
ModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9142
|
-
ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ModalComponent, selector: "picker-modal", outputs: {
|
|
9119
|
+
ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ModalComponent, selector: "ofe-picker-modal", outputs: { overlayClick: "overlayClick" }, ngImport: i0, template: "<section class=\"x-modal\">\n <section class=\"modal-overlay\" (click)=\"closeModal()\"></section>\n <section class=\"modal-main\" id=\"section-modal-main\">\n <ng-content></ng-content>\n </section>\n</section>\n", styles: [":host{z-index:9999999999}*,*:before,*:after{box-sizing:border-box}.modal-main{position:absolute;left:19.6%;right:auto;top:auto;z-index:111;background-color:#fff;border:1px solid #d7dad7;border-radius:6px;transform:translate(-50%);box-shadow:0 5px 15px #0000004d}\n"], animations: [], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9143
9120
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ModalComponent, decorators: [{
|
|
9144
9121
|
type: Component,
|
|
9145
9122
|
args: [{
|
|
9146
|
-
selector: 'picker-modal',
|
|
9123
|
+
selector: 'ofe-picker-modal',
|
|
9147
9124
|
templateUrl: './modal.component.html',
|
|
9148
9125
|
styleUrls: ['./modal.component.css'],
|
|
9149
9126
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9150
9127
|
animations: []
|
|
9151
9128
|
}]
|
|
9152
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
9129
|
+
}], ctorParameters: function () { return []; }, propDecorators: { overlayClick: [{
|
|
9153
9130
|
type: Output
|
|
9154
9131
|
}] } });
|
|
9155
9132
|
|
|
@@ -9179,8 +9156,8 @@ class DatePickerComponent {
|
|
|
9179
9156
|
this.locale = 'en';
|
|
9180
9157
|
this.viewFormat = 'll';
|
|
9181
9158
|
this.returnObject = 'js';
|
|
9182
|
-
this.
|
|
9183
|
-
this.
|
|
9159
|
+
this.datePickerCancel = new EventEmitter();
|
|
9160
|
+
this.dateSelect = new EventEmitter();
|
|
9184
9161
|
this.onDisplayMonths = false;
|
|
9185
9162
|
this.onDisplayYears = false;
|
|
9186
9163
|
this.displayYearsIndex = 0;
|
|
@@ -9236,7 +9213,7 @@ class DatePickerComponent {
|
|
|
9236
9213
|
const daysDifference = day.diff(this.calendarDate.clone().startOf('date'), 'days');
|
|
9237
9214
|
day = this.calendarDate.clone().add(daysDifference, 'd');
|
|
9238
9215
|
const selectedDay = this.parseToReturnObjectType(day);
|
|
9239
|
-
this.
|
|
9216
|
+
this.dateSelect.emit(selectedDay);
|
|
9240
9217
|
this.cancelDatePicker();
|
|
9241
9218
|
return;
|
|
9242
9219
|
}
|
|
@@ -9252,17 +9229,17 @@ class DatePickerComponent {
|
|
|
9252
9229
|
}
|
|
9253
9230
|
selectToday() {
|
|
9254
9231
|
const today = this.parseToReturnObjectType(moment());
|
|
9255
|
-
this.
|
|
9232
|
+
this.dateSelect.emit(today);
|
|
9256
9233
|
this.cancelDatePicker();
|
|
9257
9234
|
return;
|
|
9258
9235
|
}
|
|
9259
9236
|
clearPickDate() {
|
|
9260
|
-
this.
|
|
9237
|
+
this.dateSelect.emit(null);
|
|
9261
9238
|
this.cancelDatePicker();
|
|
9262
9239
|
return;
|
|
9263
9240
|
}
|
|
9264
9241
|
cancelDatePicker() {
|
|
9265
|
-
this.
|
|
9242
|
+
this.datePickerCancel.emit(false);
|
|
9266
9243
|
return;
|
|
9267
9244
|
}
|
|
9268
9245
|
generateYears() {
|
|
@@ -9331,11 +9308,11 @@ class DatePickerComponent {
|
|
|
9331
9308
|
}
|
|
9332
9309
|
}
|
|
9333
9310
|
DatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DatePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9334
|
-
DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DatePickerComponent, selector: "date-picker", inputs: { initDate: "initDate", locale: "locale", viewFormat: "viewFormat", returnObject: "returnObject" }, outputs: {
|
|
9311
|
+
DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DatePickerComponent, selector: "ofe-date-picker", inputs: { initDate: "initDate", locale: "locale", viewFormat: "viewFormat", returnObject: "returnObject" }, outputs: { datePickerCancel: "datePickerCancel", dateSelect: "dateSelect" }, ngImport: i0, template: "<ofe-picker-modal (overlayClick)=\"cancelDatePicker()\">\n <div class=\"picker-wrap\">\n <div class=\"picker-box\">\n <div class=\"picker-header\">\n <div class=\"picker-header-nav\">\n <span class=\"nav-prev\" (click)=\"prev()\"></span>\n </div>\n <div class=\"picker-header-content\">\n <div class=\"content\">\n <span (click)=\"showMonthSelection()\" class=\"month\">{{\n calendarDate | moment: 'MMMM'\n }}</span>\n <span class=\"seperator\">|</span>\n <span (click)=\"showYearSelection()\" class=\"year\">{{\n calendarDate | moment: 'YYYY'\n }}</span>\n </div>\n </div>\n <div class=\"picker-header-nav\">\n <span class=\"nav-next\" (click)=\"next()\"></span>\n </div>\n </div>\n <div class=\"picker-calendar\">\n <div\n class=\"picker-calendar-row\"\n *ngIf=\"!onDisplayMonths && !onDisplayYears\"\n >\n <span class=\"picker-weekday\" *ngFor=\"let day of dayNames\">{{\n day\n }}</span>\n </div>\n <div\n class=\"picker-calendar-row\"\n *ngIf=\"!onDisplayMonths && !onDisplayYears\"\n >\n <span\n class=\"picker-day\"\n (click)=\"selectDay(day)\"\n [ngClass]=\"{\n 'out-focus': day.month() !== calendarDate.month(),\n today: day.isSame(today),\n selected: day.isSame(selectedDate)\n }\"\n *ngFor=\"let day of calendarDays\"\n >\n {{ day | moment: 'D' }}\n </span>\n </div>\n <div class=\"picker-calendar-row\" *ngIf=\"onDisplayMonths\">\n <span\n class=\"picker-month\"\n *ngFor=\"let month of monthsShort\"\n (click)=\"selectMonth(month)\"\n [ngClass]=\"{\n selected: month === currentMonth\n }\"\n >\n {{ month }}\n </span>\n </div>\n <div class=\"picker-calendar-row\" *ngIf=\"onDisplayYears\">\n <span\n class=\"picker-year\"\n *ngFor=\"let year of displayYearRange\"\n (click)=\"selectYear(year)\"\n [ngClass]=\"{\n selected: year === currentYear\n }\"\n >\n {{ year }}\n </span>\n </div>\n </div>\n <div class=\"picker-footer\">\n <div class=\"picker-action action-today\" (click)=\"selectToday()\">\n <span class=\"text\">Today</span>\n </div>\n <div class=\"picker-action action-clear\" (click)=\"clearPickDate()\">\n <span class=\"text\">Clear</span>\n </div>\n <div class=\"picker-action action-close\" (click)=\"cancelDatePicker()\">\n <span class=\"text\">Close</span>\n </div>\n </div>\n </div>\n </div>\n</ofe-picker-modal>\n", styles: ["*,*:before,*:after{box-sizing:border-box}.picker-wrap{width:95vw;max-width:666px}.picker-box{font-family:\"Open Sans\";min-width:400px!important;padding:.625rem 1rem;-webkit-user-select:none;user-select:none}.picker-header,.picker-footer{font-size:1.333rem;line-height:2.5rem;display:flex;height:2.5rem;width:100%}.picker-header-nav{position:relative;cursor:pointer;width:calc(100% / 8)}.picker-header-nav>*{position:absolute;top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}.picker-header-nav .nav-prev:before,.picker-header-nav .nav-next:before{content:\" \";border-top:.5em solid transparent;border-bottom:.5em solid transparent;border-right:.75em solid #000;width:0;height:0;display:block;margin:0 auto}.picker-header-nav .nav-next:before{border-right:0;border-left:.75em solid #000}.picker-header-content{width:calc(100% * 6 / 8);text-align:center}.picker-header-content .month{font-size:1.778rem;line-height:2.5rem;margin-right:.5rem;font-weight:700}.picker-header-content .year{font-style:italic;color:#999}.picker-calendar{width:100%}.picker-calendar .picker-calendar-row{display:flex;flex-wrap:wrap;width:100%;margin-bottom:.625rem}.picker-calendar .picker-weekday{font-weight:700;text-align:left;color:#999;width:calc(100% / 7)}.picker-calendar .picker-day,.picker-calendar .picker-month,.picker-calendar .picker-year{font-size:1.333rem;line-height:2.5rem;position:relative;height:2.5rem;text-align:center;cursor:pointer;width:calc(100% / 7)}.picker-calendar .picker-day:hover,.picker-calendar .picker-month:hover,.picker-calendar .picker-year:hover{background:#b1dcfb}.picker-calendar .out-focus{color:#ddd}.picker-calendar .out-focus:hover{color:#000}.picker-calendar .selected{background:#0089ec;color:#fff}.picker-calendar .selected:hover{background:#0089ec}.picker-calendar .today:before{content:\" \";position:absolute;top:2px;right:2px;width:0;height:0;border-top:.5em solid #0059bc;border-left:.5em solid transparent}.picker-footer{cursor:pointer}.picker-footer .picker-action{text-align:center;width:calc(100% / 3)}.picker-footer .picker-action:hover{background-color:#b1dcfb}.picker-footer .picker-action .text{padding-left:.8rem}.picker-footer .action-today:before,.picker-footer .action-clear:before,.picker-footer .action-close:before{content:\" \";position:relative;display:inline-block;height:0;width:0}.picker-footer .action-today:before{border-top:.66em solid #0059bc;border-left:.66em solid transparent}.picker-footer .action-clear:before{top:-.5rem;width:1rem;border-top:3px solid #e20}.picker-footer .action-close:before{width:1rem;height:1rem;background:linear-gradient(to bottom,transparent 35%,#777 35%,#777 65%,transparent 65%),linear-gradient(to right,transparent 35%,#777 35%,#777 65%,transparent 65%);transform:rotate(45deg)}\n"], components: [{ type: ModalComponent, selector: "ofe-picker-modal", outputs: ["overlayClick"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "moment": MomentPipe } });
|
|
9335
9312
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DatePickerComponent, decorators: [{
|
|
9336
9313
|
type: Component,
|
|
9337
9314
|
args: [{
|
|
9338
|
-
selector: 'date-picker',
|
|
9315
|
+
selector: 'ofe-date-picker',
|
|
9339
9316
|
templateUrl: './date-picker.component.html',
|
|
9340
9317
|
styleUrls: ['./date-picker.component.css']
|
|
9341
9318
|
}]
|
|
@@ -9347,9 +9324,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9347
9324
|
type: Input
|
|
9348
9325
|
}], returnObject: [{
|
|
9349
9326
|
type: Input
|
|
9350
|
-
}],
|
|
9327
|
+
}], datePickerCancel: [{
|
|
9351
9328
|
type: Output
|
|
9352
|
-
}],
|
|
9329
|
+
}], dateSelect: [{
|
|
9353
9330
|
type: Output
|
|
9354
9331
|
}] } });
|
|
9355
9332
|
|
|
@@ -9365,8 +9342,8 @@ class TimePickerComponent {
|
|
|
9365
9342
|
this.viewFormat = 'hh:mm A';
|
|
9366
9343
|
this.use12Hour = false;
|
|
9367
9344
|
this.returnObject = 'js';
|
|
9368
|
-
this.
|
|
9369
|
-
this.
|
|
9345
|
+
this.timeSelect = new EventEmitter();
|
|
9346
|
+
this.timePickerCancel = new EventEmitter();
|
|
9370
9347
|
this.hourFormat = 'HH';
|
|
9371
9348
|
}
|
|
9372
9349
|
ngOnInit() {
|
|
@@ -9407,23 +9384,23 @@ class TimePickerComponent {
|
|
|
9407
9384
|
}
|
|
9408
9385
|
selectTime() {
|
|
9409
9386
|
const selectTime = this.parseToReturnObjectType(this.time);
|
|
9410
|
-
this.
|
|
9387
|
+
this.timeSelect.emit(selectTime);
|
|
9411
9388
|
this.cancelTimePicker();
|
|
9412
9389
|
return;
|
|
9413
9390
|
}
|
|
9414
9391
|
selectNow() {
|
|
9415
9392
|
const selectTime = this.parseToReturnObjectType(moment());
|
|
9416
|
-
this.
|
|
9393
|
+
this.timeSelect.emit(selectTime);
|
|
9417
9394
|
this.cancelTimePicker();
|
|
9418
9395
|
return;
|
|
9419
9396
|
}
|
|
9420
9397
|
clearTime() {
|
|
9421
|
-
this.
|
|
9398
|
+
this.timeSelect.emit(null);
|
|
9422
9399
|
this.cancelTimePicker();
|
|
9423
9400
|
return;
|
|
9424
9401
|
}
|
|
9425
9402
|
cancelTimePicker() {
|
|
9426
|
-
this.
|
|
9403
|
+
this.timePickerCancel.emit(false);
|
|
9427
9404
|
return;
|
|
9428
9405
|
}
|
|
9429
9406
|
parseToReturnObjectType(time) {
|
|
@@ -9448,11 +9425,11 @@ class TimePickerComponent {
|
|
|
9448
9425
|
}
|
|
9449
9426
|
}
|
|
9450
9427
|
TimePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TimePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9451
|
-
TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TimePickerComponent, selector: "time-picker", inputs: { initTime: "initTime", showSecond: "showSecond", viewFormat: "viewFormat", use12Hour: "use12Hour", returnObject: "returnObject" }, outputs: {
|
|
9428
|
+
TimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TimePickerComponent, selector: "ofe-time-picker", inputs: { initTime: "initTime", showSecond: "showSecond", viewFormat: "viewFormat", use12Hour: "use12Hour", returnObject: "returnObject" }, outputs: { timeSelect: "timeSelect", timePickerCancel: "timePickerCancel" }, ngImport: i0, template: "<ofe-picker-modal (overlayClick)=\"cancelTimePicker()\">\n <div class=\"picker-wrap\">\n <div class=\"picker-box\">\n <div class=\"picker-header\">Time Picker</div>\n <div class=\"picker-table\">\n <ul class=\"picker-table-time\">\n <li class=\"picker-table-number hour\">\n <span class=\"arrow up\" (click)=\"increaseHour()\"></span>\n {{ time | moment: hourFormat }}\n <span class=\"arrow down\" (click)=\"decreaseHour()\"></span>\n </li>\n <li class=\"picker-table-separator\">:</li>\n <li class=\"picker-table-number minute\">\n <span class=\"arrow up\" (click)=\"increaseMinute()\"></span>\n {{ time | moment: 'mm' }}\n <span class=\"arrow down\" (click)=\"decreaseMinute()\"></span>\n </li>\n <li *ngIf=\"showSecond\" class=\"picker-table-separator\">:</li>\n <li *ngIf=\"showSecond\" class=\"picker-table-number second\">\n <span class=\"arrow up\" (click)=\"increaseSecond()\"></span>\n {{ time | moment: 'ss' }}\n <span class=\"arrow down\" (click)=\"decreaseSecond()\"></span>\n </li>\n <li *ngIf=\"use12Hour\" class=\"picker-table-meridiem meridiem\">\n {{ time | moment: 'A' }}\n </li>\n </ul>\n </div>\n <div class=\"picker-footer\">\n <div class=\"picker-action action-now\" (click)=\"selectNow()\">\n <span class=\"text\">Now</span>\n </div>\n <div class=\"picker-action action-confirm\" (click)=\"selectTime()\">\n <span class=\"text\">Confirm</span>\n </div>\n <div class=\"picker-action action-clear\" (click)=\"clearTime()\">\n <span class=\"text\">Clear</span>\n </div>\n <div class=\"picker-action action-close\" (click)=\"cancelTimePicker()\">\n <span class=\"text\">Close</span>\n </div>\n </div>\n </div>\n </div>\n</ofe-picker-modal>\n", styles: ["*,*:before,*:after{box-sizing:border-box}.picker-wrap{width:95vw;max-width:40rem;font-family:\"Open Sans\"}.picker-box{width:100%;padding:.625rem 1rem;-webkit-user-select:none;user-select:none}.picker-header,.picker-footer{font-size:1.333rem;line-height:2.5rem;height:2.5rem;width:100%}.picker-header{text-align:center}.picker-table{width:100%;margin:2.5rem 0}.picker-table-time{font-size:2.37rem;line-height:2.5rem;list-style:none;margin:0;padding:0;display:flex;justify-content:center;width:100%;-webkit-user-select:none;user-select:none}.picker-table-number,.picker-table-meridiem,.picker-table-separator{text-align:center}.picker-table-number,.picker-table-meridiem{position:relative;width:20%}.arrow{position:absolute;left:50%;border:solid #777;border-width:0 .2rem .2rem 0;display:inline-block;padding:.25rem;cursor:pointer}.arrow.up{top:-1rem;transform:translate(-50%) rotate(-135deg)}.arrow.down{bottom:-1rem;transform:translate(-50%) rotate(45deg)}.arrow:hover{border-color:#1975d2}.picker-table-separator{width:calc(20% / 3)}.picker-footer{display:flex;justify-content:center;width:100%;cursor:pointer}.picker-footer .picker-action{width:25%;text-align:center}.picker-footer .picker-action:hover{background-color:#b1dcfb}.picker-footer .picker-action .text{padding-left:.8rem}.picker-footer .action-now:before,.picker-footer .action-confirm:before,.picker-footer .action-clear:before,.picker-footer .action-close:before{content:\" \";position:relative;display:inline-block;height:0;width:0}.picker-footer .action-now:before{border-top:.66em solid #0059bc;border-left:.66em solid transparent}.picker-footer .action-confirm:before{width:1rem;height:1rem;border-radius:100%;background-color:#00b5ad}.picker-footer .action-clear:before{top:-.5rem;width:1rem;border-top:3px solid #e20}.picker-footer .action-close:before{width:1rem;height:1rem;background:linear-gradient(to bottom,transparent 35%,#777 35%,#777 65%,transparent 65%),linear-gradient(to right,transparent 35%,#777 35%,#777 65%,transparent 65%);transform:rotate(45deg)}\n"], components: [{ type: ModalComponent, selector: "ofe-picker-modal", outputs: ["overlayClick"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "moment": MomentPipe } });
|
|
9452
9429
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TimePickerComponent, decorators: [{
|
|
9453
9430
|
type: Component,
|
|
9454
9431
|
args: [{
|
|
9455
|
-
selector: 'time-picker',
|
|
9432
|
+
selector: 'ofe-time-picker',
|
|
9456
9433
|
templateUrl: './time-picker.component.html',
|
|
9457
9434
|
styleUrls: ['./time-picker.component.css']
|
|
9458
9435
|
}]
|
|
@@ -9466,9 +9443,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9466
9443
|
type: Input
|
|
9467
9444
|
}], returnObject: [{
|
|
9468
9445
|
type: Input
|
|
9469
|
-
}],
|
|
9446
|
+
}], timeSelect: [{
|
|
9470
9447
|
type: Output
|
|
9471
|
-
}],
|
|
9448
|
+
}], timePickerCancel: [{
|
|
9472
9449
|
type: Output
|
|
9473
9450
|
}] } });
|
|
9474
9451
|
|
|
@@ -9478,13 +9455,12 @@ class DateTimePickerComponent {
|
|
|
9478
9455
|
this.showTime = false;
|
|
9479
9456
|
this.showWeeks = false;
|
|
9480
9457
|
this.weeks = [2, 4, 6, 8, 12, 16, 24];
|
|
9481
|
-
this.
|
|
9458
|
+
this.dateChange = new EventEmitter();
|
|
9482
9459
|
this.showDatePicker = false;
|
|
9483
9460
|
this.showTimePicker = false;
|
|
9484
9461
|
this.onChange = () => { };
|
|
9485
9462
|
this.onTouched = () => { };
|
|
9486
9463
|
}
|
|
9487
|
-
ngOnInit() { }
|
|
9488
9464
|
weeksSelected(count) {
|
|
9489
9465
|
const now = new Date();
|
|
9490
9466
|
const nextDate = now.setDate(now.getDate() + count * 7);
|
|
@@ -9530,7 +9506,7 @@ class DateTimePickerComponent {
|
|
|
9530
9506
|
}
|
|
9531
9507
|
set value(val) {
|
|
9532
9508
|
this.modelValue = val;
|
|
9533
|
-
this.
|
|
9509
|
+
this.dateChange.emit(val);
|
|
9534
9510
|
this.onChange(val);
|
|
9535
9511
|
this.onTouched();
|
|
9536
9512
|
}
|
|
@@ -9550,17 +9526,17 @@ class DateTimePickerComponent {
|
|
|
9550
9526
|
}
|
|
9551
9527
|
}
|
|
9552
9528
|
DateTimePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DateTimePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9553
|
-
DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DateTimePickerComponent, selector: "date-time-picker", inputs: { modelValue: "modelValue", showDate: "showDate", showTime: "showTime", showWeeks: "showWeeks", weeks: "weeks" }, outputs: {
|
|
9529
|
+
DateTimePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DateTimePickerComponent, selector: "ofe-date-time-picker", inputs: { modelValue: "modelValue", showDate: "showDate", showTime: "showTime", showWeeks: "showWeeks", weeks: "weeks" }, outputs: { dateChange: "dateChange" }, providers: [
|
|
9554
9530
|
{
|
|
9555
9531
|
provide: NG_VALUE_ACCESSOR,
|
|
9556
9532
|
useExisting: forwardRef(() => DateTimePickerComponent),
|
|
9557
9533
|
multi: true
|
|
9558
9534
|
}
|
|
9559
|
-
], ngImport: i0, template: "<div class=\"row\">\n <div *ngIf=\"!showTime\" class=\"col-xs-12 col-md-12\">\n <input\n *ngIf=\"!showWeeks\"\n type=\"text\"\n class=\"form-control\"\n [value]=\"value | date: 'mediumDate'\"\n (focus)=\"toggleDatePicker(true)\"\n readonly\n placeholder=\"Select Date\"\n />\n <div *ngIf=\"showWeeks\" class=\"input-group\">\n <input\n type=\"text\"\n class=\"form-control\"\n class=\"form-control\"\n [value]=\"value | date: 'mediumDate'\"\n (focus)=\"toggleDatePicker(true)\"\n readonly\n placeholder=\"Select Date\"\n />\n <div class=\"input-group-btn\">\n <button\n type=\"button\"\n class=\"btn btn-default dropdown-toggle\"\n data-toggle=\"dropdown\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n >\n Weeks <span class=\"caret\"></span>\n </button>\n <ul class=\"dropdown-menu up\">\n <li (click)=\"weeksSelected(count)\" *ngFor=\"let count of weeks\">\n <span> {{ count }} Weeks</span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div *ngIf=\"showTime\" class=\"col-xs-8 col-md-8\">\n <input\n *ngIf=\"!showWeeks\"\n type=\"text\"\n class=\"form-control\"\n [value]=\"value | date: 'mediumDate'\"\n (focus)=\"toggleDatePicker(true)\"\n readonly\n placeholder=\"Select Date\"\n />\n <div *ngIf=\"showWeeks\" class=\"input-group\">\n <input\n type=\"text\"\n class=\"form-control\"\n class=\"form-control\"\n [value]=\"value | date: 'mediumDate'\"\n (focus)=\"toggleDatePicker(true)\"\n readonly\n placeholder=\"Select Date\"\n />\n <div class=\"input-group-btn\">\n <button\n type=\"button\"\n class=\"btn btn-default dropdown-toggle\"\n data-toggle=\"dropdown\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n >\n Weeks <span class=\"caret\"></span>\n </button>\n <ul class=\"dropdown-menu up\">\n <li (click)=\"weeksSelected(count)\" *ngFor=\"let count of weeks\">\n <span> {{ count }} Weeks</span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div *ngIf=\"showTime\" class=\"col-xs-4 col-md-4\">\n <input\n type=\"text\"\n class=\"form-control\"\n [value]=\"value | date: 'shortTime'\"\n (focus)=\"toggleTimePicker(true)\"\n readonly\n placeholder=\"Select Time\"\n />\n </div>\n</div>\n<date-picker\n *ngIf=\"showDatePicker\"\n [initDate]=\"value\"\n (
|
|
9535
|
+
], ngImport: i0, template: "<div class=\"row\">\n <div *ngIf=\"!showTime\" class=\"col-xs-12 col-md-12\">\n <input\n *ngIf=\"!showWeeks\"\n type=\"text\"\n class=\"form-control\"\n [value]=\"value | date: 'mediumDate'\"\n (focus)=\"toggleDatePicker(true)\"\n readonly\n placeholder=\"Select Date\"\n />\n <div *ngIf=\"showWeeks\" class=\"input-group\">\n <input\n type=\"text\"\n class=\"form-control\"\n class=\"form-control\"\n [value]=\"value | date: 'mediumDate'\"\n (focus)=\"toggleDatePicker(true)\"\n readonly\n placeholder=\"Select Date\"\n />\n <div class=\"input-group-btn\">\n <button\n type=\"button\"\n class=\"btn btn-default dropdown-toggle\"\n data-toggle=\"dropdown\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n >\n Weeks <span class=\"caret\"></span>\n </button>\n <ul class=\"dropdown-menu up\">\n <li (click)=\"weeksSelected(count)\" *ngFor=\"let count of weeks\">\n <span> {{ count }} Weeks</span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div *ngIf=\"showTime\" class=\"col-xs-8 col-md-8\">\n <input\n *ngIf=\"!showWeeks\"\n type=\"text\"\n class=\"form-control\"\n [value]=\"value | date: 'mediumDate'\"\n (focus)=\"toggleDatePicker(true)\"\n readonly\n placeholder=\"Select Date\"\n />\n <div *ngIf=\"showWeeks\" class=\"input-group\">\n <input\n type=\"text\"\n class=\"form-control\"\n class=\"form-control\"\n [value]=\"value | date: 'mediumDate'\"\n (focus)=\"toggleDatePicker(true)\"\n readonly\n placeholder=\"Select Date\"\n />\n <div class=\"input-group-btn\">\n <button\n type=\"button\"\n class=\"btn btn-default dropdown-toggle\"\n data-toggle=\"dropdown\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n >\n Weeks <span class=\"caret\"></span>\n </button>\n <ul class=\"dropdown-menu up\">\n <li (click)=\"weeksSelected(count)\" *ngFor=\"let count of weeks\">\n <span> {{ count }} Weeks</span>\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div *ngIf=\"showTime\" class=\"col-xs-4 col-md-4\">\n <input\n type=\"text\"\n class=\"form-control\"\n [value]=\"value | date: 'shortTime'\"\n (focus)=\"toggleTimePicker(true)\"\n readonly\n placeholder=\"Select Time\"\n />\n </div>\n</div>\n<ofe-date-picker\n *ngIf=\"showDatePicker\"\n [initDate]=\"value\"\n (dateSelect)=\"setDate($event)\"\n (datePickerCancel)=\"toggleDatePicker($event)\"\n></ofe-date-picker>\n\n<ofe-time-picker\n *ngIf=\"showTimePicker\"\n [initTime]=\"value\"\n [use12Hour]=\"true\"\n (timeSelect)=\"setTime($event)\"\n (timePickerCancel)=\"toggleTimePicker($event)\"\n></ofe-time-picker>\n", styles: ["input[readonly]{background-color:#fff}.up{bottom:100%!important;top:auto!important}.glyphicon{top:1px}\n"], components: [{ type: DatePickerComponent, selector: "ofe-date-picker", inputs: ["initDate", "locale", "viewFormat", "returnObject"], outputs: ["datePickerCancel", "dateSelect"] }, { type: TimePickerComponent, selector: "ofe-time-picker", inputs: ["initTime", "showSecond", "viewFormat", "use12Hour", "returnObject"], outputs: ["timeSelect", "timePickerCancel"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "date": i1.DatePipe } });
|
|
9560
9536
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DateTimePickerComponent, decorators: [{
|
|
9561
9537
|
type: Component,
|
|
9562
9538
|
args: [{
|
|
9563
|
-
selector: 'date-time-picker',
|
|
9539
|
+
selector: 'ofe-date-time-picker',
|
|
9564
9540
|
templateUrl: './date-time-picker.component.html',
|
|
9565
9541
|
styleUrls: ['./date-time-picker.component.css'],
|
|
9566
9542
|
providers: [
|
|
@@ -9581,7 +9557,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9581
9557
|
type: Input
|
|
9582
9558
|
}], weeks: [{
|
|
9583
9559
|
type: Input
|
|
9584
|
-
}],
|
|
9560
|
+
}], dateChange: [{
|
|
9585
9561
|
type: Output
|
|
9586
9562
|
}] } });
|
|
9587
9563
|
|
|
@@ -9623,7 +9599,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9623
9599
|
}]
|
|
9624
9600
|
}] });
|
|
9625
9601
|
|
|
9626
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
9627
9602
|
const OWL_DATETIME_VALUE_ACCESSOR = {
|
|
9628
9603
|
provide: NG_VALUE_ACCESSOR,
|
|
9629
9604
|
useExisting: forwardRef(() => OwlDateTimeInlineComponent),
|
|
@@ -9659,6 +9634,9 @@ class OwlDateTimeInlineComponent extends OwlDateTime {
|
|
|
9659
9634
|
this.onModelChange = () => { };
|
|
9660
9635
|
this.onModelTouched = () => { };
|
|
9661
9636
|
}
|
|
9637
|
+
get owlDTInlineClass() {
|
|
9638
|
+
return true;
|
|
9639
|
+
}
|
|
9662
9640
|
get pickerType() {
|
|
9663
9641
|
return this._pickerType;
|
|
9664
9642
|
}
|
|
@@ -9705,7 +9683,7 @@ class OwlDateTimeInlineComponent extends OwlDateTime {
|
|
|
9705
9683
|
set startAt(date) {
|
|
9706
9684
|
this._startAt = this.getValidDate(this.dateTimeAdapter.deserialize(date));
|
|
9707
9685
|
}
|
|
9708
|
-
get
|
|
9686
|
+
get owlDateTimeFilter() {
|
|
9709
9687
|
return this._dateTimeFilter;
|
|
9710
9688
|
}
|
|
9711
9689
|
set dateTimeFilter(filter) {
|
|
@@ -9780,9 +9758,6 @@ class OwlDateTimeInlineComponent extends OwlDateTime {
|
|
|
9780
9758
|
this._selectMode === 'rangeFrom' ||
|
|
9781
9759
|
this._selectMode === 'rangeTo');
|
|
9782
9760
|
}
|
|
9783
|
-
get owlDTInlineClass() {
|
|
9784
|
-
return true;
|
|
9785
|
-
}
|
|
9786
9761
|
ngOnInit() {
|
|
9787
9762
|
this.container.picker = this;
|
|
9788
9763
|
}
|
|
@@ -9832,18 +9807,14 @@ class OwlDateTimeInlineComponent extends OwlDateTime {
|
|
|
9832
9807
|
}
|
|
9833
9808
|
}
|
|
9834
9809
|
OwlDateTimeInlineComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlDateTimeInlineComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DateTimeAdapter, optional: true }, { token: OWL_DATE_TIME_FORMATS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
9835
|
-
OwlDateTimeInlineComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlDateTimeInlineComponent, selector: "owl-date-time-inline", inputs: { pickerType: "pickerType", disabled: "disabled", selectMode: "selectMode", startAt: "startAt",
|
|
9810
|
+
OwlDateTimeInlineComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: OwlDateTimeInlineComponent, selector: "ofe-owl-date-time-inline", inputs: { pickerType: "pickerType", disabled: "disabled", selectMode: "selectMode", startAt: "startAt", owlDateTimeFilter: "owlDateTimeFilter", min: "min", max: "max", value: "value", values: "values" }, outputs: { yearSelected: "yearSelected", monthSelected: "monthSelected" }, host: { properties: { "class.owl-dt-inline": "this.owlDTInlineClass" } }, providers: [OWL_DATETIME_VALUE_ACCESSOR], viewQueries: [{ propertyName: "container", first: true, predicate: OwlDateTimeContainerComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ofe-owl-date-time-container></ofe-owl-date-time-container>\n", styles: [""], components: [{ type: OwlDateTimeContainerComponent, selector: "ofe-owl-date-time-container", exportAs: ["owlDateTimeContainer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9836
9811
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OwlDateTimeInlineComponent, decorators: [{
|
|
9837
9812
|
type: Component,
|
|
9838
9813
|
args: [{
|
|
9839
|
-
selector: 'owl-date-time-inline',
|
|
9814
|
+
selector: 'ofe-owl-date-time-inline',
|
|
9840
9815
|
templateUrl: './date-time-inline.component.html',
|
|
9841
9816
|
styleUrls: ['./date-time-inline.component.scss'],
|
|
9842
|
-
host: {
|
|
9843
|
-
'[class.owl-dt-inline]': 'owlDTInlineClass'
|
|
9844
|
-
},
|
|
9845
9817
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9846
|
-
preserveWhitespaces: false,
|
|
9847
9818
|
providers: [OWL_DATETIME_VALUE_ACCESSOR]
|
|
9848
9819
|
}]
|
|
9849
9820
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: DateTimeAdapter, decorators: [{
|
|
@@ -9853,7 +9824,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9853
9824
|
}, {
|
|
9854
9825
|
type: Inject,
|
|
9855
9826
|
args: [OWL_DATE_TIME_FORMATS]
|
|
9856
|
-
}] }]; }, propDecorators: {
|
|
9827
|
+
}] }]; }, propDecorators: { owlDTInlineClass: [{
|
|
9828
|
+
type: HostBinding,
|
|
9829
|
+
args: ['class.owl-dt-inline']
|
|
9830
|
+
}], container: [{
|
|
9857
9831
|
type: ViewChild,
|
|
9858
9832
|
args: [OwlDateTimeContainerComponent, { static: true }]
|
|
9859
9833
|
}], pickerType: [{
|
|
@@ -9864,15 +9838,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
9864
9838
|
type: Input
|
|
9865
9839
|
}], startAt: [{
|
|
9866
9840
|
type: Input
|
|
9867
|
-
}],
|
|
9868
|
-
type: Input
|
|
9869
|
-
|
|
9870
|
-
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
}], maxDateTime: [{
|
|
9874
|
-
type: Input,
|
|
9875
|
-
args: ['max']
|
|
9841
|
+
}], owlDateTimeFilter: [{
|
|
9842
|
+
type: Input
|
|
9843
|
+
}], min: [{
|
|
9844
|
+
type: Input
|
|
9845
|
+
}], max: [{
|
|
9846
|
+
type: Input
|
|
9876
9847
|
}], value: [{
|
|
9877
9848
|
type: Input
|
|
9878
9849
|
}], values: [{
|
|
@@ -10374,7 +10345,6 @@ NgxDateTimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
10374
10345
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: NgxDateTimePickerModule, decorators: [{
|
|
10375
10346
|
type: NgModule,
|
|
10376
10347
|
args: [{
|
|
10377
|
-
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
10378
10348
|
imports: [
|
|
10379
10349
|
CommonModule,
|
|
10380
10350
|
FormsModule,
|
|
@@ -10410,7 +10380,6 @@ class AfeNgSelectComponent {
|
|
|
10410
10380
|
this.propagateChange = fn;
|
|
10411
10381
|
}
|
|
10412
10382
|
registerOnTouched(fn) { }
|
|
10413
|
-
ngOnChanges(changes) { }
|
|
10414
10383
|
ngOnInit() {
|
|
10415
10384
|
if (this.extras) {
|
|
10416
10385
|
if (this.extras.originalValue) {
|
|
@@ -10450,13 +10419,13 @@ class AfeNgSelectComponent {
|
|
|
10450
10419
|
}
|
|
10451
10420
|
}
|
|
10452
10421
|
AfeNgSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AfeNgSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10453
|
-
AfeNgSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AfeNgSelectComponent, selector: "
|
|
10422
|
+
AfeNgSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AfeNgSelectComponent, selector: "ofe-ng-select", inputs: { dataSource: "dataSource", multiple: "multiple", extras: "extras" }, providers: [
|
|
10454
10423
|
{
|
|
10455
10424
|
provide: NG_VALUE_ACCESSOR,
|
|
10456
10425
|
useExisting: forwardRef(() => AfeNgSelectComponent),
|
|
10457
10426
|
multi: true
|
|
10458
10427
|
}
|
|
10459
|
-
],
|
|
10428
|
+
], ngImport: i0, template: `<ng-select
|
|
10460
10429
|
(searchInputText)="getChangingText($event)"
|
|
10461
10430
|
(ngModelChange)="onValueChange($event)"
|
|
10462
10431
|
[options]="question_options"
|
|
@@ -10466,7 +10435,7 @@ AfeNgSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
10466
10435
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: AfeNgSelectComponent, decorators: [{
|
|
10467
10436
|
type: Component,
|
|
10468
10437
|
args: [{
|
|
10469
|
-
selector: '
|
|
10438
|
+
selector: 'ofe-ng-select',
|
|
10470
10439
|
template: `<ng-select
|
|
10471
10440
|
(searchInputText)="getChangingText($event)"
|
|
10472
10441
|
(ngModelChange)="onValueChange($event)"
|
|
@@ -12331,7 +12300,6 @@ class ObsAdapterHelper {
|
|
|
12331
12300
|
let valueField; // essential memmber
|
|
12332
12301
|
let dateField; // other member to be manipulated by user
|
|
12333
12302
|
const nodeAsGroup = node;
|
|
12334
|
-
// eslint-disable-next-line guard-for-in
|
|
12335
12303
|
for (const o in nodeAsGroup.children) {
|
|
12336
12304
|
if (nodeAsGroup.children[o].question.extras.questionOptions
|
|
12337
12305
|
.obsField === 'value') {
|
|
@@ -12354,7 +12322,6 @@ class ObsAdapterHelper {
|
|
|
12354
12322
|
if (node && obs.length > 0) {
|
|
12355
12323
|
const groupNode = node;
|
|
12356
12324
|
groupNode.initialValue = obs[0];
|
|
12357
|
-
// eslint-disable-next-line guard-for-in
|
|
12358
12325
|
for (const o in groupNode.children) {
|
|
12359
12326
|
this.setNodeValue(groupNode.children[o], obs[0].groupMembers);
|
|
12360
12327
|
}
|
|
@@ -12382,7 +12349,6 @@ class ObsAdapterHelper {
|
|
|
12382
12349
|
case 'unknown':
|
|
12383
12350
|
if (node instanceof GroupNode) {
|
|
12384
12351
|
const groupNode = node;
|
|
12385
|
-
// eslint-disable-next-line guard-for-in
|
|
12386
12352
|
for (const o in groupNode.children) {
|
|
12387
12353
|
this.setNodeValue(groupNode.children[o], obs);
|
|
12388
12354
|
}
|
|
@@ -12514,7 +12480,6 @@ class ObsAdapterHelper {
|
|
|
12514
12480
|
let valueField; // essential memmber
|
|
12515
12481
|
let dateField; // other member to be manipulated by user
|
|
12516
12482
|
const nodeAsGroup = node;
|
|
12517
|
-
// eslint-disable-next-line guard-for-in
|
|
12518
12483
|
for (const o in nodeAsGroup.children) {
|
|
12519
12484
|
if (nodeAsGroup.children[o].question.extras.questionOptions
|
|
12520
12485
|
.obsField === 'value') {
|
|
@@ -12641,7 +12606,6 @@ class ObsAdapterHelper {
|
|
|
12641
12606
|
case 'unknown':
|
|
12642
12607
|
if (node instanceof GroupNode) {
|
|
12643
12608
|
const groupNode = node;
|
|
12644
|
-
// eslint-disable-next-line guard-for-in
|
|
12645
12609
|
for (const o in groupNode.children) {
|
|
12646
12610
|
const groupNodePayoad = this.getObsNodePayload(groupNode.children[o]);
|
|
12647
12611
|
if (Array.isArray(groupNodePayoad) && groupNodePayoad.length > 0) {
|
|
@@ -12852,7 +12816,6 @@ class ObsValueAdapter {
|
|
|
12852
12816
|
setComplexObsValue(node, payload) {
|
|
12853
12817
|
let valueField;
|
|
12854
12818
|
let dateField;
|
|
12855
|
-
// eslint-disable-next-line guard-for-in
|
|
12856
12819
|
for (const o in node.children) {
|
|
12857
12820
|
if (node.children[o].question.extras.questionOptions
|
|
12858
12821
|
.obsField === 'value') {
|
|
@@ -13053,14 +13016,12 @@ class ObsValueAdapter {
|
|
|
13053
13016
|
const newPayload = [];
|
|
13054
13017
|
for (const obs of payload) {
|
|
13055
13018
|
const groupPayload = [];
|
|
13056
|
-
/* eslint-disable */
|
|
13057
13019
|
for (let key in obs.value) {
|
|
13058
13020
|
let concept = key.split(':')[0];
|
|
13059
13021
|
let value = key.split(':')[1];
|
|
13060
13022
|
groupPayload.push({ concept: concept, value: value });
|
|
13061
13023
|
}
|
|
13062
13024
|
newPayload.push({ concept: groupConcept, groupMembers: groupPayload });
|
|
13063
|
-
/* eslint-enable */
|
|
13064
13025
|
}
|
|
13065
13026
|
return newPayload;
|
|
13066
13027
|
}
|
|
@@ -13119,7 +13080,6 @@ class ObsValueAdapter {
|
|
|
13119
13080
|
processComplexObs(node, obsPayload) {
|
|
13120
13081
|
let valueField;
|
|
13121
13082
|
let dateField;
|
|
13122
|
-
// eslint-disable-next-line guard-for-in
|
|
13123
13083
|
for (const o in node.children) {
|
|
13124
13084
|
if (node.children[o].question.extras.questionOptions
|
|
13125
13085
|
.obsField === 'value') {
|
|
@@ -13441,7 +13401,6 @@ class OrderValueAdapter {
|
|
|
13441
13401
|
break;
|
|
13442
13402
|
case 'repeating':
|
|
13443
13403
|
if (formNode.children) {
|
|
13444
|
-
// eslint-disable-next-line guard-for-in
|
|
13445
13404
|
for (const node in formNode.children) {
|
|
13446
13405
|
const question = formNode.children[node].question;
|
|
13447
13406
|
if (question.extras &&
|
|
@@ -13600,7 +13559,6 @@ class EncounterAdapter {
|
|
|
13600
13559
|
}
|
|
13601
13560
|
if (rootNode instanceof GroupNode) {
|
|
13602
13561
|
const node = rootNode;
|
|
13603
|
-
// eslint-disable-next-line guard-for-in
|
|
13604
13562
|
for (const o in node.children) {
|
|
13605
13563
|
if (node.children[o] instanceof NodeBase) {
|
|
13606
13564
|
this._getEncounterNodes(node.children[o], array);
|
|
@@ -13695,7 +13653,6 @@ class PersonAttribuAdapter {
|
|
|
13695
13653
|
}
|
|
13696
13654
|
if (rootNode instanceof GroupNode) {
|
|
13697
13655
|
const node = rootNode;
|
|
13698
|
-
// eslint-disable-next-line guard-for-in
|
|
13699
13656
|
for (const o in node.children) {
|
|
13700
13657
|
if (node.children[o] instanceof NodeBase) {
|
|
13701
13658
|
this._getPersonAttributesNodes(node.children[o], array);
|
|
@@ -13791,19 +13748,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
13791
13748
|
}]
|
|
13792
13749
|
}] });
|
|
13793
13750
|
|
|
13794
|
-
|
|
13795
|
-
|
|
13751
|
+
class OptionDirective {
|
|
13752
|
+
constructor() {
|
|
13753
|
+
this.inputClass = 'cds--select-option';
|
|
13754
|
+
}
|
|
13755
|
+
}
|
|
13756
|
+
OptionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
13757
|
+
OptionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: OptionDirective, selector: "[ofeOption]", host: { properties: { "class": "this.inputClass" } }, ngImport: i0 });
|
|
13758
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OptionDirective, decorators: [{
|
|
13759
|
+
type: Directive,
|
|
13760
|
+
args: [{
|
|
13761
|
+
selector: '[ofeOption]'
|
|
13762
|
+
}]
|
|
13763
|
+
}], propDecorators: { inputClass: [{
|
|
13764
|
+
type: HostBinding,
|
|
13765
|
+
args: ['class']
|
|
13766
|
+
}] } });
|
|
13767
|
+
|
|
13768
|
+
class OptGroupDirective {
|
|
13796
13769
|
constructor() {
|
|
13797
13770
|
this.inputClass = 'cds--select-optgroup';
|
|
13798
13771
|
}
|
|
13799
13772
|
}
|
|
13800
|
-
|
|
13801
|
-
|
|
13802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type:
|
|
13773
|
+
OptGroupDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OptGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
13774
|
+
OptGroupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: OptGroupDirective, selector: "[ofeOptgroup]", host: { properties: { "class": "this.inputClass" } }, ngImport: i0 });
|
|
13775
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: OptGroupDirective, decorators: [{
|
|
13803
13776
|
type: Directive,
|
|
13804
13777
|
args: [{
|
|
13805
|
-
|
|
13806
|
-
selector: 'optgroup'
|
|
13778
|
+
selector: '[ofeOptgroup]'
|
|
13807
13779
|
}]
|
|
13808
13780
|
}], propDecorators: { inputClass: [{
|
|
13809
13781
|
type: HostBinding,
|
|
@@ -13814,43 +13786,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
13814
13786
|
class SelectModule {
|
|
13815
13787
|
}
|
|
13816
13788
|
SelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13817
|
-
SelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SelectModule, declarations: [
|
|
13789
|
+
SelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SelectModule, declarations: [SelectComponent, OptionDirective, OptGroupDirective], imports: [CommonModule, FormsModule], exports: [SelectComponent, OptionDirective, OptGroupDirective] });
|
|
13818
13790
|
SelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SelectModule, imports: [[CommonModule, FormsModule]] });
|
|
13819
13791
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SelectModule, decorators: [{
|
|
13820
13792
|
type: NgModule,
|
|
13821
13793
|
args: [{
|
|
13822
|
-
declarations: [
|
|
13823
|
-
exports: [
|
|
13794
|
+
declarations: [SelectComponent, OptionDirective, OptGroupDirective],
|
|
13795
|
+
exports: [SelectComponent, OptionDirective, OptGroupDirective],
|
|
13824
13796
|
imports: [CommonModule, FormsModule]
|
|
13825
13797
|
}]
|
|
13826
13798
|
}] });
|
|
13827
13799
|
|
|
13828
|
-
/* eslint-disable @angular-eslint/component-class-suffix */
|
|
13829
13800
|
/**
|
|
13830
13801
|
* [See demo](../../?path=/story/input--label)
|
|
13831
13802
|
*
|
|
13832
13803
|
* ```html
|
|
13833
|
-
* <
|
|
13804
|
+
* <ofe-label labelState="success">
|
|
13834
13805
|
* <label label>Field with success</label>
|
|
13835
13806
|
* <input type="text" class="input-field">
|
|
13836
|
-
* </
|
|
13807
|
+
* </ofe-label>
|
|
13837
13808
|
*
|
|
13838
|
-
* <
|
|
13809
|
+
* <ofe-label labelState="warning">
|
|
13839
13810
|
* <label label>Field with warning</label>
|
|
13840
13811
|
* <input type="text" class="input-field">
|
|
13841
|
-
* </
|
|
13812
|
+
* </ofe-label>
|
|
13842
13813
|
*
|
|
13843
|
-
* <
|
|
13814
|
+
* <ofe-label labelState="error">
|
|
13844
13815
|
* <label label>Field with error</label>
|
|
13845
13816
|
* <input type="text" class="input-field">
|
|
13846
|
-
* </
|
|
13817
|
+
* </ofe-label>
|
|
13847
13818
|
* ```
|
|
13848
13819
|
*
|
|
13849
13820
|
* <example-url>../../iframe.html?id=input--label</example-url>
|
|
13850
13821
|
*/
|
|
13851
|
-
class
|
|
13822
|
+
class LabelComponent {
|
|
13852
13823
|
/**
|
|
13853
|
-
* Creates an instance of
|
|
13824
|
+
* Creates an instance of LabelComponent.
|
|
13854
13825
|
*/
|
|
13855
13826
|
constructor() {
|
|
13856
13827
|
/**
|
|
@@ -13861,7 +13832,7 @@ class Label {
|
|
|
13861
13832
|
* The id of the input item associated with the `Label`. This value is also used to associate the `Label` with
|
|
13862
13833
|
* its input counterpart through the 'for' attribute.
|
|
13863
13834
|
*/
|
|
13864
|
-
this.labelInputID = '
|
|
13835
|
+
this.labelInputID = 'ofe-label-' + LabelComponent.labelCounter;
|
|
13865
13836
|
/**
|
|
13866
13837
|
* State of the `Label` will determine the styles applied.
|
|
13867
13838
|
*/
|
|
@@ -13879,7 +13850,7 @@ class Label {
|
|
|
13879
13850
|
*/
|
|
13880
13851
|
this.warn = false;
|
|
13881
13852
|
this.labelClass = true;
|
|
13882
|
-
|
|
13853
|
+
LabelComponent.labelCounter++;
|
|
13883
13854
|
}
|
|
13884
13855
|
/**
|
|
13885
13856
|
* Update wrapper class if a textarea is hosted.
|
|
@@ -13907,9 +13878,9 @@ class Label {
|
|
|
13907
13878
|
/**
|
|
13908
13879
|
* Used to build the id of the input item associated with the `Label`.
|
|
13909
13880
|
*/
|
|
13910
|
-
|
|
13911
|
-
|
|
13912
|
-
|
|
13881
|
+
LabelComponent.labelCounter = 0;
|
|
13882
|
+
LabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13883
|
+
LabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LabelComponent, selector: "ofe-label", inputs: { labelInputID: "labelInputID", labelState: "labelState", skeleton: "skeleton", helperText: "helperText", invalidText: "invalidText", invalid: "invalid", warn: "warn", warnText: "warnText", ariaLabel: "ariaLabel" }, host: { properties: { "class.cds--form-item": "this.labelClass" } }, queries: [{ propertyName: "textArea", first: true, predicate: TextAreaDirective, descendants: true }], viewQueries: [{ propertyName: "wrapper", first: true, predicate: ["wrapper"], descendants: true }], ngImport: i0, template: `
|
|
13913
13884
|
<label
|
|
13914
13885
|
[for]="labelInputID"
|
|
13915
13886
|
[attr.aria-label]="ariaLabel"
|
|
@@ -13980,10 +13951,10 @@ Label.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.1
|
|
|
13980
13951
|
></ng-template>
|
|
13981
13952
|
</div>
|
|
13982
13953
|
`, isInline: true, directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
13983
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type:
|
|
13954
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LabelComponent, decorators: [{
|
|
13984
13955
|
type: Component,
|
|
13985
13956
|
args: [{
|
|
13986
|
-
selector: '
|
|
13957
|
+
selector: 'ofe-label',
|
|
13987
13958
|
template: `
|
|
13988
13959
|
<label
|
|
13989
13960
|
[for]="labelInputID"
|
|
@@ -14079,7 +14050,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
14079
14050
|
args: ['wrapper', { static: false }]
|
|
14080
14051
|
}], textArea: [{
|
|
14081
14052
|
type: ContentChild,
|
|
14082
|
-
args: [
|
|
14053
|
+
args: [TextAreaDirective, { static: false }]
|
|
14083
14054
|
}], labelClass: [{
|
|
14084
14055
|
type: HostBinding,
|
|
14085
14056
|
args: ['class.cds--form-item']
|
|
@@ -14089,13 +14060,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
14089
14060
|
class InputModule {
|
|
14090
14061
|
}
|
|
14091
14062
|
InputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
14092
|
-
InputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InputModule, declarations: [
|
|
14063
|
+
InputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InputModule, declarations: [LabelComponent, TextInputDirective, TextAreaDirective], imports: [CommonModule, FormsModule], exports: [LabelComponent, TextInputDirective, TextAreaDirective] });
|
|
14093
14064
|
InputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InputModule, imports: [[CommonModule, FormsModule]] });
|
|
14094
14065
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InputModule, decorators: [{
|
|
14095
14066
|
type: NgModule,
|
|
14096
14067
|
args: [{
|
|
14097
|
-
declarations: [
|
|
14098
|
-
exports: [
|
|
14068
|
+
declarations: [LabelComponent, TextInputDirective, TextAreaDirective],
|
|
14069
|
+
exports: [LabelComponent, TextInputDirective, TextAreaDirective],
|
|
14099
14070
|
imports: [CommonModule, FormsModule]
|
|
14100
14071
|
}]
|
|
14101
14072
|
}] });
|