codexly-ui 0.0.57 → 0.0.59
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* ── Safelist: all color shades for dynamic class binding ── */
|
|
2
2
|
@source inline("{bg,hover:bg,ring,hover:ring,focus:ring,focus-within:ring,hover:border,border,focus:border,focus-within:border,text}-{red,orange,amber,yellow,lime,green,emerald,teal,cyan,sky,blue,indigo,violet,purple,fuchsia,pink,rose,slate,gray,zinc,neutral,stone}-{50,100,200,300,400,500,600,700,800,900,950}{/10,/20,/25,/50,/75,}");
|
|
3
|
-
@source inline("{bg,hover:bg,focus:ring,focus-within:ring,border,focus:border,focus-within:border,hover:border}-{white,black,transparent}");
|
|
3
|
+
@source inline("{bg,hover:bg,focus:ring,focus-within:ring,border,focus:border,focus-within:border,hover:border,border-t}-{white,black,transparent}");
|
|
4
|
+
@source inline("border-white/30 border-t-white");
|
|
4
5
|
@source inline("text-{black,white}");
|
|
5
6
|
@source inline("focus:ring-2 focus-within:ring-2 ring-2");
|
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -616,6 +616,8 @@ class ClxSpinnerComponent {
|
|
|
616
616
|
const size = SPINNER_SIZE_MAP[this.size()];
|
|
617
617
|
if (this.color() === 'inherit')
|
|
618
618
|
return `${size} border-current/30 border-t-current`;
|
|
619
|
+
if (this.color() === 'white')
|
|
620
|
+
return `${size} border-white/30 border-t-white`;
|
|
619
621
|
const t = resolveColor(this.color());
|
|
620
622
|
return `${size} ${t.borderLight} ${t.border.replace('border-', 'border-t-')}`;
|
|
621
623
|
}, ...(ngDevMode ? [{ debugName: "_spinnerClass" }] : /* istanbul ignore next */ []));
|
|
@@ -10950,9 +10952,7 @@ class ClxAppLayoutComponent {
|
|
|
10950
10952
|
_sidebarOpen = signal(false, ...(ngDevMode ? [{ debugName: "_sidebarOpen" }] : /* istanbul ignore next */ []));
|
|
10951
10953
|
collapsed = signal(false, ...(ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []));
|
|
10952
10954
|
_hovered = signal(false, ...(ngDevMode ? [{ debugName: "_hovered" }] : /* istanbul ignore next */ []));
|
|
10953
|
-
_transitioning = signal(false, ...(ngDevMode ? [{ debugName: "_transitioning" }] : /* istanbul ignore next */ []));
|
|
10954
10955
|
_isMobile = signal(true, ...(ngDevMode ? [{ debugName: "_isMobile" }] : /* istanbul ignore next */ []));
|
|
10955
|
-
_transitionTimer = null;
|
|
10956
10956
|
collapsedChange = output();
|
|
10957
10957
|
expandedChange = output();
|
|
10958
10958
|
constructor() {
|
|
@@ -10976,15 +10976,12 @@ class ClxAppLayoutComponent {
|
|
|
10976
10976
|
width = 'w-72';
|
|
10977
10977
|
}
|
|
10978
10978
|
const isOverlay = isDesktopCollapsed && hovered;
|
|
10979
|
-
const transition = this._transitioning()
|
|
10980
|
-
? 'transition-[width,transform] duration-300 ease-in-out'
|
|
10981
|
-
: '';
|
|
10982
10979
|
return [
|
|
10983
10980
|
`fixed inset-y-0 left-0 z-30 ${width} flex flex-col`,
|
|
10984
10981
|
'bg-slate-900 overflow-hidden shrink-0',
|
|
10985
|
-
transition,
|
|
10982
|
+
'transition-[width,transform] duration-300 ease-in-out',
|
|
10986
10983
|
isOverlay ? 'shadow-2xl' : '',
|
|
10987
|
-
'lg:relative lg:inset-auto lg:z-30 lg:translate-x-0',
|
|
10984
|
+
'lg:transition-[width] lg:relative lg:inset-auto lg:z-30 lg:translate-x-0',
|
|
10988
10985
|
(!this._isMobile() || this._sidebarOpen()) ? 'translate-x-0' : '-translate-x-full',
|
|
10989
10986
|
].join(' ');
|
|
10990
10987
|
}, ...(ngDevMode ? [{ debugName: "_sidebarCls" }] : /* istanbul ignore next */ []));
|
|
@@ -11015,17 +11012,8 @@ class ClxAppLayoutComponent {
|
|
|
11015
11012
|
}
|
|
11016
11013
|
ngOnDestroy() {
|
|
11017
11014
|
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
11015
|
}
|
|
11027
11016
|
_toggleCollapsed() {
|
|
11028
|
-
this._enableTransition();
|
|
11029
11017
|
const next = !this.collapsed();
|
|
11030
11018
|
this.collapsed.set(next);
|
|
11031
11019
|
this._hovered.set(false);
|
|
@@ -11033,23 +11021,21 @@ class ClxAppLayoutComponent {
|
|
|
11033
11021
|
}
|
|
11034
11022
|
_onSidebarEnter() {
|
|
11035
11023
|
if (this.collapsed() && !this._isMobile()) {
|
|
11036
|
-
this._enableTransition();
|
|
11037
11024
|
this._hovered.set(true);
|
|
11038
11025
|
this.expandedChange.emit(true);
|
|
11039
11026
|
}
|
|
11040
11027
|
}
|
|
11041
11028
|
_onSidebarLeave() {
|
|
11042
11029
|
if (this._hovered()) {
|
|
11043
|
-
this._enableTransition();
|
|
11044
11030
|
this._hovered.set(false);
|
|
11045
11031
|
this.expandedChange.emit(false);
|
|
11046
11032
|
}
|
|
11047
11033
|
}
|
|
11048
|
-
toggleSidebar() { this.
|
|
11049
|
-
openSidebar() { this.
|
|
11050
|
-
closeSidebar() { this.
|
|
11034
|
+
toggleSidebar() { this._sidebarOpen.update(v => !v); }
|
|
11035
|
+
openSidebar() { this._sidebarOpen.set(true); }
|
|
11036
|
+
closeSidebar() { this._sidebarOpen.set(false); }
|
|
11051
11037
|
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: {
|
|
11038
|
+
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
11039
|
<!-- Mobile backdrop -->
|
|
11054
11040
|
@if (_showBackdrop()) {
|
|
11055
11041
|
<div
|
|
@@ -11168,7 +11154,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
11168
11154
|
`,
|
|
11169
11155
|
encapsulation: ViewEncapsulation.None,
|
|
11170
11156
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11171
|
-
host: { class: 'flex overflow-hidden'
|
|
11157
|
+
host: { class: 'flex h-screen overflow-hidden' },
|
|
11172
11158
|
}]
|
|
11173
11159
|
}], 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
11160
|
|