@lavalogic/scoria 0.19.4 → 0.19.5
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/dist/Components/Modal.svelte +23 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
<svelte:options runes />
|
|
2
2
|
|
|
3
|
-
<script
|
|
3
|
+
<script
|
|
4
|
+
module
|
|
5
|
+
lang="ts"
|
|
6
|
+
>
|
|
4
7
|
import { DATAMatrix } from '../Helpers/Datamatrix.js';
|
|
5
8
|
import { devCatch, passthrough } from '../Helpers/Helpers.svelte.js';
|
|
6
9
|
import { ColourSet } from '../scss/colours.js';
|
|
@@ -57,7 +60,7 @@
|
|
|
57
60
|
explanation,
|
|
58
61
|
children,
|
|
59
62
|
footer,
|
|
60
|
-
onclose
|
|
63
|
+
onclose,
|
|
61
64
|
}: ModalProps = $props();
|
|
62
65
|
|
|
63
66
|
let dialog: HTMLDialogElement | undefined;
|
|
@@ -160,7 +163,7 @@
|
|
|
160
163
|
size={Size.DoubleXLarge}
|
|
161
164
|
onclick={() => dialog?.close()}
|
|
162
165
|
icon={{
|
|
163
|
-
name: 'cross'
|
|
166
|
+
name: 'cross',
|
|
164
167
|
}}
|
|
165
168
|
onkeydown={handleEsc}
|
|
166
169
|
colourSet={ColourSet.Primary}
|
|
@@ -181,11 +184,17 @@
|
|
|
181
184
|
{#if defaultTimer}
|
|
182
185
|
<!-- class:paused -->
|
|
183
186
|
<div class="bar-container">
|
|
184
|
-
<div
|
|
187
|
+
<div
|
|
188
|
+
class:paused
|
|
189
|
+
class="bar-timer"
|
|
190
|
+
></div>
|
|
185
191
|
</div>
|
|
186
192
|
{/if}
|
|
187
193
|
|
|
188
|
-
<div
|
|
194
|
+
<div
|
|
195
|
+
class="modal-main"
|
|
196
|
+
class:noscroll
|
|
197
|
+
>
|
|
189
198
|
{#if explanation}
|
|
190
199
|
{@render explanation()}
|
|
191
200
|
{/if}
|
|
@@ -201,7 +210,10 @@
|
|
|
201
210
|
<div class="button-barcode-set">
|
|
202
211
|
{#if button.barcodeValue}
|
|
203
212
|
{@const icon = DATAMatrix(button.barcodeValue)}
|
|
204
|
-
<DataMatrixIcon
|
|
213
|
+
<DataMatrixIcon
|
|
214
|
+
title={button.label}
|
|
215
|
+
{icon}
|
|
216
|
+
/>
|
|
205
217
|
{/if}
|
|
206
218
|
<button
|
|
207
219
|
onkeydown={passthrough}
|
|
@@ -215,7 +227,10 @@
|
|
|
215
227
|
<div class="button-barcode-set">
|
|
216
228
|
{#if button.barcodeValue}
|
|
217
229
|
{@const icon = DATAMatrix(button.barcodeValue)}
|
|
218
|
-
<DataMatrixIcon
|
|
230
|
+
<DataMatrixIcon
|
|
231
|
+
title={button.label}
|
|
232
|
+
{icon}
|
|
233
|
+
/>
|
|
219
234
|
{/if}
|
|
220
235
|
<button
|
|
221
236
|
onkeydown={passthrough}
|
|
@@ -486,6 +501,7 @@ form.modal-root {
|
|
|
486
501
|
overflow: visible;
|
|
487
502
|
}
|
|
488
503
|
|
|
504
|
+
.modal-main.noscroll,
|
|
489
505
|
.noscroll {
|
|
490
506
|
overflow: visible;
|
|
491
507
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -132,7 +132,7 @@ export { TooltipContext } from './Contexts/TooltipContext.svelte.js';
|
|
|
132
132
|
export { UntypedInputContext } from './Contexts/UntypedInputContext.svelte.js';
|
|
133
133
|
export { Delay } from './Delay/Delay.js';
|
|
134
134
|
export { DATAMatrix } from './Helpers/Datamatrix.js';
|
|
135
|
-
export { asyncAll, asyncEvery, asyncFilter, asyncFilterIndices, asyncFlatMap, asyncForEach, asyncMap, asyncSleep, asyncSome, autoPluralise, devCatch, generateShortUUID, generateUUID, getCanvasContext, getErrorMessage, gridItem, isDateTuple, isNumberTuple, isValidEmailAddress, localTimeFormat, passthrough, refWrapper, SQLFriendly, SQLFriendlyWithLocalTime, vowels, } from './Helpers/Helpers.svelte.js';
|
|
135
|
+
export { asyncAll, asyncEvery, asyncFilter, asyncFilterIndices, asyncFlatMap, asyncForEach, asyncMap, asyncSleep, asyncSome, autoPluralise, devCatch, generateShortUUID, generateUUID, getCanvasContext, getErrorMessage, gridItem, isDateTuple, isNumberTuple, isValidEmailAddress, loadingText, localTimeFormat, passthrough, refWrapper, SQLFriendly, SQLFriendlyWithLocalTime, vowels, } from './Helpers/Helpers.svelte.js';
|
|
136
136
|
export { type INamed } from './Helpers/INamed.js';
|
|
137
137
|
export { AttributeOperation } from './Types/Internal/AttributeOperation.js';
|
|
138
138
|
export { type BigRadioOption } from './Types/Internal/BigRadioOption.js';
|
package/dist/index.js
CHANGED
|
@@ -132,7 +132,7 @@ export { TooltipContext } from './Contexts/TooltipContext.svelte.js';
|
|
|
132
132
|
export { UntypedInputContext } from './Contexts/UntypedInputContext.svelte.js';
|
|
133
133
|
export { Delay } from './Delay/Delay.js';
|
|
134
134
|
export { DATAMatrix } from './Helpers/Datamatrix.js';
|
|
135
|
-
export { asyncAll, asyncEvery, asyncFilter, asyncFilterIndices, asyncFlatMap, asyncForEach, asyncMap, asyncSleep, asyncSome, autoPluralise, devCatch, generateShortUUID, generateUUID, getCanvasContext, getErrorMessage, gridItem, isDateTuple, isNumberTuple, isValidEmailAddress, localTimeFormat, passthrough, refWrapper, SQLFriendly, SQLFriendlyWithLocalTime, vowels, } from './Helpers/Helpers.svelte.js';
|
|
135
|
+
export { asyncAll, asyncEvery, asyncFilter, asyncFilterIndices, asyncFlatMap, asyncForEach, asyncMap, asyncSleep, asyncSome, autoPluralise, devCatch, generateShortUUID, generateUUID, getCanvasContext, getErrorMessage, gridItem, isDateTuple, isNumberTuple, isValidEmailAddress, loadingText, localTimeFormat, passthrough, refWrapper, SQLFriendly, SQLFriendlyWithLocalTime, vowels, } from './Helpers/Helpers.svelte.js';
|
|
136
136
|
export {} from './Helpers/INamed.js';
|
|
137
137
|
export { AttributeOperation } from './Types/Internal/AttributeOperation.js';
|
|
138
138
|
export {} from './Types/Internal/BigRadioOption.js';
|