@coreui/angular-pro 5.3.9 → 5.3.11
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.
|
@@ -1375,10 +1375,10 @@ class BackdropService {
|
|
|
1375
1375
|
this.#unListen();
|
|
1376
1376
|
this.#renderer.removeClass(backdropElement, 'show');
|
|
1377
1377
|
setTimeout(() => {
|
|
1378
|
-
this.#renderer.removeChild(this.#document.body, backdropElement);
|
|
1379
1378
|
if (this.activeBackdrop === backdropElement) {
|
|
1380
1379
|
this.resetScrollbar();
|
|
1381
1380
|
}
|
|
1381
|
+
this.#renderer.removeChild(this.#document.body, backdropElement);
|
|
1382
1382
|
backdropElement = undefined;
|
|
1383
1383
|
}, 300);
|
|
1384
1384
|
}
|
|
@@ -11686,7 +11686,6 @@ class OffcanvasComponent {
|
|
|
11686
11686
|
* @default true
|
|
11687
11687
|
*/
|
|
11688
11688
|
this.ariaModal = input(true, { transform: booleanAttribute });
|
|
11689
|
-
this.#show = false;
|
|
11690
11689
|
/**
|
|
11691
11690
|
* Allow body scrolling while offcanvas is visible.
|
|
11692
11691
|
* @return boolean
|
|
@@ -11699,13 +11698,10 @@ class OffcanvasComponent {
|
|
|
11699
11698
|
* @default false
|
|
11700
11699
|
*/
|
|
11701
11700
|
this.visibleInput = input(false, { transform: booleanAttribute, alias: 'visible' });
|
|
11702
|
-
this.
|
|
11703
|
-
|
|
11704
|
-
|
|
11705
|
-
this.visible.set(visible);
|
|
11706
|
-
});
|
|
11701
|
+
this.visible = linkedSignal({
|
|
11702
|
+
source: () => this.visibleInput(),
|
|
11703
|
+
computation: (value) => value
|
|
11707
11704
|
});
|
|
11708
|
-
this.visible = signal(false);
|
|
11709
11705
|
this.visibleEffect = effect(() => {
|
|
11710
11706
|
const visible = this.visible();
|
|
11711
11707
|
if (visible) {
|
|
@@ -11720,17 +11716,18 @@ class OffcanvasComponent {
|
|
|
11720
11716
|
});
|
|
11721
11717
|
/**
|
|
11722
11718
|
* Event triggered on visible change.
|
|
11723
|
-
* @return
|
|
11719
|
+
* @return <boolean>
|
|
11724
11720
|
*/
|
|
11725
11721
|
this.visibleChange = output();
|
|
11726
11722
|
this.hostClasses = computed(() => {
|
|
11727
11723
|
const responsive = this.responsive();
|
|
11728
11724
|
const placement = this.placement();
|
|
11725
|
+
const visible = this.visible();
|
|
11729
11726
|
return {
|
|
11730
11727
|
offcanvas: typeof responsive === 'boolean',
|
|
11731
11728
|
[`offcanvas-${responsive}`]: typeof responsive !== 'boolean',
|
|
11732
11729
|
[`offcanvas-${placement}`]: !!placement,
|
|
11733
|
-
show:
|
|
11730
|
+
show: visible
|
|
11734
11731
|
};
|
|
11735
11732
|
});
|
|
11736
11733
|
this.ariaHidden = computed(() => {
|
|
@@ -11748,18 +11745,14 @@ class OffcanvasComponent {
|
|
|
11748
11745
|
#activeBackdrop;
|
|
11749
11746
|
#backdropClickSubscription;
|
|
11750
11747
|
#layoutChangeSubscription;
|
|
11751
|
-
#show;
|
|
11752
11748
|
get tabIndex() {
|
|
11753
11749
|
return '-1';
|
|
11754
11750
|
}
|
|
11755
|
-
get animateTrigger() {
|
|
11756
|
-
return this.visible() ? 'visible' : 'hidden';
|
|
11757
|
-
}
|
|
11758
11751
|
get show() {
|
|
11759
|
-
return this.visible()
|
|
11752
|
+
return this.visible();
|
|
11760
11753
|
}
|
|
11761
11754
|
set show(value) {
|
|
11762
|
-
this
|
|
11755
|
+
this.visible.set(value);
|
|
11763
11756
|
}
|
|
11764
11757
|
get responsiveBreakpoint() {
|
|
11765
11758
|
const responsive = this.responsive();
|
|
@@ -11861,7 +11854,7 @@ class OffcanvasComponent {
|
|
|
11861
11854
|
}
|
|
11862
11855
|
}
|
|
11863
11856
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: OffcanvasComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11864
|
-
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": "
|
|
11857
|
+
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: [
|
|
11865
11858
|
trigger('showHide', [
|
|
11866
11859
|
state('visible', style({
|
|
11867
11860
|
// visibility: 'visible'
|
|
@@ -11887,7 +11880,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
11887
11880
|
])
|
|
11888
11881
|
], exportAs: 'cOffcanvas', imports: [A11yModule], hostDirectives: [{ directive: ThemeDirective, inputs: ['dark'] }], host: {
|
|
11889
11882
|
ngSkipHydration: 'true',
|
|
11890
|
-
'[@showHide]': '
|
|
11883
|
+
'[@showHide]': 'this.visible() ? "visible" : "hidden"',
|
|
11891
11884
|
'[attr.id]': 'id()',
|
|
11892
11885
|
'[attr.inert]': 'ariaHidden() || null',
|
|
11893
11886
|
'[attr.role]': 'role()',
|