@acorex/components 16.19.7 → 16.19.9
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.
@@ -21,7 +21,8 @@ import moment from 'jalali-moment';
|
|
21
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
|
-
import
|
24
|
+
import * as lodash from 'lodash-es';
|
25
|
+
import { differenceBy, cloneDeep } from 'lodash-es';
|
25
26
|
import * as i1$4 from '@angular/router';
|
26
27
|
import { RouterModule } from '@angular/router';
|
27
28
|
|
@@ -4181,7 +4182,7 @@ class AXDatePickerComponent extends AXValidatableComponent {
|
|
4181
4182
|
}
|
4182
4183
|
isValidDate(year, month, day) {
|
4183
4184
|
if (this.type === 'jalali') {
|
4184
|
-
return this.isValidJalaliDate(
|
4185
|
+
return this.isValidJalaliDate(year, month, day);
|
4185
4186
|
}
|
4186
4187
|
else if (this.type === 'gregorian') {
|
4187
4188
|
return this.isValidGregorianDate(+year, +month, +day);
|
@@ -4199,7 +4200,7 @@ class AXDatePickerComponent extends AXValidatableComponent {
|
|
4199
4200
|
isValidJalaliDate(year, month, day) {
|
4200
4201
|
try {
|
4201
4202
|
const jDate = moment(`${year}-${month}-${day}`, 'jYYYY-jMM-jDD', true);
|
4202
|
-
if (jDate.isValid() && jDate.jDate() === day) {
|
4203
|
+
if (jDate.isValid() && jDate.jDate() === +day) {
|
4203
4204
|
return jDate;
|
4204
4205
|
}
|
4205
4206
|
else {
|
@@ -11764,7 +11765,8 @@ class AXSearchBarComponent {
|
|
11764
11765
|
});
|
11765
11766
|
}
|
11766
11767
|
});
|
11767
|
-
this._items =
|
11768
|
+
this._items = lodash
|
11769
|
+
.chain(v)
|
11768
11770
|
.groupBy((x) => x.property.row)
|
11769
11771
|
.map((value, key) => ({ row: key, items: value }))
|
11770
11772
|
.value();
|