@acorex/components 18.9.5 → 18.9.7
Sign up to get free protection for your applications and to get access to all the features.
- package/drawer/index.d.ts +2 -2
- package/drawer/lib/{drawer-container.component.d.ts → drawer/drawer-container/drawer-container.component.d.ts} +3 -4
- package/drawer/lib/drawer/drawer-item/drawer.component.d.ts +65 -0
- package/drawer/lib/drawer.module.d.ts +2 -2
- package/drawer/lib/drawer.service.d.ts +7 -0
- package/esm2022/calendar/lib/calendar-range.component.mjs +28 -6
- package/esm2022/calendar/lib/calendar.component.mjs +2 -2
- package/esm2022/decorators/lib/components/close-button.component.mjs +3 -2
- package/esm2022/drawer/index.mjs +3 -3
- package/esm2022/drawer/lib/drawer/drawer-container/drawer-container.component.mjs +34 -0
- package/esm2022/drawer/lib/drawer/drawer-item/drawer.component.mjs +151 -0
- package/esm2022/drawer/lib/drawer.module.mjs +3 -3
- package/esm2022/drawer/lib/drawer.service.mjs +13 -0
- package/esm2022/paint/lib/paint.module.mjs +2 -2
- package/fesm2022/acorex-components-calendar.mjs +26 -5
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +1 -0
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer.mjs +75 -173
- package/fesm2022/acorex-components-drawer.mjs.map +1 -1
- package/fesm2022/acorex-components-paint.mjs +2 -2
- package/fesm2022/acorex-components-paint.mjs.map +1 -1
- package/package.json +72 -72
- package/drawer/lib/drawer.component.d.ts +0 -143
- package/esm2022/drawer/lib/drawer-container.component.mjs +0 -40
- package/esm2022/drawer/lib/drawer.component.mjs +0 -252
@@ -1,45 +1,49 @@
|
|
1
|
-
import {
|
1
|
+
import { CommonModule } from '@angular/common';
|
2
2
|
import * as i0 from '@angular/core';
|
3
|
-
import { Component, ChangeDetectionStrategy, ViewEncapsulation,
|
3
|
+
import { signal, Injectable, inject, afterNextRender, Component, ChangeDetectionStrategy, ViewEncapsulation, model, input, effect, HostBinding, NgModule } from '@angular/core';
|
4
|
+
import { MXBaseComponent, AXComponent, AXClosbaleComponent } from '@acorex/components/common';
|
4
5
|
import { isBrowser } from '@acorex/core/platform';
|
5
|
-
|
6
|
+
|
7
|
+
class AXDrawerService {
|
8
|
+
constructor() {
|
9
|
+
this.drawerElements = signal(null);
|
10
|
+
}
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXDrawerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
12
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXDrawerService }); }
|
13
|
+
}
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXDrawerService, decorators: [{
|
15
|
+
type: Injectable
|
16
|
+
}] });
|
6
17
|
|
7
18
|
/**
|
8
19
|
* A container component that organizes and positions drawer components.
|
9
20
|
* @category component
|
10
21
|
*/
|
11
22
|
class AXDrawerContainerComponent extends MXBaseComponent {
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
.
|
19
|
-
|
20
|
-
? host.classList.add('ax-visible')
|
21
|
-
: host.classList.remove('ax-visible');
|
23
|
+
constructor() {
|
24
|
+
super();
|
25
|
+
this.service = inject(AXDrawerService);
|
26
|
+
afterNextRender(() => {
|
27
|
+
const host = this.getHostElement();
|
28
|
+
const drawerClasses = Array.from(host.querySelectorAll(`ax-drawer`)).map((c) => c['__axContext__']);
|
29
|
+
this.service.drawerElements.set(drawerClasses);
|
30
|
+
});
|
22
31
|
}
|
23
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXDrawerContainerComponent, deps:
|
24
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXDrawerContainerComponent, selector: "ax-drawer-container", usesInheritance: true, ngImport: i0, template: `
|
32
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXDrawerContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
33
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXDrawerContainerComponent, selector: "ax-drawer-container", providers: [AXDrawerService], usesInheritance: true, ngImport: i0, template: `
|
25
34
|
<ng-content select="ax-drawer[location='start']"> </ng-content>
|
26
35
|
<ng-content select="ax-content"> </ng-content>
|
27
36
|
<ng-content select="ax-drawer[location='end']"> </ng-content>
|
28
|
-
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
37
|
+
`, isInline: true, styles: ["ax-drawer-container{position:relative;display:flex;height:100%;width:100%;overflow:hidden}ax-drawer-container.ax-fixed{bottom:0;inset-inline-end:0px;inset-inline-start:0px;top:0;z-index:50;display:none}ax-drawer-container.ax-fixed.ax-visible{display:flex}ax-drawer-container .ax-backdrop{position:absolute;bottom:0;top:0;z-index:10;height:100%;width:100%;background-color:#0003;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}ax-drawer-container>ax-content{height:100%;flex:1 1 0%;overflow:auto}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
29
38
|
}
|
30
39
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXDrawerContainerComponent, decorators: [{
|
31
40
|
type: Component,
|
32
|
-
args: [{
|
33
|
-
selector: 'ax-drawer-container',
|
34
|
-
template: `
|
41
|
+
args: [{ selector: 'ax-drawer-container', template: `
|
35
42
|
<ng-content select="ax-drawer[location='start']"> </ng-content>
|
36
43
|
<ng-content select="ax-content"> </ng-content>
|
37
44
|
<ng-content select="ax-drawer[location='end']"> </ng-content>
|
38
|
-
`,
|
39
|
-
|
40
|
-
encapsulation: ViewEncapsulation.None,
|
41
|
-
}]
|
42
|
-
}] });
|
45
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [AXDrawerService], styles: ["ax-drawer-container{position:relative;display:flex;height:100%;width:100%;overflow:hidden}ax-drawer-container.ax-fixed{bottom:0;inset-inline-end:0px;inset-inline-start:0px;top:0;z-index:50;display:none}ax-drawer-container.ax-fixed.ax-visible{display:flex}ax-drawer-container .ax-backdrop{position:absolute;bottom:0;top:0;z-index:10;height:100%;width:100%;background-color:#0003;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}ax-drawer-container>ax-content{height:100%;flex:1 1 0%;overflow:auto}\n"] }]
|
46
|
+
}], ctorParameters: () => [] });
|
43
47
|
|
44
48
|
/**
|
45
49
|
* A component that represents a drawer with header and content sections.
|
@@ -53,122 +57,28 @@ class AXDrawerComponent extends MXBaseComponent {
|
|
53
57
|
constructor(_zone) {
|
54
58
|
super();
|
55
59
|
this._zone = _zone;
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
this.
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
this._showBackdrop = true;
|
70
|
-
/**
|
71
|
-
* Emitted when the drawer mode changes.
|
72
|
-
*
|
73
|
-
* @event
|
74
|
-
*/
|
75
|
-
this.modeChange = new EventEmitter();
|
76
|
-
/**
|
77
|
-
* @ignore
|
78
|
-
*/
|
79
|
-
this._mode = 'overlay';
|
80
|
-
/**
|
81
|
-
* Emitted when the collapsed state of the drawer changes.
|
82
|
-
*
|
83
|
-
* @event
|
84
|
-
*/
|
85
|
-
this.collapsedChange = new EventEmitter();
|
86
|
-
/**
|
87
|
-
* @ignore
|
88
|
-
*/
|
89
|
-
this._collapsed = true;
|
90
|
-
/**
|
91
|
-
* @ignore
|
92
|
-
*/
|
93
|
-
this._loaded = false;
|
94
|
-
}
|
95
|
-
/**
|
96
|
-
* Gets the location of the drawer.
|
97
|
-
*/
|
98
|
-
get location() {
|
99
|
-
return this._location;
|
100
|
-
}
|
101
|
-
/**
|
102
|
-
* Sets the location of the drawer.
|
103
|
-
*
|
104
|
-
* @param v The new location of the drawer.
|
105
|
-
*/
|
106
|
-
set location(v) {
|
107
|
-
this.setOption({
|
108
|
-
name: 'location',
|
109
|
-
value: v,
|
110
|
-
});
|
111
|
-
}
|
112
|
-
/**
|
113
|
-
* Gets whether the backdrop is shown.
|
114
|
-
*/
|
115
|
-
get showBackdrop() {
|
116
|
-
return this._showBackdrop;
|
117
|
-
}
|
118
|
-
/**
|
119
|
-
* Sets whether the backdrop should be shown.
|
120
|
-
*
|
121
|
-
* @param v
|
122
|
-
*/
|
123
|
-
set showBackdrop(v) {
|
124
|
-
this.setOption({
|
125
|
-
name: 'showBackdrop',
|
126
|
-
value: v,
|
127
|
-
});
|
128
|
-
}
|
129
|
-
/**
|
130
|
-
* Gets the current mode of the drawer.
|
131
|
-
*/
|
132
|
-
get mode() {
|
133
|
-
return this._mode;
|
134
|
-
}
|
135
|
-
/**
|
136
|
-
* Sets the mode of the drawer.
|
137
|
-
*
|
138
|
-
* @param v The new mode to set.
|
139
|
-
*/
|
140
|
-
set mode(v) {
|
141
|
-
this.setOption({
|
142
|
-
name: 'mode',
|
143
|
-
value: v,
|
144
|
-
});
|
145
|
-
}
|
146
|
-
/**
|
147
|
-
* Gets the collapsed state of the drawer.
|
148
|
-
*/
|
149
|
-
get collapsed() {
|
150
|
-
return this._collapsed;
|
151
|
-
}
|
152
|
-
/**
|
153
|
-
* Sets the collapsed state of the drawer.
|
154
|
-
*
|
155
|
-
* @param v The new collapsed state.
|
156
|
-
*/
|
157
|
-
set collapsed(v) {
|
158
|
-
this.setOption({
|
159
|
-
name: 'collapsed',
|
160
|
-
value: v,
|
161
|
-
});
|
60
|
+
this.location = model('start');
|
61
|
+
this.showBackdrop = input(true);
|
62
|
+
this.mode = model('overlay');
|
63
|
+
this.collapsed = model(true);
|
64
|
+
this.multiple = input(false);
|
65
|
+
this.backdropElement = signal(null);
|
66
|
+
this.loaded = signal(false);
|
67
|
+
this.service = inject(AXDrawerService);
|
68
|
+
effect(() => {
|
69
|
+
if (this.mode() === 'overlay' && !this.collapsed() && this.showBackdrop()) {
|
70
|
+
this._addBackdrop();
|
71
|
+
}
|
72
|
+
}, { allowSignalWrites: true });
|
162
73
|
}
|
163
74
|
/**
|
164
75
|
* @ignore
|
165
76
|
*/
|
166
77
|
ngAfterContentInit() {
|
167
78
|
this._detectBoundingSize();
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
this._checkProps();
|
79
|
+
setTimeout(() => {
|
80
|
+
this.loaded.set(true);
|
81
|
+
}, 5000);
|
172
82
|
}
|
173
83
|
/**
|
174
84
|
* @ignore
|
@@ -187,40 +97,45 @@ class AXDrawerComponent extends MXBaseComponent {
|
|
187
97
|
}
|
188
98
|
});
|
189
99
|
}
|
190
|
-
/**
|
191
|
-
* @ignore
|
192
|
-
*/
|
193
|
-
_checkProps() {
|
194
|
-
this._detectBoundingSize();
|
195
|
-
this._removeBackdrop();
|
196
|
-
if (this.mode == 'overlay' && !this.collapsed && this.showBackdrop) {
|
197
|
-
this._addBackdrop();
|
198
|
-
}
|
199
|
-
}
|
200
100
|
/**
|
201
101
|
* Toggles the collapsed state of the drawer.
|
202
102
|
*/
|
203
103
|
toggle() {
|
204
|
-
|
104
|
+
if (!this.multiple()) {
|
105
|
+
this.service.drawerElements().forEach((element) => {
|
106
|
+
if (element.location() === this.location() && element.id !== this.id) {
|
107
|
+
element.close();
|
108
|
+
}
|
109
|
+
});
|
110
|
+
}
|
111
|
+
this.collapsed.update((prev) => !prev);
|
205
112
|
}
|
206
113
|
/**
|
207
114
|
* Collapses the drawer.
|
208
115
|
* @ignore
|
209
116
|
*/
|
210
117
|
close() {
|
211
|
-
this.
|
118
|
+
this._removeBackdrop();
|
119
|
+
this.collapsed.set(true);
|
212
120
|
}
|
213
121
|
/**
|
214
122
|
* Expands the drawer.
|
215
123
|
*/
|
216
124
|
open() {
|
217
|
-
this.
|
125
|
+
if (!this.multiple()) {
|
126
|
+
this.service.drawerElements().forEach((element) => {
|
127
|
+
if (element.location() === this.location() && element.id !== this.id) {
|
128
|
+
element.close();
|
129
|
+
}
|
130
|
+
});
|
131
|
+
}
|
132
|
+
this.collapsed.set(false);
|
218
133
|
}
|
219
134
|
/**
|
220
135
|
* @ignore
|
221
136
|
*/
|
222
137
|
get __hostClass() {
|
223
|
-
return `ax-drawer-${this.mode} ax-drawer-${this.location} ${this.collapsed ? 'ax-collapsed' : 'ax-expanded'} ${this.
|
138
|
+
return `ax-drawer-${this.mode()} ax-drawer-${this.location()} ${this.collapsed() ? 'ax-collapsed' : 'ax-expanded'} ${this.loaded() ? 'ax-state-loaded' : ''}`;
|
224
139
|
}
|
225
140
|
/**
|
226
141
|
* @ignore
|
@@ -228,14 +143,15 @@ class AXDrawerComponent extends MXBaseComponent {
|
|
228
143
|
_addBackdrop() {
|
229
144
|
if (isBrowser()) {
|
230
145
|
this._zone.runOutsideAngular(() => {
|
231
|
-
|
232
|
-
|
233
|
-
|
146
|
+
const backDropElem = document.createElement('div');
|
147
|
+
backDropElem.classList.add('ax-backdrop');
|
148
|
+
backDropElem.onclick = () => {
|
234
149
|
this._zone.run(() => {
|
235
150
|
this.close();
|
236
151
|
});
|
237
152
|
};
|
238
|
-
this.getHostElement()?.parentElement?.appendChild(
|
153
|
+
this.getHostElement()?.parentElement?.appendChild(backDropElem);
|
154
|
+
this.backdropElement.set(backDropElem);
|
239
155
|
});
|
240
156
|
}
|
241
157
|
}
|
@@ -245,21 +161,21 @@ class AXDrawerComponent extends MXBaseComponent {
|
|
245
161
|
_removeBackdrop() {
|
246
162
|
if (isBrowser()) {
|
247
163
|
this._zone.runOutsideAngular(() => {
|
248
|
-
if (this.
|
249
|
-
this.getHostElement()?.parentElement?.removeChild(this.
|
250
|
-
this.
|
164
|
+
if (this.backdropElement()) {
|
165
|
+
this.getHostElement()?.parentElement?.removeChild(this.backdropElement());
|
166
|
+
this.backdropElement.set(null);
|
251
167
|
}
|
252
168
|
});
|
253
169
|
}
|
254
170
|
}
|
255
171
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXDrawerComponent, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
256
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
172
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.0", type: AXDrawerComponent, selector: "ax-drawer", inputs: { location: { classPropertyName: "location", publicName: "location", isSignal: true, isRequired: false, transformFunction: null }, showBackdrop: { classPropertyName: "showBackdrop", publicName: "showBackdrop", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { location: "locationChange", mode: "modeChange", collapsed: "collapsedChange" }, host: { properties: { "class": "this.__hostClass" } }, providers: [
|
257
173
|
{ provide: AXComponent, useExisting: AXDrawerComponent },
|
258
174
|
{ provide: AXClosbaleComponent, useExisting: AXDrawerComponent },
|
259
175
|
], usesInheritance: true, ngImport: i0, template: `
|
260
176
|
<ng-content select="ax-header"></ng-content>
|
261
177
|
<ng-content select="ax-content"></ng-content>
|
262
|
-
`, isInline: true, styles: ["ax-drawer
|
178
|
+
`, isInline: true, styles: ["ax-drawer{display:flex;height:100%;max-width:95%;flex-direction:column;background-color:rgba(var(--ax-color-surface))}ax-drawer.ax-state-loaded{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}ax-drawer ax-header,ax-drawer ax-footer{padding:.75rem}ax-drawer ax-footer{border-top-width:1px;border-color:rgba(var(--ax-color-border-default))}ax-drawer ax-header{border-bottom-width:1px;border-color:rgba(var(--ax-color-border-default))}ax-drawer>ax-content{flex:1 1 0%;overflow:auto}ax-drawer.ax-drawer-overlay{position:absolute}ax-drawer.ax-drawer-overlay.ax-expanded{z-index:20}ax-drawer.ax-drawer-overlay.ax-collapsed{z-index:0}ax-drawer.ax-drawer-overlay.ax-drawer-start.ax-expanded{inset-inline-start:0px}ax-drawer.ax-drawer-overlay.ax-drawer-start.ax-collapsed{inset-inline-start:calc(-1 * var(--ax-el-width))}ax-drawer.ax-drawer-overlay.ax-drawer-end.ax-expanded{inset-inline-end:0px}ax-drawer.ax-drawer-overlay.ax-drawer-end.ax-collapsed{inset-inline-end:calc(-1 * var(--ax-el-width))}ax-drawer.ax-drawer-push{flex:0 1 auto}ax-drawer.ax-drawer-push.ax-drawer-start{order:-9999}ax-drawer.ax-drawer-push.ax-drawer-start.ax-expanded{margin-inline-start:0px;z-index:20}ax-drawer.ax-drawer-push.ax-drawer-start.ax-collapsed{margin-inline-start:calc(-1 * var(--ax-el-width));z-index:0}ax-drawer.ax-drawer-push.ax-drawer-end{order:9999}ax-drawer.ax-drawer-push.ax-drawer-end.ax-expanded{margin-inline-end:0px;z-index:20}ax-drawer.ax-drawer-push.ax-drawer-end.ax-collapsed{margin-inline-end:calc(-1 * var(--ax-el-width));z-index:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
263
179
|
}
|
264
180
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXDrawerComponent, decorators: [{
|
265
181
|
type: Component,
|
@@ -269,22 +185,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
269
185
|
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
|
270
186
|
{ provide: AXComponent, useExisting: AXDrawerComponent },
|
271
187
|
{ provide: AXClosbaleComponent, useExisting: AXDrawerComponent },
|
272
|
-
], styles: ["ax-drawer
|
273
|
-
}], ctorParameters: () => [{ type: i0.NgZone }], propDecorators: {
|
274
|
-
type: Output
|
275
|
-
}], location: [{
|
276
|
-
type: Input
|
277
|
-
}], showBackdrop: [{
|
278
|
-
type: Input
|
279
|
-
}], modeChange: [{
|
280
|
-
type: Output
|
281
|
-
}], mode: [{
|
282
|
-
type: Input
|
283
|
-
}], collapsedChange: [{
|
284
|
-
type: Output
|
285
|
-
}], collapsed: [{
|
286
|
-
type: Input
|
287
|
-
}], __hostClass: [{
|
188
|
+
], styles: ["ax-drawer{display:flex;height:100%;max-width:95%;flex-direction:column;background-color:rgba(var(--ax-color-surface))}ax-drawer.ax-state-loaded{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}ax-drawer ax-header,ax-drawer ax-footer{padding:.75rem}ax-drawer ax-footer{border-top-width:1px;border-color:rgba(var(--ax-color-border-default))}ax-drawer ax-header{border-bottom-width:1px;border-color:rgba(var(--ax-color-border-default))}ax-drawer>ax-content{flex:1 1 0%;overflow:auto}ax-drawer.ax-drawer-overlay{position:absolute}ax-drawer.ax-drawer-overlay.ax-expanded{z-index:20}ax-drawer.ax-drawer-overlay.ax-collapsed{z-index:0}ax-drawer.ax-drawer-overlay.ax-drawer-start.ax-expanded{inset-inline-start:0px}ax-drawer.ax-drawer-overlay.ax-drawer-start.ax-collapsed{inset-inline-start:calc(-1 * var(--ax-el-width))}ax-drawer.ax-drawer-overlay.ax-drawer-end.ax-expanded{inset-inline-end:0px}ax-drawer.ax-drawer-overlay.ax-drawer-end.ax-collapsed{inset-inline-end:calc(-1 * var(--ax-el-width))}ax-drawer.ax-drawer-push{flex:0 1 auto}ax-drawer.ax-drawer-push.ax-drawer-start{order:-9999}ax-drawer.ax-drawer-push.ax-drawer-start.ax-expanded{margin-inline-start:0px;z-index:20}ax-drawer.ax-drawer-push.ax-drawer-start.ax-collapsed{margin-inline-start:calc(-1 * var(--ax-el-width));z-index:0}ax-drawer.ax-drawer-push.ax-drawer-end{order:9999}ax-drawer.ax-drawer-push.ax-drawer-end.ax-expanded{margin-inline-end:0px;z-index:20}ax-drawer.ax-drawer-push.ax-drawer-end.ax-collapsed{margin-inline-end:calc(-1 * var(--ax-el-width));z-index:0}\n"] }]
|
189
|
+
}], ctorParameters: () => [{ type: i0.NgZone }], propDecorators: { __hostClass: [{
|
288
190
|
type: HostBinding,
|
289
191
|
args: ['class']
|
290
192
|
}] } });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-components-drawer.mjs","sources":["../../../../libs/components/drawer/src/lib/drawer-container.component.ts","../../../../libs/components/drawer/src/lib/drawer.component.ts","../../../../libs/components/drawer/src/lib/drawer.module.ts","../../../../libs/components/drawer/src/acorex-components-drawer.ts"],"sourcesContent":["import { MXBaseComponent } from '@acorex/components/common';\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { AXDrawerComponent } from './drawer.component';\n\n/**\n * A container component that organizes and positions drawer components.\n * @category component\n */\n@Component({\n selector: 'ax-drawer-container',\n template: `\n <ng-content select=\"ax-drawer[location='start']\"> </ng-content>\n <ng-content select=\"ax-content\"> </ng-content>\n <ng-content select=\"ax-drawer[location='end']\"> </ng-content>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AXDrawerContainerComponent extends MXBaseComponent {\n /**\n * @ignore\n */\n ngDoCheck() {\n const host = this.getHostElement();\n Array.from(host.querySelectorAll('ax-drawer'))\n .map((c) => c['__axContext__'] as AXDrawerComponent)\n .some((c) => !c?.collapsed)\n ? host.classList.add('ax-visible')\n : host.classList.remove('ax-visible');\n }\n}\n","import { AXClosbaleComponent, AXComponent, MXBaseComponent, MXComponentOptionChanged } from '@acorex/components/common';\nimport { isBrowser } from '@acorex/core/platform';\nimport { ChangeDetectionStrategy, Component, EventEmitter, HostBinding, Input, NgZone, Output, ViewEncapsulation } from '@angular/core';\n\nexport type AXDrawerMode = 'push' | 'overlay';\nexport type AXDrawerLocation = 'start' | 'end';\n\n/**\n * A component that represents a drawer with header and content sections.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-drawer',\n template: `\n <ng-content select=\"ax-header\"></ng-content>\n <ng-content select=\"ax-content\"></ng-content>\n `,\n styleUrls: ['./drawer.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n { provide: AXComponent, useExisting: AXDrawerComponent },\n { provide: AXClosbaleComponent, useExisting: AXDrawerComponent },\n ],\n})\nexport class AXDrawerComponent extends MXBaseComponent {\n /**\n * @ignore\n */\n constructor(private _zone: NgZone) {\n super();\n }\n\n /**\n * Emits when the drawer's location changes.\n *\n * @event\n */\n @Output()\n public locationChange: EventEmitter<AXDrawerLocation> = new EventEmitter<AXDrawerLocation>();\n\n /**\n * @ignore\n */\n private _location: AXDrawerLocation = 'start';\n\n /**\n * Gets the location of the drawer.\n */\n @Input()\n public get location(): AXDrawerLocation {\n return this._location;\n }\n\n /**\n * Sets the location of the drawer.\n *\n * @param v The new location of the drawer.\n */\n public set location(v: AXDrawerLocation) {\n this.setOption({\n name: 'location',\n value: v,\n });\n }\n\n /**\n * @ignore\n */\n private _showBackdrop: boolean = true;\n\n /**\n * Gets whether the backdrop is shown.\n */\n @Input()\n public get showBackdrop(): boolean {\n return this._showBackdrop;\n }\n\n /**\n * Sets whether the backdrop should be shown.\n *\n * @param v\n */\n public set showBackdrop(v: boolean) {\n this.setOption({\n name: 'showBackdrop',\n value: v,\n });\n }\n\n /**\n * Emitted when the drawer mode changes.\n *\n * @event\n */\n @Output()\n public modeChange: EventEmitter<AXDrawerMode> = new EventEmitter<AXDrawerMode>();\n\n /**\n * @ignore\n */\n private _mode: AXDrawerMode = 'overlay';\n\n /**\n * Gets the current mode of the drawer.\n */\n @Input()\n public get mode(): AXDrawerMode {\n return this._mode;\n }\n\n /**\n * Sets the mode of the drawer.\n *\n * @param v The new mode to set.\n */\n public set mode(v: AXDrawerMode) {\n this.setOption({\n name: 'mode',\n value: v,\n });\n }\n\n /**\n * Emitted when the collapsed state of the drawer changes.\n *\n * @event\n */\n @Output()\n public collapsedChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n /**\n * @ignore\n */\n private _collapsed = true;\n\n /**\n * Gets the collapsed state of the drawer.\n */\n @Input()\n public get collapsed(): boolean {\n return this._collapsed;\n }\n\n /**\n * Sets the collapsed state of the drawer.\n *\n * @param v The new collapsed state.\n */\n public set collapsed(v: boolean) {\n this.setOption({\n name: 'collapsed',\n value: v,\n });\n }\n\n /**\n * @ignore\n */\n ngAfterContentInit(): void {\n this._detectBoundingSize();\n this._loaded = true;\n }\n\n override internalOptionChanged(option: MXComponentOptionChanged): void {\n this._checkProps();\n }\n\n /**\n * @ignore\n */\n ngDoCheck() {\n this._detectBoundingSize();\n }\n\n /**\n * @ignore\n */\n private _detectBoundingSize() {\n this._zone.runOutsideAngular(() => {\n const host = this.getHostElement();\n if (host.clientWidth) {\n host.style.setProperty('--ax-el-width', `${host.clientWidth}px`);\n }\n });\n }\n\n /**\n * @ignore\n */\n private _checkProps() {\n this._detectBoundingSize();\n this._removeBackdrop();\n if (this.mode == 'overlay' && !this.collapsed && this.showBackdrop) {\n this._addBackdrop();\n }\n }\n /**\n * Toggles the collapsed state of the drawer.\n */\n toggle() {\n this.collapsed = !this.collapsed;\n }\n\n /**\n * Collapses the drawer.\n * @ignore\n */\n close() {\n this.collapsed = true;\n }\n\n /**\n * Expands the drawer.\n */\n open() {\n this.collapsed = false;\n }\n\n /**\n * @ignore\n */\n @HostBinding('class')\n private get __hostClass(): string {\n return `ax-drawer-${this.mode} ax-drawer-${this.location} ${\n this.collapsed ? 'ax-collapsed' : 'ax-expanded'\n } ${this._loaded ? 'ax-state-loaded' : ''}`;\n }\n\n /**\n * @ignore\n */\n private _backdropElement: HTMLElement;\n\n /**\n * @ignore\n */\n private _loaded = false;\n\n /**\n * @ignore\n */\n private _addBackdrop() {\n if (isBrowser()) {\n this._zone.runOutsideAngular(() => {\n this._backdropElement = document.createElement('div');\n this._backdropElement.classList.add('ax-backdrop');\n this._backdropElement.onclick = () => {\n this._zone.run(() => {\n this.close();\n });\n };\n this.getHostElement()?.parentElement?.appendChild(this._backdropElement);\n });\n }\n }\n\n /**\n * @ignore\n */\n private _removeBackdrop() {\n if (isBrowser()) {\n this._zone.runOutsideAngular(() => {\n if (this._backdropElement) {\n this.getHostElement()?.parentElement?.removeChild(this._backdropElement);\n this._backdropElement = null;\n }\n });\n }\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXDrawerContainerComponent } from './drawer-container.component';\nimport { AXDrawerComponent } from './drawer.component';\n\nconst COMPONENT = [AXDrawerComponent, AXDrawerContainerComponent];\nconst MODULES = [CommonModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXDrawerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAIA;;;AAGG;AAWG,MAAO,0BAA2B,SAAQ,eAAe,CAAA;AAC3D;;AAEC;IACH,SAAS,GAAA;AACP,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACnC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;aAC3C,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,eAAe,CAAsB,CAAC;aACnD,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC;cACzB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC;cAChC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;KACzC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ACR,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"acorex-components-drawer.mjs","sources":["../../../../libs/components/drawer/src/lib/drawer.service.ts","../../../../libs/components/drawer/src/lib/drawer/drawer-container/drawer-container.component.ts","../../../../libs/components/drawer/src/lib/drawer/drawer-item/drawer.component.ts","../../../../libs/components/drawer/src/lib/drawer.module.ts","../../../../libs/components/drawer/src/acorex-components-drawer.ts"],"sourcesContent":["import { Injectable, signal } from '@angular/core';\nimport { AXDrawerComponent } from './drawer/drawer-item/drawer.component';\n\n@Injectable()\nexport class AXDrawerService {\n drawerElements = signal<AXDrawerComponent[]>(null);\n}\n","import { MXBaseComponent } from '@acorex/components/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport { AXDrawerService } from '../../drawer.service';\nimport { AXDrawerComponent } from '../drawer-item/drawer.component';\n\n/**\n * A container component that organizes and positions drawer components.\n * @category component\n */\n@Component({\n selector: 'ax-drawer-container',\n template: `\n <ng-content select=\"ax-drawer[location='start']\"> </ng-content>\n <ng-content select=\"ax-content\"> </ng-content>\n <ng-content select=\"ax-drawer[location='end']\"> </ng-content>\n `,\n styleUrls: ['./drawer-container.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [AXDrawerService],\n})\nexport class AXDrawerContainerComponent extends MXBaseComponent {\n service = inject(AXDrawerService);\n\n constructor() {\n super();\n afterNextRender(() => {\n const host = this.getHostElement();\n const drawerClasses = Array.from(host.querySelectorAll(`ax-drawer`)).map(\n (c) => c['__axContext__'] as AXDrawerComponent,\n );\n this.service.drawerElements.set(drawerClasses);\n });\n }\n}\n","import { AXClosbaleComponent, AXComponent, MXBaseComponent } from '@acorex/components/common';\nimport { isBrowser } from '@acorex/core/platform';\nimport {\n AfterContentInit,\n ChangeDetectionStrategy,\n Component,\n DoCheck,\n effect,\n HostBinding,\n inject,\n input,\n model,\n NgZone,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { AXDrawerService } from '../../drawer.service';\n\nexport type AXDrawerMode = 'push' | 'overlay';\nexport type AXDrawerLocation = 'start' | 'end';\n\n/**\n * A component that represents a drawer with header and content sections.\n *\n * @category Components\n */\n@Component({\n selector: 'ax-drawer',\n template: `\n <ng-content select=\"ax-header\"></ng-content>\n <ng-content select=\"ax-content\"></ng-content>\n `,\n styleUrls: ['./drawer.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n { provide: AXComponent, useExisting: AXDrawerComponent },\n { provide: AXClosbaleComponent, useExisting: AXDrawerComponent },\n ],\n})\nexport class AXDrawerComponent extends MXBaseComponent implements AfterContentInit, DoCheck {\n location = model<AXDrawerLocation>('start');\n\n showBackdrop = input(true);\n\n mode = model<AXDrawerMode>('overlay');\n\n collapsed = model(true);\n\n multiple = input(false);\n\n private backdropElement = signal<HTMLElement>(null);\n\n private loaded = signal(false);\n\n service = inject(AXDrawerService);\n\n /**\n * @ignore\n */\n constructor(private _zone: NgZone) {\n super();\n effect(\n () => {\n if (this.mode() === 'overlay' && !this.collapsed() && this.showBackdrop()) {\n this._addBackdrop();\n }\n },\n { allowSignalWrites: true },\n );\n }\n\n /**\n * @ignore\n */\n ngAfterContentInit(): void {\n this._detectBoundingSize();\n setTimeout(() => {\n this.loaded.set(true);\n }, 5000);\n }\n\n /**\n * @ignore\n */\n ngDoCheck() {\n this._detectBoundingSize();\n }\n\n /**\n * @ignore\n */\n private _detectBoundingSize() {\n this._zone.runOutsideAngular(() => {\n const host = this.getHostElement();\n if (host.clientWidth) {\n host.style.setProperty('--ax-el-width', `${host.clientWidth}px`);\n }\n });\n }\n\n /**\n * Toggles the collapsed state of the drawer.\n */\n toggle() {\n if (!this.multiple()) {\n this.service.drawerElements().forEach((element) => {\n if (element.location() === this.location() && element.id !== this.id) {\n element.close();\n }\n });\n }\n this.collapsed.update((prev) => !prev);\n }\n\n /**\n * Collapses the drawer.\n * @ignore\n */\n close() {\n this._removeBackdrop();\n this.collapsed.set(true);\n }\n\n /**\n * Expands the drawer.\n */\n open() {\n if (!this.multiple()) {\n this.service.drawerElements().forEach((element) => {\n if (element.location() === this.location() && element.id !== this.id) {\n element.close();\n }\n });\n }\n this.collapsed.set(false);\n }\n\n /**\n * @ignore\n */\n @HostBinding('class')\n private get __hostClass(): string {\n return `ax-drawer-${this.mode()} ax-drawer-${this.location()} ${\n this.collapsed() ? 'ax-collapsed' : 'ax-expanded'\n } ${this.loaded() ? 'ax-state-loaded' : ''}`;\n }\n\n /**\n * @ignore\n */\n private _addBackdrop() {\n if (isBrowser()) {\n this._zone.runOutsideAngular(() => {\n const backDropElem = document.createElement('div');\n backDropElem.classList.add('ax-backdrop');\n backDropElem.onclick = () => {\n this._zone.run(() => {\n this.close();\n });\n };\n this.getHostElement()?.parentElement?.appendChild(backDropElem);\n this.backdropElement.set(backDropElem);\n });\n }\n }\n\n /**\n * @ignore\n */\n private _removeBackdrop() {\n if (isBrowser()) {\n this._zone.runOutsideAngular(() => {\n if (this.backdropElement()) {\n this.getHostElement()?.parentElement?.removeChild(this.backdropElement());\n this.backdropElement.set(null);\n }\n });\n }\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { AXDrawerContainerComponent } from './drawer/drawer-container/drawer-container.component';\nimport { AXDrawerComponent } from './drawer/drawer-item/drawer.component';\n\nconst COMPONENT = [AXDrawerComponent, AXDrawerContainerComponent];\nconst MODULES = [CommonModule];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXDrawerMod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AAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
|
@@ -1,5 +1,3 @@
|
|
1
|
-
import * as i0 from '@angular/core';
|
2
|
-
import { forwardRef, Component, ViewEncapsulation, signal, Injectable, inject, HostBinding, input, viewChild, afterNextRender, effect, NgModule } from '@angular/core';
|
3
1
|
import * as i2 from '@acorex/components/button';
|
4
2
|
import { AXButtonModule } from '@acorex/components/button';
|
5
3
|
import * as i3 from '@acorex/components/color-palette';
|
@@ -12,6 +10,8 @@ import * as i2$2 from '@acorex/components/range-slider';
|
|
12
10
|
import { AXRangeSliderModule } from '@acorex/components/range-slider';
|
13
11
|
import * as i2$1 from '@acorex/components/select-box';
|
14
12
|
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
13
|
+
import * as i0 from '@angular/core';
|
14
|
+
import { forwardRef, Component, ViewEncapsulation, signal, Injectable, inject, HostBinding, input, viewChild, afterNextRender, effect, NgModule } from '@angular/core';
|
15
15
|
import * as i1 from '@angular/forms';
|
16
16
|
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
17
17
|
import { MXInputBaseValueComponent, MXLookComponent, AXComponent, AXFocusableComponent, AXClearableComponent, AXValuableComponent } from '@acorex/components/common';
|