Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Dev > Main 2.2.0#555

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
FalkWolsky merged 83 commits intomainfromdev
Dec 3, 2023
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
83 commits
Select commitHold shift + click to select a range
4e34e82
fix: fix error on deleting table's column inside resp layout
raheeliftikhar5Nov 21, 2023
5358d9e
Improved Documentation
Nov 21, 2023
f448378
Improved Documentation
Nov 21, 2023
7b9b73b
fix: update lowcoder-comps version
raheeliftikhar5Nov 22, 2023
edfeb4f
Merge branch 'dev' into resp-layout-table-column-delete-fix
FalkWolskyNov 22, 2023
c270bf8
Merge pull request #512 from raheeliftikhar5/resp-layout-table-column…
FalkWolskyNov 22, 2023
3cf0675
Merge branch 'dev' into upgrade-comps-version
FalkWolskyNov 22, 2023
bc630fa
Merge pull request #519 from raheeliftikhar5/upgrade-comps-version
FalkWolskyNov 22, 2023
f3fa5d7
fix: org auth url
raheeliftikhar5Nov 22, 2023
55733fe
fix: rewrite blocking call causing API timeouts
ludomikulaNov 23, 2023
d987235
Allow email/form login to bind user to org on login/signup
aq-ikhwa-techNov 23, 2023
4e5f206
Merge branch 'dev' into possibility-to-bind-user-to-org-on-signup-and…
aq-ikhwa-techNov 23, 2023
213950b
Merge branch 'dev' into org-auth-url-fix
FalkWolskyNov 24, 2023
f8077f2
Merge pull request #520 from raheeliftikhar5/org-auth-url-fix
FalkWolskyNov 24, 2023
d0c019f
Merge branch 'dev' into possibility-to-bind-user-to-org-on-signup-and…
FalkWolskyNov 24, 2023
ff95aab
Merge pull request #522 from lowcoder-org/possibility-to-bind-user-to…
FalkWolskyNov 24, 2023
4c99f6e
fix: send orgId in login/register
raheeliftikhar5Nov 25, 2023
df4f986
feat: row expand event
raheeliftikhar5Nov 21, 2023
4eb1c4b
fix: table's column width resizable
raheeliftikhar5Nov 21, 2023
0938357
feat: added column styles
raheeliftikhar5Nov 22, 2023
382f564
feat: allow table column styling
raheeliftikhar5Nov 24, 2023
0f9d2ef
feat: add text-size option in styling
raheeliftikhar5Nov 25, 2023
b19a0b3
feat: add border-width option in styling
raheeliftikhar5Nov 25, 2023
1d8fe40
Introducing Layout / Logic Mode
Nov 25, 2023
9ee508e
Merge pull request #517 from raheeliftikhar5/table-updates
FalkWolskyNov 25, 2023
5dd8d32
Merge pull request #527 from raheeliftikhar5/auth-orgId
FalkWolskyNov 25, 2023
b814ce2
Introducing Layout / Logic Mode
Nov 25, 2023
0e2a9fd
Introducing Layout / Logic Mode step 2
Nov 27, 2023
7998c85
Merge branch 'dev' into feat/Layout-Mode
FalkWolskyNov 27, 2023
fd314d4
Merge pull request #529 from lowcoder-org/feat/Layout-Mode
FalkWolskyNov 27, 2023
d000d85
feat: added screenInfo hook
raheeliftikhar5Nov 28, 2023
14e8dc2
Merge pull request #531 from raheeliftikhar5/screen-info-hook
FalkWolskyNov 28, 2023
ae91db0
refactor: handle redirectUrl using sessionStoragee
raheeliftikhar5Nov 28, 2023
5c732d9
Introducing Layout / Logic Mode step 3 - Table
Nov 28, 2023
27019d1
refactor: use redirectUrl from sessionStorage
raheeliftikhar5Nov 28, 2023
8d7d71f
Introducing Layout / Logic Mode step 4 - Tabs
Nov 28, 2023
85c0499
Merge branch 'dev' into refactor-redirect
FalkWolskyNov 29, 2023
436283f
feat: foldable components sections
raheeliftikhar5Nov 29, 2023
6e080c6
fix: initially show only commonly used comps
raheeliftikhar5Nov 29, 2023
ad2e97e
fix: show border bottom for each section
raheeliftikhar5Nov 29, 2023
5e065a7
Merge pull request #532 from raheeliftikhar5/refactor-redirect
FalkWolskyNov 29, 2023
5fc8cdd
Merge branch 'dev' into foldable-comps-sections
FalkWolskyNov 29, 2023
b4e12f2
Merge pull request #533 from raheeliftikhar5/foldable-comps-sections
FalkWolskyNov 29, 2023
bd3cf48
Merge pull request #534 from lowcoder-org/dev
FalkWolskyNov 29, 2023
38fe46f
feat: fixed header option
raheeliftikhar5Nov 30, 2023
2bf6d87
fix: use window inner width instead of screen width
raheeliftikhar5Nov 30, 2023
fe1affe
fix: show component sectios open in right panel in search state
raheeliftikhar5Nov 30, 2023
18e49ca
fix: replace maxHeight with auto/fixed Height
raheeliftikhar5Nov 30, 2023
5e73943
fix: small fix
raheeliftikhar5Nov 30, 2023
b081a7d
Merge pull request #535 from raheeliftikhar5/fixed-table-header
FalkWolskyNov 30, 2023
a90b975
Merge branch 'feat/Layout-Mode' into feat-layout-mode-table
FalkWolskyNov 30, 2023
1971a6e
Merge pull request #536 from lowcoder-org/feat-layout-mode-table
FalkWolskyNov 30, 2023
fee0c14
adapted Table Property type for fixed header
Nov 30, 2023
1f1afa0
Introduce Layout Mode and Fixes - 5
Nov 30, 2023
93b11fc
Merge pull request #538 from lowcoder-org/feat/Layout-Mode
FalkWolskyNov 30, 2023
4f9e338
Introduce Layout Mode and Fixes - final
Dec 1, 2023
85a1c6a
Merge branch 'dev' into feat/Layout-Mode
FalkWolskyDec 1, 2023
53a4a85
Merge pull request #541 from lowcoder-org/feat/Layout-Mode
FalkWolskyDec 1, 2023
84963ca
Component width fixes
Dec 1, 2023
d6ff5be
Merge branch 'dev' into feat/Layout-Mode
FalkWolskyDec 1, 2023
8574973
Merge pull request #542 from lowcoder-org/feat/Layout-Mode
FalkWolskyDec 1, 2023
eebb26d
Standard Component sizes fixes 2
Dec 1, 2023
bbba824
Standard Component sizes fixes 2
Dec 1, 2023
6edd56b
Merge branch 'dev' into feat/Layout-Mode
FalkWolskyDec 1, 2023
e7301bd
Merge pull request #543 from lowcoder-org/feat/Layout-Mode
FalkWolskyDec 1, 2023
b2b423d
fix: make table rows interactive when fixed header
raheeliftikhar5Dec 1, 2023
e959fd1
fix: separate options to fix header and toolbar
raheeliftikhar5Dec 1, 2023
eecbde8
Merge pull request #549 from raheeliftikhar5/table-fixed-footer
FalkWolskyDec 1, 2023
4d0a3bb
Small translation fixes
Dec 1, 2023
80abd4b
Translation file fixes and deleted console Logs
Dec 1, 2023
b970f6a
Cleaned Up Text base
Dec 2, 2023
46796e5
Fixed Tutorial bug
Dec 2, 2023
13043b0
First Translation to German
Dec 2, 2023
5b450d9
Merge pull request #551 from lowcoder-org/feat-translation
FalkWolskyDec 3, 2023
82b5bc5
Merge pull request #552 from lowcoder-org/dev
FalkWolskyDec 3, 2023
9d9a137
Adding Tree and Treeselect to Layout Mode
Dec 3, 2023
d5aec39
Adding Module Documentation
Dec 3, 2023
f2825a9
Fixing Module Documentation
Dec 3, 2023
9ea2379
Merge pull request #553 from lowcoder-org/feat/Layout-Mode
FalkWolskyDec 3, 2023
3d95d86
fix: screenInfo isTablet flag
raheeliftikhar5Dec 3, 2023
bc8b41d
Merge pull request #554 from raheeliftikhar5/screen-info-tablet
FalkWolskyDec 3, 2023
3fbac74
Fixing Tutorial Documentation
Dec 3, 2023
eb24329
Comps published
Dec 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
feat: add text-size option in styling
  • Loading branch information
@raheeliftikhar5
raheeliftikhar5 committedNov 25, 2023
commit0f9d2ef3e1cc0070355af173f90ca880eabafd9e
View file
Open in desktop
Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletionclient/packages/lowcoder-design/src/icons/index.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -296,4 +296,5 @@ export { ReactComponent as CommentIcon } from "icons/icon-comment-comp.svg";
export { ReactComponent as MentionIcon } from "icons/icon-mention-comp.svg";
export { ReactComponent as AutoCompleteCompIcon } from "icons/icon-autocomplete-comp.svg";
export { ReactComponent as WidthIcon } from "icons/icon-width.svg";
export { ReactComponent as ResponsiveLayoutCompIcon } from "icons/icon-responsive-layout-comp.svg";
export { ReactComponent as ResponsiveLayoutCompIcon } from "icons/icon-responsive-layout-comp.svg";
export { ReactComponent as TextSizeIcon } from "./icon-text-size.svg";
4 changes: 4 additions & 0 deletionsclient/packages/lowcoder/src/api/commonSettingApi.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -47,6 +47,7 @@ export interface ThemeDetail {
margin?: string;
padding?: string;
gridColumns?: string; //Added By Aqib Mirza
textSize?: string;
}

export function getThemeDetailName(key: keyof ThemeDetail) {
Expand All@@ -70,6 +71,8 @@ export function getThemeDetailName(key: keyof ThemeDetail) {
//Added By Aqib Mirza
case "gridColumns":
return trans("themeDetail.gridColumns");
case "textSize":
return trans("style.textSize");
}
return "";
}
Expand All@@ -84,6 +87,7 @@ export function isThemeColorKey(key: string) {
case "margin":
case "padding":
case "gridColumns": //Added By Aqib Mirza
case "textSize":
return true;
}
return false;
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,10 +21,11 @@ import {
withFunction,
wrapChildAction,
} from "lowcoder-core";
import { AlignClose, AlignLeft, AlignRight, controlItem } from "lowcoder-design";
import { AlignClose, AlignLeft, AlignRight,IconRadius, TextSizeIcon,controlItem } from "lowcoder-design";
import { ColumnTypeComp, ColumnTypeCompMap } from "./columnTypeComp";
import { ColorControl } from "comps/controls/colorControl";
import { JSONValue } from "util/jsonTypes";
import styled from "styled-components";

export type Render = ReturnType<ConstructorToComp<typeof RenderComp>["getOriginalComp"]>;
export const RenderComp = withSelectedMultiContext(ColumnTypeComp);
Expand DownExpand Up@@ -100,9 +101,14 @@ export const columnChildrenMap = {
text: withDefault(ColorControl, ""),
border: withDefault(ColorControl, ""),
radius: withDefault(RadiusControl, ""),
textSize: withDefault(RadiusControl, ""),
cellColor: CellColorComp,
};

const StyledIcon = styled.span`
margin: 0 4px 0 14px;
`;

/**
* export for test.
* Put it here temporarily to avoid circular dependencies
Expand DownExpand Up@@ -208,9 +214,14 @@ export class ColumnComp extends ColumnInitComp {
})}
{this.children.radius.propertyView({
label: trans('style.borderRadius'),
//preInputNode: <StyledIcon as={IconRadius} title="" />,
preInputNode: <StyledIcon as={IconRadius} title="" />,
placeholder: '3px',
})}
{this.children.textSize.propertyView({
label: trans('style.textSize'),
preInputNode: <StyledIcon as={TextSizeIcon} title="" />,
placeholder: '14px',
})}
{this.children.cellColor.getPropertyView()}
</>
);
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -277,6 +277,7 @@ const TableTd = styled.td<{

> div > div {
color: ${(props) => props.$style.text};
font-size: ${(props) => props.$style.textSize};
&,
> .ant-badge > .ant-badge-status-text,
> div > .markdown-body {
Expand DownExpand Up@@ -404,6 +405,7 @@ function TableCellView(props: {
text: columnStyle.text || columnsStyle.text,
border: columnStyle.border || columnsStyle.border,
radius: columnStyle.radius || columnsStyle.radius,
textSize: columnStyle.textSize || columnsStyle.textSize,
}
let { background } = style;
if (rowContext.selected) {
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -321,6 +321,7 @@ export function columnsToAntdFormat(
text: column.text,
border: column.border,
radius: column.radius,
textSize: column.textSize,
},
cellColorFn: column.cellColor,
onWidthResize: column.onWidthResize,
Expand Down
49 changes: 42 additions & 7 deletionsclient/packages/lowcoder/src/comps/controls/styleControl.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,7 +6,14 @@ import { BackgroundColorContext } from "comps/utils/backgroundColorContext";
import { ThemeContext } from "comps/utils/themeContext";
import { trans } from "i18n";
import _ from "lodash";
import { controlItem, IconRadius, IconReset, ExpandIcon, CompressIcon, } from "lowcoder-design";
import {
controlItem,
IconRadius,
IconReset,
ExpandIcon,
CompressIcon,
TextSizeIcon,
} from "lowcoder-design";
import { useContext } from "react";
import styled from "styled-components";
import { useIsMobile } from "util/hooks";
Expand All@@ -21,6 +28,7 @@ import {
SingleColorConfig,
MarginConfig,
PaddingConfig,
TextSizeConfig,
} from "./styleControlConstants";

function isSimpleColorConfig(config: SingleColorConfig): config is SimpleColorConfig {
Expand All@@ -35,6 +43,10 @@ function isRadiusConfig(config: SingleColorConfig): config is RadiusConfig {
return config.hasOwnProperty("radius");
}

function isTextSizeConfig(config: SingleColorConfig): config is TextSizeConfig {
return config.hasOwnProperty("textSize");
}

function isMarginConfig(config: SingleColorConfig): config is MarginConfig {
return config.hasOwnProperty("margin");
}
Expand All@@ -56,6 +68,10 @@ function isEmptyRadius(radius: string) {
return _.isEmpty(radius);
}

function isEmptyTextSize(textSize: string) {
return _.isEmpty(textSize);
}

function isEmptyMargin(margin: string) {
return _.isEmpty(margin);
}
Expand All@@ -80,6 +96,10 @@ function calcColors<ColorMap extends Record<string, string>>(
if (!isEmptyRadius(props[name]) && isRadiusConfig(config)) {
res[name] = props[name];
return;
}
if (!isEmptyTextSize(props[name]) && isTextSizeConfig(config)) {
res[name] = props[name];
return;
}
if (!isEmptyMargin(props[name]) && isMarginConfig(config)) {
res[name] = props[name];
Expand All@@ -103,6 +123,10 @@ function calcColors<ColorMap extends Record<string, string>>(
if (isRadiusConfig(config)) {
res[name] = themeWithDefault[config.radius];
}
if (isTextSizeConfig(config)) {
// TODO: remove default textSize after added in theme in backend.
res[name] = themeWithDefault[config.textSize] || '14px';
}
if (isMarginConfig(config)) {
res[name] = themeWithDefault[config.margin];
}
Expand DownExpand Up@@ -222,7 +246,9 @@ margin: 0 8px 0 -2px;
const PaddingIcon = styled(CompressIcon)`
margin: 0 8px 0 -2px;
`;

const StyledTextSizeIcon = styled(TextSizeIcon)`
margin: 0 8px 0 -2px;
`;
const ResetIcon = styled(IconReset)`
&:hover g g {
stroke: #315efb;
Expand All@@ -236,7 +262,8 @@ export function styleControl<T extends readonly SingleColorConfig[]>(colorConfig
const name: Names<T> = config.name;
if (
name === "radius" ||
name === "cardRadius"
name === "cardRadius" ||
name === "textSize"
) {
childrenMap[name] = StringControl;
} else if (name === "margin" || name === "padding" || name==="containerheaderpadding" || name==="containerfooterpadding" || name==="containerbodypadding") {
Expand DownExpand Up@@ -323,9 +350,9 @@ export function styleControl<T extends readonly SingleColorConfig[]>(colorConfig
return controlItem(
{ filterText: config.label },
<div key={index}>
{name === "radius" ||
{(name === "radius" ||
name === "gap" ||
name === "cardRadius"
name === "cardRadius")
? (
children[name] as InstanceType<typeof StringControl>
).propertyView({
Expand All@@ -341,17 +368,25 @@ export function styleControl<T extends readonly SingleColorConfig[]>(colorConfig
preInputNode: <MarginIcon title="" />,
placeholder: props[name],
})
: name === "padding" ||
:(name === "padding" ||
name === "containerheaderpadding"||
name === "containerfooterpadding"||
name === "containerbodypadding"
name === "containerbodypadding")
? (
children[name] as InstanceType<typeof StringControl>
).propertyView({
label: config.label,
preInputNode: <PaddingIcon title="" />,
placeholder: props[name],
})
: name === "textSize"
? (
children[name] as InstanceType<typeof StringControl>
).propertyView({
label: config.label,
preInputNode: <StyledTextSizeIcon title="" />,
placeholder: props[name],
})
: children[name].propertyView({
label: config.label,
panelDefaultColor: props[name],
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -17,6 +17,10 @@ export type RadiusConfig = CommonColorConfig & {
readonly radius: string;
};

export type TextSizeConfig = CommonColorConfig & {
readonly textSize: string;
};

export type ContainerHeaderPaddigConfig = CommonColorConfig & {
readonly containerheaderpadding: string;
};
Expand All@@ -42,7 +46,7 @@ export type DepColorConfig = CommonColorConfig & {
readonly depType?: DEP_TYPE;
transformer: (color: string, ...rest: string[]) => string;
};
export type SingleColorConfig = SimpleColorConfig | DepColorConfig | RadiusConfig | MarginConfig | PaddingConfig | ContainerHeaderPaddigConfig | ContainerFooterPaddigConfig | ContainerBodyPaddigConfig;
export type SingleColorConfig = SimpleColorConfig | DepColorConfig | RadiusConfig |TextSizeConfig |MarginConfig | PaddingConfig | ContainerHeaderPaddigConfig | ContainerFooterPaddigConfig | ContainerBodyPaddigConfig;

export const defaultTheme: ThemeDetail = {
primary: "#3377FF",
Expand All@@ -54,6 +58,7 @@ export const defaultTheme: ThemeDetail = {
margin: "3px",
padding: "3px",
gridColumns: "24",
textSize: "14px",
};

export const SURFACE_COLOR = "#FFFFFF";
Expand DownExpand Up@@ -260,6 +265,12 @@ const PADDING = {
padding: "padding",
} as const;

const TEXT_SIZE = {
name: "textSize",
label: trans("style.textSize"),
textSize: "textSize",
} as const;

const CONTAINERHEADERPADDING = {
name: "containerheaderpadding",
label: trans("style.containerheaderpadding"),
Expand DownExpand Up@@ -696,6 +707,7 @@ export const TableColumnStyle = [
getStaticBorder(),
RADIUS,
TEXT,
TEXT_SIZE,
] as const;

export const FileStyle = [...getStaticBgBorderRadiusByBg(SURFACE_COLOR), TEXT, ACCENT, MARGIN, PADDING] as const;
Expand Down
1 change: 1 addition & 0 deletionsclient/packages/lowcoder/src/i18n/locales/en.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -362,6 +362,7 @@ export const en = {
containerfooterpadding: "Footer Padding",
containerbodypadding: "Body Padding",
minWidth: "Minimum Width",
textSize: "Text Size",
},
export: {
hiddenDesc: "If true, the component is hidden",
Expand Down
1 change: 1 addition & 0 deletionsclient/packages/lowcoder/src/i18n/locales/zh.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -343,6 +343,7 @@ style: {
containerfooterpadding: "下内边距",
containerbodypadding: "内边距",
minWidth: "最小宽度",
textSize: "字体大小",
},
export: {
hiddenDesc: "如果为true,则隐藏组件",
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp