aeb-ui-kit 4.0.1-preview.694 → 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/modal/modal.component.mjs +37 -21
- package/esm2020/lib/modal/modal.module.mjs +5 -4
- package/fesm2015/aeb-ui-kit.mjs +38 -23
- package/fesm2015/aeb-ui-kit.mjs.map +1 -1
- package/fesm2020/aeb-ui-kit.mjs +38 -23
- package/fesm2020/aeb-ui-kit.mjs.map +1 -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
|
@@ -3207,12 +3207,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3207
3207
|
class ModalComponent {
|
|
3208
3208
|
constructor() {
|
|
3209
3209
|
this.isOpen = true;
|
|
3210
|
-
this.
|
|
3211
|
-
this.
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
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();
|
|
3216
3233
|
}
|
|
3217
3234
|
open() {
|
|
3218
3235
|
this.isOpen = true;
|
|
@@ -3220,48 +3237,46 @@ class ModalComponent {
|
|
|
3220
3237
|
close() {
|
|
3221
3238
|
this.isOpen = false;
|
|
3222
3239
|
}
|
|
3223
|
-
onCloseClick() {
|
|
3224
|
-
this.closeClick.emit();
|
|
3225
|
-
}
|
|
3226
3240
|
onCancelClick() {
|
|
3227
|
-
this.
|
|
3241
|
+
this.leftBtnClick.emit();
|
|
3228
3242
|
}
|
|
3229
3243
|
onSubmitClick() {
|
|
3230
|
-
this.
|
|
3244
|
+
this.rightBtnClick.emit();
|
|
3245
|
+
}
|
|
3246
|
+
onCloseClick() {
|
|
3247
|
+
this.closeBtnClick.emit();
|
|
3231
3248
|
}
|
|
3232
3249
|
ngOnInit() { }
|
|
3233
3250
|
}
|
|
3234
3251
|
ModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3235
|
-
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 });
|
|
3236
3253
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ModalComponent, decorators: [{
|
|
3237
3254
|
type: Component,
|
|
3238
|
-
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"] }]
|
|
3239
3256
|
}], ctorParameters: function () { return []; }, propDecorators: { isOpen: [{
|
|
3240
3257
|
type: Input
|
|
3241
|
-
}],
|
|
3242
|
-
type: Input
|
|
3243
|
-
}], cancelText: [{
|
|
3258
|
+
}], size: [{
|
|
3244
3259
|
type: Input
|
|
3245
|
-
}],
|
|
3260
|
+
}], controlsConfig: [{
|
|
3246
3261
|
type: Input
|
|
3247
|
-
}],
|
|
3262
|
+
}], leftBtnClick: [{
|
|
3248
3263
|
type: Output
|
|
3249
|
-
}],
|
|
3264
|
+
}], rightBtnClick: [{
|
|
3250
3265
|
type: Output
|
|
3251
|
-
}],
|
|
3266
|
+
}], closeBtnClick: [{
|
|
3252
3267
|
type: Output
|
|
3253
3268
|
}] } });
|
|
3254
3269
|
|
|
3255
3270
|
class ModalModule {
|
|
3256
3271
|
}
|
|
3257
3272
|
ModalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3258
|
-
ModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ModalModule, declarations: [ModalComponent], imports: [CommonModule], exports: [ModalComponent] });
|
|
3259
|
-
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] });
|
|
3260
3275
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ModalModule, decorators: [{
|
|
3261
3276
|
type: NgModule,
|
|
3262
3277
|
args: [{
|
|
3263
3278
|
declarations: [ModalComponent],
|
|
3264
|
-
imports: [CommonModule],
|
|
3279
|
+
imports: [CommonModule, ButtonModule],
|
|
3265
3280
|
exports: [ModalComponent]
|
|
3266
3281
|
}]
|
|
3267
3282
|
}] });
|