commons-shared-web-ui 0.0.65 → 0.0.67
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
|
@@ -1522,7 +1522,6 @@ declare class FormFieldComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
1522
1522
|
private _isVisible;
|
|
1523
1523
|
get isVisible(): boolean;
|
|
1524
1524
|
set isVisible(value: boolean);
|
|
1525
|
-
private updateParentVisibility;
|
|
1526
1525
|
showPassword: boolean;
|
|
1527
1526
|
dynamicMinDate: string | null;
|
|
1528
1527
|
dynamicMinTime: string | null;
|
|
@@ -1640,6 +1639,7 @@ declare class FormFieldComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
1640
1639
|
get groupKey(): string;
|
|
1641
1640
|
readonly dropdownScrollStrategy: ScrollStrategy;
|
|
1642
1641
|
constructor(fb: FormBuilder, expressionService: ExpressionService, http: HttpClient, hostRef: ElementRef<HTMLElement>, overlay: Overlay);
|
|
1642
|
+
isFieldVisible(field: FieldConfig, rowController?: SmartFormController): boolean;
|
|
1643
1643
|
/** Portal root, resolved from this component's own node rather than the global document. */
|
|
1644
1644
|
private get portalRoot();
|
|
1645
1645
|
private _onGlobalScroll;
|
|
@@ -1661,6 +1661,7 @@ declare class FormFieldComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
1661
1661
|
get noMatchingOptionsLabel(): string;
|
|
1662
1662
|
/** Returns the label of the currently selected option for single-select custom dropdowns */
|
|
1663
1663
|
get singleSelectedLabel(): string;
|
|
1664
|
+
isSingleOptionSelected(code: any): boolean;
|
|
1664
1665
|
/** Whether the dropdown search feature is enabled for this field */
|
|
1665
1666
|
get isSearchableDropdown(): boolean;
|
|
1666
1667
|
/** Whether the custom single-select dropdown overlay is required (for search OR pagination) */
|
|
@@ -1800,8 +1801,9 @@ declare class FormFieldComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
1800
1801
|
* handler can close it (otherwise the two would fight and re-open it).
|
|
1801
1802
|
*/
|
|
1802
1803
|
onDropdownOverlayOutsideClick(event: MouseEvent, triggerEl: HTMLElement): void;
|
|
1803
|
-
|
|
1804
|
-
|
|
1804
|
+
dropdownOverlayWidth: number | string;
|
|
1805
|
+
toggleMultiDropdown(event: MouseEvent, triggerEl?: HTMLElement): void;
|
|
1806
|
+
toggleSingleDropdown(event: MouseEvent, triggerEl?: HTMLElement): void;
|
|
1805
1807
|
selectSingleOption(option: any): void;
|
|
1806
1808
|
onDocumentClick(): void;
|
|
1807
1809
|
onWindowResize(): void;
|
|
@@ -2155,6 +2157,7 @@ declare class SmartFormComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
2155
2157
|
|
|
2156
2158
|
declare class FormSectionComponent implements OnInit, OnDestroy {
|
|
2157
2159
|
private fb;
|
|
2160
|
+
private expressionService;
|
|
2158
2161
|
config: SectionConfig;
|
|
2159
2162
|
controller: SmartFormController;
|
|
2160
2163
|
formGroup: FormGroup;
|
|
@@ -2170,7 +2173,8 @@ declare class FormSectionComponent implements OnInit, OnDestroy {
|
|
|
2170
2173
|
* Falls back to config.name or a generated key.
|
|
2171
2174
|
*/
|
|
2172
2175
|
get arrayKey(): string;
|
|
2173
|
-
constructor(fb: FormBuilder);
|
|
2176
|
+
constructor(fb: FormBuilder, expressionService: ExpressionService);
|
|
2177
|
+
isFieldVisible(field: FieldConfig): boolean;
|
|
2174
2178
|
ngOnInit(): void;
|
|
2175
2179
|
ngOnDestroy(): void;
|
|
2176
2180
|
/** Creates a fresh FormGroup for one repeater instance */
|
|
@@ -3667,6 +3671,12 @@ interface TableConfig {
|
|
|
3667
3671
|
theme?: TableTheme;
|
|
3668
3672
|
requestParams?: Function;
|
|
3669
3673
|
selectable?: boolean;
|
|
3674
|
+
/**
|
|
3675
|
+
* When `selectable` is true: `true`/omitted renders a checkbox per row (multiple rows
|
|
3676
|
+
* selectable, plus a "select all" header checkbox). `false` renders a radio button per
|
|
3677
|
+
* row instead — only one row selectable at a time, and the header checkbox is hidden.
|
|
3678
|
+
*/
|
|
3679
|
+
multiSelect?: boolean;
|
|
3670
3680
|
queryParamsConfig?: QueryParamsConfig;
|
|
3671
3681
|
labels?: TableLabels;
|
|
3672
3682
|
searchConfig?: SearchConfig;
|
|
@@ -4563,14 +4573,10 @@ interface FilterTableSelectorConfig {
|
|
|
4563
4573
|
selectionConfig: SelectionConfig;
|
|
4564
4574
|
}
|
|
4565
4575
|
/**
|
|
4566
|
-
* Extended TableConfig for FilterTableSelector
|
|
4576
|
+
* Extended TableConfig for FilterTableSelector.
|
|
4577
|
+
* `multiSelect` (checkbox vs. radio row selection) is inherited from `TableConfig`.
|
|
4567
4578
|
*/
|
|
4568
4579
|
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
4580
|
}
|
|
4575
4581
|
|
|
4576
4582
|
declare class FilterTableSelectorComponent implements OnInit, OnChanges, OnDestroy {
|
|
@@ -4690,6 +4696,9 @@ declare class SmartTableComponent implements OnInit, OnChanges, AfterViewInit, O
|
|
|
4690
4696
|
private router;
|
|
4691
4697
|
private cdr;
|
|
4692
4698
|
private ngZone;
|
|
4699
|
+
private static instanceCounter;
|
|
4700
|
+
/** Unique per-instance name for the row-selection radio group (see `isMultiSelect`). */
|
|
4701
|
+
readonly radioGroupName: string;
|
|
4693
4702
|
config: TableConfig;
|
|
4694
4703
|
/**
|
|
4695
4704
|
* External data mode: pass table rows directly from the parent.
|
|
@@ -4818,8 +4827,12 @@ declare class SmartTableComponent implements OnInit, OnChanges, AfterViewInit, O
|
|
|
4818
4827
|
onDeleteCancel(): void;
|
|
4819
4828
|
onTopAction(action: TableAction): void;
|
|
4820
4829
|
private executeApiAction;
|
|
4830
|
+
/** `false` (via `config.multiSelect`) switches row selection from checkboxes to a radio button per row. */
|
|
4831
|
+
get isMultiSelect(): boolean;
|
|
4821
4832
|
onSelectAll(event: Event): void;
|
|
4822
4833
|
onRowSelect(row: any): void;
|
|
4834
|
+
/** Single-select mode: the newly picked row replaces the entire selection, including across pages. */
|
|
4835
|
+
onRowSelectSingle(row: any): void;
|
|
4823
4836
|
updateSelectedRows(): void;
|
|
4824
4837
|
getCellValue(row: any, col: TableColumn): any;
|
|
4825
4838
|
getBadgeClass(row: any, col: TableColumn): string;
|