@xxmachina/components 19.0.0-preview.8 → 19.1.0
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/extras/flow/index.d.ts +183 -0
- package/features/command/index.d.ts +67 -1
- package/features/query/index.d.ts +117 -1
- package/fesm2022/xxmachina-components-extras-flow.mjs +389 -0
- package/fesm2022/xxmachina-components-extras-flow.mjs.map +1 -0
- package/fesm2022/xxmachina-components-features-command.mjs +7 -8
- package/fesm2022/xxmachina-components-features-command.mjs.map +1 -1
- package/fesm2022/xxmachina-components-features-query.mjs +120 -96
- package/fesm2022/xxmachina-components-features-query.mjs.map +1 -1
- package/fesm2022/xxmachina-components-groups-command-form.mjs +3 -3
- package/fesm2022/xxmachina-components-groups-command-form.mjs.map +1 -1
- package/fesm2022/xxmachina-components-groups-query-form.mjs +110 -24
- package/fesm2022/xxmachina-components-groups-query-form.mjs.map +1 -1
- package/fesm2022/xxmachina-components-molecules-calendar-paginator.mjs +4 -4
- package/fesm2022/xxmachina-components-molecules-calendar-paginator.mjs.map +1 -1
- package/fesm2022/xxmachina-components-molecules-daily-cell.mjs +13 -13
- package/fesm2022/xxmachina-components-molecules-daily-cell.mjs.map +1 -1
- package/fesm2022/xxmachina-components-molecules-weekly-header.mjs +5 -5
- package/fesm2022/xxmachina-components-molecules-weekly-header.mjs.map +1 -1
- package/fesm2022/xxmachina-components-organisms-calendar-section.mjs +5 -5
- package/fesm2022/xxmachina-components-organisms-calendar-section.mjs.map +1 -1
- package/fesm2022/xxmachina-components-organisms-event-input-section.mjs +3 -3
- package/fesm2022/xxmachina-components-organisms-event-input-section.mjs.map +1 -1
- package/fesm2022/xxmachina-components-organisms-terminal-input-section.mjs +123 -0
- package/fesm2022/xxmachina-components-organisms-terminal-input-section.mjs.map +1 -0
- package/fesm2022/xxmachina-components-organisms-video-trimmer-section.mjs +6 -6
- package/fesm2022/xxmachina-components-organisms-video-trimmer-section.mjs.map +1 -1
- package/fesm2022/xxmachina-components-organisms-xterm.mjs +94 -0
- package/fesm2022/xxmachina-components-organisms-xterm.mjs.map +1 -0
- package/fesm2022/xxmachina-components-pages-command.mjs +196 -48
- package/fesm2022/xxmachina-components-pages-command.mjs.map +1 -1
- package/fesm2022/xxmachina-components-pages-query.mjs +394 -92
- package/fesm2022/xxmachina-components-pages-query.mjs.map +1 -1
- package/fesm2022/xxmachina-components-pages-thread.mjs +176 -0
- package/fesm2022/xxmachina-components-pages-thread.mjs.map +1 -0
- package/fesm2022/{xxmachina-components-routes-commands-command.routes-CeRVzy3Z.mjs → xxmachina-components-routes-commands-command.routes-CSwIdXZg.mjs} +4 -11
- package/fesm2022/xxmachina-components-routes-commands-command.routes-CSwIdXZg.mjs.map +1 -0
- package/fesm2022/{xxmachina-components-routes-commands-pages.routes-Cm6Yd40h.mjs → xxmachina-components-routes-commands-pages.routes-j2xVop4W.mjs} +4 -4
- package/fesm2022/xxmachina-components-routes-commands-pages.routes-j2xVop4W.mjs.map +1 -0
- package/fesm2022/xxmachina-components-routes-commands.mjs +8 -3
- package/fesm2022/xxmachina-components-routes-commands.mjs.map +1 -1
- package/fesm2022/xxmachina-components-routes-pages.mjs +3 -1
- package/fesm2022/xxmachina-components-routes-pages.mjs.map +1 -1
- package/fesm2022/xxmachina-components-routes-preloading.mjs +3 -3
- package/fesm2022/xxmachina-components-routes-preloading.mjs.map +1 -1
- package/fesm2022/xxmachina-components-routes-queries-pages.routes-CfrglCIL.mjs +9 -0
- package/fesm2022/xxmachina-components-routes-queries-pages.routes-CfrglCIL.mjs.map +1 -0
- package/fesm2022/xxmachina-components-routes-queries.mjs +16 -7
- package/fesm2022/xxmachina-components-routes-queries.mjs.map +1 -1
- package/fesm2022/{xxmachina-components-routes-query-pages.routes-H2vrF7kQ.mjs → xxmachina-components-routes-query-pages.routes-CxTbOJDQ.mjs} +9 -9
- package/fesm2022/xxmachina-components-routes-query-pages.routes-CxTbOJDQ.mjs.map +1 -0
- package/fesm2022/xxmachina-components-routes-query.mjs +5 -3
- package/fesm2022/xxmachina-components-routes-query.mjs.map +1 -1
- package/fesm2022/{xxmachina-components-routes-resources-pages.routes-BSjrrV1g.mjs → xxmachina-components-routes-resources-pages.routes-CzjQOxwT.mjs} +4 -4
- package/fesm2022/xxmachina-components-routes-resources-pages.routes-CzjQOxwT.mjs.map +1 -0
- package/fesm2022/{xxmachina-components-routes-resources-resource.routes-DzGgwitX.mjs → xxmachina-components-routes-resources-resource.routes-C5KpB3KM.mjs} +3 -3
- package/fesm2022/xxmachina-components-routes-resources-resource.routes-C5KpB3KM.mjs.map +1 -0
- package/fesm2022/xxmachina-components-routes-resources.mjs +8 -6
- package/fesm2022/xxmachina-components-routes-resources.mjs.map +1 -1
- package/fesm2022/xxmachina-components-routes-side-chat.mjs +4 -112
- package/fesm2022/xxmachina-components-routes-side-chat.mjs.map +1 -1
- package/fesm2022/xxmachina-components-routes-side.mjs +4 -2
- package/fesm2022/xxmachina-components-routes-side.mjs.map +1 -1
- package/fesm2022/xxmachina-components-routes-transformer.mjs +99 -0
- package/fesm2022/xxmachina-components-routes-transformer.mjs.map +1 -0
- package/fesm2022/xxmachina-components-routes-transformers-pages.routes-02pVsNas.mjs +9 -0
- package/fesm2022/xxmachina-components-routes-transformers-pages.routes-02pVsNas.mjs.map +1 -0
- package/fesm2022/xxmachina-components-routes-transformers.mjs +75 -0
- package/fesm2022/xxmachina-components-routes-transformers.mjs.map +1 -0
- package/fesm2022/xxmachina-components-routes.mjs +8 -4
- package/fesm2022/xxmachina-components-routes.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-app.mjs +30 -0
- package/fesm2022/xxmachina-components-services-app.mjs.map +1 -0
- package/fesm2022/xxmachina-components-services-assistant.mjs +3 -3
- package/fesm2022/xxmachina-components-services-assistant.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-calendar.mjs +3 -3
- package/fesm2022/xxmachina-components-services-calendar.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-command.mjs +11 -10
- package/fesm2022/xxmachina-components-services-command.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-context.mjs +23 -0
- package/fesm2022/xxmachina-components-services-context.mjs.map +1 -0
- package/fesm2022/xxmachina-components-services-contract.mjs +4 -4
- package/fesm2022/xxmachina-components-services-contract.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-debug.mjs +3 -3
- package/fesm2022/xxmachina-components-services-debug.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-forms-query.mjs +13 -3
- package/fesm2022/xxmachina-components-services-forms-query.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-forms-schedule.mjs +4 -4
- package/fesm2022/xxmachina-components-services-forms-schedule.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-forms-variables.mjs +34 -0
- package/fesm2022/xxmachina-components-services-forms-variables.mjs.map +1 -0
- package/fesm2022/xxmachina-components-services-graphql.mjs +7 -6
- package/fesm2022/xxmachina-components-services-graphql.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-invoice.mjs +7 -4
- package/fesm2022/xxmachina-components-services-invoice.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-json-schema.mjs +3 -3
- package/fesm2022/xxmachina-components-services-json-schema.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-link.mjs +3 -3
- package/fesm2022/xxmachina-components-services-link.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-message.mjs +50 -0
- package/fesm2022/xxmachina-components-services-message.mjs.map +1 -0
- package/fesm2022/xxmachina-components-services-openai.mjs +113 -0
- package/fesm2022/xxmachina-components-services-openai.mjs.map +1 -0
- package/fesm2022/xxmachina-components-services-openapi.mjs +5 -5
- package/fesm2022/xxmachina-components-services-openapi.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-order.mjs +4 -4
- package/fesm2022/xxmachina-components-services-order.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-partner.mjs +4 -4
- package/fesm2022/xxmachina-components-services-partner.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-query.mjs +32 -45
- package/fesm2022/xxmachina-components-services-query.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-recording.mjs +3 -3
- package/fesm2022/xxmachina-components-services-recording.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-schedule.mjs +10 -7
- package/fesm2022/xxmachina-components-services-schedule.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-thread.mjs +5 -7
- package/fesm2022/xxmachina-components-services-thread.mjs.map +1 -1
- package/fesm2022/xxmachina-components-services-transformer.mjs +31 -0
- package/fesm2022/xxmachina-components-services-transformer.mjs.map +1 -0
- package/fesm2022/xxmachina-components-services-youtube.mjs +3 -3
- package/fesm2022/xxmachina-components-services-youtube.mjs.map +1 -1
- package/fesm2022/xxmachina-components-templates-agent.mjs +549 -0
- package/fesm2022/xxmachina-components-templates-agent.mjs.map +1 -0
- package/fesm2022/xxmachina-components-templates-background.mjs +202 -5
- package/fesm2022/xxmachina-components-templates-background.mjs.map +1 -1
- package/fesm2022/xxmachina-components-templates-invoice-iframe.mjs +3 -3
- package/fesm2022/xxmachina-components-templates-invoice-iframe.mjs.map +1 -1
- package/fesm2022/xxmachina-components-templates-scheduler.mjs +5 -5
- package/fesm2022/xxmachina-components-templates-scheduler.mjs.map +1 -1
- package/fesm2022/xxmachina-components-templates-video.mjs +6 -6
- package/fesm2022/xxmachina-components-templates-video.mjs.map +1 -1
- package/fesm2022/xxmachina-components-validators-query.mjs +2 -2
- package/fesm2022/xxmachina-components-validators-query.mjs.map +1 -1
- package/fesm2022/xxmachina-components.mjs +218 -39
- package/fesm2022/xxmachina-components.mjs.map +1 -1
- package/groups/command-form/index.d.ts +13 -1
- package/groups/query-form/index.d.ts +54 -1
- package/index.d.ts +66 -3
- package/molecules/calendar-paginator/index.d.ts +14 -1
- package/molecules/daily-cell/index.d.ts +35 -1
- package/molecules/weekly-header/index.d.ts +11 -1
- package/organisms/calendar-section/index.d.ts +25 -1
- package/organisms/event-input-section/index.d.ts +45 -1
- package/organisms/terminal-input-section/index.d.ts +37 -0
- package/organisms/video-trimmer-section/index.d.ts +30 -1
- package/organisms/xterm/index.d.ts +23 -0
- package/package.json +65 -17
- package/pages/command/index.d.ts +217 -1
- package/pages/query/index.d.ts +292 -1
- package/pages/thread/index.d.ts +109 -0
- package/routes/commands/index.d.ts +5 -1
- package/routes/index.d.ts +4 -1
- package/routes/pages/index.d.ts +5 -1
- package/routes/preloading/index.d.ts +11 -1
- package/routes/queries/index.d.ts +5 -1
- package/routes/query/index.d.ts +5 -1
- package/routes/resources/index.d.ts +5 -1
- package/routes/side/chat/index.d.ts +5 -2
- package/routes/side/index.d.ts +5 -1
- package/routes/transformer/index.d.ts +5 -0
- package/routes/transformers/index.d.ts +5 -0
- package/services/app/index.d.ts +17 -0
- package/services/assistant/index.d.ts +20 -1
- package/services/calendar/index.d.ts +13 -1
- package/services/command/index.d.ts +54 -1
- package/services/context/index.d.ts +10 -0
- package/services/contract/index.d.ts +11 -1
- package/services/debug/index.d.ts +14 -1
- package/services/forms/query/index.d.ts +45 -1
- package/services/forms/schedule/index.d.ts +42 -1
- package/services/forms/variables/index.d.ts +12 -0
- package/services/graphql/index.d.ts +20 -1
- package/services/invoice/index.d.ts +19 -1
- package/services/json-schema/index.d.ts +15 -1
- package/services/link/index.d.ts +13 -1
- package/services/message/index.d.ts +23 -0
- package/services/openai/index.d.ts +35 -0
- package/services/openapi/index.d.ts +17 -1
- package/services/order/index.d.ts +13 -1
- package/services/partner/index.d.ts +11 -1
- package/services/query/index.d.ts +42 -1
- package/services/recording/index.d.ts +20 -1
- package/services/schedule/index.d.ts +26 -1
- package/services/thread/index.d.ts +30 -1
- package/services/transformer/index.d.ts +19 -0
- package/services/youtube/index.d.ts +10 -1
- package/templates/agent/index.d.ts +54 -0
- package/templates/background/index.d.ts +44 -1
- package/templates/invoice-iframe/index.d.ts +13 -1
- package/templates/scheduler/index.d.ts +31 -1
- package/templates/video/index.d.ts +36 -1
- package/validators/query/index.d.ts +7 -1
- package/app.d.ts +0 -7
- package/features/command/command.feature.d.ts +0 -63
- package/features/query/query.feature.d.ts +0 -92
- package/fesm2022/xxmachina-components-routes-commands-command.routes-CeRVzy3Z.mjs.map +0 -1
- package/fesm2022/xxmachina-components-routes-commands-pages.routes-Cm6Yd40h.mjs.map +0 -1
- package/fesm2022/xxmachina-components-routes-queries-pages.routes-BfWsTCij.mjs +0 -9
- package/fesm2022/xxmachina-components-routes-queries-pages.routes-BfWsTCij.mjs.map +0 -1
- package/fesm2022/xxmachina-components-routes-query-pages.routes-H2vrF7kQ.mjs.map +0 -1
- package/fesm2022/xxmachina-components-routes-resources-pages.routes-BSjrrV1g.mjs.map +0 -1
- package/fesm2022/xxmachina-components-routes-resources-resource.routes-DzGgwitX.mjs.map +0 -1
- package/fesm2022/xxmachina-components-services-query-config.mjs +0 -47
- package/fesm2022/xxmachina-components-services-query-config.mjs.map +0 -1
- package/groups/command-form/command-form.group.d.ts +0 -10
- package/groups/query-form/query-form.group.d.ts +0 -19
- package/molecules/calendar-paginator/calendar-paginator.molecule.d.ts +0 -11
- package/molecules/daily-cell/daily-cell.molecule.d.ts +0 -32
- package/molecules/weekly-header/weekly-header.molecule.d.ts +0 -8
- package/organisms/calendar-section/calendar-section.organism.d.ts +0 -22
- package/organisms/event-input-section/event-input-section.organism.d.ts +0 -43
- package/organisms/video-trimmer-section/video-trimmer-section.organism.d.ts +0 -25
- package/pages/command/command.page.d.ts +0 -113
- package/pages/query/query.page.d.ts +0 -145
- package/router/index.d.ts +0 -5
- package/routes/commands/commands.routes.d.ts +0 -3
- package/routes/commands/pages/command/command.routes.d.ts +0 -2
- package/routes/commands/pages/pages.routes.d.ts +0 -3
- package/routes/pages/pages.routes.d.ts +0 -3
- package/routes/preloading/preloading.strategy.d.ts +0 -8
- package/routes/queries/pages/pages.routes.d.ts +0 -3
- package/routes/queries/queries.routes.d.ts +0 -3
- package/routes/query/pages/pages.routes.d.ts +0 -3
- package/routes/query/query.routes.d.ts +0 -4
- package/routes/resources/pages/pages.routes.d.ts +0 -3
- package/routes/resources/pages/resource/resource.routes.d.ts +0 -3
- package/routes/resources/resources.routes.d.ts +0 -3
- package/routes/side/chat/chat.component.d.ts +0 -37
- package/routes/side/chat/chat.routes.d.ts +0 -3
- package/routes/side/pages.routes.d.ts +0 -3
- package/services/assistant/assistant.service.d.ts +0 -17
- package/services/calendar/calendar.service.d.ts +0 -10
- package/services/command/command.service.d.ts +0 -49
- package/services/contract/contract.service.d.ts +0 -7
- package/services/debug/debug.service.d.ts +0 -11
- package/services/forms/query/query.service.d.ts +0 -38
- package/services/forms/schedule/schedule.service.d.ts +0 -39
- package/services/graphql/graphql.service.d.ts +0 -14
- package/services/invoice/invoice.service.d.ts +0 -15
- package/services/json-schema/json-schema.service.d.ts +0 -12
- package/services/link/link.service.d.ts +0 -10
- package/services/openapi/openapi.service.d.ts +0 -14
- package/services/order/order.service.d.ts +0 -10
- package/services/partner/partner.service.d.ts +0 -7
- package/services/query/query.service.d.ts +0 -34
- package/services/query-config/index.d.ts +0 -1
- package/services/query-config/query-config.service.d.ts +0 -26
- package/services/recording/recording.service.d.ts +0 -17
- package/services/schedule/schedule.service.d.ts +0 -23
- package/services/thread/thread.service.d.ts +0 -27
- package/services/youtube/youtube.service.d.ts +0 -7
- package/templates/background/background.template.d.ts +0 -13
- package/templates/invoice-iframe/invoice-iframe.template.d.ts +0 -10
- package/templates/scheduler/scheduler.template.d.ts +0 -29
- package/templates/video/video.template.d.ts +0 -31
- package/validators/query/query.validators.d.ts +0 -4
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { __decorate, __metadata } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { signal, Injectable, effect, computed,
|
|
4
|
-
import { toObservable
|
|
5
|
-
import {
|
|
6
|
-
import { InjectableComponent, createAction, applyToInput,
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import { signal, Injectable, effect, inject, computed, untracked, ElementRef, input, Directive, viewChild, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
4
|
+
import { toObservable } from '@angular/core/rxjs-interop';
|
|
5
|
+
import { IndexTemplateStore, IndexTemplate } from '@ng-atomic/components/templates/_index';
|
|
6
|
+
import { InjectableComponent, createAction, applyToInput, provideEffect, computeFake, _computed, TokenizedType, NgAtomicComponent, updateInput, Effect } from '@ng-atomic/core';
|
|
7
|
+
import { EditingStateManager } from '@ng-atomic/common';
|
|
8
|
+
import { AppService } from '@xxmachina/components/services/app';
|
|
9
|
+
import { buildColumns, TableOrganism, injectIndexFormBuilder } from '@ng-atomic/components/organisms/table';
|
|
9
10
|
import { FormGroup, FormBuilder } from '@angular/forms';
|
|
10
|
-
import {
|
|
11
|
-
import { injectUnflattenRouteParam, injectHasNext, injectRouteData, getRawValue$ } from '@ng-atomic/common/utils';
|
|
11
|
+
import { injectUnflattenRouteParam, injectHasNext, injectRouteData, injectNavigationExtras, getValue$, getRawValue$, injectRouteSkip } from '@ng-atomic/common/utils';
|
|
12
12
|
import { ActivatedRoute } from '@angular/router';
|
|
13
|
-
import { RouterOutletFrame } from '@ng-atomic/components/frames/router-outlet';
|
|
13
|
+
import { RouterOutletFrameStore, RouterOutletFrame } from '@ng-atomic/components/frames/router-outlet';
|
|
14
14
|
import { CommandService } from '@xxmachina/components/services/command';
|
|
15
15
|
import { FlatTreeControl } from '@angular/cdk/tree';
|
|
16
16
|
import { Query, QueryHelper } from '@xxmachina/common/domain/models';
|
|
17
17
|
import { injectOne } from '@ng-atomic/common/stores/entities';
|
|
18
|
-
import {
|
|
19
|
-
import { flatten } from 'flat';
|
|
18
|
+
import { makeDI, injectNavStartActionsV2 } from '@ng-atomic/common/services/ui';
|
|
20
19
|
import { makeInitializerConfig } from '@ng-atomic/common/services/initializer';
|
|
21
|
-
import { derivedAsync } from 'ngxtension/derived-async';
|
|
22
20
|
import { NgAtomicFormSectionBuilder } from '@ng-atomic/components/templates/form';
|
|
23
|
-
import {
|
|
24
|
-
import { QueryFeature } from '@xxmachina/components/features/query';
|
|
21
|
+
import { QueryFeature, QueryGraphqlVariablesFormFeature } from '@xxmachina/components/features/query';
|
|
25
22
|
import { QueryService } from '@xxmachina/components/services/query';
|
|
26
|
-
import { NgAtomicColumnMoleculeStore } from '@ng-atomic/common/directives/molecules/column';
|
|
27
23
|
import { QueryFormGroup } from '@xxmachina/components/groups/query-form';
|
|
24
|
+
import { flatten } from 'flat';
|
|
25
|
+
import { derivedAsync } from 'ngxtension/derived-async';
|
|
26
|
+
import { omitBy, merge, isEqual } from 'lodash-es';
|
|
27
|
+
import { ValueCellAtomStore } from '@ng-atomic/components/atoms/value-cell';
|
|
28
|
+
import { MachinaDevService } from '@xxmachina/components/services/debug';
|
|
28
29
|
|
|
29
30
|
var QueryPageStore_1;
|
|
30
31
|
var ActionId;
|
|
@@ -32,6 +33,8 @@ var ActionId;
|
|
|
32
33
|
ActionId["NAVIGATE_TO_IFRAME"] = "NAVIGATE TO IFRAME";
|
|
33
34
|
ActionId["TOGGLE_PAGE"] = "\u5168\u4F53\u8868\u793A";
|
|
34
35
|
ActionId["TOGGLE_VARIABLES_FORM"] = "\u5909\u6570\u30D5\u30A9\u30FC\u30E0\u306E\u8868\u793A\u5207\u66FF";
|
|
36
|
+
ActionId["ADD"] = "\u8FFD\u52A0";
|
|
37
|
+
ActionId["DETAIL"] = "\u8A73\u7D30";
|
|
35
38
|
})(ActionId || (ActionId = {}));
|
|
36
39
|
function buildItemsMap(itemsResult = {}, itemsLengthResult = {}) {
|
|
37
40
|
return Object.entries(itemsResult).reduce((acc, [key, items]) => ({
|
|
@@ -42,6 +45,30 @@ function buildItemsMap(itemsResult = {}, itemsLengthResult = {}) {
|
|
|
42
45
|
}
|
|
43
46
|
}), {});
|
|
44
47
|
}
|
|
48
|
+
function buildItemsMapFromResult(result = {}) {
|
|
49
|
+
console.debug('[DEBUG] result:', result);
|
|
50
|
+
const data = omitBy(result, (_, key) => key.startsWith('_'));
|
|
51
|
+
if (Array.isArray(data)) {
|
|
52
|
+
return buildItemsMap({ default: data });
|
|
53
|
+
}
|
|
54
|
+
else if (data && typeof data === 'object' && 'items' in data) {
|
|
55
|
+
const itemsMap = buildItemsMap({ default: data.items }, { default: data?.itemsLength });
|
|
56
|
+
return itemsMap;
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
const itemsResult = {};
|
|
60
|
+
const itemsLengthResult = {};
|
|
61
|
+
Object.entries(data).forEach(([key, value]) => {
|
|
62
|
+
if (key.endsWith('Length')) {
|
|
63
|
+
itemsLengthResult[key.replace('Length', '')] = value;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
itemsResult[key] = value;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
return buildItemsMap(itemsResult, itemsLengthResult);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
45
72
|
class QueryActionReducer {
|
|
46
73
|
constructor() {
|
|
47
74
|
this.action = signal(null);
|
|
@@ -50,53 +77,76 @@ class QueryActionReducer {
|
|
|
50
77
|
dispatch(action) {
|
|
51
78
|
this.action.set(action);
|
|
52
79
|
}
|
|
53
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
54
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
80
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: QueryActionReducer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
81
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: QueryActionReducer, providedIn: 'root' }); }
|
|
55
82
|
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: QueryActionReducer, decorators: [{
|
|
57
84
|
type: Injectable,
|
|
58
85
|
args: [{ providedIn: 'root' }]
|
|
59
86
|
}] });
|
|
60
87
|
let QueryPageStore = class QueryPageStore extends InjectableComponent {
|
|
61
88
|
static { QueryPageStore_1 = this; }
|
|
62
89
|
static { this.ActionId = ActionId; }
|
|
63
|
-
static { this.
|
|
90
|
+
static { this.DI = makeDI(QueryPageStore_1, () => {
|
|
64
91
|
return () => ({
|
|
92
|
+
type: 'table',
|
|
65
93
|
style: {
|
|
66
94
|
width: 'var(--page-width-lv2)',
|
|
67
95
|
},
|
|
96
|
+
title: null,
|
|
68
97
|
titleEditable: true,
|
|
69
|
-
childrenKey:
|
|
98
|
+
childrenKey: 'children',
|
|
99
|
+
additionalNavEndActions: [],
|
|
70
100
|
navEndActions: [],
|
|
71
101
|
additionalColumns: (items) => [],
|
|
102
|
+
itemActions: (item => [{ id: QueryPageStore_1.ActionId.DETAIL, icon: 'open_in_new', name: '詳細', payload: item }]),
|
|
103
|
+
pageSizeOptions: [50, 100, 300, 500, 1000],
|
|
72
104
|
});
|
|
73
105
|
}, ['@xxmachina/components', 'pages', 'query']); }
|
|
106
|
+
/** @deprecated use `QueryPageStore.DI.provideInitializer` instead */
|
|
74
107
|
static { this.Initializer = makeInitializerConfig(QueryPageStore_1); }
|
|
75
108
|
static provideDefault() {
|
|
76
109
|
return [
|
|
77
|
-
QueryPageStore_1.
|
|
110
|
+
QueryPageStore_1.DI.provideConfig(),
|
|
78
111
|
QueryPageStore_1.provideDefaultInitializes(),
|
|
79
112
|
QueryPageStore_1.provideDefaultEffects(),
|
|
113
|
+
QueryPageStore_1.provideDebugStyleInitializer(),
|
|
114
|
+
QueryFeature.provideDefault(),
|
|
80
115
|
];
|
|
81
116
|
}
|
|
82
|
-
static
|
|
117
|
+
static provideCustom() {
|
|
83
118
|
return [
|
|
84
|
-
QueryPageStore_1.
|
|
119
|
+
QueryPageStore_1.DI.provideConfig(),
|
|
120
|
+
QueryPageStore_1.provideDefaultInitializes(),
|
|
121
|
+
QueryPageStore_1.provideDefaultEffects(),
|
|
122
|
+
QueryPageStore_1.provideDebugStyleInitializer(),
|
|
85
123
|
QueryPageStore_1.provideNonEditableConfig(),
|
|
86
124
|
QueryPageStore_1.provideQueryFromRouteDataQueryIdInitializer(),
|
|
87
125
|
QueryPageStore_1.provideAutoTogglePageInitializer(),
|
|
88
|
-
|
|
126
|
+
QueryFeature.provideDefault(),
|
|
127
|
+
];
|
|
128
|
+
}
|
|
129
|
+
static provideDefaultV2() {
|
|
130
|
+
return [
|
|
131
|
+
QueryPageStore_1.provideCustom(),
|
|
132
|
+
QueryPageStore_1.DI.Config.provide(() => config => ({ ...config })),
|
|
133
|
+
QueryPageStore_1.provideTitleFromQueryResultInitializer(),
|
|
134
|
+
QueryPageStore_1.provideQueryFromRouteDataInitializer(),
|
|
135
|
+
QueryPageStore_1.providePaginationInitializer(),
|
|
89
136
|
];
|
|
90
137
|
}
|
|
138
|
+
/** @deprecated use `provideCustom` instead */
|
|
139
|
+
static provideForCustomPage() {
|
|
140
|
+
return this.provideCustom();
|
|
141
|
+
}
|
|
91
142
|
static provideNonEditableConfig() {
|
|
92
|
-
return QueryPageStore_1.
|
|
143
|
+
return QueryPageStore_1.DI.provideConfig(() => {
|
|
93
144
|
return config => ({
|
|
94
145
|
...config,
|
|
95
146
|
titleEditable: false,
|
|
96
147
|
style: {
|
|
97
148
|
...config.style,
|
|
98
|
-
width: `var(--page-width-lv3)
|
|
99
|
-
'--first-content-height': '0px'
|
|
149
|
+
width: `var(--page-width-lv3)`
|
|
100
150
|
},
|
|
101
151
|
});
|
|
102
152
|
});
|
|
@@ -109,7 +159,7 @@ let QueryPageStore = class QueryPageStore extends InjectableComponent {
|
|
|
109
159
|
}
|
|
110
160
|
static provideNavEndActionsInitializers() {
|
|
111
161
|
return [
|
|
112
|
-
QueryPageStore_1.
|
|
162
|
+
QueryPageStore_1.DI.provideInitializer((store) => {
|
|
113
163
|
effect(() => {
|
|
114
164
|
const icon = store.style()?.width === 'var(--page-width-lv3)' ? 'close_fullscreen' : 'open_in_full';
|
|
115
165
|
const navEndActions = [
|
|
@@ -125,7 +175,7 @@ let QueryPageStore = class QueryPageStore extends InjectableComponent {
|
|
|
125
175
|
}
|
|
126
176
|
static provideVariablesFromRouteParamDataInitializer() {
|
|
127
177
|
return [
|
|
128
|
-
QueryPageStore_1.
|
|
178
|
+
QueryPageStore_1.DI.provideInitializer(store => {
|
|
129
179
|
const data = injectUnflattenRouteParam('data');
|
|
130
180
|
effect(() => {
|
|
131
181
|
const variables = store.variablesFormValue();
|
|
@@ -139,22 +189,43 @@ let QueryPageStore = class QueryPageStore extends InjectableComponent {
|
|
|
139
189
|
}),
|
|
140
190
|
];
|
|
141
191
|
}
|
|
192
|
+
static provideVariablesFromRouteParamInitializer() {
|
|
193
|
+
return [
|
|
194
|
+
QueryPageStore_1.DI.provideInitializer(store => {
|
|
195
|
+
const data = injectUnflattenRouteParam();
|
|
196
|
+
effect(() => {
|
|
197
|
+
const variables = store.variablesFormValue();
|
|
198
|
+
const merged = merge(variables, data());
|
|
199
|
+
store.feature.form.patchValue({
|
|
200
|
+
graphql: {
|
|
201
|
+
variablesJson: JSON.stringify(merged, null, 2),
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
});
|
|
205
|
+
}),
|
|
206
|
+
];
|
|
207
|
+
}
|
|
142
208
|
static provideAutoTogglePageInitializer() {
|
|
143
209
|
return [
|
|
144
|
-
|
|
210
|
+
provideEffect(RouterOutletFrameStore.ActionId.DEACTIVATED, () => {
|
|
211
|
+
const store = inject(QueryPageStore_1);
|
|
212
|
+
const style = computeFake(store.style());
|
|
213
|
+
return () => {
|
|
214
|
+
applyToInput(store, 'style', { ...style, paddingLeft: `0` });
|
|
215
|
+
};
|
|
216
|
+
}),
|
|
217
|
+
QueryPageStore_1.DI.provideInitializer((store) => {
|
|
145
218
|
const hasNext = injectHasNext();
|
|
146
|
-
|
|
147
|
-
effect(() => style = store.style());
|
|
148
|
-
store.routerOutletFrameEvent.pipe(distinctUntilChanged(), debounceTime(2)).subscribe((event) => {
|
|
149
|
-
if (event === 'deactivated') {
|
|
150
|
-
const _style = computeFake(style);
|
|
151
|
-
applyToInput(store, 'style', { ..._style, 'padding-left': 0 });
|
|
152
|
-
}
|
|
153
|
-
});
|
|
219
|
+
const style = computeFake(store.style());
|
|
154
220
|
effect(() => {
|
|
155
221
|
if (hasNext()) {
|
|
156
222
|
setTimeout(() => {
|
|
157
|
-
|
|
223
|
+
if (style.width === 'var(--page-width-lv3)') {
|
|
224
|
+
applyToInput(store, 'style', {
|
|
225
|
+
...style,
|
|
226
|
+
paddingLeft: 'var(--page-width-lv1)',
|
|
227
|
+
});
|
|
228
|
+
}
|
|
158
229
|
}, 300);
|
|
159
230
|
}
|
|
160
231
|
});
|
|
@@ -163,7 +234,7 @@ let QueryPageStore = class QueryPageStore extends InjectableComponent {
|
|
|
163
234
|
}
|
|
164
235
|
static provideVariablesFormValueFromMatrixParamsInitializer() {
|
|
165
236
|
return [
|
|
166
|
-
QueryPageStore_1.
|
|
237
|
+
QueryPageStore_1.DI.provideInitializer((store) => {
|
|
167
238
|
const data = injectUnflattenRouteParam('data');
|
|
168
239
|
effect(() => {
|
|
169
240
|
store.variablesForm()?.patchValue({ ...data() });
|
|
@@ -173,7 +244,7 @@ let QueryPageStore = class QueryPageStore extends InjectableComponent {
|
|
|
173
244
|
}
|
|
174
245
|
static provideQueryFromRouteDataQueryIdInitializer(key = 'queryId') {
|
|
175
246
|
return [
|
|
176
|
-
QueryPageStore_1.
|
|
247
|
+
QueryPageStore_1.DI.provideInitializer((store) => {
|
|
177
248
|
const query = injectOne(Query, { id: injectRouteData(key) });
|
|
178
249
|
const _query = computed(() => {
|
|
179
250
|
return query();
|
|
@@ -185,8 +256,16 @@ let QueryPageStore = class QueryPageStore extends InjectableComponent {
|
|
|
185
256
|
}),
|
|
186
257
|
];
|
|
187
258
|
}
|
|
259
|
+
static provideQueryFromRouteDataInitializer(key = 'query') {
|
|
260
|
+
return [
|
|
261
|
+
QueryPageStore_1.DI.provideInitializer((store) => {
|
|
262
|
+
const query = injectRouteData(key);
|
|
263
|
+
effect(() => applyToInput(store, 'query', query()));
|
|
264
|
+
}),
|
|
265
|
+
];
|
|
266
|
+
}
|
|
188
267
|
static provideItemActionsFromRouteDataInitializer(key = 'itemActionsCommandIds') {
|
|
189
|
-
return QueryPageStore_1.
|
|
268
|
+
return QueryPageStore_1.DI.provideInitializer((store) => {
|
|
190
269
|
const idOrObjectArray = injectRouteData(key);
|
|
191
270
|
const service = inject(CommandService);
|
|
192
271
|
const itemActions = (item) => {
|
|
@@ -203,7 +282,7 @@ let QueryPageStore = class QueryPageStore extends InjectableComponent {
|
|
|
203
282
|
});
|
|
204
283
|
}
|
|
205
284
|
static provideNavEndActionsFromRouteDataInitializer(key = 'navEndActionsCommandIds') {
|
|
206
|
-
return QueryPageStore_1.
|
|
285
|
+
return QueryPageStore_1.DI.provideInitializer((store) => {
|
|
207
286
|
const ids = injectRouteData(key);
|
|
208
287
|
const queryId = injectRouteData('navEndActionsCommandQueryId');
|
|
209
288
|
const service = inject(CommandService);
|
|
@@ -225,27 +304,38 @@ let QueryPageStore = class QueryPageStore extends InjectableComponent {
|
|
|
225
304
|
}
|
|
226
305
|
static provideDefaultEffects() {
|
|
227
306
|
return [
|
|
228
|
-
QueryPageStore_1.
|
|
307
|
+
QueryPageStore_1.provideCommandEffects(),
|
|
229
308
|
QueryPageStore_1.provideNavModeToggleEffect(),
|
|
230
309
|
QueryPageStore_1.provideChangeWidthEffect(),
|
|
231
310
|
QueryFeature.provideDefaultEffects(),
|
|
311
|
+
QueryPageStore_1.provideNavigateEffects(),
|
|
312
|
+
QueryPageStore_1.provideEditingStateEffects(),
|
|
232
313
|
];
|
|
233
314
|
}
|
|
234
|
-
static
|
|
315
|
+
static provideEditingStateEffects() {
|
|
235
316
|
return [
|
|
236
|
-
provideEffect(
|
|
237
|
-
const
|
|
238
|
-
const route = inject(ActivatedRoute);
|
|
239
|
-
const hasNext = injectHasNext();
|
|
317
|
+
provideEffect(ValueCellAtomStore.ActionId.START_EDIT, () => {
|
|
318
|
+
const editingStateManager = inject(EditingStateManager);
|
|
240
319
|
return (payload) => {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
320
|
+
editingStateManager.startEditing(payload.rowId, payload.columnId);
|
|
321
|
+
};
|
|
322
|
+
}),
|
|
323
|
+
provideEffect(ValueCellAtomStore.ActionId.END_EDIT, () => {
|
|
324
|
+
const editingStateManager = inject(EditingStateManager);
|
|
325
|
+
return (payload) => {
|
|
326
|
+
setTimeout(() => editingStateManager.stopEditing(payload.rowId, payload.columnId), 0);
|
|
247
327
|
};
|
|
248
328
|
}),
|
|
329
|
+
];
|
|
330
|
+
}
|
|
331
|
+
static provideCommandEffects() {
|
|
332
|
+
return [
|
|
333
|
+
QueryPageStore_1.provideCommandExecuteEffect(),
|
|
334
|
+
QueryPageStore_1.provideCommandNavigateEffect(),
|
|
335
|
+
];
|
|
336
|
+
}
|
|
337
|
+
static provideCommandExecuteEffect() {
|
|
338
|
+
return [
|
|
249
339
|
provideEffect(CommandService.ActionId.EXECUTE_COMMAND, () => {
|
|
250
340
|
const commandService = inject(CommandService);
|
|
251
341
|
return async (payload) => {
|
|
@@ -269,41 +359,231 @@ let QueryPageStore = class QueryPageStore extends InjectableComponent {
|
|
|
269
359
|
}),
|
|
270
360
|
];
|
|
271
361
|
}
|
|
362
|
+
static provideCommandNavigateEffect() {
|
|
363
|
+
return [
|
|
364
|
+
provideEffect(CommandService.ActionId.NAVIGATE_TO_COMMAND_PAGE, () => {
|
|
365
|
+
const app = inject(AppService);
|
|
366
|
+
const route = inject(ActivatedRoute);
|
|
367
|
+
const hasNext = injectHasNext();
|
|
368
|
+
return (payload) => {
|
|
369
|
+
const flat = flatten({ data: { id: payload.body?.id }, queryId: payload?.options?.queryId });
|
|
370
|
+
const _flat = omitBy(flat, (value) => value === undefined);
|
|
371
|
+
app.router.navigate(['commands', { skip: true }, payload.command.id, _flat], {
|
|
372
|
+
relativeTo: route,
|
|
373
|
+
replaceUrl: hasNext(),
|
|
374
|
+
});
|
|
375
|
+
};
|
|
376
|
+
}),
|
|
377
|
+
];
|
|
378
|
+
}
|
|
272
379
|
static provideNavModeToggleEffect() {
|
|
273
380
|
return provideEffect(ActionId.TOGGLE_VARIABLES_FORM, () => {
|
|
274
381
|
const store = inject(QueryPageStore_1);
|
|
275
382
|
return () => {
|
|
276
383
|
store.navMode.set(store.navMode() === 'collapsed' ? 'expanded' : 'collapsed');
|
|
277
384
|
};
|
|
385
|
+
}, { scopes: ['root', 'host'] });
|
|
386
|
+
}
|
|
387
|
+
static provideNavEndActionsInitializer() {
|
|
388
|
+
return QueryPageStore_1.DI.provideInitializer((store) => {
|
|
389
|
+
const navEndActions = computed(() => [
|
|
390
|
+
store.variablesFormDisplayed() ? {
|
|
391
|
+
id: ActionId.TOGGLE_VARIABLES_FORM,
|
|
392
|
+
icon: store.navMode() === 'collapsed' ? 'expand_less' : 'expand_more'
|
|
393
|
+
} : null,
|
|
394
|
+
].filter(Boolean));
|
|
395
|
+
effect(() => applyToInput(store, 'navEndActions', [
|
|
396
|
+
...navEndActions(),
|
|
397
|
+
...store.additionalNavEndActions()
|
|
398
|
+
]));
|
|
278
399
|
});
|
|
279
400
|
}
|
|
280
401
|
static provideChangeWidthEffect() {
|
|
281
|
-
return
|
|
282
|
-
|
|
402
|
+
return [
|
|
403
|
+
provideEffect(IndexTemplateStore.ActionId.TABLE_COLUMN_WIDTH_CHANGE, () => {
|
|
283
404
|
const store = inject(QueryPageStore_1);
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
405
|
+
return (payload) => {
|
|
406
|
+
const form = store.itemsMap()?.[payload.key]?.form || store.form();
|
|
407
|
+
form.patchValue({ columns: { map: { [payload.columnName]: { width: payload.width } } } });
|
|
408
|
+
};
|
|
409
|
+
}),
|
|
410
|
+
];
|
|
411
|
+
}
|
|
412
|
+
static provideNavigateEffects() {
|
|
413
|
+
return [
|
|
414
|
+
provideEffect(QueryPageStore_1.ActionId.ADD, () => {
|
|
415
|
+
const app = inject(AppService);
|
|
416
|
+
const extras = injectNavigationExtras();
|
|
417
|
+
return (item) => app.router.navigate(['new'], extras());
|
|
418
|
+
}),
|
|
419
|
+
provideEffect(QueryPageStore_1.ActionId.DETAIL, () => {
|
|
420
|
+
const app = inject(AppService);
|
|
421
|
+
const extras = injectNavigationExtras();
|
|
422
|
+
return (item) => app.router.navigate([item.id], extras());
|
|
423
|
+
}),
|
|
424
|
+
];
|
|
425
|
+
}
|
|
426
|
+
static providePaginationInitializer() {
|
|
427
|
+
return [
|
|
428
|
+
QueryPageStore_1.DI.provideInitializer((store) => {
|
|
429
|
+
effect(() => {
|
|
430
|
+
const columns = store.columnNames();
|
|
431
|
+
const sticky = store.sticky();
|
|
432
|
+
const current = untracked(() => store.form())?.value;
|
|
433
|
+
const form = store.indexFormBuilder.build({
|
|
434
|
+
columns: buildColumns([...columns, '__actions'], sticky),
|
|
435
|
+
page: {
|
|
436
|
+
size: current?.page?.size ?? 100,
|
|
437
|
+
index: current?.page?.index ?? 0,
|
|
438
|
+
}
|
|
439
|
+
});
|
|
440
|
+
applyToInput(store, 'form', form);
|
|
441
|
+
});
|
|
442
|
+
}),
|
|
443
|
+
QueryPageStore_1.DI.provideInitializer((store) => {
|
|
444
|
+
const page = derivedAsync(() => getValue$(store.form().get(['page'])), {
|
|
445
|
+
initialValue: { index: 0, size: 100 }
|
|
446
|
+
});
|
|
447
|
+
const pagination = computed(() => {
|
|
448
|
+
const _page = page() || { index: 0, size: 100 };
|
|
449
|
+
return {
|
|
450
|
+
offset: _page.index * _page.size,
|
|
451
|
+
limit: _page.size,
|
|
452
|
+
};
|
|
289
453
|
});
|
|
454
|
+
effect(() => {
|
|
455
|
+
const _pagination = pagination();
|
|
456
|
+
store.variablesForm()?.patchValue(_pagination);
|
|
457
|
+
});
|
|
458
|
+
}),
|
|
459
|
+
];
|
|
460
|
+
}
|
|
461
|
+
static provideTableCellValueChangeEffect(handlerFactory, optionsOrColumns) {
|
|
462
|
+
return provideEffect(ValueCellAtomStore.ActionId.UPDATE_VALUE, (injector) => {
|
|
463
|
+
// 後方互換性のためのオプション正規化
|
|
464
|
+
const normalizedOptions = Array.isArray(optionsOrColumns)
|
|
465
|
+
? { columns: optionsOrColumns }
|
|
466
|
+
: (optionsOrColumns || {});
|
|
467
|
+
// デフォルトの比較関数
|
|
468
|
+
const defaultEquals = (current, next) => current === next;
|
|
469
|
+
const equalsFn = normalizedOptions.equals || defaultEquals;
|
|
470
|
+
const handler = handlerFactory(injector);
|
|
471
|
+
return (action) => {
|
|
472
|
+
const { context, next, current, setValue } = action;
|
|
473
|
+
const name = context.name;
|
|
474
|
+
// フィールドフィルタリング
|
|
475
|
+
if (normalizedOptions.columns && normalizedOptions.columns.length > 0 && !normalizedOptions.columns.includes(name)) {
|
|
476
|
+
return;
|
|
477
|
+
}
|
|
478
|
+
// 値の比較
|
|
479
|
+
if (equalsFn(current, next, name)) {
|
|
480
|
+
// 値が同じ場合は処理をスキップ
|
|
481
|
+
return;
|
|
482
|
+
}
|
|
483
|
+
// TableCellValueChangeオブジェクトの作成
|
|
484
|
+
const change = {
|
|
485
|
+
item: context.item,
|
|
486
|
+
name: name,
|
|
487
|
+
current: current,
|
|
488
|
+
next: next,
|
|
489
|
+
rowIndex: context.position?.row ?? 0,
|
|
490
|
+
columnId: context.name
|
|
491
|
+
};
|
|
492
|
+
// ハンドラーの実行
|
|
493
|
+
handler(change, setValue);
|
|
494
|
+
};
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
static provideTableAutofillEffect(handlerFactory) {
|
|
498
|
+
return provideEffect(TableOrganism.ActionId.AUTOFILL_COMPLETE, (injector) => {
|
|
499
|
+
const handler = handlerFactory(injector);
|
|
500
|
+
const store = inject(QueryPageStore_1);
|
|
501
|
+
return async (payload) => {
|
|
502
|
+
// TableOrganismから渡されたコンテキスト情報を使用
|
|
503
|
+
if (!payload.contexts) {
|
|
504
|
+
console.warn('No autofill contexts provided');
|
|
505
|
+
return;
|
|
506
|
+
}
|
|
507
|
+
const { sourceContext, targetContexts } = payload.contexts;
|
|
508
|
+
const sourceItem = sourceContext.item;
|
|
509
|
+
const columnName = sourceContext.name;
|
|
510
|
+
const sourceValue = sourceItem[columnName];
|
|
511
|
+
// 影響を受けるアイテムを収集(表示されているセルのみ)
|
|
512
|
+
const affectedItems = [];
|
|
513
|
+
targetContexts.forEach(({ position, context }, index) => {
|
|
514
|
+
const targetItem = context.item;
|
|
515
|
+
// 値の生成
|
|
516
|
+
let newValue = sourceValue;
|
|
517
|
+
// 数値の連番
|
|
518
|
+
if (typeof sourceValue === 'number') {
|
|
519
|
+
newValue = sourceValue + index + 1;
|
|
520
|
+
}
|
|
521
|
+
// 文字列パターン
|
|
522
|
+
else if (typeof sourceValue === 'string') {
|
|
523
|
+
const dateMatch = sourceValue.match(/^(\d{4}-\d{2}-\d{2})$/);
|
|
524
|
+
if (dateMatch) {
|
|
525
|
+
const sourceDate = new Date(dateMatch[1]);
|
|
526
|
+
const newDate = new Date(sourceDate);
|
|
527
|
+
newDate.setDate(sourceDate.getDate() + index + 1);
|
|
528
|
+
newValue = newDate.toISOString().split('T')[0];
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
affectedItems.push({
|
|
532
|
+
item: targetItem,
|
|
533
|
+
newValue,
|
|
534
|
+
rowIndex: position.row
|
|
535
|
+
});
|
|
536
|
+
});
|
|
537
|
+
// オートフィルの変更情報を作成
|
|
538
|
+
const autofillChange = {
|
|
539
|
+
sourceItem,
|
|
540
|
+
sourceValue,
|
|
541
|
+
columnName,
|
|
542
|
+
columnIndex: payload.sourcePosition.col,
|
|
543
|
+
affectedItems,
|
|
544
|
+
range: payload.targetRange
|
|
545
|
+
};
|
|
546
|
+
// ハンドラーを実行
|
|
547
|
+
await handler(autofillChange);
|
|
290
548
|
};
|
|
291
549
|
});
|
|
292
550
|
}
|
|
551
|
+
static provideDebugStyleInitializer() {
|
|
552
|
+
return [
|
|
553
|
+
QueryPageStore_1.DI.provideInitializer((store) => {
|
|
554
|
+
const debug = inject(MachinaDevService);
|
|
555
|
+
const el = inject(ElementRef);
|
|
556
|
+
effect(() => el.nativeElement.style.setProperty('--is-debug', debug.isDevMode() ? '1' : '0'));
|
|
557
|
+
}),
|
|
558
|
+
];
|
|
559
|
+
}
|
|
560
|
+
static provideTitleFromQueryResultInitializer() {
|
|
561
|
+
return [
|
|
562
|
+
QueryPageStore_1.DI.provideInitializer((store) => {
|
|
563
|
+
effect(() => applyToInput(store, 'title', store.feature.result()?.__meta__?.title));
|
|
564
|
+
}),
|
|
565
|
+
];
|
|
566
|
+
}
|
|
567
|
+
#navStartActions;
|
|
293
568
|
constructor() {
|
|
294
569
|
super();
|
|
295
570
|
this.app = inject(AppService);
|
|
296
|
-
this.config = QueryPageStore_1.
|
|
571
|
+
this.config = QueryPageStore_1.DI.injectConfig();
|
|
297
572
|
this.feature = inject(QueryFeature);
|
|
573
|
+
this.variablesFormFeature = inject(QueryGraphqlVariablesFormFeature);
|
|
298
574
|
this.indexFormBuilder = injectIndexFormBuilder();
|
|
299
575
|
this.navMode = signal('collapsed');
|
|
576
|
+
this.editingStateManager = inject(EditingStateManager);
|
|
300
577
|
this.style = input(_computed(() => this.config().style));
|
|
301
578
|
this.query = input(null);
|
|
302
|
-
this
|
|
579
|
+
this.#navStartActions = injectNavStartActionsV2();
|
|
580
|
+
this.navStartActions = input(_computed(() => this.#navStartActions()));
|
|
581
|
+
this.additionalNavEndActions = input(_computed(() => this.config().additionalNavEndActions));
|
|
303
582
|
this.navEndActions = input(_computed(() => this.config().navEndActions));
|
|
304
|
-
this.
|
|
583
|
+
this.type = input(_computed(() => this.config().type));
|
|
584
|
+
this.title = input(_computed(() => this.config().title ?? this.query()?.title));
|
|
305
585
|
this.titleEditable = input(_computed(() => this.config().titleEditable));
|
|
306
|
-
this.itemsMap = input(_computed(() =>
|
|
586
|
+
this.itemsMap = input(_computed(() => buildItemsMapFromResult(this.feature.result())));
|
|
307
587
|
this.items = computed(() => this.itemsMap()[Object.keys(this.itemsMap())[0]]?.items ?? []);
|
|
308
588
|
this.itemsLength = input(_computed(() => this.itemsMap()[Object.keys(this.itemsMap())[0]]?.itemsLength ?? 0));
|
|
309
589
|
this.childrenKey = input(_computed(() => this.config().childrenKey));
|
|
@@ -315,31 +595,28 @@ let QueryPageStore = class QueryPageStore extends InjectableComponent {
|
|
|
315
595
|
this.form = input(_computed(() => this.indexFormBuilder.build({
|
|
316
596
|
columns: buildColumns([...this.columnNames(), '__actions'], this.sticky()),
|
|
317
597
|
})));
|
|
318
|
-
this.itemActions = input((
|
|
319
|
-
this.tableTreeControl = new FlatTreeControl(n => n.level, n => n.isExpandable, { trackBy: (n) => n
|
|
320
|
-
this.variablesForm = input(_computed(() => this.
|
|
598
|
+
this.itemActions = input(_computed(() => this.config().itemActions));
|
|
599
|
+
this.tableTreeControl = new FlatTreeControl(n => n.level, n => n.isExpandable, { trackBy: (n) => n?.id ?? n });
|
|
600
|
+
this.variablesForm = input(_computed(() => this.variablesFormFeature.variablesForm() ?? new FormGroup({})));
|
|
321
601
|
this.variablesFormFieldMap = input(_computed(() => ({})));
|
|
322
602
|
this.variablesFormValue = derivedAsync(() => getRawValue$(this.variablesForm()), { equal: isEqual });
|
|
323
603
|
this.variablesFormValue$ = toObservable(this.variablesFormValue);
|
|
324
|
-
this.variablesFormDisplayed = input(_computed(() => Object.keys(this.
|
|
325
|
-
this.routerOutletFrameEvent = new EventEmitter();
|
|
604
|
+
this.variablesFormDisplayed = input(_computed(() => Object.keys(this.variablesFormFeature.variablesValue())?.length > 0));
|
|
326
605
|
this.tableColumnFormFieldMap = input(_computed(() => ({})));
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
this.feature.variablesFormValue$.next(value);
|
|
333
|
-
});
|
|
606
|
+
this.getRowClass = input(_computed(() => () => ''));
|
|
607
|
+
this.skip = injectRouteSkip();
|
|
608
|
+
this.pageSizeOptions = input(_computed(() => this.config().pageSizeOptions));
|
|
609
|
+
QueryPageStore_1.DI.initialize(this);
|
|
610
|
+
effect(() => this.feature.form.patchValue(this.query()));
|
|
334
611
|
}
|
|
335
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
336
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
612
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: QueryPageStore, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
613
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.5", type: QueryPageStore, isStandalone: true, inputs: { style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: false, transformFunction: null }, navStartActions: { classPropertyName: "navStartActions", publicName: "navStartActions", isSignal: true, isRequired: false, transformFunction: null }, additionalNavEndActions: { classPropertyName: "additionalNavEndActions", publicName: "additionalNavEndActions", isSignal: true, isRequired: false, transformFunction: null }, navEndActions: { classPropertyName: "navEndActions", publicName: "navEndActions", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, titleEditable: { classPropertyName: "titleEditable", publicName: "titleEditable", isSignal: true, isRequired: false, transformFunction: null }, itemsMap: { classPropertyName: "itemsMap", publicName: "itemsMap", isSignal: true, isRequired: false, transformFunction: null }, itemsLength: { classPropertyName: "itemsLength", publicName: "itemsLength", isSignal: true, isRequired: false, transformFunction: null }, childrenKey: { classPropertyName: "childrenKey", publicName: "childrenKey", isSignal: true, isRequired: false, transformFunction: null }, additionalColumns: { classPropertyName: "additionalColumns", publicName: "additionalColumns", isSignal: true, isRequired: false, transformFunction: null }, additionalColumnNames: { classPropertyName: "additionalColumnNames", publicName: "additionalColumnNames", isSignal: true, isRequired: false, transformFunction: null }, extractedColumnNames: { classPropertyName: "extractedColumnNames", publicName: "extractedColumnNames", isSignal: true, isRequired: false, transformFunction: null }, columnNames: { classPropertyName: "columnNames", publicName: "columnNames", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, itemActions: { classPropertyName: "itemActions", publicName: "itemActions", isSignal: true, isRequired: false, transformFunction: null }, variablesForm: { classPropertyName: "variablesForm", publicName: "variablesForm", isSignal: true, isRequired: false, transformFunction: null }, variablesFormFieldMap: { classPropertyName: "variablesFormFieldMap", publicName: "variablesFormFieldMap", isSignal: true, isRequired: false, transformFunction: null }, variablesFormDisplayed: { classPropertyName: "variablesFormDisplayed", publicName: "variablesFormDisplayed", isSignal: true, isRequired: false, transformFunction: null }, tableColumnFormFieldMap: { classPropertyName: "tableColumnFormFieldMap", publicName: "tableColumnFormFieldMap", isSignal: true, isRequired: false, transformFunction: null }, getRowClass: { classPropertyName: "getRowClass", publicName: "getRowClass", isSignal: true, isRequired: false, transformFunction: null }, pageSizeOptions: { classPropertyName: "pageSizeOptions", publicName: "pageSizeOptions", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
|
|
337
614
|
};
|
|
338
615
|
QueryPageStore = QueryPageStore_1 = __decorate([
|
|
339
616
|
TokenizedType(),
|
|
340
617
|
__metadata("design:paramtypes", [])
|
|
341
618
|
], QueryPageStore);
|
|
342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
619
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: QueryPageStore, decorators: [{
|
|
343
620
|
type: Directive,
|
|
344
621
|
args: [{ standalone: true }]
|
|
345
622
|
}], ctorParameters: () => [] });
|
|
@@ -352,8 +629,15 @@ class QueryPage extends NgAtomicComponent {
|
|
|
352
629
|
this.store = inject(QueryPageStore);
|
|
353
630
|
this.reducer = inject(QueryActionReducer);
|
|
354
631
|
this.query = inject(QueryService);
|
|
632
|
+
this.feature = inject(QueryFeature);
|
|
355
633
|
this.template = viewChild(IndexTemplate);
|
|
634
|
+
this.title = input('default title');
|
|
356
635
|
this.reducer.action$.subscribe((action) => this.dispatch(action));
|
|
636
|
+
const context = computed(() => ({
|
|
637
|
+
query: this.feature.formValue(),
|
|
638
|
+
// schema: this.feature.graphqlSchema(),
|
|
639
|
+
}));
|
|
640
|
+
effect(() => this.app.context.context.set(JSON.stringify(context())));
|
|
357
641
|
}
|
|
358
642
|
async back() {
|
|
359
643
|
history.back();
|
|
@@ -369,25 +653,30 @@ class QueryPage extends NgAtomicComponent {
|
|
|
369
653
|
width: style?.width === 'var(--page-width-lv3)' ? 'var(--page-width-lv2)' : 'var(--page-width-lv3)',
|
|
370
654
|
}));
|
|
371
655
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
656
|
+
itemClick(item) {
|
|
657
|
+
this.dispatch({ id: ActionId.DETAIL, payload: item });
|
|
658
|
+
}
|
|
659
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: QueryPage, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
660
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.5", type: QueryPage, isStandalone: true, selector: "pages-query", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "template", first: true, predicate: IndexTemplate, descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: QueryPageStore, inputs: ["type", "type", "query", "query", "titleEditable", "titleEditable", "variablesForm", "variablesForm", "variablesFormFieldMap", "variablesFormFieldMap", "navStartActions", "navStartActions", "navEndActions", "navEndActions", "itemActions", "itemActions", "pageSizeOptions", "pageSizeOptions"] }], ngImport: i0, template: `
|
|
661
|
+
<frames-router-outlet [skip]="store.skip()" (action)="dispatch($event)">
|
|
375
662
|
<templates-index
|
|
376
663
|
[tableColumnFormFieldMap]="store.tableColumnFormFieldMap()"
|
|
377
664
|
[style]="store.style()"
|
|
378
665
|
[title]="store.title()"
|
|
379
666
|
[titleControl]="store.feature.form.get(['title'])"
|
|
380
667
|
[titleEditable]="store.titleEditable()"
|
|
381
|
-
[type]="
|
|
668
|
+
[type]="store.type()"
|
|
382
669
|
[tableChildrenKey]="store.childrenKey()"
|
|
383
670
|
[tableTreeControl]="store.tableTreeControl"
|
|
384
671
|
[itemsMap]="store.itemsMap()"
|
|
385
672
|
[itemsLength]="store.itemsLength()"
|
|
386
673
|
[itemActions]="store.itemActions()"
|
|
674
|
+
[getRowClass]="store.getRowClass()"
|
|
387
675
|
[form]="store.form()"
|
|
388
676
|
[navStartActions]="store.navStartActions()"
|
|
389
677
|
[navEndActions]="store.navEndActions()"
|
|
390
678
|
[navMode]="store.navMode()"
|
|
679
|
+
[pageSizeOptions]="store.pageSizeOptions()"
|
|
391
680
|
(action)="dispatch($event)"
|
|
392
681
|
>
|
|
393
682
|
@if (store.variablesFormDisplayed()) {
|
|
@@ -401,7 +690,7 @@ class QueryPage extends NgAtomicComponent {
|
|
|
401
690
|
<groups-query-form dashboard (action)="dispatch($event)" />
|
|
402
691
|
</templates-index>
|
|
403
692
|
</frames-router-outlet>
|
|
404
|
-
`, isInline: true, styles: ["@charset \"UTF-8\";:host{width:100%;height:100%;display:block;--page-width-lv1-SCOPED-IN-query-
|
|
693
|
+
`, isInline: true, styles: ["@charset \"UTF-8\";:host{width:100%;height:100%;display:block;--page-width-lv1-SCOPED-IN-query-mVNl: var(--page-width-lv1);--page-width-lv3-SCOPED-IN-query-mVNl: var(--page-width-lv3);--primary-color-SCOPED-IN-query-mVNl: var(--primary-color);--on-primary-color-SCOPED-IN-query-mVNl: var(--on-primary-color);--surface-color-SCOPED-IN-query-mVNl: var(--surface-color);--on-surface-color-SCOPED-IN-query-mVNl: var(--on-surface-color);--on-background-color-SCOPED-IN-query-mVNl: var(--on-background-color);--background-color-SCOPED-IN-query-mVNl: var(--background-color);--navigator-background-color-SCOPED-IN-query-mVNl: var(--navigator-background-color);--navigator-on-background-color-SCOPED-IN-query-mVNl: var(--navigator-on-background-color);--table-background-color-SCOPED-IN-query-mVNl: var(--table-background-color);--table-on-background-color-SCOPED-IN-query-mVNl: var(--table-on-background-color);--is-debug: 1;--is-debug-SCOPED-IN-query-mVNl: var(--is-debug)}:host *{--primary-color: var(--primary-color-SCOPED-IN-query-mVNl);--on-primary-color: var(--on-primary-color-SCOPED-IN-query-mVNl);--surface-color: var(--surface-color-SCOPED-IN-query-mVNl);--on-surface-color: var(--on-surface-color-SCOPED-IN-query-mVNl);--background-color: var(--background-color-SCOPED-IN-query-mVNl);--on-background-color: var(--on-background-color-SCOPED-IN-query-mVNl);--navigator-background-color: var(--navigator-background-color-SCOPED-IN-query-mVNl);--navigator-on-background-color: var(--navigator-on-background-color-SCOPED-IN-query-mVNl);--table-background-color: var(--table-background-color-SCOPED-IN-query-mVNl);--table-on-background-color: var(--table-on-background-color-SCOPED-IN-query-mVNl);--is-debug: var(--is-debug-SCOPED-IN-query-mVNl)}:host templates-index{padding-left:0;box-sizing:border-box;--first-content-height: calc(var(--is-debug-SCOPED-IN-query-mVNl) * 300px);transition:padding-left .3s}:host templates-index div[navDashboard]{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;padding:16px;box-sizing:border-box}:host templates-index div[navDashboard] ng-atomic-form-section-builder{--horizontal-padding: 0}\n"], dependencies: [{ kind: "component", type: IndexTemplate, selector: "templates-index" }, { kind: "component", type: RouterOutletFrame, selector: "frames-router-outlet", outputs: ["events"] }, { kind: "component", type: NgAtomicFormSectionBuilder, selector: "ng-atomic-form-section-builder", inputs: ["form", "formFlatExcludes", "fieldMap", "fieldKeys"] }, { kind: "component", type: QueryFormGroup, selector: "groups-query-form", inputs: ["form", "keyActions"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
405
694
|
}
|
|
406
695
|
__decorate([
|
|
407
696
|
Effect(IndexTemplateStore.ActionId.BACK),
|
|
@@ -421,7 +710,13 @@ __decorate([
|
|
|
421
710
|
__metadata("design:paramtypes", []),
|
|
422
711
|
__metadata("design:returntype", Promise)
|
|
423
712
|
], QueryPage.prototype, "expandPage", null);
|
|
424
|
-
|
|
713
|
+
__decorate([
|
|
714
|
+
Effect(IndexTemplate.ActionId.ITEM_CLICK),
|
|
715
|
+
__metadata("design:type", Function),
|
|
716
|
+
__metadata("design:paramtypes", [Object]),
|
|
717
|
+
__metadata("design:returntype", void 0)
|
|
718
|
+
], QueryPage.prototype, "itemClick", null);
|
|
719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: QueryPage, decorators: [{
|
|
425
720
|
type: Component,
|
|
426
721
|
args: [{ selector: 'pages-query', imports: [
|
|
427
722
|
IndexTemplate,
|
|
@@ -429,23 +724,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
429
724
|
NgAtomicFormSectionBuilder,
|
|
430
725
|
QueryFormGroup,
|
|
431
726
|
], template: `
|
|
432
|
-
<frames-router-outlet
|
|
727
|
+
<frames-router-outlet [skip]="store.skip()" (action)="dispatch($event)">
|
|
433
728
|
<templates-index
|
|
434
729
|
[tableColumnFormFieldMap]="store.tableColumnFormFieldMap()"
|
|
435
730
|
[style]="store.style()"
|
|
436
731
|
[title]="store.title()"
|
|
437
732
|
[titleControl]="store.feature.form.get(['title'])"
|
|
438
733
|
[titleEditable]="store.titleEditable()"
|
|
439
|
-
[type]="
|
|
734
|
+
[type]="store.type()"
|
|
440
735
|
[tableChildrenKey]="store.childrenKey()"
|
|
441
736
|
[tableTreeControl]="store.tableTreeControl"
|
|
442
737
|
[itemsMap]="store.itemsMap()"
|
|
443
738
|
[itemsLength]="store.itemsLength()"
|
|
444
739
|
[itemActions]="store.itemActions()"
|
|
740
|
+
[getRowClass]="store.getRowClass()"
|
|
445
741
|
[form]="store.form()"
|
|
446
742
|
[navStartActions]="store.navStartActions()"
|
|
447
743
|
[navEndActions]="store.navEndActions()"
|
|
448
744
|
[navMode]="store.navMode()"
|
|
745
|
+
[pageSizeOptions]="store.pageSizeOptions()"
|
|
449
746
|
(action)="dispatch($event)"
|
|
450
747
|
>
|
|
451
748
|
@if (store.variablesFormDisplayed()) {
|
|
@@ -463,18 +760,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
463
760
|
{
|
|
464
761
|
directive: QueryPageStore,
|
|
465
762
|
inputs: [
|
|
763
|
+
'type',
|
|
466
764
|
'query',
|
|
467
765
|
'titleEditable',
|
|
468
766
|
'variablesForm',
|
|
469
767
|
'variablesFormFieldMap',
|
|
768
|
+
'navStartActions',
|
|
769
|
+
'navEndActions',
|
|
770
|
+
'itemActions',
|
|
771
|
+
'pageSizeOptions'
|
|
470
772
|
]
|
|
471
773
|
},
|
|
472
|
-
], styles: ["@charset \"UTF-8\";:host{width:100%;height:100%;display:block;--page-width-lv1-SCOPED-IN-query-
|
|
473
|
-
}], ctorParameters: () => [], propDecorators: { back: [], navigateToIframe: [], expandPage: [] } });
|
|
774
|
+
], styles: ["@charset \"UTF-8\";:host{width:100%;height:100%;display:block;--page-width-lv1-SCOPED-IN-query-mVNl: var(--page-width-lv1);--page-width-lv3-SCOPED-IN-query-mVNl: var(--page-width-lv3);--primary-color-SCOPED-IN-query-mVNl: var(--primary-color);--on-primary-color-SCOPED-IN-query-mVNl: var(--on-primary-color);--surface-color-SCOPED-IN-query-mVNl: var(--surface-color);--on-surface-color-SCOPED-IN-query-mVNl: var(--on-surface-color);--on-background-color-SCOPED-IN-query-mVNl: var(--on-background-color);--background-color-SCOPED-IN-query-mVNl: var(--background-color);--navigator-background-color-SCOPED-IN-query-mVNl: var(--navigator-background-color);--navigator-on-background-color-SCOPED-IN-query-mVNl: var(--navigator-on-background-color);--table-background-color-SCOPED-IN-query-mVNl: var(--table-background-color);--table-on-background-color-SCOPED-IN-query-mVNl: var(--table-on-background-color);--is-debug: 1;--is-debug-SCOPED-IN-query-mVNl: var(--is-debug)}:host *{--primary-color: var(--primary-color-SCOPED-IN-query-mVNl);--on-primary-color: var(--on-primary-color-SCOPED-IN-query-mVNl);--surface-color: var(--surface-color-SCOPED-IN-query-mVNl);--on-surface-color: var(--on-surface-color-SCOPED-IN-query-mVNl);--background-color: var(--background-color-SCOPED-IN-query-mVNl);--on-background-color: var(--on-background-color-SCOPED-IN-query-mVNl);--navigator-background-color: var(--navigator-background-color-SCOPED-IN-query-mVNl);--navigator-on-background-color: var(--navigator-on-background-color-SCOPED-IN-query-mVNl);--table-background-color: var(--table-background-color-SCOPED-IN-query-mVNl);--table-on-background-color: var(--table-on-background-color-SCOPED-IN-query-mVNl);--is-debug: var(--is-debug-SCOPED-IN-query-mVNl)}:host templates-index{padding-left:0;box-sizing:border-box;--first-content-height: calc(var(--is-debug-SCOPED-IN-query-mVNl) * 300px);transition:padding-left .3s}:host templates-index div[navDashboard]{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;padding:16px;box-sizing:border-box}:host templates-index div[navDashboard] ng-atomic-form-section-builder{--horizontal-padding: 0}\n"] }]
|
|
775
|
+
}], ctorParameters: () => [], propDecorators: { back: [], navigateToIframe: [], expandPage: [], itemClick: [] } });
|
|
474
776
|
|
|
475
777
|
/**
|
|
476
778
|
* Generated bundle index. Do not edit.
|
|
477
779
|
*/
|
|
478
780
|
|
|
479
|
-
export { ActionId, QueryActionReducer, QueryPage, QueryPageStore, buildItemsMap };
|
|
781
|
+
export { ActionId, QueryActionReducer, QueryPage, QueryPageStore, buildItemsMap, buildItemsMapFromResult };
|
|
480
782
|
//# sourceMappingURL=xxmachina-components-pages-query.mjs.map
|