codexly-ui 0.0.20 → 0.0.23
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 +159 -48
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/index.d.ts +20 -3
- package/package.json +1 -1
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -10886,17 +10886,32 @@ class ClxAppLayoutComponent {
|
|
|
10886
10886
|
activeColor = input('indigo', ...(ngDevMode ? [{ debugName: "activeColor" }] : []));
|
|
10887
10887
|
_sidebarOpen = signal(false, ...(ngDevMode ? [{ debugName: "_sidebarOpen" }] : []));
|
|
10888
10888
|
collapsed = signal(false, ...(ngDevMode ? [{ debugName: "collapsed" }] : []));
|
|
10889
|
+
_hovered = signal(false, ...(ngDevMode ? [{ debugName: "_hovered" }] : []));
|
|
10889
10890
|
_isMobile = signal(true, ...(ngDevMode ? [{ debugName: "_isMobile" }] : []));
|
|
10890
10891
|
collapsedChange = output();
|
|
10892
|
+
expandedChange = output();
|
|
10891
10893
|
_showBackdrop = computed(() => this._sidebarOpen() && this._isMobile(), ...(ngDevMode ? [{ debugName: "_showBackdrop" }] : []));
|
|
10894
|
+
_isExpanded = computed(() => !this.collapsed() || this._hovered(), ...(ngDevMode ? [{ debugName: "_isExpanded" }] : []));
|
|
10892
10895
|
_sidebarCls = computed(() => {
|
|
10893
|
-
const
|
|
10894
|
-
const
|
|
10896
|
+
const isDesktopCollapsed = this.collapsed() && !this._isMobile();
|
|
10897
|
+
const hovered = this._hovered();
|
|
10898
|
+
let width;
|
|
10899
|
+
if (isDesktopCollapsed && hovered) {
|
|
10900
|
+
width = 'w-72';
|
|
10901
|
+
}
|
|
10902
|
+
else if (isDesktopCollapsed) {
|
|
10903
|
+
width = 'w-20';
|
|
10904
|
+
}
|
|
10905
|
+
else {
|
|
10906
|
+
width = 'w-72';
|
|
10907
|
+
}
|
|
10908
|
+
const isOverlay = isDesktopCollapsed && hovered;
|
|
10895
10909
|
return [
|
|
10896
10910
|
`fixed inset-y-0 left-0 z-30 ${width} flex flex-col`,
|
|
10897
|
-
'bg-slate-900 overflow-
|
|
10911
|
+
'bg-slate-900 overflow-hidden shrink-0',
|
|
10898
10912
|
'transition-[width,transform] duration-300 ease-in-out',
|
|
10899
|
-
|
|
10913
|
+
isOverlay ? 'shadow-2xl' : '',
|
|
10914
|
+
'lg:transition-[width] lg:relative lg:inset-auto lg:z-30 lg:translate-x-0',
|
|
10900
10915
|
(!this._isMobile() || this._sidebarOpen()) ? 'translate-x-0' : '-translate-x-full',
|
|
10901
10916
|
].join(' ');
|
|
10902
10917
|
}, ...(ngDevMode ? [{ debugName: "_sidebarCls" }] : []));
|
|
@@ -10931,13 +10946,26 @@ class ClxAppLayoutComponent {
|
|
|
10931
10946
|
_toggleCollapsed() {
|
|
10932
10947
|
const next = !this.collapsed();
|
|
10933
10948
|
this.collapsed.set(next);
|
|
10949
|
+
this._hovered.set(false);
|
|
10934
10950
|
this.collapsedChange.emit(next);
|
|
10935
10951
|
}
|
|
10952
|
+
_onSidebarEnter() {
|
|
10953
|
+
if (this.collapsed() && !this._isMobile()) {
|
|
10954
|
+
this._hovered.set(true);
|
|
10955
|
+
this.expandedChange.emit(true);
|
|
10956
|
+
}
|
|
10957
|
+
}
|
|
10958
|
+
_onSidebarLeave() {
|
|
10959
|
+
if (this._hovered()) {
|
|
10960
|
+
this._hovered.set(false);
|
|
10961
|
+
this.expandedChange.emit(false);
|
|
10962
|
+
}
|
|
10963
|
+
}
|
|
10936
10964
|
toggleSidebar() { this._sidebarOpen.update(v => !v); }
|
|
10937
10965
|
openSidebar() { this._sidebarOpen.set(true); }
|
|
10938
10966
|
closeSidebar() { this._sidebarOpen.set(false); }
|
|
10939
10967
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ClxAppLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10940
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: ClxAppLayoutComponent, isStandalone: true, selector: "clx-app-layout", inputs: { activeColor: { classPropertyName: "activeColor", publicName: "activeColor", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collapsedChange: "collapsedChange" }, host: { classAttribute: "flex h-screen overflow-hidden" }, ngImport: i0, template: `
|
|
10968
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", 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: `
|
|
10941
10969
|
<!-- Mobile backdrop -->
|
|
10942
10970
|
@if (_showBackdrop()) {
|
|
10943
10971
|
<div
|
|
@@ -10948,8 +10976,20 @@ class ClxAppLayoutComponent {
|
|
|
10948
10976
|
}
|
|
10949
10977
|
|
|
10950
10978
|
<!-- Sidebar -->
|
|
10951
|
-
<aside
|
|
10952
|
-
|
|
10979
|
+
<aside
|
|
10980
|
+
[class]="_sidebarCls()"
|
|
10981
|
+
(mouseenter)="_onSidebarEnter()"
|
|
10982
|
+
(mouseleave)="_onSidebarLeave()"
|
|
10983
|
+
aria-label="Navegación principal">
|
|
10984
|
+
|
|
10985
|
+
<!-- Brand slot -->
|
|
10986
|
+
<div class="border-b border-slate-700/50 shrink-0 overflow-hidden">
|
|
10987
|
+
<ng-content select="[clx-brand]"></ng-content>
|
|
10988
|
+
</div>
|
|
10989
|
+
|
|
10990
|
+
<div class="flex-1 overflow-y-auto overflow-x-hidden">
|
|
10991
|
+
<ng-content select="[clx-sidebar]"></ng-content>
|
|
10992
|
+
</div>
|
|
10953
10993
|
</aside>
|
|
10954
10994
|
|
|
10955
10995
|
<!-- Right panel -->
|
|
@@ -10998,8 +11038,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
10998
11038
|
}
|
|
10999
11039
|
|
|
11000
11040
|
<!-- Sidebar -->
|
|
11001
|
-
<aside
|
|
11002
|
-
|
|
11041
|
+
<aside
|
|
11042
|
+
[class]="_sidebarCls()"
|
|
11043
|
+
(mouseenter)="_onSidebarEnter()"
|
|
11044
|
+
(mouseleave)="_onSidebarLeave()"
|
|
11045
|
+
aria-label="Navegación principal">
|
|
11046
|
+
|
|
11047
|
+
<!-- Brand slot -->
|
|
11048
|
+
<div class="border-b border-slate-700/50 shrink-0 overflow-hidden">
|
|
11049
|
+
<ng-content select="[clx-brand]"></ng-content>
|
|
11050
|
+
</div>
|
|
11051
|
+
|
|
11052
|
+
<div class="flex-1 overflow-y-auto overflow-x-hidden">
|
|
11053
|
+
<ng-content select="[clx-sidebar]"></ng-content>
|
|
11054
|
+
</div>
|
|
11003
11055
|
</aside>
|
|
11004
11056
|
|
|
11005
11057
|
<!-- Right panel -->
|
|
@@ -11034,7 +11086,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
11034
11086
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11035
11087
|
host: { class: 'flex h-screen overflow-hidden' },
|
|
11036
11088
|
}]
|
|
11037
|
-
}], propDecorators: { activeColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeColor", required: false }] }], collapsedChange: [{ type: i0.Output, args: ["collapsedChange"] }] } });
|
|
11089
|
+
}], propDecorators: { activeColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeColor", required: false }] }], collapsedChange: [{ type: i0.Output, args: ["collapsedChange"] }], expandedChange: [{ type: i0.Output, args: ["expandedChange"] }] } });
|
|
11090
|
+
|
|
11091
|
+
class ClxBrandComponent {
|
|
11092
|
+
logo = input.required(...(ngDevMode ? [{ debugName: "logo" }] : []));
|
|
11093
|
+
name = input.required(...(ngDevMode ? [{ debugName: "name" }] : []));
|
|
11094
|
+
description = input('', ...(ngDevMode ? [{ debugName: "description" }] : []));
|
|
11095
|
+
collapsed = input(false, ...(ngDevMode ? [{ debugName: "collapsed" }] : []));
|
|
11096
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ClxBrandComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11097
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: ClxBrandComponent, isStandalone: true, selector: "clx-brand", inputs: { logo: { classPropertyName: "logo", publicName: "logo", isSignal: true, isRequired: true, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "block" }, ngImport: i0, template: `
|
|
11098
|
+
<div class="flex items-center gap-3 px-4 py-4">
|
|
11099
|
+
<img [src]="logo()" [alt]="name()" class="h-8 w-8 shrink-0 object-contain" />
|
|
11100
|
+
@if (!collapsed()) {
|
|
11101
|
+
<div class="min-w-0 overflow-hidden">
|
|
11102
|
+
<p class="text-white text-sm font-semibold truncate leading-tight">{{ name() }}</p>
|
|
11103
|
+
@if (description()) {
|
|
11104
|
+
<p class="text-slate-400 text-xs truncate leading-tight">{{ description() }}</p>
|
|
11105
|
+
}
|
|
11106
|
+
</div>
|
|
11107
|
+
}
|
|
11108
|
+
</div>
|
|
11109
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
11110
|
+
}
|
|
11111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ClxBrandComponent, decorators: [{
|
|
11112
|
+
type: Component,
|
|
11113
|
+
args: [{
|
|
11114
|
+
selector: 'clx-brand',
|
|
11115
|
+
standalone: true,
|
|
11116
|
+
template: `
|
|
11117
|
+
<div class="flex items-center gap-3 px-4 py-4">
|
|
11118
|
+
<img [src]="logo()" [alt]="name()" class="h-8 w-8 shrink-0 object-contain" />
|
|
11119
|
+
@if (!collapsed()) {
|
|
11120
|
+
<div class="min-w-0 overflow-hidden">
|
|
11121
|
+
<p class="text-white text-sm font-semibold truncate leading-tight">{{ name() }}</p>
|
|
11122
|
+
@if (description()) {
|
|
11123
|
+
<p class="text-slate-400 text-xs truncate leading-tight">{{ description() }}</p>
|
|
11124
|
+
}
|
|
11125
|
+
</div>
|
|
11126
|
+
}
|
|
11127
|
+
</div>
|
|
11128
|
+
`,
|
|
11129
|
+
encapsulation: ViewEncapsulation.None,
|
|
11130
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11131
|
+
host: { class: 'block' },
|
|
11132
|
+
}]
|
|
11133
|
+
}], propDecorators: { logo: [{ type: i0.Input, args: [{ isSignal: true, alias: "logo", required: true }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }] } });
|
|
11038
11134
|
|
|
11039
11135
|
// ── Item geometry ──────────────────────────────────────────────────────────────
|
|
11040
11136
|
const NAV_ITEM_BASE = 'flex items-center gap-3 w-full text-sm font-medium transition-colors duration-150 cursor-pointer select-none';
|
|
@@ -11053,18 +11149,21 @@ class ClxMenuItemComponent {
|
|
|
11053
11149
|
color = input('indigo', ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
11054
11150
|
nested = input(false, ...(ngDevMode ? [{ debugName: "nested" }] : []));
|
|
11055
11151
|
collapsed = input(false, ...(ngDevMode ? [{ debugName: "collapsed" }] : []));
|
|
11152
|
+
_inheritedColor = signal(null, ...(ngDevMode ? [{ debugName: "_inheritedColor" }] : []));
|
|
11153
|
+
_resolvedColor = computed(() => this._inheritedColor() ?? this.color(), ...(ngDevMode ? [{ debugName: "_resolvedColor" }] : []));
|
|
11154
|
+
inheritColor(c) { this._inheritedColor.set(c); }
|
|
11056
11155
|
_geom = computed(() => {
|
|
11057
11156
|
if (this.collapsed())
|
|
11058
|
-
return 'w-
|
|
11157
|
+
return 'w-full py-3 px-0 justify-center';
|
|
11059
11158
|
return this.nested() ? NAV_ITEM_L2 : NAV_ITEM_L1;
|
|
11060
11159
|
}, ...(ngDevMode ? [{ debugName: "_geom" }] : []));
|
|
11061
|
-
_iconCls = computed(() => resolveColor(this.
|
|
11160
|
+
_iconCls = computed(() => resolveColor(this._resolvedColor()).textSubtle, ...(ngDevMode ? [{ debugName: "_iconCls" }] : []));
|
|
11062
11161
|
_idleCls = computed(() => {
|
|
11063
|
-
const t = resolveColor(this.
|
|
11162
|
+
const t = resolveColor(this._resolvedColor());
|
|
11064
11163
|
return `${NAV_ITEM_BASE} ${this._geom()} ${NAV_ITEM_IDLE} ${t.hoverBgMuted}`;
|
|
11065
11164
|
}, ...(ngDevMode ? [{ debugName: "_idleCls" }] : []));
|
|
11066
11165
|
_activeCls = computed(() => {
|
|
11067
|
-
const t = resolveColor(this.
|
|
11166
|
+
const t = resolveColor(this._resolvedColor());
|
|
11068
11167
|
if (this.collapsed()) {
|
|
11069
11168
|
return `${NAV_ITEM_BASE} ${this._geom()} ${t.textSubtle} font-semibold`;
|
|
11070
11169
|
}
|
|
@@ -11136,10 +11235,16 @@ class ClxMenuComponent {
|
|
|
11136
11235
|
constructor() {
|
|
11137
11236
|
effect(() => { if (this._isChildActive())
|
|
11138
11237
|
this._isExpanded.set(true); });
|
|
11238
|
+
effect(() => { if (this.collapsed())
|
|
11239
|
+
this._isExpanded.set(false); });
|
|
11240
|
+
effect(() => {
|
|
11241
|
+
const color = this.color();
|
|
11242
|
+
this._childItems?.forEach(c => c.inheritColor(color));
|
|
11243
|
+
});
|
|
11139
11244
|
}
|
|
11140
11245
|
_iconCls = computed(() => resolveColor(this.color()).textSubtle, ...(ngDevMode ? [{ debugName: "_iconCls" }] : []));
|
|
11141
11246
|
_buttonCls = computed(() => {
|
|
11142
|
-
const geom = this.collapsed() ? 'w-
|
|
11247
|
+
const geom = this.collapsed() ? 'w-full py-3 px-0 justify-center' : NAV_ITEM_L1;
|
|
11143
11248
|
const base = `${NAV_ITEM_BASE} ${geom}`;
|
|
11144
11249
|
const t = resolveColor(this.color());
|
|
11145
11250
|
if (this._isChildActive()) {
|
|
@@ -11153,15 +11258,16 @@ class ClxMenuComponent {
|
|
|
11153
11258
|
NAV_CHILDREN_INNER = NAV_CHILDREN_INNER;
|
|
11154
11259
|
NAV_CHILDREN_LIST = NAV_CHILDREN_LIST;
|
|
11155
11260
|
ngAfterContentInit() {
|
|
11156
|
-
this.
|
|
11261
|
+
this._syncChildren();
|
|
11157
11262
|
this._childItems.changes
|
|
11158
11263
|
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
11159
|
-
.subscribe(() => this.
|
|
11264
|
+
.subscribe(() => this._syncChildren());
|
|
11160
11265
|
}
|
|
11161
|
-
|
|
11266
|
+
_syncChildren() {
|
|
11267
|
+
const color = this.color();
|
|
11162
11268
|
this._childRoutes = this._childItems
|
|
11163
11269
|
.filter(c => !!c.route())
|
|
11164
|
-
.map(c => c.route());
|
|
11270
|
+
.map(c => { c.inheritColor(color); return c.route(); });
|
|
11165
11271
|
}
|
|
11166
11272
|
_toggle() {
|
|
11167
11273
|
this._isExpanded.update(v => !v);
|
|
@@ -11188,17 +11294,15 @@ class ClxMenuComponent {
|
|
|
11188
11294
|
}
|
|
11189
11295
|
</button>
|
|
11190
11296
|
|
|
11191
|
-
|
|
11192
|
-
|
|
11193
|
-
|
|
11194
|
-
|
|
11195
|
-
<div [class]="
|
|
11196
|
-
<
|
|
11197
|
-
<ng-content></ng-content>
|
|
11198
|
-
</div>
|
|
11297
|
+
<div
|
|
11298
|
+
[class]="NAV_CHILDREN_WRAPPER"
|
|
11299
|
+
[style.grid-template-rows]="(!collapsed() && _isExpanded()) ? '1fr' : '0fr'">
|
|
11300
|
+
<div [class]="NAV_CHILDREN_INNER">
|
|
11301
|
+
<div [class]="NAV_CHILDREN_LIST">
|
|
11302
|
+
<ng-content></ng-content>
|
|
11199
11303
|
</div>
|
|
11200
11304
|
</div>
|
|
11201
|
-
|
|
11305
|
+
</div>
|
|
11202
11306
|
`, isInline: true, dependencies: [{ kind: "component", type: ClxIconComponent, selector: "span[clx-icon]", inputs: ["name", "size", "color", "fill"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
11203
11307
|
}
|
|
11204
11308
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ClxMenuComponent, decorators: [{
|
|
@@ -11228,17 +11332,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
11228
11332
|
}
|
|
11229
11333
|
</button>
|
|
11230
11334
|
|
|
11231
|
-
|
|
11232
|
-
|
|
11233
|
-
|
|
11234
|
-
|
|
11235
|
-
<div [class]="
|
|
11236
|
-
<
|
|
11237
|
-
<ng-content></ng-content>
|
|
11238
|
-
</div>
|
|
11335
|
+
<div
|
|
11336
|
+
[class]="NAV_CHILDREN_WRAPPER"
|
|
11337
|
+
[style.grid-template-rows]="(!collapsed() && _isExpanded()) ? '1fr' : '0fr'">
|
|
11338
|
+
<div [class]="NAV_CHILDREN_INNER">
|
|
11339
|
+
<div [class]="NAV_CHILDREN_LIST">
|
|
11340
|
+
<ng-content></ng-content>
|
|
11239
11341
|
</div>
|
|
11240
11342
|
</div>
|
|
11241
|
-
|
|
11343
|
+
</div>
|
|
11242
11344
|
`,
|
|
11243
11345
|
encapsulation: ViewEncapsulation.None,
|
|
11244
11346
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -11253,24 +11355,33 @@ class ClxNavGroupComponent {
|
|
|
11253
11355
|
label = input.required(...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
11254
11356
|
collapsed = input(false, ...(ngDevMode ? [{ debugName: "collapsed" }] : []));
|
|
11255
11357
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ClxNavGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11256
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
11358
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: ClxNavGroupComponent, isStandalone: true, selector: "clx-nav-group", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, collapsed: { classPropertyName: "collapsed", publicName: "collapsed", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "block" }, ngImport: i0, template: `
|
|
11359
|
+
@if (!collapsed()) {
|
|
11360
|
+
<span class="block px-6 pt-5 pb-1 text-[10px] font-bold uppercase tracking-widest text-slate-500 select-none">{{ label() }}</span>
|
|
11361
|
+
} @else {
|
|
11362
|
+
<span class="flex items-center justify-center w-full py-3">
|
|
11363
|
+
<span class="w-1.5 h-1.5 rounded-full bg-slate-600"></span>
|
|
11364
|
+
</span>
|
|
11365
|
+
}
|
|
11366
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
11257
11367
|
}
|
|
11258
11368
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ClxNavGroupComponent, decorators: [{
|
|
11259
11369
|
type: Component,
|
|
11260
11370
|
args: [{
|
|
11261
11371
|
selector: 'clx-nav-group',
|
|
11262
11372
|
standalone: true,
|
|
11263
|
-
template:
|
|
11373
|
+
template: `
|
|
11374
|
+
@if (!collapsed()) {
|
|
11375
|
+
<span class="block px-6 pt-5 pb-1 text-[10px] font-bold uppercase tracking-widest text-slate-500 select-none">{{ label() }}</span>
|
|
11376
|
+
} @else {
|
|
11377
|
+
<span class="flex items-center justify-center w-full py-3">
|
|
11378
|
+
<span class="w-1.5 h-1.5 rounded-full bg-slate-600"></span>
|
|
11379
|
+
</span>
|
|
11380
|
+
}
|
|
11381
|
+
`,
|
|
11264
11382
|
encapsulation: ViewEncapsulation.None,
|
|
11265
11383
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11266
|
-
host: {
|
|
11267
|
-
class: 'block px-6 pt-5 pb-1 text-[10px] font-bold uppercase tracking-widest text-slate-500 select-none overflow-hidden transition-all duration-300',
|
|
11268
|
-
'[textContent]': '!collapsed() ? label() : ""',
|
|
11269
|
-
'[class.!p-0]': 'collapsed()',
|
|
11270
|
-
'[class.!h-0]': 'collapsed()',
|
|
11271
|
-
'[class.!pt-0]': 'collapsed()',
|
|
11272
|
-
'[class.!pb-0]': 'collapsed()',
|
|
11273
|
-
},
|
|
11384
|
+
host: { class: 'block' },
|
|
11274
11385
|
}]
|
|
11275
11386
|
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], collapsed: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsed", required: false }] }] } });
|
|
11276
11387
|
|
|
@@ -13892,5 +14003,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
13892
14003
|
* Generated bundle index. Do not edit.
|
|
13893
14004
|
*/
|
|
13894
14005
|
|
|
13895
|
-
export { CLX_ALERT_OPTIONS, CLX_ALERT_RESOLVE, CLX_COLOR_HEX, CLX_COLOR_MAP, CLX_MODAL_ANIM_CONFIG, CLX_MODAL_DATA, CLX_MODAL_REF, CLX_RADIO_GROUP, CLX_TOAST_DEFAULTS, ClxAlertComponent, ClxAlertService, ClxAnimateDirective, ClxAnimateGroupDirective, ClxAnimateService, ClxAppLayoutComponent, ClxAvatarComponent, ClxBadgeComponent, ClxButtonComponent, ClxButtonGroupComponent, ClxCardBodyDirective, ClxCardComponent, ClxCardFooterDirective, ClxCardHeaderDirective, ClxCarouselComponent, ClxCarouselDirective, ClxCartComponent, ClxCartSummaryDrawer, ClxCellDirective, ClxChartComponent, ClxCheckboxComponent, ClxColorPickerComponent, ClxColumnDefDirective, ClxDateRangePickerComponent, ClxDatepickerComponent, ClxDrawerComponent, ClxDrawerService, ClxEditorComponent, ClxEditorLinkModalComponent, ClxFilterPanelComponent, ClxHeaderCellDirective, ClxIconComponent, ClxInputComponent, ClxListComponent, ClxListItemComponent, ClxMenuComponent, ClxMenuItemComponent, ClxModalComponent, ClxModalService, ClxNavGroupComponent, ClxNumberComponent, ClxPageEmptyComponent, ClxPageNotFoundComponent, ClxPageServerErrorComponent, ClxPageUnauthorizedComponent, ClxPaginationComponent, ClxProductComponent, ClxProductDetailComponent, ClxProgressBarComponent, ClxRadioComponent, ClxRadioGroupComponent, ClxRatingComponent, ClxSelectComponent, ClxSkeletonComponent, ClxSliderComponent, ClxSpinnerComponent, ClxStatCardComponent, ClxStepComponent, ClxStepperComponent, ClxSwitchComponent, ClxTabDirective, ClxTableComponent, ClxTabsComponent, ClxTagComponent, ClxTextareaComponent, ClxTimelineComponent, ClxTimelineItemComponent, ClxToastComponent, ClxToastContainerComponent, ClxToastService, ClxTooltipComponent, ClxTooltipDirective, ClxTreeComponent, ClxUploadComponent, ClxWishlistComponent, ClxWizardComponent, parseColorInput, resolveColor };
|
|
14006
|
+
export { CLX_ALERT_OPTIONS, CLX_ALERT_RESOLVE, CLX_COLOR_HEX, CLX_COLOR_MAP, CLX_MODAL_ANIM_CONFIG, CLX_MODAL_DATA, CLX_MODAL_REF, CLX_RADIO_GROUP, CLX_TOAST_DEFAULTS, ClxAlertComponent, ClxAlertService, ClxAnimateDirective, ClxAnimateGroupDirective, ClxAnimateService, ClxAppLayoutComponent, ClxAvatarComponent, ClxBadgeComponent, ClxBrandComponent, ClxButtonComponent, ClxButtonGroupComponent, ClxCardBodyDirective, ClxCardComponent, ClxCardFooterDirective, ClxCardHeaderDirective, ClxCarouselComponent, ClxCarouselDirective, ClxCartComponent, ClxCartSummaryDrawer, ClxCellDirective, ClxChartComponent, ClxCheckboxComponent, ClxColorPickerComponent, ClxColumnDefDirective, ClxDateRangePickerComponent, ClxDatepickerComponent, ClxDrawerComponent, ClxDrawerService, ClxEditorComponent, ClxEditorLinkModalComponent, ClxFilterPanelComponent, ClxHeaderCellDirective, ClxIconComponent, ClxInputComponent, ClxListComponent, ClxListItemComponent, ClxMenuComponent, ClxMenuItemComponent, ClxModalComponent, ClxModalService, ClxNavGroupComponent, ClxNumberComponent, ClxPageEmptyComponent, ClxPageNotFoundComponent, ClxPageServerErrorComponent, ClxPageUnauthorizedComponent, ClxPaginationComponent, ClxProductComponent, ClxProductDetailComponent, ClxProgressBarComponent, ClxRadioComponent, ClxRadioGroupComponent, ClxRatingComponent, ClxSelectComponent, ClxSkeletonComponent, ClxSliderComponent, ClxSpinnerComponent, ClxStatCardComponent, ClxStepComponent, ClxStepperComponent, ClxSwitchComponent, ClxTabDirective, ClxTableComponent, ClxTabsComponent, ClxTagComponent, ClxTextareaComponent, ClxTimelineComponent, ClxTimelineItemComponent, ClxToastComponent, ClxToastContainerComponent, ClxToastService, ClxTooltipComponent, ClxTooltipDirective, ClxTreeComponent, ClxUploadComponent, ClxWishlistComponent, ClxWizardComponent, parseColorInput, resolveColor };
|
|
13896
14007
|
//# sourceMappingURL=codexly-ui.mjs.map
|