@basis-ng/primitives 0.0.1-alpha.3 → 0.0.1-alpha.4
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/core/components/button/button.component.d.ts +6 -1
- package/core/components/menu/menu.component.d.ts +1 -6
- package/core/components/select/select-content.component.d.ts +39 -0
- package/core/components/select/select.component.d.ts +43 -25
- package/fesm2022/basis-ng-primitives.mjs +218 -61
- package/fesm2022/basis-ng-primitives.mjs.map +1 -1
- package/package.json +1 -1
- package/shared/components/label/label.component.d.ts +2 -6
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class Button {
|
|
3
4
|
/** The variant of the button. */
|
|
@@ -12,6 +13,10 @@ export declare class Button {
|
|
|
12
13
|
readonly toggle: import("@angular/core").InputSignal<boolean>;
|
|
13
14
|
/** The value of the button when it is toggled. */
|
|
14
15
|
readonly isToggled: import("@angular/core").InputSignal<boolean>;
|
|
16
|
+
/** Whether the button active animation is enabled. */
|
|
17
|
+
readonly activeEnabled: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
/** The element reference of the button. */
|
|
19
|
+
el: ElementRef<any>;
|
|
15
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<Button, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Button, "button[b-button]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "equalPadding": { "alias": "equalPadding"; "required": false; "isSignal": true; }; "toggle": { "alias": "toggle"; "required": false; "isSignal": true; }; "isToggled": { "alias": "isToggled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Button, "button[b-button]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "equalPadding": { "alias": "equalPadding"; "required": false; "isSignal": true; }; "toggle": { "alias": "toggle"; "required": false; "isSignal": true; }; "isToggled": { "alias": "isToggled"; "required": false; "isSignal": true; }; "activeEnabled": { "alias": "activeEnabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
17
22
|
}
|
|
@@ -4,11 +4,6 @@ import * as i1 from "@angular/cdk/menu";
|
|
|
4
4
|
* Represents a menu component that can optionally float.
|
|
5
5
|
*/
|
|
6
6
|
export declare class Menu {
|
|
7
|
-
/**
|
|
8
|
-
* Determines whether the menu is floating.
|
|
9
|
-
* @default false
|
|
10
|
-
*/
|
|
11
|
-
readonly floating: import("@angular/core").InputSignal<boolean>;
|
|
12
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<Menu, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Menu, "b-menu", never, {
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Menu, "b-menu", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.CdkMenu; inputs: {}; outputs: {}; }]>;
|
|
14
9
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/cdk/listbox";
|
|
4
|
+
/**
|
|
5
|
+
* Component representing the content of a select dropdown.
|
|
6
|
+
* It integrates with Angular CDK Listbox for managing options and their selection.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SelectContentComponent {
|
|
9
|
+
/**
|
|
10
|
+
* Signal representing the selected values in the listbox.
|
|
11
|
+
*/
|
|
12
|
+
readonly value: import("@angular/core").WritableSignal<string[]>;
|
|
13
|
+
/**
|
|
14
|
+
* Signal representing the content of the selected option.
|
|
15
|
+
*/
|
|
16
|
+
readonly content: import("@angular/core").WritableSignal<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Event emitter triggered when the dropdown should close.
|
|
19
|
+
*/
|
|
20
|
+
closeEmitter: import("@angular/core").OutputEmitterRef<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Reference to the host element of the component.
|
|
23
|
+
*/
|
|
24
|
+
el: ElementRef<any>;
|
|
25
|
+
/**
|
|
26
|
+
* Input for setting the maximum height of the dropdown.
|
|
27
|
+
* Defaults to '300px'.
|
|
28
|
+
*/
|
|
29
|
+
readonly maxHeight: import("@angular/core").InputSignal<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Handles changes to the selected value in the listbox.
|
|
32
|
+
* Updates the `value` and `content` signals and emits the `closeEmitter` event.
|
|
33
|
+
*
|
|
34
|
+
* @param $event - The event object containing the new value and option details.
|
|
35
|
+
*/
|
|
36
|
+
handleValueChange($event: any): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectContentComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectContentComponent, "ul[b-select-content]", never, { "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; }, { "closeEmitter": "closeEmitter"; }, never, ["*"], true, [{ directive: typeof i1.CdkListbox; inputs: { "cdkListboxValue": "cdkListboxValue"; }; outputs: { "cdkListboxValueChange": "cdkListboxValueChange"; }; }]>;
|
|
39
|
+
}
|
|
@@ -1,48 +1,66 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SelectContentComponent } from './select-content.component';
|
|
2
|
+
import { Button } from '../button/button.component';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Component representing a custom select dropdown.
|
|
6
|
+
* It provides a button to toggle the dropdown and displays the selected option.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SelectComponent {
|
|
4
9
|
/**
|
|
5
|
-
*
|
|
10
|
+
* Placeholder text displayed when no option is selected.
|
|
11
|
+
* Defaults to 'Select an option'.
|
|
6
12
|
*/
|
|
7
|
-
readonly
|
|
13
|
+
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
8
14
|
/**
|
|
9
|
-
*
|
|
15
|
+
* Signal indicating whether the dropdown is open.
|
|
10
16
|
*/
|
|
11
|
-
readonly
|
|
17
|
+
readonly isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
12
18
|
/**
|
|
13
|
-
*
|
|
19
|
+
* Reference to the button element used to toggle the dropdown.
|
|
14
20
|
*/
|
|
15
|
-
readonly
|
|
21
|
+
readonly button: import("@angular/core").Signal<Button | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* Reference to the content component of the dropdown.
|
|
24
|
+
*/
|
|
25
|
+
readonly listBox: import("@angular/core").Signal<SelectContentComponent | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Computed signal representing the selected values from the dropdown.
|
|
28
|
+
*/
|
|
29
|
+
readonly value: import("@angular/core").Signal<string[] | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* Computed signal representing the content of the selected option.
|
|
32
|
+
*/
|
|
33
|
+
readonly content: import("@angular/core").Signal<string | undefined>;
|
|
16
34
|
/**
|
|
17
|
-
*
|
|
35
|
+
* Input for setting the maximum width of the dropdown.
|
|
36
|
+
* Defaults to '100%'.
|
|
18
37
|
*/
|
|
19
38
|
readonly maxWidth: import("@angular/core").InputSignal<string>;
|
|
20
39
|
/**
|
|
21
|
-
*
|
|
40
|
+
* Computed signal for the width of the button element.
|
|
22
41
|
*/
|
|
23
|
-
|
|
42
|
+
readonly buttonWidth: import("@angular/core").Signal<any>;
|
|
24
43
|
/**
|
|
25
|
-
*
|
|
44
|
+
* Model indicating whether the select component is invalid.
|
|
26
45
|
*/
|
|
27
|
-
readonly
|
|
46
|
+
readonly invalid: import("@angular/core").ModelSignal<boolean>;
|
|
28
47
|
/**
|
|
29
|
-
*
|
|
48
|
+
* Model indicating whether the select component is disabled.
|
|
30
49
|
*/
|
|
31
|
-
readonly
|
|
50
|
+
readonly disabled: import("@angular/core").ModelSignal<boolean>;
|
|
51
|
+
constructor();
|
|
32
52
|
/**
|
|
33
|
-
*
|
|
34
|
-
* @private
|
|
53
|
+
* Handles changes to the selected value by subscribing to the close event of the listbox.
|
|
35
54
|
*/
|
|
36
|
-
|
|
55
|
+
handleSelectedValueChange(): void;
|
|
37
56
|
/**
|
|
38
|
-
*
|
|
57
|
+
* Opens the dropdown and focuses the listbox.
|
|
39
58
|
*/
|
|
40
|
-
|
|
59
|
+
open(): void;
|
|
41
60
|
/**
|
|
42
|
-
*
|
|
43
|
-
* @param value - The value of the select.
|
|
61
|
+
* Closes the dropdown and focuses the button.
|
|
44
62
|
*/
|
|
45
|
-
|
|
46
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
63
|
+
close(): void;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "b-select", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "invalid": "invalidChange"; "disabled": "disabledChange"; }, ["listBox"], ["*"], true, never>;
|
|
48
66
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { signal, inject, RendererFactory2, Injectable, input, Component, TemplateRef, Directive, computed, model, output, contentChildren, viewChild, Renderer2, effect, HostListener,
|
|
2
|
+
import { signal, inject, RendererFactory2, Injectable, input, Component, ElementRef, TemplateRef, Directive, computed, model, output, contentChildren, viewChild, Renderer2, effect, HostListener, contentChild, afterNextRender, afterRenderEffect, linkedSignal } from '@angular/core';
|
|
3
3
|
import { NgStyle, NgClass, CommonModule } from '@angular/common';
|
|
4
4
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
5
5
|
import { icons, createElement } from 'lucide';
|
|
6
6
|
import { NgModel, ControlContainer } from '@angular/forms';
|
|
7
|
-
import
|
|
7
|
+
import { CdkConnectedOverlay, CdkOverlayOrigin } from '@angular/cdk/overlay';
|
|
8
|
+
import * as i1 from '@angular/cdk/listbox';
|
|
9
|
+
import { CdkListbox } from '@angular/cdk/listbox';
|
|
10
|
+
import * as i1$1 from '@angular/cdk/drag-drop';
|
|
8
11
|
import { CdkDrag, CdkDragHandle, CdkDropList, CdkDropListGroup } from '@angular/cdk/drag-drop';
|
|
9
|
-
import * as i1$
|
|
12
|
+
import * as i1$2 from '@angular/cdk/menu';
|
|
10
13
|
import { CdkMenu, CdkMenuItem, CdkMenuItemCheckbox, CdkMenuItemRadio, CdkMenuTrigger } from '@angular/cdk/menu';
|
|
11
14
|
|
|
12
15
|
class ThemeService {
|
|
@@ -98,8 +101,12 @@ class Button {
|
|
|
98
101
|
toggle = input(false);
|
|
99
102
|
/** The value of the button when it is toggled. */
|
|
100
103
|
isToggled = input(false);
|
|
104
|
+
/** Whether the button active animation is enabled. */
|
|
105
|
+
activeEnabled = input(true);
|
|
106
|
+
/** The element reference of the button. */
|
|
107
|
+
el = inject(ElementRef);
|
|
101
108
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: Button, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
102
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: Button, isStandalone: true, selector: "button[b-button]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, equalPadding: { classPropertyName: "equalPadding", publicName: "equalPadding", isSignal: true, isRequired: false, transformFunction: null }, toggle: { classPropertyName: "toggle", publicName: "toggle", isSignal: true, isRequired: false, transformFunction: null }, isToggled: { classPropertyName: "isToggled", publicName: "isToggled", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "variant() + \" size-\" + size()", "class.equal-padding": "equalPadding()", "class.loading": "loading()", "class.toggled": "isToggled()" } }, ngImport: i0, template: "@if (loading()) {\r\n <b-spinner\r\n [active]=\"loading()\"\r\n [size]=\"18\"\r\n [color]=\"\r\n variant() === 'primary'\r\n ? 'var(--primary-foreground)'\r\n : 'var(--secondary-foreground)'\r\n \" />\r\n}\r\n<ng-content />\r\n", dependencies: [{ kind: "component", type: Spinner, selector: "b-spinner", inputs: ["active", "color", "backgroundColor", "size"] }] });
|
|
109
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: Button, isStandalone: true, selector: "button[b-button]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, equalPadding: { classPropertyName: "equalPadding", publicName: "equalPadding", isSignal: true, isRequired: false, transformFunction: null }, toggle: { classPropertyName: "toggle", publicName: "toggle", isSignal: true, isRequired: false, transformFunction: null }, isToggled: { classPropertyName: "isToggled", publicName: "isToggled", isSignal: true, isRequired: false, transformFunction: null }, activeEnabled: { classPropertyName: "activeEnabled", publicName: "activeEnabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "variant() + \" size-\" + size()", "class.equal-padding": "equalPadding()", "class.loading": "loading()", "class.toggled": "isToggled()", "class.active": "activeEnabled()" } }, ngImport: i0, template: "@if (loading()) {\r\n <b-spinner\r\n [active]=\"loading()\"\r\n [size]=\"18\"\r\n [color]=\"\r\n variant() === 'primary'\r\n ? 'var(--primary-foreground)'\r\n : 'var(--secondary-foreground)'\r\n \" />\r\n}\r\n<ng-content />\r\n", dependencies: [{ kind: "component", type: Spinner, selector: "b-spinner", inputs: ["active", "color", "backgroundColor", "size"] }] });
|
|
103
110
|
}
|
|
104
111
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: Button, decorators: [{
|
|
105
112
|
type: Component,
|
|
@@ -108,6 +115,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
|
|
|
108
115
|
'[class.equal-padding]': 'equalPadding()',
|
|
109
116
|
'[class.loading]': 'loading()',
|
|
110
117
|
'[class.toggled]': 'isToggled()',
|
|
118
|
+
'[class.active]': 'activeEnabled()',
|
|
111
119
|
}, template: "@if (loading()) {\r\n <b-spinner\r\n [active]=\"loading()\"\r\n [size]=\"18\"\r\n [color]=\"\r\n variant() === 'primary'\r\n ? 'var(--primary-foreground)'\r\n : 'var(--secondary-foreground)'\r\n \" />\r\n}\r\n<ng-content />\r\n" }]
|
|
112
120
|
}] });
|
|
113
121
|
|
|
@@ -529,70 +537,233 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
|
|
|
529
537
|
}]
|
|
530
538
|
}] });
|
|
531
539
|
|
|
532
|
-
|
|
540
|
+
/**
|
|
541
|
+
* Component representing the content of a select dropdown.
|
|
542
|
+
* It integrates with Angular CDK Listbox for managing options and their selection.
|
|
543
|
+
*/
|
|
544
|
+
class SelectContentComponent {
|
|
533
545
|
/**
|
|
534
|
-
*
|
|
546
|
+
* Signal representing the selected values in the listbox.
|
|
535
547
|
*/
|
|
536
|
-
value = signal(
|
|
548
|
+
value = signal([]);
|
|
537
549
|
/**
|
|
538
|
-
*
|
|
550
|
+
* Signal representing the content of the selected option.
|
|
539
551
|
*/
|
|
540
|
-
|
|
552
|
+
content = signal('');
|
|
541
553
|
/**
|
|
542
|
-
*
|
|
554
|
+
* Event emitter triggered when the dropdown should close.
|
|
543
555
|
*/
|
|
544
|
-
|
|
556
|
+
closeEmitter = output();
|
|
545
557
|
/**
|
|
546
|
-
*
|
|
558
|
+
* Reference to the host element of the component.
|
|
547
559
|
*/
|
|
548
|
-
|
|
560
|
+
el = inject(ElementRef);
|
|
549
561
|
/**
|
|
550
|
-
*
|
|
562
|
+
* Input for setting the maximum height of the dropdown.
|
|
563
|
+
* Defaults to '300px'.
|
|
551
564
|
*/
|
|
552
|
-
|
|
565
|
+
maxHeight = input('300px');
|
|
553
566
|
/**
|
|
554
|
-
*
|
|
567
|
+
* Handles changes to the selected value in the listbox.
|
|
568
|
+
* Updates the `value` and `content` signals and emits the `closeEmitter` event.
|
|
569
|
+
*
|
|
570
|
+
* @param $event - The event object containing the new value and option details.
|
|
555
571
|
*/
|
|
556
|
-
|
|
572
|
+
handleValueChange($event) {
|
|
573
|
+
const value = $event.value;
|
|
574
|
+
this.content.set($event.option.element.innerText);
|
|
575
|
+
this.value.set(value.length === 0 || (value.length === 1 && value[0] === '') ? [] : value);
|
|
576
|
+
this.closeEmitter.emit();
|
|
577
|
+
}
|
|
578
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: SelectContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
579
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.7", type: SelectContentComponent, isStandalone: true, selector: "ul[b-select-content]", inputs: { maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closeEmitter: "closeEmitter" }, host: { listeners: { "cdkListboxValueChange": "handleValueChange($event)" }, properties: { "cdkListboxValue": "value()", "style.max-height": "maxHeight()" } }, hostDirectives: [{ directive: i1.CdkListbox, inputs: ["cdkListboxValue", "cdkListboxValue"], outputs: ["cdkListboxValueChange", "cdkListboxValueChange"] }], ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
580
|
+
}
|
|
581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: SelectContentComponent, decorators: [{
|
|
582
|
+
type: Component,
|
|
583
|
+
args: [{
|
|
584
|
+
selector: 'ul[b-select-content]',
|
|
585
|
+
imports: [],
|
|
586
|
+
template: `<ng-content />`,
|
|
587
|
+
hostDirectives: [
|
|
588
|
+
{
|
|
589
|
+
directive: CdkListbox,
|
|
590
|
+
inputs: ['cdkListboxValue'],
|
|
591
|
+
outputs: ['cdkListboxValueChange'],
|
|
592
|
+
},
|
|
593
|
+
],
|
|
594
|
+
host: {
|
|
595
|
+
'[cdkListboxValue]': 'value()',
|
|
596
|
+
'(cdkListboxValueChange)': 'handleValueChange($event)',
|
|
597
|
+
'[style.max-height]': 'maxHeight()',
|
|
598
|
+
},
|
|
599
|
+
}]
|
|
600
|
+
}] });
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Component representing a custom select dropdown.
|
|
604
|
+
* It provides a button to toggle the dropdown and displays the selected option.
|
|
605
|
+
*/
|
|
606
|
+
class SelectComponent {
|
|
557
607
|
/**
|
|
558
|
-
*
|
|
608
|
+
* Placeholder text displayed when no option is selected.
|
|
609
|
+
* Defaults to 'Select an option'.
|
|
610
|
+
*/
|
|
611
|
+
placeholder = input('Select an option');
|
|
612
|
+
/**
|
|
613
|
+
* Signal indicating whether the dropdown is open.
|
|
559
614
|
*/
|
|
560
615
|
isOpen = signal(false);
|
|
561
616
|
/**
|
|
562
|
-
* Reference to the
|
|
563
|
-
* @private
|
|
617
|
+
* Reference to the button element used to toggle the dropdown.
|
|
564
618
|
*/
|
|
565
|
-
|
|
619
|
+
button = viewChild(Button);
|
|
566
620
|
/**
|
|
567
|
-
*
|
|
621
|
+
* Reference to the content component of the dropdown.
|
|
568
622
|
*/
|
|
569
|
-
|
|
570
|
-
|
|
623
|
+
listBox = contentChild(SelectContentComponent);
|
|
624
|
+
/**
|
|
625
|
+
* Computed signal representing the selected values from the dropdown.
|
|
626
|
+
*/
|
|
627
|
+
value = computed(() => this.listBox()?.value());
|
|
628
|
+
/**
|
|
629
|
+
* Computed signal representing the content of the selected option.
|
|
630
|
+
*/
|
|
631
|
+
content = computed(() => this.listBox()?.content());
|
|
632
|
+
/**
|
|
633
|
+
* Input for setting the maximum width of the dropdown.
|
|
634
|
+
* Defaults to '100%'.
|
|
635
|
+
*/
|
|
636
|
+
maxWidth = input('100%');
|
|
637
|
+
/**
|
|
638
|
+
* Computed signal for the width of the button element.
|
|
639
|
+
*/
|
|
640
|
+
buttonWidth = computed(() => this.button()?.el.nativeElement.offsetWidth);
|
|
641
|
+
/**
|
|
642
|
+
* Model indicating whether the select component is invalid.
|
|
643
|
+
*/
|
|
644
|
+
invalid = model(false);
|
|
645
|
+
/**
|
|
646
|
+
* Model indicating whether the select component is disabled.
|
|
647
|
+
*/
|
|
648
|
+
disabled = model(false);
|
|
649
|
+
constructor() {
|
|
650
|
+
/**
|
|
651
|
+
* Effect to handle changes in the selected value.
|
|
652
|
+
*/
|
|
653
|
+
effect(() => this.handleSelectedValueChange());
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* Handles changes to the selected value by subscribing to the close event of the listbox.
|
|
657
|
+
*/
|
|
658
|
+
handleSelectedValueChange() {
|
|
659
|
+
this.listBox()?.closeEmitter.subscribe(() => this.close());
|
|
571
660
|
}
|
|
572
661
|
/**
|
|
573
|
-
*
|
|
574
|
-
* @param value - The value of the select.
|
|
662
|
+
* Opens the dropdown and focuses the listbox.
|
|
575
663
|
*/
|
|
576
|
-
|
|
577
|
-
this.
|
|
578
|
-
this.
|
|
664
|
+
open() {
|
|
665
|
+
this.isOpen.set(true);
|
|
666
|
+
setTimeout(() => this.listBox()?.el.nativeElement.focus(), 0);
|
|
579
667
|
}
|
|
580
|
-
|
|
581
|
-
|
|
668
|
+
/**
|
|
669
|
+
* Closes the dropdown and focuses the button.
|
|
670
|
+
*/
|
|
671
|
+
close() {
|
|
672
|
+
setTimeout(() => this.button()?.el.nativeElement.focus(), 0);
|
|
673
|
+
this.isOpen.set(false);
|
|
674
|
+
}
|
|
675
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
676
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.7", type: SelectComponent, isStandalone: true, selector: "b-select", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { invalid: "invalidChange", disabled: "disabledChange" }, host: { properties: { "style.max-width": "maxWidth()", "class.ng-invalid": "invalid()", "class.disabled": "disabled()" } }, queries: [{ propertyName: "listBox", first: true, predicate: SelectContentComponent, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "button", first: true, predicate: Button, descendants: true, isSignal: true }], ngImport: i0, template: ` <button
|
|
677
|
+
b-button
|
|
678
|
+
variant="outlined"
|
|
679
|
+
(click)="isOpen() ? close() : open()"
|
|
680
|
+
(keydown.arrowUp)="!isOpen() && open()"
|
|
681
|
+
(keydown.arrowDown)="!isOpen() && open()"
|
|
682
|
+
cdkOverlayOrigin
|
|
683
|
+
[activeEnabled]="false"
|
|
684
|
+
#trigger="cdkOverlayOrigin">
|
|
685
|
+
{{ value() && value()!.length === 0 ? placeholder() : content() }}
|
|
686
|
+
<i b-icon icon="ChevronDown" [size]="20"></i>
|
|
687
|
+
</button>
|
|
688
|
+
<ng-template
|
|
689
|
+
cdkConnectedOverlay
|
|
690
|
+
[cdkConnectedOverlayOrigin]="trigger"
|
|
691
|
+
[cdkConnectedOverlayOpen]="isOpen()"
|
|
692
|
+
[cdkConnectedOverlayWidth]="buttonWidth()"
|
|
693
|
+
[cdkConnectedOverlayHasBackdrop]="true"
|
|
694
|
+
cdkConnectedOverlayBackdropClass="cdk-overlay-transparent-backdrop"
|
|
695
|
+
[cdkConnectedOverlayPositions]="[
|
|
696
|
+
{
|
|
697
|
+
originX: 'start',
|
|
698
|
+
originY: 'bottom',
|
|
699
|
+
overlayX: 'start',
|
|
700
|
+
overlayY: 'top',
|
|
701
|
+
offsetY: 5,
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
originX: 'start',
|
|
705
|
+
originY: 'top',
|
|
706
|
+
overlayX: 'start',
|
|
707
|
+
overlayY: 'bottom',
|
|
708
|
+
offsetY: -5,
|
|
709
|
+
},
|
|
710
|
+
]"
|
|
711
|
+
(backdropClick)="close()"
|
|
712
|
+
(detach)="close()">
|
|
713
|
+
<ng-content />
|
|
714
|
+
</ng-template>`, isInline: true, dependencies: [{ kind: "component", type: Button, selector: "button[b-button]", inputs: ["variant", "size", "loading", "equalPadding", "toggle", "isToggled", "activeEnabled"] }, { kind: "component", type: Icon, selector: "i[b-icon]", inputs: ["icon", "size", "strokeWidth", "color"] }, { kind: "directive", type: 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"] }, { kind: "directive", type: CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }] });
|
|
582
715
|
}
|
|
583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type:
|
|
716
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: SelectComponent, decorators: [{
|
|
584
717
|
type: Component,
|
|
585
718
|
args: [{
|
|
586
|
-
selector: '
|
|
587
|
-
|
|
719
|
+
selector: 'b-select',
|
|
720
|
+
imports: [Button, Icon, CdkConnectedOverlay, CdkOverlayOrigin],
|
|
721
|
+
template: ` <button
|
|
722
|
+
b-button
|
|
723
|
+
variant="outlined"
|
|
724
|
+
(click)="isOpen() ? close() : open()"
|
|
725
|
+
(keydown.arrowUp)="!isOpen() && open()"
|
|
726
|
+
(keydown.arrowDown)="!isOpen() && open()"
|
|
727
|
+
cdkOverlayOrigin
|
|
728
|
+
[activeEnabled]="false"
|
|
729
|
+
#trigger="cdkOverlayOrigin">
|
|
730
|
+
{{ value() && value()!.length === 0 ? placeholder() : content() }}
|
|
731
|
+
<i b-icon icon="ChevronDown" [size]="20"></i>
|
|
732
|
+
</button>
|
|
733
|
+
<ng-template
|
|
734
|
+
cdkConnectedOverlay
|
|
735
|
+
[cdkConnectedOverlayOrigin]="trigger"
|
|
736
|
+
[cdkConnectedOverlayOpen]="isOpen()"
|
|
737
|
+
[cdkConnectedOverlayWidth]="buttonWidth()"
|
|
738
|
+
[cdkConnectedOverlayHasBackdrop]="true"
|
|
739
|
+
cdkConnectedOverlayBackdropClass="cdk-overlay-transparent-backdrop"
|
|
740
|
+
[cdkConnectedOverlayPositions]="[
|
|
741
|
+
{
|
|
742
|
+
originX: 'start',
|
|
743
|
+
originY: 'bottom',
|
|
744
|
+
overlayX: 'start',
|
|
745
|
+
overlayY: 'top',
|
|
746
|
+
offsetY: 5,
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
originX: 'start',
|
|
750
|
+
originY: 'top',
|
|
751
|
+
overlayX: 'start',
|
|
752
|
+
overlayY: 'bottom',
|
|
753
|
+
offsetY: -5,
|
|
754
|
+
},
|
|
755
|
+
]"
|
|
756
|
+
(backdropClick)="close()"
|
|
757
|
+
(detach)="close()">
|
|
758
|
+
<ng-content />
|
|
759
|
+
</ng-template>`,
|
|
588
760
|
host: {
|
|
761
|
+
'[style.max-width]': 'maxWidth()',
|
|
589
762
|
'[class.ng-invalid]': 'invalid()',
|
|
590
763
|
'[class.disabled]': 'disabled()',
|
|
591
|
-
'[style.max-width]': 'maxWidth()',
|
|
592
|
-
'(change)': 'change($event.target.value)',
|
|
593
764
|
},
|
|
594
765
|
}]
|
|
595
|
-
}] });
|
|
766
|
+
}], ctorParameters: () => [] });
|
|
596
767
|
|
|
597
768
|
class Option {
|
|
598
769
|
/**
|
|
@@ -1537,10 +1708,6 @@ class Label {
|
|
|
1537
1708
|
* The input element.
|
|
1538
1709
|
*/
|
|
1539
1710
|
input = contentChild(Input);
|
|
1540
|
-
/**
|
|
1541
|
-
* The select element.
|
|
1542
|
-
*/
|
|
1543
|
-
select = contentChild(Select);
|
|
1544
1711
|
/**
|
|
1545
1712
|
* The switch element.
|
|
1546
1713
|
*/
|
|
@@ -1558,12 +1725,10 @@ class Label {
|
|
|
1558
1725
|
*/
|
|
1559
1726
|
labelUp = computed(() => {
|
|
1560
1727
|
const input = this.input();
|
|
1561
|
-
const select = this.select();
|
|
1562
1728
|
const textarea = this.textarea();
|
|
1563
1729
|
return (input?.focused() ||
|
|
1564
1730
|
input?.value() ||
|
|
1565
1731
|
input?.placeholder() ||
|
|
1566
|
-
select?.value() ||
|
|
1567
1732
|
textarea?.focused() ||
|
|
1568
1733
|
textarea?.value() ||
|
|
1569
1734
|
textarea?.placeholder());
|
|
@@ -1574,10 +1739,10 @@ class Label {
|
|
|
1574
1739
|
maxWidth = computed(() => {
|
|
1575
1740
|
const input = this.input();
|
|
1576
1741
|
const textarea = this.textarea();
|
|
1577
|
-
return input?.maxWidth() ||
|
|
1742
|
+
return input?.maxWidth() || textarea?.cols();
|
|
1578
1743
|
});
|
|
1579
1744
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: Label, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1580
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.7", type: Label, isStandalone: true, selector: "b-label", host: { properties: { "class.up": "labelUp()", "style.max-width": "maxWidth()", "class.is-switch": "switch()", "class.is-checkbox": "checkbox()", "class.is-textarea": "textarea()" } }, queries: [{ propertyName: "input", first: true, predicate: Input, descendants: true, isSignal: true }, { propertyName: "
|
|
1745
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.7", type: Label, isStandalone: true, selector: "b-label", host: { properties: { "class.up": "labelUp()", "style.max-width": "maxWidth()", "class.is-switch": "switch()", "class.is-checkbox": "checkbox()", "class.is-textarea": "textarea()" } }, queries: [{ propertyName: "input", first: true, predicate: Input, descendants: true, isSignal: true }, { propertyName: "switch", first: true, predicate: Switch, descendants: true, isSignal: true }, { propertyName: "checkbox", first: true, predicate: Checkbox, descendants: true, isSignal: true }, { propertyName: "textarea", first: true, predicate: Textarea, descendants: true, isSignal: true }], ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
1581
1746
|
}
|
|
1582
1747
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: Label, decorators: [{
|
|
1583
1748
|
type: Component,
|
|
@@ -2027,7 +2192,7 @@ class TreeNode {
|
|
|
2027
2192
|
}
|
|
2028
2193
|
}
|
|
2029
2194
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TreeNode, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2030
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: TreeNode, isStandalone: true, selector: "b-tree-node", inputs: { extended: { classPropertyName: "extended", publicName: "extended", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { extended: "extendedChange", closeEmitter: "closeEmitter" }, queries: [{ propertyName: "nestedTree", first: true, predicate: Tree, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.CdkDrag, inputs: ["cdkDragDisabled", "disabled"] }], ngImport: i0, template: "<section>\r\n @if (!node.disabled) {\r\n <i b-icon icon=\"GripVertical\" [size]=\"15\" cdkDragHandle></i>\r\n }\r\n <div\r\n class=\"projected-content\"\r\n (click)=\"nestedTree() && handleExtension()\"\r\n (keydown.enter)=\"nestedTree() && handleExtension()\"\r\n (keydown.space)=\"nestedTree() && handleExtension()\"\r\n role=\"button\"\r\n tabindex=\"0\">\r\n <ng-content />\r\n </div>\r\n @if (nestedTree()) {\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"20\"\r\n height=\"20\"\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\">\r\n <path d=\"m6 9 6 6 6-6\" />\r\n </svg>\r\n }\r\n</section>\r\n@if (nestedTree() && extended()) {\r\n <div class=\"nested\">\r\n <ng-content select=\"b-tree\" />\r\n </div>\r\n}\r\n", dependencies: [{ kind: "component", type: Icon, selector: "i[b-icon]", inputs: ["icon", "size", "strokeWidth", "color"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }] });
|
|
2195
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.7", type: TreeNode, isStandalone: true, selector: "b-tree-node", inputs: { extended: { classPropertyName: "extended", publicName: "extended", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { extended: "extendedChange", closeEmitter: "closeEmitter" }, queries: [{ propertyName: "nestedTree", first: true, predicate: Tree, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1$1.CdkDrag, inputs: ["cdkDragDisabled", "disabled"] }], ngImport: i0, template: "<section>\r\n @if (!node.disabled) {\r\n <i b-icon icon=\"GripVertical\" [size]=\"15\" cdkDragHandle></i>\r\n }\r\n <div\r\n class=\"projected-content\"\r\n (click)=\"nestedTree() && handleExtension()\"\r\n (keydown.enter)=\"nestedTree() && handleExtension()\"\r\n (keydown.space)=\"nestedTree() && handleExtension()\"\r\n role=\"button\"\r\n tabindex=\"0\">\r\n <ng-content />\r\n </div>\r\n @if (nestedTree()) {\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"20\"\r\n height=\"20\"\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\">\r\n <path d=\"m6 9 6 6 6-6\" />\r\n </svg>\r\n }\r\n</section>\r\n@if (nestedTree() && extended()) {\r\n <div class=\"nested\">\r\n <ng-content select=\"b-tree\" />\r\n </div>\r\n}\r\n", dependencies: [{ kind: "component", type: Icon, selector: "i[b-icon]", inputs: ["icon", "size", "strokeWidth", "color"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }] });
|
|
2031
2196
|
}
|
|
2032
2197
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: TreeNode, decorators: [{
|
|
2033
2198
|
type: Component,
|
|
@@ -2113,7 +2278,7 @@ class Tree {
|
|
|
2113
2278
|
});
|
|
2114
2279
|
}
|
|
2115
2280
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: Tree, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2116
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.7", type: Tree, isStandalone: true, selector: "b-tree", inputs: { maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null }, closeRecursively: { classPropertyName: "closeRecursively", publicName: "closeRecursively", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dropEmitter: "dropEmitter" }, host: { listeners: { "cdkDropListDropped": "dropEmitter.emit($event)" }, properties: { "style.max-width": "maxWidth()" } }, queries: [{ propertyName: "nestedNodes", predicate: TreeNode, isSignal: true }], hostDirectives: [{ directive: i1.CdkDropList, inputs: ["id", "id", "cdkDropListConnectedTo", "connectedTo"], outputs: ["cdkDropListDropped", "cdkDropListDropped"] }, { directive: i1.CdkDropListGroup }], ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
2281
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.7", type: Tree, isStandalone: true, selector: "b-tree", inputs: { maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: true, isRequired: false, transformFunction: null }, closeRecursively: { classPropertyName: "closeRecursively", publicName: "closeRecursively", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dropEmitter: "dropEmitter" }, host: { listeners: { "cdkDropListDropped": "dropEmitter.emit($event)" }, properties: { "style.max-width": "maxWidth()" } }, queries: [{ propertyName: "nestedNodes", predicate: TreeNode, isSignal: true }], hostDirectives: [{ directive: i1$1.CdkDropList, inputs: ["id", "id", "cdkDropListConnectedTo", "connectedTo"], outputs: ["cdkDropListDropped", "cdkDropListDropped"] }, { directive: i1$1.CdkDropListGroup }], ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
2117
2282
|
}
|
|
2118
2283
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: Tree, decorators: [{
|
|
2119
2284
|
type: Component,
|
|
@@ -2139,13 +2304,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
|
|
|
2139
2304
|
* Represents a menu component that can optionally float.
|
|
2140
2305
|
*/
|
|
2141
2306
|
class Menu {
|
|
2142
|
-
/**
|
|
2143
|
-
* Determines whether the menu is floating.
|
|
2144
|
-
* @default false
|
|
2145
|
-
*/
|
|
2146
|
-
floating = input(false);
|
|
2147
2307
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: Menu, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2148
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2308
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: Menu, isStandalone: true, selector: "b-menu", hostDirectives: [{ directive: i1$2.CdkMenu }], ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
2149
2309
|
}
|
|
2150
2310
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: Menu, decorators: [{
|
|
2151
2311
|
type: Component,
|
|
@@ -2153,9 +2313,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
|
|
|
2153
2313
|
selector: 'b-menu',
|
|
2154
2314
|
imports: [],
|
|
2155
2315
|
template: `<ng-content />`,
|
|
2156
|
-
host: {
|
|
2157
|
-
'[class.floating]': 'floating()',
|
|
2158
|
-
},
|
|
2159
2316
|
hostDirectives: [CdkMenu],
|
|
2160
2317
|
}]
|
|
2161
2318
|
}] });
|
|
@@ -2181,7 +2338,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
|
|
|
2181
2338
|
*/
|
|
2182
2339
|
class MenuItemComponent {
|
|
2183
2340
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: MenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2184
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: MenuItemComponent, isStandalone: true, selector: "b-menu-item", hostDirectives: [{ directive: i1$
|
|
2341
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: MenuItemComponent, isStandalone: true, selector: "b-menu-item", hostDirectives: [{ directive: i1$2.CdkMenuItem, inputs: ["cdkMenuItemDisabled", "disabled", "cdkMenuitemTypeaheadLabel", "typeaheadLabel"], outputs: ["cdkMenuItemTriggered", "triggered"] }], ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
2185
2342
|
}
|
|
2186
2343
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: MenuItemComponent, decorators: [{
|
|
2187
2344
|
type: Component,
|
|
@@ -2207,7 +2364,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
|
|
|
2207
2364
|
*/
|
|
2208
2365
|
class MenuItemCheckboxComponent {
|
|
2209
2366
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: MenuItemCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2210
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: MenuItemCheckboxComponent, isStandalone: true, selector: "b-menu-item-checkbox", hostDirectives: [{ directive: i1$
|
|
2367
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: MenuItemCheckboxComponent, isStandalone: true, selector: "b-menu-item-checkbox", hostDirectives: [{ directive: i1$2.CdkMenuItemCheckbox, inputs: ["cdkMenuItemDisabled", "disabled", "cdkMenuitemTypeaheadLabel", "typeaheadLabel", "cdkMenuItemChecked", "active"], outputs: ["cdkMenuItemTriggered", "triggered"] }], ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
2211
2368
|
}
|
|
2212
2369
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: MenuItemCheckboxComponent, decorators: [{
|
|
2213
2370
|
type: Component,
|
|
@@ -2234,7 +2391,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
|
|
|
2234
2391
|
*/
|
|
2235
2392
|
class MenuItemRadioComponent {
|
|
2236
2393
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: MenuItemRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2237
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: MenuItemRadioComponent, isStandalone: true, selector: "b-menu-item-radio", hostDirectives: [{ directive: i1$
|
|
2394
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.7", type: MenuItemRadioComponent, isStandalone: true, selector: "b-menu-item-radio", hostDirectives: [{ directive: i1$2.CdkMenuItemRadio, inputs: ["cdkMenuItemDisabled", "disabled", "cdkMenuitemTypeaheadLabel", "typeaheadLabel", "cdkMenuItemChecked", "active"], outputs: ["cdkMenuItemTriggered", "triggered"] }], ngImport: i0, template: `<ng-content />`, isInline: true });
|
|
2238
2395
|
}
|
|
2239
2396
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: MenuItemRadioComponent, decorators: [{
|
|
2240
2397
|
type: Component,
|
|
@@ -2354,7 +2511,7 @@ class MenuTrigger {
|
|
|
2354
2511
|
this.trigger.menuPosition = [connectedPosition];
|
|
2355
2512
|
}
|
|
2356
2513
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: MenuTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2357
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.7", type: MenuTrigger, isStandalone: true, selector: "[menuTriggerFor]", inputs: { menuTriggerPosition: { classPropertyName: "menuTriggerPosition", publicName: "menuTriggerPosition", isSignal: true, isRequired: false, transformFunction: null }, submenu: { classPropertyName: "submenu", publicName: "submenu", isSignal: true, isRequired: false, transformFunction: null } }, hostDirectives: [{ directive: i1$
|
|
2514
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.7", type: MenuTrigger, isStandalone: true, selector: "[menuTriggerFor]", inputs: { menuTriggerPosition: { classPropertyName: "menuTriggerPosition", publicName: "menuTriggerPosition", isSignal: true, isRequired: false, transformFunction: null }, submenu: { classPropertyName: "submenu", publicName: "submenu", isSignal: true, isRequired: false, transformFunction: null } }, hostDirectives: [{ directive: i1$2.CdkMenuTrigger, inputs: ["cdkMenuTriggerFor", "menuTriggerFor"] }], ngImport: i0 });
|
|
2358
2515
|
}
|
|
2359
2516
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImport: i0, type: MenuTrigger, decorators: [{
|
|
2360
2517
|
type: Directive,
|
|
@@ -2411,5 +2568,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.7", ngImpor
|
|
|
2411
2568
|
* Generated bundle index. Do not edit.
|
|
2412
2569
|
*/
|
|
2413
2570
|
|
|
2414
|
-
export { Alert, AttachedBox, Badge, BottomSheet, Button, ButtonGroup, Checkbox, ColorPicker, Icon, InViewportDirective, InViewportService, Input, InputGroup, Label, LazyContentDirective, Menu, MenuItemCheckboxComponent, MenuItemComponent, MenuItemRadioComponent, MenuLabel, MenuTrigger, Option, Range, ResponsiveService, Row, RowItem, Search,
|
|
2571
|
+
export { Alert, AttachedBox, Badge, BottomSheet, Button, ButtonGroup, Checkbox, ColorPicker, Icon, InViewportDirective, InViewportService, Input, InputGroup, Label, LazyContentDirective, Menu, MenuItemCheckboxComponent, MenuItemComponent, MenuItemRadioComponent, MenuLabel, MenuTrigger, Option, Range, ResponsiveService, Row, RowItem, Search, SelectComponent, SideSheet, Spinner, Switch, Tab, Table, Tabs, Textarea, ThemeService, TooltipComponent, Tree, TreeNode };
|
|
2415
2572
|
//# sourceMappingURL=basis-ng-primitives.mjs.map
|