@koobiq/components 18.33.0 → 18.35.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/actions-panel/actions-panel-config.d.ts +4 -3
- package/actions-panel/actions-panel-container.scss +0 -6
- package/actions-panel/actions-panel-ref.d.ts +13 -0
- package/actions-panel/actions-panel.d.ts +1 -7
- package/button/_button-theme.scss +1 -0
- package/clamped-text/clamped-text.d.ts +61 -0
- package/clamped-text/clamped-text.scss +17 -0
- package/clamped-text/constants.d.ts +14 -0
- package/clamped-text/index.d.ts +3 -0
- package/clamped-text/module.d.ts +7 -0
- package/content-panel/content-panel-aside.scss +9 -0
- package/content-panel/content-panel-body.scss +9 -0
- package/content-panel/content-panel-container.scss +32 -0
- package/content-panel/content-panel-footer.scss +5 -0
- package/content-panel/content-panel-header.scss +30 -0
- package/content-panel/content-panel-tokens.scss +9 -0
- package/content-panel/content-panel.d.ts +149 -0
- package/content-panel/content-panel.scss +25 -0
- package/content-panel/index.d.ts +3 -0
- package/content-panel/module.d.ts +7 -0
- package/content-panel/resizable.d.ts +70 -0
- package/core/form-field/field-sizing-content.d.ts +21 -0
- package/core/form-field/index.d.ts +1 -0
- package/core/locales/en-US.d.ts +10 -0
- package/core/locales/es-LA.d.ts +10 -0
- package/core/locales/fa-IR.d.ts +10 -0
- package/core/locales/locale-service.d.ts +70 -0
- package/core/locales/pt-BR.d.ts +10 -0
- package/core/locales/ru-RU.d.ts +10 -0
- package/core/locales/tk-TM.d.ts +10 -0
- package/core/locales/types.d.ts +5 -0
- package/core/locales/zh-CN.d.ts +10 -0
- package/core/navbar/index.d.ts +1 -0
- package/core/navbar/rectangle-item.d.ts +14 -0
- package/core/option/option.d.ts +3 -1
- package/core/pop-up/pop-up-trigger.d.ts +2 -0
- package/core/public-api.d.ts +1 -0
- package/core/styles/common/_select.scss +6 -3
- package/core/utils/dom.d.ts +9 -0
- package/core/utils/index.d.ts +1 -0
- package/core/utils/utils.d.ts +4 -0
- package/datepicker/calendar.component.d.ts +1 -1
- package/datepicker/datepicker-input.directive.d.ts +19 -8
- package/datepicker/datepicker-toggle.component.d.ts +1 -1
- package/datepicker/datepicker.component.d.ts +2 -2
- package/dropdown/dropdown-item.scss +1 -0
- package/dropdown/dropdown-trigger.directive.d.ts +7 -1
- package/dynamic-translation/dynamic-translation.d.ts +72 -0
- package/dynamic-translation/index.d.ts +2 -0
- package/dynamic-translation/module.d.ts +7 -0
- package/esm2022/actions-panel/actions-panel-config.mjs +1 -1
- package/esm2022/actions-panel/actions-panel-container.mjs +7 -7
- package/esm2022/actions-panel/actions-panel-ref.mjs +17 -1
- package/esm2022/actions-panel/actions-panel.mjs +34 -24
- package/esm2022/breadcrumbs/breadcrumbs.mjs +2 -2
- package/esm2022/button/button.component.mjs +2 -2
- package/esm2022/button-toggle/button-toggle.component.mjs +9 -9
- package/esm2022/clamped-text/clamped-text.mjs +202 -0
- package/esm2022/clamped-text/constants.mjs +20 -0
- package/esm2022/clamped-text/index.mjs +4 -0
- package/esm2022/clamped-text/koobiq-components-clamped-text.mjs +5 -0
- package/esm2022/clamped-text/module.mjs +19 -0
- package/esm2022/content-panel/content-panel.mjs +432 -0
- package/esm2022/content-panel/index.mjs +4 -0
- package/esm2022/content-panel/koobiq-components-content-panel.mjs +5 -0
- package/esm2022/content-panel/module.mjs +42 -0
- package/esm2022/content-panel/resizable.mjs +138 -0
- package/esm2022/core/form-field/field-sizing-content.mjs +114 -0
- package/esm2022/core/form-field/index.mjs +2 -1
- package/esm2022/core/locales/en-US.mjs +11 -1
- package/esm2022/core/locales/es-LA.mjs +11 -1
- package/esm2022/core/locales/fa-IR.mjs +11 -1
- package/esm2022/core/locales/pt-BR.mjs +11 -1
- package/esm2022/core/locales/ru-RU.mjs +11 -1
- package/esm2022/core/locales/tk-TM.mjs +11 -1
- package/esm2022/core/locales/types.mjs +1 -1
- package/esm2022/core/locales/zh-CN.mjs +11 -1
- package/esm2022/core/navbar/index.mjs +2 -0
- package/esm2022/core/navbar/rectangle-item.mjs +39 -0
- package/esm2022/core/option/option.mjs +8 -4
- package/esm2022/core/pop-up/pop-up-trigger.mjs +5 -1
- package/esm2022/core/public-api.mjs +2 -1
- package/esm2022/core/utils/dom.mjs +14 -0
- package/esm2022/core/utils/index.mjs +2 -1
- package/esm2022/core/utils/utils.mjs +9 -1
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-header.component.mjs +6 -3
- package/esm2022/datepicker/calendar.component.mjs +9 -9
- package/esm2022/datepicker/datepicker-input.directive.mjs +24 -21
- package/esm2022/datepicker/datepicker-toggle.component.mjs +8 -8
- package/esm2022/datepicker/datepicker.component.mjs +3 -3
- package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +30 -10
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/dynamic-translation/dynamic-translation.mjs +175 -0
- package/esm2022/dynamic-translation/index.mjs +3 -0
- package/esm2022/dynamic-translation/koobiq-components-dynamic-translation.mjs +5 -0
- package/esm2022/dynamic-translation/module.mjs +25 -0
- package/esm2022/file-upload/file-drop.mjs +1 -1
- package/esm2022/file-upload/file-upload.mjs +6 -1
- package/esm2022/file-upload/multiple-file-upload.component.mjs +21 -16
- package/esm2022/file-upload/single-file-upload.component.mjs +23 -16
- package/esm2022/filter-bar/filter-bar.mjs +3 -3
- package/esm2022/filter-bar/filter-refresher.mjs +5 -5
- package/esm2022/filter-bar/filter-reset.mjs +3 -3
- package/esm2022/filter-bar/filter-search.mjs +11 -11
- package/esm2022/filter-bar/filters.mjs +16 -4
- package/esm2022/filter-bar/pipe-add.mjs +6 -6
- package/esm2022/filter-bar/pipes/base-pipe.mjs +2 -2
- package/esm2022/filter-bar/pipes/pipe-button.mjs +7 -7
- package/esm2022/filter-bar/pipes/pipe-date.mjs +10 -2
- package/esm2022/filter-bar/pipes/pipe-datetime.mjs +10 -2
- package/esm2022/filter-bar/pipes/pipe-multi-select.mjs +11 -17
- package/esm2022/filter-bar/pipes/pipe-multi-tree-select.mjs +10 -9
- package/esm2022/filter-bar/pipes/pipe-readonly.mjs +7 -7
- package/esm2022/filter-bar/pipes/pipe-select.mjs +3 -4
- package/esm2022/filter-bar/pipes/pipe-text.mjs +9 -3
- package/esm2022/filter-bar/pipes/pipe-tree-select.mjs +9 -3
- package/esm2022/form-field/cleaner.mjs +16 -11
- package/esm2022/form-field/fieldset.mjs +2 -2
- package/esm2022/form-field/form-field.mjs +5 -5
- package/esm2022/form-field/password-hint.mjs +14 -3
- package/esm2022/form-field/password-toggle.mjs +45 -10
- package/esm2022/form-field/reactive-password-hint.mjs +18 -17
- package/esm2022/form-field/stepper.mjs +9 -9
- package/esm2022/icon/icon-button.component.mjs +2 -2
- package/esm2022/input/input-number.mjs +15 -10
- package/esm2022/markdown/markdown.component.mjs +3 -3
- package/esm2022/modal/modal.component.mjs +14 -14
- package/esm2022/modal/modal.directive.mjs +7 -5
- package/esm2022/navbar/navbar-item.component.mjs +3 -3
- package/esm2022/navbar-ic/index.mjs +2 -0
- package/esm2022/navbar-ic/koobiq-components-navbar-ic.mjs +5 -0
- package/esm2022/navbar-ic/navbar-ic-header.mjs +58 -0
- package/esm2022/navbar-ic/navbar-ic-item.mjs +399 -0
- package/esm2022/navbar-ic/navbar-ic.animation.mjs +9 -0
- package/esm2022/navbar-ic/navbar-ic.mjs +281 -0
- package/esm2022/navbar-ic/navbar-ic.module.mjs +74 -0
- package/esm2022/navbar-ic/public-api.mjs +5 -0
- package/esm2022/popover/popover-confirm.component.mjs +3 -3
- package/esm2022/popover/popover.component.mjs +10 -5
- package/esm2022/scrollbar/scrollbar.component.mjs +5 -5
- package/esm2022/select/select.component.mjs +24 -11
- package/esm2022/sidebar/sidebar.component.mjs +46 -27
- package/esm2022/sidepanel/sidepanel-container.component.mjs +15 -4
- package/esm2022/sidepanel/sidepanel-directives.mjs +5 -5
- package/esm2022/sidepanel/sidepanel-ref.mjs +8 -6
- package/esm2022/splitter/splitter.component.mjs +1 -1
- package/esm2022/tabs/tab-body.component.mjs +3 -3
- package/esm2022/tabs/tab-group.component.mjs +27 -27
- package/esm2022/tabs/tab.component.mjs +4 -4
- package/esm2022/tags/tag-input.mjs +2 -2
- package/esm2022/tags/tag-list.component.mjs +36 -17
- package/esm2022/tags/tag.component.mjs +231 -22
- package/esm2022/tags/tag.module.mjs +16 -6
- package/esm2022/textarea/textarea.component.mjs +6 -4
- package/esm2022/timepicker/timepicker.directive.mjs +1 -1
- package/esm2022/timezone/timezone-select.component.mjs +3 -3
- package/esm2022/tooltip/tooltip.component.mjs +3 -3
- package/esm2022/tree/tree-selection.component.mjs +4 -4
- package/esm2022/tree-select/tree-select.component.mjs +11 -9
- package/esm2022/username/constants.mjs +25 -0
- package/esm2022/username/index.mjs +6 -0
- package/esm2022/username/koobiq-components-username.mjs +5 -0
- package/esm2022/username/module.mjs +35 -0
- package/esm2022/username/types.mjs +32 -0
- package/esm2022/username/username.mjs +129 -0
- package/esm2022/username/username.pipe.mjs +92 -0
- package/fesm2022/koobiq-components-actions-panel.mjs +56 -31
- package/fesm2022/koobiq-components-actions-panel.mjs.map +1 -1
- package/fesm2022/koobiq-components-breadcrumbs.mjs +1 -1
- package/fesm2022/koobiq-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +8 -8
- 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-clamped-text.mjs +242 -0
- package/fesm2022/koobiq-components-clamped-text.mjs.map +1 -0
- package/fesm2022/koobiq-components-content-panel.mjs +612 -0
- package/fesm2022/koobiq-components-content-panel.mjs.map +1 -0
- package/fesm2022/koobiq-components-core.mjs +271 -31
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +45 -40
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +33 -13
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-dynamic-translation.mjs +204 -0
- package/fesm2022/koobiq-components-dynamic-translation.mjs.map +1 -0
- package/fesm2022/koobiq-components-file-upload.mjs +44 -27
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-filter-bar.mjs +100 -71
- package/fesm2022/koobiq-components-filter-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +100 -49
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +2 -2
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +14 -9
- package/fesm2022/koobiq-components-input.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 +19 -17
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar-ic.mjs +800 -0
- package/fesm2022/koobiq-components-navbar-ic.mjs.map +1 -0
- package/fesm2022/koobiq-components-navbar.mjs +2 -2
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +11 -6
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-scrollbar.mjs +4 -4
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +23 -10
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidebar.mjs +45 -26
- package/fesm2022/koobiq-components-sidebar.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +24 -12
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +31 -31
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +284 -47
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +5 -3
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-timepicker.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-tooltip.mjs +2 -2
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +10 -8
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +3 -3
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/fesm2022/koobiq-components-username.mjs +308 -0
- package/fesm2022/koobiq-components-username.mjs.map +1 -0
- package/file-upload/_file-upload-theme.scss +1 -1
- package/file-upload/file-drop.d.ts +1 -1
- package/file-upload/file-upload.d.ts +5 -2
- package/file-upload/multiple-file-upload.component.d.ts +4 -2
- package/file-upload/single-file-upload.component.d.ts +5 -3
- package/filter-bar/_filter-bar-theme.scss +2 -2
- package/filter-bar/filters.d.ts +1 -0
- package/filter-bar/pipes/pipe-date.d.ts +3 -1
- package/filter-bar/pipes/pipe-datetime.d.ts +3 -1
- package/filter-bar/pipes/pipe-multi-select.d.ts +0 -1
- package/filter-bar/pipes/pipe-multi-tree-select.d.ts +3 -2
- package/filter-bar/pipes/pipe-select.d.ts +0 -1
- package/filter-bar/pipes/pipe-tree-select.d.ts +3 -2
- package/form-field/_form-field-theme.scss +27 -18
- package/form-field/cleaner.d.ts +4 -2
- package/form-field/cleaner.scss +6 -2
- package/form-field/form-field.scss +12 -2
- package/form-field/password-hint.d.ts +7 -0
- package/form-field/password-toggle.d.ts +23 -3
- package/form-field/password-toggle.scss +4 -8
- package/form-field/reactive-password-hint.d.ts +1 -0
- package/icon/_icon-button-theme.scss +8 -2
- package/modal/modal.component.d.ts +6 -6
- package/navbar-ic/_navbar-ic-theme.scss +81 -0
- package/navbar-ic/index.d.ts +1 -0
- package/navbar-ic/navbar-ic-divider.scss +7 -0
- package/navbar-ic/navbar-ic-header.d.ts +18 -0
- package/navbar-ic/navbar-ic-header.scss +53 -0
- package/navbar-ic/navbar-ic-item.d.ts +125 -0
- package/navbar-ic/navbar-ic-item.scss +96 -0
- package/navbar-ic/navbar-ic-tokens.scss +22 -0
- package/navbar-ic/navbar-ic.animation.d.ts +2 -0
- package/navbar-ic/navbar-ic.d.ts +103 -0
- package/navbar-ic/navbar-ic.module.d.ts +14 -0
- package/navbar-ic/navbar-ic.scss +32 -0
- package/navbar-ic/public-api.d.ts +4 -0
- package/package.json +34 -4
- package/popover/_popover-theme.scss +6 -2
- package/popover/popover-confirm.component.d.ts +1 -1
- package/popover/popover-tokens.scss +2 -0
- package/popover/popover.component.d.ts +6 -3
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/prebuilt-themes/theme.css +1 -1
- package/schematics/ng-add/index.js +4 -4
- package/scrollbar/scrollbar.component.d.ts +4 -4
- package/select/select.component.d.ts +14 -2
- package/sidebar/sidebar.component.d.ts +31 -5
- package/sidepanel/sidepanel-container.component.d.ts +9 -0
- package/sidepanel/sidepanel-ref.d.ts +3 -3
- package/splitter/splitter.component.d.ts +2 -2
- package/tabs/tab-group.component.d.ts +1 -1
- package/tabs/tab.component.d.ts +1 -1
- package/tags/_tag-theme.scss +10 -1
- package/tags/tag-input.d.ts +1 -1
- package/tags/tag-list.component.d.ts +11 -3
- package/tags/tag-list.scss +5 -0
- package/tags/tag.component.d.ts +78 -8
- package/tags/tag.module.d.ts +1 -1
- package/tags/tag.scss +18 -0
- package/textarea/textarea-tokens.scss +1 -1
- package/timepicker/timepicker.directive.d.ts +1 -1
- package/tooltip/_tooltip-theme.scss +9 -2
- package/tooltip/tooltip-tokens.scss +2 -0
- package/tooltip/tooltip.component.d.ts +2 -2
- package/tree/tree-selection.component.d.ts +1 -1
- package/tree-select/tree-select.component.d.ts +1 -1
- package/username/constants.d.ts +15 -0
- package/username/index.d.ts +5 -0
- package/username/module.d.ts +8 -0
- package/username/types.d.ts +62 -0
- package/username/username-tokens.scss +6 -0
- package/username/username.d.ts +68 -0
- package/username/username.pipe.d.ts +23 -0
- package/username/username.scss +107 -0
|
@@ -37,9 +37,7 @@ export declare class KbqActionsPanelConfig<D = unknown> {
|
|
|
37
37
|
*/
|
|
38
38
|
closeOnNavigation?: boolean;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* @default `document.body`
|
|
40
|
+
* Element in which the actions panel overlay will be connected to.
|
|
43
41
|
*/
|
|
44
42
|
overlayContainer?: ElementRef<HTMLElement>;
|
|
45
43
|
/**
|
|
@@ -58,6 +56,9 @@ export declare class KbqActionsPanelConfig<D = unknown> {
|
|
|
58
56
|
/**
|
|
59
57
|
* Max-width of the actions panel.
|
|
60
58
|
* If a number is provided, assumes pixel units.
|
|
59
|
+
*
|
|
60
|
+
* NOTE: this property is ignored if the `overlayContainer` property is provided, and will be calculated based on
|
|
61
|
+
* the width of the `overlayContainer`.
|
|
61
62
|
*/
|
|
62
63
|
maxWidth?: number | string;
|
|
63
64
|
/**
|
|
@@ -28,9 +28,3 @@
|
|
|
28
28
|
.kbq-actions-panel-overlay {
|
|
29
29
|
margin: var(--kbq-actions-panel-margin);
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
.kbq-actions-panel-overlay-container {
|
|
33
|
-
// Required for positioning the overlay inside the custom container
|
|
34
|
-
// See: KbqActionsPanelConfig.overlayContainer
|
|
35
|
-
position: relative;
|
|
36
|
-
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DialogRef } from '@angular/cdk/dialog';
|
|
2
|
+
import { OverlayRef } from '@angular/cdk/overlay';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { KbqActionsPanelContainer } from './actions-panel-container';
|
|
4
5
|
/**
|
|
@@ -18,6 +19,18 @@ export declare class KbqActionsPanelRef<I = unknown, R = unknown> {
|
|
|
18
19
|
get keydownEvents(): Observable<KeyboardEvent>;
|
|
19
20
|
/** Gets an observable that is notified when the actions panel has opened and appeared. */
|
|
20
21
|
get afterOpened(): Observable<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Gets the overlay reference for the actions panel.
|
|
24
|
+
*
|
|
25
|
+
* @docs-private
|
|
26
|
+
*/
|
|
27
|
+
get overlayRef(): OverlayRef;
|
|
28
|
+
/**
|
|
29
|
+
* Gets the ID of the actions panel.
|
|
30
|
+
*
|
|
31
|
+
* @docs-private
|
|
32
|
+
*/
|
|
33
|
+
get id(): string;
|
|
21
34
|
private readonly _afterOpened;
|
|
22
35
|
/** Result to be passed down to the `afterClosed` stream. */
|
|
23
36
|
private result;
|
|
@@ -48,21 +48,15 @@ export type KbqActionsPanelTemplateContext<T = unknown, D = unknown, R = unknown
|
|
|
48
48
|
* @docs-private
|
|
49
49
|
*/
|
|
50
50
|
export declare const KBQ_ACTIONS_PANEL_OVERLAY_SELECTOR = "kbq-actions-panel-overlay";
|
|
51
|
-
/**
|
|
52
|
-
* Selector for custom actions panel overlay container.
|
|
53
|
-
*
|
|
54
|
-
* @docs-private
|
|
55
|
-
*/
|
|
56
|
-
export declare const KBQ_ACTIONS_PANEL_OVERLAY_CONTAINER_SELECTOR = "kbq-actions-panel-overlay-container";
|
|
57
51
|
/**
|
|
58
52
|
* Service for opening actions panel.
|
|
59
53
|
*/
|
|
60
54
|
export declare class KbqActionsPanel implements OnDestroy {
|
|
61
55
|
private readonly injector;
|
|
62
56
|
private readonly overlay;
|
|
63
|
-
private readonly overlayContainer;
|
|
64
57
|
private readonly dialog;
|
|
65
58
|
private readonly defaultConfig;
|
|
59
|
+
private readonly resizeObserver;
|
|
66
60
|
/** The reference to the currently opened actions panel. */
|
|
67
61
|
private openedActionsPanelRef;
|
|
68
62
|
ngOnDestroy(): void;
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
&.kbq-disabled {
|
|
37
37
|
color: var(--kbq-#{$base-path}-states-disabled-foreground);
|
|
38
38
|
background: var(--kbq-#{$base-path}-states-disabled-background);
|
|
39
|
+
border-color: var(--kbq-#{$base-path}-states-disabled-border);
|
|
39
40
|
|
|
40
41
|
@include _icon(
|
|
41
42
|
var(--kbq-#{$base-path}-states-disabled-left-icon),
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
|
+
import { KbqClampedTextLocaleConfig } from '@koobiq/components/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KbqClampedText implements AfterViewInit {
|
|
5
|
+
/**
|
|
6
|
+
* Max rows before text is clamped.
|
|
7
|
+
* @default kbqClampedTextDefaultMaxRows
|
|
8
|
+
*/
|
|
9
|
+
readonly rows: import("@angular/core").InputSignal<number>;
|
|
10
|
+
/** Collapsed state: `true` = collapsed, `false` = expanded, `undefined` = auto. */
|
|
11
|
+
readonly isCollapsed: import("@angular/core").InputSignal<boolean | undefined>;
|
|
12
|
+
/**
|
|
13
|
+
* Debounce time on resize observer when recalculating toggle and text visibility.
|
|
14
|
+
* @default 0
|
|
15
|
+
*/
|
|
16
|
+
readonly debounceTime: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
17
|
+
/** Emits when collapsed state changes. Used for two-way binding with `isCollapsed`. */
|
|
18
|
+
readonly isCollapsedChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
19
|
+
/** @docs-private */
|
|
20
|
+
readonly text: import("@angular/core").Signal<ElementRef<HTMLSpanElement>>;
|
|
21
|
+
/** @docs-private */
|
|
22
|
+
readonly textContainer: import("@angular/core").Signal<ElementRef<HTMLDivElement>>;
|
|
23
|
+
/**
|
|
24
|
+
* This flag controls event emission, aria/css-class calculation
|
|
25
|
+
* @docs-private
|
|
26
|
+
*/
|
|
27
|
+
protected readonly collapsedState: import("@angular/core").WritableSignal<boolean | undefined>;
|
|
28
|
+
/** @docs-private */
|
|
29
|
+
protected readonly isToggleCollapsed: import("@angular/core").WritableSignal<boolean | undefined>;
|
|
30
|
+
/** @docs-private */
|
|
31
|
+
protected readonly hasToggle: import("@angular/core").WritableSignal<boolean>;
|
|
32
|
+
/** @docs-private */
|
|
33
|
+
protected readonly lineClamp: import("@angular/core").WritableSignal<number | null>;
|
|
34
|
+
private readonly destroyRef;
|
|
35
|
+
private readonly elementRef;
|
|
36
|
+
private readonly resizeObserver;
|
|
37
|
+
private readonly localeService;
|
|
38
|
+
/**
|
|
39
|
+
* Clamped text locale configuration.
|
|
40
|
+
* @docs-private
|
|
41
|
+
*/
|
|
42
|
+
protected readonly localeConfiguration: import("@angular/core").Signal<KbqClampedTextLocaleConfig | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* This flag is used to prevent trigger resize observer on toggle click.
|
|
45
|
+
*/
|
|
46
|
+
private isEventFromToggle;
|
|
47
|
+
constructor();
|
|
48
|
+
ngAfterViewInit(): void;
|
|
49
|
+
/** @docs-private */
|
|
50
|
+
toggleIsCollapsed(event: Event): void;
|
|
51
|
+
private updateToggleVisibilityState;
|
|
52
|
+
private updateCollapsedState;
|
|
53
|
+
/**
|
|
54
|
+
* Calculates next collapsed state according to previous one.
|
|
55
|
+
* `undefined` is treated as collapsed and not touched stated.
|
|
56
|
+
*/
|
|
57
|
+
private toggleCollapseState;
|
|
58
|
+
private getRowsCount;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqClampedText, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqClampedText, "kbq-clamped-text", ["kbqClampedText"], { "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "isCollapsed": { "alias": "isCollapsed"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; }, { "isCollapsedChange": "isCollapsedChange"; }, never, ["*"], true, never>;
|
|
61
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.kbq-clamped-text {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.kbq-clamped-text__content {
|
|
7
|
+
&.kbq-clamped-text__content_collapsed {
|
|
8
|
+
display: -webkit-box;
|
|
9
|
+
overflow-y: hidden;
|
|
10
|
+
-webkit-box-orient: vertical;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.kbq-clamped-text__toggle {
|
|
15
|
+
margin-top: var(--kbq-size-xxs);
|
|
16
|
+
align-self: flex-start;
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InjectionToken, Provider } from '@angular/core';
|
|
2
|
+
import { KbqClampedTextLocaleConfig } from '@koobiq/components/core';
|
|
3
|
+
/**
|
|
4
|
+
* Default maximum number of visible rows for the clamped text component
|
|
5
|
+
* before truncation and the "collapse/expand" toggle is shown.
|
|
6
|
+
*/
|
|
7
|
+
export declare const kbqClampedTextDefaultMaxRows = 5;
|
|
8
|
+
/** Localization configuration provider. */
|
|
9
|
+
export declare const KBQ_CLAMPED_TEXT_LOCALE_CONFIGURATION: InjectionToken<KbqClampedTextLocaleConfig>;
|
|
10
|
+
/**
|
|
11
|
+
* Utility provider.
|
|
12
|
+
* @see KBQ_CLAMPED_TEXT_LOCALE_CONFIGURATION
|
|
13
|
+
*/
|
|
14
|
+
export declare const kbqClampedTextLocaleConfigurationProvider: (configuration: KbqClampedTextLocaleConfig) => Provider;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./clamped-text";
|
|
3
|
+
export declare class KbqClampedTextModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqClampedTextModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqClampedTextModule, never, [typeof i1.KbqClampedText], [typeof i1.KbqClampedText]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KbqClampedTextModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.kbq-content-panel-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
gap: var(--kbq-size-l);
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
position: relative;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
height: 100%;
|
|
8
|
+
|
|
9
|
+
.kbq-content-panel-container__content {
|
|
10
|
+
flex-grow: 1;
|
|
11
|
+
height: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.kbq-content-panel-container__panel {
|
|
15
|
+
position: absolute;
|
|
16
|
+
right: 0;
|
|
17
|
+
top: 0;
|
|
18
|
+
padding: 0 var(--kbq-size-s) var(--kbq-size-s) 0;
|
|
19
|
+
display: flex;
|
|
20
|
+
height: 100%;
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.kbq-content-panel-container__panel-resizer {
|
|
25
|
+
position: absolute;
|
|
26
|
+
top: 0;
|
|
27
|
+
left: calc(var(--kbq-content-panel-resizer-width) / -2);
|
|
28
|
+
width: var(--kbq-content-panel-resizer-width);
|
|
29
|
+
height: 100%;
|
|
30
|
+
z-index: 2;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@use '../core/styles/common/tokens';
|
|
2
|
+
|
|
3
|
+
.kbq-content-panel-header {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
padding: var(--kbq-size-l) var(--kbq-content-panel-vertical-padding);
|
|
7
|
+
|
|
8
|
+
.kbq-content-panel-header__wrapper {
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.kbq-content-panel-header__actions {
|
|
14
|
+
display: flex;
|
|
15
|
+
justify-content: flex-end;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.kbq-content-panel-header__close-button {
|
|
19
|
+
margin-left: var(--kbq-size-m);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.kbq-content-panel-header-title {
|
|
23
|
+
@include tokens.kbq-typography-level-to-styles-css-variables(typography, title);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.kbq-content-panel-header-actions {
|
|
27
|
+
display: flex;
|
|
28
|
+
gap: var(--kbq-size-s);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
.kbq-content-panel-container {
|
|
2
|
+
--kbq-content-panel-resizer-width: var(--kbq-size-l);
|
|
3
|
+
--kbq-content-panel-border-radius: var(--kbq-size-l);
|
|
4
|
+
--kbq-content-panel-background-color: var(--kbq-background-card);
|
|
5
|
+
--kbq-content-panel-border: var(--kbq-size-border-width) solid var(--kbq-line-contrast-less);
|
|
6
|
+
--kbq-content-panel-header-overflow-box-shadow: var(--kbq-shadow-overflow-normal-bottom);
|
|
7
|
+
--kbq-content-panel-footer-overflow-box-shadow: var(--kbq-shadow-overflow-normal-top);
|
|
8
|
+
--kbq-content-panel-vertical-padding: var(--kbq-size-xxl);
|
|
9
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { KbqButtonStyles } from '@koobiq/components/button';
|
|
2
|
+
import { KbqComponentColors } from '@koobiq/components/core';
|
|
3
|
+
import { KbqScrollbar } from '@koobiq/components/scrollbar';
|
|
4
|
+
import { KbqResizerSizeChangeEvent } from './resizable';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class KbqContentPanelAside {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqContentPanelAside, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqContentPanelAside, "kbq-content-panel-aside", ["kbqContentPanelAside"], {}, {}, never, ["*"], true, never>;
|
|
9
|
+
}
|
|
10
|
+
export declare class KbqContentPanelHeaderTitle {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqContentPanelHeaderTitle, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqContentPanelHeaderTitle, "[kbqContentPanelHeaderTitle]", ["kbqContentPanelHeaderTitle"], {}, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
14
|
+
export declare class KbqContentPanelHeaderActions {
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqContentPanelHeaderActions, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqContentPanelHeaderActions, "[kbqContentPanelHeaderActions]", ["kbqContentPanelHeaderActions"], {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
18
|
+
export declare class KbqContentPanelHeader {
|
|
19
|
+
/**
|
|
20
|
+
* @docs-private
|
|
21
|
+
*/
|
|
22
|
+
protected readonly contentPanelContainer: KbqContentPanelContainer;
|
|
23
|
+
/**
|
|
24
|
+
* @docs-private
|
|
25
|
+
*/
|
|
26
|
+
protected readonly buttonStyles: typeof KbqButtonStyles;
|
|
27
|
+
/**
|
|
28
|
+
* @docs-private
|
|
29
|
+
*/
|
|
30
|
+
protected readonly componentColors: typeof KbqComponentColors;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqContentPanelHeader, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqContentPanelHeader, "kbq-content-panel-header", never, {}, {}, never, ["[kbqContentPanelHeaderTitle]", "[kbqContentPanelHeaderActions]", "*"], true, never>;
|
|
33
|
+
}
|
|
34
|
+
export declare class KbqContentPanelBody {
|
|
35
|
+
/**
|
|
36
|
+
* @docs-private
|
|
37
|
+
*/
|
|
38
|
+
readonly scrollbar: import("@angular/core").Signal<KbqScrollbar>;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqContentPanelBody, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqContentPanelBody, "kbq-content-panel-body", ["kbqContentPanelBody"], {}, {}, never, ["*"], true, never>;
|
|
41
|
+
}
|
|
42
|
+
export declare class KbqContentPanelFooter {
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqContentPanelFooter, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqContentPanelFooter, "kbq-content-panel-footer", never, {}, {}, never, ["*"], true, never>;
|
|
45
|
+
}
|
|
46
|
+
export declare class KbqContentPanel {
|
|
47
|
+
private readonly destroyRef;
|
|
48
|
+
private readonly renderer;
|
|
49
|
+
private readonly elementRef;
|
|
50
|
+
private readonly contentPanelBody;
|
|
51
|
+
constructor();
|
|
52
|
+
private handleContentBodyScroll;
|
|
53
|
+
private setupContentHeaderShadow;
|
|
54
|
+
private setupContentFooterShadow;
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqContentPanel, never>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqContentPanel, "kbq-content-panel", never, {}, {}, ["contentPanelBody"], ["kbq-content-panel-aside", "kbq-content-panel-header", "kbq-content-panel-body", "kbq-content-panel-footer"], true, never>;
|
|
57
|
+
}
|
|
58
|
+
export declare class KbqContentPanelContainer {
|
|
59
|
+
/**
|
|
60
|
+
* Whether the content panel is opened.
|
|
61
|
+
*
|
|
62
|
+
* @default false
|
|
63
|
+
*/
|
|
64
|
+
readonly opened: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
65
|
+
/**
|
|
66
|
+
* Emits event when the content panel opened state is changed.
|
|
67
|
+
*/
|
|
68
|
+
readonly openedChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
69
|
+
/**
|
|
70
|
+
* Whether the content panel can not be closed by clicking on the close button or pressing the ESCAPE key.
|
|
71
|
+
*
|
|
72
|
+
* @default false
|
|
73
|
+
*/
|
|
74
|
+
readonly disableClose: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
75
|
+
/**
|
|
76
|
+
* Whether the content panel can not be closed by pressing the ESCAPE key.
|
|
77
|
+
*/
|
|
78
|
+
readonly disableCloseByEscape: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
79
|
+
/**
|
|
80
|
+
* Whether the content panel resizer is disabled.
|
|
81
|
+
*/
|
|
82
|
+
readonly disableResizer: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
83
|
+
/**
|
|
84
|
+
* Minimum width of the `KbqContentPanel`.
|
|
85
|
+
*
|
|
86
|
+
* @default 480
|
|
87
|
+
*/
|
|
88
|
+
readonly minWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
89
|
+
/**
|
|
90
|
+
* Width of the `KbqContentPanel`.
|
|
91
|
+
*
|
|
92
|
+
* @default 640
|
|
93
|
+
*/
|
|
94
|
+
readonly width: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
95
|
+
/**
|
|
96
|
+
* Max width of the `KbqContentPanel`.
|
|
97
|
+
*
|
|
98
|
+
* @default 800
|
|
99
|
+
*/
|
|
100
|
+
readonly maxWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
101
|
+
/**
|
|
102
|
+
* @docs-private
|
|
103
|
+
*/
|
|
104
|
+
protected readonly openedState: import("@angular/core").WritableSignal<boolean>;
|
|
105
|
+
/**
|
|
106
|
+
* @docs-private
|
|
107
|
+
*/
|
|
108
|
+
protected readonly widthState: import("@angular/core").WritableSignal<number>;
|
|
109
|
+
/**
|
|
110
|
+
* Whether the content panel is opened.
|
|
111
|
+
*/
|
|
112
|
+
readonly isOpened: import("@angular/core").Signal<boolean>;
|
|
113
|
+
/**
|
|
114
|
+
* @docs-private
|
|
115
|
+
*/
|
|
116
|
+
protected readonly contentAnimationState: import("@angular/core").Signal<{
|
|
117
|
+
value: boolean;
|
|
118
|
+
params: {
|
|
119
|
+
marginRight: number;
|
|
120
|
+
};
|
|
121
|
+
}>;
|
|
122
|
+
constructor();
|
|
123
|
+
/**
|
|
124
|
+
* Toggles the content panel opened state.
|
|
125
|
+
*/
|
|
126
|
+
toggle(): void;
|
|
127
|
+
/**
|
|
128
|
+
* Opens the content panel.
|
|
129
|
+
*/
|
|
130
|
+
open(): void;
|
|
131
|
+
/**
|
|
132
|
+
* Closes the content panel.
|
|
133
|
+
*/
|
|
134
|
+
close(): void;
|
|
135
|
+
/**
|
|
136
|
+
* @docs-private
|
|
137
|
+
*/
|
|
138
|
+
protected handleResizerDBLClick(event: MouseEvent): void;
|
|
139
|
+
/**
|
|
140
|
+
* @docs-private
|
|
141
|
+
*/
|
|
142
|
+
protected handleResizerSizeChange({ width }: KbqResizerSizeChangeEvent): void;
|
|
143
|
+
/**
|
|
144
|
+
* @docs-private
|
|
145
|
+
*/
|
|
146
|
+
protected handleEscapeKeydown(event: KeyboardEvent): void;
|
|
147
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqContentPanelContainer, never>;
|
|
148
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqContentPanelContainer, "kbq-content-panel-container", ["kbqContentPanelContainer"], { "opened": { "alias": "opened"; "required": false; "isSignal": true; }; "disableClose": { "alias": "disableClose"; "required": false; "isSignal": true; }; "disableCloseByEscape": { "alias": "disableCloseByEscape"; "required": false; "isSignal": true; }; "disableResizer": { "alias": "disableResizer"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; }, { "openedChange": "openedChange"; }, never, ["*", "kbq-content-panel"], true, never>;
|
|
149
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.kbq-content-panel {
|
|
2
|
+
display: flex;
|
|
3
|
+
border-radius: var(--kbq-content-panel-border-radius);
|
|
4
|
+
background-color: var(--kbq-content-panel-background-color);
|
|
5
|
+
border: var(--kbq-content-panel-border);
|
|
6
|
+
height: 100%;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
position: relative;
|
|
9
|
+
|
|
10
|
+
&.kbq-content-panel_header-with-shadow .kbq-content-panel-header {
|
|
11
|
+
box-shadow: var(--kbq-content-panel-header-overflow-box-shadow);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&.kbq-content-panel_footer-with-shadow .kbq-content-panel-footer {
|
|
15
|
+
box-shadow: var(--kbq-content-panel-footer-overflow-box-shadow);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.kbq-content-panel__content {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex: 1;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
border-top-right-radius: inherit;
|
|
23
|
+
border-bottom-right-radius: inherit;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./content-panel";
|
|
3
|
+
export declare class KbqContentPanelModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqContentPanelModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqContentPanelModule, never, [typeof i1.KbqContentPanelContainer, typeof i1.KbqContentPanel, typeof i1.KbqContentPanelAside, typeof i1.KbqContentPanelHeader, typeof i1.KbqContentPanelHeaderTitle, typeof i1.KbqContentPanelHeaderActions, typeof i1.KbqContentPanelBody, typeof i1.KbqContentPanelFooter], [typeof i1.KbqContentPanelContainer, typeof i1.KbqContentPanel, typeof i1.KbqContentPanelAside, typeof i1.KbqContentPanelHeader, typeof i1.KbqContentPanelHeaderTitle, typeof i1.KbqContentPanelHeaderActions, typeof i1.KbqContentPanelBody, typeof i1.KbqContentPanelFooter]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KbqContentPanelModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* @docs-private
|
|
5
|
+
*
|
|
6
|
+
* Array of two numbers [x, y], where:
|
|
7
|
+
* - x: horizontal direction (left: -1, unchanged: 0, right: 1)
|
|
8
|
+
* - y: vertical direction (up: -1, unchanged: 0, down: 1)
|
|
9
|
+
*/
|
|
10
|
+
export type KbqResizerDirection = [x: -1 | 0 | 1, y: -1 | 0 | 1];
|
|
11
|
+
export type KbqResizerSizeChangeEvent = {
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @docs-private
|
|
17
|
+
*
|
|
18
|
+
* Directive (container) sets whether the element is resizable.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
*
|
|
22
|
+
* ```html
|
|
23
|
+
* <div kbqResizable>
|
|
24
|
+
* <div [kbqResizer]="[1, 0]"></div>
|
|
25
|
+
* </div>
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare class KbqResizable {
|
|
29
|
+
/**
|
|
30
|
+
* @docs-private
|
|
31
|
+
*/
|
|
32
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqResizable, never>;
|
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqResizable, "[kbqResizable]", ["kbqResizable"], {}, {}, never, never, true, never>;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @docs-private
|
|
38
|
+
*
|
|
39
|
+
* Directive which defines element resizing direction.
|
|
40
|
+
*/
|
|
41
|
+
export declare class KbqResizer {
|
|
42
|
+
private readonly elementRef;
|
|
43
|
+
private readonly resizable;
|
|
44
|
+
private readonly zone;
|
|
45
|
+
private readonly document;
|
|
46
|
+
private readonly destroyRef;
|
|
47
|
+
private x;
|
|
48
|
+
private y;
|
|
49
|
+
private width;
|
|
50
|
+
private height;
|
|
51
|
+
/**
|
|
52
|
+
* Direction of element resizing.
|
|
53
|
+
*/
|
|
54
|
+
readonly direction: import("@angular/core").InputSignal<KbqResizerDirection>;
|
|
55
|
+
/**
|
|
56
|
+
* Emits the new size of the element after resizing.
|
|
57
|
+
*/
|
|
58
|
+
readonly sizeChange: import("@angular/core").OutputEmitterRef<KbqResizerSizeChangeEvent>;
|
|
59
|
+
/**
|
|
60
|
+
* @docs-private
|
|
61
|
+
*/
|
|
62
|
+
protected readonly cursor: import("@angular/core").Signal<"ns-resize" | "ew-resize" | "nwse-resize" | "nesw-resize">;
|
|
63
|
+
constructor();
|
|
64
|
+
private handleElementPointerDown;
|
|
65
|
+
private handleDocumentPointerMove;
|
|
66
|
+
private handleDocumentPointerUp;
|
|
67
|
+
private updateSize;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqResizer, never>;
|
|
69
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqResizer, "[kbqResizer]", ["kbqResizer"], { "direction": { "alias": "kbqResizer"; "required": true; "isSignal": true; }; }, { "sizeChange": "sizeChange"; }, never, never, true, never>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Emulates [`field-sizing: content`](https://developer.mozilla.org/en-US/docs/Web/CSS/field-sizing) CSS property for
|
|
4
|
+
* browsers that do not support it natively.
|
|
5
|
+
*
|
|
6
|
+
* @docs-private
|
|
7
|
+
*/
|
|
8
|
+
export declare class KbqFieldSizingContent {
|
|
9
|
+
private readonly element;
|
|
10
|
+
private readonly renderer;
|
|
11
|
+
private readonly window;
|
|
12
|
+
private readonly document;
|
|
13
|
+
private readonly destroyRef;
|
|
14
|
+
constructor();
|
|
15
|
+
private emulate;
|
|
16
|
+
private setupWidth;
|
|
17
|
+
private createRuler;
|
|
18
|
+
private calculateWidth;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqFieldSizingContent, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqFieldSizingContent, "[kbqFieldSizingContent]", ["kbqFieldSizingContent"], {}, {}, never, never, true, never>;
|
|
21
|
+
}
|
package/core/locales/en-US.d.ts
CHANGED
package/core/locales/es-LA.d.ts
CHANGED
package/core/locales/fa-IR.d.ts
CHANGED