@koobiq/components 18.31.0 → 18.33.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/accordion/accordion-trigger.component.scss +2 -0
- package/actions-panel/actions-panel-config.d.ts +2 -0
- package/actions-panel/actions-panel.d.ts +3 -57
- package/autocomplete/autocomplete-trigger.directive.d.ts +3 -4
- package/autocomplete/autocomplete.component.d.ts +1 -0
- package/autocomplete/autocomplete.module.d.ts +1 -1
- package/button-toggle/button-toggle.module.d.ts +3 -4
- package/code-block/code-block-highlight.d.ts +1 -2
- package/code-block/code-block.d.ts +57 -10
- package/core/common-behaviors/color.d.ts +3 -0
- package/core/common-behaviors/common-module.d.ts +16 -3
- package/core/form-field/form-field-ref.d.ts +5 -3
- package/core/option/action-container.d.ts +5 -0
- package/core/option/action-container.scss +45 -0
- package/core/option/action.d.ts +1 -4
- package/core/option/action.scss +13 -12
- package/core/option/index.d.ts +1 -0
- package/core/option/option.d.ts +6 -5
- package/core/public-api.d.ts +1 -0
- package/core/styles/common/_select.scss +60 -37
- package/core/styles/common/_tokens.scss +2 -0
- package/core/styles/theming/_theming.scss +0 -4
- package/core/tokens/index.d.ts +1 -0
- package/core/tokens/window.d.ts +5 -0
- package/core/validation/validation.d.ts +23 -2
- package/datepicker/datepicker-input.scss +1 -5
- package/dropdown/dropdown-trigger.directive.d.ts +1 -0
- package/ellipsis-center/ellipsis-center.directive.d.ts +7 -1
- package/esm2022/accordion/accordion-trigger.component.mjs +2 -2
- package/esm2022/accordion/accordion.component.mjs +2 -2
- package/esm2022/actions-panel/actions-panel-config.mjs +1 -1
- package/esm2022/actions-panel/actions-panel.mjs +16 -113
- package/esm2022/alert/alert.component.mjs +2 -2
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +9 -13
- package/esm2022/autocomplete/autocomplete.component.mjs +10 -2
- package/esm2022/autocomplete/autocomplete.module.mjs +5 -11
- package/esm2022/badge/badge.component.mjs +2 -2
- package/esm2022/breadcrumbs/breadcrumbs.mjs +3 -6
- package/esm2022/button/button.component.mjs +4 -3
- package/esm2022/button-toggle/button-toggle.component.mjs +2 -2
- package/esm2022/button-toggle/button-toggle.module.mjs +5 -6
- package/esm2022/checkbox/checkbox.mjs +2 -2
- package/esm2022/code-block/code-block-highlight.mjs +8 -12
- package/esm2022/code-block/code-block.mjs +60 -18
- package/esm2022/core/common-behaviors/color.mjs +4 -1
- package/esm2022/core/common-behaviors/common-module.mjs +19 -26
- package/esm2022/core/form-field/form-field-ref.mjs +3 -4
- package/esm2022/core/option/action-container.mjs +23 -0
- package/esm2022/core/option/action.mjs +16 -30
- package/esm2022/core/option/index.mjs +2 -1
- package/esm2022/core/option/optgroup.mjs +2 -2
- package/esm2022/core/option/option.mjs +10 -8
- package/esm2022/core/public-api.mjs +2 -1
- package/esm2022/core/tokens/index.mjs +2 -0
- package/esm2022/core/tokens/window.mjs +19 -0
- package/esm2022/core/utils/utils.mjs +2 -1
- package/esm2022/core/validation/validation.mjs +21 -2
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-body.component.mjs +3 -3
- package/esm2022/datepicker/calendar-header.component.mjs +3 -3
- package/esm2022/datepicker/datepicker-input.directive.mjs +5 -1
- package/esm2022/datepicker/datepicker.component.mjs +3 -3
- package/esm2022/dl/dl.component.mjs +2 -2
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +4 -3
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +8 -1
- package/esm2022/empty-state/empty-state.component.mjs +2 -2
- package/esm2022/file-upload/multiple-file-upload.component.mjs +4 -4
- package/esm2022/file-upload/single-file-upload.component.mjs +2 -2
- package/esm2022/filter-bar/filter-bar.mjs +21 -5
- package/esm2022/filter-bar/filter-bar.types.mjs +1 -1
- package/esm2022/filter-bar/filter-reset.mjs +2 -1
- package/esm2022/filter-bar/filter-search.mjs +2 -2
- package/esm2022/filter-bar/filters.mjs +4 -3
- package/esm2022/filter-bar/pipe-add.mjs +2 -2
- package/esm2022/filter-bar/pipes/base-pipe.mjs +7 -2
- package/esm2022/filter-bar/pipes/pipe-date.mjs +6 -12
- package/esm2022/filter-bar/pipes/pipe-datetime.mjs +6 -12
- package/esm2022/filter-bar/pipes/pipe-multi-select.mjs +2 -2
- package/esm2022/filter-bar/pipes/pipe-multi-tree-select.mjs +2 -2
- package/esm2022/filter-bar/pipes/pipe-select.mjs +2 -2
- package/esm2022/filter-bar/pipes/pipe-text.mjs +2 -2
- package/esm2022/filter-bar/pipes/pipe-tree-select.mjs +2 -2
- package/esm2022/form-field/cleaner.mjs +11 -6
- package/esm2022/form-field/error.mjs +20 -0
- package/esm2022/form-field/fieldset.mjs +84 -0
- package/esm2022/form-field/form-field-control.mjs +2 -2
- package/esm2022/form-field/form-field.mjs +247 -74
- package/esm2022/form-field/form-field.module.mjs +59 -47
- package/esm2022/form-field/hint.mjs +10 -18
- package/esm2022/form-field/label.mjs +19 -0
- package/esm2022/form-field/password-hint.mjs +7 -6
- package/esm2022/form-field/password-toggle.mjs +52 -27
- package/esm2022/form-field/prefix.mjs +9 -3
- package/esm2022/form-field/public-api.mjs +5 -2
- package/esm2022/form-field/reactive-password-hint.mjs +65 -0
- package/esm2022/form-field/stepper.mjs +34 -16
- package/esm2022/form-field/suffix.mjs +8 -3
- package/esm2022/form-field/validate.directive.mjs +16 -19
- package/esm2022/input/input-number.mjs +7 -2
- package/esm2022/input/input-password.mjs +2 -2
- package/esm2022/input/input.module.mjs +1 -5
- package/esm2022/list/list-selection.component.mjs +5 -5
- package/esm2022/list/list.component.mjs +2 -2
- package/esm2022/list/list.module.mjs +12 -5
- package/esm2022/loader-overlay/loader-overlay.component.mjs +2 -2
- package/esm2022/modal/modal-util.mjs +2 -1
- package/esm2022/modal/modal.component.mjs +2 -2
- package/esm2022/navbar/navbar-item.component.mjs +12 -13
- package/esm2022/navbar/navbar.component.mjs +2 -2
- package/esm2022/navbar/vertical-navbar.component.mjs +2 -2
- package/esm2022/overflow-items/overflow-items.mjs +27 -10
- package/esm2022/popover/popover-confirm.component.mjs +3 -3
- package/esm2022/popover/popover.component.mjs +3 -3
- package/esm2022/progress-bar/progress-bar.component.mjs +2 -2
- package/esm2022/progress-spinner/progress-spinner.component.mjs +2 -2
- package/esm2022/radio/radio.component.mjs +2 -2
- package/esm2022/radio/radio.module.mjs +4 -5
- package/esm2022/risk-level/risk-level.component.mjs +2 -2
- package/esm2022/scrollbar/scrollbar.component.mjs +14 -11
- package/esm2022/scrollbar/scrollbar.directive.mjs +2 -1
- package/esm2022/select/select.component.mjs +42 -22
- package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
- package/esm2022/sidepanel/sidepanel.module.mjs +1 -5
- package/esm2022/splitter/splitter.component.mjs +5 -3
- package/esm2022/table/table.component.mjs +2 -2
- package/esm2022/tabs/paginated-tab-header.mjs +6 -2
- package/esm2022/tabs/tabs.module.mjs +1 -5
- package/esm2022/tags/tag-list.component.mjs +2 -2
- package/esm2022/textarea/textarea.component.mjs +7 -6
- package/esm2022/textarea/textarea.module.mjs +4 -5
- package/esm2022/timezone/timezone-option.component.mjs +2 -2
- package/esm2022/timezone/timezone-select.component.mjs +6 -4
- package/esm2022/toast/toast-animations.mjs +2 -2
- package/esm2022/toast/toast.component.mjs +3 -3
- package/esm2022/toggle/toggle.component.mjs +3 -3
- package/esm2022/toggle/toggle.module.mjs +4 -5
- package/esm2022/tooltip/tooltip.component.mjs +3 -3
- package/esm2022/top-bar/top-bar.mjs +2 -2
- package/esm2022/tree/padding.directive.mjs +8 -6
- package/esm2022/tree/toggle.mjs +2 -2
- package/esm2022/tree/tree-option.component.mjs +3 -3
- package/esm2022/tree/tree-selection.component.mjs +2 -2
- package/esm2022/tree/tree.mjs +2 -2
- package/esm2022/tree/tree.module.mjs +8 -5
- package/esm2022/tree-select/tree-select.component.mjs +50 -31
- package/fesm2022/koobiq-components-accordion.mjs +4 -4
- package/fesm2022/koobiq-components-accordion.mjs.map +1 -1
- package/fesm2022/koobiq-components-actions-panel.mjs +16 -112
- package/fesm2022/koobiq-components-actions-panel.mjs.map +1 -1
- package/fesm2022/koobiq-components-alert.mjs +2 -2
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-autocomplete.mjs +21 -24
- 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-breadcrumbs.mjs +2 -5
- package/fesm2022/koobiq-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +7 -7
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +3 -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-code-block.mjs +65 -28
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +109 -69
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +10 -6
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-dl.mjs +2 -2
- package/fesm2022/koobiq-components-dl.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +5 -4
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-ellipsis-center.mjs +7 -0
- package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-empty-state.mjs +2 -2
- package/fesm2022/koobiq-components-empty-state.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +5 -5
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-filter-bar.mjs +45 -35
- package/fesm2022/koobiq-components-filter-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +611 -220
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +8 -6
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +17 -10
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +2 -2
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +3 -2
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +15 -16
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-overflow-items.mjs +26 -9
- package/fesm2022/koobiq-components-overflow-items.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +4 -4
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-bar.mjs +2 -2
- package/fesm2022/koobiq-components-progress-bar.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-radio.mjs +6 -6
- package/fesm2022/koobiq-components-radio.mjs.map +1 -1
- package/fesm2022/koobiq-components-risk-level.mjs +2 -2
- package/fesm2022/koobiq-components-risk-level.mjs.map +1 -1
- package/fesm2022/koobiq-components-scrollbar.mjs +14 -10
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +42 -22
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +3 -6
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +4 -2
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +2 -2
- package/fesm2022/koobiq-components-table.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +5 -5
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +2 -2
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +9 -8
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +7 -5
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +3 -3
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +6 -6
- package/fesm2022/koobiq-components-toggle.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-top-bar.mjs +2 -2
- package/fesm2022/koobiq-components-top-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +50 -31
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +22 -17
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +9 -0
- package/file-upload/multiple-file-upload.component.d.ts +1 -1
- package/filter-bar/filter-bar.d.ts +2 -0
- package/filter-bar/filter-bar.types.d.ts +2 -2
- package/form-field/_fiedset-theme.scss +13 -0
- package/form-field/_form-field-theme.scss +29 -13
- package/form-field/_hint-theme.scss +21 -22
- package/form-field/cleaner.d.ts +5 -1
- package/form-field/cleaner.scss +1 -4
- package/form-field/error.d.ts +8 -0
- package/form-field/fieldset-tokens.scss +5 -0
- package/form-field/fieldset.d.ts +27 -0
- package/form-field/fieldset.scss +93 -0
- package/form-field/form-field-control.d.ts +1 -1
- package/form-field/form-field-tokens.scss +13 -3
- package/form-field/form-field.d.ts +210 -22
- package/form-field/form-field.module.d.ts +14 -12
- package/form-field/form-field.scss +58 -78
- package/form-field/hint.d.ts +5 -1
- package/form-field/hint.scss +3 -5
- package/form-field/label.d.ts +6 -0
- package/form-field/password-hint.d.ts +1 -1
- package/form-field/password-toggle.d.ts +25 -11
- package/form-field/password-toggle.scss +1 -2
- package/form-field/prefix.d.ts +2 -1
- package/form-field/public-api.d.ts +4 -1
- package/form-field/reactive-password-hint.d.ts +19 -0
- package/form-field/stepper.d.ts +20 -8
- package/form-field/stepper.scss +12 -11
- package/form-field/suffix.d.ts +2 -1
- package/form-field/validate.directive.d.ts +10 -12
- package/input/input-tokens.scss +2 -2
- package/input/input.module.d.ts +3 -4
- package/input/input.scss +1 -2
- package/list/_list-theme.scss +4 -1
- package/list/list.module.d.ts +2 -1
- package/list/list.scss +6 -12
- package/navbar/navbar-item.component.d.ts +3 -1
- package/overflow-items/overflow-items.d.ts +12 -5
- package/package.json +4 -4
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/prebuilt-themes/theme.css +1 -1
- package/radio/radio.module.d.ts +1 -2
- package/schematics/ng-add/index.js +3 -3
- package/scrollbar/scrollbar.component.d.ts +1 -0
- package/select/select-tokens.scss +5 -4
- package/select/select.component.d.ts +12 -3
- package/sidepanel/sidepanel.module.d.ts +5 -6
- package/splitter/splitter.component.d.ts +1 -0
- package/tabs/paginated-tab-header.d.ts +1 -0
- package/tabs/tabs.module.d.ts +5 -6
- package/tags/tag-list.scss +8 -4
- package/textarea/textarea.component.d.ts +1 -0
- package/textarea/textarea.module.d.ts +2 -3
- package/timepicker/timepicker.scss +1 -1
- package/toast/toast.component.scss +2 -0
- package/toggle/_toggle-theme.scss +10 -2
- package/toggle/toggle-tokens.scss +7 -1
- package/toggle/toggle.module.d.ts +1 -2
- package/toggle/toggle.scss +6 -6
- package/top-bar/top-bar.scss +48 -32
- package/tree/_tree-theme.scss +13 -2
- package/tree/padding.directive.d.ts +1 -1
- package/tree/tree-option.scss +12 -17
- package/tree/tree.module.d.ts +1 -1
- package/tree-select/tree-select.component.d.ts +10 -1
- package/esm2022/form-field/form-field-errors.mjs +0 -7
- package/form-field/form-field-errors.d.ts +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AfterContentChecked, AfterContentInit, AfterViewInit,
|
|
1
|
+
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
2
|
+
import { AfterContentChecked, AfterContentInit, AfterViewInit, ElementRef, InjectionToken, OnDestroy, Provider, QueryList } from '@angular/core';
|
|
3
3
|
import { NgControl } from '@angular/forms';
|
|
4
4
|
import { KbqColorDirective } from '@koobiq/components/core';
|
|
5
5
|
import { KbqCleaner } from './cleaner';
|
|
@@ -11,69 +11,257 @@ import { KbqPrefix } from './prefix';
|
|
|
11
11
|
import { KbqStepper } from './stepper';
|
|
12
12
|
import { KbqSuffix } from './suffix';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
/** @docs-private */
|
|
15
|
+
export declare function getKbqFormFieldMissingControlError(): Error;
|
|
16
|
+
/** @docs-private */
|
|
17
|
+
export declare function getKbqFormFieldYouCanNotUseCleanerInNumberInputError(): Error;
|
|
18
|
+
/**
|
|
19
|
+
* Default options for the kbq-form-field that can be configured using the `KBQ_FORM_FIELD_DEFAULT_OPTIONS`
|
|
20
|
+
* injection token.
|
|
21
|
+
*/
|
|
22
|
+
export type KbqFormFieldDefaultOptions = Partial<{
|
|
23
|
+
/** Disables form field borders and shadows. */
|
|
24
|
+
noBorders: boolean;
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Injection token that can be used to configure the default options for all kbq-form-field's.
|
|
28
|
+
*/
|
|
29
|
+
export declare const KBQ_FORM_FIELD_DEFAULT_OPTIONS: InjectionToken<Partial<{
|
|
30
|
+
/** Disables form field borders and shadows. */
|
|
31
|
+
noBorders: boolean;
|
|
32
|
+
}>>;
|
|
33
|
+
/** Utility provider for `KBQ_FORM_FIELD_DEFAULT_OPTIONS`. */
|
|
34
|
+
export declare const kbqFormFieldDefaultOptionsProvider: (options: KbqFormFieldDefaultOptions) => Provider;
|
|
35
|
+
/** Container for form controls that applies styling and behavior. */
|
|
36
|
+
export declare class KbqFormField extends KbqColorDirective implements AfterContentInit, AfterViewInit, OnDestroy, AfterContentChecked {
|
|
37
|
+
private readonly destroyRef;
|
|
38
|
+
private readonly changeDetectorRef;
|
|
39
|
+
private readonly focusMonitor;
|
|
40
|
+
private readonly defaultOptions;
|
|
41
|
+
/**
|
|
42
|
+
* @docs-private
|
|
43
|
+
*/
|
|
44
|
+
readonly elementRef: ElementRef<any>;
|
|
45
|
+
/** Disables form field borders and shadows. */
|
|
46
|
+
readonly noBorders: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
47
|
+
/**
|
|
48
|
+
* The form field control.
|
|
49
|
+
*
|
|
50
|
+
* @docs-private
|
|
51
|
+
*/
|
|
52
|
+
control: KbqFormFieldControl<unknown>;
|
|
53
|
+
/**
|
|
54
|
+
* @docs-private
|
|
55
|
+
*/
|
|
56
|
+
readonly stepper: KbqStepper;
|
|
57
|
+
/**
|
|
58
|
+
* @docs-private
|
|
59
|
+
*
|
|
60
|
+
* @TODO Should be readonly (#DS-3883)
|
|
61
|
+
*/
|
|
19
62
|
cleaner: KbqCleaner | null;
|
|
63
|
+
/**
|
|
64
|
+
* @docs-private
|
|
65
|
+
*/
|
|
20
66
|
passwordToggle: KbqPasswordToggle | null;
|
|
67
|
+
/**
|
|
68
|
+
* @docs-private
|
|
69
|
+
*/
|
|
21
70
|
hint: QueryList<KbqHint>;
|
|
71
|
+
/**
|
|
72
|
+
* @docs-private
|
|
73
|
+
*/
|
|
22
74
|
passwordHints: QueryList<KbqPasswordHint>;
|
|
75
|
+
/**
|
|
76
|
+
* @docs-private
|
|
77
|
+
*/
|
|
23
78
|
suffix: QueryList<KbqSuffix>;
|
|
79
|
+
/**
|
|
80
|
+
* @docs-private
|
|
81
|
+
*/
|
|
24
82
|
prefix: QueryList<KbqPrefix>;
|
|
83
|
+
/**
|
|
84
|
+
* @docs-private
|
|
85
|
+
*/
|
|
25
86
|
connectionContainerRef: ElementRef;
|
|
26
|
-
|
|
87
|
+
private readonly reactivePasswordHint;
|
|
88
|
+
private readonly error;
|
|
89
|
+
private readonly label;
|
|
90
|
+
/**
|
|
91
|
+
* @docs-private
|
|
92
|
+
*/
|
|
27
93
|
hovered: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* @docs-private
|
|
96
|
+
*/
|
|
28
97
|
canCleanerClearByEsc: boolean;
|
|
29
|
-
|
|
98
|
+
/** Whether the form field is invalid. */
|
|
99
|
+
get invalid(): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Whether the form field control has an reactive password hint.
|
|
102
|
+
*
|
|
103
|
+
* @docs-private
|
|
104
|
+
*/
|
|
105
|
+
protected get hasReactivePasswordHint(): boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Whether the form-field contains kbq-error.
|
|
108
|
+
*
|
|
109
|
+
* @docs-private
|
|
110
|
+
*/
|
|
111
|
+
protected get hasError(): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Whether the form-field contains kbq-label.
|
|
114
|
+
*
|
|
115
|
+
* @docs-private
|
|
116
|
+
*/
|
|
117
|
+
protected get hasLabel(): boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Whether the form-field contains kbq-password-hint.
|
|
120
|
+
*
|
|
121
|
+
* @docs-private
|
|
122
|
+
*/
|
|
123
|
+
get hasPasswordHint(): boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Current focus origin state.
|
|
126
|
+
*
|
|
127
|
+
* @docs-private
|
|
128
|
+
*/
|
|
30
129
|
get focusOrigin(): FocusOrigin;
|
|
31
130
|
private _focusOrigin;
|
|
131
|
+
/**
|
|
132
|
+
* @docs-private
|
|
133
|
+
*/
|
|
32
134
|
get hasFocus(): boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Whether the form-field contains kbq-hint.
|
|
137
|
+
*
|
|
138
|
+
* @docs-private
|
|
139
|
+
*/
|
|
33
140
|
get hasHint(): boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Whether the form-field contains kbqSuffix.
|
|
143
|
+
*
|
|
144
|
+
* @docs-private
|
|
145
|
+
*/
|
|
34
146
|
get hasSuffix(): boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Whether the form-field contains kbqPrefix.
|
|
149
|
+
*
|
|
150
|
+
* @docs-private
|
|
151
|
+
*/
|
|
35
152
|
get hasPrefix(): boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Whether the form-field contains kbq-cleaner.
|
|
155
|
+
*
|
|
156
|
+
* @docs-private
|
|
157
|
+
*/
|
|
36
158
|
get hasCleaner(): boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Whether the form-field contains kbq-stepper.
|
|
161
|
+
*
|
|
162
|
+
* @docs-private
|
|
163
|
+
*/
|
|
37
164
|
get hasStepper(): boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Whether the form-field contains kbq-password-toggle.
|
|
167
|
+
*
|
|
168
|
+
* @docs-private
|
|
169
|
+
*/
|
|
38
170
|
get hasPasswordToggle(): boolean;
|
|
171
|
+
/**
|
|
172
|
+
* @docs-private
|
|
173
|
+
*/
|
|
39
174
|
get canShowCleaner(): boolean;
|
|
175
|
+
/** Whether the form field is disabled. */
|
|
40
176
|
get disabled(): boolean;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
177
|
+
/**
|
|
178
|
+
* @deprecated stepper should be always visible when provided, so this parameter is redundant,
|
|
179
|
+
* use `hasStepper` instead
|
|
180
|
+
*
|
|
181
|
+
* @docs-private
|
|
182
|
+
*/
|
|
43
183
|
canShowStepper: boolean;
|
|
44
|
-
constructor(changeDetectorRef: ChangeDetectorRef, focusMonitor: FocusMonitor);
|
|
45
184
|
ngAfterContentInit(): void;
|
|
46
185
|
ngAfterContentChecked(): void;
|
|
47
186
|
ngAfterViewInit(): void;
|
|
187
|
+
ngOnDestroy(): void;
|
|
48
188
|
/** Focuses the control. */
|
|
49
189
|
focus(options?: FocusOptions): void;
|
|
50
190
|
/**
|
|
51
191
|
* @deprecated Use `focus` instead.
|
|
192
|
+
*
|
|
193
|
+
* @docs-private
|
|
52
194
|
*/
|
|
53
195
|
focusViaKeyboard(options?: FocusOptions): void;
|
|
54
|
-
|
|
55
|
-
|
|
196
|
+
/**
|
|
197
|
+
* @docs-private
|
|
198
|
+
*/
|
|
199
|
+
clearValue(event: Event): void;
|
|
200
|
+
/**
|
|
201
|
+
* Handles a click on the control's container.
|
|
202
|
+
*
|
|
203
|
+
* @docs-private
|
|
204
|
+
*/
|
|
205
|
+
onContainerClick(event: MouseEvent): void;
|
|
206
|
+
/**
|
|
207
|
+
* Handles keydown events.
|
|
208
|
+
*
|
|
209
|
+
* @docs-private
|
|
210
|
+
*/
|
|
56
211
|
onKeyDown(event: KeyboardEvent): void;
|
|
212
|
+
/**
|
|
213
|
+
* @docs-private
|
|
214
|
+
*/
|
|
57
215
|
onHoverChanged(isHovered: boolean): void;
|
|
58
216
|
/**
|
|
59
|
-
* Gets an ElementRef for the element that a overlay attached to the form-field should be
|
|
60
|
-
* positioned relative to.
|
|
217
|
+
* Gets an ElementRef for the element that a overlay attached to the form-field should be positioned relative to.
|
|
61
218
|
*/
|
|
62
219
|
getConnectedOverlayOrigin(): ElementRef;
|
|
63
|
-
/**
|
|
220
|
+
/**
|
|
221
|
+
* Determines whether a class from the NgControl should be forwarded to the host element.
|
|
222
|
+
*
|
|
223
|
+
* @docs-private
|
|
224
|
+
*/
|
|
64
225
|
shouldForward(prop: keyof NgControl): boolean;
|
|
65
|
-
|
|
226
|
+
/**
|
|
227
|
+
* Runs the focus monitor for the form field.
|
|
228
|
+
*
|
|
229
|
+
* @docs-private
|
|
230
|
+
*/
|
|
66
231
|
runFocusMonitor: () => void;
|
|
232
|
+
/**
|
|
233
|
+
* Stops the focus monitor for the form field.
|
|
234
|
+
*
|
|
235
|
+
* @docs-private
|
|
236
|
+
*/
|
|
67
237
|
stopFocusMonitor(): void;
|
|
68
|
-
/**
|
|
238
|
+
/**
|
|
239
|
+
* Throws an error if the form-field control is missing.
|
|
240
|
+
*
|
|
241
|
+
* @docs-private
|
|
242
|
+
*/
|
|
69
243
|
protected validateControlChild(): void;
|
|
244
|
+
/** Initializes the form field control. */
|
|
245
|
+
private initializeControl;
|
|
246
|
+
/** Initializes the kbqPrefix and kbqSuffix containers. */
|
|
247
|
+
private initializePrefixAndSuffix;
|
|
248
|
+
/** Initializes the KbqHint, KbqPasswordHint, KbqReactivePasswordHint and KbqError containers. */
|
|
249
|
+
private initializeHint;
|
|
70
250
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqFormField, never>;
|
|
71
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqFormField, "kbq-form-field", ["kbqFormField"], {}, {}, ["control", "stepper", "cleaner", "passwordToggle", "hint", "passwordHints", "suffix", "prefix"], ["[kbqPrefix]", "*", "
|
|
251
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqFormField, "kbq-form-field", ["kbqFormField"], { "noBorders": { "alias": "noBorders"; "required": false; "isSignal": true; }; }, {}, ["control", "stepper", "cleaner", "passwordToggle", "label", "hint", "passwordHints", "suffix", "prefix", "reactivePasswordHint", "error"], ["kbq-label", "[kbqPrefix]", "*", "kbq-cleaner", "kbq-password-toggle, kbq-stepper, [kbqSuffix]", "kbq-error", "kbq-hint, kbq-password-hint, kbq-reactive-password-hint"], true, never>;
|
|
72
252
|
}
|
|
253
|
+
/**
|
|
254
|
+
* @docs-private
|
|
255
|
+
*
|
|
256
|
+
* @deprecated Will be removed in next major release, use `noBorders` input instead.
|
|
257
|
+
*/
|
|
73
258
|
export declare class KbqFormFieldWithoutBorders {
|
|
74
259
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqFormFieldWithoutBorders, never>;
|
|
75
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqFormFieldWithoutBorders, "kbq-form-field[kbqFormFieldWithoutBorders]", ["kbqFormFieldWithoutBorders"], {}, {}, never, never,
|
|
260
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqFormFieldWithoutBorders, "kbq-form-field[kbqFormFieldWithoutBorders]", ["kbqFormFieldWithoutBorders"], {}, {}, never, never, true, never>;
|
|
76
261
|
}
|
|
262
|
+
/**
|
|
263
|
+
* @docs-private
|
|
264
|
+
*/
|
|
77
265
|
export declare class KbqTrim {
|
|
78
266
|
private readonly noTrim;
|
|
79
267
|
private ngControl;
|
|
@@ -82,5 +270,5 @@ export declare class KbqTrim {
|
|
|
82
270
|
trim(value: any): any;
|
|
83
271
|
private registerOnChange;
|
|
84
272
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTrim, [{ attribute: "no-trim"; }, { optional: true; self: true; }]>;
|
|
85
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTrim, "[kbqInput], [kbqTextarea]", ["KbqTrim"], {}, {}, never, never,
|
|
273
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTrim, "[kbqInput], [kbqTextarea]", ["KbqTrim"], {}, {}, never, never, true, never>;
|
|
86
274
|
}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./
|
|
3
|
-
import * as i2 from "./
|
|
4
|
-
import * as i3 from "./
|
|
5
|
-
import * as i4 from "./
|
|
6
|
-
import * as i5 from "./
|
|
7
|
-
import * as i6 from "./
|
|
8
|
-
import * as i7 from "./
|
|
9
|
-
import * as i8 from "./
|
|
10
|
-
import * as i9 from "./
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "
|
|
2
|
+
import * as i1 from "./cleaner";
|
|
3
|
+
import * as i2 from "./form-field";
|
|
4
|
+
import * as i3 from "./prefix";
|
|
5
|
+
import * as i4 from "./suffix";
|
|
6
|
+
import * as i5 from "./password-toggle";
|
|
7
|
+
import * as i6 from "./stepper";
|
|
8
|
+
import * as i7 from "./label";
|
|
9
|
+
import * as i8 from "./hint";
|
|
10
|
+
import * as i9 from "./error";
|
|
11
|
+
import * as i10 from "./reactive-password-hint";
|
|
12
|
+
import * as i11 from "./fieldset";
|
|
13
|
+
import * as i12 from "./password-hint";
|
|
14
|
+
import * as i13 from "./validate.directive";
|
|
13
15
|
export declare class KbqFormFieldModule {
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqFormFieldModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqFormFieldModule,
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqFormFieldModule, never, [typeof i1.KbqCleaner, typeof i2.KbqFormField, typeof i3.KbqPrefix, typeof i4.KbqSuffix, typeof i5.KbqPasswordToggle, typeof i6.KbqStepper, typeof i7.KbqLabel, typeof i8.KbqHint, typeof i9.KbqError, typeof i10.KbqReactivePasswordHint, typeof i11.KbqLegend, typeof i11.KbqFieldset, typeof i11.KbqFieldsetItem, typeof i12.KbqPasswordHint, typeof i2.KbqFormFieldWithoutBorders, typeof i13.KbqValidateDirective, typeof i2.KbqTrim], [typeof i1.KbqCleaner, typeof i2.KbqFormField, typeof i3.KbqPrefix, typeof i4.KbqSuffix, typeof i5.KbqPasswordToggle, typeof i6.KbqStepper, typeof i7.KbqLabel, typeof i8.KbqHint, typeof i9.KbqError, typeof i10.KbqReactivePasswordHint, typeof i11.KbqLegend, typeof i11.KbqFieldset, typeof i11.KbqFieldsetItem, typeof i12.KbqPasswordHint, typeof i2.KbqFormFieldWithoutBorders, typeof i13.KbqValidateDirective, typeof i2.KbqTrim]>;
|
|
16
18
|
static ɵinj: i0.ɵɵInjectorDeclaration<KbqFormFieldModule>;
|
|
17
19
|
}
|
|
@@ -1,29 +1,72 @@
|
|
|
1
|
-
/* stylelint-disable scss/operator-no-newline-after */
|
|
2
|
-
|
|
3
1
|
@use '../core/forms/forms';
|
|
2
|
+
@use './form-field-theme' as theme;
|
|
4
3
|
|
|
5
|
-
@
|
|
4
|
+
@mixin kbq-form-field-hint-geometry {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: var(--kbq-size-xxs);
|
|
8
|
+
margin-top: var(--kbq-form-field-hint-size-margin-top);
|
|
6
9
|
|
|
7
|
-
|
|
10
|
+
.kbq-password-hint:first-child {
|
|
11
|
+
margin-top: var(--kbq-size-s);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
8
14
|
|
|
9
15
|
.kbq-form-field {
|
|
10
16
|
position: relative;
|
|
11
17
|
display: inline-block;
|
|
12
18
|
width: 100%;
|
|
13
19
|
|
|
20
|
+
.kbq-form-field__label {
|
|
21
|
+
display: flex;
|
|
22
|
+
margin-bottom: var(--kbq-size-xs);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// We should override suffix spacing for select type, because it has custom suffix
|
|
26
|
+
&.kbq-form-field-type-select .kbq-form-field__suffix {
|
|
27
|
+
margin-right: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
14
30
|
.kbq-form-field__container {
|
|
15
31
|
box-sizing: border-box;
|
|
16
|
-
|
|
32
|
+
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
align-items: center;
|
|
36
|
+
|
|
17
37
|
border-width: var(--kbq-form-field-size-border-width);
|
|
18
38
|
border-style: solid;
|
|
19
39
|
border-color: transparent;
|
|
20
40
|
border-radius: var(--kbq-form-field-size-border-radius);
|
|
41
|
+
|
|
42
|
+
padding-left: var(--kbq-form-field-size-container-left-padding);
|
|
43
|
+
padding-right: var(--kbq-form-field-size-container-right-padding);
|
|
21
44
|
}
|
|
22
45
|
|
|
23
46
|
.kbq-form-field:not(.kbq-form-field-type-textarea) {
|
|
24
47
|
height: var(--kbq-form-field-size-height);
|
|
25
48
|
}
|
|
26
49
|
|
|
50
|
+
.kbq-form-field__infix {
|
|
51
|
+
width: 100%;
|
|
52
|
+
max-width: calc(100% - var(--kbq-size-xs));
|
|
53
|
+
flex-grow: 1;
|
|
54
|
+
|
|
55
|
+
padding-left: var(--kbq-form-field-size-infix-left-padding);
|
|
56
|
+
|
|
57
|
+
&:has(.kbq-select_multiple, .kbq-select_multiline):not(:has(.kbq-select__trigger_empty)),
|
|
58
|
+
&:has(.kbq-tag-list) {
|
|
59
|
+
padding-left: 0;
|
|
60
|
+
|
|
61
|
+
max-width: 100%;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
& .kbq-input,
|
|
65
|
+
& .kbq-tag-input {
|
|
66
|
+
padding-right: var(--kbq-form-field-size-infix-right-padding);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
27
70
|
&,
|
|
28
71
|
.kbq-input,
|
|
29
72
|
.kbq-textarea {
|
|
@@ -36,99 +79,36 @@
|
|
|
36
79
|
|
|
37
80
|
&.cdk-focused,
|
|
38
81
|
&.kbq-focused {
|
|
39
|
-
z-index:
|
|
82
|
+
z-index: 3;
|
|
40
83
|
}
|
|
41
84
|
|
|
42
|
-
&.kbq-form-field_without-borders .kbq-form-field__container
|
|
85
|
+
&.kbq-form-field_without-borders .kbq-form-field__container,
|
|
86
|
+
&.kbq-form-field_no-borders .kbq-form-field__container {
|
|
43
87
|
border-color: transparent !important;
|
|
44
88
|
box-shadow: none !important;
|
|
45
89
|
}
|
|
46
90
|
|
|
47
|
-
&.kbq-form-field_has-prefix {
|
|
48
|
-
.kbq-input {
|
|
49
|
-
padding-left: kbq-sum-series-css-variables([form-field-size-icon-size, size-m, size-s]);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&.kbq-form-field_has-password-toggle,
|
|
54
|
-
&.kbq-form-field_has-cleaner,
|
|
55
|
-
&.kbq-form-field_has-stepper,
|
|
56
|
-
&.kbq-form-field_has-suffix {
|
|
57
|
-
.kbq-input {
|
|
58
|
-
padding-right: kbq-sum-series-css-variables(
|
|
59
|
-
[form-field-size-icon-button-size,
|
|
60
|
-
form-field-size-icon-button-margin-left,
|
|
61
|
-
form-field-size-icon-button-margin-right]
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
91
|
& + .kbq-password-hint {
|
|
67
92
|
margin-top: var(--kbq-size-m);
|
|
68
93
|
}
|
|
69
94
|
|
|
70
95
|
.kbq-form-field__prefix,
|
|
71
96
|
.kbq-form-field__suffix {
|
|
72
|
-
position: absolute;
|
|
73
|
-
top: 0;
|
|
74
|
-
bottom: 0;
|
|
75
|
-
|
|
76
97
|
display: flex;
|
|
77
|
-
flex-direction: row;
|
|
78
98
|
justify-content: center;
|
|
79
99
|
align-items: center;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.kbq-form-field__prefix {
|
|
83
|
-
left: 0;
|
|
84
|
-
padding-left: var(--kbq-size-m);
|
|
85
|
-
padding-right: var(--kbq-size-s);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.kbq-form-field__suffix {
|
|
89
|
-
right: 0;
|
|
90
|
-
padding-right: var(--kbq-size-m);
|
|
91
|
-
padding-left: var(--kbq-size-s);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.kbq-form-field__cleaner,
|
|
95
|
-
.kbq-password-toggle,
|
|
96
|
-
.kbq-stepper {
|
|
97
|
-
position: absolute;
|
|
98
100
|
|
|
99
|
-
|
|
100
|
-
bottom: 0;
|
|
101
|
-
right: 0;
|
|
101
|
+
min-width: var(--kbq-form-field-size-addon-width);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
.kbq-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
justify-content: center;
|
|
108
|
-
align-items: center;
|
|
109
|
-
|
|
110
|
-
width: var(--kbq-form-field-size-icon-button-size);
|
|
111
|
-
|
|
112
|
-
.kbq-stepper-step-up,
|
|
113
|
-
.kbq-stepper-step-down {
|
|
114
|
-
cursor: pointer;
|
|
115
|
-
width: var(--kbq-form-field-size-icon-button-size);
|
|
116
|
-
text-align: center;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.kbq-stepper-step-up {
|
|
120
|
-
transform: scaleY(-1);
|
|
104
|
+
.kbq-form-field__prefix {
|
|
105
|
+
& + .kbq-form-field__infix {
|
|
106
|
+
padding-left: 0;
|
|
121
107
|
}
|
|
122
108
|
}
|
|
123
109
|
|
|
124
110
|
.kbq-form-field__hint {
|
|
125
|
-
|
|
126
|
-
flex-direction: column;
|
|
127
|
-
margin-top: var(--kbq-form-field-hint-size-margin-top);
|
|
128
|
-
|
|
129
|
-
& .kbq-password-hint:first-child {
|
|
130
|
-
margin-top: var(--kbq-size-s);
|
|
131
|
-
}
|
|
111
|
+
@include kbq-form-field-hint-geometry();
|
|
132
112
|
}
|
|
133
113
|
|
|
134
114
|
.kbq-password-hint {
|
|
@@ -136,5 +116,5 @@
|
|
|
136
116
|
}
|
|
137
117
|
}
|
|
138
118
|
|
|
139
|
-
@include kbq-form-field-theme();
|
|
140
|
-
@include kbq-form-field-typography();
|
|
119
|
+
@include theme.kbq-form-field-theme();
|
|
120
|
+
@include theme.kbq-form-field-typography();
|
package/form-field/hint.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { KbqColorDirective } from '@koobiq/components/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/** Hint text to be shown below the form field control. */
|
|
3
4
|
export declare class KbqHint extends KbqColorDirective {
|
|
5
|
+
/** Unique ID for the hint. */
|
|
4
6
|
id: string;
|
|
7
|
+
/** Disables `color` for the hint text. */
|
|
5
8
|
fillTextOff: boolean;
|
|
9
|
+
/** Makes the hint size smaller. */
|
|
6
10
|
compact: boolean;
|
|
7
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqHint, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqHint, "kbq-hint", ["kbqHint"], { "id": { "alias": "id"; "required": false; }; "fillTextOff": { "alias": "fillTextOff"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; }, {}, never, ["[kbq-icon]", "*"],
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqHint, "kbq-hint", ["kbqHint"], { "id": { "alias": "id"; "required": false; }; "fillTextOff": { "alias": "fillTextOff"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; }, {}, never, ["[kbq-icon]", "*"], true, never>;
|
|
9
13
|
static ngAcceptInputType_fillTextOff: unknown;
|
|
10
14
|
static ngAcceptInputType_compact: unknown;
|
|
11
15
|
}
|
package/form-field/hint.scss
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
|
|
3
|
-
@use './hint-theme' as *;
|
|
1
|
+
@use './hint-theme' as theme;
|
|
4
2
|
|
|
5
3
|
.kbq-hint {
|
|
6
4
|
display: flex;
|
|
@@ -18,5 +16,5 @@
|
|
|
18
16
|
}
|
|
19
17
|
}
|
|
20
18
|
|
|
21
|
-
@include kbq-hint-theme();
|
|
22
|
-
@include kbq-hint-typography();
|
|
19
|
+
@include theme.kbq-hint-theme();
|
|
20
|
+
@include theme.kbq-hint-typography();
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/** Label for the form field. */
|
|
3
|
+
export declare class KbqLabel {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqLabel, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqLabel, "kbq-label", ["kbqLabel"], {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
@@ -42,5 +42,5 @@ export declare class KbqPasswordHint extends KbqHint implements AfterContentInit
|
|
|
42
42
|
private checkSpecialSymbolsRegexRule;
|
|
43
43
|
private isValueChanged;
|
|
44
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqPasswordHint, [null, { optional: true; }]>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqPasswordHint, "kbq-password-hint", never, { "id": { "alias": "id"; "required": false; }; "rule": { "alias": "rule"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "regex": { "alias": "regex"; "required": false; }; "customCheckRule": { "alias": "checkRule"; "required": false; }; "viewFormField": { "alias": "viewFormField"; "required": false; }; "fillTextOff": { "alias": "fillTextOff"; "required": false; }; }, {}, never, ["*"],
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqPasswordHint, "kbq-password-hint", never, { "id": { "alias": "id"; "required": false; }; "rule": { "alias": "rule"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "regex": { "alias": "regex"; "required": false; }; "customCheckRule": { "alias": "checkRule"; "required": false; }; "viewFormField": { "alias": "viewFormField"; "required": false; }; "fillTextOff": { "alias": "fillTextOff"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
46
46
|
}
|
|
@@ -1,22 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { KbqFormFieldRef } from '@koobiq/components/core';
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
3
2
|
import { KbqIconButton } from '@koobiq/components/icon';
|
|
4
3
|
import { KbqTooltipTrigger } from '@koobiq/components/tooltip';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
private
|
|
9
|
-
|
|
5
|
+
/** Component which changes password visibility. */
|
|
6
|
+
export declare class KbqPasswordToggle extends KbqTooltipTrigger {
|
|
7
|
+
private readonly formField;
|
|
8
|
+
/**
|
|
9
|
+
* @docs-private
|
|
10
|
+
*/
|
|
11
|
+
readonly icon: KbqIconButton;
|
|
10
12
|
get content(): string | TemplateRef<any>;
|
|
11
13
|
set content(content: string | TemplateRef<any>);
|
|
12
14
|
kbqTooltipHidden: string | TemplateRef<any>;
|
|
15
|
+
/** Form field password control. */
|
|
16
|
+
private get control();
|
|
17
|
+
/**
|
|
18
|
+
* @docs-private
|
|
19
|
+
*/
|
|
13
20
|
get hidden(): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* @docs-private
|
|
23
|
+
*/
|
|
14
24
|
get iconClass(): string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
25
|
+
/**
|
|
26
|
+
* @docs-private
|
|
27
|
+
*/
|
|
28
|
+
get visibility(): 'hidden' | 'visible';
|
|
29
|
+
constructor();
|
|
30
|
+
/**
|
|
31
|
+
* @docs-private
|
|
32
|
+
*/
|
|
18
33
|
toggle(event: KeyboardEvent): void;
|
|
19
|
-
private updateState;
|
|
20
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqPasswordToggle, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqPasswordToggle, "kbq-password-toggle", ["kbqPasswordToggle"], { "content": { "alias": "kbqTooltipNotHidden"; "required": false; }; "kbqTooltipHidden": { "alias": "kbqTooltipHidden"; "required": false; }; }, {}, never, never,
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqPasswordToggle, "kbq-password-toggle", ["kbqPasswordToggle"], { "content": { "alias": "kbqTooltipNotHidden"; "required": false; }; "kbqTooltipHidden": { "alias": "kbqTooltipHidden"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
36
|
}
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: center;
|
|
5
5
|
|
|
6
|
-
width: var(--kbq-form-field-size-
|
|
7
|
-
margin-right: var(--kbq-form-field-size-icon-button-margin-right);
|
|
6
|
+
width: var(--kbq-form-field-size-addon-width);
|
|
8
7
|
height: 100%;
|
|
9
8
|
|
|
10
9
|
&::-moz-focus-inner {
|
package/form-field/prefix.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
+
/** Element to be placed in front of the form field. */
|
|
2
3
|
export declare class KbqPrefix {
|
|
3
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqPrefix, never>;
|
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqPrefix, "[kbqPrefix]",
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqPrefix, "[kbqPrefix]", ["kbqPrefix"], {}, {}, never, never, true, never>;
|
|
5
6
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
export * from './cleaner';
|
|
2
|
+
export * from './error';
|
|
3
|
+
export * from './fieldset';
|
|
2
4
|
export * from './form-field';
|
|
3
5
|
export * from './form-field-control';
|
|
4
|
-
export * from './form-field-errors';
|
|
5
6
|
export * from './form-field.module';
|
|
6
7
|
export * from './hint';
|
|
8
|
+
export * from './label';
|
|
7
9
|
export * from './password-hint';
|
|
8
10
|
export * from './password-toggle';
|
|
9
11
|
export * from './prefix';
|
|
12
|
+
export * from './reactive-password-hint';
|
|
10
13
|
export * from './stepper';
|
|
11
14
|
export * from './suffix';
|
|
12
15
|
export * from './validate.directive';
|