Skip to content

Commit 401896e

Browse files
committed
Merge remote-tracking branch 'origin/develop' into fb_sourceDIB
2 parents 3080753 + d3aad55 commit 401896e

6 files changed

Lines changed: 25 additions & 23 deletions

File tree

api/src/org/labkey/api/exp/PropertyColumn.java

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ public void setParentIsObjectId(boolean id)
211211
@Override
212212
public SQLFragment getValueSql(String tableAlias)
213213
{
214-
String cast = getPropertySqlCastType();
215214
SQLFragment sql = new SQLFragment("(SELECT ");
216215
if (isMvIndicatorColumn())
217216
{
@@ -232,6 +231,8 @@ else if (_pd.getPropertyType() == PropertyType.BOOLEAN)
232231
else
233232
sql.append(getTableAlias(tableAlias)).append(".ObjectId");
234233
sql.append(")");
234+
235+
String cast = getPropertySqlCastType();
235236
if (null != cast)
236237
{
237238
sql.insert(0, "CAST(");
@@ -262,23 +263,21 @@ static private String getPropertyCol(@NotNull PropertyDescriptor pd)
262263
};
263264
}
264265

265-
private String getPropertySqlCastType()
266+
private @Nullable String getPropertySqlCastType()
266267
{
267268
if (isMvIndicatorColumn())
268269
return null;
269-
PropertyType pt = _pd.getPropertyType();
270-
if (PropertyType.DOUBLE == pt || PropertyType.DATE_TIME == pt)
271-
return null;
272-
else if (PropertyType.TIME == pt)
273-
return "TIME";
274-
else if (PropertyType.DATE == pt)
275-
return "DATE";
276-
else if (PropertyType.INTEGER == pt)
277-
return "INT";
278-
else if (PropertyType.BOOLEAN == pt)
279-
return getParentTable().getSqlDialect().getBooleanDataType();
280-
else
281-
return getParentTable().getSqlDialect().getSqlTypeName(JdbcType.VARCHAR) + "(" + PropertyStorageSpec.DEFAULT_SIZE + ")";
270+
271+
return switch (_pd.getPropertyType())
272+
{
273+
case DOUBLE, DATE_TIME, DECIMAL, FLOAT -> null;
274+
case TIME -> "TIME";
275+
case DATE -> "DATE";
276+
case INTEGER -> "INT";
277+
case BOOLEAN -> getParentTable().getSqlDialect().getBooleanDataType();
278+
case null, default -> getParentTable().getSqlDialect().getSqlTypeName(JdbcType.VARCHAR) +
279+
"(" + PropertyStorageSpec.DEFAULT_SIZE + ")";
280+
};
282281
}
283282

284283
public PropertyDescriptor getPropertyDescriptor()

api/src/org/labkey/api/query/AbstractNestableDataRegion.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
import static org.labkey.api.util.DOM.A;
4040
import static org.labkey.api.util.DOM.Attribute.align;
41+
import static org.labkey.api.util.DOM.Attribute.alt;
4142
import static org.labkey.api.util.DOM.Attribute.colspan;
4243
import static org.labkey.api.util.DOM.Attribute.id;
4344
import static org.labkey.api.util.DOM.Attribute.src;
@@ -94,7 +95,8 @@ protected void renderExtraRecordSelectorContent(RenderContext ctx, HtmlWriter ou
9495
at(
9596
id, getName() + "-Handle" + value,
9697
valign, "middle",
97-
src, ctx.getViewContext().getContextPath() + "/_images/" + (_expanded ? "minus" : "plus") + ".gif"
98+
src, ctx.getViewContext().getContextPath() + "/_images/" + (_expanded ? "minus" : "plus") + ".gif",
99+
alt, _expanded ? "Collapse row" : "Expand row"
98100
)
99101
)
100102
).appendTo(out);

api/src/org/labkey/api/util/LinkBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ public Appendable appendTo(Appendable out)
155155
.at(!lb.enabled, disabled, true)
156156
.data(null != lb.tooltip, "tt", "tooltip")
157157
.data(null != lb.tooltip, "placement","top")
158-
.data(null != lb.tooltip, "original-title", lb.tooltip),
158+
.data(null != lb.tooltip, "original-title", lb.tooltip)
159+
.at(lb.iconCls != null && lb.tooltip != null, DOM.Attribute.aria_label, lb.tooltip),
159160
(lb.iconCls != null ? null : lb.html)
160161
).appendTo(out);
161162
}

api/webapp/clientapi/ext3/PersistentToolTip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ LABKEY.ext.CalloutTip = Ext.extend(LABKEY.ext.PersistentToolTip, {
167167
if (!this.targetAutoEl) {
168168
this.targetAutoEl =
169169
'<span class="labkey-callout-tip' + (this.leftPlacement ? ' labkey-callout-tip-left' : '' ) + '">' +
170-
'<img src="' + LABKEY.contextPath + '/_.gif">' +
170+
'<img src="' + LABKEY.contextPath + '/_.gif" alt="Show details">' +
171171
'</span>';
172172
}
173173

core/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
},
5555
"dependencies": {
5656
"@labkey/components": "7.31.1",
57-
"@labkey/themes": "1.8.0"
57+
"@labkey/themes": "1.9.0"
5858
},
5959
"devDependencies": {
6060
"@labkey/build": "9.1.1",

0 commit comments

Comments
 (0)