dattatable 2.10.3 → 2.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/lib.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  export * from "./common";
2
2
  export * from "./auditLog";
3
3
  export * from "./dashboard";
4
- export * from "./propertyPane";
5
4
  import * as Common from "./common";
6
5
  import * as AuditLog from "./auditLog";
7
6
  import * as Dashboard from "./dashboard";
package/build/lib.js CHANGED
@@ -30,7 +30,6 @@ 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);
34
33
  // Export the library constant
35
34
  var Common = require("./common");
36
35
  var AuditLog = require("./auditLog");
@@ -269,62 +269,7 @@ 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__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?");
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?");
328
273
 
329
274
  /***/ }),
330
275