codexly-ui 0.0.90 → 0.0.92

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.
@@ -12313,7 +12313,7 @@ class ClxTableComponent {
12313
12313
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.15", ngImport: i0, type: ClxTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
12314
12314
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.15", type: ClxTableComponent, isStandalone: true, selector: "clx-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, emptyIcon: { classPropertyName: "emptyIcon", publicName: "emptyIcon", isSignal: true, isRequired: false, transformFunction: null }, emptyTitle: { classPropertyName: "emptyTitle", publicName: "emptyTitle", isSignal: true, isRequired: false, transformFunction: null }, emptyDescription: { classPropertyName: "emptyDescription", publicName: "emptyDescription", isSignal: true, isRequired: false, transformFunction: null }, sortKey: { classPropertyName: "sortKey", publicName: "sortKey", isSignal: true, isRequired: false, transformFunction: null }, sortDir: { classPropertyName: "sortDir", publicName: "sortDir", isSignal: true, isRequired: false, transformFunction: null }, pageIndex: { classPropertyName: "pageIndex", publicName: "pageIndex", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, _currentPage: { classPropertyName: "_currentPage", publicName: "_currentPage", isSignal: true, isRequired: false, transformFunction: null }, searchQuery: { classPropertyName: "searchQuery", publicName: "searchQuery", isSignal: true, isRequired: false, transformFunction: null }, selectedItems: { classPropertyName: "selectedItems", publicName: "selectedItems", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sortKey: "sortKeyChange", sortDir: "sortDirChange", pageIndex: "pageIndexChange", pageSize: "pageSizeChange", _currentPage: "_currentPageChange", searchQuery: "searchQueryChange", selectedItems: "selectedItemsChange", sortChange: "sortChange", pageChange: "pageChange", selectionChange: "selectionChange" }, host: { classAttribute: "block" }, queries: [{ propertyName: "_columnDefs", predicate: ClxColumnDefDirective, isSignal: true }], ngImport: i0, template: `
12315
12315
  <!-- ── Toolbar: búsqueda ──────────────────────────────────────────────── -->
12316
- @if (searchable() && !loading()) {
12316
+ @if (searchable() && !loading() && _filteredData().length > 0) {
12317
12317
  <div class="mb-3 max-w-80 min-w-40">
12318
12318
  <clx-input
12319
12319
  placeholder="Buscar..."
@@ -12327,14 +12327,14 @@ class ClxTableComponent {
12327
12327
 
12328
12328
  @if (loading()) {
12329
12329
  <!-- ── Loading State ───────────────────────────────────────────────── -->
12330
- <div class="flex flex-col gap-3 min-h-[calc(100vh-220px)]">
12331
- @for (row of [1, 2, 3, 4, 5, 6, 7, 8]; track row) {
12330
+ <div class="space-y-3">
12331
+ @for (row of [1, 2, 3, 4, 5]; track row) {
12332
12332
  <div class="flex items-center gap-4">
12333
12333
  @if (selectable()) {
12334
12334
  <clx-skeleton variant="circular" size="xs"></clx-skeleton>
12335
12335
  }
12336
12336
  @for (col of columns(); track col.key) {
12337
- <clx-skeleton variant="text" size="md" [style.width]="col.width || '120px'"></clx-skeleton>
12337
+ <clx-skeleton variant="text" size="md" [style.flex]="'1'"></clx-skeleton>
12338
12338
  }
12339
12339
  </div>
12340
12340
  }
@@ -12465,7 +12465,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
12465
12465
  ],
12466
12466
  template: `
12467
12467
  <!-- ── Toolbar: búsqueda ──────────────────────────────────────────────── -->
12468
- @if (searchable() && !loading()) {
12468
+ @if (searchable() && !loading() && _filteredData().length > 0) {
12469
12469
  <div class="mb-3 max-w-80 min-w-40">
12470
12470
  <clx-input
12471
12471
  placeholder="Buscar..."
@@ -12479,14 +12479,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
12479
12479
 
12480
12480
  @if (loading()) {
12481
12481
  <!-- ── Loading State ───────────────────────────────────────────────── -->
12482
- <div class="flex flex-col gap-3 min-h-[calc(100vh-220px)]">
12483
- @for (row of [1, 2, 3, 4, 5, 6, 7, 8]; track row) {
12482
+ <div class="space-y-3">
12483
+ @for (row of [1, 2, 3, 4, 5]; track row) {
12484
12484
  <div class="flex items-center gap-4">
12485
12485
  @if (selectable()) {
12486
12486
  <clx-skeleton variant="circular" size="xs"></clx-skeleton>
12487
12487
  }
12488
12488
  @for (col of columns(); track col.key) {
12489
- <clx-skeleton variant="text" size="md" [style.width]="col.width || '120px'"></clx-skeleton>
12489
+ <clx-skeleton variant="text" size="md" [style.flex]="'1'"></clx-skeleton>
12490
12490
  }
12491
12491
  </div>
12492
12492
  }