@ng-atomic/common 19.0.0-preview.9 → 19.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/directives/fallback-src/index.d.ts +12 -1
- package/directives/ios-safari-scroll-buggyfill/index.d.ts +18 -2
- package/directives/molecules/column/index.d.ts +70 -1
- package/directives/resize-column/index.d.ts +24 -1
- package/fesm2022/ng-atomic-common-directives-fallback-src.mjs +3 -3
- package/fesm2022/ng-atomic-common-directives-fallback-src.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +7 -7
- package/fesm2022/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-directives-molecules-column.mjs +7 -7
- package/fesm2022/ng-atomic-common-directives-molecules-column.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-directives-resize-column.mjs +6 -6
- package/fesm2022/ng-atomic-common-directives-resize-column.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-interceptors-authorization.mjs +3 -3
- package/fesm2022/ng-atomic-common-interceptors-authorization.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-interceptors-throttle.mjs +6 -6
- package/fesm2022/ng-atomic-common-interceptors-throttle.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-interceptors-token.mjs +3 -3
- package/fesm2022/ng-atomic-common-interceptors-token.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-interceptors.mjs +4 -4
- package/fesm2022/ng-atomic-common-interceptors.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-models.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-actions.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-actions.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-auto-columns.mjs +4 -4
- package/fesm2022/ng-atomic-common-pipes-auto-columns.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-columns.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-columns.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-data-accessor.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-data-accessor.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-domain.mjs +17 -7
- package/fesm2022/ng-atomic-common-pipes-domain.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-error.mjs +11 -6
- package/fesm2022/ng-atomic-common-pipes-error.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-expression.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-expression.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-grouped-by.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-grouped-by.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-index-length.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-index-length.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-index.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-index.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-keys.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-keys.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-map.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-map.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-page.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-page.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-pagination.mjs +4 -4
- package/fesm2022/ng-atomic-common-pipes-pagination.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-query.mjs +4 -4
- package/fesm2022/ng-atomic-common-pipes-query.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-resolve-columns.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-resolve-columns.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-secret.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-secret.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-select-id.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-select-id.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-signal.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-signal.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-smart-field.mjs +7 -4
- package/fesm2022/ng-atomic-common-pipes-smart-field.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-sort-by.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-sort-by.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-sort.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-sort.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-style.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-style.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-pipes-yen.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-yen.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-app.mjs +6 -6
- package/fesm2022/ng-atomic-common-services-app.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-auth.mjs +29 -6
- package/fesm2022/ng-atomic-common-services-auth.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-breakpoint.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-breakpoint.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-chips-manager.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-chips-manager.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-csv.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-csv.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-editing.mjs +56 -0
- package/fesm2022/ng-atomic-common-services-editing.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-services-fab.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-fab.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-form-_index.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-form-_index.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-form-columns.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-form-columns.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-form-json-schema.mjs +127 -19
- package/fesm2022/ng-atomic-common-services-form-json-schema.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-form-pagination.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-form-pagination.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-form-sort.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-form-sort.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-form.mjs +37 -2
- package/fesm2022/ng-atomic-common-services-form.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-initializer.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-initializer.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-language.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-language.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-loading.mjs +6 -6
- package/fesm2022/ng-atomic-common-services-loading.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-navigation-history.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-navigation-history.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-query-resolver.mjs +7 -7
- package/fesm2022/ng-atomic-common-services-query-resolver.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-root-property.mjs +9 -9
- package/fesm2022/ng-atomic-common-services-root-property.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-router.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-router.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-secret.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-secret.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-sheets-actions.mjs +5 -5
- package/fesm2022/ng-atomic-common-services-sheets-actions.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-sheets.mjs +11 -14
- package/fesm2022/ng-atomic-common-services-sheets.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-side-app.mjs +6 -6
- package/fesm2022/ng-atomic-common-services-side-app.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-side-nav-mode.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-side-nav-mode.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-snack-bar.mjs +7 -7
- package/fesm2022/ng-atomic-common-services-snack-bar.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-spreadsheet.mjs +433 -197
- package/fesm2022/ng-atomic-common-services-spreadsheet.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-services-ui.mjs +45 -19
- package/fesm2022/ng-atomic-common-services-ui.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-stores-entities.mjs +19 -18
- package/fesm2022/ng-atomic-common-stores-entities.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-stores-entity.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-stores-pagination.mjs +3 -3
- package/fesm2022/ng-atomic-common-stores-pagination.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-stores-query.mjs +3 -3
- package/fesm2022/ng-atomic-common-stores-query.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-stores-selection.mjs +3 -3
- package/fesm2022/ng-atomic-common-stores-selection.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-stores-sort.mjs +3 -3
- package/fesm2022/ng-atomic-common-stores-sort.mjs.map +1 -1
- package/fesm2022/ng-atomic-common-utils.mjs +22 -12
- package/fesm2022/ng-atomic-common-utils.mjs.map +1 -1
- package/fesm2022/ng-atomic-common.mjs +340 -50
- package/fesm2022/ng-atomic-common.mjs.map +1 -1
- package/index.d.ts +111 -1
- package/interceptors/authorization/index.d.ts +20 -1
- package/interceptors/index.d.ts +10 -1
- package/interceptors/throttle/index.d.ts +25 -1
- package/interceptors/token/index.d.ts +17 -1
- package/models/index.d.ts +32 -11
- package/package.json +15 -35
- package/pipes/actions/index.d.ts +11 -1
- package/pipes/auto-columns/index.d.ts +10 -1
- package/pipes/columns/index.d.ts +12 -1
- package/pipes/data-accessor/index.d.ts +23 -1
- package/pipes/domain/index.d.ts +72 -1
- package/pipes/error/index.d.ts +21 -1
- package/pipes/expression/index.d.ts +13 -1
- package/pipes/grouped-by/index.d.ts +13 -1
- package/pipes/index/index.d.ts +17 -1
- package/pipes/index-length/index.d.ts +15 -1
- package/pipes/keys/index.d.ts +12 -1
- package/pipes/map/index.d.ts +10 -1
- package/pipes/page/index.d.ts +14 -1
- package/pipes/pagination/index.d.ts +28 -1
- package/pipes/query/index.d.ts +14 -1
- package/pipes/resolve-columns/index.d.ts +14 -1
- package/pipes/secret/index.d.ts +11 -1
- package/pipes/select-id/index.d.ts +16 -1
- package/pipes/signal/index.d.ts +15 -1
- package/pipes/smart-field/index.d.ts +102 -1
- package/pipes/sort/index.d.ts +11 -1
- package/pipes/sort-by/index.d.ts +20 -1
- package/pipes/style/index.d.ts +22 -1
- package/pipes/yen/index.d.ts +10 -1
- package/services/app/index.d.ts +37 -1
- package/services/auth/index.d.ts +56 -1
- package/services/breakpoint/index.d.ts +35 -1
- package/services/chips-manager/index.d.ts +14 -1
- package/services/csv/index.d.ts +9 -1
- package/services/editing/index.d.ts +30 -0
- package/services/fab/index.d.ts +22 -1
- package/services/form/_index/index.d.ts +61 -1
- package/services/form/columns/index.d.ts +68 -1
- package/services/form/index.d.ts +34 -1
- package/services/form/json-schema/index.d.ts +73 -1
- package/services/form/pagination/index.d.ts +21 -1
- package/services/form/sort/index.d.ts +21 -1
- package/services/initializer/index.d.ts +24 -1
- package/services/language/index.d.ts +16 -1
- package/services/loading/index.d.ts +33 -1
- package/services/navigation-history/index.d.ts +17 -1
- package/services/query-resolver/index.d.ts +32 -1
- package/services/root-property/index.d.ts +100 -2
- package/services/router/index.d.ts +15 -1
- package/services/secret/index.d.ts +9 -1
- package/services/sheets/actions/index.d.ts +12 -1
- package/services/sheets/index.d.ts +20 -2
- package/services/side-app/index.d.ts +24 -1
- package/services/side-nav-mode/index.d.ts +16 -1
- package/services/snack-bar/index.d.ts +22 -2
- package/services/spreadsheet/index.d.ts +307 -4
- package/services/ui/index.d.ts +104 -2
- package/stores/entities/index.d.ts +169 -6
- package/stores/entity/index.d.ts +31 -1
- package/stores/pagination/index.d.ts +24 -1
- package/stores/query/index.d.ts +22 -1
- package/stores/selection/index.d.ts +28 -1
- package/stores/sort/index.d.ts +25 -1
- package/utils/index.d.ts +236 -13
- package/common.module.d.ts +0 -15
- package/directives/fallback-src/fallback-src.directive.d.ts +0 -9
- package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.d.ts +0 -8
- package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.d.ts +0 -8
- package/directives/molecules/column/column.molecule.d.ts +0 -67
- package/directives/resize-column/resize-column.directive.d.ts +0 -21
- package/directives/resize-column/resize-handle.component.d.ts +0 -5
- package/interceptors/authorization/authorization.interceptor.d.ts +0 -16
- package/interceptors/interceptors.module.d.ts +0 -7
- package/interceptors/throttle/throttle.interceptor.d.ts +0 -23
- package/interceptors/token/authorization.interceptor.d.ts +0 -13
- package/models/menu-item.d.ts +0 -4
- package/pipes/actions/actions.pipe.d.ts +0 -8
- package/pipes/auto-columns/auto-columns.pipe.d.ts +0 -7
- package/pipes/columns/columns.pipe.d.ts +0 -9
- package/pipes/data-accessor/data-accessor.pipe.d.ts +0 -19
- package/pipes/domain/domain.pipe.d.ts +0 -59
- package/pipes/error/error.pipe.d.ts +0 -16
- package/pipes/expression/expression.pipe.d.ts +0 -9
- package/pipes/grouped-by/grouped-by.pipe.d.ts +0 -10
- package/pipes/index/index.pipe.d.ts +0 -11
- package/pipes/index-length/index-length.pipe.d.ts +0 -10
- package/pipes/keys/keys.pipe.d.ts +0 -9
- package/pipes/map/map.pipe.d.ts +0 -7
- package/pipes/page/page.pipe.d.ts +0 -11
- package/pipes/pagination/pagination.pipe.d.ts +0 -25
- package/pipes/query/query.pipe.d.ts +0 -11
- package/pipes/resolve-columns/resolve-columns.pipe.d.ts +0 -11
- package/pipes/secret/secret.pipe.d.ts +0 -8
- package/pipes/select-id/select-id.pipe.d.ts +0 -12
- package/pipes/signal/signal.pipe.d.ts +0 -11
- package/pipes/smart-field/smart-field.pipe.d.ts +0 -98
- package/pipes/sort/sort.pipe.d.ts +0 -8
- package/pipes/sort-by/sort-by.pipe.d.ts +0 -17
- package/pipes/style/style.pipe.d.ts +0 -18
- package/pipes/yen/yen.pipe.d.ts +0 -7
- package/services/app/app.service.d.ts +0 -34
- package/services/auth/auth.service.d.ts +0 -48
- package/services/breakpoint/breakpoint.service.d.ts +0 -29
- package/services/chips-manager/chips.manager.d.ts +0 -11
- package/services/csv/csv.service.d.ts +0 -6
- package/services/fab/fab.service.d.ts +0 -18
- package/services/form/_index/index.service.d.ts +0 -64
- package/services/form/columns/columns.service.d.ts +0 -63
- package/services/form/form.service.d.ts +0 -7
- package/services/form/json-schema/json-schema.d.ts +0 -2
- package/services/form/json-schema/json-schema.service.d.ts +0 -65
- package/services/form/pagination/pagination.service.d.ts +0 -16
- package/services/form/sort/sort.service.d.ts +0 -17
- package/services/initializer/initializer.service.d.ts +0 -22
- package/services/language/language.service.d.ts +0 -12
- package/services/loading/loading.service.d.ts +0 -30
- package/services/navigation-history/navigation-history.service.d.ts +0 -14
- package/services/query-resolver/query-resolver.service.d.ts +0 -27
- package/services/root-property/root-property.di.d.ts +0 -1
- package/services/root-property/root-property.service.d.ts +0 -94
- package/services/router/router.service.d.ts +0 -10
- package/services/secret/secret.service.d.ts +0 -6
- package/services/sheets/actions/actions.sheet.d.ts +0 -9
- package/services/sheets/sheets.module.d.ts +0 -11
- package/services/sheets/sheets.service.d.ts +0 -10
- package/services/side-app/side-app.service.d.ts +0 -21
- package/services/side-nav-mode/side-nav-mode.service.d.ts +0 -12
- package/services/snack-bar/snack-bar.module.d.ts +0 -8
- package/services/snack-bar/snack-bar.service.d.ts +0 -11
- package/services/spreadsheet/directives/grid-cell.directive.d.ts +0 -41
- package/services/spreadsheet/directives/index.d.ts +0 -1
- package/services/spreadsheet/features/clipboard.service.d.ts +0 -15
- package/services/spreadsheet/features/data.service.d.ts +0 -16
- package/services/spreadsheet/features/editor.service.d.ts +0 -22
- package/services/spreadsheet/features/grid.service.d.ts +0 -17
- package/services/spreadsheet/features/index.d.ts +0 -7
- package/services/spreadsheet/features/navigation.service.d.ts +0 -17
- package/services/spreadsheet/features/protection.service.d.ts +0 -24
- package/services/spreadsheet/features/selection.service.d.ts +0 -40
- package/services/spreadsheet/models/cell.model.d.ts +0 -17
- package/services/spreadsheet/models/index.d.ts +0 -1
- package/services/spreadsheet/spreadsheet.service.d.ts +0 -29
- package/services/ui/ui.helpers.d.ts +0 -32
- package/services/ui/ui.service.d.ts +0 -22
- package/stores/entities/di.d.ts +0 -23
- package/stores/entities/entity-store-adapter.d.ts +0 -28
- package/stores/entities/entity-store-manager.d.ts +0 -12
- package/stores/entities/entity-store.d.ts +0 -71
- package/stores/entities/proxy-id.service.d.ts +0 -10
- package/stores/entities/task-composer.d.ts +0 -35
- package/stores/entity/entity.store.d.ts +0 -26
- package/stores/pagination/pagination.store.d.ts +0 -19
- package/stores/query/query.store.d.ts +0 -17
- package/stores/selection/selection.store.d.ts +0 -23
- package/stores/sort/sort.store.d.ts +0 -20
- package/utils/comma/comma.d.ts +0 -3
- package/utils/comma/index.d.ts +0 -1
- package/utils/compare-by-id/compare-by-id.d.ts +0 -5
- package/utils/compare-by-id/index.d.ts +0 -1
- package/utils/date-utils/date-utils.d.ts +0 -10
- package/utils/date-utils/index.d.ts +0 -1
- package/utils/diff/diff.d.ts +0 -5
- package/utils/diff/index.d.ts +0 -1
- package/utils/expression/expression.transformer.d.ts +0 -12
- package/utils/expression/index.d.ts +0 -1
- package/utils/form/form.d.ts +0 -10
- package/utils/form/index.d.ts +0 -1
- package/utils/get/get.d.ts +0 -6
- package/utils/get/index.d.ts +0 -1
- package/utils/inject/index.d.ts +0 -1
- package/utils/inject/inject.d.ts +0 -76
- package/utils/mat-dayjs-date/dayjs-date.adapter.d.ts +0 -60
- package/utils/mat-dayjs-date/dayjs-date.formats.d.ts +0 -5
- package/utils/mat-dayjs-date/dayjs-date.module.d.ts +0 -8
- package/utils/mat-dayjs-date/dayjs-jp-providers.d.ts +0 -10
- package/utils/mat-dayjs-date/index.d.ts +0 -4
- package/utils/page/index.d.ts +0 -1
- package/utils/page/page.d.ts +0 -11
- package/utils/router/index.d.ts +0 -1
- package/utils/router/router.d.ts +0 -4
- package/utils/time.d.ts +0 -1
- package/utils/to-object/index.d.ts +0 -1
- package/utils/to-object/to-object.d.ts +0 -1
|
@@ -1,4 +1,307 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, Provider, AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
3
|
+
import * as _ng_atomic_common_utils from '@ng-atomic/common/utils';
|
|
4
|
+
import * as _ng_atomic_common_pipes_data_accessor from '@ng-atomic/common/pipes/data-accessor';
|
|
5
|
+
import { LanguageService } from '@ng-atomic/common/services/language';
|
|
6
|
+
|
|
7
|
+
interface Cell {
|
|
8
|
+
dataValue: any;
|
|
9
|
+
expressionValue: any;
|
|
10
|
+
}
|
|
11
|
+
interface CellContext$1<I = any> {
|
|
12
|
+
item: I;
|
|
13
|
+
name: string;
|
|
14
|
+
position: Position$1;
|
|
15
|
+
}
|
|
16
|
+
interface Selection {
|
|
17
|
+
start: Position$1;
|
|
18
|
+
end: Position$1;
|
|
19
|
+
}
|
|
20
|
+
interface Position$1 {
|
|
21
|
+
row: number;
|
|
22
|
+
col: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare class SpreadSheetDataService {
|
|
26
|
+
readonly displayedColumns: i0.WritableSignal<string[]>;
|
|
27
|
+
readonly items: i0.WritableSignal<any[]>;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpreadSheetDataService, never>;
|
|
29
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SpreadSheetDataService>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare class GridService {
|
|
33
|
+
protected readonly contextMap: Map<string, CellContext$1<any>>;
|
|
34
|
+
protected readonly data: SpreadSheetDataService;
|
|
35
|
+
readonly maxCol: i0.Signal<number>;
|
|
36
|
+
readonly maxRow: i0.Signal<number>;
|
|
37
|
+
setContext(context: CellContext$1): void;
|
|
38
|
+
getContext(position: Position$1): CellContext$1 | null;
|
|
39
|
+
protected buildKey(position: Position$1): string;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridService, never>;
|
|
41
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GridService>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare class NavigationService {
|
|
45
|
+
private gridService;
|
|
46
|
+
moveToNextCell({ row, col }: Position$1): Position$1;
|
|
47
|
+
moveToPreviousCell({ row, col }: Position$1): Position$1;
|
|
48
|
+
moveToNextRow({ row, col }: Position$1): Position$1;
|
|
49
|
+
moveToPreviousRow({ row, col }: Position$1): Position$1;
|
|
50
|
+
moveRight(position: Position$1): Position$1;
|
|
51
|
+
moveLeft({ row, col }: Position$1): Position$1;
|
|
52
|
+
moveUp({ row, col }: Position$1): Position$1;
|
|
53
|
+
moveDown({ row, col }: Position$1): Position$1;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationService, never>;
|
|
55
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NavigationService>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
declare class SelectionService {
|
|
59
|
+
protected readonly data: SpreadSheetDataService;
|
|
60
|
+
private readonly selection;
|
|
61
|
+
private readonly selectionStart;
|
|
62
|
+
private readonly isMouseDown;
|
|
63
|
+
private readonly grid;
|
|
64
|
+
private readonly cellElMap;
|
|
65
|
+
constructor();
|
|
66
|
+
isSelected(position: Position$1): boolean;
|
|
67
|
+
isCursorPosition(position: Position$1): boolean;
|
|
68
|
+
handleMouseDown(position: Position$1, event?: MouseEvent): void;
|
|
69
|
+
handleMouseUp(): void;
|
|
70
|
+
handleMouseEnter(position: Position$1): void;
|
|
71
|
+
handleClick(position: Position$1, event?: MouseEvent): void;
|
|
72
|
+
clearSelection(): void;
|
|
73
|
+
setStartPosition(position: Position$1): void;
|
|
74
|
+
getSelection(): Selection | null;
|
|
75
|
+
getSelectionEndOrStart(): Position$1;
|
|
76
|
+
updateSelectionEnd(position: Position$1): void;
|
|
77
|
+
private startSelection;
|
|
78
|
+
private updateSelection;
|
|
79
|
+
clearSelectedRange(selection: {
|
|
80
|
+
start: {
|
|
81
|
+
row: number;
|
|
82
|
+
col: number;
|
|
83
|
+
};
|
|
84
|
+
end: {
|
|
85
|
+
row: number;
|
|
86
|
+
col: number;
|
|
87
|
+
};
|
|
88
|
+
}): void;
|
|
89
|
+
setCell(position: Position$1, el: HTMLTableCellElement): void;
|
|
90
|
+
getCell(position: Position$1): HTMLTableCellElement | null;
|
|
91
|
+
focus(position: Position$1): void;
|
|
92
|
+
protected buildKey(position: Position$1): string;
|
|
93
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionService, never>;
|
|
94
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SelectionService>;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
declare class ClipboardService {
|
|
98
|
+
private selectionService;
|
|
99
|
+
private clipboard;
|
|
100
|
+
private snackBar;
|
|
101
|
+
protected data: SpreadSheetDataService;
|
|
102
|
+
readonly dataAccessor: _ng_atomic_common_pipes_data_accessor.DataAccessor<unknown>;
|
|
103
|
+
readonly expression: _ng_atomic_common_utils.ExpressionTransformer;
|
|
104
|
+
readonly language: LanguageService;
|
|
105
|
+
constructor(selectionService: SelectionService);
|
|
106
|
+
private buildGridData;
|
|
107
|
+
copy(): Promise<void>;
|
|
108
|
+
setData(items: any[], displayedColumns: string[]): void;
|
|
109
|
+
protected copyText(text: string): void;
|
|
110
|
+
paste(targetRow: number, targetCol: number): Promise<void>;
|
|
111
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClipboardService, never>;
|
|
112
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ClipboardService>;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
declare class EditorService {
|
|
116
|
+
protected readonly data: SpreadSheetDataService;
|
|
117
|
+
private grid;
|
|
118
|
+
private selection;
|
|
119
|
+
private protection;
|
|
120
|
+
private editingStateManager;
|
|
121
|
+
readonly editinngCell: i0.WritableSignal<{
|
|
122
|
+
row: number;
|
|
123
|
+
col: number;
|
|
124
|
+
}>;
|
|
125
|
+
protected readonly inputMap: Map<string, HTMLInputElement>;
|
|
126
|
+
isEditing(position: Position$1): boolean;
|
|
127
|
+
startEditing(position: Position$1): void;
|
|
128
|
+
stopEditing(): void;
|
|
129
|
+
focus(position: Position$1): void;
|
|
130
|
+
getEditingCell(): Position$1 | null;
|
|
131
|
+
setInput(input: HTMLInputElement, position: Position$1): void;
|
|
132
|
+
getInput(position: Position$1): HTMLInputElement | null;
|
|
133
|
+
protected buildKey(position: Position$1): string;
|
|
134
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditorService, never>;
|
|
135
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EditorService>;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
interface CellContext<T> {
|
|
139
|
+
item: T;
|
|
140
|
+
name: string;
|
|
141
|
+
position: {
|
|
142
|
+
row: number;
|
|
143
|
+
col: number;
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
type CellProtector = (value: any, context: CellContext<any>) => boolean;
|
|
147
|
+
declare const COLUMN_PROTECTOR: InjectionToken<CellProtector[]>;
|
|
148
|
+
declare function provideCellProtector(useFactory: () => CellProtector): {
|
|
149
|
+
provide: InjectionToken<CellProtector[]>;
|
|
150
|
+
useFactory: () => CellProtector;
|
|
151
|
+
multi: boolean;
|
|
152
|
+
};
|
|
153
|
+
declare class ProtectionService {
|
|
154
|
+
readonly protectors: CellProtector[];
|
|
155
|
+
isEditable(value: any, context: CellContext<any>): boolean;
|
|
156
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProtectionService, never>;
|
|
157
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProtectionService>;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
interface Range$1 {
|
|
161
|
+
start: Position$1;
|
|
162
|
+
end: Position$1;
|
|
163
|
+
}
|
|
164
|
+
declare class AutoFillService {
|
|
165
|
+
private autofillMode;
|
|
166
|
+
private sourcePosition;
|
|
167
|
+
private targetRange;
|
|
168
|
+
private previewElements;
|
|
169
|
+
readonly isAutofillMode: i0.Signal<boolean>;
|
|
170
|
+
readonly getSourcePosition: i0.Signal<Position$1>;
|
|
171
|
+
readonly getTargetRange: i0.Signal<Range$1>;
|
|
172
|
+
startAutofill(position: Position$1): void;
|
|
173
|
+
updateAutofillRange(endPosition: Position$1): void;
|
|
174
|
+
cancelAutofill(): void;
|
|
175
|
+
private updatePreview;
|
|
176
|
+
private clearPreview;
|
|
177
|
+
private getCellElement;
|
|
178
|
+
private resetAutofill;
|
|
179
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutoFillService, never>;
|
|
180
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AutoFillService>;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
declare class SpreadSheetService {
|
|
184
|
+
readonly config: {
|
|
185
|
+
paste: boolean;
|
|
186
|
+
};
|
|
187
|
+
readonly grid: GridService;
|
|
188
|
+
readonly navigation: NavigationService;
|
|
189
|
+
readonly selection: SelectionService;
|
|
190
|
+
readonly clipboard: ClipboardService;
|
|
191
|
+
readonly editor: EditorService;
|
|
192
|
+
readonly protection: ProtectionService;
|
|
193
|
+
readonly autofill: AutoFillService;
|
|
194
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
195
|
+
protected handleKeyDownOnEditing(event: KeyboardEvent): void;
|
|
196
|
+
protected handleKeyDownOnSelecting(event: KeyboardEvent): void;
|
|
197
|
+
protected move(_position: Position$1, dest: 'top' | 'bottom' | 'left' | 'right', mode: 'edit' | 'select'): void;
|
|
198
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpreadSheetService, never>;
|
|
199
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SpreadSheetService>;
|
|
200
|
+
}
|
|
201
|
+
declare function provideSpreadSheetService(): Provider[];
|
|
202
|
+
|
|
203
|
+
declare class SpreadSheetCell implements AfterViewInit {
|
|
204
|
+
protected ss: SpreadSheetService;
|
|
205
|
+
readonly el: ElementRef<HTMLTableCellElement>;
|
|
206
|
+
readonly position: i0.InputSignal<{
|
|
207
|
+
row: number;
|
|
208
|
+
col: number;
|
|
209
|
+
}>;
|
|
210
|
+
readonly editable: i0.InputSignal<boolean>;
|
|
211
|
+
readonly context: i0.InputSignal<CellContext$1<any>>;
|
|
212
|
+
readonly isSelected: i0.Signal<boolean>;
|
|
213
|
+
readonly isEditing: i0.Signal<boolean>;
|
|
214
|
+
readonly frameEl: i0.WritableSignal<HTMLDivElement>;
|
|
215
|
+
constructor();
|
|
216
|
+
onDbClick(): void;
|
|
217
|
+
ngAfterViewInit(): void;
|
|
218
|
+
protected buildOutlineFrame(): HTMLDivElement;
|
|
219
|
+
protected createLabelElement(options: {
|
|
220
|
+
label: string;
|
|
221
|
+
color: string;
|
|
222
|
+
}): void;
|
|
223
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpreadSheetCell, never>;
|
|
224
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SpreadSheetCell, "[ssCell]", never, { "position": { "alias": "ssCell"; "required": false; "isSignal": true; }; "editable": { "alias": "ssCellEditable"; "required": false; "isSignal": true; }; "context": { "alias": "ssCellContext"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
225
|
+
}
|
|
226
|
+
declare class SpreadSheetCellInput implements AfterViewInit {
|
|
227
|
+
protected ss: SpreadSheetService;
|
|
228
|
+
readonly position: i0.InputSignal<{
|
|
229
|
+
row: number;
|
|
230
|
+
col: number;
|
|
231
|
+
}>;
|
|
232
|
+
readonly el: ElementRef<HTMLInputElement>;
|
|
233
|
+
readonly isSelected: i0.Signal<boolean>;
|
|
234
|
+
readonly isEditing: i0.Signal<boolean>;
|
|
235
|
+
ngAfterViewInit(): void;
|
|
236
|
+
protected stopEditing(): void;
|
|
237
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpreadSheetCellInput, never>;
|
|
238
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SpreadSheetCellInput, "[ssCellInput]", never, { "position": { "alias": "ssCellInput"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
type Position = {
|
|
242
|
+
row: number;
|
|
243
|
+
col: number;
|
|
244
|
+
};
|
|
245
|
+
type Range = {
|
|
246
|
+
start: Position;
|
|
247
|
+
end: Position;
|
|
248
|
+
};
|
|
249
|
+
interface AutofillContext {
|
|
250
|
+
sourceContext: any;
|
|
251
|
+
targetContexts: Array<{
|
|
252
|
+
position: Position;
|
|
253
|
+
context: any;
|
|
254
|
+
}>;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* テーブル全体のオートフィル機能を管理するディレクティブ
|
|
258
|
+
* セルディレクティブから直接呼び出される
|
|
259
|
+
*/
|
|
260
|
+
declare class GridDataTableAutofill implements OnDestroy {
|
|
261
|
+
private ss;
|
|
262
|
+
private viewContainerRef;
|
|
263
|
+
private renderer;
|
|
264
|
+
private autofillStartPosition;
|
|
265
|
+
private lastAutofillContexts;
|
|
266
|
+
private cleanupFunctions;
|
|
267
|
+
private handleComponent;
|
|
268
|
+
private currentCell;
|
|
269
|
+
readonly autofillComplete: i0.OutputEmitterRef<{
|
|
270
|
+
sourcePosition: Position;
|
|
271
|
+
targetRange: Range;
|
|
272
|
+
contexts: AutofillContext;
|
|
273
|
+
}>;
|
|
274
|
+
private currentPosition;
|
|
275
|
+
constructor();
|
|
276
|
+
showHandle(cell: HTMLElement, position: Position): void;
|
|
277
|
+
hideHandle(): void;
|
|
278
|
+
onAutofillStart(position: Position): void;
|
|
279
|
+
private setupScrollListener;
|
|
280
|
+
private startAutofill;
|
|
281
|
+
private onMouseMove;
|
|
282
|
+
private onMouseUp;
|
|
283
|
+
private completeAutofill;
|
|
284
|
+
getLastAutofillContexts(): AutofillContext | null;
|
|
285
|
+
private cleanup;
|
|
286
|
+
ngOnDestroy(): void;
|
|
287
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridDataTableAutofill, never>;
|
|
288
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GridDataTableAutofill, "[gridDataTableAutofill]", never, {}, { "autofillComplete": "autofillComplete"; }, never, never, true, never>;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
declare class SpreadSheetCellAutofill {
|
|
292
|
+
protected ss: SpreadSheetService;
|
|
293
|
+
readonly el: ElementRef<HTMLTableCellElement>;
|
|
294
|
+
readonly table: GridDataTableAutofill;
|
|
295
|
+
readonly position: i0.InputSignal<{
|
|
296
|
+
row: number;
|
|
297
|
+
col: number;
|
|
298
|
+
}>;
|
|
299
|
+
readonly enabled: i0.InputSignal<boolean>;
|
|
300
|
+
readonly shouldShow: i0.Signal<boolean>;
|
|
301
|
+
constructor();
|
|
302
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpreadSheetCellAutofill, never>;
|
|
303
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SpreadSheetCellAutofill, "[gridDataCellAutofill]", never, { "position": { "alias": "gridDataCellAutofill"; "required": false; "isSignal": true; }; "enabled": { "alias": "gridDataCellAutofillEnabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export { AutoFillService, COLUMN_PROTECTOR, ClipboardService, EditorService, GridDataTableAutofill, GridService, NavigationService, ProtectionService, SelectionService, SpreadSheetCell, SpreadSheetCellAutofill, SpreadSheetCellInput, SpreadSheetDataService, SpreadSheetService, provideCellProtector, provideSpreadSheetService };
|
|
307
|
+
export type { AutofillContext, Cell, CellContext$1 as CellContext, CellProtector, Position$1 as Position, Range$1 as Range, Selection };
|
package/services/ui/index.d.ts
CHANGED
|
@@ -1,2 +1,104 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as _ng_atomic_core from '@ng-atomic/core';
|
|
2
|
+
import { Action } from '@ng-atomic/core';
|
|
3
|
+
import * as rxjs from 'rxjs';
|
|
4
|
+
import * as _ng_atomic_common_services_breakpoint from '@ng-atomic/common/services/breakpoint';
|
|
5
|
+
import { Breakpoint, BreakpointService } from '@ng-atomic/common/services/breakpoint';
|
|
6
|
+
import * as _angular_core from '@angular/core';
|
|
7
|
+
import { Signal, InjectionToken, Injector, Provider, Type, ProviderToken } from '@angular/core';
|
|
8
|
+
import * as _angular_router from '@angular/router';
|
|
9
|
+
import { ActivatedRoute } from '@angular/router';
|
|
10
|
+
import { RouterService } from '@ng-atomic/common/services/router';
|
|
11
|
+
|
|
12
|
+
interface UIContext {
|
|
13
|
+
breakpoint: Breakpoint;
|
|
14
|
+
paths: any[];
|
|
15
|
+
}
|
|
16
|
+
declare class UiService {
|
|
17
|
+
readonly breakpoint: BreakpointService;
|
|
18
|
+
readonly router: RouterService;
|
|
19
|
+
readonly platformId: Object;
|
|
20
|
+
readonly paths$: rxjs.Observable<_angular_router.UrlSegment[]>;
|
|
21
|
+
readonly paths: _angular_core.Signal<_angular_router.UrlSegment[]>;
|
|
22
|
+
readonly snapshot$: rxjs.Observable<_angular_router.ActivatedRouteSnapshot>;
|
|
23
|
+
readonly snapshot: _angular_core.Signal<_angular_router.ActivatedRouteSnapshot>;
|
|
24
|
+
readonly uiContext: _angular_core.Signal<{
|
|
25
|
+
breakpoint: Breakpoint;
|
|
26
|
+
paths: _angular_router.UrlSegment[];
|
|
27
|
+
}>;
|
|
28
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiService, never>;
|
|
29
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<UiService>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare function scoped<T extends object, TKey extends keyof T>(source: Signal<T>, path: TKey | [TKey]): Signal<T[TKey]>;
|
|
33
|
+
declare function injectBreakpoint(): Signal<_ng_atomic_common_services_breakpoint.Breakpoint>;
|
|
34
|
+
declare function injectIsMobile(): Signal<boolean>;
|
|
35
|
+
declare enum NavActionId {
|
|
36
|
+
TOGGLE_SIDE_NAV = "[@ng-atomic/common/services/ui] TOGGLE_SIDE_NAV",
|
|
37
|
+
BACK = "[@ng-atomic/common/services/ui] BACK",
|
|
38
|
+
CLOSE = "[@ng-atomic/common/services/ui] CLOSE"
|
|
39
|
+
}
|
|
40
|
+
declare function isRootPageRoute(route: ActivatedRoute, outlet?: string): boolean;
|
|
41
|
+
declare function injectIsRootPage$(outlet?: string): rxjs.Observable<boolean>;
|
|
42
|
+
declare function injectIsRootPage(outlet?: string): Signal<boolean>;
|
|
43
|
+
declare function injectNavStartActions(isRootPage?: Signal<boolean>): Signal<Action[]>;
|
|
44
|
+
declare function injectNavStartActionsV2(): Signal<Action<any>[]>;
|
|
45
|
+
declare function injectSideAppNavStartActions(outlet?: string): Signal<Action[]>;
|
|
46
|
+
declare function injectUiContext(): Signal<UIContext>;
|
|
47
|
+
type UiConfigReducer<T extends object | string, C extends UIContext = any> = (config: T, context: C) => T;
|
|
48
|
+
declare const UI_CONFIG_REDUCER: InjectionToken<UiConfigReducer<any, any>>;
|
|
49
|
+
type ReducerFactory<T extends object | string> = (injector: Injector, hostInjector: Injector) => (config: T, context: UIContext) => T;
|
|
50
|
+
type DefaultReducerFactory<T extends object | string> = (injector: Injector, hostInjector: Injector) => (context: UIContext) => T;
|
|
51
|
+
declare const wrap: <T extends object | string>(defaultReducerFactory: DefaultReducerFactory<T>) => ReducerFactory<T>;
|
|
52
|
+
declare function call<T>(signalOrValue: Signal<T> | T): T;
|
|
53
|
+
declare function provideUiConfig<T extends object | string>(reducerFactory: ReducerFactory<T>, path?: string[], name?: string, token?: InjectionToken<UiConfigReducer<any, any>>): Provider;
|
|
54
|
+
declare function injectRootConfig<T extends object>(paths?: string[], token?: InjectionToken<UiConfigReducer<any, any>>): Signal<T>;
|
|
55
|
+
declare function injectUiConfig<T extends object>(paths?: string[], token?: InjectionToken<UiConfigReducer<any>>): Signal<T>;
|
|
56
|
+
declare function makeConfig<T extends object>(defaultUseFactory: DefaultReducerFactory<T>, path: string[]): {
|
|
57
|
+
provide(useFactory?: ReducerFactory<T>, label?: string): Provider;
|
|
58
|
+
inject(): Signal<T>;
|
|
59
|
+
};
|
|
60
|
+
declare function makeDI<T extends object, K>(type: Type<K>, defaultUseFactory: DefaultReducerFactory<T>, path: string[]): {
|
|
61
|
+
provide: (typeOrComponent: Parameters<(typeOrFactory: _ng_atomic_core.TypeOrTypeFactory<any>) => {
|
|
62
|
+
provide: any;
|
|
63
|
+
useValue: () => Promise<Type<any>>;
|
|
64
|
+
}>[0]) => (Provider | {
|
|
65
|
+
provide: any;
|
|
66
|
+
useValue: () => Promise<Type<any>>;
|
|
67
|
+
})[];
|
|
68
|
+
provideConfig: (useFactory?: ReducerFactory<T>, label?: string) => Provider;
|
|
69
|
+
injectConfig: () => Signal<T>;
|
|
70
|
+
provideInitializer: <SI extends (store: K) => Promise<void> | void>(initializer: SI) => {
|
|
71
|
+
provide: InjectionToken<(store: any) => Promise<void> | void>;
|
|
72
|
+
useValue: {
|
|
73
|
+
key: new () => K;
|
|
74
|
+
initializer: (store: K) => Promise<void> | void;
|
|
75
|
+
};
|
|
76
|
+
multi: boolean;
|
|
77
|
+
}[];
|
|
78
|
+
initialize: (store: K) => Promise<void>;
|
|
79
|
+
provideComponent: (typeOrFactory: _ng_atomic_core.TypeOrTypeFactory<any>) => {
|
|
80
|
+
provide: any;
|
|
81
|
+
useValue: () => Promise<Type<any>>;
|
|
82
|
+
};
|
|
83
|
+
Initializer: {
|
|
84
|
+
provide<SI extends (store: K) => Promise<void> | void>(initializer: SI): {
|
|
85
|
+
provide: InjectionToken<(store: any) => Promise<void> | void>;
|
|
86
|
+
useValue: {
|
|
87
|
+
key: new () => K;
|
|
88
|
+
initializer: (store: K) => Promise<void> | void;
|
|
89
|
+
};
|
|
90
|
+
multi: boolean;
|
|
91
|
+
}[];
|
|
92
|
+
inject(): ((store: K) => Promise<void> | void)[];
|
|
93
|
+
initializeStore(store: K): Promise<void>;
|
|
94
|
+
};
|
|
95
|
+
Config: {
|
|
96
|
+
provide(useFactory?: ReducerFactory<T>, label?: string): Provider;
|
|
97
|
+
inject(): Signal<T>;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
declare function injectDeepMulti<T>(token: ProviderToken<T>, injector?: Injector): T[];
|
|
101
|
+
declare function debugInjector(injector?: Injector | null): void;
|
|
102
|
+
|
|
103
|
+
export { NavActionId, UI_CONFIG_REDUCER, UiService, call, debugInjector, injectBreakpoint, injectDeepMulti, injectIsMobile, injectIsRootPage, injectIsRootPage$, injectNavStartActions, injectNavStartActionsV2, injectRootConfig, injectSideAppNavStartActions, injectUiConfig, injectUiContext, isRootPageRoute, makeConfig, makeDI, provideUiConfig, scoped, wrap };
|
|
104
|
+
export type { DefaultReducerFactory, ReducerFactory, UIContext, UiConfigReducer };
|
|
@@ -1,6 +1,169 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, Injector, Signal } from '@angular/core';
|
|
3
|
+
import { Type, BaseResolver } from '@nx-ddd/common/domain';
|
|
4
|
+
import * as rxjs from 'rxjs';
|
|
5
|
+
import { Observable, ReplaySubject, Subject } from 'rxjs';
|
|
6
|
+
import * as _ngrx_entity_src_models from '@ngrx/entity/src/models';
|
|
7
|
+
import { ComponentStore } from '@ngrx/component-store';
|
|
8
|
+
import { EntityState, EntityAdapter } from '@ngrx/entity';
|
|
9
|
+
|
|
10
|
+
declare class ProxyIdService {
|
|
11
|
+
proxyMap: Map<string, string>;
|
|
12
|
+
isProxyId(id: string | null): boolean;
|
|
13
|
+
proxyId(_id: string): string;
|
|
14
|
+
update(proxyId: string, id: string): void;
|
|
15
|
+
resolve(proxyIdOrId: string): string;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProxyIdService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProxyIdService>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
type Entity = {
|
|
21
|
+
id: string;
|
|
22
|
+
};
|
|
23
|
+
interface BaseTask {
|
|
24
|
+
type: 'create' | 'update' | 'delete' | 'noop';
|
|
25
|
+
timestamp: number;
|
|
26
|
+
}
|
|
27
|
+
interface CreateAction<T extends Entity> extends BaseTask {
|
|
28
|
+
type: 'create';
|
|
29
|
+
payload: T;
|
|
30
|
+
}
|
|
31
|
+
interface UpdateAction<T extends Entity> extends BaseTask {
|
|
32
|
+
type: 'update';
|
|
33
|
+
payload: Partial<T> & Entity;
|
|
34
|
+
}
|
|
35
|
+
interface DeleteAction extends BaseTask {
|
|
36
|
+
type: 'delete';
|
|
37
|
+
payload: Entity;
|
|
38
|
+
}
|
|
39
|
+
interface NoopAction extends BaseTask {
|
|
40
|
+
type: 'noop';
|
|
41
|
+
payload: {};
|
|
42
|
+
}
|
|
43
|
+
type Task<T extends Entity> = CreateAction<T> | UpdateAction<T> | DeleteAction | NoopAction;
|
|
44
|
+
declare function pushMap<T>(map: Map<string, T[]>, id: string, item: T): Map<string, T[]>;
|
|
45
|
+
declare class TaskComposerService {
|
|
46
|
+
readonly proxyId: ProxyIdService;
|
|
47
|
+
composeTasks<T extends Entity>(tasks: Task<T>[]): Task<T>[];
|
|
48
|
+
compose<T extends Entity>(tasks: Task<T>[]): Task<T>;
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaskComposerService, never>;
|
|
50
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TaskComposerService>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
declare class EntityStoreAdapter<E extends Entity> {
|
|
54
|
+
list?(): Observable<E[]>;
|
|
55
|
+
create?(entity: E): Promise<E>;
|
|
56
|
+
update?(entity: Partial<E> & Pick<E, 'id'>): Promise<void>;
|
|
57
|
+
delete?(entity: Pick<E, 'id'>): Promise<void>;
|
|
58
|
+
save?(entity: E): Promise<E>;
|
|
59
|
+
}
|
|
60
|
+
declare const ENTITY_STORE_ADAPTER: InjectionToken<{
|
|
61
|
+
entity: Type<Entity>;
|
|
62
|
+
adapter: EntityStoreAdapter<Entity>;
|
|
63
|
+
}[]>;
|
|
64
|
+
declare function provideEntityStoreAdapter<E extends Entity>(entity: Type<E>, adapterFactory: (injector: Injector) => EntityStoreAdapter<E>): {
|
|
65
|
+
provide: InjectionToken<{
|
|
66
|
+
entity: Type<Entity>;
|
|
67
|
+
adapter: EntityStoreAdapter<Entity>;
|
|
68
|
+
}[]>;
|
|
69
|
+
multi: boolean;
|
|
70
|
+
useFactory: (injector: Injector) => {
|
|
71
|
+
entity: Type<E>;
|
|
72
|
+
adapter: EntityStoreAdapter<E>;
|
|
73
|
+
};
|
|
74
|
+
deps: (typeof Injector)[];
|
|
75
|
+
};
|
|
76
|
+
declare function injectEntityStoreAdapter<E extends Entity>(entity: Type<E>): EntityStoreAdapter<E>;
|
|
77
|
+
|
|
78
|
+
declare const distinctUntilChangedArray: <T>() => rxjs.MonoTypeOperatorFunction<T>;
|
|
79
|
+
declare class BaseEntityStore<E extends Entity> extends ComponentStore<EntityState<E>> {
|
|
80
|
+
protected entity: Type<E>;
|
|
81
|
+
protected entityAdapter: EntityAdapter<E>;
|
|
82
|
+
protected adapter: EntityStoreAdapter<E>;
|
|
83
|
+
protected readonly refresh$: ReplaySubject<void>;
|
|
84
|
+
protected readonly selectors: _ngrx_entity_src_models.EntitySelectors<E, EntityState<E>>;
|
|
85
|
+
readonly all$: Observable<E[]>;
|
|
86
|
+
readonly all: i0.Signal<E[]>;
|
|
87
|
+
readonly total$: Observable<number>;
|
|
88
|
+
readonly total: i0.Signal<number>;
|
|
89
|
+
/** @deprecated use BaseEntityStore.all$ instead. */
|
|
90
|
+
readonly entities$: Observable<E[]>;
|
|
91
|
+
/** @deprecated use BaseEntityStore.all instead. */
|
|
92
|
+
readonly entities: i0.Signal<E[]>;
|
|
93
|
+
/** @deprecated use BaseEntityStore.total$ instead. */
|
|
94
|
+
readonly size$: Observable<number>;
|
|
95
|
+
readonly addOne: E extends void ? () => void : (observableOrValue: E | Observable<E>) => rxjs.Subscription;
|
|
96
|
+
readonly addMany: (observableOrValue: E[] | Observable<E[]>) => rxjs.Subscription;
|
|
97
|
+
readonly updateOne: (observableOrValue: {
|
|
98
|
+
id: string;
|
|
99
|
+
changes: Partial<E>;
|
|
100
|
+
} | Observable<{
|
|
101
|
+
id: string;
|
|
102
|
+
changes: Partial<E>;
|
|
103
|
+
}>) => rxjs.Subscription;
|
|
104
|
+
readonly updateMany: (observableOrValue: {
|
|
105
|
+
id: string;
|
|
106
|
+
changes: Partial<E>;
|
|
107
|
+
}[] | Observable<{
|
|
108
|
+
id: string;
|
|
109
|
+
changes: Partial<E>;
|
|
110
|
+
}[]>) => rxjs.Subscription;
|
|
111
|
+
readonly upsertOne: E extends void ? () => void : (observableOrValue: E | Observable<E>) => rxjs.Subscription;
|
|
112
|
+
readonly upsertMany: (observableOrValue: E[] | Observable<E[]>) => rxjs.Subscription;
|
|
113
|
+
readonly removeOne: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
114
|
+
readonly removeMany: (observableOrValue: string[] | Observable<string[]>) => rxjs.Subscription;
|
|
115
|
+
readonly removeAll: () => void;
|
|
116
|
+
readonly setOne: E extends void ? () => void : (observableOrValue: E | Observable<E>) => rxjs.Subscription;
|
|
117
|
+
readonly setAll: (observableOrValue: E[] | Observable<E[]>) => rxjs.Subscription;
|
|
118
|
+
constructor(entity: Type<E>, entityAdapter?: EntityAdapter<E>);
|
|
119
|
+
protected getEntities: (observableOrValue?: void | Observable<void>) => rxjs.Subscription;
|
|
120
|
+
refresh(): void;
|
|
121
|
+
mapToOne(valueOrObs: string | Observable<string>): Observable<E>;
|
|
122
|
+
}
|
|
123
|
+
declare class EntityStore<E extends Entity> extends BaseEntityStore<E> {
|
|
124
|
+
protected entity: Type<E>;
|
|
125
|
+
protected entityAdapter: EntityAdapter<E>;
|
|
126
|
+
protected proxyId: ProxyIdService;
|
|
127
|
+
protected composer: TaskComposerService;
|
|
128
|
+
protected taskSubject$: Subject<Task<E>>;
|
|
129
|
+
protected task$: Observable<Task<E>>;
|
|
130
|
+
protected composedTasks$: Observable<Task<E>[]>;
|
|
131
|
+
constructor(entity: Type<E>, entityAdapter?: EntityAdapter<E>);
|
|
132
|
+
dispatch(action: Task<E>): void;
|
|
133
|
+
protected runTask(task: Task<E>): Promise<any>;
|
|
134
|
+
protected runComposedTasks(tasks: Task<E>[]): Promise<void>;
|
|
135
|
+
protected onSyncFailed(): void;
|
|
136
|
+
protected onSyncSucceeded(): void;
|
|
137
|
+
create(payload: E): Promise<E>;
|
|
138
|
+
update(payload: Pick<E, 'id'> & Partial<E>): Promise<void>;
|
|
139
|
+
delete(payload: Pick<E, 'id'>): Promise<void>;
|
|
140
|
+
save(payload: E): Promise<E>;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
type OneProps<V> = {
|
|
144
|
+
id: V;
|
|
145
|
+
[key: string]: V;
|
|
146
|
+
};
|
|
147
|
+
type AllProps<V> = {
|
|
148
|
+
[key: string]: V;
|
|
149
|
+
};
|
|
150
|
+
declare function injectOne$<T extends Entity>(Entity: Type<T>, params: OneProps<Observable<any>>, resolverType?: Type<BaseResolver<T>>): Observable<T>;
|
|
151
|
+
declare function injectOne<T extends Entity>(Entity: Type<T>, params: OneProps<Signal<any>>, resolverType?: Type<BaseResolver<T>>): Signal<T>;
|
|
152
|
+
declare function injectAll$<T extends Entity>(Entity: Type<T>, params?: Record<string, Observable<any>>, resolverType?: Type<BaseResolver<T>>): Observable<any[]>;
|
|
153
|
+
declare const callSignalMap: <T extends Record<string, Signal<any>>>(map: T) => Signal<T>;
|
|
154
|
+
declare function injectAll<T extends Entity>(Entity: Type<T>, params?: AllProps<Signal<any>>, resolverType?: Type<BaseResolver<T>>): Signal<T[]>;
|
|
155
|
+
type ValueOrObservable<T> = T | Observable<T>;
|
|
156
|
+
declare function mapToOne$<T extends {
|
|
157
|
+
id: string;
|
|
158
|
+
}>(storeType: new () => EntityStore<T>, keyOrKey$: ValueOrObservable<string>): Observable<T>;
|
|
159
|
+
|
|
160
|
+
declare class EntityStoreService {
|
|
161
|
+
protected storeMap: Map<Type<Entity>, EntityStore<Entity>>;
|
|
162
|
+
get<E extends Entity>(Entity: Type<E>): EntityStore<E>;
|
|
163
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntityStoreService, never>;
|
|
164
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EntityStoreService>;
|
|
165
|
+
}
|
|
166
|
+
declare function injectEntityStore<E extends Entity>(Entity: Type<E>): EntityStore<E>;
|
|
167
|
+
|
|
168
|
+
export { BaseEntityStore, ENTITY_STORE_ADAPTER, EntityStore, EntityStoreAdapter, EntityStoreService, ProxyIdService, TaskComposerService, callSignalMap, distinctUntilChangedArray, injectAll, injectAll$, injectEntityStore, injectEntityStoreAdapter, injectOne, injectOne$, mapToOne$, provideEntityStoreAdapter, pushMap };
|
|
169
|
+
export type { Entity, Task, ValueOrObservable };
|
package/stores/entity/index.d.ts
CHANGED
|
@@ -1 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ComponentStore } from '@ngrx/component-store';
|
|
4
|
+
|
|
5
|
+
type Mode = 'create' | 'update';
|
|
6
|
+
interface EntityState<Entity> {
|
|
7
|
+
mode: Mode;
|
|
8
|
+
entityId: string;
|
|
9
|
+
entity: Entity;
|
|
10
|
+
}
|
|
11
|
+
declare const tryCatch: (promise: Promise<any>) => Promise<unknown>;
|
|
12
|
+
declare abstract class EntityStore<S extends EntityState<Entity>, Entity> extends ComponentStore<S> {
|
|
13
|
+
get entity(): Entity;
|
|
14
|
+
mode$: Observable<Mode>;
|
|
15
|
+
entityId$: Observable<string>;
|
|
16
|
+
entity$: Observable<Entity>;
|
|
17
|
+
setMode: (observableOrValue: Mode | Observable<Mode>) => rxjs.Subscription;
|
|
18
|
+
setEntityId: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
19
|
+
setEntity: Entity extends void ? () => void : (observableOrValue: Entity | Observable<Entity>) => rxjs.Subscription;
|
|
20
|
+
constructor(initialState?: S);
|
|
21
|
+
getEntityIdAndMode: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
22
|
+
getEntity: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
23
|
+
createEntity(value: Partial<Entity>): Promise<unknown>;
|
|
24
|
+
updateEntity(value: Partial<Entity>): Promise<void>;
|
|
25
|
+
abstract _getEntity(idOrParams: string): Observable<Entity>;
|
|
26
|
+
abstract _createEntity(entity: Entity): Promise<Entity>;
|
|
27
|
+
abstract _updateEntity(entity: Entity): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { EntityStore, tryCatch };
|
|
31
|
+
export type { EntityState, Mode };
|
|
@@ -1 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ComponentStore } from '@ngrx/component-store';
|
|
4
|
+
import { Page } from '@ng-atomic/common/utils';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
|
|
7
|
+
interface State {
|
|
8
|
+
page: Page;
|
|
9
|
+
}
|
|
10
|
+
declare class PaginationStore extends ComponentStore<State> {
|
|
11
|
+
constructor();
|
|
12
|
+
get page(): Page;
|
|
13
|
+
get start(): number;
|
|
14
|
+
get end(): number;
|
|
15
|
+
page$: Observable<Page>;
|
|
16
|
+
setPage: (observableOrValue: Page | Observable<Page>) => rxjs.Subscription;
|
|
17
|
+
patch: (observableOrValue: Partial<Page> | Observable<Partial<Page>>) => rxjs.Subscription;
|
|
18
|
+
getPageLength: (observableOrValue: any[] | Observable<any[]>) => rxjs.Subscription;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationStore, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PaginationStore>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { PaginationStore };
|
|
24
|
+
export type { State };
|
package/stores/query/index.d.ts
CHANGED
|
@@ -1 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
|
+
import { QueryResolverService } from '@ng-atomic/common/services/query-resolver';
|
|
3
|
+
import { ComponentStore } from '@ngrx/component-store';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
|
|
6
|
+
interface QueryState {
|
|
7
|
+
query: string;
|
|
8
|
+
}
|
|
9
|
+
declare class QueryStore<E extends object = any> extends ComponentStore<QueryState> {
|
|
10
|
+
protected queryResolver: QueryResolverService<E>;
|
|
11
|
+
protected langMap: Record<string, string>;
|
|
12
|
+
constructor(queryResolver: QueryResolverService<E>, langMap: Record<string, string>);
|
|
13
|
+
get query(): string;
|
|
14
|
+
query$: rxjs.Observable<string>;
|
|
15
|
+
setQuery: (observableOrValue: string | rxjs.Observable<string>) => rxjs.Subscription;
|
|
16
|
+
resolve(entities: E[]): E[];
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QueryStore<any>, [null, { optional: true; }]>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QueryStore<any>>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { QueryStore };
|
|
22
|
+
export type { QueryState };
|