@bnsights/bbsf-controls 1.0.194-beta.19-11 → 1.0.194-beta.19-13

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,3 +1,4 @@
1
+ import { TemplateRef } from '@angular/core';
1
2
  import { DropdownListItem } from './DropdownListItem';
2
3
  import { ForceDirection } from '../Enums/ForceDirection';
3
4
  import { ControlOptionsBase } from './ControlOptionsBase';
@@ -31,5 +32,7 @@ export declare class DropdownOptions extends ControlOptionsBase {
31
32
  /** Represent Value of disabled items tooltip*/
32
33
  disabledItemsTooltipValue: string;
33
34
  hasGroup: boolean;
35
+ /** Custom template for dropdown items */
36
+ customTemplate: TemplateRef<any>;
34
37
  get displayValue(): any;
35
38
  }
@@ -17,4 +17,6 @@ export declare class RepeaterOptions {
17
17
  disableDeleteButton: boolean;
18
18
  isReadonly: boolean;
19
19
  enableTableNumbering: boolean;
20
+ /** Optional function to determine if delete button should be disabled for a specific entry. Receives the item data and index, returns boolean. */
21
+ isDeleteDisabled?: (item: any, index: number) => boolean;
20
22
  }
@@ -24,6 +24,13 @@ export declare class RepeaterComponent implements OnInit, AfterViewInit {
24
24
  deleteItem(deletedIndex: number): void;
25
25
  addItem(): void;
26
26
  setCurrentIndex(i: number): void;
27
+ /**
28
+ * Determines if the delete button should be disabled for a specific entry.
29
+ * Combines global logic (minRequiredItems + isRequired) with per-entry function if provided.
30
+ * @param index The index of the entry
31
+ * @returns true if delete button should be disabled, false otherwise
32
+ */
33
+ isDeleteButtonDisabled(index: number): boolean;
27
34
  static ɵfac: i0.ɵɵFactoryDeclaration<RepeaterComponent, never>;
28
35
  static ɵcmp: i0.ɵɵComponentDeclaration<RepeaterComponent, "BBSF-repeater", never, { "group": { "alias": "group"; "required": false; }; "options": { "alias": "options"; "required": false; }; "initialTemplate": { "alias": "initialTemplate"; "required": false; }; }, {}, never, never, true, never>;
29
36
  }
@@ -14,6 +14,13 @@ export declare class RepeaterTableComponent implements OnInit {
14
14
  ngOnInit(): void;
15
15
  deleteItem(deletedIndex: string | number): void;
16
16
  addItem(): void;
17
+ /**
18
+ * Determines if the delete button should be disabled for a specific entry.
19
+ * Combines global logic (minRequiredItems + isRequired) with per-entry function if provided.
20
+ * @param index The index of the entry
21
+ * @returns true if delete button should be disabled, false otherwise
22
+ */
23
+ isDeleteButtonDisabled(index: number): boolean;
17
24
  static ɵfac: i0.ɵɵFactoryDeclaration<RepeaterTableComponent, never>;
18
25
  static ɵcmp: i0.ɵɵComponentDeclaration<RepeaterTableComponent, "BBSF-repeater-table", never, { "group": { "alias": "group"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
19
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bnsights/bbsf-controls",
3
- "version": "1.0.194-beta.19-11",
3
+ "version": "1.0.194-beta.19-13",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^19.2.14",
6
6
  "@angular/cdk": "^19.2.19",
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "@angular/google-maps": "^18.2.14",
16
- "@bnsights/bbsf-utilities": "^1.0.69-beta.19-4",
16
+ "@bnsights/bbsf-utilities": "^1.0.69-beta.19-5",
17
17
  "@danielmoncada/angular-datetime-picker": "^20.0.0",
18
18
  "@fullcalendar/angular": "^6.1.19",
19
19
  "@fullcalendar/core": "^6.1.19",