@fundamental-ngx/core 0.43.10 → 0.43.12

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 (72) hide show
  1. package/date-picker/date-picker.component.d.ts +2 -0
  2. package/datetime-picker/datetime-picker.component.d.ts +2 -0
  3. package/dialog/base/dialog-base.service.d.ts +4 -3
  4. package/dialog/dialog-container/dialog-container.component.d.ts +12 -11
  5. package/dialog/index.d.ts +11 -10
  6. package/dialog/utils/dialog-container.model.d.ts +4 -0
  7. package/esm2020/busy-indicator/busy-indicator.component.mjs +4 -4
  8. package/esm2020/date-picker/date-picker.component.mjs +8 -8
  9. package/esm2020/datetime-picker/datetime-picker.component.mjs +8 -7
  10. package/esm2020/dialog/base/dialog-base.service.mjs +8 -3
  11. package/esm2020/dialog/dialog-container/dialog-container.component.mjs +23 -23
  12. package/esm2020/dialog/index.mjs +12 -11
  13. package/esm2020/dialog/utils/dialog-container.model.mjs +2 -0
  14. package/esm2020/form/form-message/popover-form-message.service.mjs +2 -12
  15. package/esm2020/message-box/message-box-container/message-box-container.component.mjs +23 -24
  16. package/esm2020/multi-input/multi-input.component.mjs +68 -56
  17. package/esm2020/multi-input/pair-selection.model.mjs +38 -0
  18. package/esm2020/popover/popover-body/popover-body.component.mjs +3 -3
  19. package/esm2020/popover/popover-service/popover.service.mjs +9 -2
  20. package/esm2020/time-picker/time-picker.component.mjs +19 -20
  21. package/esm2020/token/token.component.mjs +2 -1
  22. package/esm2020/token/tokenizer.component.mjs +3 -3
  23. package/fesm2015/fundamental-ngx-core-busy-indicator.mjs +3 -3
  24. package/fesm2015/fundamental-ngx-core-busy-indicator.mjs.map +1 -1
  25. package/fesm2015/fundamental-ngx-core-date-picker.mjs +6 -6
  26. package/fesm2015/fundamental-ngx-core-date-picker.mjs.map +1 -1
  27. package/fesm2015/fundamental-ngx-core-datetime-picker.mjs +6 -6
  28. package/fesm2015/fundamental-ngx-core-datetime-picker.mjs.map +1 -1
  29. package/fesm2015/fundamental-ngx-core-dialog.mjs +189 -184
  30. package/fesm2015/fundamental-ngx-core-dialog.mjs.map +1 -1
  31. package/fesm2015/fundamental-ngx-core-form.mjs +1 -10
  32. package/fesm2015/fundamental-ngx-core-form.mjs.map +1 -1
  33. package/fesm2015/fundamental-ngx-core-message-box.mjs +20 -20
  34. package/fesm2015/fundamental-ngx-core-message-box.mjs.map +1 -1
  35. package/fesm2015/fundamental-ngx-core-multi-input.mjs +104 -57
  36. package/fesm2015/fundamental-ngx-core-multi-input.mjs.map +1 -1
  37. package/fesm2015/fundamental-ngx-core-popover.mjs +10 -3
  38. package/fesm2015/fundamental-ngx-core-popover.mjs.map +1 -1
  39. package/fesm2015/fundamental-ngx-core-time-picker.mjs +14 -16
  40. package/fesm2015/fundamental-ngx-core-time-picker.mjs.map +1 -1
  41. package/fesm2015/fundamental-ngx-core-token.mjs +3 -2
  42. package/fesm2015/fundamental-ngx-core-token.mjs.map +1 -1
  43. package/fesm2020/fundamental-ngx-core-busy-indicator.mjs +3 -3
  44. package/fesm2020/fundamental-ngx-core-busy-indicator.mjs.map +1 -1
  45. package/fesm2020/fundamental-ngx-core-date-picker.mjs +6 -6
  46. package/fesm2020/fundamental-ngx-core-date-picker.mjs.map +1 -1
  47. package/fesm2020/fundamental-ngx-core-datetime-picker.mjs +6 -5
  48. package/fesm2020/fundamental-ngx-core-datetime-picker.mjs.map +1 -1
  49. package/fesm2020/fundamental-ngx-core-dialog.mjs +188 -183
  50. package/fesm2020/fundamental-ngx-core-dialog.mjs.map +1 -1
  51. package/fesm2020/fundamental-ngx-core-form.mjs +1 -10
  52. package/fesm2020/fundamental-ngx-core-form.mjs.map +1 -1
  53. package/fesm2020/fundamental-ngx-core-message-box.mjs +20 -20
  54. package/fesm2020/fundamental-ngx-core-message-box.mjs.map +1 -1
  55. package/fesm2020/fundamental-ngx-core-multi-input.mjs +104 -55
  56. package/fesm2020/fundamental-ngx-core-multi-input.mjs.map +1 -1
  57. package/fesm2020/fundamental-ngx-core-popover.mjs +10 -3
  58. package/fesm2020/fundamental-ngx-core-popover.mjs.map +1 -1
  59. package/fesm2020/fundamental-ngx-core-time-picker.mjs +15 -16
  60. package/fesm2020/fundamental-ngx-core-time-picker.mjs.map +1 -1
  61. package/fesm2020/fundamental-ngx-core-token.mjs +3 -2
  62. package/fesm2020/fundamental-ngx-core-token.mjs.map +1 -1
  63. package/form/form-message/popover-form-message.service.d.ts +3 -7
  64. package/fundamental-ngx-core-v0.43.12.tgz +0 -0
  65. package/message-box/message-box-container/message-box-container.component.d.ts +12 -13
  66. package/multi-input/multi-input.component.d.ts +26 -21
  67. package/multi-input/pair-selection.model.d.ts +19 -0
  68. package/package.json +3 -3
  69. package/popover/popover-service/popover.service.d.ts +1 -1
  70. package/schematics/add-dependencies/index.js +4 -4
  71. package/time-picker/time-picker.component.d.ts +17 -15
  72. package/fundamental-ngx-core-v0.43.10.tgz +0 -0
@@ -0,0 +1,19 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ export declare class PairSelectionModel<KeyType, ValueType> {
3
+ /** @hidden */
4
+ _selected: Map<KeyType, ValueType>;
5
+ /** Event emitted when the selection has changed. */
6
+ selectionChanged: EventEmitter<[KeyType, ValueType][]>;
7
+ /** Array of selected items */
8
+ get selected(): ValueType[];
9
+ /** Whether the given key exists in the record */
10
+ isSelected(key: KeyType): boolean;
11
+ /** Selects the given key-value pair */
12
+ select(values: [KeyType, ValueType][]): void;
13
+ /** Selects the given key-value pair */
14
+ select(key: KeyType, value: ValueType): void;
15
+ /** Deselects the given key */
16
+ deselect(key: KeyType): void;
17
+ /** Clears the selection information */
18
+ clear(): void;
19
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/core",
3
- "version": "0.43.10",
3
+ "version": "0.43.12",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "ng-update": {
6
6
  "migrations": "./schematics/migrations.json"
@@ -28,8 +28,8 @@
28
28
  "rxjs": "^7.8.0"
29
29
  },
30
30
  "dependencies": {
31
- "@fundamental-ngx/cdk": "0.43.10",
32
- "@fundamental-ngx/i18n": "0.43.10",
31
+ "@fundamental-ngx/cdk": "0.43.12",
32
+ "@fundamental-ngx/i18n": "0.43.12",
33
33
  "compare-versions": "^5.0.0",
34
34
  "fast-deep-equal": "3.1.3",
35
35
  "focus-trap": "^7.1.0",
@@ -65,7 +65,7 @@ export declare class PopoverService extends BasePopoverClass {
65
65
  /** Opens the popover. */
66
66
  open(): void;
67
67
  /** method updating template or text inside rendered PopoverBody */
68
- updateContent(stringContent: Nullable<string>, templateContent: Nullable<TemplateRef<any>>): void;
68
+ updateContent(stringContent: Nullable<string> | Nullable<TemplateRef<any>>, templateContent: Nullable<TemplateRef<any>>): void;
69
69
  /** Toggles the popover open state */
70
70
  toggle(openAction?: boolean, closeAction?: boolean): void;
71
71
  /**
@@ -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.10', '<')) {
57
+ (0, package_utils_1.checkPackageVersion)(tree, '@fundamental-ngx/i18n', '0.43.12', '<')) {
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.10`,
61
+ version: `0.43.12`,
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.10', '<')) {
67
+ (0, package_utils_1.checkPackageVersion)(tree, '@fundamental-ngx/cdk', '0.43.12', '<')) {
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.10`,
71
+ version: `0.43.12`,
72
72
  name: '@fundamental-ngx/cdk',
73
73
  overwrite: true
74
74
  });
@@ -1,11 +1,11 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { ControlValueAccessor, Validator } from '@angular/forms';
3
- import { Placement, ValueStateAriaMessageService } from '@fundamental-ngx/core/shared';
4
3
  import { DatetimeAdapter, DateTimeFormats } from '@fundamental-ngx/core/datetime';
4
+ import { FormItemControl, PopoverFormMessageService } from '@fundamental-ngx/core/form';
5
+ import { Placement, ValueStateAriaMessageService } from '@fundamental-ngx/core/shared';
5
6
  import { TimeComponent } from '@fundamental-ngx/core/time';
6
- import { PopoverFormMessageService, FormItemControl } from '@fundamental-ngx/core/form';
7
- import { Nullable } from '@fundamental-ngx/cdk/utils';
8
7
  import { FormStates } from '@fundamental-ngx/cdk/forms';
8
+ import { Nullable } from '@fundamental-ngx/cdk/utils';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class TimePickerComponent<D> implements ControlValueAccessor, OnInit, AfterViewInit, OnChanges, OnDestroy, Validator, FormItemControl {
11
11
  private _changeDetectorRef;
@@ -63,19 +63,13 @@ export declare class TimePickerComponent<D> implements ControlValueAccessor, OnI
63
63
  tablet: boolean;
64
64
  /** Text displayed in message */
65
65
  set message(message: string);
66
- /** @hidden */
67
- _message: string | null;
68
66
  /** Type of the message. Can be 'success' | 'error' | 'warning' | 'information' */
69
67
  set messageType(messageType: FormStates);
70
- /** @hidden */
71
- _messageType: FormStates | null;
72
68
  /**
73
69
  * The trigger events that will open/close the message box.
74
70
  * Accepts any [HTML DOM Events](https://www.w3schools.com/jsref/dom_obj_event.asp).
75
71
  */
76
72
  set messageTriggers(triggers: string[]);
77
- /** @hidden */
78
- _messageTriggers: string[];
79
73
  /**
80
74
  * The placement of the popover. It can be one of: top, top-start, top-end, bottom,
81
75
  * bottom-start, bottom-end, right, right-start, right-end, left, left-start, left-end.
@@ -90,8 +84,6 @@ export declare class TimePickerComponent<D> implements ControlValueAccessor, OnI
90
84
  */
91
85
  set state(state: FormStates);
92
86
  get state(): FormStates;
93
- /** @hidden */
94
- private _state;
95
87
  /**
96
88
  * Whether AddOn Button should be focusable
97
89
  * @default true
@@ -137,6 +129,14 @@ export declare class TimePickerComponent<D> implements ControlValueAccessor, OnI
137
129
  _inputGroupElement: ElementRef;
138
130
  /** @hidden */
139
131
  _inputElement: ElementRef;
132
+ /** @hidden */
133
+ private readonly _formMessageTemplate;
134
+ /** @hidden */
135
+ _message: string | null;
136
+ /** @hidden */
137
+ _messageType: FormStates | null;
138
+ /** @hidden */
139
+ _messageTriggers: string[];
140
140
  /**
141
141
  * @hidden
142
142
  * Whether the input time is valid(success). Internal use.
@@ -163,18 +163,20 @@ export declare class TimePickerComponent<D> implements ControlValueAccessor, OnI
163
163
  /** @hidden */
164
164
  _formValueStateMessageId: string;
165
165
  /** @hidden */
166
+ private _state;
167
+ /** @hidden */
166
168
  private readonly _onDestroy$;
167
169
  /** @hidden */
168
170
  private _subscriptions;
169
171
  /** @hidden */
170
- onChange: (_: Nullable<D>) => void;
171
- /** @hidden */
172
- onTouched: () => void;
173
- /** @hidden */
174
172
  get _placeholder(): string;
175
173
  /** @hidden */
176
174
  constructor(_changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef, _dateTimeAdapter: DatetimeAdapter<D>, _dateTimeFormats: DateTimeFormats, _popoverFormMessage: PopoverFormMessageService, _valueStateAriaMessagesService: ValueStateAriaMessageService);
177
175
  /** @hidden */
176
+ onChange: (_: Nullable<D>) => void;
177
+ /** @hidden */
178
+ onTouched: () => void;
179
+ /** @hidden */
178
180
  ngOnInit(): void;
179
181
  /** @hidden */
180
182
  ngOnChanges(changes: SimpleChanges): void;
Binary file