@acorex/components 18.11.1 → 18.12.0
Sign up to get free protection for your applications and to get access to all the features.
- package/button/lib/button-item-list.component.d.ts +13 -9
- package/button/lib/button-item.component.d.ts +12 -12
- package/button-group/index.d.ts +1 -0
- package/button-group/lib/button-group-item.component.d.ts +77 -0
- package/button-group/lib/button-group.component.d.ts +1 -1
- package/button-group/lib/button-group.module.d.ts +4 -2
- package/esm2022/button/lib/button-item-list.component.mjs +24 -15
- package/esm2022/button/lib/button-item.component.mjs +37 -26
- package/esm2022/button-group/index.mjs +2 -1
- package/esm2022/button-group/lib/button-group-item.component.mjs +141 -0
- package/esm2022/button-group/lib/button-group.component.mjs +6 -5
- package/esm2022/button-group/lib/button-group.module.mjs +6 -4
- package/fesm2022/acorex-components-button-group.mjs +148 -10
- package/fesm2022/acorex-components-button-group.mjs.map +1 -1
- package/fesm2022/acorex-components-button.mjs +55 -36
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/package.json +29 -29
@@ -11,17 +11,17 @@ export declare class AXButtonItemListComponent extends MXInteractiveComponent {
|
|
11
11
|
private parent?;
|
12
12
|
protected _contentButtons: QueryList<AXButtonItemComponent>;
|
13
13
|
/**
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
* The list of button items to display.
|
15
|
+
*
|
16
|
+
* @defaultValue []
|
17
|
+
*/
|
18
18
|
items: import("@angular/core").InputSignal<AXButtonItemListItem[]>;
|
19
19
|
/**
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
20
|
+
* Emits an event when an item is clicked.
|
21
|
+
* The event contains details about the clicked item.
|
22
|
+
*
|
23
|
+
* @event {AXItemClickEvent<AXButtonItemComponent>} - The event object containing clicked item details.
|
24
|
+
*/
|
25
25
|
onItemClick: EventEmitter<AXItemClickEvent<AXButtonItemComponent>>;
|
26
26
|
/**
|
27
27
|
* @ignore
|
@@ -47,6 +47,10 @@ export declare class AXButtonItemListComponent extends MXInteractiveComponent {
|
|
47
47
|
* @ignore
|
48
48
|
*/
|
49
49
|
_emitOnItemClickEvent(e: AXClickEvent, item: AXButtonItemComponent): void;
|
50
|
+
/**
|
51
|
+
* @ignore
|
52
|
+
*/
|
53
|
+
private get __hostClass();
|
50
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXButtonItemListComponent, [{ optional: true; }]>;
|
51
55
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXButtonItemListComponent, "ax-button-item-list", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; }, { "onItemClick": "onItemClick"; }, ["_contentButtons"], ["ax-button-item, ax-title, ax-divider, ng-container"], false, never>;
|
52
56
|
}
|
@@ -25,25 +25,25 @@ export declare class AXButtonItemComponent extends AXButtonItemComponent_base {
|
|
25
25
|
*/
|
26
26
|
private _selected;
|
27
27
|
/**
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
28
|
+
* Indicates whether the button item is selected.
|
29
|
+
*
|
30
|
+
* @param v - A boolean indicating the selected state.
|
31
|
+
* Updates the view when the value changes.
|
32
|
+
*/
|
33
33
|
get selected(): boolean;
|
34
34
|
set selected(v: boolean);
|
35
35
|
/**
|
36
|
-
|
37
|
-
|
38
|
-
|
36
|
+
* Whether the item is visually separated from other items.
|
37
|
+
* @defaultValue false
|
38
|
+
*/
|
39
39
|
divided: boolean;
|
40
40
|
/**
|
41
|
-
|
42
|
-
|
41
|
+
* Data associated with the button item.
|
42
|
+
*/
|
43
43
|
data: unknown;
|
44
44
|
/**
|
45
|
-
|
46
|
-
|
45
|
+
* The name of the button item.
|
46
|
+
*/
|
47
47
|
name: string;
|
48
48
|
/**
|
49
49
|
* Emitted when the button item is clicked.
|
package/button-group/index.d.ts
CHANGED
@@ -0,0 +1,77 @@
|
|
1
|
+
import { AXClickEvent, AXStyleColorType, MXColorComponent, MXInteractiveComponent } from '@acorex/components/common';
|
2
|
+
import { EventEmitter } from '@angular/core';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export interface AXButtonItemListItem {
|
5
|
+
name: string;
|
6
|
+
text: string;
|
7
|
+
icon: string;
|
8
|
+
divided?: boolean;
|
9
|
+
disabled?: boolean;
|
10
|
+
color?: AXStyleColorType;
|
11
|
+
}
|
12
|
+
declare const AXButtonGroupItemComponent_base: import("polytype").Polytype.ClusteredConstructor<[typeof MXInteractiveComponent, typeof MXColorComponent]>;
|
13
|
+
/**
|
14
|
+
* Represents a button item with optional content like icons, text, and dropdowns.
|
15
|
+
*
|
16
|
+
* @category Components
|
17
|
+
*/
|
18
|
+
export declare class AXButtonGroupItemComponent extends AXButtonGroupItemComponent_base {
|
19
|
+
/**
|
20
|
+
* Text displayed on the button item.
|
21
|
+
*/
|
22
|
+
text: string;
|
23
|
+
/**
|
24
|
+
* @ignore
|
25
|
+
*/
|
26
|
+
private _selected;
|
27
|
+
/**
|
28
|
+
* Indicates whether the button item is selected.
|
29
|
+
*
|
30
|
+
* @param v - A boolean indicating the selected state.
|
31
|
+
* Updates the view when the value changes.
|
32
|
+
*/
|
33
|
+
get selected(): boolean;
|
34
|
+
set selected(v: boolean);
|
35
|
+
/**
|
36
|
+
* Whether the item is visually separated from other items.
|
37
|
+
* @defaultValue false
|
38
|
+
*/
|
39
|
+
divided: boolean;
|
40
|
+
/**
|
41
|
+
* Data associated with the button item.
|
42
|
+
*/
|
43
|
+
data: unknown;
|
44
|
+
/**
|
45
|
+
* The name of the button item.
|
46
|
+
*/
|
47
|
+
name: string;
|
48
|
+
/**
|
49
|
+
* Emitted when the button item is clicked.
|
50
|
+
* @event
|
51
|
+
* The emitted value is an `AXClickEvent` object containing event details.
|
52
|
+
*/
|
53
|
+
onClick: EventEmitter<AXClickEvent>;
|
54
|
+
/**
|
55
|
+
* @ignore
|
56
|
+
*/
|
57
|
+
private __hostClick;
|
58
|
+
/**
|
59
|
+
* @ignore
|
60
|
+
*/
|
61
|
+
private __hostFocus;
|
62
|
+
/**
|
63
|
+
* @ignore
|
64
|
+
*/
|
65
|
+
private __hostBlur;
|
66
|
+
/**
|
67
|
+
* @ignore
|
68
|
+
*/
|
69
|
+
private get __hostClass();
|
70
|
+
/**
|
71
|
+
* @ignore
|
72
|
+
*/
|
73
|
+
tabindex: string;
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXButtonGroupItemComponent, never>;
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXButtonGroupItemComponent, "ax-button-group-item", never, { "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "text": { "alias": "text"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "divided": { "alias": "divided"; "required": false; }; "data": { "alias": "data"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, { "onClick": "onClick"; "onFocus": "onFocus"; "onBlur": "onBlur"; "disabledChange": "disabledChange"; }, never, ["ax-prefix", "ax-loading", "ax-icon", "ax-suffix", "ax-dropdown-panel"], false, never>;
|
76
|
+
}
|
77
|
+
export {};
|
@@ -75,6 +75,6 @@ export declare class AXButtonGroupComponent extends AXButtonGroupComponent_base
|
|
75
75
|
*/
|
76
76
|
private __hostClick;
|
77
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXButtonGroupComponent, never>;
|
78
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXButtonGroupComponent, "ax-button-group", never, { "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "look": { "alias": "look"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "lookChange": "lookChange"; "colorChange": "colorChange"; "disabledChange": "disabledChange"; "onClick": "onClick"; "selectionChange": "selectionChange"; }, ["_contentButtons"], ["ax-button-item"], false, never>;
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXButtonGroupComponent, "ax-button-group", never, { "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; "look": { "alias": "look"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; "lookChange": "lookChange"; "colorChange": "colorChange"; "disabledChange": "disabledChange"; "onClick": "onClick"; "selectionChange": "selectionChange"; }, ["_contentButtons"], ["ax-button-group-item"], false, never>;
|
79
79
|
}
|
80
80
|
export {};
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
2
|
import * as i1 from "./button-group.component";
|
3
|
-
import * as i2 from "
|
3
|
+
import * as i2 from "./button-group-item.component";
|
4
|
+
import * as i3 from "@angular/common";
|
5
|
+
import * as i4 from "@acorex/components/decorators";
|
4
6
|
export declare class AXButtonGroupModule {
|
5
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXButtonGroupModule, never>;
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXButtonGroupModule, [typeof i1.AXButtonGroupComponent], [typeof
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXButtonGroupModule, [typeof i1.AXButtonGroupComponent, typeof i2.AXButtonGroupItemComponent], [typeof i3.CommonModule, typeof i4.AXDecoratorModule], [typeof i1.AXButtonGroupComponent, typeof i2.AXButtonGroupItemComponent]>;
|
7
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXButtonGroupModule>;
|
8
10
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { AXClosbaleComponent, MXInteractiveComponent } from '@acorex/components/common';
|
2
|
-
import { ChangeDetectionStrategy, Component, ContentChildren, EventEmitter, Inject, Optional, Output, QueryList, ViewEncapsulation, afterNextRender, input, } from '@angular/core';
|
1
|
+
import { AXClosbaleComponent, MXInteractiveComponent, } from '@acorex/components/common';
|
2
|
+
import { ChangeDetectionStrategy, Component, ContentChildren, EventEmitter, HostBinding, Inject, Optional, Output, QueryList, ViewEncapsulation, afterNextRender, input, } from '@angular/core';
|
3
3
|
import { AXButtonItemComponent } from './button-item.component';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
import * as i1 from "@acorex/components/decorators";
|
@@ -18,17 +18,17 @@ export class AXButtonItemListComponent extends MXInteractiveComponent {
|
|
18
18
|
super();
|
19
19
|
this.parent = parent;
|
20
20
|
/**
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
* The list of button items to display.
|
22
|
+
*
|
23
|
+
* @defaultValue []
|
24
|
+
*/
|
25
25
|
this.items = input([]);
|
26
26
|
/**
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
27
|
+
* Emits an event when an item is clicked.
|
28
|
+
* The event contains details about the clicked item.
|
29
|
+
*
|
30
|
+
* @event {AXItemClickEvent<AXButtonItemComponent>} - The event object containing clicked item details.
|
31
|
+
*/
|
32
32
|
this.onItemClick = new EventEmitter();
|
33
33
|
afterNextRender(() => {
|
34
34
|
this._initContents();
|
@@ -84,8 +84,14 @@ export class AXButtonItemListComponent extends MXInteractiveComponent {
|
|
84
84
|
data: item.data,
|
85
85
|
});
|
86
86
|
}
|
87
|
+
/**
|
88
|
+
* @ignore
|
89
|
+
*/
|
90
|
+
get __hostClass() {
|
91
|
+
return `ax-action-list ax-action-list-vertical`;
|
92
|
+
}
|
87
93
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXButtonItemListComponent, deps: [{ token: AXClosbaleComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
88
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXButtonItemListComponent, selector: "ax-button-item-list", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onItemClick: "onItemClick" }, queries: [{ propertyName: "_contentButtons", predicate: AXButtonItemComponent }], usesInheritance: true, ngImport: i0, template: `
|
94
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXButtonItemListComponent, selector: "ax-button-item-list", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onItemClick: "onItemClick" }, host: { properties: { "class": "this.__hostClass" } }, queries: [{ propertyName: "_contentButtons", predicate: AXButtonItemComponent }], usesInheritance: true, ngImport: i0, template: `
|
89
95
|
@for (item of items(); track item.name) {
|
90
96
|
<ax-button-item
|
91
97
|
[text]="item.text"
|
@@ -105,7 +111,7 @@ export class AXButtonItemListComponent extends MXInteractiveComponent {
|
|
105
111
|
}
|
106
112
|
}
|
107
113
|
<ng-content select="ax-button-item, ax-title, ax-divider, ng-container"></ng-content>
|
108
|
-
`, isInline: true, styles: ["
|
114
|
+
`, isInline: true, styles: [""], dependencies: [{ kind: "component", type: i1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "component", type: i2.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
109
115
|
}
|
110
116
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXButtonItemListComponent, decorators: [{
|
111
117
|
type: Component,
|
@@ -129,7 +135,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
129
135
|
}
|
130
136
|
}
|
131
137
|
<ng-content select="ax-button-item, ax-title, ax-divider, ng-container"></ng-content>
|
132
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None
|
138
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None }]
|
133
139
|
}], ctorParameters: () => [{ type: i3.AXClosbaleComponent, decorators: [{
|
134
140
|
type: Optional
|
135
141
|
}, {
|
@@ -140,5 +146,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
140
146
|
args: [AXButtonItemComponent]
|
141
147
|
}], onItemClick: [{
|
142
148
|
type: Output
|
149
|
+
}], __hostClass: [{
|
150
|
+
type: HostBinding,
|
151
|
+
args: ['class']
|
143
152
|
}] } });
|
144
|
-
//# sourceMappingURL=data:application/json;base64,
|
153
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLWl0ZW0tbGlzdC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvYnV0dG9uL3NyYy9saWIvYnV0dG9uLWl0ZW0tbGlzdC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVMLG1CQUFtQixFQUVuQixzQkFBc0IsR0FDdkIsTUFBTSwyQkFBMkIsQ0FBQztBQUNuQyxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxlQUFlLEVBQ2YsWUFBWSxFQUNaLFdBQVcsRUFDWCxNQUFNLEVBQ04sUUFBUSxFQUNSLE1BQU0sRUFDTixTQUFTLEVBQ1QsaUJBQWlCLEVBQ2pCLGVBQWUsRUFDZixLQUFLLEdBQ04sTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLHFCQUFxQixFQUF3QixNQUFNLHlCQUF5QixDQUFDOzs7OztBQUV0Rjs7OztHQUlHO0FBNEJILE1BQU0sT0FBTyx5QkFBMEIsU0FBUSxzQkFBc0I7SUFzQm5FOztPQUVHO0lBQ0gsWUFHVSxNQUE0QjtRQUVwQyxLQUFLLEVBQUUsQ0FBQztRQUZBLFdBQU0sR0FBTixNQUFNLENBQXNCO1FBeEJ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NlKCk7XG4gICAgdGhpcy5fZW1pdE9uSXRlbUNsaWNrRXZlbnQoZSwgZS5jb21wb25lbnQpO1xuICB9XG5cbiAgLyoqXG4gICAqICBAaWdub3JlXG4gICAqL1xuICBfZW1pdE9uSXRlbUNsaWNrRXZlbnQoZTogQVhDbGlja0V2ZW50LCBpdGVtOiBBWEJ1dHRvbkl0ZW1Db21wb25lbnQpOiB2b2lkIHtcbiAgICB0aGlzLm9uSXRlbUNsaWNrLmVtaXQoe1xuICAgICAgY29tcG9uZW50OiB0aGlzLFxuICAgICAgaXRlbSxcbiAgICAgIGh0bWxFbGVtZW50OiB0aGlzLmdldEhvc3RFbGVtZW50KCksXG4gICAgICBuYXRpdmVFdmVudDogZS5uYXRpdmVFdmVudCxcbiAgICAgIG5hbWU6IGl0ZW0ubmFtZSxcbiAgICAgIGRhdGE6IGl0ZW0uZGF0YSxcbiAgICB9KTtcbiAgfVxuXG4gIC8qKlxuICAgKiAgQGlnbm9yZVxuICAgKi9cbiAgQEhvc3RCaW5kaW5nKCdjbGFzcycpXG4gIHByaXZhdGUgZ2V0IF9faG9zdENsYXNzKCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIGBheC1hY3Rpb24tbGlzdCBheC1hY3Rpb24tbGlzdC12ZXJ0aWNhbGA7XG4gIH1cbn1cbiJdfQ==
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { MXColorComponent, MXInteractiveComponent } from '@acorex/components/common';
|
1
|
+
import { MXColorComponent, MXInteractiveComponent, } from '@acorex/components/common';
|
2
2
|
import { ChangeDetectionStrategy, Component, EventEmitter, HostBinding, HostListener, Input, Output, ViewEncapsulation, } from '@angular/core';
|
3
3
|
import { classes } from 'polytype';
|
4
4
|
import * as i0 from "@angular/core";
|
5
|
+
import * as i1 from "@acorex/components/decorators";
|
5
6
|
/**
|
6
7
|
* Represents a button item with optional content like icons, text, and dropdowns.
|
7
8
|
*
|
@@ -11,9 +12,9 @@ export class AXButtonItemComponent extends classes(MXInteractiveComponent, MXCol
|
|
11
12
|
constructor() {
|
12
13
|
super(...arguments);
|
13
14
|
/**
|
14
|
-
|
15
|
-
|
16
|
-
|
15
|
+
* Whether the item is visually separated from other items.
|
16
|
+
* @defaultValue false
|
17
|
+
*/
|
17
18
|
this.divided = false;
|
18
19
|
/**
|
19
20
|
* Emitted when the button item is clicked.
|
@@ -27,11 +28,11 @@ export class AXButtonItemComponent extends classes(MXInteractiveComponent, MXCol
|
|
27
28
|
this.tabindex = '0';
|
28
29
|
}
|
29
30
|
/**
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
31
|
+
* Indicates whether the button item is selected.
|
32
|
+
*
|
33
|
+
* @param v - A boolean indicating the selected state.
|
34
|
+
* Updates the view when the value changes.
|
35
|
+
*/
|
35
36
|
get selected() {
|
36
37
|
return this._selected;
|
37
38
|
}
|
@@ -72,8 +73,10 @@ export class AXButtonItemComponent extends classes(MXInteractiveComponent, MXCol
|
|
72
73
|
'ax-state-disabled': this.disabled,
|
73
74
|
'ax-state-selected': this.selected,
|
74
75
|
'ax-divided': this.divided,
|
76
|
+
'ax-action-item': true,
|
77
|
+
'ax-el-interactive': true,
|
75
78
|
};
|
76
|
-
cssClasses[`ax-${this.color
|
79
|
+
cssClasses[`ax-el-${this.color}-blank`] = true;
|
77
80
|
return Object.entries(cssClasses)
|
78
81
|
.filter((c) => c[1])
|
79
82
|
.map((c) => c[0])
|
@@ -81,28 +84,36 @@ export class AXButtonItemComponent extends classes(MXInteractiveComponent, MXCol
|
|
81
84
|
}
|
82
85
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXButtonItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
83
86
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXButtonItemComponent, selector: "ax-button-item", inputs: { color: "color", disabled: "disabled", text: "text", selected: "selected", divided: "divided", data: "data", name: "name" }, outputs: { onClick: "onClick", onFocus: "onFocus", onBlur: "onBlur", disabledChange: "disabledChange" }, host: { listeners: { "click": "__hostClick($event)", "focus": "__hostFocus($event)", "blur": "__hostBlur($event)" }, properties: { "class": "this.__hostClass", "attr.tabindex": "this.tabindex" } }, usesInheritance: true, ngImport: i0, template: `
|
84
|
-
<
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
87
|
+
<div class="ax-action-item-prefix">
|
88
|
+
<ng-content select="ax-prefix"> </ng-content>
|
89
|
+
<ng-content select="ax-loading"> </ng-content>
|
90
|
+
<ng-content select="ax-icon"> </ng-content>
|
91
|
+
@if (text) {
|
92
|
+
<ax-text>{{ text }}</ax-text>
|
93
|
+
}
|
94
|
+
</div>
|
95
|
+
<div class="ax-action-item-suffix">
|
96
|
+
<ng-content select="ax-suffix"> </ng-content>
|
97
|
+
</div>
|
91
98
|
<ng-content select="ax-dropdown-panel"> </ng-content>
|
92
|
-
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
99
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
93
100
|
}
|
94
101
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXButtonItemComponent, decorators: [{
|
95
102
|
type: Component,
|
96
103
|
args: [{
|
97
104
|
selector: 'ax-button-item',
|
98
105
|
template: `
|
99
|
-
<
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
+
<div class="ax-action-item-prefix">
|
107
|
+
<ng-content select="ax-prefix"> </ng-content>
|
108
|
+
<ng-content select="ax-loading"> </ng-content>
|
109
|
+
<ng-content select="ax-icon"> </ng-content>
|
110
|
+
@if (text) {
|
111
|
+
<ax-text>{{ text }}</ax-text>
|
112
|
+
}
|
113
|
+
</div>
|
114
|
+
<div class="ax-action-item-suffix">
|
115
|
+
<ng-content select="ax-suffix"> </ng-content>
|
116
|
+
</div>
|
106
117
|
<ng-content select="ax-dropdown-panel"> </ng-content>
|
107
118
|
`,
|
108
119
|
encapsulation: ViewEncapsulation.None,
|
@@ -138,4 +149,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
138
149
|
type: HostBinding,
|
139
150
|
args: ['attr.tabindex']
|
140
151
|
}] } });
|
141
|
-
//# sourceMappingURL=data:application/json;base64,
|
152
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLWl0ZW0uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL2J1dHRvbi9zcmMvbGliL2J1dHRvbi1pdGVtLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBR0wsZ0JBQWdCLEVBQ2hCLHNCQUFzQixHQUN2QixNQUFNLDJCQUEyQixDQUFDO0FBRW5DLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFlBQVksRUFDWixXQUFXLEVBQ1gsWUFBWSxFQUNaLEtBQUssRUFDTCxNQUFNLEVBQ04saUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxVQUFVLENBQUM7OztBQVduQzs7OztHQUlHO0FBc0JILE1BQU0sT0FBTyxxQkFBc0IsU0FBUSxPQUFPLENBQUMsc0JBQXNCLEVBQUUsZ0JBQWdCL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|
1
|
+
export * from './lib/button-group-item.component';
|
1
2
|
export * from './lib/button-group.component';
|
2
3
|
export * from './lib/button-group.module';
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvYnV0dG9uLWdyb3VwL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG1DQUFtQyxDQUFDO0FBQ2xELGNBQWMsOEJBQThCLENBQUM7QUFDN0MsY0FBYywyQkFBMkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliL2J1dHRvbi1ncm91cC1pdGVtLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9idXR0b24tZ3JvdXAuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vbGliL2J1dHRvbi1ncm91cC5tb2R1bGUnO1xuIl19
|