diff --git a/projects/natural-editor/src/public-api.ts b/projects/natural-editor/src/public-api.ts index a8edd184..1da4280e 100644 --- a/projects/natural-editor/src/public-api.ts +++ b/projects/natural-editor/src/public-api.ts @@ -6,4 +6,4 @@ export {NaturalCustomCssDirective} from './lib/custom-css/custom-css.directive'; export {NaturalEditorComponent} from './lib/editor/editor.component'; -export {ImageUploader} from './lib/utils/image'; +export type {ImageUploader} from './lib/utils/image'; diff --git a/projects/natural/src/lib/modules/columns-picker/public-api.ts b/projects/natural/src/lib/modules/columns-picker/public-api.ts index a7cb85b3..bc7b9c49 100644 --- a/projects/natural/src/lib/modules/columns-picker/public-api.ts +++ b/projects/natural/src/lib/modules/columns-picker/public-api.ts @@ -2,5 +2,5 @@ * Public API Surface of natural */ -export {AvailableColumn, Button, SubButton} from './types'; +export type {AvailableColumn, Button, SubButton} from './types'; export * from './columns-picker.component'; diff --git a/projects/natural/src/lib/modules/common/public-api.ts b/projects/natural/src/lib/modules/common/public-api.ts index 02259242..9254e21f 100644 --- a/projects/natural/src/lib/modules/common/public-api.ts +++ b/projects/natural/src/lib/modules/common/public-api.ts @@ -10,10 +10,9 @@ export {NaturalTimeAgoPipe} from './pipes/time-ago.pipe'; export * from './services/memory-storage'; export {NaturalSrcDensityDirective} from './directives/src-density.directive'; export {NaturalBackgroundDensityDirective} from './directives/background-density.directive'; -export { - NATURAL_SEO_CONFIG, +export {NATURAL_SEO_CONFIG, NaturalSeoService} from './services/seo.service'; +export type { NaturalSeoConfig, - NaturalSeoService, NaturalSeo, NaturalSeoBasic, NaturalSeoResolve, diff --git a/projects/natural/src/lib/modules/dropdown-components/public-api.ts b/projects/natural/src/lib/modules/dropdown-components/public-api.ts index cb2a0360..4d43c40c 100644 --- a/projects/natural/src/lib/modules/dropdown-components/public-api.ts +++ b/projects/natural/src/lib/modules/dropdown-components/public-api.ts @@ -1,26 +1,34 @@ /* * Public API Surface of natural-search dropdown components */ -export {TypeSelectConfiguration, TypeSelectItem, TypeSelectComponent} from './type-select/type-select.component'; +export { + type TypeSelectConfiguration, + type TypeSelectItem, + TypeSelectComponent, +} from './type-select/type-select.component'; export { - TypeSelectNaturalConfiguration, + type TypeSelectNaturalConfiguration, TypeNaturalSelectComponent, } from './type-natural-select/type-natural-select.component'; -export {TypeNumberConfiguration, TypeNumberComponent} from './type-number/type-number.component'; +export {type TypeNumberConfiguration, TypeNumberComponent} from './type-number/type-number.component'; export { - TypeHierarchicSelectorConfiguration, + type TypeHierarchicSelectorConfiguration, TypeHierarchicSelectorComponent, } from './type-hierarchic-selector/type-hierarchic-selector.component'; -export {TypeDateConfiguration, TypeDateComponent} from './type-date/type-date.component'; +export {type TypeDateConfiguration, TypeDateComponent} from './type-date/type-date.component'; -export {TypeDateRangeConfiguration, TypeDateRangeComponent} from './type-date-range/type-date-range.component'; +export {type TypeDateRangeConfiguration, TypeDateRangeComponent} from './type-date-range/type-date-range.component'; export {TypeTextComponent, InvalidWithValueStateMatcher} from './type-text/type-text.component'; -export {TypeBooleanConfiguration, TypeBooleanComponent} from './type-boolean/type-boolean.component'; -export {TypeOptionsConfiguration, TypeOption, TypeOptionsComponent} from './type-options/type-options.component'; -export {possibleComparableOperators, PossibleComparableOpertorKeys} from './types'; +export {type TypeBooleanConfiguration, TypeBooleanComponent} from './type-boolean/type-boolean.component'; +export { + type TypeOptionsConfiguration, + type TypeOption, + TypeOptionsComponent, +} from './type-options/type-options.component'; +export {possibleComparableOperators, type PossibleComparableOpertorKeys} from './types'; diff --git a/projects/natural/src/lib/modules/file/public-api.ts b/projects/natural/src/lib/modules/file/public-api.ts index cd2d969c..2bd308da 100644 --- a/projects/natural/src/lib/modules/file/public-api.ts +++ b/projects/natural/src/lib/modules/file/public-api.ts @@ -5,6 +5,6 @@ export * from './file-drop.directive'; export * from './file-select.directive'; export * from './file.service'; -export {InvalidFile, FileSelection} from './abstract-file'; +export type {InvalidFile, FileSelection} from './abstract-file'; export * from './component/file.component'; export * from './types'; diff --git a/projects/natural/src/lib/modules/logger/public-api.ts b/projects/natural/src/lib/modules/logger/public-api.ts index 6ed86829..a0e981bd 100644 --- a/projects/natural/src/lib/modules/logger/public-api.ts +++ b/projects/natural/src/lib/modules/logger/public-api.ts @@ -4,10 +4,5 @@ export {provideErrorHandler} from './error.module'; -export { - NaturalErrorHandler, - NaturalLoggerConfigExtra, - NaturalLoggerConfigUrl, - NaturalLoggerExtra, - NaturalLoggerType, -} from './error-handler'; +export {NaturalErrorHandler, NaturalLoggerConfigExtra, NaturalLoggerConfigUrl} from './error-handler'; +export type {NaturalLoggerExtra, NaturalLoggerType} from './error-handler'; diff --git a/projects/natural/src/lib/modules/relations/relations.component.ts b/projects/natural/src/lib/modules/relations/relations.component.ts index fdb924a2..7e7df0f5 100644 --- a/projects/natural/src/lib/modules/relations/relations.component.ts +++ b/projects/natural/src/lib/modules/relations/relations.component.ts @@ -14,17 +14,11 @@ import { import {MatPaginatorModule, PageEvent} from '@angular/material/paginator'; import {NaturalDataSource, PaginatedData} from '../../classes/data-source'; import {NaturalQueryVariablesManager, PaginationInput, QueryVariables} from '../../classes/query-variable-manager'; -import { - HierarchicFiltersConfiguration, -} from '../../modules/hierarchic-selector/classes/hierarchic-filters-configuration'; +import {HierarchicFiltersConfiguration} from '../../modules/hierarchic-selector/classes/hierarchic-filters-configuration'; import {LinkableObject, NaturalLinkMutationService} from '../../services/link-mutation.service'; import {NaturalHierarchicConfiguration} from '../hierarchic-selector/classes/hierarchic-configuration'; -import { - HierarchicDialogConfig, -} from '../hierarchic-selector/hierarchic-selector-dialog/hierarchic-selector-dialog.component'; -import { - NaturalHierarchicSelectorDialogService, -} from '../hierarchic-selector/hierarchic-selector-dialog/hierarchic-selector-dialog.service'; +import {HierarchicDialogConfig} from '../hierarchic-selector/hierarchic-selector-dialog/hierarchic-selector-dialog.component'; +import {NaturalHierarchicSelectorDialogService} from '../hierarchic-selector/hierarchic-selector-dialog/hierarchic-selector-dialog.service'; import {NaturalSelectComponent} from '../select/select/select.component'; import {NaturalAbstractModelService} from '../../services/abstract-model.service'; import {ExtractTallOne, ExtractVall} from '../../types/types'; diff --git a/projects/natural/src/lib/modules/search/public-api.ts b/projects/natural/src/lib/modules/search/public-api.ts index 18619368..3b872462 100644 --- a/projects/natural/src/lib/modules/search/public-api.ts +++ b/projects/natural/src/lib/modules/search/public-api.ts @@ -1,11 +1,11 @@ /* * Public API Surface of natural-search */ -export {NaturalDropdownData} from './dropdown-container/dropdown.service'; -export {FilterGroupConditionField, Filter} from './classes/graphql-doctrine.types'; -export {DropdownComponent} from './types/dropdown-component'; -export {FlagFacet, DropdownFacet, Facet, NaturalSearchFacets} from './types/facet'; -export {NaturalSearchSelections, NaturalSearchSelection} from './types/values'; +export type {NaturalDropdownData} from './dropdown-container/dropdown.service'; +export type {FilterGroupConditionField, Filter} from './classes/graphql-doctrine.types'; +export type {DropdownComponent} from './types/dropdown-component'; +export type {FlagFacet, DropdownFacet, Facet, NaturalSearchFacets} from './types/facet'; +export type {NaturalSearchSelections, NaturalSearchSelection} from './types/values'; export {NaturalDropdownRef} from './dropdown-container/dropdown-ref'; export {NATURAL_DROPDOWN_DATA} from './dropdown-container/dropdown.service'; export {toGraphQLDoctrineFilter} from './classes/graphql-doctrine'; diff --git a/projects/natural/src/public-api.ts b/projects/natural/src/public-api.ts index 2972d134..38cb1125 100644 --- a/projects/natural/src/public-api.ts +++ b/projects/natural/src/public-api.ts @@ -20,14 +20,11 @@ export * from './lib/services/abstract-model.service'; export {NaturalDebounceService} from './lib/services/debounce.service'; export * from './lib/services/enum.service'; export * from './lib/services/link-mutation.service'; -export { - NaturalPersistenceService, - NATURAL_PERSISTENCE_VALIDATOR, - PersistenceValidator, -} from './lib/services/persistence.service'; +export {NaturalPersistenceService, NATURAL_PERSISTENCE_VALIDATOR} from './lib/services/persistence.service'; +export type {PersistenceValidator} from './lib/services/persistence.service'; export * from './lib/services/swiss-parsing-date-adapter.service'; -export { +export type { ExtractResolve, ExtractTall, ExtractTallOne, diff --git a/tsconfig.json b/tsconfig.json index 135ff0af..a29d626b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,9 +15,10 @@ "strictNullChecks": true, "forceConsistentCasingInFileNames": true, "noFallthroughCasesInSwitch": true, + "skipLibCheck": true, + "isolatedModules": true, "typeRoots": ["node_modules/@types"], "lib": ["ES2022", "dom"], - "skipLibCheck": true, "paths": { "@ecodev/natural": ["projects/natural/src/public-api"], "@ecodev/natural-editor": ["projects/natural-editor/src/public-api"]