@leanix/components 0.4.853 → 0.4.854
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/fesm2022/leanix-components-ui5.mjs +9 -9
- package/fesm2022/leanix-components-ui5.mjs.map +1 -1
- package/fesm2022/leanix-components.mjs +483 -485
- package/fesm2022/leanix-components.mjs.map +1 -1
- package/index.d.ts +5283 -134
- package/package.json +10 -10
- package/ui5/index.d.ts +88 -8
- package/lib/core-ui/components/avatar/avatar.component.d.ts +0 -45
- package/lib/core-ui/components/avatar/avatar.helpers.d.ts +0 -8
- package/lib/core-ui/components/avatar/avatar.model.d.ts +0 -38
- package/lib/core-ui/components/avatar-group/avatar-group.component.d.ts +0 -75
- package/lib/core-ui/components/badge/badge.component.d.ts +0 -27
- package/lib/core-ui/components/banner/banner.component.d.ts +0 -40
- package/lib/core-ui/components/banner/banner.models.d.ts +0 -14
- package/lib/core-ui/components/button/button.component.d.ts +0 -87
- package/lib/core-ui/components/button-group/button-group.component.d.ts +0 -34
- package/lib/core-ui/components/card/card.component.d.ts +0 -26
- package/lib/core-ui/components/collapsible/collapsible.component.d.ts +0 -56
- package/lib/core-ui/components/counter/counter.component.d.ts +0 -32
- package/lib/core-ui/components/ellipsis/ellipsis.component.d.ts +0 -64
- package/lib/core-ui/components/empty-state/empty-state.component.d.ts +0 -83
- package/lib/core-ui/components/page-header/page-header.component.d.ts +0 -85
- package/lib/core-ui/components/skeleton/skeleton.component.d.ts +0 -40
- package/lib/core-ui/components/spinner/spinner.component.d.ts +0 -30
- package/lib/core-ui/components/stepper/stepper.component.d.ts +0 -76
- package/lib/core-ui/components/table/table-header/table-header.component.d.ts +0 -55
- package/lib/core-ui/components/table/table.component.d.ts +0 -83
- package/lib/core-ui/components/tokenizer/token/token.component.d.ts +0 -26
- package/lib/core-ui/components/tokenizer/tokenizer-overflow-popover/tokenizer-overflow-popover.component.d.ts +0 -57
- package/lib/core-ui/components/tokenizer/tokenizer.component.d.ts +0 -97
- package/lib/core-ui/core-ui.constants.d.ts +0 -16
- package/lib/core-ui/core-ui.module.d.ts +0 -72
- package/lib/core-ui/directives/after-view-init.directive.d.ts +0 -19
- package/lib/core-ui/directives/autoclose-group.service.d.ts +0 -12
- package/lib/core-ui/directives/autoclose.directive.d.ts +0 -26
- package/lib/core-ui/directives/autofocus.directive.d.ts +0 -13
- package/lib/core-ui/functions/core-css.helpers.d.ts +0 -10
- package/lib/core-ui/functions/highlight-text.function.d.ts +0 -29
- package/lib/core-ui/icon/fa-to-sap-icon.pipe.d.ts +0 -23
- package/lib/core-ui/icon/icon-map.d.ts +0 -13
- package/lib/core-ui/linkify/linkify.pipe.d.ts +0 -59
- package/lib/core-ui/linkify/unlinkify.pipe.d.ts +0 -20
- package/lib/core-ui/pipes/br.pipe.d.ts +0 -9
- package/lib/core-ui/pipes/contrast-color.pipe.d.ts +0 -7
- package/lib/core-ui/pipes/custom-date.pipe.d.ts +0 -28
- package/lib/core-ui/pipes/display-avatars.pipe.d.ts +0 -12
- package/lib/core-ui/pipes/highlight-range.pipe.d.ts +0 -9
- package/lib/core-ui/pipes/highlight-term.pipe.d.ts +0 -23
- package/lib/core-ui/pipes/lx-is-uuid.pipe.d.ts +0 -7
- package/lib/core-ui/pipes/lx-time-ago.pipe.d.ts +0 -8
- package/lib/core-ui/pipes/lx-translate.pipe.d.ts +0 -17
- package/lib/core-ui/pipes/markdown.pipe.d.ts +0 -14
- package/lib/core-ui/pipes/nbsp.pipe.d.ts +0 -7
- package/lib/core-ui/pipes/sort.pipe.d.ts +0 -13
- package/lib/core-ui/pipes/translation-after.pipe.d.ts +0 -17
- package/lib/core-ui/pipes/translation-before.pipe.d.ts +0 -32
- package/lib/core-ui/pipes/translation-between.pipe.d.ts +0 -37
- package/lib/core-ui/pipes/unescape-curly-braces.pipe.d.ts +0 -7
- package/lib/core-ui/services/resize-observer.service.d.ts +0 -33
- package/lib/core-ui/tooltip/to-cdk-position.function.d.ts +0 -3
- package/lib/core-ui/tooltip/tooltip-position.interface.d.ts +0 -6
- package/lib/core-ui/tooltip/tooltip.component.d.ts +0 -39
- package/lib/core-ui/tooltip/tooltip.directive.d.ts +0 -38
- package/lib/forms-ui/components/basic-dropdown/basic-dropdown.component.d.ts +0 -127
- package/lib/forms-ui/components/basic-dropdown-item/basic-dropdown-item.component.d.ts +0 -53
- package/lib/forms-ui/components/breadcrumb/breadcrumb.component.d.ts +0 -48
- package/lib/forms-ui/components/cdk-options-dropdown/cdk-options-dropdown.component.d.ts +0 -73
- package/lib/forms-ui/components/cdk-options-sub-dropdown/cdk-options-sub-dropdown.component.d.ts +0 -49
- package/lib/forms-ui/components/currency/currency-input.component.d.ts +0 -113
- package/lib/forms-ui/components/currency/currency-symbol-map.constant.d.ts +0 -3
- package/lib/forms-ui/components/currency/currency-symbol.component.d.ts +0 -27
- package/lib/forms-ui/components/date-input/date-input.component.d.ts +0 -259
- package/lib/forms-ui/components/date-picker-ui/date-formatter.d.ts +0 -4
- package/lib/forms-ui/components/date-picker-ui/datepicker-inner.component.d.ts +0 -113
- package/lib/forms-ui/components/date-picker-ui/datepicker-ui.module.d.ts +0 -9
- package/lib/forms-ui/components/date-picker-ui/datepicker.component.d.ts +0 -81
- package/lib/forms-ui/components/date-picker-ui/datepicker.config.d.ts +0 -22
- package/lib/forms-ui/components/date-picker-ui/daypicker.component.d.ts +0 -23
- package/lib/forms-ui/components/date-picker-ui/isBs3.d.ts +0 -1
- package/lib/forms-ui/components/date-picker-ui/monthpicker.component.d.ts +0 -20
- package/lib/forms-ui/components/date-picker-ui/yearpicker.component.d.ts +0 -20
- package/lib/forms-ui/components/drag-and-drop-list/constants.d.ts +0 -4
- package/lib/forms-ui/components/drag-and-drop-list/drag-and-drop-list-item/drag-and-drop-list-item.component.d.ts +0 -68
- package/lib/forms-ui/components/drag-and-drop-list/drag-and-drop-list.component.d.ts +0 -104
- package/lib/forms-ui/components/drag-and-drop-list/drag-and-drop-list.module.d.ts +0 -13
- package/lib/forms-ui/components/drag-and-drop-list/keyboard-sortable-item/keyboard-sortable-item.directive.d.ts +0 -38
- package/lib/forms-ui/components/drag-and-drop-list/keyboard-sortable-list/keyboard-sortable-list.directive.d.ts +0 -14
- package/lib/forms-ui/components/error-message/error-message.component.d.ts +0 -23
- package/lib/forms-ui/components/form-error/form-error.component.d.ts +0 -36
- package/lib/forms-ui/components/input/input.component.d.ts +0 -42
- package/lib/forms-ui/components/keyboard-select.directive.d.ts +0 -47
- package/lib/forms-ui/components/multi-select/multi-select-selection/multi-select-selection.component.d.ts +0 -41
- package/lib/forms-ui/components/multi-select/multi-select.component.d.ts +0 -172
- package/lib/forms-ui/components/option/option.component.d.ts +0 -81
- package/lib/forms-ui/components/option-group/option-group.component.d.ts +0 -36
- package/lib/forms-ui/components/option-group-dropdown/option-group-dropdown.component.d.ts +0 -113
- package/lib/forms-ui/components/options-dropdown/options-dropdown.component.d.ts +0 -149
- package/lib/forms-ui/components/options-sub-dropdown/options-sub-dropdown.component.d.ts +0 -48
- package/lib/forms-ui/components/picker/picker-trigger.directive.d.ts +0 -19
- package/lib/forms-ui/components/picker/picker.component.d.ts +0 -99
- package/lib/forms-ui/components/picker-option/picker-option.component.d.ts +0 -78
- package/lib/forms-ui/components/pill-item/pill-item.component.d.ts +0 -38
- package/lib/forms-ui/components/pill-list/pill-list.component.d.ts +0 -88
- package/lib/forms-ui/components/responsive-input/responsive-input.component.d.ts +0 -51
- package/lib/forms-ui/components/rich-text-editor/components/rich-text-editor/rich-text-editor.component.d.ts +0 -34
- package/lib/forms-ui/components/rich-text-editor/components/rich-text-editor-toolbar/rich-text-editor-toolbar.component.d.ts +0 -49
- package/lib/forms-ui/components/rich-text-editor/directives/focus-editor.directive.d.ts +0 -8
- package/lib/forms-ui/components/rich-text-editor/directives/tiptap-editor.directive.d.ts +0 -23
- package/lib/forms-ui/components/rich-text-editor/extensions/highlight-term/highlight-term-state.plugin.d.ts +0 -8
- package/lib/forms-ui/components/rich-text-editor/extensions/highlight-term/highlight-term.directive.d.ts +0 -8
- package/lib/forms-ui/components/rich-text-editor/extensions/highlight-term/highlight-term.extension.d.ts +0 -9
- package/lib/forms-ui/components/rich-text-editor/extensions/highlight-term/highlight-term.plugin.d.ts +0 -5
- package/lib/forms-ui/components/rich-text-editor/extensions/link/components/link-modal/link-modal.component.d.ts +0 -33
- package/lib/forms-ui/components/rich-text-editor/extensions/link/link.extension.d.ts +0 -8
- package/lib/forms-ui/components/rich-text-editor/extensions/link/link.plugin.d.ts +0 -10
- package/lib/forms-ui/components/rich-text-editor/extensions/link/url-validator.directive.d.ts +0 -7
- package/lib/forms-ui/components/rich-text-editor/extensions/table/index.d.ts +0 -2
- package/lib/forms-ui/components/rich-text-editor/extensions/table/table-bubble-menu/table-bubble-menu.component.d.ts +0 -30
- package/lib/forms-ui/components/rich-text-editor/extensions/table/table-extensions.d.ts +0 -4
- package/lib/forms-ui/components/rich-text-editor/extensions/table/utils.d.ts +0 -28
- package/lib/forms-ui/components/rich-text-editor/extensions/tracking/tracking.directive.d.ts +0 -8
- package/lib/forms-ui/components/rich-text-editor/extensions/tracking/tracking.extension.d.ts +0 -10
- package/lib/forms-ui/components/rich-text-editor/extensions/tracking/tracking.plugin.d.ts +0 -4
- package/lib/forms-ui/components/rich-text-editor/extensions/truncate/index.d.ts +0 -2
- package/lib/forms-ui/components/rich-text-editor/extensions/truncate/truncate-button.component.d.ts +0 -22
- package/lib/forms-ui/components/rich-text-editor/extensions/truncate/truncate.directive.d.ts +0 -9
- package/lib/forms-ui/components/rich-text-editor/extensions/truncate/truncate.extension.d.ts +0 -6
- package/lib/forms-ui/components/rich-text-editor/extensions/truncate/truncate.plugin.d.ts +0 -10
- package/lib/forms-ui/components/rich-text-editor/ngx-tiptap/AngularRenderer.d.ts +0 -12
- package/lib/forms-ui/components/rich-text-editor/ngx-tiptap/NodeViewRenderer.d.ts +0 -18
- package/lib/forms-ui/components/rich-text-editor/ngx-tiptap/editor.directive.d.ts +0 -24
- package/lib/forms-ui/components/rich-text-editor/ngx-tiptap/node-view.component.d.ts +0 -27
- package/lib/forms-ui/components/rich-text-editor/pipes/extension-enabled.pipe.d.ts +0 -8
- package/lib/forms-ui/components/rich-text-editor/pipes/remove-markdown.pipe.d.ts +0 -14
- package/lib/forms-ui/components/rich-text-editor/utils/extensions-builder.d.ts +0 -13
- package/lib/forms-ui/components/rich-text-editor/utils/features.d.ts +0 -3
- package/lib/forms-ui/components/single-select/single-select.component.d.ts +0 -120
- package/lib/forms-ui/components/sorting-dropdown/sorting-dropdown.component.d.ts +0 -47
- package/lib/forms-ui/components/sorting-dropdown-trigger/sorting-dropdown-trigger.component.d.ts +0 -28
- package/lib/forms-ui/components/switch/switch.component.d.ts +0 -57
- package/lib/forms-ui/directives/contenteditable.directive.d.ts +0 -28
- package/lib/forms-ui/directives/form-error.directive.d.ts +0 -41
- package/lib/forms-ui/directives/form-submit.directive.d.ts +0 -12
- package/lib/forms-ui/directives/keyboard-action-source.directive.d.ts +0 -16
- package/lib/forms-ui/directives/mark-invalid.directive.d.ts +0 -15
- package/lib/forms-ui/directives/max-length-counter.directive.d.ts +0 -25
- package/lib/forms-ui/directives/select-dropdown.directive.d.ts +0 -23
- package/lib/forms-ui/directives/selectable-item.directive.d.ts +0 -14
- package/lib/forms-ui/directives/selected-option.directive.d.ts +0 -18
- package/lib/forms-ui/forms-ui.module.d.ts +0 -74
- package/lib/forms-ui/helpers/key-codes.constants.d.ts +0 -11
- package/lib/forms-ui/helpers/keyboard-navigation.helpers.d.ts +0 -12
- package/lib/forms-ui/models/base-select.directive.d.ts +0 -75
- package/lib/forms-ui/models/dropdown-item.interface.d.ts +0 -5
- package/lib/forms-ui/models/single-select-padding.interface.d.ts +0 -1
- package/lib/forms-ui/models/sorting.interface.d.ts +0 -5
- package/lib/forms-ui/pipes/filter-selection.pipe.d.ts +0 -7
- package/lib/forms-ui/pipes/filter-term.pipe.d.ts +0 -10
- package/lib/forms-ui/pipes/format-number.pipe.d.ts +0 -23
- package/lib/forms-ui/validators/date-in-foreseeable-future.validator.d.ts +0 -11
- package/lib/forms-ui/validators/string-not-in-array.validator.d.ts +0 -7
- package/lib/modal-ui/components/modal/modal.component.d.ts +0 -119
- package/lib/modal-ui/components/modal-footer/modal-footer.component.d.ts +0 -25
- package/lib/modal-ui/components/modal-header/modal-header.component.d.ts +0 -29
- package/lib/modal-ui/directives/modal-content.directive.d.ts +0 -5
- package/lib/modal-ui/modal.constants.d.ts +0 -17
- package/lib/popover-ui/components/popover/popover.component.d.ts +0 -116
- package/lib/popover-ui/directives/popover-click.directive.d.ts +0 -23
- package/lib/popover-ui/directives/popover-content.directive.d.ts +0 -8
- package/lib/popover-ui/directives/popover-hover.directive.d.ts +0 -38
- package/lib/shared/date-helpers.d.ts +0 -16
- package/lib/shared/html-helpers.function.d.ts +0 -2
- package/lib/shared/json.helpers.d.ts +0 -7
- package/lib/shared/misc-helpers.d.ts +0 -8
- package/lib/shared/observe.d.ts +0 -8
- package/lib/shared/storybook.helpers.d.ts +0 -12
- package/lib/tab-ui/components/tab/tab.component.d.ts +0 -120
- package/lib/tab-ui/components/tab-group/tab-group-key-codes.enum.d.ts +0 -10
- package/lib/tab-ui/components/tab-group/tab-group.component.d.ts +0 -73
- package/ui5/components/breadcrumbs-item.component.d.ts +0 -22
- package/ui5/components/breadcrumbs.component.d.ts +0 -29
- package/ui5/icons/register-icons.d.ts +0 -4
- package/ui5/ui5.provider.d.ts +0 -15
- package/ui5/utils/get-outer-html-with-shadow-dom.d.ts +0 -15
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { OptionGroupComponent } from '../option-group/option-group.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Individual option used inside OptionsDropdownComponent, SingleSelectComponent, or MultiSelectComponent.
|
|
6
|
-
* Can be used standalone or grouped within an OptionGroupComponent for organized selections.
|
|
7
|
-
*/
|
|
8
|
-
export declare class OptionComponent {
|
|
9
|
-
private group;
|
|
10
|
-
elementRef: ElementRef<HTMLElement>;
|
|
11
|
-
/**
|
|
12
|
-
* Whether the option is currently selected.
|
|
13
|
-
* @default false
|
|
14
|
-
*/
|
|
15
|
-
selected: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Whether the option is currently highlighted (e.g., via keyboard navigation).
|
|
18
|
-
* @default false
|
|
19
|
-
*/
|
|
20
|
-
isHighlighted: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Whether the option is disabled and cannot be interacted with.
|
|
23
|
-
* @default false
|
|
24
|
-
*/
|
|
25
|
-
disabled: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* The value associated with this option.
|
|
28
|
-
* Emitted when the option is selected.
|
|
29
|
-
*/
|
|
30
|
-
value: any;
|
|
31
|
-
/**
|
|
32
|
-
* Is true when option has a selection nature like sorting.
|
|
33
|
-
* In this case we show a check icon on the left to indicate selection.
|
|
34
|
-
*
|
|
35
|
-
* Is false when option represents a one time action like printing.
|
|
36
|
-
* Cannot have selectedState when Option has dropdown
|
|
37
|
-
* @default true
|
|
38
|
-
*/
|
|
39
|
-
hasSelectedState: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* The icon used to indicate selection state.
|
|
42
|
-
* @default 'check'
|
|
43
|
-
* @deprecated Use the default `'check'` value. The `'circle'` option is deprecated and will be removed in a future release.
|
|
44
|
-
*/
|
|
45
|
-
selectIcon: 'check' | 'circle';
|
|
46
|
-
/**
|
|
47
|
-
* Event emitted when the option is selected.
|
|
48
|
-
* Emits the option's value.
|
|
49
|
-
*/
|
|
50
|
-
select: EventEmitter<any>;
|
|
51
|
-
/**
|
|
52
|
-
* Event emitted when the option's highlight state changes.
|
|
53
|
-
* Emits a boolean indicating the new highlight state.
|
|
54
|
-
*/
|
|
55
|
-
highlight: EventEmitter<boolean>;
|
|
56
|
-
/**
|
|
57
|
-
* Event emitted when an already selected option is clicked.
|
|
58
|
-
*/
|
|
59
|
-
selectedClick: EventEmitter<any>;
|
|
60
|
-
/**
|
|
61
|
-
* Event emitted when a keyboard event occurs on the option.
|
|
62
|
-
* Emits the KeyboardEvent for parent handling.
|
|
63
|
-
*/
|
|
64
|
-
keyDownAction: EventEmitter<KeyboardEvent>;
|
|
65
|
-
/**
|
|
66
|
-
* Event emitted when the mouse enters the option area.
|
|
67
|
-
*/
|
|
68
|
-
mouseEnter: EventEmitter<number>;
|
|
69
|
-
option?: ElementRef<HTMLElement>;
|
|
70
|
-
hasSubdropdown: boolean;
|
|
71
|
-
isSuboption: boolean;
|
|
72
|
-
readonly optionId: string;
|
|
73
|
-
selectOption(event?: MouseEvent): void;
|
|
74
|
-
constructor(group: OptionGroupComponent, elementRef: ElementRef<HTMLElement>);
|
|
75
|
-
setSelected(value: boolean): void;
|
|
76
|
-
setHighlighted(value: boolean): void;
|
|
77
|
-
handleKeyDown(event: KeyboardEvent): void;
|
|
78
|
-
protected onMouseEnter(): void;
|
|
79
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OptionComponent, [{ optional: true; }, null]>;
|
|
80
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent, "lx-option", never, { "selected": { "alias": "selected"; "required": false; }; "isHighlighted": { "alias": "isHighlighted"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "hasSelectedState": { "alias": "hasSelectedState"; "required": false; }; "selectIcon": { "alias": "selectIcon"; "required": false; }; }, { "select": "select"; "highlight": "highlight"; "selectedClick": "selectedClick"; "keyDownAction": "keyDownAction"; "mouseEnter": "mouseEnter"; }, never, ["*"], true, never>;
|
|
81
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Groups options under a labeled section inside dropdowns.
|
|
5
|
-
* Used to organize related options within OptionsDropdownComponent, SingleSelectComponent, or MultiSelectComponent.
|
|
6
|
-
*
|
|
7
|
-
* ### Projection slots
|
|
8
|
-
* - Default slot: Option components (`lx-option`) to group together.
|
|
9
|
-
*
|
|
10
|
-
* ### Example
|
|
11
|
-
* @example
|
|
12
|
-
* ```html
|
|
13
|
-
* <lx-option-group label="Recent Items" [hasSelectedState]="true">
|
|
14
|
-
* <lx-option [value]="1">Item 1</lx-option>
|
|
15
|
-
* <lx-option [value]="2">Item 2</lx-option>
|
|
16
|
-
* </lx-option-group>
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export declare class OptionGroupComponent {
|
|
20
|
-
/**
|
|
21
|
-
* Whether option children have a selected state.
|
|
22
|
-
* When true, aligns the padding of the group label with the options.
|
|
23
|
-
* @default true
|
|
24
|
-
*/
|
|
25
|
-
hasSelectedState: boolean;
|
|
26
|
-
/** The label text displayed for the option group. */
|
|
27
|
-
label: string;
|
|
28
|
-
/**
|
|
29
|
-
* Event emitted when an option within the group is selected.
|
|
30
|
-
* Emits the selected option's value.
|
|
31
|
-
*/
|
|
32
|
-
select: EventEmitter<any>;
|
|
33
|
-
selectOption(value: any): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OptionGroupComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OptionGroupComponent, "lx-option-group", never, { "hasSelectedState": { "alias": "hasSelectedState"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, { "select": "select"; }, never, ["*"], true, never>;
|
|
36
|
-
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { CdkOverlayOrigin, ConnectedOverlayPositionChange } from '@angular/cdk/overlay';
|
|
2
|
-
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
3
|
-
import { KeyboardSelectDirective } from '../keyboard-select.directive';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export type OptionGroupOption = {
|
|
6
|
-
value: string;
|
|
7
|
-
label: string;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* TODO: rename to something unspecific for single selects because multiselects are also supported
|
|
11
|
-
*/
|
|
12
|
-
export type SingleSelectOptionGroup<T = any> = {
|
|
13
|
-
label: string;
|
|
14
|
-
options: (OptionGroupOption | T)[];
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Dropdown component that displays options grouped by categories.
|
|
18
|
-
* Supports keyboard navigation, infinite scroll, custom templates, and creating new options.
|
|
19
|
-
* Used standalone or with SingleSelectComponent/MultiSelectComponent.
|
|
20
|
-
*
|
|
21
|
-
* ### Projection slots
|
|
22
|
-
* - `optionTemplate`: Template for custom option rendering (context: `$implicit`, `index`, `groupIndex`).
|
|
23
|
-
* - `noResultsOptionTemplateRef`: Template for custom "no results" message (context: `group`, `groupIndex`).
|
|
24
|
-
*
|
|
25
|
-
* ### Example
|
|
26
|
-
* @example
|
|
27
|
-
* ```html
|
|
28
|
-
* <lx-option-group-dropdown
|
|
29
|
-
* [optionGroups]="groups"
|
|
30
|
-
* [highlightTerm]="searchTerm"
|
|
31
|
-
* (onItemSelected)="handleSelection($event)">
|
|
32
|
-
* <ng-template #optionTemplate let-option>
|
|
33
|
-
* <span>{{ option.label }}</span>
|
|
34
|
-
* </ng-template>
|
|
35
|
-
* </lx-option-group-dropdown>
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
export declare class OptionGroupDropdownComponent extends KeyboardSelectDirective {
|
|
39
|
-
/** @internal */
|
|
40
|
-
readonly NAME = "OptionGroupDropdownComponent";
|
|
41
|
-
/**
|
|
42
|
-
* Array of option groups to display in the dropdown.
|
|
43
|
-
* @default []
|
|
44
|
-
*/
|
|
45
|
-
optionGroups: SingleSelectOptionGroup[];
|
|
46
|
-
/**
|
|
47
|
-
* Label for the "create new option" entry.
|
|
48
|
-
* Typically the current input value from a parent select component.
|
|
49
|
-
*/
|
|
50
|
-
newOptionLabel?: string;
|
|
51
|
-
/** Term to highlight in option labels. */
|
|
52
|
-
highlightTerm?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Whether to show a "create new option" entry at the top of the dropdown.
|
|
55
|
-
* @default false
|
|
56
|
-
*/
|
|
57
|
-
showCreateNewOption: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Property name to use as the label for each option.
|
|
60
|
-
* @default 'label'
|
|
61
|
-
*/
|
|
62
|
-
labelKey: string;
|
|
63
|
-
/**
|
|
64
|
-
* Whether the dropdown is in a loading state.
|
|
65
|
-
* @default false
|
|
66
|
-
*/
|
|
67
|
-
loading: boolean;
|
|
68
|
-
/** Property name to use for tracking options. */
|
|
69
|
-
trackByProperty?: string;
|
|
70
|
-
/**
|
|
71
|
-
* Whether to show "no results" message when a group has no options.
|
|
72
|
-
* @default false
|
|
73
|
-
*/
|
|
74
|
-
showNoResultsIfGroupIsEmpty: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Whether to use CDK overlay positioning for the dropdown.
|
|
77
|
-
* @default false
|
|
78
|
-
*/
|
|
79
|
-
overlayPositioning: boolean;
|
|
80
|
-
/** Event emitted when an option is selected. */
|
|
81
|
-
onItemSelected: EventEmitter<any>;
|
|
82
|
-
/** Event emitted when the dropdown container is scrolled (for infinite scroll). */
|
|
83
|
-
containerScrolled: EventEmitter<any>;
|
|
84
|
-
/** Event emitted when the user requests to create a new option. */
|
|
85
|
-
createNewOption: EventEmitter<string>;
|
|
86
|
-
/** @internal */
|
|
87
|
-
optionTemplateRef?: TemplateRef<any>;
|
|
88
|
-
/**
|
|
89
|
-
* If you provide a <ng-template #noResultsOptionTemplateRef></ng-template> inside the <lx-option-group-dropdown>
|
|
90
|
-
* it will be used to display the "no results" option instead of the default "No results" text.
|
|
91
|
-
* This way you can easily define different "No results" texts for different groups too.
|
|
92
|
-
* @internal
|
|
93
|
-
*/
|
|
94
|
-
noResultsOptionTemplateRef?: TemplateRef<any>;
|
|
95
|
-
/** @internal */
|
|
96
|
-
selectOrigin: CdkOverlayOrigin;
|
|
97
|
-
/** @internal */
|
|
98
|
-
isTopDropdown: boolean;
|
|
99
|
-
/** @internal */
|
|
100
|
-
get isNewItem(): boolean;
|
|
101
|
-
/** @internal */
|
|
102
|
-
selectOption(option: OptionGroupOption | any): void;
|
|
103
|
-
/** @internal */
|
|
104
|
-
trackByLabel(index: number, optionGroup: SingleSelectOptionGroup): string;
|
|
105
|
-
/** @internal */
|
|
106
|
-
onCreateNewOption(): void;
|
|
107
|
-
/** @internal */
|
|
108
|
-
trackByValue(_index: number, option: OptionGroupOption | any): any;
|
|
109
|
-
/** @internal */
|
|
110
|
-
onPositionChange(event: ConnectedOverlayPositionChange): void;
|
|
111
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OptionGroupDropdownComponent, never>;
|
|
112
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OptionGroupDropdownComponent, "lx-option-group-dropdown", never, { "optionGroups": { "alias": "optionGroups"; "required": false; }; "newOptionLabel": { "alias": "newOptionLabel"; "required": false; }; "highlightTerm": { "alias": "highlightTerm"; "required": false; }; "showCreateNewOption": { "alias": "showCreateNewOption"; "required": false; }; "labelKey": { "alias": "labelKey"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "trackByProperty": { "alias": "trackByProperty"; "required": false; }; "showNoResultsIfGroupIsEmpty": { "alias": "showNoResultsIfGroupIsEmpty"; "required": false; }; "overlayPositioning": { "alias": "overlayPositioning"; "required": false; }; }, { "onItemSelected": "onItemSelected"; "containerScrolled": "containerScrolled"; "createNewOption": "createNewOption"; }, ["optionTemplateRef", "noResultsOptionTemplateRef"], never, true, never>;
|
|
113
|
-
}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { ConnectedPosition, ScrollStrategy, ScrollStrategyOptions } from '@angular/cdk/overlay';
|
|
2
|
-
import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnDestroy, QueryList, Renderer2 } from '@angular/core';
|
|
3
|
-
import { Subject } from 'rxjs';
|
|
4
|
-
import { KeyboardActionSourceDirective } from '../../directives/keyboard-action-source.directive';
|
|
5
|
-
import { OptionComponent } from '../option/option.component';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* A dropdown component that displays a list of selectable options.
|
|
9
|
-
* The dropdown opens when triggered and provides keyboard navigation support for accessible option selection.
|
|
10
|
-
* It supports nested option groups and sub-dropdowns with full ARIA compliance.
|
|
11
|
-
*
|
|
12
|
-
* ### Projection slots
|
|
13
|
-
* - Default (trigger): The button or element that triggers the dropdown (must have `lxKeyboardActionSource` directive)
|
|
14
|
-
* - `lx-option`: Individual selectable options within the dropdown
|
|
15
|
-
* - `lx-option-group`: Optional groups of options with labels
|
|
16
|
-
*
|
|
17
|
-
* ### Example
|
|
18
|
-
* @example
|
|
19
|
-
* ```html
|
|
20
|
-
* <lx-options-dropdown [disabled]="disabled" [maxHeight]="maxHeight">
|
|
21
|
-
* <button lxKeyboardActionSource lx-button [disabled]="disabled" endIcon="slim-arrow-down">
|
|
22
|
-
* <span>{{ activeView?.label }}</span>
|
|
23
|
-
* </button>
|
|
24
|
-
* @for (viewGroup of viewGroups; track viewGroup.groupKey) {
|
|
25
|
-
* <lx-option-group [label]="'viewGroups.' + viewGroup.groupKey | translate">
|
|
26
|
-
* @for (view of viewGroup.views; track view.key) {
|
|
27
|
-
* <lx-option
|
|
28
|
-
* [selected]="view === activeView"
|
|
29
|
-
* (select)="applyView.emit(view.key)"
|
|
30
|
-
* >{{ view.label }}</lx-option>
|
|
31
|
-
* }
|
|
32
|
-
* </lx-option-group>
|
|
33
|
-
* }
|
|
34
|
-
* </lx-options-dropdown>
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
export declare class OptionsDropdownComponent implements AfterViewInit, OnDestroy {
|
|
38
|
-
private changeDetection;
|
|
39
|
-
private readonly scrollStrategies;
|
|
40
|
-
private renderer;
|
|
41
|
-
/** @internal */
|
|
42
|
-
readonly NAME = "OptionsDropdownComponent";
|
|
43
|
-
/**
|
|
44
|
-
* The alignment of the dropdown relative to the trigger element.
|
|
45
|
-
* @default 'right'
|
|
46
|
-
*/
|
|
47
|
-
align: 'right' | 'left';
|
|
48
|
-
/**
|
|
49
|
-
* Whether the dropdown should close when the page is scrolled.
|
|
50
|
-
* @default false
|
|
51
|
-
*/
|
|
52
|
-
closeOnScroll: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Whether the dropdown is disabled and cannot be opened.
|
|
55
|
-
* @default false
|
|
56
|
-
*/
|
|
57
|
-
disabled: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* The maximum height of the dropdown. Can be any valid CSS height value.
|
|
60
|
-
* @default 'none'
|
|
61
|
-
*/
|
|
62
|
-
maxHeight: string;
|
|
63
|
-
/**
|
|
64
|
-
* Whether the dropdown should close automatically when an option is selected.
|
|
65
|
-
* @default true
|
|
66
|
-
*/
|
|
67
|
-
closeOnSelect: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Whether to enable advanced overlay positioning using CDK overlay.
|
|
70
|
-
* Use when the dropdown is wider than its trigger or positioned near a viewport edge —
|
|
71
|
-
* enables CDK overlay positioning with automatic boundary detection to prevent off-screen clipping
|
|
72
|
-
* @default false
|
|
73
|
-
*/
|
|
74
|
-
overlayPositioning: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Additional CSS class to apply to the dropdown overlay.
|
|
77
|
-
* @default ''
|
|
78
|
-
*/
|
|
79
|
-
dropdownClass: string;
|
|
80
|
-
/**
|
|
81
|
-
* Whether the trigger container should use display flex instead of inline-block.
|
|
82
|
-
* @default false
|
|
83
|
-
*/
|
|
84
|
-
isFlexEnabledTriggerContainer: boolean;
|
|
85
|
-
/** @internal */
|
|
86
|
-
trigger: KeyboardActionSourceDirective;
|
|
87
|
-
/** @internal */
|
|
88
|
-
/** @internal */
|
|
89
|
-
_options: QueryList<OptionComponent>;
|
|
90
|
-
/** @internal */
|
|
91
|
-
overlayScrollStrategy: ScrollStrategy;
|
|
92
|
-
/**
|
|
93
|
-
* Event emitted when the dropdown is opened.
|
|
94
|
-
*/
|
|
95
|
-
opened: EventEmitter<void>;
|
|
96
|
-
/**
|
|
97
|
-
* Event emitted when the dropdown is closed for any reason.
|
|
98
|
-
*/
|
|
99
|
-
closed: EventEmitter<void>;
|
|
100
|
-
/**
|
|
101
|
-
* Event emitted when the dropdown is closed without an option being selected (e.g., by pressing Escape or clicking outside).
|
|
102
|
-
*/
|
|
103
|
-
closedWithoutSelection: EventEmitter<void>;
|
|
104
|
-
/** @internal */
|
|
105
|
-
get displayStyle(): "inline-block" | "block";
|
|
106
|
-
/** @internal */
|
|
107
|
-
get overlayPositions(): ConnectedPosition[];
|
|
108
|
-
/** @internal */
|
|
109
|
-
set open(value: boolean);
|
|
110
|
-
/** @internal */
|
|
111
|
-
get open(): boolean;
|
|
112
|
-
/** @internal */
|
|
113
|
-
get options(): OptionComponent[];
|
|
114
|
-
/** @internal */
|
|
115
|
-
get optionIds(): string[];
|
|
116
|
-
/** @internal */
|
|
117
|
-
get lxButton(): HTMLElement;
|
|
118
|
-
private readonly highlightedOptionIndex$;
|
|
119
|
-
private _open;
|
|
120
|
-
private isSubdropdownExpanded;
|
|
121
|
-
/** @internal */
|
|
122
|
-
readonly listboxId: string;
|
|
123
|
-
/** @internal */
|
|
124
|
-
readonly destroyed$: Subject<void>;
|
|
125
|
-
constructor(changeDetection: ChangeDetectorRef, scrollStrategies: ScrollStrategyOptions, renderer: Renderer2);
|
|
126
|
-
ngAfterViewInit(): void;
|
|
127
|
-
ngOnDestroy(): void;
|
|
128
|
-
/** Called by OptionComponent on mouse enter */
|
|
129
|
-
private onOptionMouseEnter;
|
|
130
|
-
/** @internal */
|
|
131
|
-
closeDropdown(): void;
|
|
132
|
-
/** @internal */
|
|
133
|
-
toggleOpen(): void;
|
|
134
|
-
private setInitialHighlightingIndex;
|
|
135
|
-
private prev;
|
|
136
|
-
private next;
|
|
137
|
-
private expand;
|
|
138
|
-
private collapse;
|
|
139
|
-
private optionIsHighlightable;
|
|
140
|
-
/**
|
|
141
|
-
* Programmatically sets initial accessibility attributes on the trigger button so that we
|
|
142
|
-
* don't have to do it manually every time we declare a new instance of this component
|
|
143
|
-
*/
|
|
144
|
-
private setInitialAccessibilityAttributes;
|
|
145
|
-
/** @internal */
|
|
146
|
-
handleOptionKeyDown(event: KeyboardEvent): void;
|
|
147
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OptionsDropdownComponent, never>;
|
|
148
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OptionsDropdownComponent, "lx-options-dropdown", never, { "align": { "alias": "align"; "required": false; }; "closeOnScroll": { "alias": "closeOnScroll"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; }; "overlayPositioning": { "alias": "overlayPositioning"; "required": false; }; "dropdownClass": { "alias": "dropdownClass"; "required": false; }; "isFlexEnabledTriggerContainer": { "alias": "isFlexEnabledTriggerContainer"; "required": false; }; }, { "opened": "opened"; "closed": "closed"; "closedWithoutSelection": "closedWithoutSelection"; }, ["trigger", "_options"], ["[lxKeyboardActionSource]", "*"], true, never>;
|
|
149
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, DestroyRef, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject, Subject } from 'rxjs';
|
|
3
|
-
import { OptionComponent } from '../option/option.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* A nested sub-dropdown that appears next to a parent option.
|
|
7
|
-
* Opens on hover or keyboard navigation with debounced interactions.
|
|
8
|
-
* Automatically adjusts max height to fit viewport.
|
|
9
|
-
*
|
|
10
|
-
* ### Projection slots
|
|
11
|
-
* - Default slot: Nested dropdown options (`lx-option` components).
|
|
12
|
-
*
|
|
13
|
-
* ### Example
|
|
14
|
-
* @example
|
|
15
|
-
* ```html
|
|
16
|
-
* <lx-options-sub-dropdown [trigger]="parentOption" align="left">
|
|
17
|
-
* <lx-option [value]="1">Sub-option 1</lx-option>
|
|
18
|
-
* <lx-option [value]="2">Sub-option 2</lx-option>
|
|
19
|
-
* </lx-options-sub-dropdown>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare class OptionsSubDropdownComponent implements AfterViewInit, OnDestroy {
|
|
23
|
-
private changeDetection;
|
|
24
|
-
/** The parent option component that triggers this sub-dropdown. */
|
|
25
|
-
trigger: OptionComponent;
|
|
26
|
-
/**
|
|
27
|
-
* Horizontal alignment of the sub-dropdown relative to the trigger option.
|
|
28
|
-
* @default 'right'
|
|
29
|
-
*/
|
|
30
|
-
align: 'right' | 'left';
|
|
31
|
-
options: QueryList<OptionComponent>;
|
|
32
|
-
hidden: boolean;
|
|
33
|
-
private mouseInside$;
|
|
34
|
-
readonly destroyed$: Subject<void>;
|
|
35
|
-
readonly maxHeight$: BehaviorSubject<string>;
|
|
36
|
-
destroyRef: DestroyRef;
|
|
37
|
-
constructor(changeDetection: ChangeDetectorRef);
|
|
38
|
-
mouseenter(): void;
|
|
39
|
-
mouseleave(): void;
|
|
40
|
-
ngOnDestroy(): void;
|
|
41
|
-
ngAfterViewInit(): void;
|
|
42
|
-
private updateMaxHeight;
|
|
43
|
-
private showByKeyboard;
|
|
44
|
-
private showByMouse;
|
|
45
|
-
closeDropdown(): void;
|
|
46
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OptionsSubDropdownComponent, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OptionsSubDropdownComponent, "lx-options-sub-dropdown", never, { "trigger": { "alias": "trigger"; "required": false; }; "align": { "alias": "align"; "required": false; }; }, {}, ["options"], ["*"], true, never>;
|
|
48
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class PickerTriggerDirective implements OnDestroy {
|
|
5
|
-
private element;
|
|
6
|
-
private readonly IS_SAFARI;
|
|
7
|
-
private readonly HOST_ELEMENT_IS_BUTTON;
|
|
8
|
-
private focused;
|
|
9
|
-
private allClickEvents$;
|
|
10
|
-
private focusEvent$;
|
|
11
|
-
private blurEvent$;
|
|
12
|
-
clickEvent$: import("rxjs").Observable<MouseEvent>;
|
|
13
|
-
get width(): number;
|
|
14
|
-
readonly destroyed$: Subject<void>;
|
|
15
|
-
constructor(element: ElementRef<HTMLElement>);
|
|
16
|
-
ngOnDestroy(): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PickerTriggerDirective, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PickerTriggerDirective, "[lxPickerTrigger]", never, {}, {}, never, never, true, never>;
|
|
19
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
|
2
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
3
|
-
import { AfterViewInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
4
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
-
import { Subject } from 'rxjs';
|
|
6
|
-
import { PickerOptionComponent } from '../picker-option/picker-option.component';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* A dropdown picker for selecting a value from a list of options.
|
|
10
|
-
* Supports keyboard navigation, `ControlValueAccessor` for reactive forms, and custom trigger elements.
|
|
11
|
-
*
|
|
12
|
-
* ### Projection slots
|
|
13
|
-
* - `lxPickerTrigger`: A button element used to open the dropdown on click or Enter
|
|
14
|
-
* - `li[lx-picker-option]`: List items representing selectable options
|
|
15
|
-
*
|
|
16
|
-
* ### Example
|
|
17
|
-
* @example
|
|
18
|
-
* ```html
|
|
19
|
-
* <lx-picker listBoxAriaLabel="Color picker">
|
|
20
|
-
* <button lxPickerTrigger lx-button mode="outline" size="large" [square]="true">
|
|
21
|
-
* {{ selection.label }}
|
|
22
|
-
* </button>
|
|
23
|
-
* @for (option of options; track option.id) {
|
|
24
|
-
* <li lx-picker-option [value]="option.value" [selected]="selection === option"
|
|
25
|
-
* (select)="selection = option" [optionId]="option.id">
|
|
26
|
-
* {{ option.label }}
|
|
27
|
-
* </li>
|
|
28
|
-
* }
|
|
29
|
-
* </lx-picker>
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export declare class PickerComponent implements AfterViewInit, ControlValueAccessor, OnDestroy {
|
|
33
|
-
private dir;
|
|
34
|
-
private cdRef;
|
|
35
|
-
/**
|
|
36
|
-
* A human-readable string value which identifies the listbox.
|
|
37
|
-
* Use this when there's no visible label. Otherwise use listBoxAriaLabelledBy.
|
|
38
|
-
*/
|
|
39
|
-
listBoxAriaLabel?: string;
|
|
40
|
-
/**
|
|
41
|
-
* ID of the visible element which labels the listbox.
|
|
42
|
-
* Use this when there's a visible label. Otherwise use listBoxAriaLabel.
|
|
43
|
-
*/
|
|
44
|
-
listBoxAriaLabelledBy?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Direction the picker options dropdown opens.
|
|
47
|
-
* @default 'right'
|
|
48
|
-
*/
|
|
49
|
-
openDirection: 'left' | 'right';
|
|
50
|
-
/** @internal */
|
|
51
|
-
get activeDescendantsId(): string | undefined;
|
|
52
|
-
/** @internal */
|
|
53
|
-
set activeDescendantsId(value: string | undefined);
|
|
54
|
-
/** @internal */
|
|
55
|
-
get open(): boolean;
|
|
56
|
-
/** @internal */
|
|
57
|
-
set open(value: boolean);
|
|
58
|
-
/**
|
|
59
|
-
* Returns a negative margin, that is used to move the picker dropdown to the left side of the picker trigger.
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
|
-
get leftOffset(): string;
|
|
63
|
-
/** @internal */
|
|
64
|
-
private options;
|
|
65
|
-
/** @internal */
|
|
66
|
-
keyManager: ActiveDescendantKeyManager<PickerOptionComponent>;
|
|
67
|
-
/** @internal */
|
|
68
|
-
private _trigger;
|
|
69
|
-
/** @internal */
|
|
70
|
-
private _isFormControl;
|
|
71
|
-
/** @internal */
|
|
72
|
-
private _open;
|
|
73
|
-
/** @internal */
|
|
74
|
-
private _activeDescendantsId?;
|
|
75
|
-
/** @internal */
|
|
76
|
-
private _lastSelectWasByKeyManager;
|
|
77
|
-
/** @internal */
|
|
78
|
-
readonly destroyed$: Subject<void>;
|
|
79
|
-
constructor(dir: Directionality, cdRef: ChangeDetectorRef);
|
|
80
|
-
/** @internal */
|
|
81
|
-
manageKeyboardEvents(event: KeyboardEvent): void;
|
|
82
|
-
ngAfterViewInit(): void;
|
|
83
|
-
ngOnDestroy(): void;
|
|
84
|
-
/** @internal */
|
|
85
|
-
closePicker(): void;
|
|
86
|
-
/** @internal */
|
|
87
|
-
toggleOpen(): void;
|
|
88
|
-
private setActivePickerOption;
|
|
89
|
-
/** @internal */
|
|
90
|
-
writeValue(value: any): void;
|
|
91
|
-
/** @internal */
|
|
92
|
-
registerOnChange(fn: any): void;
|
|
93
|
-
/** @internal */
|
|
94
|
-
registerOnTouched(fn: any): void;
|
|
95
|
-
private propagateChange;
|
|
96
|
-
private onTouched;
|
|
97
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PickerComponent, never>;
|
|
98
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PickerComponent, "lx-picker", never, { "listBoxAriaLabel": { "alias": "listBoxAriaLabel"; "required": false; }; "listBoxAriaLabelledBy": { "alias": "listBoxAriaLabelledBy"; "required": false; }; "openDirection": { "alias": "openDirection"; "required": false; }; }, {}, ["_trigger", "options"], ["[lxPickerTrigger]", "*"], true, never>;
|
|
99
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { Highlightable } from '@angular/cdk/a11y';
|
|
2
|
-
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
3
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Individual option within a picker dropdown.
|
|
7
|
-
*
|
|
8
|
-
* Must be a direct child of lx-picker.
|
|
9
|
-
*
|
|
10
|
-
* ### Projection slots
|
|
11
|
-
* - Default slot: Option content (text, icons, or custom elements). Hidden when `isClearOption` is true.
|
|
12
|
-
*
|
|
13
|
-
* ### Example
|
|
14
|
-
* @example
|
|
15
|
-
* ```html
|
|
16
|
-
* <lx-picker>
|
|
17
|
-
* <button lxPickerTrigger>Select</button>
|
|
18
|
-
* <li lx-picker-option [optionId]="'opt1'" [value]="'option1'" [ariaLabel]="'Option 1'">
|
|
19
|
-
* Option 1
|
|
20
|
-
* </li>
|
|
21
|
-
* <li lx-picker-option [optionId]="'opt2'" [value]="'option2'" [ariaLabel]="'Option 2'">
|
|
22
|
-
* Option 2
|
|
23
|
-
* </li>
|
|
24
|
-
* </lx-picker>
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare class PickerOptionComponent implements Highlightable, OnInit {
|
|
28
|
-
private cdRef;
|
|
29
|
-
private translateService;
|
|
30
|
-
readonly NAME = "PickerOptionComponent";
|
|
31
|
-
role: string;
|
|
32
|
-
ariaSelected: boolean;
|
|
33
|
-
get ariaLabelValue(): string | undefined;
|
|
34
|
-
get titleValue(): string | undefined;
|
|
35
|
-
get id(): string;
|
|
36
|
-
/**
|
|
37
|
-
* Unique ID for the option. Must be unique within the picker.
|
|
38
|
-
* Used for aria-activedescendant tracking during keyboard navigation.
|
|
39
|
-
*/
|
|
40
|
-
optionId: string;
|
|
41
|
-
/** Accessible label for the option. */
|
|
42
|
-
ariaLabel?: string;
|
|
43
|
-
/** The value to emit when this option is selected. */
|
|
44
|
-
value: any;
|
|
45
|
-
/**
|
|
46
|
-
* Whether this option is currently selected.
|
|
47
|
-
* @default false
|
|
48
|
-
*/
|
|
49
|
-
selected: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Whether this is a special "clear selection" option.
|
|
52
|
-
* @default false
|
|
53
|
-
*/
|
|
54
|
-
isClearOption: boolean;
|
|
55
|
-
/** Emitted when the option is selected. */
|
|
56
|
-
select: EventEmitter<any>;
|
|
57
|
-
/**
|
|
58
|
-
* This property is true, when the option was selected by mouse click or by the
|
|
59
|
-
* ActiveDescendantKeyManager calling setActiveStyles().
|
|
60
|
-
* It's false when the ActiveDescendantKeyManager calls setInactiveStyles().
|
|
61
|
-
* Is used by the PickerComponent to find the current active option.
|
|
62
|
-
*/
|
|
63
|
-
get highlighted(): boolean;
|
|
64
|
-
set highlighted(value: boolean);
|
|
65
|
-
private _highlighted;
|
|
66
|
-
constructor(cdRef: ChangeDetectorRef, translateService: TranslateService);
|
|
67
|
-
ngOnInit(): void;
|
|
68
|
-
manageClickEvents(): void;
|
|
69
|
-
setActiveStyles(): void;
|
|
70
|
-
setInactiveStyles(): void;
|
|
71
|
-
/**
|
|
72
|
-
* Triggers the EventEmitter select() that should emit, when an option was selected.
|
|
73
|
-
* This function is used in the PickerComponent when an option was selected.
|
|
74
|
-
*/
|
|
75
|
-
selectOption(): void;
|
|
76
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PickerOptionComponent, never>;
|
|
77
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PickerOptionComponent, "li[lx-picker-option]", never, { "optionId": { "alias": "optionId"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "isClearOption": { "alias": "isClearOption"; "required": false; }; }, { "select": "select"; }, never, ["*"], true, never>;
|
|
78
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { MultiSelectRemoveItemEvent } from '../multi-select/multi-select.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* An individual pill/tag item with a remove button.
|
|
6
|
-
* Typically used within `lx-pill-list` to display selected items.
|
|
7
|
-
*
|
|
8
|
-
* ### Example
|
|
9
|
-
* @example
|
|
10
|
-
* ```html
|
|
11
|
-
* <lx-pill-item [item]="selectedItem"
|
|
12
|
-
* [label]="'Option A'"
|
|
13
|
-
* (remove)="onRemove($event)">
|
|
14
|
-
* </lx-pill-item>
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export declare class PillItemComponent {
|
|
18
|
-
readonly NAME = "PillItemComponent";
|
|
19
|
-
/**
|
|
20
|
-
* The data item associated with this pill.
|
|
21
|
-
*/
|
|
22
|
-
item: any;
|
|
23
|
-
/**
|
|
24
|
-
* The text label to display on the pill.
|
|
25
|
-
*/
|
|
26
|
-
label: string;
|
|
27
|
-
/**
|
|
28
|
-
* When set to true, disables the pill and prevents removal.
|
|
29
|
-
*/
|
|
30
|
-
disabled: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Event emitted when the pill is removed.
|
|
33
|
-
*/
|
|
34
|
-
remove: EventEmitter<MultiSelectRemoveItemEvent>;
|
|
35
|
-
removePill(item: any, isMouse?: boolean): void;
|
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PillItemComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PillItemComponent, "lx-pill-item", never, { "item": { "alias": "item"; "required": false; }; "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "remove": "remove"; }, never, never, true, never>;
|
|
38
|
-
}
|