@morozeckiy/dd-lib 0.8.1 → 0.8.3

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.
Files changed (96) hide show
  1. package/assets/scss/mixins.scss +10 -3
  2. package/fesm2022/morozeckiy-dd-lib.mjs +80 -20
  3. package/fesm2022/morozeckiy-dd-lib.mjs.map +1 -1
  4. package/index.d.ts +17 -2
  5. package/morozeckiy-dd-lib-0.8.3.tgz +0 -0
  6. package/package.json +1 -1
  7. package/lib/common/const.d.ts +0 -4
  8. package/lib/common/lib-common-button.d.ts +0 -21
  9. package/lib/common/lib-common-input-text.d.ts +0 -68
  10. package/lib/components/data-empty/data-empty.component.d.ts +0 -7
  11. package/lib/components/error-page/error-page.component.d.ts +0 -11
  12. package/lib/components/footer/footer-links-block/footer-link/footer-link.component.d.ts +0 -7
  13. package/lib/components/footer/footer-links-block/footer-links-block.component.d.ts +0 -7
  14. package/lib/components/footer/footer.component.d.ts +0 -30
  15. package/lib/components/index.d.ts +0 -8
  16. package/lib/components/main-shared/main-shared.component.d.ts +0 -9
  17. package/lib/components/not-found/not-found.component.d.ts +0 -11
  18. package/lib/components/tech-works/tech-works.component.d.ts +0 -11
  19. package/lib/core/dialog/dialog-config.d.ts +0 -14
  20. package/lib/core/dialog/dialog-container.component.d.ts +0 -18
  21. package/lib/core/dialog/dialog-ref.d.ts +0 -18
  22. package/lib/core/dialog/dialog.service.d.ts +0 -28
  23. package/lib/core/dialog/modal-base/modal-base.component.d.ts +0 -23
  24. package/lib/core/dialog/modal-common.component.d.ts +0 -6
  25. package/lib/core/dialog/modal-question/modal-question.component.d.ts +0 -15
  26. package/lib/core/directives/auto-height.directive.d.ts +0 -11
  27. package/lib/core/directives/ban-symbol.directive.d.ts +0 -9
  28. package/lib/core/directives/click-outside.directive.d.ts +0 -15
  29. package/lib/core/directives/counter.directive.d.ts +0 -14
  30. package/lib/core/directives/declension.directive.d.ts +0 -13
  31. package/lib/core/directives/drop-down-position.directive.d.ts +0 -17
  32. package/lib/core/directives/fixed-position.directive.d.ts +0 -23
  33. package/lib/core/directives/list-keyboard-navigation.directive.d.ts +0 -11
  34. package/lib/core/directives/max-num.directive.d.ts +0 -12
  35. package/lib/core/directives/phone-mask.directive.d.ts +0 -10
  36. package/lib/core/directives/resize-textarea.directive.d.ts +0 -12
  37. package/lib/core/directives/selectable-item.directive.d.ts +0 -18
  38. package/lib/core/directives/triangle.directive.d.ts +0 -16
  39. package/lib/core/directives/view-port-height.directive.d.ts +0 -15
  40. package/lib/core/index.d.ts +0 -33
  41. package/lib/core/pipes/filter.pipe.d.ts +0 -14
  42. package/lib/core/pipes/highlight.pipe.d.ts +0 -7
  43. package/lib/core/pipes/reverse.pipe.d.ts +0 -7
  44. package/lib/core/pipes/safe.pipe.d.ts +0 -10
  45. package/lib/core/pipes/sort-by-val.pipe.d.ts +0 -11
  46. package/lib/core/services/date.service.d.ts +0 -43
  47. package/lib/core/services/destroy.service.d.ts +0 -11
  48. package/lib/core/services/fetcher.service.d.ts +0 -57
  49. package/lib/core/services/interceptors.service.d.ts +0 -12
  50. package/lib/core/services/svg-icons.service.d.ts +0 -9
  51. package/lib/core/services/theme-constructor.service.d.ts +0 -28
  52. package/lib/core/services/validators.service.d.ts +0 -18
  53. package/lib/core/toast/index.d.ts +0 -4
  54. package/lib/core/toast/toast/toast-animations.d.ts +0 -5
  55. package/lib/core/toast/toast/toast.component.d.ts +0 -22
  56. package/lib/core/toast/toast-config.d.ts +0 -26
  57. package/lib/core/toast/toast-ref.d.ts +0 -8
  58. package/lib/core/toast/toast.service.d.ts +0 -23
  59. package/lib/core/tooltip/tooltip.component.d.ts +0 -12
  60. package/lib/core/tooltip/tooltip.directive.d.ts +0 -24
  61. package/lib/lib-accordion/lib-accordion.component.d.ts +0 -9
  62. package/lib/lib-back-button/lib-back-button.component.d.ts +0 -13
  63. package/lib/lib-button/lib-button.component.d.ts +0 -10
  64. package/lib/lib-calendar/lib-calendar.component.d.ts +0 -59
  65. package/lib/lib-card/lib-card.component.d.ts +0 -16
  66. package/lib/lib-checkbox/lib-checkbox.component.d.ts +0 -26
  67. package/lib/lib-comment-input/lib-comment-input.component.d.ts +0 -11
  68. package/lib/lib-date-input/lib-date-input.component.d.ts +0 -30
  69. package/lib/lib-date-range/lib-date-range.component.d.ts +0 -49
  70. package/lib/lib-disclaimer/lib-disclaimer.component.d.ts +0 -10
  71. package/lib/lib-file-loader/lib-file-loader.component.d.ts +0 -30
  72. package/lib/lib-file-upload/lib-file-upload.component.d.ts +0 -14
  73. package/lib/lib-filter/lib-filter.component.d.ts +0 -12
  74. package/lib/lib-filter-button/lib-filter-button.component.d.ts +0 -14
  75. package/lib/lib-horizontal-scroll/lib-horizontal-scroll.component.d.ts +0 -30
  76. package/lib/lib-image-loader/lib-image-loader.component.d.ts +0 -9
  77. package/lib/lib-info-card/lib-info-card.component.d.ts +0 -12
  78. package/lib/lib-input/lib-input.component.d.ts +0 -28
  79. package/lib/lib-loader/lib-loader.component.d.ts +0 -8
  80. package/lib/lib-radio/lib-radio.component.d.ts +0 -27
  81. package/lib/lib-search-input/lib-search-input.component.d.ts +0 -39
  82. package/lib/lib-select/lib-select.component.d.ts +0 -96
  83. package/lib/lib-skeleton/lib-skeleton.component.d.ts +0 -16
  84. package/lib/lib-sort/lib-sort.component.d.ts +0 -18
  85. package/lib/lib-step/lib-step.component.d.ts +0 -7
  86. package/lib/lib-svg/lib-svg.component.d.ts +0 -41
  87. package/lib/lib-svg-icon/lib-svg-icon.component.d.ts +0 -18
  88. package/lib/lib-svg-viewer/lib-svg-viewer.component.d.ts +0 -39
  89. package/lib/lib-tabs-fragment/lib-tabs-fragment.component.d.ts +0 -42
  90. package/lib/lib-textarea/lib-textarea.component.d.ts +0 -16
  91. package/lib/svg-icons/svg-icon.model.d.ts +0 -588
  92. package/lib/utils/decorators.d.ts +0 -4
  93. package/morozeckiy-dd-lib-0.7.120.tgz +0 -0
  94. package/morozeckiy-dd-lib-0.8.0.tgz +0 -0
  95. package/morozeckiy-dd-lib-0.8.1.tgz +0 -0
  96. package/public-api.d.ts +0 -37
@@ -61,9 +61,16 @@
61
61
  );
62
62
 
63
63
  @each $ext in $exts {
64
- $extmod: if(map-has-key($extmods, $ext), $ext + map-get($extmods, $ext), $ext);
65
- $format: if(map-has-key($formats, $ext), map-get($formats, $ext), $ext);
66
- $src: append($src, url(quote($path + '.' + $extmod)) format(quote($format)), comma);
64
+ @if map-has-key($extmods, $ext) {
65
+ $extmod: $ext + map-get($extmods, $ext);
66
+ } @else {
67
+ $extmod: $ext;
68
+ }
69
+ @if map-has-key($formats, $ext) {
70
+ $format: map-get($formats, $ext);
71
+ } @else {
72
+ $format: $ext;
73
+ }
67
74
  }
68
75
 
69
76
  @font-face {
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { EventEmitter, Output, ViewChild, Input, Component, Injectable, InjectionToken, inject, Inject, Pipe, Directive, HostListener, numberAttribute, TemplateRef, ChangeDetectionStrategy, Injector, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, forwardRef, Optional, ElementRef, Host, SkipSelf, signal, effect, input } from '@angular/core';
3
3
  import * as i1$4 from '@angular/forms';
4
- import { Validators, FormsModule, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
4
+ import { Validators, NG_VALIDATORS, FormsModule, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
5
5
  import { BehaviorSubject, Subject, throwError, fromEvent, of, combineLatest } from 'rxjs';
6
6
  import { format, parse, isAfter, isBefore, isValid } from 'date-fns';
7
7
  import * as i1$5 from '@angular/common/http';
@@ -1546,6 +1546,70 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
1546
1546
  args: ['window:orientationchange', ['$event']]
1547
1547
  }] } });
1548
1548
 
1549
+ class ToUpperCaseDirective {
1550
+ constructor(el) {
1551
+ this.el = el;
1552
+ }
1553
+ onInput(event) {
1554
+ const inputElement = event.target;
1555
+ const startPos = inputElement.selectionStart;
1556
+ const endPos = inputElement.selectionEnd;
1557
+ inputElement.value = inputElement.value?.toUpperCase() || '';
1558
+ inputElement.setSelectionRange(startPos, endPos);
1559
+ inputElement.dispatchEvent(new Event('input'));
1560
+ }
1561
+ onBlur() {
1562
+ this.el.nativeElement.value = this.el.nativeElement?.value?.toUpperCase() || '';
1563
+ }
1564
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ToUpperCaseDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1565
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: ToUpperCaseDirective, isStandalone: true, selector: "[ddToUpperCase]", host: { listeners: { "input": "onInput($event)", "blur": "onBlur()" } }, ngImport: i0 }); }
1566
+ }
1567
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ToUpperCaseDirective, decorators: [{
1568
+ type: Directive,
1569
+ args: [{
1570
+ selector: '[ddToUpperCase]'
1571
+ }]
1572
+ }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { onInput: [{
1573
+ type: HostListener,
1574
+ args: ['input', ['$event']]
1575
+ }], onBlur: [{
1576
+ type: HostListener,
1577
+ args: ['blur']
1578
+ }] } });
1579
+
1580
+ class BusNumberPatternDirective {
1581
+ validate(control) {
1582
+ const normalCarNumberPattern = new RegExp('^[ABEKMHOPCTYXАВЕКМНОРСТУХ]{1}[0-9]{3}[ABEKMHOPCTYXАВЕКМНОРСТУХ]{2}[0-9]{2,3}$');
1583
+ const taxiCarNumberPattern = new RegExp('^[ABEKMHOPCTYXАВЕКМНОРСТУХ]{2}[0-9]{3}[0-9]{2,3}$');
1584
+ const microBusNumberPattern = new RegExp('^[ABEKMHOPCTYXАВЕКМНОРСТУХ]{2}[0-9]{3}[ABEKMHOPCTYXАВЕКМНОРСТУХ]{1}[0-9]{2,3}$');
1585
+ const busCarNumberPattern = new RegExp('^[ABEKMHOPCTYXАВЕКМНОРСТУХ]{2}[0-9]{4}[0-9]{2,3}$');
1586
+ const electroBus = new RegExp('^[0-9]{4}');
1587
+ if (!control.value || electroBus.test(control.value) || normalCarNumberPattern.test(control.value) || taxiCarNumberPattern.test(control.value) || microBusNumberPattern.test(control.value) || busCarNumberPattern.test(control.value)) {
1588
+ return null;
1589
+ }
1590
+ else {
1591
+ return { busNum: 'X000XX123 XX000123 XX000X123 XX0000123' };
1592
+ }
1593
+ }
1594
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BusNumberPatternDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1595
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: BusNumberPatternDirective, isStandalone: true, selector: "[ddBusNumberPattern]", providers: [{
1596
+ provide: NG_VALIDATORS,
1597
+ useExisting: BusNumberPatternDirective,
1598
+ multi: true
1599
+ }], ngImport: i0 }); }
1600
+ }
1601
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BusNumberPatternDirective, decorators: [{
1602
+ type: Directive,
1603
+ args: [{
1604
+ selector: '[ddBusNumberPattern]',
1605
+ providers: [{
1606
+ provide: NG_VALIDATORS,
1607
+ useExisting: BusNumberPatternDirective,
1608
+ multi: true
1609
+ }]
1610
+ }]
1611
+ }] });
1612
+
1549
1613
  class ToastTypeData {
1550
1614
  }
1551
1615
  class ToastData extends ToastTypeData {
@@ -2845,19 +2909,12 @@ class LibCalendarComponent {
2845
2909
  selectDay(day) {
2846
2910
  if (!this.checkHideDay(day)) {
2847
2911
  if (!this.rangeMode) {
2848
- // if (!this.dateStart) {
2849
- // this.dateStart = new Date(this.year, this.month, day);
2850
- // } else {
2851
- // const eDate = new Date(this.year, this.month, day);
2852
- // if (this.dateStart > eDate) {
2853
- // this.dateEnd = undefined;
2854
- // this.dateStart = eDate;
2855
- // } else {
2856
- // this.dateEnd = eDate;
2857
- // }
2858
- // }
2859
- // } else {
2860
- this.dateValue = new Date(this.year, this.month, day);
2912
+ const newDate = new Date(this.year, this.month, day);
2913
+ // Если время уже было установлено в полях ввода, применяем его
2914
+ if (this.hours && this.minutes) {
2915
+ newDate.setHours(+this.hours, +this.minutes);
2916
+ }
2917
+ this.dateValue = newDate;
2861
2918
  }
2862
2919
  }
2863
2920
  this.immediatelyEmitDate.emit(new Date(this.year, this.month, day));
@@ -3439,7 +3496,6 @@ class LibSearchInputComponent extends LibCommonInputTextComponent {
3439
3496
  super.handleBlur();
3440
3497
  this.errorText = ValidatorsService.getErrorText(this.control?.errors);
3441
3498
  this.changeDetection.detectChanges();
3442
- console.log(this.control);
3443
3499
  }
3444
3500
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LibSearchInputComponent, deps: [{ token: i0.DestroyRef }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$4.ControlContainer, host: true, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component }); }
3445
3501
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: LibSearchInputComponent, isStandalone: true, selector: "dd-lib-search-input", inputs: { splitTitle: "splitTitle", keyTitle: "keyTitle", keyDesc: "keyDesc", keyValue: "keyValue", styleInput: "styleInput", inputStyle: "inputStyle", searchData: "searchData", debounceTime: "debounceTime", delay: "delay", idClose: "idClose", loaded$: "loaded$" }, outputs: { keyupEvent: "keyupEvent", selectedItem: "selectedItem" }, host: { listeners: { "window:resize": "onWindowScroll()", "window:scroll": "onWindowScroll()" } }, providers: [
@@ -4961,12 +5017,16 @@ class LibDateInputComponent {
4961
5017
  setPeriod($event) {
4962
5018
  this.isShownCalendar = false;
4963
5019
  if ($event) {
4964
- this.selectedDateStr = `${format($event, 'dd.MM.yyyy')}`;
5020
+ this.selectedDateStr = `${format($event, (this.needTime ? 'dd.MM.yyyy HH:mm' : 'dd.MM.yyyy'))}`;
4965
5021
  }
4966
5022
  else {
4967
5023
  this.selectedDate = undefined;
4968
5024
  this.selectedDateStr = undefined;
4969
5025
  }
5026
+ console.log('ПЕРЕД propagateChange:');
5027
+ console.log('1. $event =', $event, 'время =', $event?.getHours?.() + ':' + $event?.getMinutes?.());
5028
+ console.log('2. this.selectedDate =', this.selectedDate, 'время =', this.selectedDate?.getHours?.() + ':' + this.selectedDate?.getMinutes?.());
5029
+ console.log('3. this ===', this);
4970
5030
  this.propagateChange(this.selectedDate);
4971
5031
  }
4972
5032
  changeStrDate($event) {
@@ -4990,7 +5050,7 @@ class LibDateInputComponent {
4990
5050
  writeValue($event) {
4991
5051
  this.selectedDate = $event;
4992
5052
  if ($event) {
4993
- this.selectedDateStr = `${format($event, 'dd.MM.yyyy')}`;
5053
+ this.selectedDateStr = `${format($event, (this.needTime ? 'dd.MM.yyyy HH:mm' : 'dd.MM.yyyy'))}`;
4994
5054
  }
4995
5055
  this.cdr.detectChanges();
4996
5056
  }
@@ -5002,7 +5062,7 @@ class LibDateInputComponent {
5002
5062
  useExisting: forwardRef(() => LibDateInputComponent),
5003
5063
  multi: true,
5004
5064
  },
5005
- ], ngImport: i0, template: "<div class=\"lib-date\" id=\"lib-date-{{ dateId }}\">\r\n @if (label) {\r\n <label [for]=\"dateId\" class=\"lib-date__title\">\r\n {{ label }}\r\n @if (required) {\r\n <dd-lib-svg-icon icon=\"error_hint\"></dd-lib-svg-icon>\r\n }\r\n </label>\r\n }\r\n <div class=\"pos-relative\">\r\n <input\r\n [attr.id]=\"dateId\"\r\n [attr.placeholder]=\"placeholder\"\r\n (click)=\"openCalendar()\"\r\n [(ngModel)]=\"selectedDateStr\"\r\n [mask]=\"'d0.M0.0000'\"\r\n (ngModelChange)=\"changeStrDate($event)\"\r\n [leadZeroDateTime]=\"true\"\r\n class=\"text-select\"/>\r\n @if (!selectedDateStr) {\r\n <dd-lib-svg-icon [class.gray-svg]=\"!isShownCalendar\"\r\n (click)=\"openCalendar()\"\r\n id=\"calendar-{{ dateId }}\"\r\n class=\"calendar\" icon=\"calendar\"></dd-lib-svg-icon>\r\n\r\n\r\n } @else {\r\n <dd-lib-svg-icon\r\n (click)=\"setPeriod(undefined)\"\r\n class=\"clear\"\r\n icon=\"clear\"></dd-lib-svg-icon>\r\n\r\n }\r\n </div>\r\n @if (isShownCalendar) {\r\n <div\r\n (ddClickOutside)=\"closeCalendar()\"\r\n [elements]=\"['lib-date-' + dateId, 'calendar' + dateId]\"\r\n class=\"calendar-wrapper\" [ngClass]=\"{top: topSide}\">\r\n <dd-lib-calendar [(ngModel)]=\"selectedDate\"\r\n [needTime]=\"needTime\"\r\n (emitDate)=\"setPeriod($event)\"></dd-lib-calendar>\r\n </div>\r\n }\r\n</div>\r\n", styles: [".lib-date{min-width:340px;position:relative}.lib-date input{width:100%;height:48px;padding:15px 28px 15px 16px;overflow:hidden;text-overflow:ellipsis;border-radius:8px;border:1px solid var(--input-border-color);background-color:transparent;position:relative}.lib-date input:hover{border-color:var(--input-active-border-colort)}.lib-date input:focus{border-color:var(--input-active-border-colort);box-shadow:var(--input-active-border-shadow)}.lib-date input:disabled{border:none;background-color:var(--input-disable-input);color:var(--input-disable-text);pointer-events:none}.lib-date input:disabled::placeholder{color:var(--input-placeholder)}.lib-date input.invalid,.lib-date input.invalid:hover{border-color:var(--input-error-border-color)}.lib-date input.invalid:focus{border-color:var(--input-error-border-color);box-shadow:var(--input-error-border-shadow)}.lib-date .clear{cursor:pointer;position:absolute;right:8px;top:12px}.lib-date .calendar{cursor:pointer;position:absolute;right:16px;top:10px}.lib-date .calendar.up{transform:rotate(180deg)}.lib-date__title{margin-bottom:4px;font-size:14px;line-height:24px;display:flex;align-items:flex-start}.lib-date__error{color:var(--primary-red-color);font-size:12px;font-weight:400;line-height:10px;margin-top:2px;position:absolute}.lib-date .calendar-wrapper{max-width:350px;position:absolute;display:block;z-index:100;width:100%;overflow:auto;border-radius:8px;box-shadow:var(--main-card-shadow);background-color:var(--main-card-color)}.lib-date .calendar-wrapper.top{bottom:48px}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: LibSvgIconComponent, selector: "dd-lib-svg-icon", inputs: ["width", "height", "color", "icon"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[ddClickOutside]", inputs: ["elements", "ignoreOnDrag"], outputs: ["ddClickOutside"] }, { kind: "component", type: LibCalendarComponent, selector: "dd-lib-calendar", inputs: ["type", "formatDate", "formatTime", "rangeMode", "rangeModeFullPeriod", "maxHours", "maxMinutes", "needTime", "mode", "dateStart", "dateEnd", "maxDate", "minDate"], outputs: ["emitDate", "immediatelyEmitDate", "emitPeriod"] }, { kind: "directive", type: NgxMaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime", "leadZero", "triggerOnMaskChange", "apm", "inputTransformFn", "outputTransformFn", "keepCharacterPositions", "instantPrefix", "value", "errors", "disabled", "touched", "dirty", "invalid", "pending", "readonly", "required", "name"], outputs: ["valueChange", "touchedChange", "maskFilled"], exportAs: ["mask", "ngxMask"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5065
+ ], ngImport: i0, template: "<div class=\"lib-date\" id=\"lib-date-{{ dateId }}\">\r\n @if (label) {\r\n <label [for]=\"dateId\" class=\"lib-date__title\">\r\n {{ label }}\r\n @if (required) {\r\n <dd-lib-svg-icon icon=\"error_hint\"></dd-lib-svg-icon>\r\n }\r\n </label>\r\n }\r\n <div class=\"pos-relative\">\r\n <input\r\n [attr.id]=\"dateId\"\r\n [attr.placeholder]=\"placeholder\"\r\n (click)=\"openCalendar()\"\r\n [(ngModel)]=\"selectedDateStr\"\r\n [mask]=\"needTime ? 'd0.M0.0000 Hh:m0' : 'd0.M0.0000'\"\r\n (ngModelChange)=\"changeStrDate($event)\"\r\n [leadZeroDateTime]=\"!needTime\"\r\n class=\"text-select\"/>\r\n @if (!selectedDateStr) {\r\n <dd-lib-svg-icon [class.gray-svg]=\"!isShownCalendar\"\r\n (click)=\"openCalendar()\"\r\n id=\"calendar-{{ dateId }}\"\r\n class=\"calendar\" icon=\"calendar\"></dd-lib-svg-icon>\r\n\r\n\r\n } @else {\r\n <dd-lib-svg-icon\r\n (click)=\"setPeriod(undefined)\"\r\n class=\"clear\"\r\n icon=\"clear\"></dd-lib-svg-icon>\r\n\r\n }\r\n </div>\r\n @if (isShownCalendar) {\r\n <div\r\n (ddClickOutside)=\"closeCalendar()\"\r\n [elements]=\"['lib-date-' + dateId, 'calendar' + dateId]\"\r\n class=\"calendar-wrapper\" [ngClass]=\"{top: topSide}\">\r\n <dd-lib-calendar [(ngModel)]=\"selectedDate\"\r\n [needTime]=\"needTime\"\r\n (emitDate)=\"setPeriod($event)\"></dd-lib-calendar>\r\n </div>\r\n }\r\n</div>\r\n", styles: [".lib-date{min-width:340px;position:relative}.lib-date input{width:100%;height:48px;padding:15px 28px 15px 16px;overflow:hidden;text-overflow:ellipsis;border-radius:8px;border:1px solid var(--input-border-color);background-color:transparent;position:relative}.lib-date input:hover{border-color:var(--input-active-border-colort)}.lib-date input:focus{border-color:var(--input-active-border-colort);box-shadow:var(--input-active-border-shadow)}.lib-date input:disabled{border:none;background-color:var(--input-disable-input);color:var(--input-disable-text);pointer-events:none}.lib-date input:disabled::placeholder{color:var(--input-placeholder)}.lib-date input.invalid,.lib-date input.invalid:hover{border-color:var(--input-error-border-color)}.lib-date input.invalid:focus{border-color:var(--input-error-border-color);box-shadow:var(--input-error-border-shadow)}.lib-date .clear{cursor:pointer;position:absolute;right:8px;top:12px}.lib-date .calendar{cursor:pointer;position:absolute;right:16px;top:10px}.lib-date .calendar.up{transform:rotate(180deg)}.lib-date__title{margin-bottom:4px;font-size:14px;line-height:24px;display:flex;align-items:flex-start}.lib-date__error{color:var(--primary-red-color);font-size:12px;font-weight:400;line-height:10px;margin-top:2px;position:absolute}.lib-date .calendar-wrapper{max-width:350px;position:absolute;display:block;z-index:100;width:100%;overflow:auto;border-radius:8px;box-shadow:var(--main-card-shadow);background-color:var(--main-card-color)}.lib-date .calendar-wrapper.top{bottom:48px}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: LibSvgIconComponent, selector: "dd-lib-svg-icon", inputs: ["width", "height", "color", "icon"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[ddClickOutside]", inputs: ["elements", "ignoreOnDrag"], outputs: ["ddClickOutside"] }, { kind: "component", type: LibCalendarComponent, selector: "dd-lib-calendar", inputs: ["type", "formatDate", "formatTime", "rangeMode", "rangeModeFullPeriod", "maxHours", "maxMinutes", "needTime", "mode", "dateStart", "dateEnd", "maxDate", "minDate"], outputs: ["emitDate", "immediatelyEmitDate", "emitPeriod"] }, { kind: "directive", type: NgxMaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime", "leadZero", "triggerOnMaskChange", "apm", "inputTransformFn", "outputTransformFn", "keepCharacterPositions", "instantPrefix", "value", "errors", "disabled", "touched", "dirty", "invalid", "pending", "readonly", "required", "name"], outputs: ["valueChange", "touchedChange", "maskFilled"], exportAs: ["mask", "ngxMask"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5006
5066
  }
5007
5067
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LibDateInputComponent, decorators: [{
5008
5068
  type: Component,
@@ -5020,7 +5080,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
5020
5080
  useExisting: forwardRef(() => LibDateInputComponent),
5021
5081
  multi: true,
5022
5082
  },
5023
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"lib-date\" id=\"lib-date-{{ dateId }}\">\r\n @if (label) {\r\n <label [for]=\"dateId\" class=\"lib-date__title\">\r\n {{ label }}\r\n @if (required) {\r\n <dd-lib-svg-icon icon=\"error_hint\"></dd-lib-svg-icon>\r\n }\r\n </label>\r\n }\r\n <div class=\"pos-relative\">\r\n <input\r\n [attr.id]=\"dateId\"\r\n [attr.placeholder]=\"placeholder\"\r\n (click)=\"openCalendar()\"\r\n [(ngModel)]=\"selectedDateStr\"\r\n [mask]=\"'d0.M0.0000'\"\r\n (ngModelChange)=\"changeStrDate($event)\"\r\n [leadZeroDateTime]=\"true\"\r\n class=\"text-select\"/>\r\n @if (!selectedDateStr) {\r\n <dd-lib-svg-icon [class.gray-svg]=\"!isShownCalendar\"\r\n (click)=\"openCalendar()\"\r\n id=\"calendar-{{ dateId }}\"\r\n class=\"calendar\" icon=\"calendar\"></dd-lib-svg-icon>\r\n\r\n\r\n } @else {\r\n <dd-lib-svg-icon\r\n (click)=\"setPeriod(undefined)\"\r\n class=\"clear\"\r\n icon=\"clear\"></dd-lib-svg-icon>\r\n\r\n }\r\n </div>\r\n @if (isShownCalendar) {\r\n <div\r\n (ddClickOutside)=\"closeCalendar()\"\r\n [elements]=\"['lib-date-' + dateId, 'calendar' + dateId]\"\r\n class=\"calendar-wrapper\" [ngClass]=\"{top: topSide}\">\r\n <dd-lib-calendar [(ngModel)]=\"selectedDate\"\r\n [needTime]=\"needTime\"\r\n (emitDate)=\"setPeriod($event)\"></dd-lib-calendar>\r\n </div>\r\n }\r\n</div>\r\n", styles: [".lib-date{min-width:340px;position:relative}.lib-date input{width:100%;height:48px;padding:15px 28px 15px 16px;overflow:hidden;text-overflow:ellipsis;border-radius:8px;border:1px solid var(--input-border-color);background-color:transparent;position:relative}.lib-date input:hover{border-color:var(--input-active-border-colort)}.lib-date input:focus{border-color:var(--input-active-border-colort);box-shadow:var(--input-active-border-shadow)}.lib-date input:disabled{border:none;background-color:var(--input-disable-input);color:var(--input-disable-text);pointer-events:none}.lib-date input:disabled::placeholder{color:var(--input-placeholder)}.lib-date input.invalid,.lib-date input.invalid:hover{border-color:var(--input-error-border-color)}.lib-date input.invalid:focus{border-color:var(--input-error-border-color);box-shadow:var(--input-error-border-shadow)}.lib-date .clear{cursor:pointer;position:absolute;right:8px;top:12px}.lib-date .calendar{cursor:pointer;position:absolute;right:16px;top:10px}.lib-date .calendar.up{transform:rotate(180deg)}.lib-date__title{margin-bottom:4px;font-size:14px;line-height:24px;display:flex;align-items:flex-start}.lib-date__error{color:var(--primary-red-color);font-size:12px;font-weight:400;line-height:10px;margin-top:2px;position:absolute}.lib-date .calendar-wrapper{max-width:350px;position:absolute;display:block;z-index:100;width:100%;overflow:auto;border-radius:8px;box-shadow:var(--main-card-shadow);background-color:var(--main-card-color)}.lib-date .calendar-wrapper.top{bottom:48px}\n"] }]
5083
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"lib-date\" id=\"lib-date-{{ dateId }}\">\r\n @if (label) {\r\n <label [for]=\"dateId\" class=\"lib-date__title\">\r\n {{ label }}\r\n @if (required) {\r\n <dd-lib-svg-icon icon=\"error_hint\"></dd-lib-svg-icon>\r\n }\r\n </label>\r\n }\r\n <div class=\"pos-relative\">\r\n <input\r\n [attr.id]=\"dateId\"\r\n [attr.placeholder]=\"placeholder\"\r\n (click)=\"openCalendar()\"\r\n [(ngModel)]=\"selectedDateStr\"\r\n [mask]=\"needTime ? 'd0.M0.0000 Hh:m0' : 'd0.M0.0000'\"\r\n (ngModelChange)=\"changeStrDate($event)\"\r\n [leadZeroDateTime]=\"!needTime\"\r\n class=\"text-select\"/>\r\n @if (!selectedDateStr) {\r\n <dd-lib-svg-icon [class.gray-svg]=\"!isShownCalendar\"\r\n (click)=\"openCalendar()\"\r\n id=\"calendar-{{ dateId }}\"\r\n class=\"calendar\" icon=\"calendar\"></dd-lib-svg-icon>\r\n\r\n\r\n } @else {\r\n <dd-lib-svg-icon\r\n (click)=\"setPeriod(undefined)\"\r\n class=\"clear\"\r\n icon=\"clear\"></dd-lib-svg-icon>\r\n\r\n }\r\n </div>\r\n @if (isShownCalendar) {\r\n <div\r\n (ddClickOutside)=\"closeCalendar()\"\r\n [elements]=\"['lib-date-' + dateId, 'calendar' + dateId]\"\r\n class=\"calendar-wrapper\" [ngClass]=\"{top: topSide}\">\r\n <dd-lib-calendar [(ngModel)]=\"selectedDate\"\r\n [needTime]=\"needTime\"\r\n (emitDate)=\"setPeriod($event)\"></dd-lib-calendar>\r\n </div>\r\n }\r\n</div>\r\n", styles: [".lib-date{min-width:340px;position:relative}.lib-date input{width:100%;height:48px;padding:15px 28px 15px 16px;overflow:hidden;text-overflow:ellipsis;border-radius:8px;border:1px solid var(--input-border-color);background-color:transparent;position:relative}.lib-date input:hover{border-color:var(--input-active-border-colort)}.lib-date input:focus{border-color:var(--input-active-border-colort);box-shadow:var(--input-active-border-shadow)}.lib-date input:disabled{border:none;background-color:var(--input-disable-input);color:var(--input-disable-text);pointer-events:none}.lib-date input:disabled::placeholder{color:var(--input-placeholder)}.lib-date input.invalid,.lib-date input.invalid:hover{border-color:var(--input-error-border-color)}.lib-date input.invalid:focus{border-color:var(--input-error-border-color);box-shadow:var(--input-error-border-shadow)}.lib-date .clear{cursor:pointer;position:absolute;right:8px;top:12px}.lib-date .calendar{cursor:pointer;position:absolute;right:16px;top:10px}.lib-date .calendar.up{transform:rotate(180deg)}.lib-date__title{margin-bottom:4px;font-size:14px;line-height:24px;display:flex;align-items:flex-start}.lib-date__error{color:var(--primary-red-color);font-size:12px;font-weight:400;line-height:10px;margin-top:2px;position:absolute}.lib-date .calendar-wrapper{max-width:350px;position:absolute;display:block;z-index:100;width:100%;overflow:auto;border-radius:8px;box-shadow:var(--main-card-shadow);background-color:var(--main-card-color)}.lib-date .calendar-wrapper.top{bottom:48px}\n"] }]
5024
5084
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { topSide: [{
5025
5085
  type: Input
5026
5086
  }], dateId: [{
@@ -5923,5 +5983,5 @@ const t = true;
5923
5983
  * Generated bundle index. Do not edit.
5924
5984
  */
5925
5985
 
5926
- export { API_URL, AutoHeightDirective, ClickOutsideDirective, CounterDirective, DDDialogRef, DEFAULT_FORMAT, DIALOG_CONFIG, DataEmptyComponent, DateService, Debounce, DeclensionDirective, DestroyService, DialogConfig, DialogService, DisableAfterNCall, Disabled, DropDownPositionDirective, ErrorPageComponent, FetcherService, FilterByKeyPipe, FilterPipe, FixedPositionDirective, FooterComponent, FooterLinkComponent, FooterLinksBlockComponent, HighlightPipe, IDatePeriod, ITab, InterceptorsService, LibAccordionComponent, LibBackButtonComponent, LibButtonComponent, LibCalendarComponent, LibCardComponent, LibCheckboxComponent, LibCommentInputComponent, LibCommonButtonComponent, LibCommonInputTextComponent, LibDateInputComponent, LibDateRangeComponent, LibDisclaimerComponent, LibFileLoaderComponent, LibFileUploadComponent, LibFilterButtonComponent, LibFilterComponent, LibHorizontalScrollComponent, LibImageLoaderComponent, LibInfoCardComponent, LibInputComponent, LibLoaderComponent, LibRadioComponent, LibSearchInputComponent, LibSelectComponent, LibSkeletonComponent, LibSortComponent, LibStepComponent, LibSvgComponent, LibSvgIconComponent, LibSvgViewerComponent, LibTabsFragmentComponent, LibTextareaComponent, ListKeyboardNavigationDirective, MainSharedComponent, ModalBaseComponent, ModalCommonComponent, ModalQuestionComponent, NotFoundComponent, PhoneMaskDirective, ResizeTextareaDirective, ReversePipe, SafePipe, SelectableItemDirective, SortByValPipe, SvgIconsService, TOAST_CONFIG_TOKEN, TOOLTIP_DATA, TechWorksComponent, ThemeConfigurator, ThemeConstructorService, Throttle, ToastComponent, ToastConfig, ToastData, ToastRef, ToastService, ToastTypeData, TooltipComponent, TooltipDirective, TriangleDirective, ValidatorsService, VhHeightDirective, completeIconSet, defaultToastConfig, provideToast, svgIconActogoneAccept, svgIconAll, svgIconAppgalery, svgIconAppstore, svgIconArrowDownRed, svgIconArrowUpGreen, svgIconBackArrow, svgIconBurger, svgIconCalendar, svgIconCheckGreen, svgIconCheckWhite, svgIconCircleNo, svgIconClear, svgIconClose, svgIconDangerT, svgIconDd, svgIconDdM, svgIconDobrodel, svgIconDownChevron, svgIconDownload, svgIconEds, svgIconEds2, svgIconEds2M, svgIconEdsM, svgIconEntry, svgIconErrorHint, svgIconEsia, svgIconEye, svgIconEyeOff, svgIconFile, svgIconFilter, svgIconGoogleapp, svgIconGrid, svgIconHealth, svgIconHealthM, svgIconInfoCircle, svgIconInfoT, svgIconLeftChevron, svgIconListSearch, svgIconLogout, svgIconMailExclamation, svgIconMaxFilter, svgIconMoon, svgIconMy, svgIconMyM, svgIconNews, svgIconNext, svgIconPaperclip, svgIconPenEdit, svgIconPguMo, svgIconPguMoM, svgIconPlug, svgIconPlugD, svgIconPlus, svgIconPreset, svgIconPrev, svgIconPrint, svgIconPrinter, svgIconQuestion, svgIconQuestionWhiteG, svgIconRedClose, svgIconReload, svgIconRightChevron, svgIconRustore, svgIconSearch, svgIconSend, svgIconSetAvatar, svgIconSharedLogo, svgIconSmallRoundLoader, svgIconSort, svgIconStar, svgIconSuccessT, svgIconSun, svgIconTg, svgIconToggleArrowLeft, svgIconToggleArrowRight, svgIconTrash, svgIconTrophy, svgIconUser, svgIconUserEmpty, svgIconUserEmptyD, svgIconVk, svgIconWarningT, t };
5986
+ export { API_URL, AutoHeightDirective, BusNumberPatternDirective, ClickOutsideDirective, CounterDirective, DDDialogRef, DEFAULT_FORMAT, DIALOG_CONFIG, DataEmptyComponent, DateService, Debounce, DeclensionDirective, DestroyService, DialogConfig, DialogService, DisableAfterNCall, Disabled, DropDownPositionDirective, ErrorPageComponent, FetcherService, FilterByKeyPipe, FilterPipe, FixedPositionDirective, FooterComponent, FooterLinkComponent, FooterLinksBlockComponent, HighlightPipe, IDatePeriod, ITab, InterceptorsService, LibAccordionComponent, LibBackButtonComponent, LibButtonComponent, LibCalendarComponent, LibCardComponent, LibCheckboxComponent, LibCommentInputComponent, LibCommonButtonComponent, LibCommonInputTextComponent, LibDateInputComponent, LibDateRangeComponent, LibDisclaimerComponent, LibFileLoaderComponent, LibFileUploadComponent, LibFilterButtonComponent, LibFilterComponent, LibHorizontalScrollComponent, LibImageLoaderComponent, LibInfoCardComponent, LibInputComponent, LibLoaderComponent, LibRadioComponent, LibSearchInputComponent, LibSelectComponent, LibSkeletonComponent, LibSortComponent, LibStepComponent, LibSvgComponent, LibSvgIconComponent, LibSvgViewerComponent, LibTabsFragmentComponent, LibTextareaComponent, ListKeyboardNavigationDirective, MainSharedComponent, ModalBaseComponent, ModalCommonComponent, ModalQuestionComponent, NotFoundComponent, PhoneMaskDirective, ResizeTextareaDirective, ReversePipe, SafePipe, SelectableItemDirective, SortByValPipe, SvgIconsService, TOAST_CONFIG_TOKEN, TOOLTIP_DATA, TechWorksComponent, ThemeConfigurator, ThemeConstructorService, Throttle, ToUpperCaseDirective, ToastComponent, ToastConfig, ToastData, ToastRef, ToastService, ToastTypeData, TooltipComponent, TooltipDirective, TriangleDirective, ValidatorsService, VhHeightDirective, completeIconSet, defaultToastConfig, provideToast, svgIconActogoneAccept, svgIconAll, svgIconAppgalery, svgIconAppstore, svgIconArrowDownRed, svgIconArrowUpGreen, svgIconBackArrow, svgIconBurger, svgIconCalendar, svgIconCheckGreen, svgIconCheckWhite, svgIconCircleNo, svgIconClear, svgIconClose, svgIconDangerT, svgIconDd, svgIconDdM, svgIconDobrodel, svgIconDownChevron, svgIconDownload, svgIconEds, svgIconEds2, svgIconEds2M, svgIconEdsM, svgIconEntry, svgIconErrorHint, svgIconEsia, svgIconEye, svgIconEyeOff, svgIconFile, svgIconFilter, svgIconGoogleapp, svgIconGrid, svgIconHealth, svgIconHealthM, svgIconInfoCircle, svgIconInfoT, svgIconLeftChevron, svgIconListSearch, svgIconLogout, svgIconMailExclamation, svgIconMaxFilter, svgIconMoon, svgIconMy, svgIconMyM, svgIconNews, svgIconNext, svgIconPaperclip, svgIconPenEdit, svgIconPguMo, svgIconPguMoM, svgIconPlug, svgIconPlugD, svgIconPlus, svgIconPreset, svgIconPrev, svgIconPrint, svgIconPrinter, svgIconQuestion, svgIconQuestionWhiteG, svgIconRedClose, svgIconReload, svgIconRightChevron, svgIconRustore, svgIconSearch, svgIconSend, svgIconSetAvatar, svgIconSharedLogo, svgIconSmallRoundLoader, svgIconSort, svgIconStar, svgIconSuccessT, svgIconSun, svgIconTg, svgIconToggleArrowLeft, svgIconToggleArrowRight, svgIconTrash, svgIconTrophy, svgIconUser, svgIconUserEmpty, svgIconUserEmptyD, svgIconVk, svgIconWarningT, t };
5927
5987
  //# sourceMappingURL=morozeckiy-dd-lib.mjs.map