@singularsystems/neo-react 0.10.13 → 0.10.17

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 (91) hide show
  1. package/dist/Modules/Types.d.ts +1 -1
  2. package/dist/ReactComponents/Button.js +12 -2
  3. package/dist/ReactComponents/Button.js.map +1 -1
  4. package/dist/ReactComponents/DropDown/AutoCompleteDropDown.d.ts +1 -1
  5. package/dist/ReactComponents/DropDown/AutoCompleteDropDown.js +26 -13
  6. package/dist/ReactComponents/DropDown/AutoCompleteDropDown.js.map +1 -1
  7. package/dist/ReactComponents/DropDown/DropDown.js +1 -1
  8. package/dist/ReactComponents/DropDown/DropDown.js.map +1 -1
  9. package/dist/ReactComponents/Modal/ModalContainer.d.ts +14 -2
  10. package/dist/ReactComponents/Modal/ModalContainer.js +17 -2
  11. package/dist/ReactComponents/Modal/ModalContainer.js.map +1 -1
  12. package/dist/ReactComponents/PropTypes.d.ts +2 -1
  13. package/dist/ReactComponents/PropTypes.js +2 -1
  14. package/dist/ReactComponents/PropTypes.js.map +1 -1
  15. package/dist/Routing/RouteView.d.ts +2 -0
  16. package/dist/Routing/RouteView.js +6 -0
  17. package/dist/Routing/RouteView.js.map +1 -1
  18. package/dist/Routing/RoutingState.d.ts +2 -1
  19. package/dist/Routing/RoutingState.js +11 -17
  20. package/dist/Routing/RoutingState.js.map +1 -1
  21. package/package.json +2 -2
  22. package/styles/Validation.scss +1 -0
  23. package/dist/Modules/Misc.d.ts +0 -1
  24. package/dist/Modules/Misc.js +0 -2
  25. package/dist/Modules/Misc.js.map +0 -1
  26. package/dist/React/AutoQueryObject.d.ts +0 -5
  27. package/dist/React/AutoQueryObject.js +0 -39
  28. package/dist/React/AutoQueryObject.js.map +0 -1
  29. package/dist/React/Setup.d.ts +0 -1
  30. package/dist/React/Setup.js +0 -7
  31. package/dist/React/Setup.js.map +0 -1
  32. package/dist/ReactComponents/AsyncDropDown.d.ts +0 -54
  33. package/dist/ReactComponents/AsyncDropDown.js +0 -91
  34. package/dist/ReactComponents/AsyncDropDown.js.map +0 -1
  35. package/dist/ReactComponents/BootstrapHelpers.d.ts +0 -40
  36. package/dist/ReactComponents/BootstrapHelpers.js +0 -31
  37. package/dist/ReactComponents/BootstrapHelpers.js.map +0 -1
  38. package/dist/ReactComponents/DropDown/AsyncDropDown.d.ts +0 -53
  39. package/dist/ReactComponents/DropDown/AsyncDropDown.js +0 -95
  40. package/dist/ReactComponents/DropDown/AsyncDropDown.js.map +0 -1
  41. package/dist/ReactComponents/DropDown.d.ts +0 -47
  42. package/dist/ReactComponents/DropDown.js +0 -193
  43. package/dist/ReactComponents/DropDown.js.map +0 -1
  44. package/dist/ReactComponents/EditorContainerContext.d.ts +0 -19
  45. package/dist/ReactComponents/EditorContainerContext.js +0 -14
  46. package/dist/ReactComponents/EditorContainerContext.js.map +0 -1
  47. package/dist/ReactComponents/FileManager/FileManager.d.ts +0 -11
  48. package/dist/ReactComponents/FileManager/FileManager.js +0 -87
  49. package/dist/ReactComponents/FileManager/FileManager.js.map +0 -1
  50. package/dist/ReactComponents/FileManager.d.ts +0 -29
  51. package/dist/ReactComponents/FileManager.js +0 -105
  52. package/dist/ReactComponents/FileManager.js.map +0 -1
  53. package/dist/ReactComponents/FormGroup.d.ts +0 -23
  54. package/dist/ReactComponents/FormGroup.js +0 -68
  55. package/dist/ReactComponents/FormGroup.js.map +0 -1
  56. package/dist/ReactComponents/FormGroupFloating.d.ts +0 -19
  57. package/dist/ReactComponents/FormGroupFloating.js +0 -98
  58. package/dist/ReactComponents/FormGroupFloating.js.map +0 -1
  59. package/dist/ReactComponents/FormGroupInline.d.ts +0 -11
  60. package/dist/ReactComponents/FormGroupInline.js +0 -44
  61. package/dist/ReactComponents/FormGroupInline.js.map +0 -1
  62. package/dist/ReactComponents/Grid/Other.d.ts +0 -10
  63. package/dist/ReactComponents/Grid/Other.js +0 -22
  64. package/dist/ReactComponents/Grid/Other.js.map +0 -1
  65. package/dist/ReactComponents/Helpers.d.ts +0 -5
  66. package/dist/ReactComponents/Helpers.js +0 -18
  67. package/dist/ReactComponents/Helpers.js.map +0 -1
  68. package/dist/ReactComponents/InputBase.d.ts +0 -9
  69. package/dist/ReactComponents/InputBase.js +0 -29
  70. package/dist/ReactComponents/InputBase.js.map +0 -1
  71. package/dist/ReactComponents/Modal/ModalFactory.d.ts +0 -2
  72. package/dist/ReactComponents/Modal/ModalFactory.js +0 -43
  73. package/dist/ReactComponents/Modal/ModalFactory.js.map +0 -1
  74. package/dist/ReactComponents/Tabs/TabController.d.ts +0 -52
  75. package/dist/ReactComponents/Tabs/TabController.js +0 -104
  76. package/dist/ReactComponents/Tabs/TabController.js.map +0 -1
  77. package/dist/ReactComponents/_Controllers.d.ts +0 -4
  78. package/dist/ReactComponents/_Controllers.js +0 -5
  79. package/dist/ReactComponents/_Controllers.js.map +0 -1
  80. package/dist/ReactComponents/_UIHelpers.d.ts +0 -3
  81. package/dist/ReactComponents/_UIHelpers.js +0 -4
  82. package/dist/ReactComponents/_UIHelpers.js.map +0 -1
  83. package/dist/Routing/IMenuRoute.d.ts +0 -13
  84. package/dist/Routing/IMenuRoute.js +0 -20
  85. package/dist/Routing/IMenuRoute.js.map +0 -1
  86. package/dist/Routing/_Exports.d.ts +0 -4
  87. package/dist/Routing/_Exports.js +0 -5
  88. package/dist/Routing/_Exports.js.map +0 -1
  89. package/dist/Services/ErrorHandler.d.ts +0 -5
  90. package/dist/Services/ErrorHandler.js +0 -23
  91. package/dist/Services/ErrorHandler.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"DropDown.js","sourceRoot":"","sources":["../../src/ReactComponents/DropDown.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAsB,MAAM,aAAa,CAAC;AAClE,OAAO,EAAQ,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,Y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AC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,UAAU,CAAC,MAAM,CAAC,YAAmB,IAAM,QAAQ,EAAI,CAAA;SACzJ;aAAM;YACH,IAAI,QAAQ,CAAC,QAAQ,EAAE;gBACnB,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAAC;aAC5B;YAED,OAAO;gBACH,yCACI,KAAK,EAAG,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,EAC1D,QAAQ,EAAE,IAAI,CAAC,cAAc,EAC7B,GAAG,EAAE,UAAU,CAAC,MAAM,CAAC,YAAmB,IACtC,QAAQ;oBACX,YAAY,IAAI,mCAAiB;oBACjC,KAAK,CAAC,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,CACf,gCAAQ,KAAK,EAAG,IAAI,CAAC,KAAI,CAAC,WAAW,CAAC,EAAG,GAAG,EAAG,IAAI,CAAC,KAAI,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,KAAI,CAAC,aAAa,CAAC,CAAU,CAC9G,EAFkB,CAElB,CAAC,CACG,CAAA;SAChB;QAED,OAAO,CACH,YAAY,CAAC,sBAAsB,CAAC,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,CAClE,CAAA;IACL,CAAC;IAlMM,oBAAW,GAAG,WAAW,CAAC;IAoCjC;QADC,UAAU,CAAC,GAAG;;iDACe;IArCb,QAAQ;QAD5B,QAAQ;;OACY,QAAQ,CAoM5B;IAAD,eAAC;CAAA,AApMD,CAAyC,aAAa,GAoMrD;eApMoB,QAAQ"}
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { Model } from "@singularsystems/neo-core";
3
- import { FormContextParams } from './FormContext';
4
- export declare enum EditorParentType {
5
- FormGroup = 1,
6
- Column = 2
7
- }
8
- export declare class EditorContainerContextParams {
9
- /**
10
- * The property the form group is bound to.
11
- */
12
- bindProperty: Model.IPropertyInstance;
13
- /**
14
- * The parent form context used by the form group.
15
- */
16
- formContext: FormContextParams;
17
- parentType: EditorParentType;
18
- }
19
- export declare const EditorContainerContext: React.Context<EditorContainerContextParams>;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- export var EditorParentType;
3
- (function (EditorParentType) {
4
- EditorParentType[EditorParentType["FormGroup"] = 1] = "FormGroup";
5
- EditorParentType[EditorParentType["Column"] = 2] = "Column";
6
- })(EditorParentType || (EditorParentType = {}));
7
- var EditorContainerContextParams = /** @class */ (function () {
8
- function EditorContainerContextParams() {
9
- }
10
- return EditorContainerContextParams;
11
- }());
12
- export { EditorContainerContextParams };
13
- export var EditorContainerContext = React.createContext(new EditorContainerContextParams());
14
- //# sourceMappingURL=EditorContainerContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EditorContainerContext.js","sourceRoot":"","sources":["../../src/ReactComponents/EditorContainerContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IACxB,iEAAa,CAAA;IACb,2DAAU,CAAA;AACd,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B;AAED;IAAA;IAaA,CAAC;IAAD,mCAAC;AAAD,CAAC,AAbD,IAaC;;AAED,MAAM,CAAC,IAAM,sBAAsB,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,4BAA4B,EAAE,CAAC,CAAC"}
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- import { FileContext, IFileComponentProps } from './FileContext';
3
- /**
4
- * The file manager component manages uploading, and binding of files to a model.
5
- */
6
- export default class FileManager extends React.Component<IFileComponentProps> {
7
- static contextType: React.Context<import("./FileContext").IFileContextProps>;
8
- context: React.ContextType<typeof FileContext>;
9
- private fileManager;
10
- render(): JSX.Element;
11
- }
@@ -1,87 +0,0 @@
1
- import { __decorate, __extends } from "tslib";
2
- import * as React from 'react';
3
- import { Components } from '@singularsystems/neo-core';
4
- import { observer } from 'mobx-react';
5
- import FileUploadButton from './FileUploadButton';
6
- import { FileContext } from './FileContext';
7
- /**
8
- * The file manager component manages uploading, and binding of files to a model.
9
- */
10
- var FileManager = /** @class */ (function (_super) {
11
- __extends(FileManager, _super);
12
- function FileManager() {
13
- return _super !== null && _super.apply(this, arguments) || this;
14
- }
15
- FileManager.prototype.render = function () {
16
- if (this.context.fileManager) {
17
- this.fileManager = this.context.fileManager;
18
- }
19
- else {
20
- this.fileManager = new Components.BoundFileManager(this.props.uploadEndpoint, this.props);
21
- }
22
- if (!this.fileManager.uploadEndpoint) {
23
- throw Error("File manager requires an uploadEndpoint.");
24
- }
25
- if (!this.fileManager.options.bind) {
26
- throw Error("File manager requires a bind property.");
27
- }
28
- var options = this.fileManager.options;
29
- var canChoose = !this.fileManager.isUploading;
30
- var chooseText = this.props.chooseFileText || "Select file";
31
- var downloadLinkText = "";
32
- var downloadPath = "";
33
- if (!this.fileManager.isUploading) {
34
- if (options.bind.value) {
35
- // file has been selected
36
- if (this.props.changeFileText) {
37
- chooseText = this.props.changeFileText;
38
- }
39
- else {
40
- canChoose = false;
41
- }
42
- if (this.props.downloadEndpoint) {
43
- if (typeof this.props.downloadEndpoint === "string") {
44
- downloadPath = this.props.downloadEndpoint;
45
- if (!downloadPath.endsWith("/")) {
46
- downloadPath += "/";
47
- }
48
- downloadPath = downloadPath + options.bind.value;
49
- }
50
- else {
51
- downloadPath = this.props.downloadEndpoint(options.bind.value);
52
- }
53
- var fileName = "file";
54
- if (this.props.fileDescriptorProperty) {
55
- var fileDesciptor = this.props.fileDescriptorProperty.value;
56
- if (fileDesciptor) {
57
- if (typeof fileDesciptor === "string") {
58
- fileName = fileDesciptor;
59
- }
60
- else {
61
- fileName = fileDesciptor.fileName;
62
- }
63
- }
64
- }
65
- if (this.props.downloadLinkText) {
66
- downloadLinkText = this.props.downloadLinkText.format(fileName);
67
- }
68
- else {
69
- downloadLinkText = "View file";
70
- }
71
- }
72
- }
73
- }
74
- return (React.createElement("div", { className: "neo-filemanager-container" },
75
- downloadPath && React.createElement("a", { href: downloadPath }, downloadLinkText),
76
- React.createElement(FileUploadButton, { fileManager: this.fileManager, show: canChoose }, chooseText),
77
- this.fileManager.isUploading && React.createElement("div", { className: "progress" },
78
- React.createElement("div", { className: "progress-bar", role: "progressbar", style: { width: (this.fileManager.uploadPercent + "%") } }))));
79
- };
80
- FileManager.contextType = FileContext;
81
- FileManager = __decorate([
82
- observer
83
- ], FileManager);
84
- return FileManager;
85
- }(React.Component));
86
- export default FileManager;
87
- //# sourceMappingURL=FileManager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileManager.js","sourceRoot":"","sources":["../../../src/ReactComponents/FileManager/FileManager.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAuB,MAAM,eAAe,CAAC;AAEjE;;GAEG;AAEH;IAAyC,+BAAoC;IAA7E;;IAgFA,CAAC;IA1EG,4BAAM,GAAN;QAEI,IAAI,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE;YAC1B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAA0C,CAAC;SAC9E;aAAM;YACH,IAAI,CAAC,WAAW,GAAG,IAAI,UAAU,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,cAAe,EAAE,IAAI,CAAC,KAAY,CAAC,CAAC;SACrG;QAED,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,cAAc,EAAE;YAAE,MAAM,KAAK,CAAC,0CAA0C,CAAC,CAAC;SAAE;QAClG,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,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K,CAAC,sBAAsB,CAAC,KAAK,CAAC;wBAC9D,IAAI,aAAa,EAAE;4BACf,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;gCACnC,QAAQ,GAAG,aAAa,CAAC;6BAC5B;iCAAM;gCACH,QAAQ,GAAI,aAAiC,CAAC,QAAQ,CAAC;6BAC1D;yBACJ;qBACJ;oBAED,IAAI,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE;wBAC7B,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;qBACnE;yBAAM;wBACH,gBAAgB,GAAG,WAAW,CAAC;qBAClC;iBACJ;aACJ;SACJ;QAED,OAAO,CACH,6BAAK,SAAS,EAAC,2BAA2B;YACrC,YAAY,IAAI,2BAAG,IAAI,EAAE,YAAY,IAAG,gBAAgB,CAAK;YAE9D,oBAAC,gBAAgB,IAAC,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,SAAS,IAC3D,UAAU,CACI;YAElB,IAAI,CAAC,WAAW,CAAC,WAAW,IAAI,6BAAK,SAAS,EAAC,UAAU;gBACtD,6BAAK,SAAS,EAAC,cAAc,EAAC,IAAI,EAAC,aAAa,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,GAAG,GAAG,CAAC,EAAE,GAAQ,CAC/G,CACJ,CACT,CAAA;IACL,CAAC;IA9EM,uBAAW,GAAG,WAAW,CAAC;IADhB,WAAW;QAD/B,QAAQ;OACY,WAAW,CAgF/B;IAAD,kBAAC;CAAA,AAhFD,CAAyC,KAAK,CAAC,SAAS,GAgFvD;eAhFoB,WAAW"}
@@ -1,29 +0,0 @@
1
- import * as React from 'react';
2
- import { Components } from '@singularsystems/neo-core';
3
- declare type simpleDictionary = {
4
- [index: string]: string | number;
5
- };
6
- interface IFileManagerProps extends Components.IBoundFileManagerOptions {
7
- uploadEndpoint: string;
8
- /** Text to show on the browse button */
9
- chooseFileText?: string;
10
- /** Set this if you want to allow the user to choose a new file. */
11
- changeFileText?: string;
12
- /** Text to show in the download link. Use {0} as a placeholer for fileName */
13
- downloadLinkText?: string;
14
- /** Path of API endpoint which will handle downloading a file. Only required if downloadLinkText is specified */
15
- downloadEndpoint?: string | ((fileID: string) => string);
16
- additionalData?: simpleDictionary | (() => simpleDictionary);
17
- }
18
- /**
19
- * The file manager component manages uploading, and binding of files to a model.
20
- */
21
- export default class FileManager extends React.Component<IFileManagerProps> {
22
- private fileInput;
23
- private fileManager;
24
- constructor(props: IFileManagerProps);
25
- browseButtonClicked(e: React.MouseEvent): void;
26
- onFilesChosen(e: React.ChangeEvent<HTMLInputElement>): Promise<void>;
27
- render(): JSX.Element;
28
- }
29
- export {};
@@ -1,105 +0,0 @@
1
- import { __awaiter, __decorate, __extends, __generator, __metadata } from "tslib";
2
- import * as React from 'react';
3
- import { Components } from '@singularsystems/neo-core';
4
- import { observer } from 'mobx-react';
5
- import Button from './Button';
6
- /**
7
- * The file manager component manages uploading, and binding of files to a model.
8
- */
9
- var FileManager = /** @class */ (function (_super) {
10
- __extends(FileManager, _super);
11
- function FileManager(props) {
12
- var _this = _super.call(this, props) || this;
13
- _this.fileInput = React.createRef();
14
- _this.fileManager = new Components.BoundFileManager(_this.props.uploadEndpoint, _this.props);
15
- _this.browseButtonClicked = _this.browseButtonClicked.bind(_this);
16
- _this.onFilesChosen = _this.onFilesChosen.bind(_this);
17
- return _this;
18
- }
19
- FileManager.prototype.browseButtonClicked = function (e) {
20
- if (this.fileInput.current) {
21
- this.fileInput.current.value = "";
22
- this.fileInput.current.click();
23
- }
24
- };
25
- FileManager.prototype.onFilesChosen = function (e) {
26
- return __awaiter(this, void 0, void 0, function () {
27
- var additionalData;
28
- return __generator(this, function (_a) {
29
- if (e.target.files) {
30
- additionalData = void 0;
31
- if (this.props.additionalData) {
32
- if (typeof this.props.additionalData === "function") {
33
- additionalData = this.props.additionalData();
34
- }
35
- else {
36
- additionalData = this.props.additionalData;
37
- }
38
- }
39
- this.fileManager.processFiles(e.target.files, additionalData);
40
- }
41
- return [2 /*return*/];
42
- });
43
- });
44
- };
45
- FileManager.prototype.render = function () {
46
- var canChoose = !this.fileManager.isUploading;
47
- var chooseText = this.props.chooseFileText || "Select file";
48
- var downloadLinkText = "";
49
- var downloadPath = "";
50
- if (!this.fileManager.isUploading) {
51
- if (this.props.bind.value) {
52
- // file has been selected
53
- if (this.props.changeFileText) {
54
- chooseText = this.props.changeFileText;
55
- }
56
- else {
57
- canChoose = false;
58
- }
59
- if (this.props.downloadEndpoint) {
60
- if (typeof this.props.downloadEndpoint === "string") {
61
- downloadPath = this.props.downloadEndpoint;
62
- if (!downloadPath.endsWith("/")) {
63
- downloadPath += "/";
64
- }
65
- downloadPath = downloadPath + this.props.bind.value;
66
- }
67
- else {
68
- downloadPath = this.props.downloadEndpoint(this.props.bind.value);
69
- }
70
- var fileName = "file";
71
- if (this.props.fileDescriptorProperty) {
72
- var fileDesciptor = this.props.fileDescriptorProperty.value;
73
- if (fileDesciptor) {
74
- if (typeof fileDesciptor === "string") {
75
- fileName = fileDesciptor;
76
- }
77
- else {
78
- fileName = fileDesciptor.fileName;
79
- }
80
- }
81
- }
82
- if (this.props.downloadLinkText) {
83
- downloadLinkText = this.props.downloadLinkText.format(fileName);
84
- }
85
- else {
86
- downloadLinkText = "View " + fileName;
87
- }
88
- }
89
- }
90
- }
91
- return (React.createElement("div", { className: "neo-filemanager-container" },
92
- downloadPath && React.createElement("a", { href: downloadPath }, downloadLinkText),
93
- canChoose && React.createElement(Button, { variant: "light", onClick: this.browseButtonClicked }, chooseText),
94
- this.fileManager.isUploading && React.createElement("div", { className: "progress" },
95
- React.createElement("div", { className: "progress-bar", role: "progressbar", style: { width: (this.fileManager.uploadPercent + "%") } })),
96
- React.createElement("input", { type: "file", onChange: this.onFilesChosen, ref: this.fileInput, style: { display: "none" } })));
97
- };
98
- FileManager = __decorate([
99
- observer,
100
- __metadata("design:paramtypes", [Object])
101
- ], FileManager);
102
- return FileManager;
103
- }(React.Component));
104
- export default FileManager;
105
- //# sourceMappingURL=FileManager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileManager.js","sourceRoot":"","sources":["../../src/ReactComponents/FileManager.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,MAAM,MAAM,UAAU,CAAC;AAwB9B;;GAEG;AAEH;IAAyC,+BAAkC;IAMvE,qBAAY,KAAwB;QAApC,YACI,kBAAM,KAAK,CAAC,SAQf;QANG,KAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAoB,CAAC;QAErD,KAAI,CAAC,WAAW,GAAG,IAAI,UAAU,CAAC,gBAAgB,CAAC,KAAI,CAAC,KAAK,CAAC,cAAc,EAAE,KAAI,CAAC,KAAK,CAAC,CAAC;QAE1F,KAAI,CAAC,mBAAmB,GAAG,KAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAI,CAAC,CAAC;QAC/D,KAAI,CAAC,aAAa,GAAG,KAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAI,CAAC,CAAC;;IACvD,CAAC;IAED,yCAAmB,GAAnB,UAAoB,CAAoB;QACpC,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE;YACxB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,GAAG,EAAE,CAAC;YAClC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;SAClC;IACL,CAAC;IAEK,mCAAa,GAAnB,UAAoB,CAAuC;;;;gBACvD,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE;oBACZ,cAAc,SAA8B,CAAC;oBACjD,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE;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EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAI,CAClG,CACT,CAAA;IACL,CAAC;IApGgB,WAAW;QAD/B,QAAQ;;OACY,WAAW,CAqG/B;IAAD,kBAAC;CAAA,AArGD,CAAyC,KAAK,CAAC,SAAS,GAqGvD;eArGoB,WAAW"}
@@ -1,23 +0,0 @@
1
- import * as React from 'react';
2
- import { IEditorContainerProps } from './PropTypes';
3
- import ComponentBase from './ComponentBase';
4
- import { FormContext } from './FormContext';
5
- export interface IFormGroupProps<TData> extends IEditorContainerProps<HTMLDivElement, TData> {
6
- labelProps?: React.HTMLProps<HTMLLabelElement>;
7
- suppressLabel?: boolean;
8
- }
9
- export interface IFormGroupClasses {
10
- container: string;
11
- containerDom: React.HTMLProps<HTMLDivElement>;
12
- label: string;
13
- editor: string;
14
- }
15
- export declare class FormGroupBase<T extends IFormGroupProps<TData>, TData> extends ComponentBase<T> {
16
- static contextType: React.Context<import("./FormContext").FormContextParams>;
17
- context: React.ContextType<typeof FormContext>;
18
- protected getFormGroupClasses(domProps: React.HTMLProps<HTMLDivElement>): IFormGroupClasses;
19
- protected assertCheckBox(): void;
20
- render(): JSX.Element;
21
- }
22
- export default class FormGroup<TData> extends FormGroupBase<IFormGroupProps<TData>, TData> {
23
- }
@@ -1,68 +0,0 @@
1
- import { __assign, __decorate, __extends, __rest } from "tslib";
2
- import * as React from 'react';
3
- import { observer } from 'mobx-react';
4
- import { BindPropsHelper, CheckboxType } from './PropTypes';
5
- import { Validation, Utils } from '@singularsystems/neo-core';
6
- import ComponentBase from './ComponentBase';
7
- import { FormContext } from './FormContext';
8
- var FormGroupBase = /** @class */ (function (_super) {
9
- __extends(FormGroupBase, _super);
10
- function FormGroupBase() {
11
- return _super !== null && _super.apply(this, arguments) || this;
12
- }
13
- FormGroupBase.prototype.getFormGroupClasses = function (domProps) {
14
- return { containerDom: domProps, container: "form-group", label: "", editor: "" };
15
- };
16
- FormGroupBase.prototype.assertCheckBox = function () {
17
- };
18
- FormGroupBase.prototype.render = function () {
19
- var _a;
20
- var allProps = BindPropsHelper.normaliseContainerProps(this, this.props, true);
21
- var containerProps = allProps.container;
22
- var _b = allProps.containerDom, labelProps = _b.labelProps, suppressLabel = _b.suppressLabel, domProps = __rest(_b, ["labelProps", "suppressLabel"]);
23
- // Get the classes for the container, label and editor. InlineForm overrides this.
24
- var classes = this.getFormGroupClasses(domProps);
25
- var labelText = containerProps.label ? containerProps.label : allProps.bind.propertyInfo.readableName;
26
- var displayInfo = allProps.bind.validator.getDisplayState(allProps.fileProps ? Validation.DisplayMode.Always : this.context.validationDisplayMode);
27
- var showValidation = displayInfo.severity != Validation.RuleSeverity.None;
28
- var className = Utils.joinWithSpaces(classes.containerDom.className, classes.container);
29
- var labelClassName = Utils.joinWithSpaces(labelProps && labelProps.className, classes.label);
30
- var checkBoxType = BindPropsHelper.getCheckBoxType(allProps);
31
- if (checkBoxType !== CheckboxType.None) {
32
- labelClassName += "custom-control-label";
33
- }
34
- var label = (_a = this.context.suppressLabels, (_a !== null && _a !== void 0 ? _a : suppressLabel)) ? React.createElement(React.Fragment, null) : React.createElement("label", __assign({}, labelProps, { htmlFor: allProps.uniqueID, className: labelClassName }),
35
- labelText,
36
- " ");
37
- var editor = BindPropsHelper.getFormControl(allProps);
38
- if (checkBoxType !== CheckboxType.None) {
39
- this.assertCheckBox();
40
- }
41
- return (React.createElement("div", __assign({}, classes.containerDom, { className: className }),
42
- checkBoxType === CheckboxType.None && label,
43
- React.createElement("div", { className: classes.editor },
44
- checkBoxType === CheckboxType.None && editor,
45
- checkBoxType !== CheckboxType.None && React.createElement("div", { className: "custom-control custom-" + (checkBoxType === CheckboxType.Checkbox ? "checkbox" : "switch") },
46
- editor,
47
- label),
48
- showValidation &&
49
- React.createElement("div", { className: "invalid-feedback " + displayInfo.additionalClassName, style: { display: "block" } },
50
- displayInfo.severity == Validation.RuleSeverity.AsyncBusy && React.createElement("span", { className: "spinner-grow" }),
51
- React.createElement("span", null, displayInfo.displayText)))));
52
- };
53
- FormGroupBase.contextType = FormContext;
54
- return FormGroupBase;
55
- }(ComponentBase));
56
- export { FormGroupBase };
57
- var FormGroup = /** @class */ (function (_super) {
58
- __extends(FormGroup, _super);
59
- function FormGroup() {
60
- return _super !== null && _super.apply(this, arguments) || this;
61
- }
62
- FormGroup = __decorate([
63
- observer
64
- ], FormGroup);
65
- return FormGroup;
66
- }(FormGroupBase));
67
- export default FormGroup;
68
- //# sourceMappingURL=FormGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormGroup.js","sourceRoot":"","sources":["../../src/ReactComponents/FormGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,eAAe,EAAyB,YAAY,EAAE,MAAM,aAAa,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAe5C;IAA4E,iCAAgB;IAA5F;;IA8DA,CAAC;IA1Da,2CAAmB,GAA7B,UAA8B,QAAyC;QACnE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IACtF,CAAC;IAES,sCAAc,GAAxB;IAEA,CAAC;IAEM,8BAAM,GAAb;;QAEI,IAAM,QAAQ,GAAG,eAAe,CAAC,uBAAuB,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACjF,IAAM,cAAc,GAAG,QAAQ,CAAC,SAAS,CAAC;QAC1C,IAAI,0BAAiE,EAA/D,0BAAU,EAAE,gCAAa,EAAE,sDAAoC,CAAC;QAEtE,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AAI,EAAE;YACpC,IAAI,CAAC,cAAc,EAAE,CAAC;SACzB;QAED,OAAO,CACH,wCAAS,OAAO,CAAC,YAAY,IAAE,SAAS,EAAE,SAAS;YAE9C,YAAY,KAAK,YAAY,CAAC,IAAI,IAAI,KAAK;YAE5C,6BAAK,SAAS,EAAE,OAAO,CAAC,MAAM;gBACzB,YAAY,KAAK,YAAY,CAAC,IAAI,IAAI,MAAM;gBAC5C,YAAY,KAAK,YAAY,CAAC,IAAI,IAAI,6BAAK,SAAS,EAAE,wBAAwB,GAAG,CAAC,YAAY,KAAK,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC;oBAC7I,MAAM;oBACN,KAAK,CACJ;gBAEJ,cAAc;oBACZ,6BAAK,SAAS,EAAE,mBAAmB,GAAG,WAAW,CAAC,mBAAmB,EAAE,KAAK,EAAE,EAAC,OAAO,EAAE,OAAO,EAAC;wBAC3F,WAAW,CAAC,QAAQ,IAAI,UAAU,CAAC,YAAY,CAAC,SAAS,IAAI,8BAAM,SAAS,EAAC,cAAc,GAAQ;wBACpG,kCAAO,WAAW,CAAC,WAAW,CAAQ,CACpC,CAER,CACJ,CACT,CAAA;IACL,CAAC;IA5DM,yBAAW,GAAG,WAAW,CAAC;IA6DrC,oBAAC;CAAA,AA9DD,CAA4E,aAAa,GA8DxF;SA9DY,aAAa;AAiE1B;IAA8C,6BAA4C;IAA1F;;IAEA,CAAC;IAFoB,SAAS;QAD7B,QAAQ;OACY,SAAS,CAE7B;IAAD,gBAAC;CAAA,AAFD,CAA8C,aAAa,GAE1D;eAFoB,SAAS"}
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { FormContext } from './FormContext';
3
- import { IEditorContainerProps } from './PropTypes';
4
- import ComponentBase from './ComponentBase';
5
- export default class FloatingFormGroup<TData> extends ComponentBase<IEditorContainerProps<HTMLDivElement, TData>> {
6
- static contextType: React.Context<import("./FormContext").FormContextParams>;
7
- context: React.ContextType<typeof FormContext>;
8
- private originalOnFocus?;
9
- private originalOnBlur?;
10
- private isFocused;
11
- private placeholder?;
12
- constructor(props: IEditorContainerProps<HTMLDivElement, TData>);
13
- private containerRef;
14
- private editorRef;
15
- private onFocus;
16
- private onBlur;
17
- private labelClick;
18
- render(): JSX.Element;
19
- }
@@ -1,98 +0,0 @@
1
- import { __assign, __decorate, __extends, __metadata } from "tslib";
2
- import React from 'react';
3
- import { observer } from 'mobx-react';
4
- import { FormContext } from './FormContext';
5
- import { BindPropsHelper, CheckboxType } from './PropTypes';
6
- import { Validation, Utils } from '@singularsystems/neo-core';
7
- import ComponentBase from './ComponentBase';
8
- var FloatingFormGroup = /** @class */ (function (_super) {
9
- __extends(FloatingFormGroup, _super);
10
- function FloatingFormGroup(props) {
11
- var _this = _super.call(this, props) || this;
12
- _this.isFocused = false;
13
- _this.containerRef = React.createRef();
14
- _this.editorRef = React.createRef();
15
- _this.onFocus = _this.onFocus.bind(_this);
16
- _this.onBlur = _this.onBlur.bind(_this);
17
- _this.labelClick = _this.labelClick.bind(_this);
18
- return _this;
19
- }
20
- FloatingFormGroup.prototype.onFocus = function (e) {
21
- if (this.containerRef.current) {
22
- this.containerRef.current.classList.add("focused");
23
- }
24
- if (this.originalOnFocus) {
25
- this.originalOnFocus(e);
26
- }
27
- if (this.placeholder && this.editorRef.current) {
28
- this.editorRef.current.placeholder = this.placeholder;
29
- }
30
- this.isFocused = true;
31
- };
32
- FloatingFormGroup.prototype.onBlur = function (e) {
33
- if (this.containerRef.current) {
34
- this.containerRef.current.classList.remove("focused");
35
- }
36
- if (this.originalOnBlur) {
37
- this.originalOnBlur(e);
38
- }
39
- if (this.editorRef.current) {
40
- this.editorRef.current.placeholder = "";
41
- }
42
- this.isFocused = false;
43
- };
44
- FloatingFormGroup.prototype.labelClick = function (e) {
45
- e.preventDefault();
46
- if (this.editorRef.current) {
47
- this.editorRef.current.focus();
48
- }
49
- };
50
- FloatingFormGroup.prototype.render = function () {
51
- var allProps = BindPropsHelper.normaliseContainerProps(this, this.props, true, false);
52
- var containerProps = allProps.container;
53
- var labelText = containerProps.label ? containerProps.label : allProps.bind.propertyInfo.readableName;
54
- var displayInfo = allProps.bind.validator.getDisplayState(this.context.validationDisplayMode);
55
- var showValidation = displayInfo.severity != Validation.RuleSeverity.None;
56
- if (!allProps.editorDom) {
57
- allProps.editorDom = {};
58
- }
59
- ;
60
- this.originalOnFocus = allProps.editorDom.onFocus;
61
- this.originalOnBlur = allProps.editorDom.onBlur;
62
- allProps.editorDom.onFocus = this.onFocus;
63
- allProps.editorDom.onBlur = this.onBlur;
64
- allProps.editor.inputElement = this.editorRef;
65
- this.placeholder = BindPropsHelper.getPlaceholderText(allProps.editor.placeholder, allProps.bind.propertyInfo);
66
- allProps.editor.placeholder = "";
67
- if (BindPropsHelper.getCheckBoxType(allProps) !== CheckboxType.None) {
68
- throw Error("FormGroupFloating does not support checkboxes, use FormGroup.");
69
- }
70
- var editor = BindPropsHelper.getFormControl(allProps);
71
- allProps.containerDom.className = Utils.joinWithSpaces(allProps.containerDom.className, "neo-form-group-floating");
72
- if (allProps.bind.value) {
73
- allProps.containerDom.className += " has-value";
74
- }
75
- if (showValidation) {
76
- allProps.containerDom.className += " " + displayInfo.additionalClassName;
77
- }
78
- if (this.isFocused) {
79
- allProps.containerDom.className += " focused";
80
- }
81
- return (React.createElement("div", __assign({}, allProps.containerDom, { ref: this.containerRef }),
82
- React.createElement("div", null,
83
- React.createElement("label", { htmlFor: allProps.uniqueID, className: "neo-floating-label", onMouseDown: this.labelClick }, labelText),
84
- editor),
85
- showValidation &&
86
- React.createElement("div", { className: "invalid-feedback " + displayInfo.additionalClassName, style: { display: "block" } },
87
- displayInfo.severity == Validation.RuleSeverity.AsyncBusy && React.createElement("span", { className: "spinner-grow" }),
88
- React.createElement("span", null, displayInfo.displayText))));
89
- };
90
- FloatingFormGroup.contextType = FormContext;
91
- FloatingFormGroup = __decorate([
92
- observer,
93
- __metadata("design:paramtypes", [Object])
94
- ], FloatingFormGroup);
95
- return FloatingFormGroup;
96
- }(ComponentBase));
97
- export default FloatingFormGroup;
98
- //# sourceMappingURL=FormGroupFloating.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormGroupFloating.js","sourceRoot":"","sources":["../../src/ReactComponents/FormGroupFloating.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAyB,YAAY,EAAE,MAAM,aAAa,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAG5C;IAAsD,qCAA2D;IAS7G,2BAAY,KAAmD;QAA/D,YACI,kBAAM,KAAK,CAAC,SAKf;QATO,eAAS,GAAG,KAAK,CAAC;QAWlB,kBAAY,GAAG,KAAK,CAAC,SAAS,EAAkB,CAAC;QACjD,eAAS,GAAG,KAAK,CAAC,SAAS,EAAoB,CAAC;QANpD,KAAI,CAAC,OAAO,GAAG,KAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAI,CAAC,CAAC;QACvC,KAAI,CAAC,MAAM,GAAG,KAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAI,CAAC,CAAC;QACrC,KAAI,CAAC,UAAU,GAAG,KAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAI,CAAC,CAAC;;IACjD,CAAC;IAKO,mCAAO,GAAf,UAAgB,CAAgC;QAC5C,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE;YAAE,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;SAAE;QACtF,IAAI,IAAI,CAAC,eAAe,EAAE;YAAE,IAAI,CAAC,eAAe,CAAC,CAAC,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AAC;SACnD;QACD,IAAI,cAAc,EAAE;YAChB,QAAQ,CAAC,YAAY,CAAC,SAAS,IAAI,GAAG,GAAG,WAAW,CAAC,mBAAmB,CAAC;SAC5E;QACD,IAAI,IAAI,CAAC,SAAS,EAAE;YAChB,QAAQ,CAAC,YAAY,CAAC,SAAS,IAAI,UAAU,CAAC;SACjD;QAED,OAAO,CACH,wCAAS,QAAQ,CAAC,YAAY,IAAE,GAAG,EAAE,IAAI,CAAC,YAAY;YAClD;gBACI,+BAAO,OAAO,EAAE,QAAQ,CAAC,QAAQ,EAAE,SAAS,EAAC,oBAAoB,EAAC,WAAW,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS,CAAU;gBACpH,MAAM,CACL;YAEJ,cAAc;gBACZ,6BAAK,SAAS,EAAE,mBAAmB,GAAG,WAAW,CAAC,mBAAmB,EAAE,KAAK,EAAE,EAAC,OAAO,EAAE,OAAO,EAAC;oBAC3F,WAAW,CAAC,QAAQ,IAAI,UAAU,CAAC,YAAY,CAAC,SAAS,IAAI,8BAAM,SAAS,EAAC,cAAc,GAAQ;oBACpG,kCAAO,WAAW,CAAC,WAAW,CAAQ,CACpC,CAER,CAET,CAAA;IACL,CAAC;IApGM,6BAAW,GAAG,WAAW,CAAC;IADhB,iBAAiB;QADrC,QAAQ;;OACY,iBAAiB,CAsGrC;IAAD,wBAAC;CAAA,AAtGD,CAAsD,aAAa,GAsGlE;eAtGoB,iBAAiB"}
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { FormGroupBase, IFormGroupProps, IFormGroupClasses } from './FormGroup';
3
- import { Components } from '@singularsystems/neo-core';
4
- declare type IInlineFormGroupProps<TData> = IFormGroupProps<TData> & Components.IColumnWidthBreakpoints;
5
- export default class FormGroupInline<TData> extends FormGroupBase<IInlineFormGroupProps<TData>, TData> {
6
- private contextProps?;
7
- protected assertCheckBox(): void;
8
- protected getFormGroupClasses(domProps: React.HTMLProps<HTMLDivElement>): IFormGroupClasses;
9
- render(): JSX.Element;
10
- }
11
- export {};
@@ -1,44 +0,0 @@
1
- import { __extends, __rest } from "tslib";
2
- import React from 'react';
3
- import { FormGroupBase } from './FormGroup';
4
- import { Observer } from 'mobx-react';
5
- import { FormGroupLayoutContext } from './GridLayout';
6
- import { Components, Utils } from '@singularsystems/neo-core';
7
- var FormGroupInline = /** @class */ (function (_super) {
8
- __extends(FormGroupInline, _super);
9
- function FormGroupInline() {
10
- return _super !== null && _super.apply(this, arguments) || this;
11
- }
12
- FormGroupInline.prototype.assertCheckBox = function () {
13
- throw Error("FormGroupInline does not support checkboxes, use FormGroup.");
14
- };
15
- FormGroupInline.prototype.getFormGroupClasses = function (domProps) {
16
- var classes = _super.prototype.getFormGroupClasses.call(this, domProps);
17
- var _a = classes.containerDom, xs = _a.xs, sm = _a.sm, md = _a.md, lg = _a.lg, xl = _a.xl, xxl = _a.xxl, containerDom = __rest(_a, ["xs", "sm", "md", "lg", "xl", "xxl"]);
18
- classes.container += " row";
19
- var colClasses = Components.BootstrapHelpers.getInverseBreakpointClasses(classes.containerDom);
20
- if (!colClasses.cols) {
21
- // No sizes were specified, check if there is a layout context
22
- if (this.contextProps) {
23
- colClasses = Components.BootstrapHelpers.getInverseBreakpointClasses(this.contextProps);
24
- }
25
- if (!colClasses.cols) {
26
- // If there are still no sizes, default to below.
27
- classes.label = "col-4";
28
- classes.editor = "col-8";
29
- }
30
- }
31
- classes.label = Utils.joinWithSpaces(classes.label, "col-form-label", colClasses.cols);
32
- classes.editor = Utils.joinWithSpaces(classes.editor, colClasses.inverseCols);
33
- classes.containerDom = containerDom;
34
- return classes;
35
- };
36
- FormGroupInline.prototype.render = function () {
37
- var _this = this;
38
- return (React.createElement(FormGroupLayoutContext.Consumer, null, function (value) { return (React.createElement(Observer, null, function () { return (_this.contextProps = value.formGroupProps,
39
- _super.prototype.render.call(_this)); })); }));
40
- };
41
- return FormGroupInline;
42
- }(FormGroupBase));
43
- export default FormGroupInline;
44
- //# sourceMappingURL=FormGroupInline.js.map
@@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O,CAAC,KAAK,EAAE,gBAAgB,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;QACvF,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;QAC9E,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC;QAEpC,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,gCAAM,GAAN;QAAA,iBAWC;QAVG,OAAO,CAAC,oBAAC,sBAAsB,CAAC,QAAQ,QAClC,UAAA,KAAK,IAAI,OAAA,CACN,oBAAC,QAAQ,QACJ,cAAM,OAAA,CACJ,KAAI,CAAC,YAAY,GAAG,KAAK,CAAC,cAAc;YACxC,iBAAM,MAAM,YAAE,CAChB,EAHM,CAGN,CACM,CACd,EAPS,CAOT,CAC4B,CAAC,CAAC;IACxC,CAAC;IACL,sBAAC;AAAD,CAAC,AAhDD,CAAoD,aAAa,GAgDhE"}
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import { GridContext } from './Grid';
3
- export declare class DeleteColumn extends React.Component<{
4
- item?: any;
5
- }> {
6
- static contextType: React.Context<import("./Grid").GridContextParams<unknown>>;
7
- context: React.ContextType<typeof GridContext>;
8
- item: any;
9
- render(): JSX.Element;
10
- }
@@ -1,22 +0,0 @@
1
- import * as tslib_1 from "tslib";
2
- import * as React from 'react';
3
- import { GridContext } from './Grid';
4
- import NeoButton from '../Button';
5
- var DeleteColumn = /** @class */ (function (_super) {
6
- tslib_1.__extends(DeleteColumn, _super);
7
- function DeleteColumn() {
8
- return _super !== null && _super.apply(this, arguments) || this;
9
- }
10
- DeleteColumn.prototype.render = function () {
11
- var _this = this;
12
- this.item = this.context.currentItem;
13
- return (this.context.inHeader ?
14
- React.createElement("th", null) :
15
- React.createElement("td", null,
16
- React.createElement(NeoButton, { variant: "danger", icon: "trash", onClick: function () { return _this.context.dataView.originalSource.remove(_this.props.item || _this.item); } })));
17
- };
18
- DeleteColumn.contextType = GridContext;
19
- return DeleteColumn;
20
- }(React.Component));
21
- export { DeleteColumn };
22
- //# sourceMappingURL=Other.js.map