@dereekb/dbx-web 10.1.13 → 10.1.15
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/calendar/package.json +1 -1
- package/esm2022/lib/layout/list/index.mjs +2 -1
- package/esm2022/lib/layout/list/list.layout.module.mjs +5 -1
- package/esm2022/lib/layout/list/list.view.meta.icon.component.mjs +45 -0
- package/esm2022/lib/layout/list/list.view.value.component.mjs +8 -2
- package/esm2022/lib/layout/list/list.view.value.mjs +17 -4
- package/fesm2022/dereekb-dbx-web.mjs +68 -5
- package/fesm2022/dereekb-dbx-web.mjs.map +1 -1
- package/lib/layout/list/index.d.ts +1 -0
- package/lib/layout/list/list.layout.module.d.ts +16 -15
- package/lib/layout/list/list.view.meta.icon.component.d.ts +16 -0
- package/lib/layout/list/list.view.value.d.ts +8 -2
- package/lib/layout/list/list.view.value.group.d.ts +1 -1
- package/mapbox/package.json +1 -1
- package/package.json +1 -1
- package/table/package.json +1 -1
|
@@ -6,6 +6,7 @@ export * from './list.track';
|
|
|
6
6
|
export * from './list.grid.view.directive';
|
|
7
7
|
export * from './list.grid.view.component';
|
|
8
8
|
export * from './list.view.directive';
|
|
9
|
+
export * from './list.view.meta.icon.component';
|
|
9
10
|
export * from './list.view.value.group';
|
|
10
11
|
export * from './list.view.value.group.title';
|
|
11
12
|
export * from './list.view.value.group.title.directive';
|
|
@@ -3,22 +3,23 @@ import * as i1 from "./list.component";
|
|
|
3
3
|
import * as i2 from "./list.content.empty.component";
|
|
4
4
|
import * as i3 from "./list.view.value.component";
|
|
5
5
|
import * as i4 from "./list.grid.view.component";
|
|
6
|
-
import * as i5 from "./list.view.
|
|
7
|
-
import * as i6 from "./list.view.value.
|
|
8
|
-
import * as i7 from "./list.view.value.
|
|
9
|
-
import * as i8 from "./list.view.value.modifier.
|
|
10
|
-
import * as i9 from "./list.view.value.modifier.
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "@angular/
|
|
13
|
-
import * as i12 from "@
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "../../
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "@
|
|
19
|
-
import * as i18 from "@angular/material/
|
|
6
|
+
import * as i5 from "./list.view.meta.icon.component";
|
|
7
|
+
import * as i6 from "./list.view.value.group.title.directive";
|
|
8
|
+
import * as i7 from "./list.view.value.selection.component";
|
|
9
|
+
import * as i8 from "./list.view.value.modifier.directive";
|
|
10
|
+
import * as i9 from "./list.view.value.modifier.ripple.directive";
|
|
11
|
+
import * as i10 from "./list.view.value.modifier.selection.directive";
|
|
12
|
+
import * as i11 from "@angular/common";
|
|
13
|
+
import * as i12 from "@angular/material/core";
|
|
14
|
+
import * as i13 from "@ngbracket/ngx-layout";
|
|
15
|
+
import * as i14 from "../../loading/loading.module";
|
|
16
|
+
import * as i15 from "../../router/layout/anchor/anchor.module";
|
|
17
|
+
import * as i16 from "ngx-infinite-scroll";
|
|
18
|
+
import * as i17 from "@dereekb/dbx-core";
|
|
19
|
+
import * as i18 from "@angular/material/list";
|
|
20
|
+
import * as i19 from "@angular/material/icon";
|
|
20
21
|
export declare class DbxListLayoutModule {
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxListLayoutModule, never>;
|
|
22
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxListLayoutModule, [typeof i1.DbxListComponent, typeof i2.DbxListEmptyContentComponent, typeof i3.DbxValueListViewComponent, typeof i3.DbxValueListViewContentComponent, typeof i3.DbxValueListViewContentGroupComponent, typeof i4.DbxValueListGridSizeDirective, typeof i4.DbxValueListGridViewComponent, typeof i4.DbxValueListGridViewContentComponent, typeof i5.DbxListTitleGroupDirective, typeof
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxListLayoutModule, [typeof i1.DbxListComponent, typeof i2.DbxListEmptyContentComponent, typeof i3.DbxValueListViewComponent, typeof i3.DbxValueListViewContentComponent, typeof i3.DbxValueListViewContentGroupComponent, typeof i4.DbxValueListGridSizeDirective, typeof i4.DbxValueListGridViewComponent, typeof i4.DbxValueListGridViewContentComponent, typeof i5.DbxListViewMetaIconComponent, typeof i6.DbxListTitleGroupDirective, typeof i6.DbxListTitleGroupHeaderComponent, typeof i7.DbxSelectionValueListViewComponent, typeof i7.DbxSelectionValueListViewContentComponent, typeof i8.DbxValueListItemModifierDirective, typeof i9.DbxListItemDisableRippleModifierDirective, typeof i10.DbxListItemIsSelectedModifierDirective, typeof i1.DbxListInternalContentDirective], [typeof i11.CommonModule, typeof i12.MatRippleModule, typeof i13.FlexLayoutModule, typeof i14.DbxLoadingModule, typeof i15.DbxRouterAnchorModule, typeof i16.InfiniteScrollModule, typeof i17.DbxInjectionComponentModule, typeof i18.MatListModule, typeof i19.MatIconModule], [typeof i1.DbxListComponent, typeof i2.DbxListEmptyContentComponent, typeof i3.DbxValueListViewComponent, typeof i3.DbxValueListViewContentComponent, typeof i3.DbxValueListViewContentGroupComponent, typeof i4.DbxValueListGridSizeDirective, typeof i4.DbxValueListGridViewComponent, typeof i4.DbxValueListGridViewContentComponent, typeof i5.DbxListViewMetaIconComponent, typeof i6.DbxListTitleGroupDirective, typeof i6.DbxListTitleGroupHeaderComponent, typeof i7.DbxSelectionValueListViewComponent, typeof i7.DbxSelectionValueListViewContentComponent, typeof i8.DbxValueListItemModifierDirective, typeof i9.DbxListItemDisableRippleModifierDirective, typeof i10.DbxListItemIsSelectedModifierDirective]>;
|
|
23
24
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxListLayoutModule>;
|
|
24
25
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { DbxValueListItem } from './list.view.value';
|
|
3
|
+
import { Maybe } from '@dereekb/util';
|
|
4
|
+
import { DbxInjectionComponentConfig } from '@dereekb/dbx-core';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare const DBX_LIST_VIEW_DEFAULT_META_ICON: InjectionToken<string>;
|
|
7
|
+
export interface DbxListViewMetaIconConfig {
|
|
8
|
+
readonly icon?: Maybe<string>;
|
|
9
|
+
}
|
|
10
|
+
export declare class DbxListViewMetaIconComponent {
|
|
11
|
+
readonly icon: Maybe<string>;
|
|
12
|
+
constructor(item: DbxValueListItem<unknown, DbxListViewMetaIconConfig>, defaultIcon: Maybe<string>);
|
|
13
|
+
static metaConfig(defaultIcon?: Maybe<string>): DbxInjectionComponentConfig<DbxListViewMetaIconConfig>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxListViewMetaIconComponent, [{ optional: true; }, { optional: true; }]>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxListViewMetaIconComponent, "dbx-list-view-meta-icon", never, {}, {}, never, never, false, never>;
|
|
16
|
+
}
|
|
@@ -3,8 +3,12 @@ import { ClickableAnchor, DbxInjectionComponentConfig } from '@dereekb/dbx-core'
|
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { DecisionFunction, Maybe } from '@dereekb/util';
|
|
5
5
|
export declare const DBX_VALUE_LIST_VIEW_ITEM: InjectionToken<unknown>;
|
|
6
|
-
export interface DbxValueListItem<T> {
|
|
6
|
+
export interface DbxValueListItem<T, M = unknown> {
|
|
7
7
|
itemValue: T;
|
|
8
|
+
/**
|
|
9
|
+
* Arbitrary meta details available to the meta component.
|
|
10
|
+
*/
|
|
11
|
+
meta?: M;
|
|
8
12
|
icon?: string;
|
|
9
13
|
disabled?: boolean;
|
|
10
14
|
rippleDisabled?: boolean;
|
|
@@ -24,10 +28,12 @@ export declare function dbxValueListItemDecisionFunction<T>(decisionFunction: De
|
|
|
24
28
|
export type DbxValueAsListItem<T> = T & Omit<DbxValueListItem<DbxValueListItem<T>>, 'itemValue'>;
|
|
25
29
|
export interface AbstractDbxValueListViewConfig<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = unknown> extends DbxInjectionComponentConfig<V> {
|
|
26
30
|
mapValuesToItemValues?(values: T[]): Observable<I[]>;
|
|
31
|
+
metaConfig?: DbxInjectionComponentConfig<any>;
|
|
27
32
|
}
|
|
28
|
-
export declare const DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES: <T, I extends DbxValueListItem<T>>(itemValues: T[]) => Observable<I[]>;
|
|
33
|
+
export declare const DEFAULT_DBX_VALUE_LIST_CONFIG_MAP_VALUES: <T, I extends DbxValueListItem<T, unknown>>(itemValues: T[]) => Observable<I[]>;
|
|
29
34
|
export type DbxValueListItemConfig<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = unknown> = I & {
|
|
30
35
|
config: DbxInjectionComponentConfig<V>;
|
|
36
|
+
metaConfig?: DbxInjectionComponentConfig<any>;
|
|
31
37
|
};
|
|
32
38
|
export declare function mapValuesToValuesListItemConfigObs<T, I extends DbxValueListItem<T>, V = unknown>(listViewConfig: AbstractDbxValueListViewConfig<T, I, V>, itemValues: T[]): Observable<DbxValueListItemConfig<T, I, V>[]>;
|
|
33
39
|
/**
|
|
@@ -30,7 +30,7 @@ export interface DbxValueListItemGroup<G, T, I extends DbxValueListItem<T>, H =
|
|
|
30
30
|
* Function that generates an array of DbxValueListItemGroup values from a list of items.
|
|
31
31
|
*/
|
|
32
32
|
export type DbxValueListViewGroupValuesFunction<G, T, I extends DbxValueListItem<T>, H = unknown, F = unknown> = (items: DbxValueListItemConfig<T, I>[]) => ObservableOrValue<DbxValueListItemGroup<G, T, I, H, F>[]>;
|
|
33
|
-
export declare const defaultDbxValueListViewGroupValuesFunction: <T, I extends DbxValueListItem<T>>(items: DbxValueListItemConfig<T, I>[]) => DbxValueListItemGroup<unknown, T, I, unknown, unknown>[];
|
|
33
|
+
export declare const defaultDbxValueListViewGroupValuesFunction: <T, I extends DbxValueListItem<T, unknown>>(items: DbxValueListItemConfig<T, I>[]) => DbxValueListItemGroup<unknown, T, I, unknown, unknown>[];
|
|
34
34
|
/**
|
|
35
35
|
* Interface for a view that renders the items of a DbxList.
|
|
36
36
|
*/
|
package/mapbox/package.json
CHANGED
package/package.json
CHANGED