@dereekb/dbx-web 13.11.17 → 13.12.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/eslint/package.json +3 -3
- package/fesm2022/dereekb-dbx-web.mjs +457 -61
- package/fesm2022/dereekb-dbx-web.mjs.map +1 -1
- package/lib/extension/pdf/_pdf.scss +30 -0
- package/lib/layout/card/_card.scss +36 -0
- package/lib/layout/content/_content.scss +13 -0
- package/package.json +7 -7
- package/types/dereekb-dbx-web.d.ts +261 -14
|
@@ -10,6 +10,27 @@
|
|
|
10
10
|
margin-top: 12px;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
.dbx-pdf-merge-editor-size-warning,
|
|
14
|
+
.dbx-pdf-merge-editor-size-error {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: 8px;
|
|
18
|
+
padding: 8px 12px;
|
|
19
|
+
margin-top: 12px;
|
|
20
|
+
border-radius: var(--mat-sys-corner-small);
|
|
21
|
+
font: var(--mat-sys-body-medium);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.dbx-pdf-merge-editor-size-warning {
|
|
25
|
+
background-color: var(--mat-sys-tertiary-container);
|
|
26
|
+
color: var(--mat-sys-on-tertiary-container);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.dbx-pdf-merge-editor-size-error {
|
|
30
|
+
background-color: var(--mat-sys-error-container);
|
|
31
|
+
color: var(--mat-sys-on-error-container);
|
|
32
|
+
}
|
|
33
|
+
|
|
13
34
|
// Slot upload
|
|
14
35
|
.dbx-pdf-merge-editor-file-upload-header {
|
|
15
36
|
display: flex;
|
|
@@ -85,6 +106,15 @@
|
|
|
85
106
|
.dbx-pdf-merge-entry-meta {
|
|
86
107
|
display: flex;
|
|
87
108
|
gap: 8px;
|
|
109
|
+
align-items: center;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.dbx-pdf-merge-entry-compression {
|
|
113
|
+
padding: 1px 6px;
|
|
114
|
+
border-radius: var(--mat-sys-corner-extra-small);
|
|
115
|
+
background-color: var(--mat-sys-secondary-container);
|
|
116
|
+
color: var(--mat-sys-on-secondary-container);
|
|
117
|
+
font-size: 11px;
|
|
88
118
|
}
|
|
89
119
|
|
|
90
120
|
// CDK animations
|
|
@@ -4,6 +4,42 @@
|
|
|
4
4
|
|
|
5
5
|
// MARK: Mixin
|
|
6
6
|
@mixin core() {
|
|
7
|
+
/// @dbx-utility mat-card-dbx-color
|
|
8
|
+
/// @intent re-emits the dbx-color background paint at higher specificity than MDC's `.mat-mdc-card` `background-color` rule, so a host-level `[dbxColor]` on `<mat-card>` shows through every appearance variant (elevated / outlined / filled). Tonal opacity is honoured via the existing `--dbx-color-bg-tone` channel; in tonal mode the text color flips to the vibrant theme color so contrast survives the light wash.
|
|
9
|
+
/// @role color
|
|
10
|
+
/// @see-also color, color-bg, color-tonal
|
|
11
|
+
mat-card.dbx-color {
|
|
12
|
+
background: color-mix(in srgb, var(#{theming.$dbx-bg-color-var}) var(#{theming.$dbx-bg-tone-var}, 100%), transparent);
|
|
13
|
+
color: var(#{theming.$dbx-color-var});
|
|
14
|
+
|
|
15
|
+
&.dbx-color-tonal {
|
|
16
|
+
color: var(#{theming.$dbx-bg-color-var});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/// @dbx-utility card-banner
|
|
21
|
+
/// @intent banner-style `<mat-card>` — pair with `[dbxColor]` (+ `[dbxColorTone]`) for the tonal surface. Drop `<mat-card-header>` entirely; put the icon + `<mat-card-title>` row inside `<mat-card-content>` via a `.dbx-card-banner-header` child, and the action buttons inside `<mat-card-footer>`.
|
|
22
|
+
/// @role layout
|
|
23
|
+
/// @see-also color, color-tonal, button-wrap-group
|
|
24
|
+
.dbx-card-banner {
|
|
25
|
+
> mat-card-content > .dbx-card-banner-header {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: var(--dbx-padding-3);
|
|
29
|
+
|
|
30
|
+
> dbx-icon-tile {
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
> mat-card-footer {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-wrap: wrap;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: var(--dbx-padding-2);
|
|
40
|
+
padding: var(--dbx-padding-2) var(--dbx-padding-3) var(--dbx-padding-3);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
7
43
|
}
|
|
8
44
|
|
|
9
45
|
@mixin theme($theme-config) {
|
|
@@ -88,6 +88,11 @@ $dbx-border-opacity-default: 20%;
|
|
|
88
88
|
overflow-y: scroll;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
/// @dbx-utility content-pit-floating-button
|
|
92
|
+
/// @intent floats a button (typically a `dbx-button`) to the top-right of a `.dbx-content-pit` using `position: sticky` so it stays visible while the pit scrolls — used for inline pit actions like expand/collapse or copy
|
|
93
|
+
/// @role layout
|
|
94
|
+
/// @parent content-pit
|
|
95
|
+
/// @see-also dbx-content-pit, dbx-content-pit-scrollable
|
|
91
96
|
.dbx-content-pit-floating-button {
|
|
92
97
|
float: right;
|
|
93
98
|
position: sticky;
|
|
@@ -123,6 +128,10 @@ $dbx-border-opacity-default: 20%;
|
|
|
123
128
|
height: 100% !important;
|
|
124
129
|
}
|
|
125
130
|
|
|
131
|
+
/// @dbx-utility content-scroll-lock
|
|
132
|
+
/// @intent locks a region to `height: 100%` with `overflow: hidden` so its children can scroll independently of the page — wrap potentially-infinite-height content (calendars, virtual lists) and let the inner element handle its own `overflow: scroll`
|
|
133
|
+
/// @role layout
|
|
134
|
+
/// @see-also dbx-content, dbx-content-page, dbx-scroll-content
|
|
126
135
|
.dbx-content-scroll-lock {
|
|
127
136
|
height: 100%;
|
|
128
137
|
overflow: hidden;
|
|
@@ -200,6 +209,10 @@ $dbx-border-opacity-default: 20%;
|
|
|
200
209
|
padding: $content-container-padding-small-screen;
|
|
201
210
|
}
|
|
202
211
|
|
|
212
|
+
/// @dbx-utility scroll-content
|
|
213
|
+
/// @intent adds a small bottom padding (~42px) to a scrollable content region so the last item doesn't sit flush against the bottom edge of the viewport — apply to the scrolling element itself (typically a `.dbx-content-container` rendered inside a `dbx-two-column-right`, `dbx-content-page`, or any host whose body overflows)
|
|
214
|
+
/// @role spacing
|
|
215
|
+
/// @see-also dbx-content-container, dbx-content-page, dbx-content-pit-scrollable
|
|
203
216
|
.dbx-scroll-content {
|
|
204
217
|
padding-bottom: $scroll-content-bottom-padding;
|
|
205
218
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-web",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.12.0",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.scss",
|
|
6
6
|
"*.css"
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"@angular/material": "^21.2.9",
|
|
14
14
|
"@angular/platform-browser": "21.2.11",
|
|
15
15
|
"@cantoo/pdf-lib": "^2.6.5",
|
|
16
|
-
"@dereekb/browser": "13.
|
|
17
|
-
"@dereekb/date": "13.
|
|
18
|
-
"@dereekb/dbx-core": "13.
|
|
19
|
-
"@dereekb/rxjs": "13.
|
|
20
|
-
"@dereekb/util": "13.
|
|
21
|
-
"@dereekb/vitest": "13.
|
|
16
|
+
"@dereekb/browser": "13.12.0",
|
|
17
|
+
"@dereekb/date": "13.12.0",
|
|
18
|
+
"@dereekb/dbx-core": "13.12.0",
|
|
19
|
+
"@dereekb/rxjs": "13.12.0",
|
|
20
|
+
"@dereekb/util": "13.12.0",
|
|
21
|
+
"@dereekb/vitest": "13.12.0",
|
|
22
22
|
"@ngbracket/ngx-layout": "^21.0.0",
|
|
23
23
|
"@ngrx/component-store": "^21.1.0",
|
|
24
24
|
"@ngrx/effects": "^21.1.0",
|