@spartan-ng/brain 1.8.0-beta.1 → 1.8.0

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.
Files changed (94) hide show
  1. package/fesm2022/spartan-ng-brain-accordion.mjs +6 -3
  2. package/fesm2022/spartan-ng-brain-accordion.mjs.map +1 -1
  3. package/fesm2022/spartan-ng-brain-alert-dialog.mjs +10 -5
  4. package/fesm2022/spartan-ng-brain-alert-dialog.mjs.map +1 -1
  5. package/fesm2022/spartan-ng-brain-autocomplete.mjs +24 -13
  6. package/fesm2022/spartan-ng-brain-autocomplete.mjs.map +1 -1
  7. package/fesm2022/spartan-ng-brain-avatar.mjs +2 -1
  8. package/fesm2022/spartan-ng-brain-avatar.mjs.map +1 -1
  9. package/fesm2022/spartan-ng-brain-button.mjs +2 -1
  10. package/fesm2022/spartan-ng-brain-button.mjs.map +1 -1
  11. package/fesm2022/spartan-ng-brain-calendar.mjs +40 -20
  12. package/fesm2022/spartan-ng-brain-calendar.mjs.map +1 -1
  13. package/fesm2022/spartan-ng-brain-checkbox.mjs +11 -4
  14. package/fesm2022/spartan-ng-brain-checkbox.mjs.map +1 -1
  15. package/fesm2022/spartan-ng-brain-collapsible.mjs +4 -2
  16. package/fesm2022/spartan-ng-brain-collapsible.mjs.map +1 -1
  17. package/fesm2022/spartan-ng-brain-combobox.mjs +42 -22
  18. package/fesm2022/spartan-ng-brain-combobox.mjs.map +1 -1
  19. package/fesm2022/spartan-ng-brain-command.mjs +14 -7
  20. package/fesm2022/spartan-ng-brain-command.mjs.map +1 -1
  21. package/fesm2022/spartan-ng-brain-dialog.mjs +10 -5
  22. package/fesm2022/spartan-ng-brain-dialog.mjs.map +1 -1
  23. package/fesm2022/spartan-ng-brain-drawer.mjs +14 -7
  24. package/fesm2022/spartan-ng-brain-drawer.mjs.map +1 -1
  25. package/fesm2022/spartan-ng-brain-field.mjs +4 -2
  26. package/fesm2022/spartan-ng-brain-field.mjs.map +1 -1
  27. package/fesm2022/spartan-ng-brain-hover-card.mjs +2 -1
  28. package/fesm2022/spartan-ng-brain-hover-card.mjs.map +1 -1
  29. package/fesm2022/spartan-ng-brain-input-otp.mjs +4 -2
  30. package/fesm2022/spartan-ng-brain-input-otp.mjs.map +1 -1
  31. package/fesm2022/spartan-ng-brain-input.mjs +2 -1
  32. package/fesm2022/spartan-ng-brain-input.mjs.map +1 -1
  33. package/fesm2022/spartan-ng-brain-label.mjs +2 -1
  34. package/fesm2022/spartan-ng-brain-label.mjs.map +1 -1
  35. package/fesm2022/spartan-ng-brain-navigation-menu.mjs +12 -6
  36. package/fesm2022/spartan-ng-brain-navigation-menu.mjs.map +1 -1
  37. package/fesm2022/spartan-ng-brain-overlay.mjs +93 -10
  38. package/fesm2022/spartan-ng-brain-overlay.mjs.map +1 -1
  39. package/fesm2022/spartan-ng-brain-popover.mjs +4 -2
  40. package/fesm2022/spartan-ng-brain-popover.mjs.map +1 -1
  41. package/fesm2022/spartan-ng-brain-progress.mjs +2 -1
  42. package/fesm2022/spartan-ng-brain-progress.mjs.map +1 -1
  43. package/fesm2022/spartan-ng-brain-radio-group.mjs +2 -1
  44. package/fesm2022/spartan-ng-brain-radio-group.mjs.map +1 -1
  45. package/fesm2022/spartan-ng-brain-select.mjs +30 -15
  46. package/fesm2022/spartan-ng-brain-select.mjs.map +1 -1
  47. package/fesm2022/spartan-ng-brain-separator.mjs +2 -1
  48. package/fesm2022/spartan-ng-brain-separator.mjs.map +1 -1
  49. package/fesm2022/spartan-ng-brain-sheet.mjs +12 -6
  50. package/fesm2022/spartan-ng-brain-sheet.mjs.map +1 -1
  51. package/fesm2022/spartan-ng-brain-slider.mjs +8 -4
  52. package/fesm2022/spartan-ng-brain-slider.mjs.map +1 -1
  53. package/fesm2022/spartan-ng-brain-sonner.mjs +9 -6
  54. package/fesm2022/spartan-ng-brain-sonner.mjs.map +1 -1
  55. package/fesm2022/spartan-ng-brain-switch.mjs +12 -6
  56. package/fesm2022/spartan-ng-brain-switch.mjs.map +1 -1
  57. package/fesm2022/spartan-ng-brain-textarea.mjs +2 -1
  58. package/fesm2022/spartan-ng-brain-textarea.mjs.map +1 -1
  59. package/fesm2022/spartan-ng-brain-toggle-group.mjs +2 -1
  60. package/fesm2022/spartan-ng-brain-toggle-group.mjs.map +1 -1
  61. package/fesm2022/spartan-ng-brain-toggle.mjs +2 -1
  62. package/fesm2022/spartan-ng-brain-toggle.mjs.map +1 -1
  63. package/package.json +1 -1
  64. package/types/spartan-ng-brain-accordion.d.ts +3 -3
  65. package/types/spartan-ng-brain-alert-dialog.d.ts +5 -5
  66. package/types/spartan-ng-brain-autocomplete.d.ts +12 -12
  67. package/types/spartan-ng-brain-avatar.d.ts +1 -1
  68. package/types/spartan-ng-brain-button.d.ts +1 -1
  69. package/types/spartan-ng-brain-calendar.d.ts +20 -20
  70. package/types/spartan-ng-brain-checkbox.d.ts +4 -2
  71. package/types/spartan-ng-brain-collapsible.d.ts +2 -2
  72. package/types/spartan-ng-brain-combobox.d.ts +21 -21
  73. package/types/spartan-ng-brain-command.d.ts +7 -7
  74. package/types/spartan-ng-brain-dialog.d.ts +5 -5
  75. package/types/spartan-ng-brain-drawer.d.ts +7 -7
  76. package/types/spartan-ng-brain-field.d.ts +2 -2
  77. package/types/spartan-ng-brain-hover-card.d.ts +1 -1
  78. package/types/spartan-ng-brain-input-otp.d.ts +2 -2
  79. package/types/spartan-ng-brain-input.d.ts +1 -1
  80. package/types/spartan-ng-brain-label.d.ts +1 -1
  81. package/types/spartan-ng-brain-navigation-menu.d.ts +6 -6
  82. package/types/spartan-ng-brain-overlay.d.ts +13 -2
  83. package/types/spartan-ng-brain-popover.d.ts +2 -2
  84. package/types/spartan-ng-brain-progress.d.ts +1 -1
  85. package/types/spartan-ng-brain-radio-group.d.ts +1 -1
  86. package/types/spartan-ng-brain-select.d.ts +15 -15
  87. package/types/spartan-ng-brain-separator.d.ts +1 -1
  88. package/types/spartan-ng-brain-sheet.d.ts +6 -6
  89. package/types/spartan-ng-brain-slider.d.ts +4 -4
  90. package/types/spartan-ng-brain-sonner.d.ts +1 -1
  91. package/types/spartan-ng-brain-switch.d.ts +5 -3
  92. package/types/spartan-ng-brain-textarea.d.ts +1 -1
  93. package/types/spartan-ng-brain-toggle-group.d.ts +1 -1
  94. package/types/spartan-ng-brain-toggle.d.ts +1 -1
@@ -111,12 +111,13 @@ class BrnCommand {
111
111
  this._disabled.set(isDisabled);
112
112
  }
113
113
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnCommand, deps: [], target: i0.ɵɵFactoryTarget.Directive });
114
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.16", type: BrnCommand, isStandalone: true, selector: "[brnCommand]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", search: "searchChange" }, host: { listeners: { "keydown.enter": "selectActiveItem()" }, properties: { "id": "id()" } }, providers: [provideBrnCommand(BrnCommand), BRN_COMMAND_VALUE_ACCESSOR], queries: [{ propertyName: "items", predicate: BrnCommandItemToken, descendants: true, isSignal: true }], ngImport: i0 });
114
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.16", type: BrnCommand, isStandalone: true, selector: "[brnCommand]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange", search: "searchChange" }, host: { listeners: { "keydown.enter": "selectActiveItem()" }, properties: { "id": "id()" } }, providers: [provideBrnCommand(BrnCommand), BRN_COMMAND_VALUE_ACCESSOR], queries: [{ propertyName: "items", predicate: BrnCommandItemToken, descendants: true, isSignal: true }], exportAs: ["brnCommand"], ngImport: i0 });
115
115
  }
116
116
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnCommand, decorators: [{
117
117
  type: Directive,
118
118
  args: [{
119
119
  selector: '[brnCommand]',
120
+ exportAs: 'brnCommand',
120
121
  providers: [provideBrnCommand(BrnCommand), BRN_COMMAND_VALUE_ACCESSOR],
121
122
  host: {
122
123
  '[id]': 'id()',
@@ -144,12 +145,13 @@ class BrnCommandEmpty {
144
145
  });
145
146
  }
146
147
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnCommandEmpty, deps: [], target: i0.ɵɵFactoryTarget.Directive });
147
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: BrnCommandEmpty, isStandalone: true, selector: "[brnCommandEmpty]", ngImport: i0 });
148
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: BrnCommandEmpty, isStandalone: true, selector: "[brnCommandEmpty]", exportAs: ["brnCommandEmpty"], ngImport: i0 });
148
149
  }
149
150
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnCommandEmpty, decorators: [{
150
151
  type: Directive,
151
152
  args: [{
152
153
  selector: '[brnCommandEmpty]',
154
+ exportAs: 'brnCommandEmpty',
153
155
  }]
154
156
  }], ctorParameters: () => [] });
155
157
 
@@ -162,12 +164,13 @@ class BrnCommandGroup {
162
164
  /** Determine if there are any visible items in the group */
163
165
  _visible = computed(() => this._items().some((item) => item.visible()), ...(ngDevMode ? [{ debugName: "_visible" }] : /* istanbul ignore next */ []));
164
166
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnCommandGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
165
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.16", type: BrnCommandGroup, isStandalone: true, selector: "[brnCommandGroup]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "attr.data-hidden": "!_visible() ? true : null", "id": "id()" } }, queries: [{ propertyName: "_items", predicate: BrnCommandItemToken, descendants: true, isSignal: true }], ngImport: i0 });
167
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.16", type: BrnCommandGroup, isStandalone: true, selector: "[brnCommandGroup]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "attr.data-hidden": "!_visible() ? true : null", "id": "id()" } }, queries: [{ propertyName: "_items", predicate: BrnCommandItemToken, descendants: true, isSignal: true }], exportAs: ["brnCommandGroup"], ngImport: i0 });
166
168
  }
167
169
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnCommandGroup, decorators: [{
168
170
  type: Directive,
169
171
  args: [{
170
172
  selector: '[brnCommandGroup]',
173
+ exportAs: 'brnCommandGroup',
171
174
  host: {
172
175
  role: 'group',
173
176
  '[attr.data-hidden]': '!_visible() ? true : null',
@@ -214,12 +217,13 @@ class BrnCommandInput {
214
217
  this._command.keyManager.onKeydown(event);
215
218
  }
216
219
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnCommandInput, deps: [], target: i0.ɵɵFactoryTarget.Directive });
217
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.16", type: BrnCommandInput, isStandalone: true, selector: "input[brnCommandInput]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "combobox", "aria-autocomplete": "list", "aria-haspopup": "listbox", "aria-expanded": "true", "type": "text", "autocomplete": "off", "autocorrect": "off", "spellcheck": "false" }, listeners: { "keydown": "onKeyDown($event)", "input": "onInput()" }, properties: { "id": "id()", "attr.aria-controls": "_commandListId()", "attr.aria-activedescendant": "_activeDescendant()", "attr.disabled": "_disabled() ? \"\" : null" } }, providers: [provideBrnCommandInput(BrnCommandInput)], ngImport: i0 });
220
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.16", type: BrnCommandInput, isStandalone: true, selector: "input[brnCommandInput]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "combobox", "aria-autocomplete": "list", "aria-haspopup": "listbox", "aria-expanded": "true", "type": "text", "autocomplete": "off", "autocorrect": "off", "spellcheck": "false" }, listeners: { "keydown": "onKeyDown($event)", "input": "onInput()" }, properties: { "id": "id()", "attr.aria-controls": "_commandListId()", "attr.aria-activedescendant": "_activeDescendant()", "attr.disabled": "_disabled() ? \"\" : null" } }, providers: [provideBrnCommandInput(BrnCommandInput)], exportAs: ["brnCommandInput"], ngImport: i0 });
218
221
  }
219
222
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnCommandInput, decorators: [{
220
223
  type: Directive,
221
224
  args: [{
222
225
  selector: 'input[brnCommandInput]',
226
+ exportAs: 'brnCommandInput',
223
227
  providers: [provideBrnCommandInput(BrnCommandInput)],
224
228
  host: {
225
229
  '[id]': 'id()',
@@ -310,12 +314,13 @@ class BrnCommandItem {
310
314
  this._initialized.set(true);
311
315
  }
312
316
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnCommandItem, deps: [], target: i0.ɵɵFactoryTarget.Directive });
313
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.16", type: BrnCommandItem, isStandalone: true, selector: "button[brnCommandItem]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, _disabled: { classPropertyName: "_disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selected" }, host: { attributes: { "type": "button", "role": "option", "tabIndex": "-1" }, listeners: { "click": "onClick()", "mouseenter": "activate()" }, properties: { "id": "id()", "attr.disabled": "_disabled() ? true : null", "attr.data-disabled": "_disabled() ? \"\" : null", "attr.data-value": "value()", "attr.data-hidden": "!visible() ? true : null", "attr.aria-selected": "_active()", "attr.data-selected": "_active() ? true : null" } }, providers: [provideBrnCommandItem(BrnCommandItem)], ngImport: i0 });
317
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.16", type: BrnCommandItem, isStandalone: true, selector: "button[brnCommandItem]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, _disabled: { classPropertyName: "_disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selected" }, host: { attributes: { "type": "button", "role": "option", "tabIndex": "-1" }, listeners: { "click": "onClick()", "mouseenter": "activate()" }, properties: { "id": "id()", "attr.disabled": "_disabled() ? true : null", "attr.data-disabled": "_disabled() ? \"\" : null", "attr.data-value": "value()", "attr.data-hidden": "!visible() ? true : null", "attr.aria-selected": "_active()", "attr.data-selected": "_active() ? true : null" } }, providers: [provideBrnCommandItem(BrnCommandItem)], exportAs: ["brnCommandItem"], ngImport: i0 });
314
318
  }
315
319
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnCommandItem, decorators: [{
316
320
  type: Directive,
317
321
  args: [{
318
322
  selector: 'button[brnCommandItem]',
323
+ exportAs: 'brnCommandItem',
319
324
  providers: [provideBrnCommandItem(BrnCommandItem)],
320
325
  host: {
321
326
  type: 'button',
@@ -345,12 +350,13 @@ class BrnCommandList {
345
350
  this._command.registerCommandList(this);
346
351
  }
347
352
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnCommandList, deps: [], target: i0.ɵɵFactoryTarget.Directive });
348
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.16", type: BrnCommandList, isStandalone: true, selector: "[brnCommandList]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "listbox" }, properties: { "id": "id()", "attr.aria-label": "ariaLabel()" } }, ngImport: i0 });
353
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.16", type: BrnCommandList, isStandalone: true, selector: "[brnCommandList]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "listbox" }, properties: { "id": "id()", "attr.aria-label": "ariaLabel()" } }, exportAs: ["brnCommandList"], ngImport: i0 });
349
354
  }
350
355
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnCommandList, decorators: [{
351
356
  type: Directive,
352
357
  args: [{
353
358
  selector: '[brnCommandList]',
359
+ exportAs: 'brnCommandList',
354
360
  host: {
355
361
  role: 'listbox',
356
362
  '[id]': 'id()',
@@ -364,12 +370,13 @@ class BrnCommandSeparator {
364
370
  /** Determine if the command has any search input */
365
371
  _hasSearchInput = computed(() => this._command.search().length > 0, ...(ngDevMode ? [{ debugName: "_hasSearchInput" }] : /* istanbul ignore next */ []));
366
372
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnCommandSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
367
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: BrnCommandSeparator, isStandalone: true, selector: "[brnCommandSeparator]", host: { attributes: { "role": "presentation" }, properties: { "attr.data-hidden": "_hasSearchInput() ? true : null" } }, ngImport: i0 });
373
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: BrnCommandSeparator, isStandalone: true, selector: "[brnCommandSeparator]", host: { attributes: { "role": "presentation" }, properties: { "attr.data-hidden": "_hasSearchInput() ? true : null" } }, exportAs: ["brnCommandSeparator"], ngImport: i0 });
368
374
  }
369
375
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnCommandSeparator, decorators: [{
370
376
  type: Directive,
371
377
  args: [{
372
378
  selector: '[brnCommandSeparator]',
379
+ exportAs: 'brnCommandSeparator',
373
380
  host: {
374
381
  role: 'presentation',
375
382
  '[attr.data-hidden]': '_hasSearchInput() ? true : null',
@@ -1 +1 @@
1
- {"version":3,"file":"spartan-ng-brain-command.mjs","sources":["../../../../libs/brain/command/src/lib/brn-command-item.token.ts","../../../../libs/brain/command/src/lib/brn-command.token.ts","../../../../libs/brain/command/src/lib/brn-command.ts","../../../../libs/brain/command/src/lib/brn-command-empty.ts","../../../../libs/brain/command/src/lib/brn-command-group.ts","../../../../libs/brain/command/src/lib/brn-command-input.token.ts","../../../../libs/brain/command/src/lib/brn-command-input.ts","../../../../libs/brain/command/src/lib/brn-command-item.ts","../../../../libs/brain/command/src/lib/brn-command-list.ts","../../../../libs/brain/command/src/lib/brn-command-separator.ts","../../../../libs/brain/command/src/index.ts","../../../../libs/brain/command/src/spartan-ng-brain-command.ts"],"sourcesContent":["import { type ExistingProvider, InjectionToken, type Type } from '@angular/core';\nimport type { BrnCommandItem } from './brn-command-item';\n\nexport const BrnCommandItemToken = new InjectionToken<BrnCommandItem>('BrnCommandItemToken');\n\nexport function provideBrnCommandItem(command: Type<BrnCommandItem>): ExistingProvider {\n\treturn { provide: BrnCommandItemToken, useExisting: command };\n}\n","import { type ExistingProvider, inject, InjectionToken, type Type, type ValueProvider } from '@angular/core';\nimport type { BrnCommand } from './brn-command';\n\nexport const BrnCommandToken = new InjectionToken<BrnCommand>('BrnCommandToken');\n\nexport function provideBrnCommand(command: Type<BrnCommand>): ExistingProvider {\n\treturn { provide: BrnCommandToken, useExisting: command };\n}\n\nexport function injectBrnCommand(): BrnCommand {\n\treturn inject(BrnCommandToken);\n}\n\n// config\nexport type CommandFilter = (value: string, search: string) => boolean;\n\nexport interface BrnCommandConfig {\n\tfilter: CommandFilter;\n}\n\nconst defaultConfig: BrnCommandConfig = {\n\tfilter: (value: string, search: string) => value.toLowerCase().includes(search.toLowerCase()),\n};\n\nconst BrnCommandConfigToken = new InjectionToken<BrnCommandConfig>('BrnCommandConfig');\n\nexport function provideBrnCommandConfig(config: Partial<BrnCommandConfig>): ValueProvider {\n\treturn { provide: BrnCommandConfigToken, useValue: { ...defaultConfig, ...config } };\n}\n\nexport function injectBrnCommandConfig(): BrnCommandConfig {\n\treturn inject(BrnCommandConfigToken, { optional: true }) ?? defaultConfig;\n}\n","import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';\nimport { BooleanInput } from '@angular/cdk/coercion';\nimport {\n\tafterNextRender,\n\tbooleanAttribute,\n\tcomputed,\n\tcontentChildren,\n\tDirective,\n\teffect,\n\tforwardRef,\n\tinject,\n\tInjector,\n\tinput,\n\tlinkedSignal,\n\tmodel,\n\toutput,\n\tsignal,\n\tuntracked,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';\nimport { BrnCommandItemToken } from './brn-command-item.token';\nimport type { BrnCommandList } from './brn-command-list';\nimport { type CommandFilter, injectBrnCommandConfig, provideBrnCommand } from './brn-command.token';\n\nexport const BRN_COMMAND_VALUE_ACCESSOR = {\n\tprovide: NG_VALUE_ACCESSOR,\n\tuseExisting: forwardRef(() => BrnCommand),\n\tmulti: true,\n};\n\n@Directive({\n\tselector: '[brnCommand]',\n\tproviders: [provideBrnCommand(BrnCommand), BRN_COMMAND_VALUE_ACCESSOR],\n\thost: {\n\t\t'[id]': 'id()',\n\t\t'(keydown.enter)': 'selectActiveItem()',\n\t},\n})\nexport class BrnCommand implements ControlValueAccessor {\n\tprivate static _id = 0;\n\n\tprivate readonly _injector = inject(Injector);\n\n\tprivate readonly _config = injectBrnCommandConfig();\n\n\t/** The id of the command */\n\tpublic readonly id = input<string>(`brn-command-${++BrnCommand._id}`);\n\n\t/** A custom filter function to use when searching. */\n\tpublic readonly filter = input<CommandFilter>(this._config.filter);\n\n\t/** Whether the command is disabled */\n\tpublic readonly disabled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\tprivate readonly _disabled = linkedSignal(this.disabled);\n\n\t/** @internal The disabled state as a readonly signal */\n\tpublic readonly disabledState = this._disabled.asReadonly();\n\n\t/** when the selection has changed */\n\tpublic readonly valueChange = output<string>();\n\n\t/** The current search query. */\n\tpublic readonly search = model<string>('');\n\n\t/** @internal Access all the items within the command */\n\tpublic readonly items = contentChildren(BrnCommandItemToken, {\n\t\tdescendants: true,\n\t});\n\n\t/** @internal The key manager for managing active descendant */\n\tpublic readonly keyManager = new ActiveDescendantKeyManager(this.items, this._injector);\n\n\tprivate readonly _commandList = signal<BrnCommandList | undefined>(undefined);\n\n\t/** @internal The id of the command list, registered by BrnCommandList. Used by the input for aria-controls. */\n\tpublic readonly listId = computed(() => this._commandList()?.id());\n\n\t/** @internal Register the command list. Called by BrnCommandList in its constructor. */\n\tpublic registerCommandList(list: BrnCommandList): void {\n\t\tthis._commandList.set(list);\n\t}\n\n\tprotected _onChange?: ChangeFn<string | null>;\n\tprotected _onTouched?: TouchFn;\n\n\tconstructor() {\n\t\tthis.keyManager\n\t\t\t.withVerticalOrientation()\n\t\t\t.withHomeAndEnd()\n\t\t\t.withWrap()\n\t\t\t.skipPredicate((item) => item.disabled || !item.visible());\n\n\t\t// When clearing the search input we also want to reset the active item to the first one\n\t\teffect(() => {\n\t\t\tconst searchInput = this.search();\n\t\t\tuntracked(() => {\n\t\t\t\tconst activeItemIsVisible = this.keyManager.activeItem?.visible();\n\t\t\t\tif ((searchInput !== undefined && searchInput.length === 0) || !activeItemIsVisible) {\n\t\t\t\t\tthis.keyManager.setFirstItemActive();\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tthis.keyManager.change.pipe(takeUntilDestroyed()).subscribe(() => {\n\t\t\tconst value = this.keyManager.activeItem?.safeValue();\n\t\t\tif (value) {\n\t\t\t\tthis.valueChange.emit(value);\n\t\t\t}\n\t\t});\n\n\t\tafterNextRender(() => {\n\t\t\tif (this.items().length) {\n\t\t\t\tthis.keyManager.setActiveItem(0);\n\t\t\t}\n\t\t});\n\t}\n\n\tprotected selectActiveItem(): void {\n\t\tthis.keyManager.activeItem?.selected.emit();\n\t}\n\n\t/** CONTROL VALUE ACCESSOR */\n\twriteValue(value: string | null): void {\n\t\tif (value) {\n\t\t\tthis.search.set(value);\n\t\t}\n\t}\n\n\tregisterOnChange(fn: ChangeFn<string | null>): void {\n\t\tthis._onChange = fn;\n\t}\n\n\tregisterOnTouched(fn: TouchFn): void {\n\t\tthis._onTouched = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis._disabled.set(isDisabled);\n\t}\n}\n","import { computed, Directive, effect, inject, TemplateRef, ViewContainerRef } from '@angular/core';\nimport { injectBrnCommand } from './brn-command.token';\n\n@Directive({\n\tselector: '[brnCommandEmpty]',\n})\nexport class BrnCommandEmpty {\n\tprivate readonly _templateRef = inject<TemplateRef<void>>(TemplateRef);\n\tprivate readonly _viewContainerRef = inject(ViewContainerRef);\n\tprivate readonly _command = injectBrnCommand();\n\n\t/** Determine if the command has any visible items */\n\tprivate readonly _visible = computed(() => this._command.items().some((item) => item.visible()));\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tif (this._visible()) {\n\t\t\t\tthis._viewContainerRef.clear();\n\t\t\t} else {\n\t\t\t\tthis._viewContainerRef.createEmbeddedView(this._templateRef);\n\t\t\t}\n\t\t});\n\t}\n}\n","import { computed, contentChildren, Directive, input } from '@angular/core';\nimport { BrnCommandItemToken } from './brn-command-item.token';\n\n@Directive({\n\tselector: '[brnCommandGroup]',\n\thost: {\n\t\trole: 'group',\n\t\t'[attr.data-hidden]': '!_visible() ? true : null',\n\t\t'[id]': 'id()',\n\t},\n})\nexport class BrnCommandGroup {\n\tprivate static _id = 0;\n\n\t/** The id of the command list */\n\tpublic readonly id = input<string>(`brn-command-group-${++BrnCommandGroup._id}`);\n\n\t/** Get the items in the group */\n\tprivate readonly _items = contentChildren(BrnCommandItemToken, {\n\t\tdescendants: true,\n\t});\n\n\t/** Determine if there are any visible items in the group */\n\tprotected readonly _visible = computed(() => this._items().some((item) => item.visible()));\n}\n","import { type ExistingProvider, InjectionToken, type Type } from '@angular/core';\nimport type { BrnCommandInput } from './brn-command-input';\n\nexport const BrnCommandInputToken = new InjectionToken<BrnCommandInput>('BrnCommandInputToken');\n\nexport function provideBrnCommandInput(command: Type<BrnCommandInput>): ExistingProvider {\n\treturn { provide: BrnCommandInputToken, useExisting: command };\n}\n","import { Directive, effect, ElementRef, inject, input, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { startWith } from 'rxjs/operators';\nimport { provideBrnCommandInput } from './brn-command-input.token';\nimport { injectBrnCommand } from './brn-command.token';\n\n@Directive({\n\tselector: 'input[brnCommandInput]',\n\tproviders: [provideBrnCommandInput(BrnCommandInput)],\n\thost: {\n\t\t'[id]': 'id()',\n\t\trole: 'combobox',\n\t\t'aria-autocomplete': 'list',\n\t\t'aria-haspopup': 'listbox',\n\t\t'aria-expanded': 'true',\n\t\t'[attr.aria-controls]': '_commandListId()',\n\t\t'[attr.aria-activedescendant]': '_activeDescendant()',\n\t\t'[attr.disabled]': '_disabled() ? \"\" : null',\n\t\t'(keydown)': 'onKeyDown($event)',\n\t\t'(input)': 'onInput()',\n\t\ttype: 'text',\n\t\tautocomplete: 'off',\n\t\tautocorrect: 'off',\n\t\tspellcheck: 'false',\n\t},\n})\nexport class BrnCommandInput {\n\tprivate static _id = 0;\n\n\tprivate readonly _el = inject(ElementRef);\n\tprivate readonly _command = injectBrnCommand();\n\tprivate readonly _initialId = `brn-command-input-${++BrnCommandInput._id}`;\n\n\t/** The id of the command input */\n\tpublic readonly id = input<string, string | undefined>(this._initialId, {\n\t\ttransform: (value) => value || this._initialId,\n\t});\n\n\tprotected readonly _commandListId = this._command.listId;\n\n\tprotected readonly _disabled = this._command.disabledState;\n\n\t/** The id of the active option */\n\tprotected readonly _activeDescendant = signal<string | undefined>(undefined);\n\n\tconstructor() {\n\t\tthis._command.keyManager.change\n\t\t\t.pipe(startWith(this._command.keyManager.activeItemIndex), takeUntilDestroyed())\n\t\t\t.subscribe(() => this._activeDescendant.set(this._command.keyManager.activeItem?.id()));\n\n\t\teffect(() => {\n\t\t\tconst search = this._command.search();\n\n\t\t\tif (this._el.nativeElement.value !== search) {\n\t\t\t\tthis._el.nativeElement.value = search;\n\t\t\t}\n\t\t});\n\t}\n\t/** Listen for changes to the input value */\n\tprotected onInput(): void {\n\t\tthis._command.search.set(this._el.nativeElement.value);\n\t}\n\n\t/** Listen for keydown events */\n\tprotected onKeyDown(event: KeyboardEvent): void {\n\t\tthis._command.keyManager.onKeydown(event);\n\t}\n}\n","import type { Highlightable } from '@angular/cdk/a11y';\nimport type { BooleanInput } from '@angular/cdk/coercion';\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n\tbooleanAttribute,\n\tcomputed,\n\tDirective,\n\tElementRef,\n\tinject,\n\tinput,\n\ttype OnInit,\n\toutput,\n\tPLATFORM_ID,\n\tsignal,\n} from '@angular/core';\nimport { provideBrnCommandItem } from './brn-command-item.token';\nimport { injectBrnCommand } from './brn-command.token';\n\n@Directive({\n\tselector: 'button[brnCommandItem]',\n\tproviders: [provideBrnCommandItem(BrnCommandItem)],\n\thost: {\n\t\ttype: 'button',\n\t\trole: 'option',\n\t\ttabIndex: '-1',\n\t\t'[id]': 'id()',\n\t\t'[attr.disabled]': '_disabled() ? true : null',\n\t\t'[attr.data-disabled]': '_disabled() ? \"\" : null',\n\t\t'[attr.data-value]': 'value()',\n\t\t'[attr.data-hidden]': '!visible() ? true : null',\n\t\t'[attr.aria-selected]': '_active()',\n\t\t'[attr.data-selected]': '_active() ? true : null',\n\t\t'(click)': 'onClick()',\n\t\t'(mouseenter)': 'activate()',\n\t},\n})\nexport class BrnCommandItem implements Highlightable, OnInit {\n\tprivate static _id = 0;\n\n\tprivate readonly _platform = inject(PLATFORM_ID);\n\n\tprivate readonly _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n\t/** Access the command component */\n\tprivate readonly _command = injectBrnCommand();\n\n\t/** A unique id for the item */\n\tpublic readonly id = input<string>(`brn-command-item-${++BrnCommandItem._id}`);\n\n\t/** The value this item represents. */\n\tpublic readonly value = input.required<string>();\n\n\t/** Whether the item is disabled. */\n\t// eslint-disable-next-line @typescript-eslint/naming-convention\n\tpublic readonly _disabled = input<boolean, BooleanInput>(false, {\n\t\talias: 'disabled',\n\t\ttransform: booleanAttribute,\n\t});\n\n\t/** Expose disabled as a value - used by the Highlightable interface */\n\tpublic get disabled() {\n\t\treturn this._disabled();\n\t}\n\n\t/** Whether the item is initialized, this is to prevent accessing the value-input before the component is initialized.\n\t * The brn-command-empty directive accesses the value before the component is initialized, which causes an error.\n\t */\n\tprivate readonly _initialized = signal(false);\n\n\t/** Whether the item is selected. */\n\tprotected readonly _active = signal(false);\n\n\t/** Emits when the item is selected. */\n\tpublic readonly selected = output<void>();\n\n\tprivate _activatedByPointer = false;\n\n\t/** @internal Determine if this item is visible based on the current search query */\n\tpublic readonly visible = computed(() => {\n\t\treturn this._command.filter()(this.safeValue(), this._command.search());\n\t});\n\n\t/** @internal Get the value of the item, with check if it has been initialized to avoid errors */\n\tpublic readonly safeValue = computed(() => {\n\t\tif (!this._initialized()) {\n\t\t\treturn '';\n\t\t}\n\t\treturn this.value();\n\t});\n\n\t/** @internal Get the display value */\n\tpublic getLabel(): string {\n\t\treturn this.safeValue();\n\t}\n\n\t/** @internal */\n\tsetActiveStyles(): void {\n\t\tthis._active.set(true);\n\n\t\t// ensure the item is in view\n\t\tif (!this._activatedByPointer && isPlatformBrowser(this._platform)) {\n\t\t\tthis._elementRef.nativeElement.scrollIntoView({ block: 'nearest' });\n\t\t}\n\t}\n\n\t/** @internal */\n\tsetInactiveStyles(): void {\n\t\tthis._active.set(false);\n\t}\n\n\tprotected onClick(): void {\n\t\tthis._command.keyManager.setActiveItem(this);\n\t\tthis.selected.emit();\n\t}\n\n\tprotected activate(): void {\n\t\tif (this._disabled()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._activatedByPointer = true;\n\t\tthis._command.keyManager.setActiveItem(this);\n\t\tthis._activatedByPointer = false;\n\t}\n\n\tngOnInit(): void {\n\t\tthis._initialized.set(true);\n\t}\n}\n","import { Directive, input } from '@angular/core';\nimport { injectBrnCommand } from './brn-command.token';\n\n@Directive({\n\tselector: '[brnCommandList]',\n\thost: {\n\t\trole: 'listbox',\n\t\t'[id]': 'id()',\n\t\t'[attr.aria-label]': 'ariaLabel()',\n\t},\n})\nexport class BrnCommandList {\n\tprivate static _id = 0;\n\n\tprivate readonly _command = injectBrnCommand();\n\n\t/** The id of the command list */\n\tpublic readonly id = input<string>(`brn-command-list-${++BrnCommandList._id}`);\n\n\t/** Optional accessible name for the listbox. Usually not needed as the combobox names the widget. */\n\tpublic readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' });\n\n\tconstructor() {\n\t\tthis._command.registerCommandList(this);\n\t}\n}\n","import { computed, Directive } from '@angular/core';\nimport { injectBrnCommand } from './brn-command.token';\n\n@Directive({\n\tselector: '[brnCommandSeparator]',\n\thost: {\n\t\trole: 'presentation',\n\t\t'[attr.data-hidden]': '_hasSearchInput() ? true : null',\n\t},\n})\nexport class BrnCommandSeparator {\n\tprivate readonly _command = injectBrnCommand();\n\n\t/** Determine if the command has any search input */\n\tprotected readonly _hasSearchInput = computed(() => this._command.search().length > 0);\n}\n","import { BrnCommand } from './lib/brn-command';\nimport { BrnCommandEmpty } from './lib/brn-command-empty';\nimport { BrnCommandGroup } from './lib/brn-command-group';\nimport { BrnCommandInput } from './lib/brn-command-input';\nimport { BrnCommandItem } from './lib/brn-command-item';\nimport { BrnCommandList } from './lib/brn-command-list';\nimport { BrnCommandSeparator } from './lib/brn-command-separator';\n\nexport * from './lib/brn-command';\nexport * from './lib/brn-command-empty';\nexport * from './lib/brn-command-group';\nexport * from './lib/brn-command-input';\nexport * from './lib/brn-command-input.token';\nexport * from './lib/brn-command-item';\nexport * from './lib/brn-command-item.token';\nexport * from './lib/brn-command-list';\nexport * from './lib/brn-command-separator';\nexport * from './lib/brn-command.token';\n\nexport const BrnCommandImports = [\n\tBrnCommand,\n\tBrnCommandEmpty,\n\tBrnCommandGroup,\n\tBrnCommandInput,\n\tBrnCommandItem,\n\tBrnCommandList,\n\tBrnCommandSeparator,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n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-command-item.token.ts","../../../../libs/brain/command/src/lib/brn-command.token.ts","../../../../libs/brain/command/src/lib/brn-command.ts","../../../../libs/brain/command/src/lib/brn-command-empty.ts","../../../../libs/brain/command/src/lib/brn-command-group.ts","../../../../libs/brain/command/src/lib/brn-command-input.token.ts","../../../../libs/brain/command/src/lib/brn-command-input.ts","../../../../libs/brain/command/src/lib/brn-command-item.ts","../../../../libs/brain/command/src/lib/brn-command-list.ts","../../../../libs/brain/command/src/lib/brn-command-separator.ts","../../../../libs/brain/command/src/index.ts","../../../../libs/brain/command/src/spartan-ng-brain-command.ts"],"sourcesContent":["import { type ExistingProvider, InjectionToken, type Type } from '@angular/core';\nimport type { BrnCommandItem } from './brn-command-item';\n\nexport const BrnCommandItemToken = new InjectionToken<BrnCommandItem>('BrnCommandItemToken');\n\nexport function provideBrnCommandItem(command: Type<BrnCommandItem>): ExistingProvider {\n\treturn { provide: BrnCommandItemToken, useExisting: command };\n}\n","import { type ExistingProvider, inject, InjectionToken, type Type, type ValueProvider } from '@angular/core';\nimport type { BrnCommand } from './brn-command';\n\nexport const BrnCommandToken = new InjectionToken<BrnCommand>('BrnCommandToken');\n\nexport function provideBrnCommand(command: Type<BrnCommand>): ExistingProvider {\n\treturn { provide: BrnCommandToken, useExisting: command };\n}\n\nexport function injectBrnCommand(): BrnCommand {\n\treturn inject(BrnCommandToken);\n}\n\n// config\nexport type CommandFilter = (value: string, search: string) => boolean;\n\nexport interface BrnCommandConfig {\n\tfilter: CommandFilter;\n}\n\nconst defaultConfig: BrnCommandConfig = {\n\tfilter: (value: string, search: string) => value.toLowerCase().includes(search.toLowerCase()),\n};\n\nconst BrnCommandConfigToken = new InjectionToken<BrnCommandConfig>('BrnCommandConfig');\n\nexport function provideBrnCommandConfig(config: Partial<BrnCommandConfig>): ValueProvider {\n\treturn { provide: BrnCommandConfigToken, useValue: { ...defaultConfig, ...config } };\n}\n\nexport function injectBrnCommandConfig(): BrnCommandConfig {\n\treturn inject(BrnCommandConfigToken, { optional: true }) ?? defaultConfig;\n}\n","import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';\nimport { BooleanInput } from '@angular/cdk/coercion';\nimport {\n\tafterNextRender,\n\tbooleanAttribute,\n\tcomputed,\n\tcontentChildren,\n\tDirective,\n\teffect,\n\tforwardRef,\n\tinject,\n\tInjector,\n\tinput,\n\tlinkedSignal,\n\tmodel,\n\toutput,\n\tsignal,\n\tuntracked,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';\nimport { BrnCommandItemToken } from './brn-command-item.token';\nimport type { BrnCommandList } from './brn-command-list';\nimport { type CommandFilter, injectBrnCommandConfig, provideBrnCommand } from './brn-command.token';\n\nexport const BRN_COMMAND_VALUE_ACCESSOR = {\n\tprovide: NG_VALUE_ACCESSOR,\n\tuseExisting: forwardRef(() => BrnCommand),\n\tmulti: true,\n};\n\n@Directive({\n\tselector: '[brnCommand]',\n\texportAs: 'brnCommand',\n\tproviders: [provideBrnCommand(BrnCommand), BRN_COMMAND_VALUE_ACCESSOR],\n\thost: {\n\t\t'[id]': 'id()',\n\t\t'(keydown.enter)': 'selectActiveItem()',\n\t},\n})\nexport class BrnCommand implements ControlValueAccessor {\n\tprivate static _id = 0;\n\n\tprivate readonly _injector = inject(Injector);\n\n\tprivate readonly _config = injectBrnCommandConfig();\n\n\t/** The id of the command */\n\tpublic readonly id = input<string>(`brn-command-${++BrnCommand._id}`);\n\n\t/** A custom filter function to use when searching. */\n\tpublic readonly filter = input<CommandFilter>(this._config.filter);\n\n\t/** Whether the command is disabled */\n\tpublic readonly disabled = input<boolean, BooleanInput>(false, { transform: booleanAttribute });\n\n\tprivate readonly _disabled = linkedSignal(this.disabled);\n\n\t/** @internal The disabled state as a readonly signal */\n\tpublic readonly disabledState = this._disabled.asReadonly();\n\n\t/** when the selection has changed */\n\tpublic readonly valueChange = output<string>();\n\n\t/** The current search query. */\n\tpublic readonly search = model<string>('');\n\n\t/** @internal Access all the items within the command */\n\tpublic readonly items = contentChildren(BrnCommandItemToken, {\n\t\tdescendants: true,\n\t});\n\n\t/** @internal The key manager for managing active descendant */\n\tpublic readonly keyManager = new ActiveDescendantKeyManager(this.items, this._injector);\n\n\tprivate readonly _commandList = signal<BrnCommandList | undefined>(undefined);\n\n\t/** @internal The id of the command list, registered by BrnCommandList. Used by the input for aria-controls. */\n\tpublic readonly listId = computed(() => this._commandList()?.id());\n\n\t/** @internal Register the command list. Called by BrnCommandList in its constructor. */\n\tpublic registerCommandList(list: BrnCommandList): void {\n\t\tthis._commandList.set(list);\n\t}\n\n\tprotected _onChange?: ChangeFn<string | null>;\n\tprotected _onTouched?: TouchFn;\n\n\tconstructor() {\n\t\tthis.keyManager\n\t\t\t.withVerticalOrientation()\n\t\t\t.withHomeAndEnd()\n\t\t\t.withWrap()\n\t\t\t.skipPredicate((item) => item.disabled || !item.visible());\n\n\t\t// When clearing the search input we also want to reset the active item to the first one\n\t\teffect(() => {\n\t\t\tconst searchInput = this.search();\n\t\t\tuntracked(() => {\n\t\t\t\tconst activeItemIsVisible = this.keyManager.activeItem?.visible();\n\t\t\t\tif ((searchInput !== undefined && searchInput.length === 0) || !activeItemIsVisible) {\n\t\t\t\t\tthis.keyManager.setFirstItemActive();\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tthis.keyManager.change.pipe(takeUntilDestroyed()).subscribe(() => {\n\t\t\tconst value = this.keyManager.activeItem?.safeValue();\n\t\t\tif (value) {\n\t\t\t\tthis.valueChange.emit(value);\n\t\t\t}\n\t\t});\n\n\t\tafterNextRender(() => {\n\t\t\tif (this.items().length) {\n\t\t\t\tthis.keyManager.setActiveItem(0);\n\t\t\t}\n\t\t});\n\t}\n\n\tprotected selectActiveItem(): void {\n\t\tthis.keyManager.activeItem?.selected.emit();\n\t}\n\n\t/** CONTROL VALUE ACCESSOR */\n\twriteValue(value: string | null): void {\n\t\tif (value) {\n\t\t\tthis.search.set(value);\n\t\t}\n\t}\n\n\tregisterOnChange(fn: ChangeFn<string | null>): void {\n\t\tthis._onChange = fn;\n\t}\n\n\tregisterOnTouched(fn: TouchFn): void {\n\t\tthis._onTouched = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis._disabled.set(isDisabled);\n\t}\n}\n","import { computed, Directive, effect, inject, TemplateRef, ViewContainerRef } from '@angular/core';\nimport { injectBrnCommand } from './brn-command.token';\n\n@Directive({\n\tselector: '[brnCommandEmpty]',\n\texportAs: 'brnCommandEmpty',\n})\nexport class BrnCommandEmpty {\n\tprivate readonly _templateRef = inject<TemplateRef<void>>(TemplateRef);\n\tprivate readonly _viewContainerRef = inject(ViewContainerRef);\n\tprivate readonly _command = injectBrnCommand();\n\n\t/** Determine if the command has any visible items */\n\tprivate readonly _visible = computed(() => this._command.items().some((item) => item.visible()));\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tif (this._visible()) {\n\t\t\t\tthis._viewContainerRef.clear();\n\t\t\t} else {\n\t\t\t\tthis._viewContainerRef.createEmbeddedView(this._templateRef);\n\t\t\t}\n\t\t});\n\t}\n}\n","import { computed, contentChildren, Directive, input } from '@angular/core';\nimport { BrnCommandItemToken } from './brn-command-item.token';\n\n@Directive({\n\tselector: '[brnCommandGroup]',\n\texportAs: 'brnCommandGroup',\n\thost: {\n\t\trole: 'group',\n\t\t'[attr.data-hidden]': '!_visible() ? true : null',\n\t\t'[id]': 'id()',\n\t},\n})\nexport class BrnCommandGroup {\n\tprivate static _id = 0;\n\n\t/** The id of the command list */\n\tpublic readonly id = input<string>(`brn-command-group-${++BrnCommandGroup._id}`);\n\n\t/** Get the items in the group */\n\tprivate readonly _items = contentChildren(BrnCommandItemToken, {\n\t\tdescendants: true,\n\t});\n\n\t/** Determine if there are any visible items in the group */\n\tprotected readonly _visible = computed(() => this._items().some((item) => item.visible()));\n}\n","import { type ExistingProvider, InjectionToken, type Type } from '@angular/core';\nimport type { BrnCommandInput } from './brn-command-input';\n\nexport const BrnCommandInputToken = new InjectionToken<BrnCommandInput>('BrnCommandInputToken');\n\nexport function provideBrnCommandInput(command: Type<BrnCommandInput>): ExistingProvider {\n\treturn { provide: BrnCommandInputToken, useExisting: command };\n}\n","import { Directive, effect, ElementRef, inject, input, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { startWith } from 'rxjs/operators';\nimport { provideBrnCommandInput } from './brn-command-input.token';\nimport { injectBrnCommand } from './brn-command.token';\n\n@Directive({\n\tselector: 'input[brnCommandInput]',\n\texportAs: 'brnCommandInput',\n\tproviders: [provideBrnCommandInput(BrnCommandInput)],\n\thost: {\n\t\t'[id]': 'id()',\n\t\trole: 'combobox',\n\t\t'aria-autocomplete': 'list',\n\t\t'aria-haspopup': 'listbox',\n\t\t'aria-expanded': 'true',\n\t\t'[attr.aria-controls]': '_commandListId()',\n\t\t'[attr.aria-activedescendant]': '_activeDescendant()',\n\t\t'[attr.disabled]': '_disabled() ? \"\" : null',\n\t\t'(keydown)': 'onKeyDown($event)',\n\t\t'(input)': 'onInput()',\n\t\ttype: 'text',\n\t\tautocomplete: 'off',\n\t\tautocorrect: 'off',\n\t\tspellcheck: 'false',\n\t},\n})\nexport class BrnCommandInput {\n\tprivate static _id = 0;\n\n\tprivate readonly _el = inject(ElementRef);\n\tprivate readonly _command = injectBrnCommand();\n\tprivate readonly _initialId = `brn-command-input-${++BrnCommandInput._id}`;\n\n\t/** The id of the command input */\n\tpublic readonly id = input<string, string | undefined>(this._initialId, {\n\t\ttransform: (value) => value || this._initialId,\n\t});\n\n\tprotected readonly _commandListId = this._command.listId;\n\n\tprotected readonly _disabled = this._command.disabledState;\n\n\t/** The id of the active option */\n\tprotected readonly _activeDescendant = signal<string | undefined>(undefined);\n\n\tconstructor() {\n\t\tthis._command.keyManager.change\n\t\t\t.pipe(startWith(this._command.keyManager.activeItemIndex), takeUntilDestroyed())\n\t\t\t.subscribe(() => this._activeDescendant.set(this._command.keyManager.activeItem?.id()));\n\n\t\teffect(() => {\n\t\t\tconst search = this._command.search();\n\n\t\t\tif (this._el.nativeElement.value !== search) {\n\t\t\t\tthis._el.nativeElement.value = search;\n\t\t\t}\n\t\t});\n\t}\n\t/** Listen for changes to the input value */\n\tprotected onInput(): void {\n\t\tthis._command.search.set(this._el.nativeElement.value);\n\t}\n\n\t/** Listen for keydown events */\n\tprotected onKeyDown(event: KeyboardEvent): void {\n\t\tthis._command.keyManager.onKeydown(event);\n\t}\n}\n","import type { Highlightable } from '@angular/cdk/a11y';\nimport type { BooleanInput } from '@angular/cdk/coercion';\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n\tbooleanAttribute,\n\tcomputed,\n\tDirective,\n\tElementRef,\n\tinject,\n\tinput,\n\ttype OnInit,\n\toutput,\n\tPLATFORM_ID,\n\tsignal,\n} from '@angular/core';\nimport { provideBrnCommandItem } from './brn-command-item.token';\nimport { injectBrnCommand } from './brn-command.token';\n\n@Directive({\n\tselector: 'button[brnCommandItem]',\n\texportAs: 'brnCommandItem',\n\tproviders: [provideBrnCommandItem(BrnCommandItem)],\n\thost: {\n\t\ttype: 'button',\n\t\trole: 'option',\n\t\ttabIndex: '-1',\n\t\t'[id]': 'id()',\n\t\t'[attr.disabled]': '_disabled() ? true : null',\n\t\t'[attr.data-disabled]': '_disabled() ? \"\" : null',\n\t\t'[attr.data-value]': 'value()',\n\t\t'[attr.data-hidden]': '!visible() ? true : null',\n\t\t'[attr.aria-selected]': '_active()',\n\t\t'[attr.data-selected]': '_active() ? true : null',\n\t\t'(click)': 'onClick()',\n\t\t'(mouseenter)': 'activate()',\n\t},\n})\nexport class BrnCommandItem implements Highlightable, OnInit {\n\tprivate static _id = 0;\n\n\tprivate readonly _platform = inject(PLATFORM_ID);\n\n\tprivate readonly _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n\t/** Access the command component */\n\tprivate readonly _command = injectBrnCommand();\n\n\t/** A unique id for the item */\n\tpublic readonly id = input<string>(`brn-command-item-${++BrnCommandItem._id}`);\n\n\t/** The value this item represents. */\n\tpublic readonly value = input.required<string>();\n\n\t/** Whether the item is disabled. */\n\t// eslint-disable-next-line @typescript-eslint/naming-convention\n\tpublic readonly _disabled = input<boolean, BooleanInput>(false, {\n\t\talias: 'disabled',\n\t\ttransform: booleanAttribute,\n\t});\n\n\t/** Expose disabled as a value - used by the Highlightable interface */\n\tpublic get disabled() {\n\t\treturn this._disabled();\n\t}\n\n\t/** Whether the item is initialized, this is to prevent accessing the value-input before the component is initialized.\n\t * The brn-command-empty directive accesses the value before the component is initialized, which causes an error.\n\t */\n\tprivate readonly _initialized = signal(false);\n\n\t/** Whether the item is selected. */\n\tprotected readonly _active = signal(false);\n\n\t/** Emits when the item is selected. */\n\tpublic readonly selected = output<void>();\n\n\tprivate _activatedByPointer = false;\n\n\t/** @internal Determine if this item is visible based on the current search query */\n\tpublic readonly visible = computed(() => {\n\t\treturn this._command.filter()(this.safeValue(), this._command.search());\n\t});\n\n\t/** @internal Get the value of the item, with check if it has been initialized to avoid errors */\n\tpublic readonly safeValue = computed(() => {\n\t\tif (!this._initialized()) {\n\t\t\treturn '';\n\t\t}\n\t\treturn this.value();\n\t});\n\n\t/** @internal Get the display value */\n\tpublic getLabel(): string {\n\t\treturn this.safeValue();\n\t}\n\n\t/** @internal */\n\tsetActiveStyles(): void {\n\t\tthis._active.set(true);\n\n\t\t// ensure the item is in view\n\t\tif (!this._activatedByPointer && isPlatformBrowser(this._platform)) {\n\t\t\tthis._elementRef.nativeElement.scrollIntoView({ block: 'nearest' });\n\t\t}\n\t}\n\n\t/** @internal */\n\tsetInactiveStyles(): void {\n\t\tthis._active.set(false);\n\t}\n\n\tprotected onClick(): void {\n\t\tthis._command.keyManager.setActiveItem(this);\n\t\tthis.selected.emit();\n\t}\n\n\tprotected activate(): void {\n\t\tif (this._disabled()) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._activatedByPointer = true;\n\t\tthis._command.keyManager.setActiveItem(this);\n\t\tthis._activatedByPointer = false;\n\t}\n\n\tngOnInit(): void {\n\t\tthis._initialized.set(true);\n\t}\n}\n","import { Directive, input } from '@angular/core';\nimport { injectBrnCommand } from './brn-command.token';\n\n@Directive({\n\tselector: '[brnCommandList]',\n\texportAs: 'brnCommandList',\n\thost: {\n\t\trole: 'listbox',\n\t\t'[id]': 'id()',\n\t\t'[attr.aria-label]': 'ariaLabel()',\n\t},\n})\nexport class BrnCommandList {\n\tprivate static _id = 0;\n\n\tprivate readonly _command = injectBrnCommand();\n\n\t/** The id of the command list */\n\tpublic readonly id = input<string>(`brn-command-list-${++BrnCommandList._id}`);\n\n\t/** Optional accessible name for the listbox. Usually not needed as the combobox names the widget. */\n\tpublic readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' });\n\n\tconstructor() {\n\t\tthis._command.registerCommandList(this);\n\t}\n}\n","import { computed, Directive } from '@angular/core';\nimport { injectBrnCommand } from './brn-command.token';\n\n@Directive({\n\tselector: '[brnCommandSeparator]',\n\texportAs: 'brnCommandSeparator',\n\thost: {\n\t\trole: 'presentation',\n\t\t'[attr.data-hidden]': '_hasSearchInput() ? true : null',\n\t},\n})\nexport class BrnCommandSeparator {\n\tprivate readonly _command = injectBrnCommand();\n\n\t/** Determine if the command has any search input */\n\tprotected readonly _hasSearchInput = computed(() => this._command.search().length > 0);\n}\n","import { BrnCommand } from './lib/brn-command';\nimport { BrnCommandEmpty } from './lib/brn-command-empty';\nimport { BrnCommandGroup } from './lib/brn-command-group';\nimport { BrnCommandInput } from './lib/brn-command-input';\nimport { BrnCommandItem } from './lib/brn-command-item';\nimport { BrnCommandList } from './lib/brn-command-list';\nimport { BrnCommandSeparator } from './lib/brn-command-separator';\n\nexport * from './lib/brn-command';\nexport * from './lib/brn-command-empty';\nexport * from './lib/brn-command-group';\nexport * from './lib/brn-command-input';\nexport * from './lib/brn-command-input.token';\nexport * from './lib/brn-command-item';\nexport * from './lib/brn-command-item.token';\nexport * from './lib/brn-command-list';\nexport * from './lib/brn-command-separator';\nexport * from './lib/brn-command.token';\n\nexport const BrnCommandImports = [\n\tBrnCommand,\n\tBrnCommandEmpty,\n\tBrnCommandGroup,\n\tBrnCommandInput,\n\tBrnCommandItem,\n\tBrnCommandList,\n\tBrnCommandSeparator,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAGa,mBAAmB,GAAG,IAAI,cAAc,CAAiB,qBAAqB;AAErF,SAAU,qBAAqB,CAAC,OAA6B,EAAA;IAClE,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,OAAO,EAAE;AAC9D;;MCJa,eAAe,GAAG,IAAI,cAAc,CAAa,iBAAiB;AAEzE,SAAU,iBAAiB,CAAC,OAAyB,EAAA;IAC1D,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,OAAO,EAAE;AAC1D;SAEgB,gBAAgB,GAAA;AAC/B,IAAA,OAAO,MAAM,CAAC,eAAe,CAAC;AAC/B;AASA,MAAM,aAAa,GAAqB;AACvC,IAAA,MAAM,EAAE,CAAC,KAAa,EAAE,MAAc,KAAK,KAAK,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;CAC7F;AAED,MAAM,qBAAqB,GAAG,IAAI,cAAc,CAAmB,kBAAkB,CAAC;AAEhF,SAAU,uBAAuB,CAAC,MAAiC,EAAA;AACxE,IAAA,OAAO,EAAE,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,EAAE,GAAG,aAAa,EAAE,GAAG,MAAM,EAAE,EAAE;AACrF;SAEgB,sBAAsB,GAAA;AACrC,IAAA,OAAO,MAAM,CAAC,qBAAqB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,IAAI,aAAa;AAC1E;;ACNO,MAAM,0BAA0B,GAAG;AACzC,IAAA,OAAO,EAAE,iBAAiB;A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,EAAA,CAAA;+GAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,MAAA,EAAA,cAAA,EAAA,EAAA,UAAA,EAAA,EAAA,kBAAA,EAAA,iCAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAR/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,IAAI,EAAE;AACL,wBAAA,IAAI,EAAE,cAAc;AACpB,wBAAA,oBAAoB,EAAE,iCAAiC;AACvD,qBAAA;AACD,iBAAA;;;ACSM,MAAM,iBAAiB,GAAG;IAChC,UAAU;IACV,eAAe;IACf,eAAe;IACf,eAAe;IACf,cAAc;IACd,cAAc;IACd,mBAAmB;;;AC1BpB;;AAEG;;;;"}
@@ -473,12 +473,13 @@ class BrnDialogClose {
473
473
  this._brnDialogRef.close();
474
474
  }
475
475
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnDialogClose, deps: [], target: i0.ɵɵFactoryTarget.Directive });
476
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: BrnDialogClose, isStandalone: true, selector: "button[brnDialogClose]", host: { listeners: { "click": "close()" } }, ngImport: i0 });
476
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: BrnDialogClose, isStandalone: true, selector: "button[brnDialogClose]", host: { listeners: { "click": "close()" } }, exportAs: ["brnDialogClose"], ngImport: i0 });
477
477
  }
478
478
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnDialogClose, decorators: [{
479
479
  type: Directive,
480
480
  args: [{
481
481
  selector: 'button[brnDialogClose]',
482
+ exportAs: 'brnDialogClose',
482
483
  host: {
483
484
  '(click)': 'close()',
484
485
  },
@@ -496,12 +497,13 @@ class BrnDialogContent {
496
497
  this._brnDialog?.registerContent(this._template, this.context, this.className);
497
498
  }
498
499
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnDialogContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
499
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.16", type: BrnDialogContent, isStandalone: true, selector: "[brnDialogContent]", inputs: { className: { classPropertyName: "className", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideExposesStateProviderExisting((() => BrnDialogContent))], ngImport: i0 });
500
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.16", type: BrnDialogContent, isStandalone: true, selector: "[brnDialogContent]", inputs: { className: { classPropertyName: "className", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideExposesStateProviderExisting((() => BrnDialogContent))], exportAs: ["brnDialogContent"], ngImport: i0 });
500
501
  }
501
502
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnDialogContent, decorators: [{
502
503
  type: Directive,
503
504
  args: [{
504
505
  selector: '[brnDialogContent]',
506
+ exportAs: 'brnDialogContent',
505
507
  providers: [provideExposesStateProviderExisting((() => BrnDialogContent))],
506
508
  }]
507
509
  }], ctorParameters: () => [], propDecorators: { className: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], context: [{ type: i0.Input, args: [{ isSignal: true, alias: "context", required: false }] }] } });
@@ -517,12 +519,13 @@ class BrnDialogDescription {
517
519
  this._brnDialogRef.unregisterDescription(this._id);
518
520
  }
519
521
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnDialogDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
520
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: BrnDialogDescription, isStandalone: true, selector: "[brnDialogDescription]", host: { properties: { "id": "_id" } }, ngImport: i0 });
522
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: BrnDialogDescription, isStandalone: true, selector: "[brnDialogDescription]", host: { properties: { "id": "_id" } }, exportAs: ["brnDialogDescription"], ngImport: i0 });
521
523
  }
522
524
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnDialogDescription, decorators: [{
523
525
  type: Directive,
524
526
  args: [{
525
527
  selector: '[brnDialogDescription]',
528
+ exportAs: 'brnDialogDescription',
526
529
  host: {
527
530
  '[id]': '_id',
528
531
  },
@@ -541,12 +544,13 @@ class BrnDialogOverlay {
541
544
  this._customClass.set(newClass);
542
545
  }
543
546
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnDialogOverlay, deps: [], target: i0.ɵɵFactoryTarget.Directive });
544
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.16", type: BrnDialogOverlay, isStandalone: true, selector: "[brnDialogOverlay],brn-dialog-overlay", inputs: { className: { classPropertyName: "className", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideCustomClassSettableExisting((() => BrnDialogOverlay))], ngImport: i0 });
547
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.16", type: BrnDialogOverlay, isStandalone: true, selector: "[brnDialogOverlay],brn-dialog-overlay", inputs: { className: { classPropertyName: "className", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, providers: [provideCustomClassSettableExisting((() => BrnDialogOverlay))], exportAs: ["brnDialogOverlay"], ngImport: i0 });
545
548
  }
546
549
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnDialogOverlay, decorators: [{
547
550
  type: Directive,
548
551
  args: [{
549
552
  selector: '[brnDialogOverlay],brn-dialog-overlay',
553
+ exportAs: 'brnDialogOverlay',
550
554
  providers: [provideCustomClassSettableExisting((() => BrnDialogOverlay))],
551
555
  }]
552
556
  }], ctorParameters: () => [], propDecorators: { className: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
@@ -555,12 +559,13 @@ class BrnDialogTitle {
555
559
  _brnDialogRef = inject(BrnDialogRef);
556
560
  _id = `brn-dialog-title-${this._brnDialogRef.dialogId}`;
557
561
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnDialogTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
558
- /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: BrnDialogTitle, isStandalone: true, selector: "[brnDialogTitle]", host: { properties: { "id": "_id" } }, ngImport: i0 });
562
+ /** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: BrnDialogTitle, isStandalone: true, selector: "[brnDialogTitle]", host: { properties: { "id": "_id" } }, exportAs: ["brnDialogTitle"], ngImport: i0 });
559
563
  }
560
564
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnDialogTitle, decorators: [{
561
565
  type: Directive,
562
566
  args: [{
563
567
  selector: '[brnDialogTitle]',
568
+ exportAs: 'brnDialogTitle',
564
569
  host: {
565
570
  '[id]': '_id',
566
571
  },