ngx-bootstrap 20.0.1 → 21.0.0
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/accordion/fesm2022/ngx-bootstrap-accordion.mjs +15 -15
- package/accordion/fesm2022/ngx-bootstrap-accordion.mjs.map +1 -1
- package/alert/fesm2022/ngx-bootstrap-alert.mjs +12 -12
- package/alert/fesm2022/ngx-bootstrap-alert.mjs.map +1 -1
- package/buttons/fesm2022/ngx-bootstrap-buttons.mjs +25 -16
- package/buttons/fesm2022/ngx-bootstrap-buttons.mjs.map +1 -1
- package/buttons/{index.d.ts → types/ngx-bootstrap-buttons.d.ts} +3 -3
- package/carousel/fesm2022/ngx-bootstrap-carousel.mjs +15 -15
- package/carousel/fesm2022/ngx-bootstrap-carousel.mjs.map +1 -1
- package/chronos/fesm2022/ngx-bootstrap-chronos.mjs.map +1 -1
- package/collapse/fesm2022/ngx-bootstrap-collapse.mjs +7 -7
- package/collapse/fesm2022/ngx-bootstrap-collapse.mjs.map +1 -1
- package/component-loader/fesm2022/ngx-bootstrap-component-loader.mjs +3 -3
- package/component-loader/fesm2022/ngx-bootstrap-component-loader.mjs.map +1 -1
- package/datepicker/bs-datepicker.css +42 -14
- package/datepicker/bs-datepicker.css.map +1 -1
- package/datepicker/fesm2022/ngx-bootstrap-datepicker.mjs +369 -317
- package/datepicker/fesm2022/ngx-bootstrap-datepicker.mjs.map +1 -1
- package/dropdown/fesm2022/ngx-bootstrap-dropdown.mjs +37 -26
- package/dropdown/fesm2022/ngx-bootstrap-dropdown.mjs.map +1 -1
- package/dropdown/{index.d.ts → types/ngx-bootstrap-dropdown.d.ts} +2 -2
- package/fesm2022/ngx-bootstrap.mjs.map +1 -1
- package/focus-trap/fesm2022/ngx-bootstrap-focus-trap.mjs +19 -19
- package/focus-trap/fesm2022/ngx-bootstrap-focus-trap.mjs.map +1 -1
- package/locale/fesm2022/ngx-bootstrap-locale.mjs.map +1 -1
- package/mini-ngrx/fesm2022/ngx-bootstrap-mini-ngrx.mjs.map +1 -1
- package/modal/fesm2022/ngx-bootstrap-modal.mjs +52 -28
- package/modal/fesm2022/ngx-bootstrap-modal.mjs.map +1 -1
- package/modal/{index.d.ts → types/ngx-bootstrap-modal.d.ts} +6 -6
- package/package.json +7 -7
- package/pagination/fesm2022/ngx-bootstrap-pagination.mjs +15 -15
- package/pagination/fesm2022/ngx-bootstrap-pagination.mjs.map +1 -1
- package/popover/fesm2022/ngx-bootstrap-popover.mjs +17 -17
- package/popover/fesm2022/ngx-bootstrap-popover.mjs.map +1 -1
- package/positioning/fesm2022/ngx-bootstrap-positioning.mjs +3 -3
- package/positioning/fesm2022/ngx-bootstrap-positioning.mjs.map +1 -1
- package/progressbar/fesm2022/ngx-bootstrap-progressbar.mjs +14 -15
- package/progressbar/fesm2022/ngx-bootstrap-progressbar.mjs.map +1 -1
- package/rating/fesm2022/ngx-bootstrap-rating.mjs +12 -12
- package/rating/fesm2022/ngx-bootstrap-rating.mjs.map +1 -1
- package/schematics/utils/current_dependency_versions.json +1 -1
- package/sortable/fesm2022/ngx-bootstrap-sortable.mjs +65 -61
- package/sortable/fesm2022/ngx-bootstrap-sortable.mjs.map +1 -1
- package/tabs/fesm2022/ngx-bootstrap-tabs.mjs +21 -21
- package/tabs/fesm2022/ngx-bootstrap-tabs.mjs.map +1 -1
- package/timepicker/fesm2022/ngx-bootstrap-timepicker.mjs +17 -18
- package/timepicker/fesm2022/ngx-bootstrap-timepicker.mjs.map +1 -1
- package/tooltip/fesm2022/ngx-bootstrap-tooltip.mjs +13 -13
- package/tooltip/fesm2022/ngx-bootstrap-tooltip.mjs.map +1 -1
- package/typeahead/fesm2022/ngx-bootstrap-typeahead.mjs +24 -20
- package/typeahead/fesm2022/ngx-bootstrap-typeahead.mjs.map +1 -1
- package/utils/fesm2022/ngx-bootstrap-utils.mjs.map +1 -1
- /package/accordion/{index.d.ts → types/ngx-bootstrap-accordion.d.ts} +0 -0
- /package/alert/{index.d.ts → types/ngx-bootstrap-alert.d.ts} +0 -0
- /package/carousel/{index.d.ts → types/ngx-bootstrap-carousel.d.ts} +0 -0
- /package/chronos/{index.d.ts → types/ngx-bootstrap-chronos.d.ts} +0 -0
- /package/collapse/{index.d.ts → types/ngx-bootstrap-collapse.d.ts} +0 -0
- /package/component-loader/{index.d.ts → types/ngx-bootstrap-component-loader.d.ts} +0 -0
- /package/datepicker/{index.d.ts → types/ngx-bootstrap-datepicker.d.ts} +0 -0
- /package/focus-trap/{index.d.ts → types/ngx-bootstrap-focus-trap.d.ts} +0 -0
- /package/locale/{index.d.ts → types/ngx-bootstrap-locale.d.ts} +0 -0
- /package/mini-ngrx/{index.d.ts → types/ngx-bootstrap-mini-ngrx.d.ts} +0 -0
- /package/pagination/{index.d.ts → types/ngx-bootstrap-pagination.d.ts} +0 -0
- /package/popover/{index.d.ts → types/ngx-bootstrap-popover.d.ts} +0 -0
- /package/positioning/{index.d.ts → types/ngx-bootstrap-positioning.d.ts} +0 -0
- /package/progressbar/{index.d.ts → types/ngx-bootstrap-progressbar.d.ts} +0 -0
- /package/rating/{index.d.ts → types/ngx-bootstrap-rating.d.ts} +0 -0
- /package/sortable/{index.d.ts → types/ngx-bootstrap-sortable.d.ts} +0 -0
- /package/tabs/{index.d.ts → types/ngx-bootstrap-tabs.d.ts} +0 -0
- /package/timepicker/{index.d.ts → types/ngx-bootstrap-timepicker.d.ts} +0 -0
- /package/tooltip/{index.d.ts → types/ngx-bootstrap-tooltip.d.ts} +0 -0
- /package/typeahead/{index.d.ts → types/ngx-bootstrap-typeahead.d.ts} +0 -0
- /package/{index.d.ts → types/ngx-bootstrap.d.ts} +0 -0
- /package/utils/{index.d.ts → types/ngx-bootstrap-utils.d.ts} +0 -0
|
@@ -9,9 +9,9 @@ import { TimepickerModule } from 'ngx-bootstrap/timepicker';
|
|
|
9
9
|
import { trigger, state, transition, style, animate } from '@angular/animations';
|
|
10
10
|
import { Subscription, BehaviorSubject, combineLatest, Subject } from 'rxjs';
|
|
11
11
|
import { MiniStore, MiniState } from 'ngx-bootstrap/mini-ngrx';
|
|
12
|
-
import { NgFor, NgIf, NgClass, NgSwitch, NgSwitchCase, AsyncPipe, CommonModule } from '@angular/common';
|
|
13
12
|
import * as i2 from 'ngx-bootstrap/tooltip';
|
|
14
13
|
import { TooltipModule } from 'ngx-bootstrap/tooltip';
|
|
14
|
+
import { NgClass, AsyncPipe, NgIf, NgSwitch, NgSwitchCase, NgFor, CommonModule } from '@angular/common';
|
|
15
15
|
import * as i2$1 from 'ngx-bootstrap/component-loader';
|
|
16
16
|
import { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';
|
|
17
17
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
|
|
@@ -105,10 +105,10 @@ class BsDatepickerConfig {
|
|
|
105
105
|
* */
|
|
106
106
|
this.keepDatesOutOfRules = false;
|
|
107
107
|
}
|
|
108
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
109
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
108
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
109
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerConfig, providedIn: 'root' }); }
|
|
110
110
|
}
|
|
111
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerConfig, decorators: [{
|
|
112
112
|
type: Injectable,
|
|
113
113
|
args: [{
|
|
114
114
|
providedIn: 'root'
|
|
@@ -338,10 +338,10 @@ class BsDatepickerActions {
|
|
|
338
338
|
payload: locale
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
342
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
341
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerActions, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
342
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerActions, providedIn: 'platform' }); }
|
|
343
343
|
}
|
|
344
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
344
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerActions, decorators: [{
|
|
345
345
|
type: Injectable,
|
|
346
346
|
args: [{ providedIn: 'platform' }]
|
|
347
347
|
}] });
|
|
@@ -367,10 +367,10 @@ class BsLocaleService {
|
|
|
367
367
|
}
|
|
368
368
|
this._locale.next(locale);
|
|
369
369
|
}
|
|
370
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
371
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
370
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsLocaleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
371
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsLocaleService, providedIn: 'platform' }); }
|
|
372
372
|
}
|
|
373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsLocaleService, decorators: [{
|
|
374
374
|
type: Injectable,
|
|
375
375
|
args: [{ providedIn: 'platform' }]
|
|
376
376
|
}] });
|
|
@@ -541,10 +541,10 @@ class BsDatepickerEffects {
|
|
|
541
541
|
sub.unsubscribe();
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
545
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
544
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerEffects, deps: [{ token: BsDatepickerActions }, { token: BsLocaleService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
545
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerEffects, providedIn: 'platform' }); }
|
|
546
546
|
}
|
|
547
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
547
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerEffects, decorators: [{
|
|
548
548
|
type: Injectable,
|
|
549
549
|
args: [{ providedIn: 'platform' }]
|
|
550
550
|
}], ctorParameters: () => [{ type: BsDatepickerActions }, { type: BsLocaleService }] });
|
|
@@ -1369,10 +1369,10 @@ class BsDatepickerStore extends MiniStore {
|
|
|
1369
1369
|
const state = new MiniState(initialDatepickerState, _dispatcher, bsDatepickerReducer);
|
|
1370
1370
|
super(_dispatcher, bsDatepickerReducer, state);
|
|
1371
1371
|
}
|
|
1372
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1373
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1372
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1373
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerStore, providedIn: 'platform' }); }
|
|
1374
1374
|
}
|
|
1375
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerStore, decorators: [{
|
|
1376
1376
|
type: Injectable,
|
|
1377
1377
|
args: [{ providedIn: 'platform' }]
|
|
1378
1378
|
}], ctorParameters: () => [] });
|
|
@@ -1387,37 +1387,41 @@ class BsCustomDatesViewComponent {
|
|
|
1387
1387
|
compareRanges(range) {
|
|
1388
1388
|
return JSON.stringify(range?.value) === JSON.stringify(this.selectedRange);
|
|
1389
1389
|
}
|
|
1390
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1391
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1390
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsCustomDatesViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1391
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: BsCustomDatesViewComponent, isStandalone: true, selector: "bs-custom-date-view", inputs: { ranges: "ranges", selectedRange: "selectedRange", customRangeLabel: "customRangeLabel" }, outputs: { onSelect: "onSelect" }, ngImport: i0, template: `
|
|
1392
1392
|
<div class="bs-datepicker-predefined-btns">
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1393
|
+
@for (range of ranges; track range) {
|
|
1394
|
+
<button
|
|
1395
|
+
type="button"
|
|
1396
|
+
class="btn"
|
|
1397
|
+
(click)="selectFromRanges(range)"
|
|
1398
|
+
[class.selected]="compareRanges(range)">
|
|
1399
|
+
{{ range.label }}
|
|
1400
|
+
</button>
|
|
1401
|
+
}
|
|
1400
1402
|
</div>
|
|
1401
|
-
|
|
1403
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1402
1404
|
}
|
|
1403
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsCustomDatesViewComponent, decorators: [{
|
|
1404
1406
|
type: Component,
|
|
1405
1407
|
args: [{
|
|
1406
1408
|
selector: 'bs-custom-date-view',
|
|
1407
1409
|
template: `
|
|
1408
1410
|
<div class="bs-datepicker-predefined-btns">
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1411
|
+
@for (range of ranges; track range) {
|
|
1412
|
+
<button
|
|
1413
|
+
type="button"
|
|
1414
|
+
class="btn"
|
|
1415
|
+
(click)="selectFromRanges(range)"
|
|
1416
|
+
[class.selected]="compareRanges(range)">
|
|
1417
|
+
{{ range.label }}
|
|
1418
|
+
</button>
|
|
1419
|
+
}
|
|
1416
1420
|
</div>
|
|
1417
|
-
|
|
1421
|
+
`,
|
|
1418
1422
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1419
1423
|
standalone: true,
|
|
1420
|
-
imports: [
|
|
1424
|
+
imports: []
|
|
1421
1425
|
}]
|
|
1422
1426
|
}], propDecorators: { ranges: [{
|
|
1423
1427
|
type: Input
|
|
@@ -1453,101 +1457,99 @@ class BsDatepickerNavigationViewComponent {
|
|
|
1453
1457
|
}
|
|
1454
1458
|
this.onViewMode.emit(viewMode);
|
|
1455
1459
|
}
|
|
1456
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1457
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1460
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerNavigationViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1461
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: BsDatepickerNavigationViewComponent, isStandalone: true, selector: "bs-datepicker-navigation-view", inputs: { calendar: "calendar", isDisabled: "isDisabled" }, outputs: { onNavigate: "onNavigate", onViewMode: "onViewMode" }, ngImport: i0, template: `
|
|
1458
1462
|
<button class="previous"
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
+
[disabled]="calendar.disableLeftArrow"
|
|
1464
|
+
[style.visibility]="calendar.hideLeftArrow ? 'hidden' : 'visible'"
|
|
1465
|
+
type="button"
|
|
1466
|
+
(click)="navTo(true)">
|
|
1463
1467
|
<span>‹</span>
|
|
1464
1468
|
</button>
|
|
1465
|
-
|
|
1466
|
-
|
|
1469
|
+
|
|
1470
|
+
@if (calendar && calendar.monthTitle) {
|
|
1467
1471
|
​ <!-- zero-width space needed for correct alignment
|
|
1468
|
-
|
|
1469
|
-
|
|
1472
|
+
with preserveWhitespaces: false in Angular -->
|
|
1470
1473
|
<button class="current"
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1474
|
+
type="button"
|
|
1475
|
+
(click)="view('month')"
|
|
1476
|
+
[disabled]="isDisabled"
|
|
1477
|
+
><span>{{ calendar.monthTitle }}</span>
|
|
1475
1478
|
</button>
|
|
1476
|
-
|
|
1477
|
-
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1478
1481
|
​ <!-- zero-width space needed for correct alignment
|
|
1479
|
-
|
|
1480
|
-
|
|
1482
|
+
with preserveWhitespaces: false in Angular -->
|
|
1483
|
+
|
|
1481
1484
|
<button
|
|
1482
1485
|
class="current"
|
|
1483
1486
|
(click)="view('year')"
|
|
1484
1487
|
type="button"
|
|
1485
1488
|
[disabled]="isDisabled"
|
|
1486
|
-
|
|
1489
|
+
>
|
|
1487
1490
|
<span>{{ calendar.yearTitle }}</span>
|
|
1488
1491
|
</button>
|
|
1489
|
-
|
|
1492
|
+
|
|
1490
1493
|
​ <!-- zero-width space needed for correct alignment
|
|
1491
|
-
|
|
1492
|
-
|
|
1494
|
+
with preserveWhitespaces: false in Angular -->
|
|
1495
|
+
|
|
1493
1496
|
<button class="next"
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1497
|
+
[disabled]="calendar.disableRightArrow"
|
|
1498
|
+
[style.visibility]="calendar.hideRightArrow ? 'hidden' : 'visible'"
|
|
1499
|
+
type="button"
|
|
1500
|
+
(click)="navTo(false)"><span>›</span>
|
|
1498
1501
|
</button>
|
|
1499
|
-
|
|
1502
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1500
1503
|
}
|
|
1501
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerNavigationViewComponent, decorators: [{
|
|
1502
1505
|
type: Component,
|
|
1503
1506
|
args: [{
|
|
1504
1507
|
selector: 'bs-datepicker-navigation-view',
|
|
1505
1508
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1506
1509
|
template: `
|
|
1507
1510
|
<button class="previous"
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1511
|
+
[disabled]="calendar.disableLeftArrow"
|
|
1512
|
+
[style.visibility]="calendar.hideLeftArrow ? 'hidden' : 'visible'"
|
|
1513
|
+
type="button"
|
|
1514
|
+
(click)="navTo(true)">
|
|
1512
1515
|
<span>‹</span>
|
|
1513
1516
|
</button>
|
|
1514
|
-
|
|
1515
|
-
|
|
1517
|
+
|
|
1518
|
+
@if (calendar && calendar.monthTitle) {
|
|
1516
1519
|
​ <!-- zero-width space needed for correct alignment
|
|
1517
|
-
|
|
1518
|
-
|
|
1520
|
+
with preserveWhitespaces: false in Angular -->
|
|
1519
1521
|
<button class="current"
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1522
|
+
type="button"
|
|
1523
|
+
(click)="view('month')"
|
|
1524
|
+
[disabled]="isDisabled"
|
|
1525
|
+
><span>{{ calendar.monthTitle }}</span>
|
|
1524
1526
|
</button>
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1527
1529
|
​ <!-- zero-width space needed for correct alignment
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
+
with preserveWhitespaces: false in Angular -->
|
|
1531
|
+
|
|
1530
1532
|
<button
|
|
1531
1533
|
class="current"
|
|
1532
1534
|
(click)="view('year')"
|
|
1533
1535
|
type="button"
|
|
1534
1536
|
[disabled]="isDisabled"
|
|
1535
|
-
|
|
1537
|
+
>
|
|
1536
1538
|
<span>{{ calendar.yearTitle }}</span>
|
|
1537
1539
|
</button>
|
|
1538
|
-
|
|
1540
|
+
|
|
1539
1541
|
​ <!-- zero-width space needed for correct alignment
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
+
with preserveWhitespaces: false in Angular -->
|
|
1543
|
+
|
|
1542
1544
|
<button class="next"
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1545
|
+
[disabled]="calendar.disableRightArrow"
|
|
1546
|
+
[style.visibility]="calendar.hideRightArrow ? 'hidden' : 'visible'"
|
|
1547
|
+
type="button"
|
|
1548
|
+
(click)="navTo(false)"><span>›</span>
|
|
1547
1549
|
</button>
|
|
1548
|
-
|
|
1550
|
+
`,
|
|
1549
1551
|
standalone: true,
|
|
1550
|
-
imports: [
|
|
1552
|
+
imports: []
|
|
1551
1553
|
}]
|
|
1552
1554
|
}], propDecorators: { calendar: [{
|
|
1553
1555
|
type: Input
|
|
@@ -1565,8 +1567,8 @@ class BsTimepickerViewComponent {
|
|
|
1565
1567
|
this.hours = 0;
|
|
1566
1568
|
this.minutes = 0;
|
|
1567
1569
|
}
|
|
1568
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1569
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1570
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsTimepickerViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1571
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: BsTimepickerViewComponent, isStandalone: true, selector: "bs-timepicker", ngImport: i0, template: `
|
|
1570
1572
|
<div class="bs-timepicker-container">
|
|
1571
1573
|
<div class="bs-timepicker-controls">
|
|
1572
1574
|
<button class="bs-decrease" type="button">-</button>
|
|
@@ -1586,7 +1588,7 @@ class BsTimepickerViewComponent {
|
|
|
1586
1588
|
</div>
|
|
1587
1589
|
`, isInline: true }); }
|
|
1588
1590
|
}
|
|
1589
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1591
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsTimepickerViewComponent, decorators: [{
|
|
1590
1592
|
type: Component,
|
|
1591
1593
|
args: [{
|
|
1592
1594
|
selector: 'bs-timepicker',
|
|
@@ -1614,10 +1616,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImpor
|
|
|
1614
1616
|
}] });
|
|
1615
1617
|
|
|
1616
1618
|
class BsCurrentDateViewComponent {
|
|
1617
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1618
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1619
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsCurrentDateViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1620
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: BsCurrentDateViewComponent, isStandalone: true, selector: "bs-current-date", inputs: { title: "title" }, ngImport: i0, template: `<div class="current-timedate"><span>{{ title }}</span></div>`, isInline: true }); }
|
|
1619
1621
|
}
|
|
1620
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsCurrentDateViewComponent, decorators: [{
|
|
1621
1623
|
type: Component,
|
|
1622
1624
|
args: [{
|
|
1623
1625
|
selector: 'bs-current-date',
|
|
@@ -1629,46 +1631,54 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImpor
|
|
|
1629
1631
|
}] } });
|
|
1630
1632
|
|
|
1631
1633
|
class BsCalendarLayoutComponent {
|
|
1632
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1633
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1634
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsCalendarLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1635
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: BsCalendarLayoutComponent, isStandalone: true, selector: "bs-calendar-layout", ngImport: i0, template: `
|
|
1634
1636
|
<!-- current date, will be added in nearest releases -->
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
+
@if (false) {
|
|
1638
|
+
<bs-current-date title="hey there"></bs-current-date>
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1637
1641
|
<!--navigation-->
|
|
1638
1642
|
<div class="bs-datepicker-head">
|
|
1639
1643
|
<ng-content select="bs-datepicker-navigation-view"></ng-content>
|
|
1640
1644
|
</div>
|
|
1641
|
-
|
|
1645
|
+
|
|
1642
1646
|
<div class="bs-datepicker-body">
|
|
1643
1647
|
<ng-content></ng-content>
|
|
1644
1648
|
</div>
|
|
1645
|
-
|
|
1649
|
+
|
|
1646
1650
|
<!--timepicker-->
|
|
1647
|
-
|
|
1648
|
-
|
|
1651
|
+
@if (false) {
|
|
1652
|
+
<bs-timepicker></bs-timepicker>
|
|
1653
|
+
}
|
|
1654
|
+
`, isInline: true, dependencies: [{ kind: "component", type: BsCurrentDateViewComponent, selector: "bs-current-date", inputs: ["title"] }, { kind: "component", type: BsTimepickerViewComponent, selector: "bs-timepicker" }] }); }
|
|
1649
1655
|
}
|
|
1650
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsCalendarLayoutComponent, decorators: [{
|
|
1651
1657
|
type: Component,
|
|
1652
1658
|
args: [{
|
|
1653
1659
|
selector: 'bs-calendar-layout',
|
|
1654
1660
|
template: `
|
|
1655
1661
|
<!-- current date, will be added in nearest releases -->
|
|
1656
|
-
|
|
1657
|
-
|
|
1662
|
+
@if (false) {
|
|
1663
|
+
<bs-current-date title="hey there"></bs-current-date>
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1658
1666
|
<!--navigation-->
|
|
1659
1667
|
<div class="bs-datepicker-head">
|
|
1660
1668
|
<ng-content select="bs-datepicker-navigation-view"></ng-content>
|
|
1661
1669
|
</div>
|
|
1662
|
-
|
|
1670
|
+
|
|
1663
1671
|
<div class="bs-datepicker-body">
|
|
1664
1672
|
<ng-content></ng-content>
|
|
1665
1673
|
</div>
|
|
1666
|
-
|
|
1674
|
+
|
|
1667
1675
|
<!--timepicker-->
|
|
1668
|
-
|
|
1669
|
-
|
|
1676
|
+
@if (false) {
|
|
1677
|
+
<bs-timepicker></bs-timepicker>
|
|
1678
|
+
}
|
|
1679
|
+
`,
|
|
1670
1680
|
standalone: true,
|
|
1671
|
-
imports: [
|
|
1681
|
+
imports: [BsCurrentDateViewComponent, BsTimepickerViewComponent]
|
|
1672
1682
|
}]
|
|
1673
1683
|
}] });
|
|
1674
1684
|
|
|
@@ -1692,33 +1702,37 @@ class BsYearsCalendarViewComponent {
|
|
|
1692
1702
|
changeViewMode(event) {
|
|
1693
1703
|
this.onViewMode.emit(event);
|
|
1694
1704
|
}
|
|
1695
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1696
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1705
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsYearsCalendarViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1706
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: BsYearsCalendarViewComponent, isStandalone: true, selector: "bs-years-calendar-view", inputs: { calendar: "calendar" }, outputs: { onNavigate: "onNavigate", onViewMode: "onViewMode", onSelect: "onSelect", onHover: "onHover" }, ngImport: i0, template: `
|
|
1697
1707
|
<bs-calendar-layout>
|
|
1698
1708
|
<bs-datepicker-navigation-view
|
|
1699
1709
|
[calendar]="calendar"
|
|
1700
1710
|
(onNavigate)="navigateTo($event)"
|
|
1701
1711
|
(onViewMode)="changeViewMode($event)"
|
|
1702
1712
|
></bs-datepicker-navigation-view>
|
|
1703
|
-
|
|
1713
|
+
|
|
1704
1714
|
<table role="grid" class="years">
|
|
1705
1715
|
<tbody>
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
(
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
+
@for (row of calendar?.years; track row) {
|
|
1717
|
+
<tr>
|
|
1718
|
+
@for (year of row; track year) {
|
|
1719
|
+
<td role="gridcell"
|
|
1720
|
+
(click)="viewYear(year)"
|
|
1721
|
+
(mouseenter)="hoverYear(year, true)"
|
|
1722
|
+
(mouseleave)="hoverYear(year, false)"
|
|
1723
|
+
[class.disabled]="year.isDisabled"
|
|
1724
|
+
[class.is-highlighted]="year.isHovered">
|
|
1725
|
+
<span [class.selected]="year.isSelected">{{ year.label }}</span>
|
|
1726
|
+
</td>
|
|
1727
|
+
}
|
|
1728
|
+
</tr>
|
|
1729
|
+
}
|
|
1716
1730
|
</tbody>
|
|
1717
1731
|
</table>
|
|
1718
1732
|
</bs-calendar-layout>
|
|
1719
|
-
|
|
1733
|
+
`, isInline: true, dependencies: [{ kind: "component", type: BsCalendarLayoutComponent, selector: "bs-calendar-layout" }, { kind: "component", type: BsDatepickerNavigationViewComponent, selector: "bs-datepicker-navigation-view", inputs: ["calendar", "isDisabled"], outputs: ["onNavigate", "onViewMode"] }] }); }
|
|
1720
1734
|
}
|
|
1721
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1735
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsYearsCalendarViewComponent, decorators: [{
|
|
1722
1736
|
type: Component,
|
|
1723
1737
|
args: [{
|
|
1724
1738
|
selector: 'bs-years-calendar-view',
|
|
@@ -1729,25 +1743,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImpor
|
|
|
1729
1743
|
(onNavigate)="navigateTo($event)"
|
|
1730
1744
|
(onViewMode)="changeViewMode($event)"
|
|
1731
1745
|
></bs-datepicker-navigation-view>
|
|
1732
|
-
|
|
1746
|
+
|
|
1733
1747
|
<table role="grid" class="years">
|
|
1734
1748
|
<tbody>
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
(
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1749
|
+
@for (row of calendar?.years; track row) {
|
|
1750
|
+
<tr>
|
|
1751
|
+
@for (year of row; track year) {
|
|
1752
|
+
<td role="gridcell"
|
|
1753
|
+
(click)="viewYear(year)"
|
|
1754
|
+
(mouseenter)="hoverYear(year, true)"
|
|
1755
|
+
(mouseleave)="hoverYear(year, false)"
|
|
1756
|
+
[class.disabled]="year.isDisabled"
|
|
1757
|
+
[class.is-highlighted]="year.isHovered">
|
|
1758
|
+
<span [class.selected]="year.isSelected">{{ year.label }}</span>
|
|
1759
|
+
</td>
|
|
1760
|
+
}
|
|
1761
|
+
</tr>
|
|
1762
|
+
}
|
|
1745
1763
|
</tbody>
|
|
1746
1764
|
</table>
|
|
1747
1765
|
</bs-calendar-layout>
|
|
1748
|
-
|
|
1766
|
+
`,
|
|
1749
1767
|
standalone: true,
|
|
1750
|
-
imports: [BsCalendarLayoutComponent, BsDatepickerNavigationViewComponent
|
|
1768
|
+
imports: [BsCalendarLayoutComponent, BsDatepickerNavigationViewComponent]
|
|
1751
1769
|
}]
|
|
1752
1770
|
}], propDecorators: { calendar: [{
|
|
1753
1771
|
type: Input
|
|
@@ -1781,33 +1799,37 @@ class BsMonthCalendarViewComponent {
|
|
|
1781
1799
|
changeViewMode(event) {
|
|
1782
1800
|
this.onViewMode.emit(event);
|
|
1783
1801
|
}
|
|
1784
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1785
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1802
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsMonthCalendarViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1803
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: BsMonthCalendarViewComponent, isStandalone: true, selector: "bs-month-calendar-view", inputs: { calendar: "calendar" }, outputs: { onNavigate: "onNavigate", onViewMode: "onViewMode", onSelect: "onSelect", onHover: "onHover" }, ngImport: i0, template: `
|
|
1786
1804
|
<bs-calendar-layout>
|
|
1787
1805
|
<bs-datepicker-navigation-view
|
|
1788
1806
|
[calendar]="calendar"
|
|
1789
1807
|
(onNavigate)="navigateTo($event)"
|
|
1790
1808
|
(onViewMode)="changeViewMode($event)"
|
|
1791
1809
|
></bs-datepicker-navigation-view>
|
|
1792
|
-
|
|
1810
|
+
|
|
1793
1811
|
<table role="grid" class="months">
|
|
1794
1812
|
<tbody>
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
(
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1813
|
+
@for (row of calendar?.months; track row) {
|
|
1814
|
+
<tr>
|
|
1815
|
+
@for (month of row; track month) {
|
|
1816
|
+
<td role="gridcell"
|
|
1817
|
+
(click)="viewMonth(month)"
|
|
1818
|
+
(mouseenter)="hoverMonth(month, true)"
|
|
1819
|
+
(mouseleave)="hoverMonth(month, false)"
|
|
1820
|
+
[class.disabled]="month.isDisabled"
|
|
1821
|
+
[class.is-highlighted]="month.isHovered">
|
|
1822
|
+
<span [class.selected]="month.isSelected">{{ month.label }}</span>
|
|
1823
|
+
</td>
|
|
1824
|
+
}
|
|
1825
|
+
</tr>
|
|
1826
|
+
}
|
|
1805
1827
|
</tbody>
|
|
1806
1828
|
</table>
|
|
1807
1829
|
</bs-calendar-layout>
|
|
1808
|
-
|
|
1830
|
+
`, isInline: true, dependencies: [{ kind: "component", type: BsCalendarLayoutComponent, selector: "bs-calendar-layout" }, { kind: "component", type: BsDatepickerNavigationViewComponent, selector: "bs-datepicker-navigation-view", inputs: ["calendar", "isDisabled"], outputs: ["onNavigate", "onViewMode"] }] }); }
|
|
1809
1831
|
}
|
|
1810
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1832
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsMonthCalendarViewComponent, decorators: [{
|
|
1811
1833
|
type: Component,
|
|
1812
1834
|
args: [{
|
|
1813
1835
|
selector: 'bs-month-calendar-view',
|
|
@@ -1818,25 +1840,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImpor
|
|
|
1818
1840
|
(onNavigate)="navigateTo($event)"
|
|
1819
1841
|
(onViewMode)="changeViewMode($event)"
|
|
1820
1842
|
></bs-datepicker-navigation-view>
|
|
1821
|
-
|
|
1843
|
+
|
|
1822
1844
|
<table role="grid" class="months">
|
|
1823
1845
|
<tbody>
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
(
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1846
|
+
@for (row of calendar?.months; track row) {
|
|
1847
|
+
<tr>
|
|
1848
|
+
@for (month of row; track month) {
|
|
1849
|
+
<td role="gridcell"
|
|
1850
|
+
(click)="viewMonth(month)"
|
|
1851
|
+
(mouseenter)="hoverMonth(month, true)"
|
|
1852
|
+
(mouseleave)="hoverMonth(month, false)"
|
|
1853
|
+
[class.disabled]="month.isDisabled"
|
|
1854
|
+
[class.is-highlighted]="month.isHovered">
|
|
1855
|
+
<span [class.selected]="month.isSelected">{{ month.label }}</span>
|
|
1856
|
+
</td>
|
|
1857
|
+
}
|
|
1858
|
+
</tr>
|
|
1859
|
+
}
|
|
1834
1860
|
</tbody>
|
|
1835
1861
|
</table>
|
|
1836
1862
|
</bs-calendar-layout>
|
|
1837
|
-
|
|
1863
|
+
`,
|
|
1838
1864
|
standalone: true,
|
|
1839
|
-
imports: [BsCalendarLayoutComponent, BsDatepickerNavigationViewComponent
|
|
1865
|
+
imports: [BsCalendarLayoutComponent, BsDatepickerNavigationViewComponent]
|
|
1840
1866
|
}]
|
|
1841
1867
|
}], propDecorators: { calendar: [{
|
|
1842
1868
|
type: Input
|
|
@@ -1869,10 +1895,10 @@ class BsDatepickerDayDecoratorComponent {
|
|
|
1869
1895
|
});
|
|
1870
1896
|
}
|
|
1871
1897
|
}
|
|
1872
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1873
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1898
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerDayDecoratorComponent, deps: [{ token: BsDatepickerConfig }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1899
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: BsDatepickerDayDecoratorComponent, isStandalone: true, selector: "[bsDatepickerDayDecorator]", inputs: { day: "day" }, host: { properties: { "class.disabled": "day.isDisabled", "class.is-highlighted": "day.isHovered", "class.is-other-month": "day.isOtherMonth", "class.is-active-other-month": "day.isOtherMonthHovered", "class.in-range": "day.isInRange", "class.select-start": "day.isSelectionStart", "class.select-end": "day.isSelectionEnd", "class.selected": "day.isSelected" } }, ngImport: i0, template: `{{ day && day.label || '' }}`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1874
1900
|
}
|
|
1875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1901
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerDayDecoratorComponent, decorators: [{
|
|
1876
1902
|
type: Component,
|
|
1877
1903
|
args: [{
|
|
1878
1904
|
selector: '[bsDatepickerDayDecorator]',
|
|
@@ -1977,8 +2003,8 @@ class BsDaysCalendarViewComponent {
|
|
|
1977
2003
|
}
|
|
1978
2004
|
this.onHover.emit({ cell, isHovered });
|
|
1979
2005
|
}
|
|
1980
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1981
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2006
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDaysCalendarViewComponent, deps: [{ token: BsDatepickerConfig }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2007
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: BsDaysCalendarViewComponent, isStandalone: true, selector: "bs-days-calendar-view", inputs: { calendar: "calendar", options: "options", isDisabled: "isDisabled" }, outputs: { onNavigate: "onNavigate", onViewMode: "onViewMode", onSelect: "onSelect", onHover: "onHover", onHoverWeek: "onHoverWeek" }, ngImport: i0, template: `
|
|
1982
2008
|
<bs-calendar-layout>
|
|
1983
2009
|
<bs-datepicker-navigation-view
|
|
1984
2010
|
[calendar]="calendar"
|
|
@@ -1989,52 +2015,70 @@ class BsDaysCalendarViewComponent {
|
|
|
1989
2015
|
<!--days matrix-->
|
|
1990
2016
|
<table role="grid" class="days weeks">
|
|
1991
2017
|
<thead>
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
2018
|
+
<tr>
|
|
2019
|
+
<!--if show weeks-->
|
|
2020
|
+
@if (options && options.showWeekNumbers) {
|
|
2021
|
+
<th></th>
|
|
2022
|
+
}
|
|
2023
|
+
@for (weekday of calendar.weekdays; track weekday; let i = $index) {
|
|
2024
|
+
<th
|
|
2025
|
+
aria-label="weekday">{{ calendar.weekdays[i] }}
|
|
2026
|
+
</th>
|
|
2027
|
+
}
|
|
2028
|
+
</tr>
|
|
1999
2029
|
</thead>
|
|
2000
2030
|
<tbody>
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
(
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
+
@for (week of calendar.weeks; track week; let i = $index) {
|
|
2032
|
+
<tr>
|
|
2033
|
+
@if (options && options.showWeekNumbers) {
|
|
2034
|
+
<td class="week" [class.active-week]="isWeekHovered" >
|
|
2035
|
+
@if (isiOS) {
|
|
2036
|
+
<span (click)="selectWeek(week)">{{ calendar.weekNumbers[i] }}</span>
|
|
2037
|
+
}
|
|
2038
|
+
@if (!isiOS) {
|
|
2039
|
+
<span
|
|
2040
|
+
(click)="selectWeek(week)"
|
|
2041
|
+
(mouseenter)="weekHoverHandler(week, true)"
|
|
2042
|
+
(mouseleave)="weekHoverHandler(week, false)">{{ calendar.weekNumbers[i] }}</span>
|
|
2043
|
+
}
|
|
2044
|
+
</td>
|
|
2045
|
+
}
|
|
2046
|
+
@for (day of week.days; track day) {
|
|
2047
|
+
<td role="gridcell">
|
|
2048
|
+
<!-- When we want to show tooltips for dates -->
|
|
2049
|
+
@if (!isiOS && isShowTooltip) {
|
|
2050
|
+
<span bsDatepickerDayDecorator
|
|
2051
|
+
[day]="day"
|
|
2052
|
+
(click)="selectDay(day)"
|
|
2053
|
+
tooltip="{{day.tooltipText}}"
|
|
2054
|
+
(mouseenter)="hoverDay(day, true)"
|
|
2055
|
+
(mouseleave)="hoverDay(day, false)">{{ day.label }} 3</span>
|
|
2056
|
+
}
|
|
2057
|
+
<!-- When tooltips for dates are disabled -->
|
|
2058
|
+
@if (!isiOS && !isShowTooltip) {
|
|
2059
|
+
<span bsDatepickerDayDecorator
|
|
2060
|
+
[day]="day"
|
|
2061
|
+
(click)="selectDay(day)"
|
|
2062
|
+
(mouseenter)="hoverDay(day, true)"
|
|
2063
|
+
(mouseleave)="hoverDay(day, false)">{{ day.label }} 2</span>
|
|
2064
|
+
}
|
|
2065
|
+
<!-- For mobile iOS view, tooltips are not needed -->
|
|
2066
|
+
@if (isiOS) {
|
|
2067
|
+
<span bsDatepickerDayDecorator
|
|
2068
|
+
[day]="day"
|
|
2069
|
+
(click)="selectDay(day)">{{ day.label }} 1</span>
|
|
2070
|
+
}
|
|
2071
|
+
</td>
|
|
2072
|
+
}
|
|
2073
|
+
</tr>
|
|
2074
|
+
}
|
|
2031
2075
|
</tbody>
|
|
2032
2076
|
</table>
|
|
2033
|
-
|
|
2077
|
+
|
|
2034
2078
|
</bs-calendar-layout>
|
|
2035
|
-
|
|
2079
|
+
`, isInline: true, dependencies: [{ kind: "component", type: BsCalendarLayoutComponent, selector: "bs-calendar-layout" }, { kind: "component", type: BsDatepickerNavigationViewComponent, selector: "bs-datepicker-navigation-view", inputs: ["calendar", "isDisabled"], outputs: ["onNavigate", "onViewMode"] }, { kind: "component", type: BsDatepickerDayDecoratorComponent, selector: "[bsDatepickerDayDecorator]", inputs: ["day"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i2.TooltipDirective, selector: "[tooltip], [tooltipHtml]", inputs: ["adaptivePosition", "tooltip", "placement", "triggers", "container", "containerClass", "boundariesElement", "isOpen", "isDisabled", "delay", "tooltipHtml", "tooltipPlacement", "tooltipIsOpen", "tooltipEnable", "tooltipAppendToBody", "tooltipAnimation", "tooltipClass", "tooltipContext", "tooltipPopupDelay", "tooltipFadeDuration", "tooltipTrigger"], outputs: ["tooltipChange", "onShown", "onHidden", "tooltipStateChanged"], exportAs: ["bs-tooltip"] }] }); }
|
|
2036
2080
|
}
|
|
2037
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2081
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDaysCalendarViewComponent, decorators: [{
|
|
2038
2082
|
type: Component,
|
|
2039
2083
|
args: [{
|
|
2040
2084
|
selector: 'bs-days-calendar-view',
|
|
@@ -2050,52 +2094,70 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImpor
|
|
|
2050
2094
|
<!--days matrix-->
|
|
2051
2095
|
<table role="grid" class="days weeks">
|
|
2052
2096
|
<thead>
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2097
|
+
<tr>
|
|
2098
|
+
<!--if show weeks-->
|
|
2099
|
+
@if (options && options.showWeekNumbers) {
|
|
2100
|
+
<th></th>
|
|
2101
|
+
}
|
|
2102
|
+
@for (weekday of calendar.weekdays; track weekday; let i = $index) {
|
|
2103
|
+
<th
|
|
2104
|
+
aria-label="weekday">{{ calendar.weekdays[i] }}
|
|
2105
|
+
</th>
|
|
2106
|
+
}
|
|
2107
|
+
</tr>
|
|
2060
2108
|
</thead>
|
|
2061
2109
|
<tbody>
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
(
|
|
2090
|
-
|
|
2091
|
-
|
|
2110
|
+
@for (week of calendar.weeks; track week; let i = $index) {
|
|
2111
|
+
<tr>
|
|
2112
|
+
@if (options && options.showWeekNumbers) {
|
|
2113
|
+
<td class="week" [class.active-week]="isWeekHovered" >
|
|
2114
|
+
@if (isiOS) {
|
|
2115
|
+
<span (click)="selectWeek(week)">{{ calendar.weekNumbers[i] }}</span>
|
|
2116
|
+
}
|
|
2117
|
+
@if (!isiOS) {
|
|
2118
|
+
<span
|
|
2119
|
+
(click)="selectWeek(week)"
|
|
2120
|
+
(mouseenter)="weekHoverHandler(week, true)"
|
|
2121
|
+
(mouseleave)="weekHoverHandler(week, false)">{{ calendar.weekNumbers[i] }}</span>
|
|
2122
|
+
}
|
|
2123
|
+
</td>
|
|
2124
|
+
}
|
|
2125
|
+
@for (day of week.days; track day) {
|
|
2126
|
+
<td role="gridcell">
|
|
2127
|
+
<!-- When we want to show tooltips for dates -->
|
|
2128
|
+
@if (!isiOS && isShowTooltip) {
|
|
2129
|
+
<span bsDatepickerDayDecorator
|
|
2130
|
+
[day]="day"
|
|
2131
|
+
(click)="selectDay(day)"
|
|
2132
|
+
tooltip="{{day.tooltipText}}"
|
|
2133
|
+
(mouseenter)="hoverDay(day, true)"
|
|
2134
|
+
(mouseleave)="hoverDay(day, false)">{{ day.label }} 3</span>
|
|
2135
|
+
}
|
|
2136
|
+
<!-- When tooltips for dates are disabled -->
|
|
2137
|
+
@if (!isiOS && !isShowTooltip) {
|
|
2138
|
+
<span bsDatepickerDayDecorator
|
|
2139
|
+
[day]="day"
|
|
2140
|
+
(click)="selectDay(day)"
|
|
2141
|
+
(mouseenter)="hoverDay(day, true)"
|
|
2142
|
+
(mouseleave)="hoverDay(day, false)">{{ day.label }} 2</span>
|
|
2143
|
+
}
|
|
2144
|
+
<!-- For mobile iOS view, tooltips are not needed -->
|
|
2145
|
+
@if (isiOS) {
|
|
2146
|
+
<span bsDatepickerDayDecorator
|
|
2147
|
+
[day]="day"
|
|
2148
|
+
(click)="selectDay(day)">{{ day.label }} 1</span>
|
|
2149
|
+
}
|
|
2150
|
+
</td>
|
|
2151
|
+
}
|
|
2152
|
+
</tr>
|
|
2153
|
+
}
|
|
2092
2154
|
</tbody>
|
|
2093
2155
|
</table>
|
|
2094
|
-
|
|
2156
|
+
|
|
2095
2157
|
</bs-calendar-layout>
|
|
2096
|
-
|
|
2158
|
+
`,
|
|
2097
2159
|
standalone: true,
|
|
2098
|
-
imports: [BsCalendarLayoutComponent, BsDatepickerNavigationViewComponent,
|
|
2160
|
+
imports: [BsCalendarLayoutComponent, BsDatepickerNavigationViewComponent, BsDatepickerDayDecoratorComponent, TooltipModule]
|
|
2099
2161
|
}]
|
|
2100
2162
|
}], ctorParameters: () => [{ type: BsDatepickerConfig }], propDecorators: { calendar: [{
|
|
2101
2163
|
type: Input
|
|
@@ -2266,19 +2328,17 @@ class BsDatepickerContainerComponent extends BsDatepickerAbstractComponent {
|
|
|
2266
2328
|
this.selectedTimeSub.unsubscribe();
|
|
2267
2329
|
this._effects?.destroy();
|
|
2268
2330
|
}
|
|
2269
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2270
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2331
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerContainerComponent, deps: [{ token: i0.Renderer2 }, { token: BsDatepickerConfig }, { token: BsDatepickerStore }, { token: i0.ElementRef }, { token: BsDatepickerActions }, { token: BsDatepickerEffects }, { token: i5.PositioningService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2332
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: BsDatepickerContainerComponent, isStandalone: true, selector: "bs-datepicker-container", host: { attributes: { "role": "dialog", "aria-label": "calendar" }, listeners: { "click": "_stopPropagation($event)" }, properties: { "attr.disabled": "this.isDatepickerDisabled", "attr.readonly": "this.isDatepickerReadonly" }, classAttribute: "bottom" }, providers: [BsDatepickerStore, BsDatepickerEffects, BsDatepickerActions], viewQueries: [{ propertyName: "startTimepicker", first: true, predicate: ["startTP"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<!-- days calendar view mode -->\n@if (viewMode | async) {\n <div class=\"bs-datepicker\" [ngClass]=\"containerClass\">\n <div class=\"bs-datepicker-container\"\n [@datepickerAnimation]=\"animationState\"\n (@datepickerAnimation.done)=\"positionServiceEnable()\">\n <!--calendars-->\n <div class=\"bs-calendar-container\" role=\"application\">\n @switch (viewMode | async) {\n <!--days calendar-->\n @case ('day') {\n <div class=\"bs-media-container\">\n @for (calendar of daysCalendar$ | async; track calendar) {\n <bs-days-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n [isDisabled]=\"isDatePickerDisabled\"\n [options]=\"options$ | async\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"dayHoverHandler($event)\"\n (onHoverWeek)=\"weekHoverHandler($event)\"\n (onSelect)=\"daySelectHandler($event)\">\n </bs-days-calendar-view>\n }\n </div>\n @if (withTimepicker) {\n <div class=\"bs-timepicker-in-datepicker-container\">\n <timepicker #startTP [disabled]=\"isDatePickerDisabled\"></timepicker>\n @if (isRangePicker) {\n <timepicker #endTP [disabled]=\"isDatePickerDisabled\"></timepicker>\n }\n </div>\n }\n }\n <!--months calendar-->\n @case ('month') {\n <div class=\"bs-media-container\">\n @for (calendar of monthsCalendar | async; track calendar) {\n <bs-month-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"monthHoverHandler($event)\"\n (onSelect)=\"monthSelectHandler($event)\">\n </bs-month-calendar-view>\n }\n </div>\n }\n <!--years calendar-->\n @case ('year') {\n <div class=\"bs-media-container\">\n @for (calendar of yearsCalendar | async; track calendar) {\n <bs-years-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"yearHoverHandler($event)\"\n (onSelect)=\"yearSelectHandler($event)\">\n </bs-years-calendar-view>\n }\n </div>\n }\n }\n </div>\n <!--applycancel buttons-->\n @if (false) {\n <div class=\"bs-datepicker-buttons\">\n <button class=\"btn btn-success\" type=\"button\">Apply</button>\n <button class=\"btn btn-default\" type=\"button\">Cancel</button>\n </div>\n }\n @if (showTodayBtn || showClearBtn) {\n <div class=\"bs-datepicker-buttons\">\n @if (showTodayBtn) {\n <div class=\"btn-today-wrapper\"\n [class.today-left]=\"todayPos === 'left'\"\n [class.today-right]=\"todayPos === 'right'\"\n [class.today-center]=\"todayPos === 'center'\"\n >\n <button class=\"btn btn-success\" (click)=\"setToday()\">{{todayBtnLbl}}</button>\n </div>\n }\n @if (showClearBtn) {\n <div class=\"btn-clear-wrapper\"\n [class.clear-left]=\"clearPos === 'left'\"\n [class.clear-right]=\"clearPos === 'right'\"\n [class.clear-center]=\"clearPos === 'center'\"\n >\n <button class=\"btn btn-success\" (click)=\"clearDate()\">{{clearBtnLbl}}</button>\n </div>\n }\n </div>\n }\n </div>\n <!--custom dates or date ranges picker-->\n @if (customRanges && customRanges.length > 0) {\n <div class=\"bs-datepicker-custom-range\">\n <bs-custom-date-view\n [selectedRange]=\"chosenRange\"\n [ranges]=\"customRanges\"\n [customRangeLabel]=\"customRangeBtnLbl\"\n (onSelect)=\"setRangeOnCalendar($event)\">\n </bs-custom-date-view>\n </div>\n }\n </div>\n}\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: BsDaysCalendarViewComponent, selector: "bs-days-calendar-view", inputs: ["calendar", "options", "isDisabled"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover", "onHoverWeek"] }, { kind: "ngmodule", type: TimepickerModule }, { kind: "component", type: i6.TimepickerComponent, selector: "timepicker", inputs: ["hourStep", "minuteStep", "secondsStep", "readonlyInput", "disabled", "mousewheel", "arrowkeys", "showSpinners", "showMeridian", "showMinutes", "showSeconds", "meridians", "min", "max", "hoursPlaceholder", "minutesPlaceholder", "secondsPlaceholder"], outputs: ["isValid", "meridianChange"] }, { kind: "component", type: BsMonthCalendarViewComponent, selector: "bs-month-calendar-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover"] }, { kind: "component", type: BsYearsCalendarViewComponent, selector: "bs-years-calendar-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover"] }, { kind: "component", type: BsCustomDatesViewComponent, selector: "bs-custom-date-view", inputs: ["ranges", "selectedRange", "customRangeLabel"], outputs: ["onSelect"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], animations: [datepickerAnimation] }); }
|
|
2271
2333
|
}
|
|
2272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerContainerComponent, decorators: [{
|
|
2273
2335
|
type: Component,
|
|
2274
2336
|
args: [{ selector: 'bs-datepicker-container', providers: [BsDatepickerStore, BsDatepickerEffects, BsDatepickerActions], host: {
|
|
2275
2337
|
class: 'bottom',
|
|
2276
2338
|
'(click)': '_stopPropagation($event)',
|
|
2277
2339
|
role: 'dialog',
|
|
2278
2340
|
'aria-label': 'calendar'
|
|
2279
|
-
}, animations: [datepickerAnimation], standalone: true, imports: [
|
|
2280
|
-
BsMonthCalendarViewComponent, BsYearsCalendarViewComponent, BsCustomDatesViewComponent, AsyncPipe
|
|
2281
|
-
], template: "<!-- days calendar view mode -->\n<div class=\"bs-datepicker\" [ngClass]=\"containerClass\" *ngIf=\"viewMode | async\">\n <div class=\"bs-datepicker-container\"\n [@datepickerAnimation]=\"animationState\"\n (@datepickerAnimation.done)=\"positionServiceEnable()\">\n <!--calendars-->\n <div class=\"bs-calendar-container\" [ngSwitch]=\"viewMode | async\" role=\"application\">\n <!--days calendar-->\n <ng-container *ngSwitchCase=\"'day'\">\n <div class=\"bs-media-container\">\n <bs-days-calendar-view\n *ngFor=\"let calendar of daysCalendar$ | async\"\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n [isDisabled]=\"isDatePickerDisabled\"\n [options]=\"options$ | async\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"dayHoverHandler($event)\"\n (onHoverWeek)=\"weekHoverHandler($event)\"\n (onSelect)=\"daySelectHandler($event)\">\n </bs-days-calendar-view>\n </div>\n <div *ngIf=\"withTimepicker\" class=\"bs-timepicker-in-datepicker-container\">\n <timepicker #startTP [disabled]=\"isDatePickerDisabled\"></timepicker>\n <timepicker #endTP *ngIf=\"isRangePicker\" [disabled]=\"isDatePickerDisabled\"></timepicker>\n </div>\n </ng-container>\n\n <!--months calendar-->\n <div *ngSwitchCase=\"'month'\" class=\"bs-media-container\">\n <bs-month-calendar-view\n *ngFor=\"let calendar of monthsCalendar | async\"\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"monthHoverHandler($event)\"\n (onSelect)=\"monthSelectHandler($event)\">\n </bs-month-calendar-view>\n </div>\n\n <!--years calendar-->\n <div *ngSwitchCase=\"'year'\" class=\"bs-media-container\">\n <bs-years-calendar-view\n *ngFor=\"let calendar of yearsCalendar | async\"\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"yearHoverHandler($event)\"\n (onSelect)=\"yearSelectHandler($event)\">\n </bs-years-calendar-view>\n </div>\n </div>\n\n <!--applycancel buttons-->\n <div class=\"bs-datepicker-buttons\" *ngIf=\"false\">\n <button class=\"btn btn-success\" type=\"button\">Apply</button>\n <button class=\"btn btn-default\" type=\"button\">Cancel</button>\n </div>\n\n <div class=\"bs-datepicker-buttons\" *ngIf=\"showTodayBtn || showClearBtn\">\n <div class=\"btn-today-wrapper\"\n [class.today-left]=\"todayPos === 'left'\"\n [class.today-right]=\"todayPos === 'right'\"\n [class.today-center]=\"todayPos === 'center'\"\n *ngIf=\"showTodayBtn\">\n <button class=\"btn btn-success\" (click)=\"setToday()\">{{todayBtnLbl}}</button>\n </div>\n\n <div class=\"btn-clear-wrapper\"\n [class.clear-left]=\"clearPos === 'left'\"\n [class.clear-right]=\"clearPos === 'right'\"\n [class.clear-center]=\"clearPos === 'center'\"\n *ngIf=\"showClearBtn\">\n <button class=\"btn btn-success\" (click)=\"clearDate()\">{{clearBtnLbl}}</button>\n </div>\n </div>\n\n </div>\n\n <!--custom dates or date ranges picker-->\n <div class=\"bs-datepicker-custom-range\" *ngIf=\"customRanges && customRanges.length > 0\">\n <bs-custom-date-view\n [selectedRange]=\"chosenRange\"\n [ranges]=\"customRanges\"\n [customRangeLabel]=\"customRangeBtnLbl\"\n (onSelect)=\"setRangeOnCalendar($event)\">\n </bs-custom-date-view>\n </div>\n</div>\n" }]
|
|
2341
|
+
}, animations: [datepickerAnimation], standalone: true, imports: [NgClass, BsDaysCalendarViewComponent, TimepickerModule, BsMonthCalendarViewComponent, BsYearsCalendarViewComponent, BsCustomDatesViewComponent, AsyncPipe], template: "<!-- days calendar view mode -->\n@if (viewMode | async) {\n <div class=\"bs-datepicker\" [ngClass]=\"containerClass\">\n <div class=\"bs-datepicker-container\"\n [@datepickerAnimation]=\"animationState\"\n (@datepickerAnimation.done)=\"positionServiceEnable()\">\n <!--calendars-->\n <div class=\"bs-calendar-container\" role=\"application\">\n @switch (viewMode | async) {\n <!--days calendar-->\n @case ('day') {\n <div class=\"bs-media-container\">\n @for (calendar of daysCalendar$ | async; track calendar) {\n <bs-days-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n [isDisabled]=\"isDatePickerDisabled\"\n [options]=\"options$ | async\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"dayHoverHandler($event)\"\n (onHoverWeek)=\"weekHoverHandler($event)\"\n (onSelect)=\"daySelectHandler($event)\">\n </bs-days-calendar-view>\n }\n </div>\n @if (withTimepicker) {\n <div class=\"bs-timepicker-in-datepicker-container\">\n <timepicker #startTP [disabled]=\"isDatePickerDisabled\"></timepicker>\n @if (isRangePicker) {\n <timepicker #endTP [disabled]=\"isDatePickerDisabled\"></timepicker>\n }\n </div>\n }\n }\n <!--months calendar-->\n @case ('month') {\n <div class=\"bs-media-container\">\n @for (calendar of monthsCalendar | async; track calendar) {\n <bs-month-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"monthHoverHandler($event)\"\n (onSelect)=\"monthSelectHandler($event)\">\n </bs-month-calendar-view>\n }\n </div>\n }\n <!--years calendar-->\n @case ('year') {\n <div class=\"bs-media-container\">\n @for (calendar of yearsCalendar | async; track calendar) {\n <bs-years-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"yearHoverHandler($event)\"\n (onSelect)=\"yearSelectHandler($event)\">\n </bs-years-calendar-view>\n }\n </div>\n }\n }\n </div>\n <!--applycancel buttons-->\n @if (false) {\n <div class=\"bs-datepicker-buttons\">\n <button class=\"btn btn-success\" type=\"button\">Apply</button>\n <button class=\"btn btn-default\" type=\"button\">Cancel</button>\n </div>\n }\n @if (showTodayBtn || showClearBtn) {\n <div class=\"bs-datepicker-buttons\">\n @if (showTodayBtn) {\n <div class=\"btn-today-wrapper\"\n [class.today-left]=\"todayPos === 'left'\"\n [class.today-right]=\"todayPos === 'right'\"\n [class.today-center]=\"todayPos === 'center'\"\n >\n <button class=\"btn btn-success\" (click)=\"setToday()\">{{todayBtnLbl}}</button>\n </div>\n }\n @if (showClearBtn) {\n <div class=\"btn-clear-wrapper\"\n [class.clear-left]=\"clearPos === 'left'\"\n [class.clear-right]=\"clearPos === 'right'\"\n [class.clear-center]=\"clearPos === 'center'\"\n >\n <button class=\"btn btn-success\" (click)=\"clearDate()\">{{clearBtnLbl}}</button>\n </div>\n }\n </div>\n }\n </div>\n <!--custom dates or date ranges picker-->\n @if (customRanges && customRanges.length > 0) {\n <div class=\"bs-datepicker-custom-range\">\n <bs-custom-date-view\n [selectedRange]=\"chosenRange\"\n [ranges]=\"customRanges\"\n [customRangeLabel]=\"customRangeBtnLbl\"\n (onSelect)=\"setRangeOnCalendar($event)\">\n </bs-custom-date-view>\n </div>\n }\n </div>\n}\n" }]
|
|
2282
2342
|
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: BsDatepickerConfig }, { type: BsDatepickerStore }, { type: i0.ElementRef }, { type: BsDatepickerActions }, { type: BsDatepickerEffects }, { type: i5.PositioningService }], propDecorators: { startTimepicker: [{
|
|
2283
2343
|
type: ViewChild,
|
|
2284
2344
|
args: ['startTP']
|
|
@@ -2528,15 +2588,15 @@ class BsDatepickerDirective {
|
|
|
2528
2588
|
}
|
|
2529
2589
|
this.unsubscribeSubscriptions();
|
|
2530
2590
|
}
|
|
2531
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2532
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2591
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerDirective, deps: [{ token: BsDatepickerConfig }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i2$1.ComponentLoaderFactory }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2592
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: BsDatepickerDirective, isStandalone: true, selector: "[bsDatepicker]", inputs: { placement: "placement", triggers: "triggers", outsideClick: "outsideClick", container: "container", outsideEsc: "outsideEsc", isDisabled: "isDisabled", minDate: "minDate", maxDate: "maxDate", ignoreMinMaxErrors: "ignoreMinMaxErrors", minMode: "minMode", daysDisabled: "daysDisabled", datesDisabled: "datesDisabled", datesEnabled: "datesEnabled", dateCustomClasses: "dateCustomClasses", dateTooltipTexts: "dateTooltipTexts", isOpen: "isOpen", bsValue: "bsValue", bsConfig: "bsConfig" }, outputs: { onShown: "onShown", onHidden: "onHidden", bsValueChange: "bsValueChange" }, host: { properties: { "attr.readonly": "this.readonlyValue" } }, providers: [ComponentLoaderFactory, PositioningService], exportAs: ["bsDatepicker"], usesOnChanges: true, ngImport: i0 }); }
|
|
2533
2593
|
}
|
|
2534
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerDirective, decorators: [{
|
|
2535
2595
|
type: Directive,
|
|
2536
2596
|
args: [{
|
|
2537
2597
|
selector: '[bsDatepicker]',
|
|
2538
2598
|
exportAs: 'bsDatepicker',
|
|
2539
|
-
providers: [ComponentLoaderFactory],
|
|
2599
|
+
providers: [ComponentLoaderFactory, PositioningService],
|
|
2540
2600
|
standalone: true
|
|
2541
2601
|
}]
|
|
2542
2602
|
}], ctorParameters: () => [{ type: BsDatepickerConfig }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i2$1.ComponentLoaderFactory }], propDecorators: { placement: [{
|
|
@@ -2587,10 +2647,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImpor
|
|
|
2587
2647
|
}] } });
|
|
2588
2648
|
|
|
2589
2649
|
class BsDatepickerInlineConfig extends BsDatepickerConfig {
|
|
2590
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2591
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2650
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerInlineConfig, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2651
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerInlineConfig, providedIn: 'root' }); }
|
|
2592
2652
|
}
|
|
2593
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerInlineConfig, decorators: [{
|
|
2594
2654
|
type: Injectable,
|
|
2595
2655
|
args: [{
|
|
2596
2656
|
providedIn: 'root'
|
|
@@ -2609,14 +2669,14 @@ class BsDatepickerInlineContainerComponent extends BsDatepickerContainerComponen
|
|
|
2609
2669
|
_renderer.setStyle(_element.nativeElement, 'display', 'inline-block');
|
|
2610
2670
|
_renderer.setStyle(_element.nativeElement, 'position', 'static');
|
|
2611
2671
|
}
|
|
2612
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2613
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2672
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerInlineContainerComponent, deps: [{ token: i0.Renderer2 }, { token: BsDatepickerConfig }, { token: BsDatepickerStore }, { token: i0.ElementRef }, { token: BsDatepickerActions }, { token: BsDatepickerEffects }, { token: i5.PositioningService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2673
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: BsDatepickerInlineContainerComponent, isStandalone: true, selector: "bs-datepicker-inline-container", host: { listeners: { "click": "_stopPropagation($event)" }, properties: { "attr.disabled": "this.disabledValue", "attr.readonly": "this.readonlyValue" } }, providers: [BsDatepickerStore, BsDatepickerEffects], usesInheritance: true, ngImport: i0, template: "<!-- days calendar view mode -->\n@if (viewMode | async) {\n <div class=\"bs-datepicker\" [ngClass]=\"containerClass\">\n <div class=\"bs-datepicker-container\"\n [@datepickerAnimation]=\"animationState\"\n (@datepickerAnimation.done)=\"positionServiceEnable()\">\n <!--calendars-->\n <div class=\"bs-calendar-container\" role=\"application\">\n @switch (viewMode | async) {\n <!--days calendar-->\n @case ('day') {\n <div class=\"bs-media-container\">\n @for (calendar of daysCalendar$ | async; track calendar) {\n <bs-days-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n [isDisabled]=\"isDatePickerDisabled\"\n [options]=\"options$ | async\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"dayHoverHandler($event)\"\n (onHoverWeek)=\"weekHoverHandler($event)\"\n (onSelect)=\"daySelectHandler($event)\">\n </bs-days-calendar-view>\n }\n </div>\n @if (withTimepicker) {\n <div class=\"bs-timepicker-in-datepicker-container\">\n <timepicker #startTP [disabled]=\"isDatePickerDisabled\"></timepicker>\n @if (isRangePicker) {\n <timepicker #endTP [disabled]=\"isDatePickerDisabled\"></timepicker>\n }\n </div>\n }\n }\n <!--months calendar-->\n @case ('month') {\n <div class=\"bs-media-container\">\n @for (calendar of monthsCalendar | async; track calendar) {\n <bs-month-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"monthHoverHandler($event)\"\n (onSelect)=\"monthSelectHandler($event)\">\n </bs-month-calendar-view>\n }\n </div>\n }\n <!--years calendar-->\n @case ('year') {\n <div class=\"bs-media-container\">\n @for (calendar of yearsCalendar | async; track calendar) {\n <bs-years-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"yearHoverHandler($event)\"\n (onSelect)=\"yearSelectHandler($event)\">\n </bs-years-calendar-view>\n }\n </div>\n }\n }\n </div>\n <!--applycancel buttons-->\n @if (false) {\n <div class=\"bs-datepicker-buttons\">\n <button class=\"btn btn-success\" type=\"button\">Apply</button>\n <button class=\"btn btn-default\" type=\"button\">Cancel</button>\n </div>\n }\n @if (showTodayBtn || showClearBtn) {\n <div class=\"bs-datepicker-buttons\">\n @if (showTodayBtn) {\n <div class=\"btn-today-wrapper\"\n [class.today-left]=\"todayPos === 'left'\"\n [class.today-right]=\"todayPos === 'right'\"\n [class.today-center]=\"todayPos === 'center'\"\n >\n <button class=\"btn btn-success\" (click)=\"setToday()\">{{todayBtnLbl}}</button>\n </div>\n }\n @if (showClearBtn) {\n <div class=\"btn-clear-wrapper\"\n [class.clear-left]=\"clearPos === 'left'\"\n [class.clear-right]=\"clearPos === 'right'\"\n [class.clear-center]=\"clearPos === 'center'\"\n >\n <button class=\"btn btn-success\" (click)=\"clearDate()\">{{clearBtnLbl}}</button>\n </div>\n }\n </div>\n }\n </div>\n <!--custom dates or date ranges picker-->\n @if (customRanges && customRanges.length > 0) {\n <div class=\"bs-datepicker-custom-range\">\n <bs-custom-date-view\n [selectedRange]=\"chosenRange\"\n [ranges]=\"customRanges\"\n [customRangeLabel]=\"customRangeBtnLbl\"\n (onSelect)=\"setRangeOnCalendar($event)\">\n </bs-custom-date-view>\n </div>\n }\n </div>\n}\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: BsDaysCalendarViewComponent, selector: "bs-days-calendar-view", inputs: ["calendar", "options", "isDisabled"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover", "onHoverWeek"] }, { kind: "ngmodule", type: TimepickerModule }, { kind: "component", type: i6.TimepickerComponent, selector: "timepicker", inputs: ["hourStep", "minuteStep", "secondsStep", "readonlyInput", "disabled", "mousewheel", "arrowkeys", "showSpinners", "showMeridian", "showMinutes", "showSeconds", "meridians", "min", "max", "hoursPlaceholder", "minutesPlaceholder", "secondsPlaceholder"], outputs: ["isValid", "meridianChange"] }, { kind: "component", type: BsMonthCalendarViewComponent, selector: "bs-month-calendar-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover"] }, { kind: "component", type: BsYearsCalendarViewComponent, selector: "bs-years-calendar-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover"] }, { kind: "component", type: BsCustomDatesViewComponent, selector: "bs-custom-date-view", inputs: ["ranges", "selectedRange", "customRangeLabel"], outputs: ["onSelect"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], animations: [datepickerAnimation] }); }
|
|
2614
2674
|
}
|
|
2615
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerInlineContainerComponent, decorators: [{
|
|
2616
2676
|
type: Component,
|
|
2617
|
-
args: [{ selector: 'bs-datepicker-inline-container', providers: [BsDatepickerStore, BsDatepickerEffects
|
|
2677
|
+
args: [{ selector: 'bs-datepicker-inline-container', providers: [BsDatepickerStore, BsDatepickerEffects], host: {
|
|
2618
2678
|
'(click)': '_stopPropagation($event)'
|
|
2619
|
-
}, animations: [datepickerAnimation], standalone: true, imports: [
|
|
2679
|
+
}, animations: [datepickerAnimation], standalone: true, imports: [NgClass, BsDaysCalendarViewComponent, TimepickerModule, BsMonthCalendarViewComponent, BsYearsCalendarViewComponent, BsCustomDatesViewComponent, AsyncPipe], template: "<!-- days calendar view mode -->\n@if (viewMode | async) {\n <div class=\"bs-datepicker\" [ngClass]=\"containerClass\">\n <div class=\"bs-datepicker-container\"\n [@datepickerAnimation]=\"animationState\"\n (@datepickerAnimation.done)=\"positionServiceEnable()\">\n <!--calendars-->\n <div class=\"bs-calendar-container\" role=\"application\">\n @switch (viewMode | async) {\n <!--days calendar-->\n @case ('day') {\n <div class=\"bs-media-container\">\n @for (calendar of daysCalendar$ | async; track calendar) {\n <bs-days-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n [isDisabled]=\"isDatePickerDisabled\"\n [options]=\"options$ | async\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"dayHoverHandler($event)\"\n (onHoverWeek)=\"weekHoverHandler($event)\"\n (onSelect)=\"daySelectHandler($event)\">\n </bs-days-calendar-view>\n }\n </div>\n @if (withTimepicker) {\n <div class=\"bs-timepicker-in-datepicker-container\">\n <timepicker #startTP [disabled]=\"isDatePickerDisabled\"></timepicker>\n @if (isRangePicker) {\n <timepicker #endTP [disabled]=\"isDatePickerDisabled\"></timepicker>\n }\n </div>\n }\n }\n <!--months calendar-->\n @case ('month') {\n <div class=\"bs-media-container\">\n @for (calendar of monthsCalendar | async; track calendar) {\n <bs-month-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"monthHoverHandler($event)\"\n (onSelect)=\"monthSelectHandler($event)\">\n </bs-month-calendar-view>\n }\n </div>\n }\n <!--years calendar-->\n @case ('year') {\n <div class=\"bs-media-container\">\n @for (calendar of yearsCalendar | async; track calendar) {\n <bs-years-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"yearHoverHandler($event)\"\n (onSelect)=\"yearSelectHandler($event)\">\n </bs-years-calendar-view>\n }\n </div>\n }\n }\n </div>\n <!--applycancel buttons-->\n @if (false) {\n <div class=\"bs-datepicker-buttons\">\n <button class=\"btn btn-success\" type=\"button\">Apply</button>\n <button class=\"btn btn-default\" type=\"button\">Cancel</button>\n </div>\n }\n @if (showTodayBtn || showClearBtn) {\n <div class=\"bs-datepicker-buttons\">\n @if (showTodayBtn) {\n <div class=\"btn-today-wrapper\"\n [class.today-left]=\"todayPos === 'left'\"\n [class.today-right]=\"todayPos === 'right'\"\n [class.today-center]=\"todayPos === 'center'\"\n >\n <button class=\"btn btn-success\" (click)=\"setToday()\">{{todayBtnLbl}}</button>\n </div>\n }\n @if (showClearBtn) {\n <div class=\"btn-clear-wrapper\"\n [class.clear-left]=\"clearPos === 'left'\"\n [class.clear-right]=\"clearPos === 'right'\"\n [class.clear-center]=\"clearPos === 'center'\"\n >\n <button class=\"btn btn-success\" (click)=\"clearDate()\">{{clearBtnLbl}}</button>\n </div>\n }\n </div>\n }\n </div>\n <!--custom dates or date ranges picker-->\n @if (customRanges && customRanges.length > 0) {\n <div class=\"bs-datepicker-custom-range\">\n <bs-custom-date-view\n [selectedRange]=\"chosenRange\"\n [ranges]=\"customRanges\"\n [customRangeLabel]=\"customRangeBtnLbl\"\n (onSelect)=\"setRangeOnCalendar($event)\">\n </bs-custom-date-view>\n </div>\n }\n </div>\n}\n" }]
|
|
2620
2680
|
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: BsDatepickerConfig }, { type: BsDatepickerStore }, { type: i0.ElementRef }, { type: BsDatepickerActions }, { type: BsDatepickerEffects }, { type: i5.PositioningService }], propDecorators: { disabledValue: [{
|
|
2621
2681
|
type: HostBinding,
|
|
2622
2682
|
args: ['attr.disabled']
|
|
@@ -2745,16 +2805,16 @@ class BsDatepickerInlineDirective {
|
|
|
2745
2805
|
this._datepicker.dispose();
|
|
2746
2806
|
this.unsubscribeSubscriptions();
|
|
2747
2807
|
}
|
|
2748
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2749
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2808
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerInlineDirective, deps: [{ token: BsDatepickerInlineConfig }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i2$1.ComponentLoaderFactory }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2809
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: BsDatepickerInlineDirective, isStandalone: true, selector: "bs-datepicker-inline", inputs: { bsConfig: "bsConfig", isDisabled: "isDisabled", minDate: "minDate", maxDate: "maxDate", dateCustomClasses: "dateCustomClasses", dateTooltipTexts: "dateTooltipTexts", datesEnabled: "datesEnabled", datesDisabled: "datesDisabled", bsValue: "bsValue" }, outputs: { bsValueChange: "bsValueChange" }, providers: [ComponentLoaderFactory, PositioningService], exportAs: ["bsDatepickerInline"], usesOnChanges: true, ngImport: i0 }); }
|
|
2750
2810
|
}
|
|
2751
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2811
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerInlineDirective, decorators: [{
|
|
2752
2812
|
type: Directive,
|
|
2753
2813
|
args: [{
|
|
2754
2814
|
selector: 'bs-datepicker-inline',
|
|
2755
2815
|
exportAs: 'bsDatepickerInline',
|
|
2756
2816
|
standalone: true,
|
|
2757
|
-
providers: [ComponentLoaderFactory]
|
|
2817
|
+
providers: [ComponentLoaderFactory, PositioningService]
|
|
2758
2818
|
}]
|
|
2759
2819
|
}], ctorParameters: () => [{ type: BsDatepickerInlineConfig }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i2$1.ComponentLoaderFactory }], propDecorators: { bsConfig: [{
|
|
2760
2820
|
type: Input
|
|
@@ -2786,10 +2846,10 @@ class BsDaterangepickerInlineConfig extends BsDatepickerConfig {
|
|
|
2786
2846
|
/** turn on/off animation */
|
|
2787
2847
|
this.isAnimated = false;
|
|
2788
2848
|
}
|
|
2789
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2790
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2849
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDaterangepickerInlineConfig, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2850
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDaterangepickerInlineConfig, providedIn: 'root' }); }
|
|
2791
2851
|
}
|
|
2792
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDaterangepickerInlineConfig, decorators: [{
|
|
2793
2853
|
type: Injectable,
|
|
2794
2854
|
args: [{
|
|
2795
2855
|
providedIn: 'root'
|
|
@@ -3009,12 +3069,12 @@ class BsDaterangepickerContainerComponent extends BsDatepickerAbstractComponent
|
|
|
3009
3069
|
}
|
|
3010
3070
|
this._effects?.setMaxDate(maxDateRange);
|
|
3011
3071
|
}
|
|
3012
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3013
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
3072
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDaterangepickerContainerComponent, deps: [{ token: i0.Renderer2 }, { token: BsDatepickerConfig }, { token: BsDatepickerStore }, { token: i0.ElementRef }, { token: BsDatepickerActions }, { token: BsDatepickerEffects }, { token: i5.PositioningService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3073
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: BsDaterangepickerContainerComponent, isStandalone: true, selector: "bs-daterangepicker-container", host: { attributes: { "role": "dialog", "aria-label": "calendar" }, listeners: { "click": "_stopPropagation($event)" }, properties: { "attr.disabled": "this.isDatepickerDisabled", "attr.readonly": "this.isDatepickerReadonly" }, classAttribute: "bottom" }, providers: [BsDatepickerStore, BsDatepickerEffects, BsDatepickerActions], viewQueries: [{ propertyName: "startTimepicker", first: true, predicate: ["startTP"], descendants: true }, { propertyName: "endTimepicker", first: true, predicate: ["endTP"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<!-- days calendar view mode -->\n@if (viewMode | async) {\n <div class=\"bs-datepicker\" [ngClass]=\"containerClass\">\n <div class=\"bs-datepicker-container\"\n [@datepickerAnimation]=\"animationState\"\n (@datepickerAnimation.done)=\"positionServiceEnable()\">\n <!--calendars-->\n <div class=\"bs-calendar-container\" role=\"application\">\n @switch (viewMode | async) {\n <!--days calendar-->\n @case ('day') {\n <div class=\"bs-media-container\">\n @for (calendar of daysCalendar$ | async; track calendar) {\n <bs-days-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n [isDisabled]=\"isDatePickerDisabled\"\n [options]=\"options$ | async\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"dayHoverHandler($event)\"\n (onHoverWeek)=\"weekHoverHandler($event)\"\n (onSelect)=\"daySelectHandler($event)\">\n </bs-days-calendar-view>\n }\n </div>\n @if (withTimepicker) {\n <div class=\"bs-timepicker-in-datepicker-container\">\n <timepicker #startTP [disabled]=\"isDatePickerDisabled\"></timepicker>\n @if (isRangePicker) {\n <timepicker #endTP [disabled]=\"isDatePickerDisabled\"></timepicker>\n }\n </div>\n }\n }\n <!--months calendar-->\n @case ('month') {\n <div class=\"bs-media-container\">\n @for (calendar of monthsCalendar | async; track calendar) {\n <bs-month-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"monthHoverHandler($event)\"\n (onSelect)=\"monthSelectHandler($event)\">\n </bs-month-calendar-view>\n }\n </div>\n }\n <!--years calendar-->\n @case ('year') {\n <div class=\"bs-media-container\">\n @for (calendar of yearsCalendar | async; track calendar) {\n <bs-years-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"yearHoverHandler($event)\"\n (onSelect)=\"yearSelectHandler($event)\">\n </bs-years-calendar-view>\n }\n </div>\n }\n }\n </div>\n <!--applycancel buttons-->\n @if (false) {\n <div class=\"bs-datepicker-buttons\">\n <button class=\"btn btn-success\" type=\"button\">Apply</button>\n <button class=\"btn btn-default\" type=\"button\">Cancel</button>\n </div>\n }\n @if (showTodayBtn || showClearBtn) {\n <div class=\"bs-datepicker-buttons\">\n @if (showTodayBtn) {\n <div class=\"btn-today-wrapper\"\n [class.today-left]=\"todayPos === 'left'\"\n [class.today-right]=\"todayPos === 'right'\"\n [class.today-center]=\"todayPos === 'center'\"\n >\n <button class=\"btn btn-success\" (click)=\"setToday()\">{{todayBtnLbl}}</button>\n </div>\n }\n @if (showClearBtn) {\n <div class=\"btn-clear-wrapper\"\n [class.clear-left]=\"clearPos === 'left'\"\n [class.clear-right]=\"clearPos === 'right'\"\n [class.clear-center]=\"clearPos === 'center'\"\n >\n <button class=\"btn btn-success\" (click)=\"clearDate()\">{{clearBtnLbl}}</button>\n </div>\n }\n </div>\n }\n </div>\n <!--custom dates or date ranges picker-->\n @if (customRanges && customRanges.length > 0) {\n <div class=\"bs-datepicker-custom-range\">\n <bs-custom-date-view\n [selectedRange]=\"chosenRange\"\n [ranges]=\"customRanges\"\n [customRangeLabel]=\"customRangeBtnLbl\"\n (onSelect)=\"setRangeOnCalendar($event)\">\n </bs-custom-date-view>\n </div>\n }\n </div>\n}\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: BsDaysCalendarViewComponent, selector: "bs-days-calendar-view", inputs: ["calendar", "options", "isDisabled"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover", "onHoverWeek"] }, { kind: "ngmodule", type: TimepickerModule }, { kind: "component", type: i6.TimepickerComponent, selector: "timepicker", inputs: ["hourStep", "minuteStep", "secondsStep", "readonlyInput", "disabled", "mousewheel", "arrowkeys", "showSpinners", "showMeridian", "showMinutes", "showSeconds", "meridians", "min", "max", "hoursPlaceholder", "minutesPlaceholder", "secondsPlaceholder"], outputs: ["isValid", "meridianChange"] }, { kind: "component", type: BsMonthCalendarViewComponent, selector: "bs-month-calendar-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover"] }, { kind: "component", type: BsYearsCalendarViewComponent, selector: "bs-years-calendar-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover"] }, { kind: "component", type: BsCustomDatesViewComponent, selector: "bs-custom-date-view", inputs: ["ranges", "selectedRange", "customRangeLabel"], outputs: ["onSelect"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], animations: [datepickerAnimation] }); }
|
|
3014
3074
|
}
|
|
3015
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3075
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDaterangepickerContainerComponent, decorators: [{
|
|
3016
3076
|
type: Component,
|
|
3017
|
-
args: [{ selector: 'bs-daterangepicker-container', providers: [BsDatepickerStore, BsDatepickerEffects, BsDatepickerActions
|
|
3077
|
+
args: [{ selector: 'bs-daterangepicker-container', providers: [BsDatepickerStore, BsDatepickerEffects, BsDatepickerActions], host: {
|
|
3018
3078
|
class: 'bottom',
|
|
3019
3079
|
'(click)': '_stopPropagation($event)',
|
|
3020
3080
|
role: 'dialog',
|
|
@@ -3031,7 +3091,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.2", ngImpor
|
|
|
3031
3091
|
BsYearsCalendarViewComponent,
|
|
3032
3092
|
BsCustomDatesViewComponent,
|
|
3033
3093
|
AsyncPipe
|
|
3034
|
-
], template: "<!-- days calendar view mode -->\n<div class=\"bs-datepicker\" [ngClass]=\"containerClass\"
|
|
3094
|
+
], template: "<!-- days calendar view mode -->\n@if (viewMode | async) {\n <div class=\"bs-datepicker\" [ngClass]=\"containerClass\">\n <div class=\"bs-datepicker-container\"\n [@datepickerAnimation]=\"animationState\"\n (@datepickerAnimation.done)=\"positionServiceEnable()\">\n <!--calendars-->\n <div class=\"bs-calendar-container\" role=\"application\">\n @switch (viewMode | async) {\n <!--days calendar-->\n @case ('day') {\n <div class=\"bs-media-container\">\n @for (calendar of daysCalendar$ | async; track calendar) {\n <bs-days-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n [isDisabled]=\"isDatePickerDisabled\"\n [options]=\"options$ | async\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"dayHoverHandler($event)\"\n (onHoverWeek)=\"weekHoverHandler($event)\"\n (onSelect)=\"daySelectHandler($event)\">\n </bs-days-calendar-view>\n }\n </div>\n @if (withTimepicker) {\n <div class=\"bs-timepicker-in-datepicker-container\">\n <timepicker #startTP [disabled]=\"isDatePickerDisabled\"></timepicker>\n @if (isRangePicker) {\n <timepicker #endTP [disabled]=\"isDatePickerDisabled\"></timepicker>\n }\n </div>\n }\n }\n <!--months calendar-->\n @case ('month') {\n <div class=\"bs-media-container\">\n @for (calendar of monthsCalendar | async; track calendar) {\n <bs-month-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"monthHoverHandler($event)\"\n (onSelect)=\"monthSelectHandler($event)\">\n </bs-month-calendar-view>\n }\n </div>\n }\n <!--years calendar-->\n @case ('year') {\n <div class=\"bs-media-container\">\n @for (calendar of yearsCalendar | async; track calendar) {\n <bs-years-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"yearHoverHandler($event)\"\n (onSelect)=\"yearSelectHandler($event)\">\n </bs-years-calendar-view>\n }\n </div>\n }\n }\n </div>\n <!--applycancel buttons-->\n @if (false) {\n <div class=\"bs-datepicker-buttons\">\n <button class=\"btn btn-success\" type=\"button\">Apply</button>\n <button class=\"btn btn-default\" type=\"button\">Cancel</button>\n </div>\n }\n @if (showTodayBtn || showClearBtn) {\n <div class=\"bs-datepicker-buttons\">\n @if (showTodayBtn) {\n <div class=\"btn-today-wrapper\"\n [class.today-left]=\"todayPos === 'left'\"\n [class.today-right]=\"todayPos === 'right'\"\n [class.today-center]=\"todayPos === 'center'\"\n >\n <button class=\"btn btn-success\" (click)=\"setToday()\">{{todayBtnLbl}}</button>\n </div>\n }\n @if (showClearBtn) {\n <div class=\"btn-clear-wrapper\"\n [class.clear-left]=\"clearPos === 'left'\"\n [class.clear-right]=\"clearPos === 'right'\"\n [class.clear-center]=\"clearPos === 'center'\"\n >\n <button class=\"btn btn-success\" (click)=\"clearDate()\">{{clearBtnLbl}}</button>\n </div>\n }\n </div>\n }\n </div>\n <!--custom dates or date ranges picker-->\n @if (customRanges && customRanges.length > 0) {\n <div class=\"bs-datepicker-custom-range\">\n <bs-custom-date-view\n [selectedRange]=\"chosenRange\"\n [ranges]=\"customRanges\"\n [customRangeLabel]=\"customRangeBtnLbl\"\n (onSelect)=\"setRangeOnCalendar($event)\">\n </bs-custom-date-view>\n </div>\n }\n </div>\n}\n" }]
|
|
3035
3095
|
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: BsDatepickerConfig }, { type: BsDatepickerStore }, { type: i0.ElementRef }, { type: BsDatepickerActions }, { type: BsDatepickerEffects }, { type: i5.PositioningService }], propDecorators: { startTimepicker: [{
|
|
3036
3096
|
type: ViewChild,
|
|
3037
3097
|
args: ['startTP']
|
|
@@ -3058,14 +3118,14 @@ class BsDaterangepickerInlineContainerComponent extends BsDaterangepickerContain
|
|
|
3058
3118
|
_renderer.setStyle(_element.nativeElement, 'display', 'inline-block');
|
|
3059
3119
|
_renderer.setStyle(_element.nativeElement, 'position', 'static');
|
|
3060
3120
|
}
|
|
3061
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3062
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
3121
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDaterangepickerInlineContainerComponent, deps: [{ token: i0.Renderer2 }, { token: BsDatepickerConfig }, { token: BsDatepickerStore }, { token: i0.ElementRef }, { token: BsDatepickerActions }, { token: BsDatepickerEffects }, { token: i5.PositioningService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3122
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: BsDaterangepickerInlineContainerComponent, isStandalone: true, selector: "bs-daterangepicker-inline-container", host: { listeners: { "click": "_stopPropagation($event)" }, properties: { "attr.disabled": "this.disabledValue", "attr.readonly": "this.readonlyValue" } }, providers: [BsDatepickerStore, BsDatepickerEffects, BsDatepickerActions], usesInheritance: true, ngImport: i0, template: "<!-- days calendar view mode -->\n@if (viewMode | async) {\n <div class=\"bs-datepicker\" [ngClass]=\"containerClass\">\n <div class=\"bs-datepicker-container\"\n [@datepickerAnimation]=\"animationState\"\n (@datepickerAnimation.done)=\"positionServiceEnable()\">\n <!--calendars-->\n <div class=\"bs-calendar-container\" role=\"application\">\n @switch (viewMode | async) {\n <!--days calendar-->\n @case ('day') {\n <div class=\"bs-media-container\">\n @for (calendar of daysCalendar$ | async; track calendar) {\n <bs-days-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n [isDisabled]=\"isDatePickerDisabled\"\n [options]=\"options$ | async\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"dayHoverHandler($event)\"\n (onHoverWeek)=\"weekHoverHandler($event)\"\n (onSelect)=\"daySelectHandler($event)\">\n </bs-days-calendar-view>\n }\n </div>\n @if (withTimepicker) {\n <div class=\"bs-timepicker-in-datepicker-container\">\n <timepicker #startTP [disabled]=\"isDatePickerDisabled\"></timepicker>\n @if (isRangePicker) {\n <timepicker #endTP [disabled]=\"isDatePickerDisabled\"></timepicker>\n }\n </div>\n }\n }\n <!--months calendar-->\n @case ('month') {\n <div class=\"bs-media-container\">\n @for (calendar of monthsCalendar | async; track calendar) {\n <bs-month-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"monthHoverHandler($event)\"\n (onSelect)=\"monthSelectHandler($event)\">\n </bs-month-calendar-view>\n }\n </div>\n }\n <!--years calendar-->\n @case ('year') {\n <div class=\"bs-media-container\">\n @for (calendar of yearsCalendar | async; track calendar) {\n <bs-years-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"yearHoverHandler($event)\"\n (onSelect)=\"yearSelectHandler($event)\">\n </bs-years-calendar-view>\n }\n </div>\n }\n }\n </div>\n <!--applycancel buttons-->\n @if (false) {\n <div class=\"bs-datepicker-buttons\">\n <button class=\"btn btn-success\" type=\"button\">Apply</button>\n <button class=\"btn btn-default\" type=\"button\">Cancel</button>\n </div>\n }\n @if (showTodayBtn || showClearBtn) {\n <div class=\"bs-datepicker-buttons\">\n @if (showTodayBtn) {\n <div class=\"btn-today-wrapper\"\n [class.today-left]=\"todayPos === 'left'\"\n [class.today-right]=\"todayPos === 'right'\"\n [class.today-center]=\"todayPos === 'center'\"\n >\n <button class=\"btn btn-success\" (click)=\"setToday()\">{{todayBtnLbl}}</button>\n </div>\n }\n @if (showClearBtn) {\n <div class=\"btn-clear-wrapper\"\n [class.clear-left]=\"clearPos === 'left'\"\n [class.clear-right]=\"clearPos === 'right'\"\n [class.clear-center]=\"clearPos === 'center'\"\n >\n <button class=\"btn btn-success\" (click)=\"clearDate()\">{{clearBtnLbl}}</button>\n </div>\n }\n </div>\n }\n </div>\n <!--custom dates or date ranges picker-->\n @if (customRanges && customRanges.length > 0) {\n <div class=\"bs-datepicker-custom-range\">\n <bs-custom-date-view\n [selectedRange]=\"chosenRange\"\n [ranges]=\"customRanges\"\n [customRangeLabel]=\"customRangeBtnLbl\"\n (onSelect)=\"setRangeOnCalendar($event)\">\n </bs-custom-date-view>\n </div>\n }\n </div>\n}\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: BsDaysCalendarViewComponent, selector: "bs-days-calendar-view", inputs: ["calendar", "options", "isDisabled"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover", "onHoverWeek"] }, { kind: "ngmodule", type: TimepickerModule }, { kind: "component", type: i6.TimepickerComponent, selector: "timepicker", inputs: ["hourStep", "minuteStep", "secondsStep", "readonlyInput", "disabled", "mousewheel", "arrowkeys", "showSpinners", "showMeridian", "showMinutes", "showSeconds", "meridians", "min", "max", "hoursPlaceholder", "minutesPlaceholder", "secondsPlaceholder"], outputs: ["isValid", "meridianChange"] }, { kind: "component", type: BsMonthCalendarViewComponent, selector: "bs-month-calendar-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover"] }, { kind: "component", type: BsYearsCalendarViewComponent, selector: "bs-years-calendar-view", inputs: ["calendar"], outputs: ["onNavigate", "onViewMode", "onSelect", "onHover"] }, { kind: "component", type: BsCustomDatesViewComponent, selector: "bs-custom-date-view", inputs: ["ranges", "selectedRange", "customRangeLabel"], outputs: ["onSelect"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], animations: [datepickerAnimation] }); }
|
|
3063
3123
|
}
|
|
3064
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDaterangepickerInlineContainerComponent, decorators: [{
|
|
3065
3125
|
type: Component,
|
|
3066
|
-
args: [{ selector: 'bs-daterangepicker-inline-container', providers: [BsDatepickerStore, BsDatepickerEffects, BsDatepickerActions
|
|
3126
|
+
args: [{ selector: 'bs-daterangepicker-inline-container', providers: [BsDatepickerStore, BsDatepickerEffects, BsDatepickerActions], host: {
|
|
3067
3127
|
'(click)': '_stopPropagation($event)'
|
|
3068
|
-
}, animations: [datepickerAnimation], standalone: true, imports: [NgIf, NgClass, NgSwitch, NgSwitchCase, NgFor, BsDaysCalendarViewComponent, TimepickerModule, BsMonthCalendarViewComponent, BsYearsCalendarViewComponent, BsCustomDatesViewComponent, AsyncPipe], template: "<!-- days calendar view mode -->\n<div class=\"bs-datepicker\" [ngClass]=\"containerClass\"
|
|
3128
|
+
}, animations: [datepickerAnimation], standalone: true, imports: [NgIf, NgClass, NgSwitch, NgSwitchCase, NgFor, BsDaysCalendarViewComponent, TimepickerModule, BsMonthCalendarViewComponent, BsYearsCalendarViewComponent, BsCustomDatesViewComponent, AsyncPipe], template: "<!-- days calendar view mode -->\n@if (viewMode | async) {\n <div class=\"bs-datepicker\" [ngClass]=\"containerClass\">\n <div class=\"bs-datepicker-container\"\n [@datepickerAnimation]=\"animationState\"\n (@datepickerAnimation.done)=\"positionServiceEnable()\">\n <!--calendars-->\n <div class=\"bs-calendar-container\" role=\"application\">\n @switch (viewMode | async) {\n <!--days calendar-->\n @case ('day') {\n <div class=\"bs-media-container\">\n @for (calendar of daysCalendar$ | async; track calendar) {\n <bs-days-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n [isDisabled]=\"isDatePickerDisabled\"\n [options]=\"options$ | async\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"dayHoverHandler($event)\"\n (onHoverWeek)=\"weekHoverHandler($event)\"\n (onSelect)=\"daySelectHandler($event)\">\n </bs-days-calendar-view>\n }\n </div>\n @if (withTimepicker) {\n <div class=\"bs-timepicker-in-datepicker-container\">\n <timepicker #startTP [disabled]=\"isDatePickerDisabled\"></timepicker>\n @if (isRangePicker) {\n <timepicker #endTP [disabled]=\"isDatePickerDisabled\"></timepicker>\n }\n </div>\n }\n }\n <!--months calendar-->\n @case ('month') {\n <div class=\"bs-media-container\">\n @for (calendar of monthsCalendar | async; track calendar) {\n <bs-month-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"monthHoverHandler($event)\"\n (onSelect)=\"monthSelectHandler($event)\">\n </bs-month-calendar-view>\n }\n </div>\n }\n <!--years calendar-->\n @case ('year') {\n <div class=\"bs-media-container\">\n @for (calendar of yearsCalendar | async; track calendar) {\n <bs-years-calendar-view\n [class.bs-datepicker-multiple]=\"multipleCalendars\"\n [calendar]=\"calendar\"\n (onNavigate)=\"navigateTo($event)\"\n (onViewMode)=\"setViewMode($event)\"\n (onHover)=\"yearHoverHandler($event)\"\n (onSelect)=\"yearSelectHandler($event)\">\n </bs-years-calendar-view>\n }\n </div>\n }\n }\n </div>\n <!--applycancel buttons-->\n @if (false) {\n <div class=\"bs-datepicker-buttons\">\n <button class=\"btn btn-success\" type=\"button\">Apply</button>\n <button class=\"btn btn-default\" type=\"button\">Cancel</button>\n </div>\n }\n @if (showTodayBtn || showClearBtn) {\n <div class=\"bs-datepicker-buttons\">\n @if (showTodayBtn) {\n <div class=\"btn-today-wrapper\"\n [class.today-left]=\"todayPos === 'left'\"\n [class.today-right]=\"todayPos === 'right'\"\n [class.today-center]=\"todayPos === 'center'\"\n >\n <button class=\"btn btn-success\" (click)=\"setToday()\">{{todayBtnLbl}}</button>\n </div>\n }\n @if (showClearBtn) {\n <div class=\"btn-clear-wrapper\"\n [class.clear-left]=\"clearPos === 'left'\"\n [class.clear-right]=\"clearPos === 'right'\"\n [class.clear-center]=\"clearPos === 'center'\"\n >\n <button class=\"btn btn-success\" (click)=\"clearDate()\">{{clearBtnLbl}}</button>\n </div>\n }\n </div>\n }\n </div>\n <!--custom dates or date ranges picker-->\n @if (customRanges && customRanges.length > 0) {\n <div class=\"bs-datepicker-custom-range\">\n <bs-custom-date-view\n [selectedRange]=\"chosenRange\"\n [ranges]=\"customRanges\"\n [customRangeLabel]=\"customRangeBtnLbl\"\n (onSelect)=\"setRangeOnCalendar($event)\">\n </bs-custom-date-view>\n </div>\n }\n </div>\n}\n" }]
|
|
3069
3129
|
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: BsDatepickerConfig }, { type: BsDatepickerStore }, { type: i0.ElementRef }, { type: BsDatepickerActions }, { type: BsDatepickerEffects }, { type: i5.PositioningService }], propDecorators: { disabledValue: [{
|
|
3070
3130
|
type: HostBinding,
|
|
3071
3131
|
args: ['attr.disabled']
|
|
@@ -3196,20 +3256,16 @@ class BsDaterangepickerInlineDirective {
|
|
|
3196
3256
|
this._datepicker.dispose();
|
|
3197
3257
|
this.unsubscribeSubscriptions();
|
|
3198
3258
|
}
|
|
3199
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3200
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3201
|
-
ComponentLoaderFactory
|
|
3202
|
-
], exportAs: ["bsDaterangepickerInline"], usesOnChanges: true, ngImport: i0 }); }
|
|
3259
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDaterangepickerInlineDirective, deps: [{ token: BsDaterangepickerInlineConfig }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i2$1.ComponentLoaderFactory }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3260
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: BsDaterangepickerInlineDirective, isStandalone: true, selector: "bs-daterangepicker-inline", inputs: { bsValue: "bsValue", bsConfig: "bsConfig", isDisabled: "isDisabled", minDate: "minDate", maxDate: "maxDate", dateCustomClasses: "dateCustomClasses", daysDisabled: "daysDisabled", datesDisabled: "datesDisabled", datesEnabled: "datesEnabled" }, outputs: { bsValueChange: "bsValueChange" }, providers: [ComponentLoaderFactory, PositioningService], exportAs: ["bsDaterangepickerInline"], usesOnChanges: true, ngImport: i0 }); }
|
|
3203
3261
|
}
|
|
3204
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3262
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDaterangepickerInlineDirective, decorators: [{
|
|
3205
3263
|
type: Directive,
|
|
3206
3264
|
args: [{
|
|
3207
3265
|
selector: 'bs-daterangepicker-inline',
|
|
3208
3266
|
exportAs: 'bsDaterangepickerInline',
|
|
3209
3267
|
standalone: true,
|
|
3210
|
-
providers: [
|
|
3211
|
-
ComponentLoaderFactory
|
|
3212
|
-
]
|
|
3268
|
+
providers: [ComponentLoaderFactory, PositioningService]
|
|
3213
3269
|
}]
|
|
3214
3270
|
}], ctorParameters: () => [{ type: BsDaterangepickerInlineConfig }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i2$1.ComponentLoaderFactory }], propDecorators: { bsValue: [{
|
|
3215
3271
|
type: Input
|
|
@@ -3363,13 +3419,13 @@ class BsDatepickerInputDirective {
|
|
|
3363
3419
|
registerOnTouched(fn) {
|
|
3364
3420
|
this._onTouched = fn;
|
|
3365
3421
|
}
|
|
3366
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3367
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3422
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerInputDirective, deps: [{ token: BsDatepickerDirective, host: true }, { token: BsLocaleService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3423
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: BsDatepickerInputDirective, isStandalone: true, selector: "input[bsDatepicker]", host: { listeners: { "change": "onChange($event)", "blur": "onBlur()", "keyup.esc": "hide()", "keydown.enter": "hide()" } }, providers: [
|
|
3368
3424
|
BS_DATEPICKER_VALUE_ACCESSOR,
|
|
3369
3425
|
BS_DATEPICKER_VALIDATOR
|
|
3370
3426
|
], ngImport: i0 }); }
|
|
3371
3427
|
}
|
|
3372
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerInputDirective, decorators: [{
|
|
3373
3429
|
type: Directive,
|
|
3374
3430
|
args: [{
|
|
3375
3431
|
selector: `input[bsDatepicker]`,
|
|
@@ -3401,10 +3457,10 @@ class BsDaterangepickerConfig extends BsDatepickerConfig {
|
|
|
3401
3457
|
// DatepickerRenderOptions
|
|
3402
3458
|
this.displayMonths = 2;
|
|
3403
3459
|
}
|
|
3404
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3405
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3460
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDaterangepickerConfig, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3461
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDaterangepickerConfig, providedIn: 'root' }); }
|
|
3406
3462
|
}
|
|
3407
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3463
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDaterangepickerConfig, decorators: [{
|
|
3408
3464
|
type: Injectable,
|
|
3409
3465
|
args: [{
|
|
3410
3466
|
providedIn: 'root'
|
|
@@ -3646,20 +3702,16 @@ class BsDaterangepickerDirective {
|
|
|
3646
3702
|
}
|
|
3647
3703
|
this.unsubscribeSubscriptions();
|
|
3648
3704
|
}
|
|
3649
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3650
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3651
|
-
ComponentLoaderFactory
|
|
3652
|
-
], exportAs: ["bsDaterangepicker"], usesOnChanges: true, ngImport: i0 }); }
|
|
3705
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDaterangepickerDirective, deps: [{ token: BsDaterangepickerConfig }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i2$1.ComponentLoaderFactory }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3706
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: BsDaterangepickerDirective, isStandalone: true, selector: "[bsDaterangepicker]", inputs: { placement: "placement", triggers: "triggers", outsideClick: "outsideClick", container: "container", outsideEsc: "outsideEsc", isOpen: "isOpen", bsValue: "bsValue", bsConfig: "bsConfig", isDisabled: "isDisabled", minDate: "minDate", maxDate: "maxDate", dateCustomClasses: "dateCustomClasses", daysDisabled: "daysDisabled", datesDisabled: "datesDisabled", datesEnabled: "datesEnabled" }, outputs: { onShown: "onShown", onHidden: "onHidden", bsValueChange: "bsValueChange" }, host: { properties: { "attr.readonly": "this.isDatepickerReadonly" } }, providers: [ComponentLoaderFactory, PositioningService], exportAs: ["bsDaterangepicker"], usesOnChanges: true, ngImport: i0 }); }
|
|
3653
3707
|
}
|
|
3654
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3708
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDaterangepickerDirective, decorators: [{
|
|
3655
3709
|
type: Directive,
|
|
3656
3710
|
args: [{
|
|
3657
3711
|
selector: '[bsDaterangepicker]',
|
|
3658
3712
|
exportAs: 'bsDaterangepicker',
|
|
3659
3713
|
standalone: true,
|
|
3660
|
-
providers: [
|
|
3661
|
-
ComponentLoaderFactory
|
|
3662
|
-
]
|
|
3714
|
+
providers: [ComponentLoaderFactory, PositioningService]
|
|
3663
3715
|
}]
|
|
3664
3716
|
}], ctorParameters: () => [{ type: BsDaterangepickerConfig }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i2$1.ComponentLoaderFactory }], propDecorators: { placement: [{
|
|
3665
3717
|
type: Input
|
|
@@ -3880,13 +3932,13 @@ class BsDaterangepickerInputDirective {
|
|
|
3880
3932
|
this._renderer.selectRootElement(this._elRef.nativeElement).focus();
|
|
3881
3933
|
}
|
|
3882
3934
|
}
|
|
3883
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3884
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3935
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDaterangepickerInputDirective, deps: [{ token: BsDaterangepickerDirective, host: true }, { token: BsLocaleService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3936
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: BsDaterangepickerInputDirective, isStandalone: true, selector: "input[bsDaterangepicker]", host: { listeners: { "change": "onChange($event)", "keyup.esc": "hide()", "keydown": "onKeydownEvent($event)", "blur": "onBlur()" } }, providers: [
|
|
3885
3937
|
BS_DATERANGEPICKER_VALUE_ACCESSOR,
|
|
3886
3938
|
BS_DATERANGEPICKER_VALIDATOR
|
|
3887
3939
|
], ngImport: i0 }); }
|
|
3888
3940
|
}
|
|
3889
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3941
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDaterangepickerInputDirective, decorators: [{
|
|
3890
3942
|
type: Directive,
|
|
3891
3943
|
args: [{
|
|
3892
3944
|
selector: `input[bsDaterangepicker]`,
|
|
@@ -3914,8 +3966,8 @@ class BsDatepickerModule {
|
|
|
3914
3966
|
providers: []
|
|
3915
3967
|
};
|
|
3916
3968
|
}
|
|
3917
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3918
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3969
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3970
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerModule, imports: [CommonModule, TooltipModule, TimepickerModule, BsCalendarLayoutComponent,
|
|
3919
3971
|
BsCurrentDateViewComponent,
|
|
3920
3972
|
BsCustomDatesViewComponent,
|
|
3921
3973
|
BsDatepickerDayDecoratorComponent,
|
|
@@ -3943,14 +3995,14 @@ class BsDatepickerModule {
|
|
|
3943
3995
|
BsDaterangepickerInlineContainerComponent,
|
|
3944
3996
|
BsDaterangepickerInlineDirective,
|
|
3945
3997
|
BsDaterangepickerInputDirective] }); }
|
|
3946
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3998
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerModule, imports: [CommonModule, TooltipModule, TimepickerModule,
|
|
3947
3999
|
BsDaysCalendarViewComponent,
|
|
3948
4000
|
BsDatepickerContainerComponent,
|
|
3949
4001
|
BsDatepickerInlineContainerComponent,
|
|
3950
4002
|
BsDaterangepickerContainerComponent,
|
|
3951
4003
|
BsDaterangepickerInlineContainerComponent] }); }
|
|
3952
4004
|
}
|
|
3953
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4005
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BsDatepickerModule, decorators: [{
|
|
3954
4006
|
type: NgModule,
|
|
3955
4007
|
args: [{
|
|
3956
4008
|
imports: [CommonModule, TooltipModule, TimepickerModule, BsCalendarLayoutComponent,
|