@dereekb/dbx-web 9.24.2 → 9.24.4

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.
Files changed (36) hide show
  1. package/LICENSE +1 -1
  2. package/calendar/esm2020/lib/calendar.component.mjs +3 -3
  3. package/calendar/fesm2015/dereekb-dbx-web-calendar.mjs +1 -1
  4. package/calendar/fesm2015/dereekb-dbx-web-calendar.mjs.map +1 -1
  5. package/calendar/fesm2020/dereekb-dbx-web-calendar.mjs +1 -1
  6. package/calendar/fesm2020/dereekb-dbx-web-calendar.mjs.map +1 -1
  7. package/calendar/package.json +2 -2
  8. package/esm2020/calendar/lib/calendar.component.mjs +3 -3
  9. package/esm2020/lib/interaction/dialog/dialog.content.mjs +2 -0
  10. package/esm2020/lib/interaction/dialog/index.mjs +2 -1
  11. package/esm2020/lib/interaction/popover/popover.component.mjs +9 -3
  12. package/esm2020/lib/interaction/popover/popover.service.mjs +2 -3
  13. package/esm2020/lib/layout/style/style.color.directive.mjs +5 -5
  14. package/esm2020/lib/layout/style/style.directive.mjs +6 -6
  15. package/esm2020/lib/layout/style/style.mjs +7 -1
  16. package/fesm2015/dereekb-dbx-web-calendar.mjs +1 -1
  17. package/fesm2015/dereekb-dbx-web-calendar.mjs.map +1 -1
  18. package/fesm2015/dereekb-dbx-web.mjs +25 -13
  19. package/fesm2015/dereekb-dbx-web.mjs.map +1 -1
  20. package/fesm2020/dereekb-dbx-web-calendar.mjs +1 -1
  21. package/fesm2020/dereekb-dbx-web-calendar.mjs.map +1 -1
  22. package/fesm2020/dereekb-dbx-web.mjs +25 -13
  23. package/fesm2020/dereekb-dbx-web.mjs.map +1 -1
  24. package/lib/extension/calendar/_calendar.scss +7 -0
  25. package/lib/interaction/dialog/dialog.content.d.ts +2 -0
  26. package/lib/interaction/dialog/index.d.ts +1 -0
  27. package/lib/interaction/popover/popover.component.d.ts +6 -1
  28. package/lib/interaction/popover/popover.service.d.ts +0 -1
  29. package/lib/layout/style/_style.scss +26 -0
  30. package/lib/layout/style/style.color.directive.d.ts +1 -1
  31. package/lib/layout/style/style.d.ts +3 -3
  32. package/lib/layout/style/style.directive.d.ts +1 -1
  33. package/lib/layout/text/_text.scss +7 -10
  34. package/mapbox/package.json +3 -3
  35. package/package.json +3 -3
  36. package/table/package.json +3 -3
@@ -51,6 +51,13 @@ $calendar-content-border-consideration: 2px;
51
51
  }
52
52
  }
53
53
 
54
+ .dbx-calendar-controls-right {
55
+ display: inline-flex;
56
+ align-items: flex-end;
57
+ justify-content: flex-end;
58
+ flex-wrap: wrap;
59
+ }
60
+
54
61
  .dbx-calendar-content {
55
62
  height: 100%;
56
63
 
@@ -0,0 +1,2 @@
1
+ import { MatDialogConfig } from '@angular/material/dialog';
2
+ export declare type DbxDialogContentConfig = Omit<MatDialogConfig, 'viewContainerRef' | 'injector' | 'id' | 'data'>;
@@ -3,4 +3,5 @@ export * from './dialog.content.close.component';
3
3
  export * from './dialog.content.footer.component';
4
4
  export * from './dialog.content.component';
5
5
  export * from './dialog.action.directive';
6
+ export * from './dialog.content';
6
7
  export * from './dialog.module';
@@ -3,7 +3,7 @@ import { NgOverlayContainerConfiguration, NgPopoverCloseType, NgPopoverRef } fro
3
3
  import { AbstractTransitionWatcherDirective, DbxRouterTransitionService, DbxInjectionComponentConfig } from '@dereekb/dbx-core';
4
4
  import { LockSet } from '@dereekb/rxjs';
5
5
  import { CompactContextStore } from '../../layout/compact';
6
- import { Maybe, PromiseOrValue } from '@dereekb/util';
6
+ import { Maybe, PromiseOrValue, SpaceSeparatedCssClasses } from '@dereekb/util';
7
7
  import { DbxPopoverController, DbxPopoverKey } from './popover';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare abstract class DbxPopoverComponentController<O, I> extends DbxPopoverController<O, I> {
@@ -34,6 +34,10 @@ export interface DbxPopoverComponentConfig<O, I, T> {
34
34
  * Component to inject into the popover.
35
35
  */
36
36
  componentClass: Type<T>;
37
+ /**
38
+ * Panel classes to add to the popover.
39
+ */
40
+ panelClass?: Maybe<SpaceSeparatedCssClasses>;
37
41
  /**
38
42
  * Data available to the popover.
39
43
  */
@@ -59,6 +63,7 @@ export declare class DbxPopoverComponent<O = unknown, I = unknown, T = unknown>
59
63
  getClosingValueFn?: (value: Maybe<I>, closeType: NgPopoverCloseType) => PromiseOrValue<O | undefined>;
60
64
  constructor(popoverRef: NgPopoverRef<FullDbxPopoverComponentConfig<O, I, T>, O>, compactContextState: CompactContextStore, dbxRouterTransitionService: DbxRouterTransitionService, ngZone: NgZone);
61
65
  get config(): FullDbxPopoverComponentConfig<O, I, T>;
66
+ get panelClass(): Maybe<SpaceSeparatedCssClasses>;
62
67
  get key(): DbxPopoverKey;
63
68
  get data(): Maybe<I>;
64
69
  get triggerCloseKeys(): string[];
@@ -6,7 +6,6 @@ import * as i0 from "@angular/core";
6
6
  export interface DbxPopoverConfigSizing extends Pick<NgOverlayContainerConfiguration, 'originX' | 'originY' | 'height' | 'width' | 'minHeight' | 'minWidth' | 'isResizable'> {
7
7
  }
8
8
  export interface DbxPopoverConfig<O, I, T> extends DbxPopoverComponentConfig<O, I, T>, DbxPopoverConfigSizing {
9
- panelClass?: string;
10
9
  injector?: Injector;
11
10
  }
12
11
  /**
@@ -1,7 +1,11 @@
1
1
  @use 'sass:map';
2
2
  @use 'sass:list';
3
+ @use 'sass:color';
3
4
  @use '../../style/theming';
4
5
 
6
+ $dbx-ok-color-var: --dbx-ok-color;
7
+ $dbx-success-color-var: --dbx-success-color;
8
+
5
9
  // Sections
6
10
  @mixin core() {
7
11
  .dbx-spacer,
@@ -95,6 +99,10 @@
95
99
  $background-text-color: theming.get-color-from-palette($foreground, 'text');
96
100
  $background-color: theming.get-color-from-palette($background, 'background');
97
101
 
102
+ // todo: consider adding color customization or setting as a variable
103
+ $ok-color: color.scale(blue, $lightness: 30%);
104
+ $success-color: green;
105
+
98
106
  .dbx-primary {
99
107
  color: $primary-color;
100
108
  }
@@ -122,6 +130,24 @@
122
130
  color: $warn-color-contrast;
123
131
  }
124
132
 
133
+ .dbx-success {
134
+ color: $success-color;
135
+ }
136
+
137
+ .dbx-success-bg {
138
+ background: $success-color;
139
+ color: $warn-color-contrast;
140
+ }
141
+
142
+ .dbx-ok {
143
+ color: $ok-color;
144
+ }
145
+
146
+ .dbx-ok-bg {
147
+ background: $ok-color;
148
+ color: $warn-color-contrast;
149
+ }
150
+
125
151
  .dbx-grey {
126
152
  color: $grey-color;
127
153
  }
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
5
5
  * Used to apply a background style using a color.
6
6
  */
7
7
  export declare class DbxColorDirective {
8
- style: string;
8
+ cssClass: string;
9
9
  set dbxColor(dbxColor: Maybe<DbxThemeColor | ''>);
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxColorDirective, never>;
11
11
  static ɵdir: i0.ɵɵDirectiveDeclaration<DbxColorDirective, "[dbxColor]", never, { "dbxColor": "dbxColor"; }, {}, never, never, false>;
@@ -1,3 +1,3 @@
1
- import { Maybe } from '@dereekb/util';
2
- export declare type DbxThemeColor = 'primary' | 'accent' | 'warn' | 'background' | 'grey' | 'disabled';
3
- export declare function dbxColorBackground(color: Maybe<DbxThemeColor | ''>): string;
1
+ import { CssClass, Maybe } from '@dereekb/util';
2
+ export declare type DbxThemeColor = 'primary' | 'accent' | 'warn' | 'ok' | 'success' | 'background' | 'grey' | 'disabled';
3
+ export declare function dbxColorBackground(color: Maybe<DbxThemeColor | ''>): CssClass;
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
8
8
  export declare class DbxStyleDirective extends AbstractSubscriptionDirective {
9
9
  readonly styleService: DbxStyleService;
10
10
  private cdRef;
11
- style: string;
11
+ cssClass: string;
12
12
  constructor(styleService: DbxStyleService, cdRef: ChangeDetectorRef);
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxStyleDirective, never>;
14
14
  static ɵdir: i0.ɵɵDirectiveDeclaration<DbxStyleDirective, "dbx-style, [dbxStyle], .dbx-style", never, {}, {}, never, never, false>;
@@ -56,7 +56,14 @@ $dbx-detail-block-content-offset: 30px;
56
56
  padding-left: $dbx-detail-block-content-offset;
57
57
  }
58
58
 
59
+ .dbx-detail-line {
60
+ display: block;
61
+ padding-top: 3px;
62
+ }
63
+
59
64
  .dbx-detail-block {
65
+ display: block;
66
+
60
67
  .dbx-detail-block-header {
61
68
  padding-bottom: 2px;
62
69
 
@@ -147,8 +154,6 @@ $dbx-detail-block-content-offset: 30px;
147
154
  $outlined-text-color: $border-color;
148
155
  }
149
156
 
150
- $ok-color: color.scale(blue, $lightness: 30%);
151
- $success-color: green;
152
157
  $notice-color: #f28600;
153
158
 
154
159
  .dbx-hint,
@@ -160,14 +165,6 @@ $dbx-detail-block-content-offset: 30px;
160
165
  opacity: $faint-opacity;
161
166
  }
162
167
 
163
- .dbx-success {
164
- color: $success-color;
165
- }
166
-
167
- .dbx-ok {
168
- color: $ok-color;
169
- }
170
-
171
168
  .dbx-label,
172
169
  .dbx-sublabel,
173
170
  .dbx-chip-sublabel,
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-web/mapbox",
3
- "version": "9.24.2",
3
+ "version": "9.24.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.1.0",
6
6
  "@angular/core": "^14.1.0",
7
- "@dereekb/dbx-core": "9.24.2",
8
- "@dereekb/dbx-web": "9.24.2",
7
+ "@dereekb/dbx-core": "9.24.4",
8
+ "@dereekb/dbx-web": "9.24.4",
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.24.2",
3
+ "version": "9.24.4",
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.2.0",
10
- "@dereekb/rxjs": "9.24.2",
11
- "@dereekb/dbx-core": "9.24.2",
10
+ "@dereekb/rxjs": "9.24.4",
11
+ "@dereekb/dbx-core": "9.24.4",
12
12
  "change-case": "^4.1.2",
13
13
  "@angular/flex-layout": "^14.0.0-beta.41",
14
14
  "ng-overlay-container": "^14.0.0",
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-web/table",
3
- "version": "9.24.2",
3
+ "version": "9.24.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^14.2.0",
6
6
  "@angular/core": "^14.2.0",
7
- "@dereekb/dbx-core": "9.24.2",
7
+ "@dereekb/dbx-core": "9.24.4",
8
8
  "@angular/material": "^14.2.0",
9
9
  "@angular/forms": "^14.2.0",
10
- "@dereekb/dbx-web": "9.24.2"
10
+ "@dereekb/dbx-web": "9.24.4"
11
11
  },
12
12
  "dependencies": {
13
13
  "tslib": "^2.3.0"