@lavalogic/scoria 0.40.19 → 0.40.20
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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<script
|
|
4
4
|
lang="ts"
|
|
5
5
|
module
|
|
6
|
-
>import { cssLength
|
|
6
|
+
>import { cssLength } from "../Helpers/Helpers.svelte.js";
|
|
7
7
|
import { InputVariant } from "../Types/Internal/InputVariant.js";
|
|
8
8
|
import { Size } from "../Types/Internal/Size.js";
|
|
9
9
|
import Icon from "./Icon.svelte";
|
|
@@ -28,11 +28,13 @@ function submitAncestorForm(e) {
|
|
|
28
28
|
// DateInput rendered inside e.g. the Order Details collapsible card.
|
|
29
29
|
const isInvalid = $derived(required && !value?.trim() || invalid);
|
|
30
30
|
function onkeydown(e) {
|
|
31
|
+
// Only Enter is intercepted (to submit an ancestor form). All other
|
|
32
|
+
// keys — crucially the digit keys used to type a date/time — must pass
|
|
33
|
+
// through; `passthrough` was blurring the input on every alphanumeric
|
|
34
|
+
// keypress, which made the field impossible to type into.
|
|
31
35
|
if (e.key === "Enter") {
|
|
32
36
|
submitAncestorForm(e);
|
|
33
|
-
return;
|
|
34
37
|
}
|
|
35
|
-
passthrough(e);
|
|
36
38
|
}
|
|
37
39
|
function ondblclick() {
|
|
38
40
|
openPicker(inputRef);
|
|
@@ -867,4 +867,16 @@ export declare const icons: {
|
|
|
867
867
|
readonly box: 24;
|
|
868
868
|
readonly svg: "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M17.4338 3C17.7851 3 18.1106 3.1843 18.2913 3.4855L20.8575 7.76249C20.9507 7.9179 21 8.09574 21 8.27698V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V8.27698C3 8.09574 3.04926 7.9179 3.14251 7.76249L5.7087 3.4855C5.88942 3.1843 6.21493 3 6.56619 3H17.4338ZM14.5 5H17.2L19 8H15.5L14.5 5ZM12.5 5H11.5L10.5 8V13H13.5V8L12.5 5ZM9.5 5H6.8L5 8H8.5L9.5 5ZM8.5 10H5V19H19V10H15.5V14C15.5 14.5523 15.0523 15 14.5 15H9.5C8.94772 15 8.5 14.5523 8.5 14V10Z\"/>";
|
|
869
869
|
};
|
|
870
|
+
readonly doors: {
|
|
871
|
+
readonly box: 24;
|
|
872
|
+
readonly svg: "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 4C19 4 22 8 22 8V9H20V20H4V9H2V8C2 8 5 4 12 4ZM12 6C8 6 6 8 6 8V18H8V13H11V18H13V13H16V18H18V8C18 8 16 6 12 6Z\"/>";
|
|
873
|
+
};
|
|
874
|
+
readonly 'door-groups': {
|
|
875
|
+
readonly box: 24;
|
|
876
|
+
readonly svg: "<path d=\"M13 21H11V13H5V21H3V11H13V21Z\"/>\n\t\t\t\t\t\t<path d=\"M17 17H15V9H9V10H7V7H17V17Z\"/>\n\t\t\t\t\t\t<path d=\"M21 13H19V5H13V6H11V3H21V13Z\"/>";
|
|
877
|
+
};
|
|
878
|
+
readonly 'door-schedule': {
|
|
879
|
+
readonly box: 24;
|
|
880
|
+
readonly svg: "<path d=\"M20 22H18V6H6V22H4V3H20V22Z\"/>\n\t\t\t\t\t\t<path d=\"M10.1465 10.8535C10.4615 10.5386 10.9999 10.7616 11 11.207V16.793C10.9999 17.2384 10.4615 17.4614 10.1465 17.1465L7.35352 14.3535C7.1583 14.1583 7.1583 13.8417 7.35352 13.6465L10.1465 10.8535Z\"/>\n\t\t\t\t\t\t<path d=\"M13 11.207C13.0001 10.7616 13.5385 10.5386 13.8535 10.8535L16.6465 13.6465C16.8417 13.8417 16.8417 14.1583 16.6465 14.3535L13.8535 17.1465C13.5385 17.4614 13.0001 17.2384 13 16.793V11.207Z\"/>";
|
|
881
|
+
};
|
|
870
882
|
};
|
package/dist/Components/Icons.js
CHANGED
|
@@ -1238,6 +1238,22 @@ export const icons = {
|
|
|
1238
1238
|
box: 24,
|
|
1239
1239
|
svg: `<path fill-rule="evenodd" clip-rule="evenodd" d="M17.4338 3C17.7851 3 18.1106 3.1843 18.2913 3.4855L20.8575 7.76249C20.9507 7.9179 21 8.09574 21 8.27698V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V8.27698C3 8.09574 3.04926 7.9179 3.14251 7.76249L5.7087 3.4855C5.88942 3.1843 6.21493 3 6.56619 3H17.4338ZM14.5 5H17.2L19 8H15.5L14.5 5ZM12.5 5H11.5L10.5 8V13H13.5V8L12.5 5ZM9.5 5H6.8L5 8H8.5L9.5 5ZM8.5 10H5V19H19V10H15.5V14C15.5 14.5523 15.0523 15 14.5 15H9.5C8.94772 15 8.5 14.5523 8.5 14V10Z"/>`,
|
|
1240
1240
|
},
|
|
1241
|
+
doors: {
|
|
1242
|
+
box: 24,
|
|
1243
|
+
svg: `<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4C19 4 22 8 22 8V9H20V20H4V9H2V8C2 8 5 4 12 4ZM12 6C8 6 6 8 6 8V18H8V13H11V18H13V13H16V18H18V8C18 8 16 6 12 6Z"/>`,
|
|
1244
|
+
},
|
|
1245
|
+
'door-groups': {
|
|
1246
|
+
box: 24,
|
|
1247
|
+
svg: `<path d="M13 21H11V13H5V21H3V11H13V21Z"/>
|
|
1248
|
+
<path d="M17 17H15V9H9V10H7V7H17V17Z"/>
|
|
1249
|
+
<path d="M21 13H19V5H13V6H11V3H21V13Z"/>`,
|
|
1250
|
+
},
|
|
1251
|
+
'door-schedule': {
|
|
1252
|
+
box: 24,
|
|
1253
|
+
svg: `<path d="M20 22H18V6H6V22H4V3H20V22Z"/>
|
|
1254
|
+
<path d="M10.1465 10.8535C10.4615 10.5386 10.9999 10.7616 11 11.207V16.793C10.9999 17.2384 10.4615 17.4614 10.1465 17.1465L7.35352 14.3535C7.1583 14.1583 7.1583 13.8417 7.35352 13.6465L10.1465 10.8535Z"/>
|
|
1255
|
+
<path d="M13 11.207C13.0001 10.7616 13.5385 10.5386 13.8535 10.8535L16.6465 13.6465C16.8417 13.8417 16.8417 14.1583 16.6465 14.3535L13.8535 17.1465C13.5385 17.4614 13.0001 17.2384 13 16.793V11.207Z"/>`,
|
|
1256
|
+
},
|
|
1241
1257
|
};
|
|
1242
1258
|
Object.freeze(icons);
|
|
1243
1259
|
Object.keys(icons).forEach((key) => {
|