@posiwise/shared-components 0.0.221 → 0.0.222
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.
|
@@ -8087,8 +8087,12 @@ var DateRangePickerComponent = class DateRangePickerComponent {
|
|
|
8087
8087
|
openDatepicker() {
|
|
8088
8088
|
setTimeout(() => {
|
|
8089
8089
|
this.pickerDirective.open();
|
|
8090
|
+
this.refreshPicker();
|
|
8090
8091
|
}, 50);
|
|
8091
8092
|
}
|
|
8093
|
+
refreshPicker() {
|
|
8094
|
+
setTimeout(() => this.pickerDirective?.picker?.["ref"]?.detectChanges());
|
|
8095
|
+
}
|
|
8092
8096
|
static {
|
|
8093
8097
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
8094
8098
|
minVersion: "12.0.0",
|
|
@@ -8119,7 +8123,7 @@ var DateRangePickerComponent = class DateRangePickerComponent {
|
|
|
8119
8123
|
descendants: true
|
|
8120
8124
|
}],
|
|
8121
8125
|
ngImport: i0,
|
|
8122
|
-
template: "<div class=\"my-3\">\n <div class=\"row\">\n <!-- start date -->\n <div class=\"col-6 col-sm-3\">\n <div class=\"\">\n <label [attr.for]=\"inputId\" class=\"visually-hidden\">Select a date range (optional)</label>\n <input [id]=\"inputId\"\n [name]=\"inputId\"\n ngxDaterangepickerMd\n class=\"form-control\"\n [(ngModel)]=\"selectedDateRange\"\n [ranges]=\"dateRanges\"\n [alwaysShowCalendars]=\"true\"\n [locale]=\"{ format: 'DD-MMM-YYYY' }\"\n [showCustomRangeLabel]=\"true\"\n [linkedCalendars]=\"true\"\n [showClearButton]=\"true\"\n (clearClicked)=\"onClearDate()\"\n placeholder=\"Select a date range (optional)\"\n opens=\"center\"\n (ngModelChange)=\"onDateRangeSelect($event)\"\n id=\"input_selectedDateRange_2368\" name=\"input_selectedDateRange_2368\"\n aria-label=\"Select a date range (optional)\" />\n </div>\n </div>\n <div class=\"col-6 col-sm-3 pop\">\n\n <div class=\"daterange-trigger\">\n <button class=\"btn btn-primary ngx-daterangepicker-action\"\n (click)=\"openDatepicker()\"\n type=\"button\">\n <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>",
|
|
8126
|
+
template: "<div class=\"my-3\">\n <div class=\"row\">\n <!-- start date -->\n <div class=\"col-6 col-sm-3\">\n <div class=\"\">\n <label [attr.for]=\"inputId\" class=\"visually-hidden\">Select a date range (optional)</label>\n <input [id]=\"inputId\"\n [name]=\"inputId\"\n ngxDaterangepickerMd\n class=\"form-control\"\n [(ngModel)]=\"selectedDateRange\"\n [ranges]=\"dateRanges\"\n [alwaysShowCalendars]=\"true\"\n [locale]=\"{ format: 'DD-MMM-YYYY' }\"\n [showCustomRangeLabel]=\"true\"\n [linkedCalendars]=\"true\"\n [showClearButton]=\"true\"\n (clearClicked)=\"onClearDate()\"\n (click)=\"refreshPicker()\"\n placeholder=\"Select a date range (optional)\"\n opens=\"center\"\n (ngModelChange)=\"onDateRangeSelect($event)\"\n id=\"input_selectedDateRange_2368\" name=\"input_selectedDateRange_2368\"\n aria-label=\"Select a date range (optional)\" />\n </div>\n </div>\n <div class=\"col-6 col-sm-3 pop\">\n\n <div class=\"daterange-trigger\">\n <button class=\"btn btn-primary ngx-daterangepicker-action\"\n (click)=\"openDatepicker()\"\n type=\"button\">\n <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>",
|
|
8123
8127
|
styles: ["::ng-deep .md-drppicker{top:auto!important;left:auto!important;margin-top:0!important}::ng-deep .md-drppicker .clear svg{margin-right:2px;margin-bottom:10px}.pop{margin-left:-28px;padding-left:0}.pop .daterange-trigger{margin-left:0}.pop .btn.ngx-daterangepicker-action{min-height:36px;display:inline-flex;align-items:center;justify-content:center;background:var(--first)!important;border:1px solid var(--first)!important;color:#fff!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important;margin-left:0!important}.form-control{border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-right:0!important}\n"],
|
|
8124
8128
|
dependencies: [
|
|
8125
8129
|
{
|
|
@@ -8212,7 +8216,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8212
8216
|
args: [{
|
|
8213
8217
|
selector: "app-date-picker",
|
|
8214
8218
|
standalone: false,
|
|
8215
|
-
template: "<div class=\"my-3\">\n <div class=\"row\">\n <!-- start date -->\n <div class=\"col-6 col-sm-3\">\n <div class=\"\">\n <label [attr.for]=\"inputId\" class=\"visually-hidden\">Select a date range (optional)</label>\n <input [id]=\"inputId\"\n [name]=\"inputId\"\n ngxDaterangepickerMd\n class=\"form-control\"\n [(ngModel)]=\"selectedDateRange\"\n [ranges]=\"dateRanges\"\n [alwaysShowCalendars]=\"true\"\n [locale]=\"{ format: 'DD-MMM-YYYY' }\"\n [showCustomRangeLabel]=\"true\"\n [linkedCalendars]=\"true\"\n [showClearButton]=\"true\"\n (clearClicked)=\"onClearDate()\"\n placeholder=\"Select a date range (optional)\"\n opens=\"center\"\n (ngModelChange)=\"onDateRangeSelect($event)\"\n id=\"input_selectedDateRange_2368\" name=\"input_selectedDateRange_2368\"\n aria-label=\"Select a date range (optional)\" />\n </div>\n </div>\n <div class=\"col-6 col-sm-3 pop\">\n\n <div class=\"daterange-trigger\">\n <button class=\"btn btn-primary ngx-daterangepicker-action\"\n (click)=\"openDatepicker()\"\n type=\"button\">\n <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>",
|
|
8219
|
+
template: "<div class=\"my-3\">\n <div class=\"row\">\n <!-- start date -->\n <div class=\"col-6 col-sm-3\">\n <div class=\"\">\n <label [attr.for]=\"inputId\" class=\"visually-hidden\">Select a date range (optional)</label>\n <input [id]=\"inputId\"\n [name]=\"inputId\"\n ngxDaterangepickerMd\n class=\"form-control\"\n [(ngModel)]=\"selectedDateRange\"\n [ranges]=\"dateRanges\"\n [alwaysShowCalendars]=\"true\"\n [locale]=\"{ format: 'DD-MMM-YYYY' }\"\n [showCustomRangeLabel]=\"true\"\n [linkedCalendars]=\"true\"\n [showClearButton]=\"true\"\n (clearClicked)=\"onClearDate()\"\n (click)=\"refreshPicker()\"\n placeholder=\"Select a date range (optional)\"\n opens=\"center\"\n (ngModelChange)=\"onDateRangeSelect($event)\"\n id=\"input_selectedDateRange_2368\" name=\"input_selectedDateRange_2368\"\n aria-label=\"Select a date range (optional)\" />\n </div>\n </div>\n <div class=\"col-6 col-sm-3 pop\">\n\n <div class=\"daterange-trigger\">\n <button class=\"btn btn-primary ngx-daterangepicker-action\"\n (click)=\"openDatepicker()\"\n type=\"button\">\n <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>",
|
|
8216
8220
|
styles: ["::ng-deep .md-drppicker{top:auto!important;left:auto!important;margin-top:0!important}::ng-deep .md-drppicker .clear svg{margin-right:2px;margin-bottom:10px}.pop{margin-left:-28px;padding-left:0}.pop .daterange-trigger{margin-left:0}.pop .btn.ngx-daterangepicker-action{min-height:36px;display:inline-flex;align-items:center;justify-content:center;background:var(--first)!important;border:1px solid var(--first)!important;color:#fff!important;border-top-left-radius:0!important;border-bottom-left-radius:0!important;margin-left:0!important}.form-control{border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-right:0!important}\n"]
|
|
8217
8221
|
}]
|
|
8218
8222
|
}],
|