@mintplayer/ng-bootstrap 22.28.0 → 22.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_bootstrap.scss +4 -101
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +62 -30
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -64
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +50 -46
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +65 -94
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +122 -97
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +80 -133
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -19
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +41 -46
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +76 -37
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +37 -82
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +150 -824
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +172 -118
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +180 -142
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +66 -116
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +41 -46
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +80 -204
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +32 -17
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +220 -20
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +98 -129
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +144 -265
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +133 -217
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +46 -25
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +166 -93
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +148 -231
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +133 -94
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +76 -7
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +766 -812
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +206 -180
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +202 -141
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +113 -59
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +133 -76
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +60 -87
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +86 -83
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +1 -2
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +38 -34
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +177 -147
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +200 -94
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +186 -233
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +58 -136
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +22 -16
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/package.json +11 -9
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +40 -21
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +36 -33
- package/types/mintplayer-ng-bootstrap-calendar.d.ts +39 -16
- package/types/mintplayer-ng-bootstrap-card.d.ts +25 -33
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +70 -55
- package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +65 -45
- package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +12 -3
- package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +34 -19
- package/types/mintplayer-ng-bootstrap-checkbox.d.ts +34 -8
- package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +32 -59
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +217 -422
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +77 -29
- package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +83 -51
- package/types/mintplayer-ng-bootstrap-dock.d.ts +57 -38
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +25 -30
- package/types/mintplayer-ng-bootstrap-file-manager.d.ts +61 -81
- package/types/mintplayer-ng-bootstrap-input-group.d.ts +17 -12
- package/types/mintplayer-ng-bootstrap-machine.d.ts +112 -4
- package/types/mintplayer-ng-bootstrap-multi-range.d.ts +53 -27
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +88 -164
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +63 -30
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +23 -7
- package/types/mintplayer-ng-bootstrap-phone-input.d.ts +77 -47
- package/types/mintplayer-ng-bootstrap-query-builder.d.ts +95 -98
- package/types/mintplayer-ng-bootstrap-radio.d.ts +68 -35
- package/types/mintplayer-ng-bootstrap-rating.d.ts +27 -2
- package/types/mintplayer-ng-bootstrap-ribbon.d.ts +546 -220
- package/types/mintplayer-ng-bootstrap-scheduler.d.ts +82 -197
- package/types/mintplayer-ng-bootstrap-select.d.ts +113 -53
- package/types/mintplayer-ng-bootstrap-shell.d.ts +59 -33
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +63 -27
- package/types/mintplayer-ng-bootstrap-splitter.d.ts +45 -56
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +47 -26
- package/types/mintplayer-ng-bootstrap-table.d.ts +1 -2
- package/types/mintplayer-ng-bootstrap-theming.d.ts +19 -18
- package/types/mintplayer-ng-bootstrap-timeline.d.ts +287 -117
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +100 -27
- package/types/mintplayer-ng-bootstrap-tree-select.d.ts +188 -94
- package/types/mintplayer-ng-bootstrap-treeview.d.ts +74 -59
- package/types/mintplayer-ng-bootstrap-typeahead.d.ts +3 -0
- package/src/styles/utilities/cursor.scss +0 -12
- package/src/styles/utilities/overflow.scss +0 -12
- package/src/styles/utilities/white-space.scss +0 -12
- package/src/styles/utilities/width.scss +0 -14
|
@@ -1,317 +1,270 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject,
|
|
2
|
+
import { inject, Injector, DestroyRef, signal, forwardRef, Directive, computed, TemplateRef, ElementRef, input, model, booleanAttribute, numberAttribute, output, contentChild, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
4
|
+
import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
5
|
+
import { treeSelectCore, treeSelectScopedStyles } from '@mintplayer/ui-core/tree-select';
|
|
6
|
+
export { InMemoryTreeSelectProvider } from '@mintplayer/ui-core/tree-select';
|
|
3
7
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
|
-
import { BsFormComponent } from '@mintplayer/ng-bootstrap/form';
|
|
5
|
-
export { InMemoryTreeSelectProvider } from '@mintplayer/web-components/tree-select';
|
|
6
|
-
import { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';
|
|
7
8
|
|
|
8
|
-
/**
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The `ControlValueAccessor` of `bs-tree-select` (a host directive of the
|
|
11
|
+
* generated component, see `tree-select.angular.ts`). A bound form control
|
|
12
|
+
* drives the value through `viewValue`; a user's change reaches the form
|
|
13
|
+
* through the component's `value` model, which a form write never echoes.
|
|
14
|
+
*/
|
|
15
|
+
class BsTreeSelectValueAccessor {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.injector = inject(Injector);
|
|
18
|
+
this.destroyRef = inject(DestroyRef);
|
|
19
|
+
/** A form control drives the value: its `viewValue` wins over the `value` input. */
|
|
20
|
+
this.bound = signal(false, /* @ts-ignore */
|
|
21
|
+
...(ngDevMode ? [{ debugName: "bound" }] : /* istanbul ignore next */ []));
|
|
22
|
+
this.viewValue = signal(null, /* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [{ debugName: "viewValue" }] : /* istanbul ignore next */ []));
|
|
24
|
+
this.disabled = signal(false, /* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
26
|
+
this.onChange = () => undefined;
|
|
27
|
+
this.onTouched = () => undefined;
|
|
28
|
+
}
|
|
29
|
+
ngOnInit() {
|
|
30
|
+
// The component is created after its host directives, so it is looked up here.
|
|
31
|
+
const component = this.injector.get(BsTreeSelectComponent);
|
|
32
|
+
const sub = component.valuechange.subscribe((value) => {
|
|
33
|
+
if (!this.bound() || value === this.viewValue())
|
|
34
|
+
return;
|
|
35
|
+
this.viewValue.set(value);
|
|
36
|
+
this.onChange(value);
|
|
37
|
+
});
|
|
38
|
+
this.destroyRef.onDestroy(() => sub.unsubscribe());
|
|
39
|
+
}
|
|
40
|
+
registerOnChange(fn) {
|
|
41
|
+
this.bound.set(true);
|
|
42
|
+
this.onChange = fn;
|
|
43
|
+
}
|
|
44
|
+
registerOnTouched(fn) {
|
|
45
|
+
this.onTouched = fn;
|
|
46
|
+
}
|
|
47
|
+
writeValue(value) {
|
|
48
|
+
this.viewValue.set(value ?? null);
|
|
49
|
+
}
|
|
50
|
+
setDisabledState(isDisabled) {
|
|
51
|
+
this.disabled.set(isDisabled);
|
|
52
|
+
}
|
|
53
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
54
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTreeSelectValueAccessor, isStandalone: true, host: { listeners: { "focusout": "onTouched()" } }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsTreeSelectValueAccessor), multi: true }], ngImport: i0 }); }
|
|
55
|
+
}
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectValueAccessor, decorators: [{
|
|
57
|
+
type: Directive,
|
|
58
|
+
args: [{
|
|
59
|
+
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsTreeSelectValueAccessor), multi: true }],
|
|
60
|
+
host: {
|
|
61
|
+
'(focusout)': 'onTouched()',
|
|
62
|
+
},
|
|
63
|
+
}]
|
|
64
|
+
}] });
|
|
65
|
+
|
|
66
|
+
/*
|
|
67
|
+
* The Angular extension of the generated `bs-tree-select` (PRD #437 D10 escape
|
|
68
|
+
* hatch): Angular forms. A bound form control drives the value and the
|
|
69
|
+
* disabled state.
|
|
70
|
+
*/
|
|
71
|
+
const hostDirectives = [BsTreeSelectValueAccessor];
|
|
72
|
+
function extendInputs(inputs) {
|
|
73
|
+
const accessor = inject(BsTreeSelectValueAccessor, { self: true });
|
|
74
|
+
return computed(() => {
|
|
75
|
+
const value = inputs();
|
|
76
|
+
return {
|
|
77
|
+
...value,
|
|
78
|
+
value: accessor.bound() ? accessor.viewValue() : value.value,
|
|
79
|
+
disabled: value.disabled || accessor.disabled(),
|
|
80
|
+
};
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// GENERATED from the tree-select manifest (tree-select) by @mintplayer/nx-component-compiler. Do not edit.
|
|
85
|
+
/** The `item` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectItem>` or `*bsTreeSelectItem`. */
|
|
86
|
+
class BsTreeSelectItemDirective {
|
|
10
87
|
constructor() {
|
|
11
88
|
this.templateRef = inject(TemplateRef);
|
|
12
89
|
}
|
|
13
|
-
static ngTemplateContextGuard(
|
|
90
|
+
static ngTemplateContextGuard(_dir, ctx) {
|
|
14
91
|
return true;
|
|
15
92
|
}
|
|
16
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
17
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type:
|
|
93
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
94
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTreeSelectItemDirective, isStandalone: true, selector: "[bsTreeSelectItem]", ngImport: i0 }); }
|
|
18
95
|
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectItemDirective, decorators: [{
|
|
20
97
|
type: Directive,
|
|
21
98
|
args: [{ selector: '[bsTreeSelectItem]' }]
|
|
22
99
|
}] });
|
|
23
|
-
/**
|
|
24
|
-
class
|
|
100
|
+
/** The `suggestion` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectSuggestion>` or `*bsTreeSelectSuggestion`. */
|
|
101
|
+
class BsTreeSelectSuggestionDirective {
|
|
25
102
|
constructor() {
|
|
26
103
|
this.templateRef = inject(TemplateRef);
|
|
27
104
|
}
|
|
28
|
-
static ngTemplateContextGuard(
|
|
105
|
+
static ngTemplateContextGuard(_dir, ctx) {
|
|
29
106
|
return true;
|
|
30
107
|
}
|
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
32
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type:
|
|
108
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectSuggestionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
109
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTreeSelectSuggestionDirective, isStandalone: true, selector: "[bsTreeSelectSuggestion]", ngImport: i0 }); }
|
|
33
110
|
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectSuggestionDirective, decorators: [{
|
|
35
112
|
type: Directive,
|
|
36
113
|
args: [{ selector: '[bsTreeSelectSuggestion]' }]
|
|
37
114
|
}] });
|
|
38
|
-
/**
|
|
39
|
-
class
|
|
115
|
+
/** The `button` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectButton>` or `*bsTreeSelectButton`. */
|
|
116
|
+
class BsTreeSelectButtonDirective {
|
|
40
117
|
constructor() {
|
|
41
118
|
this.templateRef = inject(TemplateRef);
|
|
42
119
|
}
|
|
43
|
-
static ngTemplateContextGuard(
|
|
120
|
+
static ngTemplateContextGuard(_dir, ctx) {
|
|
44
121
|
return true;
|
|
45
122
|
}
|
|
46
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
47
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type:
|
|
123
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
124
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTreeSelectButtonDirective, isStandalone: true, selector: "[bsTreeSelectButton]", ngImport: i0 }); }
|
|
48
125
|
}
|
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectButtonDirective, decorators: [{
|
|
50
127
|
type: Directive,
|
|
51
128
|
args: [{ selector: '[bsTreeSelectButton]' }]
|
|
52
129
|
}] });
|
|
53
|
-
/**
|
|
54
|
-
class
|
|
130
|
+
/** The `header` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectHeader>` or `*bsTreeSelectHeader`. */
|
|
131
|
+
class BsTreeSelectHeaderDirective {
|
|
55
132
|
constructor() {
|
|
56
133
|
this.templateRef = inject(TemplateRef);
|
|
57
134
|
}
|
|
58
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
59
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type:
|
|
135
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
136
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTreeSelectHeaderDirective, isStandalone: true, selector: "[bsTreeSelectHeader]", ngImport: i0 }); }
|
|
60
137
|
}
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectHeaderDirective, decorators: [{
|
|
62
139
|
type: Directive,
|
|
63
140
|
args: [{ selector: '[bsTreeSelectHeader]' }]
|
|
64
141
|
}] });
|
|
65
|
-
/**
|
|
66
|
-
class
|
|
142
|
+
/** The `footer` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectFooter>` or `*bsTreeSelectFooter`. */
|
|
143
|
+
class BsTreeSelectFooterDirective {
|
|
67
144
|
constructor() {
|
|
68
145
|
this.templateRef = inject(TemplateRef);
|
|
69
146
|
}
|
|
70
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
71
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type:
|
|
147
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectFooterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
148
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTreeSelectFooterDirective, isStandalone: true, selector: "[bsTreeSelectFooter]", ngImport: i0 }); }
|
|
72
149
|
}
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectFooterDirective, decorators: [{
|
|
74
151
|
type: Directive,
|
|
75
152
|
args: [{ selector: '[bsTreeSelectFooter]' }]
|
|
76
153
|
}] });
|
|
77
|
-
/**
|
|
78
|
-
class
|
|
154
|
+
/** The `noResults` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectNoResults>` or `*bsTreeSelectNoResults`. */
|
|
155
|
+
class BsTreeSelectNoResultsDirective {
|
|
79
156
|
constructor() {
|
|
80
157
|
this.templateRef = inject(TemplateRef);
|
|
81
158
|
}
|
|
82
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
83
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type:
|
|
159
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectNoResultsDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
160
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTreeSelectNoResultsDirective, isStandalone: true, selector: "[bsTreeSelectNoResults]", ngImport: i0 }); }
|
|
84
161
|
}
|
|
85
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectNoResultsDirective, decorators: [{
|
|
86
163
|
type: Directive,
|
|
87
164
|
args: [{ selector: '[bsTreeSelectNoResults]' }]
|
|
88
165
|
}] });
|
|
89
|
-
/**
|
|
90
|
-
class
|
|
166
|
+
/** The `enterSearchTerm` slot of `<bs-tree-select>`: `<ng-template bsTreeSelectEnterSearchTerm>` or `*bsTreeSelectEnterSearchTerm`. */
|
|
167
|
+
class BsTreeSelectEnterSearchTermDirective {
|
|
91
168
|
constructor() {
|
|
92
169
|
this.templateRef = inject(TemplateRef);
|
|
93
170
|
}
|
|
94
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
95
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type:
|
|
171
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectEnterSearchTermDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
172
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTreeSelectEnterSearchTermDirective, isStandalone: true, selector: "[bsTreeSelectEnterSearchTerm]", ngImport: i0 }); }
|
|
96
173
|
}
|
|
97
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
174
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectEnterSearchTermDirective, decorators: [{
|
|
98
175
|
type: Directive,
|
|
99
176
|
args: [{ selector: '[bsTreeSelectEnterSearchTerm]' }]
|
|
100
177
|
}] });
|
|
101
|
-
|
|
102
178
|
/**
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
179
|
+
* A hierarchical, async, searchable select (#437): a combobox, or a button, opening a tree in
|
|
180
|
+
* a native popover.
|
|
181
|
+
*
|
|
182
|
+
* Data comes from a `provider` (roots, search and lazy children, each paged); `value` holds
|
|
183
|
+
* whole nodes, one in `single` mode and an array in `multiple` / `checkbox`. `cascadeSelect`
|
|
184
|
+
* checks a branch with its loaded children. Slots: `item` (a chosen node), `suggestion` (a
|
|
185
|
+
* tree row's body), `button` (the button variant's body), `header`, `footer`, `noResults`,
|
|
186
|
+
* `enterSearchTerm`. An `aria-label` names the combobox.
|
|
106
187
|
*/
|
|
107
188
|
class BsTreeSelectComponent {
|
|
189
|
+
#core;
|
|
108
190
|
constructor() {
|
|
109
|
-
|
|
110
|
-
this.
|
|
191
|
+
/** The host element. */
|
|
192
|
+
this.elementRef = inject(ElementRef);
|
|
193
|
+
this.provider = input(null, /* @ts-ignore */
|
|
111
194
|
...(ngDevMode ? [{ debugName: "provider" }] : /* istanbul ignore next */ []));
|
|
195
|
+
this.value = model(null, /* @ts-ignore */
|
|
196
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
112
197
|
this.mode = input('single', /* @ts-ignore */
|
|
113
198
|
...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
114
199
|
this.variant = input('textbox', /* @ts-ignore */
|
|
115
200
|
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
116
|
-
this.cascadeSelect = input(false, /*
|
|
117
|
-
...(ngDevMode ? [{ debugName: "cascadeSelect" }] : /* istanbul ignore next */ []));
|
|
201
|
+
this.cascadeSelect = input(false, { ...(ngDevMode ? { debugName: "cascadeSelect" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
118
202
|
this.placeholder = input('', /* @ts-ignore */
|
|
119
203
|
...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
120
|
-
this.showClear = input(false, /*
|
|
121
|
-
...(ngDevMode ? [{ debugName: "showClear" }] : /* istanbul ignore next */ []));
|
|
204
|
+
this.showClear = input(false, { ...(ngDevMode ? { debugName: "showClear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
122
205
|
this.panelScrollHeight = input('300px', /* @ts-ignore */
|
|
123
206
|
...(ngDevMode ? [{ debugName: "panelScrollHeight" }] : /* istanbul ignore next */ []));
|
|
124
|
-
this.
|
|
125
|
-
...(ngDevMode ?
|
|
126
|
-
this.
|
|
127
|
-
...(ngDevMode ? [{ debugName: "
|
|
128
|
-
this.
|
|
129
|
-
...(ngDevMode ? [{ debugName: "
|
|
130
|
-
|
|
131
|
-
this.
|
|
132
|
-
|
|
133
|
-
this.
|
|
134
|
-
|
|
135
|
-
this.
|
|
136
|
-
|
|
137
|
-
this.
|
|
138
|
-
|
|
139
|
-
this.
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
this.
|
|
151
|
-
|
|
152
|
-
this.
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
this.
|
|
160
|
-
|
|
161
|
-
throw new Error('<bs-tree-select> must be inside a <bs-form>');
|
|
162
|
-
}
|
|
163
|
-
this.destroyRef.onDestroy(() => {
|
|
164
|
-
[...this.nodeCaches].flatMap((cache) => [...cache.values()]).map((v) => v.destroy());
|
|
165
|
-
this.singleViews.map((v) => v.destroy());
|
|
166
|
-
});
|
|
167
|
-
// Push scalar config to the WC element.
|
|
168
|
-
this.bindProp((el) => (el.mode = this.mode()));
|
|
169
|
-
this.bindProp((el) => (el.variant = this.variant()));
|
|
170
|
-
this.bindProp((el) => (el.cascadeSelect = this.cascadeSelect()));
|
|
171
|
-
this.bindProp((el) => (el.placeholder = this.placeholder()));
|
|
172
|
-
this.bindProp((el) => (el.showClear = this.showClear()));
|
|
173
|
-
this.bindProp((el) => (el.panelScrollHeight = this.panelScrollHeight()));
|
|
174
|
-
this.bindProp((el) => (el.searchDebounceMs = this.searchDebounceMs()));
|
|
175
|
-
this.bindProp((el) => (el.disabled = this.effectiveDisabled()));
|
|
176
|
-
this.bindProp((el) => (el.provider = this.provider()));
|
|
177
|
-
this.bindProp((el) => (el.value = this.value()));
|
|
178
|
-
// Wire render-callbacks from any provided ng-templates.
|
|
179
|
-
this.bindProp((el) => (el.itemTemplate = this.nodeRenderer(this.itemTpl())));
|
|
180
|
-
this.bindProp((el) => (el.suggestionTemplate = this.nodeRenderer(this.suggestionTpl())));
|
|
181
|
-
this.bindProp((el) => (el.buttonTemplate = this.valueRenderer(this.buttonTpl())));
|
|
182
|
-
this.bindProp((el) => (el.headerTemplate = this.staticRenderer(this.headerTpl())));
|
|
183
|
-
this.bindProp((el) => (el.footerTemplate = this.staticRenderer(this.footerTpl())));
|
|
184
|
-
this.bindProp((el) => (el.noResultsTemplate = this.staticRenderer(this.noResultsTpl())));
|
|
185
|
-
this.bindProp((el) => (el.enterSearchTermTemplate = this.staticRenderer(this.enterSearchTermTpl())));
|
|
186
|
-
}
|
|
187
|
-
bindProp(apply) {
|
|
188
|
-
effect(() => {
|
|
189
|
-
const el = this.elementRef().nativeElement;
|
|
190
|
-
apply(el);
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
// ---- event handlers ----------------------------------------------------
|
|
194
|
-
onValueChange(event) {
|
|
195
|
-
const detail = event.detail;
|
|
196
|
-
this.value.set(detail.value);
|
|
197
|
-
this.onChange(detail.value);
|
|
198
|
-
}
|
|
199
|
-
onOpen() {
|
|
200
|
-
this.opened.emit();
|
|
201
|
-
}
|
|
202
|
-
onClose() {
|
|
203
|
-
this.onTouched();
|
|
204
|
-
this.closed.emit();
|
|
205
|
-
}
|
|
206
|
-
onClear() {
|
|
207
|
-
this.cleared.emit();
|
|
208
|
-
}
|
|
209
|
-
// ---- ControlValueAccessor ---------------------------------------------
|
|
210
|
-
writeValue(value) {
|
|
211
|
-
this.value.set(value);
|
|
207
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
208
|
+
this.searchDebounceMs = input(200, { ...(ngDevMode ? { debugName: "searchDebounceMs" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
|
|
209
|
+
this.inputLabel = input(null, /* @ts-ignore */
|
|
210
|
+
...(ngDevMode ? [{ debugName: "inputLabel" }] : /* istanbul ignore next */ []));
|
|
211
|
+
this.labels = input(null, /* @ts-ignore */
|
|
212
|
+
...(ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []));
|
|
213
|
+
/** The value, after the user changed it. */
|
|
214
|
+
this.valuechange = output();
|
|
215
|
+
/** The node added or removed (neither for a clear), with the value. */
|
|
216
|
+
this.selectionchanged = output();
|
|
217
|
+
/** The panel opened (true) or closed (false). */
|
|
218
|
+
this.openchange = output();
|
|
219
|
+
/** A search started (an empty query restores the browse tree). */
|
|
220
|
+
this.searchstart = output();
|
|
221
|
+
/** A provider call rejected. */
|
|
222
|
+
this.loaderror = output();
|
|
223
|
+
this.itemSlot = contentChild(BsTreeSelectItemDirective, /* @ts-ignore */
|
|
224
|
+
...(ngDevMode ? [{ debugName: "itemSlot" }] : /* istanbul ignore next */ []));
|
|
225
|
+
this.suggestionSlot = contentChild(BsTreeSelectSuggestionDirective, /* @ts-ignore */
|
|
226
|
+
...(ngDevMode ? [{ debugName: "suggestionSlot" }] : /* istanbul ignore next */ []));
|
|
227
|
+
this.buttonSlot = contentChild(BsTreeSelectButtonDirective, /* @ts-ignore */
|
|
228
|
+
...(ngDevMode ? [{ debugName: "buttonSlot" }] : /* istanbul ignore next */ []));
|
|
229
|
+
this.headerSlot = contentChild(BsTreeSelectHeaderDirective, /* @ts-ignore */
|
|
230
|
+
...(ngDevMode ? [{ debugName: "headerSlot" }] : /* istanbul ignore next */ []));
|
|
231
|
+
this.footerSlot = contentChild(BsTreeSelectFooterDirective, /* @ts-ignore */
|
|
232
|
+
...(ngDevMode ? [{ debugName: "footerSlot" }] : /* istanbul ignore next */ []));
|
|
233
|
+
this.noResultsSlot = contentChild(BsTreeSelectNoResultsDirective, /* @ts-ignore */
|
|
234
|
+
...(ngDevMode ? [{ debugName: "noResultsSlot" }] : /* istanbul ignore next */ []));
|
|
235
|
+
this.enterSearchTermSlot = contentChild(BsTreeSelectEnterSearchTermDirective, /* @ts-ignore */
|
|
236
|
+
...(ngDevMode ? [{ debugName: "enterSearchTermSlot" }] : /* istanbul ignore next */ []));
|
|
237
|
+
/** The template's named slots. */
|
|
238
|
+
this.slots = computed(() => ({ item: this.itemSlot()?.templateRef, suggestion: this.suggestionSlot()?.templateRef, button: this.buttonSlot()?.templateRef, header: this.headerSlot()?.templateRef, footer: this.footerSlot()?.templateRef, noResults: this.noResultsSlot()?.templateRef, enterSearchTerm: this.enterSearchTermSlot()?.templateRef }), /* @ts-ignore */
|
|
239
|
+
...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
|
|
240
|
+
this.#core = useCore(treeSelectCore, { inputs: extendInputs(() => ({ provider: this.provider(), value: this.value(), mode: this.mode(), variant: this.variant(), cascadeSelect: this.cascadeSelect(), placeholder: this.placeholder(), showClear: this.showClear(), panelScrollHeight: this.panelScrollHeight(), disabled: this.disabled(), searchDebounceMs: this.searchDebounceMs(), inputLabel: this.inputLabel(), labels: this.labels() })), idPrefix: 'bs-tree-select', outputs: { valueChange: this.valuechange, selectionChanged: this.selectionchanged, openChange: this.openchange, searchStart: this.searchstart, loadError: this.loaderror }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'tree-select' }), models: { value: this.value } });
|
|
241
|
+
/** The template's props. */
|
|
242
|
+
this.props = this.#core.props;
|
|
243
|
+
useScopedStyles('tree-select', treeSelectScopedStyles);
|
|
212
244
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
registerOnTouched(fn) {
|
|
217
|
-
this.onTouched = fn;
|
|
218
|
-
}
|
|
219
|
-
setDisabledState(isDisabled) {
|
|
220
|
-
this.disabledByCva.set(isDisabled);
|
|
245
|
+
/** Open the panel (ignored when disabled or without a provider). */
|
|
246
|
+
open(...args) {
|
|
247
|
+
return this.#core.call('open', args);
|
|
221
248
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
return undefined;
|
|
226
|
-
// LRU-bounded so browsing a large server tree (every distinct node id seen
|
|
227
|
-
// over the component's lifetime) can't grow the cache without limit. Map
|
|
228
|
-
// iteration is insertion-ordered; re-inserting on hit marks recency, and we
|
|
229
|
-
// destroy the oldest entry past the cap. Currently-rendered nodes are the
|
|
230
|
-
// most-recently-used, so eviction only ever targets off-screen views.
|
|
231
|
-
const MAX_VIEWS = 400;
|
|
232
|
-
const cache = new Map();
|
|
233
|
-
this.nodeCaches.add(cache);
|
|
234
|
-
return (node, query) => {
|
|
235
|
-
let view = cache.get(node.id);
|
|
236
|
-
if (!view) {
|
|
237
|
-
view = this.vcr.createEmbeddedView(dir.templateRef, { $implicit: node, query });
|
|
238
|
-
cache.set(node.id, view);
|
|
239
|
-
if (cache.size > MAX_VIEWS) {
|
|
240
|
-
const oldest = cache.keys().next().value;
|
|
241
|
-
cache.get(oldest)?.destroy();
|
|
242
|
-
cache.delete(oldest);
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
else {
|
|
246
|
-
cache.delete(node.id);
|
|
247
|
-
cache.set(node.id, view);
|
|
248
|
-
view.context.$implicit = node;
|
|
249
|
-
view.context.query = query;
|
|
250
|
-
}
|
|
251
|
-
view.detectChanges();
|
|
252
|
-
return this.rootNode(view);
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
|
-
valueRenderer(dir) {
|
|
256
|
-
if (!dir)
|
|
257
|
-
return undefined;
|
|
258
|
-
let view;
|
|
259
|
-
return (value) => {
|
|
260
|
-
if (!view) {
|
|
261
|
-
view = this.vcr.createEmbeddedView(dir.templateRef, { $implicit: value });
|
|
262
|
-
this.singleViews.push(view);
|
|
263
|
-
}
|
|
264
|
-
else {
|
|
265
|
-
view.context.$implicit = value;
|
|
266
|
-
}
|
|
267
|
-
view.detectChanges();
|
|
268
|
-
return this.rootNode(view);
|
|
269
|
-
};
|
|
270
|
-
}
|
|
271
|
-
staticRenderer(dir) {
|
|
272
|
-
if (!dir)
|
|
273
|
-
return undefined;
|
|
274
|
-
let view;
|
|
275
|
-
return () => {
|
|
276
|
-
if (!view) {
|
|
277
|
-
view = this.vcr.createEmbeddedView(dir.templateRef, {});
|
|
278
|
-
this.singleViews.push(view);
|
|
279
|
-
}
|
|
280
|
-
view.detectChanges();
|
|
281
|
-
return this.rootNode(view);
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
rootNode(view) {
|
|
285
|
-
const nodes = view.rootNodes.filter((n) => n instanceof Node);
|
|
286
|
-
if (nodes.length === 1)
|
|
287
|
-
return nodes[0];
|
|
288
|
-
const fragment = document.createDocumentFragment();
|
|
289
|
-
fragment.append(...nodes);
|
|
290
|
-
return fragment;
|
|
249
|
+
/** Close the panel. */
|
|
250
|
+
close(...args) {
|
|
251
|
+
return this.#core.call('close', args);
|
|
291
252
|
}
|
|
292
253
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
293
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsTreeSelectComponent, isStandalone: true, selector: "bs-tree-select", inputs: { provider: { classPropertyName: "provider", publicName: "provider", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, cascadeSelect: { classPropertyName: "cascadeSelect", publicName: "cascadeSelect", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, panelScrollHeight: { classPropertyName: "panelScrollHeight", publicName: "panelScrollHeight", isSignal: true, isRequired: false, transformFunction: null }, searchDebounceMs: { classPropertyName: "searchDebounceMs", publicName: "searchDebounceMs", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", opened: "opened", closed: "closed", cleared: "cleared" }, providers: [
|
|
294
|
-
{
|
|
295
|
-
provide: NG_VALUE_ACCESSOR,
|
|
296
|
-
useExisting: forwardRef(() => BsTreeSelectComponent),
|
|
297
|
-
multi: true,
|
|
298
|
-
},
|
|
299
|
-
], queries: [{ propertyName: "itemTpl", first: true, predicate: BsTreeSelectItemTemplateDirective, descendants: true, isSignal: true }, { propertyName: "suggestionTpl", first: true, predicate: BsTreeSelectSuggestionTemplateDirective, descendants: true, isSignal: true }, { propertyName: "buttonTpl", first: true, predicate: BsTreeSelectButtonTemplateDirective, descendants: true, isSignal: true }, { propertyName: "headerTpl", first: true, predicate: BsTreeSelectHeaderTemplateDirective, descendants: true, isSignal: true }, { propertyName: "footerTpl", first: true, predicate: BsTreeSelectFooterTemplateDirective, descendants: true, isSignal: true }, { propertyName: "noResultsTpl", first: true, predicate: BsTreeSelectNoResultsTemplateDirective, descendants: true, isSignal: true }, { propertyName: "enterSearchTermTpl", first: true, predicate: BsTreeSelectEnterSearchTermTemplateDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "elementRef", first: true, predicate: ["el"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-tree-select bsForwardAria\n #el\n class=\"bs-tree-select\"\n (value-change)=\"onValueChange($event)\"\n (open)=\"onOpen()\"\n (close)=\"onClose()\"\n (clear)=\"onClear()\"\n></mp-tree-select>\n", dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
254
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsTreeSelectComponent, isStandalone: true, selector: "bs-tree-select", inputs: { provider: { classPropertyName: "provider", publicName: "provider", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, cascadeSelect: { classPropertyName: "cascadeSelect", publicName: "cascadeSelect", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, panelScrollHeight: { classPropertyName: "panelScrollHeight", publicName: "panelScrollHeight", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, searchDebounceMs: { classPropertyName: "searchDebounceMs", publicName: "searchDebounceMs", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valuechange: "valuechange", selectionchanged: "selectionchanged", openchange: "openchange", searchstart: "searchstart", loaderror: "loaderror" }, queries: [{ propertyName: "itemSlot", first: true, predicate: BsTreeSelectItemDirective, descendants: true, isSignal: true }, { propertyName: "suggestionSlot", first: true, predicate: BsTreeSelectSuggestionDirective, descendants: true, isSignal: true }, { propertyName: "buttonSlot", first: true, predicate: BsTreeSelectButtonDirective, descendants: true, isSignal: true }, { propertyName: "headerSlot", first: true, predicate: BsTreeSelectHeaderDirective, descendants: true, isSignal: true }, { propertyName: "footerSlot", first: true, predicate: BsTreeSelectFooterDirective, descendants: true, isSignal: true }, { propertyName: "noResultsSlot", first: true, predicate: BsTreeSelectNoResultsDirective, descendants: true, isSignal: true }, { propertyName: "enterSearchTermSlot", first: true, predicate: BsTreeSelectEnterSearchTermDirective, descendants: true, isSignal: true }], hostDirectives: [{ directive: BsTreeSelectValueAccessor }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/tree-select/src/templates/tree-select.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"tree-select\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n@if (p_view.textbox) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.control\">\n @for (chip of p_view.chips; track chip.key) {\n <span data-mps=\"tree-select\" [mpProps]=\"chip.bag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.chipLabel\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: { node: chip.node, query: p_view.query }, node: chip.node, query: p_view.query }\" />\n } @else {\n {{ chip.node.label }}\n }\n </span>\n @if (chip.remove) {\n <button data-mps=\"tree-select\" [mpProps]=\"chip.remove\">\n \u00D7\n </button>\n }\n </span>\n }\n @if (p_view.single) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.singleBag\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: { node: p_view.single, query: p_view.query }, node: p_view.single, query: p_view.query }\" />\n } @else {\n {{ p_view.single.label }}\n }\n </span>\n }\n <input data-mps=\"tree-select\" [mpProps]=\"p_view.input\" [value]=\"p_view.query\">\n @if (p_view.clear) {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.clear\">\n \u00D7\n </button>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.caret\"></span>\n </div>\n} @else {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.button\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.buttonBody\">\n @if (slots().button; as slot_button) {\n <ng-container [ngTemplateOutlet]=\"slot_button\" [ngTemplateOutletContext]=\"{ $implicit: { value: p_view.value }, value: p_view.value }\" />\n } @else {\n @if (p_view.showPlaceholder) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.placeholder\">\n {{ p_view.placeholderText }}\n </span>\n }\n @for (chip of p_view.chips; track chip.key) {\n <span data-mps=\"tree-select\" [mpProps]=\"chip.bag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.chipLabel\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: { node: chip.node, query: p_view.query }, node: chip.node, query: p_view.query }\" />\n } @else {\n {{ chip.node.label }}\n }\n </span>\n </span>\n }\n @if (p_view.single) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.singleBag\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: { node: p_view.single, query: p_view.query }, node: p_view.single, query: p_view.query }\" />\n } @else {\n {{ p_view.single.label }}\n }\n </span>\n }\n }\n </span>\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.caret\"></span>\n </button>\n}\n<div data-mps=\"tree-select\" [mpProps]=\"p_view.panel\">\n @if (slots().header) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.header\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" />\n }\n </div>\n }\n @if (p_view.panelSearch) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.header\">\n <input data-mps=\"tree-select\" [mpProps]=\"p_view.panelSearch\" [value]=\"p_view.query\">\n </div>\n }\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.body\" [style]=\"p_view.bodyStyle\">\n @if (p_view.noProvider) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n {{ p_view.labels.noProvider }}\n </div>\n } @else if (p_view.busy) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.spinner\"></span>\n </div>\n } @else if (p_view.noResults) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n @if (slots().noResults; as slot_noResults) {\n <ng-container [ngTemplateOutlet]=\"slot_noResults\" />\n } @else {\n {{ p_view.labels.noResults }}\n }\n </div>\n } @else if (p_view.noItems) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n @if (slots().enterSearchTerm; as slot_enterSearchTerm) {\n <ng-container [ngTemplateOutlet]=\"slot_enterSearchTerm\" />\n } @else {\n {{ p_view.labels.noItems }}\n }\n </div>\n }\n @if (p_view.showTree) {\n <ul data-mps=\"tree-select\" [mpProps]=\"p_view.tree.tree\">\n @for (row of p_view.rows; track row.key) {\n <li data-mps=\"tree-select\" [mpProps]=\"row.item\" [style]=\"row.style\">\n @if (row.error) {\n <span data-mps=\"tree-select\" [mpProps]=\"row.errorBag\">\n {{ row.error }}\n </span>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"row.chevron\">\n @if (row.loading) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.spinner\"></span>\n }\n </span>\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.body\">\n @if (row.check) {\n <span data-mps=\"tree-select\" [mpProps]=\"row.check\"></span>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.label\">\n @if (slots().suggestion; as slot_suggestion) {\n <ng-container [ngTemplateOutlet]=\"slot_suggestion\" [ngTemplateOutletContext]=\"{ $implicit: { node: row.node, query: p_view.query }, node: row.node, query: p_view.query }\" />\n } @else {\n {{ row.node.label }}\n }\n </span>\n </span>\n </li>\n }\n </ul>\n }\n </div>\n @if (p_view.loadMore) {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.loadMore\">\n @if (p_view.loadMoreBusy) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.spinner\"></span>\n } @else {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.loadMoreLabel\">\n {{ p_view.labels.loadMore }}\n </span>\n }\n </button>\n }\n @if (slots().footer) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.footer\">\n @if (slots().footer; as slot_footer) {\n <ng-container [ngTemplateOutlet]=\"slot_footer\" />\n }\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
300
255
|
}
|
|
301
256
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTreeSelectComponent, decorators: [{
|
|
302
257
|
type: Component,
|
|
303
|
-
args: [{ selector: 'bs-tree-select', imports: [
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
], template: "<mp-tree-select bsForwardAria\n #el\n class=\"bs-tree-select\"\n (value-change)=\"onValueChange($event)\"\n (open)=\"onOpen()\"\n (close)=\"onClose()\"\n (clear)=\"onClear()\"\n></mp-tree-select>\n" }]
|
|
310
|
-
}], ctorParameters: () => [], propDecorators: { provider: [{ type: i0.Input, args: [{ isSignal: true, alias: "provider", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], cascadeSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "cascadeSelect", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], panelScrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelScrollHeight", required: false }] }], searchDebounceMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchDebounceMs", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], cleared: [{ type: i0.Output, args: ["cleared"] }], elementRef: [{ type: i0.ViewChild, args: ['el', { isSignal: true }] }], itemTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectItemTemplateDirective), { isSignal: true }] }], suggestionTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectSuggestionTemplateDirective), { isSignal: true }] }], buttonTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectButtonTemplateDirective), { isSignal: true }] }], headerTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectHeaderTemplateDirective), { isSignal: true }] }], footerTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectFooterTemplateDirective), { isSignal: true }] }], noResultsTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectNoResultsTemplateDirective), { isSignal: true }] }], enterSearchTermTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectEnterSearchTermTemplateDirective), { isSignal: true }] }] } });
|
|
258
|
+
args: [{ selector: 'bs-tree-select', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives, template: "<!-- GENERATED from libs/mintplayer-ui-core/tree-select/src/templates/tree-select.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"tree-select\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n@if (p_view.textbox) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.control\">\n @for (chip of p_view.chips; track chip.key) {\n <span data-mps=\"tree-select\" [mpProps]=\"chip.bag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.chipLabel\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: { node: chip.node, query: p_view.query }, node: chip.node, query: p_view.query }\" />\n } @else {\n {{ chip.node.label }}\n }\n </span>\n @if (chip.remove) {\n <button data-mps=\"tree-select\" [mpProps]=\"chip.remove\">\n \u00D7\n </button>\n }\n </span>\n }\n @if (p_view.single) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.singleBag\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: { node: p_view.single, query: p_view.query }, node: p_view.single, query: p_view.query }\" />\n } @else {\n {{ p_view.single.label }}\n }\n </span>\n }\n <input data-mps=\"tree-select\" [mpProps]=\"p_view.input\" [value]=\"p_view.query\">\n @if (p_view.clear) {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.clear\">\n \u00D7\n </button>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.caret\"></span>\n </div>\n} @else {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.button\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.buttonBody\">\n @if (slots().button; as slot_button) {\n <ng-container [ngTemplateOutlet]=\"slot_button\" [ngTemplateOutletContext]=\"{ $implicit: { value: p_view.value }, value: p_view.value }\" />\n } @else {\n @if (p_view.showPlaceholder) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.placeholder\">\n {{ p_view.placeholderText }}\n </span>\n }\n @for (chip of p_view.chips; track chip.key) {\n <span data-mps=\"tree-select\" [mpProps]=\"chip.bag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.chipLabel\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: { node: chip.node, query: p_view.query }, node: chip.node, query: p_view.query }\" />\n } @else {\n {{ chip.node.label }}\n }\n </span>\n </span>\n }\n @if (p_view.single) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.singleBag\">\n @if (slots().item; as slot_item) {\n <ng-container [ngTemplateOutlet]=\"slot_item\" [ngTemplateOutletContext]=\"{ $implicit: { node: p_view.single, query: p_view.query }, node: p_view.single, query: p_view.query }\" />\n } @else {\n {{ p_view.single.label }}\n }\n </span>\n }\n }\n </span>\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.caret\"></span>\n </button>\n}\n<div data-mps=\"tree-select\" [mpProps]=\"p_view.panel\">\n @if (slots().header) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.header\">\n @if (slots().header; as slot_header) {\n <ng-container [ngTemplateOutlet]=\"slot_header\" />\n }\n </div>\n }\n @if (p_view.panelSearch) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.header\">\n <input data-mps=\"tree-select\" [mpProps]=\"p_view.panelSearch\" [value]=\"p_view.query\">\n </div>\n }\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.body\" [style]=\"p_view.bodyStyle\">\n @if (p_view.noProvider) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n {{ p_view.labels.noProvider }}\n </div>\n } @else if (p_view.busy) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.spinner\"></span>\n </div>\n } @else if (p_view.noResults) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n @if (slots().noResults; as slot_noResults) {\n <ng-container [ngTemplateOutlet]=\"slot_noResults\" />\n } @else {\n {{ p_view.labels.noResults }}\n }\n </div>\n } @else if (p_view.noItems) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.stateBag\">\n @if (slots().enterSearchTerm; as slot_enterSearchTerm) {\n <ng-container [ngTemplateOutlet]=\"slot_enterSearchTerm\" />\n } @else {\n {{ p_view.labels.noItems }}\n }\n </div>\n }\n @if (p_view.showTree) {\n <ul data-mps=\"tree-select\" [mpProps]=\"p_view.tree.tree\">\n @for (row of p_view.rows; track row.key) {\n <li data-mps=\"tree-select\" [mpProps]=\"row.item\" [style]=\"row.style\">\n @if (row.error) {\n <span data-mps=\"tree-select\" [mpProps]=\"row.errorBag\">\n {{ row.error }}\n </span>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"row.chevron\">\n @if (row.loading) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.spinner\"></span>\n }\n </span>\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.body\">\n @if (row.check) {\n <span data-mps=\"tree-select\" [mpProps]=\"row.check\"></span>\n }\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.tree.label\">\n @if (slots().suggestion; as slot_suggestion) {\n <ng-container [ngTemplateOutlet]=\"slot_suggestion\" [ngTemplateOutletContext]=\"{ $implicit: { node: row.node, query: p_view.query }, node: row.node, query: p_view.query }\" />\n } @else {\n {{ row.node.label }}\n }\n </span>\n </span>\n </li>\n }\n </ul>\n }\n </div>\n @if (p_view.loadMore) {\n <button data-mps=\"tree-select\" [mpProps]=\"p_view.loadMore\">\n @if (p_view.loadMoreBusy) {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.spinner\"></span>\n } @else {\n <span data-mps=\"tree-select\" [mpProps]=\"p_view.loadMoreLabel\">\n {{ p_view.labels.loadMore }}\n </span>\n }\n </button>\n }\n @if (slots().footer) {\n <div data-mps=\"tree-select\" [mpProps]=\"p_view.footer\">\n @if (slots().footer; as slot_footer) {\n <ng-container [ngTemplateOutlet]=\"slot_footer\" />\n }\n </div>\n }\n</div>\n" }]
|
|
259
|
+
}], ctorParameters: () => [], propDecorators: { provider: [{ type: i0.Input, args: [{ isSignal: true, alias: "provider", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], cascadeSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "cascadeSelect", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], panelScrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelScrollHeight", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], searchDebounceMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchDebounceMs", required: false }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], valuechange: [{ type: i0.Output, args: ["valuechange"] }], selectionchanged: [{ type: i0.Output, args: ["selectionchanged"] }], openchange: [{ type: i0.Output, args: ["openchange"] }], searchstart: [{ type: i0.Output, args: ["searchstart"] }], loaderror: [{ type: i0.Output, args: ["loaderror"] }], itemSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectItemDirective), { isSignal: true }] }], suggestionSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectSuggestionDirective), { isSignal: true }] }], buttonSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectButtonDirective), { isSignal: true }] }], headerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectHeaderDirective), { isSignal: true }] }], footerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectFooterDirective), { isSignal: true }] }], noResultsSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectNoResultsDirective), { isSignal: true }] }], enterSearchTermSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTreeSelectEnterSearchTermDirective), { isSignal: true }] }] } });
|
|
260
|
+
|
|
261
|
+
// GENERATED from the tree-select manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
262
|
+
|
|
263
|
+
// The tree-select is generated from @mintplayer/ui-core/tree-select (PRD #437 D10).
|
|
311
264
|
|
|
312
265
|
/**
|
|
313
266
|
* Generated bundle index. Do not edit.
|
|
314
267
|
*/
|
|
315
268
|
|
|
316
|
-
export {
|
|
269
|
+
export { BsTreeSelectButtonDirective, BsTreeSelectComponent, BsTreeSelectEnterSearchTermDirective, BsTreeSelectFooterDirective, BsTreeSelectHeaderDirective, BsTreeSelectItemDirective, BsTreeSelectNoResultsDirective, BsTreeSelectSuggestionDirective, BsTreeSelectValueAccessor };
|
|
317
270
|
//# sourceMappingURL=mintplayer-ng-bootstrap-tree-select.mjs.map
|