@acorex/components 16.18.14 → 16.18.16
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/base/element.class.mjs +8 -2
- package/esm2022/lib/button/button.component.mjs +3 -3
- package/esm2022/lib/calendar/calendar-box/calendar-box.component.mjs +9 -3
- package/esm2022/lib/calendar/scheduler/toolbars/scheduler-toolbar-navigator.mjs +1 -1
- package/esm2022/lib/calendar/scheduler/toolbars/scheduler-toolbar-views.mjs +1 -1
- package/esm2022/lib/checkbox/checkbox.component.mjs +3 -3
- package/esm2022/lib/color-picker/color-picker.component.mjs +3 -3
- package/esm2022/lib/context-menu/context-menu.component.mjs +9 -3
- package/esm2022/lib/data-filter/filter-panel/filter-panel.component.mjs +9 -3
- package/esm2022/lib/data-filter/toolbar/filter-toolbar.component.mjs +1 -1
- package/esm2022/lib/data-list/list/list.component.mjs +3 -3
- package/esm2022/lib/date-picker/date-picker.component.mjs +3 -3
- package/esm2022/lib/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/lib/fieldset/fieldset.component.mjs +10 -3
- package/esm2022/lib/form-group/form-group.component.mjs +3 -3
- package/esm2022/lib/label/label.component.mjs +4 -3
- package/esm2022/lib/loading/loading-indicator.component.mjs +9 -3
- package/esm2022/lib/loading/loading-panel.component.mjs +9 -3
- package/esm2022/lib/menu/menu.component.mjs +9 -3
- package/esm2022/lib/number-box/number-box.component.mjs +3 -3
- package/esm2022/lib/panel-box/panel-box.component.mjs +9 -3
- package/esm2022/lib/password-box/password-box.component.mjs +3 -3
- package/esm2022/lib/popover/popover.component.mjs +10 -3
- package/esm2022/lib/popup/popup.component.mjs +9 -7
- package/esm2022/lib/popup/popup.service.mjs +6 -2
- package/esm2022/lib/progress-bar/progress-bar.component.mjs +3 -3
- package/esm2022/lib/search-bar/search-bar.component.mjs +9 -3
- package/esm2022/lib/searchbox/searchbox.component.mjs +3 -3
- package/esm2022/lib/selectbox/selectbox.component.mjs +3 -3
- package/esm2022/lib/selection-list/selection-list.component.mjs +3 -3
- package/esm2022/lib/switch/switch.component.mjs +8 -7
- package/esm2022/lib/tab-page/tab-page-Renderer.component.mjs +3 -1
- package/esm2022/lib/tab-page/tab-page-host.component.mjs +7 -6
- package/esm2022/lib/tab-page/tab-page.service.mjs +7 -3
- package/esm2022/lib/tab-strip/tab-strip.component.mjs +9 -3
- package/esm2022/lib/tab-view/tab-view.component.mjs +10 -4
- package/esm2022/lib/tab-view/tab.component.mjs +9 -3
- package/esm2022/lib/textarea/textarea.component.mjs +9 -5
- package/esm2022/lib/textbox/textbox.component.mjs +9 -5
- package/esm2022/lib/time-picker/time-picker.component.mjs +3 -3
- package/esm2022/lib/toast/toast-message/toast-message.component.mjs +9 -3
- package/esm2022/lib/toolbar/group-button/toolbar-group-button.component.mjs +27 -18
- package/esm2022/lib/toolbar/menu/toolbar-menu.component.mjs +9 -3
- package/esm2022/lib/toolbar/search/toolbar-search.component.mjs +9 -3
- package/esm2022/lib/toolbar/title/toolbar-title.component.mjs +23 -8
- package/esm2022/lib/toolbar/toolbar.component.mjs +11 -5
- package/esm2022/lib/tree-side-menu/tree-side-menu.component.mjs +3 -3
- package/esm2022/lib/tree-view/tree-view.component.mjs +3 -3
- package/esm2022/lib/upload-file/upload-file.component.mjs +3 -3
- package/fesm2022/acorex-components.mjs +269 -117
- package/fesm2022/acorex-components.mjs.map +1 -1
- package/lib/base/element.class.d.ts +3 -1
- package/lib/calendar/calendar-box/calendar-box.component.d.ts +3 -1
- package/lib/context-menu/context-menu.component.d.ts +3 -1
- package/lib/data-filter/filter-panel/filter-panel.component.d.ts +3 -1
- package/lib/fieldset/fieldset.component.d.ts +3 -1
- package/lib/loading/loading-indicator.component.d.ts +3 -1
- package/lib/loading/loading-panel.component.d.ts +3 -1
- package/lib/menu/menu.component.d.ts +3 -1
- package/lib/panel-box/panel-box.component.d.ts +3 -1
- package/lib/popover/popover.component.d.ts +3 -1
- package/lib/popup/popup.service.d.ts +2 -0
- package/lib/search-bar/search-bar.component.d.ts +3 -1
- package/lib/tab-page/tab-page.service.d.ts +2 -0
- package/lib/tab-strip/tab-strip.component.d.ts +3 -1
- package/lib/tab-view/tab-view.component.d.ts +3 -1
- package/lib/tab-view/tab.component.d.ts +3 -1
- package/lib/toast/toast-message/toast-message.component.d.ts +3 -1
- package/lib/toolbar/group-button/toolbar-group-button.component.d.ts +6 -4
- package/lib/toolbar/menu/toolbar-menu.component.d.ts +3 -1
- package/lib/toolbar/search/toolbar-search.component.d.ts +3 -1
- package/lib/toolbar/title/toolbar-title.component.d.ts +3 -2
- package/lib/toolbar/toolbar.component.d.ts +3 -1
- package/package.json +1 -1
@@ -11,6 +11,8 @@ export class AXToastMessageComponent {
|
|
11
11
|
timeOut = 6000;
|
12
12
|
closeable = false;
|
13
13
|
type = 'info';
|
14
|
+
axId;
|
15
|
+
axClass;
|
14
16
|
style = 'info';
|
15
17
|
icon = '';
|
16
18
|
toastWidth = 100;
|
@@ -57,11 +59,11 @@ export class AXToastMessageComponent {
|
|
57
59
|
this.elRef.nativeElement.parentElement.removeChild(this.elRef.nativeElement);
|
58
60
|
}
|
59
61
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXToastMessageComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
60
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXToastMessageComponent, selector: "ng-component", inputs: { title: "title", message: "message", timeOut: "timeOut", closeable: "closeable", type: "type" }, ngImport: i0, template: "<div class=\"toast-container\">\n <header *ngIf=\"title\" class=\"ax toast {{ style }}\">\n <div>\n <i class=\"{{icon}}\"></i> {{ title }}\n </div>\n <div *ngIf=\"closeable\" (click)=\"close()\" class=\"toast-close\">\n <i class=\"far fa-times\"></i>\n </div>\n </header>\n <div class=\"content ax toast {{ style }}\">\n {{ message }}\n <div *ngIf=\"!title && closeable\" (click)=\"close()\" class=\"toast-close\">\n <i class=\"far fa-times\"></i>\n </div>\n <div class=\"toast-progress\" [style.animation-duration.ms]=\"timeOut\"></div>\n </div>\n</div
|
62
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXToastMessageComponent, selector: "ng-component", inputs: { title: "title", message: "message", timeOut: "timeOut", closeable: "closeable", type: "type", axId: "axId", axClass: "axClass" }, ngImport: i0, template: "<div \n class=\"toast-container {{axClass}}\" \n [attr.id]=\"axId\"\n>\n <header \n *ngIf=\"title\" \n class=\"ax toast {{ style }} {{axClass ? axClass + '-header' : ''}}\" \n [attr.id]=\"axId ? axId + '-header' : null\"\n >\n <div>\n <i class=\"{{icon}}\"></i> {{ title }}\n </div>\n <div \n *ngIf=\"closeable\" \n (click)=\"close()\" \n class=\"toast-close {{axClass ? axClass + '-close' : ''}}\" \n [attr.id]=\"axId ? axId + '-close' : null\"\n >\n <i class=\"far fa-times\"></i>\n </div>\n </header>\n <div \n class=\"content ax toast {{ style }} {{axClass ? axClass + '-content' : ''}}\" \n [attr.id]=\"axId ? axId + '-content' : null\"\n >\n {{ message }}\n <div \n *ngIf=\"!title && closeable\" \n (click)=\"close()\" \n class=\"toast-close {{axClass ? axClass + '-close' : ''}}\" \n [attr.id]=\"axId ? axId + '-close' : null\"\n >\n <i class=\"far fa-times\"></i>\n </div>\n <div \n class=\"toast-progress\" \n [style.animation-duration.ms]=\"timeOut\"\n [attr.id]=\"axId ? axId + '-progress' : null\"\n ></div>\n </div>\n</div>\n", styles: [".rtl .toast-progress{right:0;left:inherit!important}.toast-container{overflow:hidden;margin:.8rem 0;box-shadow:0 3px 6px #00000029,0 3px 6px #0000003b;animation:slide-in-bottom .3s cubic-bezier(.25,.46,.45,.94) both;-webkit-animation:slide-in-bottom .3s cubic-bezier(.25,.46,.45,.94) both;border-radius:var(--ax-size-border-radius)}.toast-container header{display:flex;justify-content:space-between;align-items:center;padding:.5rem .8rem;font-weight:500}.toast-container .content{padding:1rem;display:flex;align-items:center;justify-content:space-between}.toast-container .toast-close{cursor:pointer;font-size:1rem}.toast-container .toast-progress{position:absolute;background:#00000080;width:100%;bottom:0;left:0;height:6px;animation-duration:4s;animation-timing-function:linear;animation-name:progressBar}@keyframes progressBar{0%{width:100%}to{width:0%}}@keyframes slide-in-top{0%{transform:translateY(-1000px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes slide-in-bottom{0%{transform:translateY(1000px);opacity:0}to{transform:translateY(0);opacity:1}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
|
61
63
|
}
|
62
64
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXToastMessageComponent, decorators: [{
|
63
65
|
type: Component,
|
64
|
-
args: [{ encapsulation: ViewEncapsulation.None, template: "<div class=\"toast-container\">\n <header *ngIf=\"title\" class=\"ax toast {{ style }}\">\n <div>\n <i class=\"{{icon}}\"></i> {{ title }}\n </div>\n <div *ngIf=\"closeable\" (click)=\"close()\" class=\"toast-close\">\n <i class=\"far fa-times\"></i>\n </div>\n </header>\n <div class=\"content ax toast {{ style }}\">\n {{ message }}\n <div *ngIf=\"!title && closeable\" (click)=\"close()\" class=\"toast-close\">\n <i class=\"far fa-times\"></i>\n </div>\n <div class=\"toast-progress\" [style.animation-duration.ms]=\"timeOut\"></div>\n </div>\n</div
|
66
|
+
args: [{ encapsulation: ViewEncapsulation.None, template: "<div \n class=\"toast-container {{axClass}}\" \n [attr.id]=\"axId\"\n>\n <header \n *ngIf=\"title\" \n class=\"ax toast {{ style }} {{axClass ? axClass + '-header' : ''}}\" \n [attr.id]=\"axId ? axId + '-header' : null\"\n >\n <div>\n <i class=\"{{icon}}\"></i> {{ title }}\n </div>\n <div \n *ngIf=\"closeable\" \n (click)=\"close()\" \n class=\"toast-close {{axClass ? axClass + '-close' : ''}}\" \n [attr.id]=\"axId ? axId + '-close' : null\"\n >\n <i class=\"far fa-times\"></i>\n </div>\n </header>\n <div \n class=\"content ax toast {{ style }} {{axClass ? axClass + '-content' : ''}}\" \n [attr.id]=\"axId ? axId + '-content' : null\"\n >\n {{ message }}\n <div \n *ngIf=\"!title && closeable\" \n (click)=\"close()\" \n class=\"toast-close {{axClass ? axClass + '-close' : ''}}\" \n [attr.id]=\"axId ? axId + '-close' : null\"\n >\n <i class=\"far fa-times\"></i>\n </div>\n <div \n class=\"toast-progress\" \n [style.animation-duration.ms]=\"timeOut\"\n [attr.id]=\"axId ? axId + '-progress' : null\"\n ></div>\n </div>\n</div>\n", styles: [".rtl .toast-progress{right:0;left:inherit!important}.toast-container{overflow:hidden;margin:.8rem 0;box-shadow:0 3px 6px #00000029,0 3px 6px #0000003b;animation:slide-in-bottom .3s cubic-bezier(.25,.46,.45,.94) both;-webkit-animation:slide-in-bottom .3s cubic-bezier(.25,.46,.45,.94) both;border-radius:var(--ax-size-border-radius)}.toast-container header{display:flex;justify-content:space-between;align-items:center;padding:.5rem .8rem;font-weight:500}.toast-container .content{padding:1rem;display:flex;align-items:center;justify-content:space-between}.toast-container .toast-close{cursor:pointer;font-size:1rem}.toast-container .toast-progress{position:absolute;background:#00000080;width:100%;bottom:0;left:0;height:6px;animation-duration:4s;animation-timing-function:linear;animation-name:progressBar}@keyframes progressBar{0%{width:100%}to{width:0%}}@keyframes slide-in-top{0%{transform:translateY(-1000px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes slide-in-bottom{0%{transform:translateY(1000px);opacity:0}to{transform:translateY(0);opacity:1}}\n"] }]
|
65
67
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { title: [{
|
66
68
|
type: Input
|
67
69
|
}], message: [{
|
@@ -72,5 +74,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
|
|
72
74
|
type: Input
|
73
75
|
}], type: [{
|
74
76
|
type: Input
|
77
|
+
}], axId: [{
|
78
|
+
type: Input
|
79
|
+
}], axClass: [{
|
80
|
+
type: Input
|
75
81
|
}] } });
|
76
|
-
//# sourceMappingURL=data:application/json;base64,
|
82
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3QtbWVzc2FnZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvc3JjL2xpYi90b2FzdC90b2FzdC1tZXNzYWdlL3RvYXN0LW1lc3NhZ2UuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3NyYy9saWIvdG9hc3QvdG9hc3QtbWVzc2FnZS90b2FzdC1tZXNzYWdlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsS0FBSyxFQUFFLFVBQVUsRUFBRSxpQkFBaUIsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7O0FBT3hGLE1BQU0sT0FBTyx1QkFBdUI7SUFDZDtJQUFwQixZQUFvQixLQUFpQjtRQUFqQixVQUFLLEdBQUwsS0FBSyxDQUFZO0lBQUksQ0FBQztJQUVqQyxLQUFLLEdBQVcsRUFBRSxDQUFDO0lBQ25CLE9BQU8sQ0FBUztJQUNoQixPQUFPLEdBQVcsSUFBSSxDQUFDO0lBQ3ZCLFNBQVMsR0FBWSxLQUFLLENBQUM7SUFFM0IsSUFBSSxHQUE2QyxNQUFNLENBQUM7SUFFeEQsSUFBSSxDQUFTO0lBRWIsT0FBTyxDQUFTO0lBRXpCLEtBQUssR0FBVyxNQUFNLENBQUM7SUFDdkIsSUFBSSxHQUFXLEVBQUUsQ0FBQztJQUNsQixVQUFVLEdBQVcsR0FBRyxDQUFDO0lBRXpCLFFBQVE7UUFDTixJQUFJLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQztZQU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zXCI+PC9pPlxuICAgICAgICA8L2Rpdj5cbiAgICAgICAgPGRpdiBcbiAgICAgICAgICBjbGFzcz1cInRvYXN0LXByb2dyZXNzXCIgXG4gICAgICAgICAgW3N0eWxlLmFuaW1hdGlvbi1kdXJhdGlvbi5tc109XCJ0aW1lT3V0XCJcbiAgICAgICAgICBbYXR0ci5pZF09XCJheElkID8gYXhJZCArICctcHJvZ3Jlc3MnIDogbnVsbFwiXG4gICAgICAgID48L2Rpdj5cbiAgICA8L2Rpdj5cbjwvZGl2PlxuIl19
|
@@ -1,14 +1,16 @@
|
|
1
|
-
import { Component, Input, Output, EventEmitter } from
|
2
|
-
import { AXToolbarItem } from
|
1
|
+
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
2
|
+
import { AXToolbarItem } from '../toolbar-item';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
import * as i1 from "@angular/common";
|
5
5
|
export class AXToolbarButtonGroupComponent {
|
6
|
-
|
6
|
+
axId;
|
7
|
+
axClass;
|
7
8
|
items = [];
|
8
9
|
itemClick = new EventEmitter();
|
9
|
-
mode =
|
10
|
+
mode = 'single';
|
11
|
+
constructor() { }
|
10
12
|
onClick(item) {
|
11
|
-
if (this.mode
|
13
|
+
if (this.mode === 'single') {
|
12
14
|
this.items.forEach(c => {
|
13
15
|
c.selected = false;
|
14
16
|
});
|
@@ -16,20 +18,19 @@ export class AXToolbarButtonGroupComponent {
|
|
16
18
|
this.itemClick.emit(item);
|
17
19
|
}
|
18
20
|
else {
|
19
|
-
|
20
|
-
|
21
|
-
}
|
22
|
-
else {
|
23
|
-
item.selected = true;
|
24
|
-
this.itemClick.emit(item);
|
25
|
-
}
|
21
|
+
item.selected = !item.selected;
|
22
|
+
this.itemClick.emit(item);
|
26
23
|
}
|
27
24
|
}
|
28
25
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXToolbarButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
29
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXToolbarButtonGroupComponent, selector: "ax-toolbar-group-button", inputs: { items: "items", mode: "mode" }, outputs: { itemClick: "itemClick" }, providers: [
|
26
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXToolbarButtonGroupComponent, selector: "ax-toolbar-group-button", inputs: { axId: "axId", axClass: "axClass", items: "items", mode: "mode" }, outputs: { itemClick: "itemClick" }, providers: [
|
30
27
|
{ provide: AXToolbarItem, useExisting: AXToolbarButtonGroupComponent }
|
31
28
|
], ngImport: i0, template: `
|
32
|
-
<div
|
29
|
+
<div
|
30
|
+
class="btn-group {{axClass}}"
|
31
|
+
role="group"
|
32
|
+
[attr.id]="axId"
|
33
|
+
>
|
33
34
|
<button
|
34
35
|
type="button"
|
35
36
|
*ngFor="let item of items"
|
@@ -47,9 +48,13 @@ export class AXToolbarButtonGroupComponent {
|
|
47
48
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXToolbarButtonGroupComponent, decorators: [{
|
48
49
|
type: Component,
|
49
50
|
args: [{
|
50
|
-
selector:
|
51
|
+
selector: 'ax-toolbar-group-button',
|
51
52
|
template: `
|
52
|
-
<div
|
53
|
+
<div
|
54
|
+
class="btn-group {{axClass}}"
|
55
|
+
role="group"
|
56
|
+
[attr.id]="axId"
|
57
|
+
>
|
53
58
|
<button
|
54
59
|
type="button"
|
55
60
|
*ngFor="let item of items"
|
@@ -67,11 +72,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
|
|
67
72
|
{ provide: AXToolbarItem, useExisting: AXToolbarButtonGroupComponent }
|
68
73
|
]
|
69
74
|
}]
|
70
|
-
}], ctorParameters: () => [], propDecorators: {
|
75
|
+
}], ctorParameters: () => [], propDecorators: { axId: [{
|
76
|
+
type: Input
|
77
|
+
}], axClass: [{
|
78
|
+
type: Input
|
79
|
+
}], items: [{
|
71
80
|
type: Input
|
72
81
|
}], itemClick: [{
|
73
82
|
type: Output
|
74
83
|
}], mode: [{
|
75
84
|
type: Input
|
76
85
|
}] } });
|
77
|
-
//# sourceMappingURL=data:application/json;base64,
|
86
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJhci1ncm91cC1idXR0b24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3NyYy9saWIvdG9vbGJhci9ncm91cC1idXR0b24vdG9vbGJhci1ncm91cC1idXR0b24uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFdkUsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGlCQUFpQixDQUFDOzs7QUEyQmhELE1BQU0sT0FBTyw2QkFBNkI7SUFDL0IsSUFBSSxDQUFTO0lBRWIsT0FBTyxDQUFTO0lBRWhCLEtBQUssR0FBcUIsRUFBRSxDQUFDO0lBRTVCLFNBQVMsR0FBaUMsSUFBSSxZQUFZLEVBQWtCLENBQUM7SUFFOUUsSUFBSSxHQUEwQixRQUFRLENBQUM7SUFFaEQsZ0JBQWdCLENBQUM7SUFFakIsT0FBTyxDQUFDLElBQW9CO1FBQzFCLElBQUksSUFBSSxDQUFDLElBQUksS0FBSyxRQUFRLEVBQUUsQ0FBQztZQUMzQixJQUFJLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUMsRUFBRTtnQkFDckIsQ0FBQyxDQUFDLFFBQVEsR0FBRyxLQUFLLENBQUM7WUFDckIsQ0FBQyxDQUFDLENB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AgQE91dHB1dCgpIGl0ZW1DbGljazogRXZlbnRFbWl0dGVyPEFYQmFzZU1lbnVJdGVtPiA9IG5ldyBFdmVudEVtaXR0ZXI8QVhCYXNlTWVudUl0ZW0+KCk7XG5cbiAgQElucHV0KCkgbW9kZTogJ3NpbmdsZScgfCAnbXVsdGlwbGUnID0gJ3NpbmdsZSc7XG5cbiAgY29uc3RydWN0b3IoKSB7IH1cblxuICBvbkNsaWNrKGl0ZW06IEFYQmFzZU1lbnVJdGVtKSB7XG4gICAgaWYgKHRoaXMubW9kZSA9PT0gJ3NpbmdsZScpIHtcbiAgICAgIHRoaXMuaXRlbXMuZm9yRWFjaChjID0+IHtcbiAgICAgICAgYy5zZWxlY3RlZCA9IGZhbHNlO1xuICAgICAgfSk7XG4gICAgICBpdGVtLnNlbGVjdGVkID0gdHJ1ZTtcbiAgICAgIHRoaXMuaXRlbUNsaWNrLmVtaXQoaXRlbSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIGl0ZW0uc2VsZWN0ZWQgPSAhaXRlbS5zZWxlY3RlZDtcbiAgICAgIHRoaXMuaXRlbUNsaWNrLmVtaXQoaXRlbSk7XG4gICAgfVxuICB9XG59XG4iXX0=
|
@@ -29,6 +29,8 @@ export class AXToolbarMenuComponent extends AXToolbarItem {
|
|
29
29
|
this._items = v;
|
30
30
|
this.update();
|
31
31
|
}
|
32
|
+
axId;
|
33
|
+
axClass;
|
32
34
|
handleItemClick(item) {
|
33
35
|
this.onItemClick.emit(item);
|
34
36
|
}
|
@@ -40,11 +42,11 @@ export class AXToolbarMenuComponent extends AXToolbarItem {
|
|
40
42
|
this.cdr.detectChanges();
|
41
43
|
}
|
42
44
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXToolbarMenuComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
43
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXToolbarMenuComponent, selector: "ax-toolbar-menu", inputs: { menuTemplate: "menuTemplate", floatPlacemnet: "floatPlacemnet", selection: "selection", items: "items" }, outputs: { onItemClick: "onItemClick" }, providers: [{ provide: AXToolbarItem, useExisting: AXToolbarMenuComponent }], queries: [{ propertyName: "_contentMenuTemplate", first: true, predicate: TemplateRef, descendants: true, static: true }], viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-toolbar-menu-container\">\n <ax-menu\n #menu\n [items]=\"items\"\n [selection]=\"selection\"\n (onItemClick)=\"handleItemClick($event)\"\n [menuTemplate]=\"menuTemplate\"\n [floatPlacemnet]=\"floatPlacemnet\"\n >\n </ax-menu>\n</div>\n", dependencies: [{ kind: "component", type: i1.AXMenuComponent, selector: "ax-menu", inputs: ["menuTemplate", "rtl", "size", "selection", "mode", "target", "floatAlignment", "floatPlacemnet", "direction", "items"], outputs: ["onItemClick"] }], encapsulation: i0.ViewEncapsulation.None });
|
45
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXToolbarMenuComponent, selector: "ax-toolbar-menu", inputs: { menuTemplate: "menuTemplate", floatPlacemnet: "floatPlacemnet", selection: "selection", items: "items", axId: "axId", axClass: "axClass" }, outputs: { onItemClick: "onItemClick" }, providers: [{ provide: AXToolbarItem, useExisting: AXToolbarMenuComponent }], queries: [{ propertyName: "_contentMenuTemplate", first: true, predicate: TemplateRef, descendants: true, static: true }], viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div \n class=\"ax-toolbar-menu-container {{axClass}}\" \n [attr.id]=\"axId\"\n>\n <ax-menu\n #menu\n [items]=\"items\"\n [selection]=\"selection\"\n (onItemClick)=\"handleItemClick($event)\"\n [menuTemplate]=\"menuTemplate\"\n [floatPlacemnet]=\"floatPlacemnet\"\n [attr.id]=\"axId ? axId + '-menu' : null\"\n [attr.class]=\"axClass\"\n >\n </ax-menu>\n</div>\n", dependencies: [{ kind: "component", type: i1.AXMenuComponent, selector: "ax-menu", inputs: ["menuTemplate", "rtl", "size", "selection", "mode", "target", "floatAlignment", "floatPlacemnet", "direction", "items", "axId", "axClass"], outputs: ["onItemClick"] }], encapsulation: i0.ViewEncapsulation.None });
|
44
46
|
}
|
45
47
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXToolbarMenuComponent, decorators: [{
|
46
48
|
type: Component,
|
47
|
-
args: [{ selector: 'ax-toolbar-menu', providers: [{ provide: AXToolbarItem, useExisting: AXToolbarMenuComponent }], encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-toolbar-menu-container\">\n <ax-menu\n #menu\n [items]=\"items\"\n [selection]=\"selection\"\n (onItemClick)=\"handleItemClick($event)\"\n [menuTemplate]=\"menuTemplate\"\n [floatPlacemnet]=\"floatPlacemnet\"\n >\n </ax-menu>\n</div>\n" }]
|
49
|
+
args: [{ selector: 'ax-toolbar-menu', providers: [{ provide: AXToolbarItem, useExisting: AXToolbarMenuComponent }], encapsulation: ViewEncapsulation.None, template: "<div \n class=\"ax-toolbar-menu-container {{axClass}}\" \n [attr.id]=\"axId\"\n>\n <ax-menu\n #menu\n [items]=\"items\"\n [selection]=\"selection\"\n (onItemClick)=\"handleItemClick($event)\"\n [menuTemplate]=\"menuTemplate\"\n [floatPlacemnet]=\"floatPlacemnet\"\n [attr.id]=\"axId ? axId + '-menu' : null\"\n [attr.class]=\"axClass\"\n >\n </ax-menu>\n</div>\n" }]
|
48
50
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { menu: [{
|
49
51
|
type: ViewChild,
|
50
52
|
args: ['menu', { static: true }]
|
@@ -61,5 +63,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
|
|
61
63
|
type: Input
|
62
64
|
}], items: [{
|
63
65
|
type: Input
|
66
|
+
}], axId: [{
|
67
|
+
type: Input
|
68
|
+
}], axClass: [{
|
69
|
+
type: Input
|
64
70
|
}] } });
|
65
|
-
//# sourceMappingURL=data:application/json;base64,
|
71
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJhci1tZW51LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9zcmMvbGliL3Rvb2xiYXIvbWVudS90b29sYmFyLW1lbnUuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3NyYy9saWIvdG9vbGJhci9tZW51L3Rvb2xiYXItbWVudS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQ0wsaUJBQWlCLEVBQ2pCLFNBQVMsRUFDVCxZQUFZLEVBQ1osWUFBWSxFQUNaLEtBQUssRUFDTCxNQUFNLEVBQ04sV0FBVyxFQUNYLFNBQVMsRUFDVCxpQkFBaUIsR0FDbEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUNMLGVBQWUsR0FFaEIsTUFBTSwyQkFBMkIsQ0FBQztBQUNuQyxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0saUJBQWlCLENBQUM7OztBQVFoRCxNQUFNLE9BQU8sc0JBQXVCLFNBQVEsYUFBYTtJQUNuQztJQUFwQixZQUFvQixHQUFzQjtRQUN4QyxLQUFLLEVBQUUsQ0FBQztRQURVLFFBQUcsR0FBSCxHQUFHLENBQW1CO0lBRTFDLENBQUM7SUFFb0MsSUFBSSxDQUFrQjtJQUczRCxXQUFXLEdBQ1QsSUFBSSxZQUFZLEVBQXdCLENBQUM7SUFHM0Msb0JBQW9CLENBQW1CO0lBRS9CL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uICAgIFtzZWxlY3Rpb25dPVwic2VsZWN0aW9uXCJcbiAgICAob25JdGVtQ2xpY2spPVwiaGFuZGxlSXRlbUNsaWNrKCRldmVudClcIlxuICAgIFttZW51VGVtcGxhdGVdPVwibWVudVRlbXBsYXRlXCJcbiAgICBbZmxvYXRQbGFjZW1uZXRdPVwiZmxvYXRQbGFjZW1uZXRcIlxuICAgIFthdHRyLmlkXT1cImF4SWQgPyBheElkICsgJy1tZW51JyA6IG51bGxcIlxuICAgIFthdHRyLmNsYXNzXT1cImF4Q2xhc3NcIlxuICA+XG4gIDwvYXgtbWVudT5cbjwvZGl2PlxuIl19
|
@@ -23,6 +23,8 @@ export class AXToolbarSearchComponent {
|
|
23
23
|
});
|
24
24
|
}
|
25
25
|
}
|
26
|
+
axId;
|
27
|
+
axClass;
|
26
28
|
focus() {
|
27
29
|
this.inputSearch.nativeElement.focus();
|
28
30
|
}
|
@@ -40,11 +42,11 @@ export class AXToolbarSearchComponent {
|
|
40
42
|
this.searchChangeObserver.next(text);
|
41
43
|
}
|
42
44
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXToolbarSearchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
43
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXToolbarSearchComponent, selector: "ax-toolbar-search", inputs: { text: "text" }, outputs: { onValueChanged: "onValueChanged" }, providers: [{ provide: AXToolbarItem, useExisting: AXToolbarSearchComponent }], viewQueries: [{ propertyName: "inputSearch", first: true, predicate: ["input"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"search-bar\">\n <input #input type=\"text\" placeholder=\"\u062C\u0633\u062A\u062C\u0648 ...\" (input)=\"onSearchChanged($event.target.value)\" />\n <i class=\"far fa-search text-secondary\"></i>\n</div
|
45
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXToolbarSearchComponent, selector: "ax-toolbar-search", inputs: { text: "text", axId: "axId", axClass: "axClass" }, outputs: { onValueChanged: "onValueChanged" }, providers: [{ provide: AXToolbarItem, useExisting: AXToolbarSearchComponent }], viewQueries: [{ propertyName: "inputSearch", first: true, predicate: ["input"], descendants: true, static: true }], ngImport: i0, template: "<div \n class=\"search-bar {{axClass}}\" \n [attr.id]=\"axId\"\n>\n <input \n #input \n type=\"text\" \n placeholder=\"\u062C\u0633\u062A\u062C\u0648 ...\" \n (input)=\"onSearchChanged($event.target.value)\" \n [attr.id]=\"axId ? axId + '-input' : null\"\n [attr.class]=\"axClass ? axClass + '-input' : null\"\n />\n <i \n class=\"far fa-search text-secondary\"\n [attr.id]=\"axId ? axId + '-icon' : null\"\n [attr.class]=\"axClass ? axClass + '-icon' : null\"\n ></i>\n</div>\n", styles: [".search-bar{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--ax-border-color);border-radius:var(--ax-size-border-radius);padding:.3em .6em;background:var(--ax-white-color)}.search-bar input{border:none!important;background-color:transparent;outline-color:transparent!important;flex:1;font-family:inherit;font-size:inherit}.search-bar input::placeholder{color:var(--ax-gray-color)}.search-bar i{color:var(--ax-gray-color)}\n"] });
|
44
46
|
}
|
45
47
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXToolbarSearchComponent, decorators: [{
|
46
48
|
type: Component,
|
47
|
-
args: [{ selector: 'ax-toolbar-search', providers: [{ provide: AXToolbarItem, useExisting: AXToolbarSearchComponent }], template: "<div class=\"search-bar\">\n <input #input type=\"text\" placeholder=\"\u062C\u0633\u062A\u062C\u0648 ...\" (input)=\"onSearchChanged($event.target.value)\" />\n <i class=\"far fa-search text-secondary\"></i>\n</div
|
49
|
+
args: [{ selector: 'ax-toolbar-search', providers: [{ provide: AXToolbarItem, useExisting: AXToolbarSearchComponent }], template: "<div \n class=\"search-bar {{axClass}}\" \n [attr.id]=\"axId\"\n>\n <input \n #input \n type=\"text\" \n placeholder=\"\u062C\u0633\u062A\u062C\u0648 ...\" \n (input)=\"onSearchChanged($event.target.value)\" \n [attr.id]=\"axId ? axId + '-input' : null\"\n [attr.class]=\"axClass ? axClass + '-input' : null\"\n />\n <i \n class=\"far fa-search text-secondary\"\n [attr.id]=\"axId ? axId + '-icon' : null\"\n [attr.class]=\"axClass ? axClass + '-icon' : null\"\n ></i>\n</div>\n", styles: [".search-bar{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--ax-border-color);border-radius:var(--ax-size-border-radius);padding:.3em .6em;background:var(--ax-white-color)}.search-bar input{border:none!important;background-color:transparent;outline-color:transparent!important;flex:1;font-family:inherit;font-size:inherit}.search-bar input::placeholder{color:var(--ax-gray-color)}.search-bar i{color:var(--ax-gray-color)}\n"] }]
|
48
50
|
}], ctorParameters: () => [], propDecorators: { inputSearch: [{
|
49
51
|
type: ViewChild,
|
50
52
|
args: ['input', { static: true }]
|
@@ -52,5 +54,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
|
|
52
54
|
type: Output
|
53
55
|
}], text: [{
|
54
56
|
type: Input
|
57
|
+
}], axId: [{
|
58
|
+
type: Input
|
59
|
+
}], axClass: [{
|
60
|
+
type: Input
|
55
61
|
}] } });
|
56
|
-
//# sourceMappingURL=data:application/json;base64,
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJhci1zZWFyY2guY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3NyYy9saWIvdG9vbGJhci9zZWFyY2gvdG9vbGJhci1zZWFyY2guY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3NyYy9saWIvdG9vbGJhci9zZWFyY2gvdG9vbGJhci1zZWFyY2guY29tcG9uZW50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+3,8 @@ import { AXToolbarItem } from '../toolbar-item';
|
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
import * as i1 from "@angular/common";
|
5
5
|
export class AXToolbarTitleComponent {
|
6
|
-
|
6
|
+
axId;
|
7
|
+
axClass;
|
7
8
|
_text;
|
8
9
|
get text() {
|
9
10
|
return this._text;
|
@@ -14,24 +15,38 @@ export class AXToolbarTitleComponent {
|
|
14
15
|
}
|
15
16
|
}
|
16
17
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXToolbarTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
17
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXToolbarTitleComponent, selector: "ax-toolbar-title", inputs: { text: "text" }, providers: [{ provide: AXToolbarItem, useExisting: AXToolbarTitleComponent }], ngImport: i0, template: `
|
18
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXToolbarTitleComponent, selector: "ax-toolbar-title", inputs: { axId: "axId", axClass: "axClass", text: "text" }, providers: [{ provide: AXToolbarItem, useExisting: AXToolbarTitleComponent }], ngImport: i0, template: `
|
18
19
|
<ng-container *ngIf="text; else elseTemplate">
|
19
|
-
|
20
|
+
<div
|
21
|
+
class="title {{axClass}}"
|
22
|
+
[attr.id]="axId">
|
23
|
+
{{text}}
|
24
|
+
</div>
|
20
25
|
</ng-container>
|
21
26
|
<ng-template #elseTemplate>
|
22
27
|
<ng-content></ng-content>
|
23
|
-
</ng-template
|
28
|
+
</ng-template>
|
29
|
+
`, isInline: true, styles: [".title{height:100%;display:flex;align-items:center}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
24
30
|
}
|
25
31
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXToolbarTitleComponent, decorators: [{
|
26
32
|
type: Component,
|
27
33
|
args: [{ selector: 'ax-toolbar-title', template: `
|
28
34
|
<ng-container *ngIf="text; else elseTemplate">
|
29
|
-
|
35
|
+
<div
|
36
|
+
class="title {{axClass}}"
|
37
|
+
[attr.id]="axId">
|
38
|
+
{{text}}
|
39
|
+
</div>
|
30
40
|
</ng-container>
|
31
41
|
<ng-template #elseTemplate>
|
32
42
|
<ng-content></ng-content>
|
33
|
-
</ng-template
|
34
|
-
|
43
|
+
</ng-template>
|
44
|
+
`, providers: [{ provide: AXToolbarItem, useExisting: AXToolbarTitleComponent }], styles: [".title{height:100%;display:flex;align-items:center}\n"] }]
|
45
|
+
}], propDecorators: { axId: [{
|
46
|
+
type: Input
|
47
|
+
}], axClass: [{
|
48
|
+
type: Input
|
49
|
+
}], text: [{
|
35
50
|
type: Input
|
36
51
|
}] } });
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbGJhci10aXRsZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvc3JjL2xpYi90b29sYmFyL3RpdGxlL3Rvb2xiYXItdGl0bGUuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2pELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7O0FBeUJoRCxNQUFNLE9BQU8sdUJBQXVCO0lBQ3ZCLElBQUksQ0FBUztJQUViLE9BQU8sQ0FBUztJQUVqQixLQUFLLENBQVM7SUFDdEIsSUFDVyxJQUFJO1FBQ1gsT0FBTyxJQUFJLENBQUMsS0FBSyxDQUF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ge3t0ZXh0fX1cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgPG5nLXRlbXBsYXRlICNlbHNlVGVtcGxhdGU+XG4gICAgICAgICAgICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG4gICAgICAgIDwvbmctdGVtcGxhdGU+XG4gICAgYCxcbiAgICBzdHlsZXM6IFtgXG4gICAgICAgIC50aXRsZSB7XG4gICAgICAgICAgICBoZWlnaHQ6IDEwMCU7XG4gICAgICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgfVxuICAgIGBdLFxuICAgIHByb3ZpZGVyczogW3sgcHJvdmlkZTogQVhUb29sYmFySXRlbSwgdXNlRXhpc3Rpbmc6IEFYVG9vbGJhclRpdGxlQ29tcG9uZW50IH1dXG59KVxuZXhwb3J0IGNsYXNzIEFYVG9vbGJhclRpdGxlQ29tcG9uZW50IHtcbiAgICBASW5wdXQoKSBheElkOiBzdHJpbmc7XG4gICAgXG4gICAgQElucHV0KCkgYXhDbGFzczogc3RyaW5nO1xuXG4gICAgcHJpdmF0ZSBfdGV4dDogc3RyaW5nO1xuICAgIEBJbnB1dCgpXG4gICAgcHVibGljIGdldCB0ZXh0KCk6IHN0cmluZyB7XG4gICAgICAgIHJldHVybiB0aGlzLl90ZXh0O1xuICAgIH1cbiAgICBwdWJsaWMgc2V0IHRleHQodjogc3RyaW5nKSB7XG4gICAgICAgIGlmICh2ICE9PSB0aGlzLl90ZXh0KSB7XG4gICAgICAgICAgICB0aGlzLl90ZXh0ID0gdjtcbiAgICAgICAgfVxuICAgIH1cbn1cbiJdfQ==
|
@@ -1,13 +1,19 @@
|
|
1
|
-
import { Component, ViewEncapsulation } from '@angular/core';
|
1
|
+
import { Component, Input, ViewEncapsulation } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
export class AXToolbarComponent {
|
4
4
|
constructor() { }
|
5
5
|
ngOnInit() { }
|
6
|
+
axId;
|
7
|
+
axClass;
|
6
8
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
7
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXToolbarComponent, selector: "ax-toolbar", ngImport: i0, template: "<div class=\"ax-toolbar\">\n
|
9
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.7", type: AXToolbarComponent, selector: "ax-toolbar", inputs: { axId: "axId", axClass: "axClass" }, ngImport: i0, template: "<div \n class=\"ax-toolbar {{axClass}}\" \n [attr.id]=\"axId\"\n>\n <ng-content></ng-content>\n</div>\n", styles: ["ax-toolbar{width:100%}ax-toolbar .ax-toolbar{display:flex;width:100%;justify-content:space-between;align-items:center}\n"], encapsulation: i0.ViewEncapsulation.None });
|
8
10
|
}
|
9
11
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImport: i0, type: AXToolbarComponent, decorators: [{
|
10
12
|
type: Component,
|
11
|
-
args: [{ selector: 'ax-toolbar', encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-toolbar\">\n
|
12
|
-
}], ctorParameters: () => []
|
13
|
-
|
13
|
+
args: [{ selector: 'ax-toolbar', encapsulation: ViewEncapsulation.None, template: "<div \n class=\"ax-toolbar {{axClass}}\" \n [attr.id]=\"axId\"\n>\n <ng-content></ng-content>\n</div>\n", styles: ["ax-toolbar{width:100%}ax-toolbar .ax-toolbar{display:flex;width:100%;justify-content:space-between;align-items:center}\n"] }]
|
14
|
+
}], ctorParameters: () => [], propDecorators: { axId: [{
|
15
|
+
type: Input
|
16
|
+
}], axClass: [{
|
17
|
+
type: Input
|
18
|
+
}] } });
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJ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