@datarailsshared/datarailsshared 1.6.409 → 1.6.411

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.
@@ -3132,7 +3132,7 @@ class DrDatePickerService {
3132
3132
  this.keepPresetTag = true;
3133
3133
  let date = null;
3134
3134
  if (tag) {
3135
- date = DrSharedUtils.getDateByTag(tag);
3135
+ date = DrSharedUtils.getDateByTag(tag, true);
3136
3136
  switch (tag) {
3137
3137
  case DateTags.TODAY:
3138
3138
  this.updateTimeframeAndFormat(DateFromats.MAT_DEFAULT_DATE_FORMAT);
@@ -3837,7 +3837,12 @@ class CustomDateAdapter extends MomentDateAdapter {
3837
3837
  getFirstDayOfWeek() {
3838
3838
  return 1;
3839
3839
  }
3840
+ /** @nocollapse */ static { this.ɵfac = /** @pureOrBreakMyCode */ function () { let ɵCustomDateAdapter_BaseFactory; return function CustomDateAdapter_Factory(t) { return (ɵCustomDateAdapter_BaseFactory || (ɵCustomDateAdapter_BaseFactory = i0.ɵɵgetInheritedFactory(CustomDateAdapter)))(t || CustomDateAdapter); }; }(); }
3841
+ /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: CustomDateAdapter, factory: CustomDateAdapter.ɵfac }); }
3840
3842
  }
3843
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomDateAdapter, [{
3844
+ type: Injectable
3845
+ }], null, null); })();
3841
3846
  // Reuse parent DateAdapter if provided, otherwise create a local CustomDateAdapter
3842
3847
  const DATE_ADAPTER_PROVIDER = {
3843
3848
  provide: DateAdapter,
@@ -17836,6 +17841,9 @@ function DrCronFieldComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
17836
17841
  i0.ɵɵproperty("ngIf", !ctx_r4.isAdvancedMode);
17837
17842
  } }
17838
17843
  class DrCronFieldComponent {
17844
+ get DAY_OF_MONTH_ARRAY() {
17845
+ return this.allowLastDayOfMonth ? DAY_OF_MONTH_ARRAY : DAY_OF_MONTH_ARRAY.slice(0, -1);
17846
+ }
17839
17847
  set value(value) {
17840
17848
  if (!value) {
17841
17849
  this.visibleString = '';
@@ -17863,7 +17871,7 @@ class DrCronFieldComponent {
17863
17871
  this.flatMode = false;
17864
17872
  this.multiRowMode = false;
17865
17873
  this.allowAdvanced = false;
17866
- this.DAY_OF_MONTH_ARRAY = DAY_OF_MONTH_ARRAY;
17874
+ this.allowLastDayOfMonth = false;
17867
17875
  this.MONTH_OF_QUARTER_ARRAY = MONTH_OF_QUARTER_ARRAY;
17868
17876
  this.MONTH_OF_YEAR_ARRAY = MONTH_OF_YEAR_ARRAY;
17869
17877
  this.DAY_OF_WEEK_ARRAY = DAY_OF_WEEK_ARRAY;
@@ -17967,7 +17975,7 @@ class DrCronFieldComponent {
17967
17975
  /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: DrCronFieldComponent, selectors: [["dr-cron-field"]], hostVars: 3, hostBindings: function DrCronFieldComponent_HostBindings(rf, ctx) { if (rf & 2) {
17968
17976
  i0.ɵɵattribute("id", ctx.hostId);
17969
17977
  i0.ɵɵclassProp("disabled", ctx.disabled);
17970
- } }, inputs: { id: "id", disabled: "disabled", allowedPeriods: "allowedPeriods", fiscalYearStart: "fiscalYearStart", popoverPosition: "popoverPosition", hidePeriodSelector: ["hidePeriodSelector", "hidePeriodSelector", booleanAttribute], flatMode: ["flatMode", "flatMode", booleanAttribute], multiRowMode: ["multiRowMode", "multiRowMode", booleanAttribute], allowAdvanced: ["allowAdvanced", "allowAdvanced", booleanAttribute], validateCron: "validateCron" }, standalone: true, features: [i0.ɵɵProvidersFeature([
17978
+ } }, inputs: { id: "id", disabled: "disabled", allowedPeriods: "allowedPeriods", fiscalYearStart: "fiscalYearStart", popoverPosition: "popoverPosition", hidePeriodSelector: ["hidePeriodSelector", "hidePeriodSelector", booleanAttribute], flatMode: ["flatMode", "flatMode", booleanAttribute], multiRowMode: ["multiRowMode", "multiRowMode", booleanAttribute], allowAdvanced: ["allowAdvanced", "allowAdvanced", booleanAttribute], allowLastDayOfMonth: ["allowLastDayOfMonth", "allowLastDayOfMonth", booleanAttribute], validateCron: "validateCron" }, standalone: true, features: [i0.ɵɵProvidersFeature([
17971
17979
  {
17972
17980
  provide: NG_VALUE_ACCESSOR,
17973
17981
  useExisting: forwardRef((() => DrCronFieldComponent)),
@@ -18019,6 +18027,9 @@ class DrCronFieldComponent {
18019
18027
  }], allowAdvanced: [{
18020
18028
  type: Input,
18021
18029
  args: [{ transform: booleanAttribute }]
18030
+ }], allowLastDayOfMonth: [{
18031
+ type: Input,
18032
+ args: [{ transform: booleanAttribute }]
18022
18033
  }], validateCron: [{
18023
18034
  type: Input
18024
18035
  }] }); })();