codexly-ui 0.0.57 → 0.0.58
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/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -10950,9 +10950,7 @@ class ClxAppLayoutComponent {
|
|
|
10950
10950
|
_sidebarOpen = signal(false, ...(ngDevMode ? [{ debugName: "_sidebarOpen" }] : /* istanbul ignore next */ []));
|
|
10951
10951
|
collapsed = signal(false, ...(ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []));
|
|
10952
10952
|
_hovered = signal(false, ...(ngDevMode ? [{ debugName: "_hovered" }] : /* istanbul ignore next */ []));
|
|
10953
|
-
_transitioning = signal(false, ...(ngDevMode ? [{ debugName: "_transitioning" }] : /* istanbul ignore next */ []));
|
|
10954
10953
|
_isMobile = signal(true, ...(ngDevMode ? [{ debugName: "_isMobile" }] : /* istanbul ignore next */ []));
|
|
10955
|
-
_transitionTimer = null;
|
|
10956
10954
|
collapsedChange = output();
|
|
10957
10955
|
expandedChange = output();
|
|
10958
10956
|
constructor() {
|
|
@@ -10976,15 +10974,12 @@ class ClxAppLayoutComponent {
|
|
|
10976
10974
|
width = 'w-72';
|
|
10977
10975
|
}
|
|
10978
10976
|
const isOverlay = isDesktopCollapsed && hovered;
|
|
10979
|
-
const transition = this._transitioning()
|
|
10980
|
-
? 'transition-[width,transform] duration-300 ease-in-out'
|
|
10981
|
-
: '';
|
|
10982
10977
|
return [
|
|
10983
10978
|
`fixed inset-y-0 left-0 z-30 ${width} flex flex-col`,
|
|
10984
10979
|
'bg-slate-900 overflow-hidden shrink-0',
|
|
10985
|
-
transition,
|
|
10980
|
+
'transition-[width,transform] duration-300 ease-in-out',
|
|
10986
10981
|
isOverlay ? 'shadow-2xl' : '',
|
|
10987
|
-
'lg:relative lg:inset-auto lg:z-30 lg:translate-x-0',
|
|
10982
|
+
'lg:transition-[width] lg:relative lg:inset-auto lg:z-30 lg:translate-x-0',
|
|
10988
10983
|
(!this._isMobile() || this._sidebarOpen()) ? 'translate-x-0' : '-translate-x-full',
|
|
10989
10984
|
].join(' ');
|
|
10990
10985
|
}, ...(ngDevMode ? [{ debugName: "_sidebarCls" }] : /* istanbul ignore next */ []));
|
|
@@ -11015,17 +11010,8 @@ class ClxAppLayoutComponent {
|
|
|
11015
11010
|
}
|
|
11016
11011
|
ngOnDestroy() {
|
|
11017
11012
|
this._mql?.removeEventListener('change', this._mqlListener);
|
|
11018
|
-
if (this._transitionTimer)
|
|
11019
|
-
clearTimeout(this._transitionTimer);
|
|
11020
|
-
}
|
|
11021
|
-
_enableTransition() {
|
|
11022
|
-
this._transitioning.set(true);
|
|
11023
|
-
if (this._transitionTimer)
|
|
11024
|
-
clearTimeout(this._transitionTimer);
|
|
11025
|
-
this._transitionTimer = setTimeout(() => this._transitioning.set(false), 320);
|
|
11026
11013
|
}
|
|
11027
11014
|
_toggleCollapsed() {
|
|
11028
|
-
this._enableTransition();
|
|
11029
11015
|
const next = !this.collapsed();
|
|
11030
11016
|
this.collapsed.set(next);
|
|
11031
11017
|
this._hovered.set(false);
|
|
@@ -11033,23 +11019,21 @@ class ClxAppLayoutComponent {
|
|
|
11033
11019
|
}
|
|
11034
11020
|
_onSidebarEnter() {
|
|
11035
11021
|
if (this.collapsed() && !this._isMobile()) {
|
|
11036
|
-
this._enableTransition();
|
|
11037
11022
|
this._hovered.set(true);
|
|
11038
11023
|
this.expandedChange.emit(true);
|
|
11039
11024
|
}
|
|
11040
11025
|
}
|
|
11041
11026
|
_onSidebarLeave() {
|
|
11042
11027
|
if (this._hovered()) {
|
|
11043
|
-
this._enableTransition();
|
|
11044
11028
|
this._hovered.set(false);
|
|
11045
11029
|
this.expandedChange.emit(false);
|
|
11046
11030
|
}
|
|
11047
11031
|
}
|
|
11048
|
-
toggleSidebar() { this.
|
|
11049
|
-
openSidebar() { this.
|
|
11050
|
-
closeSidebar() { this.
|
|
11032
|
+
toggleSidebar() { this._sidebarOpen.update(v => !v); }
|
|
11033
|
+
openSidebar() { this._sidebarOpen.set(true); }
|
|
11034
|
+
closeSidebar() { this._sidebarOpen.set(false); }
|
|
11051
11035
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxAppLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11052
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxAppLayoutComponent, isStandalone: true, selector: "clx-app-layout", inputs: { activeColor: { classPropertyName: "activeColor", publicName: "activeColor", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsedChange: "collapsedChange", expandedChange: "expandedChange" }, host: {
|
|
11036
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxAppLayoutComponent, isStandalone: true, selector: "clx-app-layout", inputs: { activeColor: { classPropertyName: "activeColor", publicName: "activeColor", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsedChange: "collapsedChange", expandedChange: "expandedChange" }, host: { classAttribute: "flex h-screen overflow-hidden" }, ngImport: i0, template: `
|
|
11053
11037
|
<!-- Mobile backdrop -->
|
|
11054
11038
|
@if (_showBackdrop()) {
|
|
11055
11039
|
<div
|
|
@@ -11168,7 +11152,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
11168
11152
|
`,
|
|
11169
11153
|
encapsulation: ViewEncapsulation.None,
|
|
11170
11154
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11171
|
-
host: { class: 'flex overflow-hidden'
|
|
11155
|
+
host: { class: 'flex h-screen overflow-hidden' },
|
|
11172
11156
|
}]
|
|
11173
11157
|
}], ctorParameters: () => [], propDecorators: { activeColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeColor", required: false }] }], collapsedChange: [{ type: i0.Output, args: ["collapsedChange"] }], expandedChange: [{ type: i0.Output, args: ["expandedChange"] }] } });
|
|
11174
11158
|
|