From b4255c3c5664da440dbe2a32779f4c9b5ea95367 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Mon, 20 Jan 2020 21:57:27 +0000 Subject: [PATCH] introduced 'container' to component definition --- packages/builder/src/userInterface/NewComponent.svelte | 2 +- packages/standard-components/components.json | 3 ++- packages/standard-components/public/bundle.css | 2 +- packages/standard-components/public/bundle.css.map | 6 +++--- packages/standard-components/scripts/publishDev.js | 4 +++- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/packages/builder/src/userInterface/NewComponent.svelte b/packages/builder/src/userInterface/NewComponent.svelte index 30a54ec667..a6fb579f64 100644 --- a/packages/builder/src/userInterface/NewComponent.svelte +++ b/packages/builder/src/userInterface/NewComponent.svelte @@ -31,7 +31,7 @@ let saveAttempted=false; store.subscribe(s => { layoutComponents = pipe(s.components, [ - filter(c => includes("layout")(c.tags)), + filter(c => c.container), map(c => ({name:c.name, ...splitName(c.name)})) ]); diff --git a/packages/standard-components/components.json b/packages/standard-components/components.json index b17e14926d..3f529df911 100644 --- a/packages/standard-components/components.json +++ b/packages/standard-components/components.json @@ -43,7 +43,7 @@ "hoverBackground": "string", "hoverBorder": "string" }, - "tags": ["button"] + "tags": ["layout"] }, "login" : { "name": "Login Control", @@ -166,6 +166,7 @@ "className":"string", "onLoad": "event" }, + "container": true, "tags": ["div", "container", "layout"] }, "h1": { diff --git a/packages/standard-components/public/bundle.css b/packages/standard-components/public/bundle.css index 898d5d1023..13072a0025 100644 --- a/packages/standard-components/public/bundle.css +++ b/packages/standard-components/public/bundle.css @@ -1,7 +1,7 @@ #current_component.svelte-uuhis1{height:100%;width:100%} +.root.svelte-aihwli{height:100%;width:100%;grid-template-columns:[navbar] auto [content] 1fr;display:grid}.navbar.svelte-aihwli{grid-column:navbar;background:var(--navBarBackground);border:var(--navBarBorder);color:var(--navBarColor)}.navitem.svelte-aihwli{padding:10px 17px;cursor:pointer}.navitem.svelte-aihwli:hover{background:var(--itemHoverBackground);color:var(--itemHoverColor)}.navitem.selected.svelte-aihwli{background:var(--selectedItemBackground);border:var(--selectedItemBorder);color:var(--selectedItemColor)}.content.svelte-aihwli{grid-column:content} .root.svelte-crnq0a{height:100%;display:grid;grid-template-columns:[left] 1fr [middle] auto [right] 1fr;grid-template-rows:[top] 1fr [center] auto [bottom] 1fr}.content.svelte-crnq0a{grid-column-start:middle;grid-row-start:center;width:400px}.logo-container.svelte-crnq0a{margin-bottom:20px }.logo-container.svelte-crnq0a>img.svelte-crnq0a{max-width:100%}.login-button-container.svelte-crnq0a{text-align:right;margin-top:20px}.incorrect-details-panel.svelte-crnq0a{margin-top:30px;padding:10px;border-style:solid;border-width:1px;border-color:maroon;border-radius:1px;text-align:center;color:maroon;background-color:mistyrose}.form-root.svelte-crnq0a{display:grid;grid-template-columns:[label] auto [control] 1fr}.label.svelte-crnq0a{grid-column-start:label;padding:5px 10px;vertical-align:middle}.control.svelte-crnq0a{grid-column-start:control;padding:5px 10px}.default-input.svelte-crnq0a{font-family:inherit;font-size:inherit;padding:0.4em;margin:0 0 0.5em 0;box-sizing:border-box;border:1px solid #ccc;border-radius:2px;width:100%}.default-button.svelte-crnq0a{font-family:inherit;font-size:inherit;padding:0.4em;margin:0 0 0.5em 0;box-sizing:border-box;border:1px solid #ccc;border-radius:2px;color:#333;background-color:#f4f4f4;outline:none}.default-button.svelte-crnq0a:active{background-color:#ddd}.default-button.svelte-crnq0a:focus{border-color:#666} -.root.svelte-aihwli{height:100%;width:100%;grid-template-columns:[navbar] auto [content] 1fr;display:grid}.navbar.svelte-aihwli{grid-column:navbar;background:var(--navBarBackground);border:var(--navBarBorder);color:var(--navBarColor)}.navitem.svelte-aihwli{padding:10px 17px;cursor:pointer}.navitem.svelte-aihwli:hover{background:var(--itemHoverBackground);color:var(--itemHoverColor)}.navitem.selected.svelte-aihwli{background:var(--selectedItemBackground);border:var(--selectedItemBorder);color:var(--selectedItemColor)}.content.svelte-aihwli{grid-column:content} .default.svelte-1smqkrd{font-family:inherit;font-size:inherit;padding:0.4em;margin:0 0 0.5em 0;box-sizing:border-box;border:1px solid #ccc;border-radius:2px;color:#333;background-color:#f4f4f4;outline:none}.default.svelte-1smqkrd:active{background-color:#ddd}.default.svelte-1smqkrd:focus{border-color:#666}.border.svelte-1smqkrd{border:var(--border)}.color.svelte-1smqkrd{color:var(--color)}.background.svelte-1smqkrd{background:var(--background)}.hoverBorder.svelte-1smqkrd:hover{border:var(--hoverBorder)}.hoverColor.svelte-1smqkrd:hover{color:var(--hoverColor)}.hoverBack.svelte-1smqkrd:hover{background:var(--hoverBackground)} .table-default.svelte-h8rqk6{width:100%;margin-bottom:1rem;color:#212529;border-collapse:collapse}.table-default.svelte-h8rqk6 .thead-default .th-default.svelte-h8rqk6{vertical-align:bottom;border-bottom:2px solid #dee2e6;font-weight:bold}.table-default.svelte-h8rqk6 .th-default.svelte-h8rqk6{padding:.75rem;vertical-align:top;border-top:1px solid #dee2e6;font-weight:normal}.th-default.svelte-h8rqk6{text-align:inherit}.table-default.svelte-h8rqk6 .tbody-default .tr-default.svelte-h8rqk6:hover{color:#212529;background-color:rgba(0,0,0,.075);cursor:pointer} diff --git a/packages/standard-components/public/bundle.css.map b/packages/standard-components/public/bundle.css.map index 88b61cfa1d..747d364427 100644 --- a/packages/standard-components/public/bundle.css.map +++ b/packages/standard-components/public/bundle.css.map @@ -3,18 +3,18 @@ "file": "bundle.css", "sources": [ "..\\src\\Test\\TestApp.svelte", - "..\\src\\Login.svelte", "..\\src\\Nav.svelte", + "..\\src\\Login.svelte", "..\\src\\Button.svelte", "..\\src\\Table.svelte" ], "sourcesContent": [ "\r\n\r\n{#await _appPromise}\r\nloading\r\n{:then _bb}\r\n\r\n
\r\n
\r\n\r\n{/await}\r\n\r\n\r\n\r\n\r\n", - "\n\n
\n\n
\n\n {#if _logo}\n
\n \"logo\"/\n
\n {/if}\n\n
\n
\n {usernameLabel}\n
\n
\n \n
\n
\n {passwordLabel}\n
\n
\n \n
\n
\n\n
\n \n
\n\n {#if incorrect}\n
\n Incorrect username or password\n
\n {/if}\n\n
\n\n
\n\n", "\r\n\r\n
\r\n {#if !hideNavBar}\r\n
\r\n {#each _children as navItem, index}\r\n
\r\n {navItem.title}\r\n
\r\n {/each}\r\n
\r\n {/if}\r\n {#each _children as navItem, index}\r\n
\r\n
\r\n {/each}\r\n
\r\n\r\n\r\n\r\n", + "\n\n
\n\n
\n\n {#if _logo}\n
\n \"logo\"/\n
\n {/if}\n\n
\n
\n {usernameLabel}\n
\n
\n \n
\n
\n {passwordLabel}\n
\n
\n \n
\n
\n\n
\n \n
\n\n {#if incorrect}\n
\n Incorrect username or password\n
\n {/if}\n\n
\n\n
\n\n", "\r\n\r\n\r\n\r\n\r\n\r\n", "\r\n\r\n \r\n \r\n \r\n {#each columns as col}\r\n \r\n {/each}\r\n \r\n \r\n \r\n {#if data}\r\n {#each data as row}\r\n \r\n {#each columns as col, index}\r\n \r\n {/each}\r\n \r\n {/each}\r\n {/if}\r\n \r\n
{col.title}
{cellValue(index, row)}
\r\n\r\n" ], "names": [], - "mappings": "AAkCA,kBAAkB,cAAC,CAAC,AAChB,MAAM,CAAE,IAAI,CACZ,KAAK,CAAE,IAAI,AACf,CAAC;AC0DD,KAAK,cAAC,CAAC,AACH,MAAM,CAAE,IAAI,CACZ,QAAQ,IAAI,CACZ,qBAAqB,CAAE,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,CAC3D,kBAAkB,CAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,AAC5D,CAAC,AAED,QAAQ,cAAC,CAAC,AACN,iBAAiB,CAAE,MAAM,CACzB,cAAc,CAAE,MAAM,CACtB,KAAK,CAAE,KAAK,AAChB,CAAC,AAED,eAAe,cAAC,CAAC,AACb,aAAa,CAAE,IAAI;AACvB,CAAC,AAED,6B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C,AAED,MAAM,eAAC,CAAC,AACP,KAAK,CAAE,IAAI,OAAO,CAAC,AACpB,CAAC,AAED,WAAW,eAAC,CAAC,AACZ,UAAU,CAAE,IAAI,YAAY,CAAC,AAC9B,CAAC,AAED,2BAAY,MAAM,AAAC,CAAC,AACnB,MAAM,CAAE,IAAI,aAAa,CAAC,AAC3B,CAAC,AAED,0BAAW,MAAM,AAAC,CAAC,AAClB,KAAK,CAAE,IAAI,YAAY,CAAC,AACzB,CAAC,AAED,yBAAU,MAAM,AAAC,CAAC,AACjB,UAAU,CAAE,IAAI,iBAAiB,CAAC,AACnC,CAAC;AC3ED,cAAc,cAAC,CAAC,AACZ,KAAK,CAAE,IAAI,CACX,aAAa,CAAE,IAAI,CACnB,KAAK,CAAE,OAAO,CACd,eAAe,CAAE,QAAQ,AAC7B,CAAC,AAED,4BAAc,CAAC,cAAc,CAAC,WAAW,cAAC,CAAC,AACvC,cAAc,CAAE,MAAM,CACtB,aAAa,CAAE,GAAG,CAAC,KAAK,CAAC,OAAO,CAChC,WAAW,CAAE,IAAI,AACrB,CAAC,AAED,4BAAc,CAAC,WAAW,cAAC,CAAC,AACxB,OAAO,CAAE,MAAM,CACf,cAAc,CAAE,GAAG,CACnB,UAAU,CAAE,GAAG,CAAC,KAAK,CAAC,OAAO,CAC7B,WAAW,CAAE,MAAM,AACvB,CAAC,AAED,WAAW,cAAC,CAAC,AACT,UAAU,CAAE,OAAO,AACvB,CAAC,AAED,4BAAc,CAAC,cAAc,CAAC,yBAAW,MAAM,AAAC,CAAC,AAC7C,KAAK,CAAE,OAAO,CACd,gBAAgB,CAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAClC,MAAM,CAAE,OAAO,AACnB,CAAC" } \ No newline at end of file diff --git a/packages/standard-components/scripts/publishDev.js b/packages/standard-components/scripts/publishDev.js index 5e69f856cf..3c5fe49c67 100644 --- a/packages/standard-components/scripts/publishDev.js +++ b/packages/standard-components/scripts/publishDev.js @@ -1,6 +1,7 @@ const { readdir, stat, copyFile } = require("fs-extra"); const { constants } = require("fs"); const { join, basename } = require("path"); +const serverConfig = require("../../server/config")(); const packagesFolder = ".."; @@ -12,7 +13,7 @@ const sourceJsMap = jsMapFile("dist"); const componentsFile = "components.json"; const sourceGenerators = generatorsFile("dist"); -const appPackages = join(packagesFolder, "server", "appPackages"); +const appPackages = join(packagesFolder, "server", serverConfig.latestPackagesFolder); const publicMain = appName => join(appPackages, appName, "public", "main", "lib", "node_modules", "@budibase", "standard-components"); const publicUnauth = appName => join(appPackages, appName, "public", "unauthenticated", "lib", "node_modules", "@budibase", "standard-components"); @@ -40,6 +41,7 @@ const nodeModules = appName => join(appPackages, appName, "node_modules", "@budi for(let app of apps) { + if(app === ".data") continue; if(!(await stat(join(appPackages, app))).isDirectory()) continue; await copySourceJs(nodeModulesDist(app));