@cqa-lib/cqa-ui 1.0.110 → 1.0.111
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 +2 -12
- package/esm2020/lib/filters/daterangepicker/daterangepicker.directive.mjs +3 -6
- package/fesm2015/cqa-lib-cqa-ui.mjs +3 -16
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +3 -16
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/filters/daterangepicker/daterangepicker.component.d.ts +2 -4
- 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.options?.parentEl || 'body';
|
|
2104
2101
|
const baseOptions = {
|
|
2105
2102
|
opens: 'left',
|
|
2106
2103
|
drops: 'down',
|
|
@@ -2353,16 +2350,6 @@ class DaterangepickerComponent {
|
|
|
2353
2350
|
this.onTouched = () => { };
|
|
2354
2351
|
}
|
|
2355
2352
|
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
2353
|
this.pickerOptions = {
|
|
2367
2354
|
startDate: this.startDate ? new Date(this.startDate) : undefined,
|
|
2368
2355
|
endDate: this.endDate ? new Date(this.endDate) : undefined,
|
|
@@ -2439,7 +2426,7 @@ DaterangepickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
|
|
|
2439
2426
|
useExisting: forwardRef(() => DaterangepickerComponent),
|
|
2440
2427
|
multi: true
|
|
2441
2428
|
}
|
|
2442
|
-
], viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["inputRef"], descendants: true, static: true }],
|
|
2429
|
+
], viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["inputRef"], descendants: true, static: true }], ngImport: i0, template: `
|
|
2443
2430
|
<div class="cqa-ui-root">
|
|
2444
2431
|
<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
2432
|
{{ label }}
|