dattatable 2.10.2 → 2.10.3

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/build/lib.d.ts +1 -0
  2. package/build/lib.js +1 -0
  3. package/build/propertyPane/base.d.ts +19 -0
  4. package/build/propertyPane/base.js +86 -0
  5. package/build/propertyPane/index.d.ts +3 -0
  6. package/build/propertyPane/index.js +9 -0
  7. package/build/propertyPane/multiDropdown.d.ts +11 -0
  8. package/build/propertyPane/multiDropdown.js +85 -0
  9. package/build/propertyPane/multiDropdownButton.d.ts +11 -0
  10. package/build/propertyPane/multiDropdownButton.js +43 -0
  11. package/build/propertyPane/multiDropdownCheckbox.d.ts +11 -0
  12. package/build/propertyPane/multiDropdownCheckbox.js +43 -0
  13. package/dist/dattatable.js +56 -1
  14. package/dist/dattatable.min.js +1 -1
  15. package/docs/assets/navigation.js +1 -1
  16. package/docs/assets/search.js +1 -1
  17. package/docs/classes/Accordion.html +2 -2
  18. package/docs/classes/AuditLog.html +2 -2
  19. package/docs/classes/CanvasForm.html +2 -2
  20. package/docs/classes/Comments.html +2 -2
  21. package/docs/classes/Dashboard.html +4 -4
  22. package/docs/classes/DataTable.html +3 -3
  23. package/docs/classes/Documents.html +6 -6
  24. package/docs/classes/FilterSlideout.html +2 -2
  25. package/docs/classes/Footer.html +2 -2
  26. package/docs/classes/Header.html +2 -2
  27. package/docs/classes/InstallationRequired.html +2 -2
  28. package/docs/classes/ItemForm.html +4 -4
  29. package/docs/classes/List.html +4 -4
  30. package/docs/classes/ListSecurity.html +2 -2
  31. package/docs/classes/LoadingDialog.html +2 -2
  32. package/docs/classes/Modal.html +2 -2
  33. package/docs/classes/Navigation.html +3 -3
  34. package/docs/classes/Tiles.html +2 -2
  35. package/docs/classes/Timeout.html +2 -2
  36. package/docs/enums/ActionButtonTypes.html +2 -2
  37. package/docs/functions/MultiDropdown.html +1 -0
  38. package/docs/functions/MultiDropdownButton.html +1 -0
  39. package/docs/functions/MultiDropdownCheckbox.html +1 -0
  40. package/docs/functions/formatBytes.html +1 -1
  41. package/docs/functions/formatDateValue.html +1 -1
  42. package/docs/functions/formatTimeValue.html +1 -1
  43. package/docs/functions/getContextInfo.html +1 -1
  44. package/docs/functions/getFileExt.html +1 -1
  45. package/docs/functions/waitForTheme.html +1 -1
  46. package/docs/interfaces/IAccordion.html +2 -2
  47. package/docs/interfaces/IAccordionProps.html +2 -2
  48. package/docs/interfaces/IAuditLogItem.html +2 -2
  49. package/docs/interfaces/IAuditLogItemCreation.html +2 -2
  50. package/docs/interfaces/IAuditLogProps.html +2 -2
  51. package/docs/interfaces/IAuditLogViewProps.html +2 -2
  52. package/docs/interfaces/ICommentsItem.html +2 -2
  53. package/docs/interfaces/IDashboardProps.html +2 -2
  54. package/docs/interfaces/IDataTable.html +2 -2
  55. package/docs/interfaces/IDataTableProps.html +2 -2
  56. package/docs/interfaces/IDocumentsProps.html +2 -2
  57. package/docs/interfaces/IFilterItem.html +2 -2
  58. package/docs/interfaces/IFilterProps.html +2 -2
  59. package/docs/interfaces/IFooterProps.html +2 -2
  60. package/docs/interfaces/IHeaderProps.html +2 -2
  61. package/docs/interfaces/IInstallProps.html +2 -2
  62. package/docs/interfaces/IItemFormCreateProps.html +2 -2
  63. package/docs/interfaces/IItemFormEditProps.html +2 -2
  64. package/docs/interfaces/IItemFormTab.html +2 -2
  65. package/docs/interfaces/IItemFormTabInfo.html +2 -2
  66. package/docs/interfaces/IItemFormViewProps.html +2 -2
  67. package/docs/interfaces/IListProps.html +2 -2
  68. package/docs/interfaces/IListSecurity.html +2 -2
  69. package/docs/interfaces/IListSecurityItem.html +2 -2
  70. package/docs/interfaces/IShowDialogProps.html +2 -2
  71. package/docs/interfaces/ITiles.html +2 -2
  72. package/docs/interfaces/ITilesProps.html +2 -2
  73. package/docs/modules.html +4 -1
  74. package/docs/variables/DattaTable.html +1 -1
  75. package/docs/variables/ListSecurityDefaultGroups.html +1 -1
  76. package/package.json +1 -1
package/build/lib.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./common";
2
2
  export * from "./auditLog";
3
3
  export * from "./dashboard";
4
+ export * from "./propertyPane";
4
5
  import * as Common from "./common";
5
6
  import * as AuditLog from "./auditLog";
6
7
  import * as Dashboard from "./dashboard";
package/build/lib.js CHANGED
@@ -30,6 +30,7 @@ exports.DattaTable = void 0;
30
30
  __exportStar(require("./common"), exports);
31
31
  __exportStar(require("./auditLog"), exports);
32
32
  __exportStar(require("./dashboard"), exports);
33
+ __exportStar(require("./propertyPane"), exports);
33
34
  // Export the library constant
34
35
  var Common = require("./common");
35
36
  var AuditLog = require("./auditLog");
@@ -0,0 +1,19 @@
1
+ import { IBasePropertyPane, IBasePropertyPaneProperties, IBasePropertyPaneProps } from "./types";
2
+ /**
3
+ * Base Property Pane
4
+ */
5
+ export declare class BasePropertyPane<IProps = IBasePropertyPaneProps> implements IBasePropertyPane {
6
+ private _config;
7
+ get config(): IProps;
8
+ properties: IBasePropertyPaneProperties;
9
+ targetProperty: string;
10
+ type: number;
11
+ constructor(targetProperty: string, config: IProps, context?: any);
12
+ protected applyTooltip(el: HTMLElement): void;
13
+ get currentValue(): string | undefined;
14
+ currentValueAsObject<T>(): T | undefined;
15
+ protected onDispose(el: HTMLElement, context: any): void;
16
+ private dispose;
17
+ protected onRender(el: HTMLElement, context: any, onChange: (targetProperty: string, newValue?: string | number | boolean | undefined) => void): void;
18
+ private render;
19
+ }
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BasePropertyPane = void 0;
4
+ var gd_sprest_bs_1 = require("gd-sprest-bs");
5
+ /**
6
+ * Base Property Pane
7
+ */
8
+ var BasePropertyPane = /** @class */ (function () {
9
+ // Constructor
10
+ function BasePropertyPane(targetProperty, config, context) {
11
+ var _this = this;
12
+ // Set the type (Custom = 1)
13
+ this.type = 1;
14
+ // Save the configuration
15
+ this._config = config;
16
+ // Save the key
17
+ this.targetProperty = targetProperty;
18
+ // Set the properties
19
+ this.properties = {
20
+ key: this.targetProperty,
21
+ context: context,
22
+ onDispose: function (el, context) {
23
+ // Call the events
24
+ _this.dispose(el, context);
25
+ _this.onDispose ? _this.onDispose(el, context) : null;
26
+ },
27
+ onRender: function (el, context, onChange) {
28
+ _this.render(el, context, onChange);
29
+ _this.onRender ? _this.onRender(el, context, onChange) : null;
30
+ }
31
+ };
32
+ }
33
+ Object.defineProperty(BasePropertyPane.prototype, "config", {
34
+ get: function () { return this._config; },
35
+ enumerable: false,
36
+ configurable: true
37
+ });
38
+ // Applies the tooltip to an element
39
+ BasePropertyPane.prototype.applyTooltip = function (el) {
40
+ // Apply the tooltip
41
+ var content = this._config.tooltip;
42
+ if (content) {
43
+ gd_sprest_bs_1.Components.Tooltip({
44
+ target: el,
45
+ content: content
46
+ });
47
+ }
48
+ };
49
+ Object.defineProperty(BasePropertyPane.prototype, "currentValue", {
50
+ // Returns the current value as a string
51
+ get: function () {
52
+ var properties = this._config.properties;
53
+ return properties ? properties[this.targetProperty] : undefined;
54
+ },
55
+ enumerable: false,
56
+ configurable: true
57
+ });
58
+ // Returns the current value as an object
59
+ BasePropertyPane.prototype.currentValueAsObject = function () {
60
+ // Ensure a value exists
61
+ if (this.currentValue) {
62
+ try {
63
+ return JSON.parse(this.currentValue);
64
+ }
65
+ catch (_a) { }
66
+ }
67
+ // Return nothing
68
+ return undefined;
69
+ };
70
+ // Dispose of the component
71
+ BasePropertyPane.prototype.onDispose = function (el, context) { };
72
+ BasePropertyPane.prototype.dispose = function (el, context) {
73
+ // Clear the element
74
+ while (el.firstChild) {
75
+ el.removeChild(el.firstChild);
76
+ }
77
+ };
78
+ // Renders the component
79
+ BasePropertyPane.prototype.onRender = function (el, context, onChange) { };
80
+ BasePropertyPane.prototype.render = function (el, context, onChange) {
81
+ // Clear the component
82
+ this.dispose(el, context);
83
+ };
84
+ return BasePropertyPane;
85
+ }());
86
+ exports.BasePropertyPane = BasePropertyPane;
@@ -0,0 +1,3 @@
1
+ export { MultiDropdown } from "./multiDropdown";
2
+ export { MultiDropdownButton } from "./multiDropdownButton";
3
+ export { MultiDropdownCheckbox } from "./multiDropdownCheckbox";
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MultiDropdownCheckbox = exports.MultiDropdownButton = exports.MultiDropdown = void 0;
4
+ var multiDropdown_1 = require("./multiDropdown");
5
+ Object.defineProperty(exports, "MultiDropdown", { enumerable: true, get: function () { return multiDropdown_1.MultiDropdown; } });
6
+ var multiDropdownButton_1 = require("./multiDropdownButton");
7
+ Object.defineProperty(exports, "MultiDropdownButton", { enumerable: true, get: function () { return multiDropdownButton_1.MultiDropdownButton; } });
8
+ var multiDropdownCheckbox_1 = require("./multiDropdownCheckbox");
9
+ Object.defineProperty(exports, "MultiDropdownCheckbox", { enumerable: true, get: function () { return multiDropdownCheckbox_1.MultiDropdownCheckbox; } });
@@ -0,0 +1,11 @@
1
+ import { Components } from "gd-sprest-bs";
2
+ import { BasePropertyPane } from "./base";
3
+ import { IMultiDropdown } from "./types";
4
+ /**
5
+ * Multi-Dropdown
6
+ */
7
+ export declare class _MultiDropdown<T = IMultiDropdown> extends BasePropertyPane<T> {
8
+ protected onRendering(props: Components.IFormControlPropsMultiDropdown): Components.IFormControlPropsMultiDropdown;
9
+ onRender(el: HTMLElement, context: any, onChange: (targetProperty: string, newValue?: string | number | boolean | undefined) => void): void;
10
+ }
11
+ export declare const MultiDropdown: (targetProperty: string, config: IMultiDropdown, context?: any) => _MultiDropdown<IMultiDropdown>;
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.MultiDropdown = exports._MultiDropdown = void 0;
19
+ var gd_sprest_bs_1 = require("gd-sprest-bs");
20
+ var base_1 = require("./base");
21
+ /**
22
+ * Multi-Dropdown
23
+ */
24
+ var _MultiDropdown = /** @class */ (function (_super) {
25
+ __extends(_MultiDropdown, _super);
26
+ function _MultiDropdown() {
27
+ return _super !== null && _super.apply(this, arguments) || this;
28
+ }
29
+ // Internal rendering event
30
+ _MultiDropdown.prototype.onRendering = function (props) { return props; };
31
+ // Override the render event
32
+ _MultiDropdown.prototype.onRender = function (el, context, onChange) {
33
+ var _this = this;
34
+ var currentValue = this.currentValueAsObject();
35
+ if (currentValue) {
36
+ var values = [];
37
+ // Parse the values
38
+ for (var i = 0; i < currentValue.length; i++) {
39
+ values.push(currentValue[i]["value"] || currentValue[i]["text"]);
40
+ }
41
+ // Update the current value
42
+ currentValue = values;
43
+ }
44
+ // Set the properties
45
+ var config = this.config;
46
+ var props = {
47
+ description: config.description,
48
+ items: config.items,
49
+ label: config.label,
50
+ name: this.targetProperty,
51
+ type: gd_sprest_bs_1.Components.FormControlTypes.MultiDropdown,
52
+ value: currentValue,
53
+ onChange: function (items) {
54
+ // Convert the object as a string
55
+ var value = undefined;
56
+ try {
57
+ value = JSON.stringify(items);
58
+ }
59
+ catch (_a) { }
60
+ // Call the event
61
+ value = config.onSave ? config.onSave(value) : value;
62
+ // Update the property
63
+ onChange(_this.targetProperty, value);
64
+ }
65
+ };
66
+ // Call the rendering events
67
+ props = this.onRendering(props);
68
+ props = config.onRendering ? config.onRendering(props) : props;
69
+ // Render the dropdown
70
+ gd_sprest_bs_1.Components.Form({
71
+ el: el,
72
+ controls: [props],
73
+ onControlRendered: function (ctrl) {
74
+ // Call the event
75
+ config.onRendered ? config.onRendered(ctrl.dropdown, ctrl.props) : null;
76
+ }
77
+ });
78
+ };
79
+ return _MultiDropdown;
80
+ }(base_1.BasePropertyPane));
81
+ exports._MultiDropdown = _MultiDropdown;
82
+ var MultiDropdown = function (targetProperty, config, context) {
83
+ return new _MultiDropdown(targetProperty, config, context);
84
+ };
85
+ exports.MultiDropdown = MultiDropdown;
@@ -0,0 +1,11 @@
1
+ import { Components } from "gd-sprest-bs";
2
+ import { _MultiDropdown } from "./multiDropdown";
3
+ import { IMultiDropdownButton } from "./types";
4
+ /**
5
+ * Multi-Dropdown Button
6
+ */
7
+ declare class _MultiDropdownButton extends _MultiDropdown<IMultiDropdownButton> {
8
+ protected onRendering(props: Components.IFormControlPropsMultiDropdownButton): Components.IFormControlPropsMultiDropdownButton;
9
+ }
10
+ export declare const MultiDropdownButton: (targetProperty: string, config: IMultiDropdownButton, context?: any) => _MultiDropdownButton;
11
+ export {};
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.MultiDropdownButton = void 0;
19
+ var gd_sprest_bs_1 = require("gd-sprest-bs");
20
+ var multiDropdown_1 = require("./multiDropdown");
21
+ /**
22
+ * Multi-Dropdown Button
23
+ */
24
+ var _MultiDropdownButton = /** @class */ (function (_super) {
25
+ __extends(_MultiDropdownButton, _super);
26
+ function _MultiDropdownButton() {
27
+ return _super !== null && _super.apply(this, arguments) || this;
28
+ }
29
+ // Override the rendering method to customize the type
30
+ _MultiDropdownButton.prototype.onRendering = function (props) {
31
+ // Set the type and placement
32
+ props.placeholder = this.config.placeholder;
33
+ props.placement = this.config.placement || gd_sprest_bs_1.Components.DropdownPlacements.Left;
34
+ props.type = gd_sprest_bs_1.Components.FormControlTypes.MultiDropdownButton;
35
+ // Return the props
36
+ return props;
37
+ };
38
+ return _MultiDropdownButton;
39
+ }(multiDropdown_1._MultiDropdown));
40
+ var MultiDropdownButton = function (targetProperty, config, context) {
41
+ return new _MultiDropdownButton(targetProperty, config, context);
42
+ };
43
+ exports.MultiDropdownButton = MultiDropdownButton;
@@ -0,0 +1,11 @@
1
+ import { Components } from "gd-sprest-bs";
2
+ import { _MultiDropdown } from "./multiDropdown";
3
+ import { IMultiDropdownCheckbox } from "./types";
4
+ /**
5
+ * Multi-Dropdown Checkbox
6
+ */
7
+ declare class _MultiDropdownCheckbox extends _MultiDropdown<IMultiDropdownCheckbox> {
8
+ protected onRendering(props: Components.IFormControlPropsMultiDropdownCheckbox): Components.IFormControlPropsMultiDropdownCheckbox;
9
+ }
10
+ export declare const MultiDropdownCheckbox: (targetProperty: string, config: IMultiDropdownCheckbox, context?: any) => _MultiDropdownCheckbox;
11
+ export {};
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.MultiDropdownCheckbox = void 0;
19
+ var gd_sprest_bs_1 = require("gd-sprest-bs");
20
+ var multiDropdown_1 = require("./multiDropdown");
21
+ /**
22
+ * Multi-Dropdown Checkbox
23
+ */
24
+ var _MultiDropdownCheckbox = /** @class */ (function (_super) {
25
+ __extends(_MultiDropdownCheckbox, _super);
26
+ function _MultiDropdownCheckbox() {
27
+ return _super !== null && _super.apply(this, arguments) || this;
28
+ }
29
+ // Override the rendering method to customize the type
30
+ _MultiDropdownCheckbox.prototype.onRendering = function (props) {
31
+ // Set the type and placement
32
+ props.placeholder = this.config.placeholder;
33
+ props.placement = this.config.placement || gd_sprest_bs_1.Components.DropdownPlacements.Left;
34
+ props.type = gd_sprest_bs_1.Components.FormControlTypes.MultiDropdownCheckbox;
35
+ // Return the props
36
+ return props;
37
+ };
38
+ return _MultiDropdownCheckbox;
39
+ }(multiDropdown_1._MultiDropdown));
40
+ var MultiDropdownCheckbox = function (targetProperty, config, context) {
41
+ return new _MultiDropdownCheckbox(targetProperty, config, context);
42
+ };
43
+ exports.MultiDropdownCheckbox = MultiDropdownCheckbox;
@@ -269,7 +269,62 @@ eval("\r\nvar __createBinding = (this && this.__createBinding) || (Object.create
269
269
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
270
270
 
271
271
  "use strict";
272
- eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}));\r\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.DattaTable = void 0;\r\n// Export the library\r\n__exportStar(__webpack_require__(/*! ./common */ \"./build/common/index.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./auditLog */ \"./build/auditLog/index.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./dashboard */ \"./build/dashboard/index.js\"), exports);\r\n// Export the library constant\r\nvar Common = __webpack_require__(/*! ./common */ \"./build/common/index.js\");\r\nvar AuditLog = __webpack_require__(/*! ./auditLog */ \"./build/auditLog/index.js\");\r\nvar Dashboard = __webpack_require__(/*! ./dashboard */ \"./build/dashboard/index.js\");\r\nexports.DattaTable = __assign(__assign(__assign({}, Common), AuditLog), Dashboard);\r\n\n\n//# sourceURL=webpack://dattatable/./build/lib.js?");
272
+ eval("\r\nvar __assign = (this && this.__assign) || function () {\r\n __assign = Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}));\r\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.DattaTable = void 0;\r\n// Export the library\r\n__exportStar(__webpack_require__(/*! ./common */ \"./build/common/index.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./auditLog */ \"./build/auditLog/index.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./dashboard */ \"./build/dashboard/index.js\"), exports);\r\n__exportStar(__webpack_require__(/*! ./propertyPane */ \"./build/propertyPane/index.js\"), exports);\r\n// Export the library constant\r\nvar Common = __webpack_require__(/*! ./common */ \"./build/common/index.js\");\r\nvar AuditLog = __webpack_require__(/*! ./auditLog */ \"./build/auditLog/index.js\");\r\nvar Dashboard = __webpack_require__(/*! ./dashboard */ \"./build/dashboard/index.js\");\r\nexports.DattaTable = __assign(__assign(__assign({}, Common), AuditLog), Dashboard);\r\n\n\n//# sourceURL=webpack://dattatable/./build/lib.js?");
273
+
274
+ /***/ }),
275
+
276
+ /***/ "./build/propertyPane/base.js":
277
+ /*!************************************!*\
278
+ !*** ./build/propertyPane/base.js ***!
279
+ \************************************/
280
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
281
+
282
+ "use strict";
283
+ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.BasePropertyPane = void 0;\r\nvar gd_sprest_bs_1 = __webpack_require__(/*! gd-sprest-bs */ \"./node_modules/.pnpm/gd-sprest-bs@10.11.52/node_modules/gd-sprest-bs/build/index.js\");\r\n/**\r\n * Base Property Pane\r\n */\r\nvar BasePropertyPane = /** @class */ (function () {\r\n // Constructor\r\n function BasePropertyPane(targetProperty, config, context) {\r\n var _this = this;\r\n // Set the type (Custom = 1)\r\n this.type = 1;\r\n // Save the configuration\r\n this._config = config;\r\n // Save the key\r\n this.targetProperty = targetProperty;\r\n // Set the properties\r\n this.properties = {\r\n key: this.targetProperty,\r\n context: context,\r\n onDispose: function (el, context) {\r\n // Call the events\r\n _this.dispose(el, context);\r\n _this.onDispose ? _this.onDispose(el, context) : null;\r\n },\r\n onRender: function (el, context, onChange) {\r\n _this.render(el, context, onChange);\r\n _this.onRender ? _this.onRender(el, context, onChange) : null;\r\n }\r\n };\r\n }\r\n Object.defineProperty(BasePropertyPane.prototype, \"config\", {\r\n get: function () { return this._config; },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n // Applies the tooltip to an element\r\n BasePropertyPane.prototype.applyTooltip = function (el) {\r\n // Apply the tooltip\r\n var content = this._config.tooltip;\r\n if (content) {\r\n gd_sprest_bs_1.Components.Tooltip({\r\n target: el,\r\n content: content\r\n });\r\n }\r\n };\r\n Object.defineProperty(BasePropertyPane.prototype, \"currentValue\", {\r\n // Returns the current value as a string\r\n get: function () {\r\n var properties = this._config.properties;\r\n return properties ? properties[this.targetProperty] : undefined;\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n // Returns the current value as an object\r\n BasePropertyPane.prototype.currentValueAsObject = function () {\r\n // Ensure a value exists\r\n if (this.currentValue) {\r\n try {\r\n return JSON.parse(this.currentValue);\r\n }\r\n catch (_a) { }\r\n }\r\n // Return nothing\r\n return undefined;\r\n };\r\n // Dispose of the component\r\n BasePropertyPane.prototype.onDispose = function (el, context) { };\r\n BasePropertyPane.prototype.dispose = function (el, context) {\r\n // Clear the element\r\n while (el.firstChild) {\r\n el.removeChild(el.firstChild);\r\n }\r\n };\r\n // Renders the component\r\n BasePropertyPane.prototype.onRender = function (el, context, onChange) { };\r\n BasePropertyPane.prototype.render = function (el, context, onChange) {\r\n // Clear the component\r\n this.dispose(el, context);\r\n };\r\n return BasePropertyPane;\r\n}());\r\nexports.BasePropertyPane = BasePropertyPane;\r\n\n\n//# sourceURL=webpack://dattatable/./build/propertyPane/base.js?");
284
+
285
+ /***/ }),
286
+
287
+ /***/ "./build/propertyPane/index.js":
288
+ /*!*************************************!*\
289
+ !*** ./build/propertyPane/index.js ***!
290
+ \*************************************/
291
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
292
+
293
+ "use strict";
294
+ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.MultiDropdownCheckbox = exports.MultiDropdownButton = exports.MultiDropdown = void 0;\r\nvar multiDropdown_1 = __webpack_require__(/*! ./multiDropdown */ \"./build/propertyPane/multiDropdown.js\");\r\nObject.defineProperty(exports, \"MultiDropdown\", ({ enumerable: true, get: function () { return multiDropdown_1.MultiDropdown; } }));\r\nvar multiDropdownButton_1 = __webpack_require__(/*! ./multiDropdownButton */ \"./build/propertyPane/multiDropdownButton.js\");\r\nObject.defineProperty(exports, \"MultiDropdownButton\", ({ enumerable: true, get: function () { return multiDropdownButton_1.MultiDropdownButton; } }));\r\nvar multiDropdownCheckbox_1 = __webpack_require__(/*! ./multiDropdownCheckbox */ \"./build/propertyPane/multiDropdownCheckbox.js\");\r\nObject.defineProperty(exports, \"MultiDropdownCheckbox\", ({ enumerable: true, get: function () { return multiDropdownCheckbox_1.MultiDropdownCheckbox; } }));\r\n\n\n//# sourceURL=webpack://dattatable/./build/propertyPane/index.js?");
295
+
296
+ /***/ }),
297
+
298
+ /***/ "./build/propertyPane/multiDropdown.js":
299
+ /*!*********************************************!*\
300
+ !*** ./build/propertyPane/multiDropdown.js ***!
301
+ \*********************************************/
302
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
303
+
304
+ "use strict";
305
+ eval("\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.MultiDropdown = exports._MultiDropdown = void 0;\r\nvar gd_sprest_bs_1 = __webpack_require__(/*! gd-sprest-bs */ \"./node_modules/.pnpm/gd-sprest-bs@10.11.52/node_modules/gd-sprest-bs/build/index.js\");\r\nvar base_1 = __webpack_require__(/*! ./base */ \"./build/propertyPane/base.js\");\r\n/**\r\n * Multi-Dropdown\r\n */\r\nvar _MultiDropdown = /** @class */ (function (_super) {\r\n __extends(_MultiDropdown, _super);\r\n function _MultiDropdown() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n // Internal rendering event\r\n _MultiDropdown.prototype.onRendering = function (props) { return props; };\r\n // Override the render event\r\n _MultiDropdown.prototype.onRender = function (el, context, onChange) {\r\n var _this = this;\r\n var currentValue = this.currentValueAsObject();\r\n if (currentValue) {\r\n var values = [];\r\n // Parse the values\r\n for (var i = 0; i < currentValue.length; i++) {\r\n values.push(currentValue[i][\"value\"] || currentValue[i][\"text\"]);\r\n }\r\n // Update the current value\r\n currentValue = values;\r\n }\r\n // Set the properties\r\n var config = this.config;\r\n var props = {\r\n description: config.description,\r\n items: config.items,\r\n label: config.label,\r\n name: this.targetProperty,\r\n type: gd_sprest_bs_1.Components.FormControlTypes.MultiDropdown,\r\n value: currentValue,\r\n onChange: function (items) {\r\n // Convert the object as a string\r\n var value = undefined;\r\n try {\r\n value = JSON.stringify(items);\r\n }\r\n catch (_a) { }\r\n // Call the event\r\n value = config.onSave ? config.onSave(value) : value;\r\n // Update the property\r\n onChange(_this.targetProperty, value);\r\n }\r\n };\r\n // Call the rendering events\r\n props = this.onRendering(props);\r\n props = config.onRendering ? config.onRendering(props) : props;\r\n // Render the dropdown\r\n gd_sprest_bs_1.Components.Form({\r\n el: el,\r\n controls: [props],\r\n onControlRendered: function (ctrl) {\r\n // Call the event\r\n config.onRendered ? config.onRendered(ctrl.dropdown, ctrl.props) : null;\r\n }\r\n });\r\n };\r\n return _MultiDropdown;\r\n}(base_1.BasePropertyPane));\r\nexports._MultiDropdown = _MultiDropdown;\r\nvar MultiDropdown = function (targetProperty, config, context) {\r\n return new _MultiDropdown(targetProperty, config, context);\r\n};\r\nexports.MultiDropdown = MultiDropdown;\r\n\n\n//# sourceURL=webpack://dattatable/./build/propertyPane/multiDropdown.js?");
306
+
307
+ /***/ }),
308
+
309
+ /***/ "./build/propertyPane/multiDropdownButton.js":
310
+ /*!***************************************************!*\
311
+ !*** ./build/propertyPane/multiDropdownButton.js ***!
312
+ \***************************************************/
313
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
314
+
315
+ "use strict";
316
+ eval("\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.MultiDropdownButton = void 0;\r\nvar gd_sprest_bs_1 = __webpack_require__(/*! gd-sprest-bs */ \"./node_modules/.pnpm/gd-sprest-bs@10.11.52/node_modules/gd-sprest-bs/build/index.js\");\r\nvar multiDropdown_1 = __webpack_require__(/*! ./multiDropdown */ \"./build/propertyPane/multiDropdown.js\");\r\n/**\r\n * Multi-Dropdown Button\r\n */\r\nvar _MultiDropdownButton = /** @class */ (function (_super) {\r\n __extends(_MultiDropdownButton, _super);\r\n function _MultiDropdownButton() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n // Override the rendering method to customize the type\r\n _MultiDropdownButton.prototype.onRendering = function (props) {\r\n // Set the type and placement\r\n props.placeholder = this.config.placeholder;\r\n props.placement = this.config.placement || gd_sprest_bs_1.Components.DropdownPlacements.Left;\r\n props.type = gd_sprest_bs_1.Components.FormControlTypes.MultiDropdownButton;\r\n // Return the props\r\n return props;\r\n };\r\n return _MultiDropdownButton;\r\n}(multiDropdown_1._MultiDropdown));\r\nvar MultiDropdownButton = function (targetProperty, config, context) {\r\n return new _MultiDropdownButton(targetProperty, config, context);\r\n};\r\nexports.MultiDropdownButton = MultiDropdownButton;\r\n\n\n//# sourceURL=webpack://dattatable/./build/propertyPane/multiDropdownButton.js?");
317
+
318
+ /***/ }),
319
+
320
+ /***/ "./build/propertyPane/multiDropdownCheckbox.js":
321
+ /*!*****************************************************!*\
322
+ !*** ./build/propertyPane/multiDropdownCheckbox.js ***!
323
+ \*****************************************************/
324
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
325
+
326
+ "use strict";
327
+ eval("\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = function (d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n };\r\n return function (d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.MultiDropdownCheckbox = void 0;\r\nvar gd_sprest_bs_1 = __webpack_require__(/*! gd-sprest-bs */ \"./node_modules/.pnpm/gd-sprest-bs@10.11.52/node_modules/gd-sprest-bs/build/index.js\");\r\nvar multiDropdown_1 = __webpack_require__(/*! ./multiDropdown */ \"./build/propertyPane/multiDropdown.js\");\r\n/**\r\n * Multi-Dropdown Checkbox\r\n */\r\nvar _MultiDropdownCheckbox = /** @class */ (function (_super) {\r\n __extends(_MultiDropdownCheckbox, _super);\r\n function _MultiDropdownCheckbox() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n // Override the rendering method to customize the type\r\n _MultiDropdownCheckbox.prototype.onRendering = function (props) {\r\n // Set the type and placement\r\n props.placeholder = this.config.placeholder;\r\n props.placement = this.config.placement || gd_sprest_bs_1.Components.DropdownPlacements.Left;\r\n props.type = gd_sprest_bs_1.Components.FormControlTypes.MultiDropdownCheckbox;\r\n // Return the props\r\n return props;\r\n };\r\n return _MultiDropdownCheckbox;\r\n}(multiDropdown_1._MultiDropdown));\r\nvar MultiDropdownCheckbox = function (targetProperty, config, context) {\r\n return new _MultiDropdownCheckbox(targetProperty, config, context);\r\n};\r\nexports.MultiDropdownCheckbox = MultiDropdownCheckbox;\r\n\n\n//# sourceURL=webpack://dattatable/./build/propertyPane/multiDropdownCheckbox.js?");
273
328
 
274
329
  /***/ }),
275
330