From 2231da7eed75c71ad179e032fe387dcf86e45e7d Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Sat, 12 Oct 2024 15:51:40 -0400 Subject: [PATCH] chore: add `.js` file extensions to all imports - to better support hybrid CJS/ESM approach and for future ESM only support, we'll need to add `.js` extensions to all local imports --- .vscode/settings.json | 3 +- eslint.config.mjs | 1 + .../src/app-routing.ts | 64 ++-- examples/vite-demo-vanilla-bundle/src/app.ts | 6 +- .../src/examples/example01.ts | 3 +- .../src/examples/example02.ts | 2 +- .../src/examples/example03.ts | 2 +- .../src/examples/example04.ts | 2 +- .../src/examples/example05.ts | 2 +- .../src/examples/example06.ts | 2 +- .../src/examples/example07.ts | 4 +- .../src/examples/example08.ts | 2 +- .../src/examples/example09.ts | 3 +- .../src/examples/example10.ts | 4 +- .../src/examples/example11-modal.ts | 2 +- .../src/examples/example11.ts | 6 +- .../src/examples/example12.ts | 2 +- .../src/examples/example13.ts | 2 +- .../src/examples/example14.ts | 2 +- .../src/examples/example15.ts | 2 +- .../src/examples/example16.ts | 2 +- .../src/examples/example17.ts | 3 +- .../src/examples/example18.ts | 3 +- .../src/examples/example19.ts | 7 +- .../src/examples/example20.ts | 3 +- .../src/examples/example21.ts | 2 +- .../src/examples/example22.ts | 4 +- .../src/examples/example23.ts | 4 +- .../src/examples/example24.ts | 2 +- .../src/examples/example25.ts | 4 +- .../src/examples/example26.ts | 2 +- .../src/examples/example27.ts | 4 +- .../src/examples/example28.ts | 2 +- .../src/examples/example29.ts | 4 +- .../src/examples/example30.ts | 4 +- .../src/examples/utilities.ts | 2 +- examples/vite-demo-vanilla-bundle/src/main.ts | 7 +- .../src/__tests__/binding.helper.spec.ts | 2 +- .../src/__tests__/binding.service.spec.ts | 2 +- .../__tests__/bindingEvent.service.spec.ts | 2 +- packages/binding/src/binding.helper.ts | 2 +- packages/binding/src/binding.service.ts | 2 +- packages/binding/src/bindingEvent.service.ts | 2 +- packages/binding/src/index.ts | 8 +- .../__tests__/avgAggregator.spec.ts | 4 +- .../__tests__/cloneAggregator.spec.ts | 2 +- .../__tests__/countAggregator.spec.ts | 2 +- .../__tests__/distinctAggregator.spec.ts | 2 +- .../__tests__/maxAggregator.spec.ts | 2 +- .../__tests__/minAggregator.spec.ts | 2 +- .../__tests__/sumAggregator.spec.ts | 2 +- .../src/aggregators/aggregators.index.ts | 16 +- .../common/src/aggregators/avgAggregator.ts | 3 +- .../common/src/aggregators/cloneAggregator.ts | 3 +- .../common/src/aggregators/countAggregator.ts | 3 +- .../src/aggregators/distinctAggregator.ts | 3 +- packages/common/src/aggregators/index.ts | 16 +- .../common/src/aggregators/maxAggregator.ts | 3 +- .../common/src/aggregators/minAggregator.ts | 3 +- .../common/src/aggregators/sumAggregator.ts | 3 +- .../commonEditorFilterUtils.ts | 6 +- .../common/src/commonEditorFilter/index.ts | 2 +- packages/common/src/constants.ts | 2 +- .../src/core/__tests__/slickCore.spec.ts | 4 +- .../src/core/__tests__/slickDataView.spec.ts | 16 +- .../src/core/__tests__/slickGrid.spec.ts | 12 +- .../core/__tests__/slickInteractions.spec.ts | 2 +- packages/common/src/core/index.ts | 8 +- packages/common/src/core/slickCore.ts | 4 +- packages/common/src/core/slickDataview.ts | 10 +- packages/common/src/core/slickGrid.ts | 10 +- packages/common/src/core/slickInteractions.ts | 2 +- .../src/editorValidators/floatValidator.ts | 6 +- packages/common/src/editorValidators/index.ts | 8 +- .../src/editorValidators/integerValidator.ts | 6 +- .../src/editorValidators/sliderValidator.ts | 6 +- .../src/editorValidators/textValidator.ts | 6 +- .../__tests__/autocompleterEditor.spec.ts | 12 +- .../editors/__tests__/checkboxEditor.spec.ts | 8 +- .../src/editors/__tests__/dateEditor.spec.ts | 37 ++- .../editors/__tests__/dualInputEditor.spec.ts | 8 +- .../src/editors/__tests__/floatEditor.spec.ts | 8 +- .../src/editors/__tests__/inputEditor.spec.ts | 8 +- .../__tests__/inputPasswordEditor.spec.ts | 8 +- .../editors/__tests__/integerEditor.spec.ts | 8 +- .../editors/__tests__/longTextEditor.spec.ts | 10 +- .../__tests__/multipleSelectEditor.spec.ts | 12 +- .../editors/__tests__/selectEditor.spec.ts | 14 +- .../__tests__/singleSelectEditor.spec.ts | 10 +- .../editors/__tests__/sliderEditor.spec.ts | 8 +- .../common/src/editors/autocompleterEditor.ts | 16 +- packages/common/src/editors/checkboxEditor.ts | 8 +- packages/common/src/editors/dateEditor.ts | 20 +- .../common/src/editors/dualInputEditor.ts | 8 +- packages/common/src/editors/editors.index.ts | 26 +- packages/common/src/editors/floatEditor.ts | 8 +- packages/common/src/editors/index.ts | 26 +- packages/common/src/editors/inputEditor.ts | 8 +- .../common/src/editors/inputPasswordEditor.ts | 4 +- packages/common/src/editors/integerEditor.ts | 8 +- packages/common/src/editors/longTextEditor.ts | 12 +- .../src/editors/multipleSelectEditor.ts | 4 +- packages/common/src/editors/selectEditor.ts | 12 +- .../common/src/editors/singleSelectEditor.ts | 4 +- packages/common/src/editors/sliderEditor.ts | 10 +- .../src/enums/columnReorderFunction.type.ts | 4 +- packages/common/src/enums/enums.index.ts | 2 +- .../common/src/enums/extensionList.type.ts | 4 +- packages/common/src/enums/index.ts | 52 ++-- .../common/src/enums/positionMethod.type.ts | 2 +- .../common/src/enums/selectionModel.type.ts | 4 +- .../common/src/enums/slickControlList.enum.ts | 2 +- .../common/src/enums/slickPluginList.enum.ts | 8 +- .../src/enums/usabilityOverrideFn.type.ts | 2 +- .../__tests__/extensionUtility.spec.ts | 12 +- .../__tests__/slickAutoTooltip.spec.ts | 6 +- .../slickCellExcelCopyManager.spec.ts | 14 +- .../slickCellExternalCopyManager.spec.ts | 12 +- .../__tests__/slickCellMenu.plugin.spec.ts | 12 +- .../__tests__/slickCellRangeDecorator.spec.ts | 4 +- .../__tests__/slickCellRangeSelector.spec.ts | 6 +- .../__tests__/slickCellSelectionModel.spec.ts | 8 +- .../slickCheckboxSelectColumn.spec.ts | 8 +- .../__tests__/slickColumnPicker.spec.ts | 16 +- .../__tests__/slickContextMenu.spec.ts | 14 +- .../__tests__/slickDraggableGrouping.spec.ts | 18 +- .../__tests__/slickGridMenu.spec.ts | 14 +- .../slickGroupItemMetadataProvider.spec.ts | 6 +- .../__tests__/slickHeaderButtons.spec.ts | 14 +- .../__tests__/slickHeaderMenu.spec.ts | 12 +- .../__tests__/slickRowBasedEdit.spec.ts | 14 +- .../__tests__/slickRowMoveManager.spec.ts | 6 +- .../__tests__/slickRowSelectionModel.spec.ts | 8 +- .../src/extensions/extensionCommonUtils.ts | 6 +- .../common/src/extensions/extensionUtility.ts | 12 +- packages/common/src/extensions/index.ts | 38 +-- .../common/src/extensions/menuBaseClass.ts | 8 +- .../src/extensions/menuFromCellBaseClass.ts | 10 +- .../common/src/extensions/slickAutoTooltip.ts | 4 +- .../extensions/slickCellExcelCopyManager.ts | 6 +- .../slickCellExternalCopyManager.ts | 6 +- .../common/src/extensions/slickCellMenu.ts | 10 +- .../src/extensions/slickCellRangeDecorator.ts | 4 +- .../src/extensions/slickCellRangeSelector.ts | 6 +- .../src/extensions/slickCellSelectionModel.ts | 10 +- .../extensions/slickCheckboxSelectColumn.ts | 8 +- .../src/extensions/slickColumnPicker.ts | 10 +- .../common/src/extensions/slickContextMenu.ts | 18 +- .../src/extensions/slickDraggableGrouping.ts | 12 +- .../common/src/extensions/slickGridMenu.ts | 24 +- .../slickGroupItemMetadataProvider.ts | 4 +- .../src/extensions/slickHeaderButtons.ts | 10 +- .../common/src/extensions/slickHeaderMenu.ts | 18 +- .../src/extensions/slickRowBasedEdit.ts | 8 +- .../src/extensions/slickRowMoveManager.ts | 6 +- .../src/extensions/slickRowSelectionModel.ts | 8 +- .../__tests__/booleanFilterCondition.spec.ts | 8 +- .../collectionSearchFilterCondition.spec.ts | 8 +- .../__tests__/dateEuroFilterCondition.spec.ts | 8 +- .../dateEuroShortFilterCondition.spec.ts | 8 +- .../__tests__/dateFilterCondition.spec.ts | 8 +- .../__tests__/dateIsoFilterCondition.spec.ts | 8 +- .../__tests__/dateUsFilterCondition.spec.ts | 8 +- .../dateUsShortFilterCondition.spec.ts | 8 +- .../__tests__/dateUtcFilterCondition.spec.ts | 8 +- .../filterConditionProcesses.spec.ts | 2 +- .../__tests__/filterUtilities.spec.ts | 2 +- .../__tests__/numberFilterCondition.spec.ts | 8 +- .../__tests__/objectFilterCondition.spec.ts | 8 +- .../__tests__/stringFilterCondition.spec.ts | 8 +- .../booleanFilterCondition.ts | 4 +- .../collectionSearchFilterCondition.ts | 4 +- .../filter-conditions/dateFilterCondition.ts | 8 +- .../filterConditionProcesses.ts | 20 +- .../filterConditions.index.ts | 12 +- .../src/filter-conditions/filterUtilities.ts | 2 +- .../common/src/filter-conditions/index.ts | 18 +- .../numberFilterCondition.ts | 6 +- .../objectFilterCondition.ts | 6 +- .../stringFilterCondition.ts | 6 +- .../__tests__/autocompleterFilter.spec.ts | 18 +- .../__tests__/compoundDateFilter.spec.ts | 14 +- .../__tests__/compoundInputFilter.spec.ts | 12 +- .../compoundInputNumberFilter.spec.ts | 10 +- .../compoundInputPasswordFilter.spec.ts | 10 +- .../__tests__/compoundSliderFilter.spec.ts | 12 +- .../filters/__tests__/dateRangeFilter.spec.ts | 12 +- .../filters/__tests__/filterFactory.spec.ts | 16 +- .../src/filters/__tests__/inputFilter.spec.ts | 8 +- .../filters/__tests__/inputMaskFilter.spec.ts | 8 +- .../__tests__/inputNumberFilter.spec.ts | 8 +- .../__tests__/inputPasswordFilter.spec.ts | 8 +- .../__tests__/multipleSelectFilter.spec.ts | 12 +- .../filters/__tests__/selectFilter.spec.ts | 18 +- .../__tests__/singleSelectFilter.spec.ts | 12 +- .../__tests__/singleSliderFilter.spec.ts | 10 +- .../__tests__/sliderRangeFilter.spec.ts | 10 +- .../common/src/filters/autocompleterFilter.ts | 22 +- .../common/src/filters/compoundDateFilter.ts | 4 +- .../common/src/filters/compoundInputFilter.ts | 4 +- .../src/filters/compoundInputNumberFilter.ts | 4 +- .../filters/compoundInputPasswordFilter.ts | 4 +- .../src/filters/compoundSliderFilter.ts | 4 +- packages/common/src/filters/dateFilter.ts | 16 +- .../common/src/filters/dateRangeFilter.ts | 4 +- packages/common/src/filters/filterFactory.ts | 10 +- .../common/src/filters/filterUtilities.ts | 12 +- packages/common/src/filters/filters.index.ts | 32 +- packages/common/src/filters/index.ts | 40 +-- packages/common/src/filters/inputFilter.ts | 10 +- .../common/src/filters/inputMaskFilter.ts | 6 +- .../common/src/filters/inputNumberFilter.ts | 4 +- .../common/src/filters/inputPasswordFilter.ts | 4 +- .../src/filters/multipleSelectFilter.ts | 8 +- packages/common/src/filters/selectFilter.ts | 18 +- .../common/src/filters/singleSelectFilter.ts | 8 +- .../common/src/filters/singleSliderFilter.ts | 4 +- packages/common/src/filters/sliderFilter.ts | 14 +- .../common/src/filters/sliderRangeFilter.ts | 4 +- .../arrayObjectToCsvFormatter.spec.ts | 4 +- .../__tests__/arrayToCsvFormatter.spec.ts | 4 +- .../checkmarkMaterialFormatter.spec.ts | 4 +- .../collectionEditorFormatter.spec.ts | 6 +- .../__tests__/collectionFormatter.spec.ts | 4 +- .../__tests__/complexObjectFormatter.spec.ts | 4 +- .../__tests__/currencyFormatter.spec.ts | 6 +- .../__tests__/dateEuroFormatter.spec.ts | 4 +- .../__tests__/dateEuroShortFormatter.spec.ts | 4 +- .../__tests__/dateIsoFormatter.spec.ts | 4 +- .../dateTimeEuroAM_PMFormatter.spec.ts | 4 +- .../dateTimeEuroAmPmFormatter.spec.ts | 4 +- .../__tests__/dateTimeEuroFormatter.spec.ts | 4 +- .../dateTimeEuroShortAM_PMFormatter.spec.ts | 4 +- .../dateTimeEuroShortAmPmFormatter.spec.ts | 4 +- .../dateTimeEuroShortFormatter.spec.ts | 4 +- .../dateTimeIsoAM_PMFormatter.spec.ts | 4 +- .../dateTimeIsoAmPmFormatter.spec.ts | 4 +- .../__tests__/dateTimeIsoFormatter.spec.ts | 4 +- .../dateTimeShortEuroFormatter.spec.ts | 4 +- .../dateTimeShortIsoFormatter.spec.ts | 4 +- .../dateTimeShortUsFormatter.spec.ts | 4 +- .../dateTimeUsAM_PMFormatter.spec.ts | 4 +- .../__tests__/dateTimeUsAmPmFormatter.spec.ts | 4 +- .../__tests__/dateTimeUsFormatter.spec.ts | 4 +- .../dateTimeUsShortAM_PMFormatter.spec.ts | 4 +- .../dateTimeUsShortAmPmFormatter.spec.ts | 4 +- .../dateTimeUsShortFormatter.spec.ts | 4 +- .../__tests__/dateUsFormatter.spec.ts | 4 +- .../__tests__/dateUsShortFormatter.spec.ts | 4 +- .../__tests__/dateUtcFormatter.spec.ts | 4 +- .../__tests__/decimalFormatter.spec.ts | 6 +- .../dollarColoredBoldFormatter.spec.ts | 6 +- .../__tests__/dollarColoredFormatter.spec.ts | 6 +- .../__tests__/dollarFormatter.spec.ts | 6 +- .../__tests__/formatterUtilities.spec.ts | 14 +- .../__tests__/hyperlinkFormatter.spec.ts | 6 +- .../__tests__/iconBooleanFormatter.spec.ts | 4 +- .../__tests__/iconFormatter.spec.ts | 4 +- .../__tests__/maskFormatter.spec.ts | 6 +- .../__tests__/multipleFormatter.spec.ts | 4 +- .../percentCompleteBarFormatter.spec.ts | 4 +- ...ercentCompleteBarWithTextFormatter.spec.ts | 4 +- .../percentCompleteFormatter.spec.ts | 6 +- .../__tests__/percentFormatter.spec.ts | 6 +- .../__tests__/percentSymbolFormatter.spec.ts | 6 +- .../__tests__/progressBarFormatter.spec.ts | 4 +- .../translateBooleanFormatter.spec.ts | 8 +- .../__tests__/translateFormatter.spec.ts | 8 +- .../__tests__/treeExportFormatter.spec.ts | 6 +- .../__tests__/treeFormatter.spec.ts | 6 +- .../treeParseTotalFormatters.spec.ts | 10 +- .../formatters/arrayObjectToCsvFormatter.ts | 2 +- .../src/formatters/arrayToCsvFormatter.ts | 2 +- .../formatters/checkmarkMaterialFormatter.ts | 2 +- .../formatters/collectionEditorFormatter.ts | 6 +- .../src/formatters/collectionFormatter.ts | 6 +- .../src/formatters/complexObjectFormatter.ts | 2 +- .../src/formatters/currencyFormatter.ts | 6 +- .../common/src/formatters/decimalFormatter.ts | 6 +- .../formatters/dollarColoredBoldFormatter.ts | 6 +- .../src/formatters/dollarColoredFormatter.ts | 6 +- .../common/src/formatters/dollarFormatter.ts | 6 +- .../src/formatters/formatterUtilities.ts | 12 +- .../common/src/formatters/formatters.index.ts | 60 ++-- .../src/formatters/hyperlinkFormatter.ts | 2 +- .../src/formatters/iconBooleanFormatter.ts | 2 +- .../common/src/formatters/iconFormatter.ts | 2 +- packages/common/src/formatters/index.ts | 56 ++-- .../common/src/formatters/maskFormatter.ts | 2 +- .../src/formatters/multipleFormatter.ts | 2 +- .../formatters/percentCompleteBarFormatter.ts | 2 +- .../percentCompleteBarWithTextFormatter.ts | 2 +- .../formatters/percentCompleteFormatter.ts | 6 +- .../common/src/formatters/percentFormatter.ts | 6 +- .../src/formatters/percentSymbolFormatter.ts | 6 +- .../src/formatters/progressBarFormatter.ts | 2 +- .../formatters/translateBooleanFormatter.ts | 2 +- .../src/formatters/translateFormatter.ts | 2 +- .../src/formatters/treeExportFormatter.ts | 8 +- .../common/src/formatters/treeFormatter.ts | 8 +- .../formatters/treeParseTotalsFormatter.ts | 4 +- packages/common/src/global-grid-options.ts | 6 +- .../avgTotalsCurrencyFormatters.spec.ts | 6 +- .../avgTotalsDollarFormatters.spec.ts | 6 +- .../__tests__/avgTotalsFormatter.spec.ts | 6 +- .../avgTotalsPercentageFormatter.spec.ts | 6 +- .../__tests__/maxTotalsFormatter.spec.ts | 6 +- .../__tests__/minTotalsFormatter.spec.ts | 6 +- .../__tests__/sumTotalsBoldFormatter.spec.ts | 6 +- .../sumTotalsColoredFormatter.spec.ts | 6 +- .../sumTotalsCurrencyColoredFormatter.spec.ts | 6 +- .../sumTotalsCurrencyFormatter.spec.ts | 6 +- .../sumTotalsDollarBoldFormatter.spec.ts | 6 +- ...umTotalsDollarColoredBoldFormatter.spec.ts | 6 +- .../sumTotalsDollarColoredFormatter.spec.ts | 6 +- .../sumTotalsDollarFormatter.spec.ts | 6 +- .../__tests__/sumTotalsFormatter.spec.ts | 6 +- .../avgTotalsCurrencyFormatter.ts | 8 +- .../avgTotalsDollarFormatter.ts | 8 +- .../grouping-formatters/avgTotalsFormatter.ts | 8 +- .../avgTotalsPercentageFormatter.ts | 8 +- .../groupingFormatters.index.ts | 32 +- .../common/src/grouping-formatters/index.ts | 26 +- .../grouping-formatters/maxTotalsFormatter.ts | 8 +- .../grouping-formatters/minTotalsFormatter.ts | 8 +- .../sumTotalsBoldFormatter.ts | 8 +- .../sumTotalsColoredFormatter.ts | 8 +- .../sumTotalsCurrencyColoredFormatter.ts | 8 +- .../sumTotalsCurrencyFormatter.ts | 8 +- .../sumTotalsDollarBoldFormatter.ts | 8 +- .../sumTotalsDollarColoredBoldFormatter.ts | 8 +- .../sumTotalsDollarColoredFormatter.ts | 8 +- .../sumTotalsDollarFormatter.ts | 8 +- .../grouping-formatters/sumTotalsFormatter.ts | 8 +- packages/common/src/index.ts | 56 ++-- .../__tests__/column.interface.spec.ts | 2 +- .../interfaces/autoResizeOption.interface.ts | 2 +- .../autocompleterOption.interface.ts | 2 +- .../interfaces/backendService.interface.ts | 6 +- .../interfaces/backendServiceApi.interface.ts | 4 +- .../backendServiceOption.interface.ts | 6 +- .../src/interfaces/cellArgs.interface.ts | 2 +- .../src/interfaces/cellMenu.interface.ts | 6 +- .../interfaces/cellMenuOption.interface.ts | 2 +- .../src/interfaces/cellRange.interface.ts | 2 +- .../checkboxSelectorOption.interface.ts | 6 +- .../collectionFilterBy.interface.ts | 2 +- .../interfaces/collectionOption.interface.ts | 4 +- .../collectionOverrideArgs.interface.ts | 6 +- .../interfaces/collectionSortBy.interface.ts | 2 +- .../common/src/interfaces/column.interface.ts | 4 +- .../src/interfaces/columnEditor.interface.ts | 6 +- .../columnEditorDualInput.interface.ts | 2 +- .../columnExcelExportOption.interface.ts | 6 +- .../src/interfaces/columnFilter.interface.ts | 6 +- .../src/interfaces/columnFilters.interface.ts | 2 +- .../src/interfaces/columnPicker.interface.ts | 6 +- .../src/interfaces/columnSort.interface.ts | 2 +- .../compositeEditorError.interface.ts | 2 +- ...mpositeEditorOpenDetailOption.interface.ts | 6 +- .../compositeEditorOption.interface.ts | 4 +- .../src/interfaces/contextMenu.interface.ts | 6 +- .../interfaces/contextMenuOption.interface.ts | 2 +- .../src/interfaces/currentFilter.interface.ts | 4 +- .../src/interfaces/currentSorter.interface.ts | 2 +- .../customFooterOption.interface.ts | 2 +- .../customTooltipOption.interface.ts | 6 +- .../interfaces/dataViewEvents.interface.ts | 2 +- .../common/src/interfaces/drag.interface.ts | 2 +- .../interfaces/draggableGrouping.interface.ts | 8 +- .../draggableGroupingOption.interface.ts | 4 +- .../src/interfaces/editCommand.interface.ts | 2 +- .../editUndoRedoBuffer.interface.ts | 2 +- .../common/src/interfaces/editor.interface.ts | 2 +- .../interfaces/editorArguments.interface.ts | 6 +- .../editorValidationResult.interface.ts | 2 +- .../interfaces/editorValidator.interface.ts | 2 +- .../excelCopyBufferOption.interface.ts | 6 +- .../interfaces/excelExportOption.interface.ts | 2 +- .../interfaces/extensionModel.interface.ts | 2 +- .../externalCopyClipCommand.interface.ts | 6 +- .../interfaces/externalResource.interface.ts | 4 +- .../common/src/interfaces/filter.interface.ts | 8 +- .../interfaces/filterArguments.interface.ts | 6 +- .../interfaces/filterCallback.interface.ts | 4 +- .../interfaces/filterChangedArgs.interface.ts | 6 +- .../interfaces/filterCondition.interface.ts | 4 +- .../filterConditionOption.interface.ts | 2 +- .../src/interfaces/formatter.interface.ts | 4 +- .../src/interfaces/gridEvents.interface.ts | 4 +- .../src/interfaces/gridMenu.interface.ts | 6 +- ...idMenuCommandItemCallbackArgs.interface.ts | 4 +- .../src/interfaces/gridMenuItem.interface.ts | 4 +- .../interfaces/gridMenuOption.interface.ts | 2 +- .../src/interfaces/gridOption.interface.ts | 8 +- .../src/interfaces/gridState.interface.ts | 2 +- .../interfaces/gridStateChange.interface.ts | 4 +- ...oupItemMetadataProviderOption.interface.ts | 4 +- .../groupTotalsFormatter.interface.ts | 4 +- .../src/interfaces/grouping.interface.ts | 8 +- .../src/interfaces/headerButton.interface.ts | 6 +- .../interfaces/headerButtonItem.interface.ts | 4 +- .../headerButtonOnCommandArgs.interface.ts | 4 +- .../headerButtonsOrMenu.interface.ts | 4 +- .../src/interfaces/headerMenu.interface.ts | 6 +- .../interfaces/headerMenuItems.interface.ts | 2 +- .../interfaces/headerMenuOption.interface.ts | 4 +- packages/common/src/interfaces/index.ts | 292 +++++++++--------- .../src/interfaces/interactions.interface.ts | 2 +- .../src/interfaces/itemMetadata.interface.ts | 2 +- .../interfaces/menuCallbackArgs.interface.ts | 4 +- .../interfaces/menuCommandItem.interface.ts | 2 +- .../menuCommandItemCallbackArgs.interface.ts | 4 +- .../menuFromCellCallbackArgs.interface.ts | 4 +- .../src/interfaces/menuItem.interface.ts | 2 +- .../interfaces/menuOptionItem.interface.ts | 4 +- .../menuOptionItemCallbackArgs.interface.ts | 4 +- .../mouseOffsetViewport.interface.ts | 2 +- .../interfaces/multiColumnSort.interface.ts | 4 +- .../src/interfaces/onEventArgs.interface.ts | 4 +- .../onValidationErrorResult.interface.ts | 2 +- .../interfaces/operatorDetail.interface.ts | 2 +- .../src/interfaces/pagination.interface.ts | 6 +- .../paginationCursorChangedArgs.interface.ts | 2 +- .../src/interfaces/pagingInfo.interface.ts | 2 +- .../src/interfaces/resizer.interface.ts | 4 +- .../rowBasedEditOption.interface.ts | 6 +- .../src/interfaces/rowDetailView.interface.ts | 4 +- .../rowDetailViewOption.interface.ts | 4 +- .../interfaces/rowMoveManager.interface.ts | 6 +- .../rowMoveManagerOption.interface.ts | 4 +- .../rowSelectionModelOption.interface.ts | 2 +- .../searchColumnFilter.interface.ts | 6 +- .../selectableOverrideCallback.interface.ts | 2 +- .../interfaces/singleColumnSort.interface.ts | 4 +- .../src/interfaces/slickPlugin.interface.ts | 2 +- .../interfaces/slickRemoteModel.interface.ts | 4 +- .../src/interfaces/slickResizer.interface.ts | 4 +- .../slickRowDetailView.interface.ts | 8 +- .../common/src/interfaces/sorter.interface.ts | 6 +- .../interfaces/textExportOption.interface.ts | 4 +- .../interfaces/treeDataOption.interface.ts | 6 +- .../treeToggleStateChange.interface.ts | 4 +- .../__tests__/backend-utilities.spec.ts | 6 +- .../__tests__/collection.service.spec.ts | 10 +- .../__tests__/container.service.spec.ts | 2 +- .../__tests__/dataWrapperService.spec.ts | 5 +- .../src/services/__tests__/dateUtils.spec.ts | 4 +- .../__tests__/excelExport.service.spec.ts | 6 +- .../services/__tests__/export.service.spec.ts | 2 +- .../__tests__/extension.service.spec.ts | 14 +- .../services/__tests__/filter.service.spec.ts | 26 +- .../services/__tests__/grid.service.spec.ts | 8 +- .../__tests__/gridEvent.service.spec.ts | 6 +- .../__tests__/gridState.service.spec.ts | 22 +- .../__tests__/headerGrouping.service.spec.ts | 8 +- .../src/services/__tests__/observers.spec.ts | 2 +- .../__tests__/pagination.service.spec.ts | 12 +- .../__tests__/resizer.service.spec.ts | 10 +- .../src/services/__tests__/rxjsFacade.spec.ts | 2 +- .../services/__tests__/shared.service.spec.ts | 8 +- .../services/__tests__/sort.service.spec.ts | 18 +- .../__tests__/translater.service.spec.ts | 2 +- .../__tests__/treeData.service.spec.ts | 14 +- .../src/services/__tests__/utilities.spec.ts | 14 +- .../src/services/backendUtility.service.ts | 6 +- .../common/src/services/collection.service.ts | 14 +- .../common/src/services/dataWrapperService.ts | 2 +- packages/common/src/services/dateUtils.ts | 2 +- packages/common/src/services/domUtilities.ts | 8 +- .../src/services/excelExport.service.ts | 6 +- .../common/src/services/extension.service.ts | 18 +- .../common/src/services/filter.service.ts | 20 +- packages/common/src/services/grid.service.ts | 18 +- .../common/src/services/gridEvent.service.ts | 4 +- .../common/src/services/gridState.service.ts | 16 +- .../src/services/headerGrouping.service.ts | 6 +- packages/common/src/services/index.ts | 44 +-- .../common/src/services/pagination.service.ts | 12 +- .../common/src/services/resizer.service.ts | 8 +- .../common/src/services/shared.service.ts | 6 +- packages/common/src/services/sort.service.ts | 18 +- .../common/src/services/textExport.service.ts | 6 +- .../common/src/services/treeData.service.ts | 14 +- packages/common/src/services/utilities.ts | 8 +- packages/common/src/slickgrid-config.ts | 4 +- .../__tests__/booleanSortComparer.spec.ts | 4 +- .../dateEuroShortSortComparer.spec.ts | 4 +- .../__tests__/dateEuroSortComparer.spec.ts | 4 +- .../__tests__/dateIsoSortComparer.spec.ts | 6 +- .../__tests__/dateSortComparer.spec.ts | 4 +- .../__tests__/dateUsShortSortComparer.spec.ts | 4 +- .../__tests__/dateUsSortComparer.spec.ts | 4 +- .../__tests__/numericSortComparer.spec.ts | 6 +- .../objectStringSortComparer.spec.ts | 4 +- .../__tests__/sortUtilities.spec.ts | 8 +- .../__tests__/stringSortComparer.spec.ts | 6 +- .../src/sortComparers/booleanSortComparer.ts | 4 +- .../common/src/sortComparers/dateUtilities.ts | 6 +- packages/common/src/sortComparers/index.ts | 14 +- .../src/sortComparers/numericSortComparer.ts | 4 +- .../sortComparers/objectStringSortComparer.ts | 4 +- .../src/sortComparers/sortComparers.index.ts | 16 +- .../common/src/sortComparers/sortUtilities.ts | 10 +- .../src/sortComparers/stringSortComparer.ts | 4 +- .../src/compositeEditor.factory.spec.ts | 2 +- .../composite-editor-component/src/index.ts | 4 +- .../slick-composite-editor.component.spec.ts | 6 +- .../src/slick-composite-editor.component.ts | 2 +- packages/custom-footer-component/src/index.ts | 2 +- .../src/slick-footer.spec.ts | 4 +- .../src/__tests__/slickCustomTooltip.spec.ts | 6 +- packages/custom-tooltip-plugin/src/index.ts | 2 +- packages/empty-warning-component/src/index.ts | 2 +- .../src/slick-empty-warning.spec.ts | 6 +- .../src/eventPubSub.service.spec.ts | 4 +- .../event-pub-sub/src/eventPubSub.service.ts | 4 +- packages/event-pub-sub/src/index.ts | 6 +- .../src/types/basePubSubService.interface.ts | 2 +- packages/event-pub-sub/src/types/index.ts | 3 - .../src/excelExport.service.spec.ts | 8 +- .../excel-export/src/excelExport.service.ts | 2 +- packages/excel-export/src/excelUtils.spec.ts | 2 +- packages/excel-export/src/index.ts | 2 +- packages/graphql/src/index.ts | 6 +- .../graphqlDatasetFilter.interface.ts | 4 +- .../interfaces/graphqlServiceApi.interface.ts | 8 +- .../graphqlServiceOption.interface.ts | 10 +- packages/graphql/src/interfaces/index.ts | 20 +- .../__tests__/graphql.service.spec.ts | 4 +- .../__tests__/graphqlQueryBuilder.spec.ts | 2 +- .../graphql/src/services/graphql.service.ts | 4 +- packages/graphql/src/services/index.ts | 4 +- packages/odata/src/index.ts | 6 +- packages/odata/src/interfaces/index.ts | 6 +- .../interfaces/odataServiceApi.interface.ts | 4 +- .../__tests__/grid-odata.service.spec.ts | 4 +- .../odataQueryBuilder.service.spec.ts | 2 +- .../odata/src/services/grid-odata.service.ts | 4 +- packages/odata/src/services/index.ts | 4 +- .../src/services/odataQueryBuilder.service.ts | 2 +- .../slick-pagination-without-i18n.spec.ts | 4 +- .../src/__tests__/slick-pagination.spec.ts | 4 +- packages/pagination-component/src/index.ts | 2 +- packages/row-detail-view-plugin/src/index.ts | 2 +- .../src/slickRowDetailView.spec.ts | 2 +- packages/rxjs-observable/src/index.ts | 2 +- .../rxjs-observable/src/rxjs-resource.spec.ts | 2 +- packages/text-export/src/index.ts | 2 +- .../src/textExport.service.spec.ts | 6 +- packages/utils/src/__tests__/domUtils.spec.ts | 2 +- .../utils/src/__tests__/nodeExtend.spec.ts | 2 +- .../utils/src/__tests__/stripTagsUtil.spec.ts | 2 +- packages/utils/src/__tests__/utils.spec.ts | 2 +- packages/utils/src/domUtils.ts | 3 +- packages/utils/src/index.ts | 11 +- packages/utils/src/models/index.ts | 2 - packages/utils/src/stripTagsUtil.ts | 2 +- packages/utils/src/utils.ts | 4 +- .../__tests__/slick-vanilla-grid.spec.ts | 12 +- .../components/slick-vanilla-grid-bundle.ts | 4 +- packages/vanilla-bundle/src/index.ts | 6 +- .../vanilla-bundle/src/interfaces/index.ts | 2 +- .../universalContainer.service.spec.ts | 2 +- packages/vanilla-bundle/src/services/index.ts | 2 +- .../__tests__/vanilla-force-bundle.spec.ts | 8 +- packages/vanilla-force-bundle/src/index.ts | 2 +- .../src/vanilla-force-bundle.ts | 2 +- test/cypress/e2e/example02.cy.ts | 1 + test/cypress/e2e/example05.cy.ts | 1 + test/cypress/e2e/example07.cy.ts | 1 + test/cypress/e2e/example08.cy.ts | 1 + test/cypress/e2e/example11.cy.ts | 1 + test/cypress/e2e/example12.cy.ts | 1 + test/cypress/e2e/example17.cy.ts | 1 + test/cypress/e2e/example27.cy.ts | 1 + test/cypress/support/commands.ts | 1 + test/cypress/support/drag.ts | 1 + test/cypress/support/index.ts | 1 + test/cypress/tsconfig.json | 3 +- 580 files changed, 2126 insertions(+), 2089 deletions(-) delete mode 100644 packages/event-pub-sub/src/types/index.ts delete mode 100644 packages/utils/src/models/index.ts diff --git a/.vscode/settings.json b/.vscode/settings.json index 0601821cd..d6f86303e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,5 +4,6 @@ "typescript" ], "typescript.format.semicolons": "insert", - "vitest.rootConfig": "./test/vitest.config.mts" + "vitest.rootConfig": "./test/vitest.config.mts", + "typescript.tsdk": "node_modules\\typescript\\lib" } \ No newline at end of file diff --git a/eslint.config.mjs b/eslint.config.mjs index edb4ccaac..2008688ed 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -59,6 +59,7 @@ export default tseslint.config( 'cypress/no-assigning-return-values': 'off', 'cypress/unsafe-to-chain-command': 'off', 'object-shorthand': 'error', + 'n/file-extension-in-import': ['error', 'always', { ".cy.ts": "never" }], 'no-async-promise-executor': 'off', 'no-case-declarations': 'off', 'no-prototype-builtins': 'off', diff --git a/examples/vite-demo-vanilla-bundle/src/app-routing.ts b/examples/vite-demo-vanilla-bundle/src/app-routing.ts index e9cc9e749..5355198e5 100644 --- a/examples/vite-demo-vanilla-bundle/src/app-routing.ts +++ b/examples/vite-demo-vanilla-bundle/src/app-routing.ts @@ -1,36 +1,36 @@ -import type { RouterConfig } from './interfaces'; +import type { RouterConfig } from './interfaces.js'; -import Icons from './examples/icons'; -import Example01 from './examples/example01'; -import Example02 from './examples/example02'; -import Example03 from './examples/example03'; -import Example04 from './examples/example04'; -import Example05 from './examples/example05'; -import Example06 from './examples/example06'; -import Example07 from './examples/example07'; -import Example08 from './examples/example08'; -import Example09 from './examples/example09'; -import Example10 from './examples/example10'; -import Example11 from './examples/example11'; -import Example12 from './examples/example12'; -import Example13 from './examples/example13'; -import Example14 from './examples/example14'; -import Example15 from './examples/example15'; -import Example16 from './examples/example16'; -import Example17 from './examples/example17'; -import Example18 from './examples/example18'; -import Example19 from './examples/example19'; -import Example20 from './examples/example20'; -import Example21 from './examples/example21'; -import Example22 from './examples/example22'; -import Example23 from './examples/example23'; -import Example24 from './examples/example24'; -import Example25 from './examples/example25'; -import Example26 from './examples/example26'; -import Example27 from './examples/example27'; -import Example28 from './examples/example28'; -import Example29 from './examples/example29'; -import Example30 from './examples/example30'; +import Icons from './examples/icons.js'; +import Example01 from './examples/example01.js'; +import Example02 from './examples/example02.js'; +import Example03 from './examples/example03.js'; +import Example04 from './examples/example04.js'; +import Example05 from './examples/example05.js'; +import Example06 from './examples/example06.js'; +import Example07 from './examples/example07.js'; +import Example08 from './examples/example08.js'; +import Example09 from './examples/example09.js'; +import Example10 from './examples/example10.js'; +import Example11 from './examples/example11.js'; +import Example12 from './examples/example12.js'; +import Example13 from './examples/example13.js'; +import Example14 from './examples/example14.js'; +import Example15 from './examples/example15.js'; +import Example16 from './examples/example16.js'; +import Example17 from './examples/example17.js'; +import Example18 from './examples/example18.js'; +import Example19 from './examples/example19.js'; +import Example20 from './examples/example20.js'; +import Example21 from './examples/example21.js'; +import Example22 from './examples/example22.js'; +import Example23 from './examples/example23.js'; +import Example24 from './examples/example24.js'; +import Example25 from './examples/example25.js'; +import Example26 from './examples/example26.js'; +import Example27 from './examples/example27.js'; +import Example28 from './examples/example28.js'; +import Example29 from './examples/example29.js'; +import Example30 from './examples/example30.js'; export class AppRouting { constructor(private config: RouterConfig) { diff --git a/examples/vite-demo-vanilla-bundle/src/app.ts b/examples/vite-demo-vanilla-bundle/src/app.ts index 0935de1f7..17b2dac70 100644 --- a/examples/vite-demo-vanilla-bundle/src/app.ts +++ b/examples/vite-demo-vanilla-bundle/src/app.ts @@ -1,6 +1,6 @@ -import { AppRouting } from './app-routing'; -import { Renderer } from './renderer'; -import type { ElementEventListener, RouterConfig } from './interfaces'; +import { AppRouting } from './app-routing.js'; +import { Renderer } from './renderer.js'; +import type { ElementEventListener, RouterConfig } from './interfaces.js'; const pageLayoutGlobs = import.meta.glob('./examples/**/*.html', { query: '?raw', eager: true, import: 'default' }); export class App { diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example01.ts b/examples/vite-demo-vanilla-bundle/src/examples/example01.ts index 0db8afbfc..87e7ac7e3 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example01.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example01.ts @@ -1,6 +1,7 @@ import { type Column, ExtensionName, FieldType, Formatters, type GridOption } from '@slickgrid-universal/common'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; -import { ExampleGridOptions } from './example-grid-options'; + +import { ExampleGridOptions } from './example-grid-options.js'; // import '@slickgrid-universal/common/dist/styles/sass/slickgrid-theme-salesforce.scss?inline'; // import cssCode from '@slickgrid-universal/common/dist/styles/sass/slickgrid-theme-salesforce.scss?url'; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example02.ts b/examples/vite-demo-vanilla-bundle/src/examples/example02.ts index 0aa9664c0..492b5269d 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example02.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example02.ts @@ -18,7 +18,7 @@ import { ExcelExportService } from '@slickgrid-universal/excel-export'; import { TextExportService } from '@slickgrid-universal/text-export'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; import '../material-styles.scss'; const NB_ITEMS = 500; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example03.ts b/examples/vite-demo-vanilla-bundle/src/examples/example03.ts index 2fd7eb84c..eac847bcd 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example03.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example03.ts @@ -22,7 +22,7 @@ import { ExcelExportService } from '@slickgrid-universal/excel-export'; import { TextExportService } from '@slickgrid-universal/text-export'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; interface ReportItem { title: string; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example04.ts b/examples/vite-demo-vanilla-bundle/src/examples/example04.ts index ae0a6b4c0..cb184a1e0 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example04.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example04.ts @@ -19,7 +19,7 @@ import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanil import fetchJsonp from 'fetch-jsonp'; // import { fetch } from 'whatwg-fetch'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; import './example04.scss'; // const URL_COUNTRIES_COLLECTION = 'assets/data/countries.json'; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example05.ts b/examples/vite-demo-vanilla-bundle/src/examples/example05.ts index 3728133c1..0d90865f2 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example05.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example05.ts @@ -14,7 +14,7 @@ import { BindingEventService } from '@slickgrid-universal/binding'; import { ExcelExportService } from '@slickgrid-universal/excel-export'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; import './example05.scss'; const NB_ITEMS = 500; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example06.ts b/examples/vite-demo-vanilla-bundle/src/examples/example06.ts index 153d75402..4de8669e4 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example06.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example06.ts @@ -19,7 +19,7 @@ import { TextExportService } from '@slickgrid-universal/text-export'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; import './example06.scss'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; export default class Example06 { columnDefinitions: Column[]; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example07.ts b/examples/vite-demo-vanilla-bundle/src/examples/example07.ts index d3db99a58..081221844 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example07.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example07.ts @@ -12,8 +12,8 @@ import { ExcelExportService } from '@slickgrid-universal/excel-export'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; import DOMPurify from 'dompurify'; -import { ExampleGridOptions } from './example-grid-options'; -import type { TranslateService } from '../translate.service'; +import { ExampleGridOptions } from './example-grid-options.js'; +import type { TranslateService } from '../translate.service.js'; import './example07.scss'; import '../material-styles.scss'; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example08.ts b/examples/vite-demo-vanilla-bundle/src/examples/example08.ts index 41a0b35d3..0fd38f205 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example08.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example08.ts @@ -9,7 +9,7 @@ import { ExcelExportService } from '@slickgrid-universal/excel-export'; import { TextExportService } from '@slickgrid-universal/text-export'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; import './example08.scss'; export default class Example08 { diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example09.ts b/examples/vite-demo-vanilla-bundle/src/examples/example09.ts index 9dfa07d6c..99570974f 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example09.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example09.ts @@ -2,7 +2,8 @@ import { BindingEventService } from '@slickgrid-universal/binding'; import { type Column, FieldType, Filters, type GridOption, type GridStateChange, type Metrics, OperatorType, type GridState, } from '@slickgrid-universal/common'; import { GridOdataService, type OdataServiceApi, type OdataOption } from '@slickgrid-universal/odata'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; -import { ExampleGridOptions } from './example-grid-options'; + +import { ExampleGridOptions } from './example-grid-options.js'; import Data from './data/customers_100.json'; import './example09.scss'; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example10.ts b/examples/vite-demo-vanilla-bundle/src/examples/example10.ts index aa42c0841..b15bf7638 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example10.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example10.ts @@ -16,8 +16,8 @@ import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanil import { addDay, format as tempoFormat } from '@formkit/tempo'; import { type MultipleSelectOption } from 'multiple-select-vanilla'; -import { ExampleGridOptions } from './example-grid-options'; -import type { TranslateService } from '../translate.service'; +import { ExampleGridOptions } from './example-grid-options.js'; +import type { TranslateService } from '../translate.service.js'; import './example10.scss'; import '../material-styles.scss'; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example11-modal.ts b/examples/vite-demo-vanilla-bundle/src/examples/example11-modal.ts index 77bf0114b..1b89a93a1 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example11-modal.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example11-modal.ts @@ -8,7 +8,7 @@ import { import { BindingEventService } from '@slickgrid-universal/binding'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; import './example11-modal.scss'; export default class Example11Modal { diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example11.ts b/examples/vite-demo-vanilla-bundle/src/examples/example11.ts index 6ce2fba27..19d1aa1e3 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example11.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example11.ts @@ -31,10 +31,10 @@ import { format as tempoFormat, addDay } from '@formkit/tempo'; import { type MultipleSelectOption } from 'multiple-select-vanilla'; import exampleModal from './example11-modal.html?raw'; -import Example11Modal from './example11-modal'; +import Example11Modal from './example11-modal.js'; import countriesJson from './data/countries.json?raw'; -import { ExampleGridOptions } from './example-grid-options'; -import { loadComponent } from './utilities'; +import { ExampleGridOptions } from './example-grid-options.js'; +import { loadComponent } from './utilities.js'; import './example11.scss'; const LOCAL_STORAGE_KEY = 'gridViewPreset'; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example12.ts b/examples/vite-demo-vanilla-bundle/src/examples/example12.ts index 31c560e86..b31a78ebc 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example12.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example12.ts @@ -27,7 +27,7 @@ import { Slicker, type VanillaForceGridBundle } from '@slickgrid-universal/vanil import { SlickCompositeEditor, SlickCompositeEditorComponent } from '@slickgrid-universal/composite-editor-component'; import { type MultipleSelectOption } from 'multiple-select-vanilla'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; import countriesJson from './data/countries.json?raw'; import './example12.scss'; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example13.ts b/examples/vite-demo-vanilla-bundle/src/examples/example13.ts index 8d07b5fd3..dd45bf285 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example13.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example13.ts @@ -3,7 +3,7 @@ import { type Column, Editors, FieldType, type GridOption } from '@slickgrid-uni import { ExcelExportService } from '@slickgrid-universal/excel-export'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; import '../material-styles.scss'; import './example13.scss'; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example14.ts b/examples/vite-demo-vanilla-bundle/src/examples/example14.ts index 87a59d038..6edd13a58 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example14.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example14.ts @@ -27,7 +27,7 @@ import { SlickCustomTooltip } from '@slickgrid-universal/custom-tooltip-plugin'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; import countriesJson from './data/countries.json?raw'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; import './example14.scss'; const NB_ITEMS = 400; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example15.ts b/examples/vite-demo-vanilla-bundle/src/examples/example15.ts index 7bca503a5..d19e34557 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example15.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example15.ts @@ -6,7 +6,7 @@ import { RxJsResource } from '@slickgrid-universal/rxjs-observable'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; import { delay, Observable, of, type Subject } from 'rxjs'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; import Data from './data/customers_100.json'; import './example15.scss'; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example16.ts b/examples/vite-demo-vanilla-bundle/src/examples/example16.ts index 3d4d6f9c3..721984f63 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example16.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example16.ts @@ -18,7 +18,7 @@ import { ExcelExportService } from '@slickgrid-universal/excel-export'; import { TextExportService } from '@slickgrid-universal/text-export'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; import './example16.scss'; export default class Example16 { diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example17.ts b/examples/vite-demo-vanilla-bundle/src/examples/example17.ts index e8d3b7060..5a0c1407b 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example17.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example17.ts @@ -1,6 +1,7 @@ import { Aggregators, type Column, Formatters, type GridOption, type Grouping, GroupTotalFormatters, SlickCellRangeSelector, SlickCellSelectionModel, SlickRowSelectionModel } from '@slickgrid-universal/common'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; -import { ExampleGridOptions } from './example-grid-options'; + +import { ExampleGridOptions } from './example-grid-options.js'; // use any of the Styling Theme // import '../material-styles.scss'; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example18.ts b/examples/vite-demo-vanilla-bundle/src/examples/example18.ts index 82b16dab3..67f177d95 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example18.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example18.ts @@ -13,7 +13,8 @@ import { GroupTotalFormatters, } from '@slickgrid-universal/common'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; -import { ExampleGridOptions } from './example-grid-options'; + +import { ExampleGridOptions } from './example-grid-options.js'; import './example18.scss'; import '../material-styles.scss'; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example19.ts b/examples/vite-demo-vanilla-bundle/src/examples/example19.ts index 59b4885b6..76ebcb13e 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example19.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example19.ts @@ -1,6 +1,7 @@ import { type Column, type GridOption, SlickEventHandler, Editors, Formatters } from '@slickgrid-universal/common'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; -import { ExampleGridOptions } from './example-grid-options'; + +import { ExampleGridOptions } from './example-grid-options.js'; import './example19.scss'; const NB_ITEMS = 100; @@ -89,7 +90,7 @@ export default class Example19 { field: 'approvalDate', minWidth: 120, width: 120, - editor: { model: Editors.date, type: 'date'}, + editor: { model: Editors.date, type: 'date' }, formatter: Formatters.dateIso, exportWithFormatter: true }); @@ -149,7 +150,7 @@ export default class Example19 { getData(itemCount: number) { // mock a dataset const datasetTmp: any[] = []; - const start = new Date(2000,0,1); + const start = new Date(2000, 0, 1); const end = new Date(); for (let i = 0; i < itemCount; i++) { const d: any = (datasetTmp[i] = {}); diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example20.ts b/examples/vite-demo-vanilla-bundle/src/examples/example20.ts index eecaef342..0aeac972c 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example20.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example20.ts @@ -1,6 +1,7 @@ import { type Column, FieldType, Filters, Formatters, type GridOption, SlickEventHandler, } from '@slickgrid-universal/common'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; -import { ExampleGridOptions } from './example-grid-options'; + +import { ExampleGridOptions } from './example-grid-options.js'; const NB_ITEMS = 100; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example21.ts b/examples/vite-demo-vanilla-bundle/src/examples/example21.ts index a4b5898e1..ca2f77b16 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example21.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example21.ts @@ -3,7 +3,7 @@ import { type Column, createDomElement, FieldType, Filters, Formatters, type Gri import { SlickRowDetailView } from '@slickgrid-universal/row-detail-view-plugin'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; import './example21.scss'; const NB_ITEMS = 995; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example22.ts b/examples/vite-demo-vanilla-bundle/src/examples/example22.ts index 844717e64..f28d055a5 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example22.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example22.ts @@ -9,9 +9,9 @@ import { SlickCustomTooltip } from '@slickgrid-universal/custom-tooltip-plugin'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; import { BindingEventService } from '@slickgrid-universal/binding'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; +import type { TranslateService } from '../translate.service.js'; import './example22.scss'; -import type { TranslateService } from '../translate.service'; const NB_ITEMS = 20; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example23.ts b/examples/vite-demo-vanilla-bundle/src/examples/example23.ts index d57de7097..360e2071a 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example23.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example23.ts @@ -15,11 +15,11 @@ import { type SlickGroupTotals, } from '@slickgrid-universal/common'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; +import { BindingEventService } from '@slickgrid-universal/binding'; import { ExcelExportService } from '@slickgrid-universal/excel-export'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; import './example23.scss'; -import { BindingEventService } from '@slickgrid-universal/binding'; interface GroceryItem { id: number; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example24.ts b/examples/vite-demo-vanilla-bundle/src/examples/example24.ts index af50ba593..7e21d8a37 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example24.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example24.ts @@ -2,7 +2,7 @@ import { BindingEventService } from '@slickgrid-universal/binding'; import { type Column, Editors, FieldType, type GridOption, SlickEventHandler, } from '@slickgrid-universal/common'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; import './example24.scss'; const NB_ITEMS = 100; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example25.ts b/examples/vite-demo-vanilla-bundle/src/examples/example25.ts index d630f6fcc..b26337e0b 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example25.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example25.ts @@ -18,8 +18,8 @@ import { } from '@slickgrid-universal/common'; import { BindingEventService } from '@slickgrid-universal/binding'; -import { ExampleGridOptions } from './example-grid-options'; -import { type TranslateService } from '../translate.service'; +import { ExampleGridOptions } from './example-grid-options.js'; +import { type TranslateService } from '../translate.service.js'; const NB_ITEMS = 5000; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example26.ts b/examples/vite-demo-vanilla-bundle/src/examples/example26.ts index 015dd16aa..6253752bc 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example26.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example26.ts @@ -4,7 +4,7 @@ import { Aggregators, type Column, FieldType, Filters, type GridOption, type Gro import { GridOdataService, type OdataServiceApi } from '@slickgrid-universal/odata'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; import Data from './data/customers_100.json'; import './example26.scss'; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example27.ts b/examples/vite-demo-vanilla-bundle/src/examples/example27.ts index e8a360ecb..e1662b4a5 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example27.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example27.ts @@ -11,8 +11,8 @@ import { GraphqlService, type GraphqlPaginatedResult, type GraphqlServiceApi, } import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; import { type MultipleSelectOption } from 'multiple-select-vanilla'; -import { ExampleGridOptions } from './example-grid-options'; -import type { TranslateService } from '../translate.service'; +import { ExampleGridOptions } from './example-grid-options.js'; +import type { TranslateService } from '../translate.service.js'; import CustomersData from './data/customers_100.json'; import './example27.scss'; import '../material-styles.scss'; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example28.ts b/examples/vite-demo-vanilla-bundle/src/examples/example28.ts index d5fa43fe0..ee096782b 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example28.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example28.ts @@ -2,7 +2,7 @@ import { BindingEventService } from '@slickgrid-universal/binding'; import { Aggregators, type Column, FieldType, Formatters, type GridOption, type Grouping, type OnRowCountChangedEventArgs, SortComparers, SortDirectionNumber, } from '@slickgrid-universal/common'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; const FETCH_SIZE = 50; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example29.ts b/examples/vite-demo-vanilla-bundle/src/examples/example29.ts index 4756f3f42..c7969dd6f 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example29.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example29.ts @@ -1,9 +1,9 @@ +import { BindingEventService } from '@slickgrid-universal/binding'; import { type Column, Editors, Formatters, type GridOption, SlickGlobalEditorLock } from '@slickgrid-universal/common'; import { Slicker, type SlickVanillaGridBundle } from '@slickgrid-universal/vanilla-bundle'; -import { ExampleGridOptions } from './example-grid-options'; +import { ExampleGridOptions } from './example-grid-options.js'; import './example29.scss'; -import { BindingEventService } from '@slickgrid-universal/binding'; export default class Example29 { private _bindingEventService: BindingEventService; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/example30.ts b/examples/vite-demo-vanilla-bundle/src/examples/example30.ts index dbeec1278..ceca766f3 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/example30.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/example30.ts @@ -11,8 +11,8 @@ import { type SliderRangeOption, } from '@slickgrid-universal/common'; -import { ExampleGridOptions } from './example-grid-options'; -import { CustomPager } from './example30-pager'; +import { ExampleGridOptions } from './example-grid-options.js'; +import { CustomPager } from './example30-pager.js'; const NB_ITEMS = 5000; diff --git a/examples/vite-demo-vanilla-bundle/src/examples/utilities.ts b/examples/vite-demo-vanilla-bundle/src/examples/utilities.ts index 0649ad6c8..0a96280ea 100644 --- a/examples/vite-demo-vanilla-bundle/src/examples/utilities.ts +++ b/examples/vite-demo-vanilla-bundle/src/examples/utilities.ts @@ -1,4 +1,4 @@ -import { Renderer } from '../renderer'; +import { Renderer } from '../renderer.js'; export function loadComponent(containerElement: HTMLDivElement, htmlView: string, vmModule: any, bindings?: any): T | null { if (containerElement) { diff --git a/examples/vite-demo-vanilla-bundle/src/main.ts b/examples/vite-demo-vanilla-bundle/src/main.ts index 3e0a57dea..b27118a73 100644 --- a/examples/vite-demo-vanilla-bundle/src/main.ts +++ b/examples/vite-demo-vanilla-bundle/src/main.ts @@ -1,8 +1,9 @@ -import { Renderer } from './renderer'; import * as SlickerModule from '@slickgrid-universal/vanilla-bundle'; -import { App } from './app'; + +import { App } from './app.js'; import AppView from './app.html?raw'; -import { TranslateService } from './translate.service'; +import { Renderer } from './renderer.js'; +import { TranslateService } from './translate.service.js'; import './styles.scss'; class Main { diff --git a/packages/binding/src/__tests__/binding.helper.spec.ts b/packages/binding/src/__tests__/binding.helper.spec.ts index fb8fa4b00..e7fb87a4a 100644 --- a/packages/binding/src/__tests__/binding.helper.spec.ts +++ b/packages/binding/src/__tests__/binding.helper.spec.ts @@ -1,6 +1,6 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { BindingHelper } from '../binding.helper'; +import { BindingHelper } from '../binding.helper.js'; describe('Binding Helper', () => { let div: HTMLDivElement; diff --git a/packages/binding/src/__tests__/binding.service.spec.ts b/packages/binding/src/__tests__/binding.service.spec.ts index c1f116ec8..84129623f 100644 --- a/packages/binding/src/__tests__/binding.service.spec.ts +++ b/packages/binding/src/__tests__/binding.service.spec.ts @@ -1,6 +1,6 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { BindingService } from '../binding.service'; +import { BindingService } from '../binding.service.js'; describe('Binding Service', () => { let div: HTMLDivElement; diff --git a/packages/binding/src/__tests__/bindingEvent.service.spec.ts b/packages/binding/src/__tests__/bindingEvent.service.spec.ts index efc378986..ba617f3ea 100644 --- a/packages/binding/src/__tests__/bindingEvent.service.spec.ts +++ b/packages/binding/src/__tests__/bindingEvent.service.spec.ts @@ -1,6 +1,6 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { BindingEventService } from '../bindingEvent.service'; +import { BindingEventService } from '../bindingEvent.service.js'; describe('BindingEvent Service', () => { let div: HTMLDivElement; diff --git a/packages/binding/src/binding.helper.ts b/packages/binding/src/binding.helper.ts index 151073140..5d7ca1efd 100644 --- a/packages/binding/src/binding.helper.ts +++ b/packages/binding/src/binding.helper.ts @@ -1,4 +1,4 @@ -import { BindingService } from './binding.service'; +import { BindingService } from './binding.service.js'; export class BindingHelper { private _observers: BindingService[] = []; diff --git a/packages/binding/src/binding.service.ts b/packages/binding/src/binding.service.ts index c3c409049..846d0c21a 100644 --- a/packages/binding/src/binding.service.ts +++ b/packages/binding/src/binding.service.ts @@ -1,4 +1,4 @@ -import type { Binding, BoundedEventWithListener, ElementBinding, ElementBindingWithListener } from './interfaces'; +import type { Binding, BoundedEventWithListener, ElementBinding, ElementBindingWithListener } from './interfaces.js'; /** * Create 2 way Bindings for any variable that are primitive or object types, when it's an object type it will watch for property changes diff --git a/packages/binding/src/bindingEvent.service.ts b/packages/binding/src/bindingEvent.service.ts index 8f9f1595a..3bb5511ed 100644 --- a/packages/binding/src/bindingEvent.service.ts +++ b/packages/binding/src/bindingEvent.service.ts @@ -1,4 +1,4 @@ -import type { ElementEventListener } from './interfaces'; +import type { ElementEventListener } from './interfaces.js'; /** * Create a Service to bind event listeners to DOM elements events, diff --git a/packages/binding/src/index.ts b/packages/binding/src/index.ts index bc72fb64f..bc04babac 100644 --- a/packages/binding/src/index.ts +++ b/packages/binding/src/index.ts @@ -1,4 +1,4 @@ -export * from './binding.helper'; -export * from './binding.service'; -export * from './bindingEvent.service'; -export type * from './interfaces'; +export * from './binding.helper.js'; +export * from './binding.service.js'; +export * from './bindingEvent.service.js'; +export type * from './interfaces.js'; diff --git a/packages/common/src/aggregators/__tests__/avgAggregator.spec.ts b/packages/common/src/aggregators/__tests__/avgAggregator.spec.ts index 1d3947d48..e66e0c55a 100644 --- a/packages/common/src/aggregators/__tests__/avgAggregator.spec.ts +++ b/packages/common/src/aggregators/__tests__/avgAggregator.spec.ts @@ -1,7 +1,7 @@ import { beforeEach, describe, expect, it } from 'vitest'; -import { AvgAggregator } from '../avgAggregator'; -import type { GroupTotals } from '../../interfaces'; +import { AvgAggregator } from '../avgAggregator.js'; +import type { GroupTotals } from '../../interfaces/grouping.interface.js'; describe('avgAggregator', () => { let aggregator: AvgAggregator; diff --git a/packages/common/src/aggregators/__tests__/cloneAggregator.spec.ts b/packages/common/src/aggregators/__tests__/cloneAggregator.spec.ts index 55ac829fc..34d0451e6 100644 --- a/packages/common/src/aggregators/__tests__/cloneAggregator.spec.ts +++ b/packages/common/src/aggregators/__tests__/cloneAggregator.spec.ts @@ -1,6 +1,6 @@ import { beforeEach, describe, expect, it } from 'vitest'; -import { CloneAggregator } from '../cloneAggregator'; +import { CloneAggregator } from '../cloneAggregator.js'; describe('CloneAggregator', () => { let aggregator: CloneAggregator; diff --git a/packages/common/src/aggregators/__tests__/countAggregator.spec.ts b/packages/common/src/aggregators/__tests__/countAggregator.spec.ts index 09a4ba061..34c63bbb7 100644 --- a/packages/common/src/aggregators/__tests__/countAggregator.spec.ts +++ b/packages/common/src/aggregators/__tests__/countAggregator.spec.ts @@ -1,6 +1,6 @@ import { beforeEach, describe, expect, it } from 'vitest'; -import { CountAggregator } from '../countAggregator'; +import { CountAggregator } from '../countAggregator.js'; describe('CountAggregator', () => { let aggregator: CountAggregator; diff --git a/packages/common/src/aggregators/__tests__/distinctAggregator.spec.ts b/packages/common/src/aggregators/__tests__/distinctAggregator.spec.ts index bf22de465..5d6152cc2 100644 --- a/packages/common/src/aggregators/__tests__/distinctAggregator.spec.ts +++ b/packages/common/src/aggregators/__tests__/distinctAggregator.spec.ts @@ -1,6 +1,6 @@ import { beforeEach, describe, expect, it } from 'vitest'; -import { DistinctAggregator } from '../distinctAggregator'; +import { DistinctAggregator } from '../distinctAggregator.js'; describe('disctinctAggregator', () => { let aggregator: DistinctAggregator; diff --git a/packages/common/src/aggregators/__tests__/maxAggregator.spec.ts b/packages/common/src/aggregators/__tests__/maxAggregator.spec.ts index 39c9697e7..430f25eb7 100644 --- a/packages/common/src/aggregators/__tests__/maxAggregator.spec.ts +++ b/packages/common/src/aggregators/__tests__/maxAggregator.spec.ts @@ -1,6 +1,6 @@ import { beforeEach, describe, expect, it } from 'vitest'; -import { MaxAggregator } from '../maxAggregator'; +import { MaxAggregator } from '../maxAggregator.js'; describe('maxAggregator', () => { let aggregator: MaxAggregator; diff --git a/packages/common/src/aggregators/__tests__/minAggregator.spec.ts b/packages/common/src/aggregators/__tests__/minAggregator.spec.ts index 16bef4109..891acedee 100644 --- a/packages/common/src/aggregators/__tests__/minAggregator.spec.ts +++ b/packages/common/src/aggregators/__tests__/minAggregator.spec.ts @@ -1,6 +1,6 @@ import { beforeEach, describe, expect, it } from 'vitest'; -import { MinAggregator } from '../minAggregator'; +import { MinAggregator } from '../minAggregator.js'; describe('minAggregator', () => { let aggregator: MinAggregator; diff --git a/packages/common/src/aggregators/__tests__/sumAggregator.spec.ts b/packages/common/src/aggregators/__tests__/sumAggregator.spec.ts index 2ce041e11..20ed58898 100644 --- a/packages/common/src/aggregators/__tests__/sumAggregator.spec.ts +++ b/packages/common/src/aggregators/__tests__/sumAggregator.spec.ts @@ -1,6 +1,6 @@ import { beforeEach, describe, expect, it } from 'vitest'; -import { SumAggregator } from '../sumAggregator'; +import { SumAggregator } from '../sumAggregator.js'; describe('sumAggregator', () => { let aggregator: SumAggregator; diff --git a/packages/common/src/aggregators/aggregators.index.ts b/packages/common/src/aggregators/aggregators.index.ts index 997918961..16328be73 100644 --- a/packages/common/src/aggregators/aggregators.index.ts +++ b/packages/common/src/aggregators/aggregators.index.ts @@ -1,11 +1,11 @@ -import { AvgAggregator } from './avgAggregator'; -import { CloneAggregator } from './cloneAggregator'; -import { CountAggregator } from './countAggregator'; -import { DistinctAggregator } from './distinctAggregator'; -import { MinAggregator } from './minAggregator'; -import { MaxAggregator } from './maxAggregator'; -import { SumAggregator } from './sumAggregator'; -import type { AggregatorConstructor } from '../interfaces'; +import { AvgAggregator } from './avgAggregator.js'; +import { CloneAggregator } from './cloneAggregator.js'; +import { CountAggregator } from './countAggregator.js'; +import { DistinctAggregator } from './distinctAggregator.js'; +import { MinAggregator } from './minAggregator.js'; +import { MaxAggregator } from './maxAggregator.js'; +import { SumAggregator } from './sumAggregator.js'; +import type { AggregatorConstructor } from '../interfaces/aggregator.interface.js'; /** Provides a list of different Aggregators for the Group Formatter */ export const Aggregators: Record = { diff --git a/packages/common/src/aggregators/avgAggregator.ts b/packages/common/src/aggregators/avgAggregator.ts index d1064911a..f3cf262d5 100644 --- a/packages/common/src/aggregators/avgAggregator.ts +++ b/packages/common/src/aggregators/avgAggregator.ts @@ -1,6 +1,7 @@ import { isNumber } from '@slickgrid-universal/utils'; -import type { Aggregator, GroupTotals } from './../interfaces'; +import type { Aggregator } from './../interfaces/aggregator.interface.js'; +import type { GroupTotals } from './../interfaces/grouping.interface.js'; export class AvgAggregator implements Aggregator { private _isInitialized = false; diff --git a/packages/common/src/aggregators/cloneAggregator.ts b/packages/common/src/aggregators/cloneAggregator.ts index 7b46260d5..f84e03629 100644 --- a/packages/common/src/aggregators/cloneAggregator.ts +++ b/packages/common/src/aggregators/cloneAggregator.ts @@ -1,4 +1,5 @@ -import type { Aggregator, GroupTotals } from './../interfaces'; +import type { Aggregator } from './../interfaces/aggregator.interface.js'; +import type { GroupTotals } from './../interfaces/grouping.interface.js'; export class CloneAggregator implements Aggregator { private _isInitialized = false; diff --git a/packages/common/src/aggregators/countAggregator.ts b/packages/common/src/aggregators/countAggregator.ts index 44aa72781..547523f6d 100644 --- a/packages/common/src/aggregators/countAggregator.ts +++ b/packages/common/src/aggregators/countAggregator.ts @@ -1,6 +1,7 @@ import { isNumber } from '@slickgrid-universal/utils'; -import type { Aggregator, GroupTotals } from './../interfaces'; +import type { Aggregator } from './../interfaces/aggregator.interface.js'; +import type { GroupTotals } from './../interfaces/grouping.interface.js'; export class CountAggregator implements Aggregator { private _isInitialized = false; diff --git a/packages/common/src/aggregators/distinctAggregator.ts b/packages/common/src/aggregators/distinctAggregator.ts index be5f57407..4d4da61dc 100644 --- a/packages/common/src/aggregators/distinctAggregator.ts +++ b/packages/common/src/aggregators/distinctAggregator.ts @@ -1,4 +1,5 @@ -import type { Aggregator, GroupTotals } from './../interfaces'; +import type { Aggregator } from './../interfaces/aggregator.interface.js'; +import type { GroupTotals } from './../interfaces/grouping.interface.js'; export class DistinctAggregator implements Aggregator { private _isInitialized = false; diff --git a/packages/common/src/aggregators/index.ts b/packages/common/src/aggregators/index.ts index 39427f380..b991ff836 100644 --- a/packages/common/src/aggregators/index.ts +++ b/packages/common/src/aggregators/index.ts @@ -1,8 +1,8 @@ -export * from './sumAggregator'; -export * from './maxAggregator'; -export * from './distinctAggregator'; -export * from './minAggregator'; -export * from './countAggregator'; -export * from './cloneAggregator'; -export * from './avgAggregator'; -export * from './aggregators.index'; +export * from './sumAggregator.js'; +export * from './maxAggregator.js'; +export * from './distinctAggregator.js'; +export * from './minAggregator.js'; +export * from './countAggregator.js'; +export * from './cloneAggregator.js'; +export * from './avgAggregator.js'; +export * from './aggregators.index.js'; diff --git a/packages/common/src/aggregators/maxAggregator.ts b/packages/common/src/aggregators/maxAggregator.ts index d1312ab79..9797e2ff4 100644 --- a/packages/common/src/aggregators/maxAggregator.ts +++ b/packages/common/src/aggregators/maxAggregator.ts @@ -1,6 +1,7 @@ import { isNumber } from '@slickgrid-universal/utils'; -import type { Aggregator, GroupTotals } from './../interfaces'; +import type { Aggregator } from './../interfaces/aggregator.interface.js'; +import type { GroupTotals } from './../interfaces/grouping.interface.js'; export class MaxAggregator implements Aggregator { private _isInitialized = false; diff --git a/packages/common/src/aggregators/minAggregator.ts b/packages/common/src/aggregators/minAggregator.ts index 944590664..40246d7cb 100644 --- a/packages/common/src/aggregators/minAggregator.ts +++ b/packages/common/src/aggregators/minAggregator.ts @@ -1,6 +1,7 @@ import { isNumber } from '@slickgrid-universal/utils'; -import type { Aggregator, GroupTotals } from './../interfaces'; +import type { Aggregator } from './../interfaces/aggregator.interface.js'; +import type { GroupTotals } from './../interfaces/grouping.interface.js'; export class MinAggregator implements Aggregator { private _isInitialized = false; diff --git a/packages/common/src/aggregators/sumAggregator.ts b/packages/common/src/aggregators/sumAggregator.ts index cd6c5e3ad..8448028c3 100644 --- a/packages/common/src/aggregators/sumAggregator.ts +++ b/packages/common/src/aggregators/sumAggregator.ts @@ -1,6 +1,7 @@ import { isNumber } from '@slickgrid-universal/utils'; -import type { Aggregator, GroupTotals } from './../interfaces'; +import type { Aggregator } from './../interfaces/aggregator.interface.js'; +import type { GroupTotals } from './../interfaces/grouping.interface.js'; export class SumAggregator implements Aggregator { private _isInitialized = false; diff --git a/packages/common/src/commonEditorFilter/commonEditorFilterUtils.ts b/packages/common/src/commonEditorFilter/commonEditorFilterUtils.ts index 7f3d7d7f3..9459e2ef7 100644 --- a/packages/common/src/commonEditorFilter/commonEditorFilterUtils.ts +++ b/packages/common/src/commonEditorFilter/commonEditorFilterUtils.ts @@ -4,9 +4,9 @@ import { dequal } from 'dequal/lite'; import type VanillaCalendar from 'vanilla-calendar-pro'; import type { IOptions, ISelected, FormatDateString } from 'vanilla-calendar-pro/types'; -import type { AutocompleterOption, Column, ColumnEditor, ColumnFilter } from '../interfaces/index'; -import { FieldType } from '../enums'; -import { formatDateByFieldType, mapTempoDateFormatWithFieldType, tryParseDate } from '../services/dateUtils'; +import { FieldType } from '../enums/fieldType.enum.js'; +import type { AutocompleterOption, Column, ColumnEditor, ColumnFilter } from '../interfaces/index.js'; +import { formatDateByFieldType, mapTempoDateFormatWithFieldType, tryParseDate } from '../services/dateUtils.js'; /** * add loading class ".slick-autocomplete-loading" to the Kraaden Autocomplete input element diff --git a/packages/common/src/commonEditorFilter/index.ts b/packages/common/src/commonEditorFilter/index.ts index c30220474..31c5ab65e 100644 --- a/packages/common/src/commonEditorFilter/index.ts +++ b/packages/common/src/commonEditorFilter/index.ts @@ -1 +1 @@ -export * from './commonEditorFilterUtils'; \ No newline at end of file +export * from './commonEditorFilterUtils.js'; \ No newline at end of file diff --git a/packages/common/src/constants.ts b/packages/common/src/constants.ts index a4d10724e..711320783 100644 --- a/packages/common/src/constants.ts +++ b/packages/common/src/constants.ts @@ -1,4 +1,4 @@ -import type { Locale } from './interfaces/locale.interface'; +import type { Locale } from './interfaces/locale.interface.js'; export class Constants { static readonly locales: Locale = { diff --git a/packages/common/src/core/__tests__/slickCore.spec.ts b/packages/common/src/core/__tests__/slickCore.spec.ts index e8019459c..c190b26ba 100644 --- a/packages/common/src/core/__tests__/slickCore.spec.ts +++ b/packages/common/src/core/__tests__/slickCore.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, vi } from 'vitest'; import { type BasePubSubService } from '@slickgrid-universal/event-pub-sub'; -import type { EditController } from '../../interfaces'; -import { SlickEditorLock, SlickEvent, SlickEventData, SlickEventHandler, SlickGroup, SlickGroupTotals, SlickRange, Utils } from '../slickCore'; +import type { EditController } from '../../interfaces/editController.interface.js'; +import { SlickEditorLock, SlickEvent, SlickEventData, SlickEventHandler, SlickGroup, SlickGroupTotals, SlickRange, Utils } from '../slickCore.js'; const pubSubServiceStub = { publish: vi.fn(), diff --git a/packages/common/src/core/__tests__/slickDataView.spec.ts b/packages/common/src/core/__tests__/slickDataView.spec.ts index 5e36b3bef..6af284ba6 100644 --- a/packages/common/src/core/__tests__/slickDataView.spec.ts +++ b/packages/common/src/core/__tests__/slickDataView.spec.ts @@ -1,13 +1,13 @@ import { afterEach, beforeEach, describe, expect, it, test, vi } from 'vitest'; -import { Aggregators } from '../../aggregators'; -import { SortDirectionNumber } from '../../enums'; -import type { GridOption, Grouping } from '../../interfaces'; -import { SortComparers } from '../../sortComparers'; -import { SlickDataView } from '../slickDataview'; -import { SlickGrid } from '../slickGrid'; -import { SlickRowSelectionModel } from '../../extensions/slickRowSelectionModel'; -import { SlickEventData } from '../slickCore'; +import { Aggregators } from '../../aggregators/index.js'; +import { SortDirectionNumber } from '../../enums/sortDirectionNumber.enum.js'; +import type { GridOption, Grouping } from '../../interfaces/index.js'; +import { SortComparers } from '../../sortComparers/index.js'; +import { SlickDataView } from '../slickDataview.js'; +import { SlickGrid } from '../slickGrid.js'; +import { SlickRowSelectionModel } from '../../extensions/slickRowSelectionModel.js'; +import { SlickEventData } from '../slickCore.js'; class FakeAggregator { init() { } diff --git a/packages/common/src/core/__tests__/slickGrid.spec.ts b/packages/common/src/core/__tests__/slickGrid.spec.ts index 7854c93fb..210ed8bf2 100644 --- a/packages/common/src/core/__tests__/slickGrid.spec.ts +++ b/packages/common/src/core/__tests__/slickGrid.spec.ts @@ -2,12 +2,12 @@ import { afterEach, beforeEach, describe, expect, it, test, vi } from 'vitest'; import { type BasePubSubService } from '@slickgrid-universal/event-pub-sub'; import { createDomElement } from '@slickgrid-universal/utils'; -import { AutocompleterEditor, CheckboxEditor, InputEditor, LongTextEditor } from '../../editors'; -import { SlickCellSelectionModel, SlickRowSelectionModel } from '../../extensions'; -import type { Column, Editor, FormatterResultWithHtml, FormatterResultWithText, GridOption, EditCommand } from '../../interfaces'; -import { SlickEventData, SlickGlobalEditorLock } from '../slickCore'; -import { SlickDataView } from '../slickDataview'; -import { SlickGrid } from '../slickGrid'; +import { AutocompleterEditor, CheckboxEditor, InputEditor, LongTextEditor } from '../../editors/index.js'; +import { SlickCellSelectionModel, SlickRowSelectionModel } from '../../extensions/index.js'; +import type { Column, Editor, FormatterResultWithHtml, FormatterResultWithText, GridOption, EditCommand } from '../../interfaces/index.js'; +import { SlickEventData, SlickGlobalEditorLock } from '../slickCore.js'; +import { SlickDataView } from '../slickDataview.js'; +import { SlickGrid } from '../slickGrid.js'; vi.useFakeTimers(); diff --git a/packages/common/src/core/__tests__/slickInteractions.spec.ts b/packages/common/src/core/__tests__/slickInteractions.spec.ts index d4efae44e..668c0d146 100644 --- a/packages/common/src/core/__tests__/slickInteractions.spec.ts +++ b/packages/common/src/core/__tests__/slickInteractions.spec.ts @@ -1,6 +1,6 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { Draggable, MouseWheel, Resizable } from '../slickInteractions'; +import { Draggable, MouseWheel, Resizable } from '../slickInteractions.js'; describe('Draggable class', () => { let containerElement: HTMLDivElement; diff --git a/packages/common/src/core/index.ts b/packages/common/src/core/index.ts index 881e5d1e5..d317e4de2 100644 --- a/packages/common/src/core/index.ts +++ b/packages/common/src/core/index.ts @@ -1,4 +1,4 @@ -export * from './slickCore'; -export * from './slickDataview'; -export * from './slickGrid'; -export * from './slickInteractions'; +export * from './slickCore.js'; +export * from './slickDataview.js'; +export * from './slickGrid.js'; +export * from './slickInteractions.js'; diff --git a/packages/common/src/core/slickCore.ts b/packages/common/src/core/slickCore.ts index 2705bfdd8..04e866a34 100644 --- a/packages/common/src/core/slickCore.ts +++ b/packages/common/src/core/slickCore.ts @@ -5,8 +5,8 @@ * @module Core * @namespace Slick */ -import type { MergeTypes } from '../enums/index'; -import type { CSSStyleDeclarationWritable, EditController } from '../interfaces'; +import type { MergeTypes } from '../enums/index.js'; +import type { CSSStyleDeclarationWritable, EditController } from '../interfaces/index.js'; export type Handler = (e: SlickEventData, args: ArgType) => void; diff --git a/packages/common/src/core/slickDataview.ts b/packages/common/src/core/slickDataview.ts index 5f291b042..ed79b11b4 100755 --- a/packages/common/src/core/slickDataview.ts +++ b/packages/common/src/core/slickDataview.ts @@ -1,6 +1,6 @@ import { type AnyFunction, extend, getFunctionDetails, isDefined } from '@slickgrid-universal/utils'; -import { SlickGroupItemMetadataProvider } from '../extensions/slickGroupItemMetadataProvider'; +import { SlickGroupItemMetadataProvider } from '../extensions/slickGroupItemMetadataProvider.js'; import type { Aggregator, DataViewHints, @@ -15,8 +15,8 @@ import type { OnSelectedRowIdsChangedEventArgs, OnSetItemsCalledEventArgs, PagingInfo -} from '../interfaces'; -import type { CssStyleHash, CustomDataView } from '../interfaces/gridOption.interface'; +} from '../interfaces/index.js'; +import type { CssStyleHash, CustomDataView } from '../interfaces/gridOption.interface.js'; import { type BasePubSub, SlickEvent, @@ -24,8 +24,8 @@ import { SlickGroup, SlickGroupTotals, type SlickNonDataItem, -} from './slickCore'; -import type { SlickGrid } from './slickGrid'; +} from './slickCore.js'; +import type { SlickGrid } from './slickGrid.js'; export interface DataViewOption { /** diff --git a/packages/common/src/core/slickGrid.ts b/packages/common/src/core/slickGrid.ts index caa1b8393..cc2d1f3ca 100755 --- a/packages/common/src/core/slickGrid.ts +++ b/packages/common/src/core/slickGrid.ts @@ -24,9 +24,9 @@ import { SlickEventData, SlickRange, Utils, -} from './slickCore'; -import { Draggable, MouseWheel, Resizable } from './slickInteractions'; -import type { SelectionModel } from '../enums/index'; +} from './slickCore.js'; +import { Draggable, MouseWheel, Resizable } from './slickInteractions.js'; +import type { SelectionModel } from '../enums/index.js'; import type { CellViewportRange, Column, @@ -92,8 +92,8 @@ import type { SingleColumnSort, SlickPlugin, ElementPosition, -} from '../interfaces'; -import type { SlickDataView } from './slickDataview'; +} from '../interfaces/index.js'; +import type { SlickDataView } from './slickDataview.js'; /** * @license diff --git a/packages/common/src/core/slickInteractions.ts b/packages/common/src/core/slickInteractions.ts index 7ee990ab2..25c709a49 100644 --- a/packages/common/src/core/slickInteractions.ts +++ b/packages/common/src/core/slickInteractions.ts @@ -1,6 +1,6 @@ import { windowScrollPosition } from '@slickgrid-universal/utils'; -import type { DragItem, DragPosition, DraggableOption, MouseWheelOption, ResizableOption } from '../interfaces/index'; +import type { DragItem, DragPosition, DraggableOption, MouseWheelOption, ResizableOption } from '../interfaces/index.js'; /*** * Interactions, add basic behaviors to any element. diff --git a/packages/common/src/editorValidators/floatValidator.ts b/packages/common/src/editorValidators/floatValidator.ts index 3f67af04e..7b94ae750 100644 --- a/packages/common/src/editorValidators/floatValidator.ts +++ b/packages/common/src/editorValidators/floatValidator.ts @@ -1,6 +1,6 @@ -import { Constants } from '../constants'; -import type { EditorValidationResult } from '../interfaces/editorValidationResult.interface'; -import type { EditorValidator } from '../interfaces/editorValidator.interface'; +import { Constants } from '../constants.js'; +import type { EditorValidationResult } from '../interfaces/editorValidationResult.interface.js'; +import type { EditorValidator } from '../interfaces/editorValidator.interface.js'; interface FloatValidatorOptions { editorArgs: any; diff --git a/packages/common/src/editorValidators/index.ts b/packages/common/src/editorValidators/index.ts index f2d11a399..2259780d9 100644 --- a/packages/common/src/editorValidators/index.ts +++ b/packages/common/src/editorValidators/index.ts @@ -1,4 +1,4 @@ -export * from './floatValidator'; -export * from './integerValidator'; -export * from './sliderValidator'; -export * from './textValidator'; +export * from './floatValidator.js'; +export * from './integerValidator.js'; +export * from './sliderValidator.js'; +export * from './textValidator.js'; diff --git a/packages/common/src/editorValidators/integerValidator.ts b/packages/common/src/editorValidators/integerValidator.ts index 7ac79f0a2..1890d9964 100644 --- a/packages/common/src/editorValidators/integerValidator.ts +++ b/packages/common/src/editorValidators/integerValidator.ts @@ -1,6 +1,6 @@ -import { Constants } from '../constants'; -import type { EditorValidationResult } from '../interfaces/editorValidationResult.interface'; -import type { EditorValidator } from '../interfaces/editorValidator.interface'; +import { Constants } from '../constants.js'; +import type { EditorValidationResult } from '../interfaces/editorValidationResult.interface.js'; +import type { EditorValidator } from '../interfaces/editorValidator.interface.js'; interface IntegerValidatorOptions { editorArgs: any; diff --git a/packages/common/src/editorValidators/sliderValidator.ts b/packages/common/src/editorValidators/sliderValidator.ts index 11974c7ac..b33e92b2b 100644 --- a/packages/common/src/editorValidators/sliderValidator.ts +++ b/packages/common/src/editorValidators/sliderValidator.ts @@ -1,6 +1,6 @@ -import { Constants } from '../constants'; -import type { EditorValidationResult } from '../interfaces/editorValidationResult.interface'; -import type { EditorValidator } from '../interfaces/editorValidator.interface'; +import { Constants } from '../constants.js'; +import type { EditorValidationResult } from '../interfaces/editorValidationResult.interface.js'; +import type { EditorValidator } from '../interfaces/editorValidator.interface.js'; interface SliderValidatorOptions { editorArgs: any; diff --git a/packages/common/src/editorValidators/textValidator.ts b/packages/common/src/editorValidators/textValidator.ts index 45c77431b..d7df05096 100644 --- a/packages/common/src/editorValidators/textValidator.ts +++ b/packages/common/src/editorValidators/textValidator.ts @@ -1,6 +1,6 @@ -import { Constants } from '../constants'; -import type { EditorValidationResult } from '../interfaces/editorValidationResult.interface'; -import type { EditorValidator } from '../interfaces/editorValidator.interface'; +import { Constants } from '../constants.js'; +import type { EditorValidationResult } from '../interfaces/editorValidationResult.interface.js'; +import type { EditorValidator } from '../interfaces/editorValidator.interface.js'; interface TextValidatorOptions { editorArgs: any; diff --git a/packages/common/src/editors/__tests__/autocompleterEditor.spec.ts b/packages/common/src/editors/__tests__/autocompleterEditor.spec.ts index eddedbe2e..b33844b32 100644 --- a/packages/common/src/editors/__tests__/autocompleterEditor.spec.ts +++ b/packages/common/src/editors/__tests__/autocompleterEditor.spec.ts @@ -1,11 +1,11 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { Editors } from '../index'; -import { AutocompleterEditor } from '../autocompleterEditor'; -import { FieldType } from '../../enums/index'; -import type { AutocompleterOption, Column, Editor, EditorArguments, GridOption } from '../../interfaces/index'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import { type SlickDataView, SlickEvent, type SlickGrid } from '../../core/index'; +import { Editors } from '../index.js'; +import { AutocompleterEditor } from '../autocompleterEditor.js'; +import { FieldType } from '../../enums/index.js'; +import type { AutocompleterOption, Column, Editor, EditorArguments, GridOption } from '../../interfaces/index.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import { type SlickDataView, SlickEvent, type SlickGrid } from '../../core/index.js'; const containerId = 'demo-container'; diff --git a/packages/common/src/editors/__tests__/checkboxEditor.spec.ts b/packages/common/src/editors/__tests__/checkboxEditor.spec.ts index b55a675f9..49c5bc0fb 100644 --- a/packages/common/src/editors/__tests__/checkboxEditor.spec.ts +++ b/packages/common/src/editors/__tests__/checkboxEditor.spec.ts @@ -1,9 +1,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { Editors } from '../index'; -import { CheckboxEditor } from '../checkboxEditor'; -import type { Column, Editor, EditorArguments, GridOption } from '../../interfaces/index'; -import { SlickEvent, type SlickDataView, type SlickGrid } from '../../core/index'; +import { Editors } from '../index.js'; +import { CheckboxEditor } from '../checkboxEditor.js'; +import type { Column, Editor, EditorArguments, GridOption } from '../../interfaces/index.js'; +import { SlickEvent, type SlickDataView, type SlickGrid } from '../../core/index.js'; const containerId = 'demo-container'; diff --git a/packages/common/src/editors/__tests__/dateEditor.spec.ts b/packages/common/src/editors/__tests__/dateEditor.spec.ts index 1f390a44a..32708055f 100644 --- a/packages/common/src/editors/__tests__/dateEditor.spec.ts +++ b/packages/common/src/editors/__tests__/dateEditor.spec.ts @@ -3,12 +3,12 @@ import { format } from '@formkit/tempo'; import type VanillaCalendar from 'vanilla-calendar-pro'; import type { ISelected } from 'vanilla-calendar-pro/types'; -import { Editors } from '../index'; -import { DateEditor } from '../dateEditor'; -import { FieldType } from '../../enums/index'; -import type { Column, Editor, EditorArguments, GridOption } from '../../interfaces/index'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import { SlickEvent, type SlickDataView, type SlickGrid } from '../../core/index'; +import { Editors } from '../index.js'; +import { DateEditor } from '../dateEditor.js'; +import { FieldType } from '../../enums/index.js'; +import type { Column, Editor, EditorArguments, GridOption } from '../../interfaces/index.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import { SlickEvent, type SlickDataView, type SlickGrid } from '../../core/index.js'; const dataViewStub = { refresh: vi.fn(), @@ -152,11 +152,16 @@ describe('DateEditor', () => { }); it('should stop propagation on allowInput when hitting left or right arrow and home and end keys', () => { - editor = new DateEditor({ ...editorArguments, - column: { ...editorArguments.column, - editor: { ...editorArguments.column.editor, + editor = new DateEditor({ + ...editorArguments, + column: { + ...editorArguments.column, + editor: { + ...editorArguments.column.editor, editorOptions: { ...editorArguments.column?.editor?.editorOptions, allowInput: true } - }}}); + } + } + }); let event = new KeyboardEvent('keydown', { key: 'ArrowLeft' }); let propagationSpy = vi.spyOn(event, 'stopImmediatePropagation'); @@ -308,10 +313,14 @@ describe('DateEditor', () => { it('should return True when the last key was enter and alwaysSaveOnEnterKey is active', () => { mockItemData = { id: 1, startDate: '2001-01-02T11:02:02.000Z', isActive: true }; - editor = new DateEditor({...editorArguments, - column: { ...mockColumn, editor: { ...editorArguments.column.editor, alwaysSaveOnEnterKey: true, - editorOptions: { ...editorArguments.column.editor?.editorOptions, allowInput: true} - } } + editor = new DateEditor({ + ...editorArguments, + column: { + ...mockColumn, editor: { + ...editorArguments.column.editor, alwaysSaveOnEnterKey: true, + editorOptions: { ...editorArguments.column.editor?.editorOptions, allowInput: true } + } + } }); const event = new KeyboardEvent('keydown', { key: 'Enter' }); vi.runAllTimers(); diff --git a/packages/common/src/editors/__tests__/dualInputEditor.spec.ts b/packages/common/src/editors/__tests__/dualInputEditor.spec.ts index 08ca8f443..7e67da69e 100644 --- a/packages/common/src/editors/__tests__/dualInputEditor.spec.ts +++ b/packages/common/src/editors/__tests__/dualInputEditor.spec.ts @@ -1,9 +1,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { Editors } from '../index'; -import { DualInputEditor } from '../dualInputEditor'; -import type { Column, ColumnEditorDualInput, Editor, EditorArguments, GridOption } from '../../interfaces/index'; -import { SlickEvent, type SlickDataView, type SlickGrid } from '../../core/index'; +import { Editors } from '../index.js'; +import { DualInputEditor } from '../dualInputEditor.js'; +import type { Column, ColumnEditorDualInput, Editor, EditorArguments, GridOption } from '../../interfaces/index.js'; +import { SlickEvent, type SlickDataView, type SlickGrid } from '../../core/index.js'; const containerId = 'demo-container'; diff --git a/packages/common/src/editors/__tests__/floatEditor.spec.ts b/packages/common/src/editors/__tests__/floatEditor.spec.ts index 0bb4f1506..ef7731dcd 100644 --- a/packages/common/src/editors/__tests__/floatEditor.spec.ts +++ b/packages/common/src/editors/__tests__/floatEditor.spec.ts @@ -1,9 +1,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { Editors } from '../index'; -import { FloatEditor } from '../floatEditor'; -import type { Column, Editor, EditorArguments, GridOption } from '../../interfaces/index'; -import { SlickEvent, type SlickDataView, type SlickGrid } from '../../core/index'; +import { Editors } from '../index.js'; +import { FloatEditor } from '../floatEditor.js'; +import type { Column, Editor, EditorArguments, GridOption } from '../../interfaces/index.js'; +import { SlickEvent, type SlickDataView, type SlickGrid } from '../../core/index.js'; const containerId = 'demo-container'; diff --git a/packages/common/src/editors/__tests__/inputEditor.spec.ts b/packages/common/src/editors/__tests__/inputEditor.spec.ts index 8d7ad95c0..8fce5a9d4 100644 --- a/packages/common/src/editors/__tests__/inputEditor.spec.ts +++ b/packages/common/src/editors/__tests__/inputEditor.spec.ts @@ -1,9 +1,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { Editors } from '../index'; -import { InputEditor } from '../inputEditor'; -import type { Column, Editor, EditorArguments, GridOption } from '../../interfaces/index'; -import { SlickEvent, type SlickDataView, type SlickGrid } from '../../core/index'; +import { Editors } from '../index.js'; +import { InputEditor } from '../inputEditor.js'; +import type { Column, Editor, EditorArguments, GridOption } from '../../interfaces/index.js'; +import { SlickEvent, type SlickDataView, type SlickGrid } from '../../core/index.js'; vi.useFakeTimers(); diff --git a/packages/common/src/editors/__tests__/inputPasswordEditor.spec.ts b/packages/common/src/editors/__tests__/inputPasswordEditor.spec.ts index e1d90df49..921ba7cba 100644 --- a/packages/common/src/editors/__tests__/inputPasswordEditor.spec.ts +++ b/packages/common/src/editors/__tests__/inputPasswordEditor.spec.ts @@ -1,9 +1,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { Editors } from '../index'; -import { InputPasswordEditor } from '../inputPasswordEditor'; -import type { Column, Editor, EditorArguments, GridOption } from '../../interfaces/index'; -import { SlickEvent, type SlickDataView, type SlickGrid } from '../../core/index'; +import { Editors } from '../index.js'; +import { InputPasswordEditor } from '../inputPasswordEditor.js'; +import type { Column, Editor, EditorArguments, GridOption } from '../../interfaces/index.js'; +import { SlickEvent, type SlickDataView, type SlickGrid } from '../../core/index.js'; vi.useFakeTimers(); diff --git a/packages/common/src/editors/__tests__/integerEditor.spec.ts b/packages/common/src/editors/__tests__/integerEditor.spec.ts index e45deaf64..1a9122e2f 100644 --- a/packages/common/src/editors/__tests__/integerEditor.spec.ts +++ b/packages/common/src/editors/__tests__/integerEditor.spec.ts @@ -1,9 +1,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { Editors } from '../index'; -import { IntegerEditor } from '../integerEditor'; -import type { Column, Editor, EditorArguments, GridOption } from '../../interfaces/index'; -import { SlickEvent, type SlickDataView, type SlickGrid } from '../../core/index'; +import { Editors } from '../index.js'; +import { IntegerEditor } from '../integerEditor.js'; +import type { Column, Editor, EditorArguments, GridOption } from '../../interfaces/index.js'; +import { SlickEvent, type SlickDataView, type SlickGrid } from '../../core/index.js'; const containerId = 'demo-container'; diff --git a/packages/common/src/editors/__tests__/longTextEditor.spec.ts b/packages/common/src/editors/__tests__/longTextEditor.spec.ts index 9c1bc9a85..0b181d17e 100644 --- a/packages/common/src/editors/__tests__/longTextEditor.spec.ts +++ b/packages/common/src/editors/__tests__/longTextEditor.spec.ts @@ -6,11 +6,11 @@ vi.mock('@slickgrid-universal/utils', async (importOriginal) => ({ getOffset: vi.fn(), })); -import { Editors } from '../index'; -import { LongTextEditor } from '../longTextEditor'; -import type { Column, Editor, EditorArguments, LongTextEditorOption, GridOption } from '../../interfaces/index'; -import { SlickEvent, type SlickDataView, type SlickGrid } from '../../core/index'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; +import { Editors } from '../index.js'; +import { LongTextEditor } from '../longTextEditor.js'; +import type { Column, Editor, EditorArguments, LongTextEditorOption, GridOption } from '../../interfaces/index.js'; +import { SlickEvent, type SlickDataView, type SlickGrid } from '../../core/index.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; import { getOffset } from '@slickgrid-universal/utils'; const containerId = 'demo-container'; diff --git a/packages/common/src/editors/__tests__/multipleSelectEditor.spec.ts b/packages/common/src/editors/__tests__/multipleSelectEditor.spec.ts index bbc41c5a7..6063e031a 100644 --- a/packages/common/src/editors/__tests__/multipleSelectEditor.spec.ts +++ b/packages/common/src/editors/__tests__/multipleSelectEditor.spec.ts @@ -3,12 +3,12 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; // import 3rd party lib multiple-select for the tests import 'multiple-select-vanilla'; -import { Editors } from '../index'; -import { MultipleSelectEditor } from '../multipleSelectEditor'; -import type { Column, Editor, EditorArguments, GridOption } from '../../interfaces/index'; -import type { SlickDataView } from '../../core'; -import type { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import { type SlickGrid } from '../../core/index'; +import { Editors } from '../index.js'; +import { MultipleSelectEditor } from '../multipleSelectEditor.js'; +import type { Column, Editor, EditorArguments, GridOption } from '../../interfaces/index.js'; +import type { SlickDataView } from '../../core/slickDataview.js'; +import type { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import { type SlickGrid } from '../../core/index.js'; const containerId = 'demo-container'; diff --git a/packages/common/src/editors/__tests__/selectEditor.spec.ts b/packages/common/src/editors/__tests__/selectEditor.spec.ts index bb5f6cd19..2c2ea322c 100644 --- a/packages/common/src/editors/__tests__/selectEditor.spec.ts +++ b/packages/common/src/editors/__tests__/selectEditor.spec.ts @@ -4,13 +4,13 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import 'multiple-select-vanilla'; import type { MultipleSelectOption } from 'multiple-select-vanilla'; -import { SlickEvent, type SlickDataView } from '../../core/index'; -import { Editors } from '../index'; -import { SelectEditor } from '../selectEditor'; -import { FieldType, OperatorType } from '../../enums/index'; -import type { Column, Editor, EditorArguments, GridOption } from '../../interfaces/index'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import { type SlickGrid } from '../../core/index'; +import { SlickEvent, type SlickDataView } from '../../core/index.js'; +import { Editors } from '../index.js'; +import { SelectEditor } from '../selectEditor.js'; +import { FieldType, OperatorType } from '../../enums/index.js'; +import type { Column, Editor, EditorArguments, GridOption } from '../../interfaces/index.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import { type SlickGrid } from '../../core/index.js'; const containerId = 'demo-container'; diff --git a/packages/common/src/editors/__tests__/singleSelectEditor.spec.ts b/packages/common/src/editors/__tests__/singleSelectEditor.spec.ts index 33e236264..c56dd6d89 100644 --- a/packages/common/src/editors/__tests__/singleSelectEditor.spec.ts +++ b/packages/common/src/editors/__tests__/singleSelectEditor.spec.ts @@ -3,11 +3,11 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; // import 3rd party lib multiple-select for the tests import 'multiple-select-vanilla'; -import { Editors } from '../index'; -import { SingleSelectEditor } from '../singleSelectEditor'; -import type { Column, Editor, EditorArguments, GridOption } from '../../interfaces/index'; -import type { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import type { SlickDataView, SlickGrid } from '../../core'; +import { Editors } from '../index.js'; +import { SingleSelectEditor } from '../singleSelectEditor.js'; +import type { Column, Editor, EditorArguments, GridOption } from '../../interfaces/index.js'; +import type { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import type { SlickDataView, SlickGrid } from '../../core/index.js'; const containerId = 'demo-container'; diff --git a/packages/common/src/editors/__tests__/sliderEditor.spec.ts b/packages/common/src/editors/__tests__/sliderEditor.spec.ts index 1e3c2777f..f0640f9fa 100644 --- a/packages/common/src/editors/__tests__/sliderEditor.spec.ts +++ b/packages/common/src/editors/__tests__/sliderEditor.spec.ts @@ -1,9 +1,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { Editors } from '../index'; -import { SliderEditor } from '../sliderEditor'; -import type { Column, Editor, EditorArguments, GridOption, SliderOption } from '../../interfaces/index'; -import { SlickEvent, type SlickDataView, type SlickGrid } from '../../core/index'; +import { Editors } from '../index.js'; +import { SliderEditor } from '../sliderEditor.js'; +import type { Column, Editor, EditorArguments, GridOption, SliderOption } from '../../interfaces/index.js'; +import { SlickEvent, type SlickDataView, type SlickGrid } from '../../core/index.js'; vi.useFakeTimers(); diff --git a/packages/common/src/editors/autocompleterEditor.ts b/packages/common/src/editors/autocompleterEditor.ts index 0fb26c853..0b2d455c7 100644 --- a/packages/common/src/editors/autocompleterEditor.ts +++ b/packages/common/src/editors/autocompleterEditor.ts @@ -3,8 +3,8 @@ import type { AutocompleteItem, AutocompleteResult, AutocompleteSettings } from import { BindingEventService } from '@slickgrid-universal/binding'; import { classNameToList, createDomElement, isObject, isPrimitiveValue, setDeepValue, toKebabCase } from '@slickgrid-universal/utils'; -import { Constants } from './../constants'; -import { FieldType } from '../enums/index'; +import { Constants } from './../constants.js'; +import { FieldType } from '../enums/index.js'; import type { AutocompleterOption, AutocompleteSearchItem, @@ -19,12 +19,12 @@ import type { EditorValidationResult, GridOption, Locale, -} from '../interfaces/index'; -import { textValidator } from '../editorValidators/textValidator'; -import { addAutocompleteLoadingByOverridingFetch } from '../commonEditorFilter'; -import { findOrDefault, getDescendantProperty, } from '../services/utilities'; -import type { TranslaterService } from '../services/translater.service'; -import { SlickEventData, type SlickGrid } from '../core/index'; +} from '../interfaces/index.js'; +import { textValidator } from '../editorValidators/textValidator.js'; +import { addAutocompleteLoadingByOverridingFetch } from '../commonEditorFilter/commonEditorFilterUtils.js'; +import { findOrDefault, getDescendantProperty, } from '../services/utilities.js'; +import type { TranslaterService } from '../services/translater.service.js'; +import { SlickEventData, type SlickGrid } from '../core/index.js'; // minimum length of chars to type before starting to start querying const MIN_LENGTH = 3; diff --git a/packages/common/src/editors/checkboxEditor.ts b/packages/common/src/editors/checkboxEditor.ts index d9f6c0b10..889926b8d 100644 --- a/packages/common/src/editors/checkboxEditor.ts +++ b/packages/common/src/editors/checkboxEditor.ts @@ -1,10 +1,10 @@ import { BindingEventService } from '@slickgrid-universal/binding'; import { createDomElement, setDeepValue, toSentenceCase } from '@slickgrid-universal/utils'; -import { Constants } from './../constants'; -import type { Column, ColumnEditor, CompositeEditorOption, Editor, EditorArguments, EditorValidator, EditorValidationResult, GridOption } from './../interfaces/index'; -import { getDescendantProperty, } from '../services/utilities'; -import { SlickEventData, type SlickGrid } from '../core/index'; +import { Constants } from './../constants.js'; +import type { Column, ColumnEditor, CompositeEditorOption, Editor, EditorArguments, EditorValidator, EditorValidationResult, GridOption } from './../interfaces/index.js'; +import { getDescendantProperty, } from '../services/utilities.js'; +import { SlickEventData, type SlickGrid } from '../core/index.js'; /* * An example of a 'detached' editor. diff --git a/packages/common/src/editors/dateEditor.ts b/packages/common/src/editors/dateEditor.ts index 404c45efb..b3b085a67 100644 --- a/packages/common/src/editors/dateEditor.ts +++ b/packages/common/src/editors/dateEditor.ts @@ -4,8 +4,8 @@ import { createDomElement, emptyElement, extend, setDeepValue } from '@slickgrid import VanillaCalendar from 'vanilla-calendar-pro'; import type { FormatDateString, IOptions } from 'vanilla-calendar-pro/types'; -import { Constants } from './../constants'; -import { FieldType } from '../enums/index'; +import { Constants } from './../constants.js'; +import { FieldType } from '../enums/index.js'; import type { Column, ColumnEditor, @@ -16,12 +16,12 @@ import type { EditorValidationResult, GridOption, VanillaCalendarOption, -} from './../interfaces/index'; -import { getDescendantProperty, } from './../services/utilities'; -import type { TranslaterService } from '../services/translater.service'; -import { SlickEventData, type SlickGrid } from '../core/index'; -import { setPickerDates } from '../commonEditorFilter'; -import { formatDateByFieldType, mapTempoDateFormatWithFieldType } from '../services/dateUtils'; +} from './../interfaces/index.js'; +import { getDescendantProperty, } from './../services/utilities.js'; +import type { TranslaterService } from '../services/translater.service.js'; +import { SlickEventData, type SlickGrid } from '../core/index.js'; +import { setPickerDates } from '../commonEditorFilter/commonEditorFilterUtils.js'; +import { formatDateByFieldType, mapTempoDateFormatWithFieldType } from '../services/dateUtils.js'; /* * An example of a date picker editor using Vanilla-Calendar-Pro @@ -210,7 +210,7 @@ export class DateEditor implements Editor { this._isValueTouched = true; this._lastInputKeyEvent = event; - if (event.key === 'ArrowLeft' || event.key === 'ArrowRight' || event.key === "Home" || event.key === "End") { + if (event.key === 'ArrowLeft' || event.key === 'ArrowRight' || event.key === "Home" || event.key === "End") { event.stopImmediatePropagation(); } }) as EventListener); @@ -364,7 +364,7 @@ export class DateEditor implements Editor { const lastEventKey = this._lastInputKeyEvent?.key; if (this.columnEditor.editorOptions?.allowInput === true && - this.columnEditor?.alwaysSaveOnEnterKey && lastEventKey === 'Enter') { + this.columnEditor?.alwaysSaveOnEnterKey && lastEventKey === 'Enter') { return true; } diff --git a/packages/common/src/editors/dualInputEditor.ts b/packages/common/src/editors/dualInputEditor.ts index 2329ed495..4b0453f6b 100644 --- a/packages/common/src/editors/dualInputEditor.ts +++ b/packages/common/src/editors/dualInputEditor.ts @@ -12,10 +12,10 @@ import type { EditorValidator, EditorValidationResult, GridOption, -} from '../interfaces/index'; -import { getDescendantProperty } from '../services/utilities'; -import { floatValidator, integerValidator, textValidator } from '../editorValidators'; -import { SlickEventData, SlickEventHandler, type SlickGrid } from '../core'; +} from '../interfaces/index.js'; +import { getDescendantProperty } from '../services/utilities.js'; +import { floatValidator, integerValidator, textValidator } from '../editorValidators/index.js'; +import { SlickEventData, SlickEventHandler, type SlickGrid } from '../core/index.js'; /* * An example of a 'detached' editor. diff --git a/packages/common/src/editors/editors.index.ts b/packages/common/src/editors/editors.index.ts index fad65fbe4..699223d28 100644 --- a/packages/common/src/editors/editors.index.ts +++ b/packages/common/src/editors/editors.index.ts @@ -1,16 +1,16 @@ -import type { EditorConstructor } from '../interfaces'; -import { AutocompleterEditor } from './autocompleterEditor'; -import { CheckboxEditor } from './checkboxEditor'; -import { DateEditor } from './dateEditor'; -import { DualInputEditor } from './dualInputEditor'; -import { FloatEditor } from './floatEditor'; -import { InputEditor } from './inputEditor'; -import { InputPasswordEditor } from './inputPasswordEditor'; -import { IntegerEditor } from './integerEditor'; -import { LongTextEditor } from './longTextEditor'; -import { MultipleSelectEditor } from './multipleSelectEditor'; -import { SingleSelectEditor } from './singleSelectEditor'; -import { SliderEditor } from './sliderEditor'; +import type { EditorConstructor } from '../interfaces/editor.interface.js'; +import { AutocompleterEditor } from './autocompleterEditor.js'; +import { CheckboxEditor } from './checkboxEditor.js'; +import { DateEditor } from './dateEditor.js'; +import { DualInputEditor } from './dualInputEditor.js'; +import { FloatEditor } from './floatEditor.js'; +import { InputEditor } from './inputEditor.js'; +import { InputPasswordEditor } from './inputPasswordEditor.js'; +import { IntegerEditor } from './integerEditor.js'; +import { LongTextEditor } from './longTextEditor.js'; +import { MultipleSelectEditor } from './multipleSelectEditor.js'; +import { SingleSelectEditor } from './singleSelectEditor.js'; +import { SliderEditor } from './sliderEditor.js'; export const Editors: Record = { /** Autocompleter Editor (using https://github.com/kraaden/autocomplete) */ diff --git a/packages/common/src/editors/floatEditor.ts b/packages/common/src/editors/floatEditor.ts index fbd2edb19..23e84b227 100644 --- a/packages/common/src/editors/floatEditor.ts +++ b/packages/common/src/editors/floatEditor.ts @@ -1,7 +1,7 @@ -import type { EditorArguments, EditorValidationResult } from '../interfaces/index'; -import { floatValidator } from '../editorValidators/floatValidator'; -import { InputEditor } from './inputEditor'; -import { getDescendantProperty } from '../services/utilities'; +import type { EditorArguments, EditorValidationResult } from '../interfaces/index.js'; +import { floatValidator } from '../editorValidators/floatValidator.js'; +import { InputEditor } from './inputEditor.js'; +import { getDescendantProperty } from '../services/utilities.js'; export class FloatEditor extends InputEditor { constructor(protected readonly args: EditorArguments) { diff --git a/packages/common/src/editors/index.ts b/packages/common/src/editors/index.ts index 9c35cbb29..12cea5afb 100644 --- a/packages/common/src/editors/index.ts +++ b/packages/common/src/editors/index.ts @@ -1,13 +1,13 @@ -export * from './autocompleterEditor'; -export * from './checkboxEditor'; -export * from './dateEditor'; -export * from './dualInputEditor'; -export * from './editors.index'; -export * from './floatEditor'; -export * from './inputEditor'; -export * from './integerEditor'; -export * from './longTextEditor'; -export * from './multipleSelectEditor'; -export * from './selectEditor'; -export * from './singleSelectEditor'; -export * from './sliderEditor'; +export * from './autocompleterEditor.js'; +export * from './checkboxEditor.js'; +export * from './dateEditor.js'; +export * from './dualInputEditor.js'; +export * from './editors.index.js'; +export * from './floatEditor.js'; +export * from './inputEditor.js'; +export * from './integerEditor.js'; +export * from './longTextEditor.js'; +export * from './multipleSelectEditor.js'; +export * from './selectEditor.js'; +export * from './singleSelectEditor.js'; +export * from './sliderEditor.js'; diff --git a/packages/common/src/editors/inputEditor.ts b/packages/common/src/editors/inputEditor.ts index 5a7733c12..b0f42c22b 100644 --- a/packages/common/src/editors/inputEditor.ts +++ b/packages/common/src/editors/inputEditor.ts @@ -10,10 +10,10 @@ import type { EditorValidator, EditorValidationResult, GridOption, -} from '../interfaces/index'; -import { getDescendantProperty } from '../services/utilities'; -import { textValidator } from '../editorValidators/textValidator'; -import { SlickEventData, type SlickGrid } from '../core/index'; +} from '../interfaces/index.js'; +import { getDescendantProperty } from '../services/utilities.js'; +import { textValidator } from '../editorValidators/textValidator.js'; +import { SlickEventData, type SlickGrid } from '../core/index.js'; const DEFAULT_DECIMAL_PLACES = 0; diff --git a/packages/common/src/editors/inputPasswordEditor.ts b/packages/common/src/editors/inputPasswordEditor.ts index e5196e321..5ca37c0e2 100644 --- a/packages/common/src/editors/inputPasswordEditor.ts +++ b/packages/common/src/editors/inputPasswordEditor.ts @@ -1,5 +1,5 @@ -import type { EditorArguments } from '../interfaces/editorArguments.interface'; -import { InputEditor } from './inputEditor'; +import type { EditorArguments } from '../interfaces/editorArguments.interface.js'; +import { InputEditor } from './inputEditor.js'; export class InputPasswordEditor extends InputEditor { /** Initialize the Editor */ diff --git a/packages/common/src/editors/integerEditor.ts b/packages/common/src/editors/integerEditor.ts index f94256a03..c2e185042 100644 --- a/packages/common/src/editors/integerEditor.ts +++ b/packages/common/src/editors/integerEditor.ts @@ -1,7 +1,7 @@ -import type { EditorArguments, EditorValidationResult } from '../interfaces/index'; -import { integerValidator } from '../editorValidators/integerValidator'; -import { InputEditor } from './inputEditor'; -import { getDescendantProperty } from '../services/utilities'; +import type { EditorArguments, EditorValidationResult } from '../interfaces/index.js'; +import { integerValidator } from '../editorValidators/integerValidator.js'; +import { InputEditor } from './inputEditor.js'; +import { getDescendantProperty } from '../services/utilities.js'; export class IntegerEditor extends InputEditor { constructor(protected readonly args: EditorArguments) { diff --git a/packages/common/src/editors/longTextEditor.ts b/packages/common/src/editors/longTextEditor.ts index 176b33855..3e48f557a 100644 --- a/packages/common/src/editors/longTextEditor.ts +++ b/packages/common/src/editors/longTextEditor.ts @@ -1,7 +1,7 @@ import { BindingEventService } from '@slickgrid-universal/binding'; import { createDomElement, getOffset, type HtmlElementPosition, setDeepValue, toSentenceCase } from '@slickgrid-universal/utils'; -import { Constants } from './../constants'; +import { Constants } from './../constants.js'; import type { Column, ColumnEditor, @@ -14,11 +14,11 @@ import type { GridOption, Locale, LongTextEditorOption, -} from '../interfaces/index'; -import { getDescendantProperty, getTranslationPrefix, } from '../services/utilities'; -import type { TranslaterService } from '../services/translater.service'; -import { textValidator } from '../editorValidators/textValidator'; -import { SlickEventData, type SlickGrid } from '../core/index'; +} from '../interfaces/index.js'; +import { getDescendantProperty, getTranslationPrefix, } from '../services/utilities.js'; +import type { TranslaterService } from '../services/translater.service.js'; +import { textValidator } from '../editorValidators/textValidator.js'; +import { SlickEventData, type SlickGrid } from '../core/index.js'; /* * An example of a 'detached' editor. diff --git a/packages/common/src/editors/multipleSelectEditor.ts b/packages/common/src/editors/multipleSelectEditor.ts index 60514e054..fc33dd0d5 100644 --- a/packages/common/src/editors/multipleSelectEditor.ts +++ b/packages/common/src/editors/multipleSelectEditor.ts @@ -1,5 +1,5 @@ -import type { EditorArguments } from '../interfaces/editorArguments.interface'; -import { SelectEditor } from './selectEditor'; +import type { EditorArguments } from '../interfaces/editorArguments.interface.js'; +import { SelectEditor } from './selectEditor.js'; export class MultipleSelectEditor extends SelectEditor { /** diff --git a/packages/common/src/editors/selectEditor.ts b/packages/common/src/editors/selectEditor.ts index 7d3be3ca1..cb7869639 100644 --- a/packages/common/src/editors/selectEditor.ts +++ b/packages/common/src/editors/selectEditor.ts @@ -2,8 +2,8 @@ import { emptyElement, setDeepValue } from '@slickgrid-universal/utils'; import { dequal } from 'dequal/lite'; import { multipleSelect, type MultipleSelectInstance, type MultipleSelectOption, type OptionRowData } from 'multiple-select-vanilla'; -import { Constants } from '../constants'; -import { FieldType } from './../enums/index'; +import { Constants } from '../constants.js'; +import { FieldType } from './../enums/index.js'; import type { CollectionCustomStructure, CollectionOption, @@ -18,10 +18,10 @@ import type { GridOption, Locale, SelectOption, -} from './../interfaces/index'; -import { buildMsSelectCollectionList, CollectionService, findOrDefault, type TranslaterService } from '../services/index'; -import { getDescendantProperty, getTranslationPrefix, } from '../services/utilities'; -import { SlickEventData, type SlickGrid } from '../core/index'; +} from './../interfaces/index.js'; +import { buildMsSelectCollectionList, CollectionService, findOrDefault, type TranslaterService } from '../services/index.js'; +import { getDescendantProperty, getTranslationPrefix, } from '../services/utilities.js'; +import { SlickEventData, type SlickGrid } from '../core/index.js'; /** * Slickgrid editor class for multiple/single select lists diff --git a/packages/common/src/editors/singleSelectEditor.ts b/packages/common/src/editors/singleSelectEditor.ts index 4d16f3bba..25bb44e60 100644 --- a/packages/common/src/editors/singleSelectEditor.ts +++ b/packages/common/src/editors/singleSelectEditor.ts @@ -1,5 +1,5 @@ -import type { EditorArguments } from '../interfaces/editorArguments.interface'; -import { SelectEditor } from './selectEditor'; +import type { EditorArguments } from '../interfaces/editorArguments.interface.js'; +import { SelectEditor } from './selectEditor.js'; export class SingleSelectEditor extends SelectEditor { /** diff --git a/packages/common/src/editors/sliderEditor.ts b/packages/common/src/editors/sliderEditor.ts index 4c1635444..ad41b40f5 100644 --- a/packages/common/src/editors/sliderEditor.ts +++ b/packages/common/src/editors/sliderEditor.ts @@ -1,7 +1,7 @@ import { BindingEventService } from '@slickgrid-universal/binding'; import { createDomElement, setDeepValue, toSentenceCase } from '@slickgrid-universal/utils'; -import { Constants } from '../constants'; +import { Constants } from '../constants.js'; import type { Column, ColumnEditor, @@ -13,10 +13,10 @@ import type { EditorValidationResult, GridOption, SliderOption, -} from '../interfaces/index'; -import { getDescendantProperty } from '../services/utilities'; -import { sliderValidator } from '../editorValidators/sliderValidator'; -import { SlickEventData, type SlickGrid } from '../core/index'; +} from '../interfaces/index.js'; +import { getDescendantProperty } from '../services/utilities.js'; +import { sliderValidator } from '../editorValidators/sliderValidator.js'; +import { SlickEventData, type SlickGrid } from '../core/index.js'; /* * An example of a 'detached' editor. diff --git a/packages/common/src/enums/columnReorderFunction.type.ts b/packages/common/src/enums/columnReorderFunction.type.ts index 65deadc35..6c98f9e37 100644 --- a/packages/common/src/enums/columnReorderFunction.type.ts +++ b/packages/common/src/enums/columnReorderFunction.type.ts @@ -1,4 +1,4 @@ -import type { Column } from '../interfaces/index'; -import type { SlickEvent, SlickGrid } from '../core/index'; +import type { Column } from '../interfaces/index.js'; +import type { SlickEvent, SlickGrid } from '../core/index.js'; export type ColumnReorderFunction = (grid: SlickGrid, headers: any, headerColumnWidthDiff: any, setColumns: (cols: Column[]) => void, setupColumnResize: () => void, columns: Column[], getColumnIndex: (columnId: string) => number, uid: string, trigger: (slickEvent: SlickEvent, data?: any) => void) => void; diff --git a/packages/common/src/enums/enums.index.ts b/packages/common/src/enums/enums.index.ts index 8fc42d54a..2f37cc5c7 100644 --- a/packages/common/src/enums/enums.index.ts +++ b/packages/common/src/enums/enums.index.ts @@ -1,2 +1,2 @@ -import * as Enums from './index'; +import * as Enums from './index.js'; export { Enums }; diff --git a/packages/common/src/enums/extensionList.type.ts b/packages/common/src/enums/extensionList.type.ts index e0015c2d9..87f6e1045 100644 --- a/packages/common/src/enums/extensionList.type.ts +++ b/packages/common/src/enums/extensionList.type.ts @@ -1,4 +1,4 @@ -import type { ExtensionName, SlickControlList, SlickPluginList } from './index'; -import type { ExtensionModel } from '../interfaces/index'; +import type { ExtensionName, SlickControlList, SlickPluginList } from './index.js'; +import type { ExtensionModel } from '../interfaces/index.js'; export type ExtensionList

= Record>; diff --git a/packages/common/src/enums/index.ts b/packages/common/src/enums/index.ts index c4d8140e6..0d6462f3a 100644 --- a/packages/common/src/enums/index.ts +++ b/packages/common/src/enums/index.ts @@ -1,26 +1,26 @@ -export * from './caseType.enum'; -export type * from './columnReorderFunction.type'; -export type * from './compositeEditorModalType.type'; -export * from './delimiterType.enum'; -export * from './emitterType.enum'; -export type * from './extensionList.type'; -export * from './extensionName.enum'; -export * from './fieldType.enum'; -export * from './fileType.enum'; -export * from './filterMultiplePassType.enum'; -export type * from './filterMultiplePassTypeString.type'; -export * from './gridStateType.enum'; -export type * from './infer.type'; -export type * from './operatorString.type'; -export * from './operatorType.enum'; -export type * from './plainFunc.type'; -export type * from './positionMethod.type'; -export type * from './searchTerm.type'; -export type * from './selectionModel.type'; -export type * from './slickControlList.enum'; -export type * from './slickPluginList.enum'; -export * from './sortDirection.enum'; -export * from './sortDirectionNumber.enum'; -export type * from './sortDirectionString.type'; -export * from './toggleStateChangeType'; -export type * from './usabilityOverrideFn.type'; \ No newline at end of file +export * from './caseType.enum.js'; +export type * from './columnReorderFunction.type.js'; +export type * from './compositeEditorModalType.type.js'; +export * from './delimiterType.enum.js'; +export * from './emitterType.enum.js'; +export type * from './extensionList.type.js'; +export * from './extensionName.enum.js'; +export * from './fieldType.enum.js'; +export * from './fileType.enum.js'; +export * from './filterMultiplePassType.enum.js'; +export type * from './filterMultiplePassTypeString.type.js'; +export * from './gridStateType.enum.js'; +export type * from './infer.type.js'; +export type * from './operatorString.type.js'; +export * from './operatorType.enum.js'; +export type * from './plainFunc.type.js'; +export type * from './positionMethod.type.js'; +export type * from './searchTerm.type.js'; +export type * from './selectionModel.type.js'; +export type * from './slickControlList.enum.js'; +export type * from './slickPluginList.enum.js'; +export * from './sortDirection.enum.js'; +export * from './sortDirectionNumber.enum.js'; +export type * from './sortDirectionString.type.js'; +export * from './toggleStateChangeType.js'; +export type * from './usabilityOverrideFn.type.js'; \ No newline at end of file diff --git a/packages/common/src/enums/positionMethod.type.ts b/packages/common/src/enums/positionMethod.type.ts index bcabac031..68e5e51e9 100644 --- a/packages/common/src/enums/positionMethod.type.ts +++ b/packages/common/src/enums/positionMethod.type.ts @@ -1,3 +1,3 @@ -import type { ElementPosition } from '../interfaces/elementPosition.interface'; +import type { ElementPosition } from '../interfaces/elementPosition.interface.js'; export type PositionMethod = () => ElementPosition; \ No newline at end of file diff --git a/packages/common/src/enums/selectionModel.type.ts b/packages/common/src/enums/selectionModel.type.ts index 3075bea06..121856060 100644 --- a/packages/common/src/enums/selectionModel.type.ts +++ b/packages/common/src/enums/selectionModel.type.ts @@ -1,5 +1,5 @@ -import type { SlickEvent, SlickRange } from '../core/index'; -import type { SlickPlugin } from '../interfaces/index'; +import type { SlickEvent, SlickRange } from '../core/index.js'; +import type { SlickPlugin } from '../interfaces/index.js'; export type SelectionModel = SlickPlugin & { refreshSelections: () => void; diff --git a/packages/common/src/enums/slickControlList.enum.ts b/packages/common/src/enums/slickControlList.enum.ts index 5d910f135..a6ea4e23d 100644 --- a/packages/common/src/enums/slickControlList.enum.ts +++ b/packages/common/src/enums/slickControlList.enum.ts @@ -1,3 +1,3 @@ -import type { SlickColumnPicker, SlickGridMenu } from '../extensions/index'; +import type { SlickColumnPicker, SlickGridMenu } from '../extensions/index.js'; export type SlickControlList = SlickColumnPicker | SlickGridMenu; diff --git a/packages/common/src/enums/slickPluginList.enum.ts b/packages/common/src/enums/slickPluginList.enum.ts index 6c43761c2..c534de0de 100644 --- a/packages/common/src/enums/slickPluginList.enum.ts +++ b/packages/common/src/enums/slickPluginList.enum.ts @@ -1,6 +1,6 @@ -import type { ExtensionName } from '../enums/index'; -import type { SlickEditorLock } from '../core/index'; -import type { SlickRowDetailView } from '../interfaces/index'; +import type { ExtensionName } from '../enums/index.js'; +import type { SlickEditorLock } from '../core/index.js'; +import type { SlickRowDetailView } from '../interfaces/index.js'; import type { SlickAutoTooltip, SlickCellExcelCopyManager, @@ -20,7 +20,7 @@ import type { SlickRowBasedEdit, SlickRowMoveManager, SlickRowSelectionModel, -} from '../extensions/index'; +} from '../extensions/index.js'; export type SlickPluginList = SlickAutoTooltip | diff --git a/packages/common/src/enums/usabilityOverrideFn.type.ts b/packages/common/src/enums/usabilityOverrideFn.type.ts index 553cf9b7c..3ff0ca449 100644 --- a/packages/common/src/enums/usabilityOverrideFn.type.ts +++ b/packages/common/src/enums/usabilityOverrideFn.type.ts @@ -1,3 +1,3 @@ -import type { SlickGrid } from '../core/index'; +import type { SlickGrid } from '../core/index.js'; export type UsabilityOverrideFn = (row: number, dataContext: any, grid: SlickGrid) => boolean; \ No newline at end of file diff --git a/packages/common/src/extensions/__tests__/extensionUtility.spec.ts b/packages/common/src/extensions/__tests__/extensionUtility.spec.ts index f7a403891..da9390e29 100644 --- a/packages/common/src/extensions/__tests__/extensionUtility.spec.ts +++ b/packages/common/src/extensions/__tests__/extensionUtility.spec.ts @@ -1,11 +1,11 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import type { Column, GridOption, MenuCommandItem } from '../../interfaces/index'; -import { ExtensionUtility } from '../extensionUtility'; -import { SharedService } from '../../services/shared.service'; -import type { BackendUtilityService } from '../../services/backendUtility.service'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import type { SlickGrid } from '../../core'; +import type { Column, GridOption, MenuCommandItem } from '../../interfaces/index.js'; +import { ExtensionUtility } from '../extensionUtility.js'; +import { SharedService } from '../../services/shared.service.js'; +import type { BackendUtilityService } from '../../services/backendUtility.service.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import type { SlickGrid } from '../../core/slickGrid.js'; const gridStub = { getOptions: vi.fn(), diff --git a/packages/common/src/extensions/__tests__/slickAutoTooltip.spec.ts b/packages/common/src/extensions/__tests__/slickAutoTooltip.spec.ts index acf86ff5b..c52c490ff 100644 --- a/packages/common/src/extensions/__tests__/slickAutoTooltip.spec.ts +++ b/packages/common/src/extensions/__tests__/slickAutoTooltip.spec.ts @@ -1,8 +1,8 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import type { AutoTooltipOption, Column } from '../../interfaces/index'; -import { SlickAutoTooltip } from '../slickAutoTooltip'; -import { SlickEvent, SlickEventData, type SlickGrid } from '../../core/index'; +import type { AutoTooltipOption, Column } from '../../interfaces/index.js'; +import { SlickAutoTooltip } from '../slickAutoTooltip.js'; +import { SlickEvent, SlickEventData, type SlickGrid } from '../../core/index.js'; const addonOptions: AutoTooltipOption = { enableForCells: true, diff --git a/packages/common/src/extensions/__tests__/slickCellExcelCopyManager.spec.ts b/packages/common/src/extensions/__tests__/slickCellExcelCopyManager.spec.ts index e6d1fdced..0dcc4b084 100644 --- a/packages/common/src/extensions/__tests__/slickCellExcelCopyManager.spec.ts +++ b/packages/common/src/extensions/__tests__/slickCellExcelCopyManager.spec.ts @@ -1,12 +1,12 @@ import { afterEach, beforeEach, describe, expect, it, type Mock, vi } from 'vitest'; -import type { EditCommand, Formatter, GridOption } from '../../interfaces/index'; -import { SharedService } from '../../services/shared.service'; -import { SlickCellExcelCopyManager } from '../slickCellExcelCopyManager'; -import type { SlickCellSelectionModel } from '../slickCellSelectionModel'; -import type { SlickCellExternalCopyManager } from '../slickCellExternalCopyManager'; -import { SlickEvent, SlickEventData, type SlickGrid, type SlickRange } from '../../core/index'; -import { Editors } from '../../editors'; +import type { EditCommand, Formatter, GridOption } from '../../interfaces/index.js'; +import { SharedService } from '../../services/shared.service.js'; +import { SlickCellExcelCopyManager } from '../slickCellExcelCopyManager.js'; +import type { SlickCellSelectionModel } from '../slickCellSelectionModel.js'; +import type { SlickCellExternalCopyManager } from '../slickCellExternalCopyManager.js'; +import { SlickEvent, SlickEventData, type SlickGrid, type SlickRange } from '../../core/index.js'; +import { Editors } from '../../editors/index.js'; const getEditorLockMock = { isActive: vi.fn(), diff --git a/packages/common/src/extensions/__tests__/slickCellExternalCopyManager.spec.ts b/packages/common/src/extensions/__tests__/slickCellExternalCopyManager.spec.ts index af352835d..8bbb125c0 100644 --- a/packages/common/src/extensions/__tests__/slickCellExternalCopyManager.spec.ts +++ b/packages/common/src/extensions/__tests__/slickCellExternalCopyManager.spec.ts @@ -1,11 +1,11 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import type { SelectionModel } from '../../enums/index'; -import type { Column, GridOption, OnEventArgs, } from '../../interfaces/index'; -import type { SlickCellSelectionModel } from '../slickCellSelectionModel'; -import { SlickCellExternalCopyManager } from '../slickCellExternalCopyManager'; -import type { InputEditor } from '../../editors/inputEditor'; -import { type SlickDataView, SlickEvent, SlickEventData, type SlickGrid, SlickRange } from '../../core/index'; +import type { SelectionModel } from '../../enums/index.js'; +import type { Column, GridOption, OnEventArgs, } from '../../interfaces/index.js'; +import type { SlickCellSelectionModel } from '../slickCellSelectionModel.js'; +import { SlickCellExternalCopyManager } from '../slickCellExternalCopyManager.js'; +import type { InputEditor } from '../../editors/inputEditor.js'; +import { type SlickDataView, SlickEvent, SlickEventData, type SlickGrid, SlickRange } from '../../core/index.js'; import { type BasePubSubService } from '@slickgrid-universal/event-pub-sub'; vi.useFakeTimers(); diff --git a/packages/common/src/extensions/__tests__/slickCellMenu.plugin.spec.ts b/packages/common/src/extensions/__tests__/slickCellMenu.plugin.spec.ts index b8b429306..6a8ed6167 100644 --- a/packages/common/src/extensions/__tests__/slickCellMenu.plugin.spec.ts +++ b/packages/common/src/extensions/__tests__/slickCellMenu.plugin.spec.ts @@ -3,12 +3,12 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { type BasePubSubService } from '@slickgrid-universal/event-pub-sub'; import { deepCopy } from '@slickgrid-universal/utils'; -import type { CellMenu, Column, ElementPosition, GridOption, MenuCommandItem, MenuOptionItem } from '../../interfaces/index'; -import { SlickCellMenu } from '../slickCellMenu'; -import { BackendUtilityService, SharedService, } from '../../services'; -import { ExtensionUtility } from '../../extensions/extensionUtility'; -import { SlickEvent, SlickEventData, type SlickGrid } from '../../core/index'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; +import type { CellMenu, Column, ElementPosition, GridOption, MenuCommandItem, MenuOptionItem } from '../../interfaces/index.js'; +import { SlickCellMenu } from '../slickCellMenu.js'; +import { BackendUtilityService, SharedService, } from '../../services/index.js'; +import { ExtensionUtility } from '../../extensions/extensionUtility.js'; +import { SlickEvent, SlickEventData, type SlickGrid } from '../../core/index.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; const removeExtraSpaces = (textS) => `${textS}`.replace(/[\n\r]\s+/g, ''); diff --git a/packages/common/src/extensions/__tests__/slickCellRangeDecorator.spec.ts b/packages/common/src/extensions/__tests__/slickCellRangeDecorator.spec.ts index 3ea453f4c..063637166 100644 --- a/packages/common/src/extensions/__tests__/slickCellRangeDecorator.spec.ts +++ b/packages/common/src/extensions/__tests__/slickCellRangeDecorator.spec.ts @@ -1,7 +1,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { SlickCellRangeDecorator } from '../slickCellRangeDecorator'; -import type { SlickGrid, SlickRange } from '../../core'; +import { SlickCellRangeDecorator } from '../slickCellRangeDecorator.js'; +import type { SlickGrid, SlickRange } from '../../core/index.js'; const gridStub = { getActiveCell: vi.fn(), diff --git a/packages/common/src/extensions/__tests__/slickCellRangeSelector.spec.ts b/packages/common/src/extensions/__tests__/slickCellRangeSelector.spec.ts index 013fbaa94..acfc96eef 100644 --- a/packages/common/src/extensions/__tests__/slickCellRangeSelector.spec.ts +++ b/packages/common/src/extensions/__tests__/slickCellRangeSelector.spec.ts @@ -1,8 +1,8 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import type { GridOption } from '../../interfaces/index'; -import { SlickCellRangeSelector } from '../slickCellRangeSelector'; -import { SlickEvent, type SlickGrid } from '../../core/index'; +import type { GridOption } from '../../interfaces/index.js'; +import { SlickCellRangeSelector } from '../slickCellRangeSelector.js'; +import { SlickEvent, type SlickGrid } from '../../core/index.js'; import { type BasePubSubService } from '@slickgrid-universal/event-pub-sub'; vi.useFakeTimers(); diff --git a/packages/common/src/extensions/__tests__/slickCellSelectionModel.spec.ts b/packages/common/src/extensions/__tests__/slickCellSelectionModel.spec.ts index f14d37524..fc327c400 100644 --- a/packages/common/src/extensions/__tests__/slickCellSelectionModel.spec.ts +++ b/packages/common/src/extensions/__tests__/slickCellSelectionModel.spec.ts @@ -1,10 +1,10 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { type BasePubSubService } from '@slickgrid-universal/event-pub-sub'; -import type { GridOption } from '../../interfaces/index'; -import { SlickCellRangeSelector } from '../slickCellRangeSelector'; -import { SlickCellSelectionModel } from '../slickCellSelectionModel'; -import { SlickEvent, type SlickGrid, type SlickRange } from '../../core/index'; +import type { GridOption } from '../../interfaces/index.js'; +import { SlickCellRangeSelector } from '../slickCellRangeSelector.js'; +import { SlickCellSelectionModel } from '../slickCellSelectionModel.js'; +import { SlickEvent, type SlickGrid, type SlickRange } from '../../core/index.js'; const GRID_UID = 'slickgrid_12345'; const NB_ITEMS = 200; diff --git a/packages/common/src/extensions/__tests__/slickCheckboxSelectColumn.spec.ts b/packages/common/src/extensions/__tests__/slickCheckboxSelectColumn.spec.ts index f4d8aadd8..1485a05ed 100644 --- a/packages/common/src/extensions/__tests__/slickCheckboxSelectColumn.spec.ts +++ b/packages/common/src/extensions/__tests__/slickCheckboxSelectColumn.spec.ts @@ -2,10 +2,10 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { type BasePubSubService } from '@slickgrid-universal/event-pub-sub'; import { getHtmlStringOutput } from '@slickgrid-universal/utils'; -import { SlickCheckboxSelectColumn } from '../slickCheckboxSelectColumn'; -import type { Column, OnSelectedRowsChangedEventArgs } from '../../interfaces/index'; -import type { SlickRowSelectionModel } from '../../extensions/slickRowSelectionModel'; -import { SlickEvent, type SlickGrid } from '../../core/index'; +import { SlickCheckboxSelectColumn } from '../slickCheckboxSelectColumn.js'; +import type { Column, OnSelectedRowsChangedEventArgs } from '../../interfaces/index.js'; +import type { SlickRowSelectionModel } from '../../extensions/slickRowSelectionModel.js'; +import { SlickEvent, type SlickGrid } from '../../core/index.js'; vi.useFakeTimers(); diff --git a/packages/common/src/extensions/__tests__/slickColumnPicker.spec.ts b/packages/common/src/extensions/__tests__/slickColumnPicker.spec.ts index e61152e32..b072be22b 100644 --- a/packages/common/src/extensions/__tests__/slickColumnPicker.spec.ts +++ b/packages/common/src/extensions/__tests__/slickColumnPicker.spec.ts @@ -1,15 +1,15 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { type BasePubSubService } from '@slickgrid-universal/event-pub-sub'; - -import { SlickEvent, SlickEventData, type SlickGrid } from '../../core/index'; -import type { Column, ColumnPicker, GridOption } from '../../interfaces/index'; -import { SlickColumnPicker } from '../slickColumnPicker'; -import { ExtensionUtility } from '../extensionUtility'; -import { SharedService } from '../../services/shared.service'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import { BackendUtilityService } from '../../services/backendUtility.service'; import { createDomElement } from '@slickgrid-universal/utils'; +import { SlickEvent, SlickEventData, type SlickGrid } from '../../core/index.js'; +import type { Column, ColumnPicker, GridOption } from '../../interfaces/index.js'; +import { SlickColumnPicker } from '../slickColumnPicker.js'; +import { ExtensionUtility } from '../extensionUtility.js'; +import { SharedService } from '../../services/shared.service.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import { BackendUtilityService } from '../../services/backendUtility.service.js'; + const gridUid = 'slickgrid_124343'; const gridStub = { diff --git a/packages/common/src/extensions/__tests__/slickContextMenu.spec.ts b/packages/common/src/extensions/__tests__/slickContextMenu.spec.ts index 7fa63d990..ac9323486 100644 --- a/packages/common/src/extensions/__tests__/slickContextMenu.spec.ts +++ b/packages/common/src/extensions/__tests__/slickContextMenu.spec.ts @@ -2,13 +2,13 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { type BasePubSubService } from '@slickgrid-universal/event-pub-sub'; import { deepCopy } from '@slickgrid-universal/utils'; -import { type SlickDataView, SlickEvent, SlickEventData, type SlickGrid } from '../../core/index'; -import { DelimiterType, FileType } from '../../enums/index'; -import type { ContextMenu, Column, ElementPosition, GridOption, MenuCommandItem, MenuOptionItem, Formatter } from '../../interfaces/index'; -import { BackendUtilityService, type ExcelExportService, SharedService, type TextExportService, type TreeDataService, } from '../../services/index'; -import { ExtensionUtility } from '../../extensions/extensionUtility'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import { SlickContextMenu } from '../slickContextMenu'; +import { type SlickDataView, SlickEvent, SlickEventData, type SlickGrid } from '../../core/index.js'; +import { DelimiterType, FileType } from '../../enums/index.js'; +import type { ContextMenu, Column, ElementPosition, GridOption, MenuCommandItem, MenuOptionItem, Formatter } from '../../interfaces/index.js'; +import { BackendUtilityService, type ExcelExportService, SharedService, type TextExportService, type TreeDataService, } from '../../services/index.js'; +import { ExtensionUtility } from '../../extensions/extensionUtility.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import { SlickContextMenu } from '../slickContextMenu.js'; const removeExtraSpaces = (textS) => `${textS}`.replace(/[\n\r]\s+/g, ''); diff --git a/packages/common/src/extensions/__tests__/slickDraggableGrouping.spec.ts b/packages/common/src/extensions/__tests__/slickDraggableGrouping.spec.ts index 38ac019b5..19aded2d0 100644 --- a/packages/common/src/extensions/__tests__/slickDraggableGrouping.spec.ts +++ b/packages/common/src/extensions/__tests__/slickDraggableGrouping.spec.ts @@ -23,15 +23,15 @@ import { type SortableOptions } from 'sortablejs'; import { EventPubSubService } from '@slickgrid-universal/event-pub-sub'; import { createDomElement, deepCopy } from '@slickgrid-universal/utils'; -import { Aggregators } from '../../aggregators/aggregators.index'; -import { SlickDraggableGrouping } from '../slickDraggableGrouping'; -import { ExtensionUtility } from '../../extensions/extensionUtility'; -import type { Column, DraggableGroupingOption, GridOption } from '../../interfaces/index'; -import { BackendUtilityService, } from '../../services'; -import { SharedService } from '../../services/shared.service'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import { SortDirectionNumber } from '../../enums/index'; -import { SlickEvent, SlickEventData, type SlickGrid } from '../../core/index'; +import { Aggregators } from '../../aggregators/aggregators.index.js'; +import { SlickDraggableGrouping } from '../slickDraggableGrouping.js'; +import { ExtensionUtility } from '../../extensions/extensionUtility.js'; +import type { Column, DraggableGroupingOption, GridOption } from '../../interfaces/index.js'; +import { BackendUtilityService, } from '../../services/backendUtility.service.js'; +import { SharedService } from '../../services/shared.service.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import { SortDirectionNumber } from '../../enums/index.js'; +import { SlickEvent, SlickEventData, type SlickGrid } from '../../core/index.js'; const GRID_UID = 'slickgrid12345'; diff --git a/packages/common/src/extensions/__tests__/slickGridMenu.spec.ts b/packages/common/src/extensions/__tests__/slickGridMenu.spec.ts index 5a3cc0ede..1a1725a06 100644 --- a/packages/common/src/extensions/__tests__/slickGridMenu.spec.ts +++ b/packages/common/src/extensions/__tests__/slickGridMenu.spec.ts @@ -1,13 +1,13 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { type BasePubSubService } from '@slickgrid-universal/event-pub-sub'; -import { DelimiterType, FileType } from '../../enums/index'; -import type { Column, DOMEvent, GridMenu, GridOption } from '../../interfaces/index'; -import { SlickGridMenu } from '../slickGridMenu'; -import { BackendUtilityService, type ExcelExportService, type FilterService, SharedService, type SortService, type TextExportService, } from '../../services'; -import { type SlickDataView, SlickEvent, SlickEventData, type SlickGrid } from '../../core/index'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import { ExtensionUtility } from '../../extensions/extensionUtility'; +import { DelimiterType, FileType } from '../../enums/index.js'; +import type { Column, DOMEvent, GridMenu, GridOption } from '../../interfaces/index.js'; +import { SlickGridMenu } from '../slickGridMenu.js'; +import { BackendUtilityService, type ExcelExportService, type FilterService, SharedService, type SortService, type TextExportService, } from '../../services/index.js'; +import { type SlickDataView, SlickEvent, SlickEventData, type SlickGrid } from '../../core/index.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import { ExtensionUtility } from '../../extensions/extensionUtility.js'; const gridId = 'grid1'; const gridUid = 'slickgrid_124343'; diff --git a/packages/common/src/extensions/__tests__/slickGroupItemMetadataProvider.spec.ts b/packages/common/src/extensions/__tests__/slickGroupItemMetadataProvider.spec.ts index 6432ee993..02c12b5b8 100644 --- a/packages/common/src/extensions/__tests__/slickGroupItemMetadataProvider.spec.ts +++ b/packages/common/src/extensions/__tests__/slickGroupItemMetadataProvider.spec.ts @@ -1,9 +1,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { getHtmlStringOutput } from '@slickgrid-universal/utils'; -import type { Column, GridOption, GroupItemMetadataProviderOption } from '../../interfaces'; -import { SlickGroupItemMetadataProvider } from '../slickGroupItemMetadataProvider'; -import { type SlickDataView, SlickEvent, type SlickGrid, SlickGroup } from '../../core/index'; +import type { Column, GridOption, GroupItemMetadataProviderOption } from '../../interfaces/index.js'; +import { SlickGroupItemMetadataProvider } from '../slickGroupItemMetadataProvider.js'; +import { type SlickDataView, SlickEvent, type SlickGrid, SlickGroup } from '../../core/index.js'; const gridOptionMock = { enablePagination: true, diff --git a/packages/common/src/extensions/__tests__/slickHeaderButtons.spec.ts b/packages/common/src/extensions/__tests__/slickHeaderButtons.spec.ts index 11da6bb2f..9c4df7f76 100644 --- a/packages/common/src/extensions/__tests__/slickHeaderButtons.spec.ts +++ b/packages/common/src/extensions/__tests__/slickHeaderButtons.spec.ts @@ -1,13 +1,13 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { type BasePubSubService } from '@slickgrid-universal/event-pub-sub'; -import type { Column, GridOption } from '../../interfaces/index'; -import { SlickHeaderButtons } from '../slickHeaderButtons'; -import { BackendUtilityService } from '../../services'; -import { SharedService } from '../../services/shared.service'; -import { ExtensionUtility } from '../../extensions/extensionUtility'; -import { SlickEvent, SlickEventData, type SlickGrid } from '../../core/index'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { SlickHeaderButtons } from '../slickHeaderButtons.js'; +import { BackendUtilityService } from '../../services/index.js'; +import { SharedService } from '../../services/shared.service.js'; +import { ExtensionUtility } from '../../extensions/extensionUtility.js'; +import { SlickEvent, SlickEventData, type SlickGrid } from '../../core/index.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; const removeExtraSpaces = (textS) => `${textS}`.replace(/[\n\r]\s+/g, ''); diff --git a/packages/common/src/extensions/__tests__/slickHeaderMenu.spec.ts b/packages/common/src/extensions/__tests__/slickHeaderMenu.spec.ts index 3a8519fad..f57360d49 100644 --- a/packages/common/src/extensions/__tests__/slickHeaderMenu.spec.ts +++ b/packages/common/src/extensions/__tests__/slickHeaderMenu.spec.ts @@ -1,12 +1,12 @@ import { afterEach, beforeEach, describe, expect, it, type Mock, vi } from 'vitest'; import type { BasePubSubService } from '@slickgrid-universal/event-pub-sub'; -import type { Column, ColumnSort, ElementPosition, Filter, GridOption, HeaderButtonsOrMenu, HeaderMenuItems, MenuCommandItem } from '../../interfaces/index'; -import { SlickHeaderMenu } from '../slickHeaderMenu'; -import { BackendUtilityService, type FilterService, SharedService, type SortService } from '../../services'; -import { ExtensionUtility } from '../../extensions/extensionUtility'; -import { type SlickDataView, SlickEvent, SlickEventData, type SlickGrid } from '../../core/index'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; +import type { Column, ColumnSort, ElementPosition, Filter, GridOption, HeaderButtonsOrMenu, HeaderMenuItems, MenuCommandItem } from '../../interfaces/index.js'; +import { SlickHeaderMenu } from '../slickHeaderMenu.js'; +import { BackendUtilityService, type FilterService, SharedService, type SortService } from '../../services/index.js'; +import { ExtensionUtility } from '../../extensions/extensionUtility.js'; +import { type SlickDataView, SlickEvent, SlickEventData, type SlickGrid } from '../../core/index.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; const removeExtraSpaces = (textS) => `${textS}`.replace(/[\n\r]\s+/g, ''); diff --git a/packages/common/src/extensions/__tests__/slickRowBasedEdit.spec.ts b/packages/common/src/extensions/__tests__/slickRowBasedEdit.spec.ts index 5a11f1c0f..b9e2b78bd 100644 --- a/packages/common/src/extensions/__tests__/slickRowBasedEdit.spec.ts +++ b/packages/common/src/extensions/__tests__/slickRowBasedEdit.spec.ts @@ -8,8 +8,8 @@ import type { OnBeforeEditCellEventArgs, OnSetOptionsEventArgs, RowBasedEditOptions, -} from '../../interfaces/index'; -import { SlickEvent, type SlickGrid } from '../../core/index'; +} from '../../interfaces/index.js'; +import { SlickEvent, type SlickGrid } from '../../core/index.js'; import { BTN_ACTION_CANCEL, BTN_ACTION_DELETE, @@ -17,11 +17,11 @@ import { BTN_ACTION_UPDATE, ROW_BASED_EDIT_ROW_HIGHLIGHT_CLASS, SlickRowBasedEdit, -} from '../slickRowBasedEdit'; -import { GridService } from '../../services'; -import { Editors } from '../../editors'; -import type { ExtensionUtility } from '../extensionUtility'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; +} from '../slickRowBasedEdit.js'; +import { GridService } from '../../services/grid.service.js'; +import { Editors } from '../../editors/editors.index.js'; +import type { ExtensionUtility } from '../extensionUtility.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; const addonOptions: RowBasedEditOptions = { actionsColumnLabel: 'MyActions', diff --git a/packages/common/src/extensions/__tests__/slickRowMoveManager.spec.ts b/packages/common/src/extensions/__tests__/slickRowMoveManager.spec.ts index 5efdd06cd..40f212dee 100644 --- a/packages/common/src/extensions/__tests__/slickRowMoveManager.spec.ts +++ b/packages/common/src/extensions/__tests__/slickRowMoveManager.spec.ts @@ -1,9 +1,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { type BasePubSubService } from '@slickgrid-universal/event-pub-sub'; -import type { Column, DragRowMove, GridOption } from '../../interfaces/index'; -import { SlickRowMoveManager } from '../slickRowMoveManager'; -import { SlickEvent, type SlickGrid } from '../../core/index'; +import type { Column, DragRowMove, GridOption } from '../../interfaces/index.js'; +import { SlickRowMoveManager } from '../slickRowMoveManager.js'; +import { SlickEvent, type SlickGrid } from '../../core/index.js'; const GRID_UID = 'slickgrid_12345'; diff --git a/packages/common/src/extensions/__tests__/slickRowSelectionModel.spec.ts b/packages/common/src/extensions/__tests__/slickRowSelectionModel.spec.ts index 808182efa..41767578e 100644 --- a/packages/common/src/extensions/__tests__/slickRowSelectionModel.spec.ts +++ b/packages/common/src/extensions/__tests__/slickRowSelectionModel.spec.ts @@ -1,10 +1,10 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { type BasePubSubService } from '@slickgrid-universal/event-pub-sub'; -import { SlickEvent, type SlickGrid, SlickRange } from '../../core/index'; -import type { Column, GridOption } from '../../interfaces/index'; -import { SlickCellRangeSelector } from '../slickCellRangeSelector'; -import { SlickRowSelectionModel } from '../slickRowSelectionModel'; +import { SlickEvent, type SlickGrid, SlickRange } from '../../core/index.js'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { SlickCellRangeSelector } from '../slickCellRangeSelector.js'; +import { SlickRowSelectionModel } from '../slickRowSelectionModel.js'; const GRID_UID = 'slickgrid_12345'; diff --git a/packages/common/src/extensions/extensionCommonUtils.ts b/packages/common/src/extensions/extensionCommonUtils.ts index 7da52f893..90ead6b85 100644 --- a/packages/common/src/extensions/extensionCommonUtils.ts +++ b/packages/common/src/extensions/extensionCommonUtils.ts @@ -1,9 +1,9 @@ /* eslint-disable @typescript-eslint/no-this-alias */ import { createDomElement, titleCase } from '@slickgrid-universal/utils'; -import type { Column, ColumnPickerOption, DOMEvent, GridMenuOption } from '../interfaces/index'; -import { SlickColumnPicker } from './slickColumnPicker'; -import { SlickGridMenu } from './slickGridMenu'; +import type { Column, ColumnPickerOption, DOMEvent, GridMenuOption } from '../interfaces/index.js'; +import { SlickColumnPicker } from './slickColumnPicker.js'; +import { SlickGridMenu } from './slickGridMenu.js'; const PICKER_CHECK_ICON = 'mdi-icon-picker-check'; const PICKER_UNCHECK_ICON = 'mdi-icon-picker-uncheck'; diff --git a/packages/common/src/extensions/extensionUtility.ts b/packages/common/src/extensions/extensionUtility.ts index 3b9bd9690..c32f17a14 100644 --- a/packages/common/src/extensions/extensionUtility.ts +++ b/packages/common/src/extensions/extensionUtility.ts @@ -1,9 +1,9 @@ -import { Constants } from '../constants'; -import type { Column, GridMenuItem, GridOption, Locale, MenuCommandItem, MenuOptionItem, } from '../interfaces/index'; -import type { BackendUtilityService } from '../services/backendUtility.service'; -import type { SharedService } from '../services/shared.service'; -import type { TranslaterService } from '../services/translater.service'; -import { getTranslationPrefix } from '../services/utilities'; +import { Constants } from '../constants.js'; +import type { Column, GridMenuItem, GridOption, Locale, MenuCommandItem, MenuOptionItem, } from '../interfaces/index.js'; +import type { BackendUtilityService } from '../services/backendUtility.service.js'; +import type { SharedService } from '../services/shared.service.js'; +import type { TranslaterService } from '../services/translater.service.js'; +import { getTranslationPrefix } from '../services/utilities.js'; export class ExtensionUtility { constructor( diff --git a/packages/common/src/extensions/index.ts b/packages/common/src/extensions/index.ts index 29e9d711d..9435c2ae1 100644 --- a/packages/common/src/extensions/index.ts +++ b/packages/common/src/extensions/index.ts @@ -1,19 +1,19 @@ -export * from './extensionUtility'; -export * from './slickAutoTooltip'; -export * from './slickCellExcelCopyManager'; -export * from './slickCellExternalCopyManager'; -export * from './slickCellMenu'; -export * from './slickCellRangeDecorator'; -export * from './slickCellRangeSelector'; -export * from './slickCellSelectionModel'; -export * from './slickCheckboxSelectColumn'; -export * from './slickColumnPicker'; -export * from './slickContextMenu'; -export * from './slickDraggableGrouping'; -export * from './slickGridMenu'; -export * from './slickGroupItemMetadataProvider'; -export * from './slickHeaderButtons'; -export * from './slickHeaderMenu'; -export * from './slickRowBasedEdit'; -export * from './slickRowMoveManager'; -export * from './slickRowSelectionModel'; \ No newline at end of file +export * from './extensionUtility.js'; +export * from './slickAutoTooltip.js'; +export * from './slickCellExcelCopyManager.js'; +export * from './slickCellExternalCopyManager.js'; +export * from './slickCellMenu.js'; +export * from './slickCellRangeDecorator.js'; +export * from './slickCellRangeSelector.js'; +export * from './slickCellSelectionModel.js'; +export * from './slickCheckboxSelectColumn.js'; +export * from './slickColumnPicker.js'; +export * from './slickContextMenu.js'; +export * from './slickDraggableGrouping.js'; +export * from './slickGridMenu.js'; +export * from './slickGroupItemMetadataProvider.js'; +export * from './slickHeaderButtons.js'; +export * from './slickHeaderMenu.js'; +export * from './slickRowBasedEdit.js'; +export * from './slickRowMoveManager.js'; +export * from './slickRowSelectionModel.js'; \ No newline at end of file diff --git a/packages/common/src/extensions/menuBaseClass.ts b/packages/common/src/extensions/menuBaseClass.ts index 81fbecadf..b53348a63 100644 --- a/packages/common/src/extensions/menuBaseClass.ts +++ b/packages/common/src/extensions/menuBaseClass.ts @@ -15,10 +15,10 @@ import type { HeaderMenu, MenuCommandItem, MenuOptionItem, -} from '../interfaces/index'; -import type { ExtensionUtility } from '../extensions/extensionUtility'; -import type { SharedService } from '../services/shared.service'; -import { SlickEventHandler, type SlickGrid } from '../core/index'; +} from '../interfaces/index.js'; +import type { ExtensionUtility } from '../extensions/extensionUtility.js'; +import type { SharedService } from '../services/shared.service.js'; +import { SlickEventHandler, type SlickGrid } from '../core/index.js'; export type MenuType = 'command' | 'option'; export type ExtendableItemTypes = HeaderButtonItem | MenuCommandItem | MenuOptionItem | 'divider'; diff --git a/packages/common/src/extensions/menuFromCellBaseClass.ts b/packages/common/src/extensions/menuFromCellBaseClass.ts index 075ce09cb..ba9ac0e70 100644 --- a/packages/common/src/extensions/menuFromCellBaseClass.ts +++ b/packages/common/src/extensions/menuFromCellBaseClass.ts @@ -11,11 +11,11 @@ import type { MenuFromCellCallbackArgs, MenuOptionItem, MenuOptionItemCallbackArgs, -} from '../interfaces/index'; -import type { SlickEventData, SlickGrid } from '../core'; -import type { ExtensionUtility } from '../extensions/extensionUtility'; -import { type ExtendableItemTypes, type ExtractMenuType, MenuBaseClass, type MenuType } from './menuBaseClass'; -import type { SharedService } from '../services/shared.service'; +} from '../interfaces/index.js'; +import type { SlickEventData, SlickGrid } from '../core/index.js'; +import type { ExtensionUtility } from '../extensions/extensionUtility.js'; +import { type ExtendableItemTypes, type ExtractMenuType, MenuBaseClass, type MenuType } from './menuBaseClass.js'; +import type { SharedService } from '../services/shared.service.js'; export class MenuFromCellBaseClass extends MenuBaseClass { protected _currentCell = -1; diff --git a/packages/common/src/extensions/slickAutoTooltip.ts b/packages/common/src/extensions/slickAutoTooltip.ts index 498aa0506..d44e871b9 100644 --- a/packages/common/src/extensions/slickAutoTooltip.ts +++ b/packages/common/src/extensions/slickAutoTooltip.ts @@ -1,8 +1,8 @@ import { getHtmlStringOutput, stripTags } from '@slickgrid-universal/utils'; -import type { AutoTooltipOption, Column } from '../interfaces/index'; -import { SlickEventHandler, type SlickEventData, type SlickGrid } from '../core/index'; +import type { AutoTooltipOption, Column } from '../interfaces/index.js'; +import { SlickEventHandler, type SlickEventData, type SlickGrid } from '../core/index.js'; /** * AutoTooltips plugin to show/hide tooltips when columns are too narrow to fit content. diff --git a/packages/common/src/extensions/slickCellExcelCopyManager.ts b/packages/common/src/extensions/slickCellExcelCopyManager.ts index 1272ae1b3..248b59f0c 100644 --- a/packages/common/src/extensions/slickCellExcelCopyManager.ts +++ b/packages/common/src/extensions/slickCellExcelCopyManager.ts @@ -9,9 +9,9 @@ import type { FormatterResultWithHtml, FormatterResultWithText, GridOption, -} from '../interfaces/index'; -import { SlickCellExternalCopyManager, SlickCellSelectionModel } from './index'; -import { type SlickDataView, SlickEventHandler, SlickGlobalEditorLock, type SlickGrid } from '../core/index'; +} from '../interfaces/index.js'; +import { SlickCellExternalCopyManager, SlickCellSelectionModel } from './index.js'; +import { type SlickDataView, SlickEventHandler, SlickGlobalEditorLock, type SlickGrid } from '../core/index.js'; /* This manager enables users to copy/paste data from/to an external Spreadsheet application diff --git a/packages/common/src/extensions/slickCellExternalCopyManager.ts b/packages/common/src/extensions/slickCellExternalCopyManager.ts index 4ac3e5d9a..8b2acf7e1 100644 --- a/packages/common/src/extensions/slickCellExternalCopyManager.ts +++ b/packages/common/src/extensions/slickCellExternalCopyManager.ts @@ -1,8 +1,8 @@ import { createDomElement, getHtmlStringOutput, stripTags } from '@slickgrid-universal/utils'; -import { DataWrapperService } from '../services/dataWrapperService'; -import type { Column, CssStyleHash, Editor, EditorConstructor, ElementPosition, ExcelCopyBufferOption, ExternalCopyClipCommand, OnEventArgs } from '../interfaces/index'; -import { type SlickDataView, SlickEvent, SlickEventData, SlickEventHandler, type SlickGrid, SlickRange, Utils as SlickUtils } from '../core/index'; +import { DataWrapperService } from '../services/dataWrapperService.js'; +import type { Column, CssStyleHash, Editor, EditorConstructor, ElementPosition, ExcelCopyBufferOption, ExternalCopyClipCommand, OnEventArgs } from '../interfaces/index.js'; +import { type SlickDataView, SlickEvent, SlickEventData, SlickEventHandler, type SlickGrid, SlickRange, Utils as SlickUtils } from '../core/index.js'; // using external SlickGrid JS libraries const CLEAR_COPY_SELECTION_DELAY = 2000; diff --git a/packages/common/src/extensions/slickCellMenu.ts b/packages/common/src/extensions/slickCellMenu.ts index 8b0211594..1a382393c 100644 --- a/packages/common/src/extensions/slickCellMenu.ts +++ b/packages/common/src/extensions/slickCellMenu.ts @@ -9,11 +9,11 @@ import type { MenuCommandItemCallbackArgs, MenuOptionItem, OnClickEventArgs, -} from '../interfaces/index'; -import type { ExtensionUtility } from '../extensions/extensionUtility'; -import type { SharedService } from '../services/shared.service'; -import { MenuFromCellBaseClass } from './menuFromCellBaseClass'; -import type { SlickEventData } from '../core'; +} from '../interfaces/index.js'; +import type { ExtensionUtility } from '../extensions/extensionUtility.js'; +import type { SharedService } from '../services/shared.service.js'; +import { MenuFromCellBaseClass } from './menuFromCellBaseClass.js'; +import type { SlickEventData } from '../core/slickCore.js'; /** * A plugin to add Menu on a Cell click (click on the cell that has the cellMenu object defined) diff --git a/packages/common/src/extensions/slickCellRangeDecorator.ts b/packages/common/src/extensions/slickCellRangeDecorator.ts index 88183a6f9..5f9b8cdc2 100644 --- a/packages/common/src/extensions/slickCellRangeDecorator.ts +++ b/packages/common/src/extensions/slickCellRangeDecorator.ts @@ -1,7 +1,7 @@ import { createDomElement, deepMerge } from '@slickgrid-universal/utils'; -import type { CellRangeDecoratorOption, CSSStyleDeclarationWritable } from '../interfaces/index'; -import type { SlickGrid, SlickRange } from '../core/index'; +import type { CellRangeDecoratorOption, CSSStyleDeclarationWritable } from '../interfaces/index.js'; +import type { SlickGrid, SlickRange } from '../core/index.js'; /** * Displays an overlay on top of a given cell range. diff --git a/packages/common/src/extensions/slickCellRangeSelector.ts b/packages/common/src/extensions/slickCellRangeSelector.ts index d2611868d..e9f71111c 100644 --- a/packages/common/src/extensions/slickCellRangeSelector.ts +++ b/packages/common/src/extensions/slickCellRangeSelector.ts @@ -8,9 +8,9 @@ import type { GridOption, MouseOffsetViewport, OnScrollEventArgs, -} from '../interfaces/index'; -import { SlickCellRangeDecorator } from './index'; -import { SlickEvent, type SlickEventData, SlickEventHandler, type SlickGrid, SlickRange, Utils as SlickUtils } from '../core/index'; +} from '../interfaces/index.js'; +import { SlickCellRangeDecorator } from './index.js'; +import { SlickEvent, type SlickEventData, SlickEventHandler, type SlickGrid, SlickRange, Utils as SlickUtils } from '../core/index.js'; export class SlickCellRangeSelector { pluginName: 'CellRangeSelector' = 'CellRangeSelector' as const; diff --git a/packages/common/src/extensions/slickCellSelectionModel.ts b/packages/common/src/extensions/slickCellSelectionModel.ts index 6acd03872..0b30d5210 100644 --- a/packages/common/src/extensions/slickCellSelectionModel.ts +++ b/packages/common/src/extensions/slickCellSelectionModel.ts @@ -1,9 +1,9 @@ import { isDefined } from '@slickgrid-universal/utils'; -import { type SlickDataView, SlickEvent, SlickEventData, SlickEventHandler, SlickRange, type SlickGrid } from '../core/index'; -import type { SelectionModel } from '../enums/index'; -import type { CustomDataView, OnActiveCellChangedEventArgs } from '../interfaces/index'; -import { SlickCellRangeSelector } from './slickCellRangeSelector'; +import { type SlickDataView, SlickEvent, SlickEventData, SlickEventHandler, SlickRange, type SlickGrid } from '../core/index.js'; +import type { SelectionModel } from '../enums/index.js'; +import type { CustomDataView, OnActiveCellChangedEventArgs } from '../interfaces/index.js'; +import { SlickCellRangeSelector } from './slickCellRangeSelector.js'; export interface CellSelectionModelOption { selectActiveCell?: boolean; @@ -53,7 +53,7 @@ export class SlickCellSelectionModel implements SelectionModel { init(grid: SlickGrid): void { this._grid = grid; if (this._addonOptions === undefined || this._addonOptions.cellRangeSelector === undefined) { - this._selector = new SlickCellRangeSelector({ selectionCss: { border: `2px solid ${this._grid.getOptions().darkMode ? "white" : "black"}` } as CSSStyleDeclaration }) + this._selector = new SlickCellRangeSelector({ selectionCss: { border: `2px solid ${this._grid.getOptions().darkMode ? "white" : "black"}` } as CSSStyleDeclaration }); } if (grid.hasDataView()) { diff --git a/packages/common/src/extensions/slickCheckboxSelectColumn.ts b/packages/common/src/extensions/slickCheckboxSelectColumn.ts index a980bbadd..79e4ab2a2 100644 --- a/packages/common/src/extensions/slickCheckboxSelectColumn.ts +++ b/packages/common/src/extensions/slickCheckboxSelectColumn.ts @@ -2,10 +2,10 @@ import { BindingEventService } from '@slickgrid-universal/binding'; import type { BasePubSubService } from '@slickgrid-universal/event-pub-sub'; import { createDomElement, emptyElement } from '@slickgrid-universal/utils'; -import { type SlickDataView, type SlickEventData, SlickEventHandler, type SlickGrid } from '../core/index'; -import type { CheckboxSelectorOption, Column, DOMMouseOrTouchEvent, GridOption, OnHeaderClickEventArgs, OnKeyDownEventArgs, SelectableOverrideCallback } from '../interfaces/index'; -import { SlickRowSelectionModel } from './slickRowSelectionModel'; -import type { SelectionModel } from '../enums/index'; +import { type SlickDataView, type SlickEventData, SlickEventHandler, type SlickGrid } from '../core/index.js'; +import type { CheckboxSelectorOption, Column, DOMMouseOrTouchEvent, GridOption, OnHeaderClickEventArgs, OnKeyDownEventArgs, SelectableOverrideCallback } from '../interfaces/index.js'; +import { SlickRowSelectionModel } from './slickRowSelectionModel.js'; +import type { SelectionModel } from '../enums/index.js'; export interface RowLookup { [row: number]: boolean; } diff --git a/packages/common/src/extensions/slickColumnPicker.ts b/packages/common/src/extensions/slickColumnPicker.ts index 26ad9b52e..783ee1f03 100644 --- a/packages/common/src/extensions/slickColumnPicker.ts +++ b/packages/common/src/extensions/slickColumnPicker.ts @@ -2,17 +2,17 @@ import { BindingEventService } from '@slickgrid-universal/binding'; import type { BasePubSubService } from '@slickgrid-universal/event-pub-sub'; import { createDomElement, emptyElement, findWidthOrDefault, getHtmlStringOutput } from '@slickgrid-universal/utils'; -import type { Column, ColumnPickerOption, DOMMouseOrTouchEvent, GridOption, OnColumnsChangedArgs } from '../interfaces/index'; -import type { ExtensionUtility } from '../extensions/extensionUtility'; -import type { SharedService } from '../services/shared.service'; +import type { Column, ColumnPickerOption, DOMMouseOrTouchEvent, GridOption, OnColumnsChangedArgs } from '../interfaces/index.js'; +import type { ExtensionUtility } from '../extensions/extensionUtility.js'; +import type { SharedService } from '../services/shared.service.js'; import { addColumnTitleElementWhenDefined, addCloseButtomElement, handleColumnPickerItemClick, populateColumnPicker, updateColumnPickerOrder -} from '../extensions/extensionCommonUtils'; -import { SlickEvent, type SlickEventData, SlickEventHandler, type SlickGrid } from '../core/index'; +} from '../extensions/extensionCommonUtils.js'; +import { SlickEvent, type SlickEventData, SlickEventHandler, type SlickGrid } from '../core/index.js'; /** * A control to add a Column Picker (right+click on any column header to reveal the column picker) diff --git a/packages/common/src/extensions/slickContextMenu.ts b/packages/common/src/extensions/slickContextMenu.ts index fcbc86a42..fb787ba16 100644 --- a/packages/common/src/extensions/slickContextMenu.ts +++ b/packages/common/src/extensions/slickContextMenu.ts @@ -7,15 +7,15 @@ import type { MenuCommandItem, MenuCommandItemCallbackArgs, MenuOptionItem, -} from '../interfaces/index'; -import type { SlickEventData, SlickGrid } from '../core'; -import { DelimiterType, FileType } from '../enums/index'; -import { type ExcelExportService, getCellValueFromQueryFieldGetter, getTranslationPrefix, type TextExportService } from '../services/index'; -import { exportWithFormatterWhenDefined } from '../formatters/formatterUtilities'; -import type { ExtensionUtility } from '../extensions/extensionUtility'; -import type { SharedService } from '../services/shared.service'; -import type { TreeDataService } from '../services/treeData.service'; -import { MenuFromCellBaseClass } from './menuFromCellBaseClass'; +} from '../interfaces/index.js'; +import type { SlickEventData, SlickGrid } from '../core/index.js'; +import { DelimiterType, FileType } from '../enums/index.js'; +import { type ExcelExportService, getCellValueFromQueryFieldGetter, getTranslationPrefix, type TextExportService } from '../services/index.js'; +import { exportWithFormatterWhenDefined } from '../formatters/formatterUtilities.js'; +import type { ExtensionUtility } from '../extensions/extensionUtility.js'; +import type { SharedService } from '../services/shared.service.js'; +import type { TreeDataService } from '../services/treeData.service.js'; +import { MenuFromCellBaseClass } from './menuFromCellBaseClass.js'; /** diff --git a/packages/common/src/extensions/slickDraggableGrouping.ts b/packages/common/src/extensions/slickDraggableGrouping.ts index af754f8c9..2fb34f14d 100644 --- a/packages/common/src/extensions/slickDraggableGrouping.ts +++ b/packages/common/src/extensions/slickDraggableGrouping.ts @@ -3,8 +3,8 @@ import type { BasePubSubService, EventSubscription } from '@slickgrid-universal/ import { createDomElement, emptyElement, isEmptyObject, classNameToList } from '@slickgrid-universal/utils'; import Sortable, { type Options as SortableOptions, type SortableEvent } from 'sortablejs'; -import type { ExtensionUtility } from '../extensions/extensionUtility'; -import { SortDirectionNumber } from '../enums/index'; +import type { ExtensionUtility } from '../extensions/extensionUtility.js'; +import { SortDirectionNumber } from '../enums/index.js'; import type { Column, DOMMouseOrTouchEvent, @@ -13,10 +13,10 @@ import type { GridOption, Grouping, GroupingGetterFunction, -} from '../interfaces/index'; -import type { SharedService } from '../services/shared.service'; -import { sortByFieldType } from '../sortComparers'; -import { type SlickDataView, SlickEvent, SlickEventData, SlickEventHandler, type SlickGrid, } from '../core/index'; +} from '../interfaces/index.js'; +import type { SharedService } from '../services/shared.service.js'; +import { sortByFieldType } from '../sortComparers/sortUtilities.js'; +import { type SlickDataView, SlickEvent, SlickEventData, SlickEventHandler, type SlickGrid, } from '../core/index.js'; /** * diff --git a/packages/common/src/extensions/slickGridMenu.ts b/packages/common/src/extensions/slickGridMenu.ts index 53260910a..64a9b631b 100644 --- a/packages/common/src/extensions/slickGridMenu.ts +++ b/packages/common/src/extensions/slickGridMenu.ts @@ -12,18 +12,18 @@ import type { GridMenuOption, GridOption, onGridMenuColumnsChangedCallbackArgs, -} from '../interfaces/index'; -import { DelimiterType, FileType } from '../enums/index'; -import type { ExtensionUtility } from '../extensions/extensionUtility'; -import { getTranslationPrefix, } from '../services/index'; -import type { ExcelExportService } from '../services/excelExport.service'; -import type { FilterService } from '../services/filter.service'; -import type { SharedService } from '../services/shared.service'; -import type { SortService } from '../services/sort.service'; -import type { TextExportService } from '../services/textExport.service'; -import { addColumnTitleElementWhenDefined, addCloseButtomElement, handleColumnPickerItemClick, populateColumnPicker, updateColumnPickerOrder } from '../extensions/extensionCommonUtils'; -import { type ExtendableItemTypes, type ExtractMenuType, MenuBaseClass, type MenuType } from '../extensions/menuBaseClass'; -import { SlickEvent, Utils as SlickUtils } from '../core/index'; +} from '../interfaces/index.js'; +import { DelimiterType, FileType } from '../enums/index.js'; +import type { ExtensionUtility } from '../extensions/extensionUtility.js'; +import { getTranslationPrefix, } from '../services/index.js'; +import type { ExcelExportService } from '../services/excelExport.service.js'; +import type { FilterService } from '../services/filter.service.js'; +import type { SharedService } from '../services/shared.service.js'; +import type { SortService } from '../services/sort.service.js'; +import type { TextExportService } from '../services/textExport.service.js'; +import { addColumnTitleElementWhenDefined, addCloseButtomElement, handleColumnPickerItemClick, populateColumnPicker, updateColumnPickerOrder } from '../extensions/extensionCommonUtils.js'; +import { type ExtendableItemTypes, type ExtractMenuType, MenuBaseClass, type MenuType } from '../extensions/menuBaseClass.js'; +import { SlickEvent, Utils as SlickUtils } from '../core/index.js'; /** * A control to add a Grid Menu with Extra Commands & Column Picker (hambuger menu on top-right of the grid) diff --git a/packages/common/src/extensions/slickGroupItemMetadataProvider.ts b/packages/common/src/extensions/slickGroupItemMetadataProvider.ts index 93b56357b..d49f8e1de 100644 --- a/packages/common/src/extensions/slickGroupItemMetadataProvider.ts +++ b/packages/common/src/extensions/slickGroupItemMetadataProvider.ts @@ -1,6 +1,6 @@ import { createDomElement, extend } from '@slickgrid-universal/utils'; -import { SlickEventHandler, type SlickDataView, SlickGroup, type SlickGrid, type SlickEventData } from '../core/index'; +import { SlickEventHandler, type SlickDataView, SlickGroup, type SlickGrid, type SlickEventData } from '../core/index.js'; import type { Column, Formatter, @@ -10,7 +10,7 @@ import type { ItemMetadata, OnClickEventArgs, SlickPlugin, -} from '../interfaces/index'; +} from '../interfaces/index.js'; /** * Provides item metadata for group (SlickGroup) and totals (SlickTotals) rows produced by the DataView. diff --git a/packages/common/src/extensions/slickHeaderButtons.ts b/packages/common/src/extensions/slickHeaderButtons.ts index 0a5a02de1..37c76e5f6 100644 --- a/packages/common/src/extensions/slickHeaderButtons.ts +++ b/packages/common/src/extensions/slickHeaderButtons.ts @@ -10,11 +10,11 @@ import type { HeaderButtonOnCommandArgs, HeaderButtonOption, OnHeaderCellRenderedEventArgs, -} from '../interfaces/index'; -import type { ExtensionUtility } from '../extensions/extensionUtility'; -import type { SharedService } from '../services/shared.service'; -import { type ExtendableItemTypes, type ExtractMenuType, MenuBaseClass, type MenuType } from './menuBaseClass'; -import { SlickEventHandler, type SlickEventData, type SlickGrid } from '../core/index'; +} from '../interfaces/index.js'; +import type { ExtensionUtility } from '../extensions/extensionUtility.js'; +import type { SharedService } from '../services/shared.service.js'; +import { type ExtendableItemTypes, type ExtractMenuType, MenuBaseClass, type MenuType } from './menuBaseClass.js'; +import { SlickEventHandler, type SlickEventData, type SlickGrid } from '../core/index.js'; /** * A plugin to add custom buttons to column headers. diff --git a/packages/common/src/extensions/slickHeaderMenu.ts b/packages/common/src/extensions/slickHeaderMenu.ts index dda68e7ce..ec37b72d8 100644 --- a/packages/common/src/extensions/slickHeaderMenu.ts +++ b/packages/common/src/extensions/slickHeaderMenu.ts @@ -1,7 +1,7 @@ import type { BasePubSubService } from '@slickgrid-universal/event-pub-sub'; import { arrayRemoveItemByIndex, calculateAvailableSpace, createDomElement, getOffsetRelativeToParent, getOffset, classNameToList, toKebabCase } from '@slickgrid-universal/utils'; -import { EmitterType } from '../enums/index'; +import { EmitterType } from '../enums/index.js'; import type { Column, CurrentSorter, @@ -15,14 +15,14 @@ import type { MenuCommandItemCallbackArgs, MultiColumnSort, OnHeaderCellRenderedEventArgs, -} from '../interfaces/index'; -import type { SlickEventData } from '../core'; -import { getTranslationPrefix } from '../services/index'; -import type { ExtensionUtility } from '../extensions/extensionUtility'; -import type { FilterService } from '../services/filter.service'; -import type { SharedService } from '../services/shared.service'; -import type { SortService } from '../services/sort.service'; -import { type ExtendableItemTypes, type ExtractMenuType, MenuBaseClass, type MenuType } from './menuBaseClass'; +} from '../interfaces/index.js'; +import type { SlickEventData } from '../core/slickCore.js'; +import { getTranslationPrefix } from '../services/index.js'; +import type { ExtensionUtility } from '../extensions/extensionUtility.js'; +import type { FilterService } from '../services/filter.service.js'; +import type { SharedService } from '../services/shared.service.js'; +import type { SortService } from '../services/sort.service.js'; +import { type ExtendableItemTypes, type ExtractMenuType, MenuBaseClass, type MenuType } from './menuBaseClass.js'; /** * A plugin to add drop-down menus to column headers. diff --git a/packages/common/src/extensions/slickRowBasedEdit.ts b/packages/common/src/extensions/slickRowBasedEdit.ts index 099f3ba00..b2846934e 100644 --- a/packages/common/src/extensions/slickRowBasedEdit.ts +++ b/packages/common/src/extensions/slickRowBasedEdit.ts @@ -10,10 +10,10 @@ import type { OnRowsOrCountChangedEventArgs, OnSetOptionsEventArgs, RowBasedEditOptions, -} from '../interfaces/index'; -import { type SlickEventData, SlickEventHandler, SlickGlobalEditorLock, type SlickGrid } from '../core/index'; -import type { GridService } from '../services'; -import type { ExtensionUtility } from './extensionUtility'; +} from '../interfaces/index.js'; +import { type SlickEventData, SlickEventHandler, SlickGlobalEditorLock, type SlickGrid } from '../core/index.js'; +import type { GridService } from '../services/grid.service.js'; +import type { ExtensionUtility } from './extensionUtility.js'; export const ROW_BASED_EDIT_ROW_HIGHLIGHT_CLASS = 'slick-rbe-editmode'; export const ROW_BASED_EDIT_UNSAVED_CELL = 'slick-rbe-unsaved-cell'; diff --git a/packages/common/src/extensions/slickRowMoveManager.ts b/packages/common/src/extensions/slickRowMoveManager.ts index 8f785fb94..6c2c7bdd0 100644 --- a/packages/common/src/extensions/slickRowMoveManager.ts +++ b/packages/common/src/extensions/slickRowMoveManager.ts @@ -1,7 +1,7 @@ import type { BasePubSubService } from '@slickgrid-universal/event-pub-sub'; import { createDomElement, findWidthOrDefault, getOffset } from '@slickgrid-universal/utils'; -import type { UsabilityOverrideFn } from '../enums/usabilityOverrideFn.type'; +import type { UsabilityOverrideFn } from '../enums/usabilityOverrideFn.type.js'; import type { Column, DragRowMove, @@ -9,8 +9,8 @@ import type { GridOption, RowMoveManager, RowMoveManagerOption, -} from '../interfaces/index'; -import { SlickEvent, SlickEventData, SlickEventHandler, type SlickGrid, Utils as SlickUtils } from '../core/index'; +} from '../interfaces/index.js'; +import { SlickEvent, SlickEventData, SlickEventHandler, type SlickGrid, Utils as SlickUtils } from '../core/index.js'; /** * Row Move Manager options: diff --git a/packages/common/src/extensions/slickRowSelectionModel.ts b/packages/common/src/extensions/slickRowSelectionModel.ts index 0f880d0c2..95c8ab48a 100644 --- a/packages/common/src/extensions/slickRowSelectionModel.ts +++ b/packages/common/src/extensions/slickRowSelectionModel.ts @@ -1,7 +1,7 @@ -import { type SelectionModel } from '../enums/index'; -import type { GridOption, OnActiveCellChangedEventArgs, RowSelectionModelOption, } from '../interfaces/index'; -import { SlickCellRangeSelector } from '../extensions/slickCellRangeSelector'; -import { SlickEvent, SlickEventData, SlickEventHandler, type SlickGrid, SlickRange } from '../core/index'; +import { type SelectionModel } from '../enums/index.js'; +import type { GridOption, OnActiveCellChangedEventArgs, RowSelectionModelOption, } from '../interfaces/index.js'; +import { SlickCellRangeSelector } from '../extensions/slickCellRangeSelector.js'; +import { SlickEvent, SlickEventData, SlickEventHandler, type SlickGrid, SlickRange } from '../core/index.js'; export class SlickRowSelectionModel implements SelectionModel { pluginName: 'RowSelectionModel' = 'RowSelectionModel' as const; diff --git a/packages/common/src/filter-conditions/__tests__/booleanFilterCondition.spec.ts b/packages/common/src/filter-conditions/__tests__/booleanFilterCondition.spec.ts index 3f5ec3a62..e1cde8214 100644 --- a/packages/common/src/filter-conditions/__tests__/booleanFilterCondition.spec.ts +++ b/packages/common/src/filter-conditions/__tests__/booleanFilterCondition.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it } from 'vitest'; -import { FieldType } from '../../enums/index'; -import type { FilterConditionOption } from '../../interfaces/index'; -import { executeBooleanFilterCondition, getFilterParsedBoolean } from '../booleanFilterCondition'; -import { executeFilterConditionTest } from '../filterConditionProcesses'; +import { FieldType } from '../../enums/index.js'; +import type { FilterConditionOption } from '../../interfaces/index.js'; +import { executeBooleanFilterCondition, getFilterParsedBoolean } from '../booleanFilterCondition.js'; +import { executeFilterConditionTest } from '../filterConditionProcesses.js'; /** will return True in all cases with only 1 exception when the only searchTerm is inversed to the cell value */ diff --git a/packages/common/src/filter-conditions/__tests__/collectionSearchFilterCondition.spec.ts b/packages/common/src/filter-conditions/__tests__/collectionSearchFilterCondition.spec.ts index 42277a902..f14ad33cd 100644 --- a/packages/common/src/filter-conditions/__tests__/collectionSearchFilterCondition.spec.ts +++ b/packages/common/src/filter-conditions/__tests__/collectionSearchFilterCondition.spec.ts @@ -1,9 +1,9 @@ import { describe, expect, it } from 'vitest'; -import { FieldType } from '../../enums/index'; -import type { FilterConditionOption } from '../../interfaces/index'; -import { executeCollectionSearchFilterCondition } from '../collectionSearchFilterCondition'; -import { executeFilterConditionTest } from '../filterConditionProcesses'; +import { FieldType } from '../../enums/index.js'; +import type { FilterConditionOption } from '../../interfaces/index.js'; +import { executeCollectionSearchFilterCondition } from '../collectionSearchFilterCondition.js'; +import { executeFilterConditionTest } from '../filterConditionProcesses.js'; describe('executeCollectionSearchFilterCondition method', () => { it('should return False when searchTerms is empty', () => { diff --git a/packages/common/src/filter-conditions/__tests__/dateEuroFilterCondition.spec.ts b/packages/common/src/filter-conditions/__tests__/dateEuroFilterCondition.spec.ts index 8c09d1af0..de75e7071 100644 --- a/packages/common/src/filter-conditions/__tests__/dateEuroFilterCondition.spec.ts +++ b/packages/common/src/filter-conditions/__tests__/dateEuroFilterCondition.spec.ts @@ -1,9 +1,9 @@ import { describe, expect, it } from 'vitest'; -import { FieldType } from '../../enums/index'; -import type { FilterConditionOption } from '../../interfaces/index'; -import { getFilterParsedDates } from '../dateFilterCondition'; -import { executeFilterConditionTest } from '../filterConditionProcesses'; +import { FieldType } from '../../enums/index.js'; +import type { FilterConditionOption } from '../../interfaces/index.js'; +import { getFilterParsedDates } from '../dateFilterCondition.js'; +import { executeFilterConditionTest } from '../filterConditionProcesses.js'; describe('dateEuroFilterCondition method', () => { it('should return False when no cell value is provided, neither search terms', () => { diff --git a/packages/common/src/filter-conditions/__tests__/dateEuroShortFilterCondition.spec.ts b/packages/common/src/filter-conditions/__tests__/dateEuroShortFilterCondition.spec.ts index 829cd2677..ce1c1d815 100644 --- a/packages/common/src/filter-conditions/__tests__/dateEuroShortFilterCondition.spec.ts +++ b/packages/common/src/filter-conditions/__tests__/dateEuroShortFilterCondition.spec.ts @@ -1,9 +1,9 @@ import { describe, expect, it } from 'vitest'; -import { FieldType } from '../../enums/index'; -import type { FilterConditionOption } from '../../interfaces/index'; -import { getFilterParsedDates } from '../dateFilterCondition'; -import { executeFilterConditionTest } from '../filterConditionProcesses'; +import { FieldType } from '../../enums/index.js'; +import type { FilterConditionOption } from '../../interfaces/index.js'; +import { getFilterParsedDates } from '../dateFilterCondition.js'; +import { executeFilterConditionTest } from '../filterConditionProcesses.js'; describe('dateEuroShortFilterCondition method', () => { it('should return False when no cell value is provided, neither search terms', () => { diff --git a/packages/common/src/filter-conditions/__tests__/dateFilterCondition.spec.ts b/packages/common/src/filter-conditions/__tests__/dateFilterCondition.spec.ts index 67e09cb91..0519391b1 100644 --- a/packages/common/src/filter-conditions/__tests__/dateFilterCondition.spec.ts +++ b/packages/common/src/filter-conditions/__tests__/dateFilterCondition.spec.ts @@ -1,9 +1,9 @@ import { describe, expect, it } from 'vitest'; -import { FieldType } from '../../enums/index'; -import type { FilterConditionOption } from '../../interfaces/index'; -import { getFilterParsedDates } from '../dateFilterCondition'; -import { executeFilterConditionTest } from '../filterConditionProcesses'; +import { FieldType } from '../../enums/index.js'; +import type { FilterConditionOption } from '../../interfaces/index.js'; +import { getFilterParsedDates } from '../dateFilterCondition.js'; +import { executeFilterConditionTest } from '../filterConditionProcesses.js'; describe('dateFilterCondition method', () => { it('should return False when no cell value is provided, neither search terms', () => { diff --git a/packages/common/src/filter-conditions/__tests__/dateIsoFilterCondition.spec.ts b/packages/common/src/filter-conditions/__tests__/dateIsoFilterCondition.spec.ts index f18f0af92..4856f04a1 100644 --- a/packages/common/src/filter-conditions/__tests__/dateIsoFilterCondition.spec.ts +++ b/packages/common/src/filter-conditions/__tests__/dateIsoFilterCondition.spec.ts @@ -1,9 +1,9 @@ import { describe, expect, it } from 'vitest'; -import { FieldType, OperatorType } from '../../enums/index'; -import type { FilterConditionOption } from '../../interfaces/index'; -import { executeDateFilterCondition, getFilterParsedDates } from '../dateFilterCondition'; -import { executeFilterConditionTest, getParsedSearchTermsByFieldType } from '../filterConditionProcesses'; +import { FieldType, OperatorType } from '../../enums/index.js'; +import type { FilterConditionOption } from '../../interfaces/index.js'; +import { executeDateFilterCondition, getFilterParsedDates } from '../dateFilterCondition.js'; +import { executeFilterConditionTest, getParsedSearchTermsByFieldType } from '../filterConditionProcesses.js'; describe('dateIsoFilterCondition method', () => { describe('when using executeFilterConditionTest method', () => { diff --git a/packages/common/src/filter-conditions/__tests__/dateUsFilterCondition.spec.ts b/packages/common/src/filter-conditions/__tests__/dateUsFilterCondition.spec.ts index c2779f5b5..0b8496776 100644 --- a/packages/common/src/filter-conditions/__tests__/dateUsFilterCondition.spec.ts +++ b/packages/common/src/filter-conditions/__tests__/dateUsFilterCondition.spec.ts @@ -1,9 +1,9 @@ import { describe, expect, it } from 'vitest'; -import { FieldType } from '../../enums/index'; -import type { FilterConditionOption } from '../../interfaces/index'; -import { getFilterParsedDates } from '../dateFilterCondition'; -import { executeFilterConditionTest } from '../filterConditionProcesses'; +import { FieldType } from '../../enums/index.js'; +import type { FilterConditionOption } from '../../interfaces/index.js'; +import { getFilterParsedDates } from '../dateFilterCondition.js'; +import { executeFilterConditionTest } from '../filterConditionProcesses.js'; describe('dateUsFilterCondition method', () => { it('should return False when no cell value is provided, neither search terms', () => { diff --git a/packages/common/src/filter-conditions/__tests__/dateUsShortFilterCondition.spec.ts b/packages/common/src/filter-conditions/__tests__/dateUsShortFilterCondition.spec.ts index b34772673..011b7fe2b 100644 --- a/packages/common/src/filter-conditions/__tests__/dateUsShortFilterCondition.spec.ts +++ b/packages/common/src/filter-conditions/__tests__/dateUsShortFilterCondition.spec.ts @@ -1,9 +1,9 @@ import { describe, expect, it } from 'vitest'; -import { FieldType } from '../../enums/index'; -import type { FilterConditionOption } from '../../interfaces/index'; -import { getFilterParsedDates } from '../dateFilterCondition'; -import { executeFilterConditionTest } from '../filterConditionProcesses'; +import { FieldType } from '../../enums/index.js'; +import type { FilterConditionOption } from '../../interfaces/index.js'; +import { getFilterParsedDates } from '../dateFilterCondition.js'; +import { executeFilterConditionTest } from '../filterConditionProcesses.js'; describe('dateUsShortFilterCondition method', () => { it('should return False when no cell value is provided, neither search terms', () => { diff --git a/packages/common/src/filter-conditions/__tests__/dateUtcFilterCondition.spec.ts b/packages/common/src/filter-conditions/__tests__/dateUtcFilterCondition.spec.ts index 716089c57..2ab82a7e2 100644 --- a/packages/common/src/filter-conditions/__tests__/dateUtcFilterCondition.spec.ts +++ b/packages/common/src/filter-conditions/__tests__/dateUtcFilterCondition.spec.ts @@ -1,9 +1,9 @@ import { describe, expect, it } from 'vitest'; -import { FieldType } from '../../enums/index'; -import type { FilterConditionOption } from '../../interfaces/index'; -import { getFilterParsedDates } from '../dateFilterCondition'; -import { executeFilterConditionTest } from '../filterConditionProcesses'; +import { FieldType } from '../../enums/index.js'; +import type { FilterConditionOption } from '../../interfaces/index.js'; +import { getFilterParsedDates } from '../dateFilterCondition.js'; +import { executeFilterConditionTest } from '../filterConditionProcesses.js'; describe('dateUtcFilterCondition method', () => { it('should return False when no cell value is provided, neither search terms', () => { diff --git a/packages/common/src/filter-conditions/__tests__/filterConditionProcesses.spec.ts b/packages/common/src/filter-conditions/__tests__/filterConditionProcesses.spec.ts index f5753aca6..14d778df4 100644 --- a/packages/common/src/filter-conditions/__tests__/filterConditionProcesses.spec.ts +++ b/packages/common/src/filter-conditions/__tests__/filterConditionProcesses.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; -import { getParsedSearchTermsByFieldType } from '../filterConditionProcesses'; +import { getParsedSearchTermsByFieldType } from '../filterConditionProcesses.js'; describe('getParsedSearchTermsByFieldType method', () => { it('should get parsed result as the first array item boolean when a boolean field type is provided', () => { diff --git a/packages/common/src/filter-conditions/__tests__/filterUtilities.spec.ts b/packages/common/src/filter-conditions/__tests__/filterUtilities.spec.ts index b7208b652..c7a213951 100644 --- a/packages/common/src/filter-conditions/__tests__/filterUtilities.spec.ts +++ b/packages/common/src/filter-conditions/__tests__/filterUtilities.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; -import { compareObjects, testFilterCondition } from '../filterUtilities'; +import { compareObjects, testFilterCondition } from '../filterUtilities.js'; describe('filterUtilities', () => { describe('compareObjects method', () => { diff --git a/packages/common/src/filter-conditions/__tests__/numberFilterCondition.spec.ts b/packages/common/src/filter-conditions/__tests__/numberFilterCondition.spec.ts index 131bfc7a5..a992a56a6 100644 --- a/packages/common/src/filter-conditions/__tests__/numberFilterCondition.spec.ts +++ b/packages/common/src/filter-conditions/__tests__/numberFilterCondition.spec.ts @@ -1,9 +1,9 @@ import { describe, expect, it } from 'vitest'; -import { FieldType, OperatorType } from '../../enums/index'; -import type { FilterConditionOption } from '../../interfaces/index'; -import { executeFilterConditionTest } from '../filterConditionProcesses'; -import { executeNumberFilterCondition, getFilterParsedNumbers } from '../numberFilterCondition'; +import { FieldType, OperatorType } from '../../enums/index.js'; +import type { FilterConditionOption } from '../../interfaces/index.js'; +import { executeFilterConditionTest } from '../filterConditionProcesses.js'; +import { executeNumberFilterCondition, getFilterParsedNumbers } from '../numberFilterCondition.js'; describe('executeNumberFilterCondition method', () => { it('should return False when no cell value is provided, neither search terms', () => { diff --git a/packages/common/src/filter-conditions/__tests__/objectFilterCondition.spec.ts b/packages/common/src/filter-conditions/__tests__/objectFilterCondition.spec.ts index 695e4e5c0..8a58e7b22 100644 --- a/packages/common/src/filter-conditions/__tests__/objectFilterCondition.spec.ts +++ b/packages/common/src/filter-conditions/__tests__/objectFilterCondition.spec.ts @@ -1,9 +1,9 @@ import { beforeEach, describe, expect, it } from 'vitest'; -import { FieldType } from '../../enums/index'; -import type { FilterConditionOption } from '../../interfaces/index'; -import { executeFilterConditionTest } from '../filterConditionProcesses'; -import { executeObjectFilterCondition, getFilterParsedObjectResult } from '../objectFilterCondition'; +import { FieldType } from '../../enums/index.js'; +import type { FilterConditionOption } from '../../interfaces/index.js'; +import { executeFilterConditionTest } from '../filterConditionProcesses.js'; +import { executeObjectFilterCondition, getFilterParsedObjectResult } from '../objectFilterCondition.js'; describe('executeObjectFilterCondition method', () => { let mockRow; diff --git a/packages/common/src/filter-conditions/__tests__/stringFilterCondition.spec.ts b/packages/common/src/filter-conditions/__tests__/stringFilterCondition.spec.ts index 076f7217f..fff12cbd0 100644 --- a/packages/common/src/filter-conditions/__tests__/stringFilterCondition.spec.ts +++ b/packages/common/src/filter-conditions/__tests__/stringFilterCondition.spec.ts @@ -1,9 +1,9 @@ import { describe, expect, it } from 'vitest'; -import { FieldType, OperatorType } from '../../enums/index'; -import type { FilterConditionOption } from '../../interfaces/index'; -import { executeFilterConditionTest } from '../filterConditionProcesses'; -import { executeStringFilterCondition, getFilterParsedText } from '../stringFilterCondition'; +import { FieldType, OperatorType } from '../../enums/index.js'; +import type { FilterConditionOption } from '../../interfaces/index.js'; +import { executeFilterConditionTest } from '../filterConditionProcesses.js'; +import { executeStringFilterCondition, getFilterParsedText } from '../stringFilterCondition.js'; describe('executeStringFilterCondition method', () => { it('should return True when no cell input value is provided which is equal to the default search term, neither search terms', () => { diff --git a/packages/common/src/filter-conditions/booleanFilterCondition.ts b/packages/common/src/filter-conditions/booleanFilterCondition.ts index b5d624113..b9abe7a83 100644 --- a/packages/common/src/filter-conditions/booleanFilterCondition.ts +++ b/packages/common/src/filter-conditions/booleanFilterCondition.ts @@ -1,7 +1,7 @@ import { parseBoolean } from '@slickgrid-universal/utils'; -import type { SearchTerm } from '../enums/index'; -import type { FilterCondition, FilterConditionOption } from './../interfaces/index'; +import type { SearchTerm } from '../enums/index.js'; +import type { FilterCondition, FilterConditionOption } from './../interfaces/index.js'; /** Execute filter condition check on each cell */ export const executeBooleanFilterCondition: FilterCondition = ((options: FilterConditionOption, parsedSearchValue: boolean | undefined) => { diff --git a/packages/common/src/filter-conditions/collectionSearchFilterCondition.ts b/packages/common/src/filter-conditions/collectionSearchFilterCondition.ts index 696b4d021..2220ab073 100644 --- a/packages/common/src/filter-conditions/collectionSearchFilterCondition.ts +++ b/packages/common/src/filter-conditions/collectionSearchFilterCondition.ts @@ -1,5 +1,5 @@ -import type { FilterCondition, FilterConditionOption } from '../interfaces/index'; -import { testFilterCondition } from './filterUtilities'; +import type { FilterCondition, FilterConditionOption } from '../interfaces/index.js'; +import { testFilterCondition } from './filterUtilities.js'; /** * Execute filter condition check on each cell. diff --git a/packages/common/src/filter-conditions/dateFilterCondition.ts b/packages/common/src/filter-conditions/dateFilterCondition.ts index 75e3524a0..932194855 100644 --- a/packages/common/src/filter-conditions/dateFilterCondition.ts +++ b/packages/common/src/filter-conditions/dateFilterCondition.ts @@ -1,9 +1,9 @@ import { dayStart } from '@formkit/tempo'; -import { FieldType, OperatorType, type SearchTerm } from '../enums/index'; -import type { FilterConditionOption } from '../interfaces/index'; -import { testFilterCondition } from './filterUtilities'; -import { mapTempoDateFormatWithFieldType, tryParseDate } from '../services'; +import { FieldType, OperatorType, type SearchTerm } from '../enums/index.js'; +import type { FilterConditionOption } from '../interfaces/index.js'; +import { testFilterCondition } from './filterUtilities.js'; +import { mapTempoDateFormatWithFieldType, tryParseDate } from '../services/index.js'; /** * Execute Date filter condition check on each cell and use correct date format depending on it's field type (or filterSearchType when that is provided) diff --git a/packages/common/src/filter-conditions/filterConditionProcesses.ts b/packages/common/src/filter-conditions/filterConditionProcesses.ts index 4d63d3f4a..9aae6b953 100644 --- a/packages/common/src/filter-conditions/filterConditionProcesses.ts +++ b/packages/common/src/filter-conditions/filterConditionProcesses.ts @@ -1,13 +1,13 @@ -import { FieldType, type SearchTerm } from '../enums/index'; -import type { FilterCondition, FilterConditionOption } from '../interfaces/index'; -import { executeBooleanFilterCondition, getFilterParsedBoolean } from './booleanFilterCondition'; -import { executeCollectionSearchFilterCondition } from './collectionSearchFilterCondition'; -import { getFilterParsedNumbers, executeNumberFilterCondition } from './numberFilterCondition'; -import { executeDateFilterCondition, getFilterParsedDates } from './dateFilterCondition'; -import { executeObjectFilterCondition, getFilterParsedObjectResult } from './objectFilterCondition'; -import { executeStringFilterCondition, getFilterParsedText } from './stringFilterCondition'; -import { isCollectionOperator } from './filterUtilities'; -import { isColumnDateType } from '../services/utilities'; +import { FieldType, type SearchTerm } from '../enums/index.js'; +import type { FilterCondition, FilterConditionOption } from '../interfaces/index.js'; +import { executeBooleanFilterCondition, getFilterParsedBoolean } from './booleanFilterCondition.js'; +import { executeCollectionSearchFilterCondition } from './collectionSearchFilterCondition.js'; +import { getFilterParsedNumbers, executeNumberFilterCondition } from './numberFilterCondition.js'; +import { executeDateFilterCondition, getFilterParsedDates } from './dateFilterCondition.js'; +import { executeObjectFilterCondition, getFilterParsedObjectResult } from './objectFilterCondition.js'; +import { executeStringFilterCondition, getFilterParsedText } from './stringFilterCondition.js'; +import { isCollectionOperator } from './filterUtilities.js'; +import { isColumnDateType } from '../services/utilities.js'; /** * General variable types, just 5x types instead of the multiple FieldType. diff --git a/packages/common/src/filter-conditions/filterConditions.index.ts b/packages/common/src/filter-conditions/filterConditions.index.ts index 2dcfed184..8dcfbb084 100644 --- a/packages/common/src/filter-conditions/filterConditions.index.ts +++ b/packages/common/src/filter-conditions/filterConditions.index.ts @@ -1,9 +1,9 @@ -import { executeBooleanFilterCondition } from './booleanFilterCondition'; -import { executeFilterConditionTest } from './filterConditionProcesses'; -import { executeCollectionSearchFilterCondition } from './collectionSearchFilterCondition'; -import { executeNumberFilterCondition } from './numberFilterCondition'; -import { executeStringFilterCondition } from './stringFilterCondition'; -import type { FilterCondition } from '../interfaces/index'; +import { executeBooleanFilterCondition } from './booleanFilterCondition.js'; +import { executeFilterConditionTest } from './filterConditionProcesses.js'; +import { executeCollectionSearchFilterCondition } from './collectionSearchFilterCondition.js'; +import { executeNumberFilterCondition } from './numberFilterCondition.js'; +import { executeStringFilterCondition } from './stringFilterCondition.js'; +import type { FilterCondition } from '../interfaces/index.js'; export const FilterConditions: Record = { executeFilterConditionTest: executeFilterConditionTest as FilterCondition, diff --git a/packages/common/src/filter-conditions/filterUtilities.ts b/packages/common/src/filter-conditions/filterUtilities.ts index 182234232..1e1f7338a 100644 --- a/packages/common/src/filter-conditions/filterUtilities.ts +++ b/packages/common/src/filter-conditions/filterUtilities.ts @@ -1,4 +1,4 @@ -import type { OperatorString } from '../enums/index'; +import type { OperatorString } from '../enums/index.js'; /** * Compare 2 objects, diff --git a/packages/common/src/filter-conditions/index.ts b/packages/common/src/filter-conditions/index.ts index db1cdb8c6..7b530b1d1 100644 --- a/packages/common/src/filter-conditions/index.ts +++ b/packages/common/src/filter-conditions/index.ts @@ -1,9 +1,9 @@ -export * from './stringFilterCondition'; -export * from './objectFilterCondition'; -export * from './numberFilterCondition'; -export * from './filterUtilities'; -export * from './filterConditions.index'; -export * from './filterConditionProcesses'; -export * from './collectionSearchFilterCondition'; -export * from './booleanFilterCondition'; -export * from './dateFilterCondition'; +export * from './stringFilterCondition.js'; +export * from './objectFilterCondition.js'; +export * from './numberFilterCondition.js'; +export * from './filterUtilities.js'; +export * from './filterConditions.index.js'; +export * from './filterConditionProcesses.js'; +export * from './collectionSearchFilterCondition.js'; +export * from './booleanFilterCondition.js'; +export * from './dateFilterCondition.js'; diff --git a/packages/common/src/filter-conditions/numberFilterCondition.ts b/packages/common/src/filter-conditions/numberFilterCondition.ts index 550ff5a7a..373b06b0c 100644 --- a/packages/common/src/filter-conditions/numberFilterCondition.ts +++ b/packages/common/src/filter-conditions/numberFilterCondition.ts @@ -1,8 +1,8 @@ import { isNumber } from '@slickgrid-universal/utils'; -import { OperatorType, type SearchTerm } from '../enums/index'; -import type { FilterCondition, FilterConditionOption } from '../interfaces/index'; -import { testFilterCondition } from './filterUtilities'; +import { OperatorType, type SearchTerm } from '../enums/index.js'; +import type { FilterCondition, FilterConditionOption } from '../interfaces/index.js'; +import { testFilterCondition } from './filterUtilities.js'; /** Execute filter condition check on each cell */ export const executeNumberFilterCondition: FilterCondition = ((options: FilterConditionOption, parsedSearchValues: number[]) => { diff --git a/packages/common/src/filter-conditions/objectFilterCondition.ts b/packages/common/src/filter-conditions/objectFilterCondition.ts index c61cc2f88..d00a9914c 100644 --- a/packages/common/src/filter-conditions/objectFilterCondition.ts +++ b/packages/common/src/filter-conditions/objectFilterCondition.ts @@ -1,6 +1,6 @@ -import type { SearchTerm } from '../enums/searchTerm.type'; -import type { FilterCondition, FilterConditionOption } from '../interfaces/index'; -import { compareObjects } from './filterUtilities'; +import type { SearchTerm } from '../enums/searchTerm.type.js'; +import type { FilterCondition, FilterConditionOption } from '../interfaces/index.js'; +import { compareObjects } from './filterUtilities.js'; /** Execute filter condition check on each cell */ export const executeObjectFilterCondition: FilterCondition = ((options: FilterConditionOption, parsedSearchValue: SearchTerm | undefined) => { diff --git a/packages/common/src/filter-conditions/stringFilterCondition.ts b/packages/common/src/filter-conditions/stringFilterCondition.ts index ab674adc3..409f90c75 100644 --- a/packages/common/src/filter-conditions/stringFilterCondition.ts +++ b/packages/common/src/filter-conditions/stringFilterCondition.ts @@ -1,8 +1,8 @@ import { removeAccentFromText } from '@slickgrid-universal/utils'; -import { type OperatorString, OperatorType, type SearchTerm } from '../enums/index'; -import type { FilterCondition, FilterConditionOption } from '../interfaces/index'; -import { testFilterCondition } from './filterUtilities'; +import { type OperatorString, OperatorType, type SearchTerm } from '../enums/index.js'; +import type { FilterCondition, FilterConditionOption } from '../interfaces/index.js'; +import { testFilterCondition } from './filterUtilities.js'; /** Execute filter condition check on each cell */ export const executeStringFilterCondition: FilterCondition = ((options: FilterConditionOption, parsedSearchValues: string[]) => { diff --git a/packages/common/src/filters/__tests__/autocompleterFilter.spec.ts b/packages/common/src/filters/__tests__/autocompleterFilter.spec.ts index 9960f87d3..45353a0b6 100644 --- a/packages/common/src/filters/__tests__/autocompleterFilter.spec.ts +++ b/packages/common/src/filters/__tests__/autocompleterFilter.spec.ts @@ -1,15 +1,15 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { of, type Subject } from 'rxjs'; -import { Filters } from '../index'; -import { AutocompleterFilter } from '../autocompleterFilter'; -import { FieldType, OperatorType } from '../../enums/index'; -import type { AutocompleterOption, Column, ColumnFilter, FilterArguments, GridOption } from '../../interfaces/index'; -import { CollectionService } from '../../services/collection.service'; -import { HttpStub } from '../../../../../test/httpClientStub'; -import { RxJsResourceStub } from '../../../../../test/rxjsResourceStub'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import type { SlickGrid } from '../../core/index'; +import { Filters } from '../index.js'; +import { AutocompleterFilter } from '../autocompleterFilter.js'; +import { FieldType, OperatorType } from '../../enums/index.js'; +import type { AutocompleterOption, Column, ColumnFilter, FilterArguments, GridOption } from '../../interfaces/index.js'; +import { CollectionService } from '../../services/collection.service.js'; +import { HttpStub } from '../../../../../test/httpClientStub.js'; +import { RxJsResourceStub } from '../../../../../test/rxjsResourceStub.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import type { SlickGrid } from '../../core/index.js'; vi.useFakeTimers(); diff --git a/packages/common/src/filters/__tests__/compoundDateFilter.spec.ts b/packages/common/src/filters/__tests__/compoundDateFilter.spec.ts index 29e9ca34f..1390d43ab 100644 --- a/packages/common/src/filters/__tests__/compoundDateFilter.spec.ts +++ b/packages/common/src/filters/__tests__/compoundDateFilter.spec.ts @@ -2,13 +2,13 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import type VanillaCalendar from 'vanilla-calendar-pro'; import { format } from '@formkit/tempo'; -import { Filters } from '../filters.index'; -import { FieldType, OperatorType } from '../../enums/index'; -import type { Column, FilterArguments, GridOption } from '../../interfaces/index'; -import { CompoundDateFilter } from '../compoundDateFilter'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import type { SlickGrid } from '../../core/index'; -import { mapTempoDateFormatWithFieldType } from '../../services/dateUtils'; +import { Filters } from '../filters.index.js'; +import { FieldType, OperatorType } from '../../enums/index.js'; +import type { Column, FilterArguments, GridOption } from '../../interfaces/index.js'; +import { CompoundDateFilter } from '../compoundDateFilter.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import type { SlickGrid } from '../../core/index.js'; +import { mapTempoDateFormatWithFieldType } from '../../services/dateUtils.js'; const containerId = 'demo-container'; diff --git a/packages/common/src/filters/__tests__/compoundInputFilter.spec.ts b/packages/common/src/filters/__tests__/compoundInputFilter.spec.ts index 8373f54ca..267bcc5cd 100644 --- a/packages/common/src/filters/__tests__/compoundInputFilter.spec.ts +++ b/packages/common/src/filters/__tests__/compoundInputFilter.spec.ts @@ -1,11 +1,11 @@ import { afterEach, beforeEach, describe, expect, it, type MockInstance, vi } from 'vitest'; -import { FieldType, OperatorType } from '../../enums/index'; -import type { BackendServiceApi, Column, FilterArguments, GridOption } from '../../interfaces/index'; -import { Filters } from '../index'; -import { CompoundInputFilter } from '../compoundInputFilter'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import type { SlickGrid } from '../../core/index'; +import { FieldType, OperatorType } from '../../enums/index.js'; +import type { BackendServiceApi, Column, FilterArguments, GridOption } from '../../interfaces/index.js'; +import { Filters } from '../index.js'; +import { CompoundInputFilter } from '../compoundInputFilter.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import type { SlickGrid } from '../../core/index.js'; vi.useFakeTimers(); diff --git a/packages/common/src/filters/__tests__/compoundInputNumberFilter.spec.ts b/packages/common/src/filters/__tests__/compoundInputNumberFilter.spec.ts index ba3f35940..eb5555bab 100644 --- a/packages/common/src/filters/__tests__/compoundInputNumberFilter.spec.ts +++ b/packages/common/src/filters/__tests__/compoundInputNumberFilter.spec.ts @@ -1,10 +1,10 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import type { Column, FilterArguments, GridOption } from '../../interfaces/index'; -import { Filters } from '../index'; -import { CompoundInputNumberFilter } from '../compoundInputNumberFilter'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import type { SlickGrid } from '../../core/index'; +import type { Column, FilterArguments, GridOption } from '../../interfaces/index.js'; +import { Filters } from '../index.js'; +import { CompoundInputNumberFilter } from '../compoundInputNumberFilter.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import type { SlickGrid } from '../../core/index.js'; const containerId = 'demo-container'; diff --git a/packages/common/src/filters/__tests__/compoundInputPasswordFilter.spec.ts b/packages/common/src/filters/__tests__/compoundInputPasswordFilter.spec.ts index 09be34386..db437c939 100644 --- a/packages/common/src/filters/__tests__/compoundInputPasswordFilter.spec.ts +++ b/packages/common/src/filters/__tests__/compoundInputPasswordFilter.spec.ts @@ -1,10 +1,10 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import type { Column, FilterArguments, GridOption } from '../../interfaces/index'; -import { Filters } from '../index'; -import { CompoundInputPasswordFilter } from '../compoundInputPasswordFilter'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import type { SlickGrid } from '../../core/index'; +import type { Column, FilterArguments, GridOption } from '../../interfaces/index.js'; +import { Filters } from '../index.js'; +import { CompoundInputPasswordFilter } from '../compoundInputPasswordFilter.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import type { SlickGrid } from '../../core/index.js'; const containerId = 'demo-container'; diff --git a/packages/common/src/filters/__tests__/compoundSliderFilter.spec.ts b/packages/common/src/filters/__tests__/compoundSliderFilter.spec.ts index 3f81633b3..5878f20fe 100644 --- a/packages/common/src/filters/__tests__/compoundSliderFilter.spec.ts +++ b/packages/common/src/filters/__tests__/compoundSliderFilter.spec.ts @@ -1,11 +1,11 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { FieldType, OperatorType } from '../../enums/index'; -import type { Column, FilterArguments, GridOption, SliderOption } from '../../interfaces/index'; -import { Filters } from '../index'; -import { CompoundSliderFilter } from '../compoundSliderFilter'; -import { SlickEvent, type SlickGrid } from '../../core/index'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; +import { FieldType, OperatorType } from '../../enums/index.js'; +import type { Column, FilterArguments, GridOption, SliderOption } from '../../interfaces/index.js'; +import { Filters } from '../index.js'; +import { CompoundSliderFilter } from '../compoundSliderFilter.js'; +import { SlickEvent, type SlickGrid } from '../../core/index.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; vi.useFakeTimers(); diff --git a/packages/common/src/filters/__tests__/dateRangeFilter.spec.ts b/packages/common/src/filters/__tests__/dateRangeFilter.spec.ts index f44daae0c..b585e1d86 100644 --- a/packages/common/src/filters/__tests__/dateRangeFilter.spec.ts +++ b/packages/common/src/filters/__tests__/dateRangeFilter.spec.ts @@ -1,12 +1,12 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import type VanillaCalendar from 'vanilla-calendar-pro'; -import { FieldType } from '../../enums/index'; -import type { Column, FilterArguments, GridOption } from '../../interfaces/index'; -import { Filters } from '../filters.index'; -import { DateRangeFilter } from '../dateRangeFilter'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import type { SlickGrid } from '../../core/index'; +import { FieldType } from '../../enums/index.js'; +import type { Column, FilterArguments, GridOption } from '../../interfaces/index.js'; +import { Filters } from '../filters.index.js'; +import { DateRangeFilter } from '../dateRangeFilter.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import type { SlickGrid } from '../../core/index.js'; const containerId = 'demo-container'; diff --git a/packages/common/src/filters/__tests__/filterFactory.spec.ts b/packages/common/src/filters/__tests__/filterFactory.spec.ts index 543cf7110..1ec686cb9 100644 --- a/packages/common/src/filters/__tests__/filterFactory.spec.ts +++ b/packages/common/src/filters/__tests__/filterFactory.spec.ts @@ -1,13 +1,13 @@ import { afterEach, beforeEach, describe, expect, it, type Mock, vi } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { InputFilter } from '../inputFilter'; -import { FilterFactory } from '../filterFactory'; -import { SlickgridConfig } from '../../slickgrid-config'; -import { CollectionService } from '../../services/collection.service'; -import { RxJsResourceStub } from '../../../../../test/rxjsResourceStub'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import { AutocompleterFilter } from '../autocompleterFilter'; +import type { Column } from '../../interfaces/index.js'; +import { InputFilter } from '../inputFilter.js'; +import { FilterFactory } from '../filterFactory.js'; +import { SlickgridConfig } from '../../slickgrid-config.js'; +import { CollectionService } from '../../services/collection.service.js'; +import { RxJsResourceStub } from '../../../../../test/rxjsResourceStub.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import { AutocompleterFilter } from '../autocompleterFilter.js'; vi.mock('../autocompleterFilter'); diff --git a/packages/common/src/filters/__tests__/inputFilter.spec.ts b/packages/common/src/filters/__tests__/inputFilter.spec.ts index 5eb7bb532..be3d8b6f5 100644 --- a/packages/common/src/filters/__tests__/inputFilter.spec.ts +++ b/packages/common/src/filters/__tests__/inputFilter.spec.ts @@ -1,9 +1,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { InputFilter } from '../inputFilter'; -import type { BackendServiceApi, Column, FilterArguments, GridOption } from '../../interfaces/index'; -import { Filters } from '../filters.index'; -import type { SlickGrid } from '../../core/index'; +import { InputFilter } from '../inputFilter.js'; +import type { BackendServiceApi, Column, FilterArguments, GridOption } from '../../interfaces/index.js'; +import { Filters } from '../filters.index.js'; +import type { SlickGrid } from '../../core/index.js'; vi.useFakeTimers(); diff --git a/packages/common/src/filters/__tests__/inputMaskFilter.spec.ts b/packages/common/src/filters/__tests__/inputMaskFilter.spec.ts index a5345616b..b85b3968b 100644 --- a/packages/common/src/filters/__tests__/inputMaskFilter.spec.ts +++ b/packages/common/src/filters/__tests__/inputMaskFilter.spec.ts @@ -1,9 +1,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { InputMaskFilter } from '../inputMaskFilter'; -import type { Column, FilterArguments, GridOption } from '../../interfaces/index'; -import { Filters } from '../filters.index'; -import type { SlickGrid } from '../../core/index'; +import { InputMaskFilter } from '../inputMaskFilter.js'; +import type { Column, FilterArguments, GridOption } from '../../interfaces/index.js'; +import { Filters } from '../filters.index.js'; +import type { SlickGrid } from '../../core/index.js'; const containerId = 'demo-container'; diff --git a/packages/common/src/filters/__tests__/inputNumberFilter.spec.ts b/packages/common/src/filters/__tests__/inputNumberFilter.spec.ts index 79701bff6..7e6142d7b 100644 --- a/packages/common/src/filters/__tests__/inputNumberFilter.spec.ts +++ b/packages/common/src/filters/__tests__/inputNumberFilter.spec.ts @@ -1,9 +1,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { InputNumberFilter } from '../inputNumberFilter'; -import type { Column, FilterArguments, GridOption } from '../../interfaces/index'; -import { Filters } from '../filters.index'; -import type { SlickGrid } from '../../core/index'; +import { InputNumberFilter } from '../inputNumberFilter.js'; +import type { Column, FilterArguments, GridOption } from '../../interfaces/index.js'; +import { Filters } from '../filters.index.js'; +import type { SlickGrid } from '../../core/index.js'; const containerId = 'demo-container'; diff --git a/packages/common/src/filters/__tests__/inputPasswordFilter.spec.ts b/packages/common/src/filters/__tests__/inputPasswordFilter.spec.ts index e5b62ea99..d5219d44b 100644 --- a/packages/common/src/filters/__tests__/inputPasswordFilter.spec.ts +++ b/packages/common/src/filters/__tests__/inputPasswordFilter.spec.ts @@ -1,9 +1,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { InputPasswordFilter } from '../inputPasswordFilter'; -import type { Column, FilterArguments, GridOption } from '../../interfaces/index'; -import { Filters } from '../filters.index'; -import type { SlickGrid } from '../../core/index'; +import { InputPasswordFilter } from '../inputPasswordFilter.js'; +import type { Column, FilterArguments, GridOption } from '../../interfaces/index.js'; +import { Filters } from '../filters.index.js'; +import type { SlickGrid } from '../../core/index.js'; const containerId = 'demo-container'; diff --git a/packages/common/src/filters/__tests__/multipleSelectFilter.spec.ts b/packages/common/src/filters/__tests__/multipleSelectFilter.spec.ts index 01e6d50a8..a64d1eb38 100644 --- a/packages/common/src/filters/__tests__/multipleSelectFilter.spec.ts +++ b/packages/common/src/filters/__tests__/multipleSelectFilter.spec.ts @@ -1,11 +1,11 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { Filters } from '../filters.index'; -import type { Column, FilterArguments, GridOption } from '../../interfaces/index'; -import { CollectionService } from './../../services/collection.service'; -import { MultipleSelectFilter } from '../multipleSelectFilter'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import type { SlickGrid } from '../../core/index'; +import { Filters } from '../filters.index.js'; +import type { Column, FilterArguments, GridOption } from '../../interfaces/index.js'; +import { CollectionService } from './../../services/collection.service.js'; +import { MultipleSelectFilter } from '../multipleSelectFilter.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import type { SlickGrid } from '../../core/index.js'; const containerId = 'demo-container'; diff --git a/packages/common/src/filters/__tests__/selectFilter.spec.ts b/packages/common/src/filters/__tests__/selectFilter.spec.ts index a1f0d1651..542e0fd7e 100644 --- a/packages/common/src/filters/__tests__/selectFilter.spec.ts +++ b/packages/common/src/filters/__tests__/selectFilter.spec.ts @@ -2,15 +2,15 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import type { MultipleSelectOption } from 'multiple-select-vanilla'; import { of, type Subject } from 'rxjs'; -import { FieldType, OperatorType } from '../../enums/index'; -import type { Column, FilterArguments, GridOption } from '../../interfaces/index'; -import { CollectionService } from '../../services/collection.service'; -import { Filters } from '../filters.index'; -import { SelectFilter } from '../selectFilter'; -import type { SlickGrid } from '../../core/index'; -import { HttpStub } from '../../../../../test/httpClientStub'; -import { RxJsResourceStub } from '../../../../../test/rxjsResourceStub'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; +import { FieldType, OperatorType } from '../../enums/index.js'; +import type { Column, FilterArguments, GridOption } from '../../interfaces/index.js'; +import { CollectionService } from '../../services/collection.service.js'; +import { Filters } from '../filters.index.js'; +import { SelectFilter } from '../selectFilter.js'; +import type { SlickGrid } from '../../core/index.js'; +import { HttpStub } from '../../../../../test/httpClientStub.js'; +import { RxJsResourceStub } from '../../../../../test/rxjsResourceStub.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; vi.useFakeTimers(); diff --git a/packages/common/src/filters/__tests__/singleSelectFilter.spec.ts b/packages/common/src/filters/__tests__/singleSelectFilter.spec.ts index a7e33780f..56659e6ab 100644 --- a/packages/common/src/filters/__tests__/singleSelectFilter.spec.ts +++ b/packages/common/src/filters/__tests__/singleSelectFilter.spec.ts @@ -1,11 +1,11 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { Filters } from '../filters.index'; -import type { Column, FilterArguments, GridOption } from '../../interfaces/index'; -import { CollectionService } from '../../services/collection.service'; -import { SingleSelectFilter } from '../singleSelectFilter'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import type { SlickGrid } from '../../core/index'; +import { Filters } from '../filters.index.js'; +import type { Column, FilterArguments, GridOption } from '../../interfaces/index.js'; +import { CollectionService } from '../../services/collection.service.js'; +import { SingleSelectFilter } from '../singleSelectFilter.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import type { SlickGrid } from '../../core/index.js'; vi.useFakeTimers(); diff --git a/packages/common/src/filters/__tests__/singleSliderFilter.spec.ts b/packages/common/src/filters/__tests__/singleSliderFilter.spec.ts index ba4e7da73..251a460f3 100644 --- a/packages/common/src/filters/__tests__/singleSliderFilter.spec.ts +++ b/packages/common/src/filters/__tests__/singleSliderFilter.spec.ts @@ -1,10 +1,10 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { Filters } from '../filters.index'; -import type { Column, FilterArguments, GridOption } from '../../interfaces/index'; -import { SingleSliderFilter } from '../singleSliderFilter'; -import { SlickEvent, type SlickGrid } from '../../core/index'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; +import { Filters } from '../filters.index.js'; +import type { Column, FilterArguments, GridOption } from '../../interfaces/index.js'; +import { SingleSliderFilter } from '../singleSliderFilter.js'; +import { SlickEvent, type SlickGrid } from '../../core/index.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; const containerId = 'demo-container'; vi.useFakeTimers(); diff --git a/packages/common/src/filters/__tests__/sliderRangeFilter.spec.ts b/packages/common/src/filters/__tests__/sliderRangeFilter.spec.ts index 1e370858b..7f9068528 100644 --- a/packages/common/src/filters/__tests__/sliderRangeFilter.spec.ts +++ b/packages/common/src/filters/__tests__/sliderRangeFilter.spec.ts @@ -1,10 +1,10 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { Filters } from '../filters.index'; -import type { Column, FilterArguments, GridOption, SliderRangeOption } from '../../interfaces/index'; -import { SlickEvent, type SlickGrid } from '../../core/index'; -import { SliderRangeFilter } from '../sliderRangeFilter'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; +import { Filters } from '../filters.index.js'; +import type { Column, FilterArguments, GridOption, SliderRangeOption } from '../../interfaces/index.js'; +import { SlickEvent, type SlickGrid } from '../../core/index.js'; +import { SliderRangeFilter } from '../sliderRangeFilter.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; const containerId = 'demo-container'; vi.useFakeTimers(); diff --git a/packages/common/src/filters/autocompleterFilter.ts b/packages/common/src/filters/autocompleterFilter.ts index 1ca1d0503..d439c3cc9 100644 --- a/packages/common/src/filters/autocompleterFilter.ts +++ b/packages/common/src/filters/autocompleterFilter.ts @@ -8,7 +8,7 @@ import { OperatorType, type OperatorString, type SearchTerm, -} from '../enums/index'; +} from '../enums/index.js'; import type { AutocompleterOption, AutocompleteSearchItem, @@ -23,16 +23,16 @@ import type { FilterCallbackArg, GridOption, Locale, -} from '../interfaces/index'; -import { addAutocompleteLoadingByOverridingFetch } from '../commonEditorFilter'; -import type { CollectionService } from '../services/collection.service'; -import { collectionObserver, propertyObserver } from '../services/observers'; -import { getDescendantProperty, unsubscribeAll } from '../services/utilities'; -import type { TranslaterService } from '../services/translater.service'; -import { renderCollectionOptionsAsync } from './filterUtilities'; -import type { RxJsFacade, Subscription } from '../services/rxjsFacade'; -import { Constants } from '../constants'; -import { type SlickGrid } from '../core/index'; +} from '../interfaces/index.js'; +import { addAutocompleteLoadingByOverridingFetch } from '../commonEditorFilter/commonEditorFilterUtils.js'; +import type { CollectionService } from '../services/collection.service.js'; +import { collectionObserver, propertyObserver } from '../services/observers.js'; +import { getDescendantProperty, unsubscribeAll } from '../services/utilities.js'; +import type { TranslaterService } from '../services/translater.service.js'; +import { renderCollectionOptionsAsync } from './filterUtilities.js'; +import type { RxJsFacade, Subscription } from '../services/rxjsFacade.js'; +import { Constants } from '../constants.js'; +import { type SlickGrid } from '../core/index.js'; export class AutocompleterFilter implements Filter { protected _autocompleterOptions!: Partial>; diff --git a/packages/common/src/filters/compoundDateFilter.ts b/packages/common/src/filters/compoundDateFilter.ts index cc213d882..86185b3d0 100644 --- a/packages/common/src/filters/compoundDateFilter.ts +++ b/packages/common/src/filters/compoundDateFilter.ts @@ -1,5 +1,5 @@ -import type { TranslaterService } from '../services'; -import { DateFilter } from './dateFilter'; +import type { TranslaterService } from '../services/translater.service.js'; +import { DateFilter } from './dateFilter.js'; export class CompoundDateFilter extends DateFilter { /** Initialize the Filter */ diff --git a/packages/common/src/filters/compoundInputFilter.ts b/packages/common/src/filters/compoundInputFilter.ts index 59996ef98..d1e572139 100644 --- a/packages/common/src/filters/compoundInputFilter.ts +++ b/packages/common/src/filters/compoundInputFilter.ts @@ -1,5 +1,5 @@ -import { InputFilter } from './inputFilter'; -import type { TranslaterService } from '../services'; +import { InputFilter } from './inputFilter.js'; +import type { TranslaterService } from '../services/translater.service.js'; export class CompoundInputFilter extends InputFilter { /** diff --git a/packages/common/src/filters/compoundInputNumberFilter.ts b/packages/common/src/filters/compoundInputNumberFilter.ts index a63e67e54..03a2bdf7c 100644 --- a/packages/common/src/filters/compoundInputNumberFilter.ts +++ b/packages/common/src/filters/compoundInputNumberFilter.ts @@ -1,5 +1,5 @@ -import { InputFilter } from './inputFilter'; -import type { TranslaterService } from '../services/translater.service'; +import { InputFilter } from './inputFilter.js'; +import type { TranslaterService } from '../services/translater.service.js'; export class CompoundInputNumberFilter extends InputFilter { /** Initialize the Filter */ diff --git a/packages/common/src/filters/compoundInputPasswordFilter.ts b/packages/common/src/filters/compoundInputPasswordFilter.ts index c78f7d2e2..69a268e44 100644 --- a/packages/common/src/filters/compoundInputPasswordFilter.ts +++ b/packages/common/src/filters/compoundInputPasswordFilter.ts @@ -1,5 +1,5 @@ -import { InputFilter } from './inputFilter'; -import type { TranslaterService } from '../services/translater.service'; +import { InputFilter } from './inputFilter.js'; +import type { TranslaterService } from '../services/translater.service.js'; export class CompoundInputPasswordFilter extends InputFilter { /** Initialize the Filter */ diff --git a/packages/common/src/filters/compoundSliderFilter.ts b/packages/common/src/filters/compoundSliderFilter.ts index 3e6dd8b44..577eba51c 100644 --- a/packages/common/src/filters/compoundSliderFilter.ts +++ b/packages/common/src/filters/compoundSliderFilter.ts @@ -1,5 +1,5 @@ -import { SliderFilter } from './sliderFilter'; -import type { TranslaterService } from '../services'; +import { SliderFilter } from './sliderFilter.js'; +import type { TranslaterService } from '../services/translater.service.js'; export class CompoundSliderFilter extends SliderFilter { /** diff --git a/packages/common/src/filters/dateFilter.ts b/packages/common/src/filters/dateFilter.ts index 413d5f695..693beb255 100644 --- a/packages/common/src/filters/dateFilter.ts +++ b/packages/common/src/filters/dateFilter.ts @@ -9,7 +9,7 @@ import { OperatorType, type OperatorString, type SearchTerm, -} from '../enums/index'; +} from '../enums/index.js'; import type { Column, ColumnFilter, @@ -18,13 +18,13 @@ import type { FilterCallback, GridOption, OperatorDetail, -} from '../interfaces/index'; -import { applyOperatorAltTextWhenExists, buildSelectOperator, compoundOperatorNumeric } from './filterUtilities'; -import { formatDateByFieldType, mapTempoDateFormatWithFieldType } from '../services/dateUtils'; -import { mapOperatorToShorthandDesignation } from '../services/utilities'; -import type { TranslaterService } from '../services/translater.service'; -import type { SlickGrid } from '../core/index'; -import { setPickerDates } from '../commonEditorFilter'; +} from '../interfaces/index.js'; +import { applyOperatorAltTextWhenExists, buildSelectOperator, compoundOperatorNumeric } from './filterUtilities.js'; +import { formatDateByFieldType, mapTempoDateFormatWithFieldType } from '../services/dateUtils.js'; +import { mapOperatorToShorthandDesignation } from '../services/utilities.js'; +import type { TranslaterService } from '../services/translater.service.js'; +import type { SlickGrid } from '../core/slickGrid.js'; +import { setPickerDates } from '../commonEditorFilter/commonEditorFilterUtils.js'; export class DateFilter implements Filter { protected _bindEventService: BindingEventService; diff --git a/packages/common/src/filters/dateRangeFilter.ts b/packages/common/src/filters/dateRangeFilter.ts index f069db752..df8d05d67 100644 --- a/packages/common/src/filters/dateRangeFilter.ts +++ b/packages/common/src/filters/dateRangeFilter.ts @@ -1,5 +1,5 @@ -import { DateFilter } from './dateFilter'; -import type { TranslaterService } from '../services'; +import { DateFilter } from './dateFilter.js'; +import type { TranslaterService } from '../services/translater.service.js'; export class DateRangeFilter extends DateFilter { /** Initialize the Filter */ diff --git a/packages/common/src/filters/filterFactory.ts b/packages/common/src/filters/filterFactory.ts index 1de6b6560..c1834f205 100644 --- a/packages/common/src/filters/filterFactory.ts +++ b/packages/common/src/filters/filterFactory.ts @@ -1,8 +1,8 @@ -import type { ColumnFilter, Filter } from '../interfaces/index'; -import type { SlickgridConfig } from '../slickgrid-config'; -import type { CollectionService } from '../services/collection.service'; -import type { TranslaterService } from '../services/translater.service'; -import type { RxJsFacade } from '../services/rxjsFacade'; +import type { ColumnFilter, Filter } from '../interfaces/index.js'; +import type { SlickgridConfig } from '../slickgrid-config.js'; +import type { CollectionService } from '../services/collection.service.js'; +import type { TranslaterService } from '../services/translater.service.js'; +import type { RxJsFacade } from '../services/rxjsFacade.js'; export class FilterFactory { /** The options from the SlickgridConfig */ diff --git a/packages/common/src/filters/filterUtilities.ts b/packages/common/src/filters/filterUtilities.ts index ae2b7d117..3ddd64b43 100644 --- a/packages/common/src/filters/filterUtilities.ts +++ b/packages/common/src/filters/filterUtilities.ts @@ -1,11 +1,11 @@ import { createDomElement, htmlEncodeWithPadding, } from '@slickgrid-universal/utils'; -import { Constants } from '../constants'; -import type { Column, GridOption, Locale, OperatorDetail } from '../interfaces/index'; -import type { Observable, RxJsFacade, Subject, Subscription } from '../services/rxjsFacade'; -import { castObservableToPromise, getDescendantProperty, getTranslationPrefix, } from '../services/utilities'; -import type { TranslaterService } from '../services/translater.service'; -import type { SlickGrid } from '../core'; +import { Constants } from '../constants.js'; +import type { Column, GridOption, Locale, OperatorDetail } from '../interfaces/index.js'; +import type { Observable, RxJsFacade, Subject, Subscription } from '../services/rxjsFacade.js'; +import { castObservableToPromise, getDescendantProperty, getTranslationPrefix, } from '../services/utilities.js'; +import type { TranslaterService } from '../services/translater.service.js'; +import type { SlickGrid } from '../core/slickGrid.js'; /** * Create and return a select dropdown HTML element with a list of Operators with descriptions diff --git a/packages/common/src/filters/filters.index.ts b/packages/common/src/filters/filters.index.ts index 0afc95bab..782244a33 100644 --- a/packages/common/src/filters/filters.index.ts +++ b/packages/common/src/filters/filters.index.ts @@ -1,19 +1,19 @@ -import { AutocompleterFilter } from './autocompleterFilter'; -import { CompoundDateFilter } from './compoundDateFilter'; -import { CompoundInputFilter } from './compoundInputFilter'; -import { CompoundInputNumberFilter } from './compoundInputNumberFilter'; -import { CompoundInputPasswordFilter } from './compoundInputPasswordFilter'; -import { CompoundSliderFilter } from './compoundSliderFilter'; -import { InputFilter } from './inputFilter'; -import { InputMaskFilter } from './inputMaskFilter'; -import { InputNumberFilter } from './inputNumberFilter'; -import { InputPasswordFilter } from './inputPasswordFilter'; -import { MultipleSelectFilter } from './multipleSelectFilter'; -import { DateRangeFilter } from './dateRangeFilter'; -import { SingleSelectFilter } from './singleSelectFilter'; -import { SingleSliderFilter } from './singleSliderFilter'; -import { SliderRangeFilter } from './sliderRangeFilter'; -import type { FilterConstructor } from '../interfaces/filter.interface'; +import { AutocompleterFilter } from './autocompleterFilter.js'; +import { CompoundDateFilter } from './compoundDateFilter.js'; +import { CompoundInputFilter } from './compoundInputFilter.js'; +import { CompoundInputNumberFilter } from './compoundInputNumberFilter.js'; +import { CompoundInputPasswordFilter } from './compoundInputPasswordFilter.js'; +import { CompoundSliderFilter } from './compoundSliderFilter.js'; +import { InputFilter } from './inputFilter.js'; +import { InputMaskFilter } from './inputMaskFilter.js'; +import { InputNumberFilter } from './inputNumberFilter.js'; +import { InputPasswordFilter } from './inputPasswordFilter.js'; +import { MultipleSelectFilter } from './multipleSelectFilter.js'; +import { DateRangeFilter } from './dateRangeFilter.js'; +import { SingleSelectFilter } from './singleSelectFilter.js'; +import { SingleSliderFilter } from './singleSliderFilter.js'; +import { SliderRangeFilter } from './sliderRangeFilter.js'; +import type { FilterConstructor } from '../interfaces/filter.interface.js'; export const Filters: Record = { /** AutoComplete Filter (using https://github.com/kraaden/autocomplete) */ diff --git a/packages/common/src/filters/index.ts b/packages/common/src/filters/index.ts index 1c89aa56b..c4454d6bc 100644 --- a/packages/common/src/filters/index.ts +++ b/packages/common/src/filters/index.ts @@ -1,20 +1,20 @@ -export * from './autocompleterFilter'; -export * from './compoundDateFilter'; -export * from './compoundInputFilter'; -export * from './compoundInputNumberFilter'; -export * from './compoundInputPasswordFilter'; -export * from './compoundSliderFilter'; -export * from './dateFilter'; -export * from './dateRangeFilter'; -export * from './filters.index'; -export * from './filterFactory'; -export * from './inputFilter'; -export * from './inputMaskFilter'; -export * from './inputNumberFilter'; -export * from './inputPasswordFilter'; -export * from './multipleSelectFilter'; -export * from './selectFilter'; -export * from './singleSelectFilter'; -export * from './singleSliderFilter'; -export * from './sliderRangeFilter'; -export * from './sliderFilter'; +export * from './autocompleterFilter.js'; +export * from './compoundDateFilter.js'; +export * from './compoundInputFilter.js'; +export * from './compoundInputNumberFilter.js'; +export * from './compoundInputPasswordFilter.js'; +export * from './compoundSliderFilter.js'; +export * from './dateFilter.js'; +export * from './dateRangeFilter.js'; +export * from './filters.index.js'; +export * from './filterFactory.js'; +export * from './inputFilter.js'; +export * from './inputMaskFilter.js'; +export * from './inputNumberFilter.js'; +export * from './inputPasswordFilter.js'; +export * from './multipleSelectFilter.js'; +export * from './selectFilter.js'; +export * from './singleSelectFilter.js'; +export * from './singleSliderFilter.js'; +export * from './sliderRangeFilter.js'; +export * from './sliderFilter.js'; diff --git a/packages/common/src/filters/inputFilter.ts b/packages/common/src/filters/inputFilter.ts index 5b87c2a20..3a80f1a6a 100644 --- a/packages/common/src/filters/inputFilter.ts +++ b/packages/common/src/filters/inputFilter.ts @@ -9,11 +9,11 @@ import type { FilterCallback, GridOption, OperatorDetail, -} from '../interfaces/index'; -import { FieldType, OperatorType, type OperatorString, type SearchTerm } from '../enums/index'; -import { applyOperatorAltTextWhenExists, buildSelectOperator, compoundOperatorNumeric, compoundOperatorString } from './filterUtilities'; -import { mapOperatorToShorthandDesignation, type TranslaterService, } from '../services'; -import { type SlickGrid } from '../core/index'; +} from '../interfaces/index.js'; +import { FieldType, OperatorType, type OperatorString, type SearchTerm } from '../enums/index.js'; +import { applyOperatorAltTextWhenExists, buildSelectOperator, compoundOperatorNumeric, compoundOperatorString } from './filterUtilities.js'; +import { mapOperatorToShorthandDesignation, type TranslaterService, } from '../services/index.js'; +import { type SlickGrid } from '../core/index.js'; export class InputFilter implements Filter { protected _bindEventService: BindingEventService; diff --git a/packages/common/src/filters/inputMaskFilter.ts b/packages/common/src/filters/inputMaskFilter.ts index 36c719445..ee9ae7ba9 100644 --- a/packages/common/src/filters/inputMaskFilter.ts +++ b/packages/common/src/filters/inputMaskFilter.ts @@ -1,6 +1,6 @@ -import { InputFilter } from './inputFilter'; -import type { FilterArguments } from '../interfaces/filterArguments.interface'; -import type { TranslaterService } from '../services/translater.service'; +import { InputFilter } from './inputFilter.js'; +import type { FilterArguments } from '../interfaces/filterArguments.interface.js'; +import type { TranslaterService } from '../services/translater.service.js'; export class InputMaskFilter extends InputFilter { protected _inputMask = ''; diff --git a/packages/common/src/filters/inputNumberFilter.ts b/packages/common/src/filters/inputNumberFilter.ts index 03b7a586f..893c258fd 100644 --- a/packages/common/src/filters/inputNumberFilter.ts +++ b/packages/common/src/filters/inputNumberFilter.ts @@ -1,5 +1,5 @@ -import { InputFilter } from './inputFilter'; -import type { TranslaterService } from '../services/translater.service'; +import { InputFilter } from './inputFilter.js'; +import type { TranslaterService } from '../services/translater.service.js'; export class InputNumberFilter extends InputFilter { /** Initialize the Filter */ diff --git a/packages/common/src/filters/inputPasswordFilter.ts b/packages/common/src/filters/inputPasswordFilter.ts index 22e60b1f8..b9698c838 100644 --- a/packages/common/src/filters/inputPasswordFilter.ts +++ b/packages/common/src/filters/inputPasswordFilter.ts @@ -1,5 +1,5 @@ -import { InputFilter } from './inputFilter'; -import type { TranslaterService } from '../services/translater.service'; +import { InputFilter } from './inputFilter.js'; +import type { TranslaterService } from '../services/translater.service.js'; export class InputPasswordFilter extends InputFilter { /** Initialize the Filter */ diff --git a/packages/common/src/filters/multipleSelectFilter.ts b/packages/common/src/filters/multipleSelectFilter.ts index eaa907caa..20c7bb08f 100644 --- a/packages/common/src/filters/multipleSelectFilter.ts +++ b/packages/common/src/filters/multipleSelectFilter.ts @@ -1,7 +1,7 @@ -import { SelectFilter } from './selectFilter'; -import type { CollectionService } from './../services/collection.service'; -import type { TranslaterService } from '../services/translater.service'; -import type { RxJsFacade } from '../services/rxjsFacade'; +import { SelectFilter } from './selectFilter.js'; +import type { CollectionService } from './../services/collection.service.js'; +import type { TranslaterService } from '../services/translater.service.js'; +import type { RxJsFacade } from '../services/rxjsFacade.js'; export class MultipleSelectFilter extends SelectFilter { /** diff --git a/packages/common/src/filters/selectFilter.ts b/packages/common/src/filters/selectFilter.ts index 9585a0ffb..a11b71330 100644 --- a/packages/common/src/filters/selectFilter.ts +++ b/packages/common/src/filters/selectFilter.ts @@ -1,8 +1,8 @@ import { multipleSelect, type MultipleSelectInstance, type MultipleSelectOption, type OptionRowData } from 'multiple-select-vanilla'; import { emptyElement, isPrimitiveValue } from '@slickgrid-universal/utils'; -import { Constants } from '../constants'; -import { type OperatorString, OperatorType, type SearchTerm, } from '../enums/index'; +import { Constants } from '../constants.js'; +import { type OperatorString, OperatorType, type SearchTerm, } from '../enums/index.js'; import type { CollectionCustomStructure, CollectionOption, @@ -13,13 +13,13 @@ import type { FilterCallback, GridOption, Locale, -} from './../interfaces/index'; -import type { CollectionService } from '../services/collection.service'; -import { collectionObserver, propertyObserver } from '../services/observers'; -import { getDescendantProperty, getTranslationPrefix, unsubscribeAll } from '../services/utilities'; -import { buildMsSelectCollectionList, type RxJsFacade, type Subscription, type TranslaterService } from '../services/index'; -import { renderCollectionOptionsAsync } from './filterUtilities'; -import type { SlickGrid } from '../core/index'; +} from './../interfaces/index.js'; +import type { CollectionService } from '../services/collection.service.js'; +import { collectionObserver, propertyObserver } from '../services/observers.js'; +import { getDescendantProperty, getTranslationPrefix, unsubscribeAll } from '../services/utilities.js'; +import { buildMsSelectCollectionList, type RxJsFacade, type Subscription, type TranslaterService } from '../services/index.js'; +import { renderCollectionOptionsAsync } from './filterUtilities.js'; +import type { SlickGrid } from '../core/index.js'; export class SelectFilter implements Filter { protected _isMultipleSelect = true; diff --git a/packages/common/src/filters/singleSelectFilter.ts b/packages/common/src/filters/singleSelectFilter.ts index f477901cb..70d65ea32 100644 --- a/packages/common/src/filters/singleSelectFilter.ts +++ b/packages/common/src/filters/singleSelectFilter.ts @@ -1,7 +1,7 @@ -import { SelectFilter } from './selectFilter'; -import type { CollectionService } from './../services/collection.service'; -import type { TranslaterService } from '../services/translater.service'; -import type { RxJsFacade } from '../services/rxjsFacade'; +import { SelectFilter } from './selectFilter.js'; +import type { CollectionService } from './../services/collection.service.js'; +import type { TranslaterService } from '../services/translater.service.js'; +import type { RxJsFacade } from '../services/rxjsFacade.js'; export class SingleSelectFilter extends SelectFilter { /** diff --git a/packages/common/src/filters/singleSliderFilter.ts b/packages/common/src/filters/singleSliderFilter.ts index 7b346b2d5..1b9bf4f3f 100644 --- a/packages/common/src/filters/singleSliderFilter.ts +++ b/packages/common/src/filters/singleSliderFilter.ts @@ -1,5 +1,5 @@ -import { SliderFilter } from './sliderFilter'; -import type { TranslaterService } from '../services'; +import { SliderFilter } from './sliderFilter.js'; +import type { TranslaterService } from '../services/translater.service.js'; export class SingleSliderFilter extends SliderFilter { /** diff --git a/packages/common/src/filters/sliderFilter.ts b/packages/common/src/filters/sliderFilter.ts index 1f475660f..702b54874 100644 --- a/packages/common/src/filters/sliderFilter.ts +++ b/packages/common/src/filters/sliderFilter.ts @@ -1,9 +1,9 @@ import { BindingEventService } from '@slickgrid-universal/binding'; import { createDomElement, emptyElement, isDefined, toSentenceCase } from '@slickgrid-universal/utils'; -import { SlickEventData, type SlickGrid } from '../core/index'; -import { Constants } from '../constants'; -import { type OperatorString, OperatorType, type SearchTerm, } from '../enums/index'; +import { SlickEventData, type SlickGrid } from '../core/index.js'; +import { Constants } from '../constants.js'; +import { type OperatorString, OperatorType, type SearchTerm, } from '../enums/index.js'; import type { Column, ColumnFilter, @@ -17,10 +17,10 @@ import type { SliderOption, SliderRangeOption, SliderType, -} from '../interfaces/index'; -import type { TranslaterService } from '../services/translater.service'; -import { mapOperatorToShorthandDesignation } from '../services/utilities'; -import { applyOperatorAltTextWhenExists, buildSelectOperator, compoundOperatorNumeric } from './filterUtilities'; +} from '../interfaces/index.js'; +import type { TranslaterService } from '../services/translater.service.js'; +import { mapOperatorToShorthandDesignation } from '../services/utilities.js'; +import { applyOperatorAltTextWhenExists, buildSelectOperator, compoundOperatorNumeric } from './filterUtilities.js'; const DEFAULT_SLIDER_TRACK_FILLED_COLOR = '#86bff8'; const GAP_BETWEEN_SLIDER_HANDLES = 0; diff --git a/packages/common/src/filters/sliderRangeFilter.ts b/packages/common/src/filters/sliderRangeFilter.ts index a37aad368..91b85389e 100644 --- a/packages/common/src/filters/sliderRangeFilter.ts +++ b/packages/common/src/filters/sliderRangeFilter.ts @@ -1,5 +1,5 @@ -import { SliderFilter } from './sliderFilter'; -import type { TranslaterService } from '../services'; +import { SliderFilter } from './sliderFilter.js'; +import type { TranslaterService } from '../services/translater.service.js'; export class SliderRangeFilter extends SliderFilter { /** diff --git a/packages/common/src/formatters/__tests__/arrayObjectToCsvFormatter.spec.ts b/packages/common/src/formatters/__tests__/arrayObjectToCsvFormatter.spec.ts index ab95e5809..20cc63ae7 100644 --- a/packages/common/src/formatters/__tests__/arrayObjectToCsvFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/arrayObjectToCsvFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { arrayObjectToCsvFormatter } from '../arrayObjectToCsvFormatter'; +import type { Column } from '../../interfaces/index.js'; +import { arrayObjectToCsvFormatter } from '../arrayObjectToCsvFormatter.js'; describe('the ArrayObjectToCsv Formatter', () => { const allRoles = [{ roleId: 0, name: 'Administrator' }, { roleId: 1, name: 'Regular User' }]; diff --git a/packages/common/src/formatters/__tests__/arrayToCsvFormatter.spec.ts b/packages/common/src/formatters/__tests__/arrayToCsvFormatter.spec.ts index 053e0cdcf..d76fdc1f1 100644 --- a/packages/common/src/formatters/__tests__/arrayToCsvFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/arrayToCsvFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { arrayToCsvFormatter } from '../arrayToCsvFormatter'; +import type { Column } from '../../interfaces/index.js'; +import { arrayToCsvFormatter } from '../arrayToCsvFormatter.js'; describe('the ArrayToCsv Formatter', () => { it('should return same output when no value is passed', () => { diff --git a/packages/common/src/formatters/__tests__/checkmarkMaterialFormatter.spec.ts b/packages/common/src/formatters/__tests__/checkmarkMaterialFormatter.spec.ts index e889a9283..4bca47a0d 100644 --- a/packages/common/src/formatters/__tests__/checkmarkMaterialFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/checkmarkMaterialFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { checkmarkMaterialFormatter } from '../checkmarkMaterialFormatter'; +import type { Column } from '../../interfaces/index.js'; +import { checkmarkMaterialFormatter } from '../checkmarkMaterialFormatter.js'; describe('the Checkmark Formatter with Material Design Icon', () => { it('should return an empty string when no value is passed', () => { diff --git a/packages/common/src/formatters/__tests__/collectionEditorFormatter.spec.ts b/packages/common/src/formatters/__tests__/collectionEditorFormatter.spec.ts index cda7e5880..ed3728c19 100644 --- a/packages/common/src/formatters/__tests__/collectionEditorFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/collectionEditorFormatter.spec.ts @@ -1,8 +1,8 @@ import { beforeEach, describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { collectionEditorFormatter } from '../collectionEditorFormatter'; -import { Editors } from '../../editors'; +import type { Column } from '../../interfaces/index.js'; +import { collectionEditorFormatter } from '../collectionEditorFormatter.js'; +import { Editors } from '../../editors/editors.index.js'; describe('the CollectionEditor Formatter', () => { let columnDef: Column; diff --git a/packages/common/src/formatters/__tests__/collectionFormatter.spec.ts b/packages/common/src/formatters/__tests__/collectionFormatter.spec.ts index ca8ee4a48..52e6d619a 100644 --- a/packages/common/src/formatters/__tests__/collectionFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/collectionFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { collectionFormatter } from '../collectionFormatter'; +import type { Column } from '../../interfaces/index.js'; +import { collectionFormatter } from '../collectionFormatter.js'; describe('the Collection Formatter', () => { it('should return same output when no value is passed', () => { diff --git a/packages/common/src/formatters/__tests__/complexObjectFormatter.spec.ts b/packages/common/src/formatters/__tests__/complexObjectFormatter.spec.ts index 0d8bf085d..91f1e7d42 100644 --- a/packages/common/src/formatters/__tests__/complexObjectFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/complexObjectFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { complexObjectFormatter } from '../complexObjectFormatter'; +import type { Column } from '../../interfaces/index.js'; +import { complexObjectFormatter } from '../complexObjectFormatter.js'; describe('the ComplexObject Formatter', () => { const allRoles = [{ roleId: 0, name: 'Administrator' }, { roleId: 1, name: 'Regular User', empty: {}, nullable: null }]; diff --git a/packages/common/src/formatters/__tests__/currencyFormatter.spec.ts b/packages/common/src/formatters/__tests__/currencyFormatter.spec.ts index ffec28f9d..79e9c1ae4 100644 --- a/packages/common/src/formatters/__tests__/currencyFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/currencyFormatter.spec.ts @@ -1,8 +1,8 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { currencyFormatter } from '../currencyFormatter'; -import type { SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { currencyFormatter } from '../currencyFormatter.js'; +import type { SlickGrid } from '../../core/index.js'; describe('the Currency Formatter', () => { const gridStub = { diff --git a/packages/common/src/formatters/__tests__/dateEuroFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateEuroFormatter.spec.ts index 9866dfe27..af901cf17 100644 --- a/packages/common/src/formatters/__tests__/dateEuroFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateEuroFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateEuro Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateEuroShortFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateEuroShortFormatter.spec.ts index bd54d732c..03842a085 100644 --- a/packages/common/src/formatters/__tests__/dateEuroShortFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateEuroShortFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateEuroShort Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateIsoFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateIsoFormatter.spec.ts index 96a1f1c0f..9923066cf 100644 --- a/packages/common/src/formatters/__tests__/dateIsoFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateIsoFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the Date ISO Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateTimeEuroAM_PMFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateTimeEuroAM_PMFormatter.spec.ts index cffdc340c..6c2fef297 100644 --- a/packages/common/src/formatters/__tests__/dateTimeEuroAM_PMFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateTimeEuroAM_PMFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateTimeEuroAM_PM Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateTimeEuroAmPmFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateTimeEuroAmPmFormatter.spec.ts index 428f447df..d61877e8a 100644 --- a/packages/common/src/formatters/__tests__/dateTimeEuroAmPmFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateTimeEuroAmPmFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateTimeShortEuro Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateTimeEuroFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateTimeEuroFormatter.spec.ts index a103dd3e5..3acb17e3f 100644 --- a/packages/common/src/formatters/__tests__/dateTimeEuroFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateTimeEuroFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateTimeEuro Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateTimeEuroShortAM_PMFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateTimeEuroShortAM_PMFormatter.spec.ts index 06c28d4af..da2eddb89 100644 --- a/packages/common/src/formatters/__tests__/dateTimeEuroShortAM_PMFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateTimeEuroShortAM_PMFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateTimeEuroShortAM_PM Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateTimeEuroShortAmPmFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateTimeEuroShortAmPmFormatter.spec.ts index 516b9a8ee..addd5f7b7 100644 --- a/packages/common/src/formatters/__tests__/dateTimeEuroShortAmPmFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateTimeEuroShortAmPmFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateTimeEuroShortAmPm Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateTimeEuroShortFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateTimeEuroShortFormatter.spec.ts index 7d17f38ed..1342acbcc 100644 --- a/packages/common/src/formatters/__tests__/dateTimeEuroShortFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateTimeEuroShortFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateTimeEuroShort Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateTimeIsoAM_PMFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateTimeIsoAM_PMFormatter.spec.ts index 77875ae99..90591f3be 100644 --- a/packages/common/src/formatters/__tests__/dateTimeIsoAM_PMFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateTimeIsoAM_PMFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateTimeIsoAM_PM Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateTimeIsoAmPmFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateTimeIsoAmPmFormatter.spec.ts index d0d3862f5..b0f772b8c 100644 --- a/packages/common/src/formatters/__tests__/dateTimeIsoAmPmFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateTimeIsoAmPmFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateTimeIsoAmPm Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateTimeIsoFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateTimeIsoFormatter.spec.ts index bb3b28295..7e6b8ee94 100644 --- a/packages/common/src/formatters/__tests__/dateTimeIsoFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateTimeIsoFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateTimeIso Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateTimeShortEuroFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateTimeShortEuroFormatter.spec.ts index 8fb27ad00..9fc266d23 100644 --- a/packages/common/src/formatters/__tests__/dateTimeShortEuroFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateTimeShortEuroFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateTimeShortEuro Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateTimeShortIsoFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateTimeShortIsoFormatter.spec.ts index 433ceb439..97a5d84be 100644 --- a/packages/common/src/formatters/__tests__/dateTimeShortIsoFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateTimeShortIsoFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateTimeShortIso Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateTimeShortUsFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateTimeShortUsFormatter.spec.ts index d112ea6f9..bb9ebf919 100644 --- a/packages/common/src/formatters/__tests__/dateTimeShortUsFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateTimeShortUsFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateTimeShortUs Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateTimeUsAM_PMFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateTimeUsAM_PMFormatter.spec.ts index d0f1ea016..8977012b9 100644 --- a/packages/common/src/formatters/__tests__/dateTimeUsAM_PMFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateTimeUsAM_PMFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateTimeUsAM_PM Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateTimeUsAmPmFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateTimeUsAmPmFormatter.spec.ts index a1e51e190..4f4622094 100644 --- a/packages/common/src/formatters/__tests__/dateTimeUsAmPmFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateTimeUsAmPmFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateTimeShortUs Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateTimeUsFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateTimeUsFormatter.spec.ts index 3642c74c7..728aebe29 100644 --- a/packages/common/src/formatters/__tests__/dateTimeUsFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateTimeUsFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateTimeUs Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateTimeUsShortAM_PMFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateTimeUsShortAM_PMFormatter.spec.ts index 6fc792539..a0bf3ab96 100644 --- a/packages/common/src/formatters/__tests__/dateTimeUsShortAM_PMFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateTimeUsShortAM_PMFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateTimeUsShortAM_PM Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateTimeUsShortAmPmFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateTimeUsShortAmPmFormatter.spec.ts index 0918e0f34..c3d257d2c 100644 --- a/packages/common/src/formatters/__tests__/dateTimeUsShortAmPmFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateTimeUsShortAmPmFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateTimeUsShortAmPm Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateTimeUsShortFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateTimeUsShortFormatter.spec.ts index 5c73eb357..ef17d6276 100644 --- a/packages/common/src/formatters/__tests__/dateTimeUsShortFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateTimeUsShortFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateTimeUsShort Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateUsFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateUsFormatter.spec.ts index a2ef446a4..7c3d8fc3c 100644 --- a/packages/common/src/formatters/__tests__/dateUsFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateUsFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateUs Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateUsShortFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateUsShortFormatter.spec.ts index a2c94eca1..5b61f26b5 100644 --- a/packages/common/src/formatters/__tests__/dateUsShortFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateUsShortFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateUsShort Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/dateUtcFormatter.spec.ts b/packages/common/src/formatters/__tests__/dateUtcFormatter.spec.ts index 143169625..7dc1bcbf4 100644 --- a/packages/common/src/formatters/__tests__/dateUtcFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dateUtcFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { Formatters } from '../index'; +import type { Column } from '../../interfaces/index.js'; +import { Formatters } from '../index.js'; describe('the DateUtc Formatter', () => { it('should return null when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/decimalFormatter.spec.ts b/packages/common/src/formatters/__tests__/decimalFormatter.spec.ts index 51757611c..bd1f74482 100644 --- a/packages/common/src/formatters/__tests__/decimalFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/decimalFormatter.spec.ts @@ -1,8 +1,8 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { decimalFormatter } from '../decimalFormatter'; -import type { SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { decimalFormatter } from '../decimalFormatter.js'; +import type { SlickGrid } from '../../core/index.js'; describe('the Decimal Formatter', () => { const gridStub = { diff --git a/packages/common/src/formatters/__tests__/dollarColoredBoldFormatter.spec.ts b/packages/common/src/formatters/__tests__/dollarColoredBoldFormatter.spec.ts index 14b58f63b..3c8981752 100644 --- a/packages/common/src/formatters/__tests__/dollarColoredBoldFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dollarColoredBoldFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { dollarColoredBoldFormatter } from '../dollarColoredBoldFormatter'; -import type { SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { dollarColoredBoldFormatter } from '../dollarColoredBoldFormatter.js'; +import type { SlickGrid } from '../../core/index.js'; describe('the DollarColoredBold Formatter', () => { const gridStub = { diff --git a/packages/common/src/formatters/__tests__/dollarColoredFormatter.spec.ts b/packages/common/src/formatters/__tests__/dollarColoredFormatter.spec.ts index 110ec3dc7..05496d62d 100644 --- a/packages/common/src/formatters/__tests__/dollarColoredFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dollarColoredFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { dollarColoredFormatter } from '../dollarColoredFormatter'; -import type { SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { dollarColoredFormatter } from '../dollarColoredFormatter.js'; +import type { SlickGrid } from '../../core/index.js'; describe('the DollarColored Formatter', () => { const gridStub = { diff --git a/packages/common/src/formatters/__tests__/dollarFormatter.spec.ts b/packages/common/src/formatters/__tests__/dollarFormatter.spec.ts index 7559e6331..db5262644 100644 --- a/packages/common/src/formatters/__tests__/dollarFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/dollarFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { dollarFormatter } from '../dollarFormatter'; -import type { SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { dollarFormatter } from '../dollarFormatter.js'; +import type { SlickGrid } from '../../core/index.js'; describe('the Dollar Formatter', () => { const gridStub = { diff --git a/packages/common/src/formatters/__tests__/formatterUtilities.spec.ts b/packages/common/src/formatters/__tests__/formatterUtilities.spec.ts index 5e48921aa..430b53ba6 100644 --- a/packages/common/src/formatters/__tests__/formatterUtilities.spec.ts +++ b/packages/common/src/formatters/__tests__/formatterUtilities.spec.ts @@ -1,12 +1,12 @@ import { beforeEach, describe, expect, it, type Mock, vi } from 'vitest'; -import { autoAddEditorFormatterToColumnsWithEditor, exportWithFormatterWhenDefined, getAssociatedDateFormatter, getValueFromParamsOrFormatterOptions } from '../formatterUtilities'; -import { FieldType } from '../../enums/index'; -import { Editors } from '../../editors/index'; -import type { Column, Formatter, GridOption } from '../../interfaces/index'; -import { complexObjectFormatter } from '../complexObjectFormatter'; -import { multipleFormatter } from '../multipleFormatter'; -import { type SlickGrid } from '../../core/index'; +import { autoAddEditorFormatterToColumnsWithEditor, exportWithFormatterWhenDefined, getAssociatedDateFormatter, getValueFromParamsOrFormatterOptions } from '../formatterUtilities.js'; +import { FieldType } from '../../enums/index.js'; +import { Editors } from '../../editors/index.js'; +import type { Column, Formatter, GridOption } from '../../interfaces/index.js'; +import { complexObjectFormatter } from '../complexObjectFormatter.js'; +import { multipleFormatter } from '../multipleFormatter.js'; +import { type SlickGrid } from '../../core/index.js'; describe('formatterUtilities', () => { const gridStub = { diff --git a/packages/common/src/formatters/__tests__/hyperlinkFormatter.spec.ts b/packages/common/src/formatters/__tests__/hyperlinkFormatter.spec.ts index 16ecc012b..f35943d68 100644 --- a/packages/common/src/formatters/__tests__/hyperlinkFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/hyperlinkFormatter.spec.ts @@ -1,8 +1,8 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { hyperlinkFormatter } from '../hyperlinkFormatter'; -import type { SlickGrid } from '../../core/index'; +import type { Column } from '../../interfaces/index.js'; +import { hyperlinkFormatter } from '../hyperlinkFormatter.js'; +import type { SlickGrid } from '../../core/index.js'; const gridStub = { getData: vi.fn(), diff --git a/packages/common/src/formatters/__tests__/iconBooleanFormatter.spec.ts b/packages/common/src/formatters/__tests__/iconBooleanFormatter.spec.ts index cfc12d457..855dcb981 100644 --- a/packages/common/src/formatters/__tests__/iconBooleanFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/iconBooleanFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { iconBooleanFormatter } from '../iconBooleanFormatter'; +import type { Column } from '../../interfaces/index.js'; +import { iconBooleanFormatter } from '../iconBooleanFormatter.js'; describe('the Checkmark Formatter', () => { it('should throw an error when omitting to pass "params.cssClass"', () => { diff --git a/packages/common/src/formatters/__tests__/iconFormatter.spec.ts b/packages/common/src/formatters/__tests__/iconFormatter.spec.ts index 9c97950fb..40400826b 100644 --- a/packages/common/src/formatters/__tests__/iconFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/iconFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { iconFormatter } from '../iconFormatter'; +import type { Column } from '../../interfaces/index.js'; +import { iconFormatter } from '../iconFormatter.js'; describe('the Icon Formatter', () => { it('should throw an error when omitting to pass "propertyNames" to "params"', () => { diff --git a/packages/common/src/formatters/__tests__/maskFormatter.spec.ts b/packages/common/src/formatters/__tests__/maskFormatter.spec.ts index 2c8afc97d..91a0234d2 100644 --- a/packages/common/src/formatters/__tests__/maskFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/maskFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, vi } from 'vitest'; -import type { SlickGrid } from '../../core/index'; -import type { Column } from '../../interfaces/index'; -import { maskFormatter } from '../maskFormatter'; +import type { SlickGrid } from '../../core/index.js'; +import type { Column } from '../../interfaces/index.js'; +import { maskFormatter } from '../maskFormatter.js'; const gridStub = { applyHtmlCode: (elm, val) => elm.innerHTML = val || '', diff --git a/packages/common/src/formatters/__tests__/multipleFormatter.spec.ts b/packages/common/src/formatters/__tests__/multipleFormatter.spec.ts index 1fd73acab..8b90f7679 100644 --- a/packages/common/src/formatters/__tests__/multipleFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/multipleFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column, Formatter } from '../../interfaces/index'; -import { multipleFormatter } from '../multipleFormatter'; +import type { Column, Formatter } from '../../interfaces/index.js'; +import { multipleFormatter } from '../multipleFormatter.js'; const myBoldFormatter: Formatter = (_row, _cell, value) => value ? `${value}` : ''; const myItalicFormatter: Formatter = (_row, _cell, value) => value ? `${value}` : ''; diff --git a/packages/common/src/formatters/__tests__/percentCompleteBarFormatter.spec.ts b/packages/common/src/formatters/__tests__/percentCompleteBarFormatter.spec.ts index 898aa827d..87dc8f2fd 100644 --- a/packages/common/src/formatters/__tests__/percentCompleteBarFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/percentCompleteBarFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { percentCompleteBarFormatter } from '../percentCompleteBarFormatter'; +import type { Column } from '../../interfaces/index.js'; +import { percentCompleteBarFormatter } from '../percentCompleteBarFormatter.js'; describe('the Percent Complete Formatter', () => { it('should return an empty string when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/percentCompleteBarWithTextFormatter.spec.ts b/packages/common/src/formatters/__tests__/percentCompleteBarWithTextFormatter.spec.ts index 95dbb915d..5673fb59f 100644 --- a/packages/common/src/formatters/__tests__/percentCompleteBarWithTextFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/percentCompleteBarWithTextFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { percentCompleteBarWithTextFormatter } from '../percentCompleteBarWithTextFormatter'; +import type { Column } from '../../interfaces/index.js'; +import { percentCompleteBarWithTextFormatter } from '../percentCompleteBarWithTextFormatter.js'; describe('the Percent Complete with Text Formatter', () => { it('should return an empty string when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/percentCompleteFormatter.spec.ts b/packages/common/src/formatters/__tests__/percentCompleteFormatter.spec.ts index 3a32a7d8e..58a1bcadc 100644 --- a/packages/common/src/formatters/__tests__/percentCompleteFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/percentCompleteFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { percentCompleteFormatter } from '../percentCompleteFormatter'; -import type { SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { percentCompleteFormatter } from '../percentCompleteFormatter.js'; +import type { SlickGrid } from '../../core/index.js'; describe('the Percent Complete Formatter', () => { const gridStub = { diff --git a/packages/common/src/formatters/__tests__/percentFormatter.spec.ts b/packages/common/src/formatters/__tests__/percentFormatter.spec.ts index debc8d893..1d049da04 100644 --- a/packages/common/src/formatters/__tests__/percentFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/percentFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { percentFormatter } from '../percentFormatter'; -import type { SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { percentFormatter } from '../percentFormatter.js'; +import type { SlickGrid } from '../../core/index.js'; describe('the Percent Symbol Formatter', () => { const gridStub = { diff --git a/packages/common/src/formatters/__tests__/percentSymbolFormatter.spec.ts b/packages/common/src/formatters/__tests__/percentSymbolFormatter.spec.ts index f70f258b1..b95765fbd 100644 --- a/packages/common/src/formatters/__tests__/percentSymbolFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/percentSymbolFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { percentSymbolFormatter } from '../percentSymbolFormatter'; -import type { SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { percentSymbolFormatter } from '../percentSymbolFormatter.js'; +import type { SlickGrid } from '../../core/index.js'; describe('the Percent Symbol Formatter', () => { const gridStub = { diff --git a/packages/common/src/formatters/__tests__/progressBarFormatter.spec.ts b/packages/common/src/formatters/__tests__/progressBarFormatter.spec.ts index e9ce471d4..8d224376e 100644 --- a/packages/common/src/formatters/__tests__/progressBarFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/progressBarFormatter.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { progressBarFormatter } from '../progressBarFormatter'; +import type { Column } from '../../interfaces/index.js'; +import { progressBarFormatter } from '../progressBarFormatter.js'; describe('the Progress Bar Formatter', () => { it('should return an empty string when no value is provided', () => { diff --git a/packages/common/src/formatters/__tests__/translateBooleanFormatter.spec.ts b/packages/common/src/formatters/__tests__/translateBooleanFormatter.spec.ts index 2c09579be..6ad6ba882 100644 --- a/packages/common/src/formatters/__tests__/translateBooleanFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/translateBooleanFormatter.spec.ts @@ -1,9 +1,9 @@ import { beforeEach, describe, expect, it, type Mock, vi } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { translateBooleanFormatter } from '../translateBooleanFormatter'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import type { SlickGrid } from '../../core'; +import type { Column } from '../../interfaces/index.js'; +import { translateBooleanFormatter } from '../translateBooleanFormatter.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import type { SlickGrid } from '../../core/slickGrid.js'; describe('the Translate Boolean Formatter', () => { let translateService: TranslateServiceStub; diff --git a/packages/common/src/formatters/__tests__/translateFormatter.spec.ts b/packages/common/src/formatters/__tests__/translateFormatter.spec.ts index 1076df346..fb59f8588 100644 --- a/packages/common/src/formatters/__tests__/translateFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/translateFormatter.spec.ts @@ -1,9 +1,9 @@ import { beforeEach, describe, expect, it, type Mock, vi } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { translateFormatter } from '../translateFormatter'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import type { SlickGrid } from '../../core'; +import type { Column } from '../../interfaces/index.js'; +import { translateFormatter } from '../translateFormatter.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import type { SlickGrid } from '../../core/slickGrid.js'; describe('the Translate Formatter', () => { let translateService: TranslateServiceStub; diff --git a/packages/common/src/formatters/__tests__/treeExportFormatter.spec.ts b/packages/common/src/formatters/__tests__/treeExportFormatter.spec.ts index 48f62e595..45035dc0d 100644 --- a/packages/common/src/formatters/__tests__/treeExportFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/treeExportFormatter.spec.ts @@ -1,8 +1,8 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { treeExportFormatter } from '../treeExportFormatter'; -import type { SlickGrid } from '../../core'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { treeExportFormatter } from '../treeExportFormatter.js'; +import type { SlickGrid } from '../../core/slickGrid.js'; const gridStub = { getData: vi.fn(), diff --git a/packages/common/src/formatters/__tests__/treeFormatter.spec.ts b/packages/common/src/formatters/__tests__/treeFormatter.spec.ts index 1198cbe63..b99cca543 100644 --- a/packages/common/src/formatters/__tests__/treeFormatter.spec.ts +++ b/packages/common/src/formatters/__tests__/treeFormatter.spec.ts @@ -2,9 +2,9 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'; import { getHtmlStringOutput } from '@slickgrid-universal/utils'; -import type { Column, FormatterResultWithHtml, GridOption } from '../../interfaces/index'; -import { treeFormatter } from '../treeFormatter'; -import type { SlickGrid } from '../../core/index'; +import type { Column, FormatterResultWithHtml, GridOption } from '../../interfaces/index.js'; +import { treeFormatter } from '../treeFormatter.js'; +import type { SlickGrid } from '../../core/index.js'; const gridStub = { applyHtmlCode: (elm, val) => elm.innerHTML = val || '', diff --git a/packages/common/src/formatters/__tests__/treeParseTotalFormatters.spec.ts b/packages/common/src/formatters/__tests__/treeParseTotalFormatters.spec.ts index a5740455d..07a64ae81 100644 --- a/packages/common/src/formatters/__tests__/treeParseTotalFormatters.spec.ts +++ b/packages/common/src/formatters/__tests__/treeParseTotalFormatters.spec.ts @@ -1,10 +1,10 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'; -import type { Column, Formatter, GridOption } from '../../interfaces/index'; -import { GroupTotalFormatters } from '../../grouping-formatters'; -import { treeParseTotalsFormatter } from '../treeParseTotalsFormatter'; -import { dollarFormatter } from '../dollarFormatter'; -import type { SlickGrid } from '../../core/index'; +import type { Column, Formatter, GridOption } from '../../interfaces/index.js'; +import { GroupTotalFormatters } from '../../grouping-formatters/groupingFormatters.index.js'; +import { treeParseTotalsFormatter } from '../treeParseTotalsFormatter.js'; +import { dollarFormatter } from '../dollarFormatter.js'; +import type { SlickGrid } from '../../core/index.js'; const gridStub = { getData: vi.fn(), diff --git a/packages/common/src/formatters/arrayObjectToCsvFormatter.ts b/packages/common/src/formatters/arrayObjectToCsvFormatter.ts index a8ca6d8d3..ffdb4c961 100644 --- a/packages/common/src/formatters/arrayObjectToCsvFormatter.ts +++ b/packages/common/src/formatters/arrayObjectToCsvFormatter.ts @@ -1,6 +1,6 @@ import { createDomElement } from '@slickgrid-universal/utils'; -import type { Formatter } from './../interfaces/index'; +import type { Formatter } from './../interfaces/index.js'; /** * Takes an array of complex objects converts it to a comma delimited string. diff --git a/packages/common/src/formatters/arrayToCsvFormatter.ts b/packages/common/src/formatters/arrayToCsvFormatter.ts index 083e7b7c0..0820e57fc 100644 --- a/packages/common/src/formatters/arrayToCsvFormatter.ts +++ b/packages/common/src/formatters/arrayToCsvFormatter.ts @@ -1,6 +1,6 @@ import { createDomElement } from '@slickgrid-universal/utils'; -import type { Formatter } from './../interfaces/index'; +import type { Formatter } from './../interfaces/index.js'; /** Takes an array of string and converts it to a comma delimited string */ export const arrayToCsvFormatter: Formatter = (_row, _cell, value) => { diff --git a/packages/common/src/formatters/checkmarkMaterialFormatter.ts b/packages/common/src/formatters/checkmarkMaterialFormatter.ts index 49aa7b929..2f8d06260 100644 --- a/packages/common/src/formatters/checkmarkMaterialFormatter.ts +++ b/packages/common/src/formatters/checkmarkMaterialFormatter.ts @@ -1,6 +1,6 @@ import { createDomElement, isNumber } from '@slickgrid-universal/utils'; -import type { Formatter } from './../interfaces/index'; +import type { Formatter } from './../interfaces/index.js'; /** * When value is filled, or if the value is a number and is bigger than 0, it will display a Material Design check icon (mdi-check). diff --git a/packages/common/src/formatters/collectionEditorFormatter.ts b/packages/common/src/formatters/collectionEditorFormatter.ts index c9c12f140..b1812716e 100644 --- a/packages/common/src/formatters/collectionEditorFormatter.ts +++ b/packages/common/src/formatters/collectionEditorFormatter.ts @@ -1,6 +1,6 @@ -import { arrayToCsvFormatter } from './arrayToCsvFormatter'; -import type { Formatter } from './../interfaces/index'; -import { findOrDefault } from '../services/index'; +import { arrayToCsvFormatter } from './arrayToCsvFormatter.js'; +import type { Formatter } from './../interfaces/index.js'; +import { findOrDefault } from '../services/index.js'; /** * Roughly the same as the "collectionFormatter" except that it diff --git a/packages/common/src/formatters/collectionFormatter.ts b/packages/common/src/formatters/collectionFormatter.ts index 731b49882..631272e55 100644 --- a/packages/common/src/formatters/collectionFormatter.ts +++ b/packages/common/src/formatters/collectionFormatter.ts @@ -1,6 +1,6 @@ -import { arrayToCsvFormatter } from './arrayToCsvFormatter'; -import type { Formatter } from './../interfaces/index'; -import { findOrDefault } from '../services/index'; +import { arrayToCsvFormatter } from './arrayToCsvFormatter.js'; +import type { Formatter } from './../interfaces/index.js'; +import { findOrDefault } from '../services/index.js'; /** * Looks up values from the columnDefinition.params.collection property and displays the label in CSV or string format diff --git a/packages/common/src/formatters/complexObjectFormatter.ts b/packages/common/src/formatters/complexObjectFormatter.ts index 1fe6badd6..f4cd55559 100644 --- a/packages/common/src/formatters/complexObjectFormatter.ts +++ b/packages/common/src/formatters/complexObjectFormatter.ts @@ -1,4 +1,4 @@ -import type { Formatter } from './../interfaces/index'; +import type { Formatter } from './../interfaces/index.js'; /** * Takes a complex data object and return the data under that property (for example: "user.firstName" will return the first name "John") diff --git a/packages/common/src/formatters/currencyFormatter.ts b/packages/common/src/formatters/currencyFormatter.ts index cf15cda66..063600fa0 100644 --- a/packages/common/src/formatters/currencyFormatter.ts +++ b/packages/common/src/formatters/currencyFormatter.ts @@ -1,8 +1,8 @@ import { isNumber } from '@slickgrid-universal/utils'; -import type { Formatter } from '../interfaces/index'; -import { formatNumber } from '../services/utilities'; -import { retrieveFormatterOptions } from './formatterUtilities'; +import type { Formatter } from '../interfaces/index.js'; +import { formatNumber } from '../services/utilities.js'; +import { retrieveFormatterOptions } from './formatterUtilities.js'; /** * This Formatters allow the user to provide any currency symbol (as symbol prefix/suffix) and also provide extra text prefix/suffix. diff --git a/packages/common/src/formatters/decimalFormatter.ts b/packages/common/src/formatters/decimalFormatter.ts index 6ca21b562..27d790ce7 100644 --- a/packages/common/src/formatters/decimalFormatter.ts +++ b/packages/common/src/formatters/decimalFormatter.ts @@ -1,8 +1,8 @@ import { isNumber } from '@slickgrid-universal/utils'; -import type { Formatter } from './../interfaces/index'; -import { formatNumber } from './../services/utilities'; -import { retrieveFormatterOptions } from './formatterUtilities'; +import type { Formatter } from './../interfaces/index.js'; +import { formatNumber } from './../services/utilities.js'; +import { retrieveFormatterOptions } from './formatterUtilities.js'; /** * Display the value as x decimals formatted, defaults to 2 decimals. diff --git a/packages/common/src/formatters/dollarColoredBoldFormatter.ts b/packages/common/src/formatters/dollarColoredBoldFormatter.ts index 47f0dcc7c..23e287187 100644 --- a/packages/common/src/formatters/dollarColoredBoldFormatter.ts +++ b/packages/common/src/formatters/dollarColoredBoldFormatter.ts @@ -1,8 +1,8 @@ import { createDomElement, isNumber } from '@slickgrid-universal/utils'; -import { type Formatter } from './../interfaces/index'; -import { formatNumber } from './../services/utilities'; -import { retrieveFormatterOptions } from './formatterUtilities'; +import { type Formatter } from './../interfaces/index.js'; +import { formatNumber } from './../services/utilities.js'; +import { retrieveFormatterOptions } from './formatterUtilities.js'; /** Display the value as 2 decimals formatted with dollar sign '$' at the end of of the value, change color of text to red/green on negative/positive value, show it in bold font weight as well */ export const dollarColoredBoldFormatter: Formatter = (_row, _cell, value, columnDef, _dataContext, grid) => { diff --git a/packages/common/src/formatters/dollarColoredFormatter.ts b/packages/common/src/formatters/dollarColoredFormatter.ts index bfd2354a3..f87029208 100644 --- a/packages/common/src/formatters/dollarColoredFormatter.ts +++ b/packages/common/src/formatters/dollarColoredFormatter.ts @@ -1,8 +1,8 @@ import { createDomElement, isNumber } from '@slickgrid-universal/utils'; -import { type Formatter } from './../interfaces/index'; -import { formatNumber } from './../services/utilities'; -import { retrieveFormatterOptions } from './formatterUtilities'; +import { type Formatter } from './../interfaces/index.js'; +import { formatNumber } from './../services/utilities.js'; +import { retrieveFormatterOptions } from './formatterUtilities.js'; /** Display the value as 2 decimals formatted with dollar sign '$' at the end of of the value, change color of text to red/green on negative/positive value */ export const dollarColoredFormatter: Formatter = (_row, _cell, value, columnDef, _dataContext, grid) => { diff --git a/packages/common/src/formatters/dollarFormatter.ts b/packages/common/src/formatters/dollarFormatter.ts index c20a6f85c..d309470b0 100644 --- a/packages/common/src/formatters/dollarFormatter.ts +++ b/packages/common/src/formatters/dollarFormatter.ts @@ -1,8 +1,8 @@ import { isNumber } from '@slickgrid-universal/utils'; -import { type Formatter } from './../interfaces/index'; -import { formatNumber } from './../services/utilities'; -import { retrieveFormatterOptions } from './formatterUtilities'; +import { type Formatter } from './../interfaces/index.js'; +import { formatNumber } from './../services/utilities.js'; +import { retrieveFormatterOptions } from './formatterUtilities.js'; /** Display the value as 2 decimals formatted with dollar sign '$' at the end of of the value */ export const dollarFormatter: Formatter = (_row, _cell, value, columnDef, _dataContext, grid) => { diff --git a/packages/common/src/formatters/formatterUtilities.ts b/packages/common/src/formatters/formatterUtilities.ts index e5f40675d..656c26628 100644 --- a/packages/common/src/formatters/formatterUtilities.ts +++ b/packages/common/src/formatters/formatterUtilities.ts @@ -1,12 +1,12 @@ import { format } from '@formkit/tempo'; import { getHtmlStringOutput, isPrimitiveOrHTML, stripTags } from '@slickgrid-universal/utils'; -import { FieldType } from '../enums/fieldType.enum'; -import type { Column, ExcelExportOption, Formatter, FormatterResultWithHtml, FormatterResultWithText, GridOption, TextExportOption } from '../interfaces/index'; -import { multipleFormatter } from './multipleFormatter'; -import { Constants } from '../constants'; -import { type SlickGrid } from '../core/index'; -import { mapTempoDateFormatWithFieldType, toUtcDate, tryParseDate } from '../services/dateUtils'; +import { FieldType } from '../enums/fieldType.enum.js'; +import type { Column, ExcelExportOption, Formatter, FormatterResultWithHtml, FormatterResultWithText, GridOption, TextExportOption } from '../interfaces/index.js'; +import { multipleFormatter } from './multipleFormatter.js'; +import { Constants } from '../constants.js'; +import { type SlickGrid } from '../core/index.js'; +import { mapTempoDateFormatWithFieldType, toUtcDate, tryParseDate } from '../services/dateUtils.js'; export type FormatterType = 'group' | 'cell'; export type NumberType = 'decimal' | 'currency' | 'percent' | 'regular'; diff --git a/packages/common/src/formatters/formatters.index.ts b/packages/common/src/formatters/formatters.index.ts index 40cfd9590..bfb8277c6 100644 --- a/packages/common/src/formatters/formatters.index.ts +++ b/packages/common/src/formatters/formatters.index.ts @@ -1,33 +1,33 @@ -import { FieldType } from '../enums/index'; -import { getAssociatedDateFormatter } from './formatterUtilities'; -import { arrayObjectToCsvFormatter } from './arrayObjectToCsvFormatter'; -import { arrayToCsvFormatter } from './arrayToCsvFormatter'; -import { checkmarkMaterialFormatter } from './checkmarkMaterialFormatter'; -import { currencyFormatter } from './currencyFormatter'; -import { collectionFormatter } from './collectionFormatter'; -import { collectionEditorFormatter } from './collectionEditorFormatter'; -import { complexObjectFormatter } from './complexObjectFormatter'; -import { decimalFormatter } from './decimalFormatter'; -import { dollarColoredBoldFormatter } from './dollarColoredBoldFormatter'; -import { dollarColoredFormatter } from './dollarColoredFormatter'; -import { dollarFormatter } from './dollarFormatter'; -import { hyperlinkFormatter } from './hyperlinkFormatter'; -import { iconBooleanFormatter } from './iconBooleanFormatter'; -import { iconFormatter } from './iconFormatter'; -import { maskFormatter } from './maskFormatter'; -import { multipleFormatter } from './multipleFormatter'; -import { percentFormatter } from './percentFormatter'; -import { percentCompleteBarFormatter } from './percentCompleteBarFormatter'; -import { percentCompleteBarWithTextFormatter } from './percentCompleteBarWithTextFormatter'; -import { percentCompleteFormatter } from './percentCompleteFormatter'; -import { percentSymbolFormatter } from './percentSymbolFormatter'; -import { progressBarFormatter } from './progressBarFormatter'; -import { translateFormatter } from './translateFormatter'; -import { treeExportFormatter } from './treeExportFormatter'; -import { treeFormatter } from './treeFormatter'; -import { treeParseTotalsFormatter } from './treeParseTotalsFormatter'; -import { translateBooleanFormatter } from './translateBooleanFormatter'; -import type { Formatter } from '../interfaces/formatter.interface'; +import { FieldType } from '../enums/index.js'; +import { getAssociatedDateFormatter } from './formatterUtilities.js'; +import { arrayObjectToCsvFormatter } from './arrayObjectToCsvFormatter.js'; +import { arrayToCsvFormatter } from './arrayToCsvFormatter.js'; +import { checkmarkMaterialFormatter } from './checkmarkMaterialFormatter.js'; +import { currencyFormatter } from './currencyFormatter.js'; +import { collectionFormatter } from './collectionFormatter.js'; +import { collectionEditorFormatter } from './collectionEditorFormatter.js'; +import { complexObjectFormatter } from './complexObjectFormatter.js'; +import { decimalFormatter } from './decimalFormatter.js'; +import { dollarColoredBoldFormatter } from './dollarColoredBoldFormatter.js'; +import { dollarColoredFormatter } from './dollarColoredFormatter.js'; +import { dollarFormatter } from './dollarFormatter.js'; +import { hyperlinkFormatter } from './hyperlinkFormatter.js'; +import { iconBooleanFormatter } from './iconBooleanFormatter.js'; +import { iconFormatter } from './iconFormatter.js'; +import { maskFormatter } from './maskFormatter.js'; +import { multipleFormatter } from './multipleFormatter.js'; +import { percentFormatter } from './percentFormatter.js'; +import { percentCompleteBarFormatter } from './percentCompleteBarFormatter.js'; +import { percentCompleteBarWithTextFormatter } from './percentCompleteBarWithTextFormatter.js'; +import { percentCompleteFormatter } from './percentCompleteFormatter.js'; +import { percentSymbolFormatter } from './percentSymbolFormatter.js'; +import { progressBarFormatter } from './progressBarFormatter.js'; +import { translateFormatter } from './translateFormatter.js'; +import { treeExportFormatter } from './treeExportFormatter.js'; +import { treeFormatter } from './treeFormatter.js'; +import { treeParseTotalsFormatter } from './treeParseTotalsFormatter.js'; +import { translateBooleanFormatter } from './translateBooleanFormatter.js'; +import type { Formatter } from '../interfaces/formatter.interface.js'; /** Provides a list of different Formatters that will change the cell value displayed in the UI */ export const Formatters: Record = { diff --git a/packages/common/src/formatters/hyperlinkFormatter.ts b/packages/common/src/formatters/hyperlinkFormatter.ts index 9569cd712..0ed263e46 100644 --- a/packages/common/src/formatters/hyperlinkFormatter.ts +++ b/packages/common/src/formatters/hyperlinkFormatter.ts @@ -1,6 +1,6 @@ import { createDomElement } from '@slickgrid-universal/utils'; -import { type Formatter } from './../interfaces/index'; +import { type Formatter } from './../interfaces/index.js'; /** * Takes an hyperlink cell value and transforms it into a real hyperlink, given that the value starts with 1 of these (http|ftp|https). diff --git a/packages/common/src/formatters/iconBooleanFormatter.ts b/packages/common/src/formatters/iconBooleanFormatter.ts index 5d30e5704..d71b31ad5 100644 --- a/packages/common/src/formatters/iconBooleanFormatter.ts +++ b/packages/common/src/formatters/iconBooleanFormatter.ts @@ -1,6 +1,6 @@ import { createDomElement } from '@slickgrid-universal/utils'; -import { type Formatter } from './../interfaces/index'; +import { type Formatter } from './../interfaces/index.js'; /** Display whichever icon for a boolean value (library agnostic, it could be Font-Awesome, Material or any other icons set) */ export const iconBooleanFormatter: Formatter = (_row, _cell, value, columnDef) => { diff --git a/packages/common/src/formatters/iconFormatter.ts b/packages/common/src/formatters/iconFormatter.ts index aefe5ba61..cb22b9514 100644 --- a/packages/common/src/formatters/iconFormatter.ts +++ b/packages/common/src/formatters/iconFormatter.ts @@ -1,6 +1,6 @@ import { createDomElement } from '@slickgrid-universal/utils'; -import { type Formatter } from './../interfaces/index'; +import { type Formatter } from './../interfaces/index.js'; /** Display whichever icon you want (library agnostic, it could be Font-Awesome, Material or any other icons set) */ export const iconFormatter: Formatter = (_row, _cell, _value, columnDef) => { diff --git a/packages/common/src/formatters/index.ts b/packages/common/src/formatters/index.ts index 2829d3cdf..ae2b2b972 100644 --- a/packages/common/src/formatters/index.ts +++ b/packages/common/src/formatters/index.ts @@ -1,28 +1,28 @@ -export * from './arrayObjectToCsvFormatter'; -export * from './arrayToCsvFormatter'; -export * from './checkmarkMaterialFormatter'; -export * from './collectionEditorFormatter'; -export * from './collectionFormatter'; -export * from './complexObjectFormatter'; -export * from './decimalFormatter'; -export * from './dollarFormatter'; -export * from './dollarColoredFormatter'; -export * from './dollarColoredBoldFormatter'; -export * from './formatters.index'; -export * from './formatterUtilities'; -export * from './hyperlinkFormatter'; -export * from './iconBooleanFormatter'; -export * from './iconFormatter'; -export * from './maskFormatter'; -export * from './multipleFormatter'; -export * from './percentCompleteFormatter'; -export * from './percentCompleteBarWithTextFormatter'; -export * from './percentCompleteBarFormatter'; -export * from './percentFormatter'; -export * from './percentSymbolFormatter'; -export * from './progressBarFormatter'; -export * from './translateFormatter'; -export * from './translateBooleanFormatter'; -export * from './treeExportFormatter'; -export * from './treeFormatter'; -export * from './treeParseTotalsFormatter'; +export * from './arrayObjectToCsvFormatter.js'; +export * from './arrayToCsvFormatter.js'; +export * from './checkmarkMaterialFormatter.js'; +export * from './collectionEditorFormatter.js'; +export * from './collectionFormatter.js'; +export * from './complexObjectFormatter.js'; +export * from './decimalFormatter.js'; +export * from './dollarFormatter.js'; +export * from './dollarColoredFormatter.js'; +export * from './dollarColoredBoldFormatter.js'; +export * from './formatters.index.js'; +export * from './formatterUtilities.js'; +export * from './hyperlinkFormatter.js'; +export * from './iconBooleanFormatter.js'; +export * from './iconFormatter.js'; +export * from './maskFormatter.js'; +export * from './multipleFormatter.js'; +export * from './percentCompleteFormatter.js'; +export * from './percentCompleteBarWithTextFormatter.js'; +export * from './percentCompleteBarFormatter.js'; +export * from './percentFormatter.js'; +export * from './percentSymbolFormatter.js'; +export * from './progressBarFormatter.js'; +export * from './translateFormatter.js'; +export * from './translateBooleanFormatter.js'; +export * from './treeExportFormatter.js'; +export * from './treeFormatter.js'; +export * from './treeParseTotalsFormatter.js'; diff --git a/packages/common/src/formatters/maskFormatter.ts b/packages/common/src/formatters/maskFormatter.ts index f48f9b2a6..6beca0625 100644 --- a/packages/common/src/formatters/maskFormatter.ts +++ b/packages/common/src/formatters/maskFormatter.ts @@ -1,4 +1,4 @@ -import { type Formatter } from './../interfaces/index'; +import { type Formatter } from './../interfaces/index.js'; /** * Takes a value display it according to a mask provided diff --git a/packages/common/src/formatters/multipleFormatter.ts b/packages/common/src/formatters/multipleFormatter.ts index 4a3280ad4..f3af65e2a 100644 --- a/packages/common/src/formatters/multipleFormatter.ts +++ b/packages/common/src/formatters/multipleFormatter.ts @@ -1,4 +1,4 @@ -import { type Formatter } from './../interfaces/index'; +import { type Formatter } from './../interfaces/index.js'; /** * You can pipe multiple formatters (executed in sequence), use params to pass the list of formatters. diff --git a/packages/common/src/formatters/percentCompleteBarFormatter.ts b/packages/common/src/formatters/percentCompleteBarFormatter.ts index c863a8407..7631a0597 100644 --- a/packages/common/src/formatters/percentCompleteBarFormatter.ts +++ b/packages/common/src/formatters/percentCompleteBarFormatter.ts @@ -1,6 +1,6 @@ import { createDomElement, isNumber } from '@slickgrid-universal/utils'; -import { type Formatter } from './../interfaces/index'; +import { type Formatter } from './../interfaces/index.js'; /** Takes a cell value number (between 0-100) and displays a SlickGrid custom "percent-complete-bar" a red (<30), silver (>30 & <70) or green (>=70) bar */ export const percentCompleteBarFormatter: Formatter = (_row, _cell, value) => { diff --git a/packages/common/src/formatters/percentCompleteBarWithTextFormatter.ts b/packages/common/src/formatters/percentCompleteBarWithTextFormatter.ts index b12202b89..d05382896 100644 --- a/packages/common/src/formatters/percentCompleteBarWithTextFormatter.ts +++ b/packages/common/src/formatters/percentCompleteBarWithTextFormatter.ts @@ -1,6 +1,6 @@ import { createDomElement, isNumber } from '@slickgrid-universal/utils'; -import { type Formatter } from './../interfaces/index'; +import { type Formatter } from './../interfaces/index.js'; /** Takes a cell value number (between 0-100) and displays SlickGrid custom "percent-complete-bar" with Text a red (<30), silver (>30 & <70) or green (>=70) bar */ export const percentCompleteBarWithTextFormatter: Formatter = (_row, _cell, value) => { diff --git a/packages/common/src/formatters/percentCompleteFormatter.ts b/packages/common/src/formatters/percentCompleteFormatter.ts index fde3bd7d0..cf514ebc2 100644 --- a/packages/common/src/formatters/percentCompleteFormatter.ts +++ b/packages/common/src/formatters/percentCompleteFormatter.ts @@ -1,8 +1,8 @@ import { createDomElement, isNumber } from '@slickgrid-universal/utils'; -import { type Formatter } from './../interfaces/index'; -import { formatNumber } from './../services/utilities'; -import { retrieveFormatterOptions } from './formatterUtilities'; +import { type Formatter } from './../interfaces/index.js'; +import { formatNumber } from './../services/utilities.js'; +import { retrieveFormatterOptions } from './formatterUtilities.js'; /** Takes a cell value number (between 0.0-100) and displays a red (<50) or green (>=50) bar */ export const percentCompleteFormatter: Formatter = (_row, _cell, value, columnDef, _dataContext, grid) => { diff --git a/packages/common/src/formatters/percentFormatter.ts b/packages/common/src/formatters/percentFormatter.ts index 70ed0c538..c243a48b3 100644 --- a/packages/common/src/formatters/percentFormatter.ts +++ b/packages/common/src/formatters/percentFormatter.ts @@ -1,8 +1,8 @@ import { isNumber } from '@slickgrid-universal/utils'; -import { type Formatter } from './../interfaces/index'; -import { formatNumber } from './../services/utilities'; -import { retrieveFormatterOptions } from './formatterUtilities'; +import { type Formatter } from './../interfaces/index.js'; +import { formatNumber } from './../services/utilities.js'; +import { retrieveFormatterOptions } from './formatterUtilities.js'; /** Takes a cell value number (between 0.0-1.0) and displays a red (<50) or green (>=50) bar */ export const percentFormatter: Formatter = (_row, _cell, value, columnDef, _dataContext, grid) => { diff --git a/packages/common/src/formatters/percentSymbolFormatter.ts b/packages/common/src/formatters/percentSymbolFormatter.ts index 7db5fc7d0..c1cb9467e 100644 --- a/packages/common/src/formatters/percentSymbolFormatter.ts +++ b/packages/common/src/formatters/percentSymbolFormatter.ts @@ -1,8 +1,8 @@ import { isNumber } from '@slickgrid-universal/utils'; -import { type Formatter } from './../interfaces/index'; -import { formatNumber } from './../services/utilities'; -import { retrieveFormatterOptions } from './formatterUtilities'; +import { type Formatter } from './../interfaces/index.js'; +import { formatNumber } from './../services/utilities.js'; +import { retrieveFormatterOptions } from './formatterUtilities.js'; /** Takes a cell value number (between 0-100) and add the "%" after the number */ export const percentSymbolFormatter: Formatter = (_row, _cell, value, columnDef, _dataContext, grid) => { diff --git a/packages/common/src/formatters/progressBarFormatter.ts b/packages/common/src/formatters/progressBarFormatter.ts index 0a32eee5c..5eaba852d 100644 --- a/packages/common/src/formatters/progressBarFormatter.ts +++ b/packages/common/src/formatters/progressBarFormatter.ts @@ -1,6 +1,6 @@ import { createDomElement, isNumber } from '@slickgrid-universal/utils'; -import { type Formatter } from './../interfaces/index'; +import { type Formatter } from './../interfaces/index.js'; /** Takes a cell value number (between 0-100) and displays Bootstrap "progress-bar" a red (<30), silver (>30 & <70) or green (>=70) bar */ export const progressBarFormatter: Formatter = (_row, _cell, value) => { diff --git a/packages/common/src/formatters/translateBooleanFormatter.ts b/packages/common/src/formatters/translateBooleanFormatter.ts index e0798c6e7..8e454a430 100644 --- a/packages/common/src/formatters/translateBooleanFormatter.ts +++ b/packages/common/src/formatters/translateBooleanFormatter.ts @@ -1,4 +1,4 @@ -import { type Formatter } from './../interfaces/index'; +import { type Formatter } from './../interfaces/index.js'; /** Takes a boolean value, cast it to upperCase string and finally translates it (i18n). */ export const translateBooleanFormatter: Formatter = (_row, _cell, value, columnDef, _dataContext, grid) => { diff --git a/packages/common/src/formatters/translateFormatter.ts b/packages/common/src/formatters/translateFormatter.ts index 1f773316d..77ee99ef9 100644 --- a/packages/common/src/formatters/translateFormatter.ts +++ b/packages/common/src/formatters/translateFormatter.ts @@ -1,4 +1,4 @@ -import { type Formatter } from './../interfaces/index'; +import { type Formatter } from './../interfaces/index.js'; /** Takes a cell value and translates it (translater). Requires an instance of the Translate Service:: `translater: this.translate */ export const translateFormatter: Formatter = (_row, _cell, value, columnDef, _dataContext, grid) => { diff --git a/packages/common/src/formatters/treeExportFormatter.ts b/packages/common/src/formatters/treeExportFormatter.ts index fd64c6ed5..ec4f22f3b 100644 --- a/packages/common/src/formatters/treeExportFormatter.ts +++ b/packages/common/src/formatters/treeExportFormatter.ts @@ -1,9 +1,9 @@ import { addWhiteSpaces, stripTags } from '@slickgrid-universal/utils'; -import { Constants } from '../constants'; -import { type Formatter } from './../interfaces/index'; -import { getCellValueFromQueryFieldGetter, } from '../services/utilities'; -import { parseFormatterWhenExist } from './formatterUtilities'; +import { Constants } from '../constants.js'; +import { type Formatter } from './../interfaces/index.js'; +import { getCellValueFromQueryFieldGetter, } from '../services/utilities.js'; +import { parseFormatterWhenExist } from './formatterUtilities.js'; /** Formatter that must be use with a Tree Data column */ export const treeExportFormatter: Formatter = (row, cell, value, columnDef, dataContext, grid) => { diff --git a/packages/common/src/formatters/treeFormatter.ts b/packages/common/src/formatters/treeFormatter.ts index 8abf81a6b..96a504710 100644 --- a/packages/common/src/formatters/treeFormatter.ts +++ b/packages/common/src/formatters/treeFormatter.ts @@ -1,9 +1,9 @@ import { createDomElement } from '@slickgrid-universal/utils'; -import { Constants } from '../constants'; -import { type Formatter } from './../interfaces/index'; -import { parseFormatterWhenExist } from './formatterUtilities'; -import { getCellValueFromQueryFieldGetter, } from '../services/utilities'; +import { Constants } from '../constants.js'; +import { type Formatter } from './../interfaces/index.js'; +import { parseFormatterWhenExist } from './formatterUtilities.js'; +import { getCellValueFromQueryFieldGetter, } from '../services/utilities.js'; /** Formatter that must be use with a Tree Data column */ export const treeFormatter: Formatter = (row, cell, value, columnDef, dataContext, grid) => { diff --git a/packages/common/src/formatters/treeParseTotalsFormatter.ts b/packages/common/src/formatters/treeParseTotalsFormatter.ts index ffe7f16cb..5edaca000 100644 --- a/packages/common/src/formatters/treeParseTotalsFormatter.ts +++ b/packages/common/src/formatters/treeParseTotalsFormatter.ts @@ -1,5 +1,5 @@ -import { Constants } from '../constants'; -import type { Formatter, GridOption, GroupTotalsFormatter } from '../interfaces/index'; +import { Constants } from '../constants.js'; +import type { Formatter, GridOption, GroupTotalsFormatter } from '../interfaces/index.js'; export const treeParseTotalsFormatter: Formatter = (row, cell, value, columnDef, dataContext, grid) => { const gridOptions = grid.getOptions() as GridOption; diff --git a/packages/common/src/global-grid-options.ts b/packages/common/src/global-grid-options.ts index 201d620b8..a6146b77a 100644 --- a/packages/common/src/global-grid-options.ts +++ b/packages/common/src/global-grid-options.ts @@ -1,8 +1,8 @@ import { EventNamingStyle } from '@slickgrid-universal/event-pub-sub'; -import { DelimiterType, FileType, OperatorType } from './enums/index'; -import type { Column, EmptyWarning, GridOption, TreeDataOption } from './interfaces/index'; -import { Filters } from './filters'; +import { DelimiterType, FileType, OperatorType } from './enums/index.js'; +import type { Column, EmptyWarning, GridOption, TreeDataOption } from './interfaces/index.js'; +import { Filters } from './filters/index.js'; /** Global Grid Options Defaults */ export const GlobalGridOptions: Partial = { diff --git a/packages/common/src/grouping-formatters/__tests__/avgTotalsCurrencyFormatters.spec.ts b/packages/common/src/grouping-formatters/__tests__/avgTotalsCurrencyFormatters.spec.ts index 5457ccea9..1eabd6b7d 100644 --- a/packages/common/src/grouping-formatters/__tests__/avgTotalsCurrencyFormatters.spec.ts +++ b/packages/common/src/grouping-formatters/__tests__/avgTotalsCurrencyFormatters.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, type Mock, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { avgTotalsCurrencyFormatter } from '../avgTotalsCurrencyFormatter'; -import { type SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { avgTotalsCurrencyFormatter } from '../avgTotalsCurrencyFormatter.js'; +import { type SlickGrid } from '../../core/index.js'; describe('avgTotalsCurrencyFormatter', () => { // stub some methods of the SlickGrid Grid instance diff --git a/packages/common/src/grouping-formatters/__tests__/avgTotalsDollarFormatters.spec.ts b/packages/common/src/grouping-formatters/__tests__/avgTotalsDollarFormatters.spec.ts index f977d2b4e..b1f3721cb 100644 --- a/packages/common/src/grouping-formatters/__tests__/avgTotalsDollarFormatters.spec.ts +++ b/packages/common/src/grouping-formatters/__tests__/avgTotalsDollarFormatters.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, type Mock, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { avgTotalsDollarFormatter } from '../avgTotalsDollarFormatter'; -import { type SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { avgTotalsDollarFormatter } from '../avgTotalsDollarFormatter.js'; +import { type SlickGrid } from '../../core/index.js'; describe('avgTotalsDollarFormatter', () => { // stub some methods of the SlickGrid Grid instance diff --git a/packages/common/src/grouping-formatters/__tests__/avgTotalsFormatter.spec.ts b/packages/common/src/grouping-formatters/__tests__/avgTotalsFormatter.spec.ts index 900a1ad4d..95c891f9e 100644 --- a/packages/common/src/grouping-formatters/__tests__/avgTotalsFormatter.spec.ts +++ b/packages/common/src/grouping-formatters/__tests__/avgTotalsFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, type Mock, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { avgTotalsFormatter } from '../avgTotalsFormatter'; -import { type SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { avgTotalsFormatter } from '../avgTotalsFormatter.js'; +import { type SlickGrid } from '../../core/index.js'; describe('avgTotalsFormatter', () => { // stub some methods of the SlickGrid Grid instance diff --git a/packages/common/src/grouping-formatters/__tests__/avgTotalsPercentageFormatter.spec.ts b/packages/common/src/grouping-formatters/__tests__/avgTotalsPercentageFormatter.spec.ts index fbcf1cdae..e065d78fd 100644 --- a/packages/common/src/grouping-formatters/__tests__/avgTotalsPercentageFormatter.spec.ts +++ b/packages/common/src/grouping-formatters/__tests__/avgTotalsPercentageFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, type Mock, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { avgTotalsPercentageFormatter } from '../avgTotalsPercentageFormatter'; -import { type SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { avgTotalsPercentageFormatter } from '../avgTotalsPercentageFormatter.js'; +import { type SlickGrid } from '../../core/index.js'; describe('avgTotalsPercentageFormatter', () => { // stub some methods of the SlickGrid Grid instance diff --git a/packages/common/src/grouping-formatters/__tests__/maxTotalsFormatter.spec.ts b/packages/common/src/grouping-formatters/__tests__/maxTotalsFormatter.spec.ts index 5f38e3156..8bc96de6a 100644 --- a/packages/common/src/grouping-formatters/__tests__/maxTotalsFormatter.spec.ts +++ b/packages/common/src/grouping-formatters/__tests__/maxTotalsFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, type Mock, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { maxTotalsFormatter } from '../maxTotalsFormatter'; -import { type SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { maxTotalsFormatter } from '../maxTotalsFormatter.js'; +import { type SlickGrid } from '../../core/index.js'; describe('maxTotalsFormatter', () => { // stub some methods of the SlickGrid Grid instance diff --git a/packages/common/src/grouping-formatters/__tests__/minTotalsFormatter.spec.ts b/packages/common/src/grouping-formatters/__tests__/minTotalsFormatter.spec.ts index 68a1b501d..4a9e697b4 100644 --- a/packages/common/src/grouping-formatters/__tests__/minTotalsFormatter.spec.ts +++ b/packages/common/src/grouping-formatters/__tests__/minTotalsFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, type Mock, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { minTotalsFormatter } from '../minTotalsFormatter'; -import { type SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { minTotalsFormatter } from '../minTotalsFormatter.js'; +import { type SlickGrid } from '../../core/index.js'; describe('minTotalsFormatter', () => { // stub some methods of the SlickGrid Grid instance diff --git a/packages/common/src/grouping-formatters/__tests__/sumTotalsBoldFormatter.spec.ts b/packages/common/src/grouping-formatters/__tests__/sumTotalsBoldFormatter.spec.ts index 55c7067d1..7412fe644 100644 --- a/packages/common/src/grouping-formatters/__tests__/sumTotalsBoldFormatter.spec.ts +++ b/packages/common/src/grouping-formatters/__tests__/sumTotalsBoldFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, type Mock, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { sumTotalsBoldFormatter } from '../sumTotalsBoldFormatter'; -import { type SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { sumTotalsBoldFormatter } from '../sumTotalsBoldFormatter.js'; +import { type SlickGrid } from '../../core/index.js'; describe('sumTotalsBoldFormatter', () => { // stub some methods of the SlickGrid Grid instance diff --git a/packages/common/src/grouping-formatters/__tests__/sumTotalsColoredFormatter.spec.ts b/packages/common/src/grouping-formatters/__tests__/sumTotalsColoredFormatter.spec.ts index ccf8ef2fe..3fea50bb6 100644 --- a/packages/common/src/grouping-formatters/__tests__/sumTotalsColoredFormatter.spec.ts +++ b/packages/common/src/grouping-formatters/__tests__/sumTotalsColoredFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, type Mock, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { sumTotalsColoredFormatter } from '../sumTotalsColoredFormatter'; -import { type SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { sumTotalsColoredFormatter } from '../sumTotalsColoredFormatter.js'; +import { type SlickGrid } from '../../core/index.js'; describe('sumTotalsColoredFormatter', () => { // stub some methods of the SlickGrid Grid instance diff --git a/packages/common/src/grouping-formatters/__tests__/sumTotalsCurrencyColoredFormatter.spec.ts b/packages/common/src/grouping-formatters/__tests__/sumTotalsCurrencyColoredFormatter.spec.ts index 77742293c..4d73c6f5d 100644 --- a/packages/common/src/grouping-formatters/__tests__/sumTotalsCurrencyColoredFormatter.spec.ts +++ b/packages/common/src/grouping-formatters/__tests__/sumTotalsCurrencyColoredFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, type Mock, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { sumTotalsCurrencyColoredFormatter } from '../sumTotalsCurrencyColoredFormatter'; -import { type SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { sumTotalsCurrencyColoredFormatter } from '../sumTotalsCurrencyColoredFormatter.js'; +import { type SlickGrid } from '../../core/index.js'; describe('sumTotalsCurrencyColoredFormatter', () => { // stub some methods of the SlickGrid Grid instance diff --git a/packages/common/src/grouping-formatters/__tests__/sumTotalsCurrencyFormatter.spec.ts b/packages/common/src/grouping-formatters/__tests__/sumTotalsCurrencyFormatter.spec.ts index b7764a180..216e66ccb 100644 --- a/packages/common/src/grouping-formatters/__tests__/sumTotalsCurrencyFormatter.spec.ts +++ b/packages/common/src/grouping-formatters/__tests__/sumTotalsCurrencyFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, type Mock, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { sumTotalsCurrencyFormatter } from '../sumTotalsCurrencyFormatter'; -import { type SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { sumTotalsCurrencyFormatter } from '../sumTotalsCurrencyFormatter.js'; +import { type SlickGrid } from '../../core/index.js'; describe('sumTotalsCurrencyFormatter', () => { // stub some methods of the SlickGrid Grid instance diff --git a/packages/common/src/grouping-formatters/__tests__/sumTotalsDollarBoldFormatter.spec.ts b/packages/common/src/grouping-formatters/__tests__/sumTotalsDollarBoldFormatter.spec.ts index 6a2b7be2a..37c2067cf 100644 --- a/packages/common/src/grouping-formatters/__tests__/sumTotalsDollarBoldFormatter.spec.ts +++ b/packages/common/src/grouping-formatters/__tests__/sumTotalsDollarBoldFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, type Mock, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { sumTotalsDollarBoldFormatter } from '../sumTotalsDollarBoldFormatter'; -import { type SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { sumTotalsDollarBoldFormatter } from '../sumTotalsDollarBoldFormatter.js'; +import { type SlickGrid } from '../../core/index.js'; describe('sumTotalsDollarBoldFormatter', () => { // stub some methods of the SlickGrid Grid instance diff --git a/packages/common/src/grouping-formatters/__tests__/sumTotalsDollarColoredBoldFormatter.spec.ts b/packages/common/src/grouping-formatters/__tests__/sumTotalsDollarColoredBoldFormatter.spec.ts index a9ec2a8c6..c58fcce3f 100644 --- a/packages/common/src/grouping-formatters/__tests__/sumTotalsDollarColoredBoldFormatter.spec.ts +++ b/packages/common/src/grouping-formatters/__tests__/sumTotalsDollarColoredBoldFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, type Mock, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { sumTotalsDollarColoredBoldFormatter } from '../sumTotalsDollarColoredBoldFormatter'; -import { type SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { sumTotalsDollarColoredBoldFormatter } from '../sumTotalsDollarColoredBoldFormatter.js'; +import { type SlickGrid } from '../../core/index.js'; describe('sumTotalsDollarColoredBoldFormatter', () => { // stub some methods of the SlickGrid Grid instance diff --git a/packages/common/src/grouping-formatters/__tests__/sumTotalsDollarColoredFormatter.spec.ts b/packages/common/src/grouping-formatters/__tests__/sumTotalsDollarColoredFormatter.spec.ts index be9a81cab..18152b623 100644 --- a/packages/common/src/grouping-formatters/__tests__/sumTotalsDollarColoredFormatter.spec.ts +++ b/packages/common/src/grouping-formatters/__tests__/sumTotalsDollarColoredFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, type Mock, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { sumTotalsDollarColoredFormatter } from '../sumTotalsDollarColoredFormatter'; -import { type SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { sumTotalsDollarColoredFormatter } from '../sumTotalsDollarColoredFormatter.js'; +import { type SlickGrid } from '../../core/index.js'; describe('sumTotalsDollarColoredFormatter', () => { // stub some methods of the SlickGrid Grid instance diff --git a/packages/common/src/grouping-formatters/__tests__/sumTotalsDollarFormatter.spec.ts b/packages/common/src/grouping-formatters/__tests__/sumTotalsDollarFormatter.spec.ts index b88dcad8b..c5ada83ab 100644 --- a/packages/common/src/grouping-formatters/__tests__/sumTotalsDollarFormatter.spec.ts +++ b/packages/common/src/grouping-formatters/__tests__/sumTotalsDollarFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, type Mock, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { sumTotalsDollarFormatter } from '../sumTotalsDollarFormatter'; -import { type SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { sumTotalsDollarFormatter } from '../sumTotalsDollarFormatter.js'; +import { type SlickGrid } from '../../core/index.js'; describe('sumTotalsDollarFormatter', () => { // stub some methods of the SlickGrid Grid instance diff --git a/packages/common/src/grouping-formatters/__tests__/sumTotalsFormatter.spec.ts b/packages/common/src/grouping-formatters/__tests__/sumTotalsFormatter.spec.ts index d90ef21cd..97abc53ae 100644 --- a/packages/common/src/grouping-formatters/__tests__/sumTotalsFormatter.spec.ts +++ b/packages/common/src/grouping-formatters/__tests__/sumTotalsFormatter.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it, type Mock, vi } from 'vitest'; -import type { Column, GridOption } from '../../interfaces/index'; -import { sumTotalsFormatter } from '../sumTotalsFormatter'; -import { type SlickGrid } from '../../core/index'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { sumTotalsFormatter } from '../sumTotalsFormatter.js'; +import { type SlickGrid } from '../../core/index.js'; describe('sumTotalsFormatter', () => { // stub some methods of the SlickGrid Grid instance diff --git a/packages/common/src/grouping-formatters/avgTotalsCurrencyFormatter.ts b/packages/common/src/grouping-formatters/avgTotalsCurrencyFormatter.ts index e231916e2..36948c80a 100644 --- a/packages/common/src/grouping-formatters/avgTotalsCurrencyFormatter.ts +++ b/packages/common/src/grouping-formatters/avgTotalsCurrencyFormatter.ts @@ -1,9 +1,9 @@ import { isNumber } from '@slickgrid-universal/utils'; -import type { Column, GroupTotalsFormatter } from '../interfaces/index'; -import { retrieveFormatterOptions } from '../formatters/formatterUtilities'; -import { formatNumber } from '../services/utilities'; -import { type SlickGrid } from '../core/index'; +import type { Column, GroupTotalsFormatter } from '../interfaces/index.js'; +import { retrieveFormatterOptions } from '../formatters/formatterUtilities.js'; +import { formatNumber } from '../services/utilities.js'; +import { type SlickGrid } from '../core/index.js'; export const avgTotalsCurrencyFormatter: GroupTotalsFormatter = (totals: any, columnDef: Column, grid: SlickGrid) => { const field = columnDef.field ?? ''; diff --git a/packages/common/src/grouping-formatters/avgTotalsDollarFormatter.ts b/packages/common/src/grouping-formatters/avgTotalsDollarFormatter.ts index a14c7b892..8032a6174 100644 --- a/packages/common/src/grouping-formatters/avgTotalsDollarFormatter.ts +++ b/packages/common/src/grouping-formatters/avgTotalsDollarFormatter.ts @@ -1,9 +1,9 @@ import { isNumber } from '@slickgrid-universal/utils'; -import type { Column, GroupTotalsFormatter } from './../interfaces/index'; -import { retrieveFormatterOptions } from '../formatters/formatterUtilities'; -import { formatNumber } from './../services/utilities'; -import { type SlickGrid } from '../core/index'; +import type { Column, GroupTotalsFormatter } from './../interfaces/index.js'; +import { retrieveFormatterOptions } from '../formatters/formatterUtilities.js'; +import { formatNumber } from './../services/utilities.js'; +import { type SlickGrid } from '../core/index.js'; export const avgTotalsDollarFormatter: GroupTotalsFormatter = (totals: any, columnDef: Column, grid: SlickGrid) => { const field = columnDef.field ?? ''; diff --git a/packages/common/src/grouping-formatters/avgTotalsFormatter.ts b/packages/common/src/grouping-formatters/avgTotalsFormatter.ts index 8f69c4271..8df11e605 100644 --- a/packages/common/src/grouping-formatters/avgTotalsFormatter.ts +++ b/packages/common/src/grouping-formatters/avgTotalsFormatter.ts @@ -1,9 +1,9 @@ import { isNumber } from '@slickgrid-universal/utils'; -import type { Column, GroupTotalsFormatter } from './../interfaces/index'; -import { decimalFormatted, thousandSeparatorFormatted } from '../services/utilities'; -import { retrieveFormatterOptions } from '../formatters/formatterUtilities'; -import { type SlickGrid } from '../core/index'; +import type { Column, GroupTotalsFormatter } from './../interfaces/index.js'; +import { decimalFormatted, thousandSeparatorFormatted } from '../services/utilities.js'; +import { retrieveFormatterOptions } from '../formatters/formatterUtilities.js'; +import { type SlickGrid } from '../core/index.js'; export const avgTotalsFormatter: GroupTotalsFormatter = (totals: any, columnDef: Column, grid: SlickGrid) => { const field = columnDef.field ?? ''; diff --git a/packages/common/src/grouping-formatters/avgTotalsPercentageFormatter.ts b/packages/common/src/grouping-formatters/avgTotalsPercentageFormatter.ts index a3ac9a8d5..488a92a6a 100644 --- a/packages/common/src/grouping-formatters/avgTotalsPercentageFormatter.ts +++ b/packages/common/src/grouping-formatters/avgTotalsPercentageFormatter.ts @@ -1,9 +1,9 @@ import { isNumber } from '@slickgrid-universal/utils'; -import type { Column, GroupTotalsFormatter } from './../interfaces/index'; -import { decimalFormatted, thousandSeparatorFormatted } from '../services/utilities'; -import { retrieveFormatterOptions } from '../formatters/formatterUtilities'; -import { type SlickGrid } from '../core/index'; +import type { Column, GroupTotalsFormatter } from './../interfaces/index.js'; +import { decimalFormatted, thousandSeparatorFormatted } from '../services/utilities.js'; +import { retrieveFormatterOptions } from '../formatters/formatterUtilities.js'; +import { type SlickGrid } from '../core/index.js'; export const avgTotalsPercentageFormatter: GroupTotalsFormatter = (totals: any, columnDef: Column, grid: SlickGrid) => { const field = columnDef.field ?? ''; diff --git a/packages/common/src/grouping-formatters/groupingFormatters.index.ts b/packages/common/src/grouping-formatters/groupingFormatters.index.ts index a6a9f2db7..79009ad1c 100644 --- a/packages/common/src/grouping-formatters/groupingFormatters.index.ts +++ b/packages/common/src/grouping-formatters/groupingFormatters.index.ts @@ -1,19 +1,19 @@ -import { avgTotalsPercentageFormatter } from './avgTotalsPercentageFormatter'; -import { avgTotalsDollarFormatter } from './avgTotalsDollarFormatter'; -import { avgTotalsCurrencyFormatter } from './avgTotalsCurrencyFormatter'; -import { avgTotalsFormatter } from './avgTotalsFormatter'; -import { minTotalsFormatter } from './minTotalsFormatter'; -import { maxTotalsFormatter } from './maxTotalsFormatter'; -import { sumTotalsColoredFormatter } from './sumTotalsColoredFormatter'; -import { sumTotalsCurrencyFormatter } from './sumTotalsCurrencyFormatter'; -import { sumTotalsCurrencyColoredFormatter } from './sumTotalsCurrencyColoredFormatter'; -import { sumTotalsDollarColoredBoldFormatter } from './sumTotalsDollarColoredBoldFormatter'; -import { sumTotalsDollarColoredFormatter } from './sumTotalsDollarColoredFormatter'; -import { sumTotalsDollarBoldFormatter } from './sumTotalsDollarBoldFormatter'; -import { sumTotalsDollarFormatter } from './sumTotalsDollarFormatter'; -import { sumTotalsFormatter } from './sumTotalsFormatter'; -import { sumTotalsBoldFormatter } from './sumTotalsBoldFormatter'; -import type { GroupTotalsFormatter } from '../interfaces/groupTotalsFormatter.interface'; +import { avgTotalsPercentageFormatter } from './avgTotalsPercentageFormatter.js'; +import { avgTotalsDollarFormatter } from './avgTotalsDollarFormatter.js'; +import { avgTotalsCurrencyFormatter } from './avgTotalsCurrencyFormatter.js'; +import { avgTotalsFormatter } from './avgTotalsFormatter.js'; +import { minTotalsFormatter } from './minTotalsFormatter.js'; +import { maxTotalsFormatter } from './maxTotalsFormatter.js'; +import { sumTotalsColoredFormatter } from './sumTotalsColoredFormatter.js'; +import { sumTotalsCurrencyFormatter } from './sumTotalsCurrencyFormatter.js'; +import { sumTotalsCurrencyColoredFormatter } from './sumTotalsCurrencyColoredFormatter.js'; +import { sumTotalsDollarColoredBoldFormatter } from './sumTotalsDollarColoredBoldFormatter.js'; +import { sumTotalsDollarColoredFormatter } from './sumTotalsDollarColoredFormatter.js'; +import { sumTotalsDollarBoldFormatter } from './sumTotalsDollarBoldFormatter.js'; +import { sumTotalsDollarFormatter } from './sumTotalsDollarFormatter.js'; +import { sumTotalsFormatter } from './sumTotalsFormatter.js'; +import { sumTotalsBoldFormatter } from './sumTotalsBoldFormatter.js'; +import type { GroupTotalsFormatter } from '../interfaces/groupTotalsFormatter.interface.js'; /** Provides a list of different Formatters that will change the cell value displayed in the UI */ export const GroupTotalFormatters: Record = { diff --git a/packages/common/src/grouping-formatters/index.ts b/packages/common/src/grouping-formatters/index.ts index 4b3543ebc..9bae0e9bb 100644 --- a/packages/common/src/grouping-formatters/index.ts +++ b/packages/common/src/grouping-formatters/index.ts @@ -1,13 +1,13 @@ -export * from './sumTotalsFormatter'; -export * from './sumTotalsDollarFormatter'; -export * from './sumTotalsDollarColoredFormatter'; -export * from './sumTotalsDollarColoredBoldFormatter'; -export * from './sumTotalsDollarBoldFormatter'; -export * from './sumTotalsColoredFormatter'; -export * from './sumTotalsBoldFormatter'; -export * from './minTotalsFormatter'; -export * from './maxTotalsFormatter'; -export * from './groupingFormatters.index'; -export * from './avgTotalsPercentageFormatter'; -export * from './avgTotalsFormatter'; -export * from './avgTotalsDollarFormatter'; +export * from './sumTotalsFormatter.js'; +export * from './sumTotalsDollarFormatter.js'; +export * from './sumTotalsDollarColoredFormatter.js'; +export * from './sumTotalsDollarColoredBoldFormatter.js'; +export * from './sumTotalsDollarBoldFormatter.js'; +export * from './sumTotalsColoredFormatter.js'; +export * from './sumTotalsBoldFormatter.js'; +export * from './minTotalsFormatter.js'; +export * from './maxTotalsFormatter.js'; +export * from './groupingFormatters.index.js'; +export * from './avgTotalsPercentageFormatter.js'; +export * from './avgTotalsFormatter.js'; +export * from './avgTotalsDollarFormatter.js'; diff --git a/packages/common/src/grouping-formatters/maxTotalsFormatter.ts b/packages/common/src/grouping-formatters/maxTotalsFormatter.ts index 0108c857c..9c322a2d7 100644 --- a/packages/common/src/grouping-formatters/maxTotalsFormatter.ts +++ b/packages/common/src/grouping-formatters/maxTotalsFormatter.ts @@ -1,9 +1,9 @@ import { isNumber } from '@slickgrid-universal/utils'; -import type { Column, GroupTotalsFormatter } from './../interfaces/index'; -import { formatNumber } from '../services/utilities'; -import { retrieveFormatterOptions } from '../formatters/formatterUtilities'; -import { type SlickGrid } from '../core/index'; +import type { Column, GroupTotalsFormatter } from './../interfaces/index.js'; +import { formatNumber } from '../services/utilities.js'; +import { retrieveFormatterOptions } from '../formatters/formatterUtilities.js'; +import { type SlickGrid } from '../core/index.js'; export const maxTotalsFormatter: GroupTotalsFormatter = (totals: any, columnDef: Column, grid: SlickGrid) => { const field = columnDef.field ?? ''; diff --git a/packages/common/src/grouping-formatters/minTotalsFormatter.ts b/packages/common/src/grouping-formatters/minTotalsFormatter.ts index 25209c5bb..e425fd453 100644 --- a/packages/common/src/grouping-formatters/minTotalsFormatter.ts +++ b/packages/common/src/grouping-formatters/minTotalsFormatter.ts @@ -1,9 +1,9 @@ import { isNumber } from '@slickgrid-universal/utils'; -import type { Column, GroupTotalsFormatter } from './../interfaces/index'; -import { formatNumber } from '../services/utilities'; -import { retrieveFormatterOptions } from '../formatters/formatterUtilities'; -import { type SlickGrid } from '../core/index'; +import type { Column, GroupTotalsFormatter } from './../interfaces/index.js'; +import { formatNumber } from '../services/utilities.js'; +import { retrieveFormatterOptions } from '../formatters/formatterUtilities.js'; +import { type SlickGrid } from '../core/index.js'; export const minTotalsFormatter: GroupTotalsFormatter = (totals: any, columnDef: Column, grid: SlickGrid) => { const field = columnDef.field ?? ''; diff --git a/packages/common/src/grouping-formatters/sumTotalsBoldFormatter.ts b/packages/common/src/grouping-formatters/sumTotalsBoldFormatter.ts index 79cff7457..ba0fdd445 100644 --- a/packages/common/src/grouping-formatters/sumTotalsBoldFormatter.ts +++ b/packages/common/src/grouping-formatters/sumTotalsBoldFormatter.ts @@ -1,9 +1,9 @@ import { createDomElement, isNumber } from '@slickgrid-universal/utils'; -import type { Column, GroupTotalsFormatter } from './../interfaces/index'; -import { formatNumber } from '../services/utilities'; -import { retrieveFormatterOptions } from '../formatters/formatterUtilities'; -import { type SlickGrid } from '../core/index'; +import type { Column, GroupTotalsFormatter } from './../interfaces/index.js'; +import { formatNumber } from '../services/utilities.js'; +import { retrieveFormatterOptions } from '../formatters/formatterUtilities.js'; +import { type SlickGrid } from '../core/index.js'; export const sumTotalsBoldFormatter: GroupTotalsFormatter = (totals: any, columnDef: Column, grid: SlickGrid) => { const field = columnDef.field ?? ''; diff --git a/packages/common/src/grouping-formatters/sumTotalsColoredFormatter.ts b/packages/common/src/grouping-formatters/sumTotalsColoredFormatter.ts index b0a8e41cf..2b2fe407a 100644 --- a/packages/common/src/grouping-formatters/sumTotalsColoredFormatter.ts +++ b/packages/common/src/grouping-formatters/sumTotalsColoredFormatter.ts @@ -1,9 +1,9 @@ import { createDomElement, isNumber } from '@slickgrid-universal/utils'; -import type { Column, GroupTotalsFormatter } from './../interfaces/index'; -import { retrieveFormatterOptions } from '../formatters/formatterUtilities'; -import { type SlickGrid } from '../core/index'; -import { formatNumber } from '../services/index'; +import type { Column, GroupTotalsFormatter } from './../interfaces/index.js'; +import { retrieveFormatterOptions } from '../formatters/formatterUtilities.js'; +import { type SlickGrid } from '../core/index.js'; +import { formatNumber } from '../services/index.js'; export const sumTotalsColoredFormatter: GroupTotalsFormatter = (totals: any, columnDef: Column, grid: SlickGrid) => { const field = columnDef.field ?? ''; diff --git a/packages/common/src/grouping-formatters/sumTotalsCurrencyColoredFormatter.ts b/packages/common/src/grouping-formatters/sumTotalsCurrencyColoredFormatter.ts index dc0684caf..3db663e6f 100644 --- a/packages/common/src/grouping-formatters/sumTotalsCurrencyColoredFormatter.ts +++ b/packages/common/src/grouping-formatters/sumTotalsCurrencyColoredFormatter.ts @@ -1,9 +1,9 @@ import { createDomElement, isNumber } from '@slickgrid-universal/utils'; -import type { Column, GroupTotalsFormatter } from '../interfaces/index'; -import { retrieveFormatterOptions } from '../formatters/formatterUtilities'; -import { type SlickGrid } from '../core/index'; -import { formatNumber } from '../services/index'; +import type { Column, GroupTotalsFormatter } from '../interfaces/index.js'; +import { retrieveFormatterOptions } from '../formatters/formatterUtilities.js'; +import { type SlickGrid } from '../core/index.js'; +import { formatNumber } from '../services/index.js'; export const sumTotalsCurrencyColoredFormatter: GroupTotalsFormatter = (totals: any, columnDef: Column, grid: SlickGrid) => { const field = columnDef.field ?? ''; diff --git a/packages/common/src/grouping-formatters/sumTotalsCurrencyFormatter.ts b/packages/common/src/grouping-formatters/sumTotalsCurrencyFormatter.ts index ccfeed58f..9504ca470 100644 --- a/packages/common/src/grouping-formatters/sumTotalsCurrencyFormatter.ts +++ b/packages/common/src/grouping-formatters/sumTotalsCurrencyFormatter.ts @@ -1,9 +1,9 @@ import { isNumber } from '@slickgrid-universal/utils'; -import type { Column, GroupTotalsFormatter } from '../interfaces/index'; -import { formatNumber } from '../services/utilities'; -import { retrieveFormatterOptions } from '../formatters/formatterUtilities'; -import { type SlickGrid } from '../core/index'; +import type { Column, GroupTotalsFormatter } from '../interfaces/index.js'; +import { formatNumber } from '../services/utilities.js'; +import { retrieveFormatterOptions } from '../formatters/formatterUtilities.js'; +import { type SlickGrid } from '../core/index.js'; export const sumTotalsCurrencyFormatter: GroupTotalsFormatter = (totals: any, columnDef: Column, grid: SlickGrid) => { const field = columnDef.field ?? ''; diff --git a/packages/common/src/grouping-formatters/sumTotalsDollarBoldFormatter.ts b/packages/common/src/grouping-formatters/sumTotalsDollarBoldFormatter.ts index 57e5481db..a4866abe6 100644 --- a/packages/common/src/grouping-formatters/sumTotalsDollarBoldFormatter.ts +++ b/packages/common/src/grouping-formatters/sumTotalsDollarBoldFormatter.ts @@ -1,9 +1,9 @@ import { createDomElement, isNumber } from '@slickgrid-universal/utils'; -import type { Column, GroupTotalsFormatter } from './../interfaces/index'; -import { formatNumber } from './../services/utilities'; -import { retrieveFormatterOptions } from '../formatters/formatterUtilities'; -import { type SlickGrid } from '../core/index'; +import type { Column, GroupTotalsFormatter } from './../interfaces/index.js'; +import { formatNumber } from './../services/utilities.js'; +import { retrieveFormatterOptions } from '../formatters/formatterUtilities.js'; +import { type SlickGrid } from '../core/index.js'; export const sumTotalsDollarBoldFormatter: GroupTotalsFormatter = (totals: any, columnDef: Column, grid: SlickGrid) => { const field = columnDef.field ?? ''; diff --git a/packages/common/src/grouping-formatters/sumTotalsDollarColoredBoldFormatter.ts b/packages/common/src/grouping-formatters/sumTotalsDollarColoredBoldFormatter.ts index 1295cbf55..87d6109c7 100644 --- a/packages/common/src/grouping-formatters/sumTotalsDollarColoredBoldFormatter.ts +++ b/packages/common/src/grouping-formatters/sumTotalsDollarColoredBoldFormatter.ts @@ -1,9 +1,9 @@ import { createDomElement, isNumber } from '@slickgrid-universal/utils'; -import type { Column, GroupTotalsFormatter } from './../interfaces/index'; -import { retrieveFormatterOptions } from '../formatters/formatterUtilities'; -import { type SlickGrid } from '../core/index'; -import { formatNumber } from '../services/index'; +import type { Column, GroupTotalsFormatter } from './../interfaces/index.js'; +import { retrieveFormatterOptions } from '../formatters/formatterUtilities.js'; +import { type SlickGrid } from '../core/index.js'; +import { formatNumber } from '../services/index.js'; export const sumTotalsDollarColoredBoldFormatter: GroupTotalsFormatter = (totals: any, columnDef: Column, grid: SlickGrid) => { const field = columnDef.field ?? ''; diff --git a/packages/common/src/grouping-formatters/sumTotalsDollarColoredFormatter.ts b/packages/common/src/grouping-formatters/sumTotalsDollarColoredFormatter.ts index d42c88a23..a783d87e7 100644 --- a/packages/common/src/grouping-formatters/sumTotalsDollarColoredFormatter.ts +++ b/packages/common/src/grouping-formatters/sumTotalsDollarColoredFormatter.ts @@ -1,9 +1,9 @@ import { createDomElement, isNumber } from '@slickgrid-universal/utils'; -import type { Column, GroupTotalsFormatter } from './../interfaces/index'; -import { retrieveFormatterOptions } from '../formatters/formatterUtilities'; -import { type SlickGrid } from '../core/index'; -import { formatNumber } from '../services/index'; +import type { Column, GroupTotalsFormatter } from './../interfaces/index.js'; +import { retrieveFormatterOptions } from '../formatters/formatterUtilities.js'; +import { type SlickGrid } from '../core/index.js'; +import { formatNumber } from '../services/index.js'; export const sumTotalsDollarColoredFormatter: GroupTotalsFormatter = (totals: any, columnDef: Column, grid: SlickGrid) => { const field = columnDef.field ?? ''; diff --git a/packages/common/src/grouping-formatters/sumTotalsDollarFormatter.ts b/packages/common/src/grouping-formatters/sumTotalsDollarFormatter.ts index d2f2c7e54..d06b2a162 100644 --- a/packages/common/src/grouping-formatters/sumTotalsDollarFormatter.ts +++ b/packages/common/src/grouping-formatters/sumTotalsDollarFormatter.ts @@ -1,9 +1,9 @@ import { isNumber } from '@slickgrid-universal/utils'; -import type { Column, GroupTotalsFormatter } from './../interfaces/index'; -import { formatNumber } from './../services/utilities'; -import { retrieveFormatterOptions } from '../formatters/formatterUtilities'; -import { type SlickGrid } from '../core/index'; +import type { Column, GroupTotalsFormatter } from './../interfaces/index.js'; +import { formatNumber } from './../services/utilities.js'; +import { retrieveFormatterOptions } from '../formatters/formatterUtilities.js'; +import { type SlickGrid } from '../core/index.js'; export const sumTotalsDollarFormatter: GroupTotalsFormatter = (totals: any, columnDef: Column, grid: SlickGrid) => { const field = columnDef.field ?? ''; diff --git a/packages/common/src/grouping-formatters/sumTotalsFormatter.ts b/packages/common/src/grouping-formatters/sumTotalsFormatter.ts index 634ccebc5..4f9a3b7fd 100644 --- a/packages/common/src/grouping-formatters/sumTotalsFormatter.ts +++ b/packages/common/src/grouping-formatters/sumTotalsFormatter.ts @@ -1,9 +1,9 @@ import { isNumber } from '@slickgrid-universal/utils'; -import type { Column, GroupTotalsFormatter } from './../interfaces/index'; -import { formatNumber } from '../services/utilities'; -import { retrieveFormatterOptions } from '../formatters/formatterUtilities'; -import { type SlickGrid } from '../core/index'; +import type { Column, GroupTotalsFormatter } from './../interfaces/index.js'; +import { formatNumber } from '../services/utilities.js'; +import { retrieveFormatterOptions } from '../formatters/formatterUtilities.js'; +import { type SlickGrid } from '../core/index.js'; export const sumTotalsFormatter: GroupTotalsFormatter = (totals: any, columnDef: Column, grid: SlickGrid) => { const field = columnDef.field ?? ''; diff --git a/packages/common/src/index.ts b/packages/common/src/index.ts index e253f3c7c..6e7099b1f 100644 --- a/packages/common/src/index.ts +++ b/packages/common/src/index.ts @@ -1,7 +1,7 @@ -import * as BackendUtilities from './services/backendUtility.service'; -import * as Observers from './services/observers'; -import * as ServiceUtilities from './services/utilities'; -import * as SortUtilities from './sortComparers/sortUtilities'; +import * as BackendUtilities from './services/backendUtility.service.js'; +import * as Observers from './services/observers.js'; +import * as ServiceUtilities from './services/utilities.js'; +import * as SortUtilities from './sortComparers/sortUtilities.js'; import * as Utils from '@slickgrid-universal/utils'; export * from '@slickgrid-universal/utils'; @@ -15,34 +15,34 @@ export { } from '@slickgrid-universal/event-pub-sub'; // Public classes. -export * from './constants'; -export * from './global-grid-options'; +export * from './constants.js'; +export * from './global-grid-options.js'; -export * from './core/index'; -export * from './enums/index'; -export type * from './interfaces/index'; -export * from './aggregators/index'; -export * from './aggregators/aggregators.index'; -export * from './editors/index'; -export * from './editors/editors.index'; -export * from './extensions/index'; -export * from './filter-conditions/index'; -export * from './filter-conditions/filterConditions.index'; -export * from './filters/index'; -export * from './filters/filters.index'; -export * from './filters/filterFactory'; -export * from './formatters/index'; -export * from './formatters/formatters.index'; -export * from './grouping-formatters/index'; -export * from './grouping-formatters/groupingFormatters.index'; -export * from './sortComparers/index'; -export * from './sortComparers/sortComparers.index'; -export * from './services/index'; -export { Enums } from './enums/enums.index'; +export * from './core/index.js'; +export * from './enums/index.js'; +export type * from './interfaces/index.js'; +export * from './aggregators/index.js'; +export * from './aggregators/aggregators.index.js'; +export * from './editors/index.js'; +export * from './editors/editors.index.js'; +export * from './extensions/index.js'; +export * from './filter-conditions/index.js'; +export * from './filter-conditions/filterConditions.index.js'; +export * from './filters/index.js'; +export * from './filters/filters.index.js'; +export * from './filters/filterFactory.js'; +export * from './formatters/index.js'; +export * from './formatters/formatters.index.js'; +export * from './grouping-formatters/index.js'; +export * from './grouping-formatters/groupingFormatters.index.js'; +export * from './sortComparers/index.js'; +export * from './sortComparers/sortComparers.index.js'; +export * from './services/index.js'; +export { Enums } from './enums/enums.index.js'; const Utilities: any = { ...BackendUtilities, ...Observers, ...ServiceUtilities, ...SortUtilities, ...Utils, deepAssign: Utils.deepMerge }; export { Utilities }; -export { SlickgridConfig } from './slickgrid-config'; +export { SlickgridConfig } from './slickgrid-config.js'; // re-export MultipleSelectOption type for convenience // and also to avoid asking the user to install it on their side without hoisting deps diff --git a/packages/common/src/interfaces/__tests__/column.interface.spec.ts b/packages/common/src/interfaces/__tests__/column.interface.spec.ts index 3e5cbb412..48ae4559f 100644 --- a/packages/common/src/interfaces/__tests__/column.interface.spec.ts +++ b/packages/common/src/interfaces/__tests__/column.interface.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; -import type { Join, PathsToStringProps } from '../column.interface'; +import type { Join, PathsToStringProps } from '../column.interface.js'; type Expect = T; type Equal = (() => T extends X ? 1 : 2) extends < diff --git a/packages/common/src/interfaces/autoResizeOption.interface.ts b/packages/common/src/interfaces/autoResizeOption.interface.ts index 3c4e9b417..1b206bc08 100644 --- a/packages/common/src/interfaces/autoResizeOption.interface.ts +++ b/packages/common/src/interfaces/autoResizeOption.interface.ts @@ -1,4 +1,4 @@ -import type { ResizerOption } from './resizerOption.interface'; +import type { ResizerOption } from './resizerOption.interface.js'; export interface AutoResizeOption extends ResizerOption { /** defaults to 10ms, delay before triggering the auto-resize (only on 1st page load) */ diff --git a/packages/common/src/interfaces/autocompleterOption.interface.ts b/packages/common/src/interfaces/autocompleterOption.interface.ts index 78c9447f0..8676d1c7d 100644 --- a/packages/common/src/interfaces/autocompleterOption.interface.ts +++ b/packages/common/src/interfaces/autocompleterOption.interface.ts @@ -1,5 +1,5 @@ import type { AutocompleteItem, AutocompleteSettings } from 'autocompleter'; -import type { Column } from './column.interface'; +import type { Column } from './column.interface.js'; export interface AutoCompleterRenderItemDefinition { /** which custom Layout to use? We created 2 custom styled layouts "twoRows" and "fourCorners", both layouts also support an optional icon on the left. */ diff --git a/packages/common/src/interfaces/backendService.interface.ts b/packages/common/src/interfaces/backendService.interface.ts index ce5a3aa36..317487ac4 100644 --- a/packages/common/src/interfaces/backendService.interface.ts +++ b/packages/common/src/interfaces/backendService.interface.ts @@ -10,9 +10,9 @@ import type { PaginationChangedArgs, PaginationCursorChangedArgs, SingleColumnSort, -} from './index'; -import type { SharedService } from '../services'; -import type { SlickGrid } from '../core/index'; +} from './index.js'; +import type { SharedService } from '../services/shared.service.js'; +import type { SlickGrid } from '../core/index.js'; export interface BackendService { /** Backend Service options */ diff --git a/packages/common/src/interfaces/backendServiceApi.interface.ts b/packages/common/src/interfaces/backendServiceApi.interface.ts index 249dc669c..86d821f0a 100644 --- a/packages/common/src/interfaces/backendServiceApi.interface.ts +++ b/packages/common/src/interfaces/backendServiceApi.interface.ts @@ -1,5 +1,5 @@ -import type { Observable } from '../services/rxjsFacade'; -import type { BackendService } from './backendService.interface'; +import type { Observable } from '../services/rxjsFacade.js'; +import type { BackendService } from './backendService.interface.js'; export interface BackendServiceApi { /** Default to 500ms, how long to wait until we start querying backend to avoid sending too many requests to backend server. */ diff --git a/packages/common/src/interfaces/backendServiceOption.interface.ts b/packages/common/src/interfaces/backendServiceOption.interface.ts index bd3bc926e..87444e642 100644 --- a/packages/common/src/interfaces/backendServiceOption.interface.ts +++ b/packages/common/src/interfaces/backendServiceOption.interface.ts @@ -1,6 +1,6 @@ -import type { SlickGrid } from '../core'; -import type { OperatorType } from '../enums'; -import type { Column } from './column.interface'; +import type { SlickGrid } from '../core/slickGrid.js'; +import type { OperatorType } from '../enums/operatorType.enum.js'; +import type { Column } from './column.interface.js'; export interface InfiniteScrollOption { fetchSize: number; diff --git a/packages/common/src/interfaces/cellArgs.interface.ts b/packages/common/src/interfaces/cellArgs.interface.ts index 59a8c22e2..fed706ed7 100644 --- a/packages/common/src/interfaces/cellArgs.interface.ts +++ b/packages/common/src/interfaces/cellArgs.interface.ts @@ -1,4 +1,4 @@ -import type { SlickGrid } from '../core/index'; +import type { SlickGrid } from '../core/index.js'; export interface CellArgs { row: number; diff --git a/packages/common/src/interfaces/cellMenu.interface.ts b/packages/common/src/interfaces/cellMenu.interface.ts index 20e1a360d..0d6ebb507 100644 --- a/packages/common/src/interfaces/cellMenu.interface.ts +++ b/packages/common/src/interfaces/cellMenu.interface.ts @@ -3,9 +3,9 @@ import type { MenuCommandItemCallbackArgs, MenuFromCellCallbackArgs, MenuOptionItemCallbackArgs, -} from './index'; -import type { SlickCellMenu } from '../extensions/slickCellMenu'; -import type { SlickEventData } from '../core'; +} from './index.js'; +import type { SlickCellMenu } from '../extensions/slickCellMenu.js'; +import type { SlickEventData } from '../core/slickCore.js'; export interface CellMenu extends CellMenuOption { diff --git a/packages/common/src/interfaces/cellMenuOption.interface.ts b/packages/common/src/interfaces/cellMenuOption.interface.ts index 471e96076..39cfe7c1a 100644 --- a/packages/common/src/interfaces/cellMenuOption.interface.ts +++ b/packages/common/src/interfaces/cellMenuOption.interface.ts @@ -1,4 +1,4 @@ -import type { MenuCallbackArgs, MenuCommandItem, MenuOptionItem } from './index'; +import type { MenuCallbackArgs, MenuCommandItem, MenuOptionItem } from './index.js'; export interface CellMenuOption { /** Defaults to true, Auto-align dropup or dropdown menu to the left or right depending on grid viewport available space */ diff --git a/packages/common/src/interfaces/cellRange.interface.ts b/packages/common/src/interfaces/cellRange.interface.ts index 9beda2d41..8de582534 100644 --- a/packages/common/src/interfaces/cellRange.interface.ts +++ b/packages/common/src/interfaces/cellRange.interface.ts @@ -1,4 +1,4 @@ -import type { SlickCellRangeDecorator } from '../extensions/slickCellRangeDecorator'; +import type { SlickCellRangeDecorator } from '../extensions/slickCellRangeDecorator.js'; export interface CellRangeDecoratorOption { selectionCssClass: string; diff --git a/packages/common/src/interfaces/checkboxSelectorOption.interface.ts b/packages/common/src/interfaces/checkboxSelectorOption.interface.ts index ccae41f35..2b3343a71 100644 --- a/packages/common/src/interfaces/checkboxSelectorOption.interface.ts +++ b/packages/common/src/interfaces/checkboxSelectorOption.interface.ts @@ -1,6 +1,6 @@ -import type { SlickEventData } from '../core'; -import type { UsabilityOverrideFn } from '../enums/usabilityOverrideFn.type'; -import type { SlickCheckboxSelectColumn } from '../extensions/slickCheckboxSelectColumn'; +import type { SlickEventData } from '../core/slickCore.js'; +import type { UsabilityOverrideFn } from '../enums/usabilityOverrideFn.type.js'; +import type { SlickCheckboxSelectColumn } from '../extensions/slickCheckboxSelectColumn.js'; export interface CheckboxSelectorOption { /** diff --git a/packages/common/src/interfaces/collectionFilterBy.interface.ts b/packages/common/src/interfaces/collectionFilterBy.interface.ts index c0e5465ba..a199bc791 100644 --- a/packages/common/src/interfaces/collectionFilterBy.interface.ts +++ b/packages/common/src/interfaces/collectionFilterBy.interface.ts @@ -1,4 +1,4 @@ -import type { OperatorType } from '../enums/operatorType.enum'; +import type { OperatorType } from '../enums/operatorType.enum.js'; export interface CollectionFilterBy { /** Object Property name when the collection is an array of objects */ diff --git a/packages/common/src/interfaces/collectionOption.interface.ts b/packages/common/src/interfaces/collectionOption.interface.ts index 54fe4a12f..96d443f70 100644 --- a/packages/common/src/interfaces/collectionOption.interface.ts +++ b/packages/common/src/interfaces/collectionOption.interface.ts @@ -1,5 +1,5 @@ -import type { FilterMultiplePassType } from '../enums/filterMultiplePassType.enum'; -import type { FilterMultiplePassTypeString } from '../enums/filterMultiplePassTypeString.type'; +import type { FilterMultiplePassType } from '../enums/filterMultiplePassType.enum.js'; +import type { FilterMultiplePassTypeString } from '../enums/filterMultiplePassTypeString.type.js'; export interface CollectionOption { /** diff --git a/packages/common/src/interfaces/collectionOverrideArgs.interface.ts b/packages/common/src/interfaces/collectionOverrideArgs.interface.ts index 80446c31c..d453954aa 100644 --- a/packages/common/src/interfaces/collectionOverrideArgs.interface.ts +++ b/packages/common/src/interfaces/collectionOverrideArgs.interface.ts @@ -1,6 +1,6 @@ -import type { CompositeEditorOption } from './index'; -import type { Column } from './index'; -import type { SlickGrid } from '../core/index'; +import type { CompositeEditorOption } from './index.js'; +import type { Column } from './index.js'; +import type { SlickGrid } from '../core/index.js'; export interface CollectionOverrideArgs { /** Column Definition */ diff --git a/packages/common/src/interfaces/collectionSortBy.interface.ts b/packages/common/src/interfaces/collectionSortBy.interface.ts index 541da16c3..0156218ba 100644 --- a/packages/common/src/interfaces/collectionSortBy.interface.ts +++ b/packages/common/src/interfaces/collectionSortBy.interface.ts @@ -1,4 +1,4 @@ -import type { FieldType } from '../enums/index'; +import type { FieldType } from '../enums/index.js'; export interface CollectionSortBy { /** Object Property name when the collection is an array of objects */ diff --git a/packages/common/src/interfaces/column.interface.ts b/packages/common/src/interfaces/column.interface.ts index 888308b73..38de2b8c5 100644 --- a/packages/common/src/interfaces/column.interface.ts +++ b/packages/common/src/interfaces/column.interface.ts @@ -1,4 +1,4 @@ -import type { FieldType } from '../enums/fieldType.enum'; +import type { FieldType } from '../enums/fieldType.enum.js'; import type { CellMenu, ColumnEditor, @@ -15,7 +15,7 @@ import type { HeaderButtonsOrMenu, OnEventArgs, SortComparer, -} from './index'; +} from './index.js'; export type PathsToStringProps = T extends string | number | boolean | Date ? [] : { [K in Extract]: [K, ...PathsToStringProps] diff --git a/packages/common/src/interfaces/columnEditor.interface.ts b/packages/common/src/interfaces/columnEditor.interface.ts index da46c8c50..8c00d19a5 100644 --- a/packages/common/src/interfaces/columnEditor.interface.ts +++ b/packages/common/src/interfaces/columnEditor.interface.ts @@ -1,5 +1,5 @@ -import type { FieldType } from '../enums/index'; -import type { Observable } from '../services/rxjsFacade'; +import type { FieldType } from '../enums/index.js'; +import type { Observable } from '../services/rxjsFacade.js'; import type { CollectionCustomStructure, CollectionFilterBy, @@ -8,7 +8,7 @@ import type { CollectionSortBy, EditorConstructor, EditorValidator, -} from './index'; +} from './index.js'; export interface ColumnEditor { /** diff --git a/packages/common/src/interfaces/columnEditorDualInput.interface.ts b/packages/common/src/interfaces/columnEditorDualInput.interface.ts index 2d70fb154..ff421a4fc 100644 --- a/packages/common/src/interfaces/columnEditorDualInput.interface.ts +++ b/packages/common/src/interfaces/columnEditorDualInput.interface.ts @@ -1,4 +1,4 @@ -import type { ColumnEditor } from './columnEditor.interface'; +import type { ColumnEditor } from './columnEditor.interface.js'; export interface EditorDualInput extends Partial { /** Associated Item Field */ diff --git a/packages/common/src/interfaces/columnExcelExportOption.interface.ts b/packages/common/src/interfaces/columnExcelExportOption.interface.ts index 90479035b..c13074955 100644 --- a/packages/common/src/interfaces/columnExcelExportOption.interface.ts +++ b/packages/common/src/interfaces/columnExcelExportOption.interface.ts @@ -1,8 +1,8 @@ import type { ExcelColumnMetadata, ExcelStyleInstruction, StyleSheet } from '@excel-builder-vanilla/types'; -import type { Column } from './column.interface'; -import type { GridOption } from './gridOption.interface'; -import type { SlickGroupTotals } from '../core/index'; +import type { Column } from './column.interface.js'; +import type { GridOption } from './gridOption.interface.js'; +import type { SlickGroupTotals } from '../core/index.js'; /** Excel custom export options (formatting & width) that can be applied to a column */ export interface ColumnExcelExportOption { diff --git a/packages/common/src/interfaces/columnFilter.interface.ts b/packages/common/src/interfaces/columnFilter.interface.ts index 4016c1829..efb0f6537 100644 --- a/packages/common/src/interfaces/columnFilter.interface.ts +++ b/packages/common/src/interfaces/columnFilter.interface.ts @@ -1,4 +1,4 @@ -import type { FieldType, OperatorString, OperatorType, SearchTerm, } from '../enums/index'; +import type { FieldType, OperatorString, OperatorType, SearchTerm, } from '../enums/index.js'; import type { CollectionCustomStructure, CollectionFilterBy, @@ -10,8 +10,8 @@ import type { MenuCommandItem, OperatorDetail, SearchColumnFilter, -} from './index'; -import type { Observable, Subject } from '../services/rxjsFacade'; +} from './index.js'; +import type { Observable, Subject } from '../services/rxjsFacade.js'; export interface ColumnFilter { /** Optionally provide an aria-label for assistive scren reader, defaults to "{inputName} Search Filter" */ diff --git a/packages/common/src/interfaces/columnFilters.interface.ts b/packages/common/src/interfaces/columnFilters.interface.ts index eecf8b5b1..47bff35f8 100644 --- a/packages/common/src/interfaces/columnFilters.interface.ts +++ b/packages/common/src/interfaces/columnFilters.interface.ts @@ -1,4 +1,4 @@ -import type { SearchColumnFilter } from './searchColumnFilter.interface'; +import type { SearchColumnFilter } from './searchColumnFilter.interface.js'; export interface ColumnFilters { [key: string]: SearchColumnFilter; diff --git a/packages/common/src/interfaces/columnPicker.interface.ts b/packages/common/src/interfaces/columnPicker.interface.ts index 27aea312a..9472dcc98 100644 --- a/packages/common/src/interfaces/columnPicker.interface.ts +++ b/packages/common/src/interfaces/columnPicker.interface.ts @@ -1,6 +1,6 @@ -import type { Column, GridOption } from './index'; -import type { SlickColumnPicker } from '../extensions/slickColumnPicker'; -import type { SlickGrid } from '../core/index'; +import type { Column, GridOption } from './index.js'; +import type { SlickColumnPicker } from '../extensions/slickColumnPicker.js'; +import type { SlickGrid } from '../core/index.js'; export interface ColumnPicker extends ColumnPickerOption { diff --git a/packages/common/src/interfaces/columnSort.interface.ts b/packages/common/src/interfaces/columnSort.interface.ts index 62d3ab6a6..389b75c6a 100644 --- a/packages/common/src/interfaces/columnSort.interface.ts +++ b/packages/common/src/interfaces/columnSort.interface.ts @@ -1,4 +1,4 @@ -import type { Column } from './column.interface'; +import type { Column } from './column.interface.js'; export interface ColumnSort { /** Column Id to be sorted */ diff --git a/packages/common/src/interfaces/compositeEditorError.interface.ts b/packages/common/src/interfaces/compositeEditorError.interface.ts index c9bcbe486..eefec1560 100644 --- a/packages/common/src/interfaces/compositeEditorError.interface.ts +++ b/packages/common/src/interfaces/compositeEditorError.interface.ts @@ -1,4 +1,4 @@ -import type { Editor } from './editor.interface'; +import type { Editor } from './editor.interface.js'; export interface CompositeEditorError { /** Editor DOM element container */ diff --git a/packages/common/src/interfaces/compositeEditorOpenDetailOption.interface.ts b/packages/common/src/interfaces/compositeEditorOpenDetailOption.interface.ts index a92fece39..4f6d0cba0 100644 --- a/packages/common/src/interfaces/compositeEditorOpenDetailOption.interface.ts +++ b/packages/common/src/interfaces/compositeEditorOpenDetailOption.interface.ts @@ -1,6 +1,6 @@ -import type { CompositeEditorModalType } from '../enums/compositeEditorModalType.type'; -import type { CompositeEditorLabel } from './compositeEditorLabel.interface'; -import type { GridServiceInsertOption } from './gridServiceInsertOption.interface'; +import type { CompositeEditorModalType } from '../enums/compositeEditorModalType.type.js'; +import type { CompositeEditorLabel } from './compositeEditorLabel.interface.js'; +import type { GridServiceInsertOption } from './gridServiceInsertOption.interface.js'; export type OnErrorOption = { /** Error code (typically an uppercase error code key like: "NO_RECORD_FOUND") */ diff --git a/packages/common/src/interfaces/compositeEditorOption.interface.ts b/packages/common/src/interfaces/compositeEditorOption.interface.ts index cec65bbf3..2543af1ab 100644 --- a/packages/common/src/interfaces/compositeEditorOption.interface.ts +++ b/packages/common/src/interfaces/compositeEditorOption.interface.ts @@ -1,5 +1,5 @@ -import type { Editor, EditorConstructor } from './editor.interface'; -import type { CompositeEditorModalType } from '../enums/compositeEditorModalType.type'; +import type { Editor, EditorConstructor } from './editor.interface.js'; +import type { CompositeEditorModalType } from '../enums/compositeEditorModalType.type.js'; export interface CompositeEditorOption { /** Defaults to "edit", what is the type of Composite Editor Modal is used? */ diff --git a/packages/common/src/interfaces/contextMenu.interface.ts b/packages/common/src/interfaces/contextMenu.interface.ts index 037794494..5f8f898ba 100644 --- a/packages/common/src/interfaces/contextMenu.interface.ts +++ b/packages/common/src/interfaces/contextMenu.interface.ts @@ -1,11 +1,11 @@ -import type { SlickEventData } from '../core'; -import type { SlickContextMenu } from '../extensions/slickContextMenu'; +import type { SlickEventData } from '../core/slickCore.js'; +import type { SlickContextMenu } from '../extensions/slickContextMenu.js'; import type { ContextMenuOption, MenuCommandItemCallbackArgs, MenuFromCellCallbackArgs, MenuOptionItemCallbackArgs, -} from './index'; +} from './index.js'; export interface ContextMenu extends ContextMenuOption { // -- diff --git a/packages/common/src/interfaces/contextMenuOption.interface.ts b/packages/common/src/interfaces/contextMenuOption.interface.ts index 33b3ea23e..eef7d7cec 100644 --- a/packages/common/src/interfaces/contextMenuOption.interface.ts +++ b/packages/common/src/interfaces/contextMenuOption.interface.ts @@ -2,7 +2,7 @@ import type { MenuCallbackArgs, MenuCommandItem, MenuOptionItem, -} from './index'; +} from './index.js'; export interface ContextMenuOption { /** Defaults to true, Auto-align dropup or dropdown menu to the left or right depending on grid viewport available space */ diff --git a/packages/common/src/interfaces/currentFilter.interface.ts b/packages/common/src/interfaces/currentFilter.interface.ts index 1fff8fd92..4c07e71b3 100644 --- a/packages/common/src/interfaces/currentFilter.interface.ts +++ b/packages/common/src/interfaces/currentFilter.interface.ts @@ -1,5 +1,5 @@ -import type { OperatorString, OperatorType } from '../enums/index'; -import type { SearchTerm } from '../enums/searchTerm.type'; +import type { OperatorString, OperatorType } from '../enums/index.js'; +import type { SearchTerm } from '../enums/searchTerm.type.js'; export interface CurrentFilter { /** diff --git a/packages/common/src/interfaces/currentSorter.interface.ts b/packages/common/src/interfaces/currentSorter.interface.ts index 2bd65c7dd..628fffeb1 100644 --- a/packages/common/src/interfaces/currentSorter.interface.ts +++ b/packages/common/src/interfaces/currentSorter.interface.ts @@ -1,4 +1,4 @@ -import type { SortDirection, SortDirectionString } from '../enums/index'; +import type { SortDirection, SortDirectionString } from '../enums/index.js'; export interface CurrentSorter { /** diff --git a/packages/common/src/interfaces/customFooterOption.interface.ts b/packages/common/src/interfaces/customFooterOption.interface.ts index 101d514d9..f53141729 100644 --- a/packages/common/src/interfaces/customFooterOption.interface.ts +++ b/packages/common/src/interfaces/customFooterOption.interface.ts @@ -1,4 +1,4 @@ -import type { MetricTexts } from './metricTexts.interface'; +import type { MetricTexts } from './metricTexts.interface.js'; export interface CustomFooterOption { /** Optionally provide some text to be displayed on the left side of the footer (in the "left-footer" css class) */ diff --git a/packages/common/src/interfaces/customTooltipOption.interface.ts b/packages/common/src/interfaces/customTooltipOption.interface.ts index f3171e2a9..505c9b545 100644 --- a/packages/common/src/interfaces/customTooltipOption.interface.ts +++ b/packages/common/src/interfaces/customTooltipOption.interface.ts @@ -1,6 +1,6 @@ -import type { Observable, Subject } from '../services/rxjsFacade'; -import type { Column, Formatter } from './index'; -import type { SlickGrid } from '../core/index'; +import type { Observable, Subject } from '../services/rxjsFacade.js'; +import type { Column, Formatter } from './index.js'; +import type { SlickGrid } from '../core/index.js'; type PostProcessOutput

= P & { [asyncParamsPropName: string]: any; }; export type AsyncProcess = (row: number, cell: number, value: any, columnDef: Column, dataContext: T, grid?: SlickGrid) => Promise> | Observable> | Subject>; diff --git a/packages/common/src/interfaces/dataViewEvents.interface.ts b/packages/common/src/interfaces/dataViewEvents.interface.ts index 26099db94..8a2cd6434 100644 --- a/packages/common/src/interfaces/dataViewEvents.interface.ts +++ b/packages/common/src/interfaces/dataViewEvents.interface.ts @@ -1,4 +1,4 @@ -import type { SlickDataView, SlickGrid } from '../core/index'; +import type { SlickDataView, SlickGrid } from '../core/index.js'; export interface OnGroupExpandedEventArgs { level: number; groupingKey: string | number | null; } export interface OnGroupCollapsedEventArgs { level: number; groupingKey: string | number | null; } diff --git a/packages/common/src/interfaces/drag.interface.ts b/packages/common/src/interfaces/drag.interface.ts index 606d3c640..187945e32 100644 --- a/packages/common/src/interfaces/drag.interface.ts +++ b/packages/common/src/interfaces/drag.interface.ts @@ -1,4 +1,4 @@ -import type { SlickGrid } from '../core/index'; +import type { SlickGrid } from '../core/index.js'; export interface DragItem { dragSource: HTMLElement | Document | null; diff --git a/packages/common/src/interfaces/draggableGrouping.interface.ts b/packages/common/src/interfaces/draggableGrouping.interface.ts index 1718b2ad3..306a2f4e2 100644 --- a/packages/common/src/interfaces/draggableGrouping.interface.ts +++ b/packages/common/src/interfaces/draggableGrouping.interface.ts @@ -1,8 +1,8 @@ -import type { Grouping } from './index'; -import type { DraggableGroupingOption } from './draggableGroupingOption.interface'; -import type { SlickDraggableGrouping } from '../extensions/slickDraggableGrouping'; -import type { SlickEventData } from '../core/index'; +import type { Grouping } from './index.js'; +import type { DraggableGroupingOption } from './draggableGroupingOption.interface.js'; +import type { SlickDraggableGrouping } from '../extensions/slickDraggableGrouping.js'; +import type { SlickEventData } from '../core/index.js'; export interface DraggableGrouping extends DraggableGroupingOption { // diff --git a/packages/common/src/interfaces/draggableGroupingOption.interface.ts b/packages/common/src/interfaces/draggableGroupingOption.interface.ts index eca93996b..20370c66e 100644 --- a/packages/common/src/interfaces/draggableGroupingOption.interface.ts +++ b/packages/common/src/interfaces/draggableGroupingOption.interface.ts @@ -1,5 +1,5 @@ -import type { ColumnReorderFunction } from '../enums/columnReorderFunction.type'; -import type { GroupingGetterFunction } from './grouping.interface'; +import type { ColumnReorderFunction } from '../enums/columnReorderFunction.type.js'; +import type { GroupingGetterFunction } from './grouping.interface.js'; export interface DraggableGroupingOption { /** an extra CSS class to add to the delete button (default undefined), if deleteIconCssClass is undefined then slick-groupby-remove-icon class will be added */ diff --git a/packages/common/src/interfaces/editCommand.interface.ts b/packages/common/src/interfaces/editCommand.interface.ts index 445ae2060..2fa53694c 100644 --- a/packages/common/src/interfaces/editCommand.interface.ts +++ b/packages/common/src/interfaces/editCommand.interface.ts @@ -1,4 +1,4 @@ -import type { Editor } from './editor.interface'; +import type { Editor } from './editor.interface.js'; export interface EditCommand { /** The row of the cell being edited */ diff --git a/packages/common/src/interfaces/editUndoRedoBuffer.interface.ts b/packages/common/src/interfaces/editUndoRedoBuffer.interface.ts index 38ee984a2..01f5f6902 100644 --- a/packages/common/src/interfaces/editUndoRedoBuffer.interface.ts +++ b/packages/common/src/interfaces/editUndoRedoBuffer.interface.ts @@ -1,4 +1,4 @@ -import type { EditCommand } from './editCommand.interface'; +import type { EditCommand } from './editCommand.interface.js'; export interface EditUndoRedoBuffer { /** Send the Edit Command to the Queue and Execute it after doing so */ diff --git a/packages/common/src/interfaces/editor.interface.ts b/packages/common/src/interfaces/editor.interface.ts index 74180a5ef..1ae5c5517 100644 --- a/packages/common/src/interfaces/editor.interface.ts +++ b/packages/common/src/interfaces/editor.interface.ts @@ -1,4 +1,4 @@ -import type { EditorArguments, EditorValidationResult } from './index'; +import type { EditorArguments, EditorValidationResult } from './index.js'; /** * SlickGrid Editor interface, more info can be found on the SlickGrid repo diff --git a/packages/common/src/interfaces/editorArguments.interface.ts b/packages/common/src/interfaces/editorArguments.interface.ts index 23a0d3d58..4c7c84953 100644 --- a/packages/common/src/interfaces/editorArguments.interface.ts +++ b/packages/common/src/interfaces/editorArguments.interface.ts @@ -1,6 +1,6 @@ -import type { Column, CompositeEditorOption, ElementPosition } from './index'; -import type { PositionMethod } from '../enums/positionMethod.type'; -import type { SlickDataView, SlickEventData, SlickGrid } from '../core/index'; +import type { Column, CompositeEditorOption, ElementPosition } from './index.js'; +import type { PositionMethod } from '../enums/positionMethod.type.js'; +import type { SlickDataView, SlickEventData, SlickGrid } from '../core/index.js'; export interface EditorArguments { /** Column Definition */ diff --git a/packages/common/src/interfaces/editorValidationResult.interface.ts b/packages/common/src/interfaces/editorValidationResult.interface.ts index cffb080fb..347de6f5a 100644 --- a/packages/common/src/interfaces/editorValidationResult.interface.ts +++ b/packages/common/src/interfaces/editorValidationResult.interface.ts @@ -1,4 +1,4 @@ -import type { CompositeEditorError } from './compositeEditorError.interface'; +import type { CompositeEditorError } from './compositeEditorError.interface.js'; export interface EditorValidationResult { /** Did the validation pass? */ diff --git a/packages/common/src/interfaces/editorValidator.interface.ts b/packages/common/src/interfaces/editorValidator.interface.ts index 12087e401..3c9314054 100644 --- a/packages/common/src/interfaces/editorValidator.interface.ts +++ b/packages/common/src/interfaces/editorValidator.interface.ts @@ -1,3 +1,3 @@ -import type { EditorArguments, EditorValidationResult } from './index'; +import type { EditorArguments, EditorValidationResult } from './index.js'; export type EditorValidator = (value: any, args?: EditorArguments) => EditorValidationResult; diff --git a/packages/common/src/interfaces/excelCopyBufferOption.interface.ts b/packages/common/src/interfaces/excelCopyBufferOption.interface.ts index c72e13207..4887f1418 100644 --- a/packages/common/src/interfaces/excelCopyBufferOption.interface.ts +++ b/packages/common/src/interfaces/excelCopyBufferOption.interface.ts @@ -1,6 +1,6 @@ -import type { Column, FormatterResultWithHtml, FormatterResultWithText, OnEventArgs, } from './index'; -import type { SlickCellExcelCopyManager, } from '../extensions/slickCellExcelCopyManager'; -import type { SlickEventData, SlickRange } from '../core/index'; +import type { Column, FormatterResultWithHtml, FormatterResultWithText, OnEventArgs, } from './index.js'; +import type { SlickCellExcelCopyManager, } from '../extensions/slickCellExcelCopyManager.js'; +import type { SlickEventData, SlickRange } from '../core/index.js'; export interface ExcelCopyBufferOption { /** defaults to 2000(ms), delay in ms to wait before clearing the selection after a paste action */ diff --git a/packages/common/src/interfaces/excelExportOption.interface.ts b/packages/common/src/interfaces/excelExportOption.interface.ts index 4b2584a7f..ecf47eb2b 100644 --- a/packages/common/src/interfaces/excelExportOption.interface.ts +++ b/packages/common/src/interfaces/excelExportOption.interface.ts @@ -1,5 +1,5 @@ import type { ExcelStyleInstruction, Worksheet, Workbook } from '@excel-builder-vanilla/types'; -import type { FileType } from '../enums/fileType.enum'; +import type { FileType } from '../enums/fileType.enum.js'; export interface ExcelExportOption { /** Defaults to true, when grid is using Grouping, it will show indentation of the text with collapsed/expanded symbol as well */ diff --git a/packages/common/src/interfaces/extensionModel.interface.ts b/packages/common/src/interfaces/extensionModel.interface.ts index b3ddc2f27..a2c8e5d25 100644 --- a/packages/common/src/interfaces/extensionModel.interface.ts +++ b/packages/common/src/interfaces/extensionModel.interface.ts @@ -1,4 +1,4 @@ -import type { ExtensionName, SlickControlList, SlickPluginList } from '../enums/index'; +import type { ExtensionName, SlickControlList, SlickPluginList } from '../enums/index.js'; export interface ExtensionModel

{ /** Name of the Slickgrid-Universal Extension */ diff --git a/packages/common/src/interfaces/externalCopyClipCommand.interface.ts b/packages/common/src/interfaces/externalCopyClipCommand.interface.ts index d0dac9754..b2042fcdf 100644 --- a/packages/common/src/interfaces/externalCopyClipCommand.interface.ts +++ b/packages/common/src/interfaces/externalCopyClipCommand.interface.ts @@ -1,6 +1,6 @@ -import type { SlickCellExternalCopyManager } from '../extensions/slickCellExternalCopyManager'; -import type { Column, ExcelCopyBufferOption } from './index'; -import type { SlickRange } from '../core'; +import type { SlickCellExternalCopyManager } from '../extensions/slickCellExternalCopyManager.js'; +import type { Column, ExcelCopyBufferOption } from './index.js'; +import type { SlickRange } from '../core/slickCore.js'; export interface ExternalCopyClipCommand { activeCell: number; diff --git a/packages/common/src/interfaces/externalResource.interface.ts b/packages/common/src/interfaces/externalResource.interface.ts index ee45389be..0e43b4739 100644 --- a/packages/common/src/interfaces/externalResource.interface.ts +++ b/packages/common/src/interfaces/externalResource.interface.ts @@ -1,5 +1,5 @@ -import type { ContainerService } from '../services/index'; -import type { SlickGrid } from '../core/index'; +import type { ContainerService } from '../services/index.js'; +import type { SlickGrid } from '../core/index.js'; export interface ExternalResource { /** optionally provide the Service class name of the resource to make it easier to find even with minified code */ diff --git a/packages/common/src/interfaces/filter.interface.ts b/packages/common/src/interfaces/filter.interface.ts index 379ad90df..f2a36a3bb 100644 --- a/packages/common/src/interfaces/filter.interface.ts +++ b/packages/common/src/interfaces/filter.interface.ts @@ -1,7 +1,7 @@ -import type { Column, FilterArguments, FilterCallback } from './index'; -import type { OperatorType, OperatorString, SearchTerm, } from '../enums/index'; -import type { SlickGrid } from '../core/index'; -import type { CollectionService, RxJsFacade, TranslaterService } from '../services'; +import type { Column, FilterArguments, FilterCallback } from './index.js'; +import type { OperatorType, OperatorString, SearchTerm, } from '../enums/index.js'; +import type { SlickGrid } from '../core/index.js'; +import type { CollectionService, RxJsFacade, TranslaterService } from '../services/index.js'; // export type Filter = (searchTerms: string | number | string[] | number[], columnDef: Column, params?: any) => string; export interface Filter { diff --git a/packages/common/src/interfaces/filterArguments.interface.ts b/packages/common/src/interfaces/filterArguments.interface.ts index ea22a594c..436ea94d4 100644 --- a/packages/common/src/interfaces/filterArguments.interface.ts +++ b/packages/common/src/interfaces/filterArguments.interface.ts @@ -1,6 +1,6 @@ -import type { Column, FilterCallback } from './index'; -import type { OperatorString, OperatorType, SearchTerm } from '../enums/index'; -import type { SlickGrid } from '../core/index'; +import type { Column, FilterCallback } from './index.js'; +import type { OperatorString, OperatorType, SearchTerm } from '../enums/index.js'; +import type { SlickGrid } from '../core/index.js'; export interface FilterArguments { grid: SlickGrid; diff --git a/packages/common/src/interfaces/filterCallback.interface.ts b/packages/common/src/interfaces/filterCallback.interface.ts index 88f5892ef..2010c3b5d 100644 --- a/packages/common/src/interfaces/filterCallback.interface.ts +++ b/packages/common/src/interfaces/filterCallback.interface.ts @@ -1,5 +1,5 @@ -import type { Column } from './index'; -import type { OperatorString, OperatorType, SearchTerm } from '../enums/index'; +import type { Column } from './index.js'; +import type { OperatorString, OperatorType, SearchTerm } from '../enums/index.js'; export interface FilterCallbackArg { /** Was the last event a Clear Filter that was triggered? */ diff --git a/packages/common/src/interfaces/filterChangedArgs.interface.ts b/packages/common/src/interfaces/filterChangedArgs.interface.ts index 00400afd2..6a1bcbc87 100644 --- a/packages/common/src/interfaces/filterChangedArgs.interface.ts +++ b/packages/common/src/interfaces/filterChangedArgs.interface.ts @@ -1,6 +1,6 @@ -import type { OperatorString, OperatorType, SearchTerm } from '../enums/index'; -import type { Column, ColumnFilters } from './index'; -import type { SlickGrid } from '../core/index'; +import type { OperatorString, OperatorType, SearchTerm } from '../enums/index.js'; +import type { Column, ColumnFilters } from './index.js'; +import type { SlickGrid } from '../core/index.js'; export interface FilterChangedArgs { clearFilterTriggered?: boolean; diff --git a/packages/common/src/interfaces/filterCondition.interface.ts b/packages/common/src/interfaces/filterCondition.interface.ts index ef91ffc6e..504771886 100644 --- a/packages/common/src/interfaces/filterCondition.interface.ts +++ b/packages/common/src/interfaces/filterCondition.interface.ts @@ -1,5 +1,5 @@ -import type { SearchTerm } from '../enums/searchTerm.type'; -import type { FilterConditionOption } from './filterConditionOption.interface'; +import type { SearchTerm } from '../enums/searchTerm.type.js'; +import type { FilterConditionOption } from './filterConditionOption.interface.js'; export type FilterCondition = (options: FilterConditionOption, parsedSearchTerms?: SearchTerm | SearchTerm[]) => boolean; diff --git a/packages/common/src/interfaces/filterConditionOption.interface.ts b/packages/common/src/interfaces/filterConditionOption.interface.ts index eed0785e0..abfd31986 100644 --- a/packages/common/src/interfaces/filterConditionOption.interface.ts +++ b/packages/common/src/interfaces/filterConditionOption.interface.ts @@ -1,4 +1,4 @@ -import type { FieldType, OperatorString, OperatorType, SearchTerm } from '../enums/index'; +import type { FieldType, OperatorString, OperatorType, SearchTerm } from '../enums/index.js'; export interface FilterConditionOption { /** optional object data key */ diff --git a/packages/common/src/interfaces/formatter.interface.ts b/packages/common/src/interfaces/formatter.interface.ts index da62c637f..411fb3ebf 100644 --- a/packages/common/src/interfaces/formatter.interface.ts +++ b/packages/common/src/interfaces/formatter.interface.ts @@ -1,4 +1,4 @@ -import type { SlickGrid } from '../core/index'; -import type { Column, FormatterResultWithHtml, FormatterResultWithText } from './index'; +import type { SlickGrid } from '../core/index.js'; +import type { Column, FormatterResultWithHtml, FormatterResultWithText } from './index.js'; export declare type Formatter = (row: number, cell: number, value: any, columnDef: Column, dataContext: T, grid: SlickGrid) => string | HTMLElement | DocumentFragment | FormatterResultWithHtml | FormatterResultWithText; diff --git a/packages/common/src/interfaces/gridEvents.interface.ts b/packages/common/src/interfaces/gridEvents.interface.ts index 8e5a99a6b..28615fb94 100644 --- a/packages/common/src/interfaces/gridEvents.interface.ts +++ b/packages/common/src/interfaces/gridEvents.interface.ts @@ -1,5 +1,5 @@ -import type { Column, CompositeEditorOption, CssStyleHash, Editor, EditorConstructor, EditorValidationResult, GridOption } from './index'; -import type { SlickGrid } from '../core/index'; +import type { Column, CompositeEditorOption, CssStyleHash, Editor, EditorConstructor, EditorValidationResult, GridOption } from './index.js'; +import type { SlickGrid } from '../core/index.js'; export interface SlickGridArg { grid: SlickGrid; } export interface OnActiveCellChangedEventArgs extends SlickGridArg { cell: number; row: number; } diff --git a/packages/common/src/interfaces/gridMenu.interface.ts b/packages/common/src/interfaces/gridMenu.interface.ts index bb8ddc38d..16a264558 100644 --- a/packages/common/src/interfaces/gridMenu.interface.ts +++ b/packages/common/src/interfaces/gridMenu.interface.ts @@ -1,6 +1,6 @@ -import type { Column, GridMenuOption, GridMenuCommandItemCallbackArgs } from './index'; -import type { SlickGridMenu } from '../extensions/slickGridMenu'; -import type { SlickGrid } from '../core/index'; +import type { Column, GridMenuOption, GridMenuCommandItemCallbackArgs } from './index.js'; +import type { SlickGridMenu } from '../extensions/slickGridMenu.js'; +import type { SlickGrid } from '../core/index.js'; export interface GridMenu extends GridMenuOption { // -- diff --git a/packages/common/src/interfaces/gridMenuCommandItemCallbackArgs.interface.ts b/packages/common/src/interfaces/gridMenuCommandItemCallbackArgs.interface.ts index a658bb74e..794c85f86 100644 --- a/packages/common/src/interfaces/gridMenuCommandItemCallbackArgs.interface.ts +++ b/packages/common/src/interfaces/gridMenuCommandItemCallbackArgs.interface.ts @@ -1,5 +1,5 @@ -import type { Column, MenuCommandItem } from './index'; -import type { SlickGrid } from '../core/index'; +import type { Column, MenuCommandItem } from './index.js'; +import type { SlickGrid } from '../core/index.js'; export interface GridMenuCallbackArgs { grid: SlickGrid; diff --git a/packages/common/src/interfaces/gridMenuItem.interface.ts b/packages/common/src/interfaces/gridMenuItem.interface.ts index b753643b3..8625c4844 100644 --- a/packages/common/src/interfaces/gridMenuItem.interface.ts +++ b/packages/common/src/interfaces/gridMenuItem.interface.ts @@ -1,5 +1,5 @@ -import type { GridMenuCallbackArgs, GridMenuCommandItemCallbackArgs } from './gridMenuCommandItemCallbackArgs.interface'; -import type { MenuCommandItem } from './menuCommandItem.interface'; +import type { GridMenuCallbackArgs, GridMenuCommandItemCallbackArgs } from './gridMenuCommandItemCallbackArgs.interface.js'; +import type { MenuCommandItem } from './menuCommandItem.interface.js'; export interface GridMenuItem extends MenuCommandItem { // -- diff --git a/packages/common/src/interfaces/gridMenuOption.interface.ts b/packages/common/src/interfaces/gridMenuOption.interface.ts index 80d7a4244..59e394937 100644 --- a/packages/common/src/interfaces/gridMenuOption.interface.ts +++ b/packages/common/src/interfaces/gridMenuOption.interface.ts @@ -1,4 +1,4 @@ -import type { Column, GridMenuCallbackArgs, GridMenuCommandItemCallbackArgs, GridMenuLabel, GridOption, MenuCallbackArgs, MenuCommandItem, } from './index'; +import type { Column, GridMenuCallbackArgs, GridMenuCommandItemCallbackArgs, GridMenuLabel, GridOption, MenuCallbackArgs, MenuCommandItem, } from './index.js'; export interface GridMenuOption { /** diff --git a/packages/common/src/interfaces/gridOption.interface.ts b/packages/common/src/interfaces/gridOption.interface.ts index 4a2a70dc7..c7def5267 100644 --- a/packages/common/src/interfaces/gridOption.interface.ts +++ b/packages/common/src/interfaces/gridOption.interface.ts @@ -46,10 +46,10 @@ import type { TextExportOption, TreeDataOption, VanillaCalendarOption, -} from './index'; -import type { ColumnReorderFunction, OperatorString, OperatorType, } from '../enums/index'; -import type { TranslaterService } from '../services/translater.service'; -import type { DataViewOption, SlickEditorLock } from '../core/index'; +} from './index.js'; +import type { ColumnReorderFunction, OperatorString, OperatorType, } from '../enums/index.js'; +import type { TranslaterService } from '../services/translater.service.js'; +import type { DataViewOption, SlickEditorLock } from '../core/index.js'; export interface CellViewportRange { bottom: number; diff --git a/packages/common/src/interfaces/gridState.interface.ts b/packages/common/src/interfaces/gridState.interface.ts index d61bbac8e..fdac5d140 100644 --- a/packages/common/src/interfaces/gridState.interface.ts +++ b/packages/common/src/interfaces/gridState.interface.ts @@ -6,7 +6,7 @@ import type { CurrentRowSelection, CurrentSorter, TreeToggleStateChange, -} from './index'; +} from './index.js'; export interface GridState { /** Columns (and their state: visibility/position) that are currently applied in the grid */ diff --git a/packages/common/src/interfaces/gridStateChange.interface.ts b/packages/common/src/interfaces/gridStateChange.interface.ts index 816512dfc..46beca1db 100644 --- a/packages/common/src/interfaces/gridStateChange.interface.ts +++ b/packages/common/src/interfaces/gridStateChange.interface.ts @@ -1,5 +1,5 @@ -import type { GridStateType } from '../enums/index'; -import type { CurrentColumn, CurrentFilter, CurrentPagination, CurrentPinning, CurrentRowSelection, CurrentSorter, GridState, TreeToggleStateChange } from './index'; +import type { GridStateType } from '../enums/index.js'; +import type { CurrentColumn, CurrentFilter, CurrentPagination, CurrentPinning, CurrentRowSelection, CurrentSorter, GridState, TreeToggleStateChange } from './index.js'; export interface GridStateChange { /** Last Grid State Change that was triggered (only 1 type of change at a time) */ diff --git a/packages/common/src/interfaces/groupItemMetadataProviderOption.interface.ts b/packages/common/src/interfaces/groupItemMetadataProviderOption.interface.ts index 55953cefc..d64d665d8 100644 --- a/packages/common/src/interfaces/groupItemMetadataProviderOption.interface.ts +++ b/packages/common/src/interfaces/groupItemMetadataProviderOption.interface.ts @@ -1,5 +1,5 @@ -import type { Formatter } from './formatter.interface'; -import type { SlickCheckboxSelectColumn } from '../extensions/slickCheckboxSelectColumn'; +import type { Formatter } from './formatter.interface.js'; +import type { SlickCheckboxSelectColumn } from '../extensions/slickCheckboxSelectColumn.js'; export interface GroupItemMetadataProviderOption { /** Whether or not we want to use group select checkbox. */ diff --git a/packages/common/src/interfaces/groupTotalsFormatter.interface.ts b/packages/common/src/interfaces/groupTotalsFormatter.interface.ts index c80047d48..a3864a91c 100644 --- a/packages/common/src/interfaces/groupTotalsFormatter.interface.ts +++ b/packages/common/src/interfaces/groupTotalsFormatter.interface.ts @@ -1,4 +1,4 @@ -import type { Column } from './index'; -import type { SlickGrid } from '../core/index'; +import type { Column } from './index.js'; +import type { SlickGrid } from '../core/index.js'; export type GroupTotalsFormatter = (totals: any, columnDef: Column, grid: SlickGrid) => string | HTMLElement; diff --git a/packages/common/src/interfaces/grouping.interface.ts b/packages/common/src/interfaces/grouping.interface.ts index 7fd42f8f0..4555fd6cc 100644 --- a/packages/common/src/interfaces/grouping.interface.ts +++ b/packages/common/src/interfaces/grouping.interface.ts @@ -1,7 +1,7 @@ -import type { Aggregator } from './aggregator.interface'; -import type { GroupingComparerItem } from './groupingComparerItem.interface'; -import type { GroupingFormatterItem } from './groupingFormatterItem.interface'; -import type { SortDirectionNumber } from '../enums/sortDirectionNumber.enum'; +import type { Aggregator } from './aggregator.interface.js'; +import type { GroupingComparerItem } from './groupingComparerItem.interface.js'; +import type { GroupingFormatterItem } from './groupingFormatterItem.interface.js'; +import type { SortDirectionNumber } from '../enums/sortDirectionNumber.enum.js'; export type GroupingGetterFunction = (value: T) => any; diff --git a/packages/common/src/interfaces/headerButton.interface.ts b/packages/common/src/interfaces/headerButton.interface.ts index e63aecf3e..c52ec759a 100644 --- a/packages/common/src/interfaces/headerButton.interface.ts +++ b/packages/common/src/interfaces/headerButton.interface.ts @@ -1,6 +1,6 @@ -import type { SlickHeaderButtons } from '../extensions/slickHeaderButtons'; -import type { HeaderButtonOnCommandArgs } from './headerButtonOnCommandArgs.interface'; -import type { SlickEventData } from '../core/index'; +import type { SlickHeaderButtons } from '../extensions/slickHeaderButtons.js'; +import type { HeaderButtonOnCommandArgs } from './headerButtonOnCommandArgs.interface.js'; +import type { SlickEventData } from '../core/index.js'; export interface HeaderButton extends HeaderButtonOption { // -- diff --git a/packages/common/src/interfaces/headerButtonItem.interface.ts b/packages/common/src/interfaces/headerButtonItem.interface.ts index 4c247a3f3..f0cb4ec72 100644 --- a/packages/common/src/interfaces/headerButtonItem.interface.ts +++ b/packages/common/src/interfaces/headerButtonItem.interface.ts @@ -1,5 +1,5 @@ -import type { Column } from './index'; -import type { SlickGrid } from '../core/index'; +import type { Column } from './index.js'; +import type { SlickGrid } from '../core/index.js'; export interface HeaderButtonItem { /** A command identifier to be passed to the onCommand event handlers. */ diff --git a/packages/common/src/interfaces/headerButtonOnCommandArgs.interface.ts b/packages/common/src/interfaces/headerButtonOnCommandArgs.interface.ts index 214382c42..c3d0006d7 100644 --- a/packages/common/src/interfaces/headerButtonOnCommandArgs.interface.ts +++ b/packages/common/src/interfaces/headerButtonOnCommandArgs.interface.ts @@ -1,5 +1,5 @@ -import type { Column, HeaderButtonItem } from './index'; -import type { SlickGrid } from '../core/index'; +import type { Column, HeaderButtonItem } from './index.js'; +import type { SlickGrid } from '../core/index.js'; export interface HeaderButtonOnCommandArgs { grid: SlickGrid; diff --git a/packages/common/src/interfaces/headerButtonsOrMenu.interface.ts b/packages/common/src/interfaces/headerButtonsOrMenu.interface.ts index dafed30fb..280521907 100644 --- a/packages/common/src/interfaces/headerButtonsOrMenu.interface.ts +++ b/packages/common/src/interfaces/headerButtonsOrMenu.interface.ts @@ -1,5 +1,5 @@ -import type { HeaderButtonItem } from './headerButtonItem.interface'; -import type { HeaderMenuItems } from './headerMenuItems.interface'; +import type { HeaderButtonItem } from './headerButtonItem.interface.js'; +import type { HeaderMenuItems } from './headerMenuItems.interface.js'; export interface HeaderButtonsOrMenu { /** list of Buttons to show in the header */ diff --git a/packages/common/src/interfaces/headerMenu.interface.ts b/packages/common/src/interfaces/headerMenu.interface.ts index 0e0d0bbde..35c218358 100644 --- a/packages/common/src/interfaces/headerMenu.interface.ts +++ b/packages/common/src/interfaces/headerMenu.interface.ts @@ -1,11 +1,11 @@ -import type { SlickHeaderMenu } from '../extensions/slickHeaderMenu'; +import type { SlickHeaderMenu } from '../extensions/slickHeaderMenu.js'; import type { Column, HeaderMenuOption, MenuCommandItem, MenuCommandItemCallbackArgs, -} from './index'; -import type { SlickGrid, SlickEventData } from '../core/index'; +} from './index.js'; +import type { SlickGrid, SlickEventData } from '../core/index.js'; export interface HeaderMenuCommandItemCallbackArgs { /** Column definition */ diff --git a/packages/common/src/interfaces/headerMenuItems.interface.ts b/packages/common/src/interfaces/headerMenuItems.interface.ts index 12980017b..1c64f24c3 100644 --- a/packages/common/src/interfaces/headerMenuItems.interface.ts +++ b/packages/common/src/interfaces/headerMenuItems.interface.ts @@ -1,4 +1,4 @@ -import type { MenuCommandItem } from './menuCommandItem.interface'; +import type { MenuCommandItem } from './menuCommandItem.interface.js'; export interface HeaderMenuItems { /** List of command items to show in the header menu. */ diff --git a/packages/common/src/interfaces/headerMenuOption.interface.ts b/packages/common/src/interfaces/headerMenuOption.interface.ts index 3372b2115..643bf919b 100644 --- a/packages/common/src/interfaces/headerMenuOption.interface.ts +++ b/packages/common/src/interfaces/headerMenuOption.interface.ts @@ -1,5 +1,5 @@ -import type { Column } from './index'; -import type { SlickGrid } from '../core/index'; +import type { Column } from './index.js'; +import type { SlickGrid } from '../core/index.js'; export interface HeaderMenuOption { /** Auto-align drop menu to the left when not enough viewport space to show on the right */ diff --git a/packages/common/src/interfaces/index.ts b/packages/common/src/interfaces/index.ts index 1dfbf9657..2843197b1 100644 --- a/packages/common/src/interfaces/index.ts +++ b/packages/common/src/interfaces/index.ts @@ -1,146 +1,146 @@ -export type * from './aggregator.interface'; -export type * from './autocompleterOption.interface'; -export type * from './autoResizeOption.interface'; -export type * from './autoTooltipOption.interface'; -export type * from './backendService.interface'; -export type * from './backendServiceApi.interface'; -export type * from './backendServiceOption.interface'; -export type * from './cancellablePromiseWrapper.interface'; -export type * from './cellArgs.interface'; -export type * from './cellMenu.interface'; -export type * from './cellMenuOption.interface'; -export type * from './cellRange.interface'; -export type * from './checkboxSelectorOption.interface'; -export type * from './collectionCustomStructure.interface'; -export type * from './collectionFilterBy.interface'; -export type * from './collectionOption.interface'; -export type * from './collectionOverrideArgs.interface'; -export type * from './collectionSortBy.interface'; -export type * from './column.interface'; -export type * from './columnEditor.interface'; -export type * from './columnEditorDualInput.interface'; -export type * from './columnExcelExportOption.interface'; -export type * from './columnFilter.interface'; -export type * from './columnFilters.interface'; -export type * from './columnPicker.interface'; -export type * from './columnSort.interface'; -export type * from './compositeEditorError.interface'; -export type * from './compositeEditorLabel.interface'; -export type * from './compositeEditorOpenDetailOption.interface'; -export type * from './compositeEditorOption.interface'; -export type * from './contextMenu.interface'; -export type * from './contextMenuOption.interface'; -export type * from './cssDeclaration.interface'; -export type * from './currentColumn.interface'; -export type * from './currentFilter.interface'; -export type * from './currentPagination.interface'; -export type * from './currentPinning.interface'; -export type * from './currentRowSelection.interface'; -export type * from './currentSorter.interface'; -export type * from './cursorPageInfo.interface'; -export type * from './customFooterOption.interface'; -export type * from './customTooltipOption.interface'; -export type * from './dataViewEvents.interface'; -export type * from './dataViewHints.interface'; -export type * from './domEvent.interface'; -export type * from './drag.interface'; -export type * from './draggableGrouping.interface'; -export type * from './draggableGroupingOption.interface'; -export type * from './editCommand.interface'; -export type * from './editController.interface'; -export type * from './editor.interface'; -export type * from './editorArguments.interface'; -export type * from './editorValidationResult.interface'; -export type * from './editorValidator.interface'; -export type * from './editUndoRedoBuffer.interface'; -export type * from './elementPosition.interface'; -export type * from './emptyWarning.interface'; -export type * from './excelCopyBufferOption.interface'; -export type * from './excelExportOption.interface'; -export type * from './extension.interface'; -export type * from './extensionModel.interface'; -export type * from './externalCopyClipCommand.interface'; -export type * from './externalResource.interface'; -export type * from './filter.interface'; -export type * from './filterArguments.interface'; -export type * from './filterCallback.interface'; -export type * from './filterChangedArgs.interface'; -export type * from './filterCondition.interface'; -export type * from './filterConditionOption.interface'; -export type * from './formatter.interface'; -export type * from './formatterOption.interface'; -export type * from './formatterResultObject.interface'; -export type * from './gridEvents.interface'; -export type * from './gridMenu.interface'; -export type * from './gridMenuCommandItemCallbackArgs.interface'; -export type * from './gridMenuItem.interface'; -export type * from './gridMenuLabel.interface'; -export type * from './gridMenuOption.interface'; -export type * from './gridOption.interface'; -export type * from './gridServiceDeleteOption.interface'; -export type * from './gridServiceInsertOption.interface'; -export type * from './gridServiceUpdateOption.interface'; -export type * from './gridSize.interface'; -export type * from './gridState.interface'; -export type * from './gridStateChange.interface'; -export type * from './grouping.interface'; -export type * from './groupingComparerItem.interface'; -export type * from './groupingFormatterItem.interface'; -export type * from './groupItemMetadataProviderOption.interface'; -export type * from './groupTotalsFormatter.interface'; -export type * from './headerButton.interface'; -export type * from './headerButtonItem.interface'; -export type * from './headerButtonOnCommandArgs.interface'; -export type * from './headerButtonsOrMenu.interface'; -export type * from './headerMenu.interface'; -export type * from './headerMenuItems.interface'; -export type * from './headerMenuOption.interface'; -export type * from './hideColumnOption.interface'; -export type * from './inputOption.interface'; -export type * from './interactions.interface'; -export type * from './itemMetadata.interface'; -export type * from './keyTitlePair.interface'; -export type * from './locale.interface'; -export type * from './longTextEditorOption.interface'; -export type * from './menuCallbackArgs.interface'; -export type * from './menuCommandItem.interface'; -export type * from './menuCommandItemCallbackArgs.interface'; -export type * from './menuFromCellCallbackArgs.interface'; -export type * from './menuItem.interface'; -export type * from './menuOptionItem.interface'; -export type * from './menuOptionItemCallbackArgs.interface'; -export type * from './metrics.interface'; -export type * from './metricTexts.interface'; -export type * from './mouseOffsetViewport.interface'; -export type * from './multiColumnSort.interface'; -export type * from './onEventArgs.interface'; -export type * from './onValidationErrorResult.interface'; -export type * from './operatorDetail.interface'; -export type * from './pagination.interface'; -export type * from './paginationChangedArgs.interface'; -export type * from './paginationCursorChangedArgs.interface'; -export type * from './pagingInfo.interface'; -export type * from './resizeByContentOption.interface'; -export type * from './resizer.interface'; -export type * from './resizerOption.interface'; -export type * from './rowBasedEditOption.interface'; -export type * from './rowDetailView.interface'; -export type * from './rowDetailViewOption.interface'; -export type * from './rowMoveManager.interface'; -export type * from './rowMoveManagerOption.interface'; -export type * from './rowSelectionModelOption.interface'; -export type * from './searchColumnFilter.interface'; -export type * from './selectableOverrideCallback.interface'; -export type * from './selectOption.interface'; -export type * from './singleColumnSort.interface'; -export type * from './slickPlugin.interface'; -export type * from './slickRemoteModel.interface'; -export type * from './slickResizer.interface'; -export type * from './slickRowDetailView.interface'; -export type * from './sliderOption.interface'; -export type * from './sorter.interface'; -export type * from './textExportOption.interface'; -export type * from './treeDataOption.interface'; -export type * from './treeToggledItem.interface'; -export type * from './treeToggleStateChange.interface'; -export type * from './vanillaCalendarOption.interface'; +export type * from './aggregator.interface.js'; +export type * from './autocompleterOption.interface.js'; +export type * from './autoResizeOption.interface.js'; +export type * from './autoTooltipOption.interface.js'; +export type * from './backendService.interface.js'; +export type * from './backendServiceApi.interface.js'; +export type * from './backendServiceOption.interface.js'; +export type * from './cancellablePromiseWrapper.interface.js'; +export type * from './cellArgs.interface.js'; +export type * from './cellMenu.interface.js'; +export type * from './cellMenuOption.interface.js'; +export type * from './cellRange.interface.js'; +export type * from './checkboxSelectorOption.interface.js'; +export type * from './collectionCustomStructure.interface.js'; +export type * from './collectionFilterBy.interface.js'; +export type * from './collectionOption.interface.js'; +export type * from './collectionOverrideArgs.interface.js'; +export type * from './collectionSortBy.interface.js'; +export type * from './column.interface.js'; +export type * from './columnEditor.interface.js'; +export type * from './columnEditorDualInput.interface.js'; +export type * from './columnExcelExportOption.interface.js'; +export type * from './columnFilter.interface.js'; +export type * from './columnFilters.interface.js'; +export type * from './columnPicker.interface.js'; +export type * from './columnSort.interface.js'; +export type * from './compositeEditorError.interface.js'; +export type * from './compositeEditorLabel.interface.js'; +export type * from './compositeEditorOpenDetailOption.interface.js'; +export type * from './compositeEditorOption.interface.js'; +export type * from './contextMenu.interface.js'; +export type * from './contextMenuOption.interface.js'; +export type * from './cssDeclaration.interface.js'; +export type * from './currentColumn.interface.js'; +export type * from './currentFilter.interface.js'; +export type * from './currentPagination.interface.js'; +export type * from './currentPinning.interface.js'; +export type * from './currentRowSelection.interface.js'; +export type * from './currentSorter.interface.js'; +export type * from './cursorPageInfo.interface.js'; +export type * from './customFooterOption.interface.js'; +export type * from './customTooltipOption.interface.js'; +export type * from './dataViewEvents.interface.js'; +export type * from './dataViewHints.interface.js'; +export type * from './domEvent.interface.js'; +export type * from './drag.interface.js'; +export type * from './draggableGrouping.interface.js'; +export type * from './draggableGroupingOption.interface.js'; +export type * from './editCommand.interface.js'; +export type * from './editController.interface.js'; +export type * from './editor.interface.js'; +export type * from './editorArguments.interface.js'; +export type * from './editorValidationResult.interface.js'; +export type * from './editorValidator.interface.js'; +export type * from './editUndoRedoBuffer.interface.js'; +export type * from './elementPosition.interface.js'; +export type * from './emptyWarning.interface.js'; +export type * from './excelCopyBufferOption.interface.js'; +export type * from './excelExportOption.interface.js'; +export type * from './extension.interface.js'; +export type * from './extensionModel.interface.js'; +export type * from './externalCopyClipCommand.interface.js'; +export type * from './externalResource.interface.js'; +export type * from './filter.interface.js'; +export type * from './filterArguments.interface.js'; +export type * from './filterCallback.interface.js'; +export type * from './filterChangedArgs.interface.js'; +export type * from './filterCondition.interface.js'; +export type * from './filterConditionOption.interface.js'; +export type * from './formatter.interface.js'; +export type * from './formatterOption.interface.js'; +export type * from './formatterResultObject.interface.js'; +export type * from './gridEvents.interface.js'; +export type * from './gridMenu.interface.js'; +export type * from './gridMenuCommandItemCallbackArgs.interface.js'; +export type * from './gridMenuItem.interface.js'; +export type * from './gridMenuLabel.interface.js'; +export type * from './gridMenuOption.interface.js'; +export type * from './gridOption.interface.js'; +export type * from './gridServiceDeleteOption.interface.js'; +export type * from './gridServiceInsertOption.interface.js'; +export type * from './gridServiceUpdateOption.interface.js'; +export type * from './gridSize.interface.js'; +export type * from './gridState.interface.js'; +export type * from './gridStateChange.interface.js'; +export type * from './grouping.interface.js'; +export type * from './groupingComparerItem.interface.js'; +export type * from './groupingFormatterItem.interface.js'; +export type * from './groupItemMetadataProviderOption.interface.js'; +export type * from './groupTotalsFormatter.interface.js'; +export type * from './headerButton.interface.js'; +export type * from './headerButtonItem.interface.js'; +export type * from './headerButtonOnCommandArgs.interface.js'; +export type * from './headerButtonsOrMenu.interface.js'; +export type * from './headerMenu.interface.js'; +export type * from './headerMenuItems.interface.js'; +export type * from './headerMenuOption.interface.js'; +export type * from './hideColumnOption.interface.js'; +export type * from './inputOption.interface.js'; +export type * from './interactions.interface.js'; +export type * from './itemMetadata.interface.js'; +export type * from './keyTitlePair.interface.js'; +export type * from './locale.interface.js'; +export type * from './longTextEditorOption.interface.js'; +export type * from './menuCallbackArgs.interface.js'; +export type * from './menuCommandItem.interface.js'; +export type * from './menuCommandItemCallbackArgs.interface.js'; +export type * from './menuFromCellCallbackArgs.interface.js'; +export type * from './menuItem.interface.js'; +export type * from './menuOptionItem.interface.js'; +export type * from './menuOptionItemCallbackArgs.interface.js'; +export type * from './metrics.interface.js'; +export type * from './metricTexts.interface.js'; +export type * from './mouseOffsetViewport.interface.js'; +export type * from './multiColumnSort.interface.js'; +export type * from './onEventArgs.interface.js'; +export type * from './onValidationErrorResult.interface.js'; +export type * from './operatorDetail.interface.js'; +export type * from './pagination.interface.js'; +export type * from './paginationChangedArgs.interface.js'; +export type * from './paginationCursorChangedArgs.interface.js'; +export type * from './pagingInfo.interface.js'; +export type * from './resizeByContentOption.interface.js'; +export type * from './resizer.interface.js'; +export type * from './resizerOption.interface.js'; +export type * from './rowBasedEditOption.interface.js'; +export type * from './rowDetailView.interface.js'; +export type * from './rowDetailViewOption.interface.js'; +export type * from './rowMoveManager.interface.js'; +export type * from './rowMoveManagerOption.interface.js'; +export type * from './rowSelectionModelOption.interface.js'; +export type * from './searchColumnFilter.interface.js'; +export type * from './selectableOverrideCallback.interface.js'; +export type * from './selectOption.interface.js'; +export type * from './singleColumnSort.interface.js'; +export type * from './slickPlugin.interface.js'; +export type * from './slickRemoteModel.interface.js'; +export type * from './slickResizer.interface.js'; +export type * from './slickRowDetailView.interface.js'; +export type * from './sliderOption.interface.js'; +export type * from './sorter.interface.js'; +export type * from './textExportOption.interface.js'; +export type * from './treeDataOption.interface.js'; +export type * from './treeToggledItem.interface.js'; +export type * from './treeToggleStateChange.interface.js'; +export type * from './vanillaCalendarOption.interface.js'; diff --git a/packages/common/src/interfaces/interactions.interface.ts b/packages/common/src/interfaces/interactions.interface.ts index 623882e76..80b3029e1 100644 --- a/packages/common/src/interfaces/interactions.interface.ts +++ b/packages/common/src/interfaces/interactions.interface.ts @@ -1,7 +1,7 @@ // -- // Slick Interactions -import type { DragPosition } from './drag.interface'; +import type { DragPosition } from './drag.interface.js'; export interface InteractionBase { destroy: () => void; diff --git a/packages/common/src/interfaces/itemMetadata.interface.ts b/packages/common/src/interfaces/itemMetadata.interface.ts index 207b04c40..4b0140901 100644 --- a/packages/common/src/interfaces/itemMetadata.interface.ts +++ b/packages/common/src/interfaces/itemMetadata.interface.ts @@ -1,4 +1,4 @@ -import type { Column, Formatter, GroupTotalsFormatter } from './index'; +import type { Column, Formatter, GroupTotalsFormatter } from './index.js'; /** * Provides a powerful way to specify additional informations of data item that can be used customize the grid appearance diff --git a/packages/common/src/interfaces/menuCallbackArgs.interface.ts b/packages/common/src/interfaces/menuCallbackArgs.interface.ts index 0851b714e..50e6e07bf 100644 --- a/packages/common/src/interfaces/menuCallbackArgs.interface.ts +++ b/packages/common/src/interfaces/menuCallbackArgs.interface.ts @@ -1,5 +1,5 @@ -import type { Column } from './index'; -import type { SlickGrid } from '../core/index'; +import type { Column } from './index.js'; +import type { SlickGrid } from '../core/index.js'; export interface MenuCallbackArgs { /** Cell or column index */ diff --git a/packages/common/src/interfaces/menuCommandItem.interface.ts b/packages/common/src/interfaces/menuCommandItem.interface.ts index 0d1f42e44..7914a3749 100644 --- a/packages/common/src/interfaces/menuCommandItem.interface.ts +++ b/packages/common/src/interfaces/menuCommandItem.interface.ts @@ -1,4 +1,4 @@ -import type { MenuCallbackArgs, MenuCommandItemCallbackArgs, MenuItem } from './index'; +import type { MenuCallbackArgs, MenuCommandItemCallbackArgs, MenuItem } from './index.js'; export interface MenuCommandItem extends MenuItem { /** A command identifier to be passed to the onCommand event callback handler (when using "commandItems"). */ diff --git a/packages/common/src/interfaces/menuCommandItemCallbackArgs.interface.ts b/packages/common/src/interfaces/menuCommandItemCallbackArgs.interface.ts index 676b7e333..cbd9df80a 100644 --- a/packages/common/src/interfaces/menuCommandItemCallbackArgs.interface.ts +++ b/packages/common/src/interfaces/menuCommandItemCallbackArgs.interface.ts @@ -1,5 +1,5 @@ -import type { MenuCallbackArgs } from './menuCallbackArgs.interface'; -import type { MenuCommandItem } from './menuCommandItem.interface'; +import type { MenuCallbackArgs } from './menuCallbackArgs.interface.js'; +import type { MenuCommandItem } from './menuCommandItem.interface.js'; export interface MenuCommandItemCallbackArgs extends MenuCallbackArgs { /** A command identifier returned by the onCommand (or action) event callback handler. */ diff --git a/packages/common/src/interfaces/menuFromCellCallbackArgs.interface.ts b/packages/common/src/interfaces/menuFromCellCallbackArgs.interface.ts index d9cfae056..e728dd181 100644 --- a/packages/common/src/interfaces/menuFromCellCallbackArgs.interface.ts +++ b/packages/common/src/interfaces/menuFromCellCallbackArgs.interface.ts @@ -1,5 +1,5 @@ -import type { Column } from './index'; -import type { SlickGrid } from '../core/index'; +import type { Column } from './index.js'; +import type { SlickGrid } from '../core/index.js'; export interface MenuFromCellCallbackArgs { /** Grid cell/column index */ diff --git a/packages/common/src/interfaces/menuItem.interface.ts b/packages/common/src/interfaces/menuItem.interface.ts index 04ada4074..7c35ccc4e 100644 --- a/packages/common/src/interfaces/menuItem.interface.ts +++ b/packages/common/src/interfaces/menuItem.interface.ts @@ -1,4 +1,4 @@ -import type { MenuCallbackArgs } from './menuCallbackArgs.interface'; +import type { MenuCallbackArgs } from './menuCallbackArgs.interface.js'; export interface MenuItem { /** A CSS class to be added to the menu item container. */ diff --git a/packages/common/src/interfaces/menuOptionItem.interface.ts b/packages/common/src/interfaces/menuOptionItem.interface.ts index 9b7c23d4d..eb8abc058 100644 --- a/packages/common/src/interfaces/menuOptionItem.interface.ts +++ b/packages/common/src/interfaces/menuOptionItem.interface.ts @@ -1,5 +1,5 @@ -import type { MenuItem } from './menuItem.interface'; -import type { MenuOptionItemCallbackArgs } from './menuOptionItemCallbackArgs.interface'; +import type { MenuItem } from './menuItem.interface.js'; +import type { MenuOptionItemCallbackArgs } from './menuOptionItemCallbackArgs.interface.js'; export interface MenuOptionItem extends MenuItem { /** An option returned by the onOptionSelected (or action) event callback handler. */ diff --git a/packages/common/src/interfaces/menuOptionItemCallbackArgs.interface.ts b/packages/common/src/interfaces/menuOptionItemCallbackArgs.interface.ts index 356357e85..5bc9013c7 100644 --- a/packages/common/src/interfaces/menuOptionItemCallbackArgs.interface.ts +++ b/packages/common/src/interfaces/menuOptionItemCallbackArgs.interface.ts @@ -1,5 +1,5 @@ -import type { MenuOptionItem } from './menuOptionItem.interface'; -import type { MenuCallbackArgs } from './menuCallbackArgs.interface'; +import type { MenuOptionItem } from './menuOptionItem.interface.js'; +import type { MenuCallbackArgs } from './menuCallbackArgs.interface.js'; export interface MenuOptionItemCallbackArgs extends MenuCallbackArgs { /** A command identifier to be passed to the onCommand event callback handler (when using "commandItems"). */ diff --git a/packages/common/src/interfaces/mouseOffsetViewport.interface.ts b/packages/common/src/interfaces/mouseOffsetViewport.interface.ts index 9487f5f17..d89c3c97b 100644 --- a/packages/common/src/interfaces/mouseOffsetViewport.interface.ts +++ b/packages/common/src/interfaces/mouseOffsetViewport.interface.ts @@ -1,4 +1,4 @@ -import type { DragPosition } from './drag.interface'; +import type { DragPosition } from './drag.interface.js'; export interface MouseOffsetViewport { e: any, diff --git a/packages/common/src/interfaces/multiColumnSort.interface.ts b/packages/common/src/interfaces/multiColumnSort.interface.ts index ff4d59768..4053ba241 100644 --- a/packages/common/src/interfaces/multiColumnSort.interface.ts +++ b/packages/common/src/interfaces/multiColumnSort.interface.ts @@ -1,5 +1,5 @@ -import type { ColumnSort } from './index'; -import type { SlickGrid } from '../core/index'; +import type { ColumnSort } from './index.js'; +import type { SlickGrid } from '../core/index.js'; export interface MultiColumnSort { /** SlickGrid grid object */ diff --git a/packages/common/src/interfaces/onEventArgs.interface.ts b/packages/common/src/interfaces/onEventArgs.interface.ts index b74208ca5..69c74a8b6 100644 --- a/packages/common/src/interfaces/onEventArgs.interface.ts +++ b/packages/common/src/interfaces/onEventArgs.interface.ts @@ -1,5 +1,5 @@ -import type { Column } from './index'; -import type { SlickDataView, SlickGrid } from '../core/index'; +import type { Column } from './index.js'; +import type { SlickDataView, SlickGrid } from '../core/index.js'; export interface OnEventArgs { row: number; diff --git a/packages/common/src/interfaces/onValidationErrorResult.interface.ts b/packages/common/src/interfaces/onValidationErrorResult.interface.ts index bf785e456..b078b35e0 100644 --- a/packages/common/src/interfaces/onValidationErrorResult.interface.ts +++ b/packages/common/src/interfaces/onValidationErrorResult.interface.ts @@ -1,4 +1,4 @@ -import type { EditorValidationResult } from './editorValidationResult.interface'; +import type { EditorValidationResult } from './editorValidationResult.interface.js'; export interface OnValidationErrorResult { validationResults: EditorValidationResult; diff --git a/packages/common/src/interfaces/operatorDetail.interface.ts b/packages/common/src/interfaces/operatorDetail.interface.ts index 2e9bf9e14..9e36807dc 100644 --- a/packages/common/src/interfaces/operatorDetail.interface.ts +++ b/packages/common/src/interfaces/operatorDetail.interface.ts @@ -1,4 +1,4 @@ -import type { OperatorString } from '../enums/index'; +import type { OperatorString } from '../enums/index.js'; /** Operator detail alternate texts */ export interface OperatorDetailAlt { diff --git a/packages/common/src/interfaces/pagination.interface.ts b/packages/common/src/interfaces/pagination.interface.ts index dee65ea39..f0369557a 100644 --- a/packages/common/src/interfaces/pagination.interface.ts +++ b/packages/common/src/interfaces/pagination.interface.ts @@ -1,8 +1,8 @@ import type { BasePubSubService } from '@slickgrid-universal/event-pub-sub'; -import type { PaginationService } from '../services/pagination.service'; -import type { TranslaterService } from '../services/translater.service'; -import type { SlickGrid } from '../core/slickGrid'; +import type { PaginationService } from '../services/pagination.service.js'; +import type { TranslaterService } from '../services/translater.service.js'; +import type { SlickGrid } from '../core/slickGrid.js'; export interface Pagination { /** Current page number that we are we currently displaying. */ diff --git a/packages/common/src/interfaces/paginationCursorChangedArgs.interface.ts b/packages/common/src/interfaces/paginationCursorChangedArgs.interface.ts index 13c7fdb77..590874b68 100644 --- a/packages/common/src/interfaces/paginationCursorChangedArgs.interface.ts +++ b/packages/common/src/interfaces/paginationCursorChangedArgs.interface.ts @@ -1,4 +1,4 @@ -import type { PaginationChangedArgs } from './paginationChangedArgs.interface'; +import type { PaginationChangedArgs } from './paginationChangedArgs.interface.js'; export interface PaginationCursorChangedArgs extends PaginationChangedArgs { /** Start our page After cursor X */ diff --git a/packages/common/src/interfaces/pagingInfo.interface.ts b/packages/common/src/interfaces/pagingInfo.interface.ts index a80c4db03..d9da932db 100644 --- a/packages/common/src/interfaces/pagingInfo.interface.ts +++ b/packages/common/src/interfaces/pagingInfo.interface.ts @@ -1,4 +1,4 @@ -import type { SlickDataView } from '../core/slickDataview'; +import type { SlickDataView } from '../core/slickDataview.js'; export interface PagingInfo { /** Page size number */ diff --git a/packages/common/src/interfaces/resizer.interface.ts b/packages/common/src/interfaces/resizer.interface.ts index 75b1d89ce..4fa6b4e3f 100644 --- a/packages/common/src/interfaces/resizer.interface.ts +++ b/packages/common/src/interfaces/resizer.interface.ts @@ -1,5 +1,5 @@ -import type { GridSize, ResizerOption, SlickResizer } from './index'; -import type { SlickEventData, SlickGrid } from '../core/index'; +import type { GridSize, ResizerOption, SlickResizer } from './index.js'; +import type { SlickEventData, SlickGrid } from '../core/index.js'; export interface Resizer extends ResizerOption { // -- diff --git a/packages/common/src/interfaces/rowBasedEditOption.interface.ts b/packages/common/src/interfaces/rowBasedEditOption.interface.ts index 060eace5e..591540982 100644 --- a/packages/common/src/interfaces/rowBasedEditOption.interface.ts +++ b/packages/common/src/interfaces/rowBasedEditOption.interface.ts @@ -1,6 +1,6 @@ -import type { SlickRowBasedEdit } from '../extensions'; -import type { Column } from './column.interface'; -import type { OnEventArgs } from './onEventArgs.interface'; +import type { Column } from './column.interface.js'; +import type { OnEventArgs } from './onEventArgs.interface.js'; +import type { SlickRowBasedEdit } from '../extensions/slickRowBasedEdit.js'; export interface RowBasedEditOptions { /** the display name of the added actions column */ diff --git a/packages/common/src/interfaces/rowDetailView.interface.ts b/packages/common/src/interfaces/rowDetailView.interface.ts index 2860af77a..4d85c170d 100644 --- a/packages/common/src/interfaces/rowDetailView.interface.ts +++ b/packages/common/src/interfaces/rowDetailView.interface.ts @@ -1,5 +1,5 @@ -import type { SlickEventData, SlickGrid } from '../core/index'; -import type { RowDetailViewOption, SlickRowDetailView } from './index'; +import type { SlickEventData, SlickGrid } from '../core/index.js'; +import type { RowDetailViewOption, SlickRowDetailView } from './index.js'; export interface RowDetailView extends RowDetailViewOption { // -- diff --git a/packages/common/src/interfaces/rowDetailViewOption.interface.ts b/packages/common/src/interfaces/rowDetailViewOption.interface.ts index 27f5cb59e..1c595c73c 100644 --- a/packages/common/src/interfaces/rowDetailViewOption.interface.ts +++ b/packages/common/src/interfaces/rowDetailViewOption.interface.ts @@ -1,5 +1,5 @@ -import type { UsabilityOverrideFn } from '../index'; -import type { Observable, Subject } from '../services/rxjsFacade'; +import type { UsabilityOverrideFn } from '../index.js'; +import type { Observable, Subject } from '../services/rxjsFacade.js'; export interface RowDetailViewOption { /** Defaults to True, do we always render/reRender the column */ diff --git a/packages/common/src/interfaces/rowMoveManager.interface.ts b/packages/common/src/interfaces/rowMoveManager.interface.ts index ce610c7f6..621f0b302 100644 --- a/packages/common/src/interfaces/rowMoveManager.interface.ts +++ b/packages/common/src/interfaces/rowMoveManager.interface.ts @@ -1,6 +1,6 @@ -import type { RowMoveManagerOption } from './index'; -import type { SlickRowMoveManager } from '../extensions/slickRowMoveManager'; -import type { SlickGrid } from '../core/index'; +import type { RowMoveManagerOption } from './index.js'; +import type { SlickRowMoveManager } from '../extensions/slickRowMoveManager.js'; +import type { SlickGrid } from '../core/index.js'; export interface RowMoveManager extends RowMoveManagerOption { // diff --git a/packages/common/src/interfaces/rowMoveManagerOption.interface.ts b/packages/common/src/interfaces/rowMoveManagerOption.interface.ts index b2a1dbe88..540a4723a 100644 --- a/packages/common/src/interfaces/rowMoveManagerOption.interface.ts +++ b/packages/common/src/interfaces/rowMoveManagerOption.interface.ts @@ -1,5 +1,5 @@ -import type { UsabilityOverrideFn } from '../enums/usabilityOverrideFn.type'; -import type { SlickCellRangeSelector } from '../extensions/slickCellRangeSelector'; +import type { UsabilityOverrideFn } from '../enums/usabilityOverrideFn.type.js'; +import type { SlickCellRangeSelector } from '../extensions/slickCellRangeSelector.js'; export interface RowMoveManagerOption { /** diff --git a/packages/common/src/interfaces/rowSelectionModelOption.interface.ts b/packages/common/src/interfaces/rowSelectionModelOption.interface.ts index 5f90ba719..78fd50a40 100644 --- a/packages/common/src/interfaces/rowSelectionModelOption.interface.ts +++ b/packages/common/src/interfaces/rowSelectionModelOption.interface.ts @@ -1,4 +1,4 @@ -import type { SlickCellRangeSelector } from '../extensions/slickCellRangeSelector'; +import type { SlickCellRangeSelector } from '../extensions/slickCellRangeSelector.js'; export type RowSelectionModelOption = { /** Defaults to True, should we auto-scroll when dragging a row */ diff --git a/packages/common/src/interfaces/searchColumnFilter.interface.ts b/packages/common/src/interfaces/searchColumnFilter.interface.ts index 4041f5b1e..a7d7e82dd 100644 --- a/packages/common/src/interfaces/searchColumnFilter.interface.ts +++ b/packages/common/src/interfaces/searchColumnFilter.interface.ts @@ -1,6 +1,6 @@ -import type { FieldType, OperatorString, OperatorType, } from '../enums/index'; -import type { Column, } from './index'; -import type { SearchTerm } from '../enums/searchTerm.type'; +import type { FieldType, OperatorString, OperatorType, } from '../enums/index.js'; +import type { Column, } from './index.js'; +import type { SearchTerm } from '../enums/searchTerm.type.js'; export interface SearchColumnFilter { /** Column definition Id */ diff --git a/packages/common/src/interfaces/selectableOverrideCallback.interface.ts b/packages/common/src/interfaces/selectableOverrideCallback.interface.ts index 04cf5eb99..350966449 100644 --- a/packages/common/src/interfaces/selectableOverrideCallback.interface.ts +++ b/packages/common/src/interfaces/selectableOverrideCallback.interface.ts @@ -1,4 +1,4 @@ -import type { SlickGrid } from '../core/index'; +import type { SlickGrid } from '../core/index.js'; /** Method that user can pass to override the default behavior or making every row a selectable row. */ export type SelectableOverrideCallback = ( diff --git a/packages/common/src/interfaces/singleColumnSort.interface.ts b/packages/common/src/interfaces/singleColumnSort.interface.ts index 51f283b12..07aa92bba 100644 --- a/packages/common/src/interfaces/singleColumnSort.interface.ts +++ b/packages/common/src/interfaces/singleColumnSort.interface.ts @@ -1,5 +1,5 @@ -import type { ColumnSort } from './index'; -import type { SlickGrid } from '../core/index'; +import type { ColumnSort } from './index.js'; +import type { SlickGrid } from '../core/index.js'; export interface SingleColumnSort extends ColumnSort { /** SlickGrid grid object */ diff --git a/packages/common/src/interfaces/slickPlugin.interface.ts b/packages/common/src/interfaces/slickPlugin.interface.ts index 777814a72..1a5531940 100644 --- a/packages/common/src/interfaces/slickPlugin.interface.ts +++ b/packages/common/src/interfaces/slickPlugin.interface.ts @@ -1,4 +1,4 @@ -import type { SlickGrid } from '../core/index'; +import type { SlickGrid } from '../core/index.js'; export interface SlickPlugin { pluginName: string; diff --git a/packages/common/src/interfaces/slickRemoteModel.interface.ts b/packages/common/src/interfaces/slickRemoteModel.interface.ts index 7d55e8070..88d03f1da 100644 --- a/packages/common/src/interfaces/slickRemoteModel.interface.ts +++ b/packages/common/src/interfaces/slickRemoteModel.interface.ts @@ -1,5 +1,5 @@ -import type { Column } from './column.interface'; -import type { SlickEvent } from '../core/index'; +import type { Column } from './column.interface.js'; +import type { SlickEvent } from '../core/index.js'; /** * A sample AJAX remote data store implementation. diff --git a/packages/common/src/interfaces/slickResizer.interface.ts b/packages/common/src/interfaces/slickResizer.interface.ts index 3c88e68f1..1e9d85ac7 100644 --- a/packages/common/src/interfaces/slickResizer.interface.ts +++ b/packages/common/src/interfaces/slickResizer.interface.ts @@ -1,5 +1,5 @@ -import type { GridSize, ResizerOption } from './index'; -import type { SlickEvent, SlickEventData, SlickGrid } from '../core/index'; +import type { GridSize, ResizerOption } from './index.js'; +import type { SlickEvent, SlickEventData, SlickGrid } from '../core/index.js'; /** * A Resizer plugin that can be used to auto-resize a grid and/or resize with fixed dimensions. diff --git a/packages/common/src/interfaces/slickRowDetailView.interface.ts b/packages/common/src/interfaces/slickRowDetailView.interface.ts index 9b79bf7d1..ee41dc274 100644 --- a/packages/common/src/interfaces/slickRowDetailView.interface.ts +++ b/packages/common/src/interfaces/slickRowDetailView.interface.ts @@ -8,10 +8,10 @@ import type { OnRowDetailAsyncResponseArgs, OnRowOutOfViewportRangeArgs, RowDetailViewOption, -} from './index'; -import type { ContainerService } from '../services/container.service'; -import type { UsabilityOverrideFn } from '../enums/index'; -import type { SlickEvent, SlickGrid } from '../core/index'; +} from './index.js'; +import type { ContainerService } from '../services/container.service.js'; +import type { UsabilityOverrideFn } from '../enums/index.js'; +import type { SlickEvent, SlickGrid } from '../core/index.js'; /** A plugin to add row detail panel. */ export interface SlickRowDetailView { diff --git a/packages/common/src/interfaces/sorter.interface.ts b/packages/common/src/interfaces/sorter.interface.ts index fb0badd36..1038ac9dc 100644 --- a/packages/common/src/interfaces/sorter.interface.ts +++ b/packages/common/src/interfaces/sorter.interface.ts @@ -1,5 +1,5 @@ -import type { Column } from './column.interface'; -import type { GridOption } from './gridOption.interface'; -import type { SortDirectionNumber } from '../enums/sortDirectionNumber.enum'; +import type { Column } from './column.interface.js'; +import type { GridOption } from './gridOption.interface.js'; +import type { SortDirectionNumber } from '../enums/sortDirectionNumber.enum.js'; export type SortComparer = (value1: any, value2: any, sortDirection?: SortDirectionNumber, sortColumn?: Column, gridOptions?: GridOption) => number; diff --git a/packages/common/src/interfaces/textExportOption.interface.ts b/packages/common/src/interfaces/textExportOption.interface.ts index 5002bbbb1..15fc4f9ae 100644 --- a/packages/common/src/interfaces/textExportOption.interface.ts +++ b/packages/common/src/interfaces/textExportOption.interface.ts @@ -1,5 +1,5 @@ -import type { DelimiterType } from '../enums/delimiterType.enum'; -import type { FileType } from '../enums/fileType.enum'; +import type { DelimiterType } from '../enums/delimiterType.enum.js'; +import type { FileType } from '../enums/fileType.enum.js'; export interface TextExportOption { /** export delimiter, can be (comma, tab, ... or even custom string). */ diff --git a/packages/common/src/interfaces/treeDataOption.interface.ts b/packages/common/src/interfaces/treeDataOption.interface.ts index c22693350..2ba3ac84b 100644 --- a/packages/common/src/interfaces/treeDataOption.interface.ts +++ b/packages/common/src/interfaces/treeDataOption.interface.ts @@ -1,7 +1,7 @@ // import { Aggregator } from './aggregator.interface'; -import type { SortDirection, SortDirectionString } from '../enums/index'; -import type { Aggregator } from './aggregator.interface'; -import type { Formatter } from './formatter.interface'; +import type { SortDirection, SortDirectionString } from '../enums/index.js'; +import type { Aggregator } from './aggregator.interface.js'; +import type { Formatter } from './formatter.interface.js'; export interface TreeDataOption extends TreeDataPropNames { /** Tree Data Aggregators array that can be provided to aggregate the tree (avg, sum, ...) */ diff --git a/packages/common/src/interfaces/treeToggleStateChange.interface.ts b/packages/common/src/interfaces/treeToggleStateChange.interface.ts index 82cc87cdf..a5a397071 100644 --- a/packages/common/src/interfaces/treeToggleStateChange.interface.ts +++ b/packages/common/src/interfaces/treeToggleStateChange.interface.ts @@ -1,5 +1,5 @@ -import type { ToggleStateChangeType, ToggleStateChangeTypeString } from '../enums/toggleStateChangeType'; -import type { TreeToggledItem } from './treeToggledItem.interface'; +import type { ToggleStateChangeType, ToggleStateChangeTypeString } from '../enums/toggleStateChangeType.js'; +import type { TreeToggledItem } from './treeToggledItem.interface.js'; export interface TreeToggleStateChange { /** Optional, what was the item Id that triggered the toggle? Only available when a parent item got toggled within the grid */ diff --git a/packages/common/src/services/__tests__/backend-utilities.spec.ts b/packages/common/src/services/__tests__/backend-utilities.spec.ts index 618884ca0..9182c7b50 100644 --- a/packages/common/src/services/__tests__/backend-utilities.spec.ts +++ b/packages/common/src/services/__tests__/backend-utilities.spec.ts @@ -1,9 +1,9 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'; import { of, Subject, throwError } from 'rxjs'; -import type { BackendServiceApi, GridOption } from '../../interfaces/index'; -import { BackendUtilityService } from '../backendUtility.service'; -import { RxJsResourceStub } from '../../../../../test/rxjsResourceStub'; +import type { BackendServiceApi, GridOption } from '../../interfaces/index.js'; +import { BackendUtilityService } from '../backendUtility.service.js'; +import { RxJsResourceStub } from '../../../../../test/rxjsResourceStub.js'; vi.useFakeTimers(); diff --git a/packages/common/src/services/__tests__/collection.service.spec.ts b/packages/common/src/services/__tests__/collection.service.spec.ts index 8701361eb..6bd201442 100644 --- a/packages/common/src/services/__tests__/collection.service.spec.ts +++ b/packages/common/src/services/__tests__/collection.service.spec.ts @@ -1,11 +1,11 @@ import { parse } from '@formkit/tempo'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { CollectionService } from '../collection.service'; -import { FieldType, FilterMultiplePassType, OperatorType, } from '../../enums/index'; -import type { CollectionFilterBy, CollectionSortBy, Column, GridOption, } from '../../interfaces/index'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import { type SlickGrid } from '../../core'; +import { CollectionService } from '../collection.service.js'; +import { FieldType, FilterMultiplePassType, OperatorType, } from '../../enums/index.js'; +import type { CollectionFilterBy, CollectionSortBy, Column, GridOption, } from '../../interfaces/index.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import { type SlickGrid } from '../../core/slickGrid.js'; const gridOptionMock: GridOption = { preParseDateColumns: true diff --git a/packages/common/src/services/__tests__/container.service.spec.ts b/packages/common/src/services/__tests__/container.service.spec.ts index e5467fed6..388c47248 100644 --- a/packages/common/src/services/__tests__/container.service.spec.ts +++ b/packages/common/src/services/__tests__/container.service.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; -import { ContainerService } from '../container.service'; +import { ContainerService } from '../container.service.js'; describe('Container Service', () => { it('should display a not implemented when calling "get" method', () => { diff --git a/packages/common/src/services/__tests__/dataWrapperService.spec.ts b/packages/common/src/services/__tests__/dataWrapperService.spec.ts index 3a9063c51..6764fd879 100644 --- a/packages/common/src/services/__tests__/dataWrapperService.spec.ts +++ b/packages/common/src/services/__tests__/dataWrapperService.spec.ts @@ -1,7 +1,8 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'; -import type { SlickDataView, SlickGrid } from '../../core'; -import { DataWrapperService } from '../dataWrapperService'; +import type { SlickDataView } from '../../core/slickDataview.js'; +import type { SlickGrid } from '../../core/slickGrid.js'; +import { DataWrapperService } from '../dataWrapperService.js'; const gridStub = { destroy: vi.fn(), diff --git a/packages/common/src/services/__tests__/dateUtils.spec.ts b/packages/common/src/services/__tests__/dateUtils.spec.ts index 14379d0aa..625bd4532 100644 --- a/packages/common/src/services/__tests__/dateUtils.spec.ts +++ b/packages/common/src/services/__tests__/dateUtils.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { FieldType } from '../../enums/index'; -import { mapTempoDateFormatWithFieldType, parseUtcDate } from '../dateUtils'; +import { FieldType } from '../../enums/index.js'; +import { mapTempoDateFormatWithFieldType, parseUtcDate } from '../dateUtils.js'; describe('Service/Utilies', () => { describe('mapTempoDateFormatWithFieldType method', () => { diff --git a/packages/common/src/services/__tests__/excelExport.service.spec.ts b/packages/common/src/services/__tests__/excelExport.service.spec.ts index 5eaafb13e..f786a601a 100644 --- a/packages/common/src/services/__tests__/excelExport.service.spec.ts +++ b/packages/common/src/services/__tests__/excelExport.service.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it } from 'vitest'; -import type { ContainerService } from '../container.service'; -import { ExcelExportService } from '../excelExport.service'; -import type { SlickGrid } from '../../core/index'; +import type { ContainerService } from '../container.service.js'; +import { ExcelExportService } from '../excelExport.service.js'; +import type { SlickGrid } from '../../core/index.js'; describe('ExcelExport Service', () => { it('should display a not implemented when calling "init" method', () => { diff --git a/packages/common/src/services/__tests__/export.service.spec.ts b/packages/common/src/services/__tests__/export.service.spec.ts index a94060f7b..606b68409 100644 --- a/packages/common/src/services/__tests__/export.service.spec.ts +++ b/packages/common/src/services/__tests__/export.service.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; -import { TextExportService } from '../textExport.service'; +import { TextExportService } from '../textExport.service.js'; describe('Export Service', () => { it('should display a not implemented when calling "init" method', () => { diff --git a/packages/common/src/services/__tests__/extension.service.spec.ts b/packages/common/src/services/__tests__/extension.service.spec.ts index d1052e5ea..bb933bb07 100644 --- a/packages/common/src/services/__tests__/extension.service.spec.ts +++ b/packages/common/src/services/__tests__/extension.service.spec.ts @@ -1,12 +1,12 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import type { BasePubSubService } from '@slickgrid-universal/event-pub-sub'; -import { ExtensionName } from '../../enums/index'; -import type { Column, ExtensionModel, GridOption } from '../../interfaces/index'; -import { ExtensionUtility, SlickRowBasedEdit } from '../../extensions'; -import { ExtensionService, type FilterService, type GridService, SharedService, type SortService, type TreeDataService } from '../index'; -import { SlickEvent, type SlickGrid } from '../../core/index'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; +import { ExtensionName } from '../../enums/index.js'; +import type { Column, ExtensionModel, GridOption } from '../../interfaces/index.js'; +import { ExtensionUtility, SlickRowBasedEdit } from '../../extensions/index.js'; +import { ExtensionService, type FilterService, type GridService, SharedService, type SortService, type TreeDataService } from '../index.js'; +import { SlickEvent, type SlickGrid } from '../../core/index.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; import { SlickAutoTooltip, SlickCellExcelCopyManager, @@ -21,7 +21,7 @@ import { SlickHeaderMenu, type SlickRowMoveManager, SlickRowSelectionModel, -} from '../../extensions/index'; +} from '../../extensions/index.js'; const GRID_UID = 'slickgrid_12345'; diff --git a/packages/common/src/services/__tests__/filter.service.spec.ts b/packages/common/src/services/__tests__/filter.service.spec.ts index 10fb142b1..88c6fc87d 100644 --- a/packages/common/src/services/__tests__/filter.service.spec.ts +++ b/packages/common/src/services/__tests__/filter.service.spec.ts @@ -2,7 +2,7 @@ import { afterEach, beforeEach, describe, expect, it, type Mock, vi } from 'vite import { of, throwError } from 'rxjs'; import type { BasePubSubService } from '@slickgrid-universal/event-pub-sub'; -import { FieldType } from '../../enums/index'; +import { FieldType } from '../../enums/index.js'; import type { BackendService, BackendServiceApi, @@ -13,18 +13,18 @@ import type { GridOption, MenuCommandItem, RowDetailView, -} from '../../interfaces/index'; -import { Filters, InputFilter, SingleSelectFilter } from '../../filters'; -import { FilterService } from '../filter.service'; -import { FilterFactory } from '../../filters/filterFactory'; -import { getParsedSearchTermsByFieldType } from '../../filter-conditions'; -import { SlickgridConfig } from '../../slickgrid-config'; -import { SharedService } from '../shared.service'; -import { BackendUtilityService } from '../backendUtility.service'; -import { CollectionService } from '../collection.service'; -import { type SlickDataView, SlickEvent, SlickEventData, type SlickEventHandler, type SlickGrid } from '../../core/index'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import { RxJsResourceStub } from '../../../../../test/rxjsResourceStub'; +} from '../../interfaces/index.js'; +import { Filters, InputFilter, SingleSelectFilter } from '../../filters/index.js'; +import { FilterService } from '../filter.service.js'; +import { FilterFactory } from '../../filters/filterFactory.js'; +import { getParsedSearchTermsByFieldType } from '../../filter-conditions/index.js'; +import { SlickgridConfig } from '../../slickgrid-config.js'; +import { SharedService } from '../shared.service.js'; +import { BackendUtilityService } from '../backendUtility.service.js'; +import { CollectionService } from '../collection.service.js'; +import { type SlickDataView, SlickEvent, SlickEventData, type SlickEventHandler, type SlickGrid } from '../../core/index.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import { RxJsResourceStub } from '../../../../../test/rxjsResourceStub.js'; vi.useFakeTimers(); diff --git a/packages/common/src/services/__tests__/grid.service.spec.ts b/packages/common/src/services/__tests__/grid.service.spec.ts index a4645f6af..01d0beddd 100644 --- a/packages/common/src/services/__tests__/grid.service.spec.ts +++ b/packages/common/src/services/__tests__/grid.service.spec.ts @@ -1,10 +1,10 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import type { BasePubSubService } from '@slickgrid-universal/event-pub-sub'; -import { type FilterService, GridService, type GridStateService, type PaginationService, SharedService, type SortService, type TreeDataService } from '../index'; -import type { GridOption, CellArgs, Column, OnEventArgs } from '../../interfaces/index'; -import type { SlickRowSelectionModel } from '../../extensions/slickRowSelectionModel'; -import { type SlickDataView, SlickEvent, type SlickGrid } from '../../core/index'; +import { type FilterService, GridService, type GridStateService, type PaginationService, SharedService, type SortService, type TreeDataService } from '../index.js'; +import type { GridOption, CellArgs, Column, OnEventArgs } from '../../interfaces/index.js'; +import type { SlickRowSelectionModel } from '../../extensions/slickRowSelectionModel.js'; +import { type SlickDataView, SlickEvent, type SlickGrid } from '../../core/index.js'; const mockRowSelectionModel = { constructor: vi.fn(), diff --git a/packages/common/src/services/__tests__/gridEvent.service.spec.ts b/packages/common/src/services/__tests__/gridEvent.service.spec.ts index e2db14d20..d8da50aad 100644 --- a/packages/common/src/services/__tests__/gridEvent.service.spec.ts +++ b/packages/common/src/services/__tests__/gridEvent.service.spec.ts @@ -1,8 +1,8 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { GridEventService } from '../gridEvent.service'; -import { type SlickDataView, SlickEvent, SlickEventData, type SlickGrid } from '../../core/index'; +import type { Column } from '../../interfaces/index.js'; +import { GridEventService } from '../gridEvent.service.js'; +import { type SlickDataView, SlickEvent, SlickEventData, type SlickGrid } from '../../core/index.js'; const dataViewStub = { refresh: vi.fn(), diff --git a/packages/common/src/services/__tests__/gridState.service.spec.ts b/packages/common/src/services/__tests__/gridState.service.spec.ts index 2d92e566a..d64f988d5 100644 --- a/packages/common/src/services/__tests__/gridState.service.spec.ts +++ b/packages/common/src/services/__tests__/gridState.service.spec.ts @@ -1,12 +1,12 @@ import { afterEach, beforeEach, describe, expect, it, type Mock, vi } from 'vitest'; import type { BasePubSubService } from '@slickgrid-universal/event-pub-sub'; -import type { ExtensionService } from '../extension.service'; -import type { FilterService } from '../filter.service'; -import { GridStateService } from '../gridState.service'; -import type { SortService } from '../sort.service'; -import { GridStateType, ExtensionName } from '../../enums/index'; -import { type SlickDataView, SlickEvent, SlickEventData, type SlickGrid } from '../../core/index'; +import type { ExtensionService } from '../extension.service.js'; +import type { FilterService } from '../filter.service.js'; +import { GridStateService } from '../gridState.service.js'; +import type { SortService } from '../sort.service.js'; +import { GridStateType, ExtensionName } from '../../enums/index.js'; +import { type SlickDataView, SlickEvent, SlickEventData, type SlickGrid } from '../../core/index.js'; import type { BackendService, CheckboxSelectorOption, @@ -23,11 +23,11 @@ import type { RowDetailView, RowMoveManager, TreeToggleStateChange, -} from '../../interfaces/index'; -import { SharedService } from '../shared.service'; -import type { TreeDataService } from '../treeData.service'; -import type { SlickRowSelectionModel } from '../../extensions/slickRowSelectionModel'; -import type { SlickColumnPicker } from '../../extensions/slickColumnPicker'; +} from '../../interfaces/index.js'; +import { SharedService } from '../shared.service.js'; +import type { TreeDataService } from '../treeData.service.js'; +import type { SlickRowSelectionModel } from '../../extensions/slickRowSelectionModel.js'; +import type { SlickColumnPicker } from '../../extensions/slickColumnPicker.js'; vi.useFakeTimers(); diff --git a/packages/common/src/services/__tests__/headerGrouping.service.spec.ts b/packages/common/src/services/__tests__/headerGrouping.service.spec.ts index 98963753e..0d95cb766 100644 --- a/packages/common/src/services/__tests__/headerGrouping.service.spec.ts +++ b/packages/common/src/services/__tests__/headerGrouping.service.spec.ts @@ -1,9 +1,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { HeaderGroupingService } from '../headerGrouping.service'; -import type { Column, GridOption } from '../../interfaces/index'; -import type { ExtensionUtility } from '../../extensions/extensionUtility'; -import { type SlickDataView, SlickEvent, SlickEventData, type SlickEventHandler, type SlickGrid } from '../../core/index'; +import { HeaderGroupingService } from '../headerGrouping.service.js'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import type { ExtensionUtility } from '../../extensions/extensionUtility.js'; +import { type SlickDataView, SlickEvent, SlickEventData, type SlickEventHandler, type SlickGrid } from '../../core/index.js'; const gridId = 'grid1'; const gridUid = 'slickgrid_124343'; diff --git a/packages/common/src/services/__tests__/observers.spec.ts b/packages/common/src/services/__tests__/observers.spec.ts index 67c120b12..68357c06d 100644 --- a/packages/common/src/services/__tests__/observers.spec.ts +++ b/packages/common/src/services/__tests__/observers.spec.ts @@ -3,7 +3,7 @@ import { describe, expect, it, vi } from 'vitest'; import { collectionObserver, propertyObserver, -} from '../observers'; +} from '../observers.js'; vi.useFakeTimers(); diff --git a/packages/common/src/services/__tests__/pagination.service.spec.ts b/packages/common/src/services/__tests__/pagination.service.spec.ts index 299087fcd..96bfe7aef 100644 --- a/packages/common/src/services/__tests__/pagination.service.spec.ts +++ b/packages/common/src/services/__tests__/pagination.service.spec.ts @@ -1,12 +1,12 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { of, throwError } from 'rxjs'; -import { PaginationService } from './../pagination.service'; -import { SharedService } from '../shared.service'; -import type { BackendUtilityService } from '../backendUtility.service'; -import type { BackendServiceApi, Column, CursorPageInfo, GridOption, Pagination } from '../../interfaces/index'; -import { type SlickDataView, SlickEvent, SlickEventData, type SlickGrid } from '../../core/index'; -import { RxJsResourceStub } from '../../../../../test/rxjsResourceStub'; +import { PaginationService } from './../pagination.service.js'; +import { SharedService } from '../shared.service.js'; +import type { BackendUtilityService } from '../backendUtility.service.js'; +import type { BackendServiceApi, Column, CursorPageInfo, GridOption, Pagination } from '../../interfaces/index.js'; +import { type SlickDataView, SlickEvent, SlickEventData, type SlickGrid } from '../../core/index.js'; +import { RxJsResourceStub } from '../../../../../test/rxjsResourceStub.js'; vi.useFakeTimers(); diff --git a/packages/common/src/services/__tests__/resizer.service.spec.ts b/packages/common/src/services/__tests__/resizer.service.spec.ts index da02af827..f28ce68b5 100644 --- a/packages/common/src/services/__tests__/resizer.service.spec.ts +++ b/packages/common/src/services/__tests__/resizer.service.spec.ts @@ -1,11 +1,11 @@ import { afterEach, beforeEach, describe, expect, it, type Mock, vi } from 'vitest'; import { EventPubSubService } from '@slickgrid-universal/event-pub-sub'; -import { Editors } from '../../editors/index'; -import { FieldType, } from '../../enums/index'; -import type { Column, GridOption, } from '../../interfaces/index'; -import { ResizerService } from '../resizer.service'; -import { SlickEvent, type SlickGrid } from '../../core/index'; +import { Editors } from '../../editors/index.js'; +import { FieldType, } from '../../enums/index.js'; +import type { Column, GridOption, } from '../../interfaces/index.js'; +import { ResizerService } from '../resizer.service.js'; +import { SlickEvent, type SlickGrid } from '../../core/index.js'; const DATAGRID_MIN_HEIGHT = 180; const DATAGRID_MIN_WIDTH = 300; diff --git a/packages/common/src/services/__tests__/rxjsFacade.spec.ts b/packages/common/src/services/__tests__/rxjsFacade.spec.ts index 8625f1900..b5ca2ca8e 100644 --- a/packages/common/src/services/__tests__/rxjsFacade.spec.ts +++ b/packages/common/src/services/__tests__/rxjsFacade.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; -import { Observable, RxJsFacade, Subject, Subscription } from '../rxjsFacade'; +import { Observable, RxJsFacade, Subject, Subscription } from '../rxjsFacade.js'; describe('RxJsFacade Service', () => { it('should throw a not implemented error when calling "EMPTY" getter', () => { diff --git a/packages/common/src/services/__tests__/shared.service.spec.ts b/packages/common/src/services/__tests__/shared.service.spec.ts index 3d7c60e81..fac02822b 100644 --- a/packages/common/src/services/__tests__/shared.service.spec.ts +++ b/packages/common/src/services/__tests__/shared.service.spec.ts @@ -1,9 +1,9 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'; -import { SharedService } from '../shared.service'; -import type { Column, GridOption } from '../../interfaces/index'; -import { ExcelExportService } from '../excelExport.service'; -import type { SlickGrid } from '../../core'; +import { SharedService } from '../shared.service.js'; +import type { Column, GridOption } from '../../interfaces/index.js'; +import { ExcelExportService } from '../excelExport.service.js'; +import type { SlickGrid } from '../../core/slickGrid.js'; const gridStub = { autosizeColumns: vi.fn(), diff --git a/packages/common/src/services/__tests__/sort.service.spec.ts b/packages/common/src/services/__tests__/sort.service.spec.ts index 863f9a3ca..134598d7f 100644 --- a/packages/common/src/services/__tests__/sort.service.spec.ts +++ b/packages/common/src/services/__tests__/sort.service.spec.ts @@ -2,7 +2,7 @@ import { afterEach, beforeEach, describe, expect, it, type Mock, vi } from 'vite import { EventPubSubService } from '@slickgrid-universal/event-pub-sub'; import { of, throwError } from 'rxjs'; -import { EmitterType, FieldType, } from '../../enums/index'; +import { EmitterType, FieldType, } from '../../enums/index.js'; import type { BackendService, Column, @@ -13,14 +13,14 @@ import type { MenuCommandItem, SingleColumnSort, BackendServiceApi, -} from '../../interfaces/index'; -import type { CollectionService } from '../collection.service'; -import { SortComparers } from '../../sortComparers'; -import { SortService } from '../sort.service'; -import { BackendUtilityService } from '../backendUtility.service'; -import { SharedService } from '../shared.service'; -import { type SlickDataView, SlickEvent, SlickEventData, type SlickEventHandler, type SlickGrid } from '../../core/index'; -import { RxJsResourceStub } from '../../../../../test/rxjsResourceStub'; +} from '../../interfaces/index.js'; +import type { CollectionService } from '../collection.service.js'; +import { SortComparers } from '../../sortComparers/index.js'; +import { SortService } from '../sort.service.js'; +import { BackendUtilityService } from '../backendUtility.service.js'; +import { SharedService } from '../shared.service.js'; +import { type SlickDataView, SlickEvent, SlickEventData, type SlickEventHandler, type SlickGrid } from '../../core/index.js'; +import { RxJsResourceStub } from '../../../../../test/rxjsResourceStub.js'; vi.useFakeTimers(); diff --git a/packages/common/src/services/__tests__/translater.service.spec.ts b/packages/common/src/services/__tests__/translater.service.spec.ts index 52989dd93..557af6dd8 100644 --- a/packages/common/src/services/__tests__/translater.service.spec.ts +++ b/packages/common/src/services/__tests__/translater.service.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; import type { BasePubSubService } from '@slickgrid-universal/event-pub-sub'; -import { TranslaterService } from '../translater.service'; +import { TranslaterService } from '../translater.service.js'; describe('Translater Service', () => { it('should display a not implemented when calling "addPubSubMessaging" method', () => { diff --git a/packages/common/src/services/__tests__/treeData.service.spec.ts b/packages/common/src/services/__tests__/treeData.service.spec.ts index cfb5c91bb..9307e60dc 100644 --- a/packages/common/src/services/__tests__/treeData.service.spec.ts +++ b/packages/common/src/services/__tests__/treeData.service.spec.ts @@ -1,13 +1,13 @@ import { afterEach, beforeEach, describe, expect, it, type Mock, vi } from 'vitest'; import { type BasePubSubService } from '@slickgrid-universal/event-pub-sub'; -import type { Column, GridOption, BackendService } from '../../interfaces/index'; -import { SumAggregator } from '../../aggregators'; -import { SharedService } from '../shared.service'; -import type { SortService } from '../sort.service'; -import { TreeDataService } from '../treeData.service'; -import { type SlickDataView, SlickEvent, SlickEventData, type SlickEventHandler, type SlickGrid } from '../../core/index'; -import { unflattenParentChildArrayToTree } from '../utilities'; +import type { Column, GridOption, BackendService } from '../../interfaces/index.js'; +import { SumAggregator } from '../../aggregators/sumAggregator.js'; +import { SharedService } from '../shared.service.js'; +import type { SortService } from '../sort.service.js'; +import { TreeDataService } from '../treeData.service.js'; +import { type SlickDataView, SlickEvent, SlickEventData, type SlickEventHandler, type SlickGrid } from '../../core/index.js'; +import { unflattenParentChildArrayToTree } from '../utilities.js'; // mocked modules vi.mock('../utilities', async (importOriginal) => ({ diff --git a/packages/common/src/services/__tests__/utilities.spec.ts b/packages/common/src/services/__tests__/utilities.spec.ts index f5639777a..8150cd4a0 100644 --- a/packages/common/src/services/__tests__/utilities.spec.ts +++ b/packages/common/src/services/__tests__/utilities.spec.ts @@ -1,10 +1,10 @@ -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import type { EventSubscription } from '@slickgrid-universal/event-pub-sub'; +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { of } from 'rxjs'; -import { FieldType, OperatorType } from '../../enums/index'; -import type { Column, GridOption, TreeDataPropNames } from '../../interfaces/index'; -import { RxJsResourceStub } from '../../../../../test/rxjsResourceStub'; +import { FieldType, OperatorType } from '../../enums/index.js'; +import type { Column, GridOption, TreeDataPropNames } from '../../interfaces/index.js'; +import { RxJsResourceStub } from '../../../../../test/rxjsResourceStub.js'; import { addTreeLevelByMutation, addTreeLevelAndAggregatorsByMutation, @@ -27,9 +27,9 @@ import { thousandSeparatorFormatted, unsubscribeAll, getTreeDataOptionPropName, -} from '../utilities'; -import { SumAggregator } from '../../aggregators'; -import { Constants } from '../../constants'; +} from '../utilities.js'; +import { SumAggregator } from '../../aggregators/sumAggregator.js'; +import { Constants } from '../../constants.js'; describe('Service/Utilies', () => { describe('unflattenParentChildArrayToTree method', () => { diff --git a/packages/common/src/services/backendUtility.service.ts b/packages/common/src/services/backendUtility.service.ts index 8e6e25561..2e9d9ce89 100644 --- a/packages/common/src/services/backendUtility.service.ts +++ b/packages/common/src/services/backendUtility.service.ts @@ -1,6 +1,6 @@ -import { EmitterType } from '../enums/emitterType.enum'; -import type { BackendServiceApi, GridOption } from '../interfaces/index'; -import type { Observable, RxJsFacade, Subject } from './rxjsFacade'; +import { EmitterType } from '../enums/emitterType.enum.js'; +import type { BackendServiceApi, GridOption } from '../interfaces/index.js'; +import type { Observable, RxJsFacade, Subject } from './rxjsFacade.js'; export interface BackendCallbacks { emitActionChangedCallback?: (type: EmitterType) => void; diff --git a/packages/common/src/services/collection.service.ts b/packages/common/src/services/collection.service.ts index 43d1bcd2d..ae783297e 100644 --- a/packages/common/src/services/collection.service.ts +++ b/packages/common/src/services/collection.service.ts @@ -6,13 +6,13 @@ import { FieldType, OperatorType, SortDirectionNumber, -} from './../enums/index'; -import type { CollectionFilterBy, CollectionSortBy, Column } from './../interfaces/index'; -import { mapTempoDateFormatWithFieldType, tryParseDate } from './dateUtils'; -import { sortByFieldType } from '../sortComparers/sortUtilities'; -import type { TranslaterService } from './translater.service'; -import type { SlickGrid } from '../core/slickGrid'; -import { isColumnDateType } from './utilities'; +} from './../enums/index.js'; +import type { CollectionFilterBy, CollectionSortBy, Column } from './../interfaces/index.js'; +import { mapTempoDateFormatWithFieldType, tryParseDate } from './dateUtils.js'; +import { sortByFieldType } from '../sortComparers/sortUtilities.js'; +import type { TranslaterService } from './translater.service.js'; +import type { SlickGrid } from '../core/slickGrid.js'; +import { isColumnDateType } from './utilities.js'; type ParsingDateDetails = { columnId: number | string; diff --git a/packages/common/src/services/dataWrapperService.ts b/packages/common/src/services/dataWrapperService.ts index e0b3d7fef..e3f50d83b 100644 --- a/packages/common/src/services/dataWrapperService.ts +++ b/packages/common/src/services/dataWrapperService.ts @@ -1,4 +1,4 @@ -import type { SlickDataView, SlickGrid } from '../core'; +import type { SlickDataView, SlickGrid } from '../core/index.js'; export class DataWrapperService { protected _dataView?: SlickDataView; diff --git a/packages/common/src/services/dateUtils.ts b/packages/common/src/services/dateUtils.ts index 009404896..64dedb1ff 100644 --- a/packages/common/src/services/dateUtils.ts +++ b/packages/common/src/services/dateUtils.ts @@ -1,6 +1,6 @@ import { format, offset, parse, removeOffset, tzDate } from '@formkit/tempo'; -import { FieldType } from '../enums/index'; +import { FieldType } from '../enums/index.js'; /** * From a Date FieldType, return it's equivalent TempoJS format, diff --git a/packages/common/src/services/domUtilities.ts b/packages/common/src/services/domUtilities.ts index b61659f77..1fd86c513 100644 --- a/packages/common/src/services/domUtilities.ts +++ b/packages/common/src/services/domUtilities.ts @@ -1,10 +1,10 @@ import { createDomElement } from '@slickgrid-universal/utils'; import type { OptionRowData } from 'multiple-select-vanilla'; -import type { SearchTerm } from '../enums/index'; -import type { Column, SelectOption } from '../interfaces/index'; -import type { SlickGrid } from '../core/index'; -import type { TranslaterService } from './translater.service'; +import type { SearchTerm } from '../enums/index.js'; +import type { Column, SelectOption } from '../interfaces/index.js'; +import type { SlickGrid } from '../core/index.js'; +import type { TranslaterService } from './translater.service.js'; /** * Create the HTML DOM Element for a Select Editor or Filter, this is specific to these 2 types only and the unit tests are directly under them diff --git a/packages/common/src/services/excelExport.service.ts b/packages/common/src/services/excelExport.service.ts index 033dbbfe4..77ad82dea 100644 --- a/packages/common/src/services/excelExport.service.ts +++ b/packages/common/src/services/excelExport.service.ts @@ -1,6 +1,6 @@ -import type { ExcelExportOption, ExternalResource } from '../interfaces/index'; -import type { ContainerService } from '../services/container.service'; -import type { SlickGrid } from '../core/index'; +import type { ExcelExportOption, ExternalResource } from '../interfaces/index.js'; +import type { ContainerService } from '../services/container.service.js'; +import type { SlickGrid } from '../core/index.js'; export abstract class ExcelExportService implements ExternalResource { /** ExcelExportService class name which is use to find service instance in the external registered services */ diff --git a/packages/common/src/services/extension.service.ts b/packages/common/src/services/extension.service.ts index b4581ec68..2c35c369a 100644 --- a/packages/common/src/services/extension.service.ts +++ b/packages/common/src/services/extension.service.ts @@ -1,9 +1,9 @@ import { type BasePubSubService } from '@slickgrid-universal/event-pub-sub'; -import type { Column, ExtensionModel, GridOption } from '../interfaces/index'; -import { type ColumnReorderFunction, type ExtensionList, ExtensionName, type InferExtensionByName, type SlickControlList, type SlickPluginList } from '../enums/index'; -import type { SharedService } from './shared.service'; -import type { TranslaterService } from './translater.service'; +import type { Column, ExtensionModel, GridOption } from '../interfaces/index.js'; +import { type ColumnReorderFunction, type ExtensionList, ExtensionName, type InferExtensionByName, type SlickControlList, type SlickPluginList } from '../enums/index.js'; +import type { SharedService } from './shared.service.js'; +import type { TranslaterService } from './translater.service.js'; import { type ExtensionUtility, SlickAutoTooltip, @@ -20,11 +20,11 @@ import { SlickRowBasedEdit, SlickRowMoveManager, SlickRowSelectionModel -} from '../extensions/index'; -import type { FilterService } from './filter.service'; -import type { SortService } from './sort.service'; -import type { TreeDataService } from './treeData.service'; -import type { GridService } from './grid.service'; +} from '../extensions/index.js'; +import type { FilterService } from './filter.service.js'; +import type { SortService } from './sort.service.js'; +import type { TreeDataService } from './treeData.service.js'; +import type { GridService } from './grid.service.js'; export class ExtensionService { protected _extensionCreatedList: ExtensionList = {} as ExtensionList; diff --git a/packages/common/src/services/filter.service.ts b/packages/common/src/services/filter.service.ts index 50f17ce6c..1f7dcd3e8 100644 --- a/packages/common/src/services/filter.service.ts +++ b/packages/common/src/services/filter.service.ts @@ -2,16 +2,16 @@ import { type BasePubSubService } from '@slickgrid-universal/event-pub-sub'; import { extend, stripTags } from '@slickgrid-universal/utils'; import { dequal } from 'dequal/lite'; -import { Constants } from '../constants'; -import { FilterConditions, getParsedSearchTermsByFieldType } from './../filter-conditions/index'; -import { type FilterFactory } from './../filters/filterFactory'; +import { Constants } from '../constants.js'; +import { FilterConditions, getParsedSearchTermsByFieldType } from './../filter-conditions/index.js'; +import { type FilterFactory } from './../filters/filterFactory.js'; import { EmitterType, FieldType, OperatorType, type OperatorString, type SearchTerm, -} from '../enums/index'; +} from '../enums/index.js'; import type { Column, ColumnFilters, @@ -24,12 +24,12 @@ import type { FilterConditionOption, GridOption, SearchColumnFilter, -} from './../interfaces/index'; -import type { BackendUtilityService } from './backendUtility.service'; -import { findItemInTreeStructure, getDescendantProperty, mapOperatorByFieldType, } from './utilities'; -import type { SharedService } from './shared.service'; -import type { RxJsFacade, Subject } from './rxjsFacade'; -import { type SlickDataView, SlickEvent, SlickEventData, SlickEventHandler, type SlickGrid } from '../core/index'; +} from './../interfaces/index.js'; +import type { BackendUtilityService } from './backendUtility.service.js'; +import { findItemInTreeStructure, getDescendantProperty, mapOperatorByFieldType, } from './utilities.js'; +import type { SharedService } from './shared.service.js'; +import type { RxJsFacade, Subject } from './rxjsFacade.js'; +import { type SlickDataView, SlickEvent, SlickEventData, SlickEventHandler, type SlickGrid } from '../core/index.js'; interface OnSearchChangeEventArgs { clearFilterTriggered?: boolean; diff --git a/packages/common/src/services/grid.service.ts b/packages/common/src/services/grid.service.ts index 6c0a11c2a..6fa38efdb 100644 --- a/packages/common/src/services/grid.service.ts +++ b/packages/common/src/services/grid.service.ts @@ -11,15 +11,15 @@ import type { GridServiceUpdateOption, HideColumnOption, OnEventArgs, -} from '../interfaces/index'; -import type { FilterService } from './filter.service'; -import type { GridStateService } from './gridState.service'; -import type { PaginationService } from '../services/pagination.service'; -import type { SharedService } from './shared.service'; -import type { SlickDataView, SlickGrid } from '../core/index'; -import type { SortService } from './sort.service'; -import type { TreeDataService } from './treeData.service'; -import { SlickRowSelectionModel } from '../extensions/slickRowSelectionModel'; +} from '../interfaces/index.js'; +import type { FilterService } from './filter.service.js'; +import type { GridStateService } from './gridState.service.js'; +import type { PaginationService } from '../services/pagination.service.js'; +import type { SharedService } from './shared.service.js'; +import type { SlickDataView, SlickGrid } from '../core/index.js'; +import type { SortService } from './sort.service.js'; +import type { TreeDataService } from './treeData.service.js'; +import { SlickRowSelectionModel } from '../extensions/slickRowSelectionModel.js'; const GridServiceDeleteOptionDefaults: GridServiceDeleteOption = { skipError: false, triggerEvent: true }; const GridServiceInsertOptionDefaults: GridServiceInsertOption = { highlightRow: true, resortGrid: false, selectRow: false, scrollRowIntoView: true, skipError: false, triggerEvent: true }; diff --git a/packages/common/src/services/gridEvent.service.ts b/packages/common/src/services/gridEvent.service.ts index f35711f72..3964cb44b 100644 --- a/packages/common/src/services/gridEvent.service.ts +++ b/packages/common/src/services/gridEvent.service.ts @@ -1,5 +1,5 @@ -import { type SlickDataView, SlickEventHandler, type SlickGrid, SlickEventData } from '../core/index'; -import type { Column, OnEventArgs } from './../interfaces/index'; +import { type SlickDataView, SlickEventHandler, type SlickGrid, SlickEventData } from '../core/index.js'; +import type { Column, OnEventArgs } from './../interfaces/index.js'; export class GridEventService { protected _eventHandler: SlickEventHandler; diff --git a/packages/common/src/services/gridState.service.ts b/packages/common/src/services/gridState.service.ts index b0a9a30f4..8d48e3e5d 100644 --- a/packages/common/src/services/gridState.service.ts +++ b/packages/common/src/services/gridState.service.ts @@ -1,7 +1,7 @@ import type { BasePubSubService, EventSubscription } from '@slickgrid-universal/event-pub-sub'; import { dequal } from 'dequal/lite'; -import { ExtensionName, GridStateType, } from '../enums/index'; +import { ExtensionName, GridStateType, } from '../enums/index.js'; import type { Column, CurrentColumn, @@ -12,13 +12,13 @@ import type { GridOption, GridState, TreeToggleStateChange, -} from '../interfaces/index'; -import type { ExtensionService } from './extension.service'; -import type { FilterService } from './filter.service'; -import type { SharedService } from './shared.service'; -import type { SortService } from './sort.service'; -import type { TreeDataService } from './treeData.service'; -import { type SlickDataView, SlickEventHandler, type SlickGrid } from '../core/index'; +} from '../interfaces/index.js'; +import type { ExtensionService } from './extension.service.js'; +import type { FilterService } from './filter.service.js'; +import type { SharedService } from './shared.service.js'; +import type { SortService } from './sort.service.js'; +import type { TreeDataService } from './treeData.service.js'; +import { type SlickDataView, SlickEventHandler, type SlickGrid } from '../core/index.js'; export class GridStateService { protected _eventHandler: SlickEventHandler; diff --git a/packages/common/src/services/headerGrouping.service.ts b/packages/common/src/services/headerGrouping.service.ts index 2fe3670f0..a1e4b5ad2 100644 --- a/packages/common/src/services/headerGrouping.service.ts +++ b/packages/common/src/services/headerGrouping.service.ts @@ -1,9 +1,9 @@ import type { EventSubscription } from '@slickgrid-universal/event-pub-sub'; import { createDomElement, emptyElement } from '@slickgrid-universal/utils'; -import type { Column, GridOption, } from './../interfaces/index'; -import type { ExtensionUtility } from '../extensions/extensionUtility'; -import { type SlickDataView, SlickEventHandler, type SlickGrid } from '../core/index'; +import type { Column, GridOption, } from './../interfaces/index.js'; +import type { ExtensionUtility } from '../extensions/extensionUtility.js'; +import { type SlickDataView, SlickEventHandler, type SlickGrid } from '../core/index.js'; export class HeaderGroupingService { protected _eventHandler: SlickEventHandler; diff --git a/packages/common/src/services/index.ts b/packages/common/src/services/index.ts index 890376270..703e4c848 100644 --- a/packages/common/src/services/index.ts +++ b/packages/common/src/services/index.ts @@ -1,22 +1,22 @@ -export * from './backendUtility.service'; -export * from './collection.service'; -export * from './container.service'; -export * from './dataWrapperService'; -export * from './dateUtils'; -export * from './domUtilities'; -export * from './excelExport.service'; -export * from './extension.service'; -export * from './filter.service'; -export * from './grid.service'; -export * from './gridEvent.service'; -export * from './gridState.service'; -export * from './headerGrouping.service'; -export * from './pagination.service'; -export * from './resizer.service'; -export * from './rxjsFacade'; -export * from './shared.service'; -export * from './sort.service'; -export * from './textExport.service'; -export * from './translater.service'; -export * from './treeData.service'; -export * from './utilities'; +export * from './backendUtility.service.js'; +export * from './collection.service.js'; +export * from './container.service.js'; +export * from './dataWrapperService.js'; +export * from './dateUtils.js'; +export * from './domUtilities.js'; +export * from './excelExport.service.js'; +export * from './extension.service.js'; +export * from './filter.service.js'; +export * from './grid.service.js'; +export * from './gridEvent.service.js'; +export * from './gridState.service.js'; +export * from './headerGrouping.service.js'; +export * from './pagination.service.js'; +export * from './resizer.service.js'; +export * from './rxjsFacade.js'; +export * from './shared.service.js'; +export * from './sort.service.js'; +export * from './textExport.service.js'; +export * from './translater.service.js'; +export * from './treeData.service.js'; +export * from './utilities.js'; diff --git a/packages/common/src/services/pagination.service.ts b/packages/common/src/services/pagination.service.ts index d22a2f1dc..cdac42f21 100644 --- a/packages/common/src/services/pagination.service.ts +++ b/packages/common/src/services/pagination.service.ts @@ -8,12 +8,12 @@ import type { Pagination, PaginationCursorChangedArgs, PaginationMetadata, -} from '../interfaces/index'; -import type { BackendUtilityService } from './backendUtility.service'; -import type { SharedService } from './shared.service'; -import { propertyObserver } from './observers'; -import type { Observable, RxJsFacade } from './rxjsFacade'; -import { type SlickDataView, SlickEventHandler, type SlickGrid } from '../core/index'; +} from '../interfaces/index.js'; +import type { BackendUtilityService } from './backendUtility.service.js'; +import type { SharedService } from './shared.service.js'; +import { propertyObserver } from './observers.js'; +import type { Observable, RxJsFacade } from './rxjsFacade.js'; +import { type SlickDataView, SlickEventHandler, type SlickGrid } from '../core/index.js'; export class PaginationService { protected _eventHandler: SlickEventHandler; diff --git a/packages/common/src/services/resizer.service.ts b/packages/common/src/services/resizer.service.ts index 8109af842..dcdb9938e 100644 --- a/packages/common/src/services/resizer.service.ts +++ b/packages/common/src/services/resizer.service.ts @@ -2,16 +2,16 @@ import { BindingEventService } from '@slickgrid-universal/binding'; import type { BasePubSubService, EventSubscription } from '@slickgrid-universal/event-pub-sub'; import { getInnerSize, getOffset, isPrimitiveOrHTML, stripTags } from '@slickgrid-universal/utils'; -import { FieldType, } from '../enums/index'; +import { FieldType, } from '../enums/index.js'; import type { AutoResizeOption, Column, GridOption, GridSize, ResizeByContentOption, -} from '../interfaces/index'; -import { parseFormatterWhenExist } from '../formatters/formatterUtilities'; -import { type SlickDataView, SlickEventHandler, type SlickGrid } from '../core/index'; +} from '../interfaces/index.js'; +import { parseFormatterWhenExist } from '../formatters/formatterUtilities.js'; +import { type SlickDataView, SlickEventHandler, type SlickGrid } from '../core/index.js'; // using external non-typed js libraries const DATAGRID_BOTTOM_PADDING = 20; diff --git a/packages/common/src/services/shared.service.ts b/packages/common/src/services/shared.service.ts index 2d8815f9c..3ec130c98 100644 --- a/packages/common/src/services/shared.service.ts +++ b/packages/common/src/services/shared.service.ts @@ -1,6 +1,6 @@ -import type { SlickDataView, SlickGrid } from '../core/index'; -import type { Column, CurrentPagination, GridOption } from '../interfaces/index'; -import type { SlickGroupItemMetadataProvider } from '../extensions/slickGroupItemMetadataProvider'; +import type { SlickDataView, SlickGrid } from '../core/index.js'; +import type { Column, CurrentPagination, GridOption } from '../interfaces/index.js'; +import type { SlickGroupItemMetadataProvider } from '../extensions/slickGroupItemMetadataProvider.js'; export class SharedService { protected _allColumns!: Column[]; diff --git a/packages/common/src/services/sort.service.ts b/packages/common/src/services/sort.service.ts index 5f504d25f..9a51021f5 100644 --- a/packages/common/src/services/sort.service.ts +++ b/packages/common/src/services/sort.service.ts @@ -8,15 +8,15 @@ import type { SingleColumnSort, TreeDataOption, DOMMouseOrTouchEvent, -} from '../interfaces/index'; -import { EmitterType, FieldType, SortDirection, SortDirectionNumber, type SortDirectionString, } from '../enums/index'; -import type { BackendUtilityService } from './backendUtility.service'; -import type { CollectionService } from './collection.service'; -import { getDescendantProperty, flattenToParentChildArray, isColumnDateType } from './utilities'; -import { sortByFieldType } from '../sortComparers/sortUtilities'; -import type { SharedService } from './shared.service'; -import type { RxJsFacade, Subject } from './rxjsFacade'; -import { type SlickDataView, type SlickEventData, SlickEventHandler, type SlickGrid } from '../core/index'; +} from '../interfaces/index.js'; +import { EmitterType, FieldType, SortDirection, SortDirectionNumber, type SortDirectionString, } from '../enums/index.js'; +import type { BackendUtilityService } from './backendUtility.service.js'; +import type { CollectionService } from './collection.service.js'; +import { getDescendantProperty, flattenToParentChildArray, isColumnDateType } from './utilities.js'; +import { sortByFieldType } from '../sortComparers/sortUtilities.js'; +import type { SharedService } from './shared.service.js'; +import type { RxJsFacade, Subject } from './rxjsFacade.js'; +import { type SlickDataView, type SlickEventData, SlickEventHandler, type SlickGrid } from '../core/index.js'; export class SortService { protected _currentLocalSorters: CurrentSorter[] = []; diff --git a/packages/common/src/services/textExport.service.ts b/packages/common/src/services/textExport.service.ts index b99d7de62..085bae803 100644 --- a/packages/common/src/services/textExport.service.ts +++ b/packages/common/src/services/textExport.service.ts @@ -1,6 +1,6 @@ -import type { ExternalResource, TextExportOption } from '../interfaces/index'; -import type { ContainerService } from '../services/container.service'; -import type { SlickGrid } from '../core/index'; +import type { ExternalResource, TextExportOption } from '../interfaces/index.js'; +import type { ContainerService } from '../services/container.service.js'; +import type { SlickGrid } from '../core/index.js'; export abstract class TextExportService implements ExternalResource { /** ExcelExportService class name which is use to find service instance in the external registered services */ diff --git a/packages/common/src/services/treeData.service.ts b/packages/common/src/services/treeData.service.ts index f28c4cb8c..96ffc6da0 100644 --- a/packages/common/src/services/treeData.service.ts +++ b/packages/common/src/services/treeData.service.ts @@ -1,7 +1,7 @@ import type { BasePubSubService, EventSubscription } from '@slickgrid-universal/event-pub-sub'; -import { Constants } from '../constants'; -import { ToggleStateChangeType, type ToggleStateChangeTypeString } from '../enums/index'; +import { Constants } from '../constants.js'; +import { ToggleStateChangeType, type ToggleStateChangeTypeString } from '../enums/index.js'; import type { Column, ColumnSort, @@ -10,16 +10,16 @@ import type { TreeDataOption, TreeToggledItem, TreeToggleStateChange, -} from '../interfaces/index'; +} from '../interfaces/index.js'; import { addTreeLevelAndAggregatorsByMutation, findItemInTreeStructure, getTreeDataOptionPropName, unflattenParentChildArrayToTree -} from './utilities'; -import type { SharedService } from './shared.service'; -import type { SortService } from './sort.service'; -import { type SlickDataView, SlickEventHandler, type SlickGrid, type SlickEventData } from '../core/index'; +} from './utilities.js'; +import type { SharedService } from './shared.service.js'; +import type { SortService } from './sort.service.js'; +import { type SlickDataView, SlickEventHandler, type SlickGrid, type SlickEventData } from '../core/index.js'; export class TreeDataService { protected _lastToggleStateChange!: Omit; diff --git a/packages/common/src/services/utilities.ts b/packages/common/src/services/utilities.ts index 6c5c91e64..27dbe5a6f 100644 --- a/packages/common/src/services/utilities.ts +++ b/packages/common/src/services/utilities.ts @@ -1,10 +1,10 @@ import type { EventSubscription } from '@slickgrid-universal/event-pub-sub'; import { flatten } from 'un-flatten-tree'; -import { Constants } from '../constants'; -import { FieldType, type OperatorString, OperatorType } from '../enums/index'; -import type { Aggregator, CancellablePromiseWrapper, Column, GridOption, TreeDataPropNames, } from '../interfaces/index'; -import type { Observable, RxJsFacade, Subject, Subscription } from './rxjsFacade'; +import { Constants } from '../constants.js'; +import { FieldType, type OperatorString, OperatorType } from '../enums/index.js'; +import type { Aggregator, CancellablePromiseWrapper, Column, GridOption, TreeDataPropNames, } from '../interfaces/index.js'; +import type { Observable, RxJsFacade, Subject, Subscription } from './rxjsFacade.js'; /** Cancelled Extension that can be only be thrown by the `cancellablePromise()` function */ export class CancelledException extends Error { diff --git a/packages/common/src/slickgrid-config.ts b/packages/common/src/slickgrid-config.ts index 51561e59b..60a790939 100644 --- a/packages/common/src/slickgrid-config.ts +++ b/packages/common/src/slickgrid-config.ts @@ -1,5 +1,5 @@ -import type { GridOption } from './interfaces/gridOption.interface'; -import { GlobalGridOptions } from './global-grid-options'; +import type { GridOption } from './interfaces/gridOption.interface.js'; +import { GlobalGridOptions } from './global-grid-options.js'; export class SlickgridConfig { options: Partial; diff --git a/packages/common/src/sortComparers/__tests__/booleanSortComparer.spec.ts b/packages/common/src/sortComparers/__tests__/booleanSortComparer.spec.ts index 80ae25dd7..ad2c68c3f 100644 --- a/packages/common/src/sortComparers/__tests__/booleanSortComparer.spec.ts +++ b/packages/common/src/sortComparers/__tests__/booleanSortComparer.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { SortDirectionNumber } from '../../enums/index'; -import { SortComparers } from '../index'; +import { SortDirectionNumber } from '../../enums/index.js'; +import { SortComparers } from '../index.js'; describe('the Boolean SortComparer', () => { it('should return original unsorted array when no direction is provided', () => { diff --git a/packages/common/src/sortComparers/__tests__/dateEuroShortSortComparer.spec.ts b/packages/common/src/sortComparers/__tests__/dateEuroShortSortComparer.spec.ts index bcc5a7b51..2ce119449 100644 --- a/packages/common/src/sortComparers/__tests__/dateEuroShortSortComparer.spec.ts +++ b/packages/common/src/sortComparers/__tests__/dateEuroShortSortComparer.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { sortByFieldType } from '../sortUtilities'; -import { FieldType, SortDirectionNumber } from '../../enums/index'; +import { sortByFieldType } from '../sortUtilities.js'; +import { FieldType, SortDirectionNumber } from '../../enums/index.js'; describe('the Date Euro Short Sorter', () => { it('should return an array of dates sorted ascending when only valid dates are provided', () => { diff --git a/packages/common/src/sortComparers/__tests__/dateEuroSortComparer.spec.ts b/packages/common/src/sortComparers/__tests__/dateEuroSortComparer.spec.ts index 075057e97..7ad0f6d7b 100644 --- a/packages/common/src/sortComparers/__tests__/dateEuroSortComparer.spec.ts +++ b/packages/common/src/sortComparers/__tests__/dateEuroSortComparer.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { sortByFieldType } from '../sortUtilities'; -import { FieldType, SortDirectionNumber } from '../../enums/index'; +import { sortByFieldType } from '../sortUtilities.js'; +import { FieldType, SortDirectionNumber } from '../../enums/index.js'; describe('the Date Euro Sorter', () => { it('should return an array of dates sorted ascending when only valid dates are provided', () => { diff --git a/packages/common/src/sortComparers/__tests__/dateIsoSortComparer.spec.ts b/packages/common/src/sortComparers/__tests__/dateIsoSortComparer.spec.ts index 920b9cc99..0f6f2e864 100644 --- a/packages/common/src/sortComparers/__tests__/dateIsoSortComparer.spec.ts +++ b/packages/common/src/sortComparers/__tests__/dateIsoSortComparer.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it } from 'vitest'; -import { sortByFieldType } from '../sortUtilities'; -import { FieldType, SortDirectionNumber } from '../../enums/index'; -import type { Column } from '../../interfaces/column.interface'; +import { sortByFieldType } from '../sortUtilities.js'; +import { FieldType, SortDirectionNumber } from '../../enums/index.js'; +import type { Column } from '../../interfaces/column.interface.js'; describe('the Date ISO (without time) Sorter', () => { it('should return an array of US dates sorted ascending when only valid dates are provided', () => { diff --git a/packages/common/src/sortComparers/__tests__/dateSortComparer.spec.ts b/packages/common/src/sortComparers/__tests__/dateSortComparer.spec.ts index e9e43017a..cc70834bd 100644 --- a/packages/common/src/sortComparers/__tests__/dateSortComparer.spec.ts +++ b/packages/common/src/sortComparers/__tests__/dateSortComparer.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { sortByFieldType } from '../sortUtilities'; -import { FieldType, SortDirectionNumber } from '../../enums/index'; +import { sortByFieldType } from '../sortUtilities.js'; +import { FieldType, SortDirectionNumber } from '../../enums/index.js'; describe('the Date Sorter (ISO format with optional time included)', () => { it('should return an array of ISO dates sorted ascending when only valid dates are provided', () => { diff --git a/packages/common/src/sortComparers/__tests__/dateUsShortSortComparer.spec.ts b/packages/common/src/sortComparers/__tests__/dateUsShortSortComparer.spec.ts index f8086b6fe..458d36b76 100644 --- a/packages/common/src/sortComparers/__tests__/dateUsShortSortComparer.spec.ts +++ b/packages/common/src/sortComparers/__tests__/dateUsShortSortComparer.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { sortByFieldType } from '../sortUtilities'; -import { FieldType, SortDirectionNumber } from '../../enums/index'; +import { sortByFieldType } from '../sortUtilities.js'; +import { FieldType, SortDirectionNumber } from '../../enums/index.js'; describe('the Date US Short Sorter', () => { it('should return an array of US dates sorted ascending when only valid dates are provided', () => { diff --git a/packages/common/src/sortComparers/__tests__/dateUsSortComparer.spec.ts b/packages/common/src/sortComparers/__tests__/dateUsSortComparer.spec.ts index 2da079431..28f962759 100644 --- a/packages/common/src/sortComparers/__tests__/dateUsSortComparer.spec.ts +++ b/packages/common/src/sortComparers/__tests__/dateUsSortComparer.spec.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; -import { sortByFieldType } from '../sortUtilities'; -import { FieldType, SortDirectionNumber } from '../../enums/index'; +import { sortByFieldType } from '../sortUtilities.js'; +import { FieldType, SortDirectionNumber } from '../../enums/index.js'; describe('the Date US Sorter', () => { it('should return an array of US dates sorted ascending when only valid dates are provided', () => { diff --git a/packages/common/src/sortComparers/__tests__/numericSortComparer.spec.ts b/packages/common/src/sortComparers/__tests__/numericSortComparer.spec.ts index b148a4f4a..62d271049 100644 --- a/packages/common/src/sortComparers/__tests__/numericSortComparer.spec.ts +++ b/packages/common/src/sortComparers/__tests__/numericSortComparer.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it } from 'vitest'; -import { SortDirectionNumber } from '../../enums/sortDirectionNumber.enum'; -import { numericSortComparer } from '../numericSortComparer'; -import type { Column } from '../../interfaces/column.interface'; +import { SortDirectionNumber } from '../../enums/sortDirectionNumber.enum.js'; +import { numericSortComparer } from '../numericSortComparer.js'; +import type { Column } from '../../interfaces/column.interface.js'; describe('the Numeric Sorter', () => { it('should return an array of numbers sorted ascending when only numbers are provided', () => { diff --git a/packages/common/src/sortComparers/__tests__/objectStringSortComparer.spec.ts b/packages/common/src/sortComparers/__tests__/objectStringSortComparer.spec.ts index 753d0e21c..cb49d22a0 100644 --- a/packages/common/src/sortComparers/__tests__/objectStringSortComparer.spec.ts +++ b/packages/common/src/sortComparers/__tests__/objectStringSortComparer.spec.ts @@ -1,7 +1,7 @@ import { afterEach, beforeEach, describe, expect, it } from 'vitest'; -import { SortDirectionNumber } from '../../enums/sortDirectionNumber.enum'; -import { objectStringSortComparer } from '../objectStringSortComparer'; +import { SortDirectionNumber } from '../../enums/sortDirectionNumber.enum.js'; +import { objectStringSortComparer } from '../objectStringSortComparer.js'; describe('the Object w/String SortComparer', () => { let collection: any[] = []; diff --git a/packages/common/src/sortComparers/__tests__/sortUtilities.spec.ts b/packages/common/src/sortComparers/__tests__/sortUtilities.spec.ts index ad2ec0a41..6024c18d1 100644 --- a/packages/common/src/sortComparers/__tests__/sortUtilities.spec.ts +++ b/packages/common/src/sortComparers/__tests__/sortUtilities.spec.ts @@ -1,9 +1,9 @@ import { describe, expect, it, vi } from 'vitest'; -import type { Column } from '../../interfaces/index'; -import { FieldType, SortDirectionNumber } from '../../enums/index'; -import { sortByFieldType } from '../sortUtilities'; -import { SortComparers } from '../sortComparers.index'; +import type { Column } from '../../interfaces/index.js'; +import { FieldType, SortDirectionNumber } from '../../enums/index.js'; +import { sortByFieldType } from '../sortUtilities.js'; +import { SortComparers } from '../sortComparers.index.js'; describe('sortUtilities', () => { it('should call the SortComparers.boolean when FieldType is boolean', () => { diff --git a/packages/common/src/sortComparers/__tests__/stringSortComparer.spec.ts b/packages/common/src/sortComparers/__tests__/stringSortComparer.spec.ts index 3410997ff..9c14b8871 100644 --- a/packages/common/src/sortComparers/__tests__/stringSortComparer.spec.ts +++ b/packages/common/src/sortComparers/__tests__/stringSortComparer.spec.ts @@ -1,8 +1,8 @@ import { describe, expect, it } from 'vitest'; -import { SortDirectionNumber } from '../../enums/index'; -import { stringSortComparer } from '../stringSortComparer'; -import type { Column, GridOption } from '../../interfaces/index'; +import { SortDirectionNumber } from '../../enums/index.js'; +import { stringSortComparer } from '../stringSortComparer.js'; +import type { Column, GridOption } from '../../interfaces/index.js'; describe('the String SortComparer', () => { it('should return original unsorted array when no direction is provided', () => { diff --git a/packages/common/src/sortComparers/booleanSortComparer.ts b/packages/common/src/sortComparers/booleanSortComparer.ts index 60e5f3af6..7f68df6cd 100644 --- a/packages/common/src/sortComparers/booleanSortComparer.ts +++ b/packages/common/src/sortComparers/booleanSortComparer.ts @@ -1,5 +1,5 @@ -import type { SortComparer } from '../interfaces/index'; -import { SortDirectionNumber } from '../enums/sortDirectionNumber.enum'; +import type { SortComparer } from '../interfaces/index.js'; +import { SortDirectionNumber } from '../enums/sortDirectionNumber.enum.js'; export const booleanSortComparer: SortComparer = (value1: any, value2: any, sortDirection: SortDirectionNumber = SortDirectionNumber.neutral) => { let position = 0; diff --git a/packages/common/src/sortComparers/dateUtilities.ts b/packages/common/src/sortComparers/dateUtilities.ts index 250bd3bff..f26bfae9a 100644 --- a/packages/common/src/sortComparers/dateUtilities.ts +++ b/packages/common/src/sortComparers/dateUtilities.ts @@ -1,6 +1,6 @@ -import { FieldType } from '../enums/fieldType.enum'; -import type { SortComparer } from '../interfaces/index'; -import { mapTempoDateFormatWithFieldType, tryParseDate } from '../services/dateUtils'; +import { FieldType } from '../enums/fieldType.enum.js'; +import type { SortComparer } from '../interfaces/index.js'; +import { mapTempoDateFormatWithFieldType, tryParseDate } from '../services/dateUtils.js'; export function compareDates(value1: any, value2: any, sortDirection: number, format?: string, strict?: boolean): number { let diff = 0; diff --git a/packages/common/src/sortComparers/index.ts b/packages/common/src/sortComparers/index.ts index f872dfca1..9233bed57 100644 --- a/packages/common/src/sortComparers/index.ts +++ b/packages/common/src/sortComparers/index.ts @@ -1,7 +1,7 @@ -export * from './booleanSortComparer'; -export * from './objectStringSortComparer'; -export * from './stringSortComparer'; -export * from './sortUtilities'; -export * from './sortComparers.index'; -export * from './numericSortComparer'; -export * from './dateUtilities'; +export * from './booleanSortComparer.js'; +export * from './objectStringSortComparer.js'; +export * from './stringSortComparer.js'; +export * from './sortUtilities.js'; +export * from './sortComparers.index.js'; +export * from './numericSortComparer.js'; +export * from './dateUtilities.js'; diff --git a/packages/common/src/sortComparers/numericSortComparer.ts b/packages/common/src/sortComparers/numericSortComparer.ts index 457064b33..937295b53 100644 --- a/packages/common/src/sortComparers/numericSortComparer.ts +++ b/packages/common/src/sortComparers/numericSortComparer.ts @@ -1,5 +1,5 @@ -import { SortDirectionNumber } from '../enums/sortDirectionNumber.enum'; -import type { Column, GridOption, SortComparer } from '../interfaces/index'; +import { SortDirectionNumber } from '../enums/sortDirectionNumber.enum.js'; +import type { Column, GridOption, SortComparer } from '../interfaces/index.js'; export const numericSortComparer: SortComparer = (value1: any, value2: any, sortDirection: SortDirectionNumber = SortDirectionNumber.neutral, sortColumn?: Column, gridOptions?: GridOption) => { const checkForUndefinedValues = sortColumn?.valueCouldBeUndefined ?? gridOptions?.cellValueCouldBeUndefined ?? false; diff --git a/packages/common/src/sortComparers/objectStringSortComparer.ts b/packages/common/src/sortComparers/objectStringSortComparer.ts index 829203b1b..03f8cd776 100644 --- a/packages/common/src/sortComparers/objectStringSortComparer.ts +++ b/packages/common/src/sortComparers/objectStringSortComparer.ts @@ -1,5 +1,5 @@ -import type { Column, GridOption, SortComparer } from '../interfaces/index'; -import { SortDirectionNumber } from '../enums/sortDirectionNumber.enum'; +import type { Column, GridOption, SortComparer } from '../interfaces/index.js'; +import { SortDirectionNumber } from '../enums/sortDirectionNumber.enum.js'; export const objectStringSortComparer: SortComparer = (value1: any, value2: any, sortDirection: SortDirectionNumber = SortDirectionNumber.neutral, sortColumn?: Column, gridOptions?: GridOption) => { if (!sortColumn || !sortColumn.dataKey) { diff --git a/packages/common/src/sortComparers/sortComparers.index.ts b/packages/common/src/sortComparers/sortComparers.index.ts index 677c11334..804ee448b 100644 --- a/packages/common/src/sortComparers/sortComparers.index.ts +++ b/packages/common/src/sortComparers/sortComparers.index.ts @@ -1,13 +1,13 @@ -import { booleanSortComparer } from './booleanSortComparer'; -import { numericSortComparer } from './numericSortComparer'; -import { objectStringSortComparer } from './objectStringSortComparer'; -import { stringSortComparer } from './stringSortComparer'; -import { getAssociatedDateSortComparer } from './dateUtilities'; -import { FieldType } from '../enums/fieldType.enum'; -import type { SortComparer } from '../interfaces/sorter.interface'; +import { booleanSortComparer } from './booleanSortComparer.js'; +import { numericSortComparer } from './numericSortComparer.js'; +import { objectStringSortComparer } from './objectStringSortComparer.js'; +import { stringSortComparer } from './stringSortComparer.js'; +import { getAssociatedDateSortComparer } from './dateUtilities.js'; +import { FieldType } from '../enums/fieldType.enum.js'; +import type { SortComparer } from '../interfaces/sorter.interface.js'; // export the Sort Utilities so they could be used by others -export * from './sortUtilities'; +export * from './sortUtilities.js'; export const SortComparers: Record = { /** SortComparer method to sort values as regular strings */ diff --git a/packages/common/src/sortComparers/sortUtilities.ts b/packages/common/src/sortComparers/sortUtilities.ts index 6c0da4680..ac9083ef0 100644 --- a/packages/common/src/sortComparers/sortUtilities.ts +++ b/packages/common/src/sortComparers/sortUtilities.ts @@ -1,8 +1,8 @@ -import { FieldType, type SortDirectionNumber } from '../enums/index'; -import type { Column, GridOption } from '../interfaces/index'; -import { SortComparers } from './index'; -import { getAssociatedDateSortComparer } from './dateUtilities'; -import { isColumnDateType } from '../services/utilities'; +import { FieldType, type SortDirectionNumber } from '../enums/index.js'; +import type { Column, GridOption } from '../interfaces/index.js'; +import { SortComparers } from './index.js'; +import { getAssociatedDateSortComparer } from './dateUtilities.js'; +import { isColumnDateType } from '../services/utilities.js'; export function sortByFieldType(fieldType: typeof FieldType[keyof typeof FieldType], value1: any, value2: any, sortDirection: number | SortDirectionNumber, sortColumn?: Column, gridOptions?: GridOption): number { let sortResult = 0; diff --git a/packages/common/src/sortComparers/stringSortComparer.ts b/packages/common/src/sortComparers/stringSortComparer.ts index 0e45125dc..73bdde010 100644 --- a/packages/common/src/sortComparers/stringSortComparer.ts +++ b/packages/common/src/sortComparers/stringSortComparer.ts @@ -1,7 +1,7 @@ import { removeAccentFromText } from '@slickgrid-universal/utils'; -import type { Column, GridOption, SortComparer } from '../interfaces/index'; -import { SortDirectionNumber } from '../enums/sortDirectionNumber.enum'; +import type { Column, GridOption, SortComparer } from '../interfaces/index.js'; +import { SortDirectionNumber } from '../enums/sortDirectionNumber.enum.js'; export const stringSortComparer: SortComparer = (value1: any, value2: any, sortDirection: SortDirectionNumber = SortDirectionNumber.neutral, sortColumn?: Column, gridOptions?: GridOption) => { let position = 0; diff --git a/packages/composite-editor-component/src/compositeEditor.factory.spec.ts b/packages/composite-editor-component/src/compositeEditor.factory.spec.ts index 3b568082e..1f94f3a6a 100644 --- a/packages/composite-editor-component/src/compositeEditor.factory.spec.ts +++ b/packages/composite-editor-component/src/compositeEditor.factory.spec.ts @@ -10,7 +10,7 @@ import { type SlickGrid } from '@slickgrid-universal/common'; -import { SlickCompositeEditor } from './compositeEditor.factory'; +import { SlickCompositeEditor } from './compositeEditor.factory.js'; vi.useFakeTimers(); diff --git a/packages/composite-editor-component/src/index.ts b/packages/composite-editor-component/src/index.ts index 058a87ded..d9b1c4935 100644 --- a/packages/composite-editor-component/src/index.ts +++ b/packages/composite-editor-component/src/index.ts @@ -1,2 +1,2 @@ -export * from './compositeEditor.factory'; -export * from './slick-composite-editor.component'; +export * from './compositeEditor.factory.js'; +export * from './slick-composite-editor.component.js'; diff --git a/packages/composite-editor-component/src/slick-composite-editor.component.spec.ts b/packages/composite-editor-component/src/slick-composite-editor.component.spec.ts index a4f2ac6a6..1b7ba2ea2 100644 --- a/packages/composite-editor-component/src/slick-composite-editor.component.spec.ts +++ b/packages/composite-editor-component/src/slick-composite-editor.component.spec.ts @@ -12,9 +12,9 @@ import { type SlickGrid, } from '@slickgrid-universal/common'; -import { SlickCompositeEditorComponent } from './slick-composite-editor.component'; -import { TranslateServiceStub } from '../../../test/translateServiceStub'; -import { ContainerServiceStub } from '../../../test/containerServiceStub'; +import { SlickCompositeEditorComponent } from './slick-composite-editor.component.js'; +import { TranslateServiceStub } from '../../../test/translateServiceStub.js'; +import { ContainerServiceStub } from '../../../test/containerServiceStub.js'; vi.useFakeTimers(); diff --git a/packages/composite-editor-component/src/slick-composite-editor.component.ts b/packages/composite-editor-component/src/slick-composite-editor.component.ts index 9c7d677d8..5d6d26646 100644 --- a/packages/composite-editor-component/src/slick-composite-editor.component.ts +++ b/packages/composite-editor-component/src/slick-composite-editor.component.ts @@ -31,7 +31,7 @@ import { SortDirectionNumber, } from '@slickgrid-universal/common'; -import { SlickCompositeEditor } from './compositeEditor.factory'; +import { SlickCompositeEditor } from './compositeEditor.factory.js'; const DEFAULT_ON_ERROR = (error: OnErrorOption) => console.log(error.message); diff --git a/packages/custom-footer-component/src/index.ts b/packages/custom-footer-component/src/index.ts index 1b8f4ccc3..9b9578f99 100644 --- a/packages/custom-footer-component/src/index.ts +++ b/packages/custom-footer-component/src/index.ts @@ -1 +1 @@ -export * from './slick-footer.component'; +export * from './slick-footer.component.js'; diff --git a/packages/custom-footer-component/src/slick-footer.spec.ts b/packages/custom-footer-component/src/slick-footer.spec.ts index 1e63c7828..158bf9e5f 100644 --- a/packages/custom-footer-component/src/slick-footer.spec.ts +++ b/packages/custom-footer-component/src/slick-footer.spec.ts @@ -2,8 +2,8 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { type CustomFooterOption, type GridOption, SlickEvent, type SlickGrid } from '@slickgrid-universal/common'; import { EventPubSubService } from '@slickgrid-universal/event-pub-sub'; -import { SlickFooterComponent } from './slick-footer.component'; -import { TranslateServiceStub } from '../../../test/translateServiceStub'; +import { SlickFooterComponent } from './slick-footer.component.js'; +import { TranslateServiceStub } from '../../../test/translateServiceStub.js'; function removeExtraSpaces(text: string) { return `${text}`.replace(/\s{2,}/g, ''); diff --git a/packages/custom-tooltip-plugin/src/__tests__/slickCustomTooltip.spec.ts b/packages/custom-tooltip-plugin/src/__tests__/slickCustomTooltip.spec.ts index 6644fcb1c..69ea9dde1 100644 --- a/packages/custom-tooltip-plugin/src/__tests__/slickCustomTooltip.spec.ts +++ b/packages/custom-tooltip-plugin/src/__tests__/slickCustomTooltip.spec.ts @@ -2,9 +2,9 @@ import { afterEach, beforeEach, describe, expect, it, type Mock, vi } from 'vite import { type Column, getOffset, type GridOption, type SlickGrid, type SlickDataView, SlickEvent, SlickEventData, } from '@slickgrid-universal/common'; import { delay, of, throwError } from 'rxjs'; -import { SlickCustomTooltip } from '../slickCustomTooltip'; -import { ContainerServiceStub } from '../../../../test/containerServiceStub'; -import { RxJsResourceStub } from '../../../../test/rxjsResourceStub'; +import { SlickCustomTooltip } from '../slickCustomTooltip.js'; +import { ContainerServiceStub } from '../../../../test/containerServiceStub.js'; +import { RxJsResourceStub } from '../../../../test/rxjsResourceStub.js'; // mocked modules vi.mock('@slickgrid-universal/common', async (importOriginal) => ({ diff --git a/packages/custom-tooltip-plugin/src/index.ts b/packages/custom-tooltip-plugin/src/index.ts index 30cf4d78d..8897b6880 100644 --- a/packages/custom-tooltip-plugin/src/index.ts +++ b/packages/custom-tooltip-plugin/src/index.ts @@ -1 +1 @@ -export * from './slickCustomTooltip'; +export * from './slickCustomTooltip.js'; diff --git a/packages/empty-warning-component/src/index.ts b/packages/empty-warning-component/src/index.ts index e328aee37..aa0655d9f 100644 --- a/packages/empty-warning-component/src/index.ts +++ b/packages/empty-warning-component/src/index.ts @@ -1 +1 @@ -export * from './slick-empty-warning.component'; +export * from './slick-empty-warning.component.js'; diff --git a/packages/empty-warning-component/src/slick-empty-warning.spec.ts b/packages/empty-warning-component/src/slick-empty-warning.spec.ts index 83d441eda..5d349925d 100644 --- a/packages/empty-warning-component/src/slick-empty-warning.spec.ts +++ b/packages/empty-warning-component/src/slick-empty-warning.spec.ts @@ -1,9 +1,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { createDomElement, type EmptyWarning, type GridOption, type SlickGrid } from '@slickgrid-universal/common'; -import { SlickEmptyWarningComponent } from './slick-empty-warning.component'; -import { ContainerServiceStub } from '../../../test/containerServiceStub'; -import { TranslateServiceStub } from '../../../test/translateServiceStub'; +import { SlickEmptyWarningComponent } from './slick-empty-warning.component.js'; +import { ContainerServiceStub } from '../../../test/containerServiceStub.js'; +import { TranslateServiceStub } from '../../../test/translateServiceStub.js'; const GRID_UID = 'slickgrid_123456'; diff --git a/packages/event-pub-sub/src/eventPubSub.service.spec.ts b/packages/event-pub-sub/src/eventPubSub.service.spec.ts index c39537b60..75f99df0d 100644 --- a/packages/event-pub-sub/src/eventPubSub.service.spec.ts +++ b/packages/event-pub-sub/src/eventPubSub.service.spec.ts @@ -1,7 +1,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import { EventPubSubService } from './eventPubSub.service'; -import { EventNamingStyle } from './types'; +import { EventPubSubService } from './eventPubSub.service.js'; +import { EventNamingStyle } from './types/eventNamingStyle.enum.js'; describe('EventPubSub Service', () => { let service: EventPubSubService; diff --git a/packages/event-pub-sub/src/eventPubSub.service.ts b/packages/event-pub-sub/src/eventPubSub.service.ts index 2979305a3..498f2abdd 100644 --- a/packages/event-pub-sub/src/eventPubSub.service.ts +++ b/packages/event-pub-sub/src/eventPubSub.service.ts @@ -1,5 +1,7 @@ import { titleCase, toKebabCase } from '@slickgrid-universal/utils'; -import { type BasePubSubService, EventNamingStyle, type EventSubscription, type Subscription, } from './types'; +import { type BasePubSubService } from './types/basePubSubService.interface.js'; +import { EventNamingStyle } from './types/eventNamingStyle.enum.js'; +import { type EventSubscription, type Subscription, } from './types/eventSubscription.interface.js'; export interface PubSubEvent { name: string; diff --git a/packages/event-pub-sub/src/index.ts b/packages/event-pub-sub/src/index.ts index f36ca16f0..d571b9b0e 100644 --- a/packages/event-pub-sub/src/index.ts +++ b/packages/event-pub-sub/src/index.ts @@ -1,2 +1,4 @@ -export * from './eventPubSub.service'; -export * from './types'; \ No newline at end of file +export * from './eventPubSub.service.js'; +export type * from './types/basePubSubService.interface.js'; +export * from './types/eventNamingStyle.enum.js'; +export type * from './types/eventSubscription.interface.js'; \ No newline at end of file diff --git a/packages/event-pub-sub/src/types/basePubSubService.interface.ts b/packages/event-pub-sub/src/types/basePubSubService.interface.ts index 8f898ff1f..dbd43ff0e 100644 --- a/packages/event-pub-sub/src/types/basePubSubService.interface.ts +++ b/packages/event-pub-sub/src/types/basePubSubService.interface.ts @@ -1,4 +1,4 @@ -import type { EventSubscription } from './eventSubscription.interface'; +import type { EventSubscription } from './eventSubscription.interface.js'; export interface BasePubSubService { /** diff --git a/packages/event-pub-sub/src/types/index.ts b/packages/event-pub-sub/src/types/index.ts deleted file mode 100644 index 27a8af2a0..000000000 --- a/packages/event-pub-sub/src/types/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type * from './basePubSubService.interface'; -export * from './eventNamingStyle.enum'; -export type * from './eventSubscription.interface'; \ No newline at end of file diff --git a/packages/excel-export/src/excelExport.service.spec.ts b/packages/excel-export/src/excelExport.service.spec.ts index bcedd3806..a92f873e3 100644 --- a/packages/excel-export/src/excelExport.service.spec.ts +++ b/packages/excel-export/src/excelExport.service.spec.ts @@ -18,10 +18,10 @@ import { SortDirectionNumber, } from '@slickgrid-universal/common'; -import { ContainerServiceStub } from '../../../test/containerServiceStub'; -import { TranslateServiceStub } from '../../../test/translateServiceStub'; -import { ExcelExportService } from './excelExport.service'; -import { getExcelSameInputDataCallback, useCellFormatByFieldType } from './excelUtils'; +import { ContainerServiceStub } from '../../../test/containerServiceStub.js'; +import { TranslateServiceStub } from '../../../test/translateServiceStub.js'; +import { ExcelExportService } from './excelExport.service.js'; +import { getExcelSameInputDataCallback, useCellFormatByFieldType } from './excelUtils.js'; // mocked modules vi.mock('excel-builder-vanilla', async (importOriginal) => ({ diff --git a/packages/excel-export/src/excelExport.service.ts b/packages/excel-export/src/excelExport.service.ts index 6ee61a341..9e2617a71 100644 --- a/packages/excel-export/src/excelExport.service.ts +++ b/packages/excel-export/src/excelExport.service.ts @@ -40,7 +40,7 @@ import { getGroupTotalValue, getExcelFormatFromGridFormatter, useCellFormatByFieldType, -} from './excelUtils'; +} from './excelUtils.js'; const DEFAULT_EXPORT_OPTIONS: ExcelExportOption = { filename: 'export', diff --git a/packages/excel-export/src/excelUtils.spec.ts b/packages/excel-export/src/excelUtils.spec.ts index 91b1c84d6..b4c83c00a 100644 --- a/packages/excel-export/src/excelUtils.spec.ts +++ b/packages/excel-export/src/excelUtils.spec.ts @@ -10,7 +10,7 @@ import { } from '@slickgrid-universal/common'; import { type StyleSheet } from 'excel-builder-vanilla'; -import { getExcelFormatFromGridFormatter, getExcelNumberCallback, getNumericFormatterOptions, useCellFormatByFieldType } from './excelUtils'; +import { getExcelFormatFromGridFormatter, getExcelNumberCallback, getNumericFormatterOptions, useCellFormatByFieldType } from './excelUtils.js'; const mockGridOptions = { enableExcelExport: true, diff --git a/packages/excel-export/src/index.ts b/packages/excel-export/src/index.ts index 39a1c78d4..f44124a62 100644 --- a/packages/excel-export/src/index.ts +++ b/packages/excel-export/src/index.ts @@ -1 +1 @@ -export { ExcelExportService } from './excelExport.service'; +export { ExcelExportService } from './excelExport.service.js'; diff --git a/packages/graphql/src/index.ts b/packages/graphql/src/index.ts index 7c3cba152..060b3cdfd 100644 --- a/packages/graphql/src/index.ts +++ b/packages/graphql/src/index.ts @@ -1,3 +1,3 @@ -export { GraphqlService } from './services/graphql.service'; -export { default as GraphqlQueryBuilder } from './services/graphqlQueryBuilder'; -export type * from './interfaces/index'; +export { GraphqlService } from './services/graphql.service.js'; +export { default as GraphqlQueryBuilder } from './services/graphqlQueryBuilder.js'; +export type * from './interfaces/index.js'; diff --git a/packages/graphql/src/interfaces/graphqlDatasetFilter.interface.ts b/packages/graphql/src/interfaces/graphqlDatasetFilter.interface.ts index 247d053c6..000fd1c70 100644 --- a/packages/graphql/src/interfaces/graphqlDatasetFilter.interface.ts +++ b/packages/graphql/src/interfaces/graphqlDatasetFilter.interface.ts @@ -1,5 +1,5 @@ -import type { GraphqlFilteringOption } from './graphqlFilteringOption.interface'; -import type { GraphqlSortingOption } from './graphqlSortingOption.interface'; +import type { GraphqlFilteringOption } from './graphqlFilteringOption.interface.js'; +import type { GraphqlSortingOption } from './graphqlSortingOption.interface.js'; export interface GraphqlDatasetFilter { first?: number; diff --git a/packages/graphql/src/interfaces/graphqlServiceApi.interface.ts b/packages/graphql/src/interfaces/graphqlServiceApi.interface.ts index 0b586848d..a6be82b4c 100644 --- a/packages/graphql/src/interfaces/graphqlServiceApi.interface.ts +++ b/packages/graphql/src/interfaces/graphqlServiceApi.interface.ts @@ -1,9 +1,9 @@ import type { BackendServiceApi, Observable } from '@slickgrid-universal/common'; -import type { GraphqlResult } from './graphqlResult.interface'; -import type { GraphqlPaginatedResult } from './graphqlPaginatedResult.interface'; -import type { GraphqlServiceOption } from './graphqlServiceOption.interface'; -import type { GraphqlService } from '../services/index'; +import type { GraphqlResult } from './graphqlResult.interface.js'; +import type { GraphqlPaginatedResult } from './graphqlPaginatedResult.interface.js'; +import type { GraphqlServiceOption } from './graphqlServiceOption.interface.js'; +import type { GraphqlService } from '../services/index.js'; export interface GraphqlServiceApi extends BackendServiceApi { /** Backend Service Options */ diff --git a/packages/graphql/src/interfaces/graphqlServiceOption.interface.ts b/packages/graphql/src/interfaces/graphqlServiceOption.interface.ts index 086232e99..fa19f8ee1 100644 --- a/packages/graphql/src/interfaces/graphqlServiceOption.interface.ts +++ b/packages/graphql/src/interfaces/graphqlServiceOption.interface.ts @@ -1,10 +1,10 @@ import type { BackendServiceOption, BackendServiceFilterQueryOverrideArgs } from '@slickgrid-universal/common'; -import type { GraphqlCustomFilteringOption, GraphqlFilteringOption } from './graphqlFilteringOption.interface'; -import type { GraphqlSortingOption } from './graphqlSortingOption.interface'; -import type { GraphqlCursorPaginationOption } from './graphqlCursorPaginationOption.interface'; -import type { GraphqlPaginationOption } from './graphqlPaginationOption.interface'; -import type { QueryArgument } from './queryArgument.interface'; +import type { GraphqlCustomFilteringOption, GraphqlFilteringOption } from './graphqlFilteringOption.interface.js'; +import type { GraphqlSortingOption } from './graphqlSortingOption.interface.js'; +import type { GraphqlCursorPaginationOption } from './graphqlCursorPaginationOption.interface.js'; +import type { GraphqlPaginationOption } from './graphqlPaginationOption.interface.js'; +import type { QueryArgument } from './queryArgument.interface.js'; export interface GraphqlServiceOption extends BackendServiceOption { /** diff --git a/packages/graphql/src/interfaces/index.ts b/packages/graphql/src/interfaces/index.ts index 2acb05148..8720dd252 100644 --- a/packages/graphql/src/interfaces/index.ts +++ b/packages/graphql/src/interfaces/index.ts @@ -1,10 +1,10 @@ -export type * from './graphqlCursorPaginationOption.interface'; -export type * from './graphqlDatasetFilter.interface'; -export type * from './graphqlFilteringOption.interface'; -export type * from './graphqlPaginatedResult.interface'; -export type * from './graphqlPaginationOption.interface'; -export type * from './graphqlResult.interface'; -export type * from './graphqlServiceApi.interface'; -export type * from './graphqlServiceOption.interface'; -export type * from './graphqlSortingOption.interface'; -export type * from './queryArgument.interface'; +export type * from './graphqlCursorPaginationOption.interface.js'; +export type * from './graphqlDatasetFilter.interface.js'; +export type * from './graphqlFilteringOption.interface.js'; +export type * from './graphqlPaginatedResult.interface.js'; +export type * from './graphqlPaginationOption.interface.js'; +export type * from './graphqlResult.interface.js'; +export type * from './graphqlServiceApi.interface.js'; +export type * from './graphqlServiceOption.interface.js'; +export type * from './graphqlSortingOption.interface.js'; +export type * from './queryArgument.interface.js'; diff --git a/packages/graphql/src/services/__tests__/graphql.service.spec.ts b/packages/graphql/src/services/__tests__/graphql.service.spec.ts index beb03cc08..edc8720ba 100644 --- a/packages/graphql/src/services/__tests__/graphql.service.spec.ts +++ b/packages/graphql/src/services/__tests__/graphql.service.spec.ts @@ -18,8 +18,8 @@ import { type TranslaterService, } from '@slickgrid-universal/common'; -import type { GraphqlServiceApi, GraphqlServiceOption } from '../../interfaces/index'; -import { GraphqlService } from './../graphql.service'; +import type { GraphqlServiceApi, GraphqlServiceOption } from '../../interfaces/index.js'; +import { GraphqlService } from './../graphql.service.js'; const DEFAULT_ITEMS_PER_PAGE = 25; const DEFAULT_PAGE_SIZE = 20; diff --git a/packages/graphql/src/services/__tests__/graphqlQueryBuilder.spec.ts b/packages/graphql/src/services/__tests__/graphqlQueryBuilder.spec.ts index f032ec395..fc05f103e 100644 --- a/packages/graphql/src/services/__tests__/graphqlQueryBuilder.spec.ts +++ b/packages/graphql/src/services/__tests__/graphqlQueryBuilder.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; -import GraphqlQueryBuilder from '../graphqlQueryBuilder'; +import GraphqlQueryBuilder from '../graphqlQueryBuilder.js'; function removeSpaces(textS) { return `${textS}`.replace(/\s+/g, ''); diff --git a/packages/graphql/src/services/graphql.service.ts b/packages/graphql/src/services/graphql.service.ts index 1d1e9f700..242795b99 100644 --- a/packages/graphql/src/services/graphql.service.ts +++ b/packages/graphql/src/services/graphql.service.ts @@ -38,9 +38,9 @@ import type { GraphqlPaginationOption, GraphqlServiceOption, GraphqlSortingOption, -} from '../interfaces/index'; +} from '../interfaces/index.js'; -import QueryBuilder from './graphqlQueryBuilder'; +import QueryBuilder from './graphqlQueryBuilder.js'; const DEFAULT_ITEMS_PER_PAGE = 25; const DEFAULT_PAGE_SIZE = 20; diff --git a/packages/graphql/src/services/index.ts b/packages/graphql/src/services/index.ts index d46382720..f39ef8772 100644 --- a/packages/graphql/src/services/index.ts +++ b/packages/graphql/src/services/index.ts @@ -1,2 +1,2 @@ -export * from './graphql.service'; -export { default as GraphqlQueryBuilder } from './graphqlQueryBuilder'; +export * from './graphql.service.js'; +export { default as GraphqlQueryBuilder } from './graphqlQueryBuilder.js'; diff --git a/packages/odata/src/index.ts b/packages/odata/src/index.ts index 8a5cd6128..cb5e76fbb 100644 --- a/packages/odata/src/index.ts +++ b/packages/odata/src/index.ts @@ -1,3 +1,3 @@ -export { GridOdataService } from './services/grid-odata.service'; -export { OdataQueryBuilderService } from './services/odataQueryBuilder.service'; -export type * from './interfaces/index'; +export { GridOdataService } from './services/grid-odata.service.js'; +export { OdataQueryBuilderService } from './services/odataQueryBuilder.service.js'; +export type * from './interfaces/index.js'; diff --git a/packages/odata/src/interfaces/index.ts b/packages/odata/src/interfaces/index.ts index d22639663..70947c142 100644 --- a/packages/odata/src/interfaces/index.ts +++ b/packages/odata/src/interfaces/index.ts @@ -1,3 +1,3 @@ -export type * from './odataOption.interface'; -export type * from './odataServiceApi.interface'; -export type * from './odataSortingOption.interface'; +export type * from './odataOption.interface.js'; +export type * from './odataServiceApi.interface.js'; +export type * from './odataSortingOption.interface.js'; diff --git a/packages/odata/src/interfaces/odataServiceApi.interface.ts b/packages/odata/src/interfaces/odataServiceApi.interface.ts index bf5cb40f5..60a3e87c2 100644 --- a/packages/odata/src/interfaces/odataServiceApi.interface.ts +++ b/packages/odata/src/interfaces/odataServiceApi.interface.ts @@ -1,6 +1,6 @@ import type { BackendServiceApi } from '@slickgrid-universal/common'; -import type { OdataOption } from './odataOption.interface'; -import type { GridOdataService } from '../services/index'; +import type { OdataOption } from './odataOption.interface.js'; +import type { GridOdataService } from '../services/index.js'; export interface OdataServiceApi extends BackendServiceApi { /** Backend Service Options */ diff --git a/packages/odata/src/services/__tests__/grid-odata.service.spec.ts b/packages/odata/src/services/__tests__/grid-odata.service.spec.ts index 568ae7806..69fead4cc 100644 --- a/packages/odata/src/services/__tests__/grid-odata.service.spec.ts +++ b/packages/odata/src/services/__tests__/grid-odata.service.spec.ts @@ -18,8 +18,8 @@ import { type SlickGrid, } from '@slickgrid-universal/common'; -import { GridOdataService } from '../grid-odata.service'; -import type { OdataOption } from '../../interfaces/odataOption.interface'; +import { GridOdataService } from '../grid-odata.service.js'; +import type { OdataOption } from '../../interfaces/odataOption.interface.js'; const DEFAULT_ITEMS_PER_PAGE = 25; const DEFAULT_PAGE_SIZE = 20; diff --git a/packages/odata/src/services/__tests__/odataQueryBuilder.service.spec.ts b/packages/odata/src/services/__tests__/odataQueryBuilder.service.spec.ts index 2d281514b..e06015091 100644 --- a/packages/odata/src/services/__tests__/odataQueryBuilder.service.spec.ts +++ b/packages/odata/src/services/__tests__/odataQueryBuilder.service.spec.ts @@ -1,7 +1,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { CaseType } from '@slickgrid-universal/common'; -import { OdataQueryBuilderService } from '../odataQueryBuilder.service'; +import { OdataQueryBuilderService } from '../odataQueryBuilder.service.js'; describe('OdataService', () => { let service: OdataQueryBuilderService; diff --git a/packages/odata/src/services/grid-odata.service.ts b/packages/odata/src/services/grid-odata.service.ts index 2891949ae..a506ea75a 100644 --- a/packages/odata/src/services/grid-odata.service.ts +++ b/packages/odata/src/services/grid-odata.service.ts @@ -30,8 +30,8 @@ import { SortDirection, } from '@slickgrid-universal/common'; import { getHtmlStringOutput, stripTags, titleCase } from '@slickgrid-universal/utils'; -import { OdataQueryBuilderService } from './odataQueryBuilder.service'; -import type { OdataOption, OdataSortingOption } from '../interfaces/index'; +import { OdataQueryBuilderService } from './odataQueryBuilder.service.js'; +import type { OdataOption, OdataSortingOption } from '../interfaces/index.js'; const DEFAULT_ITEMS_PER_PAGE = 25; const DEFAULT_PAGE_SIZE = 20; diff --git a/packages/odata/src/services/index.ts b/packages/odata/src/services/index.ts index cf919ef96..7994b0ef0 100644 --- a/packages/odata/src/services/index.ts +++ b/packages/odata/src/services/index.ts @@ -1,2 +1,2 @@ -export * from './grid-odata.service'; -export * from './odataQueryBuilder.service'; +export * from './grid-odata.service.js'; +export * from './odataQueryBuilder.service.js'; diff --git a/packages/odata/src/services/odataQueryBuilder.service.ts b/packages/odata/src/services/odataQueryBuilder.service.ts index 2cc69f106..d6326469f 100644 --- a/packages/odata/src/services/odataQueryBuilder.service.ts +++ b/packages/odata/src/services/odataQueryBuilder.service.ts @@ -1,6 +1,6 @@ import { CaseType, type Column } from '@slickgrid-universal/common'; import { titleCase } from '@slickgrid-universal/utils'; -import type { OdataOption } from '../interfaces/odataOption.interface'; +import type { OdataOption } from '../interfaces/odataOption.interface.js'; export class OdataQueryBuilderService { _columnFilters: any; diff --git a/packages/pagination-component/src/__tests__/slick-pagination-without-i18n.spec.ts b/packages/pagination-component/src/__tests__/slick-pagination-without-i18n.spec.ts index 3612989d4..714ff7e72 100644 --- a/packages/pagination-component/src/__tests__/slick-pagination-without-i18n.spec.ts +++ b/packages/pagination-component/src/__tests__/slick-pagination-without-i18n.spec.ts @@ -2,8 +2,8 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { type GridOption, type Locale, type PaginationService, type SlickGrid } from '@slickgrid-universal/common'; import { EventPubSubService } from '@slickgrid-universal/event-pub-sub'; -import { TranslateServiceStub } from '../../../../test/translateServiceStub'; -import { SlickPaginationComponent } from '../slick-pagination.component'; +import { TranslateServiceStub } from '../../../../test/translateServiceStub.js'; +import { SlickPaginationComponent } from '../slick-pagination.component.js'; function removeExtraSpaces(text: string) { return `${text}`.replace(/\s{2,}/g, ''); diff --git a/packages/pagination-component/src/__tests__/slick-pagination.spec.ts b/packages/pagination-component/src/__tests__/slick-pagination.spec.ts index 0a436b4e4..fd762d133 100644 --- a/packages/pagination-component/src/__tests__/slick-pagination.spec.ts +++ b/packages/pagination-component/src/__tests__/slick-pagination.spec.ts @@ -2,8 +2,8 @@ import { afterEach, beforeAll, beforeEach, describe, expect, it, test, vi } from import { type GridOption, type PaginationService, type SlickGrid, } from '@slickgrid-universal/common'; import { EventPubSubService } from '@slickgrid-universal/event-pub-sub'; -import { TranslateServiceStub } from '../../../../test/translateServiceStub'; -import { SlickPaginationComponent } from '../slick-pagination.component'; +import { TranslateServiceStub } from '../../../../test/translateServiceStub.js'; +import { SlickPaginationComponent } from '../slick-pagination.component.js'; vi.useFakeTimers(); diff --git a/packages/pagination-component/src/index.ts b/packages/pagination-component/src/index.ts index 0903f549d..734d135b8 100644 --- a/packages/pagination-component/src/index.ts +++ b/packages/pagination-component/src/index.ts @@ -1 +1 @@ -export * from './slick-pagination.component'; +export * from './slick-pagination.component.js'; diff --git a/packages/row-detail-view-plugin/src/index.ts b/packages/row-detail-view-plugin/src/index.ts index 4b676be57..067ab6b0b 100644 --- a/packages/row-detail-view-plugin/src/index.ts +++ b/packages/row-detail-view-plugin/src/index.ts @@ -1 +1 @@ -export * from './slickRowDetailView'; \ No newline at end of file +export * from './slickRowDetailView.js'; \ No newline at end of file diff --git a/packages/row-detail-view-plugin/src/slickRowDetailView.spec.ts b/packages/row-detail-view-plugin/src/slickRowDetailView.spec.ts index 7730dbee9..22f860de2 100644 --- a/packages/row-detail-view-plugin/src/slickRowDetailView.spec.ts +++ b/packages/row-detail-view-plugin/src/slickRowDetailView.spec.ts @@ -11,7 +11,7 @@ import { } from '@slickgrid-universal/common'; import { EventPubSubService } from '@slickgrid-universal/event-pub-sub'; -import { SlickRowDetailView } from './slickRowDetailView'; +import { SlickRowDetailView } from './slickRowDetailView.js'; vi.useFakeTimers(); diff --git a/packages/rxjs-observable/src/index.ts b/packages/rxjs-observable/src/index.ts index 20ec82fde..4f0540bca 100644 --- a/packages/rxjs-observable/src/index.ts +++ b/packages/rxjs-observable/src/index.ts @@ -1 +1 @@ -export * from './rxjs.resource'; +export * from './rxjs.resource.js'; diff --git a/packages/rxjs-observable/src/rxjs-resource.spec.ts b/packages/rxjs-observable/src/rxjs-resource.spec.ts index 1bdf3d4e2..673b2c1ac 100644 --- a/packages/rxjs-observable/src/rxjs-resource.spec.ts +++ b/packages/rxjs-observable/src/rxjs-resource.spec.ts @@ -1,7 +1,7 @@ import { beforeEach, describe, expect, it } from 'vitest'; import { EMPTY, isObservable, Observable, Subject, } from 'rxjs'; -import { RxJsResource } from './rxjs.resource'; +import { RxJsResource } from './rxjs.resource.js'; describe('RxJs Resource', () => { let service: RxJsResource; diff --git a/packages/text-export/src/index.ts b/packages/text-export/src/index.ts index c0185d56e..4f50a659d 100644 --- a/packages/text-export/src/index.ts +++ b/packages/text-export/src/index.ts @@ -1 +1 @@ -export { TextExportService } from './textExport.service'; +export { TextExportService } from './textExport.service.js'; diff --git a/packages/text-export/src/textExport.service.spec.ts b/packages/text-export/src/textExport.service.spec.ts index a638775a7..470086012 100644 --- a/packages/text-export/src/textExport.service.spec.ts +++ b/packages/text-export/src/textExport.service.spec.ts @@ -17,9 +17,9 @@ import { type TextExportOption, } from '@slickgrid-universal/common'; -import { ContainerServiceStub } from '../../../test/containerServiceStub'; -import { TranslateServiceStub } from '../../../test/translateServiceStub'; -import { TextExportService } from './textExport.service'; +import { ContainerServiceStub } from '../../../test/containerServiceStub.js'; +import { TranslateServiceStub } from '../../../test/translateServiceStub.js'; +import { TextExportService } from './textExport.service.js'; function removeMultipleSpaces(inputText: string) { return `${inputText}`.replace(/ +/g, ''); diff --git a/packages/utils/src/__tests__/domUtils.spec.ts b/packages/utils/src/__tests__/domUtils.spec.ts index 5bc494465..19bcb49de 100644 --- a/packages/utils/src/__tests__/domUtils.spec.ts +++ b/packages/utils/src/__tests__/domUtils.spec.ts @@ -17,7 +17,7 @@ import { htmlEntityDecode, htmlEncodeWithPadding, insertAfterElement, -} from '../domUtils'; +} from '../domUtils.js'; describe('Service/domUtilies', () => { describe('calculateAvailableSpace() method', () => { diff --git a/packages/utils/src/__tests__/nodeExtend.spec.ts b/packages/utils/src/__tests__/nodeExtend.spec.ts index 0b7b007d1..9668e9028 100644 --- a/packages/utils/src/__tests__/nodeExtend.spec.ts +++ b/packages/utils/src/__tests__/nodeExtend.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it, test } from 'vitest'; -import { extend } from '../nodeExtend'; +import { extend } from '../nodeExtend.js'; // port of all the node-extend tests // original tests can be found at: https://github.com/justmoon/node-extend/blob/main/test/index.js diff --git a/packages/utils/src/__tests__/stripTagsUtil.spec.ts b/packages/utils/src/__tests__/stripTagsUtil.spec.ts index 918d8bfb7..4b03b3164 100644 --- a/packages/utils/src/__tests__/stripTagsUtil.spec.ts +++ b/packages/utils/src/__tests__/stripTagsUtil.spec.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from 'vitest'; -import { stripTags } from '../stripTagsUtil'; +import { stripTags } from '../stripTagsUtil.js'; describe('stripTags()', () => { describe('with no optional parameters', () => { diff --git a/packages/utils/src/__tests__/utils.spec.ts b/packages/utils/src/__tests__/utils.spec.ts index 94c4ca157..3d4fe4183 100644 --- a/packages/utils/src/__tests__/utils.spec.ts +++ b/packages/utils/src/__tests__/utils.spec.ts @@ -26,7 +26,7 @@ import { toSnakeCase, uniqueArray, uniqueObjectArray, -} from '../utils'; +} from '../utils.js'; function removeExtraSpaces(text: string) { return `${text}`.replace(/\s+/g, ' ').replace(/\r\n/g, '').trim(); diff --git a/packages/utils/src/domUtils.ts b/packages/utils/src/domUtils.ts index 1b6b8a4d0..4e1e0ff93 100644 --- a/packages/utils/src/domUtils.ts +++ b/packages/utils/src/domUtils.ts @@ -1,4 +1,5 @@ -import type { HtmlElementPosition, InferDOMType } from './models/index'; +import type { HtmlElementPosition } from './models/interfaces.js'; +import type { InferDOMType } from './models/types.js'; /** calculate available space for each side of the DOM element */ export function calculateAvailableSpace(element: HTMLElement): { top: number; bottom: number; left: number; right: number; } { diff --git a/packages/utils/src/index.ts b/packages/utils/src/index.ts index 8d0022b7a..2a99a957d 100644 --- a/packages/utils/src/index.ts +++ b/packages/utils/src/index.ts @@ -1,5 +1,6 @@ -export * from './domUtils'; -export * from './nodeExtend'; -export * from './stripTagsUtil'; -export type * from './models'; -export * from './utils'; \ No newline at end of file +export * from './domUtils.js'; +export * from './nodeExtend.js'; +export * from './stripTagsUtil.js'; +export type * from './models/interfaces.js'; +export type * from './models/types.js'; +export * from './utils.js'; \ No newline at end of file diff --git a/packages/utils/src/models/index.ts b/packages/utils/src/models/index.ts deleted file mode 100644 index 65194c3f0..000000000 --- a/packages/utils/src/models/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type * from './interfaces'; -export type * from './types'; diff --git a/packages/utils/src/stripTagsUtil.ts b/packages/utils/src/stripTagsUtil.ts index ff71b49c6..f8b00d3c1 100644 --- a/packages/utils/src/stripTagsUtil.ts +++ b/packages/utils/src/stripTagsUtil.ts @@ -11,7 +11,7 @@ * https://github.com/ericnorris/striptags/blob/main/LICENSE */ -import { isNumber } from './utils'; +import { isNumber } from './utils.js'; const STATE_PLAINTEXT = Symbol('plaintext'); const STATE_HTML = Symbol('html'); diff --git a/packages/utils/src/utils.ts b/packages/utils/src/utils.ts index bd6fbb526..d39cd807e 100644 --- a/packages/utils/src/utils.ts +++ b/packages/utils/src/utils.ts @@ -1,5 +1,5 @@ -import type { AnyFunction } from './models/types'; -import { extend } from './nodeExtend'; +import type { AnyFunction } from './models/types.js'; +import { extend } from './nodeExtend.js'; /** * Add an item to an array only when the item does not exists, when the item is an object we will be using their "id" to compare diff --git a/packages/vanilla-bundle/src/components/__tests__/slick-vanilla-grid.spec.ts b/packages/vanilla-bundle/src/components/__tests__/slick-vanilla-grid.spec.ts index 10330ec67..96204dc03 100644 --- a/packages/vanilla-bundle/src/components/__tests__/slick-vanilla-grid.spec.ts +++ b/packages/vanilla-bundle/src/components/__tests__/slick-vanilla-grid.spec.ts @@ -50,12 +50,12 @@ import { import type { GraphqlService, GraphqlPaginatedResult, GraphqlServiceApi, GraphqlServiceOption } from '@slickgrid-universal/graphql'; import { EventPubSubService } from '@slickgrid-universal/event-pub-sub'; -import { SlickVanillaGridBundle } from '../slick-vanilla-grid-bundle'; -import { TranslateServiceStub } from '../../../../../test/translateServiceStub'; -import { HttpStub } from '../../../../../test/httpClientStub'; -import { MockSlickEvent, MockSlickEventHandler } from '../../../../../test/mockSlickEvent'; -import { UniversalContainerService } from '../../services/universalContainer.service'; -import { RxJsResourceStub } from '../../../../../test/rxjsResourceStub'; +import { SlickVanillaGridBundle } from '../slick-vanilla-grid-bundle.js'; +import { TranslateServiceStub } from '../../../../../test/translateServiceStub.js'; +import { HttpStub } from '../../../../../test/httpClientStub.js'; +import { MockSlickEvent, MockSlickEventHandler } from '../../../../../test/mockSlickEvent.js'; +import { UniversalContainerService } from '../../services/universalContainer.service.js'; +import { RxJsResourceStub } from '../../../../../test/rxjsResourceStub.js'; vi.useFakeTimers(); diff --git a/packages/vanilla-bundle/src/components/slick-vanilla-grid-bundle.ts b/packages/vanilla-bundle/src/components/slick-vanilla-grid-bundle.ts index a4ecfb03e..012cf6e45 100644 --- a/packages/vanilla-bundle/src/components/slick-vanilla-grid-bundle.ts +++ b/packages/vanilla-bundle/src/components/slick-vanilla-grid-bundle.ts @@ -58,8 +58,8 @@ import { SlickEmptyWarningComponent } from '@slickgrid-universal/empty-warning-c import { SlickFooterComponent } from '@slickgrid-universal/custom-footer-component'; import { SlickPaginationComponent } from '@slickgrid-universal/pagination-component'; -import { type SlickerGridInstance } from '../interfaces/slickerGridInstance.interface'; -import { UniversalContainerService } from '../services/universalContainer.service'; +import { type SlickerGridInstance } from '../interfaces/slickerGridInstance.interface.js'; +import { UniversalContainerService } from '../services/universalContainer.service.js'; const WARN_NO_PREPARSE_DATE_SIZE = 10000; // data size to warn user when pre-parse isn't enabled diff --git a/packages/vanilla-bundle/src/index.ts b/packages/vanilla-bundle/src/index.ts index 39c634e3c..4b4e35612 100644 --- a/packages/vanilla-bundle/src/index.ts +++ b/packages/vanilla-bundle/src/index.ts @@ -3,7 +3,7 @@ import { BindingService } from '@slickgrid-universal/binding'; import { EventPubSubService } from '@slickgrid-universal/event-pub-sub'; import { SlickEmptyWarningComponent } from '@slickgrid-universal/empty-warning-component'; import { SlickPaginationComponent } from '@slickgrid-universal/pagination-component'; -import { SlickVanillaGridBundle } from './components/slick-vanilla-grid-bundle'; +import { SlickVanillaGridBundle } from './components/slick-vanilla-grid-bundle.js'; const Slicker: any = { GridBundle: SlickVanillaGridBundle, @@ -27,5 +27,5 @@ export { BindingService }; export { Aggregators, Editors, Enums, EventPubSubService, Filters, Formatters, GroupTotalFormatters, SortComparers, Utilities }; export { SlickEmptyWarningComponent, SlickPaginationComponent, SlickVanillaGridBundle }; // export the custom components & interfaces export { Slicker }; -export type * from './interfaces/index'; -export * from './services/index'; \ No newline at end of file +export type * from './interfaces/index.js'; +export * from './services/index.js'; \ No newline at end of file diff --git a/packages/vanilla-bundle/src/interfaces/index.ts b/packages/vanilla-bundle/src/interfaces/index.ts index 1afafa22d..efb2b1109 100644 --- a/packages/vanilla-bundle/src/interfaces/index.ts +++ b/packages/vanilla-bundle/src/interfaces/index.ts @@ -1 +1 @@ -export type * from './slickerGridInstance.interface'; +export type * from './slickerGridInstance.interface.js'; diff --git a/packages/vanilla-bundle/src/services/__tests__/universalContainer.service.spec.ts b/packages/vanilla-bundle/src/services/__tests__/universalContainer.service.spec.ts index b2114c176..bfa39f394 100644 --- a/packages/vanilla-bundle/src/services/__tests__/universalContainer.service.spec.ts +++ b/packages/vanilla-bundle/src/services/__tests__/universalContainer.service.spec.ts @@ -1,7 +1,7 @@ import { beforeEach, describe, expect, it } from 'vitest'; import { SharedService } from '@slickgrid-universal/common'; -import { UniversalContainerService } from '../universalContainer.service'; +import { UniversalContainerService } from '../universalContainer.service.js'; describe('UniversalContainer Service', () => { let service: UniversalContainerService; diff --git a/packages/vanilla-bundle/src/services/index.ts b/packages/vanilla-bundle/src/services/index.ts index e549c1f2a..8878a2a7f 100644 --- a/packages/vanilla-bundle/src/services/index.ts +++ b/packages/vanilla-bundle/src/services/index.ts @@ -1 +1 @@ -export * from './universalContainer.service'; +export * from './universalContainer.service.js'; diff --git a/packages/vanilla-force-bundle/src/__tests__/vanilla-force-bundle.spec.ts b/packages/vanilla-force-bundle/src/__tests__/vanilla-force-bundle.spec.ts index e4abdf62c..1e63a7547 100644 --- a/packages/vanilla-force-bundle/src/__tests__/vanilla-force-bundle.spec.ts +++ b/packages/vanilla-force-bundle/src/__tests__/vanilla-force-bundle.spec.ts @@ -31,10 +31,10 @@ import { SlickCustomTooltip } from '@slickgrid-universal/custom-tooltip-plugin'; import { TextExportService } from '@slickgrid-universal/text-export'; import { UniversalContainerService } from '@slickgrid-universal/vanilla-bundle'; -import { VanillaForceGridBundle } from '../vanilla-force-bundle'; -import { TranslateServiceStub } from '../../../../test/translateServiceStub'; -import { MockSlickEvent, MockSlickEventHandler } from '../../../../test/mockSlickEvent'; -import { RxJsResourceStub } from '../../../../test/rxjsResourceStub'; +import { VanillaForceGridBundle } from '../vanilla-force-bundle.js'; +import { TranslateServiceStub } from '../../../../test/translateServiceStub.js'; +import { MockSlickEvent, MockSlickEventHandler } from '../../../../test/mockSlickEvent.js'; +import { RxJsResourceStub } from '../../../../test/rxjsResourceStub.js'; vi.useFakeTimers(); diff --git a/packages/vanilla-force-bundle/src/index.ts b/packages/vanilla-force-bundle/src/index.ts index c37c76b0d..357dd1deb 100644 --- a/packages/vanilla-force-bundle/src/index.ts +++ b/packages/vanilla-force-bundle/src/index.ts @@ -4,7 +4,7 @@ import { EventPubSubService } from '@slickgrid-universal/event-pub-sub'; import { SlickCompositeEditorComponent } from '@slickgrid-universal/composite-editor-component'; import { SlickEmptyWarningComponent } from '@slickgrid-universal/empty-warning-component'; import { SlickPaginationComponent } from '@slickgrid-universal/pagination-component'; -import { VanillaForceGridBundle } from './vanilla-force-bundle'; +import { VanillaForceGridBundle } from './vanilla-force-bundle.js'; const Slicker: any = { GridBundle: VanillaForceGridBundle, diff --git a/packages/vanilla-force-bundle/src/vanilla-force-bundle.ts b/packages/vanilla-force-bundle/src/vanilla-force-bundle.ts index 70f942850..e8fe7b819 100644 --- a/packages/vanilla-force-bundle/src/vanilla-force-bundle.ts +++ b/packages/vanilla-force-bundle/src/vanilla-force-bundle.ts @@ -29,7 +29,7 @@ import { TextExportService } from '@slickgrid-universal/text-export'; import { extend } from '@slickgrid-universal/utils'; import { SlickVanillaGridBundle, type UniversalContainerService } from '@slickgrid-universal/vanilla-bundle'; -import { SalesforceGlobalGridOptions } from './salesforce-global-grid-options'; +import { SalesforceGlobalGridOptions } from './salesforce-global-grid-options.js'; export class VanillaForceGridBundle extends SlickVanillaGridBundle { slickCompositeEditor: SlickCompositeEditorComponent | undefined; diff --git a/test/cypress/e2e/example02.cy.ts b/test/cypress/e2e/example02.cy.ts index 800d20ffd..12d62cab8 100644 --- a/test/cypress/e2e/example02.cy.ts +++ b/test/cypress/e2e/example02.cy.ts @@ -1,5 +1,6 @@ import { format } from '@formkit/tempo'; +// eslint-disable-next-line n/file-extension-in-import import { removeExtraSpaces } from '../plugins/utilities'; describe('Example 02 - Grouping & Aggregators', () => { diff --git a/test/cypress/e2e/example05.cy.ts b/test/cypress/e2e/example05.cy.ts index 0e2baaa99..9a25525a1 100644 --- a/test/cypress/e2e/example05.cy.ts +++ b/test/cypress/e2e/example05.cy.ts @@ -1,3 +1,4 @@ +// eslint-disable-next-line n/file-extension-in-import import { changeTimezone, zeroPadding } from '../plugins/utilities'; describe('Example 05 - Tree Data (from a flat dataset with parentId references)', () => { diff --git a/test/cypress/e2e/example07.cy.ts b/test/cypress/e2e/example07.cy.ts index 37774c478..60cb0469d 100644 --- a/test/cypress/e2e/example07.cy.ts +++ b/test/cypress/e2e/example07.cy.ts @@ -1,3 +1,4 @@ +// eslint-disable-next-line n/file-extension-in-import import { removeExtraSpaces } from '../plugins/utilities'; describe('Example 07 - Row Move & Checkbox Selector Selector Plugins', () => { diff --git a/test/cypress/e2e/example08.cy.ts b/test/cypress/e2e/example08.cy.ts index 4e627c022..497a384c0 100644 --- a/test/cypress/e2e/example08.cy.ts +++ b/test/cypress/e2e/example08.cy.ts @@ -1,3 +1,4 @@ +// eslint-disable-next-line n/file-extension-in-import import { removeExtraSpaces } from '../plugins/utilities'; describe('Example 08 - Column Span & Header Grouping', () => { diff --git a/test/cypress/e2e/example11.cy.ts b/test/cypress/e2e/example11.cy.ts index 4bb5fccfd..003314285 100644 --- a/test/cypress/e2e/example11.cy.ts +++ b/test/cypress/e2e/example11.cy.ts @@ -1,5 +1,6 @@ import { addDay, format } from '@formkit/tempo'; +// eslint-disable-next-line n/file-extension-in-import import { changeTimezone, zeroPadding } from '../plugins/utilities'; describe('Example 11 - Batch Editing', () => { diff --git a/test/cypress/e2e/example12.cy.ts b/test/cypress/e2e/example12.cy.ts index aa7b22fed..3a13d61a3 100644 --- a/test/cypress/e2e/example12.cy.ts +++ b/test/cypress/e2e/example12.cy.ts @@ -1,3 +1,4 @@ +// eslint-disable-next-line n/file-extension-in-import import { changeTimezone, zeroPadding } from '../plugins/utilities'; describe('Example 12 - Composite Editor Modal', () => { diff --git a/test/cypress/e2e/example17.cy.ts b/test/cypress/e2e/example17.cy.ts index f9541b313..05d1c7da0 100644 --- a/test/cypress/e2e/example17.cy.ts +++ b/test/cypress/e2e/example17.cy.ts @@ -1,3 +1,4 @@ +// eslint-disable-next-line n/file-extension-in-import import { getScrollDistanceWhenDragOutsideGrid } from '../support/drag'; describe('Example 17 - Auto-Scroll with Range Selector', () => { diff --git a/test/cypress/e2e/example27.cy.ts b/test/cypress/e2e/example27.cy.ts index 203d2a9de..7214d55cf 100644 --- a/test/cypress/e2e/example27.cy.ts +++ b/test/cypress/e2e/example27.cy.ts @@ -1,3 +1,4 @@ +// eslint-disable-next-line n/file-extension-in-import import { removeWhitespaces } from '../plugins/utilities'; describe('Example 27 - GraphQL with Infinite Scroll', () => { diff --git a/test/cypress/support/commands.ts b/test/cypress/support/commands.ts index 5ac907420..20fb7f80d 100644 --- a/test/cypress/support/commands.ts +++ b/test/cypress/support/commands.ts @@ -25,6 +25,7 @@ // Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... }) import '@4tw/cypress-drag-drop'; import 'cypress-real-events'; +// eslint-disable-next-line n/file-extension-in-import import { convertPosition } from './common'; declare global { diff --git a/test/cypress/support/drag.ts b/test/cypress/support/drag.ts index ca28e66da..e0d1f79ca 100644 --- a/test/cypress/support/drag.ts +++ b/test/cypress/support/drag.ts @@ -1,3 +1,4 @@ +// eslint-disable-next-line n/file-extension-in-import import { convertPosition } from './common'; declare global { diff --git a/test/cypress/support/index.ts b/test/cypress/support/index.ts index f5bd69551..e14091406 100644 --- a/test/cypress/support/index.ts +++ b/test/cypress/support/index.ts @@ -13,6 +13,7 @@ // https://on.cypress.io/configuration // *********************************************************** +// eslint-disable-next-line n/file-extension-in-import import './commands'; Cypress.on('window:before:load', function (window) { diff --git a/test/cypress/tsconfig.json b/test/cypress/tsconfig.json index 5e55bed1e..8063d41b5 100644 --- a/test/cypress/tsconfig.json +++ b/test/cypress/tsconfig.json @@ -4,8 +4,7 @@ "allowSyntheticDefaultImports": true, "esModuleInterop": true, "lib": ["es5", "dom"], - "types": ["@4tw/cypress-drag-drop", "cypress", "node"], - "jsx": "preserve" + "types": ["@4tw/cypress-drag-drop", "cypress", "node"] }, "include": ["**/*.ts"] }