@xxmachina/components 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/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 +53 -5
- 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
package/pages/command/index.d.ts
CHANGED
|
@@ -1 +1,217 @@
|
|
|
1
|
-
|
|
1
|
+
import * as _xxmachina_common_domain_models from '@xxmachina/common/domain/models';
|
|
2
|
+
import { Command, Query } from '@xxmachina/common/domain/models';
|
|
3
|
+
import * as _ng_atomic_common_services_ui from '@ng-atomic/common/services/ui';
|
|
4
|
+
import * as _angular_core from '@angular/core';
|
|
5
|
+
import { Provider } from '@angular/core';
|
|
6
|
+
import * as _ng_atomic_core from '@ng-atomic/core';
|
|
7
|
+
import { Action, InjectableComponent, NgAtomicComponent } from '@ng-atomic/core';
|
|
8
|
+
import { FormGroup } from '@angular/forms';
|
|
9
|
+
import { RouterOutletFrame } from '@ng-atomic/components/frames/router-outlet';
|
|
10
|
+
import { Params, ParamMap, ActivatedRoute } from '@angular/router';
|
|
11
|
+
import { FormFieldMap } from '@ng-atomic/common/pipes/smart-field';
|
|
12
|
+
import { AppService } from '@ng-atomic/common/services/app';
|
|
13
|
+
import { CommandFeature } from '@xxmachina/components/features/command';
|
|
14
|
+
import { QueryFeature } from '@xxmachina/components/features/query';
|
|
15
|
+
|
|
16
|
+
declare enum ActionId {
|
|
17
|
+
EXECUTE_COMMAND = "execute-command",
|
|
18
|
+
FILE_SELECTED = "file-selected"
|
|
19
|
+
}
|
|
20
|
+
declare function buildActions(hasPermission: boolean, invalid: boolean): Action[];
|
|
21
|
+
declare class CommandPageStore extends InjectableComponent {
|
|
22
|
+
#private;
|
|
23
|
+
static readonly ActionId: typeof ActionId;
|
|
24
|
+
static readonly DI: {
|
|
25
|
+
provide: (typeOrComponent: Parameters<(typeOrFactory: _ng_atomic_core.TypeOrTypeFactory<any>) => {
|
|
26
|
+
provide: any;
|
|
27
|
+
useValue: () => Promise<_angular_core.Type<any>>;
|
|
28
|
+
}>[0]) => (Provider | {
|
|
29
|
+
provide: any;
|
|
30
|
+
useValue: () => Promise<_angular_core.Type<any>>;
|
|
31
|
+
})[];
|
|
32
|
+
provideConfig: (useFactory?: _ng_atomic_common_services_ui.ReducerFactory<{
|
|
33
|
+
style: {
|
|
34
|
+
width: string;
|
|
35
|
+
};
|
|
36
|
+
baseUrls: string[];
|
|
37
|
+
command: Command;
|
|
38
|
+
navEndActions: Action[];
|
|
39
|
+
additionalFormFieldMap: FormFieldMap;
|
|
40
|
+
}>, label?: string) => Provider;
|
|
41
|
+
injectConfig: () => _angular_core.Signal<{
|
|
42
|
+
style: {
|
|
43
|
+
width: string;
|
|
44
|
+
};
|
|
45
|
+
baseUrls: string[];
|
|
46
|
+
command: Command;
|
|
47
|
+
navEndActions: Action[];
|
|
48
|
+
additionalFormFieldMap: FormFieldMap;
|
|
49
|
+
}>;
|
|
50
|
+
provideInitializer: <SI extends (store: CommandPageStore) => Promise<void> | void>(initializer: SI) => {
|
|
51
|
+
provide: _angular_core.InjectionToken<(store: any) => Promise<void> | void>;
|
|
52
|
+
useValue: {
|
|
53
|
+
key: new () => CommandPageStore;
|
|
54
|
+
initializer: (store: CommandPageStore) => Promise<void> | void;
|
|
55
|
+
};
|
|
56
|
+
multi: boolean;
|
|
57
|
+
}[];
|
|
58
|
+
initialize: (store: CommandPageStore) => Promise<void>;
|
|
59
|
+
provideComponent: (typeOrFactory: _ng_atomic_core.TypeOrTypeFactory<any>) => {
|
|
60
|
+
provide: any;
|
|
61
|
+
useValue: () => Promise<_angular_core.Type<any>>;
|
|
62
|
+
};
|
|
63
|
+
Initializer: {
|
|
64
|
+
provide<SI extends (store: CommandPageStore) => Promise<void> | void>(initializer: SI): {
|
|
65
|
+
provide: _angular_core.InjectionToken<(store: any) => Promise<void> | void>;
|
|
66
|
+
useValue: {
|
|
67
|
+
key: new () => CommandPageStore;
|
|
68
|
+
initializer: (store: CommandPageStore) => Promise<void> | void;
|
|
69
|
+
};
|
|
70
|
+
multi: boolean;
|
|
71
|
+
}[];
|
|
72
|
+
inject(): ((store: CommandPageStore) => Promise<void> | void)[];
|
|
73
|
+
initializeStore(store: CommandPageStore): Promise<void>;
|
|
74
|
+
};
|
|
75
|
+
Config: {
|
|
76
|
+
provide(useFactory?: _ng_atomic_common_services_ui.ReducerFactory<{
|
|
77
|
+
style: {
|
|
78
|
+
width: string;
|
|
79
|
+
};
|
|
80
|
+
baseUrls: string[];
|
|
81
|
+
command: Command;
|
|
82
|
+
navEndActions: Action[];
|
|
83
|
+
additionalFormFieldMap: FormFieldMap;
|
|
84
|
+
}>, label?: string): Provider;
|
|
85
|
+
inject(): _angular_core.Signal<{
|
|
86
|
+
style: {
|
|
87
|
+
width: string;
|
|
88
|
+
};
|
|
89
|
+
baseUrls: string[];
|
|
90
|
+
command: Command;
|
|
91
|
+
navEndActions: Action[];
|
|
92
|
+
additionalFormFieldMap: FormFieldMap;
|
|
93
|
+
}>;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
static readonly Config: {
|
|
97
|
+
provide(useFactory?: _ng_atomic_common_services_ui.ReducerFactory<{
|
|
98
|
+
style: {
|
|
99
|
+
width: string;
|
|
100
|
+
};
|
|
101
|
+
baseUrls: string[];
|
|
102
|
+
command: Command;
|
|
103
|
+
navEndActions: Action[];
|
|
104
|
+
additionalFormFieldMap: FormFieldMap;
|
|
105
|
+
}>, label?: string): Provider;
|
|
106
|
+
inject(): _angular_core.Signal<{
|
|
107
|
+
style: {
|
|
108
|
+
width: string;
|
|
109
|
+
};
|
|
110
|
+
baseUrls: string[];
|
|
111
|
+
command: Command;
|
|
112
|
+
navEndActions: Action[];
|
|
113
|
+
additionalFormFieldMap: FormFieldMap;
|
|
114
|
+
}>;
|
|
115
|
+
};
|
|
116
|
+
static readonly Initializer: {
|
|
117
|
+
provide<SI extends (store: CommandPageStore) => Promise<void> | void>(initializer: SI): {
|
|
118
|
+
provide: _angular_core.InjectionToken<(store: any) => Promise<void> | void>;
|
|
119
|
+
useValue: {
|
|
120
|
+
key: new () => CommandPageStore;
|
|
121
|
+
initializer: (store: CommandPageStore) => Promise<void> | void;
|
|
122
|
+
};
|
|
123
|
+
multi: boolean;
|
|
124
|
+
}[];
|
|
125
|
+
inject(): ((store: CommandPageStore) => Promise<void> | void)[];
|
|
126
|
+
initializeStore(store: CommandPageStore): Promise<void>;
|
|
127
|
+
};
|
|
128
|
+
static provideDefault(): Provider[];
|
|
129
|
+
static provideCustom(): Provider[];
|
|
130
|
+
static provideDefaultV2(): Provider[];
|
|
131
|
+
static provideDefaultInitializer(): Provider[];
|
|
132
|
+
static provideDefaultEffects(): Provider[];
|
|
133
|
+
static provideCommandFromRouteParamInitializer(paramName?: string): Provider;
|
|
134
|
+
static provideCommandIdFromRouteDataInitializer(): Provider;
|
|
135
|
+
static providePatchFormFromRouteParamInitializer(): {
|
|
136
|
+
provide: _angular_core.InjectionToken<(store: any) => Promise<void> | void>;
|
|
137
|
+
useValue: {
|
|
138
|
+
key: new () => CommandPageStore;
|
|
139
|
+
initializer: (store: CommandPageStore) => Promise<void> | void;
|
|
140
|
+
};
|
|
141
|
+
multi: boolean;
|
|
142
|
+
}[][];
|
|
143
|
+
static providePatchCommandFormValueFromCommandInitializer(): {
|
|
144
|
+
provide: _angular_core.InjectionToken<(store: any) => Promise<void> | void>;
|
|
145
|
+
useValue: {
|
|
146
|
+
key: new () => CommandPageStore;
|
|
147
|
+
initializer: (store: CommandPageStore) => Promise<void> | void;
|
|
148
|
+
};
|
|
149
|
+
multi: boolean;
|
|
150
|
+
}[][];
|
|
151
|
+
static provideQueryIdFromRouteParam(key?: string): Provider;
|
|
152
|
+
static provideQueryFromRouteData(key?: string): Provider;
|
|
153
|
+
static provideRouteParamsToDataInitializer(projector: (params: Params) => Record<string, any>): Provider[];
|
|
154
|
+
static provideRouteParamMapToDataInitializer(projector: (params: ParamMap) => Record<string, any>): Provider[];
|
|
155
|
+
static provideSetupInitializeQueryInitializer(): Provider;
|
|
156
|
+
static provideInitialFormValueFromQueryResult(): Provider;
|
|
157
|
+
static provideExecuteCommandEffect(): Provider;
|
|
158
|
+
static provideBackEffect(): Provider;
|
|
159
|
+
static provideFileSelectedEffect(): Provider;
|
|
160
|
+
static provideDebugFormInitializer(): Provider;
|
|
161
|
+
static provideSelectedFileUploadEffect(callbackFactory: () => (result: {
|
|
162
|
+
file: File;
|
|
163
|
+
path: string;
|
|
164
|
+
url: string;
|
|
165
|
+
}) => void | Promise<void>, { validator, getPath, }: {
|
|
166
|
+
validator?: (file: File) => {
|
|
167
|
+
type: boolean;
|
|
168
|
+
size: boolean;
|
|
169
|
+
} | null;
|
|
170
|
+
getPath: () => string;
|
|
171
|
+
}): Provider;
|
|
172
|
+
readonly feature: CommandFeature;
|
|
173
|
+
readonly config: _angular_core.Signal<{
|
|
174
|
+
style: {
|
|
175
|
+
width: string;
|
|
176
|
+
};
|
|
177
|
+
baseUrls: string[];
|
|
178
|
+
command: Command;
|
|
179
|
+
navEndActions: Action[];
|
|
180
|
+
additionalFormFieldMap: FormFieldMap;
|
|
181
|
+
}>;
|
|
182
|
+
readonly queryFeature: QueryFeature;
|
|
183
|
+
readonly style: _angular_core.InputSignal<{
|
|
184
|
+
width: string;
|
|
185
|
+
}>;
|
|
186
|
+
readonly navStartActions: _angular_core.InputSignal<Action<any>[]>;
|
|
187
|
+
readonly navEndActions: _angular_core.InputSignal<Action<any>[]>;
|
|
188
|
+
readonly command: _angular_core.InputSignal<_xxmachina_common_domain_models.WebAPiRequestCommand>;
|
|
189
|
+
readonly form: _angular_core.InputSignal<FormGroup<any>>;
|
|
190
|
+
readonly extractedFormFieldMap: _angular_core.InputSignal<any>;
|
|
191
|
+
readonly additionalFormFieldMap: _angular_core.InputSignal<FormFieldMap>;
|
|
192
|
+
readonly formFieldMap: _angular_core.InputSignal<FormFieldMap>;
|
|
193
|
+
readonly formFieldKeys: _angular_core.InputSignal<string[]>;
|
|
194
|
+
readonly formFlatExcludes: _angular_core.InputSignal<string[]>;
|
|
195
|
+
protected readonly _initializeQuery: _angular_core.Signal<Query<any, any>>;
|
|
196
|
+
readonly initializeQuery: _angular_core.InputSignal<Query<any, any>>;
|
|
197
|
+
protected readonly _data: _angular_core.Signal<any>;
|
|
198
|
+
readonly data: _angular_core.InputSignal<any>;
|
|
199
|
+
protected readonly formInvalid: _angular_core.Signal<boolean>;
|
|
200
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
201
|
+
readonly actions: _angular_core.Signal<Action<any>[]>;
|
|
202
|
+
readonly skip: _angular_core.Signal<boolean>;
|
|
203
|
+
constructor();
|
|
204
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandPageStore, never>;
|
|
205
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CommandPageStore, never, never, { "style": { "alias": "style"; "required": false; "isSignal": true; }; "navStartActions": { "alias": "navStartActions"; "required": false; "isSignal": true; }; "navEndActions": { "alias": "navEndActions"; "required": false; "isSignal": true; }; "command": { "alias": "command"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "extractedFormFieldMap": { "alias": "extractedFormFieldMap"; "required": false; "isSignal": true; }; "additionalFormFieldMap": { "alias": "additionalFormFieldMap"; "required": false; "isSignal": true; }; "formFieldMap": { "alias": "formFieldMap"; "required": false; "isSignal": true; }; "formFieldKeys": { "alias": "formFieldKeys"; "required": false; "isSignal": true; }; "formFlatExcludes": { "alias": "formFlatExcludes"; "required": false; "isSignal": true; }; "initializeQuery": { "alias": "initializeQuery"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
206
|
+
}
|
|
207
|
+
declare class CommandPage extends NgAtomicComponent {
|
|
208
|
+
protected readonly store: CommandPageStore;
|
|
209
|
+
readonly route: ActivatedRoute;
|
|
210
|
+
readonly app: AppService;
|
|
211
|
+
readonly parentRouterOutletFrame: RouterOutletFrame;
|
|
212
|
+
protected onFileSelected(payload: any): void;
|
|
213
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommandPage, never>;
|
|
214
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommandPage, "pages-command", never, {}, {}, never, never, true, [{ directive: typeof CommandPageStore; inputs: { "style": "style"; "navEndActions": "navEndActions"; "command": "command"; "form": "form"; "additionalFormFieldMap": "additionalFormFieldMap"; "formFieldMap": "formFieldMap"; "formFlatExcludes": "formFlatExcludes"; "initializeQuery": "initializeQuery"; "data": "data"; }; outputs: {}; }]>;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export { CommandPage, CommandPageStore, buildActions };
|
package/pages/query/index.d.ts
CHANGED
|
@@ -1 +1,292 @@
|
|
|
1
|
-
|
|
1
|
+
import * as _angular_forms from '@angular/forms';
|
|
2
|
+
import { FormGroup, FormBuilder } from '@angular/forms';
|
|
3
|
+
import * as _ng_atomic_components_organisms_table from '@ng-atomic/components/organisms/table';
|
|
4
|
+
import * as _ng_atomic_common_services_ui from '@ng-atomic/common/services/ui';
|
|
5
|
+
import * as _ng_atomic_core from '@ng-atomic/core';
|
|
6
|
+
import { Action, InjectableComponent, NavActions, ItemActions, NgAtomicComponent } from '@ng-atomic/core';
|
|
7
|
+
import * as rxjs from 'rxjs';
|
|
8
|
+
import * as _angular_core from '@angular/core';
|
|
9
|
+
import { Provider, Injector } from '@angular/core';
|
|
10
|
+
import { ItemsMap, IndexTemplate } from '@ng-atomic/components/templates/_index';
|
|
11
|
+
import { EditingStateManager } from '@ng-atomic/common';
|
|
12
|
+
import { AppService } from '@xxmachina/components/services/app';
|
|
13
|
+
import { ActivatedRoute } from '@angular/router';
|
|
14
|
+
import { FlatTreeControl } from '@angular/cdk/tree';
|
|
15
|
+
import { Query } from '@xxmachina/common/domain/models';
|
|
16
|
+
import { FormFieldMap } from '@ng-atomic/common/pipes/smart-field';
|
|
17
|
+
import { QueryFeature, QueryGraphqlVariablesFormFeature } from '@xxmachina/components/features/query';
|
|
18
|
+
import { QueryService } from '@xxmachina/components/services/query';
|
|
19
|
+
|
|
20
|
+
declare enum ActionId {
|
|
21
|
+
NAVIGATE_TO_IFRAME = "NAVIGATE TO IFRAME",
|
|
22
|
+
TOGGLE_PAGE = "\u5168\u4F53\u8868\u793A",
|
|
23
|
+
TOGGLE_VARIABLES_FORM = "\u5909\u6570\u30D5\u30A9\u30FC\u30E0\u306E\u8868\u793A\u5207\u66FF",
|
|
24
|
+
ADD = "\u8FFD\u52A0",
|
|
25
|
+
DETAIL = "\u8A73\u7D30"
|
|
26
|
+
}
|
|
27
|
+
interface TableCellValueChange<T = any> {
|
|
28
|
+
item: T;
|
|
29
|
+
name: string;
|
|
30
|
+
current: any;
|
|
31
|
+
next: any;
|
|
32
|
+
rowIndex: number;
|
|
33
|
+
columnId: string;
|
|
34
|
+
}
|
|
35
|
+
interface TableAutofillChange<T = any> {
|
|
36
|
+
sourceItem: T;
|
|
37
|
+
sourceValue: any;
|
|
38
|
+
columnName: string;
|
|
39
|
+
columnIndex: number;
|
|
40
|
+
affectedItems: Array<{
|
|
41
|
+
item: T;
|
|
42
|
+
newValue: any;
|
|
43
|
+
rowIndex: number;
|
|
44
|
+
}>;
|
|
45
|
+
range: {
|
|
46
|
+
start: {
|
|
47
|
+
row: number;
|
|
48
|
+
col: number;
|
|
49
|
+
};
|
|
50
|
+
end: {
|
|
51
|
+
row: number;
|
|
52
|
+
col: number;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
interface TableCellChangeOptions<T = any> {
|
|
57
|
+
columns?: (keyof T)[];
|
|
58
|
+
equals?: (current: any, next: any, columnName: string) => boolean;
|
|
59
|
+
}
|
|
60
|
+
declare function buildItemsMap(itemsResult?: Record<string, any[]>, itemsLengthResult?: Record<string, number>): {};
|
|
61
|
+
declare function buildItemsMapFromResult(result?: Record<string, any[]> & Record<`${string}Length`, number>): ItemsMap<any>;
|
|
62
|
+
declare class QueryActionReducer {
|
|
63
|
+
readonly action: _angular_core.WritableSignal<Action<any>>;
|
|
64
|
+
readonly action$: rxjs.Observable<Action<any>>;
|
|
65
|
+
dispatch(action: Action): void;
|
|
66
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<QueryActionReducer, never>;
|
|
67
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<QueryActionReducer>;
|
|
68
|
+
}
|
|
69
|
+
declare class QueryPageStore extends InjectableComponent {
|
|
70
|
+
#private;
|
|
71
|
+
static readonly ActionId: typeof ActionId;
|
|
72
|
+
static readonly DI: {
|
|
73
|
+
provide: (typeOrComponent: Parameters<(typeOrFactory: _ng_atomic_core.TypeOrTypeFactory<any>) => {
|
|
74
|
+
provide: any;
|
|
75
|
+
useValue: () => Promise<_angular_core.Type<any>>;
|
|
76
|
+
}>[0]) => (Provider | {
|
|
77
|
+
provide: any;
|
|
78
|
+
useValue: () => Promise<_angular_core.Type<any>>;
|
|
79
|
+
})[];
|
|
80
|
+
provideConfig: (useFactory?: _ng_atomic_common_services_ui.ReducerFactory<{
|
|
81
|
+
type: string;
|
|
82
|
+
style: any;
|
|
83
|
+
title: string;
|
|
84
|
+
titleEditable: boolean;
|
|
85
|
+
childrenKey: string;
|
|
86
|
+
additionalNavEndActions: Action[];
|
|
87
|
+
navEndActions: NavActions;
|
|
88
|
+
additionalColumns: (items: object[]) => string[];
|
|
89
|
+
itemActions: ItemActions;
|
|
90
|
+
pageSizeOptions: number[];
|
|
91
|
+
}>, label?: string) => Provider;
|
|
92
|
+
injectConfig: () => _angular_core.Signal<{
|
|
93
|
+
type: string;
|
|
94
|
+
style: any;
|
|
95
|
+
title: string;
|
|
96
|
+
titleEditable: boolean;
|
|
97
|
+
childrenKey: string;
|
|
98
|
+
additionalNavEndActions: Action[];
|
|
99
|
+
navEndActions: NavActions;
|
|
100
|
+
additionalColumns: (items: object[]) => string[];
|
|
101
|
+
itemActions: ItemActions;
|
|
102
|
+
pageSizeOptions: number[];
|
|
103
|
+
}>;
|
|
104
|
+
provideInitializer: <SI extends (store: QueryPageStore) => Promise<void> | void>(initializer: SI) => {
|
|
105
|
+
provide: _angular_core.InjectionToken<(store: any) => Promise<void> | void>;
|
|
106
|
+
useValue: {
|
|
107
|
+
key: new () => QueryPageStore;
|
|
108
|
+
initializer: (store: QueryPageStore) => Promise<void> | void;
|
|
109
|
+
};
|
|
110
|
+
multi: boolean;
|
|
111
|
+
}[];
|
|
112
|
+
initialize: (store: QueryPageStore) => Promise<void>;
|
|
113
|
+
provideComponent: (typeOrFactory: _ng_atomic_core.TypeOrTypeFactory<any>) => {
|
|
114
|
+
provide: any;
|
|
115
|
+
useValue: () => Promise<_angular_core.Type<any>>;
|
|
116
|
+
};
|
|
117
|
+
Initializer: {
|
|
118
|
+
provide<SI extends (store: QueryPageStore) => Promise<void> | void>(initializer: SI): {
|
|
119
|
+
provide: _angular_core.InjectionToken<(store: any) => Promise<void> | void>;
|
|
120
|
+
useValue: {
|
|
121
|
+
key: new () => QueryPageStore;
|
|
122
|
+
initializer: (store: QueryPageStore) => Promise<void> | void;
|
|
123
|
+
};
|
|
124
|
+
multi: boolean;
|
|
125
|
+
}[];
|
|
126
|
+
inject(): ((store: QueryPageStore) => Promise<void> | void)[];
|
|
127
|
+
initializeStore(store: QueryPageStore): Promise<void>;
|
|
128
|
+
};
|
|
129
|
+
Config: {
|
|
130
|
+
provide(useFactory?: _ng_atomic_common_services_ui.ReducerFactory<{
|
|
131
|
+
type: string;
|
|
132
|
+
style: any;
|
|
133
|
+
title: string;
|
|
134
|
+
titleEditable: boolean;
|
|
135
|
+
childrenKey: string;
|
|
136
|
+
additionalNavEndActions: Action[];
|
|
137
|
+
navEndActions: NavActions;
|
|
138
|
+
additionalColumns: (items: object[]) => string[];
|
|
139
|
+
itemActions: ItemActions;
|
|
140
|
+
pageSizeOptions: number[];
|
|
141
|
+
}>, label?: string): Provider;
|
|
142
|
+
inject(): _angular_core.Signal<{
|
|
143
|
+
type: string;
|
|
144
|
+
style: any;
|
|
145
|
+
title: string;
|
|
146
|
+
titleEditable: boolean;
|
|
147
|
+
childrenKey: string;
|
|
148
|
+
additionalNavEndActions: Action[];
|
|
149
|
+
navEndActions: NavActions;
|
|
150
|
+
additionalColumns: (items: object[]) => string[];
|
|
151
|
+
itemActions: ItemActions;
|
|
152
|
+
pageSizeOptions: number[];
|
|
153
|
+
}>;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
/** @deprecated use `QueryPageStore.DI.provideInitializer` instead */
|
|
157
|
+
static readonly Initializer: {
|
|
158
|
+
provide<SI extends (store: QueryPageStore) => Promise<void> | void>(initializer: SI): {
|
|
159
|
+
provide: _angular_core.InjectionToken<(store: any) => Promise<void> | void>;
|
|
160
|
+
useValue: {
|
|
161
|
+
key: new () => QueryPageStore;
|
|
162
|
+
initializer: (store: QueryPageStore) => Promise<void> | void;
|
|
163
|
+
};
|
|
164
|
+
multi: boolean;
|
|
165
|
+
}[];
|
|
166
|
+
inject(): ((store: QueryPageStore) => Promise<void> | void)[];
|
|
167
|
+
initializeStore(store: QueryPageStore): Promise<void>;
|
|
168
|
+
};
|
|
169
|
+
static provideDefault(): Provider[];
|
|
170
|
+
static provideCustom(): Provider[];
|
|
171
|
+
static provideDefaultV2(): Provider[];
|
|
172
|
+
/** @deprecated use `provideCustom` instead */
|
|
173
|
+
static provideForCustomPage(): Provider[];
|
|
174
|
+
static provideNonEditableConfig(): Provider;
|
|
175
|
+
static provideDefaultInitializes(): Provider[];
|
|
176
|
+
static provideNavEndActionsInitializers(): Provider[];
|
|
177
|
+
static provideVariablesFromRouteParamDataInitializer(): Provider[];
|
|
178
|
+
static provideVariablesFromRouteParamInitializer(): Provider[];
|
|
179
|
+
static provideAutoTogglePageInitializer(): Provider[];
|
|
180
|
+
static provideVariablesFormValueFromMatrixParamsInitializer(): Provider[];
|
|
181
|
+
static provideQueryFromRouteDataQueryIdInitializer(key?: string): Provider[];
|
|
182
|
+
static provideQueryFromRouteDataInitializer(key?: string): Provider[];
|
|
183
|
+
static provideItemActionsFromRouteDataInitializer(key?: string): Provider;
|
|
184
|
+
static provideNavEndActionsFromRouteDataInitializer(key?: string): Provider;
|
|
185
|
+
static provideDefaultEffects(): Provider[];
|
|
186
|
+
static provideEditingStateEffects(): Provider[];
|
|
187
|
+
static provideCommandEffects(): Provider[];
|
|
188
|
+
static provideCommandExecuteEffect(): Provider[];
|
|
189
|
+
static provideCommandNavigateEffect(): Provider[];
|
|
190
|
+
static provideNavModeToggleEffect(): Provider;
|
|
191
|
+
static provideNavEndActionsInitializer(): Provider;
|
|
192
|
+
static provideChangeWidthEffect(): Provider[];
|
|
193
|
+
static provideNavigateEffects(): Provider[];
|
|
194
|
+
static providePaginationInitializer(): Provider[];
|
|
195
|
+
static provideTableCellValueChangeEffect<T = any>(handlerFactory: (injector: Injector) => (change: TableCellValueChange<T>, setValue: (value: any) => void) => void, optionsOrColumns?: TableCellChangeOptions<T> | (keyof T)[]): Provider;
|
|
196
|
+
static provideTableAutofillEffect<T = any>(handlerFactory: (injector: Injector) => (autofill: TableAutofillChange<T>) => void | Promise<void>): Provider;
|
|
197
|
+
static provideDebugStyleInitializer(): Provider[];
|
|
198
|
+
static provideTitleFromQueryResultInitializer(): Provider[];
|
|
199
|
+
protected readonly app: AppService;
|
|
200
|
+
protected readonly config: _angular_core.Signal<{
|
|
201
|
+
type: string;
|
|
202
|
+
style: any;
|
|
203
|
+
title: string;
|
|
204
|
+
titleEditable: boolean;
|
|
205
|
+
childrenKey: string;
|
|
206
|
+
additionalNavEndActions: Action[];
|
|
207
|
+
navEndActions: NavActions;
|
|
208
|
+
additionalColumns: (items: object[]) => string[];
|
|
209
|
+
itemActions: ItemActions;
|
|
210
|
+
pageSizeOptions: number[];
|
|
211
|
+
}>;
|
|
212
|
+
readonly feature: QueryFeature;
|
|
213
|
+
readonly variablesFormFeature: QueryGraphqlVariablesFormFeature;
|
|
214
|
+
readonly indexFormBuilder: _ng_atomic_components_organisms_table.IndexFormBuilder;
|
|
215
|
+
readonly navMode: _angular_core.WritableSignal<"expanded" | "collapsed">;
|
|
216
|
+
readonly editingStateManager: EditingStateManager;
|
|
217
|
+
readonly style: _angular_core.InputSignal<any>;
|
|
218
|
+
readonly query: _angular_core.InputSignal<Query<any, any>>;
|
|
219
|
+
readonly navStartActions: _angular_core.InputSignal<Action<any>[]>;
|
|
220
|
+
readonly additionalNavEndActions: _angular_core.InputSignal<Action<any>[]>;
|
|
221
|
+
readonly navEndActions: _angular_core.InputSignal<NavActions>;
|
|
222
|
+
readonly type: _angular_core.InputSignal<string>;
|
|
223
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
224
|
+
readonly titleEditable: _angular_core.InputSignal<boolean>;
|
|
225
|
+
readonly itemsMap: _angular_core.InputSignal<ItemsMap<any>>;
|
|
226
|
+
readonly items: _angular_core.Signal<any[]>;
|
|
227
|
+
readonly itemsLength: _angular_core.InputSignal<number>;
|
|
228
|
+
readonly childrenKey: _angular_core.InputSignal<string>;
|
|
229
|
+
readonly additionalColumns: _angular_core.InputSignal<(items: object[]) => string[]>;
|
|
230
|
+
readonly additionalColumnNames: _angular_core.InputSignal<string[]>;
|
|
231
|
+
readonly extractedColumnNames: _angular_core.InputSignal<string[]>;
|
|
232
|
+
readonly columnNames: _angular_core.InputSignal<string[]>;
|
|
233
|
+
readonly sticky: _angular_core.InputSignal<{
|
|
234
|
+
stickyStart: number;
|
|
235
|
+
stickyEnd: number;
|
|
236
|
+
}>;
|
|
237
|
+
readonly form: _angular_core.InputSignal<FormGroup<{
|
|
238
|
+
query: _angular_forms.FormControl<string>;
|
|
239
|
+
page: FormGroup<{
|
|
240
|
+
size: _angular_forms.FormControl<number>;
|
|
241
|
+
index: _angular_forms.FormControl<number>;
|
|
242
|
+
length: _angular_forms.FormControl<number>;
|
|
243
|
+
}>;
|
|
244
|
+
sort: FormGroup<{
|
|
245
|
+
key: _angular_forms.FormControl<string>;
|
|
246
|
+
order: _angular_forms.FormControl<"asc" | "desc">;
|
|
247
|
+
}>;
|
|
248
|
+
columns: FormGroup<{
|
|
249
|
+
ids: _angular_forms.FormControl<string[]>;
|
|
250
|
+
map: FormGroup<{}>;
|
|
251
|
+
}>;
|
|
252
|
+
}>>;
|
|
253
|
+
readonly itemActions: _angular_core.InputSignal<ItemActions>;
|
|
254
|
+
readonly tableTreeControl: FlatTreeControl<any, any>;
|
|
255
|
+
readonly variablesForm: _angular_core.InputSignal<FormGroup<any>>;
|
|
256
|
+
readonly variablesFormFieldMap: _angular_core.InputSignal<FormFieldMap>;
|
|
257
|
+
readonly variablesFormValue: _angular_core.Signal<any>;
|
|
258
|
+
readonly variablesFormValue$: rxjs.Observable<any>;
|
|
259
|
+
readonly variablesFormDisplayed: _angular_core.InputSignal<boolean>;
|
|
260
|
+
readonly tableColumnFormFieldMap: _angular_core.InputSignal<FormFieldMap>;
|
|
261
|
+
readonly getRowClass: _angular_core.InputSignal<(item: any) => string>;
|
|
262
|
+
readonly skip: _angular_core.Signal<boolean>;
|
|
263
|
+
readonly pageSizeOptions: _angular_core.InputSignal<number[]>;
|
|
264
|
+
constructor();
|
|
265
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<QueryPageStore, never>;
|
|
266
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<QueryPageStore, never, never, { "style": { "alias": "style"; "required": false; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; "navStartActions": { "alias": "navStartActions"; "required": false; "isSignal": true; }; "additionalNavEndActions": { "alias": "additionalNavEndActions"; "required": false; "isSignal": true; }; "navEndActions": { "alias": "navEndActions"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "titleEditable": { "alias": "titleEditable"; "required": false; "isSignal": true; }; "itemsMap": { "alias": "itemsMap"; "required": false; "isSignal": true; }; "itemsLength": { "alias": "itemsLength"; "required": false; "isSignal": true; }; "childrenKey": { "alias": "childrenKey"; "required": false; "isSignal": true; }; "additionalColumns": { "alias": "additionalColumns"; "required": false; "isSignal": true; }; "additionalColumnNames": { "alias": "additionalColumnNames"; "required": false; "isSignal": true; }; "extractedColumnNames": { "alias": "extractedColumnNames"; "required": false; "isSignal": true; }; "columnNames": { "alias": "columnNames"; "required": false; "isSignal": true; }; "sticky": { "alias": "sticky"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "itemActions": { "alias": "itemActions"; "required": false; "isSignal": true; }; "variablesForm": { "alias": "variablesForm"; "required": false; "isSignal": true; }; "variablesFormFieldMap": { "alias": "variablesFormFieldMap"; "required": false; "isSignal": true; }; "variablesFormDisplayed": { "alias": "variablesFormDisplayed"; "required": false; "isSignal": true; }; "tableColumnFormFieldMap": { "alias": "tableColumnFormFieldMap"; "required": false; "isSignal": true; }; "getRowClass": { "alias": "getRowClass"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
267
|
+
}
|
|
268
|
+
declare class QueryPage extends NgAtomicComponent {
|
|
269
|
+
readonly fb: FormBuilder;
|
|
270
|
+
readonly route: ActivatedRoute;
|
|
271
|
+
protected readonly app: AppService;
|
|
272
|
+
protected readonly store: QueryPageStore;
|
|
273
|
+
protected readonly reducer: QueryActionReducer;
|
|
274
|
+
protected readonly query: QueryService;
|
|
275
|
+
readonly feature: QueryFeature;
|
|
276
|
+
readonly template: _angular_core.Signal<IndexTemplate<any>>;
|
|
277
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
278
|
+
constructor();
|
|
279
|
+
back(): Promise<void>;
|
|
280
|
+
navigateToIframe(item: {
|
|
281
|
+
id: string;
|
|
282
|
+
}): Promise<void>;
|
|
283
|
+
expandPage(): Promise<void>;
|
|
284
|
+
protected itemClick(item: {
|
|
285
|
+
id: string;
|
|
286
|
+
}): void;
|
|
287
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<QueryPage, never>;
|
|
288
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<QueryPage, "pages-query", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof QueryPageStore; inputs: { "type": "type"; "query": "query"; "titleEditable": "titleEditable"; "variablesForm": "variablesForm"; "variablesFormFieldMap": "variablesFormFieldMap"; "navStartActions": "navStartActions"; "navEndActions": "navEndActions"; "itemActions": "itemActions"; "pageSizeOptions": "pageSizeOptions"; }; outputs: {}; }]>;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export { ActionId, QueryActionReducer, QueryPage, QueryPageStore, buildItemsMap, buildItemsMapFromResult };
|
|
292
|
+
export type { TableAutofillChange, TableCellChangeOptions, TableCellValueChange };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import * as _angular_forms from '@angular/forms';
|
|
2
|
+
import { FormBuilder } from '@angular/forms';
|
|
3
|
+
import * as _ng_atomic_common_services_ui from '@ng-atomic/common/services/ui';
|
|
4
|
+
import * as _angular_core from '@angular/core';
|
|
5
|
+
import { Provider } from '@angular/core';
|
|
6
|
+
import * as _ng_atomic_core from '@ng-atomic/core';
|
|
7
|
+
import { InjectableComponent, NavActions, NgAtomicComponent } from '@ng-atomic/core';
|
|
8
|
+
import { QueryActionReducer } from '@xxmachina/components/pages/query';
|
|
9
|
+
import { ContextService } from '@xxmachina/components/services/context';
|
|
10
|
+
|
|
11
|
+
declare enum ActionId {
|
|
12
|
+
SEND_MESSAGE = "send-message"
|
|
13
|
+
}
|
|
14
|
+
declare class ThreadPageStore extends InjectableComponent {
|
|
15
|
+
static readonly DI: {
|
|
16
|
+
provide: (typeOrComponent: Parameters<(typeOrFactory: _ng_atomic_core.TypeOrTypeFactory<any>) => {
|
|
17
|
+
provide: any;
|
|
18
|
+
useValue: () => Promise<_angular_core.Type<any>>;
|
|
19
|
+
}>[0]) => (Provider | {
|
|
20
|
+
provide: any;
|
|
21
|
+
useValue: () => Promise<_angular_core.Type<any>>;
|
|
22
|
+
})[];
|
|
23
|
+
provideConfig: (useFactory?: _ng_atomic_common_services_ui.ReducerFactory<{
|
|
24
|
+
title: string;
|
|
25
|
+
navStartActions: NavActions;
|
|
26
|
+
}>, label?: string) => Provider;
|
|
27
|
+
injectConfig: () => _angular_core.Signal<{
|
|
28
|
+
title: string;
|
|
29
|
+
navStartActions: NavActions;
|
|
30
|
+
}>;
|
|
31
|
+
provideInitializer: <SI extends (store: ThreadPageStore) => Promise<void> | void>(initializer: SI) => {
|
|
32
|
+
provide: _angular_core.InjectionToken<(store: any) => Promise<void> | void>;
|
|
33
|
+
useValue: {
|
|
34
|
+
key: new () => ThreadPageStore;
|
|
35
|
+
initializer: (store: ThreadPageStore) => Promise<void> | void;
|
|
36
|
+
};
|
|
37
|
+
multi: boolean;
|
|
38
|
+
}[];
|
|
39
|
+
initialize: (store: ThreadPageStore) => Promise<void>;
|
|
40
|
+
provideComponent: (typeOrFactory: _ng_atomic_core.TypeOrTypeFactory<any>) => {
|
|
41
|
+
provide: any;
|
|
42
|
+
useValue: () => Promise<_angular_core.Type<any>>;
|
|
43
|
+
};
|
|
44
|
+
Initializer: {
|
|
45
|
+
provide<SI extends (store: ThreadPageStore) => Promise<void> | void>(initializer: SI): {
|
|
46
|
+
provide: _angular_core.InjectionToken<(store: any) => Promise<void> | void>;
|
|
47
|
+
useValue: {
|
|
48
|
+
key: new () => ThreadPageStore;
|
|
49
|
+
initializer: (store: ThreadPageStore) => Promise<void> | void;
|
|
50
|
+
};
|
|
51
|
+
multi: boolean;
|
|
52
|
+
}[];
|
|
53
|
+
inject(): ((store: ThreadPageStore) => Promise<void> | void)[];
|
|
54
|
+
initializeStore(store: ThreadPageStore): Promise<void>;
|
|
55
|
+
};
|
|
56
|
+
Config: {
|
|
57
|
+
provide(useFactory?: _ng_atomic_common_services_ui.ReducerFactory<{
|
|
58
|
+
title: string;
|
|
59
|
+
navStartActions: NavActions;
|
|
60
|
+
}>, label?: string): Provider;
|
|
61
|
+
inject(): _angular_core.Signal<{
|
|
62
|
+
title: string;
|
|
63
|
+
navStartActions: NavActions;
|
|
64
|
+
}>;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
static provideEffects(): Provider[];
|
|
68
|
+
static provideNavigationEffects(): Provider[];
|
|
69
|
+
static provideNavStartActions(): Provider[];
|
|
70
|
+
readonly isRootPage: _angular_core.Signal<boolean>;
|
|
71
|
+
readonly config: _angular_core.Signal<{
|
|
72
|
+
title: string;
|
|
73
|
+
navStartActions: NavActions;
|
|
74
|
+
}>;
|
|
75
|
+
readonly title: _angular_core.InputSignal<string>;
|
|
76
|
+
readonly navStartActions: _angular_core.InputSignal<NavActions>;
|
|
77
|
+
readonly actions: _angular_core.WritableSignal<{
|
|
78
|
+
id: ActionId;
|
|
79
|
+
name: string;
|
|
80
|
+
icon: string;
|
|
81
|
+
}[]>;
|
|
82
|
+
protected readonly fb: FormBuilder;
|
|
83
|
+
readonly form: _angular_forms.FormGroup<{
|
|
84
|
+
message: _angular_forms.FormControl<string>;
|
|
85
|
+
name: _angular_forms.FormControl<string>;
|
|
86
|
+
description: _angular_forms.FormControl<string>;
|
|
87
|
+
}>;
|
|
88
|
+
readonly messages: _angular_core.InputSignal<{
|
|
89
|
+
role: string;
|
|
90
|
+
content: string;
|
|
91
|
+
}[]>;
|
|
92
|
+
constructor();
|
|
93
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThreadPageStore, never>;
|
|
94
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ThreadPageStore, never, never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "navStartActions": { "alias": "navStartActions"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
95
|
+
}
|
|
96
|
+
declare class ThreadPage extends NgAtomicComponent {
|
|
97
|
+
protected readonly store: ThreadPageStore;
|
|
98
|
+
protected readonly reducer: QueryActionReducer;
|
|
99
|
+
protected readonly context: ContextService;
|
|
100
|
+
readonly isComposing: _angular_core.WritableSignal<boolean>;
|
|
101
|
+
onCompositionStart(event: Event): void;
|
|
102
|
+
onCompositionEnd(event: Event): void;
|
|
103
|
+
onKeydown(event: KeyboardEvent): void;
|
|
104
|
+
protected _sendMessage(): void;
|
|
105
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThreadPage, never>;
|
|
106
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThreadPage, "app-chat", never, {}, {}, never, never, true, [{ directive: typeof ThreadPageStore; inputs: { "title": "title"; "navStartActions": "navStartActions"; "messages": "messages"; }; outputs: {}; }]>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export { ThreadPage, ThreadPageStore };
|
package/routes/index.d.ts
CHANGED
package/routes/pages/index.d.ts
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { PreloadingStrategy, Route } from '@angular/router';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
|
|
5
|
+
declare class MachinaPreloadingStrategy implements PreloadingStrategy {
|
|
6
|
+
preload(route: Route, fn: () => Observable<any>): Observable<any>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MachinaPreloadingStrategy, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MachinaPreloadingStrategy>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { MachinaPreloadingStrategy };
|