@koobiq/components 18.20.0 → 18.21.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/breadcrumbs/breadcrumbs-tokens.scss +1 -0
- package/breadcrumbs/breadcrumbs.d.ts +13 -2
- package/breadcrumbs/breadcrumbs.scss +72 -18
- package/button/button-tokens.scss +1 -1
- package/button/button.scss +2 -15
- package/checkbox/checkbox-tokens.scss +2 -0
- package/checkbox/checkbox.scss +4 -4
- package/core/formatters/date/formatter.d.ts +3 -2
- package/core/locales/locale-service.d.ts +5 -1
- package/core/styles/theming/scrollbar-tokens.scss +10 -4
- package/dropdown/dropdown.scss +20 -5
- package/esm2022/breadcrumbs/breadcrumbs.mjs +18 -7
- package/esm2022/button/button.component.mjs +2 -2
- package/esm2022/checkbox/checkbox.mjs +2 -2
- package/esm2022/core/formatters/date/formatter.mjs +13 -4
- package/esm2022/core/locales/en-US.mjs +29 -29
- package/esm2022/core/locales/es-LA.mjs +29 -29
- package/esm2022/core/locales/fa-IR.mjs +29 -29
- package/esm2022/core/locales/locale-service.mjs +38 -3
- package/esm2022/core/locales/pt-BR.mjs +29 -29
- package/esm2022/core/locales/tk-TM.mjs +29 -29
- package/esm2022/core/locales/zh-CN.mjs +29 -29
- package/esm2022/core/pop-up/pop-up-trigger.mjs +2 -2
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/filter-bar/filter-bar.mjs +3 -3
- package/esm2022/filter-bar/pipes/pipe-date.mjs +37 -22
- package/esm2022/filter-bar/pipes/pipe-datetime.mjs +38 -23
- package/esm2022/filter-bar/pipes/pipe-text.mjs +4 -4
- package/esm2022/form-field/form-field.mjs +2 -2
- package/esm2022/form-field/validate.directive.mjs +19 -9
- package/esm2022/input/input-number.mjs +2 -2
- package/esm2022/navbar/navbar-item.component.mjs +6 -9
- package/esm2022/overflow-items/overflow-items.mjs +24 -3
- package/esm2022/progress-spinner/progress-spinner.component.mjs +2 -2
- package/esm2022/scrollbar/scrollbar.component.mjs +3 -3
- package/esm2022/select/select.component.mjs +3 -3
- package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
- package/esm2022/sidepanel/sidepanel-directives.mjs +16 -5
- package/esm2022/textarea/textarea.component.mjs +35 -9
- package/esm2022/timezone/timezone-select.component.mjs +2 -2
- package/esm2022/top-bar/top-bar.mjs +2 -2
- package/esm2022/tree-select/tree-select.component.mjs +3 -3
- package/fesm2022/koobiq-components-breadcrumbs.mjs +18 -7
- package/fesm2022/koobiq-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +2 -2
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-checkbox.mjs +2 -2
- package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +1012 -970
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +2 -2
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-filter-bar.mjs +78 -48
- package/fesm2022/koobiq-components-filter-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +17 -8
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +1 -1
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +5 -8
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-overflow-items.mjs +24 -3
- package/fesm2022/koobiq-components-overflow-items.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-spinner.mjs +2 -2
- package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
- package/fesm2022/koobiq-components-scrollbar.mjs +2 -2
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +2 -2
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +17 -6
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +34 -8
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +2 -2
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-top-bar.mjs +2 -2
- package/fesm2022/koobiq-components-top-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +2 -2
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/filter-bar/filter-bar.scss +1 -0
- package/filter-bar/pipes/pipe-date.d.ts +3 -1
- package/filter-bar/pipes/pipe-date.scss +7 -0
- package/filter-bar/pipes/pipe-datetime.d.ts +3 -1
- package/form-field/_form-field-theme.scss +7 -3
- package/form-field/validate.directive.d.ts +4 -2
- package/link/_link-theme.scss +6 -16
- package/navbar/navbar-item.component.d.ts +1 -2
- package/overflow-items/overflow-items.d.ts +17 -1
- package/package.json +5 -5
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/prebuilt-themes/theme.css +1 -1
- package/progress-spinner/progress-spinner.scss +10 -4
- package/schematics/ng-add/index.js +3 -3
- package/scrollbar/scrollbar-tokens.scss +10 -4
- package/select/_select-theme.scss +4 -1
- package/sidepanel/sidepanel-directives.d.ts +6 -1
- package/sidepanel/sidepanel.scss +9 -3
- package/textarea/textarea.component.d.ts +16 -3
- package/textarea/textarea.scss +4 -0
- package/top-bar/top-bar-tokens.scss +2 -2
- package/top-bar/top-bar.scss +1 -1
- package/tree-select/_tree-select-theme.scss +4 -1
|
@@ -27,9 +27,15 @@ export declare class KbqTextarea extends KbqTextareaMixinBase implements KbqForm
|
|
|
27
27
|
protected elementRef: ElementRef;
|
|
28
28
|
private parent;
|
|
29
29
|
private ngZone;
|
|
30
|
+
/** Parameter enables or disables the ability to automatically increase the height.
|
|
31
|
+
* If set to false, the textarea becomes vertically resizable. */
|
|
32
|
+
set canGrow(value: boolean);
|
|
33
|
+
get canGrow(): boolean;
|
|
30
34
|
protected readonly isBrowser: boolean;
|
|
31
35
|
protected readonly renderer: Renderer2;
|
|
32
|
-
|
|
36
|
+
private _canGrow;
|
|
37
|
+
/** Maximum number of lines to which the textarea will grow. Default unlimited */
|
|
38
|
+
maxRows: number;
|
|
33
39
|
/** An object used to control when error messages are shown. */
|
|
34
40
|
errorStateMatcher: ErrorStateMatcher;
|
|
35
41
|
/**
|
|
@@ -64,6 +70,8 @@ export declare class KbqTextarea extends KbqTextareaMixinBase implements KbqForm
|
|
|
64
70
|
* @docs-private
|
|
65
71
|
*/
|
|
66
72
|
placeholder: string;
|
|
73
|
+
/** Distance from the last line to the bottom border */
|
|
74
|
+
freeRowsHeight: number;
|
|
67
75
|
/**
|
|
68
76
|
* Implemented as part of KbqFormFieldControl.
|
|
69
77
|
* @docs-private
|
|
@@ -76,6 +84,9 @@ export declare class KbqTextarea extends KbqTextareaMixinBase implements KbqForm
|
|
|
76
84
|
*/
|
|
77
85
|
get value(): string;
|
|
78
86
|
set value(value: string);
|
|
87
|
+
/** Flag that will be set to true when the maximum number of lines is reached.
|
|
88
|
+
* Maximum number of rows can be set using the maxRows input. */
|
|
89
|
+
get maxRowLimitReached(): boolean;
|
|
79
90
|
protected uid: string;
|
|
80
91
|
protected previousNativeValue: any;
|
|
81
92
|
private _disabled;
|
|
@@ -84,8 +95,8 @@ export declare class KbqTextarea extends KbqTextareaMixinBase implements KbqForm
|
|
|
84
95
|
private valueAccessor;
|
|
85
96
|
private growSubscription;
|
|
86
97
|
private lineHeight;
|
|
87
|
-
private freeRowsHeight;
|
|
88
98
|
private minHeight;
|
|
99
|
+
private rowsCount;
|
|
89
100
|
constructor(elementRef: ElementRef, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, defaultErrorStateMatcher: ErrorStateMatcher, inputValueAccessor: any, parent: any, ngZone: NgZone);
|
|
90
101
|
ngOnInit(): void;
|
|
91
102
|
ngOnChanges(): void;
|
|
@@ -113,5 +124,7 @@ export declare class KbqTextarea extends KbqTextareaMixinBase implements KbqForm
|
|
|
113
124
|
/** Checks whether the textarea is invalid based on the native validation. */
|
|
114
125
|
protected isBadInput(): boolean;
|
|
115
126
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTextarea, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, null, { optional: true; self: true; }, { optional: true; host: true; }, null]>;
|
|
116
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTextarea, "textarea[kbqTextarea]", ["kbqTextarea"], { "canGrow": { "alias": "canGrow"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
127
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTextarea, "textarea[kbqTextarea]", ["kbqTextarea"], { "canGrow": { "alias": "canGrow"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "freeRowsHeight": { "alias": "freeRowsHeight"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
128
|
+
static ngAcceptInputType_canGrow: unknown;
|
|
129
|
+
static ngAcceptInputType_freeRowsHeight: unknown;
|
|
117
130
|
}
|
package/textarea/textarea.scss
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
--kbq-top-bar-position: sticky;
|
|
3
3
|
--kbq-top-bar-background: var(--kbq-background-bg);
|
|
4
4
|
--kbq-top-bar-spacer-min-width: 80px;
|
|
5
|
-
--kbq-top-bar-padding-vertical: var(--kbq-size-
|
|
6
|
-
--kbq-top-bar-padding-horizontal: var(--kbq-size-
|
|
5
|
+
--kbq-top-bar-padding-vertical: var(--kbq-size-xl);
|
|
6
|
+
--kbq-top-bar-padding-horizontal: var(--kbq-size-xxl);
|
|
7
7
|
--kbq-top-bar-border-radius: 0;
|
|
8
8
|
--kbq-top-bar-left-gap: 0;
|
|
9
9
|
--kbq-top-bar-right-gap: var(--kbq-size-s);
|
package/top-bar/top-bar.scss
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
position: var(--kbq-top-bar-position);
|
|
11
11
|
background-color: var(--kbq-top-bar-background);
|
|
12
12
|
padding: var(--kbq-top-bar-padding-vertical) var(--kbq-top-bar-padding-horizontal);
|
|
13
|
-
border: var(--kbq-top-bar-border-radius);
|
|
13
|
+
border-radius: var(--kbq-top-bar-border-radius);
|
|
14
14
|
|
|
15
15
|
.kbq-top-bar-spacer {
|
|
16
16
|
height: 100%;
|
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
.kbq-tree-select {
|
|
5
5
|
color: var(--kbq-foreground-contrast);
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// Invalid by `KbqValidateDirective`
|
|
8
|
+
&.kbq-control_has-validate-directive.ng-invalid,
|
|
9
|
+
// Invalid by control `ErrorStateMatcher`
|
|
10
|
+
&.kbq-invalid {
|
|
8
11
|
color: var(--kbq-error-default);
|
|
9
12
|
|
|
10
13
|
.kbq-select__placeholder {
|