@flarehr/superhero-basic-profile 0.1.2217 → 0.1.2223

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.
Files changed (76) hide show
  1. package/dist/assets/delete.dcc7b157.svg +5 -0
  2. package/dist/assets/dialog-warning.cc77f3ba.svg +5 -0
  3. package/dist/assets/pencil.05fe6be6.svg +5 -0
  4. package/dist/index.html +20 -0
  5. package/dist/superhero-basic-profile.js +50 -0
  6. package/package.json +1 -1
  7. package/dist/App.jsx +0 -4
  8. package/dist/Basic.Profile.Domain/AnalyticsEvent.jsx +0 -102
  9. package/dist/Basic.Profile.Domain/Audit.jsx +0 -149
  10. package/dist/Basic.Profile.Domain/Commands.jsx +0 -68
  11. package/dist/Basic.Profile.Domain/CommonTypes.jsx +0 -194
  12. package/dist/Basic.Profile.Domain/Config/Api/Admin/Read.jsx +0 -58
  13. package/dist/Basic.Profile.Domain/Config/Api/Admin/Write.jsx +0 -23
  14. package/dist/Basic.Profile.Domain/Config/Api/FlareAdminShell/Read.jsx +0 -35
  15. package/dist/Basic.Profile.Domain/Config/Commands.jsx +0 -72
  16. package/dist/Basic.Profile.Domain/Config/ConfigCommandHandler.jsx +0 -197
  17. package/dist/Basic.Profile.Domain/Config/Dto.jsx +0 -181
  18. package/dist/Basic.Profile.Domain/Config/Types.jsx +0 -152
  19. package/dist/Basic.Profile.Domain/DateTimeProvider.jsx +0 -23
  20. package/dist/Basic.Profile.Domain/DomainAggregates.jsx +0 -801
  21. package/dist/Basic.Profile.Domain/DomainPrimitives.jsx +0 -426
  22. package/dist/Basic.Profile.Domain/Dto/Aggregates.jsx +0 -564
  23. package/dist/Basic.Profile.Domain/Dto/AnalyticsEvent.jsx +0 -157
  24. package/dist/Basic.Profile.Domain/Dto/Api/Backend/Common.jsx +0 -102
  25. package/dist/Basic.Profile.Domain/Dto/Api/Backend/Read.jsx +0 -85
  26. package/dist/Basic.Profile.Domain/Dto/Api/Backend/Write.jsx +0 -16
  27. package/dist/Basic.Profile.Domain/Dto/Api/Common.jsx +0 -427
  28. package/dist/Basic.Profile.Domain/Dto/Api/External/Read.jsx +0 -118
  29. package/dist/Basic.Profile.Domain/Dto/Api/External/ReadV2.jsx +0 -6
  30. package/dist/Basic.Profile.Domain/Dto/Api/External/Write.jsx +0 -184
  31. package/dist/Basic.Profile.Domain/Dto/Api/External/WriteV2.jsx +0 -439
  32. package/dist/Basic.Profile.Domain/Dto/Api/FlareAdminShell/Read.jsx +0 -38
  33. package/dist/Basic.Profile.Domain/Dto/Api/FlareAdminShell/Write.jsx +0 -199
  34. package/dist/Basic.Profile.Domain/Dto/Api/Internal/Read.jsx +0 -125
  35. package/dist/Basic.Profile.Domain/Dto/Audit.jsx +0 -121
  36. package/dist/Basic.Profile.Domain/Dto/Commands.jsx +0 -256
  37. package/dist/Basic.Profile.Domain/Dto/Common.jsx +0 -84
  38. package/dist/Basic.Profile.Domain/Dto/Events.jsx +0 -220
  39. package/dist/Basic.Profile.Domain/Dto/Primitives.jsx +0 -580
  40. package/dist/Basic.Profile.Domain/Dto/ProfileCreationModels.jsx +0 -324
  41. package/dist/Basic.Profile.Domain/Dto/Validation.jsx +0 -229
  42. package/dist/Basic.Profile.Domain/Events.jsx +0 -64
  43. package/dist/Basic.Profile.Domain/Import/Api/InternalApi/Read.jsx +0 -140
  44. package/dist/Basic.Profile.Domain/Import/Api/InternalApi/Validation.jsx +0 -499
  45. package/dist/Basic.Profile.Domain/Import/Api/InternalApi/Write.jsx +0 -51
  46. package/dist/Basic.Profile.Domain/Import/Api/Read.jsx +0 -154
  47. package/dist/Basic.Profile.Domain/Import/CommonTypes.jsx +0 -187
  48. package/dist/Basic.Profile.Domain/Import/Dto.jsx +0 -475
  49. package/dist/Basic.Profile.Domain/Import/ImportCommandHandler.jsx +0 -531
  50. package/dist/Basic.Profile.Domain/Import/Types.jsx +0 -405
  51. package/dist/Basic.Profile.Domain/JwtPayload.jsx +0 -44
  52. package/dist/Basic.Profile.Domain/Metadata.jsx +0 -257
  53. package/dist/Basic.Profile.Domain/ProfileCommandHandler.jsx +0 -261
  54. package/dist/Basic.Profile.Domain/ProfileModels.jsx +0 -59
  55. package/dist/Basic.Profile.Domain/Utils.jsx +0 -372
  56. package/dist/Common/PreactCustomElement.jsx +0 -8
  57. package/dist/Common/Resources.jsx +0 -20
  58. package/dist/Common/Tailwind.jsx +0 -8
  59. package/dist/Common/Utils.jsx +0 -18
  60. package/dist/Directory/App.jsx +0 -192
  61. package/dist/Directory/BackendServices/Common.jsx +0 -115
  62. package/dist/Directory/BackendServices/ConfigService.jsx +0 -168
  63. package/dist/Directory/BackendServices/ImportService.jsx +0 -137
  64. package/dist/Directory/Common.jsx +0 -93
  65. package/dist/Directory/Config/Components.jsx +0 -173
  66. package/dist/Directory/Config/Types.jsx +0 -187
  67. package/dist/Directory/PastImports/PastImports.jsx +0 -81
  68. package/dist/Directory/ProfileImport/ProfileImport.jsx +0 -284
  69. package/dist/Directory/ProfileImport/Types.jsx +0 -91
  70. package/dist/Directory/TabNav.jsx +0 -24
  71. package/dist/Directory/Types.jsx +0 -101
  72. package/dist/Directory/User.jsx +0 -117
  73. package/dist/HeadlessUI/Dialog.jsx +0 -66
  74. package/dist/HeadlessUI/ModalDialog.jsx +0 -74
  75. package/dist/HeadlessUI/Switch.jsx +0 -66
  76. package/dist/HeadlessUI/Transition.jsx +0 -66
@@ -1,66 +0,0 @@
1
- import { Union } from "../fable_modules/fable-library-js.4.20.0/Types.js";
2
- import { union_type, class_type, lambda_type, unit_type, bool_type, obj_type, string_type } from "../fable_modules/fable-library-js.4.20.0/Reflection.js";
3
- import { keyValueList } from "../fable_modules/fable-library-js.4.20.0/MapUtil.js";
4
- import * as react from "react";
5
- import { Dialog } from "@headlessui/react";
6
-
7
- export class Props extends Union {
8
- constructor(tag, fields) {
9
- super();
10
- this.tag = tag;
11
- this.fields = fields;
12
- }
13
- cases() {
14
- return ["As", "Key", "ClassName", "Open", "OnClose", "Children"];
15
- }
16
- }
17
-
18
- export function Props_$reflection() {
19
- return union_type("Basic.Profile.UI.Superhero.HeadlessUI.Dialog.Props", [], Props, () => [[["Item", string_type]], [["Item", string_type]], [["Item", obj_type]], [["Item", bool_type]], [["Item", lambda_type(unit_type, unit_type)]], [["Item", class_type("System.Collections.Generic.IEnumerable`1", [class_type("Fable.React.ReactElement")])]]]);
20
- }
21
-
22
- export function Component(props) {
23
- const props_1 = keyValueList(props, 1);
24
- return react.createElement(Dialog, props_1);
25
- }
26
-
27
- export class Panel_Props extends Union {
28
- constructor(tag, fields) {
29
- super();
30
- this.tag = tag;
31
- this.fields = fields;
32
- }
33
- cases() {
34
- return ["Key", "ClassName", "Children"];
35
- }
36
- }
37
-
38
- export function Panel_Props_$reflection() {
39
- return union_type("Basic.Profile.UI.Superhero.HeadlessUI.Dialog.Panel.Props", [], Panel_Props, () => [[["Item", string_type]], [["Item", obj_type]], [["Item", class_type("System.Collections.Generic.IEnumerable`1", [class_type("Fable.React.ReactElement")])]]]);
40
- }
41
-
42
- export function Panel_Component(props) {
43
- const props_1 = keyValueList(props, 1);
44
- return react.createElement(Dialog.Panel, props_1);
45
- }
46
-
47
- export class Title_Props extends Union {
48
- constructor(tag, fields) {
49
- super();
50
- this.tag = tag;
51
- this.fields = fields;
52
- }
53
- cases() {
54
- return ["As", "Key", "ClassName", "Children"];
55
- }
56
- }
57
-
58
- export function Title_Props_$reflection() {
59
- return union_type("Basic.Profile.UI.Superhero.HeadlessUI.Dialog.Title.Props", [], Title_Props, () => [[["Item", string_type]], [["Item", string_type]], [["Item", obj_type]], [["Item", class_type("System.Collections.Generic.IEnumerable`1", [class_type("Fable.React.ReactElement")])]]]);
60
- }
61
-
62
- export function Title_Component(props) {
63
- const props_1 = keyValueList(props, 1);
64
- return react.createElement(Dialog.Title, props_1);
65
- }
66
-
@@ -1,74 +0,0 @@
1
- import { Record, Union } from "../fable_modules/fable-library-js.4.20.0/Types.js";
2
- import { record_type, lambda_type, unit_type, option_type, class_type, string_type, bool_type, union_type } from "../fable_modules/fable-library-js.4.20.0/Reflection.js";
3
- import { Child_Props, Child_Component, Root_Props, Root_Component } from "./Transition.jsx";
4
- import { Title_Props, Title_Component, Panel_Props, Panel_Component, Props as Props_1, Component as Component_1 } from "./Dialog.jsx";
5
- import { ofArray } from "../fable_modules/fable-library-js.4.20.0/List.js";
6
- import { createElement } from "react";
7
- import { createObj } from "../fable_modules/fable-library-js.4.20.0/Util.js";
8
- import { singleton, empty, append, delay, toList } from "../fable_modules/fable-library-js.4.20.0/Seq.js";
9
- import { reactApi } from "../fable_modules/Feliz.2.8.0/Interop.fs.js";
10
-
11
- export class OkButtonTheme extends Union {
12
- constructor(tag, fields) {
13
- super();
14
- this.tag = tag;
15
- this.fields = fields;
16
- }
17
- cases() {
18
- return ["Primary", "Warning"];
19
- }
20
- }
21
-
22
- export function OkButtonTheme_$reflection() {
23
- return union_type("Basic.Profile.UI.Superhero.HeadlessUI.ModalDialog.OkButtonTheme", [], OkButtonTheme, () => [[], []]);
24
- }
25
-
26
- export class Props extends Record {
27
- constructor(show, title, message, dialogIcon, okButtonText, okButtonClick, okButtonThem, cancelButtonText, cancelButtonClick) {
28
- super();
29
- this.show = show;
30
- this.title = title;
31
- this.message = message;
32
- this.dialogIcon = dialogIcon;
33
- this.okButtonText = okButtonText;
34
- this.okButtonClick = okButtonClick;
35
- this.okButtonThem = okButtonThem;
36
- this.cancelButtonText = cancelButtonText;
37
- this.cancelButtonClick = cancelButtonClick;
38
- }
39
- }
40
-
41
- export function Props_$reflection() {
42
- return record_type("Basic.Profile.UI.Superhero.HeadlessUI.ModalDialog.Props", [], Props, () => [["show", bool_type], ["title", string_type], ["message", string_type], ["dialogIcon", option_type(class_type("Fable.React.ReactElement"))], ["okButtonText", string_type], ["okButtonClick", lambda_type(unit_type, unit_type)], ["okButtonThem", OkButtonTheme_$reflection()], ["cancelButtonText", string_type], ["cancelButtonClick", lambda_type(unit_type, unit_type)]]);
43
- }
44
-
45
- export function Component(props) {
46
- let elems_6, elems_5, elems_3, elems_4;
47
- return Root_Component(ofArray([new Root_Props(0, ["1"]), new Root_Props(2, [props.show]), new Root_Props(3, [[Component_1(ofArray([new Props_1(1, ["1"]), new Props_1(0, ["div"]), new Props_1(2, ["relative z-10"]), new Props_1(4, [props.cancelButtonClick]), new Props_1(5, [[Child_Component(ofArray([new Child_Props(0, ["1"]), new Child_Props(3, ["fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"]), new Child_Props(4, ["ease-out duration-300"]), new Child_Props(5, ["opacity-0"]), new Child_Props(6, ["opacity-100"]), new Child_Props(7, ["ease-in duration-200"]), new Child_Props(8, ["opacity-100"]), new Child_Props(9, ["opacity-0"])])), createElement("div", createObj(ofArray([["className", "fixed inset-0 z-10 overflow-y-auto"], ["key", "2"], (elems_6 = [createElement("div", createObj(ofArray([["key", "1"], ["className", "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"], (elems_5 = [Child_Component(ofArray([new Child_Props(0, ["1"]), new Child_Props(4, ["ease-out duration-300"]), new Child_Props(5, ["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]), new Child_Props(6, ["opacity-100 translate-y-0 sm:scale-100"]), new Child_Props(7, ["ease-in duration-200"]), new Child_Props(8, ["opacity-100 translate-y-0 sm:scale-100"]), new Child_Props(9, ["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]), new Child_Props(10, [[Panel_Component(ofArray([new Panel_Props(0, ["1"]), new Panel_Props(1, ["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]), new Panel_Props(2, [[createElement("div", createObj(ofArray([["key", "1"], ["className", "sm:flex sm:items-start"], (elems_3 = toList(delay(() => {
48
- let matchValue, icon, value_14;
49
- return append((matchValue = props.dialogIcon, (matchValue == null) ? (empty()) : ((icon = matchValue, singleton(createElement("div", createObj(ofArray([["key", "1"], (value_14 = "mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center sm:mx-0 sm:h-10 sm:w-10 sm:mr-4 rounded-full bg-red-100", ["className", value_14]), ["children", reactApi.Children.toArray([icon])]]))))))), delay(() => {
50
- let elems_2, elems_1;
51
- return singleton(createElement("div", createObj(ofArray([["key", "2"], ["className", "mt-3 text-center sm:mt-0 sm:text-left"], (elems_2 = [Title_Component(ofArray([new Title_Props(1, ["1"]), new Title_Props(0, ["h3"]), new Title_Props(2, ["text-lg font-medium leading-6 text-gray-900"]), new Title_Props(3, [[createElement("span", {
52
- children: props.title,
53
- key: "1",
54
- })]])])), createElement("div", createObj(ofArray([["className", "mt-2"], ["key", "2"], (elems_1 = [createElement("p", {
55
- className: "text-sm text-gray-500",
56
- children: props.message,
57
- })], ["children", reactApi.Children.toArray(Array.from(elems_1))])])))], ["children", reactApi.Children.toArray(Array.from(elems_2))])]))));
58
- }));
59
- })), ["children", reactApi.Children.toArray(Array.from(elems_3))])]))), createElement("div", createObj(ofArray([["key", "2"], ["className", "mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"], (elems_4 = toList(delay(() => append(singleton(createElement("button", {
60
- key: "Ok",
61
- type: "button",
62
- className: (props.okButtonThem.tag === 1) ? "inline-flex w-full justify-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm" : "inline-flex w-full justify-center rounded-md border border-transparent bg-white px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",
63
- onClick: (_arg) => {
64
- props.okButtonClick();
65
- },
66
- children: props.okButtonText,
67
- })), delay(() => {
68
- let value_53;
69
- return singleton(createElement("button", createObj(ofArray([["key", "Cancel"], ["type", "button"], (value_53 = "mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-gray-200 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm", ["className", value_53]), ["onClick", (_arg_1) => {
70
- props.cancelButtonClick();
71
- }], ["children", props.cancelButtonText]]))));
72
- })))), ["children", reactApi.Children.toArray(Array.from(elems_4))])])))]])]))]])]))], ["children", reactApi.Children.toArray(Array.from(elems_5))])])))], ["children", reactApi.Children.toArray(Array.from(elems_6))])])))]])]))]])]));
73
- }
74
-
@@ -1,66 +0,0 @@
1
- import { Union } from "../fable_modules/fable-library-js.4.20.0/Types.js";
2
- import { union_type, class_type, string_type, lambda_type, unit_type, bool_type } from "../fable_modules/fable-library-js.4.20.0/Reflection.js";
3
- import { keyValueList } from "../fable_modules/fable-library-js.4.20.0/MapUtil.js";
4
- import * as react from "react";
5
- import { Switch } from "@headlessui/react";
6
-
7
- export class Props extends Union {
8
- constructor(tag, fields) {
9
- super();
10
- this.tag = tag;
11
- this.fields = fields;
12
- }
13
- cases() {
14
- return ["Checked", "OnChange", "ClassName", "Children"];
15
- }
16
- }
17
-
18
- export function Props_$reflection() {
19
- return union_type("Basic.Profile.UI.Superhero.HeadlessUI.Switch.Props", [], Props, () => [[["Item", bool_type]], [["Item", lambda_type(bool_type, unit_type)]], [["Item", string_type]], [["Item", class_type("System.Collections.Generic.IEnumerable`1", [class_type("Fable.React.ReactElement")])]]]);
20
- }
21
-
22
- export function Component(props) {
23
- const props_1 = keyValueList(props, 1);
24
- return react.createElement(Switch, props_1);
25
- }
26
-
27
- export class Label_Props extends Union {
28
- constructor(tag, fields) {
29
- super();
30
- this.tag = tag;
31
- this.fields = fields;
32
- }
33
- cases() {
34
- return ["ClassName", "Children"];
35
- }
36
- }
37
-
38
- export function Label_Props_$reflection() {
39
- return union_type("Basic.Profile.UI.Superhero.HeadlessUI.Switch.Label.Props", [], Label_Props, () => [[["Item", string_type]], [["Item", class_type("System.Collections.Generic.IEnumerable`1", [class_type("Fable.React.ReactElement")])]]]);
40
- }
41
-
42
- export function Label_Component(props) {
43
- const props_1 = keyValueList(props, 1);
44
- return react.createElement(Switch.Label, props_1);
45
- }
46
-
47
- export class Group_Props extends Union {
48
- constructor(Item) {
49
- super();
50
- this.tag = 0;
51
- this.fields = [Item];
52
- }
53
- cases() {
54
- return ["Children"];
55
- }
56
- }
57
-
58
- export function Group_Props_$reflection() {
59
- return union_type("Basic.Profile.UI.Superhero.HeadlessUI.Switch.Group.Props", [], Group_Props, () => [[["Item", class_type("System.Collections.Generic.IEnumerable`1", [class_type("Fable.React.ReactElement")])]]]);
60
- }
61
-
62
- export function Group_Component(props) {
63
- const props_1 = keyValueList(props, 1);
64
- return react.createElement(Switch.Group, props_1);
65
- }
66
-
@@ -1,66 +0,0 @@
1
- import { Union } from "../fable_modules/fable-library-js.4.20.0/Types.js";
2
- import { union_type, class_type, obj_type, bool_type, string_type } from "../fable_modules/fable-library-js.4.20.0/Reflection.js";
3
- import { keyValueList } from "../fable_modules/fable-library-js.4.20.0/MapUtil.js";
4
- import * as react from "react";
5
- import { Transition } from "@headlessui/react";
6
-
7
- export class Props extends Union {
8
- constructor(tag, fields) {
9
- super();
10
- this.tag = tag;
11
- this.fields = fields;
12
- }
13
- cases() {
14
- return ["Key", "Appear", "Show", "ClassName", "Enter", "EnterFrom", "EnterTo", "Leave", "LeaveFrom", "LeaveTo", "Children"];
15
- }
16
- }
17
-
18
- export function Props_$reflection() {
19
- return union_type("Basic.Profile.UI.Superhero.HeadlessUI.Transition.Props", [], Props, () => [[["Item", string_type]], [["Item", bool_type]], [["Item", bool_type]], [["Item", obj_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", class_type("System.Collections.Generic.IEnumerable`1", [class_type("Fable.React.ReactElement")])]]]);
20
- }
21
-
22
- export function Component(props) {
23
- const props_1 = keyValueList(props, 1);
24
- return react.createElement(Transition, props_1);
25
- }
26
-
27
- export class Root_Props extends Union {
28
- constructor(tag, fields) {
29
- super();
30
- this.tag = tag;
31
- this.fields = fields;
32
- }
33
- cases() {
34
- return ["Key", "As", "Show", "Children"];
35
- }
36
- }
37
-
38
- export function Root_Props_$reflection() {
39
- return union_type("Basic.Profile.UI.Superhero.HeadlessUI.Transition.Root.Props", [], Root_Props, () => [[["Item", string_type]], [["Item", string_type]], [["Item", bool_type]], [["Item", class_type("System.Collections.Generic.IEnumerable`1", [class_type("Fable.React.ReactElement")])]]]);
40
- }
41
-
42
- export function Root_Component(props) {
43
- const props_1 = keyValueList(props, 1);
44
- return react.createElement(Transition.Root, props_1);
45
- }
46
-
47
- export class Child_Props extends Union {
48
- constructor(tag, fields) {
49
- super();
50
- this.tag = tag;
51
- this.fields = fields;
52
- }
53
- cases() {
54
- return ["Key", "Appear", "Show", "ClassName", "Enter", "EnterFrom", "EnterTo", "Leave", "LeaveFrom", "LeaveTo", "Children"];
55
- }
56
- }
57
-
58
- export function Child_Props_$reflection() {
59
- return union_type("Basic.Profile.UI.Superhero.HeadlessUI.Transition.Child.Props", [], Child_Props, () => [[["Item", string_type]], [["Item", bool_type]], [["Item", bool_type]], [["Item", obj_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", string_type]], [["Item", class_type("System.Collections.Generic.IEnumerable`1", [class_type("Fable.React.ReactElement")])]]]);
60
- }
61
-
62
- export function Child_Component(props) {
63
- const props_1 = keyValueList(props, 1);
64
- return react.createElement(Transition.Child, props_1);
65
- }
66
-