@dereekb/dbx-form 13.22.0 → 13.23.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.
@@ -73,6 +73,7 @@
73
73
 
74
74
  .dbx-form-repeat-array-field > dbx-chip {
75
75
  position: absolute;
76
+ z-index: 1;
76
77
  }
77
78
 
78
79
  .dbx-form-repeat-array-footer {
@@ -88,6 +89,7 @@
88
89
  // uses the same surface so the card stays one continuous tone. Override
89
90
  // --dbx-form-repeat-array-field-elevate-bg to replace the surface outright, or
90
91
  // --dbx-form-repeat-array-field-elevate-tone (percentage) to tune the wash strength.
92
+ position: relative; // containing block for the absolutely-positioned index chip
91
93
  background: var(--dbx-form-repeat-array-field-elevate-bg, color-mix(in srgb, var(--dbx-bg-color-current, var(--mat-sys-primary)) var(--dbx-form-repeat-array-field-elevate-tone, 8%), var(--mat-sys-surface-bright)));
92
94
  border: 4px solid var(--dbx-form-repeat-array-field-elevate-bg, color-mix(in srgb, var(--dbx-bg-color-current, var(--mat-sys-primary)) var(--dbx-form-repeat-array-field-elevate-tone, 8%), var(--mat-sys-surface-bright)));
93
95
  }
@@ -48,14 +48,18 @@ $dbx-forge-form-field-slider-thumb-margin: 22px;
48
48
  width: calc(100% - #{$dbx-forge-form-field-slider-thumb-margin * 2}) !important;
49
49
  }
50
50
 
51
- // List selection field inside the form-field wrapper: reduce padding so the list
52
- // items render at full width within the outlined border. Uses !important to
53
- // override the component's scoped inline styles (ViewEncapsulation.Emulated
54
- // adds attribute selectors that raise specificity above global rules).
51
+ // List selection field inside the form-field wrapper: inset the list from the
52
+ // outlined border on the sides so the card-styled items (12px corner radius)
53
+ // don't clip the rounded outline. The bottom keeps a 1px inset so the scrolled
54
+ // list background doesn't bleed over the lower border, and the top keeps the
55
+ // wrapper's default 16px gap below the notch label. Tune the side inset via
56
+ // --dbx-forge-list-item-field-inline-padding. Uses !important to override the
57
+ // component's scoped inline styles (ViewEncapsulation.Emulated adds attribute
58
+ // selectors that raise specificity above global rules).
55
59
  dbx-forge-form-field-wrapper .dbx-forge-form-field-content:has(dbx-forge-list-selection-field) {
56
- padding-left: 0 !important;
57
- padding-right: 0 !important;
58
- padding-bottom: 0 !important;
60
+ padding-left: var(--dbx-forge-list-item-field-inline-padding, var(--dbx-padding-3)) !important;
61
+ padding-right: var(--dbx-forge-list-item-field-inline-padding, var(--dbx-padding-3)) !important;
62
+ padding-bottom: 1px !important;
59
63
  }
60
64
 
61
65
  // Boolean fields (mat-checkbox / mat-slide-toggle): make the whole content
@@ -121,13 +125,12 @@ $dbx-forge-form-field-slider-thumb-margin: 22px;
121
125
  }
122
126
 
123
127
  .dbx-form-repeat-array-field {
124
- // Per-item index number: render it as a compact, centered badge that lines up with the item
125
- // label — a circle for a single digit, a pill once it spills to double digits instead of the
126
- // default lopsided small-chip rounded rectangle. Square it off (min-width == min-height) and
127
- // center the digit so it reads as a tidy step badge. Size via --dbx-form-repeat-array-index-size.
128
- .dbx-form-repeat-array-bar .dbx-chip {
128
+ // Per-item index number: render it as a compact, centered badge a circle for a single digit,
129
+ // a pill once it spills to double digits. The chip is a direct child of the field div (placed
130
+ // before the bar so it overlays the top-left corner via `position: absolute`). Size via
131
+ // --dbx-form-repeat-array-index-size.
132
+ > .dbx-chip {
129
133
  box-sizing: border-box;
130
- margin-right: 6px;
131
134
  min-width: var(--dbx-form-repeat-array-index-size, 22px);
132
135
  min-height: var(--dbx-form-repeat-array-index-size, 22px);
133
136
  padding: 0 6px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-form",
3
- "version": "13.22.0",
3
+ "version": "13.23.0",
4
4
  "sideEffects": [
5
5
  "*.scss",
6
6
  "*.css"
@@ -14,13 +14,13 @@
14
14
  "@angular/material-date-fns-adapter": "21.2.9",
15
15
  "@angular/platform-browser": "21.2.11",
16
16
  "@bobbyquantum/ngx-editor": "21.0.0",
17
- "@dereekb/date": "13.22.0",
18
- "@dereekb/dbx-core": "13.22.0",
19
- "@dereekb/dbx-web": "13.22.0",
20
- "@dereekb/model": "13.22.0",
21
- "@dereekb/rxjs": "13.22.0",
22
- "@dereekb/util": "13.22.0",
23
- "@dereekb/vitest": "13.22.0",
17
+ "@dereekb/date": "13.23.0",
18
+ "@dereekb/dbx-core": "13.23.0",
19
+ "@dereekb/dbx-web": "13.23.0",
20
+ "@dereekb/model": "13.23.0",
21
+ "@dereekb/rxjs": "13.23.0",
22
+ "@dereekb/util": "13.23.0",
23
+ "@dereekb/vitest": "13.23.0",
24
24
  "@ng-forge/dynamic-forms": "0.10.0-next.4",
25
25
  "@ng-forge/dynamic-forms-material": "0.10.0-next.4",
26
26
  "@ng-web-apis/geolocation": "^5.2.0",