@lavalogic/scoria 0.0.1
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 -0
- package/dist/Components/Action.svelte +258 -0
- package/dist/Components/Action.svelte.d.ts +30 -0
- package/dist/Components/AlertModal.svelte +373 -0
- package/dist/Components/AlertModal.svelte.d.ts +3 -0
- package/dist/Components/BigRadioSet.svelte +88 -0
- package/dist/Components/BigRadioSet.svelte.d.ts +30 -0
- package/dist/Components/Bubble.svelte +115 -0
- package/dist/Components/Bubble.svelte.d.ts +21 -0
- package/dist/Components/Button.svelte +540 -0
- package/dist/Components/Button.svelte.d.ts +32 -0
- package/dist/Components/Checkbox.svelte +168 -0
- package/dist/Components/Checkbox.svelte.d.ts +15 -0
- package/dist/Components/CollapsibleCard.svelte +136 -0
- package/dist/Components/CollapsibleCard.svelte.d.ts +11 -0
- package/dist/Components/Contexts/ContextMenu.svelte +73 -0
- package/dist/Components/Contexts/ContextMenu.svelte.d.ts +3 -0
- package/dist/Components/Contexts/ContextMenuDivider.svelte +11 -0
- package/dist/Components/Contexts/ContextMenuDivider.svelte.d.ts +6 -0
- package/dist/Components/Contexts/ContextMenuOption.svelte +65 -0
- package/dist/Components/Contexts/ContextMenuOption.svelte.d.ts +10 -0
- package/dist/Components/Contexts/Toast.svelte +89 -0
- package/dist/Components/Contexts/Toast.svelte.d.ts +8 -0
- package/dist/Components/Contexts/ToastContainer.svelte +54 -0
- package/dist/Components/Contexts/ToastContainer.svelte.d.ts +3 -0
- package/dist/Components/Contexts/Tooltip.svelte +116 -0
- package/dist/Components/Contexts/Tooltip.svelte.d.ts +3 -0
- package/dist/Components/DataMatrixIcon.svelte +58 -0
- package/dist/Components/DataMatrixIcon.svelte.d.ts +9 -0
- package/dist/Components/DateInput.svelte +356 -0
- package/dist/Components/DateInput.svelte.d.ts +24 -0
- package/dist/Components/DatePicker.svelte +346 -0
- package/dist/Components/DatePicker.svelte.d.ts +11 -0
- package/dist/Components/DesktopModal.svelte +235 -0
- package/dist/Components/DesktopModal.svelte.d.ts +23 -0
- package/dist/Components/Dial.svelte +219 -0
- package/dist/Components/Dial.svelte.d.ts +37 -0
- package/dist/Components/DimensionInput.svelte +486 -0
- package/dist/Components/DimensionInput.svelte.d.ts +32 -0
- package/dist/Components/FileCard.svelte +32 -0
- package/dist/Components/FileCard.svelte.d.ts +7 -0
- package/dist/Components/FileUpload.svelte +413 -0
- package/dist/Components/FileUpload.svelte.d.ts +27 -0
- package/dist/Components/GridInput.svelte +187 -0
- package/dist/Components/GridInput.svelte.d.ts +30 -0
- package/dist/Components/GridInputSet.svelte +37 -0
- package/dist/Components/GridInputSet.svelte.d.ts +30 -0
- package/dist/Components/HorizontalTabGroup.svelte +81 -0
- package/dist/Components/HorizontalTabGroup.svelte.d.ts +34 -0
- package/dist/Components/HorizontalTabGroupButton.svelte +85 -0
- package/dist/Components/HorizontalTabGroupButton.svelte.d.ts +29 -0
- package/dist/Components/Icon.svelte +1412 -0
- package/dist/Components/Icon.svelte.d.ts +887 -0
- package/dist/Components/LoadingAnimation.svelte +129 -0
- package/dist/Components/LoadingAnimation.svelte.d.ts +6 -0
- package/dist/Components/LoadingModal.svelte +316 -0
- package/dist/Components/LoadingModal.svelte.d.ts +7 -0
- package/dist/Components/LoadingOverlay.svelte +58 -0
- package/dist/Components/LoadingOverlay.svelte.d.ts +8 -0
- package/dist/Components/Modal.svelte +577 -0
- package/dist/Components/Modal.svelte.d.ts +31 -0
- package/dist/Components/MultiSelect.svelte +412 -0
- package/dist/Components/MultiSelect.svelte.d.ts +49 -0
- package/dist/Components/NumberInput.svelte +407 -0
- package/dist/Components/NumberInput.svelte.d.ts +32 -0
- package/dist/Components/PasswordInput.svelte +324 -0
- package/dist/Components/PasswordInput.svelte.d.ts +18 -0
- package/dist/Components/Portal.svelte +31 -0
- package/dist/Components/Portal.svelte.d.ts +8 -0
- package/dist/Components/ProgressBubble.svelte +134 -0
- package/dist/Components/ProgressBubble.svelte.d.ts +8 -0
- package/dist/Components/QuerySelect.svelte +556 -0
- package/dist/Components/QuerySelect.svelte.d.ts +52 -0
- package/dist/Components/SingleSelect.svelte +480 -0
- package/dist/Components/SingleSelect.svelte.d.ts +61 -0
- package/dist/Components/Switch.svelte +151 -0
- package/dist/Components/Switch.svelte.d.ts +12 -0
- package/dist/Components/Table/Body/QuickSearchCell.svelte +527 -0
- package/dist/Components/Table/Body/QuickSearchCell.svelte.d.ts +30 -0
- package/dist/Components/Table/Body/Rows/ColumnHighlight.svelte +67 -0
- package/dist/Components/Table/Body/Rows/ColumnHighlight.svelte.d.ts +8 -0
- package/dist/Components/Table/Body/Rows/ColumnList.svelte +67 -0
- package/dist/Components/Table/Body/Rows/ColumnList.svelte.d.ts +27 -0
- package/dist/Components/Table/Body/Rows/ColumnListRow.svelte +187 -0
- package/dist/Components/Table/Body/Rows/ColumnListRow.svelte.d.ts +28 -0
- package/dist/Components/Table/Body/Rows/Columns/ActionsCell.svelte +305 -0
- package/dist/Components/Table/Body/Rows/Columns/ActionsCell.svelte.d.ts +29 -0
- package/dist/Components/Table/Body/Rows/Columns/BubbleCell.svelte +171 -0
- package/dist/Components/Table/Body/Rows/Columns/BubbleCell.svelte.d.ts +28 -0
- package/dist/Components/Table/Body/Rows/Columns/ExpandCell.svelte +149 -0
- package/dist/Components/Table/Body/Rows/Columns/ExpandCell.svelte.d.ts +31 -0
- package/dist/Components/Table/Body/Rows/Columns/FocusableImmutableCell.svelte +156 -0
- package/dist/Components/Table/Body/Rows/Columns/FocusableImmutableCell.svelte.d.ts +31 -0
- package/dist/Components/Table/Body/Rows/Columns/ProgressCell.svelte +161 -0
- package/dist/Components/Table/Body/Rows/Columns/ProgressCell.svelte.d.ts +28 -0
- package/dist/Components/Table/Body/Rows/Columns/TableAction.svelte +62 -0
- package/dist/Components/Table/Body/Rows/Columns/TableAction.svelte.d.ts +30 -0
- package/dist/Components/Table/Body/Rows/Columns/TableCheckbox.svelte +155 -0
- package/dist/Components/Table/Body/Rows/Columns/TableCheckbox.svelte.d.ts +30 -0
- package/dist/Components/Table/Body/Rows/Columns/TableColumn.svelte +140 -0
- package/dist/Components/Table/Body/Rows/Columns/TableColumn.svelte.d.ts +31 -0
- package/dist/Components/Table/Body/Rows/Columns/TableDatePicker.svelte +290 -0
- package/dist/Components/Table/Body/Rows/Columns/TableDatePicker.svelte.d.ts +28 -0
- package/dist/Components/Table/Body/Rows/Columns/TableNumberInput.svelte +359 -0
- package/dist/Components/Table/Body/Rows/Columns/TableNumberInput.svelte.d.ts +28 -0
- package/dist/Components/Table/Body/Rows/Columns/TableQuerySelect.svelte +331 -0
- package/dist/Components/Table/Body/Rows/Columns/TableQuerySelect.svelte.d.ts +28 -0
- package/dist/Components/Table/Body/Rows/Columns/TableRowSelectionCheckbox.svelte +157 -0
- package/dist/Components/Table/Body/Rows/Columns/TableRowSelectionCheckbox.svelte.d.ts +30 -0
- package/dist/Components/Table/Body/Rows/Columns/TableSelect.svelte +354 -0
- package/dist/Components/Table/Body/Rows/Columns/TableSelect.svelte.d.ts +28 -0
- package/dist/Components/Table/Body/Rows/Columns/TableTextInput.svelte +375 -0
- package/dist/Components/Table/Body/Rows/Columns/TableTextInput.svelte.d.ts +28 -0
- package/dist/Components/Table/Body/Rows/Columns/ValidityCell.svelte +227 -0
- package/dist/Components/Table/Body/Rows/Columns/ValidityCell.svelte.d.ts +33 -0
- package/dist/Components/Table/Body/Rows/TableRow.svelte +201 -0
- package/dist/Components/Table/Body/Rows/TableRow.svelte.d.ts +30 -0
- package/dist/Components/Table/Body/TableBody.svelte +74 -0
- package/dist/Components/Table/Body/TableBody.svelte.d.ts +27 -0
- package/dist/Components/Table/ColumnDefinitions/ExampleItemColumnDef.svelte.d.ts +7 -0
- package/dist/Components/Table/ColumnDefinitions/ExampleItemColumnDef.svelte.js +139 -0
- package/dist/Components/Table/Headers/HighlightAllHeader.svelte +52 -0
- package/dist/Components/Table/Headers/HighlightAllHeader.svelte.d.ts +24 -0
- package/dist/Components/Table/Headers/SelectAllHeader.svelte +62 -0
- package/dist/Components/Table/Headers/SelectAllHeader.svelte.d.ts +24 -0
- package/dist/Components/Table/Headers/TableHead.svelte +366 -0
- package/dist/Components/Table/Headers/TableHead.svelte.d.ts +29 -0
- package/dist/Components/Table/Misc/ColumnPanel.svelte +96 -0
- package/dist/Components/Table/Misc/ColumnPanel.svelte.d.ts +24 -0
- package/dist/Components/Table/Misc/ColumnPanelModal.svelte +137 -0
- package/dist/Components/Table/Misc/ColumnPanelModal.svelte.d.ts +27 -0
- package/dist/Components/Table/Misc/FilterInput.svelte +635 -0
- package/dist/Components/Table/Misc/FilterInput.svelte.d.ts +45 -0
- package/dist/Components/Table/Misc/FilterPanel.svelte +49 -0
- package/dist/Components/Table/Misc/FilterPanel.svelte.d.ts +24 -0
- package/dist/Components/Table/Misc/FilterPanelModal.svelte +74 -0
- package/dist/Components/Table/Misc/FilterPanelModal.svelte.d.ts +27 -0
- package/dist/Components/Table/Misc/SidePanel.svelte +51 -0
- package/dist/Components/Table/Misc/SidePanel.svelte.d.ts +10 -0
- package/dist/Components/Table/Misc/TableFooter.svelte +364 -0
- package/dist/Components/Table/Misc/TableFooter.svelte.d.ts +27 -0
- package/dist/Components/Table/Misc/TableHorizontalBar.svelte +171 -0
- package/dist/Components/Table/Misc/TableHorizontalBar.svelte.d.ts +24 -0
- package/dist/Components/Table/Misc/TableSidebar.svelte +186 -0
- package/dist/Components/Table/Misc/TableSidebar.svelte.d.ts +24 -0
- package/dist/Components/Table/Misc/ToolboxPanel.svelte +84 -0
- package/dist/Components/Table/Misc/ToolboxPanel.svelte.d.ts +24 -0
- package/dist/Components/Table/Misc/ToolboxPanelModal.svelte +108 -0
- package/dist/Components/Table/Misc/ToolboxPanelModal.svelte.d.ts +27 -0
- package/dist/Components/Table/NestedTable.svelte +86 -0
- package/dist/Components/Table/NestedTable.svelte.d.ts +34 -0
- package/dist/Components/Table/Table.svelte +555 -0
- package/dist/Components/Table/Table.svelte.d.ts +37 -0
- package/dist/Components/Table/Types/Columns/AbstractDisplayDef.svelte.d.ts +19 -0
- package/dist/Components/Table/Types/Columns/AbstractDisplayDef.svelte.js +10 -0
- package/dist/Components/Table/Types/Columns/Column.d.ts +10 -0
- package/dist/Components/Table/Types/Columns/Column.js +1 -0
- package/dist/Components/Table/Types/Columns/ColumnDefPreset.d.ts +11 -0
- package/dist/Components/Table/Types/Columns/ColumnDefPreset.js +1 -0
- package/dist/Components/Table/Types/Columns/ColumnPinningState.d.ts +4 -0
- package/dist/Components/Table/Types/Columns/ColumnPinningState.js +1 -0
- package/dist/Components/Table/Types/Columns/ColumnSizingState.d.ts +1 -0
- package/dist/Components/Table/Types/Columns/ColumnSizingState.js +1 -0
- package/dist/Components/Table/Types/Columns/ColumnType.d.ts +9 -0
- package/dist/Components/Table/Types/Columns/ColumnType.js +10 -0
- package/dist/Components/Table/Types/Columns/DateColumn.d.ts +10 -0
- package/dist/Components/Table/Types/Columns/DateColumn.js +1 -0
- package/dist/Components/Table/Types/Columns/DateTableCell.d.ts +8 -0
- package/dist/Components/Table/Types/Columns/DateTableCell.js +1 -0
- package/dist/Components/Table/Types/Columns/Definitions/AccessorFn.d.ts +1 -0
- package/dist/Components/Table/Types/Columns/Definitions/AccessorFn.js +1 -0
- package/dist/Components/Table/Types/Columns/Definitions/Accessors/AccessorDef.svelte.d.ts +10 -0
- package/dist/Components/Table/Types/Columns/Definitions/Accessors/AccessorDef.svelte.js +5 -0
- package/dist/Components/Table/Types/Columns/Definitions/Accessors/AccessorType.d.ts +8 -0
- package/dist/Components/Table/Types/Columns/Definitions/Accessors/AccessorType.js +9 -0
- package/dist/Components/Table/Types/Columns/Definitions/Accessors/CheckboxDef.d.ts +9 -0
- package/dist/Components/Table/Types/Columns/Definitions/Accessors/CheckboxDef.js +8 -0
- package/dist/Components/Table/Types/Columns/Definitions/Accessors/DateInputDef.svelte.d.ts +11 -0
- package/dist/Components/Table/Types/Columns/Definitions/Accessors/DateInputDef.svelte.js +10 -0
- package/dist/Components/Table/Types/Columns/Definitions/Accessors/NumberInputDef.svelte.d.ts +14 -0
- package/dist/Components/Table/Types/Columns/Definitions/Accessors/NumberInputDef.svelte.js +13 -0
- package/dist/Components/Table/Types/Columns/Definitions/Accessors/QueryDef.d.ts +15 -0
- package/dist/Components/Table/Types/Columns/Definitions/Accessors/QueryDef.js +12 -0
- package/dist/Components/Table/Types/Columns/Definitions/Accessors/SelectDef.svelte.d.ts +18 -0
- package/dist/Components/Table/Types/Columns/Definitions/Accessors/SelectDef.svelte.js +16 -0
- package/dist/Components/Table/Types/Columns/Definitions/Accessors/TextInputDef.d.ts +9 -0
- package/dist/Components/Table/Types/Columns/Definitions/Accessors/TextInputDef.js +8 -0
- package/dist/Components/Table/Types/Columns/Definitions/Actions/ActionsDef.svelte.d.ts +16 -0
- package/dist/Components/Table/Types/Columns/Definitions/Actions/ActionsDef.svelte.js +19 -0
- package/dist/Components/Table/Types/Columns/Definitions/ColumnDef.svelte.d.ts +52 -0
- package/dist/Components/Table/Types/Columns/Definitions/ColumnDef.svelte.js +77 -0
- package/dist/Components/Table/Types/Columns/Definitions/ColumnDefSet.d.ts +11 -0
- package/dist/Components/Table/Types/Columns/Definitions/ColumnDefSet.js +1 -0
- package/dist/Components/Table/Types/Columns/Definitions/Display/BubbleDef.svelte.d.ts +11 -0
- package/dist/Components/Table/Types/Columns/Definitions/Display/BubbleDef.svelte.js +10 -0
- package/dist/Components/Table/Types/Columns/Definitions/Display/DisplayDef.d.ts +8 -0
- package/dist/Components/Table/Types/Columns/Definitions/Display/DisplayDef.js +8 -0
- package/dist/Components/Table/Types/Columns/Definitions/Display/ProgressBarDef.svelte.d.ts +11 -0
- package/dist/Components/Table/Types/Columns/Definitions/Display/ProgressBarDef.svelte.js +10 -0
- package/dist/Components/Table/Types/Columns/Definitions/Display/ValidityDef.svelte.d.ts +11 -0
- package/dist/Components/Table/Types/Columns/Definitions/Display/ValidityDef.svelte.js +11 -0
- package/dist/Components/Table/Types/Columns/Definitions/Expand/ExpandDef.svelte.d.ts +21 -0
- package/dist/Components/Table/Types/Columns/Definitions/Expand/ExpandDef.svelte.js +18 -0
- package/dist/Components/Table/Types/Columns/Definitions/FilterOnly/FilterOnlyDef.d.ts +6 -0
- package/dist/Components/Table/Types/Columns/Definitions/FilterOnly/FilterOnlyDef.js +5 -0
- package/dist/Components/Table/Types/Columns/Definitions/RowSelection/RowSelectionDef.svelte.d.ts +7 -0
- package/dist/Components/Table/Types/Columns/Definitions/RowSelection/RowSelectionDef.svelte.js +15 -0
- package/dist/Components/Table/Types/Columns/Definitions/ValidationFn.d.ts +3 -0
- package/dist/Components/Table/Types/Columns/Definitions/ValidationFn.js +1 -0
- package/dist/Components/Table/Types/Columns/DefsWrapper.d.ts +6 -0
- package/dist/Components/Table/Types/Columns/DefsWrapper.js +1 -0
- package/dist/Components/Table/Types/Columns/DisplayType.d.ts +7 -0
- package/dist/Components/Table/Types/Columns/DisplayType.js +8 -0
- package/dist/Components/Table/Types/Columns/ExpandColumn.d.ts +10 -0
- package/dist/Components/Table/Types/Columns/ExpandColumn.js +1 -0
- package/dist/Components/Table/Types/Columns/ExpandTableCell.d.ts +8 -0
- package/dist/Components/Table/Types/Columns/ExpandTableCell.js +1 -0
- package/dist/Components/Table/Types/Columns/ProgressBarColumn.d.ts +10 -0
- package/dist/Components/Table/Types/Columns/ProgressBarColumn.js +1 -0
- package/dist/Components/Table/Types/Columns/ProgressBarTableCell.d.ts +8 -0
- package/dist/Components/Table/Types/Columns/ProgressBarTableCell.js +1 -0
- package/dist/Components/Table/Types/Columns/TableActionButton.d.ts +8 -0
- package/dist/Components/Table/Types/Columns/TableActionButton.js +1 -0
- package/dist/Components/Table/Types/Columns/TableCell.d.ts +8 -0
- package/dist/Components/Table/Types/Columns/TableCell.js +1 -0
- package/dist/Components/Table/Types/Columns/VisibilityState.d.ts +1 -0
- package/dist/Components/Table/Types/Columns/VisibilityState.js +1 -0
- package/dist/Components/Table/Types/Context/ReadonlyRowModel.d.ts +6 -0
- package/dist/Components/Table/Types/Context/ReadonlyRowModel.js +1 -0
- package/dist/Components/Table/Types/Context/Row.d.ts +10 -0
- package/dist/Components/Table/Types/Context/Row.js +1 -0
- package/dist/Components/Table/Types/Context/RowModel.d.ts +5 -0
- package/dist/Components/Table/Types/Context/RowModel.js +1 -0
- package/dist/Components/Table/Types/Context/Table.d.ts +33 -0
- package/dist/Components/Table/Types/Context/Table.js +1 -0
- package/dist/Components/Table/Types/Context/TableContext.svelte.d.ts +232 -0
- package/dist/Components/Table/Types/Context/TableContext.svelte.js +2317 -0
- package/dist/Components/Table/Types/Context/TableInitOptions.d.ts +14 -0
- package/dist/Components/Table/Types/Context/TableInitOptions.js +1 -0
- package/dist/Components/Table/Types/Context/TableSettings.d.ts +8 -0
- package/dist/Components/Table/Types/Context/TableSettings.js +1 -0
- package/dist/Components/Table/Types/Coordinates/CellCoordinates.d.ts +5 -0
- package/dist/Components/Table/Types/Coordinates/CellCoordinates.js +1 -0
- package/dist/Components/Table/Types/Coordinates/CellCoordinatesWithoutColumn.d.ts +2 -0
- package/dist/Components/Table/Types/Coordinates/CellCoordinatesWithoutColumn.js +1 -0
- package/dist/Components/Table/Types/DataRepository/DataRepository.d.ts +40 -0
- package/dist/Components/Table/Types/DataRepository/DataRepository.js +1 -0
- package/dist/Components/Table/Types/DataRepository/LocalDataRepository.d.ts +24 -0
- package/dist/Components/Table/Types/DataRepository/LocalDataRepository.js +1 -0
- package/dist/Components/Table/Types/DataRepository/LocalTableDataRepository.svelte.d.ts +55 -0
- package/dist/Components/Table/Types/DataRepository/LocalTableDataRepository.svelte.js +311 -0
- package/dist/Components/Table/Types/DataRepository/RemoteDataRepository.d.ts +19 -0
- package/dist/Components/Table/Types/DataRepository/RemoteDataRepository.js +1 -0
- package/dist/Components/Table/Types/DataRepository/RemoteTableDataRepository.svelte.d.ts +92 -0
- package/dist/Components/Table/Types/DataRepository/RemoteTableDataRepository.svelte.js +521 -0
- package/dist/Components/Table/Types/DataRepository/SortingState.d.ts +5 -0
- package/dist/Components/Table/Types/DataRepository/SortingState.js +1 -0
- package/dist/Components/Table/Types/DataRepository/TableDataRepository.svelte.d.ts +47 -0
- package/dist/Components/Table/Types/DataRepository/TableDataRepository.svelte.js +75 -0
- package/dist/Components/Table/Types/ExpandedPanel.d.ts +6 -0
- package/dist/Components/Table/Types/ExpandedPanel.js +7 -0
- package/dist/Components/Table/Types/Filtering/ColumnFiltersState.d.ts +5 -0
- package/dist/Components/Table/Types/Filtering/ColumnFiltersState.js +1 -0
- package/dist/Components/Table/Types/Filtering/CustomFilter.d.ts +12 -0
- package/dist/Components/Table/Types/Filtering/CustomFilter.js +1 -0
- package/dist/Components/Table/Types/Filtering/CustomFilterType.d.ts +6 -0
- package/dist/Components/Table/Types/Filtering/CustomFilterType.js +7 -0
- package/dist/Components/Table/Types/Filtering/CustomFlterFn.d.ts +2 -0
- package/dist/Components/Table/Types/Filtering/CustomFlterFn.js +1 -0
- package/dist/Components/Table/Types/Filtering/CustomProxyFIlter.d.ts +10 -0
- package/dist/Components/Table/Types/Filtering/CustomProxyFIlter.js +1 -0
- package/dist/Components/Table/Types/Filtering/CustomRemoteFilters.d.ts +3 -0
- package/dist/Components/Table/Types/Filtering/CustomRemoteFilters.js +1 -0
- package/dist/Components/Table/Types/Filtering/FilterFn.d.ts +9 -0
- package/dist/Components/Table/Types/Filtering/FilterFn.js +1 -0
- package/dist/Components/Table/Types/Filtering/FilterMode.d.ts +3 -0
- package/dist/Components/Table/Types/Filtering/FilterMode.js +1 -0
- package/dist/Components/Table/Types/Filtering/FilterType.d.ts +4 -0
- package/dist/Components/Table/Types/Filtering/FilterType.js +5 -0
- package/dist/Components/Table/Types/Filtering/HasCustomFilterFunction.d.ts +3 -0
- package/dist/Components/Table/Types/Filtering/HasCustomFilterFunction.js +1 -0
- package/dist/Components/Table/Types/Filtering/NumberDateFilterMode.d.ts +13 -0
- package/dist/Components/Table/Types/Filtering/NumberDateFilterMode.js +14 -0
- package/dist/Components/Table/Types/Filtering/StringFilterMode.d.ts +15 -0
- package/dist/Components/Table/Types/Filtering/StringFilterMode.js +16 -0
- package/dist/Components/Table/Types/Focus/MultiFocusEdge.d.ts +10 -0
- package/dist/Components/Table/Types/Focus/MultiFocusEdge.js +11 -0
- package/dist/Components/Table/Types/Focus/TableFocusDetails.svelte.d.ts +40 -0
- package/dist/Components/Table/Types/Focus/TableFocusDetails.svelte.js +174 -0
- package/dist/Components/Table/Types/Header.d.ts +9 -0
- package/dist/Components/Table/Types/Header.js +1 -0
- package/dist/Components/Table/Types/HeaderGroup.d.ts +5 -0
- package/dist/Components/Table/Types/HeaderGroup.js +1 -0
- package/dist/Components/Table/Types/OnChangeFn.d.ts +3 -0
- package/dist/Components/Table/Types/OnChangeFn.js +1 -0
- package/dist/Components/Table/Types/Pagination/PaginationState.d.ts +4 -0
- package/dist/Components/Table/Types/Pagination/PaginationState.js +1 -0
- package/dist/Components/Table/Types/Pagination/PaginationType.d.ts +5 -0
- package/dist/Components/Table/Types/Pagination/PaginationType.js +6 -0
- package/dist/Components/Table/Types/Toolbar/ToolbarPosition.d.ts +6 -0
- package/dist/Components/Table/Types/Toolbar/ToolbarPosition.js +7 -0
- package/dist/Components/TextArea.svelte +349 -0
- package/dist/Components/TextArea.svelte.d.ts +29 -0
- package/dist/Components/TextInput.svelte +407 -0
- package/dist/Components/TextInput.svelte.d.ts +34 -0
- package/dist/Components/ThreeStateRadio.svelte +202 -0
- package/dist/Components/ThreeStateRadio.svelte.d.ts +16 -0
- package/dist/Components/Touch/BoolCard.svelte +180 -0
- package/dist/Components/Touch/BoolCard.svelte.d.ts +13 -0
- package/dist/Components/Touch/DateModal.svelte +256 -0
- package/dist/Components/Touch/DateModal.svelte.d.ts +22 -0
- package/dist/Components/Touch/EditCard.svelte +223 -0
- package/dist/Components/Touch/EditCard.svelte.d.ts +15 -0
- package/dist/Components/Touch/InfoCard.svelte +82 -0
- package/dist/Components/Touch/InfoCard.svelte.d.ts +11 -0
- package/dist/Components/Touch/InfoTextCard.svelte +55 -0
- package/dist/Components/Touch/InfoTextCard.svelte.d.ts +10 -0
- package/dist/Components/Touch/ModalExplanation.svelte +27 -0
- package/dist/Components/Touch/ModalExplanation.svelte.d.ts +9 -0
- package/dist/Components/Touch/NumberKeyboard.svelte +299 -0
- package/dist/Components/Touch/NumberKeyboard.svelte.d.ts +14 -0
- package/dist/Components/Touch/NumberModal.svelte +336 -0
- package/dist/Components/Touch/NumberModal.svelte.d.ts +18 -0
- package/dist/Components/Touch/PlusMinusCard.svelte +94 -0
- package/dist/Components/Touch/PlusMinusCard.svelte.d.ts +9 -0
- package/dist/Components/Touch/SelectModal.svelte +351 -0
- package/dist/Components/Touch/SelectModal.svelte.d.ts +11 -0
- package/dist/Components/Touch/SummaryCard.svelte +348 -0
- package/dist/Components/Touch/SummaryCard.svelte.d.ts +18 -0
- package/dist/Components/Touch/TextAreaModal.svelte +330 -0
- package/dist/Components/Touch/TextAreaModal.svelte.d.ts +15 -0
- package/dist/Components/Touch/TextModal.svelte +377 -0
- package/dist/Components/Touch/TextModal.svelte.d.ts +22 -0
- package/dist/Components/Touch/TouchCard.svelte +169 -0
- package/dist/Components/Touch/TouchCard.svelte.d.ts +9 -0
- package/dist/Components/Touch/TouchModal.svelte +516 -0
- package/dist/Components/Touch/TouchModal.svelte.d.ts +34 -0
- package/dist/Components/Touch/UtilityButton.svelte +192 -0
- package/dist/Components/Touch/UtilityButton.svelte.d.ts +23 -0
- package/dist/Components/VerticalTabGroup.svelte +129 -0
- package/dist/Components/VerticalTabGroup.svelte.d.ts +12 -0
- package/dist/Components/VerticalTabGroupButton.svelte +108 -0
- package/dist/Components/VerticalTabGroupButton.svelte.d.ts +8 -0
- package/dist/Contexts/AlertContext.svelte.d.ts +46 -0
- package/dist/Contexts/AlertContext.svelte.js +118 -0
- package/dist/Contexts/ContextMenuContext.svelte.d.ts +22 -0
- package/dist/Contexts/ContextMenuContext.svelte.js +45 -0
- package/dist/Contexts/ToastContext.svelte.d.ts +9 -0
- package/dist/Contexts/ToastContext.svelte.js +82 -0
- package/dist/Contexts/TooltipContext.svelte.d.ts +31 -0
- package/dist/Contexts/TooltipContext.svelte.js +78 -0
- package/dist/Contexts/UntypedInputContext.svelte.d.ts +13 -0
- package/dist/Contexts/UntypedInputContext.svelte.js +78 -0
- package/dist/Delay/Delay.d.ts +3 -0
- package/dist/Delay/Delay.js +4 -0
- package/dist/Helpers/Datamatrix.d.ts +11 -0
- package/dist/Helpers/Datamatrix.js +2 -0
- package/dist/Helpers/Helpers.svelte.d.ts +102 -0
- package/dist/Helpers/Helpers.svelte.js +490 -0
- package/dist/Helpers/INamed.d.ts +3 -0
- package/dist/Helpers/INamed.js +1 -0
- package/dist/Helpers/skata.d.ts +1 -0
- package/dist/Helpers/skata.js +1 -0
- package/dist/Types/Examples/ExampleItem.d.ts +15 -0
- package/dist/Types/Examples/ExampleItem.js +1 -0
- package/dist/Types/Examples/ExampleModal.svelte +38 -0
- package/dist/Types/Examples/ExampleModal.svelte.d.ts +5 -0
- package/dist/Types/Examples/ExampleSelectEnum.d.ts +6 -0
- package/dist/Types/Examples/ExampleSelectEnum.js +7 -0
- package/dist/Types/Internal/ApplicationIdentifier.d.ts +37 -0
- package/dist/Types/Internal/ApplicationIdentifier.js +2080 -0
- package/dist/Types/Internal/AttributeOperation.d.ts +30 -0
- package/dist/Types/Internal/AttributeOperation.js +33 -0
- package/dist/Types/Internal/BigRadioOption.d.ts +5 -0
- package/dist/Types/Internal/BigRadioOption.js +1 -0
- package/dist/Types/Internal/ButtonProp.d.ts +11 -0
- package/dist/Types/Internal/ButtonProp.js +1 -0
- package/dist/Types/Internal/CallbackButton.d.ts +10 -0
- package/dist/Types/Internal/CallbackButton.js +1 -0
- package/dist/Types/Internal/DateChange.d.ts +5 -0
- package/dist/Types/Internal/DateChange.js +1 -0
- package/dist/Types/Internal/DatePickerType.d.ts +8 -0
- package/dist/Types/Internal/DatePickerType.js +9 -0
- package/dist/Types/Internal/FloService.d.ts +7 -0
- package/dist/Types/Internal/FloService.js +30 -0
- package/dist/Types/Internal/GridItem.d.ts +4 -0
- package/dist/Types/Internal/GridItem.js +1 -0
- package/dist/Types/Internal/GridMultiSelectItem.d.ts +4 -0
- package/dist/Types/Internal/GridMultiSelectItem.js +1 -0
- package/dist/Types/Internal/GridMultiSelectItemAsObject.d.ts +5 -0
- package/dist/Types/Internal/GridMultiSelectItemAsObject.js +1 -0
- package/dist/Types/Internal/GridMultiSelectItemAsPrimitive.d.ts +5 -0
- package/dist/Types/Internal/GridMultiSelectItemAsPrimitive.js +1 -0
- package/dist/Types/Internal/GridNumberItem.d.ts +4 -0
- package/dist/Types/Internal/GridNumberItem.js +1 -0
- package/dist/Types/Internal/GridSelectItem.d.ts +12 -0
- package/dist/Types/Internal/GridSelectItem.js +1 -0
- package/dist/Types/Internal/GridSingleSelectItem.d.ts +5 -0
- package/dist/Types/Internal/GridSingleSelectItem.js +1 -0
- package/dist/Types/Internal/GridSingleSelectItemAsObject.d.ts +5 -0
- package/dist/Types/Internal/GridSingleSelectItemAsObject.js +1 -0
- package/dist/Types/Internal/GridSingleSelectItemAsPrimitive.d.ts +5 -0
- package/dist/Types/Internal/GridSingleSelectItemAsPrimitive.js +1 -0
- package/dist/Types/Internal/GridStringItem.d.ts +9 -0
- package/dist/Types/Internal/GridStringItem.js +1 -0
- package/dist/Types/Internal/GridTextItem.d.ts +4 -0
- package/dist/Types/Internal/GridTextItem.js +1 -0
- package/dist/Types/Internal/IdentifiableToastMessage.d.ts +5 -0
- package/dist/Types/Internal/IdentifiableToastMessage.js +1 -0
- package/dist/Types/Internal/InputVariant.d.ts +6 -0
- package/dist/Types/Internal/InputVariant.js +7 -0
- package/dist/Types/Internal/Misc.d.ts +271 -0
- package/dist/Types/Internal/Misc.js +129 -0
- package/dist/Types/Internal/RefWrapper.d.ts +3 -0
- package/dist/Types/Internal/RefWrapper.js +1 -0
- package/dist/Types/Internal/SelectOption.d.ts +4 -0
- package/dist/Types/Internal/SelectOption.js +1 -0
- package/dist/Types/Internal/Shape.d.ts +4 -0
- package/dist/Types/Internal/Shape.js +5 -0
- package/dist/Types/Internal/Side.d.ts +6 -0
- package/dist/Types/Internal/Side.js +7 -0
- package/dist/Types/Internal/Size.d.ts +13 -0
- package/dist/Types/Internal/Size.js +14 -0
- package/dist/Types/Internal/TabOption.d.ts +12 -0
- package/dist/Types/Internal/TabOption.js +1 -0
- package/dist/Types/Internal/Ternary.d.ts +5 -0
- package/dist/Types/Internal/Ternary.js +6 -0
- package/dist/Types/Internal/ToastMessage.d.ts +10 -0
- package/dist/Types/Internal/ToastMessage.js +1 -0
- package/dist/Types/Internal/Validity.d.ts +7 -0
- package/dist/Types/Internal/Validity.js +8 -0
- package/dist/Types/Internal/ValidityWrapper.d.ts +5 -0
- package/dist/Types/Internal/ValidityWrapper.js +1 -0
- package/dist/Types/Internal/Variant.d.ts +10 -0
- package/dist/Types/Internal/Variant.js +11 -0
- package/dist/Types/Requests/IFillablePodLineDateRequestBody.d.ts +11 -0
- package/dist/Types/Requests/IFillablePodLineDateRequestBody.js +10 -0
- package/dist/Types/Requests/IRequiredPodLineDateRequestBody.d.ts +12 -0
- package/dist/Types/Requests/IRequiredPodLineDateRequestBody.js +8 -0
- package/dist/Types/Requests/IValidatedPodLineDateRequestBody.d.ts +14 -0
- package/dist/Types/Requests/IValidatedPodLineDateRequestBody.js +10 -0
- package/dist/Types/Responses/AddressType.d.ts +3 -0
- package/dist/Types/Responses/AddressType.js +2 -0
- package/dist/Types/Responses/IAddress.d.ts +39 -0
- package/dist/Types/Responses/IAddress.js +30 -0
- package/dist/Types/Responses/IBaseAddress.d.ts +17 -0
- package/dist/Types/Responses/IBaseAddress.js +15 -0
- package/dist/Types/Responses/ICountry.d.ts +16 -0
- package/dist/Types/Responses/ICountry.js +1 -0
- package/dist/Types/Responses/IDBEntry.d.ts +13 -0
- package/dist/Types/Responses/IDBEntry.js +12 -0
- package/dist/Types/Responses/IErrorResponse.d.ts +10 -0
- package/dist/Types/Responses/IErrorResponse.js +1 -0
- package/dist/Types/Responses/ILabelPrinter.d.ts +4 -0
- package/dist/Types/Responses/ILabelPrinter.js +1 -0
- package/dist/Types/Responses/ILaserPrinter.d.ts +4 -0
- package/dist/Types/Responses/ILaserPrinter.js +1 -0
- package/dist/Types/Responses/ILoginResponse.d.ts +8 -0
- package/dist/Types/Responses/ILoginResponse.js +1 -0
- package/dist/Types/Responses/IPaginatedPayload.d.ts +5 -0
- package/dist/Types/Responses/IPaginatedPayload.js +1 -0
- package/dist/Types/Responses/IPaginatedResponse.d.ts +5 -0
- package/dist/Types/Responses/IPaginatedResponse.js +1 -0
- package/dist/Types/Responses/IPagination.d.ts +9 -0
- package/dist/Types/Responses/IPagination.js +1 -0
- package/dist/Types/Responses/IPayload.d.ts +3 -0
- package/dist/Types/Responses/IPayload.js +1 -0
- package/dist/Types/Responses/IPrinter.d.ts +11 -0
- package/dist/Types/Responses/IPrinter.js +1 -0
- package/dist/Types/Responses/IProcessTypeSelectionMethodOutboundType.d.ts +18 -0
- package/dist/Types/Responses/IProcessTypeSelectionMethodOutboundType.js +12 -0
- package/dist/Types/Responses/IProcessTypeSelectionMethodWarehouseCustomer.d.ts +20 -0
- package/dist/Types/Responses/IProcessTypeSelectionMethodWarehouseCustomer.js +14 -0
- package/dist/Types/Responses/IProcessTypeSelectionMethodWarehouseCustomerType.d.ts +20 -0
- package/dist/Types/Responses/IProcessTypeSelectionMethodWarehouseCustomerType.js +14 -0
- package/dist/Types/Responses/IProductCategory.d.ts +19 -0
- package/dist/Types/Responses/IProductCategory.js +13 -0
- package/dist/Types/Responses/IProductCategoryDetails.d.ts +33 -0
- package/dist/Types/Responses/IProductCategoryDetails.js +13 -0
- package/dist/Types/Responses/IProductIgnoreOnAllocationOutboundType.d.ts +17 -0
- package/dist/Types/Responses/IProductIgnoreOnAllocationOutboundType.js +11 -0
- package/dist/Types/Responses/IProductLocation.d.ts +23 -0
- package/dist/Types/Responses/IProductLocation.js +17 -0
- package/dist/Types/Responses/IResponse.d.ts +8 -0
- package/dist/Types/Responses/IResponse.js +1 -0
- package/dist/Types/Responses/IStockSortationMethodCustomer.d.ts +18 -0
- package/dist/Types/Responses/IStockSortationMethodCustomer.js +12 -0
- package/dist/Types/Responses/Pods/IAttributeTypeWithAI.d.ts +8 -0
- package/dist/Types/Responses/Pods/IAttributeTypeWithAI.js +1 -0
- package/dist/Types/Responses/Pods/IBatchType.d.ts +5 -0
- package/dist/Types/Responses/Pods/IBatchType.js +1 -0
- package/dist/Types/Responses/Pods/IDateType.d.ts +6 -0
- package/dist/Types/Responses/Pods/IDateType.js +1 -0
- package/dist/Types/Responses/Pods/IFillablePodLineAttribute.d.ts +10 -0
- package/dist/Types/Responses/Pods/IFillablePodLineAttribute.js +9 -0
- package/dist/Types/Responses/Pods/IFillablePodLineBatch.d.ts +18 -0
- package/dist/Types/Responses/Pods/IFillablePodLineBatch.js +12 -0
- package/dist/Types/Responses/Pods/IFillablePodLineDate.d.ts +19 -0
- package/dist/Types/Responses/Pods/IFillablePodLineDate.js +13 -0
- package/dist/Types/Responses/Pods/IFillablePodLinePurchaseOrder.d.ts +18 -0
- package/dist/Types/Responses/Pods/IFillablePodLinePurchaseOrder.js +12 -0
- package/dist/Types/Responses/Pods/IFillablePodLineSerial.d.ts +18 -0
- package/dist/Types/Responses/Pods/IFillablePodLineSerial.js +12 -0
- package/dist/Types/Responses/Pods/IFillablePodLineTag.d.ts +18 -0
- package/dist/Types/Responses/Pods/IFillablePodLineTag.js +12 -0
- package/dist/Types/Responses/Pods/IPurchaseOrderType.d.ts +5 -0
- package/dist/Types/Responses/Pods/IPurchaseOrderType.js +1 -0
- package/dist/Types/Responses/Pods/IRequiredOrValidatedAttribute.d.ts +5 -0
- package/dist/Types/Responses/Pods/IRequiredOrValidatedAttribute.js +7 -0
- package/dist/Types/Responses/Pods/IRequiredPodLineBatch.d.ts +16 -0
- package/dist/Types/Responses/Pods/IRequiredPodLineBatch.js +8 -0
- package/dist/Types/Responses/Pods/IRequiredPodLineDate.d.ts +17 -0
- package/dist/Types/Responses/Pods/IRequiredPodLineDate.js +8 -0
- package/dist/Types/Responses/Pods/IRequiredPodLinePurchaseOrder.d.ts +19 -0
- package/dist/Types/Responses/Pods/IRequiredPodLinePurchaseOrder.js +8 -0
- package/dist/Types/Responses/Pods/IRequiredPodLineSerial.d.ts +19 -0
- package/dist/Types/Responses/Pods/IRequiredPodLineSerial.js +8 -0
- package/dist/Types/Responses/Pods/IRequiredPodLineTag.d.ts +19 -0
- package/dist/Types/Responses/Pods/IRequiredPodLineTag.js +8 -0
- package/dist/Types/Responses/Pods/ISerialType.d.ts +6 -0
- package/dist/Types/Responses/Pods/ISerialType.js +1 -0
- package/dist/Types/Responses/Pods/ITagType.d.ts +6 -0
- package/dist/Types/Responses/Pods/ITagType.js +1 -0
- package/dist/Types/Responses/Pods/IValidatedPodLineAttribute.d.ts +13 -0
- package/dist/Types/Responses/Pods/IValidatedPodLineAttribute.js +10 -0
- package/dist/Types/Responses/Pods/IValidatedPodLineBatch.d.ts +17 -0
- package/dist/Types/Responses/Pods/IValidatedPodLineBatch.js +10 -0
- package/dist/Types/Responses/Pods/IValidatedPodLineDate.d.ts +19 -0
- package/dist/Types/Responses/Pods/IValidatedPodLineDate.js +10 -0
- package/dist/Types/Responses/Pods/IValidatedPodLinePurchaseOrder.d.ts +20 -0
- package/dist/Types/Responses/Pods/IValidatedPodLinePurchaseOrder.js +10 -0
- package/dist/Types/Responses/Pods/IValidatedPodLineSerial.d.ts +20 -0
- package/dist/Types/Responses/Pods/IValidatedPodLineSerial.js +10 -0
- package/dist/Types/Responses/Pods/IValidatedPodLineTag.d.ts +20 -0
- package/dist/Types/Responses/Pods/IValidatedPodLineTag.js +10 -0
- package/dist/Types/Responses/Products/IAttributeRule.d.ts +34 -0
- package/dist/Types/Responses/Products/IAttributeRule.js +28 -0
- package/dist/Types/Responses/Products/IBarcode.d.ts +18 -0
- package/dist/Types/Responses/Products/IBarcode.js +12 -0
- package/dist/Types/Responses/Products/IBatchRule.d.ts +36 -0
- package/dist/Types/Responses/Products/IBatchRule.js +9 -0
- package/dist/Types/Responses/Products/ICustomerRule.d.ts +23 -0
- package/dist/Types/Responses/Products/ICustomerRule.js +17 -0
- package/dist/Types/Responses/Products/IDateRule.d.ts +36 -0
- package/dist/Types/Responses/Products/IDateRule.js +9 -0
- package/dist/Types/Responses/Products/IPrice.d.ts +19 -0
- package/dist/Types/Responses/Products/IPrice.js +12 -0
- package/dist/Types/Responses/Products/IProduct.d.ts +436 -0
- package/dist/Types/Responses/Products/IProduct.js +77 -0
- package/dist/Types/Responses/Products/IProductKit.d.ts +24 -0
- package/dist/Types/Responses/Products/IProductKit.js +18 -0
- package/dist/Types/Responses/Products/IProductKitMatrix.d.ts +13 -0
- package/dist/Types/Responses/Products/IProductKitMatrix.js +1 -0
- package/dist/Types/Responses/Products/IProductSupplier.d.ts +18 -0
- package/dist/Types/Responses/Products/IProductSupplier.js +12 -0
- package/dist/Types/Responses/Products/IProductTag.d.ts +33 -0
- package/dist/Types/Responses/Products/IProductTag.js +14 -0
- package/dist/Types/Responses/Products/IProductTagType.d.ts +18 -0
- package/dist/Types/Responses/Products/IProductTagType.js +12 -0
- package/dist/Types/Responses/Products/IProductUnitOfMeasure.d.ts +97 -0
- package/dist/Types/Responses/Products/IProductUnitOfMeasure.js +35 -0
- package/dist/Types/Responses/Products/IProductUnitOfMeasurePrice.d.ts +36 -0
- package/dist/Types/Responses/Products/IProductUnitOfMeasurePrice.js +17 -0
- package/dist/Types/Responses/Products/IPurchaseOrderRule.d.ts +36 -0
- package/dist/Types/Responses/Products/IPurchaseOrderRule.js +9 -0
- package/dist/Types/Responses/Products/ISerialRule.d.ts +36 -0
- package/dist/Types/Responses/Products/ISerialRule.js +9 -0
- package/dist/Types/Responses/Products/ITagRule.d.ts +36 -0
- package/dist/Types/Responses/Products/ITagRule.js +9 -0
- package/dist/Types/Responses/Products/IUnitOfMeasure.d.ts +18 -0
- package/dist/Types/Responses/Products/IUnitOfMeasure.js +12 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/scss/basics.scss +12 -0
- package/dist/scss/colours.d.ts +94 -0
- package/dist/scss/colours.js +138 -0
- package/dist/scss/colours.scss +134 -0
- package/dist/scss/mixins.scss +2778 -0
- package/dist/scss/sizing.scss +72 -0
- package/dist/scss/transitions.scss +8 -0
- package/package.json +92 -0
|
@@ -0,0 +1,490 @@
|
|
|
1
|
+
// TODO move all global stores in here potentially
|
|
2
|
+
import { browser, dev } from '$app/environment';
|
|
3
|
+
import { Validity } from '../Types/Internal/Validity.js';
|
|
4
|
+
import { Value } from '@sinclair/typebox/value';
|
|
5
|
+
export function capitalise(string) {
|
|
6
|
+
return `${string.charAt(0).toLocaleUpperCase()}${string.substring(1)}`;
|
|
7
|
+
}
|
|
8
|
+
export function autoPluralise(text, quantity = 2, { capitalise = false } = {}) {
|
|
9
|
+
if (quantity === 1) {
|
|
10
|
+
return text;
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
if (text.endsWith('s') ||
|
|
14
|
+
text.endsWith('x') ||
|
|
15
|
+
text.endsWith('z') ||
|
|
16
|
+
text.endsWith('ch') ||
|
|
17
|
+
text.endsWith('sh')) {
|
|
18
|
+
if (capitalise) {
|
|
19
|
+
return text + 'ES';
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
return text + 'es';
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
if (capitalise) {
|
|
27
|
+
return text + 'S';
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
return text + 's';
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export const utc = new Intl.DateTimeFormat('en-GB', {
|
|
36
|
+
hour: '2-digit',
|
|
37
|
+
hourCycle: 'h23',
|
|
38
|
+
minute: '2-digit',
|
|
39
|
+
second: '2-digit',
|
|
40
|
+
timeZone: 'UTC'
|
|
41
|
+
});
|
|
42
|
+
export const local = new Intl.DateTimeFormat('en-GB', {
|
|
43
|
+
hour: '2-digit',
|
|
44
|
+
hourCycle: 'h23',
|
|
45
|
+
minute: '2-digit',
|
|
46
|
+
second: '2-digit',
|
|
47
|
+
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
48
|
+
});
|
|
49
|
+
export function tomorrow() {
|
|
50
|
+
const x = new Date();
|
|
51
|
+
x.setDate(x.getDate() + 1);
|
|
52
|
+
return x;
|
|
53
|
+
}
|
|
54
|
+
export function inputFriendly(date) {
|
|
55
|
+
if (typeof date === 'string') {
|
|
56
|
+
date = new Date(date);
|
|
57
|
+
}
|
|
58
|
+
return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date
|
|
59
|
+
.getDate()
|
|
60
|
+
.toString()
|
|
61
|
+
.padStart(2, '0')}`;
|
|
62
|
+
}
|
|
63
|
+
export function inputFriendlyWithTime(date) {
|
|
64
|
+
assertIsOnBrowser();
|
|
65
|
+
if (typeof date === 'string') {
|
|
66
|
+
date = new Date(date);
|
|
67
|
+
}
|
|
68
|
+
return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date
|
|
69
|
+
.getDate()
|
|
70
|
+
.toString()
|
|
71
|
+
.padStart(2, '0')}T${local.format(date)}`;
|
|
72
|
+
}
|
|
73
|
+
export function floFriendly(date) {
|
|
74
|
+
if (typeof date === 'string') {
|
|
75
|
+
date = new Date(date);
|
|
76
|
+
}
|
|
77
|
+
return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date
|
|
78
|
+
.getDate()
|
|
79
|
+
.toString()
|
|
80
|
+
.padStart(2, '0')} 00:00:00`;
|
|
81
|
+
}
|
|
82
|
+
/** @deprecated Use floFriendlyWithLocalTime() instead */
|
|
83
|
+
export function floFriendlyWithTime(date, timeDate) {
|
|
84
|
+
if (typeof date === 'string') {
|
|
85
|
+
date = new Date(date);
|
|
86
|
+
}
|
|
87
|
+
if (typeof timeDate === 'string') {
|
|
88
|
+
timeDate = new Date(date);
|
|
89
|
+
}
|
|
90
|
+
return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date
|
|
91
|
+
.getDate()
|
|
92
|
+
.toString()
|
|
93
|
+
.padStart(2, '0')} ${utc.format(timeDate ?? date)}`;
|
|
94
|
+
}
|
|
95
|
+
export function floFriendlyWithLocalTime(date, timeDate) {
|
|
96
|
+
if (typeof date === 'string') {
|
|
97
|
+
date = new Date(date);
|
|
98
|
+
}
|
|
99
|
+
if (typeof timeDate === 'string') {
|
|
100
|
+
timeDate = new Date(date);
|
|
101
|
+
}
|
|
102
|
+
return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date
|
|
103
|
+
.getDate()
|
|
104
|
+
.toString()
|
|
105
|
+
.padStart(2, '0')} ${local.format(timeDate ?? date)}`;
|
|
106
|
+
}
|
|
107
|
+
export function lastSec() {
|
|
108
|
+
const now = new Date();
|
|
109
|
+
const utcDate = new Date(Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), 23, 59, 59));
|
|
110
|
+
return utcDate;
|
|
111
|
+
}
|
|
112
|
+
// export function tryCatchOnprod: <T>(
|
|
113
|
+
// callback: () => Promise<T | IErrorResponse>
|
|
114
|
+
// ) => Promise<T | IErrorResponse> = async (callback) => {
|
|
115
|
+
// try {
|
|
116
|
+
// return await callback();
|
|
117
|
+
// } catch (e) {
|
|
118
|
+
// if (dev) {
|
|
119
|
+
// console.log('Error response:');
|
|
120
|
+
// console.log(e);
|
|
121
|
+
// } else {
|
|
122
|
+
// console.log("error caught")
|
|
123
|
+
// }
|
|
124
|
+
// if (this.isErrorResponse(e)) {
|
|
125
|
+
// return e;
|
|
126
|
+
// } else if (this.isThrowable(e)) {
|
|
127
|
+
// return {
|
|
128
|
+
// errors: [{ code: 'unknown', message: e.message, originatingService: 'unknown' }],
|
|
129
|
+
// payload: null,
|
|
130
|
+
// statusCode: -1,
|
|
131
|
+
// uuid: null
|
|
132
|
+
// };
|
|
133
|
+
// } else if (typeof e === 'string') {
|
|
134
|
+
// return {
|
|
135
|
+
// errors: [{ code: 'unknown', message: e, originatingService: 'unknown' }],
|
|
136
|
+
// payload: null,
|
|
137
|
+
// statusCode: -1,
|
|
138
|
+
// uuid: null
|
|
139
|
+
// };
|
|
140
|
+
// } else {
|
|
141
|
+
// return {
|
|
142
|
+
// errors: [{ code: 'unknown', message: 'Unknown Error', originatingService: 'unknown' }],
|
|
143
|
+
// payload: null,
|
|
144
|
+
// statusCode: -1,
|
|
145
|
+
// uuid: null
|
|
146
|
+
// };
|
|
147
|
+
// }
|
|
148
|
+
// }
|
|
149
|
+
// };
|
|
150
|
+
export function isErrorResponse(error) {
|
|
151
|
+
return (error != null &&
|
|
152
|
+
typeof error === 'object' &&
|
|
153
|
+
'errors' in error &&
|
|
154
|
+
(Array.isArray(error.errors) || typeof error.errors === 'string') &&
|
|
155
|
+
!!error.errors.length);
|
|
156
|
+
}
|
|
157
|
+
export function isMessage(response) {
|
|
158
|
+
return (response != null &&
|
|
159
|
+
typeof response === 'object' &&
|
|
160
|
+
'payload' in response &&
|
|
161
|
+
response.payload != null &&
|
|
162
|
+
typeof response.payload === 'object' &&
|
|
163
|
+
'data' in response.payload &&
|
|
164
|
+
(typeof response.payload.data === 'string' ||
|
|
165
|
+
(Array.isArray(response.payload.data) && typeof response.payload.data[0] === 'string')));
|
|
166
|
+
}
|
|
167
|
+
export function isThrowable(error) {
|
|
168
|
+
return (error != null &&
|
|
169
|
+
typeof error === 'object' &&
|
|
170
|
+
'message' in error &&
|
|
171
|
+
typeof error.message === 'string');
|
|
172
|
+
}
|
|
173
|
+
export function getErrorMessage(error, includeUUID = true) {
|
|
174
|
+
if (dev) {
|
|
175
|
+
console.log(error);
|
|
176
|
+
}
|
|
177
|
+
if (!error) {
|
|
178
|
+
return 'Unknown Error';
|
|
179
|
+
}
|
|
180
|
+
let errorList = '';
|
|
181
|
+
if (typeof error == 'object') {
|
|
182
|
+
if (isErrorResponse(error) && error.errors.length != 0) {
|
|
183
|
+
if (typeof error.errors === 'string') {
|
|
184
|
+
errorList += error.errors + '\n';
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
error.errors.forEach((it) => {
|
|
188
|
+
errorList += it.message + '\n';
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
else if ('message' in error && typeof error.message == 'string') {
|
|
193
|
+
errorList += error.message + '\n';
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
errorList += 'Unknown Error' + '\n';
|
|
197
|
+
}
|
|
198
|
+
if (includeUUID && 'uuid' in error && error.uuid) {
|
|
199
|
+
errorList += 'Error UUID: ' + error.uuid + '\n';
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
if (typeof error == 'string') {
|
|
203
|
+
errorList += error + '\n';
|
|
204
|
+
}
|
|
205
|
+
return errorList || 'Unknown Error';
|
|
206
|
+
}
|
|
207
|
+
export function isValidEmailAddress(emailAddress) {
|
|
208
|
+
return emailAddress
|
|
209
|
+
.toLowerCase()
|
|
210
|
+
.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|.(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
|
|
211
|
+
}
|
|
212
|
+
export function validateBarcodeCommand(value, allBarcodes, previousValue, hasDynamicParameter = false) {
|
|
213
|
+
const startIndex = value.startsWith('[') ? 1 : 0;
|
|
214
|
+
const endIndex = hasDynamicParameter
|
|
215
|
+
? value.endsWith('-*]')
|
|
216
|
+
? -3
|
|
217
|
+
: undefined
|
|
218
|
+
: value.endsWith(']')
|
|
219
|
+
? -1
|
|
220
|
+
: undefined;
|
|
221
|
+
const inside = value.slice(startIndex, endIndex);
|
|
222
|
+
if ((startIndex == 0 && endIndex != undefined) ||
|
|
223
|
+
(startIndex != 0 && endIndex == undefined) ||
|
|
224
|
+
inside.match(/^[a-z0-9]+$/i) == null) {
|
|
225
|
+
return {
|
|
226
|
+
shouldUpdate: false,
|
|
227
|
+
isError: true,
|
|
228
|
+
reason: {
|
|
229
|
+
result: Validity.Invalid,
|
|
230
|
+
message: 'Command may only include Alphanumeric text in its inner text'
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
const reconstructedValue = (startIndex === 0 ? '[' : '') +
|
|
235
|
+
value +
|
|
236
|
+
(endIndex === undefined ? (hasDynamicParameter ? '-*]' : ']') : '');
|
|
237
|
+
if (reconstructedValue === previousValue) {
|
|
238
|
+
return {
|
|
239
|
+
shouldUpdate: false,
|
|
240
|
+
isError: false,
|
|
241
|
+
reason: { result: Validity.Info, message: `Command ${reconstructedValue} was unchanged` }
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
if (allBarcodes.has(reconstructedValue)) {
|
|
245
|
+
return {
|
|
246
|
+
shouldUpdate: false,
|
|
247
|
+
isError: true,
|
|
248
|
+
reason: {
|
|
249
|
+
result: Validity.Invalid,
|
|
250
|
+
message: `Command ${reconstructedValue} is already in use`
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
return {
|
|
255
|
+
shouldUpdate: true,
|
|
256
|
+
isError: false,
|
|
257
|
+
finalValue: reconstructedValue
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
function isValidPrinter(printer) {
|
|
261
|
+
return ('hostname' in printer &&
|
|
262
|
+
typeof printer.hostname === 'string' &&
|
|
263
|
+
'id' in printer &&
|
|
264
|
+
typeof printer.id === 'number' &&
|
|
265
|
+
'ipAddress' in printer &&
|
|
266
|
+
typeof printer.ipAddress === 'string' &&
|
|
267
|
+
'port' in printer &&
|
|
268
|
+
typeof printer.port === 'number' &&
|
|
269
|
+
'printerGroup_id' in printer &&
|
|
270
|
+
typeof printer.printerGroup_id === 'number' &&
|
|
271
|
+
'systemName' in printer &&
|
|
272
|
+
typeof printer.systemName === 'string' &&
|
|
273
|
+
'type' in printer &&
|
|
274
|
+
typeof printer.type === 'string');
|
|
275
|
+
}
|
|
276
|
+
export function isValidLaserPrinter(printer) {
|
|
277
|
+
return isValidPrinter(printer) && printer.type === 'laser';
|
|
278
|
+
}
|
|
279
|
+
export function isValidLabelPrinter(printer) {
|
|
280
|
+
return isValidPrinter(printer) && printer.type === 'label';
|
|
281
|
+
}
|
|
282
|
+
export const getLocalStorageStringOrDefault = (key, defaultValue) => {
|
|
283
|
+
return browser ? (localStorage.getItem(key) ?? defaultValue) : defaultValue;
|
|
284
|
+
};
|
|
285
|
+
export const getLocalStorageIntOrDefault = (key, defaultValue) => {
|
|
286
|
+
if (browser) {
|
|
287
|
+
const value = parseInt(localStorage.getItem(key) ?? '');
|
|
288
|
+
if (!isNaN(value)) {
|
|
289
|
+
return value;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
return defaultValue;
|
|
293
|
+
};
|
|
294
|
+
export const getLocalStorageFloatOrDefault = (key, defaultValue) => {
|
|
295
|
+
if (browser) {
|
|
296
|
+
const value = parseFloat(localStorage.getItem(key) ?? '');
|
|
297
|
+
if (!isNaN(value)) {
|
|
298
|
+
return value;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
return defaultValue;
|
|
302
|
+
};
|
|
303
|
+
export const getLocalStorageBoolOrDefault = (key, defaultValue) => {
|
|
304
|
+
if (browser) {
|
|
305
|
+
const value = JSON.parse(localStorage.getItem(key) ?? `${defaultValue}`);
|
|
306
|
+
if (typeof value === 'boolean') {
|
|
307
|
+
return value;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
return defaultValue;
|
|
311
|
+
};
|
|
312
|
+
// TODO remove pointless redeclaration and make name generic
|
|
313
|
+
export const FormatAccountNames = (accounts) => {
|
|
314
|
+
const firstAcc = accounts[0];
|
|
315
|
+
const secondAcc = accounts[1];
|
|
316
|
+
const extraAccs = accounts.length - 2;
|
|
317
|
+
return `${firstAcc?.name}${secondAcc ? (extraAccs > 0 ? ', ' : ' and ') + secondAcc?.name : ''}${extraAccs > 0 ? `, and ${extraAccs} others` : ''}`;
|
|
318
|
+
};
|
|
319
|
+
export const FormatWarehouseNames = FormatAccountNames;
|
|
320
|
+
let __canvas;
|
|
321
|
+
export function getCanvasContext() {
|
|
322
|
+
if (!__canvas) {
|
|
323
|
+
__canvas = document.createElement('canvas');
|
|
324
|
+
const canvasContext = __canvas.getContext('2d');
|
|
325
|
+
canvasContext.font = '700 16px LatoWeb';
|
|
326
|
+
return canvasContext;
|
|
327
|
+
}
|
|
328
|
+
return __canvas.getContext('2d');
|
|
329
|
+
}
|
|
330
|
+
export function assertIsOnBrowser() {
|
|
331
|
+
if (!browser) {
|
|
332
|
+
throw new Error('Called a browser-only function in server side.');
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
export async function asyncMap(array, asyncCallback) {
|
|
336
|
+
return Promise.all(array.map(asyncCallback));
|
|
337
|
+
}
|
|
338
|
+
export async function asyncForEach(array, asyncCallback) {
|
|
339
|
+
await Promise.all(array.map(asyncCallback));
|
|
340
|
+
}
|
|
341
|
+
export async function asyncFlatMap(array, asyncCallback) {
|
|
342
|
+
return (await Promise.all(array.map(asyncCallback))).flat();
|
|
343
|
+
}
|
|
344
|
+
const emptyPromise = new Promise(() => null);
|
|
345
|
+
export async function asyncSome(array, asyncCallback) {
|
|
346
|
+
const promises = array.map(asyncCallback);
|
|
347
|
+
return Promise.race([
|
|
348
|
+
Promise.race(
|
|
349
|
+
// empty promise is required here
|
|
350
|
+
// because otherwise the first false would immediately end the race without checking the rest of the array
|
|
351
|
+
promises.map(async (p) => !!(await p) || emptyPromise)),
|
|
352
|
+
Promise.all(promises).then((r) => r.some(Boolean))
|
|
353
|
+
]);
|
|
354
|
+
}
|
|
355
|
+
export const vowels = new Set(['a', 'e', 'i', 'o', 'u']);
|
|
356
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
357
|
+
export function assertUnreachable(_) {
|
|
358
|
+
throw new Error("Didn't expect to get here");
|
|
359
|
+
}
|
|
360
|
+
export function isFocusable(item) {
|
|
361
|
+
if (item.tabIndex < 0) {
|
|
362
|
+
return false;
|
|
363
|
+
}
|
|
364
|
+
switch (item.tagName) {
|
|
365
|
+
case 'A':
|
|
366
|
+
return !!item.href;
|
|
367
|
+
case 'INPUT':
|
|
368
|
+
return item.type !== 'hidden' && !item.disabled;
|
|
369
|
+
case 'SELECT':
|
|
370
|
+
case 'TEXTAREA':
|
|
371
|
+
case 'BUTTON':
|
|
372
|
+
return !item.disabled;
|
|
373
|
+
default:
|
|
374
|
+
return false;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
export function focusNextFocusable(element) {
|
|
378
|
+
for (const child of element.children) {
|
|
379
|
+
if (isFocusable(child)) {
|
|
380
|
+
child.focus();
|
|
381
|
+
return true;
|
|
382
|
+
}
|
|
383
|
+
if (focusNextFocusable(child)) {
|
|
384
|
+
return true;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
return false;
|
|
388
|
+
}
|
|
389
|
+
export const readonly = { readOnly: true };
|
|
390
|
+
export function assert(schema, value) {
|
|
391
|
+
if (dev) {
|
|
392
|
+
try {
|
|
393
|
+
Value.Assert(schema, value);
|
|
394
|
+
}
|
|
395
|
+
catch (e) {
|
|
396
|
+
console.log(e);
|
|
397
|
+
if (e && typeof e === 'object' && 'error' in e) {
|
|
398
|
+
console.log(e?.error);
|
|
399
|
+
}
|
|
400
|
+
// eslint-disable-next-line no-debugger
|
|
401
|
+
debugger;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
export function toFloFriendlyWithLocalTime(date) {
|
|
406
|
+
return {
|
|
407
|
+
...date,
|
|
408
|
+
value: date.value && floFriendlyWithLocalTime(date.value, date.podValue)
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
/** @deprecated Use toFloFriendlyWithLocalTime() instead */
|
|
412
|
+
export function toFloFriendlyWithTime(date) {
|
|
413
|
+
return {
|
|
414
|
+
...date,
|
|
415
|
+
value: date.value && floFriendlyWithTime(date.value, date.podValue)
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
export function saveBlob(blob, fileName) {
|
|
419
|
+
const a = document.createElement('a');
|
|
420
|
+
document.body.appendChild(a);
|
|
421
|
+
a.style.display = 'none';
|
|
422
|
+
const url = window.URL.createObjectURL(blob);
|
|
423
|
+
a.href = url;
|
|
424
|
+
a.download = fileName;
|
|
425
|
+
a.click();
|
|
426
|
+
window.URL.revokeObjectURL(url);
|
|
427
|
+
}
|
|
428
|
+
export function isAttributeMissing(item) {
|
|
429
|
+
return !item.value?.trim();
|
|
430
|
+
}
|
|
431
|
+
export function isAttributeInvalid(item) {
|
|
432
|
+
return item.value?.trim().toLocaleUpperCase() !== item.podValue?.trim().toLocaleUpperCase();
|
|
433
|
+
}
|
|
434
|
+
export function isAttributeDateInvalid(item) {
|
|
435
|
+
return (!item.value ||
|
|
436
|
+
!Date.parse(item.value) ||
|
|
437
|
+
new Date(item.podValue).toLocaleDateString() !== new Date(item.value).toLocaleDateString());
|
|
438
|
+
}
|
|
439
|
+
export async function asyncSleep(delay) {
|
|
440
|
+
await new Promise((r) => setTimeout(r, delay));
|
|
441
|
+
}
|
|
442
|
+
export function getOrCreateDeviceUUID() {
|
|
443
|
+
if (browser) {
|
|
444
|
+
const foundDeviceUuid = localStorage.getItem('device_uuid');
|
|
445
|
+
if (foundDeviceUuid) {
|
|
446
|
+
return foundDeviceUuid;
|
|
447
|
+
}
|
|
448
|
+
const newDeviceUuid = generateUUID();
|
|
449
|
+
localStorage.setItem('device_uuid', newDeviceUuid);
|
|
450
|
+
return newDeviceUuid;
|
|
451
|
+
}
|
|
452
|
+
return 'sveltekit-backend';
|
|
453
|
+
}
|
|
454
|
+
export function passthrough(e) {
|
|
455
|
+
if (!e.key.match(/^[a-zA-Z0-9[\]]$/gm)) {
|
|
456
|
+
return;
|
|
457
|
+
}
|
|
458
|
+
e.target.blur();
|
|
459
|
+
}
|
|
460
|
+
// taken from https://stackoverflow.com/a/8809472/18712055
|
|
461
|
+
export function generateUUID() {
|
|
462
|
+
let d = new Date().getTime(), d2 = (typeof performance !== 'undefined' && performance.now && performance.now() * 1000) || 0;
|
|
463
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
|
|
464
|
+
let r = Math.random() * 16;
|
|
465
|
+
if (d > 0) {
|
|
466
|
+
r = (d + r) % 16 | 0;
|
|
467
|
+
d = Math.floor(d / 16);
|
|
468
|
+
}
|
|
469
|
+
else {
|
|
470
|
+
r = (d2 + r) % 16 | 0;
|
|
471
|
+
d2 = Math.floor(d2 / 16);
|
|
472
|
+
}
|
|
473
|
+
return (c == 'x' ? r : (r & 0x7) | 0x8).toString(16);
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
// generic is present to bypass floatAlias type requirements and the like
|
|
477
|
+
export function generateShortUUID() {
|
|
478
|
+
return generateUUID().substring(0, 13);
|
|
479
|
+
}
|
|
480
|
+
export function refWrapper(initial) {
|
|
481
|
+
let value = $state(initial);
|
|
482
|
+
return {
|
|
483
|
+
get value() {
|
|
484
|
+
return value;
|
|
485
|
+
},
|
|
486
|
+
set value(v) {
|
|
487
|
+
value = v;
|
|
488
|
+
}
|
|
489
|
+
};
|
|
490
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FloDate } from '../Internal/Misc.js';
|
|
2
|
+
import type { ExampleSelectEnum } from './ExampleSelectEnum.js';
|
|
3
|
+
export interface ExampleItem {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
progress: [number, number];
|
|
7
|
+
isChecked: boolean;
|
|
8
|
+
someNumber: number | null;
|
|
9
|
+
someDate: Date | null;
|
|
10
|
+
someDateWithTime: Date | null;
|
|
11
|
+
floDate: FloDate | null;
|
|
12
|
+
floDateWithTime: FloDate | null;
|
|
13
|
+
someSelect: ExampleSelectEnum | null;
|
|
14
|
+
someBubbles: string[];
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<svelte:options runes />
|
|
2
|
+
|
|
3
|
+
<script lang="ts">
|
|
4
|
+
import DesktopModal from '../../Components/DesktopModal.svelte';
|
|
5
|
+
import Switch from '../../Components/Switch.svelte';
|
|
6
|
+
import type { DisplayDefModalProps } from '../../Components/Table/Types/Columns/AbstractDisplayDef.svelte.js';
|
|
7
|
+
import type { ExampleItem } from './ExampleItem.js';
|
|
8
|
+
|
|
9
|
+
const { cell, onclose, onsubmit }: DisplayDefModalProps<ExampleItem> = $props();
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<DesktopModal
|
|
13
|
+
width="1220px"
|
|
14
|
+
headerLabel="Hello World"
|
|
15
|
+
{onclose}
|
|
16
|
+
{onsubmit}
|
|
17
|
+
buttons={[{ label: 'Close', callback: onclose }]}
|
|
18
|
+
>
|
|
19
|
+
<div class="wrapper">
|
|
20
|
+
This is an Example modal where you can do additional work through cell.row.original or a custom
|
|
21
|
+
context
|
|
22
|
+
<div>
|
|
23
|
+
<Switch
|
|
24
|
+
label="{cell.row.original.id} checked?"
|
|
25
|
+
value={cell.row.original.isChecked}
|
|
26
|
+
onchange={(e) => {
|
|
27
|
+
cell.row.original.isChecked = !cell.row.original.isChecked;
|
|
28
|
+
}}
|
|
29
|
+
/>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</DesktopModal>
|
|
33
|
+
|
|
34
|
+
<style>.wrapper div {
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
margin-top: 1rem;
|
|
37
|
+
width: 300px;
|
|
38
|
+
}</style>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DisplayDefModalProps } from '../../Components/Table/Types/Columns/AbstractDisplayDef.svelte.js';
|
|
2
|
+
import type { ExampleItem } from './ExampleItem.js';
|
|
3
|
+
declare const ExampleModal: import("svelte").Component<DisplayDefModalProps<ExampleItem>, {}, "">;
|
|
4
|
+
type ExampleModal = ReturnType<typeof ExampleModal>;
|
|
5
|
+
export default ExampleModal;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var ExampleSelectEnum;
|
|
2
|
+
(function (ExampleSelectEnum) {
|
|
3
|
+
ExampleSelectEnum[ExampleSelectEnum["FirstOption"] = 0] = "FirstOption";
|
|
4
|
+
ExampleSelectEnum[ExampleSelectEnum["SecondOption"] = 1] = "SecondOption";
|
|
5
|
+
ExampleSelectEnum[ExampleSelectEnum["ThirdOption"] = 2] = "ThirdOption";
|
|
6
|
+
ExampleSelectEnum[ExampleSelectEnum["FourthOption"] = 3] = "FourthOption";
|
|
7
|
+
})(ExampleSelectEnum || (ExampleSelectEnum = {}));
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { AICode } from './Misc.js';
|
|
2
|
+
export interface IApplicationIdentifier {
|
|
3
|
+
readonly name: ApplicationIdentifierName;
|
|
4
|
+
readonly GS1Code: AICode;
|
|
5
|
+
readonly AILength: number;
|
|
6
|
+
readonly valueLengths: IValueLength[];
|
|
7
|
+
readonly parseFromParentheses: (value: string) => string;
|
|
8
|
+
readonly parseFromFNC1: (buffer: string[], currentFnc1Substitute: string) => string;
|
|
9
|
+
}
|
|
10
|
+
export interface IValueLength {
|
|
11
|
+
readonly type: GS1LengthType;
|
|
12
|
+
readonly length: number;
|
|
13
|
+
readonly encoding: GS1Encoding;
|
|
14
|
+
readonly mandatory: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const enum GS1LengthType {
|
|
17
|
+
Fixed = 1,
|
|
18
|
+
Variable = 2
|
|
19
|
+
}
|
|
20
|
+
export declare const enum GS1Encoding {
|
|
21
|
+
Numeric = 1,
|
|
22
|
+
Set82 = 2,
|
|
23
|
+
Set39 = 3
|
|
24
|
+
}
|
|
25
|
+
declare class ApplicationIdentifier implements IApplicationIdentifier {
|
|
26
|
+
readonly name: ApplicationIdentifierName;
|
|
27
|
+
readonly GS1Code: AICode;
|
|
28
|
+
readonly AILength: number;
|
|
29
|
+
readonly valueLengths: IValueLength[];
|
|
30
|
+
constructor(name: ApplicationIdentifierName, GS1Code: AICode, AILength: number, valueLengths: IValueLength[]);
|
|
31
|
+
readonly parseFromParentheses: (value: string) => string;
|
|
32
|
+
protected readonly _defaultParseFromFNC1: (buffer: string[], currentFnc1Substitute: string) => string;
|
|
33
|
+
readonly parseFromFNC1: (buffer: string[], currentFnc1Substitute: string) => string;
|
|
34
|
+
}
|
|
35
|
+
export declare const ApplicationIdentifiers: Record<ApplicationIdentifierName, ApplicationIdentifier>;
|
|
36
|
+
export type ApplicationIdentifierName = 'SSCC' | 'GTIN' | 'CONTENT' | 'BATCH' | 'PROD_DATE' | 'PAYMENT_DUE_DATE' | 'PACK_DATE' | 'BEST_BEFORE' | 'SELL_BY' | 'USE_BY' | 'VARIANT' | 'SERIAL' | 'CPV' | 'TPX' | 'ADDITIONAL_ID' | 'CUSTOMER_PART_NUMBER' | 'MTO_VARIANT' | 'PCN' | 'SECONDARY_SERIAL' | 'REF_TO_SOURCE' | 'GDTI' | 'GLN_EXTENSION_COMPONENT' | 'GCN' | 'VAR_COUNT' | 'NET_WEIGHT_KG' | 'LENGTH_METRES' | 'WIDTH_METRES' | 'HEIGHT_METRES' | 'AREA' | 'NET_VOLUME_LITRES' | 'NET_VOLUME_CUBIC_METRES' | 'NET_WEIGHT_LB' | 'LENGTH_INCHES' | 'LENGTH_FEET' | 'LENGTH_YARDS' | 'WIDTH_INCHES' | 'WIDTH_FEET' | 'WIDTH_YARDS' | 'HEIGHT_INCHES' | 'HEIGHT_FEET' | 'HEIGHT_YARDS' | 'GROSS_WEIGHT_KG' | 'LENGTH_METRES_LOG' | 'WIDTH_METRES_LOG' | 'HEIGHT_METRES_LOG' | 'AREA_SQUARE_METRES_LOG' | 'VOLUME_LITRES_LOG' | 'VOLUME_CUBIC_METRES_LOG' | 'KG_PER_SQUARE_METRE' | 'GROSS_WEIGHT_LB' | 'LENGTH_INCHES_LOG' | 'LENGTH_FEET_LOG' | 'LENGTH_YARDS_LOG' | 'WIDTH_INCHES_LOG' | 'WIDTH_FEET_LOG' | 'WIDTH_YARDS_LOG' | 'HEIGHT_INCHES_LOG' | 'HEIGHT_FEET_LOG' | 'HEIGHT_YARDS_LOG' | 'AREA_SQUARE_INCHES' | 'AREA_SQUARE_FEET' | 'AREA_SQUARE_YARDS' | 'AREA_SQUARE_INCHES_LOG' | 'AREA_SQUARE_FEET_LOG' | 'AREA_SQUARE_YARDS_LOG' | 'NET_WEIGHT_TROY_OUNCES' | 'NET_VOLUME_OUNCES' | 'NET_VOLUME_QUARTS' | 'NET_VOLUME_GALLONS' | 'LOGISTIC_VOLUME_QUARTS' | 'LOGISTIC_VOLUME_GALLONS_US' | 'VOLUME_CUBIC_INCHES' | 'VOLUME_CUBIC_FEET' | 'VOLUME_CUBIC_YARDS' | 'LOGISTIC_VOLUME_CUBIC_INCHES' | 'LOGISTIC_VOLUME_CUBIC_FEET' | 'LOGISTIC_VOLUME_CUBIC_YARDS' | 'COUNT' | 'AMOUNT' | 'AMOUNT_ISO' | 'PRICE' | 'PRICE_ISO' | 'PERCENT_OFF' | 'PRICE_PER_UOM' | 'ORDER_NUMBER' | 'GINC' | 'GSIN' | 'ROUTE' | 'SHIP_TO_GLOBAL' | 'BILL_TO' | 'PURCHASE_FROM' | 'SHIP_FOR_LOC' | 'LOC_NUMBER' | 'PAY_TO' | 'PROD_LOC' | 'PARTY' | 'SHIP_TO_POST' | 'SHIP_TO_POST_ISO' | 'ORIGIN' | 'COUNTRY_INITIAL_PROCESS' | 'COUNTRY_PROCESS' | 'COUNTRY_DISASSEMBLY' | 'COUNTRY_FULL_PROCESS' | 'ORIGIN_SUBDIVISION' | 'SHIP_TO_COMP' | 'SHIP_TO_NAME' | 'SHIP_TO_ADD1' | 'SHIP_TO_ADD2' | 'SHIP_TO_SUB' | 'SHIP_TO_LOCAL' | 'SHIP_TO_REG' | 'SHIP_TO_COUNTRY' | 'SHIP_TO_PHONE' | 'SHIP_TO_GEO' | 'RTN_TO_COMP' | 'RTN_TO_NAME' | 'RTN_TO_ADD1' | 'RTN_TO_ADD2' | 'RTN_TO_SUB' | 'RTN_TO_LOC' | 'RTN_TO_REG' | 'RTN_TO_COUNTRY' | 'RTN_TO_POST' | 'RTN_TO_PHONE' | 'SRV_DESCRIPTION' | 'DANGEROUS_GOODS' | 'AUTH_LEAVE' | 'SIG_REQUIRED' | 'NOT_BEFORE_DELIVERY_DATE_TIME' | 'NOT_AFTER_DELIVERY_DATE_TIME' | 'RELEASE_DATE' | 'NSN' | 'MEAT_CUT' | 'EXPIRY_TIME' | 'ACTIVE_POTENCY' | 'CATCH_AREA' | 'FIRST_FREEZE_DATE' | 'HARVEST_DATE' | 'AQUATIC_SPECIES' | 'FISHING_GEAR_TYPE' | 'PROD_METHOD' | 'TEST_BY_DATE' | 'REFURB_LOT' | 'FUNC_STAT' | 'REV_STAT' | 'GIAI_ASSEMBLY' | 'PROCESSOR' | 'UIC_EXT' | 'NHRN_PZN' | 'NHRN_CIP' | 'NHRN_CN' | 'NHRN_DRN' | 'NHRN_AIM' | 'NHRN_NDC' | 'CERT_REF' | 'PROTOCOL' | 'DIMENSIONS' | 'CMT_NUMBER' | 'GRAI' | 'GIAI' | 'PRICE_PER_UNIT' | 'ITIP' | 'IBAN' | 'PROD_TIME' | 'OPTSEN' | 'CPID' | 'CPID_SERIAL' | 'VERSION' | 'GMN' | 'GSRN_PROVIDER' | 'GSRN_RECIPIENT' | 'SRIN' | 'REF_NUMBER' | 'ITIP_CONTENT' | 'COUPON_NA' | 'POINTS' | 'POSITIVE_OFFER_NA' | 'PRODUCT_URL' | 'INTERNAL' | 'INTERNAL_1' | 'INTERNAL_2' | 'INTERNAL_3' | 'INTERNAL_4' | 'INTERNAL_5' | 'INTERNAL_6' | 'INTERNAL_7' | 'INTERNAL_8' | 'INTERNAL_9';
|
|
37
|
+
export {};
|