Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
54 changes: 30 additions & 24 deletions esbuild.package.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ const { EXCLUDED_EXTENSIONS, EXCLUDED_FILES, DEFAULT_RELEASE_FOLDER_PATH } = req
const packageData = JSON.parse(fs.readFileSync('./package.json').toString());
const RELEASE_FOLDER_PATH = path.join(DEFAULT_RELEASE_FOLDER_PATH, `${packageData.name}-${packageData.version}`);

const writeArg = process.argv.find(arg => arg.startsWith('--write='));
const write = writeArg ? writeArg.slice('--write='.length) !== 'false' : true;

esbuild
.build({
entryPoints: [
Expand All @@ -25,6 +28,7 @@ esbuild
platform: 'node',
target: 'node16',
outdir: RELEASE_FOLDER_PATH,
write,
minify: true,
logLevel: 'info',
external: [
Expand All @@ -37,29 +41,31 @@ esbuild
'oci-secrets',
'oracledb',
],
plugins: [
clean({
patterns: [DEFAULT_RELEASE_FOLDER_PATH],
}),
copy({
assets: {
from: [path.join('node_modules', 'lodash', '**', '*')],
to: [path.join('node_modules', 'lodash')],
},
}),
copy({
assets: {
from: [path.join('node_modules', 'oracledb', '**', '*')],
to: [path.join('node_modules', 'oracledb')],
},
}),
copyFolderFiles({
fromPath: __dirname,
targetFolderPath: RELEASE_FOLDER_PATH,
excludedExtensions: EXCLUDED_EXTENSIONS,
excludedFiles: EXCLUDED_FILES,
}),
addReleaseFlag(path.resolve(RELEASE_FOLDER_PATH, 'package.json')),
],
plugins: write
? [
clean({
patterns: [DEFAULT_RELEASE_FOLDER_PATH],
}),
copy({
assets: {
from: [path.join('node_modules', 'lodash', '**', '*')],
to: [path.join('node_modules', 'lodash')],
},
}),
copy({
assets: {
from: [path.join('node_modules', 'oracledb', '**', '*')],
to: [path.join('node_modules', 'oracledb')],
},
}),
copyFolderFiles({
fromPath: __dirname,
targetFolderPath: RELEASE_FOLDER_PATH,
excludedExtensions: EXCLUDED_EXTENSIONS,
excludedFiles: EXCLUDED_FILES,
}),
addReleaseFlag(path.resolve(RELEASE_FOLDER_PATH, 'package.json')),
]
: [],
})
.catch(() => process.exit(1));
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@
"perplex": "0.11.0"
},
"simple-git-hooks": {
"pre-commit": "npm run package && npx lint-staged --config lint-staged.config.js",
"pre-push": "npm run lint"
"pre-commit": "npx lint-staged --config lint-staged.config.js",
"pre-push": "npm run lint && npm run bundle:check"
},
"scripts": {
"lint": "oxlint . || true",
"bundle:check": "node esbuild.package.js --write=false",
"package": "node esbuild.package.js",
"lint:check": "oxlint --type-aware --type-check . || true",
"format": "prettier --write ."
Expand Down
37 changes: 37 additions & 0 deletions properties_pane/field_level/fieldLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ making sure that you maintain a proper JSON format.
"propertyKeyword": "length",
"propertyType": "numeric",
"valueType": "number",
"enableForReference": true,
"propertyTooltip": "Setting for Length must be between 1 and 2000",
"minValue": 1,
"maxValue": 2000,
Expand Down Expand Up @@ -589,6 +590,7 @@ making sure that you maintain a proper JSON format.
"propertyKeyword": "length",
"propertyType": "numeric",
"valueType": "number",
"enableForReference": true,
"propertyTooltip": "Setting for Length must be between 1 and 32767",
"minValue": 1,
"maxValue": 32767,
Expand Down Expand Up @@ -628,6 +630,7 @@ making sure that you maintain a proper JSON format.
"propertyName": "Length semantics",
"propertyKeyword": "lengthSemantics",
"propertyType": "select",
"enableForReference": true,
"options": ["", "char", "byte"],
"dependency": {
"type": "and",
Expand Down Expand Up @@ -740,6 +743,7 @@ making sure that you maintain a proper JSON format.
"shouldValidate": true,
"fieldType": "dynamicField",
"changeAction": "changeDefaultValueOfField",
"enableForReference": true,
"shadowState": true,
"valueType": "asFieldType",
"dependency": {
Expand Down Expand Up @@ -784,6 +788,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "On null",
"propertyKeyword": "defaultOnNull",
"enableForReference": true,
"propertyType": "checkbox",
"dependency": {
"type": "and",
Expand Down Expand Up @@ -975,6 +980,7 @@ making sure that you maintain a proper JSON format.
"propertyKeyword": "maskedWithFunction",
"propertyTooltip": "Limit exposure of sensitive data with this function",
"propertyType": "details",
"enableForReference": true,
"template": "textarea",
"markdown": false,
"dependency": {
Expand Down Expand Up @@ -2165,6 +2171,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Remarks",
"propertyKeyword": "comments",
"enableForReference": true,
"shouldValidate": false,
"propertyTooltip": "remarks",
"addTimestampButton": true,
Expand Down Expand Up @@ -2528,6 +2535,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Precision",
"propertyKeyword": "precision",
"enableForReference": true,
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Setting for Precision must be between 1 and 38",
Expand Down Expand Up @@ -2576,6 +2584,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Scale",
"propertyKeyword": "scale",
"enableForReference": true,
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Setting for Scale must be between -84 and 127",
Expand Down Expand Up @@ -2625,6 +2634,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Default",
"propertyKeyword": "default",
"enableForReference": true,
"shouldValidate": true,
"fieldType": "dynamicField",
"changeAction": "changeDefaultValueOfField",
Expand Down Expand Up @@ -2672,6 +2682,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "On null",
"propertyKeyword": "defaultOnNull",
"enableForReference": true,
"propertyType": "checkbox",
"dependency": {
"type": "and",
Expand Down Expand Up @@ -2950,6 +2961,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Masked with function",
"propertyKeyword": "maskedWithFunction",
"enableForReference": true,
"propertyTooltip": "Limit exposure of sensitive data with this function",
"propertyType": "details",
"template": "textarea",
Expand Down Expand Up @@ -4199,6 +4211,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Remarks",
"propertyKeyword": "comments",
"enableForReference": true,
"shouldValidate": false,
"propertyTooltip": "remarks",
"addTimestampButton": true,
Expand Down Expand Up @@ -4564,6 +4577,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Year precision",
"propertyKeyword": "yearPrecision",
"enableForReference": true,
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Setting for precision must be between 0 and 9",
Expand Down Expand Up @@ -4604,6 +4618,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Day precision",
"propertyKeyword": "dayPrecision",
"enableForReference": true,
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Setting for precision must be between 0 and 9",
Expand Down Expand Up @@ -4644,6 +4659,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Fractional seconds precision",
"propertyKeyword": "fractSecPrecision",
"enableForReference": true,
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Setting for precision must be between 0 and 9",
Expand Down Expand Up @@ -4684,6 +4700,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "With time zone",
"propertyKeyword": "withTimeZone",
"enableForReference": true,
"propertyType": "checkbox",
"dependency": {
"type": "and",
Expand Down Expand Up @@ -4718,6 +4735,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Local time zone",
"propertyKeyword": "localTimeZone",
"enableForReference": true,
"propertyType": "checkbox",
"dependency": {
"type": "and",
Expand Down Expand Up @@ -4907,6 +4925,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Masked with function",
"propertyKeyword": "maskedWithFunction",
"enableForReference": true,
"propertyTooltip": "Limit exposure of sensitive data with this function",
"propertyType": "details",
"template": "textarea",
Expand Down Expand Up @@ -5605,6 +5624,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "On null",
"propertyKeyword": "defaultOnNull",
"enableForReference": true,
"propertyType": "checkbox",
"dependency": {
"type": "and",
Expand Down Expand Up @@ -5985,6 +6005,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Remarks",
"propertyKeyword": "comments",
"enableForReference": true,
"shouldValidate": false,
"propertyTooltip": "remarks",
"addTimestampButton": true,
Expand Down Expand Up @@ -6814,6 +6835,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Remarks",
"propertyKeyword": "comments",
"enableForReference": true,
"shouldValidate": false,
"propertyTooltip": "remarks",
"addTimestampButton": true,
Expand Down Expand Up @@ -7577,6 +7599,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Default",
"propertyKeyword": "default",
"enableForReference": true,
"propertyType": "text"
},
{
Expand Down Expand Up @@ -8044,6 +8067,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Remarks",
"propertyKeyword": "comments",
"enableForReference": true,
"shouldValidate": false,
"propertyTooltip": "remarks",
"addTimestampButton": true,
Expand Down Expand Up @@ -8448,6 +8472,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Length",
"propertyKeyword": "length",
"enableForReference": true,
"propertyType": "numeric",
"valueType": "number",
"propertyTooltip": "Setting for Length must be between 1 and 8000",
Expand Down Expand Up @@ -8618,6 +8643,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Masked with function",
"propertyKeyword": "maskedWithFunction",
"enableForReference": true,
"propertyTooltip": "Limit exposure of sensitive data with this function",
"propertyType": "details",
"template": "textarea",
Expand Down Expand Up @@ -9472,6 +9498,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Remarks",
"propertyKeyword": "comments",
"enableForReference": true,
"shouldValidate": false,
"propertyTooltip": "remarks",
"addTimestampButton": true,
Expand Down Expand Up @@ -10738,6 +10765,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Default",
"propertyKeyword": "default",
"enableForReference": true,
"shouldValidate": true,
"fieldType": "dynamicField",
"changeAction": "changeDefaultValueOfField",
Expand Down Expand Up @@ -10785,6 +10813,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "On null",
"propertyKeyword": "defaultOnNull",
"enableForReference": true,
"propertyType": "checkbox",
"dependency": {
"type": "and",
Expand Down Expand Up @@ -11143,6 +11172,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Remarks",
"propertyKeyword": "comments",
"enableForReference": true,
"shouldValidate": false,
"propertyTooltip": "remarks",
"addTimestampButton": true,
Expand All @@ -11164,6 +11194,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Dimension",
"propertyKeyword": "dimension",
"enableForReference": true,
"propertyType": "numeric",
"valueType": "integer",
"allowNegative": false,
Expand Down Expand Up @@ -11329,6 +11360,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Remarks",
"propertyKeyword": "comments",
"enableForReference": true,
"shouldValidate": false,
"propertyTooltip": "remarks",
"addTimestampButton": true,
Expand Down Expand Up @@ -12125,6 +12157,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "On null",
"propertyKeyword": "defaultOnNull",
"enableForReference": true,
"propertyType": "checkbox",
"dependency": {
"type": "and",
Expand Down Expand Up @@ -12203,6 +12236,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Remarks",
"propertyKeyword": "comments",
"enableForReference": true,
"shouldValidate": false,
"propertyTooltip": "remarks",
"addTimestampButton": true,
Expand Down Expand Up @@ -12745,6 +12779,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Remarks",
"propertyKeyword": "comments",
"enableForReference": true,
"shouldValidate": false,
"propertyTooltip": "remarks",
"addTimestampButton": true,
Expand Down Expand Up @@ -13531,6 +13566,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Remarks",
"propertyKeyword": "comments",
"enableForReference": true,
"shouldValidate": false,
"propertyTooltip": "remarks",
"addTimestampButton": true,
Expand Down Expand Up @@ -14085,6 +14121,7 @@ making sure that you maintain a proper JSON format.
{
"propertyName": "Remarks",
"propertyKeyword": "comments",
"enableForReference": true,
"shouldValidate": false,
"propertyTooltip": "remarks",
"addTimestampButton": true,
Expand Down
Loading