primeng 18.0.1 → 18.0.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/datepicker/datepicker.d.ts +88 -22
- package/esm2022/calendar/calendar.mjs +9 -8
- package/esm2022/datepicker/datepicker.mjs +9 -8
- package/esm2022/tree/tree.mjs +5 -3
- package/fesm2022/primeng-calendar.mjs +8 -7
- package/fesm2022/primeng-calendar.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +8 -7
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +4 -2
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/package.json +186 -186
@@ -4,7 +4,7 @@ import { CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
5
5
|
import { Injectable, forwardRef, EventEmitter, inject, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ViewChild, ContentChild, ContentChildren, NgModule } from '@angular/core';
|
6
6
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
7
|
-
import { uuid, getOuterWidth, isDate, findSingle, getFocusableElements, hasClass, getIndex, find, isNotEmpty, appendChild, absolutePosition, relativePosition, addClass, blockBodyScroll, unblockBodyScroll, setAttribute, isTouchDevice } from '@primeuix/utils';
|
7
|
+
import { uuid, getOuterWidth, isDate, findSingle, getFocusableElements, hasClass, getIndex, find, isNotEmpty, addStyle, appendChild, absolutePosition, relativePosition, addClass, blockBodyScroll, unblockBodyScroll, setAttribute, isTouchDevice } from '@primeuix/utils';
|
8
8
|
import * as i1 from 'primeng/api';
|
9
9
|
import { TranslationKeys, PrimeTemplate, SharedModule } from 'primeng/api';
|
10
10
|
import { AutoFocus } from 'primeng/autofocus';
|
@@ -703,7 +703,6 @@ const _c22 = a0 => ({ $implicit: a0 });
|
|
703
703
|
const _c23 = (a0, a1) => ({ "p-datepicker-day-cell": true, "p-datepicker-other-month": a0, "p-datepicker-today": a1 });
|
704
704
|
const _c24 = (a0, a1) => ({ "p-datepicker-month": true, "p-datepicker-month-selected": a0, "p-disabled": a1 });
|
705
705
|
const _c25 = (a0, a1) => ({ "p-datepicker-year": true, "p-datepicker-year-selected": a0, "p-disabled": a1 });
|
706
|
-
const _c26 = a0 => [a0];
|
707
706
|
function DatePicker_ng_template_2_ng_container_2_TimesIcon_1_Template(rf, ctx) { if (rf & 1) {
|
708
707
|
const _r3 = i0.ɵɵgetCurrentView();
|
709
708
|
i0.ɵɵelementStart(0, "TimesIcon", 11);
|
@@ -1419,9 +1418,9 @@ function DatePicker_div_3_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
1419
1418
|
} if (rf & 2) {
|
1420
1419
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
1421
1420
|
i0.ɵɵadvance();
|
1422
|
-
i0.ɵɵproperty("label", ctx_r1.getTranslation("today"))("ngClass",
|
1421
|
+
i0.ɵɵproperty("label", ctx_r1.getTranslation("today"))("ngClass", ctx_r1.todayButtonStyleClass);
|
1423
1422
|
i0.ɵɵadvance();
|
1424
|
-
i0.ɵɵproperty("label", ctx_r1.getTranslation("clear"))("ngClass",
|
1423
|
+
i0.ɵɵproperty("label", ctx_r1.getTranslation("clear"))("ngClass", ctx_r1.clearButtonStyleClass);
|
1425
1424
|
} }
|
1426
1425
|
function DatePicker_div_3_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
1427
1426
|
i0.ɵɵelementContainer(0);
|
@@ -1431,7 +1430,7 @@ function DatePicker_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
1431
1430
|
i0.ɵɵelementStart(0, "div", 21, 2);
|
1432
1431
|
i0.ɵɵlistener("@overlayAnimation.start", function DatePicker_div_3_Template_div_animation_overlayAnimation_start_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOverlayAnimationStart($event)); })("@overlayAnimation.done", function DatePicker_div_3_Template_div_animation_overlayAnimation_done_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOverlayAnimationDone($event)); })("click", function DatePicker_div_3_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOverlayClick($event)); });
|
1433
1432
|
i0.ɵɵprojection(2);
|
1434
|
-
i0.ɵɵtemplate(3, DatePicker_div_3_ng_container_3_Template, 1, 0, "ng-container", 13)(4, DatePicker_div_3_ng_container_4_Template, 5, 3, "ng-container", 7)(5, DatePicker_div_3_div_5_Template, 28, 21, "div", 22)(6, DatePicker_div_3_div_6_Template, 3,
|
1433
|
+
i0.ɵɵtemplate(3, DatePicker_div_3_ng_container_3_Template, 1, 0, "ng-container", 13)(4, DatePicker_div_3_ng_container_4_Template, 5, 3, "ng-container", 7)(5, DatePicker_div_3_div_5_Template, 28, 21, "div", 22)(6, DatePicker_div_3_div_6_Template, 3, 4, "div", 23);
|
1435
1434
|
i0.ɵɵprojection(7, 1);
|
1436
1435
|
i0.ɵɵtemplate(8, DatePicker_div_3_ng_container_8_Template, 1, 0, "ng-container", 13);
|
1437
1436
|
i0.ɵɵelementEnd();
|
@@ -3864,6 +3863,8 @@ class DatePicker extends BaseComponent {
|
|
3864
3863
|
if (!this.inline) {
|
3865
3864
|
this.overlay = event.element;
|
3866
3865
|
this.overlay?.setAttribute(this.attributeSelector, '');
|
3866
|
+
const styles = !this.inline ? { position: 'absolute', top: '0', left: '0' } : undefined;
|
3867
|
+
addStyle(this.overlay, styles);
|
3867
3868
|
this.appendOverlay();
|
3868
3869
|
this.updateFocus();
|
3869
3870
|
if (this.autoZIndex) {
|
@@ -4954,8 +4955,8 @@ class DatePicker extends BaseComponent {
|
|
4954
4955
|
</div>
|
4955
4956
|
</div>
|
4956
4957
|
<div class="p-datepicker-buttonbar" *ngIf="showButtonBar">
|
4957
|
-
<p-button size="small" styleClass="p-datepicker-today-button" [label]="getTranslation('today')" (keydown)="onContainerButtonKeydown($event)" (onClick)="onTodayButtonClick($event)" [ngClass]="
|
4958
|
-
<p-button size="small" styleClass="p-datepicker-clear-button" [label]="getTranslation('clear')" (keydown)="onContainerButtonKeydown($event)" (onClick)="onClearButtonClick($event)" [ngClass]="
|
4958
|
+
<p-button size="small" styleClass="p-datepicker-today-button" [label]="getTranslation('today')" (keydown)="onContainerButtonKeydown($event)" (onClick)="onTodayButtonClick($event)" [ngClass]="todayButtonStyleClass" />
|
4959
|
+
<p-button size="small" styleClass="p-datepicker-clear-button" [label]="getTranslation('clear')" (keydown)="onContainerButtonKeydown($event)" (onClick)="onClearButtonClick($event)" [ngClass]="clearButtonStyleClass" />
|
4959
4960
|
</div>
|
4960
4961
|
<ng-content select="p-footer"></ng-content>
|
4961
4962
|
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
|