@basis-ng/primitives 0.0.1-alpha.141 → 0.0.1-alpha.143
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/package.json
CHANGED
|
@@ -10,7 +10,8 @@ import * as i1$1 from '@angular/cdk/menu';
|
|
|
10
10
|
import { CdkMenuTrigger } from '@angular/cdk/menu';
|
|
11
11
|
import * as i1$2 from '@angular/cdk/overlay';
|
|
12
12
|
import { CdkOverlayOrigin, CdkConnectedOverlay, ScrollStrategyOptions, ConnectedPosition, ConnectionPositionPair, Overlay as Overlay$1 } from '@angular/cdk/overlay';
|
|
13
|
-
import * as i1$3 from '@angular/
|
|
13
|
+
import * as i1$3 from '@angular/aria/tabs';
|
|
14
|
+
import * as i1$4 from '@angular/cdk/drag-drop';
|
|
14
15
|
import { CdkDragDrop, CdkDrag } from '@angular/cdk/drag-drop';
|
|
15
16
|
|
|
16
17
|
/**
|
|
@@ -191,17 +192,9 @@ declare class Checkbox implements FormValueControl<boolean> {
|
|
|
191
192
|
*/
|
|
192
193
|
readonly size: _angular_core.ModelSignal<"sm" | "md" | "lg">;
|
|
193
194
|
/**
|
|
194
|
-
*
|
|
195
|
+
* Whether the checkbox is disabled. Automatically bound by Signal Forms.
|
|
195
196
|
*/
|
|
196
|
-
readonly
|
|
197
|
-
/**
|
|
198
|
-
* Disabled flag controlled by Angular forms APIs.
|
|
199
|
-
*/
|
|
200
|
-
private readonly disabledFromControl;
|
|
201
|
-
/**
|
|
202
|
-
* Combined disabled state exposed to the template bindings.
|
|
203
|
-
*/
|
|
204
|
-
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
197
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
205
198
|
/**
|
|
206
199
|
* Toggle the checkbox when the user clicks on it.
|
|
207
200
|
*/
|
|
@@ -210,18 +203,13 @@ declare class Checkbox implements FormValueControl<boolean> {
|
|
|
210
203
|
* Prevent the page from scrolling when pressing the space key.
|
|
211
204
|
*/
|
|
212
205
|
suppressSpace(event: Event): void;
|
|
213
|
-
/**
|
|
214
|
-
* Toggle disabled state on the checkbox.
|
|
215
|
-
* @param isDisabled - Whether the control is disabled.
|
|
216
|
-
*/
|
|
217
|
-
setDisabledState(isDisabled: boolean): void;
|
|
218
206
|
/**
|
|
219
207
|
* Update the current value (FormValueControl API).
|
|
220
208
|
* @param value - New boolean value to apply.
|
|
221
209
|
*/
|
|
222
210
|
setValue(value: boolean): void;
|
|
223
211
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Checkbox, never>;
|
|
224
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Checkbox, "button[b-checkbox]", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "
|
|
212
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Checkbox, "button[b-checkbox]", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueChange": "valueChange"; "size": "sizeChange"; }, never, never, true, never>;
|
|
225
213
|
}
|
|
226
214
|
|
|
227
215
|
/**
|
|
@@ -1125,6 +1113,8 @@ declare class Select implements OnInit, FormValueControl<string[]> {
|
|
|
1125
1113
|
readonly selectContent: _angular_core.Signal<SelectContent | undefined>;
|
|
1126
1114
|
/** Function to display the selected value(s). */
|
|
1127
1115
|
readonly displayWith: _angular_core.InputSignal<(value: string[]) => string>;
|
|
1116
|
+
/** Whether the select is disabled. Automatically bound by Signal Forms. */
|
|
1117
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1128
1118
|
/** Current value array for the select. */
|
|
1129
1119
|
readonly value: _angular_core.ModelSignal<string[]>;
|
|
1130
1120
|
/** Emitted when the value changes. */
|
|
@@ -1147,18 +1137,13 @@ declare class Select implements OnInit, FormValueControl<string[]> {
|
|
|
1147
1137
|
* Wire overlay events (overlay persists across lifecycle).
|
|
1148
1138
|
*/
|
|
1149
1139
|
private setupOverlayEvents;
|
|
1150
|
-
/**
|
|
1151
|
-
* Toggle disabled state on the select trigger.
|
|
1152
|
-
* @param isDisabled - Whether the control is disabled.
|
|
1153
|
-
*/
|
|
1154
|
-
setDisabledState(isDisabled: boolean): void;
|
|
1155
1140
|
/**
|
|
1156
1141
|
* Update the current value.
|
|
1157
1142
|
* @param value - New value array to apply.
|
|
1158
1143
|
*/
|
|
1159
1144
|
setValue(value: string[]): void;
|
|
1160
1145
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Select, never>;
|
|
1161
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Select, "b-select", never, { "displayWith": { "alias": "displayWith"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueChange": "valueChange"; }, ["overlay", "selectTrigger", "selectValue", "selectContent"], ["*"], true, never>;
|
|
1146
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Select, "b-select", never, { "displayWith": { "alias": "displayWith"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueChange": "valueChange"; }, ["overlay", "selectTrigger", "selectValue", "selectContent"], ["*"], true, never>;
|
|
1162
1147
|
}
|
|
1163
1148
|
|
|
1164
1149
|
/**
|
|
@@ -1256,38 +1241,32 @@ declare class SwitchComponent implements AfterViewInit {
|
|
|
1256
1241
|
/**
|
|
1257
1242
|
* A single tab within a tabs list.
|
|
1258
1243
|
*/
|
|
1259
|
-
declare class Tab {
|
|
1244
|
+
declare class Tab implements OnDestroy {
|
|
1260
1245
|
/**
|
|
1261
1246
|
* Parent tabs container.
|
|
1262
1247
|
*/
|
|
1263
|
-
private
|
|
1248
|
+
private tabsContainer;
|
|
1264
1249
|
/**
|
|
1265
1250
|
* Host element reference.
|
|
1266
1251
|
*/
|
|
1267
|
-
|
|
1252
|
+
readonly el: ElementRef<any>;
|
|
1268
1253
|
/**
|
|
1269
1254
|
* Unique value identifying this tab.
|
|
1270
1255
|
*/
|
|
1271
1256
|
readonly value: _angular_core.InputSignal<string>;
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
private readonly selected;
|
|
1257
|
+
private focusMonitor;
|
|
1258
|
+
constructor();
|
|
1259
|
+
ngOnDestroy(): void;
|
|
1276
1260
|
/**
|
|
1277
1261
|
* Whether this tab is currently selected.
|
|
1278
1262
|
*/
|
|
1279
1263
|
readonly isSelected: _angular_core.Signal<boolean>;
|
|
1280
|
-
constructor();
|
|
1281
|
-
/**
|
|
1282
|
-
* Set the selected state of this tab.
|
|
1283
|
-
*/
|
|
1284
|
-
setSelected(selected: boolean): void;
|
|
1285
1264
|
/**
|
|
1286
1265
|
* Handle click events to select this tab.
|
|
1287
1266
|
*/
|
|
1288
1267
|
onClick(): void;
|
|
1289
1268
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Tab, never>;
|
|
1290
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Tab, "b-tab", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true,
|
|
1269
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Tab, "b-tab", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1$3.Tab; inputs: { "value": "value"; }; outputs: {}; }]>;
|
|
1291
1270
|
}
|
|
1292
1271
|
|
|
1293
1272
|
/**
|
|
@@ -1306,25 +1285,15 @@ declare class Tabs {
|
|
|
1306
1285
|
* Query list of Tab child components.
|
|
1307
1286
|
*/
|
|
1308
1287
|
readonly tabs: _angular_core.Signal<readonly Tab[]>;
|
|
1309
|
-
|
|
1310
|
-
* Computed index of currently active tab.
|
|
1311
|
-
*/
|
|
1312
|
-
readonly activeIndex: _angular_core.Signal<number>;
|
|
1288
|
+
private tabList;
|
|
1313
1289
|
constructor();
|
|
1314
|
-
|
|
1315
|
-
* Move highlight to the previous tab.
|
|
1316
|
-
*/
|
|
1317
|
-
previousTab(): void;
|
|
1318
|
-
/**
|
|
1319
|
-
* Move highlight to the next tab.
|
|
1320
|
-
*/
|
|
1321
|
-
nextTab(): void;
|
|
1290
|
+
onSelectionChange(selectedValue: string | undefined): void;
|
|
1322
1291
|
/**
|
|
1323
1292
|
* Select a tab by its value.
|
|
1324
1293
|
*/
|
|
1325
1294
|
selectTab(tabValue: string): void;
|
|
1326
1295
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Tabs, never>;
|
|
1327
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Tabs, "b-tabs", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueChange": "valueChange"; }, ["tabs"], ["*"], true,
|
|
1296
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Tabs, "b-tabs", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueChange": "valueChange"; }, ["tabs"], ["*"], true, [{ directive: typeof i1$3.Tabs; inputs: {}; outputs: {}; }, { directive: typeof i1$3.TabList; inputs: { "selectionMode": "selectionMode"; "selectedTab": "selectedTab"; }; outputs: { "selectedTabChange": "selectedTabChange"; }; }]>;
|
|
1328
1297
|
}
|
|
1329
1298
|
|
|
1330
1299
|
/**
|
|
@@ -1426,7 +1395,7 @@ declare class Tree implements OnInit {
|
|
|
1426
1395
|
*/
|
|
1427
1396
|
enableDirectChildren(): void;
|
|
1428
1397
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Tree, never>;
|
|
1429
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Tree, "b-tree", never, { "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "closeRecursively": { "alias": "closeRecursively"; "required": false; "isSignal": true; }; "dragOnlyWhenCollapsed": { "alias": "dragOnlyWhenCollapsed"; "required": false; "isSignal": true; }; }, { "dropEmitter": "dropEmitter"; }, ["nestedNodes"], ["*"], true, [{ directive: typeof i1$
|
|
1398
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Tree, "b-tree", never, { "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "closeRecursively": { "alias": "closeRecursively"; "required": false; "isSignal": true; }; "dragOnlyWhenCollapsed": { "alias": "dragOnlyWhenCollapsed"; "required": false; "isSignal": true; }; }, { "dropEmitter": "dropEmitter"; }, ["nestedNodes"], ["*"], true, [{ directive: typeof i1$4.CdkDropList; inputs: { "id": "id"; "cdkDropListConnectedTo": "connectedTo"; }; outputs: { "cdkDropListDropped": "cdkDropListDropped"; }; }, { directive: typeof i1$4.CdkDropListGroup; inputs: {}; outputs: {}; }]>;
|
|
1430
1399
|
}
|
|
1431
1400
|
|
|
1432
1401
|
/**
|
|
@@ -1503,7 +1472,7 @@ declare class TreeNode implements OnInit {
|
|
|
1503
1472
|
*/
|
|
1504
1473
|
toggleExtension(): void;
|
|
1505
1474
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeNode, never>;
|
|
1506
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeNode, "b-tree-node", never, { "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; "closeEmitter": "closeEmitter"; }, ["nestedTree"], ["*", "b-tree"], true, [{ directive: typeof i1$
|
|
1475
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeNode, "b-tree-node", never, { "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; "closeEmitter": "closeEmitter"; }, ["nestedTree"], ["*", "b-tree"], true, [{ directive: typeof i1$4.CdkDrag; inputs: { "cdkDragDisabled": "disabled"; }; outputs: {}; }]>;
|
|
1507
1476
|
}
|
|
1508
1477
|
|
|
1509
1478
|
/**
|