@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.
Files changed (187) hide show
  1. package/dist/Components/Button.svelte +0 -3
  2. package/dist/Components/Contexts/ContextMenuOption.svelte +0 -3
  3. package/dist/Components/DatePicker.svelte +1 -6
  4. package/dist/Components/DimensionInput.svelte +5 -6
  5. package/dist/Components/DimensionInput.svelte.d.ts +4 -4
  6. package/dist/Components/FileUpload.svelte +4 -2
  7. package/dist/Components/GridInput.svelte +3 -3
  8. package/dist/Components/MultiSelect.svelte +0 -4
  9. package/dist/Components/ProgressBubble.svelte +1 -2
  10. package/dist/Components/Table/Body/QuickSearchCell.svelte +0 -9
  11. package/dist/Components/Table/Body/Rows/ColumnListRow.svelte +1 -5
  12. package/dist/Components/Table/Body/Rows/Columns/TableAction.svelte +2 -2
  13. package/dist/Components/Table/Body/Rows/Columns/TableCheckbox.svelte +1 -2
  14. package/dist/Components/Table/Body/Rows/Columns/TableColumn.svelte +6 -7
  15. package/dist/Components/Table/Body/Rows/Columns/TableDatePicker.svelte +2 -5
  16. package/dist/Components/Table/Body/Rows/Columns/TableNumberInput.svelte +0 -3
  17. package/dist/Components/Table/Body/Rows/Columns/TableQuerySelect.svelte +8 -6
  18. package/dist/Components/Table/Body/Rows/Columns/TableSelect.svelte +12 -19
  19. package/dist/Components/Table/Body/Rows/Columns/TableTextInput.svelte +2 -5
  20. package/dist/Components/Table/Body/Rows/TableRow.svelte +3 -17
  21. package/dist/Components/Table/Headers/TableHead.svelte +1 -5
  22. package/dist/Components/Table/Misc/FilterInput.svelte +10 -27
  23. package/dist/Components/Table/Table.svelte +1 -2
  24. package/dist/Components/Table/Types/Columns/Definitions/ColumnDef.svelte.js +6 -5
  25. package/dist/Components/Table/Types/Context/TableContext.svelte.js +11 -30
  26. package/dist/Components/Table/Types/DataRepository/LocalTableDataRepository.svelte.d.ts +0 -1
  27. package/dist/Components/Table/Types/DataRepository/LocalTableDataRepository.svelte.js +3 -16
  28. package/dist/Components/Table/Types/DataRepository/TableDataRepository.svelte.js +2 -5
  29. package/dist/Components/Table/Types/Filtering/CustomRemoteFilters.d.ts +1 -2
  30. package/dist/Components/Table/Types/Focus/TableFocusDetails.svelte.js +1 -5
  31. package/dist/Components/Touch/DateModal.svelte +0 -5
  32. package/dist/Components/Touch/UtilityButton.svelte +12 -7
  33. package/dist/Components/Touch/UtilityButton.svelte.d.ts +1 -1
  34. package/dist/Contexts/UntypedInputContext.svelte.d.ts +2 -1
  35. package/dist/Contexts/UntypedInputContext.svelte.js +1 -17
  36. package/dist/Helpers/Helpers.svelte.d.ts +21 -95
  37. package/dist/Helpers/Helpers.svelte.js +54 -395
  38. package/dist/Types/Examples/ExampleItem.d.ts +3 -3
  39. package/dist/Types/Internal/Misc.d.ts +12 -267
  40. package/dist/Types/Internal/Misc.js +1 -129
  41. package/dist/index.d.ts +4 -76
  42. package/dist/index.js +4 -76
  43. package/package.json +16 -16
  44. package/dist/Components/Table/Types/DataRepository/RemoteTableDataRepository.svelte.d.ts +0 -74
  45. package/dist/Components/Table/Types/DataRepository/RemoteTableDataRepository.svelte.js +0 -521
  46. package/dist/Components/Table/Types/Filtering/CustomProxyFilter.d.ts +0 -10
  47. package/dist/Components/Table/Types/Filtering/CustomProxyFilter.js +0 -1
  48. package/dist/Types/Internal/ApplicationIdentifier.d.ts +0 -39
  49. package/dist/Types/Internal/ApplicationIdentifier.js +0 -2080
  50. package/dist/Types/Internal/FloService.d.ts +0 -7
  51. package/dist/Types/Internal/FloService.js +0 -30
  52. package/dist/Types/Requests/IFillablePodLineDateRequestBody.d.ts +0 -13
  53. package/dist/Types/Requests/IFillablePodLineDateRequestBody.js +0 -10
  54. package/dist/Types/Requests/IRequiredPodLineDateRequestBody.d.ts +0 -14
  55. package/dist/Types/Requests/IRequiredPodLineDateRequestBody.js +0 -8
  56. package/dist/Types/Requests/IValidatedPodLineDateRequestBody.d.ts +0 -16
  57. package/dist/Types/Requests/IValidatedPodLineDateRequestBody.js +0 -10
  58. package/dist/Types/Responses/AddressType.d.ts +0 -3
  59. package/dist/Types/Responses/AddressType.js +0 -2
  60. package/dist/Types/Responses/IAddress.d.ts +0 -39
  61. package/dist/Types/Responses/IAddress.js +0 -30
  62. package/dist/Types/Responses/IBaseAddress.d.ts +0 -17
  63. package/dist/Types/Responses/IBaseAddress.js +0 -15
  64. package/dist/Types/Responses/ICountry.d.ts +0 -16
  65. package/dist/Types/Responses/ICountry.js +0 -1
  66. package/dist/Types/Responses/IDBEntry.d.ts +0 -13
  67. package/dist/Types/Responses/IDBEntry.js +0 -12
  68. package/dist/Types/Responses/IErrorResponse.d.ts +0 -10
  69. package/dist/Types/Responses/IErrorResponse.js +0 -1
  70. package/dist/Types/Responses/ILabelPrinter.d.ts +0 -4
  71. package/dist/Types/Responses/ILabelPrinter.js +0 -1
  72. package/dist/Types/Responses/ILaserPrinter.d.ts +0 -4
  73. package/dist/Types/Responses/ILaserPrinter.js +0 -1
  74. package/dist/Types/Responses/ILoginResponse.d.ts +0 -8
  75. package/dist/Types/Responses/ILoginResponse.js +0 -1
  76. package/dist/Types/Responses/IPaginatedPayload.d.ts +0 -5
  77. package/dist/Types/Responses/IPaginatedPayload.js +0 -1
  78. package/dist/Types/Responses/IPaginatedResponse.d.ts +0 -5
  79. package/dist/Types/Responses/IPaginatedResponse.js +0 -1
  80. package/dist/Types/Responses/IPagination.d.ts +0 -9
  81. package/dist/Types/Responses/IPagination.js +0 -1
  82. package/dist/Types/Responses/IPayload.d.ts +0 -3
  83. package/dist/Types/Responses/IPayload.js +0 -1
  84. package/dist/Types/Responses/IPrinter.d.ts +0 -11
  85. package/dist/Types/Responses/IPrinter.js +0 -1
  86. package/dist/Types/Responses/IProcessTypeSelectionMethodOutboundType.d.ts +0 -18
  87. package/dist/Types/Responses/IProcessTypeSelectionMethodOutboundType.js +0 -12
  88. package/dist/Types/Responses/IProcessTypeSelectionMethodWarehouseCustomer.d.ts +0 -20
  89. package/dist/Types/Responses/IProcessTypeSelectionMethodWarehouseCustomer.js +0 -14
  90. package/dist/Types/Responses/IProcessTypeSelectionMethodWarehouseCustomerType.d.ts +0 -20
  91. package/dist/Types/Responses/IProcessTypeSelectionMethodWarehouseCustomerType.js +0 -14
  92. package/dist/Types/Responses/IProductCategory.d.ts +0 -19
  93. package/dist/Types/Responses/IProductCategory.js +0 -13
  94. package/dist/Types/Responses/IProductCategoryDetails.d.ts +0 -33
  95. package/dist/Types/Responses/IProductCategoryDetails.js +0 -13
  96. package/dist/Types/Responses/IProductIgnoreOnAllocationOutboundType.d.ts +0 -17
  97. package/dist/Types/Responses/IProductIgnoreOnAllocationOutboundType.js +0 -11
  98. package/dist/Types/Responses/IProductLocation.d.ts +0 -23
  99. package/dist/Types/Responses/IProductLocation.js +0 -17
  100. package/dist/Types/Responses/IResponse.d.ts +0 -8
  101. package/dist/Types/Responses/IResponse.js +0 -1
  102. package/dist/Types/Responses/IStockSortationMethodCustomer.d.ts +0 -18
  103. package/dist/Types/Responses/IStockSortationMethodCustomer.js +0 -12
  104. package/dist/Types/Responses/Pods/IAttributeTypeWithAI.d.ts +0 -8
  105. package/dist/Types/Responses/Pods/IAttributeTypeWithAI.js +0 -1
  106. package/dist/Types/Responses/Pods/IBatchType.d.ts +0 -5
  107. package/dist/Types/Responses/Pods/IBatchType.js +0 -1
  108. package/dist/Types/Responses/Pods/IDateType.d.ts +0 -6
  109. package/dist/Types/Responses/Pods/IDateType.js +0 -1
  110. package/dist/Types/Responses/Pods/IFillablePodLineAttribute.d.ts +0 -10
  111. package/dist/Types/Responses/Pods/IFillablePodLineAttribute.js +0 -9
  112. package/dist/Types/Responses/Pods/IFillablePodLineBatch.d.ts +0 -18
  113. package/dist/Types/Responses/Pods/IFillablePodLineBatch.js +0 -12
  114. package/dist/Types/Responses/Pods/IFillablePodLineDate.d.ts +0 -19
  115. package/dist/Types/Responses/Pods/IFillablePodLineDate.js +0 -13
  116. package/dist/Types/Responses/Pods/IFillablePodLinePurchaseOrder.d.ts +0 -18
  117. package/dist/Types/Responses/Pods/IFillablePodLinePurchaseOrder.js +0 -12
  118. package/dist/Types/Responses/Pods/IFillablePodLineSerial.d.ts +0 -18
  119. package/dist/Types/Responses/Pods/IFillablePodLineSerial.js +0 -12
  120. package/dist/Types/Responses/Pods/IFillablePodLineTag.d.ts +0 -18
  121. package/dist/Types/Responses/Pods/IFillablePodLineTag.js +0 -12
  122. package/dist/Types/Responses/Pods/IPurchaseOrderType.d.ts +0 -5
  123. package/dist/Types/Responses/Pods/IPurchaseOrderType.js +0 -1
  124. package/dist/Types/Responses/Pods/IRequiredOrValidatedAttribute.d.ts +0 -7
  125. package/dist/Types/Responses/Pods/IRequiredOrValidatedAttribute.js +0 -7
  126. package/dist/Types/Responses/Pods/IRequiredPodLineBatch.d.ts +0 -18
  127. package/dist/Types/Responses/Pods/IRequiredPodLineBatch.js +0 -8
  128. package/dist/Types/Responses/Pods/IRequiredPodLineDate.d.ts +0 -19
  129. package/dist/Types/Responses/Pods/IRequiredPodLineDate.js +0 -8
  130. package/dist/Types/Responses/Pods/IRequiredPodLinePurchaseOrder.d.ts +0 -19
  131. package/dist/Types/Responses/Pods/IRequiredPodLinePurchaseOrder.js +0 -8
  132. package/dist/Types/Responses/Pods/IRequiredPodLineSerial.d.ts +0 -19
  133. package/dist/Types/Responses/Pods/IRequiredPodLineSerial.js +0 -8
  134. package/dist/Types/Responses/Pods/IRequiredPodLineTag.d.ts +0 -19
  135. package/dist/Types/Responses/Pods/IRequiredPodLineTag.js +0 -8
  136. package/dist/Types/Responses/Pods/ISerialType.d.ts +0 -6
  137. package/dist/Types/Responses/Pods/ISerialType.js +0 -1
  138. package/dist/Types/Responses/Pods/ITagType.d.ts +0 -6
  139. package/dist/Types/Responses/Pods/ITagType.js +0 -1
  140. package/dist/Types/Responses/Pods/IValidatedPodLineAttribute.d.ts +0 -13
  141. package/dist/Types/Responses/Pods/IValidatedPodLineAttribute.js +0 -10
  142. package/dist/Types/Responses/Pods/IValidatedPodLineBatch.d.ts +0 -19
  143. package/dist/Types/Responses/Pods/IValidatedPodLineBatch.js +0 -10
  144. package/dist/Types/Responses/Pods/IValidatedPodLineDate.d.ts +0 -21
  145. package/dist/Types/Responses/Pods/IValidatedPodLineDate.js +0 -10
  146. package/dist/Types/Responses/Pods/IValidatedPodLinePurchaseOrder.d.ts +0 -20
  147. package/dist/Types/Responses/Pods/IValidatedPodLinePurchaseOrder.js +0 -10
  148. package/dist/Types/Responses/Pods/IValidatedPodLineSerial.d.ts +0 -20
  149. package/dist/Types/Responses/Pods/IValidatedPodLineSerial.js +0 -10
  150. package/dist/Types/Responses/Pods/IValidatedPodLineTag.d.ts +0 -20
  151. package/dist/Types/Responses/Pods/IValidatedPodLineTag.js +0 -10
  152. package/dist/Types/Responses/Products/IAttributeRule.d.ts +0 -34
  153. package/dist/Types/Responses/Products/IAttributeRule.js +0 -28
  154. package/dist/Types/Responses/Products/IBarcode.d.ts +0 -18
  155. package/dist/Types/Responses/Products/IBarcode.js +0 -12
  156. package/dist/Types/Responses/Products/IBatchRule.d.ts +0 -36
  157. package/dist/Types/Responses/Products/IBatchRule.js +0 -9
  158. package/dist/Types/Responses/Products/ICustomerRule.d.ts +0 -23
  159. package/dist/Types/Responses/Products/ICustomerRule.js +0 -17
  160. package/dist/Types/Responses/Products/IDateRule.d.ts +0 -36
  161. package/dist/Types/Responses/Products/IDateRule.js +0 -9
  162. package/dist/Types/Responses/Products/IPrice.d.ts +0 -19
  163. package/dist/Types/Responses/Products/IPrice.js +0 -12
  164. package/dist/Types/Responses/Products/IProduct.d.ts +0 -436
  165. package/dist/Types/Responses/Products/IProduct.js +0 -77
  166. package/dist/Types/Responses/Products/IProductKit.d.ts +0 -24
  167. package/dist/Types/Responses/Products/IProductKit.js +0 -18
  168. package/dist/Types/Responses/Products/IProductKitMatrix.d.ts +0 -13
  169. package/dist/Types/Responses/Products/IProductKitMatrix.js +0 -1
  170. package/dist/Types/Responses/Products/IProductSupplier.d.ts +0 -18
  171. package/dist/Types/Responses/Products/IProductSupplier.js +0 -12
  172. package/dist/Types/Responses/Products/IProductTag.d.ts +0 -33
  173. package/dist/Types/Responses/Products/IProductTag.js +0 -14
  174. package/dist/Types/Responses/Products/IProductTagType.d.ts +0 -18
  175. package/dist/Types/Responses/Products/IProductTagType.js +0 -12
  176. package/dist/Types/Responses/Products/IProductUnitOfMeasure.d.ts +0 -97
  177. package/dist/Types/Responses/Products/IProductUnitOfMeasure.js +0 -35
  178. package/dist/Types/Responses/Products/IProductUnitOfMeasurePrice.d.ts +0 -36
  179. package/dist/Types/Responses/Products/IProductUnitOfMeasurePrice.js +0 -17
  180. package/dist/Types/Responses/Products/IPurchaseOrderRule.d.ts +0 -36
  181. package/dist/Types/Responses/Products/IPurchaseOrderRule.js +0 -9
  182. package/dist/Types/Responses/Products/ISerialRule.d.ts +0 -36
  183. package/dist/Types/Responses/Products/ISerialRule.js +0 -9
  184. package/dist/Types/Responses/Products/ITagRule.d.ts +0 -36
  185. package/dist/Types/Responses/Products/ITagRule.js +0 -9
  186. package/dist/Types/Responses/Products/IUnitOfMeasure.d.ts +0 -18
  187. package/dist/Types/Responses/Products/IUnitOfMeasure.js +0 -12
package/dist/index.js CHANGED
@@ -48,21 +48,19 @@ export {} from './Components/Table/Types/DataRepository/IDataRepository.js';
48
48
  export {} from './Components/Table/Types/DataRepository/ILocalDataRepository.js';
49
49
  export {} from './Components/Table/Types/DataRepository/IRemoteDataRepository.js';
50
50
  export { LocalTableDataRepository } from './Components/Table/Types/DataRepository/LocalTableDataRepository.svelte.js';
51
- export { RemoteTableDataRepository } from './Components/Table/Types/DataRepository/RemoteTableDataRepository.svelte.js';
52
51
  export {} from './Components/Table/Types/DataRepository/SortingState.js';
53
52
  export { TableDataRepository } from './Components/Table/Types/DataRepository/TableDataRepository.svelte.js';
54
53
  export {} from './Components/Table/Types/Filtering/ColumnFiltersState.js';
55
54
  export {} from './Components/Table/Types/Filtering/CustomFilter.js';
56
55
  export { CustomFilterType } from './Components/Table/Types/Filtering/CustomFilterType.js';
57
56
  export {} from './Components/Table/Types/Filtering/CustomFilterFn.js';
58
- export {} from './Components/Table/Types/Filtering/CustomProxyFilter.js';
59
57
  export {} from './Components/Table/Types/Filtering/CustomRemoteFilters.js';
60
58
  export {} from './Components/Table/Types/Filtering/FilterFn.js';
61
59
  export {} from './Components/Table/Types/Filtering/FilterMode.js';
62
60
  export { FilterType } from './Components/Table/Types/Filtering/FilterType.js';
63
61
  export {} from './Components/Table/Types/Filtering/HasCustomFilterFunction.js';
64
- export {} from './Components/Table/Types/Filtering/NumberDateFilterMode.js';
65
- export {} from './Components/Table/Types/Filtering/StringFilterMode.js';
62
+ export { NumberDateFilterMode } from './Components/Table/Types/Filtering/NumberDateFilterMode.js';
63
+ export { StringFilterMode } from './Components/Table/Types/Filtering/StringFilterMode.js';
66
64
  export { MultiFocusEdge } from './Components/Table/Types/Focus/MultiFocusEdge.js';
67
65
  export { TableFocusDetails } from './Components/Table/Types/Focus/TableFocusDetails.svelte.js';
68
66
  export {} from './Components/Table/Types/Pagination/PaginationState.js';
@@ -131,16 +129,14 @@ export { TooltipContext } from './Contexts/TooltipContext.svelte.js';
131
129
  export { UntypedInputContext } from './Contexts/UntypedInputContext.svelte.js';
132
130
  export { Delay } from './Delay/Delay.js';
133
131
  export { DATAMatrix } from './Helpers/Datamatrix.js';
134
- export { capitalise, autoPluralise, tomorrow, inputFriendly, inputFriendlyWithTime, floFriendly, floFriendlyWithTime, floFriendlyWithLocalTime, lastSec, isErrorResponse, isMessage, isThrowable, getErrorMessage, isValidEmailAddress, validateBarcodeCommand, isValidLaserPrinter, isValidLabelPrinter, getCanvasContext, assertIsOnBrowser, assertUnreachable, isFocusable, focusNextFocusable, assert, toFloFriendlyWithLocalTime, toFloFriendlyWithTime, saveBlob, isAttributeMissing, isAttributeInvalid, isAttributeDateInvalid, getOrCreateDeviceUUID, passthrough, generateUUID, generateShortUUID, refWrapper, asyncMap, asyncForEach, asyncFlatMap, asyncSome, asyncSleep, utc, local, getLocalStorageStringOrDefault, getLocalStorageIntOrDefault, getLocalStorageFloatOrDefault, getLocalStorageBoolOrDefault, FormatAccountNames, FormatWarehouseNames, vowels } from './Helpers/Helpers.svelte.js';
132
+ export { autoPluralise, generateUUID, generateShortUUID, refWrapper, SQLFriendly, SQLFriendlyWithLocalTime, passthrough, getCanvasContext, getErrorMessage, isValidEmailAddress, localTimeFormat, vowels } from './Helpers/Helpers.svelte.js';
135
133
  export {} from './Helpers/INamed.js';
136
- export { GS1LengthType, GS1Encoding } from './Types/Internal/ApplicationIdentifier.js';
137
134
  export { AttributeOperation } from './Types/Internal/AttributeOperation.js';
138
135
  export {} from './Types/Internal/BigRadioOption.js';
139
136
  export {} from './Types/Internal/ButtonProp.js';
140
137
  export {} from './Types/Internal/CallbackButton.js';
141
138
  export {} from './Types/Internal/DateChange.js';
142
139
  export { DatePickerType } from './Types/Internal/DatePickerType.js';
143
- export {} from './Types/Internal/FloService.js';
144
140
  export {} from './Types/Internal/GridItem.js';
145
141
  export {} from './Types/Internal/GridMultiSelectItem.js';
146
142
  export {} from './Types/Internal/GridMultiSelectItemAsObject.js';
@@ -154,7 +150,7 @@ export {} from './Types/Internal/GridStringItem.js';
154
150
  export {} from './Types/Internal/GridTextItem.js';
155
151
  export {} from './Types/Internal/IdentifiableToastMessage.js';
156
152
  export { InputVariant } from './Types/Internal/InputVariant.js';
157
- export { nullable, TypedString, NullableString, TypedBoolean, NullableBoolean, TypedNumber, NullableNumber, NaturalNumber, NullableNaturalNumber, PositiveDecimal, PositiveInteger, NullablePositiveInteger, AccountID, AccountCourierCodeMatrixID, AccountCourierServiceCode, AICode, RawBarcode, AddressID, AdjustmentTypeID, BatchTypeAccountMatrixID, PodLineBatchTypeID, BucketUUID, CountryID, CourierAccountID, SystemCourierCode, AccountCourierCode, CourierConsignmentID, CourierID, CollectionPostcode, PackReferenceID, CourierServiceCode, CustomerID, CustomerTypeID, DateTypeAccountMatrixID, PodLineDateTypeID, DefinitionSegmentTypeID, DeliveryPostcode, DocumentMatrixID, DocumentTypeID, DocumentFormat, InputDate, InputDateWithTime, FloDate, HoldTypeID, HoldTypeAccountMatrixID, JobID, JobStatusID, JobTypeID, KitUUID, MovementID, MovementLineID, OrderID, OrderLineID, OrderLineMethodID, OrderLineShortageReasonID, OrderLineReasonTypeID, OrderTagTypeID, OutboundTypeID, OutboundTypeAccountMatrixID, OutboundStatusID, OutboundStatusName, PickJobID, PickWaveID, PickUUID, PodTypeID, PodAliasID, PodAliasTypeID, PodAlias, PodUUID, PodLineQuantityID, PodLineUUID, PoolAlias, PoolID, PoolTypeID, Postcode, PreadviceID, PreadviceLineID, PreadviceStatusID, PreadviceTypeID, PreadviceTagTypeID, PreadviceTypeAccountMatrixID, PrinterID, ProductID, ProductKitMatrixID, ProductTagTypeID, PurchaseOrderTypeAccountMatrixID, PodLinePurchaseOrderTypeID, ReplenJobID, QuantityTypeID, ReasonForExportID, SegmentFullName, SegmentID, SegmentStatusID, SegmentProcessID, PickDeviceUUID, PickGroupID, PodLineSerialTypeID, PackReference, ShipmentID, ShipmentSetID, ShipmentSetLineID, ShipmentSetTypeID, SKU, SnapshotPickableUUID, SnapshotPackableUUID, SnapshotKittableUUID, SupplierID, TagTypeAccountMatrixID, PodLineTagTypeID, TemplateID, TemplateTypeID, TransactionID, JournalID, OperationTypeID, UserID, UOMID, WarehouseID, MiscID, ZoneID, WeightUnitOfMeasureID, DimensionUnitOfMeasureID, Grams, Kilograms, Millimetres, Centimetres } from './Types/Internal/Misc.js';
153
+ export {} from './Types/Internal/Misc.js';
158
154
  export {} from './Types/Internal/RefWrapper.js';
159
155
  export {} from './Types/Internal/SelectOption.js';
160
156
  export { Shape } from './Types/Internal/Shape.js';
@@ -166,72 +162,4 @@ export {} from './Types/Internal/ToastMessage.js';
166
162
  export { Validity } from './Types/Internal/Validity.js';
167
163
  export {} from './Types/Internal/ValidityWrapper.js';
168
164
  export { Variant } from './Types/Internal/Variant.js';
169
- export { IFillablePodLineDateRequestBody } from './Types/Requests/IFillablePodLineDateRequestBody.js';
170
- export { IRequiredPodLineDateRequestBody } from './Types/Requests/IRequiredPodLineDateRequestBody.js';
171
- export { IValidatedPodLineDateRequestBody } from './Types/Requests/IValidatedPodLineDateRequestBody.js';
172
- export {} from './Types/Responses/Pods/IAttributeTypeWithAI.js';
173
- export {} from './Types/Responses/Pods/IBatchType.js';
174
- export {} from './Types/Responses/Pods/IDateType.js';
175
- export {} from './Types/Responses/Pods/IFillablePodLineAttribute.js';
176
- export {} from './Types/Responses/Pods/IFillablePodLineBatch.js';
177
- export {} from './Types/Responses/Pods/IFillablePodLineDate.js';
178
- export {} from './Types/Responses/Pods/IFillablePodLinePurchaseOrder.js';
179
- export {} from './Types/Responses/Pods/IFillablePodLineSerial.js';
180
- export {} from './Types/Responses/Pods/IFillablePodLineTag.js';
181
- export {} from './Types/Responses/Pods/IPurchaseOrderType.js';
182
- export { IRequiredOrValidatedAttribute } from './Types/Responses/Pods/IRequiredOrValidatedAttribute.js';
183
- export { IRequiredPodLineBatch } from './Types/Responses/Pods/IRequiredPodLineBatch.js';
184
- export { IRequiredPodLineDate } from './Types/Responses/Pods/IRequiredPodLineDate.js';
185
- export { IRequiredPodLinePurchaseOrder } from './Types/Responses/Pods/IRequiredPodLinePurchaseOrder.js';
186
- export { IRequiredPodLineSerial } from './Types/Responses/Pods/IRequiredPodLineSerial.js';
187
- export { IRequiredPodLineTag } from './Types/Responses/Pods/IRequiredPodLineTag.js';
188
- export {} from './Types/Responses/Pods/ISerialType.js';
189
- export {} from './Types/Responses/Pods/ITagType.js';
190
- export { IValidatedPodLineAttribute } from './Types/Responses/Pods/IValidatedPodLineAttribute.js';
191
- export { IValidatedPodLineBatch } from './Types/Responses/Pods/IValidatedPodLineBatch.js';
192
- export { IValidatedPodLineDate } from './Types/Responses/Pods/IValidatedPodLineDate.js';
193
- export { IValidatedPodLinePurchaseOrder } from './Types/Responses/Pods/IValidatedPodLinePurchaseOrder.js';
194
- export { IValidatedPodLineSerial } from './Types/Responses/Pods/IValidatedPodLineSerial.js';
195
- export { IValidatedPodLineTag } from './Types/Responses/Pods/IValidatedPodLineTag.js';
196
- export { IAttributeRule } from './Types/Responses/Products/IAttributeRule.js';
197
- export { IBarcode } from './Types/Responses/Products/IBarcode.js';
198
- export { IBatchRule } from './Types/Responses/Products/IBatchRule.js';
199
- export { ICustomerRule } from './Types/Responses/Products/ICustomerRule.js';
200
- export { IDateRule } from './Types/Responses/Products/IDateRule.js';
201
- export { IPrice } from './Types/Responses/Products/IPrice.js';
202
- export { IProduct } from './Types/Responses/Products/IProduct.js';
203
- export { IProductKit } from './Types/Responses/Products/IProductKit.js';
204
- export {} from './Types/Responses/Products/IProductKitMatrix.js';
205
- export { IProductSupplier } from './Types/Responses/Products/IProductSupplier.js';
206
- export { IProductTag } from './Types/Responses/Products/IProductTag.js';
207
- export { IProductTagType } from './Types/Responses/Products/IProductTagType.js';
208
- export { IProductUnitOfMeasure } from './Types/Responses/Products/IProductUnitOfMeasure.js';
209
- export { IProductUnitOfMeasurePrice } from './Types/Responses/Products/IProductUnitOfMeasurePrice.js';
210
- export { IPurchaseOrderRule } from './Types/Responses/Products/IPurchaseOrderRule.js';
211
- export { ISerialRule } from './Types/Responses/Products/ISerialRule.js';
212
- export { ITagRule } from './Types/Responses/Products/ITagRule.js';
213
- export { IUnitOfMeasure } from './Types/Responses/Products/IUnitOfMeasure.js';
214
- export { AddressType } from './Types/Responses/AddressType.js';
215
- export { IAddress } from './Types/Responses/IAddress.js';
216
- export { IBaseAddress } from './Types/Responses/IBaseAddress.js';
217
- export {} from './Types/Responses/ICountry.js';
218
- export { IDBEntry } from './Types/Responses/IDBEntry.js';
219
- export {} from './Types/Responses/IErrorResponse.js';
220
- export {} from './Types/Responses/ILabelPrinter.js';
221
- export {} from './Types/Responses/ILaserPrinter.js';
222
- export {} from './Types/Responses/ILoginResponse.js';
223
- export {} from './Types/Responses/IPaginatedPayload.js';
224
- export {} from './Types/Responses/IPaginatedResponse.js';
225
- export {} from './Types/Responses/IPagination.js';
226
- export {} from './Types/Responses/IPayload.js';
227
- export {} from './Types/Responses/IPrinter.js';
228
- export { IProcessTypeSelectionMethodOutboundType } from './Types/Responses/IProcessTypeSelectionMethodOutboundType.js';
229
- export { IProcessTypeSelectionMethodWarehouseCustomer } from './Types/Responses/IProcessTypeSelectionMethodWarehouseCustomer.js';
230
- export { IProcessTypeSelectionMethodWarehouseCustomerType } from './Types/Responses/IProcessTypeSelectionMethodWarehouseCustomerType.js';
231
- export { IProductCategory } from './Types/Responses/IProductCategory.js';
232
- export { IProductCategoryDetails } from './Types/Responses/IProductCategoryDetails.js';
233
- export { IProductIgnoreOnAllocationOutboundType } from './Types/Responses/IProductIgnoreOnAllocationOutboundType.js';
234
- export { IProductLocation } from './Types/Responses/IProductLocation.js';
235
- export {} from './Types/Responses/IResponse.js';
236
- export { IStockSortationMethodCustomer } from './Types/Responses/IStockSortationMethodCustomer.js';
237
165
  export { Colour, ColourSet } from './scss/colours.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lavalogic/scoria",
3
3
  "description": "Svelte components used for the FloWMS Web Frontend",
4
- "version": "0.0.13",
4
+ "version": "0.0.15",
5
5
  "publishConfig": {
6
6
  "access": "restricted"
7
7
  },
@@ -23,27 +23,30 @@
23
23
  }
24
24
  },
25
25
  "peerDependencies": {
26
+ "@sinclair/typebox": "^0.34.41",
26
27
  "@sveltejs/kit": "^2.0.0",
27
- "svelte": "^5.0.0",
28
- "@sinclair/typebox": "^0.34.41"
28
+ "svelte": "^5.0.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@sinclair/typebox": "^0.34.41",
32
31
  "@chromatic-com/storybook": "^4.1.1",
33
32
  "@eslint/compat": "^1.4.0",
34
33
  "@eslint/js": "^9.37.0",
35
34
  "@inlang/paraglide-js": "^2.4.0",
36
- "@playwright/test": "^1.55.1",
35
+ "@playwright/test": "^1.56.0",
36
+ "@sinclair/typebox": "^0.34.41",
37
37
  "@storybook/addon-a11y": "^9.1.10",
38
38
  "@storybook/addon-docs": "^9.1.10",
39
39
  "@storybook/addon-svelte-csf": "^5.0.10",
40
40
  "@storybook/addon-vitest": "^9.1.10",
41
41
  "@storybook/sveltekit": "^9.1.10",
42
42
  "@sveltejs/adapter-node": "^5.3.3",
43
- "@sveltejs/kit": "^2.44.0",
43
+ "@sveltejs/kit": "^2.46.5",
44
44
  "@sveltejs/package": "^2.5.4",
45
45
  "@sveltejs/vite-plugin-svelte": "^6.2.1",
46
- "@types/node": "^20.19.19",
46
+ "@types/eslint": "^9.6.1",
47
+ "@types/node": "^20.19.21",
48
+ "@typescript-eslint/eslint-plugin": "^8.46.1",
49
+ "@typescript-eslint/parser": "^8.46.1",
47
50
  "@vitest/browser": "^3.2.4",
48
51
  "eslint": "^9.37.0",
49
52
  "eslint-config-prettier": "^10.1.8",
@@ -51,23 +54,20 @@
51
54
  "eslint-plugin-svelte": "^3.12.4",
52
55
  "globals": "^16.4.0",
53
56
  "mdsvex": "^0.12.6",
54
- "playwright": "^1.55.1",
57
+ "playwright": "^1.56.0",
55
58
  "prettier": "^3.6.2",
56
59
  "prettier-plugin-svelte": "^3.4.0",
57
60
  "publint": "^0.3.14",
58
61
  "sass-embedded": "^1.93.2",
59
62
  "storybook": "^9.1.10",
60
- "svelte": "^5.39.9",
61
- "svelte-check": "^4.3.2",
63
+ "svelte": "^5.39.13",
64
+ "svelte-check": "^4.3.3",
62
65
  "typescript": "^5.9.3",
63
- "typescript-eslint": "^8.45.0",
64
- "vite": "^7.1.9",
66
+ "typescript-eslint": "^8.46.1",
67
+ "vite": "^7.1.10",
65
68
  "vite-plugin-devtools-json": "^1.0.0",
66
69
  "vitest": "^3.2.4",
67
- "vitest-browser-svelte": "^1.1.0",
68
- "@types/eslint": "^9.6.1",
69
- "@typescript-eslint/eslint-plugin": "^8.45.0",
70
- "@typescript-eslint/parser": "^8.45.0"
70
+ "vitest-browser-svelte": "^1.1.0"
71
71
  },
72
72
  "keywords": [
73
73
  "svelte"
@@ -1,74 +0,0 @@
1
- import type { FloService } from '../../../../Types/Internal/FloService.js';
2
- import { type TSchema } from '@sinclair/typebox';
3
- import { TableDataRepository } from './TableDataRepository.svelte.js';
4
- import type { IRemoteDataRepository } from './IRemoteDataRepository.js';
5
- import { FilterType } from '../Filtering/FilterType.js';
6
- import type { SortingState } from './SortingState.js';
7
- import type { ColumnFiltersState } from '../Filtering/ColumnFiltersState.js';
8
- import type { OnChangeFn } from '../OnChangeFn.js';
9
- import { StringFilterMode } from '../Filtering/StringFilterMode.js';
10
- import { NumberDateFilterMode } from '../Filtering/NumberDateFilterMode.js';
11
- import type { IPaginatedResponse } from '../../../../Types/Responses/IPaginatedResponse.js';
12
- import type { IResponse } from '../../../../Types/Responses/IResponse.js';
13
- import type { CustomRemoteFilters } from '../Filtering/CustomRemoteFilters.js';
14
- export interface RemoteTableDataRepositoryOptions<httpResponseSchema extends object = object, heldTypeSchema extends object = httpResponseSchema> {
15
- uri: string | null;
16
- tableName: string;
17
- service: FloService;
18
- defaultFilters: Map<string, string>;
19
- getUserId: () => string | undefined;
20
- httpGetter: (service: FloService, uri: string) => Promise<IResponse<httpResponseSchema[]>>;
21
- httpGetterPaginated: (service: FloService, uri: string) => Promise<IPaginatedResponse<httpResponseSchema[]>>;
22
- schema?: TSchema;
23
- pageSize?: number;
24
- fetchImmediately?: boolean;
25
- remoteFilters?: CustomRemoteFilters;
26
- responseTransformation?: (items: httpResponseSchema[]) => heldTypeSchema[];
27
- }
28
- export declare class RemoteTableDataRepository<T extends object = object, R extends object = T> extends TableDataRepository<R> implements IRemoteDataRepository<R> {
29
- options: RemoteTableDataRepositoryOptions<T, R>;
30
- static readonly memoise: <T extends object, K extends keyof T, ResponseType>(getter: (item: T) => Promise<ResponseType>, key: K) => (item: T) => Promise<ResponseType>;
31
- private httpGetter;
32
- private httpGetterPaginated;
33
- constructor(options: RemoteTableDataRepositoryOptions<T, R>);
34
- private _latestFetchId;
35
- private _data;
36
- get data(): R[];
37
- set data(v: R[]);
38
- readonly paginationType: "Remote";
39
- readonly filterType: FilterType;
40
- readonly manualSorting = true;
41
- private _sorting;
42
- get sorting(): SortingState;
43
- set sorting(v: SortingState);
44
- private _totalRows;
45
- get totalRows(): number;
46
- set totalRows(v: number);
47
- private _lastPageIndex;
48
- private _lastPage;
49
- get lastPage(): number;
50
- private _isLoadingInternal;
51
- private _isLoadingExternal;
52
- private _isLoading;
53
- get isLoading(): boolean;
54
- set isLoading(v: boolean);
55
- private _filtering;
56
- get filtering(): ColumnFiltersState;
57
- set filtering(v: ColumnFiltersState);
58
- get pageStartIndex(): number;
59
- private _pageEndIndexExclusive;
60
- get pageEndIndexExclusive(): number;
61
- readonly resetFilters: () => void;
62
- updateSorting: OnChangeFn<SortingState>;
63
- readonly setFilterMode: (id: string, mode: StringFilterMode | NumberDateFilterMode | undefined) => void;
64
- readonly filterBy: (id: string, value: unknown) => void;
65
- setPageSize: (size: string | number) => void;
66
- setPage: (page: number) => void;
67
- nextPage: () => void;
68
- prevPage: () => void;
69
- reload: (debounced?: boolean) => void;
70
- private previousUri;
71
- private _fetch;
72
- private _queryString;
73
- get queryString(): Promise<string>;
74
- }