@cqa-lib/cqa-ui 1.0.110 → 1.0.112
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/esm2020/lib/filters/daterangepicker/daterangepicker.component.mjs +3 -13
- package/esm2020/lib/filters/daterangepicker/daterangepicker.directive.mjs +6 -7
- package/fesm2015/cqa-lib-cqa-ui.mjs +7 -18
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +7 -18
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/filters/daterangepicker/daterangepicker.component.d.ts +2 -4
- package/lib/filters/daterangepicker/daterangepicker.directive.d.ts +2 -1
- package/package.json +1 -1
|
@@ -2096,11 +2096,8 @@ class DaterangepickerDirective {
|
|
|
2096
2096
|
console.error('moment.js must be loaded for daterangepicker to work');
|
|
2097
2097
|
return;
|
|
2098
2098
|
}
|
|
2099
|
-
// Resolve parent element to scope styles;
|
|
2100
|
-
const
|
|
2101
|
-
const resolvedParentEl = this.options?.parentEl
|
|
2102
|
-
? this.options.parentEl
|
|
2103
|
-
: (parentElCandidate && parentElCandidate.length ? parentElCandidate : 'body');
|
|
2099
|
+
// Resolve parent element to scope styles; allow override via options.parentEl, else use body.
|
|
2100
|
+
const resolvedParentEl = this.parentEl || this.options?.parentEl || 'body';
|
|
2104
2101
|
const baseOptions = {
|
|
2105
2102
|
opens: 'left',
|
|
2106
2103
|
drops: 'down',
|
|
@@ -2301,7 +2298,7 @@ class DaterangepickerDirective {
|
|
|
2301
2298
|
}
|
|
2302
2299
|
}
|
|
2303
2300
|
DaterangepickerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DaterangepickerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2304
|
-
DaterangepickerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: DaterangepickerDirective, selector: "[cqaDaterangepicker]", inputs: { options: "options", startDate: "startDate", endDate: "endDate", minDate: "minDate", maxDate: "maxDate" }, outputs: { datesUpdated: "datesUpdated", cancelClicked: "cancelClicked", applyClicked: "applyClicked" }, providers: [
|
|
2301
|
+
DaterangepickerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: DaterangepickerDirective, selector: "[cqaDaterangepicker]", inputs: { options: "options", startDate: "startDate", endDate: "endDate", minDate: "minDate", maxDate: "maxDate", parentEl: "parentEl" }, outputs: { datesUpdated: "datesUpdated", cancelClicked: "cancelClicked", applyClicked: "applyClicked" }, providers: [
|
|
2305
2302
|
{
|
|
2306
2303
|
provide: NG_VALUE_ACCESSOR,
|
|
2307
2304
|
useExisting: forwardRef(() => DaterangepickerDirective),
|
|
@@ -2330,6 +2327,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
2330
2327
|
type: Input
|
|
2331
2328
|
}], maxDate: [{
|
|
2332
2329
|
type: Input
|
|
2330
|
+
}], parentEl: [{
|
|
2331
|
+
type: Input
|
|
2333
2332
|
}], datesUpdated: [{
|
|
2334
2333
|
type: Output
|
|
2335
2334
|
}], cancelClicked: [{
|
|
@@ -2353,16 +2352,6 @@ class DaterangepickerComponent {
|
|
|
2353
2352
|
this.onTouched = () => { };
|
|
2354
2353
|
}
|
|
2355
2354
|
ngOnInit() {
|
|
2356
|
-
this.updatePickerOptions();
|
|
2357
|
-
}
|
|
2358
|
-
ngOnChanges(changes) {
|
|
2359
|
-
if (changes['ranges'] || changes['autoApply'] || changes['alwaysShowCalendars'] ||
|
|
2360
|
-
changes['opens'] || changes['drops'] || changes['isInvalidDate'] || changes['parentEl'] ||
|
|
2361
|
-
changes['startDate'] || changes['endDate'] || changes['minDate'] || changes['maxDate']) {
|
|
2362
|
-
this.updatePickerOptions();
|
|
2363
|
-
}
|
|
2364
|
-
}
|
|
2365
|
-
updatePickerOptions() {
|
|
2366
2355
|
this.pickerOptions = {
|
|
2367
2356
|
startDate: this.startDate ? new Date(this.startDate) : undefined,
|
|
2368
2357
|
endDate: this.endDate ? new Date(this.endDate) : undefined,
|
|
@@ -2439,7 +2428,7 @@ DaterangepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
2439
2428
|
useExisting: forwardRef(() => DaterangepickerComponent),
|
|
2440
2429
|
multi: true
|
|
2441
2430
|
}
|
|
2442
|
-
], viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["inputRef"], descendants: true, static: true }],
|
|
2431
|
+
], viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["inputRef"], descendants: true, static: true }], ngImport: i0, template: `
|
|
2443
2432
|
<div class="cqa-ui-root">
|
|
2444
2433
|
<label *ngIf="label" class="form-label cqa-text-[#374151] cqa-text-[14px] cqa-font-medium cqa-block cqa-leading-[1.4] cqa-mb-2">
|
|
2445
2434
|
{{ label }}
|
|
@@ -2483,7 +2472,7 @@ DaterangepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
2483
2472
|
</button>
|
|
2484
2473
|
</div>
|
|
2485
2474
|
</div>
|
|
2486
|
-
`, isInline: true, directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DaterangepickerDirective, selector: "[cqaDaterangepicker]", inputs: ["options", "startDate", "endDate", "minDate", "maxDate"], outputs: ["datesUpdated", "cancelClicked", "applyClicked"] }] });
|
|
2475
|
+
`, isInline: true, directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DaterangepickerDirective, selector: "[cqaDaterangepicker]", inputs: ["options", "startDate", "endDate", "minDate", "maxDate", "parentEl"], outputs: ["datesUpdated", "cancelClicked", "applyClicked"] }] });
|
|
2487
2476
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: DaterangepickerComponent, decorators: [{
|
|
2488
2477
|
type: Component,
|
|
2489
2478
|
args: [{
|