@fctc/sme-widget-ui 1.0.6 → 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 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
@@ -18170,8 +18170,8 @@ var CharField = (props) => {
18170
18170
  disabled: readonly,
18171
18171
  placeholder,
18172
18172
  required: !invisible && required,
18173
- className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px] px-3 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content
18174
- ${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer border-[#f7f7f7] text-[#525866]"}
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]"}
18175
18175
  `
18176
18176
  }
18177
18177
  ),
@@ -32816,8 +32816,8 @@ var FloatField = (props) => {
32816
32816
  placeholder,
32817
32817
  required: !invisible && required,
32818
32818
  style: invisible ? { display: "none" } : {},
32819
- className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px] px-3 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content
32820
- ${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer border-[#f7f7f7] text-[#525866]"}
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]"}
32821
32821
  `
32822
32822
  }
32823
32823
  ),
@@ -32991,8 +32991,8 @@ var HtmlField = (props) => {
32991
32991
  ref: divRef,
32992
32992
  contentEditable: !readonly,
32993
32993
  onInput: handleInput,
32994
- className: `${!isForm ? "!bg-transparent focus-within:!border-none" : `rounded-[10px] border min-h-[44px] w-full ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 border-[#f7f7f7] bg-[#f7f7f7]
32995
- px-3 py-3 pl-2 font-normal text-[14px] gap-2 leading-[1.5]
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
32996
32996
  resize-none opacity-100 overflow-hidden
32997
32997
 
32998
32998
  `}`
@@ -33170,12 +33170,12 @@ var Many2ManyTagField = (props) => {
33170
33170
  onChange: handleChange,
33171
33171
  classNames: isEditTable ? {
33172
33172
  valueContainer: () => "overflow-unset !px-0",
33173
- control: () => `w-full flex ring-0 cursor-pointer outline-0 md:!min-w-[300px] max-w-[300px] !shadow-none py-2 px-3 text-sm text-[#525866] font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden border border-transparent border-b border-[#f7f7f7] hover:border-b-primary ${readonly ? "!cursor-not-allowed" : ""}`,
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" : ""}`,
33174
33174
  dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
33175
33175
  clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
33176
33176
  } : {
33177
33177
  valueContainer: () => "overflow-unset !m-0 !p-0",
33178
- control: ({ isFocused }) => `w-full flex ring-0 cursor-pointer outline-0 bg-[#f7f7f7] !shadow-none !rounded-[10px] px-3 py-[12px] text-sm text-[#525866] font-normal cursor-pointer gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content ${isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[#f7f7f7]"} ${readonly && "!cursor-not-allowed"}`,
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"}`,
33179
33179
  singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
33180
33180
  input: () => "!m-0 !p-0",
33181
33181
  dropdownIndicator: () => "!m-0 !p-0"
@@ -33619,14 +33619,14 @@ var SelectDropdownField = (props) => {
33619
33619
  {
33620
33620
  ...commonProps,
33621
33621
  classNames: isEditTable ? {
33622
- control: () => `w-full flex ring-0 cursor-pointer outline-0 !shadow-none py-[12px] px-3 text-sm text-[#525866] font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content border border-transparent border-b border-[#f7f7f7] hover:border-b-primary ${readonly ? "!cursor-not-allowed" : ""}`,
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" : ""}`,
33623
33623
  valueContainer: () => "!m-0 !p-0",
33624
33624
  singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
33625
33625
  input: () => "!m-0 !p-0",
33626
33626
  dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
33627
33627
  clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
33628
33628
  } : {
33629
- control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 !bg-[#f7f7f7] !shadow-none !rounded-[10px] px-3 py-[12px] text-sm text-[#525866] font-normal cursor-pointer gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content ${isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[#f7f7f7]"} `,
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)]"} `,
33630
33630
  valueContainer: () => "!m-0 !p-0",
33631
33631
  singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
33632
33632
  input: () => "!m-0 !p-0",
@@ -34261,7 +34261,10 @@ var Many2OneField = (props) => {
34261
34261
  name: name2 ?? "",
34262
34262
  control: methods?.control,
34263
34263
  rules: {
34264
- required: required ? { value: true, message: `${string} ${instance.t("must_required")}` } : false
34264
+ required: required ? {
34265
+ value: true,
34266
+ message: `${string} ${instance.t("must_required")}`
34267
+ } : false
34265
34268
  },
34266
34269
  render: ({ field, fieldState: { error: error2 } }) => {
34267
34270
  const currentValue = field?.value ? { value: field?.value?.id, label: field?.value?.display_name } : null;
@@ -34280,7 +34283,7 @@ var Many2OneField = (props) => {
34280
34283
  menuShouldScrollIntoView: false,
34281
34284
  options: options2,
34282
34285
  classNames: {
34283
- control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 bg-[#f7f7f7] !shadow-none !rounded-[10px] px-3 py-[12px] text-sm text-[#525866] font-normal cursor-pointer gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content ${isForm && (isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[#f7f7f7]")} ${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"}`,
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"}`,
34284
34287
  valueContainer: () => "!m-0 !p-0",
34285
34288
  singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
34286
34289
  input: () => "!m-0 !p-0",
package/dist/index.mjs CHANGED
@@ -18051,8 +18051,8 @@ var CharField = (props) => {
18051
18051
  disabled: readonly,
18052
18052
  placeholder,
18053
18053
  required: !invisible && required,
18054
- className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px] px-3 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content
18055
- ${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer border-[#f7f7f7] text-[#525866]"}
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]"}
18056
18056
  `
18057
18057
  }
18058
18058
  ),
@@ -32697,8 +32697,8 @@ var FloatField = (props) => {
32697
32697
  placeholder,
32698
32698
  required: !invisible && required,
32699
32699
  style: invisible ? { display: "none" } : {},
32700
- className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px] px-3 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content
32701
- ${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer border-[#f7f7f7] text-[#525866]"}
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]"}
32702
32702
  `
32703
32703
  }
32704
32704
  ),
@@ -32872,8 +32872,8 @@ var HtmlField = (props) => {
32872
32872
  ref: divRef,
32873
32873
  contentEditable: !readonly,
32874
32874
  onInput: handleInput,
32875
- className: `${!isForm ? "!bg-transparent focus-within:!border-none" : `rounded-[10px] border min-h-[44px] w-full ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 border-[#f7f7f7] bg-[#f7f7f7]
32876
- px-3 py-3 pl-2 font-normal text-[14px] gap-2 leading-[1.5]
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
32877
32877
  resize-none opacity-100 overflow-hidden
32878
32878
 
32879
32879
  `}`
@@ -33051,12 +33051,12 @@ var Many2ManyTagField = (props) => {
33051
33051
  onChange: handleChange,
33052
33052
  classNames: isEditTable ? {
33053
33053
  valueContainer: () => "overflow-unset !px-0",
33054
- control: () => `w-full flex ring-0 cursor-pointer outline-0 md:!min-w-[300px] max-w-[300px] !shadow-none py-2 px-3 text-sm text-[#525866] font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden border border-transparent border-b border-[#f7f7f7] hover:border-b-primary ${readonly ? "!cursor-not-allowed" : ""}`,
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" : ""}`,
33055
33055
  dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
33056
33056
  clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
33057
33057
  } : {
33058
33058
  valueContainer: () => "overflow-unset !m-0 !p-0",
33059
- control: ({ isFocused }) => `w-full flex ring-0 cursor-pointer outline-0 bg-[#f7f7f7] !shadow-none !rounded-[10px] px-3 py-[12px] text-sm text-[#525866] font-normal cursor-pointer gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content ${isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[#f7f7f7]"} ${readonly && "!cursor-not-allowed"}`,
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"}`,
33060
33060
  singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
33061
33061
  input: () => "!m-0 !p-0",
33062
33062
  dropdownIndicator: () => "!m-0 !p-0"
@@ -33500,14 +33500,14 @@ var SelectDropdownField = (props) => {
33500
33500
  {
33501
33501
  ...commonProps,
33502
33502
  classNames: isEditTable ? {
33503
- control: () => `w-full flex ring-0 cursor-pointer outline-0 !shadow-none py-[12px] px-3 text-sm text-[#525866] font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content border border-transparent border-b border-[#f7f7f7] hover:border-b-primary ${readonly ? "!cursor-not-allowed" : ""}`,
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" : ""}`,
33504
33504
  valueContainer: () => "!m-0 !p-0",
33505
33505
  singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
33506
33506
  input: () => "!m-0 !p-0",
33507
33507
  dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
33508
33508
  clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
33509
33509
  } : {
33510
- control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 !bg-[#f7f7f7] !shadow-none !rounded-[10px] px-3 py-[12px] text-sm text-[#525866] font-normal cursor-pointer gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content ${isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[#f7f7f7]"} `,
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)]"} `,
33511
33511
  valueContainer: () => "!m-0 !p-0",
33512
33512
  singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
33513
33513
  input: () => "!m-0 !p-0",
@@ -34142,7 +34142,10 @@ var Many2OneField = (props) => {
34142
34142
  name: name2 ?? "",
34143
34143
  control: methods?.control,
34144
34144
  rules: {
34145
- required: required ? { value: true, message: `${string} ${instance.t("must_required")}` } : false
34145
+ required: required ? {
34146
+ value: true,
34147
+ message: `${string} ${instance.t("must_required")}`
34148
+ } : false
34146
34149
  },
34147
34150
  render: ({ field, fieldState: { error: error2 } }) => {
34148
34151
  const currentValue = field?.value ? { value: field?.value?.id, label: field?.value?.display_name } : null;
@@ -34161,7 +34164,7 @@ var Many2OneField = (props) => {
34161
34164
  menuShouldScrollIntoView: false,
34162
34165
  options: options2,
34163
34166
  classNames: {
34164
- control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 bg-[#f7f7f7] !shadow-none !rounded-[10px] px-3 py-[12px] text-sm text-[#525866] font-normal cursor-pointer gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content ${isForm && (isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[#f7f7f7]")} ${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"}`,
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"}`,
34165
34168
  valueContainer: () => "!m-0 !p-0",
34166
34169
  singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
34167
34170
  input: () => "!m-0 !p-0",
package/dist/widgets.js CHANGED
@@ -17815,8 +17815,8 @@ var CharField = (props) => {
17815
17815
  disabled: readonly,
17816
17816
  placeholder,
17817
17817
  required: !invisible && required,
17818
- className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px] px-3 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content
17819
- ${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer border-[#f7f7f7] text-[#525866]"}
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]"}
17820
17820
  `
17821
17821
  }
17822
17822
  ),
@@ -32461,8 +32461,8 @@ var FloatField = (props) => {
32461
32461
  placeholder,
32462
32462
  required: !invisible && required,
32463
32463
  style: invisible ? { display: "none" } : {},
32464
- className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px] px-3 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content
32465
- ${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer border-[#f7f7f7] text-[#525866]"}
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]"}
32466
32466
  `
32467
32467
  }
32468
32468
  ),
@@ -32636,8 +32636,8 @@ var HtmlField = (props) => {
32636
32636
  ref: divRef,
32637
32637
  contentEditable: !readonly,
32638
32638
  onInput: handleInput,
32639
- className: `${!isForm ? "!bg-transparent focus-within:!border-none" : `rounded-[10px] border min-h-[44px] w-full ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 border-[#f7f7f7] bg-[#f7f7f7]
32640
- px-3 py-3 pl-2 font-normal text-[14px] gap-2 leading-[1.5]
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
32641
32641
  resize-none opacity-100 overflow-hidden
32642
32642
 
32643
32643
  `}`
@@ -32815,12 +32815,12 @@ var Many2ManyTagField = (props) => {
32815
32815
  onChange: handleChange,
32816
32816
  classNames: isEditTable ? {
32817
32817
  valueContainer: () => "overflow-unset !px-0",
32818
- control: () => `w-full flex ring-0 cursor-pointer outline-0 md:!min-w-[300px] max-w-[300px] !shadow-none py-2 px-3 text-sm text-[#525866] font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden border border-transparent border-b border-[#f7f7f7] hover:border-b-primary ${readonly ? "!cursor-not-allowed" : ""}`,
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" : ""}`,
32819
32819
  dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
32820
32820
  clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
32821
32821
  } : {
32822
32822
  valueContainer: () => "overflow-unset !m-0 !p-0",
32823
- control: ({ isFocused }) => `w-full flex ring-0 cursor-pointer outline-0 bg-[#f7f7f7] !shadow-none !rounded-[10px] px-3 py-[12px] text-sm text-[#525866] font-normal cursor-pointer gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content ${isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[#f7f7f7]"} ${readonly && "!cursor-not-allowed"}`,
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"}`,
32824
32824
  singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
32825
32825
  input: () => "!m-0 !p-0",
32826
32826
  dropdownIndicator: () => "!m-0 !p-0"
@@ -33264,14 +33264,14 @@ var SelectDropdownField = (props) => {
33264
33264
  {
33265
33265
  ...commonProps,
33266
33266
  classNames: isEditTable ? {
33267
- control: () => `w-full flex ring-0 cursor-pointer outline-0 !shadow-none py-[12px] px-3 text-sm text-[#525866] font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content border border-transparent border-b border-[#f7f7f7] hover:border-b-primary ${readonly ? "!cursor-not-allowed" : ""}`,
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" : ""}`,
33268
33268
  valueContainer: () => "!m-0 !p-0",
33269
33269
  singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
33270
33270
  input: () => "!m-0 !p-0",
33271
33271
  dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
33272
33272
  clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
33273
33273
  } : {
33274
- control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 !bg-[#f7f7f7] !shadow-none !rounded-[10px] px-3 py-[12px] text-sm text-[#525866] font-normal cursor-pointer gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content ${isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[#f7f7f7]"} `,
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)]"} `,
33275
33275
  valueContainer: () => "!m-0 !p-0",
33276
33276
  singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
33277
33277
  input: () => "!m-0 !p-0",
@@ -33906,7 +33906,10 @@ var Many2OneField = (props) => {
33906
33906
  name: name2 ?? "",
33907
33907
  control: methods?.control,
33908
33908
  rules: {
33909
- required: required ? { value: true, message: `${string} ${instance.t("must_required")}` } : false
33909
+ required: required ? {
33910
+ value: true,
33911
+ message: `${string} ${instance.t("must_required")}`
33912
+ } : false
33910
33913
  },
33911
33914
  render: ({ field, fieldState: { error: error2 } }) => {
33912
33915
  const currentValue = field?.value ? { value: field?.value?.id, label: field?.value?.display_name } : null;
@@ -33925,7 +33928,7 @@ var Many2OneField = (props) => {
33925
33928
  menuShouldScrollIntoView: false,
33926
33929
  options: options2,
33927
33930
  classNames: {
33928
- control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 bg-[#f7f7f7] !shadow-none !rounded-[10px] px-3 py-[12px] text-sm text-[#525866] font-normal cursor-pointer gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content ${isForm && (isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[#f7f7f7]")} ${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"}`,
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"}`,
33929
33932
  valueContainer: () => "!m-0 !p-0",
33930
33933
  singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
33931
33934
  input: () => "!m-0 !p-0",
package/dist/widgets.mjs CHANGED
@@ -17753,8 +17753,8 @@ var CharField = (props) => {
17753
17753
  disabled: readonly,
17754
17754
  placeholder,
17755
17755
  required: !invisible && required,
17756
- className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px] px-3 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content
17757
- ${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer border-[#f7f7f7] text-[#525866]"}
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]"}
17758
17758
  `
17759
17759
  }
17760
17760
  ),
@@ -32399,8 +32399,8 @@ var FloatField = (props) => {
32399
32399
  placeholder,
32400
32400
  required: !invisible && required,
32401
32401
  style: invisible ? { display: "none" } : {},
32402
- className: `w-full min-h-[44px] ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px] px-3 py-[12px] text-sm font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content
32403
- ${readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer border-[#f7f7f7] text-[#525866]"}
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]"}
32404
32404
  `
32405
32405
  }
32406
32406
  ),
@@ -32574,8 +32574,8 @@ var HtmlField = (props) => {
32574
32574
  ref: divRef,
32575
32575
  contentEditable: !readonly,
32576
32576
  onInput: handleInput,
32577
- className: `${!isForm ? "!bg-transparent focus-within:!border-none" : `rounded-[10px] border min-h-[44px] w-full ring-0 focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 border-[#f7f7f7] bg-[#f7f7f7]
32578
- px-3 py-3 pl-2 font-normal text-[14px] gap-2 leading-[1.5]
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
32579
32579
  resize-none opacity-100 overflow-hidden
32580
32580
 
32581
32581
  `}`
@@ -32753,12 +32753,12 @@ var Many2ManyTagField = (props) => {
32753
32753
  onChange: handleChange,
32754
32754
  classNames: isEditTable ? {
32755
32755
  valueContainer: () => "overflow-unset !px-0",
32756
- control: () => `w-full flex ring-0 cursor-pointer outline-0 md:!min-w-[300px] max-w-[300px] !shadow-none py-2 px-3 text-sm text-[#525866] font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden border border-transparent border-b border-[#f7f7f7] hover:border-b-primary ${readonly ? "!cursor-not-allowed" : ""}`,
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" : ""}`,
32757
32757
  dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
32758
32758
  clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
32759
32759
  } : {
32760
32760
  valueContainer: () => "overflow-unset !m-0 !p-0",
32761
- control: ({ isFocused }) => `w-full flex ring-0 cursor-pointer outline-0 bg-[#f7f7f7] !shadow-none !rounded-[10px] px-3 py-[12px] text-sm text-[#525866] font-normal cursor-pointer gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content ${isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[#f7f7f7]"} ${readonly && "!cursor-not-allowed"}`,
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"}`,
32762
32762
  singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
32763
32763
  input: () => "!m-0 !p-0",
32764
32764
  dropdownIndicator: () => "!m-0 !p-0"
@@ -33202,14 +33202,14 @@ var SelectDropdownField = (props) => {
33202
33202
  {
33203
33203
  ...commonProps,
33204
33204
  classNames: isEditTable ? {
33205
- control: () => `w-full flex ring-0 cursor-pointer outline-0 !shadow-none py-[12px] px-3 text-sm text-[#525866] font-normal gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content border border-transparent border-b border-[#f7f7f7] hover:border-b-primary ${readonly ? "!cursor-not-allowed" : ""}`,
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" : ""}`,
33206
33206
  valueContainer: () => "!m-0 !p-0",
33207
33207
  singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
33208
33208
  input: () => "!m-0 !p-0",
33209
33209
  dropdownIndicator: () => "invisible group-hover:visible !m-0 !p-0",
33210
33210
  clearIndicator: () => "invisible group-hover:visible !m-0 !p-0"
33211
33211
  } : {
33212
- control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 !bg-[#f7f7f7] !shadow-none !rounded-[10px] px-3 py-[12px] text-sm text-[#525866] font-normal cursor-pointer gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content ${isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[#f7f7f7]"} `,
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)]"} `,
33213
33213
  valueContainer: () => "!m-0 !p-0",
33214
33214
  singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
33215
33215
  input: () => "!m-0 !p-0",
@@ -33844,7 +33844,10 @@ var Many2OneField = (props) => {
33844
33844
  name: name2 ?? "",
33845
33845
  control: methods?.control,
33846
33846
  rules: {
33847
- required: required ? { value: true, message: `${string} ${instance.t("must_required")}` } : false
33847
+ required: required ? {
33848
+ value: true,
33849
+ message: `${string} ${instance.t("must_required")}`
33850
+ } : false
33848
33851
  },
33849
33852
  render: ({ field, fieldState: { error: error2 } }) => {
33850
33853
  const currentValue = field?.value ? { value: field?.value?.id, label: field?.value?.display_name } : null;
@@ -33863,7 +33866,7 @@ var Many2OneField = (props) => {
33863
33866
  menuShouldScrollIntoView: false,
33864
33867
  options: options2,
33865
33868
  classNames: {
33866
- control: ({ isFocused }) => `w-full flex min-h-[44px] ring-0 cursor-pointer outline-0 bg-[#f7f7f7] !shadow-none !rounded-[10px] px-3 py-[12px] text-sm text-[#525866] font-normal cursor-pointer gap-2 opacity-100 leading-[1.5] resize-none overflow-hidden field-sizing-content ${isForm && (isFocused ? "!border-[1px] border-primary !ring-0 outline-none" : "border border-[#f7f7f7]")} ${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"}`,
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"}`,
33867
33870
  valueContainer: () => "!m-0 !p-0",
33868
33871
  singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
33869
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.6",
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
+ }