1+ /**
2+ * File: nosql-ts.js
3+ * Version: 0.0.7
4+ * Generated: 2025-10-24
5+ */
16(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
27
38},{}],2:[function(require,module,exports){
@@ -8300,7 +8305,7 @@ module.exports = __toCommonJS(typescript_exports);
83008305
83018306// src/compiler/corePublic.ts
83028307var versionMajorMinor = "5.5";
8303- var version = "5.5.2 ";
8308+ var version = "5.5.3 ";
83048309var Comparison = /* @__PURE__ */ ((Comparison3) => {
83058310 Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
83068311 Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -58746,7 +58751,7 @@ function createTypeChecker(host) {
5874658751 }
5874758752 if (moduleResolutionKind === 3 /* Node16 */ || moduleResolutionKind === 99 /* NodeNext */) {
5874858753 const isSyncImport = currentSourceFile.impliedNodeFormat === 1 /* CommonJS */ && !findAncestor(location, isImportCall) || !!findAncestor(location, isImportEqualsDeclaration);
58749- const overrideHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l));
58754+ const overrideHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l) || isJSDocImportTag(l) );
5875058755 if (isSyncImport && sourceFile.impliedNodeFormat === 99 /* ESNext */ && !hasResolutionModeOverride(overrideHost)) {
5875158756 if (findAncestor(location, isImportEqualsDeclaration)) {
5875258757 error2(errorNode, Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead, moduleReference);
@@ -129534,7 +129539,7 @@ function getModeForUsageLocation(file, usage, compilerOptions) {
129534129539}
129535129540function getModeForUsageLocationWorker(file, usage, compilerOptions) {
129536129541 var _a;
129537- if (isImportDeclaration(usage.parent) || isExportDeclaration(usage.parent)) {
129542+ if (isImportDeclaration(usage.parent) || isExportDeclaration(usage.parent) || isJSDocImportTag(usage.parent) ) {
129538129543 const isTypeOnly = isExclusivelyTypeOnlyImportOrExport(usage.parent);
129539129544 if (isTypeOnly) {
129540129545 const override = getResolutionModeOverride(usage.parent.attributes);
@@ -200856,7 +200861,7 @@ const nosqlUtils_1 = require("./utils/nosqlUtils");
200856200861const constants_nosql_1 = require("./utils/constants-nosql");
200857200862/**
200858200863 * SQL Tools Plugin for importing and exporting typescript interfaces.
200859- * Version: 0.0.6
200864+ * Version: 0.0.7
200860200865 */
200861200866Draw.loadPlugin(function (ui) {
200862200867 //Create Base div
@@ -201187,7 +201192,7 @@ exports.validJSONSchemaTypes = JSONSchemaTypes;
201187201192Object.defineProperty(exports, "__esModule", { value: true });
201188201193exports.objectKeyword = exports.arrayKeyword = exports.nullableKeyword = exports.enumKeyword = exports.formatKeyword = exports.commentColumnQuantifiers = exports.pluginVersion = void 0;
201189201194// export sql methods
201190- exports.pluginVersion = "0.0.6 ";
201195+ exports.pluginVersion = "0.0.7 ";
201191201196exports.commentColumnQuantifiers = {
201192201197 Start: "/**",
201193201198 End: "*/",
@@ -201675,7 +201680,7 @@ function dbTypeEnds(label) {
201675201680 * @returns
201676201681 */
201677201682function RemoveNameQuantifiers(name) {
201678- return name.replace(/\[|\]|\(|\"|\'|\`/g, "").trim();
201683+ return name.replace(/\[|\]|\(|\)|\ "|\'|\`/g, "").trim();
201679201684}
201680201685/**
201681201686 * extract row column attributes
@@ -201691,11 +201696,18 @@ function getDbLabel(label, columnQuantifiers) {
201691201696 result.indexOf(columnQuantifiers.End + " ") !== -1
201692201697 ? result.indexOf(columnQuantifiers.End + " ")
201693201698 : result.indexOf(" ");
201694- const attributeType = result.substring(firstSpaceIndex + 1).trim();
201699+ let attributeType = result.substring(firstSpaceIndex + 1).trim();
201695201700 const attributeName = RemoveNameQuantifiers(result.substring(0, firstSpaceIndex + 1));
201701+ const attributesTypes = attributeType.split(" ");
201702+ let attributeComment = null;
201703+ if (attributesTypes.length > 1) {
201704+ attributeComment = attributesTypes.slice(1).join(' ');
201705+ attributeType = attributesTypes[0];
201706+ }
201696201707 const attribute = {
201697201708 attributeName,
201698201709 attributeType,
201710+ attributeComment,
201699201711 };
201700201712 return attribute;
201701201713}
@@ -202099,18 +202111,18 @@ function CreateTableUI(ui, wndFromInput, tableList, cells, rowCell, tableCell, f
202099202111 // add foreign key edges
202100202112 const model = graph.getModel();
202101202113 const columnQuantifiers = GetColumnQuantifiers(type);
202114+ const insertEdge = mxUtils.bind(this, function (targetCell, sourceCell, edge) {
202115+ const label = "";
202116+ const edgeStyle = "edgeStyle=entityRelationEdgeStyle;html=1;endArrow=ERzeroToMany;startArrow=ERzeroToOne;labelBackgroundColor=none;fontFamily=Verdana;fontSize=14;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=-0.018;entryY=0.608;entryDx=0;entryDy=0;entryPerimeter=0;";
202117+ const edgeCell = graph.insertEdge(null, null, label || "", edge.invert ? sourceCell : targetCell, edge.invert ? targetCell : sourceCell, edgeStyle);
202118+ });
202102202119 // const pt = graph.getFreeInsertPoint();
202103202120 foreignKeyList.forEach(function (fk) {
202104202121 if (fk.IsDestination &&
202105202122 fk.PrimaryKeyName &&
202106202123 fk.ReferencesPropertyName &&
202107202124 fk.PrimaryKeyTableName &&
202108202125 fk.ReferencesTableName) {
202109- const insertEdge = mxUtils.bind(this, function (targetCell, sourceCell, edge) {
202110- const label = "";
202111- const edgeStyle = "edgeStyle=entityRelationEdgeStyle;html=1;endArrow=ERzeroToMany;startArrow=ERzeroToOne;labelBackgroundColor=none;fontFamily=Verdana;fontSize=14;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=-0.018;entryY=0.608;entryDx=0;entryDy=0;entryPerimeter=0;";
202112- const edgeCell = graph.insertEdge(null, null, label || "", edge.invert ? sourceCell : targetCell, edge.invert ? targetCell : sourceCell, edgeStyle);
202113- });
202114202126 const edge = {
202115202127 invert: true,
202116202128 };
@@ -202139,13 +202151,13 @@ function CreateTableUI(ui, wndFromInput, tableList, cells, rowCell, tableCell, f
202139202151 col.style.trim().startsWith("shape=partialRectangle")) {
202140202152 const attribute = getDbLabel(col.value, columnQuantifiers);
202141202153 if (isPrimaryTable &&
202142- dbTypeEnds (attribute.attributeName) == fk.PrimaryKeyName) {
202154+ RemoveNameQuantifiers (attribute.attributeName) == RemoveNameQuantifiers( fk.PrimaryKeyName) ) {
202143202155 targetCell = col;
202144202156 // allow recursion
202145202157 }
202146202158 if (isForeignTable &&
202147- dbTypeEnds (attribute.attributeName) ==
202148- fk.ReferencesPropertyName) {
202159+ RemoveNameQuantifiers (attribute.attributeName) ==
202160+ RemoveNameQuantifiers( fk.ReferencesPropertyName) ) {
202149202161 sourceCell = col;
202150202162 }
202151202163 if (targetCell && sourceCell)
0 commit comments