codexly-ui 0.8.0 → 0.8.2
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 +16 -11
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/codexly-ui.d.ts +7 -3
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -10055,18 +10055,22 @@ class ClxPageHeaderComponent {
|
|
|
10055
10055
|
_titleSlot = contentChild(ClxPageHeaderTitleDirective, ...(ngDevMode ? [{ debugName: "_titleSlot" }] : /* istanbul ignore next */ []));
|
|
10056
10056
|
_hasCustomTitle = computed(() => !!this._titleSlot(), ...(ngDevMode ? [{ debugName: "_hasCustomTitle" }] : /* istanbul ignore next */ []));
|
|
10057
10057
|
_color = computed(() => this._themeSvc.config().primaryColor, ...(ngDevMode ? [{ debugName: "_color" }] : /* istanbul ignore next */ []));
|
|
10058
|
-
|
|
10058
|
+
/** Title classes resolved from the theme — also usable by consumers projecting a custom
|
|
10059
|
+
* [clxPageHeaderTitle] block, via a template reference: `<clx-page-header #ph="clxPageHeader">`
|
|
10060
|
+
* then `[class]="ph.titleClass()"` on their own <h1>. */
|
|
10061
|
+
titleClass = computed(() => {
|
|
10059
10062
|
const s = this._themeSvc.pageHeaderTitleStyle();
|
|
10060
10063
|
const colorCls = s.color ? resolveColor(s.color).textSubtle : 'text-clx-text-label';
|
|
10061
10064
|
return `${TEXT_SIZE_CLASS[s.size]} font-[${s.weight}] ${colorCls} truncate`;
|
|
10062
|
-
}, ...(ngDevMode ? [{ debugName: "
|
|
10063
|
-
|
|
10065
|
+
}, ...(ngDevMode ? [{ debugName: "titleClass" }] : /* istanbul ignore next */ []));
|
|
10066
|
+
/** Subtitle classes resolved from the theme — same usage as titleClass. */
|
|
10067
|
+
subtitleClass = computed(() => {
|
|
10064
10068
|
const s = this._themeSvc.pageHeaderSubtitleStyle();
|
|
10065
10069
|
const colorCls = s.color ? resolveColor(s.color).textSubtle : 'text-clx-text-muted';
|
|
10066
10070
|
return `${TEXT_SIZE_CLASS[s.size]} font-[${s.weight}] ${colorCls} mt-0.5`;
|
|
10067
|
-
}, ...(ngDevMode ? [{ debugName: "
|
|
10071
|
+
}, ...(ngDevMode ? [{ debugName: "subtitleClass" }] : /* istanbul ignore next */ []));
|
|
10068
10072
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxPageHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10069
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxPageHeaderComponent, isStandalone: true, selector: "clx-page-header", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, showBack: { classPropertyName: "showBack", publicName: "showBack", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { back: "back" }, host: { classAttribute: "flex items-center gap-3 flex-wrap" }, queries: [{ propertyName: "_titleSlot", first: true, predicate: ClxPageHeaderTitleDirective, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
10073
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxPageHeaderComponent, isStandalone: true, selector: "clx-page-header", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, showBack: { classPropertyName: "showBack", publicName: "showBack", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { back: "back" }, host: { classAttribute: "flex items-center gap-3 flex-wrap" }, queries: [{ propertyName: "_titleSlot", first: true, predicate: ClxPageHeaderTitleDirective, descendants: true, isSignal: true }], exportAs: ["clxPageHeader"], ngImport: i0, template: `
|
|
10070
10074
|
@if (showBack()) {
|
|
10071
10075
|
<button clx-button variant="ghost" [color]="_color()" icon="arrow_back" [iconOnly]="true"
|
|
10072
10076
|
(click)="back.emit()"></button>
|
|
@@ -10079,9 +10083,9 @@ class ClxPageHeaderComponent {
|
|
|
10079
10083
|
</div>
|
|
10080
10084
|
} @else {
|
|
10081
10085
|
<div class="min-w-0">
|
|
10082
|
-
<h1 [class]="
|
|
10086
|
+
<h1 [class]="titleClass()">{{ title() }}</h1>
|
|
10083
10087
|
@if (subtitle()) {
|
|
10084
|
-
<p [class]="
|
|
10088
|
+
<p [class]="subtitleClass()">{{ subtitle() }}</p>
|
|
10085
10089
|
}
|
|
10086
10090
|
</div>
|
|
10087
10091
|
}
|
|
@@ -10094,6 +10098,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
10094
10098
|
args: [{
|
|
10095
10099
|
selector: 'clx-page-header',
|
|
10096
10100
|
standalone: true,
|
|
10101
|
+
exportAs: 'clxPageHeader',
|
|
10097
10102
|
imports: [ClxButtonComponent],
|
|
10098
10103
|
encapsulation: ViewEncapsulation.None,
|
|
10099
10104
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -10111,9 +10116,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
10111
10116
|
</div>
|
|
10112
10117
|
} @else {
|
|
10113
10118
|
<div class="min-w-0">
|
|
10114
|
-
<h1 [class]="
|
|
10119
|
+
<h1 [class]="titleClass()">{{ title() }}</h1>
|
|
10115
10120
|
@if (subtitle()) {
|
|
10116
|
-
<p [class]="
|
|
10121
|
+
<p [class]="subtitleClass()">{{ subtitle() }}</p>
|
|
10117
10122
|
}
|
|
10118
10123
|
</div>
|
|
10119
10124
|
}
|
|
@@ -13149,7 +13154,7 @@ class ClxTableComponent {
|
|
|
13149
13154
|
@if (_getColumnDef(col.key)?.headerCell()?.templateRef; as tpl) {
|
|
13150
13155
|
<ng-container [ngTemplateOutlet]="tpl"></ng-container>
|
|
13151
13156
|
} @else {
|
|
13152
|
-
<span>{{ col.header
|
|
13157
|
+
<span>{{ col.header ?? col.key }}</span>
|
|
13153
13158
|
}
|
|
13154
13159
|
@if (col.sortable) {
|
|
13155
13160
|
<span class="opacity-50">
|
|
@@ -13296,7 +13301,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
13296
13301
|
@if (_getColumnDef(col.key)?.headerCell()?.templateRef; as tpl) {
|
|
13297
13302
|
<ng-container [ngTemplateOutlet]="tpl"></ng-container>
|
|
13298
13303
|
} @else {
|
|
13299
|
-
<span>{{ col.header
|
|
13304
|
+
<span>{{ col.header ?? col.key }}</span>
|
|
13300
13305
|
}
|
|
13301
13306
|
@if (col.sortable) {
|
|
13302
13307
|
<span class="opacity-50">
|