From 6465aa7c2cdaa64eb9fe64498f8da04a096b221b Mon Sep 17 00:00:00 2001 From: prafull-opensignlabs Date: Fri, 28 Nov 2025 13:19:46 +0000 Subject: [PATCH] Delete apps/OpenSignServer/package-lock.json --- .../examples/tailwind-usage-examples.js | 4 +- apps/OpenSign/package-lock.json | 17180 ------------- apps/OpenSign/package.json | 21 +- .../public/locales/de/translation.json | 30 +- .../public/locales/en/translation.json | 30 +- .../public/locales/es/translation.json | 30 +- .../public/locales/fr/translation.json | 30 +- .../public/locales/hi/translation.json | 30 +- .../public/locales/it/translation.json | 30 +- apps/OpenSign/public/version.txt | Bin 20 -> 20 bytes apps/OpenSign/src/components/AddUser.jsx | 1 - apps/OpenSign/src/components/BulkSendUi.jsx | 7 +- .../src/components/ColumnSelector.jsx | 3 +- .../src/components/pdf/CellsSettingModal.jsx | 18 +- .../src/components/pdf/Placeholder.jsx | 26 +- .../src/components/pdf/PlaceholderType.jsx | 82 +- .../src/components/pdf/TextFontSetting.jsx | 1 - .../src/components/pdf/WidgetNameModal.jsx | 73 +- .../src/components/pdf/WidgetsValueModal.jsx | 3 +- apps/OpenSign/src/constant/Utils.js | 87 +- apps/OpenSign/src/pages/Form.jsx | 174 +- apps/OpenSign/src/pages/GuestLogin.jsx | 2 +- apps/OpenSign/src/pages/PdfRequestFiles.jsx | 31 +- apps/OpenSign/src/pages/PlaceHolderSign.jsx | 9 +- apps/OpenSign/src/pages/SignyourselfPdf.jsx | 1 - .../src/pages/TemplatePlaceholder.jsx | 6 +- apps/OpenSign/src/pages/UserList.jsx | 8 +- apps/OpenSign/src/pages/UserProfile.jsx | 18 +- apps/OpenSign/src/primitives/AddContact.jsx | 4 +- .../src/reports/template/TemplatesReport.jsx | 20 +- apps/OpenSign/src/utils/widgetUtils.js | 36 + apps/OpenSignServer/cloud/main.js | 2 + .../cloud/parsefunction/saveAsTemplate.js | 10 +- .../cloud/parsefunction/triggerEvent.js | 64 + apps/OpenSignServer/package-lock.json | 20438 ---------------- apps/OpenSignServer/package.json | 20 +- 36 files changed, 639 insertions(+), 37890 deletions(-) delete mode 100644 apps/OpenSign/package-lock.json create mode 100644 apps/OpenSignServer/cloud/parsefunction/triggerEvent.js delete mode 100644 apps/OpenSignServer/package-lock.json diff --git a/apps/OpenSign/examples/tailwind-usage-examples.js b/apps/OpenSign/examples/tailwind-usage-examples.js index 97ac61ae64..b92bb5ed04 100644 --- a/apps/OpenSign/examples/tailwind-usage-examples.js +++ b/apps/OpenSign/examples/tailwind-usage-examples.js @@ -21,9 +21,7 @@ const DisabledButtonExamples = () => { {/* Option C: Conditional styling */} diff --git a/apps/OpenSign/src/components/pdf/PlaceholderType.jsx b/apps/OpenSign/src/components/pdf/PlaceholderType.jsx index 146238e0ac..e764031c92 100644 --- a/apps/OpenSign/src/components/pdf/PlaceholderType.jsx +++ b/apps/OpenSign/src/components/pdf/PlaceholderType.jsx @@ -42,10 +42,10 @@ function PlaceholderType(props) { // prefer the latest response value over any default value const widgetData = props.pos?.options?.response ?? props.pos?.options?.defaultValue ?? ""; - const widgetTypeTranslation = t(`widgets-name.${props?.pos?.type}`); + // const widgetTypeTranslation = t(`widgets-name.${props?.pos?.type}`); const [widgetValue, setwidgetValue] = useState(); const [selectedCheckbox, setSelectedCheckbox] = useState([]); - const [hint, setHint] = useState(""); + // const [hint, setHint] = useState(""); const [imgUrl, setImgUrl] = useState(""); const fontSize = props.calculateFont(props.pos.options?.fontSize); const fontColor = props.pos.options?.fontColor || "black"; @@ -72,11 +72,11 @@ function PlaceholderType(props) { // keep displayed value in sync with the stored response setwidgetValue(widgetData); } - if (props.pos?.options?.hint) { - setHint(props.pos?.options.hint); - } else if (props.pos?.options?.validation?.type) { - checkRegularExpress(props.pos?.options?.validation?.type, setHint); - } + // if (props.pos?.options?.hint) { + // setHint(props.pos?.options.hint); + // } else if (props.pos?.options?.validation?.type) { + // checkRegularExpress(props.pos?.options?.validation?.type, setHint); + // } } // eslint-disable-next-line react-hooks/exhaustive-deps }, [props.pos, widgetData, type]); @@ -130,6 +130,14 @@ function PlaceholderType(props) { loadImage(); }, [props.pos.SignUrl]); + const formatWidgetName = () => { + const widgetName = props?.pos?.options?.name; + const name = widgetName ? widgetName?.split(`-`) : ["-", "-", "-"]; + const lastWord = name.length > 1 ? `-${name[name.length - 1]}` : ""; + const title = + props?.pos?.type === name[0] ? `${name[0]}${lastWord}` : widgetName; + return props?.pos?.options?.hint || title; + }; switch (type) { case "signature": return props.pos.SignUrl ? ( @@ -150,7 +158,7 @@ function PlaceholderType(props) { }} className="font-medium" > - {hint || widgetTypeTranslation} + {formatWidgetName()} )} @@ -174,7 +182,7 @@ function PlaceholderType(props) { }} className="font-medium" > - {hint || widgetTypeTranslation} + {formatWidgetName()} )} @@ -221,9 +229,11 @@ function PlaceholderType(props) { case textInputWidget: return props.isSignYourself || iswidgetEnable ? (