@fundamental-ngx/core 0.39.2 → 0.40.0-rc.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.
- package/dialog/base/dialog-config-base.class.d.ts +2 -0
- package/esm2020/avatar/avatar.component.mjs +6 -3
- package/esm2020/calendar/calendar-views/calendar-day-view/calendar-day-view.component.mjs +6 -3
- package/esm2020/date-picker/date-picker.component.mjs +5 -15
- package/esm2020/dialog/base/dialog-config-base.class.mjs +3 -1
- package/esm2020/dialog/dialog-body/dialog-body.component.mjs +3 -3
- package/esm2020/dialog/dialog.component.mjs +4 -3
- package/esm2020/dynamic-page/dynamic-page.component.mjs +2 -2
- package/esm2020/form/form-input-message-group/form-input-message-group.component.mjs +1 -1
- package/esm2020/form/form-label/form-label.component.mjs +8 -2
- package/esm2020/icon/icon.component.mjs +1 -1
- package/esm2020/illustrated-message/illustrated-message.component.mjs +5 -2
- package/esm2020/layout-panel/layout-panel-footer/layout-panel-footer.component.mjs +40 -22
- package/esm2020/layout-panel/layout-panel-title/layout-panel-title.directive.mjs +4 -4
- package/esm2020/layout-panel/layout-panel.component.mjs +15 -3
- package/esm2020/link/link.component.mjs +3 -3
- package/esm2020/list/list-component.interface.mjs +1 -1
- package/esm2020/list/list-item/list-item.component.mjs +9 -10
- package/esm2020/list/list-navigation-item/list-navigation-item.component.mjs +2 -2
- package/esm2020/list/list.component.mjs +2 -2
- package/esm2020/list/tokens.mjs +1 -1
- package/esm2020/multi-combobox/base-multi-combobox.class.mjs +2 -2
- package/esm2020/multi-combobox/multi-combobox.component.mjs +8 -9
- package/esm2020/multi-input/multi-input.component.mjs +7 -4
- package/esm2020/object-status/object-status.component.mjs +1 -1
- package/esm2020/popover/base/base-popover.class.mjs +18 -4
- package/esm2020/popover/popover-service/popover.service.mjs +22 -8
- package/esm2020/segmented-button/segmented-button.component.mjs +11 -15
- package/esm2020/select/option/option.component.mjs +21 -5
- package/esm2020/select/select.component.mjs +1 -1
- package/esm2020/splitter/splitter-pane-container/splitter-pane-container.component.mjs +9 -3
- package/esm2020/text/text.component.mjs +3 -3
- package/esm2020/theming/theming.service.mjs +11 -4
- package/esm2020/timeline/timeline.component.mjs +11 -11
- package/esm2020/token/token.component.mjs +27 -6
- package/esm2020/token/tokenizer.component.mjs +151 -71
- package/fesm2015/fundamental-ngx-core-avatar.mjs +5 -2
- package/fesm2015/fundamental-ngx-core-avatar.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-calendar.mjs +5 -2
- package/fesm2015/fundamental-ngx-core-calendar.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-date-picker.mjs +4 -14
- package/fesm2015/fundamental-ngx-core-date-picker.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-dialog.mjs +6 -4
- package/fesm2015/fundamental-ngx-core-dialog.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-dynamic-page.mjs +2 -2
- package/fesm2015/fundamental-ngx-core-dynamic-page.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-form.mjs +7 -1
- package/fesm2015/fundamental-ngx-core-form.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-icon.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-illustrated-message.mjs +4 -1
- package/fesm2015/fundamental-ngx-core-illustrated-message.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-layout-panel.mjs +55 -25
- package/fesm2015/fundamental-ngx-core-layout-panel.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-link.mjs +2 -2
- package/fesm2015/fundamental-ngx-core-link.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-list.mjs +15 -19
- package/fesm2015/fundamental-ngx-core-list.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-multi-combobox.mjs +9 -11
- package/fesm2015/fundamental-ngx-core-multi-combobox.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-multi-input.mjs +6 -3
- package/fesm2015/fundamental-ngx-core-multi-input.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-object-status.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-popover.mjs +38 -10
- package/fesm2015/fundamental-ngx-core-popover.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-segmented-button.mjs +11 -15
- package/fesm2015/fundamental-ngx-core-segmented-button.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-select.mjs +29 -14
- package/fesm2015/fundamental-ngx-core-select.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-splitter.mjs +8 -2
- package/fesm2015/fundamental-ngx-core-splitter.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-text.mjs +2 -2
- package/fesm2015/fundamental-ngx-core-text.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-theming.mjs +10 -3
- package/fesm2015/fundamental-ngx-core-theming.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-timeline.mjs +9 -10
- package/fesm2015/fundamental-ngx-core-timeline.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-token.mjs +179 -76
- package/fesm2015/fundamental-ngx-core-token.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-avatar.mjs +5 -2
- package/fesm2020/fundamental-ngx-core-avatar.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-calendar.mjs +5 -2
- package/fesm2020/fundamental-ngx-core-calendar.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-date-picker.mjs +4 -14
- package/fesm2020/fundamental-ngx-core-date-picker.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-dialog.mjs +6 -4
- package/fesm2020/fundamental-ngx-core-dialog.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-dynamic-page.mjs +2 -2
- package/fesm2020/fundamental-ngx-core-dynamic-page.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-form.mjs +7 -1
- package/fesm2020/fundamental-ngx-core-form.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-icon.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-illustrated-message.mjs +4 -1
- package/fesm2020/fundamental-ngx-core-illustrated-message.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-layout-panel.mjs +55 -25
- package/fesm2020/fundamental-ngx-core-layout-panel.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-link.mjs +2 -2
- package/fesm2020/fundamental-ngx-core-link.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-list.mjs +15 -18
- package/fesm2020/fundamental-ngx-core-list.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-multi-combobox.mjs +8 -9
- package/fesm2020/fundamental-ngx-core-multi-combobox.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-multi-input.mjs +6 -3
- package/fesm2020/fundamental-ngx-core-multi-input.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-object-status.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-popover.mjs +38 -10
- package/fesm2020/fundamental-ngx-core-popover.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-segmented-button.mjs +11 -15
- package/fesm2020/fundamental-ngx-core-segmented-button.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-select.mjs +27 -14
- package/fesm2020/fundamental-ngx-core-select.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-splitter.mjs +8 -2
- package/fesm2020/fundamental-ngx-core-splitter.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-text.mjs +2 -2
- package/fesm2020/fundamental-ngx-core-text.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-theming.mjs +10 -3
- package/fesm2020/fundamental-ngx-core-theming.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-timeline.mjs +9 -10
- package/fesm2020/fundamental-ngx-core-timeline.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-token.mjs +173 -74
- package/fesm2020/fundamental-ngx-core-token.mjs.map +1 -1
- package/form/form-input-message-group/form-input-message-group.component.d.ts +2 -1
- package/fundamental-ngx-core-v0.40.0-rc.0.tgz +0 -0
- package/illustrated-message/illustrated-message.component.d.ts +2 -2
- package/layout-panel/layout-panel-footer/layout-panel-footer.component.d.ts +23 -14
- package/layout-panel/layout-panel-title/layout-panel-title.directive.d.ts +1 -1
- package/layout-panel/layout-panel.component.d.ts +5 -1
- package/list/list-component.interface.d.ts +1 -0
- package/list/list-item/list-item.component.d.ts +2 -2
- package/list/tokens.d.ts +1 -1
- package/multi-combobox/base-multi-combobox.class.d.ts +1 -2
- package/multi-combobox/multi-combobox.component.d.ts +2 -3
- package/object-status/object-status.component.d.ts +1 -1
- package/package.json +4 -4
- package/popover/base/base-popover.class.d.ts +17 -3
- package/popover/popover-service/popover.service.d.ts +2 -0
- package/schematics/add-dependencies/index.js +6 -6
- package/segmented-button/segmented-button.component.d.ts +0 -1
- package/select/option/option.component.d.ts +9 -2
- package/select/select.component.d.ts +1 -1
- package/splitter/splitter-pane-container/splitter-pane-container.component.d.ts +5 -1
- package/theming/theming.service.d.ts +12 -6
- package/timeline/timeline.component.d.ts +3 -2
- package/token/token.component.d.ts +7 -1
- package/token/tokenizer.component.d.ts +28 -7
- package/esm2020/list/list-component.token.mjs +0 -4
- package/fundamental-ngx-core-v0.39.2.tgz +0 -0
- package/list/list-component.token.d.ts +0 -4
|
@@ -44,31 +44,31 @@ function addExternalLibraries(options) {
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
if (!(0, package_utils_1.hasPackage)(tree, '@sap-theming/theming-base-content') ||
|
|
47
|
-
(0, package_utils_1.checkPackageVersion)(tree, '@sap-theming/theming-base-content', '^11.
|
|
47
|
+
(0, package_utils_1.checkPackageVersion)(tree, '@sap-theming/theming-base-content', '^11.2.0', '<')) {
|
|
48
48
|
dependencies.push({
|
|
49
49
|
type: dependencies_1.NodeDependencyType.Default,
|
|
50
50
|
// Will be replaced with the real version during sync-version script run
|
|
51
|
-
version: `^11.
|
|
51
|
+
version: `^11.2.0`,
|
|
52
52
|
name: '@sap-theming/theming-base-content',
|
|
53
53
|
overwrite: true
|
|
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.
|
|
57
|
+
(0, package_utils_1.checkPackageVersion)(tree, '@fundamental-ngx/i18n', '0.40.0-rc.0', '<')) {
|
|
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.
|
|
61
|
+
version: `0.40.0-rc.0`,
|
|
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.
|
|
67
|
+
(0, package_utils_1.checkPackageVersion)(tree, '@fundamental-ngx/cdk', '0.40.0-rc.0', '<')) {
|
|
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.
|
|
71
|
+
version: `0.40.0-rc.0`,
|
|
72
72
|
name: '@fundamental-ngx/cdk',
|
|
73
73
|
overwrite: true
|
|
74
74
|
});
|
|
@@ -3,7 +3,6 @@ import { ButtonComponent } from '@fundamental-ngx/core/button';
|
|
|
3
3
|
import { DestroyedService } from '@fundamental-ngx/cdk/utils';
|
|
4
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare const isSelectedClass = "fd-button--toggled";
|
|
7
6
|
export declare const isDisabledClass = "is-disabled";
|
|
8
7
|
export type SegmentedButtonValue = string | (string | null)[] | null;
|
|
9
8
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { AfterViewChecked, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
1
|
+
import { AfterViewChecked, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import { FocusableOption, FocusOrigin } from '@angular/cdk/a11y';
|
|
4
|
+
import { ListTitleDirective } from '@fundamental-ngx/core/list';
|
|
4
5
|
import { OptionsInterface } from '../options.interface';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
@@ -41,6 +42,10 @@ export declare class OptionComponent implements AfterViewChecked, OnDestroy, Foc
|
|
|
41
42
|
readonly selectionChange: EventEmitter<FdOptionSelectionChange>;
|
|
42
43
|
/** @hidden */
|
|
43
44
|
selected: boolean;
|
|
45
|
+
/** @Hidden */
|
|
46
|
+
_listTitleDirectives: QueryList<ListTitleDirective> | undefined;
|
|
47
|
+
/** @hidden */
|
|
48
|
+
_renderer: 'plain' | 'title';
|
|
44
49
|
/**
|
|
45
50
|
* The displayed value of the option. It shows the selected option in the select's trigger.
|
|
46
51
|
*/
|
|
@@ -55,6 +60,8 @@ export declare class OptionComponent implements AfterViewChecked, OnDestroy, Foc
|
|
|
55
60
|
private _active;
|
|
56
61
|
/** @hidden */
|
|
57
62
|
constructor(_elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef);
|
|
63
|
+
/** @Hidden */
|
|
64
|
+
ngAfterViewInit(): void;
|
|
58
65
|
/**
|
|
59
66
|
* @hidden
|
|
60
67
|
* Since select components could be using the option's label to display the selected values
|
|
@@ -103,5 +110,5 @@ export declare class OptionComponent implements AfterViewChecked, OnDestroy, Foc
|
|
|
103
110
|
/** @hidden */
|
|
104
111
|
_selectViaInteraction(): void;
|
|
105
112
|
static ɵfac: i0.ɵɵFactoryDeclaration<OptionComponent, never>;
|
|
106
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent, "[fd-option], fd-option", never, { "id": "id"; "value": "value"; "disabled": "disabled"; }, { "selectionChange": "selectionChange"; },
|
|
113
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent, "[fd-option], fd-option", never, { "id": "id"; "value": "value"; "disabled": "disabled"; }, { "selectionChange": "selectionChange"; }, ["_listTitleDirectives"], ["*", "[secondary]"], false, never>;
|
|
107
114
|
}
|
|
@@ -70,7 +70,7 @@ export declare class SelectComponent<T = any> implements ControlValueAccessor, S
|
|
|
70
70
|
*/
|
|
71
71
|
fillControlMode: PopoverFillMode;
|
|
72
72
|
/** Custom template used to build control body. */
|
|
73
|
-
controlTemplate: TemplateRef<any
|
|
73
|
+
controlTemplate: TemplateRef<any> | undefined;
|
|
74
74
|
/** The element to which the popover should be appended. */
|
|
75
75
|
appendTo: ElementRef;
|
|
76
76
|
/**
|
|
@@ -15,6 +15,10 @@ export declare class SplitterPaneContainerComponent implements AfterContentInit,
|
|
|
15
15
|
private readonly _parentSplitterPaneContainer;
|
|
16
16
|
/** Pane type - vertical (default) or horizontal. */
|
|
17
17
|
orientation: SplitterPaneContainerOrientationType;
|
|
18
|
+
/**
|
|
19
|
+
* Style of the resizer.
|
|
20
|
+
*/
|
|
21
|
+
resizerType: 'default' | 'transparent' | 'translucent';
|
|
18
22
|
/** Event emitted after container's panes has resized. */
|
|
19
23
|
readonly resize: EventEmitter<SplitterPaneResizeEvent[]>;
|
|
20
24
|
/** @hidden */
|
|
@@ -84,7 +88,7 @@ export declare class SplitterPaneContainerComponent implements AfterContentInit,
|
|
|
84
88
|
/** @hidden */
|
|
85
89
|
private _getPaneElement;
|
|
86
90
|
static ɵfac: i0.ɵɵFactoryDeclaration<SplitterPaneContainerComponent, [null, null, null, null, { optional: true; }, { optional: true; skipSelf: true; }]>;
|
|
87
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SplitterPaneContainerComponent, "fd-splitter-pane-container", never, { "orientation": "orientation"; }, { "resize": "resize"; }, ["_panes", "_directPanes"], never, false, never>;
|
|
91
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SplitterPaneContainerComponent, "fd-splitter-pane-container", never, { "orientation": "orientation"; "resizerType": "resizerType"; }, { "resize": "resize"; }, ["_panes", "_directPanes"], never, false, never>;
|
|
88
92
|
}
|
|
89
93
|
export declare class NoDefaultPanePipe implements PipeTransform {
|
|
90
94
|
private readonly _splitterPaneContainer;
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import { OnDestroy, RendererFactory2 } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { Nullable } from '@fundamental-ngx/cdk/utils';
|
|
5
|
+
import { BaseThemingConfig } from './config';
|
|
4
6
|
import { ThemingConfig } from './interfaces/theming-config.interface';
|
|
5
|
-
import { CompleteThemeDefinition } from './interfaces/theme.interface';
|
|
7
|
+
import { CompleteThemeDefinition, ThemeDefinition } from './interfaces/theme.interface';
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
7
9
|
export declare class ThemingService implements OnDestroy {
|
|
8
10
|
private _rendererFactory;
|
|
9
11
|
private _document;
|
|
10
12
|
private _activatedRoute;
|
|
11
13
|
private readonly _providedConfig;
|
|
12
|
-
/** @hidden */
|
|
13
|
-
private readonly config;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Theming configuration.
|
|
16
|
+
*/
|
|
17
|
+
readonly config: BaseThemingConfig;
|
|
18
|
+
/**
|
|
19
|
+
* Observable of the current theme, applied to the application.
|
|
16
20
|
*/
|
|
17
21
|
get currentTheme(): Observable<CompleteThemeDefinition | null>;
|
|
18
22
|
/** @hidden */
|
|
@@ -24,8 +28,6 @@ export declare class ThemingService implements OnDestroy {
|
|
|
24
28
|
/** @hidden **/
|
|
25
29
|
private readonly _onDestroy$;
|
|
26
30
|
/** @hidden */
|
|
27
|
-
private _currentTheme;
|
|
28
|
-
/** @hidden */
|
|
29
31
|
private readonly _currentThemeSubject;
|
|
30
32
|
/**
|
|
31
33
|
* @hidden
|
|
@@ -46,6 +48,10 @@ export declare class ThemingService implements OnDestroy {
|
|
|
46
48
|
* Returns array of available themes.
|
|
47
49
|
*/
|
|
48
50
|
getThemes(): CompleteThemeDefinition[];
|
|
51
|
+
/**
|
|
52
|
+
* Returns current theme definition.
|
|
53
|
+
*/
|
|
54
|
+
getCurrentTheme(): Nullable<ThemeDefinition>;
|
|
49
55
|
/**
|
|
50
56
|
* @hidden
|
|
51
57
|
* @param type
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, IterableDiffers, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef, TrackByFunction } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, IterableDiffers, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef, TrackByFunction } from '@angular/core';
|
|
2
2
|
import { ViewportRuler } from '@angular/cdk/overlay';
|
|
3
3
|
import { TimelinePositionControlService } from './services/timeline-position-control.service';
|
|
4
4
|
import { TimelineAxis, TimelineSidePosition } from './types';
|
|
@@ -8,6 +8,7 @@ export declare class TimelineComponent<T> implements OnInit, OnDestroy, OnChange
|
|
|
8
8
|
private _cd;
|
|
9
9
|
private _timelinePositionControlService;
|
|
10
10
|
private _viewportRuler;
|
|
11
|
+
private _elementRef;
|
|
11
12
|
private _ngZone;
|
|
12
13
|
/**
|
|
13
14
|
* Data array to render
|
|
@@ -49,7 +50,7 @@ export declare class TimelineComponent<T> implements OnInit, OnDestroy, OnChange
|
|
|
49
50
|
/** @hidden */
|
|
50
51
|
private readonly _onDestroy;
|
|
51
52
|
/** @hidden */
|
|
52
|
-
constructor(_differs: IterableDiffers, _cd: ChangeDetectorRef, _timelinePositionControlService: TimelinePositionControlService, _viewportRuler: ViewportRuler, _ngZone: NgZone);
|
|
53
|
+
constructor(_differs: IterableDiffers, _cd: ChangeDetectorRef, _timelinePositionControlService: TimelinePositionControlService, _viewportRuler: ViewportRuler, _elementRef: ElementRef<HTMLElement>, _ngZone: NgZone);
|
|
53
54
|
/** @hidden */
|
|
54
55
|
ngOnInit(): void;
|
|
55
56
|
/** @hidden */
|
|
@@ -44,9 +44,15 @@ export declare class TokenComponent implements AfterViewInit, OnDestroy {
|
|
|
44
44
|
onTokenClick: EventEmitter<MouseEvent>;
|
|
45
45
|
/** Emitted when a there's a keydown registered on the token. */
|
|
46
46
|
onTokenKeydown: EventEmitter<KeyboardEvent>;
|
|
47
|
+
/**
|
|
48
|
+
* Emitted when token element received or lost focus.
|
|
49
|
+
*/
|
|
50
|
+
elementFocused: EventEmitter<boolean>;
|
|
47
51
|
/** @hidden */
|
|
48
52
|
totalCount: number;
|
|
49
53
|
/** @hidden */
|
|
54
|
+
private readonly _destroy$;
|
|
55
|
+
/** @hidden */
|
|
50
56
|
constructor(elementRef: ElementRef, _cdRef: ChangeDetectorRef, _contentDensityObserver: ContentDensityObserver);
|
|
51
57
|
/** @hidden */
|
|
52
58
|
ngAfterViewInit(): void;
|
|
@@ -61,5 +67,5 @@ export declare class TokenComponent implements AfterViewInit, OnDestroy {
|
|
|
61
67
|
/** @hidden */
|
|
62
68
|
_setTotalCount(count: number): void;
|
|
63
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<TokenComponent, never>;
|
|
64
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TokenComponent, "fd-token", never, { "disabled": "disabled"; "selected": "selected"; "readOnly": "readOnly"; "deleteButtonLabel": "deleteButtonLabel"; "ariaRoleDescription": "ariaRoleDescription"; }, { "onCloseClick": "onCloseClick"; "onRemove": "onRemove"; "onTokenClick": "onTokenClick"; "onTokenKeydown": "onTokenKeydown"; }, never, ["*"], false, never>;
|
|
70
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TokenComponent, "fd-token", never, { "disabled": "disabled"; "selected": "selected"; "readOnly": "readOnly"; "deleteButtonLabel": "deleteButtonLabel"; "ariaRoleDescription": "ariaRoleDescription"; }, { "onCloseClick": "onCloseClick"; "onRemove": "onRemove"; "onTokenClick": "onTokenClick"; "onTokenKeydown": "onTokenKeydown"; "elementFocused": "elementFocused"; }, never, ["*"], false, never>;
|
|
65
71
|
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, Renderer2, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { Subscription } from 'rxjs';
|
|
3
3
|
import { CssClassBuilder, RtlService } from '@fundamental-ngx/cdk/utils';
|
|
4
4
|
import { TokenComponent } from './token.component';
|
|
5
5
|
import { ContentDensityObserver } from '@fundamental-ngx/core/content-density';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class TokenizerComponent implements AfterViewInit,
|
|
7
|
+
export declare class TokenizerComponent implements AfterViewInit, OnDestroy, CssClassBuilder, OnInit, OnChanges {
|
|
8
8
|
readonly _contentDensityObserver: ContentDensityObserver;
|
|
9
9
|
private _elementRef;
|
|
10
10
|
private _cdRef;
|
|
11
11
|
private _rtlService;
|
|
12
12
|
private _renderer;
|
|
13
|
+
private readonly _document;
|
|
13
14
|
/** user's custom classes */
|
|
14
15
|
class: string;
|
|
15
16
|
/** Disables possibility to remove tokens by keyboard */
|
|
@@ -17,7 +18,7 @@ export declare class TokenizerComponent implements AfterViewInit, AfterContentIn
|
|
|
17
18
|
/** @hidden */
|
|
18
19
|
tokenList: QueryList<TokenComponent>;
|
|
19
20
|
/** @hidden */
|
|
20
|
-
input: ElementRef
|
|
21
|
+
input: ElementRef<HTMLInputElement>;
|
|
21
22
|
/** @hidden */
|
|
22
23
|
tokenizerInnerEl: ElementRef<HTMLDivElement>;
|
|
23
24
|
/** @hidden */
|
|
@@ -66,6 +67,10 @@ export declare class TokenizerComponent implements AfterViewInit, AfterContentIn
|
|
|
66
67
|
_tokenizerHasFocus: boolean;
|
|
67
68
|
/** @hidden */
|
|
68
69
|
_showOverflowPopover: boolean;
|
|
70
|
+
/** @hidden */
|
|
71
|
+
_showMoreElement: boolean;
|
|
72
|
+
/** @hidden */
|
|
73
|
+
_tokensContainerWidth: string;
|
|
69
74
|
/** @hidden
|
|
70
75
|
* Variable which will keep the index of the first token pressed in the tokenizer
|
|
71
76
|
*/
|
|
@@ -87,11 +92,17 @@ export declare class TokenizerComponent implements AfterViewInit, AfterContentIn
|
|
|
87
92
|
/** @hidden */
|
|
88
93
|
private readonly _eventListeners;
|
|
89
94
|
/** @hidden */
|
|
90
|
-
|
|
95
|
+
private _forceAllTokensToDisplay;
|
|
91
96
|
/** @hidden */
|
|
92
|
-
|
|
97
|
+
private _tokenElementFocused;
|
|
98
|
+
/** @hidden */
|
|
99
|
+
private _inputElementFocused;
|
|
100
|
+
/** @hidden */
|
|
101
|
+
private _tokenElementFocusedSub;
|
|
102
|
+
/** @hidden */
|
|
103
|
+
constructor(_contentDensityObserver: ContentDensityObserver, _elementRef: ElementRef, _cdRef: ChangeDetectorRef, _rtlService: RtlService, _renderer: Renderer2, _document: Document);
|
|
93
104
|
/** @hidden */
|
|
94
|
-
|
|
105
|
+
ngAfterViewInit(): void;
|
|
95
106
|
/** @hidden */
|
|
96
107
|
ngOnDestroy(): void;
|
|
97
108
|
/** @hidden */
|
|
@@ -119,12 +130,20 @@ export declare class TokenizerComponent implements AfterViewInit, AfterContentIn
|
|
|
119
130
|
/** @hidden */
|
|
120
131
|
getCombinedTokenWidth(): number;
|
|
121
132
|
/** @hidden */
|
|
133
|
+
private _getTokensAreaWidthWithoutTokens;
|
|
134
|
+
/** @hidden */
|
|
122
135
|
moreClicked(): void;
|
|
123
136
|
/** Removes all selected tokens */
|
|
124
137
|
removeSelectedTokens(): void;
|
|
125
138
|
/** @hidden */
|
|
126
139
|
private _handleArrowLeft;
|
|
127
140
|
/** @hidden */
|
|
141
|
+
_showAllTokens(): void;
|
|
142
|
+
/** @hidden */
|
|
143
|
+
_hideTokens(): void;
|
|
144
|
+
/** @hidden */
|
|
145
|
+
private _waitForFocusToDisappear;
|
|
146
|
+
/** @hidden */
|
|
128
147
|
private _handleArrowRight;
|
|
129
148
|
/** @hidden */
|
|
130
149
|
private _collapseTokens;
|
|
@@ -168,6 +187,8 @@ export declare class TokenizerComponent implements AfterViewInit, AfterContentIn
|
|
|
168
187
|
private _listenElementEvents;
|
|
169
188
|
/** @hidden Listen window resize and distribute cards on column change */
|
|
170
189
|
private _listenOnResize;
|
|
171
|
-
|
|
190
|
+
/** @hidden */
|
|
191
|
+
private _checkMoreElementVisibility;
|
|
192
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TokenizerComponent, [null, null, null, { optional: true; }, null, null]>;
|
|
172
193
|
static ɵcmp: i0.ɵɵComponentDeclaration<TokenizerComponent, "fd-tokenizer", never, { "class": "class"; "disableKeyboardDeletion": "disableKeyboardDeletion"; "compactCollapse": "compactCollapse"; "tokenizerFocusable": "tokenizerFocusable"; "inputValue": "inputValue"; "glyph": "glyph"; "moreTerm": "moreTerm"; "open": "open"; }, { "moreClickedEvent": "moreClickedEvent"; }, ["input", "tokenList"], ["fd-token", "[fd-form-control]"], false, never>;
|
|
173
194
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export const FD_LIST_COMPONENT = new InjectionToken('ListComponent');
|
|
3
|
-
export const FD_LIST_UNREAD_INDICATOR = new InjectionToken('ListUnreadIndicator');
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC1jb21wb25lbnQudG9rZW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvcmUvc3JjL2xpYi9saXN0L2xpc3QtY29tcG9uZW50LnRva2VuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHL0MsTUFBTSxDQUFDLE1BQU0saUJBQWlCLEdBQUcsSUFBSSxjQUFjLENBQXlCLGVBQWUsQ0FBQyxDQUFDO0FBRTdGLE1BQU0sQ0FBQyxNQUFNLHdCQUF3QixHQUFHLElBQUksY0FBYyxDQUFDLHFCQUFxQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3Rpb25Ub2tlbiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgTGlzdENvbXBvbmVudEludGVyZmFjZSB9IGZyb20gJy4vbGlzdC1jb21wb25lbnQuaW50ZXJmYWNlJztcblxuZXhwb3J0IGNvbnN0IEZEX0xJU1RfQ09NUE9ORU5UID0gbmV3IEluamVjdGlvblRva2VuPExpc3RDb21wb25lbnRJbnRlcmZhY2U+KCdMaXN0Q29tcG9uZW50Jyk7XG5cbmV4cG9ydCBjb25zdCBGRF9MSVNUX1VOUkVBRF9JTkRJQ0FUT1IgPSBuZXcgSW5qZWN0aW9uVG9rZW4oJ0xpc3RVbnJlYWRJbmRpY2F0b3InKTtcbiJdfQ==
|
|
Binary file
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ListComponentInterface } from './list-component.interface';
|
|
3
|
-
export declare const FD_LIST_COMPONENT: InjectionToken<ListComponentInterface>;
|
|
4
|
-
export declare const FD_LIST_UNREAD_INDICATOR: InjectionToken<unknown>;
|