@acpaas-ui/ngx-forms 6.0.9 → 6.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/datepicker/components/datepicker/datepicker.component.mjs +50 -29
- package/esm2020/lib/timepicker/components/timepicker/timepicker.component.mjs +52 -38
- package/esm2020/lib/upload/upload.module.mjs +1 -1
- package/fesm2015/acpaas-ui-ngx-forms.mjs +112 -65
- package/fesm2015/acpaas-ui-ngx-forms.mjs.map +1 -1
- package/fesm2020/acpaas-ui-ngx-forms.mjs +100 -65
- package/fesm2020/acpaas-ui-ngx-forms.mjs.map +1 -1
- package/lib/datepicker/components/datepicker/datepicker.component.d.ts +2 -1
- package/lib/upload/upload.module.d.ts +1 -1
- package/package.json +6 -6
|
@@ -439,37 +439,64 @@ const DATEPICKER_DEFAULT_ERROR_LABELS = {
|
|
|
439
439
|
};
|
|
440
440
|
const DATEPICKER_SEPARATOR_CHAR = '/';
|
|
441
441
|
|
|
442
|
-
function
|
|
442
|
+
function DatepickerComponent_label_1_Template(rf, ctx) {
|
|
443
|
+
if (rf & 1) {
|
|
444
|
+
i0.ɵɵelementStart(0, "label", 6);
|
|
445
|
+
i0.ɵɵtext(1);
|
|
446
|
+
i0.ɵɵelementEnd();
|
|
447
|
+
}
|
|
448
|
+
if (rf & 2) {
|
|
449
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
450
|
+
i0.ɵɵpropertyInterpolate("for", ctx_r0.id);
|
|
451
|
+
i0.ɵɵadvance(1);
|
|
452
|
+
i0.ɵɵtextInterpolate(ctx_r0.label);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
function DatepickerComponent_small_2_Template(rf, ctx) {
|
|
456
|
+
if (rf & 1) {
|
|
457
|
+
i0.ɵɵelementStart(0, "small", 7);
|
|
458
|
+
i0.ɵɵtext(1);
|
|
459
|
+
i0.ɵɵelementEnd();
|
|
460
|
+
}
|
|
461
|
+
if (rf & 2) {
|
|
462
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
463
|
+
i0.ɵɵadvance(1);
|
|
464
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.description, "");
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
function DatepickerComponent_ng_container_5_Template(rf, ctx) {
|
|
443
468
|
if (rf & 1) {
|
|
444
469
|
i0.ɵɵelementContainerStart(0);
|
|
445
|
-
i0.ɵɵelement(1, "aui-icon",
|
|
470
|
+
i0.ɵɵelement(1, "aui-icon", 8);
|
|
446
471
|
i0.ɵɵelementContainerEnd();
|
|
447
472
|
}
|
|
448
473
|
}
|
|
449
|
-
function
|
|
474
|
+
function DatepickerComponent_ng_container_6_Template(rf, ctx) {
|
|
450
475
|
if (rf & 1) {
|
|
451
476
|
i0.ɵɵelementContainerStart(0);
|
|
452
|
-
i0.ɵɵelement(1, "aui-icon",
|
|
477
|
+
i0.ɵɵelement(1, "aui-icon", 9);
|
|
453
478
|
i0.ɵɵelementContainerEnd();
|
|
454
479
|
}
|
|
455
480
|
if (rf & 2) {
|
|
481
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
456
482
|
i0.ɵɵadvance(1);
|
|
457
483
|
i0.ɵɵproperty("openOnFocus", false);
|
|
484
|
+
i0.ɵɵattribute("aria-label", ctx_r3.ariaOpenDatepickerLabel);
|
|
458
485
|
}
|
|
459
486
|
}
|
|
460
|
-
function
|
|
487
|
+
function DatepickerComponent_ng_container_7_Template(rf, ctx) {
|
|
461
488
|
if (rf & 1) {
|
|
462
|
-
const
|
|
489
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
463
490
|
i0.ɵɵelementContainerStart(0);
|
|
464
|
-
i0.ɵɵelementStart(1, "div",
|
|
465
|
-
i0.ɵɵlistener("selectDate", function
|
|
491
|
+
i0.ɵɵelementStart(1, "div", 10)(2, "aui-calendar", 11);
|
|
492
|
+
i0.ɵɵlistener("selectDate", function DatepickerComponent_ng_container_7_Template_aui_calendar_selectDate_2_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.selectDateFromCalendar($event)); });
|
|
466
493
|
i0.ɵɵelementEnd()();
|
|
467
494
|
i0.ɵɵelementContainerEnd();
|
|
468
495
|
}
|
|
469
496
|
if (rf & 2) {
|
|
470
|
-
const
|
|
497
|
+
const ctx_r4 = i0.ɵɵnextContext();
|
|
471
498
|
i0.ɵɵadvance(2);
|
|
472
|
-
i0.ɵɵproperty("range",
|
|
499
|
+
i0.ɵɵproperty("range", ctx_r4.range)("selectedDate", ctx_r4.selectedDate)("interval", ctx_r4.interval)("weekdayLabels", ctx_r4.weekdayLabels)("monthLabels", ctx_r4.monthLabels);
|
|
473
500
|
}
|
|
474
501
|
}
|
|
475
502
|
class DatepickerComponent {
|
|
@@ -481,6 +508,7 @@ class DatepickerComponent {
|
|
|
481
508
|
this.formBuilder = formBuilder;
|
|
482
509
|
this.ref = ref;
|
|
483
510
|
this.placeholder = 'dd/mm/yyyy';
|
|
511
|
+
this.ariaOpenDatepickerLabel = 'Open kalender';
|
|
484
512
|
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
485
513
|
this.blur = new EventEmitter();
|
|
486
514
|
this.isDisabled = false;
|
|
@@ -615,7 +643,7 @@ class DatepickerComponent {
|
|
|
615
643
|
let _t;
|
|
616
644
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.flyout = _t.first);
|
|
617
645
|
}
|
|
618
|
-
}, inputs: { id: "id", name: "name", placeholder: "placeholder", label: "label", description: "description", range: "range", min: "min", max: "max", autocomplete: "autocomplete", weekdayLabels: "weekdayLabels", monthLabels: "monthLabels" }, outputs: { blur: "blur" }, features: [i0.ɵɵProvidersFeature([
|
|
646
|
+
}, inputs: { id: "id", name: "name", placeholder: "placeholder", label: "label", description: "description", range: "range", min: "min", max: "max", autocomplete: "autocomplete", weekdayLabels: "weekdayLabels", monthLabels: "monthLabels", ariaOpenDatepickerLabel: "ariaOpenDatepickerLabel" }, outputs: { blur: "blur" }, features: [i0.ɵɵProvidersFeature([
|
|
619
647
|
{
|
|
620
648
|
provide: NG_VALUE_ACCESSOR,
|
|
621
649
|
useExisting: forwardRef((() => DatepickerComponent)),
|
|
@@ -626,27 +654,24 @@ class DatepickerComponent {
|
|
|
626
654
|
useExisting: forwardRef((() => DatepickerComponent)),
|
|
627
655
|
multi: true,
|
|
628
656
|
},
|
|
629
|
-
]), i0.ɵɵNgOnChangesFeature], decls:
|
|
657
|
+
]), i0.ɵɵNgOnChangesFeature], decls: 8, vars: 11, consts: [["aria-haspopup", "grid", "auiFlyout", "", 1, "aui-datepicker", "a-input", "has-icon-right"], ["class", "a-input__label", 3, "for", 4, "ngIf"], ["class", "a-input__description", 4, "ngIf"], [1, "a-input__wrapper"], ["label", "Pick date", "description", "Description", "type", "text", 3, "autocomplete", "formControl", "id", "name", "placeholder", "blur"], [4, "ngIf"], [1, "a-input__label", 3, "for"], [1, "a-input__description"], ["name", "ai-calendar"], ["auiFlyoutAction", "", "name", "ai-calendar", "className", "is-clickable", "role", "button", "tabindex", "0", 3, "openOnFocus"], ["auiFlyoutZone", "", "role", "dialog", 1, "m-datepicker", "m-datepicker--fixed"], [3, "range", "selectedDate", "interval", "weekdayLabels", "monthLabels", "selectDate"]], template: function DatepickerComponent_Template(rf, ctx) {
|
|
630
658
|
if (rf & 1) {
|
|
631
|
-
i0.ɵɵelementStart(0, "div", 0)
|
|
632
|
-
i0.ɵɵ
|
|
633
|
-
i0.ɵɵ
|
|
634
|
-
i0.ɵɵelementStart(3, "
|
|
635
|
-
i0.ɵɵ
|
|
636
|
-
i0.ɵɵelementEnd();
|
|
637
|
-
i0.ɵɵelementStart(5, "div", 3)(6, "input", 4);
|
|
638
|
-
i0.ɵɵlistener("blur", function DatepickerComponent_Template_input_blur_6_listener($event) { return ctx.handleBlur($event); });
|
|
659
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
660
|
+
i0.ɵɵtemplate(1, DatepickerComponent_label_1_Template, 2, 2, "label", 1);
|
|
661
|
+
i0.ɵɵtemplate(2, DatepickerComponent_small_2_Template, 2, 1, "small", 2);
|
|
662
|
+
i0.ɵɵelementStart(3, "div", 3)(4, "input", 4);
|
|
663
|
+
i0.ɵɵlistener("blur", function DatepickerComponent_Template_input_blur_4_listener($event) { return ctx.handleBlur($event); });
|
|
639
664
|
i0.ɵɵelementEnd();
|
|
640
|
-
i0.ɵɵtemplate(
|
|
641
|
-
i0.ɵɵtemplate(
|
|
642
|
-
i0.ɵɵtemplate(
|
|
665
|
+
i0.ɵɵtemplate(5, DatepickerComponent_ng_container_5_Template, 2, 0, "ng-container", 5);
|
|
666
|
+
i0.ɵɵtemplate(6, DatepickerComponent_ng_container_6_Template, 2, 2, "ng-container", 5);
|
|
667
|
+
i0.ɵɵtemplate(7, DatepickerComponent_ng_container_7_Template, 3, 5, "ng-container", 5);
|
|
643
668
|
i0.ɵɵelementEnd()();
|
|
644
669
|
}
|
|
645
670
|
if (rf & 2) {
|
|
646
|
-
i0.ɵɵadvance(
|
|
647
|
-
i0.ɵɵ
|
|
648
|
-
i0.ɵɵadvance(
|
|
649
|
-
i0.ɵɵ
|
|
671
|
+
i0.ɵɵadvance(1);
|
|
672
|
+
i0.ɵɵproperty("ngIf", ctx.label);
|
|
673
|
+
i0.ɵɵadvance(1);
|
|
674
|
+
i0.ɵɵproperty("ngIf", ctx.description);
|
|
650
675
|
i0.ɵɵadvance(2);
|
|
651
676
|
i0.ɵɵpropertyInterpolate("id", ctx.id);
|
|
652
677
|
i0.ɵɵpropertyInterpolate("name", ctx.name);
|
|
@@ -675,7 +700,7 @@ class DatepickerComponent {
|
|
|
675
700
|
useExisting: forwardRef((() => DatepickerComponent)),
|
|
676
701
|
multi: true,
|
|
677
702
|
},
|
|
678
|
-
], template: "<div aria-haspopup=\"grid\" auiFlyout class=\"aui-datepicker a-input has-icon-right\">\n <label class=\"a-input__label\" for=\"id\">{{ label }}</label>\n <small class=\"a-input__description\"
|
|
703
|
+
], template: "<div aria-haspopup=\"grid\" auiFlyout class=\"aui-datepicker a-input has-icon-right\">\n <label class=\"a-input__label\" for=\"{{ id }}\" *ngIf=\"label\">{{ label }}</label>\n <small class=\"a-input__description\" *ngIf=\"description\"> {{ description }}</small>\n <div class=\"a-input__wrapper\">\n <input\n (blur)=\"handleBlur($event)\"\n [attr.disabled]=\"isDisabled ? true : null\"\n [autocomplete]=\"autocomplete\"\n [formControl]=\"formControl\"\n id=\"{{ id }}\"\n label=\"Pick date\"\n description=\"Description\"\n name=\"{{ name }}\"\n placeholder=\"{{ placeholder }}\"\n type=\"text\"\n />\n <ng-container *ngIf=\"isDisabled\">\n <aui-icon\n name=\"ai-calendar\"\n />\n </ng-container>\n <ng-container *ngIf=\"!isDisabled\">\n <aui-icon\n auiFlyoutAction\n [openOnFocus]=\"false\"\n name=\"ai-calendar\"\n className=\"is-clickable\"\n role=\"button\"\n [attr.aria-label]=\"ariaOpenDatepickerLabel\"\n tabindex=\"0\"\n />\n </ng-container>\n\n <ng-container *ngIf=\"!isDisabled\">\n <div auiFlyoutZone class=\"m-datepicker m-datepicker--fixed\" role=\"dialog\">\n <aui-calendar\n (selectDate)=\"selectDateFromCalendar($event)\"\n [range]=\"range\"\n [selectedDate]=\"selectedDate\"\n [interval]=\"interval\"\n [weekdayLabels]=\"weekdayLabels\"\n [monthLabels]=\"monthLabels\"\n ></aui-calendar>\n </div>\n </ng-container>\n </div>\n</div>\n", styles: [":host,.aui-datepicker{display:block}.m-flyout.is-open .m-datepicker{opacity:1;transform:translateY(calc(var(--BORDER-WIDTH) * -1));transition-delay:0s;visibility:visible}\n"] }]
|
|
679
704
|
}], function () {
|
|
680
705
|
return [{ type: undefined, decorators: [{
|
|
681
706
|
type: Inject,
|
|
@@ -712,6 +737,8 @@ class DatepickerComponent {
|
|
|
712
737
|
type: Input
|
|
713
738
|
}], monthLabels: [{
|
|
714
739
|
type: Input
|
|
740
|
+
}], ariaOpenDatepickerLabel: [{
|
|
741
|
+
type: Input
|
|
715
742
|
}], blur: [{
|
|
716
743
|
type: Output
|
|
717
744
|
}] });
|
|
@@ -1495,37 +1522,57 @@ var TimepickerInputSize;
|
|
|
1495
1522
|
TimepickerInputSize["Large"] = "large";
|
|
1496
1523
|
})(TimepickerInputSize || (TimepickerInputSize = {}));
|
|
1497
1524
|
|
|
1498
|
-
function
|
|
1525
|
+
function TimepickerComponent_div_1_label_1_Template(rf, ctx) {
|
|
1499
1526
|
if (rf & 1) {
|
|
1500
|
-
i0.ɵɵ
|
|
1527
|
+
i0.ɵɵelementStart(0, "label", 7);
|
|
1528
|
+
i0.ɵɵtext(1);
|
|
1529
|
+
i0.ɵɵelementEnd();
|
|
1530
|
+
}
|
|
1531
|
+
if (rf & 2) {
|
|
1532
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
1533
|
+
i0.ɵɵadvance(1);
|
|
1534
|
+
i0.ɵɵtextInterpolate(ctx_r2.label);
|
|
1501
1535
|
}
|
|
1502
1536
|
}
|
|
1503
|
-
|
|
1504
|
-
const _c1$3 = function (a0) { return { "is-error": a0 }; };
|
|
1505
|
-
function TimepickerComponent_div_1_Template(rf, ctx) {
|
|
1537
|
+
function TimepickerComponent_div_1_small_2_aui_icon_1_Template(rf, ctx) {
|
|
1506
1538
|
if (rf & 1) {
|
|
1507
|
-
i0.ɵɵ
|
|
1539
|
+
i0.ɵɵelement(0, "aui-icon", 10);
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
const _c0$3 = function (a0) { return { "is-error": a0 }; };
|
|
1543
|
+
function TimepickerComponent_div_1_small_2_Template(rf, ctx) {
|
|
1544
|
+
if (rf & 1) {
|
|
1545
|
+
i0.ɵɵelementStart(0, "small", 8);
|
|
1546
|
+
i0.ɵɵtemplate(1, TimepickerComponent_div_1_small_2_aui_icon_1_Template, 1, 0, "aui-icon", 9);
|
|
1508
1547
|
i0.ɵɵtext(2);
|
|
1509
1548
|
i0.ɵɵelementEnd();
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
i0.ɵɵ
|
|
1513
|
-
i0.ɵɵ
|
|
1514
|
-
i0.ɵɵ
|
|
1549
|
+
}
|
|
1550
|
+
if (rf & 2) {
|
|
1551
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
1552
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$3, ctx_r3.hasError));
|
|
1553
|
+
i0.ɵɵadvance(1);
|
|
1554
|
+
i0.ɵɵproperty("ngIf", ctx_r3.hasError);
|
|
1555
|
+
i0.ɵɵadvance(1);
|
|
1556
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r3.description, "");
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
const _c1$3 = function (a0) { return { "has-error": a0 }; };
|
|
1560
|
+
function TimepickerComponent_div_1_Template(rf, ctx) {
|
|
1561
|
+
if (rf & 1) {
|
|
1562
|
+
i0.ɵɵelementStart(0, "div", 3);
|
|
1563
|
+
i0.ɵɵtemplate(1, TimepickerComponent_div_1_label_1_Template, 2, 1, "label", 4);
|
|
1564
|
+
i0.ɵɵtemplate(2, TimepickerComponent_div_1_small_2_Template, 3, 5, "small", 5);
|
|
1565
|
+
i0.ɵɵelement(3, "input", 6);
|
|
1515
1566
|
i0.ɵɵelementEnd();
|
|
1516
1567
|
}
|
|
1517
1568
|
if (rf & 2) {
|
|
1518
1569
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
1519
1570
|
i0.ɵɵclassMap("a-input--" + ctx_r0.size);
|
|
1520
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
1521
|
-
i0.ɵɵadvance(2);
|
|
1522
|
-
i0.ɵɵtextInterpolate(ctx_r0.label);
|
|
1523
|
-
i0.ɵɵadvance(1);
|
|
1524
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$3, ctx_r0.hasError));
|
|
1571
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$3, ctx_r0.hasError));
|
|
1525
1572
|
i0.ɵɵadvance(1);
|
|
1526
|
-
i0.ɵɵproperty("ngIf", ctx_r0.
|
|
1573
|
+
i0.ɵɵproperty("ngIf", ctx_r0.label);
|
|
1527
1574
|
i0.ɵɵadvance(1);
|
|
1528
|
-
i0.ɵɵ
|
|
1575
|
+
i0.ɵɵproperty("ngIf", ctx_r0.description);
|
|
1529
1576
|
i0.ɵɵadvance(1);
|
|
1530
1577
|
i0.ɵɵproperty("formControl", ctx_r0.timeControl)("id", ctx_r0.id);
|
|
1531
1578
|
i0.ɵɵattribute("aria-label", ctx_r0.ariaLabelHours + ":" + ctx_r0.ariaLabelMinutes);
|
|
@@ -1533,45 +1580,45 @@ function TimepickerComponent_div_1_Template(rf, ctx) {
|
|
|
1533
1580
|
}
|
|
1534
1581
|
function TimepickerComponent_div_2_option_6_Template(rf, ctx) {
|
|
1535
1582
|
if (rf & 1) {
|
|
1536
|
-
i0.ɵɵelementStart(0, "option",
|
|
1583
|
+
i0.ɵɵelementStart(0, "option", 19);
|
|
1537
1584
|
i0.ɵɵtext(1);
|
|
1538
1585
|
i0.ɵɵelementEnd();
|
|
1539
1586
|
}
|
|
1540
1587
|
if (rf & 2) {
|
|
1541
|
-
const
|
|
1542
|
-
i0.ɵɵproperty("value",
|
|
1588
|
+
const hour_r7 = ctx.$implicit;
|
|
1589
|
+
i0.ɵɵproperty("value", hour_r7);
|
|
1543
1590
|
i0.ɵɵadvance(1);
|
|
1544
|
-
i0.ɵɵtextInterpolate(
|
|
1591
|
+
i0.ɵɵtextInterpolate(hour_r7);
|
|
1545
1592
|
}
|
|
1546
1593
|
}
|
|
1547
1594
|
function TimepickerComponent_div_2_option_13_Template(rf, ctx) {
|
|
1548
1595
|
if (rf & 1) {
|
|
1549
|
-
i0.ɵɵelementStart(0, "option",
|
|
1596
|
+
i0.ɵɵelementStart(0, "option", 19);
|
|
1550
1597
|
i0.ɵɵtext(1);
|
|
1551
1598
|
i0.ɵɵelementEnd();
|
|
1552
1599
|
}
|
|
1553
1600
|
if (rf & 2) {
|
|
1554
|
-
const
|
|
1555
|
-
i0.ɵɵproperty("value",
|
|
1601
|
+
const minute_r8 = ctx.$implicit;
|
|
1602
|
+
i0.ɵɵproperty("value", minute_r8);
|
|
1556
1603
|
i0.ɵɵadvance(1);
|
|
1557
|
-
i0.ɵɵtextInterpolate(
|
|
1604
|
+
i0.ɵɵtextInterpolate(minute_r8);
|
|
1558
1605
|
}
|
|
1559
1606
|
}
|
|
1560
1607
|
function TimepickerComponent_div_2_Template(rf, ctx) {
|
|
1561
1608
|
if (rf & 1) {
|
|
1562
|
-
i0.ɵɵelementStart(0, "div",
|
|
1609
|
+
i0.ɵɵelementStart(0, "div", 11)(1, "div", 12)(2, "div", 13)(3, "select", 14)(4, "option", 15);
|
|
1563
1610
|
i0.ɵɵtext(5);
|
|
1564
1611
|
i0.ɵɵelementEnd();
|
|
1565
|
-
i0.ɵɵtemplate(6, TimepickerComponent_div_2_option_6_Template, 2, 2, "option",
|
|
1612
|
+
i0.ɵɵtemplate(6, TimepickerComponent_div_2_option_6_Template, 2, 2, "option", 16);
|
|
1566
1613
|
i0.ɵɵelementEnd();
|
|
1567
|
-
i0.ɵɵelement(7, "aui-icon",
|
|
1614
|
+
i0.ɵɵelement(7, "aui-icon", 17);
|
|
1568
1615
|
i0.ɵɵelementEnd()();
|
|
1569
|
-
i0.ɵɵelementStart(8, "div",
|
|
1616
|
+
i0.ɵɵelementStart(8, "div", 12)(9, "div", 13)(10, "select", 18)(11, "option", 15);
|
|
1570
1617
|
i0.ɵɵtext(12);
|
|
1571
1618
|
i0.ɵɵelementEnd();
|
|
1572
|
-
i0.ɵɵtemplate(13, TimepickerComponent_div_2_option_13_Template, 2, 2, "option",
|
|
1619
|
+
i0.ɵɵtemplate(13, TimepickerComponent_div_2_option_13_Template, 2, 2, "option", 16);
|
|
1573
1620
|
i0.ɵɵelementEnd();
|
|
1574
|
-
i0.ɵɵelement(14, "aui-icon",
|
|
1621
|
+
i0.ɵɵelement(14, "aui-icon", 17);
|
|
1575
1622
|
i0.ɵɵelementEnd()()();
|
|
1576
1623
|
}
|
|
1577
1624
|
if (rf & 2) {
|
|
@@ -1579,7 +1626,7 @@ function TimepickerComponent_div_2_Template(rf, ctx) {
|
|
|
1579
1626
|
i0.ɵɵproperty("formGroup", ctx_r1.fallbackForm);
|
|
1580
1627
|
i0.ɵɵadvance(1);
|
|
1581
1628
|
i0.ɵɵclassMap("a-input--" + ctx_r1.size);
|
|
1582
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14,
|
|
1629
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c1$3, ctx_r1.hasError));
|
|
1583
1630
|
i0.ɵɵadvance(2);
|
|
1584
1631
|
i0.ɵɵproperty("id", ctx_r1.id);
|
|
1585
1632
|
i0.ɵɵattribute("aria-label", ctx_r1.ariaLabelHours);
|
|
@@ -1589,7 +1636,7 @@ function TimepickerComponent_div_2_Template(rf, ctx) {
|
|
|
1589
1636
|
i0.ɵɵproperty("ngForOf", ctx_r1.hours);
|
|
1590
1637
|
i0.ɵɵadvance(2);
|
|
1591
1638
|
i0.ɵɵclassMap("a-input--" + ctx_r1.size);
|
|
1592
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16,
|
|
1639
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c1$3, ctx_r1.hasError));
|
|
1593
1640
|
i0.ɵɵadvance(2);
|
|
1594
1641
|
i0.ɵɵattribute("aria-label", ctx_r1.ariaLabelMinutes);
|
|
1595
1642
|
i0.ɵɵadvance(2);
|
|
@@ -1688,10 +1735,10 @@ class TimepickerComponent {
|
|
|
1688
1735
|
useExisting: forwardRef((() => TimepickerComponent)),
|
|
1689
1736
|
multi: true,
|
|
1690
1737
|
},
|
|
1691
|
-
])], decls: 3, vars: 2, consts: [[1, "m-timepicker"], ["class", "a-input", 3, "class", "ngClass", 4, "ngIf"], [3, "formGroup", 4, "ngIf"], [1, "a-input", 3, "ngClass"], ["for", "id",
|
|
1738
|
+
])], decls: 3, vars: 2, consts: [[1, "m-timepicker"], ["class", "a-input", 3, "class", "ngClass", 4, "ngIf"], [3, "formGroup", 4, "ngIf"], [1, "a-input", 3, "ngClass"], ["class", "a-input__label", "for", "id", 4, "ngIf"], ["class", "a-input__description", "id", "id", 3, "ngClass", 4, "ngIf"], ["type", "time", 3, "formControl", "id"], ["for", "id", 1, "a-input__label"], ["id", "id", 1, "a-input__description", 3, "ngClass"], ["name", "ai-alert-triangle", 4, "ngIf"], ["name", "ai-alert-triangle"], [3, "formGroup"], [1, "a-input", "has-icon-right", 3, "ngClass"], [1, "a-input__wrapper"], ["formControlName", "hours", 3, "id"], ["disabled", "", "value", "null"], [3, "value", 4, "ngFor", "ngForOf"], ["name", "ai-arrow-down-1"], ["formControlName", "minutes"], [3, "value"]], template: function TimepickerComponent_Template(rf, ctx) {
|
|
1692
1739
|
if (rf & 1) {
|
|
1693
1740
|
i0.ɵɵelementStart(0, "div", 0);
|
|
1694
|
-
i0.ɵɵtemplate(1, TimepickerComponent_div_1_Template,
|
|
1741
|
+
i0.ɵɵtemplate(1, TimepickerComponent_div_1_Template, 4, 10, "div", 1);
|
|
1695
1742
|
i0.ɵɵtemplate(2, TimepickerComponent_div_2_Template, 15, 18, "div", 2);
|
|
1696
1743
|
i0.ɵɵelementEnd();
|
|
1697
1744
|
}
|
|
@@ -1711,7 +1758,7 @@ class TimepickerComponent {
|
|
|
1711
1758
|
useExisting: forwardRef((() => TimepickerComponent)),
|
|
1712
1759
|
multi: true,
|
|
1713
1760
|
},
|
|
1714
|
-
], template: "<div class=\"m-timepicker\">\n <div *ngIf=\"!shouldUseFallback\" [class]=\"'a-input--' + size\" [ngClass]=\"{ 'has-error': hasError }\" class=\"a-input\">\n <label class=\"a-input__label\" for=\"id\">{{ label }}</label>\n <small class=\"a-input__description\" id=\"id\" [ngClass]=\"{ 'is-error': hasError }\">\n <aui-icon *ngIf=\"hasError\" name=\"ai-alert-triangle\"></aui-icon>\n {{ description }}</small\n >\n <input\n [attr.aria-label]=\"ariaLabelHours + ':' + ariaLabelMinutes\"\n [formControl]=\"timeControl\"\n [id]=\"id\"\n type=\"time\"\n />\n </div>\n\n <div *ngIf=\"shouldUseFallback\" [formGroup]=\"fallbackForm\">\n <div [class]=\"'a-input--' + size\" [ngClass]=\"{ 'has-error': hasError }\" class=\"a-input has-icon-right\">\n <div class=\"a-input__wrapper\">\n <select [attr.aria-label]=\"ariaLabelHours\" [id]=\"id\" formControlName=\"hours\">\n <option disabled value=\"null\">{{ hoursPlaceholder }}</option>\n <option *ngFor=\"let hour of hours\" [value]=\"hour\">{{ hour }}</option>\n </select>\n <aui-icon name=\"ai-arrow-down-1\"></aui-icon>\n </div>\n </div>\n\n <div [class]=\"'a-input--' + size\" [ngClass]=\"{ 'has-error': hasError }\" class=\"a-input has-icon-right\">\n <div class=\"a-input__wrapper\">\n <select [attr.aria-label]=\"ariaLabelMinutes\" formControlName=\"minutes\">\n <option disabled value=\"null\">{{ minutesPlaceholder }}</option>\n <option *ngFor=\"let minute of minutes\" [value]=\"minute\">{{ minute }}</option>\n </select>\n <aui-icon name=\"ai-arrow-down-1\"></aui-icon>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}\n"] }]
|
|
1761
|
+
], template: "<div class=\"m-timepicker\">\n <div *ngIf=\"!shouldUseFallback\" [class]=\"'a-input--' + size\" [ngClass]=\"{ 'has-error': hasError }\" class=\"a-input\">\n <label class=\"a-input__label\" for=\"id\" *ngIf=\"label\">{{ label }}</label>\n <small class=\"a-input__description\" id=\"id\" [ngClass]=\"{ 'is-error': hasError }\" *ngIf=\"description\">\n <aui-icon *ngIf=\"hasError\" name=\"ai-alert-triangle\"></aui-icon>\n {{ description }}</small\n >\n <input\n [attr.aria-label]=\"ariaLabelHours + ':' + ariaLabelMinutes\"\n [formControl]=\"timeControl\"\n [id]=\"id\"\n type=\"time\"\n />\n </div>\n\n <div *ngIf=\"shouldUseFallback\" [formGroup]=\"fallbackForm\">\n <div [class]=\"'a-input--' + size\" [ngClass]=\"{ 'has-error': hasError }\" class=\"a-input has-icon-right\">\n <div class=\"a-input__wrapper\">\n <select [attr.aria-label]=\"ariaLabelHours\" [id]=\"id\" formControlName=\"hours\">\n <option disabled value=\"null\">{{ hoursPlaceholder }}</option>\n <option *ngFor=\"let hour of hours\" [value]=\"hour\">{{ hour }}</option>\n </select>\n <aui-icon name=\"ai-arrow-down-1\"></aui-icon>\n </div>\n </div>\n\n <div [class]=\"'a-input--' + size\" [ngClass]=\"{ 'has-error': hasError }\" class=\"a-input has-icon-right\">\n <div class=\"a-input__wrapper\">\n <select [attr.aria-label]=\"ariaLabelMinutes\" formControlName=\"minutes\">\n <option disabled value=\"null\">{{ minutesPlaceholder }}</option>\n <option *ngFor=\"let minute of minutes\" [value]=\"minute\">{{ minute }}</option>\n </select>\n <aui-icon name=\"ai-arrow-down-1\"></aui-icon>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}\n"] }]
|
|
1715
1762
|
}], function () { return [{ type: i1$1.UntypedFormBuilder }, { type: i0.Renderer2 }]; }, { id: [{
|
|
1716
1763
|
type: Input
|
|
1717
1764
|
}], hoursPlaceholder: [{
|