@xxmachina/components 19.0.0-preview.20 → 19.0.0-preview.22
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/fesm2022/xxmachina-components-molecules-weekly-header.mjs +2 -2
- package/fesm2022/xxmachina-components-organisms-calendar-section.mjs +2 -2
- package/fesm2022/xxmachina-components-pages-command.mjs +2 -2
- package/fesm2022/xxmachina-components-pages-query.mjs +2 -2
- package/fesm2022/{xxmachina-components-routes-commands-command.routes-CeRVzy3Z.mjs → xxmachina-components-routes-commands-command.routes-UQEr5cg4.mjs} +3 -3
- package/fesm2022/xxmachina-components-routes-commands-command.routes-UQEr5cg4.mjs.map +1 -0
- package/fesm2022/{xxmachina-components-routes-commands-pages.routes-Cm6Yd40h.mjs → xxmachina-components-routes-commands-pages.routes-B5iKXnOG.mjs} +4 -4
- package/fesm2022/xxmachina-components-routes-commands-pages.routes-B5iKXnOG.mjs.map +1 -0
- package/fesm2022/xxmachina-components-routes-commands.mjs +4 -2
- 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-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 +4 -2
- 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 +4 -2
- 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 +4 -2
- package/fesm2022/xxmachina-components-routes-resources.mjs.map +1 -1
- package/fesm2022/xxmachina-components-routes.mjs +4 -4
- package/fesm2022/xxmachina-components-routes.mjs.map +1 -1
- package/package.json +5 -5
- package/routes/commands/commands.routes.d.ts +1 -2
- package/routes/commands/index.d.ts +1 -1
- package/routes/commands/pages/command/command.routes.d.ts +2 -2
- package/routes/commands/pages/pages.routes.d.ts +1 -2
- package/routes/pages/index.d.ts +1 -1
- package/routes/pages/pages.routes.d.ts +1 -2
- package/routes/queries/index.d.ts +1 -1
- package/routes/queries/pages/pages.routes.d.ts +1 -2
- package/routes/queries/queries.routes.d.ts +1 -2
- package/routes/query/index.d.ts +1 -1
- package/routes/query/pages/pages.routes.d.ts +1 -2
- package/routes/query/query.routes.d.ts +1 -2
- package/routes/resources/index.d.ts +1 -1
- package/routes/resources/pages/pages.routes.d.ts +1 -2
- package/routes/resources/pages/resource/resource.routes.d.ts +1 -2
- package/routes/resources/resources.routes.d.ts +1 -2
- 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
|
@@ -12,7 +12,7 @@ class WeeklyHeaderMolecule {
|
|
|
12
12
|
<div class="day-container" *ngFor="let day of ['日', '月', '火', '水', '木', '金', '土']">
|
|
13
13
|
<span>{{ day }}</span>
|
|
14
14
|
</div>
|
|
15
|
-
`, isInline: true, styles: [":host{display:block;--primary-color: #404040;--primary-color-SCOPED-IN-
|
|
15
|
+
`, isInline: true, styles: [":host{display:block;--primary-color: #404040;--primary-color-SCOPED-IN-MIDxabGa: var(--primary-color);--secondary-color: #B0B0B0;--secondary-color-SCOPED-IN-MIDxabGa: var(--secondary-color)}:host{display:grid;width:100%;grid-template-columns:repeat(7,1fr);background-color:var(--primary-color-SCOPED-IN-MIDxabGa)}:host .day-container{display:flex;justify-content:center;align-items:center;color:#fff;font-weight:700;width:calc(hvar(--width) / 7)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] }); }
|
|
16
16
|
}
|
|
17
17
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: WeeklyHeaderMolecule, decorators: [{
|
|
18
18
|
type: Component,
|
|
@@ -22,7 +22,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
22
22
|
<div class="day-container" *ngFor="let day of ['日', '月', '火', '水', '木', '金', '土']">
|
|
23
23
|
<span>{{ day }}</span>
|
|
24
24
|
</div>
|
|
25
|
-
`, styles: [":host{display:block;--primary-color: #404040;--primary-color-SCOPED-IN-
|
|
25
|
+
`, styles: [":host{display:block;--primary-color: #404040;--primary-color-SCOPED-IN-MIDxabGa: var(--primary-color);--secondary-color: #B0B0B0;--secondary-color-SCOPED-IN-MIDxabGa: var(--secondary-color)}:host{display:grid;width:100%;grid-template-columns:repeat(7,1fr);background-color:var(--primary-color-SCOPED-IN-MIDxabGa)}:host .day-container{display:flex;justify-content:center;align-items:center;color:#fff;font-weight:700;width:calc(hvar(--width) / 7)}\n"] }]
|
|
26
26
|
}], ctorParameters: () => [] });
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -58,7 +58,7 @@ class CalendarSectionOrganism {
|
|
|
58
58
|
></molecules-daily-cell>
|
|
59
59
|
</ng-container>
|
|
60
60
|
</div>
|
|
61
|
-
`, isInline: true, styles: [":host{display:block;--row: 80px;--row-SCOPED-IN-
|
|
61
|
+
`, isInline: true, styles: [":host{display:block;--row: 80px;--row-SCOPED-IN-aTu9AzIA: var(--row);--row-num: 0;--row-num-SCOPED-IN-aTu9AzIA: var(--row-num);--border-color: #9E9E9E;--border-color-SCOPED-IN-aTu9AzIA: var(--border-color);--primary-color: #404040;--primary-color-SCOPED-IN-aTu9AzIA: var(--primary-color);--secondary-color: #B0B0B0;--secondary-color-SCOPED-IN-aTu9AzIA: var(--secondary-color)}:host{width:100%;height:auto}:host .calendar.header molecules-weekly-header{--height: 32px}:host .calendar.contents{display:grid;width:var(--width);border:1px solid var(--border-color-SCOPED-IN-aTu9AzIA);grid-gap:1px;grid-template-columns:repeat(7,1fr);grid-template-rows:repeat(var(--row-num-SCOPED-IN-aTu9AzIA),var(--row-SCOPED-IN-aTu9AzIA));box-sizing:border-box;background-color:var(--border-color-SCOPED-IN-aTu9AzIA)}:host .calendar.contents molecules-daily-cell{--width: calc((var(--width) - 8px) / 7);--height: var(--row-SCOPED-IN-aTu9AzIA);background-color:#fff}:host .calendar.description{display:flex;justify-content:flex-end;width:var(--width);height:32px;padding-right:16px}:host .calendar.description .description.container{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;font-size:12px}:host .calendar.description .description.container .circle{display:flex;width:20px;height:20px;justify-content:center;align-items:center;border-radius:50%;color:#fff;background:#00f}:host .calendar.description .description.container label{padding-left:4px;padding-right:8px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: DailyCellMolecule, selector: "molecules-daily-cell", inputs: ["date", "schedules", "displayDate", "noSchedulesText", "toolTipText", "marked", "markingColor"] }, { kind: "component", type: WeeklyHeaderMolecule, selector: "molecules-weekly-header" }, { kind: "ngmodule", type: MatRippleModule }, { kind: "directive", type: i2.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
62
62
|
}
|
|
63
63
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: CalendarSectionOrganism, decorators: [{
|
|
64
64
|
type: Component,
|
|
@@ -92,7 +92,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
92
92
|
></molecules-daily-cell>
|
|
93
93
|
</ng-container>
|
|
94
94
|
</div>
|
|
95
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;--row: 80px;--row-SCOPED-IN-
|
|
95
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;--row: 80px;--row-SCOPED-IN-aTu9AzIA: var(--row);--row-num: 0;--row-num-SCOPED-IN-aTu9AzIA: var(--row-num);--border-color: #9E9E9E;--border-color-SCOPED-IN-aTu9AzIA: var(--border-color);--primary-color: #404040;--primary-color-SCOPED-IN-aTu9AzIA: var(--primary-color);--secondary-color: #B0B0B0;--secondary-color-SCOPED-IN-aTu9AzIA: var(--secondary-color)}:host{width:100%;height:auto}:host .calendar.header molecules-weekly-header{--height: 32px}:host .calendar.contents{display:grid;width:var(--width);border:1px solid var(--border-color-SCOPED-IN-aTu9AzIA);grid-gap:1px;grid-template-columns:repeat(7,1fr);grid-template-rows:repeat(var(--row-num-SCOPED-IN-aTu9AzIA),var(--row-SCOPED-IN-aTu9AzIA));box-sizing:border-box;background-color:var(--border-color-SCOPED-IN-aTu9AzIA)}:host .calendar.contents molecules-daily-cell{--width: calc((var(--width) - 8px) / 7);--height: var(--row-SCOPED-IN-aTu9AzIA);background-color:#fff}:host .calendar.description{display:flex;justify-content:flex-end;width:var(--width);height:32px;padding-right:16px}:host .calendar.description .description.container{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;font-size:12px}:host .calendar.description .description.container .circle{display:flex;width:20px;height:20px;justify-content:center;align-items:center;border-radius:50%;color:#fff;background:#00f}:host .calendar.description .description.container label{padding-left:4px;padding-right:8px}\n"] }]
|
|
96
96
|
}], propDecorators: { label: [{
|
|
97
97
|
type: Input
|
|
98
98
|
}], displayDays: [{
|
|
@@ -279,7 +279,7 @@ class CommandPage extends NgAtomicComponent {
|
|
|
279
279
|
</frames-tabs>
|
|
280
280
|
</templates-form>
|
|
281
281
|
</frames-router-outlet>
|
|
282
|
-
`, isInline: true, styles: [":host{width:100%;height:100%;display:block;--page-width-lv1-SCOPED-IN-command-
|
|
282
|
+
`, isInline: true, styles: [":host{width:100%;height:100%;display:block;--page-width-lv1-SCOPED-IN-command-PNRd: var(--page-width-lv1)}:host .template{--first-content-height: 0px;width:var(--page-width-lv1-SCOPED-IN-command-PNRd)}:host .template div[dashboard]{padding:0;box-sizing:border-box}\n"], dependencies: [{ kind: "component", type: RouterOutletFrame, selector: "frames-router-outlet", outputs: ["events"] }, { kind: "component", type: FormTemplate, selector: "templates-form" }, { kind: "component", type: TabsFrame, selector: "frames-tabs", inputs: ["labels"] }, { kind: "component", type: CommandFormGroup, selector: "groups-command-form", inputs: ["apiJsonUrls"] }, { kind: "component", type: QueryFormGroup, selector: "groups-query-form", inputs: ["keyActions"] }] }); }
|
|
283
283
|
}
|
|
284
284
|
__decorate([
|
|
285
285
|
Effect(FormTemplateStore.ActionId.FILE_SELECTED),
|
|
@@ -328,7 +328,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
328
328
|
'formFieldMap',
|
|
329
329
|
]
|
|
330
330
|
},
|
|
331
|
-
], styles: [":host{width:100%;height:100%;display:block;--page-width-lv1-SCOPED-IN-command-
|
|
331
|
+
], styles: [":host{width:100%;height:100%;display:block;--page-width-lv1-SCOPED-IN-command-PNRd: var(--page-width-lv1)}:host .template{--first-content-height: 0px;width:var(--page-width-lv1-SCOPED-IN-command-PNRd)}:host .template div[dashboard]{padding:0;box-sizing:border-box}\n"] }]
|
|
332
332
|
}], propDecorators: { onFileSelected: [] } });
|
|
333
333
|
|
|
334
334
|
/**
|
|
@@ -403,7 +403,7 @@ class QueryPage extends NgAtomicComponent {
|
|
|
403
403
|
<groups-query-form dashboard (action)="dispatch($event)" />
|
|
404
404
|
</templates-index>
|
|
405
405
|
</frames-router-outlet>
|
|
406
|
-
`, isInline: true, styles: ["@charset \"UTF-8\";:host{width:100%;height:100%;display:block;--page-width-lv1-SCOPED-IN-query-
|
|
406
|
+
`, isInline: true, styles: ["@charset \"UTF-8\";:host{width:100%;height:100%;display:block;--page-width-lv1-SCOPED-IN-query-e2jn: var(--page-width-lv1)}:host templates-index{--first-content-height: 300px;padding-left:0;box-sizing:border-box;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"] }, { kind: "component", type: QueryFormGroup, selector: "groups-query-form", inputs: ["keyActions"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
407
407
|
}
|
|
408
408
|
__decorate([
|
|
409
409
|
Effect(IndexTemplateStore.ActionId.BACK),
|
|
@@ -473,7 +473,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
473
473
|
'variablesFormFieldMap',
|
|
474
474
|
]
|
|
475
475
|
},
|
|
476
|
-
], styles: ["@charset \"UTF-8\";:host{width:100%;height:100%;display:block;--page-width-lv1-SCOPED-IN-query-
|
|
476
|
+
], styles: ["@charset \"UTF-8\";:host{width:100%;height:100%;display:block;--page-width-lv1-SCOPED-IN-query-e2jn: var(--page-width-lv1)}:host templates-index{--first-content-height: 300px;padding-left:0;box-sizing:border-box;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"] }]
|
|
477
477
|
}], ctorParameters: () => [], propDecorators: { back: [], navigateToIframe: [], expandPage: [] } });
|
|
478
478
|
|
|
479
479
|
/**
|
|
@@ -3,7 +3,7 @@ import { ngAtomicRoutes } from '@ng-atomic/components/frames/router-outlet';
|
|
|
3
3
|
import { provideEffect } from '@ng-atomic/core';
|
|
4
4
|
import { inject } from '@angular/core';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
const routes = ngAtomicRoutes([
|
|
7
7
|
{
|
|
8
8
|
path: '',
|
|
9
9
|
component: CommandPage,
|
|
@@ -22,5 +22,5 @@ var command_routes = ngAtomicRoutes([
|
|
|
22
22
|
}
|
|
23
23
|
]);
|
|
24
24
|
|
|
25
|
-
export {
|
|
26
|
-
//# sourceMappingURL=xxmachina-components-routes-commands-command.routes-
|
|
25
|
+
export { routes };
|
|
26
|
+
//# sourceMappingURL=xxmachina-components-routes-commands-command.routes-UQEr5cg4.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xxmachina-components-routes-commands-command.routes-UQEr5cg4.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/commands/pages/command/command.routes.ts"],"sourcesContent":["import { CommandPage, CommandPageStore } from '@xxmachina/components/pages/command';\nimport { ngAtomicRoutes } from '@ng-atomic/components/frames/router-outlet';\nimport { provideEffect } from '@ng-atomic/core';\nimport { inject } from '@angular/core';\nimport { Routes } from '@angular/router';\n\nexport const routes: Routes = ngAtomicRoutes([\n\t{\n\t\tpath: '',\n\t\tcomponent: CommandPage,\n\t\t// loadChildren: () => import('./pages/pages.routes').then(m => m.routes)\n\t\tproviders: [\n\t\t\tCommandPageStore.provideDefault(),\n CommandPageStore.provideQueryIdFromRouteParam(),\n\t\t\tCommandPageStore.provideCommandFromRouteParamInitializer(),\n\t\t\tprovideEffect(CommandPageStore.ActionId.FILE_SELECTED, () => {\n\t\t\t\tconst store = inject(CommandPageStore);\n\t\t\t\treturn (payload) => {\n\t\t\t\t\tstore.form().patchValue({ file: payload.files?.[0] })\n\t\t\t\t}\n\t\t\t}),\n\t\t],\n\t}\n]);\n"],"names":[],"mappings":";;;;;AAMO,MAAM,MAAM,GAAW,cAAc,CAAC;AAC5C,IAAA;AACC,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,SAAS,EAAE,WAAW;;AAEtB,QAAA,SAAS,EAAE;YACV,gBAAgB,CAAC,cAAc,EAAE;YAC9B,gBAAgB,CAAC,4BAA4B,EAAE;YAClD,gBAAgB,CAAC,uCAAuC,EAAE;YAC1D,aAAa,CAAC,gBAAgB,CAAC,QAAQ,CAAC,aAAa,EAAE,MAAK;AAC3D,gBAAA,MAAM,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC;gBACtC,OAAO,CAAC,OAAO,KAAI;AAClB,oBAAA,KAAK,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC;AACtD,iBAAC;AACF,aAAC,CAAC;AACF,SAAA;AACD;AACD,CAAA;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
const routes = [
|
|
2
2
|
{
|
|
3
3
|
path: ':commandId',
|
|
4
|
-
loadChildren: () => import('./xxmachina-components-routes-commands-command.routes-
|
|
4
|
+
loadChildren: () => import('./xxmachina-components-routes-commands-command.routes-UQEr5cg4.mjs').then(m => m.routes),
|
|
5
5
|
data: { preload: true },
|
|
6
6
|
}
|
|
7
7
|
];
|
|
8
8
|
|
|
9
|
-
export {
|
|
10
|
-
//# sourceMappingURL=xxmachina-components-routes-commands-pages.routes-
|
|
9
|
+
export { routes };
|
|
10
|
+
//# sourceMappingURL=xxmachina-components-routes-commands-pages.routes-B5iKXnOG.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xxmachina-components-routes-commands-pages.routes-B5iKXnOG.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/commands/pages/pages.routes.ts"],"sourcesContent":["import { Routes } from '@angular/router';\n\nexport const routes: Routes = [\n\t{\n\t\tpath: ':commandId',\n\t\tloadChildren: () => import('./command/command.routes').then(m => m.routes),\n\t\tdata: { preload: true },\n\t}\n];\n"],"names":[],"mappings":"AAEa,MAAA,MAAM,GAAW;AAC7B,IAAA;AACC,QAAA,IAAI,EAAE,YAAY;AAClB,QAAA,YAAY,EAAE,MAAM,OAAO,oEAA0B,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;AAC1E,QAAA,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;AACvB;;;;;"}
|
|
@@ -12,11 +12,11 @@ var ActionId;
|
|
|
12
12
|
(function (ActionId) {
|
|
13
13
|
ActionId["REFRESH"] = "refresh";
|
|
14
14
|
})(ActionId || (ActionId = {}));
|
|
15
|
-
|
|
15
|
+
const routes = [
|
|
16
16
|
{
|
|
17
17
|
path: '',
|
|
18
18
|
component: IndexPage,
|
|
19
|
-
loadChildren: () => import('./xxmachina-components-routes-commands-pages.routes-
|
|
19
|
+
loadChildren: () => import('./xxmachina-components-routes-commands-pages.routes-B5iKXnOG.mjs').then(m => m.routes),
|
|
20
20
|
providers: [
|
|
21
21
|
provideLangMap(() => getLangMap(WebAPiRequestCommand, {
|
|
22
22
|
no: 'No',
|
|
@@ -96,4 +96,6 @@ var commands_routes = [
|
|
|
96
96
|
/**
|
|
97
97
|
* Generated bundle index. Do not edit.
|
|
98
98
|
*/
|
|
99
|
+
|
|
100
|
+
export { routes };
|
|
99
101
|
//# sourceMappingURL=xxmachina-components-routes-commands.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-routes-commands.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/commands/commands.routes.ts","../../../../../packages/@xxmachina/components/src/lib/routes/commands/xxmachina-components-routes-commands.ts"],"sourcesContent":["import { effect, inject } from '@angular/core';\nimport { Routes } from '@angular/router';\nimport { WebAPiRequestCommand } from '@xxmachina/common/domain/models';\nimport { CommandService } from '@xxmachina/components/services/command';\nimport { provideDataAccessor } from '@ng-atomic/common/pipes/data-accessor';\nimport { provideLangMap } from '@ng-atomic/common/pipes/domain';\nimport { IndexPage, IndexPageStore } from '@ng-atomic/components/pages/_index';\nimport { applyToInput, provideEffect } from '@ng-atomic/core';\nimport { getLangMap } from '@nx-ddd/common/domain';\nimport { get } from 'lodash-es';\n\nenum ActionId {\n\tREFRESH = 'refresh',\n}\n\nexport
|
|
1
|
+
{"version":3,"file":"xxmachina-components-routes-commands.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/commands/commands.routes.ts","../../../../../packages/@xxmachina/components/src/lib/routes/commands/xxmachina-components-routes-commands.ts"],"sourcesContent":["import { effect, inject } from '@angular/core';\nimport { Routes } from '@angular/router';\nimport { WebAPiRequestCommand } from '@xxmachina/common/domain/models';\nimport { CommandService } from '@xxmachina/components/services/command';\nimport { provideDataAccessor } from '@ng-atomic/common/pipes/data-accessor';\nimport { provideLangMap } from '@ng-atomic/common/pipes/domain';\nimport { IndexPage, IndexPageStore } from '@ng-atomic/components/pages/_index';\nimport { applyToInput, provideEffect } from '@ng-atomic/core';\nimport { getLangMap } from '@nx-ddd/common/domain';\nimport { get } from 'lodash-es';\n\nenum ActionId {\n\tREFRESH = 'refresh',\n}\n\nexport const routes: Routes = [\n\t{\n\t\tpath: '',\n\t\tcomponent: IndexPage,\n\t\tloadChildren: () => import('./pages/pages.routes').then(m => m.routes),\n\t\tproviders: [\n\t\t\tprovideLangMap(() => getLangMap(WebAPiRequestCommand, {\n\t\t\t\tno: 'No',\n\t\t\t\tid: 'ID',\n\t\t\t\ttitle: 'コマンド名',\n\t\t\t\tmethod: 'メソッド',\n\t\t\t\tendpoint: 'エンドポイント',\n\t\t\t\tdescription: '説明',\n\t\t\t\tauthorization: '認証',\n\t\t\t\tgroups: '認可(グループ)'\n\t\t\t})),\n\t\t\tprovideDataAccessor(() => (item, key, index) => {\n\t\t\t\tswitch (key) {\n\t\t\t\t\tcase 'no': return item['index'] + 1;\n\t\t\t\t\tcase 'title': return get(item, 'name');\n\t\t\t\t\tcase 'description': return get(item, ['description']);\n\t\t\t\t\tcase 'method': return get(item, ['webApiRequest', 'method']);\n\t\t\t\t\tcase 'endpoint': return get(item, ['webApiRequest', 'path']);\n\t\t\t\t\tcase 'authorization': return '◯';\n\t\t\t\t\tcase 'groups': {\n\t\t\t\t\t\tconst securities = get(item, ['webApiRequest', 'security']) as {groups: string[]}[];\n\t\t\t\t\t\tconst groupIds = securities.map((s) => s.groups).flat()\n\t\t\t\t\t\t\t.map(id => id.startsWith('2ac') ? '管理者' : '記入者');\n\t\t\t\t\t\treturn groupIds.join(', ');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}),\n\t\t\tIndexPageStore.provideDefault(),\n\t\t\tIndexPageStore.Config.provide(() => {\n\t\t\t\treturn (config) => ({\n\t\t\t\t\t...config,\n\t\t\t\t\ttype: 'list',\n\t\t\t\t\tstyle: {\n\t\t\t\t\t\t...config.style,\n\t\t\t\t\t\twidth: 'var(--page-width-lv1)',\n\t\t\t\t\t\t// width: 'var(--page-width-lv3)',\n\t\t\t\t\t},\n\t\t\t\t\ttitle: 'コマンド一覧',\n\t\t\t\t\tnavEndActions: [\n\t\t\t\t\t\t{ id: ActionId.REFRESH, name: '更新', icon: 'refresh' },\n\t\t\t\t\t],\n\t\t\t\t})\n\t\t\t}),\n\t\t\tIndexPageStore.Config.provide(() => (config) => ({\n\t\t\t\t...config,\n\t\t\t\ttype: 'table',\n\t\t\t\tstyle: {\n\t\t\t\t\t...config.style,\n\t\t\t\t\twidth: 'var(--page-width-lv3)'\n\t\t\t\t}\n\t\t\t})),\n\t\t\tIndexPageStore.provideColumnsInitializer(() => [\n\t\t\t\t'no',\n\t\t\t\t'id',\n\t\t\t\t'title',\n\t\t\t\t'endpoint',\n\t\t\t\t'method',\n\t\t\t\t'description',\n\t\t\t\t'authorization',\n\t\t\t\t'groups',\n\t\t\t\t'__actions',\n\t\t\t]),\n\t\t\tIndexPageStore.Initializer.provide((store) => {\n\t\t\t\tconst service = inject(CommandService);\n\t\t\t\teffect(() => {\n\t\t\t\t\tapplyToInput(store, 'items', service.commands().map((command, i) => ({ ...command, index: i })));\n\t\t\t\t});\n\t\t\t}),\n\t\t\tprovideEffect(ActionId.REFRESH, () => {\n\t\t\t\tconst commandService = inject(CommandService);\n\t\t\t\treturn () => { commandService.refresh(); };\n\t\t\t}),\n\t\t]\n\t}\n];","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAWA,IAAK,QAEJ;AAFD,CAAA,UAAK,QAAQ,EAAA;AACZ,IAAA,QAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACpB,CAAC,EAFI,QAAQ,KAAR,QAAQ,GAEZ,EAAA,CAAA,CAAA;AAEY,MAAA,MAAM,GAAW;AAC7B,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,CAAC;gBACtC,MAAM,CAAC,MAAK;AACX,oBAAA,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,GAAG,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACjG,iBAAC,CAAC;AACH,aAAC,CAAC;AACF,YAAA,aAAa,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAK;AACpC,gBAAA,MAAM,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;gBAC7C,OAAO,MAAK,EAAG,cAAc,CAAC,OAAO,EAAE,CAAC,EAAE;AAC3C,aAAC,CAAC;AACF;AACD;;;AC7FF;;AAEG;;;;"}
|
|
@@ -2,7 +2,7 @@ import { provideDataAccessor, defaultDataAccessor } from '@ng-atomic/common/pipe
|
|
|
2
2
|
import { IndexPageStore, IndexPage } from '@ng-atomic/components/pages/_index';
|
|
3
3
|
import { applyToInput } from '@ng-atomic/core';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const routes = [
|
|
6
6
|
{
|
|
7
7
|
path: '',
|
|
8
8
|
component: IndexPage,
|
|
@@ -57,4 +57,6 @@ var pages_routes = [
|
|
|
57
57
|
/**
|
|
58
58
|
* Generated bundle index. Do not edit.
|
|
59
59
|
*/
|
|
60
|
+
|
|
61
|
+
export { routes };
|
|
60
62
|
//# sourceMappingURL=xxmachina-components-routes-pages.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-routes-pages.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/pages/pages.routes.ts","../../../../../packages/@xxmachina/components/src/lib/routes/pages/xxmachina-components-routes-pages.ts"],"sourcesContent":["import { Routes } from '@angular/router';\nimport { defaultDataAccessor, provideDataAccessor } from '@ng-atomic/common/pipes/data-accessor';\nimport { IndexPage, IndexPageStore } from '@ng-atomic/components/pages/_index';\nimport { applyToInput } from '@ng-atomic/core';\n\nexport
|
|
1
|
+
{"version":3,"file":"xxmachina-components-routes-pages.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/pages/pages.routes.ts","../../../../../packages/@xxmachina/components/src/lib/routes/pages/xxmachina-components-routes-pages.ts"],"sourcesContent":["import { Routes } from '@angular/router';\nimport { defaultDataAccessor, provideDataAccessor } from '@ng-atomic/common/pipes/data-accessor';\nimport { IndexPage, IndexPageStore } from '@ng-atomic/components/pages/_index';\nimport { applyToInput } from '@ng-atomic/core';\n\nexport const routes: Routes = [\n\t{\n\t\tpath: '',\n\t\tcomponent: IndexPage,\n\t\t// loadChildren: () => import('./pages/pages.routes'),\n\t\tproviders: [\n\t\t\tprovideDataAccessor(() => {\n\t\t\t\treturn (item: any, key) => {\n\t\t\t\t\tswitch (key) {\n\t\t\t\t\t\tcase 'description': return item?.path;\n\t\t\t\t\t\tcase 'subLine': return item?.queryId;\n\t\t\t\t\t\tdefault: return defaultDataAccessor(item, key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}),\n\t\t\tIndexPageStore.Config.provide(() => {\n\t\t\t\treturn (config) => ({\n\t\t\t\t\t...config,\n\t\t\t\t\ttype: 'list',\n\t\t\t\t\tstyle: {\n\t\t\t\t\t\t...config.style,\n\t\t\t\t\t\twidth: 'var(--page-width-lv1)',\n\t\t\t\t\t},\n\t\t\t\t\ttitle: 'ページ一覧'\n\t\t\t\t})\n\t\t\t}),\n\t\t\tIndexPageStore.Initializer.provide((store) => {\n\t\t\t\tapplyToInput(store, 'items', [\n\t\t\t\t\t{\n\t\t\t\t\t\tid: '0001',\n\t\t\t\t\t\ttitle: '請求',\n\t\t\t\t\t\tpath: 'invoices',\n\t\t\t\t\t\tqueryId: 'query-0001',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: '0002',\n\t\t\t\t\t\ttitle: '受発注',\n\t\t\t\t\t\tpath: 'orders',\n\t\t\t\t\t\tqueryId: 'query-0001',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tid: '0002',\n\t\t\t\t\t\ttitle: '契約',\n\t\t\t\t\t\tpath: 'contracts',\n\t\t\t\t\t\tqueryId: 'query-0001',\n\t\t\t\t\t},\n\t\t\t\t]);\n\t\t\t}),\n\t\t]\n\t}\n];","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAKa,MAAA,MAAM,GAAW;AAC7B,IAAA;AACC,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,SAAS,EAAE,SAAS;;AAEpB,QAAA,SAAS,EAAE;YACV,mBAAmB,CAAC,MAAK;AACxB,gBAAA,OAAO,CAAC,IAAS,EAAE,GAAG,KAAI;oBACzB,QAAQ,GAAG;AACV,wBAAA,KAAK,aAAa,EAAE,OAAO,IAAI,EAAE,IAAI;AACrC,wBAAA,KAAK,SAAS,EAAE,OAAO,IAAI,EAAE,OAAO;wBACpC,SAAS,OAAO,mBAAmB,CAAC,IAAI,EAAE,GAAG,CAAC;;AAEhD,iBAAC;AACF,aAAC,CAAC;AACF,YAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,MAAK;AAClC,gBAAA,OAAO,CAAC,MAAM,MAAM;AACnB,oBAAA,GAAG,MAAM;AACT,oBAAA,IAAI,EAAE,MAAM;AACZ,oBAAA,KAAK,EAAE;wBACN,GAAG,MAAM,CAAC,KAAK;AACf,wBAAA,KAAK,EAAE,uBAAuB;AAC9B,qBAAA;AACD,oBAAA,KAAK,EAAE;AACP,iBAAA,CAAC;AACH,aAAC,CAAC;YACF,cAAc,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,KAAK,KAAI;AAC5C,gBAAA,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE;AAC5B,oBAAA;AACC,wBAAA,EAAE,EAAE,MAAM;AACV,wBAAA,KAAK,EAAE,IAAI;AACX,wBAAA,IAAI,EAAE,UAAU;AAChB,wBAAA,OAAO,EAAE,YAAY;AACrB,qBAAA;AACD,oBAAA;AACC,wBAAA,EAAE,EAAE,MAAM;AACV,wBAAA,KAAK,EAAE,KAAK;AACZ,wBAAA,IAAI,EAAE,QAAQ;AACd,wBAAA,OAAO,EAAE,YAAY;AACrB,qBAAA;AACD,oBAAA;AACC,wBAAA,EAAE,EAAE,MAAM;AACV,wBAAA,KAAK,EAAE,IAAI;AACX,wBAAA,IAAI,EAAE,WAAW;AACjB,wBAAA,OAAO,EAAE,YAAY;AACrB,qBAAA;AACD,iBAAA,CAAC;AACH,aAAC,CAAC;AACF;AACD;;;ACtDF;;AAEG;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xxmachina-components-routes-queries-pages.routes-CfrglCIL.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/queries/pages/pages.routes.ts"],"sourcesContent":["import { Routes } from '@angular/router';\n\nexport const routes: Routes = [\n\t{\n\t\tpath: ':queryId',\n\t\tloadChildren: () => import('@xxmachina/components/routes/query').then(m => m.routes),\n\t}\n];\n"],"names":[],"mappings":"AAEa,MAAA,MAAM,GAAW;AAC7B,IAAA;AACC,QAAA,IAAI,EAAE,UAAU;AAChB,QAAA,YAAY,EAAE,MAAM,OAAO,oCAAoC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;AACpF;;;;;"}
|
|
@@ -16,11 +16,11 @@ var ActionId;
|
|
|
16
16
|
ActionId["EXPORT_QUERIES"] = "[@xxmachina/app] EXPORT_QUERIES";
|
|
17
17
|
ActionId["IMPORT_QUERIES"] = "[@xxmachina/app] IMPORT_QUERIES";
|
|
18
18
|
})(ActionId || (ActionId = {}));
|
|
19
|
-
|
|
19
|
+
const routes = [
|
|
20
20
|
{
|
|
21
21
|
path: '',
|
|
22
22
|
component: IndexPage,
|
|
23
|
-
loadChildren: () => import('./xxmachina-components-routes-queries-pages.routes-
|
|
23
|
+
loadChildren: () => import('./xxmachina-components-routes-queries-pages.routes-CfrglCIL.mjs').then(m => m.routes),
|
|
24
24
|
data: { preload: true },
|
|
25
25
|
providers: [
|
|
26
26
|
provideDataAccessor(() => (item, key) => {
|
|
@@ -135,4 +135,6 @@ var queries_routes = [
|
|
|
135
135
|
/**
|
|
136
136
|
* Generated bundle index. Do not edit.
|
|
137
137
|
*/
|
|
138
|
+
|
|
139
|
+
export { routes };
|
|
138
140
|
//# sourceMappingURL=xxmachina-components-routes-queries.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-routes-queries.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/queries/queries.routes.ts","../../../../../packages/@xxmachina/components/src/lib/routes/queries/xxmachina-components-routes-queries.ts"],"sourcesContent":["import { computed, effect, inject } from '@angular/core';\nimport { ActivatedRoute, Routes } from '@angular/router';\nimport { Query } from '@xxmachina/common/domain/models';\nimport { QueryHasuraRepository } from '@xxmachina/common/infra/repository/hasura';\nimport { defaultDataAccessor, provideDataAccessor } from '@ng-atomic/common/pipes/data-accessor';\nimport { AppService } from '@ng-atomic/common/services/app';\nimport { injectAll } from '@ng-atomic/common/stores/entities';\nimport { AppFrameStore } from '@ng-atomic/components/frames/app';\nimport { IndexPage, IndexPageStore } from '@ng-atomic/components/pages/_index';\nimport { applyToInput, provideEffect } from '@ng-atomic/core';\nimport { plainToInstanceWithValid } from '@nx-ddd/core';\nimport dayjs, { isDayjs } from 'dayjs';\n\nenum ActionId {\n\tEXPORT_QUERIES = '[@xxmachina/app] EXPORT_QUERIES',\n\tIMPORT_QUERIES = '[@xxmachina/app] IMPORT_QUERIES',\n}\n\nexport
|
|
1
|
+
{"version":3,"file":"xxmachina-components-routes-queries.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/queries/queries.routes.ts","../../../../../packages/@xxmachina/components/src/lib/routes/queries/xxmachina-components-routes-queries.ts"],"sourcesContent":["import { computed, effect, inject } from '@angular/core';\nimport { ActivatedRoute, Routes } from '@angular/router';\nimport { Query } from '@xxmachina/common/domain/models';\nimport { QueryHasuraRepository } from '@xxmachina/common/infra/repository/hasura';\nimport { defaultDataAccessor, provideDataAccessor } from '@ng-atomic/common/pipes/data-accessor';\nimport { AppService } from '@ng-atomic/common/services/app';\nimport { injectAll } from '@ng-atomic/common/stores/entities';\nimport { AppFrameStore } from '@ng-atomic/components/frames/app';\nimport { IndexPage, IndexPageStore } from '@ng-atomic/components/pages/_index';\nimport { applyToInput, provideEffect } from '@ng-atomic/core';\nimport { plainToInstanceWithValid } from '@nx-ddd/core';\nimport dayjs, { isDayjs } from 'dayjs';\n\nenum ActionId {\n\tEXPORT_QUERIES = '[@xxmachina/app] EXPORT_QUERIES',\n\tIMPORT_QUERIES = '[@xxmachina/app] IMPORT_QUERIES',\n}\n\nexport const routes: Routes = [\n\t{\n\t\tpath: '',\n\t\tcomponent: IndexPage,\n\t\tloadChildren: () => import('./pages/pages.routes').then(m => m.routes),\n\t\tdata: { preload: true },\n\t\tproviders: [\n\t\t\tprovideDataAccessor(() => (item: Query, key) => {\n\t\t\t\tswitch (key) {\n\t\t\t\t\tcase 'description': return item?.graphql?.query;\n\t\t\t\t\tcase 'subLine': return item?.createdAt?.format('YYYY/MM/DD HH:mm:ss');\n\t\t\t\t\tdefault: return defaultDataAccessor(item, key);\n\t\t\t\t}\n\t\t\t}, {merge: false}),\n\t\t\tIndexPageStore.provideDefault(),\n\t\t\tIndexPageStore.Config.provide(() => {\n\t\t\t\tconst route = inject(ActivatedRoute);\n\t\t\t\treturn config => ({\n\t\t\t\t\t...config,\n\t\t\t\t\tstyle: {\n\t\t\t\t\t\t...config.style,\n\t\t\t\t\t\twidth: 'var(--page-width-lv1)',\n\t\t\t\t\t},\n\t\t\t\t\tnavEndActions: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tid: 'menu',\n\t\t\t\t\t\t\ticon: 'more_vert',\n\t\t\t\t\t\t\tchildren: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: AppFrameStore.ActionId.NAVIGATE,\n\t\t\t\t\t\t\t\t\ticon: 'add',\n\t\t\t\t\t\t\t\t\tname: 'クエリの作成',\n\t\t\t\t\t\t\t\t\tpayload: {commands: ['new'], extras: {relativeTo: route}},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: ActionId.EXPORT_QUERIES,\n\t\t\t\t\t\t\t\t\ticon: 'download',\n\t\t\t\t\t\t\t\t\tname: 'クエリのエクスポート'\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: ActionId.IMPORT_QUERIES,\n\t\t\t\t\t\t\t\t\ticon: 'upload',\n\t\t\t\t\t\t\t\t\tname: 'クエリのインポート'\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\ttitle: 'クエリ一覧',\n\t\t\t\t\ttype: 'list',\n\t\t\t\t\ttableChildrenKey: null,\n\t\t\t\t\tgroupedBy: null,\n\t\t\t\t})\n\t\t\t}),\n\t\t\tIndexPageStore.Initializer.provide((store) => {\n\t\t\t\tconst queries = injectAll(Query);\n\t\t\t\tconst compare = (a, b) => {\n\t\t\t\t\tif (isDayjs(a.createdAt) && isDayjs(b.createdAt)) {\n\t\t\t\t\t\treturn a.createdAt.isBefore(b.createdAt) ? 1 : -1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn a.createdAt < b.createdAt ? 1 : -1;\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\tfunction isISO8601(value) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\treturn dayjs(value).toISOString() === value;\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tconst itemsMap = computed(() => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t'名前付き': {\n\t\t\t\t\t\t\titems: queries().filter((query) => !isISO8601(query.title)).sort(compare),\n\t\t\t\t\t\t\titemsLength: 0,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t'履歴': {\n\t\t\t\t\t\t\titems: queries().filter((query) => query).sort(compare),\n\t\t\t\t\t\t\titemsLength: 0,\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t});\n\n\t\t\t\teffect(() => { applyToInput(store, 'itemsMap', itemsMap()); });\n\t\t\t}),\n\t\t\tprovideEffect(ActionId.EXPORT_QUERIES, () => {\n\t\t\t\tconst store = inject(IndexPageStore);\n\t\t\t\tconst app = inject(AppService);\n\t\t\t\treturn () => {\n\t\t\t\t\tapp.clipboard.copy(JSON.stringify(store.itemsMap()['名前付き'].items, null, 2));\n\t\t\t\t\tapp.snackBar.open('JSONをコピーしました');\n\t\t\t\t}\n\t\t\t}),\n\t\t\tprovideEffect(ActionId.IMPORT_QUERIES, () => {\n\t\t\t\tconst repo = inject(QueryHasuraRepository);\n\t\t\t\tconst app = inject(AppService);\n\t\t\t\treturn () => {\n\t\t\t\t\tconst json = prompt('JSONを貼り付けてください');\n\t\t\t\t\tif (!json) return;\t\n\t\t\t\t\tconst items = JSON.parse(json) as any[];\n\t\t\t\t\tconst queries = items.map(item => plainToInstanceWithValid(Query, item));\n\t\t\t\t\tapp.loading.await(() => {\n\t\t\t\t\t\treturn repo.saveMany(queries).then(() => {\n\t\t\t\t\t\t\tapp.snackBar.open('クエリをインポートしました');\n\t\t\t\t\t\t}).catch((error) => {\n\t\t\t\t\t\t\tconsole.error(error);\n\t\t\t\t\t\t\tapp.snackBar.open('クエリのインポートに失敗しました');\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}),\n\t\t]\n\t}\n];","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAaA,IAAK,QAGJ;AAHD,CAAA,UAAK,QAAQ,EAAA;AACZ,IAAA,QAAA,CAAA,gBAAA,C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1C,gBAAA,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC;AAC9B,gBAAA,OAAO,MAAK;AACX,oBAAA,MAAM,IAAI,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACrC,oBAAA,IAAI,CAAC,IAAI;wBAAE;oBACX,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAU;AACvC,oBAAA,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,IAAI,wBAAwB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AACxE,oBAAA,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,MAAK;wBACtB,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAK;AACvC,4BAAA,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC;AACnC,yBAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,KAAI;AAClB,4BAAA,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;AACpB,4BAAA,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC;AACtC,yBAAC,CAAC;AACH,qBAAC,CAAC;AACH,iBAAC;AACF,aAAC,CAAC;AACF;AACD;;;ACnIF;;AAEG;;;;"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
const routes = [
|
|
2
2
|
{
|
|
3
3
|
path: 'commands',
|
|
4
|
-
loadChildren: () => import('@xxmachina/components/routes/commands')
|
|
5
|
-
},
|
|
6
|
-
{
|
|
7
|
-
path: 'queries',
|
|
8
|
-
loadChildren: () => import('@xxmachina/components/routes/queries')
|
|
4
|
+
loadChildren: () => import('@xxmachina/components/routes/commands').then(m => m.routes),
|
|
9
5
|
},
|
|
6
|
+
// {
|
|
7
|
+
// path: 'queries',
|
|
8
|
+
// loadChildren: () => import('@xxmachina/components/routes/queries').then(m => m.routes),
|
|
9
|
+
// },
|
|
10
10
|
{
|
|
11
11
|
path: 'pages',
|
|
12
|
-
loadChildren: () => import('@xxmachina/components/routes/pages')
|
|
12
|
+
loadChildren: () => import('@xxmachina/components/routes/pages').then(m => m.routes),
|
|
13
13
|
},
|
|
14
14
|
];
|
|
15
15
|
|
|
16
|
-
export {
|
|
17
|
-
//# sourceMappingURL=xxmachina-components-routes-query-pages.routes-
|
|
16
|
+
export { routes };
|
|
17
|
+
//# sourceMappingURL=xxmachina-components-routes-query-pages.routes-CxTbOJDQ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xxmachina-components-routes-query-pages.routes-CxTbOJDQ.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/query/pages/pages.routes.ts"],"sourcesContent":["import { Routes } from '@angular/router';\n\nexport const routes: Routes = [\n\t{\n\t\tpath: 'commands',\n\t\tloadChildren: () => import('@xxmachina/components/routes/commands').then(m => m.routes),\n\t},\n\t// {\n\t// \tpath: 'queries',\n\t// \tloadChildren: () => import('@xxmachina/components/routes/queries').then(m => m.routes),\n\t// },\n\t{\n\t\tpath: 'pages',\n\t\tloadChildren: () => import('@xxmachina/components/routes/pages').then(m => m.routes),\n\t},\n];\n\n"],"names":[],"mappings":"AAEa,MAAA,MAAM,GAAW;AAC7B,IAAA;AACC,QAAA,IAAI,EAAE,UAAU;AAChB,QAAA,YAAY,EAAE,MAAM,OAAO,uCAAuC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;AACvF,KAAA;;;;;AAKD,IAAA;AACC,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,YAAY,EAAE,MAAM,OAAO,oCAAoC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;AACpF,KAAA;;;;;"}
|
|
@@ -9,11 +9,11 @@ import dayjs from 'dayjs';
|
|
|
9
9
|
function buildYearMonthColumns(startYearMonth, months) {
|
|
10
10
|
return Array.from({ length: months }, (_, i) => dayjs(startYearMonth).add(i, 'month').format('YYYY/MM'));
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
const routes = [
|
|
13
13
|
{
|
|
14
14
|
path: '',
|
|
15
15
|
component: QueryPage,
|
|
16
|
-
loadChildren: () => import('./xxmachina-components-routes-query-pages.routes-
|
|
16
|
+
loadChildren: () => import('./xxmachina-components-routes-query-pages.routes-CxTbOJDQ.mjs').then(m => m.routes),
|
|
17
17
|
providers: [
|
|
18
18
|
QueryPageStore.provideDefault(),
|
|
19
19
|
QueryPageStore.Config.provide(() => {
|
|
@@ -37,4 +37,6 @@ var query_routes = [
|
|
|
37
37
|
/**
|
|
38
38
|
* Generated bundle index. Do not edit.
|
|
39
39
|
*/
|
|
40
|
+
|
|
41
|
+
export { routes };
|
|
40
42
|
//# sourceMappingURL=xxmachina-components-routes-query.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-routes-query.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/query/query.routes.ts","../../../../../packages/@xxmachina/components/src/lib/routes/query/xxmachina-components-routes-query.ts"],"sourcesContent":["import { effect } from '@angular/core';\nimport { Routes } from '@angular/router';\nimport { Query } from '@xxmachina/common/domain/models';\nimport { QueryPage, QueryPageStore } from '@xxmachina/components/pages/query';\nimport { injectOne } from '@ng-atomic/common/stores/entities';\nimport { injectRouteParam } from '@ng-atomic/common/utils';\nimport { applyToInput } from '@ng-atomic/core';\nimport dayjs from 'dayjs';\n\nexport function buildYearMonthColumns(startYearMonth: string, months: number): string[] {\n return Array.from({length: months}, (_, i) => dayjs(startYearMonth).add(i, 'month').format('YYYY/MM'));\n}\n\nexport
|
|
1
|
+
{"version":3,"file":"xxmachina-components-routes-query.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/query/query.routes.ts","../../../../../packages/@xxmachina/components/src/lib/routes/query/xxmachina-components-routes-query.ts"],"sourcesContent":["import { effect } from '@angular/core';\nimport { Routes } from '@angular/router';\nimport { Query } from '@xxmachina/common/domain/models';\nimport { QueryPage, QueryPageStore } from '@xxmachina/components/pages/query';\nimport { injectOne } from '@ng-atomic/common/stores/entities';\nimport { injectRouteParam } from '@ng-atomic/common/utils';\nimport { applyToInput } from '@ng-atomic/core';\nimport dayjs from 'dayjs';\n\nexport function buildYearMonthColumns(startYearMonth: string, months: number): string[] {\n return Array.from({length: months}, (_, i) => dayjs(startYearMonth).add(i, 'month').format('YYYY/MM'));\n}\n\nexport const routes: Routes = [\n\t{\n\t\tpath: '',\n\t\tcomponent: QueryPage,\n\t\tloadChildren: () => import('./pages/pages.routes').then(m => m.routes),\n\t\tproviders: [\n\t\t\tQueryPageStore.provideDefault(),\n\t\t\tQueryPageStore.Config.provide(() => {\n\t\t\t\treturn config => ({\n\t\t\t\t\t...config, \n\t\t\t\t\tadditionalColumns: (items: object[]) => [],\n\t\t\t\t})\n\t\t\t}),\n\t\t\tQueryPageStore.Initializer.provide((store) => {\n\t\t\t\tconst queryId = injectRouteParam('queryId');\n const query = injectOne(Query, { id: queryId });\n effect(() => {\n applyToInput(store, 'query', query());\n });\n }),\n\t\t\tQueryPageStore.provideNavEndActionsInitializers(),\n\t\t]\n\t}\n];\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AASgB,SAAA,qBAAqB,CAAC,cAAsB,EAAE,MAAc,EAAA;AAC1E,IAAA,OAAO,KAAK,CAAC,IAAI,CAAC,EAAC,MAAM,EAAE,MAAM,EAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,KAAK,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AACxG;AAEa,MAAA,MAAM,GAAW;AAC7B,IAAA;AACC,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,SAAS,EAAE,SAAS;AACpB,QAAA,YAAY,EAAE,MAAM,OAAO,+DAAsB,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;AACtE,QAAA,SAAS,EAAE;YACV,cAAc,CAAC,cAAc,EAAE;AAC/B,YAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,MAAK;AAClC,gBAAA,OAAO,MAAM,KAAK;AACjB,oBAAA,GAAG,MAAM;AACT,oBAAA,iBAAiB,EAAE,CAAC,KAAe,KAAK,EAAE;AAC1C,iBAAA,CAAC;AACH,aAAC,CAAC;YACF,cAAc,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,KAAK,KAAI;AAC5C,gBAAA,MAAM,OAAO,GAAG,gBAAgB,CAAC,SAAS,CAAC;AACvC,gBAAA,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;gBAC/C,MAAM,CAAC,MAAK;oBACV,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AACvC,iBAAC,CAAC;AACJ,aAAC,CAAC;YACL,cAAc,CAAC,gCAAgC,EAAE;AACjD;AACD;;;ACnCF;;AAEG;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
const routes = [
|
|
2
2
|
{
|
|
3
3
|
path: ':resourceId',
|
|
4
|
-
loadChildren: () => import('./xxmachina-components-routes-resources-resource.routes-
|
|
4
|
+
loadChildren: () => import('./xxmachina-components-routes-resources-resource.routes-C5KpB3KM.mjs').then(m => m.routes),
|
|
5
5
|
}
|
|
6
6
|
];
|
|
7
7
|
|
|
8
|
-
export {
|
|
9
|
-
//# sourceMappingURL=xxmachina-components-routes-resources-pages.routes-
|
|
8
|
+
export { routes };
|
|
9
|
+
//# sourceMappingURL=xxmachina-components-routes-resources-pages.routes-CzjQOxwT.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xxmachina-components-routes-resources-pages.routes-CzjQOxwT.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/resources/pages/pages.routes.ts"],"sourcesContent":["import { Routes } from '@angular/router';\n\nexport const routes: Routes = [\n\t{\n\t\tpath: ':resourceId',\n\t\tloadChildren: () => import('./resource/resource.routes').then(m => m.routes),\n\t}\n];"],"names":[],"mappings":"AAEa,MAAA,MAAM,GAAW;AAC7B,IAAA;AACC,QAAA,IAAI,EAAE,aAAa;AACnB,QAAA,YAAY,EAAE,MAAM,OAAO,sEAA4B,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;AAC5E;;;;;"}
|
|
@@ -8,7 +8,7 @@ import { computedRawValue, injectRouteParam } from '@ng-atomic/common/utils';
|
|
|
8
8
|
import { provideEntityIdName, FormPageStore, FormPage } from '@ng-atomic/components/pages/form';
|
|
9
9
|
import { provideEffect, applyToInput } from '@ng-atomic/core';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
const routes = [
|
|
12
12
|
{
|
|
13
13
|
path: '',
|
|
14
14
|
component: FormPage,
|
|
@@ -127,5 +127,5 @@ var resource_routes = [
|
|
|
127
127
|
}
|
|
128
128
|
];
|
|
129
129
|
|
|
130
|
-
export {
|
|
131
|
-
//# sourceMappingURL=xxmachina-components-routes-resources-resource.routes-
|
|
130
|
+
export { routes };
|
|
131
|
+
//# sourceMappingURL=xxmachina-components-routes-resources-resource.routes-C5KpB3KM.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xxmachina-components-routes-resources-resource.routes-C5KpB3KM.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/resources/pages/resource/resource.routes.ts"],"sourcesContent":["import { S } from '@angular/cdk/keycodes';\nimport { computed, effect, inject } from '@angular/core';\nimport { FormBuilder } from '@angular/forms';\nimport { Routes } from '@angular/router';\nimport { Resource } from '@xxmachina/common/domain/models';\nimport { ResourceHasuraRepository } from '@xxmachina/common/infra/repository/hasura';\nimport { provideLangMap, provideModelName } from '@ng-atomic/common/pipes/domain';\nimport { FormFieldMap } from '@ng-atomic/common/pipes/smart-field';\nimport { AppService } from '@ng-atomic/common/services/app';\nimport { injectEntityStore, injectOne } from '@ng-atomic/common/stores/entities';\nimport { computedRawValue, getValue, injectRouteParam } from '@ng-atomic/common/utils';\n// import { ResourcePage } from './resource.page';\nimport { FormPage, FormPageStore, provideEntityIdName } from '@ng-atomic/components/pages/form';\nimport { applyToInput, provideEffect } from '@ng-atomic/core';\nimport { getLangMap } from '@nx-ddd/common/domain';\n\nexport const routes: Routes = [\n\t{\n\t\tpath: '',\n\t\tcomponent: FormPage,\n\t\t// loadChildren: () => import('./pages/pages.routes').then(m => m.routes)\n\t\tproviders: [\n\t\t\tprovideModelName(() => 'リソース'),\n\t\t\tprovideEntityIdName('resourceId'),\n\t\t\tFormPageStore.provideDefault(),\n\t\t\tFormPageStore.Initializer.provide((store) => {\n\t\t\t\tconst fb = inject(FormBuilder).nonNullable;\n\t\t\t\tconst form = fb.group({\n\t\t\t\t\tid: [''],\n\t\t\t\t\tprojectId: [''],\n\t\t\t\t\tname: [''],\n\t\t\t\t\ttype: ['graphql'],\n\t\t\t\t\topenapi: fb.group({\n\t\t\t\t\t\turl: [''],\n\t\t\t\t\t}),\n\t\t\t\t\tgraphql: fb.group({\n\t\t\t\t\t\turl: [''],\n\t\t\t\t\t}),\n\t\t\t\t\tcreatedAt: [{value: '', disabled: true}],\n\t\t\t\t\tupdatedAt: [{value: '', disabled: true}],\n\t\t\t\t});\n\t\t\t\tapplyToInput(store, 'form', form);\n\t\t\t}),\n\t\t\tFormPageStore.Initializer.provide((store) => {\n\t\t\t\tconst value = computedRawValue(() => store.form())\n\t\t\t\tconst formFieldMap = computed<FormFieldMap>(() => ({\n\t\t\t\t\tid: { type: 'hidden' },\n\t\t\t\t\tprojectId: { type: 'hidden' },\n\t\t\t\t\tname: { type: 'text' },\n\t\t\t\t\ttype: {\n\t\t\t\t\t\ttype: 'select',\n\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t{ name: 'GraphQL', value: 'graphql' },\n\t\t\t\t\t\t\t{ name: 'OpenAPI', value: 'openapi' },\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t'openapi.url': { type: value()?.type === 'openapi' ? 'text' : 'hidden' },\n\t\t\t\t\t'graphql.url': { type: value()?.type === 'graphql' ? 'text' : 'hidden' },\n\t\t\t\t\tcreatedAt: {\n\t\t\t\t\t\ttype: 'date',\n\t\t\t\t\t},\n\t\t\t\t\tupdatedAt: {\n\t\t\t\t\t\ttype: 'date',\n\t\t\t\t\t},\n\t\t\t\t}));\n\t\t\t\teffect(() => {\n\t\t\t\t\tapplyToInput(store, 'fieldMap', formFieldMap());\n\t\t\t\t});\n\t\t\t}),\n\t\t\tFormPageStore.Initializer.provide((store) => {\n\t\t\t\tconst resourceId = injectRouteParam('resourceId');\n\t\t\t\tconst resource = injectOne(Resource, { id: resourceId });\n\t\t\t\teffect(() => {\n\t\t\t\t\tconsole.debug('resourceId:', resourceId());\n\t\t\t\t\tconsole.debug('resource:', resource());\n\t\t\t\t\tstore.form().patchValue(resource());\n\t\t\t\t});\n\t\t\t}),\n\t\t\tprovideEffect(FormPageStore.ActionId.CREATE, () => {\n\t\t\t\tconst entity = injectEntityStore(Resource);\n\t\t\t\tconst app = inject(AppService);\n\t\t\t\tconst store = inject(FormPageStore);\n\t\t\t\treturn () => {\n\t\t\t\t\tconst value = store.form().getRawValue();\n\t\t\t\t\tconsole.debug('value:', value);\n\t\t\t\t\tapp.loading.await(() => {\n\t\t\t\t\t\treturn entity.create({\n\t\t\t\t\t\t\tid: undefined,\n\t\t\t\t\t\t\tprojectId: 'default',\n\t\t\t\t\t\t\ttype: value.type,\n\t\t\t\t\t\t\tname: value.name,\n\t\t\t\t\t\t\topenapi: value.openapi,\n\t\t\t\t\t\t\tgraphql: value.graphql,\n\t\t\t\t\t\t\tcreatedAt: undefined,\n\t\t\t\t\t\t\tupdatedAt: undefined,\n\t\t\t\t\t\t}).then(() => {\n\t\t\t\t\t\t\tapp.snackBar.open('リソースを作成しました');\n\t\t\t\t\t\t}).catch((error) => {\n\t\t\t\t\t\t\tconsole.error(error);\n\t\t\t\t\t\t\tapp.snackBar.open('リソースの作成に失敗しました');\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t};\n\t\t\t}),\n\t\t\tprovideEffect(FormPageStore.ActionId.UPDATE, () => {\n\t\t\t\tconst entity = injectEntityStore(Resource);\n\t\t\t\tconst app = inject(AppService);\n\t\t\t\tconst store = inject(FormPageStore);\n\t\t\t\tconst resourceId = injectRouteParam('resourceId');\n\t\t\t\treturn () => {\n\t\t\t\t\tconst value = store.form().getRawValue();\n\t\t\t\t\tconsole.debug('value:', value);\n\t\t\t\t\tapp.loading.await(() => {\n\t\t\t\t\t\treturn entity.update({\n\t\t\t\t\t\t\tid: resourceId(),\n\t\t\t\t\t\t\tprojectId: 'default',\n\t\t\t\t\t\t\ttype: value.type,\n\t\t\t\t\t\t\tname: value.name,\n\t\t\t\t\t\t\topenapi: value.openapi,\n\t\t\t\t\t\t\tgraphql: value.graphql,\n\t\t\t\t\t\t\tcreatedAt: undefined,\n\t\t\t\t\t\t\tupdatedAt: undefined,\n\t\t\t\t\t\t}).then(() => {\n\t\t\t\t\t\t\tapp.snackBar.open('リソースを更新しました');\n\t\t\t\t\t\t}).catch((error) => {\n\t\t\t\t\t\t\tconsole.error(error);\n\t\t\t\t\t\t\tapp.snackBar.open('リソースの更新に失敗しました');\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t};\n\t\t\t}),\n\t\t]\n\t}\n];"],"names":[],"mappings":";;;;;;;;;;AAgBa,MAAA,MAAM,GAAW;AAC7B,IAAA;AACC,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,SAAS,EAAE,QAAQ;;AAEnB,QAAA,SAAS,EAAE;AACV,YAAA,gBAAgB,CAAC,MAAM,MAAM,CAAC;YAC9B,mBAAmB,CAAC,YAAY,CAAC;YACjC,aAAa,CAAC,cAAc,EAAE;Y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A,MAAM,UAAU,GAAG,gBAAgB,CAAC,YAAY,CAAC;AACjD,gBAAA,OAAO,MAAK;oBACX,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE;AACxC,oBAAA,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC;AAC9B,oBAAA,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,MAAK;wBACtB,OAAO,MAAM,CAAC,MAAM,CAAC;4BACpB,EAAE,EAAE,UAAU,EAAE;AAChB,4BAAA,SAAS,EAAE,SAAS;4BACpB,IAAI,EAAE,KAAK,CAAC,IAAI;4BAChB,IAAI,EAAE,KAAK,CAAC,IAAI;4BAChB,OAAO,EAAE,KAAK,CAAC,OAAO;4BACtB,OAAO,EAAE,KAAK,CAAC,OAAO;AACtB,4BAAA,SAAS,EAAE,SAAS;AACpB,4BAAA,SAAS,EAAE,SAAS;AACpB,yBAAA,CAAC,CAAC,IAAI,CAAC,MAAK;AACZ,4BAAA,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC;AACjC,yBAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,KAAI;AAClB,4BAAA,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;AACpB,4BAAA,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC;AACpC,yBAAC,CAAC;AACH,qBAAC,CAAC;AACH,iBAAC;AACF,aAAC,CAAC;AACF;AACD;;;;;"}
|
|
@@ -16,11 +16,11 @@ var ActionId;
|
|
|
16
16
|
ActionId["EXPORT_RESOURCES"] = "[@xxmachina/app] EXPORT_RESOURCES";
|
|
17
17
|
ActionId["IMPORT_RESOURCES"] = "[@xxmachina/app] IMPORT_RESOURCES";
|
|
18
18
|
})(ActionId || (ActionId = {}));
|
|
19
|
-
|
|
19
|
+
const routes = [
|
|
20
20
|
{
|
|
21
21
|
path: '',
|
|
22
22
|
component: IndexPage,
|
|
23
|
-
loadChildren: () => import('./xxmachina-components-routes-resources-pages.routes-
|
|
23
|
+
loadChildren: () => import('./xxmachina-components-routes-resources-pages.routes-CzjQOxwT.mjs').then(m => m.routes),
|
|
24
24
|
providers: [
|
|
25
25
|
provideLangMap(() => getLangMap(Resource, {
|
|
26
26
|
description: '説明',
|
|
@@ -125,4 +125,6 @@ var resources_routes = [
|
|
|
125
125
|
/**
|
|
126
126
|
* Generated bundle index. Do not edit.
|
|
127
127
|
*/
|
|
128
|
+
|
|
129
|
+
export { routes };
|
|
128
130
|
//# sourceMappingURL=xxmachina-components-routes-resources.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-routes-resources.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/resources/resources.routes.ts","../../../../../packages/@xxmachina/components/src/lib/routes/resources/xxmachina-components-routes-resources.ts"],"sourcesContent":["import { effect, inject } from '@angular/core';\nimport { Routes } from '@angular/router';\nimport { Resource, ResourceHelper } from '@xxmachina/common/domain/models';\nimport { ResourceHasuraRepository } from '@xxmachina/common/infra/repository/hasura';\nimport { provideDataAccessor } from '@ng-atomic/common/pipes/data-accessor';\nimport { provideLangMap } from '@ng-atomic/common/pipes/domain';\nimport { AppService } from '@ng-atomic/common/services/app';\nimport { injectAll } from '@ng-atomic/common/stores/entities';\nimport { buildColumns, injectIndexForm } from '@ng-atomic/components/organisms/table';\nimport { IndexPage, IndexPageStore } from '@ng-atomic/components/pages/_index';\nimport { applyToInput, provideEffect } from '@ng-atomic/core';\nimport { getLangMap } from '@nx-ddd/common/domain';\nimport { plainToInstanceWithValid } from '@nx-ddd/core';\n\nenum ActionId {\n\tEXPORT_RESOURCES = '[@xxmachina/app] EXPORT_RESOURCES',\n\tIMPORT_RESOURCES = '[@xxmachina/app] IMPORT_RESOURCES',\n}\n\nexport
|
|
1
|
+
{"version":3,"file":"xxmachina-components-routes-resources.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/resources/resources.routes.ts","../../../../../packages/@xxmachina/components/src/lib/routes/resources/xxmachina-components-routes-resources.ts"],"sourcesContent":["import { effect, inject } from '@angular/core';\nimport { Routes } from '@angular/router';\nimport { Resource, ResourceHelper } from '@xxmachina/common/domain/models';\nimport { ResourceHasuraRepository } from '@xxmachina/common/infra/repository/hasura';\nimport { provideDataAccessor } from '@ng-atomic/common/pipes/data-accessor';\nimport { provideLangMap } from '@ng-atomic/common/pipes/domain';\nimport { AppService } from '@ng-atomic/common/services/app';\nimport { injectAll } from '@ng-atomic/common/stores/entities';\nimport { buildColumns, injectIndexForm } from '@ng-atomic/components/organisms/table';\nimport { IndexPage, IndexPageStore } from '@ng-atomic/components/pages/_index';\nimport { applyToInput, provideEffect } from '@ng-atomic/core';\nimport { getLangMap } from '@nx-ddd/common/domain';\nimport { plainToInstanceWithValid } from '@nx-ddd/core';\n\nenum ActionId {\n\tEXPORT_RESOURCES = '[@xxmachina/app] EXPORT_RESOURCES',\n\tIMPORT_RESOURCES = '[@xxmachina/app] IMPORT_RESOURCES',\n}\n\nexport const routes: Routes = [\n\t{\n\t\tpath: '',\n\t\tcomponent: IndexPage,\n\t\tloadChildren: () => import('./pages/pages.routes').then(m => m.routes),\n\t\tproviders: [\n\t\t\tprovideLangMap(() => getLangMap(Resource, {\n\t\t\t\tdescription: '説明',\n\t\t\t\t'graphql.url': 'GraphQL URL',\n\t\t\t\t'openapi.url': 'OpenAPI URL',\n\t\t\t})),\n\t\t\tprovideDataAccessor(() => {\n\t\t\t\treturn (item: Resource, key) => {\n\t\t\t\t\tswitch (key) {\n\t\t\t\t\t\tcase 'description':\n\t\t\t\t\t\t\treturn ResourceHelper.getDescription(item);\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\treturn item[key];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}),\n\t\t\tIndexPageStore.provideDefault(),\n\t\t\tIndexPageStore.Config.provide(() => {\n\t\t\t\treturn config => ({\n\t\t\t\t\t...config,\n\t\t\t\t\tstyle: {\n\t\t\t\t\t\t...config.style,\n\t\t\t\t\t\twidth: 'var(--page-width-lv2)',\n\t\t\t\t\t},\n\t\t\t\t\ttitle: 'リソース一覧',\n\t\t\t\t\tnavEndActions: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tid: 'menu',\n\t\t\t\t\t\t\ticon: 'more_vert',\n\t\t\t\t\t\t\tchildren: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: IndexPageStore.ActionId.ADD,\n\t\t\t\t\t\t\t\t\tname: '追加',\n\t\t\t\t\t\t\t\t\ticon: 'add',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: ActionId.EXPORT_RESOURCES,\n\t\t\t\t\t\t\t\t\ticon: 'download',\n\t\t\t\t\t\t\t\t\tname: 'リソースのエクスポート'\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tid: ActionId.IMPORT_RESOURCES,\n\t\t\t\t\t\t\t\t\ticon: 'upload',\n\t\t\t\t\t\t\t\t\tname: 'リソースのインポート'\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\titemActions: (item: Resource) => [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tid: IndexPageStore.ActionId.DETAIL,\n\t\t\t\t\t\t\tname: '詳細',\n\t\t\t\t\t\t\ticon: 'open_in_new',\n\t\t\t\t\t\t\tpayload: item,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t})\n\t\t\t}),\n\t\t\tIndexPageStore.Initializer.provide((store) => {\n\t\t\t\tconst form = injectIndexForm({\n\t\t\t\t\tcolumns: buildColumns([\n\t\t\t\t\t\t'id', 'name', 'type', 'description', '__actions'\n\t\t\t\t\t])\n\t\t\t\t})\n\t\t\t\tapplyToInput(store, 'form', form);\n\t\t\t\tconst resources = injectAll(Resource);\n\t\t\t\teffect(() => {\n\t\t\t\t\tapplyToInput(store, 'items', resources());\n\t\t\t\t});\n\t\t\t}),\n\t\t\tprovideEffect(ActionId.EXPORT_RESOURCES, () => {\n\t\t\t\tconst store = inject(IndexPageStore);\n\t\t\t\tconst app = inject(AppService);\n\t\t\t\treturn () => {\n\t\t\t\t\tapp.clipboard.copy(JSON.stringify(store.items(), null, 2));\n\t\t\t\t\tapp.snackBar.open('JSONをコピーしました');\n\t\t\t\t}\n\t\t\t}),\n\t\t\tprovideEffect(ActionId.IMPORT_RESOURCES, () => {\n\t\t\t\tconst repo = inject(ResourceHasuraRepository);\n\t\t\t\tconst app = inject(AppService);\n\t\t\t\treturn () => {\n\t\t\t\t\tconst json = prompt('JSONを貼り付けてください');\n\t\t\t\t\tif (!json) return;\t\n\t\t\t\t\tconst items = JSON.parse(json) as any[];\n\t\t\t\t\tconst queries = items.map(item => plainToInstanceWithValid(Resource, item));\n\t\t\t\t\tapp.loading.await(() => {\n\t\t\t\t\t\treturn repo.saveMany(queries).then(() => {\n\t\t\t\t\t\t\tapp.snackBar.open('リソースをインポートしました');\n\t\t\t\t\t\t}).catch((error) => {\n\t\t\t\t\t\t\tconsole.error(error);\n\t\t\t\t\t\t\tapp.snackBar.open('リソースのインポートに失敗しました');\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}),\n\t\t]\n\t}\n];","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAcA,IAAK,QAGJ;AAHD,CAAA,UAAK,QAAQ,EAAA;AACZ,IAAA,QAAA,CAAA,kBAAA,CAAA,GAAA,mCAAsD;AACtD,IAAA,QAAA,CAAA,kBAAA,CAAA,GAAA,mCAAsD;AACvD,CAAC,EAHI,QAAQ,KAAR,QAAQ,GAGZ,EAAA,CAAA,CAAA;AAEY,MAAA,MAAM,GAAW;AAC7B,IAAA;AACC,QAAA,IAAI,EAAE,EAAE;AACR,QAA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AAC,IAAI,CAAC,cAAc,CAAC;AAClC,iBAAC;AACF,aAAC,CAAC;AACF,YAAA,aAAa,CAAC,QAAQ,CAAC,gBAAgB,EAAE,MAAK;AAC7C,gBAAA,MAAM,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC;AAC7C,gBAAA,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC;AAC9B,gBAAA,OAAO,MAAK;AACX,oBAAA,MAAM,IAAI,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACrC,oBAAA,IAAI,CAAC,IAAI;wBAAE;oBACX,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAU;AACvC,oBAAA,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,IAAI,wBAAwB,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AAC3E,oBAAA,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,MAAK;wBACtB,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAK;AACvC,4BAAA,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC;AACpC,yBAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,KAAI;AAClB,4BAAA,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;AACpB,4BAAA,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC;AACvC,yBAAC,CAAC;AACH,qBAAC,CAAC;AACH,iBAAC;AACF,aAAC,CAAC;AACF;AACD;;;ACzHF;;AAEG;;;;"}
|
|
@@ -3,21 +3,21 @@ function xxRoutes(routes) {
|
|
|
3
3
|
...routes.filter(route => route.path !== '**'),
|
|
4
4
|
{
|
|
5
5
|
path: 'commands',
|
|
6
|
-
loadChildren: () => import('@xxmachina/components/routes/commands'),
|
|
6
|
+
loadChildren: () => import('@xxmachina/components/routes/commands').then(m => m.routes),
|
|
7
7
|
data: { preload: true },
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
path: 'queries',
|
|
11
|
-
loadChildren: () => import('@xxmachina/components/routes/queries'),
|
|
11
|
+
loadChildren: () => import('@xxmachina/components/routes/queries').then(m => m.routes),
|
|
12
12
|
data: { preload: true },
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
path: 'pages',
|
|
16
|
-
loadChildren: () => import('@xxmachina/components/routes/pages')
|
|
16
|
+
loadChildren: () => import('@xxmachina/components/routes/pages').then(m => m.routes)
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
path: 'resources',
|
|
20
|
-
loadChildren: () => import('@xxmachina/components/routes/resources')
|
|
20
|
+
loadChildren: () => import('@xxmachina/components/routes/resources').then(m => m.routes)
|
|
21
21
|
},
|
|
22
22
|
...routes.filter(route => route.path === '**'),
|
|
23
23
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-routes.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/index.ts","../../../../../packages/@xxmachina/components/src/lib/routes/xxmachina-components-routes.ts"],"sourcesContent":["import { Routes } from '@angular/router';\n\nexport function xxRoutes(routes: Routes): Routes {\n\treturn [\n\t\t...routes.filter(route => route.path !== '**'),\n\t\t{\n\t\t\tpath: 'commands',\n\t\t\tloadChildren: () => import('@xxmachina/components/routes/commands'),\n\t\t\tdata: { preload: true },\n\t\t},\n\t\t{\n\t\t\tpath: 'queries',\n\t\t\tloadChildren: () => import('@xxmachina/components/routes/queries'),\n\t\t\tdata: { preload: true },\n\t\t},\n\t\t{\n\t\t\tpath: 'pages',\n\t\t\tloadChildren: () => import('@xxmachina/components/routes/pages')\n\t\t},\n\t\t{\n\t\t\tpath: 'resources',\n\t\t\tloadChildren: () => import('@xxmachina/components/routes/resources')\n\t\t},\n\t\t...routes.filter(route => route.path === '**'),\n\t];\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAEM,SAAU,QAAQ,CAAC,MAAc,EAAA;IACtC,OAAO;AACN,QAAA,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC;AAC9C,QAAA;AACC,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,YAAY,EAAE,MAAM,OAAO,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"xxmachina-components-routes.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/index.ts","../../../../../packages/@xxmachina/components/src/lib/routes/xxmachina-components-routes.ts"],"sourcesContent":["import { Routes } from '@angular/router';\n\nexport function xxRoutes(routes: Routes): Routes {\n\treturn [\n\t\t...routes.filter(route => route.path !== '**'),\n\t\t{\n\t\t\tpath: 'commands',\n\t\t\tloadChildren: () => import('@xxmachina/components/routes/commands').then(m => m.routes),\n\t\t\tdata: { preload: true },\n\t\t},\n\t\t{\n\t\t\tpath: 'queries',\n\t\t\tloadChildren: () => import('@xxmachina/components/routes/queries').then(m => m.routes),\n\t\t\tdata: { preload: true },\n\t\t},\n\t\t{\n\t\t\tpath: 'pages',\n\t\t\tloadChildren: () => import('@xxmachina/components/routes/pages').then(m => m.routes)\n\t\t},\n\t\t{\n\t\t\tpath: 'resources',\n\t\t\tloadChildren: () => import('@xxmachina/components/routes/resources').then(m => m.routes)\n\t\t},\n\t\t...routes.filter(route => route.path === '**'),\n\t];\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAEM,SAAU,QAAQ,CAAC,MAAc,EAAA;IACtC,OAAO;AACN,QAAA,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC;AAC9C,QAAA;AACC,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,YAAY,EAAE,MAAM,OAAO,uCAAuC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;AACvF,YAAA,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;AACvB,SAAA;AACD,QAAA;AACC,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,YAAY,EAAE,MAAM,OAAO,sCAAsC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;AACtF,YAAA,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;AACvB,SAAA;AACD,QAAA;AACC,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,YAAY,EAAE,MAAM,OAAO,oCAAoC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM;AACnF,SAAA;AACD,QAAA;AACC,YAAA,IAAI,EAAE,WAAW;AACjB,YAAA,YAAY,EAAE,MAAM,OAAO,wCAAwC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM;AACvF,SAAA;AACD,QAAA,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC;KAC9C;AACF;;ACzBA;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xxmachina/components",
|
|
3
|
-
"version": "19.0.0-preview.
|
|
3
|
+
"version": "19.0.0-preview.22",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -138,14 +138,14 @@
|
|
|
138
138
|
"types": "./services/order/index.d.ts",
|
|
139
139
|
"default": "./fesm2022/xxmachina-components-services-order.mjs"
|
|
140
140
|
},
|
|
141
|
-
"./services/query": {
|
|
142
|
-
"types": "./services/query/index.d.ts",
|
|
143
|
-
"default": "./fesm2022/xxmachina-components-services-query.mjs"
|
|
144
|
-
},
|
|
145
141
|
"./services/partner": {
|
|
146
142
|
"types": "./services/partner/index.d.ts",
|
|
147
143
|
"default": "./fesm2022/xxmachina-components-services-partner.mjs"
|
|
148
144
|
},
|
|
145
|
+
"./services/query": {
|
|
146
|
+
"types": "./services/query/index.d.ts",
|
|
147
|
+
"default": "./fesm2022/xxmachina-components-services-query.mjs"
|
|
148
|
+
},
|
|
149
149
|
"./services/query-config": {
|
|
150
150
|
"types": "./services/query-config/index.d.ts",
|
|
151
151
|
"default": "./fesm2022/xxmachina-components-services-query-config.mjs"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { routes } from './commands.routes';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { Routes } from '@angular/router';
|
|
2
|
+
export declare const routes: Routes;
|
package/routes/pages/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { routes } from './pages.routes';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { routes } from './queries.routes';
|
package/routes/query/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { routes } from './query.routes';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { routes } from './resources.routes';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-routes-commands-command.routes-CeRVzy3Z.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/commands/pages/command/command.routes.ts"],"sourcesContent":["import { CommandPage, CommandPageStore } from '@xxmachina/components/pages/command';\nimport { ngAtomicRoutes } from '@ng-atomic/components/frames/router-outlet';\nimport { provideEffect } from '@ng-atomic/core';\nimport { inject } from '@angular/core';\n\nexport default ngAtomicRoutes([\n\t{\n\t\tpath: '',\n\t\tcomponent: CommandPage,\n\t\t// loadChildren: () => import('./pages/pages.routes').then(m => m.routes)\n\t\tproviders: [\n\t\t\tCommandPageStore.provideDefault(),\n CommandPageStore.provideQueryIdFromRouteParam(),\n\t\t\tCommandPageStore.provideCommandFromRouteParamInitializer(),\n\t\t\tprovideEffect(CommandPageStore.ActionId.FILE_SELECTED, () => {\n\t\t\t\tconst store = inject(CommandPageStore);\n\t\t\t\treturn (payload) => {\n\t\t\t\t\tstore.form().patchValue({ file: payload.files?.[0] })\n\t\t\t\t}\n\t\t\t}),\n\t\t],\n\t}\n]);\n"],"names":[],"mappings":";;;;;AAKA,qBAAe,cAAc,CAAC;AAC7B,IAAA;AACC,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,SAAS,EAAE,WAAW;;AAEtB,QAAA,SAAS,EAAE;YACV,gBAAgB,CAAC,cAAc,EAAE;YAC9B,gBAAgB,CAAC,4BAA4B,EAAE;YAClD,gBAAgB,CAAC,uCAAuC,EAAE;YAC1D,aAAa,CAAC,gBAAgB,CAAC,QAAQ,CAAC,aAAa,EAAE,MAAK;AAC3D,gBAAA,MAAM,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC;gBACtC,OAAO,CAAC,OAAO,KAAI;AAClB,oBAAA,KAAK,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC;AACtD,iBAAC;AACF,aAAC,CAAC;AACF,SAAA;AACD;AACD,CAAA,CAAC;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-routes-commands-pages.routes-Cm6Yd40h.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/commands/pages/pages.routes.ts"],"sourcesContent":["import { Routes } from '@angular/router';\n\nexport default <Routes>[\n\t{\n\t\tpath: ':commandId',\n\t\tloadChildren: () => import('./command/command.routes'),\n\t\tdata: { preload: true },\n\t}\n];\n"],"names":[],"mappings":"AAEA,mBAAuB;AACtB,IAAA;AACC,QAAA,IAAI,EAAE,YAAY;AAClB,QAAA,YAAY,EAAE,MAAM,OAAO,oEAA0B,CAAC;AACtD,QAAA,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;AACvB;CACD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-routes-queries-pages.routes-BfWsTCij.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/queries/pages/pages.routes.ts"],"sourcesContent":["import { Routes } from '@angular/router';\n\nexport default <Routes>[\n\t// {\n\t// \tpath: ':queryId',\n\t// \tloadChildren: () => import('@xxmachina/components/routes/query')\n\t// }\n];\n"],"names":[],"mappings":"AAEA,mBAAuB;AACtB;AACA;AACA;AACA;CACA;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-routes-query-pages.routes-H2vrF7kQ.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/query/pages/pages.routes.ts"],"sourcesContent":["import { Routes } from '@angular/router';\n\nexport default <Routes>[\n\t{\n\t\tpath: 'commands',\n\t\tloadChildren: () => import('@xxmachina/components/routes/commands')\n\t},\n\t{\n\t\tpath: 'queries',\n\t\tloadChildren: () => import('@xxmachina/components/routes/queries')\n\t},\n\t{\n\t\tpath: 'pages',\n\t\tloadChildren: () => import('@xxmachina/components/routes/pages')\n\t},\n];\n\n"],"names":[],"mappings":"AAEA,mBAAuB;AACtB,IAAA;AACC,QAAA,IAAI,EAAE,UAAU;AAChB,QAAA,YAAY,EAAE,MAAM,OAAO,uCAAuC;AAClE,KAAA;AACD,IAAA;AACC,QAAA,IAAI,EAAE,SAAS;AACf,QAAA,YAAY,EAAE,MAAM,OAAO,sCAAsC;AACjE,KAAA;AACD,IAAA;AACC,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,YAAY,EAAE,MAAM,OAAO,oCAAoC;AAC/D,KAAA;CACD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-routes-resources-pages.routes-BSjrrV1g.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/resources/pages/pages.routes.ts"],"sourcesContent":["import { Routes } from '@angular/router';\n\nexport default <Routes>[\n\t{\n\t\tpath: ':resourceId',\n\t\tloadChildren: () => import('./resource/resource.routes')\n\t}\n];"],"names":[],"mappings":"AAEA,mBAAuB;AACtB,IAAA;AACC,QAAA,IAAI,EAAE,aAAa;AACnB,QAAA,YAAY,EAAE,MAAM,OAAO,sEAA4B;AACvD;CACD;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-components-routes-resources-resource.routes-DzGgwitX.mjs","sources":["../../../../../packages/@xxmachina/components/src/lib/routes/resources/pages/resource/resource.routes.ts"],"sourcesContent":["import { S } from '@angular/cdk/keycodes';\nimport { computed, effect, inject } from '@angular/core';\nimport { FormBuilder } from '@angular/forms';\nimport { Routes } from '@angular/router';\nimport { Resource } from '@xxmachina/common/domain/models';\nimport { ResourceHasuraRepository } from '@xxmachina/common/infra/repository/hasura';\nimport { provideLangMap, provideModelName } from '@ng-atomic/common/pipes/domain';\nimport { FormFieldMap } from '@ng-atomic/common/pipes/smart-field';\nimport { AppService } from '@ng-atomic/common/services/app';\nimport { injectEntityStore, injectOne } from '@ng-atomic/common/stores/entities';\nimport { computedRawValue, getValue, injectRouteParam } from '@ng-atomic/common/utils';\n// import { ResourcePage } from './resource.page';\nimport { FormPage, FormPageStore, provideEntityIdName } from '@ng-atomic/components/pages/form';\nimport { applyToInput, provideEffect } from '@ng-atomic/core';\nimport { getLangMap } from '@nx-ddd/common/domain';\n\nexport default <Routes>[\n\t{\n\t\tpath: '',\n\t\tcomponent: FormPage,\n\t\t// loadChildren: () => import('./pages/pages.routes').then(m => m.routes)\n\t\tproviders: [\n\t\t\tprovideModelName(() => 'リソース'),\n\t\t\tprovideEntityIdName('resourceId'),\n\t\t\tFormPageStore.provideDefault(),\n\t\t\tFormPageStore.Initializer.provide((store) => {\n\t\t\t\tconst fb = inject(FormBuilder).nonNullable;\n\t\t\t\tconst form = fb.group({\n\t\t\t\t\tid: [''],\n\t\t\t\t\tprojectId: [''],\n\t\t\t\t\tname: [''],\n\t\t\t\t\ttype: ['graphql'],\n\t\t\t\t\topenapi: fb.group({\n\t\t\t\t\t\turl: [''],\n\t\t\t\t\t}),\n\t\t\t\t\tgraphql: fb.group({\n\t\t\t\t\t\turl: [''],\n\t\t\t\t\t}),\n\t\t\t\t\tcreatedAt: [{value: '', disabled: true}],\n\t\t\t\t\tupdatedAt: [{value: '', disabled: true}],\n\t\t\t\t});\n\t\t\t\tapplyToInput(store, 'form', form);\n\t\t\t}),\n\t\t\tFormPageStore.Initializer.provide((store) => {\n\t\t\t\tconst value = computedRawValue(() => store.form())\n\t\t\t\tconst formFieldMap = computed<FormFieldMap>(() => ({\n\t\t\t\t\tid: { type: 'hidden' },\n\t\t\t\t\tprojectId: { type: 'hidden' },\n\t\t\t\t\tname: { type: 'text' },\n\t\t\t\t\ttype: {\n\t\t\t\t\t\ttype: 'select',\n\t\t\t\t\t\toptions: [\n\t\t\t\t\t\t\t{ name: 'GraphQL', value: 'graphql' },\n\t\t\t\t\t\t\t{ name: 'OpenAPI', value: 'openapi' },\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t'openapi.url': { type: value()?.type === 'openapi' ? 'text' : 'hidden' },\n\t\t\t\t\t'graphql.url': { type: value()?.type === 'graphql' ? 'text' : 'hidden' },\n\t\t\t\t\tcreatedAt: {\n\t\t\t\t\t\ttype: 'date',\n\t\t\t\t\t},\n\t\t\t\t\tupdatedAt: {\n\t\t\t\t\t\ttype: 'date',\n\t\t\t\t\t},\n\t\t\t\t}));\n\t\t\t\teffect(() => {\n\t\t\t\t\tapplyToInput(store, 'fieldMap', formFieldMap());\n\t\t\t\t});\n\t\t\t}),\n\t\t\tFormPageStore.Initializer.provide((store) => {\n\t\t\t\tconst resourceId = injectRouteParam('resourceId');\n\t\t\t\tconst resource = injectOne(Resource, { id: resourceId });\n\t\t\t\teffect(() => {\n\t\t\t\t\tconsole.debug('resourceId:', resourceId());\n\t\t\t\t\tconsole.debug('resource:', resource());\n\t\t\t\t\tstore.form().patchValue(resource());\n\t\t\t\t});\n\t\t\t}),\n\t\t\tprovideEffect(FormPageStore.ActionId.CREATE, () => {\n\t\t\t\tconst entity = injectEntityStore(Resource);\n\t\t\t\tconst app = inject(AppService);\n\t\t\t\tconst store = inject(FormPageStore);\n\t\t\t\treturn () => {\n\t\t\t\t\tconst value = store.form().getRawValue();\n\t\t\t\t\tconsole.debug('value:', value);\n\t\t\t\t\tapp.loading.await(() => {\n\t\t\t\t\t\treturn entity.create({\n\t\t\t\t\t\t\tid: undefined,\n\t\t\t\t\t\t\tprojectId: 'default',\n\t\t\t\t\t\t\ttype: value.type,\n\t\t\t\t\t\t\tname: value.name,\n\t\t\t\t\t\t\topenapi: value.openapi,\n\t\t\t\t\t\t\tgraphql: value.graphql,\n\t\t\t\t\t\t\tcreatedAt: undefined,\n\t\t\t\t\t\t\tupdatedAt: undefined,\n\t\t\t\t\t\t}).then(() => {\n\t\t\t\t\t\t\tapp.snackBar.open('リソースを作成しました');\n\t\t\t\t\t\t}).catch((error) => {\n\t\t\t\t\t\t\tconsole.error(error);\n\t\t\t\t\t\t\tapp.snackBar.open('リソースの作成に失敗しました');\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t};\n\t\t\t}),\n\t\t\tprovideEffect(FormPageStore.ActionId.UPDATE, () => {\n\t\t\t\tconst entity = injectEntityStore(Resource);\n\t\t\t\tconst app = inject(AppService);\n\t\t\t\tconst store = inject(FormPageStore);\n\t\t\t\tconst resourceId = injectRouteParam('resourceId');\n\t\t\t\treturn () => {\n\t\t\t\t\tconst value = store.form().getRawValue();\n\t\t\t\t\tconsole.debug('value:', value);\n\t\t\t\t\tapp.loading.await(() => {\n\t\t\t\t\t\treturn entity.update({\n\t\t\t\t\t\t\tid: resourceId(),\n\t\t\t\t\t\t\tprojectId: 'default',\n\t\t\t\t\t\t\ttype: value.type,\n\t\t\t\t\t\t\tname: value.name,\n\t\t\t\t\t\t\topenapi: value.openapi,\n\t\t\t\t\t\t\tgraphql: value.graphql,\n\t\t\t\t\t\t\tcreatedAt: undefined,\n\t\t\t\t\t\t\tupdatedAt: undefined,\n\t\t\t\t\t\t}).then(() => {\n\t\t\t\t\t\t\tapp.snackBar.open('リソースを更新しました');\n\t\t\t\t\t\t}).catch((error) => {\n\t\t\t\t\t\t\tconsole.error(error);\n\t\t\t\t\t\t\tapp.snackBar.open('リソースの更新に失敗しました');\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t};\n\t\t\t}),\n\t\t]\n\t}\n];"],"names":[],"mappings":";;;;;;;;;;AAgBA,sBAAuB;AACtB,IAAA;AACC,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,SAAS,EAAE,QAAQ;;AAEnB,QAAA,SAAS,EAAE;AACV,YAAA,gBAAgB,CAAC,MAAM,MAAM,CAAC;YAC9B,mBAAmB,CAAC,YAAY,CAAC;YACjC,aAAa,CAAC,cAAc,EAAE;YAC9B,aAAa,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,KAAK,KAAI;gBAC3C,MAAM,EAAE,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,WAAW;AAC1C,gBAAA,MAAM,IAAI,GAAI,EAAE,CAAC,KAAK,CAAC;oBACtB,EAAE,EAAE,CAAC,EAAE,CAAC;oBACR,SAAS,EAAE,CAAC,EAAE,CAAC;oBACf,IAAI,EAAE,CAAC,EAAE,CAAC;oBACV,IAAI,EAAE,CAAC,SAAS,CAAC;AACjB,oBAAA,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC;wBACjB,GAAG,EAAE,CAAC,EAAE,CAAC;qBACT,CAAC;AACF,oBAAA,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC;wBACjB,GAAG,EAAE,CAAC,EAAE,CAAC;qBACT,CAAC;oBACF,SAAS,EAAE,CAAC,EAAC,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC;oBACxC,SAAS,EAAE,CAAC,EAAC,KAAK,EAAE,EAAE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