Skip to content

Dev -> Main v2.4.5 #1094

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 59 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
caa36ff
Style Control CHanges
MenamAfzal Jul 25, 2024
3159fc0
Add line Height in Said Components
MenamAfzal Jul 25, 2024
0cf5abd
Improved Translations
MenamAfzal Jul 25, 2024
470afcb
initial code
MenamAfzal Jul 25, 2024
4c8dd4e
Push for debug
MenamAfzal Jul 26, 2024
fb4f140
Increasing Version Numbers to release new SDK and Lowcoder Comps
Jul 26, 2024
9b4dedd
Increasing Version Number to release new SDK
Jul 26, 2024
6a1b7cc
double click handled
MenamAfzal Jul 26, 2024
c5640ad
added lineHeight as css property
MenamAfzal Jul 27, 2024
0bc663b
lineHeight icon added in right panel
MenamAfzal Jul 27, 2024
7459f78
lineHeight icon added in right panel
MenamAfzal Jul 27, 2024
32dc4ec
pull from origin
MenamAfzal Jul 27, 2024
1db61e7
pull from origin
MenamAfzal Jul 27, 2024
52305fe
latest changes
MenamAfzal Jul 27, 2024
35088b8
margin right added
MenamAfzal Jul 27, 2024
4c316ea
Merge branch 'dev' into fix/table-styles
MenamAfzal Jul 27, 2024
8288a82
Updating Stripe and introducing Lowcoder API as Datasource
Jul 27, 2024
d267998
finnal tweaks
MenamAfzal Jul 29, 2024
d52ac6f
Merge branch 'dev' into add/doubleClick
MenamAfzal Jul 29, 2024
4ab618b
Merge branch 'dev' into fix/table-styles
raheeliftikhar5 Jul 29, 2024
1828fba
Merge pull request #1070 from MenamAfzal/add/doubleClick
raheeliftikhar5 Jul 29, 2024
ecc5c8d
Merge branch 'dev' into fix/table-styles
raheeliftikhar5 Jul 29, 2024
df4df7d
Merge pull request #1071 from MenamAfzal/fix/table-styles
raheeliftikhar5 Jul 29, 2024
f8f2872
added app header settings in advanced settings
raheeliftikhar5 Jul 29, 2024
3e4fa6f
Merge branch 'dev' into add/lineHeight
raheeliftikhar5 Jul 29, 2024
7e3b1a9
Merge pull request #1069 from MenamAfzal/add/lineHeight
raheeliftikhar5 Jul 29, 2024
75a9714
fix: javascript queries not executing on page load
raheeliftikhar5 Jul 29, 2024
476943c
Renaming of old Strapi Specs file
Jul 29, 2024
fb90fe3
remove Console Logs in Node Server
Jul 29, 2024
4140a71
table expansion issue resolved
MenamAfzal Jul 30, 2024
fab46dd
shadow issue resolved
MenamAfzal Jul 30, 2024
a4bf6a9
added horizontalGridCells property in inner-grid based comps
raheeliftikhar5 Jul 30, 2024
acb1cb1
Merge branch 'dev' into fix/table
raheeliftikhar5 Jul 30, 2024
0069cbc
Merge pull request #1076 from MenamAfzal/fix/table
raheeliftikhar5 Jul 30, 2024
3ef0e4f
increase debounce time for input changes to avoid jumping cursor
raheeliftikhar5 Jul 31, 2024
4cd85cc
added dropdown type column in table
raheeliftikhar5 Jul 31, 2024
a739e2e
added tooltip option for table header
raheeliftikhar5 Jul 31, 2024
7129ccf
line height removed from single liner input fields
MenamAfzal Aug 1, 2024
e76fd45
added column separator option for downloaded table's csv
raheeliftikhar5 Aug 1, 2024
2ef23dd
added column tooltip in table
raheeliftikhar5 Aug 1, 2024
4e21471
removed tooltip from column types and placed in abstract level for al…
raheeliftikhar5 Aug 2, 2024
1bf4a84
Merge pull request #1083 from lowcoder-org/table-column-tooltip
FalkWolsky Aug 2, 2024
a62f1f2
Merge pull request #1082 from MenamAfzal/remove/lineHeight
FalkWolsky Aug 3, 2024
dfd71b5
Supabase Management API as Data Source
Aug 3, 2024
1c3716c
Cleaning up Data Sources Display
Aug 3, 2024
6043e8f
Sorting Database and Big Data
Aug 3, 2024
78dd346
Fixing Table Column Display Selector & Naming
Aug 3, 2024
11f4073
Reorganized icons - old icons to v1 folder
Aug 3, 2024
ee70a49
Fixing iframely Tag
Aug 3, 2024
6e98446
Fixing iframely Tag for Componet Display
Aug 3, 2024
c7f2c54
fix table scroll behaviour
raheeliftikhar5 Aug 5, 2024
a8f49d0
added horizontal/vertical scrollbar switches
raheeliftikhar5 Aug 6, 2024
f3e96ac
remove commented code
raheeliftikhar5 Aug 6, 2024
575755d
fix select input styles not applying
raheeliftikhar5 Aug 6, 2024
72e7419
fix tree select input styles not applying
raheeliftikhar5 Aug 6, 2024
23149c6
Merge pull request #1093 from lowcoder-org/table-scrollbars
FalkWolsky Aug 6, 2024
1a887bb
Setting Version for 2.4.5 and renaming local storage namespace
Aug 6, 2024
0e04061
fixed table scrollbar issues
raheeliftikhar5 Aug 6, 2024
c000da1
Increasing Versions for v2.4.5
Aug 6, 2024
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
Prev Previous commit
Next Next commit
added column tooltip in table
  • Loading branch information
raheeliftikhar5 committed Aug 1, 2024
commit 2ef23dd017a4ed754c9c36059d19bca15d7e2736
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export function EditableCell<T extends JSONValue>(props: EditableCellProps<T>) {
textOverflow={props.textOverflow}
>
{status === "toSave" && !isEditing && <EditableChip />}
{normalView}
{!editable && normalView}
{/* overlay on normal view to handle double click for editing */}
{editable && (
<div
Expand All @@ -142,6 +142,7 @@ export function EditableCell<T extends JSONValue>(props: EditableCellProps<T>) {
}}
onDoubleClick={enterEditFn}
>
{normalView}
</div>
)}
</ColumnTypeView>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { withDefault } from "comps/generators";
import styled from "styled-components";
import { IconControl } from "comps/controls/iconControl";
import { hasIcon } from "comps/utils";
import Tooltip from "antd/es/tooltip";

const InputNumberWrapper = styled.div`
.ant-input-number {
Expand All @@ -26,6 +27,7 @@ const InputNumberWrapper = styled.div`

const childrenMap = {
text: NumberControl,
tooltip: StringControl,
step: withDefault(NumberControl, 1),
precision: RangeControl.closed(0, 20, 0),
float: BoolControl,
Expand Down Expand Up @@ -58,13 +60,15 @@ export const ColumnNumberComp = (function () {
formattedValue = formattedValue.toFixed(precision + 1);
}
return (
<>{hasIcon(props.prefixIcon) && (
<Tooltip title={props.tooltip}>
{hasIcon(props.prefixIcon) && (
<span>{props.prefixIcon}</span>
)}
<span>{props.prefix + formattedValue + props.suffix}</span>
{hasIcon(props.suffixIcon) && (
<span>{props.suffixIcon}</span>
)} </>
)}
</Tooltip>
);
},
(nodeValue) => nodeValue.text.value,
Expand Down Expand Up @@ -95,6 +99,10 @@ export const ColumnNumberComp = (function () {
label: trans("table.columnValue"),
tooltip: ColumnValueTooltip,
})}
{children.tooltip.propertyView({
label: trans("table.columnTooltip"),
tooltip: ColumnValueTooltip,
})}
{children.step.propertyView({
label: trans("table.numberStep"),
tooltip: trans("table.numberStepTooltip"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BoolCodeControl } from "comps/controls/codeControl";
import { BoolCodeControl, StringControl } from "comps/controls/codeControl";
import { trans } from "i18n";
import { default as Checkbox } from "antd/es/checkbox";
import { ColumnTypeCompBuilder, ColumnTypeViewFn } from "../columnTypeCompBuilder";
Expand All @@ -11,6 +11,7 @@ import { dropdownControl } from "comps/controls/dropdownControl";
import { TableCheckedIcon, TableUnCheckedIcon } from "lowcoder-design";
import { IconControl } from "comps/controls/iconControl";
import { hasIcon } from "comps/utils";
import Tooltip from "antd/es/tooltip";

const CheckboxStyled = styled(Checkbox)<{ $style: CheckboxStyleType }>`
${(props) => props.$style && getStyle(props.$style)}
Expand All @@ -21,9 +22,10 @@ const Wrapper = styled.div`
padding: 0 8px;
`;

const IconWrapper = styled.div<{ $style: CheckboxStyleType; $ifChecked: boolean }>`
pointer-events: none;
const IconWrapper = styled.span<{ $style: CheckboxStyleType; $ifChecked: boolean }>`
// pointer-events: none;
height: 22px;
display: inline-block;
svg {
width: 14px;
height: 22px;
Expand All @@ -50,6 +52,7 @@ const falseValuesOptions = [

const childrenMap = {
text: BoolCodeControl,
tooltip: StringControl,
falseValues: dropdownControl(falseValuesOptions, ""),
iconTrue: IconControl,
iconFalse: IconControl,
Expand Down Expand Up @@ -93,12 +96,14 @@ export const BooleanComp = (function () {
const CheckBoxComp = () => {
const style = useStyle(CheckboxStyle);
return (
<IconWrapper $style={style} $ifChecked={value}>
{value === true ? ( hasIcon(props.iconTrue) ? props.iconTrue : <TableCheckedIcon /> )
: value === false ? ( hasIcon(props.iconFalse) ? props.iconFalse : ( props.falseValues === "x" ? <TableUnCheckedIcon /> : props.falseValues )
) : ( hasIcon(props.iconNull) ? props.iconNull : "No Value"
)}
</IconWrapper>
<Tooltip title={props.tooltip}>
<IconWrapper $style={style} $ifChecked={value}>
{value === true ? ( hasIcon(props.iconTrue) ? props.iconTrue : <TableCheckedIcon /> )
: value === false ? ( hasIcon(props.iconFalse) ? props.iconFalse : ( props.falseValues === "x" ? <TableUnCheckedIcon /> : props.falseValues )
) : ( hasIcon(props.iconNull) ? props.iconNull : "No Value"
)}
</IconWrapper>
</Tooltip>
);
};
return <CheckBoxComp />;
Expand All @@ -122,6 +127,10 @@ export const BooleanComp = (function () {
label: trans("table.columnValue"),
tooltip: ColumnValueTooltip,
})}
{children.tooltip.propertyView({
label: trans("table.columnTooltip"),
tooltip: ColumnValueTooltip,
})}
{children.falseValues.propertyView({
label: trans("table.falseValues"),
radioButton: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { CalendarCompIconSmall, PrevIcon, SuperPrevIcon } from "lowcoder-design"
import { useState } from "react";
import styled from "styled-components";
import { DateParser, DATE_FORMAT } from "util/dateTimeUtils";
import Tooltip from "antd/es/tooltip";

dayjs.extend(utc)

Expand Down Expand Up @@ -136,6 +137,7 @@ export function formatDate(date: string, format: string) {

const childrenMap = {
text: StringControl,
tooltip: StringControl,
format: withDefault(StringControl, DATE_FORMAT),
};

Expand Down Expand Up @@ -195,7 +197,12 @@ export const DateComp = (function () {
childrenMap,
(props, dispatch) => {
const value = props.changeValue ?? getBaseValue(props, dispatch);
return formatDate(value, props.format);
const view = formatDate(value, props.format);
return (
<Tooltip title={props.tooltip}>
{view}
</Tooltip>
);
},
(nodeValue) => formatDate(nodeValue.text.value, nodeValue.format.value),
getBaseValue
Expand All @@ -214,6 +221,10 @@ export const DateComp = (function () {
label: trans("table.columnValue"),
tooltip: ColumnValueTooltip,
})}
{children.tooltip.propertyView({
label: trans("table.columnTooltip"),
tooltip: ColumnValueTooltip,
})}
{formatPropertyView({ children, placeholder: DATE_FORMAT })}
</>
))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ import { formatPropertyView } from "comps/utils/propertyUtils";
import { trans } from "i18n";
import { DATE_TIME_FORMAT } from "util/dateTimeUtils";
import { DateEdit, formatDate } from "./columnDateComp";
import Tooltip from "antd/es/tooltip";

const childrenMap = {
text: StringControl,
tooltip: StringControl,
format: withDefault(StringControl, DATE_TIME_FORMAT),
};

Expand All @@ -22,7 +24,12 @@ export const DateTimeComp = (function () {
childrenMap,
(props, dispatch) => {
const value = props.changeValue ?? getBaseValue(props, dispatch);
return formatDate(value, props.format);
const view = formatDate(value, props.format);
return (
<Tooltip title={props.tooltip}>
{view}
</Tooltip>
)
},
(nodeValue) => formatDate(nodeValue.text.value, nodeValue.format.value),
getBaseValue
Expand All @@ -41,6 +48,10 @@ export const DateTimeComp = (function () {
label: trans("table.columnValue"),
tooltip: ColumnValueTooltip,
})}
{children.tooltip.propertyView({
label: trans("table.columnTooltip"),
tooltip: ColumnValueTooltip,
})}
{formatPropertyView({ children, placeholder: DATE_TIME_FORMAT })}
</>
))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ export const ColumnDropdownComp = (function () {
const menu = (
<Menu
items={items}
onClick={({ key }) => items.find((o) => o.key === key)?.onEvent?.("click")}
onClick={({ key }) => {
items.find((o) => o.key === key)?.onEvent?.("click")
}}
/>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ import { StringControl, NumberControl } from "comps/controls/codeControl";
import { trans } from "i18n";
import { withDefault } from "comps/generators";
import { TacoImage } from "lowcoder-design";
import Tooltip from "antd/es/tooltip";

export const ColumnValueTooltip = trans("table.columnValueTooltip");

const childrenMap = {
src: withDefault(StringControl, "{{currentCell}}"),
size: withDefault(NumberControl, "50"),
tooltip: StringControl,
};

const getBaseValue: ColumnTypeViewFn<typeof childrenMap, string, string> = (props) => props.src;
Expand All @@ -22,7 +24,11 @@ export const ImageComp = (function () {
childrenMap,
(props, dispatch) => {
const value = props.changeValue ?? getBaseValue(props, dispatch);
return <TacoImage style={{ pointerEvents: "auto" }} src={value} width={props.size} />;
return (
<Tooltip title={props.tooltip}>
<TacoImage style={{ pointerEvents: "auto" }} src={value} width={props.size} />;
</Tooltip>
);
},
(nodeValue) => nodeValue.src.value,
getBaseValue
Expand All @@ -47,6 +53,10 @@ export const ImageComp = (function () {
label: trans("table.imageSrc"),
tooltip: ColumnValueTooltip,
})}
{children.tooltip.propertyView({
label: trans("table.columnTooltip"),
tooltip: ColumnValueTooltip,
})}
{children.size.propertyView({
label: trans("table.imageSize"),
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ import { disabledPropertyView } from "comps/utils/propertyUtils";
import styled, { css } from "styled-components";
import { styleControl } from "comps/controls/styleControl";
import { TableColumnLinkStyle } from "comps/controls/styleControlConstants";
import Tooltip from "antd/es/tooltip";

export const ColumnValueTooltip = trans("table.columnValueTooltip");

const childrenMap = {
text: StringControl,
tooltip: StringControl,
onClick: ActionSelectorControlInContext,
disabled: BoolCodeControl,
style: styleControl(TableColumnLinkStyle),
Expand All @@ -32,14 +34,16 @@ const StyledLink = styled.a<{ $disabled: boolean }>`
${(props) => props.$disabled && disableCss};
`;

export const ColumnLink = (props: { disabled: boolean; label: string; onClick?: () => void }) => (
export const ColumnLink = (props: { disabled: boolean; label: string; tooltip?: string, onClick?: () => void }) => (
<StyledLink
$disabled={props.disabled}
onClick={() => {
!props.disabled && props.onClick && props.onClick();
}}
>
{props.label}
<Tooltip title={props.tooltip}>
{props.label}
</Tooltip>
</StyledLink>
);

Expand All @@ -50,7 +54,7 @@ export const LinkComp = (function () {
childrenMap,
(props, dispatch) => {
const value = props.changeValue ?? getBaseValue(props, dispatch);
return <ColumnLink disabled={props.disabled} label={value} onClick={props.onClick} />;
return <ColumnLink disabled={props.disabled} label={value} tooltip={props.tooltip} onClick={props.onClick} />;
},
(nodeValue) => nodeValue.text.value,
getBaseValue
Expand All @@ -74,6 +78,10 @@ export const LinkComp = (function () {
label: trans("table.columnValue"),
tooltip: ColumnValueTooltip,
})}
{children.tooltip.propertyView({
label: trans("table.columnTooltip"),
tooltip: ColumnValueTooltip,
})}
{disabledPropertyView(children)}
{children.onClick.propertyView({
label: trans("table.action"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import { MultiCompBuilder } from "comps/generators";
import { disabledPropertyView, hiddenPropertyView } from "comps/utils/propertyUtils";
import { trans } from "i18n";
import styled from "styled-components";
import { ColumnLink } from "comps/comps/tableComp/column/columnTypeComps/columnLinkComp";
import { ColumnLink, ColumnValueTooltip } from "comps/comps/tableComp/column/columnTypeComps/columnLinkComp";
import { LightActiveTextColor, PrimaryColor } from "constants/style";
import Tooltip from "antd/es/tooltip";

const MenuLinkWrapper = styled.div`
> a {
Expand Down Expand Up @@ -67,6 +68,7 @@ export const ColumnLinksComp = (function () {
options: manualOptionsControl(OptionItem, {
initOptions: [{ label: trans("table.option1") }],
}),
tooltip: StringControl,
};
return new ColumnTypeCompBuilder(
childrenMap,
Expand All @@ -89,15 +91,21 @@ export const ColumnLinksComp = (function () {
));

return (
<MenuWrapper>
<Menu mode="horizontal" items={menuItems} />
</MenuWrapper>
<Tooltip title={props.tooltip}>
<MenuWrapper>
<Menu mode="horizontal" items={menuItems} />
</MenuWrapper>
</Tooltip>
)
},
() => ""
)
.setPropertyViewFn((children) => (
<>
{children.tooltip.propertyView({
label: trans("table.columnTooltip"),
tooltip: ColumnValueTooltip,
})}
{children.options.propertyView({
newOptionLabel: trans("table.option"),
title: trans("table.optionList"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { default as Input } from "antd/es/input";
import Tooltip from "antd/es/tooltip";
import {
ColumnTypeCompBuilder,
ColumnTypeViewFn,
Expand All @@ -23,6 +24,7 @@ const Wrapper = styled.div`

const childrenMap = {
text: StringControl,
tooltip: StringControl,
};

const getBaseValue: ColumnTypeViewFn<typeof childrenMap, string, string> = (props) => props.text;
Expand All @@ -33,9 +35,11 @@ export const ColumnMarkdownComp = (function () {
(props, dispatch) => {
const value = props.changeValue ?? getBaseValue(props, dispatch);
return (
<Wrapper>
<TacoMarkDown>{value}</TacoMarkDown>
</Wrapper>
<Tooltip title={props.tooltip}>
<Wrapper>
<TacoMarkDown>{value}</TacoMarkDown>
</Wrapper>
</Tooltip>
);
},
(nodeValue) => nodeValue.text.value,
Expand All @@ -60,6 +64,10 @@ export const ColumnMarkdownComp = (function () {
label: trans("table.columnValue"),
tooltip: ColumnValueTooltip,
})}
{children.tooltip.propertyView({
label: trans("table.columnTooltip"),
tooltip: ColumnValueTooltip,
})}
</>
))
.build();
Expand Down
Loading
Loading