{ _.unescape(this.props.item.getMetadata('data')._label)}
-
{itemChildren}
-
+
{itemChildren}
+ {tags.map((tag)=>(
+
+ {tag.text}
+
+ ))}
);
}
diff --git a/web/pgadmin/static/js/components/ReactCodeMirror/components/Editor.jsx b/web/pgadmin/static/js/components/ReactCodeMirror/components/Editor.jsx
index 3d3a38a4b0a..ea497eea9d2 100644
--- a/web/pgadmin/static/js/components/ReactCodeMirror/components/Editor.jsx
+++ b/web/pgadmin/static/js/components/ReactCodeMirror/components/Editor.jsx
@@ -126,13 +126,13 @@ const defaultExtensions = [
indentOnInput(),
syntaxHighlighting,
keymap.of([{
+ key: 'Tab',
+ run: acceptCompletion,
+ },{
key: 'Tab',
preventDefault: true,
run: insertTabWithUnit,
shift: indentLess,
- },{
- key: 'Tab',
- run: acceptCompletion,
},{
key: 'Backspace',
preventDefault: true,
diff --git a/web/pgadmin/static/js/helpers/withColorPicker.js b/web/pgadmin/static/js/helpers/withColorPicker.js
index 2ac97de18e8..fd549b4f617 100644
--- a/web/pgadmin/static/js/helpers/withColorPicker.js
+++ b/web/pgadmin/static/js/helpers/withColorPicker.js
@@ -15,7 +15,7 @@ import PropTypes from 'prop-types';
import { fullHexColor } from '../utils';
export function withColorPicker(Component) {
-
+
const HOCComponent = ({value, currObj, onChange, onSave, options, ...props})=>{
const pickrOptions = {
showPalette: true,
@@ -74,10 +74,11 @@ export function withColorPicker(Component) {
defaultRepresentation: pickrOptions.colorFormat,
disabled: pickrOptions.disabled,
save: pickrOptions.allowSave,
+ input: pickrOptions.input,
},
},
}).on('init', instance => {
- setColor(value);
+ setColor(value, true);
pickrOptions.disabled && instance.disable();
const { lastColor } = instance.getRoot().preview;
diff --git a/web/pgadmin/static/js/utils.js b/web/pgadmin/static/js/utils.js
index 8a38c01ba79..3da2c40e949 100644
--- a/web/pgadmin/static/js/utils.js
+++ b/web/pgadmin/static/js/utils.js
@@ -684,6 +684,10 @@ export function getChartColor(index, theme='light', colorPalette=CHART_THEME_COL
return palette[index % palette.length];
}
+export function getRandomColor() {
+ return '#' + ((1 << 24) * Math.random() | 0).toString(16).padStart(6, '0');
+}
+
// Using this function instead of 'btoa' directly.
// https://developer.mozilla.org/en-US/docs/Glossary/Base64#the_unicode_problem
function stringToBase64(str) {
diff --git a/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/index.jsx b/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/index.jsx
index c7f2955f121..4f545d9aaac 100644
--- a/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/index.jsx
+++ b/web/pgadmin/tools/sqleditor/static/js/components/QueryToolDataGrid/index.jsx
@@ -157,7 +157,7 @@ function SelectAllHeaderRenderer({isCellSelected}) {
}, [isRowSelected]);
return