@@ -8300,7 +8300,7 @@ module.exports = __toCommonJS(typescript_exports);
83008300
83018301// src/compiler/corePublic.ts
83028302var versionMajorMinor = "5.5";
8303- var version = "5.5.2 ";
8303+ var version = "5.5.3 ";
83048304var Comparison = /* @__PURE__ */ ((Comparison3) => {
83058305 Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
83068306 Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -58746,7 +58746,7 @@ function createTypeChecker(host) {
5874658746 }
5874758747 if (moduleResolutionKind === 3 /* Node16 */ || moduleResolutionKind === 99 /* NodeNext */) {
5874858748 const isSyncImport = currentSourceFile.impliedNodeFormat === 1 /* CommonJS */ && !findAncestor(location, isImportCall) || !!findAncestor(location, isImportEqualsDeclaration);
58749- const overrideHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l));
58749+ const overrideHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l) || isJSDocImportTag(l) );
5875058750 if (isSyncImport && sourceFile.impliedNodeFormat === 99 /* ESNext */ && !hasResolutionModeOverride(overrideHost)) {
5875158751 if (findAncestor(location, isImportEqualsDeclaration)) {
5875258752 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 +129534,7 @@ function getModeForUsageLocation(file, usage, compilerOptions) {
129534129534}
129535129535function getModeForUsageLocationWorker(file, usage, compilerOptions) {
129536129536 var _a;
129537- if (isImportDeclaration(usage.parent) || isExportDeclaration(usage.parent)) {
129537+ if (isImportDeclaration(usage.parent) || isExportDeclaration(usage.parent) || isJSDocImportTag(usage.parent) ) {
129538129538 const isTypeOnly = isExclusivelyTypeOnlyImportOrExport(usage.parent);
129539129539 if (isTypeOnly) {
129540129540 const override = getResolutionModeOverride(usage.parent.attributes);
@@ -200856,7 +200856,7 @@ const nosqlUtils_1 = require("./utils/nosqlUtils");
200856200856const constants_nosql_1 = require("./utils/constants-nosql");
200857200857/**
200858200858 * SQL Tools Plugin for importing and exporting typescript interfaces.
200859- * Version: 0.0.6
200859+ * Version: 0.0.7
200860200860 */
200861200861Draw.loadPlugin(function (ui) {
200862200862 //Create Base div
@@ -201187,7 +201187,7 @@ exports.validJSONSchemaTypes = JSONSchemaTypes;
201187201187Object.defineProperty(exports, "__esModule", { value: true });
201188201188exports.objectKeyword = exports.arrayKeyword = exports.nullableKeyword = exports.enumKeyword = exports.formatKeyword = exports.commentColumnQuantifiers = exports.pluginVersion = void 0;
201189201189// export sql methods
201190- exports.pluginVersion = "0.0.6 ";
201190+ exports.pluginVersion = "0.0.7 ";
201191201191exports.commentColumnQuantifiers = {
201192201192 Start: "/**",
201193201193 End: "*/",
@@ -201675,7 +201675,7 @@ function dbTypeEnds(label) {
201675201675 * @returns
201676201676 */
201677201677function RemoveNameQuantifiers(name) {
201678- return name.replace(/\[|\]|\(|\"|\'|\`/g, "").trim();
201678+ return name.replace(/\[|\]|\(|\)|\ "|\'|\`/g, "").trim();
201679201679}
201680201680/**
201681201681 * extract row column attributes
@@ -201691,11 +201691,18 @@ function getDbLabel(label, columnQuantifiers) {
201691201691 result.indexOf(columnQuantifiers.End + " ") !== -1
201692201692 ? result.indexOf(columnQuantifiers.End + " ")
201693201693 : result.indexOf(" ");
201694- const attributeType = result.substring(firstSpaceIndex + 1).trim();
201694+ let attributeType = result.substring(firstSpaceIndex + 1).trim();
201695201695 const attributeName = RemoveNameQuantifiers(result.substring(0, firstSpaceIndex + 1));
201696+ const attributesTypes = attributeType.split(" ");
201697+ let attributeComment = null;
201698+ if (attributesTypes.length > 1) {
201699+ attributeComment = attributesTypes.slice(1).join(' ');
201700+ attributeType = attributesTypes[0];
201701+ }
201696201702 const attribute = {
201697201703 attributeName,
201698201704 attributeType,
201705+ attributeComment,
201699201706 };
201700201707 return attribute;
201701201708}
@@ -202099,18 +202106,18 @@ function CreateTableUI(ui, wndFromInput, tableList, cells, rowCell, tableCell, f
202099202106 // add foreign key edges
202100202107 const model = graph.getModel();
202101202108 const columnQuantifiers = GetColumnQuantifiers(type);
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+ });
202102202114 // const pt = graph.getFreeInsertPoint();
202103202115 foreignKeyList.forEach(function (fk) {
202104202116 if (fk.IsDestination &&
202105202117 fk.PrimaryKeyName &&
202106202118 fk.ReferencesPropertyName &&
202107202119 fk.PrimaryKeyTableName &&
202108202120 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- });
202114202121 const edge = {
202115202122 invert: true,
202116202123 };
@@ -202139,13 +202146,13 @@ function CreateTableUI(ui, wndFromInput, tableList, cells, rowCell, tableCell, f
202139202146 col.style.trim().startsWith("shape=partialRectangle")) {
202140202147 const attribute = getDbLabel(col.value, columnQuantifiers);
202141202148 if (isPrimaryTable &&
202142- dbTypeEnds (attribute.attributeName) == fk.PrimaryKeyName) {
202149+ RemoveNameQuantifiers (attribute.attributeName) == RemoveNameQuantifiers( fk.PrimaryKeyName) ) {
202143202150 targetCell = col;
202144202151 // allow recursion
202145202152 }
202146202153 if (isForeignTable &&
202147- dbTypeEnds (attribute.attributeName) ==
202148- fk.ReferencesPropertyName) {
202154+ RemoveNameQuantifiers (attribute.attributeName) ==
202155+ RemoveNameQuantifiers( fk.ReferencesPropertyName) ) {
202149202156 sourceCell = col;
202150202157 }
202151202158 if (targetCell && sourceCell)
0 commit comments