@koobiq/components 17.4.0 → 17.5.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/alert/_alert-theme.scss +16 -20
- package/alert/alert-tokens.scss +132 -0
- package/alert/alert.component.scss +5 -0
- package/autocomplete/_autocomplete-theme.scss +3 -5
- package/autocomplete/autocomplete-tokens.scss +16 -0
- package/autocomplete/autocomplete.scss +4 -0
- package/badge/_badge-theme.scss +22 -25
- package/badge/badge-tokens.scss +185 -0
- package/badge/badge.component.scss +5 -0
- package/button/_button-theme.scss +20 -29
- package/button/button-tokens.scss +278 -0
- package/button/button.scss +5 -0
- package/button-toggle/_button-toggle-theme.scss +16 -28
- package/button-toggle/button-toggle-tokens.scss +78 -0
- package/button-toggle/button-toggle.scss +7 -2
- package/checkbox/_checkbox-theme.scss +27 -58
- package/checkbox/checkbox-tokens.scss +140 -0
- package/checkbox/checkbox.scss +6 -4
- package/core/highlight/_highlight-theme.scss +1 -1
- package/core/pop-up/pop-up-styles.d.ts +2 -2
- package/core/pop-up/pop-up-trigger.d.ts +8 -9
- package/core/pop-up/pop-up.d.ts +3 -3
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +12 -15
- package/core/selection/pseudo-checkbox/pseudo-checkbox-tokens.scss +140 -0
- package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +3 -2
- package/core/styles/_koobiq-theme.scss +3 -42
- package/datepicker/_datepicker-theme.scss +17 -43
- package/datepicker/calendar.scss +0 -3
- package/datepicker/datepicker-content.scss +5 -6
- package/datepicker/datepicker-tokens.scss +59 -0
- package/dropdown/_dropdown-theme.scss +15 -24
- package/dropdown/dropdown-tokens.scss +111 -0
- package/dropdown/dropdown.scss +5 -0
- package/ellipsis-center/ellipsis-center.directive.d.ts +2 -6
- package/esm2022/alert/alert.component.mjs +3 -3
- package/esm2022/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2022/badge/badge.component.mjs +3 -3
- package/esm2022/button/button.component.mjs +3 -3
- package/esm2022/button-toggle/button-toggle.component.mjs +3 -3
- package/esm2022/checkbox/checkbox.mjs +3 -3
- package/esm2022/core/common-behaviors/common-module.mjs +2 -2
- package/esm2022/core/pop-up/pop-up-styles.mjs +7 -9
- package/esm2022/core/pop-up/pop-up-trigger.mjs +13 -16
- package/esm2022/core/pop-up/pop-up.mjs +7 -6
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/datepicker.component.mjs +3 -3
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +12 -23
- package/esm2022/form-field/form-field.mjs +3 -3
- package/esm2022/form-field/hint.mjs +3 -3
- package/esm2022/form-field/password-hint.mjs +2 -2
- package/esm2022/form-field/password-toggle.mjs +10 -21
- package/esm2022/icon/icon-button.component.mjs +3 -3
- package/esm2022/icon/icon-item.component.mjs +3 -3
- package/esm2022/icon/icon.component.mjs +3 -3
- package/esm2022/markdown/markdown.component.mjs +2 -2
- package/esm2022/modal/modal-ref.class.mjs +1 -1
- package/esm2022/modal/modal.component.mjs +1 -1
- package/esm2022/modal/modal.service.mjs +16 -8
- package/esm2022/modal/modal.type.mjs +1 -1
- package/esm2022/navbar/navbar-item.component.mjs +16 -30
- package/esm2022/popover/popover-confirm.component.mjs +11 -20
- package/esm2022/popover/popover.component.mjs +22 -29
- package/esm2022/select/select-option.directive.mjs +7 -18
- package/esm2022/timezone/timezone-option.directive.mjs +7 -18
- package/esm2022/title/title.directive.mjs +7 -18
- package/esm2022/tooltip/tooltip.component.mjs +26 -45
- package/fesm2022/koobiq-components-alert.mjs +2 -2
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-autocomplete.mjs +2 -2
- package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
- package/fesm2022/koobiq-components-badge.mjs +2 -2
- package/fesm2022/koobiq-components-badge.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +2 -2
- package/fesm2022/koobiq-components-button-toggle.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 +29 -32
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +2 -2
- package/fesm2022/koobiq-components-datepicker.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-ellipsis-center.mjs +11 -19
- package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +26 -33
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +6 -6
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +2 -2
- package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +15 -7
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +14 -26
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +29 -40
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +14 -20
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +10 -17
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +6 -14
- package/fesm2022/koobiq-components-title.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +25 -42
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/form-field/_form-field-theme.scss +21 -47
- package/form-field/_hint-theme.scss +13 -17
- package/form-field/form-field-tokens.scss +69 -0
- package/form-field/form-field.scss +4 -2
- package/form-field/hint-tokens.scss +60 -0
- package/form-field/hint.scss +5 -0
- package/form-field/password-toggle.d.ts +3 -6
- package/icon/_icon-button-theme.scss +27 -65
- package/icon/_icon-item-theme.scss +14 -17
- package/icon/_icon-theme.scss +7 -12
- package/icon/icon-button-tokens.scss +67 -0
- package/icon/icon-button.scss +4 -0
- package/icon/icon-item-tokens.scss +52 -0
- package/icon/icon-item.scss +4 -0
- package/icon/icon-tokens.scss +17 -0
- package/icon/icon.scss +4 -0
- package/input/_input-theme.scss +1 -5
- package/input/input-tokens.scss +12 -0
- package/input/input.scss +4 -5
- package/link/_link-theme.scss +18 -26
- package/link/link-tokens.scss +67 -0
- package/markdown/markdown.scss +6 -0
- package/modal/modal-ref.class.d.ts +2 -2
- package/modal/modal.component.d.ts +2 -2
- package/modal/modal.service.d.ts +12 -7
- package/modal/modal.type.d.ts +3 -0
- package/navbar/navbar-item.component.d.ts +5 -7
- package/package.json +7 -7
- package/popover/popover-confirm.component.d.ts +3 -6
- package/popover/popover.component.d.ts +4 -6
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/schematics/ng-add/index.js +4 -4
- package/select/select-option.directive.d.ts +3 -6
- package/timezone/timezone-option.directive.d.ts +3 -6
- package/title/title.directive.d.ts +3 -6
- package/tooltip/tooltip.component.d.ts +8 -11
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
.kbq-link {
|
|
2
|
+
--kbq-link-size-state-focused-outline-offset: 0px;
|
|
3
|
+
--kbq-link-size-state-focused-outline-width: 2px;
|
|
4
|
+
--kbq-link-size-compact-content-padding: 2px;
|
|
5
|
+
--kbq-link-size-normal-content-padding: 2px;
|
|
6
|
+
--kbq-link-size-big-content-padding: 4px;
|
|
7
|
+
--kbq-link-font-compact-font-size: 12px;
|
|
8
|
+
--kbq-link-font-compact-line-height: 16px;
|
|
9
|
+
--kbq-link-font-compact-letter-spacing: normal;
|
|
10
|
+
--kbq-link-font-compact-font-weight: normal;
|
|
11
|
+
--kbq-link-font-compact-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial,
|
|
12
|
+
sans-serif;
|
|
13
|
+
--kbq-link-font-compact-text-transform: null;
|
|
14
|
+
--kbq-link-font-compact-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
15
|
+
--kbq-link-font-normal-font-size: 14px;
|
|
16
|
+
--kbq-link-font-normal-line-height: 20px;
|
|
17
|
+
--kbq-link-font-normal-letter-spacing: -0.006em;
|
|
18
|
+
--kbq-link-font-normal-font-weight: normal;
|
|
19
|
+
--kbq-link-font-normal-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial,
|
|
20
|
+
sans-serif;
|
|
21
|
+
--kbq-link-font-normal-text-transform: null;
|
|
22
|
+
--kbq-link-font-normal-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
23
|
+
--kbq-link-font-big-font-size: 16px;
|
|
24
|
+
--kbq-link-font-big-line-height: 24px;
|
|
25
|
+
--kbq-link-font-big-letter-spacing: -0.011em;
|
|
26
|
+
--kbq-link-font-big-font-weight: normal;
|
|
27
|
+
--kbq-link-font-big-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial,
|
|
28
|
+
sans-serif;
|
|
29
|
+
--kbq-link-font-big-text-transform: null;
|
|
30
|
+
--kbq-link-font-big-font-feature-settings: 'calt', 'kern', 'liga', 'ss01', 'ss04';
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(.kbq-light, .theme-light, .kbq-theme-light) {
|
|
34
|
+
--kbq-link-text: hsla(216, 100%, 50%, 100%);
|
|
35
|
+
--kbq-link-border-bottom: hsla(216, 100%, 85%, 100%);
|
|
36
|
+
--kbq-link-state-visited-text: hsla(277, 72%, 45%, 100%);
|
|
37
|
+
--kbq-link-state-visited-border-bottom: hsla(277, 72%, 80%, 100%);
|
|
38
|
+
--kbq-link-state-visited-hover-text: hsla(277, 72%, 40%, 100%);
|
|
39
|
+
--kbq-link-state-visited-hover-border-bottom: hsla(277, 72%, 80%, 100%);
|
|
40
|
+
--kbq-link-state-visited-active-text: hsla(277, 72%, 35%, 100%);
|
|
41
|
+
--kbq-link-state-visited-active-border-bottom: hsla(277, 72%, 80%, 100%);
|
|
42
|
+
--kbq-link-state-hover-text: hsla(216, 100%, 45%, 100%);
|
|
43
|
+
--kbq-link-state-hover-border-bottom: hsla(216, 100%, 85%, 100%);
|
|
44
|
+
--kbq-link-state-active-text: hsla(216, 100%, 40%, 100%);
|
|
45
|
+
--kbq-link-state-active-border-bottom: hsla(216, 100%, 85%, 100%);
|
|
46
|
+
--kbq-link-state-focused-outline: hsla(216, 100%, 60%, 100%);
|
|
47
|
+
--kbq-link-state-disabled-text: hsla(229, 15%, 15%, 32%);
|
|
48
|
+
--kbq-link-state-disabled-border-bottom: hsla(229, 15%, 15%, 32%);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:where(.kbq-dark, .theme-dark, .kbq-theme-dark) {
|
|
52
|
+
--kbq-link-text: hsla(216, 100%, 65%, 100%);
|
|
53
|
+
--kbq-link-border-bottom: hsla(216, 100%, 27%, 100%);
|
|
54
|
+
--kbq-link-state-visited-text: hsla(277, 72%, 50%, 100%);
|
|
55
|
+
--kbq-link-state-visited-border-bottom: hsla(277, 72%, 30%, 100%);
|
|
56
|
+
--kbq-link-state-visited-hover-text: hsla(277, 72%, 55%, 100%);
|
|
57
|
+
--kbq-link-state-visited-hover-border-bottom: hsla(277, 72%, 30%, 100%);
|
|
58
|
+
--kbq-link-state-visited-active-text: hsla(277, 72%, 60%, 100%);
|
|
59
|
+
--kbq-link-state-visited-active-border-bottom: hsla(277, 72%, 30%, 100%);
|
|
60
|
+
--kbq-link-state-hover-text: hsla(216, 100%, 65%, 100%);
|
|
61
|
+
--kbq-link-state-hover-border-bottom: hsla(216, 100%, 27%, 100%);
|
|
62
|
+
--kbq-link-state-active-text: hsla(216, 100%, 70%, 100%);
|
|
63
|
+
--kbq-link-state-active-border-bottom: hsla(216, 100%, 27%, 100%);
|
|
64
|
+
--kbq-link-state-focused-outline: hsla(216, 100%, 60%, 100%);
|
|
65
|
+
--kbq-link-state-disabled-text: hsla(229, 15%, 40%, 100%);
|
|
66
|
+
--kbq-link-state-disabled-border-bottom: hsla(229, 15%, 50%, 32%);
|
|
67
|
+
}
|
package/markdown/markdown.scss
CHANGED
|
@@ -22,6 +22,12 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
22
22
|
.kbq-markdown__h#{$i} {
|
|
23
23
|
margin-top: kbq-css-variable(markdown-h#{$i}-size-margin-top);
|
|
24
24
|
margin-bottom: kbq-css-variable(markdown-h#{$i}-size-margin-bottom);
|
|
25
|
+
|
|
26
|
+
@for $i from 1 through 6 {
|
|
27
|
+
& + .kbq-markdown__h#{$i} {
|
|
28
|
+
margin-top: 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
25
31
|
}
|
|
26
32
|
}
|
|
27
33
|
|
|
@@ -4,9 +4,9 @@ import { KbqModalComponent } from './modal.component';
|
|
|
4
4
|
* API class that public to users to handle the modal instance.
|
|
5
5
|
* KbqModalRef is aim to avoid accessing to the modal instance directly by users.
|
|
6
6
|
*/
|
|
7
|
-
export declare abstract class KbqModalRef<C = any, R =
|
|
7
|
+
export declare abstract class KbqModalRef<C = any, R = unknown> {
|
|
8
8
|
abstract afterOpen: Observable<void>;
|
|
9
|
-
abstract afterClose: Observable<R>;
|
|
9
|
+
abstract afterClose: Observable<R | undefined>;
|
|
10
10
|
abstract open(): void;
|
|
11
11
|
abstract close(result?: R): void;
|
|
12
12
|
abstract destroy(result?: R): void;
|
|
@@ -47,7 +47,7 @@ export declare class KbqModalComponent<T = any, R = any> extends KbqModalRef<T,
|
|
|
47
47
|
kbqMaskStyle: object;
|
|
48
48
|
kbqBodyStyle: object;
|
|
49
49
|
kbqAfterOpen: EventEmitter<void>;
|
|
50
|
-
kbqAfterClose: EventEmitter<R>;
|
|
50
|
+
kbqAfterClose: EventEmitter<R | undefined>;
|
|
51
51
|
kbqOkText: string;
|
|
52
52
|
kbqOkType: KbqComponentColors;
|
|
53
53
|
kbqRestoreFocus: boolean;
|
|
@@ -70,7 +70,7 @@ export declare class KbqModalComponent<T = any, R = any> extends KbqModalRef<T,
|
|
|
70
70
|
modalAnimationClassMap: object;
|
|
71
71
|
transformOrigin: string;
|
|
72
72
|
get afterOpen(): Observable<void>;
|
|
73
|
-
get afterClose(): Observable<R>;
|
|
73
|
+
get afterClose(): Observable<R | undefined>;
|
|
74
74
|
get okText(): string;
|
|
75
75
|
get cancelText(): string;
|
|
76
76
|
get hidden(): boolean;
|
package/modal/modal.service.d.ts
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
+
import { InjectionToken, Injector } from '@angular/core';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { KbqModalControlService } from './modal-control.service';
|
|
4
5
|
import { KbqModalRef } from './modal-ref.class';
|
|
5
6
|
import { KbqModalComponent } from './modal.component';
|
|
6
7
|
import { ConfirmType, IModalOptionsForService } from './modal.type';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
9
|
+
/** Injection token that can be used to access the data that was passed in to a modal. */
|
|
10
|
+
export declare const KBQ_MODAL_DATA: InjectionToken<unknown>;
|
|
8
11
|
export declare class ModalBuilderForService {
|
|
9
12
|
private readonly overlay;
|
|
10
13
|
readonly options: IModalOptionsForService;
|
|
14
|
+
private readonly injector;
|
|
11
15
|
private modalRef;
|
|
12
16
|
private overlayRef;
|
|
13
|
-
constructor(overlay: Overlay, options
|
|
17
|
+
constructor(overlay: Overlay, options: IModalOptionsForService, injector: Injector);
|
|
14
18
|
getInstance(): KbqModalComponent | null;
|
|
15
19
|
destroyModal(): void;
|
|
16
20
|
private changeProps;
|
|
@@ -19,15 +23,16 @@ export declare class ModalBuilderForService {
|
|
|
19
23
|
export declare class KbqModalService {
|
|
20
24
|
private readonly overlay;
|
|
21
25
|
private readonly modalControl;
|
|
26
|
+
private injector;
|
|
22
27
|
get openModals(): KbqModalRef[];
|
|
23
28
|
get afterAllClose(): Observable<void>;
|
|
24
|
-
constructor(overlay: Overlay, modalControl: KbqModalControlService);
|
|
29
|
+
constructor(overlay: Overlay, modalControl: KbqModalControlService, injector: Injector);
|
|
25
30
|
closeAll(): void;
|
|
26
|
-
create<C, R>(options?: IModalOptionsForService<C>): KbqModalRef<C, R>;
|
|
27
|
-
confirm<C, R>(options?: IModalOptionsForService<C>, confirmType?: ConfirmType): KbqModalRef<C, R>;
|
|
28
|
-
open<C, R>(options?: IModalOptionsForService<C>): KbqModalRef<C, R>;
|
|
29
|
-
success<C, R>(options?: IModalOptionsForService<C>): KbqModalRef<C, R>;
|
|
30
|
-
delete<C, R>(options?: IModalOptionsForService<C>): KbqModalRef<C, R>;
|
|
31
|
+
create<C, R = unknown>(options?: IModalOptionsForService<C>): KbqModalRef<C, R>;
|
|
32
|
+
confirm<C, R = unknown>(options?: IModalOptionsForService<C>, confirmType?: ConfirmType): KbqModalRef<C, R>;
|
|
33
|
+
open<C, R = unknown>(options?: IModalOptionsForService<C>): KbqModalRef<C, R>;
|
|
34
|
+
success<C, R = unknown>(options?: IModalOptionsForService<C>): KbqModalRef<C, R>;
|
|
35
|
+
delete<C, R = unknown>(options?: IModalOptionsForService<C>): KbqModalRef<C, R>;
|
|
31
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqModalService, never>;
|
|
32
37
|
static ɵprov: i0.ɵɵInjectableDeclaration<KbqModalService>;
|
|
33
38
|
}
|
package/modal/modal.type.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export interface ModalOptions<C = any, R = any> {
|
|
|
19
19
|
kbqTitle?: string | TemplateRef<{}>;
|
|
20
20
|
kbqContent?: string | TemplateRef<{}> | Type<C>;
|
|
21
21
|
kbqComponent?: Type<C>;
|
|
22
|
+
/** deprecated. Use field data and KBQ_MODAL_DATA */
|
|
22
23
|
kbqComponentParams?: any;
|
|
23
24
|
kbqClosable?: boolean;
|
|
24
25
|
kbqMask?: boolean;
|
|
@@ -38,6 +39,8 @@ export interface ModalOptions<C = any, R = any> {
|
|
|
38
39
|
kbqCancelText?: string;
|
|
39
40
|
kbqCancelLoading?: boolean;
|
|
40
41
|
kbqOnCancel?: EventEmitter<C> | OnClickCallback<C>;
|
|
42
|
+
/** Data being injected into the child component. */
|
|
43
|
+
data?: any;
|
|
41
44
|
}
|
|
42
45
|
export interface IModalOptionsForService<T = any> extends ModalOptions<T> {
|
|
43
46
|
kbqOnOk?: OnClickCallback<T>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
|
|
2
|
-
import {
|
|
3
|
-
import { Overlay, ScrollDispatcher } from '@angular/cdk/overlay';
|
|
4
|
-
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnDestroy, TemplateRef } from '@angular/core';
|
|
5
3
|
import { IFocusableOption } from '@koobiq/cdk/a11y';
|
|
6
4
|
import { KbqButton, KbqButtonCssStyler } from '@koobiq/components/button';
|
|
7
5
|
import { KbqDropdownTrigger } from '@koobiq/components/dropdown';
|
|
@@ -128,13 +126,13 @@ export declare class KbqNavbarItem extends KbqTooltipTrigger implements AfterCon
|
|
|
128
126
|
get showVerticalDropDownAngle(): boolean;
|
|
129
127
|
get showHorizontalDropDownAngle(): boolean;
|
|
130
128
|
get hasCroppedText(): boolean;
|
|
131
|
-
constructor(rectangleElement: KbqNavbarRectangleElement, navbarFocusableItem: KbqNavbarFocusableItem, changeDetectorRef: ChangeDetectorRef,
|
|
129
|
+
constructor(rectangleElement: KbqNavbarRectangleElement, navbarFocusableItem: KbqNavbarFocusableItem, changeDetectorRef: ChangeDetectorRef, dropdownTrigger: KbqDropdownTrigger, bento: KbqNavbarBento);
|
|
132
130
|
ngAfterContentInit(): void;
|
|
133
131
|
updateTooltip(): void;
|
|
134
132
|
getTitleWidth(): number;
|
|
135
133
|
onKeyDown($event: KeyboardEvent): void;
|
|
136
134
|
private updateCollapsedState;
|
|
137
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqNavbarItem, [null, null, null,
|
|
135
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqNavbarItem, [null, null, null, { optional: true; }, { optional: true; }]>;
|
|
138
136
|
static ɵcmp: i0.ɵɵComponentDeclaration<KbqNavbarItem, "kbq-navbar-item, [kbq-navbar-item]", ["kbqNavbarItem"], { "collapsedText": { "alias": "collapsedText"; "required": false; }; "trigger": { "alias": "kbqTrigger"; "required": false; }; "collapsable": { "alias": "collapsable"; "required": false; }; }, {}, ["title", "icon"], ["[kbq-icon]", "kbq-navbar-title, [kbq-navbar-title]", "*"], false, never>;
|
|
139
137
|
}
|
|
140
138
|
export declare class KbqNavbarToggle extends KbqTooltipTrigger implements OnDestroy {
|
|
@@ -146,12 +144,12 @@ export declare class KbqNavbarToggle extends KbqTooltipTrigger implements OnDest
|
|
|
146
144
|
set content(content: string | TemplateRef<any>);
|
|
147
145
|
get disabled(): boolean;
|
|
148
146
|
protected modifier: TooltipModifier;
|
|
149
|
-
constructor(navbar: KbqVerticalNavbar, changeDetectorRef: ChangeDetectorRef,
|
|
147
|
+
constructor(navbar: KbqVerticalNavbar, changeDetectorRef: ChangeDetectorRef, document: any);
|
|
150
148
|
onKeydown($event: KeyboardEvent): void;
|
|
151
149
|
ngOnDestroy(): void;
|
|
152
150
|
toggle: () => void;
|
|
153
151
|
private getWindow;
|
|
154
152
|
private windowToggleHandler;
|
|
155
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqNavbarToggle, [null, null,
|
|
153
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqNavbarToggle, [null, null, { optional: true; }]>;
|
|
156
154
|
static ɵcmp: i0.ɵɵComponentDeclaration<KbqNavbarToggle, "kbq-navbar-toggle", never, { "content": { "alias": "kbqCollapsedTooltip"; "required": false; }; }, {}, ["customIcon"], ["[kbq-icon]", "kbq-navbar-title"], false, never>;
|
|
157
155
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koobiq/components",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.5.0",
|
|
4
4
|
"description": "koobiq",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
"bugs": {
|
|
20
20
|
"url": "https://github.com/koobiq/angular-components/issues"
|
|
21
21
|
},
|
|
22
|
-
"homepage": "https://github.com/koobiq/angular-components
|
|
22
|
+
"homepage": "https://github.com/koobiq/angular-components#readme",
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@angular/cdk": "^17.0.0",
|
|
25
25
|
"@angular/forms": "^17.0.0",
|
|
26
|
-
"@koobiq/cdk": "17.
|
|
27
|
-
"@koobiq/angular-moment-adapter": "17.
|
|
28
|
-
"@koobiq/angular-luxon-adapter": "17.
|
|
26
|
+
"@koobiq/cdk": "17.5.0",
|
|
27
|
+
"@koobiq/angular-moment-adapter": "17.5.0",
|
|
28
|
+
"@koobiq/angular-luxon-adapter": "17.5.0",
|
|
29
29
|
"@koobiq/date-formatter": "^3.1.2",
|
|
30
30
|
"@koobiq/icons": "^7.1.0",
|
|
31
|
-
"@koobiq/tokens-builder": "3.
|
|
32
|
-
"@koobiq/design-tokens": "3.
|
|
31
|
+
"@koobiq/tokens-builder": "3.5.0",
|
|
32
|
+
"@koobiq/design-tokens": "3.5.0",
|
|
33
33
|
"marked": "^9.0.0",
|
|
34
34
|
"overlayscrollbars": "^2.2.0",
|
|
35
35
|
"ngx-highlightjs": "^10.0.0"
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Overlay, ScrollDispatcher } from '@angular/cdk/overlay';
|
|
3
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, NgZone, ViewContainerRef } from '@angular/core';
|
|
1
|
+
import { EventEmitter, InjectionToken } from '@angular/core';
|
|
4
2
|
import { Subject } from 'rxjs';
|
|
5
3
|
import { KbqPopoverComponent, KbqPopoverTrigger } from './popover.component';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
@@ -10,7 +8,6 @@ export declare class KbqPopoverConfirmComponent extends KbqPopoverComponent {
|
|
|
10
8
|
onConfirm: Subject<void>;
|
|
11
9
|
confirmButtonText: string;
|
|
12
10
|
confirmText: string;
|
|
13
|
-
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
14
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqPopoverConfirmComponent, never>;
|
|
15
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<KbqPopoverConfirmComponent, "kbq-popover-confirm-component", never, {}, {}, never, never, false, never>;
|
|
16
13
|
}
|
|
@@ -22,10 +19,10 @@ export declare class KbqPopoverConfirmTrigger extends KbqPopoverTrigger {
|
|
|
22
19
|
get confirmButtonText(): string;
|
|
23
20
|
set confirmButtonText(value: string);
|
|
24
21
|
private _confirmButtonText;
|
|
25
|
-
constructor(
|
|
22
|
+
constructor(confirmText: string, confirmButtonText: string);
|
|
26
23
|
updateData(): void;
|
|
27
24
|
setupButtonEvents(): void;
|
|
28
25
|
getOverlayHandleComponentType(): typeof KbqPopoverConfirmComponent;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqPopoverConfirmTrigger, [
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqPopoverConfirmTrigger, [{ optional: true; }, { optional: true; }]>;
|
|
30
27
|
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqPopoverConfirmTrigger, "[kbqPopoverConfirm]", ["kbqPopoverConfirm"], { "confirmText": { "alias": "kbqPopoverConfirmText"; "required": false; }; "confirmButtonText": { "alias": "kbqPopoverConfirmButtonText"; "required": false; }; }, { "confirm": "confirm"; }, never, never, false, never>;
|
|
31
28
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, NgZone, TemplateRef, Type, ViewContainerRef } from '@angular/core';
|
|
1
|
+
import { CdkScrollable, Overlay, OverlayConfig, ScrollStrategy } from '@angular/cdk/overlay';
|
|
2
|
+
import { AfterContentInit, AfterViewInit, ElementRef, EventEmitter, InjectionToken, TemplateRef, Type } from '@angular/core';
|
|
4
3
|
import { KbqComponentColors, KbqPopUp, KbqPopUpTrigger, PopUpPlacements, PopUpSizes } from '@koobiq/components/core';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class KbqPopoverComponent extends KbqPopUp implements AfterViewInit {
|
|
@@ -14,7 +13,6 @@ export declare class KbqPopoverComponent extends KbqPopUp implements AfterViewIn
|
|
|
14
13
|
private readonly destroyRef;
|
|
15
14
|
isContentTopOverflow: boolean;
|
|
16
15
|
isContentBottomOverflow: boolean;
|
|
17
|
-
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
18
16
|
ngAfterViewInit(): void;
|
|
19
17
|
onContentChange(): void;
|
|
20
18
|
checkContentOverflow(contentElement: HTMLElement): void;
|
|
@@ -36,6 +34,7 @@ export declare const KBQ_POPOVER_SCROLL_STRATEGY_FACTORY_PROVIDER: {
|
|
|
36
34
|
/** Creates an error to be thrown if the user supplied an invalid popover position. */
|
|
37
35
|
export declare function getKbqPopoverInvalidPositionError(position: string): Error;
|
|
38
36
|
export declare class KbqPopoverTrigger extends KbqPopUpTrigger<KbqPopoverComponent> implements AfterContentInit {
|
|
37
|
+
protected scrollStrategy: () => ScrollStrategy;
|
|
39
38
|
get popoverVisible(): boolean;
|
|
40
39
|
set popoverVisible(value: boolean);
|
|
41
40
|
get popoverPlacement(): PopUpPlacements;
|
|
@@ -80,7 +79,6 @@ export declare class KbqPopoverTrigger extends KbqPopUpTrigger<KbqPopoverCompone
|
|
|
80
79
|
visibleChange: EventEmitter<boolean>;
|
|
81
80
|
protected originSelector: string;
|
|
82
81
|
protected get overlayConfig(): OverlayConfig;
|
|
83
|
-
constructor(overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality);
|
|
84
82
|
ngAfterContentInit(): void;
|
|
85
83
|
updateData(): void;
|
|
86
84
|
/** Updates the position of the current popover. */
|
|
@@ -89,6 +87,6 @@ export declare class KbqPopoverTrigger extends KbqPopUpTrigger<KbqPopoverCompone
|
|
|
89
87
|
updateClassMap(newPlacement?: string): void;
|
|
90
88
|
closingActionsForClick(): import("rxjs").Observable<MouseEvent>[];
|
|
91
89
|
closingActions(): import("rxjs").Observable<void | MouseEvent | CdkScrollable>;
|
|
92
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqPopoverTrigger,
|
|
90
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqPopoverTrigger, never>;
|
|
93
91
|
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqPopoverTrigger, "[kbqPopover]", ["kbqPopover"], { "popoverVisible": { "alias": "kbqPopoverVisible"; "required": false; }; "popoverPlacement": { "alias": "kbqPopoverPlacement"; "required": false; }; "popoverPlacementPriority": { "alias": "kbqPopoverPlacementPriority"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "header": { "alias": "kbqPopoverHeader"; "required": false; }; "content": { "alias": "kbqPopoverContent"; "required": false; }; "footer": { "alias": "kbqPopoverFooter"; "required": false; }; "disabled": { "alias": "kbqPopoverDisabled"; "required": false; }; "trigger": { "alias": "kbqTrigger"; "required": false; }; "size": { "alias": "kbqPopoverSize"; "required": false; }; "customClass": { "alias": "kbqPopoverClass"; "required": false; }; "hasCloseButton": { "alias": "hasCloseButton"; "required": false; }; "closeOnScroll": { "alias": "closeOnScroll"; "required": false; }; "backdropClass": { "alias": "backdropClass"; "required": false; }; }, { "placementChange": "kbqPopoverPlacementChange"; "visibleChange": "kbqPopoverVisibleChange"; }, never, never, false, never>;
|
|
94
92
|
}
|