aeb-ui-kit 4.0.1-preview.688 → 4.0.1-preview.704
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.
- package/esm2020/lib/datepicker/datepicker.module.mjs +7 -20
- package/esm2020/lib/form-field/error-message.directive.mjs +6 -4
- package/esm2020/lib/modal/modal.component.mjs +37 -21
- package/esm2020/lib/modal/modal.module.mjs +5 -4
- package/fesm2015/aeb-ui-kit.mjs +48 -44
- package/fesm2015/aeb-ui-kit.mjs.map +1 -1
- package/fesm2020/aeb-ui-kit.mjs +48 -44
- package/fesm2020/aeb-ui-kit.mjs.map +1 -1
- package/lib/datepicker/datepicker.module.d.ts +5 -6
- package/lib/form-field/error-message.directive.d.ts +2 -1
- package/lib/modal/modal.component.d.ts +21 -8
- package/lib/modal/modal.module.d.ts +2 -1
- package/package.json +1 -1
package/fesm2020/aeb-ui-kit.mjs
CHANGED
|
@@ -7,8 +7,7 @@ import { NG_VALUE_ACCESSOR, FormsModule, FormControl, Validators, ReactiveFormsM
|
|
|
7
7
|
import { timer, map, takeUntil, fromEvent } from 'rxjs';
|
|
8
8
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
9
9
|
import * as i2 from '@angular/platform-browser';
|
|
10
|
-
import
|
|
11
|
-
import { NgxMaskModule } from 'ngx-mask';
|
|
10
|
+
import { provideNgxMask } from 'ngx-mask';
|
|
12
11
|
import { addWeeks, addDays, isSameMonth, getWeeksInMonth, startOfMonth, startOfWeek, addMonths, subMonths, eachYearOfInterval, getYear, addYears, subYears, differenceInYears, startOfYear, isToday, isValid, isSameDay, getMonth, setMonth, areIntervalsOverlapping, startOfDay, endOfDay, parse, format, getDaysInMonth, isExists, compareAsc, getDate } from 'date-fns';
|
|
13
12
|
import { ru } from 'date-fns/locale';
|
|
14
13
|
import '@angular/common/locales/global/ru';
|
|
@@ -624,13 +623,15 @@ class ErrorMessageDirective {
|
|
|
624
623
|
constructor() { }
|
|
625
624
|
}
|
|
626
625
|
ErrorMessageDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ErrorMessageDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
627
|
-
ErrorMessageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ErrorMessageDirective, selector: "[errorMessage]", ngImport: i0 });
|
|
626
|
+
ErrorMessageDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ErrorMessageDirective, selector: "[errorMessage]", inputs: { errorMessage: "errorMessage" }, ngImport: i0 });
|
|
628
627
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ErrorMessageDirective, decorators: [{
|
|
629
628
|
type: Directive,
|
|
630
629
|
args: [{
|
|
631
630
|
selector: '[errorMessage]'
|
|
632
631
|
}]
|
|
633
|
-
}], ctorParameters: function () { return []; }
|
|
632
|
+
}], ctorParameters: function () { return []; }, propDecorators: { errorMessage: [{
|
|
633
|
+
type: Input
|
|
634
|
+
}] } });
|
|
634
635
|
|
|
635
636
|
class FormFieldDirective {
|
|
636
637
|
constructor(ngControl, elementRef) {
|
|
@@ -2435,19 +2436,12 @@ DatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versio
|
|
|
2435
2436
|
DatepickerCoreComponent,
|
|
2436
2437
|
DatepickerMonthComponent,
|
|
2437
2438
|
DateToStrPipe,
|
|
2438
|
-
DatepickerTilesComponent], imports: [
|
|
2439
|
-
FormFieldModule,
|
|
2440
|
-
FormsModule,
|
|
2441
|
-
ClickOutsideModule], exports: [DatepickerComponent,
|
|
2439
|
+
DatepickerTilesComponent], imports: [CommonModule, FormFieldModule, FormsModule, ClickOutsideModule], exports: [DatepickerComponent,
|
|
2442
2440
|
DatepickerCoreComponent,
|
|
2443
2441
|
DatepickerMonthComponent,
|
|
2444
2442
|
DateToStrPipe,
|
|
2445
2443
|
DatepickerTilesComponent] });
|
|
2446
|
-
DatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatepickerModule,
|
|
2447
|
-
CommonModule,
|
|
2448
|
-
FormFieldModule,
|
|
2449
|
-
FormsModule,
|
|
2450
|
-
ClickOutsideModule] });
|
|
2444
|
+
DatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatepickerModule, providers: [provideNgxMask(maskConfig)], imports: [CommonModule, FormFieldModule, FormsModule, ClickOutsideModule] });
|
|
2451
2445
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DatepickerModule, decorators: [{
|
|
2452
2446
|
type: NgModule,
|
|
2453
2447
|
args: [{
|
|
@@ -2458,20 +2452,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2458
2452
|
DateToStrPipe,
|
|
2459
2453
|
DatepickerTilesComponent
|
|
2460
2454
|
],
|
|
2461
|
-
imports: [
|
|
2462
|
-
NgxMaskModule.forRoot(maskConfig),
|
|
2463
|
-
CommonModule,
|
|
2464
|
-
FormFieldModule,
|
|
2465
|
-
FormsModule,
|
|
2466
|
-
ClickOutsideModule
|
|
2467
|
-
],
|
|
2455
|
+
imports: [CommonModule, FormFieldModule, FormsModule, ClickOutsideModule],
|
|
2468
2456
|
exports: [
|
|
2469
2457
|
DatepickerComponent,
|
|
2470
2458
|
DatepickerCoreComponent,
|
|
2471
2459
|
DatepickerMonthComponent,
|
|
2472
2460
|
DateToStrPipe,
|
|
2473
2461
|
DatepickerTilesComponent
|
|
2474
|
-
]
|
|
2462
|
+
],
|
|
2463
|
+
providers: [provideNgxMask(maskConfig)]
|
|
2475
2464
|
}]
|
|
2476
2465
|
}] });
|
|
2477
2466
|
|
|
@@ -3218,12 +3207,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3218
3207
|
class ModalComponent {
|
|
3219
3208
|
constructor() {
|
|
3220
3209
|
this.isOpen = true;
|
|
3221
|
-
this.
|
|
3222
|
-
this.
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3210
|
+
this.size = 'S';
|
|
3211
|
+
this.controlsConfig = {
|
|
3212
|
+
leftBtn: {
|
|
3213
|
+
text: 'Отмена',
|
|
3214
|
+
variant: 'secondary',
|
|
3215
|
+
hidden: false,
|
|
3216
|
+
warning: true,
|
|
3217
|
+
disabled: false
|
|
3218
|
+
},
|
|
3219
|
+
rightBtn: {
|
|
3220
|
+
text: 'Сохранить',
|
|
3221
|
+
variant: 'primary',
|
|
3222
|
+
hidden: false,
|
|
3223
|
+
warning: false,
|
|
3224
|
+
disabled: false
|
|
3225
|
+
},
|
|
3226
|
+
closeBtn: {
|
|
3227
|
+
hidden: false
|
|
3228
|
+
}
|
|
3229
|
+
};
|
|
3230
|
+
this.leftBtnClick = new EventEmitter();
|
|
3231
|
+
this.rightBtnClick = new EventEmitter();
|
|
3232
|
+
this.closeBtnClick = new EventEmitter();
|
|
3227
3233
|
}
|
|
3228
3234
|
open() {
|
|
3229
3235
|
this.isOpen = true;
|
|
@@ -3231,48 +3237,46 @@ class ModalComponent {
|
|
|
3231
3237
|
close() {
|
|
3232
3238
|
this.isOpen = false;
|
|
3233
3239
|
}
|
|
3234
|
-
onCloseClick() {
|
|
3235
|
-
this.closeClick.emit();
|
|
3236
|
-
}
|
|
3237
3240
|
onCancelClick() {
|
|
3238
|
-
this.
|
|
3241
|
+
this.leftBtnClick.emit();
|
|
3239
3242
|
}
|
|
3240
3243
|
onSubmitClick() {
|
|
3241
|
-
this.
|
|
3244
|
+
this.rightBtnClick.emit();
|
|
3245
|
+
}
|
|
3246
|
+
onCloseClick() {
|
|
3247
|
+
this.closeBtnClick.emit();
|
|
3242
3248
|
}
|
|
3243
3249
|
ngOnInit() { }
|
|
3244
3250
|
}
|
|
3245
3251
|
ModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3246
|
-
ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ModalComponent, selector: "aeb-modal", inputs: { isOpen: "isOpen",
|
|
3252
|
+
ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ModalComponent, selector: "aeb-modal", inputs: { isOpen: "isOpen", size: "size", controlsConfig: "controlsConfig" }, outputs: { leftBtnClick: "leftBtnClick", rightBtnClick: "rightBtnClick", closeBtnClick: "closeBtnClick" }, ngImport: i0, template: "<div\n class=\"aeb-modal\"\n [ngClass]=\"{\n 'aeb-modal--open': isOpen\n }\"\n>\n <div class=\"aeb-modal__window\" [class]=\"'aeb-modal__window--' + size\">\n <button\n *ngIf=\"!controlsConfig?.closeBtn?.hidden\"\n class=\"aeb-modal__close-btn\"\n (click)=\"onCloseClick()\"\n >\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M7.50781 7.50757L24.4925 24.4922\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M24.4922 7.50757L7.50753 24.4922\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </button>\n <ng-content></ng-content>\n <span class=\"aeb-modal__btn-group\">\n <button\n *ngIf=\"!controlsConfig?.leftBtn?.hidden\"\n aebButton\n [fill]=\"true\"\n [variant]=\"controlsConfig?.leftBtn?.variant ?? 'secondary'\"\n [isWarning]=\"controlsConfig?.leftBtn?.warning ?? true\"\n [disabled]=\"controlsConfig?.leftBtn?.disabled ?? false\"\n (click)=\"onCancelClick()\"\n >\n {{ controlsConfig?.leftBtn?.text }}\n </button>\n <button\n *ngIf=\"!controlsConfig?.rightBtn?.hidden\"\n aebButton\n [fill]=\"true\"\n [variant]=\"controlsConfig?.leftBtn?.variant ?? 'primary'\"\n [isWarning]=\"controlsConfig?.rightBtn?.warning ?? false\"\n [disabled]=\"controlsConfig?.rightBtn?.disabled ?? false\"\n (click)=\"onSubmitClick()\"\n >\n {{ controlsConfig?.rightBtn?.text }}\n </button>\n </span>\n </div>\n</div>\n", styles: [".aeb-modal{position:fixed;top:0;left:0;z-index:10000;display:flex;align-items:center;justify-content:center;width:100vw;height:100vh;pointer-events:none;background-color:#27303e80;opacity:var(--100-total);transition:opacity,.1s}.aeb-modal--open{pointer-events:all;opacity:var(--0-zero)}.aeb-modal__window{position:relative;box-sizing:border-box;display:flex;flex-direction:column;gap:40px;width:632px;padding:48px;margin:16px;background:var(--color-mono-clear);border-radius:var(--border-fully-rounded);box-shadow:var(--light-theme-shadows-shadow-smooth-high)}.aeb-modal__window--S{width:632px}@media screen and (max-width: 800px){.aeb-modal__window--S .aeb-modal__close-btn{top:-66px;right:0}}.aeb-modal__window--M{width:916px}@media screen and (max-width: 1070px){.aeb-modal__window--M .aeb-modal__close-btn{top:-66px;right:0}}.aeb-modal__window--L{width:1200px}@media screen and (max-width: 1350px){.aeb-modal__window--L .aeb-modal__close-btn{top:-66px;right:0}}.aeb-modal__close-btn{position:absolute;top:-50px;right:-50px;display:flex;align-items:center;justify-content:center;width:48px;height:48px;cursor:pointer;background-color:var(--color-mono-clear);border:var(--no-border);border-radius:100px;box-shadow:var(--light-theme-shadows-shadow-smooth-high)}.aeb-modal__btn-group{display:flex;gap:30px;width:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ButtonComponent, selector: "button[aebButton]", inputs: ["fill", "iconSource", "showIconLeft", "showIconRight", "isWarning", "size", "variant"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
3247
3253
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ModalComponent, decorators: [{
|
|
3248
3254
|
type: Component,
|
|
3249
|
-
args: [{ selector: 'aeb-modal', encapsulation: ViewEncapsulation.None, template: "<div\n class=\"aeb-modal\"\n [ngClass]=\"{\n 'aeb-modal--open': isOpen\n }\"\n>\n <div class=\"aeb-modal__window\">\n <button
|
|
3255
|
+
args: [{ selector: 'aeb-modal', encapsulation: ViewEncapsulation.None, template: "<div\n class=\"aeb-modal\"\n [ngClass]=\"{\n 'aeb-modal--open': isOpen\n }\"\n>\n <div class=\"aeb-modal__window\" [class]=\"'aeb-modal__window--' + size\">\n <button\n *ngIf=\"!controlsConfig?.closeBtn?.hidden\"\n class=\"aeb-modal__close-btn\"\n (click)=\"onCloseClick()\"\n >\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M7.50781 7.50757L24.4925 24.4922\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n <path\n d=\"M24.4922 7.50757L7.50753 24.4922\"\n stroke=\"#27303E\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n />\n </svg>\n </button>\n <ng-content></ng-content>\n <span class=\"aeb-modal__btn-group\">\n <button\n *ngIf=\"!controlsConfig?.leftBtn?.hidden\"\n aebButton\n [fill]=\"true\"\n [variant]=\"controlsConfig?.leftBtn?.variant ?? 'secondary'\"\n [isWarning]=\"controlsConfig?.leftBtn?.warning ?? true\"\n [disabled]=\"controlsConfig?.leftBtn?.disabled ?? false\"\n (click)=\"onCancelClick()\"\n >\n {{ controlsConfig?.leftBtn?.text }}\n </button>\n <button\n *ngIf=\"!controlsConfig?.rightBtn?.hidden\"\n aebButton\n [fill]=\"true\"\n [variant]=\"controlsConfig?.leftBtn?.variant ?? 'primary'\"\n [isWarning]=\"controlsConfig?.rightBtn?.warning ?? false\"\n [disabled]=\"controlsConfig?.rightBtn?.disabled ?? false\"\n (click)=\"onSubmitClick()\"\n >\n {{ controlsConfig?.rightBtn?.text }}\n </button>\n </span>\n </div>\n</div>\n", styles: [".aeb-modal{position:fixed;top:0;left:0;z-index:10000;display:flex;align-items:center;justify-content:center;width:100vw;height:100vh;pointer-events:none;background-color:#27303e80;opacity:var(--100-total);transition:opacity,.1s}.aeb-modal--open{pointer-events:all;opacity:var(--0-zero)}.aeb-modal__window{position:relative;box-sizing:border-box;display:flex;flex-direction:column;gap:40px;width:632px;padding:48px;margin:16px;background:var(--color-mono-clear);border-radius:var(--border-fully-rounded);box-shadow:var(--light-theme-shadows-shadow-smooth-high)}.aeb-modal__window--S{width:632px}@media screen and (max-width: 800px){.aeb-modal__window--S .aeb-modal__close-btn{top:-66px;right:0}}.aeb-modal__window--M{width:916px}@media screen and (max-width: 1070px){.aeb-modal__window--M .aeb-modal__close-btn{top:-66px;right:0}}.aeb-modal__window--L{width:1200px}@media screen and (max-width: 1350px){.aeb-modal__window--L .aeb-modal__close-btn{top:-66px;right:0}}.aeb-modal__close-btn{position:absolute;top:-50px;right:-50px;display:flex;align-items:center;justify-content:center;width:48px;height:48px;cursor:pointer;background-color:var(--color-mono-clear);border:var(--no-border);border-radius:100px;box-shadow:var(--light-theme-shadows-shadow-smooth-high)}.aeb-modal__btn-group{display:flex;gap:30px;width:100%}\n"] }]
|
|
3250
3256
|
}], ctorParameters: function () { return []; }, propDecorators: { isOpen: [{
|
|
3251
3257
|
type: Input
|
|
3252
|
-
}],
|
|
3253
|
-
type: Input
|
|
3254
|
-
}], cancelText: [{
|
|
3258
|
+
}], size: [{
|
|
3255
3259
|
type: Input
|
|
3256
|
-
}],
|
|
3260
|
+
}], controlsConfig: [{
|
|
3257
3261
|
type: Input
|
|
3258
|
-
}],
|
|
3262
|
+
}], leftBtnClick: [{
|
|
3259
3263
|
type: Output
|
|
3260
|
-
}],
|
|
3264
|
+
}], rightBtnClick: [{
|
|
3261
3265
|
type: Output
|
|
3262
|
-
}],
|
|
3266
|
+
}], closeBtnClick: [{
|
|
3263
3267
|
type: Output
|
|
3264
3268
|
}] } });
|
|
3265
3269
|
|
|
3266
3270
|
class ModalModule {
|
|
3267
3271
|
}
|
|
3268
3272
|
ModalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3269
|
-
ModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ModalModule, declarations: [ModalComponent], imports: [CommonModule], exports: [ModalComponent] });
|
|
3270
|
-
ModalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ModalModule, imports: [CommonModule] });
|
|
3273
|
+
ModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ModalModule, declarations: [ModalComponent], imports: [CommonModule, ButtonModule], exports: [ModalComponent] });
|
|
3274
|
+
ModalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ModalModule, imports: [CommonModule, ButtonModule] });
|
|
3271
3275
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ModalModule, decorators: [{
|
|
3272
3276
|
type: NgModule,
|
|
3273
3277
|
args: [{
|
|
3274
3278
|
declarations: [ModalComponent],
|
|
3275
|
-
imports: [CommonModule],
|
|
3279
|
+
imports: [CommonModule, ButtonModule],
|
|
3276
3280
|
exports: [ModalComponent]
|
|
3277
3281
|
}]
|
|
3278
3282
|
}] });
|