@ethlete/components 1.0.0-next.94 → 1.0.0-next.95
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/CHANGELOG.md +15 -0
- package/design/select.ts +2 -2
- package/fesm2022/ethlete-components.mjs +205 -64
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/match/match-card.component.css +10 -1
- package/src/lib/match/match-participant.component.css +36 -0
- package/src/lib/picture/picture.component.css +15 -0
- package/src/lib/scrollable/headless/scrollable-buttons.component.css +7 -2
- package/src/lib/scrollable/headless/scrollable-masks.component.css +18 -3
- package/src/lib/scrollable/scrollable.component.css +0 -1
- package/types/ethlete-components.d.ts +82 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.0-next.95
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Match card: `showStartTime` keeps the kick-off in the compact row, and `MatchLabels` gains `tbdHome` / `tbdAway` for per-side empty-slot labels (`et-match-participant` takes a `side` input).
|
|
8
|
+
- Add `emblemFallback` (`'initial' | 'shield'`) to `et-match-participant` and `et-match-card`, plus `provideMatchDefaults`. `'shield'` replaces the initial's circle with a neutral crest outline holding the initial.
|
|
9
|
+
- Add `--et-picture-img-transform` and `--et-picture-img-transition` to `et-picture`, so a hover zoom can transform only the inner image while the picture clips it.
|
|
10
|
+
- Add the `--et-scrollable-mask-size` custom property for the et-scrollable edge fade, with the legacy `--mask-size` as fallback, and a `buttons.maskSize` default in `provideScrollableConfig`.
|
|
11
|
+
- Add the `--et-scrollable-buttons-extent` custom property to size the et-scrollable button box independently of the fill. Fix `--et-scrollable-buttons-end-space` applying always: it now applies only while the list can scroll and is not at the end.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- The clear (×) button of `etInputClear`, select, phone, date, time, date-time, date-range, time-range, date-time-range, duration and cascader inputs now shows whenever the field has a value and is interactive, not only while focused.
|
|
16
|
+
- Float the form-field label while a single et-select shows its null option. The clear button stays hidden for it.
|
|
17
|
+
|
|
3
18
|
## 1.0.0-next.94
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/design/select.ts
CHANGED
|
@@ -49,7 +49,7 @@ export type SelectMockOptions = {
|
|
|
49
49
|
placeholder?: string;
|
|
50
50
|
/** The `value` of the option the keyboard points at while the panel is open. */
|
|
51
51
|
active?: string;
|
|
52
|
-
/** Shows the clear button while the field has
|
|
52
|
+
/** Shows the clear button while the field has a value. Defaults to `true`. */
|
|
53
53
|
clearable?: boolean;
|
|
54
54
|
clearLabel?: string;
|
|
55
55
|
/** The app's default color theme name: the panel provides it to the options. */
|
|
@@ -181,7 +181,7 @@ export const select = (options: SelectMockOptions): FormFieldControlMock => {
|
|
|
181
181
|
},
|
|
182
182
|
suffix: (state) => {
|
|
183
183
|
const clear =
|
|
184
|
-
(options.clearable ?? true) && selected &&
|
|
184
|
+
(options.clearable ?? true) && selected && !state.disabled && !state.readonly
|
|
185
185
|
? `<button aria-label="${options.clearLabel ?? 'Clear'}" class="et-input-clear" tabindex="-1" type="button">${iconMarkup(TIMES_ICON)}</button>`
|
|
186
186
|
: '';
|
|
187
187
|
|