@fundamental-ngx/core 0.43.17 → 0.43.19

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 (77) hide show
  1. package/combobox/combobox.component.d.ts +9 -3
  2. package/esm2020/combobox/combobox.component.mjs +20 -5
  3. package/esm2020/datetime-picker/datetime-picker.component.mjs +11 -6
  4. package/esm2020/file-uploader/file-uploader.component.mjs +14 -15
  5. package/esm2020/list/list-focus-item.model.mjs +5 -2
  6. package/esm2020/list/list-item/list-item.component.mjs +20 -13
  7. package/esm2020/list/list.component.mjs +12 -7
  8. package/esm2020/multi-combobox/index.mjs +2 -1
  9. package/esm2020/multi-combobox/multi-announcer/multi-announcer.directive.mjs +103 -0
  10. package/esm2020/multi-combobox/multi-combobox.component.mjs +6 -5
  11. package/esm2020/multi-combobox/multi-combobox.module.mjs +3 -2
  12. package/esm2020/multi-input/multi-input.component.mjs +5 -4
  13. package/esm2020/multi-input/multi-input.module.mjs +3 -2
  14. package/esm2020/pagination/pagination.component.mjs +1 -1
  15. package/esm2020/select/select-key-manager.service.mjs +5 -5
  16. package/esm2020/select/select.component.mjs +20 -9
  17. package/esm2020/select/select.interface.mjs +1 -1
  18. package/esm2020/shellbar/shellbar-action/shellbar-action.component.mjs +8 -4
  19. package/esm2020/shellbar/shellbar-actions/shellbar-actions.component.mjs +1 -1
  20. package/esm2020/shellbar/user-menu/shellbar-user-menu.component.mjs +3 -3
  21. package/esm2020/token/tokenizer.component.mjs +1 -1
  22. package/fesm2015/fundamental-ngx-core-combobox.mjs +18 -3
  23. package/fesm2015/fundamental-ngx-core-combobox.mjs.map +1 -1
  24. package/fesm2015/fundamental-ngx-core-datetime-picker.mjs +10 -5
  25. package/fesm2015/fundamental-ngx-core-datetime-picker.mjs.map +1 -1
  26. package/fesm2015/fundamental-ngx-core-file-uploader.mjs +13 -14
  27. package/fesm2015/fundamental-ngx-core-file-uploader.mjs.map +1 -1
  28. package/fesm2015/fundamental-ngx-core-list.mjs +32 -16
  29. package/fesm2015/fundamental-ngx-core-list.mjs.map +1 -1
  30. package/fesm2015/fundamental-ngx-core-multi-combobox.mjs +113 -10
  31. package/fesm2015/fundamental-ngx-core-multi-combobox.mjs.map +1 -1
  32. package/fesm2015/fundamental-ngx-core-multi-input.mjs +6 -4
  33. package/fesm2015/fundamental-ngx-core-multi-input.mjs.map +1 -1
  34. package/fesm2015/fundamental-ngx-core-pagination.mjs +1 -1
  35. package/fesm2015/fundamental-ngx-core-pagination.mjs.map +1 -1
  36. package/fesm2015/fundamental-ngx-core-select.mjs +132 -120
  37. package/fesm2015/fundamental-ngx-core-select.mjs.map +1 -1
  38. package/fesm2015/fundamental-ngx-core-shellbar.mjs +10 -6
  39. package/fesm2015/fundamental-ngx-core-shellbar.mjs.map +1 -1
  40. package/fesm2015/fundamental-ngx-core-token.mjs +1 -1
  41. package/fesm2015/fundamental-ngx-core-token.mjs.map +1 -1
  42. package/fesm2020/fundamental-ngx-core-combobox.mjs +18 -3
  43. package/fesm2020/fundamental-ngx-core-combobox.mjs.map +1 -1
  44. package/fesm2020/fundamental-ngx-core-datetime-picker.mjs +10 -5
  45. package/fesm2020/fundamental-ngx-core-datetime-picker.mjs.map +1 -1
  46. package/fesm2020/fundamental-ngx-core-file-uploader.mjs +13 -14
  47. package/fesm2020/fundamental-ngx-core-file-uploader.mjs.map +1 -1
  48. package/fesm2020/fundamental-ngx-core-list.mjs +32 -16
  49. package/fesm2020/fundamental-ngx-core-list.mjs.map +1 -1
  50. package/fesm2020/fundamental-ngx-core-multi-combobox.mjs +107 -10
  51. package/fesm2020/fundamental-ngx-core-multi-combobox.mjs.map +1 -1
  52. package/fesm2020/fundamental-ngx-core-multi-input.mjs +6 -4
  53. package/fesm2020/fundamental-ngx-core-multi-input.mjs.map +1 -1
  54. package/fesm2020/fundamental-ngx-core-pagination.mjs +1 -1
  55. package/fesm2020/fundamental-ngx-core-pagination.mjs.map +1 -1
  56. package/fesm2020/fundamental-ngx-core-select.mjs +132 -121
  57. package/fesm2020/fundamental-ngx-core-select.mjs.map +1 -1
  58. package/fesm2020/fundamental-ngx-core-shellbar.mjs +10 -6
  59. package/fesm2020/fundamental-ngx-core-shellbar.mjs.map +1 -1
  60. package/fesm2020/fundamental-ngx-core-token.mjs +1 -1
  61. package/fesm2020/fundamental-ngx-core-token.mjs.map +1 -1
  62. package/file-uploader/file-uploader.component.d.ts +1 -1
  63. package/fundamental-ngx-core-v0.43.19.tgz +0 -0
  64. package/list/list-focus-item.model.d.ts +8 -3
  65. package/list/list-item/list-item.component.d.ts +11 -7
  66. package/list/list.component.d.ts +6 -4
  67. package/multi-combobox/index.d.ts +1 -0
  68. package/multi-combobox/multi-announcer/multi-announcer.directive.d.ts +39 -0
  69. package/multi-combobox/multi-combobox.module.d.ts +2 -1
  70. package/multi-input/multi-input.module.d.ts +2 -1
  71. package/package.json +3 -3
  72. package/schematics/add-dependencies/index.js +4 -4
  73. package/select/select-key-manager.service.d.ts +1 -1
  74. package/select/select.component.d.ts +18 -12
  75. package/select/select.interface.d.ts +4 -5
  76. package/shellbar/shellbar-action/shellbar-action.component.d.ts +6 -1
  77. package/fundamental-ngx-core-v0.43.17.tgz +0 -0
@@ -54,21 +54,21 @@ function addExternalLibraries(options) {
54
54
  });
55
55
  }
56
56
  if (!(0, package_utils_1.hasPackage)(tree, '@fundamental-ngx/i18n') ||
57
- (0, package_utils_1.checkPackageVersion)(tree, '@fundamental-ngx/i18n', '0.43.17', '<')) {
57
+ (0, package_utils_1.checkPackageVersion)(tree, '@fundamental-ngx/i18n', '0.43.19', '<')) {
58
58
  dependencies.push({
59
59
  type: dependencies_1.NodeDependencyType.Default,
60
60
  // Will be replaced with the real version during sync-version script run
61
- version: `0.43.17`,
61
+ version: `0.43.19`,
62
62
  name: '@fundamental-ngx/i18n',
63
63
  overwrite: true
64
64
  });
65
65
  }
66
66
  if (!(0, package_utils_1.hasPackage)(tree, '@fundamental-ngx/cdk') ||
67
- (0, package_utils_1.checkPackageVersion)(tree, '@fundamental-ngx/cdk', '0.43.17', '<')) {
67
+ (0, package_utils_1.checkPackageVersion)(tree, '@fundamental-ngx/cdk', '0.43.19', '<')) {
68
68
  dependencies.push({
69
69
  type: dependencies_1.NodeDependencyType.Default,
70
70
  // Will be replaced with the real version during sync-version script run
71
- version: `0.43.17`,
71
+ version: `0.43.19`,
72
72
  name: '@fundamental-ngx/cdk',
73
73
  overwrite: true
74
74
  });
@@ -1,6 +1,6 @@
1
1
  import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
2
- import { SelectInterface } from './select.interface';
3
2
  import { OptionsInterface } from './options.interface';
3
+ import { SelectInterface } from './select.interface';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class SelectKeyManagerService {
6
6
  /** @hidden */
@@ -1,18 +1,18 @@
1
- import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { ControlValueAccessor, NgControl } from '@angular/forms';
3
1
  import { LiveAnnouncer } from '@angular/cdk/a11y';
4
- import { CdkConnectedOverlay } from '@angular/cdk/overlay';
5
2
  import { SelectionModel } from '@angular/cdk/collections';
3
+ import { CdkConnectedOverlay } from '@angular/cdk/overlay';
4
+ import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
5
+ import { ControlValueAccessor, NgControl } from '@angular/forms';
6
6
  import { Observable, Subject } from 'rxjs';
7
- import { PopoverFillMode } from '@fundamental-ngx/core/shared';
8
7
  import { DynamicComponentService, ModuleDeprecation, Nullable, RtlService } from '@fundamental-ngx/cdk/utils';
9
- import { MobileModeConfig } from '@fundamental-ngx/core/mobile-mode';
10
8
  import { FormItemControl } from '@fundamental-ngx/core/form';
11
- import { SelectInterface } from './select.interface';
12
- import { SelectKeyManagerService } from './select-key-manager.service';
13
- import { FdOptionSelectionChange, OptionComponent } from './option/option.component';
9
+ import { MobileModeConfig } from '@fundamental-ngx/core/mobile-mode';
10
+ import { PopoverFillMode } from '@fundamental-ngx/core/shared';
11
+ import { FormStates, SingleDropdownValueControl } from '@fundamental-ngx/cdk/forms';
14
12
  import { ContentDensityObserver } from '@fundamental-ngx/core/content-density';
15
- import { FormStates } from '@fundamental-ngx/cdk/forms';
13
+ import { FdOptionSelectionChange, OptionComponent } from './option/option.component';
14
+ import { SelectKeyManagerService } from './select-key-manager.service';
15
+ import { SelectInterface } from './select.interface';
16
16
  import * as i0 from "@angular/core";
17
17
  /** @deprecated use `import { FormStates } from "@fundamental-ngx/cdk/forms"` instead */
18
18
  export type SelectControlState = FormStates;
@@ -23,7 +23,7 @@ export declare const SELECT_ITEM_HEIGHT_EM = 4;
23
23
  * Select component intended to mimic
24
24
  * the behaviour of the native select element.
25
25
  */
26
- export declare class SelectComponent<T = any> implements ControlValueAccessor, SelectInterface, OnInit, AfterViewInit, AfterContentInit, OnChanges, OnDestroy, FormItemControl {
26
+ export declare class SelectComponent<T = any> implements SingleDropdownValueControl, ControlValueAccessor, SelectInterface, OnInit, AfterViewInit, AfterContentInit, OnChanges, OnDestroy, FormItemControl {
27
27
  private readonly _rtlService;
28
28
  private readonly _keyManagerService;
29
29
  private readonly _changeDetectorRef;
@@ -93,6 +93,12 @@ export declare class SelectComponent<T = any> implements ControlValueAccessor, S
93
93
  selectControlClass: Nullable<string>;
94
94
  /** Additional classname for the select dropdown button element. */
95
95
  selectDropdownButtonClass: Nullable<string>;
96
+ /**
97
+ * Action to perform when user shifts focus from the dropdown.
98
+ * - `close` will close the dropdown preserving previously selected value.
99
+ * - `closeAndSelect` will close the dropdown and select last focused dropdown item.
100
+ */
101
+ tabOutStrategy: 'close' | 'closeAndSelect';
96
102
  /** Event emitted when the popover open state changes. */
97
103
  readonly isOpenChange: EventEmitter<boolean>;
98
104
  /** Event emitted when the selected value of the select changes. */
@@ -208,7 +214,7 @@ export declare class SelectComponent<T = any> implements ControlValueAccessor, S
208
214
  /** Opens the select popover body. */
209
215
  open(): void;
210
216
  /** @hidden */
211
- close(forceClose?: boolean): void;
217
+ close(forceClose?: boolean, tabOut?: boolean): void;
212
218
  /** Focuses select control. */
213
219
  focus(): void;
214
220
  /** Blurs select control. */
@@ -277,7 +283,7 @@ export declare class SelectComponent<T = any> implements ControlValueAccessor, S
277
283
  /** @hidden */
278
284
  private _setupMobileMode;
279
285
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent<any>, [{ attribute: "tabindex"; }, { optional: true; }, null, null, null, { optional: true; }, { optional: true; self: true; }, { optional: true; }, null]>;
280
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent<any>, "fd-select", never, { "controlId": "controlId"; "state": "state"; "mobile": "mobile"; "stateMessage": "stateMessage"; "disabled": "disabled"; "required": "required"; "readonly": "readonly"; "placeholder": "placeholder"; "value": "value"; "extendedBodyTemplate": "extendedBodyTemplate"; "maxHeight": "maxHeight"; "glyph": "glyph"; "closeOnOutsideClick": "closeOnOutsideClick"; "fillControlMode": "fillControlMode"; "controlTemplate": "controlTemplate"; "appendTo": "appendTo"; "unselectMissingOption": "unselectMissingOption"; "typeaheadDebounceInterval": "typeaheadDebounceInterval"; "ariaLabelledBy": "ariaLabelledBy"; "ariaLabel": "ariaLabel"; "mobileConfig": "mobileConfig"; "inline": "inline"; "selectControlClass": "selectControlClass"; "selectDropdownButtonClass": "selectDropdownButtonClass"; "compareWith": "compareWith"; }, { "isOpenChange": "isOpenChange"; "valueChange": "valueChange"; }, ["_options"], ["*"], false, never>;
286
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent<any>, "fd-select", never, { "controlId": "controlId"; "state": "state"; "mobile": "mobile"; "stateMessage": "stateMessage"; "disabled": "disabled"; "required": "required"; "readonly": "readonly"; "placeholder": "placeholder"; "value": "value"; "extendedBodyTemplate": "extendedBodyTemplate"; "maxHeight": "maxHeight"; "glyph": "glyph"; "closeOnOutsideClick": "closeOnOutsideClick"; "fillControlMode": "fillControlMode"; "controlTemplate": "controlTemplate"; "appendTo": "appendTo"; "unselectMissingOption": "unselectMissingOption"; "typeaheadDebounceInterval": "typeaheadDebounceInterval"; "ariaLabelledBy": "ariaLabelledBy"; "ariaLabel": "ariaLabel"; "mobileConfig": "mobileConfig"; "inline": "inline"; "selectControlClass": "selectControlClass"; "selectDropdownButtonClass": "selectDropdownButtonClass"; "tabOutStrategy": "tabOutStrategy"; "compareWith": "compareWith"; }, { "isOpenChange": "isOpenChange"; "valueChange": "valueChange"; }, ["_options"], ["*"], false, never>;
281
287
  }
282
288
  export declare class DeprecatedSelectCSSClasses implements ModuleDeprecation {
283
289
  /** @hidden */
@@ -1,8 +1,7 @@
1
- import { EventEmitter, InjectionToken, QueryList, ElementRef } from '@angular/core';
2
- import { OptionComponent } from './option/option.component';
3
- import { MobileMode } from '@fundamental-ngx/core/mobile-mode';
1
+ import { ElementRef, EventEmitter, InjectionToken, QueryList } from '@angular/core';
4
2
  import { LiveAnnouncer } from '@angular/cdk/a11y';
5
- import { MobileModeConfig } from '@fundamental-ngx/core/mobile-mode';
3
+ import { MobileMode, MobileModeConfig } from '@fundamental-ngx/core/mobile-mode';
4
+ import { OptionComponent } from './option/option.component';
6
5
  export declare const SELECT_COMPONENT: InjectionToken<SelectInterface>;
7
6
  /**
8
7
  * Select Interface to have typing and avoid circular dependency between
@@ -20,7 +19,7 @@ export interface SelectInterface extends MobileMode {
20
19
  _liveAnnouncer: LiveAnnouncer;
21
20
  isOpenChange: EventEmitter<boolean>;
22
21
  valueChange: EventEmitter<any>;
23
- close(forceClose?: boolean): void;
22
+ close(forceClose?: boolean, tabOut?: boolean): void;
24
23
  open(): void;
25
24
  focus(): void;
26
25
  blur(): void;
@@ -1,3 +1,4 @@
1
+ import { Nullable } from '@fundamental-ngx/cdk/utils';
1
2
  import * as i0 from "@angular/core";
2
3
  /**
3
4
  * The component that represents a shellbar action.
@@ -22,6 +23,10 @@ export declare class ShellbarActionComponent {
22
23
  notificationLabel: string;
23
24
  /** Represents the number of notifications. */
24
25
  notificationCount: number;
26
+ /** title of the action button. */
27
+ title: Nullable<string>;
28
+ /** aria-label of the action button */
29
+ ariaLabel: Nullable<string>;
25
30
  static ɵfac: i0.ɵɵFactoryDeclaration<ShellbarActionComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<ShellbarActionComponent, "fd-shellbar-action", never, { "glyph": "glyph"; "callback": "callback"; "label": "label"; "notificationLabel": "notificationLabel"; "notificationCount": "notificationCount"; }, {}, never, never, false, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<ShellbarActionComponent, "fd-shellbar-action", never, { "glyph": "glyph"; "callback": "callback"; "label": "label"; "notificationLabel": "notificationLabel"; "notificationCount": "notificationCount"; "title": "title"; "ariaLabel": "ariaLabel"; }, {}, never, never, false, never>;
27
32
  }
Binary file