@fctc/sme-widget-ui 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -93
- package/dist/index.js +25 -31
- package/dist/index.mjs +25 -31
- package/dist/widgets.js +25 -31
- package/dist/widgets.mjs +25 -31
- package/package.json +71 -71
package/README.md
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
# edu-widget-ui
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Getting started
|
|
6
|
-
|
|
7
|
-
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
|
8
|
-
|
|
9
|
-
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
|
10
|
-
|
|
11
|
-
## Add your files
|
|
12
|
-
|
|
13
|
-
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
|
14
|
-
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
cd existing_repo
|
|
18
|
-
git remote add origin https://gitlab.atomsolution.vn/education-erp/edu-widget-ui.git
|
|
19
|
-
git branch -M main
|
|
20
|
-
git push -uf origin main
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Integrate with your tools
|
|
24
|
-
|
|
25
|
-
- [ ] [Set up project integrations](https://gitlab.atomsolution.vn/education-erp/edu-widget-ui/-/settings/integrations)
|
|
26
|
-
|
|
27
|
-
## Collaborate with your team
|
|
28
|
-
|
|
29
|
-
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
|
30
|
-
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
|
31
|
-
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
|
32
|
-
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
|
33
|
-
- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
|
|
34
|
-
|
|
35
|
-
## Test and Deploy
|
|
36
|
-
|
|
37
|
-
Use the built-in continuous integration in GitLab.
|
|
38
|
-
|
|
39
|
-
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
|
|
40
|
-
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
|
41
|
-
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
|
42
|
-
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
|
43
|
-
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
|
44
|
-
|
|
45
|
-
***
|
|
46
|
-
|
|
47
|
-
# Editing this README
|
|
48
|
-
|
|
49
|
-
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
|
50
|
-
|
|
51
|
-
## Suggestions for a good README
|
|
52
|
-
|
|
53
|
-
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
|
54
|
-
|
|
55
|
-
## Name
|
|
56
|
-
Choose a self-explaining name for your project.
|
|
57
|
-
|
|
58
|
-
## Description
|
|
59
|
-
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
|
60
|
-
|
|
61
|
-
## Badges
|
|
62
|
-
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
|
63
|
-
|
|
64
|
-
## Visuals
|
|
65
|
-
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
|
66
|
-
|
|
67
|
-
## Installation
|
|
68
|
-
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
|
69
|
-
|
|
70
|
-
## Usage
|
|
71
|
-
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
|
72
|
-
|
|
73
|
-
## Support
|
|
74
|
-
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
|
75
|
-
|
|
76
|
-
## Roadmap
|
|
77
|
-
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
|
78
|
-
|
|
79
|
-
## Contributing
|
|
80
|
-
State if you are open to contributions and what your requirements are for accepting them.
|
|
81
|
-
|
|
82
|
-
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
|
83
|
-
|
|
84
|
-
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
|
85
|
-
|
|
86
|
-
## Authors and acknowledgment
|
|
87
|
-
Show your appreciation to those who have contributed to the project.
|
|
88
|
-
|
|
89
|
-
## License
|
|
90
|
-
For open source projects, say how it is licensed.
|
|
91
|
-
|
|
92
|
-
## Project status
|
|
93
|
-
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
|
1
|
+
# edu-widget-ui
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Getting started
|
|
6
|
+
|
|
7
|
+
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
|
8
|
+
|
|
9
|
+
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
|
10
|
+
|
|
11
|
+
## Add your files
|
|
12
|
+
|
|
13
|
+
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
|
|
14
|
+
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
cd existing_repo
|
|
18
|
+
git remote add origin https://gitlab.atomsolution.vn/education-erp/edu-widget-ui.git
|
|
19
|
+
git branch -M main
|
|
20
|
+
git push -uf origin main
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Integrate with your tools
|
|
24
|
+
|
|
25
|
+
- [ ] [Set up project integrations](https://gitlab.atomsolution.vn/education-erp/edu-widget-ui/-/settings/integrations)
|
|
26
|
+
|
|
27
|
+
## Collaborate with your team
|
|
28
|
+
|
|
29
|
+
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
|
|
30
|
+
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
|
|
31
|
+
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
|
|
32
|
+
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
|
|
33
|
+
- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
|
|
34
|
+
|
|
35
|
+
## Test and Deploy
|
|
36
|
+
|
|
37
|
+
Use the built-in continuous integration in GitLab.
|
|
38
|
+
|
|
39
|
+
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
|
|
40
|
+
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
|
|
41
|
+
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
|
|
42
|
+
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
|
|
43
|
+
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
# Editing this README
|
|
48
|
+
|
|
49
|
+
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
|
50
|
+
|
|
51
|
+
## Suggestions for a good README
|
|
52
|
+
|
|
53
|
+
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
|
54
|
+
|
|
55
|
+
## Name
|
|
56
|
+
Choose a self-explaining name for your project.
|
|
57
|
+
|
|
58
|
+
## Description
|
|
59
|
+
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
|
60
|
+
|
|
61
|
+
## Badges
|
|
62
|
+
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
|
63
|
+
|
|
64
|
+
## Visuals
|
|
65
|
+
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
|
66
|
+
|
|
67
|
+
## Installation
|
|
68
|
+
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
|
69
|
+
|
|
70
|
+
## Usage
|
|
71
|
+
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
|
72
|
+
|
|
73
|
+
## Support
|
|
74
|
+
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
|
75
|
+
|
|
76
|
+
## Roadmap
|
|
77
|
+
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
|
78
|
+
|
|
79
|
+
## Contributing
|
|
80
|
+
State if you are open to contributions and what your requirements are for accepting them.
|
|
81
|
+
|
|
82
|
+
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
|
83
|
+
|
|
84
|
+
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
|
85
|
+
|
|
86
|
+
## Authors and acknowledgment
|
|
87
|
+
Show your appreciation to those who have contributed to the project.
|
|
88
|
+
|
|
89
|
+
## License
|
|
90
|
+
For open source projects, say how it is licensed.
|
|
91
|
+
|
|
92
|
+
## Project status
|
|
93
|
+
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
package/dist/index.js
CHANGED
|
@@ -15139,9 +15139,10 @@ var Search = ({
|
|
|
15139
15139
|
setPage(0);
|
|
15140
15140
|
setSelectedRowKeys([]);
|
|
15141
15141
|
const containSearchFilter = selectedTags?.length > 0 && selectedTags?.find(
|
|
15142
|
-
(item) => item?.type === SearchType.FILTER || item?.type === SearchType.SEARCH
|
|
15142
|
+
(item) => item?.type === SearchType.FILTER || item?.type === SearchType.SEARCH
|
|
15143
15143
|
);
|
|
15144
|
-
|
|
15144
|
+
const containGroup = selectedTags?.length > 0 && selectedTags?.some((item) => item?.type === SearchType.GROUP);
|
|
15145
|
+
if (containSearchFilter && !containGroup || selectedTags?.length === 0) {
|
|
15145
15146
|
setDomainList(domainSearch);
|
|
15146
15147
|
}
|
|
15147
15148
|
}
|
|
@@ -15152,8 +15153,9 @@ var Search = ({
|
|
|
15152
15153
|
setDidInit(false);
|
|
15153
15154
|
setIsReadyFormatDomain(false);
|
|
15154
15155
|
};
|
|
15155
|
-
}, [
|
|
15156
|
+
}, [aid]);
|
|
15156
15157
|
(0, import_react18.useEffect)(() => {
|
|
15158
|
+
if (!filterBy) return;
|
|
15157
15159
|
if (didInit || selectedTags?.length > 0) return;
|
|
15158
15160
|
const searchDefaults = Object.entries(context || {}).filter(
|
|
15159
15161
|
([key]) => key.startsWith("search_default_")
|
|
@@ -15181,7 +15183,7 @@ var Search = ({
|
|
|
15181
15183
|
return item;
|
|
15182
15184
|
});
|
|
15183
15185
|
if (updatedFilter) setFilterBy(updatedFilter);
|
|
15184
|
-
if (hasGroupBy) {
|
|
15186
|
+
if (hasGroupBy && fieldsList?.length > 0) {
|
|
15185
15187
|
viewData?.views?.search?.filters_by?.forEach((item, idx) => {
|
|
15186
15188
|
const groupCtx = evalJSONContext(item?.context);
|
|
15187
15189
|
handleAddTagSearch?.({
|
|
@@ -15190,13 +15192,14 @@ var Search = ({
|
|
|
15190
15192
|
type: SearchType.GROUP,
|
|
15191
15193
|
context: groupCtx,
|
|
15192
15194
|
groupIndex: idx,
|
|
15193
|
-
isDefault: true
|
|
15195
|
+
isDefault: true,
|
|
15196
|
+
fieldsGroup: fieldsList
|
|
15194
15197
|
});
|
|
15195
15198
|
});
|
|
15196
15199
|
setDidInit(true);
|
|
15197
15200
|
}
|
|
15198
15201
|
setIsReadyFormatDomain(true);
|
|
15199
|
-
}, [aid]);
|
|
15202
|
+
}, [aid, filterBy, fieldsList]);
|
|
15200
15203
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
15201
15204
|
"div",
|
|
15202
15205
|
{
|
|
@@ -18167,8 +18170,8 @@ var CharField = (props) => {
|
|
|
18167
18170
|
disabled: readonly,
|
|
18168
18171
|
placeholder,
|
|
18169
18172
|
required: !invisible && required,
|
|
18170
|
-
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-
|
|
18171
|
-
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer
|
|
18173
|
+
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-white border border-[rgba(66,66,66,0.12)] rounded-lg p-3 text-sm font-normal gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content
|
|
18174
|
+
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer text-[#AEAEAE]"}
|
|
18172
18175
|
`
|
|
18173
18176
|
}
|
|
18174
18177
|
),
|
|
@@ -32612,19 +32615,7 @@ var FeeField = (props) => {
|
|
|
32612
32615
|
var import_react54 = require("react");
|
|
32613
32616
|
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
32614
32617
|
var FileUploadField = (props) => {
|
|
32615
|
-
const {
|
|
32616
|
-
name: name2,
|
|
32617
|
-
methods,
|
|
32618
|
-
isForm,
|
|
32619
|
-
model,
|
|
32620
|
-
required,
|
|
32621
|
-
idForm,
|
|
32622
|
-
widget,
|
|
32623
|
-
useUploadImage,
|
|
32624
|
-
useUploadFile,
|
|
32625
|
-
useGetImage,
|
|
32626
|
-
isBase64File
|
|
32627
|
-
} = props;
|
|
32618
|
+
const { name: name2, methods, isForm, model, required, idForm, widget, useUploadImage, useUploadFile, useGetImage, isBase64File } = props;
|
|
32628
32619
|
const fileInputRef = (0, import_react54.useRef)(null);
|
|
32629
32620
|
const [selectedFiles, setSelectedFiles] = (0, import_react54.useState)([]);
|
|
32630
32621
|
const [uploadError, setUploadError] = (0, import_react54.useState)();
|
|
@@ -32825,8 +32816,8 @@ var FloatField = (props) => {
|
|
|
32825
32816
|
placeholder,
|
|
32826
32817
|
required: !invisible && required,
|
|
32827
32818
|
style: invisible ? { display: "none" } : {},
|
|
32828
|
-
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-
|
|
32829
|
-
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer
|
|
32819
|
+
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-white border border-[rgba(66,66,66,0.12)] rounded-lg p-3 text-sm font-normal gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content
|
|
32820
|
+
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer text-[#AEAEAE]"}
|
|
32830
32821
|
`
|
|
32831
32822
|
}
|
|
32832
32823
|
),
|
|
@@ -33000,8 +32991,8 @@ var HtmlField = (props) => {
|
|
|
33000
32991
|
ref: divRef,
|
|
33001
32992
|
contentEditable: !readonly,
|
|
33002
32993
|
onInput: handleInput,
|
|
33003
|
-
className: `${!isForm ? "!bg-transparent focus-within:!border-none" : `rounded-
|
|
33004
|
-
|
|
32994
|
+
className: `${!isForm ? "!bg-transparent focus-within:!border-none" : `rounded-lg border min-h-[44px] w-full ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 border-[rgba(66,66,66,0.12)] bg-white
|
|
32995
|
+
p-2 pl-3 font-normal text-sm gap-2 leading-5
|
|
33005
32996
|
resize-none opacity-100 overflow-hidden
|
|
33006
32997
|
|
|
33007
32998
|
`}`
|
|
@@ -33179,12 +33170,12 @@ var Many2ManyTagField = (props) => {
|
|
|
33179
33170
|
onChange: handleChange,
|
|
33180
33171
|
classNames: isEditTable ? {
|
|
33181
33172
|
valueContainer: () => "overflow-unset !px-0",
|
|
33182
|
-
control: () => `w-full flex ring-0 cursor-pointer outline-0 md:!min-w-[300px] max-w-[300px] !shadow-none
|
|
33173
|
+
control: () => `w-full flex ring-0 cursor-pointer outline-0 md:!min-w-[300px] max-w-[300px] !shadow-none p-2 pl-3 text-sm text-[#1A1A1B] font-normal gap-2 opacity-100 leading-5 resize-none overflow-hidden border border-transparent border-b border-[#f7f7f7] hover:border-b-primary ${readonly ? "!cursor-not-allowed" : ""}`,
|
|
33183
33174
|
dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
|
|
33184
33175
|
clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
|
|
33185
33176
|
} : {
|
|
33186
33177
|
valueContainer: () => "overflow-unset !m-0 !p-0",
|
|
33187
|
-
control: ({ isFocused }) => `w-full flex ring-0 cursor-pointer outline-0 bg-
|
|
33178
|
+
control: ({ isFocused }) => `w-full flex ring-0 cursor-pointer outline-0 bg-white !shadow-none !rounded-lg p-2 pl-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]"} ${readonly && "!cursor-not-allowed"}`,
|
|
33188
33179
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
33189
33180
|
input: () => "!m-0 !p-0",
|
|
33190
33181
|
dropdownIndicator: () => "!m-0 !p-0"
|
|
@@ -33628,14 +33619,14 @@ var SelectDropdownField = (props) => {
|
|
|
33628
33619
|
{
|
|
33629
33620
|
...commonProps,
|
|
33630
33621
|
classNames: isEditTable ? {
|
|
33631
|
-
control: () => `w-full flex ring-0 cursor-pointer outline-0 !shadow-none
|
|
33622
|
+
control: () => `w-full flex ring-0 cursor-pointer outline-0 !shadow-none p-2 pl-3 text-sm text-[#1A1A1B] font-normal gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content border border-transparent border-b border-[#f7f7f7] hover:border-b-primary ${readonly ? "!cursor-not-allowed" : ""}`,
|
|
33632
33623
|
valueContainer: () => "!m-0 !p-0",
|
|
33633
33624
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
33634
33625
|
input: () => "!m-0 !p-0",
|
|
33635
33626
|
dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
|
|
33636
33627
|
clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
|
|
33637
33628
|
} : {
|
|
33638
|
-
control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 !bg-
|
|
33629
|
+
control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 !bg-white !shadow-none !rounded-[8px] p-2 pl-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]"} `,
|
|
33639
33630
|
valueContainer: () => "!m-0 !p-0",
|
|
33640
33631
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
33641
33632
|
input: () => "!m-0 !p-0",
|
|
@@ -34270,7 +34261,10 @@ var Many2OneField = (props) => {
|
|
|
34270
34261
|
name: name2 ?? "",
|
|
34271
34262
|
control: methods?.control,
|
|
34272
34263
|
rules: {
|
|
34273
|
-
required: required ? {
|
|
34264
|
+
required: required ? {
|
|
34265
|
+
value: true,
|
|
34266
|
+
message: `${string} ${instance.t("must_required")}`
|
|
34267
|
+
} : false
|
|
34274
34268
|
},
|
|
34275
34269
|
render: ({ field, fieldState: { error: error2 } }) => {
|
|
34276
34270
|
const currentValue = field?.value ? { value: field?.value?.id, label: field?.value?.display_name } : null;
|
|
@@ -34289,7 +34283,7 @@ var Many2OneField = (props) => {
|
|
|
34289
34283
|
menuShouldScrollIntoView: false,
|
|
34290
34284
|
options: options2,
|
|
34291
34285
|
classNames: {
|
|
34292
|
-
control: ({ isFocused }) => `w-full flex min-h-[44px]
|
|
34286
|
+
control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 bg-white !shadow-none !rounded-[10px] p-2 pl-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isForm && (isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]")} ${readonly && "!cursor-not-allowed"} ${isEditTable && "md:!min-w-[300px] max-w-[300px] !rounded-none !border !border-transparent !border-b !border-[#f7f7f7] hover:border-b-primary !bg-transparent min-h-auto"}`,
|
|
34293
34287
|
valueContainer: () => "!m-0 !p-0",
|
|
34294
34288
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
34295
34289
|
input: () => "!m-0 !p-0",
|
package/dist/index.mjs
CHANGED
|
@@ -15020,9 +15020,10 @@ var Search = ({
|
|
|
15020
15020
|
setPage(0);
|
|
15021
15021
|
setSelectedRowKeys([]);
|
|
15022
15022
|
const containSearchFilter = selectedTags?.length > 0 && selectedTags?.find(
|
|
15023
|
-
(item) => item?.type === SearchType.FILTER || item?.type === SearchType.SEARCH
|
|
15023
|
+
(item) => item?.type === SearchType.FILTER || item?.type === SearchType.SEARCH
|
|
15024
15024
|
);
|
|
15025
|
-
|
|
15025
|
+
const containGroup = selectedTags?.length > 0 && selectedTags?.some((item) => item?.type === SearchType.GROUP);
|
|
15026
|
+
if (containSearchFilter && !containGroup || selectedTags?.length === 0) {
|
|
15026
15027
|
setDomainList(domainSearch);
|
|
15027
15028
|
}
|
|
15028
15029
|
}
|
|
@@ -15033,8 +15034,9 @@ var Search = ({
|
|
|
15033
15034
|
setDidInit(false);
|
|
15034
15035
|
setIsReadyFormatDomain(false);
|
|
15035
15036
|
};
|
|
15036
|
-
}, [
|
|
15037
|
+
}, [aid]);
|
|
15037
15038
|
useEffect6(() => {
|
|
15039
|
+
if (!filterBy) return;
|
|
15038
15040
|
if (didInit || selectedTags?.length > 0) return;
|
|
15039
15041
|
const searchDefaults = Object.entries(context || {}).filter(
|
|
15040
15042
|
([key]) => key.startsWith("search_default_")
|
|
@@ -15062,7 +15064,7 @@ var Search = ({
|
|
|
15062
15064
|
return item;
|
|
15063
15065
|
});
|
|
15064
15066
|
if (updatedFilter) setFilterBy(updatedFilter);
|
|
15065
|
-
if (hasGroupBy) {
|
|
15067
|
+
if (hasGroupBy && fieldsList?.length > 0) {
|
|
15066
15068
|
viewData?.views?.search?.filters_by?.forEach((item, idx) => {
|
|
15067
15069
|
const groupCtx = evalJSONContext(item?.context);
|
|
15068
15070
|
handleAddTagSearch?.({
|
|
@@ -15071,13 +15073,14 @@ var Search = ({
|
|
|
15071
15073
|
type: SearchType.GROUP,
|
|
15072
15074
|
context: groupCtx,
|
|
15073
15075
|
groupIndex: idx,
|
|
15074
|
-
isDefault: true
|
|
15076
|
+
isDefault: true,
|
|
15077
|
+
fieldsGroup: fieldsList
|
|
15075
15078
|
});
|
|
15076
15079
|
});
|
|
15077
15080
|
setDidInit(true);
|
|
15078
15081
|
}
|
|
15079
15082
|
setIsReadyFormatDomain(true);
|
|
15080
|
-
}, [aid]);
|
|
15083
|
+
}, [aid, filterBy, fieldsList]);
|
|
15081
15084
|
return /* @__PURE__ */ jsxs39(
|
|
15082
15085
|
"div",
|
|
15083
15086
|
{
|
|
@@ -18048,8 +18051,8 @@ var CharField = (props) => {
|
|
|
18048
18051
|
disabled: readonly,
|
|
18049
18052
|
placeholder,
|
|
18050
18053
|
required: !invisible && required,
|
|
18051
|
-
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-
|
|
18052
|
-
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer
|
|
18054
|
+
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-white border border-[rgba(66,66,66,0.12)] rounded-lg p-3 text-sm font-normal gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content
|
|
18055
|
+
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer text-[#AEAEAE]"}
|
|
18053
18056
|
`
|
|
18054
18057
|
}
|
|
18055
18058
|
),
|
|
@@ -32493,19 +32496,7 @@ var FeeField = (props) => {
|
|
|
32493
32496
|
import { useEffect as useEffect16, useRef as useRef14, useState as useState16 } from "react";
|
|
32494
32497
|
import { jsx as jsx84, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
32495
32498
|
var FileUploadField = (props) => {
|
|
32496
|
-
const {
|
|
32497
|
-
name: name2,
|
|
32498
|
-
methods,
|
|
32499
|
-
isForm,
|
|
32500
|
-
model,
|
|
32501
|
-
required,
|
|
32502
|
-
idForm,
|
|
32503
|
-
widget,
|
|
32504
|
-
useUploadImage,
|
|
32505
|
-
useUploadFile,
|
|
32506
|
-
useGetImage,
|
|
32507
|
-
isBase64File
|
|
32508
|
-
} = props;
|
|
32499
|
+
const { name: name2, methods, isForm, model, required, idForm, widget, useUploadImage, useUploadFile, useGetImage, isBase64File } = props;
|
|
32509
32500
|
const fileInputRef = useRef14(null);
|
|
32510
32501
|
const [selectedFiles, setSelectedFiles] = useState16([]);
|
|
32511
32502
|
const [uploadError, setUploadError] = useState16();
|
|
@@ -32706,8 +32697,8 @@ var FloatField = (props) => {
|
|
|
32706
32697
|
placeholder,
|
|
32707
32698
|
required: !invisible && required,
|
|
32708
32699
|
style: invisible ? { display: "none" } : {},
|
|
32709
|
-
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-
|
|
32710
|
-
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer
|
|
32700
|
+
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-white border border-[rgba(66,66,66,0.12)] rounded-lg p-3 text-sm font-normal gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content
|
|
32701
|
+
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer text-[#AEAEAE]"}
|
|
32711
32702
|
`
|
|
32712
32703
|
}
|
|
32713
32704
|
),
|
|
@@ -32881,8 +32872,8 @@ var HtmlField = (props) => {
|
|
|
32881
32872
|
ref: divRef,
|
|
32882
32873
|
contentEditable: !readonly,
|
|
32883
32874
|
onInput: handleInput,
|
|
32884
|
-
className: `${!isForm ? "!bg-transparent focus-within:!border-none" : `rounded-
|
|
32885
|
-
|
|
32875
|
+
className: `${!isForm ? "!bg-transparent focus-within:!border-none" : `rounded-lg border min-h-[44px] w-full ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 border-[rgba(66,66,66,0.12)] bg-white
|
|
32876
|
+
p-2 pl-3 font-normal text-sm gap-2 leading-5
|
|
32886
32877
|
resize-none opacity-100 overflow-hidden
|
|
32887
32878
|
|
|
32888
32879
|
`}`
|
|
@@ -33060,12 +33051,12 @@ var Many2ManyTagField = (props) => {
|
|
|
33060
33051
|
onChange: handleChange,
|
|
33061
33052
|
classNames: isEditTable ? {
|
|
33062
33053
|
valueContainer: () => "overflow-unset !px-0",
|
|
33063
|
-
control: () => `w-full flex ring-0 cursor-pointer outline-0 md:!min-w-[300px] max-w-[300px] !shadow-none
|
|
33054
|
+
control: () => `w-full flex ring-0 cursor-pointer outline-0 md:!min-w-[300px] max-w-[300px] !shadow-none p-2 pl-3 text-sm text-[#1A1A1B] font-normal gap-2 opacity-100 leading-5 resize-none overflow-hidden border border-transparent border-b border-[#f7f7f7] hover:border-b-primary ${readonly ? "!cursor-not-allowed" : ""}`,
|
|
33064
33055
|
dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
|
|
33065
33056
|
clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
|
|
33066
33057
|
} : {
|
|
33067
33058
|
valueContainer: () => "overflow-unset !m-0 !p-0",
|
|
33068
|
-
control: ({ isFocused }) => `w-full flex ring-0 cursor-pointer outline-0 bg-
|
|
33059
|
+
control: ({ isFocused }) => `w-full flex ring-0 cursor-pointer outline-0 bg-white !shadow-none !rounded-lg p-2 pl-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]"} ${readonly && "!cursor-not-allowed"}`,
|
|
33069
33060
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
33070
33061
|
input: () => "!m-0 !p-0",
|
|
33071
33062
|
dropdownIndicator: () => "!m-0 !p-0"
|
|
@@ -33509,14 +33500,14 @@ var SelectDropdownField = (props) => {
|
|
|
33509
33500
|
{
|
|
33510
33501
|
...commonProps,
|
|
33511
33502
|
classNames: isEditTable ? {
|
|
33512
|
-
control: () => `w-full flex ring-0 cursor-pointer outline-0 !shadow-none
|
|
33503
|
+
control: () => `w-full flex ring-0 cursor-pointer outline-0 !shadow-none p-2 pl-3 text-sm text-[#1A1A1B] font-normal gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content border border-transparent border-b border-[#f7f7f7] hover:border-b-primary ${readonly ? "!cursor-not-allowed" : ""}`,
|
|
33513
33504
|
valueContainer: () => "!m-0 !p-0",
|
|
33514
33505
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
33515
33506
|
input: () => "!m-0 !p-0",
|
|
33516
33507
|
dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
|
|
33517
33508
|
clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
|
|
33518
33509
|
} : {
|
|
33519
|
-
control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 !bg-
|
|
33510
|
+
control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 !bg-white !shadow-none !rounded-[8px] p-2 pl-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]"} `,
|
|
33520
33511
|
valueContainer: () => "!m-0 !p-0",
|
|
33521
33512
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
33522
33513
|
input: () => "!m-0 !p-0",
|
|
@@ -34151,7 +34142,10 @@ var Many2OneField = (props) => {
|
|
|
34151
34142
|
name: name2 ?? "",
|
|
34152
34143
|
control: methods?.control,
|
|
34153
34144
|
rules: {
|
|
34154
|
-
required: required ? {
|
|
34145
|
+
required: required ? {
|
|
34146
|
+
value: true,
|
|
34147
|
+
message: `${string} ${instance.t("must_required")}`
|
|
34148
|
+
} : false
|
|
34155
34149
|
},
|
|
34156
34150
|
render: ({ field, fieldState: { error: error2 } }) => {
|
|
34157
34151
|
const currentValue = field?.value ? { value: field?.value?.id, label: field?.value?.display_name } : null;
|
|
@@ -34170,7 +34164,7 @@ var Many2OneField = (props) => {
|
|
|
34170
34164
|
menuShouldScrollIntoView: false,
|
|
34171
34165
|
options: options2,
|
|
34172
34166
|
classNames: {
|
|
34173
|
-
control: ({ isFocused }) => `w-full flex min-h-[44px]
|
|
34167
|
+
control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 bg-white !shadow-none !rounded-[10px] p-2 pl-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isForm && (isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]")} ${readonly && "!cursor-not-allowed"} ${isEditTable && "md:!min-w-[300px] max-w-[300px] !rounded-none !border !border-transparent !border-b !border-[#f7f7f7] hover:border-b-primary !bg-transparent min-h-auto"}`,
|
|
34174
34168
|
valueContainer: () => "!m-0 !p-0",
|
|
34175
34169
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
34176
34170
|
input: () => "!m-0 !p-0",
|
package/dist/widgets.js
CHANGED
|
@@ -14784,9 +14784,10 @@ var Search = ({
|
|
|
14784
14784
|
setPage(0);
|
|
14785
14785
|
setSelectedRowKeys([]);
|
|
14786
14786
|
const containSearchFilter = selectedTags?.length > 0 && selectedTags?.find(
|
|
14787
|
-
(item) => item?.type === SearchType.FILTER || item?.type === SearchType.SEARCH
|
|
14787
|
+
(item) => item?.type === SearchType.FILTER || item?.type === SearchType.SEARCH
|
|
14788
14788
|
);
|
|
14789
|
-
|
|
14789
|
+
const containGroup = selectedTags?.length > 0 && selectedTags?.some((item) => item?.type === SearchType.GROUP);
|
|
14790
|
+
if (containSearchFilter && !containGroup || selectedTags?.length === 0) {
|
|
14790
14791
|
setDomainList(domainSearch);
|
|
14791
14792
|
}
|
|
14792
14793
|
}
|
|
@@ -14797,8 +14798,9 @@ var Search = ({
|
|
|
14797
14798
|
setDidInit(false);
|
|
14798
14799
|
setIsReadyFormatDomain(false);
|
|
14799
14800
|
};
|
|
14800
|
-
}, [
|
|
14801
|
+
}, [aid]);
|
|
14801
14802
|
(0, import_react18.useEffect)(() => {
|
|
14803
|
+
if (!filterBy) return;
|
|
14802
14804
|
if (didInit || selectedTags?.length > 0) return;
|
|
14803
14805
|
const searchDefaults = Object.entries(context || {}).filter(
|
|
14804
14806
|
([key]) => key.startsWith("search_default_")
|
|
@@ -14826,7 +14828,7 @@ var Search = ({
|
|
|
14826
14828
|
return item;
|
|
14827
14829
|
});
|
|
14828
14830
|
if (updatedFilter) setFilterBy(updatedFilter);
|
|
14829
|
-
if (hasGroupBy) {
|
|
14831
|
+
if (hasGroupBy && fieldsList?.length > 0) {
|
|
14830
14832
|
viewData?.views?.search?.filters_by?.forEach((item, idx) => {
|
|
14831
14833
|
const groupCtx = evalJSONContext(item?.context);
|
|
14832
14834
|
handleAddTagSearch?.({
|
|
@@ -14835,13 +14837,14 @@ var Search = ({
|
|
|
14835
14837
|
type: SearchType.GROUP,
|
|
14836
14838
|
context: groupCtx,
|
|
14837
14839
|
groupIndex: idx,
|
|
14838
|
-
isDefault: true
|
|
14840
|
+
isDefault: true,
|
|
14841
|
+
fieldsGroup: fieldsList
|
|
14839
14842
|
});
|
|
14840
14843
|
});
|
|
14841
14844
|
setDidInit(true);
|
|
14842
14845
|
}
|
|
14843
14846
|
setIsReadyFormatDomain(true);
|
|
14844
|
-
}, [aid]);
|
|
14847
|
+
}, [aid, filterBy, fieldsList]);
|
|
14845
14848
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
14846
14849
|
"div",
|
|
14847
14850
|
{
|
|
@@ -17812,8 +17815,8 @@ var CharField = (props) => {
|
|
|
17812
17815
|
disabled: readonly,
|
|
17813
17816
|
placeholder,
|
|
17814
17817
|
required: !invisible && required,
|
|
17815
|
-
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-
|
|
17816
|
-
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer
|
|
17818
|
+
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-white border border-[rgba(66,66,66,0.12)] rounded-lg p-3 text-sm font-normal gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content
|
|
17819
|
+
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer text-[#AEAEAE]"}
|
|
17817
17820
|
`
|
|
17818
17821
|
}
|
|
17819
17822
|
),
|
|
@@ -32257,19 +32260,7 @@ var FeeField = (props) => {
|
|
|
32257
32260
|
var import_react54 = require("react");
|
|
32258
32261
|
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
32259
32262
|
var FileUploadField = (props) => {
|
|
32260
|
-
const {
|
|
32261
|
-
name: name2,
|
|
32262
|
-
methods,
|
|
32263
|
-
isForm,
|
|
32264
|
-
model,
|
|
32265
|
-
required,
|
|
32266
|
-
idForm,
|
|
32267
|
-
widget,
|
|
32268
|
-
useUploadImage,
|
|
32269
|
-
useUploadFile,
|
|
32270
|
-
useGetImage,
|
|
32271
|
-
isBase64File
|
|
32272
|
-
} = props;
|
|
32263
|
+
const { name: name2, methods, isForm, model, required, idForm, widget, useUploadImage, useUploadFile, useGetImage, isBase64File } = props;
|
|
32273
32264
|
const fileInputRef = (0, import_react54.useRef)(null);
|
|
32274
32265
|
const [selectedFiles, setSelectedFiles] = (0, import_react54.useState)([]);
|
|
32275
32266
|
const [uploadError, setUploadError] = (0, import_react54.useState)();
|
|
@@ -32470,8 +32461,8 @@ var FloatField = (props) => {
|
|
|
32470
32461
|
placeholder,
|
|
32471
32462
|
required: !invisible && required,
|
|
32472
32463
|
style: invisible ? { display: "none" } : {},
|
|
32473
|
-
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-
|
|
32474
|
-
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer
|
|
32464
|
+
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-white border border-[rgba(66,66,66,0.12)] rounded-lg p-3 text-sm font-normal gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content
|
|
32465
|
+
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer text-[#AEAEAE]"}
|
|
32475
32466
|
`
|
|
32476
32467
|
}
|
|
32477
32468
|
),
|
|
@@ -32645,8 +32636,8 @@ var HtmlField = (props) => {
|
|
|
32645
32636
|
ref: divRef,
|
|
32646
32637
|
contentEditable: !readonly,
|
|
32647
32638
|
onInput: handleInput,
|
|
32648
|
-
className: `${!isForm ? "!bg-transparent focus-within:!border-none" : `rounded-
|
|
32649
|
-
|
|
32639
|
+
className: `${!isForm ? "!bg-transparent focus-within:!border-none" : `rounded-lg border min-h-[44px] w-full ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 border-[rgba(66,66,66,0.12)] bg-white
|
|
32640
|
+
p-2 pl-3 font-normal text-sm gap-2 leading-5
|
|
32650
32641
|
resize-none opacity-100 overflow-hidden
|
|
32651
32642
|
|
|
32652
32643
|
`}`
|
|
@@ -32824,12 +32815,12 @@ var Many2ManyTagField = (props) => {
|
|
|
32824
32815
|
onChange: handleChange,
|
|
32825
32816
|
classNames: isEditTable ? {
|
|
32826
32817
|
valueContainer: () => "overflow-unset !px-0",
|
|
32827
|
-
control: () => `w-full flex ring-0 cursor-pointer outline-0 md:!min-w-[300px] max-w-[300px] !shadow-none
|
|
32818
|
+
control: () => `w-full flex ring-0 cursor-pointer outline-0 md:!min-w-[300px] max-w-[300px] !shadow-none p-2 pl-3 text-sm text-[#1A1A1B] font-normal gap-2 opacity-100 leading-5 resize-none overflow-hidden border border-transparent border-b border-[#f7f7f7] hover:border-b-primary ${readonly ? "!cursor-not-allowed" : ""}`,
|
|
32828
32819
|
dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
|
|
32829
32820
|
clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
|
|
32830
32821
|
} : {
|
|
32831
32822
|
valueContainer: () => "overflow-unset !m-0 !p-0",
|
|
32832
|
-
control: ({ isFocused }) => `w-full flex ring-0 cursor-pointer outline-0 bg-
|
|
32823
|
+
control: ({ isFocused }) => `w-full flex ring-0 cursor-pointer outline-0 bg-white !shadow-none !rounded-lg p-2 pl-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]"} ${readonly && "!cursor-not-allowed"}`,
|
|
32833
32824
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
32834
32825
|
input: () => "!m-0 !p-0",
|
|
32835
32826
|
dropdownIndicator: () => "!m-0 !p-0"
|
|
@@ -33273,14 +33264,14 @@ var SelectDropdownField = (props) => {
|
|
|
33273
33264
|
{
|
|
33274
33265
|
...commonProps,
|
|
33275
33266
|
classNames: isEditTable ? {
|
|
33276
|
-
control: () => `w-full flex ring-0 cursor-pointer outline-0 !shadow-none
|
|
33267
|
+
control: () => `w-full flex ring-0 cursor-pointer outline-0 !shadow-none p-2 pl-3 text-sm text-[#1A1A1B] font-normal gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content border border-transparent border-b border-[#f7f7f7] hover:border-b-primary ${readonly ? "!cursor-not-allowed" : ""}`,
|
|
33277
33268
|
valueContainer: () => "!m-0 !p-0",
|
|
33278
33269
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
33279
33270
|
input: () => "!m-0 !p-0",
|
|
33280
33271
|
dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
|
|
33281
33272
|
clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
|
|
33282
33273
|
} : {
|
|
33283
|
-
control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 !bg-
|
|
33274
|
+
control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 !bg-white !shadow-none !rounded-[8px] p-2 pl-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]"} `,
|
|
33284
33275
|
valueContainer: () => "!m-0 !p-0",
|
|
33285
33276
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
33286
33277
|
input: () => "!m-0 !p-0",
|
|
@@ -33915,7 +33906,10 @@ var Many2OneField = (props) => {
|
|
|
33915
33906
|
name: name2 ?? "",
|
|
33916
33907
|
control: methods?.control,
|
|
33917
33908
|
rules: {
|
|
33918
|
-
required: required ? {
|
|
33909
|
+
required: required ? {
|
|
33910
|
+
value: true,
|
|
33911
|
+
message: `${string} ${instance.t("must_required")}`
|
|
33912
|
+
} : false
|
|
33919
33913
|
},
|
|
33920
33914
|
render: ({ field, fieldState: { error: error2 } }) => {
|
|
33921
33915
|
const currentValue = field?.value ? { value: field?.value?.id, label: field?.value?.display_name } : null;
|
|
@@ -33934,7 +33928,7 @@ var Many2OneField = (props) => {
|
|
|
33934
33928
|
menuShouldScrollIntoView: false,
|
|
33935
33929
|
options: options2,
|
|
33936
33930
|
classNames: {
|
|
33937
|
-
control: ({ isFocused }) => `w-full flex min-h-[44px]
|
|
33931
|
+
control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 bg-white !shadow-none !rounded-[10px] p-2 pl-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isForm && (isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]")} ${readonly && "!cursor-not-allowed"} ${isEditTable && "md:!min-w-[300px] max-w-[300px] !rounded-none !border !border-transparent !border-b !border-[#f7f7f7] hover:border-b-primary !bg-transparent min-h-auto"}`,
|
|
33938
33932
|
valueContainer: () => "!m-0 !p-0",
|
|
33939
33933
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
33940
33934
|
input: () => "!m-0 !p-0",
|
package/dist/widgets.mjs
CHANGED
|
@@ -14722,9 +14722,10 @@ var Search = ({
|
|
|
14722
14722
|
setPage(0);
|
|
14723
14723
|
setSelectedRowKeys([]);
|
|
14724
14724
|
const containSearchFilter = selectedTags?.length > 0 && selectedTags?.find(
|
|
14725
|
-
(item) => item?.type === SearchType.FILTER || item?.type === SearchType.SEARCH
|
|
14725
|
+
(item) => item?.type === SearchType.FILTER || item?.type === SearchType.SEARCH
|
|
14726
14726
|
);
|
|
14727
|
-
|
|
14727
|
+
const containGroup = selectedTags?.length > 0 && selectedTags?.some((item) => item?.type === SearchType.GROUP);
|
|
14728
|
+
if (containSearchFilter && !containGroup || selectedTags?.length === 0) {
|
|
14728
14729
|
setDomainList(domainSearch);
|
|
14729
14730
|
}
|
|
14730
14731
|
}
|
|
@@ -14735,8 +14736,9 @@ var Search = ({
|
|
|
14735
14736
|
setDidInit(false);
|
|
14736
14737
|
setIsReadyFormatDomain(false);
|
|
14737
14738
|
};
|
|
14738
|
-
}, [
|
|
14739
|
+
}, [aid]);
|
|
14739
14740
|
useEffect6(() => {
|
|
14741
|
+
if (!filterBy) return;
|
|
14740
14742
|
if (didInit || selectedTags?.length > 0) return;
|
|
14741
14743
|
const searchDefaults = Object.entries(context || {}).filter(
|
|
14742
14744
|
([key]) => key.startsWith("search_default_")
|
|
@@ -14764,7 +14766,7 @@ var Search = ({
|
|
|
14764
14766
|
return item;
|
|
14765
14767
|
});
|
|
14766
14768
|
if (updatedFilter) setFilterBy(updatedFilter);
|
|
14767
|
-
if (hasGroupBy) {
|
|
14769
|
+
if (hasGroupBy && fieldsList?.length > 0) {
|
|
14768
14770
|
viewData?.views?.search?.filters_by?.forEach((item, idx) => {
|
|
14769
14771
|
const groupCtx = evalJSONContext(item?.context);
|
|
14770
14772
|
handleAddTagSearch?.({
|
|
@@ -14773,13 +14775,14 @@ var Search = ({
|
|
|
14773
14775
|
type: SearchType.GROUP,
|
|
14774
14776
|
context: groupCtx,
|
|
14775
14777
|
groupIndex: idx,
|
|
14776
|
-
isDefault: true
|
|
14778
|
+
isDefault: true,
|
|
14779
|
+
fieldsGroup: fieldsList
|
|
14777
14780
|
});
|
|
14778
14781
|
});
|
|
14779
14782
|
setDidInit(true);
|
|
14780
14783
|
}
|
|
14781
14784
|
setIsReadyFormatDomain(true);
|
|
14782
|
-
}, [aid]);
|
|
14785
|
+
}, [aid, filterBy, fieldsList]);
|
|
14783
14786
|
return /* @__PURE__ */ jsxs39(
|
|
14784
14787
|
"div",
|
|
14785
14788
|
{
|
|
@@ -17750,8 +17753,8 @@ var CharField = (props) => {
|
|
|
17750
17753
|
disabled: readonly,
|
|
17751
17754
|
placeholder,
|
|
17752
17755
|
required: !invisible && required,
|
|
17753
|
-
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-
|
|
17754
|
-
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer
|
|
17756
|
+
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-white border border-[rgba(66,66,66,0.12)] rounded-lg p-3 text-sm font-normal gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content
|
|
17757
|
+
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer text-[#AEAEAE]"}
|
|
17755
17758
|
`
|
|
17756
17759
|
}
|
|
17757
17760
|
),
|
|
@@ -32195,19 +32198,7 @@ var FeeField = (props) => {
|
|
|
32195
32198
|
import { useEffect as useEffect16, useRef as useRef14, useState as useState16 } from "react";
|
|
32196
32199
|
import { jsx as jsx84, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
32197
32200
|
var FileUploadField = (props) => {
|
|
32198
|
-
const {
|
|
32199
|
-
name: name2,
|
|
32200
|
-
methods,
|
|
32201
|
-
isForm,
|
|
32202
|
-
model,
|
|
32203
|
-
required,
|
|
32204
|
-
idForm,
|
|
32205
|
-
widget,
|
|
32206
|
-
useUploadImage,
|
|
32207
|
-
useUploadFile,
|
|
32208
|
-
useGetImage,
|
|
32209
|
-
isBase64File
|
|
32210
|
-
} = props;
|
|
32201
|
+
const { name: name2, methods, isForm, model, required, idForm, widget, useUploadImage, useUploadFile, useGetImage, isBase64File } = props;
|
|
32211
32202
|
const fileInputRef = useRef14(null);
|
|
32212
32203
|
const [selectedFiles, setSelectedFiles] = useState16([]);
|
|
32213
32204
|
const [uploadError, setUploadError] = useState16();
|
|
@@ -32408,8 +32399,8 @@ var FloatField = (props) => {
|
|
|
32408
32399
|
placeholder,
|
|
32409
32400
|
required: !invisible && required,
|
|
32410
32401
|
style: invisible ? { display: "none" } : {},
|
|
32411
|
-
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-
|
|
32412
|
-
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer
|
|
32402
|
+
className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-white border border-[rgba(66,66,66,0.12)] rounded-lg p-3 text-sm font-normal gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content
|
|
32403
|
+
${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer text-[#AEAEAE]"}
|
|
32413
32404
|
`
|
|
32414
32405
|
}
|
|
32415
32406
|
),
|
|
@@ -32583,8 +32574,8 @@ var HtmlField = (props) => {
|
|
|
32583
32574
|
ref: divRef,
|
|
32584
32575
|
contentEditable: !readonly,
|
|
32585
32576
|
onInput: handleInput,
|
|
32586
|
-
className: `${!isForm ? "!bg-transparent focus-within:!border-none" : `rounded-
|
|
32587
|
-
|
|
32577
|
+
className: `${!isForm ? "!bg-transparent focus-within:!border-none" : `rounded-lg border min-h-[44px] w-full ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 border-[rgba(66,66,66,0.12)] bg-white
|
|
32578
|
+
p-2 pl-3 font-normal text-sm gap-2 leading-5
|
|
32588
32579
|
resize-none opacity-100 overflow-hidden
|
|
32589
32580
|
|
|
32590
32581
|
`}`
|
|
@@ -32762,12 +32753,12 @@ var Many2ManyTagField = (props) => {
|
|
|
32762
32753
|
onChange: handleChange,
|
|
32763
32754
|
classNames: isEditTable ? {
|
|
32764
32755
|
valueContainer: () => "overflow-unset !px-0",
|
|
32765
|
-
control: () => `w-full flex ring-0 cursor-pointer outline-0 md:!min-w-[300px] max-w-[300px] !shadow-none
|
|
32756
|
+
control: () => `w-full flex ring-0 cursor-pointer outline-0 md:!min-w-[300px] max-w-[300px] !shadow-none p-2 pl-3 text-sm text-[#1A1A1B] font-normal gap-2 opacity-100 leading-5 resize-none overflow-hidden border border-transparent border-b border-[#f7f7f7] hover:border-b-primary ${readonly ? "!cursor-not-allowed" : ""}`,
|
|
32766
32757
|
dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
|
|
32767
32758
|
clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
|
|
32768
32759
|
} : {
|
|
32769
32760
|
valueContainer: () => "overflow-unset !m-0 !p-0",
|
|
32770
|
-
control: ({ isFocused }) => `w-full flex ring-0 cursor-pointer outline-0 bg-
|
|
32761
|
+
control: ({ isFocused }) => `w-full flex ring-0 cursor-pointer outline-0 bg-white !shadow-none !rounded-lg p-2 pl-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]"} ${readonly && "!cursor-not-allowed"}`,
|
|
32771
32762
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
32772
32763
|
input: () => "!m-0 !p-0",
|
|
32773
32764
|
dropdownIndicator: () => "!m-0 !p-0"
|
|
@@ -33211,14 +33202,14 @@ var SelectDropdownField = (props) => {
|
|
|
33211
33202
|
{
|
|
33212
33203
|
...commonProps,
|
|
33213
33204
|
classNames: isEditTable ? {
|
|
33214
|
-
control: () => `w-full flex ring-0 cursor-pointer outline-0 !shadow-none
|
|
33205
|
+
control: () => `w-full flex ring-0 cursor-pointer outline-0 !shadow-none p-2 pl-3 text-sm text-[#1A1A1B] font-normal gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content border border-transparent border-b border-[#f7f7f7] hover:border-b-primary ${readonly ? "!cursor-not-allowed" : ""}`,
|
|
33215
33206
|
valueContainer: () => "!m-0 !p-0",
|
|
33216
33207
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
33217
33208
|
input: () => "!m-0 !p-0",
|
|
33218
33209
|
dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
|
|
33219
33210
|
clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
|
|
33220
33211
|
} : {
|
|
33221
|
-
control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 !bg-
|
|
33212
|
+
control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 !bg-white !shadow-none !rounded-[8px] p-2 pl-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]"} `,
|
|
33222
33213
|
valueContainer: () => "!m-0 !p-0",
|
|
33223
33214
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
33224
33215
|
input: () => "!m-0 !p-0",
|
|
@@ -33853,7 +33844,10 @@ var Many2OneField = (props) => {
|
|
|
33853
33844
|
name: name2 ?? "",
|
|
33854
33845
|
control: methods?.control,
|
|
33855
33846
|
rules: {
|
|
33856
|
-
required: required ? {
|
|
33847
|
+
required: required ? {
|
|
33848
|
+
value: true,
|
|
33849
|
+
message: `${string} ${instance.t("must_required")}`
|
|
33850
|
+
} : false
|
|
33857
33851
|
},
|
|
33858
33852
|
render: ({ field, fieldState: { error: error2 } }) => {
|
|
33859
33853
|
const currentValue = field?.value ? { value: field?.value?.id, label: field?.value?.display_name } : null;
|
|
@@ -33872,7 +33866,7 @@ var Many2OneField = (props) => {
|
|
|
33872
33866
|
menuShouldScrollIntoView: false,
|
|
33873
33867
|
options: options2,
|
|
33874
33868
|
classNames: {
|
|
33875
|
-
control: ({ isFocused }) => `w-full flex min-h-[44px]
|
|
33869
|
+
control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 bg-white !shadow-none !rounded-[10px] p-2 pl-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isForm && (isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]")} ${readonly && "!cursor-not-allowed"} ${isEditTable && "md:!min-w-[300px] max-w-[300px] !rounded-none !border !border-transparent !border-b !border-[#f7f7f7] hover:border-b-primary !bg-transparent min-h-auto"}`,
|
|
33876
33870
|
valueContainer: () => "!m-0 !p-0",
|
|
33877
33871
|
singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
|
|
33878
33872
|
input: () => "!m-0 !p-0",
|
package/package.json
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fctc/sme-widget-ui",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"main": "dist/index.cjs",
|
|
5
|
-
"module": "dist/index.mjs",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.mjs",
|
|
11
|
-
"require": "./dist/index.cjs"
|
|
12
|
-
},
|
|
13
|
-
"./hooks": {
|
|
14
|
-
"types": "./dist/hooks.d.ts",
|
|
15
|
-
"import": "./dist/hooks.mjs",
|
|
16
|
-
"require": "./dist/hooks.cjs"
|
|
17
|
-
},
|
|
18
|
-
"./icons": {
|
|
19
|
-
"types": "./dist/icons.d.ts",
|
|
20
|
-
"import": "./dist/icons.mjs",
|
|
21
|
-
"require": "./dist/icons.cjs"
|
|
22
|
-
},
|
|
23
|
-
"./types": {
|
|
24
|
-
"types": "./dist/types.d.ts",
|
|
25
|
-
"import": "./dist/types.mjs",
|
|
26
|
-
"require": "./dist/types.cjs"
|
|
27
|
-
},
|
|
28
|
-
"./widgets": {
|
|
29
|
-
"types": "./dist/widgets.d.ts",
|
|
30
|
-
"import": "./dist/widgets.mjs",
|
|
31
|
-
"require": "./dist/widgets.cjs"
|
|
32
|
-
},
|
|
33
|
-
"./utils": {
|
|
34
|
-
"types": "./dist/utils.d.ts",
|
|
35
|
-
"import": "./dist/utils.mjs",
|
|
36
|
-
"require": "./dist/utils.cjs"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"files": [
|
|
40
|
-
"dist"
|
|
41
|
-
],
|
|
42
|
-
"scripts": {
|
|
43
|
-
"build": "tsup",
|
|
44
|
-
"test": "jest"
|
|
45
|
-
},
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"@headlessui/react": "^2.2.7",
|
|
48
|
-
"@types/react-dom": "^19.1.7",
|
|
49
|
-
"react-dom": "18.0.0",
|
|
50
|
-
"zod": "^3.24.2"
|
|
51
|
-
},
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@hookform/resolvers": "^4.1.3",
|
|
54
|
-
"@types/react": "18.0.0",
|
|
55
|
-
"i18next": "^24.2.3",
|
|
56
|
-
"i18next-browser-languagedetector": "^8.0.4",
|
|
57
|
-
"jest": "^29.7.0",
|
|
58
|
-
"moment": "^2.30.1",
|
|
59
|
-
"react": "18.0.0",
|
|
60
|
-
"react-datepicker": "^8.2.1",
|
|
61
|
-
"react-hook-form": "^7.54.2",
|
|
62
|
-
"react-i18next": "^15.4.1",
|
|
63
|
-
"react-redux": "^9.2.0",
|
|
64
|
-
"react-select": "^5.10.1",
|
|
65
|
-
"react-toastify": "^11.0.5",
|
|
66
|
-
"react-tooltip": "^5.28.0",
|
|
67
|
-
"tailwindcss": "3.4.3",
|
|
68
|
-
"tsup": "^8.0.0",
|
|
69
|
-
"typescript": "^5.8.2"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fctc/sme-widget-ui",
|
|
3
|
+
"version": "1.0.7",
|
|
4
|
+
"main": "dist/index.cjs",
|
|
5
|
+
"module": "dist/index.mjs",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./hooks": {
|
|
14
|
+
"types": "./dist/hooks.d.ts",
|
|
15
|
+
"import": "./dist/hooks.mjs",
|
|
16
|
+
"require": "./dist/hooks.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./icons": {
|
|
19
|
+
"types": "./dist/icons.d.ts",
|
|
20
|
+
"import": "./dist/icons.mjs",
|
|
21
|
+
"require": "./dist/icons.cjs"
|
|
22
|
+
},
|
|
23
|
+
"./types": {
|
|
24
|
+
"types": "./dist/types.d.ts",
|
|
25
|
+
"import": "./dist/types.mjs",
|
|
26
|
+
"require": "./dist/types.cjs"
|
|
27
|
+
},
|
|
28
|
+
"./widgets": {
|
|
29
|
+
"types": "./dist/widgets.d.ts",
|
|
30
|
+
"import": "./dist/widgets.mjs",
|
|
31
|
+
"require": "./dist/widgets.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./utils": {
|
|
34
|
+
"types": "./dist/utils.d.ts",
|
|
35
|
+
"import": "./dist/utils.mjs",
|
|
36
|
+
"require": "./dist/utils.cjs"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"dist"
|
|
41
|
+
],
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsup",
|
|
44
|
+
"test": "jest"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@headlessui/react": "^2.2.7",
|
|
48
|
+
"@types/react-dom": "^19.1.7",
|
|
49
|
+
"react-dom": "18.0.0",
|
|
50
|
+
"zod": "^3.24.2"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@hookform/resolvers": "^4.1.3",
|
|
54
|
+
"@types/react": "18.0.0",
|
|
55
|
+
"i18next": "^24.2.3",
|
|
56
|
+
"i18next-browser-languagedetector": "^8.0.4",
|
|
57
|
+
"jest": "^29.7.0",
|
|
58
|
+
"moment": "^2.30.1",
|
|
59
|
+
"react": "18.0.0",
|
|
60
|
+
"react-datepicker": "^8.2.1",
|
|
61
|
+
"react-hook-form": "^7.54.2",
|
|
62
|
+
"react-i18next": "^15.4.1",
|
|
63
|
+
"react-redux": "^9.2.0",
|
|
64
|
+
"react-select": "^5.10.1",
|
|
65
|
+
"react-toastify": "^11.0.5",
|
|
66
|
+
"react-tooltip": "^5.28.0",
|
|
67
|
+
"tailwindcss": "3.4.3",
|
|
68
|
+
"tsup": "^8.0.0",
|
|
69
|
+
"typescript": "^5.8.2"
|
|
70
|
+
}
|
|
71
|
+
}
|