@cratis/scene.model 3.7.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/elements/SceneElement.js +3 -5
- package/dist/cjs/elements/SceneElement.js.map +1 -1
- package/dist/cjs/forms/Form.js +2 -1
- package/dist/cjs/forms/Form.js.map +1 -1
- package/dist/cjs/index.js +46 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interactions/ApplicationTriggerInteractionTrigger.js +10 -0
- package/dist/cjs/interactions/ApplicationTriggerInteractionTrigger.js.map +1 -0
- package/dist/cjs/interactions/Behavior.js +12 -0
- package/dist/cjs/interactions/Behavior.js.map +1 -0
- package/dist/cjs/interactions/BuiltInInteractionTrigger.js +10 -0
- package/dist/cjs/interactions/BuiltInInteractionTrigger.js.map +1 -0
- package/dist/cjs/interactions/CloseDialogAction.js +10 -0
- package/dist/cjs/interactions/CloseDialogAction.js.map +1 -0
- package/dist/cjs/interactions/ConfirmAction.js +11 -0
- package/dist/cjs/interactions/ConfirmAction.js.map +1 -0
- package/dist/cjs/interactions/EventInteractionTrigger.js +10 -0
- package/dist/cjs/interactions/EventInteractionTrigger.js.map +1 -0
- package/dist/cjs/interactions/ExecuteCommandAction.js +11 -0
- package/dist/cjs/interactions/ExecuteCommandAction.js.map +1 -0
- package/dist/cjs/interactions/InteractionAction.js +14 -0
- package/dist/cjs/interactions/InteractionAction.js.map +1 -0
- package/dist/cjs/interactions/InteractionActionKind.js +28 -0
- package/dist/cjs/interactions/InteractionActionKind.js.map +1 -0
- package/dist/cjs/interactions/InteractionArgument.js +11 -0
- package/dist/cjs/interactions/InteractionArgument.js.map +1 -0
- package/dist/cjs/interactions/InteractionBinding.js +12 -0
- package/dist/cjs/interactions/InteractionBinding.js.map +1 -0
- package/dist/cjs/interactions/InteractionMessage.js +12 -0
- package/dist/cjs/interactions/InteractionMessage.js.map +1 -0
- package/dist/cjs/interactions/InteractionTriggerKind.js +24 -0
- package/dist/cjs/interactions/InteractionTriggerKind.js.map +1 -0
- package/dist/cjs/interactions/IntervalInteractionTrigger.js +10 -0
- package/dist/cjs/interactions/IntervalInteractionTrigger.js.map +1 -0
- package/dist/cjs/interactions/NavigateAction.js +11 -0
- package/dist/cjs/interactions/NavigateAction.js.map +1 -0
- package/dist/cjs/interactions/NavigateBackAction.js +10 -0
- package/dist/cjs/interactions/NavigateBackAction.js.map +1 -0
- package/dist/cjs/interactions/NotificationLevel.js +17 -0
- package/dist/cjs/interactions/NotificationLevel.js.map +1 -0
- package/dist/cjs/interactions/NotifyAction.js +12 -0
- package/dist/cjs/interactions/NotifyAction.js.map +1 -0
- package/dist/cjs/interactions/OpenDialogAction.js +11 -0
- package/dist/cjs/interactions/OpenDialogAction.js.map +1 -0
- package/dist/cjs/interactions/RaiseTriggerAction.js +11 -0
- package/dist/cjs/interactions/RaiseTriggerAction.js.map +1 -0
- package/dist/cjs/interactions/RefreshQueryAction.js +11 -0
- package/dist/cjs/interactions/RefreshQueryAction.js.map +1 -0
- package/dist/cjs/interactions/SetStateAction.js +12 -0
- package/dist/cjs/interactions/SetStateAction.js.map +1 -0
- package/dist/cjs/layouts/Layout.js +2 -1
- package/dist/cjs/layouts/Layout.js.map +1 -1
- package/dist/cjs/profiles/UiProfile.js.map +1 -1
- package/dist/cjs/screens/DialogTemplate.js +2 -1
- package/dist/cjs/screens/DialogTemplate.js.map +1 -1
- package/dist/cjs/screens/Screen.js +2 -1
- package/dist/cjs/screens/Screen.js.map +1 -1
- package/dist/cjs/screens/ScreenTemplate.js +2 -1
- package/dist/cjs/screens/ScreenTemplate.js.map +1 -1
- package/dist/cjs/sizeClasses/TargetSizeClass.js +20 -0
- package/dist/cjs/sizeClasses/TargetSizeClass.js.map +1 -0
- package/dist/esm/elements/SceneElement.d.ts +2 -0
- package/dist/esm/elements/SceneElement.d.ts.map +1 -1
- package/dist/esm/elements/SceneElement.js +3 -5
- package/dist/esm/elements/SceneElement.js.map +1 -1
- package/dist/esm/forms/Form.d.ts +2 -0
- package/dist/esm/forms/Form.d.ts.map +1 -1
- package/dist/esm/forms/Form.js +2 -1
- package/dist/esm/forms/Form.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +23 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interactions/ApplicationTriggerInteractionTrigger.d.ts +6 -0
- package/dist/esm/interactions/ApplicationTriggerInteractionTrigger.d.ts.map +1 -0
- package/dist/esm/interactions/ApplicationTriggerInteractionTrigger.js +8 -0
- package/dist/esm/interactions/ApplicationTriggerInteractionTrigger.js.map +1 -0
- package/dist/esm/interactions/Behavior.d.ts +8 -0
- package/dist/esm/interactions/Behavior.d.ts.map +1 -0
- package/dist/esm/interactions/Behavior.js +10 -0
- package/dist/esm/interactions/Behavior.js.map +1 -0
- package/dist/esm/interactions/BuiltInInteractionTrigger.d.ts +7 -0
- package/dist/esm/interactions/BuiltInInteractionTrigger.d.ts.map +1 -0
- package/dist/esm/interactions/BuiltInInteractionTrigger.js +8 -0
- package/dist/esm/interactions/BuiltInInteractionTrigger.js.map +1 -0
- package/dist/esm/interactions/CloseDialogAction.d.ts +5 -0
- package/dist/esm/interactions/CloseDialogAction.d.ts.map +1 -0
- package/dist/esm/interactions/CloseDialogAction.js +8 -0
- package/dist/esm/interactions/CloseDialogAction.js.map +1 -0
- package/dist/esm/interactions/ConfirmAction.d.ts +7 -0
- package/dist/esm/interactions/ConfirmAction.d.ts.map +1 -0
- package/dist/esm/interactions/ConfirmAction.js +9 -0
- package/dist/esm/interactions/ConfirmAction.js.map +1 -0
- package/dist/esm/interactions/EventInteractionTrigger.d.ts +6 -0
- package/dist/esm/interactions/EventInteractionTrigger.d.ts.map +1 -0
- package/dist/esm/interactions/EventInteractionTrigger.js +8 -0
- package/dist/esm/interactions/EventInteractionTrigger.js.map +1 -0
- package/dist/esm/interactions/ExecuteCommandAction.d.ts +6 -0
- package/dist/esm/interactions/ExecuteCommandAction.d.ts.map +1 -0
- package/dist/esm/interactions/ExecuteCommandAction.js +9 -0
- package/dist/esm/interactions/ExecuteCommandAction.js.map +1 -0
- package/dist/esm/interactions/InteractionAction.d.ts +11 -0
- package/dist/esm/interactions/InteractionAction.d.ts.map +1 -0
- package/dist/esm/interactions/InteractionAction.js +12 -0
- package/dist/esm/interactions/InteractionAction.js.map +1 -0
- package/dist/esm/interactions/InteractionActionKind.d.ts +13 -0
- package/dist/esm/interactions/InteractionActionKind.d.ts.map +1 -0
- package/dist/esm/interactions/InteractionActionKind.js +26 -0
- package/dist/esm/interactions/InteractionActionKind.js.map +1 -0
- package/dist/esm/interactions/InteractionArgument.d.ts +7 -0
- package/dist/esm/interactions/InteractionArgument.d.ts.map +1 -0
- package/dist/esm/interactions/InteractionArgument.js +9 -0
- package/dist/esm/interactions/InteractionArgument.js.map +1 -0
- package/dist/esm/interactions/InteractionBinding.d.ts +10 -0
- package/dist/esm/interactions/InteractionBinding.d.ts.map +1 -0
- package/dist/esm/interactions/InteractionBinding.js +10 -0
- package/dist/esm/interactions/InteractionBinding.js.map +1 -0
- package/dist/esm/interactions/InteractionMessage.d.ts +8 -0
- package/dist/esm/interactions/InteractionMessage.d.ts.map +1 -0
- package/dist/esm/interactions/InteractionMessage.js +10 -0
- package/dist/esm/interactions/InteractionMessage.js.map +1 -0
- package/dist/esm/interactions/InteractionTrigger.d.ts +3 -0
- package/dist/esm/interactions/InteractionTrigger.d.ts.map +1 -0
- package/dist/esm/interactions/InteractionTrigger.js +2 -0
- package/dist/esm/interactions/InteractionTrigger.js.map +1 -0
- package/dist/esm/interactions/InteractionTriggerKind.d.ts +12 -0
- package/dist/esm/interactions/InteractionTriggerKind.d.ts.map +1 -0
- package/dist/esm/interactions/InteractionTriggerKind.js +22 -0
- package/dist/esm/interactions/InteractionTriggerKind.js.map +1 -0
- package/dist/esm/interactions/IntervalInteractionTrigger.d.ts +6 -0
- package/dist/esm/interactions/IntervalInteractionTrigger.d.ts.map +1 -0
- package/dist/esm/interactions/IntervalInteractionTrigger.js +8 -0
- package/dist/esm/interactions/IntervalInteractionTrigger.js.map +1 -0
- package/dist/esm/interactions/NavigateAction.d.ts +6 -0
- package/dist/esm/interactions/NavigateAction.d.ts.map +1 -0
- package/dist/esm/interactions/NavigateAction.js +9 -0
- package/dist/esm/interactions/NavigateAction.js.map +1 -0
- package/dist/esm/interactions/NavigateBackAction.d.ts +5 -0
- package/dist/esm/interactions/NavigateBackAction.d.ts.map +1 -0
- package/dist/esm/interactions/NavigateBackAction.js +8 -0
- package/dist/esm/interactions/NavigateBackAction.js.map +1 -0
- package/dist/esm/interactions/NotificationLevel.d.ts +6 -0
- package/dist/esm/interactions/NotificationLevel.d.ts.map +1 -0
- package/dist/esm/interactions/NotificationLevel.js +15 -0
- package/dist/esm/interactions/NotificationLevel.js.map +1 -0
- package/dist/esm/interactions/NotifyAction.d.ts +9 -0
- package/dist/esm/interactions/NotifyAction.d.ts.map +1 -0
- package/dist/esm/interactions/NotifyAction.js +10 -0
- package/dist/esm/interactions/NotifyAction.js.map +1 -0
- package/dist/esm/interactions/OpenDialogAction.d.ts +6 -0
- package/dist/esm/interactions/OpenDialogAction.d.ts.map +1 -0
- package/dist/esm/interactions/OpenDialogAction.js +9 -0
- package/dist/esm/interactions/OpenDialogAction.js.map +1 -0
- package/dist/esm/interactions/RaiseTriggerAction.d.ts +6 -0
- package/dist/esm/interactions/RaiseTriggerAction.d.ts.map +1 -0
- package/dist/esm/interactions/RaiseTriggerAction.js +9 -0
- package/dist/esm/interactions/RaiseTriggerAction.js.map +1 -0
- package/dist/esm/interactions/RefreshQueryAction.d.ts +6 -0
- package/dist/esm/interactions/RefreshQueryAction.d.ts.map +1 -0
- package/dist/esm/interactions/RefreshQueryAction.js +9 -0
- package/dist/esm/interactions/RefreshQueryAction.js.map +1 -0
- package/dist/esm/interactions/SetStateAction.d.ts +8 -0
- package/dist/esm/interactions/SetStateAction.d.ts.map +1 -0
- package/dist/esm/interactions/SetStateAction.js +10 -0
- package/dist/esm/interactions/SetStateAction.js.map +1 -0
- package/dist/esm/interactions/index.d.ts +24 -0
- package/dist/esm/interactions/index.d.ts.map +1 -0
- package/dist/esm/interactions/index.js +24 -0
- package/dist/esm/interactions/index.js.map +1 -0
- package/dist/esm/layouts/Layout.d.ts +2 -0
- package/dist/esm/layouts/Layout.d.ts.map +1 -1
- package/dist/esm/layouts/Layout.js +2 -1
- package/dist/esm/layouts/Layout.js.map +1 -1
- package/dist/esm/profiles/UiProfile.d.ts +2 -2
- package/dist/esm/profiles/UiProfile.d.ts.map +1 -1
- package/dist/esm/profiles/UiProfile.js.map +1 -1
- package/dist/esm/screens/DialogTemplate.d.ts +2 -0
- package/dist/esm/screens/DialogTemplate.d.ts.map +1 -1
- package/dist/esm/screens/DialogTemplate.js +2 -1
- package/dist/esm/screens/DialogTemplate.js.map +1 -1
- package/dist/esm/screens/Screen.d.ts +2 -0
- package/dist/esm/screens/Screen.d.ts.map +1 -1
- package/dist/esm/screens/Screen.js +2 -1
- package/dist/esm/screens/Screen.js.map +1 -1
- package/dist/esm/screens/ScreenTemplate.d.ts +2 -0
- package/dist/esm/screens/ScreenTemplate.d.ts.map +1 -1
- package/dist/esm/screens/ScreenTemplate.js +2 -1
- package/dist/esm/screens/ScreenTemplate.js.map +1 -1
- package/dist/esm/sizeClasses/TargetSizeClass.d.ts +6 -0
- package/dist/esm/sizeClasses/TargetSizeClass.d.ts.map +1 -0
- package/dist/esm/sizeClasses/TargetSizeClass.js +18 -0
- package/dist/esm/sizeClasses/TargetSizeClass.js.map +1 -0
- package/dist/esm/sizeClasses/index.d.ts +1 -0
- package/dist/esm/sizeClasses/index.d.ts.map +1 -1
- package/dist/esm/sizeClasses/index.js +1 -0
- package/dist/esm/sizeClasses/index.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/elements/SceneElement.ts +8 -1
- package/forms/Form.ts +7 -1
- package/index.ts +1 -0
- package/interactions/ApplicationTriggerInteractionTrigger.ts +13 -0
- package/interactions/Behavior.ts +19 -0
- package/interactions/BuiltInInteractionTrigger.ts +14 -0
- package/interactions/CloseDialogAction.ts +11 -0
- package/interactions/ConfirmAction.ts +14 -0
- package/interactions/EventInteractionTrigger.ts +13 -0
- package/interactions/ExecuteCommandAction.ts +13 -0
- package/interactions/InteractionAction.ts +22 -0
- package/interactions/InteractionActionKind.ts +24 -0
- package/interactions/InteractionArgument.ts +14 -0
- package/interactions/InteractionBinding.ts +17 -0
- package/interactions/InteractionMessage.ts +16 -0
- package/interactions/InteractionTrigger.ts +10 -0
- package/interactions/InteractionTriggerKind.ts +20 -0
- package/interactions/IntervalInteractionTrigger.ts +13 -0
- package/interactions/NavigateAction.ts +13 -0
- package/interactions/NavigateBackAction.ts +11 -0
- package/interactions/NotificationLevel.ts +13 -0
- package/interactions/NotifyAction.ts +16 -0
- package/interactions/OpenDialogAction.ts +13 -0
- package/interactions/RaiseTriggerAction.ts +13 -0
- package/interactions/RefreshQueryAction.ts +13 -0
- package/interactions/SetStateAction.ts +15 -0
- package/interactions/index.ts +26 -0
- package/layouts/Layout.ts +7 -1
- package/package.json +1 -1
- package/profiles/UiProfile.ts +2 -2
- package/screens/DialogTemplate.ts +7 -0
- package/screens/Screen.ts +7 -1
- package/screens/ScreenTemplate.ts +7 -0
- package/sizeClasses/TargetSizeClass.ts +16 -0
- package/sizeClasses/index.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogTemplate.js","sources":["../../../screens/DialogTemplate.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 { SceneElement } from '../elements';\nimport { Arrangement, Slot } from '../layouts';\n\n/**\n * A reusable dialog structure — the same idea as a {@link ScreenTemplate}, for content that opens over an\n * application rather than sitting inside it.\n *\n * A dialog has no `fitsSlot` because it occupies no slot: it is an overlay, summoned by something rather\n * than placed by a containing layout. Everything else is the same, which is deliberate — a confirmation\n * dialog and a detail screen are both \"slots with an arrangement, filled with content\", and there is no\n * reason for an author to learn that twice.\n */\nexport interface DialogTemplate {\n /**\n * The template's name.\n */\n name: string;\n\n /**\n * The slots this template offers to whatever it contains, in declaration order.\n */\n slots: Slot[];\n\n /**\n * How this template's own `slots` position relative to each other. Absent for declaration order with\n * no further positioning.\n */\n arrangement?: Arrangement;\n\n /**\n * Content the template itself provides, keyed by slot name — a dialog's own chrome, such as its header\n * and button bar.\n */\n content?: Record<string, SceneElement[]>;\n\n /**\n * A human-readable name for a template picker, falling back to `name`.\n */\n displayName?: string;\n\n /**\n * A one-line description for a template picker.\n */\n description?: string;\n}\n\nexport const DialogTemplatePropertyNames: (keyof DialogTemplate)[] = [\n 'name',\n 'slots',\n 'arrangement',\n 'content',\n 'displayName',\n 'description',\n];\n"],"names":["DialogTemplatePropertyNames"],"mappings":";;AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"DialogTemplate.js","sources":["../../../screens/DialogTemplate.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 { SceneElement } from '../elements';\nimport { Arrangement, Slot } from '../layouts';\nimport { Behavior } from '../interactions';\n\n/**\n * A reusable dialog structure — the same idea as a {@link ScreenTemplate}, for content that opens over an\n * application rather than sitting inside it.\n *\n * A dialog has no `fitsSlot` because it occupies no slot: it is an overlay, summoned by something rather\n * than placed by a containing layout. Everything else is the same, which is deliberate — a confirmation\n * dialog and a detail screen are both \"slots with an arrangement, filled with content\", and there is no\n * reason for an author to learn that twice.\n */\nexport interface DialogTemplate {\n /**\n * The template's name.\n */\n name: string;\n\n /**\n * The slots this template offers to whatever it contains, in declaration order.\n */\n slots: Slot[];\n\n /**\n * How this template's own `slots` position relative to each other. Absent for declaration order with\n * no further positioning.\n */\n arrangement?: Arrangement;\n\n /**\n * Content the template itself provides, keyed by slot name — a dialog's own chrome, such as its header\n * and button bar.\n */\n content?: Record<string, SceneElement[]>;\n\n /**\n * A human-readable name for a template picker, falling back to `name`.\n */\n displayName?: string;\n\n /**\n * A one-line description for a template picker.\n */\n description?: string;\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n}\n\nexport const DialogTemplatePropertyNames: (keyof DialogTemplate)[] = [\n 'name',\n 'slots',\n 'arrangement',\n 'content',\n 'displayName',\n 'description',\n 'behaviors',\n];\n"],"names":["DialogTemplatePropertyNames"],"mappings":";;AAAA;AACA;MAsDaA,2BAAAA,GAAwD;AACjE,IAAA,MAAA;AACA,IAAA,OAAA;AACA,IAAA,aAAA;AACA,IAAA,SAAA;AACA,IAAA,aAAA;AACA,IAAA,aAAA;AACA,IAAA;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Screen.js","sources":["../../../screens/Screen.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 { SceneElement } from '../elements';\nimport { Form } from '../forms';\nimport { Contribution } from '../contributionPoints';\n\n/**\n * A named screen: the structure it fills, the content that fills it, the forms it hosts, and whatever it\n * contributes to contribution points elsewhere in the tree.\n *\n * A screen is an instance, not a shape. The shape comes from either the application's {@link Layout} — for\n * a screen that sits directly in the application shell — or a {@link ScreenTemplate}, for one nested\n * inside a module, feature or slice. Both declare slots; a screen only ever fills them.\n */\nexport interface Screen {\n /**\n * The screen's name.\n */\n name: string;\n\n /**\n * The resolved name of the application {@link Layout} this screen ultimately renders inside.\n */\n layout: string;\n\n /**\n * The content filling each slot, keyed by slot name.\n */\n slotContent: Record<string, SceneElement[]>;\n\n /**\n * The forms this screen hosts.\n */\n forms: Form[];\n\n /**\n * What this screen contributes to contribution points elsewhere in the tree.\n */\n contributions: Contribution[];\n\n /**\n * The resolved name of the {@link ScreenTemplate} this screen fills, or undefined when it fills the\n * `layout`'s own slots directly. The template's `fitsSlot` is what decides where it lands, so a screen\n * never has to state its own position.\n */\n screenTemplate?: string;\n}\n\nexport const ScreenPropertyNames: (keyof Screen)[] = ['name', 'layout', 'slotContent', 'forms', 'contributions', 'screenTemplate'];\n"],"names":["ScreenPropertyNames"],"mappings":";;AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"Screen.js","sources":["../../../screens/Screen.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 { SceneElement } from '../elements';\nimport { Form } from '../forms';\nimport { Contribution } from '../contributionPoints';\nimport { Behavior } from '../interactions';\n\n/**\n * A named screen: the structure it fills, the content that fills it, the forms it hosts, and whatever it\n * contributes to contribution points elsewhere in the tree.\n *\n * A screen is an instance, not a shape. The shape comes from either the application's {@link Layout} — for\n * a screen that sits directly in the application shell — or a {@link ScreenTemplate}, for one nested\n * inside a module, feature or slice. Both declare slots; a screen only ever fills them.\n */\nexport interface Screen {\n /**\n * The screen's name.\n */\n name: string;\n\n /**\n * The resolved name of the application {@link Layout} this screen ultimately renders inside.\n */\n layout: string;\n\n /**\n * The content filling each slot, keyed by slot name.\n */\n slotContent: Record<string, SceneElement[]>;\n\n /**\n * The forms this screen hosts.\n */\n forms: Form[];\n\n /**\n * What this screen contributes to contribution points elsewhere in the tree.\n */\n contributions: Contribution[];\n\n /**\n * The resolved name of the {@link ScreenTemplate} this screen fills, or undefined when it fills the\n * `layout`'s own slots directly. The template's `fitsSlot` is what decides where it lands, so a screen\n * never has to state its own position.\n */\n screenTemplate?: string;\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n}\n\nexport const ScreenPropertyNames: (keyof Screen)[] = ['name', 'layout', 'slotContent', 'forms', 'contributions', 'screenTemplate', 'behaviors'];\n"],"names":["ScreenPropertyNames"],"mappings":";;AAAA;AACA;MAsDaA,mBAAAA,GAAwC;AAAC,IAAA,MAAA;AAAQ,IAAA,QAAA;AAAU,IAAA,aAAA;AAAe,IAAA,OAAA;AAAS,IAAA,eAAA;AAAiB,IAAA,gBAAA;AAAkB,IAAA;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenTemplate.js","sources":["../../../screens/ScreenTemplate.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 { SceneElement } from '../elements';\nimport { Arrangement, Slot } from '../layouts';\n\n/**\n * A reusable screen structure that fills a named slot on whatever contains it, and offers slots of its\n * own for what it contains in turn.\n *\n * A {@link Layout} and a screen template are deliberately different things. A layout is the application's\n * base navigational look — the shell with its top bar, navigation and content region — and an application\n * has one. A screen template is what goes *inside* that shell, and an application has many: one per\n * module, feature or slice that needs a shape of its own.\n *\n * `fitsSlot` is what makes them compose. A module's screen template fits the application layout's content\n * slot; a feature's screen template fits a slot the module's template declares; a slice's fits one the\n * feature's declares. The same rule at every level, so nesting is arbitrarily deep without a second\n * mechanism — and a template always states where it belongs rather than being told by whatever happens to\n * host it.\n */\nexport interface ScreenTemplate {\n /**\n * The template's name, which a {@link Screen} refers to.\n */\n name: string;\n\n /**\n * The name of the slot on the containing {@link Layout} or screen template this one fills, or\n * undefined for a template that is placed explicitly rather than by declaration.\n */\n fitsSlot?: string;\n\n /**\n * The slots this template offers to whatever it contains, in declaration order.\n */\n slots: Slot[];\n\n /**\n * How this template's own `slots` position relative to each other — the same shape a {@link Layout}\n * uses, evaluated by the same engine. Absent for declaration order with no further positioning.\n */\n arrangement?: Arrangement;\n\n /**\n * Content the template itself provides, keyed by slot name — the chrome a template brings with it, as\n * opposed to what a {@link Screen} based on it fills in.\n */\n content?: Record<string, SceneElement[]>;\n\n /**\n * A human-readable name for a template picker, falling back to `name`.\n */\n displayName?: string;\n\n /**\n * A one-line description for a template picker.\n */\n description?: string;\n}\n\nexport const ScreenTemplatePropertyNames: (keyof ScreenTemplate)[] = [\n 'name',\n 'fitsSlot',\n 'slots',\n 'arrangement',\n 'content',\n 'displayName',\n 'description',\n];\n"],"names":["ScreenTemplatePropertyNames"],"mappings":";;AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"ScreenTemplate.js","sources":["../../../screens/ScreenTemplate.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 { SceneElement } from '../elements';\nimport { Arrangement, Slot } from '../layouts';\nimport { Behavior } from '../interactions';\n\n/**\n * A reusable screen structure that fills a named slot on whatever contains it, and offers slots of its\n * own for what it contains in turn.\n *\n * A {@link Layout} and a screen template are deliberately different things. A layout is the application's\n * base navigational look — the shell with its top bar, navigation and content region — and an application\n * has one. A screen template is what goes *inside* that shell, and an application has many: one per\n * module, feature or slice that needs a shape of its own.\n *\n * `fitsSlot` is what makes them compose. A module's screen template fits the application layout's content\n * slot; a feature's screen template fits a slot the module's template declares; a slice's fits one the\n * feature's declares. The same rule at every level, so nesting is arbitrarily deep without a second\n * mechanism — and a template always states where it belongs rather than being told by whatever happens to\n * host it.\n */\nexport interface ScreenTemplate {\n /**\n * The template's name, which a {@link Screen} refers to.\n */\n name: string;\n\n /**\n * The name of the slot on the containing {@link Layout} or screen template this one fills, or\n * undefined for a template that is placed explicitly rather than by declaration.\n */\n fitsSlot?: string;\n\n /**\n * The slots this template offers to whatever it contains, in declaration order.\n */\n slots: Slot[];\n\n /**\n * How this template's own `slots` position relative to each other — the same shape a {@link Layout}\n * uses, evaluated by the same engine. Absent for declaration order with no further positioning.\n */\n arrangement?: Arrangement;\n\n /**\n * Content the template itself provides, keyed by slot name — the chrome a template brings with it, as\n * opposed to what a {@link Screen} based on it fills in.\n */\n content?: Record<string, SceneElement[]>;\n\n /**\n * A human-readable name for a template picker, falling back to `name`.\n */\n displayName?: string;\n\n /**\n * A one-line description for a template picker.\n */\n description?: string;\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n}\n\nexport const ScreenTemplatePropertyNames: (keyof ScreenTemplate)[] = [\n 'name',\n 'fitsSlot',\n 'slots',\n 'arrangement',\n 'content',\n 'displayName',\n 'description',\n 'behaviors',\n];\n"],"names":["ScreenTemplatePropertyNames"],"mappings":";;AAAA;AACA;MAkEaA,2BAAAA,GAAwD;AACjE,IAAA,MAAA;AACA,IAAA,UAAA;AACA,IAAA,OAAA;AACA,IAAA,aAAA;AACA,IAAA,SAAA;AACA,IAAA,aAAA;AACA,IAAA,aAAA;AACA,IAAA;;;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
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
|
+
* Defines the size a deployment target assumes by default.
|
|
7
|
+
*
|
|
8
|
+
* Deliberately a different vocabulary from {@link WidthSizeClass} and {@link HeightSizeClass}. Those two form
|
|
9
|
+
* the matrix an arrangement resolves against, where the only distinction that matters is whether an axis is
|
|
10
|
+
* cramped. What a target assumes is a coarser, one-dimensional statement about the device - a desktop is not
|
|
11
|
+
* merely 'regular' - and it carries a third value because of it.
|
|
12
|
+
*/ var TargetSizeClass = /*#__PURE__*/ function(TargetSizeClass) {
|
|
13
|
+
TargetSizeClass["Compact"] = "Compact";
|
|
14
|
+
TargetSizeClass["Regular"] = "Regular";
|
|
15
|
+
TargetSizeClass["Expanded"] = "Expanded";
|
|
16
|
+
return TargetSizeClass;
|
|
17
|
+
}({});
|
|
18
|
+
|
|
19
|
+
exports.TargetSizeClass = TargetSizeClass;
|
|
20
|
+
//# sourceMappingURL=TargetSizeClass.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TargetSizeClass.js","sources":["../../../sizeClasses/TargetSizeClass.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\n/**\n * Defines the size a deployment target assumes by default.\n *\n * Deliberately a different vocabulary from {@link WidthSizeClass} and {@link HeightSizeClass}. Those two form\n * the matrix an arrangement resolves against, where the only distinction that matters is whether an axis is\n * cramped. What a target assumes is a coarser, one-dimensional statement about the device - a desktop is not\n * merely 'regular' - and it carries a third value because of it.\n */\nexport enum TargetSizeClass {\n Compact = 'Compact',\n Regular = 'Regular',\n Expanded = 'Expanded'\n}\n"],"names":["TargetSizeClass"],"mappings":";;AAAA;AACA;AAEA;;;;;;;IAQO,IAAKA,eAAAA,iBAAAA,SAAAA,eAAAA,EAAAA;;;;AAAAA,IAAAA,OAAAA,eAAAA;AAIX,CAAA,CAAA,EAAA;;"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { Behavior } from '../interactions';
|
|
1
2
|
export interface SceneElement {
|
|
2
3
|
id: string;
|
|
3
4
|
properties: Record<string, unknown>;
|
|
5
|
+
behaviors?: Behavior[];
|
|
4
6
|
}
|
|
5
7
|
export declare const SceneElementPropertyNames: (keyof SceneElement)[];
|
|
6
8
|
//# sourceMappingURL=SceneElement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SceneElement.d.ts","sourceRoot":"","sources":["../../../elements/SceneElement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SceneElement.d.ts","sourceRoot":"","sources":["../../../elements/SceneElement.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAM3C,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAKpC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC1B;AAED,eAAO,MAAM,yBAAyB,EAAE,CAAC,MAAM,YAAY,CAAC,EAAsC,CAAC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
// Copyright (c) Cratis. All rights reserved.
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
-
|
|
4
|
-
* The root of every node in a Scene element tree. Named `SceneElement` rather than `Element` to avoid
|
|
5
|
-
* colliding with the DOM's own global `Element` type, which every consumer of this package also has in scope.
|
|
6
|
-
*/ const SceneElementPropertyNames = [
|
|
3
|
+
const SceneElementPropertyNames = [
|
|
7
4
|
'id',
|
|
8
|
-
'properties'
|
|
5
|
+
'properties',
|
|
6
|
+
'behaviors'
|
|
9
7
|
];
|
|
10
8
|
|
|
11
9
|
export { SceneElementPropertyNames };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SceneElement.js","sources":["../../../elements/SceneElement.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\n/**\n * The root of every node in a Scene element tree. Named `SceneElement` rather than `Element` to avoid\n * colliding with the DOM's own global `Element` type, which every consumer of this package also has in scope.\n */\nexport interface SceneElement {\n id: string;\n properties: Record<string, unknown>;\n}\n\nexport const SceneElementPropertyNames: (keyof SceneElement)[] = ['id', 'properties'];\n"],"names":["SceneElementPropertyNames"],"mappings":"AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"SceneElement.js","sources":["../../../elements/SceneElement.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 { Behavior } from '../interactions';\n\n/**\n * The root of every node in a Scene element tree. Named `SceneElement` rather than `Element` to avoid\n * colliding with the DOM's own global `Element` type, which every consumer of this package also has in scope.\n */\nexport interface SceneElement {\n id: string;\n properties: Record<string, unknown>;\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n}\n\nexport const SceneElementPropertyNames: (keyof SceneElement)[] = ['id', 'properties', 'behaviors'];\n"],"names":["SceneElementPropertyNames"],"mappings":"AAAA;AACA;MAkBaA,yBAAAA,GAAoD;AAAC,IAAA,IAAA;AAAM,IAAA,YAAA;AAAc,IAAA;;;"}
|
package/dist/esm/forms/Form.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { PopulateSource } from './PopulateSource';
|
|
2
2
|
import { FormField } from './FormField';
|
|
3
|
+
import { Behavior } from '../interactions';
|
|
3
4
|
export interface Form {
|
|
4
5
|
name: string;
|
|
5
6
|
forCommand: string;
|
|
6
7
|
populateSource?: PopulateSource;
|
|
7
8
|
fields: FormField[];
|
|
9
|
+
behaviors?: Behavior[];
|
|
8
10
|
}
|
|
9
11
|
export declare const FormPropertyNames: (keyof Form)[];
|
|
10
12
|
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../forms/Form.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../forms/Form.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAK3C,MAAM,WAAW,IAAI;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,MAAM,EAAE,SAAS,EAAE,CAAC;IAKpB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC1B;AAED,eAAO,MAAM,iBAAiB,EAAE,CAAC,MAAM,IAAI,CAAC,EAAoE,CAAC"}
|
package/dist/esm/forms/Form.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.js","sources":["../../../forms/Form.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 { PopulateSource } from './PopulateSource';\nimport { FormField } from './FormField';\n\n/**\n * The command-side counterpart to a table or summary: a named, typed form for one command.\n */\nexport interface Form {\n name: string;\n forCommand: string;\n populateSource?: PopulateSource;\n fields: FormField[];\n}\n\nexport const FormPropertyNames: (keyof Form)[] = ['name', 'forCommand', 'populateSource', 'fields'];\n"],"names":["FormPropertyNames"],"mappings":"AAAA;AACA;
|
|
1
|
+
{"version":3,"file":"Form.js","sources":["../../../forms/Form.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 { PopulateSource } from './PopulateSource';\nimport { FormField } from './FormField';\nimport { Behavior } from '../interactions';\n\n/**\n * The command-side counterpart to a table or summary: a named, typed form for one command.\n */\nexport interface Form {\n name: string;\n forCommand: string;\n populateSource?: PopulateSource;\n fields: FormField[];\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n}\n\nexport const FormPropertyNames: (keyof Form)[] = ['name', 'forCommand', 'populateSource', 'fields', 'behaviors'];\n"],"names":["FormPropertyNames"],"mappings":"AAAA;AACA;MAqBaA,iBAAAA,GAAoC;AAAC,IAAA,MAAA;AAAQ,IAAA,YAAA;AAAc,IAAA,gBAAA;AAAkB,IAAA,QAAA;AAAU,IAAA;;;"}
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -12,6 +12,7 @@ export { GridLengthPropertyNames } from './common/GridLength.js';
|
|
|
12
12
|
export { WidthSizeClass } from './sizeClasses/WidthSizeClass.js';
|
|
13
13
|
export { HeightSizeClass } from './sizeClasses/HeightSizeClass.js';
|
|
14
14
|
export { SizeClassPropertyNames } from './sizeClasses/SizeClass.js';
|
|
15
|
+
export { TargetSizeClass } from './sizeClasses/TargetSizeClass.js';
|
|
15
16
|
export { SceneElementPropertyNames } from './elements/SceneElement.js';
|
|
16
17
|
export { VisualElementPropertyNames } from './elements/VisualElement.js';
|
|
17
18
|
export { FrameworkElementPropertyNames } from './elements/FrameworkElement.js';
|
|
@@ -57,6 +58,28 @@ export { ThemePropertyNames } from './profiles/Theme.js';
|
|
|
57
58
|
export { PackageKind } from './packages/PackageKind.js';
|
|
58
59
|
export { PackageDependencyPropertyNames } from './packages/PackageDependency.js';
|
|
59
60
|
export { ScenePackagePropertyNames } from './packages/ScenePackage.js';
|
|
61
|
+
export { InteractionTriggerKind } from './interactions/InteractionTriggerKind.js';
|
|
62
|
+
export { NotificationLevel } from './interactions/NotificationLevel.js';
|
|
63
|
+
export { BuiltInInteractionTriggerPropertyNames } from './interactions/BuiltInInteractionTrigger.js';
|
|
64
|
+
export { EventInteractionTriggerPropertyNames } from './interactions/EventInteractionTrigger.js';
|
|
65
|
+
export { IntervalInteractionTriggerPropertyNames } from './interactions/IntervalInteractionTrigger.js';
|
|
66
|
+
export { ApplicationTriggerInteractionTriggerPropertyNames } from './interactions/ApplicationTriggerInteractionTrigger.js';
|
|
67
|
+
export { InteractionMessagePropertyNames } from './interactions/InteractionMessage.js';
|
|
68
|
+
export { InteractionArgumentPropertyNames } from './interactions/InteractionArgument.js';
|
|
69
|
+
export { InteractionActionKind } from './interactions/InteractionActionKind.js';
|
|
70
|
+
export { InteractionActionPropertyNames } from './interactions/InteractionAction.js';
|
|
71
|
+
export { ExecuteCommandActionPropertyNames } from './interactions/ExecuteCommandAction.js';
|
|
72
|
+
export { NavigateActionPropertyNames } from './interactions/NavigateAction.js';
|
|
73
|
+
export { NavigateBackActionPropertyNames } from './interactions/NavigateBackAction.js';
|
|
74
|
+
export { OpenDialogActionPropertyNames } from './interactions/OpenDialogAction.js';
|
|
75
|
+
export { CloseDialogActionPropertyNames } from './interactions/CloseDialogAction.js';
|
|
76
|
+
export { RefreshQueryActionPropertyNames } from './interactions/RefreshQueryAction.js';
|
|
77
|
+
export { SetStateActionPropertyNames } from './interactions/SetStateAction.js';
|
|
78
|
+
export { NotifyActionPropertyNames } from './interactions/NotifyAction.js';
|
|
79
|
+
export { ConfirmActionPropertyNames } from './interactions/ConfirmAction.js';
|
|
80
|
+
export { RaiseTriggerActionPropertyNames } from './interactions/RaiseTriggerAction.js';
|
|
81
|
+
export { InteractionBindingPropertyNames } from './interactions/InteractionBinding.js';
|
|
82
|
+
export { BehaviorPropertyNames } from './interactions/Behavior.js';
|
|
60
83
|
export { ScreenPropertyNames } from './screens/Screen.js';
|
|
61
84
|
export { ScreenTemplatePropertyNames } from './screens/ScreenTemplate.js';
|
|
62
85
|
export { DialogTemplatePropertyNames } from './screens/DialogTemplate.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InteractionTrigger } from './InteractionTrigger';
|
|
2
|
+
export interface ApplicationTriggerInteractionTrigger extends InteractionTrigger {
|
|
3
|
+
triggerName: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const ApplicationTriggerInteractionTriggerPropertyNames: (keyof ApplicationTriggerInteractionTrigger)[];
|
|
6
|
+
//# sourceMappingURL=ApplicationTriggerInteractionTrigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationTriggerInteractionTrigger.d.ts","sourceRoot":"","sources":["../../../interactions/ApplicationTriggerInteractionTrigger.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAK1D,MAAM,WAAW,oCAAqC,SAAQ,kBAAkB;IAC5E,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,iDAAiD,EAAE,CAAC,MAAM,oCAAoC,CAAC,EAAoB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
const ApplicationTriggerInteractionTriggerPropertyNames = [
|
|
4
|
+
'triggerName'
|
|
5
|
+
];
|
|
6
|
+
|
|
7
|
+
export { ApplicationTriggerInteractionTriggerPropertyNames };
|
|
8
|
+
//# sourceMappingURL=ApplicationTriggerInteractionTrigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ApplicationTriggerInteractionTrigger.js","sources":["../../../interactions/ApplicationTriggerInteractionTrigger.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 { InteractionTrigger } from './InteractionTrigger';\n\n/**\n * An interaction started by a declared application trigger firing.\n */\nexport interface ApplicationTriggerInteractionTrigger extends InteractionTrigger {\n triggerName: string;\n}\n\nexport const ApplicationTriggerInteractionTriggerPropertyNames: (keyof ApplicationTriggerInteractionTrigger)[] = ['triggerName'];\n"],"names":["ApplicationTriggerInteractionTriggerPropertyNames"],"mappings":"AAAA;AACA;MAWaA,iDAAAA,GAAoG;AAAC,IAAA;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InteractionBinding } from './InteractionBinding';
|
|
2
|
+
export interface Behavior {
|
|
3
|
+
name?: string;
|
|
4
|
+
bindings: InteractionBinding[];
|
|
5
|
+
order?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const BehaviorPropertyNames: (keyof Behavior)[];
|
|
8
|
+
//# sourceMappingURL=Behavior.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Behavior.d.ts","sourceRoot":"","sources":["../../../interactions/Behavior.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAS1D,MAAM,WAAW,QAAQ;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,qBAAqB,EAAE,CAAC,MAAM,QAAQ,CAAC,EAAkC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
const BehaviorPropertyNames = [
|
|
4
|
+
'name',
|
|
5
|
+
'bindings',
|
|
6
|
+
'order'
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
export { BehaviorPropertyNames };
|
|
10
|
+
//# sourceMappingURL=Behavior.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Behavior.js","sources":["../../../interactions/Behavior.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 { InteractionBinding } from './InteractionBinding';\n\n/**\n * A bundle of interaction trigger to action bindings, attached to something that can be interacted with.\n *\n * A named behavior and an inline one are the same shape - anonymity is a property rather than a separate kind\n * of node. Attachments are additive: a behavior on a template and one on an element both run, outermost first,\n * unless the order says otherwise.\n */\nexport interface Behavior {\n name?: string;\n bindings: InteractionBinding[];\n order?: number;\n}\n\nexport const BehaviorPropertyNames: (keyof Behavior)[] = ['name', 'bindings', 'order'];\n"],"names":["BehaviorPropertyNames"],"mappings":"AAAA;AACA;MAiBaA,qBAAAA,GAA4C;AAAC,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InteractionTrigger } from './InteractionTrigger';
|
|
2
|
+
import { InteractionTriggerKind } from './InteractionTriggerKind';
|
|
3
|
+
export interface BuiltInInteractionTrigger extends InteractionTrigger {
|
|
4
|
+
kind: InteractionTriggerKind;
|
|
5
|
+
}
|
|
6
|
+
export declare const BuiltInInteractionTriggerPropertyNames: (keyof BuiltInInteractionTrigger)[];
|
|
7
|
+
//# sourceMappingURL=BuiltInInteractionTrigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BuiltInInteractionTrigger.d.ts","sourceRoot":"","sources":["../../../interactions/BuiltInInteractionTrigger.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAKlE,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB;IACjE,IAAI,EAAE,sBAAsB,CAAC;CAChC;AAED,eAAO,MAAM,sCAAsC,EAAE,CAAC,MAAM,yBAAyB,CAAC,EAAa,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
const BuiltInInteractionTriggerPropertyNames = [
|
|
4
|
+
'kind'
|
|
5
|
+
];
|
|
6
|
+
|
|
7
|
+
export { BuiltInInteractionTriggerPropertyNames };
|
|
8
|
+
//# sourceMappingURL=BuiltInInteractionTrigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BuiltInInteractionTrigger.js","sources":["../../../interactions/BuiltInInteractionTrigger.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 { InteractionTrigger } from './InteractionTrigger';\nimport { InteractionTriggerKind } from './InteractionTriggerKind';\n\n/**\n * One of the built-in interaction kinds.\n */\nexport interface BuiltInInteractionTrigger extends InteractionTrigger {\n kind: InteractionTriggerKind;\n}\n\nexport const BuiltInInteractionTriggerPropertyNames: (keyof BuiltInInteractionTrigger)[] = ['kind'];\n"],"names":["BuiltInInteractionTriggerPropertyNames"],"mappings":"AAAA;AACA;MAYaA,sCAAAA,GAA8E;AAAC,IAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloseDialogAction.d.ts","sourceRoot":"","sources":["../../../interactions/CloseDialogAction.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAKxD,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;CAAG;AAE/D,eAAO,MAAM,8BAA8B,EAAE,CAAC,MAAM,iBAAiB,CAAC,EAAa,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
const CloseDialogActionPropertyNames = [
|
|
4
|
+
'kind'
|
|
5
|
+
];
|
|
6
|
+
|
|
7
|
+
export { CloseDialogActionPropertyNames };
|
|
8
|
+
//# sourceMappingURL=CloseDialogAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CloseDialogAction.js","sources":["../../../interactions/CloseDialogAction.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 { InteractionAction } from './InteractionAction';\n\n/**\n * Dismisses the innermost dialog.\n */\nexport interface CloseDialogAction extends InteractionAction {}\n\nexport const CloseDialogActionPropertyNames: (keyof CloseDialogAction)[] = ['kind'];\n"],"names":["CloseDialogActionPropertyNames"],"mappings":"AAAA;AACA;MASaA,8BAAAA,GAA8D;AAAC,IAAA;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InteractionAction } from './InteractionAction';
|
|
2
|
+
import { InteractionMessage } from './InteractionMessage';
|
|
3
|
+
export interface ConfirmAction extends InteractionAction {
|
|
4
|
+
message: InteractionMessage;
|
|
5
|
+
}
|
|
6
|
+
export declare const ConfirmActionPropertyNames: (keyof ConfirmAction)[];
|
|
7
|
+
//# sourceMappingURL=ConfirmAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmAction.d.ts","sourceRoot":"","sources":["../../../interactions/ConfirmAction.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAK1D,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACpD,OAAO,EAAE,kBAAkB,CAAC;CAC/B;AAED,eAAO,MAAM,0BAA0B,EAAE,CAAC,MAAM,aAAa,CAAC,EAAwB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
const ConfirmActionPropertyNames = [
|
|
4
|
+
'message',
|
|
5
|
+
'kind'
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
export { ConfirmActionPropertyNames };
|
|
9
|
+
//# sourceMappingURL=ConfirmAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmAction.js","sources":["../../../interactions/ConfirmAction.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 { InteractionAction } from './InteractionAction';\nimport { InteractionMessage } from './InteractionMessage';\n\n/**\n * Gates the actions that follow on the user agreeing.\n */\nexport interface ConfirmAction extends InteractionAction {\n message: InteractionMessage;\n}\n\nexport const ConfirmActionPropertyNames: (keyof ConfirmAction)[] = ['message', 'kind'];\n"],"names":["ConfirmActionPropertyNames"],"mappings":"AAAA;AACA;MAYaA,0BAAAA,GAAsD;AAAC,IAAA,SAAA;AAAW,IAAA;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InteractionTrigger } from './InteractionTrigger';
|
|
2
|
+
export interface EventInteractionTrigger extends InteractionTrigger {
|
|
3
|
+
eventName: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const EventInteractionTriggerPropertyNames: (keyof EventInteractionTrigger)[];
|
|
6
|
+
//# sourceMappingURL=EventInteractionTrigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventInteractionTrigger.d.ts","sourceRoot":"","sources":["../../../interactions/EventInteractionTrigger.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAK1D,MAAM,WAAW,uBAAwB,SAAQ,kBAAkB;IAC/D,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,oCAAoC,EAAE,CAAC,MAAM,uBAAuB,CAAC,EAAkB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
const EventInteractionTriggerPropertyNames = [
|
|
4
|
+
'eventName'
|
|
5
|
+
];
|
|
6
|
+
|
|
7
|
+
export { EventInteractionTriggerPropertyNames };
|
|
8
|
+
//# sourceMappingURL=EventInteractionTrigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventInteractionTrigger.js","sources":["../../../interactions/EventInteractionTrigger.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 { InteractionTrigger } from './InteractionTrigger';\n\n/**\n * An interaction started by observing a modeled domain event.\n */\nexport interface EventInteractionTrigger extends InteractionTrigger {\n eventName: string;\n}\n\nexport const EventInteractionTriggerPropertyNames: (keyof EventInteractionTrigger)[] = ['eventName'];\n"],"names":["EventInteractionTriggerPropertyNames"],"mappings":"AAAA;AACA;MAWaA,oCAAAA,GAA0E;AAAC,IAAA;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InteractionAction } from './InteractionAction';
|
|
2
|
+
export interface ExecuteCommandAction extends InteractionAction {
|
|
3
|
+
command: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const ExecuteCommandActionPropertyNames: (keyof ExecuteCommandAction)[];
|
|
6
|
+
//# sourceMappingURL=ExecuteCommandAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExecuteCommandAction.d.ts","sourceRoot":"","sources":["../../../interactions/ExecuteCommandAction.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAKxD,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC3D,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,iCAAiC,EAAE,CAAC,MAAM,oBAAoB,CAAC,EAAwB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
const ExecuteCommandActionPropertyNames = [
|
|
4
|
+
'command',
|
|
5
|
+
'kind'
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
export { ExecuteCommandActionPropertyNames };
|
|
9
|
+
//# sourceMappingURL=ExecuteCommandAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExecuteCommandAction.js","sources":["../../../interactions/ExecuteCommandAction.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 { InteractionAction } from './InteractionAction';\n\n/**\n * Submits a modeled command.\n */\nexport interface ExecuteCommandAction extends InteractionAction {\n command: string;\n}\n\nexport const ExecuteCommandActionPropertyNames: (keyof ExecuteCommandAction)[] = ['command', 'kind'];\n"],"names":["ExecuteCommandActionPropertyNames"],"mappings":"AAAA;AACA;MAWaA,iCAAAA,GAAoE;AAAC,IAAA,SAAA;AAAW,IAAA;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InteractionActionKind } from './InteractionActionKind';
|
|
2
|
+
import { InteractionArgument } from './InteractionArgument';
|
|
3
|
+
export interface InteractionAction {
|
|
4
|
+
kind: InteractionActionKind;
|
|
5
|
+
arguments?: InteractionArgument[];
|
|
6
|
+
onSuccess?: InteractionAction[];
|
|
7
|
+
onFailure?: InteractionAction[];
|
|
8
|
+
onResult?: InteractionAction[];
|
|
9
|
+
}
|
|
10
|
+
export declare const InteractionActionPropertyNames: (keyof InteractionAction)[];
|
|
11
|
+
//# sourceMappingURL=InteractionAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InteractionAction.d.ts","sourceRoot":"","sources":["../../../interactions/InteractionAction.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAS5D,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,qBAAqB,CAAC;IAC5B,SAAS,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAClC,SAAS,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAChC,SAAS,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAClC;AAED,eAAO,MAAM,8BAA8B,EAAE,CAAC,MAAM,iBAAiB,CAAC,EAAgE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
const InteractionActionPropertyNames = [
|
|
4
|
+
'kind',
|
|
5
|
+
'arguments',
|
|
6
|
+
'onSuccess',
|
|
7
|
+
'onFailure',
|
|
8
|
+
'onResult'
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
export { InteractionActionPropertyNames };
|
|
12
|
+
//# sourceMappingURL=InteractionAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InteractionAction.js","sources":["../../../interactions/InteractionAction.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 { InteractionActionKind } from './InteractionActionKind';\nimport { InteractionArgument } from './InteractionArgument';\n\n/**\n * One declarative effect inside a binding.\n *\n * The set is closed and every operand references something the model declares rather than being a string a\n * renderer interprets - that is what lets an action naming nothing be reported instead of becoming a control\n * that does nothing when clicked.\n */\nexport interface InteractionAction {\n kind: InteractionActionKind;\n arguments?: InteractionArgument[];\n onSuccess?: InteractionAction[];\n onFailure?: InteractionAction[];\n onResult?: InteractionAction[];\n}\n\nexport const InteractionActionPropertyNames: (keyof InteractionAction)[] = ['kind', 'arguments', 'onSuccess', 'onFailure', 'onResult'];\n"],"names":["InteractionActionPropertyNames"],"mappings":"AAAA;AACA;MAoBaA,8BAAAA,GAA8D;AAAC,IAAA,MAAA;AAAQ,IAAA,WAAA;AAAa,IAAA,WAAA;AAAa,IAAA,WAAA;AAAa,IAAA;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum InteractionActionKind {
|
|
2
|
+
ExecuteCommand = "ExecuteCommand",
|
|
3
|
+
Navigate = "Navigate",
|
|
4
|
+
NavigateBack = "NavigateBack",
|
|
5
|
+
OpenDialog = "OpenDialog",
|
|
6
|
+
CloseDialog = "CloseDialog",
|
|
7
|
+
RefreshQuery = "RefreshQuery",
|
|
8
|
+
SetState = "SetState",
|
|
9
|
+
Notify = "Notify",
|
|
10
|
+
Confirm = "Confirm",
|
|
11
|
+
RaiseTrigger = "RaiseTrigger"
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=InteractionActionKind.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InteractionActionKind.d.ts","sourceRoot":"","sources":["../../../interactions/InteractionActionKind.ts"],"names":[],"mappings":"AAYA,oBAAY,qBAAqB;IAC7B,cAAc,mBAAmB;IACjC,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,YAAY,iBAAiB;CAChC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* Which effect an {@link InteractionAction} is.
|
|
5
|
+
*
|
|
6
|
+
* An explicit discriminator rather than a structural one: NavigateBackAction and CloseDialogAction both carry no
|
|
7
|
+
* operand, so nothing about their shape tells them apart. It also means a renderer meeting an action it does not
|
|
8
|
+
* know can name it in a finding instead of reporting that something unidentifiable failed.
|
|
9
|
+
*
|
|
10
|
+
* Append only.
|
|
11
|
+
*/ var InteractionActionKind = /*#__PURE__*/ function(InteractionActionKind) {
|
|
12
|
+
InteractionActionKind["ExecuteCommand"] = "ExecuteCommand";
|
|
13
|
+
InteractionActionKind["Navigate"] = "Navigate";
|
|
14
|
+
InteractionActionKind["NavigateBack"] = "NavigateBack";
|
|
15
|
+
InteractionActionKind["OpenDialog"] = "OpenDialog";
|
|
16
|
+
InteractionActionKind["CloseDialog"] = "CloseDialog";
|
|
17
|
+
InteractionActionKind["RefreshQuery"] = "RefreshQuery";
|
|
18
|
+
InteractionActionKind["SetState"] = "SetState";
|
|
19
|
+
InteractionActionKind["Notify"] = "Notify";
|
|
20
|
+
InteractionActionKind["Confirm"] = "Confirm";
|
|
21
|
+
InteractionActionKind["RaiseTrigger"] = "RaiseTrigger";
|
|
22
|
+
return InteractionActionKind;
|
|
23
|
+
}({});
|
|
24
|
+
|
|
25
|
+
export { InteractionActionKind };
|
|
26
|
+
//# sourceMappingURL=InteractionActionKind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InteractionActionKind.js","sources":["../../../interactions/InteractionActionKind.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\n/**\n * Which effect an {@link InteractionAction} is.\n *\n * An explicit discriminator rather than a structural one: NavigateBackAction and CloseDialogAction both carry no\n * operand, so nothing about their shape tells them apart. It also means a renderer meeting an action it does not\n * know can name it in a finding instead of reporting that something unidentifiable failed.\n *\n * Append only.\n */\nexport enum InteractionActionKind {\n ExecuteCommand = 'ExecuteCommand',\n Navigate = 'Navigate',\n NavigateBack = 'NavigateBack',\n OpenDialog = 'OpenDialog',\n CloseDialog = 'CloseDialog',\n RefreshQuery = 'RefreshQuery',\n SetState = 'SetState',\n Notify = 'Notify',\n Confirm = 'Confirm',\n RaiseTrigger = 'RaiseTrigger',\n}\n"],"names":["InteractionActionKind"],"mappings":"AAAA;AACA;AAEA;;;;;;;;IASO,IAAKA,qBAAAA,iBAAAA,SAAAA,qBAAAA,EAAAA;;;;;;;;;;;AAAAA,IAAAA,OAAAA,qBAAAA;AAWX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BindingExpression } from '../common';
|
|
2
|
+
export interface InteractionArgument {
|
|
3
|
+
name: string;
|
|
4
|
+
value: BindingExpression;
|
|
5
|
+
}
|
|
6
|
+
export declare const InteractionArgumentPropertyNames: (keyof InteractionArgument)[];
|
|
7
|
+
//# sourceMappingURL=InteractionArgument.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InteractionArgument.d.ts","sourceRoot":"","sources":["../../../interactions/InteractionArgument.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAK9C,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,iBAAiB,CAAC;CAC5B;AAED,eAAO,MAAM,gCAAgC,EAAE,CAAC,MAAM,mBAAmB,CAAC,EAAsB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
const InteractionArgumentPropertyNames = [
|
|
4
|
+
'name',
|
|
5
|
+
'value'
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
export { InteractionArgumentPropertyNames };
|
|
9
|
+
//# sourceMappingURL=InteractionArgument.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InteractionArgument.js","sources":["../../../interactions/InteractionArgument.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 } from '../common';\n\n/**\n * One argument passed to an action.\n */\nexport interface InteractionArgument {\n name: string;\n value: BindingExpression;\n}\n\nexport const InteractionArgumentPropertyNames: (keyof InteractionArgument)[] = ['name', 'value'];\n"],"names":["InteractionArgumentPropertyNames"],"mappings":"AAAA;AACA;MAYaA,gCAAAA,GAAkE;AAAC,IAAA,MAAA;AAAQ,IAAA;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BindingExpression } from '../common';
|
|
2
|
+
import { InteractionAction } from './InteractionAction';
|
|
3
|
+
import { InteractionTrigger } from './InteractionTrigger';
|
|
4
|
+
export interface InteractionBinding {
|
|
5
|
+
trigger: InteractionTrigger;
|
|
6
|
+
actions: InteractionAction[];
|
|
7
|
+
condition?: BindingExpression;
|
|
8
|
+
}
|
|
9
|
+
export declare const InteractionBindingPropertyNames: (keyof InteractionBinding)[];
|
|
10
|
+
//# sourceMappingURL=InteractionBinding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InteractionBinding.d.ts","sourceRoot":"","sources":["../../../interactions/InteractionBinding.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAK1D,MAAM,WAAW,kBAAkB;IAC/B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,SAAS,CAAC,EAAE,iBAAiB,CAAC;CACjC;AAED,eAAO,MAAM,+BAA+B,EAAE,CAAC,MAAM,kBAAkB,CAAC,EAAwC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
const InteractionBindingPropertyNames = [
|
|
4
|
+
'trigger',
|
|
5
|
+
'actions',
|
|
6
|
+
'condition'
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
export { InteractionBindingPropertyNames };
|
|
10
|
+
//# sourceMappingURL=InteractionBinding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InteractionBinding.js","sources":["../../../interactions/InteractionBinding.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 } from '../common';\nimport { InteractionAction } from './InteractionAction';\nimport { InteractionTrigger } from './InteractionTrigger';\n\n/**\n * One interaction trigger to actions binding.\n */\nexport interface InteractionBinding {\n trigger: InteractionTrigger;\n actions: InteractionAction[];\n condition?: BindingExpression;\n}\n\nexport const InteractionBindingPropertyNames: (keyof InteractionBinding)[] = ['trigger', 'actions', 'condition'];\n"],"names":["InteractionBindingPropertyNames"],"mappings":"AAAA;AACA;MAeaA,+BAAAA,GAAgE;AAAC,IAAA,SAAA;AAAW,IAAA,SAAA;AAAW,IAAA;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BindingExpression } from '../common';
|
|
2
|
+
export interface InteractionMessage {
|
|
3
|
+
text?: string;
|
|
4
|
+
stringsKey?: string;
|
|
5
|
+
binding?: BindingExpression;
|
|
6
|
+
}
|
|
7
|
+
export declare const InteractionMessagePropertyNames: (keyof InteractionMessage)[];
|
|
8
|
+
//# sourceMappingURL=InteractionMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InteractionMessage.d.ts","sourceRoot":"","sources":["../../../interactions/InteractionMessage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAM9C,MAAM,WAAW,kBAAkB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC/B;AAED,eAAO,MAAM,+BAA+B,EAAE,CAAC,MAAM,kBAAkB,CAAC,EAAsC,CAAC"}
|