@dereekb/dbx-web 9.16.4 → 9.17.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 +2 -1
- package/esm2020/lib/layout/list/list.layout.module.mjs +10 -5
- package/esm2020/lib/layout/list/list.view.value.mjs +9 -1
- package/esm2020/lib/layout/list/list.view.value.modifier.ripple.directive.mjs +1 -1
- package/esm2020/lib/layout/list/list.view.value.modifier.selection.directive.mjs +42 -0
- package/esm2020/lib/layout/list/list.view.value.selection.component.mjs +3 -3
- package/esm2020/lib/layout/text/form.description.component.mjs +21 -0
- package/esm2020/lib/layout/text/index.mjs +2 -1
- package/esm2020/lib/layout/text/text.module.mjs +5 -4
- package/fesm2015/dereekb-dbx-web.mjs +80 -10
- package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web.mjs +79 -10
- package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
- package/lib/layout/list/_list.scss +4 -0
- package/lib/layout/list/index.d.ts +1 -0
- package/lib/layout/list/list.layout.module.d.ts +11 -10
- package/lib/layout/list/list.view.value.d.ts +8 -1
- package/lib/layout/list/list.view.value.modifier.ripple.directive.d.ts +8 -5
- package/lib/layout/list/list.view.value.modifier.selection.directive.d.ts +16 -0
- package/lib/layout/text/_text.scss +11 -1
- package/lib/layout/text/form.description.component.d.ts +5 -0
- package/lib/layout/text/index.d.ts +1 -0
- package/lib/layout/text/text.module.d.ts +6 -5
- package/mapbox/package.json +3 -3
- package/package.json +3 -3
|
@@ -43,6 +43,10 @@
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
+
|
|
47
|
+
.mat-selection-list.mat-list-base .dbx-list-view-item.mat-list-item .mat-list-item-content .mat-list-text {
|
|
48
|
+
padding: 0; // kill padding on item in .mat-list-text for selection view, to match 0 padding in non-selection view
|
|
49
|
+
}
|
|
46
50
|
}
|
|
47
51
|
}
|
|
48
52
|
|
|
@@ -13,6 +13,7 @@ export * from './list.view.value.item.directive';
|
|
|
13
13
|
export * from './list.view.value.modifier';
|
|
14
14
|
export * from './list.view.value.modifier.directive';
|
|
15
15
|
export * from './list.view.value.modifier.ripple.directive';
|
|
16
|
+
export * from './list.view.value.modifier.selection.directive';
|
|
16
17
|
export * from './list.view.value.selection.component';
|
|
17
18
|
export * from './list.view.value';
|
|
18
19
|
export * from './list.view';
|
|
@@ -6,17 +6,18 @@ import * as i4 from "./list.grid.view.component";
|
|
|
6
6
|
import * as i5 from "./list.view.value.selection.component";
|
|
7
7
|
import * as i6 from "./list.view.value.modifier.directive";
|
|
8
8
|
import * as i7 from "./list.view.value.modifier.ripple.directive";
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "@angular/
|
|
11
|
-
import * as i10 from "@angular/
|
|
12
|
-
import * as i11 from "
|
|
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 "@angular/material/
|
|
9
|
+
import * as i8 from "./list.view.value.modifier.selection.directive";
|
|
10
|
+
import * as i9 from "@angular/common";
|
|
11
|
+
import * as i10 from "@angular/material/core";
|
|
12
|
+
import * as i11 from "@angular/flex-layout";
|
|
13
|
+
import * as i12 from "../../loading/loading.module";
|
|
14
|
+
import * as i13 from "../../router/layout/anchor/anchor.module";
|
|
15
|
+
import * as i14 from "ngx-infinite-scroll";
|
|
16
|
+
import * as i15 from "@dereekb/dbx-core";
|
|
17
|
+
import * as i16 from "@angular/material/list";
|
|
18
|
+
import * as i17 from "@angular/material/icon";
|
|
18
19
|
export declare class DbxListLayoutModule {
|
|
19
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxListLayoutModule, never>;
|
|
20
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxListLayoutModule, [typeof i1.DbxListComponent, typeof i1.DbxListInternalContentDirective, typeof i2.DbxListEmptyContentComponent, typeof i3.DbxValueListViewComponent, typeof i3.DbxValueListItemViewComponent, typeof i4.DbxValueListGridSizeDirective, typeof i4.DbxValueListGridViewComponent, typeof i4.DbxValueListGridItemViewComponent, typeof i5.DbxSelectionValueListViewComponent, typeof i5.DbxSelectionValueListItemViewComponent, typeof i6.DbxValueListItemModifierDirective, typeof i7.DbxListItemDisableRippleModifierDirective], [typeof
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxListLayoutModule, [typeof i1.DbxListComponent, typeof i1.DbxListInternalContentDirective, typeof i2.DbxListEmptyContentComponent, typeof i3.DbxValueListViewComponent, typeof i3.DbxValueListItemViewComponent, typeof i4.DbxValueListGridSizeDirective, typeof i4.DbxValueListGridViewComponent, typeof i4.DbxValueListGridItemViewComponent, typeof i5.DbxSelectionValueListViewComponent, typeof i5.DbxSelectionValueListItemViewComponent, typeof i6.DbxValueListItemModifierDirective, typeof i7.DbxListItemDisableRippleModifierDirective, typeof i8.DbxListItemIsSelectedModifierDirective], [typeof i9.CommonModule, typeof i10.MatRippleModule, typeof i11.FlexLayoutModule, typeof i12.DbxLoadingModule, typeof i13.DbxRouterAnchorModule, typeof i14.InfiniteScrollModule, typeof i15.DbxInjectionComponentModule, typeof i16.MatListModule, typeof i17.MatIconModule], [typeof i1.DbxListComponent, typeof i2.DbxListEmptyContentComponent, typeof i3.DbxValueListViewComponent, typeof i3.DbxValueListItemViewComponent, typeof i4.DbxValueListGridSizeDirective, typeof i4.DbxValueListGridViewComponent, typeof i4.DbxValueListGridItemViewComponent, typeof i5.DbxSelectionValueListViewComponent, typeof i5.DbxSelectionValueListItemViewComponent, typeof i6.DbxValueListItemModifierDirective, typeof i7.DbxListItemDisableRippleModifierDirective, typeof i8.DbxListItemIsSelectedModifierDirective]>;
|
|
21
22
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxListLayoutModule>;
|
|
22
23
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InjectionToken, Provider, Type } from '@angular/core';
|
|
2
2
|
import { ClickableAnchor, DbxInjectionComponentConfig } from '@dereekb/dbx-core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { Maybe } from '@dereekb/util';
|
|
4
|
+
import { DecisionFunction, Maybe } from '@dereekb/util';
|
|
5
5
|
export declare const DBX_VALUE_LIST_VIEW_ITEM: InjectionToken<unknown>;
|
|
6
6
|
export interface DbxValueListItem<T> {
|
|
7
7
|
itemValue: T;
|
|
@@ -11,6 +11,13 @@ export interface DbxValueListItem<T> {
|
|
|
11
11
|
selected?: boolean;
|
|
12
12
|
anchor?: Maybe<ClickableAnchor>;
|
|
13
13
|
}
|
|
14
|
+
export declare type DbxValueListItemDecisionFunction<T> = DecisionFunction<DbxValueListItem<T>>;
|
|
15
|
+
/**
|
|
16
|
+
* Convenience function for mapping a DecisionFunction for a value to a DecisionFunction for a DbxValueListItem with the same value type.
|
|
17
|
+
* @param decisionFunction
|
|
18
|
+
* @returns
|
|
19
|
+
*/
|
|
20
|
+
export declare function dbxValueListItemDecisionFunction<T>(decisionFunction: DecisionFunction<T>): DbxValueListItemDecisionFunction<T>;
|
|
14
21
|
/**
|
|
15
22
|
* Special type used with values that contain all the items of DbxValueListItem internally.
|
|
16
23
|
*/
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Maybe, ArrayOrValue, Modifier } from '@dereekb/util';
|
|
2
|
+
import { Maybe, ArrayOrValue, Modifier, DecisionFunction } from '@dereekb/util';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { DbxValueListItem } from './list.view.value';
|
|
4
|
+
import { DbxValueListItem, DbxValueListItemDecisionFunction } from './list.view.value';
|
|
5
5
|
import { AbstractDbxValueListItemModifierDirective } from './list.view.value.modifier.directive';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare type DisableRippleForValueFunction<T> = (item: DbxValueListItem<T>) => boolean;
|
|
8
7
|
export declare const DBX_LIST_ITEM_DISABLE_RIPPLE_LIST_ITEM_MODIFIER_KEY = "disable_ripple_anchor";
|
|
9
|
-
export declare const DBX_LIST_ITEM_DEFAULT_DISABLE_FUNCTION:
|
|
8
|
+
export declare const DBX_LIST_ITEM_DEFAULT_DISABLE_FUNCTION: DbxValueListItemDecisionFunction<unknown>;
|
|
10
9
|
export declare class DbxListItemDisableRippleModifierDirective<T> extends AbstractDbxValueListItemModifierDirective<T> implements OnDestroy {
|
|
11
10
|
private _disableRippleForItem;
|
|
12
11
|
readonly modifiers$: Observable<Maybe<ArrayOrValue<Modifier<DbxValueListItem<T>>>>>;
|
|
13
12
|
ngOnDestroy(): void;
|
|
14
|
-
set disableRippleForItem(disableRippleForItem: Maybe<
|
|
13
|
+
set disableRippleForItem(disableRippleForItem: Maybe<DbxValueListItemDecisionFunction<T>>);
|
|
15
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxListItemDisableRippleModifierDirective<any>, never>;
|
|
16
15
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxListItemDisableRippleModifierDirective<any>, "[dbxListItemDisableRippleModifier]", never, { "disableRippleForItem": "dbxListItemDisableRippleModifier"; }, {}, never, never, false>;
|
|
17
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* @Deprecated use DbxValueListItemDecisionFunction instead.
|
|
19
|
+
*/
|
|
20
|
+
export declare type DisableRippleForValueFunction<T> = DecisionFunction<DbxValueListItem<T>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { Maybe, ArrayOrValue, Modifier } from '@dereekb/util';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { DbxValueListItem, DbxValueListItemDecisionFunction } from './list.view.value';
|
|
5
|
+
import { AbstractDbxValueListItemModifierDirective } from './list.view.value.modifier.directive';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare const DBX_LIST_ITEM_IS_SELECTED_ITEM_MODIFIER_KEY = "is_selected_item_modifier";
|
|
8
|
+
export declare const DEFAULT_DBX_LIST_ITEM_IS_SELECTED_FUNCTION: DbxValueListItemDecisionFunction<unknown>;
|
|
9
|
+
export declare class DbxListItemIsSelectedModifierDirective<T> extends AbstractDbxValueListItemModifierDirective<T> implements OnDestroy {
|
|
10
|
+
private _listItemIsSelected;
|
|
11
|
+
readonly modifiers$: Observable<Maybe<ArrayOrValue<Modifier<DbxValueListItem<T>>>>>;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
set listItemIsSelected(listItemIsSelected: Maybe<DbxValueListItemDecisionFunction<T>>);
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxListItemIsSelectedModifierDirective<any>, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxListItemIsSelectedModifierDirective<any>, "[dbxListItemIsSelectedModifier]", never, { "listItemIsSelected": "dbxListItemIsSelectedModifier"; }, {}, never, never, false>;
|
|
16
|
+
}
|
|
@@ -15,6 +15,10 @@ $mat-hint-opacity: 0.54; // Opacity to mirror mat-hint
|
|
|
15
15
|
font-size: 0.8em;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
.dbx-label-padded {
|
|
19
|
+
padding-bottom: 6px;
|
|
20
|
+
}
|
|
21
|
+
|
|
18
22
|
.text-center,
|
|
19
23
|
.dbx-text-center {
|
|
20
24
|
text-align: center;
|
|
@@ -33,6 +37,11 @@ $mat-hint-opacity: 0.54; // Opacity to mirror mat-hint
|
|
|
33
37
|
.dbx-icon-spacer {
|
|
34
38
|
margin-right: $icon-spacing;
|
|
35
39
|
}
|
|
40
|
+
|
|
41
|
+
.dbx-form-description {
|
|
42
|
+
font-size: 75%;
|
|
43
|
+
margin-top: 0.6666666667em;
|
|
44
|
+
}
|
|
36
45
|
}
|
|
37
46
|
|
|
38
47
|
@mixin color($theme-config) {
|
|
@@ -72,7 +81,8 @@ $mat-hint-opacity: 0.54; // Opacity to mirror mat-hint
|
|
|
72
81
|
|
|
73
82
|
.dbx-label,
|
|
74
83
|
.dbx-sublabel,
|
|
75
|
-
.dbx-chip-sublabel
|
|
84
|
+
.dbx-chip-sublabel,
|
|
85
|
+
.dbx-form-description {
|
|
76
86
|
opacity: $mat-hint-opacity;
|
|
77
87
|
}
|
|
78
88
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DbxFormDescriptionComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormDescriptionComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormDescriptionComponent, "dbx-form-description", never, {}, {}, never, ["*"], false>;
|
|
5
|
+
}
|
|
@@ -9,12 +9,13 @@ import * as i7 from "./linkify.component";
|
|
|
9
9
|
import * as i8 from "./ok.component";
|
|
10
10
|
import * as i9 from "./text.chips.component";
|
|
11
11
|
import * as i10 from "./icon.spacer.component";
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "@angular/
|
|
14
|
-
import * as i13 from "@angular/material/
|
|
15
|
-
import * as i14 from "@angular/material/
|
|
12
|
+
import * as i11 from "./form.description.component";
|
|
13
|
+
import * as i12 from "@angular/common";
|
|
14
|
+
import * as i13 from "@angular/material/chips";
|
|
15
|
+
import * as i14 from "@angular/material/tooltip";
|
|
16
|
+
import * as i15 from "@angular/material/icon";
|
|
16
17
|
export declare class DbxTextModule {
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxTextModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxTextModule, [typeof i1.DbxNoteComponent, typeof i2.DbxNoticeComponent, typeof i3.DbxSuccessComponent, typeof i4.DbxWarnComponent, typeof i5.DbxHintComponent, typeof i6.DbxLabelComponent, typeof i7.DbxLinkifyComponent, typeof i8.DbxOkComponent, typeof i9.DbxTextChipsComponent, typeof i10.DbxIconSpacerDirective], [typeof
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxTextModule, [typeof i1.DbxNoteComponent, typeof i2.DbxNoticeComponent, typeof i3.DbxSuccessComponent, typeof i4.DbxWarnComponent, typeof i5.DbxHintComponent, typeof i6.DbxLabelComponent, typeof i7.DbxLinkifyComponent, typeof i8.DbxOkComponent, typeof i9.DbxTextChipsComponent, typeof i10.DbxIconSpacerDirective, typeof i11.DbxFormDescriptionComponent], [typeof i12.CommonModule, typeof i13.MatChipsModule, typeof i14.MatTooltipModule, typeof i15.MatIconModule], [typeof i1.DbxNoteComponent, typeof i2.DbxNoticeComponent, typeof i3.DbxSuccessComponent, typeof i4.DbxWarnComponent, typeof i5.DbxHintComponent, typeof i6.DbxLabelComponent, typeof i7.DbxLinkifyComponent, typeof i8.DbxOkComponent, typeof i9.DbxTextChipsComponent, typeof i10.DbxIconSpacerDirective, typeof i11.DbxFormDescriptionComponent]>;
|
|
19
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxTextModule>;
|
|
20
21
|
}
|
package/mapbox/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-web/mapbox",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.17.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^14.1.0",
|
|
6
6
|
"@angular/core": "^14.1.0",
|
|
7
|
-
"@dereekb/dbx-core": "9.
|
|
8
|
-
"@dereekb/dbx-web": "9.
|
|
7
|
+
"@dereekb/dbx-core": "9.17.0",
|
|
8
|
+
"@dereekb/dbx-web": "9.17.0",
|
|
9
9
|
"ngx-mapbox-gl": "^9.1.0",
|
|
10
10
|
"mapbox-gl": "^2.9.2",
|
|
11
11
|
"@mapbox/geo-viewport": "git+https://git@github.com/dereekb/geo-viewport#165513972f87dca23a20c177f4d173edc51b5e2f"
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-web",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.17.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^14.0.0",
|
|
6
6
|
"@angular/core": "^14.0.0",
|
|
7
7
|
"linkify-string": "4.0.0-beta.5",
|
|
8
8
|
"linkifyjs": "^4.0.0-beta.5",
|
|
9
9
|
"@angular/material": "^14.0.0",
|
|
10
|
-
"@dereekb/rxjs": "9.
|
|
11
|
-
"@dereekb/dbx-core": "9.
|
|
10
|
+
"@dereekb/rxjs": "9.17.0",
|
|
11
|
+
"@dereekb/dbx-core": "9.17.0",
|
|
12
12
|
"angular-calendar": "^0.30.1",
|
|
13
13
|
"@angular/flex-layout": "^14.0.0-beta.40",
|
|
14
14
|
"ng-overlay-container": "^14.0.0",
|