@mintplayer/ng-bootstrap 22.27.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 -813
- 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 -416
- 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,1029 +1,983 @@
|
|
|
1
|
-
export * from '@mintplayer/web-components/ribbon';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
|
-
import {
|
|
2
|
+
import { inject, ElementRef, input, booleanAttribute, computed, ChangeDetectionStrategy, Component, TemplateRef, Directive, model, output, contentChild, contentChildren, numberAttribute, Injector, DestroyRef, signal, forwardRef } from '@angular/core';
|
|
3
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
4
|
+
import { useCore, useScopedStyles, MpPropsDirective, provideCoreContext } from '@mintplayer/ng-bootstrap/machine';
|
|
5
|
+
import { ribbonContextualTabSetCore, ribbonScopedStyles, ribbonTabCore, RIBBON_CONTEXT, ribbonCore, ribbonGroupCore, quickAccessToolbarCore, ribbonButtonCore, ribbonToggleButtonCore, ribbonCheckBoxCore, ribbonComboBoxCore, ribbonColorPickerCore, ribbonGroupButtonCore, ribbonSplitButtonCore, ribbonDropdownButtonCore, ribbonMenuItemCore, ribbonMenuSeparatorCore, ribbonGalleryCore, ribbonGalleryItemCore, ribbonTemplateItemCore } from '@mintplayer/ui-core/ribbon';
|
|
6
|
+
export { RIBBON_LABELS, bandTextColor } from '@mintplayer/ui-core/ribbon';
|
|
4
7
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
5
8
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
this.layout = input('classic', /* @ts-ignore */
|
|
11
|
-
...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
|
|
12
|
-
this.minimized = model(false, /* @ts-ignore */
|
|
13
|
-
...(ngDevMode ? [{ debugName: "minimized" }] : /* istanbul ignore next */ []));
|
|
14
|
-
this.version = input('office-2016', /* @ts-ignore */
|
|
15
|
-
...(ngDevMode ? [{ debugName: "version" }] : /* istanbul ignore next */ []));
|
|
16
|
-
this.colorScheme = input('auto', /* @ts-ignore */
|
|
17
|
-
...(ngDevMode ? [{ debugName: "colorScheme" }] : /* istanbul ignore next */ []));
|
|
18
|
-
this.touchMode = input('auto', /* @ts-ignore */
|
|
19
|
-
...(ngDevMode ? [{ debugName: "touchMode" }] : /* istanbul ignore next */ []));
|
|
20
|
-
this.appAccent = input(null, /* @ts-ignore */
|
|
21
|
-
...(ngDevMode ? [{ debugName: "appAccent" }] : /* istanbul ignore next */ []));
|
|
22
|
-
/** Enable / disable Alt-key KeyTips overlay (FR-12). Default `on`. */
|
|
23
|
-
this.keyTips = input('on', /* @ts-ignore */
|
|
24
|
-
...(ngDevMode ? [{ debugName: "keyTips" }] : /* istanbul ignore next */ []));
|
|
25
|
-
this.tabChange = output();
|
|
26
|
-
this.ribbonRef = viewChild.required('ribbon', /* @ts-ignore */
|
|
27
|
-
...(ngDevMode ? [{ debugName: "ribbonRef" }] : /* istanbul ignore next */ []));
|
|
28
|
-
}
|
|
29
|
-
onTabChange(event) {
|
|
30
|
-
const detail = event.detail;
|
|
31
|
-
this.activeTabId.set(detail.activeTabId);
|
|
32
|
-
this.tabChange.emit(detail);
|
|
33
|
-
}
|
|
34
|
-
onMinimizeToggle(event) {
|
|
35
|
-
const detail = event.detail;
|
|
36
|
-
this.minimized.set(detail.minimized);
|
|
37
|
-
}
|
|
38
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
39
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsRibbonComponent, isStandalone: true, selector: "bs-ribbon", inputs: { layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, minimized: { classPropertyName: "minimized", publicName: "minimized", isSignal: true, isRequired: false, transformFunction: null }, version: { classPropertyName: "version", publicName: "version", isSignal: true, isRequired: false, transformFunction: null }, colorScheme: { classPropertyName: "colorScheme", publicName: "colorScheme", isSignal: true, isRequired: false, transformFunction: null }, touchMode: { classPropertyName: "touchMode", publicName: "touchMode", isSignal: true, isRequired: false, transformFunction: null }, appAccent: { classPropertyName: "appAccent", publicName: "appAccent", isSignal: true, isRequired: false, transformFunction: null }, keyTips: { classPropertyName: "keyTips", publicName: "keyTips", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { minimized: "minimizedChange", tabChange: "tabChange" }, viewQueries: [{ propertyName: "ribbonRef", first: true, predicate: ["ribbon"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
40
|
-
<mp-ribbon
|
|
41
|
-
#ribbon
|
|
42
|
-
class="bs-ribbon"
|
|
43
|
-
[attr.active-tab-id]="activeTabId()"
|
|
44
|
-
[attr.layout]="layout()"
|
|
45
|
-
[attr.minimized]="minimized() ? '' : null"
|
|
46
|
-
[attr.version]="version()"
|
|
47
|
-
[attr.color-scheme]="colorScheme()"
|
|
48
|
-
[attr.touch-mode]="touchMode()"
|
|
49
|
-
[attr.key-tips]="keyTips()"
|
|
50
|
-
[style.--bs-ribbon-app-accent]="appAccent()"
|
|
51
|
-
(tab-change)="onTabChange($event)"
|
|
52
|
-
(minimize-toggle)="onMinimizeToggle($event)"
|
|
53
|
-
>
|
|
54
|
-
<ng-content></ng-content>
|
|
55
|
-
</mp-ribbon>
|
|
56
|
-
`, isInline: true, styles: [":host{display:block}.bs-ribbon{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
57
|
-
}
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonComponent, decorators: [{
|
|
59
|
-
type: Component,
|
|
60
|
-
args: [{ selector: 'bs-ribbon', template: `
|
|
61
|
-
<mp-ribbon
|
|
62
|
-
#ribbon
|
|
63
|
-
class="bs-ribbon"
|
|
64
|
-
[attr.active-tab-id]="activeTabId()"
|
|
65
|
-
[attr.layout]="layout()"
|
|
66
|
-
[attr.minimized]="minimized() ? '' : null"
|
|
67
|
-
[attr.version]="version()"
|
|
68
|
-
[attr.color-scheme]="colorScheme()"
|
|
69
|
-
[attr.touch-mode]="touchMode()"
|
|
70
|
-
[attr.key-tips]="keyTips()"
|
|
71
|
-
[style.--bs-ribbon-app-accent]="appAccent()"
|
|
72
|
-
(tab-change)="onTabChange($event)"
|
|
73
|
-
(minimize-toggle)="onMinimizeToggle($event)"
|
|
74
|
-
>
|
|
75
|
-
<ng-content></ng-content>
|
|
76
|
-
</mp-ribbon>
|
|
77
|
-
`, schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}.bs-ribbon{display:block}\n"] }]
|
|
78
|
-
}], propDecorators: { layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], minimized: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimized", required: false }] }, { type: i0.Output, args: ["minimizedChange"] }], version: [{ type: i0.Input, args: [{ isSignal: true, alias: "version", required: false }] }], colorScheme: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorScheme", required: false }] }], touchMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "touchMode", required: false }] }], appAccent: [{ type: i0.Input, args: [{ isSignal: true, alias: "appAccent", required: false }] }], keyTips: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyTips", required: false }] }], tabChange: [{ type: i0.Output, args: ["tabChange"] }], ribbonRef: [{ type: i0.ViewChild, args: ['ribbon', { isSignal: true }] }] } });
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* `<bs-quick-access-toolbar>` — Angular wrapper for `<mp-quick-access-toolbar>`.
|
|
82
|
-
*
|
|
83
|
-
* Sibling to `<bs-ribbon>` — render above or below the ribbon in your app
|
|
84
|
-
* shell. Slot accepts the same item children as a ribbon group (most commonly
|
|
85
|
-
* `<bs-ribbon-button size="small">`).
|
|
86
|
-
*/
|
|
87
|
-
class BsQuickAccessToolbarComponent {
|
|
9
|
+
// GENERATED from the ribbon manifest (ribbon-contextual-tab-set) by @mintplayer/nx-component-compiler. Do not edit.
|
|
10
|
+
/** A run of tabs under a coloured band, shown only while `visible` (a selection-dependent tool set). */
|
|
11
|
+
class BsRibbonContextualTabSetComponent {
|
|
12
|
+
#core;
|
|
88
13
|
constructor() {
|
|
89
|
-
|
|
14
|
+
/** The host element. */
|
|
15
|
+
this.elementRef = inject(ElementRef);
|
|
16
|
+
this.label = input('', /* @ts-ignore */
|
|
90
17
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
91
|
-
this.
|
|
92
|
-
...(ngDevMode ? [{ debugName: "
|
|
93
|
-
this.
|
|
94
|
-
|
|
18
|
+
this.color = input('#F0AF84', /* @ts-ignore */
|
|
19
|
+
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
20
|
+
this.visible = input(true, { ...(ngDevMode ? { debugName: "visible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
21
|
+
/** This element's inputs, as a content query reads them around a queried child. */
|
|
22
|
+
this.contentInputs = computed(() => ({ label: this.label(), color: this.color(), visible: this.visible() }), /* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [{ debugName: "contentInputs" }] : /* istanbul ignore next */ []));
|
|
24
|
+
this.#core = useCore(ribbonContextualTabSetCore, { inputs: () => ({ label: this.label(), color: this.color(), visible: this.visible() }), idPrefix: 'bs-ribbon-contextual-tab-set', hostBag: (props) => ({ ...props.root, 'data-mps': 'ribbon' }) });
|
|
25
|
+
/** The template's props. */
|
|
26
|
+
this.props = this.#core.props;
|
|
27
|
+
useScopedStyles('ribbon', ribbonScopedStyles);
|
|
95
28
|
}
|
|
96
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
97
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type:
|
|
98
|
-
<mp-quick-access-toolbar
|
|
99
|
-
[attr.label]="label()"
|
|
100
|
-
[attr.touch-mode]="touchMode()"
|
|
101
|
-
[style.--bs-ribbon-app-accent]="appAccent()"
|
|
102
|
-
>
|
|
103
|
-
<ng-content></ng-content>
|
|
104
|
-
</mp-quick-access-toolbar>
|
|
105
|
-
`, isInline: true, styles: [":host{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
29
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonContextualTabSetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
30
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsRibbonContextualTabSetComponent, isStandalone: true, selector: "bs-ribbon-contextual-tab-set", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-contextual-tab-set.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
106
31
|
}
|
|
107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonContextualTabSetComponent, decorators: [{
|
|
108
33
|
type: Component,
|
|
109
|
-
args: [{ selector: 'bs-
|
|
110
|
-
|
|
111
|
-
[attr.label]="label()"
|
|
112
|
-
[attr.touch-mode]="touchMode()"
|
|
113
|
-
[style.--bs-ribbon-app-accent]="appAccent()"
|
|
114
|
-
>
|
|
115
|
-
<ng-content></ng-content>
|
|
116
|
-
</mp-quick-access-toolbar>
|
|
117
|
-
`, schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}\n"] }]
|
|
118
|
-
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], touchMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "touchMode", required: false }] }], appAccent: [{ type: i0.Input, args: [{ isSignal: true, alias: "appAccent", required: false }] }] } });
|
|
34
|
+
args: [{ selector: 'bs-ribbon-contextual-tab-set', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-contextual-tab-set.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
35
|
+
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }] } });
|
|
119
36
|
|
|
37
|
+
// GENERATED from the ribbon manifest (ribbon-tab) by @mintplayer/nx-component-compiler. Do not edit.
|
|
38
|
+
/** One tab of the ribbon: its label in the strip, its groups in its panel. */
|
|
120
39
|
class BsRibbonTabComponent {
|
|
40
|
+
#contentWithin;
|
|
41
|
+
#core;
|
|
121
42
|
constructor() {
|
|
43
|
+
/** The host element. */
|
|
44
|
+
this.elementRef = inject(ElementRef);
|
|
122
45
|
this.tabId = input('', /* @ts-ignore */
|
|
123
46
|
...(ngDevMode ? [{ debugName: "tabId" }] : /* istanbul ignore next */ []));
|
|
124
47
|
this.label = input('', /* @ts-ignore */
|
|
125
48
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
126
|
-
/**
|
|
127
|
-
this.idealSizes = input(
|
|
49
|
+
/** Starting size per group id. */
|
|
50
|
+
this.idealSizes = input(null, /* @ts-ignore */
|
|
128
51
|
...(ngDevMode ? [{ debugName: "idealSizes" }] : /* istanbul ignore next */ []));
|
|
129
|
-
/**
|
|
130
|
-
this.reduceOrder = input(
|
|
52
|
+
/** `[groupId, size]` steps walked as the width shrinks. */
|
|
53
|
+
this.reduceOrder = input(null, /* @ts-ignore */
|
|
131
54
|
...(ngDevMode ? [{ debugName: "reduceOrder" }] : /* istanbul ignore next */ []));
|
|
55
|
+
this.keyTip = input(null, /* @ts-ignore */
|
|
56
|
+
...(ngDevMode ? [{ debugName: "keyTip" }] : /* istanbul ignore next */ []));
|
|
57
|
+
this.#contentWithin = inject(BsRibbonContextualTabSetComponent, { optional: true });
|
|
58
|
+
/** What a parent's content query reads from this element. */
|
|
59
|
+
this.contentChild = computed(() => ({ inputs: ({ tabId: this.tabId(), label: this.label(), idealSizes: this.idealSizes(), reduceOrder: this.reduceOrder(), keyTip: this.keyTip() }), within: this.#contentWithin?.contentInputs() ?? null }), /* @ts-ignore */
|
|
60
|
+
...(ngDevMode ? [{ debugName: "contentChild" }] : /* istanbul ignore next */ []));
|
|
61
|
+
this.#core = useCore(ribbonTabCore, { inputs: () => ({ tabId: this.tabId(), label: this.label(), idealSizes: this.idealSizes(), reduceOrder: this.reduceOrder(), keyTip: this.keyTip() }), idPrefix: 'bs-ribbon-tab', hostBag: (props) => ({ ...props.view.panel, 'data-mps': 'ribbon' }) });
|
|
62
|
+
/** What this component hands its content. */
|
|
63
|
+
this.provided = this.#core.provided;
|
|
64
|
+
/** The template's props. */
|
|
65
|
+
this.props = this.#core.props;
|
|
66
|
+
useScopedStyles('ribbon', ribbonScopedStyles);
|
|
132
67
|
}
|
|
133
68
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
134
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
135
|
-
<mp-ribbon-tab
|
|
136
|
-
[attr.tab-id]="tabId()"
|
|
137
|
-
[attr.label]="label()"
|
|
138
|
-
[idealSizes]="idealSizes()"
|
|
139
|
-
[reduceOrder]="reduceOrder()"
|
|
140
|
-
>
|
|
141
|
-
<ng-content></ng-content>
|
|
142
|
-
</mp-ribbon-tab>
|
|
143
|
-
`, isInline: true, styles: [":host{display:contents}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
69
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsRibbonTabComponent, isStandalone: true, selector: "bs-ribbon-tab", inputs: { tabId: { classPropertyName: "tabId", publicName: "tabId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, idealSizes: { classPropertyName: "idealSizes", publicName: "idealSizes", isSignal: true, isRequired: false, transformFunction: null }, reduceOrder: { classPropertyName: "reduceOrder", publicName: "reduceOrder", isSignal: true, isRequired: false, transformFunction: null }, keyTip: { classPropertyName: "keyTip", publicName: "keyTip", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideCoreContext(RIBBON_CONTEXT, BsRibbonTabComponent)], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-tab.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.parts.groups\">\n <ng-content />\n</div>\n<button data-mps=\"ribbon\" [mpProps]=\"p_view.overflowTrigger\">\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.chevron\">\n \u00BB\n </span>\n</button>\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.overflowMenu\">\n @for (entry of p_view.overflowEntries; track entry.key) {\n <button data-mps=\"ribbon\" [mpProps]=\"entry.bag\">\n @if (entry.icon) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.overflowIcon\">\n {{ entry.icon }}\n </span>\n }\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.overflowLabel\">\n {{ entry.label }}\n </span>\n </button>\n }\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
144
70
|
}
|
|
145
71
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonTabComponent, decorators: [{
|
|
146
72
|
type: Component,
|
|
147
|
-
args: [{ selector: 'bs-ribbon-tab', template:
|
|
148
|
-
|
|
149
|
-
[attr.tab-id]="tabId()"
|
|
150
|
-
[attr.label]="label()"
|
|
151
|
-
[idealSizes]="idealSizes()"
|
|
152
|
-
[reduceOrder]="reduceOrder()"
|
|
153
|
-
>
|
|
154
|
-
<ng-content></ng-content>
|
|
155
|
-
</mp-ribbon-tab>
|
|
156
|
-
`, schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:contents}\n"] }]
|
|
157
|
-
}], propDecorators: { tabId: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], idealSizes: [{ type: i0.Input, args: [{ isSignal: true, alias: "idealSizes", required: false }] }], reduceOrder: [{ type: i0.Input, args: [{ isSignal: true, alias: "reduceOrder", required: false }] }] } });
|
|
73
|
+
args: [{ selector: 'bs-ribbon-tab', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, providers: [provideCoreContext(RIBBON_CONTEXT, BsRibbonTabComponent)], template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-tab.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.parts.groups\">\n <ng-content />\n</div>\n<button data-mps=\"ribbon\" [mpProps]=\"p_view.overflowTrigger\">\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.chevron\">\n \u00BB\n </span>\n</button>\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.overflowMenu\">\n @for (entry of p_view.overflowEntries; track entry.key) {\n <button data-mps=\"ribbon\" [mpProps]=\"entry.bag\">\n @if (entry.icon) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.overflowIcon\">\n {{ entry.icon }}\n </span>\n }\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.overflowLabel\">\n {{ entry.label }}\n </span>\n </button>\n }\n</div>\n" }]
|
|
74
|
+
}], ctorParameters: () => [], propDecorators: { tabId: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], idealSizes: [{ type: i0.Input, args: [{ isSignal: true, alias: "idealSizes", required: false }] }], reduceOrder: [{ type: i0.Input, args: [{ isSignal: true, alias: "reduceOrder", required: false }] }], keyTip: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyTip", required: false }] }] } });
|
|
158
75
|
|
|
159
|
-
|
|
76
|
+
// GENERATED from the ribbon manifest (ribbon) by @mintplayer/nx-component-compiler. Do not edit.
|
|
77
|
+
/** The `tellMe` slot of `<bs-ribbon>`: `<ng-template bsRibbonTellMe>` or `*bsRibbonTellMe`. */
|
|
78
|
+
class BsRibbonTellMeDirective {
|
|
160
79
|
constructor() {
|
|
161
|
-
this.
|
|
162
|
-
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
163
|
-
this.color = input('#F0AF84', /* @ts-ignore */
|
|
164
|
-
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
165
|
-
this.hidden = input(false, /* @ts-ignore */
|
|
166
|
-
...(ngDevMode ? [{ debugName: "hidden" }] : /* istanbul ignore next */ []));
|
|
80
|
+
this.templateRef = inject(TemplateRef);
|
|
167
81
|
}
|
|
168
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
169
|
-
static { this.ɵ
|
|
170
|
-
<mp-ribbon-contextual-tab-set
|
|
171
|
-
[attr.label]="label()"
|
|
172
|
-
[attr.color]="color()"
|
|
173
|
-
[attr.hidden]="hidden() ? '' : null"
|
|
174
|
-
>
|
|
175
|
-
<ng-content></ng-content>
|
|
176
|
-
</mp-ribbon-contextual-tab-set>
|
|
177
|
-
`, isInline: true, styles: [":host{display:contents}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
82
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonTellMeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
83
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsRibbonTellMeDirective, isStandalone: true, selector: "[bsRibbonTellMe]", ngImport: i0 }); }
|
|
178
84
|
}
|
|
179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonTellMeDirective, decorators: [{
|
|
86
|
+
type: Directive,
|
|
87
|
+
args: [{ selector: '[bsRibbonTellMe]' }]
|
|
88
|
+
}] });
|
|
89
|
+
/**
|
|
90
|
+
* An Office-style ribbon (#437): tabs of groups of commands, with contextual tab sets, KeyTips (Alt),
|
|
91
|
+
* minimize (double-click a tab, Ctrl+F1), and a reflow that collapses groups as the width shrinks.
|
|
92
|
+
* Declare `ribbon-tab`s (optionally in `ribbon-contextual-tab-set`s) as content. `activeTabId` and
|
|
93
|
+
* `minimized` are two-way. Strings come from `labels`.
|
|
94
|
+
*/
|
|
95
|
+
class BsRibbonComponent {
|
|
96
|
+
#core;
|
|
97
|
+
constructor() {
|
|
98
|
+
/** The host element. */
|
|
99
|
+
this.elementRef = inject(ElementRef);
|
|
100
|
+
this.activeTabId = model('', /* @ts-ignore */
|
|
101
|
+
...(ngDevMode ? [{ debugName: "activeTabId" }] : /* istanbul ignore next */ []));
|
|
102
|
+
/** `simplified`: one row of small items and an overflow menu. */
|
|
103
|
+
this.layout = input('classic', /* @ts-ignore */
|
|
104
|
+
...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
|
|
105
|
+
this.minimized = model(false, /* @ts-ignore */
|
|
106
|
+
...(ngDevMode ? [{ debugName: "minimized" }] : /* istanbul ignore next */ []));
|
|
107
|
+
this.version = input('office-2016', /* @ts-ignore */
|
|
108
|
+
...(ngDevMode ? [{ debugName: "version" }] : /* istanbul ignore next */ []));
|
|
109
|
+
this.colorScheme = input('auto', /* @ts-ignore */
|
|
110
|
+
...(ngDevMode ? [{ debugName: "colorScheme" }] : /* istanbul ignore next */ []));
|
|
111
|
+
this.touchMode = input('auto', /* @ts-ignore */
|
|
112
|
+
...(ngDevMode ? [{ debugName: "touchMode" }] : /* istanbul ignore next */ []));
|
|
113
|
+
/** `off` leaves Alt alone. */
|
|
114
|
+
this.keyTips = input('on', /* @ts-ignore */
|
|
115
|
+
...(ngDevMode ? [{ debugName: "keyTips" }] : /* istanbul ignore next */ []));
|
|
116
|
+
this.labels = input(null, /* @ts-ignore */
|
|
117
|
+
...(ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []));
|
|
118
|
+
/** The user selected a tab. */
|
|
119
|
+
this.activetabidchange = output();
|
|
120
|
+
/** The user minimized or restored the ribbon. */
|
|
121
|
+
this.minimizedchange = output();
|
|
122
|
+
/** The user selected a tab: the previous and the new id. */
|
|
123
|
+
this.tabchange = output();
|
|
124
|
+
this.tellMeSlot = contentChild(BsRibbonTellMeDirective, /* @ts-ignore */
|
|
125
|
+
...(ngDevMode ? [{ debugName: "tellMeSlot" }] : /* istanbul ignore next */ []));
|
|
126
|
+
/** The template's named slots. */
|
|
127
|
+
this.slots = computed(() => ({ tellMe: this.tellMeSlot()?.templateRef }), /* @ts-ignore */
|
|
128
|
+
...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
|
|
129
|
+
this.content_tabs = contentChildren(BsRibbonTabComponent, { ...(ngDevMode ? { debugName: "content_tabs" } : /* istanbul ignore next */ {}), descendants: true });
|
|
130
|
+
this.#core = useCore(ribbonCore, { inputs: () => ({ activeTabId: this.activeTabId(), layout: this.layout(), minimized: this.minimized(), version: this.version(), colorScheme: this.colorScheme(), touchMode: this.touchMode(), keyTips: this.keyTips(), labels: this.labels(), tabs: this.content_tabs().map((c) => c.contentChild()) }), idPrefix: 'bs-ribbon', outputs: { activeTabIdChange: this.activetabidchange, minimizedChange: this.minimizedchange, tabChange: this.tabchange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'ribbon' }), models: { activeTabId: this.activeTabId, minimized: this.minimized } });
|
|
131
|
+
/** What this component hands its content. */
|
|
132
|
+
this.provided = this.#core.provided;
|
|
133
|
+
/** The template's props. */
|
|
134
|
+
this.props = this.#core.props;
|
|
135
|
+
useScopedStyles('ribbon', ribbonScopedStyles);
|
|
136
|
+
}
|
|
137
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
138
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsRibbonComponent, isStandalone: true, selector: "bs-ribbon", inputs: { activeTabId: { classPropertyName: "activeTabId", publicName: "activeTabId", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, minimized: { classPropertyName: "minimized", publicName: "minimized", isSignal: true, isRequired: false, transformFunction: null }, version: { classPropertyName: "version", publicName: "version", isSignal: true, isRequired: false, transformFunction: null }, colorScheme: { classPropertyName: "colorScheme", publicName: "colorScheme", isSignal: true, isRequired: false, transformFunction: null }, touchMode: { classPropertyName: "touchMode", publicName: "touchMode", isSignal: true, isRequired: false, transformFunction: null }, keyTips: { classPropertyName: "keyTips", publicName: "keyTips", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeTabId: "activeTabIdChange", minimized: "minimizedChange", activetabidchange: "activetabidchange", minimizedchange: "minimizedchange", tabchange: "tabchange" }, providers: [provideCoreContext(RIBBON_CONTEXT, BsRibbonComponent)], queries: [{ propertyName: "tellMeSlot", first: true, predicate: BsRibbonTellMeDirective, descendants: true, isSignal: true }, { propertyName: "content_tabs", predicate: BsRibbonTabComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.parts.container\">\n <div data-mps=\"ribbon\" [mpProps]=\"p_view.parts.tabstrip\">\n <div data-mps=\"ribbon\" [mpProps]=\"p_view.tablist\">\n @for (run of p_view.runs; track run.key) {\n @if (run.contextual) {\n <div data-mps=\"ribbon\" [mpProps]=\"run.band\" [style]=\"run.bandStyle\">\n <div data-mps=\"ribbon\" [mpProps]=\"p_view.parts.bandLabel\">\n {{ run.label }}\n </div>\n <div data-mps=\"ribbon\" [mpProps]=\"p_view.parts.bandTabs\">\n @for (tab of run.tabs; track tab.key) {\n <button data-mps=\"ribbon\" [mpProps]=\"tab.bag\">\n {{ tab.label }}\n </button>\n }\n </div>\n </div>\n } @else {\n @for (tab of run.tabs; track tab.key) {\n <button data-mps=\"ribbon\" [mpProps]=\"tab.bag\">\n {{ tab.label }}\n </button>\n }\n }\n }\n </div>\n <div data-mps=\"ribbon\" [mpProps]=\"p_view.parts.tellMe\">\n @if (slots().tellMe; as slot_tellMe) {\n <ng-container [ngTemplateOutlet]=\"slot_tellMe\" />\n }\n </div>\n </div>\n <div data-mps=\"ribbon\" [mpProps]=\"p_view.content\">\n <ng-content />\n </div>\n</div>\n@for (tip of p_view.keyTips; track tip.key) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.keyTip\" [style]=\"tip.style\">\n {{ tip.tip }}\n </span>\n}\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\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 }); }
|
|
139
|
+
}
|
|
140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonComponent, decorators: [{
|
|
180
141
|
type: Component,
|
|
181
|
-
args: [{ selector: 'bs-ribbon-contextual-tab-
|
|
182
|
-
|
|
183
|
-
[attr.label]="label()"
|
|
184
|
-
[attr.color]="color()"
|
|
185
|
-
[attr.hidden]="hidden() ? '' : null"
|
|
186
|
-
>
|
|
187
|
-
<ng-content></ng-content>
|
|
188
|
-
</mp-ribbon-contextual-tab-set>
|
|
189
|
-
`, schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:contents}\n"] }]
|
|
190
|
-
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], hidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "hidden", required: false }] }] } });
|
|
142
|
+
args: [{ selector: 'bs-ribbon', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, providers: [provideCoreContext(RIBBON_CONTEXT, BsRibbonComponent)], template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.parts.container\">\n <div data-mps=\"ribbon\" [mpProps]=\"p_view.parts.tabstrip\">\n <div data-mps=\"ribbon\" [mpProps]=\"p_view.tablist\">\n @for (run of p_view.runs; track run.key) {\n @if (run.contextual) {\n <div data-mps=\"ribbon\" [mpProps]=\"run.band\" [style]=\"run.bandStyle\">\n <div data-mps=\"ribbon\" [mpProps]=\"p_view.parts.bandLabel\">\n {{ run.label }}\n </div>\n <div data-mps=\"ribbon\" [mpProps]=\"p_view.parts.bandTabs\">\n @for (tab of run.tabs; track tab.key) {\n <button data-mps=\"ribbon\" [mpProps]=\"tab.bag\">\n {{ tab.label }}\n </button>\n }\n </div>\n </div>\n } @else {\n @for (tab of run.tabs; track tab.key) {\n <button data-mps=\"ribbon\" [mpProps]=\"tab.bag\">\n {{ tab.label }}\n </button>\n }\n }\n }\n </div>\n <div data-mps=\"ribbon\" [mpProps]=\"p_view.parts.tellMe\">\n @if (slots().tellMe; as slot_tellMe) {\n <ng-container [ngTemplateOutlet]=\"slot_tellMe\" />\n }\n </div>\n </div>\n <div data-mps=\"ribbon\" [mpProps]=\"p_view.content\">\n <ng-content />\n </div>\n</div>\n@for (tip of p_view.keyTips; track tip.key) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.keyTip\" [style]=\"tip.style\">\n {{ tip.tip }}\n </span>\n}\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n" }]
|
|
143
|
+
}], ctorParameters: () => [], propDecorators: { activeTabId: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeTabId", required: false }] }, { type: i0.Output, args: ["activeTabIdChange"] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], minimized: [{ type: i0.Input, args: [{ isSignal: true, alias: "minimized", required: false }] }, { type: i0.Output, args: ["minimizedChange"] }], version: [{ type: i0.Input, args: [{ isSignal: true, alias: "version", required: false }] }], colorScheme: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorScheme", required: false }] }], touchMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "touchMode", required: false }] }], keyTips: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyTips", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], activetabidchange: [{ type: i0.Output, args: ["activetabidchange"] }], minimizedchange: [{ type: i0.Output, args: ["minimizedchange"] }], tabchange: [{ type: i0.Output, args: ["tabchange"] }], tellMeSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsRibbonTellMeDirective), { isSignal: true }] }], content_tabs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => BsRibbonTabComponent), { ...{ descendants: true }, isSignal: true }] }] } });
|
|
191
144
|
|
|
145
|
+
// GENERATED from the ribbon manifest (ribbon-group) by @mintplayer/nx-component-compiler. Do not edit.
|
|
146
|
+
/** A labelled toolbar of commands; collapsed to a popup behind a button when the tab runs out of width. */
|
|
192
147
|
class BsRibbonGroupComponent {
|
|
148
|
+
#core;
|
|
193
149
|
constructor() {
|
|
150
|
+
/** The host element. */
|
|
151
|
+
this.elementRef = inject(ElementRef);
|
|
194
152
|
this.groupId = input('', /* @ts-ignore */
|
|
195
153
|
...(ngDevMode ? [{ debugName: "groupId" }] : /* istanbul ignore next */ []));
|
|
196
154
|
this.label = input('', /* @ts-ignore */
|
|
197
155
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
198
156
|
this.icon = input('', /* @ts-ignore */
|
|
199
157
|
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
158
|
+
/** The dialog launcher's label; no launcher when empty. */
|
|
200
159
|
this.dialogLauncher = input('', /* @ts-ignore */
|
|
201
160
|
...(ngDevMode ? [{ debugName: "dialogLauncher" }] : /* istanbul ignore next */ []));
|
|
202
|
-
/** Higher
|
|
203
|
-
this.priority = input(0, /*
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
this.autoScale
|
|
211
|
-
|
|
212
|
-
this.
|
|
213
|
-
|
|
214
|
-
onDialogLauncherClick(event) {
|
|
215
|
-
this.dialogLauncherClick.emit(event.detail);
|
|
161
|
+
/** Higher collapses later. */
|
|
162
|
+
this.priority = input(0, { ...(ngDevMode ? { debugName: "priority" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
|
|
163
|
+
/** False keeps the group at its size. */
|
|
164
|
+
this.autoScale = input(true, { ...(ngDevMode ? { debugName: "autoScale" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
165
|
+
this.keyTip = input(null, /* @ts-ignore */
|
|
166
|
+
...(ngDevMode ? [{ debugName: "keyTip" }] : /* istanbul ignore next */ []));
|
|
167
|
+
/** The dialog launcher was activated. */
|
|
168
|
+
this.dialoglauncherclick = output();
|
|
169
|
+
this.#core = useCore(ribbonGroupCore, { inputs: () => ({ groupId: this.groupId(), label: this.label(), icon: this.icon(), dialogLauncher: this.dialogLauncher(), priority: this.priority(), autoScale: this.autoScale(), keyTip: this.keyTip() }), idPrefix: 'bs-ribbon-group', outputs: { dialogLauncherClick: this.dialoglauncherclick }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'ribbon' }) });
|
|
170
|
+
/** The template's props. */
|
|
171
|
+
this.props = this.#core.props;
|
|
172
|
+
useScopedStyles('ribbon', ribbonScopedStyles);
|
|
216
173
|
}
|
|
217
174
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
218
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
219
|
-
<mp-ribbon-group
|
|
220
|
-
[attr.group-id]="groupId()"
|
|
221
|
-
[attr.label]="label()"
|
|
222
|
-
[attr.icon]="icon()"
|
|
223
|
-
[attr.dialog-launcher]="dialogLauncher()"
|
|
224
|
-
[attr.priority]="priority()"
|
|
225
|
-
[attr.auto-scale]="autoScale() ? null : 'false'"
|
|
226
|
-
(dialog-launcher-click)="onDialogLauncherClick($event)"
|
|
227
|
-
>
|
|
228
|
-
<ng-content></ng-content>
|
|
229
|
-
</mp-ribbon-group>
|
|
230
|
-
`, isInline: true, styles: [":host{display:contents}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
175
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsRibbonGroupComponent, isStandalone: true, selector: "bs-ribbon-group", inputs: { groupId: { classPropertyName: "groupId", publicName: "groupId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, dialogLauncher: { classPropertyName: "dialogLauncher", publicName: "dialogLauncher", isSignal: true, isRequired: false, transformFunction: null }, priority: { classPropertyName: "priority", publicName: "priority", isSignal: true, isRequired: false, transformFunction: null }, autoScale: { classPropertyName: "autoScale", publicName: "autoScale", isSignal: true, isRequired: false, transformFunction: null }, keyTip: { classPropertyName: "keyTip", publicName: "keyTip", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dialoglauncherclick: "dialoglauncherclick" }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-group.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.body\">\n <div data-mps=\"ribbon\" [mpProps]=\"p_view.parts.groupItems\">\n <ng-content />\n </div>\n <div data-mps=\"ribbon\" [mpProps]=\"p_view.parts.groupFooter\">\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.groupLabel\">\n {{ p_view.label }}\n </span>\n @if (p_view.launcher) {\n <button data-mps=\"ribbon\" [mpProps]=\"p_view.launcher\">\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.launcherIcon\">\n \u2B18\n </span>\n </button>\n }\n </div>\n</div>\n<button data-mps=\"ribbon\" [mpProps]=\"p_view.trigger\">\n @if (p_view.icon) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.triggerIcon\">\n {{ p_view.icon }}\n </span>\n }\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.triggerLabel\">\n {{ p_view.label }}\n </span>\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.chevron\">\n \u25BC\n </span>\n</button>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
231
176
|
}
|
|
232
177
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonGroupComponent, decorators: [{
|
|
233
178
|
type: Component,
|
|
234
|
-
args: [{ selector: 'bs-ribbon-group', template:
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
179
|
+
args: [{ selector: 'bs-ribbon-group', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-group.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.body\">\n <div data-mps=\"ribbon\" [mpProps]=\"p_view.parts.groupItems\">\n <ng-content />\n </div>\n <div data-mps=\"ribbon\" [mpProps]=\"p_view.parts.groupFooter\">\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.groupLabel\">\n {{ p_view.label }}\n </span>\n @if (p_view.launcher) {\n <button data-mps=\"ribbon\" [mpProps]=\"p_view.launcher\">\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.launcherIcon\">\n \u2B18\n </span>\n </button>\n }\n </div>\n</div>\n<button data-mps=\"ribbon\" [mpProps]=\"p_view.trigger\">\n @if (p_view.icon) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.triggerIcon\">\n {{ p_view.icon }}\n </span>\n }\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.triggerLabel\">\n {{ p_view.label }}\n </span>\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.chevron\">\n \u25BC\n </span>\n</button>\n" }]
|
|
180
|
+
}], ctorParameters: () => [], propDecorators: { groupId: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], dialogLauncher: [{ type: i0.Input, args: [{ isSignal: true, alias: "dialogLauncher", required: false }] }], priority: [{ type: i0.Input, args: [{ isSignal: true, alias: "priority", required: false }] }], autoScale: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoScale", required: false }] }], keyTip: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyTip", required: false }] }], dialoglauncherclick: [{ type: i0.Output, args: ["dialoglauncherclick"] }] } });
|
|
181
|
+
|
|
182
|
+
// GENERATED from the ribbon manifest (quick-access-toolbar) by @mintplayer/nx-component-compiler. Do not edit.
|
|
183
|
+
/** A toolbar of frequent commands beside the ribbon; an `aria-label` names it. */
|
|
184
|
+
class BsQuickAccessToolbarComponent {
|
|
185
|
+
#core;
|
|
186
|
+
constructor() {
|
|
187
|
+
/** The host element. */
|
|
188
|
+
this.elementRef = inject(ElementRef);
|
|
189
|
+
this.touchMode = input('auto', /* @ts-ignore */
|
|
190
|
+
...(ngDevMode ? [{ debugName: "touchMode" }] : /* istanbul ignore next */ []));
|
|
191
|
+
this.#core = useCore(quickAccessToolbarCore, { inputs: () => ({ touchMode: this.touchMode() }), idPrefix: 'bs-quick-access-toolbar', hostBag: (props) => ({ ...props.root, 'data-mps': 'ribbon' }) });
|
|
192
|
+
/** The template's props. */
|
|
193
|
+
this.props = this.#core.props;
|
|
194
|
+
useScopedStyles('ribbon', ribbonScopedStyles);
|
|
195
|
+
}
|
|
196
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsQuickAccessToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
197
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsQuickAccessToolbarComponent, isStandalone: true, selector: "bs-quick-access-toolbar", inputs: { touchMode: { classPropertyName: "touchMode", publicName: "touchMode", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/quick-access-toolbar.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
198
|
+
}
|
|
199
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsQuickAccessToolbarComponent, decorators: [{
|
|
200
|
+
type: Component,
|
|
201
|
+
args: [{ selector: 'bs-quick-access-toolbar', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/quick-access-toolbar.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
202
|
+
}], ctorParameters: () => [], propDecorators: { touchMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "touchMode", required: false }] }] } });
|
|
248
203
|
|
|
204
|
+
// GENERATED from the ribbon manifest (ribbon-button) by @mintplayer/nx-component-compiler. Do not edit.
|
|
205
|
+
/** The `iconTemplate` slot of `<bs-ribbon-button>`: `<ng-template bsRibbonButtonIconTemplate>` or `*bsRibbonButtonIconTemplate`. */
|
|
206
|
+
class BsRibbonButtonIconTemplateDirective {
|
|
207
|
+
constructor() {
|
|
208
|
+
this.templateRef = inject(TemplateRef);
|
|
209
|
+
}
|
|
210
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonButtonIconTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
211
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsRibbonButtonIconTemplateDirective, isStandalone: true, selector: "[bsRibbonButtonIconTemplate]", ngImport: i0 }); }
|
|
212
|
+
}
|
|
213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonButtonIconTemplateDirective, decorators: [{
|
|
214
|
+
type: Directive,
|
|
215
|
+
args: [{ selector: '[bsRibbonButtonIconTemplate]' }]
|
|
216
|
+
}] });
|
|
217
|
+
/** A command button. */
|
|
249
218
|
class BsRibbonButtonComponent {
|
|
219
|
+
#core;
|
|
250
220
|
constructor() {
|
|
221
|
+
/** The host element. */
|
|
222
|
+
this.elementRef = inject(ElementRef);
|
|
251
223
|
this.itemId = input('', /* @ts-ignore */
|
|
252
224
|
...(ngDevMode ? [{ debugName: "itemId" }] : /* istanbul ignore next */ []));
|
|
253
225
|
this.label = input('', /* @ts-ignore */
|
|
254
226
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
227
|
+
/** Text or an emoji; the `icon` slot takes rich content instead. */
|
|
255
228
|
this.icon = input('', /* @ts-ignore */
|
|
256
229
|
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
230
|
+
/** The declared size; a group the reflow sized down renders it smaller. */
|
|
257
231
|
this.size = input('medium', /* @ts-ignore */
|
|
258
232
|
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
259
|
-
this.disabled = input(false, /*
|
|
260
|
-
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
233
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
261
234
|
this.tooltip = input('', /* @ts-ignore */
|
|
262
235
|
...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
236
|
+
/** The KeyTip letter(s); default: allocated from the label. */
|
|
237
|
+
this.keyTip = input(null, /* @ts-ignore */
|
|
238
|
+
...(ngDevMode ? [{ debugName: "keyTip" }] : /* istanbul ignore next */ []));
|
|
239
|
+
/** The button was activated. */
|
|
240
|
+
this.itemclick = output();
|
|
241
|
+
this.iconTemplateSlot = contentChild(BsRibbonButtonIconTemplateDirective, /* @ts-ignore */
|
|
242
|
+
...(ngDevMode ? [{ debugName: "iconTemplateSlot" }] : /* istanbul ignore next */ []));
|
|
243
|
+
/** The template's named slots. */
|
|
244
|
+
this.slots = computed(() => ({ iconTemplate: this.iconTemplateSlot()?.templateRef }), /* @ts-ignore */
|
|
245
|
+
...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
|
|
246
|
+
this.#core = useCore(ribbonButtonCore, { inputs: () => ({ itemId: this.itemId(), label: this.label(), icon: this.icon(), size: this.size(), disabled: this.disabled(), tooltip: this.tooltip(), keyTip: this.keyTip() }), idPrefix: 'bs-ribbon-button', outputs: { itemClick: this.itemclick }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'ribbon' }) });
|
|
247
|
+
/** The template's props. */
|
|
248
|
+
this.props = this.#core.props;
|
|
249
|
+
useScopedStyles('ribbon', ribbonScopedStyles);
|
|
267
250
|
}
|
|
268
251
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
269
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
270
|
-
<mp-ribbon-button
|
|
271
|
-
[attr.item-id]="itemId()"
|
|
272
|
-
[attr.label]="label()"
|
|
273
|
-
[attr.icon]="icon()"
|
|
274
|
-
[attr.size]="size()"
|
|
275
|
-
[attr.disabled]="disabled() ? '' : null"
|
|
276
|
-
[attr.tooltip]="tooltip()"
|
|
277
|
-
(item-click)="onItemClick($event)"
|
|
278
|
-
>
|
|
279
|
-
<ng-content></ng-content>
|
|
280
|
-
</mp-ribbon-button>
|
|
281
|
-
`, isInline: true, styles: [":host{display:inline-flex}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
252
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsRibbonButtonComponent, isStandalone: true, selector: "bs-ribbon-button", inputs: { itemId: { classPropertyName: "itemId", publicName: "itemId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, keyTip: { classPropertyName: "keyTip", publicName: "keyTip", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemclick: "itemclick" }, queries: [{ propertyName: "iconTemplateSlot", first: true, predicate: BsRibbonButtonIconTemplateDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-button.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"ribbon\" [mpProps]=\"p_view.control\">\n @if (p_view.icon || slots().iconTemplate) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.icon\">\n @if (slots().iconTemplate; as slot_iconTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_iconTemplate\" />\n } @else {\n {{ p_view.icon }}\n }\n </span>\n }\n @if (p_view.label) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.label\">\n {{ p_view.label }}\n </span>\n }\n</button>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
282
253
|
}
|
|
283
254
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonButtonComponent, decorators: [{
|
|
284
255
|
type: Component,
|
|
285
|
-
args: [{ selector: 'bs-ribbon-button', template:
|
|
286
|
-
|
|
287
|
-
[attr.item-id]="itemId()"
|
|
288
|
-
[attr.label]="label()"
|
|
289
|
-
[attr.icon]="icon()"
|
|
290
|
-
[attr.size]="size()"
|
|
291
|
-
[attr.disabled]="disabled() ? '' : null"
|
|
292
|
-
[attr.tooltip]="tooltip()"
|
|
293
|
-
(item-click)="onItemClick($event)"
|
|
294
|
-
>
|
|
295
|
-
<ng-content></ng-content>
|
|
296
|
-
</mp-ribbon-button>
|
|
297
|
-
`, host: {
|
|
298
|
-
'[attr.size]': 'size()',
|
|
299
|
-
'[attr.data-size]': 'size()',
|
|
300
|
-
}, schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-flex}\n"] }]
|
|
301
|
-
}], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }] } });
|
|
256
|
+
args: [{ selector: 'bs-ribbon-button', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-button.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"ribbon\" [mpProps]=\"p_view.control\">\n @if (p_view.icon || slots().iconTemplate) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.icon\">\n @if (slots().iconTemplate; as slot_iconTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_iconTemplate\" />\n } @else {\n {{ p_view.icon }}\n }\n </span>\n }\n @if (p_view.label) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.label\">\n {{ p_view.label }}\n </span>\n }\n</button>\n" }]
|
|
257
|
+
}], ctorParameters: () => [], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], keyTip: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyTip", required: false }] }], itemclick: [{ type: i0.Output, args: ["itemclick"] }], iconTemplateSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsRibbonButtonIconTemplateDirective), { isSignal: true }] }] } });
|
|
302
258
|
|
|
303
|
-
|
|
259
|
+
/**
|
|
260
|
+
* The `ControlValueAccessor` of a ribbon form item (a host directive of the
|
|
261
|
+
* generated component, see the `*.angular.ts` extensions). A bound form
|
|
262
|
+
* control drives the item through `viewValue`; what the user changes reaches
|
|
263
|
+
* the form through the component's two-way model, which a form write never
|
|
264
|
+
* touches.
|
|
265
|
+
*/
|
|
266
|
+
class BsRibbonModelAccessor {
|
|
304
267
|
constructor() {
|
|
305
|
-
this.
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
this.disabled = input(false, /* @ts-ignore */
|
|
268
|
+
this.injector = inject(Injector);
|
|
269
|
+
this.destroyRef = inject(DestroyRef);
|
|
270
|
+
/** A form control drives the item: its `viewValue` wins over the input. */
|
|
271
|
+
this.bound = signal(false, /* @ts-ignore */
|
|
272
|
+
...(ngDevMode ? [{ debugName: "bound" }] : /* istanbul ignore next */ []));
|
|
273
|
+
this.viewValue = signal(this.empty(), /* @ts-ignore */
|
|
274
|
+
...(ngDevMode ? [{ debugName: "viewValue" }] : /* istanbul ignore next */ []));
|
|
275
|
+
this.disabled = signal(false, /* @ts-ignore */
|
|
314
276
|
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
315
|
-
this.
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
277
|
+
this.onChange = () => undefined;
|
|
278
|
+
this.onTouched = () => undefined;
|
|
279
|
+
}
|
|
280
|
+
ngOnInit() {
|
|
281
|
+
// The component is created after its host directives, so it is looked up here.
|
|
282
|
+
const sub = this.model(this.injector).subscribe((next) => {
|
|
283
|
+
const value = next ?? this.empty();
|
|
284
|
+
if (!this.bound() || value === this.viewValue())
|
|
285
|
+
return;
|
|
286
|
+
this.viewValue.set(value);
|
|
287
|
+
this.onChange(value);
|
|
288
|
+
});
|
|
289
|
+
this.destroyRef.onDestroy(() => sub.unsubscribe());
|
|
290
|
+
}
|
|
291
|
+
registerOnChange(fn) {
|
|
292
|
+
this.bound.set(true);
|
|
293
|
+
this.onChange = fn;
|
|
319
294
|
}
|
|
320
|
-
|
|
321
|
-
this.
|
|
295
|
+
registerOnTouched(fn) {
|
|
296
|
+
this.onTouched = fn;
|
|
322
297
|
}
|
|
323
|
-
|
|
324
|
-
this.
|
|
298
|
+
writeValue(value) {
|
|
299
|
+
this.viewValue.set(value ?? this.empty());
|
|
325
300
|
}
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
[attr.icon]="icon()"
|
|
332
|
-
[attr.size]="size()"
|
|
333
|
-
[attr.disabled]="disabled() ? '' : null"
|
|
334
|
-
[attr.tooltip]="tooltip()"
|
|
335
|
-
(main-action)="onMainAction($event)"
|
|
336
|
-
(menu-toggle)="onMenuToggle($event)"
|
|
337
|
-
>
|
|
338
|
-
<ng-content></ng-content>
|
|
339
|
-
</mp-ribbon-split-button>
|
|
340
|
-
`, isInline: true, styles: [":host{display:inline-flex}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
301
|
+
setDisabledState(isDisabled) {
|
|
302
|
+
this.disabled.set(isDisabled);
|
|
303
|
+
}
|
|
304
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonModelAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
305
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsRibbonModelAccessor, isStandalone: true, ngImport: i0 }); }
|
|
341
306
|
}
|
|
342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
343
|
-
type:
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
[attr.icon]="icon()"
|
|
349
|
-
[attr.size]="size()"
|
|
350
|
-
[attr.disabled]="disabled() ? '' : null"
|
|
351
|
-
[attr.tooltip]="tooltip()"
|
|
352
|
-
(main-action)="onMainAction($event)"
|
|
353
|
-
(menu-toggle)="onMenuToggle($event)"
|
|
354
|
-
>
|
|
355
|
-
<ng-content></ng-content>
|
|
356
|
-
</mp-ribbon-split-button>
|
|
357
|
-
`, host: {
|
|
358
|
-
'[attr.size]': 'size()',
|
|
359
|
-
'[attr.data-size]': 'size()',
|
|
360
|
-
}, schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-flex}\n"] }]
|
|
361
|
-
}], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], mainAction: [{ type: i0.Output, args: ["mainAction"] }], menuToggle: [{ type: i0.Output, args: ["menuToggle"] }] } });
|
|
362
|
-
|
|
363
|
-
class BsRibbonDropdownButtonComponent {
|
|
364
|
-
constructor() {
|
|
365
|
-
this.itemId = input('', /* @ts-ignore */
|
|
366
|
-
...(ngDevMode ? [{ debugName: "itemId" }] : /* istanbul ignore next */ []));
|
|
367
|
-
this.label = input('', /* @ts-ignore */
|
|
368
|
-
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
369
|
-
this.icon = input('', /* @ts-ignore */
|
|
370
|
-
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
371
|
-
this.size = input('medium', /* @ts-ignore */
|
|
372
|
-
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
373
|
-
this.disabled = input(false, /* @ts-ignore */
|
|
374
|
-
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
375
|
-
this.tooltip = input('', /* @ts-ignore */
|
|
376
|
-
...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
|
|
377
|
-
this.menuToggle = output();
|
|
307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonModelAccessor, decorators: [{
|
|
308
|
+
type: Directive
|
|
309
|
+
}] });
|
|
310
|
+
class BsRibbonToggleButtonValueAccessor extends BsRibbonModelAccessor {
|
|
311
|
+
empty() {
|
|
312
|
+
return false;
|
|
378
313
|
}
|
|
379
|
-
|
|
380
|
-
|
|
314
|
+
model(injector) {
|
|
315
|
+
return injector.get(BsRibbonToggleButtonComponent).pressed;
|
|
381
316
|
}
|
|
382
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
383
|
-
static { this.ɵ
|
|
384
|
-
<mp-ribbon-dropdown-button
|
|
385
|
-
[attr.item-id]="itemId()"
|
|
386
|
-
[attr.label]="label()"
|
|
387
|
-
[attr.icon]="icon()"
|
|
388
|
-
[attr.size]="size()"
|
|
389
|
-
[attr.disabled]="disabled() ? '' : null"
|
|
390
|
-
[attr.tooltip]="tooltip()"
|
|
391
|
-
(menu-toggle)="onMenuToggle($event)"
|
|
392
|
-
>
|
|
393
|
-
<ng-content></ng-content>
|
|
394
|
-
</mp-ribbon-dropdown-button>
|
|
395
|
-
`, isInline: true, styles: [":host{display:inline-flex}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
317
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonToggleButtonValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
318
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsRibbonToggleButtonValueAccessor, isStandalone: true, host: { listeners: { "focusout": "onTouched()" } }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsRibbonToggleButtonValueAccessor), multi: true }], usesInheritance: true, ngImport: i0 }); }
|
|
396
319
|
}
|
|
397
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
398
|
-
type:
|
|
399
|
-
args: [{
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
(menu-toggle)="onMenuToggle($event)"
|
|
408
|
-
>
|
|
409
|
-
<ng-content></ng-content>
|
|
410
|
-
</mp-ribbon-dropdown-button>
|
|
411
|
-
`, host: {
|
|
412
|
-
'[attr.size]': 'size()',
|
|
413
|
-
'[attr.data-size]': 'size()',
|
|
414
|
-
}, schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-flex}\n"] }]
|
|
415
|
-
}], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], menuToggle: [{ type: i0.Output, args: ["menuToggle"] }] } });
|
|
416
|
-
|
|
417
|
-
class BsRibbonMenuItemComponent {
|
|
418
|
-
constructor() {
|
|
419
|
-
this.itemId = input('', /* @ts-ignore */
|
|
420
|
-
...(ngDevMode ? [{ debugName: "itemId" }] : /* istanbul ignore next */ []));
|
|
421
|
-
this.label = input('', /* @ts-ignore */
|
|
422
|
-
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
423
|
-
this.icon = input('', /* @ts-ignore */
|
|
424
|
-
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
425
|
-
this.kind = input('action', /* @ts-ignore */
|
|
426
|
-
...(ngDevMode ? [{ debugName: "kind" }] : /* istanbul ignore next */ []));
|
|
427
|
-
this.checked = input(false, /* @ts-ignore */
|
|
428
|
-
...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
|
|
429
|
-
this.disabled = input(false, /* @ts-ignore */
|
|
430
|
-
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
431
|
-
this.menuSelect = output();
|
|
320
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonToggleButtonValueAccessor, decorators: [{
|
|
321
|
+
type: Directive,
|
|
322
|
+
args: [{
|
|
323
|
+
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsRibbonToggleButtonValueAccessor), multi: true }],
|
|
324
|
+
host: { '(focusout)': 'onTouched()' },
|
|
325
|
+
}]
|
|
326
|
+
}] });
|
|
327
|
+
class BsRibbonCheckBoxValueAccessor extends BsRibbonModelAccessor {
|
|
328
|
+
empty() {
|
|
329
|
+
return false;
|
|
432
330
|
}
|
|
433
|
-
|
|
434
|
-
|
|
331
|
+
model(injector) {
|
|
332
|
+
return injector.get(BsRibbonCheckBoxComponent).checked;
|
|
435
333
|
}
|
|
436
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
437
|
-
static { this.ɵ
|
|
438
|
-
<mp-ribbon-menu-item
|
|
439
|
-
[attr.item-id]="itemId()"
|
|
440
|
-
[attr.label]="label()"
|
|
441
|
-
[attr.icon]="icon()"
|
|
442
|
-
[attr.kind]="kind()"
|
|
443
|
-
[attr.checked]="checked() ? '' : null"
|
|
444
|
-
[attr.disabled]="disabled() ? '' : null"
|
|
445
|
-
(menu-select)="onMenuSelect($event)"
|
|
446
|
-
>
|
|
447
|
-
<ng-content></ng-content>
|
|
448
|
-
</mp-ribbon-menu-item>
|
|
449
|
-
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
334
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonCheckBoxValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
335
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsRibbonCheckBoxValueAccessor, isStandalone: true, host: { listeners: { "focusout": "onTouched()" } }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsRibbonCheckBoxValueAccessor), multi: true }], usesInheritance: true, ngImport: i0 }); }
|
|
450
336
|
}
|
|
451
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
452
|
-
type:
|
|
337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonCheckBoxValueAccessor, decorators: [{
|
|
338
|
+
type: Directive,
|
|
453
339
|
args: [{
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
<mp-ribbon-menu-item
|
|
457
|
-
[attr.item-id]="itemId()"
|
|
458
|
-
[attr.label]="label()"
|
|
459
|
-
[attr.icon]="icon()"
|
|
460
|
-
[attr.kind]="kind()"
|
|
461
|
-
[attr.checked]="checked() ? '' : null"
|
|
462
|
-
[attr.disabled]="disabled() ? '' : null"
|
|
463
|
-
(menu-select)="onMenuSelect($event)"
|
|
464
|
-
>
|
|
465
|
-
<ng-content></ng-content>
|
|
466
|
-
</mp-ribbon-menu-item>
|
|
467
|
-
`,
|
|
468
|
-
host: {
|
|
469
|
-
'[attr.slot]': "'menu'",
|
|
470
|
-
},
|
|
471
|
-
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
472
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
340
|
+
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsRibbonCheckBoxValueAccessor), multi: true }],
|
|
341
|
+
host: { '(focusout)': 'onTouched()' },
|
|
473
342
|
}]
|
|
474
|
-
}]
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
343
|
+
}] });
|
|
344
|
+
class BsRibbonComboBoxValueAccessor extends BsRibbonModelAccessor {
|
|
345
|
+
empty() {
|
|
346
|
+
return '';
|
|
347
|
+
}
|
|
348
|
+
model(injector) {
|
|
349
|
+
return injector.get(BsRibbonComboBoxComponent).value;
|
|
350
|
+
}
|
|
351
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonComboBoxValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
352
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsRibbonComboBoxValueAccessor, isStandalone: true, host: { listeners: { "focusout": "onTouched()" } }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsRibbonComboBoxValueAccessor), multi: true }], usesInheritance: true, ngImport: i0 }); }
|
|
479
353
|
}
|
|
480
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
481
|
-
type:
|
|
354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonComboBoxValueAccessor, decorators: [{
|
|
355
|
+
type: Directive,
|
|
356
|
+
args: [{
|
|
357
|
+
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsRibbonComboBoxValueAccessor), multi: true }],
|
|
358
|
+
host: { '(focusout)': 'onTouched()' },
|
|
359
|
+
}]
|
|
360
|
+
}] });
|
|
361
|
+
class BsRibbonColorPickerValueAccessor extends BsRibbonModelAccessor {
|
|
362
|
+
empty() {
|
|
363
|
+
return '#000000';
|
|
364
|
+
}
|
|
365
|
+
model(injector) {
|
|
366
|
+
return injector.get(BsRibbonColorPickerComponent).color;
|
|
367
|
+
}
|
|
368
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonColorPickerValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
369
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsRibbonColorPickerValueAccessor, isStandalone: true, host: { listeners: { "focusout": "onTouched()" } }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsRibbonColorPickerValueAccessor), multi: true }], usesInheritance: true, ngImport: i0 }); }
|
|
370
|
+
}
|
|
371
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonColorPickerValueAccessor, decorators: [{
|
|
372
|
+
type: Directive,
|
|
373
|
+
args: [{
|
|
374
|
+
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsRibbonColorPickerValueAccessor), multi: true }],
|
|
375
|
+
host: { '(focusout)': 'onTouched()' },
|
|
376
|
+
}]
|
|
377
|
+
}] });
|
|
378
|
+
class BsRibbonGroupButtonValueAccessor extends BsRibbonModelAccessor {
|
|
379
|
+
empty() {
|
|
380
|
+
return '';
|
|
381
|
+
}
|
|
382
|
+
model(injector) {
|
|
383
|
+
return injector.get(BsRibbonGroupButtonComponent).selectedValue;
|
|
384
|
+
}
|
|
385
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonGroupButtonValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
386
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsRibbonGroupButtonValueAccessor, isStandalone: true, host: { listeners: { "focusout": "onTouched()" } }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsRibbonGroupButtonValueAccessor), multi: true }], usesInheritance: true, ngImport: i0 }); }
|
|
387
|
+
}
|
|
388
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonGroupButtonValueAccessor, decorators: [{
|
|
389
|
+
type: Directive,
|
|
482
390
|
args: [{
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
host: {
|
|
486
|
-
'[attr.slot]': "'menu'",
|
|
487
|
-
},
|
|
488
|
-
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
489
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
391
|
+
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsRibbonGroupButtonValueAccessor), multi: true }],
|
|
392
|
+
host: { '(focusout)': 'onTouched()' },
|
|
490
393
|
}]
|
|
491
394
|
}] });
|
|
492
395
|
|
|
396
|
+
/*
|
|
397
|
+
* The Angular extension of the generated bs-ribbon-toggle-button (PRD #437 D10 escape hatch):
|
|
398
|
+
* Angular forms. A bound form control drives pressed and the disabled state.
|
|
399
|
+
*/
|
|
400
|
+
const hostDirectives$4 = [BsRibbonToggleButtonValueAccessor];
|
|
401
|
+
function extendInputs$4(inputs) {
|
|
402
|
+
const accessor = inject(BsRibbonToggleButtonValueAccessor, { self: true });
|
|
403
|
+
return computed(() => {
|
|
404
|
+
const value = inputs();
|
|
405
|
+
return { ...value, pressed: accessor.bound() ? accessor.viewValue() : value.pressed, disabled: value.disabled || accessor.disabled() };
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
// GENERATED from the ribbon manifest (ribbon-toggle-button) by @mintplayer/nx-component-compiler. Do not edit.
|
|
410
|
+
/** The `iconTemplate` slot of `<bs-ribbon-toggle-button>`: `<ng-template bsRibbonToggleButtonIconTemplate>` or `*bsRibbonToggleButtonIconTemplate`. */
|
|
411
|
+
class BsRibbonToggleButtonIconTemplateDirective {
|
|
412
|
+
constructor() {
|
|
413
|
+
this.templateRef = inject(TemplateRef);
|
|
414
|
+
}
|
|
415
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonToggleButtonIconTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
416
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsRibbonToggleButtonIconTemplateDirective, isStandalone: true, selector: "[bsRibbonToggleButtonIconTemplate]", ngImport: i0 }); }
|
|
417
|
+
}
|
|
418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonToggleButtonIconTemplateDirective, decorators: [{
|
|
419
|
+
type: Directive,
|
|
420
|
+
args: [{ selector: '[bsRibbonToggleButtonIconTemplate]' }]
|
|
421
|
+
}] });
|
|
422
|
+
/** A button that stays pressed; `pressed` is two-way. */
|
|
493
423
|
class BsRibbonToggleButtonComponent {
|
|
424
|
+
#core;
|
|
494
425
|
constructor() {
|
|
426
|
+
/** The host element. */
|
|
427
|
+
this.elementRef = inject(ElementRef);
|
|
495
428
|
this.itemId = input('', /* @ts-ignore */
|
|
496
429
|
...(ngDevMode ? [{ debugName: "itemId" }] : /* istanbul ignore next */ []));
|
|
497
430
|
this.label = input('', /* @ts-ignore */
|
|
498
431
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
432
|
+
/** Text or an emoji; the `icon` slot takes rich content instead. */
|
|
499
433
|
this.icon = input('', /* @ts-ignore */
|
|
500
434
|
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
435
|
+
/** The declared size; a group the reflow sized down renders it smaller. */
|
|
501
436
|
this.size = input('medium', /* @ts-ignore */
|
|
502
437
|
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
438
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
503
439
|
this.tooltip = input('', /* @ts-ignore */
|
|
504
440
|
...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
|
|
505
|
-
|
|
441
|
+
/** The KeyTip letter(s); default: allocated from the label. */
|
|
442
|
+
this.keyTip = input(null, /* @ts-ignore */
|
|
443
|
+
...(ngDevMode ? [{ debugName: "keyTip" }] : /* istanbul ignore next */ []));
|
|
444
|
+
this.pressed = model(false, /* @ts-ignore */
|
|
506
445
|
...(ngDevMode ? [{ debugName: "pressed" }] : /* istanbul ignore next */ []));
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
this.
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
this.
|
|
517
|
-
|
|
518
|
-
this.pressedChange.emit(detail.pressed);
|
|
519
|
-
}
|
|
520
|
-
writeValue(value) {
|
|
521
|
-
this.pressed.set(!!value);
|
|
522
|
-
}
|
|
523
|
-
registerOnChange(fn) {
|
|
524
|
-
this.onChange = fn;
|
|
525
|
-
}
|
|
526
|
-
registerOnTouched(fn) {
|
|
527
|
-
this.onTouched = fn;
|
|
528
|
-
}
|
|
529
|
-
setDisabledState(isDisabled) {
|
|
530
|
-
this.disabledState.set(isDisabled);
|
|
446
|
+
/** The user pressed or released it. */
|
|
447
|
+
this.pressedchange = output();
|
|
448
|
+
this.iconTemplateSlot = contentChild(BsRibbonToggleButtonIconTemplateDirective, /* @ts-ignore */
|
|
449
|
+
...(ngDevMode ? [{ debugName: "iconTemplateSlot" }] : /* istanbul ignore next */ []));
|
|
450
|
+
/** The template's named slots. */
|
|
451
|
+
this.slots = computed(() => ({ iconTemplate: this.iconTemplateSlot()?.templateRef }), /* @ts-ignore */
|
|
452
|
+
...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
|
|
453
|
+
this.#core = useCore(ribbonToggleButtonCore, { inputs: extendInputs$4(() => ({ itemId: this.itemId(), label: this.label(), icon: this.icon(), size: this.size(), disabled: this.disabled(), tooltip: this.tooltip(), keyTip: this.keyTip(), pressed: this.pressed() })), idPrefix: 'bs-ribbon-toggle-button', outputs: { pressedChange: this.pressedchange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'ribbon' }), models: { pressed: this.pressed } });
|
|
454
|
+
/** The template's props. */
|
|
455
|
+
this.props = this.#core.props;
|
|
456
|
+
useScopedStyles('ribbon', ribbonScopedStyles);
|
|
531
457
|
}
|
|
532
458
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonToggleButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
533
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
534
|
-
{
|
|
535
|
-
provide: NG_VALUE_ACCESSOR,
|
|
536
|
-
useExisting: forwardRef(() => BsRibbonToggleButtonComponent),
|
|
537
|
-
multi: true,
|
|
538
|
-
},
|
|
539
|
-
], ngImport: i0, template: `
|
|
540
|
-
<mp-ribbon-toggle-button
|
|
541
|
-
[attr.item-id]="itemId()"
|
|
542
|
-
[attr.label]="label()"
|
|
543
|
-
[attr.icon]="icon()"
|
|
544
|
-
[attr.size]="size()"
|
|
545
|
-
[attr.disabled]="disabledState() ? '' : null"
|
|
546
|
-
[attr.tooltip]="tooltip()"
|
|
547
|
-
[attr.pressed]="pressed() ? '' : null"
|
|
548
|
-
(toggle)="onToggle($event)"
|
|
549
|
-
>
|
|
550
|
-
<ng-content></ng-content>
|
|
551
|
-
</mp-ribbon-toggle-button>
|
|
552
|
-
`, isInline: true, styles: [":host{display:inline-flex}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
459
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsRibbonToggleButtonComponent, isStandalone: true, selector: "bs-ribbon-toggle-button", inputs: { itemId: { classPropertyName: "itemId", publicName: "itemId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, keyTip: { classPropertyName: "keyTip", publicName: "keyTip", isSignal: true, isRequired: false, transformFunction: null }, pressed: { classPropertyName: "pressed", publicName: "pressed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pressed: "pressedChange", pressedchange: "pressedchange" }, queries: [{ propertyName: "iconTemplateSlot", first: true, predicate: BsRibbonToggleButtonIconTemplateDirective, descendants: true, isSignal: true }], hostDirectives: [{ directive: BsRibbonToggleButtonValueAccessor }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-toggle-button.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"ribbon\" [mpProps]=\"p_view.control\">\n @if (p_view.icon || slots().iconTemplate) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.icon\">\n @if (slots().iconTemplate; as slot_iconTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_iconTemplate\" />\n } @else {\n {{ p_view.icon }}\n }\n </span>\n }\n @if (p_view.label) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.label\">\n {{ p_view.label }}\n </span>\n }\n</button>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
553
460
|
}
|
|
554
461
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonToggleButtonComponent, decorators: [{
|
|
555
462
|
type: Component,
|
|
556
|
-
args: [{ selector: 'bs-ribbon-toggle-button', template:
|
|
557
|
-
|
|
558
|
-
[attr.item-id]="itemId()"
|
|
559
|
-
[attr.label]="label()"
|
|
560
|
-
[attr.icon]="icon()"
|
|
561
|
-
[attr.size]="size()"
|
|
562
|
-
[attr.disabled]="disabledState() ? '' : null"
|
|
563
|
-
[attr.tooltip]="tooltip()"
|
|
564
|
-
[attr.pressed]="pressed() ? '' : null"
|
|
565
|
-
(toggle)="onToggle($event)"
|
|
566
|
-
>
|
|
567
|
-
<ng-content></ng-content>
|
|
568
|
-
</mp-ribbon-toggle-button>
|
|
569
|
-
`, host: {
|
|
570
|
-
'[attr.size]': 'size()',
|
|
571
|
-
'[attr.data-size]': 'size()',
|
|
572
|
-
}, providers: [
|
|
573
|
-
{
|
|
574
|
-
provide: NG_VALUE_ACCESSOR,
|
|
575
|
-
useExisting: forwardRef(() => BsRibbonToggleButtonComponent),
|
|
576
|
-
multi: true,
|
|
577
|
-
},
|
|
578
|
-
], schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-flex}\n"] }]
|
|
579
|
-
}], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], pressedChange: [{ type: i0.Output, args: ["pressedChange"] }] } });
|
|
463
|
+
args: [{ selector: 'bs-ribbon-toggle-button', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives$4, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-toggle-button.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"ribbon\" [mpProps]=\"p_view.control\">\n @if (p_view.icon || slots().iconTemplate) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.icon\">\n @if (slots().iconTemplate; as slot_iconTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_iconTemplate\" />\n } @else {\n {{ p_view.icon }}\n }\n </span>\n }\n @if (p_view.label) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.label\">\n {{ p_view.label }}\n </span>\n }\n</button>\n" }]
|
|
464
|
+
}], ctorParameters: () => [], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], keyTip: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyTip", required: false }] }], pressed: [{ type: i0.Input, args: [{ isSignal: true, alias: "pressed", required: false }] }, { type: i0.Output, args: ["pressedChange"] }], pressedchange: [{ type: i0.Output, args: ["pressedchange"] }], iconTemplateSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsRibbonToggleButtonIconTemplateDirective), { isSignal: true }] }] } });
|
|
580
465
|
|
|
466
|
+
/*
|
|
467
|
+
* The Angular extension of the generated bs-ribbon-check-box (PRD #437 D10 escape hatch):
|
|
468
|
+
* Angular forms. A bound form control drives checked and the disabled state.
|
|
469
|
+
*/
|
|
470
|
+
const hostDirectives$3 = [BsRibbonCheckBoxValueAccessor];
|
|
471
|
+
function extendInputs$3(inputs) {
|
|
472
|
+
const accessor = inject(BsRibbonCheckBoxValueAccessor, { self: true });
|
|
473
|
+
return computed(() => {
|
|
474
|
+
const value = inputs();
|
|
475
|
+
return { ...value, checked: accessor.bound() ? accessor.viewValue() : value.checked, disabled: value.disabled || accessor.disabled() };
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
// GENERATED from the ribbon manifest (ribbon-check-box) by @mintplayer/nx-component-compiler. Do not edit.
|
|
480
|
+
/** A labelled checkbox; `checked` is two-way. */
|
|
581
481
|
class BsRibbonCheckBoxComponent {
|
|
482
|
+
#core;
|
|
582
483
|
constructor() {
|
|
484
|
+
/** The host element. */
|
|
485
|
+
this.elementRef = inject(ElementRef);
|
|
583
486
|
this.itemId = input('', /* @ts-ignore */
|
|
584
487
|
...(ngDevMode ? [{ debugName: "itemId" }] : /* istanbul ignore next */ []));
|
|
585
488
|
this.label = input('', /* @ts-ignore */
|
|
586
489
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
490
|
+
/** Text or an emoji; the `icon` slot takes rich content instead. */
|
|
491
|
+
this.icon = input('', /* @ts-ignore */
|
|
492
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
493
|
+
/** The declared size; a group the reflow sized down renders it smaller. */
|
|
587
494
|
this.size = input('medium', /* @ts-ignore */
|
|
588
495
|
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
496
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
589
497
|
this.tooltip = input('', /* @ts-ignore */
|
|
590
498
|
...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
|
|
591
|
-
|
|
499
|
+
/** The KeyTip letter(s); default: allocated from the label. */
|
|
500
|
+
this.keyTip = input(null, /* @ts-ignore */
|
|
501
|
+
...(ngDevMode ? [{ debugName: "keyTip" }] : /* istanbul ignore next */ []));
|
|
502
|
+
this.checked = model(false, /* @ts-ignore */
|
|
592
503
|
...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
this.checkedChange
|
|
596
|
-
|
|
597
|
-
this.
|
|
598
|
-
|
|
599
|
-
onCheckChange(event) {
|
|
600
|
-
const detail = event.detail;
|
|
601
|
-
this.checked.set(detail.checked);
|
|
602
|
-
this.onChange(detail.checked);
|
|
603
|
-
this.onTouched();
|
|
604
|
-
this.checkedChange.emit(detail.checked);
|
|
605
|
-
}
|
|
606
|
-
writeValue(value) {
|
|
607
|
-
this.checked.set(!!value);
|
|
608
|
-
}
|
|
609
|
-
registerOnChange(fn) {
|
|
610
|
-
this.onChange = fn;
|
|
611
|
-
}
|
|
612
|
-
registerOnTouched(fn) {
|
|
613
|
-
this.onTouched = fn;
|
|
614
|
-
}
|
|
615
|
-
setDisabledState(isDisabled) {
|
|
616
|
-
this.disabledState.set(isDisabled);
|
|
504
|
+
/** The user checked or cleared it. */
|
|
505
|
+
this.checkedchange = output();
|
|
506
|
+
this.#core = useCore(ribbonCheckBoxCore, { inputs: extendInputs$3(() => ({ itemId: this.itemId(), label: this.label(), icon: this.icon(), size: this.size(), disabled: this.disabled(), tooltip: this.tooltip(), keyTip: this.keyTip(), checked: this.checked() })), idPrefix: 'bs-ribbon-check-box', outputs: { checkedChange: this.checkedchange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'ribbon' }), models: { checked: this.checked } });
|
|
507
|
+
/** The template's props. */
|
|
508
|
+
this.props = this.#core.props;
|
|
509
|
+
useScopedStyles('ribbon', ribbonScopedStyles);
|
|
617
510
|
}
|
|
618
511
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonCheckBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
619
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
620
|
-
{
|
|
621
|
-
provide: NG_VALUE_ACCESSOR,
|
|
622
|
-
useExisting: forwardRef(() => BsRibbonCheckBoxComponent),
|
|
623
|
-
multi: true,
|
|
624
|
-
},
|
|
625
|
-
], ngImport: i0, template: `
|
|
626
|
-
<mp-ribbon-checkbox
|
|
627
|
-
[attr.item-id]="itemId()"
|
|
628
|
-
[attr.label]="label()"
|
|
629
|
-
[attr.size]="size()"
|
|
630
|
-
[attr.disabled]="disabledState() ? '' : null"
|
|
631
|
-
[attr.tooltip]="tooltip()"
|
|
632
|
-
[attr.checked]="checked() ? '' : null"
|
|
633
|
-
(check-change)="onCheckChange($event)"
|
|
634
|
-
></mp-ribbon-checkbox>
|
|
635
|
-
`, isInline: true, styles: [":host{display:inline-flex}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
512
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsRibbonCheckBoxComponent, isStandalone: true, selector: "bs-ribbon-check-box", inputs: { itemId: { classPropertyName: "itemId", publicName: "itemId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, keyTip: { classPropertyName: "keyTip", publicName: "keyTip", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", checkedchange: "checkedchange" }, hostDirectives: [{ directive: BsRibbonCheckBoxValueAccessor }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-check-box.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<label data-mps=\"ribbon\" [mpProps]=\"p_view.wrap\">\n <input data-mps=\"ribbon\" [mpProps]=\"p_view.control\" [checked]=\"p_view.checked\">\n @if (p_view.label) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.fieldLabel\">\n {{ p_view.label }}\n </span>\n }\n</label>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
636
513
|
}
|
|
637
514
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonCheckBoxComponent, decorators: [{
|
|
638
515
|
type: Component,
|
|
639
|
-
args: [{ selector: 'bs-ribbon-check-box', template:
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
provide: NG_VALUE_ACCESSOR,
|
|
655
|
-
useExisting: forwardRef(() => BsRibbonCheckBoxComponent),
|
|
656
|
-
multi: true,
|
|
657
|
-
},
|
|
658
|
-
], schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-flex}\n"] }]
|
|
659
|
-
}], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], checkedChange: [{ type: i0.Output, args: ["checkedChange"] }] } });
|
|
516
|
+
args: [{ selector: 'bs-ribbon-check-box', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives$3, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-check-box.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<label data-mps=\"ribbon\" [mpProps]=\"p_view.wrap\">\n <input data-mps=\"ribbon\" [mpProps]=\"p_view.control\" [checked]=\"p_view.checked\">\n @if (p_view.label) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.fieldLabel\">\n {{ p_view.label }}\n </span>\n }\n</label>\n" }]
|
|
517
|
+
}], ctorParameters: () => [], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], keyTip: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyTip", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], checkedchange: [{ type: i0.Output, args: ["checkedchange"] }] } });
|
|
518
|
+
|
|
519
|
+
/*
|
|
520
|
+
* The Angular extension of the generated bs-ribbon-combo-box (PRD #437 D10 escape hatch):
|
|
521
|
+
* Angular forms. A bound form control drives value and the disabled state.
|
|
522
|
+
*/
|
|
523
|
+
const hostDirectives$2 = [BsRibbonComboBoxValueAccessor];
|
|
524
|
+
function extendInputs$2(inputs) {
|
|
525
|
+
const accessor = inject(BsRibbonComboBoxValueAccessor, { self: true });
|
|
526
|
+
return computed(() => {
|
|
527
|
+
const value = inputs();
|
|
528
|
+
return { ...value, value: accessor.bound() ? accessor.viewValue() : value.value, disabled: value.disabled || accessor.disabled() };
|
|
529
|
+
});
|
|
530
|
+
}
|
|
660
531
|
|
|
532
|
+
// GENERATED from the ribbon manifest (ribbon-combo-box) by @mintplayer/nx-component-compiler. Do not edit.
|
|
533
|
+
/** A select of `options`; `value` is two-way. */
|
|
661
534
|
class BsRibbonComboBoxComponent {
|
|
535
|
+
#core;
|
|
662
536
|
constructor() {
|
|
537
|
+
/** The host element. */
|
|
538
|
+
this.elementRef = inject(ElementRef);
|
|
663
539
|
this.itemId = input('', /* @ts-ignore */
|
|
664
540
|
...(ngDevMode ? [{ debugName: "itemId" }] : /* istanbul ignore next */ []));
|
|
665
541
|
this.label = input('', /* @ts-ignore */
|
|
666
542
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
543
|
+
/** Text or an emoji; the `icon` slot takes rich content instead. */
|
|
544
|
+
this.icon = input('', /* @ts-ignore */
|
|
545
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
546
|
+
/** The declared size; a group the reflow sized down renders it smaller. */
|
|
667
547
|
this.size = input('medium', /* @ts-ignore */
|
|
668
548
|
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
549
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
669
550
|
this.tooltip = input('', /* @ts-ignore */
|
|
670
551
|
...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
|
|
552
|
+
/** The KeyTip letter(s); default: allocated from the label. */
|
|
553
|
+
this.keyTip = input(null, /* @ts-ignore */
|
|
554
|
+
...(ngDevMode ? [{ debugName: "keyTip" }] : /* istanbul ignore next */ []));
|
|
555
|
+
this.value = model('', /* @ts-ignore */
|
|
556
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
671
557
|
this.options = input([], /* @ts-ignore */
|
|
672
558
|
...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
this
|
|
676
|
-
|
|
677
|
-
this.
|
|
678
|
-
|
|
679
|
-
this.onTouched = () => { };
|
|
680
|
-
}
|
|
681
|
-
onValueChange(event) {
|
|
682
|
-
const detail = event.detail;
|
|
683
|
-
this.value.set(detail.value);
|
|
684
|
-
this.onChange(detail.value);
|
|
685
|
-
this.onTouched();
|
|
686
|
-
this.valueChange.emit(detail.value);
|
|
687
|
-
}
|
|
688
|
-
writeValue(value) {
|
|
689
|
-
this.value.set(value ?? '');
|
|
690
|
-
}
|
|
691
|
-
registerOnChange(fn) {
|
|
692
|
-
this.onChange = fn;
|
|
693
|
-
}
|
|
694
|
-
registerOnTouched(fn) {
|
|
695
|
-
this.onTouched = fn;
|
|
696
|
-
}
|
|
697
|
-
setDisabledState(isDisabled) {
|
|
698
|
-
this.disabledState.set(isDisabled);
|
|
559
|
+
/** The user picked an option. */
|
|
560
|
+
this.valuechange = output();
|
|
561
|
+
this.#core = useCore(ribbonComboBoxCore, { inputs: extendInputs$2(() => ({ itemId: this.itemId(), label: this.label(), icon: this.icon(), size: this.size(), disabled: this.disabled(), tooltip: this.tooltip(), keyTip: this.keyTip(), value: this.value(), options: this.options() })), idPrefix: 'bs-ribbon-combo-box', outputs: { valueChange: this.valuechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'ribbon' }), models: { value: this.value } });
|
|
562
|
+
/** The template's props. */
|
|
563
|
+
this.props = this.#core.props;
|
|
564
|
+
useScopedStyles('ribbon', ribbonScopedStyles);
|
|
699
565
|
}
|
|
700
566
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonComboBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
701
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
702
|
-
{
|
|
703
|
-
provide: NG_VALUE_ACCESSOR,
|
|
704
|
-
useExisting: forwardRef(() => BsRibbonComboBoxComponent),
|
|
705
|
-
multi: true,
|
|
706
|
-
},
|
|
707
|
-
], ngImport: i0, template: `
|
|
708
|
-
<mp-ribbon-combobox
|
|
709
|
-
[attr.item-id]="itemId()"
|
|
710
|
-
[attr.label]="label()"
|
|
711
|
-
[attr.size]="size()"
|
|
712
|
-
[attr.disabled]="disabledState() ? '' : null"
|
|
713
|
-
[attr.tooltip]="tooltip()"
|
|
714
|
-
[attr.value]="value()"
|
|
715
|
-
[options]="options()"
|
|
716
|
-
(value-change)="onValueChange($event)"
|
|
717
|
-
></mp-ribbon-combobox>
|
|
718
|
-
`, isInline: true, styles: [":host{display:inline-flex}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
567
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsRibbonComboBoxComponent, isStandalone: true, selector: "bs-ribbon-combo-box", inputs: { itemId: { classPropertyName: "itemId", publicName: "itemId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, keyTip: { classPropertyName: "keyTip", publicName: "keyTip", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", valuechange: "valuechange" }, hostDirectives: [{ directive: BsRibbonComboBoxValueAccessor }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-combo-box.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@let p_options = props().options;\n<select data-mps=\"ribbon\" [mpProps]=\"p_view.control\">\n @for (option of p_options; track option.key) {\n <option data-mps=\"ribbon\" [mpProps]=\"option.bag\">\n {{ option.label }}\n </option>\n }\n</select>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
719
568
|
}
|
|
720
569
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonComboBoxComponent, decorators: [{
|
|
721
570
|
type: Component,
|
|
722
|
-
args: [{ selector: 'bs-ribbon-combo-box', template:
|
|
723
|
-
|
|
724
|
-
[attr.item-id]="itemId()"
|
|
725
|
-
[attr.label]="label()"
|
|
726
|
-
[attr.size]="size()"
|
|
727
|
-
[attr.disabled]="disabledState() ? '' : null"
|
|
728
|
-
[attr.tooltip]="tooltip()"
|
|
729
|
-
[attr.value]="value()"
|
|
730
|
-
[options]="options()"
|
|
731
|
-
(value-change)="onValueChange($event)"
|
|
732
|
-
></mp-ribbon-combobox>
|
|
733
|
-
`, host: {
|
|
734
|
-
'[attr.size]': 'size()',
|
|
735
|
-
'[attr.data-size]': 'size()',
|
|
736
|
-
}, providers: [
|
|
737
|
-
{
|
|
738
|
-
provide: NG_VALUE_ACCESSOR,
|
|
739
|
-
useExisting: forwardRef(() => BsRibbonComboBoxComponent),
|
|
740
|
-
multi: true,
|
|
741
|
-
},
|
|
742
|
-
], schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-flex}\n"] }]
|
|
743
|
-
}], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
|
|
571
|
+
args: [{ selector: 'bs-ribbon-combo-box', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives$2, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-combo-box.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@let p_options = props().options;\n<select data-mps=\"ribbon\" [mpProps]=\"p_view.control\">\n @for (option of p_options; track option.key) {\n <option data-mps=\"ribbon\" [mpProps]=\"option.bag\">\n {{ option.label }}\n </option>\n }\n</select>\n" }]
|
|
572
|
+
}], ctorParameters: () => [], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], keyTip: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyTip", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], valuechange: [{ type: i0.Output, args: ["valuechange"] }] } });
|
|
744
573
|
|
|
574
|
+
/*
|
|
575
|
+
* The Angular extension of the generated bs-ribbon-color-picker (PRD #437 D10 escape hatch):
|
|
576
|
+
* Angular forms. A bound form control drives color and the disabled state.
|
|
577
|
+
*/
|
|
578
|
+
const hostDirectives$1 = [BsRibbonColorPickerValueAccessor];
|
|
579
|
+
function extendInputs$1(inputs) {
|
|
580
|
+
const accessor = inject(BsRibbonColorPickerValueAccessor, { self: true });
|
|
581
|
+
return computed(() => {
|
|
582
|
+
const value = inputs();
|
|
583
|
+
return { ...value, color: accessor.bound() ? accessor.viewValue() : value.color, disabled: value.disabled || accessor.disabled() };
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
// GENERATED from the ribbon manifest (ribbon-color-picker) by @mintplayer/nx-component-compiler. Do not edit.
|
|
588
|
+
/** A colour input; `color` is two-way. */
|
|
745
589
|
class BsRibbonColorPickerComponent {
|
|
590
|
+
#core;
|
|
746
591
|
constructor() {
|
|
592
|
+
/** The host element. */
|
|
593
|
+
this.elementRef = inject(ElementRef);
|
|
747
594
|
this.itemId = input('', /* @ts-ignore */
|
|
748
595
|
...(ngDevMode ? [{ debugName: "itemId" }] : /* istanbul ignore next */ []));
|
|
749
596
|
this.label = input('', /* @ts-ignore */
|
|
750
597
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
598
|
+
/** Text or an emoji; the `icon` slot takes rich content instead. */
|
|
599
|
+
this.icon = input('', /* @ts-ignore */
|
|
600
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
601
|
+
/** The declared size; a group the reflow sized down renders it smaller. */
|
|
751
602
|
this.size = input('medium', /* @ts-ignore */
|
|
752
603
|
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
604
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
753
605
|
this.tooltip = input('', /* @ts-ignore */
|
|
754
606
|
...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
|
|
755
|
-
|
|
607
|
+
/** The KeyTip letter(s); default: allocated from the label. */
|
|
608
|
+
this.keyTip = input(null, /* @ts-ignore */
|
|
609
|
+
...(ngDevMode ? [{ debugName: "keyTip" }] : /* istanbul ignore next */ []));
|
|
610
|
+
this.color = model('#000000', /* @ts-ignore */
|
|
756
611
|
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
this.colorChange
|
|
760
|
-
|
|
761
|
-
this.
|
|
762
|
-
|
|
763
|
-
onColorChange(event) {
|
|
764
|
-
const detail = event
|
|
765
|
-
.detail;
|
|
766
|
-
this.color.set(detail.color);
|
|
767
|
-
this.onChange(detail.color);
|
|
768
|
-
this.onTouched();
|
|
769
|
-
this.colorChange.emit(detail.color);
|
|
770
|
-
}
|
|
771
|
-
writeValue(value) {
|
|
772
|
-
this.color.set(value ?? '#000000');
|
|
773
|
-
}
|
|
774
|
-
registerOnChange(fn) {
|
|
775
|
-
this.onChange = fn;
|
|
776
|
-
}
|
|
777
|
-
registerOnTouched(fn) {
|
|
778
|
-
this.onTouched = fn;
|
|
779
|
-
}
|
|
780
|
-
setDisabledState(isDisabled) {
|
|
781
|
-
this.disabledState.set(isDisabled);
|
|
612
|
+
/** The user picked a colour. */
|
|
613
|
+
this.colorchange = output();
|
|
614
|
+
this.#core = useCore(ribbonColorPickerCore, { inputs: extendInputs$1(() => ({ itemId: this.itemId(), label: this.label(), icon: this.icon(), size: this.size(), disabled: this.disabled(), tooltip: this.tooltip(), keyTip: this.keyTip(), color: this.color() })), idPrefix: 'bs-ribbon-color-picker', outputs: { colorChange: this.colorchange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'ribbon' }), models: { color: this.color } });
|
|
615
|
+
/** The template's props. */
|
|
616
|
+
this.props = this.#core.props;
|
|
617
|
+
useScopedStyles('ribbon', ribbonScopedStyles);
|
|
782
618
|
}
|
|
783
619
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonColorPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
784
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
785
|
-
{
|
|
786
|
-
provide: NG_VALUE_ACCESSOR,
|
|
787
|
-
useExisting: forwardRef(() => BsRibbonColorPickerComponent),
|
|
788
|
-
multi: true,
|
|
789
|
-
},
|
|
790
|
-
], ngImport: i0, template: `
|
|
791
|
-
<mp-ribbon-color-picker
|
|
792
|
-
[attr.item-id]="itemId()"
|
|
793
|
-
[attr.label]="label()"
|
|
794
|
-
[attr.size]="size()"
|
|
795
|
-
[attr.disabled]="disabledState() ? '' : null"
|
|
796
|
-
[attr.tooltip]="tooltip()"
|
|
797
|
-
[attr.color]="color()"
|
|
798
|
-
(color-change)="onColorChange($event)"
|
|
799
|
-
></mp-ribbon-color-picker>
|
|
800
|
-
`, isInline: true, styles: [":host{display:inline-flex}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
620
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsRibbonColorPickerComponent, isStandalone: true, selector: "bs-ribbon-color-picker", inputs: { itemId: { classPropertyName: "itemId", publicName: "itemId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, keyTip: { classPropertyName: "keyTip", publicName: "keyTip", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { color: "colorChange", colorchange: "colorchange" }, hostDirectives: [{ directive: BsRibbonColorPickerValueAccessor }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-color-picker.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<label data-mps=\"ribbon\" [mpProps]=\"p_view.wrap\">\n <input data-mps=\"ribbon\" [mpProps]=\"p_view.control\" [value]=\"p_view.value\">\n @if (p_view.label) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.fieldLabel\">\n {{ p_view.label }}\n </span>\n }\n</label>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
801
621
|
}
|
|
802
622
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonColorPickerComponent, decorators: [{
|
|
803
623
|
type: Component,
|
|
804
|
-
args: [{ selector: 'bs-ribbon-color-picker', template:
|
|
805
|
-
|
|
806
|
-
[attr.item-id]="itemId()"
|
|
807
|
-
[attr.label]="label()"
|
|
808
|
-
[attr.size]="size()"
|
|
809
|
-
[attr.disabled]="disabledState() ? '' : null"
|
|
810
|
-
[attr.tooltip]="tooltip()"
|
|
811
|
-
[attr.color]="color()"
|
|
812
|
-
(color-change)="onColorChange($event)"
|
|
813
|
-
></mp-ribbon-color-picker>
|
|
814
|
-
`, host: {
|
|
815
|
-
'[attr.size]': 'size()',
|
|
816
|
-
'[attr.data-size]': 'size()',
|
|
817
|
-
}, providers: [
|
|
818
|
-
{
|
|
819
|
-
provide: NG_VALUE_ACCESSOR,
|
|
820
|
-
useExisting: forwardRef(() => BsRibbonColorPickerComponent),
|
|
821
|
-
multi: true,
|
|
822
|
-
},
|
|
823
|
-
], schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-flex}\n"] }]
|
|
824
|
-
}], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], colorChange: [{ type: i0.Output, args: ["colorChange"] }] } });
|
|
624
|
+
args: [{ selector: 'bs-ribbon-color-picker', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives$1, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-color-picker.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<label data-mps=\"ribbon\" [mpProps]=\"p_view.wrap\">\n <input data-mps=\"ribbon\" [mpProps]=\"p_view.control\" [value]=\"p_view.value\">\n @if (p_view.label) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.fieldLabel\">\n {{ p_view.label }}\n </span>\n }\n</label>\n" }]
|
|
625
|
+
}], ctorParameters: () => [], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], keyTip: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyTip", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }, { type: i0.Output, args: ["colorChange"] }], colorchange: [{ type: i0.Output, args: ["colorchange"] }] } });
|
|
825
626
|
|
|
627
|
+
/*
|
|
628
|
+
* The Angular extension of the generated bs-ribbon-group-button (PRD #437 D10 escape hatch):
|
|
629
|
+
* Angular forms. A bound form control drives selectedValue and the disabled state.
|
|
630
|
+
*/
|
|
631
|
+
const hostDirectives = [BsRibbonGroupButtonValueAccessor];
|
|
632
|
+
function extendInputs(inputs) {
|
|
633
|
+
const accessor = inject(BsRibbonGroupButtonValueAccessor, { self: true });
|
|
634
|
+
return computed(() => {
|
|
635
|
+
const value = inputs();
|
|
636
|
+
return { ...value, selectedValue: accessor.bound() ? accessor.viewValue() : value.selectedValue, disabled: value.disabled || accessor.disabled() };
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
// GENERATED from the ribbon manifest (ribbon-group-button) by @mintplayer/nx-component-compiler. Do not edit.
|
|
641
|
+
/** A radio group of `buttons`; `selectedValue` is two-way. */
|
|
826
642
|
class BsRibbonGroupButtonComponent {
|
|
643
|
+
#core;
|
|
827
644
|
constructor() {
|
|
645
|
+
/** The host element. */
|
|
646
|
+
this.elementRef = inject(ElementRef);
|
|
828
647
|
this.itemId = input('', /* @ts-ignore */
|
|
829
648
|
...(ngDevMode ? [{ debugName: "itemId" }] : /* istanbul ignore next */ []));
|
|
830
649
|
this.label = input('', /* @ts-ignore */
|
|
831
650
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
651
|
+
/** Text or an emoji; the `icon` slot takes rich content instead. */
|
|
652
|
+
this.icon = input('', /* @ts-ignore */
|
|
653
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
654
|
+
/** The declared size; a group the reflow sized down renders it smaller. */
|
|
832
655
|
this.size = input('medium', /* @ts-ignore */
|
|
833
656
|
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
657
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
834
658
|
this.tooltip = input('', /* @ts-ignore */
|
|
835
659
|
...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
|
|
660
|
+
/** The KeyTip letter(s); default: allocated from the label. */
|
|
661
|
+
this.keyTip = input(null, /* @ts-ignore */
|
|
662
|
+
...(ngDevMode ? [{ debugName: "keyTip" }] : /* istanbul ignore next */ []));
|
|
663
|
+
this.selectedValue = model('', /* @ts-ignore */
|
|
664
|
+
...(ngDevMode ? [{ debugName: "selectedValue" }] : /* istanbul ignore next */ []));
|
|
836
665
|
this.buttons = input([], /* @ts-ignore */
|
|
837
666
|
...(ngDevMode ? [{ debugName: "buttons" }] : /* istanbul ignore next */ []));
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
this
|
|
841
|
-
|
|
842
|
-
this.
|
|
843
|
-
|
|
844
|
-
this.onTouched = () => { };
|
|
667
|
+
/** The user picked a button. */
|
|
668
|
+
this.selectedvaluechange = output();
|
|
669
|
+
this.#core = useCore(ribbonGroupButtonCore, { inputs: extendInputs(() => ({ itemId: this.itemId(), label: this.label(), icon: this.icon(), size: this.size(), disabled: this.disabled(), tooltip: this.tooltip(), keyTip: this.keyTip(), selectedValue: this.selectedValue(), buttons: this.buttons() })), idPrefix: 'bs-ribbon-group-button', outputs: { selectedValueChange: this.selectedvaluechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'ribbon' }), models: { selectedValue: this.selectedValue } });
|
|
670
|
+
/** The template's props. */
|
|
671
|
+
this.props = this.#core.props;
|
|
672
|
+
useScopedStyles('ribbon', ribbonScopedStyles);
|
|
845
673
|
}
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
674
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonGroupButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
675
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsRibbonGroupButtonComponent, isStandalone: true, selector: "bs-ribbon-group-button", inputs: { itemId: { classPropertyName: "itemId", publicName: "itemId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, keyTip: { classPropertyName: "keyTip", publicName: "keyTip", isSignal: true, isRequired: false, transformFunction: null }, selectedValue: { classPropertyName: "selectedValue", publicName: "selectedValue", isSignal: true, isRequired: false, transformFunction: null }, buttons: { classPropertyName: "buttons", publicName: "buttons", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedValue: "selectedValueChange", selectedvaluechange: "selectedvaluechange" }, hostDirectives: [{ directive: BsRibbonGroupButtonValueAccessor }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-group-button.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@let p_radios = props().radios;\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.control\">\n @for (radio of p_radios; track radio.key) {\n <button data-mps=\"ribbon\" [mpProps]=\"radio.bag\">\n @if (radio.icon) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.radioIcon\">\n {{ radio.icon }}\n </span>\n }\n @if (radio.label) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.radioLabel\">\n {{ radio.label }}\n </span>\n }\n </button>\n }\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
676
|
+
}
|
|
677
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonGroupButtonComponent, decorators: [{
|
|
678
|
+
type: Component,
|
|
679
|
+
args: [{ selector: 'bs-ribbon-group-button', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-group-button.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@let p_radios = props().radios;\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.control\">\n @for (radio of p_radios; track radio.key) {\n <button data-mps=\"ribbon\" [mpProps]=\"radio.bag\">\n @if (radio.icon) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.radioIcon\">\n {{ radio.icon }}\n </span>\n }\n @if (radio.label) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.radioLabel\">\n {{ radio.label }}\n </span>\n }\n </button>\n }\n</div>\n" }]
|
|
680
|
+
}], ctorParameters: () => [], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], keyTip: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyTip", required: false }] }], selectedValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedValue", required: false }] }, { type: i0.Output, args: ["selectedValueChange"] }], buttons: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttons", required: false }] }], selectedvaluechange: [{ type: i0.Output, args: ["selectedvaluechange"] }] } });
|
|
681
|
+
|
|
682
|
+
// GENERATED from the ribbon manifest (ribbon-split-button) by @mintplayer/nx-component-compiler. Do not edit.
|
|
683
|
+
/** The `iconTemplate` slot of `<bs-ribbon-split-button>`: `<ng-template bsRibbonSplitButtonIconTemplate>` or `*bsRibbonSplitButtonIconTemplate`. */
|
|
684
|
+
class BsRibbonSplitButtonIconTemplateDirective {
|
|
685
|
+
constructor() {
|
|
686
|
+
this.templateRef = inject(TemplateRef);
|
|
853
687
|
}
|
|
854
|
-
|
|
855
|
-
|
|
688
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonSplitButtonIconTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
689
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsRibbonSplitButtonIconTemplateDirective, isStandalone: true, selector: "[bsRibbonSplitButtonIconTemplate]", ngImport: i0 }); }
|
|
690
|
+
}
|
|
691
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonSplitButtonIconTemplateDirective, decorators: [{
|
|
692
|
+
type: Directive,
|
|
693
|
+
args: [{ selector: '[bsRibbonSplitButtonIconTemplate]' }]
|
|
694
|
+
}] });
|
|
695
|
+
/** A command button with a menu (its content) behind a chevron. */
|
|
696
|
+
class BsRibbonSplitButtonComponent {
|
|
697
|
+
#core;
|
|
698
|
+
constructor() {
|
|
699
|
+
/** The host element. */
|
|
700
|
+
this.elementRef = inject(ElementRef);
|
|
701
|
+
this.itemId = input('', /* @ts-ignore */
|
|
702
|
+
...(ngDevMode ? [{ debugName: "itemId" }] : /* istanbul ignore next */ []));
|
|
703
|
+
this.label = input('', /* @ts-ignore */
|
|
704
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
705
|
+
/** Text or an emoji; the `icon` slot takes rich content instead. */
|
|
706
|
+
this.icon = input('', /* @ts-ignore */
|
|
707
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
708
|
+
/** The declared size; a group the reflow sized down renders it smaller. */
|
|
709
|
+
this.size = input('medium', /* @ts-ignore */
|
|
710
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
711
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
712
|
+
this.tooltip = input('', /* @ts-ignore */
|
|
713
|
+
...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
|
|
714
|
+
/** The KeyTip letter(s); default: allocated from the label. */
|
|
715
|
+
this.keyTip = input(null, /* @ts-ignore */
|
|
716
|
+
...(ngDevMode ? [{ debugName: "keyTip" }] : /* istanbul ignore next */ []));
|
|
717
|
+
/** The main part was activated. */
|
|
718
|
+
this.mainaction = output();
|
|
719
|
+
/** The main part was activated. */
|
|
720
|
+
this.itemclick = output();
|
|
721
|
+
/** The menu opened or closed. */
|
|
722
|
+
this.menutoggle = output();
|
|
723
|
+
this.iconTemplateSlot = contentChild(BsRibbonSplitButtonIconTemplateDirective, /* @ts-ignore */
|
|
724
|
+
...(ngDevMode ? [{ debugName: "iconTemplateSlot" }] : /* istanbul ignore next */ []));
|
|
725
|
+
/** The template's named slots. */
|
|
726
|
+
this.slots = computed(() => ({ iconTemplate: this.iconTemplateSlot()?.templateRef }), /* @ts-ignore */
|
|
727
|
+
...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
|
|
728
|
+
this.#core = useCore(ribbonSplitButtonCore, { inputs: () => ({ itemId: this.itemId(), label: this.label(), icon: this.icon(), size: this.size(), disabled: this.disabled(), tooltip: this.tooltip(), keyTip: this.keyTip() }), idPrefix: 'bs-ribbon-split-button', outputs: { mainAction: this.mainaction, itemClick: this.itemclick, menuToggle: this.menutoggle }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'ribbon' }) });
|
|
729
|
+
/** The template's props. */
|
|
730
|
+
this.props = this.#core.props;
|
|
731
|
+
useScopedStyles('ribbon', ribbonScopedStyles);
|
|
856
732
|
}
|
|
857
|
-
|
|
858
|
-
|
|
733
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonSplitButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
734
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsRibbonSplitButtonComponent, isStandalone: true, selector: "bs-ribbon-split-button", inputs: { itemId: { classPropertyName: "itemId", publicName: "itemId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, keyTip: { classPropertyName: "keyTip", publicName: "keyTip", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { mainaction: "mainaction", itemclick: "itemclick", menutoggle: "menutoggle" }, queries: [{ propertyName: "iconTemplateSlot", first: true, predicate: BsRibbonSplitButtonIconTemplateDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-split-button.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.group\">\n <button data-mps=\"ribbon\" [mpProps]=\"p_view.control\">\n @if (p_view.icon || slots().iconTemplate) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.icon\">\n @if (slots().iconTemplate; as slot_iconTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_iconTemplate\" />\n } @else {\n {{ p_view.icon }}\n }\n </span>\n }\n @if (p_view.label) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.label\">\n {{ p_view.label }}\n </span>\n }\n </button>\n <button data-mps=\"ribbon\" [mpProps]=\"p_view.toggle\">\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.chevron\">\n \u25BC\n </span>\n </button>\n</div>\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.menu\">\n <ng-content />\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 }); }
|
|
735
|
+
}
|
|
736
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonSplitButtonComponent, decorators: [{
|
|
737
|
+
type: Component,
|
|
738
|
+
args: [{ selector: 'bs-ribbon-split-button', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-split-button.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.group\">\n <button data-mps=\"ribbon\" [mpProps]=\"p_view.control\">\n @if (p_view.icon || slots().iconTemplate) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.icon\">\n @if (slots().iconTemplate; as slot_iconTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_iconTemplate\" />\n } @else {\n {{ p_view.icon }}\n }\n </span>\n }\n @if (p_view.label) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.label\">\n {{ p_view.label }}\n </span>\n }\n </button>\n <button data-mps=\"ribbon\" [mpProps]=\"p_view.toggle\">\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.chevron\">\n \u25BC\n </span>\n </button>\n</div>\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.menu\">\n <ng-content />\n</div>\n" }]
|
|
739
|
+
}], ctorParameters: () => [], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], keyTip: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyTip", required: false }] }], mainaction: [{ type: i0.Output, args: ["mainaction"] }], itemclick: [{ type: i0.Output, args: ["itemclick"] }], menutoggle: [{ type: i0.Output, args: ["menutoggle"] }], iconTemplateSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsRibbonSplitButtonIconTemplateDirective), { isSignal: true }] }] } });
|
|
740
|
+
|
|
741
|
+
// GENERATED from the ribbon manifest (ribbon-dropdown-button) by @mintplayer/nx-component-compiler. Do not edit.
|
|
742
|
+
/** The `iconTemplate` slot of `<bs-ribbon-dropdown-button>`: `<ng-template bsRibbonDropdownButtonIconTemplate>` or `*bsRibbonDropdownButtonIconTemplate`. */
|
|
743
|
+
class BsRibbonDropdownButtonIconTemplateDirective {
|
|
744
|
+
constructor() {
|
|
745
|
+
this.templateRef = inject(TemplateRef);
|
|
859
746
|
}
|
|
860
|
-
|
|
861
|
-
|
|
747
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonDropdownButtonIconTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
748
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsRibbonDropdownButtonIconTemplateDirective, isStandalone: true, selector: "[bsRibbonDropdownButtonIconTemplate]", ngImport: i0 }); }
|
|
749
|
+
}
|
|
750
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonDropdownButtonIconTemplateDirective, decorators: [{
|
|
751
|
+
type: Directive,
|
|
752
|
+
args: [{ selector: '[bsRibbonDropdownButtonIconTemplate]' }]
|
|
753
|
+
}] });
|
|
754
|
+
/** A button that opens a menu (its content). */
|
|
755
|
+
class BsRibbonDropdownButtonComponent {
|
|
756
|
+
#core;
|
|
757
|
+
constructor() {
|
|
758
|
+
/** The host element. */
|
|
759
|
+
this.elementRef = inject(ElementRef);
|
|
760
|
+
this.itemId = input('', /* @ts-ignore */
|
|
761
|
+
...(ngDevMode ? [{ debugName: "itemId" }] : /* istanbul ignore next */ []));
|
|
762
|
+
this.label = input('', /* @ts-ignore */
|
|
763
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
764
|
+
/** Text or an emoji; the `icon` slot takes rich content instead. */
|
|
765
|
+
this.icon = input('', /* @ts-ignore */
|
|
766
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
767
|
+
/** The declared size; a group the reflow sized down renders it smaller. */
|
|
768
|
+
this.size = input('medium', /* @ts-ignore */
|
|
769
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
770
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
771
|
+
this.tooltip = input('', /* @ts-ignore */
|
|
772
|
+
...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
|
|
773
|
+
/** The KeyTip letter(s); default: allocated from the label. */
|
|
774
|
+
this.keyTip = input(null, /* @ts-ignore */
|
|
775
|
+
...(ngDevMode ? [{ debugName: "keyTip" }] : /* istanbul ignore next */ []));
|
|
776
|
+
/** The menu opened or closed. */
|
|
777
|
+
this.menutoggle = output();
|
|
778
|
+
this.iconTemplateSlot = contentChild(BsRibbonDropdownButtonIconTemplateDirective, /* @ts-ignore */
|
|
779
|
+
...(ngDevMode ? [{ debugName: "iconTemplateSlot" }] : /* istanbul ignore next */ []));
|
|
780
|
+
/** The template's named slots. */
|
|
781
|
+
this.slots = computed(() => ({ iconTemplate: this.iconTemplateSlot()?.templateRef }), /* @ts-ignore */
|
|
782
|
+
...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
|
|
783
|
+
this.#core = useCore(ribbonDropdownButtonCore, { inputs: () => ({ itemId: this.itemId(), label: this.label(), icon: this.icon(), size: this.size(), disabled: this.disabled(), tooltip: this.tooltip(), keyTip: this.keyTip() }), idPrefix: 'bs-ribbon-dropdown-button', outputs: { menuToggle: this.menutoggle }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'ribbon' }) });
|
|
784
|
+
/** The template's props. */
|
|
785
|
+
this.props = this.#core.props;
|
|
786
|
+
useScopedStyles('ribbon', ribbonScopedStyles);
|
|
862
787
|
}
|
|
863
|
-
|
|
864
|
-
|
|
788
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonDropdownButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
789
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsRibbonDropdownButtonComponent, isStandalone: true, selector: "bs-ribbon-dropdown-button", inputs: { itemId: { classPropertyName: "itemId", publicName: "itemId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, keyTip: { classPropertyName: "keyTip", publicName: "keyTip", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { menutoggle: "menutoggle" }, queries: [{ propertyName: "iconTemplateSlot", first: true, predicate: BsRibbonDropdownButtonIconTemplateDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-dropdown-button.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"ribbon\" [mpProps]=\"p_view.control\">\n @if (p_view.icon || slots().iconTemplate) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.icon\">\n @if (slots().iconTemplate; as slot_iconTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_iconTemplate\" />\n } @else {\n {{ p_view.icon }}\n }\n </span>\n }\n @if (p_view.label) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.label\">\n {{ p_view.label }}\n </span>\n }\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.chevron\">\n \u25BC\n </span>\n</button>\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.menu\">\n <ng-content />\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 }); }
|
|
790
|
+
}
|
|
791
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonDropdownButtonComponent, decorators: [{
|
|
792
|
+
type: Component,
|
|
793
|
+
args: [{ selector: 'bs-ribbon-dropdown-button', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-dropdown-button.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"ribbon\" [mpProps]=\"p_view.control\">\n @if (p_view.icon || slots().iconTemplate) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.icon\">\n @if (slots().iconTemplate; as slot_iconTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_iconTemplate\" />\n } @else {\n {{ p_view.icon }}\n }\n </span>\n }\n @if (p_view.label) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.label\">\n {{ p_view.label }}\n </span>\n }\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.chevron\">\n \u25BC\n </span>\n</button>\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.menu\">\n <ng-content />\n</div>\n" }]
|
|
794
|
+
}], ctorParameters: () => [], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], keyTip: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyTip", required: false }] }], menutoggle: [{ type: i0.Output, args: ["menutoggle"] }], iconTemplateSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsRibbonDropdownButtonIconTemplateDirective), { isSignal: true }] }] } });
|
|
795
|
+
|
|
796
|
+
// GENERATED from the ribbon manifest (ribbon-menu-item) by @mintplayer/nx-component-compiler. Do not edit.
|
|
797
|
+
/** The `iconTemplate` slot of `<bs-ribbon-menu-item>`: `<ng-template bsRibbonMenuItemIconTemplate>` or `*bsRibbonMenuItemIconTemplate`. */
|
|
798
|
+
class BsRibbonMenuItemIconTemplateDirective {
|
|
799
|
+
constructor() {
|
|
800
|
+
this.templateRef = inject(TemplateRef);
|
|
865
801
|
}
|
|
866
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
867
|
-
static { this.ɵ
|
|
868
|
-
{
|
|
869
|
-
provide: NG_VALUE_ACCESSOR,
|
|
870
|
-
useExisting: forwardRef(() => BsRibbonGroupButtonComponent),
|
|
871
|
-
multi: true,
|
|
872
|
-
},
|
|
873
|
-
], ngImport: i0, template: `
|
|
874
|
-
<mp-ribbon-group-button
|
|
875
|
-
[attr.item-id]="itemId()"
|
|
876
|
-
[attr.label]="label()"
|
|
877
|
-
[attr.size]="size()"
|
|
878
|
-
[attr.disabled]="disabledState() ? '' : null"
|
|
879
|
-
[attr.tooltip]="tooltip()"
|
|
880
|
-
[attr.selected-value]="selectedValue()"
|
|
881
|
-
[buttons]="buttons()"
|
|
882
|
-
(group-select)="onGroupSelect($event)"
|
|
883
|
-
></mp-ribbon-group-button>
|
|
884
|
-
`, isInline: true, styles: [":host{display:inline-flex}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
802
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonMenuItemIconTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
803
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsRibbonMenuItemIconTemplateDirective, isStandalone: true, selector: "[bsRibbonMenuItemIconTemplate]", ngImport: i0 }); }
|
|
885
804
|
}
|
|
886
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonMenuItemIconTemplateDirective, decorators: [{
|
|
806
|
+
type: Directive,
|
|
807
|
+
args: [{ selector: '[bsRibbonMenuItemIconTemplate]' }]
|
|
808
|
+
}] });
|
|
809
|
+
/** An entry of a dropdown or split button menu: an action, a checkbox or a radio (`kind`). */
|
|
810
|
+
class BsRibbonMenuItemComponent {
|
|
811
|
+
#core;
|
|
812
|
+
constructor() {
|
|
813
|
+
/** The host element. */
|
|
814
|
+
this.elementRef = inject(ElementRef);
|
|
815
|
+
this.itemId = input('', /* @ts-ignore */
|
|
816
|
+
...(ngDevMode ? [{ debugName: "itemId" }] : /* istanbul ignore next */ []));
|
|
817
|
+
this.label = input('', /* @ts-ignore */
|
|
818
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
819
|
+
this.icon = input('', /* @ts-ignore */
|
|
820
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
821
|
+
this.kind = input('action', /* @ts-ignore */
|
|
822
|
+
...(ngDevMode ? [{ debugName: "kind" }] : /* istanbul ignore next */ []));
|
|
823
|
+
this.checked = model(false, /* @ts-ignore */
|
|
824
|
+
...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
|
|
825
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
826
|
+
/** A checkbox or radio entry changed. */
|
|
827
|
+
this.checkedchange = output();
|
|
828
|
+
/** The entry was activated. */
|
|
829
|
+
this.menuselect = output();
|
|
830
|
+
this.iconTemplateSlot = contentChild(BsRibbonMenuItemIconTemplateDirective, /* @ts-ignore */
|
|
831
|
+
...(ngDevMode ? [{ debugName: "iconTemplateSlot" }] : /* istanbul ignore next */ []));
|
|
832
|
+
/** The template's named slots. */
|
|
833
|
+
this.slots = computed(() => ({ iconTemplate: this.iconTemplateSlot()?.templateRef }), /* @ts-ignore */
|
|
834
|
+
...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
|
|
835
|
+
this.#core = useCore(ribbonMenuItemCore, { inputs: () => ({ itemId: this.itemId(), label: this.label(), icon: this.icon(), kind: this.kind(), checked: this.checked(), disabled: this.disabled() }), idPrefix: 'bs-ribbon-menu-item', outputs: { checkedChange: this.checkedchange, menuSelect: this.menuselect }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'ribbon' }), models: { checked: this.checked } });
|
|
836
|
+
/** The template's props. */
|
|
837
|
+
this.props = this.#core.props;
|
|
838
|
+
useScopedStyles('ribbon', ribbonScopedStyles);
|
|
839
|
+
}
|
|
840
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonMenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
841
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsRibbonMenuItemComponent, isStandalone: true, selector: "bs-ribbon-menu-item", inputs: { itemId: { classPropertyName: "itemId", publicName: "itemId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, kind: { classPropertyName: "kind", publicName: "kind", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", checkedchange: "checkedchange", menuselect: "menuselect" }, queries: [{ propertyName: "iconTemplateSlot", first: true, predicate: BsRibbonMenuItemIconTemplateDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-menu-item.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"ribbon\" [mpProps]=\"p_view.button\">\n @if (p_view.checkable) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.menuCheck\">\n {{ p_view.check }}\n </span>\n }\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.menuIcon\">\n @if (slots().iconTemplate; as slot_iconTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_iconTemplate\" />\n } @else {\n {{ p_view.icon }}\n }\n </span>\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.menuLabel\">\n {{ p_view.label }}\n </span>\n</button>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
842
|
+
}
|
|
843
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonMenuItemComponent, decorators: [{
|
|
844
|
+
type: Component,
|
|
845
|
+
args: [{ selector: 'bs-ribbon-menu-item', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-menu-item.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"ribbon\" [mpProps]=\"p_view.button\">\n @if (p_view.checkable) {\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.menuCheck\">\n {{ p_view.check }}\n </span>\n }\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.menuIcon\">\n @if (slots().iconTemplate; as slot_iconTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_iconTemplate\" />\n } @else {\n {{ p_view.icon }}\n }\n </span>\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.menuLabel\">\n {{ p_view.label }}\n </span>\n</button>\n" }]
|
|
846
|
+
}], ctorParameters: () => [], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], kind: [{ type: i0.Input, args: [{ isSignal: true, alias: "kind", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], checkedchange: [{ type: i0.Output, args: ["checkedchange"] }], menuselect: [{ type: i0.Output, args: ["menuselect"] }], iconTemplateSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsRibbonMenuItemIconTemplateDirective), { isSignal: true }] }] } });
|
|
847
|
+
|
|
848
|
+
// GENERATED from the ribbon manifest (ribbon-menu-separator) by @mintplayer/nx-component-compiler. Do not edit.
|
|
849
|
+
/** A rule between menu entries. */
|
|
850
|
+
class BsRibbonMenuSeparatorComponent {
|
|
851
|
+
#core;
|
|
852
|
+
constructor() {
|
|
853
|
+
/** The host element. */
|
|
854
|
+
this.elementRef = inject(ElementRef);
|
|
855
|
+
this.#core = useCore(ribbonMenuSeparatorCore, { inputs: () => ({}), idPrefix: 'bs-ribbon-menu-separator', hostBag: (props) => ({ ...props.root, 'data-mps': 'ribbon' }) });
|
|
856
|
+
/** The template's props. */
|
|
857
|
+
this.props = this.#core.props;
|
|
858
|
+
useScopedStyles('ribbon', ribbonScopedStyles);
|
|
859
|
+
}
|
|
860
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonMenuSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
861
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsRibbonMenuSeparatorComponent, isStandalone: true, selector: "bs-ribbon-menu-separator", ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-menu-separator.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
862
|
+
}
|
|
863
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonMenuSeparatorComponent, decorators: [{
|
|
887
864
|
type: Component,
|
|
888
|
-
args: [{ selector: 'bs-ribbon-
|
|
889
|
-
|
|
890
|
-
[attr.item-id]="itemId()"
|
|
891
|
-
[attr.label]="label()"
|
|
892
|
-
[attr.size]="size()"
|
|
893
|
-
[attr.disabled]="disabledState() ? '' : null"
|
|
894
|
-
[attr.tooltip]="tooltip()"
|
|
895
|
-
[attr.selected-value]="selectedValue()"
|
|
896
|
-
[buttons]="buttons()"
|
|
897
|
-
(group-select)="onGroupSelect($event)"
|
|
898
|
-
></mp-ribbon-group-button>
|
|
899
|
-
`, host: {
|
|
900
|
-
'[attr.size]': 'size()',
|
|
901
|
-
'[attr.data-size]': 'size()',
|
|
902
|
-
}, providers: [
|
|
903
|
-
{
|
|
904
|
-
provide: NG_VALUE_ACCESSOR,
|
|
905
|
-
useExisting: forwardRef(() => BsRibbonGroupButtonComponent),
|
|
906
|
-
multi: true,
|
|
907
|
-
},
|
|
908
|
-
], schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-flex}\n"] }]
|
|
909
|
-
}], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], buttons: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttons", required: false }] }], selectedValueChange: [{ type: i0.Output, args: ["selectedValueChange"] }] } });
|
|
865
|
+
args: [{ selector: 'bs-ribbon-menu-separator', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-menu-separator.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n" }]
|
|
866
|
+
}], ctorParameters: () => [] });
|
|
910
867
|
|
|
868
|
+
// GENERATED from the ribbon manifest (ribbon-gallery) by @mintplayer/nx-component-compiler. Do not edit.
|
|
869
|
+
/** A grid of `ribbon-gallery-item`s (its content). */
|
|
911
870
|
class BsRibbonGalleryComponent {
|
|
871
|
+
#core;
|
|
912
872
|
constructor() {
|
|
873
|
+
/** The host element. */
|
|
874
|
+
this.elementRef = inject(ElementRef);
|
|
913
875
|
this.itemId = input('', /* @ts-ignore */
|
|
914
876
|
...(ngDevMode ? [{ debugName: "itemId" }] : /* istanbul ignore next */ []));
|
|
915
877
|
this.label = input('', /* @ts-ignore */
|
|
916
878
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
879
|
+
/** Text or an emoji; the `icon` slot takes rich content instead. */
|
|
880
|
+
this.icon = input('', /* @ts-ignore */
|
|
881
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
882
|
+
/** The declared size; a group the reflow sized down renders it smaller. */
|
|
917
883
|
this.size = input('medium', /* @ts-ignore */
|
|
918
884
|
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
919
|
-
this.
|
|
920
|
-
|
|
885
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
886
|
+
this.tooltip = input('', /* @ts-ignore */
|
|
887
|
+
...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
|
|
888
|
+
/** The KeyTip letter(s); default: allocated from the label. */
|
|
889
|
+
this.keyTip = input(null, /* @ts-ignore */
|
|
890
|
+
...(ngDevMode ? [{ debugName: "keyTip" }] : /* istanbul ignore next */ []));
|
|
891
|
+
this.columns = input(4, { ...(ngDevMode ? { debugName: "columns" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
|
|
892
|
+
this.#core = useCore(ribbonGalleryCore, { inputs: () => ({ itemId: this.itemId(), label: this.label(), icon: this.icon(), size: this.size(), disabled: this.disabled(), tooltip: this.tooltip(), keyTip: this.keyTip(), columns: this.columns() }), idPrefix: 'bs-ribbon-gallery', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'ribbon' }) });
|
|
893
|
+
/** The template's props. */
|
|
894
|
+
this.props = this.#core.props;
|
|
895
|
+
useScopedStyles('ribbon', ribbonScopedStyles);
|
|
921
896
|
}
|
|
922
897
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonGalleryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
923
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsRibbonGalleryComponent, isStandalone: true, selector: "bs-ribbon-gallery", inputs: { itemId: { classPropertyName: "itemId", publicName: "itemId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null },
|
|
924
|
-
<mp-ribbon-gallery
|
|
925
|
-
[attr.item-id]="itemId()"
|
|
926
|
-
[attr.label]="label()"
|
|
927
|
-
[attr.size]="size()"
|
|
928
|
-
[attr.columns]="columns()"
|
|
929
|
-
>
|
|
930
|
-
<ng-content></ng-content>
|
|
931
|
-
</mp-ribbon-gallery>
|
|
932
|
-
`, isInline: true, styles: [":host{display:inline-flex}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
898
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsRibbonGalleryComponent, isStandalone: true, selector: "bs-ribbon-gallery", inputs: { itemId: { classPropertyName: "itemId", publicName: "itemId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, keyTip: { classPropertyName: "keyTip", publicName: "keyTip", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-gallery.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@let p_columns = props().columns;\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.control\" [style]=\"p_columns\">\n <ng-content />\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
933
899
|
}
|
|
934
900
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonGalleryComponent, decorators: [{
|
|
935
901
|
type: Component,
|
|
936
|
-
args: [{ selector: 'bs-ribbon-gallery', template:
|
|
937
|
-
|
|
938
|
-
[attr.item-id]="itemId()"
|
|
939
|
-
[attr.label]="label()"
|
|
940
|
-
[attr.size]="size()"
|
|
941
|
-
[attr.columns]="columns()"
|
|
942
|
-
>
|
|
943
|
-
<ng-content></ng-content>
|
|
944
|
-
</mp-ribbon-gallery>
|
|
945
|
-
`, host: {
|
|
946
|
-
'[attr.size]': 'size()',
|
|
947
|
-
'[attr.data-size]': 'size()',
|
|
948
|
-
}, schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-flex}\n"] }]
|
|
949
|
-
}], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }] } });
|
|
902
|
+
args: [{ selector: 'bs-ribbon-gallery', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-gallery.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@let p_columns = props().columns;\n<div data-mps=\"ribbon\" [mpProps]=\"p_view.control\" [style]=\"p_columns\">\n <ng-content />\n</div>\n" }]
|
|
903
|
+
}], ctorParameters: () => [], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], keyTip: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyTip", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }] } });
|
|
950
904
|
|
|
905
|
+
// GENERATED from the ribbon manifest (ribbon-gallery-item) by @mintplayer/nx-component-compiler. Do not edit.
|
|
906
|
+
/** The `iconTemplate` slot of `<bs-ribbon-gallery-item>`: `<ng-template bsRibbonGalleryItemIconTemplate>` or `*bsRibbonGalleryItemIconTemplate`. */
|
|
907
|
+
class BsRibbonGalleryItemIconTemplateDirective {
|
|
908
|
+
constructor() {
|
|
909
|
+
this.templateRef = inject(TemplateRef);
|
|
910
|
+
}
|
|
911
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonGalleryItemIconTemplateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
912
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsRibbonGalleryItemIconTemplateDirective, isStandalone: true, selector: "[bsRibbonGalleryItemIconTemplate]", ngImport: i0 }); }
|
|
913
|
+
}
|
|
914
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonGalleryItemIconTemplateDirective, decorators: [{
|
|
915
|
+
type: Directive,
|
|
916
|
+
args: [{ selector: '[bsRibbonGalleryItemIconTemplate]' }]
|
|
917
|
+
}] });
|
|
918
|
+
/** One choice in a gallery. */
|
|
951
919
|
class BsRibbonGalleryItemComponent {
|
|
920
|
+
#core;
|
|
952
921
|
constructor() {
|
|
922
|
+
/** The host element. */
|
|
923
|
+
this.elementRef = inject(ElementRef);
|
|
953
924
|
this.itemId = input('', /* @ts-ignore */
|
|
954
925
|
...(ngDevMode ? [{ debugName: "itemId" }] : /* istanbul ignore next */ []));
|
|
955
926
|
this.label = input('', /* @ts-ignore */
|
|
956
927
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
957
928
|
this.icon = input('', /* @ts-ignore */
|
|
958
929
|
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
959
|
-
this.selected = input(false, /*
|
|
960
|
-
...(ngDevMode ?
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
this.
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
this.
|
|
930
|
+
this.selected = input(false, { ...(ngDevMode ? { debugName: "selected" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
931
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
932
|
+
/** The choice was activated. */
|
|
933
|
+
this.galleryselect = output();
|
|
934
|
+
this.iconTemplateSlot = contentChild(BsRibbonGalleryItemIconTemplateDirective, /* @ts-ignore */
|
|
935
|
+
...(ngDevMode ? [{ debugName: "iconTemplateSlot" }] : /* istanbul ignore next */ []));
|
|
936
|
+
/** The template's named slots. */
|
|
937
|
+
this.slots = computed(() => ({ iconTemplate: this.iconTemplateSlot()?.templateRef }), /* @ts-ignore */
|
|
938
|
+
...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
|
|
939
|
+
this.#core = useCore(ribbonGalleryItemCore, { inputs: () => ({ itemId: this.itemId(), label: this.label(), icon: this.icon(), selected: this.selected(), disabled: this.disabled() }), idPrefix: 'bs-ribbon-gallery-item', outputs: { gallerySelect: this.galleryselect }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'ribbon' }) });
|
|
940
|
+
/** The template's props. */
|
|
941
|
+
this.props = this.#core.props;
|
|
942
|
+
useScopedStyles('ribbon', ribbonScopedStyles);
|
|
967
943
|
}
|
|
968
944
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonGalleryItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
969
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
970
|
-
<mp-ribbon-gallery-item
|
|
971
|
-
[attr.item-id]="itemId()"
|
|
972
|
-
[attr.label]="label()"
|
|
973
|
-
[attr.icon]="icon()"
|
|
974
|
-
[attr.selected]="selected() ? '' : null"
|
|
975
|
-
[attr.disabled]="disabled() ? '' : null"
|
|
976
|
-
(gallery-select)="onSelect($event)"
|
|
977
|
-
>
|
|
978
|
-
<ng-content></ng-content>
|
|
979
|
-
</mp-ribbon-gallery-item>
|
|
980
|
-
`, isInline: true, styles: [":host{display:inline-flex}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
945
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsRibbonGalleryItemComponent, isStandalone: true, selector: "bs-ribbon-gallery-item", inputs: { itemId: { classPropertyName: "itemId", publicName: "itemId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { galleryselect: "galleryselect" }, queries: [{ propertyName: "iconTemplateSlot", first: true, predicate: BsRibbonGalleryItemIconTemplateDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-gallery-item.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"ribbon\" [mpProps]=\"p_view.control\">\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.galleryIcon\">\n @if (slots().iconTemplate; as slot_iconTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_iconTemplate\" />\n } @else {\n {{ p_view.icon || p_view.label }}\n }\n </span>\n</button>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
981
946
|
}
|
|
982
947
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonGalleryItemComponent, decorators: [{
|
|
983
948
|
type: Component,
|
|
984
|
-
args: [{ selector: 'bs-ribbon-gallery-item', template:
|
|
985
|
-
|
|
986
|
-
[attr.item-id]="itemId()"
|
|
987
|
-
[attr.label]="label()"
|
|
988
|
-
[attr.icon]="icon()"
|
|
989
|
-
[attr.selected]="selected() ? '' : null"
|
|
990
|
-
[attr.disabled]="disabled() ? '' : null"
|
|
991
|
-
(gallery-select)="onSelect($event)"
|
|
992
|
-
>
|
|
993
|
-
<ng-content></ng-content>
|
|
994
|
-
</mp-ribbon-gallery-item>
|
|
995
|
-
`, schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-flex}\n"] }]
|
|
996
|
-
}], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], gallerySelect: [{ type: i0.Output, args: ["gallerySelect"] }] } });
|
|
949
|
+
args: [{ selector: 'bs-ribbon-gallery-item', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-gallery-item.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"ribbon\" [mpProps]=\"p_view.control\">\n <span data-mps=\"ribbon\" [mpProps]=\"p_view.parts.galleryIcon\">\n @if (slots().iconTemplate; as slot_iconTemplate) {\n <ng-container [ngTemplateOutlet]=\"slot_iconTemplate\" />\n } @else {\n {{ p_view.icon || p_view.label }}\n }\n </span>\n</button>\n" }]
|
|
950
|
+
}], ctorParameters: () => [], propDecorators: { itemId: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], galleryselect: [{ type: i0.Output, args: ["galleryselect"] }], iconTemplateSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsRibbonGalleryItemIconTemplateDirective), { isSignal: true }] }] } });
|
|
997
951
|
|
|
952
|
+
// GENERATED from the ribbon manifest (ribbon-template-item) by @mintplayer/nx-component-compiler. Do not edit.
|
|
953
|
+
/** Any content of your own, sized like an item. */
|
|
998
954
|
class BsRibbonTemplateItemComponent {
|
|
955
|
+
#core;
|
|
999
956
|
constructor() {
|
|
957
|
+
/** The host element. */
|
|
958
|
+
this.elementRef = inject(ElementRef);
|
|
1000
959
|
this.size = input('medium', /* @ts-ignore */
|
|
1001
960
|
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
961
|
+
this.#core = useCore(ribbonTemplateItemCore, { inputs: () => ({ size: this.size() }), idPrefix: 'bs-ribbon-template-item', hostBag: (props) => ({ ...props.root, 'data-mps': 'ribbon' }) });
|
|
962
|
+
/** The template's props. */
|
|
963
|
+
this.props = this.#core.props;
|
|
964
|
+
useScopedStyles('ribbon', ribbonScopedStyles);
|
|
1002
965
|
}
|
|
1003
966
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonTemplateItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1004
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsRibbonTemplateItemComponent, isStandalone: true, selector: "bs-ribbon-template-item", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } },
|
|
1005
|
-
<mp-ribbon-template-item [attr.size]="size()">
|
|
1006
|
-
<ng-content></ng-content>
|
|
1007
|
-
</mp-ribbon-template-item>
|
|
1008
|
-
`, isInline: true, styles: [":host{display:inline-flex}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
967
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsRibbonTemplateItemComponent, isStandalone: true, selector: "bs-ribbon-template-item", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-template-item.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1009
968
|
}
|
|
1010
969
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRibbonTemplateItemComponent, decorators: [{
|
|
1011
970
|
type: Component,
|
|
1012
|
-
args: [{ selector: 'bs-ribbon-template-item', template:
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
`, host: {
|
|
1017
|
-
'[attr.size]': 'size()',
|
|
1018
|
-
'[attr.data-size]': 'size()',
|
|
1019
|
-
}, schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-flex}\n"] }]
|
|
1020
|
-
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
971
|
+
args: [{ selector: 'bs-ribbon-template-item', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/ribbon/src/templates/ribbon-template-item.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
972
|
+
}], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
973
|
+
|
|
974
|
+
// GENERATED from the ribbon manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
1021
975
|
|
|
1022
|
-
//
|
|
976
|
+
// The ribbon family is generated from @mintplayer/ui-core/ribbon (PRD #437 D10).
|
|
1023
977
|
|
|
1024
978
|
/**
|
|
1025
979
|
* Generated bundle index. Do not edit.
|
|
1026
980
|
*/
|
|
1027
981
|
|
|
1028
|
-
export { BsQuickAccessToolbarComponent, BsRibbonButtonComponent, BsRibbonCheckBoxComponent, BsRibbonColorPickerComponent, BsRibbonComboBoxComponent, BsRibbonComponent, BsRibbonContextualTabSetComponent, BsRibbonDropdownButtonComponent, BsRibbonGalleryComponent, BsRibbonGalleryItemComponent, BsRibbonGroupButtonComponent, BsRibbonGroupComponent, BsRibbonMenuItemComponent, BsRibbonMenuSeparatorComponent, BsRibbonSplitButtonComponent, BsRibbonTabComponent, BsRibbonTemplateItemComponent, BsRibbonToggleButtonComponent };
|
|
982
|
+
export { BsQuickAccessToolbarComponent, BsRibbonButtonComponent, BsRibbonButtonIconTemplateDirective, BsRibbonCheckBoxComponent, BsRibbonCheckBoxValueAccessor, BsRibbonColorPickerComponent, BsRibbonColorPickerValueAccessor, BsRibbonComboBoxComponent, BsRibbonComboBoxValueAccessor, BsRibbonComponent, BsRibbonContextualTabSetComponent, BsRibbonDropdownButtonComponent, BsRibbonDropdownButtonIconTemplateDirective, BsRibbonGalleryComponent, BsRibbonGalleryItemComponent, BsRibbonGalleryItemIconTemplateDirective, BsRibbonGroupButtonComponent, BsRibbonGroupButtonValueAccessor, BsRibbonGroupComponent, BsRibbonMenuItemComponent, BsRibbonMenuItemIconTemplateDirective, BsRibbonMenuSeparatorComponent, BsRibbonModelAccessor, BsRibbonSplitButtonComponent, BsRibbonSplitButtonIconTemplateDirective, BsRibbonTabComponent, BsRibbonTellMeDirective, BsRibbonTemplateItemComponent, BsRibbonToggleButtonComponent, BsRibbonToggleButtonIconTemplateDirective, BsRibbonToggleButtonValueAccessor };
|
|
1029
983
|
//# sourceMappingURL=mintplayer-ng-bootstrap-ribbon.mjs.map
|