@orangesix/react 2.4.0-beta.3 → 2.4.0

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.
Files changed (150) hide show
  1. package/accordion/@types/index.d.ts +55 -55
  2. package/accordion/accordion/index.esm.js.map +1 -1
  3. package/api/@types/css.d.ts +91 -91
  4. package/api/@types/field.d.ts +161 -159
  5. package/api/@types/index.d.ts +29 -27
  6. package/api/input/index.esm.js.map +1 -1
  7. package/autocomplete/@types/index.d.ts +69 -67
  8. package/autocomplete/autocomplete/index.esm.js.map +1 -1
  9. package/autocomplete/core/core/index.esm.js.map +1 -1
  10. package/autocomplete/core/event/index.esm.js.map +1 -1
  11. package/box/@types/index.d.ts +28 -26
  12. package/box/_box.scss +56 -56
  13. package/box/box/index.esm.js.map +1 -1
  14. package/button/@types/index.d.ts +72 -70
  15. package/button/button/index.esm.js.map +1 -1
  16. package/button/package.json +5 -5
  17. package/calendar/@types/index.d.ts +27 -25
  18. package/calendar/calendar/index.esm.js.map +1 -1
  19. package/calendar/core/controlled/index.esm.js.map +1 -1
  20. package/calendar/core/handle/index.esm.js.map +1 -1
  21. package/calendar/core/hookForm/index.esm.js.map +1 -1
  22. package/calendar/core/locale/index.esm.js.map +1 -1
  23. package/calendar/package.json +5 -5
  24. package/editor/@types/index.d.ts +45 -43
  25. package/editor/_editor.scss +106 -106
  26. package/editor/const/index.esm.js.map +1 -1
  27. package/editor/core/bold/index.esm.js.map +1 -1
  28. package/editor/core/bulletlist/index.esm.js.map +1 -1
  29. package/editor/core/code/index.esm.js.map +1 -1
  30. package/editor/core/color/index.esm.js.map +1 -1
  31. package/editor/core/highlight/index.esm.js.map +1 -1
  32. package/editor/core/image/index.esm.js.map +1 -1
  33. package/editor/core/index/index.esm.js.map +1 -1
  34. package/editor/core/italic/index.esm.js.map +1 -1
  35. package/editor/core/link/index.esm.js.map +1 -1
  36. package/editor/core/orderlist/index.esm.js.map +1 -1
  37. package/editor/core/strike/index.esm.js.map +1 -1
  38. package/editor/core/text/index.esm.js.map +1 -1
  39. package/editor/core/underline/index.esm.js.map +1 -1
  40. package/editor/editor/index.esm.js.map +1 -1
  41. package/input/@types/index.d.ts +109 -107
  42. package/input/core/controlled/index.esm.js.map +1 -1
  43. package/input/core/hookForm/index.esm.js.map +1 -1
  44. package/input/input/index.esm.js.map +1 -1
  45. package/inputfilter/@types/autocomplete.d.ts +20 -20
  46. package/inputfilter/@types/index.d.ts +42 -40
  47. package/inputfilter/_inputfilter.scss +58 -58
  48. package/inputfilter/const/index.esm.js.map +1 -1
  49. package/inputfilter/core/autocomplete/index.esm.js.map +1 -1
  50. package/inputfilter/core/date/index.esm.js.map +1 -1
  51. package/inputfilter/core/number/index.esm.js.map +1 -1
  52. package/inputfilter/core/text/index.esm.js.map +1 -1
  53. package/inputfilter/function/handle/index.esm.js.map +1 -1
  54. package/inputfilter/function/validate/index.esm.js.map +1 -1
  55. package/inputfilter/inputfilter/index.esm.js.map +1 -1
  56. package/inputfilter/legend/index.esm.js.map +1 -1
  57. package/lightbox/@types/index.d.ts +12 -10
  58. package/lightbox/_lightbox.scss +6 -6
  59. package/lightbox/core/handle/index.esm.js.map +1 -1
  60. package/lightbox/lightbox/index.esm.js.map +1 -1
  61. package/lightbox/package.json +5 -5
  62. package/loading/@types/index.d.ts +44 -42
  63. package/loading/_loading.scss +10 -10
  64. package/loading/loading/index.esm.js.map +1 -1
  65. package/loading/package.json +5 -5
  66. package/message/@types/index.d.ts +102 -102
  67. package/message/core/modal/index.esm.js.map +1 -1
  68. package/message/message/index.esm.js.map +1 -1
  69. package/message/package.json +5 -5
  70. package/modal/@types/index.d.ts +63 -61
  71. package/modal/core/core/index.esm.js.map +1 -1
  72. package/modal/modal/index.esm.js.map +1 -1
  73. package/multiselect/@types/index.d.ts +77 -75
  74. package/multiselect/core/controlled/index.esm.js.map +1 -1
  75. package/multiselect/core/hookForm/index.esm.js.map +1 -1
  76. package/multiselect/multiselect/index.esm.js.map +1 -1
  77. package/multiselect/package.json +5 -5
  78. package/package.json +15 -15
  79. package/pdf/@types/index.d.ts +12 -10
  80. package/pdf/package.json +5 -5
  81. package/pdf/pdf/index.esm.js.map +1 -1
  82. package/pdf/style/pdf.css +53 -53
  83. package/picklist/@types/index.d.ts +41 -40
  84. package/picklist/core/core/index.esm.js.map +1 -1
  85. package/picklist/picklist/index.esm.js.map +1 -1
  86. package/picklist/types.d.ts +35 -33
  87. package/radio/@types/index.d.ts +41 -39
  88. package/radio/core/controlled/index.esm.js.map +1 -1
  89. package/radio/core/hookForm/index.esm.js.map +1 -1
  90. package/radio/radio/index.esm.js.map +1 -1
  91. package/select/@types/index.d.ts +46 -44
  92. package/select/core/controlled/index.esm.js.map +1 -1
  93. package/select/core/hookForm/index.esm.js.map +1 -1
  94. package/select/select/index.esm.js.map +1 -1
  95. package/style/scss/_variables.scss +929 -929
  96. package/style/scss/bootstrap.scss +33 -33
  97. package/style/scss/core/_reset.scss +75 -75
  98. package/switch/@types/index.d.ts +22 -20
  99. package/switch/core/controlled/index.esm.js.map +1 -1
  100. package/switch/core/hookForm/index.esm.js.map +1 -1
  101. package/switch/switch/index.esm.js.map +1 -1
  102. package/table/@types/click.d.ts +7 -5
  103. package/table/@types/column.d.ts +58 -56
  104. package/table/@types/edit.d.ts +5 -5
  105. package/table/@types/expand.d.ts +32 -32
  106. package/table/@types/group.d.ts +20 -20
  107. package/table/@types/index.d.ts +63 -61
  108. package/table/@types/pagination.d.ts +26 -26
  109. package/table/@types/reorder.d.ts +16 -16
  110. package/table/@types/selection.d.ts +15 -15
  111. package/table/@types/sort.d.ts +8 -6
  112. package/table/@types/style.d.ts +20 -20
  113. package/table/@types/template.d.ts +22 -20
  114. package/table/core/click/index.esm.js.map +1 -1
  115. package/table/core/core/index.esm.js.map +1 -1
  116. package/table/core/expand/index.esm.js.map +1 -1
  117. package/table/core/group/index.esm.js.map +1 -1
  118. package/table/core/pagination/index.esm.js.map +1 -1
  119. package/table/core/reorder/index.esm.js.map +1 -1
  120. package/table/core/selection/index.esm.js.map +1 -1
  121. package/table/core/sort/index.esm.js.map +1 -1
  122. package/table/styled/index.esm.js.map +1 -1
  123. package/table/table/index.esm.js.map +1 -1
  124. package/tablepivot/@types/index.d.ts +50 -50
  125. package/tablepivot/@types/webdatarocks.d.ts +166 -166
  126. package/tablepivot/_tablepivot.scss +84 -84
  127. package/tablepivot/function/handle/index.esm.js.map +1 -1
  128. package/tablepivot/lang/pt-br/index.esm.js.map +1 -1
  129. package/tablepivot/tablepivot/index.esm.js.map +1 -1
  130. package/tabview/@types/index.d.ts +61 -59
  131. package/tabview/_tabview.scss +25 -25
  132. package/tabview/tabview/index.esm.js.map +1 -1
  133. package/textarea/@types/index.d.ts +18 -16
  134. package/textarea/core/controlled/index.esm.js.map +1 -1
  135. package/textarea/core/hookForm/index.esm.js.map +1 -1
  136. package/textarea/textarea/index.esm.js.map +1 -1
  137. package/tooltip/@types/index.d.ts +59 -57
  138. package/tooltip/core/handle/index.esm.js.map +1 -1
  139. package/tooltip/package.json +5 -5
  140. package/tooltip/tooltip/index.esm.js.map +1 -1
  141. package/utils/@types/index.d.ts +2 -2
  142. package/utils/@types/message.d.ts +18 -16
  143. package/utils/@types/request.d.ts +22 -22
  144. package/utils/@types/response.d.ts +55 -55
  145. package/utils/const/index.esm.js.map +1 -1
  146. package/utils/handle/index.esm.js.map +1 -1
  147. package/utils/helper/index.esm.js.map +1 -1
  148. package/utils/message/index.esm.js.map +1 -1
  149. package/utils/request/index.esm.js.map +1 -1
  150. package/utils/response/index.esm.js.map +1 -1
@@ -1,34 +1,34 @@
1
- $primaryLightColor: rgba(38, 143, 255, 0.5) !default;
2
- $primaryColor: #007bff !default;
3
- $primaryDarkColor: #0069d9 !default;
4
- $primaryDarkerColor: #0062cc !default;
5
- $primaryTextColor: #ffffff !default;
6
-
7
- $highlightBg: $primaryColor !default;
8
- $highlightTextColor: $primaryTextColor !default;
9
- $highlightFocusBg: darken($primaryColor, 8%) !default;
10
-
11
- @import "variables";
12
- @import "components/root";
13
-
14
- //Components
15
- @import "../../box/box";
16
- @import "../../editor/editor";
17
- @import "../../loading/loading";
18
- @import "../../tabview/tabview";
19
- @import "../../lightbox/lightbox";
20
- @import "../../tablepivot/tablepivot";
21
- @import "../../inputfilter/inputfilter";
22
-
23
- // Reboot - Boostrap 5.3.3
24
- ol,
25
- ul {
26
- padding-left: 0 !important;
27
- }
28
-
29
- ol,
30
- ul,
31
- dl {
32
- margin-top: 0;
33
- margin-bottom: 0 !important;
1
+ $primaryLightColor: rgba(38, 143, 255, 0.5) !default;
2
+ $primaryColor: #007bff !default;
3
+ $primaryDarkColor: #0069d9 !default;
4
+ $primaryDarkerColor: #0062cc !default;
5
+ $primaryTextColor: #ffffff !default;
6
+
7
+ $highlightBg: $primaryColor !default;
8
+ $highlightTextColor: $primaryTextColor !default;
9
+ $highlightFocusBg: darken($primaryColor, 8%) !default;
10
+
11
+ @import "variables";
12
+ @import "components/root";
13
+
14
+ //Components
15
+ @import "../../box/box";
16
+ @import "../../editor/editor";
17
+ @import "../../loading/loading";
18
+ @import "../../tabview/tabview";
19
+ @import "../../lightbox/lightbox";
20
+ @import "../../tablepivot/tablepivot";
21
+ @import "../../inputfilter/inputfilter";
22
+
23
+ // Reboot - Boostrap 5.3.3
24
+ ol,
25
+ ul {
26
+ padding-left: 0 !important;
27
+ }
28
+
29
+ ol,
30
+ ul,
31
+ dl {
32
+ margin-top: 0;
33
+ margin-bottom: 0 !important;
34
34
  }
@@ -1,76 +1,76 @@
1
- * {
2
- box-sizing: border-box;
3
- }
4
-
5
- .p-component {
6
- font-family: var(--font-family);
7
- font-feature-settings: var(--font-feature-settings, normal);
8
- font-size: $fontSize;
9
- font-weight: $fontWeight;
10
- }
11
-
12
- .p-component-overlay {
13
- background-color: $maskBg;
14
- transition-duration: $transitionDuration;
15
- }
16
-
17
- .p-disabled, .p-component:disabled {
18
- opacity: $disabledOpacity;
19
- background-color: $disabledBackground !important;
20
- }
21
-
22
- .p-error {
23
- color: $errorColor;
24
- }
25
-
26
- .p-text-secondary {
27
- color: $textSecondaryColor;
28
- }
29
-
30
- .pi {
31
- font-size: $primeIconFontSize;
32
- }
33
-
34
- .p-icon {
35
- width: $primeIconFontSize;
36
- height: $primeIconFontSize;
37
- }
38
-
39
- .p-link {
40
- font-family: var(--font-family);
41
- font-feature-settings: var(--font-feature-settings, normal);
42
- font-size: $fontSize;
43
- border-radius: $borderRadius;
44
-
45
- &:focus-visible {
46
- @include focused();
47
- }
48
- }
49
-
50
- .p-component-overlay-enter {
51
- animation: p-component-overlay-enter-animation 150ms forwards;
52
- }
53
-
54
- .p-component-overlay-leave {
55
- animation: p-component-overlay-leave-animation 150ms forwards;
56
- }
57
-
58
- .p-component-overlay {
59
- @keyframes p-component-overlay-enter-animation {
60
- from {
61
- background-color: transparent;
62
- }
63
- to {
64
- background-color: var(--maskbg);
65
- }
66
- }
67
-
68
- @keyframes p-component-overlay-leave-animation {
69
- from {
70
- background-color: var(--maskbg);
71
- }
72
- to {
73
- background-color: transparent;
74
- }
75
- }
1
+ * {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ .p-component {
6
+ font-family: var(--font-family);
7
+ font-feature-settings: var(--font-feature-settings, normal);
8
+ font-size: $fontSize;
9
+ font-weight: $fontWeight;
10
+ }
11
+
12
+ .p-component-overlay {
13
+ background-color: $maskBg;
14
+ transition-duration: $transitionDuration;
15
+ }
16
+
17
+ .p-disabled, .p-component:disabled {
18
+ opacity: $disabledOpacity;
19
+ background-color: $disabledBackground !important;
20
+ }
21
+
22
+ .p-error {
23
+ color: $errorColor;
24
+ }
25
+
26
+ .p-text-secondary {
27
+ color: $textSecondaryColor;
28
+ }
29
+
30
+ .pi {
31
+ font-size: $primeIconFontSize;
32
+ }
33
+
34
+ .p-icon {
35
+ width: $primeIconFontSize;
36
+ height: $primeIconFontSize;
37
+ }
38
+
39
+ .p-link {
40
+ font-family: var(--font-family);
41
+ font-feature-settings: var(--font-feature-settings, normal);
42
+ font-size: $fontSize;
43
+ border-radius: $borderRadius;
44
+
45
+ &:focus-visible {
46
+ @include focused();
47
+ }
48
+ }
49
+
50
+ .p-component-overlay-enter {
51
+ animation: p-component-overlay-enter-animation 150ms forwards;
52
+ }
53
+
54
+ .p-component-overlay-leave {
55
+ animation: p-component-overlay-leave-animation 150ms forwards;
56
+ }
57
+
58
+ .p-component-overlay {
59
+ @keyframes p-component-overlay-enter-animation {
60
+ from {
61
+ background-color: transparent;
62
+ }
63
+ to {
64
+ background-color: var(--maskbg);
65
+ }
66
+ }
67
+
68
+ @keyframes p-component-overlay-leave-animation {
69
+ from {
70
+ background-color: var(--maskbg);
71
+ }
72
+ to {
73
+ background-color: transparent;
74
+ }
75
+ }
76
76
  }
@@ -1,21 +1,23 @@
1
1
  import { ApiComponentProps, ApiFieldModeProps, ApiFieldHookFormProps, ApiFieldComponentProps, ApiFieldControlledProps } from '../../api';
2
- interface SwitchBaseProps extends ApiComponentProps, ApiFieldComponentProps {
3
- /**
4
- * Define a legenda do campo
5
- */
6
- legend?: string
7
-
8
- /**
9
- * Define o valor quando switch for true
10
- */
11
- valueTrue?: string
12
-
13
- /**
14
- * Define o valor quando switch for False
15
- */
16
- valueFalse?: string
17
- }
18
-
19
- export type SwitchProps<T extends ApiFieldModeProps> = T extends "Controlled"
20
- ? SwitchBaseProps & ApiFieldControlledProps
21
- : SwitchBaseProps & ApiFieldHookFormProps;
2
+
3
+
4
+ interface SwitchBaseProps extends ApiComponentProps, ApiFieldComponentProps {
5
+ /**
6
+ * Define a legenda do campo
7
+ */
8
+ legend?: string
9
+
10
+ /**
11
+ * Define o valor quando switch for true
12
+ */
13
+ valueTrue?: string
14
+
15
+ /**
16
+ * Define o valor quando switch for False
17
+ */
18
+ valueFalse?: string
19
+ }
20
+
21
+ export type SwitchProps<T extends ApiFieldModeProps> = T extends "Controlled"
22
+ ? SwitchBaseProps & ApiFieldControlledProps
23
+ : SwitchBaseProps & ApiFieldHookFormProps;
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/switch/core/controlled.tsx"],"sourcesContent":["import React from \"react\";\nimport { SwitchProps } from \"..\";\nimport { InputFeedback } from \"../../api\";\nimport { InputSwitch } from \"primereact/inputswitch\";\n\n/**\n * Core - `SwitchControlled`\n * Define o componente controlled\n */\nexport function SwitchControlled({ ...props }: SwitchProps<\"Controlled\">) {\n /*\n |------------------------------------------\n | render() - Renderização do componente\n |------------------------------------------\n */\n return <>\n <div className=\"w-100 d-flex\">\n <InputSwitch checked={props.value}\n disabled={props.disabled}\n falseValue={props.valueFalse ?? false}\n id={props.id}\n name={props.name}\n trueValue={props.valueTrue ?? true}\n onChange={event => {\n if (props.onChange) {\n props.onChange(event.target.value);\n }\n }}/>\n {props.legend && <p className=\"ms-2 p-inputswitch-legend\">{props.legend}</p>}\n </div>\n <InputFeedback {...props}/>\n </>;\n}"],"mappings":";;;;;;AASA,SAAgB,EAAiB,EAAE,GAAG,KAAoC;CAMtE,OAAO,kBAAA,GAAA,EAAA,UAAA,CACH,kBAAC,OAAD;EAAK,WAAU;YAAf,CACI,kBAAC,GAAD;GAAa,SAAS,EAAM;GACxB,UAAU,EAAM;GAChB,YAAY,EAAM,cAAc;GAChC,IAAI,EAAM;GACV,MAAM,EAAM;GACZ,WAAW,EAAM,aAAa;GAC9B,WAAU,MAAS;IACf,AAAI,EAAM,YACN,EAAM,SAAS,EAAM,OAAO,MAAM;;GAEtC,CAAA,EACP,EAAM,UAAU,kBAAC,KAAD;GAAG,WAAU;aAA6B,EAAM;GAAW,CAAA,CAC1E;KACN,kBAAC,GAAD,EAAe,GAAI,GAAQ,CAAA,CAC5B,EAAA,CAAA"}
1
+ {"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/switch/core/controlled.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { SwitchProps } from \"..\";\r\nimport { InputFeedback } from \"../../api\";\r\nimport { InputSwitch } from \"primereact/inputswitch\";\r\n\r\n/**\r\n * Core - `SwitchControlled`\r\n * Define o componente controlled\r\n */\r\nexport function SwitchControlled({ ...props }: SwitchProps<\"Controlled\">) {\r\n /*\r\n |------------------------------------------\r\n | render() - Renderização do componente\r\n |------------------------------------------\r\n */\r\n return <>\r\n <div className=\"w-100 d-flex\">\r\n <InputSwitch checked={props.value}\r\n disabled={props.disabled}\r\n falseValue={props.valueFalse ?? false}\r\n id={props.id}\r\n name={props.name}\r\n trueValue={props.valueTrue ?? true}\r\n onChange={event => {\r\n if (props.onChange) {\r\n props.onChange(event.target.value);\r\n }\r\n }}/>\r\n {props.legend && <p className=\"ms-2 p-inputswitch-legend\">{props.legend}</p>}\r\n </div>\r\n <InputFeedback {...props}/>\r\n </>;\r\n}"],"mappings":";;;;;;AASA,SAAgB,EAAiB,EAAE,GAAG,KAAoC;CAMtE,OAAO,kBAAA,GAAA,EAAA,UAAA,CACH,kBAAC,OAAD;EAAK,WAAU;YAAf,CACI,kBAAC,GAAD;GAAa,SAAS,EAAM;GACxB,UAAU,EAAM;GAChB,YAAY,EAAM,cAAc;GAChC,IAAI,EAAM;GACV,MAAM,EAAM;GACZ,WAAW,EAAM,aAAa;GAC9B,WAAU,MAAS;IACf,AAAI,EAAM,YACN,EAAM,SAAS,EAAM,OAAO,KAAK;GAEzC;EAAG,CAAA,GACN,EAAM,UAAU,kBAAC,KAAD;GAAG,WAAU;aAA6B,EAAM;EAAU,CAAA,CAC1E;KACL,kBAAC,GAAD,EAAe,GAAI,EAAO,CAAA,CAC5B,EAAA,CAAA;AACN"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/switch/core/hookForm.tsx"],"sourcesContent":["import React from \"react\";\nimport { SwitchProps } from \"..\";\nimport { InputFeedback } from \"../../api\";\nimport { Controller } from \"react-hook-form\";\nimport { InputSwitch } from \"primereact/inputswitch\";\n\n/**\n * Core - `SwitchHookForm`\n * Define o componente utilizando o HookForm\n */\nexport function SwitchHookForm({ ...props }: SwitchProps<\"HookForm\">) {\n /*\n |------------------------------------------\n | render() - Renderização do componente\n |------------------------------------------\n */\n return (\n <Controller render={({ field, formState: { errors } }) => {\n return <>\n <div className=\"w-100 d-flex\">\n <InputSwitch checked={field.value}\n disabled={props.disabled}\n falseValue={props.valueFalse ?? false}\n id={props.id}\n name={field.name}\n trueValue={props.valueTrue ?? true}\n onChange={event => field.onChange(event)}/>\n {props.legend && <p className=\"ms-2 p-inputswitch-legend\">{props.legend}</p>}\n </div>\n <InputFeedback {...props}\n errors={errors}/>\n </>;\n }}\n control={props.control}\n name={props.name}/>\n );\n}"],"mappings":";;;;;;;AAUA,SAAgB,EAAe,EAAE,GAAG,KAAkC;CAMlE,OACI,kBAAC,GAAD;EAAY,SAAS,EAAE,UAAO,WAAW,EAAE,kBAChC,kBAAA,GAAA,EAAA,UAAA,CACH,kBAAC,OAAD;GAAK,WAAU;aAAf,CACI,kBAAC,GAAD;IAAa,SAAS,EAAM;IACxB,UAAU,EAAM;IAChB,YAAY,EAAM,cAAc;IAChC,IAAI,EAAM;IACV,MAAM,EAAM;IACZ,WAAW,EAAM,aAAa;IAC9B,WAAU,MAAS,EAAM,SAAS,EAAM;IAAG,CAAA,EAC9C,EAAM,UAAU,kBAAC,KAAD;IAAG,WAAU;cAA6B,EAAM;IAAW,CAAA,CAC1E;MACN,kBAAC,GAAD;GAAe,GAAI;GACP;GAAS,CAAA,CACtB,EAAA,CAAA;EAEP,SAAS,EAAM;EACf,MAAM,EAAM;EAAO,CAAA"}
1
+ {"version":3,"file":"index.esm.js","names":[],"sources":["../../../../src/switch/core/hookForm.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { SwitchProps } from \"..\";\r\nimport { InputFeedback } from \"../../api\";\r\nimport { Controller } from \"react-hook-form\";\r\nimport { InputSwitch } from \"primereact/inputswitch\";\r\n\r\n/**\r\n * Core - `SwitchHookForm`\r\n * Define o componente utilizando o HookForm\r\n */\r\nexport function SwitchHookForm({ ...props }: SwitchProps<\"HookForm\">) {\r\n /*\r\n |------------------------------------------\r\n | render() - Renderização do componente\r\n |------------------------------------------\r\n */\r\n return (\r\n <Controller render={({ field, formState: { errors } }) => {\r\n return <>\r\n <div className=\"w-100 d-flex\">\r\n <InputSwitch checked={field.value}\r\n disabled={props.disabled}\r\n falseValue={props.valueFalse ?? false}\r\n id={props.id}\r\n name={field.name}\r\n trueValue={props.valueTrue ?? true}\r\n onChange={event => field.onChange(event)}/>\r\n {props.legend && <p className=\"ms-2 p-inputswitch-legend\">{props.legend}</p>}\r\n </div>\r\n <InputFeedback {...props}\r\n errors={errors}/>\r\n </>;\r\n }}\r\n control={props.control}\r\n name={props.name}/>\r\n );\r\n}"],"mappings":";;;;;;;AAUA,SAAgB,EAAe,EAAE,GAAG,KAAkC;CAMlE,OACI,kBAAC,GAAD;EAAY,SAAS,EAAE,UAAO,WAAW,EAAE,kBAChC,kBAAA,GAAA,EAAA,UAAA,CACH,kBAAC,OAAD;GAAK,WAAU;aAAf,CACI,kBAAC,GAAD;IAAa,SAAS,EAAM;IACxB,UAAU,EAAM;IAChB,YAAY,EAAM,cAAc;IAChC,IAAI,EAAM;IACV,MAAM,EAAM;IACZ,WAAW,EAAM,aAAa;IAC9B,WAAU,MAAS,EAAM,SAAS,CAAK;GAAG,CAAA,GAC7C,EAAM,UAAU,kBAAC,KAAD;IAAG,WAAU;cAA6B,EAAM;GAAU,CAAA,CAC1E;MACL,kBAAC,GAAD;GAAe,GAAI;GACP;EAAQ,CAAA,CACtB,EAAA,CAAA;EAEN,SAAS,EAAM;EACf,MAAM,EAAM;CAAM,CAAA;AAE1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","names":[],"sources":["../../../src/switch/switch.tsx"],"sourcesContent":["import React from \"react\";\nimport { Box } from \"../box\";\nimport { SwitchProps } from \".\";\nimport { InputLabel } from \"../api\";\nimport { ApiFieldModeProps } from \"../api\";\nimport { SwitchHookForm } from \"./core/hookForm\";\nimport { SwitchControlled } from \"./core/controlled\";\n\n/**\n * Componente - `Switch`\n *\n * Um componente versátil que é utilizado para entrada de dados do tipo booleano.\n */\nexport function Switch<T extends ApiFieldModeProps = \"Controlled\">(props: SwitchProps<T> & { mode?: T }) {\n let propsCore = props as any;\n\n /*\n |------------------------------------------\n | render() - Renderização do componente\n |------------------------------------------\n */\n return (\n <Box className={props.className}\n css={props.css}\n size={props.size ?? \"100\"}>\n <InputLabel {...props}/>\n {!props.mode || props.mode === \"Controlled\"\n ? <SwitchControlled {...propsCore}/>\n : <SwitchHookForm {...propsCore}/>}\n </Box>\n );\n}\n\nSwitch.displayName = \"Switch\";"],"mappings":";;;;;;;;;AAaA,SAAgB,EAAmD,GAAsC;CACrG,IAAI,IAAY;CAOhB,OACI,kBAAC,GAAD;EAAK,WAAW,EAAM;EAClB,KAAK,EAAM;EACX,MAAM,EAAM,QAAQ;YAFxB,CAGI,kBAAC,GAAD,EAAY,GAAI,GAAQ,CAAA,EACvB,CAAC,EAAM,QAAQ,EAAM,SAAS,eACzB,kBAAC,GAAD,EAAkB,GAAI,GAAY,CAAA,GAClC,kBAAC,GAAD,EAAgB,GAAI,GAAY,CAAA,CACpC;;;AAId,EAAO,cAAc"}
1
+ {"version":3,"file":"index.esm.js","names":[],"sources":["../../../src/switch/switch.tsx"],"sourcesContent":["import React from \"react\";\r\nimport { Box } from \"../box\";\r\nimport { SwitchProps } from \".\";\r\nimport { InputLabel } from \"../api\";\r\nimport { ApiFieldModeProps } from \"../api\";\r\nimport { SwitchHookForm } from \"./core/hookForm\";\r\nimport { SwitchControlled } from \"./core/controlled\";\r\n\r\n/**\r\n * Componente - `Switch`\r\n *\r\n * Um componente versátil que é utilizado para entrada de dados do tipo booleano.\r\n */\r\nexport function Switch<T extends ApiFieldModeProps = \"Controlled\">(props: SwitchProps<T> & { mode?: T }) {\r\n let propsCore = props as any;\r\n\r\n /*\r\n |------------------------------------------\r\n | render() - Renderização do componente\r\n |------------------------------------------\r\n */\r\n return (\r\n <Box className={props.className}\r\n css={props.css}\r\n size={props.size ?? \"100\"}>\r\n <InputLabel {...props}/>\r\n {!props.mode || props.mode === \"Controlled\"\r\n ? <SwitchControlled {...propsCore}/>\r\n : <SwitchHookForm {...propsCore}/>}\r\n </Box>\r\n );\r\n}\r\n\r\nSwitch.displayName = \"Switch\";"],"mappings":";;;;;;;;;AAaA,SAAgB,EAAmD,GAAsC;CACrG,IAAI,IAAY;CAOhB,OACI,kBAAC,GAAD;EAAK,WAAW,EAAM;EAClB,KAAK,EAAM;EACX,MAAM,EAAM,QAAQ;YAFxB,CAGI,kBAAC,GAAD,EAAY,GAAI,EAAO,CAAA,GACtB,CAAC,EAAM,QAAQ,EAAM,SAAS,eACzB,kBAAC,GAAD,EAAkB,GAAI,EAAW,CAAA,IACjC,kBAAC,GAAD,EAAgB,GAAI,EAAW,CAAA,CACpC;;AAEb;AAEA,EAAO,cAAc"}
@@ -1,7 +1,9 @@
1
1
  import { DataTableRowClickEvent } from 'primereact/datatable';
2
- export interface TableClickProps {
3
- /**
4
- * Aplica o evento de double click
5
- */
6
- onDoubleClick?(event: DataTableRowClickEvent): void
2
+
3
+
4
+ export interface TableClickProps {
5
+ /**
6
+ * Aplica o evento de double click
7
+ */
8
+ onDoubleClick?(event: DataTableRowClickEvent): void
7
9
  }
@@ -1,59 +1,61 @@
1
1
  import { default as React, CSSProperties } from 'react';
2
2
  import { ColumnBodyOptions, ColumnEditorOptions, ColumnEvent, ColumnHeaderOptions } from 'primereact/column';
3
- export interface TableColumnProps {
4
-
5
- /**
6
- * Propriedade de dados de uma linha.
7
- */
8
- id: string
9
-
10
- /**
11
- * Conteúdo do cabeçalho da tabela.
12
- */
13
- header: React.ReactNode | ((options: ColumnHeaderOptions) => React.ReactNode)
14
-
15
- /**
16
- * Alinha o conteúdo da coluna, os valores válidos são à esquerda, à direita e ao centro.
17
- */
18
- align?: null | "center" | "left" | "right"
19
-
20
- /**
21
- * Alinha o header da coluna, os valores válidos são à esquerda, à direita e ao centro.
22
- */
23
- alignHeader?: null | "center" | "left" | "right"
24
-
25
- /**
26
- * Classe de estilo do componente.
27
- */
28
- className?: string
29
-
30
- /**
31
- * Define se o campo vai ser ordernado
32
- */
33
- sort?: boolean
34
-
35
- /**
36
- * Conteúdo do corpo da coluna.
37
- */
38
- body?: (data: any, options: ColumnBodyOptions) => React.ReactNode
39
-
40
- /**
41
- * Define as propriedades `css` para cada coluna
42
- */
43
- style?: CSSProperties
44
-
45
- /**
46
- * Define se coluna vai ser congelada e qual posição
47
- */
48
- frozen?: boolean
49
-
50
- /**
51
- * Define o elemento de edição dentro de cada coluna
52
- */
53
- editor?: (options: ColumnEditorOptions) => React.ReactNode
54
-
55
- /**
56
- * Retorno de chamada a ser executado quando o editor for enviado.
57
- */
58
- onEditorComplete?: (event: ColumnEvent) => void
3
+
4
+
5
+ export interface TableColumnProps {
6
+
7
+ /**
8
+ * Propriedade de dados de uma linha.
9
+ */
10
+ id: string
11
+
12
+ /**
13
+ * Conteúdo do cabeçalho da tabela.
14
+ */
15
+ header: React.ReactNode | ((options: ColumnHeaderOptions) => React.ReactNode)
16
+
17
+ /**
18
+ * Alinha o conteúdo da coluna, os valores válidos são à esquerda, à direita e ao centro.
19
+ */
20
+ align?: null | "center" | "left" | "right"
21
+
22
+ /**
23
+ * Alinha o header da coluna, os valores válidos são à esquerda, à direita e ao centro.
24
+ */
25
+ alignHeader?: null | "center" | "left" | "right"
26
+
27
+ /**
28
+ * Classe de estilo do componente.
29
+ */
30
+ className?: string
31
+
32
+ /**
33
+ * Define se o campo vai ser ordernado
34
+ */
35
+ sort?: boolean
36
+
37
+ /**
38
+ * Conteúdo do corpo da coluna.
39
+ */
40
+ body?: (data: any, options: ColumnBodyOptions) => React.ReactNode
41
+
42
+ /**
43
+ * Define as propriedades `css` para cada coluna
44
+ */
45
+ style?: CSSProperties
46
+
47
+ /**
48
+ * Define se coluna vai ser congelada e qual posição
49
+ */
50
+ frozen?: boolean
51
+
52
+ /**
53
+ * Define o elemento de edição dentro de cada coluna
54
+ */
55
+ editor?: (options: ColumnEditorOptions) => React.ReactNode
56
+
57
+ /**
58
+ * Retorno de chamada a ser executado quando o editor for enviado.
59
+ */
60
+ onEditorComplete?: (event: ColumnEvent) => void
59
61
  }
@@ -1,6 +1,6 @@
1
- export interface TableEditProps {
2
- /**
3
- * Define se tabela vai ser do tipo editável
4
- */
5
- edit?: boolean
1
+ export interface TableEditProps {
2
+ /**
3
+ * Define se tabela vai ser do tipo editável
4
+ */
5
+ edit?: boolean
6
6
  }
@@ -1,34 +1,34 @@
1
1
  import { DataTableRowData, DataTableRowEvent, DataTableValueArray, DataTableExpandedRows, DataTableRowToggleEvent, DataTableRowExpansionTemplate } from 'primereact/datatable';
2
- import * as React from "react";
3
-
4
- export interface TableExpandProps {
5
- /**
6
- * Define o state de expansão da tabela
7
- */
8
- rowExpandable?: DataTableValueArray | DataTableExpandedRows
9
-
10
- /**
11
- * Define qual indice do objeto Data que sera expandido
12
- */
13
- rowExpandableAttr?: string
14
-
15
- /**
16
- * Função que define o template de expansão
17
- */
18
- rowExpansionTemplate?(data: DataTableRowData<any>, options: DataTableRowExpansionTemplate): React.ReactNode
19
-
20
- /**
21
- * Função para atualizar o state de expansão
22
- */
23
- onRowExpandable?: (data: DataTableRowToggleEvent<any>) => void
24
-
25
- /**
26
- * Função é executada com quando a linha e expandida
27
- */
28
- onRowExpand?(event: DataTableRowEvent): void
29
-
30
- /**
31
- * Função é executada quando a linha e recolhida
32
- */
33
- onRowCollapse?(event: DataTableRowEvent): void;
2
+ import * as React from "react";
3
+
4
+ export interface TableExpandProps {
5
+ /**
6
+ * Define o state de expansão da tabela
7
+ */
8
+ rowExpandable?: DataTableValueArray | DataTableExpandedRows
9
+
10
+ /**
11
+ * Define qual indice do objeto Data que sera expandido
12
+ */
13
+ rowExpandableAttr?: string
14
+
15
+ /**
16
+ * Função que define o template de expansão
17
+ */
18
+ rowExpansionTemplate?(data: DataTableRowData<any>, options: DataTableRowExpansionTemplate): React.ReactNode
19
+
20
+ /**
21
+ * Função para atualizar o state de expansão
22
+ */
23
+ onRowExpandable?: (data: DataTableRowToggleEvent<any>) => void
24
+
25
+ /**
26
+ * Função é executada com quando a linha e expandida
27
+ */
28
+ onRowExpand?(event: DataTableRowEvent): void
29
+
30
+ /**
31
+ * Função é executada quando a linha e recolhida
32
+ */
33
+ onRowCollapse?(event: DataTableRowEvent): void;
34
34
  }
@@ -1,21 +1,21 @@
1
- export interface TableGroupProps {
2
- /**
3
- * Define a representação do objeto de agrupamento
4
- */
5
- rowGroup?: string
6
-
7
- /**
8
- * Define o tipo de agrupamento da tabela
9
- */
10
- rowGroupMode?: "subheader" | "rowgroup"
11
-
12
- /**
13
- * Define o template do agrupamento - Header
14
- */
15
- rowGroupHeaderTemplate?: any
16
-
17
- /**
18
- * Define o template do agrupamento - Footer
19
- */
20
- rowGroupFooterTemplate?: any
1
+ export interface TableGroupProps {
2
+ /**
3
+ * Define a representação do objeto de agrupamento
4
+ */
5
+ rowGroup?: string
6
+
7
+ /**
8
+ * Define o tipo de agrupamento da tabela
9
+ */
10
+ rowGroupMode?: "subheader" | "rowgroup"
11
+
12
+ /**
13
+ * Define o template do agrupamento - Header
14
+ */
15
+ rowGroupHeaderTemplate?: any
16
+
17
+ /**
18
+ * Define o template do agrupamento - Footer
19
+ */
20
+ rowGroupFooterTemplate?: any
21
21
  }