Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@datagrok-libraries/utils

Package Overview
Dependencies
Maintainers
2
Versions
233
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datagrok-libraries/utils - npm Package Compare versions

Comparing version 4.1.14 to 4.1.15

2

package.json

@@ -11,3 +11,3 @@ {

"fullName": "Utils",
"version": "4.1.14",
"version": "4.1.15",
"description": "Common utilities",

@@ -14,0 +14,0 @@ "dependencies": {

@@ -34,3 +34,3 @@ import * as DG from 'datagrok-api/dg';

alignItems: 'center', gap: '12px'
} });
}, classes: 'ui-items-grid' });
this._items = items;

@@ -46,3 +46,3 @@ this.render();

render() {
var _a;
var _a, _b, _c, _d;
ui.empty(this._root);

@@ -64,3 +64,3 @@ if (!this.options.horizontalInputNames) {

if (this.options.allowAdd) {
const newEditor = this.getItemDiv(undefined, true);
const newEditor = this.getItemDiv((_d = (_c = (_b = this.options).newItemFunction) === null || _c === void 0 ? void 0 : _c.call(_b)) !== null && _d !== void 0 ? _d : undefined, true);
for (const editor of newEditor)

@@ -81,3 +81,3 @@ this._root.appendChild(editor);

editors.push(this.options.horizontalInputNames ? input.root : this.hideLabel(input.root));
if (prop.propertyType !== DG.TYPE.BOOL)
if (prop.propertyType !== DG.TYPE.BOOL && prop.name.toLowerCase() !== 'color')
input.input && (input.input.style.width = '100%');

@@ -137,2 +137,2 @@ inputsMap[prop.name] = input;

*/
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXRlbXMtZ3JpZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIml0ZW1zLWdyaWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUN0QyxPQUFPLEtBQUssRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ3R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sZTogdHJ1ZX0pXTtcbiAgICBjb25zdCBpdGVtc0dyaWQgPSBuZXcgSXRlbXNHcmlkKHByb3BzKTtcbiAqIHRoZSBjb21wb25lbnQgaGFzIGEgcm9vdCBwcm9wZXJ0eSB0aGF0IGNhbiBiZSBhZGRlZCB0byB0aGUgcGFnZVxuICAgIHVpLmRpYWxvZygnZGlhbG9nJykuYWRkKGl0ZW1zR3JpZC5yb290KS5zaG93KCk7XG4gICAgYXQgYW55IHBvaW50LCBmaWxsZWQgZmllbGRzIGNhbiBiZSBhY2Nlc3NlZCB2aWEgaXRlbXNHcmlkLml0ZW1zXG4gKi9cbiJdfQ==
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc