Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
5348c66
fix: signature widget setting icon for placed with old data
raktima-opensignlabs Mar 8, 2024
885b528
fix: condition of render setting icon for widgets
raktima-opensignlabs Mar 8, 2024
0e5cffa
fix: widgets issue after placing on multiple pages
raktima-opensignlabs Mar 11, 2024
51505af
fix: E-sign is not available in completed document
prafull-opensignlabs Mar 11, 2024
b675254
Merge pull request #484 from OpenSignLabs/fix_e_sign
prafull-opensignlabs Mar 11, 2024
b94e0fa
refactor: change order of minimum & maximum input in checkbox setting
raktima-opensignlabs Mar 12, 2024
375aa0b
fix: invalid date issue for indian format
raktima-opensignlabs Mar 12, 2024
08e8055
fix: disable date change in placeholder and template flow
raktima-opensignlabs Mar 13, 2024
61b123c
refator: update dashboard tour messages
prafull-opensignlabs Mar 13, 2024
c04fd80
feat: change label widget name to text and text widget name to text i…
raktima-opensignlabs Mar 13, 2024
73b2ba6
fix: default date issue and remove commented code, unnecessary using …
raktima-opensignlabs Mar 13, 2024
1b215f5
feat: add help for select folder input
prafull-opensignlabs Mar 13, 2024
266c246
Merge pull request #485 from OpenSignLabs/update_tour
andrew-opensignlabs Mar 13, 2024
6004522
feat: change radio widgets name radio to radio button
raktima-opensignlabs Mar 13, 2024
53147ca
fix: checkbox checked issue in signyour-self flow
raktima-opensignlabs Mar 13, 2024
82eeffa
fix: reset button not working in forms
prafull-opensignlabs Mar 13, 2024
27730c8
fix: signers not get reset in request signature form on reset button
prafull-opensignlabs Mar 13, 2024
3bc57a9
Merge pull request #486 from OpenSignLabs/fix_formreset
prafull-opensignlabs Mar 13, 2024
86b0e90
fix: date z-index and default data of email,name,company name, job ti…
raktima-opensignlabs Mar 13, 2024
8b15bce
Merge pull request #472 from OpenSignLabs/signature_setting
prafull-opensignlabs Mar 14, 2024
b99d8e6
feat: add show/hide label in checkbox and radio widget
prafull-opensignlabs Mar 14, 2024
b47d1cf
Merge pull request #487 from OpenSignLabs/feat_label
andrew-opensignlabs Mar 14, 2024
7584667
fix: when click on label in radio or checkbox widget it's border not …
prafull-opensignlabs Mar 14, 2024
17660da
fix: border of radio button & checkbox is not proper
prafull-opensignlabs Mar 14, 2024
b8f8869
Merge pull request #488 from OpenSignLabs/feat_label
andrew-opensignlabs Mar 14, 2024
7882c61
fix: checkbox not embeding in pdf
prafull-opensignlabs Mar 14, 2024
39806e3
Merge pull request #489 from OpenSignLabs/feat_label
prafull-opensignlabs Mar 14, 2024
db9ae71
fix: date is not changable in signyourself flow of mobile
prafull-opensignlabs Mar 14, 2024
08476ba
Merge pull request #490 from OpenSignLabs/feat_label
prafull-opensignlabs Mar 14, 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
14 changes: 14 additions & 0 deletions apps/OpenSign/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion apps/OpenSign/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"react-scrollbars-custom": "^4.1.1",
"react-select": "^5.8.0",
"react-signature-canvas": "^1.0.6",
"react-tooltip": "^5.26.3",
"reactour": "^1.19.2",
"redux": "^4.2.1",
"redux-thunk": "^2.4.2",
Expand All @@ -48,7 +49,7 @@
},
"scripts": {
"start": "serve -s build",
"start-dev" :"react-scripts start",
"start-dev": "react-scripts start",
"version": "curl -s https://api.github.com/repos/opensignlabs/opensign/releases/latest | grep '\"tag_name\":' | awk -F '\"' '{print $4}' > ./public/version.txt",
"version-win": "powershell -Command \"Invoke-RestMethod -Uri 'https://api.github.com/repos/opensignlabs/opensign/releases/latest' | Select-Object -ExpandProperty tag_name | Out-File -FilePath ./public/version.txt\"",
"build": "npm run version && react-scripts build",
Expand Down
123 changes: 73 additions & 50 deletions apps/OpenSign/src/components/pdf/DropdownWidgetOption.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useEffect, useState } from "react";
import { themeColor } from "../../constant/const";
import ModalUi from "../../primitives/ModalUi";
import { radioButtonWidget } from "../../constant/Utils";
function DropdownWidgetOption(props) {
const [dropdownOptionList, setDropdownOptionList] = useState([
"option-1",
Expand All @@ -10,6 +11,7 @@ function DropdownWidgetOption(props) {
const [maxCount, setMaxCount] = useState(0);
const [dropdownName, setDropdownName] = useState(props.type);
const [isReadOnly, setIsReadOnly] = useState(false);
const [isHideLabel, setIsHideLabel] = useState(false);
const [status, setStatus] = useState("required");
const [defaultValue, setDefaultValue] = useState("");
const statusArr = ["required", "optional"];
Expand All @@ -19,6 +21,7 @@ function DropdownWidgetOption(props) {
setDropdownOptionList(["option-1", "option-2"]);
setDropdownName(props.type);
setIsReadOnly(false);
setIsHideLabel(false);
setMinCount(0);
setMaxCount(0);
setDefaultCheckbox([]);
Expand All @@ -39,6 +42,7 @@ function DropdownWidgetOption(props) {
props.currWidgetsDetails?.options?.validation?.maxRequiredCount
);
setIsReadOnly(props.currWidgetsDetails?.options?.isReadOnly);
setIsHideLabel(props.currWidgetsDetails?.options?.isHideLabel);
setStatus(props.currWidgetsDetails?.options?.status || "required");
setDefaultValue(props.currWidgetsDetails?.options?.defaultValue || "");
setDefaultCheckbox(props.currWidgetsDetails?.options?.defaultValue || []);
Expand Down Expand Up @@ -106,13 +110,15 @@ function DropdownWidgetOption(props) {
null,
null,
status,
defaultData
defaultData,
isHideLabel
);
// props.setShowDropdown(false);
setDropdownOptionList(["option-1", "option-2"]);
setDropdownName(props.type);
// props.setCurrWidgetsDetails({});
setIsReadOnly(false);
setIsHideLabel(false);
setMinCount(0);
setMaxCount(0);
setDefaultCheckbox([]);
Expand Down Expand Up @@ -143,7 +149,7 @@ function DropdownWidgetOption(props) {
// styleClass={"dropdownModal"}
isOpen={props.showDropdown}
title={props.title}
closeOff={true}
showClose={false}
>
<div style={{ height: "100%", padding: 20 }}>
<form
Expand All @@ -153,20 +159,6 @@ function DropdownWidgetOption(props) {
}}
>
<div className="dropdownContainer">
{["checkbox", "radio"].includes(props.type) &&
!props.isSignYourself && (
<div>
<input
type="checkbox"
checked={isReadOnly}
onChange={(e) => {
setIsReadOnly(e.target.checked);
}}
/>

<label style={{ marginLeft: "10px" }}>Is read only</label>
</div>
)}
<label style={{ fontSize: "13px", fontWeight: "600" }}>
Name<span style={{ color: "red", fontSize: 13 }}> *</span>
</label>
Expand All @@ -178,36 +170,6 @@ function DropdownWidgetOption(props) {
className="drodown-input"
/>

{props.type === "checkbox" && !props.isSignYourself && (
<>
<label style={{ fontSize: "13px", fontWeight: "600" }}>
Minimun check
</label>
<input
required
defaultValue={0}
value={minCount}
onChange={(e) => {
const count = handleSetMinMax(e);
setMinCount(count);
}}
className="drodown-input"
/>
<label style={{ fontSize: "13px", fontWeight: "600" }}>
Maximum check
</label>
<input
required
defaultValue={0}
value={maxCount}
onChange={(e) => {
const count = handleSetMinMax(e);
setMaxCount(count);
}}
className="drodown-input"
/>
</>
)}
<label
style={{ fontSize: "13px", fontWeight: "600", marginTop: "5px" }}
>
Expand Down Expand Up @@ -274,7 +236,6 @@ function DropdownWidgetOption(props) {
></i>
</div>
))}

<i
onClick={handleAddInput}
style={{
Expand All @@ -285,8 +246,38 @@ function DropdownWidgetOption(props) {
}}
className="fa-solid fa-square-plus"
></i>
{props.type === "checkbox" && !props.isSignYourself && (
<>
<label style={{ fontSize: "13px", fontWeight: "600" }}>
Minimun check
</label>
<input
required
defaultValue={0}
value={minCount}
onChange={(e) => {
const count = handleSetMinMax(e);
setMinCount(count);
}}
className="drodown-input"
/>
<label style={{ fontSize: "13px", fontWeight: "600" }}>
Maximum check
</label>
<input
required
defaultValue={0}
value={maxCount}
onChange={(e) => {
const count = handleSetMinMax(e);
setMaxCount(count);
}}
className="drodown-input"
/>
</>
)}
</div>
{["dropdown", "radio"].includes(props.type) && (
{["dropdown", radioButtonWidget].includes(props.type) && (
<>
<label
style={{
Expand Down Expand Up @@ -321,7 +312,7 @@ function DropdownWidgetOption(props) {
</select>
</>
)}
{props.type !== "checkbox" && props.type !== "radio" && (
{props.type !== "checkbox" && props.type !== radioButtonWidget && (
<>
<div
style={{
Expand Down Expand Up @@ -358,8 +349,40 @@ function DropdownWidgetOption(props) {
</div>
</>
)}
</div>
{["checkbox", radioButtonWidget].includes(props.type) && (
<div className="flex flex-row gap-5 mt-2 items-center text-center">
{!props.isSignYourself && (
<div>
<input
id="isreadonly"
type="checkbox"
checked={isReadOnly}
onChange={(e) => {
setIsReadOnly(e.target.checked);
}}
/>
<label className="ml-1" htmlFor="isreadonly">
Is read only
</label>
</div>
)}
<div>
<input
id="ishidelabel"
type="checkbox"
checked={isHideLabel}
onChange={(e) => {
setIsHideLabel(e.target.checked);
}}
/>

<label className="ml-1" htmlFor="ishidelabel">
Hide label
</label>
</div>
</div>
)}
</div>
<div
style={{
height: "1px",
Expand Down
Loading