@lavalogic/scoria 0.40.13 → 0.40.15
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/README.md +58 -58
- package/dist/Components/AccordionGroup.svelte +35 -46
- package/dist/Components/AccordionGroupButton.svelte +68 -76
- package/dist/Components/Action.svelte +103 -135
- package/dist/Components/AlertModal.svelte +171 -190
- package/dist/Components/AppointmentCalendar/AppointmentCalendar.svelte +614 -697
- package/dist/Components/Base/BaseModal.svelte +90 -116
- package/dist/Components/Base/ContextWrapper.svelte +67 -72
- package/dist/Components/Base/Pagination.svelte +173 -196
- package/dist/Components/Base/Snippets.svelte +34 -36
- package/dist/Components/BigRadioSet.svelte +36 -38
- package/dist/Components/Bubble.svelte +78 -101
- package/dist/Components/Button.svelte +175 -208
- package/dist/Components/Checkbox.svelte +75 -86
- package/dist/Components/CollapsibleCard.svelte +72 -87
- package/dist/Components/CollapsibleMenuGroup.svelte +53 -57
- package/dist/Components/ConditionBuilder/ConditionBuilder.svelte +39 -64
- package/dist/Components/Contexts/ContextMenu.svelte +141 -156
- package/dist/Components/Contexts/ContextMenuDivider.svelte +15 -15
- package/dist/Components/Contexts/ContextMenuOption.svelte +53 -60
- package/dist/Components/Contexts/Toast.svelte +81 -86
- package/dist/Components/Contexts/ToastContainer.svelte +58 -62
- package/dist/Components/Contexts/Tooltip.svelte +36 -37
- package/dist/Components/DataMatrixIcon.svelte +95 -108
- package/dist/Components/DateInput.svelte +118 -146
- package/dist/Components/DatePicker.svelte +255 -294
- package/dist/Components/DesktopModal.svelte +70 -90
- package/dist/Components/Dial.svelte +167 -197
- package/dist/Components/DimensionInput.svelte +124 -169
- package/dist/Components/DragMenu/DragMenuHolder.svelte +98 -114
- package/dist/Components/DragMenu/DraggableCard.svelte +64 -76
- package/dist/Components/FileCard.svelte +21 -24
- package/dist/Components/FileUpload.svelte +190 -225
- package/dist/Components/GridInput.svelte +159 -196
- package/dist/Components/GridInputSet.svelte +24 -29
- package/dist/Components/HorizontalTabGroup.svelte +73 -89
- package/dist/Components/HorizontalTabGroupButton.svelte +40 -44
- package/dist/Components/Icon.svelte +99 -128
- package/dist/Components/Icons.js +357 -357
- package/dist/Components/InfoAlert.svelte +35 -38
- package/dist/Components/LoadingAnimation.svelte +691 -755
- package/dist/Components/LoadingModal.svelte +36 -44
- package/dist/Components/LoadingOverlay.svelte +22 -26
- package/dist/Components/Modal.svelte +204 -254
- package/dist/Components/MultiSelect.svelte +186 -216
- package/dist/Components/Nav/Nav.svelte +94 -110
- package/dist/Components/Nav/NavServiceMenuList.svelte +57 -61
- package/dist/Components/Nav/NavTab.svelte +58 -62
- package/dist/Components/Nav/ServiceMenuItem.svelte +103 -111
- package/dist/Components/Nav/ServicesNav.svelte +72 -79
- package/dist/Components/NumberInput.svelte +121 -155
- package/dist/Components/OptionCards.svelte +62 -73
- package/dist/Components/PageHeading.svelte +23 -25
- package/dist/Components/PasswordInput.svelte +69 -88
- package/dist/Components/PopoverButton.svelte +151 -0
- package/dist/Components/PopoverButton.svelte.d.ts +9 -0
- package/dist/Components/PopoverButtonProps.d.ts +21 -0
- package/dist/Components/PopoverButtonProps.js +1 -0
- package/dist/Components/Portal.svelte +29 -35
- package/dist/Components/ProgressBubble.svelte +91 -106
- package/dist/Components/QuerySelect.svelte +260 -346
- package/dist/Components/SidebarPanel.svelte +34 -36
- package/dist/Components/SingleSelect.svelte +196 -244
- package/dist/Components/StepButton.svelte +65 -70
- package/dist/Components/StepForm.svelte +115 -135
- package/dist/Components/Switch.svelte +57 -69
- package/dist/Components/Table/ARCHITECTURE.md +298 -298
- package/dist/Components/Table/Body/QuickSearchCell.svelte +578 -655
- package/dist/Components/Table/Body/Rows/ColumnHighlight.svelte +42 -51
- package/dist/Components/Table/Body/Rows/ColumnList.svelte +42 -58
- package/dist/Components/Table/Body/Rows/ColumnListRow.svelte +403 -442
- package/dist/Components/Table/Body/Rows/Columns/AccessorComponent.svelte +51 -78
- package/dist/Components/Table/Body/Rows/Columns/ActionsCell.svelte +165 -184
- package/dist/Components/Table/Body/Rows/Columns/BubbleCell.svelte +110 -123
- package/dist/Components/Table/Body/Rows/Columns/ExpandCell.svelte +134 -160
- package/dist/Components/Table/Body/Rows/Columns/FocusableImmutableCell.svelte +190 -231
- package/dist/Components/Table/Body/Rows/Columns/ProgressCell.svelte +82 -104
- package/dist/Components/Table/Body/Rows/Columns/TableAction.svelte +52 -87
- package/dist/Components/Table/Body/Rows/Columns/TableCheckbox.svelte +122 -150
- package/dist/Components/Table/Body/Rows/Columns/TableColumn.svelte +132 -159
- package/dist/Components/Table/Body/Rows/Columns/TableDatePicker.svelte +190 -236
- package/dist/Components/Table/Body/Rows/Columns/TableNumberInput.svelte +173 -211
- package/dist/Components/Table/Body/Rows/Columns/TableQuerySelect.svelte +204 -244
- package/dist/Components/Table/Body/Rows/Columns/TableRowSelectionCheckbox.svelte +140 -177
- package/dist/Components/Table/Body/Rows/Columns/TableSelect.svelte +188 -217
- package/dist/Components/Table/Body/Rows/Columns/TableTextInput.svelte +173 -193
- package/dist/Components/Table/Body/Rows/Columns/ValidityCell.svelte +166 -187
- package/dist/Components/Table/Body/Rows/TableRow.svelte +245 -288
- package/dist/Components/Table/Body/TableBody.svelte +141 -154
- package/dist/Components/Table/Headers/HighlightAllHeader.svelte +35 -41
- package/dist/Components/Table/Headers/SelectAllHeader.svelte +24 -30
- package/dist/Components/Table/Headers/TableHead.svelte +348 -402
- package/dist/Components/Table/Misc/ColumnPanel.svelte +37 -39
- package/dist/Components/Table/Misc/ColumnPanelModal.svelte +35 -39
- package/dist/Components/Table/Misc/FilterInput.svelte +556 -619
- package/dist/Components/Table/Misc/FilterPanel.svelte +170 -183
- package/dist/Components/Table/Misc/FilterPanelModal.svelte +25 -31
- package/dist/Components/Table/Misc/ShareViewModal.svelte +252 -281
- package/dist/Components/Table/Misc/SidePanel.svelte +32 -35
- package/dist/Components/Table/Misc/TableConfigurationModal.svelte +574 -629
- package/dist/Components/Table/Misc/TableFooter.svelte +326 -332
- package/dist/Components/Table/Misc/TableHorizontalBar.svelte +134 -140
- package/dist/Components/Table/Misc/TableSidebar.svelte +183 -198
- package/dist/Components/Table/Misc/TableViewDropdown.svelte +83 -103
- package/dist/Components/Table/Misc/ToolboxPanel.svelte +83 -100
- package/dist/Components/Table/Misc/ToolboxPanelModal.svelte +88 -107
- package/dist/Components/Table/Misc/UpdateViewOptionsModal.svelte +163 -190
- package/dist/Components/Table/NestedTable.svelte +102 -128
- package/dist/Components/Table/Table.svelte +531 -663
- package/dist/Components/Test/TestContextConsumer.svelte +11 -13
- package/dist/Components/TextArea.svelte +95 -130
- package/dist/Components/TextInput.svelte +125 -176
- package/dist/Components/ThreeStateRadio.svelte +111 -130
- package/dist/Components/Touch/BoolCard.svelte +33 -45
- package/dist/Components/Touch/DateModal.svelte +164 -204
- package/dist/Components/Touch/EditCard.svelte +48 -59
- package/dist/Components/Touch/InfoCard.svelte +28 -31
- package/dist/Components/Touch/InfoTextCard.svelte +26 -28
- package/dist/Components/Touch/ModalExplanation.svelte +15 -17
- package/dist/Components/Touch/NumberKeyboard.svelte +181 -218
- package/dist/Components/Touch/NumberModal.svelte +59 -79
- package/dist/Components/Touch/PlusMinusCard.svelte +43 -46
- package/dist/Components/Touch/SelectModal.svelte +111 -126
- package/dist/Components/Touch/SummaryCard.svelte +80 -93
- package/dist/Components/Touch/TextAreaModal.svelte +72 -94
- package/dist/Components/Touch/TextModal.svelte +77 -105
- package/dist/Components/Touch/TouchCard.svelte +31 -33
- package/dist/Components/Touch/TouchModal.svelte +214 -270
- package/dist/Components/Touch/UtilityButton.svelte +88 -109
- package/dist/Components/VerticalTabGroup.svelte +60 -78
- package/dist/Components/VerticalTabGroupButton.svelte +54 -58
- package/dist/Helpers/Datamatrix.d.ts +19 -19
- package/dist/Helpers/Datamatrix.js +291 -291
- package/dist/Types/Examples/ExampleModal.svelte +31 -35
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/scss/_basics.scss +12 -12
- package/dist/scss/_colours.scss +134 -134
- package/dist/scss/_mixins.scss +3392 -3392
- package/dist/scss/_motion.scss +57 -57
- package/dist/scss/_sizing.scss +85 -85
- package/dist/scss/_transitions.scss +8 -8
- package/package.json +1 -1
|
@@ -1,108 +1,80 @@
|
|
|
1
|
-
<svelte:options runes />
|
|
2
|
-
|
|
3
|
-
<script lang="ts">
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
let {
|
|
15
|
-
header,
|
|
16
|
-
value = $bindable(''),
|
|
17
|
-
label,
|
|
18
|
-
placeholder,
|
|
19
|
-
cancelEditing,
|
|
20
|
-
confirm,
|
|
21
|
-
uppercase = false,
|
|
22
|
-
inputRef = $bindable(),
|
|
23
|
-
isValid: _isValid = true,
|
|
24
|
-
mandatory = true,
|
|
25
|
-
explanation,
|
|
26
|
-
width,
|
|
27
|
-
minWidth,
|
|
28
|
-
staticWidth,
|
|
29
|
-
minHeight,
|
|
30
|
-
height,
|
|
31
|
-
}: TextModalProps = $props();
|
|
32
|
-
|
|
33
|
-
onMount(() => {
|
|
34
|
-
tick()
|
|
35
|
-
.then(() => {
|
|
36
|
-
inputRef?.select();
|
|
37
|
-
})
|
|
38
|
-
.catch(devCatch);
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
async function resetValue() {
|
|
42
|
-
// Cleared back to empty: callers wanting reset-to-original semantics
|
|
43
|
-
// should re-pass the original value via the bound prop.
|
|
44
|
-
value = '';
|
|
45
|
-
await tick();
|
|
1
|
+
<svelte:options runes />
|
|
2
|
+
|
|
3
|
+
<script lang="ts">import { useAsyncFlag } from "../../Helpers/AsyncFlag.svelte.js";
|
|
4
|
+
import { devCatch, passthrough } from "../../Helpers/Helpers.svelte.js";
|
|
5
|
+
import { Colour } from "../../scss/colours.js";
|
|
6
|
+
import { InputVariant } from "../../Types/Internal/InputVariant.js";
|
|
7
|
+
import { Size } from "../../Types/Internal/Size.js";
|
|
8
|
+
import { onMount, tick } from "svelte";
|
|
9
|
+
import TextInput from "../TextInput.svelte";
|
|
10
|
+
import TouchModal from "./TouchModal.svelte";
|
|
11
|
+
let { header, value = $bindable(""), label, placeholder, cancelEditing, confirm, uppercase = false, inputRef = $bindable(), isValid: _isValid = true, mandatory = true, explanation, width, minWidth, staticWidth, minHeight, height } = $props();
|
|
12
|
+
onMount(() => {
|
|
13
|
+
tick().then(() => {
|
|
46
14
|
inputRef?.select();
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
{
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
{
|
|
64
|
-
{
|
|
65
|
-
{
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
{
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
</
|
|
105
|
-
|
|
15
|
+
}).catch(devCatch);
|
|
16
|
+
});
|
|
17
|
+
async function resetValue() {
|
|
18
|
+
// Cleared back to empty: callers wanting reset-to-original semantics
|
|
19
|
+
// should re-pass the original value via the bound prop.
|
|
20
|
+
value = "";
|
|
21
|
+
await tick();
|
|
22
|
+
inputRef?.select();
|
|
23
|
+
}
|
|
24
|
+
const isValid = useAsyncFlag(() => typeof _isValid === "function" ? _isValid(value) : _isValid, true);
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<TouchModal
|
|
28
|
+
onclose={() => {
|
|
29
|
+
cancelEditing();
|
|
30
|
+
}}
|
|
31
|
+
{header}
|
|
32
|
+
{mandatory}
|
|
33
|
+
{width}
|
|
34
|
+
{minWidth}
|
|
35
|
+
{staticWidth}
|
|
36
|
+
{minHeight}
|
|
37
|
+
{height}
|
|
38
|
+
onsubmit={(e: SubmitEvent) => {
|
|
39
|
+
e.preventDefault();
|
|
40
|
+
confirm(value);
|
|
41
|
+
}}
|
|
42
|
+
{explanation}
|
|
43
|
+
>
|
|
44
|
+
<TextInput
|
|
45
|
+
{uppercase}
|
|
46
|
+
labelTop={label}
|
|
47
|
+
{placeholder}
|
|
48
|
+
variant={InputVariant.Modal}
|
|
49
|
+
bind:inputRef
|
|
50
|
+
bind:value
|
|
51
|
+
showErrorColours
|
|
52
|
+
invalid={!isValid.value}
|
|
53
|
+
rightIcon={{
|
|
54
|
+
name: 'cross',
|
|
55
|
+
size: Size.Large,
|
|
56
|
+
colour: Colour['$font-primary'],
|
|
57
|
+
}}
|
|
58
|
+
onRightIconClick={resetValue}
|
|
59
|
+
/>
|
|
60
|
+
{#snippet footer()}
|
|
61
|
+
<div class="modal-footer">
|
|
62
|
+
<button
|
|
63
|
+
onkeydown={passthrough}
|
|
64
|
+
type="submit"
|
|
65
|
+
disabled={!isValid.value}>Confirm</button
|
|
66
|
+
>
|
|
67
|
+
<button
|
|
68
|
+
onkeydown={passthrough}
|
|
69
|
+
type="button"
|
|
70
|
+
onclick={() => {
|
|
71
|
+
cancelEditing();
|
|
72
|
+
}}>Cancel</button
|
|
73
|
+
>
|
|
74
|
+
</div>
|
|
75
|
+
{/snippet}
|
|
76
|
+
</TouchModal>
|
|
77
|
+
|
|
106
78
|
<style>dialog {
|
|
107
79
|
overflow: clip;
|
|
108
80
|
background-color: #e9ecf1;
|
|
@@ -350,4 +322,4 @@ button {
|
|
|
350
322
|
display: block;
|
|
351
323
|
border-width: 2px;
|
|
352
324
|
border-radius: 4px;
|
|
353
|
-
}</style>
|
|
325
|
+
}</style>
|
|
@@ -1,35 +1,33 @@
|
|
|
1
|
-
<svelte:options runes />
|
|
2
|
-
|
|
3
|
-
<script lang="ts">
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</div>
|
|
32
|
-
|
|
1
|
+
<svelte:options runes />
|
|
2
|
+
|
|
3
|
+
<script lang="ts">import { Colour } from "../../scss/colours.js";
|
|
4
|
+
import Action from "../Action.svelte";
|
|
5
|
+
let { children, additionalButtons, highlighted = $bindable(false) } = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<div
|
|
9
|
+
class="card"
|
|
10
|
+
class:highlighted
|
|
11
|
+
>
|
|
12
|
+
<div class="float-right">
|
|
13
|
+
{#if additionalButtons}
|
|
14
|
+
{@render additionalButtons()}
|
|
15
|
+
{/if}
|
|
16
|
+
<Action
|
|
17
|
+
icon={{
|
|
18
|
+
name: 'star-banner',
|
|
19
|
+
colour: highlighted ? Colour['$brand-primary'] : Colour['$ui-blue-4'],
|
|
20
|
+
}}
|
|
21
|
+
backgroundColour={Colour['$transparent-0']}
|
|
22
|
+
label="Highlight Card"
|
|
23
|
+
onclick={() => {
|
|
24
|
+
highlighted = !highlighted;
|
|
25
|
+
}}
|
|
26
|
+
/>
|
|
27
|
+
</div>
|
|
28
|
+
{@render children()}
|
|
29
|
+
</div>
|
|
30
|
+
|
|
33
31
|
<style>.card {
|
|
34
32
|
color: #3a4952;
|
|
35
33
|
fill: #3a4952;
|
|
@@ -119,4 +117,4 @@
|
|
|
119
117
|
padding: 0.375rem 0.5rem;
|
|
120
118
|
margin-left: 0;
|
|
121
119
|
width: fit-content;
|
|
122
|
-
}</style>
|
|
120
|
+
}</style>
|