@dereekb/dbx-web 8.5.3 → 8.7.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/esm2020/lib/layout/list/index.mjs +3 -1
- package/esm2020/lib/layout/list/list.content.empty.component.mjs +1 -2
- package/esm2020/lib/layout/list/list.grid.view.component.mjs +86 -0
- package/esm2020/lib/layout/list/list.grid.view.directive.mjs +15 -0
- package/esm2020/lib/layout/list/list.layout.module.mjs +57 -6
- package/esm2020/lib/layout/list/list.view.selection.directive.mjs +2 -2
- package/esm2020/lib/layout/list/list.view.value.component.mjs +6 -3
- package/fesm2015/dereekb-dbx-web.mjs +151 -11
- package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web.mjs +149 -11
- package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
- package/lib/layout/list/index.d.ts +2 -0
- package/lib/layout/list/list.grid.view.component.d.ts +42 -0
- package/lib/layout/list/list.grid.view.directive.d.ts +10 -0
- package/lib/layout/list/list.layout.module.d.ts +14 -11
- package/lib/layout/list/list.view.value.component.d.ts +1 -0
- package/package.json +3 -3
|
@@ -2,6 +2,8 @@ export * from './list.content.empty.component';
|
|
|
2
2
|
export * from './list.component';
|
|
3
3
|
export * from './list.directive';
|
|
4
4
|
export * from './list.layout.module';
|
|
5
|
+
export * from './list.grid.view.directive';
|
|
6
|
+
export * from './list.grid.view.component';
|
|
5
7
|
export * from './list.view.directive';
|
|
6
8
|
export * from './list.view.selection.directive';
|
|
7
9
|
export * from './list.view.value.component';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { DbxValueListItem } from './list.view.value';
|
|
2
|
+
import { AbstractDbxValueListViewDirective } from './list.view.value.directive';
|
|
3
|
+
import { Maybe } from '@dereekb/util';
|
|
4
|
+
import { DbxValueListItemViewComponent, DbxValueListViewConfig } from './list.view.value.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export interface DbxValueListGridViewConfig<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = unknown> extends DbxValueListViewConfig<T, I, V> {
|
|
7
|
+
grid?: Maybe<Partial<DbxValueListGridItemViewGridSizeConfig>>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Renders a grid view using input configuration. Requires a parent DbxListView.
|
|
11
|
+
*/
|
|
12
|
+
export declare class DbxValueListGridViewComponent<T, I extends DbxValueListItem<T> = DbxValueListItem<T>, V = unknown, C extends DbxValueListGridViewConfig<T, I, V> = DbxValueListGridViewConfig<T, I, V>> extends AbstractDbxValueListViewDirective<T, I, V, C> {
|
|
13
|
+
readonly grid$: import("rxjs").Observable<Maybe<Partial<DbxValueListGridItemViewGridSizeConfig>>>;
|
|
14
|
+
readonly emitAllClicks$: import("rxjs").Observable<boolean | undefined>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxValueListGridViewComponent<any, any, any, any>, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxValueListGridViewComponent<any, any, any, any>, "dbx-list-grid-view", never, {}, {}, never, never>;
|
|
17
|
+
}
|
|
18
|
+
export interface DbxValueListGridItemViewGridSizeConfig {
|
|
19
|
+
/**
|
|
20
|
+
* Gap size in %, px, vw, vh
|
|
21
|
+
*/
|
|
22
|
+
gap: string;
|
|
23
|
+
/**
|
|
24
|
+
* Columns configuration.
|
|
25
|
+
*
|
|
26
|
+
* Example: repeat(auto-fill, minmax(200px, 1fr))
|
|
27
|
+
*/
|
|
28
|
+
columns: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const DEFAULT_LIST_GRID_SIZE_CONFIG: DbxValueListGridItemViewGridSizeConfig;
|
|
31
|
+
/**
|
|
32
|
+
* Content view for a DbxValueListGridView. It can be used directly in cases where the items are already configured, or want to be configured in a non-standard fashion.
|
|
33
|
+
*/
|
|
34
|
+
export declare class DbxValueListGridItemViewComponent<T, I extends DbxValueListItem<T> = DbxValueListItem<T>> extends DbxValueListItemViewComponent<T, I> {
|
|
35
|
+
private _grid;
|
|
36
|
+
get grid(): Maybe<Partial<DbxValueListGridItemViewGridSizeConfig>>;
|
|
37
|
+
set grid(grid: Maybe<Partial<DbxValueListGridItemViewGridSizeConfig>>);
|
|
38
|
+
get gap(): string;
|
|
39
|
+
get columns(): string;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxValueListGridItemViewComponent<any, any>, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxValueListGridItemViewComponent<any, any>, "dbx-list-grid-view-content", never, { "grid": "grid"; }, {}, never, never>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbstractDbxListViewDirective } from './list.view.directive';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare const DEFAULT_DBX_VALUE_LIST_GRID_DIRECTIVE_TEMPLATE = "<dbx-list-grid-view [config]=\"config\"></dbx-list-grid-view>";
|
|
4
|
+
/**
|
|
5
|
+
* Abstract DbxListGridView implementation.
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class AbstractDbxListGridViewDirective<T> extends AbstractDbxListViewDirective<T> {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxListGridViewDirective<any>, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxListGridViewDirective<any>, never, never, {}, {}, never>;
|
|
10
|
+
}
|
|
@@ -2,18 +2,21 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
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
|
-
import * as i4 from "./list.view.
|
|
6
|
-
import * as i5 from "./list.view.value.
|
|
7
|
-
import * as i6 from "./list.view.value.modifier.
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "
|
|
5
|
+
import * as i4 from "./list.grid.view.component";
|
|
6
|
+
import * as i5 from "./list.view.value.selection.component";
|
|
7
|
+
import * as i6 from "./list.view.value.modifier.directive";
|
|
8
|
+
import * as i7 from "./list.view.value.modifier.ripple.directive";
|
|
9
|
+
import * as i8 from "@angular/common";
|
|
10
|
+
import * as i9 from "@angular/material/core";
|
|
11
|
+
import * as i10 from "@angular/flex-layout";
|
|
12
|
+
import * as i11 from "../../loading/loading.module";
|
|
13
|
+
import * as i12 from "../../router/layout/anchor/anchor.module";
|
|
14
|
+
import * as i13 from "ngx-infinite-scroll";
|
|
15
|
+
import * as i14 from "@dereekb/dbx-core";
|
|
16
|
+
import * as i15 from "@angular/material/list";
|
|
17
|
+
import * as i16 from "@angular/material/icon";
|
|
15
18
|
export declare class DbxListLayoutModule {
|
|
16
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxListLayoutModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxListLayoutModule, [typeof i1.DbxListComponent, typeof i1.DbxListInternalContentDirective, typeof i2.DbxListEmptyContentComponent, typeof i3.DbxValueListViewComponent, typeof i3.DbxValueListItemViewComponent, typeof i4.
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxListLayoutModule, [typeof i1.DbxListComponent, typeof i1.DbxListInternalContentDirective, typeof i2.DbxListEmptyContentComponent, typeof i3.DbxValueListViewComponent, typeof i3.DbxValueListItemViewComponent, typeof i4.DbxValueListGridViewComponent, typeof i4.DbxValueListGridItemViewComponent, typeof i5.DbxSelectionValueListViewComponent, typeof i5.DbxSelectionValueListItemViewComponent, typeof i6.DbxValueListItemModifierDirective, typeof i7.DbxListItemDisableRippleModifierDirective], [typeof i8.CommonModule, typeof i9.MatRippleModule, typeof i10.FlexLayoutModule, typeof i11.DbxLoadingModule, typeof i12.DbxRouterAnchorModule, typeof i13.InfiniteScrollModule, typeof i14.DbxInjectionComponentModule, typeof i15.MatListModule, typeof i16.MatIconModule], [typeof i1.DbxListComponent, typeof i2.DbxListEmptyContentComponent, typeof i3.DbxValueListViewComponent, typeof i3.DbxValueListItemViewComponent, typeof i4.DbxValueListGridViewComponent, typeof i4.DbxValueListGridItemViewComponent, typeof i5.DbxSelectionValueListViewComponent, typeof i5.DbxSelectionValueListItemViewComponent, typeof i6.DbxValueListItemModifierDirective, typeof i7.DbxListItemDisableRippleModifierDirective]>;
|
|
18
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxListLayoutModule>;
|
|
19
22
|
}
|
|
@@ -25,6 +25,7 @@ export declare class DbxValueListItemViewComponent<T, I extends DbxValueListItem
|
|
|
25
25
|
constructor(dbxListView: DbxListView<T>);
|
|
26
26
|
onClickItem(item: I): void;
|
|
27
27
|
onClickValue(value: T): void;
|
|
28
|
+
rippleDisabledOnItem(item: I): boolean;
|
|
28
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxValueListItemViewComponent<any, any>, never>;
|
|
29
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<DbxValueListItemViewComponent<any, any>, "dbx-list-view-content", never, { "emitAllClicks": "emitAllClicks"; "items": "items"; }, {}, never, never>;
|
|
30
31
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-web",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.7.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^13.0.0",
|
|
6
6
|
"@angular/core": "^13.0.0",
|
|
7
7
|
"@angular/material": "^13.0.0",
|
|
8
|
-
"@dereekb/rxjs": "8.
|
|
9
|
-
"@dereekb/dbx-core": "8.
|
|
8
|
+
"@dereekb/rxjs": "8.7.0",
|
|
9
|
+
"@dereekb/dbx-core": "8.7.0",
|
|
10
10
|
"@angular/flex-layout": "^13.0.0-beta.38",
|
|
11
11
|
"ng-overlay-container": "^13.0.2",
|
|
12
12
|
"@angular/cdk": "^13.0.0",
|