monkey-style-guide 2.0.183 → 2.0.185

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.
@@ -5742,11 +5742,11 @@ class MonkeyDateRangePickerV2Component {
5742
5742
  this.onChange = new EventEmitter();
5743
5743
  this.onSubmit = new EventEmitter();
5744
5744
  this.onClose = new EventEmitter();
5745
- this.today = moment().format('YYYY-MM-DD');
5745
+ this.today = moment.default().format('YYYY-MM-DD');
5746
5746
  this.onModelChange = (value) => { };
5747
5747
  this.onModelTouched = (value) => { };
5748
- this._dateFirst = moment();
5749
- this._dateSecond = moment().add(1, 'M');
5748
+ this._dateFirst = moment.default();
5749
+ this._dateSecond = moment.default().add(1, 'M');
5750
5750
  this._id = `mecx-date-range-picker-v2-${MonkeyUtils.getRandomString(10)}`;
5751
5751
  this._daysArrFirst = [];
5752
5752
  this._daysArrSecond = [];
@@ -5767,17 +5767,17 @@ class MonkeyDateRangePickerV2Component {
5767
5767
  });
5768
5768
  this._dateForm?.valueChanges?.pipe(takeUntil(this.unsubscribeAll))?.subscribe((values) => {
5769
5769
  const { startDate, endDate } = values;
5770
- this._startDate = startDate && moment(startDate);
5771
- this._endDate = endDate && moment(endDate);
5770
+ this._startDate = startDate && moment.default(startDate);
5771
+ this._endDate = endDate && moment.default(endDate);
5772
5772
  });
5773
5773
  }
5774
5774
  createCalendar(month) {
5775
- let firstDay = moment(month).startOf('M');
5776
- let lastDay = moment(month).endOf('M');
5775
+ let firstDay = moment.default(month).startOf('M');
5776
+ let lastDay = moment.default(month).endOf('M');
5777
5777
  let days = Array.apply(null, { length: month.daysInMonth() })
5778
5778
  .map(Number.call, Number)
5779
5779
  .map((n) => {
5780
- return moment(firstDay).add(n, 'd');
5780
+ return moment.default(firstDay).add(n, 'd');
5781
5781
  });
5782
5782
  let n = 0;
5783
5783
  while (n < firstDay.weekday()) {
@@ -5815,8 +5815,8 @@ class MonkeyDateRangePickerV2Component {
5815
5815
  this.writeValue(this._dateForm.value);
5816
5816
  }
5817
5817
  navigateToToday() {
5818
- this._dateFirst = moment();
5819
- this._dateSecond = moment().add(1, 'M');
5818
+ this._dateFirst = moment.default();
5819
+ this._dateSecond = moment.default().add(1, 'M');
5820
5820
  this.build();
5821
5821
  }
5822
5822
  ngOnInit() {
@@ -5875,14 +5875,14 @@ class MonkeyDateRangePickerV2Component {
5875
5875
  if (!day) {
5876
5876
  return false;
5877
5877
  }
5878
- return moment().format('L') === day.format('L');
5878
+ return moment.default().format('L') === day.format('L');
5879
5879
  }
5880
5880
  isSelected(day) {
5881
5881
  if (!day) {
5882
5882
  return false;
5883
5883
  }
5884
- let startDateMoment = moment(this._dateForm.value.startDate, 'YYYY-MM-DD');
5885
- let endDateMoment = moment(this._dateForm.value.endDate, 'YYYY-MM-DD');
5884
+ let startDateMoment = moment.default(this._dateForm.value.startDate, 'YYYY-MM-DD');
5885
+ let endDateMoment = moment.default(this._dateForm.value.endDate, 'YYYY-MM-DD');
5886
5886
  if (this._dateForm.valid) {
5887
5887
  return startDateMoment.isSameOrBefore(day) && endDateMoment.isSameOrAfter(day);
5888
5888
  }
@@ -5893,7 +5893,7 @@ class MonkeyDateRangePickerV2Component {
5893
5893
  isDisabled(day) {
5894
5894
  const { _minDate } = this;
5895
5895
  if (_minDate) {
5896
- const firstDay = moment(_minDate);
5896
+ const firstDay = moment.default(_minDate);
5897
5897
  return day.isBefore(firstDay.subtract(1, 'day'));
5898
5898
  }
5899
5899
  return false;
@@ -5914,7 +5914,7 @@ class MonkeyDateRangePickerV2Component {
5914
5914
  const { _dateForm, _minDate } = this;
5915
5915
  let dayFormatted = day.format('YYYY-MM-DD');
5916
5916
  if (_minDate) {
5917
- const firstDay = moment(_minDate);
5917
+ const firstDay = moment.default(_minDate);
5918
5918
  if (day.isBefore(firstDay.subtract(1, 'day')))
5919
5919
  return;
5920
5920
  }
@@ -5923,7 +5923,7 @@ class MonkeyDateRangePickerV2Component {
5923
5923
  }
5924
5924
  let { startDate, endDate } = _dateForm.value;
5925
5925
  if (startDate) {
5926
- if (moment(startDate).isAfter(moment(dayFormatted))) {
5926
+ if (moment.default(startDate).isAfter(moment.default(dayFormatted))) {
5927
5927
  endDate = startDate;
5928
5928
  startDate = dayFormatted;
5929
5929
  }
@@ -5946,9 +5946,9 @@ class MonkeyDateRangePickerV2Component {
5946
5946
  return;
5947
5947
  const { _dateForm, _minDate, today, moveDaysForward } = this;
5948
5948
  const { startDate } = _dateForm.value;
5949
- const firstDay = moment(startDate || _minDate || today).format('YYYY-MM-DD');
5949
+ const firstDay = moment.default(startDate || _minDate || today).format('YYYY-MM-DD');
5950
5950
  const method = moveDaysForward ? 'add' : 'subtract';
5951
- const lastDay = moment(firstDay)[method](days, 'day').format('YYYY-MM-DD');
5951
+ const lastDay = moment.default(firstDay)[method](days, 'day').format('YYYY-MM-DD');
5952
5952
  if (moveDaysForward) {
5953
5953
  _dateForm.get('startDate').patchValue(firstDay);
5954
5954
  _dateForm.get('endDate').patchValue(lastDay);
@@ -6533,6 +6533,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
6533
6533
  **************************/
6534
6534
  class MonkeyFileUploadComponent {
6535
6535
  constructor() {
6536
+ this.multiple = false;
6536
6537
  this.onChange = new EventEmitter();
6537
6538
  this.onHandleFilesReady = new EventEmitter();
6538
6539
  this.onModelChange = (value) => { };
@@ -6644,7 +6645,7 @@ class MonkeyFileUploadComponent {
6644
6645
  }
6645
6646
  }
6646
6647
  MonkeyFileUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyFileUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6647
- MonkeyFileUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: MonkeyFileUploadComponent, selector: "monkey-file-upload", inputs: { name: "name", label: "label", helperMessage: "helperMessage", placeholder: "placeholder", icon: "icon", infoMessage: "infoMessage", uploadOngoingMessage: "uploadOngoingMessage", errorMessage: "errorMessage", listenFiles: "listenFiles", maxSize: "maxSize", allowedExtensions: "allowedExtensions", maxSizeErrorMessage: "maxSizeErrorMessage", allowedExtensionErrorMessage: "allowedExtensionErrorMessage", fileUpload: "fileUpload", value: "value" }, outputs: { onChange: "onChange", onHandleFilesReady: "onHandleFilesReady" }, host: { listeners: { "click": "onClick($event)" } }, providers: [
6648
+ MonkeyFileUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: MonkeyFileUploadComponent, selector: "monkey-file-upload", inputs: { name: "name", label: "label", helperMessage: "helperMessage", placeholder: "placeholder", icon: "icon", infoMessage: "infoMessage", uploadOngoingMessage: "uploadOngoingMessage", errorMessage: "errorMessage", listenFiles: "listenFiles", maxSize: "maxSize", allowedExtensions: "allowedExtensions", maxSizeErrorMessage: "maxSizeErrorMessage", allowedExtensionErrorMessage: "allowedExtensionErrorMessage", fileUpload: "fileUpload", multiple: "multiple", value: "value" }, outputs: { onChange: "onChange", onHandleFilesReady: "onHandleFilesReady" }, host: { listeners: { "click": "onClick($event)" } }, providers: [
6648
6649
  {
6649
6650
  provide: NG_VALUE_ACCESSOR,
6650
6651
  useExisting: forwardRef(() => MonkeyFileUploadComponent),
@@ -6669,6 +6670,7 @@ MonkeyFileUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
6669
6670
  (change)="onChangeValue($event.target.files)"
6670
6671
  [id]="_id"
6671
6672
  [disabled]="_disabled"
6673
+ [multiple]="multiple"
6672
6674
  />
6673
6675
  <span>{{
6674
6676
  value?.fileName
@@ -6729,6 +6731,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
6729
6731
  (change)="onChangeValue($event.target.files)"
6730
6732
  [id]="_id"
6731
6733
  [disabled]="_disabled"
6734
+ [multiple]="multiple"
6732
6735
  />
6733
6736
  <span>{{
6734
6737
  value?.fileName
@@ -6803,6 +6806,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
6803
6806
  type: Input
6804
6807
  }], fileUpload: [{
6805
6808
  type: Input
6809
+ }], multiple: [{
6810
+ type: Input
6806
6811
  }], onChange: [{
6807
6812
  type: Output
6808
6813
  }], onHandleFilesReady: [{
@@ -7194,7 +7199,7 @@ MonkeyImageCropComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0
7194
7199
  >
7195
7200
  {{ labelChangeImage }}
7196
7201
  </monkey-button>
7197
- `, isInline: true, components: [{ type: MonkeyFileUploadComponent, selector: "monkey-file-upload", inputs: ["name", "label", "helperMessage", "placeholder", "icon", "infoMessage", "uploadOngoingMessage", "errorMessage", "listenFiles", "maxSize", "allowedExtensions", "maxSizeErrorMessage", "allowedExtensionErrorMessage", "fileUpload", "value"], outputs: ["onChange", "onHandleFilesReady"] }, { type: MonkeyButtonComponent, selector: "monkey-button", inputs: ["label", "icon", "iconPosition", "type", "color", "disabled", "size"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
7202
+ `, isInline: true, components: [{ type: MonkeyFileUploadComponent, selector: "monkey-file-upload", inputs: ["name", "label", "helperMessage", "placeholder", "icon", "infoMessage", "uploadOngoingMessage", "errorMessage", "listenFiles", "maxSize", "allowedExtensions", "maxSizeErrorMessage", "allowedExtensionErrorMessage", "fileUpload", "multiple", "value"], outputs: ["onChange", "onHandleFilesReady"] }, { type: MonkeyButtonComponent, selector: "monkey-button", inputs: ["label", "icon", "iconPosition", "type", "color", "disabled", "size"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
7198
7203
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyImageCropComponent, decorators: [{
7199
7204
  type: Component,
7200
7205
  args: [{