iss-ctrl 0.0.14 → 0.0.16

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 (25) hide show
  1. package/fesm2022/{iss-ctrl-iss-ctrl-CDk4_RVA.mjs → iss-ctrl-iss-ctrl-CUlx5aua.mjs} +56 -51
  2. package/fesm2022/iss-ctrl-iss-ctrl-CUlx5aua.mjs.map +1 -0
  3. package/fesm2022/{iss-ctrl-load-event-5MIEPp-j.mjs → iss-ctrl-load-event-B2HY44Lg.mjs} +3 -3
  4. package/fesm2022/{iss-ctrl-load-event-5MIEPp-j.mjs.map → iss-ctrl-load-event-B2HY44Lg.mjs.map} +1 -1
  5. package/fesm2022/{iss-ctrl-load-options-event-D4gOR-3h.mjs → iss-ctrl-load-options-event-Bvfi4PZq.mjs} +3 -3
  6. package/fesm2022/{iss-ctrl-load-options-event-D4gOR-3h.mjs.map → iss-ctrl-load-options-event-Bvfi4PZq.mjs.map} +1 -1
  7. package/fesm2022/{iss-ctrl-load-value-event-a_CrlH07.mjs → iss-ctrl-load-value-event-Bq6nRj3K.mjs} +3 -3
  8. package/fesm2022/{iss-ctrl-load-value-event-a_CrlH07.mjs.map → iss-ctrl-load-value-event-Bq6nRj3K.mjs.map} +1 -1
  9. package/fesm2022/{iss-ctrl-note.field-DIU49W4s.mjs → iss-ctrl-note.field-DpXXdNd0.mjs} +2 -2
  10. package/fesm2022/{iss-ctrl-note.field-DIU49W4s.mjs.map → iss-ctrl-note.field-DpXXdNd0.mjs.map} +1 -1
  11. package/fesm2022/{iss-ctrl-replace-api-keys-8o7-XCdX.mjs → iss-ctrl-replace-api-keys-Dbdwgl4g.mjs} +2 -2
  12. package/fesm2022/{iss-ctrl-replace-api-keys-8o7-XCdX.mjs.map → iss-ctrl-replace-api-keys-Dbdwgl4g.mjs.map} +1 -1
  13. package/fesm2022/{iss-ctrl-set-value-event-BJGXPwPV.mjs → iss-ctrl-set-value-event-CXVuywEr.mjs} +2 -2
  14. package/fesm2022/{iss-ctrl-set-value-event-BJGXPwPV.mjs.map → iss-ctrl-set-value-event-CXVuywEr.mjs.map} +1 -1
  15. package/fesm2022/{iss-ctrl-table.field-Ca6d7LvU.mjs → iss-ctrl-table.field-C5SDeghW.mjs} +2 -2
  16. package/fesm2022/{iss-ctrl-table.field-Ca6d7LvU.mjs.map → iss-ctrl-table.field-C5SDeghW.mjs.map} +1 -1
  17. package/fesm2022/{iss-ctrl-trigger-based-on-json-value-Jp6lQkIa.mjs → iss-ctrl-trigger-based-on-json-value-Ck642ldN.mjs} +2 -2
  18. package/fesm2022/{iss-ctrl-trigger-based-on-json-value-Jp6lQkIa.mjs.map → iss-ctrl-trigger-based-on-json-value-Ck642ldN.mjs.map} +1 -1
  19. package/fesm2022/{iss-ctrl-user-picker.field-CFK871y8.mjs → iss-ctrl-user-picker.field-69Tqgu2G.mjs} +2 -2
  20. package/fesm2022/{iss-ctrl-user-picker.field-CFK871y8.mjs.map → iss-ctrl-user-picker.field-69Tqgu2G.mjs.map} +1 -1
  21. package/fesm2022/iss-ctrl.mjs +1 -1
  22. package/package.json +1 -1
  23. package/types/iss-ctrl.d.ts +3 -3
  24. package/upgrade.scss +8 -17
  25. package/fesm2022/iss-ctrl-iss-ctrl-CDk4_RVA.mjs.map +0 -1
@@ -52,9 +52,9 @@ interface Hint {
52
52
  *
53
53
  * ### Content projection
54
54
  * Controls that render a `mat-form-field` project `<label>` into the floating label.
55
- * An omitted label or one that interpolates to an empty string — leaves `<mat-label>`
56
- * empty, and `upgrade.scss` collapses the floating-label space for it. No label markup is
57
- * removed at runtime, so a label that arrives later simply shows up.
55
+ * `upgrade.scss` reveals that space only while the projected `<label>` carries text, so an
56
+ * omitted label or one that interpolates to an empty string — collapses it. No label markup
57
+ * is removed at runtime, so a label that arrives later simply shows up.
58
58
  *
59
59
  * @example
60
60
  * ```html
package/upgrade.scss CHANGED
@@ -11,10 +11,6 @@ mat-form-field {
11
11
  --input-radius: 8px;
12
12
 
13
13
  &.mat-mdc-form-field {
14
- .mdc-floating-label {
15
- display: block !important;
16
- }
17
-
18
14
  .mdc-text-field--invalid.mat-mdc-text-field-wrapper {
19
15
  border: 1px solid var(--red) !important;
20
16
  }
@@ -50,23 +46,18 @@ mat-error {
50
46
 
51
47
  }
52
48
 
53
- mat-form-field.mat-mdc-form-field:has(mat-label) .mat-mdc-form-field-infix {
54
- padding-top: 10px !important;
55
- }
56
-
57
- // mat-form-field always renders its floating label, so a control whose label is omitted or
58
- // interpolates to "" would keep the space above the input. Both cases leave an :empty element
59
- // — <mat-label> itself when nothing is projected, the projected <label> when its text is empty
60
- // — which is what these selectors collapse. Keep <mat-label> free of whitespace in templates,
61
- // or it is never :empty.
62
- mat-form-field.mat-mdc-form-field:has(mat-label:empty),
63
- mat-form-field.mat-mdc-form-field:has(mat-label > label:empty) {
49
+ // The basic-ui form-field reset hides .mdc-floating-label for every mat-form-field, so the label
50
+ // space is opt-in: only a control that projects a <label> carrying actual text turns it back on,
51
+ // together with the padding that space needs. An omitted label leaves <mat-label> without a
52
+ // <label> child, and one that interpolates to "" leaves that child :empty — neither matches, so
53
+ // both collapse with no runtime check, and a label that arrives later simply shows up.
54
+ mat-form-field.mat-mdc-form-field:has(mat-label > label:not(:empty)) {
64
55
  .mdc-floating-label {
65
- display: none !important;
56
+ display: block !important;
66
57
  }
67
58
 
68
59
  .mat-mdc-form-field-infix {
69
- padding-top: 0 !important;
60
+ padding-top: 10px !important;
70
61
  }
71
62
  }
72
63