@dereekb/dbx-web 9.20.20 → 9.22.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/calendar/package.json +2 -2
- package/esm2020/lib/action/snackbar/action.snackbar.component.mjs +1 -1
- package/esm2020/lib/action/transition/transition.safety.dialog.component.mjs +1 -1
- package/esm2020/lib/button/button.component.mjs +14 -2
- package/esm2020/lib/button/progress/base.progress.button.directive.mjs +3 -1
- package/esm2020/lib/button/progress/button.progress.config.mjs +1 -1
- package/esm2020/lib/button/progress/spinner.button.component.mjs +7 -4
- package/esm2020/lib/extension/model/model.tracker.view.storage.mjs +2 -3
- package/esm2020/lib/extension/model/model.types.service.mjs +2 -3
- package/esm2020/lib/extension/model/state/effects/tracker.effects.mjs +2 -2
- package/esm2020/lib/interaction/filter/filter.preset.menu.component.mjs +2 -3
- package/esm2020/lib/interaction/filter/filter.preset.mjs +2 -3
- package/esm2020/lib/interaction/filter/filter.wrapper.component.mjs +1 -1
- package/esm2020/lib/interaction/popup/popup.controls.buttons.component.mjs +1 -1
- package/esm2020/lib/layout/column/two/two.column.sref.showright.directive.mjs +2 -3
- package/esm2020/lib/layout/content/content.layout.module.mjs +31 -4
- package/esm2020/lib/layout/content/content.pit.directive.mjs +19 -0
- package/esm2020/lib/layout/content/index.mjs +2 -1
- package/esm2020/lib/layout/list/list.wrapper.mjs +1 -1
- package/esm2020/mapbox/lib/mapbox.change.service.mjs +2 -3
- package/esm2020/table/dereekb-dbx-web-table.mjs +5 -0
- package/esm2020/table/index.mjs +2 -0
- package/esm2020/table/lib/date/date.table.column.header.component.mjs +49 -0
- package/esm2020/table/lib/date/daterange.table.cell.input.component.mjs +166 -0
- package/esm2020/table/lib/date/index.mjs +4 -0
- package/esm2020/table/lib/date/table.date.module.mjs +68 -0
- package/esm2020/table/lib/index.mjs +18 -0
- package/esm2020/table/lib/table.cell.action.component.mjs +28 -0
- package/esm2020/table/lib/table.cell.input.component.mjs +31 -0
- package/esm2020/table/lib/table.cell.summaryend.component.mjs +28 -0
- package/esm2020/table/lib/table.cell.summarystart.component.mjs +31 -0
- package/esm2020/table/lib/table.column.directive.mjs +30 -0
- package/esm2020/table/lib/table.column.footer.component.mjs +35 -0
- package/esm2020/table/lib/table.column.header.component.mjs +35 -0
- package/esm2020/table/lib/table.component.mjs +58 -0
- package/esm2020/table/lib/table.directive.mjs +37 -0
- package/esm2020/table/lib/table.item.action.component.mjs +35 -0
- package/esm2020/table/lib/table.item.cell.component.mjs +39 -0
- package/esm2020/table/lib/table.item.directive.mjs +30 -0
- package/esm2020/table/lib/table.item.header.component.mjs +27 -0
- package/esm2020/table/lib/table.mjs +2 -0
- package/esm2020/table/lib/table.module.mjs +74 -0
- package/esm2020/table/lib/table.store.mjs +53 -0
- package/fesm2015/dereekb-dbx-web-mapbox.mjs +1 -2
- package/fesm2015/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2015/dereekb-dbx-web-table.mjs +745 -0
- package/fesm2015/dereekb-dbx-web-table.mjs.map +1 -0
- package/fesm2015/dereekb-dbx-web.mjs +99 -38
- package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web-mapbox.mjs +1 -2
- package/fesm2020/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-web-table.mjs +738 -0
- package/fesm2020/dereekb-dbx-web-table.mjs.map +1 -0
- package/fesm2020/dereekb-dbx-web.mjs +97 -38
- package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
- package/lib/button/_button.scss +4 -0
- package/lib/button/button.component.d.ts +5 -2
- package/lib/button/progress/button.progress.config.d.ts +7 -0
- package/lib/button/progress/spinner.button.component.d.ts +1 -0
- package/lib/extension/_extension.scss +19 -0
- package/lib/extension/table/_table.scss +60 -0
- package/lib/layout/content/_content.scss +14 -0
- package/lib/layout/content/content.layout.module.d.ts +3 -2
- package/lib/layout/content/content.pit.directive.d.ts +8 -0
- package/lib/layout/content/index.d.ts +1 -0
- package/lib/layout/list/list.wrapper.d.ts +2 -1
- package/lib/layout/style/_style.scss +4 -0
- package/lib/style/_config.scss +8 -2
- package/mapbox/esm2020/lib/mapbox.change.service.mjs +2 -3
- package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs +1 -2
- package/mapbox/fesm2015/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/mapbox/fesm2020/dereekb-dbx-web-mapbox.mjs +1 -2
- package/mapbox/fesm2020/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/mapbox/package.json +3 -3
- package/package.json +14 -6
- package/table/README.md +6 -0
- package/table/esm2020/dereekb-dbx-web-table.mjs +5 -0
- package/table/esm2020/index.mjs +2 -0
- package/table/esm2020/lib/date/date.table.column.header.component.mjs +49 -0
- package/table/esm2020/lib/date/daterange.table.cell.input.component.mjs +166 -0
- package/table/esm2020/lib/date/index.mjs +4 -0
- package/table/esm2020/lib/date/table.date.module.mjs +68 -0
- package/table/esm2020/lib/index.mjs +18 -0
- package/table/esm2020/lib/table.cell.action.component.mjs +28 -0
- package/table/esm2020/lib/table.cell.input.component.mjs +31 -0
- package/table/esm2020/lib/table.cell.summaryend.component.mjs +28 -0
- package/table/esm2020/lib/table.cell.summarystart.component.mjs +31 -0
- package/table/esm2020/lib/table.column.directive.mjs +30 -0
- package/table/esm2020/lib/table.column.footer.component.mjs +35 -0
- package/table/esm2020/lib/table.column.header.component.mjs +35 -0
- package/table/esm2020/lib/table.component.mjs +58 -0
- package/table/esm2020/lib/table.directive.mjs +37 -0
- package/table/esm2020/lib/table.item.action.component.mjs +35 -0
- package/table/esm2020/lib/table.item.cell.component.mjs +39 -0
- package/table/esm2020/lib/table.item.directive.mjs +30 -0
- package/table/esm2020/lib/table.item.header.component.mjs +27 -0
- package/table/esm2020/lib/table.mjs +2 -0
- package/table/esm2020/lib/table.module.mjs +74 -0
- package/table/esm2020/lib/table.store.mjs +53 -0
- package/table/fesm2015/dereekb-dbx-web-table.mjs +745 -0
- package/table/fesm2015/dereekb-dbx-web-table.mjs.map +1 -0
- package/table/fesm2020/dereekb-dbx-web-table.mjs +738 -0
- package/table/fesm2020/dereekb-dbx-web-table.mjs.map +1 -0
- package/table/index.d.ts +1 -0
- package/table/lib/date/date.table.column.header.component.d.ts +18 -0
- package/table/lib/date/daterange.table.cell.input.component.d.ts +66 -0
- package/table/lib/date/index.d.ts +3 -0
- package/table/lib/date/table.date.module.d.ts +16 -0
- package/table/lib/index.d.ts +17 -0
- package/table/lib/table.cell.action.component.d.ts +9 -0
- package/table/lib/table.cell.input.component.d.ts +12 -0
- package/table/lib/table.cell.summaryend.component.d.ts +9 -0
- package/table/lib/table.cell.summarystart.component.d.ts +12 -0
- package/table/lib/table.column.directive.d.ts +18 -0
- package/table/lib/table.column.footer.component.d.ts +8 -0
- package/table/lib/table.column.header.component.d.ts +8 -0
- package/table/lib/table.component.d.ts +29 -0
- package/table/lib/table.d.ts +99 -0
- package/table/lib/table.directive.d.ts +16 -0
- package/table/lib/table.item.action.component.d.ts +7 -0
- package/table/lib/table.item.cell.component.d.ts +13 -0
- package/table/lib/table.item.directive.d.ts +17 -0
- package/table/lib/table.item.header.component.d.ts +7 -0
- package/table/lib/table.module.d.ts +22 -0
- package/table/lib/table.store.d.ts +38 -0
- package/table/package.json +35 -0
package/lib/button/_button.scss
CHANGED
|
@@ -24,6 +24,10 @@ $button-spacer-width: 6px;
|
|
|
24
24
|
padding-right: $button-spacer-width;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
.mat-icon-button.dbx-button-spacer {
|
|
28
|
+
margin-right: $button-spacer-width;
|
|
29
|
+
}
|
|
30
|
+
|
|
27
31
|
.dbx-spinner-custom.mat-progress-spinner.mat-accent circle,
|
|
28
32
|
.dbx-spinner-custom.mat-spinner.mat-accent circle {
|
|
29
33
|
// mat-spinners marked with dbx-spinner-custom should allow the stroke to be inherited.
|
|
@@ -6,7 +6,8 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare enum DbxButtonDisplayType {
|
|
7
7
|
RAISED = 0,
|
|
8
8
|
STROKED = 1,
|
|
9
|
-
FLAT = 2
|
|
9
|
+
FLAT = 2,
|
|
10
|
+
ICON_ONLY = 3
|
|
10
11
|
}
|
|
11
12
|
/**
|
|
12
13
|
* Complex button that supports loading states.
|
|
@@ -19,11 +20,13 @@ export declare class DbxButtonComponent extends AbstractDbxButtonDirective {
|
|
|
19
20
|
set stroked(stroked: boolean);
|
|
20
21
|
get flat(): boolean;
|
|
21
22
|
set flat(flat: boolean);
|
|
23
|
+
get iconOnly(): boolean;
|
|
24
|
+
set iconOnly(iconOnly: boolean);
|
|
22
25
|
color: ThemePalette;
|
|
23
26
|
customButtonColor: Maybe<string>;
|
|
24
27
|
customTextColor: Maybe<string>;
|
|
25
28
|
customSpinnerColor: Maybe<string>;
|
|
26
29
|
get btnOptions(): DbxProgressButtonOptions;
|
|
27
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxButtonComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxButtonComponent, "dbx-button", never, { "type": "type"; "raised": "raised"; "stroked": "stroked"; "flat": "flat"; "color": "color"; "customButtonColor": "customButtonColor"; "customTextColor": "customTextColor"; "customSpinnerColor": "customSpinnerColor"; }, {}, never, ["*"], false>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxButtonComponent, "dbx-button", never, { "type": "type"; "raised": "raised"; "stroked": "stroked"; "flat": "flat"; "iconOnly": "iconOnly"; "color": "color"; "customButtonColor": "customButtonColor"; "customTextColor": "customTextColor"; "customSpinnerColor": "customSpinnerColor"; }, {}, never, ["*"], false>;
|
|
29
32
|
}
|
|
@@ -13,12 +13,19 @@ export interface DbxProgressButtonOptions {
|
|
|
13
13
|
stroked?: boolean;
|
|
14
14
|
flat?: boolean;
|
|
15
15
|
fab?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Whether or not to render as an icon button.
|
|
18
|
+
*/
|
|
19
|
+
iconOnly?: boolean;
|
|
16
20
|
spinnerSize?: number;
|
|
17
21
|
spinnerRatio?: number;
|
|
18
22
|
mode?: ProgressSpinnerMode;
|
|
19
23
|
value?: number;
|
|
20
24
|
fullWidth?: boolean;
|
|
21
25
|
disabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated use buttonIcon instead.
|
|
28
|
+
*/
|
|
22
29
|
icon?: DbxProgressButtonIcon;
|
|
23
30
|
type?: string;
|
|
24
31
|
customStyle?: {
|
|
@@ -3,6 +3,7 @@ import { AbstractProgressButtonDirective } from './base.progress.button.directiv
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DbxSpinnerButtonComponent extends AbstractProgressButtonDirective {
|
|
5
5
|
readonly buttonRef: ElementRef<HTMLElement>;
|
|
6
|
+
get showText(): boolean;
|
|
6
7
|
calcSpinnerSize(): number;
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxSpinnerButtonComponent, never>;
|
|
8
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<DbxSpinnerButtonComponent, "dbx-spinner-button", never, {}, {}, never, ["*"], false>;
|
|
@@ -1,38 +1,57 @@
|
|
|
1
1
|
@use '../style/config';
|
|
2
2
|
@use './calendar/calendar';
|
|
3
|
+
@use './table/table';
|
|
3
4
|
|
|
4
5
|
@mixin all-extension-core($theme-config) {
|
|
5
6
|
$calendar-enabled: 1;
|
|
7
|
+
$table-enabled: 1;
|
|
6
8
|
|
|
7
9
|
@if ($theme-config != null) {
|
|
8
10
|
$calendar-enabled: config.get-dbx-extension-calendar-enabled($theme-config);
|
|
11
|
+
$table-enabled: config.get-dbx-extension-table-enabled($theme-config);
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
@if ($calendar-enabled == 1) {
|
|
12
15
|
@include calendar.core();
|
|
13
16
|
}
|
|
17
|
+
|
|
18
|
+
@if ($table-enabled == 1) {
|
|
19
|
+
@include table.core();
|
|
20
|
+
}
|
|
14
21
|
}
|
|
15
22
|
|
|
16
23
|
@mixin all-extension-typography($typography-config, $theme-config) {
|
|
17
24
|
$calendar-enabled: 1;
|
|
25
|
+
$table-enabled: 1;
|
|
18
26
|
|
|
19
27
|
@if ($theme-config != null) {
|
|
20
28
|
$calendar-enabled: config.get-dbx-extension-calendar-enabled($theme-config);
|
|
29
|
+
$table-enabled: config.get-dbx-extension-table-enabled($theme-config);
|
|
21
30
|
}
|
|
22
31
|
|
|
23
32
|
@if ($calendar-enabled == 1) {
|
|
24
33
|
@include calendar.typography($typography-config);
|
|
25
34
|
}
|
|
35
|
+
|
|
36
|
+
@if ($table-enabled == 1) {
|
|
37
|
+
@include table.typography($typography-config);
|
|
38
|
+
}
|
|
26
39
|
}
|
|
27
40
|
|
|
28
41
|
@mixin all-extension-theme($theme-config) {
|
|
29
42
|
$calendar-enabled: 1;
|
|
43
|
+
$table-enabled: 1;
|
|
30
44
|
|
|
31
45
|
@if ($theme-config != null) {
|
|
32
46
|
$calendar-enabled: config.get-dbx-extension-calendar-enabled($theme-config);
|
|
47
|
+
$table-enabled: config.get-dbx-extension-table-enabled($theme-config);
|
|
33
48
|
}
|
|
34
49
|
|
|
35
50
|
@if ($calendar-enabled == 1) {
|
|
36
51
|
@include calendar.theme($theme-config);
|
|
37
52
|
}
|
|
53
|
+
|
|
54
|
+
@if ($table-enabled == 1) {
|
|
55
|
+
@include table.theme($theme-config);
|
|
56
|
+
}
|
|
38
57
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../../style/theming';
|
|
3
|
+
|
|
4
|
+
// MARK: Variables
|
|
5
|
+
|
|
6
|
+
// MARK: Mixin
|
|
7
|
+
@mixin core() {
|
|
8
|
+
.dbx-table-view {
|
|
9
|
+
height: 600px;
|
|
10
|
+
overflow: auto;
|
|
11
|
+
|
|
12
|
+
.dbx-table-view-table {
|
|
13
|
+
width: 100%;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.dbx-table-view-loading {
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// MARK: Date
|
|
21
|
+
.dbx-table-date-range-distance-input-cell {
|
|
22
|
+
min-width: 140px;
|
|
23
|
+
|
|
24
|
+
.dbx-table-date-range-distance-input {
|
|
25
|
+
height: 0px;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dbx-table-date-column-header {
|
|
31
|
+
min-width: 80px;
|
|
32
|
+
text-align: center;
|
|
33
|
+
|
|
34
|
+
.dbx-table-date-column-header-left {
|
|
35
|
+
margin-right: 4px;
|
|
36
|
+
font-weight: 800;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@mixin color($theme-config) {
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@mixin typography($typography-config) {
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@mixin theme($theme-config) {
|
|
48
|
+
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-table') {
|
|
49
|
+
$color: theming.get-color-config($theme-config);
|
|
50
|
+
$typography: theming.get-typography-config($theme-config);
|
|
51
|
+
|
|
52
|
+
@if $color !=null {
|
|
53
|
+
@include color($theme-config);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@if $typography !=null {
|
|
57
|
+
@include typography($typography);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -13,6 +13,8 @@ $max-small-content-container-width: calc($content-max-width / 3);
|
|
|
13
13
|
$max-medium-content-container-width: calc($content-max-width / 2);
|
|
14
14
|
$max-content-container-width: $content-max-width;
|
|
15
15
|
|
|
16
|
+
$pit-padding: theming.$padding-4;
|
|
17
|
+
|
|
16
18
|
$content-container-padding: theming.$padding-4;
|
|
17
19
|
$content-container-padding-small-screen: theming.$padding-2;
|
|
18
20
|
|
|
@@ -41,6 +43,14 @@ $scroll-content-bottom-padding: 42px;
|
|
|
41
43
|
}
|
|
42
44
|
}
|
|
43
45
|
|
|
46
|
+
.dbx-content-pit {
|
|
47
|
+
padding: $pit-padding;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.dbx-content-pit > .dbx-label-block > .dbx-label {
|
|
51
|
+
opacity: 0.66; // increase opacity slightly to make it easier to read against background
|
|
52
|
+
}
|
|
53
|
+
|
|
44
54
|
.dbx-content-end {
|
|
45
55
|
margin-bottom: $content-end-margin;
|
|
46
56
|
}
|
|
@@ -142,6 +152,10 @@ $scroll-content-bottom-padding: 42px;
|
|
|
142
152
|
background: $content-background;
|
|
143
153
|
}
|
|
144
154
|
|
|
155
|
+
.dbx-content-pit {
|
|
156
|
+
background: $content-border-background;
|
|
157
|
+
}
|
|
158
|
+
|
|
145
159
|
.dbx-content-border {
|
|
146
160
|
// border-radius: 6px;
|
|
147
161
|
border: 3px dashed $content-border-background;
|
|
@@ -5,12 +5,13 @@ import * as i3 from "./content.border.directive";
|
|
|
5
5
|
import * as i4 from "./content.elevate.directive";
|
|
6
6
|
import * as i5 from "./content.box.directive";
|
|
7
7
|
import * as i6 from "./content.page.directive";
|
|
8
|
-
import * as i7 from "
|
|
8
|
+
import * as i7 from "./content.pit.directive";
|
|
9
|
+
import * as i8 from "@angular/common";
|
|
9
10
|
/**
|
|
10
11
|
* Module for container-type components.
|
|
11
12
|
*/
|
|
12
13
|
export declare class DbxContentLayoutModule {
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxContentLayoutModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxContentLayoutModule, [typeof i1.DbxContentDirective, typeof i2.DbxContentContainerDirective, typeof i3.DbxContentBorderDirective, typeof i4.DbxContentElevateDirective, typeof i5.DbxContentBoxDirective, typeof i6.DbxContentPageDirective], [typeof
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxContentLayoutModule, [typeof i1.DbxContentDirective, typeof i2.DbxContentContainerDirective, typeof i3.DbxContentBorderDirective, typeof i4.DbxContentElevateDirective, typeof i5.DbxContentBoxDirective, typeof i6.DbxContentPageDirective, typeof i7.DbxContentPitDirective], [typeof i8.CommonModule], [typeof i1.DbxContentDirective, typeof i2.DbxContentContainerDirective, typeof i3.DbxContentBorderDirective, typeof i4.DbxContentElevateDirective, typeof i5.DbxContentBoxDirective, typeof i6.DbxContentPageDirective, typeof i7.DbxContentPitDirective]>;
|
|
15
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxContentLayoutModule>;
|
|
16
17
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Component used to wrap content in a pit with a label.
|
|
4
|
+
*/
|
|
5
|
+
export declare class DbxContentPitDirective {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxContentPitDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxContentPitDirective, "dbx-content-pit, [dbxContentPit]", never, {}, {}, never, never, false>;
|
|
8
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { ListLoadingState } from '@dereekb/rxjs';
|
|
3
|
-
import { Provider, Type } from '@angular/core';
|
|
3
|
+
import { EventEmitter, Provider, Type } from '@angular/core';
|
|
4
4
|
import { Maybe } from '@dereekb/util';
|
|
5
5
|
/**
|
|
6
6
|
* Common interface for views that may wrap a DbxListView, and pass values through to it.
|
|
7
7
|
*/
|
|
8
8
|
export declare abstract class DbxListViewWrapper<T = unknown, S extends ListLoadingState<T> = ListLoadingState<T>> {
|
|
9
9
|
state$?: Maybe<Observable<S>>;
|
|
10
|
+
readonly loadMore?: EventEmitter<void>;
|
|
10
11
|
}
|
|
11
12
|
export declare function provideDbxListViewWrapper<V extends DbxListViewWrapper>(sourceType: Type<V>): Provider[];
|
package/lib/style/_config.scss
CHANGED
|
@@ -151,8 +151,10 @@
|
|
|
151
151
|
// extension
|
|
152
152
|
@function define-dbx-extension-config($input-dbx-theme-extension-config: null) {
|
|
153
153
|
$dbx-extension-config: (
|
|
154
|
-
// calendar
|
|
155
|
-
'calendar': 1
|
|
154
|
+
// calendar enabled by default
|
|
155
|
+
'calendar': 1,
|
|
156
|
+
// table enabled by default
|
|
157
|
+
'table': 1
|
|
156
158
|
);
|
|
157
159
|
|
|
158
160
|
@if ($input-dbx-theme-extension-config != null) {
|
|
@@ -173,3 +175,7 @@
|
|
|
173
175
|
@function get-dbx-extension-calendar-enabled($theme-config) {
|
|
174
176
|
@return get-dbx-extension-config-var($theme-config, 'calendar');
|
|
175
177
|
}
|
|
178
|
+
|
|
179
|
+
@function get-dbx-extension-table-enabled($theme-config) {
|
|
180
|
+
@return get-dbx-extension-config-var($theme-config, 'table');
|
|
181
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { switchMap } from 'rxjs/operators';
|
|
2
1
|
import { Injectable } from '@angular/core';
|
|
3
2
|
import { SubscriptionObject } from '@dereekb/rxjs';
|
|
4
|
-
import { tap, merge, Subject, throttleTime } from 'rxjs';
|
|
3
|
+
import { switchMap, tap, merge, Subject, throttleTime } from 'rxjs';
|
|
5
4
|
import { DbxMapboxMapStore } from './mapbox.store';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
import * as i1 from "./mapbox.store";
|
|
@@ -41,4 +40,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
41
40
|
providedIn: null
|
|
42
41
|
}]
|
|
43
42
|
}], ctorParameters: function () { return [{ type: i1.DbxMapboxMapStore }]; } });
|
|
44
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwYm94LmNoYW5nZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiL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gICAgICApXG4gICAgICAuc3Vic2NyaWJlKClcbiAgKTtcblxuICBjb25zdHJ1Y3RvcihyZWFkb25seSBkYnhNYXBib3hNYXBTdG9yZTogRGJ4TWFwYm94TWFwU3RvcmUpIHt9XG5cbiAgYXBwbHlDaGFuZ2VzKCkge1xuICAgIHRoaXMuX2FwcGx5Q2hhbmdlcy5uZXh0KCk7XG4gIH1cblxuICBlbWl0TWFya2VyRGVzdHJveWVkKCkge1xuICAgIHRoaXMuX21hcmtlckRlc3Ryb3llZC5uZXh0KCk7XG4gIH1cblxuICBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICB0aGlzLl9tYXJrZXJEZXN0cm95ZWQuY29tcGxldGUoKTtcbiAgICB0aGlzLl9hcHBseUNoYW5nZXMuY29tcGxldGUoKTtcbiAgICB0aGlzLl9hcHBseUNoYW5nZXNTdWIuZGVzdHJveSgpO1xuICB9XG59XG4iXX0=
|
|
@@ -2,7 +2,6 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { Injectable, Host, Optional, Inject, Directive, Component, ElementRef, ViewChild, Input, ChangeDetectionStrategy, SkipSelf, Injector, NgModule } from '@angular/core';
|
|
3
3
|
import * as i2 from '@dereekb/dbx-core';
|
|
4
4
|
import { safeMarkForCheck, safeDetectChanges, AbstractSubscriptionDirective, DbxInjectionComponentModule } from '@dereekb/dbx-core';
|
|
5
|
-
import { switchMap as switchMap$1 } from 'rxjs/operators';
|
|
6
5
|
import { cleanup, filterMaybe, onTrueToFalse, SubscriptionObject, asObservable } from '@dereekb/rxjs';
|
|
7
6
|
import { switchMap, NEVER, defaultIfEmpty, map, tap, EMPTY, distinctUntilChanged, shareReplay, of, combineLatest, filter, first, startWith, interval, Subject, merge, throttleTime, BehaviorSubject, combineLatestWith } from 'rxjs';
|
|
8
7
|
import { latLngPointFunction, latLngBoundFunction, latLngBoundFromInput, filterUndefinedValues, isSameLatLngPoint, isDefaultLatLngPoint, swMostLatLngPoint, neMostLatLngPoint, isSameLatLngBound, diffLatLngBoundPoints, latLngBoundWrapsMap, isWithinLatLngBoundFunction, overlapsLatLngBoundFunction, vectorsAreEqual, latLngBoundCenterPoint, addLatLngPoints, latLngPoint, DestroyFunctionObject, getValueFromGetter, LAT_LONG_10M_PRECISION, roundNumberToStepFunction } from '@dereekb/util';
|
|
@@ -545,7 +544,7 @@ class DbxMapboxChangeService {
|
|
|
545
544
|
this.markerDestroyed$ = this._markerDestroyed;
|
|
546
545
|
this.applyChanges$ = merge(this._applyChanges, this.markerDestroyed$).pipe(throttleTime(100, undefined, { leading: false, trailing: true }));
|
|
547
546
|
this._applyChangesSub = new SubscriptionObject(this.dbxMapboxMapStore.mapService$
|
|
548
|
-
.pipe(switchMap
|
|
547
|
+
.pipe(switchMap((mapService) => this.applyChanges$.pipe(tap(() => {
|
|
549
548
|
mapService.applyChanges();
|
|
550
549
|
}))))
|
|
551
550
|
.subscribe());
|