@anguless/angulux 22.0.0-rc.0 → 22.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +291 -0
- package/fesm2022/anguless-angulux-api.mjs +40 -82
- package/fesm2022/anguless-angulux-api.mjs.map +1 -1
- package/fesm2022/anguless-angulux-autofocus.mjs +7 -7
- package/fesm2022/anguless-angulux-avatar.mjs +10 -10
- package/fesm2022/anguless-angulux-avatargroup.mjs +10 -10
- package/fesm2022/anguless-angulux-badge.mjs +13 -13
- package/fesm2022/anguless-angulux-base.mjs +3 -3
- package/fesm2022/anguless-angulux-basecomponent.mjs +6 -6
- package/fesm2022/anguless-angulux-baseeditableholder.mjs +3 -3
- package/fesm2022/anguless-angulux-baseinput.mjs +3 -3
- package/fesm2022/anguless-angulux-basemodelholder.mjs +3 -3
- package/fesm2022/anguless-angulux-bind.mjs +7 -7
- package/fesm2022/anguless-angulux-button.mjs +43 -74
- package/fesm2022/anguless-angulux-button.mjs.map +1 -1
- package/fesm2022/anguless-angulux-card.mjs +42 -102
- package/fesm2022/anguless-angulux-card.mjs.map +1 -1
- package/fesm2022/anguless-angulux-chart.mjs +10 -10
- package/fesm2022/anguless-angulux-checkbox.mjs +18 -38
- package/fesm2022/anguless-angulux-checkbox.mjs.map +1 -1
- package/fesm2022/anguless-angulux-chip.mjs +20 -40
- package/fesm2022/anguless-angulux-chip.mjs.map +1 -1
- package/fesm2022/anguless-angulux-colorpicker.mjs +10 -10
- package/fesm2022/anguless-angulux-config.mjs +6 -6
- package/fesm2022/anguless-angulux-confirmdialog.mjs +52 -117
- package/fesm2022/anguless-angulux-confirmdialog.mjs.map +1 -1
- package/fesm2022/anguless-angulux-datepicker.mjs +104 -212
- package/fesm2022/anguless-angulux-datepicker.mjs.map +1 -1
- package/fesm2022/anguless-angulux-dialog.mjs +50 -114
- package/fesm2022/anguless-angulux-dialog.mjs.map +1 -1
- package/fesm2022/anguless-angulux-divider.mjs +10 -10
- package/fesm2022/anguless-angulux-dom.mjs +7 -0
- package/fesm2022/anguless-angulux-dom.mjs.map +1 -1
- package/fesm2022/anguless-angulux-drawer.mjs +34 -82
- package/fesm2022/anguless-angulux-drawer.mjs.map +1 -1
- package/fesm2022/anguless-angulux-fileupload.mjs +83 -159
- package/fesm2022/anguless-angulux-fileupload.mjs.map +1 -1
- package/fesm2022/anguless-angulux-fluid.mjs +10 -10
- package/fesm2022/anguless-angulux-focustrap.mjs +7 -7
- package/fesm2022/anguless-angulux-iconfield.mjs +10 -10
- package/fesm2022/anguless-angulux-icons-angledoubledown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angledoubleleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angledoubleright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angledoubleup.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angledown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angleleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angleright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-angleup.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowdown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowdownleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowdownright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-arrowup.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-ban.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-bars.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-baseicon.mjs +6 -6
- package/fesm2022/anguless-angulux-icons-blank.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-calendar.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-caretleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-caretright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-check.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-chevrondown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-chevronleft.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-chevronright.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-chevronup.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-exclamationtriangle.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-eye.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-eyeslash.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-filter.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-filterfill.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-filterslash.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-home.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-infocircle.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-minus.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-pencil.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-plus.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-refresh.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-search.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-searchminus.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-searchplus.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-sortalt.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-sortamountdown.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-sortamountupalt.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-spinner.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-star.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-starfill.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-thlarge.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-times.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-timescircle.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-trash.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-undo.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-upload.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-windowmaximize.mjs +3 -3
- package/fesm2022/anguless-angulux-icons-windowminimize.mjs +3 -3
- package/fesm2022/anguless-angulux-inputicon.mjs +10 -10
- package/fesm2022/anguless-angulux-inputnumber.mjs +38 -69
- package/fesm2022/anguless-angulux-inputnumber.mjs.map +1 -1
- package/fesm2022/anguless-angulux-inputtext.mjs +10 -10
- package/fesm2022/anguless-angulux-menu.mjs +44 -90
- package/fesm2022/anguless-angulux-menu.mjs.map +1 -1
- package/fesm2022/anguless-angulux-message.mjs +30 -61
- package/fesm2022/anguless-angulux-message.mjs.map +1 -1
- package/fesm2022/anguless-angulux-motion.mjs +13 -13
- package/fesm2022/anguless-angulux-multiselect.mjs +103 -248
- package/fesm2022/anguless-angulux-multiselect.mjs.map +1 -1
- package/fesm2022/anguless-angulux-overlay.mjs +18 -39
- package/fesm2022/anguless-angulux-overlay.mjs.map +1 -1
- package/fesm2022/anguless-angulux-paginator.mjs +57 -103
- package/fesm2022/anguless-angulux-paginator.mjs.map +1 -1
- package/fesm2022/anguless-angulux-password.mjs +49 -104
- package/fesm2022/anguless-angulux-password.mjs.map +1 -1
- package/fesm2022/anguless-angulux-popover.mjs +16 -33
- package/fesm2022/anguless-angulux-popover.mjs.map +1 -1
- package/fesm2022/anguless-angulux-progressbar.mjs +18 -37
- package/fesm2022/anguless-angulux-progressbar.mjs.map +1 -1
- package/fesm2022/anguless-angulux-progressspinner.mjs +10 -10
- package/fesm2022/anguless-angulux-radiobutton.mjs +13 -13
- package/fesm2022/anguless-angulux-ripple.mjs +10 -10
- package/fesm2022/anguless-angulux-scroller.mjs +36 -77
- package/fesm2022/anguless-angulux-scroller.mjs.map +1 -1
- package/fesm2022/anguless-angulux-select.mjs +85 -225
- package/fesm2022/anguless-angulux-select.mjs.map +1 -1
- package/fesm2022/anguless-angulux-selectbutton.mjs +18 -35
- package/fesm2022/anguless-angulux-selectbutton.mjs.map +1 -1
- package/fesm2022/anguless-angulux-skeleton.mjs +10 -10
- package/fesm2022/anguless-angulux-splitbutton.mjs +23 -50
- package/fesm2022/anguless-angulux-splitbutton.mjs.map +1 -1
- package/fesm2022/anguless-angulux-table.mjs +332 -638
- package/fesm2022/anguless-angulux-table.mjs.map +1 -1
- package/fesm2022/anguless-angulux-tabs.mjs +47 -71
- package/fesm2022/anguless-angulux-tabs.mjs.map +1 -1
- package/fesm2022/anguless-angulux-tag.mjs +20 -37
- package/fesm2022/anguless-angulux-tag.mjs.map +1 -1
- package/fesm2022/anguless-angulux-textarea.mjs +10 -10
- package/fesm2022/anguless-angulux-tieredmenu.mjs +28 -55
- package/fesm2022/anguless-angulux-tieredmenu.mjs.map +1 -1
- package/fesm2022/anguless-angulux-timeline.mjs +24 -55
- package/fesm2022/anguless-angulux-timeline.mjs.map +1 -1
- package/fesm2022/anguless-angulux-toast.mjs +24 -49
- package/fesm2022/anguless-angulux-toast.mjs.map +1 -1
- package/fesm2022/anguless-angulux-togglebutton.mjs +23 -50
- package/fesm2022/anguless-angulux-togglebutton.mjs.map +1 -1
- package/fesm2022/anguless-angulux-toggleswitch.mjs +18 -38
- package/fesm2022/anguless-angulux-toggleswitch.mjs.map +1 -1
- package/fesm2022/anguless-angulux-tooltip.mjs +10 -10
- package/fesm2022/anguless-angulux-treetable.mjs +229 -428
- package/fesm2022/anguless-angulux-treetable.mjs.map +1 -1
- package/fesm2022/anguless-angulux-usestyle.mjs +3 -3
- package/package.json +6 -6
- package/types/anguless-angulux-api.d.ts +17 -21
- package/types/anguless-angulux-button.d.ts +6 -12
- package/types/anguless-angulux-card.d.ts +8 -17
- package/types/anguless-angulux-checkbox.d.ts +4 -8
- package/types/anguless-angulux-chip.d.ts +4 -8
- package/types/anguless-angulux-confirmdialog.d.ts +19 -29
- package/types/anguless-angulux-datepicker.d.ts +27 -42
- package/types/anguless-angulux-dialog.d.ts +10 -20
- package/types/anguless-angulux-drawer.d.ts +8 -16
- package/types/anguless-angulux-fileupload.d.ts +27 -38
- package/types/anguless-angulux-inputnumber.d.ts +6 -12
- package/types/anguless-angulux-menu.d.ts +27 -39
- package/types/anguless-angulux-message.d.ts +6 -12
- package/types/anguless-angulux-multiselect.d.ts +20 -41
- package/types/anguless-angulux-overlay.d.ts +4 -7
- package/types/anguless-angulux-paginator.d.ts +17 -25
- package/types/anguless-angulux-password.d.ts +30 -38
- package/types/anguless-angulux-popover.d.ts +4 -7
- package/types/anguless-angulux-progressbar.d.ts +4 -8
- package/types/anguless-angulux-scroller.d.ts +7 -13
- package/types/anguless-angulux-select.d.ts +16 -49
- package/types/anguless-angulux-selectbutton.d.ts +4 -8
- package/types/anguless-angulux-splitbutton.d.ts +17 -21
- package/types/anguless-angulux-table.d.ts +42 -93
- package/types/anguless-angulux-tabs.d.ts +4 -9
- package/types/anguless-angulux-tag.d.ts +4 -8
- package/types/anguless-angulux-tieredmenu.d.ts +5 -9
- package/types/anguless-angulux-timeline.d.ts +5 -11
- package/types/anguless-angulux-toast.d.ts +22 -26
- package/types/anguless-angulux-togglebutton.d.ts +5 -11
- package/types/anguless-angulux-toggleswitch.d.ts +4 -8
- package/types/anguless-angulux-treetable.d.ts +40 -62
|
@@ -2,11 +2,11 @@ export * from '@anguless/angulux/types/datepicker';
|
|
|
2
2
|
import * as i3 from '@angular/common';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable, forwardRef, InjectionToken, inject, input, computed, EventEmitter, numberAttribute, booleanAttribute,
|
|
5
|
+
import { Injectable, forwardRef, InjectionToken, inject, input, computed, EventEmitter, contentChild, numberAttribute, booleanAttribute, ViewChild, Output, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
6
6
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
7
|
import { uuid, getOuterWidth, isDate, findSingle, getFocusableElements, hasClass, getIndex, find, isNotEmpty, addStyle, appendChild, absolutePosition, relativePosition, addClass, setAttribute, isTouchDevice } from '@anguless/angulux-utils';
|
|
8
8
|
import * as i1 from '@anguless/angulux/api';
|
|
9
|
-
import { TranslationKeys, SharedModule
|
|
9
|
+
import { TranslationKeys, SharedModule } from '@anguless/angulux/api';
|
|
10
10
|
import { AutoFocus } from '@anguless/angulux/autofocus';
|
|
11
11
|
import { PARENT_INSTANCE } from '@anguless/angulux/basecomponent';
|
|
12
12
|
import { BaseInput } from '@anguless/angulux/baseinput';
|
|
@@ -131,10 +131,10 @@ class DatePickerStyle extends BaseStyle {
|
|
|
131
131
|
style = style;
|
|
132
132
|
classes = classes;
|
|
133
133
|
inlineStyles = inlineStyles;
|
|
134
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
135
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.
|
|
134
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DatePickerStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
135
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DatePickerStyle });
|
|
136
136
|
}
|
|
137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DatePickerStyle, decorators: [{
|
|
138
138
|
type: Injectable
|
|
139
139
|
}] });
|
|
140
140
|
/**
|
|
@@ -853,84 +853,71 @@ class DatePicker extends BaseInput {
|
|
|
853
853
|
* @param {DatePickerDateTemplateContext} context - date template context.
|
|
854
854
|
* @group Templates
|
|
855
855
|
*/
|
|
856
|
-
dateTemplate;
|
|
856
|
+
dateTemplate = contentChild('date', { ...(ngDevMode ? { debugName: "dateTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
857
857
|
/**
|
|
858
858
|
* Custom template for header section.
|
|
859
859
|
* @group Templates
|
|
860
860
|
*/
|
|
861
|
-
headerTemplate;
|
|
861
|
+
headerTemplate = contentChild('header', { ...(ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
862
862
|
/**
|
|
863
863
|
* Custom template for footer section.
|
|
864
864
|
* @group Templates
|
|
865
865
|
*/
|
|
866
|
-
footerTemplate;
|
|
866
|
+
footerTemplate = contentChild('footer', { ...(ngDevMode ? { debugName: "footerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
867
867
|
/**
|
|
868
868
|
* Custom template for disabled date cells.
|
|
869
869
|
* @param {DatePickerDisabledDateTemplateContext} context - disabled date template context.
|
|
870
870
|
* @group Templates
|
|
871
871
|
*/
|
|
872
|
-
disabledDateTemplate;
|
|
872
|
+
disabledDateTemplate = contentChild('disabledDate', { ...(ngDevMode ? { debugName: "disabledDateTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
873
873
|
/**
|
|
874
874
|
* Custom template for decade view.
|
|
875
875
|
* @param {DatePickerDecadeTemplateContext} context - decade template context.
|
|
876
876
|
* @group Templates
|
|
877
877
|
*/
|
|
878
|
-
decadeTemplate;
|
|
878
|
+
decadeTemplate = contentChild('decade', { ...(ngDevMode ? { debugName: "decadeTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
879
879
|
/**
|
|
880
880
|
* Custom template for previous month icon.
|
|
881
881
|
* @group Templates
|
|
882
882
|
*/
|
|
883
|
-
previousIconTemplate;
|
|
883
|
+
previousIconTemplate = contentChild('previousicon', { ...(ngDevMode ? { debugName: "previousIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
884
884
|
/**
|
|
885
885
|
* Custom template for next month icon.
|
|
886
886
|
* @group Templates
|
|
887
887
|
*/
|
|
888
|
-
nextIconTemplate;
|
|
888
|
+
nextIconTemplate = contentChild('nexticon', { ...(ngDevMode ? { debugName: "nextIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
889
889
|
/**
|
|
890
890
|
* Custom template for trigger icon.
|
|
891
891
|
* @group Templates
|
|
892
892
|
*/
|
|
893
|
-
triggerIconTemplate;
|
|
893
|
+
triggerIconTemplate = contentChild('triggericon', { ...(ngDevMode ? { debugName: "triggerIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
894
894
|
/**
|
|
895
895
|
* Custom template for clear icon.
|
|
896
896
|
* @group Templates
|
|
897
897
|
*/
|
|
898
|
-
clearIconTemplate;
|
|
898
|
+
clearIconTemplate = contentChild('clearicon', { ...(ngDevMode ? { debugName: "clearIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
899
899
|
/**
|
|
900
900
|
* Custom template for decrement icon.
|
|
901
901
|
* @group Templates
|
|
902
902
|
*/
|
|
903
|
-
decrementIconTemplate;
|
|
903
|
+
decrementIconTemplate = contentChild('decrementicon', { ...(ngDevMode ? { debugName: "decrementIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
904
904
|
/**
|
|
905
905
|
* Custom template for increment icon.
|
|
906
906
|
* @group Templates
|
|
907
907
|
*/
|
|
908
|
-
incrementIconTemplate;
|
|
908
|
+
incrementIconTemplate = contentChild('incrementicon', { ...(ngDevMode ? { debugName: "incrementIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
909
909
|
/**
|
|
910
910
|
* Custom template for input icon.
|
|
911
911
|
* @param {DatePickerInputIconTemplateContext} context - input icon template context.
|
|
912
912
|
* @group Templates
|
|
913
913
|
*/
|
|
914
|
-
inputIconTemplate;
|
|
914
|
+
inputIconTemplate = contentChild('inputicon', { ...(ngDevMode ? { debugName: "inputIconTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
915
915
|
/**
|
|
916
916
|
* Custom template for button bar.
|
|
917
917
|
* @param {DatePickerButtonBarTemplateContext} context - button bar template context.
|
|
918
918
|
* @group Templates
|
|
919
919
|
*/
|
|
920
|
-
buttonBarTemplate;
|
|
921
|
-
_dateTemplate;
|
|
922
|
-
_headerTemplate;
|
|
923
|
-
_footerTemplate;
|
|
924
|
-
_disabledDateTemplate;
|
|
925
|
-
_decadeTemplate;
|
|
926
|
-
_previousIconTemplate;
|
|
927
|
-
_nextIconTemplate;
|
|
928
|
-
_triggerIconTemplate;
|
|
929
|
-
_clearIconTemplate;
|
|
930
|
-
_decrementIconTemplate;
|
|
931
|
-
_incrementIconTemplate;
|
|
932
|
-
_inputIconTemplate;
|
|
933
|
-
_buttonBarTemplate;
|
|
920
|
+
buttonBarTemplate = contentChild('buttonbar', { ...(ngDevMode ? { debugName: "buttonBarTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
934
921
|
_disabledDates;
|
|
935
922
|
_disabledDays;
|
|
936
923
|
selectElement;
|
|
@@ -1011,55 +998,6 @@ class DatePicker extends BaseInput {
|
|
|
1011
998
|
onAfterViewChecked() {
|
|
1012
999
|
this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
|
|
1013
1000
|
}
|
|
1014
|
-
templates;
|
|
1015
|
-
onAfterContentInit() {
|
|
1016
|
-
this.templates.forEach((item) => {
|
|
1017
|
-
switch (item.getType()) {
|
|
1018
|
-
case 'date':
|
|
1019
|
-
this._dateTemplate = item.template;
|
|
1020
|
-
break;
|
|
1021
|
-
case 'decade':
|
|
1022
|
-
this._decadeTemplate = item.template;
|
|
1023
|
-
break;
|
|
1024
|
-
case 'disabledDate':
|
|
1025
|
-
this._disabledDateTemplate = item.template;
|
|
1026
|
-
break;
|
|
1027
|
-
case 'header':
|
|
1028
|
-
this._headerTemplate = item.template;
|
|
1029
|
-
break;
|
|
1030
|
-
case 'inputicon':
|
|
1031
|
-
this._inputIconTemplate = item.template;
|
|
1032
|
-
break;
|
|
1033
|
-
case 'buttonbar':
|
|
1034
|
-
this._buttonBarTemplate = item.template;
|
|
1035
|
-
break;
|
|
1036
|
-
case 'previousicon':
|
|
1037
|
-
this._previousIconTemplate = item.template;
|
|
1038
|
-
break;
|
|
1039
|
-
case 'nexticon':
|
|
1040
|
-
this._nextIconTemplate = item.template;
|
|
1041
|
-
break;
|
|
1042
|
-
case 'triggericon':
|
|
1043
|
-
this._triggerIconTemplate = item.template;
|
|
1044
|
-
break;
|
|
1045
|
-
case 'clearicon':
|
|
1046
|
-
this._clearIconTemplate = item.template;
|
|
1047
|
-
break;
|
|
1048
|
-
case 'decrementicon':
|
|
1049
|
-
this._decrementIconTemplate = item.template;
|
|
1050
|
-
break;
|
|
1051
|
-
case 'incrementicon':
|
|
1052
|
-
this._incrementIconTemplate = item.template;
|
|
1053
|
-
break;
|
|
1054
|
-
case 'footer':
|
|
1055
|
-
this._footerTemplate = item.template;
|
|
1056
|
-
break;
|
|
1057
|
-
default:
|
|
1058
|
-
this._dateTemplate = item.template;
|
|
1059
|
-
break;
|
|
1060
|
-
}
|
|
1061
|
-
});
|
|
1062
|
-
}
|
|
1063
1001
|
getTranslation(option) {
|
|
1064
1002
|
return this.config.getTranslation(option);
|
|
1065
1003
|
}
|
|
@@ -3279,8 +3217,8 @@ class DatePicker extends BaseInput {
|
|
|
3279
3217
|
this.restoreOverlayAppend();
|
|
3280
3218
|
this.onOverlayHide();
|
|
3281
3219
|
}
|
|
3282
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
3283
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: DatePicker, isStandalone: true, selector: "agl-datePicker, agl-datepicker, agl-date-picker", inputs: { iconDisplay: { classPropertyName: "iconDisplay", publicName: "iconDisplay", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, inputStyle: { classPropertyName: "inputStyle", publicName: "inputStyle", isSignal: false, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: false, isRequired: false, transformFunction: null }, inputStyleClass: { classPropertyName: "inputStyleClass", publicName: "inputStyleClass", isSignal: false, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, iconAriaLabel: { classPropertyName: "iconAriaLabel", publicName: "iconAriaLabel", isSignal: false, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "dateFormat", isSignal: false, isRequired: false, transformFunction: null }, multipleSeparator: { classPropertyName: "multipleSeparator", publicName: "multipleSeparator", isSignal: false, isRequired: false, transformFunction: null }, rangeSeparator: { classPropertyName: "rangeSeparator", publicName: "rangeSeparator", isSignal: false, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showOtherMonths: { classPropertyName: "showOtherMonths", publicName: "showOtherMonths", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, selectOtherMonths: { classPropertyName: "selectOtherMonths", publicName: "selectOtherMonths", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: false, isRequired: false, transformFunction: null }, readonlyInput: { classPropertyName: "readonlyInput", publicName: "readonlyInput", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, shortYearCutoff: { classPropertyName: "shortYearCutoff", publicName: "shortYearCutoff", isSignal: false, isRequired: false, transformFunction: null }, hourFormat: { classPropertyName: "hourFormat", publicName: "hourFormat", isSignal: false, isRequired: false, transformFunction: null }, timeOnly: { classPropertyName: "timeOnly", publicName: "timeOnly", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, stepHour: { classPropertyName: "stepHour", publicName: "stepHour", isSignal: false, isRequired: false, transformFunction: numberAttribute }, stepMinute: { classPropertyName: "stepMinute", publicName: "stepMinute", isSignal: false, isRequired: false, transformFunction: numberAttribute }, stepSecond: { classPropertyName: "stepSecond", publicName: "stepSecond", isSignal: false, isRequired: false, transformFunction: numberAttribute }, showSeconds: { classPropertyName: "showSeconds", publicName: "showSeconds", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showOnFocus: { classPropertyName: "showOnFocus", publicName: "showOnFocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showWeek: { classPropertyName: "showWeek", publicName: "showWeek", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, startWeekFromFirstDayOfYear: { classPropertyName: "startWeekFromFirstDayOfYear", publicName: "startWeekFromFirstDayOfYear", isSignal: false, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, dataType: { classPropertyName: "dataType", publicName: "dataType", isSignal: false, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: false, isRequired: false, transformFunction: null }, maxDateCount: { classPropertyName: "maxDateCount", publicName: "maxDateCount", isSignal: false, isRequired: false, transformFunction: numberAttribute }, showButtonBar: { classPropertyName: "showButtonBar", publicName: "showButtonBar", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, todayButtonStyleClass: { classPropertyName: "todayButtonStyleClass", publicName: "todayButtonStyleClass", isSignal: false, isRequired: false, transformFunction: null }, clearButtonStyleClass: { classPropertyName: "clearButtonStyleClass", publicName: "clearButtonStyleClass", isSignal: false, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: false, isRequired: false, transformFunction: null }, panelStyle: { classPropertyName: "panelStyle", publicName: "panelStyle", isSignal: false, isRequired: false, transformFunction: null }, keepInvalid: { classPropertyName: "keepInvalid", publicName: "keepInvalid", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, hideOnDateTimeSelect: { classPropertyName: "hideOnDateTimeSelect", publicName: "hideOnDateTimeSelect", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, touchUI: { classPropertyName: "touchUI", publicName: "touchUI", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, timeSeparator: { classPropertyName: "timeSeparator", publicName: "timeSeparator", isSignal: false, isRequired: false, transformFunction: null }, focusTrap: { classPropertyName: "focusTrap", publicName: "focusTrap", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showTransitionOptions: { classPropertyName: "showTransitionOptions", publicName: "showTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, hideTransitionOptions: { classPropertyName: "hideTransitionOptions", publicName: "hideTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: false, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: false, isRequired: false, transformFunction: null }, disabledDates: { classPropertyName: "disabledDates", publicName: "disabledDates", isSignal: false, isRequired: false, transformFunction: null }, disabledDays: { classPropertyName: "disabledDays", publicName: "disabledDays", isSignal: false, isRequired: false, transformFunction: null }, showTime: { classPropertyName: "showTime", publicName: "showTime", isSignal: false, isRequired: false, transformFunction: null }, responsiveOptions: { classPropertyName: "responsiveOptions", publicName: "responsiveOptions", isSignal: false, isRequired: false, transformFunction: null }, numberOfMonths: { classPropertyName: "numberOfMonths", publicName: "numberOfMonths", isSignal: false, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: false, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: false, isRequired: false, transformFunction: null }, defaultDate: { classPropertyName: "defaultDate", publicName: "defaultDate", isSignal: false, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onFocus: "onFocus", onBlur: "onBlur", onClose: "onClose", onSelect: "onSelect", onClear: "onClear", onInput: "onInput", onTodayClick: "onTodayClick", onClearClick: "onClearClick", onMonthChange: "onMonthChange", onYearChange: "onYearChange", onClickOutside: "onClickOutside", onShow: "onShow" }, host: { properties: { "class": "cn(cx('root'), styleClass)", "style": "sx('root')" } }, providers: [DATEPICKER_VALUE_ACCESSOR, DatePickerStyle, { provide: DATEPICKER_INSTANCE, useExisting: DatePicker }, { provide: PARENT_INSTANCE, useExisting: DatePicker }], queries: [{ propertyName: "dateTemplate", first: true, predicate: ["date"] }, { propertyName: "headerTemplate", first: true, predicate: ["header"] }, { propertyName: "footerTemplate", first: true, predicate: ["footer"] }, { propertyName: "disabledDateTemplate", first: true, predicate: ["disabledDate"] }, { propertyName: "decadeTemplate", first: true, predicate: ["decade"] }, { propertyName: "previousIconTemplate", first: true, predicate: ["previousicon"] }, { propertyName: "nextIconTemplate", first: true, predicate: ["nexticon"] }, { propertyName: "triggerIconTemplate", first: true, predicate: ["triggericon"] }, { propertyName: "clearIconTemplate", first: true, predicate: ["clearicon"] }, { propertyName: "decrementIconTemplate", first: true, predicate: ["decrementicon"] }, { propertyName: "incrementIconTemplate", first: true, predicate: ["incrementicon"] }, { propertyName: "inputIconTemplate", first: true, predicate: ["inputicon"] }, { propertyName: "buttonBarTemplate", first: true, predicate: ["buttonbar"] }, { propertyName: "templates", predicate: AglTemplate }], viewQueries: [{ propertyName: "inputfieldViewChild", first: true, predicate: ["inputfield"], descendants: true }, { propertyName: "content", first: true, predicate: ["contentWrapper"], descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i2.Bind }], ngImport: i0, template: `
|
|
3220
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DatePicker, deps: [{ token: i0.NgZone }, { token: i1.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3221
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: DatePicker, isStandalone: true, selector: "agl-datePicker, agl-datepicker, agl-date-picker", inputs: { iconDisplay: { classPropertyName: "iconDisplay", publicName: "iconDisplay", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, inputStyle: { classPropertyName: "inputStyle", publicName: "inputStyle", isSignal: false, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: false, isRequired: false, transformFunction: null }, inputStyleClass: { classPropertyName: "inputStyleClass", publicName: "inputStyleClass", isSignal: false, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, iconAriaLabel: { classPropertyName: "iconAriaLabel", publicName: "iconAriaLabel", isSignal: false, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "dateFormat", isSignal: false, isRequired: false, transformFunction: null }, multipleSeparator: { classPropertyName: "multipleSeparator", publicName: "multipleSeparator", isSignal: false, isRequired: false, transformFunction: null }, rangeSeparator: { classPropertyName: "rangeSeparator", publicName: "rangeSeparator", isSignal: false, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showOtherMonths: { classPropertyName: "showOtherMonths", publicName: "showOtherMonths", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, selectOtherMonths: { classPropertyName: "selectOtherMonths", publicName: "selectOtherMonths", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: false, isRequired: false, transformFunction: null }, readonlyInput: { classPropertyName: "readonlyInput", publicName: "readonlyInput", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, shortYearCutoff: { classPropertyName: "shortYearCutoff", publicName: "shortYearCutoff", isSignal: false, isRequired: false, transformFunction: null }, hourFormat: { classPropertyName: "hourFormat", publicName: "hourFormat", isSignal: false, isRequired: false, transformFunction: null }, timeOnly: { classPropertyName: "timeOnly", publicName: "timeOnly", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, stepHour: { classPropertyName: "stepHour", publicName: "stepHour", isSignal: false, isRequired: false, transformFunction: numberAttribute }, stepMinute: { classPropertyName: "stepMinute", publicName: "stepMinute", isSignal: false, isRequired: false, transformFunction: numberAttribute }, stepSecond: { classPropertyName: "stepSecond", publicName: "stepSecond", isSignal: false, isRequired: false, transformFunction: numberAttribute }, showSeconds: { classPropertyName: "showSeconds", publicName: "showSeconds", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showOnFocus: { classPropertyName: "showOnFocus", publicName: "showOnFocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showWeek: { classPropertyName: "showWeek", publicName: "showWeek", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, startWeekFromFirstDayOfYear: { classPropertyName: "startWeekFromFirstDayOfYear", publicName: "startWeekFromFirstDayOfYear", isSignal: false, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, dataType: { classPropertyName: "dataType", publicName: "dataType", isSignal: false, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: false, isRequired: false, transformFunction: null }, maxDateCount: { classPropertyName: "maxDateCount", publicName: "maxDateCount", isSignal: false, isRequired: false, transformFunction: numberAttribute }, showButtonBar: { classPropertyName: "showButtonBar", publicName: "showButtonBar", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, todayButtonStyleClass: { classPropertyName: "todayButtonStyleClass", publicName: "todayButtonStyleClass", isSignal: false, isRequired: false, transformFunction: null }, clearButtonStyleClass: { classPropertyName: "clearButtonStyleClass", publicName: "clearButtonStyleClass", isSignal: false, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: false, isRequired: false, transformFunction: null }, panelStyle: { classPropertyName: "panelStyle", publicName: "panelStyle", isSignal: false, isRequired: false, transformFunction: null }, keepInvalid: { classPropertyName: "keepInvalid", publicName: "keepInvalid", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, hideOnDateTimeSelect: { classPropertyName: "hideOnDateTimeSelect", publicName: "hideOnDateTimeSelect", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, touchUI: { classPropertyName: "touchUI", publicName: "touchUI", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, timeSeparator: { classPropertyName: "timeSeparator", publicName: "timeSeparator", isSignal: false, isRequired: false, transformFunction: null }, focusTrap: { classPropertyName: "focusTrap", publicName: "focusTrap", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showTransitionOptions: { classPropertyName: "showTransitionOptions", publicName: "showTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, hideTransitionOptions: { classPropertyName: "hideTransitionOptions", publicName: "hideTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: false, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: false, isRequired: false, transformFunction: null }, disabledDates: { classPropertyName: "disabledDates", publicName: "disabledDates", isSignal: false, isRequired: false, transformFunction: null }, disabledDays: { classPropertyName: "disabledDays", publicName: "disabledDays", isSignal: false, isRequired: false, transformFunction: null }, showTime: { classPropertyName: "showTime", publicName: "showTime", isSignal: false, isRequired: false, transformFunction: null }, responsiveOptions: { classPropertyName: "responsiveOptions", publicName: "responsiveOptions", isSignal: false, isRequired: false, transformFunction: null }, numberOfMonths: { classPropertyName: "numberOfMonths", publicName: "numberOfMonths", isSignal: false, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: false, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: false, isRequired: false, transformFunction: null }, defaultDate: { classPropertyName: "defaultDate", publicName: "defaultDate", isSignal: false, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onFocus: "onFocus", onBlur: "onBlur", onClose: "onClose", onSelect: "onSelect", onClear: "onClear", onInput: "onInput", onTodayClick: "onTodayClick", onClearClick: "onClearClick", onMonthChange: "onMonthChange", onYearChange: "onYearChange", onClickOutside: "onClickOutside", onShow: "onShow" }, host: { properties: { "class": "cn(cx('root'), styleClass)", "style": "sx('root')" } }, providers: [DATEPICKER_VALUE_ACCESSOR, DatePickerStyle, { provide: DATEPICKER_INSTANCE, useExisting: DatePicker }, { provide: PARENT_INSTANCE, useExisting: DatePicker }], queries: [{ propertyName: "dateTemplate", first: true, predicate: ["date"], isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "disabledDateTemplate", first: true, predicate: ["disabledDate"], isSignal: true }, { propertyName: "decadeTemplate", first: true, predicate: ["decade"], isSignal: true }, { propertyName: "previousIconTemplate", first: true, predicate: ["previousicon"], isSignal: true }, { propertyName: "nextIconTemplate", first: true, predicate: ["nexticon"], isSignal: true }, { propertyName: "triggerIconTemplate", first: true, predicate: ["triggericon"], isSignal: true }, { propertyName: "clearIconTemplate", first: true, predicate: ["clearicon"], isSignal: true }, { propertyName: "decrementIconTemplate", first: true, predicate: ["decrementicon"], isSignal: true }, { propertyName: "incrementIconTemplate", first: true, predicate: ["incrementicon"], isSignal: true }, { propertyName: "inputIconTemplate", first: true, predicate: ["inputicon"], isSignal: true }, { propertyName: "buttonBarTemplate", first: true, predicate: ["buttonbar"], isSignal: true }], viewQueries: [{ propertyName: "inputfieldViewChild", first: true, predicate: ["inputfield"], descendants: true }, { propertyName: "content", first: true, predicate: ["contentWrapper"], descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i2.Bind }], ngImport: i0, template: `
|
|
3284
3222
|
<ng-template [ngIf]="!inline">
|
|
3285
3223
|
<input
|
|
3286
3224
|
#inputfield
|
|
@@ -3322,9 +3260,9 @@ class DatePicker extends BaseInput {
|
|
|
3322
3260
|
[unstyled]="unstyled()"
|
|
3323
3261
|
/>
|
|
3324
3262
|
<ng-container *ngIf="showClear && !$disabled() && inputfieldViewChild?.nativeElement?.value">
|
|
3325
|
-
<svg data-p-icon="times" *ngIf="!clearIconTemplate
|
|
3326
|
-
<span *ngIf="clearIconTemplate
|
|
3327
|
-
<ng-template *ngTemplateOutlet="clearIconTemplate
|
|
3263
|
+
<svg data-p-icon="times" *ngIf="!clearIconTemplate()" [class]="cx('clearIcon')" [aglBind]="ptm('inputIcon')" (click)="clear()" />
|
|
3264
|
+
<span *ngIf="clearIconTemplate()" [class]="cx('clearIcon')" [aglBind]="ptm('inputIcon')" (click)="clear()">
|
|
3265
|
+
<ng-template *ngTemplateOutlet="clearIconTemplate()"></ng-template>
|
|
3328
3266
|
</span>
|
|
3329
3267
|
</ng-container>
|
|
3330
3268
|
<button
|
|
@@ -3342,15 +3280,15 @@ class DatePicker extends BaseInput {
|
|
|
3342
3280
|
>
|
|
3343
3281
|
<span *ngIf="icon" [ngClass]="icon" [aglBind]="ptm('dropdownIcon')"></span>
|
|
3344
3282
|
<ng-container *ngIf="!icon">
|
|
3345
|
-
<svg data-p-icon="calendar" *ngIf="!triggerIconTemplate
|
|
3346
|
-
<ng-template *ngTemplateOutlet="triggerIconTemplate
|
|
3283
|
+
<svg data-p-icon="calendar" *ngIf="!triggerIconTemplate()" [aglBind]="ptm('dropdownIcon')" />
|
|
3284
|
+
<ng-template *ngTemplateOutlet="triggerIconTemplate()"></ng-template>
|
|
3347
3285
|
</ng-container>
|
|
3348
3286
|
</button>
|
|
3349
3287
|
<ng-container *ngIf="iconDisplay === 'input' && showIcon">
|
|
3350
3288
|
<span [class]="cx('inputIconContainer')" [aglBind]="ptm('inputIconContainer')" [attr.data-p]="inputIconDataP">
|
|
3351
|
-
<svg data-p-icon="calendar" (click)="onButtonClick($event)" *ngIf="!inputIconTemplate
|
|
3289
|
+
<svg data-p-icon="calendar" (click)="onButtonClick($event)" *ngIf="!inputIconTemplate()" [class]="cx('inputIcon')" [aglBind]="ptm('inputIcon')" />
|
|
3352
3290
|
|
|
3353
|
-
<ng-container *ngTemplateOutlet="inputIconTemplate
|
|
3291
|
+
<ng-container *ngTemplateOutlet="inputIconTemplate(); context: { clickCallBack: onButtonClick.bind(this) }"></ng-container>
|
|
3354
3292
|
</span>
|
|
3355
3293
|
</ng-container>
|
|
3356
3294
|
</ng-template>
|
|
@@ -3366,8 +3304,7 @@ class DatePicker extends BaseInput {
|
|
|
3366
3304
|
(click)="onOverlayClick($event)"
|
|
3367
3305
|
[aglBind]="ptm('panel')"
|
|
3368
3306
|
>
|
|
3369
|
-
<ng-
|
|
3370
|
-
<ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate"></ng-container>
|
|
3307
|
+
<ng-container *ngTemplateOutlet="headerTemplate()"></ng-container>
|
|
3371
3308
|
<ng-container *ngIf="!timeOnly">
|
|
3372
3309
|
<div [class]="cx('calendarContainer')" [aglBind]="ptm('calendarContainer')">
|
|
3373
3310
|
<div [class]="cx('calendar')" *ngFor="let month of months; let i = index" [aglBind]="ptm('calendar')">
|
|
@@ -3386,9 +3323,9 @@ class DatePicker extends BaseInput {
|
|
|
3386
3323
|
[attr.data-pc-group-section]="'navigator'"
|
|
3387
3324
|
>
|
|
3388
3325
|
<ng-template #icon>
|
|
3389
|
-
<svg data-p-icon="chevron-left" *ngIf="!previousIconTemplate
|
|
3390
|
-
<span *ngIf="previousIconTemplate
|
|
3391
|
-
<ng-template *ngTemplateOutlet="previousIconTemplate
|
|
3326
|
+
<svg data-p-icon="chevron-left" *ngIf="!previousIconTemplate()" />
|
|
3327
|
+
<span *ngIf="previousIconTemplate()">
|
|
3328
|
+
<ng-template *ngTemplateOutlet="previousIconTemplate()"></ng-template>
|
|
3392
3329
|
</span>
|
|
3393
3330
|
</ng-template>
|
|
3394
3331
|
</agl-button>
|
|
@@ -3422,8 +3359,8 @@ class DatePicker extends BaseInput {
|
|
|
3422
3359
|
{{ getYear(month) }}
|
|
3423
3360
|
</button>
|
|
3424
3361
|
<span [class]="cx('decade')" *ngIf="currentView === 'year'" [aglBind]="ptm('decade')">
|
|
3425
|
-
<ng-container *ngIf="!decadeTemplate
|
|
3426
|
-
<ng-container *ngTemplateOutlet="decadeTemplate
|
|
3362
|
+
<ng-container *ngIf="!decadeTemplate()">{{ yearPickerValues()[0] }} - {{ yearPickerValues()[yearPickerValues().length - 1] }}</ng-container>
|
|
3363
|
+
<ng-container *ngTemplateOutlet="decadeTemplate(); context: { $implicit: yearPickerValues }"></ng-container>
|
|
3427
3364
|
</span>
|
|
3428
3365
|
</div>
|
|
3429
3366
|
<agl-button
|
|
@@ -3439,9 +3376,9 @@ class DatePicker extends BaseInput {
|
|
|
3439
3376
|
[attr.data-pc-group-section]="'navigator'"
|
|
3440
3377
|
>
|
|
3441
3378
|
<ng-template #icon>
|
|
3442
|
-
<svg data-p-icon="chevron-right" *ngIf="!nextIconTemplate
|
|
3443
|
-
<ng-container *ngIf="nextIconTemplate
|
|
3444
|
-
<ng-template *ngTemplateOutlet="nextIconTemplate
|
|
3379
|
+
<svg data-p-icon="chevron-right" *ngIf="!nextIconTemplate()" />
|
|
3380
|
+
<ng-container *ngIf="nextIconTemplate()">
|
|
3381
|
+
<ng-template *ngTemplateOutlet="nextIconTemplate()"></ng-template>
|
|
3445
3382
|
</ng-container>
|
|
3446
3383
|
</ng-template>
|
|
3447
3384
|
</agl-button>
|
|
@@ -3475,12 +3412,12 @@ class DatePicker extends BaseInput {
|
|
|
3475
3412
|
aglRipple
|
|
3476
3413
|
[aglBind]="ptm('day')"
|
|
3477
3414
|
>
|
|
3478
|
-
<ng-container *ngIf="!dateTemplate &&
|
|
3479
|
-
<ng-container *ngIf="date.selectable || (!disabledDateTemplate
|
|
3480
|
-
<ng-container *ngTemplateOutlet="dateTemplate
|
|
3415
|
+
<ng-container *ngIf="!dateTemplate() && (date.selectable || (!disabledDateTemplate()))">{{ date.day }}</ng-container>
|
|
3416
|
+
<ng-container *ngIf="date.selectable || (!disabledDateTemplate())">
|
|
3417
|
+
<ng-container *ngTemplateOutlet="dateTemplate(); context: { $implicit: date }"></ng-container>
|
|
3481
3418
|
</ng-container>
|
|
3482
3419
|
<ng-container *ngIf="!date.selectable">
|
|
3483
|
-
<ng-container *ngTemplateOutlet="disabledDateTemplate
|
|
3420
|
+
<ng-container *ngTemplateOutlet="disabledDateTemplate(); context: { $implicit: date }"></ng-container>
|
|
3484
3421
|
</ng-container>
|
|
3485
3422
|
</span>
|
|
3486
3423
|
<div *ngIf="isSelected(date)" class="p-hidden-accessible" aria-live="polite">
|
|
@@ -3530,8 +3467,8 @@ class DatePicker extends BaseInput {
|
|
|
3530
3467
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
3531
3468
|
>
|
|
3532
3469
|
<ng-template #icon>
|
|
3533
|
-
<svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate
|
|
3534
|
-
<ng-template *ngTemplateOutlet="incrementIconTemplate
|
|
3470
|
+
<svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate()" [aglBind]="ptm('pcIncrementButton')['icon']" />
|
|
3471
|
+
<ng-template *ngTemplateOutlet="incrementIconTemplate()"></ng-template>
|
|
3535
3472
|
</ng-template>
|
|
3536
3473
|
</agl-button>
|
|
3537
3474
|
<span [aglBind]="ptm('hour')"><ng-container *ngIf="currentHour < 10">0</ng-container>{{ currentHour }}</span>
|
|
@@ -3553,8 +3490,8 @@ class DatePicker extends BaseInput {
|
|
|
3553
3490
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
3554
3491
|
>
|
|
3555
3492
|
<ng-template #icon>
|
|
3556
|
-
<svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate
|
|
3557
|
-
<ng-template *ngTemplateOutlet="decrementIconTemplate
|
|
3493
|
+
<svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate()" [aglBind]="ptm('pcDecrementButton')['icon']" />
|
|
3494
|
+
<ng-template *ngTemplateOutlet="decrementIconTemplate()"></ng-template>
|
|
3558
3495
|
</ng-template>
|
|
3559
3496
|
</agl-button>
|
|
3560
3497
|
</div>
|
|
@@ -3580,8 +3517,8 @@ class DatePicker extends BaseInput {
|
|
|
3580
3517
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
3581
3518
|
>
|
|
3582
3519
|
<ng-template #icon>
|
|
3583
|
-
<svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate
|
|
3584
|
-
<ng-template *ngTemplateOutlet="incrementIconTemplate
|
|
3520
|
+
<svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate()" [aglBind]="ptm('pcIncrementButton')['icon']" />
|
|
3521
|
+
<ng-template *ngTemplateOutlet="incrementIconTemplate()"></ng-template>
|
|
3585
3522
|
</ng-template>
|
|
3586
3523
|
</agl-button>
|
|
3587
3524
|
<span [aglBind]="ptm('minute')"><ng-container *ngIf="currentMinute < 10">0</ng-container>{{ currentMinute }}</span>
|
|
@@ -3603,8 +3540,8 @@ class DatePicker extends BaseInput {
|
|
|
3603
3540
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
3604
3541
|
>
|
|
3605
3542
|
<ng-template #icon>
|
|
3606
|
-
<svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate
|
|
3607
|
-
<ng-template *ngTemplateOutlet="decrementIconTemplate
|
|
3543
|
+
<svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate()" [aglBind]="ptm('pcDecrementButton')['icon']" />
|
|
3544
|
+
<ng-template *ngTemplateOutlet="decrementIconTemplate()"></ng-template>
|
|
3608
3545
|
</ng-template>
|
|
3609
3546
|
</agl-button>
|
|
3610
3547
|
</div>
|
|
@@ -3630,8 +3567,8 @@ class DatePicker extends BaseInput {
|
|
|
3630
3567
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
3631
3568
|
>
|
|
3632
3569
|
<ng-template #icon>
|
|
3633
|
-
<svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate
|
|
3634
|
-
<ng-template *ngTemplateOutlet="incrementIconTemplate
|
|
3570
|
+
<svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate()" [aglBind]="ptm('pcIncrementButton')['icon']" />
|
|
3571
|
+
<ng-template *ngTemplateOutlet="incrementIconTemplate()"></ng-template>
|
|
3635
3572
|
</ng-template>
|
|
3636
3573
|
</agl-button>
|
|
3637
3574
|
<span [aglBind]="ptm('second')"><ng-container *ngIf="currentSecond < 10">0</ng-container>{{ currentSecond }}</span>
|
|
@@ -3653,8 +3590,8 @@ class DatePicker extends BaseInput {
|
|
|
3653
3590
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
3654
3591
|
>
|
|
3655
3592
|
<ng-template #icon>
|
|
3656
|
-
<svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate
|
|
3657
|
-
<ng-template *ngTemplateOutlet="decrementIconTemplate
|
|
3593
|
+
<svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate()" [aglBind]="ptm('pcDecrementButton')['icon']" />
|
|
3594
|
+
<ng-template *ngTemplateOutlet="decrementIconTemplate()"></ng-template>
|
|
3658
3595
|
</ng-template>
|
|
3659
3596
|
</agl-button>
|
|
3660
3597
|
</div>
|
|
@@ -3675,8 +3612,8 @@ class DatePicker extends BaseInput {
|
|
|
3675
3612
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
3676
3613
|
>
|
|
3677
3614
|
<ng-template #icon>
|
|
3678
|
-
<svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate
|
|
3679
|
-
<ng-template *ngTemplateOutlet="incrementIconTemplate
|
|
3615
|
+
<svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate()" [aglBind]="ptm('pcIncrementButton')['icon']" />
|
|
3616
|
+
<ng-template *ngTemplateOutlet="incrementIconTemplate()"></ng-template>
|
|
3680
3617
|
</ng-template>
|
|
3681
3618
|
</agl-button>
|
|
3682
3619
|
<span [aglBind]="ptm('ampm')">{{ pm ? 'PM' : 'AM' }}</span>
|
|
@@ -3693,15 +3630,15 @@ class DatePicker extends BaseInput {
|
|
|
3693
3630
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
3694
3631
|
>
|
|
3695
3632
|
<ng-template #icon>
|
|
3696
|
-
<svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate
|
|
3697
|
-
<ng-template *ngTemplateOutlet="decrementIconTemplate
|
|
3633
|
+
<svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate()" [aglBind]="ptm('pcDecrementButton')['icon']" />
|
|
3634
|
+
<ng-template *ngTemplateOutlet="decrementIconTemplate()"></ng-template>
|
|
3698
3635
|
</ng-template>
|
|
3699
3636
|
</agl-button>
|
|
3700
3637
|
</div>
|
|
3701
3638
|
</div>
|
|
3702
3639
|
<div [class]="cx('buttonbar')" *ngIf="showButtonBar" [aglBind]="ptm('buttonbar')">
|
|
3703
|
-
@if (buttonBarTemplate
|
|
3704
|
-
<ng-container *ngTemplateOutlet="buttonBarTemplate
|
|
3640
|
+
@if (buttonBarTemplate()) {
|
|
3641
|
+
<ng-container *ngTemplateOutlet="buttonBarTemplate(); context: { todayCallback: onTodayButtonClick.bind(this), clearCallback: onClearButtonClick.bind(this) }"></ng-container>
|
|
3705
3642
|
} @else {
|
|
3706
3643
|
<agl-button
|
|
3707
3644
|
size="small"
|
|
@@ -3731,13 +3668,12 @@ class DatePicker extends BaseInput {
|
|
|
3731
3668
|
/>
|
|
3732
3669
|
}
|
|
3733
3670
|
</div>
|
|
3734
|
-
<ng-
|
|
3735
|
-
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
|
|
3671
|
+
<ng-container *ngTemplateOutlet="footerTemplate()"></ng-container>
|
|
3736
3672
|
</div>
|
|
3737
3673
|
</agl-motion>
|
|
3738
3674
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Button, selector: "agl-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: Ripple, selector: "[aglRipple]" }, { kind: "component", type: ChevronLeftIcon, selector: "[data-p-icon=\"chevron-left\"]" }, { kind: "component", type: ChevronRightIcon, selector: "[data-p-icon=\"chevron-right\"]" }, { kind: "component", type: ChevronUpIcon, selector: "[data-p-icon=\"chevron-up\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: CalendarIcon, selector: "[data-p-icon=\"calendar\"]" }, { kind: "directive", type: AutoFocus, selector: "[aglAutoFocus]", inputs: ["aglAutoFocus"] }, { kind: "directive", type: InputText, selector: "[aglInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "aglSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i2.Bind, selector: "[aglBind]", inputs: ["aglBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "component", type: i4.Motion, selector: "agl-motion", inputs: ["visible", "mountOnEnter", "unmountOnLeave", "name", "type", "safe", "disabled", "appear", "enter", "leave", "duration", "hideStrategy", "enterFromClass", "enterToClass", "enterActiveClass", "leaveFromClass", "leaveToClass", "leaveActiveClass", "options"], outputs: ["onBeforeEnter", "onEnter", "onAfterEnter", "onEnterCancelled", "onBeforeLeave", "onLeave", "onAfterLeave", "onLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3739
3675
|
}
|
|
3740
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
3676
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DatePicker, decorators: [{
|
|
3741
3677
|
type: Component,
|
|
3742
3678
|
args: [{
|
|
3743
3679
|
selector: 'agl-datePicker, agl-datepicker, agl-date-picker',
|
|
@@ -3786,9 +3722,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3786
3722
|
[unstyled]="unstyled()"
|
|
3787
3723
|
/>
|
|
3788
3724
|
<ng-container *ngIf="showClear && !$disabled() && inputfieldViewChild?.nativeElement?.value">
|
|
3789
|
-
<svg data-p-icon="times" *ngIf="!clearIconTemplate
|
|
3790
|
-
<span *ngIf="clearIconTemplate
|
|
3791
|
-
<ng-template *ngTemplateOutlet="clearIconTemplate
|
|
3725
|
+
<svg data-p-icon="times" *ngIf="!clearIconTemplate()" [class]="cx('clearIcon')" [aglBind]="ptm('inputIcon')" (click)="clear()" />
|
|
3726
|
+
<span *ngIf="clearIconTemplate()" [class]="cx('clearIcon')" [aglBind]="ptm('inputIcon')" (click)="clear()">
|
|
3727
|
+
<ng-template *ngTemplateOutlet="clearIconTemplate()"></ng-template>
|
|
3792
3728
|
</span>
|
|
3793
3729
|
</ng-container>
|
|
3794
3730
|
<button
|
|
@@ -3806,15 +3742,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3806
3742
|
>
|
|
3807
3743
|
<span *ngIf="icon" [ngClass]="icon" [aglBind]="ptm('dropdownIcon')"></span>
|
|
3808
3744
|
<ng-container *ngIf="!icon">
|
|
3809
|
-
<svg data-p-icon="calendar" *ngIf="!triggerIconTemplate
|
|
3810
|
-
<ng-template *ngTemplateOutlet="triggerIconTemplate
|
|
3745
|
+
<svg data-p-icon="calendar" *ngIf="!triggerIconTemplate()" [aglBind]="ptm('dropdownIcon')" />
|
|
3746
|
+
<ng-template *ngTemplateOutlet="triggerIconTemplate()"></ng-template>
|
|
3811
3747
|
</ng-container>
|
|
3812
3748
|
</button>
|
|
3813
3749
|
<ng-container *ngIf="iconDisplay === 'input' && showIcon">
|
|
3814
3750
|
<span [class]="cx('inputIconContainer')" [aglBind]="ptm('inputIconContainer')" [attr.data-p]="inputIconDataP">
|
|
3815
|
-
<svg data-p-icon="calendar" (click)="onButtonClick($event)" *ngIf="!inputIconTemplate
|
|
3751
|
+
<svg data-p-icon="calendar" (click)="onButtonClick($event)" *ngIf="!inputIconTemplate()" [class]="cx('inputIcon')" [aglBind]="ptm('inputIcon')" />
|
|
3816
3752
|
|
|
3817
|
-
<ng-container *ngTemplateOutlet="inputIconTemplate
|
|
3753
|
+
<ng-container *ngTemplateOutlet="inputIconTemplate(); context: { clickCallBack: onButtonClick.bind(this) }"></ng-container>
|
|
3818
3754
|
</span>
|
|
3819
3755
|
</ng-container>
|
|
3820
3756
|
</ng-template>
|
|
@@ -3830,8 +3766,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3830
3766
|
(click)="onOverlayClick($event)"
|
|
3831
3767
|
[aglBind]="ptm('panel')"
|
|
3832
3768
|
>
|
|
3833
|
-
<ng-
|
|
3834
|
-
<ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate"></ng-container>
|
|
3769
|
+
<ng-container *ngTemplateOutlet="headerTemplate()"></ng-container>
|
|
3835
3770
|
<ng-container *ngIf="!timeOnly">
|
|
3836
3771
|
<div [class]="cx('calendarContainer')" [aglBind]="ptm('calendarContainer')">
|
|
3837
3772
|
<div [class]="cx('calendar')" *ngFor="let month of months; let i = index" [aglBind]="ptm('calendar')">
|
|
@@ -3850,9 +3785,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3850
3785
|
[attr.data-pc-group-section]="'navigator'"
|
|
3851
3786
|
>
|
|
3852
3787
|
<ng-template #icon>
|
|
3853
|
-
<svg data-p-icon="chevron-left" *ngIf="!previousIconTemplate
|
|
3854
|
-
<span *ngIf="previousIconTemplate
|
|
3855
|
-
<ng-template *ngTemplateOutlet="previousIconTemplate
|
|
3788
|
+
<svg data-p-icon="chevron-left" *ngIf="!previousIconTemplate()" />
|
|
3789
|
+
<span *ngIf="previousIconTemplate()">
|
|
3790
|
+
<ng-template *ngTemplateOutlet="previousIconTemplate()"></ng-template>
|
|
3856
3791
|
</span>
|
|
3857
3792
|
</ng-template>
|
|
3858
3793
|
</agl-button>
|
|
@@ -3886,8 +3821,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3886
3821
|
{{ getYear(month) }}
|
|
3887
3822
|
</button>
|
|
3888
3823
|
<span [class]="cx('decade')" *ngIf="currentView === 'year'" [aglBind]="ptm('decade')">
|
|
3889
|
-
<ng-container *ngIf="!decadeTemplate
|
|
3890
|
-
<ng-container *ngTemplateOutlet="decadeTemplate
|
|
3824
|
+
<ng-container *ngIf="!decadeTemplate()">{{ yearPickerValues()[0] }} - {{ yearPickerValues()[yearPickerValues().length - 1] }}</ng-container>
|
|
3825
|
+
<ng-container *ngTemplateOutlet="decadeTemplate(); context: { $implicit: yearPickerValues }"></ng-container>
|
|
3891
3826
|
</span>
|
|
3892
3827
|
</div>
|
|
3893
3828
|
<agl-button
|
|
@@ -3903,9 +3838,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3903
3838
|
[attr.data-pc-group-section]="'navigator'"
|
|
3904
3839
|
>
|
|
3905
3840
|
<ng-template #icon>
|
|
3906
|
-
<svg data-p-icon="chevron-right" *ngIf="!nextIconTemplate
|
|
3907
|
-
<ng-container *ngIf="nextIconTemplate
|
|
3908
|
-
<ng-template *ngTemplateOutlet="nextIconTemplate
|
|
3841
|
+
<svg data-p-icon="chevron-right" *ngIf="!nextIconTemplate()" />
|
|
3842
|
+
<ng-container *ngIf="nextIconTemplate()">
|
|
3843
|
+
<ng-template *ngTemplateOutlet="nextIconTemplate()"></ng-template>
|
|
3909
3844
|
</ng-container>
|
|
3910
3845
|
</ng-template>
|
|
3911
3846
|
</agl-button>
|
|
@@ -3939,12 +3874,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3939
3874
|
aglRipple
|
|
3940
3875
|
[aglBind]="ptm('day')"
|
|
3941
3876
|
>
|
|
3942
|
-
<ng-container *ngIf="!dateTemplate &&
|
|
3943
|
-
<ng-container *ngIf="date.selectable || (!disabledDateTemplate
|
|
3944
|
-
<ng-container *ngTemplateOutlet="dateTemplate
|
|
3877
|
+
<ng-container *ngIf="!dateTemplate() && (date.selectable || (!disabledDateTemplate()))">{{ date.day }}</ng-container>
|
|
3878
|
+
<ng-container *ngIf="date.selectable || (!disabledDateTemplate())">
|
|
3879
|
+
<ng-container *ngTemplateOutlet="dateTemplate(); context: { $implicit: date }"></ng-container>
|
|
3945
3880
|
</ng-container>
|
|
3946
3881
|
<ng-container *ngIf="!date.selectable">
|
|
3947
|
-
<ng-container *ngTemplateOutlet="disabledDateTemplate
|
|
3882
|
+
<ng-container *ngTemplateOutlet="disabledDateTemplate(); context: { $implicit: date }"></ng-container>
|
|
3948
3883
|
</ng-container>
|
|
3949
3884
|
</span>
|
|
3950
3885
|
<div *ngIf="isSelected(date)" class="p-hidden-accessible" aria-live="polite">
|
|
@@ -3994,8 +3929,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3994
3929
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
3995
3930
|
>
|
|
3996
3931
|
<ng-template #icon>
|
|
3997
|
-
<svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate
|
|
3998
|
-
<ng-template *ngTemplateOutlet="incrementIconTemplate
|
|
3932
|
+
<svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate()" [aglBind]="ptm('pcIncrementButton')['icon']" />
|
|
3933
|
+
<ng-template *ngTemplateOutlet="incrementIconTemplate()"></ng-template>
|
|
3999
3934
|
</ng-template>
|
|
4000
3935
|
</agl-button>
|
|
4001
3936
|
<span [aglBind]="ptm('hour')"><ng-container *ngIf="currentHour < 10">0</ng-container>{{ currentHour }}</span>
|
|
@@ -4017,8 +3952,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
4017
3952
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
4018
3953
|
>
|
|
4019
3954
|
<ng-template #icon>
|
|
4020
|
-
<svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate
|
|
4021
|
-
<ng-template *ngTemplateOutlet="decrementIconTemplate
|
|
3955
|
+
<svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate()" [aglBind]="ptm('pcDecrementButton')['icon']" />
|
|
3956
|
+
<ng-template *ngTemplateOutlet="decrementIconTemplate()"></ng-template>
|
|
4022
3957
|
</ng-template>
|
|
4023
3958
|
</agl-button>
|
|
4024
3959
|
</div>
|
|
@@ -4044,8 +3979,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
4044
3979
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
4045
3980
|
>
|
|
4046
3981
|
<ng-template #icon>
|
|
4047
|
-
<svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate
|
|
4048
|
-
<ng-template *ngTemplateOutlet="incrementIconTemplate
|
|
3982
|
+
<svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate()" [aglBind]="ptm('pcIncrementButton')['icon']" />
|
|
3983
|
+
<ng-template *ngTemplateOutlet="incrementIconTemplate()"></ng-template>
|
|
4049
3984
|
</ng-template>
|
|
4050
3985
|
</agl-button>
|
|
4051
3986
|
<span [aglBind]="ptm('minute')"><ng-container *ngIf="currentMinute < 10">0</ng-container>{{ currentMinute }}</span>
|
|
@@ -4067,8 +4002,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
4067
4002
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
4068
4003
|
>
|
|
4069
4004
|
<ng-template #icon>
|
|
4070
|
-
<svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate
|
|
4071
|
-
<ng-template *ngTemplateOutlet="decrementIconTemplate
|
|
4005
|
+
<svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate()" [aglBind]="ptm('pcDecrementButton')['icon']" />
|
|
4006
|
+
<ng-template *ngTemplateOutlet="decrementIconTemplate()"></ng-template>
|
|
4072
4007
|
</ng-template>
|
|
4073
4008
|
</agl-button>
|
|
4074
4009
|
</div>
|
|
@@ -4094,8 +4029,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
4094
4029
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
4095
4030
|
>
|
|
4096
4031
|
<ng-template #icon>
|
|
4097
|
-
<svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate
|
|
4098
|
-
<ng-template *ngTemplateOutlet="incrementIconTemplate
|
|
4032
|
+
<svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate()" [aglBind]="ptm('pcIncrementButton')['icon']" />
|
|
4033
|
+
<ng-template *ngTemplateOutlet="incrementIconTemplate()"></ng-template>
|
|
4099
4034
|
</ng-template>
|
|
4100
4035
|
</agl-button>
|
|
4101
4036
|
<span [aglBind]="ptm('second')"><ng-container *ngIf="currentSecond < 10">0</ng-container>{{ currentSecond }}</span>
|
|
@@ -4117,8 +4052,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
4117
4052
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
4118
4053
|
>
|
|
4119
4054
|
<ng-template #icon>
|
|
4120
|
-
<svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate
|
|
4121
|
-
<ng-template *ngTemplateOutlet="decrementIconTemplate
|
|
4055
|
+
<svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate()" [aglBind]="ptm('pcDecrementButton')['icon']" />
|
|
4056
|
+
<ng-template *ngTemplateOutlet="decrementIconTemplate()"></ng-template>
|
|
4122
4057
|
</ng-template>
|
|
4123
4058
|
</agl-button>
|
|
4124
4059
|
</div>
|
|
@@ -4139,8 +4074,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
4139
4074
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
4140
4075
|
>
|
|
4141
4076
|
<ng-template #icon>
|
|
4142
|
-
<svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate
|
|
4143
|
-
<ng-template *ngTemplateOutlet="incrementIconTemplate
|
|
4077
|
+
<svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate()" [aglBind]="ptm('pcIncrementButton')['icon']" />
|
|
4078
|
+
<ng-template *ngTemplateOutlet="incrementIconTemplate()"></ng-template>
|
|
4144
4079
|
</ng-template>
|
|
4145
4080
|
</agl-button>
|
|
4146
4081
|
<span [aglBind]="ptm('ampm')">{{ pm ? 'PM' : 'AM' }}</span>
|
|
@@ -4157,15 +4092,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
4157
4092
|
[attr.data-pc-group-section]="'timepickerbutton'"
|
|
4158
4093
|
>
|
|
4159
4094
|
<ng-template #icon>
|
|
4160
|
-
<svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate
|
|
4161
|
-
<ng-template *ngTemplateOutlet="decrementIconTemplate
|
|
4095
|
+
<svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate()" [aglBind]="ptm('pcDecrementButton')['icon']" />
|
|
4096
|
+
<ng-template *ngTemplateOutlet="decrementIconTemplate()"></ng-template>
|
|
4162
4097
|
</ng-template>
|
|
4163
4098
|
</agl-button>
|
|
4164
4099
|
</div>
|
|
4165
4100
|
</div>
|
|
4166
4101
|
<div [class]="cx('buttonbar')" *ngIf="showButtonBar" [aglBind]="ptm('buttonbar')">
|
|
4167
|
-
@if (buttonBarTemplate
|
|
4168
|
-
<ng-container *ngTemplateOutlet="buttonBarTemplate
|
|
4102
|
+
@if (buttonBarTemplate()) {
|
|
4103
|
+
<ng-container *ngTemplateOutlet="buttonBarTemplate(); context: { todayCallback: onTodayButtonClick.bind(this), clearCallback: onClearButtonClick.bind(this) }"></ng-container>
|
|
4169
4104
|
} @else {
|
|
4170
4105
|
<agl-button
|
|
4171
4106
|
size="small"
|
|
@@ -4195,8 +4130,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
4195
4130
|
/>
|
|
4196
4131
|
}
|
|
4197
4132
|
</div>
|
|
4198
|
-
<ng-
|
|
4199
|
-
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
|
|
4133
|
+
<ng-container *ngTemplateOutlet="footerTemplate()"></ng-container>
|
|
4200
4134
|
</div>
|
|
4201
4135
|
</agl-motion>
|
|
4202
4136
|
`,
|
|
@@ -4377,55 +4311,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
4377
4311
|
}], content: [{
|
|
4378
4312
|
type: ViewChild,
|
|
4379
4313
|
args: ['contentWrapper', { static: false }]
|
|
4380
|
-
}], dateTemplate: [{
|
|
4381
|
-
type: ContentChild,
|
|
4382
|
-
args: ['date', { descendants: false }]
|
|
4383
|
-
}], headerTemplate: [{
|
|
4384
|
-
type: ContentChild,
|
|
4385
|
-
args: ['header', { descendants: false }]
|
|
4386
|
-
}], footerTemplate: [{
|
|
4387
|
-
type: ContentChild,
|
|
4388
|
-
args: ['footer', { descendants: false }]
|
|
4389
|
-
}], disabledDateTemplate: [{
|
|
4390
|
-
type: ContentChild,
|
|
4391
|
-
args: ['disabledDate', { descendants: false }]
|
|
4392
|
-
}], decadeTemplate: [{
|
|
4393
|
-
type: ContentChild,
|
|
4394
|
-
args: ['decade', { descendants: false }]
|
|
4395
|
-
}], previousIconTemplate: [{
|
|
4396
|
-
type: ContentChild,
|
|
4397
|
-
args: ['previousicon', { descendants: false }]
|
|
4398
|
-
}], nextIconTemplate: [{
|
|
4399
|
-
type: ContentChild,
|
|
4400
|
-
args: ['nexticon', { descendants: false }]
|
|
4401
|
-
}], triggerIconTemplate: [{
|
|
4402
|
-
type: ContentChild,
|
|
4403
|
-
args: ['triggericon', { descendants: false }]
|
|
4404
|
-
}], clearIconTemplate: [{
|
|
4405
|
-
type: ContentChild,
|
|
4406
|
-
args: ['clearicon', { descendants: false }]
|
|
4407
|
-
}], decrementIconTemplate: [{
|
|
4408
|
-
type: ContentChild,
|
|
4409
|
-
args: ['decrementicon', { descendants: false }]
|
|
4410
|
-
}], incrementIconTemplate: [{
|
|
4411
|
-
type: ContentChild,
|
|
4412
|
-
args: ['incrementicon', { descendants: false }]
|
|
4413
|
-
}], inputIconTemplate: [{
|
|
4414
|
-
type: ContentChild,
|
|
4415
|
-
args: ['inputicon', { descendants: false }]
|
|
4416
|
-
}], buttonBarTemplate: [{
|
|
4417
|
-
type: ContentChild,
|
|
4418
|
-
args: ['buttonbar', { descendants: false }]
|
|
4419
|
-
}], templates: [{
|
|
4420
|
-
type: ContentChildren,
|
|
4421
|
-
args: [AglTemplate]
|
|
4422
|
-
}] } });
|
|
4314
|
+
}], dateTemplate: [{ type: i0.ContentChild, args: ['date', { ...{ descendants: false }, isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], disabledDateTemplate: [{ type: i0.ContentChild, args: ['disabledDate', { ...{ descendants: false }, isSignal: true }] }], decadeTemplate: [{ type: i0.ContentChild, args: ['decade', { ...{ descendants: false }, isSignal: true }] }], previousIconTemplate: [{ type: i0.ContentChild, args: ['previousicon', { ...{ descendants: false }, isSignal: true }] }], nextIconTemplate: [{ type: i0.ContentChild, args: ['nexticon', { ...{ descendants: false }, isSignal: true }] }], triggerIconTemplate: [{ type: i0.ContentChild, args: ['triggericon', { ...{ descendants: false }, isSignal: true }] }], clearIconTemplate: [{ type: i0.ContentChild, args: ['clearicon', { ...{ descendants: false }, isSignal: true }] }], decrementIconTemplate: [{ type: i0.ContentChild, args: ['decrementicon', { ...{ descendants: false }, isSignal: true }] }], incrementIconTemplate: [{ type: i0.ContentChild, args: ['incrementicon', { ...{ descendants: false }, isSignal: true }] }], inputIconTemplate: [{ type: i0.ContentChild, args: ['inputicon', { ...{ descendants: false }, isSignal: true }] }], buttonBarTemplate: [{ type: i0.ContentChild, args: ['buttonbar', { ...{ descendants: false }, isSignal: true }] }] } });
|
|
4423
4315
|
class DatePickerModule {
|
|
4424
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
4425
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.
|
|
4426
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.
|
|
4316
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4317
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: DatePickerModule, imports: [DatePicker, SharedModule], exports: [DatePicker, SharedModule] });
|
|
4318
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DatePickerModule, imports: [DatePicker, SharedModule, SharedModule] });
|
|
4427
4319
|
}
|
|
4428
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
4320
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DatePickerModule, decorators: [{
|
|
4429
4321
|
type: NgModule,
|
|
4430
4322
|
args: [{
|
|
4431
4323
|
imports: [DatePicker, SharedModule],
|