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, ContentChild, ViewChild, 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';
|
@@ -512,7 +512,6 @@ const _c22 = a0 => ({ $implicit: a0 });
|
|
512
512
|
const _c23 = (a0, a1) => ({ "p-datepicker-day-cell": true, "p-datepicker-other-month": a0, "p-datepicker-today": a1 });
|
513
513
|
const _c24 = (a0, a1) => ({ "p-datepicker-month": true, "p-datepicker-month-selected": a0, "p-disabled": a1 });
|
514
514
|
const _c25 = (a0, a1) => ({ "p-datepicker-year": true, "p-datepicker-year-selected": a0, "p-disabled": a1 });
|
515
|
-
const _c26 = a0 => [a0];
|
516
515
|
function Calendar_ng_template_2_ng_container_2_TimesIcon_1_Template(rf, ctx) { if (rf & 1) {
|
517
516
|
const _r3 = i0.ɵɵgetCurrentView();
|
518
517
|
i0.ɵɵelementStart(0, "TimesIcon", 11);
|
@@ -1228,9 +1227,9 @@ function Calendar_div_3_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
1228
1227
|
} if (rf & 2) {
|
1229
1228
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
1230
1229
|
i0.ɵɵadvance();
|
1231
|
-
i0.ɵɵproperty("label", ctx_r1.getTranslation("today"))("ngClass",
|
1230
|
+
i0.ɵɵproperty("label", ctx_r1.getTranslation("today"))("ngClass", ctx_r1.todayButtonStyleClass);
|
1232
1231
|
i0.ɵɵadvance();
|
1233
|
-
i0.ɵɵproperty("label", ctx_r1.getTranslation("clear"))("ngClass",
|
1232
|
+
i0.ɵɵproperty("label", ctx_r1.getTranslation("clear"))("ngClass", ctx_r1.clearButtonStyleClass);
|
1234
1233
|
} }
|
1235
1234
|
function Calendar_div_3_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
1236
1235
|
i0.ɵɵelementContainer(0);
|
@@ -1240,7 +1239,7 @@ function Calendar_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
1240
1239
|
i0.ɵɵelementStart(0, "div", 21, 2);
|
1241
1240
|
i0.ɵɵlistener("@overlayAnimation.start", function Calendar_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 Calendar_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 Calendar_div_3_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOverlayClick($event)); });
|
1242
1241
|
i0.ɵɵprojection(2);
|
1243
|
-
i0.ɵɵtemplate(3, Calendar_div_3_ng_container_3_Template, 1, 0, "ng-container", 13)(4, Calendar_div_3_ng_container_4_Template, 5, 3, "ng-container", 7)(5, Calendar_div_3_div_5_Template, 28, 21, "div", 22)(6, Calendar_div_3_div_6_Template, 3,
|
1242
|
+
i0.ɵɵtemplate(3, Calendar_div_3_ng_container_3_Template, 1, 0, "ng-container", 13)(4, Calendar_div_3_ng_container_4_Template, 5, 3, "ng-container", 7)(5, Calendar_div_3_div_5_Template, 28, 21, "div", 22)(6, Calendar_div_3_div_6_Template, 3, 4, "div", 23);
|
1244
1243
|
i0.ɵɵprojection(7, 1);
|
1245
1244
|
i0.ɵɵtemplate(8, Calendar_div_3_ng_container_8_Template, 1, 0, "ng-container", 13);
|
1246
1245
|
i0.ɵɵelementEnd();
|
@@ -3668,6 +3667,8 @@ class Calendar extends BaseComponent {
|
|
3668
3667
|
if (!this.inline) {
|
3669
3668
|
this.overlay = event.element;
|
3670
3669
|
this.overlay?.setAttribute(this.attributeSelector, '');
|
3670
|
+
const styles = !this.inline ? { position: 'absolute', top: '0', left: '0' } : undefined;
|
3671
|
+
addStyle(this.overlay, styles);
|
3671
3672
|
this.appendOverlay();
|
3672
3673
|
this.updateFocus();
|
3673
3674
|
if (this.autoZIndex) {
|
@@ -4752,8 +4753,8 @@ class Calendar extends BaseComponent {
|
|
4752
4753
|
</div>
|
4753
4754
|
</div>
|
4754
4755
|
<div class="p-datepicker-buttonbar" *ngIf="showButtonBar">
|
4755
|
-
<p-button size="small" styleClass="p-datepicker-today-button" [label]="getTranslation('today')" (keydown)="onContainerButtonKeydown($event)" (onClick)="onTodayButtonClick($event)" [ngClass]="
|
4756
|
-
<p-button size="small" styleClass="p-datepicker-clear-button" [label]="getTranslation('clear')" (keydown)="onContainerButtonKeydown($event)" (onClick)="onClearButtonClick($event)" [ngClass]="
|
4756
|
+
<p-button size="small" styleClass="p-datepicker-today-button" [label]="getTranslation('today')" (keydown)="onContainerButtonKeydown($event)" (onClick)="onTodayButtonClick($event)" [ngClass]="todayButtonStyleClass" />
|
4757
|
+
<p-button size="small" styleClass="p-datepicker-clear-button" [label]="getTranslation('clear')" (keydown)="onContainerButtonKeydown($event)" (onClick)="onClearButtonClick($event)" [ngClass]="clearButtonStyleClass" />
|
4757
4758
|
</div>
|
4758
4759
|
<ng-content select="p-footer"></ng-content>
|
4759
4760
|
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
|