@bootkit/ng0 0.0.0-alpha.20 → 0.0.0-alpha.22
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/components/dropdown/index.d.ts +140 -0
- package/components/list/index.d.ts +2 -2
- package/components/select/index.d.ts +30 -34
- package/fesm2022/bootkit-ng0-components-dropdown.mjs +302 -0
- package/fesm2022/bootkit-ng0-components-dropdown.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-list.mjs +3 -3
- package/fesm2022/bootkit-ng0-components-list.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-select.mjs +103 -70
- package/fesm2022/bootkit-ng0-components-select.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-form.mjs +3 -1
- package/fesm2022/bootkit-ng0-form.mjs.map +1 -1
- package/form/index.d.ts +1 -0
- package/package.json +25 -21
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
import { Placement, CssClass } from '@bootkit/ng0/common';
|
|
4
|
+
|
|
5
|
+
declare class DropdownDividerComponent {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownDividerComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownDividerComponent, "ng0-dropdown-divider", ["ng0DropdownDivider"], {}, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Defines the possible values for the dropdown auto-close behavior.
|
|
12
|
+
*
|
|
13
|
+
* 'default': The dropdown will close when clicking inside or outside the menu.
|
|
14
|
+
* 'inside': The dropdown will close only when clicking inside the menu.
|
|
15
|
+
* 'outside': The dropdown will close only when clicking outside the menu.
|
|
16
|
+
* 'manual': The dropdown will not close automatically; it must be closed programmatically.
|
|
17
|
+
*/
|
|
18
|
+
type DropdownAutoCloseBehavior = 'default' | 'inside' | 'outside' | 'manual';
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
type DropdownSize = 'default' | 'small' | 'large';
|
|
23
|
+
|
|
24
|
+
declare class DropdownComponent {
|
|
25
|
+
private _dropdownMenu;
|
|
26
|
+
private _mainButton;
|
|
27
|
+
private _splitButton?;
|
|
28
|
+
protected _el: ElementRef<any>;
|
|
29
|
+
private _renderer;
|
|
30
|
+
/**
|
|
31
|
+
* The placement of the dropdown menu in relation to the dropdown toggle.
|
|
32
|
+
*/
|
|
33
|
+
placement: i0.InputSignal<Placement>;
|
|
34
|
+
/**
|
|
35
|
+
* The CSS classes to apply to the dropdown toggle button.
|
|
36
|
+
* @default 'btn btn-primary'
|
|
37
|
+
*/
|
|
38
|
+
cssClass: i0.InputSignal<CssClass>;
|
|
39
|
+
/**
|
|
40
|
+
* The CSS classes to apply to the dropdown split button.
|
|
41
|
+
* @default 'btn btn-primary'
|
|
42
|
+
*/
|
|
43
|
+
splitCssClass: i0.InputSignal<CssClass>;
|
|
44
|
+
/**
|
|
45
|
+
* Indicates whether the dropdown is open or closed.
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
readonly open: i0.ModelSignal<boolean>;
|
|
49
|
+
/**
|
|
50
|
+
* Indicates whether the dropdown is a split button.
|
|
51
|
+
* A split button dropdown has a separate toggle button.
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
readonly split: i0.InputSignalWithTransform<boolean, unknown>;
|
|
55
|
+
/**
|
|
56
|
+
* Indicates whether the dropdown has an automatic close behavior.
|
|
57
|
+
* @default 'default'
|
|
58
|
+
*/
|
|
59
|
+
readonly autoClose: i0.InputSignal<DropdownAutoCloseBehavior>;
|
|
60
|
+
/**
|
|
61
|
+
* Dropdown size
|
|
62
|
+
* @default 'default'
|
|
63
|
+
*/
|
|
64
|
+
readonly size: i0.InputSignal<DropdownSize>;
|
|
65
|
+
protected _directionCssClass: i0.Signal<"dropup" | "dropstart" | "dropend" | undefined>;
|
|
66
|
+
constructor();
|
|
67
|
+
/**
|
|
68
|
+
* Toggle the dropdown open or closed.
|
|
69
|
+
*/
|
|
70
|
+
toggle(): void;
|
|
71
|
+
private _onDocumentClick;
|
|
72
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "ng0-dropdown", ["ng0Dropdown"], { "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "cssClass": { "alias": "cssClass"; "required": false; "isSignal": true; }; "splitCssClass": { "alias": "splitCssClass"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "split": { "alias": "split"; "required": false; "isSignal": true; }; "autoClose": { "alias": "autoClose"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, ["_dropdownMenu"], ["*", "ng0-dropdown-menu"], true, never>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare class DropdownMenuComponent {
|
|
77
|
+
private _renderer;
|
|
78
|
+
private _dropdown;
|
|
79
|
+
elementRef: ElementRef<any>;
|
|
80
|
+
constructor();
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuComponent, never>;
|
|
82
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuComponent, "ng0-dropdown-menu", ["ng0Dropdownmenu"], {}, {}, never, ["*"], true, never>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* An item within a dropdown menu.
|
|
87
|
+
*/
|
|
88
|
+
declare class DropdownItemComponent {
|
|
89
|
+
/**
|
|
90
|
+
* The CSS classes to apply to the dropdown item.
|
|
91
|
+
* */
|
|
92
|
+
readonly cssClass: i0.InputSignal<CssClass>;
|
|
93
|
+
/**
|
|
94
|
+
* Whether the dropdown item is disabled.
|
|
95
|
+
*/
|
|
96
|
+
readonly disabled: i0.InputSignalWithTransform<boolean, unknown>;
|
|
97
|
+
private _onClick;
|
|
98
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownItemComponent, never>;
|
|
99
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownItemComponent, "ng0-dropdown-item", ["ng0DropdownItem"], { "cssClass": { "alias": "cssClass"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* A link item within a dropdown menu.
|
|
104
|
+
* This component is used to create a navigable link inside a dropdown.
|
|
105
|
+
*/
|
|
106
|
+
declare class DropdownLinkComponent {
|
|
107
|
+
/**
|
|
108
|
+
* The link or URL to navigate to when the dropdown item is clicked.
|
|
109
|
+
*/
|
|
110
|
+
readonly link: i0.InputSignal<string | string[] | undefined>;
|
|
111
|
+
/**
|
|
112
|
+
* The router link active class to apply when the link is active.
|
|
113
|
+
*/
|
|
114
|
+
readonly active: i0.InputSignal<string | string[]>;
|
|
115
|
+
/**
|
|
116
|
+
* Specifies where to open the linked document.
|
|
117
|
+
*/
|
|
118
|
+
readonly target: i0.InputSignal<"_self" | "_blank" | "_parent" | "_top" | undefined>;
|
|
119
|
+
/**
|
|
120
|
+
* Whether the dropdown link is disabled.
|
|
121
|
+
*/
|
|
122
|
+
readonly disabled: i0.InputSignalWithTransform<boolean, unknown>;
|
|
123
|
+
private _onClick;
|
|
124
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownLinkComponent, never>;
|
|
125
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownLinkComponent, "ng0-dropdown-link", ["ng0DropdownLink"], { "link": { "alias": "link"; "required": true; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
declare class DropdownHeaderComponent {
|
|
129
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownHeaderComponent, never>;
|
|
130
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownHeaderComponent, "ng0-dropdown-header", ["ng0DropdownItem"], {}, {}, never, ["*"], true, never>;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
declare class DropdownModule {
|
|
134
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownModule, never>;
|
|
135
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DropdownModule, never, [typeof DropdownComponent, typeof DropdownMenuComponent, typeof DropdownItemComponent, typeof DropdownLinkComponent, typeof DropdownHeaderComponent, typeof DropdownDividerComponent], [typeof DropdownComponent, typeof DropdownMenuComponent, typeof DropdownItemComponent, typeof DropdownLinkComponent, typeof DropdownHeaderComponent, typeof DropdownDividerComponent]>;
|
|
136
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DropdownModule>;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export { DropdownComponent, DropdownDividerComponent, DropdownHeaderComponent, DropdownItemComponent, DropdownLinkComponent, DropdownMenuComponent, DropdownModule };
|
|
140
|
+
export type { DropdownAutoCloseBehavior, DropdownSize };
|
|
@@ -59,7 +59,7 @@ declare class ListComponent implements OnInit, ControlValueAccessor {
|
|
|
59
59
|
/**
|
|
60
60
|
* Custom value extractor function to extract the value of any object while writing values.
|
|
61
61
|
*/
|
|
62
|
-
readonly
|
|
62
|
+
readonly writeBy: _angular_core.InputSignalWithTransform<_bootkit_ng0_data.ValueExtractor, _bootkit_ng0_data.ValueExtractorLike>;
|
|
63
63
|
/**
|
|
64
64
|
* A custom filter predicate function to filter items based on a search string.
|
|
65
65
|
* Default checks if the item's string representation contains the filter string (case-insensitive).
|
|
@@ -112,7 +112,7 @@ declare class ListComponent implements OnInit, ControlValueAccessor {
|
|
|
112
112
|
private _listenToDataSourceChanges;
|
|
113
113
|
private _insertItems;
|
|
114
114
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListComponent, never>;
|
|
115
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListComponent, "ng0-list", ["ng0List"], { "source": { "alias": "source"; "required": true; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "showIndicator": { "alias": "showIndicator"; "required": false; "isSignal": true; }; "compareBy": { "alias": "compareBy"; "required": false; "isSignal": true; }; "formatBy": { "alias": "formatBy"; "required": false; "isSignal": true; }; "
|
|
115
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListComponent, "ng0-list", ["ng0List"], { "source": { "alias": "source"; "required": true; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "showIndicator": { "alias": "showIndicator"; "required": false; "isSignal": true; }; "compareBy": { "alias": "compareBy"; "required": false; "isSignal": true; }; "formatBy": { "alias": "formatBy"; "required": false; "isSignal": true; }; "writeBy": { "alias": "writeBy"; "required": false; "isSignal": true; }; "filterBy": { "alias": "filterBy"; "required": false; "isSignal": true; }; "itemClass": { "alias": "itemClass"; "required": false; "isSignal": true; }; "focus": { "alias": "focus"; "required": false; "isSignal": true; }; "idGenerator": { "alias": "idGenerator"; "required": false; "isSignal": true; }; }, {}, ["_itemTemplate"], never, true, never>;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
/**
|
|
@@ -1,28 +1,21 @@
|
|
|
1
|
+
import * as _bootkit_ng0_common from '@bootkit/ng0/common';
|
|
2
|
+
import { SelectOption } from '@bootkit/ng0/common';
|
|
1
3
|
import * as _bootkit_ng0_localization from '@bootkit/ng0/localization';
|
|
2
4
|
import * as _bootkit_ng0_data from '@bootkit/ng0/data';
|
|
3
5
|
import { DataSource, DataSourceLike, FilterPredicate } from '@bootkit/ng0/data';
|
|
4
6
|
import * as _angular_core from '@angular/core';
|
|
5
|
-
import { OnInit,
|
|
7
|
+
import { OnInit, TemplateRef, ElementRef } from '@angular/core';
|
|
6
8
|
import { ControlValueAccessor } from '@angular/forms';
|
|
7
9
|
import { FlexibleConnectedPositionStrategy, ScrollStrategy } from '@angular/cdk/overlay';
|
|
8
|
-
import { SelectOption } from '@bootkit/ng0/common';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Select component that allows users to choose an option from a dropdown list.
|
|
12
13
|
*/
|
|
13
14
|
declare class SelectComponent implements OnInit, ControlValueAccessor {
|
|
14
|
-
protected _el: ElementRef<HTMLDivElement>;
|
|
15
|
-
private _renderer;
|
|
16
|
-
private _destroyRef;
|
|
17
|
-
private _viewportRuler;
|
|
18
|
-
private _overlay;
|
|
19
|
-
private _document;
|
|
20
|
-
private _ls;
|
|
21
|
-
private _changeDetector;
|
|
22
15
|
private _resizeObserver?;
|
|
23
16
|
private _resizeObserverInitialized;
|
|
24
17
|
private _viewpoerRulerSubscription?;
|
|
25
|
-
protected
|
|
18
|
+
protected _cdkListboxValue: _angular_core.WritableSignal<any>;
|
|
26
19
|
private _filterElementRef?;
|
|
27
20
|
private _onChangeCallback;
|
|
28
21
|
private _onTouchedCallback;
|
|
@@ -33,6 +26,14 @@ declare class SelectComponent implements OnInit, ControlValueAccessor {
|
|
|
33
26
|
protected _optionTemplate?: TemplateRef<any>;
|
|
34
27
|
protected _positionStrategy: FlexibleConnectedPositionStrategy;
|
|
35
28
|
protected _scrollStrategy: ScrollStrategy;
|
|
29
|
+
private _overlay;
|
|
30
|
+
private _document;
|
|
31
|
+
private _ls;
|
|
32
|
+
private _destroyRef;
|
|
33
|
+
protected _el: ElementRef<any>;
|
|
34
|
+
private _renderer;
|
|
35
|
+
private _viewportRuler;
|
|
36
|
+
private _changeDetector;
|
|
36
37
|
/**
|
|
37
38
|
* The data source for the select component.
|
|
38
39
|
* This can be an array of data, a function that returns an observable of data,
|
|
@@ -40,22 +41,26 @@ declare class SelectComponent implements OnInit, ControlValueAccessor {
|
|
|
40
41
|
*/
|
|
41
42
|
readonly source: _angular_core.InputSignalWithTransform<DataSource<any>, DataSourceLike<any>>;
|
|
42
43
|
/**
|
|
43
|
-
* Indicates whether
|
|
44
|
+
* Indicates whether multi selection is enabled or not.
|
|
44
45
|
*/
|
|
45
|
-
readonly
|
|
46
|
+
readonly multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
46
47
|
/**
|
|
47
|
-
*
|
|
48
|
-
* Default is a simple equality check.
|
|
48
|
+
* Indicates whether the dropdown is open or closed.
|
|
49
49
|
*/
|
|
50
|
+
readonly open: _angular_core.ModelSignal<boolean>;
|
|
50
51
|
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
readonly
|
|
52
|
+
* A custom comparer function or the name of a field for comparing two objects.
|
|
53
|
+
*/
|
|
54
|
+
readonly compareBy: _angular_core.InputSignalWithTransform<_bootkit_ng0_data.BooleanValueComparer, _bootkit_ng0_data.BooleanValueComparerLike>;
|
|
54
55
|
/**
|
|
55
56
|
* Custom format function to convert an item to a string for display.
|
|
56
57
|
* Default converts the item to a string using its toString method.
|
|
57
58
|
*/
|
|
58
59
|
readonly formatBy: _angular_core.InputSignalWithTransform<_bootkit_ng0_localization.ValueFormatterFunction, _bootkit_ng0_localization.ValueFormatterLike>;
|
|
60
|
+
/**
|
|
61
|
+
* Custom value extractor function to extract the value of any object while writing values.
|
|
62
|
+
*/
|
|
63
|
+
readonly writeBy: _angular_core.InputSignalWithTransform<_bootkit_ng0_data.ValueExtractor, _bootkit_ng0_data.ValueExtractorLike>;
|
|
59
64
|
/**
|
|
60
65
|
* Indicates whether the dropdown is filterable.
|
|
61
66
|
*/
|
|
@@ -69,27 +74,18 @@ declare class SelectComponent implements OnInit, ControlValueAccessor {
|
|
|
69
74
|
* Default checks if the item contains the filter value (case-insensitive).
|
|
70
75
|
*/
|
|
71
76
|
readonly filterBy: _angular_core.InputSignal<FilterPredicate>;
|
|
72
|
-
|
|
77
|
+
/**
|
|
78
|
+
* CSS class or classes to apply to the list container.
|
|
79
|
+
*/
|
|
80
|
+
readonly itemClass: _angular_core.InputSignalWithTransform<_bootkit_ng0_common.CssClassGetter, _bootkit_ng0_common.CssClassLike>;
|
|
81
|
+
constructor();
|
|
73
82
|
ngOnInit(): void;
|
|
83
|
+
private _loadItems;
|
|
74
84
|
private _handleDataSourceChange;
|
|
75
85
|
/**
|
|
76
86
|
* Selects an option by index
|
|
77
87
|
*/
|
|
78
88
|
protected _selectByIndex(index: number): void;
|
|
79
|
-
isSelected(value: any): boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Sets an option as active
|
|
82
|
-
*/
|
|
83
|
-
active(index: number): void;
|
|
84
|
-
/**
|
|
85
|
-
* Scrolls the item at the specified index into view within the dropdown list.
|
|
86
|
-
* @param index The index of the item to scroll into view.
|
|
87
|
-
* @param position The vertical alignment of the item after scrolling.
|
|
88
|
-
* Can be 'start', 'center', 'end', or 'nearest'.
|
|
89
|
-
* Default is 'nearest'.
|
|
90
|
-
* @param behavior The scrolling behavior.
|
|
91
|
-
*/
|
|
92
|
-
scrollItemIntoView(index: number, position?: ScrollLogicalPosition, behavior?: ScrollBehavior): void;
|
|
93
89
|
protected _insertOptions(index?: number, ...items: any[]): void;
|
|
94
90
|
writeValue(obj: any): void;
|
|
95
91
|
registerOnChange(fn: any): void;
|
|
@@ -105,7 +101,7 @@ declare class SelectComponent implements OnInit, ControlValueAccessor {
|
|
|
105
101
|
private _unlistenFromResizeEvents;
|
|
106
102
|
private _onHostClick;
|
|
107
103
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
108
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectComponent, "ng0-select", ["ng0Select"], { "source": { "alias": "source"; "required": true; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "
|
|
104
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectComponent, "ng0-select", ["ng0Select"], { "source": { "alias": "source"; "required": true; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "compareBy": { "alias": "compareBy"; "required": false; "isSignal": true; }; "formatBy": { "alias": "formatBy"; "required": false; "isSignal": true; }; "writeBy": { "alias": "writeBy"; "required": false; "isSignal": true; }; "filterable": { "alias": "filterable"; "required": false; "isSignal": true; }; "filterPlaceholder": { "alias": "filterPlaceholder"; "required": false; "isSignal": true; }; "filterBy": { "alias": "filterBy"; "required": false; "isSignal": true; }; "itemClass": { "alias": "itemClass"; "required": false; "isSignal": true; }; }, { "open": "openChange"; }, ["_optionTemplate"], never, true, never>;
|
|
109
105
|
}
|
|
110
106
|
|
|
111
107
|
/**
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, input, booleanAttribute, HostListener, inject, Renderer2, ElementRef, model, computed, ViewChild, ContentChild, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i1$2 from '@angular/router';
|
|
6
|
+
import { RouterModule } from '@angular/router';
|
|
7
|
+
import * as i1$1 from '@angular/cdk/overlay';
|
|
8
|
+
import { OverlayModule } from '@angular/cdk/overlay';
|
|
9
|
+
|
|
10
|
+
class DropdownDividerComponent {
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownDividerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.1", type: DropdownDividerComponent, isStandalone: true, selector: "ng0-dropdown-divider", exportAs: ["ng0DropdownDivider"], ngImport: i0, template: `<hr class="dropdown-divider">`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13
|
+
}
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownDividerComponent, decorators: [{
|
|
15
|
+
type: Component,
|
|
16
|
+
args: [{
|
|
17
|
+
selector: 'ng0-dropdown-divider',
|
|
18
|
+
exportAs: 'ng0DropdownDivider',
|
|
19
|
+
standalone: true,
|
|
20
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
21
|
+
imports: [
|
|
22
|
+
CommonModule,
|
|
23
|
+
],
|
|
24
|
+
template: `<hr class="dropdown-divider">`,
|
|
25
|
+
}]
|
|
26
|
+
}] });
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* An item within a dropdown menu.
|
|
30
|
+
*/
|
|
31
|
+
class DropdownItemComponent {
|
|
32
|
+
/**
|
|
33
|
+
* The CSS classes to apply to the dropdown item.
|
|
34
|
+
* */
|
|
35
|
+
cssClass = input(...(ngDevMode ? [undefined, { debugName: "cssClass" }] : []));
|
|
36
|
+
/**
|
|
37
|
+
* Whether the dropdown item is disabled.
|
|
38
|
+
*/
|
|
39
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
40
|
+
_onClick(e) {
|
|
41
|
+
if (this.disabled()) {
|
|
42
|
+
e.stopImmediatePropagation();
|
|
43
|
+
e.preventDefault();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.1", type: DropdownItemComponent, isStandalone: true, selector: "ng0-dropdown-item", inputs: { cssClass: { classPropertyName: "cssClass", publicName: "cssClass", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "_onClick($event)" } }, exportAs: ["ng0DropdownItem"], ngImport: i0, template: "<button class=\"dropdown-item\" [ngClass]=\"cssClass()\" [class.disabled]=\"disabled()\" [attr.aria-disabled]=\"disabled()\">\r\n <ng-content></ng-content>\r\n</button>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: RouterModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
48
|
+
}
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownItemComponent, decorators: [{
|
|
50
|
+
type: Component,
|
|
51
|
+
args: [{ selector: 'ng0-dropdown-item', exportAs: 'ng0DropdownItem', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
52
|
+
CommonModule,
|
|
53
|
+
RouterModule
|
|
54
|
+
], template: "<button class=\"dropdown-item\" [ngClass]=\"cssClass()\" [class.disabled]=\"disabled()\" [attr.aria-disabled]=\"disabled()\">\r\n <ng-content></ng-content>\r\n</button>" }]
|
|
55
|
+
}], propDecorators: { _onClick: [{
|
|
56
|
+
type: HostListener,
|
|
57
|
+
args: ['click', ['$event']]
|
|
58
|
+
}] } });
|
|
59
|
+
|
|
60
|
+
class DropdownMenuComponent {
|
|
61
|
+
_renderer = inject(Renderer2);
|
|
62
|
+
_dropdown = inject(DropdownComponent);
|
|
63
|
+
elementRef = inject(ElementRef);
|
|
64
|
+
constructor() {
|
|
65
|
+
this._renderer.addClass(this.elementRef.nativeElement, 'dropdown-menu');
|
|
66
|
+
}
|
|
67
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
68
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.1", type: DropdownMenuComponent, isStandalone: true, selector: "ng0-dropdown-menu", exportAs: ["ng0Dropdownmenu"], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, styles: [":host{display:block;position:relative}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
69
|
+
}
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownMenuComponent, decorators: [{
|
|
71
|
+
type: Component,
|
|
72
|
+
args: [{ selector: 'ng0-dropdown-menu', exportAs: 'ng0Dropdownmenu', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
73
|
+
CommonModule,
|
|
74
|
+
], template: `<ng-content></ng-content>`, styles: [":host{display:block;position:relative}\n"] }]
|
|
75
|
+
}], ctorParameters: () => [] });
|
|
76
|
+
|
|
77
|
+
class DropdownComponent {
|
|
78
|
+
// @ContentChildren(DropdownItemComponent) private _items!: QueryList<DropdownItemComponent>;
|
|
79
|
+
_dropdownMenu;
|
|
80
|
+
_mainButton;
|
|
81
|
+
_splitButton;
|
|
82
|
+
// protected _scrollStrategy!: ScrollStrategy;
|
|
83
|
+
_el = inject(ElementRef);
|
|
84
|
+
_renderer = inject(Renderer2);
|
|
85
|
+
/**
|
|
86
|
+
* The placement of the dropdown menu in relation to the dropdown toggle.
|
|
87
|
+
*/
|
|
88
|
+
placement = input('bottom', ...(ngDevMode ? [{ debugName: "placement" }] : []));
|
|
89
|
+
/**
|
|
90
|
+
* The CSS classes to apply to the dropdown toggle button.
|
|
91
|
+
* @default 'btn btn-primary'
|
|
92
|
+
*/
|
|
93
|
+
cssClass = input('btn btn-primary', ...(ngDevMode ? [{ debugName: "cssClass" }] : []));
|
|
94
|
+
/**
|
|
95
|
+
* The CSS classes to apply to the dropdown split button.
|
|
96
|
+
* @default 'btn btn-primary'
|
|
97
|
+
*/
|
|
98
|
+
splitCssClass = input('btn btn-primary', ...(ngDevMode ? [{ debugName: "splitCssClass" }] : []));
|
|
99
|
+
/**
|
|
100
|
+
* Indicates whether the dropdown is open or closed.
|
|
101
|
+
* @default false
|
|
102
|
+
*/
|
|
103
|
+
open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : []));
|
|
104
|
+
/**
|
|
105
|
+
* Indicates whether the dropdown is a split button.
|
|
106
|
+
* A split button dropdown has a separate toggle button.
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
split = input(false, ...(ngDevMode ? [{ debugName: "split", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
110
|
+
/**
|
|
111
|
+
* Indicates whether the dropdown has an automatic close behavior.
|
|
112
|
+
* @default 'default'
|
|
113
|
+
*/
|
|
114
|
+
autoClose = input('default', ...(ngDevMode ? [{ debugName: "autoClose" }] : []));
|
|
115
|
+
/**
|
|
116
|
+
* Dropdown size
|
|
117
|
+
* @default 'default'
|
|
118
|
+
*/
|
|
119
|
+
size = input('default', ...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
120
|
+
_directionCssClass = computed(() => {
|
|
121
|
+
switch (this.placement()) {
|
|
122
|
+
case 'top':
|
|
123
|
+
return 'dropup';
|
|
124
|
+
case 'start':
|
|
125
|
+
return 'dropstart';
|
|
126
|
+
case 'end':
|
|
127
|
+
return 'dropend';
|
|
128
|
+
case 'bottom':
|
|
129
|
+
default:
|
|
130
|
+
return undefined;
|
|
131
|
+
}
|
|
132
|
+
}, ...(ngDevMode ? [{ debugName: "_directionCssClass" }] : []));
|
|
133
|
+
constructor() {
|
|
134
|
+
this._renderer.addClass(this._el.nativeElement, 'btn-group');
|
|
135
|
+
// this._scrollStrategy = this._overlay.scrollStrategies.block();
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Toggle the dropdown open or closed.
|
|
139
|
+
*/
|
|
140
|
+
toggle() {
|
|
141
|
+
this.open.set(!this.open());
|
|
142
|
+
}
|
|
143
|
+
_onDocumentClick(e) {
|
|
144
|
+
const splitButtonClicked = e.target === this._splitButton?.nativeElement;
|
|
145
|
+
const mainButtonClicked = e.target === this._mainButton?.nativeElement;
|
|
146
|
+
const toggleClicked = this.split() ? splitButtonClicked : mainButtonClicked;
|
|
147
|
+
const dropdownClicked = splitButtonClicked || mainButtonClicked;
|
|
148
|
+
const menuClicked = this._dropdownMenu.elementRef.nativeElement.contains(e.target);
|
|
149
|
+
const outsideClicked = !dropdownClicked && !menuClicked;
|
|
150
|
+
if (this.open()) {
|
|
151
|
+
if (toggleClicked) {
|
|
152
|
+
this.open.set(false);
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
switch (this.autoClose()) {
|
|
156
|
+
case 'default':
|
|
157
|
+
this.open.set(false);
|
|
158
|
+
break;
|
|
159
|
+
case 'outside':
|
|
160
|
+
if (outsideClicked || mainButtonClicked) {
|
|
161
|
+
this.open.set(false);
|
|
162
|
+
}
|
|
163
|
+
break;
|
|
164
|
+
case 'inside':
|
|
165
|
+
if (menuClicked) {
|
|
166
|
+
this.open.set(false);
|
|
167
|
+
}
|
|
168
|
+
break;
|
|
169
|
+
case 'manual':
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
if (toggleClicked) {
|
|
175
|
+
this.open.set(true);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
180
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: DropdownComponent, isStandalone: true, selector: "ng0-dropdown", inputs: { placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, cssClass: { classPropertyName: "cssClass", publicName: "cssClass", isSignal: true, isRequired: false, transformFunction: null }, splitCssClass: { classPropertyName: "splitCssClass", publicName: "splitCssClass", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, split: { classPropertyName: "split", publicName: "split", isSignal: true, isRequired: false, transformFunction: null }, autoClose: { classPropertyName: "autoClose", publicName: "autoClose", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, host: { listeners: { "document:click": "_onDocumentClick($event)" }, properties: { "class": "_directionCssClass()" } }, queries: [{ propertyName: "_dropdownMenu", first: true, predicate: DropdownMenuComponent, descendants: true }], viewQueries: [{ propertyName: "_mainButton", first: true, predicate: ["mainButton"], descendants: true }, { propertyName: "_splitButton", first: true, predicate: ["splitButton"], descendants: true }], exportAs: ["ng0Dropdown"], ngImport: i0, template: "<button #mainButton\r\n [class]=\"cssClass()\"\r\n [class.dropdown-toggle]=\"!split()\"\r\n [class.btn-sm]=\"size() == 'small'\"\r\n [class.btn-lg]=\"size() == 'large'\"\r\n type=\"button\">\r\n <ng-content></ng-content>\r\n</button>\r\n\r\n@if(split()) {\r\n<button #splitButton\r\n type=\"button\"\r\n [class]=\"splitCssClass()\"\r\n [class.btn-sm]=\"size() == 'small'\"\r\n [class.btn-lg]=\"size() == 'large'\"\r\n class=\"dropdown-toggle dropdown-toggle-split\">\r\n <span class=\"visually-hidden\">Toggle Dropdown</span>\r\n</button>\r\n}\r\n\r\n<ng-template cdkConnectedOverlay\r\n [cdkConnectedOverlayOrigin]=\"_el.nativeElement\"\r\n [cdkConnectedOverlayOpen]=\"open()\"\r\n [cdkConnectedOverlayPush]=\"false\"\r\n [cdkConnectedOverlayFlexibleDimensions]=\"true\">\r\n <ng-content select=\"ng0-dropdown-menu\"></ng-content>\r\n</ng-template>\r\n\r\n<style>\r\n :host {\r\n display: inline-block;\r\n }\r\n</style>", styles: [":host{display:inline-block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1$1.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
181
|
+
}
|
|
182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownComponent, decorators: [{
|
|
183
|
+
type: Component,
|
|
184
|
+
args: [{ selector: 'ng0-dropdown', exportAs: 'ng0Dropdown', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
185
|
+
CommonModule,
|
|
186
|
+
OverlayModule,
|
|
187
|
+
], host: {
|
|
188
|
+
'[class]': '_directionCssClass()',
|
|
189
|
+
}, template: "<button #mainButton\r\n [class]=\"cssClass()\"\r\n [class.dropdown-toggle]=\"!split()\"\r\n [class.btn-sm]=\"size() == 'small'\"\r\n [class.btn-lg]=\"size() == 'large'\"\r\n type=\"button\">\r\n <ng-content></ng-content>\r\n</button>\r\n\r\n@if(split()) {\r\n<button #splitButton\r\n type=\"button\"\r\n [class]=\"splitCssClass()\"\r\n [class.btn-sm]=\"size() == 'small'\"\r\n [class.btn-lg]=\"size() == 'large'\"\r\n class=\"dropdown-toggle dropdown-toggle-split\">\r\n <span class=\"visually-hidden\">Toggle Dropdown</span>\r\n</button>\r\n}\r\n\r\n<ng-template cdkConnectedOverlay\r\n [cdkConnectedOverlayOrigin]=\"_el.nativeElement\"\r\n [cdkConnectedOverlayOpen]=\"open()\"\r\n [cdkConnectedOverlayPush]=\"false\"\r\n [cdkConnectedOverlayFlexibleDimensions]=\"true\">\r\n <ng-content select=\"ng0-dropdown-menu\"></ng-content>\r\n</ng-template>\r\n\r\n<style>\r\n :host {\r\n display: inline-block;\r\n }\r\n</style>" }]
|
|
190
|
+
}], ctorParameters: () => [], propDecorators: { _dropdownMenu: [{
|
|
191
|
+
type: ContentChild,
|
|
192
|
+
args: [DropdownMenuComponent]
|
|
193
|
+
}], _mainButton: [{
|
|
194
|
+
type: ViewChild,
|
|
195
|
+
args: ['mainButton']
|
|
196
|
+
}], _splitButton: [{
|
|
197
|
+
type: ViewChild,
|
|
198
|
+
args: ['splitButton']
|
|
199
|
+
}], _onDocumentClick: [{
|
|
200
|
+
type: HostListener,
|
|
201
|
+
args: ['document:click', ['$event']]
|
|
202
|
+
}] } });
|
|
203
|
+
|
|
204
|
+
class DropdownHeaderComponent {
|
|
205
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
206
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.1", type: DropdownHeaderComponent, isStandalone: true, selector: "ng0-dropdown-header", exportAs: ["ng0DropdownItem"], ngImport: i0, template: `<h6 class="dropdown-header"><ng-content></ng-content></h6>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
207
|
+
}
|
|
208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownHeaderComponent, decorators: [{
|
|
209
|
+
type: Component,
|
|
210
|
+
args: [{
|
|
211
|
+
selector: 'ng0-dropdown-header',
|
|
212
|
+
exportAs: 'ng0DropdownItem',
|
|
213
|
+
standalone: true,
|
|
214
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
215
|
+
template: `<h6 class="dropdown-header"><ng-content></ng-content></h6>`,
|
|
216
|
+
}]
|
|
217
|
+
}] });
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* A link item within a dropdown menu.
|
|
221
|
+
* This component is used to create a navigable link inside a dropdown.
|
|
222
|
+
*/
|
|
223
|
+
class DropdownLinkComponent {
|
|
224
|
+
/**
|
|
225
|
+
* The link or URL to navigate to when the dropdown item is clicked.
|
|
226
|
+
*/
|
|
227
|
+
link = input.required(...(ngDevMode ? [{ debugName: "link" }] : []));
|
|
228
|
+
/**
|
|
229
|
+
* The router link active class to apply when the link is active.
|
|
230
|
+
*/
|
|
231
|
+
active = input('', ...(ngDevMode ? [{ debugName: "active" }] : []));
|
|
232
|
+
/**
|
|
233
|
+
* Specifies where to open the linked document.
|
|
234
|
+
*/
|
|
235
|
+
target = input(undefined, ...(ngDevMode ? [{ debugName: "target" }] : []));
|
|
236
|
+
/**
|
|
237
|
+
* Whether the dropdown link is disabled.
|
|
238
|
+
*/
|
|
239
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
240
|
+
_onClick(e) {
|
|
241
|
+
if (this.disabled()) {
|
|
242
|
+
e.preventDefault();
|
|
243
|
+
e.stopPropagation();
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
247
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.2.1", type: DropdownLinkComponent, isStandalone: true, selector: "ng0-dropdown-link", inputs: { link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: true, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null }, target: { classPropertyName: "target", publicName: "target", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "_onClick($event)" } }, exportAs: ["ng0DropdownLink"], ngImport: i0, template: "<a class=\"dropdown-item\" [routerLink]=\"link()\" [target]=\"target()\" [routerLinkActive]=\"active()\" [class.disabled]=\"disabled()\" [attr.aria-disabled]=\"disabled()\">\r\n <ng-content></ng-content>\r\n</a>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1$2.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
248
|
+
}
|
|
249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownLinkComponent, decorators: [{
|
|
250
|
+
type: Component,
|
|
251
|
+
args: [{ selector: 'ng0-dropdown-link', exportAs: 'ng0DropdownLink', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
252
|
+
CommonModule,
|
|
253
|
+
RouterModule
|
|
254
|
+
], template: "<a class=\"dropdown-item\" [routerLink]=\"link()\" [target]=\"target()\" [routerLinkActive]=\"active()\" [class.disabled]=\"disabled()\" [attr.aria-disabled]=\"disabled()\">\r\n <ng-content></ng-content>\r\n</a>" }]
|
|
255
|
+
}], propDecorators: { _onClick: [{
|
|
256
|
+
type: HostListener,
|
|
257
|
+
args: ['click', ['$event']]
|
|
258
|
+
}] } });
|
|
259
|
+
|
|
260
|
+
const Items = [
|
|
261
|
+
DropdownComponent,
|
|
262
|
+
DropdownMenuComponent,
|
|
263
|
+
DropdownItemComponent,
|
|
264
|
+
DropdownLinkComponent,
|
|
265
|
+
DropdownHeaderComponent,
|
|
266
|
+
DropdownDividerComponent
|
|
267
|
+
];
|
|
268
|
+
class DropdownModule {
|
|
269
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
270
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.1", ngImport: i0, type: DropdownModule, imports: [DropdownComponent,
|
|
271
|
+
DropdownMenuComponent,
|
|
272
|
+
DropdownItemComponent,
|
|
273
|
+
DropdownLinkComponent,
|
|
274
|
+
DropdownHeaderComponent,
|
|
275
|
+
DropdownDividerComponent], exports: [DropdownComponent,
|
|
276
|
+
DropdownMenuComponent,
|
|
277
|
+
DropdownItemComponent,
|
|
278
|
+
DropdownLinkComponent,
|
|
279
|
+
DropdownHeaderComponent,
|
|
280
|
+
DropdownDividerComponent] });
|
|
281
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownModule, imports: [DropdownComponent,
|
|
282
|
+
DropdownMenuComponent,
|
|
283
|
+
DropdownItemComponent,
|
|
284
|
+
DropdownLinkComponent,
|
|
285
|
+
DropdownDividerComponent] });
|
|
286
|
+
}
|
|
287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: DropdownModule, decorators: [{
|
|
288
|
+
type: NgModule,
|
|
289
|
+
args: [{
|
|
290
|
+
imports: Items,
|
|
291
|
+
exports: Items
|
|
292
|
+
}]
|
|
293
|
+
}] });
|
|
294
|
+
|
|
295
|
+
// export type DropdownToggleTriggerMode = 'click' | 'hover' | 'focus';
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Generated bundle index. Do not edit.
|
|
299
|
+
*/
|
|
300
|
+
|
|
301
|
+
export { DropdownComponent, DropdownDividerComponent, DropdownHeaderComponent, DropdownItemComponent, DropdownLinkComponent, DropdownMenuComponent, DropdownModule };
|
|
302
|
+
//# sourceMappingURL=bootkit-ng0-components-dropdown.mjs.map
|