@coreui/angular-pro 4.2.27 → 4.2.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/backdrop/backdrop.service.mjs +8 -2
- package/esm2020/lib/modal/modal/modal.component.mjs +2 -8
- package/esm2020/lib/multi-select/multi-select/multi-select.component.mjs +8 -4
- package/esm2020/lib/multi-select/multi-select-option/multi-select-option.component.mjs +8 -6
- package/esm2020/lib/offcanvas/offcanvas/offcanvas.component.mjs +143 -69
- package/esm2020/lib/sidebar/sidebar/sidebar.component.mjs +2 -2
- package/fesm2015/coreui-angular-pro.mjs +161 -82
- package/fesm2015/coreui-angular-pro.mjs.map +1 -1
- package/fesm2020/coreui-angular-pro.mjs +158 -81
- package/fesm2020/coreui-angular-pro.mjs.map +1 -1
- package/lib/backdrop/backdrop.service.d.ts +2 -1
- package/lib/modal/modal/modal.component.d.ts +0 -1
- package/lib/offcanvas/offcanvas/offcanvas.component.d.ts +28 -16
- package/package.json +1 -1
|
@@ -8385,11 +8385,13 @@ class MultiSelectOptionComponent {
|
|
|
8385
8385
|
return this.selected;
|
|
8386
8386
|
}
|
|
8387
8387
|
onKeyUp($event) {
|
|
8388
|
-
if (
|
|
8389
|
-
$event.
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8388
|
+
if (this.dropdownVisible) {
|
|
8389
|
+
if (['Enter', 'Space'].includes($event.code)) {
|
|
8390
|
+
$event.stopImmediatePropagation();
|
|
8391
|
+
$event.preventDefault();
|
|
8392
|
+
this.selected = this.disabled ? this.selected : !this.selected;
|
|
8393
|
+
this.focus('keyboard');
|
|
8394
|
+
}
|
|
8393
8395
|
}
|
|
8394
8396
|
}
|
|
8395
8397
|
onClick() {
|
|
@@ -8861,8 +8863,13 @@ class MultiSelectComponent {
|
|
|
8861
8863
|
this.selectOptions();
|
|
8862
8864
|
});
|
|
8863
8865
|
this.multiselectVisibleSubscription = this.multiSelectService.multiSelectVisible$.subscribe((visible) => {
|
|
8864
|
-
this.isDropdownVisible
|
|
8865
|
-
|
|
8866
|
+
if (this.isDropdownVisible !== visible) {
|
|
8867
|
+
this.isDropdownVisible = visible;
|
|
8868
|
+
this.visibleChange.emit(visible);
|
|
8869
|
+
if (!visible) {
|
|
8870
|
+
this.setFocus('program', 'multiSelectVisible$');
|
|
8871
|
+
}
|
|
8872
|
+
}
|
|
8866
8873
|
});
|
|
8867
8874
|
this.multiselectStateSubscription = this.multiSelectService.multiSelectState$.subscribe((option) => {
|
|
8868
8875
|
if (option.selected === true && !this.multiple) {
|
|
@@ -8875,7 +8882,6 @@ class MultiSelectComponent {
|
|
|
8875
8882
|
// close dropdown for single select (!multiple)
|
|
8876
8883
|
this.visible = false;
|
|
8877
8884
|
this.searchValue = '';
|
|
8878
|
-
this.setFocus('program', 'multiselectSubscribe');
|
|
8879
8885
|
}
|
|
8880
8886
|
// todo?
|
|
8881
8887
|
// if (!!option) {
|
|
@@ -9707,6 +9713,12 @@ class BackdropService {
|
|
|
9707
9713
|
this.backdropClick$ = this.backdropClick.asObservable();
|
|
9708
9714
|
this.renderer = rendererFactory.createRenderer(null, null);
|
|
9709
9715
|
}
|
|
9716
|
+
get scrollbarWidth() {
|
|
9717
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes
|
|
9718
|
+
const documentWidth = this.document.documentElement.clientWidth;
|
|
9719
|
+
const scrollbarWidth = Math.abs((window?.innerWidth ?? documentWidth) - documentWidth);
|
|
9720
|
+
return `${scrollbarWidth}px`;
|
|
9721
|
+
}
|
|
9710
9722
|
setBackdrop(type = 'modal') {
|
|
9711
9723
|
const backdropElement = this.renderer.createElement('div');
|
|
9712
9724
|
this.renderer.addClass(backdropElement, `${type}-backdrop`);
|
|
@@ -9742,7 +9754,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
9742
9754
|
args: [{
|
|
9743
9755
|
providedIn: 'root'
|
|
9744
9756
|
}]
|
|
9745
|
-
}], ctorParameters: function () { return [{ type:
|
|
9757
|
+
}], ctorParameters: function () { return [{ type: Document, decorators: [{
|
|
9746
9758
|
type: Inject,
|
|
9747
9759
|
args: [DOCUMENT]
|
|
9748
9760
|
}] }, { type: i0.RendererFactory2 }]; } });
|
|
@@ -9846,14 +9858,8 @@ class ModalComponent {
|
|
|
9846
9858
|
set show(value) {
|
|
9847
9859
|
this._show = value;
|
|
9848
9860
|
}
|
|
9849
|
-
get scrollbarWidth() {
|
|
9850
|
-
// https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes
|
|
9851
|
-
const documentWidth = this.document.documentElement.clientWidth;
|
|
9852
|
-
const scrollbarWidth = Math.abs((window?.innerWidth ?? documentWidth) - documentWidth);
|
|
9853
|
-
return `${scrollbarWidth}px`;
|
|
9854
|
-
}
|
|
9855
9861
|
animateStart(event) {
|
|
9856
|
-
const scrollbarWidth = this.scrollbarWidth;
|
|
9862
|
+
const scrollbarWidth = this.backdropService.scrollbarWidth;
|
|
9857
9863
|
if (event.toState === 'visible') {
|
|
9858
9864
|
this.renderer.setStyle(this.document.body, 'overflow', 'hidden');
|
|
9859
9865
|
this.renderer.setStyle(this.document.body, 'padding-right', scrollbarWidth);
|
|
@@ -10121,18 +10127,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
10121
10127
|
}]
|
|
10122
10128
|
}], ctorParameters: function () { return []; } });
|
|
10123
10129
|
|
|
10130
|
+
var _OffcanvasComponent_scroll, _OffcanvasComponent_visible, _OffcanvasComponent_activeBackdrop, _OffcanvasComponent_scrollbarWidth, _OffcanvasComponent_stateToggleSubscription, _OffcanvasComponent_backdropClickSubscription, _OffcanvasComponent_layoutChangeSubscription, _OffcanvasComponent_show;
|
|
10124
10131
|
let nextId = 0;
|
|
10125
10132
|
class OffcanvasComponent {
|
|
10126
|
-
constructor(document, platformId, renderer, hostElement, offcanvasService, backdropService) {
|
|
10133
|
+
constructor(document, platformId, renderer, hostElement, offcanvasService, backdropService, breakpointObserver) {
|
|
10127
10134
|
this.document = document;
|
|
10128
10135
|
this.platformId = platformId;
|
|
10129
10136
|
this.renderer = renderer;
|
|
10130
10137
|
this.hostElement = hostElement;
|
|
10131
10138
|
this.offcanvasService = offcanvasService;
|
|
10132
10139
|
this.backdropService = backdropService;
|
|
10140
|
+
this.breakpointObserver = breakpointObserver;
|
|
10133
10141
|
/**
|
|
10134
10142
|
* Apply a backdrop on body while offcanvas is open.
|
|
10135
|
-
* @type boolean
|
|
10143
|
+
* @type boolean | 'static'
|
|
10136
10144
|
* @default true
|
|
10137
10145
|
*/
|
|
10138
10146
|
this.backdrop = true;
|
|
@@ -10148,7 +10156,14 @@ class OffcanvasComponent {
|
|
|
10148
10156
|
* @default 'start'
|
|
10149
10157
|
*/
|
|
10150
10158
|
this.placement = 'start';
|
|
10151
|
-
|
|
10159
|
+
/**
|
|
10160
|
+
* Responsive offcanvas property hides content outside the viewport from a specified breakpoint and down.
|
|
10161
|
+
* @type boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
10162
|
+
* @default true
|
|
10163
|
+
* @since 4.3.10
|
|
10164
|
+
*/
|
|
10165
|
+
this.responsive = true;
|
|
10166
|
+
_OffcanvasComponent_scroll.set(this, false);
|
|
10152
10167
|
this.id = `offcanvas-${this.placement}-${nextId++}`;
|
|
10153
10168
|
/**
|
|
10154
10169
|
* Default role for offcanvas. [docs]
|
|
@@ -10162,166 +10177,222 @@ class OffcanvasComponent {
|
|
|
10162
10177
|
* @default true
|
|
10163
10178
|
*/
|
|
10164
10179
|
this.ariaModal = true;
|
|
10180
|
+
_OffcanvasComponent_visible.set(this, false);
|
|
10165
10181
|
/**
|
|
10166
10182
|
* Event triggered on visible change.
|
|
10167
10183
|
*/
|
|
10168
10184
|
this.visibleChange = new EventEmitter();
|
|
10185
|
+
_OffcanvasComponent_activeBackdrop.set(this, void 0);
|
|
10186
|
+
_OffcanvasComponent_scrollbarWidth.set(this, void 0);
|
|
10187
|
+
_OffcanvasComponent_stateToggleSubscription.set(this, void 0);
|
|
10188
|
+
_OffcanvasComponent_backdropClickSubscription.set(this, void 0);
|
|
10189
|
+
_OffcanvasComponent_layoutChangeSubscription.set(this, void 0);
|
|
10190
|
+
_OffcanvasComponent_show.set(this, false);
|
|
10169
10191
|
}
|
|
10170
10192
|
/**
|
|
10171
10193
|
* Allow body scrolling while offcanvas is visible.
|
|
10172
10194
|
* @type boolean
|
|
10195
|
+
* @default false
|
|
10173
10196
|
*/
|
|
10174
10197
|
set scroll(value) {
|
|
10175
|
-
this
|
|
10198
|
+
__classPrivateFieldSet(this, _OffcanvasComponent_scroll, coerceBooleanProperty(value), "f");
|
|
10176
10199
|
}
|
|
10177
|
-
;
|
|
10178
10200
|
get scroll() {
|
|
10179
|
-
return this
|
|
10201
|
+
return __classPrivateFieldGet(this, _OffcanvasComponent_scroll, "f");
|
|
10180
10202
|
}
|
|
10181
10203
|
/**
|
|
10182
10204
|
* Toggle the visibility of offcanvas component.
|
|
10183
10205
|
* @type boolean
|
|
10206
|
+
* @default false
|
|
10184
10207
|
*/
|
|
10185
10208
|
set visible(value) {
|
|
10186
|
-
this
|
|
10187
|
-
if (
|
|
10209
|
+
__classPrivateFieldSet(this, _OffcanvasComponent_visible, coerceBooleanProperty(value), "f");
|
|
10210
|
+
if (__classPrivateFieldGet(this, _OffcanvasComponent_visible, "f")) {
|
|
10188
10211
|
this.setBackdrop(this.backdrop);
|
|
10189
10212
|
this.setFocus();
|
|
10190
10213
|
}
|
|
10191
10214
|
else {
|
|
10192
10215
|
this.setBackdrop(false);
|
|
10193
10216
|
}
|
|
10194
|
-
this.
|
|
10217
|
+
this.layoutChangeSubscribe(__classPrivateFieldGet(this, _OffcanvasComponent_visible, "f"));
|
|
10195
10218
|
this.visibleChange.emit(value);
|
|
10196
10219
|
}
|
|
10197
10220
|
get visible() {
|
|
10198
|
-
return this
|
|
10221
|
+
return __classPrivateFieldGet(this, _OffcanvasComponent_visible, "f");
|
|
10199
10222
|
}
|
|
10200
10223
|
get hostClasses() {
|
|
10201
10224
|
return {
|
|
10202
|
-
offcanvas:
|
|
10225
|
+
offcanvas: typeof this.responsive === 'boolean',
|
|
10226
|
+
[`offcanvas-${this.responsive}`]: typeof this.responsive !== 'boolean',
|
|
10203
10227
|
[`offcanvas-${this.placement}`]: !!this.placement,
|
|
10204
|
-
show: this.
|
|
10228
|
+
show: this.show
|
|
10205
10229
|
};
|
|
10206
10230
|
}
|
|
10207
10231
|
get ariaHidden() {
|
|
10208
10232
|
return this.visible ? null : true;
|
|
10209
10233
|
}
|
|
10210
|
-
;
|
|
10211
10234
|
get tabIndex() {
|
|
10212
10235
|
return '-1';
|
|
10213
10236
|
}
|
|
10214
|
-
get
|
|
10215
|
-
return this.visible;
|
|
10237
|
+
get animateTrigger() {
|
|
10238
|
+
return this.visible ? 'visible' : 'hidden';
|
|
10239
|
+
}
|
|
10240
|
+
get show() {
|
|
10241
|
+
return this.visible && __classPrivateFieldGet(this, _OffcanvasComponent_show, "f");
|
|
10242
|
+
}
|
|
10243
|
+
set show(value) {
|
|
10244
|
+
__classPrivateFieldSet(this, _OffcanvasComponent_show, value, "f");
|
|
10245
|
+
}
|
|
10246
|
+
animateStart(event) {
|
|
10247
|
+
const scrollbarWidth = __classPrivateFieldGet(this, _OffcanvasComponent_scrollbarWidth, "f");
|
|
10248
|
+
if (event.toState === 'visible') {
|
|
10249
|
+
if (!this.scroll) {
|
|
10250
|
+
this.renderer.setStyle(this.document.body, 'overflow', 'hidden');
|
|
10251
|
+
this.renderer.setStyle(this.document.body, 'padding-right', scrollbarWidth);
|
|
10252
|
+
}
|
|
10253
|
+
this.renderer.addClass(this.hostElement.nativeElement, 'showing');
|
|
10254
|
+
}
|
|
10255
|
+
else {
|
|
10256
|
+
this.renderer.addClass(this.hostElement.nativeElement, 'hiding');
|
|
10257
|
+
}
|
|
10258
|
+
}
|
|
10259
|
+
animateDone(event) {
|
|
10260
|
+
setTimeout(() => {
|
|
10261
|
+
if (event.toState === 'visible') {
|
|
10262
|
+
this.renderer.removeClass(this.hostElement.nativeElement, 'showing');
|
|
10263
|
+
}
|
|
10264
|
+
if (event.toState === 'hidden') {
|
|
10265
|
+
this.renderer.removeClass(this.hostElement.nativeElement, 'hiding');
|
|
10266
|
+
this.renderer.removeStyle(this.document.body, 'overflow');
|
|
10267
|
+
this.renderer.removeStyle(this.document.body, 'paddingRight');
|
|
10268
|
+
}
|
|
10269
|
+
});
|
|
10270
|
+
this.show = this.visible;
|
|
10216
10271
|
}
|
|
10217
10272
|
onKeyDownHandler(event) {
|
|
10218
|
-
if (event.key === 'Escape' &&
|
|
10273
|
+
if (event.key === 'Escape' &&
|
|
10274
|
+
this.keyboard &&
|
|
10275
|
+
this.visible &&
|
|
10276
|
+
this.backdrop !== 'static') {
|
|
10219
10277
|
this.offcanvasService.toggle({ show: false, id: this.id });
|
|
10220
10278
|
}
|
|
10221
10279
|
}
|
|
10222
10280
|
ngOnInit() {
|
|
10223
|
-
this.
|
|
10281
|
+
__classPrivateFieldSet(this, _OffcanvasComponent_scrollbarWidth, this.backdropService.scrollbarWidth, "f");
|
|
10224
10282
|
this.stateToggleSubscribe();
|
|
10283
|
+
setTimeout(() => {
|
|
10284
|
+
// hotfix to avoid offcanvas flicker on the first render
|
|
10285
|
+
this.renderer.setStyle(this.hostElement.nativeElement, 'display', 'flex');
|
|
10286
|
+
});
|
|
10225
10287
|
}
|
|
10226
10288
|
ngOnDestroy() {
|
|
10227
10289
|
this.offcanvasService.toggle({ show: false, id: this.id });
|
|
10228
10290
|
this.stateToggleSubscribe(false);
|
|
10229
10291
|
}
|
|
10230
|
-
ngOnChanges(changes) {
|
|
10231
|
-
if (changes['scroll']) {
|
|
10232
|
-
this.setScroll();
|
|
10233
|
-
}
|
|
10234
|
-
}
|
|
10235
10292
|
stateToggleSubscribe(subscribe = true) {
|
|
10236
10293
|
if (subscribe) {
|
|
10237
|
-
this
|
|
10294
|
+
__classPrivateFieldSet(this, _OffcanvasComponent_stateToggleSubscription, this.offcanvasService.offcanvasState$.subscribe((action) => {
|
|
10238
10295
|
if (this === action.offcanvas || this.id === action.id) {
|
|
10239
10296
|
if ('show' in action) {
|
|
10240
|
-
this.visible =
|
|
10297
|
+
this.visible =
|
|
10298
|
+
action?.show === 'toggle' ? !this.visible : action.show;
|
|
10241
10299
|
}
|
|
10242
10300
|
}
|
|
10243
|
-
});
|
|
10301
|
+
}), "f");
|
|
10244
10302
|
}
|
|
10245
10303
|
else {
|
|
10246
|
-
this.
|
|
10304
|
+
__classPrivateFieldGet(this, _OffcanvasComponent_stateToggleSubscription, "f").unsubscribe();
|
|
10247
10305
|
}
|
|
10248
10306
|
}
|
|
10249
10307
|
backdropClickSubscribe(subscribe = true) {
|
|
10250
10308
|
if (subscribe) {
|
|
10251
|
-
this
|
|
10309
|
+
__classPrivateFieldSet(this, _OffcanvasComponent_backdropClickSubscription, this.backdropService.backdropClick$.subscribe((clicked) => {
|
|
10252
10310
|
this.offcanvasService.toggle({ show: !clicked, id: this.id });
|
|
10253
|
-
});
|
|
10311
|
+
}), "f");
|
|
10254
10312
|
}
|
|
10255
10313
|
else {
|
|
10256
|
-
this
|
|
10314
|
+
__classPrivateFieldGet(this, _OffcanvasComponent_backdropClickSubscription, "f")?.unsubscribe();
|
|
10257
10315
|
}
|
|
10258
10316
|
}
|
|
10259
10317
|
setBackdrop(setBackdrop) {
|
|
10260
|
-
|
|
10261
|
-
|
|
10262
|
-
this.
|
|
10263
|
-
|
|
10264
|
-
|
|
10265
|
-
this.activeBackdrop = this.backdropService.clearBackdrop(this.activeBackdrop);
|
|
10266
|
-
this.backdropClickSubscribe(false);
|
|
10267
|
-
}
|
|
10318
|
+
__classPrivateFieldSet(this, _OffcanvasComponent_scrollbarWidth, this.backdropService.scrollbarWidth, "f");
|
|
10319
|
+
__classPrivateFieldSet(this, _OffcanvasComponent_activeBackdrop, !!setBackdrop ? this.backdropService.setBackdrop('offcanvas')
|
|
10320
|
+
: this.backdropService.clearBackdrop(__classPrivateFieldGet(this, _OffcanvasComponent_activeBackdrop, "f")), "f");
|
|
10321
|
+
setBackdrop === true ? this.backdropClickSubscribe()
|
|
10322
|
+
: this.backdropClickSubscribe(false);
|
|
10268
10323
|
}
|
|
10269
10324
|
setFocus() {
|
|
10270
10325
|
if (isPlatformBrowser(this.platformId)) {
|
|
10271
10326
|
setTimeout(() => this.hostElement.nativeElement.focus());
|
|
10272
10327
|
}
|
|
10273
10328
|
}
|
|
10274
|
-
|
|
10275
|
-
if (this.
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
|
|
10329
|
+
get responsiveBreakpoint() {
|
|
10330
|
+
if (typeof this.responsive !== 'string') {
|
|
10331
|
+
return false;
|
|
10332
|
+
}
|
|
10333
|
+
const element = this.document.documentElement;
|
|
10334
|
+
const responsiveBreakpoint = this.responsive;
|
|
10335
|
+
const breakpointValue = getComputedStyle(element).getPropertyValue(`--cui-breakpoint-${responsiveBreakpoint.trim()}`) || false;
|
|
10336
|
+
return breakpointValue ? `${parseFloat(breakpointValue.trim()) - 0.02}px` : false;
|
|
10337
|
+
}
|
|
10338
|
+
layoutChangeSubscribe(subscribe = true) {
|
|
10339
|
+
if (subscribe) {
|
|
10340
|
+
if (!this.responsiveBreakpoint) {
|
|
10341
|
+
return;
|
|
10279
10342
|
}
|
|
10280
|
-
|
|
10343
|
+
const responsiveBreakpoint = `(max-width: ${this.responsiveBreakpoint})`;
|
|
10344
|
+
const layoutChanges = this.breakpointObserver.observe([responsiveBreakpoint]);
|
|
10345
|
+
__classPrivateFieldSet(this, _OffcanvasComponent_layoutChangeSubscription, layoutChanges
|
|
10346
|
+
.pipe(filter(breakpointState => !breakpointState.matches))
|
|
10347
|
+
.subscribe((breakpointState) => {
|
|
10348
|
+
this.visible = breakpointState.matches;
|
|
10349
|
+
}), "f");
|
|
10281
10350
|
}
|
|
10282
|
-
|
|
10283
|
-
|
|
10284
|
-
this.renderer.removeStyle(this.document.body, 'paddingRight');
|
|
10351
|
+
else {
|
|
10352
|
+
__classPrivateFieldGet(this, _OffcanvasComponent_layoutChangeSubscription, "f")?.unsubscribe();
|
|
10285
10353
|
}
|
|
10286
10354
|
}
|
|
10287
10355
|
}
|
|
10288
|
-
|
|
10289
|
-
OffcanvasComponent.ɵ
|
|
10356
|
+
_OffcanvasComponent_scroll = new WeakMap(), _OffcanvasComponent_visible = new WeakMap(), _OffcanvasComponent_activeBackdrop = new WeakMap(), _OffcanvasComponent_scrollbarWidth = new WeakMap(), _OffcanvasComponent_stateToggleSubscription = new WeakMap(), _OffcanvasComponent_backdropClickSubscription = new WeakMap(), _OffcanvasComponent_layoutChangeSubscription = new WeakMap(), _OffcanvasComponent_show = new WeakMap();
|
|
10357
|
+
OffcanvasComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: OffcanvasComponent, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: OffcanvasService }, { token: BackdropService }, { token: i1$2.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component });
|
|
10358
|
+
OffcanvasComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: OffcanvasComponent, selector: "c-offcanvas", inputs: { backdrop: "backdrop", keyboard: "keyboard", placement: "placement", responsive: "responsive", scroll: "scroll", id: "id", role: "role", ariaModal: "ariaModal", visible: "visible" }, outputs: { visibleChange: "visibleChange" }, host: { listeners: { "@showHide.start": "animateStart($event)", "@showHide.done": "animateDone($event)", "document:keydown": "onKeyDownHandler($event)" }, properties: { "attr.role": "this.role", "attr.aria-modal": "this.ariaModal", "class": "this.hostClasses", "attr.aria-hidden": "this.ariaHidden", "attr.tabindex": "this.tabIndex", "@showHide": "this.animateTrigger" } }, exportAs: ["cOffcanvas"], ngImport: i0, template: "<div cdkTrapFocus cdkTrapFocusAutoCapture>\n <ng-content></ng-content>\n</div>\n\n", styles: [":host{display:none}\n"], dependencies: [{ kind: "directive", type: i1$3.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], animations: [
|
|
10290
10359
|
trigger('showHide', [
|
|
10291
|
-
state('
|
|
10292
|
-
|
|
10360
|
+
state('visible', style({
|
|
10361
|
+
// visibility: 'visible'
|
|
10293
10362
|
})),
|
|
10294
|
-
state('
|
|
10295
|
-
|
|
10363
|
+
state('hidden', style({
|
|
10364
|
+
// visibility: 'hidden'
|
|
10296
10365
|
})),
|
|
10297
|
-
transition('
|
|
10298
|
-
])
|
|
10366
|
+
transition('visible <=> *', [animate('300ms')])
|
|
10367
|
+
])
|
|
10299
10368
|
] });
|
|
10300
10369
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: OffcanvasComponent, decorators: [{
|
|
10301
10370
|
type: Component,
|
|
10302
10371
|
args: [{ selector: 'c-offcanvas', animations: [
|
|
10303
10372
|
trigger('showHide', [
|
|
10304
|
-
state('
|
|
10305
|
-
|
|
10373
|
+
state('visible', style({
|
|
10374
|
+
// visibility: 'visible'
|
|
10306
10375
|
})),
|
|
10307
|
-
state('
|
|
10308
|
-
|
|
10376
|
+
state('hidden', style({
|
|
10377
|
+
// visibility: 'hidden'
|
|
10309
10378
|
})),
|
|
10310
|
-
transition('
|
|
10311
|
-
])
|
|
10312
|
-
], exportAs: 'cOffcanvas', template: "<div cdkTrapFocus cdkTrapFocusAutoCapture>\n <ng-content></ng-content>\n</div>\n\n" }]
|
|
10313
|
-
}], ctorParameters: function () { return [{ type:
|
|
10379
|
+
transition('visible <=> *', [animate('300ms')])
|
|
10380
|
+
])
|
|
10381
|
+
], exportAs: 'cOffcanvas', template: "<div cdkTrapFocus cdkTrapFocusAutoCapture>\n <ng-content></ng-content>\n</div>\n\n", styles: [":host{display:none}\n"] }]
|
|
10382
|
+
}], ctorParameters: function () { return [{ type: Document, decorators: [{
|
|
10314
10383
|
type: Inject,
|
|
10315
10384
|
args: [DOCUMENT]
|
|
10316
10385
|
}] }, { type: undefined, decorators: [{
|
|
10317
10386
|
type: Inject,
|
|
10318
10387
|
args: [PLATFORM_ID]
|
|
10319
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: OffcanvasService }, { type: BackdropService }]; }, propDecorators: { backdrop: [{
|
|
10388
|
+
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: OffcanvasService }, { type: BackdropService }, { type: i1$2.BreakpointObserver }]; }, propDecorators: { backdrop: [{
|
|
10320
10389
|
type: Input
|
|
10321
10390
|
}], keyboard: [{
|
|
10322
10391
|
type: Input
|
|
10323
10392
|
}], placement: [{
|
|
10324
10393
|
type: Input
|
|
10394
|
+
}], responsive: [{
|
|
10395
|
+
type: Input
|
|
10325
10396
|
}], scroll: [{
|
|
10326
10397
|
type: Input
|
|
10327
10398
|
}], id: [{
|
|
@@ -10349,9 +10420,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
10349
10420
|
}], tabIndex: [{
|
|
10350
10421
|
type: HostBinding,
|
|
10351
10422
|
args: ['attr.tabindex']
|
|
10352
|
-
}],
|
|
10423
|
+
}], animateTrigger: [{
|
|
10353
10424
|
type: HostBinding,
|
|
10354
10425
|
args: ['@showHide']
|
|
10426
|
+
}], animateStart: [{
|
|
10427
|
+
type: HostListener,
|
|
10428
|
+
args: ['@showHide.start', ['$event']]
|
|
10429
|
+
}], animateDone: [{
|
|
10430
|
+
type: HostListener,
|
|
10431
|
+
args: ['@showHide.done', ['$event']]
|
|
10355
10432
|
}], onKeyDownHandler: [{
|
|
10356
10433
|
type: HostListener,
|
|
10357
10434
|
args: ['document:keydown', ['$event']]
|
|
@@ -11515,7 +11592,7 @@ class SidebarComponent {
|
|
|
11515
11592
|
}), "f");
|
|
11516
11593
|
}
|
|
11517
11594
|
else {
|
|
11518
|
-
__classPrivateFieldGet(this, _SidebarComponent_stateToggleSubscription, "f")
|
|
11595
|
+
__classPrivateFieldGet(this, _SidebarComponent_stateToggleSubscription, "f")?.unsubscribe();
|
|
11519
11596
|
}
|
|
11520
11597
|
}
|
|
11521
11598
|
layoutChangeSubscribe(subscribe = true) {
|