@cratis/scene.blueprint.inventory 0.0.0-stage → 4.53.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/README.md +66 -2
- package/blueprint.ts +16 -0
- package/blueprintCatalog.json +190 -0
- package/dist/cjs/blueprint.js +19 -0
- package/dist/cjs/blueprint.js.map +1 -0
- package/dist/cjs/index.js +72 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/inventoryApplication.js +49 -0
- package/dist/cjs/inventoryApplication.js.map +1 -0
- package/dist/cjs/inventoryParts.js +131 -0
- package/dist/cjs/inventoryParts.js.map +1 -0
- package/dist/cjs/inventoryQueries.js +72 -0
- package/dist/cjs/inventoryQueries.js.map +1 -0
- package/dist/cjs/inventoryScreenSet.js +69 -0
- package/dist/cjs/inventoryScreenSet.js.map +1 -0
- package/dist/cjs/manifest.js +65 -0
- package/dist/cjs/manifest.js.map +1 -0
- package/dist/cjs/navigation.js +143 -0
- package/dist/cjs/navigation.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/packageName.js +8 -0
- package/dist/cjs/packageName.js.map +1 -0
- package/dist/cjs/screens/index.js +22 -0
- package/dist/cjs/screens/index.js.map +1 -0
- package/dist/cjs/templateProvenance.js +24 -0
- package/dist/cjs/templateProvenance.js.map +1 -0
- package/dist/cjs/templates/dashboardTemplate.js +92 -0
- package/dist/cjs/templates/dashboardTemplate.js.map +1 -0
- package/dist/cjs/templates/formTemplates.js +94 -0
- package/dist/cjs/templates/formTemplates.js.map +1 -0
- package/dist/cjs/templates/index.js +34 -0
- package/dist/cjs/templates/index.js.map +1 -0
- package/dist/cjs/templates/listTemplates.js +212 -0
- package/dist/cjs/templates/listTemplates.js.map +1 -0
- package/dist/cjs/templates/locationsTemplate.js +63 -0
- package/dist/cjs/templates/locationsTemplate.js.map +1 -0
- package/dist/cjs/templates/recordTemplates.js +111 -0
- package/dist/cjs/templates/recordTemplates.js.map +1 -0
- package/dist/esm/blueprint.d.ts +3 -0
- package/dist/esm/blueprint.d.ts.map +1 -0
- package/dist/esm/blueprint.js +17 -0
- package/dist/esm/blueprint.js.map +1 -0
- package/dist/esm/index.d.ts +12 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +18 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/inventoryApplication.d.ts +10 -0
- package/dist/esm/inventoryApplication.d.ts.map +1 -0
- package/dist/esm/inventoryApplication.js +44 -0
- package/dist/esm/inventoryApplication.js.map +1 -0
- package/dist/esm/inventoryParts.d.ts +15 -0
- package/dist/esm/inventoryParts.d.ts.map +1 -0
- package/dist/esm/inventoryParts.js +114 -0
- package/dist/esm/inventoryParts.js.map +1 -0
- package/dist/esm/inventoryQueries.d.ts +44 -0
- package/dist/esm/inventoryQueries.d.ts.map +1 -0
- package/dist/esm/inventoryQueries.js +64 -0
- package/dist/esm/inventoryQueries.js.map +1 -0
- package/dist/esm/inventoryScreenSet.d.ts +7 -0
- package/dist/esm/inventoryScreenSet.d.ts.map +1 -0
- package/dist/esm/inventoryScreenSet.js +67 -0
- package/dist/esm/inventoryScreenSet.js.map +1 -0
- package/dist/esm/manifest.d.ts +3 -0
- package/dist/esm/manifest.d.ts.map +1 -0
- package/dist/esm/manifest.js +63 -0
- package/dist/esm/manifest.js.map +1 -0
- package/dist/esm/navigation.d.ts +5 -0
- package/dist/esm/navigation.d.ts.map +1 -0
- package/dist/esm/navigation.js +139 -0
- package/dist/esm/navigation.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/packageName.d.ts +2 -0
- package/dist/esm/packageName.d.ts.map +1 -0
- package/dist/esm/packageName.js +6 -0
- package/dist/esm/packageName.js.map +1 -0
- package/dist/esm/screens/index.d.ts +3 -0
- package/dist/esm/screens/index.d.ts.map +1 -0
- package/dist/esm/screens/index.js +20 -0
- package/dist/esm/screens/index.js.map +1 -0
- package/dist/esm/templateProvenance.d.ts +3 -0
- package/dist/esm/templateProvenance.d.ts.map +1 -0
- package/dist/esm/templateProvenance.js +22 -0
- package/dist/esm/templateProvenance.js.map +1 -0
- package/dist/esm/templates/dashboardTemplate.d.ts +3 -0
- package/dist/esm/templates/dashboardTemplate.d.ts.map +1 -0
- package/dist/esm/templates/dashboardTemplate.js +90 -0
- package/dist/esm/templates/dashboardTemplate.js.map +1 -0
- package/dist/esm/templates/formTemplates.d.ts +5 -0
- package/dist/esm/templates/formTemplates.d.ts.map +1 -0
- package/dist/esm/templates/formTemplates.js +90 -0
- package/dist/esm/templates/formTemplates.js.map +1 -0
- package/dist/esm/templates/index.d.ts +8 -0
- package/dist/esm/templates/index.d.ts.map +1 -0
- package/dist/esm/templates/index.js +22 -0
- package/dist/esm/templates/index.js.map +1 -0
- package/dist/esm/templates/listTemplates.d.ts +6 -0
- package/dist/esm/templates/listTemplates.d.ts.map +1 -0
- package/dist/esm/templates/listTemplates.js +207 -0
- package/dist/esm/templates/listTemplates.js.map +1 -0
- package/dist/esm/templates/locationsTemplate.d.ts +3 -0
- package/dist/esm/templates/locationsTemplate.d.ts.map +1 -0
- package/dist/esm/templates/locationsTemplate.js +61 -0
- package/dist/esm/templates/locationsTemplate.js.map +1 -0
- package/dist/esm/templates/recordTemplates.d.ts +3 -0
- package/dist/esm/templates/recordTemplates.d.ts.map +1 -0
- package/dist/esm/templates/recordTemplates.js +109 -0
- package/dist/esm/templates/recordTemplates.js.map +1 -0
- package/dist/esm/tsconfig.tsbuildinfo +1 -0
- package/index.ts +14 -0
- package/inventoryApplication.ts +28 -0
- package/inventoryParts.ts +52 -0
- package/inventoryQueries.ts +64 -0
- package/inventoryScreenSet.ts +25 -0
- package/manifest.ts +41 -0
- package/navigation.ts +60 -0
- package/package.json +78 -4
- package/packageName.ts +5 -0
- package/sampleData/inventory-warehouse.json +1770 -0
- package/screens/index.ts +20 -0
- package/templateProvenance.ts +15 -0
- package/templates/dashboardTemplate.ts +45 -0
- package/templates/formTemplates.ts +60 -0
- package/templates/index.ts +25 -0
- package/templates/listTemplates.ts +109 -0
- package/templates/locationsTemplate.ts +36 -0
- package/templates/recordTemplates.ts +45 -0
- package/thumbnails/InventoryAdjustStock.svg +12 -0
- package/thumbnails/InventoryCheckInOut.svg +17 -0
- package/thumbnails/InventoryDashboard.svg +14 -0
- package/thumbnails/InventoryItemGallery.svg +29 -0
- package/thumbnails/InventoryItemList.svg +13 -0
- package/thumbnails/InventoryItemPage.svg +18 -0
- package/thumbnails/InventoryLocations.svg +20 -0
- package/thumbnails/InventoryMovementList.svg +13 -0
- package/thumbnails/InventoryQuickCreateItem.svg +12 -0
- package/thumbnails/InventoryQuickCreateSupplier.svg +12 -0
- package/thumbnails/InventorySupplierList.svg +13 -0
- package/thumbnails/inventory.svg +14 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint.js","sources":["../../blueprint.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { ScenePackageBundle } from '@cratis/scene.react';\nimport { inventoryBlueprintManifest } from './manifest';\nimport { inventoryScreens } from './screens';\nimport { inventoryDialogTemplates, inventoryScreenTemplates } from './templates';\n\n/** This blueprint as a loadable bundle: the manifest names things, this provides them. It provides no component - every component is the foundation's. */\nexport const inventoryBlueprint: ScenePackageBundle = {\n manifest: inventoryBlueprintManifest,\n components: {},\n screenTemplates: inventoryScreenTemplates,\n dialogTemplates: inventoryDialogTemplates,\n screens: inventoryScreens,\n};\n"],"names":["inventoryBlueprint","manifest","inventoryBlueprintManifest","components","screenTemplates","inventoryScreenTemplates","dialogTemplates","inventoryDialogTemplates","screens","inventoryScreens"],"mappings":";;;;;AAAA;AACA;AAOA,2JACO,MAAMA,kBAAAA,GAAyC;IAClDC,QAAAA,EAAUC,0BAAAA;AACVC,IAAAA,UAAAA,EAAY,EAAC;IACbC,eAAAA,EAAiBC,wBAAAA;IACjBC,eAAAA,EAAiBC,2BAAAA;IACjBC,OAAAA,EAASC;AACb;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './packageName';
|
|
2
|
+
export * from './templateProvenance';
|
|
3
|
+
export * from './inventoryQueries';
|
|
4
|
+
export * from './inventoryParts';
|
|
5
|
+
export * from './inventoryScreenSet';
|
|
6
|
+
export * from './templates';
|
|
7
|
+
export * from './screens';
|
|
8
|
+
export * from './navigation';
|
|
9
|
+
export * from './manifest';
|
|
10
|
+
export * from './blueprint';
|
|
11
|
+
export * from './inventoryApplication';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAGA,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { inventoryBlueprintName } from './packageName.js';
|
|
2
|
+
export { inventoryTemplateProvenance } from './templateProvenance.js';
|
|
3
|
+
export { InventoryEntityKind, InventoryQuery, currencyOfData, fromQuery, inventoryEntityPlural, inventoryQueriesOf, localeOfData } from './inventoryQueries.js';
|
|
4
|
+
export { actionButton, closesDialog, goesTo, inventoryCategory, inventoryMetadata, opensDialog, opensRecordOnSelect, thumbnailOf, withBehaviors } from './inventoryParts.js';
|
|
5
|
+
export { inventoryScreenDefinitions } from './inventoryScreenSet.js';
|
|
6
|
+
export { inventoryScreenTemplates } from './templates/index.js';
|
|
7
|
+
export { inventoryScreens } from './screens/index.js';
|
|
8
|
+
export { inventoryModule, inventoryNavigation, inventoryStructure } from './navigation.js';
|
|
9
|
+
export { inventoryBlueprintManifest } from './manifest.js';
|
|
10
|
+
export { inventoryBlueprint } from './blueprint.js';
|
|
11
|
+
export { inventoryApplication, inventoryComposition, inventoryDefaultSampleDataId, inventoryNavigationModel } from './inventoryApplication.js';
|
|
12
|
+
export { component, panel } from '@cratis/scene.blueprint.default';
|
|
13
|
+
export { inventoryCheckInOutTemplate, inventoryQuickCreateDialogs as inventoryDialogTemplates, inventoryFormTemplates, inventoryQuickCreateDialogs } from './templates/formTemplates.js';
|
|
14
|
+
export { inventoryDashboardTemplate } from './templates/dashboardTemplate.js';
|
|
15
|
+
export { inventoryItemGalleryTemplate, inventoryItemListTemplate, inventoryMovementListTemplate, inventorySupplierListTemplate } from './templates/listTemplates.js';
|
|
16
|
+
export { inventoryItemPageTemplate } from './templates/recordTemplates.js';
|
|
17
|
+
export { inventoryLocationsTemplate } from './templates/locationsTemplate.js';
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApplicationStructureIndex } from '@cratis/scene.engine';
|
|
2
|
+
import { ApplicationDocument, CompositionOptions } from '@cratis/scene.blueprint.default';
|
|
3
|
+
export declare const inventoryDefaultSampleDataId = "inventory-warehouse";
|
|
4
|
+
export declare function inventoryApplication(sampleData?: string): ApplicationDocument;
|
|
5
|
+
export declare const inventoryComposition: CompositionOptions;
|
|
6
|
+
export declare const inventoryNavigationModel: () => {
|
|
7
|
+
structure: ApplicationStructureIndex;
|
|
8
|
+
navigation: import("@cratis/scene.model").NavigationModel;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=inventoryApplication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventoryApplication.d.ts","sourceRoot":"","sources":["../../inventoryApplication.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAkC,MAAM,iCAAiC,CAAC;AAM1H,eAAO,MAAM,4BAA4B,wBAAwB,CAAC;AAOlE,wBAAgB,oBAAoB,CAAC,UAAU,GAAE,MAAqC,GAAG,mBAAmB,CAG3G;AAGD,eAAO,MAAM,oBAAoB,EAAE,kBAAmE,CAAC;AAGvG,eAAO,MAAM,wBAAwB;IAAY,SAAS;IAAqD,UAAU;CAAwB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ApplicationStructureIndex } from '@cratis/scene.engine';
|
|
2
|
+
import { previewProfile, defaultLayouts } from '@cratis/scene.blueprint.default';
|
|
3
|
+
import { inventoryNavigation, inventoryStructure } from './navigation.js';
|
|
4
|
+
import { inventoryScreens } from './screens/index.js';
|
|
5
|
+
import { inventoryScreenTemplates } from './templates/index.js';
|
|
6
|
+
import { inventoryQuickCreateDialogs } from './templates/formTemplates.js';
|
|
7
|
+
|
|
8
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
9
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
10
|
+
/** The id of the sample-data pack a new application starts with. */ const inventoryDefaultSampleDataId = 'inventory-warehouse';
|
|
11
|
+
/**
|
|
12
|
+
* The example application of the blueprint: the foundation's layouts, the Inventory and Assets templates and quick-create dialogs and its eight screens, rendering against the
|
|
13
|
+
* foundation's packages with the default sample-data pack chosen. This is what a gallery previews and what the conformance fixture
|
|
14
|
+
* (`Samples/Inventory/inventory.play`) declares in Screenplay: the document, the structure and the navigation are the three things an application is made of.
|
|
15
|
+
*/ function inventoryApplication(sampleData = inventoryDefaultSampleDataId) {
|
|
16
|
+
const profile = {
|
|
17
|
+
...previewProfile(undefined),
|
|
18
|
+
name: 'Inventory and Assets',
|
|
19
|
+
sampleData: {
|
|
20
|
+
activePack: sampleData,
|
|
21
|
+
mappings: [],
|
|
22
|
+
bindings: []
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return {
|
|
26
|
+
layouts: defaultLayouts,
|
|
27
|
+
screenTemplates: inventoryScreenTemplates,
|
|
28
|
+
dialogTemplates: inventoryQuickCreateDialogs,
|
|
29
|
+
screens: inventoryScreens,
|
|
30
|
+
uiProfiles: [
|
|
31
|
+
profile
|
|
32
|
+
]
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/** What a host composes the screens with: the application's logo, which the shell's topbar shows. */ const inventoryComposition = {
|
|
36
|
+
logo: inventoryNavigation.application.logo
|
|
37
|
+
};
|
|
38
|
+
/** The structure and navigation the shell's regions show and the items' destinations resolve against. */ const inventoryNavigationModel = ()=>({
|
|
39
|
+
structure: new ApplicationStructureIndex(inventoryStructure),
|
|
40
|
+
navigation: inventoryNavigation
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export { inventoryApplication, inventoryComposition, inventoryDefaultSampleDataId, inventoryNavigationModel };
|
|
44
|
+
//# sourceMappingURL=inventoryApplication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventoryApplication.js","sources":["../../inventoryApplication.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { UiProfile } from '@cratis/scene.model';\nimport { ApplicationStructureIndex } from '@cratis/scene.engine';\nimport { ApplicationDocument, CompositionOptions, defaultLayouts, previewProfile } from '@cratis/scene.blueprint.default';\nimport { inventoryNavigation, inventoryStructure } from './navigation';\nimport { inventoryScreens } from './screens';\nimport { inventoryDialogTemplates, inventoryScreenTemplates } from './templates';\n\n/** The id of the sample-data pack a new application starts with. */\nexport const inventoryDefaultSampleDataId = 'inventory-warehouse';\n\n/**\n * The example application of the blueprint: the foundation's layouts, the Inventory and Assets templates and quick-create dialogs and its eight screens, rendering against the\n * foundation's packages with the default sample-data pack chosen. This is what a gallery previews and what the conformance fixture\n * (`Samples/Inventory/inventory.play`) declares in Screenplay: the document, the structure and the navigation are the three things an application is made of.\n */\nexport function inventoryApplication(sampleData: string = inventoryDefaultSampleDataId): ApplicationDocument {\n const profile: UiProfile = { ...previewProfile(undefined), name: 'Inventory and Assets', sampleData: { activePack: sampleData, mappings: [], bindings: [] } };\n return { layouts: defaultLayouts, screenTemplates: inventoryScreenTemplates, dialogTemplates: inventoryDialogTemplates, screens: inventoryScreens, uiProfiles: [profile] };\n}\n\n/** What a host composes the screens with: the application's logo, which the shell's topbar shows. */\nexport const inventoryComposition: CompositionOptions = { logo: inventoryNavigation.application.logo };\n\n/** The structure and navigation the shell's regions show and the items' destinations resolve against. */\nexport const inventoryNavigationModel = () => ({ structure: new ApplicationStructureIndex(inventoryStructure), navigation: inventoryNavigation });\n"],"names":["inventoryDefaultSampleDataId","inventoryApplication","sampleData","profile","previewProfile","undefined","name","activePack","mappings","bindings","layouts","defaultLayouts","screenTemplates","inventoryScreenTemplates","dialogTemplates","inventoryDialogTemplates","screens","inventoryScreens","uiProfiles","inventoryComposition","logo","inventoryNavigation","application","inventoryNavigationModel","structure","ApplicationStructureIndex","inventoryStructure","navigation"],"mappings":";;;;;;;AAAA;AACA;AASA,qEACO,MAAMA,4BAAAA,GAA+B;AAE5C;;;;AAIC,IACM,SAASC,oBAAAA,CAAqBC,UAAAA,GAAqBF,4BAA4B,EAAA;AAClF,IAAA,MAAMG,OAAAA,GAAqB;AAAE,QAAA,GAAGC,eAAeC,SAAAA,CAAU;QAAEC,IAAAA,EAAM,sBAAA;QAAwBJ,UAAAA,EAAY;YAAEK,UAAAA,EAAYL,UAAAA;AAAYM,YAAAA,QAAAA,EAAU,EAAE;AAAEC,YAAAA,QAAAA,EAAU;AAAG;AAAE,KAAA;IAC5J,OAAO;QAAEC,OAAAA,EAASC,cAAAA;QAAgBC,eAAAA,EAAiBC,wBAAAA;QAA0BC,eAAAA,EAAiBC,2BAAAA;QAA0BC,OAAAA,EAASC,gBAAAA;QAAkBC,UAAAA,EAAY;AAACf,YAAAA;AAAQ;AAAC,KAAA;AAC7K;AAEA,sGACO,MAAMgB,oBAAAA,GAA2C;IAAEC,IAAAA,EAAMC,mBAAAA,CAAoBC,WAAW,CAACF;AAAK;AAErG,0GACO,MAAMG,wBAAAA,GAA2B,KAAO;AAAEC,QAAAA,SAAAA,EAAW,IAAIC,yBAAAA,CAA0BC,kBAAAA,CAAAA;QAAqBC,UAAAA,EAAYN;AAAoB,KAAA;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Behavior, DialogTemplate, ExternalComponent, SceneElement, ScreenTemplate, TemplateMetadata, TemplateScope } from '@cratis/scene.model';
|
|
2
|
+
import { component, panel } from '@cratis/scene.blueprint.default';
|
|
3
|
+
export { component, panel };
|
|
4
|
+
export declare const inventoryCategory = "Business / Inventory";
|
|
5
|
+
export declare const thumbnailOf: (templateName: string) => string;
|
|
6
|
+
export declare const inventoryMetadata: (name: string, type: 'Dashboard' | 'List' | 'Board' | 'Detail' | 'Form' | 'Dialog' | 'Workspace', scopes: TemplateScope[]) => TemplateMetadata;
|
|
7
|
+
export declare const actionButton: (id: string, label: string, emphasis: 'primary' | 'secondary' | 'quiet' | 'danger', extra?: Record<string, unknown>, behaviors?: Behavior[]) => ExternalComponent;
|
|
8
|
+
export declare const opensDialog: (dialogTemplate: string) => Behavior[];
|
|
9
|
+
export declare const goesTo: (screen: string) => Behavior[];
|
|
10
|
+
export declare const opensRecordOnSelect: (listId: string, screen: string) => Behavior[];
|
|
11
|
+
export declare const closesDialog: () => Behavior[];
|
|
12
|
+
export declare const withBehaviors: <T extends SceneElement>(element: T, behaviors: Behavior[]) => T;
|
|
13
|
+
export type InventoryScreenTemplate = ScreenTemplate;
|
|
14
|
+
export type InventoryDialogTemplate = DialogTemplate;
|
|
15
|
+
//# sourceMappingURL=inventoryParts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventoryParts.d.ts","sourceRoot":"","sources":["../../inventoryParts.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,QAAQ,EAAqB,cAAc,EAAE,iBAAiB,EAAmF,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,aAAa,EACjN,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAGnE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;AAG5B,eAAO,MAAM,iBAAiB,yBAAyB,CAAC;AAGxD,eAAO,MAAM,WAAW,iBAAkB,MAAM,KAAG,MAA0C,CAAC;AAG9F,eAAO,MAAM,iBAAiB,SAAU,MAAM,QAAQ,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,UAAU,aAAa,EAAE,KAAG,gBAC5C,CAAC;AAGlH,eAAO,MAAM,YAAY,OAAQ,MAAM,SAAS,MAAM,YAAY,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,UAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,cAAmB,QAAQ,EAAE,KAAG,iBACzC,CAAC;AAGtI,eAAO,MAAM,WAAW,mBAAoB,MAAM,KAAG,QAAQ,EACuG,CAAC;AAGrK,eAAO,MAAM,MAAM,WAAY,MAAM,KAAG,QAAQ,EACwG,CAAC;AAMzJ,eAAO,MAAM,mBAAmB,WAAY,MAAM,UAAU,MAAM,KAAG,QAAQ,EAK3E,CAAC;AAGH,eAAO,MAAM,YAAY,QAAO,QAAQ,EAAmI,CAAC;AAG5K,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,YAAY,WAAW,CAAC,aAAa,QAAQ,EAAE,KAAG,CAAgC,CAAC;AAE3H,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC;AACrD,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { InteractionActionKind, InteractionTriggerKind, BindingSourceKind } from '@cratis/scene.model';
|
|
2
|
+
import { component } from '@cratis/scene.blueprint.default';
|
|
3
|
+
export { component, panel } from '@cratis/scene.blueprint.default';
|
|
4
|
+
import { inventoryTemplateProvenance } from './templateProvenance.js';
|
|
5
|
+
|
|
6
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
7
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
8
|
+
/** The category of every template of this blueprint (spec Part B 1.2: `Business / <domain>`). */ const inventoryCategory = 'Business / Inventory';
|
|
9
|
+
/** The package-relative thumbnail of a template. */ const thumbnailOf = (templateName)=>`thumbnails/${templateName}.svg`;
|
|
10
|
+
/** The metadata of a screen template of this blueprint: provenance, a type from the vocabulary, the category, a thumbnail and the levels it applies at. */ const inventoryMetadata = (name, type, scopes)=>({
|
|
11
|
+
...inventoryTemplateProvenance,
|
|
12
|
+
type,
|
|
13
|
+
category: inventoryCategory,
|
|
14
|
+
thumbnail: thumbnailOf(name),
|
|
15
|
+
scopes
|
|
16
|
+
});
|
|
17
|
+
/** A button of the foundation: a verb, its emphasis, and the permission rule every action declares (spec Part B 1.5). */ const actionButton = (id, label, emphasis, extra = {}, behaviors)=>({
|
|
18
|
+
...component(id, 'actionButton', {
|
|
19
|
+
label,
|
|
20
|
+
emphasis,
|
|
21
|
+
permission: 'enabled',
|
|
22
|
+
...extra
|
|
23
|
+
}),
|
|
24
|
+
...behaviors ? {
|
|
25
|
+
behaviors
|
|
26
|
+
} : {}
|
|
27
|
+
});
|
|
28
|
+
/** What pressing an element does: open the named dialog template over the page. */ const opensDialog = (dialogTemplate)=>[
|
|
29
|
+
{
|
|
30
|
+
bindings: [
|
|
31
|
+
{
|
|
32
|
+
trigger: {
|
|
33
|
+
kind: InteractionTriggerKind.Click
|
|
34
|
+
},
|
|
35
|
+
actions: [
|
|
36
|
+
{
|
|
37
|
+
kind: InteractionActionKind.OpenDialog,
|
|
38
|
+
dialogTemplate
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
];
|
|
45
|
+
/** What pressing an element does: go to the named screen. */ const goesTo = (screen)=>[
|
|
46
|
+
{
|
|
47
|
+
bindings: [
|
|
48
|
+
{
|
|
49
|
+
trigger: {
|
|
50
|
+
kind: InteractionTriggerKind.Click
|
|
51
|
+
},
|
|
52
|
+
actions: [
|
|
53
|
+
{
|
|
54
|
+
kind: InteractionActionKind.Navigate,
|
|
55
|
+
screen
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
];
|
|
62
|
+
/**
|
|
63
|
+
* What choosing a row of a list does: open the record page, handing it the chosen row's id. The list is single-selection, so choosing a row is
|
|
64
|
+
* opening it - the way a table of records works everywhere.
|
|
65
|
+
*/ const opensRecordOnSelect = (listId, screen)=>[
|
|
66
|
+
{
|
|
67
|
+
bindings: [
|
|
68
|
+
{
|
|
69
|
+
trigger: {
|
|
70
|
+
kind: InteractionTriggerKind.Select
|
|
71
|
+
},
|
|
72
|
+
actions: [
|
|
73
|
+
{
|
|
74
|
+
kind: InteractionActionKind.Navigate,
|
|
75
|
+
screen,
|
|
76
|
+
arguments: [
|
|
77
|
+
{
|
|
78
|
+
name: 'id',
|
|
79
|
+
value: {
|
|
80
|
+
kind: BindingSourceKind.ComponentProperty,
|
|
81
|
+
componentId: listId,
|
|
82
|
+
path: 'value'
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
];
|
|
92
|
+
/** What a Cancel or Close control does: close the dialog it was opened from. */ const closesDialog = ()=>[
|
|
93
|
+
{
|
|
94
|
+
bindings: [
|
|
95
|
+
{
|
|
96
|
+
trigger: {
|
|
97
|
+
kind: InteractionTriggerKind.Click
|
|
98
|
+
},
|
|
99
|
+
actions: [
|
|
100
|
+
{
|
|
101
|
+
kind: InteractionActionKind.CloseDialog
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
];
|
|
108
|
+
/** An element with the given behaviors attached. */ const withBehaviors = (element, behaviors)=>({
|
|
109
|
+
...element,
|
|
110
|
+
behaviors
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
export { actionButton, closesDialog, goesTo, inventoryCategory, inventoryMetadata, opensDialog, opensRecordOnSelect, thumbnailOf, withBehaviors };
|
|
114
|
+
//# sourceMappingURL=inventoryParts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventoryParts.js","sources":["../../inventoryParts.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport {\n Behavior, BindingSourceKind, DialogTemplate, ExternalComponent, InteractionActionKind, InteractionTriggerKind, NavigateAction, OpenDialogAction, SceneElement, ScreenTemplate, TemplateMetadata, TemplateScope,\n} from '@cratis/scene.model';\nimport { component, panel } from '@cratis/scene.blueprint.default';\nimport { inventoryTemplateProvenance } from './templateProvenance';\n\nexport { component, panel };\n\n/** The category of every template of this blueprint (spec Part B 1.2: `Business / <domain>`). */\nexport const inventoryCategory = 'Business / Inventory';\n\n/** The package-relative thumbnail of a template. */\nexport const thumbnailOf = (templateName: string): string => `thumbnails/${templateName}.svg`;\n\n/** The metadata of a screen template of this blueprint: provenance, a type from the vocabulary, the category, a thumbnail and the levels it applies at. */\nexport const inventoryMetadata = (name: string, type: 'Dashboard' | 'List' | 'Board' | 'Detail' | 'Form' | 'Dialog' | 'Workspace', scopes: TemplateScope[]): TemplateMetadata =>\n ({ ...inventoryTemplateProvenance, type, category: inventoryCategory, thumbnail: thumbnailOf(name), scopes });\n\n/** A button of the foundation: a verb, its emphasis, and the permission rule every action declares (spec Part B 1.5). */\nexport const actionButton = (id: string, label: string, emphasis: 'primary' | 'secondary' | 'quiet' | 'danger', extra: Record<string, unknown> = {}, behaviors?: Behavior[]): ExternalComponent =>\n ({ ...component(id, 'actionButton', { label, emphasis, permission: 'enabled', ...extra }), ...(behaviors ? { behaviors } : {}) });\n\n/** What pressing an element does: open the named dialog template over the page. */\nexport const opensDialog = (dialogTemplate: string): Behavior[] =>\n [{ bindings: [{ trigger: { kind: InteractionTriggerKind.Click }, actions: [{ kind: InteractionActionKind.OpenDialog, dialogTemplate } as OpenDialogAction] }] }];\n\n/** What pressing an element does: go to the named screen. */\nexport const goesTo = (screen: string): Behavior[] =>\n [{ bindings: [{ trigger: { kind: InteractionTriggerKind.Click }, actions: [{ kind: InteractionActionKind.Navigate, screen } as NavigateAction] }] }];\n\n/**\n * What choosing a row of a list does: open the record page, handing it the chosen row's id. The list is single-selection, so choosing a row is\n * opening it - the way a table of records works everywhere.\n */\nexport const opensRecordOnSelect = (listId: string, screen: string): Behavior[] => [{\n bindings: [{\n trigger: { kind: InteractionTriggerKind.Select },\n actions: [{ kind: InteractionActionKind.Navigate, screen, arguments: [{ name: 'id', value: { kind: BindingSourceKind.ComponentProperty, componentId: listId, path: 'value' } }] } as NavigateAction],\n }],\n}];\n\n/** What a Cancel or Close control does: close the dialog it was opened from. */\nexport const closesDialog = (): Behavior[] => [{ bindings: [{ trigger: { kind: InteractionTriggerKind.Click }, actions: [{ kind: InteractionActionKind.CloseDialog }] }] }];\n\n/** An element with the given behaviors attached. */\nexport const withBehaviors = <T extends SceneElement>(element: T, behaviors: Behavior[]): T => ({ ...element, behaviors });\n\nexport type InventoryScreenTemplate = ScreenTemplate;\nexport type InventoryDialogTemplate = DialogTemplate;\n"],"names":["inventoryCategory","thumbnailOf","templateName","inventoryMetadata","name","type","scopes","inventoryTemplateProvenance","category","thumbnail","actionButton","id","label","emphasis","extra","behaviors","component","permission","opensDialog","dialogTemplate","bindings","trigger","kind","InteractionTriggerKind","Click","actions","InteractionActionKind","OpenDialog","goesTo","screen","Navigate","opensRecordOnSelect","listId","Select","arguments","value","BindingSourceKind","ComponentProperty","componentId","path","closesDialog","CloseDialog","withBehaviors","element"],"mappings":";;;;;AAAA;AACA;AAUA,kGACO,MAAMA,iBAAAA,GAAoB;AAEjC,qDACO,MAAMC,WAAAA,GAAc,CAACC,YAAAA,GAAiC,CAAC,WAAW,EAAEA,YAAAA,CAAa,IAAI;AAE5F,4JACO,MAAMC,iBAAAA,GAAoB,CAACC,IAAAA,EAAcC,IAAAA,EAAmFC,UAC9H;AAAE,QAAA,GAAGC,2BAA2B;AAAEF,QAAAA,IAAAA;QAAMG,QAAAA,EAAUR,iBAAAA;AAAmBS,QAAAA,SAAAA,EAAWR,WAAAA,CAAYG,IAAAA,CAAAA;AAAOE,QAAAA;AAAO,KAAA;AAE/G,0HACO,MAAMI,YAAAA,GAAe,CAACC,EAAAA,EAAYC,KAAAA,EAAeC,QAAAA,EAAwDC,KAAAA,GAAiC,EAAE,EAAEC,aAChJ;QAAE,GAAGC,SAAAA,CAAUL,IAAI,cAAA,EAAgB;AAAEC,YAAAA,KAAAA;AAAOC,YAAAA,QAAAA;YAAUI,UAAAA,EAAY,SAAA;AAAW,YAAA,GAAGH;SAAM,CAAE;AAAE,QAAA,GAAIC,SAAAA,GAAY;AAAEA,YAAAA;AAAU,SAAA,GAAI;AAAI,KAAA;AAEnI,oFACO,MAAMG,WAAAA,GAAc,CAACC,cAAAA,GACxB;AAAC,QAAA;YAAEC,QAAAA,EAAU;AAAC,gBAAA;oBAAEC,OAAAA,EAAS;AAAEC,wBAAAA,IAAAA,EAAMC,uBAAuBC;AAAM,qBAAA;oBAAGC,OAAAA,EAAS;AAAC,wBAAA;AAAEH,4BAAAA,IAAAA,EAAMI,sBAAsBC,UAAU;AAAER,4BAAAA;AAAe;AAAsB;AAAC;AAAE;AAAC;;AAElK,8DACO,MAAMS,MAAAA,GAAS,CAACC,MAAAA,GACnB;AAAC,QAAA;YAAET,QAAAA,EAAU;AAAC,gBAAA;oBAAEC,OAAAA,EAAS;AAAEC,wBAAAA,IAAAA,EAAMC,uBAAuBC;AAAM,qBAAA;oBAAGC,OAAAA,EAAS;AAAC,wBAAA;AAAEH,4BAAAA,IAAAA,EAAMI,sBAAsBI,QAAQ;AAAED,4BAAAA;AAAO;AAAoB;AAAC;AAAE;AAAC;;AAEtJ;;;AAGC,IACM,MAAME,mBAAAA,GAAsB,CAACC,QAAgBH,MAAAA,GAA+B;AAAC,QAAA;YAChFT,QAAAA,EAAU;AAAC,gBAAA;oBACPC,OAAAA,EAAS;AAAEC,wBAAAA,IAAAA,EAAMC,uBAAuBU;AAAO,qBAAA;oBAC/CR,OAAAA,EAAS;AAAC,wBAAA;AAAEH,4BAAAA,IAAAA,EAAMI,sBAAsBI,QAAQ;AAAED,4BAAAA,MAAAA;4BAAQK,SAAAA,EAAW;AAAC,gCAAA;oCAAE9B,IAAAA,EAAM,IAAA;oCAAM+B,KAAAA,EAAO;AAAEb,wCAAAA,IAAAA,EAAMc,kBAAkBC,iBAAiB;wCAAEC,WAAAA,EAAaN,MAAAA;wCAAQO,IAAAA,EAAM;AAAQ;AAAE;AAAE;AAAC;AAAoB;AACxM;AAAE;AACN;;AAEA,iFACO,MAAMC,YAAAA,GAAe,IAAkB;AAAC,QAAA;YAAEpB,QAAAA,EAAU;AAAC,gBAAA;oBAAEC,OAAAA,EAAS;AAAEC,wBAAAA,IAAAA,EAAMC,uBAAuBC;AAAM,qBAAA;oBAAGC,OAAAA,EAAS;AAAC,wBAAA;AAAEH,4BAAAA,IAAAA,EAAMI,sBAAsBe;AAAY;AAAE;AAAC;AAAE;AAAC;;AAEzK,qDACO,MAAMC,gBAAgB,CAAyBC,OAAAA,EAAY5B,aAA8B;AAAE,QAAA,GAAG4B,OAAO;AAAE5B,QAAAA;AAAU,KAAA;;"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { BindingExpression } from '@cratis/scene.model';
|
|
2
|
+
export declare const fromQuery: (query: string, path?: string) => BindingExpression;
|
|
3
|
+
export declare const InventoryQuery: {
|
|
4
|
+
readonly Settings: 'InventorySettings';
|
|
5
|
+
readonly Kpis: 'InventoryKpis';
|
|
6
|
+
readonly TopMovers: 'InventoryTopMovers';
|
|
7
|
+
readonly LowStock: 'InventoryLowStock';
|
|
8
|
+
readonly RecentMovements: 'RecentMovements';
|
|
9
|
+
readonly RecordTabs: 'InventoryRecordTabs';
|
|
10
|
+
readonly LocationNodes: 'LocationNodes';
|
|
11
|
+
readonly LocationContents: 'LocationContents';
|
|
12
|
+
readonly LocationContentColumns: 'LocationContentColumns';
|
|
13
|
+
readonly FormErrors: 'InventoryFormErrors';
|
|
14
|
+
};
|
|
15
|
+
export declare enum InventoryEntityKind {
|
|
16
|
+
Item = "Item",
|
|
17
|
+
Movement = "Movement",
|
|
18
|
+
Supplier = "Supplier"
|
|
19
|
+
}
|
|
20
|
+
export declare const inventoryEntityPlural: Record<InventoryEntityKind, string>;
|
|
21
|
+
export declare const inventoryQueriesOf: (entity: InventoryEntityKind) => {
|
|
22
|
+
rows: string;
|
|
23
|
+
columns: string;
|
|
24
|
+
filterFields: string;
|
|
25
|
+
views: string;
|
|
26
|
+
columnChoices: string;
|
|
27
|
+
selection: string;
|
|
28
|
+
sections: string;
|
|
29
|
+
quickSections: string;
|
|
30
|
+
record: string;
|
|
31
|
+
summary: string;
|
|
32
|
+
stockByLocation: string;
|
|
33
|
+
movements: string;
|
|
34
|
+
activity: string;
|
|
35
|
+
tasks: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const localeOfData: {
|
|
38
|
+
locale: BindingExpression;
|
|
39
|
+
};
|
|
40
|
+
export declare const currencyOfData: {
|
|
41
|
+
locale: BindingExpression;
|
|
42
|
+
currency: BindingExpression;
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=inventoryQueries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventoryQueries.d.ts","sourceRoot":"","sources":["../../inventoryQueries.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAqB,MAAM,qBAAqB,CAAC;AAM3E,eAAO,MAAM,SAAS,UAAW,MAAM,oBAAc,iBAA2E,CAAC;AAGjI,eAAO,MAAM,cAAc;aAEvB,QAAQ,EAAE,mBAAmB;aAC7B,IAAI,EAAE,eAAe;aACrB,SAAS,EAAE,oBAAoB;aAC/B,QAAQ,EAAE,mBAAmB;aAC7B,eAAe,EAAE,iBAAiB;aAClC,UAAU,EAAE,qBAAqB;aACjC,aAAa,EAAE,eAAe;aAC9B,gBAAgB,EAAE,kBAAkB;aACpC,sBAAsB,EAAE,wBAAwB;aAChD,UAAU,EAAE,qBAAqB;CAC3B,CAAC;AAGX,oBAAY,mBAAmB;IAC3B,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACxB;AAGD,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAIrE,CAAC;AAMF,eAAO,MAAM,kBAAkB,WAAY,mBAAmB;IAC1D,IAAI;IACJ,OAAO;IACP,YAAY;IACZ,KAAK;IACL,aAAa;IACb,SAAS;IACT,QAAQ;IACR,aAAa;IACb,MAAM;IACN,OAAO;IACP,eAAe;IACf,SAAS;IACT,QAAQ;IACR,KAAK;CACP,CAAC;AAGH,eAAO,MAAM,YAAY;IAAK,MAAM;CAAkD,CAAC;AACvF,eAAO,MAAM,cAAc;;;CAAkF,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { BindingSourceKind } from '@cratis/scene.model';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* A property taken from a query result - never a value. An Inventory template declares *where* its data comes from and the sample-data pack, or the real
|
|
7
|
+
* query, supplies the rows (spec SD1); `path` reaches into the result (`0.value` is the first row's `value`, an empty path is the whole result).
|
|
8
|
+
*/ const fromQuery = (query, path = '')=>({
|
|
9
|
+
kind: BindingSourceKind.QueryResult,
|
|
10
|
+
query,
|
|
11
|
+
path
|
|
12
|
+
});
|
|
13
|
+
/** The queries of the dashboard, the pages and the screens that are not a plain list. Each is a shape the sample-data pack supplies rows for. */ const InventoryQuery = {
|
|
14
|
+
/** One row: the `locale` the figures and dates are formatted in and the `currency` of the amounts. */ Settings: 'InventorySettings',
|
|
15
|
+
Kpis: 'InventoryKpis',
|
|
16
|
+
TopMovers: 'InventoryTopMovers',
|
|
17
|
+
LowStock: 'InventoryLowStock',
|
|
18
|
+
RecentMovements: 'RecentMovements',
|
|
19
|
+
RecordTabs: 'InventoryRecordTabs',
|
|
20
|
+
LocationNodes: 'LocationNodes',
|
|
21
|
+
LocationContents: 'LocationContents',
|
|
22
|
+
LocationContentColumns: 'LocationContentColumns',
|
|
23
|
+
FormErrors: 'InventoryFormErrors'
|
|
24
|
+
};
|
|
25
|
+
/** The Inventory entities a template is made for. */ var InventoryEntityKind = /*#__PURE__*/ function(InventoryEntityKind) {
|
|
26
|
+
InventoryEntityKind["Item"] = "Item";
|
|
27
|
+
InventoryEntityKind["Movement"] = "Movement";
|
|
28
|
+
InventoryEntityKind["Supplier"] = "Supplier";
|
|
29
|
+
return InventoryEntityKind;
|
|
30
|
+
}({});
|
|
31
|
+
/** The plural of each entity: the read model (and so the shape) its records are queried from. */ const inventoryEntityPlural = {
|
|
32
|
+
["Item"]: 'Items',
|
|
33
|
+
["Movement"]: 'Movements',
|
|
34
|
+
["Supplier"]: 'Suppliers'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* The queries one entity's templates bind to, named from the entity so a template never spells one out: the records, the columns and filter fields of the
|
|
38
|
+
* list, its saved views and column choices, the selection, the sections of the full and the quick form, and the record the page shows.
|
|
39
|
+
*/ const inventoryQueriesOf = (entity)=>({
|
|
40
|
+
rows: inventoryEntityPlural[entity],
|
|
41
|
+
columns: `${entity}Columns`,
|
|
42
|
+
filterFields: `${entity}FilterFields`,
|
|
43
|
+
views: `${entity}Views`,
|
|
44
|
+
columnChoices: `${entity}ColumnChoices`,
|
|
45
|
+
selection: `${entity}Selection`,
|
|
46
|
+
sections: `${entity}Sections`,
|
|
47
|
+
quickSections: `${entity}QuickSections`,
|
|
48
|
+
record: `${entity}Record`,
|
|
49
|
+
summary: `${entity}Summary`,
|
|
50
|
+
stockByLocation: `${entity}StockByLocation`,
|
|
51
|
+
movements: `${entity}Movements`,
|
|
52
|
+
activity: `${entity}Activity`,
|
|
53
|
+
tasks: `${entity}Tasks`
|
|
54
|
+
});
|
|
55
|
+
/** The locale and currency of the data, bound onto every component that formats a figure or a date. */ const localeOfData = {
|
|
56
|
+
locale: fromQuery(InventoryQuery.Settings, '0.locale')
|
|
57
|
+
};
|
|
58
|
+
const currencyOfData = {
|
|
59
|
+
...localeOfData,
|
|
60
|
+
currency: fromQuery(InventoryQuery.Settings, '0.currency')
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export { InventoryEntityKind, InventoryQuery, currencyOfData, fromQuery, inventoryEntityPlural, inventoryQueriesOf, localeOfData };
|
|
64
|
+
//# sourceMappingURL=inventoryQueries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventoryQueries.js","sources":["../../inventoryQueries.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { BindingExpression, BindingSourceKind } from '@cratis/scene.model';\n\n/**\n * A property taken from a query result - never a value. An Inventory template declares *where* its data comes from and the sample-data pack, or the real\n * query, supplies the rows (spec SD1); `path` reaches into the result (`0.value` is the first row's `value`, an empty path is the whole result).\n */\nexport const fromQuery = (query: string, path = ''): BindingExpression => ({ kind: BindingSourceKind.QueryResult, query, path });\n\n/** The queries of the dashboard, the pages and the screens that are not a plain list. Each is a shape the sample-data pack supplies rows for. */\nexport const InventoryQuery = {\n /** One row: the `locale` the figures and dates are formatted in and the `currency` of the amounts. */\n Settings: 'InventorySettings',\n Kpis: 'InventoryKpis',\n TopMovers: 'InventoryTopMovers',\n LowStock: 'InventoryLowStock',\n RecentMovements: 'RecentMovements',\n RecordTabs: 'InventoryRecordTabs',\n LocationNodes: 'LocationNodes',\n LocationContents: 'LocationContents',\n LocationContentColumns: 'LocationContentColumns',\n FormErrors: 'InventoryFormErrors',\n} as const;\n\n/** The Inventory entities a template is made for. */\nexport enum InventoryEntityKind {\n Item = 'Item',\n Movement = 'Movement',\n Supplier = 'Supplier',\n}\n\n/** The plural of each entity: the read model (and so the shape) its records are queried from. */\nexport const inventoryEntityPlural: Record<InventoryEntityKind, string> = {\n [InventoryEntityKind.Item]: 'Items',\n [InventoryEntityKind.Movement]: 'Movements',\n [InventoryEntityKind.Supplier]: 'Suppliers',\n};\n\n/**\n * The queries one entity's templates bind to, named from the entity so a template never spells one out: the records, the columns and filter fields of the\n * list, its saved views and column choices, the selection, the sections of the full and the quick form, and the record the page shows.\n */\nexport const inventoryQueriesOf = (entity: InventoryEntityKind) => ({\n rows: inventoryEntityPlural[entity],\n columns: `${entity}Columns`,\n filterFields: `${entity}FilterFields`,\n views: `${entity}Views`,\n columnChoices: `${entity}ColumnChoices`,\n selection: `${entity}Selection`,\n sections: `${entity}Sections`,\n quickSections: `${entity}QuickSections`,\n record: `${entity}Record`,\n summary: `${entity}Summary`,\n stockByLocation: `${entity}StockByLocation`,\n movements: `${entity}Movements`,\n activity: `${entity}Activity`,\n tasks: `${entity}Tasks`,\n});\n\n/** The locale and currency of the data, bound onto every component that formats a figure or a date. */\nexport const localeOfData = { locale: fromQuery(InventoryQuery.Settings, '0.locale') };\nexport const currencyOfData = { ...localeOfData, currency: fromQuery(InventoryQuery.Settings, '0.currency') };\n"],"names":["fromQuery","query","path","kind","BindingSourceKind","QueryResult","InventoryQuery","Settings","Kpis","TopMovers","LowStock","RecentMovements","RecordTabs","LocationNodes","LocationContents","LocationContentColumns","FormErrors","InventoryEntityKind","inventoryEntityPlural","inventoryQueriesOf","entity","rows","columns","filterFields","views","columnChoices","selection","sections","quickSections","record","summary","stockByLocation","movements","activity","tasks","localeOfData","locale","currencyOfData","currency"],"mappings":";;AAAA;AACA;AAIA;;;UAIaA,SAAAA,GAAY,CAACC,OAAeC,IAAAA,GAAO,EAAE,IAAyB;AAAEC,QAAAA,IAAAA,EAAMC,kBAAkBC,WAAW;AAAEJ,QAAAA,KAAAA;AAAOC,QAAAA;AAAK,KAAA;AAE9H,kJACO,MAAMI,cAAAA,GAAiB;AAC1B,2GACAC,QAAAA,EAAU,mBAAA;IACVC,IAAAA,EAAM,eAAA;IACNC,SAAAA,EAAW,oBAAA;IACXC,QAAAA,EAAU,mBAAA;IACVC,eAAAA,EAAiB,iBAAA;IACjBC,UAAAA,EAAY,qBAAA;IACZC,aAAAA,EAAe,eAAA;IACfC,gBAAAA,EAAkB,kBAAA;IAClBC,sBAAAA,EAAwB,wBAAA;IACxBC,UAAAA,EAAY;AAChB;AAEA,sDACO,IAAKC,mBAAAA,iBAAAA,SAAAA,mBAAAA,EAAAA;;;;AAAAA,IAAAA,OAAAA,mBAAAA;AAIX,CAAA,CAAA,EAAA;AAED,kGACO,MAAMC,qBAAAA,GAA6D;AACtE,IAAA,CAAA,MAAA,GAA4B,OAAA;AAC5B,IAAA,CAAA,UAAA,GAAgC,WAAA;AAChC,IAAA,CAAA,UAAA,GAAgC;AACpC;AAEA;;;AAGC,IACM,MAAMC,kBAAAA,GAAqB,CAACC,UAAiC;QAChEC,IAAAA,EAAMH,qBAAqB,CAACE,MAAAA,CAAO;QACnCE,OAAAA,EAAS,CAAA,EAAGF,MAAAA,CAAO,OAAO,CAAC;QAC3BG,YAAAA,EAAc,CAAA,EAAGH,MAAAA,CAAO,YAAY,CAAC;QACrCI,KAAAA,EAAO,CAAA,EAAGJ,MAAAA,CAAO,KAAK,CAAC;QACvBK,aAAAA,EAAe,CAAA,EAAGL,MAAAA,CAAO,aAAa,CAAC;QACvCM,SAAAA,EAAW,CAAA,EAAGN,MAAAA,CAAO,SAAS,CAAC;QAC/BO,QAAAA,EAAU,CAAA,EAAGP,MAAAA,CAAO,QAAQ,CAAC;QAC7BQ,aAAAA,EAAe,CAAA,EAAGR,MAAAA,CAAO,aAAa,CAAC;QACvCS,MAAAA,EAAQ,CAAA,EAAGT,MAAAA,CAAO,MAAM,CAAC;QACzBU,OAAAA,EAAS,CAAA,EAAGV,MAAAA,CAAO,OAAO,CAAC;QAC3BW,eAAAA,EAAiB,CAAA,EAAGX,MAAAA,CAAO,eAAe,CAAC;QAC3CY,SAAAA,EAAW,CAAA,EAAGZ,MAAAA,CAAO,SAAS,CAAC;QAC/Ba,QAAAA,EAAU,CAAA,EAAGb,MAAAA,CAAO,QAAQ,CAAC;QAC7Bc,KAAAA,EAAO,CAAA,EAAGd,MAAAA,CAAO,KAAK;AAC1B,KAAA;AAEA,wGACO,MAAMe,YAAAA,GAAe;IAAEC,MAAAA,EAAQpC,SAAAA,CAAUM,cAAAA,CAAeC,QAAQ,EAAE,UAAA;AAAY;MACxE8B,cAAAA,GAAiB;AAAE,IAAA,GAAGF,YAAY;IAAEG,QAAAA,EAAUtC,SAAAA,CAAUM,cAAAA,CAAeC,QAAQ,EAAE,YAAA;AAAc;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BlueprintScreen } from '@cratis/scene.model';
|
|
2
|
+
export interface InventoryScreenDefinition extends BlueprintScreen {
|
|
3
|
+
template: string;
|
|
4
|
+
description: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const inventoryScreenDefinitions: InventoryScreenDefinition[];
|
|
7
|
+
//# sourceMappingURL=inventoryScreenSet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventoryScreenSet.d.ts","sourceRoot":"","sources":["../../inventoryScreenSet.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,MAAM,WAAW,yBAA0B,SAAQ,eAAe;IAC9D,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACvB;AAMD,eAAO,MAAM,0BAA0B,EAAE,yBAAyB,EASjE,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/**
|
|
4
|
+
* The screens the blueprint brings, in navigation order. This one list is what the manifest's screen set, the `Screen` instances, the application structure
|
|
5
|
+
* and the navigation are all derived from, so they cannot disagree about which screens exist or where they sit.
|
|
6
|
+
*/ const inventoryScreenDefinitions = [
|
|
7
|
+
{
|
|
8
|
+
name: 'inventory.dashboard',
|
|
9
|
+
title: 'Dashboard',
|
|
10
|
+
template: 'InventoryDashboard',
|
|
11
|
+
order: 0,
|
|
12
|
+
description: 'Low stock, stock value, top movers and recent movements.'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'inventory.items',
|
|
16
|
+
title: 'Items',
|
|
17
|
+
template: 'InventoryItemList',
|
|
18
|
+
order: 1,
|
|
19
|
+
description: 'Every item with its stock, low stock highlighted.'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'inventory.items.gallery',
|
|
23
|
+
title: 'Item gallery',
|
|
24
|
+
template: 'InventoryItemGallery',
|
|
25
|
+
parent: 'inventory.items',
|
|
26
|
+
order: 0,
|
|
27
|
+
description: 'Every item as a card with its picture.'
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'inventory.items.record',
|
|
31
|
+
title: 'Item',
|
|
32
|
+
template: 'InventoryItemPage',
|
|
33
|
+
parent: 'inventory.items',
|
|
34
|
+
description: 'One item with its stock by location, movement history and supplier.'
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'inventory.locations',
|
|
38
|
+
title: 'Locations',
|
|
39
|
+
template: 'InventoryLocations',
|
|
40
|
+
order: 2,
|
|
41
|
+
description: 'The location tree beside what is stored in the chosen location.'
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'inventory.movements',
|
|
45
|
+
title: 'Movements',
|
|
46
|
+
template: 'InventoryMovementList',
|
|
47
|
+
order: 3,
|
|
48
|
+
description: 'Every check in, check out, transfer and adjustment.'
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'inventory.movements.check',
|
|
52
|
+
title: 'Check in or out',
|
|
53
|
+
template: 'InventoryCheckInOut',
|
|
54
|
+
parent: 'inventory.movements',
|
|
55
|
+
description: 'Scan or search an item and check it in or out, from a phone.'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'inventory.suppliers',
|
|
59
|
+
title: 'Suppliers',
|
|
60
|
+
template: 'InventorySupplierList',
|
|
61
|
+
order: 4,
|
|
62
|
+
description: 'The suppliers items are bought from.'
|
|
63
|
+
}
|
|
64
|
+
];
|
|
65
|
+
|
|
66
|
+
export { inventoryScreenDefinitions };
|
|
67
|
+
//# sourceMappingURL=inventoryScreenSet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventoryScreenSet.js","sources":["../../inventoryScreenSet.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { BlueprintScreen } from '@cratis/scene.model';\n\n/** One ready-to-use screen: the qualified name that is also its place in the application (`inventory.items.record` is the `record` feature of `items` in the `inventory` module). */\nexport interface InventoryScreenDefinition extends BlueprintScreen {\n template: string;\n description: string;\n}\n\n/**\n * The screens the blueprint brings, in navigation order. This one list is what the manifest's screen set, the `Screen` instances, the application structure\n * and the navigation are all derived from, so they cannot disagree about which screens exist or where they sit.\n */\nexport const inventoryScreenDefinitions: InventoryScreenDefinition[] = [\n { name: 'inventory.dashboard', title: 'Dashboard', template: 'InventoryDashboard', order: 0, description: 'Low stock, stock value, top movers and recent movements.' },\n { name: 'inventory.items', title: 'Items', template: 'InventoryItemList', order: 1, description: 'Every item with its stock, low stock highlighted.' },\n { name: 'inventory.items.gallery', title: 'Item gallery', template: 'InventoryItemGallery', parent: 'inventory.items', order: 0, description: 'Every item as a card with its picture.' },\n { name: 'inventory.items.record', title: 'Item', template: 'InventoryItemPage', parent: 'inventory.items', description: 'One item with its stock by location, movement history and supplier.' },\n { name: 'inventory.locations', title: 'Locations', template: 'InventoryLocations', order: 2, description: 'The location tree beside what is stored in the chosen location.' },\n { name: 'inventory.movements', title: 'Movements', template: 'InventoryMovementList', order: 3, description: 'Every check in, check out, transfer and adjustment.' },\n { name: 'inventory.movements.check', title: 'Check in or out', template: 'InventoryCheckInOut', parent: 'inventory.movements', description: 'Scan or search an item and check it in or out, from a phone.' },\n { name: 'inventory.suppliers', title: 'Suppliers', template: 'InventorySupplierList', order: 4, description: 'The suppliers items are bought from.' },\n];\n"],"names":["inventoryScreenDefinitions","name","title","template","order","description","parent"],"mappings":"AAAA;AACA;AAUA;;;UAIaA,0BAAAA,GAA0D;AACnE,IAAA;QAAEC,IAAAA,EAAM,qBAAA;QAAuBC,KAAAA,EAAO,WAAA;QAAaC,QAAAA,EAAU,oBAAA;QAAsBC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAA2D,KAAA;AACrK,IAAA;QAAEJ,IAAAA,EAAM,iBAAA;QAAmBC,KAAAA,EAAO,OAAA;QAASC,QAAAA,EAAU,mBAAA;QAAqBC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAAoD,KAAA;AACrJ,IAAA;QAAEJ,IAAAA,EAAM,yBAAA;QAA2BC,KAAAA,EAAO,cAAA;QAAgBC,QAAAA,EAAU,sBAAA;QAAwBG,MAAAA,EAAQ,iBAAA;QAAmBF,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAAyC,KAAA;AACvL,IAAA;QAAEJ,IAAAA,EAAM,wBAAA;QAA0BC,KAAAA,EAAO,MAAA;QAAQC,QAAAA,EAAU,mBAAA;QAAqBG,MAAAA,EAAQ,iBAAA;QAAmBD,WAAAA,EAAa;AAAsE,KAAA;AAC9L,IAAA;QAAEJ,IAAAA,EAAM,qBAAA;QAAuBC,KAAAA,EAAO,WAAA;QAAaC,QAAAA,EAAU,oBAAA;QAAsBC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAAkE,KAAA;AAC5K,IAAA;QAAEJ,IAAAA,EAAM,qBAAA;QAAuBC,KAAAA,EAAO,WAAA;QAAaC,QAAAA,EAAU,uBAAA;QAAyBC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAAsD,KAAA;AACnK,IAAA;QAAEJ,IAAAA,EAAM,2BAAA;QAA6BC,KAAAA,EAAO,iBAAA;QAAmBC,QAAAA,EAAU,qBAAA;QAAuBG,MAAAA,EAAQ,qBAAA;QAAuBD,WAAAA,EAAa;AAA+D,KAAA;AAC3M,IAAA;QAAEJ,IAAAA,EAAM,qBAAA;QAAuBC,KAAAA,EAAO,WAAA;QAAaC,QAAAA,EAAU,uBAAA;QAAyBC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAAuC;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../manifest.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAYhE,eAAO,MAAM,0BAA0B,EAAE,YAyBxC,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { PackageKind } from '@cratis/scene.model';
|
|
2
|
+
import { inventoryBlueprintName } from './packageName.js';
|
|
3
|
+
import { inventoryScreenDefinitions } from './inventoryScreenSet.js';
|
|
4
|
+
import { inventoryScreenTemplates } from './templates/index.js';
|
|
5
|
+
import { inventoryQuickCreateDialogs } from './templates/formTemplates.js';
|
|
6
|
+
|
|
7
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
8
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
9
|
+
const description = 'Items, locations, movements and suppliers for a warehouse: a dashboard, item lists and cards, item pages, a location tree, stock adjustment and check in and out.';
|
|
10
|
+
/**
|
|
11
|
+
* This blueprint's declaration. A domain blueprint depends on the foundation set (`Cratis.Blueprint.Default`) and reuses its layouts, slots,
|
|
12
|
+
* components and themes - it ships none of its own - and adds what is specific to the domain: templates, a ready-to-use screen set, sample data
|
|
13
|
+
* and thumbnails. The package `version` is the blueprint's version: it is what a template reference pins and what "update available" compares.
|
|
14
|
+
*/ const inventoryBlueprintManifest = {
|
|
15
|
+
name: inventoryBlueprintName,
|
|
16
|
+
version: '1.0.0',
|
|
17
|
+
kind: PackageKind.Blueprint,
|
|
18
|
+
dependencies: [
|
|
19
|
+
{
|
|
20
|
+
name: 'Cratis.Blueprint.Default',
|
|
21
|
+
versionRange: '^1.0.0'
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
components: [],
|
|
25
|
+
layouts: [],
|
|
26
|
+
screenTemplates: inventoryScreenTemplates.map((template)=>template.name),
|
|
27
|
+
dialogTemplates: inventoryQuickCreateDialogs.map((template)=>template.name),
|
|
28
|
+
themes: [],
|
|
29
|
+
displayName: 'Inventory and Assets',
|
|
30
|
+
description,
|
|
31
|
+
module: '@cratis/scene.blueprint.inventory',
|
|
32
|
+
license: 'MIT',
|
|
33
|
+
licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',
|
|
34
|
+
sampleData: [
|
|
35
|
+
{
|
|
36
|
+
id: 'inventory-warehouse',
|
|
37
|
+
title: 'Inventory · Warehouse',
|
|
38
|
+
locale: 'en-GB',
|
|
39
|
+
path: 'sampleData/inventory-warehouse.json'
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
blueprint: {
|
|
43
|
+
domain: 'inventory',
|
|
44
|
+
description,
|
|
45
|
+
thumbnail: 'thumbnails/inventory.svg',
|
|
46
|
+
screenSet: inventoryScreenDefinitions.map(({ name, title, description: screenDescription, template, parent, order })=>({
|
|
47
|
+
name,
|
|
48
|
+
title,
|
|
49
|
+
description: screenDescription,
|
|
50
|
+
template,
|
|
51
|
+
...parent === undefined ? {} : {
|
|
52
|
+
parent
|
|
53
|
+
},
|
|
54
|
+
...order === undefined ? {} : {
|
|
55
|
+
order
|
|
56
|
+
}
|
|
57
|
+
})),
|
|
58
|
+
defaultSampleData: 'inventory-warehouse'
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export { inventoryBlueprintManifest };
|
|
63
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.js","sources":["../../manifest.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PackageKind, ScenePackage } from '@cratis/scene.model';\nimport { inventoryBlueprintName } from './packageName';\nimport { inventoryScreenDefinitions } from './inventoryScreenSet';\nimport { inventoryDialogTemplates, inventoryScreenTemplates } from './templates';\n\nconst description = 'Items, locations, movements and suppliers for a warehouse: a dashboard, item lists and cards, item pages, a location tree, stock adjustment and check in and out.';\n\n/**\n * This blueprint's declaration. A domain blueprint depends on the foundation set (`Cratis.Blueprint.Default`) and reuses its layouts, slots,\n * components and themes - it ships none of its own - and adds what is specific to the domain: templates, a ready-to-use screen set, sample data\n * and thumbnails. The package `version` is the blueprint's version: it is what a template reference pins and what \"update available\" compares.\n */\nexport const inventoryBlueprintManifest: ScenePackage = {\n name: inventoryBlueprintName,\n version: '1.0.0',\n kind: PackageKind.Blueprint,\n dependencies: [{ name: 'Cratis.Blueprint.Default', versionRange: '^1.0.0' }],\n components: [],\n layouts: [],\n screenTemplates: inventoryScreenTemplates.map(template => template.name),\n dialogTemplates: inventoryDialogTemplates.map(template => template.name),\n themes: [],\n displayName: 'Inventory and Assets',\n description,\n module: '@cratis/scene.blueprint.inventory',\n license: 'MIT',\n licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',\n sampleData: [{ id: 'inventory-warehouse', title: 'Inventory · Warehouse', locale: 'en-GB', path: 'sampleData/inventory-warehouse.json' }],\n blueprint: {\n domain: 'inventory',\n description,\n thumbnail: 'thumbnails/inventory.svg',\n screenSet: inventoryScreenDefinitions.map(({ name, title, description: screenDescription, template, parent, order }) => ({\n name, title, description: screenDescription, template, ...(parent === undefined ? {} : { parent }), ...(order === undefined ? {} : { order }),\n })),\n defaultSampleData: 'inventory-warehouse',\n },\n};\n"],"names":["description","inventoryBlueprintManifest","name","inventoryBlueprintName","version","kind","PackageKind","Blueprint","dependencies","versionRange","components","layouts","screenTemplates","inventoryScreenTemplates","map","template","dialogTemplates","inventoryDialogTemplates","themes","displayName","module","license","licenseUrl","sampleData","id","title","locale","path","blueprint","domain","thumbnail","screenSet","inventoryScreenDefinitions","screenDescription","parent","order","undefined","defaultSampleData"],"mappings":";;;;;;AAAA;AACA;AAOA,MAAMA,WAAAA,GAAc,mKAAA;AAEpB;;;;UAKaC,0BAAAA,GAA2C;IACpDC,IAAAA,EAAMC,sBAAAA;IACNC,OAAAA,EAAS,OAAA;AACTC,IAAAA,IAAAA,EAAMC,YAAYC,SAAS;IAC3BC,YAAAA,EAAc;AAAC,QAAA;YAAEN,IAAAA,EAAM,0BAAA;YAA4BO,YAAAA,EAAc;AAAS;AAAE,KAAA;AAC5EC,IAAAA,UAAAA,EAAY,EAAE;AACdC,IAAAA,OAAAA,EAAS,EAAE;AACXC,IAAAA,eAAAA,EAAiBC,yBAAyBC,GAAG,CAACC,CAAAA,QAAAA,GAAYA,SAASb,IAAI,CAAA;AACvEc,IAAAA,eAAAA,EAAiBC,4BAAyBH,GAAG,CAACC,CAAAA,QAAAA,GAAYA,SAASb,IAAI,CAAA;AACvEgB,IAAAA,MAAAA,EAAQ,EAAE;IACVC,WAAAA,EAAa,sBAAA;AACbnB,IAAAA,WAAAA;IACAoB,MAAAA,EAAQ,mCAAA;IACRC,OAAAA,EAAS,KAAA;IACTC,UAAAA,EAAY,mDAAA;IACZC,UAAAA,EAAY;AAAC,QAAA;YAAEC,EAAAA,EAAI,qBAAA;YAAuBC,KAAAA,EAAO,uBAAA;YAAyBC,MAAAA,EAAQ,OAAA;YAASC,IAAAA,EAAM;AAAsC;AAAE,KAAA;IACzIC,SAAAA,EAAW;QACPC,MAAAA,EAAQ,WAAA;AACR7B,QAAAA,WAAAA;QACA8B,SAAAA,EAAW,0BAAA;AACXC,QAAAA,SAAAA,EAAWC,2BAA2BlB,GAAG,CAAC,CAAC,EAAEZ,IAAI,EAAEuB,KAAK,EAAEzB,aAAaiC,iBAAiB,EAAElB,QAAQ,EAAEmB,MAAM,EAAEC,KAAK,EAAE,IAAM;AACrHjC,gBAAAA,IAAAA;AAAMuB,gBAAAA,KAAAA;gBAAOzB,WAAAA,EAAaiC,iBAAAA;AAAmBlB,gBAAAA,QAAAA;gBAAU,GAAImB,MAAAA,KAAWE,SAAAA,GAAY,EAAC,GAAI;AAAEF,oBAAAA;iBAAQ;gBAAG,GAAIC,KAAAA,KAAUC,SAAAA,GAAY,EAAC,GAAI;AAAED,oBAAAA;;aACzI,CAAA,CAAA;QACAE,iBAAAA,EAAmB;AACvB;AACJ;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ApplicationStructure, NavigationModel } from '@cratis/scene.model';
|
|
2
|
+
export declare const inventoryModule = "inventory";
|
|
3
|
+
export declare const inventoryStructure: ApplicationStructure;
|
|
4
|
+
export declare const inventoryNavigation: NavigationModel;
|
|
5
|
+
//# sourceMappingURL=navigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../navigation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAA8C,MAAM,qBAAqB,CAAC;AAIxH,eAAO,MAAM,eAAe,cAAc,CAAC;AAM3C,eAAO,MAAM,kBAAkB,EAAE,oBAgB7B,CAAC;AAML,eAAO,MAAM,mBAAmB,EAAE,eAwBjC,CAAC"}
|