@hpcc-js/common 3.3.0 → 3.3.2

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/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('.common_Widget{font-family:Verdana,Geneva,sans-serif;font-size:12px}#hpcc_js_font_size{display:none}.common_Text{fill:#000;font-size:12px}.common_FAChar .common_Text{font-size:14px}.common_Shape{fill:#1f77b4;stroke:#1f77b4}.common_Icon .common_FAChar .common_Text{fill:#fff}.common_Icon .common_FAChar .common_Text,.common_Icon .common_FAChar .common_Text g,.common_Icon .common_FAChar .common_Text text,.common_Icon .common_FAChar .common_Text tspan{pointer-events:none}.common_EntityRectList .entityRectItem{margin:6px;border-width:2px;border-radius:8px;border-color:"black";border-style:solid}.common_EntityRectList .entityRectItem rect{stroke-width:4px;shape-rendering:geometricPrecision}.common_EntityRect .entity_shape>g>rect{shape-rendering:geometricPrecision}.common_TextBox .common_Shape{fill:#dcf1ff;stroke:#1f77b4}.common_List .common_TextBox .common_Shape{fill:#dcf1ff;stroke:#dcf1ff}.common_List .common_TextBox .common_Text{pointer-events:none}.common_List .common_TextBox .common_Shape:hover{fill:#fff;stroke:#fff}.common_Menu .common_FAChar{fill:#fff;cursor:pointer}.common_Menu.disabled .common_FAChar{visibility:hidden;cursor:inherit}.common_Menu .common_List .common_TextBox .common_Shape{fill:#1f77b4;stroke:#1f77b4}.common_Menu .common_List .common_TextBox .common_Text{fill:#fff}.common_Menu .common_List .common_TextBox .common_Shape:hover{fill:#ff7f0e;stroke:#ff7f0e}.common_Surface .container .common_Shape{fill:#f9fcff;stroke:#1f77b4;stroke-width:1px}.common_Surface .title{cursor:move}.common_Surface .title .common_Shape{fill:#1f77b4;stroke:#1f77b4;stroke-width:1px}.common_Surface .title text{fill:#fff;stroke:none}.svg-button-container{position:fixed}.svg-button-container .surface-button{position:relative;background:transparent;border:none;opacity:.8;color:#fff}.svg-button-container .surface-button:hover{opacity:1}.svg-button-container .surface-button:active{opacity:.5}.resizeN{cursor:ns-resize;opacity:0}.resizeNE{cursor:ne-resize;opacity:0}.resizeE{cursor:ew-resize;opacity:0}.resizeSE{cursor:se-resize;opacity:0}.resizeS{cursor:ns-resize;opacity:0}.resizeSW{cursor:sw-resize;opacity:0}.resizeW{cursor:ew-resize;opacity:0}.resizeNW{cursor:nw-resize;opacity:0}.common_IconBar{display:flex;flex-flow:row;justify-content:space-between}.common_IconBar .icon-bar{display:flex;opacity:.95;flex-wrap:nowrap;margin:0;white-space:nowrap;line-height:28px;z-index:1}.common_IconBar .icon-bar a{text-align:center;padding:4px 2px;transition:all .3s ease;color:#a9a9a9}.common_IconBar .icon-bar a.disabled{opacity:.3;pointer-events:none;color:#a9a9a9}.common_IconBar .icon-bar a:hover{background-color:#f5f5f5}.common_IconBar .icon-bar a{background-color:#fff}.common_IconBar .icon-bar a.selected{background-color:#efe5e5}.common_IconBar .icon-bar div.spacer{text-align:center;height:28px;border-left-style:solid;border-left-width:1px;border-left-color:transparent;padding-top:0;padding-left:2px;margin-left:2px;padding-bottom:0}.common_IconBar .icon-bar div.spacer.vline{border-left-color:#a9a9a9;padding-left:4px;margin-left:4px}.common_IconBar .icon-bar a.spacer:hover{background-color:transparent}.common_TitleBar>.title-title{margin:4px}.common_TitleBar>.icon-bar{margin:4px}.common_TitleBar .title-icon{padding:4px 0;position:static}.common_TitleBar .data-count{position:absolute;visibility:hidden}.common_TitleBar .title-text{padding:4px 0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:20px;font-weight:700}.common_TitleBar .description-text{padding:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-weight:400}.common_SVGZoomWidget .zoomBackground{pointer-events:all;fill:none}.common_SVGZoomWidget rect.marqueeSelection{stroke:gray;stroke-dasharray:4px;stroke-opacity:.75;fill:transparent;pointer-events:none}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
1
  var __defProp = Object.defineProperty;
3
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value;
4
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
@@ -5867,7 +5866,6 @@ class SVGWidget extends Widget {
5867
5866
  });
5868
5867
  break;
5869
5868
  case "center":
5870
- /* falls through */
5871
5869
  default:
5872
5870
  this.pos({
5873
5871
  x: this._size.width / 2,
@@ -8076,7 +8074,6 @@ function d3Drag() {
8076
8074
  break;
8077
8075
  case "end":
8078
8076
  delete gestures[id2], --active2;
8079
- // nobreak
8080
8077
  case "drag":
8081
8078
  p = point2(container2, id2), n = active2;
8082
8079
  break;
@@ -8247,25 +8244,21 @@ class ResizeSurface extends Surface {
8247
8244
  switch (d.loc) {
8248
8245
  case "NW":
8249
8246
  delta.x = _dx / 2, delta.w = -_dx;
8250
- /* falls through */
8251
8247
  case "N":
8252
8248
  delta.y = _dy / 2, delta.h = -_dy;
8253
8249
  break;
8254
8250
  case "NE":
8255
8251
  delta.y = _dy / 2, delta.h = -_dy;
8256
- /* falls through */
8257
8252
  case "E":
8258
8253
  delta.x = _dx / 2, delta.w = _dx;
8259
8254
  break;
8260
8255
  case "SE":
8261
8256
  delta.x = _dx / 2, delta.w = _dx;
8262
- /* falls through */
8263
8257
  case "S":
8264
8258
  delta.y = _dy / 2, delta.h = _dy;
8265
8259
  break;
8266
8260
  case "SW":
8267
8261
  delta.y = _dy / 2, delta.h = _dy;
8268
- /* falls through */
8269
8262
  case "W":
8270
8263
  delta.x = _dx / 2, delta.w = -_dx;
8271
8264
  break;
@@ -8979,7 +8972,7 @@ function nopropagation() {
8979
8972
  function noevent() {
8980
8973
  event.preventDefault(), event.stopImmediatePropagation();
8981
8974
  }
8982
- var MODE_DRAG = { name: "drag" }, MODE_SPACE = { name: "space" }, MODE_HANDLE = { name: "handle" }, MODE_CENTER = { name: "center" };
8975
+ var MODE_DRAG = {}, MODE_SPACE = { name: "space" }, MODE_HANDLE = { name: "handle" }, MODE_CENTER = { name: "center" };
8983
8976
  function number1(e) {
8984
8977
  return [+e[0], +e[1]];
8985
8978
  }
@@ -9534,3 +9527,4 @@ export {
9534
9527
  transform as zoomTransform
9535
9528
  };
9536
9529
  //# sourceMappingURL=index.js.map
9530
+ (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('.common_Widget{font-family:Verdana,Geneva,sans-serif;font-size:12px}#hpcc_js_font_size{display:none}.common_Text{fill:#000;font-size:12px}.common_FAChar .common_Text{font-size:14px}.common_Shape{fill:#1f77b4;stroke:#1f77b4}.common_Icon .common_FAChar .common_Text{fill:#fff}.common_Icon .common_FAChar .common_Text,.common_Icon .common_FAChar .common_Text g,.common_Icon .common_FAChar .common_Text text,.common_Icon .common_FAChar .common_Text tspan{pointer-events:none}.common_EntityRectList .entityRectItem{margin:6px;border-width:2px;border-radius:8px;border-color:"black";border-style:solid}.common_EntityRectList .entityRectItem rect{stroke-width:4px;shape-rendering:geometricPrecision}.common_EntityRect .entity_shape>g>rect{shape-rendering:geometricPrecision}.common_TextBox .common_Shape{fill:#dcf1ff;stroke:#1f77b4}.common_List .common_TextBox .common_Shape{fill:#dcf1ff;stroke:#dcf1ff}.common_List .common_TextBox .common_Text{pointer-events:none}.common_List .common_TextBox .common_Shape:hover{fill:#fff;stroke:#fff}.common_Menu .common_FAChar{fill:#fff;cursor:pointer}.common_Menu.disabled .common_FAChar{visibility:hidden;cursor:inherit}.common_Menu .common_List .common_TextBox .common_Shape{fill:#1f77b4;stroke:#1f77b4}.common_Menu .common_List .common_TextBox .common_Text{fill:#fff}.common_Menu .common_List .common_TextBox .common_Shape:hover{fill:#ff7f0e;stroke:#ff7f0e}.common_Surface .container .common_Shape{fill:#f9fcff;stroke:#1f77b4;stroke-width:1px}.common_Surface .title{cursor:move}.common_Surface .title .common_Shape{fill:#1f77b4;stroke:#1f77b4;stroke-width:1px}.common_Surface .title text{fill:#fff;stroke:none}.svg-button-container{position:fixed}.svg-button-container .surface-button{position:relative;background:transparent;border:none;opacity:.8;color:#fff}.svg-button-container .surface-button:hover{opacity:1}.svg-button-container .surface-button:active{opacity:.5}.resizeN{cursor:ns-resize;opacity:0}.resizeNE{cursor:ne-resize;opacity:0}.resizeE{cursor:ew-resize;opacity:0}.resizeSE{cursor:se-resize;opacity:0}.resizeS{cursor:ns-resize;opacity:0}.resizeSW{cursor:sw-resize;opacity:0}.resizeW{cursor:ew-resize;opacity:0}.resizeNW{cursor:nw-resize;opacity:0}.common_IconBar{display:flex;flex-flow:row;justify-content:space-between}.common_IconBar .icon-bar{display:flex;opacity:.95;flex-wrap:nowrap;margin:0;white-space:nowrap;line-height:28px;z-index:1}.common_IconBar .icon-bar a{text-align:center;padding:4px 2px;transition:all .3s ease;color:#a9a9a9}.common_IconBar .icon-bar a.disabled{opacity:.3;pointer-events:none;color:#a9a9a9}.common_IconBar .icon-bar a:hover{background-color:#f5f5f5}.common_IconBar .icon-bar a{background-color:#fff}.common_IconBar .icon-bar a.selected{background-color:#efe5e5}.common_IconBar .icon-bar div.spacer{text-align:center;height:28px;border-left-style:solid;border-left-width:1px;border-left-color:transparent;padding-top:0;padding-left:2px;margin-left:2px;padding-bottom:0}.common_IconBar .icon-bar div.spacer.vline{border-left-color:#a9a9a9;padding-left:4px;margin-left:4px}.common_IconBar .icon-bar a.spacer:hover{background-color:transparent}.common_TitleBar>.title-title{margin:4px}.common_TitleBar>.icon-bar{margin:4px}.common_TitleBar .title-icon{padding:4px 0;position:static}.common_TitleBar .data-count{position:absolute;visibility:hidden}.common_TitleBar .title-text{padding:4px 0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:20px;font-weight:700}.common_TitleBar .description-text{padding:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-weight:400}.common_SVGZoomWidget .zoomBackground{pointer-events:all;fill:none}.common_SVGZoomWidget rect.marqueeSelection{stroke:gray;stroke-dasharray:4px;stroke-opacity:.75;fill:transparent;pointer-events:none}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();