@fundamental-ngx/core 0.43.9 → 0.43.11
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.
- package/date-picker/date-picker.component.d.ts +2 -0
- package/datetime-picker/datetime-picker.component.d.ts +2 -0
- package/dialog/base/dialog-base.service.d.ts +4 -3
- package/dialog/dialog-container/dialog-container.component.d.ts +12 -11
- package/dialog/index.d.ts +11 -10
- package/dialog/utils/dialog-container.model.d.ts +4 -0
- package/esm2020/busy-indicator/busy-indicator.component.mjs +3 -3
- package/esm2020/date-picker/date-picker.component.mjs +8 -8
- package/esm2020/datetime-picker/datetime-picker.component.mjs +8 -7
- package/esm2020/dialog/base/dialog-base.service.mjs +8 -3
- package/esm2020/dialog/dialog-container/dialog-container.component.mjs +23 -23
- package/esm2020/dialog/index.mjs +12 -11
- package/esm2020/dialog/utils/dialog-container.model.mjs +2 -0
- package/esm2020/form/form-message/popover-form-message.service.mjs +2 -12
- package/esm2020/message-box/message-box-container/message-box-container.component.mjs +23 -24
- package/esm2020/multi-input/multi-input.component.mjs +76 -56
- package/esm2020/multi-input/multi-input.module.mjs +17 -14
- package/esm2020/multi-input/pair-selection.model.mjs +38 -0
- package/esm2020/popover/popover-body/popover-body.component.mjs +3 -3
- package/esm2020/popover/popover-service/popover.service.mjs +9 -2
- package/esm2020/time-picker/time-picker.component.mjs +19 -20
- package/esm2020/token/token.component.mjs +4 -3
- package/esm2020/token/tokenizer.component.mjs +32 -13
- package/fesm2015/fundamental-ngx-core-busy-indicator.mjs +2 -2
- package/fesm2015/fundamental-ngx-core-busy-indicator.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-date-picker.mjs +6 -6
- package/fesm2015/fundamental-ngx-core-date-picker.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-datetime-picker.mjs +6 -6
- package/fesm2015/fundamental-ngx-core-datetime-picker.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-dialog.mjs +189 -184
- package/fesm2015/fundamental-ngx-core-dialog.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-form.mjs +1 -10
- package/fesm2015/fundamental-ngx-core-form.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-message-box.mjs +20 -20
- package/fesm2015/fundamental-ngx-core-message-box.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-multi-input.mjs +158 -100
- package/fesm2015/fundamental-ngx-core-multi-input.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-popover.mjs +10 -3
- package/fesm2015/fundamental-ngx-core-popover.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-time-picker.mjs +14 -16
- package/fesm2015/fundamental-ngx-core-time-picker.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-token.mjs +29 -9
- package/fesm2015/fundamental-ngx-core-token.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-busy-indicator.mjs +2 -2
- package/fesm2020/fundamental-ngx-core-busy-indicator.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-date-picker.mjs +6 -6
- package/fesm2020/fundamental-ngx-core-date-picker.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-datetime-picker.mjs +6 -5
- package/fesm2020/fundamental-ngx-core-datetime-picker.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-dialog.mjs +188 -183
- package/fesm2020/fundamental-ngx-core-dialog.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-form.mjs +1 -10
- package/fesm2020/fundamental-ngx-core-form.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-message-box.mjs +20 -20
- package/fesm2020/fundamental-ngx-core-message-box.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-multi-input.mjs +158 -98
- package/fesm2020/fundamental-ngx-core-multi-input.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-popover.mjs +10 -3
- package/fesm2020/fundamental-ngx-core-popover.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-time-picker.mjs +15 -16
- package/fesm2020/fundamental-ngx-core-time-picker.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-token.mjs +29 -9
- package/fesm2020/fundamental-ngx-core-token.mjs.map +1 -1
- package/form/form-message/popover-form-message.service.d.ts +3 -7
- package/fundamental-ngx-core-v0.43.11.tgz +0 -0
- package/message-box/message-box-container/message-box-container.component.d.ts +12 -13
- package/multi-input/multi-input.component.d.ts +30 -21
- package/multi-input/multi-input.module.d.ts +2 -1
- package/multi-input/pair-selection.model.d.ts +19 -0
- package/package.json +3 -3
- package/popover/popover-service/popover.service.d.ts +1 -1
- package/schematics/add-dependencies/index.js +4 -4
- package/time-picker/time-picker.component.d.ts +17 -15
- package/token/tokenizer.component.d.ts +10 -2
- package/fundamental-ngx-core-v0.43.9.tgz +0 -0
|
@@ -12,8 +12,9 @@ import * as i10 from "@fundamental-ngx/core/form";
|
|
|
12
12
|
import * as i11 from "@fundamental-ngx/core/checkbox";
|
|
13
13
|
import * as i12 from "@fundamental-ngx/core/link";
|
|
14
14
|
import * as i13 from "@fundamental-ngx/core/content-density";
|
|
15
|
+
import * as i14 from "@fundamental-ngx/i18n";
|
|
15
16
|
export declare class MultiInputModule {
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiInputModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MultiInputModule, [typeof i1.MultiInputComponent, typeof i2.DeprecatedMultiInputCompactDirective], [typeof i3.CommonModule, typeof i4.TokenModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.ListModule, typeof i7.PopoverModule, typeof i8.PipeModule, typeof i9.InputGroupModule, typeof i10.FormModule, typeof i11.CheckboxModule, typeof i12.LinkModule, typeof i8.AutoCompleteModule, typeof i13.ContentDensityModule], [typeof i1.MultiInputComponent, typeof i2.DeprecatedMultiInputCompactDirective, typeof i13.ContentDensityModule]>;
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MultiInputModule, [typeof i1.MultiInputComponent, typeof i2.DeprecatedMultiInputCompactDirective], [typeof i3.CommonModule, typeof i4.TokenModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.ListModule, typeof i7.PopoverModule, typeof i8.PipeModule, typeof i9.InputGroupModule, typeof i10.FormModule, typeof i11.CheckboxModule, typeof i12.LinkModule, typeof i8.AutoCompleteModule, typeof i13.ContentDensityModule, typeof i14.I18nModule], [typeof i1.MultiInputComponent, typeof i2.DeprecatedMultiInputCompactDirective, typeof i13.ContentDensityModule]>;
|
|
18
19
|
static ɵinj: i0.ɵɵInjectorDeclaration<MultiInputModule>;
|
|
19
20
|
}
|
|
@@ -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.
|
|
3
|
+
"version": "0.43.11",
|
|
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.
|
|
32
|
-
"@fundamental-ngx/i18n": "0.43.
|
|
31
|
+
"@fundamental-ngx/cdk": "0.43.11",
|
|
32
|
+
"@fundamental-ngx/i18n": "0.43.11",
|
|
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
|
|
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.
|
|
57
|
+
(0, package_utils_1.checkPackageVersion)(tree, '@fundamental-ngx/i18n', '0.43.11', '<')) {
|
|
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.
|
|
61
|
+
version: `0.43.11`,
|
|
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.
|
|
67
|
+
(0, package_utils_1.checkPackageVersion)(tree, '@fundamental-ngx/cdk', '0.43.11', '<')) {
|
|
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.
|
|
71
|
+
version: `0.43.11`,
|
|
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;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, Renderer2, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { Observable, Subscription } from 'rxjs';
|
|
3
2
|
import { CssClassBuilder, RtlService } from '@fundamental-ngx/cdk/utils';
|
|
4
|
-
import { TokenComponent } from './token.component';
|
|
5
3
|
import { ContentDensityObserver } from '@fundamental-ngx/core/content-density';
|
|
4
|
+
import { Observable, Subscription } from 'rxjs';
|
|
5
|
+
import { TokenComponent } from './token.component';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class TokenizerComponent implements AfterViewInit, OnDestroy, CssClassBuilder, OnInit, OnChanges {
|
|
8
8
|
readonly _contentDensityObserver: ContentDensityObserver;
|
|
@@ -133,6 +133,14 @@ export declare class TokenizerComponent implements AfterViewInit, OnDestroy, Css
|
|
|
133
133
|
handleKeyDown(event: KeyboardEvent, fromIndex: number): void;
|
|
134
134
|
/** @hidden */
|
|
135
135
|
getCombinedTokenWidth(): number;
|
|
136
|
+
/**
|
|
137
|
+
* Check whether user intends to go back to the previous token
|
|
138
|
+
**/
|
|
139
|
+
private _goBackRequested;
|
|
140
|
+
/**
|
|
141
|
+
* Check whether user intends to go forward to the next token
|
|
142
|
+
**/
|
|
143
|
+
private _goForwardRequested;
|
|
136
144
|
/** @hidden */
|
|
137
145
|
private _getTokensAreaWidthWithoutTokens;
|
|
138
146
|
/** @hidden */
|
|
Binary file
|