barsa-calendar 2.3.24 → 2.3.26
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/fesm2022/barsa-calendar.mjs +88 -93
- package/fesm2022/barsa-calendar.mjs.map +1 -1
- package/index.d.ts +14 -10
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { OnChanges, EventEmitter, SimpleChanges, OnInit, TemplateRef, ElementRef, PipeTransform, ComponentFactoryResolver } from '@angular/core';
|
|
3
3
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
4
4
|
import * as i24 from 'barsa-novin-ray-core';
|
|
5
|
-
import { DateInfo, CalendarMetaobjectDataModel, BaseComponent, AbbrevationDeviceSize, CalendarFields, MetaobjectDataModel, ReportViewBaseComponent, UiReportViewBaseSetting, DateService, BaseModule, DynamicComponentService } from 'barsa-novin-ray-core';
|
|
5
|
+
import { DateInfo, CalendarMetaobjectDataModel, BaseComponent, AbbrevationDeviceSize, CultureTypes, CalendarFields, MetaobjectDataModel, ReportViewBaseComponent, UiReportViewBaseSetting, DateService, BaseModule, DynamicComponentService } from 'barsa-novin-ray-core';
|
|
6
6
|
import * as i25 from '@fundamental-ngx/core';
|
|
7
7
|
import { FdDate, TimeComponent, InputGroupComponent, PopoverComponent } from '@fundamental-ngx/core';
|
|
8
8
|
import * as i22 from '@angular/common';
|
|
@@ -196,7 +196,7 @@ declare class TimeConfigI18n {
|
|
|
196
196
|
}
|
|
197
197
|
declare class DateTimePickerComponent extends BaseComponent implements OnInit, OnChanges {
|
|
198
198
|
placeholder: string;
|
|
199
|
-
|
|
199
|
+
calendarType: 'Gregorian' | 'Persian' | string;
|
|
200
200
|
formatPattern: string;
|
|
201
201
|
value: Date | undefined;
|
|
202
202
|
timeValue: FdDate;
|
|
@@ -213,6 +213,7 @@ declare class DateTimePickerComponent extends BaseComponent implements OnInit, O
|
|
|
213
213
|
buttonMenuMode: boolean;
|
|
214
214
|
inlineMode: boolean;
|
|
215
215
|
daterangeMode: boolean;
|
|
216
|
+
culture: CultureTypes;
|
|
216
217
|
rangeChange: EventEmitter<{
|
|
217
218
|
startDay: Date;
|
|
218
219
|
endDay: Date;
|
|
@@ -224,6 +225,10 @@ declare class DateTimePickerComponent extends BaseComponent implements OnInit, O
|
|
|
224
225
|
endSelectedDay: Day | null;
|
|
225
226
|
startSelectedDay: Day | null;
|
|
226
227
|
valueDay: Day | null;
|
|
228
|
+
supportCultureTypes: {
|
|
229
|
+
'fa-IR': string;
|
|
230
|
+
'en-US': string;
|
|
231
|
+
};
|
|
227
232
|
selectionMode: 'day' | 'month' | 'year';
|
|
228
233
|
todayIndex: number;
|
|
229
234
|
width$: Observable<number>;
|
|
@@ -233,19 +238,19 @@ declare class DateTimePickerComponent extends BaseComponent implements OnInit, O
|
|
|
233
238
|
today: Date;
|
|
234
239
|
weekDaysMin: string[];
|
|
235
240
|
weekDays: string[];
|
|
241
|
+
originalCulture: CultureTypes;
|
|
236
242
|
isValid: boolean;
|
|
237
|
-
culture: string;
|
|
238
243
|
months: string[];
|
|
239
244
|
years: string[];
|
|
240
245
|
tempFormmatedDate: string;
|
|
241
246
|
private _calendarService;
|
|
242
247
|
private _lastValue;
|
|
243
248
|
private _datetimeAdapter;
|
|
244
|
-
private _dateTimeToCaption;
|
|
245
249
|
private _dialogService;
|
|
246
250
|
private _portalService;
|
|
247
251
|
constructor();
|
|
248
252
|
ngOnInit(): void;
|
|
253
|
+
onCultureChange(culture: string): void;
|
|
249
254
|
onHourTextChange(e: any): void;
|
|
250
255
|
onMinuteTextChange(e: any): void;
|
|
251
256
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -262,8 +267,10 @@ declare class DateTimePickerComponent extends BaseComponent implements OnInit, O
|
|
|
262
267
|
onClear(popover: any, dialog: any): void;
|
|
263
268
|
onOk(popover: any, dialog: any): void;
|
|
264
269
|
onCancel(popover: any, dialog: any): void;
|
|
270
|
+
private _initCalendarService;
|
|
265
271
|
private _setFormattedDateToInput;
|
|
266
272
|
private _setInputGroupText;
|
|
273
|
+
private _getDateServiceOriginal;
|
|
267
274
|
private _getFormattedDate;
|
|
268
275
|
private _handleValueChange;
|
|
269
276
|
private _prepareYear;
|
|
@@ -271,7 +278,7 @@ declare class DateTimePickerComponent extends BaseComponent implements OnInit, O
|
|
|
271
278
|
private _raisValueChanged;
|
|
272
279
|
private _setFirstAndEndDay;
|
|
273
280
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimePickerComponent, never>;
|
|
274
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePickerComponent, "bc-date-time-picker", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "
|
|
281
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePickerComponent, "bc-date-time-picker", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "calendarType": { "alias": "calendarType"; "required": false; }; "formatPattern": { "alias": "formatPattern"; "required": false; }; "value": { "alias": "value"; "required": false; }; "timeValue": { "alias": "timeValue"; "required": false; }; "startRangeDate": { "alias": "startRangeDate"; "required": false; }; "endRangeDate": { "alias": "endRangeDate"; "required": false; }; "isRangePicker": { "alias": "isRangePicker"; "required": false; }; "showTime": { "alias": "showTime"; "required": false; }; "showDate": { "alias": "showDate"; "required": false; }; "rtl": { "alias": "rtl"; "required": false; }; "deviceSize": { "alias": "deviceSize"; "required": false; }; "isMobile": { "alias": "isMobile"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "buttonMenuMode": { "alias": "buttonMenuMode"; "required": false; }; "inlineMode": { "alias": "inlineMode"; "required": false; }; "daterangeMode": { "alias": "daterangeMode"; "required": false; }; "culture": { "alias": "culture"; "required": false; }; }, { "rangeChange": "rangeChange"; "valueChange": "valueChange"; }, never, never, false, never>;
|
|
275
282
|
}
|
|
276
283
|
|
|
277
284
|
declare class DayEventListComponent extends BaseComponent {
|
|
@@ -520,7 +527,7 @@ declare class CalendarMonthComponent extends BaseComponent implements OnChanges,
|
|
|
520
527
|
private _preventEvent;
|
|
521
528
|
private _fireDaySelect;
|
|
522
529
|
private _openPopover;
|
|
523
|
-
private
|
|
530
|
+
private _prepareWeekDays;
|
|
524
531
|
private fitToContainer;
|
|
525
532
|
private _prepareDaysTasks;
|
|
526
533
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarMonthComponent, never>;
|
|
@@ -707,9 +714,6 @@ declare class CalendarService extends BaseComponent {
|
|
|
707
714
|
private _currentMonthIndexSource;
|
|
708
715
|
private _weekModeDaysSource;
|
|
709
716
|
private _daysSource;
|
|
710
|
-
private _logService;
|
|
711
|
-
private culture;
|
|
712
|
-
constructor();
|
|
713
717
|
get todayMonthInfo(): CalendarMonthInfo;
|
|
714
718
|
get selectedMonth(): CalendarMonthInfo;
|
|
715
719
|
get calendars(): Array<CalendarMonthInfo>;
|
|
@@ -717,7 +721,6 @@ declare class CalendarService extends BaseComponent {
|
|
|
717
721
|
get days(): Array<Day>;
|
|
718
722
|
get Months(): string[];
|
|
719
723
|
loadMonthByDate(value: Date): void;
|
|
720
|
-
setDateService(primaryCalendarType: string): void;
|
|
721
724
|
setDays(days: Day[]): void;
|
|
722
725
|
prepareWeek(monthInfo: CalendarMonthInfo, startIndex: number, daysCount: number): void;
|
|
723
726
|
setSelected(selected: CalendarMonthInfo): void;
|
|
@@ -745,6 +748,7 @@ declare class CalendarService extends BaseComponent {
|
|
|
745
748
|
loadCalendarMonthInfo(loadedCalendarMonthInfo: CalendarMonthInfo): void;
|
|
746
749
|
addCalendarMonthInfo(calendarMonthInfo: CalendarMonthInfo): void;
|
|
747
750
|
getNumber(value: any): number;
|
|
751
|
+
setCulture(culture: CultureTypes): void;
|
|
748
752
|
private _initilize;
|
|
749
753
|
private _calcColSpan;
|
|
750
754
|
private _loadNextMonth;
|