@dereekb/dbx-web 13.10.6 → 13.10.7

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.
@@ -12,11 +12,35 @@ $content-navbar-height-var: --dbx-content-navbar-height;
12
12
  $box-max-width-var: --dbx-box-max-width;
13
13
  $content-max-width-var: --dbx-content-max-width;
14
14
 
15
+ /// Padding step 0 — zero spacing. Useful as a reset value where a tier is required.
16
+ /// @intent zero spacing, padding 0, no padding
17
+ /// @role spacing
15
18
  $padding-0-var: --dbx-padding-0;
19
+ /// Padding step 1 — tightest spacing tier. Use between adjacent inline elements.
20
+ /// @intent tight spacing, padding 1, 2px spacing
21
+ /// @role spacing
22
+ /// @utility .dbx-p1, .dbx-mb1
16
23
  $padding-1-var: --dbx-padding-1;
24
+ /// Padding step 2 — small spacing tier. Use between sibling form rows or chip lists.
25
+ /// @intent small spacing, padding 2, 6px spacing
26
+ /// @role spacing
27
+ /// @utility .dbx-p2, .dbx-mb2
17
28
  $padding-2-var: --dbx-padding-2;
29
+ /// Padding step 3 — default content padding. The canonical "card padding" / "section gap".
30
+ /// @intent section gap, default padding, card padding, 12px spacing, padding 3
31
+ /// @role spacing
32
+ /// @anti-use Don't hardcode `padding: 12px` — reach for this var or a `.dbx-p3` utility.
33
+ /// @utility .dbx-p3, .dbx-mb3, .dbx-mt3
18
34
  $padding-3-var: --dbx-padding-3;
35
+ /// Padding step 4 — emphasised spacing. Use between top-level sections.
36
+ /// @intent emphasised spacing, padding 4, 18px spacing
37
+ /// @role spacing
38
+ /// @utility .dbx-p4, .dbx-mb4
19
39
  $padding-4-var: --dbx-padding-4;
40
+ /// Padding step 5 — page padding. Use around full-width page surfaces.
41
+ /// @intent page padding, padding 5, 24px spacing
42
+ /// @role spacing
43
+ /// @utility .dbx-p5, .dbx-mb5
20
44
  $padding-5-var: --dbx-padding-5;
21
45
 
22
46
  $two-column-left-width-var: --dbx-two-column-left-width;
@@ -25,16 +49,57 @@ $dbx-color-var: --dbx-color-current;
25
49
  $dbx-bg-color-var: --dbx-bg-color-current;
26
50
  $dbx-bg-tone-var: --dbx-color-bg-tone;
27
51
 
52
+ /// dbx primary brand color. Aliased from `--mat-sys-primary` so theme switches flow through.
53
+ /// @intent primary color, brand color, primary action color
54
+ /// @role color
55
+ /// @see --mat-sys-primary
28
56
  $dbx-primary-color-var: --dbx-primary-color;
57
+ /// dbx secondary brand color. Aliased from `--mat-sys-secondary`.
58
+ /// @intent secondary color, supporting accent
59
+ /// @role color
60
+ /// @see --mat-sys-secondary
29
61
  $dbx-secondary-color-var: --dbx-secondary-color;
62
+ /// dbx tertiary brand color. Aliased from `--mat-sys-tertiary`.
63
+ /// @intent tertiary color, accent color
64
+ /// @role color
65
+ /// @see --mat-sys-tertiary
30
66
  $dbx-tertiary-color-var: --dbx-tertiary-color;
67
+ /// dbx accent color. Alias for tertiary so legacy `accent` keeps working.
68
+ /// @intent accent color, highlight color
69
+ /// @role color
70
+ /// @see --mat-sys-tertiary
31
71
  $dbx-accent-color-var: --dbx-accent-color;
72
+ /// dbx warn/error color. Aliased from `--mat-sys-error`.
73
+ /// @intent warn color, error color, destructive color
74
+ /// @role color
75
+ /// @see --mat-sys-error
32
76
  $dbx-warn-color-var: --dbx-warn-color;
77
+ /// dbx notice color. Custom palette entry from the dbx theme config (no Material equivalent). Use for informational callouts.
78
+ /// @intent notice color, info color, informational callout, attention color
79
+ /// @role color
33
80
  $dbx-notice-color-var: --dbx-notice-color;
81
+ /// dbx success color. Custom palette entry from the dbx theme config (no Material equivalent). Use for confirmation / positive states.
82
+ /// @intent success color, positive color, confirmation color, ok-state color
83
+ /// @role color
34
84
  $dbx-success-color-var: --dbx-success-color;
85
+ /// dbx ok color. Custom palette entry from the dbx theme config (no Material equivalent). Use for neutral acknowledged states.
86
+ /// @intent ok color, neutral acknowledged color, completed color
87
+ /// @role color
35
88
  $dbx-ok-color-var: --dbx-ok-color;
89
+ /// dbx grey color. Aliased from `--mat-sys-outline` for neutral chrome / muted accents.
90
+ /// @intent grey color, neutral color, muted accent color
91
+ /// @role color
92
+ /// @see --mat-sys-outline
36
93
  $dbx-grey-color-var: --dbx-grey-color;
94
+ /// dbx disabled color. Aliased from `--mat-sys-outline-variant` — used for disabled control surfaces and dimmed accents.
95
+ /// @intent disabled color, dimmed color, inactive color
96
+ /// @role color
97
+ /// @see --mat-sys-outline-variant
37
98
  $dbx-disabled-color-var: --dbx-disabled-color;
99
+ /// dbx default color. Aliased from `--mat-sys-on-surface` — the canonical "default" foreground when no semantic role applies.
100
+ /// @intent default color, neutral default, fallback color
101
+ /// @role color
102
+ /// @see --mat-sys-on-surface
38
103
  $dbx-default-color-var: --dbx-default-color;
39
104
 
40
105
  $dbx-primary-color-contrast-var: --dbx-primary-color-contrast;
@@ -50,30 +115,128 @@ $dbx-disabled-color-contrast-var: --dbx-disabled-color-contrast;
50
115
  $dbx-default-color-contrast-var: --dbx-default-color-contrast;
51
116
 
52
117
  // Surface & outline variables (aliased from --mat-sys-* system variables)
118
+ /// Default surface background. Aliased from `--mat-sys-surface`.
119
+ /// @intent base surface, page background, surface background, app background
120
+ /// @role surface
121
+ /// @anti-use Don't hardcode `background: #fff`; this token flips automatically in dark mode.
122
+ /// @primitive content-box
123
+ /// @see --mat-sys-surface
53
124
  $dbx-surface-color-var: --dbx-surface-color;
125
+ /// Container surface — the canonical card / content-box background. Aliased from `--mat-sys-surface-container`.
126
+ /// @intent card background, container surface, raised surface
127
+ /// @role surface
128
+ /// @anti-use Don't hardcode `background: #f8f9fa`; use this var so dark mode flips automatically.
129
+ /// @primitive content-box
130
+ /// @see --mat-sys-surface-container
54
131
  $dbx-surface-container-color-var: --dbx-surface-container-color;
132
+ /// Default body text on surfaces. Aliased from `--mat-sys-on-surface`.
133
+ /// @intent body text color, default foreground, primary text
134
+ /// @role text-color
135
+ /// @see --mat-sys-on-surface
55
136
  $dbx-on-surface-color-var: --dbx-on-surface-color;
137
+ /// Hint / secondary text color. Aliased from `--mat-sys-on-surface-variant`.
138
+ /// @intent hint text color, secondary text, subtitle text, muted text, caption text
139
+ /// @role text-color
140
+ /// @anti-use Don't write `color: rgba(0,0,0,0.6)` for hint text — use this var.
141
+ /// @utility .dbx-text-hint
142
+ /// @see --mat-sys-on-surface-variant
56
143
  $dbx-on-surface-variant-color-var: --dbx-on-surface-variant-color;
144
+ /// Border / divider color. Aliased from `--mat-sys-outline`.
145
+ /// @intent border color, divider color, outline color
146
+ /// @role color
147
+ /// @see --mat-sys-outline
57
148
  $dbx-outline-color-var: --dbx-outline-color;
149
+ /// Subtle border color. Aliased from `--mat-sys-outline-variant`.
150
+ /// @intent subtle border color, low-contrast outline, decorative divider
151
+ /// @role color
152
+ /// @see --mat-sys-outline-variant
58
153
  $dbx-outline-variant-color-var: --dbx-outline-variant-color;
154
+ /// Error/destructive color (alias for warn). Aliased from `--mat-sys-error`.
155
+ /// @intent error color, destructive color
156
+ /// @role color
157
+ /// @see --mat-sys-error
59
158
  $dbx-error-color-var: --dbx-error-color;
60
159
 
160
+ /// Per-app additional offset subtracted from the app-height base. Set to a non-zero value to shrink `--dbx-app-height` by a fixed amount (e.g. for a sticky footer). Defaults to `0px`.
161
+ /// @intent app height offset, app height adjustment, shrink app height
162
+ /// @role size
163
+ /// @see --dbx-app-height
164
+ /// @see --dbx-app-height-base
61
165
  $dbx-app-height-additional-offset-var: --dbx-app-height-additional-offset;
166
+ /// Base app height before the additional offset. Computed as `100vh - (top-banner + bottom-banner)`. Set by the `app-height()` mixin.
167
+ /// @intent app height base, viewport minus banners
168
+ /// @role size
169
+ /// @see --dbx-app-height
62
170
  $dbx-app-height-base-var: --dbx-app-height-base;
171
+ /// Final app height available to the page. Equal to `app-height-base - app-height-additional-offset`. The `.dbx-app-height` / `.dbx-app-height-max` utilities consume this directly.
172
+ /// @intent app height, viewport-bound app height, full app area height
173
+ /// @role size
174
+ /// @utility .dbx-app-height, .dbx-app-height-max
175
+ /// @see --dbx-app-height-base
176
+ /// @see --dbx-app-height-additional-offset
63
177
  $dbx-app-height-var: --dbx-app-height;
64
178
 
179
+ /// Per-page additional offset subtracted from the page-height base. Use to shrink `--dbx-page-height` on pages that overlay extra chrome. Defaults to `0px`.
180
+ /// @intent page height offset, page height adjustment, shrink page height
181
+ /// @role size
182
+ /// @see --dbx-page-height
183
+ /// @see --dbx-page-height-base
65
184
  $dbx-page-height-additional-offset-var: --dbx-page-height-additional-offset;
185
+ /// Base page height before the additional offset. Computed as `app-height - page-navbar-height`.
186
+ /// @intent page height base, app height minus page navbar
187
+ /// @role size
188
+ /// @see --dbx-page-height
66
189
  $dbx-page-height-base-var: --dbx-page-height-base;
190
+ /// Final page height inside a page navbar. Equal to `page-height-base - page-height-additional-offset`. The `.dbx-page-height` / `.dbx-page-height-max` utilities consume this directly.
191
+ /// @intent page height, page area height, page-without-navbar height
192
+ /// @role size
193
+ /// @utility .dbx-page-height, .dbx-page-height-max
194
+ /// @see --dbx-page-height-base
195
+ /// @see --dbx-page-height-additional-offset
67
196
  $dbx-page-height-var: --dbx-page-height;
68
197
 
198
+ /// Per-content additional offset subtracted from the content-height base. Use to reserve space for sticky toolbars inside a content area. Defaults to `0px`.
199
+ /// @intent content height offset, content height adjustment, shrink content height
200
+ /// @role size
201
+ /// @see --dbx-content-height
202
+ /// @see --dbx-content-height-base
69
203
  $dbx-content-height-additional-offset-var: --dbx-content-height-additional-offset;
204
+ /// Number of content navbars stacked above the content area, used to compute `--dbx-content-height-base`. Defaults to `0`.
205
+ /// @intent content headers count, stacked content navbar count
206
+ /// @role misc
207
+ /// @see --dbx-content-height-base
70
208
  $dbx-content-headers-count-var: --dbx-content-headers-count;
209
+ /// Base content height before the additional offset. Computed as `page-height - (content-navbar-height * content-headers-count)`.
210
+ /// @intent content height base, page height minus content navbars
211
+ /// @role size
212
+ /// @see --dbx-content-height
71
213
  $dbx-content-height-base-var: --dbx-content-height-base;
214
+ /// Final content height inside one or more content navbars. Equal to `content-height-base - content-height-additional-offset`. The `.dbx-content-height` / `.dbx-content-height-max` utilities consume this directly.
215
+ /// @intent content height, content area height, content-without-navbar height
216
+ /// @role size
217
+ /// @utility .dbx-content-height, .dbx-content-height-max
218
+ /// @see --dbx-content-height-base
219
+ /// @see --dbx-content-height-additional-offset
72
220
  $dbx-content-height-var: --dbx-content-height;
221
+ /// Nested content height — content height minus one content-navbar tier, for nested content scrolls. Equal to `content-height - content-navbar-height`.
222
+ /// @intent nested content height, content minus one navbar
223
+ /// @role size
224
+ /// @utility .dbx-nested-content-height, .dbx-nested-content-height-max
225
+ /// @see --dbx-content-height
226
+ /// @see --dbx-content-navbar-height
73
227
  $dbx-nested-content-height-var: --dbx-nested-content-height;
74
228
 
229
+ /// Default avatar diameter for `<dbx-avatar>`.
230
+ /// @intent avatar size, default avatar diameter
231
+ /// @role size
75
232
  $dbx-avatar-size-var: --dbx-avatar-size;
233
+ /// Large avatar diameter for `<dbx-avatar>`.
234
+ /// @intent avatar large size, big avatar
235
+ /// @role size
76
236
  $dbx-avatar-large-size-var: --dbx-avatar-large-size;
237
+ /// Small avatar diameter for `<dbx-avatar>`.
238
+ /// @intent avatar small size, compact avatar
239
+ /// @role size
77
240
  $dbx-avatar-small-size-var: --dbx-avatar-small-size;
78
241
 
79
242
  // vars
@@ -160,6 +323,10 @@ $dbx-outline-color: var($dbx-outline-color-var);
160
323
  $dbx-outline-variant-color: var($dbx-outline-variant-color-var);
161
324
  $dbx-error-color: var($dbx-error-color-var);
162
325
 
326
+ /// Border radius for the `[dbxContentPit]` rounded variant. Defaults to `var(--mat-sys-corner-medium)`.
327
+ /// @intent pit radius, rounded pit corner, content pit radius
328
+ /// @role radius
329
+ /// @see --mat-sys-corner-medium
163
330
  $dbx-content-pit-rounded-border-radius-var: --dbx-content-pit-rounded-border-radius;
164
331
  $dbx-content-pit-rounded-border-radius: var($dbx-content-pit-rounded-border-radius-var);
165
332
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-web",
3
- "version": "13.10.6",
3
+ "version": "13.10.7",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^21.2.8",
6
6
  "@angular/common": "21.2.10",
@@ -9,12 +9,12 @@
9
9
  "@angular/material": "^21.2.8",
10
10
  "@angular/platform-browser": "21.2.10",
11
11
  "@cantoo/pdf-lib": "^2.6.5",
12
- "@dereekb/browser": "13.10.6",
13
- "@dereekb/date": "13.10.6",
14
- "@dereekb/dbx-core": "13.10.6",
15
- "@dereekb/rxjs": "13.10.6",
16
- "@dereekb/util": "13.10.6",
17
- "@dereekb/vitest": "13.10.6",
12
+ "@dereekb/browser": "13.10.7",
13
+ "@dereekb/date": "13.10.7",
14
+ "@dereekb/dbx-core": "13.10.7",
15
+ "@dereekb/rxjs": "13.10.7",
16
+ "@dereekb/util": "13.10.7",
17
+ "@dereekb/vitest": "13.10.7",
18
18
  "@ngbracket/ngx-layout": "^21.0.0",
19
19
  "@ngrx/component-store": "^21.1.0",
20
20
  "@ngrx/effects": "^21.1.0",
@@ -11,7 +11,8 @@ import * as MapboxGl from 'mapbox-gl';
11
11
  import { Map as Map$1, MapEventType, MapOptions } from 'mapbox-gl';
12
12
  import * as _dereekb_dbx_core from '@dereekb/dbx-core';
13
13
  import { DbxInjectionComponentConfig, DbxInjectionComponentConfigWithoutInjector, ClickableAnchor } from '@dereekb/dbx-core';
14
- import { ObservableOrValue, ObservableOrValueGetter, SubscriptionObject } from '@dereekb/rxjs';
14
+ import * as _dereekb_rxjs from '@dereekb/rxjs';
15
+ import { ObservableOrValue, ObservableOrValueGetter } from '@dereekb/rxjs';
15
16
  import * as _dereekb_dbx_web_mapbox from '@dereekb/dbx-web/mapbox';
16
17
  import { DbxThemeColor, ResizedEvent } from '@dereekb/dbx-web';
17
18
  import { MatDrawerContainer } from '@angular/material/sidenav';
@@ -543,7 +544,7 @@ type DbxMapboxLayoutMode = 'side' | 'push';
543
544
  *
544
545
  * Requires a TwoColumnsContextStore to be provided.
545
546
  */
546
- declare class DbxMapboxLayoutComponent implements OnInit, OnDestroy {
547
+ declare class DbxMapboxLayoutComponent implements OnInit {
547
548
  readonly dbxMapboxService: DbxMapboxService;
548
549
  readonly dbxMapboxMapStore: DbxMapboxMapStore;
549
550
  private readonly _viewResized;
@@ -577,7 +578,6 @@ declare class DbxMapboxLayoutComponent implements OnInit, OnDestroy {
577
578
  private readonly _reszieSyncSub;
578
579
  private readonly _toggleSyncSub;
579
580
  ngOnInit(): void;
580
- ngOnDestroy(): void;
581
581
  viewResized(event: ResizedEvent): void;
582
582
  drawerOpened(opened: boolean): void;
583
583
  toggleDrawer(open?: Maybe<boolean>): void;
@@ -635,7 +635,7 @@ declare class DbxMapboxMenuComponent {
635
635
  }>;
636
636
  protected readonly _openCloseEffect: i0.EffectRef;
637
637
  readonly active$: rxjs.Observable<boolean>;
638
- protected readonly _sub: SubscriptionObject<rxjs.Unsubscribable>;
638
+ protected readonly _sub: _dereekb_rxjs.SubscriptionObject<rxjs.Unsubscribable>;
639
639
  private readonly _menuCloseSub;
640
640
  private readonly _preventRightClick;
641
641
  constructor();