@acorex/components 16.19.6 → 16.19.8
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.
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { ElementRef,
|
2
|
+
import { ElementRef, Input, Inject, Optional, Component, Injectable, EventEmitter, Output, Directive, ContentChild, ViewChild, TemplateRef, HostListener, ViewEncapsulation, NgModule, ChangeDetectionStrategy, Attribute, ContentChildren, signal, ViewChildren, output, inject, model, contentChild, afterNextRender, input, contentChildren, NO_ERRORS_SCHEMA, ViewContainerRef, HostBinding } from '@angular/core';
|
3
3
|
import * as i1$2 from '@acorex/core';
|
4
4
|
import { AXTranslator, AXHtmlUtil, AXConfig, AXDateTime, AXDateTimeRange, AXCoreModule, AXTranslatorModule, AXPlatform, AXObjectUtil, AXScrollModule, setPropByPath, AXColorUtil } from '@acorex/core';
|
5
5
|
import * as i1 from '@angular/cdk/overlay';
|
@@ -18,7 +18,7 @@ import { FormsModule } from '@angular/forms';
|
|
18
18
|
import * as i3 from 'ngx-mask';
|
19
19
|
import { NgxMaskDirective, NgxMaskPipe, provideNgxMask } from 'ngx-mask';
|
20
20
|
import moment from 'jalali-moment';
|
21
|
-
import { trigger, state,
|
21
|
+
import { trigger, state, transition, style, animate } from '@angular/animations';
|
22
22
|
import * as i5 from '@angular/cdk/a11y';
|
23
23
|
import { A11yModule } from '@angular/cdk/a11y';
|
24
24
|
import { differenceBy, chain, cloneDeep } from 'lodash-es';
|
@@ -4071,7 +4071,7 @@ class AXDatePickerComponent extends AXValidatableComponent {
|
|
4071
4071
|
convertToAXFormatDate = {
|
4072
4072
|
DDMMYYYY: 'DD/MM/YYYY',
|
4073
4073
|
MMDDYYYY: 'MM/DD/YYYY',
|
4074
|
-
YYYYMMDD: '
|
4074
|
+
YYYYMMDD: 'YYYY/MM/DD',
|
4075
4075
|
};
|
4076
4076
|
calendarValue;
|
4077
4077
|
isTypeDate = false;
|
@@ -4181,7 +4181,7 @@ class AXDatePickerComponent extends AXValidatableComponent {
|
|
4181
4181
|
}
|
4182
4182
|
isValidDate(year, month, day) {
|
4183
4183
|
if (this.type === 'jalali') {
|
4184
|
-
return this.isValidJalaliDate(
|
4184
|
+
return this.isValidJalaliDate(year, month, day);
|
4185
4185
|
}
|
4186
4186
|
else if (this.type === 'gregorian') {
|
4187
4187
|
return this.isValidGregorianDate(+year, +month, +day);
|
@@ -4199,7 +4199,7 @@ class AXDatePickerComponent extends AXValidatableComponent {
|
|
4199
4199
|
isValidJalaliDate(year, month, day) {
|
4200
4200
|
try {
|
4201
4201
|
const jDate = moment(`${year}-${month}-${day}`, 'jYYYY-jMM-jDD', true);
|
4202
|
-
if (jDate.isValid() && jDate.jDate() === day) {
|
4202
|
+
if (jDate.isValid() && jDate.jDate() === +day) {
|
4203
4203
|
return jDate;
|
4204
4204
|
}
|
4205
4205
|
else {
|