aeb-ui-kit 9.0.0-preview.1038 → 9.0.0-preview.1056

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.
@@ -643,7 +643,7 @@ class CodeInputComponent {
643
643
  useExisting: forwardRef(() => CodeInputComponent),
644
644
  multi: true
645
645
  }
646
- ], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<div class=\"aeb-code-input\">\n @if (title) {\n <h2 class=\"aeb-code-input__title\">{{ title }}</h2>\n }\n @if (tip) {\n <span class=\"aeb-code-input__tip\">{{ tip }}</span>\n }\n <div\n class=\"aeb-code-input__field-wrapper\"\n (click)=\"input.focus(); isFocus = true\"\n >\n <input\n class=\"aeb-code-input__field\"\n #input\n [maxLength]=\"codeLength\"\n [value]=\"inputValue\"\n inputmode=\"numeric\"\n [autofocus]=\"isAutofocus\"\n autocomplete=\"one-time-code\"\n pattern=\"[0-9]\"\n (blur)=\"handleBlur()\"\n (keypress)=\"numbersOnly($event)\"\n (input)=\"inputChangeHandler($event)\"\n />\n @for (value of [].constructor(codeLength); track value; let i = $index) {\n <span\n class=\"aeb-code-input__field-input\"\n [ngClass]=\"{\n 'aeb-code-input__field-input--active':\n inputValue.length === i && isFocus,\n 'aeb-code-input__field-input--has-error': hasError\n }\"\n >\n {{ arrayInputValue[i] }}\n <div\n [ngClass]=\"{\n 'aeb-code-input__field-input--caret':\n inputValue.length === i && isFocus\n }\"\n ></div>\n </span>\n }\n </div>\n <div class=\"aeb-code-input__text\">\n @if (hasError) {\n <span class=\"aeb-code-input__text-wrong\">\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434</span>\n }\n @if (showTimer) {\n <div class=\"aeb-code-input__text-wrapper\">\n <span class=\"aeb-code-input__text-info\"\n >\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u0443\u044E \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0443 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437\n </span>\n <span class=\"aeb-code-input__text-time\">{{ seconds$ | async }}</span>\n </div>\n }\n @if (showCodeText) {\n <span class=\"aeb-code-input__text-again\" (click)=\"resend()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E</span\n >\n }\n </div>\n</div>\n", styles: [".aeb-code-input{display:flex;flex-direction:column;align-items:center;width:632px;color:var(--color-mono-900);background-color:var(--color-mono-0)}@media screen and (max-width: 768px){.aeb-code-input{width:100%;box-sizing:border-box}}.aeb-code-input__field-wrapper{position:relative;display:flex;justify-content:center;gap:16px}@media screen and (max-width: 768px){.aeb-code-input__field-wrapper{gap:8px}}.aeb-code-input__field{position:absolute;width:100%;height:56px;box-sizing:border-box;background:transparent;border:none;color:transparent;outline:none;-webkit-user-select:none;user-select:none;caret-color:transparent;z-index:10;pointer-events:none}.aeb-code-input__field::selection{background:transparent}.aeb-code-input__field-input{width:51px;height:56px;display:flex;justify-content:center;align-items:center;border:var(--border-skinny) solid var(--color-mono-200);border-radius:var(--border-medium-rounded);box-sizing:border-box;font-size:var(--font-size-lm);cursor:text}@media screen and (max-width: 768px){.aeb-code-input__field-input{width:41px;height:45px}}.aeb-code-input__field-input--active{border:var(--border-skinny) solid var(--color-blue-500)}.aeb-code-input__field-input--has-error{border:var(--border-skinny) solid var(--color-red-500)}.aeb-code-input__field-input--caret{width:2px;height:20px;background-color:var(--color-blue-500);margin-right:15px;animation-name:flicker;animation-duration:1s;animation-iteration-count:infinite}@keyframes flicker{0%{opacity:0}to{opacity:1}}.aeb-code-input__title{width:fit-content;margin:0 0 40px;font-size:var(--font-size-l)}.aeb-code-input__tip{margin-bottom:40px;text-align:center}.aeb-code-input__text{display:flex;flex-direction:column;align-items:center;margin-top:24px;font-size:var(--font-size-s);line-height:20px}.aeb-code-input__text-wrapper{text-align:center}.aeb-code-input__text-info{color:var(--gray)}.aeb-code-input__text-time{color:var(--color-blue-500)}.aeb-code-input__text-again{color:var(--color-blue-500);cursor:pointer}.aeb-code-input__text-wrong{color:var(--color-red-500);margin-bottom:8px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
646
+ ], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<div class=\"aeb-code-input\">\n @if (title) {\n <h2 class=\"aeb-code-input__title\">{{ title }}</h2>\n }\n @if (tip) {\n <span class=\"aeb-code-input__tip\">{{ tip }}</span>\n }\n <div\n class=\"aeb-code-input__field-wrapper\"\n (click)=\"input.focus(); isFocus = true\"\n >\n <input\n class=\"aeb-code-input__field\"\n #input\n [maxLength]=\"codeLength\"\n [value]=\"inputValue\"\n inputmode=\"numeric\"\n [autofocus]=\"isAutofocus\"\n autocomplete=\"one-time-code\"\n pattern=\"[0-9]\"\n (blur)=\"handleBlur()\"\n (keypress)=\"numbersOnly($event)\"\n (input)=\"inputChangeHandler($event)\"\n />\n @for (value of [].constructor(codeLength); track $index) {\n <span\n class=\"aeb-code-input__field-input\"\n [ngClass]=\"{\n 'aeb-code-input__field-input--active':\n inputValue.length === $index && isFocus,\n 'aeb-code-input__field-input--has-error': hasError\n }\"\n >\n {{ arrayInputValue[$index] }}\n <div\n [ngClass]=\"{\n 'aeb-code-input__field-input--caret':\n inputValue.length === $index && isFocus\n }\"\n ></div>\n </span>\n }\n </div>\n <div class=\"aeb-code-input__text\">\n @if (hasError) {\n <span class=\"aeb-code-input__text-wrong\">\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434</span>\n }\n @if (showTimer) {\n <div class=\"aeb-code-input__text-wrapper\">\n <span class=\"aeb-code-input__text-info\"\n >\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u0443\u044E \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0443 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437\n </span>\n <span class=\"aeb-code-input__text-time\">{{ seconds$ | async }}</span>\n </div>\n }\n @if (showCodeText) {\n <span class=\"aeb-code-input__text-again\" (click)=\"resend()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E</span\n >\n }\n </div>\n</div>\n", styles: [".aeb-code-input{display:flex;flex-direction:column;align-items:center;width:632px;color:var(--color-mono-900);background-color:var(--color-mono-0)}@media screen and (max-width: 768px){.aeb-code-input{width:100%;box-sizing:border-box}}.aeb-code-input__field-wrapper{position:relative;display:flex;justify-content:center;gap:16px}@media screen and (max-width: 768px){.aeb-code-input__field-wrapper{gap:8px}}.aeb-code-input__field{position:absolute;width:100%;height:56px;box-sizing:border-box;background:transparent;border:none;color:transparent;outline:none;-webkit-user-select:none;user-select:none;caret-color:transparent;z-index:10;pointer-events:none}.aeb-code-input__field::selection{background:transparent}.aeb-code-input__field-input{width:51px;height:56px;display:flex;justify-content:center;align-items:center;border:var(--border-skinny) solid var(--color-mono-200);border-radius:var(--border-medium-rounded);box-sizing:border-box;font-size:var(--font-size-lm);cursor:text}@media screen and (max-width: 768px){.aeb-code-input__field-input{width:41px;height:45px}}.aeb-code-input__field-input--active{border:var(--border-skinny) solid var(--color-blue-500)}.aeb-code-input__field-input--has-error{border:var(--border-skinny) solid var(--color-red-500)}.aeb-code-input__field-input--caret{width:2px;height:20px;background-color:var(--color-blue-500);margin-right:15px;animation-name:flicker;animation-duration:1s;animation-iteration-count:infinite}@keyframes flicker{0%{opacity:0}to{opacity:1}}.aeb-code-input__title{width:fit-content;margin:0 0 40px;font-size:var(--font-size-l)}.aeb-code-input__tip{margin-bottom:40px;text-align:center}.aeb-code-input__text{display:flex;flex-direction:column;align-items:center;margin-top:24px;font-size:var(--font-size-s);line-height:20px}.aeb-code-input__text-wrapper{text-align:center}.aeb-code-input__text-info{color:var(--gray)}.aeb-code-input__text-time{color:var(--color-blue-500)}.aeb-code-input__text-again{color:var(--color-blue-500);cursor:pointer}.aeb-code-input__text-wrong{color:var(--color-red-500);margin-bottom:8px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
647
647
  }
648
648
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: CodeInputComponent, decorators: [{
649
649
  type: Component,
@@ -653,7 +653,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
653
653
  useExisting: forwardRef(() => CodeInputComponent),
654
654
  multi: true
655
655
  }
656
- ], encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"aeb-code-input\">\n @if (title) {\n <h2 class=\"aeb-code-input__title\">{{ title }}</h2>\n }\n @if (tip) {\n <span class=\"aeb-code-input__tip\">{{ tip }}</span>\n }\n <div\n class=\"aeb-code-input__field-wrapper\"\n (click)=\"input.focus(); isFocus = true\"\n >\n <input\n class=\"aeb-code-input__field\"\n #input\n [maxLength]=\"codeLength\"\n [value]=\"inputValue\"\n inputmode=\"numeric\"\n [autofocus]=\"isAutofocus\"\n autocomplete=\"one-time-code\"\n pattern=\"[0-9]\"\n (blur)=\"handleBlur()\"\n (keypress)=\"numbersOnly($event)\"\n (input)=\"inputChangeHandler($event)\"\n />\n @for (value of [].constructor(codeLength); track value; let i = $index) {\n <span\n class=\"aeb-code-input__field-input\"\n [ngClass]=\"{\n 'aeb-code-input__field-input--active':\n inputValue.length === i && isFocus,\n 'aeb-code-input__field-input--has-error': hasError\n }\"\n >\n {{ arrayInputValue[i] }}\n <div\n [ngClass]=\"{\n 'aeb-code-input__field-input--caret':\n inputValue.length === i && isFocus\n }\"\n ></div>\n </span>\n }\n </div>\n <div class=\"aeb-code-input__text\">\n @if (hasError) {\n <span class=\"aeb-code-input__text-wrong\">\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434</span>\n }\n @if (showTimer) {\n <div class=\"aeb-code-input__text-wrapper\">\n <span class=\"aeb-code-input__text-info\"\n >\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u0443\u044E \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0443 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437\n </span>\n <span class=\"aeb-code-input__text-time\">{{ seconds$ | async }}</span>\n </div>\n }\n @if (showCodeText) {\n <span class=\"aeb-code-input__text-again\" (click)=\"resend()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E</span\n >\n }\n </div>\n</div>\n", styles: [".aeb-code-input{display:flex;flex-direction:column;align-items:center;width:632px;color:var(--color-mono-900);background-color:var(--color-mono-0)}@media screen and (max-width: 768px){.aeb-code-input{width:100%;box-sizing:border-box}}.aeb-code-input__field-wrapper{position:relative;display:flex;justify-content:center;gap:16px}@media screen and (max-width: 768px){.aeb-code-input__field-wrapper{gap:8px}}.aeb-code-input__field{position:absolute;width:100%;height:56px;box-sizing:border-box;background:transparent;border:none;color:transparent;outline:none;-webkit-user-select:none;user-select:none;caret-color:transparent;z-index:10;pointer-events:none}.aeb-code-input__field::selection{background:transparent}.aeb-code-input__field-input{width:51px;height:56px;display:flex;justify-content:center;align-items:center;border:var(--border-skinny) solid var(--color-mono-200);border-radius:var(--border-medium-rounded);box-sizing:border-box;font-size:var(--font-size-lm);cursor:text}@media screen and (max-width: 768px){.aeb-code-input__field-input{width:41px;height:45px}}.aeb-code-input__field-input--active{border:var(--border-skinny) solid var(--color-blue-500)}.aeb-code-input__field-input--has-error{border:var(--border-skinny) solid var(--color-red-500)}.aeb-code-input__field-input--caret{width:2px;height:20px;background-color:var(--color-blue-500);margin-right:15px;animation-name:flicker;animation-duration:1s;animation-iteration-count:infinite}@keyframes flicker{0%{opacity:0}to{opacity:1}}.aeb-code-input__title{width:fit-content;margin:0 0 40px;font-size:var(--font-size-l)}.aeb-code-input__tip{margin-bottom:40px;text-align:center}.aeb-code-input__text{display:flex;flex-direction:column;align-items:center;margin-top:24px;font-size:var(--font-size-s);line-height:20px}.aeb-code-input__text-wrapper{text-align:center}.aeb-code-input__text-info{color:var(--gray)}.aeb-code-input__text-time{color:var(--color-blue-500)}.aeb-code-input__text-again{color:var(--color-blue-500);cursor:pointer}.aeb-code-input__text-wrong{color:var(--color-red-500);margin-bottom:8px}\n"] }]
656
+ ], encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"aeb-code-input\">\n @if (title) {\n <h2 class=\"aeb-code-input__title\">{{ title }}</h2>\n }\n @if (tip) {\n <span class=\"aeb-code-input__tip\">{{ tip }}</span>\n }\n <div\n class=\"aeb-code-input__field-wrapper\"\n (click)=\"input.focus(); isFocus = true\"\n >\n <input\n class=\"aeb-code-input__field\"\n #input\n [maxLength]=\"codeLength\"\n [value]=\"inputValue\"\n inputmode=\"numeric\"\n [autofocus]=\"isAutofocus\"\n autocomplete=\"one-time-code\"\n pattern=\"[0-9]\"\n (blur)=\"handleBlur()\"\n (keypress)=\"numbersOnly($event)\"\n (input)=\"inputChangeHandler($event)\"\n />\n @for (value of [].constructor(codeLength); track $index) {\n <span\n class=\"aeb-code-input__field-input\"\n [ngClass]=\"{\n 'aeb-code-input__field-input--active':\n inputValue.length === $index && isFocus,\n 'aeb-code-input__field-input--has-error': hasError\n }\"\n >\n {{ arrayInputValue[$index] }}\n <div\n [ngClass]=\"{\n 'aeb-code-input__field-input--caret':\n inputValue.length === $index && isFocus\n }\"\n ></div>\n </span>\n }\n </div>\n <div class=\"aeb-code-input__text\">\n @if (hasError) {\n <span class=\"aeb-code-input__text-wrong\">\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434</span>\n }\n @if (showTimer) {\n <div class=\"aeb-code-input__text-wrapper\">\n <span class=\"aeb-code-input__text-info\"\n >\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u0443\u044E \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0443 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437\n </span>\n <span class=\"aeb-code-input__text-time\">{{ seconds$ | async }}</span>\n </div>\n }\n @if (showCodeText) {\n <span class=\"aeb-code-input__text-again\" (click)=\"resend()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E</span\n >\n }\n </div>\n</div>\n", styles: [".aeb-code-input{display:flex;flex-direction:column;align-items:center;width:632px;color:var(--color-mono-900);background-color:var(--color-mono-0)}@media screen and (max-width: 768px){.aeb-code-input{width:100%;box-sizing:border-box}}.aeb-code-input__field-wrapper{position:relative;display:flex;justify-content:center;gap:16px}@media screen and (max-width: 768px){.aeb-code-input__field-wrapper{gap:8px}}.aeb-code-input__field{position:absolute;width:100%;height:56px;box-sizing:border-box;background:transparent;border:none;color:transparent;outline:none;-webkit-user-select:none;user-select:none;caret-color:transparent;z-index:10;pointer-events:none}.aeb-code-input__field::selection{background:transparent}.aeb-code-input__field-input{width:51px;height:56px;display:flex;justify-content:center;align-items:center;border:var(--border-skinny) solid var(--color-mono-200);border-radius:var(--border-medium-rounded);box-sizing:border-box;font-size:var(--font-size-lm);cursor:text}@media screen and (max-width: 768px){.aeb-code-input__field-input{width:41px;height:45px}}.aeb-code-input__field-input--active{border:var(--border-skinny) solid var(--color-blue-500)}.aeb-code-input__field-input--has-error{border:var(--border-skinny) solid var(--color-red-500)}.aeb-code-input__field-input--caret{width:2px;height:20px;background-color:var(--color-blue-500);margin-right:15px;animation-name:flicker;animation-duration:1s;animation-iteration-count:infinite}@keyframes flicker{0%{opacity:0}to{opacity:1}}.aeb-code-input__title{width:fit-content;margin:0 0 40px;font-size:var(--font-size-l)}.aeb-code-input__tip{margin-bottom:40px;text-align:center}.aeb-code-input__text{display:flex;flex-direction:column;align-items:center;margin-top:24px;font-size:var(--font-size-s);line-height:20px}.aeb-code-input__text-wrapper{text-align:center}.aeb-code-input__text-info{color:var(--gray)}.aeb-code-input__text-time{color:var(--color-blue-500)}.aeb-code-input__text-again{color:var(--color-blue-500);cursor:pointer}.aeb-code-input__text-wrong{color:var(--color-red-500);margin-bottom:8px}\n"] }]
657
657
  }], propDecorators: { title: [{
658
658
  type: Input
659
659
  }], secondsUntilRetry: [{
@@ -1595,45 +1595,81 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
1595
1595
  }]
1596
1596
  }] });
1597
1597
 
1598
+ class IsTodayPipe {
1599
+ constructor() {
1600
+ this.utils = inject(DatepickerUtilsService);
1601
+ }
1602
+ transform(date) {
1603
+ return this.utils.isToday(date);
1604
+ }
1605
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: IsTodayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1606
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.7", ngImport: i0, type: IsTodayPipe, isStandalone: false, name: "isToday" }); }
1607
+ }
1608
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: IsTodayPipe, decorators: [{
1609
+ type: Pipe,
1610
+ args: [{
1611
+ name: 'isToday',
1612
+ standalone: false
1613
+ }]
1614
+ }] });
1615
+
1616
+ class IsSameDatePipe {
1617
+ constructor() {
1618
+ this.utils = inject(DatepickerUtilsService);
1619
+ }
1620
+ transform(date1, date2) {
1621
+ return this.utils.isSameDay(date1, date2);
1622
+ }
1623
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: IsSameDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1624
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.7", ngImport: i0, type: IsSameDatePipe, isStandalone: false, name: "isSameDate" }); }
1625
+ }
1626
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: IsSameDatePipe, decorators: [{
1627
+ type: Pipe,
1628
+ args: [{
1629
+ name: 'isSameDate',
1630
+ standalone: false
1631
+ }]
1632
+ }] });
1633
+
1634
+ class IsDisabledPipe {
1635
+ constructor() {
1636
+ this.utils = inject(DatepickerUtilsService);
1637
+ }
1638
+ transform(date, minDate, maxDate, excludedDates) {
1639
+ return (this.utils.isMinOverlap(minDate, date) ||
1640
+ this.utils.isMaxOverlap(maxDate, date) ||
1641
+ !!excludedDates.filter((item) => this.utils.isSameDay(item, date)).length);
1642
+ }
1643
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: IsDisabledPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1644
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.7", ngImport: i0, type: IsDisabledPipe, isStandalone: false, name: "isDisabled" }); }
1645
+ }
1646
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: IsDisabledPipe, decorators: [{
1647
+ type: Pipe,
1648
+ args: [{
1649
+ name: 'isDisabled',
1650
+ standalone: false
1651
+ }]
1652
+ }] });
1653
+
1598
1654
  /**
1599
- * Компонента для отображения панели со списком дней
1655
+ * Компонент для отображения панели со списком дней
1600
1656
  */
1601
1657
  class DatepickerMonthComponent {
1602
1658
  constructor() {
1603
- this.utils = inject(DatepickerUtilsService);
1604
1659
  this.setDate = new EventEmitter();
1605
1660
  this.week = DatepickerUtilsService.weekLocal;
1606
1661
  }
1607
- isToday(date) {
1608
- return this.utils.isToday(date);
1609
- }
1610
1662
  emitDate(date) {
1611
- if (this.isDisabled(date)) {
1612
- return;
1613
- }
1614
1663
  this.setDate.emit(date);
1615
1664
  }
1616
- sameDate(date) {
1617
- return this.utils.isSameDay(this.date, date);
1618
- }
1619
- isExcluded(date) {
1620
- return !!this.excludedDates.filter((item) => this.utils.isSameDay(item, date)).length;
1621
- }
1622
- isDisabled(date) {
1623
- return (this.utils.isMinOverlap(this.minDate, date) ||
1624
- this.utils.isMaxOverlap(this.maxDate, date) ||
1625
- this.isExcluded(date));
1626
- }
1627
1665
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: DatepickerMonthComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1628
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: DatepickerMonthComponent, isStandalone: false, selector: "aeb-datepicker-month", inputs: { month: "month", date: "date", minDate: "minDate", maxDate: "maxDate", excludedDates: "excludedDates" }, outputs: { setDate: "setDate" }, ngImport: i0, template: "<div class=\"aeb-datepicker-month__week\">\n @for (day of week; track day) {\n <div class=\"aeb-datepicker-month__day aeb-datepicker-month__day--weekd\">\n {{ day }}\n </div>\n }\n</div>\n@for (week of month; track week) {\n <div class=\"aeb-datepicker-month__week\">\n @for (day of week; track day) {\n @if (!!day) {\n <div\n class=\"aeb-datepicker-month__day\"\n [ngClass]=\"{\n 'aeb-datepicker-month__day--today': isToday(day),\n 'aeb-datepicker-month__day--picked': sameDate(day),\n 'aeb-datepicker-month__day--disabled': isDisabled(day)\n }\"\n (click)=\"emitDate(day)\"\n >\n {{ day | dateToStr }}\n </div>\n } @else {\n <div\n class=\"aeb-datepicker-month__day aeb-datepicker-month__day--stub\"\n ></div>\n }\n }\n </div>\n}\n", styles: [".aeb-datepicker-month__week{display:flex;align-items:center;width:fit-content}.aeb-datepicker-month__week:not(:last-child){margin-bottom:10px}.aeb-datepicker-month__day{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:32px;height:28px;font-size:var(--font-size-s);cursor:pointer;border-radius:var(--border-lightly-rounded)}.aeb-datepicker-month__day:hover{border:var(--border-thin) solid var(--color-blue-500)}.aeb-datepicker-month__day--stub{pointer-events:none;cursor:none}.aeb-datepicker-month__day--stub:hover{border:var(--no-border)}.aeb-datepicker-month__day--today{border:var(--border-thin) solid var(--color-mono-200)}.aeb-datepicker-month__day--picked{color:var(--color-mono-0);background-color:var(--color-blue-500);border:var(--no-border)}.aeb-datepicker-month__day--disabled{color:var(--color-mono-200);pointer-events:none;cursor:none}.aeb-datepicker-month__day--disabled:hover{border:var(--no-border)}.aeb-datepicker-month__day:not(:last-child){margin-right:8px}.aeb-datepicker-month__day--weekd{font-size:var(--font-size-xxs);color:var(--color-mono-200);cursor:default}.aeb-datepicker-month__day--weekd:hover{border:var(--no-border)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: DateToStrPipe, name: "dateToStr" }], encapsulation: i0.ViewEncapsulation.None }); }
1666
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: DatepickerMonthComponent, isStandalone: false, selector: "aeb-datepicker-month", inputs: { month: "month", date: "date", minDate: "minDate", maxDate: "maxDate", excludedDates: "excludedDates" }, outputs: { setDate: "setDate" }, ngImport: i0, template: "<div class=\"aeb-datepicker-month__week\">\n @for (day of week; track $index) {\n <div class=\"aeb-datepicker-month__day aeb-datepicker-month__day--weekd\">\n {{ day }}\n </div>\n }\n</div>\n@for (week of month; track $index) {\n <div class=\"aeb-datepicker-month__week\">\n @for (day of week; track $index) {\n @if (!!day) {\n <div\n class=\"aeb-datepicker-month__day\"\n [ngClass]=\"{\n 'aeb-datepicker-month__day--today': day | isToday,\n 'aeb-datepicker-month__day--picked': day | isSameDate: date,\n 'aeb-datepicker-month__day--disabled':\n day | isDisabled: minDate : maxDate : excludedDates\n }\"\n (click)=\"emitDate(day)\"\n >\n {{ day | dateToStr }}\n </div>\n } @else {\n <div\n class=\"aeb-datepicker-month__day aeb-datepicker-month__day--stub\"\n ></div>\n }\n }\n </div>\n}\n", styles: [".aeb-datepicker-month__week{display:flex;align-items:center;width:fit-content}.aeb-datepicker-month__week:not(:last-child){margin-bottom:10px}.aeb-datepicker-month__day{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:32px;height:28px;font-size:var(--font-size-s);cursor:pointer;border-radius:var(--border-lightly-rounded)}.aeb-datepicker-month__day:hover{border:var(--border-thin) solid var(--color-blue-500)}.aeb-datepicker-month__day--stub{pointer-events:none;cursor:none}.aeb-datepicker-month__day--stub:hover{border:var(--no-border)}.aeb-datepicker-month__day--today{border:var(--border-thin) solid var(--color-mono-200)}.aeb-datepicker-month__day--picked{color:var(--color-mono-0);background-color:var(--color-blue-500);border:var(--no-border)}.aeb-datepicker-month__day--disabled{color:var(--color-mono-200);pointer-events:none;cursor:none}.aeb-datepicker-month__day--disabled:hover{border:var(--no-border)}.aeb-datepicker-month__day:not(:last-child){margin-right:8px}.aeb-datepicker-month__day--weekd{font-size:var(--font-size-xxs);color:var(--color-mono-200);cursor:default}.aeb-datepicker-month__day--weekd:hover{border:var(--no-border)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: DateToStrPipe, name: "dateToStr" }, { kind: "pipe", type: IsTodayPipe, name: "isToday" }, { kind: "pipe", type: IsSameDatePipe, name: "isSameDate" }, { kind: "pipe", type: IsDisabledPipe, name: "isDisabled" }], encapsulation: i0.ViewEncapsulation.None }); }
1629
1667
  }
1630
1668
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: DatepickerMonthComponent, decorators: [{
1631
1669
  type: Component,
1632
- args: [{ selector: 'aeb-datepicker-month', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"aeb-datepicker-month__week\">\n @for (day of week; track day) {\n <div class=\"aeb-datepicker-month__day aeb-datepicker-month__day--weekd\">\n {{ day }}\n </div>\n }\n</div>\n@for (week of month; track week) {\n <div class=\"aeb-datepicker-month__week\">\n @for (day of week; track day) {\n @if (!!day) {\n <div\n class=\"aeb-datepicker-month__day\"\n [ngClass]=\"{\n 'aeb-datepicker-month__day--today': isToday(day),\n 'aeb-datepicker-month__day--picked': sameDate(day),\n 'aeb-datepicker-month__day--disabled': isDisabled(day)\n }\"\n (click)=\"emitDate(day)\"\n >\n {{ day | dateToStr }}\n </div>\n } @else {\n <div\n class=\"aeb-datepicker-month__day aeb-datepicker-month__day--stub\"\n ></div>\n }\n }\n </div>\n}\n", styles: [".aeb-datepicker-month__week{display:flex;align-items:center;width:fit-content}.aeb-datepicker-month__week:not(:last-child){margin-bottom:10px}.aeb-datepicker-month__day{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:32px;height:28px;font-size:var(--font-size-s);cursor:pointer;border-radius:var(--border-lightly-rounded)}.aeb-datepicker-month__day:hover{border:var(--border-thin) solid var(--color-blue-500)}.aeb-datepicker-month__day--stub{pointer-events:none;cursor:none}.aeb-datepicker-month__day--stub:hover{border:var(--no-border)}.aeb-datepicker-month__day--today{border:var(--border-thin) solid var(--color-mono-200)}.aeb-datepicker-month__day--picked{color:var(--color-mono-0);background-color:var(--color-blue-500);border:var(--no-border)}.aeb-datepicker-month__day--disabled{color:var(--color-mono-200);pointer-events:none;cursor:none}.aeb-datepicker-month__day--disabled:hover{border:var(--no-border)}.aeb-datepicker-month__day:not(:last-child){margin-right:8px}.aeb-datepicker-month__day--weekd{font-size:var(--font-size-xxs);color:var(--color-mono-200);cursor:default}.aeb-datepicker-month__day--weekd:hover{border:var(--no-border)}\n"] }]
1670
+ args: [{ selector: 'aeb-datepicker-month', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"aeb-datepicker-month__week\">\n @for (day of week; track $index) {\n <div class=\"aeb-datepicker-month__day aeb-datepicker-month__day--weekd\">\n {{ day }}\n </div>\n }\n</div>\n@for (week of month; track $index) {\n <div class=\"aeb-datepicker-month__week\">\n @for (day of week; track $index) {\n @if (!!day) {\n <div\n class=\"aeb-datepicker-month__day\"\n [ngClass]=\"{\n 'aeb-datepicker-month__day--today': day | isToday,\n 'aeb-datepicker-month__day--picked': day | isSameDate: date,\n 'aeb-datepicker-month__day--disabled':\n day | isDisabled: minDate : maxDate : excludedDates\n }\"\n (click)=\"emitDate(day)\"\n >\n {{ day | dateToStr }}\n </div>\n } @else {\n <div\n class=\"aeb-datepicker-month__day aeb-datepicker-month__day--stub\"\n ></div>\n }\n }\n </div>\n}\n", styles: [".aeb-datepicker-month__week{display:flex;align-items:center;width:fit-content}.aeb-datepicker-month__week:not(:last-child){margin-bottom:10px}.aeb-datepicker-month__day{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:32px;height:28px;font-size:var(--font-size-s);cursor:pointer;border-radius:var(--border-lightly-rounded)}.aeb-datepicker-month__day:hover{border:var(--border-thin) solid var(--color-blue-500)}.aeb-datepicker-month__day--stub{pointer-events:none;cursor:none}.aeb-datepicker-month__day--stub:hover{border:var(--no-border)}.aeb-datepicker-month__day--today{border:var(--border-thin) solid var(--color-mono-200)}.aeb-datepicker-month__day--picked{color:var(--color-mono-0);background-color:var(--color-blue-500);border:var(--no-border)}.aeb-datepicker-month__day--disabled{color:var(--color-mono-200);pointer-events:none;cursor:none}.aeb-datepicker-month__day--disabled:hover{border:var(--no-border)}.aeb-datepicker-month__day:not(:last-child){margin-right:8px}.aeb-datepicker-month__day--weekd{font-size:var(--font-size-xxs);color:var(--color-mono-200);cursor:default}.aeb-datepicker-month__day--weekd:hover{border:var(--no-border)}\n"] }]
1633
1671
  }], ctorParameters: () => [], propDecorators: { month: [{
1634
1672
  type: Input
1635
- }], setDate: [{
1636
- type: Output
1637
1673
  }], date: [{
1638
1674
  type: Input
1639
1675
  }], minDate: [{
@@ -1642,6 +1678,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
1642
1678
  type: Input
1643
1679
  }], excludedDates: [{
1644
1680
  type: Input
1681
+ }], setDate: [{
1682
+ type: Output
1645
1683
  }] } });
1646
1684
 
1647
1685
  /**
@@ -2286,11 +2324,13 @@ class DatepickerModule {
2286
2324
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.7", ngImport: i0, type: DatepickerModule, declarations: [DatepickerComponent,
2287
2325
  DatepickerCoreComponent,
2288
2326
  DatepickerMonthComponent,
2327
+ DatepickerTilesComponent,
2289
2328
  DateToStrPipe,
2290
- DatepickerTilesComponent], imports: [CommonModule, FormFieldModule, FormsModule, ClickOutsideDirective], exports: [DatepickerComponent,
2329
+ IsTodayPipe,
2330
+ IsSameDatePipe,
2331
+ IsDisabledPipe], imports: [CommonModule, FormFieldModule, FormsModule, ClickOutsideDirective], exports: [DatepickerComponent,
2291
2332
  DatepickerCoreComponent,
2292
2333
  DatepickerMonthComponent,
2293
- DateToStrPipe,
2294
2334
  DatepickerTilesComponent] }); }
2295
2335
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: DatepickerModule, imports: [CommonModule, FormFieldModule, FormsModule] }); }
2296
2336
  }
@@ -2301,15 +2341,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
2301
2341
  DatepickerComponent,
2302
2342
  DatepickerCoreComponent,
2303
2343
  DatepickerMonthComponent,
2344
+ DatepickerTilesComponent,
2304
2345
  DateToStrPipe,
2305
- DatepickerTilesComponent
2346
+ IsTodayPipe,
2347
+ IsSameDatePipe,
2348
+ IsDisabledPipe
2306
2349
  ],
2307
2350
  imports: [CommonModule, FormFieldModule, FormsModule, ClickOutsideDirective],
2308
2351
  exports: [
2309
2352
  DatepickerComponent,
2310
2353
  DatepickerCoreComponent,
2311
2354
  DatepickerMonthComponent,
2312
- DateToStrPipe,
2313
2355
  DatepickerTilesComponent
2314
2356
  ]
2315
2357
  }]
@@ -3382,11 +3424,11 @@ class BreadcrumpsComponent {
3382
3424
  this.routeClick.emit(index);
3383
3425
  }
3384
3426
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: BreadcrumpsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
3385
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: BreadcrumpsComponent, isStandalone: false, selector: "aeb-breadcrumps", inputs: { routeSeq: ["routeSequence", "routeSeq"] }, outputs: { routeClick: "routeClick" }, ngImport: i0, template: "<div class=\"aeb-breadcrumps\">\n @for (item of routeSeq; track item; let index = $index) {\n <div class=\"aeb-breadcrumps__item\" (click)=\"clickHandler(index)\">\n {{ item }}\n @if (index !== routeSeq.length - 1) {\n <span class=\"aeb-breadcrumps__icon\">\n <svg\n width=\"3\"\n height=\"6\"\n viewBox=\"0 0 3 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M3 3L-6.28109e-09 5.59808L2.2085e-07 0.401924L3 3Z\"\n fill=\"#A3AAAE\"\n />\n </svg>\n </span>\n }\n </div>\n }\n</div>\n", styles: [".aeb-breadcrumps{display:flex}.aeb-breadcrumps__item{font-size:var(--font-size-xs);color:var(--gray-primary);cursor:pointer;transition:color,.2s}.aeb-breadcrumps__item:not(:last-child){margin-right:12px}.aeb-breadcrumps__item:hover{color:var(--color-blue-500)}.aeb-breadcrumps__icon{position:relative;bottom:3px;padding-bottom:10px;margin-left:12px}\n"], encapsulation: i0.ViewEncapsulation.None }); }
3427
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: BreadcrumpsComponent, isStandalone: false, selector: "aeb-breadcrumps", inputs: { routeSeq: ["routeSequence", "routeSeq"] }, outputs: { routeClick: "routeClick" }, ngImport: i0, template: "<div class=\"aeb-breadcrumps\">\n @for (item of routeSeq; track $index) {\n <div class=\"aeb-breadcrumps__item\" (click)=\"clickHandler($index)\">\n {{ item }}\n @if ($index !== routeSeq.length - 1) {\n <span class=\"aeb-breadcrumps__icon\">\n <svg\n width=\"3\"\n height=\"6\"\n viewBox=\"0 0 3 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M3 3L-6.28109e-09 5.59808L2.2085e-07 0.401924L3 3Z\"\n fill=\"#A3AAAE\"\n />\n </svg>\n </span>\n }\n </div>\n }\n</div>\n", styles: [".aeb-breadcrumps{display:flex}.aeb-breadcrumps__item{font-size:var(--font-size-xs);color:var(--gray-primary);cursor:pointer;transition:color,.2s}.aeb-breadcrumps__item:not(:last-child){margin-right:12px}.aeb-breadcrumps__item:hover{color:var(--color-blue-500)}.aeb-breadcrumps__icon{position:relative;bottom:3px;padding-bottom:10px;margin-left:12px}\n"], encapsulation: i0.ViewEncapsulation.None }); }
3386
3428
  }
3387
3429
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: BreadcrumpsComponent, decorators: [{
3388
3430
  type: Component,
3389
- args: [{ selector: 'aeb-breadcrumps', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"aeb-breadcrumps\">\n @for (item of routeSeq; track item; let index = $index) {\n <div class=\"aeb-breadcrumps__item\" (click)=\"clickHandler(index)\">\n {{ item }}\n @if (index !== routeSeq.length - 1) {\n <span class=\"aeb-breadcrumps__icon\">\n <svg\n width=\"3\"\n height=\"6\"\n viewBox=\"0 0 3 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M3 3L-6.28109e-09 5.59808L2.2085e-07 0.401924L3 3Z\"\n fill=\"#A3AAAE\"\n />\n </svg>\n </span>\n }\n </div>\n }\n</div>\n", styles: [".aeb-breadcrumps{display:flex}.aeb-breadcrumps__item{font-size:var(--font-size-xs);color:var(--gray-primary);cursor:pointer;transition:color,.2s}.aeb-breadcrumps__item:not(:last-child){margin-right:12px}.aeb-breadcrumps__item:hover{color:var(--color-blue-500)}.aeb-breadcrumps__icon{position:relative;bottom:3px;padding-bottom:10px;margin-left:12px}\n"] }]
3431
+ args: [{ selector: 'aeb-breadcrumps', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"aeb-breadcrumps\">\n @for (item of routeSeq; track $index) {\n <div class=\"aeb-breadcrumps__item\" (click)=\"clickHandler($index)\">\n {{ item }}\n @if ($index !== routeSeq.length - 1) {\n <span class=\"aeb-breadcrumps__icon\">\n <svg\n width=\"3\"\n height=\"6\"\n viewBox=\"0 0 3 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M3 3L-6.28109e-09 5.59808L2.2085e-07 0.401924L3 3Z\"\n fill=\"#A3AAAE\"\n />\n </svg>\n </span>\n }\n </div>\n }\n</div>\n", styles: [".aeb-breadcrumps{display:flex}.aeb-breadcrumps__item{font-size:var(--font-size-xs);color:var(--gray-primary);cursor:pointer;transition:color,.2s}.aeb-breadcrumps__item:not(:last-child){margin-right:12px}.aeb-breadcrumps__item:hover{color:var(--color-blue-500)}.aeb-breadcrumps__icon{position:relative;bottom:3px;padding-bottom:10px;margin-left:12px}\n"] }]
3390
3432
  }], propDecorators: { routeSeq: [{
3391
3433
  type: Input,
3392
3434
  args: ['routeSequence']
@@ -5693,6 +5735,157 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
5693
5735
  }]
5694
5736
  }] });
5695
5737
 
5738
+ class AebSwitchComponent {
5739
+ get ariaChecked() {
5740
+ return this.checked;
5741
+ }
5742
+ get isWarningOrInvalid() {
5743
+ console.log(this.ngControl?.status);
5744
+ return this.warning || this.ngControl?.status === 'INVALID';
5745
+ }
5746
+ constructor(renderer, cdr, injector) {
5747
+ this.renderer = renderer;
5748
+ this.cdr = cdr;
5749
+ this.injector = injector;
5750
+ this.id = `aeb-switch-${Math.random().toString(36).substring(2, 9)}`;
5751
+ this.warning = false;
5752
+ this.label = '';
5753
+ this.changed = new EventEmitter();
5754
+ this.hostClass = true;
5755
+ this.role = 'switch';
5756
+ this.pressed = false;
5757
+ this.checked = false;
5758
+ this.disabled = false;
5759
+ this._onChange = () => { };
5760
+ this._onTouched = () => { };
5761
+ }
5762
+ toggle(event) {
5763
+ event.preventDefault();
5764
+ if (this.disabled) {
5765
+ return;
5766
+ }
5767
+ this.checked = !this.checked;
5768
+ this._writeInputState();
5769
+ this._onChange(this.checked);
5770
+ this._onTouched();
5771
+ this.changed.emit(this.checked);
5772
+ this.cdr.markForCheck();
5773
+ }
5774
+ onSpace(event) {
5775
+ event.preventDefault();
5776
+ this.toggle(event);
5777
+ }
5778
+ onPressStart() {
5779
+ this.pressed = true;
5780
+ }
5781
+ onPressEndMouseUp() {
5782
+ this.pressed = false;
5783
+ }
5784
+ onPressEndMouseOut() {
5785
+ this.pressed = false;
5786
+ }
5787
+ ngOnInit() {
5788
+ this.ngControl = this.injector.get(NgControl, null);
5789
+ if (this.ngControl) {
5790
+ this.ngControl.valueAccessor = this;
5791
+ this.ngControl.statusChanges?.subscribe(() => this.cdr.markForCheck());
5792
+ this.ngControl.valueChanges?.subscribe(() => this.cdr.markForCheck());
5793
+ }
5794
+ }
5795
+ writeValue(value) {
5796
+ this.checked = !!value;
5797
+ this._writeInputState();
5798
+ this.cdr.markForCheck();
5799
+ }
5800
+ registerOnChange(fn) {
5801
+ this._onChange = fn;
5802
+ }
5803
+ registerOnTouched(fn) {
5804
+ this._onTouched = fn;
5805
+ }
5806
+ setDisabledState(isDisabled) {
5807
+ this.disabled = isDisabled;
5808
+ this.renderer.setProperty(this.switchInput.nativeElement, 'disabled', isDisabled);
5809
+ }
5810
+ _writeInputState() {
5811
+ const el = this.switchInput.nativeElement;
5812
+ this.renderer.setProperty(el, 'checked', this.checked);
5813
+ this.renderer.setAttribute(el, 'aria-checked', String(this.checked));
5814
+ }
5815
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: AebSwitchComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
5816
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: AebSwitchComponent, isStandalone: false, selector: "aeb-switch", inputs: { id: "id", name: "name", warning: "warning", label: "label" }, outputs: { changed: "changed" }, host: { listeners: { "click": "toggle($event)", "keydown.space": "onSpace($event)", "mousedown": "onPressStart()", "mouseup": "onPressEndMouseUp()", "mouseout": "onPressEndMouseOut()" }, properties: { "class.switch": "this.hostClass", "attr.role": "this.role", "attr.aria-checked": "this.ariaChecked", "class.switch--warning": "this.isWarningOrInvalid" } }, providers: [
5817
+ {
5818
+ provide: NG_VALUE_ACCESSOR,
5819
+ useExisting: forwardRef(() => AebSwitchComponent),
5820
+ multi: true
5821
+ }
5822
+ ], viewQueries: [{ propertyName: "switchInput", first: true, predicate: ["switchInput"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"switch-wrapper\">\n <label class=\"switch\" [class.switch--checked]=\"checked\"\n [class.switch--warning]=\"warning || ngControl?.status === 'INVALID'\" [class.switch--disabled]=\"disabled\"\n [class.switch--pressed]=\"pressed\" tabindex=\"0\">\n <input #switchInput type=\"checkbox\" [id]=\"id\" [name]=\"name\" class=\"visually-hidden\" [disabled]=\"disabled\"\n [checked]=\"checked\" />\n\n <span class=\"switch-slider\"></span>\n </label>\n <span *ngIf=\"label\" class=\"switch-label\">{{ label }}</span>\n</div>", styles: [".switch-wrapper{display:flex;align-items:center;gap:12px}.switch{outline:none;position:relative;display:inline-block;width:40px;height:24px;cursor:pointer}.switch:hover .switch-slider{filter:brightness(110%)}.switch--disabled{cursor:not-allowed}.switch--disabled:hover .switch-slider{filter:none!important}.switch--disabled .switch-slider{opacity:.5}.switch .visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;outline:none}.switch .switch-slider{position:absolute;inset:0;background-color:var(--color-mono-100);border-radius:12px;transition:background-color .3s,filter .3s}.switch .switch-slider:before{content:\"\";position:absolute;width:18px;height:18px;top:3px;left:3px;background-color:var(--color-mono-0);border-radius:50%;transition:transform .3s}.switch--checked .switch-slider{background-color:var(--color-blue-500)}.switch--checked .switch-slider:before{transform:translate(16px)}.switch--warning .switch-slider{background-color:var(--color-red-100)}.switch--checked.switch--warning .switch-slider{background-color:var(--color-red-500)}.switch--checked.switch--warning .switch-slider:before{transform:translate(16px)}.switch--pressed .switch-slider{background-color:var(--color-mono-200)}.switch--pressed.switch--warning .switch-slider{background-color:var(--color-red-200)}.switch--pressed.switch--checked .switch-slider{background-color:var(--color-blue-600);filter:none}.switch--pressed.switch--checked .switch-slider:before{transform:translate(16px)}.switch--pressed.switch--checked.switch--warning .switch-slider{background-color:var(--color-red-600);filter:none}.switch--pressed.switch--checked.switch--warning .switch-slider:before{transform:translate(16px)}.switch-label{cursor:pointer;-webkit-user-select:none;user-select:none}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
5823
+ }
5824
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: AebSwitchComponent, decorators: [{
5825
+ type: Component,
5826
+ args: [{ selector: 'aeb-switch', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
5827
+ {
5828
+ provide: NG_VALUE_ACCESSOR,
5829
+ useExisting: forwardRef(() => AebSwitchComponent),
5830
+ multi: true
5831
+ }
5832
+ ], standalone: false, template: "<div class=\"switch-wrapper\">\n <label class=\"switch\" [class.switch--checked]=\"checked\"\n [class.switch--warning]=\"warning || ngControl?.status === 'INVALID'\" [class.switch--disabled]=\"disabled\"\n [class.switch--pressed]=\"pressed\" tabindex=\"0\">\n <input #switchInput type=\"checkbox\" [id]=\"id\" [name]=\"name\" class=\"visually-hidden\" [disabled]=\"disabled\"\n [checked]=\"checked\" />\n\n <span class=\"switch-slider\"></span>\n </label>\n <span *ngIf=\"label\" class=\"switch-label\">{{ label }}</span>\n</div>", styles: [".switch-wrapper{display:flex;align-items:center;gap:12px}.switch{outline:none;position:relative;display:inline-block;width:40px;height:24px;cursor:pointer}.switch:hover .switch-slider{filter:brightness(110%)}.switch--disabled{cursor:not-allowed}.switch--disabled:hover .switch-slider{filter:none!important}.switch--disabled .switch-slider{opacity:.5}.switch .visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;outline:none}.switch .switch-slider{position:absolute;inset:0;background-color:var(--color-mono-100);border-radius:12px;transition:background-color .3s,filter .3s}.switch .switch-slider:before{content:\"\";position:absolute;width:18px;height:18px;top:3px;left:3px;background-color:var(--color-mono-0);border-radius:50%;transition:transform .3s}.switch--checked .switch-slider{background-color:var(--color-blue-500)}.switch--checked .switch-slider:before{transform:translate(16px)}.switch--warning .switch-slider{background-color:var(--color-red-100)}.switch--checked.switch--warning .switch-slider{background-color:var(--color-red-500)}.switch--checked.switch--warning .switch-slider:before{transform:translate(16px)}.switch--pressed .switch-slider{background-color:var(--color-mono-200)}.switch--pressed.switch--warning .switch-slider{background-color:var(--color-red-200)}.switch--pressed.switch--checked .switch-slider{background-color:var(--color-blue-600);filter:none}.switch--pressed.switch--checked .switch-slider:before{transform:translate(16px)}.switch--pressed.switch--checked.switch--warning .switch-slider{background-color:var(--color-red-600);filter:none}.switch--pressed.switch--checked.switch--warning .switch-slider:before{transform:translate(16px)}.switch-label{cursor:pointer;-webkit-user-select:none;user-select:none}\n"] }]
5833
+ }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i0.Injector }], propDecorators: { switchInput: [{
5834
+ type: ViewChild,
5835
+ args: ['switchInput', { static: true }]
5836
+ }], id: [{
5837
+ type: Input
5838
+ }], name: [{
5839
+ type: Input
5840
+ }], warning: [{
5841
+ type: Input
5842
+ }], label: [{
5843
+ type: Input
5844
+ }], changed: [{
5845
+ type: Output
5846
+ }], hostClass: [{
5847
+ type: HostBinding,
5848
+ args: ['class.switch']
5849
+ }], role: [{
5850
+ type: HostBinding,
5851
+ args: ['attr.role']
5852
+ }], ariaChecked: [{
5853
+ type: HostBinding,
5854
+ args: ['attr.aria-checked']
5855
+ }], isWarningOrInvalid: [{
5856
+ type: HostBinding,
5857
+ args: ['class.switch--warning']
5858
+ }], toggle: [{
5859
+ type: HostListener,
5860
+ args: ['click', ['$event']]
5861
+ }], onSpace: [{
5862
+ type: HostListener,
5863
+ args: ['keydown.space', ['$event']]
5864
+ }], onPressStart: [{
5865
+ type: HostListener,
5866
+ args: ['mousedown']
5867
+ }], onPressEndMouseUp: [{
5868
+ type: HostListener,
5869
+ args: ['mouseup']
5870
+ }], onPressEndMouseOut: [{
5871
+ type: HostListener,
5872
+ args: ['mouseout']
5873
+ }] } });
5874
+
5875
+ class AebSwitchModule {
5876
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: AebSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
5877
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.7", ngImport: i0, type: AebSwitchModule, declarations: [AebSwitchComponent], imports: [CommonModule, FormsModule, ReactiveFormsModule], exports: [AebSwitchComponent] }); }
5878
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: AebSwitchModule, imports: [CommonModule, FormsModule, ReactiveFormsModule] }); }
5879
+ }
5880
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: AebSwitchModule, decorators: [{
5881
+ type: NgModule,
5882
+ args: [{
5883
+ declarations: [AebSwitchComponent],
5884
+ imports: [CommonModule, FormsModule, ReactiveFormsModule],
5885
+ exports: [AebSwitchComponent]
5886
+ }]
5887
+ }] });
5888
+
5696
5889
  /*
5697
5890
  * Public API Surface of aeb-ui-kit
5698
5891
  */
@@ -5701,5 +5894,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
5701
5894
  * Generated bundle index. Do not edit.
5702
5895
  */
5703
5896
 
5704
- export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebUiKitModule, AutofocusDirective, BreadcrumpsComponent, ButtonComponent, ButtonLeftIconDirective, ButtonModule, ButtonRightIconDirective, CheckboxComponent, CheckboxGroupOldComponent, CheckboxModule, CheckboxOldComponent, CheckboxOldModule, ClickOutsideDirective, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DateToStrPipe, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownModule, ErrorMessageDirective, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldDirective, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, OldButtonComponent, OldButtonModule, PaginationComponent, PaginationModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, RadioButtonsOldComponent, RadioButtonsOldModule, ResponseComponent, ResponseModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
5897
+ export { AccordionComponent, AccordionModule, ActionBarComponent, ActionBarModule, AebSwitchComponent, AebSwitchModule, AebUiKitModule, AutofocusDirective, BreadcrumpsComponent, ButtonComponent, ButtonLeftIconDirective, ButtonModule, ButtonRightIconDirective, CheckboxComponent, CheckboxGroupOldComponent, CheckboxModule, CheckboxOldComponent, CheckboxOldModule, ClickOutsideDirective, CodeInputComponent, CodeInputModule, CommentComponent, CommentModule, CreditItemCardComponent, CreditItemCardModule, DatepickerComponent, DatepickerCoreComponent, DatepickerModule, DatepickerMonthComponent, DatepickerTilesComponent, DragAndDropDirective, DropdownComponent, DropdownModule, ErrorMessageDirective, FileAttachComponent, FileAttachModule, FilterTagComponent, FilterTagsComponent, FilterTagsModule, FooterBottomComponent, FooterComponent, FooterMenuComponent, FooterModule, FooterTopComponent, FormFieldComponent, FormFieldDirective, FormFieldModule, HeaderComponent, HeaderModule, HeadingComponent, HeadingModule, IconDirective, LabelComponent, LabelDirective, LabelModule, LogoComponent, ModalComponent, ModalModule, NewsCardComponent, NewsCardModule, NotificationComponent, NotificationsComponent, NotificationsModule, OldButtonComponent, OldButtonModule, PaginationComponent, PaginationModule, PopUpComponent, PopUpDirective, PopUpModule, ProductTitleComponent, RadioButtonsComponent, RadioButtonsModule, RadioButtonsOldComponent, RadioButtonsOldModule, ResponseComponent, ResponseModule, SearchComponent, SearchModule, SelectComponent, SelectModule, SidebarComponent, SidebarModule, SliderComponent, SliderModule, SpanSubtitleDirective, SpanTitleDirective, SpinnerComponent, SpinnerModule, StepperComponent, StepperModule, StepperStepComponent, TabDirective, TableComponent, TableModule, TabsComponent, TabsModule, TagTabComponent, TagTabModule, TooltipComponent, TooltipDirective, TooltipModule, VisaComponent, VisaItemComponent, VisaModule };
5705
5898
  //# sourceMappingURL=aeb-ui-kit.mjs.map