@fundamental-ngx/cdk 0.43.6 → 0.43.8
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/esm2020/utils/directives/auto-complete/auto-complete.directive.mjs +8 -3
- package/esm2020/utils/drag-and-drop/dnd-list/dnd-list.directive.mjs +22 -17
- package/fesm2015/fundamental-ngx-cdk-utils.mjs +26 -17
- package/fesm2015/fundamental-ngx-cdk-utils.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-cdk-utils.mjs +27 -17
- package/fesm2020/fundamental-ngx-cdk-utils.mjs.map +1 -1
- package/fundamental-ngx-cdk-v0.43.8.tgz +0 -0
- package/package.json +2 -2
- package/utils/directives/auto-complete/auto-complete.directive.d.ts +3 -1
- package/utils/drag-and-drop/dnd-list/dnd-list.directive.d.ts +7 -5
- package/fundamental-ngx-cdk-v0.43.6.tgz +0 -0
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fundamental-ngx/cdk",
|
|
3
|
-
"version": "0.43.
|
|
3
|
+
"version": "0.43.8",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"description": "Fundamental Library for Angular - CDK",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"rxjs": "^7.8.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@fundamental-ngx/i18n": "0.43.
|
|
26
|
+
"@fundamental-ngx/i18n": "0.43.8",
|
|
27
27
|
"@fundamental-styles/cx": "0.28.3",
|
|
28
28
|
"@sap-theming/theming-base-content": "^11.6.0",
|
|
29
29
|
"compare-versions": "^5.0.0",
|
|
@@ -20,6 +20,8 @@ export declare class AutoCompleteDirective {
|
|
|
20
20
|
inputText: string;
|
|
21
21
|
/** Whether the auto complete directive should be enabled */
|
|
22
22
|
enable: boolean;
|
|
23
|
+
/** Matcher function for testing the str for a search term */
|
|
24
|
+
matcher: (str: string, searchTerm: string) => boolean;
|
|
23
25
|
/** Display function. Accepts an object of the same type as the
|
|
24
26
|
* items passed to dropdownValues as argument, and outputs a string.
|
|
25
27
|
* An arrow function can be used to access the *this* keyword in the calling component.
|
|
@@ -54,5 +56,5 @@ export declare class AutoCompleteDirective {
|
|
|
54
56
|
/** @hidden */
|
|
55
57
|
private _moveIndicatorToLastCharacter;
|
|
56
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutoCompleteDirective, never>;
|
|
57
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AutoCompleteDirective, "[fdkAutoComplete], [fdAutoComplete], [fd-auto-complete]", never, { "options": "options"; "inputText": "inputText"; "enable": "enable"; "displayFn": "displayFn"; }, { "onComplete": "onComplete"; }, never, never, true, never>;
|
|
59
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AutoCompleteDirective, "[fdkAutoComplete], [fdAutoComplete], [fd-auto-complete]", never, { "options": "options"; "inputText": "inputText"; "enable": "enable"; "matcher": "matcher"; "displayFn": "displayFn"; }, { "onComplete": "onComplete"; }, never, never, true, never>;
|
|
58
60
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AfterContentInit, EventEmitter, OnDestroy, QueryList } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { DndItem, ElementPosition, FdDndDropType, FdDropEvent } from '../dnd.interfaces';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export type DropPredicate<T> = (dragItem: T, dropItem: T, event: FdDropEvent<T>) => boolean | Promise<boolean> | Observable<boolean>;
|
|
6
6
|
export type DragoverPredicate<T> = (dragItem: T, dragOverItem: T, dragItemIndex: number, dragOverItemIndex: number) => boolean;
|
|
@@ -61,6 +61,8 @@ export declare class DndListDirective<T> implements AfterContentInit, OnDestroy
|
|
|
61
61
|
/** @hidden */
|
|
62
62
|
dndItems: QueryList<DndItem<T>>;
|
|
63
63
|
/** @hidden */
|
|
64
|
+
private readonly _initialClass;
|
|
65
|
+
/** @hidden */
|
|
64
66
|
private _elementsCoordinates;
|
|
65
67
|
/** @hidden */
|
|
66
68
|
private _closestItemIndex;
|
|
@@ -75,8 +77,6 @@ export declare class DndListDirective<T> implements AfterContentInit, OnDestroy
|
|
|
75
77
|
/** @hidden */
|
|
76
78
|
private _draggable;
|
|
77
79
|
/** @hidden */
|
|
78
|
-
private readonly _initialClass;
|
|
79
|
-
/** @hidden */
|
|
80
80
|
private _detectedDropMode;
|
|
81
81
|
/** @hidden */
|
|
82
82
|
private _linesRemoved;
|
|
@@ -90,6 +90,10 @@ export declare class DndListDirective<T> implements AfterContentInit, OnDestroy
|
|
|
90
90
|
ngAfterContentInit(): void;
|
|
91
91
|
/** @hidden */
|
|
92
92
|
ngOnDestroy(): void;
|
|
93
|
+
/**
|
|
94
|
+
* Refreshes the indexes of the items.
|
|
95
|
+
*/
|
|
96
|
+
refreshQueryList(): void;
|
|
93
97
|
/** Method called when the item is being moved by 1 px */
|
|
94
98
|
onMove(mousePosition: ElementPosition, draggedItemIndex: number): void;
|
|
95
99
|
/** Method called when an element is started to be dragged */
|
|
@@ -108,8 +112,6 @@ export declare class DndListDirective<T> implements AfterContentInit, OnDestroy
|
|
|
108
112
|
private _createLine;
|
|
109
113
|
/** @hidden */
|
|
110
114
|
private _createReplaceIndicator;
|
|
111
|
-
/** @hidden */
|
|
112
|
-
private _refreshQueryList;
|
|
113
115
|
/**
|
|
114
116
|
* @hidden
|
|
115
117
|
* Return information if an element is placed before the dragged element
|
|
Binary file
|