commons-shared-web-ui 0.0.65 → 0.0.66
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/index.d.ts
CHANGED
|
@@ -3667,6 +3667,12 @@ interface TableConfig {
|
|
|
3667
3667
|
theme?: TableTheme;
|
|
3668
3668
|
requestParams?: Function;
|
|
3669
3669
|
selectable?: boolean;
|
|
3670
|
+
/**
|
|
3671
|
+
* When `selectable` is true: `true`/omitted renders a checkbox per row (multiple rows
|
|
3672
|
+
* selectable, plus a "select all" header checkbox). `false` renders a radio button per
|
|
3673
|
+
* row instead — only one row selectable at a time, and the header checkbox is hidden.
|
|
3674
|
+
*/
|
|
3675
|
+
multiSelect?: boolean;
|
|
3670
3676
|
queryParamsConfig?: QueryParamsConfig;
|
|
3671
3677
|
labels?: TableLabels;
|
|
3672
3678
|
searchConfig?: SearchConfig;
|
|
@@ -4563,14 +4569,10 @@ interface FilterTableSelectorConfig {
|
|
|
4563
4569
|
selectionConfig: SelectionConfig;
|
|
4564
4570
|
}
|
|
4565
4571
|
/**
|
|
4566
|
-
* Extended TableConfig for FilterTableSelector
|
|
4572
|
+
* Extended TableConfig for FilterTableSelector.
|
|
4573
|
+
* `multiSelect` (checkbox vs. radio row selection) is inherited from `TableConfig`.
|
|
4567
4574
|
*/
|
|
4568
4575
|
interface FilterTableConfig extends TableConfig {
|
|
4569
|
-
/**
|
|
4570
|
-
* When true (and selectable=true), multiple rows can be selected simultaneously.
|
|
4571
|
-
* When false, only one row can be selected at a time (radio behaviour).
|
|
4572
|
-
*/
|
|
4573
|
-
multiSelect?: boolean;
|
|
4574
4576
|
}
|
|
4575
4577
|
|
|
4576
4578
|
declare class FilterTableSelectorComponent implements OnInit, OnChanges, OnDestroy {
|
|
@@ -4690,6 +4692,9 @@ declare class SmartTableComponent implements OnInit, OnChanges, AfterViewInit, O
|
|
|
4690
4692
|
private router;
|
|
4691
4693
|
private cdr;
|
|
4692
4694
|
private ngZone;
|
|
4695
|
+
private static instanceCounter;
|
|
4696
|
+
/** Unique per-instance name for the row-selection radio group (see `isMultiSelect`). */
|
|
4697
|
+
readonly radioGroupName: string;
|
|
4693
4698
|
config: TableConfig;
|
|
4694
4699
|
/**
|
|
4695
4700
|
* External data mode: pass table rows directly from the parent.
|
|
@@ -4818,8 +4823,12 @@ declare class SmartTableComponent implements OnInit, OnChanges, AfterViewInit, O
|
|
|
4818
4823
|
onDeleteCancel(): void;
|
|
4819
4824
|
onTopAction(action: TableAction): void;
|
|
4820
4825
|
private executeApiAction;
|
|
4826
|
+
/** `false` (via `config.multiSelect`) switches row selection from checkboxes to a radio button per row. */
|
|
4827
|
+
get isMultiSelect(): boolean;
|
|
4821
4828
|
onSelectAll(event: Event): void;
|
|
4822
4829
|
onRowSelect(row: any): void;
|
|
4830
|
+
/** Single-select mode: the newly picked row replaces the entire selection, including across pages. */
|
|
4831
|
+
onRowSelectSingle(row: any): void;
|
|
4823
4832
|
updateSelectedRows(): void;
|
|
4824
4833
|
getCellValue(row: any, col: TableColumn): any;
|
|
4825
4834
|
getBadgeClass(row: any, col: TableColumn): string;
|