@filip.mazev/blocks 1.4.16 → 1.4.17

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.
@@ -1,4 +1,4 @@
1
- const BLOCKS_VERSION = "1.4.16";
1
+ const BLOCKS_VERSION = "1.4.17";
2
2
  export { BLOCKS_VERSION };
3
3
 
4
4
  //# sourceMappingURL=filip.mazev-blocks.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"filip.mazev-blocks.mjs","names":[],"sources":["../../../projects/blocks/src/public-api.ts"],"sourcesContent":["/* * Public API Surface of blocks\n * This file is auto-generated. Do not edit directly.\n */\n\nexport const BLOCKS_VERSION = '1.4.16';\n"],"mappings":"AAIA,MAAa,iBAAiB"}
1
+ {"version":3,"file":"filip.mazev-blocks.mjs","names":[],"sources":["../../../projects/blocks/src/public-api.ts"],"sourcesContent":["/* * Public API Surface of blocks\n * This file is auto-generated. Do not edit directly.\n */\n\nexport const BLOCKS_VERSION = '1.4.17';\n"],"mappings":"AAIA,MAAa,iBAAiB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@filip.mazev/blocks",
3
- "version": "1.4.16",
3
+ "version": "1.4.17",
4
4
  "license": "MIT",
5
5
  "schematics": "./schematics/collection.json",
6
6
  "exports": {
@@ -856,7 +856,7 @@ export declare class SearchInput extends BxValueControl<string> {
856
856
  "retry": "retry";
857
857
  }, never, ["bx-error", "bx-hint"], true, never>;
858
858
  }
859
- export type SelectionChangeSource = 'user' | 'select-all' | 'page';
859
+ export type SelectionChangeSource = 'user' | 'select-all' | 'page' | 'clear';
860
860
  export type SelectionDisplay = 'text' | 'tags';
861
861
  export type LoadMoreSource = 'scroll' | 'button' | 'retry';
862
862
  export type LoadMoreButtonMode = 'auto' | 'always';
@@ -947,6 +947,10 @@ declare abstract class BxSelectBase<TValue, TOption> extends BxValueControl<TVal
947
947
  private readonly debouncing;
948
948
  private readonly searchRequest;
949
949
  private readonly knownOptions;
950
+ protected readonly hasSelection: import("@angular/core").Signal<boolean>;
951
+ protected readonly showClear: import("@angular/core").Signal<boolean>;
952
+ protected readonly resolvedClearLabel: import("@angular/core").Signal<string>;
953
+ protected readonly resolvedClearTooltip: import("@angular/core").Signal<string>;
950
954
  protected readonly panelScrollStrategy: import("@angular/cdk/overlay").NoopScrollStrategy;
951
955
  protected readonly isPanelAttached: import("@angular/core").WritableSignal<boolean>;
952
956
  protected readonly searchTerm: import("@angular/core").Signal<string>;
@@ -967,6 +971,12 @@ declare abstract class BxSelectBase<TValue, TOption> extends BxValueControl<TVal
967
971
  protected readonly overflowTagTooltip: import("@angular/core").Signal<string>;
968
972
  protected readonly resolvedLoadingAriaLabel: import("@angular/core").Signal<string>;
969
973
  protected readonly resolvedLoadingLabel: import("@angular/core").Signal<string>;
974
+ /** Shows a clear action when a value is selected. Defaults to true; hidden while readonly. */
975
+ readonly clearable: import("@angular/core").InputSignal<boolean>;
976
+ /** Accessible name of the clear action. Accepts translation keys; defaults to 'Clear selection'. */
977
+ readonly clearLabel: import("@angular/core").InputSignal<ResolvableText>;
978
+ /** Optional clear-action tooltip. Defaults to clearLabel; an empty string hides it. Accepts translation keys. */
979
+ readonly clearTooltip: import("@angular/core").InputSignal<ResolvableText | undefined>;
970
980
  readonly selectionDisplay: import("@angular/core").InputSignal<SelectionDisplay>;
971
981
  readonly tagConfig: import("@angular/core").InputSignal<ITagConfig>;
972
982
  readonly overflowTagConfig: import("@angular/core").InputSignal<ITagConfig>;
@@ -1020,6 +1030,7 @@ declare abstract class BxSelectBase<TValue, TOption> extends BxValueControl<TVal
1020
1030
  protected onPanelKey(event: KeyboardEvent): void;
1021
1031
  protected onTriggerBlur(): void;
1022
1032
  protected onOutsideClick(event: MouseEvent): void;
1033
+ protected clearSelectedValue(value: TValue | null): boolean;
1023
1034
  protected abstract selectOption(option: IBxSelectOption<TOption>): void;
1024
1035
  protected onSearchChange(value: string): void;
1025
1036
  protected selectionTagConfig(option: IBxSelectOption<TOption>): ITagConfig;
@@ -1028,6 +1039,21 @@ declare abstract class BxSelectBase<TValue, TOption> extends BxValueControl<TVal
1028
1039
  private panelItems;
1029
1040
  static ɵfac: i0.ɵɵFactoryDeclaration<BxSelectBase<any, any>, never>;
1030
1041
  static ɵdir: i0.ɵɵDirectiveDeclaration<BxSelectBase<any, any>, never, never, {
1042
+ "clearable": {
1043
+ "alias": "clearable";
1044
+ "required": false;
1045
+ "isSignal": true;
1046
+ };
1047
+ "clearLabel": {
1048
+ "alias": "clearLabel";
1049
+ "required": false;
1050
+ "isSignal": true;
1051
+ };
1052
+ "clearTooltip": {
1053
+ "alias": "clearTooltip";
1054
+ "required": false;
1055
+ "isSignal": true;
1056
+ };
1031
1057
  "selectionDisplay": {
1032
1058
  "alias": "selectionDisplay";
1033
1059
  "required": false;
@@ -1154,6 +1180,7 @@ export interface ISelectionChange<T> {
1154
1180
  }
1155
1181
  export declare class Select<T> extends BxSelectBase<T, T> {
1156
1182
  readonly selectionChange: import("@angular/core").OutputEmitterRef<ISelectionChange<T | null>>;
1183
+ clearSelection(): void;
1157
1184
  isSelected(value: T): boolean;
1158
1185
  protected selectOption(option: IBxSelectOption<T>): void;
1159
1186
  static ɵfac: i0.ɵɵFactoryDeclaration<Select<any>, never>;
@@ -1324,7 +1351,7 @@ export declare class FormSettingsService {
1324
1351
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1325
1352
  }
1326
1353
  export declare const BX_FORM_FIELD_CONTROL: InjectionToken<IFormFieldControl>;
1327
- export type SelectAllChangeReason = 'toggle' | 'item-deselected' | 'scope-change' | 'reset';
1354
+ export type SelectAllChangeReason = 'toggle' | 'item-deselected' | 'scope-change' | 'reset' | 'clear';
1328
1355
  /** Describes select-all intent independently from the finite loaded selection. */
1329
1356
  export interface ISelectAllChange<T> {
1330
1357
  /** Whether future eligible pages in this scope should be automatically selected. */
@@ -1333,17 +1360,24 @@ export interface ISelectAllChange<T> {
1333
1360
  scope: string;
1334
1361
  /** Loaded selected values; does not claim to enumerate the remote result set. */
1335
1362
  values: readonly T[];
1336
- /** User toggle, individual deselection, scope change, or programmatic reset. */
1363
+ /** User toggle, individual deselection, scope change, clear action, or programmatic reset. */
1337
1364
  reason: SelectAllChangeReason;
1338
1365
  }
1339
1366
  export declare class MultiSelect<T> extends BxSelectBase<T[], T> {
1340
1367
  private readonly summaryOverflow;
1341
1368
  private readonly labelsAdapter;
1369
+ protected readonly hasSelection: import("@angular/core").Signal<boolean>;
1342
1370
  protected readonly resolvedSelectAllLabel: import("@angular/core").Signal<string>;
1371
+ protected readonly selectableOptions: import("@angular/core").Signal<IResolvedSelectOption<T>[]>;
1372
+ protected readonly allLoadedSelected: import("@angular/core").Signal<boolean>;
1373
+ protected readonly selectAllChecked: import("@angular/core").Signal<boolean>;
1343
1374
  protected readonly someSelected: import("@angular/core").Signal<boolean>;
1344
1375
  protected readonly usesSummary: import("@angular/core").Signal<boolean>;
1345
1376
  protected readonly displayedSelection: import("@angular/core").Signal<string>;
1377
+ protected readonly resolvedAllSelectedTooltip: import("@angular/core").Signal<string>;
1346
1378
  protected readonly selectionTooltip: import("@angular/core").Signal<string>;
1379
+ /** Select-all intent tooltip: undefined preserves loaded-label feedback; false or empty text disables it. Accepts translation keys. */
1380
+ readonly allSelectedTooltip: import("@angular/core").InputSignal<false | ResolvableText | undefined>;
1347
1381
  readonly allSelectedText: import("@angular/core").InputSignal<ResolvableText | undefined>;
1348
1382
  readonly selectedCountText: import("@angular/core").InputSignal<ResolvableText>;
1349
1383
  readonly summaryThreshold: import("@angular/core").InputSignalWithTransform<number, string | number>;
@@ -1355,6 +1389,7 @@ export declare class MultiSelect<T> extends BxSelectBase<T[], T> {
1355
1389
  readonly selectAllIntentChange: import("@angular/core").OutputEmitterRef<ISelectAllChange<T>>;
1356
1390
  private scope;
1357
1391
  constructor();
1392
+ clearSelection(): void;
1358
1393
  isSelected(value: T): boolean;
1359
1394
  toggleSelectAll(): void;
1360
1395
  reset(): void;
@@ -1362,6 +1397,11 @@ export declare class MultiSelect<T> extends BxSelectBase<T[], T> {
1362
1397
  private emitIntent;
1363
1398
  static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelect<any>, never>;
1364
1399
  static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelect<any>, "bx-multi-select", never, {
1400
+ "allSelectedTooltip": {
1401
+ "alias": "allSelectedTooltip";
1402
+ "required": false;
1403
+ "isSignal": true;
1404
+ };
1365
1405
  "allSelectedText": {
1366
1406
  "alias": "allSelectedText";
1367
1407
  "required": false;
@@ -1473,4 +1513,38 @@ export declare class RangeSlider extends BxValueControl<[number, number]> {
1473
1513
  };
1474
1514
  }, {}, never, ["bx-error", "bx-hint"], true, never>;
1475
1515
  }
1516
+ /** Decorative checkbox face; the owning control supplies semantics and interaction. */
1517
+ export declare class CheckboxIndicator {
1518
+ /** Whether the owning control is checked. Defaults to false. */
1519
+ readonly checked: import("@angular/core").InputSignal<boolean>;
1520
+ /** Displays the partial-selection mark in preference to checked. Defaults to false. */
1521
+ readonly indeterminate: import("@angular/core").InputSignal<boolean>;
1522
+ /** Matches the owning control's validation appearance. Defaults to false. */
1523
+ readonly invalid: import("@angular/core").InputSignal<boolean>;
1524
+ /** Suppresses the active surface finish when the owner is disabled. Defaults to false. */
1525
+ readonly disabled: import("@angular/core").InputSignal<boolean>;
1526
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxIndicator, never>;
1527
+ static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxIndicator, "bx-checkbox-indicator", never, {
1528
+ "checked": {
1529
+ "alias": "checked";
1530
+ "required": false;
1531
+ "isSignal": true;
1532
+ };
1533
+ "indeterminate": {
1534
+ "alias": "indeterminate";
1535
+ "required": false;
1536
+ "isSignal": true;
1537
+ };
1538
+ "invalid": {
1539
+ "alias": "invalid";
1540
+ "required": false;
1541
+ "isSignal": true;
1542
+ };
1543
+ "disabled": {
1544
+ "alias": "disabled";
1545
+ "required": false;
1546
+ "isSignal": true;
1547
+ };
1548
+ }, {}, never, never, true, never>;
1549
+ }
1476
1550
  export type { IBxSelectOption as BxSelectOption };
@@ -1 +1 @@
1
- export declare const BLOCKS_VERSION = "1.4.16";
1
+ export declare const BLOCKS_VERSION = "1.4.17";