@fundamental-ngx/platform 0.43.21 → 0.43.22
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/button/button.component.mjs +3 -3
- package/esm2020/form/combobox/combobox/combobox.component.mjs +12 -3
- package/esm2020/value-help-dialog/components/select-tab/select-tab.component.mjs +20 -5
- package/esm2020/value-help-dialog/components/value-help-dialog-filter/value-help-dialog-filter.component.mjs +7 -3
- package/esm2020/value-help-dialog/directives/value-help-column-def.directive.mjs +24 -0
- package/esm2020/value-help-dialog/directives/value-help-filter-def.directive.mjs +22 -0
- package/esm2020/value-help-dialog/index.mjs +3 -1
- package/esm2020/value-help-dialog/models/vhd-component.model.mjs +3 -0
- package/esm2020/value-help-dialog/models/vhd-filter.model.mjs +1 -1
- package/esm2020/value-help-dialog/value-help-dialog/value-help-dialog.component.mjs +23 -6
- package/esm2020/value-help-dialog/value-help-dialog.module.mjs +15 -5
- package/fesm2015/fundamental-ngx-platform-button.mjs +2 -2
- package/fesm2015/fundamental-ngx-platform-button.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-form.mjs +11 -2
- package/fesm2015/fundamental-ngx-platform-form.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-platform-value-help-dialog.mjs +141 -56
- package/fesm2015/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-button.mjs +2 -2
- package/fesm2020/fundamental-ngx-platform-button.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-form.mjs +11 -2
- package/fesm2020/fundamental-ngx-platform-form.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-platform-value-help-dialog.mjs +139 -56
- package/fesm2020/fundamental-ngx-platform-value-help-dialog.mjs.map +1 -1
- package/fundamental-ngx-platform-v0.43.22.tgz +0 -0
- package/package.json +4 -4
- package/schematics/ng-add/index.js +1 -1
- package/value-help-dialog/components/select-tab/select-tab.component.d.ts +11 -3
- package/value-help-dialog/components/value-help-dialog-filter/value-help-dialog-filter.component.d.ts +5 -1
- package/value-help-dialog/directives/value-help-column-def.directive.d.ts +17 -0
- package/value-help-dialog/directives/value-help-filter-def.directive.d.ts +15 -0
- package/value-help-dialog/index.d.ts +2 -0
- package/value-help-dialog/models/vhd-component.model.d.ts +5 -0
- package/value-help-dialog/models/vhd-filter.model.d.ts +3 -0
- package/value-help-dialog/value-help-dialog/value-help-dialog.component.d.ts +6 -2
- package/value-help-dialog/value-help-dialog.module.d.ts +3 -1
- package/fundamental-ngx-platform-v0.43.21.tgz +0 -0
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fundamental-ngx/platform",
|
|
3
|
-
"version": "0.43.
|
|
3
|
+
"version": "0.43.22",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"description": "Fundamental Library for Angular - platform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"node": ">= 10"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@fundamental-ngx/core": "0.43.
|
|
16
|
+
"@fundamental-ngx/core": "0.43.22"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@fundamental-ngx/cdk": "0.43.
|
|
20
|
-
"@fundamental-ngx/i18n": "0.43.
|
|
19
|
+
"@fundamental-ngx/cdk": "0.43.22",
|
|
20
|
+
"@fundamental-ngx/i18n": "0.43.22",
|
|
21
21
|
"fast-deep-equal": "3.1.3",
|
|
22
22
|
"focus-trap": "^7.1.0",
|
|
23
23
|
"lodash-es": "^4.17.0",
|
|
@@ -32,7 +32,7 @@ function callCoreSchematic(options) {
|
|
|
32
32
|
(0, dependencies_1.addPackageJsonDependency)(tree, {
|
|
33
33
|
type: dependencies_1.NodeDependencyType.Default,
|
|
34
34
|
// Will be replaced with the real version during sync-version scipt run
|
|
35
|
-
version: `0.43.
|
|
35
|
+
version: `0.43.22`,
|
|
36
36
|
name: '@fundamental-ngx/core'
|
|
37
37
|
});
|
|
38
38
|
const installTaskId = context.addTask(new tasks_1.NodePackageInstallTask({
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { InfiniteScrollDirective } from '@fundamental-ngx/core/infinite-scroll';
|
|
3
|
-
import { VhdFilter, VdhTableSelection } from '../../models';
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
4
2
|
import { VhdBaseTab } from '../base-tab/vhd-base-tab.component';
|
|
3
|
+
import { VhdFilter } from '../../models/vhd-filter.model';
|
|
4
|
+
import { VdhTableSelection } from '../../models/vhd-table-selection.type';
|
|
5
|
+
import { InfiniteScrollDirective } from '@fundamental-ngx/core/infinite-scroll';
|
|
6
|
+
import { ValueHelpColumnDefDirective } from '../../directives/value-help-column-def.directive';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
export declare class SelectTabComponent<T> extends VhdBaseTab implements OnChanges, AfterViewInit {
|
|
7
9
|
/** @hidden */
|
|
@@ -63,6 +65,12 @@ export declare class SelectTabComponent<T> extends VhdBaseTab implements OnChang
|
|
|
63
65
|
/** Selection type getters */
|
|
64
66
|
get isMultiSelection(): boolean;
|
|
65
67
|
/** @hidden */
|
|
68
|
+
_columnDefMap: Map<string, ValueHelpColumnDefDirective<any>>;
|
|
69
|
+
/** @hidden */
|
|
70
|
+
private readonly _vhd;
|
|
71
|
+
/** @hidden */
|
|
72
|
+
private readonly _destroy$;
|
|
73
|
+
/** @hidden */
|
|
66
74
|
ngAfterViewInit(): void;
|
|
67
75
|
/** @hidden */
|
|
68
76
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Nullable } from '@fundamental-ngx/cdk/utils';
|
|
2
|
+
import { ValueHelpFilterDefDirective } from '../../directives/value-help-filter-def.directive';
|
|
1
3
|
import { VhdFilter } from '../../models/vhd-filter.model';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
5
|
export declare class VhdFilterComponent implements VhdFilter {
|
|
@@ -16,6 +18,8 @@ export declare class VhdFilterComponent implements VhdFilter {
|
|
|
16
18
|
include: boolean;
|
|
17
19
|
/** Allow to use filter for excluding in `define conditions tab` */
|
|
18
20
|
exclude: boolean;
|
|
21
|
+
/** @hidden */
|
|
22
|
+
filterDef: Nullable<ValueHelpFilterDefDirective>;
|
|
19
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<VhdFilterComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<VhdFilterComponent, "fdp-value-help-dialog-filter", never, { "key": "key"; "main": "main"; "label": "label"; "value": "value"; "advanced": "advanced"; "include": "include"; "exclude": "exclude"; }, {},
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VhdFilterComponent, "fdp-value-help-dialog-filter", never, { "key": "key"; "main": "main"; "label": "label"; "value": "value"; "advanced": "advanced"; "include": "include"; "exclude": "exclude"; }, {}, ["filterDef"], never, false, never>;
|
|
21
25
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface ValueHelpColumnDefContext<T> {
|
|
4
|
+
$implicit: T;
|
|
5
|
+
key: string;
|
|
6
|
+
value: any;
|
|
7
|
+
}
|
|
8
|
+
export declare class ValueHelpColumnDefDirective<T = any> {
|
|
9
|
+
/** Type support. */
|
|
10
|
+
as: T;
|
|
11
|
+
/** Column key to render custom template. */
|
|
12
|
+
column: string;
|
|
13
|
+
/** Template reference */
|
|
14
|
+
readonly templateRef: TemplateRef<ValueHelpColumnDefContext<T>>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValueHelpColumnDefDirective<any>, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ValueHelpColumnDefDirective<any>, "[fdpValueHelpColumnDef]", never, { "as": "fdpValueHelpColumnDefAs"; "column": "fdpValueHelpColumnDefColumn"; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { VhdFilter } from '../models/vhd-filter.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
interface ValueHelpFilterDefContext {
|
|
5
|
+
$implicit: VhdFilter;
|
|
6
|
+
}
|
|
7
|
+
export declare class ValueHelpFilterDefDirective {
|
|
8
|
+
/** Template reference */
|
|
9
|
+
readonly templateRef: TemplateRef<any>;
|
|
10
|
+
/** @hidden */
|
|
11
|
+
static ngTemplateContextGuard(dir: ValueHelpFilterDefDirective, ctx: unknown): ctx is ValueHelpFilterDefContext;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValueHelpFilterDefDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ValueHelpFilterDefDirective, "[fdpValueHelpFilterDef]", never, {}, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -7,5 +7,7 @@ export * from './components/value-help-dialog-filter/value-help-dialog-filter.co
|
|
|
7
7
|
export * from './components/value-help-dialog-search/value-help-dialog-search.component';
|
|
8
8
|
export * from './constans';
|
|
9
9
|
export * from './directives/condition-count-message.directive';
|
|
10
|
+
export * from './directives/value-help-column-def.directive';
|
|
11
|
+
export * from './directives/value-help-filter-def.directive';
|
|
10
12
|
export * from './models';
|
|
11
13
|
export * from './value-help-dialog/value-help-dialog.component';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Nullable } from '@fundamental-ngx/cdk/utils';
|
|
2
|
+
import { ValueHelpFilterDefDirective } from '../directives/value-help-filter-def.directive';
|
|
1
3
|
export interface VhdFilter {
|
|
2
4
|
key: string;
|
|
3
5
|
label: string;
|
|
@@ -6,4 +8,5 @@ export interface VhdFilter {
|
|
|
6
8
|
advanced?: boolean;
|
|
7
9
|
include?: boolean;
|
|
8
10
|
exclude?: boolean;
|
|
11
|
+
filterDef: Nullable<ValueHelpFilterDefDirective>;
|
|
9
12
|
}
|
|
@@ -2,10 +2,12 @@ import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, Quer
|
|
|
2
2
|
import { DialogConfig, DialogRef, DialogService } from '@fundamental-ngx/core/dialog';
|
|
3
3
|
import { RtlService } from '@fundamental-ngx/cdk/utils';
|
|
4
4
|
import { ArrayValueHelpDialogDataSource, BaseEntity, ObservableValueHelpDialogDataSource, ValueHelpDialogDataSource, VdhTableSelection, VhdDefineExcludeStrategy, VhdDefineIncludeStrategy, VhdFilter, VhdTab, VhdValue, VhdValueChangeEvent } from '../models';
|
|
5
|
+
import { VhdComponent } from '../models/vhd-component.model';
|
|
5
6
|
import { VhdFilterComponent } from '../components/value-help-dialog-filter/value-help-dialog-filter.component';
|
|
7
|
+
import { ValueHelpColumnDefDirective } from '../directives/value-help-column-def.directive';
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
7
9
|
export type FdpValueHelpDialogDataSource<T> = ValueHelpDialogDataSource<T> | ArrayValueHelpDialogDataSource<T> | ObservableValueHelpDialogDataSource<T>;
|
|
8
|
-
export declare class PlatformValueHelpDialogComponent<T = any> implements OnChanges, OnDestroy {
|
|
10
|
+
export declare class PlatformValueHelpDialogComponent<T = any> extends VhdComponent implements OnChanges, OnDestroy {
|
|
9
11
|
readonly elementRef: ElementRef;
|
|
10
12
|
private readonly _changeDetectorRef;
|
|
11
13
|
private readonly _dialogService;
|
|
@@ -83,6 +85,8 @@ export declare class PlatformValueHelpDialogComponent<T = any> implements OnChan
|
|
|
83
85
|
onDataReceived: EventEmitter<void>;
|
|
84
86
|
/** @hidden Fitlers for search table and defince conditions */
|
|
85
87
|
filters: QueryList<VhdFilterComponent>;
|
|
88
|
+
/** Column definitions. */
|
|
89
|
+
columnDef: QueryList<ValueHelpColumnDefDirective>;
|
|
86
90
|
/** @hidden Internal container for dialog */
|
|
87
91
|
dialogContainer: TemplateRef<any>;
|
|
88
92
|
/** @hidden */
|
|
@@ -230,5 +234,5 @@ export declare class PlatformValueHelpDialogComponent<T = any> implements OnChan
|
|
|
230
234
|
/** @hidden */
|
|
231
235
|
private isValidOptions;
|
|
232
236
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlatformValueHelpDialogComponent<any>, [null, null, null, { optional: true; }]>;
|
|
233
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PlatformValueHelpDialogComponent<any>, "fdp-value-help-dialog", never, { "id": "id"; "value": "value"; "dialogTitle": "dialogTitle"; "initialTab": "initialTab"; "tabs": "tabs"; "isOpenAdvanced": "isOpenAdvanced"; "dataSource": "dataSource"; "dialogConfig": "dialogConfig"; "uniqueKey": "uniqueKey"; "headerId": "headerId"; "tokenViewField": "tokenViewField"; "tokenizerFn": "tokenizerFn"; "mobile": "mobile"; "formatToken": "formatToken"; "conditionDisplayFn": "conditionDisplayFn"; "selectTabTitle": "selectTabTitle"; "searchSelection": "searchSelection"; "searchTableEmptyMessage": "searchTableEmptyMessage"; "searchTablePageSize": "searchTablePageSize"; "searchTableMobileHeaders": "searchTableMobileHeaders"; "maxShownInitialFilters": "maxShownInitialFilters"; "loading": "loading"; "defineTabTitle": "defineTabTitle"; "defineStrategyLabels": "defineStrategyLabels"; }, { "valueChange": "valueChange"; "onDataRequested": "onDataRequested"; "onDataReceived": "onDataReceived"; }, ["filters"], never, false, never>;
|
|
237
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PlatformValueHelpDialogComponent<any>, "fdp-value-help-dialog", never, { "id": "id"; "value": "value"; "dialogTitle": "dialogTitle"; "initialTab": "initialTab"; "tabs": "tabs"; "isOpenAdvanced": "isOpenAdvanced"; "dataSource": "dataSource"; "dialogConfig": "dialogConfig"; "uniqueKey": "uniqueKey"; "headerId": "headerId"; "tokenViewField": "tokenViewField"; "tokenizerFn": "tokenizerFn"; "mobile": "mobile"; "formatToken": "formatToken"; "conditionDisplayFn": "conditionDisplayFn"; "selectTabTitle": "selectTabTitle"; "searchSelection": "searchSelection"; "searchTableEmptyMessage": "searchTableEmptyMessage"; "searchTablePageSize": "searchTablePageSize"; "searchTableMobileHeaders": "searchTableMobileHeaders"; "maxShownInitialFilters": "maxShownInitialFilters"; "loading": "loading"; "defineTabTitle": "defineTabTitle"; "defineStrategyLabels": "defineStrategyLabels"; }, { "valueChange": "valueChange"; "onDataRequested": "onDataRequested"; "onDataReceived": "onDataReceived"; }, ["filters", "columnDef"], never, false, never>;
|
|
234
238
|
}
|
|
@@ -34,8 +34,10 @@ import * as i32 from "@fundamental-ngx/core/content-density";
|
|
|
34
34
|
import * as i33 from "@fundamental-ngx/platform/shared";
|
|
35
35
|
import * as i34 from "@fundamental-ngx/core/scrollbar";
|
|
36
36
|
import * as i35 from "@fundamental-ngx/core/skeleton";
|
|
37
|
+
import * as i36 from "./directives/value-help-column-def.directive";
|
|
38
|
+
import * as i37 from "./directives/value-help-filter-def.directive";
|
|
37
39
|
export declare class PlatformValueHelpDialogModule {
|
|
38
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlatformValueHelpDialogModule, never>;
|
|
39
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PlatformValueHelpDialogModule, [typeof i1.PlatformValueHelpDialogComponent, typeof i2.VhdFilterComponent, typeof i3.VhdSearchComponent, typeof i4.VhdBaseTab, typeof i5.SelectTabComponent, typeof i6.DefineTabComponent, typeof i7.ConditionCountMessageDirective], [typeof i8.CommonModule, typeof i9.FormsModule, typeof i10.BarModule, typeof i11.DialogModule, typeof i12.TabsModule, typeof i13.ButtonModule, typeof i14.TokenModule, typeof i15.FormModule, typeof i16.BusyIndicatorModule, typeof i17.I18nModule, typeof i18.LayoutGridModule, typeof i19.ToolbarModule, typeof i20.TableModule, typeof i21.CheckboxModule, typeof i22.PipeModule, typeof i23.IconModule, typeof i24.ListModule, typeof i10.BarModule, typeof i25.LinkModule, typeof i26.SelectModule, typeof i27.PanelModule, typeof i28.InputGroupModule, typeof i29.PopoverModule, typeof i30.InfiniteScrollModule, typeof i31.PlatformSearchFieldModule, typeof i32.ContentDensityModule, typeof i33.PlatformContentDensityDeprecationsModule, typeof i34.ScrollbarModule, typeof i35.SkeletonModule, typeof i22.RepeatModule], [typeof i1.PlatformValueHelpDialogComponent, typeof i2.VhdFilterComponent, typeof i3.VhdSearchComponent, typeof i32.ContentDensityModule, typeof i33.PlatformContentDensityDeprecationsModule]>;
|
|
41
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PlatformValueHelpDialogModule, [typeof i1.PlatformValueHelpDialogComponent, typeof i2.VhdFilterComponent, typeof i3.VhdSearchComponent, typeof i4.VhdBaseTab, typeof i5.SelectTabComponent, typeof i6.DefineTabComponent, typeof i7.ConditionCountMessageDirective], [typeof i8.CommonModule, typeof i9.FormsModule, typeof i10.BarModule, typeof i11.DialogModule, typeof i12.TabsModule, typeof i13.ButtonModule, typeof i14.TokenModule, typeof i15.FormModule, typeof i16.BusyIndicatorModule, typeof i17.I18nModule, typeof i18.LayoutGridModule, typeof i19.ToolbarModule, typeof i20.TableModule, typeof i21.CheckboxModule, typeof i22.PipeModule, typeof i23.IconModule, typeof i24.ListModule, typeof i10.BarModule, typeof i25.LinkModule, typeof i26.SelectModule, typeof i27.PanelModule, typeof i28.InputGroupModule, typeof i29.PopoverModule, typeof i30.InfiniteScrollModule, typeof i31.PlatformSearchFieldModule, typeof i32.ContentDensityModule, typeof i33.PlatformContentDensityDeprecationsModule, typeof i34.ScrollbarModule, typeof i35.SkeletonModule, typeof i22.RepeatModule, typeof i36.ValueHelpColumnDefDirective, typeof i37.ValueHelpFilterDefDirective], [typeof i1.PlatformValueHelpDialogComponent, typeof i2.VhdFilterComponent, typeof i3.VhdSearchComponent, typeof i32.ContentDensityModule, typeof i33.PlatformContentDensityDeprecationsModule, typeof i36.ValueHelpColumnDefDirective, typeof i37.ValueHelpFilterDefDirective]>;
|
|
40
42
|
static ɵinj: i0.ɵɵInjectorDeclaration<PlatformValueHelpDialogModule>;
|
|
41
43
|
}
|
|
Binary file
|