@seniorsistemas/scala-ng 2.1.0 → 2.2.0
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/README.md +4 -5
- package/avatar-summary/README.md +6 -2
- package/avatar-summary/public-api.d.ts +1 -1
- package/avatar-summary/src/avatar-summary/avatar-summary.component.d.ts +1 -1
- package/banner/README.md +13 -9
- package/banner/public-api.d.ts +1 -1
- package/breadcrumb/README.md +15 -8
- package/breadcrumb/public-api.d.ts +3 -3
- package/breadcrumb/src/breadcrumb-router/breadcrumb-route-data.d.ts +1 -0
- package/breadcrumb/src/breadcrumb-router/breadcrumb-router.component.d.ts +7 -1
- package/card/README.md +1 -0
- package/checkbox/README.md +3 -1
- package/date-picker/README.md +1 -0
- package/date-picker/public-api.d.ts +1 -1
- package/drawer/README.md +4 -0
- package/empty-state/README.md +17 -11
- package/empty-state/src/empty-state/empty-state.component.d.ts +1 -1
- package/esm2022/autocomplete/src/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2022/avatar-summary/public-api.mjs +1 -1
- package/esm2022/avatar-summary/src/avatar-summary/avatar-summary.component.mjs +2 -2
- package/esm2022/banner/public-api.mjs +2 -2
- package/esm2022/banner/src/banner/banner.component.mjs +4 -4
- package/esm2022/breadcrumb/public-api.mjs +2 -2
- package/esm2022/breadcrumb/src/breadcrumb/breadcrumb.component.mjs +4 -4
- package/esm2022/breadcrumb/src/breadcrumb-item/breadcrumb-item.component.mjs +6 -3
- package/esm2022/breadcrumb/src/breadcrumb-router/breadcrumb-route-data.mjs +1 -1
- package/esm2022/breadcrumb/src/breadcrumb-router/breadcrumb-router.component.mjs +23 -6
- package/esm2022/breadcrumb/src/breadcrumb-truncator/breadcrumb-truncator.component.mjs +2 -2
- package/esm2022/card/src/card/card.component.mjs +4 -4
- package/esm2022/checkbox/src/checkbox/checkbox.component.mjs +3 -3
- package/esm2022/date-picker/public-api.mjs +2 -2
- package/esm2022/date-picker/src/date-picker/datepicker.component.mjs +4 -4
- package/esm2022/drawer/src/drawer/drawer.component.mjs +3 -3
- package/esm2022/empty-state/src/empty-state/empty-state.component.mjs +4 -4
- package/esm2022/input/src/input/input.component.mjs +3 -4
- package/esm2022/item-strip/public-api.mjs +1 -1
- package/esm2022/item-strip/src/item-strip/item-strip.component.mjs +59 -11
- package/esm2022/item-strip/src/item-strip-item/item-strip-item.component.mjs +97 -9
- package/esm2022/lib/chip/chip.utils.mjs +2 -2
- package/esm2022/lib/overlay/scroll-lock.utils.mjs +1 -1
- package/esm2022/lib/theme/theme.service.mjs +2 -2
- package/esm2022/list/public-api.mjs +1 -1
- package/esm2022/list/src/list/list.component.mjs +3 -3
- package/esm2022/list/src/list/list.models.mjs +1 -1
- package/esm2022/list/src/list-item/list-item.component.mjs +26 -5
- package/esm2022/locale/fallback.mjs +1 -2
- package/esm2022/page-header/src/page-header/page-header.component.mjs +8 -6
- package/esm2022/paginator/src/paginator/paginator.component.mjs +2 -2
- package/esm2022/panel/src/panel/panel.component.mjs +4 -4
- package/esm2022/public-api.mjs +5 -5
- package/esm2022/radio-button/public-api.mjs +2 -2
- package/esm2022/radio-button/src/radio-button/radio-button.component.mjs +3 -3
- package/esm2022/select/src/select/select.component.mjs +5 -5
- package/esm2022/select-button/src/select-button/select-button.component.mjs +4 -4
- package/esm2022/stats-card/src/stats-card/stats-card.component.mjs +5 -28
- package/esm2022/switch/src/switch/switch.component.mjs +3 -3
- package/esm2022/table/public-api.mjs +1 -1
- package/esm2022/table/src/components/actions-cell/table-actions-cell.component.mjs +10 -5
- package/esm2022/table/src/components/fields/rich-field-table/rich-field-table.component.mjs +1 -1
- package/esm2022/table/src/components/selection-cell/table-selection-cell.component.mjs +2 -2
- package/esm2022/table/src/components/toolbar/table-toolbar.component.mjs +3 -3
- package/esm2022/table/src/directives/table-container.directive.mjs +3 -3
- package/esm2022/table/src/table/table.component.mjs +3 -3
- package/esm2022/table/src/table/table.models.mjs +1 -1
- package/esm2022/table/src/utils/table-lazy-event.utils.mjs +1 -1
- package/esm2022/tooltip/src/tooltip/tooltip-focus-origin.service.mjs +32 -0
- package/esm2022/tooltip/src/tooltip-panel/tooltip-panel.component.mjs +5 -3
- package/esm2022/tooltip/src/tooltip-trigger/tooltip-trigger.directive.mjs +77 -23
- package/fesm2022/seniorsistemas-scala-ng-autocomplete.mjs +2 -2
- package/fesm2022/seniorsistemas-scala-ng-autocomplete.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-avatar-summary.mjs +1 -1
- package/fesm2022/seniorsistemas-scala-ng-avatar-summary.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-banner.mjs +53 -53
- package/fesm2022/seniorsistemas-scala-ng-banner.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-breadcrumb.mjs +30 -11
- package/fesm2022/seniorsistemas-scala-ng-breadcrumb.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-card.mjs +3 -3
- package/fesm2022/seniorsistemas-scala-ng-card.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-checkbox.mjs +2 -2
- package/fesm2022/seniorsistemas-scala-ng-checkbox.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-date-picker.mjs +3 -3
- package/fesm2022/seniorsistemas-scala-ng-date-picker.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-drawer.mjs +2 -2
- package/fesm2022/seniorsistemas-scala-ng-drawer.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-empty-state.mjs +3 -3
- package/fesm2022/seniorsistemas-scala-ng-empty-state.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-input.mjs +1 -1
- package/fesm2022/seniorsistemas-scala-ng-input.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-item-strip.mjs +154 -18
- package/fesm2022/seniorsistemas-scala-ng-item-strip.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-list.mjs +27 -6
- package/fesm2022/seniorsistemas-scala-ng-list.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-locale.mjs +0 -1
- package/fesm2022/seniorsistemas-scala-ng-locale.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-page-header.mjs +7 -5
- package/fesm2022/seniorsistemas-scala-ng-page-header.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-paginator.mjs +1 -1
- package/fesm2022/seniorsistemas-scala-ng-paginator.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-panel.mjs +3 -3
- package/fesm2022/seniorsistemas-scala-ng-panel.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-radio-button.mjs +3 -3
- package/fesm2022/seniorsistemas-scala-ng-radio-button.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-select-button.mjs +3 -3
- package/fesm2022/seniorsistemas-scala-ng-select-button.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-select.mjs +4 -4
- package/fesm2022/seniorsistemas-scala-ng-select.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-stats-card.mjs +4 -27
- package/fesm2022/seniorsistemas-scala-ng-stats-card.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-switch.mjs +2 -2
- package/fesm2022/seniorsistemas-scala-ng-switch.mjs.map +1 -1
- package/fesm2022/{seniorsistemas-scala-ng-table-table-actions-cell.component-DZU3DYW8.mjs → seniorsistemas-scala-ng-table-table-actions-cell.component-D6ffnUl1.mjs} +10 -5
- package/fesm2022/seniorsistemas-scala-ng-table-table-actions-cell.component-D6ffnUl1.mjs.map +1 -0
- package/fesm2022/{seniorsistemas-scala-ng-table-table-toolbar.component-DWhF_ejJ.mjs → seniorsistemas-scala-ng-table-table-toolbar.component-2YcqyPlh.mjs} +3 -3
- package/fesm2022/{seniorsistemas-scala-ng-table-table-toolbar.component-DWhF_ejJ.mjs.map → seniorsistemas-scala-ng-table-table-toolbar.component-2YcqyPlh.mjs.map} +1 -1
- package/fesm2022/seniorsistemas-scala-ng-table.mjs +21 -21
- package/fesm2022/seniorsistemas-scala-ng-table.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng-tooltip.mjs +109 -24
- package/fesm2022/seniorsistemas-scala-ng-tooltip.mjs.map +1 -1
- package/fesm2022/seniorsistemas-scala-ng.mjs +55 -55
- package/fesm2022/seniorsistemas-scala-ng.mjs.map +1 -1
- package/filter-tag/README.md +2 -1
- package/item-strip/README.md +11 -4
- package/item-strip/public-api.d.ts +1 -1
- package/item-strip/src/item-strip/item-strip.component.d.ts +12 -1
- package/item-strip/src/item-strip-item/item-strip-item.component.d.ts +32 -3
- package/list/README.md +17 -0
- package/list/public-api.d.ts +1 -1
- package/list/src/list/list.models.d.ts +19 -0
- package/list/src/list-item/list-item.component.d.ts +15 -2
- package/package.json +1 -7
- package/page-header/README.md +68 -24
- package/page-header/src/page-header/page-header.component.d.ts +5 -3
- package/panel/README.md +5 -1
- package/public-api.d.ts +7 -7
- package/radio-button/README.md +8 -1
- package/radio-button/public-api.d.ts +2 -2
- package/schematics/ng-add/index.js +39 -23
- package/schematics/ng-add/index.js.map +1 -1
- package/select/src/select/select.component.d.ts +3 -3
- package/select-button/README.md +1 -0
- package/selection-chip/README.md +1 -0
- package/stats-card/README.md +35 -29
- package/stats-card/src/stats-card/stats-card.component.d.ts +18 -31
- package/styles/tailwind-tokens.js +103 -1
- package/styles/tokens/radius.scss +0 -2
- package/styles/tokens/spacing.scss +0 -2
- package/styles/tokens/typography.scss +0 -2
- package/styles.scss +2 -0
- package/switch/README.md +7 -1
- package/table/README.md +21 -10
- package/table/public-api.d.ts +4 -4
- package/table/src/table/table.models.d.ts +2 -1
- package/tooltip/README.md +15 -5
- package/tooltip/src/tooltip/tooltip-focus-origin.service.d.ts +16 -0
- package/tooltip/src/tooltip-panel/tooltip-panel.component.d.ts +3 -1
- package/tooltip/src/tooltip-trigger/tooltip-trigger.directive.d.ts +21 -5
- package/avatar-profile/README.md +0 -204
- package/avatar-profile/index.d.ts +0 -5
- package/avatar-profile/package.json +0 -3
- package/avatar-profile/public-api.d.ts +0 -1
- package/avatar-profile/src/avatar-profile/avatar-profile.component.d.ts +0 -21
- package/esm2022/avatar-profile/public-api.mjs +0 -2
- package/esm2022/avatar-profile/seniorsistemas-scala-ng-avatar-profile.mjs +0 -5
- package/esm2022/avatar-profile/src/avatar-profile/avatar-profile.component.mjs +0 -33
- package/fesm2022/seniorsistemas-scala-ng-avatar-profile.mjs +0 -40
- package/fesm2022/seniorsistemas-scala-ng-avatar-profile.mjs.map +0 -1
- package/fesm2022/seniorsistemas-scala-ng-table-table-actions-cell.component-DZU3DYW8.mjs.map +0 -1
|
@@ -4,9 +4,9 @@ import * as i0 from '@angular/core';
|
|
|
4
4
|
import { input, output, Component, Directive, inject, ViewContainerRef, effect, computed, model, contentChild, signal } from '@angular/core';
|
|
5
5
|
import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
|
|
6
6
|
import { TranslatePipe, TranslateService } from '@ngx-translate/core';
|
|
7
|
-
import { Subject, debounceTime } from 'rxjs';
|
|
8
7
|
import { SdsEmptyStateComponent } from '@seniorsistemas/scala-ng/empty-state';
|
|
9
8
|
import { SdsPaginatorComponent } from '@seniorsistemas/scala-ng/paginator';
|
|
9
|
+
import { Subject, debounceTime } from 'rxjs';
|
|
10
10
|
import { SdsButtonComponent } from '@seniorsistemas/scala-ng/button';
|
|
11
11
|
import * as i1 from '@angular/forms';
|
|
12
12
|
import { FormsModule } from '@angular/forms';
|
|
@@ -116,7 +116,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
116
116
|
|
|
117
117
|
class SdsTableContainerDirective {
|
|
118
118
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsTableContainerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
119
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: SdsTableContainerDirective, isStandalone: true, selector: "div[sdsTableContainer]", host: { classAttribute: "block w-full overflow-hidden rounded-radius-large border border-solid border-color-border
|
|
119
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: SdsTableContainerDirective, isStandalone: true, selector: "div[sdsTableContainer]", host: { classAttribute: "block w-full overflow-hidden rounded-radius-large border border-solid border-color-border" }, ngImport: i0 });
|
|
120
120
|
}
|
|
121
121
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsTableContainerDirective, decorators: [{
|
|
122
122
|
type: Directive,
|
|
@@ -125,7 +125,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
125
125
|
standalone: true,
|
|
126
126
|
host: {
|
|
127
127
|
class: "block w-full overflow-hidden rounded-radius-large border border-solid " +
|
|
128
|
-
"border-color-border
|
|
128
|
+
"border-color-border",
|
|
129
129
|
},
|
|
130
130
|
}]
|
|
131
131
|
}] });
|
|
@@ -254,6 +254,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
254
254
|
}]
|
|
255
255
|
}] });
|
|
256
256
|
|
|
257
|
+
class SdsTableRowDetailCellDirective {
|
|
258
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsTableRowDetailCellDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
259
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: SdsTableRowDetailCellDirective, isStandalone: true, selector: "td[sdsTableRowDetailCell]", host: { classAttribute: "bg-surface-sunken px-space-2 py-space-2" }, ngImport: i0 });
|
|
260
|
+
}
|
|
261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsTableRowDetailCellDirective, decorators: [{
|
|
262
|
+
type: Directive,
|
|
263
|
+
args: [{
|
|
264
|
+
selector: "td[sdsTableRowDetailCell]",
|
|
265
|
+
standalone: true,
|
|
266
|
+
host: {
|
|
267
|
+
class: "bg-surface-sunken px-space-2 py-space-2",
|
|
268
|
+
},
|
|
269
|
+
}]
|
|
270
|
+
}] });
|
|
271
|
+
|
|
257
272
|
class SdsTableRowDirective {
|
|
258
273
|
selected = input(false);
|
|
259
274
|
zebra = input(false);
|
|
@@ -296,21 +311,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
296
311
|
}]
|
|
297
312
|
}] });
|
|
298
313
|
|
|
299
|
-
class SdsTableRowDetailCellDirective {
|
|
300
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsTableRowDetailCellDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
301
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: SdsTableRowDetailCellDirective, isStandalone: true, selector: "td[sdsTableRowDetailCell]", host: { classAttribute: "bg-surface-sunken px-space-2 py-space-2" }, ngImport: i0 });
|
|
302
|
-
}
|
|
303
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsTableRowDetailCellDirective, decorators: [{
|
|
304
|
-
type: Directive,
|
|
305
|
-
args: [{
|
|
306
|
-
selector: "td[sdsTableRowDetailCell]",
|
|
307
|
-
standalone: true,
|
|
308
|
-
host: {
|
|
309
|
-
class: "bg-surface-sunken px-space-2 py-space-2",
|
|
310
|
-
},
|
|
311
|
-
}]
|
|
312
|
-
}] });
|
|
313
|
-
|
|
314
314
|
function normalizeSearchText(value) {
|
|
315
315
|
// Objects are skipped on purpose: String(object) would match the literal "[object Object]".
|
|
316
316
|
const text = typeof value === "string" || typeof value === "number" || typeof value === "boolean"
|
|
@@ -926,9 +926,9 @@ class SdsTableComponent {
|
|
|
926
926
|
});
|
|
927
927
|
}
|
|
928
928
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
929
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SdsTableComponent, isStandalone: true, selector: "sds-table", inputs: { headers: { classPropertyName: "headers", publicName: "headers", isSignal: true, isRequired: true, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyHeading: { classPropertyName: "emptyHeading", publicName: "emptyHeading", isSignal: true, isRequired: false, transformFunction: null }, emptyDescription: { classPropertyName: "emptyDescription", publicName: "emptyDescription", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, selectedKeys: { classPropertyName: "selectedKeys", publicName: "selectedKeys", isSignal: true, isRequired: false, transformFunction: null }, allSelected: { classPropertyName: "allSelected", publicName: "allSelected", isSignal: true, isRequired: false, transformFunction: null }, totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, expandedKeys: { classPropertyName: "expandedKeys", publicName: "expandedKeys", isSignal: true, isRequired: false, transformFunction: null }, isRowExpandable: { classPropertyName: "isRowExpandable", publicName: "isRowExpandable", isSignal: true, isRequired: false, transformFunction: null }, groupBy: { classPropertyName: "groupBy", publicName: "groupBy", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, reorderable: { classPropertyName: "reorderable", publicName: "reorderable", isSignal: true, isRequired: false, transformFunction: null }, toolbar: { classPropertyName: "toolbar", publicName: "toolbar", isSignal: true, isRequired: false, transformFunction: null }, paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, pageSizeOptions: { classPropertyName: "pageSizeOptions", publicName: "pageSizeOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { lazyLoad: "lazyLoad", selectedKeys: "selectedKeysChange", allSelected: "allSelectedChange", expandedKeys: "expandedKeysChange", rowReorder: "rowReorder", toolbarSearch: "toolbarSearch" }, queries: [{ propertyName: "rowDetailTemplate", first: true, predicate: ["rowDetail"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"flex w-full flex-col gap-space-2\">\n @if (toolbar(); as toolbarConfig) {\n <div [hidden]=\"!hasToolbarContent()\">\n @defer (on idle; prefetch on immediate) {\n <sds-table-toolbar\n [config]=\"toolbarConfig\"\n [mode]=\"toolbarMode()\"\n [selectedCount]=\"selectedKeys().size\"\n [allowSelectAllMatching]=\"selectionMode() === 'multiple'\"\n [totalRecords]=\"totalRecords() ?? rows().length\"\n [searchValue]=\"searchValue()\"\n (searchChange)=\"_onToolbarSearch($event)\"\n (filterToggle)=\"_onFilterToggle()\"\n (selectAllMatching)=\"_onSelectAllMatching()\"\n (clearSelection)=\"_onClearSelection()\"\n />\n } @placeholder {\n <div class=\"h-[56px]\"></div>\n }\n </div>\n }\n\n <div sdsTableContainer>\n <div class=\"overflow-x-auto\">\n <table sdsTableGrid>\n <colgroup>\n @if (hasSelectionColumn()) {\n <col class=\"w-[48px]\" />\n }\n @if (hasExpandColumn()) {\n <col class=\"w-[40px]\" />\n }\n @for (header of headers(); track header.field) {\n <col />\n }\n @if (hasActionsColumn()) {\n <col sdsTableActionsColumn />\n }\n </colgroup>\n @if (showHeader()) {\n <thead>\n <tr sdsTableHeaderRow>\n @if (hasSelectionColumn()) {\n <th sdsTableHeaderCell>\n @if (selectionMode() === \"multiple\") {\n <div class=\"flex items-center justify-center\">\n <sds-table-selection-cell\n mode=\"checkbox\"\n [label]=\"'platform.scala-ng.table_selection_select_all_label' | translate\"\n [checked]=\"headerSelectionState() === 'checked'\"\n [indeterminate]=\"headerSelectionState() === 'indeterminate'\"\n (checkedChange)=\"$event ? _onSelectAllChecked() : _onSelectAllUnchecked()\"\n />\n </div>\n }\n </th>\n }\n @if (hasExpandColumn()) {\n <th sdsTableHeaderCell>\n <div class=\"flex items-center justify-center\">\n <sds-table-expand-cell\n [expanded]=\"allExpanded()\"\n [label]=\"\n (allExpanded()\n ? 'platform.scala-ng.table_collapse_all_label'\n : 'platform.scala-ng.table_expand_all_label'\n ) | translate\n \"\n (toggled)=\"_onExpandAllToggle()\"\n />\n </div>\n </th>\n }\n <!-- 160px: minimum column width that keeps a label + sort icon readable before the table scrolls horizontally. -->\n @for (header of tableHeaders(); track header.field) {\n <th\n sdsTableHeaderCell\n scope=\"col\"\n class=\"min-w-[160px]\"\n [sortable]=\"header.sortable\"\n [textAlign]=\"header.textAlign\"\n [attr.aria-sort]=\"_ariaSortFor($any(header))\"\n [attr.tabindex]=\"header.sortable ? 0 : null\"\n (click)=\"_onHeaderClick($any(header))\"\n (keydown)=\"_onHeaderKeydown($event, $any(header))\"\n >\n <div\n class=\"flex min-w-0 items-center\"\n [class.justify-end]=\"header.textAlign === 'right'\"\n [class.justify-center]=\"header.textAlign === 'center'\"\n >\n <span class=\"truncate\">{{ header.label }}</span>\n @if (header.sortable) {\n <i\n class=\"fa-solid ml-space-0-50 shrink-0\"\n [class]=\"_sortIconFor($any(header))\"\n aria-hidden=\"true\"\n ></i>\n }\n </div>\n </th>\n }\n @if (hasActionsColumn()) {\n <th\n sdsTableHeaderCell\n scope=\"col\"\n >\n <span class=\"sr-only\">\n {{ \"platform.scala-ng.table_actions_column_label\" | translate }}\n </span>\n </th>\n }\n </tr>\n @if (showFilterRow()) {\n @defer (on idle; prefetch on immediate) {\n <tr\n sds-table-filter-row\n [headers]=\"headers()\"\n [hasSelectionColumn]=\"hasSelectionColumn()\"\n [hasExpandColumn]=\"hasExpandColumn()\"\n [hasActionsColumn]=\"hasActionsColumn()\"\n [values]=\"filterValues()\"\n (valueChange)=\"_onFilterValueChange($event.field, $event.value)\"\n ></tr>\n } @placeholder {\n <tr>\n <td\n class=\"h-[56px]\"\n [attr.colspan]=\"totalColumnCount()\"\n ></td>\n </tr>\n }\n }\n </thead>\n }\n <tbody\n sdsTableBody\n cdkDropList\n (cdkDropListDropped)=\"_onDrop($event)\"\n >\n @switch (state()) {\n @case (\"skeleton\") {\n <tr>\n <td\n class=\"p-0\"\n [attr.colspan]=\"totalColumnCount()\"\n >\n @for (skeletonRow of skeletonRows; track $index) {\n <div\n aria-hidden=\"true\"\n class=\"flex h-[48px] items-center gap-space-2 overflow-hidden px-space-1-5 shadow-[inset_0_-1px_0_0_var(--sds-color-border-interactive-secondary)]\"\n >\n @for (header of headers(); track header.field) {\n <span\n class=\"block h-[12px] w-[100px] shrink-0 rounded-radius-small bg-color-background-interactive-secondary-pressed\"\n ></span>\n }\n </div>\n }\n </td>\n </tr>\n }\n @case (\"error\") {\n <tr>\n <td\n class=\"p-0\"\n [attr.colspan]=\"totalColumnCount()\"\n >\n <sds-empty-state\n type=\"error\"\n [showIcon]=\"true\"\n [heading]=\"'platform.scala-ng.table_error_heading' | translate\"\n [description]=\"'platform.scala-ng.table_error_description' | translate\"\n />\n </td>\n </tr>\n }\n @case (\"empty\") {\n <tr>\n <td\n class=\"p-0\"\n [attr.colspan]=\"totalColumnCount()\"\n >\n <sds-empty-state\n [type]=\"hasActiveFilter() ? 'no-results' : 'default'\"\n [showIcon]=\"true\"\n [heading]=\"\n emptyHeading() ??\n (hasActiveFilter()\n ? ('platform.scala-ng.table_empty_no_results_heading' | translate)\n : ('platform.scala-ng.table_empty_heading' | translate))\n \"\n [description]=\"\n emptyDescription() ??\n (hasActiveFilter()\n ? ('platform.scala-ng.table_empty_no_results_description' | translate)\n : ('platform.scala-ng.table_empty_description' | translate))\n \"\n />\n </td>\n </tr>\n }\n @default {\n @for (item of renderRows(); track _trackRenderRow(item, $index); let last = $last) {\n @switch (item.kind) {\n @case (\"group\") {\n <tr\n sds-table-row-group-header\n [label]=\"item.label\"\n [count]=\"item.count\"\n [collapsed]=\"item.collapsed\"\n [colspan]=\"totalColumnCount()\"\n (toggled)=\"_onGroupToggle(item.key)\"\n ></tr>\n }\n @case (\"row\") {\n <tr\n sdsTableRow\n [selected]=\"_isRowSelected(item.key)\"\n [zebra]=\"zebra() && item.rowIndex % 2 === 0\"\n [isLast]=\"last\"\n cdkDrag\n [cdkDragDisabled]=\"!reorderable()\"\n [cdkDragData]=\"item.data\"\n >\n @if (hasSelectionColumn()) {\n <td sdsTableCell>\n <div class=\"flex items-center justify-center\">\n <sds-table-selection-cell\n [mode]=\"selectionCellMode()\"\n [label]=\"selectionCellLabelKey() | translate\"\n [checked]=\"_isRowSelected(item.key)\"\n [radioGroupName]=\"radioGroupName\"\n [radioValue]=\"item.key ?? ''\"\n [radioSelectedValue]=\"singleSelectedKey()\"\n (checkedChange)=\"_onRowCheckedChange(item.key!, $event)\"\n (radioSelected)=\"_onRowRadioSelected($event)\"\n />\n </div>\n </td>\n }\n @if (hasExpandColumn()) {\n <td sdsTableCell>\n @if (_isRowExpandableRow(item.data)) {\n <div class=\"flex items-center justify-center\">\n <sds-table-expand-cell\n [expanded]=\"_isRowExpanded(item.key)\"\n [label]=\"\n (_isRowExpanded(item.key)\n ? 'platform.scala-ng.table_collapse_row_label'\n : 'platform.scala-ng.table_expand_row_label'\n ) | translate\n \"\n (toggled)=\"_onExpandToggle(item.key!)\"\n />\n </div>\n }\n </td>\n }\n @for (header of tableHeaders(); track header.field) {\n <td\n sdsTableCell\n class=\"truncate\"\n [textAlign]=\"header.textAlign\"\n >\n <ng-container\n [sdsTableField]=\"{ header: $any(header), row: item.data }\"\n ></ng-container>\n </td>\n }\n @if (actions(); as tableActions) {\n @if (tableActions.length > 0) {\n <td\n sdsTableCell\n textAlign=\"right\"\n >\n @defer (on viewport; prefetch on idle) {\n <sds-table-actions-cell\n [actions]=\"tableActions\"\n [row]=\"item.data\"\n />\n } @placeholder {\n <!-- size-8: matches the resolved ghost small button (32px), so the row doesn't jump while the deferred content loads. -->\n <span\n class=\"ml-auto block size-8\"\n aria-hidden=\"true\"\n ></span>\n }\n </td>\n }\n }\n </tr>\n @if (rowDetailTemplate(); as detailTemplate) {\n @if (\n _isRowExpandableRow(item.data) && mountedDetailKeys().has(item.key ?? \"\")\n ) {\n <tr [hidden]=\"!_isRowExpanded(item.key)\">\n <td\n sdsTableRowDetailCell\n [attr.colspan]=\"totalColumnCount()\"\n >\n <ng-container\n [ngTemplateOutlet]=\"detailTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item.data }\"\n ></ng-container>\n </td>\n </tr>\n }\n }\n }\n }\n }\n }\n }\n </tbody>\n </table>\n </div>\n </div>\n\n @if (paginator()) {\n <div sdsTablePaginatorContainer>\n <sds-paginator\n [page]=\"effectivePage()\"\n [pageSize]=\"pageSize()\"\n [totalItems]=\"totalRecords() ?? rows().length\"\n [pageSizeOptions]=\"pageSizeOptions()\"\n [loading]=\"loading()\"\n (pageChange)=\"_onPaginatorChange($event)\"\n />\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: SdsTableGridDirective, selector: "table[sdsTableGrid]" }, { kind: "directive", type: SdsTableContainerDirective, selector: "div[sdsTableContainer]" }, { kind: "directive", type: SdsTableActionsColumnDirective, selector: "col[sdsTableActionsColumn]" }, { kind: "directive", type: SdsTableHeaderRowDirective, selector: "tr[sdsTableHeaderRow]" }, { kind: "directive", type: SdsTableHeaderCellDirective, selector: "th[sdsTableHeaderCell]", inputs: ["sortable", "textAlign"] }, { kind: "directive", type: SdsTableBodyDirective, selector: "tbody[sdsTableBody]" }, { kind: "directive", type: SdsTableRowDirective, selector: "tr[sdsTableRow]", inputs: ["selected", "zebra", "isLast"] }, { kind: "directive", type: SdsTableCellDirective, selector: "td[sdsTableCell]", inputs: ["textAlign"] }, { kind: "directive", type: SdsTableRowDetailCellDirective, selector: "td[sdsTableRowDetailCell]" }, { kind: "directive", type: SdsTablePaginatorContainerDirective, selector: "div[sdsTablePaginatorContainer]" }, { kind: "directive", type: SdsTableFieldDirective, selector: "[sdsTableField]", inputs: ["sdsTableField"] }, { kind: "component", type: SdsTableSelectionCellComponent, selector: "sds-table-selection-cell", inputs: ["mode", "label", "checked", "indeterminate", "disabled", "radioGroupName", "radioValue", "radioSelectedValue"], outputs: ["checkedChange", "radioSelected"] }, { kind: "component", type: SdsTableExpandCellComponent, selector: "sds-table-expand-cell", inputs: ["expanded", "disabled", "label"], outputs: ["toggled"] }, { kind: "component", type: SdsTableRowGroupHeaderComponent, selector: "tr[sds-table-row-group-header]", inputs: ["label", "count", "collapsed", "colspan"], outputs: ["toggled"] }, { kind: "component", type: SdsEmptyStateComponent, selector: "sds-empty-state", inputs: ["type", "heading", "description", "showIcon", "headingLevel", "primaryAction", "secondaryAction"], outputs: ["primaryActionClick", "secondaryActionClick"] }, { kind: "component", type: SdsPaginatorComponent, selector: "sds-paginator", inputs: ["page", "pageSize", "totalItems", "pageSizeOptions", "loading", "showCounter", "showPageSize", "showJumpToPage", "showPageIndicator"], outputs: ["pageChange"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], deferBlockDependencies: [() => [import('./seniorsistemas-scala-ng-table-table-toolbar.component-DWhF_ejJ.mjs').then(m => m.SdsTableToolbarComponent)], () => [import('./seniorsistemas-scala-ng-table-table-filter-row.component-BgdQk6tM.mjs').then(m => m.SdsTableFilterRowComponent)], () => [import('./seniorsistemas-scala-ng-table-table-actions-cell.component-DZU3DYW8.mjs').then(m => m.SdsTableActionsCellComponent)]] });
|
|
929
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SdsTableComponent, isStandalone: true, selector: "sds-table", inputs: { headers: { classPropertyName: "headers", publicName: "headers", isSignal: true, isRequired: true, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyHeading: { classPropertyName: "emptyHeading", publicName: "emptyHeading", isSignal: true, isRequired: false, transformFunction: null }, emptyDescription: { classPropertyName: "emptyDescription", publicName: "emptyDescription", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, selectedKeys: { classPropertyName: "selectedKeys", publicName: "selectedKeys", isSignal: true, isRequired: false, transformFunction: null }, allSelected: { classPropertyName: "allSelected", publicName: "allSelected", isSignal: true, isRequired: false, transformFunction: null }, totalRecords: { classPropertyName: "totalRecords", publicName: "totalRecords", isSignal: true, isRequired: false, transformFunction: null }, expandedKeys: { classPropertyName: "expandedKeys", publicName: "expandedKeys", isSignal: true, isRequired: false, transformFunction: null }, isRowExpandable: { classPropertyName: "isRowExpandable", publicName: "isRowExpandable", isSignal: true, isRequired: false, transformFunction: null }, groupBy: { classPropertyName: "groupBy", publicName: "groupBy", isSignal: true, isRequired: false, transformFunction: null }, zebra: { classPropertyName: "zebra", publicName: "zebra", isSignal: true, isRequired: false, transformFunction: null }, reorderable: { classPropertyName: "reorderable", publicName: "reorderable", isSignal: true, isRequired: false, transformFunction: null }, toolbar: { classPropertyName: "toolbar", publicName: "toolbar", isSignal: true, isRequired: false, transformFunction: null }, paginator: { classPropertyName: "paginator", publicName: "paginator", isSignal: true, isRequired: false, transformFunction: null }, pageSizeOptions: { classPropertyName: "pageSizeOptions", publicName: "pageSizeOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { lazyLoad: "lazyLoad", selectedKeys: "selectedKeysChange", allSelected: "allSelectedChange", expandedKeys: "expandedKeysChange", rowReorder: "rowReorder", toolbarSearch: "toolbarSearch" }, queries: [{ propertyName: "rowDetailTemplate", first: true, predicate: ["rowDetail"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"flex w-full flex-col gap-space-2\">\n @if (toolbar(); as toolbarConfig) {\n <div [hidden]=\"!hasToolbarContent()\">\n @defer (on idle; prefetch on immediate) {\n <sds-table-toolbar\n [config]=\"toolbarConfig\"\n [mode]=\"toolbarMode()\"\n [selectedCount]=\"selectedKeys().size\"\n [allowSelectAllMatching]=\"selectionMode() === 'multiple'\"\n [totalRecords]=\"totalRecords() ?? rows().length\"\n [searchValue]=\"searchValue()\"\n (searchChange)=\"_onToolbarSearch($event)\"\n (filterToggle)=\"_onFilterToggle()\"\n (selectAllMatching)=\"_onSelectAllMatching()\"\n (clearSelection)=\"_onClearSelection()\"\n />\n } @placeholder {\n <div class=\"h-[56px]\"></div>\n }\n </div>\n }\n\n <div sdsTableContainer>\n <div class=\"overflow-x-auto\">\n <table sdsTableGrid>\n <colgroup>\n @if (hasSelectionColumn()) {\n <col class=\"w-[48px]\" />\n }\n @if (hasExpandColumn()) {\n <col class=\"w-[40px]\" />\n }\n @for (header of headers(); track header.field) {\n <col />\n }\n @if (hasActionsColumn()) {\n <col sdsTableActionsColumn />\n }\n </colgroup>\n @if (showHeader()) {\n <thead>\n <tr sdsTableHeaderRow>\n @if (hasSelectionColumn()) {\n <th sdsTableHeaderCell>\n @if (selectionMode() === \"multiple\") {\n <div class=\"flex items-center justify-center\">\n <sds-table-selection-cell\n mode=\"checkbox\"\n [label]=\"'platform.scala-ng.table_selection_select_all_label' | translate\"\n [checked]=\"headerSelectionState() === 'checked'\"\n [indeterminate]=\"headerSelectionState() === 'indeterminate'\"\n (checkedChange)=\"$event ? _onSelectAllChecked() : _onSelectAllUnchecked()\"\n />\n </div>\n }\n </th>\n }\n @if (hasExpandColumn()) {\n <th sdsTableHeaderCell>\n <div class=\"flex items-center justify-center\">\n <sds-table-expand-cell\n [expanded]=\"allExpanded()\"\n [label]=\"\n (allExpanded()\n ? 'platform.scala-ng.table_collapse_all_label'\n : 'platform.scala-ng.table_expand_all_label'\n ) | translate\n \"\n (toggled)=\"_onExpandAllToggle()\"\n />\n </div>\n </th>\n }\n <!-- 160px: minimum column width that keeps a label + sort icon readable before the table scrolls horizontally. -->\n @for (header of tableHeaders(); track header.field) {\n <th\n sdsTableHeaderCell\n scope=\"col\"\n class=\"min-w-[160px]\"\n [sortable]=\"header.sortable\"\n [textAlign]=\"header.textAlign\"\n [attr.aria-sort]=\"_ariaSortFor($any(header))\"\n [attr.tabindex]=\"header.sortable ? 0 : null\"\n (click)=\"_onHeaderClick($any(header))\"\n (keydown)=\"_onHeaderKeydown($event, $any(header))\"\n >\n <div\n class=\"flex min-w-0 items-center\"\n [class.justify-end]=\"header.textAlign === 'right'\"\n [class.justify-center]=\"header.textAlign === 'center'\"\n >\n <span class=\"truncate\">{{ header.label }}</span>\n @if (header.sortable) {\n <i\n class=\"fa-solid ml-space-0-50 shrink-0\"\n [class]=\"_sortIconFor($any(header))\"\n aria-hidden=\"true\"\n ></i>\n }\n </div>\n </th>\n }\n @if (hasActionsColumn()) {\n <th\n sdsTableHeaderCell\n scope=\"col\"\n >\n <span class=\"sr-only\">\n {{ \"platform.scala-ng.table_actions_column_label\" | translate }}\n </span>\n </th>\n }\n </tr>\n @if (showFilterRow()) {\n @defer (on idle; prefetch on immediate) {\n <tr\n sds-table-filter-row\n [headers]=\"headers()\"\n [hasSelectionColumn]=\"hasSelectionColumn()\"\n [hasExpandColumn]=\"hasExpandColumn()\"\n [hasActionsColumn]=\"hasActionsColumn()\"\n [values]=\"filterValues()\"\n (valueChange)=\"_onFilterValueChange($event.field, $event.value)\"\n ></tr>\n } @placeholder {\n <tr>\n <td\n class=\"h-[56px]\"\n [attr.colspan]=\"totalColumnCount()\"\n ></td>\n </tr>\n }\n }\n </thead>\n }\n <tbody\n sdsTableBody\n cdkDropList\n (cdkDropListDropped)=\"_onDrop($event)\"\n >\n @switch (state()) {\n @case (\"skeleton\") {\n <tr>\n <td\n class=\"p-0\"\n [attr.colspan]=\"totalColumnCount()\"\n >\n @for (skeletonRow of skeletonRows; track $index) {\n <div\n aria-hidden=\"true\"\n class=\"flex h-[48px] items-center gap-space-2 overflow-hidden px-space-1-5 shadow-[inset_0_-1px_0_0_var(--sds-color-border-interactive-secondary)]\"\n >\n @for (header of headers(); track header.field) {\n <span\n class=\"block h-[12px] w-[100px] shrink-0 rounded-radius-small bg-color-background-interactive-secondary-pressed\"\n ></span>\n }\n </div>\n }\n </td>\n </tr>\n }\n @case (\"error\") {\n <tr>\n <td\n class=\"p-0\"\n [attr.colspan]=\"totalColumnCount()\"\n >\n <sds-empty-state\n type=\"error\"\n [showIcon]=\"true\"\n [heading]=\"'platform.scala-ng.table_error_heading' | translate\"\n [description]=\"'platform.scala-ng.table_error_description' | translate\"\n />\n </td>\n </tr>\n }\n @case (\"empty\") {\n <tr>\n <td\n class=\"p-0\"\n [attr.colspan]=\"totalColumnCount()\"\n >\n <sds-empty-state\n [type]=\"hasActiveFilter() ? 'no-results' : 'default'\"\n [showIcon]=\"true\"\n [heading]=\"\n emptyHeading() ??\n (hasActiveFilter()\n ? ('platform.scala-ng.table_empty_no_results_heading' | translate)\n : ('platform.scala-ng.table_empty_heading' | translate))\n \"\n [description]=\"\n emptyDescription() ??\n (hasActiveFilter()\n ? ('platform.scala-ng.table_empty_no_results_description' | translate)\n : ('platform.scala-ng.table_empty_description' | translate))\n \"\n />\n </td>\n </tr>\n }\n @default {\n @for (item of renderRows(); track _trackRenderRow(item, $index); let last = $last) {\n @switch (item.kind) {\n @case (\"group\") {\n <tr\n sds-table-row-group-header\n [label]=\"item.label\"\n [count]=\"item.count\"\n [collapsed]=\"item.collapsed\"\n [colspan]=\"totalColumnCount()\"\n (toggled)=\"_onGroupToggle(item.key)\"\n ></tr>\n }\n @case (\"row\") {\n <tr\n sdsTableRow\n [selected]=\"_isRowSelected(item.key)\"\n [zebra]=\"zebra() && item.rowIndex % 2 === 0\"\n [isLast]=\"last\"\n cdkDrag\n [cdkDragDisabled]=\"!reorderable()\"\n [cdkDragData]=\"item.data\"\n >\n @if (hasSelectionColumn()) {\n <td sdsTableCell>\n <div class=\"flex items-center justify-center\">\n <sds-table-selection-cell\n [mode]=\"selectionCellMode()\"\n [label]=\"selectionCellLabelKey() | translate\"\n [checked]=\"_isRowSelected(item.key)\"\n [radioGroupName]=\"radioGroupName\"\n [radioValue]=\"item.key ?? ''\"\n [radioSelectedValue]=\"singleSelectedKey()\"\n (checkedChange)=\"_onRowCheckedChange(item.key!, $event)\"\n (radioSelected)=\"_onRowRadioSelected($event)\"\n />\n </div>\n </td>\n }\n @if (hasExpandColumn()) {\n <td sdsTableCell>\n @if (_isRowExpandableRow(item.data)) {\n <div class=\"flex items-center justify-center\">\n <sds-table-expand-cell\n [expanded]=\"_isRowExpanded(item.key)\"\n [label]=\"\n (_isRowExpanded(item.key)\n ? 'platform.scala-ng.table_collapse_row_label'\n : 'platform.scala-ng.table_expand_row_label'\n ) | translate\n \"\n (toggled)=\"_onExpandToggle(item.key!)\"\n />\n </div>\n }\n </td>\n }\n @for (header of tableHeaders(); track header.field) {\n <td\n sdsTableCell\n class=\"truncate\"\n [textAlign]=\"header.textAlign\"\n >\n <ng-container\n [sdsTableField]=\"{ header: $any(header), row: item.data }\"\n ></ng-container>\n </td>\n }\n @if (actions(); as tableActions) {\n @if (tableActions.length > 0) {\n <td\n sdsTableCell\n textAlign=\"right\"\n >\n @defer (on viewport; prefetch on idle) {\n <sds-table-actions-cell\n [actions]=\"tableActions\"\n [row]=\"item.data\"\n />\n } @placeholder {\n <!-- size-8: matches the resolved ghost small button (32px), so the row doesn't jump while the deferred content loads. -->\n <span\n class=\"ml-auto block size-8\"\n aria-hidden=\"true\"\n ></span>\n }\n </td>\n }\n }\n </tr>\n @if (rowDetailTemplate(); as detailTemplate) {\n @if (\n _isRowExpandableRow(item.data) && mountedDetailKeys().has(item.key ?? \"\")\n ) {\n <tr [hidden]=\"!_isRowExpanded(item.key)\">\n <td\n sdsTableRowDetailCell\n [attr.colspan]=\"totalColumnCount()\"\n >\n <ng-container\n [ngTemplateOutlet]=\"detailTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item.data }\"\n ></ng-container>\n </td>\n </tr>\n }\n }\n }\n }\n }\n }\n }\n </tbody>\n </table>\n </div>\n </div>\n\n @if (paginator()) {\n <div sdsTablePaginatorContainer>\n <sds-paginator\n [page]=\"effectivePage()\"\n [pageSize]=\"pageSize()\"\n [totalItems]=\"totalRecords() ?? rows().length\"\n [pageSizeOptions]=\"pageSizeOptions()\"\n [loading]=\"loading()\"\n (pageChange)=\"_onPaginatorChange($event)\"\n />\n </div>\n }\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: SdsTableGridDirective, selector: "table[sdsTableGrid]" }, { kind: "directive", type: SdsTableContainerDirective, selector: "div[sdsTableContainer]" }, { kind: "directive", type: SdsTableActionsColumnDirective, selector: "col[sdsTableActionsColumn]" }, { kind: "directive", type: SdsTableHeaderRowDirective, selector: "tr[sdsTableHeaderRow]" }, { kind: "directive", type: SdsTableHeaderCellDirective, selector: "th[sdsTableHeaderCell]", inputs: ["sortable", "textAlign"] }, { kind: "directive", type: SdsTableBodyDirective, selector: "tbody[sdsTableBody]" }, { kind: "directive", type: SdsTableRowDirective, selector: "tr[sdsTableRow]", inputs: ["selected", "zebra", "isLast"] }, { kind: "directive", type: SdsTableCellDirective, selector: "td[sdsTableCell]", inputs: ["textAlign"] }, { kind: "directive", type: SdsTableRowDetailCellDirective, selector: "td[sdsTableRowDetailCell]" }, { kind: "directive", type: SdsTablePaginatorContainerDirective, selector: "div[sdsTablePaginatorContainer]" }, { kind: "directive", type: SdsTableFieldDirective, selector: "[sdsTableField]", inputs: ["sdsTableField"] }, { kind: "component", type: SdsTableSelectionCellComponent, selector: "sds-table-selection-cell", inputs: ["mode", "label", "checked", "indeterminate", "disabled", "radioGroupName", "radioValue", "radioSelectedValue"], outputs: ["checkedChange", "radioSelected"] }, { kind: "component", type: SdsTableExpandCellComponent, selector: "sds-table-expand-cell", inputs: ["expanded", "disabled", "label"], outputs: ["toggled"] }, { kind: "component", type: SdsTableRowGroupHeaderComponent, selector: "tr[sds-table-row-group-header]", inputs: ["label", "count", "collapsed", "colspan"], outputs: ["toggled"] }, { kind: "component", type: SdsEmptyStateComponent, selector: "sds-empty-state", inputs: ["type", "heading", "description", "showIcon", "headingLevel", "primaryAction", "secondaryAction"], outputs: ["primaryActionClick", "secondaryActionClick"] }, { kind: "component", type: SdsPaginatorComponent, selector: "sds-paginator", inputs: ["page", "pageSize", "totalItems", "pageSizeOptions", "loading", "showCounter", "showPageSize", "showJumpToPage", "showPageIndicator"], outputs: ["pageChange"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], deferBlockDependencies: [() => [import('./seniorsistemas-scala-ng-table-table-toolbar.component-2YcqyPlh.mjs').then(m => m.SdsTableToolbarComponent)], () => [import('./seniorsistemas-scala-ng-table-table-filter-row.component-BgdQk6tM.mjs').then(m => m.SdsTableFilterRowComponent)], () => [import('./seniorsistemas-scala-ng-table-table-actions-cell.component-D6ffnUl1.mjs').then(m => m.SdsTableActionsCellComponent)]] });
|
|
930
930
|
}
|
|
931
|
-
i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "18.2.14", ngImport: i0, type: SdsTableComponent, resolveDeferredDeps: () => [import('./seniorsistemas-scala-ng-table-table-toolbar.component-
|
|
931
|
+
i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "18.2.14", ngImport: i0, type: SdsTableComponent, resolveDeferredDeps: () => [import('./seniorsistemas-scala-ng-table-table-toolbar.component-2YcqyPlh.mjs').then(m => m.SdsTableToolbarComponent), import('./seniorsistemas-scala-ng-table-table-filter-row.component-BgdQk6tM.mjs').then(m => m.SdsTableFilterRowComponent), import('./seniorsistemas-scala-ng-table-table-actions-cell.component-D6ffnUl1.mjs').then(m => m.SdsTableActionsCellComponent)], resolveMetadata: (SdsTableToolbarComponent, SdsTableFilterRowComponent, SdsTableActionsCellComponent) => ({ decorators: [{
|
|
932
932
|
type: Component,
|
|
933
933
|
args: [{ selector: "sds-table", standalone: true, imports: [
|
|
934
934
|
NgTemplateOutlet,
|
|
@@ -1047,7 +1047,7 @@ class SdsRichFieldTableComponent {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
1049
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsRichFieldTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1050
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SdsRichFieldTableComponent, isStandalone: true, selector: "sds-rich-field-table", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, cell: { classPropertyName: "cell", publicName: "cell", isSignal: true, isRequired: false, transformFunction: null }, row: { classPropertyName: "row", publicName: "row", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div class=\"flex min-w-0 items-center gap-space-1-5\">\n @if (field().avatar; as avatar) {\n <!-- Decorative: the name is rendered next to it, so the avatar never carries information alone. -->\n <span\n class=\"shrink-0\"\n aria-hidden=\"true\"\n >\n <sds-avatar-summary\n [type]=\"avatar.type\"\n [size]=\"avatarSize()\"\n [name]=\"primaryText()\"\n [imageUrl]=\"imageUrl()\"\n [icon]=\"icon()\"\n />\n </span>\n }\n <div class=\"flex min-w-0 flex-col\">\n <span\n class=\"truncate text-font-size-2 leading-line-height-150 text-color-text-neutral-primary\"\n [sdsTooltip]=\"primaryText() ?? ''\"\n [sdsTooltipCheckTruncatedText]=\"true\"\n >{{ primaryText() }}</span\n >\n @if (secondaryText(); as supportingText) {\n <span\n class=\"truncate text-font-size-1 leading-line-height-150 text-color-text-neutral-secondary\"\n [sdsTooltip]=\"supportingText\"\n [sdsTooltipCheckTruncatedText]=\"true\"\n >{{ supportingText }}</span\n >\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: SdsAvatarSummaryComponent, selector: "sds-avatar-summary", inputs: ["type", "size", "name", "imageUrl", "icon", "disabled"] }, { kind: "directive", type: SdsTooltipDirective, selector: "[sdsTooltip]", inputs: ["sdsTooltip", "sdsTooltipTitle", "sdsTooltipPosition", "sdsTooltipShowArrow", "sdsTooltipOpenDelay", "sdsTooltipDisabled", "sdsTooltipCheckTruncatedText", "sdsTooltipFocusable"] }] });
|
|
1050
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: SdsRichFieldTableComponent, isStandalone: true, selector: "sds-rich-field-table", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, cell: { classPropertyName: "cell", publicName: "cell", isSignal: true, isRequired: false, transformFunction: null }, row: { classPropertyName: "row", publicName: "row", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div class=\"flex min-w-0 items-center gap-space-1-5\">\n @if (field().avatar; as avatar) {\n <!-- Decorative: the name is rendered next to it, so the avatar never carries information alone. -->\n <span\n class=\"shrink-0\"\n aria-hidden=\"true\"\n >\n <sds-avatar-summary\n [type]=\"avatar.type\"\n [size]=\"avatarSize()\"\n [name]=\"primaryText()\"\n [imageUrl]=\"imageUrl()\"\n [icon]=\"icon()\"\n />\n </span>\n }\n <div class=\"flex min-w-0 flex-col\">\n <span\n class=\"truncate text-font-size-2 leading-line-height-150 text-color-text-neutral-primary\"\n [sdsTooltip]=\"primaryText() ?? ''\"\n [sdsTooltipCheckTruncatedText]=\"true\"\n >{{ primaryText() }}</span\n >\n @if (secondaryText(); as supportingText) {\n <span\n class=\"truncate text-font-size-1 leading-line-height-150 text-color-text-neutral-secondary\"\n [sdsTooltip]=\"supportingText\"\n [sdsTooltipCheckTruncatedText]=\"true\"\n >{{ supportingText }}</span\n >\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: SdsAvatarSummaryComponent, selector: "sds-avatar-summary", inputs: ["type", "size", "name", "imageUrl", "icon", "disabled"] }, { kind: "directive", type: SdsTooltipDirective, selector: "[sdsTooltip]", inputs: ["sdsTooltip", "sdsTooltipContext", "sdsTooltipTitle", "sdsTooltipPosition", "sdsTooltipShowArrow", "sdsTooltipOpenDelay", "sdsTooltipDisabled", "sdsTooltipCheckTruncatedText", "sdsTooltipFocusable", "sdsTooltipDescribeHost"] }] });
|
|
1051
1051
|
}
|
|
1052
1052
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: SdsRichFieldTableComponent, decorators: [{
|
|
1053
1053
|
type: Component,
|