@coreui/angular 5.3.9 → 5.3.10
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.
|
@@ -1372,10 +1372,10 @@ class BackdropService {
|
|
|
1372
1372
|
this.#unListen();
|
|
1373
1373
|
this.#renderer.removeClass(backdropElement, 'show');
|
|
1374
1374
|
setTimeout(() => {
|
|
1375
|
-
this.#renderer.removeChild(this.#document.body, backdropElement);
|
|
1376
1375
|
if (this.activeBackdrop === backdropElement) {
|
|
1377
1376
|
this.resetScrollbar();
|
|
1378
1377
|
}
|
|
1378
|
+
this.#renderer.removeChild(this.#document.body, backdropElement);
|
|
1379
1379
|
backdropElement = undefined;
|
|
1380
1380
|
}, 300);
|
|
1381
1381
|
}
|
|
@@ -5747,7 +5747,6 @@ class OffcanvasComponent {
|
|
|
5747
5747
|
* @default true
|
|
5748
5748
|
*/
|
|
5749
5749
|
this.ariaModal = input(true, { transform: booleanAttribute });
|
|
5750
|
-
this.#show = false;
|
|
5751
5750
|
/**
|
|
5752
5751
|
* Allow body scrolling while offcanvas is visible.
|
|
5753
5752
|
* @return boolean
|
|
@@ -5760,13 +5759,10 @@ class OffcanvasComponent {
|
|
|
5760
5759
|
* @default false
|
|
5761
5760
|
*/
|
|
5762
5761
|
this.visibleInput = input(false, { transform: booleanAttribute, alias: 'visible' });
|
|
5763
|
-
this.
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
this.visible.set(visible);
|
|
5767
|
-
});
|
|
5762
|
+
this.visible = linkedSignal({
|
|
5763
|
+
source: () => this.visibleInput(),
|
|
5764
|
+
computation: (value) => value
|
|
5768
5765
|
});
|
|
5769
|
-
this.visible = signal(false);
|
|
5770
5766
|
this.visibleEffect = effect(() => {
|
|
5771
5767
|
const visible = this.visible();
|
|
5772
5768
|
if (visible) {
|
|
@@ -5781,17 +5777,18 @@ class OffcanvasComponent {
|
|
|
5781
5777
|
});
|
|
5782
5778
|
/**
|
|
5783
5779
|
* Event triggered on visible change.
|
|
5784
|
-
* @return
|
|
5780
|
+
* @return <boolean>
|
|
5785
5781
|
*/
|
|
5786
5782
|
this.visibleChange = output();
|
|
5787
5783
|
this.hostClasses = computed(() => {
|
|
5788
5784
|
const responsive = this.responsive();
|
|
5789
5785
|
const placement = this.placement();
|
|
5786
|
+
const visible = this.visible();
|
|
5790
5787
|
return {
|
|
5791
5788
|
offcanvas: typeof responsive === 'boolean',
|
|
5792
5789
|
[`offcanvas-${responsive}`]: typeof responsive !== 'boolean',
|
|
5793
5790
|
[`offcanvas-${placement}`]: !!placement,
|
|
5794
|
-
show:
|
|
5791
|
+
show: visible
|
|
5795
5792
|
};
|
|
5796
5793
|
});
|
|
5797
5794
|
this.ariaHidden = computed(() => {
|
|
@@ -5809,18 +5806,14 @@ class OffcanvasComponent {
|
|
|
5809
5806
|
#activeBackdrop;
|
|
5810
5807
|
#backdropClickSubscription;
|
|
5811
5808
|
#layoutChangeSubscription;
|
|
5812
|
-
#show;
|
|
5813
5809
|
get tabIndex() {
|
|
5814
5810
|
return '-1';
|
|
5815
5811
|
}
|
|
5816
|
-
get animateTrigger() {
|
|
5817
|
-
return this.visible() ? 'visible' : 'hidden';
|
|
5818
|
-
}
|
|
5819
5812
|
get show() {
|
|
5820
|
-
return this.visible()
|
|
5813
|
+
return this.visible();
|
|
5821
5814
|
}
|
|
5822
5815
|
set show(value) {
|
|
5823
|
-
this
|
|
5816
|
+
this.visible.set(value);
|
|
5824
5817
|
}
|
|
5825
5818
|
get responsiveBreakpoint() {
|
|
5826
5819
|
const responsive = this.responsive();
|
|
@@ -5922,7 +5915,7 @@ class OffcanvasComponent {
|
|
|
5922
5915
|
}
|
|
5923
5916
|
}
|
|
5924
5917
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: OffcanvasComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5925
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.4", type: OffcanvasComponent, isStandalone: true, selector: "c-offcanvas", inputs: { backdrop: { classPropertyName: "backdrop", publicName: "backdrop", isSignal: true, isRequired: false, transformFunction: null }, keyboard: { classPropertyName: "keyboard", publicName: "keyboard", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, responsive: { classPropertyName: "responsive", publicName: "responsive", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, ariaModal: { classPropertyName: "ariaModal", publicName: "ariaModal", isSignal: true, isRequired: false, transformFunction: null }, scroll: { classPropertyName: "scroll", publicName: "scroll", isSignal: true, isRequired: false, transformFunction: null }, visibleInput: { classPropertyName: "visibleInput", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visibleChange: "visibleChange" }, host: { attributes: { "ngSkipHydration": "true" }, listeners: { "@showHide.start": "animateStart($event)", "@showHide.done": "animateDone($event)", "document:keydown": "onKeyDownHandler($event)" }, properties: { "@showHide": "
|
|
5918
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.4", type: OffcanvasComponent, isStandalone: true, selector: "c-offcanvas", inputs: { backdrop: { classPropertyName: "backdrop", publicName: "backdrop", isSignal: true, isRequired: false, transformFunction: null }, keyboard: { classPropertyName: "keyboard", publicName: "keyboard", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, responsive: { classPropertyName: "responsive", publicName: "responsive", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", isSignal: true, isRequired: false, transformFunction: null }, ariaModal: { classPropertyName: "ariaModal", publicName: "ariaModal", isSignal: true, isRequired: false, transformFunction: null }, scroll: { classPropertyName: "scroll", publicName: "scroll", isSignal: true, isRequired: false, transformFunction: null }, visibleInput: { classPropertyName: "visibleInput", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visibleChange: "visibleChange" }, host: { attributes: { "ngSkipHydration": "true" }, listeners: { "@showHide.start": "animateStart($event)", "@showHide.done": "animateDone($event)", "document:keydown": "onKeyDownHandler($event)" }, properties: { "@showHide": "this.visible() ? \"visible\" : \"hidden\"", "attr.id": "id()", "attr.inert": "ariaHidden() || null", "attr.role": "role()", "attr.aria-modal": "ariaModal()", "attr.tabindex": "tabIndex", "class": "hostClasses()" } }, exportAs: ["cOffcanvas"], hostDirectives: [{ directive: ThemeDirective, inputs: ["dark", "dark"] }], ngImport: i0, template: "<div cdkTrapFocus cdkTrapFocusAutoCapture>\n <ng-content />\n</div>\n\n", styles: [":host{display:none}\n"], dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], animations: [
|
|
5926
5919
|
trigger('showHide', [
|
|
5927
5920
|
state('visible', style({
|
|
5928
5921
|
// visibility: 'visible'
|
|
@@ -5948,7 +5941,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
5948
5941
|
])
|
|
5949
5942
|
], exportAs: 'cOffcanvas', imports: [A11yModule], hostDirectives: [{ directive: ThemeDirective, inputs: ['dark'] }], host: {
|
|
5950
5943
|
ngSkipHydration: 'true',
|
|
5951
|
-
'[@showHide]': '
|
|
5944
|
+
'[@showHide]': 'this.visible() ? "visible" : "hidden"',
|
|
5952
5945
|
'[attr.id]': 'id()',
|
|
5953
5946
|
'[attr.inert]': 'ariaHidden() || null',
|
|
5954
5947
|
'[attr.role]': 'role()',
|