@elasticias/ui 1.0.49 → 1.0.50
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/fesm2022/elasticias-ui.mjs +288 -68
- package/fesm2022/elasticias-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/_patterns.scss +59 -1
- package/types/elasticias-ui.d.ts +285 -118
package/package.json
CHANGED
package/styles/_patterns.scss
CHANGED
|
@@ -890,6 +890,8 @@
|
|
|
890
890
|
font-family: var(--font-mono);
|
|
891
891
|
font-size: 12px;
|
|
892
892
|
font-weight: 700;
|
|
893
|
+
/* Hyphenated codes (HA-100) break at the hyphen otherwise. */
|
|
894
|
+
white-space: nowrap;
|
|
893
895
|
}
|
|
894
896
|
|
|
895
897
|
.tbl .num {
|
|
@@ -2806,11 +2808,17 @@
|
|
|
2806
2808
|
flex-wrap: wrap;
|
|
2807
2809
|
}
|
|
2808
2810
|
|
|
2811
|
+
/* The identity takes a real basis, not 0: with `flex: 1` it always "fit",
|
|
2812
|
+
so a screen with many actions squeezed it to a sliver and cut its notices
|
|
2813
|
+
("Prise en charge par ...") to an ellipsis. Now, when the identity and the
|
|
2814
|
+
actions cannot share a row at that width, the actions wrap onto a row of
|
|
2815
|
+
their own and the identity keeps the whole line. A screen may tune the
|
|
2816
|
+
basis with --detail-toolbar-identity-min. */
|
|
2809
2817
|
.detail-toolbar .left {
|
|
2810
2818
|
display: flex;
|
|
2811
2819
|
align-items: center;
|
|
2812
2820
|
gap: 10px;
|
|
2813
|
-
flex: 1;
|
|
2821
|
+
flex: 1 1 var(--detail-toolbar-identity-min, 22rem);
|
|
2814
2822
|
min-width: 0;
|
|
2815
2823
|
flex-wrap: wrap;
|
|
2816
2824
|
}
|
|
@@ -2826,6 +2834,22 @@
|
|
|
2826
2834
|
color: var(--text-soft);
|
|
2827
2835
|
}
|
|
2828
2836
|
|
|
2837
|
+
/* Keeps its width: removing it would narrow the group and let it unwrap. */
|
|
2838
|
+
.detail-toolbar .sep.is-hidden {
|
|
2839
|
+
visibility: hidden;
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
/* Print … Save travel together with their separator, so a wrap never leaves
|
|
2843
|
+
the "|" at the end of one row and Save alone on the next. The group keeps
|
|
2844
|
+
the far end of its row, like Save on a phone. */
|
|
2845
|
+
.detail-toolbar .std {
|
|
2846
|
+
display: inline-flex;
|
|
2847
|
+
align-items: center;
|
|
2848
|
+
gap: 6px;
|
|
2849
|
+
flex-wrap: nowrap;
|
|
2850
|
+
margin-inline-start: auto;
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2829
2853
|
.detail-toolbar .right {
|
|
2830
2854
|
display: flex;
|
|
2831
2855
|
align-items: center;
|
|
@@ -4876,6 +4900,28 @@ input.ef-input[type='number'] {
|
|
|
4876
4900
|
}
|
|
4877
4901
|
}
|
|
4878
4902
|
|
|
4903
|
+
/* A keepInView action is the screen's next step (confirm, prepare, ...): on a
|
|
4904
|
+
phone it keeps its word beside the icon. Icons alone could not tell
|
|
4905
|
+
"Confirmer" (pi-check) from "Livrer" (pi-check-circle). Declared after the
|
|
4906
|
+
two rules above that hide toolbar labels and square the buttons, because
|
|
4907
|
+
a media query adds no specificity. */
|
|
4908
|
+
@media (max-width: 767px) {
|
|
4909
|
+
.detail-toolbar .right .btn.btn--keep-label > span {
|
|
4910
|
+
display: inline;
|
|
4911
|
+
}
|
|
4912
|
+
|
|
4913
|
+
.detail-toolbar .right .btn.btn--keep-label {
|
|
4914
|
+
padding: 7px 14px;
|
|
4915
|
+
}
|
|
4916
|
+
}
|
|
4917
|
+
|
|
4918
|
+
@media (pointer: coarse) and (max-width: 767px) {
|
|
4919
|
+
.detail-toolbar .right .btn.btn--keep-label {
|
|
4920
|
+
inline-size: auto;
|
|
4921
|
+
padding: 0 16px;
|
|
4922
|
+
}
|
|
4923
|
+
}
|
|
4924
|
+
|
|
4879
4925
|
/* The toolbar's overflow trigger is the shared row-actions kebab. Inside
|
|
4880
4926
|
the toolbar it is a real 48px target (not the table's overhang trick,
|
|
4881
4927
|
which needs a row to reserve the margin), and a flex item that may not
|
|
@@ -4976,3 +5022,15 @@ input.ef-input[type='number'] {
|
|
|
4976
5022
|
padding-block-end: calc(env(safe-area-inset-bottom, 0px) + 20px + var(--ef-order-fab-h) + var(--s-3));
|
|
4977
5023
|
}
|
|
4978
5024
|
}
|
|
5025
|
+
|
|
5026
|
+
/* .f-more ("More filters") on a touch device: reaches the 48px touch target.
|
|
5027
|
+
By pointer rather than width, like the other touch rules. Last in the file
|
|
5028
|
+
so the base .f-more min-height does not win. The row aligns its items to
|
|
5029
|
+
center, so the pills beside it keep their own height. */
|
|
5030
|
+
@media (pointer: coarse) {
|
|
5031
|
+
.f-pill,
|
|
5032
|
+
.f-more,
|
|
5033
|
+
.f-clear {
|
|
5034
|
+
min-height: var(--hit-touch);
|
|
5035
|
+
}
|
|
5036
|
+
}
|