@evotor-dev/ui-kit 8.8.1 → 8.9.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/esm2022/lib/components/evo-autocomplete/components/evo-autocomplete/evo-autocomplete.component.mjs +3 -3
- package/esm2022/lib/components/evo-datepicker/evo-datepicker.component.mjs +3 -3
- package/esm2022/lib/components/evo-input/evo-input.component.mjs +4 -3
- package/esm2022/lib/components/evo-input-contenteditable/evo-input-contenteditable.component.mjs +8 -4
- package/esm2022/lib/components/evo-input-contenteditable/types/evo-input-contenteditable-size.mjs +2 -0
- package/esm2022/lib/components/evo-paginator/evo-paginator.component.mjs +36 -59
- package/esm2022/lib/components/evo-textarea/evo-textarea.component.mjs +9 -5
- package/esm2022/lib/components/evo-textarea/types/evo-textarea-size.mjs +2 -0
- package/fesm2022/evotor-dev-ui-kit.mjs +84 -100
- package/fesm2022/evotor-dev-ui-kit.mjs.map +1 -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-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
|
@@ -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 readonly 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": { "alias": "multiline"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "maxLines": { "alias": "maxLines"; "required": false; }; "minLines": { "alias": "minLines"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "preventStylingHotkeys": { "alias": "preventStylingHotkeys"; "required": false; }; }, { "blur": "blur"; }, never, never, true, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EvoInputContenteditableComponent, "evo-input-contenteditable", never, { "size": { "alias": "size"; "required": false; }; "multiline": { "alias": "multiline"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "maxLines": { "alias": "maxLines"; "required": false; }; "minLines": { "alias": "minLines"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "preventStylingHotkeys": { "alias": "preventStylingHotkeys"; "required": false; }; }, { "blur": "blur"; }, never, never, true, 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": { "alias": "currentPage"; "required": false; }; "setItemsTotal": { "alias": "itemsTotal"; "required": false; }; "setPageSize": { "alias": "pageSize"; "required": false; };
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EvoPaginatorComponent, "evo-paginator", never, { "setCurrentPage": { "alias": "currentPage"; "required": false; }; "setItemsTotal": { "alias": "itemsTotal"; "required": false; }; "setPageSize": { "alias": "pageSize"; "required": false; }; }, { "pageClick": "pageClick"; }, never, never, true, never>;
|
|
26
31
|
}
|
|
32
|
+
export {};
|
|
@@ -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": { "alias": "placeholder"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; }, { "blur": "blur"; }, never, never, true, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EvoTextareaComponent, "evo-textarea", never, { "size": { "alias": "size"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; }, { "blur": "blur"; }, never, never, true, 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;
|