@lavalogic/scoria 0.0.13 → 0.0.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/dist/Components/Button.svelte +0 -3
- package/dist/Components/Contexts/ContextMenuOption.svelte +0 -3
- package/dist/Components/DatePicker.svelte +1 -6
- package/dist/Components/DimensionInput.svelte +5 -6
- package/dist/Components/DimensionInput.svelte.d.ts +4 -4
- package/dist/Components/FileUpload.svelte +4 -2
- package/dist/Components/GridInput.svelte +3 -3
- package/dist/Components/MultiSelect.svelte +0 -4
- package/dist/Components/ProgressBubble.svelte +1 -2
- package/dist/Components/Table/Body/QuickSearchCell.svelte +0 -9
- package/dist/Components/Table/Body/Rows/ColumnListRow.svelte +1 -5
- package/dist/Components/Table/Body/Rows/Columns/TableAction.svelte +2 -2
- package/dist/Components/Table/Body/Rows/Columns/TableCheckbox.svelte +1 -2
- package/dist/Components/Table/Body/Rows/Columns/TableColumn.svelte +6 -7
- package/dist/Components/Table/Body/Rows/Columns/TableDatePicker.svelte +2 -5
- package/dist/Components/Table/Body/Rows/Columns/TableNumberInput.svelte +0 -3
- package/dist/Components/Table/Body/Rows/Columns/TableQuerySelect.svelte +8 -6
- package/dist/Components/Table/Body/Rows/Columns/TableSelect.svelte +12 -19
- package/dist/Components/Table/Body/Rows/Columns/TableTextInput.svelte +2 -5
- package/dist/Components/Table/Body/Rows/TableRow.svelte +3 -17
- package/dist/Components/Table/Headers/TableHead.svelte +1 -5
- package/dist/Components/Table/Misc/FilterInput.svelte +10 -27
- package/dist/Components/Table/Table.svelte +1 -2
- package/dist/Components/Table/Types/Columns/Definitions/ColumnDef.svelte.js +6 -5
- package/dist/Components/Table/Types/Context/TableContext.svelte.js +11 -30
- package/dist/Components/Table/Types/DataRepository/LocalTableDataRepository.svelte.d.ts +0 -1
- package/dist/Components/Table/Types/DataRepository/LocalTableDataRepository.svelte.js +3 -16
- package/dist/Components/Table/Types/DataRepository/TableDataRepository.svelte.js +2 -5
- package/dist/Components/Table/Types/Filtering/CustomRemoteFilters.d.ts +1 -2
- package/dist/Components/Table/Types/Focus/TableFocusDetails.svelte.js +1 -5
- package/dist/Components/Touch/DateModal.svelte +0 -5
- package/dist/Components/Touch/UtilityButton.svelte +12 -7
- package/dist/Components/Touch/UtilityButton.svelte.d.ts +1 -1
- package/dist/Contexts/UntypedInputContext.svelte.d.ts +2 -1
- package/dist/Contexts/UntypedInputContext.svelte.js +1 -17
- package/dist/Helpers/Helpers.svelte.d.ts +21 -95
- package/dist/Helpers/Helpers.svelte.js +54 -395
- package/dist/Types/Examples/ExampleItem.d.ts +3 -3
- package/dist/Types/Internal/Misc.d.ts +12 -267
- package/dist/Types/Internal/Misc.js +1 -129
- package/dist/index.d.ts +4 -76
- package/dist/index.js +4 -76
- package/package.json +16 -16
- package/dist/Components/Table/Types/DataRepository/RemoteTableDataRepository.svelte.d.ts +0 -74
- package/dist/Components/Table/Types/DataRepository/RemoteTableDataRepository.svelte.js +0 -521
- package/dist/Components/Table/Types/Filtering/CustomProxyFilter.d.ts +0 -10
- package/dist/Components/Table/Types/Filtering/CustomProxyFilter.js +0 -1
- package/dist/Types/Internal/ApplicationIdentifier.d.ts +0 -39
- package/dist/Types/Internal/ApplicationIdentifier.js +0 -2080
- package/dist/Types/Internal/FloService.d.ts +0 -7
- package/dist/Types/Internal/FloService.js +0 -30
- package/dist/Types/Requests/IFillablePodLineDateRequestBody.d.ts +0 -13
- package/dist/Types/Requests/IFillablePodLineDateRequestBody.js +0 -10
- package/dist/Types/Requests/IRequiredPodLineDateRequestBody.d.ts +0 -14
- package/dist/Types/Requests/IRequiredPodLineDateRequestBody.js +0 -8
- package/dist/Types/Requests/IValidatedPodLineDateRequestBody.d.ts +0 -16
- package/dist/Types/Requests/IValidatedPodLineDateRequestBody.js +0 -10
- package/dist/Types/Responses/AddressType.d.ts +0 -3
- package/dist/Types/Responses/AddressType.js +0 -2
- package/dist/Types/Responses/IAddress.d.ts +0 -39
- package/dist/Types/Responses/IAddress.js +0 -30
- package/dist/Types/Responses/IBaseAddress.d.ts +0 -17
- package/dist/Types/Responses/IBaseAddress.js +0 -15
- package/dist/Types/Responses/ICountry.d.ts +0 -16
- package/dist/Types/Responses/ICountry.js +0 -1
- package/dist/Types/Responses/IDBEntry.d.ts +0 -13
- package/dist/Types/Responses/IDBEntry.js +0 -12
- package/dist/Types/Responses/IErrorResponse.d.ts +0 -10
- package/dist/Types/Responses/IErrorResponse.js +0 -1
- package/dist/Types/Responses/ILabelPrinter.d.ts +0 -4
- package/dist/Types/Responses/ILabelPrinter.js +0 -1
- package/dist/Types/Responses/ILaserPrinter.d.ts +0 -4
- package/dist/Types/Responses/ILaserPrinter.js +0 -1
- package/dist/Types/Responses/ILoginResponse.d.ts +0 -8
- package/dist/Types/Responses/ILoginResponse.js +0 -1
- package/dist/Types/Responses/IPaginatedPayload.d.ts +0 -5
- package/dist/Types/Responses/IPaginatedPayload.js +0 -1
- package/dist/Types/Responses/IPaginatedResponse.d.ts +0 -5
- package/dist/Types/Responses/IPaginatedResponse.js +0 -1
- package/dist/Types/Responses/IPagination.d.ts +0 -9
- package/dist/Types/Responses/IPagination.js +0 -1
- package/dist/Types/Responses/IPayload.d.ts +0 -3
- package/dist/Types/Responses/IPayload.js +0 -1
- package/dist/Types/Responses/IPrinter.d.ts +0 -11
- package/dist/Types/Responses/IPrinter.js +0 -1
- package/dist/Types/Responses/IProcessTypeSelectionMethodOutboundType.d.ts +0 -18
- package/dist/Types/Responses/IProcessTypeSelectionMethodOutboundType.js +0 -12
- package/dist/Types/Responses/IProcessTypeSelectionMethodWarehouseCustomer.d.ts +0 -20
- package/dist/Types/Responses/IProcessTypeSelectionMethodWarehouseCustomer.js +0 -14
- package/dist/Types/Responses/IProcessTypeSelectionMethodWarehouseCustomerType.d.ts +0 -20
- package/dist/Types/Responses/IProcessTypeSelectionMethodWarehouseCustomerType.js +0 -14
- package/dist/Types/Responses/IProductCategory.d.ts +0 -19
- package/dist/Types/Responses/IProductCategory.js +0 -13
- package/dist/Types/Responses/IProductCategoryDetails.d.ts +0 -33
- package/dist/Types/Responses/IProductCategoryDetails.js +0 -13
- package/dist/Types/Responses/IProductIgnoreOnAllocationOutboundType.d.ts +0 -17
- package/dist/Types/Responses/IProductIgnoreOnAllocationOutboundType.js +0 -11
- package/dist/Types/Responses/IProductLocation.d.ts +0 -23
- package/dist/Types/Responses/IProductLocation.js +0 -17
- package/dist/Types/Responses/IResponse.d.ts +0 -8
- package/dist/Types/Responses/IResponse.js +0 -1
- package/dist/Types/Responses/IStockSortationMethodCustomer.d.ts +0 -18
- package/dist/Types/Responses/IStockSortationMethodCustomer.js +0 -12
- package/dist/Types/Responses/Pods/IAttributeTypeWithAI.d.ts +0 -8
- package/dist/Types/Responses/Pods/IAttributeTypeWithAI.js +0 -1
- package/dist/Types/Responses/Pods/IBatchType.d.ts +0 -5
- package/dist/Types/Responses/Pods/IBatchType.js +0 -1
- package/dist/Types/Responses/Pods/IDateType.d.ts +0 -6
- package/dist/Types/Responses/Pods/IDateType.js +0 -1
- package/dist/Types/Responses/Pods/IFillablePodLineAttribute.d.ts +0 -10
- package/dist/Types/Responses/Pods/IFillablePodLineAttribute.js +0 -9
- package/dist/Types/Responses/Pods/IFillablePodLineBatch.d.ts +0 -18
- package/dist/Types/Responses/Pods/IFillablePodLineBatch.js +0 -12
- package/dist/Types/Responses/Pods/IFillablePodLineDate.d.ts +0 -19
- package/dist/Types/Responses/Pods/IFillablePodLineDate.js +0 -13
- package/dist/Types/Responses/Pods/IFillablePodLinePurchaseOrder.d.ts +0 -18
- package/dist/Types/Responses/Pods/IFillablePodLinePurchaseOrder.js +0 -12
- package/dist/Types/Responses/Pods/IFillablePodLineSerial.d.ts +0 -18
- package/dist/Types/Responses/Pods/IFillablePodLineSerial.js +0 -12
- package/dist/Types/Responses/Pods/IFillablePodLineTag.d.ts +0 -18
- package/dist/Types/Responses/Pods/IFillablePodLineTag.js +0 -12
- package/dist/Types/Responses/Pods/IPurchaseOrderType.d.ts +0 -5
- package/dist/Types/Responses/Pods/IPurchaseOrderType.js +0 -1
- package/dist/Types/Responses/Pods/IRequiredOrValidatedAttribute.d.ts +0 -7
- package/dist/Types/Responses/Pods/IRequiredOrValidatedAttribute.js +0 -7
- package/dist/Types/Responses/Pods/IRequiredPodLineBatch.d.ts +0 -18
- package/dist/Types/Responses/Pods/IRequiredPodLineBatch.js +0 -8
- package/dist/Types/Responses/Pods/IRequiredPodLineDate.d.ts +0 -19
- package/dist/Types/Responses/Pods/IRequiredPodLineDate.js +0 -8
- package/dist/Types/Responses/Pods/IRequiredPodLinePurchaseOrder.d.ts +0 -19
- package/dist/Types/Responses/Pods/IRequiredPodLinePurchaseOrder.js +0 -8
- package/dist/Types/Responses/Pods/IRequiredPodLineSerial.d.ts +0 -19
- package/dist/Types/Responses/Pods/IRequiredPodLineSerial.js +0 -8
- package/dist/Types/Responses/Pods/IRequiredPodLineTag.d.ts +0 -19
- package/dist/Types/Responses/Pods/IRequiredPodLineTag.js +0 -8
- package/dist/Types/Responses/Pods/ISerialType.d.ts +0 -6
- package/dist/Types/Responses/Pods/ISerialType.js +0 -1
- package/dist/Types/Responses/Pods/ITagType.d.ts +0 -6
- package/dist/Types/Responses/Pods/ITagType.js +0 -1
- package/dist/Types/Responses/Pods/IValidatedPodLineAttribute.d.ts +0 -13
- package/dist/Types/Responses/Pods/IValidatedPodLineAttribute.js +0 -10
- package/dist/Types/Responses/Pods/IValidatedPodLineBatch.d.ts +0 -19
- package/dist/Types/Responses/Pods/IValidatedPodLineBatch.js +0 -10
- package/dist/Types/Responses/Pods/IValidatedPodLineDate.d.ts +0 -21
- package/dist/Types/Responses/Pods/IValidatedPodLineDate.js +0 -10
- package/dist/Types/Responses/Pods/IValidatedPodLinePurchaseOrder.d.ts +0 -20
- package/dist/Types/Responses/Pods/IValidatedPodLinePurchaseOrder.js +0 -10
- package/dist/Types/Responses/Pods/IValidatedPodLineSerial.d.ts +0 -20
- package/dist/Types/Responses/Pods/IValidatedPodLineSerial.js +0 -10
- package/dist/Types/Responses/Pods/IValidatedPodLineTag.d.ts +0 -20
- package/dist/Types/Responses/Pods/IValidatedPodLineTag.js +0 -10
- package/dist/Types/Responses/Products/IAttributeRule.d.ts +0 -34
- package/dist/Types/Responses/Products/IAttributeRule.js +0 -28
- package/dist/Types/Responses/Products/IBarcode.d.ts +0 -18
- package/dist/Types/Responses/Products/IBarcode.js +0 -12
- package/dist/Types/Responses/Products/IBatchRule.d.ts +0 -36
- package/dist/Types/Responses/Products/IBatchRule.js +0 -9
- package/dist/Types/Responses/Products/ICustomerRule.d.ts +0 -23
- package/dist/Types/Responses/Products/ICustomerRule.js +0 -17
- package/dist/Types/Responses/Products/IDateRule.d.ts +0 -36
- package/dist/Types/Responses/Products/IDateRule.js +0 -9
- package/dist/Types/Responses/Products/IPrice.d.ts +0 -19
- package/dist/Types/Responses/Products/IPrice.js +0 -12
- package/dist/Types/Responses/Products/IProduct.d.ts +0 -436
- package/dist/Types/Responses/Products/IProduct.js +0 -77
- package/dist/Types/Responses/Products/IProductKit.d.ts +0 -24
- package/dist/Types/Responses/Products/IProductKit.js +0 -18
- package/dist/Types/Responses/Products/IProductKitMatrix.d.ts +0 -13
- package/dist/Types/Responses/Products/IProductKitMatrix.js +0 -1
- package/dist/Types/Responses/Products/IProductSupplier.d.ts +0 -18
- package/dist/Types/Responses/Products/IProductSupplier.js +0 -12
- package/dist/Types/Responses/Products/IProductTag.d.ts +0 -33
- package/dist/Types/Responses/Products/IProductTag.js +0 -14
- package/dist/Types/Responses/Products/IProductTagType.d.ts +0 -18
- package/dist/Types/Responses/Products/IProductTagType.js +0 -12
- package/dist/Types/Responses/Products/IProductUnitOfMeasure.d.ts +0 -97
- package/dist/Types/Responses/Products/IProductUnitOfMeasure.js +0 -35
- package/dist/Types/Responses/Products/IProductUnitOfMeasurePrice.d.ts +0 -36
- package/dist/Types/Responses/Products/IProductUnitOfMeasurePrice.js +0 -17
- package/dist/Types/Responses/Products/IPurchaseOrderRule.d.ts +0 -36
- package/dist/Types/Responses/Products/IPurchaseOrderRule.js +0 -9
- package/dist/Types/Responses/Products/ISerialRule.d.ts +0 -36
- package/dist/Types/Responses/Products/ISerialRule.js +0 -9
- package/dist/Types/Responses/Products/ITagRule.d.ts +0 -36
- package/dist/Types/Responses/Products/ITagRule.js +0 -9
- package/dist/Types/Responses/Products/IUnitOfMeasure.d.ts +0 -18
- package/dist/Types/Responses/Products/IUnitOfMeasure.js +0 -12
|
@@ -3,10 +3,7 @@
|
|
|
3
3
|
<script module lang="ts">
|
|
4
4
|
import type { PartialIconProps } from './Icon.svelte';
|
|
5
5
|
import Icon from './Icon.svelte';
|
|
6
|
-
|
|
7
6
|
import { getContext, type Snippet } from 'svelte';
|
|
8
|
-
|
|
9
|
-
import { dev } from '$app/environment';
|
|
10
7
|
import { Size } from '../Types/Internal/Size.js';
|
|
11
8
|
import { Colour, ColourSet } from '../scss/colours.js';
|
|
12
9
|
import { Variant } from '../Types/Internal/Variant.js';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<svelte:options runes />
|
|
2
2
|
|
|
3
3
|
<script lang="ts" module>
|
|
4
|
-
import { dev } from '$app/environment';
|
|
5
4
|
import type { Snippet } from 'svelte';
|
|
6
5
|
|
|
7
6
|
export interface ContextMenuOptionProps {
|
|
@@ -37,8 +36,6 @@
|
|
|
37
36
|
{text}
|
|
38
37
|
{:else if children}
|
|
39
38
|
{@render children()}
|
|
40
|
-
{:else if dev}
|
|
41
|
-
debug: no value passed
|
|
42
39
|
{/if}
|
|
43
40
|
</div>
|
|
44
41
|
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
|
|
45
45
|
<script lang="ts">
|
|
46
46
|
import { onMount, tick } from 'svelte';
|
|
47
|
-
import { dev } from '$app/environment';
|
|
48
47
|
import { generateShortUUID } from '../Helpers/Helpers.svelte.js';
|
|
49
48
|
import { DatePickerType } from '../Types/Internal/DatePickerType.js';
|
|
50
49
|
import Dial from './Dial.svelte';
|
|
@@ -162,11 +161,7 @@
|
|
|
162
161
|
);
|
|
163
162
|
}
|
|
164
163
|
|
|
165
|
-
|
|
166
|
-
alert('Unhandled type changed');
|
|
167
|
-
} else {
|
|
168
|
-
console.warn('Unhandled type changed');
|
|
169
|
-
}
|
|
164
|
+
console.warn('Unhandled type changed');
|
|
170
165
|
|
|
171
166
|
return date;
|
|
172
167
|
})();
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
<svelte:options runes />
|
|
2
2
|
|
|
3
3
|
<script lang="ts" module>
|
|
4
|
+
import { InputVariant } from '../Types/Internal/InputVariant.js';
|
|
5
|
+
import type { Centimetres } from '../Types/Internal/Misc.js';
|
|
6
|
+
import { type PartialIconProps } from './Icon.svelte';
|
|
7
|
+
import type { FormEventHandler } from 'svelte/elements';
|
|
8
|
+
|
|
4
9
|
export interface DimensionInputProps {
|
|
5
10
|
id?: string | undefined;
|
|
6
11
|
|
|
@@ -33,12 +38,6 @@
|
|
|
33
38
|
</script>
|
|
34
39
|
|
|
35
40
|
<script lang="ts">
|
|
36
|
-
import { InputVariant } from '../Types/Internal/InputVariant.js';
|
|
37
|
-
import type { Centimetres } from '../Types/Internal/Misc.js';
|
|
38
|
-
|
|
39
|
-
import Icon, { type IconProps, type PartialIconProps } from './Icon.svelte';
|
|
40
|
-
import type { FormEventHandler } from 'svelte/elements';
|
|
41
|
-
|
|
42
41
|
let {
|
|
43
42
|
id,
|
|
44
43
|
x = $bindable(null),
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { InputVariant } from '../Types/Internal/InputVariant.js';
|
|
2
|
+
import type { Centimetres } from '../Types/Internal/Misc.js';
|
|
3
|
+
import { type PartialIconProps } from './Icon.svelte';
|
|
4
|
+
import type { FormEventHandler } from 'svelte/elements';
|
|
1
5
|
export interface DimensionInputProps {
|
|
2
6
|
id?: string | undefined;
|
|
3
7
|
x: Centimetres | null;
|
|
@@ -23,10 +27,6 @@ export interface DimensionInputProps {
|
|
|
23
27
|
onkeydown?: (e: KeyboardEvent) => void;
|
|
24
28
|
oninput?: FormEventHandler<HTMLInputElement>;
|
|
25
29
|
}
|
|
26
|
-
import { InputVariant } from '../Types/Internal/InputVariant.js';
|
|
27
|
-
import type { Centimetres } from '../Types/Internal/Misc.js';
|
|
28
|
-
import { type PartialIconProps } from './Icon.svelte';
|
|
29
|
-
import type { FormEventHandler } from 'svelte/elements';
|
|
30
30
|
declare const DimensionInput: import("svelte").Component<DimensionInputProps, {}, "x" | "z" | "y" | "inputRef">;
|
|
31
31
|
type DimensionInput = ReturnType<typeof DimensionInput>;
|
|
32
32
|
export default DimensionInput;
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
import Icon, { type PartialIconProps } from './Icon.svelte';
|
|
30
30
|
import Action from './Action.svelte';
|
|
31
31
|
import FileCard from './FileCard.svelte';
|
|
32
|
-
import { dev } from '$app/environment';
|
|
33
32
|
import { ColourSet } from '../scss/colours.js';
|
|
34
33
|
import { InputVariant } from '../Types/Internal/InputVariant.js';
|
|
35
34
|
import { Size } from '../Types/Internal/Size.js';
|
|
35
|
+
import { onMount } from 'svelte';
|
|
36
36
|
|
|
37
37
|
let _files: FileList | null | undefined = $state();
|
|
38
38
|
|
|
@@ -99,6 +99,9 @@
|
|
|
99
99
|
|
|
100
100
|
dragover = false;
|
|
101
101
|
}
|
|
102
|
+
onMount(() => {
|
|
103
|
+
console.log('Drag and drop file uploading may not work');
|
|
104
|
+
});
|
|
102
105
|
</script>
|
|
103
106
|
|
|
104
107
|
<label
|
|
@@ -171,7 +174,6 @@
|
|
|
171
174
|
<p>
|
|
172
175
|
Drag and Drop or Click to Upload {#if multiple}multiple documents{:else}a document{/if}
|
|
173
176
|
</p>
|
|
174
|
-
{#if dev}<span>TODO drag and drop</span>{/if}
|
|
175
177
|
{/if}
|
|
176
178
|
</div>
|
|
177
179
|
<div class="side">
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<svelte:options runes />
|
|
2
2
|
|
|
3
3
|
<script lang="ts" module>
|
|
4
|
-
import { dev } from '$app/environment';
|
|
5
4
|
import type { GridItem } from '../Types/Internal/GridItem.js';
|
|
6
5
|
import type { GridMultiSelectItem } from '../Types/Internal/GridMultiSelectItem.js';
|
|
7
6
|
import type { GridMultiSelectItemAsObject } from '../Types/Internal/GridMultiSelectItemAsObject.js';
|
|
@@ -161,8 +160,9 @@
|
|
|
161
160
|
{/if}
|
|
162
161
|
{/await}
|
|
163
162
|
{/if}
|
|
164
|
-
{:else
|
|
165
|
-
|
|
163
|
+
{:else}
|
|
164
|
+
{@const type = item?.type}
|
|
165
|
+
{@debug type}
|
|
166
166
|
{/if}
|
|
167
167
|
</label>
|
|
168
168
|
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
<script lang="ts" generics="T extends object">
|
|
45
45
|
import Svelecte from 'svelecte';
|
|
46
46
|
import { autoPluralise, generateShortUUID, vowels } from '../Helpers/Helpers.svelte.js';
|
|
47
|
-
import { dev } from '$app/environment';
|
|
48
47
|
import { Size } from '../Types/Internal/Size.js';
|
|
49
48
|
import Action from './Action.svelte';
|
|
50
49
|
import Icon from './Icon.svelte';
|
|
@@ -224,9 +223,6 @@
|
|
|
224
223
|
</Svelecte>
|
|
225
224
|
|
|
226
225
|
{#snippet selection(selectedOptions: unknown[])}
|
|
227
|
-
{#if dev}
|
|
228
|
-
DEBUG: Selection
|
|
229
|
-
{/if}
|
|
230
226
|
<!-- {#if selectedOptions.length === 0}
|
|
231
227
|
<span class="selection" class:hidden
|
|
232
228
|
>Please Select {#if objectName}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<svelte:options runes />
|
|
2
2
|
|
|
3
3
|
<script lang="ts" module>
|
|
4
|
-
import { browser } from '$app/environment';
|
|
5
4
|
import { getCanvasContext } from '../Helpers/Helpers.svelte.js';
|
|
6
5
|
import { tick } from 'svelte';
|
|
7
6
|
import type { BubbleColour } from './Bubble.svelte';
|
|
@@ -26,7 +25,7 @@
|
|
|
26
25
|
// for some reason, doing this in a derived-by puts the browser in some kind of infinite loop
|
|
27
26
|
let fitsInProgressBar = $state(false);
|
|
28
27
|
$effect(() => {
|
|
29
|
-
if (
|
|
28
|
+
if (progress && progressBarRef) {
|
|
30
29
|
const oldRef = progressBarRef;
|
|
31
30
|
tick().then(() => {
|
|
32
31
|
if (oldRef === progressBarRef) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<svelte:options runes />
|
|
2
2
|
|
|
3
3
|
<script lang="ts" module>
|
|
4
|
-
import { dev } from '$app/environment';
|
|
5
4
|
import Action from '../../Action.svelte';
|
|
6
5
|
import Button from '../../Button.svelte';
|
|
7
6
|
import MultiSelect from '../../MultiSelect.svelte';
|
|
@@ -249,8 +248,6 @@
|
|
|
249
248
|
}}
|
|
250
249
|
/>
|
|
251
250
|
{/if}
|
|
252
|
-
{:else if dev}
|
|
253
|
-
DEBUG: INVALID DATE FILTER VALUES
|
|
254
251
|
{/if}
|
|
255
252
|
{:else if isSelect}
|
|
256
253
|
{#await options then options}
|
|
@@ -311,8 +308,6 @@
|
|
|
311
308
|
onkeydown={closeOnCtrlF}
|
|
312
309
|
/>
|
|
313
310
|
</div>
|
|
314
|
-
{:else if dev}
|
|
315
|
-
expected string, got number (340)
|
|
316
311
|
{/if}
|
|
317
312
|
{:else if typeof value != 'number'}
|
|
318
313
|
<div class="input-wrapper right">
|
|
@@ -328,8 +323,6 @@
|
|
|
328
323
|
placeholder="Filter…"
|
|
329
324
|
/>
|
|
330
325
|
</div>
|
|
331
|
-
{:else if dev}
|
|
332
|
-
expected string, got number (357)
|
|
333
326
|
{/if}
|
|
334
327
|
|
|
335
328
|
<!-- TODO button for date, checkbox or select for checkbox -->
|
|
@@ -359,8 +352,6 @@
|
|
|
359
352
|
/>
|
|
360
353
|
</div>
|
|
361
354
|
{/if}
|
|
362
|
-
{:else if dev}
|
|
363
|
-
<!-- Not Searchable -->
|
|
364
355
|
{/if}
|
|
365
356
|
|
|
366
357
|
{#if isSelectOpen}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<svelte:options runes />
|
|
2
2
|
|
|
3
3
|
<script lang="ts" module>
|
|
4
|
-
import { dev } from '$app/environment';
|
|
5
4
|
import { getContext } from 'svelte';
|
|
6
5
|
import type { ColumnDef } from '../../Types/Columns/Definitions/ColumnDef.svelte.js';
|
|
7
6
|
import { TableContext } from '../../Types/Context/TableContext.svelte.js';
|
|
@@ -73,10 +72,7 @@
|
|
|
73
72
|
|
|
74
73
|
const onVisibilityChange = (e: Event) => {
|
|
75
74
|
if (!columnDef) {
|
|
76
|
-
|
|
77
|
-
console.error('no column def found:');
|
|
78
|
-
throw e;
|
|
79
|
-
}
|
|
75
|
+
console.warn('no def found', e);
|
|
80
76
|
|
|
81
77
|
return;
|
|
82
78
|
}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
import type { ActionsDef } from '../../../Types/Columns/Definitions/Actions/ActionsDef.svelte.js';
|
|
8
8
|
import type { TableActionButton } from '../../../Types/Columns/TableActionButton.js';
|
|
9
9
|
import type { TableCell } from '../../../Types/Columns/TableCell.js';
|
|
10
|
-
import { getErrorMessage } from '../../../../../Helpers/Helpers.svelte.js';
|
|
11
10
|
|
|
12
11
|
export interface TableActionProps<T extends object> {
|
|
13
12
|
action: TableActionButton<T>;
|
|
@@ -58,5 +57,6 @@
|
|
|
58
57
|
}}>{label}</Button
|
|
59
58
|
>
|
|
60
59
|
{:catch e}
|
|
61
|
-
|
|
60
|
+
{@debug e}
|
|
61
|
+
Error Loading Button
|
|
62
62
|
{/await}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
11
|
<script lang="ts" generics="T extends object">
|
|
12
|
-
import { dev } from '$app/environment';
|
|
13
12
|
import type { TableCell } from '../../../Types/Columns/TableCell.js';
|
|
14
13
|
import { TableContext } from '../../../Types/Context/TableContext.svelte.js';
|
|
15
14
|
import { TableFocusDetails } from '../../../Types/Focus/TableFocusDetails.svelte.js';
|
|
@@ -23,7 +22,7 @@
|
|
|
23
22
|
const value = $derived(!!cell.getValue());
|
|
24
23
|
|
|
25
24
|
$effect(() => {
|
|
26
|
-
if (
|
|
25
|
+
if (value != null && typeof value != 'boolean') {
|
|
27
26
|
console.warn(
|
|
28
27
|
`non-boolean value was passed: ${value}\nIf that is intentional, please use accessorFn() to parse it to a boolean value.`
|
|
29
28
|
);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<svelte:options runes />
|
|
2
2
|
|
|
3
3
|
<script lang="ts" module>
|
|
4
|
-
import { dev } from '$app/environment';
|
|
5
4
|
import FocusableImmutableCell from './FocusableImmutableCell.svelte';
|
|
6
5
|
import BubbleCell from './BubbleCell.svelte';
|
|
7
6
|
import ActionsCell from './ActionsCell.svelte';
|
|
@@ -10,7 +9,6 @@
|
|
|
10
9
|
import { ExpandDef } from '../../../Types/Columns/Definitions/Expand/ExpandDef.svelte.js';
|
|
11
10
|
import type { ColumnDef } from '../../../Types/Columns/Definitions/ColumnDef.svelte.js';
|
|
12
11
|
import type { TableCell } from '../../../Types/Columns/TableCell.js';
|
|
13
|
-
import { getErrorMessage } from '../../../../../Helpers/Helpers.svelte.js';
|
|
14
12
|
import { DisplayType } from '../../../Types/Columns/DisplayType.js';
|
|
15
13
|
import TableNumberInput from './TableNumberInput.svelte';
|
|
16
14
|
import TableDatePicker from './TableDatePicker.svelte';
|
|
@@ -107,7 +105,8 @@
|
|
|
107
105
|
{:then value}
|
|
108
106
|
{@render ValueFallback(value)}
|
|
109
107
|
{:catch e}
|
|
110
|
-
|
|
108
|
+
{@debug e}
|
|
109
|
+
<FocusableImmutableCell value={e?.toString()} {cell} />
|
|
111
110
|
{/await}
|
|
112
111
|
{:else}
|
|
113
112
|
{@render ValueFallback(valueOrComponentPromise)}
|
|
@@ -121,8 +120,8 @@
|
|
|
121
120
|
<BubbleCell {cell} />
|
|
122
121
|
{:else if isProgressBarTableCell(cell)}
|
|
123
122
|
<ProgressCell {cell} />
|
|
124
|
-
{:else
|
|
125
|
-
|
|
123
|
+
{:else}
|
|
124
|
+
{@debug cell}
|
|
126
125
|
{/if}
|
|
127
126
|
{:else if Value == null || typeof Value === 'string' || typeof Value == 'number'}
|
|
128
127
|
<FocusableImmutableCell value={Value} {cell} />
|
|
@@ -134,7 +133,7 @@
|
|
|
134
133
|
<FocusableImmutableCell {cell}>
|
|
135
134
|
{@render Value(cell)}
|
|
136
135
|
</FocusableImmutableCell>
|
|
137
|
-
{:else
|
|
138
|
-
|
|
136
|
+
{:else}
|
|
137
|
+
{@debug cell}
|
|
139
138
|
{/if}
|
|
140
139
|
{/snippet}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
<script lang="ts" module>
|
|
4
4
|
import { getContext, tick } from 'svelte';
|
|
5
|
-
import { dev } from '$app/environment';
|
|
6
5
|
import { TableContext } from '../../../Types/Context/TableContext.svelte.js';
|
|
7
6
|
import type { CellCoordinates } from '../../../Types/Coordinates/CellCoordinates.js';
|
|
8
7
|
import { TableFocusDetails } from '../../../Types/Focus/TableFocusDetails.svelte.js';
|
|
@@ -167,9 +166,8 @@
|
|
|
167
166
|
{isNaN(parsed.getFullYear()) ? value : parsed.toLocaleString()}
|
|
168
167
|
{:else if value instanceof Date}
|
|
169
168
|
{value?.toLocaleDateString()}
|
|
170
|
-
{:else if dev}
|
|
171
|
-
DEBUG: INVALID DATE
|
|
172
169
|
{:else}
|
|
170
|
+
{@debug value}
|
|
173
171
|
-
|
|
174
172
|
{/if}
|
|
175
173
|
</td>
|
|
@@ -237,9 +235,8 @@
|
|
|
237
235
|
{:else}
|
|
238
236
|
{value.toLocaleDateString()}
|
|
239
237
|
{/if}
|
|
240
|
-
{:else if dev}
|
|
241
|
-
DEBUG: INVALID DATE
|
|
242
238
|
{:else}
|
|
239
|
+
{@debug value}
|
|
243
240
|
-
|
|
244
241
|
{/if}
|
|
245
242
|
</td>
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<script lang="ts" generics="T extends object">
|
|
10
|
-
import { dev } from '$app/environment';
|
|
11
10
|
import NumberInput from '../../../../NumberInput.svelte';
|
|
12
11
|
import { NumberInputDef } from '../../../Types/Columns/Definitions/Accessors/NumberInputDef.svelte.js';
|
|
13
12
|
import type { TableCell } from '../../../Types/Columns/TableCell.js';
|
|
@@ -242,8 +241,6 @@
|
|
|
242
241
|
unsubscriber = () => {
|
|
243
242
|
prevTdRef?.removeEventListener('edit', onEdit);
|
|
244
243
|
};
|
|
245
|
-
} else if (dev) {
|
|
246
|
-
throw new Error("tdref didn't exist during onMount");
|
|
247
244
|
}
|
|
248
245
|
|
|
249
246
|
return unsubscriber;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<svelte:options runes />
|
|
2
2
|
|
|
3
3
|
<script lang="ts" module>
|
|
4
|
-
import { dev } from '$app/environment';
|
|
5
4
|
import QuerySelect from '../../../../QuerySelect.svelte';
|
|
6
5
|
import type { QueryDef } from '../../../Types/Columns/Definitions/Accessors/QueryDef.svelte.js';
|
|
7
6
|
import type { TableCell } from '../../../Types/Columns/TableCell.js';
|
|
@@ -10,7 +9,7 @@
|
|
|
10
9
|
import { ToastContext } from '../../../../../Contexts/ToastContext.svelte.js';
|
|
11
10
|
import type { SelectOption } from '../../../../../Types/Internal/SelectOption.js';
|
|
12
11
|
import { Validity } from '../../../../../Types/Internal/Validity.js';
|
|
13
|
-
import { getContext, tick, untrack
|
|
12
|
+
import { getContext, tick, untrack } from 'svelte';
|
|
14
13
|
export interface TableQuerySelectProps<T extends object> {
|
|
15
14
|
cell: TableCell<T>;
|
|
16
15
|
}
|
|
@@ -188,11 +187,14 @@
|
|
|
188
187
|
target?.addEventListener('keydown', keydownForce);
|
|
189
188
|
}
|
|
190
189
|
|
|
191
|
-
|
|
190
|
+
let prevtdref: HTMLTableCellElement | undefined = undefined;
|
|
191
|
+
$effect(() => {
|
|
192
192
|
if (tdref) {
|
|
193
|
-
tdref
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
if (tdref != prevtdref) {
|
|
194
|
+
tdref.addEventListener('edit', handleTDFocus);
|
|
195
|
+
} else {
|
|
196
|
+
prevtdref = tdref;
|
|
197
|
+
}
|
|
196
198
|
}
|
|
197
199
|
});
|
|
198
200
|
</script>
|
|
@@ -7,14 +7,12 @@
|
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<script lang="ts" generics="T extends object">
|
|
10
|
-
import { dev } from '$app/environment';
|
|
11
10
|
import SingleSelect from '../../../../SingleSelect.svelte';
|
|
12
11
|
import type { SelectDef } from '../../../Types/Columns/Definitions/Accessors/SelectDef.svelte.js';
|
|
13
12
|
import type { TableCell } from '../../../Types/Columns/TableCell.js';
|
|
14
13
|
import { TableContext } from '../../../Types/Context/TableContext.svelte.js';
|
|
15
14
|
import { TableFocusDetails } from '../../../Types/Focus/TableFocusDetails.svelte.js';
|
|
16
15
|
import { ToastContext } from '../../../../../Contexts/ToastContext.svelte.js';
|
|
17
|
-
import { getErrorMessage } from '../../../../../Helpers/Helpers.svelte.js';
|
|
18
16
|
import type { SelectOption } from '../../../../../Types/Internal/SelectOption.js';
|
|
19
17
|
import { Validity } from '../../../../../Types/Internal/Validity.js';
|
|
20
18
|
import { getContext, tick, untrack, onMount } from 'svelte';
|
|
@@ -103,9 +101,7 @@
|
|
|
103
101
|
return foundOption ?? null;
|
|
104
102
|
}
|
|
105
103
|
|
|
106
|
-
|
|
107
|
-
console.warn('could not match value to any type:', value);
|
|
108
|
-
}
|
|
104
|
+
console.warn('could not match value to any type:', value);
|
|
109
105
|
|
|
110
106
|
return null;
|
|
111
107
|
}
|
|
@@ -199,11 +195,14 @@
|
|
|
199
195
|
target?.addEventListener('keydown', keydownForce);
|
|
200
196
|
}
|
|
201
197
|
|
|
202
|
-
|
|
198
|
+
let prevtdref: HTMLTableCellElement | undefined = undefined;
|
|
199
|
+
$effect(() => {
|
|
203
200
|
if (tdref) {
|
|
204
|
-
tdref
|
|
205
|
-
|
|
206
|
-
|
|
201
|
+
if (tdref != prevtdref) {
|
|
202
|
+
tdref.addEventListener('edit', handleTDFocus);
|
|
203
|
+
} else {
|
|
204
|
+
prevtdref = tdref;
|
|
205
|
+
}
|
|
207
206
|
}
|
|
208
207
|
});
|
|
209
208
|
</script>
|
|
@@ -239,11 +238,8 @@
|
|
|
239
238
|
}}
|
|
240
239
|
/>
|
|
241
240
|
{:catch e}
|
|
242
|
-
{
|
|
243
|
-
|
|
244
|
-
{:else}
|
|
245
|
-
could not retrieve options
|
|
246
|
-
{/if}
|
|
241
|
+
{@debug e}
|
|
242
|
+
could not retrieve options
|
|
247
243
|
{/await}
|
|
248
244
|
</td>
|
|
249
245
|
{:else}
|
|
@@ -287,11 +283,8 @@
|
|
|
287
283
|
{:then [value]}
|
|
288
284
|
{value?.label ?? '-'}
|
|
289
285
|
{:catch e}
|
|
290
|
-
{
|
|
291
|
-
|
|
292
|
-
{:else}
|
|
293
|
-
could not retrieve options
|
|
294
|
-
{/if}
|
|
286
|
+
{@debug e}
|
|
287
|
+
Could not retrieve options
|
|
295
288
|
{/await}</td
|
|
296
289
|
>
|
|
297
290
|
{/if}
|
|
@@ -7,13 +7,11 @@
|
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<script lang="ts" generics="T extends object">
|
|
10
|
-
import { dev } from '$app/environment';
|
|
11
10
|
import type { TableCell } from '../../../Types/Columns/TableCell.js';
|
|
12
11
|
import { TableContext } from '../../../Types/Context/TableContext.svelte.js';
|
|
13
12
|
import { TableFocusDetails } from '../../../Types/Focus/TableFocusDetails.svelte.js';
|
|
14
13
|
import TextInput from '../../../../TextInput.svelte';
|
|
15
14
|
import { ToastContext } from '../../../../../Contexts/ToastContext.svelte.js';
|
|
16
|
-
import { getErrorMessage } from '../../../../../Helpers/Helpers.svelte.js';
|
|
17
15
|
import { InputVariant } from '../../../../../Types/Internal/InputVariant.js';
|
|
18
16
|
import { Validity } from '../../../../../Types/Internal/Validity.js';
|
|
19
17
|
import { getContext, tick, untrack } from 'svelte';
|
|
@@ -250,8 +248,6 @@
|
|
|
250
248
|
prevTdRef?.removeEventListener('edit', onEdit);
|
|
251
249
|
};
|
|
252
250
|
});
|
|
253
|
-
} else if (dev) {
|
|
254
|
-
throw new Error("tdref didn't exist during onMount");
|
|
255
251
|
}
|
|
256
252
|
|
|
257
253
|
return unsubscriber;
|
|
@@ -323,7 +319,8 @@
|
|
|
323
319
|
{:then value}
|
|
324
320
|
{value}
|
|
325
321
|
{:catch error}
|
|
326
|
-
{
|
|
322
|
+
{@debug error}
|
|
323
|
+
Error getting value
|
|
327
324
|
{/await}
|
|
328
325
|
</td>
|
|
329
326
|
{/if}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
<svelte:options runes />
|
|
2
2
|
|
|
3
3
|
<script lang="ts" module>
|
|
4
|
-
import {
|
|
5
|
-
import { generateShortUUID, getErrorMessage } from '../../../../Helpers/Helpers.svelte.js';
|
|
4
|
+
import { generateShortUUID } from '../../../../Helpers/Helpers.svelte.js';
|
|
6
5
|
import { getContext, untrack } from 'svelte';
|
|
7
6
|
import NestedTable from '../../NestedTable.svelte';
|
|
8
7
|
import type { Row } from '../../Types/Context/Row.js';
|
|
@@ -106,21 +105,9 @@
|
|
|
106
105
|
});
|
|
107
106
|
|
|
108
107
|
function onExpandChange(columnDef: ExpandDef<T, object>) {
|
|
109
|
-
if (dev) {
|
|
110
|
-
console.log('------------');
|
|
111
|
-
console.log(`called for ${expandedColumnDef?.id}`);
|
|
112
|
-
}
|
|
113
108
|
if (expandedColumnDef?.id === columnDef.id) {
|
|
114
|
-
if (dev) {
|
|
115
|
-
// debugger;
|
|
116
|
-
console.log('hiding it');
|
|
117
|
-
}
|
|
118
109
|
expandedColumnDef = undefined;
|
|
119
110
|
} else {
|
|
120
|
-
if (dev) {
|
|
121
|
-
console.log('showing it');
|
|
122
|
-
}
|
|
123
|
-
// debugger;
|
|
124
111
|
expandedColumnDef = columnDef;
|
|
125
112
|
}
|
|
126
113
|
}
|
|
@@ -162,8 +149,6 @@ onMouseLeave={onMouseLeave} -->
|
|
|
162
149
|
getUserId={tableContext.getUserId}
|
|
163
150
|
/>
|
|
164
151
|
{/key}
|
|
165
|
-
{:else if dev}
|
|
166
|
-
<h3>warning: no table name found</h3>
|
|
167
152
|
{:else}
|
|
168
153
|
<NestedTable
|
|
169
154
|
tableName={generateShortUUID()}
|
|
@@ -180,7 +165,8 @@ onMouseLeave={onMouseLeave} -->
|
|
|
180
165
|
<td {colspan}>No Data</td>
|
|
181
166
|
{/if}
|
|
182
167
|
{:catch e}
|
|
183
|
-
|
|
168
|
+
{@debug e}
|
|
169
|
+
<td {colspan}>Error Fetching data</td>
|
|
184
170
|
{/await}
|
|
185
171
|
</tr>
|
|
186
172
|
{/if}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<svelte:options runes />
|
|
2
2
|
|
|
3
3
|
<script module lang="ts">
|
|
4
|
-
import { dev } from '$app/environment';
|
|
5
4
|
import Icon from '../../Icon.svelte';
|
|
6
5
|
import { TooltipContext } from '../../../Contexts/TooltipContext.svelte.js';
|
|
7
6
|
import { Delay } from '../../../Delay/Delay.js';
|
|
@@ -15,7 +14,6 @@
|
|
|
15
14
|
import HighlightAllHeader from './HighlightAllHeader.svelte';
|
|
16
15
|
import SelectAllHeader from './SelectAllHeader.svelte';
|
|
17
16
|
import { ExpandDef } from '../Types/Columns/Definitions/Expand/ExpandDef.svelte.js';
|
|
18
|
-
import { SelectDef } from '../Types/Columns/Definitions/Accessors/SelectDef.svelte.js';
|
|
19
17
|
import type { HeaderGroup } from '../Types/HeaderGroup.js';
|
|
20
18
|
import { RowSelectionDef } from '../Types/Columns/Definitions/RowSelection/RowSelectionDef.svelte.js';
|
|
21
19
|
|
|
@@ -63,9 +61,7 @@
|
|
|
63
61
|
const rect = (e.target as HTMLElement).closest('th')?.getBoundingClientRect();
|
|
64
62
|
|
|
65
63
|
if (!rect) {
|
|
66
|
-
|
|
67
|
-
alert('could not find closest TH');
|
|
68
|
-
}
|
|
64
|
+
console.warn('could not find closest TH');
|
|
69
65
|
|
|
70
66
|
return;
|
|
71
67
|
}
|