From 1580650d927bde012735d89cce9e59f201a3e446 Mon Sep 17 00:00:00 2001 From: HeCorr <75134774+HeCorr@users.noreply.github.com> Date: Sat, 1 Feb 2025 23:03:33 -0300 Subject: [PATCH 1/3] Disable noDefault on UUID type so it is possible to set a default value on UUID columns --- src/data/datatypes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/datatypes.js b/src/data/datatypes.js index eabf26a..9fda287 100644 --- a/src/data/datatypes.js +++ b/src/data/datatypes.js @@ -237,7 +237,7 @@ const defaultTypesBase = { isSized: false, hasCheck: false, hasPrecision: false, - noDefault: true, + noDefault: false, }, ENUM: { type: "ENUM", @@ -1208,7 +1208,7 @@ const postgresTypesBase = { isSized: false, hasPrecision: false, hasQuotes: true, - noDefault: true, + noDefault: false, }, XML: { type: "XML", From 910d4732c7e56d4dd6a94ac9f705c10ead5e70e3 Mon Sep 17 00:00:00 2001 From: HeCorr <75134774+HeCorr@users.noreply.github.com> Date: Sun, 2 Feb 2025 00:04:59 -0300 Subject: [PATCH 2/3] Fix wrong cursor style on disabled inputs *something* is setting the global cursor style for :disabled elements to "default" and I don't know what, but it conflicts with the intended cursor style of SemiDesign, so let it be determined by semi classes instead. --- src/index.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.css b/src/index.css index 62a845d..b26793e 100644 --- a/src/index.css +++ b/src/index.css @@ -62,6 +62,11 @@ color: inherit; } +:disabled { + /* inherit Semi's cursor style for disabled elements */ + cursor: inherit; +} + ::-webkit-scrollbar { width: 8px; height: 8px; From 0e19da0004a2b4ad06886aadc7e76017eed195ec Mon Sep 17 00:00:00 2001 From: TasneemTantawy Date: Mon, 3 Feb 2025 15:20:13 +0300 Subject: [PATCH 3/3] fix mermaid functionality --- src/utils/exportAs/mermaid.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/exportAs/mermaid.js b/src/utils/exportAs/mermaid.js index cdb66e8..f820c72 100644 --- a/src/utils/exportAs/mermaid.js +++ b/src/utils/exportAs/mermaid.js @@ -10,10 +10,10 @@ export function jsonToMermaid(obj) { return "||--||"; case i18n.t(Cardinality.MANY_TO_ONE_TO_ONE): case Cardinality.MANY_TO_ONE: - return "||--o{"; + return "}o--||"; case i18n.t(Cardinality.ONE_TO_MANY): case Cardinality.ONE_TO_MANY: - return "}o--||"; + return "||--o{"; default: return "--"; }