@evotor-dev/ui-kit 7.5.0 → 7.7.0
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/assets/color-icons/alert-triangle.svg +2 -5
- package/assets/color-icons/assortiment.svg +15 -22
- package/assets/color-icons/bank.svg +10 -21
- package/assets/color-icons/battery.svg +7 -15
- package/assets/color-icons/cash.svg +10 -25
- package/assets/color-icons/check.svg +2 -3
- package/assets/color-icons/document-signed.svg +8 -21
- package/assets/color-icons/document.svg +5 -13
- package/assets/color-icons/eye-off.svg +7 -17
- package/assets/color-icons/gift.svg +3 -7
- package/assets/color-icons/gym.svg +8 -14
- package/assets/color-icons/money.svg +7 -17
- package/assets/color-icons/newspaper.svg +13 -25
- package/assets/color-icons/number.svg +1 -2
- package/assets/color-icons/rocket.svg +5 -11
- package/assets/color-icons/sad.svg +9 -21
- package/assets/color-icons/shop.svg +11 -27
- package/assets/color-icons/terminal-size.svg +11 -25
- package/assets/color-icons/usb.svg +17 -27
- package/esm2020/lib/components/evo-autocomplete/components/evo-autocomplete/evo-autocomplete.component.mjs +2 -2
- package/esm2020/lib/components/evo-datepicker/evo-datepicker.component.mjs +2 -2
- package/esm2020/lib/components/evo-input/evo-input.component.mjs +8 -7
- package/esm2020/lib/components/evo-input/evo-input.module.mjs +5 -2
- package/esm2020/lib/components/evo-input-contenteditable/evo-input-contenteditable.component.mjs +8 -4
- package/esm2020/lib/components/evo-input-contenteditable/types/evo-input-contenteditable-size.mjs +2 -0
- package/esm2020/lib/components/evo-paginator/evo-paginator.component.mjs +35 -58
- package/esm2020/lib/components/evo-paginator/evo-paginator.module.mjs +6 -2
- package/esm2020/lib/components/evo-select/evo-select.component.mjs +2 -2
- package/esm2020/lib/components/evo-textarea/evo-textarea.component.mjs +9 -5
- package/esm2020/lib/components/evo-textarea/types/evo-textarea-size.mjs +2 -0
- package/fesm2015/evotor-dev-ui-kit.mjs +175 -186
- package/fesm2015/evotor-dev-ui-kit.mjs.map +1 -1
- package/fesm2020/evotor-dev-ui-kit.mjs +175 -186
- package/fesm2020/evotor-dev-ui-kit.mjs.map +1 -1
- package/lib/components/evo-input/evo-input.module.d.ts +2 -1
- package/lib/components/evo-input-contenteditable/evo-input-contenteditable.component.d.ts +3 -1
- package/lib/components/evo-input-contenteditable/types/evo-input-contenteditable-size.d.ts +2 -0
- package/lib/components/evo-paginator/evo-paginator.component.d.ts +16 -10
- package/lib/components/evo-paginator/evo-paginator.module.d.ts +2 -1
- package/lib/components/evo-textarea/evo-textarea.component.d.ts +3 -1
- package/lib/components/evo-textarea/types/evo-textarea-size.d.ts +2 -0
- package/package.json +1 -1
- package/styles/mixins/_evo-input-mixins.scss +4 -2
- package/styles/variables.scss +3 -0
|
@@ -7,8 +7,9 @@ import * as i5 from "../../evo-ui-kit.module";
|
|
|
7
7
|
import * as i6 from "../evo-control-error/evo-control-error.module";
|
|
8
8
|
import * as i7 from "angular-imask";
|
|
9
9
|
import * as i8 from "../evo-icon/evo-icon.module";
|
|
10
|
+
import * as i9 from "../evo-loader/evo-loader.module";
|
|
10
11
|
export declare class EvoInputModule {
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<EvoInputModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EvoInputModule, [typeof i1.EvoInputComponent, typeof i2.EvoInputIconDirective, typeof i2.EvoInputIconDirective], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.EvoUiKitModule, typeof i6.EvoControlErrorModule, typeof i7.IMaskModule, typeof i8.EvoIconModule], [typeof i1.EvoInputComponent, typeof i2.EvoInputIconDirective]>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EvoInputModule, [typeof i1.EvoInputComponent, typeof i2.EvoInputIconDirective, typeof i2.EvoInputIconDirective], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.EvoUiKitModule, typeof i6.EvoControlErrorModule, typeof i7.IMaskModule, typeof i8.EvoIconModule, typeof i9.EvoLoaderModule], [typeof i1.EvoInputComponent, typeof i2.EvoInputIconDirective]>;
|
|
13
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<EvoInputModule>;
|
|
14
15
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { EvoBaseControl } from '../../common/evo-base-control';
|
|
4
|
+
import { EvoInputContenteditableSize } from './types/evo-input-contenteditable-size';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class EvoInputContenteditableComponent extends EvoBaseControl implements OnInit, ControlValueAccessor {
|
|
6
7
|
private cd;
|
|
@@ -8,6 +9,7 @@ export declare class EvoInputContenteditableComponent extends EvoBaseControl imp
|
|
|
8
9
|
static readonly STYLE_KEYCODES: number[];
|
|
9
10
|
readonly contenteditable: ElementRef;
|
|
10
11
|
blur: EventEmitter<FocusEvent>;
|
|
12
|
+
size: EvoInputContenteditableSize;
|
|
11
13
|
multiline: boolean;
|
|
12
14
|
placeholder: string;
|
|
13
15
|
autoFocus: boolean;
|
|
@@ -40,5 +42,5 @@ export declare class EvoInputContenteditableComponent extends EvoBaseControl imp
|
|
|
40
42
|
private clearMultiline;
|
|
41
43
|
private wrapSetValue;
|
|
42
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<EvoInputContenteditableComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EvoInputContenteditableComponent, "evo-input-contenteditable", never, { "multiline": "multiline"; "placeholder": "placeholder"; "autoFocus": "autoFocus"; "maxLines": "maxLines"; "minLines": "minLines"; "disabled": "disabled"; "preventStylingHotkeys": "preventStylingHotkeys"; }, { "blur": "blur"; }, never, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EvoInputContenteditableComponent, "evo-input-contenteditable", never, { "size": "size"; "multiline": "multiline"; "placeholder": "placeholder"; "autoFocus": "autoFocus"; "maxLines": "maxLines"; "minLines": "minLines"; "disabled": "disabled"; "preventStylingHotkeys": "preventStylingHotkeys"; }, { "blur": "blur"; }, never, never>;
|
|
44
46
|
}
|
|
@@ -6,21 +6,27 @@ export interface PageEvent {
|
|
|
6
6
|
pageSize: number;
|
|
7
7
|
pagesTotal: number;
|
|
8
8
|
}
|
|
9
|
+
declare enum PaginatorLayout {
|
|
10
|
+
SHORT = "SHORT",
|
|
11
|
+
BEGINNING = "BEGINNING",
|
|
12
|
+
MIDDLE = "MIDDLE",
|
|
13
|
+
END = "END"
|
|
14
|
+
}
|
|
9
15
|
export declare class EvoPaginatorComponent {
|
|
16
|
+
set setCurrentPage(value: string | number);
|
|
17
|
+
set setItemsTotal(itemsTotal: number);
|
|
18
|
+
set setPageSize(pageSize: number);
|
|
10
19
|
pageClick: EventEmitter<PageEvent>;
|
|
20
|
+
currentPage: number;
|
|
11
21
|
pagesTotal: number;
|
|
12
|
-
|
|
13
|
-
|
|
22
|
+
readonly CORNER_STATE_PAGE_MAX_OFFSET = 3;
|
|
23
|
+
readonly PaginatorLayout: typeof PaginatorLayout;
|
|
14
24
|
private pageSize;
|
|
15
25
|
private itemsTotal;
|
|
16
|
-
|
|
17
|
-
set setCurrentPage(value: string | number);
|
|
18
|
-
set setItemsTotal(itemsTotal: number);
|
|
19
|
-
set setPageSize(pageSize: number);
|
|
20
|
-
set setMaxVisiblePages(visiblePagesLimit: number);
|
|
26
|
+
get currentLayout(): PaginatorLayout;
|
|
21
27
|
onPageClick(page: number): void;
|
|
22
|
-
|
|
23
|
-
private updatePagesList;
|
|
28
|
+
isSelectedPage(page: string | number): boolean;
|
|
24
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<EvoPaginatorComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EvoPaginatorComponent, "evo-paginator", never, { "setCurrentPage": "currentPage"; "setItemsTotal": "itemsTotal"; "setPageSize": "pageSize";
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EvoPaginatorComponent, "evo-paginator", never, { "setCurrentPage": "currentPage"; "setItemsTotal": "itemsTotal"; "setPageSize": "pageSize"; }, { "pageClick": "pageClick"; }, never, never>;
|
|
26
31
|
}
|
|
32
|
+
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./evo-paginator.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../../evo-ui-kit.module";
|
|
4
5
|
export declare class EvoPaginatorModule {
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<EvoPaginatorModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EvoPaginatorModule, [typeof i1.EvoPaginatorComponent], [typeof i2.CommonModule], [typeof i1.EvoPaginatorComponent]>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EvoPaginatorModule, [typeof i1.EvoPaginatorComponent], [typeof i2.CommonModule, typeof i3.EvoUiKitModule], [typeof i1.EvoPaginatorComponent]>;
|
|
7
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<EvoPaginatorModule>;
|
|
8
9
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { EvoBaseControl } from '../../common/evo-base-control';
|
|
4
|
+
import { EvoTextareaSize } from './types/evo-textarea-size';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class EvoTextareaComponent extends EvoBaseControl implements ControlValueAccessor {
|
|
7
|
+
size: EvoTextareaSize;
|
|
6
8
|
placeholder: string;
|
|
7
9
|
rows: number;
|
|
8
10
|
blur: EventEmitter<void>;
|
|
@@ -23,5 +25,5 @@ export declare class EvoTextareaComponent extends EvoBaseControl implements Cont
|
|
|
23
25
|
setDisabledState(isDisabled: boolean): void;
|
|
24
26
|
writeValue(value: string): void;
|
|
25
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<EvoTextareaComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EvoTextareaComponent, "evo-textarea", never, { "placeholder": "placeholder"; "rows": "rows"; }, { "blur": "blur"; }, never, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EvoTextareaComponent, "evo-textarea", never, { "size": "size"; "placeholder": "placeholder"; "rows": "rows"; }, { "blur": "blur"; }, never, never>;
|
|
27
29
|
}
|
package/package.json
CHANGED
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
* theme: default | rounded
|
|
6
6
|
*/
|
|
7
7
|
@mixin evo-input($size: normal, $theme: default) {
|
|
8
|
-
--evo-input-height:
|
|
8
|
+
--evo-input-height: 40px;
|
|
9
9
|
--evo-input-border-radius: 4px;
|
|
10
|
-
--evo-input-font-size:
|
|
10
|
+
--evo-input-font-size: 14px;
|
|
11
|
+
--evo-input-line-height: 24px;
|
|
11
12
|
|
|
12
13
|
@if ($size == small) {
|
|
13
14
|
@if ($theme == default) {
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
font-weight: normal;
|
|
30
31
|
font-size: var(--evo-input-font-size);
|
|
31
32
|
font-family: var(--evo-font);
|
|
33
|
+
line-height: var(--evo-input-line-height);
|
|
32
34
|
white-space: nowrap;
|
|
33
35
|
background-color: $color-white;
|
|
34
36
|
border: 1px solid $color-disabled;
|
package/styles/variables.scss
CHANGED
|
@@ -51,6 +51,9 @@ $color-grey-active: #DCDDDF;
|
|
|
51
51
|
$color-icon-dark-hover: #a7c1c6;
|
|
52
52
|
$color-icon-dark-active: #829fa6;
|
|
53
53
|
|
|
54
|
+
$color-cool-gray: #001D26;
|
|
55
|
+
$color-cool-gray-04: rgba($color-cool-gray, 0.04);
|
|
56
|
+
|
|
54
57
|
$color-graph-1: #EB5365;
|
|
55
58
|
$color-graph-2: #9474C9;
|
|
56
59
|
$color-graph-3: #41B2E5;
|