@cratis/showrunner.notes 0.0.0-stage → 1.0.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/Availability/NotesAvailability.ts +59 -0
- package/Availability/index.ts +4 -0
- package/Contracts/Components/PickedComponent.ts +43 -0
- package/Contracts/Components/index.ts +4 -0
- package/Contracts/Context/NoteContext.ts +58 -0
- package/Contracts/Context/NoteDialog.ts +25 -0
- package/Contracts/Context/NoteScreen.ts +30 -0
- package/Contracts/Context/index.ts +6 -0
- package/Contracts/Giving/NoteKind.ts +14 -0
- package/Contracts/Giving/index.ts +4 -0
- package/Contracts/Reporting/SliceLocation.ts +30 -0
- package/Contracts/Reporting/index.ts +4 -0
- package/Giving/GiveNoteOnComponent/GiveNoteOnComponent.ts +146 -0
- package/Giving/GiveNoteOnComponent/index.ts +4 -0
- package/Giving/GiveNoteOnContext/GiveNoteOnContext.ts +126 -0
- package/Giving/GiveNoteOnContext/index.ts +4 -0
- package/Giving/GiveNoteOnScreen/GiveNoteOnScreen.ts +126 -0
- package/Giving/GiveNoteOnScreen/index.ts +4 -0
- package/Giving/GiveNoteOnSlices/GiveNoteOnSlices.ts +145 -0
- package/Giving/GiveNoteOnSlices/index.ts +4 -0
- package/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.ts +164 -0
- package/Giving/SuggestComponentPropertyChange/index.ts +4 -0
- package/Listing/MyNote.ts +303 -0
- package/Listing/NoteStatus.ts +15 -0
- package/Listing/NoteTarget.ts +14 -0
- package/Listing/SuggestedPropertyChange.ts +30 -0
- package/Listing/index.ts +7 -0
- package/Withdrawing/WithdrawNote/WithdrawNote.ts +61 -0
- package/Withdrawing/WithdrawNote/index.ts +4 -0
- package/dist/cjs/Availability/NotesAvailability.d.ts +21 -0
- package/dist/cjs/Availability/NotesAvailability.d.ts.map +1 -0
- package/dist/cjs/Availability/NotesAvailability.js +66 -0
- package/dist/cjs/Availability/NotesAvailability.js.map +1 -0
- package/dist/cjs/Availability/index.d.ts +2 -0
- package/dist/cjs/Availability/index.d.ts.map +1 -0
- package/dist/cjs/Contracts/Components/PickedComponent.d.ts +9 -0
- package/dist/cjs/Contracts/Components/PickedComponent.d.ts.map +1 -0
- package/dist/cjs/Contracts/Components/PickedComponent.js +65 -0
- package/dist/cjs/Contracts/Components/PickedComponent.js.map +1 -0
- package/dist/cjs/Contracts/Components/index.d.ts +2 -0
- package/dist/cjs/Contracts/Components/index.d.ts.map +1 -0
- package/dist/cjs/Contracts/Context/NoteContext.d.ts +14 -0
- package/dist/cjs/Contracts/Context/NoteContext.d.ts.map +1 -0
- package/dist/cjs/Contracts/Context/NoteContext.js +81 -0
- package/dist/cjs/Contracts/Context/NoteContext.js.map +1 -0
- package/dist/cjs/Contracts/Context/NoteDialog.d.ts +6 -0
- package/dist/cjs/Contracts/Context/NoteDialog.d.ts.map +1 -0
- package/dist/cjs/Contracts/Context/NoteDialog.js +44 -0
- package/dist/cjs/Contracts/Context/NoteDialog.js.map +1 -0
- package/dist/cjs/Contracts/Context/NoteScreen.d.ts +6 -0
- package/dist/cjs/Contracts/Context/NoteScreen.d.ts.map +1 -0
- package/dist/cjs/Contracts/Context/NoteScreen.js +50 -0
- package/dist/cjs/Contracts/Context/NoteScreen.js.map +1 -0
- package/dist/cjs/Contracts/Context/index.d.ts +4 -0
- package/dist/cjs/Contracts/Context/index.d.ts.map +1 -0
- package/dist/cjs/Contracts/Giving/NoteKind.d.ts +7 -0
- package/dist/cjs/Contracts/Giving/NoteKind.d.ts.map +1 -0
- package/dist/cjs/Contracts/Giving/NoteKind.js +18 -0
- package/dist/cjs/Contracts/Giving/NoteKind.js.map +1 -0
- package/dist/cjs/Contracts/Giving/index.d.ts +2 -0
- package/dist/cjs/Contracts/Giving/index.d.ts.map +1 -0
- package/dist/cjs/Contracts/Reporting/SliceLocation.d.ts +6 -0
- package/dist/cjs/Contracts/Reporting/SliceLocation.d.ts.map +1 -0
- package/dist/cjs/Contracts/Reporting/SliceLocation.js +50 -0
- package/dist/cjs/Contracts/Reporting/SliceLocation.js.map +1 -0
- package/dist/cjs/Contracts/Reporting/index.d.ts +2 -0
- package/dist/cjs/Contracts/Reporting/index.d.ts.map +1 -0
- package/dist/cjs/Giving/GiveNoteOnComponent/GiveNoteOnComponent.d.ts +40 -0
- package/dist/cjs/Giving/GiveNoteOnComponent/GiveNoteOnComponent.d.ts.map +1 -0
- package/dist/cjs/Giving/GiveNoteOnComponent/GiveNoteOnComponent.js +101 -0
- package/dist/cjs/Giving/GiveNoteOnComponent/GiveNoteOnComponent.js.map +1 -0
- package/dist/cjs/Giving/GiveNoteOnComponent/index.d.ts +2 -0
- package/dist/cjs/Giving/GiveNoteOnComponent/index.d.ts.map +1 -0
- package/dist/cjs/Giving/GiveNoteOnContext/GiveNoteOnContext.d.ts +36 -0
- package/dist/cjs/Giving/GiveNoteOnContext/GiveNoteOnContext.d.ts.map +1 -0
- package/dist/cjs/Giving/GiveNoteOnContext/GiveNoteOnContext.js +88 -0
- package/dist/cjs/Giving/GiveNoteOnContext/GiveNoteOnContext.js.map +1 -0
- package/dist/cjs/Giving/GiveNoteOnContext/index.d.ts +2 -0
- package/dist/cjs/Giving/GiveNoteOnContext/index.d.ts.map +1 -0
- package/dist/cjs/Giving/GiveNoteOnScreen/GiveNoteOnScreen.d.ts +36 -0
- package/dist/cjs/Giving/GiveNoteOnScreen/GiveNoteOnScreen.d.ts.map +1 -0
- package/dist/cjs/Giving/GiveNoteOnScreen/GiveNoteOnScreen.js +88 -0
- package/dist/cjs/Giving/GiveNoteOnScreen/GiveNoteOnScreen.js.map +1 -0
- package/dist/cjs/Giving/GiveNoteOnScreen/index.d.ts +2 -0
- package/dist/cjs/Giving/GiveNoteOnScreen/index.d.ts.map +1 -0
- package/dist/cjs/Giving/GiveNoteOnSlices/GiveNoteOnSlices.d.ts +40 -0
- package/dist/cjs/Giving/GiveNoteOnSlices/GiveNoteOnSlices.d.ts.map +1 -0
- package/dist/cjs/Giving/GiveNoteOnSlices/GiveNoteOnSlices.js +100 -0
- package/dist/cjs/Giving/GiveNoteOnSlices/GiveNoteOnSlices.js.map +1 -0
- package/dist/cjs/Giving/GiveNoteOnSlices/index.d.ts +2 -0
- package/dist/cjs/Giving/GiveNoteOnSlices/index.d.ts.map +1 -0
- package/dist/cjs/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.d.ts +42 -0
- package/dist/cjs/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.d.ts.map +1 -0
- package/dist/cjs/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.js +113 -0
- package/dist/cjs/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.js.map +1 -0
- package/dist/cjs/Giving/SuggestComponentPropertyChange/index.d.ts +2 -0
- package/dist/cjs/Giving/SuggestComponentPropertyChange/index.d.ts.map +1 -0
- package/dist/cjs/Listing/MyNote.d.ts +111 -0
- package/dist/cjs/Listing/MyNote.d.ts.map +1 -0
- package/dist/cjs/Listing/MyNote.js +315 -0
- package/dist/cjs/Listing/MyNote.js.map +1 -0
- package/dist/cjs/Listing/NoteStatus.d.ts +8 -0
- package/dist/cjs/Listing/NoteStatus.d.ts.map +1 -0
- package/dist/cjs/Listing/NoteStatus.js +19 -0
- package/dist/cjs/Listing/NoteStatus.js.map +1 -0
- package/dist/cjs/Listing/NoteTarget.d.ts +7 -0
- package/dist/cjs/Listing/NoteTarget.d.ts.map +1 -0
- package/dist/cjs/Listing/NoteTarget.js +18 -0
- package/dist/cjs/Listing/NoteTarget.js.map +1 -0
- package/dist/cjs/Listing/SuggestedPropertyChange.d.ts +6 -0
- package/dist/cjs/Listing/SuggestedPropertyChange.d.ts.map +1 -0
- package/dist/cjs/Listing/SuggestedPropertyChange.js +50 -0
- package/dist/cjs/Listing/SuggestedPropertyChange.js.map +1 -0
- package/dist/cjs/Listing/index.d.ts +5 -0
- package/dist/cjs/Listing/index.d.ts.map +1 -0
- package/dist/cjs/Withdrawing/WithdrawNote/WithdrawNote.d.ts +21 -0
- package/dist/cjs/Withdrawing/WithdrawNote/WithdrawNote.d.ts.map +1 -0
- package/dist/cjs/Withdrawing/WithdrawNote/WithdrawNote.js +44 -0
- package/dist/cjs/Withdrawing/WithdrawNote/WithdrawNote.js.map +1 -0
- package/dist/cjs/Withdrawing/WithdrawNote/index.d.ts +2 -0
- package/dist/cjs/Withdrawing/WithdrawNote/index.d.ts.map +1 -0
- package/dist/cjs/index.d.ts +13 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +47 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/esm/Availability/NotesAvailability.d.ts +21 -0
- package/dist/esm/Availability/NotesAvailability.d.ts.map +1 -0
- package/dist/esm/Availability/NotesAvailability.js +63 -0
- package/dist/esm/Availability/NotesAvailability.js.map +1 -0
- package/dist/esm/Availability/index.d.ts +2 -0
- package/dist/esm/Availability/index.d.ts.map +1 -0
- package/dist/esm/Availability/index.js +2 -0
- package/dist/esm/Availability/index.js.map +1 -0
- package/dist/esm/Contracts/Components/PickedComponent.d.ts +9 -0
- package/dist/esm/Contracts/Components/PickedComponent.d.ts.map +1 -0
- package/dist/esm/Contracts/Components/PickedComponent.js +63 -0
- package/dist/esm/Contracts/Components/PickedComponent.js.map +1 -0
- package/dist/esm/Contracts/Components/index.d.ts +2 -0
- package/dist/esm/Contracts/Components/index.d.ts.map +1 -0
- package/dist/esm/Contracts/Components/index.js +2 -0
- package/dist/esm/Contracts/Components/index.js.map +1 -0
- package/dist/esm/Contracts/Context/NoteContext.d.ts +14 -0
- package/dist/esm/Contracts/Context/NoteContext.d.ts.map +1 -0
- package/dist/esm/Contracts/Context/NoteContext.js +79 -0
- package/dist/esm/Contracts/Context/NoteContext.js.map +1 -0
- package/dist/esm/Contracts/Context/NoteDialog.d.ts +6 -0
- package/dist/esm/Contracts/Context/NoteDialog.d.ts.map +1 -0
- package/dist/esm/Contracts/Context/NoteDialog.js +42 -0
- package/dist/esm/Contracts/Context/NoteDialog.js.map +1 -0
- package/dist/esm/Contracts/Context/NoteScreen.d.ts +6 -0
- package/dist/esm/Contracts/Context/NoteScreen.d.ts.map +1 -0
- package/dist/esm/Contracts/Context/NoteScreen.js +48 -0
- package/dist/esm/Contracts/Context/NoteScreen.js.map +1 -0
- package/dist/esm/Contracts/Context/index.d.ts +4 -0
- package/dist/esm/Contracts/Context/index.d.ts.map +1 -0
- package/dist/esm/Contracts/Context/index.js +4 -0
- package/dist/esm/Contracts/Context/index.js.map +1 -0
- package/dist/esm/Contracts/Giving/NoteKind.d.ts +7 -0
- package/dist/esm/Contracts/Giving/NoteKind.d.ts.map +1 -0
- package/dist/esm/Contracts/Giving/NoteKind.js +16 -0
- package/dist/esm/Contracts/Giving/NoteKind.js.map +1 -0
- package/dist/esm/Contracts/Giving/index.d.ts +2 -0
- package/dist/esm/Contracts/Giving/index.d.ts.map +1 -0
- package/dist/esm/Contracts/Giving/index.js +2 -0
- package/dist/esm/Contracts/Giving/index.js.map +1 -0
- package/dist/esm/Contracts/Reporting/SliceLocation.d.ts +6 -0
- package/dist/esm/Contracts/Reporting/SliceLocation.d.ts.map +1 -0
- package/dist/esm/Contracts/Reporting/SliceLocation.js +48 -0
- package/dist/esm/Contracts/Reporting/SliceLocation.js.map +1 -0
- package/dist/esm/Contracts/Reporting/index.d.ts +2 -0
- package/dist/esm/Contracts/Reporting/index.d.ts.map +1 -0
- package/dist/esm/Contracts/Reporting/index.js +2 -0
- package/dist/esm/Contracts/Reporting/index.js.map +1 -0
- package/dist/esm/Giving/GiveNoteOnComponent/GiveNoteOnComponent.d.ts +40 -0
- package/dist/esm/Giving/GiveNoteOnComponent/GiveNoteOnComponent.d.ts.map +1 -0
- package/dist/esm/Giving/GiveNoteOnComponent/GiveNoteOnComponent.js +98 -0
- package/dist/esm/Giving/GiveNoteOnComponent/GiveNoteOnComponent.js.map +1 -0
- package/dist/esm/Giving/GiveNoteOnComponent/index.d.ts +2 -0
- package/dist/esm/Giving/GiveNoteOnComponent/index.d.ts.map +1 -0
- package/dist/esm/Giving/GiveNoteOnComponent/index.js +2 -0
- package/dist/esm/Giving/GiveNoteOnComponent/index.js.map +1 -0
- package/dist/esm/Giving/GiveNoteOnContext/GiveNoteOnContext.d.ts +36 -0
- package/dist/esm/Giving/GiveNoteOnContext/GiveNoteOnContext.d.ts.map +1 -0
- package/dist/esm/Giving/GiveNoteOnContext/GiveNoteOnContext.js +85 -0
- package/dist/esm/Giving/GiveNoteOnContext/GiveNoteOnContext.js.map +1 -0
- package/dist/esm/Giving/GiveNoteOnContext/index.d.ts +2 -0
- package/dist/esm/Giving/GiveNoteOnContext/index.d.ts.map +1 -0
- package/dist/esm/Giving/GiveNoteOnContext/index.js +2 -0
- package/dist/esm/Giving/GiveNoteOnContext/index.js.map +1 -0
- package/dist/esm/Giving/GiveNoteOnScreen/GiveNoteOnScreen.d.ts +36 -0
- package/dist/esm/Giving/GiveNoteOnScreen/GiveNoteOnScreen.d.ts.map +1 -0
- package/dist/esm/Giving/GiveNoteOnScreen/GiveNoteOnScreen.js +85 -0
- package/dist/esm/Giving/GiveNoteOnScreen/GiveNoteOnScreen.js.map +1 -0
- package/dist/esm/Giving/GiveNoteOnScreen/index.d.ts +2 -0
- package/dist/esm/Giving/GiveNoteOnScreen/index.d.ts.map +1 -0
- package/dist/esm/Giving/GiveNoteOnScreen/index.js +2 -0
- package/dist/esm/Giving/GiveNoteOnScreen/index.js.map +1 -0
- package/dist/esm/Giving/GiveNoteOnSlices/GiveNoteOnSlices.d.ts +40 -0
- package/dist/esm/Giving/GiveNoteOnSlices/GiveNoteOnSlices.d.ts.map +1 -0
- package/dist/esm/Giving/GiveNoteOnSlices/GiveNoteOnSlices.js +97 -0
- package/dist/esm/Giving/GiveNoteOnSlices/GiveNoteOnSlices.js.map +1 -0
- package/dist/esm/Giving/GiveNoteOnSlices/index.d.ts +2 -0
- package/dist/esm/Giving/GiveNoteOnSlices/index.d.ts.map +1 -0
- package/dist/esm/Giving/GiveNoteOnSlices/index.js +2 -0
- package/dist/esm/Giving/GiveNoteOnSlices/index.js.map +1 -0
- package/dist/esm/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.d.ts +42 -0
- package/dist/esm/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.d.ts.map +1 -0
- package/dist/esm/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.js +110 -0
- package/dist/esm/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.js.map +1 -0
- package/dist/esm/Giving/SuggestComponentPropertyChange/index.d.ts +2 -0
- package/dist/esm/Giving/SuggestComponentPropertyChange/index.d.ts.map +1 -0
- package/dist/esm/Giving/SuggestComponentPropertyChange/index.js +2 -0
- package/dist/esm/Giving/SuggestComponentPropertyChange/index.js.map +1 -0
- package/dist/esm/Listing/MyNote.d.ts +111 -0
- package/dist/esm/Listing/MyNote.d.ts.map +1 -0
- package/dist/esm/Listing/MyNote.js +312 -0
- package/dist/esm/Listing/MyNote.js.map +1 -0
- package/dist/esm/Listing/NoteStatus.d.ts +8 -0
- package/dist/esm/Listing/NoteStatus.d.ts.map +1 -0
- package/dist/esm/Listing/NoteStatus.js +17 -0
- package/dist/esm/Listing/NoteStatus.js.map +1 -0
- package/dist/esm/Listing/NoteTarget.d.ts +7 -0
- package/dist/esm/Listing/NoteTarget.d.ts.map +1 -0
- package/dist/esm/Listing/NoteTarget.js +16 -0
- package/dist/esm/Listing/NoteTarget.js.map +1 -0
- package/dist/esm/Listing/SuggestedPropertyChange.d.ts +6 -0
- package/dist/esm/Listing/SuggestedPropertyChange.d.ts.map +1 -0
- package/dist/esm/Listing/SuggestedPropertyChange.js +48 -0
- package/dist/esm/Listing/SuggestedPropertyChange.js.map +1 -0
- package/dist/esm/Listing/index.d.ts +5 -0
- package/dist/esm/Listing/index.d.ts.map +1 -0
- package/dist/esm/Listing/index.js +5 -0
- package/dist/esm/Listing/index.js.map +1 -0
- package/dist/esm/Withdrawing/WithdrawNote/WithdrawNote.d.ts +21 -0
- package/dist/esm/Withdrawing/WithdrawNote/WithdrawNote.d.ts.map +1 -0
- package/dist/esm/Withdrawing/WithdrawNote/WithdrawNote.js +42 -0
- package/dist/esm/Withdrawing/WithdrawNote/WithdrawNote.js.map +1 -0
- package/dist/esm/Withdrawing/WithdrawNote/index.d.ts +2 -0
- package/dist/esm/Withdrawing/WithdrawNote/index.d.ts.map +1 -0
- package/dist/esm/Withdrawing/WithdrawNote/index.js +2 -0
- package/dist/esm/Withdrawing/WithdrawNote/index.js.map +1 -0
- package/dist/esm/index.d.ts +13 -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/package.json +3 -0
- package/index.ts +15 -0
- package/package.json +70 -5
- package/README.md +0 -3
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Command, CommandValidator } from '@cratis/arc/commands';
|
|
2
|
+
import { ClearCommandValues, SetCommandValues } from '@cratis/arc.react/commands';
|
|
3
|
+
import { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
|
|
4
|
+
import { NoteContext } from '../../Contracts/Context/NoteContext';
|
|
5
|
+
import { NoteKind } from '../../Contracts/Giving/NoteKind';
|
|
6
|
+
import { SliceLocation } from '../../Contracts/Reporting/SliceLocation';
|
|
7
|
+
import { Guid } from '@cratis/fundamentals';
|
|
8
|
+
export interface IGiveNoteOnSlices {
|
|
9
|
+
context?: NoteContext;
|
|
10
|
+
kind?: NoteKind;
|
|
11
|
+
noteId?: Guid;
|
|
12
|
+
slices?: SliceLocation[];
|
|
13
|
+
text?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class GiveNoteOnSlicesValidator extends CommandValidator<IGiveNoteOnSlices> {
|
|
16
|
+
constructor();
|
|
17
|
+
}
|
|
18
|
+
export declare class GiveNoteOnSlices extends Command<IGiveNoteOnSlices> implements IGiveNoteOnSlices {
|
|
19
|
+
#private;
|
|
20
|
+
static readonly sliceLocation: ArcSliceLocation;
|
|
21
|
+
readonly route: string;
|
|
22
|
+
readonly validation: CommandValidator;
|
|
23
|
+
readonly treatWarningsAsErrors: boolean;
|
|
24
|
+
readonly roles: string[];
|
|
25
|
+
readonly propertyDescriptors: PropertyDescriptor[];
|
|
26
|
+
constructor();
|
|
27
|
+
get requestParameters(): string[];
|
|
28
|
+
get context(): NoteContext;
|
|
29
|
+
set context(value: NoteContext);
|
|
30
|
+
get kind(): NoteKind;
|
|
31
|
+
set kind(value: NoteKind);
|
|
32
|
+
get noteId(): Guid;
|
|
33
|
+
set noteId(value: Guid);
|
|
34
|
+
get slices(): SliceLocation[];
|
|
35
|
+
set slices(value: SliceLocation[]);
|
|
36
|
+
get text(): string;
|
|
37
|
+
set text(value: string);
|
|
38
|
+
static use(initialValues?: IGiveNoteOnSlices): [GiveNoteOnSlices, SetCommandValues<IGiveNoteOnSlices>, ClearCommandValues];
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=GiveNoteOnSlices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GiveNoteOnSlices.d.ts","sourceRoot":"","sources":["../../../../Giving/GiveNoteOnSlices/GiveNoteOnSlices.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAc,MAAM,4BAA4B,CAAC;AAC9F,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAK5C,MAAM,WAAW,iBAAiB;IAK9B,OA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AkB,CAAC;CAG7H"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Command, CommandValidator } from '@cratis/arc/commands';
|
|
2
|
+
import { useCommand } from '@cratis/arc.react/commands';
|
|
3
|
+
import { SliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
|
|
4
|
+
import { NoteContext } from '../../Contracts/Context/NoteContext.js';
|
|
5
|
+
import { SliceLocation as SliceLocation$1 } from '../../Contracts/Reporting/SliceLocation.js';
|
|
6
|
+
import { Guid } from '@cratis/fundamentals';
|
|
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
|
+
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
11
|
+
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnSlices.GiveNoteOnSlices. Time: 2026-11-01T11:55:12.6707473Z. Hash: 381D70328152C05B79679400BC7A4138C7D19582BF2635CC3A6B39553A105A06
|
|
12
|
+
class GiveNoteOnSlicesValidator extends CommandValidator {
|
|
13
|
+
constructor(){
|
|
14
|
+
super();
|
|
15
|
+
this.ruleFor((c)=>c.context).notNull().withMessage('A note needs to know what you were looking at.');
|
|
16
|
+
this.ruleFor((c)=>c.text).notEmpty().withMessage('Write your note.');
|
|
17
|
+
this.ruleFor((c)=>c.text).maxLength(4000).withMessage('Keep the note within 4000 characters.');
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The user explicitly picked one or more slices as the subject of a note. Who gives it is taken from the signed-in identity, never from the request.
|
|
22
|
+
*/ class GiveNoteOnSlices extends Command {
|
|
23
|
+
static sliceLocation = new SliceLocation('', 'Giving', 'GiveNoteOnSlices');
|
|
24
|
+
route = '/api/giving/give-note-on-slices';
|
|
25
|
+
validation = new GiveNoteOnSlicesValidator();
|
|
26
|
+
treatWarningsAsErrors = false;
|
|
27
|
+
roles = [];
|
|
28
|
+
propertyDescriptors = [
|
|
29
|
+
new PropertyDescriptor('context', NoteContext, false),
|
|
30
|
+
new PropertyDescriptor('kind', Number, false),
|
|
31
|
+
new PropertyDescriptor('noteId', Guid, false),
|
|
32
|
+
new PropertyDescriptor('slices', SliceLocation$1, false),
|
|
33
|
+
new PropertyDescriptor('text', String, false)
|
|
34
|
+
];
|
|
35
|
+
#context;
|
|
36
|
+
#kind;
|
|
37
|
+
#noteId;
|
|
38
|
+
#slices;
|
|
39
|
+
#text;
|
|
40
|
+
constructor(){
|
|
41
|
+
super(Object, false);
|
|
42
|
+
}
|
|
43
|
+
get requestParameters() {
|
|
44
|
+
return [];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* What the user is looking at.
|
|
48
|
+
*/ get context() {
|
|
49
|
+
return this.#context;
|
|
50
|
+
}
|
|
51
|
+
set context(value) {
|
|
52
|
+
this.#context = value;
|
|
53
|
+
this.propertyChanged('context');
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* What kind of feedback it is.
|
|
57
|
+
*/ get kind() {
|
|
58
|
+
return this.#kind;
|
|
59
|
+
}
|
|
60
|
+
set kind(value) {
|
|
61
|
+
this.#kind = value;
|
|
62
|
+
this.propertyChanged('kind');
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* The id of the new note, chosen by the caller so a retried command does not give a second note.
|
|
66
|
+
*/ get noteId() {
|
|
67
|
+
return this.#noteId;
|
|
68
|
+
}
|
|
69
|
+
set noteId(value) {
|
|
70
|
+
this.#noteId = value;
|
|
71
|
+
this.propertyChanged('noteId');
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* The slices the user picked; at least one.
|
|
75
|
+
*/ get slices() {
|
|
76
|
+
return this.#slices;
|
|
77
|
+
}
|
|
78
|
+
set slices(value) {
|
|
79
|
+
this.#slices = value;
|
|
80
|
+
this.propertyChanged('slices');
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* What the user writes.
|
|
84
|
+
*/ get text() {
|
|
85
|
+
return this.#text;
|
|
86
|
+
}
|
|
87
|
+
set text(value) {
|
|
88
|
+
this.#text = value;
|
|
89
|
+
this.propertyChanged('text');
|
|
90
|
+
}
|
|
91
|
+
static use(initialValues) {
|
|
92
|
+
return useCommand(GiveNoteOnSlices, initialValues);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export { GiveNoteOnSlices, GiveNoteOnSlicesValidator };
|
|
97
|
+
//# sourceMappingURL=GiveNoteOnSlices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GiveNoteOnSlices.js","sources":["../../../../Giving/GiveNoteOnSlices/GiveNoteOnSlices.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// **DO NOT EDIT** - This file is an automatically generated file.\n// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.GiveNoteOnSlices.GiveNoteOnSlices. Time: 2026-11-01T11:55:12.6707473Z. Hash: 381D70328152C05B79679400BC7A4138C7D19582BF2635CC3A6B39553A105A06\nimport { Command, CommandValidator } from '@cratis/arc/commands';\nimport { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';\nimport { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';\nimport { NoteContext } from '../../Contracts/Context/NoteContext';\nimport { NoteKind } from '../../Contracts/Giving/NoteKind';\nimport { SliceLocation } from '../../Contracts/Reporting/SliceLocation';\nimport { Guid } from '@cratis/fundamentals';\n\n/**\n * The user explicitly picked one or more slices as the subject of a note. Who gives it is taken from the signed-in identity, never from the request.\n */\nexport interface IGiveNoteOnSlices {\n\n /**\n * What the user is looking at.\n */\n context?: NoteContext;\n\n /**\n * What kind of feedback it is.\n */\n kind?: NoteKind;\n\n /**\n * The id of the new note, chosen by the caller so a retried command does not give a second note.\n */\n noteId?: Guid;\n\n /**\n * The slices the user picked; at least one.\n */\n slices?: SliceLocation[];\n\n /**\n * What the user writes.\n */\n text?: string;\n}\n\nexport class GiveNoteOnSlicesValidator extends CommandValidator<IGiveNoteOnSlices> {\n constructor() {\n super();\n this.ruleFor(c => c.context).notNull().withMessage('A note needs to know what you were looking at.');\n this.ruleFor(c => c.text).notEmpty().withMessage('Write your note.');\n this.ruleFor(c => c.text).maxLength(4000).withMessage('Keep the note within 4000 characters.');\n }\n}\n\n/**\n * The user explicitly picked one or more slices as the subject of a note. Who gives it is taken from the signed-in identity, never from the request.\n */\nexport class GiveNoteOnSlices extends Command<IGiveNoteOnSlices> implements IGiveNoteOnSlices {\n static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Giving', 'GiveNoteOnSlices');\n readonly route: string = '/api/giving/give-note-on-slices';\n readonly validation: CommandValidator = new GiveNoteOnSlicesValidator();\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('context', NoteContext, false),\n new PropertyDescriptor('kind', Number, false),\n new PropertyDescriptor('noteId', Guid, false),\n new PropertyDescriptor('slices', SliceLocation, false),\n new PropertyDescriptor('text', String, false),\n ];\n\n #context!: NoteContext;\n #kind!: NoteKind;\n #noteId!: Guid;\n #slices!: SliceLocation[];\n #text!: string;\n\n constructor() {\n super(Object, false);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * What the user is looking at.\n */\n get context(): NoteContext {\n return this.#context;\n }\n\n set context(value: NoteContext) {\n this.#context = value;\n this.propertyChanged('context');\n }\n /**\n * What kind of feedback it is.\n */\n get kind(): NoteKind {\n return this.#kind;\n }\n\n set kind(value: NoteKind) {\n this.#kind = value;\n this.propertyChanged('kind');\n }\n /**\n * The id of the new note, chosen by the caller so a retried command does not give a second note.\n */\n get noteId(): Guid {\n return this.#noteId;\n }\n\n set noteId(value: Guid) {\n this.#noteId = value;\n this.propertyChanged('noteId');\n }\n /**\n * The slices the user picked; at least one.\n */\n get slices(): SliceLocation[] {\n return this.#slices;\n }\n\n set slices(value: SliceLocation[]) {\n this.#slices = value;\n this.propertyChanged('slices');\n }\n /**\n * What the user writes.\n */\n get text(): string {\n return this.#text;\n }\n\n set text(value: string) {\n this.#text = value;\n this.propertyChanged('text');\n }\n\n static use(initialValues?: IGiveNoteOnSlices): [GiveNoteOnSlices, SetCommandValues<IGiveNoteOnSlices>, ClearCommandValues] {\n return useCommand<GiveNoteOnSlices, IGiveNoteOnSlices>(GiveNoteOnSlices, initialValues);\n }\n}\n"],"names":["GiveNoteOnSlicesValidator","CommandValidator","ruleFor","c","context","notNull","withMessage","text","notEmpty","maxLength","GiveNoteOnSlices","Command","sliceLocation","ArcSliceLocation","route","validation","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","NoteContext","Number","Guid","SliceLocation","String","Object","requestParameters","value","propertyChanged","kind","noteId","slices","use","initialValues","useCommand"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AAwCO,MAAMA,yBAAAA,SAAkCC,gBAAAA,CAAAA;IAC3C,WAAA,EAAc;QACV,KAAK,EAAA;QACL,IAAI,CAACC,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEC,OAAO,CAAA,CAAEC,OAAO,EAAA,CAAGC,WAAW,CAAC,gDAAA,CAAA;QACnD,IAAI,CAACJ,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEI,IAAI,CAAA,CAAEC,QAAQ,EAAA,CAAGF,WAAW,CAAC,kBAAA,CAAA;AACjD,QAAA,IAAI,CAACJ,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEI,IAAI,CAAA,CAAEE,SAAS,CAAC,IAAA,CAAA,CAAMH,WAAW,CAAC,uCAAA,CAAA;AAC1D,IAAA;AACJ;AAEA;;IAGO,MAAMI,gBAAAA,SAAyBC,OAAAA,CAAAA;AAClC,IAAA,OAAgBC,aAAAA,GAAkC,IAAIC,aAAAA,CAAiB,EAAA,EAAI,UAAU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AAC,OAAO;AACvB,IAAA;IAEA,IAAIA,MAAAA,CAAOH,KAAW,EAAE;QACpB,IAAI,CAAC,OAAO,GAAGA,KAAAA;QACf,IAAI,CAACC,eAAe,CAAC,QAAA,CAAA;AACzB,IAAA;AACA;;AAEC,QACD,IAAIG,MAAAA,GAA0B;QAC1B,OAAO,IAAI,CAAC,OAAO;AACvB,IAAA;IAEA,IAAIA,MAAAA,CAAOJ,KAAsB,EAAE;QAC/B,IAAI,CAAC,OAAO,GAAGA,KAAAA;QACf,IAAI,CAACC,eAAe,CAAC,QAAA,CAAA;AACzB,IAAA;AACA;;AAEC,QACD,IAAIrB,IAAAA,GAAe;QACf,OAAO,IAAI,CAAC,KAAK;AACrB,IAAA;IAEA,IAAIA,IAAAA,CAAKoB,KAAa,EAAE;QACpB,IAAI,CAAC,KAAK,GAAGA,KAAAA;QACb,IAAI,CAACC,eAAe,CAAC,MAAA,CAAA;AACzB,IAAA;IAEA,OAAOI,GAAAA,CAAIC,aAAiC,EAA+E;AACvH,QAAA,OAAOC,WAAgDxB,gBAAAA,EAAkBuB,aAAAA,CAAAA;AAC7E,IAAA;AACJ;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../Giving/GiveNoteOnSlices/index.ts"],"names":[],"mappings":"AAGA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Giving/GiveNoteOnSlices/index.ts"],"names":[],"mappings":"AAGA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Command, CommandValidator } from '@cratis/arc/commands';
|
|
2
|
+
import { ClearCommandValues, SetCommandValues } from '@cratis/arc.react/commands';
|
|
3
|
+
import { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
|
|
4
|
+
import { PickedComponent } from '../../Contracts/Components/PickedComponent';
|
|
5
|
+
import { NoteContext } from '../../Contracts/Context/NoteContext';
|
|
6
|
+
import { Guid } from '@cratis/fundamentals';
|
|
7
|
+
export interface ISuggestComponentPropertyChange {
|
|
8
|
+
component?: PickedComponent;
|
|
9
|
+
context?: NoteContext;
|
|
10
|
+
currentValue?: string;
|
|
11
|
+
noteId?: Guid;
|
|
12
|
+
property?: string;
|
|
13
|
+
suggestedValue?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class SuggestComponentPropertyChangeValidator extends CommandValidator<ISuggestComponentPropertyChange> {
|
|
16
|
+
constructor();
|
|
17
|
+
}
|
|
18
|
+
export declare class SuggestComponentPropertyChange extends Command<ISuggestComponentPropertyChange> implements ISuggestComponentPropertyChange {
|
|
19
|
+
#private;
|
|
20
|
+
static readonly sliceLocation: ArcSliceLocation;
|
|
21
|
+
readonly route: string;
|
|
22
|
+
readonly validation: CommandValidator;
|
|
23
|
+
readonly treatWarningsAsErrors: boolean;
|
|
24
|
+
readonly roles: string[];
|
|
25
|
+
readonly propertyDescriptors: PropertyDescriptor[];
|
|
26
|
+
constructor();
|
|
27
|
+
get requestParameters(): string[];
|
|
28
|
+
get component(): PickedComponent;
|
|
29
|
+
set component(value: PickedComponent);
|
|
30
|
+
get context(): NoteContext;
|
|
31
|
+
set context(value: NoteContext);
|
|
32
|
+
get currentValue(): string;
|
|
33
|
+
set currentValue(value: string);
|
|
34
|
+
get noteId(): Guid;
|
|
35
|
+
set noteId(value: Guid);
|
|
36
|
+
get property(): string;
|
|
37
|
+
set property(value: string);
|
|
38
|
+
get suggestedValue(): string;
|
|
39
|
+
set suggestedValue(value: string);
|
|
40
|
+
static use(initialValues?: ISuggestComponentPropertyChange): [SuggestComponentPropertyChange, SetCommandValues<ISuggestComponentPropertyChange>, ClearCommandValues];
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=SuggestComponentPropertyChange.d.ts.map
|
package/dist/esm/Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.d.ts.map
AD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B,IAAI,MAAM,EAAE,CAGhC;IAKD,IAAI,SAAS,IAAI,eAAe,CAE/B;IAED,IAAI,SAAS,CAAC,KAAK,EAAE,eAAe,EAGnC;IAID,IAAI,OAAO,IAAI,WAAW,CAEzB;IAED,IAAI,OAAO,CAAC,KAAK,EAAE,WAAW,EAG7B;IAID,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED,IAAI,YAAY,CAAC,KAAK,EAAE,MAAM,EAG7B;IAID,IAAI,MAAM,IAAI,IAAI,CAEjB;IAED,IAAI,MAAM,CAAC,KAAK,EAAE,IAAI,EAGrB;IAID,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,QAAQ,CAAC,KAAK,EAAE,MAAM,EAGzB;IAID,IAAI,cAAc,IAAI,MAAM,CAE3B;IAED,IAAI,cAAc,CAAC,KAAK,EAAE,MAAM,EAG/B;IAED,MAAM,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,+BAA+B,GAAG,CAAC,8BAA8B,EAAE,gBAAgB,CAAC,+BAA+B,CAAC,EAAE,kBAAkB,CAAC;CAGvK"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { Command, CommandValidator } from '@cratis/arc/commands';
|
|
2
|
+
import { useCommand } from '@cratis/arc.react/commands';
|
|
3
|
+
import { SliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';
|
|
4
|
+
import { PickedComponent } from '../../Contracts/Components/PickedComponent.js';
|
|
5
|
+
import { NoteContext } from '../../Contracts/Context/NoteContext.js';
|
|
6
|
+
import { Guid } from '@cratis/fundamentals';
|
|
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
|
+
// **DO NOT EDIT** - This file is an automatically generated file.
|
|
11
|
+
// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.SuggestComponentPropertyChange.SuggestComponentPropertyChange. Time: 2026-11-01T11:55:12.6707473Z. Hash: 6C7D0524C92397ABC562D8899CC17DDFA41C162C4EA857CB8299EE032524934C
|
|
12
|
+
class SuggestComponentPropertyChangeValidator extends CommandValidator {
|
|
13
|
+
constructor(){
|
|
14
|
+
super();
|
|
15
|
+
this.ruleFor((c)=>c.component).notNull().withMessage('Pick a component.');
|
|
16
|
+
this.ruleFor((c)=>c.context).notNull().withMessage('A note needs to know what you were looking at.');
|
|
17
|
+
this.ruleFor((c)=>c.currentValue).maxLength(1000).withMessage('Keep the current value within 1000 characters.');
|
|
18
|
+
this.ruleFor((c)=>c.property).notEmpty().withMessage('Name the property you suggest changing.');
|
|
19
|
+
this.ruleFor((c)=>c.suggestedValue).maxLength(1000).withMessage('Keep the suggested value within 1000 characters.');
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The user changed a presentation property of a component in the picker. There is one command per property; the suggestions of one picking session share the note id, which is also the note id of the text they may write about the component. Who suggests it is taken from the signed-in identity, never from the request.
|
|
24
|
+
*/ class SuggestComponentPropertyChange extends Command {
|
|
25
|
+
static sliceLocation = new SliceLocation('', 'Giving', 'SuggestComponentPropertyChange');
|
|
26
|
+
route = '/api/giving/suggest-component-property-change';
|
|
27
|
+
validation = new SuggestComponentPropertyChangeValidator();
|
|
28
|
+
treatWarningsAsErrors = false;
|
|
29
|
+
roles = [];
|
|
30
|
+
propertyDescriptors = [
|
|
31
|
+
new PropertyDescriptor('component', PickedComponent, false),
|
|
32
|
+
new PropertyDescriptor('context', NoteContext, false),
|
|
33
|
+
new PropertyDescriptor('currentValue', String, false),
|
|
34
|
+
new PropertyDescriptor('noteId', Guid, false),
|
|
35
|
+
new PropertyDescriptor('property', String, false),
|
|
36
|
+
new PropertyDescriptor('suggestedValue', String, false)
|
|
37
|
+
];
|
|
38
|
+
#component;
|
|
39
|
+
#context;
|
|
40
|
+
#currentValue;
|
|
41
|
+
#noteId;
|
|
42
|
+
#property;
|
|
43
|
+
#suggestedValue;
|
|
44
|
+
constructor(){
|
|
45
|
+
super(Object, false);
|
|
46
|
+
}
|
|
47
|
+
get requestParameters() {
|
|
48
|
+
return [];
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The component the user picked.
|
|
52
|
+
*/ get component() {
|
|
53
|
+
return this.#component;
|
|
54
|
+
}
|
|
55
|
+
set component(value) {
|
|
56
|
+
this.#component = value;
|
|
57
|
+
this.propertyChanged('component');
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* What the user is looking at.
|
|
61
|
+
*/ get context() {
|
|
62
|
+
return this.#context;
|
|
63
|
+
}
|
|
64
|
+
set context(value) {
|
|
65
|
+
this.#context = value;
|
|
66
|
+
this.propertyChanged('context');
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* The value the property has.
|
|
70
|
+
*/ get currentValue() {
|
|
71
|
+
return this.#currentValue;
|
|
72
|
+
}
|
|
73
|
+
set currentValue(value) {
|
|
74
|
+
this.#currentValue = value;
|
|
75
|
+
this.propertyChanged('currentValue');
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The id of the picking session's note: new, or the one the session's earlier suggestions were made on.
|
|
79
|
+
*/ get noteId() {
|
|
80
|
+
return this.#noteId;
|
|
81
|
+
}
|
|
82
|
+
set noteId(value) {
|
|
83
|
+
this.#noteId = value;
|
|
84
|
+
this.propertyChanged('noteId');
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The property the user changed.
|
|
88
|
+
*/ get property() {
|
|
89
|
+
return this.#property;
|
|
90
|
+
}
|
|
91
|
+
set property(value) {
|
|
92
|
+
this.#property = value;
|
|
93
|
+
this.propertyChanged('property');
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* The value the user suggests.
|
|
97
|
+
*/ get suggestedValue() {
|
|
98
|
+
return this.#suggestedValue;
|
|
99
|
+
}
|
|
100
|
+
set suggestedValue(value) {
|
|
101
|
+
this.#suggestedValue = value;
|
|
102
|
+
this.propertyChanged('suggestedValue');
|
|
103
|
+
}
|
|
104
|
+
static use(initialValues) {
|
|
105
|
+
return useCommand(SuggestComponentPropertyChange, initialValues);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export { SuggestComponentPropertyChange, SuggestComponentPropertyChangeValidator };
|
|
110
|
+
//# sourceMappingURL=SuggestComponentPropertyChange.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SuggestComponentPropertyChange.js","sources":["../../../../Giving/SuggestComponentPropertyChange/SuggestComponentPropertyChange.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// **DO NOT EDIT** - This file is an automatically generated file.\n// @generated by Cratis. Source: Cratis.Showrunner.Notes.Giving.SuggestComponentPropertyChange.SuggestComponentPropertyChange. Time: 2026-11-01T11:55:12.6707473Z. Hash: 6C7D0524C92397ABC562D8899CC17DDFA41C162C4EA857CB8299EE032524934C\nimport { Command, CommandValidator } from '@cratis/arc/commands';\nimport { ClearCommandValues, SetCommandValues, useCommand } from '@cratis/arc.react/commands';\nimport { SliceLocation as ArcSliceLocation, PropertyDescriptor } from '@cratis/arc/reflection';\nimport { PickedComponent } from '../../Contracts/Components/PickedComponent';\nimport { NoteContext } from '../../Contracts/Context/NoteContext';\nimport { Guid } from '@cratis/fundamentals';\n\n/**\n * The user changed a presentation property of a component in the picker. There is one command per property; the suggestions of one picking session share the note id, which is also the note id of the text they may write about the component. Who suggests it is taken from the signed-in identity, never from the request.\n */\nexport interface ISuggestComponentPropertyChange {\n\n /**\n * The component the user picked.\n */\n component?: PickedComponent;\n\n /**\n * What the user is looking at.\n */\n context?: NoteContext;\n\n /**\n * The value the property has.\n */\n currentValue?: string;\n\n /**\n * The id of the picking session's note: new, or the one the session's earlier suggestions were made on.\n */\n noteId?: Guid;\n\n /**\n * The property the user changed.\n */\n property?: string;\n\n /**\n * The value the user suggests.\n */\n suggestedValue?: string;\n}\n\nexport class SuggestComponentPropertyChangeValidator extends CommandValidator<ISuggestComponentPropertyChange> {\n constructor() {\n super();\n this.ruleFor(c => c.component).notNull().withMessage('Pick a component.');\n this.ruleFor(c => c.context).notNull().withMessage('A note needs to know what you were looking at.');\n this.ruleFor(c => c.currentValue).maxLength(1000).withMessage('Keep the current value within 1000 characters.');\n this.ruleFor(c => c.property).notEmpty().withMessage('Name the property you suggest changing.');\n this.ruleFor(c => c.suggestedValue).maxLength(1000).withMessage('Keep the suggested value within 1000 characters.');\n }\n}\n\n/**\n * The user changed a presentation property of a component in the picker. There is one command per property; the suggestions of one picking session share the note id, which is also the note id of the text they may write about the component. Who suggests it is taken from the signed-in identity, never from the request.\n */\nexport class SuggestComponentPropertyChange extends Command<ISuggestComponentPropertyChange> implements ISuggestComponentPropertyChange {\n static readonly sliceLocation: ArcSliceLocation = new ArcSliceLocation('', 'Giving', 'SuggestComponentPropertyChange');\n readonly route: string = '/api/giving/suggest-component-property-change';\n readonly validation: CommandValidator = new SuggestComponentPropertyChangeValidator();\n readonly treatWarningsAsErrors: boolean = false;\n readonly roles: string[] = [];\n readonly propertyDescriptors: PropertyDescriptor[] = [\n new PropertyDescriptor('component', PickedComponent, false),\n new PropertyDescriptor('context', NoteContext, false),\n new PropertyDescriptor('currentValue', String, false),\n new PropertyDescriptor('noteId', Guid, false),\n new PropertyDescriptor('property', String, false),\n new PropertyDescriptor('suggestedValue', String, false),\n ];\n\n #component!: PickedComponent;\n #context!: NoteContext;\n #currentValue!: string;\n #noteId!: Guid;\n #property!: string;\n #suggestedValue!: string;\n\n constructor() {\n super(Object, false);\n }\n\n get requestParameters(): string[] {\n return [\n ];\n }\n\n /**\n * The component the user picked.\n */\n get component(): PickedComponent {\n return this.#component;\n }\n\n set component(value: PickedComponent) {\n this.#component = value;\n this.propertyChanged('component');\n }\n /**\n * What the user is looking at.\n */\n get context(): NoteContext {\n return this.#context;\n }\n\n set context(value: NoteContext) {\n this.#context = value;\n this.propertyChanged('context');\n }\n /**\n * The value the property has.\n */\n get currentValue(): string {\n return this.#currentValue;\n }\n\n set currentValue(value: string) {\n this.#currentValue = value;\n this.propertyChanged('currentValue');\n }\n /**\n * The id of the picking session's note: new, or the one the session's earlier suggestions were made on.\n */\n get noteId(): Guid {\n return this.#noteId;\n }\n\n set noteId(value: Guid) {\n this.#noteId = value;\n this.propertyChanged('noteId');\n }\n /**\n * The property the user changed.\n */\n get property(): string {\n return this.#property;\n }\n\n set property(value: string) {\n this.#property = value;\n this.propertyChanged('property');\n }\n /**\n * The value the user suggests.\n */\n get suggestedValue(): string {\n return this.#suggestedValue;\n }\n\n set suggestedValue(value: string) {\n this.#suggestedValue = value;\n this.propertyChanged('suggestedValue');\n }\n\n static use(initialValues?: ISuggestComponentPropertyChange): [SuggestComponentPropertyChange, SetCommandValues<ISuggestComponentPropertyChange>, ClearCommandValues] {\n return useCommand<SuggestComponentPropertyChange, ISuggestComponentPropertyChange>(SuggestComponentPropertyChange, initialValues);\n }\n}\n"],"names":["SuggestComponentPropertyChangeValidator","CommandValidator","ruleFor","c","component","notNull","withMessage","context","currentValue","maxLength","property","notEmpty","suggestedValue","SuggestComponentPropertyChange","Command","sliceLocation","ArcSliceLocation","route","validation","treatWarningsAsErrors","roles","propertyDescriptors","PropertyDescriptor","PickedComponent","NoteContext","String","Guid","Object","requestParameters","value","propertyChanged","noteId","use","initialValues","useCommand"],"mappings":";;;;;;;AAAA;AACA;AAEA;AACA;AA4CO,MAAMA,uCAAAA,SAAgDC,gBAAAA,CAAAA;IACzD,WAAA,EAAc;QACV,KAAK,EAAA;QACL,IAAI,CAACC,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEC,SAAS,CAAA,CAAEC,OAAO,EAAA,CAAGC,WAAW,CAAC,mBAAA,CAAA;QACrD,IAAI,CAACJ,OAAO,CAACC,CAAAA,CAAAA,GAAKA,CAAAA,CAAEI,OAAO,CAAA,CAAEF,OAAO,EAAA,CAAGC,WAAW,CAAC,gDAAA,CAAA;AACnD,QAAA,IAA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B,IAAA;AACA;;AAEC,QACD,IAAIlB,cAAAA,GAAyB;QACzB,OAAO,IAAI,CAAC,eAAe;AAC/B,IAAA;IAEA,IAAIA,cAAAA,CAAeiB,KAAa,EAAE;QAC9B,IAAI,CAAC,eAAe,GAAGA,KAAAA;QACvB,IAAI,CAACC,eAAe,CAAC,gBAAA,CAAA;AACzB,IAAA;IAEA,OAAOE,GAAAA,CAAIC,aAA+C,EAA2G;AACjK,QAAA,OAAOC,WAA4ErB,8BAAAA,EAAgCoB,aAAAA,CAAAA;AACvH,IAAA;AACJ;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../Giving/SuggestComponentPropertyChange/index.ts"],"names":[],"mappings":"AAGA,cAAc,kCAAkC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Giving/SuggestComponentPropertyChange/index.ts"],"names":[],"mappings":"AAGA,cAAc,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { ChangeSet, ObservableQueryFor, QueryResultWithState, Sorting, SortingActions, SortingActionsForObservableQuery } from '@cratis/arc/queries';
|
|
2
|
+
import { ObservableQueryWhen, SetPage, SetPageSize, SetSorting } from '@cratis/arc.react/queries';
|
|
3
|
+
import { SliceLocation as ArcSliceLocation, ParameterDescriptor } from '@cratis/arc/reflection';
|
|
4
|
+
import { Guid } from '@cratis/fundamentals';
|
|
5
|
+
import { NoteKind } from '../Contracts/Giving/NoteKind';
|
|
6
|
+
import { NoteScreen } from '../Contracts/Context/NoteScreen';
|
|
7
|
+
import { NoteStatus } from './NoteStatus';
|
|
8
|
+
import { NoteTarget } from './NoteTarget';
|
|
9
|
+
import { SliceLocation } from '../Contracts/Reporting/SliceLocation';
|
|
10
|
+
import { SuggestedPropertyChange } from './SuggestedPropertyChange';
|
|
11
|
+
declare class MyNotesSortBy {
|
|
12
|
+
readonly query: MyNotes;
|
|
13
|
+
private _component;
|
|
14
|
+
private _givenAt;
|
|
15
|
+
private _givenBy;
|
|
16
|
+
private _id;
|
|
17
|
+
private _kind;
|
|
18
|
+
private _lastActivityAt;
|
|
19
|
+
private _location;
|
|
20
|
+
private _propertyChanges;
|
|
21
|
+
private _screen;
|
|
22
|
+
private _slices;
|
|
23
|
+
private _status;
|
|
24
|
+
private _statusDetail;
|
|
25
|
+
private _target;
|
|
26
|
+
private _text;
|
|
27
|
+
constructor(query: MyNotes);
|
|
28
|
+
get component(): SortingActionsForObservableQuery<MyNote[]>;
|
|
29
|
+
get givenAt(): SortingActionsForObservableQuery<MyNote[]>;
|
|
30
|
+
get givenBy(): SortingActionsForObservableQuery<MyNote[]>;
|
|
31
|
+
get id(): SortingActionsForObservableQuery<MyNote[]>;
|
|
32
|
+
get kind(): SortingActionsForObservableQuery<MyNote[]>;
|
|
33
|
+
get lastActivityAt(): SortingActionsForObservableQuery<MyNote[]>;
|
|
34
|
+
get location(): SortingActionsForObservableQuery<MyNote[]>;
|
|
35
|
+
get propertyChanges(): SortingActionsForObservableQuery<MyNote[]>;
|
|
36
|
+
get screen(): SortingActionsForObservableQuery<MyNote[]>;
|
|
37
|
+
get slices(): SortingActionsForObservableQuery<MyNote[]>;
|
|
38
|
+
get status(): SortingActionsForObservableQuery<MyNote[]>;
|
|
39
|
+
get statusDetail(): SortingActionsForObservableQuery<MyNote[]>;
|
|
40
|
+
get target(): SortingActionsForObservableQuery<MyNote[]>;
|
|
41
|
+
get text(): SortingActionsForObservableQuery<MyNote[]>;
|
|
42
|
+
}
|
|
43
|
+
declare class MyNotesSortByWithoutQuery {
|
|
44
|
+
private _component;
|
|
45
|
+
private _givenAt;
|
|
46
|
+
private _givenBy;
|
|
47
|
+
private _id;
|
|
48
|
+
private _kind;
|
|
49
|
+
private _lastActivityAt;
|
|
50
|
+
private _location;
|
|
51
|
+
private _propertyChanges;
|
|
52
|
+
private _screen;
|
|
53
|
+
private _slices;
|
|
54
|
+
private _status;
|
|
55
|
+
private _statusDetail;
|
|
56
|
+
private _target;
|
|
57
|
+
private _text;
|
|
58
|
+
get component(): SortingActions;
|
|
59
|
+
get givenAt(): SortingActions;
|
|
60
|
+
get givenBy(): SortingActions;
|
|
61
|
+
get id(): SortingActions;
|
|
62
|
+
get kind(): SortingActions;
|
|
63
|
+
get lastActivityAt(): SortingActions;
|
|
64
|
+
get location(): SortingActions;
|
|
65
|
+
get propertyChanges(): SortingActions;
|
|
66
|
+
get screen(): SortingActions;
|
|
67
|
+
get slices(): SortingActions;
|
|
68
|
+
get status(): SortingActions;
|
|
69
|
+
get statusDetail(): SortingActions;
|
|
70
|
+
get target(): SortingActions;
|
|
71
|
+
get text(): SortingActions;
|
|
72
|
+
}
|
|
73
|
+
export declare class MyNotes extends ObservableQueryFor<MyNote[]> {
|
|
74
|
+
static readonly sliceLocation: ArcSliceLocation;
|
|
75
|
+
readonly route: string;
|
|
76
|
+
readonly queryName: string;
|
|
77
|
+
readonly treatWarningsAsErrors: boolean;
|
|
78
|
+
readonly roles: string[];
|
|
79
|
+
readonly defaultValue: MyNote[];
|
|
80
|
+
private readonly _sortBy;
|
|
81
|
+
private static readonly _sortBy;
|
|
82
|
+
constructor();
|
|
83
|
+
get requiredRequestParameters(): string[];
|
|
84
|
+
readonly parameterDescriptors: ParameterDescriptor[];
|
|
85
|
+
get sortBy(): MyNotesSortBy;
|
|
86
|
+
static get sortBy(): MyNotesSortByWithoutQuery;
|
|
87
|
+
static use(sorting?: Sorting): [QueryResultWithState<MyNote[]>, SetSorting];
|
|
88
|
+
static useWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<MyNote[]>, SetSorting, SetPage, SetPageSize];
|
|
89
|
+
static useSuspense(sorting?: Sorting): [QueryResultWithState<MyNote[]>, SetSorting];
|
|
90
|
+
static useSuspenseWithPaging(pageSize: number, sorting?: Sorting): [QueryResultWithState<MyNote[]>, SetSorting, SetPage, SetPageSize];
|
|
91
|
+
static useChangeStream(getKey?: (item: MyNote) => unknown, sorting?: Sorting): ChangeSet<MyNote>;
|
|
92
|
+
static when(condition: boolean): ObservableQueryWhen<MyNotes, MyNote[]>;
|
|
93
|
+
}
|
|
94
|
+
export declare class MyNote {
|
|
95
|
+
id: Guid;
|
|
96
|
+
givenBy: string;
|
|
97
|
+
target: NoteTarget;
|
|
98
|
+
kind: NoteKind;
|
|
99
|
+
text: string;
|
|
100
|
+
location: SliceLocation;
|
|
101
|
+
screen: NoteScreen;
|
|
102
|
+
slices: SliceLocation[];
|
|
103
|
+
component: string;
|
|
104
|
+
propertyChanges: SuggestedPropertyChange[];
|
|
105
|
+
status: NoteStatus;
|
|
106
|
+
statusDetail: string;
|
|
107
|
+
givenAt: Date;
|
|
108
|
+
lastActivityAt: Date;
|
|
109
|
+
}
|
|
110
|
+
export {};
|
|
111
|
+
//# sourceMappingURL=MyNote.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MyNote.d.ts","sourceRoot":"","sources":["../../../Listing/MyNote.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAU,oBAAoB,EAAE,OAAO,EAAE,cAAc,EAAE,gCAAgC,EAAE,MAAM,qBAAqB,CAAC;AAC7J,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAuI,MAAM,2BAA2B,CAAC;AACvO,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAChG,OAAO,EAAE,IAAI,EAAS,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE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