@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('rxjs'), require('moment'), require('lodash'), require('@angular-extensions/elements'), require('ngx-file-uploader-openmrs'), require('@angular/platform-browser'), require('rxjs/operators'), require('@ng-select/ng-select'), require('@angular/cdk/portal'), require('@angular/cdk/overlay'), require('@angular/cdk/keycodes'), require('@angular/cdk/coercion'), require('@angular/cdk/a11y'), require('@angular/animations'), require('ngx-webcam'), require('@angular/cdk/platform')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@openmrs/ngx-formentry', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'rxjs', 'moment', 'lodash', '@angular-extensions/elements', 'ngx-file-uploader-openmrs', '@angular/platform-browser', 'rxjs/operators', '@ng-select/ng-select', '@angular/cdk/portal', '@angular/cdk/overlay', '@angular/cdk/keycodes', '@angular/cdk/coercion', '@angular/cdk/a11y', '@angular/animations', 'ngx-webcam', '@angular/cdk/platform'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.openmrs = global.openmrs || {}, global.openmrs["ngx-formentry"] = {}), global.ng.core, global.ng.common, global.ng.forms, global.rxjs, global.moment, global.lodash, global["@angular-extensions/elements"], global["ngx-file-uploader-openmrs"], global.ng.platformBrowser, global.rxjs.operators, global["@ng-select/ng-select"], global.ng.cdk.portal, global.ng.cdk.overlay, global.ng.cdk.keycodes, global.ng.cdk.coercion, global.ng.cdk.a11y, global.ng.animations, global["ngx-webcam"], global.ng.cdk.platform));
|
|
5
|
-
})(this, (function (exports, i0, i1,
|
|
5
|
+
})(this, (function (exports, i0, i1, i19, rxjs, moment, _, i2, i1$2, i1$1, operators, i1$3, i2$1, i1$6, keycodes, coercion, i1$4, i1$5, ngxWebcam, i1$7) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
28
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
29
|
-
var
|
|
29
|
+
var i19__namespace = /*#__PURE__*/_interopNamespace(i19);
|
|
30
30
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
|
|
31
31
|
var ___namespace = /*#__PURE__*/_interopNamespace(_);
|
|
32
32
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
@@ -605,7 +605,7 @@
|
|
|
605
605
|
configurable: true
|
|
606
606
|
});
|
|
607
607
|
ControlRelations.prototype.addRelatedControls = function (relatedTo) {
|
|
608
|
-
if (relatedTo instanceof
|
|
608
|
+
if (relatedTo instanceof i19.AbstractControl) {
|
|
609
609
|
this.relations.push(new ControlRelation(this._relationFor, relatedTo));
|
|
610
610
|
}
|
|
611
611
|
if (relatedTo instanceof Array) {
|
|
@@ -1132,7 +1132,6 @@
|
|
|
1132
1132
|
var runner = this;
|
|
1133
1133
|
var runnable = {
|
|
1134
1134
|
run: function () {
|
|
1135
|
-
/* eslint-disable */
|
|
1136
1135
|
var scope = {};
|
|
1137
1136
|
if (control.uuid) {
|
|
1138
1137
|
scope[control.uuid] = control.value;
|
|
@@ -1400,7 +1399,7 @@
|
|
|
1400
1399
|
_super.prototype.setValue.call(this, value);
|
|
1401
1400
|
};
|
|
1402
1401
|
return AfeFormControl;
|
|
1403
|
-
}(
|
|
1402
|
+
}(i19.FormControl));
|
|
1404
1403
|
|
|
1405
1404
|
var AfeFormGroup = /** @class */ (function (_super) {
|
|
1406
1405
|
__extends(AfeFormGroup, _super);
|
|
@@ -1463,7 +1462,7 @@
|
|
|
1463
1462
|
_super.prototype.setValue.call(this, value);
|
|
1464
1463
|
};
|
|
1465
1464
|
return AfeFormGroup;
|
|
1466
|
-
}(
|
|
1465
|
+
}(i19.FormGroup));
|
|
1467
1466
|
|
|
1468
1467
|
var AfeFormArray = /** @class */ (function (_super) {
|
|
1469
1468
|
__extends(AfeFormArray, _super);
|
|
@@ -1554,7 +1553,7 @@
|
|
|
1554
1553
|
_super.prototype.setValue.call(this, value);
|
|
1555
1554
|
};
|
|
1556
1555
|
return AfeFormArray;
|
|
1557
|
-
}(
|
|
1556
|
+
}(i19.FormArray));
|
|
1558
1557
|
|
|
1559
1558
|
exports.AfeControlType = void 0;
|
|
1560
1559
|
(function (AfeControlType) {
|
|
@@ -1591,6 +1590,253 @@
|
|
|
1591
1590
|
return QuestionBase;
|
|
1592
1591
|
}());
|
|
1593
1592
|
|
|
1593
|
+
// South East Asia Non Laboratory CVD Risk Array of Arrays
|
|
1594
|
+
// 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)]
|
|
1595
|
+
var southEastAsiaCvdRiskTables = [
|
|
1596
|
+
// Men
|
|
1597
|
+
[
|
|
1598
|
+
// Non smoker
|
|
1599
|
+
[
|
|
1600
|
+
// Age 70 - 74
|
|
1601
|
+
[
|
|
1602
|
+
[26, 28, 30, 32, 34],
|
|
1603
|
+
[21, 23, 25, 26, 28],
|
|
1604
|
+
[17, 19, 20, 21, 23],
|
|
1605
|
+
[14, 15, 16, 17, 18],
|
|
1606
|
+
[11, 12, 13, 14, 15], // sbp < 120
|
|
1607
|
+
],
|
|
1608
|
+
// Age 65 - 69
|
|
1609
|
+
[
|
|
1610
|
+
[20, 22, 24, 26, 28],
|
|
1611
|
+
[16, 17, 19, 21, 22],
|
|
1612
|
+
[12, 14, 15, 16, 18],
|
|
1613
|
+
[10, 11, 12, 13, 14],
|
|
1614
|
+
[8, 8, 9, 10, 11], // < 120
|
|
1615
|
+
],
|
|
1616
|
+
// Age 60 - 64
|
|
1617
|
+
[
|
|
1618
|
+
[15, 17, 19, 21, 23],
|
|
1619
|
+
[12, 13, 14, 16, 18],
|
|
1620
|
+
[9, 10, 11, 12, 14],
|
|
1621
|
+
[7, 8, 8, 9, 10],
|
|
1622
|
+
[5, 6, 6, 7, 8], // sbp < 120
|
|
1623
|
+
],
|
|
1624
|
+
// Age 55 - 59
|
|
1625
|
+
[
|
|
1626
|
+
[12, 13, 15, 16, 18],
|
|
1627
|
+
[9, 10, 11, 12, 14],
|
|
1628
|
+
[7, 7, 8, 9, 10],
|
|
1629
|
+
[5, 5, 6, 7, 8],
|
|
1630
|
+
[4, 4, 4, 5, 6], // sbp < 120
|
|
1631
|
+
],
|
|
1632
|
+
// Age 50 - 54
|
|
1633
|
+
[
|
|
1634
|
+
[9, 10, 11, 13, 15],
|
|
1635
|
+
[7, 7, 8, 9, 11],
|
|
1636
|
+
[5, 5, 6, 7, 8],
|
|
1637
|
+
[3, 4, 4, 5, 6],
|
|
1638
|
+
[2, 3, 3, 4, 4], // sbp < 120
|
|
1639
|
+
],
|
|
1640
|
+
// Age 45 - 49
|
|
1641
|
+
[
|
|
1642
|
+
[7, 8, 9, 10, 12],
|
|
1643
|
+
[5, 6, 6, 7, 8],
|
|
1644
|
+
[3, 4, 4, 5, 6],
|
|
1645
|
+
[2, 3, 3, 4, 4],
|
|
1646
|
+
[2, 2, 2, 2, 3], // < 120
|
|
1647
|
+
],
|
|
1648
|
+
// Age 40 - 44
|
|
1649
|
+
[
|
|
1650
|
+
[5, 6, 7, 8, 10],
|
|
1651
|
+
[4, 4, 5, 6, 7],
|
|
1652
|
+
[2, 3, 3, 4, 4],
|
|
1653
|
+
[2, 2, 2, 3, 3],
|
|
1654
|
+
[1, 1, 2, 2, 2],
|
|
1655
|
+
],
|
|
1656
|
+
],
|
|
1657
|
+
// Smoker
|
|
1658
|
+
[
|
|
1659
|
+
// Age 70 - 74
|
|
1660
|
+
[
|
|
1661
|
+
[34, 36, 39, 41, 44],
|
|
1662
|
+
[28, 30, 32, 34, 36],
|
|
1663
|
+
[23, 24, 26, 28, 30],
|
|
1664
|
+
[18, 20, 21, 23, 24],
|
|
1665
|
+
[15, 16, 17, 18, 20], // < 120
|
|
1666
|
+
],
|
|
1667
|
+
// Age 65 - 69
|
|
1668
|
+
[
|
|
1669
|
+
[28, 30, 33, 36, 39],
|
|
1670
|
+
[22, 24, 26, 29, 31],
|
|
1671
|
+
[18, 19, 21, 23, 25],
|
|
1672
|
+
[14, 15, 16, 18, 20],
|
|
1673
|
+
[11, 12, 13, 14, 16], // < 120
|
|
1674
|
+
],
|
|
1675
|
+
// Age 60 - 64
|
|
1676
|
+
[
|
|
1677
|
+
[23, 25, 28, 31, 34],
|
|
1678
|
+
[18, 18, 20, 22, 24],
|
|
1679
|
+
[14, 15, 17, 19, 21],
|
|
1680
|
+
[10, 12, 13, 14, 16],
|
|
1681
|
+
[8, 9, 10, 11, 12], // < 120
|
|
1682
|
+
],
|
|
1683
|
+
// Age 55 - 59
|
|
1684
|
+
[
|
|
1685
|
+
[19, 21, 24, 27, 30],
|
|
1686
|
+
[14, 16, 18, 20, 23],
|
|
1687
|
+
[11, 12, 13, 15, 17],
|
|
1688
|
+
[8, 9, 10, 11, 13],
|
|
1689
|
+
[6, 7, 7, 8, 10],
|
|
1690
|
+
],
|
|
1691
|
+
// Age 50 - 54
|
|
1692
|
+
[
|
|
1693
|
+
[15, 18, 20, 23, 27],
|
|
1694
|
+
[11, 13, 15, 17, 20],
|
|
1695
|
+
[8, 9, 11, 12, 14],
|
|
1696
|
+
[6, 7, 8, 9, 11],
|
|
1697
|
+
[4, 5, 6, 7, 8],
|
|
1698
|
+
],
|
|
1699
|
+
// Age 45 - 49
|
|
1700
|
+
[
|
|
1701
|
+
[13, 15, 17, 20, 23],
|
|
1702
|
+
[9, 10, 12, 14, 17],
|
|
1703
|
+
[6, 7, 9, 10, 12],
|
|
1704
|
+
[4, 5, 6, 7, 8],
|
|
1705
|
+
[3, 4, 4, 5, 6],
|
|
1706
|
+
],
|
|
1707
|
+
// Age 40 - 44
|
|
1708
|
+
[
|
|
1709
|
+
[10, 12, 14, 17, 20],
|
|
1710
|
+
[7, 8, 10, 12, 14],
|
|
1711
|
+
[5, 6, 7, 8, 10],
|
|
1712
|
+
[3, 4, 5, 6, 7],
|
|
1713
|
+
[2, 3, 3, 4, 5],
|
|
1714
|
+
],
|
|
1715
|
+
],
|
|
1716
|
+
],
|
|
1717
|
+
// Women
|
|
1718
|
+
[
|
|
1719
|
+
// Non smoker
|
|
1720
|
+
[
|
|
1721
|
+
// Age 70 -74
|
|
1722
|
+
[
|
|
1723
|
+
[21, 22, 22, 23, 24],
|
|
1724
|
+
[17, 18, 19, 19, 20],
|
|
1725
|
+
[15, 15, 16, 16, 17],
|
|
1726
|
+
[12, 12, 13, 13, 14],
|
|
1727
|
+
[10, 10, 11, 11, 11], // < 120
|
|
1728
|
+
],
|
|
1729
|
+
// Age 65 - 69
|
|
1730
|
+
[
|
|
1731
|
+
[16, 17, 18, 18, 19],
|
|
1732
|
+
[13, 14, 14, 15, 15],
|
|
1733
|
+
[11, 11, 11, 12, 12],
|
|
1734
|
+
[9, 9, 9, 10, 10],
|
|
1735
|
+
[7, 7, 7, 8, 8],
|
|
1736
|
+
],
|
|
1737
|
+
// Age 60 - 64
|
|
1738
|
+
[
|
|
1739
|
+
[13, 13, 14, 14, 15],
|
|
1740
|
+
[10, 10, 11, 11, 12],
|
|
1741
|
+
[8, 8, 8, 9, 9],
|
|
1742
|
+
[6, 6, 7, 7, 7],
|
|
1743
|
+
[5, 5, 5, 5, 6],
|
|
1744
|
+
],
|
|
1745
|
+
// Age 55 - 59
|
|
1746
|
+
[
|
|
1747
|
+
[10, 10, 11, 11, 12],
|
|
1748
|
+
[8, 8, 8, 9, 9],
|
|
1749
|
+
[6, 6, 6, 7, 7],
|
|
1750
|
+
[4, 5, 5, 5, 5],
|
|
1751
|
+
[3, 3, 4, 4, 4],
|
|
1752
|
+
],
|
|
1753
|
+
// Age 50 - 54
|
|
1754
|
+
[
|
|
1755
|
+
[8, 8, 8, 9, 9],
|
|
1756
|
+
[6, 6, 6, 7, 7],
|
|
1757
|
+
[4, 4, 5, 5, 5],
|
|
1758
|
+
[3, 3, 3, 4, 4],
|
|
1759
|
+
[2, 2, 3, 3, 3],
|
|
1760
|
+
],
|
|
1761
|
+
// Age 45 - 49
|
|
1762
|
+
[
|
|
1763
|
+
[6, 6, 7, 7, 7],
|
|
1764
|
+
[4, 5, 5, 5, 5],
|
|
1765
|
+
[3, 3, 3, 4, 4],
|
|
1766
|
+
[2, 2, 2, 3, 3],
|
|
1767
|
+
[2, 2, 2, 2, 2],
|
|
1768
|
+
],
|
|
1769
|
+
// Age 40 - 44
|
|
1770
|
+
[
|
|
1771
|
+
[5, 5, 5, 5, 6],
|
|
1772
|
+
[3, 3, 4, 4, 4],
|
|
1773
|
+
[2, 2, 3, 3, 3],
|
|
1774
|
+
[2, 2, 2, 2, 2],
|
|
1775
|
+
[1, 1, 1, 1, 1],
|
|
1776
|
+
],
|
|
1777
|
+
],
|
|
1778
|
+
// Smoker
|
|
1779
|
+
[
|
|
1780
|
+
// Age 70 - 74
|
|
1781
|
+
[
|
|
1782
|
+
[30, 31, 32, 33, 34],
|
|
1783
|
+
[25, 26, 27, 28, 29],
|
|
1784
|
+
[21, 22, 22, 23, 24],
|
|
1785
|
+
[17, 18, 19, 19, 20],
|
|
1786
|
+
[14, 15, 15, 16, 17],
|
|
1787
|
+
],
|
|
1788
|
+
// Age 65 - 69
|
|
1789
|
+
[
|
|
1790
|
+
[25, 26, 27, 29, 30],
|
|
1791
|
+
[21, 22, 22, 23, 24],
|
|
1792
|
+
[17, 18, 18, 19, 20],
|
|
1793
|
+
[14, 14, 15, 15, 16],
|
|
1794
|
+
[11, 11, 12, 12, 13],
|
|
1795
|
+
],
|
|
1796
|
+
// Age 60 - 64
|
|
1797
|
+
[
|
|
1798
|
+
[21, 22, 23, 25, 26],
|
|
1799
|
+
[17, 18, 19, 20, 21],
|
|
1800
|
+
[13, 14, 15, 16, 16],
|
|
1801
|
+
[11, 11, 12, 12, 13],
|
|
1802
|
+
[8, 9, 9, 10, 10],
|
|
1803
|
+
],
|
|
1804
|
+
// Age 55 - 59
|
|
1805
|
+
[
|
|
1806
|
+
[18, 19, 20, 21, 22],
|
|
1807
|
+
[14, 15, 15, 16, 17],
|
|
1808
|
+
[11, 11, 12, 13, 13],
|
|
1809
|
+
[8, 9, 9, 10, 10],
|
|
1810
|
+
[6, 7, 7, 7, 8],
|
|
1811
|
+
],
|
|
1812
|
+
// Age 50 - 54
|
|
1813
|
+
[
|
|
1814
|
+
[15, 16, 17, 18, 19],
|
|
1815
|
+
[11, 12, 13, 14, 14],
|
|
1816
|
+
[9, 9, 10, 10, 11],
|
|
1817
|
+
[6, 7, 7, 8, 8],
|
|
1818
|
+
[5, 5, 5, 6, 6],
|
|
1819
|
+
],
|
|
1820
|
+
// Age 45 - 49
|
|
1821
|
+
[
|
|
1822
|
+
[13, 14, 14, 15, 16],
|
|
1823
|
+
[9, 10, 11, 11, 12],
|
|
1824
|
+
[7, 7, 8, 8, 9],
|
|
1825
|
+
[5, 5, 6, 6, 6],
|
|
1826
|
+
[4, 4, 4, 4, 5],
|
|
1827
|
+
],
|
|
1828
|
+
// Age 40 - 44
|
|
1829
|
+
[
|
|
1830
|
+
[11, 11, 12, 13, 14],
|
|
1831
|
+
[8, 8, 9, 9, 10],
|
|
1832
|
+
[5, 6, 6, 7, 7],
|
|
1833
|
+
[4, 4, 4, 5, 5],
|
|
1834
|
+
[3, 3, 3, 3, 4],
|
|
1835
|
+
],
|
|
1836
|
+
],
|
|
1837
|
+
],
|
|
1838
|
+
];
|
|
1839
|
+
|
|
1594
1840
|
var JsExpressionHelper = /** @class */ (function () {
|
|
1595
1841
|
function JsExpressionHelper() {
|
|
1596
1842
|
}
|
|
@@ -1744,6 +1990,19 @@
|
|
|
1744
1990
|
}
|
|
1745
1991
|
return height && weight && refSectionObject ? formattedSDValue : null;
|
|
1746
1992
|
};
|
|
1993
|
+
JsExpressionHelper.prototype.calcSouthEastAsiaNonLabCVDRisk = function (sex, smoker, age, sbp, bmi) {
|
|
1994
|
+
// Bin functions
|
|
1995
|
+
var getAgeBin = function (age) { return Math.floor((Math.min(Math.max(40, age), 74) - 40) / 5); };
|
|
1996
|
+
var getSbpBin = function (sbp) { return Math.max(0, Math.floor((Math.min(sbp, 180) - 120) / 20) + 1); };
|
|
1997
|
+
var getBmiBin = function (bmi) { return Math.max(0, Math.floor((Math.min(bmi, 35) - 20) / 5) + 1); };
|
|
1998
|
+
// Variables
|
|
1999
|
+
var sexIdx = sex === 'M' ? 0 : 1;
|
|
2000
|
+
var smokerIdx = smoker ? 1 : 0;
|
|
2001
|
+
var ageIdx = 6 - getAgeBin(age);
|
|
2002
|
+
var bmiIdx = getBmiBin(bmi);
|
|
2003
|
+
var sbpIdx = 4 - getSbpBin(sbp);
|
|
2004
|
+
return southEastAsiaCvdRiskTables[sexIdx][smokerIdx][ageIdx][sbpIdx][bmiIdx];
|
|
2005
|
+
};
|
|
1747
2006
|
JsExpressionHelper.prototype.isEmpty = function (val) {
|
|
1748
2007
|
if (val === undefined ||
|
|
1749
2008
|
val === null ||
|
|
@@ -1820,6 +2079,7 @@
|
|
|
1820
2079
|
calcBMIForAgeZscore: helper.calcBMIForAgeZscore,
|
|
1821
2080
|
calcWeightForHeightZscore: helper.calcWeightForHeightZscore,
|
|
1822
2081
|
calcHeightForAgeZscore: helper.calcHeightForAgeZscore,
|
|
2082
|
+
calcSouthEastAsiaNonLabCVDRisk: helper.calcSouthEastAsiaNonLabCVDRisk,
|
|
1823
2083
|
isEmpty: helper.isEmpty,
|
|
1824
2084
|
arrayContains: helper.arrayContains,
|
|
1825
2085
|
extractRepeatingGroupValues: helper.extractRepeatingGroupValues
|
|
@@ -2215,14 +2475,14 @@
|
|
|
2215
2475
|
});
|
|
2216
2476
|
Object.defineProperty(ValidationFactory.prototype, "minLengthValidator", {
|
|
2217
2477
|
get: function () {
|
|
2218
|
-
return
|
|
2478
|
+
return i19.Validators.minLength;
|
|
2219
2479
|
},
|
|
2220
2480
|
enumerable: false,
|
|
2221
2481
|
configurable: true
|
|
2222
2482
|
});
|
|
2223
2483
|
Object.defineProperty(ValidationFactory.prototype, "maxLengthValidator", {
|
|
2224
2484
|
get: function () {
|
|
2225
|
-
return
|
|
2485
|
+
return i19.Validators.maxLength;
|
|
2226
2486
|
},
|
|
2227
2487
|
enumerable: false,
|
|
2228
2488
|
configurable: true
|
|
@@ -2502,7 +2762,6 @@
|
|
|
2502
2762
|
DataSources.prototype.registerDataSource = function (key, dataSource, unWrap) {
|
|
2503
2763
|
if (unWrap === void 0) { unWrap = false; }
|
|
2504
2764
|
if (unWrap) {
|
|
2505
|
-
// eslint-disable-next-line guard-for-in
|
|
2506
2765
|
for (var o in dataSource) {
|
|
2507
2766
|
this.registerDataSource(o, dataSource[o], false);
|
|
2508
2767
|
}
|
|
@@ -2533,11 +2792,11 @@
|
|
|
2533
2792
|
return TabComponent;
|
|
2534
2793
|
}());
|
|
2535
2794
|
TabComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TabComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2536
|
-
TabComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TabComponent, selector: "
|
|
2795
|
+
TabComponent.ɵcmp = i0__namespace.ɵɵ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: i0.TemplateRef, descendants: true }], ngImport: i0__namespace, 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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
2537
2796
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TabComponent, decorators: [{
|
|
2538
2797
|
type: i0.Component,
|
|
2539
2798
|
args: [{
|
|
2540
|
-
selector: '
|
|
2799
|
+
selector: 'ofe-tab',
|
|
2541
2800
|
templateUrl: 'tab.component.html',
|
|
2542
2801
|
styleUrls: ['./tab.component.css']
|
|
2543
2802
|
}]
|
|
@@ -2571,15 +2830,14 @@
|
|
|
2571
2830
|
return HoverClassDirective;
|
|
2572
2831
|
}());
|
|
2573
2832
|
HoverClassDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HoverClassDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
2574
|
-
HoverClassDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: HoverClassDirective, selector: "[
|
|
2833
|
+
HoverClassDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: HoverClassDirective, selector: "[ofeHoverClass]", inputs: { hoverClass: "hoverClass" }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()" } }, ngImport: i0__namespace });
|
|
2575
2834
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HoverClassDirective, decorators: [{
|
|
2576
2835
|
type: i0.Directive,
|
|
2577
2836
|
args: [{
|
|
2578
|
-
selector: '[
|
|
2837
|
+
selector: '[ofeHoverClass]'
|
|
2579
2838
|
}]
|
|
2580
2839
|
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { hoverClass: [{
|
|
2581
|
-
type: i0.Input
|
|
2582
|
-
args: ['hover-class']
|
|
2840
|
+
type: i0.Input
|
|
2583
2841
|
}], onMouseEnter: [{
|
|
2584
2842
|
type: i0.HostListener,
|
|
2585
2843
|
args: ['mouseenter']
|
|
@@ -2594,7 +2852,7 @@
|
|
|
2594
2852
|
this.customNavClass = '';
|
|
2595
2853
|
this.customTabsClass = '';
|
|
2596
2854
|
this.selectedIndex = 0;
|
|
2597
|
-
this.
|
|
2855
|
+
this.tabSelect = new i0.EventEmitter();
|
|
2598
2856
|
}
|
|
2599
2857
|
TabSetComponent.prototype.ngOnChanges = function (changes) {
|
|
2600
2858
|
if (changes.selectedIndex && !changes.selectedIndex.firstChange) {
|
|
@@ -2622,7 +2880,7 @@
|
|
|
2622
2880
|
this.tabs.toArray().forEach(function (tab) { return (tab.active = false); });
|
|
2623
2881
|
// activate the tab the user has clicked on.
|
|
2624
2882
|
tabToSelect.active = true;
|
|
2625
|
-
this.
|
|
2883
|
+
this.tabSelect.emit(this.tabs.toArray().indexOf(tabToSelect));
|
|
2626
2884
|
};
|
|
2627
2885
|
TabSetComponent.prototype.getStatusClasses = function (active, disabled) {
|
|
2628
2886
|
if (active) {
|
|
@@ -2638,11 +2896,11 @@
|
|
|
2638
2896
|
return TabSetComponent;
|
|
2639
2897
|
}());
|
|
2640
2898
|
TabSetComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TabSetComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2641
|
-
TabSetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TabSetComponent, selector: "
|
|
2899
|
+
TabSetComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: HoverClassDirective, selector: "[ofeHoverClass]", inputs: ["hoverClass"] }] });
|
|
2642
2900
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TabSetComponent, decorators: [{
|
|
2643
2901
|
type: i0.Component,
|
|
2644
2902
|
args: [{
|
|
2645
|
-
selector: '
|
|
2903
|
+
selector: 'ofe-tab-set',
|
|
2646
2904
|
styleUrls: ['ngx-tab-set.component.scss'],
|
|
2647
2905
|
templateUrl: 'ngx-tab-set.component.html'
|
|
2648
2906
|
}]
|
|
@@ -2657,7 +2915,7 @@
|
|
|
2657
2915
|
type: i0.Input
|
|
2658
2916
|
}], selectedIndex: [{
|
|
2659
2917
|
type: i0.Input
|
|
2660
|
-
}],
|
|
2918
|
+
}], tabSelect: [{
|
|
2661
2919
|
type: i0.Output
|
|
2662
2920
|
}] } });
|
|
2663
2921
|
|
|
@@ -2665,15 +2923,14 @@
|
|
|
2665
2923
|
function CustomComponentWrapperComponent() {
|
|
2666
2924
|
this.dark = true;
|
|
2667
2925
|
}
|
|
2668
|
-
CustomComponentWrapperComponent.prototype.ngOnInit = function () { };
|
|
2669
2926
|
return CustomComponentWrapperComponent;
|
|
2670
2927
|
}());
|
|
2671
2928
|
CustomComponentWrapperComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomComponentWrapperComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2672
|
-
CustomComponentWrapperComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CustomComponentWrapperComponent, selector: "
|
|
2929
|
+
CustomComponentWrapperComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CustomComponentWrapperComponent, selector: "ofe-custom-component-wrapper", inputs: { componentConfigs: "componentConfigs", dark: "dark" }, ngImport: i0__namespace, 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__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.LazyElementDynamicDirective, selector: "[axLazyElementDynamic]", inputs: ["axLazyElementDynamic", "axLazyElementDynamicUrl", "axLazyElementDynamicLoadingTemplate", "axLazyElementDynamicErrorTemplate", "axLazyElementDynamicModule", "axLazyElementDynamicImportMap"] }] });
|
|
2673
2930
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomComponentWrapperComponent, decorators: [{
|
|
2674
2931
|
type: i0.Component,
|
|
2675
2932
|
args: [{
|
|
2676
|
-
selector: '
|
|
2933
|
+
selector: 'ofe-custom-component-wrapper',
|
|
2677
2934
|
templateUrl: 'custom-component-wrapper.component.html'
|
|
2678
2935
|
}]
|
|
2679
2936
|
}], propDecorators: { componentConfigs: [{
|
|
@@ -2727,9 +2984,9 @@
|
|
|
2727
2984
|
return CustomControlWrapperComponent;
|
|
2728
2985
|
}());
|
|
2729
2986
|
CustomControlWrapperComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomControlWrapperComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2730
|
-
CustomControlWrapperComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CustomControlWrapperComponent, selector: "
|
|
2987
|
+
CustomControlWrapperComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CustomControlWrapperComponent, selector: "ofe-custom-control-wrapper", inputs: { question: "question" }, providers: [
|
|
2731
2988
|
{
|
|
2732
|
-
provide:
|
|
2989
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
2733
2990
|
multi: true,
|
|
2734
2991
|
useExisting: i0.forwardRef(function () { return CustomControlWrapperComponent; })
|
|
2735
2992
|
}
|
|
@@ -2737,11 +2994,11 @@
|
|
|
2737
2994
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomControlWrapperComponent, decorators: [{
|
|
2738
2995
|
type: i0.Component,
|
|
2739
2996
|
args: [{
|
|
2740
|
-
selector: '
|
|
2997
|
+
selector: 'ofe-custom-control-wrapper',
|
|
2741
2998
|
templateUrl: 'custom-control-wrapper.component.html',
|
|
2742
2999
|
providers: [
|
|
2743
3000
|
{
|
|
2744
|
-
provide:
|
|
3001
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
2745
3002
|
multi: true,
|
|
2746
3003
|
useExisting: i0.forwardRef(function () { return CustomControlWrapperComponent; })
|
|
2747
3004
|
}
|
|
@@ -2751,27 +3008,26 @@
|
|
|
2751
3008
|
type: i0.Input
|
|
2752
3009
|
}] } });
|
|
2753
3010
|
|
|
2754
|
-
/* eslint-disable @angular-eslint/component-class-suffix */
|
|
2755
3011
|
/**
|
|
2756
|
-
* `
|
|
3012
|
+
* `ofe-select` provides a styled `select` component.
|
|
2757
3013
|
*
|
|
2758
3014
|
* [See demo](../../?path=/story/select--basic)
|
|
2759
3015
|
*
|
|
2760
3016
|
* Example:
|
|
2761
3017
|
*
|
|
2762
3018
|
* ```
|
|
2763
|
-
* <
|
|
3019
|
+
* <ofe-select [(ngModel)]="model">
|
|
2764
3020
|
* <option value="default" disabled selected hidden>Choose an option</option>
|
|
2765
3021
|
* <option value="option1">Option 1</option>
|
|
2766
3022
|
* <option value="option2">Option 2</option>
|
|
2767
3023
|
* <option value="option3">Option 3</option>
|
|
2768
|
-
* </
|
|
3024
|
+
* </ofe-select>
|
|
2769
3025
|
* ```
|
|
2770
3026
|
*
|
|
2771
3027
|
* <example-url>../../iframe.html?id=select--basic</example-url>
|
|
2772
3028
|
*/
|
|
2773
|
-
var
|
|
2774
|
-
function
|
|
3029
|
+
var SelectComponent = /** @class */ (function () {
|
|
3030
|
+
function SelectComponent() {
|
|
2775
3031
|
/**
|
|
2776
3032
|
* `inline` or `default` select displays
|
|
2777
3033
|
*/
|
|
@@ -2783,7 +3039,7 @@
|
|
|
2783
3039
|
/**
|
|
2784
3040
|
* Sets the unique ID. Defaults to `select-${total count of selects instantiated}`
|
|
2785
3041
|
*/
|
|
2786
|
-
this.id = "select-" +
|
|
3042
|
+
this.id = "select-" + SelectComponent.selectCount++;
|
|
2787
3043
|
/**
|
|
2788
3044
|
* Number input field render size
|
|
2789
3045
|
*/
|
|
@@ -2811,7 +3067,7 @@
|
|
|
2811
3067
|
this.onChangeHandler = function (_) { };
|
|
2812
3068
|
this.onTouchedHandler = function () { };
|
|
2813
3069
|
}
|
|
2814
|
-
Object.defineProperty(
|
|
3070
|
+
Object.defineProperty(SelectComponent.prototype, "value", {
|
|
2815
3071
|
get: function () {
|
|
2816
3072
|
return this._value;
|
|
2817
3073
|
},
|
|
@@ -2824,7 +3080,7 @@
|
|
|
2824
3080
|
enumerable: false,
|
|
2825
3081
|
configurable: true
|
|
2826
3082
|
});
|
|
2827
|
-
|
|
3083
|
+
SelectComponent.prototype.ngAfterViewInit = function () {
|
|
2828
3084
|
if (this.value !== undefined &&
|
|
2829
3085
|
this.value !== null &&
|
|
2830
3086
|
this.select &&
|
|
@@ -2835,32 +3091,32 @@
|
|
|
2835
3091
|
/**
|
|
2836
3092
|
* Receives a value from the model.
|
|
2837
3093
|
*/
|
|
2838
|
-
|
|
3094
|
+
SelectComponent.prototype.writeValue = function (obj) {
|
|
2839
3095
|
this.value = obj;
|
|
2840
3096
|
};
|
|
2841
3097
|
/**
|
|
2842
3098
|
* Registers a listener that notifies the model when the control updates
|
|
2843
3099
|
*/
|
|
2844
|
-
|
|
3100
|
+
SelectComponent.prototype.registerOnChange = function (fn) {
|
|
2845
3101
|
this.onChangeHandler = fn;
|
|
2846
3102
|
};
|
|
2847
3103
|
/**
|
|
2848
3104
|
* Registers a listener that notifies the model when the control is blurred
|
|
2849
3105
|
*/
|
|
2850
|
-
|
|
3106
|
+
SelectComponent.prototype.registerOnTouched = function (fn) {
|
|
2851
3107
|
this.onTouchedHandler = fn;
|
|
2852
3108
|
};
|
|
2853
3109
|
/**
|
|
2854
3110
|
* Sets the disabled state through the model
|
|
2855
3111
|
*/
|
|
2856
|
-
|
|
3112
|
+
SelectComponent.prototype.setDisabledState = function (isDisabled) {
|
|
2857
3113
|
this.disabled = isDisabled;
|
|
2858
3114
|
};
|
|
2859
3115
|
/**
|
|
2860
3116
|
* Handles the change event from the `select`.
|
|
2861
3117
|
* Sends events to the change handler and emits a `selected` event.
|
|
2862
3118
|
*/
|
|
2863
|
-
|
|
3119
|
+
SelectComponent.prototype.onChange = function (event) {
|
|
2864
3120
|
this.value = event.target.value;
|
|
2865
3121
|
this.onChangeHandler(event.target.value);
|
|
2866
3122
|
this.valueChange.emit(event.target.value);
|
|
@@ -2868,38 +3124,36 @@
|
|
|
2868
3124
|
/**
|
|
2869
3125
|
* Listens for the host blurring, and notifies the model
|
|
2870
3126
|
*/
|
|
2871
|
-
|
|
3127
|
+
SelectComponent.prototype.focusOut = function () {
|
|
2872
3128
|
this.onTouchedHandler();
|
|
2873
3129
|
};
|
|
2874
|
-
|
|
3130
|
+
SelectComponent.prototype.isTemplate = function (value) {
|
|
2875
3131
|
return value instanceof i0.TemplateRef;
|
|
2876
3132
|
};
|
|
2877
|
-
return
|
|
3133
|
+
return SelectComponent;
|
|
2878
3134
|
}());
|
|
2879
3135
|
/**
|
|
2880
3136
|
* Tracks the total number of selects instantiated. Used to generate unique IDs
|
|
2881
3137
|
*/
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
3138
|
+
SelectComponent.selectCount = 0;
|
|
3139
|
+
SelectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SelectComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3140
|
+
SelectComponent.ɵcmp = i0__namespace.ɵɵ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: [
|
|
2885
3141
|
{
|
|
2886
|
-
provide:
|
|
2887
|
-
useExisting:
|
|
3142
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
3143
|
+
useExisting: SelectComponent,
|
|
2888
3144
|
multi: true
|
|
2889
3145
|
}
|
|
2890
|
-
], viewQueries: [{ propertyName: "select", first: true, predicate: ["select"], descendants: true }], ngImport: i0__namespace, template: "
|
|
2891
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type:
|
|
3146
|
+
], viewQueries: [{ propertyName: "select", first: true, predicate: ["select"], descendants: true }], ngImport: i0__namespace, 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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
3147
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SelectComponent, decorators: [{
|
|
2892
3148
|
type: i0.Component,
|
|
2893
3149
|
args: [{
|
|
2894
|
-
selector: '
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
"\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 "
|
|
2898
|
-
],
|
|
3150
|
+
selector: 'ofe-select',
|
|
3151
|
+
templateUrl: 'select.component.html',
|
|
3152
|
+
styleUrls: ['./select.component.scss'],
|
|
2899
3153
|
providers: [
|
|
2900
3154
|
{
|
|
2901
|
-
provide:
|
|
2902
|
-
useExisting:
|
|
3155
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
3156
|
+
useExisting: SelectComponent,
|
|
2903
3157
|
multi: true
|
|
2904
3158
|
}
|
|
2905
3159
|
]
|
|
@@ -2942,9 +3196,7 @@
|
|
|
2942
3196
|
args: ['focusout']
|
|
2943
3197
|
}] } });
|
|
2944
3198
|
|
|
2945
|
-
/* eslint-disable @angular-eslint/component-class-suffix */
|
|
2946
3199
|
// Using similarity from AsyncPipe to avoid having to pipe |secure|async in HTML.
|
|
2947
|
-
// eslint-disable-next-line @angular-eslint/use-pipe-transform-interface
|
|
2948
3200
|
var SecurePipe = /** @class */ (function () {
|
|
2949
3201
|
function SecurePipe(_ref, sanitizer) {
|
|
2950
3202
|
this._ref = _ref;
|
|
@@ -3142,21 +3394,21 @@
|
|
|
3142
3394
|
return FileUploadComponent;
|
|
3143
3395
|
}());
|
|
3144
3396
|
FileUploadComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FileUploadComponent, deps: [{ token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3145
|
-
FileUploadComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FileUploadComponent, selector: "
|
|
3397
|
+
FileUploadComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FileUploadComponent, selector: "ofe-file-upload", inputs: { dataSource: "dataSource" }, providers: [
|
|
3146
3398
|
{
|
|
3147
|
-
provide:
|
|
3399
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
3148
3400
|
useExisting: i0.forwardRef(function () { return FileUploadComponent; }),
|
|
3149
3401
|
multi: true
|
|
3150
3402
|
}
|
|
3151
|
-
], ngImport: i0__namespace, 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__namespace$2.NgxFileUploaderComponent, selector: "lib-ngx-file-uploader", inputs: ["singleFile", "formEntry", "srcUrl", "source"], outputs: ["fileChanged", "uploadData", "_onClear"] }], directives: [{ type:
|
|
3403
|
+
], ngImport: i0__namespace, 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__namespace$2.NgxFileUploaderComponent, selector: "lib-ngx-file-uploader", inputs: ["singleFile", "formEntry", "srcUrl", "source"], outputs: ["fileChanged", "uploadData", "_onClear"] }], directives: [{ type: i19__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i19__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "secure": SecurePipe } });
|
|
3152
3404
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FileUploadComponent, decorators: [{
|
|
3153
3405
|
type: i0.Component,
|
|
3154
3406
|
args: [{
|
|
3155
|
-
selector: '
|
|
3407
|
+
selector: 'ofe-file-upload',
|
|
3156
3408
|
templateUrl: 'file-upload.component.html',
|
|
3157
3409
|
providers: [
|
|
3158
3410
|
{
|
|
3159
|
-
provide:
|
|
3411
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
3160
3412
|
useExisting: i0.forwardRef(function () { return FileUploadComponent; }),
|
|
3161
3413
|
multi: true
|
|
3162
3414
|
}
|
|
@@ -3174,14 +3426,14 @@
|
|
|
3174
3426
|
this.renderer = renderer;
|
|
3175
3427
|
this.remoteOptionsLoading = false;
|
|
3176
3428
|
this.remoteOptionInput$ = new rxjs.Subject();
|
|
3177
|
-
this.placeholder = 'Search...';
|
|
3178
|
-
this.disabled = false;
|
|
3179
|
-
this.theme = 'dark';
|
|
3180
3429
|
this.items = [];
|
|
3181
3430
|
this.value = [];
|
|
3182
3431
|
this.loading = false;
|
|
3183
3432
|
this.searchText = '';
|
|
3184
3433
|
this.notFoundMsg = 'match no found';
|
|
3434
|
+
this.placeholder = 'Search...';
|
|
3435
|
+
this.disabled = false;
|
|
3436
|
+
this.theme = 'dark';
|
|
3185
3437
|
this.done = new i0.EventEmitter();
|
|
3186
3438
|
this.compareItems = function (item, selected) {
|
|
3187
3439
|
if (item.value && selected.value) {
|
|
@@ -3270,21 +3522,21 @@
|
|
|
3270
3522
|
return RemoteSelectComponent;
|
|
3271
3523
|
}());
|
|
3272
3524
|
RemoteSelectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RemoteSelectComponent, deps: [{ token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3273
|
-
RemoteSelectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: RemoteSelectComponent, selector: "
|
|
3525
|
+
RemoteSelectComponent.ɵcmp = i0__namespace.ɵɵ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: [
|
|
3274
3526
|
{
|
|
3275
|
-
provide:
|
|
3527
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
3276
3528
|
useExisting: i0.forwardRef(function () { return RemoteSelectComponent; }),
|
|
3277
3529
|
multi: true
|
|
3278
3530
|
}
|
|
3279
|
-
], ngImport: i0__namespace, 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__namespace$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__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type:
|
|
3531
|
+
], ngImport: i0__namespace, 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__namespace$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__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i19__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i19__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "async": i1__namespace.AsyncPipe } });
|
|
3280
3532
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RemoteSelectComponent, decorators: [{
|
|
3281
3533
|
type: i0.Component,
|
|
3282
3534
|
args: [{
|
|
3283
|
-
selector: '
|
|
3535
|
+
selector: 'ofe-remote-select',
|
|
3284
3536
|
templateUrl: 'remote-select.component.html',
|
|
3285
3537
|
providers: [
|
|
3286
3538
|
{
|
|
3287
|
-
provide:
|
|
3539
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
3288
3540
|
useExisting: i0.forwardRef(function () { return RemoteSelectComponent; }),
|
|
3289
3541
|
multi: true
|
|
3290
3542
|
}
|
|
@@ -3487,7 +3739,6 @@
|
|
|
3487
3739
|
return DateTimeAdapter;
|
|
3488
3740
|
}());
|
|
3489
3741
|
|
|
3490
|
-
/* eslint-disable @angular-eslint/component-class-suffix, @angular-eslint/no-host-metadata-property */
|
|
3491
3742
|
var CalendarCell = /** @class */ (function () {
|
|
3492
3743
|
function CalendarCell(value, displayValue, ariaLabel, enabled, out, cellClass) {
|
|
3493
3744
|
if (out === void 0) { out = false; }
|
|
@@ -3505,6 +3756,7 @@
|
|
|
3505
3756
|
function OwlCalendarBodyComponent(elmRef, ngZone) {
|
|
3506
3757
|
this.elmRef = elmRef;
|
|
3507
3758
|
this.ngZone = ngZone;
|
|
3759
|
+
this.owlDTCalendarBodyClass = true;
|
|
3508
3760
|
/**
|
|
3509
3761
|
* The cell number of the active cell in the table.
|
|
3510
3762
|
*/
|
|
@@ -3520,15 +3772,8 @@
|
|
|
3520
3772
|
/**
|
|
3521
3773
|
* Emit when a calendar cell is selected
|
|
3522
3774
|
* */
|
|
3523
|
-
this.
|
|
3775
|
+
this.cellSelected = new i0.EventEmitter();
|
|
3524
3776
|
}
|
|
3525
|
-
Object.defineProperty(OwlCalendarBodyComponent.prototype, "owlDTCalendarBodyClass", {
|
|
3526
|
-
get: function () {
|
|
3527
|
-
return true;
|
|
3528
|
-
},
|
|
3529
|
-
enumerable: false,
|
|
3530
|
-
configurable: true
|
|
3531
|
-
});
|
|
3532
3777
|
Object.defineProperty(OwlCalendarBodyComponent.prototype, "isInSingleMode", {
|
|
3533
3778
|
get: function () {
|
|
3534
3779
|
return this.selectMode === 'single';
|
|
@@ -3545,9 +3790,8 @@
|
|
|
3545
3790
|
enumerable: false,
|
|
3546
3791
|
configurable: true
|
|
3547
3792
|
});
|
|
3548
|
-
OwlCalendarBodyComponent.prototype.ngOnInit = function () { };
|
|
3549
3793
|
OwlCalendarBodyComponent.prototype.selectCell = function (cell) {
|
|
3550
|
-
this.
|
|
3794
|
+
this.cellSelected.emit(cell);
|
|
3551
3795
|
};
|
|
3552
3796
|
OwlCalendarBodyComponent.prototype.isActiveCell = function (rowIndex, colIndex) {
|
|
3553
3797
|
var cellNumber = rowIndex * this.numCols + colIndex;
|
|
@@ -3621,21 +3865,21 @@
|
|
|
3621
3865
|
return OwlCalendarBodyComponent;
|
|
3622
3866
|
}());
|
|
3623
3867
|
OwlCalendarBodyComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlCalendarBodyComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3624
|
-
OwlCalendarBodyComponent.ɵcmp = i0__namespace.ɵɵ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: {
|
|
3868
|
+
OwlCalendarBodyComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
3625
3869
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlCalendarBodyComponent, decorators: [{
|
|
3626
3870
|
type: i0.Component,
|
|
3627
3871
|
args: [{
|
|
3628
|
-
|
|
3872
|
+
/* eslint-disable-next-line @angular-eslint/component-selector */
|
|
3873
|
+
selector: '[ofe-owl-date-time-calendar-body]',
|
|
3629
3874
|
exportAs: 'owlDateTimeCalendarBody',
|
|
3630
3875
|
templateUrl: './calendar-body.component.html',
|
|
3631
3876
|
styleUrls: ['./calendar-body.component.scss'],
|
|
3632
|
-
host: {
|
|
3633
|
-
'[class.owl-dt-calendar-body]': 'owlDTCalendarBodyClass'
|
|
3634
|
-
},
|
|
3635
|
-
preserveWhitespaces: false,
|
|
3636
3877
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3637
3878
|
}]
|
|
3638
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.NgZone }]; }, propDecorators: {
|
|
3879
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.NgZone }]; }, propDecorators: { owlDTCalendarBodyClass: [{
|
|
3880
|
+
type: i0.HostBinding,
|
|
3881
|
+
args: ['class.owl-dt-calendar-body']
|
|
3882
|
+
}], activeCell: [{
|
|
3639
3883
|
type: i0.Input
|
|
3640
3884
|
}], rows: [{
|
|
3641
3885
|
type: i0.Input
|
|
@@ -3649,11 +3893,10 @@
|
|
|
3649
3893
|
type: i0.Input
|
|
3650
3894
|
}], selectMode: [{
|
|
3651
3895
|
type: i0.Input
|
|
3652
|
-
}],
|
|
3896
|
+
}], cellSelected: [{
|
|
3653
3897
|
type: i0.Output
|
|
3654
3898
|
}] } });
|
|
3655
3899
|
|
|
3656
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
3657
3900
|
var DAYS_PER_WEEK = 7;
|
|
3658
3901
|
var WEEKS_PER_VIEW = 6;
|
|
3659
3902
|
var OwlMonthViewComponent = /** @class */ (function () {
|
|
@@ -3693,6 +3936,13 @@
|
|
|
3693
3936
|
/** Emits when any date is activated. */
|
|
3694
3937
|
this.pickerMomentChange = new i0.EventEmitter();
|
|
3695
3938
|
}
|
|
3939
|
+
Object.defineProperty(OwlMonthViewComponent.prototype, "owlDTCalendarView", {
|
|
3940
|
+
get: function () {
|
|
3941
|
+
return true;
|
|
3942
|
+
},
|
|
3943
|
+
enumerable: false,
|
|
3944
|
+
configurable: true
|
|
3945
|
+
});
|
|
3696
3946
|
Object.defineProperty(OwlMonthViewComponent.prototype, "firstDayOfWeek", {
|
|
3697
3947
|
get: function () {
|
|
3698
3948
|
return this._firstDayOfWeek;
|
|
@@ -3856,13 +4106,6 @@
|
|
|
3856
4106
|
enumerable: false,
|
|
3857
4107
|
configurable: true
|
|
3858
4108
|
});
|
|
3859
|
-
Object.defineProperty(OwlMonthViewComponent.prototype, "owlDTCalendarView", {
|
|
3860
|
-
get: function () {
|
|
3861
|
-
return true;
|
|
3862
|
-
},
|
|
3863
|
-
enumerable: false,
|
|
3864
|
-
configurable: true
|
|
3865
|
-
});
|
|
3866
4109
|
OwlMonthViewComponent.prototype.ngOnInit = function () {
|
|
3867
4110
|
var _this = this;
|
|
3868
4111
|
this.generateWeekDays();
|
|
@@ -4099,18 +4342,14 @@
|
|
|
4099
4342
|
return OwlMonthViewComponent;
|
|
4100
4343
|
}());
|
|
4101
4344
|
OwlMonthViewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlMonthViewComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: DateTimeAdapter, optional: true }, { token: OWL_DATE_TIME_FORMATS, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4102
|
-
OwlMonthViewComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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 (
|
|
4345
|
+
OwlMonthViewComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
4103
4346
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlMonthViewComponent, decorators: [{
|
|
4104
4347
|
type: i0.Component,
|
|
4105
4348
|
args: [{
|
|
4106
|
-
selector: 'owl-date-time-month-view',
|
|
4349
|
+
selector: 'ofe-owl-date-time-month-view',
|
|
4107
4350
|
exportAs: 'owlYearView',
|
|
4108
4351
|
templateUrl: './calendar-month-view.component.html',
|
|
4109
4352
|
styleUrls: ['./calendar-month-view.component.scss'],
|
|
4110
|
-
host: {
|
|
4111
|
-
'[class.owl-dt-calendar-view]': 'owlDTCalendarView'
|
|
4112
|
-
},
|
|
4113
|
-
preserveWhitespaces: false,
|
|
4114
4353
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
4115
4354
|
}]
|
|
4116
4355
|
}], ctorParameters: function () {
|
|
@@ -4122,7 +4361,10 @@
|
|
|
4122
4361
|
type: i0.Inject,
|
|
4123
4362
|
args: [OWL_DATE_TIME_FORMATS]
|
|
4124
4363
|
}] }];
|
|
4125
|
-
}, propDecorators: {
|
|
4364
|
+
}, propDecorators: { owlDTCalendarView: [{
|
|
4365
|
+
type: i0.HostBinding,
|
|
4366
|
+
args: ['class.owl-dt-calendar-view']
|
|
4367
|
+
}], hideOtherMonths: [{
|
|
4126
4368
|
type: i0.Input
|
|
4127
4369
|
}], firstDayOfWeek: [{
|
|
4128
4370
|
type: i0.Input
|
|
@@ -4151,7 +4393,6 @@
|
|
|
4151
4393
|
args: [OwlCalendarBodyComponent, { static: true }]
|
|
4152
4394
|
}] } });
|
|
4153
4395
|
|
|
4154
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
4155
4396
|
var MONTHS_PER_YEAR = 12;
|
|
4156
4397
|
var MONTHS_PER_ROW = 3;
|
|
4157
4398
|
var OwlYearViewComponent = /** @class */ (function () {
|
|
@@ -4174,7 +4415,7 @@
|
|
|
4174
4415
|
/**
|
|
4175
4416
|
* Callback to invoke when a new month is selected
|
|
4176
4417
|
* */
|
|
4177
|
-
this.
|
|
4418
|
+
this.monthChange = new i0.EventEmitter();
|
|
4178
4419
|
/**
|
|
4179
4420
|
* Emits the selected year. This doesn't imply a change on the selected date
|
|
4180
4421
|
* */
|
|
@@ -4185,6 +4426,13 @@
|
|
|
4185
4426
|
this.keyboardEnter = new i0.EventEmitter();
|
|
4186
4427
|
this.monthNames = this.dateTimeAdapter.getMonthNames('short');
|
|
4187
4428
|
}
|
|
4429
|
+
Object.defineProperty(OwlYearViewComponent.prototype, "owlDTCalendarView", {
|
|
4430
|
+
get: function () {
|
|
4431
|
+
return true;
|
|
4432
|
+
},
|
|
4433
|
+
enumerable: false,
|
|
4434
|
+
configurable: true
|
|
4435
|
+
});
|
|
4188
4436
|
Object.defineProperty(OwlYearViewComponent.prototype, "selectMode", {
|
|
4189
4437
|
get: function () {
|
|
4190
4438
|
return this._selectMode;
|
|
@@ -4314,13 +4562,6 @@
|
|
|
4314
4562
|
enumerable: false,
|
|
4315
4563
|
configurable: true
|
|
4316
4564
|
});
|
|
4317
|
-
Object.defineProperty(OwlYearViewComponent.prototype, "owlDTCalendarView", {
|
|
4318
|
-
get: function () {
|
|
4319
|
-
return true;
|
|
4320
|
-
},
|
|
4321
|
-
enumerable: false,
|
|
4322
|
-
configurable: true
|
|
4323
|
-
});
|
|
4324
4565
|
OwlYearViewComponent.prototype.ngOnInit = function () {
|
|
4325
4566
|
var _this = this;
|
|
4326
4567
|
this.localeSub = this.dateTimeAdapter.localeChanges.subscribe(function () {
|
|
@@ -4349,7 +4590,7 @@
|
|
|
4349
4590
|
this.monthSelected.emit(firstDateOfMonth);
|
|
4350
4591
|
var daysInMonth = this.dateTimeAdapter.getNumDaysInMonth(firstDateOfMonth);
|
|
4351
4592
|
var 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));
|
|
4352
|
-
this.
|
|
4593
|
+
this.monthChange.emit(result);
|
|
4353
4594
|
};
|
|
4354
4595
|
/**
|
|
4355
4596
|
* Handle keydown event on calendar body
|
|
@@ -4519,18 +4760,14 @@
|
|
|
4519
4760
|
return OwlYearViewComponent;
|
|
4520
4761
|
}());
|
|
4521
4762
|
OwlYearViewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlYearViewComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: DateTimeAdapter, optional: true }, { token: OWL_DATE_TIME_FORMATS, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4522
|
-
OwlYearViewComponent.ɵcmp = i0__namespace.ɵɵ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: {
|
|
4763
|
+
OwlYearViewComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.ChangeDetectionStrategy.OnPush });
|
|
4523
4764
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlYearViewComponent, decorators: [{
|
|
4524
4765
|
type: i0.Component,
|
|
4525
4766
|
args: [{
|
|
4526
|
-
selector: 'owl-date-time-year-view',
|
|
4767
|
+
selector: 'ofe-owl-date-time-year-view',
|
|
4527
4768
|
exportAs: 'owlMonthView',
|
|
4528
4769
|
templateUrl: './calendar-year-view.component.html',
|
|
4529
4770
|
styleUrls: ['./calendar-year-view.component.scss'],
|
|
4530
|
-
host: {
|
|
4531
|
-
'[class.owl-dt-calendar-view]': 'owlDTCalendarView'
|
|
4532
|
-
},
|
|
4533
|
-
preserveWhitespaces: false,
|
|
4534
4771
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
4535
4772
|
}]
|
|
4536
4773
|
}], ctorParameters: function () {
|
|
@@ -4542,7 +4779,10 @@
|
|
|
4542
4779
|
type: i0.Inject,
|
|
4543
4780
|
args: [OWL_DATE_TIME_FORMATS]
|
|
4544
4781
|
}] }];
|
|
4545
|
-
}, propDecorators: {
|
|
4782
|
+
}, propDecorators: { owlDTCalendarView: [{
|
|
4783
|
+
type: i0.HostBinding,
|
|
4784
|
+
args: ['class.owl-dt-calendar-view']
|
|
4785
|
+
}], selectMode: [{
|
|
4546
4786
|
type: i0.Input
|
|
4547
4787
|
}], selected: [{
|
|
4548
4788
|
type: i0.Input
|
|
@@ -4556,7 +4796,7 @@
|
|
|
4556
4796
|
type: i0.Input
|
|
4557
4797
|
}], maxDate: [{
|
|
4558
4798
|
type: i0.Input
|
|
4559
|
-
}],
|
|
4799
|
+
}], monthChange: [{
|
|
4560
4800
|
type: i0.Output
|
|
4561
4801
|
}], monthSelected: [{
|
|
4562
4802
|
type: i0.Output
|
|
@@ -4569,7 +4809,6 @@
|
|
|
4569
4809
|
args: [OwlCalendarBodyComponent, { static: true }]
|
|
4570
4810
|
}] } });
|
|
4571
4811
|
|
|
4572
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
4573
4812
|
var YEARS_PER_ROW = 3;
|
|
4574
4813
|
var YEAR_ROWS = 7;
|
|
4575
4814
|
var OwlMultiYearViewComponent = /** @class */ (function () {
|
|
@@ -4586,7 +4825,7 @@
|
|
|
4586
4825
|
/**
|
|
4587
4826
|
* Callback to invoke when a new month is selected
|
|
4588
4827
|
* */
|
|
4589
|
-
this.
|
|
4828
|
+
this.monthChange = new i0.EventEmitter();
|
|
4590
4829
|
/**
|
|
4591
4830
|
* Emits the selected year. This doesn't imply a change on the selected date
|
|
4592
4831
|
* */
|
|
@@ -4596,6 +4835,20 @@
|
|
|
4596
4835
|
/** Emits when use keyboard enter to select a calendar cell */
|
|
4597
4836
|
this.keyboardEnter = new i0.EventEmitter();
|
|
4598
4837
|
}
|
|
4838
|
+
Object.defineProperty(OwlMultiYearViewComponent.prototype, "owlDTCalendarView", {
|
|
4839
|
+
get: function () {
|
|
4840
|
+
return true;
|
|
4841
|
+
},
|
|
4842
|
+
enumerable: false,
|
|
4843
|
+
configurable: true
|
|
4844
|
+
});
|
|
4845
|
+
Object.defineProperty(OwlMultiYearViewComponent.prototype, "owlDTCalendarMultiYearView", {
|
|
4846
|
+
get: function () {
|
|
4847
|
+
return true;
|
|
4848
|
+
},
|
|
4849
|
+
enumerable: false,
|
|
4850
|
+
configurable: true
|
|
4851
|
+
});
|
|
4599
4852
|
Object.defineProperty(OwlMultiYearViewComponent.prototype, "selectMode", {
|
|
4600
4853
|
get: function () {
|
|
4601
4854
|
return this._selectMode;
|
|
@@ -4768,21 +5021,6 @@
|
|
|
4768
5021
|
enumerable: false,
|
|
4769
5022
|
configurable: true
|
|
4770
5023
|
});
|
|
4771
|
-
Object.defineProperty(OwlMultiYearViewComponent.prototype, "owlDTCalendarView", {
|
|
4772
|
-
get: function () {
|
|
4773
|
-
return true;
|
|
4774
|
-
},
|
|
4775
|
-
enumerable: false,
|
|
4776
|
-
configurable: true
|
|
4777
|
-
});
|
|
4778
|
-
Object.defineProperty(OwlMultiYearViewComponent.prototype, "owlDTCalendarMultiYearView", {
|
|
4779
|
-
get: function () {
|
|
4780
|
-
return true;
|
|
4781
|
-
},
|
|
4782
|
-
enumerable: false,
|
|
4783
|
-
configurable: true
|
|
4784
|
-
});
|
|
4785
|
-
OwlMultiYearViewComponent.prototype.ngOnInit = function () { };
|
|
4786
5024
|
OwlMultiYearViewComponent.prototype.ngAfterContentInit = function () {
|
|
4787
5025
|
this._todayYear = this.dateTimeAdapter.getYear(this.dateTimeAdapter.now());
|
|
4788
5026
|
this.generateYearList();
|
|
@@ -4799,7 +5037,7 @@
|
|
|
4799
5037
|
var firstDateOfMonth = this.dateTimeAdapter.createDate(year, this.dateTimeAdapter.getMonth(this.pickerMoment), 1);
|
|
4800
5038
|
var daysInMonth = this.dateTimeAdapter.getNumDaysInMonth(firstDateOfMonth);
|
|
4801
5039
|
var 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));
|
|
4802
|
-
this.
|
|
5040
|
+
this.monthChange.emit(selected);
|
|
4803
5041
|
};
|
|
4804
5042
|
/**
|
|
4805
5043
|
* Generate the previous year list
|
|
@@ -4971,25 +5209,26 @@
|
|
|
4971
5209
|
return OwlMultiYearViewComponent;
|
|
4972
5210
|
}());
|
|
4973
5211
|
OwlMultiYearViewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlMultiYearViewComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: OwlDateTimeIntl }, { token: DateTimeAdapter, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4974
|
-
OwlMultiYearViewComponent.ɵcmp = i0__namespace.ɵɵ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: {
|
|
5212
|
+
OwlMultiYearViewComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.ChangeDetectionStrategy.OnPush });
|
|
4975
5213
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlMultiYearViewComponent, decorators: [{
|
|
4976
5214
|
type: i0.Component,
|
|
4977
5215
|
args: [{
|
|
4978
|
-
selector: 'owl-date-time-multi-year-view',
|
|
5216
|
+
selector: 'ofe-owl-date-time-multi-year-view',
|
|
4979
5217
|
templateUrl: './calendar-multi-year-view.component.html',
|
|
4980
5218
|
styleUrls: ['./calendar-multi-year-view.component.scss'],
|
|
4981
|
-
host: {
|
|
4982
|
-
'[class.owl-dt-calendar-view]': 'owlDTCalendarView',
|
|
4983
|
-
'[class.owl-dt-calendar-multi-year-view]': 'owlDTCalendarMultiYearView'
|
|
4984
|
-
},
|
|
4985
|
-
preserveWhitespaces: false,
|
|
4986
5219
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
4987
5220
|
}]
|
|
4988
5221
|
}], ctorParameters: function () {
|
|
4989
5222
|
return [{ type: i0__namespace.ChangeDetectorRef }, { type: OwlDateTimeIntl }, { type: DateTimeAdapter, decorators: [{
|
|
4990
5223
|
type: i0.Optional
|
|
4991
5224
|
}] }];
|
|
4992
|
-
}, propDecorators: {
|
|
5225
|
+
}, propDecorators: { owlDTCalendarView: [{
|
|
5226
|
+
type: i0.HostBinding,
|
|
5227
|
+
args: ['class.owl-dt-calendar-view']
|
|
5228
|
+
}], owlDTCalendarMultiYearView: [{
|
|
5229
|
+
type: i0.HostBinding,
|
|
5230
|
+
args: ['class.owl-dt-calendar-multi-year-view']
|
|
5231
|
+
}], selectMode: [{
|
|
4993
5232
|
type: i0.Input
|
|
4994
5233
|
}], selected: [{
|
|
4995
5234
|
type: i0.Input
|
|
@@ -5003,7 +5242,7 @@
|
|
|
5003
5242
|
type: i0.Input
|
|
5004
5243
|
}], maxDate: [{
|
|
5005
5244
|
type: i0.Input
|
|
5006
|
-
}],
|
|
5245
|
+
}], monthChange: [{
|
|
5007
5246
|
type: i0.Output
|
|
5008
5247
|
}], yearSelected: [{
|
|
5009
5248
|
type: i0.Output
|
|
@@ -5016,7 +5255,6 @@
|
|
|
5016
5255
|
args: [OwlCalendarBodyComponent, { static: true }]
|
|
5017
5256
|
}] } });
|
|
5018
5257
|
|
|
5019
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
5020
5258
|
var OwlCalendarComponent = /** @class */ (function () {
|
|
5021
5259
|
function OwlCalendarComponent(elmRef, pickerIntl, ngZone, cdRef, dateTimeAdapter, dateTimeFormats) {
|
|
5022
5260
|
var _this = this;
|
|
@@ -5070,6 +5308,13 @@
|
|
|
5070
5308
|
_this.cdRef.markForCheck();
|
|
5071
5309
|
});
|
|
5072
5310
|
}
|
|
5311
|
+
Object.defineProperty(OwlCalendarComponent.prototype, "owlDTCalendarClass", {
|
|
5312
|
+
get: function () {
|
|
5313
|
+
return true;
|
|
5314
|
+
},
|
|
5315
|
+
enumerable: false,
|
|
5316
|
+
configurable: true
|
|
5317
|
+
});
|
|
5073
5318
|
Object.defineProperty(OwlCalendarComponent.prototype, "minDate", {
|
|
5074
5319
|
get: function () {
|
|
5075
5320
|
return this._minDate;
|
|
@@ -5223,17 +5468,6 @@
|
|
|
5223
5468
|
enumerable: false,
|
|
5224
5469
|
configurable: true
|
|
5225
5470
|
});
|
|
5226
|
-
Object.defineProperty(OwlCalendarComponent.prototype, "owlDTCalendarClass", {
|
|
5227
|
-
/**
|
|
5228
|
-
* Bind class 'owl-dt-calendar' to host
|
|
5229
|
-
* */
|
|
5230
|
-
get: function () {
|
|
5231
|
-
return true;
|
|
5232
|
-
},
|
|
5233
|
-
enumerable: false,
|
|
5234
|
-
configurable: true
|
|
5235
|
-
});
|
|
5236
|
-
OwlCalendarComponent.prototype.ngOnInit = function () { };
|
|
5237
5471
|
OwlCalendarComponent.prototype.ngAfterContentInit = function () {
|
|
5238
5472
|
this._currentView = this.startView;
|
|
5239
5473
|
};
|
|
@@ -5367,18 +5601,14 @@
|
|
|
5367
5601
|
return OwlCalendarComponent;
|
|
5368
5602
|
}());
|
|
5369
5603
|
OwlCalendarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlCalendarComponent, deps: [{ token: i0__namespace.ElementRef }, { token: OwlDateTimeIntl }, { token: i0__namespace.NgZone }, { token: i0__namespace.ChangeDetectorRef }, { token: DateTimeAdapter, optional: true }, { token: OWL_DATE_TIME_FORMATS, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5370
|
-
OwlCalendarComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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 (
|
|
5604
|
+
OwlCalendarComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace$4.CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: ["cdkFocusChange"] }, { type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
5371
5605
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlCalendarComponent, decorators: [{
|
|
5372
5606
|
type: i0.Component,
|
|
5373
5607
|
args: [{
|
|
5374
|
-
selector: 'owl-date-time-calendar',
|
|
5608
|
+
selector: 'ofe-owl-date-time-calendar',
|
|
5375
5609
|
exportAs: 'owlDateTimeCalendar',
|
|
5376
5610
|
templateUrl: './calendar.component.html',
|
|
5377
5611
|
styleUrls: ['./calendar.component.scss'],
|
|
5378
|
-
host: {
|
|
5379
|
-
'[class.owl-dt-calendar]': 'owlDTCalendarClass'
|
|
5380
|
-
},
|
|
5381
|
-
preserveWhitespaces: false,
|
|
5382
5612
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
5383
5613
|
}]
|
|
5384
5614
|
}], ctorParameters: function () {
|
|
@@ -5390,7 +5620,10 @@
|
|
|
5390
5620
|
type: i0.Inject,
|
|
5391
5621
|
args: [OWL_DATE_TIME_FORMATS]
|
|
5392
5622
|
}] }];
|
|
5393
|
-
}, propDecorators: {
|
|
5623
|
+
}, propDecorators: { owlDTCalendarClass: [{
|
|
5624
|
+
type: i0.HostBinding,
|
|
5625
|
+
args: ['class.owl-dt-calendar']
|
|
5626
|
+
}], minDate: [{
|
|
5394
5627
|
type: i0.Input
|
|
5395
5628
|
}], maxDate: [{
|
|
5396
5629
|
type: i0.Input
|
|
@@ -5422,6 +5655,26 @@
|
|
|
5422
5655
|
type: i0.Output
|
|
5423
5656
|
}] } });
|
|
5424
5657
|
|
|
5658
|
+
/**
|
|
5659
|
+
* date-time-picker.animations
|
|
5660
|
+
*/
|
|
5661
|
+
var owlDateTimePickerAnimations = {
|
|
5662
|
+
transformPicker: i1$5.trigger('transformPicker', [
|
|
5663
|
+
i1$5.state('void', i1$5.style({ opacity: 0, transform: 'scale(1, 0)' })),
|
|
5664
|
+
i1$5.state('enter', i1$5.style({ opacity: 1, transform: 'scale(1, 1)' })),
|
|
5665
|
+
i1$5.transition('void => enter', i1$5.group([
|
|
5666
|
+
i1$5.query('@fadeInPicker', i1$5.animateChild(), { optional: true }),
|
|
5667
|
+
i1$5.animate('400ms cubic-bezier(0.25, 0.8, 0.25, 1)')
|
|
5668
|
+
])),
|
|
5669
|
+
i1$5.transition('enter => void', i1$5.animate('100ms linear', i1$5.style({ opacity: 0 })))
|
|
5670
|
+
]),
|
|
5671
|
+
fadeInPicker: i1$5.trigger('fadeInPicker', [
|
|
5672
|
+
i1$5.state('enter', i1$5.style({ opacity: 1 })),
|
|
5673
|
+
i1$5.state('void', i1$5.style({ opacity: 0 })),
|
|
5674
|
+
i1$5.transition('void => enter', i1$5.animate('400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)'))
|
|
5675
|
+
])
|
|
5676
|
+
};
|
|
5677
|
+
|
|
5425
5678
|
/**
|
|
5426
5679
|
* numberFixedLen.pipe
|
|
5427
5680
|
*/
|
|
@@ -5451,7 +5704,6 @@
|
|
|
5451
5704
|
}]
|
|
5452
5705
|
}] });
|
|
5453
5706
|
|
|
5454
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
5455
5707
|
var OwlTimerBoxComponent = /** @class */ (function () {
|
|
5456
5708
|
function OwlTimerBoxComponent() {
|
|
5457
5709
|
this.showDivider = false;
|
|
@@ -5461,16 +5713,16 @@
|
|
|
5461
5713
|
this.inputStream = new rxjs.Subject();
|
|
5462
5714
|
this.inputStreamSub = rxjs.Subscription.EMPTY;
|
|
5463
5715
|
}
|
|
5464
|
-
Object.defineProperty(OwlTimerBoxComponent.prototype, "
|
|
5716
|
+
Object.defineProperty(OwlTimerBoxComponent.prototype, "owlDTTimerBoxClass", {
|
|
5465
5717
|
get: function () {
|
|
5466
|
-
return
|
|
5718
|
+
return true;
|
|
5467
5719
|
},
|
|
5468
5720
|
enumerable: false,
|
|
5469
5721
|
configurable: true
|
|
5470
5722
|
});
|
|
5471
|
-
Object.defineProperty(OwlTimerBoxComponent.prototype, "
|
|
5723
|
+
Object.defineProperty(OwlTimerBoxComponent.prototype, "displayValue", {
|
|
5472
5724
|
get: function () {
|
|
5473
|
-
return
|
|
5725
|
+
return this.boxValue || this.value;
|
|
5474
5726
|
},
|
|
5475
5727
|
enumerable: false,
|
|
5476
5728
|
configurable: true
|
|
@@ -5510,21 +5762,20 @@
|
|
|
5510
5762
|
return OwlTimerBoxComponent;
|
|
5511
5763
|
}());
|
|
5512
5764
|
OwlTimerBoxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlTimerBoxComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5513
|
-
OwlTimerBoxComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "numberFixedLen": NumberFixedLenPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
5765
|
+
OwlTimerBoxComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "numberFixedLen": NumberFixedLenPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
5514
5766
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlTimerBoxComponent, decorators: [{
|
|
5515
5767
|
type: i0.Component,
|
|
5516
5768
|
args: [{
|
|
5517
5769
|
exportAs: 'owlDateTimeTimerBox',
|
|
5518
|
-
selector: 'owl-date-time-timer-box',
|
|
5770
|
+
selector: 'ofe-owl-date-time-timer-box',
|
|
5519
5771
|
templateUrl: './timer-box.component.html',
|
|
5520
5772
|
styleUrls: ['./timer-box.component.scss'],
|
|
5521
|
-
|
|
5522
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5523
|
-
host: {
|
|
5524
|
-
'[class.owl-dt-timer-box]': 'owlDTTimerBoxClass'
|
|
5525
|
-
}
|
|
5773
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
5526
5774
|
}]
|
|
5527
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
5775
|
+
}], ctorParameters: function () { return []; }, propDecorators: { owlDTTimerBoxClass: [{
|
|
5776
|
+
type: i0.HostBinding,
|
|
5777
|
+
args: ['class.owl-dt-timer-box']
|
|
5778
|
+
}], showDivider: [{
|
|
5528
5779
|
type: i0.Input
|
|
5529
5780
|
}], upBtnAriaLabel: [{
|
|
5530
5781
|
type: i0.Input
|
|
@@ -5552,7 +5803,6 @@
|
|
|
5552
5803
|
type: i0.Output
|
|
5553
5804
|
}] } });
|
|
5554
5805
|
|
|
5555
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
5556
5806
|
var OwlTimerComponent = /** @class */ (function () {
|
|
5557
5807
|
function OwlTimerComponent(ngZone, elmRef, pickerIntl, cdRef, dateTimeAdapter) {
|
|
5558
5808
|
this.ngZone = ngZone;
|
|
@@ -5575,6 +5825,20 @@
|
|
|
5575
5825
|
this.stepSecond = 1;
|
|
5576
5826
|
this.selectedChange = new i0.EventEmitter();
|
|
5577
5827
|
}
|
|
5828
|
+
Object.defineProperty(OwlTimerComponent.prototype, "owlDTTimeTabIndex", {
|
|
5829
|
+
get: function () {
|
|
5830
|
+
return -1;
|
|
5831
|
+
},
|
|
5832
|
+
enumerable: false,
|
|
5833
|
+
configurable: true
|
|
5834
|
+
});
|
|
5835
|
+
Object.defineProperty(OwlTimerComponent.prototype, "owlDTTimerClass", {
|
|
5836
|
+
get: function () {
|
|
5837
|
+
return true;
|
|
5838
|
+
},
|
|
5839
|
+
enumerable: false,
|
|
5840
|
+
configurable: true
|
|
5841
|
+
});
|
|
5578
5842
|
Object.defineProperty(OwlTimerComponent.prototype, "pickerMoment", {
|
|
5579
5843
|
get: function () {
|
|
5580
5844
|
return this._pickerMoment;
|
|
@@ -5712,21 +5976,6 @@
|
|
|
5712
5976
|
enumerable: false,
|
|
5713
5977
|
configurable: true
|
|
5714
5978
|
});
|
|
5715
|
-
Object.defineProperty(OwlTimerComponent.prototype, "owlDTTimerClass", {
|
|
5716
|
-
get: function () {
|
|
5717
|
-
return true;
|
|
5718
|
-
},
|
|
5719
|
-
enumerable: false,
|
|
5720
|
-
configurable: true
|
|
5721
|
-
});
|
|
5722
|
-
Object.defineProperty(OwlTimerComponent.prototype, "owlDTTimeTabIndex", {
|
|
5723
|
-
get: function () {
|
|
5724
|
-
return -1;
|
|
5725
|
-
},
|
|
5726
|
-
enumerable: false,
|
|
5727
|
-
configurable: true
|
|
5728
|
-
});
|
|
5729
|
-
OwlTimerComponent.prototype.ngOnInit = function () { };
|
|
5730
5979
|
/**
|
|
5731
5980
|
* Focus to the host element
|
|
5732
5981
|
* */
|
|
@@ -5871,26 +6120,27 @@
|
|
|
5871
6120
|
return OwlTimerComponent;
|
|
5872
6121
|
}());
|
|
5873
6122
|
OwlTimerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlTimerComponent, deps: [{ token: i0__namespace.NgZone }, { token: i0__namespace.ElementRef }, { token: OwlDateTimeIntl }, { token: i0__namespace.ChangeDetectorRef }, { token: DateTimeAdapter, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5874
|
-
OwlTimerComponent.ɵcmp = i0__namespace.ɵɵ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: { "
|
|
6123
|
+
OwlTimerComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
5875
6124
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlTimerComponent, decorators: [{
|
|
5876
6125
|
type: i0.Component,
|
|
5877
6126
|
args: [{
|
|
5878
6127
|
exportAs: 'owlDateTimeTimer',
|
|
5879
|
-
selector: 'owl-date-time-timer',
|
|
6128
|
+
selector: 'ofe-owl-date-time-timer',
|
|
5880
6129
|
templateUrl: './timer.component.html',
|
|
5881
6130
|
styleUrls: ['./timer.component.scss'],
|
|
5882
|
-
|
|
5883
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5884
|
-
host: {
|
|
5885
|
-
'[class.owl-dt-timer]': 'owlDTTimerClass',
|
|
5886
|
-
'[attr.tabindex]': 'owlDTTimeTabIndex'
|
|
5887
|
-
}
|
|
6131
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
5888
6132
|
}]
|
|
5889
6133
|
}], ctorParameters: function () {
|
|
5890
6134
|
return [{ type: i0__namespace.NgZone }, { type: i0__namespace.ElementRef }, { type: OwlDateTimeIntl }, { type: i0__namespace.ChangeDetectorRef }, { type: DateTimeAdapter, decorators: [{
|
|
5891
6135
|
type: i0.Optional
|
|
5892
6136
|
}] }];
|
|
5893
|
-
}, propDecorators: {
|
|
6137
|
+
}, propDecorators: { owlDTTimeTabIndex: [{
|
|
6138
|
+
type: i0.HostBinding,
|
|
6139
|
+
args: ['attr.tabindex']
|
|
6140
|
+
}], owlDTTimerClass: [{
|
|
6141
|
+
type: i0.HostBinding,
|
|
6142
|
+
args: ['class.owl-dt-timer']
|
|
6143
|
+
}], pickerMoment: [{
|
|
5894
6144
|
type: i0.Input
|
|
5895
6145
|
}], minDateTime: [{
|
|
5896
6146
|
type: i0.Input
|
|
@@ -5910,26 +6160,6 @@
|
|
|
5910
6160
|
type: i0.Output
|
|
5911
6161
|
}] } });
|
|
5912
6162
|
|
|
5913
|
-
/**
|
|
5914
|
-
* date-time-picker.animations
|
|
5915
|
-
*/
|
|
5916
|
-
var owlDateTimePickerAnimations = {
|
|
5917
|
-
transformPicker: i1$5.trigger('transformPicker', [
|
|
5918
|
-
i1$5.state('void', i1$5.style({ opacity: 0, transform: 'scale(1, 0)' })),
|
|
5919
|
-
i1$5.state('enter', i1$5.style({ opacity: 1, transform: 'scale(1, 1)' })),
|
|
5920
|
-
i1$5.transition('void => enter', i1$5.group([
|
|
5921
|
-
i1$5.query('@fadeInPicker', i1$5.animateChild(), { optional: true }),
|
|
5922
|
-
i1$5.animate('400ms cubic-bezier(0.25, 0.8, 0.25, 1)')
|
|
5923
|
-
])),
|
|
5924
|
-
i1$5.transition('enter => void', i1$5.animate('100ms linear', i1$5.style({ opacity: 0 })))
|
|
5925
|
-
]),
|
|
5926
|
-
fadeInPicker: i1$5.trigger('fadeInPicker', [
|
|
5927
|
-
i1$5.state('enter', i1$5.style({ opacity: 1 })),
|
|
5928
|
-
i1$5.state('void', i1$5.style({ opacity: 0 })),
|
|
5929
|
-
i1$5.transition('void => enter', i1$5.animate('400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)'))
|
|
5930
|
-
])
|
|
5931
|
-
};
|
|
5932
|
-
|
|
5933
6163
|
var OwlDateTimeContainerComponent = /** @class */ (function () {
|
|
5934
6164
|
function OwlDateTimeContainerComponent(cdRef, elmRef, pickerIntl, dateTimeAdapter) {
|
|
5935
6165
|
this.cdRef = cdRef;
|
|
@@ -5947,6 +6177,61 @@
|
|
|
5947
6177
|
this.confirmSelected$ = new rxjs.Subject();
|
|
5948
6178
|
this.pickerOpened$ = new rxjs.Subject();
|
|
5949
6179
|
}
|
|
6180
|
+
Object.defineProperty(OwlDateTimeContainerComponent.prototype, "owlDTContainerClass", {
|
|
6181
|
+
get: function () {
|
|
6182
|
+
return true;
|
|
6183
|
+
},
|
|
6184
|
+
enumerable: false,
|
|
6185
|
+
configurable: true
|
|
6186
|
+
});
|
|
6187
|
+
Object.defineProperty(OwlDateTimeContainerComponent.prototype, "owlDTPopupContainerClass", {
|
|
6188
|
+
get: function () {
|
|
6189
|
+
return this.picker.pickerMode === 'popup';
|
|
6190
|
+
},
|
|
6191
|
+
enumerable: false,
|
|
6192
|
+
configurable: true
|
|
6193
|
+
});
|
|
6194
|
+
Object.defineProperty(OwlDateTimeContainerComponent.prototype, "owlDTDialogContainerClass", {
|
|
6195
|
+
get: function () {
|
|
6196
|
+
return this.picker.pickerMode === 'dialog';
|
|
6197
|
+
},
|
|
6198
|
+
enumerable: false,
|
|
6199
|
+
configurable: true
|
|
6200
|
+
});
|
|
6201
|
+
Object.defineProperty(OwlDateTimeContainerComponent.prototype, "owlDTInlineContainerClass", {
|
|
6202
|
+
get: function () {
|
|
6203
|
+
return this.picker.pickerMode === 'inline';
|
|
6204
|
+
},
|
|
6205
|
+
enumerable: false,
|
|
6206
|
+
configurable: true
|
|
6207
|
+
});
|
|
6208
|
+
Object.defineProperty(OwlDateTimeContainerComponent.prototype, "owlDTContainerDisabledClass", {
|
|
6209
|
+
get: function () {
|
|
6210
|
+
return this.picker.disabled;
|
|
6211
|
+
},
|
|
6212
|
+
enumerable: false,
|
|
6213
|
+
configurable: true
|
|
6214
|
+
});
|
|
6215
|
+
Object.defineProperty(OwlDateTimeContainerComponent.prototype, "owlDTContainerId", {
|
|
6216
|
+
get: function () {
|
|
6217
|
+
return this.picker.id;
|
|
6218
|
+
},
|
|
6219
|
+
enumerable: false,
|
|
6220
|
+
configurable: true
|
|
6221
|
+
});
|
|
6222
|
+
Object.defineProperty(OwlDateTimeContainerComponent.prototype, "owlDTContainerAnimation", {
|
|
6223
|
+
get: function () {
|
|
6224
|
+
return this.picker.pickerMode === 'inline' ? '' : 'enter';
|
|
6225
|
+
},
|
|
6226
|
+
enumerable: false,
|
|
6227
|
+
configurable: true
|
|
6228
|
+
});
|
|
6229
|
+
OwlDateTimeContainerComponent.prototype.handleContainerAnimationDone = function (event) {
|
|
6230
|
+
var toState = event.toState;
|
|
6231
|
+
if (toState === 'enter') {
|
|
6232
|
+
this.pickerOpened$.next();
|
|
6233
|
+
}
|
|
6234
|
+
};
|
|
5950
6235
|
Object.defineProperty(OwlDateTimeContainerComponent.prototype, "hidePickerStream", {
|
|
5951
6236
|
get: function () {
|
|
5952
6237
|
return this.hidePicker$.asObservable();
|
|
@@ -6069,68 +6354,12 @@
|
|
|
6069
6354
|
enumerable: false,
|
|
6070
6355
|
configurable: true
|
|
6071
6356
|
});
|
|
6072
|
-
Object.defineProperty(OwlDateTimeContainerComponent.prototype, "owlDTContainerClass", {
|
|
6073
|
-
get: function () {
|
|
6074
|
-
return true;
|
|
6075
|
-
},
|
|
6076
|
-
enumerable: false,
|
|
6077
|
-
configurable: true
|
|
6078
|
-
});
|
|
6079
|
-
Object.defineProperty(OwlDateTimeContainerComponent.prototype, "owlDTPopupContainerClass", {
|
|
6080
|
-
get: function () {
|
|
6081
|
-
return this.picker.pickerMode === 'popup';
|
|
6082
|
-
},
|
|
6083
|
-
enumerable: false,
|
|
6084
|
-
configurable: true
|
|
6085
|
-
});
|
|
6086
|
-
Object.defineProperty(OwlDateTimeContainerComponent.prototype, "owlDTDialogContainerClass", {
|
|
6087
|
-
get: function () {
|
|
6088
|
-
return this.picker.pickerMode === 'dialog';
|
|
6089
|
-
},
|
|
6090
|
-
enumerable: false,
|
|
6091
|
-
configurable: true
|
|
6092
|
-
});
|
|
6093
|
-
Object.defineProperty(OwlDateTimeContainerComponent.prototype, "owlDTInlineContainerClass", {
|
|
6094
|
-
get: function () {
|
|
6095
|
-
return this.picker.pickerMode === 'inline';
|
|
6096
|
-
},
|
|
6097
|
-
enumerable: false,
|
|
6098
|
-
configurable: true
|
|
6099
|
-
});
|
|
6100
|
-
Object.defineProperty(OwlDateTimeContainerComponent.prototype, "owlDTContainerDisabledClass", {
|
|
6101
|
-
get: function () {
|
|
6102
|
-
return this.picker.disabled;
|
|
6103
|
-
},
|
|
6104
|
-
enumerable: false,
|
|
6105
|
-
configurable: true
|
|
6106
|
-
});
|
|
6107
|
-
Object.defineProperty(OwlDateTimeContainerComponent.prototype, "owlDTContainerId", {
|
|
6108
|
-
get: function () {
|
|
6109
|
-
return this.picker.id;
|
|
6110
|
-
},
|
|
6111
|
-
enumerable: false,
|
|
6112
|
-
configurable: true
|
|
6113
|
-
});
|
|
6114
|
-
Object.defineProperty(OwlDateTimeContainerComponent.prototype, "owlDTContainerAnimation", {
|
|
6115
|
-
get: function () {
|
|
6116
|
-
return this.picker.pickerMode === 'inline' ? '' : 'enter';
|
|
6117
|
-
},
|
|
6118
|
-
enumerable: false,
|
|
6119
|
-
configurable: true
|
|
6120
|
-
});
|
|
6121
|
-
OwlDateTimeContainerComponent.prototype.ngOnInit = function () { };
|
|
6122
6357
|
OwlDateTimeContainerComponent.prototype.ngAfterContentInit = function () {
|
|
6123
6358
|
this.initPicker();
|
|
6124
6359
|
};
|
|
6125
6360
|
OwlDateTimeContainerComponent.prototype.ngAfterViewInit = function () {
|
|
6126
6361
|
this.focusPicker();
|
|
6127
6362
|
};
|
|
6128
|
-
OwlDateTimeContainerComponent.prototype.handleContainerAnimationDone = function (event) {
|
|
6129
|
-
var toState = event.toState;
|
|
6130
|
-
if (toState === 'enter') {
|
|
6131
|
-
this.pickerOpened$.next();
|
|
6132
|
-
}
|
|
6133
|
-
};
|
|
6134
6363
|
OwlDateTimeContainerComponent.prototype.dateSelected = function (date) {
|
|
6135
6364
|
var result;
|
|
6136
6365
|
if (this.picker.isInSingleMode) {
|
|
@@ -6345,7 +6574,7 @@
|
|
|
6345
6574
|
return OwlDateTimeContainerComponent;
|
|
6346
6575
|
}());
|
|
6347
6576
|
OwlDateTimeContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlDateTimeContainerComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ElementRef }, { token: OwlDateTimeIntl }, { token: DateTimeAdapter, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6348
|
-
OwlDateTimeContainerComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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
|
|
6577
|
+
OwlDateTimeContainerComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace$4.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
|
|
6349
6578
|
owlDateTimePickerAnimations.transformPicker,
|
|
6350
6579
|
owlDateTimePickerAnimations.fadeInPicker
|
|
6351
6580
|
], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
@@ -6353,25 +6582,14 @@
|
|
|
6353
6582
|
type: i0.Component,
|
|
6354
6583
|
args: [{
|
|
6355
6584
|
exportAs: 'owlDateTimeContainer',
|
|
6356
|
-
selector: 'owl-date-time-container',
|
|
6585
|
+
selector: 'ofe-owl-date-time-container',
|
|
6357
6586
|
templateUrl: './date-time-picker-container.component.html',
|
|
6358
6587
|
styleUrls: ['./date-time-picker-container.component.scss'],
|
|
6359
6588
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6360
|
-
preserveWhitespaces: false,
|
|
6361
6589
|
animations: [
|
|
6362
6590
|
owlDateTimePickerAnimations.transformPicker,
|
|
6363
6591
|
owlDateTimePickerAnimations.fadeInPicker
|
|
6364
|
-
]
|
|
6365
|
-
host: {
|
|
6366
|
-
'(@transformPicker.done)': 'handleContainerAnimationDone($event)',
|
|
6367
|
-
'[class.owl-dt-container]': 'owlDTContainerClass',
|
|
6368
|
-
'[class.owl-dt-popup-container]': 'owlDTPopupContainerClass',
|
|
6369
|
-
'[class.owl-dt-dialog-container]': 'owlDTDialogContainerClass',
|
|
6370
|
-
'[class.owl-dt-inline-container]': 'owlDTInlineContainerClass',
|
|
6371
|
-
'[class.owl-dt-container-disabled]': 'owlDTContainerDisabledClass',
|
|
6372
|
-
'[attr.id]': 'owlDTContainerId',
|
|
6373
|
-
'[@transformPicker]': 'owlDTContainerAnimation'
|
|
6374
|
-
}
|
|
6592
|
+
]
|
|
6375
6593
|
}]
|
|
6376
6594
|
}], ctorParameters: function () {
|
|
6377
6595
|
return [{ type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ElementRef }, { type: OwlDateTimeIntl }, { type: DateTimeAdapter, decorators: [{
|
|
@@ -6383,6 +6601,30 @@
|
|
|
6383
6601
|
}], timer: [{
|
|
6384
6602
|
type: i0.ViewChild,
|
|
6385
6603
|
args: [OwlTimerComponent, { static: false }]
|
|
6604
|
+
}], owlDTContainerClass: [{
|
|
6605
|
+
type: i0.HostBinding,
|
|
6606
|
+
args: ['class.owl-dt-container']
|
|
6607
|
+
}], owlDTPopupContainerClass: [{
|
|
6608
|
+
type: i0.HostBinding,
|
|
6609
|
+
args: ['class.owl-dt-popup-container']
|
|
6610
|
+
}], owlDTDialogContainerClass: [{
|
|
6611
|
+
type: i0.HostBinding,
|
|
6612
|
+
args: ['class.owl-dt-dialog-container']
|
|
6613
|
+
}], owlDTInlineContainerClass: [{
|
|
6614
|
+
type: i0.HostBinding,
|
|
6615
|
+
args: ['class.owl-dt-inline-container']
|
|
6616
|
+
}], owlDTContainerDisabledClass: [{
|
|
6617
|
+
type: i0.HostBinding,
|
|
6618
|
+
args: ['class.owl-dt-container-disabled']
|
|
6619
|
+
}], owlDTContainerId: [{
|
|
6620
|
+
type: i0.HostBinding,
|
|
6621
|
+
args: ['attr.id']
|
|
6622
|
+
}], owlDTContainerAnimation: [{
|
|
6623
|
+
type: i0.HostBinding,
|
|
6624
|
+
args: ['@transformPicker']
|
|
6625
|
+
}], handleContainerAnimationDone: [{
|
|
6626
|
+
type: i0.HostListener,
|
|
6627
|
+
args: ['@transformPicker.done', ['$event']]
|
|
6386
6628
|
}] } });
|
|
6387
6629
|
|
|
6388
6630
|
/**
|
|
@@ -6802,9 +7044,9 @@
|
|
|
6802
7044
|
_this.elementFocusedBeforeDialogWasOpened = null;
|
|
6803
7045
|
return _this;
|
|
6804
7046
|
}
|
|
6805
|
-
Object.defineProperty(OwlDialogContainerComponent.prototype, "
|
|
7047
|
+
Object.defineProperty(OwlDialogContainerComponent.prototype, "owlDialogContainerTabIndex", {
|
|
6806
7048
|
get: function () {
|
|
6807
|
-
return
|
|
7049
|
+
return -1;
|
|
6808
7050
|
},
|
|
6809
7051
|
enumerable: false,
|
|
6810
7052
|
configurable: true
|
|
@@ -6816,13 +7058,6 @@
|
|
|
6816
7058
|
enumerable: false,
|
|
6817
7059
|
configurable: true
|
|
6818
7060
|
});
|
|
6819
|
-
Object.defineProperty(OwlDialogContainerComponent.prototype, "owlDialogContainerTabIndex", {
|
|
6820
|
-
get: function () {
|
|
6821
|
-
return -1;
|
|
6822
|
-
},
|
|
6823
|
-
enumerable: false,
|
|
6824
|
-
configurable: true
|
|
6825
|
-
});
|
|
6826
7061
|
Object.defineProperty(OwlDialogContainerComponent.prototype, "owlDialogContainerId", {
|
|
6827
7062
|
get: function () {
|
|
6828
7063
|
return this._config.id;
|
|
@@ -6858,7 +7093,27 @@
|
|
|
6858
7093
|
enumerable: false,
|
|
6859
7094
|
configurable: true
|
|
6860
7095
|
});
|
|
6861
|
-
OwlDialogContainerComponent.prototype.
|
|
7096
|
+
OwlDialogContainerComponent.prototype.onAnimationStart = function (event) {
|
|
7097
|
+
this.isAnimating = true;
|
|
7098
|
+
this.animationStateChanged.emit(event);
|
|
7099
|
+
};
|
|
7100
|
+
OwlDialogContainerComponent.prototype.onAnimationDone = function (event) {
|
|
7101
|
+
if (event.toState === 'enter') {
|
|
7102
|
+
this.trapFocus();
|
|
7103
|
+
}
|
|
7104
|
+
else if (event.toState === 'exit') {
|
|
7105
|
+
this.restoreFocus();
|
|
7106
|
+
}
|
|
7107
|
+
this.animationStateChanged.emit(event);
|
|
7108
|
+
this.isAnimating = false;
|
|
7109
|
+
};
|
|
7110
|
+
Object.defineProperty(OwlDialogContainerComponent.prototype, "config", {
|
|
7111
|
+
get: function () {
|
|
7112
|
+
return this._config;
|
|
7113
|
+
},
|
|
7114
|
+
enumerable: false,
|
|
7115
|
+
configurable: true
|
|
7116
|
+
});
|
|
6862
7117
|
/**
|
|
6863
7118
|
* Attach a ComponentPortal as content to this dialog container.
|
|
6864
7119
|
*/
|
|
@@ -6878,20 +7133,6 @@
|
|
|
6878
7133
|
this.calculateZoomOrigin(event);
|
|
6879
7134
|
}
|
|
6880
7135
|
};
|
|
6881
|
-
OwlDialogContainerComponent.prototype.onAnimationStart = function (event) {
|
|
6882
|
-
this.isAnimating = true;
|
|
6883
|
-
this.animationStateChanged.emit(event);
|
|
6884
|
-
};
|
|
6885
|
-
OwlDialogContainerComponent.prototype.onAnimationDone = function (event) {
|
|
6886
|
-
if (event.toState === 'enter') {
|
|
6887
|
-
this.trapFocus();
|
|
6888
|
-
}
|
|
6889
|
-
else if (event.toState === 'exit') {
|
|
6890
|
-
this.restoreFocus();
|
|
6891
|
-
}
|
|
6892
|
-
this.animationStateChanged.emit(event);
|
|
6893
|
-
this.isAnimating = false;
|
|
6894
|
-
};
|
|
6895
7136
|
OwlDialogContainerComponent.prototype.startExitAnimation = function () {
|
|
6896
7137
|
this.state = 'exit';
|
|
6897
7138
|
this.changeDetector.markForCheck();
|
|
@@ -6951,7 +7192,7 @@
|
|
|
6951
7192
|
return OwlDialogContainerComponent;
|
|
6952
7193
|
}(i2$1.BasePortalOutlet));
|
|
6953
7194
|
OwlDialogContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlDialogContainerComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ElementRef }, { token: i1__namespace$4.FocusTrapFactory }, { token: i1.DOCUMENT, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
6954
|
-
OwlDialogContainerComponent.ɵcmp = i0__namespace.ɵɵ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: { "
|
|
7195
|
+
OwlDialogContainerComponent.ɵcmp = i0__namespace.ɵɵ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: i2$1.CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template cdkPortalOutlet></ng-template>\n", directives: [{ type: i2__namespace$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [
|
|
6955
7196
|
i1$5.trigger('slideModal', [
|
|
6956
7197
|
i1$5.transition('void => enter', [
|
|
6957
7198
|
i1$5.style(zoomFadeInFrom),
|
|
@@ -6978,7 +7219,7 @@
|
|
|
6978
7219
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlDialogContainerComponent, decorators: [{
|
|
6979
7220
|
type: i0.Component,
|
|
6980
7221
|
args: [{
|
|
6981
|
-
selector: 'owl-dialog-container',
|
|
7222
|
+
selector: 'ofe-owl-dialog-container',
|
|
6982
7223
|
templateUrl: './dialog-container.component.html',
|
|
6983
7224
|
animations: [
|
|
6984
7225
|
i1$5.trigger('slideModal', [
|
|
@@ -7003,18 +7244,7 @@
|
|
|
7003
7244
|
}),
|
|
7004
7245
|
i1$5.transition('enter => exit', [i1$5.animateChild(), i1$5.animate(200, i1$5.style(zoomFadeIn))], { params: { x: '0px', y: '0px', ox: '50%', oy: '50%' } })
|
|
7005
7246
|
])
|
|
7006
|
-
]
|
|
7007
|
-
host: {
|
|
7008
|
-
'(@slideModal.start)': 'onAnimationStart($event)',
|
|
7009
|
-
'(@slideModal.done)': 'onAnimationDone($event)',
|
|
7010
|
-
'[class.owl-dialog-container]': 'owlDialogContainerClass',
|
|
7011
|
-
'[attr.tabindex]': 'owlDialogContainerTabIndex',
|
|
7012
|
-
'[attr.id]': 'owlDialogContainerId',
|
|
7013
|
-
'[attr.role]': 'owlDialogContainerRole',
|
|
7014
|
-
'[attr.aria-labelledby]': 'owlDialogContainerAriaLabelledby',
|
|
7015
|
-
'[attr.aria-describedby]': 'owlDialogContainerAriaDescribedby',
|
|
7016
|
-
'[@slideModal]': 'owlDialogContainerAnimation'
|
|
7017
|
-
}
|
|
7247
|
+
]
|
|
7018
7248
|
}]
|
|
7019
7249
|
}], ctorParameters: function () {
|
|
7020
7250
|
return [{ type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ElementRef }, { type: i1__namespace$4.FocusTrapFactory }, { type: undefined, decorators: [{
|
|
@@ -7023,7 +7253,34 @@
|
|
|
7023
7253
|
type: i0.Inject,
|
|
7024
7254
|
args: [i1.DOCUMENT]
|
|
7025
7255
|
}] }];
|
|
7026
|
-
}, propDecorators: {
|
|
7256
|
+
}, propDecorators: { owlDialogContainerTabIndex: [{
|
|
7257
|
+
type: i0.HostBinding,
|
|
7258
|
+
args: ['attr.tabindex']
|
|
7259
|
+
}], owlDialogContainerClass: [{
|
|
7260
|
+
type: i0.HostBinding,
|
|
7261
|
+
args: ['class.owl-dialog-container']
|
|
7262
|
+
}], owlDialogContainerId: [{
|
|
7263
|
+
type: i0.HostBinding,
|
|
7264
|
+
args: ['attr.id']
|
|
7265
|
+
}], owlDialogContainerRole: [{
|
|
7266
|
+
type: i0.HostBinding,
|
|
7267
|
+
args: ['attr.role']
|
|
7268
|
+
}], owlDialogContainerAriaLabelledby: [{
|
|
7269
|
+
type: i0.HostBinding,
|
|
7270
|
+
args: ['attr.aria-labelledby']
|
|
7271
|
+
}], owlDialogContainerAriaDescribedby: [{
|
|
7272
|
+
type: i0.HostBinding,
|
|
7273
|
+
args: ['attr.aria-describedby']
|
|
7274
|
+
}], owlDialogContainerAnimation: [{
|
|
7275
|
+
type: i0.HostBinding,
|
|
7276
|
+
args: ['@slideModal']
|
|
7277
|
+
}], onAnimationStart: [{
|
|
7278
|
+
type: i0.HostListener,
|
|
7279
|
+
args: ['@slideModal.start', ['$event']]
|
|
7280
|
+
}], onAnimationDone: [{
|
|
7281
|
+
type: i0.HostListener,
|
|
7282
|
+
args: ['@slideModal.done', ['$event']]
|
|
7283
|
+
}], portalOutlet: [{
|
|
7027
7284
|
type: i0.ViewChild,
|
|
7028
7285
|
args: [i2$1.CdkPortalOutlet, { static: true }]
|
|
7029
7286
|
}] } });
|
|
@@ -7545,7 +7802,6 @@
|
|
|
7545
7802
|
enumerable: false,
|
|
7546
7803
|
configurable: true
|
|
7547
7804
|
});
|
|
7548
|
-
OwlDateTimeComponent.prototype.ngOnInit = function () { };
|
|
7549
7805
|
OwlDateTimeComponent.prototype.ngOnDestroy = function () {
|
|
7550
7806
|
this.close();
|
|
7551
7807
|
this.dtInputSub.unsubscribe();
|
|
@@ -7833,16 +8089,15 @@
|
|
|
7833
8089
|
return OwlDateTimeComponent;
|
|
7834
8090
|
}(OwlDateTime));
|
|
7835
8091
|
OwlDateTimeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlDateTimeComponent, deps: [{ token: i1__namespace$5.Overlay }, { token: i0__namespace.ViewContainerRef }, { token: OwlDialogService }, { token: i0__namespace.NgZone }, { token: i0__namespace.ChangeDetectorRef }, { token: DateTimeAdapter, optional: true }, { token: OWL_DTPICKER_SCROLL_STRATEGY }, { token: OWL_DATE_TIME_FORMATS, optional: true }, { token: i1.DOCUMENT, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7836
|
-
OwlDateTimeComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, template: "", styles: [""], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
8092
|
+
OwlDateTimeComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, template: "", styles: [""], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
7837
8093
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlDateTimeComponent, decorators: [{
|
|
7838
8094
|
type: i0.Component,
|
|
7839
8095
|
args: [{
|
|
7840
|
-
selector: 'owl-date-time',
|
|
8096
|
+
selector: 'ofe-owl-date-time',
|
|
7841
8097
|
exportAs: 'owlDateTime',
|
|
7842
8098
|
templateUrl: './date-time-picker.component.html',
|
|
7843
8099
|
styleUrls: ['./date-time-picker.component.scss'],
|
|
7844
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
7845
|
-
preserveWhitespaces: false
|
|
8100
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
7846
8101
|
}]
|
|
7847
8102
|
}], ctorParameters: function () {
|
|
7848
8103
|
return [{ type: i1__namespace$5.Overlay }, { type: i0__namespace.ViewContainerRef }, { type: OwlDialogService }, { type: i0__namespace.NgZone }, { type: i0__namespace.ChangeDetectorRef }, { type: DateTimeAdapter, decorators: [{
|
|
@@ -7887,14 +8142,13 @@
|
|
|
7887
8142
|
type: i0.Output
|
|
7888
8143
|
}] } });
|
|
7889
8144
|
|
|
7890
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
7891
8145
|
var OWL_DATETIME_VALUE_ACCESSOR$1 = {
|
|
7892
|
-
provide:
|
|
8146
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
7893
8147
|
useExisting: i0.forwardRef(function () { return OwlDateTimeInputDirective; }),
|
|
7894
8148
|
multi: true
|
|
7895
8149
|
};
|
|
7896
8150
|
var OWL_DATETIME_VALIDATORS = {
|
|
7897
|
-
provide:
|
|
8151
|
+
provide: i19.NG_VALIDATORS,
|
|
7898
8152
|
useExisting: i0.forwardRef(function () { return OwlDateTimeInputDirective; }),
|
|
7899
8153
|
multi: true
|
|
7900
8154
|
};
|
|
@@ -8009,7 +8263,7 @@
|
|
|
8009
8263
|
: { owlDateTimeRange: true };
|
|
8010
8264
|
};
|
|
8011
8265
|
/** The combined form control validator for this input. */
|
|
8012
|
-
this.validator =
|
|
8266
|
+
this.validator = i19.Validators.compose([
|
|
8013
8267
|
this.parseValidator,
|
|
8014
8268
|
this.minValidator,
|
|
8015
8269
|
this.maxValidator,
|
|
@@ -8037,6 +8291,76 @@
|
|
|
8037
8291
|
_this.value = _this.value;
|
|
8038
8292
|
});
|
|
8039
8293
|
}
|
|
8294
|
+
Object.defineProperty(OwlDateTimeInputDirective.prototype, "owlDateTimeInputAriaHaspopup", {
|
|
8295
|
+
get: function () {
|
|
8296
|
+
return true;
|
|
8297
|
+
},
|
|
8298
|
+
enumerable: false,
|
|
8299
|
+
configurable: true
|
|
8300
|
+
});
|
|
8301
|
+
Object.defineProperty(OwlDateTimeInputDirective.prototype, "maxIso8601", {
|
|
8302
|
+
get: function () {
|
|
8303
|
+
return this.max ? this.dateTimeAdapter.toIso8601(this.max) : null;
|
|
8304
|
+
},
|
|
8305
|
+
enumerable: false,
|
|
8306
|
+
configurable: true
|
|
8307
|
+
});
|
|
8308
|
+
Object.defineProperty(OwlDateTimeInputDirective.prototype, "minIso8601", {
|
|
8309
|
+
get: function () {
|
|
8310
|
+
return this.min ? this.dateTimeAdapter.toIso8601(this.min) : null;
|
|
8311
|
+
},
|
|
8312
|
+
enumerable: false,
|
|
8313
|
+
configurable: true
|
|
8314
|
+
});
|
|
8315
|
+
Object.defineProperty(OwlDateTimeInputDirective.prototype, "owlDateTimeInputAriaOwns", {
|
|
8316
|
+
get: function () {
|
|
8317
|
+
return (this.dtPicker.opened && this.dtPicker.id) || null;
|
|
8318
|
+
},
|
|
8319
|
+
enumerable: false,
|
|
8320
|
+
configurable: true
|
|
8321
|
+
});
|
|
8322
|
+
Object.defineProperty(OwlDateTimeInputDirective.prototype, "owlDateTimeInputDisabled", {
|
|
8323
|
+
get: function () {
|
|
8324
|
+
return this.disabled;
|
|
8325
|
+
},
|
|
8326
|
+
enumerable: false,
|
|
8327
|
+
configurable: true
|
|
8328
|
+
});
|
|
8329
|
+
OwlDateTimeInputDirective.prototype.handleBlurOnHost = function ($event) {
|
|
8330
|
+
this.onModelTouched();
|
|
8331
|
+
};
|
|
8332
|
+
OwlDateTimeInputDirective.prototype.handleChangeOnHost = function ($event) {
|
|
8333
|
+
var v;
|
|
8334
|
+
if (this.isInSingleMode) {
|
|
8335
|
+
v = this.value;
|
|
8336
|
+
}
|
|
8337
|
+
else if (this.isInRangeMode) {
|
|
8338
|
+
v = this.values;
|
|
8339
|
+
}
|
|
8340
|
+
this.dateTimeChange.emit({
|
|
8341
|
+
source: this,
|
|
8342
|
+
value: v,
|
|
8343
|
+
input: this.elmRef.nativeElement
|
|
8344
|
+
});
|
|
8345
|
+
};
|
|
8346
|
+
OwlDateTimeInputDirective.prototype.handleInputOnHost = function ($event) {
|
|
8347
|
+
var value = $event.target.value;
|
|
8348
|
+
if (this._selectMode === 'single') {
|
|
8349
|
+
this.changeInputInSingleMode(value);
|
|
8350
|
+
}
|
|
8351
|
+
else if (this._selectMode === 'range') {
|
|
8352
|
+
this.changeInputInRangeMode(value);
|
|
8353
|
+
}
|
|
8354
|
+
else {
|
|
8355
|
+
this.changeInputInRangeFromToMode(value);
|
|
8356
|
+
}
|
|
8357
|
+
};
|
|
8358
|
+
OwlDateTimeInputDirective.prototype.handleKeydownOnHost = function ($event) {
|
|
8359
|
+
if ($event.altKey && $event.keyCode === keycodes.DOWN_ARROW) {
|
|
8360
|
+
this.dtPicker.open();
|
|
8361
|
+
$event.preventDefault();
|
|
8362
|
+
}
|
|
8363
|
+
};
|
|
8040
8364
|
Object.defineProperty(OwlDateTimeInputDirective.prototype, "owlDateTime", {
|
|
8041
8365
|
/**
|
|
8042
8366
|
* The date time picker that this input is associated with.
|
|
@@ -8196,41 +8520,6 @@
|
|
|
8196
8520
|
enumerable: false,
|
|
8197
8521
|
configurable: true
|
|
8198
8522
|
});
|
|
8199
|
-
Object.defineProperty(OwlDateTimeInputDirective.prototype, "owlDateTimeInputAriaHaspopup", {
|
|
8200
|
-
get: function () {
|
|
8201
|
-
return true;
|
|
8202
|
-
},
|
|
8203
|
-
enumerable: false,
|
|
8204
|
-
configurable: true
|
|
8205
|
-
});
|
|
8206
|
-
Object.defineProperty(OwlDateTimeInputDirective.prototype, "owlDateTimeInputAriaOwns", {
|
|
8207
|
-
get: function () {
|
|
8208
|
-
return (this.dtPicker.opened && this.dtPicker.id) || null;
|
|
8209
|
-
},
|
|
8210
|
-
enumerable: false,
|
|
8211
|
-
configurable: true
|
|
8212
|
-
});
|
|
8213
|
-
Object.defineProperty(OwlDateTimeInputDirective.prototype, "minIso8601", {
|
|
8214
|
-
get: function () {
|
|
8215
|
-
return this.min ? this.dateTimeAdapter.toIso8601(this.min) : null;
|
|
8216
|
-
},
|
|
8217
|
-
enumerable: false,
|
|
8218
|
-
configurable: true
|
|
8219
|
-
});
|
|
8220
|
-
Object.defineProperty(OwlDateTimeInputDirective.prototype, "maxIso8601", {
|
|
8221
|
-
get: function () {
|
|
8222
|
-
return this.max ? this.dateTimeAdapter.toIso8601(this.max) : null;
|
|
8223
|
-
},
|
|
8224
|
-
enumerable: false,
|
|
8225
|
-
configurable: true
|
|
8226
|
-
});
|
|
8227
|
-
Object.defineProperty(OwlDateTimeInputDirective.prototype, "owlDateTimeInputDisabled", {
|
|
8228
|
-
get: function () {
|
|
8229
|
-
return this.disabled;
|
|
8230
|
-
},
|
|
8231
|
-
enumerable: false,
|
|
8232
|
-
configurable: true
|
|
8233
|
-
});
|
|
8234
8523
|
OwlDateTimeInputDirective.prototype.ngOnInit = function () {
|
|
8235
8524
|
if (!this.dtPicker) {
|
|
8236
8525
|
throw Error("OwlDateTimePicker: the picker input doesn't have any associated owl-date-time component");
|
|
@@ -8289,44 +8578,6 @@
|
|
|
8289
8578
|
OwlDateTimeInputDirective.prototype.registerOnValidatorChange = function (fn) {
|
|
8290
8579
|
this.validatorOnChange = fn;
|
|
8291
8580
|
};
|
|
8292
|
-
/**
|
|
8293
|
-
* Open the picker when user hold alt + DOWN_ARROW
|
|
8294
|
-
* */
|
|
8295
|
-
OwlDateTimeInputDirective.prototype.handleKeydownOnHost = function (event) {
|
|
8296
|
-
if (event.altKey && event.keyCode === keycodes.DOWN_ARROW) {
|
|
8297
|
-
this.dtPicker.open();
|
|
8298
|
-
event.preventDefault();
|
|
8299
|
-
}
|
|
8300
|
-
};
|
|
8301
|
-
OwlDateTimeInputDirective.prototype.handleBlurOnHost = function (event) {
|
|
8302
|
-
this.onModelTouched();
|
|
8303
|
-
};
|
|
8304
|
-
OwlDateTimeInputDirective.prototype.handleInputOnHost = function (event) {
|
|
8305
|
-
var value = event.target.value;
|
|
8306
|
-
if (this._selectMode === 'single') {
|
|
8307
|
-
this.changeInputInSingleMode(value);
|
|
8308
|
-
}
|
|
8309
|
-
else if (this._selectMode === 'range') {
|
|
8310
|
-
this.changeInputInRangeMode(value);
|
|
8311
|
-
}
|
|
8312
|
-
else {
|
|
8313
|
-
this.changeInputInRangeFromToMode(value);
|
|
8314
|
-
}
|
|
8315
|
-
};
|
|
8316
|
-
OwlDateTimeInputDirective.prototype.handleChangeOnHost = function (event) {
|
|
8317
|
-
var v;
|
|
8318
|
-
if (this.isInSingleMode) {
|
|
8319
|
-
v = this.value;
|
|
8320
|
-
}
|
|
8321
|
-
else if (this.isInRangeMode) {
|
|
8322
|
-
v = this.values;
|
|
8323
|
-
}
|
|
8324
|
-
this.dateTimeChange.emit({
|
|
8325
|
-
source: this,
|
|
8326
|
-
value: v,
|
|
8327
|
-
input: this.elmRef.nativeElement
|
|
8328
|
-
});
|
|
8329
|
-
};
|
|
8330
8581
|
/**
|
|
8331
8582
|
* Set the native input property 'value'
|
|
8332
8583
|
*/
|
|
@@ -8501,23 +8752,12 @@
|
|
|
8501
8752
|
return OwlDateTimeInputDirective;
|
|
8502
8753
|
}());
|
|
8503
8754
|
OwlDateTimeInputDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlDateTimeInputDirective, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.Renderer2 }, { token: DateTimeAdapter, optional: true }, { token: OWL_DATE_TIME_FORMATS, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
8504
|
-
OwlDateTimeInputDirective.ɵdir = i0__namespace.ɵɵ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: { "
|
|
8755
|
+
OwlDateTimeInputDirective.ɵdir = i0__namespace.ɵɵ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__namespace });
|
|
8505
8756
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlDateTimeInputDirective, decorators: [{
|
|
8506
8757
|
type: i0.Directive,
|
|
8507
8758
|
args: [{
|
|
8508
8759
|
selector: 'input[owlDateTime]',
|
|
8509
8760
|
exportAs: 'owlDateTimeInput',
|
|
8510
|
-
host: {
|
|
8511
|
-
'(keydown)': 'handleKeydownOnHost($event)',
|
|
8512
|
-
'(blur)': 'handleBlurOnHost($event)',
|
|
8513
|
-
'(input)': 'handleInputOnHost($event)',
|
|
8514
|
-
'(change)': 'handleChangeOnHost($event)',
|
|
8515
|
-
'[attr.aria-haspopup]': 'owlDateTimeInputAriaHaspopup',
|
|
8516
|
-
'[attr.aria-owns]': 'owlDateTimeInputAriaOwns',
|
|
8517
|
-
'[attr.min]': 'minIso8601',
|
|
8518
|
-
'[attr.max]': 'maxIso8601',
|
|
8519
|
-
'[disabled]': 'owlDateTimeInputDisabled'
|
|
8520
|
-
},
|
|
8521
8761
|
providers: [OWL_DATETIME_VALUE_ACCESSOR$1, OWL_DATETIME_VALIDATORS]
|
|
8522
8762
|
}]
|
|
8523
8763
|
}], ctorParameters: function () {
|
|
@@ -8529,7 +8769,34 @@
|
|
|
8529
8769
|
type: i0.Inject,
|
|
8530
8770
|
args: [OWL_DATE_TIME_FORMATS]
|
|
8531
8771
|
}] }];
|
|
8532
|
-
}, propDecorators: {
|
|
8772
|
+
}, propDecorators: { owlDateTimeInputAriaHaspopup: [{
|
|
8773
|
+
type: i0.HostBinding,
|
|
8774
|
+
args: ['attr.aria-haspopup']
|
|
8775
|
+
}], maxIso8601: [{
|
|
8776
|
+
type: i0.HostBinding,
|
|
8777
|
+
args: ['attr.max']
|
|
8778
|
+
}], minIso8601: [{
|
|
8779
|
+
type: i0.HostBinding,
|
|
8780
|
+
args: ['attr.min']
|
|
8781
|
+
}], owlDateTimeInputAriaOwns: [{
|
|
8782
|
+
type: i0.HostBinding,
|
|
8783
|
+
args: ['attr.aria-owns']
|
|
8784
|
+
}], owlDateTimeInputDisabled: [{
|
|
8785
|
+
type: i0.HostBinding,
|
|
8786
|
+
args: ['disabled']
|
|
8787
|
+
}], handleBlurOnHost: [{
|
|
8788
|
+
type: i0.HostListener,
|
|
8789
|
+
args: ['blur', ['$event']]
|
|
8790
|
+
}], handleChangeOnHost: [{
|
|
8791
|
+
type: i0.HostListener,
|
|
8792
|
+
args: ['change', ['$event']]
|
|
8793
|
+
}], handleInputOnHost: [{
|
|
8794
|
+
type: i0.HostListener,
|
|
8795
|
+
args: ['input', ['$event']]
|
|
8796
|
+
}], handleKeydownOnHost: [{
|
|
8797
|
+
type: i0.HostListener,
|
|
8798
|
+
args: ['keydown', ['$event']]
|
|
8799
|
+
}], owlDateTime: [{
|
|
8533
8800
|
type: i0.Input
|
|
8534
8801
|
}], owlDateTimeFilter: [{
|
|
8535
8802
|
type: i0.Input
|
|
@@ -8553,12 +8820,24 @@
|
|
|
8553
8820
|
type: i0.Output
|
|
8554
8821
|
}] } });
|
|
8555
8822
|
|
|
8556
|
-
/* eslint-disable @angular-eslint/no-host-metadata-property */
|
|
8557
8823
|
var OwlDateTimeTriggerDirective = /** @class */ (function () {
|
|
8558
8824
|
function OwlDateTimeTriggerDirective(changeDetector) {
|
|
8559
8825
|
this.changeDetector = changeDetector;
|
|
8560
8826
|
this.stateChanges = rxjs.Subscription.EMPTY;
|
|
8561
8827
|
}
|
|
8828
|
+
Object.defineProperty(OwlDateTimeTriggerDirective.prototype, "owlDTTriggerDisabledClass", {
|
|
8829
|
+
get: function () {
|
|
8830
|
+
return this.disabled;
|
|
8831
|
+
},
|
|
8832
|
+
enumerable: false,
|
|
8833
|
+
configurable: true
|
|
8834
|
+
});
|
|
8835
|
+
OwlDateTimeTriggerDirective.prototype.handleClickOnHost = function ($event) {
|
|
8836
|
+
if (this.dtPicker) {
|
|
8837
|
+
this.dtPicker.open();
|
|
8838
|
+
$event.stopPropagation();
|
|
8839
|
+
}
|
|
8840
|
+
};
|
|
8562
8841
|
Object.defineProperty(OwlDateTimeTriggerDirective.prototype, "disabled", {
|
|
8563
8842
|
get: function () {
|
|
8564
8843
|
return this._disabled === undefined
|
|
@@ -8571,14 +8850,6 @@
|
|
|
8571
8850
|
enumerable: false,
|
|
8572
8851
|
configurable: true
|
|
8573
8852
|
});
|
|
8574
|
-
Object.defineProperty(OwlDateTimeTriggerDirective.prototype, "owlDTTriggerDisabledClass", {
|
|
8575
|
-
get: function () {
|
|
8576
|
-
return this.disabled;
|
|
8577
|
-
},
|
|
8578
|
-
enumerable: false,
|
|
8579
|
-
configurable: true
|
|
8580
|
-
});
|
|
8581
|
-
OwlDateTimeTriggerDirective.prototype.ngOnInit = function () { };
|
|
8582
8853
|
OwlDateTimeTriggerDirective.prototype.ngOnChanges = function (changes) {
|
|
8583
8854
|
if (changes.datepicker) {
|
|
8584
8855
|
this.watchStateChanges();
|
|
@@ -8590,12 +8861,6 @@
|
|
|
8590
8861
|
OwlDateTimeTriggerDirective.prototype.ngOnDestroy = function () {
|
|
8591
8862
|
this.stateChanges.unsubscribe();
|
|
8592
8863
|
};
|
|
8593
|
-
OwlDateTimeTriggerDirective.prototype.handleClickOnHost = function (event) {
|
|
8594
|
-
if (this.dtPicker) {
|
|
8595
|
-
this.dtPicker.open();
|
|
8596
|
-
event.stopPropagation();
|
|
8597
|
-
}
|
|
8598
|
-
};
|
|
8599
8864
|
OwlDateTimeTriggerDirective.prototype.watchStateChanges = function () {
|
|
8600
8865
|
var _this = this;
|
|
8601
8866
|
this.stateChanges.unsubscribe();
|
|
@@ -8612,19 +8877,21 @@
|
|
|
8612
8877
|
return OwlDateTimeTriggerDirective;
|
|
8613
8878
|
}());
|
|
8614
8879
|
OwlDateTimeTriggerDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlDateTimeTriggerDirective, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
8615
|
-
OwlDateTimeTriggerDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: OwlDateTimeTriggerDirective, selector: "[
|
|
8880
|
+
OwlDateTimeTriggerDirective.ɵdir = i0__namespace.ɵɵ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__namespace });
|
|
8616
8881
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlDateTimeTriggerDirective, decorators: [{
|
|
8617
8882
|
type: i0.Directive,
|
|
8618
8883
|
args: [{
|
|
8619
|
-
selector: '[
|
|
8620
|
-
host: {
|
|
8621
|
-
'(click)': 'handleClickOnHost($event)',
|
|
8622
|
-
'[class.owl-dt-trigger-disabled]': 'owlDTTriggerDisabledClass'
|
|
8623
|
-
}
|
|
8884
|
+
selector: '[ofeOwlDateTimeTrigger]'
|
|
8624
8885
|
}]
|
|
8625
8886
|
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { dtPicker: [{
|
|
8626
8887
|
type: i0.Input,
|
|
8627
|
-
args: ['
|
|
8888
|
+
args: ['ofeOwlDateTimeTrigger']
|
|
8889
|
+
}], owlDTTriggerDisabledClass: [{
|
|
8890
|
+
type: i0.HostBinding,
|
|
8891
|
+
args: ['class.owl-dt-trigger-disabled']
|
|
8892
|
+
}], handleClickOnHost: [{
|
|
8893
|
+
type: i0.HostListener,
|
|
8894
|
+
args: ['click', ['$event']]
|
|
8628
8895
|
}], disabled: [{
|
|
8629
8896
|
type: i0.Input
|
|
8630
8897
|
}] } });
|
|
@@ -8668,22 +8935,22 @@
|
|
|
8668
8935
|
return NgxDatetimeComponent;
|
|
8669
8936
|
}());
|
|
8670
8937
|
NgxDatetimeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxDatetimeComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8671
|
-
NgxDatetimeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NgxDatetimeComponent, selector: "ngx-
|
|
8938
|
+
NgxDatetimeComponent.ɵcmp = i0__namespace.ɵɵ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: [
|
|
8672
8939
|
{
|
|
8673
|
-
provide:
|
|
8940
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
8674
8941
|
useExisting: i0.forwardRef(function () { return NgxDatetimeComponent; }),
|
|
8675
8942
|
multi: true
|
|
8676
8943
|
}
|
|
8677
|
-
], ngImport: i0__namespace, 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 [
|
|
8944
|
+
], ngImport: i0__namespace, 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__namespace.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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i19__namespace.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i19__namespace.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
8678
8945
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxDatetimeComponent, decorators: [{
|
|
8679
8946
|
type: i0.Component,
|
|
8680
8947
|
args: [{
|
|
8681
|
-
selector: 'ngx-
|
|
8948
|
+
selector: 'ofe-ngx-date-time-picker',
|
|
8682
8949
|
templateUrl: './ngx-datetime-picker.html',
|
|
8683
8950
|
styleUrls: ['./ngx-datetime-picker.css'],
|
|
8684
8951
|
providers: [
|
|
8685
8952
|
{
|
|
8686
|
-
provide:
|
|
8953
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
8687
8954
|
useExisting: i0.forwardRef(function () { return NgxDatetimeComponent; }),
|
|
8688
8955
|
multi: true
|
|
8689
8956
|
}
|
|
@@ -8757,7 +9024,7 @@
|
|
|
8757
9024
|
/**
|
|
8758
9025
|
* Emits event notifying other classes when a change in state occurs in the input.
|
|
8759
9026
|
*/
|
|
8760
|
-
this.
|
|
9027
|
+
this.numberChange = new i0.EventEmitter();
|
|
8761
9028
|
/**
|
|
8762
9029
|
* Sets the decrement label text
|
|
8763
9030
|
*/
|
|
@@ -8856,7 +9123,7 @@
|
|
|
8856
9123
|
var event = new NumberChangeEvent();
|
|
8857
9124
|
event.source = this;
|
|
8858
9125
|
event.value = this.value;
|
|
8859
|
-
this.
|
|
9126
|
+
this.numberChange.emit(event);
|
|
8860
9127
|
this.propagateChange(this.value);
|
|
8861
9128
|
};
|
|
8862
9129
|
NumberInputComponent.prototype.onNumberInputChange = function (event) {
|
|
@@ -8873,9 +9140,9 @@
|
|
|
8873
9140
|
*/
|
|
8874
9141
|
NumberInputComponent.numberCount = 0;
|
|
8875
9142
|
NumberInputComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberInputComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8876
|
-
NumberInputComponent.ɵcmp = i0__namespace.ɵɵ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: {
|
|
9143
|
+
NumberInputComponent.ɵcmp = i0__namespace.ɵɵ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: [
|
|
8877
9144
|
{
|
|
8878
|
-
provide:
|
|
9145
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
8879
9146
|
useExisting: i0.forwardRef(function () { return NumberInputComponent; }),
|
|
8880
9147
|
multi: true
|
|
8881
9148
|
}
|
|
@@ -8883,11 +9150,11 @@
|
|
|
8883
9150
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberInputComponent, decorators: [{
|
|
8884
9151
|
type: i0.Component,
|
|
8885
9152
|
args: [{
|
|
8886
|
-
selector: 'number-input',
|
|
9153
|
+
selector: 'ofe-number-input',
|
|
8887
9154
|
templateUrl: 'number-input.component.html',
|
|
8888
9155
|
providers: [
|
|
8889
9156
|
{
|
|
8890
|
-
provide:
|
|
9157
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
8891
9158
|
useExisting: i0.forwardRef(function () { return NumberInputComponent; }),
|
|
8892
9159
|
multi: true
|
|
8893
9160
|
}
|
|
@@ -8927,7 +9194,7 @@
|
|
|
8927
9194
|
type: i0.Input
|
|
8928
9195
|
}], warnText: [{
|
|
8929
9196
|
type: i0.Input
|
|
8930
|
-
}],
|
|
9197
|
+
}], numberChange: [{
|
|
8931
9198
|
type: i0.Output
|
|
8932
9199
|
}], decrementLabel: [{
|
|
8933
9200
|
type: i0.Input
|
|
@@ -8953,7 +9220,6 @@
|
|
|
8953
9220
|
return option;
|
|
8954
9221
|
});
|
|
8955
9222
|
};
|
|
8956
|
-
RadioButtonControlComponent.prototype.ngAfterViewInit = function () { };
|
|
8957
9223
|
RadioButtonControlComponent.prototype.writeValue = function (value) { };
|
|
8958
9224
|
RadioButtonControlComponent.prototype.registerOnChange = function (fn) {
|
|
8959
9225
|
this.onChange = fn;
|
|
@@ -8992,9 +9258,9 @@
|
|
|
8992
9258
|
return RadioButtonControlComponent;
|
|
8993
9259
|
}());
|
|
8994
9260
|
RadioButtonControlComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioButtonControlComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
8995
|
-
RadioButtonControlComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: RadioButtonControlComponent, selector: "radio", inputs: { id: "id", selected: "selected", options: "options", allowRadioUnselect: "allowRadioUnselect" }, providers: [
|
|
9261
|
+
RadioButtonControlComponent.ɵcmp = i0__namespace.ɵɵ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: [
|
|
8996
9262
|
{
|
|
8997
|
-
provide:
|
|
9263
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
8998
9264
|
useExisting: i0.forwardRef(function () { return RadioButtonControlComponent; }),
|
|
8999
9265
|
multi: true
|
|
9000
9266
|
}
|
|
@@ -9002,11 +9268,11 @@
|
|
|
9002
9268
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioButtonControlComponent, decorators: [{
|
|
9003
9269
|
type: i0.Component,
|
|
9004
9270
|
args: [{
|
|
9005
|
-
selector: 'radio',
|
|
9271
|
+
selector: 'ofe-radio-button',
|
|
9006
9272
|
templateUrl: './radio.component.html',
|
|
9007
9273
|
providers: [
|
|
9008
9274
|
{
|
|
9009
|
-
provide:
|
|
9275
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
9010
9276
|
useExisting: i0.forwardRef(function () { return RadioButtonControlComponent; }),
|
|
9011
9277
|
multi: true
|
|
9012
9278
|
}
|
|
@@ -9038,7 +9304,6 @@
|
|
|
9038
9304
|
return option;
|
|
9039
9305
|
});
|
|
9040
9306
|
};
|
|
9041
|
-
CheckboxControlComponent.prototype.ngAfterViewInit = function () { };
|
|
9042
9307
|
CheckboxControlComponent.prototype.writeValue = function (value) {
|
|
9043
9308
|
this.value = value;
|
|
9044
9309
|
};
|
|
@@ -9087,9 +9352,9 @@
|
|
|
9087
9352
|
return CheckboxControlComponent;
|
|
9088
9353
|
}());
|
|
9089
9354
|
CheckboxControlComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxControlComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9090
|
-
CheckboxControlComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CheckboxControlComponent, selector: "checkbox", inputs: { id: "id", options: "options", selected: "selected" }, providers: [
|
|
9355
|
+
CheckboxControlComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CheckboxControlComponent, selector: "ofe-checkbox", inputs: { id: "id", options: "options", selected: "selected" }, providers: [
|
|
9091
9356
|
{
|
|
9092
|
-
provide:
|
|
9357
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
9093
9358
|
useExisting: i0.forwardRef(function () { return CheckboxControlComponent; }),
|
|
9094
9359
|
multi: true
|
|
9095
9360
|
}
|
|
@@ -9097,11 +9362,11 @@
|
|
|
9097
9362
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxControlComponent, decorators: [{
|
|
9098
9363
|
type: i0.Component,
|
|
9099
9364
|
args: [{
|
|
9100
|
-
selector: 'checkbox',
|
|
9365
|
+
selector: 'ofe-checkbox',
|
|
9101
9366
|
templateUrl: './checkbox.component.html',
|
|
9102
9367
|
providers: [
|
|
9103
9368
|
{
|
|
9104
|
-
provide:
|
|
9369
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
9105
9370
|
useExisting: i0.forwardRef(function () { return CheckboxControlComponent; }),
|
|
9106
9371
|
multi: true
|
|
9107
9372
|
}
|
|
@@ -9124,7 +9389,6 @@
|
|
|
9124
9389
|
this.appointments = [];
|
|
9125
9390
|
this.today = '';
|
|
9126
9391
|
}
|
|
9127
|
-
AppointmentsOverviewComponent.prototype.ngOnInit = function () { };
|
|
9128
9392
|
AppointmentsOverviewComponent.prototype.ngOnChanges = function () {
|
|
9129
9393
|
var _this = this;
|
|
9130
9394
|
this.node.control.valueChanges.subscribe(function (appointmentDate) {
|
|
@@ -9151,196 +9415,87 @@
|
|
|
9151
9415
|
.startOf('week')
|
|
9152
9416
|
.add(1, 'day')
|
|
9153
9417
|
.format('YYYY-MM-DD');
|
|
9154
|
-
var endDate = moment__default["default"](appointmentDate)
|
|
9155
|
-
.endOf('week')
|
|
9156
|
-
.subtract(1, 'day')
|
|
9157
|
-
.format('YYYY-MM-DD');
|
|
9158
|
-
_this.today = moment__default["default"](appointmentDate).format('DD-MM-YYYY');
|
|
9159
|
-
// create 5 week days
|
|
9160
|
-
var scheduledAppointments_1 = [];
|
|
9161
|
-
var programTypes = [
|
|
9162
|
-
'781d85b0-1359-11df-a1f1-0026b9348838',
|
|
9163
|
-
'781d897a-1359-11df-a1f1-0026b9348838',
|
|
9164
|
-
'96047aaf-7ab3-45e9-be6a-b61810fe617d',
|
|
9165
|
-
'c19aec66-1a40-4588-9b03-b6be55a8dd1d',
|
|
9166
|
-
'f7793d42-11ac-4cfd-9b35-e0a21a7a7c31',
|
|
9167
|
-
'334c9e98-173f-4454-a8ce-f80b20b7fdf0',
|
|
9168
|
-
'96ba279b-b23b-4e78-aba9-dcbd46a96b7b',
|
|
9169
|
-
'781d8880-1359-11df-a1f1-0026b9348838'
|
|
9170
|
-
];
|
|
9171
|
-
var programTypeParams = programTypes.join();
|
|
9172
|
-
for (var i = 1; i <= 5; i++) {
|
|
9173
|
-
scheduledAppointments_1.push({
|
|
9174
|
-
date: moment__default["default"](appointmentDate)
|
|
9175
|
-
.startOf('week')
|
|
9176
|
-
.add(i, 'day')
|
|
9177
|
-
.format('DD-MM-YYYY'),
|
|
9178
|
-
count: 0
|
|
9179
|
-
});
|
|
9180
|
-
}
|
|
9181
|
-
dataSource
|
|
9182
|
-
.getMonthlySchedule({
|
|
9183
|
-
startDate: startDate,
|
|
9184
|
-
endDate: endDate,
|
|
9185
|
-
limit: 5,
|
|
9186
|
-
locationUuids: locationUuid,
|
|
9187
|
-
programType: programTypeParams
|
|
9188
|
-
})
|
|
9189
|
-
.subscribe(function (_c) {
|
|
9190
|
-
var results = _c.results;
|
|
9191
|
-
_this.appointmentsLoaded = true;
|
|
9192
|
-
_this.loadingAppointments = false;
|
|
9193
|
-
scheduledAppointments_1.map(function (appointment, index) {
|
|
9194
|
-
appointment.count =
|
|
9195
|
-
results[index] !== undefined
|
|
9196
|
-
? results[index].count.scheduled
|
|
9197
|
-
: 0;
|
|
9198
|
-
});
|
|
9199
|
-
_this.appointments = scheduledAppointments_1;
|
|
9200
|
-
}, function (error) {
|
|
9201
|
-
_this.loadingAppointments = false;
|
|
9202
|
-
_this.errorLoadingAppointments = true;
|
|
9203
|
-
_this.showAppointments = false;
|
|
9204
|
-
console.error(error);
|
|
9205
|
-
});
|
|
9206
|
-
}
|
|
9207
|
-
else {
|
|
9208
|
-
_this.showAppointments = false;
|
|
9209
|
-
_this.errorLoadingAppointments = true;
|
|
9210
|
-
}
|
|
9211
|
-
}
|
|
9212
|
-
}
|
|
9213
|
-
});
|
|
9214
|
-
};
|
|
9215
|
-
AppointmentsOverviewComponent.prototype.resetProperties = function () {
|
|
9216
|
-
this.loadingAppointments = false;
|
|
9217
|
-
this.appointmentsLoaded = false;
|
|
9218
|
-
this.errorLoadingAppointments = false;
|
|
9219
|
-
this.showAppointments = false;
|
|
9220
|
-
this.appointments = [];
|
|
9221
|
-
this.today = '';
|
|
9222
|
-
};
|
|
9223
|
-
return AppointmentsOverviewComponent;
|
|
9224
|
-
}());
|
|
9225
|
-
AppointmentsOverviewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppointmentsOverviewComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9226
|
-
AppointmentsOverviewComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppointmentsOverviewComponent, selector: "appointments-overview", inputs: { node: "node" }, usesOnChanges: true, ngImport: i0__namespace, 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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
9227
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppointmentsOverviewComponent, decorators: [{
|
|
9228
|
-
type: i0.Component,
|
|
9229
|
-
args: [{
|
|
9230
|
-
selector: 'appointments-overview',
|
|
9231
|
-
templateUrl: './appointments-overview.component.html',
|
|
9232
|
-
styleUrls: ['./appointments-overview.component.css']
|
|
9233
|
-
}]
|
|
9234
|
-
}], ctorParameters: function () { return []; }, propDecorators: { node: [{
|
|
9235
|
-
type: i0.Input
|
|
9236
|
-
}] } });
|
|
9237
|
-
|
|
9238
|
-
var HistoricalFieldHelperService = /** @class */ (function () {
|
|
9239
|
-
function HistoricalFieldHelperService() {
|
|
9240
|
-
}
|
|
9241
|
-
HistoricalFieldHelperService.prototype.getDisplayTextFromOptions = function (question, valueProperty, displayProperty) {
|
|
9242
|
-
var displayText = '';
|
|
9243
|
-
var historicalValue = question.historicalDataValue;
|
|
9244
|
-
if (___namespace.isArray(historicalValue.value)) {
|
|
9245
|
-
var valueConverted_1 = 0;
|
|
9246
|
-
___namespace.each(historicalValue.value, function (val) {
|
|
9247
|
-
___namespace.each(question.options, function (option) {
|
|
9248
|
-
if (option[valueProperty] === val) {
|
|
9249
|
-
if (valueConverted_1 === 0) {
|
|
9250
|
-
displayText = displayText + option[displayProperty];
|
|
9251
|
-
}
|
|
9252
|
-
else {
|
|
9253
|
-
displayText = displayText + ', ' + option[displayProperty];
|
|
9254
|
-
}
|
|
9255
|
-
valueConverted_1++;
|
|
9256
|
-
}
|
|
9257
|
-
});
|
|
9258
|
-
});
|
|
9259
|
-
}
|
|
9260
|
-
else {
|
|
9261
|
-
___namespace.each(question.options, function (option) {
|
|
9262
|
-
if (option[valueProperty] === historicalValue.value) {
|
|
9263
|
-
displayText = option[displayProperty];
|
|
9264
|
-
}
|
|
9265
|
-
});
|
|
9266
|
-
}
|
|
9267
|
-
return displayText;
|
|
9268
|
-
};
|
|
9269
|
-
return HistoricalFieldHelperService;
|
|
9270
|
-
}());
|
|
9271
|
-
HistoricalFieldHelperService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HistoricalFieldHelperService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
9272
|
-
HistoricalFieldHelperService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HistoricalFieldHelperService });
|
|
9273
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HistoricalFieldHelperService, decorators: [{
|
|
9274
|
-
type: i0.Injectable
|
|
9275
|
-
}] });
|
|
9276
|
-
|
|
9277
|
-
var HistoricalValueDirective = /** @class */ (function () {
|
|
9278
|
-
function HistoricalValueDirective(historicalFieldHelper) {
|
|
9279
|
-
this.historicalFieldHelper = historicalFieldHelper;
|
|
9280
|
-
this._nodeChange = new i0.EventEmitter();
|
|
9281
|
-
}
|
|
9282
|
-
HistoricalValueDirective.prototype.setValue = function (e) {
|
|
9283
|
-
if (e.target.name === 'historyValue') {
|
|
9284
|
-
if (this._node &&
|
|
9285
|
-
(!this.compareString(this._node.question.renderingType, 'page') ||
|
|
9286
|
-
!this.compareString(this._node.question.renderingType, 'section'))) {
|
|
9287
|
-
this._node.control.setValue(this._node.question.historicalDataValue.value);
|
|
9288
|
-
this._node.question['historicalValue'] = this._node.question.historicalDataValue;
|
|
9289
|
-
e.stopPropagation();
|
|
9290
|
-
this._nodeChange.emit(this._node);
|
|
9291
|
-
}
|
|
9292
|
-
}
|
|
9293
|
-
};
|
|
9294
|
-
HistoricalValueDirective.prototype.compareString = function (a, b) {
|
|
9295
|
-
if (a === b) {
|
|
9296
|
-
return true;
|
|
9297
|
-
}
|
|
9298
|
-
else {
|
|
9299
|
-
return false;
|
|
9300
|
-
}
|
|
9301
|
-
};
|
|
9302
|
-
Object.defineProperty(HistoricalValueDirective.prototype, "node", {
|
|
9303
|
-
set: function (node) {
|
|
9304
|
-
if (node) {
|
|
9305
|
-
this._node = node;
|
|
9306
|
-
if (this._node.question.enableHistoricalValue &&
|
|
9307
|
-
!___namespace.isUndefined(this._node.question.historicalDataValue)) {
|
|
9308
|
-
var display = { text: '', _date: '' };
|
|
9309
|
-
if (this._node.question.renderingType === 'select' ||
|
|
9310
|
-
this._node.question.renderingType === 'multi-select' ||
|
|
9311
|
-
this._node.question.renderingType === 'single-select') {
|
|
9312
|
-
display.text = this.historicalFieldHelper.getDisplayTextFromOptions(this._node.question, 'value', 'label');
|
|
9313
|
-
display._date = this._node.question.historicalDataValue.valueDate;
|
|
9314
|
-
this._node.question['historicalDisplay'] = display;
|
|
9418
|
+
var endDate = moment__default["default"](appointmentDate)
|
|
9419
|
+
.endOf('week')
|
|
9420
|
+
.subtract(1, 'day')
|
|
9421
|
+
.format('YYYY-MM-DD');
|
|
9422
|
+
_this.today = moment__default["default"](appointmentDate).format('DD-MM-YYYY');
|
|
9423
|
+
// create 5 week days
|
|
9424
|
+
var scheduledAppointments_1 = [];
|
|
9425
|
+
var programTypes = [
|
|
9426
|
+
'781d85b0-1359-11df-a1f1-0026b9348838',
|
|
9427
|
+
'781d897a-1359-11df-a1f1-0026b9348838',
|
|
9428
|
+
'96047aaf-7ab3-45e9-be6a-b61810fe617d',
|
|
9429
|
+
'c19aec66-1a40-4588-9b03-b6be55a8dd1d',
|
|
9430
|
+
'f7793d42-11ac-4cfd-9b35-e0a21a7a7c31',
|
|
9431
|
+
'334c9e98-173f-4454-a8ce-f80b20b7fdf0',
|
|
9432
|
+
'96ba279b-b23b-4e78-aba9-dcbd46a96b7b',
|
|
9433
|
+
'781d8880-1359-11df-a1f1-0026b9348838'
|
|
9434
|
+
];
|
|
9435
|
+
var programTypeParams = programTypes.join();
|
|
9436
|
+
for (var i = 1; i <= 5; i++) {
|
|
9437
|
+
scheduledAppointments_1.push({
|
|
9438
|
+
date: moment__default["default"](appointmentDate)
|
|
9439
|
+
.startOf('week')
|
|
9440
|
+
.add(i, 'day')
|
|
9441
|
+
.format('DD-MM-YYYY'),
|
|
9442
|
+
count: 0
|
|
9443
|
+
});
|
|
9444
|
+
}
|
|
9445
|
+
dataSource
|
|
9446
|
+
.getMonthlySchedule({
|
|
9447
|
+
startDate: startDate,
|
|
9448
|
+
endDate: endDate,
|
|
9449
|
+
limit: 5,
|
|
9450
|
+
locationUuids: locationUuid,
|
|
9451
|
+
programType: programTypeParams
|
|
9452
|
+
})
|
|
9453
|
+
.subscribe(function (_c) {
|
|
9454
|
+
var results = _c.results;
|
|
9455
|
+
_this.appointmentsLoaded = true;
|
|
9456
|
+
_this.loadingAppointments = false;
|
|
9457
|
+
scheduledAppointments_1.map(function (appointment, index) {
|
|
9458
|
+
appointment.count =
|
|
9459
|
+
results[index] !== undefined
|
|
9460
|
+
? results[index].count.scheduled
|
|
9461
|
+
: 0;
|
|
9462
|
+
});
|
|
9463
|
+
_this.appointments = scheduledAppointments_1;
|
|
9464
|
+
}, function (error) {
|
|
9465
|
+
_this.loadingAppointments = false;
|
|
9466
|
+
_this.errorLoadingAppointments = true;
|
|
9467
|
+
_this.showAppointments = false;
|
|
9468
|
+
console.error(error);
|
|
9469
|
+
});
|
|
9315
9470
|
}
|
|
9316
|
-
else
|
|
9317
|
-
|
|
9318
|
-
|
|
9319
|
-
this._node.question['historicalDisplay'] = display;
|
|
9471
|
+
else {
|
|
9472
|
+
_this.showAppointments = false;
|
|
9473
|
+
_this.errorLoadingAppointments = true;
|
|
9320
9474
|
}
|
|
9321
9475
|
}
|
|
9322
9476
|
}
|
|
9323
|
-
}
|
|
9324
|
-
|
|
9325
|
-
|
|
9326
|
-
|
|
9327
|
-
|
|
9477
|
+
});
|
|
9478
|
+
};
|
|
9479
|
+
AppointmentsOverviewComponent.prototype.resetProperties = function () {
|
|
9480
|
+
this.loadingAppointments = false;
|
|
9481
|
+
this.appointmentsLoaded = false;
|
|
9482
|
+
this.errorLoadingAppointments = false;
|
|
9483
|
+
this.showAppointments = false;
|
|
9484
|
+
this.appointments = [];
|
|
9485
|
+
this.today = '';
|
|
9486
|
+
};
|
|
9487
|
+
return AppointmentsOverviewComponent;
|
|
9328
9488
|
}());
|
|
9329
|
-
|
|
9330
|
-
|
|
9331
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type:
|
|
9332
|
-
type: i0.
|
|
9489
|
+
AppointmentsOverviewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppointmentsOverviewComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9490
|
+
AppointmentsOverviewComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AppointmentsOverviewComponent, selector: "ofe-appointments-overview", inputs: { node: "node" }, usesOnChanges: true, ngImport: i0__namespace, 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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
9491
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AppointmentsOverviewComponent, decorators: [{
|
|
9492
|
+
type: i0.Component,
|
|
9333
9493
|
args: [{
|
|
9334
|
-
selector:
|
|
9494
|
+
selector: 'ofe-appointments-overview',
|
|
9495
|
+
templateUrl: './appointments-overview.component.html',
|
|
9496
|
+
styleUrls: ['./appointments-overview.component.css']
|
|
9335
9497
|
}]
|
|
9336
|
-
}], ctorParameters: function () { return [
|
|
9337
|
-
type: i0.Input
|
|
9338
|
-
}], _nodeChange: [{
|
|
9339
|
-
type: i0.Output
|
|
9340
|
-
}], setValue: [{
|
|
9341
|
-
type: i0.HostListener,
|
|
9342
|
-
args: ['click', ['$event']]
|
|
9343
|
-
}], node: [{
|
|
9498
|
+
}], ctorParameters: function () { return []; }, propDecorators: { node: [{
|
|
9344
9499
|
type: i0.Input
|
|
9345
9500
|
}] } });
|
|
9346
9501
|
|
|
@@ -9358,6 +9513,7 @@
|
|
|
9358
9513
|
function CollapseDirective(_el, _renderer, _builder) {
|
|
9359
9514
|
this._el = _el;
|
|
9360
9515
|
this._renderer = _renderer;
|
|
9516
|
+
// @HostBinding('class.collapse')
|
|
9361
9517
|
/** This event fires as soon as content collapses */
|
|
9362
9518
|
this.collapsed = new i0.EventEmitter();
|
|
9363
9519
|
/** This event fires when collapsing is started */
|
|
@@ -9491,16 +9647,12 @@
|
|
|
9491
9647
|
return CollapseDirective;
|
|
9492
9648
|
}());
|
|
9493
9649
|
CollapseDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CollapseDirective, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.Renderer2 }, { token: i1__namespace$6.AnimationBuilder }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
9494
|
-
CollapseDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: CollapseDirective, selector: "[
|
|
9650
|
+
CollapseDirective.ɵdir = i0__namespace.ɵɵ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__namespace });
|
|
9495
9651
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CollapseDirective, decorators: [{
|
|
9496
9652
|
type: i0.Directive,
|
|
9497
9653
|
args: [{
|
|
9498
|
-
selector: '[
|
|
9499
|
-
exportAs: 'bs-collapse'
|
|
9500
|
-
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
|
|
9501
|
-
host: {
|
|
9502
|
-
'[class.collapse]': 'true'
|
|
9503
|
-
}
|
|
9654
|
+
selector: '[ofeCollapse]',
|
|
9655
|
+
exportAs: 'bs-collapse'
|
|
9504
9656
|
}]
|
|
9505
9657
|
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }, { type: i1__namespace$6.AnimationBuilder }]; }, propDecorators: { collapsed: [{
|
|
9506
9658
|
type: i0.Output
|
|
@@ -9536,40 +9688,19 @@
|
|
|
9536
9688
|
type: i0.Input
|
|
9537
9689
|
}] } });
|
|
9538
9690
|
|
|
9539
|
-
/* eslint-disable @angular-eslint/component-class-suffix, @angular-eslint/directive-class-suffix */
|
|
9540
|
-
var Option$1 = /** @class */ (function () {
|
|
9541
|
-
function Option() {
|
|
9542
|
-
this.inputClass = 'cds--select-option';
|
|
9543
|
-
}
|
|
9544
|
-
return Option;
|
|
9545
|
-
}());
|
|
9546
|
-
Option$1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Option$1, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
9547
|
-
Option$1.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: Option$1, selector: "option", host: { properties: { "class": "this.inputClass" } }, ngImport: i0__namespace });
|
|
9548
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Option$1, decorators: [{
|
|
9549
|
-
type: i0.Directive,
|
|
9550
|
-
args: [{
|
|
9551
|
-
// eslint-disable-next-line
|
|
9552
|
-
selector: 'option'
|
|
9553
|
-
}]
|
|
9554
|
-
}], propDecorators: { inputClass: [{
|
|
9555
|
-
type: i0.HostBinding,
|
|
9556
|
-
args: ['class']
|
|
9557
|
-
}] } });
|
|
9558
|
-
|
|
9559
|
-
/* eslint-disable @angular-eslint/component-class-suffix, @angular-eslint/directive-class-suffix */
|
|
9560
9691
|
/**
|
|
9561
9692
|
* A directive for applying styling to a textarea element.
|
|
9562
9693
|
*
|
|
9563
9694
|
* Example:
|
|
9564
9695
|
*
|
|
9565
9696
|
* ```html
|
|
9566
|
-
* <textarea
|
|
9697
|
+
* <textarea ofeTextAreaInput></textarea>
|
|
9567
9698
|
* ```
|
|
9568
9699
|
*
|
|
9569
9700
|
* See the [vanilla carbon docs](http://www.carbondesignsystem.com/components/text-input/code) for more detail.
|
|
9570
9701
|
*/
|
|
9571
|
-
var
|
|
9572
|
-
function
|
|
9702
|
+
var TextAreaDirective = /** @class */ (function () {
|
|
9703
|
+
function TextAreaDirective() {
|
|
9573
9704
|
/**
|
|
9574
9705
|
* `light` or `dark` input theme
|
|
9575
9706
|
*/
|
|
@@ -9578,21 +9709,21 @@
|
|
|
9578
9709
|
this.invalid = false;
|
|
9579
9710
|
this.skeleton = false;
|
|
9580
9711
|
}
|
|
9581
|
-
Object.defineProperty(
|
|
9712
|
+
Object.defineProperty(TextAreaDirective.prototype, "isLightTheme", {
|
|
9582
9713
|
get: function () {
|
|
9583
9714
|
return this.theme === 'light';
|
|
9584
9715
|
},
|
|
9585
9716
|
enumerable: false,
|
|
9586
9717
|
configurable: true
|
|
9587
9718
|
});
|
|
9588
|
-
return
|
|
9719
|
+
return TextAreaDirective;
|
|
9589
9720
|
}());
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type:
|
|
9721
|
+
TextAreaDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TextAreaDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
9722
|
+
TextAreaDirective.ɵdir = i0__namespace.ɵɵ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__namespace });
|
|
9723
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TextAreaDirective, decorators: [{
|
|
9593
9724
|
type: i0.Directive,
|
|
9594
9725
|
args: [{
|
|
9595
|
-
selector: '[
|
|
9726
|
+
selector: '[ofeTextAreaInput]'
|
|
9596
9727
|
}]
|
|
9597
9728
|
}], propDecorators: { theme: [{
|
|
9598
9729
|
type: i0.Input
|
|
@@ -9614,20 +9745,19 @@
|
|
|
9614
9745
|
args: ['class.cds--text-area--light']
|
|
9615
9746
|
}] } });
|
|
9616
9747
|
|
|
9617
|
-
/* eslint-disable @angular-eslint/component-class-suffix, @angular-eslint/directive-class-suffix */
|
|
9618
9748
|
/**
|
|
9619
9749
|
* A directive for applying styling to an input element.
|
|
9620
9750
|
*
|
|
9621
9751
|
* Example:
|
|
9622
9752
|
*
|
|
9623
9753
|
* ```html
|
|
9624
|
-
* <input
|
|
9754
|
+
* <input ofeTextInput/>
|
|
9625
9755
|
* ```
|
|
9626
9756
|
*
|
|
9627
9757
|
* See the [vanilla carbon docs](http://www.carbondesignsystem.com/components/text-input/code) for more detail.
|
|
9628
9758
|
*/
|
|
9629
|
-
var
|
|
9630
|
-
function
|
|
9759
|
+
var TextInputDirective = /** @class */ (function () {
|
|
9760
|
+
function TextInputDirective() {
|
|
9631
9761
|
/**
|
|
9632
9762
|
* `light` or `dark` input theme
|
|
9633
9763
|
*/
|
|
@@ -9641,35 +9771,35 @@
|
|
|
9641
9771
|
this.warn = false;
|
|
9642
9772
|
this.skeleton = false;
|
|
9643
9773
|
}
|
|
9644
|
-
Object.defineProperty(
|
|
9774
|
+
Object.defineProperty(TextInputDirective.prototype, "isSizeXl", {
|
|
9645
9775
|
get: function () {
|
|
9646
9776
|
return this.size === 'xl';
|
|
9647
9777
|
},
|
|
9648
9778
|
enumerable: false,
|
|
9649
9779
|
configurable: true
|
|
9650
9780
|
});
|
|
9651
|
-
Object.defineProperty(
|
|
9781
|
+
Object.defineProperty(TextInputDirective.prototype, "isSizeSm", {
|
|
9652
9782
|
get: function () {
|
|
9653
9783
|
return this.size === 'sm';
|
|
9654
9784
|
},
|
|
9655
9785
|
enumerable: false,
|
|
9656
9786
|
configurable: true
|
|
9657
9787
|
});
|
|
9658
|
-
Object.defineProperty(
|
|
9788
|
+
Object.defineProperty(TextInputDirective.prototype, "isLightTheme", {
|
|
9659
9789
|
get: function () {
|
|
9660
9790
|
return this.theme === 'light';
|
|
9661
9791
|
},
|
|
9662
9792
|
enumerable: false,
|
|
9663
9793
|
configurable: true
|
|
9664
9794
|
});
|
|
9665
|
-
return
|
|
9795
|
+
return TextInputDirective;
|
|
9666
9796
|
}());
|
|
9667
|
-
|
|
9668
|
-
|
|
9669
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type:
|
|
9797
|
+
TextInputDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TextInputDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
9798
|
+
TextInputDirective.ɵdir = i0__namespace.ɵɵ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__namespace });
|
|
9799
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TextInputDirective, decorators: [{
|
|
9670
9800
|
type: i0.Directive,
|
|
9671
9801
|
args: [{
|
|
9672
|
-
selector: '[
|
|
9802
|
+
selector: '[ofeTextInput]'
|
|
9673
9803
|
}]
|
|
9674
9804
|
}], propDecorators: { theme: [{
|
|
9675
9805
|
type: i0.Input
|
|
@@ -9704,6 +9834,115 @@
|
|
|
9704
9834
|
args: ['class.cds--text-input--light']
|
|
9705
9835
|
}] } });
|
|
9706
9836
|
|
|
9837
|
+
var HistoricalFieldHelperService = /** @class */ (function () {
|
|
9838
|
+
function HistoricalFieldHelperService() {
|
|
9839
|
+
}
|
|
9840
|
+
HistoricalFieldHelperService.prototype.getDisplayTextFromOptions = function (question, valueProperty, displayProperty) {
|
|
9841
|
+
var displayText = '';
|
|
9842
|
+
var historicalValue = question.historicalDataValue;
|
|
9843
|
+
if (___namespace.isArray(historicalValue.value)) {
|
|
9844
|
+
var valueConverted_1 = 0;
|
|
9845
|
+
___namespace.each(historicalValue.value, function (val) {
|
|
9846
|
+
___namespace.each(question.options, function (option) {
|
|
9847
|
+
if (option[valueProperty] === val) {
|
|
9848
|
+
if (valueConverted_1 === 0) {
|
|
9849
|
+
displayText = displayText + option[displayProperty];
|
|
9850
|
+
}
|
|
9851
|
+
else {
|
|
9852
|
+
displayText = displayText + ', ' + option[displayProperty];
|
|
9853
|
+
}
|
|
9854
|
+
valueConverted_1++;
|
|
9855
|
+
}
|
|
9856
|
+
});
|
|
9857
|
+
});
|
|
9858
|
+
}
|
|
9859
|
+
else {
|
|
9860
|
+
___namespace.each(question.options, function (option) {
|
|
9861
|
+
if (option[valueProperty] === historicalValue.value) {
|
|
9862
|
+
displayText = option[displayProperty];
|
|
9863
|
+
}
|
|
9864
|
+
});
|
|
9865
|
+
}
|
|
9866
|
+
return displayText;
|
|
9867
|
+
};
|
|
9868
|
+
return HistoricalFieldHelperService;
|
|
9869
|
+
}());
|
|
9870
|
+
HistoricalFieldHelperService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HistoricalFieldHelperService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
9871
|
+
HistoricalFieldHelperService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HistoricalFieldHelperService });
|
|
9872
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HistoricalFieldHelperService, decorators: [{
|
|
9873
|
+
type: i0.Injectable
|
|
9874
|
+
}] });
|
|
9875
|
+
|
|
9876
|
+
var HistoricalValueDirective = /** @class */ (function () {
|
|
9877
|
+
function HistoricalValueDirective(historicalFieldHelper) {
|
|
9878
|
+
this.historicalFieldHelper = historicalFieldHelper;
|
|
9879
|
+
this._nodeChange = new i0.EventEmitter();
|
|
9880
|
+
}
|
|
9881
|
+
HistoricalValueDirective.prototype.setValue = function (e) {
|
|
9882
|
+
if (e.target.name === 'historyValue') {
|
|
9883
|
+
if (this._node &&
|
|
9884
|
+
(!this.compareString(this._node.question.renderingType, 'page') ||
|
|
9885
|
+
!this.compareString(this._node.question.renderingType, 'section'))) {
|
|
9886
|
+
this._node.control.setValue(this._node.question.historicalDataValue.value);
|
|
9887
|
+
this._node.question['historicalValue'] = this._node.question.historicalDataValue;
|
|
9888
|
+
e.stopPropagation();
|
|
9889
|
+
this._nodeChange.emit(this._node);
|
|
9890
|
+
}
|
|
9891
|
+
}
|
|
9892
|
+
};
|
|
9893
|
+
HistoricalValueDirective.prototype.compareString = function (a, b) {
|
|
9894
|
+
if (a === b) {
|
|
9895
|
+
return true;
|
|
9896
|
+
}
|
|
9897
|
+
else {
|
|
9898
|
+
return false;
|
|
9899
|
+
}
|
|
9900
|
+
};
|
|
9901
|
+
Object.defineProperty(HistoricalValueDirective.prototype, "node", {
|
|
9902
|
+
set: function (node) {
|
|
9903
|
+
if (node) {
|
|
9904
|
+
this._node = node;
|
|
9905
|
+
if (this._node.question.enableHistoricalValue &&
|
|
9906
|
+
!___namespace.isUndefined(this._node.question.historicalDataValue)) {
|
|
9907
|
+
var display = { text: '', _date: '' };
|
|
9908
|
+
if (this._node.question.renderingType === 'select' ||
|
|
9909
|
+
this._node.question.renderingType === 'multi-select' ||
|
|
9910
|
+
this._node.question.renderingType === 'single-select') {
|
|
9911
|
+
display.text = this.historicalFieldHelper.getDisplayTextFromOptions(this._node.question, 'value', 'label');
|
|
9912
|
+
display._date = this._node.question.historicalDataValue.valueDate;
|
|
9913
|
+
this._node.question['historicalDisplay'] = display;
|
|
9914
|
+
}
|
|
9915
|
+
else if (!___namespace.isUndefined(this._node.question.historicalDataValue)) {
|
|
9916
|
+
display.text = this._node.question.historicalDataValue.value;
|
|
9917
|
+
display._date = this._node.question.historicalDataValue.valueDate;
|
|
9918
|
+
this._node.question['historicalDisplay'] = display;
|
|
9919
|
+
}
|
|
9920
|
+
}
|
|
9921
|
+
}
|
|
9922
|
+
},
|
|
9923
|
+
enumerable: false,
|
|
9924
|
+
configurable: true
|
|
9925
|
+
});
|
|
9926
|
+
return HistoricalValueDirective;
|
|
9927
|
+
}());
|
|
9928
|
+
HistoricalValueDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HistoricalValueDirective, deps: [{ token: HistoricalFieldHelperService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
9929
|
+
HistoricalValueDirective.ɵdir = i0__namespace.ɵɵ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__namespace });
|
|
9930
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HistoricalValueDirective, decorators: [{
|
|
9931
|
+
type: i0.Directive,
|
|
9932
|
+
args: [{
|
|
9933
|
+
selector: "[ofeNode]"
|
|
9934
|
+
}]
|
|
9935
|
+
}], ctorParameters: function () { return [{ type: HistoricalFieldHelperService }]; }, propDecorators: { _node: [{
|
|
9936
|
+
type: i0.Input
|
|
9937
|
+
}], _nodeChange: [{
|
|
9938
|
+
type: i0.Output
|
|
9939
|
+
}], setValue: [{
|
|
9940
|
+
type: i0.HostListener,
|
|
9941
|
+
args: ['click', ['$event']]
|
|
9942
|
+
}], node: [{
|
|
9943
|
+
type: i0.Input
|
|
9944
|
+
}] } });
|
|
9945
|
+
|
|
9707
9946
|
var FormRendererComponent = /** @class */ (function () {
|
|
9708
9947
|
function FormRendererComponent(validationFactory, dataSources, formErrorsService, document) {
|
|
9709
9948
|
this.validationFactory = validationFactory;
|
|
@@ -9913,11 +10152,11 @@
|
|
|
9913
10152
|
return FormRendererComponent;
|
|
9914
10153
|
}());
|
|
9915
10154
|
FormRendererComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormRendererComponent, deps: [{ token: ValidationFactory }, { token: DataSources }, { token: FormErrorsService }, { token: i1.DOCUMENT }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9916
|
-
FormRendererComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace$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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: HistoricalValueDirective, selector: "[node]", inputs: ["_node", "node"], outputs: ["_nodeChange"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: CollapseDirective, selector: "[collapse]", inputs: ["display", "isAnimated", "collapse"], outputs: ["collapsed", "collapses", "expanded", "expands"], exportAs: ["bs-collapse"] }, { type: i20__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i20__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i20__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i20__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i20__namespace.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i20__namespace.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: Option$1, selector: "option" }, { type: i20__namespace.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__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: TextInput, selector: "[ibmText]", inputs: ["theme", "size", "invalid", "warn", "skeleton"] }], pipes: { "date": i1__namespace.DatePipe, "timeAgo": TimeAgoPipe } });
|
|
10155
|
+
FormRendererComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace$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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: CollapseDirective, selector: "[ofeCollapse]", inputs: ["display", "isAnimated", "collapse"], outputs: ["collapsed", "collapses", "expanded", "expands"], exportAs: ["bs-collapse"] }, { type: i19__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i19__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i19__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i19__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i19__namespace.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i19__namespace.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i19__namespace.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__namespace.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__namespace.DatePipe, "timeAgo": TimeAgoPipe } });
|
|
9917
10156
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormRendererComponent, decorators: [{
|
|
9918
10157
|
type: i0.Component,
|
|
9919
10158
|
args: [{
|
|
9920
|
-
selector: 'form-renderer',
|
|
10159
|
+
selector: 'ofe-form-renderer',
|
|
9921
10160
|
templateUrl: 'form-renderer.component.html',
|
|
9922
10161
|
styleUrls: ['../../style/app.css', './form-renderer.component.css']
|
|
9923
10162
|
}]
|
|
@@ -9945,7 +10184,6 @@
|
|
|
9945
10184
|
this.validationFactory = validationFactory;
|
|
9946
10185
|
this.formErrorsService = formErrorsService;
|
|
9947
10186
|
}
|
|
9948
|
-
ErrorRendererComponent.prototype.ngOnInit = function () { };
|
|
9949
10187
|
ErrorRendererComponent.prototype.showErrors = function () {
|
|
9950
10188
|
return !this.form.valid && this.form.showErrors;
|
|
9951
10189
|
};
|
|
@@ -9982,11 +10220,11 @@
|
|
|
9982
10220
|
return ErrorRendererComponent;
|
|
9983
10221
|
}());
|
|
9984
10222
|
ErrorRendererComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ErrorRendererComponent, deps: [{ token: ValidationFactory }, { token: FormErrorsService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9985
|
-
ErrorRendererComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ErrorRendererComponent, selector: "error-renderer", inputs: { form: "form" }, ngImport: i0__namespace, 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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
10223
|
+
ErrorRendererComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ErrorRendererComponent, selector: "ofe-error-renderer", inputs: { form: "form" }, ngImport: i0__namespace, 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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
9986
10224
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ErrorRendererComponent, decorators: [{
|
|
9987
10225
|
type: i0.Component,
|
|
9988
10226
|
args: [{
|
|
9989
|
-
selector: 'error-renderer',
|
|
10227
|
+
selector: 'ofe-error-renderer',
|
|
9990
10228
|
templateUrl: 'error-renderer.component.html',
|
|
9991
10229
|
styleUrls: ['./error-renderer.component.css']
|
|
9992
10230
|
}]
|
|
@@ -10000,12 +10238,12 @@
|
|
|
10000
10238
|
return NumberInputModule;
|
|
10001
10239
|
}());
|
|
10002
10240
|
NumberInputModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberInputModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
10003
|
-
NumberInputModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberInputModule, declarations: [NumberInputComponent], imports: [i1.CommonModule,
|
|
10004
|
-
NumberInputModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberInputModule, providers: [], imports: [[i1.CommonModule,
|
|
10241
|
+
NumberInputModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberInputModule, declarations: [NumberInputComponent], imports: [i1.CommonModule, i19.FormsModule], exports: [NumberInputComponent] });
|
|
10242
|
+
NumberInputModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberInputModule, providers: [], imports: [[i1.CommonModule, i19.FormsModule]] });
|
|
10005
10243
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumberInputModule, decorators: [{
|
|
10006
10244
|
type: i0.NgModule,
|
|
10007
10245
|
args: [{
|
|
10008
|
-
imports: [i1.CommonModule,
|
|
10246
|
+
imports: [i1.CommonModule, i19.FormsModule],
|
|
10009
10247
|
exports: [NumberInputComponent],
|
|
10010
10248
|
declarations: [NumberInputComponent],
|
|
10011
10249
|
providers: []
|
|
@@ -10037,13 +10275,13 @@
|
|
|
10037
10275
|
}());
|
|
10038
10276
|
RemoteFileUploadModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RemoteFileUploadModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
10039
10277
|
RemoteFileUploadModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RemoteFileUploadModule, declarations: [FileUploadComponent], imports: [i1.CommonModule,
|
|
10040
|
-
|
|
10278
|
+
i19.FormsModule,
|
|
10041
10279
|
SharedModule,
|
|
10042
10280
|
ngxWebcam.WebcamModule,
|
|
10043
10281
|
i1$2.NgxFileUploaderModule], exports: [FileUploadComponent] });
|
|
10044
10282
|
RemoteFileUploadModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RemoteFileUploadModule, providers: [], imports: [[
|
|
10045
10283
|
i1.CommonModule,
|
|
10046
|
-
|
|
10284
|
+
i19.FormsModule,
|
|
10047
10285
|
SharedModule,
|
|
10048
10286
|
ngxWebcam.WebcamModule,
|
|
10049
10287
|
i1$2.NgxFileUploaderModule
|
|
@@ -10053,7 +10291,7 @@
|
|
|
10053
10291
|
args: [{
|
|
10054
10292
|
imports: [
|
|
10055
10293
|
i1.CommonModule,
|
|
10056
|
-
|
|
10294
|
+
i19.FormsModule,
|
|
10057
10295
|
SharedModule,
|
|
10058
10296
|
ngxWebcam.WebcamModule,
|
|
10059
10297
|
i1$2.NgxFileUploaderModule
|
|
@@ -10072,26 +10310,25 @@
|
|
|
10072
10310
|
// webpack2_
|
|
10073
10311
|
var ModalComponent = /** @class */ (function () {
|
|
10074
10312
|
function ModalComponent() {
|
|
10075
|
-
this.
|
|
10313
|
+
this.overlayClick = new i0.EventEmitter();
|
|
10076
10314
|
}
|
|
10077
|
-
ModalComponent.prototype.ngOnInit = function () { };
|
|
10078
10315
|
ModalComponent.prototype.closeModal = function () {
|
|
10079
|
-
this.
|
|
10316
|
+
this.overlayClick.emit(false);
|
|
10080
10317
|
};
|
|
10081
10318
|
return ModalComponent;
|
|
10082
10319
|
}());
|
|
10083
10320
|
ModalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ModalComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
10084
|
-
ModalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ModalComponent, selector: "picker-modal", outputs: {
|
|
10321
|
+
ModalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ModalComponent, selector: "ofe-picker-modal", outputs: { overlayClick: "overlayClick" }, ngImport: i0__namespace, 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__namespace.ChangeDetectionStrategy.OnPush });
|
|
10085
10322
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ModalComponent, decorators: [{
|
|
10086
10323
|
type: i0.Component,
|
|
10087
10324
|
args: [{
|
|
10088
|
-
selector: 'picker-modal',
|
|
10325
|
+
selector: 'ofe-picker-modal',
|
|
10089
10326
|
templateUrl: './modal.component.html',
|
|
10090
10327
|
styleUrls: ['./modal.component.css'],
|
|
10091
10328
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
10092
10329
|
animations: []
|
|
10093
10330
|
}]
|
|
10094
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
10331
|
+
}], ctorParameters: function () { return []; }, propDecorators: { overlayClick: [{
|
|
10095
10332
|
type: i0.Output
|
|
10096
10333
|
}] } });
|
|
10097
10334
|
|
|
@@ -10124,8 +10361,8 @@
|
|
|
10124
10361
|
this.locale = 'en';
|
|
10125
10362
|
this.viewFormat = 'll';
|
|
10126
10363
|
this.returnObject = 'js';
|
|
10127
|
-
this.
|
|
10128
|
-
this.
|
|
10364
|
+
this.datePickerCancel = new i0.EventEmitter();
|
|
10365
|
+
this.dateSelect = new i0.EventEmitter();
|
|
10129
10366
|
this.onDisplayMonths = false;
|
|
10130
10367
|
this.onDisplayYears = false;
|
|
10131
10368
|
this.displayYearsIndex = 0;
|
|
@@ -10182,7 +10419,7 @@
|
|
|
10182
10419
|
var daysDifference = day.diff(this.calendarDate.clone().startOf('date'), 'days');
|
|
10183
10420
|
day = this.calendarDate.clone().add(daysDifference, 'd');
|
|
10184
10421
|
var selectedDay = this.parseToReturnObjectType(day);
|
|
10185
|
-
this.
|
|
10422
|
+
this.dateSelect.emit(selectedDay);
|
|
10186
10423
|
this.cancelDatePicker();
|
|
10187
10424
|
return;
|
|
10188
10425
|
};
|
|
@@ -10198,17 +10435,17 @@
|
|
|
10198
10435
|
};
|
|
10199
10436
|
DatePickerComponent.prototype.selectToday = function () {
|
|
10200
10437
|
var today = this.parseToReturnObjectType(moment__default["default"]());
|
|
10201
|
-
this.
|
|
10438
|
+
this.dateSelect.emit(today);
|
|
10202
10439
|
this.cancelDatePicker();
|
|
10203
10440
|
return;
|
|
10204
10441
|
};
|
|
10205
10442
|
DatePickerComponent.prototype.clearPickDate = function () {
|
|
10206
|
-
this.
|
|
10443
|
+
this.dateSelect.emit(null);
|
|
10207
10444
|
this.cancelDatePicker();
|
|
10208
10445
|
return;
|
|
10209
10446
|
};
|
|
10210
10447
|
DatePickerComponent.prototype.cancelDatePicker = function () {
|
|
10211
|
-
this.
|
|
10448
|
+
this.datePickerCancel.emit(false);
|
|
10212
10449
|
return;
|
|
10213
10450
|
};
|
|
10214
10451
|
DatePickerComponent.prototype.generateYears = function () {
|
|
@@ -10278,11 +10515,11 @@
|
|
|
10278
10515
|
return DatePickerComponent;
|
|
10279
10516
|
}());
|
|
10280
10517
|
DatePickerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DatePickerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
10281
|
-
DatePickerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DatePickerComponent, selector: "date-picker", inputs: { initDate: "initDate", locale: "locale", viewFormat: "viewFormat", returnObject: "returnObject" }, outputs: {
|
|
10518
|
+
DatePickerComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "moment": MomentPipe } });
|
|
10282
10519
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DatePickerComponent, decorators: [{
|
|
10283
10520
|
type: i0.Component,
|
|
10284
10521
|
args: [{
|
|
10285
|
-
selector: 'date-picker',
|
|
10522
|
+
selector: 'ofe-date-picker',
|
|
10286
10523
|
templateUrl: './date-picker.component.html',
|
|
10287
10524
|
styleUrls: ['./date-picker.component.css']
|
|
10288
10525
|
}]
|
|
@@ -10294,9 +10531,9 @@
|
|
|
10294
10531
|
type: i0.Input
|
|
10295
10532
|
}], returnObject: [{
|
|
10296
10533
|
type: i0.Input
|
|
10297
|
-
}],
|
|
10534
|
+
}], datePickerCancel: [{
|
|
10298
10535
|
type: i0.Output
|
|
10299
|
-
}],
|
|
10536
|
+
}], dateSelect: [{
|
|
10300
10537
|
type: i0.Output
|
|
10301
10538
|
}] } });
|
|
10302
10539
|
|
|
@@ -10312,8 +10549,8 @@
|
|
|
10312
10549
|
this.viewFormat = 'hh:mm A';
|
|
10313
10550
|
this.use12Hour = false;
|
|
10314
10551
|
this.returnObject = 'js';
|
|
10315
|
-
this.
|
|
10316
|
-
this.
|
|
10552
|
+
this.timeSelect = new i0.EventEmitter();
|
|
10553
|
+
this.timePickerCancel = new i0.EventEmitter();
|
|
10317
10554
|
this.hourFormat = 'HH';
|
|
10318
10555
|
}
|
|
10319
10556
|
TimePickerComponent.prototype.ngOnInit = function () {
|
|
@@ -10354,23 +10591,23 @@
|
|
|
10354
10591
|
};
|
|
10355
10592
|
TimePickerComponent.prototype.selectTime = function () {
|
|
10356
10593
|
var selectTime = this.parseToReturnObjectType(this.time);
|
|
10357
|
-
this.
|
|
10594
|
+
this.timeSelect.emit(selectTime);
|
|
10358
10595
|
this.cancelTimePicker();
|
|
10359
10596
|
return;
|
|
10360
10597
|
};
|
|
10361
10598
|
TimePickerComponent.prototype.selectNow = function () {
|
|
10362
10599
|
var selectTime = this.parseToReturnObjectType(moment__default["default"]());
|
|
10363
|
-
this.
|
|
10600
|
+
this.timeSelect.emit(selectTime);
|
|
10364
10601
|
this.cancelTimePicker();
|
|
10365
10602
|
return;
|
|
10366
10603
|
};
|
|
10367
10604
|
TimePickerComponent.prototype.clearTime = function () {
|
|
10368
|
-
this.
|
|
10605
|
+
this.timeSelect.emit(null);
|
|
10369
10606
|
this.cancelTimePicker();
|
|
10370
10607
|
return;
|
|
10371
10608
|
};
|
|
10372
10609
|
TimePickerComponent.prototype.cancelTimePicker = function () {
|
|
10373
|
-
this.
|
|
10610
|
+
this.timePickerCancel.emit(false);
|
|
10374
10611
|
return;
|
|
10375
10612
|
};
|
|
10376
10613
|
TimePickerComponent.prototype.parseToReturnObjectType = function (time) {
|
|
@@ -10396,11 +10633,11 @@
|
|
|
10396
10633
|
return TimePickerComponent;
|
|
10397
10634
|
}());
|
|
10398
10635
|
TimePickerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TimePickerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
10399
|
-
TimePickerComponent.ɵcmp = i0__namespace.ɵɵ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: {
|
|
10636
|
+
TimePickerComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "moment": MomentPipe } });
|
|
10400
10637
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TimePickerComponent, decorators: [{
|
|
10401
10638
|
type: i0.Component,
|
|
10402
10639
|
args: [{
|
|
10403
|
-
selector: 'time-picker',
|
|
10640
|
+
selector: 'ofe-time-picker',
|
|
10404
10641
|
templateUrl: './time-picker.component.html',
|
|
10405
10642
|
styleUrls: ['./time-picker.component.css']
|
|
10406
10643
|
}]
|
|
@@ -10414,9 +10651,9 @@
|
|
|
10414
10651
|
type: i0.Input
|
|
10415
10652
|
}], returnObject: [{
|
|
10416
10653
|
type: i0.Input
|
|
10417
|
-
}],
|
|
10654
|
+
}], timeSelect: [{
|
|
10418
10655
|
type: i0.Output
|
|
10419
|
-
}],
|
|
10656
|
+
}], timePickerCancel: [{
|
|
10420
10657
|
type: i0.Output
|
|
10421
10658
|
}] } });
|
|
10422
10659
|
|
|
@@ -10426,13 +10663,12 @@
|
|
|
10426
10663
|
this.showTime = false;
|
|
10427
10664
|
this.showWeeks = false;
|
|
10428
10665
|
this.weeks = [2, 4, 6, 8, 12, 16, 24];
|
|
10429
|
-
this.
|
|
10666
|
+
this.dateChange = new i0.EventEmitter();
|
|
10430
10667
|
this.showDatePicker = false;
|
|
10431
10668
|
this.showTimePicker = false;
|
|
10432
10669
|
this.onChange = function () { };
|
|
10433
10670
|
this.onTouched = function () { };
|
|
10434
10671
|
}
|
|
10435
|
-
DateTimePickerComponent.prototype.ngOnInit = function () { };
|
|
10436
10672
|
DateTimePickerComponent.prototype.weeksSelected = function (count) {
|
|
10437
10673
|
var now = new Date();
|
|
10438
10674
|
var nextDate = now.setDate(now.getDate() + count * 7);
|
|
@@ -10479,7 +10715,7 @@
|
|
|
10479
10715
|
},
|
|
10480
10716
|
set: function (val) {
|
|
10481
10717
|
this.modelValue = val;
|
|
10482
|
-
this.
|
|
10718
|
+
this.dateChange.emit(val);
|
|
10483
10719
|
this.onChange(val);
|
|
10484
10720
|
this.onTouched();
|
|
10485
10721
|
},
|
|
@@ -10503,22 +10739,22 @@
|
|
|
10503
10739
|
return DateTimePickerComponent;
|
|
10504
10740
|
}());
|
|
10505
10741
|
DateTimePickerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DateTimePickerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
10506
|
-
DateTimePickerComponent.ɵcmp = i0__namespace.ɵɵ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: {
|
|
10742
|
+
DateTimePickerComponent.ɵcmp = i0__namespace.ɵɵ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: [
|
|
10507
10743
|
{
|
|
10508
|
-
provide:
|
|
10744
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
10509
10745
|
useExisting: i0.forwardRef(function () { return DateTimePickerComponent; }),
|
|
10510
10746
|
multi: true
|
|
10511
10747
|
}
|
|
10512
|
-
], ngImport: i0__namespace, 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 (
|
|
10748
|
+
], ngImport: i0__namespace, 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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "date": i1__namespace.DatePipe } });
|
|
10513
10749
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DateTimePickerComponent, decorators: [{
|
|
10514
10750
|
type: i0.Component,
|
|
10515
10751
|
args: [{
|
|
10516
|
-
selector: 'date-time-picker',
|
|
10752
|
+
selector: 'ofe-date-time-picker',
|
|
10517
10753
|
templateUrl: './date-time-picker.component.html',
|
|
10518
10754
|
styleUrls: ['./date-time-picker.component.css'],
|
|
10519
10755
|
providers: [
|
|
10520
10756
|
{
|
|
10521
|
-
provide:
|
|
10757
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
10522
10758
|
useExisting: i0.forwardRef(function () { return DateTimePickerComponent; }),
|
|
10523
10759
|
multi: true
|
|
10524
10760
|
}
|
|
@@ -10534,7 +10770,7 @@
|
|
|
10534
10770
|
type: i0.Input
|
|
10535
10771
|
}], weeks: [{
|
|
10536
10772
|
type: i0.Input
|
|
10537
|
-
}],
|
|
10773
|
+
}], dateChange: [{
|
|
10538
10774
|
type: i0.Output
|
|
10539
10775
|
}] } });
|
|
10540
10776
|
|
|
@@ -10551,16 +10787,16 @@
|
|
|
10551
10787
|
TimePickerComponent,
|
|
10552
10788
|
ModalComponent,
|
|
10553
10789
|
MomentPipe,
|
|
10554
|
-
DateTimePickerComponent], imports: [i1.CommonModule,
|
|
10790
|
+
DateTimePickerComponent], imports: [i1.CommonModule, i19.FormsModule], exports: [DatePickerComponent,
|
|
10555
10791
|
TimePickerComponent,
|
|
10556
10792
|
ModalComponent,
|
|
10557
10793
|
MomentPipe,
|
|
10558
10794
|
DateTimePickerComponent] });
|
|
10559
|
-
DateTimePickerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DateTimePickerModule, providers: [], imports: [[i1.CommonModule,
|
|
10795
|
+
DateTimePickerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DateTimePickerModule, providers: [], imports: [[i1.CommonModule, i19.FormsModule]] });
|
|
10560
10796
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DateTimePickerModule, decorators: [{
|
|
10561
10797
|
type: i0.NgModule,
|
|
10562
10798
|
args: [{
|
|
10563
|
-
imports: [i1.CommonModule,
|
|
10799
|
+
imports: [i1.CommonModule, i19.FormsModule],
|
|
10564
10800
|
declarations: [
|
|
10565
10801
|
DatePickerComponent,
|
|
10566
10802
|
TimePickerComponent,
|
|
@@ -10580,7 +10816,7 @@
|
|
|
10580
10816
|
}] });
|
|
10581
10817
|
|
|
10582
10818
|
var OWL_DATETIME_VALUE_ACCESSOR = {
|
|
10583
|
-
provide:
|
|
10819
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
10584
10820
|
useExisting: i0.forwardRef(function () { return OwlDateTimeInlineComponent; }),
|
|
10585
10821
|
multi: true
|
|
10586
10822
|
};
|
|
@@ -10616,6 +10852,13 @@
|
|
|
10616
10852
|
_this.onModelTouched = function () { };
|
|
10617
10853
|
return _this;
|
|
10618
10854
|
}
|
|
10855
|
+
Object.defineProperty(OwlDateTimeInlineComponent.prototype, "owlDTInlineClass", {
|
|
10856
|
+
get: function () {
|
|
10857
|
+
return true;
|
|
10858
|
+
},
|
|
10859
|
+
enumerable: false,
|
|
10860
|
+
configurable: true
|
|
10861
|
+
});
|
|
10619
10862
|
Object.defineProperty(OwlDateTimeInlineComponent.prototype, "pickerType", {
|
|
10620
10863
|
get: function () {
|
|
10621
10864
|
return this._pickerType;
|
|
@@ -10678,10 +10921,14 @@
|
|
|
10678
10921
|
enumerable: false,
|
|
10679
10922
|
configurable: true
|
|
10680
10923
|
});
|
|
10681
|
-
Object.defineProperty(OwlDateTimeInlineComponent.prototype, "
|
|
10924
|
+
Object.defineProperty(OwlDateTimeInlineComponent.prototype, "owlDateTimeFilter", {
|
|
10682
10925
|
get: function () {
|
|
10683
10926
|
return this._dateTimeFilter;
|
|
10684
10927
|
},
|
|
10928
|
+
enumerable: false,
|
|
10929
|
+
configurable: true
|
|
10930
|
+
});
|
|
10931
|
+
Object.defineProperty(OwlDateTimeInlineComponent.prototype, "dateTimeFilter", {
|
|
10685
10932
|
set: function (filter) {
|
|
10686
10933
|
this._dateTimeFilter = filter;
|
|
10687
10934
|
},
|
|
@@ -10798,13 +11045,6 @@
|
|
|
10798
11045
|
enumerable: false,
|
|
10799
11046
|
configurable: true
|
|
10800
11047
|
});
|
|
10801
|
-
Object.defineProperty(OwlDateTimeInlineComponent.prototype, "owlDTInlineClass", {
|
|
10802
|
-
get: function () {
|
|
10803
|
-
return true;
|
|
10804
|
-
},
|
|
10805
|
-
enumerable: false,
|
|
10806
|
-
configurable: true
|
|
10807
|
-
});
|
|
10808
11048
|
OwlDateTimeInlineComponent.prototype.ngOnInit = function () {
|
|
10809
11049
|
this.container.picker = this;
|
|
10810
11050
|
};
|
|
@@ -10855,18 +11095,14 @@
|
|
|
10855
11095
|
return OwlDateTimeInlineComponent;
|
|
10856
11096
|
}(OwlDateTime));
|
|
10857
11097
|
OwlDateTimeInlineComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlDateTimeInlineComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: DateTimeAdapter, optional: true }, { token: OWL_DATE_TIME_FORMATS, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
10858
|
-
OwlDateTimeInlineComponent.ɵcmp = i0__namespace.ɵɵ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",
|
|
11098
|
+
OwlDateTimeInlineComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.ChangeDetectionStrategy.OnPush });
|
|
10859
11099
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OwlDateTimeInlineComponent, decorators: [{
|
|
10860
11100
|
type: i0.Component,
|
|
10861
11101
|
args: [{
|
|
10862
|
-
selector: 'owl-date-time-inline',
|
|
11102
|
+
selector: 'ofe-owl-date-time-inline',
|
|
10863
11103
|
templateUrl: './date-time-inline.component.html',
|
|
10864
11104
|
styleUrls: ['./date-time-inline.component.scss'],
|
|
10865
|
-
host: {
|
|
10866
|
-
'[class.owl-dt-inline]': 'owlDTInlineClass'
|
|
10867
|
-
},
|
|
10868
11105
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
10869
|
-
preserveWhitespaces: false,
|
|
10870
11106
|
providers: [OWL_DATETIME_VALUE_ACCESSOR]
|
|
10871
11107
|
}]
|
|
10872
11108
|
}], ctorParameters: function () {
|
|
@@ -10878,7 +11114,10 @@
|
|
|
10878
11114
|
type: i0.Inject,
|
|
10879
11115
|
args: [OWL_DATE_TIME_FORMATS]
|
|
10880
11116
|
}] }];
|
|
10881
|
-
}, propDecorators: {
|
|
11117
|
+
}, propDecorators: { owlDTInlineClass: [{
|
|
11118
|
+
type: i0.HostBinding,
|
|
11119
|
+
args: ['class.owl-dt-inline']
|
|
11120
|
+
}], container: [{
|
|
10882
11121
|
type: i0.ViewChild,
|
|
10883
11122
|
args: [OwlDateTimeContainerComponent, { static: true }]
|
|
10884
11123
|
}], pickerType: [{
|
|
@@ -10889,15 +11128,12 @@
|
|
|
10889
11128
|
type: i0.Input
|
|
10890
11129
|
}], startAt: [{
|
|
10891
11130
|
type: i0.Input
|
|
10892
|
-
}],
|
|
10893
|
-
type: i0.Input
|
|
10894
|
-
|
|
10895
|
-
|
|
10896
|
-
|
|
10897
|
-
|
|
10898
|
-
}], maxDateTime: [{
|
|
10899
|
-
type: i0.Input,
|
|
10900
|
-
args: ['max']
|
|
11131
|
+
}], owlDateTimeFilter: [{
|
|
11132
|
+
type: i0.Input
|
|
11133
|
+
}], min: [{
|
|
11134
|
+
type: i0.Input
|
|
11135
|
+
}], max: [{
|
|
11136
|
+
type: i0.Input
|
|
10901
11137
|
}], value: [{
|
|
10902
11138
|
type: i0.Input
|
|
10903
11139
|
}], values: [{
|
|
@@ -11413,22 +11649,21 @@
|
|
|
11413
11649
|
}());
|
|
11414
11650
|
NgxDateTimePickerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxDateTimePickerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
11415
11651
|
NgxDateTimePickerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxDateTimePickerModule, declarations: [NgxDatetimeComponent], imports: [i1.CommonModule,
|
|
11416
|
-
|
|
11652
|
+
i19.FormsModule,
|
|
11417
11653
|
OwlDateTimeModule,
|
|
11418
11654
|
OwlNativeDateTimeModule], exports: [NgxDatetimeComponent] });
|
|
11419
11655
|
NgxDateTimePickerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxDateTimePickerModule, providers: [], imports: [[
|
|
11420
11656
|
i1.CommonModule,
|
|
11421
|
-
|
|
11657
|
+
i19.FormsModule,
|
|
11422
11658
|
OwlDateTimeModule,
|
|
11423
11659
|
OwlNativeDateTimeModule
|
|
11424
11660
|
]] });
|
|
11425
11661
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxDateTimePickerModule, decorators: [{
|
|
11426
11662
|
type: i0.NgModule,
|
|
11427
11663
|
args: [{
|
|
11428
|
-
schemas: [i0.CUSTOM_ELEMENTS_SCHEMA],
|
|
11429
11664
|
imports: [
|
|
11430
11665
|
i1.CommonModule,
|
|
11431
|
-
|
|
11666
|
+
i19.FormsModule,
|
|
11432
11667
|
OwlDateTimeModule,
|
|
11433
11668
|
OwlNativeDateTimeModule
|
|
11434
11669
|
],
|
|
@@ -11463,7 +11698,6 @@
|
|
|
11463
11698
|
this.propagateChange = fn;
|
|
11464
11699
|
};
|
|
11465
11700
|
AfeNgSelectComponent.prototype.registerOnTouched = function (fn) { };
|
|
11466
|
-
AfeNgSelectComponent.prototype.ngOnChanges = function (changes) { };
|
|
11467
11701
|
AfeNgSelectComponent.prototype.ngOnInit = function () {
|
|
11468
11702
|
var _this = this;
|
|
11469
11703
|
if (this.extras) {
|
|
@@ -11507,21 +11741,21 @@
|
|
|
11507
11741
|
return AfeNgSelectComponent;
|
|
11508
11742
|
}());
|
|
11509
11743
|
AfeNgSelectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AfeNgSelectComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
11510
|
-
AfeNgSelectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AfeNgSelectComponent, selector: "
|
|
11744
|
+
AfeNgSelectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AfeNgSelectComponent, selector: "ofe-ng-select", inputs: { dataSource: "dataSource", multiple: "multiple", extras: "extras" }, providers: [
|
|
11511
11745
|
{
|
|
11512
|
-
provide:
|
|
11746
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
11513
11747
|
useExisting: i0.forwardRef(function () { return AfeNgSelectComponent; }),
|
|
11514
11748
|
multi: true
|
|
11515
11749
|
}
|
|
11516
|
-
],
|
|
11750
|
+
], ngImport: i0__namespace, template: "<ng-select\n (searchInputText)=\"getChangingText($event)\"\n (ngModelChange)=\"onValueChange($event)\"\n [options]=\"question_options\"\n [multiple]=\"multiple\"\n >\n </ng-select> ", isInline: true, components: [{ type: i1__namespace$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"] }] });
|
|
11517
11751
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AfeNgSelectComponent, decorators: [{
|
|
11518
11752
|
type: i0.Component,
|
|
11519
11753
|
args: [{
|
|
11520
|
-
selector: '
|
|
11754
|
+
selector: 'ofe-ng-select',
|
|
11521
11755
|
template: "<ng-select\n (searchInputText)=\"getChangingText($event)\"\n (ngModelChange)=\"onValueChange($event)\"\n [options]=\"question_options\"\n [multiple]=\"multiple\"\n >\n </ng-select> ",
|
|
11522
11756
|
providers: [
|
|
11523
11757
|
{
|
|
11524
|
-
provide:
|
|
11758
|
+
provide: i19.NG_VALUE_ACCESSOR,
|
|
11525
11759
|
useExisting: i0.forwardRef(function () { return AfeNgSelectComponent; }),
|
|
11526
11760
|
multi: true
|
|
11527
11761
|
}
|
|
@@ -11982,7 +12216,6 @@
|
|
|
11982
12216
|
var _this = this;
|
|
11983
12217
|
if (rootNode instanceof GroupNode) {
|
|
11984
12218
|
var nodeAsGroup = rootNode;
|
|
11985
|
-
// eslint-disable-next-line guard-for-in
|
|
11986
12219
|
for (var o in nodeAsGroup.children) {
|
|
11987
12220
|
this.searchNodeByQuestionType(nodeAsGroup.children[o], questionType, found);
|
|
11988
12221
|
}
|
|
@@ -12009,7 +12242,6 @@
|
|
|
12009
12242
|
}
|
|
12010
12243
|
if (rootNode instanceof GroupNode) {
|
|
12011
12244
|
var nodeAsGroup = rootNode;
|
|
12012
|
-
// eslint-disable-next-line guard-for-in
|
|
12013
12245
|
for (var o in nodeAsGroup.children) {
|
|
12014
12246
|
this.findNodesByQuestionId(nodeAsGroup.children[o], questionId, results);
|
|
12015
12247
|
}
|
|
@@ -12088,7 +12320,6 @@
|
|
|
12088
12320
|
}
|
|
12089
12321
|
if (rootNode instanceof GroupNode) {
|
|
12090
12322
|
var nodeAsGroup = rootNode;
|
|
12091
|
-
// eslint-disable-next-line guard-for-in
|
|
12092
12323
|
for (var o in nodeAsGroup.children) {
|
|
12093
12324
|
this._updateAlertsForAllControls(nodeAsGroup.children[o]);
|
|
12094
12325
|
}
|
|
@@ -12112,7 +12343,6 @@
|
|
|
12112
12343
|
}
|
|
12113
12344
|
if (rootNode instanceof GroupNode) {
|
|
12114
12345
|
var nodeAsGroup = rootNode;
|
|
12115
|
-
// eslint-disable-next-line guard-for-in
|
|
12116
12346
|
for (var o in nodeAsGroup.children) {
|
|
12117
12347
|
this._updateHiddenDisabledStateForAllControls(nodeAsGroup.children[o]);
|
|
12118
12348
|
}
|
|
@@ -13748,7 +13978,6 @@
|
|
|
13748
13978
|
break;
|
|
13749
13979
|
case 'repeating':
|
|
13750
13980
|
if (formNode.children) {
|
|
13751
|
-
// eslint-disable-next-line guard-for-in
|
|
13752
13981
|
for (var node in formNode.children) {
|
|
13753
13982
|
var question = formNode.children[node].question;
|
|
13754
13983
|
if (question.extras &&
|
|
@@ -13888,7 +14117,6 @@
|
|
|
13888
14117
|
var dateField = // other member to be manipulated by user
|
|
13889
14118
|
void 0; // other member to be manipulated by user
|
|
13890
14119
|
var nodeAsGroup = node;
|
|
13891
|
-
// eslint-disable-next-line guard-for-in
|
|
13892
14120
|
for (var o in nodeAsGroup.children) {
|
|
13893
14121
|
if (nodeAsGroup.children[o].question.extras.questionOptions
|
|
13894
14122
|
.obsField === 'value') {
|
|
@@ -13911,7 +14139,6 @@
|
|
|
13911
14139
|
if (node && obs.length > 0) {
|
|
13912
14140
|
var groupNode = node;
|
|
13913
14141
|
groupNode.initialValue = obs[0];
|
|
13914
|
-
// eslint-disable-next-line guard-for-in
|
|
13915
14142
|
for (var o in groupNode.children) {
|
|
13916
14143
|
this.setNodeValue(groupNode.children[o], obs[0].groupMembers);
|
|
13917
14144
|
}
|
|
@@ -13939,7 +14166,6 @@
|
|
|
13939
14166
|
case 'unknown':
|
|
13940
14167
|
if (node instanceof GroupNode) {
|
|
13941
14168
|
var groupNode = node;
|
|
13942
|
-
// eslint-disable-next-line guard-for-in
|
|
13943
14169
|
for (var o in groupNode.children) {
|
|
13944
14170
|
this.setNodeValue(groupNode.children[o], obs);
|
|
13945
14171
|
}
|
|
@@ -14071,7 +14297,6 @@
|
|
|
14071
14297
|
var valueField; // essential memmber
|
|
14072
14298
|
var dateField; // other member to be manipulated by user
|
|
14073
14299
|
var nodeAsGroup = node;
|
|
14074
|
-
// eslint-disable-next-line guard-for-in
|
|
14075
14300
|
for (var o in nodeAsGroup.children) {
|
|
14076
14301
|
if (nodeAsGroup.children[o].question.extras.questionOptions
|
|
14077
14302
|
.obsField === 'value') {
|
|
@@ -14201,7 +14426,6 @@
|
|
|
14201
14426
|
case 'unknown':
|
|
14202
14427
|
if (node instanceof GroupNode) {
|
|
14203
14428
|
var groupNode = node;
|
|
14204
|
-
// eslint-disable-next-line guard-for-in
|
|
14205
14429
|
for (var o in groupNode.children) {
|
|
14206
14430
|
var groupNodePayoad = this.getObsNodePayload(groupNode.children[o]);
|
|
14207
14431
|
if (Array.isArray(groupNodePayoad) && groupNodePayoad.length > 0) {
|
|
@@ -14428,7 +14652,6 @@
|
|
|
14428
14652
|
ObsValueAdapter.prototype.setComplexObsValue = function (node, payload) {
|
|
14429
14653
|
var valueField;
|
|
14430
14654
|
var dateField;
|
|
14431
|
-
// eslint-disable-next-line guard-for-in
|
|
14432
14655
|
for (var o in node.children) {
|
|
14433
14656
|
if (node.children[o].question.extras.questionOptions
|
|
14434
14657
|
.obsField === 'value') {
|
|
@@ -14741,14 +14964,12 @@
|
|
|
14741
14964
|
for (var payload_1 = __values(payload), payload_1_1 = payload_1.next(); !payload_1_1.done; payload_1_1 = payload_1.next()) {
|
|
14742
14965
|
var obs = payload_1_1.value;
|
|
14743
14966
|
var groupPayload = [];
|
|
14744
|
-
/* eslint-disable */
|
|
14745
14967
|
for (var key in obs.value) {
|
|
14746
14968
|
var concept = key.split(':')[0];
|
|
14747
14969
|
var value = key.split(':')[1];
|
|
14748
14970
|
groupPayload.push({ concept: concept, value: value });
|
|
14749
14971
|
}
|
|
14750
14972
|
newPayload.push({ concept: groupConcept, groupMembers: groupPayload });
|
|
14751
|
-
/* eslint-enable */
|
|
14752
14973
|
}
|
|
14753
14974
|
}
|
|
14754
14975
|
catch (e_12_1) { e_12 = { error: e_12_1 }; }
|
|
@@ -14826,7 +15047,6 @@
|
|
|
14826
15047
|
ObsValueAdapter.prototype.processComplexObs = function (node, obsPayload) {
|
|
14827
15048
|
var valueField;
|
|
14828
15049
|
var dateField;
|
|
14829
|
-
// eslint-disable-next-line guard-for-in
|
|
14830
15050
|
for (var o in node.children) {
|
|
14831
15051
|
if (node.children[o].question.extras.questionOptions
|
|
14832
15052
|
.obsField === 'value') {
|
|
@@ -15169,7 +15389,6 @@
|
|
|
15169
15389
|
}
|
|
15170
15390
|
if (rootNode instanceof GroupNode) {
|
|
15171
15391
|
var node = rootNode;
|
|
15172
|
-
// eslint-disable-next-line guard-for-in
|
|
15173
15392
|
for (var o in node.children) {
|
|
15174
15393
|
if (node.children[o] instanceof NodeBase) {
|
|
15175
15394
|
this._getEncounterNodes(node.children[o], array);
|
|
@@ -15267,7 +15486,6 @@
|
|
|
15267
15486
|
}
|
|
15268
15487
|
if (rootNode instanceof GroupNode) {
|
|
15269
15488
|
var node = rootNode;
|
|
15270
|
-
// eslint-disable-next-line guard-for-in
|
|
15271
15489
|
for (var o in node.children) {
|
|
15272
15490
|
if (node.children[o] instanceof NodeBase) {
|
|
15273
15491
|
this._getPersonAttributesNodes(node.children[o], array);
|
|
@@ -15295,12 +15513,12 @@
|
|
|
15295
15513
|
return NgxRemoteSelectModule;
|
|
15296
15514
|
}());
|
|
15297
15515
|
NgxRemoteSelectModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxRemoteSelectModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
15298
|
-
NgxRemoteSelectModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxRemoteSelectModule, declarations: [RemoteSelectComponent], imports: [i1.CommonModule, i1$3.NgSelectModule,
|
|
15299
|
-
NgxRemoteSelectModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxRemoteSelectModule, providers: [], imports: [[i1.CommonModule, i1$3.NgSelectModule,
|
|
15516
|
+
NgxRemoteSelectModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxRemoteSelectModule, declarations: [RemoteSelectComponent], imports: [i1.CommonModule, i1$3.NgSelectModule, i19.FormsModule], exports: [RemoteSelectComponent] });
|
|
15517
|
+
NgxRemoteSelectModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxRemoteSelectModule, providers: [], imports: [[i1.CommonModule, i1$3.NgSelectModule, i19.FormsModule]] });
|
|
15300
15518
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NgxRemoteSelectModule, decorators: [{
|
|
15301
15519
|
type: i0.NgModule,
|
|
15302
15520
|
args: [{
|
|
15303
|
-
imports: [i1.CommonModule, i1$3.NgSelectModule,
|
|
15521
|
+
imports: [i1.CommonModule, i1$3.NgSelectModule, i19.FormsModule],
|
|
15304
15522
|
exports: [RemoteSelectComponent],
|
|
15305
15523
|
declarations: [RemoteSelectComponent],
|
|
15306
15524
|
providers: []
|
|
@@ -15313,14 +15531,14 @@
|
|
|
15313
15531
|
return CheckboxModule;
|
|
15314
15532
|
}());
|
|
15315
15533
|
CheckboxModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
15316
|
-
CheckboxModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxModule, declarations: [CheckboxControlComponent], imports: [i1.CommonModule,
|
|
15317
|
-
CheckboxModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxModule, imports: [[i1.CommonModule,
|
|
15534
|
+
CheckboxModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxModule, declarations: [CheckboxControlComponent], imports: [i1.CommonModule, i19.FormsModule], exports: [CheckboxControlComponent] });
|
|
15535
|
+
CheckboxModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxModule, imports: [[i1.CommonModule, i19.FormsModule]] });
|
|
15318
15536
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CheckboxModule, decorators: [{
|
|
15319
15537
|
type: i0.NgModule,
|
|
15320
15538
|
args: [{
|
|
15321
15539
|
declarations: [CheckboxControlComponent],
|
|
15322
15540
|
exports: [CheckboxControlComponent],
|
|
15323
|
-
imports: [i1.CommonModule,
|
|
15541
|
+
imports: [i1.CommonModule, i19.FormsModule]
|
|
15324
15542
|
}]
|
|
15325
15543
|
}] });
|
|
15326
15544
|
|
|
@@ -15330,14 +15548,14 @@
|
|
|
15330
15548
|
return RadioModule;
|
|
15331
15549
|
}());
|
|
15332
15550
|
RadioModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
15333
|
-
RadioModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioModule, declarations: [RadioButtonControlComponent], imports: [i1.CommonModule,
|
|
15334
|
-
RadioModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioModule, imports: [[i1.CommonModule,
|
|
15551
|
+
RadioModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioModule, declarations: [RadioButtonControlComponent], imports: [i1.CommonModule, i19.FormsModule], exports: [RadioButtonControlComponent] });
|
|
15552
|
+
RadioModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioModule, imports: [[i1.CommonModule, i19.FormsModule]] });
|
|
15335
15553
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RadioModule, decorators: [{
|
|
15336
15554
|
type: i0.NgModule,
|
|
15337
15555
|
args: [{
|
|
15338
15556
|
declarations: [RadioButtonControlComponent],
|
|
15339
15557
|
exports: [RadioButtonControlComponent],
|
|
15340
|
-
imports: [i1.CommonModule,
|
|
15558
|
+
imports: [i1.CommonModule, i19.FormsModule]
|
|
15341
15559
|
}]
|
|
15342
15560
|
}] });
|
|
15343
15561
|
|
|
@@ -15376,20 +15594,36 @@
|
|
|
15376
15594
|
}]
|
|
15377
15595
|
}] });
|
|
15378
15596
|
|
|
15379
|
-
|
|
15380
|
-
|
|
15381
|
-
|
|
15597
|
+
var OptionDirective = /** @class */ (function () {
|
|
15598
|
+
function OptionDirective() {
|
|
15599
|
+
this.inputClass = 'cds--select-option';
|
|
15600
|
+
}
|
|
15601
|
+
return OptionDirective;
|
|
15602
|
+
}());
|
|
15603
|
+
OptionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OptionDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
15604
|
+
OptionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: OptionDirective, selector: "[ofeOption]", host: { properties: { "class": "this.inputClass" } }, ngImport: i0__namespace });
|
|
15605
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OptionDirective, decorators: [{
|
|
15606
|
+
type: i0.Directive,
|
|
15607
|
+
args: [{
|
|
15608
|
+
selector: '[ofeOption]'
|
|
15609
|
+
}]
|
|
15610
|
+
}], propDecorators: { inputClass: [{
|
|
15611
|
+
type: i0.HostBinding,
|
|
15612
|
+
args: ['class']
|
|
15613
|
+
}] } });
|
|
15614
|
+
|
|
15615
|
+
var OptGroupDirective = /** @class */ (function () {
|
|
15616
|
+
function OptGroupDirective() {
|
|
15382
15617
|
this.inputClass = 'cds--select-optgroup';
|
|
15383
15618
|
}
|
|
15384
|
-
return
|
|
15619
|
+
return OptGroupDirective;
|
|
15385
15620
|
}());
|
|
15386
|
-
|
|
15387
|
-
|
|
15388
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type:
|
|
15621
|
+
OptGroupDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OptGroupDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
15622
|
+
OptGroupDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: OptGroupDirective, selector: "[ofeOptgroup]", host: { properties: { "class": "this.inputClass" } }, ngImport: i0__namespace });
|
|
15623
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OptGroupDirective, decorators: [{
|
|
15389
15624
|
type: i0.Directive,
|
|
15390
15625
|
args: [{
|
|
15391
|
-
|
|
15392
|
-
selector: 'optgroup'
|
|
15626
|
+
selector: '[ofeOptgroup]'
|
|
15393
15627
|
}]
|
|
15394
15628
|
}], propDecorators: { inputClass: [{
|
|
15395
15629
|
type: i0.HostBinding,
|
|
@@ -15403,45 +15637,44 @@
|
|
|
15403
15637
|
return SelectModule;
|
|
15404
15638
|
}());
|
|
15405
15639
|
SelectModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SelectModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
15406
|
-
SelectModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SelectModule, declarations: [
|
|
15407
|
-
SelectModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SelectModule, imports: [[i1.CommonModule,
|
|
15640
|
+
SelectModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SelectModule, declarations: [SelectComponent, OptionDirective, OptGroupDirective], imports: [i1.CommonModule, i19.FormsModule], exports: [SelectComponent, OptionDirective, OptGroupDirective] });
|
|
15641
|
+
SelectModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SelectModule, imports: [[i1.CommonModule, i19.FormsModule]] });
|
|
15408
15642
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SelectModule, decorators: [{
|
|
15409
15643
|
type: i0.NgModule,
|
|
15410
15644
|
args: [{
|
|
15411
|
-
declarations: [
|
|
15412
|
-
exports: [
|
|
15413
|
-
imports: [i1.CommonModule,
|
|
15645
|
+
declarations: [SelectComponent, OptionDirective, OptGroupDirective],
|
|
15646
|
+
exports: [SelectComponent, OptionDirective, OptGroupDirective],
|
|
15647
|
+
imports: [i1.CommonModule, i19.FormsModule]
|
|
15414
15648
|
}]
|
|
15415
15649
|
}] });
|
|
15416
15650
|
|
|
15417
|
-
/* eslint-disable @angular-eslint/component-class-suffix */
|
|
15418
15651
|
/**
|
|
15419
15652
|
* [See demo](../../?path=/story/input--label)
|
|
15420
15653
|
*
|
|
15421
15654
|
* ```html
|
|
15422
|
-
* <
|
|
15655
|
+
* <ofe-label labelState="success">
|
|
15423
15656
|
* <label label>Field with success</label>
|
|
15424
15657
|
* <input type="text" class="input-field">
|
|
15425
|
-
* </
|
|
15658
|
+
* </ofe-label>
|
|
15426
15659
|
*
|
|
15427
|
-
* <
|
|
15660
|
+
* <ofe-label labelState="warning">
|
|
15428
15661
|
* <label label>Field with warning</label>
|
|
15429
15662
|
* <input type="text" class="input-field">
|
|
15430
|
-
* </
|
|
15663
|
+
* </ofe-label>
|
|
15431
15664
|
*
|
|
15432
|
-
* <
|
|
15665
|
+
* <ofe-label labelState="error">
|
|
15433
15666
|
* <label label>Field with error</label>
|
|
15434
15667
|
* <input type="text" class="input-field">
|
|
15435
|
-
* </
|
|
15668
|
+
* </ofe-label>
|
|
15436
15669
|
* ```
|
|
15437
15670
|
*
|
|
15438
15671
|
* <example-url>../../iframe.html?id=input--label</example-url>
|
|
15439
15672
|
*/
|
|
15440
|
-
var
|
|
15673
|
+
var LabelComponent = /** @class */ (function () {
|
|
15441
15674
|
/**
|
|
15442
|
-
* Creates an instance of
|
|
15675
|
+
* Creates an instance of LabelComponent.
|
|
15443
15676
|
*/
|
|
15444
|
-
function
|
|
15677
|
+
function LabelComponent() {
|
|
15445
15678
|
/**
|
|
15446
15679
|
* The class of the wrapper
|
|
15447
15680
|
*/
|
|
@@ -15450,7 +15683,7 @@
|
|
|
15450
15683
|
* The id of the input item associated with the `Label`. This value is also used to associate the `Label` with
|
|
15451
15684
|
* its input counterpart through the 'for' attribute.
|
|
15452
15685
|
*/
|
|
15453
|
-
this.labelInputID = '
|
|
15686
|
+
this.labelInputID = 'ofe-label-' + LabelComponent.labelCounter;
|
|
15454
15687
|
/**
|
|
15455
15688
|
* State of the `Label` will determine the styles applied.
|
|
15456
15689
|
*/
|
|
@@ -15468,12 +15701,12 @@
|
|
|
15468
15701
|
*/
|
|
15469
15702
|
this.warn = false;
|
|
15470
15703
|
this.labelClass = true;
|
|
15471
|
-
|
|
15704
|
+
LabelComponent.labelCounter++;
|
|
15472
15705
|
}
|
|
15473
15706
|
/**
|
|
15474
15707
|
* Update wrapper class if a textarea is hosted.
|
|
15475
15708
|
*/
|
|
15476
|
-
|
|
15709
|
+
LabelComponent.prototype.ngAfterContentInit = function () {
|
|
15477
15710
|
if (this.textArea) {
|
|
15478
15711
|
this.wrapperClass = 'cds--text-area__wrapper';
|
|
15479
15712
|
}
|
|
@@ -15481,7 +15714,7 @@
|
|
|
15481
15714
|
/**
|
|
15482
15715
|
* Sets the id on the input item associated with the `Label`.
|
|
15483
15716
|
*/
|
|
15484
|
-
|
|
15717
|
+
LabelComponent.prototype.ngAfterViewInit = function () {
|
|
15485
15718
|
if (this.wrapper) {
|
|
15486
15719
|
var inputElement = this.wrapper.nativeElement.querySelector('input,textarea,div');
|
|
15487
15720
|
if (inputElement) {
|
|
@@ -15489,21 +15722,21 @@
|
|
|
15489
15722
|
}
|
|
15490
15723
|
}
|
|
15491
15724
|
};
|
|
15492
|
-
|
|
15725
|
+
LabelComponent.prototype.isTemplate = function (value) {
|
|
15493
15726
|
return value instanceof i0.TemplateRef;
|
|
15494
15727
|
};
|
|
15495
|
-
return
|
|
15728
|
+
return LabelComponent;
|
|
15496
15729
|
}());
|
|
15497
15730
|
/**
|
|
15498
15731
|
* Used to build the id of the input item associated with the `Label`.
|
|
15499
15732
|
*/
|
|
15500
|
-
|
|
15501
|
-
|
|
15502
|
-
|
|
15503
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type:
|
|
15733
|
+
LabelComponent.labelCounter = 0;
|
|
15734
|
+
LabelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LabelComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
15735
|
+
LabelComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, template: "\n <label\n [for]=\"labelInputID\"\n [attr.aria-label]=\"ariaLabel\"\n class=\"cds--label\"\n [ngClass]=\"{\n 'cds--skeleton': skeleton\n }\"\n >\n <ng-content></ng-content>\n </label>\n <div\n [class]=\"wrapperClass\"\n [ngClass]=\"{\n 'cds--text-input__field-wrapper--warning': warn\n }\"\n [attr.data-invalid]=\"invalid ? true : null\"\n #wrapper\n >\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 <ng-content select=\"input,textarea,div\"></ng-content>\n </div>\n <div\n *ngIf=\"!skeleton && helperText && !invalid && !warn\"\n class=\"cds--form__helper-text\"\n >\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 *ngIf=\"!warn && invalid\" class=\"cds--form-requirement\">\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 ", isInline: true, directives: [{ type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
15736
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LabelComponent, decorators: [{
|
|
15504
15737
|
type: i0.Component,
|
|
15505
15738
|
args: [{
|
|
15506
|
-
selector: '
|
|
15739
|
+
selector: 'ofe-label',
|
|
15507
15740
|
template: "\n <label\n [for]=\"labelInputID\"\n [attr.aria-label]=\"ariaLabel\"\n class=\"cds--label\"\n [ngClass]=\"{\n 'cds--skeleton': skeleton\n }\"\n >\n <ng-content></ng-content>\n </label>\n <div\n [class]=\"wrapperClass\"\n [ngClass]=\"{\n 'cds--text-input__field-wrapper--warning': warn\n }\"\n [attr.data-invalid]=\"invalid ? true : null\"\n #wrapper\n >\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 <ng-content select=\"input,textarea,div\"></ng-content>\n </div>\n <div\n *ngIf=\"!skeleton && helperText && !invalid && !warn\"\n class=\"cds--form__helper-text\"\n >\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 *ngIf=\"!warn && invalid\" class=\"cds--form-requirement\">\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 "
|
|
15508
15741
|
}]
|
|
15509
15742
|
}], ctorParameters: function () { return []; }, propDecorators: { labelInputID: [{
|
|
@@ -15529,7 +15762,7 @@
|
|
|
15529
15762
|
args: ['wrapper', { static: false }]
|
|
15530
15763
|
}], textArea: [{
|
|
15531
15764
|
type: i0.ContentChild,
|
|
15532
|
-
args: [
|
|
15765
|
+
args: [TextAreaDirective, { static: false }]
|
|
15533
15766
|
}], labelClass: [{
|
|
15534
15767
|
type: i0.HostBinding,
|
|
15535
15768
|
args: ['class.cds--form-item']
|
|
@@ -15542,14 +15775,14 @@
|
|
|
15542
15775
|
return InputModule;
|
|
15543
15776
|
}());
|
|
15544
15777
|
InputModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InputModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
15545
|
-
InputModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InputModule, declarations: [
|
|
15546
|
-
InputModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InputModule, imports: [[i1.CommonModule,
|
|
15778
|
+
InputModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InputModule, declarations: [LabelComponent, TextInputDirective, TextAreaDirective], imports: [i1.CommonModule, i19.FormsModule], exports: [LabelComponent, TextInputDirective, TextAreaDirective] });
|
|
15779
|
+
InputModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InputModule, imports: [[i1.CommonModule, i19.FormsModule]] });
|
|
15547
15780
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: InputModule, decorators: [{
|
|
15548
15781
|
type: i0.NgModule,
|
|
15549
15782
|
args: [{
|
|
15550
|
-
declarations: [
|
|
15551
|
-
exports: [
|
|
15552
|
-
imports: [i1.CommonModule,
|
|
15783
|
+
declarations: [LabelComponent, TextInputDirective, TextAreaDirective],
|
|
15784
|
+
exports: [LabelComponent, TextInputDirective, TextAreaDirective],
|
|
15785
|
+
imports: [i1.CommonModule, i19.FormsModule]
|
|
15553
15786
|
}]
|
|
15554
15787
|
}] });
|
|
15555
15788
|
|
|
@@ -15559,13 +15792,13 @@
|
|
|
15559
15792
|
return CustomControlWrapperModule;
|
|
15560
15793
|
}());
|
|
15561
15794
|
CustomControlWrapperModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomControlWrapperModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
15562
|
-
CustomControlWrapperModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomControlWrapperModule, declarations: [CustomControlWrapperComponent], imports: [i1.CommonModule,
|
|
15563
|
-
CustomControlWrapperModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomControlWrapperModule, providers: [], imports: [[i1.CommonModule,
|
|
15795
|
+
CustomControlWrapperModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomControlWrapperModule, declarations: [CustomControlWrapperComponent], imports: [i1.CommonModule, i19.FormsModule, i2.LazyElementsModule], exports: [CustomControlWrapperComponent] });
|
|
15796
|
+
CustomControlWrapperModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomControlWrapperModule, providers: [], imports: [[i1.CommonModule, i19.FormsModule, i2.LazyElementsModule]] });
|
|
15564
15797
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: CustomControlWrapperModule, decorators: [{
|
|
15565
15798
|
type: i0.NgModule,
|
|
15566
15799
|
args: [{
|
|
15567
15800
|
schemas: [i0.CUSTOM_ELEMENTS_SCHEMA],
|
|
15568
|
-
imports: [i1.CommonModule,
|
|
15801
|
+
imports: [i1.CommonModule, i19.FormsModule, i2.LazyElementsModule],
|
|
15569
15802
|
exports: [CustomControlWrapperComponent],
|
|
15570
15803
|
declarations: [CustomControlWrapperComponent],
|
|
15571
15804
|
providers: []
|
|
@@ -15604,7 +15837,7 @@
|
|
|
15604
15837
|
ErrorRendererComponent,
|
|
15605
15838
|
TimeAgoPipe,
|
|
15606
15839
|
CollapseDirective], imports: [i1.CommonModule,
|
|
15607
|
-
|
|
15840
|
+
i19.ReactiveFormsModule,
|
|
15608
15841
|
SelectModule,
|
|
15609
15842
|
i1$3.NgSelectModule,
|
|
15610
15843
|
NumberInputModule,
|
|
@@ -15624,7 +15857,7 @@
|
|
|
15624
15857
|
DateTimePickerModule,
|
|
15625
15858
|
NgxDateTimePickerModule] });
|
|
15626
15859
|
FormEntryModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FormEntryModule, providers: [
|
|
15627
|
-
|
|
15860
|
+
i19.FormBuilder,
|
|
15628
15861
|
FormControlService,
|
|
15629
15862
|
FormErrorsService,
|
|
15630
15863
|
ValidationFactory,
|
|
@@ -15646,7 +15879,7 @@
|
|
|
15646
15879
|
DebugModeService
|
|
15647
15880
|
], imports: [[
|
|
15648
15881
|
i1.CommonModule,
|
|
15649
|
-
|
|
15882
|
+
i19.ReactiveFormsModule,
|
|
15650
15883
|
SelectModule,
|
|
15651
15884
|
i1$3.NgSelectModule,
|
|
15652
15885
|
NumberInputModule,
|
|
@@ -15670,7 +15903,7 @@
|
|
|
15670
15903
|
schemas: [i0.CUSTOM_ELEMENTS_SCHEMA],
|
|
15671
15904
|
imports: [
|
|
15672
15905
|
i1.CommonModule,
|
|
15673
|
-
|
|
15906
|
+
i19.ReactiveFormsModule,
|
|
15674
15907
|
SelectModule,
|
|
15675
15908
|
i1$3.NgSelectModule,
|
|
15676
15909
|
NumberInputModule,
|
|
@@ -15697,7 +15930,7 @@
|
|
|
15697
15930
|
CollapseDirective
|
|
15698
15931
|
],
|
|
15699
15932
|
providers: [
|
|
15700
|
-
|
|
15933
|
+
i19.FormBuilder,
|
|
15701
15934
|
FormControlService,
|
|
15702
15935
|
FormErrorsService,
|
|
15703
15936
|
ValidationFactory,
|