linear-react-components-ui 1.1.26-beta.6 → 1.1.26-beta.8

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 (198) hide show
  1. package/lib/alerts/AlertContainer.js +8 -2
  2. package/lib/alerts/AlertProvider.js +10 -4
  3. package/lib/alerts/BaseAlert.js +3 -1
  4. package/lib/alerts/Message.js +91 -64
  5. package/lib/alerts/withAlert.js +10 -6
  6. package/lib/avatar/index.js +20 -42
  7. package/lib/badge/index.js +25 -23
  8. package/lib/buttons/ActivateButton.js +9 -4
  9. package/lib/buttons/AddButton.js +12 -5
  10. package/lib/buttons/Button.js +16 -5
  11. package/lib/buttons/ButtonGroups.js +10 -3
  12. package/lib/buttons/CancelButton.js +14 -4
  13. package/lib/buttons/DangerButton.js +15 -4
  14. package/lib/buttons/DefaultButton.js +25 -59
  15. package/lib/buttons/DestroyButton.js +21 -5
  16. package/lib/buttons/EditButton.js +9 -4
  17. package/lib/buttons/InactivateButton.js +9 -4
  18. package/lib/buttons/InfoButton.js +15 -4
  19. package/lib/buttons/PrimaryButton.js +15 -4
  20. package/lib/buttons/RestoreButton.js +9 -4
  21. package/lib/buttons/SaveButton.js +14 -4
  22. package/lib/buttons/SuccessButton.js +15 -4
  23. package/lib/buttons/WarningButton.js +15 -4
  24. package/lib/buttons/button_container/index.js +21 -16
  25. package/lib/buttons/split_button/index.js +53 -55
  26. package/lib/calendar/DangerCalendar.js +18 -4
  27. package/lib/calendar/InfoCalendar.js +18 -4
  28. package/lib/calendar/PrimaryCalendar.js +18 -4
  29. package/lib/calendar/SuccessCalendar.js +18 -4
  30. package/lib/calendar/WarningCalendar.js +18 -4
  31. package/lib/calendar/base/Day.js +32 -22
  32. package/lib/calendar/base/Month.js +24 -21
  33. package/lib/calendar/base/Week.js +20 -19
  34. package/lib/calendar/base/helpers.js +1 -9
  35. package/lib/calendar/base/index.js +129 -95
  36. package/lib/checkbox/index.js +5 -4
  37. package/lib/chunks/compiler-runtime.Cu50tn6L.js +54 -0
  38. package/lib/chunks/index.aw0XaUkg.js +266 -0
  39. package/lib/chunks/{jsx-runtime.C7wFtzyj.js → jsx-runtime.D1SHvdVE.js} +106 -108
  40. package/lib/chunks/tabs.BvKfeA6Y.js +244 -0
  41. package/lib/dialog/Alert.js +18 -17
  42. package/lib/dialog/Custom.js +42 -28
  43. package/lib/dialog/Error.js +18 -17
  44. package/lib/dialog/Information.js +18 -17
  45. package/lib/dialog/Question.js +41 -54
  46. package/lib/dialog/Warning.js +18 -17
  47. package/lib/dialog/base/Content.js +13 -4
  48. package/lib/dialog/base/Footer.js +8 -3
  49. package/lib/dialog/base/Header.js +4 -3
  50. package/lib/dialog/base/index.js +5 -4
  51. package/lib/dialog/form/index.js +5 -4
  52. package/lib/dialog/index.js +1 -1
  53. package/lib/dialog/wizard/index.js +10 -9
  54. package/lib/dialog/wizard/progressbar.js +89 -80
  55. package/lib/dialog/wizard/step.js +4 -3
  56. package/lib/dialog/wizard/useWizard.js +42 -29
  57. package/lib/drawer/Content.js +15 -8
  58. package/lib/drawer/Drawer.js +25 -22
  59. package/lib/drawer/Header.js +53 -40
  60. package/lib/dropdown/Popup.js +3 -1
  61. package/lib/dropdown/withDropdown.js +75 -50
  62. package/lib/fieldset/index.js +66 -47
  63. package/lib/form/Field.js +88 -62
  64. package/lib/form/FieldArray.js +17 -38
  65. package/lib/form/FieldNumber.js +40 -36
  66. package/lib/form/FieldPeriod.js +90 -59
  67. package/lib/form/helpers.js +4 -1
  68. package/lib/form/index.js +55 -67
  69. package/lib/form/withFieldHOC.js +57 -48
  70. package/lib/form/withFormSecurity.js +6 -9
  71. package/lib/gridlayout/GridCol.js +21 -20
  72. package/lib/gridlayout/GridRow.js +22 -20
  73. package/lib/hint/helpers.js +6 -2
  74. package/lib/hint/index.js +27 -25
  75. package/lib/icons/helper.js +142 -569
  76. package/lib/icons/index.js +63 -55
  77. package/lib/index.js +20 -19
  78. package/lib/inputs/base/InputTextBase.js +62 -146
  79. package/lib/inputs/base/Label.js +27 -29
  80. package/lib/inputs/base/helpers.js +3 -1
  81. package/lib/inputs/color/index.js +52 -73
  82. package/lib/inputs/date/Dialog.js +15 -16
  83. package/lib/inputs/date/Dropdown.js +7 -1
  84. package/lib/inputs/date/index.js +60 -94
  85. package/lib/inputs/errorMessage/index.js +21 -13
  86. package/lib/inputs/file/DefaultFile.js +64 -66
  87. package/lib/inputs/file/DragDropFile.js +39 -93
  88. package/lib/inputs/file/File.js +8 -22
  89. package/lib/inputs/file/FileButtonSettings.js +20 -17
  90. package/lib/inputs/inputHOC.js +38 -20
  91. package/lib/inputs/mask/BaseMask.js +44 -23
  92. package/lib/inputs/mask/Cnpj.js +42 -36
  93. package/lib/inputs/mask/Cpf.js +45 -33
  94. package/lib/inputs/mask/Phone.js +10 -6
  95. package/lib/inputs/mask/ZipCode.js +9 -4
  96. package/lib/inputs/multiSelect/ActionButtons.js +35 -46
  97. package/lib/inputs/multiSelect/Dropdown.js +93 -131
  98. package/lib/inputs/multiSelect/index.js +167 -125
  99. package/lib/inputs/number/BaseNumber.js +43 -31
  100. package/lib/inputs/number/Currency.js +19 -12
  101. package/lib/inputs/number/Decimal.js +9 -4
  102. package/lib/inputs/number/index.js +31 -35
  103. package/lib/inputs/period/Dialog.js +16 -16
  104. package/lib/inputs/period/Dropdown.js +6 -1
  105. package/lib/inputs/period/PeriodList.js +41 -27
  106. package/lib/inputs/period/helper.js +5 -1
  107. package/lib/inputs/period/index.js +118 -240
  108. package/lib/inputs/search/index.js +95 -71
  109. package/lib/inputs/select/ActionButtons.js +24 -45
  110. package/lib/inputs/select/Dropdown.js +38 -87
  111. package/lib/inputs/select/helper.js +6 -2
  112. package/lib/inputs/select/index.js +23 -25
  113. package/lib/inputs/select/multiple/Selecteds.js +23 -19
  114. package/lib/inputs/select/multiple/index.js +35 -101
  115. package/lib/inputs/select/simple/index.js +26 -89
  116. package/lib/inputs/text/index.js +9 -4
  117. package/lib/inputs/textarea/index.js +13 -15
  118. package/lib/internals/withTooltip.js +114 -67
  119. package/lib/labelMessages/index.js +50 -45
  120. package/lib/labels/DangerLabel.js +18 -4
  121. package/lib/labels/DefaultLabel.js +53 -39
  122. package/lib/labels/InfoLabel.js +18 -4
  123. package/lib/labels/PrimaryLabel.js +18 -4
  124. package/lib/labels/SuccessLabel.js +18 -4
  125. package/lib/labels/WarningLabel.js +18 -4
  126. package/lib/labels/label_container/index.js +15 -9
  127. package/lib/list/Header.js +18 -6
  128. package/lib/list/Item.js +4 -3
  129. package/lib/list/Separator.js +8 -3
  130. package/lib/list/index.js +21 -18
  131. package/lib/menus/float/MenuItem.js +48 -51
  132. package/lib/menus/float/index.js +102 -81
  133. package/lib/menus/sidenav/ExpandMenu.js +17 -15
  134. package/lib/menus/sidenav/MenuLink.js +21 -14
  135. package/lib/menus/sidenav/NavMenuGroup.js +19 -14
  136. package/lib/menus/sidenav/NavMenuItem.js +131 -109
  137. package/lib/menus/sidenav/NavSubMenuItem.js +36 -20
  138. package/lib/menus/sidenav/index.js +145 -123
  139. package/lib/menus/sidenav/popup_menu_search/EmptyList.js +21 -17
  140. package/lib/menus/sidenav/popup_menu_search/index.js +17 -51
  141. package/lib/noPermission/index.js +13 -8
  142. package/lib/panel/Content.js +48 -38
  143. package/lib/panel/DangerPanel.js +10 -5
  144. package/lib/panel/Default.js +62 -36
  145. package/lib/panel/Header.js +53 -37
  146. package/lib/panel/InfoPanel.js +10 -5
  147. package/lib/panel/PrimaryPanel.js +10 -5
  148. package/lib/panel/SuccessPanel.js +10 -5
  149. package/lib/panel/ToolBar.js +17 -4
  150. package/lib/panel/WarningPanel.js +10 -5
  151. package/lib/panel/helpers.js +4 -1
  152. package/lib/permissionValidations.js +5 -1
  153. package/lib/popover/PopoverText.js +12 -5
  154. package/lib/popover/PopoverTitle.js +10 -3
  155. package/lib/popover/index.js +36 -56
  156. package/lib/progress/Bar.js +43 -34
  157. package/lib/progress/index.js +23 -18
  158. package/lib/radio/index.js +105 -89
  159. package/lib/shortcuts/index.js +20 -7
  160. package/lib/skeleton/SkeletonContainer.js +16 -6
  161. package/lib/skeleton/index.js +42 -18
  162. package/lib/spinner/SpinnerLoading.js +53 -16
  163. package/lib/spinner/index.js +47 -37
  164. package/lib/split/Split.js +83 -79
  165. package/lib/split/SplitSide.js +24 -16
  166. package/lib/table/Body.js +36 -49
  167. package/lib/table/Header.js +45 -32
  168. package/lib/table/HeaderColumn.js +40 -27
  169. package/lib/table/Row.js +47 -48
  170. package/lib/table/RowColumn.js +50 -38
  171. package/lib/table/helpers.js +3 -1
  172. package/lib/table/index.js +101 -104
  173. package/lib/tabs/DropdownTabs.js +64 -61
  174. package/lib/tabs/Menu.js +35 -49
  175. package/lib/tabs/MenuTabs.js +59 -84
  176. package/lib/tabs/Panel.js +57 -46
  177. package/lib/tabs/context.js +11 -11
  178. package/lib/tabs/index.js +69 -64
  179. package/lib/tabs/tabHelpers.js +9 -7
  180. package/lib/textContent/index.js +30 -32
  181. package/lib/toolbar/ButtonBar.js +62 -58
  182. package/lib/toolbar/LabelBar.js +46 -38
  183. package/lib/toolbar/Separator.js +8 -3
  184. package/lib/toolbar/ToolBarGroup.js +14 -3
  185. package/lib/toolbar/index.js +35 -29
  186. package/lib/tooltip/index.js +1 -1
  187. package/lib/treetable/Body.js +25 -26
  188. package/lib/treetable/Header.js +22 -18
  189. package/lib/treetable/Row.js +210 -147
  190. package/lib/treetable/helpers.js +6 -14
  191. package/lib/treetable/index.js +25 -15
  192. package/lib/treeview/Header.js +13 -5
  193. package/lib/treeview/Node.js +198 -175
  194. package/lib/treeview/index.js +257 -174
  195. package/lib/uitour/index.js +167 -166
  196. package/package.json +11 -10
  197. package/lib/chunks/index.CM1aLH2W.js +0 -205
  198. package/lib/chunks/tabs.D0L_nVfP.js +0 -245
@@ -1,5 +1,5 @@
1
- import ee from "react";
2
- var T = { exports: {} }, R = {};
1
+ import K from "react";
2
+ var v = { exports: {} }, m = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.js
@@ -9,27 +9,27 @@ var T = { exports: {} }, R = {};
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- var F;
13
- function re() {
14
- if (F) return R;
15
- F = 1;
16
- var l = Symbol.for("react.transitional.element"), b = Symbol.for("react.fragment");
17
- function f(m, a, s) {
18
- var d = null;
19
- if (s !== void 0 && (d = "" + s), a.key !== void 0 && (d = "" + a.key), "key" in a) {
12
+ var $;
13
+ function ee() {
14
+ if ($) return m;
15
+ $ = 1;
16
+ var l = Symbol.for("react.transitional.element"), E = Symbol.for("react.fragment");
17
+ function c(i, o, s) {
18
+ var f = null;
19
+ if (s !== void 0 && (f = "" + s), o.key !== void 0 && (f = "" + o.key), "key" in o) {
20
20
  s = {};
21
- for (var E in a)
22
- E !== "key" && (s[E] = a[E]);
23
- } else s = a;
24
- return a = s.ref, {
21
+ for (var d in o)
22
+ d !== "key" && (s[d] = o[d]);
23
+ } else s = o;
24
+ return o = s.ref, {
25
25
  $$typeof: l,
26
- type: m,
27
- key: d,
28
- ref: a !== void 0 ? a : null,
26
+ type: i,
27
+ key: f,
28
+ ref: o !== void 0 ? o : null,
29
29
  props: s
30
30
  };
31
31
  }
32
- return R.Fragment = b, R.jsx = f, R.jsxs = f, R;
32
+ return m.Fragment = E, m.jsx = c, m.jsxs = c, m;
33
33
  }
34
34
  var _ = {};
35
35
  /**
@@ -41,44 +41,44 @@ var _ = {};
41
41
  * This source code is licensed under the MIT license found in the
42
42
  * LICENSE file in the root directory of this source tree.
43
43
  */
44
- var $;
45
- function te() {
46
- return $ || ($ = 1, process.env.NODE_ENV !== "production" && (function() {
44
+ var I;
45
+ function re() {
46
+ return I || (I = 1, process.env.NODE_ENV !== "production" && (function() {
47
47
  function l(e) {
48
48
  if (e == null) return null;
49
49
  if (typeof e == "function")
50
- return e.$$typeof === Z ? null : e.displayName || e.name || null;
50
+ return e.$$typeof === H ? null : e.displayName || e.name || null;
51
51
  if (typeof e == "string") return e;
52
52
  switch (e) {
53
53
  case p:
54
54
  return "Fragment";
55
- case J:
56
- return "Profiler";
57
55
  case U:
56
+ return "Profiler";
57
+ case W:
58
58
  return "StrictMode";
59
- case G:
59
+ case z:
60
60
  return "Suspense";
61
- case X:
61
+ case G:
62
62
  return "SuspenseList";
63
- case H:
63
+ case B:
64
64
  return "Activity";
65
65
  }
66
66
  if (typeof e == "object")
67
67
  switch (typeof e.tag == "number" && console.error(
68
68
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
69
69
  ), e.$$typeof) {
70
- case W:
70
+ case M:
71
71
  return "Portal";
72
- case z:
73
- return (e.displayName || "Context") + ".Provider";
74
- case q:
75
- return (e._context.displayName || "Context") + ".Consumer";
76
72
  case V:
73
+ return e.displayName || "Context";
74
+ case J:
75
+ return (e._context.displayName || "Context") + ".Consumer";
76
+ case q:
77
77
  var r = e.render;
78
78
  return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
79
- case B:
79
+ case X:
80
80
  return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
81
- case g:
81
+ case T:
82
82
  r = e._payload, e = e._init;
83
83
  try {
84
84
  return l(e(r));
@@ -87,12 +87,12 @@ function te() {
87
87
  }
88
88
  return null;
89
89
  }
90
- function b(e) {
90
+ function E(e) {
91
91
  return "" + e;
92
92
  }
93
- function f(e) {
93
+ function c(e) {
94
94
  try {
95
- b(e);
95
+ E(e);
96
96
  var r = !1;
97
97
  } catch {
98
98
  r = !0;
@@ -104,12 +104,12 @@ function te() {
104
104
  r,
105
105
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
106
106
  n
107
- ), b(e);
107
+ ), E(e);
108
108
  }
109
109
  }
110
- function m(e) {
110
+ function i(e) {
111
111
  if (e === p) return "<>";
112
- if (typeof e == "object" && e !== null && e.$$typeof === g)
112
+ if (typeof e == "object" && e !== null && e.$$typeof === T)
113
113
  return "<...>";
114
114
  try {
115
115
  var r = l(e);
@@ -118,23 +118,23 @@ function te() {
118
118
  return "<...>";
119
119
  }
120
120
  }
121
- function a() {
121
+ function o() {
122
122
  var e = k.A;
123
123
  return e === null ? null : e.getOwner();
124
124
  }
125
125
  function s() {
126
126
  return Error("react-stack-top-frame");
127
127
  }
128
- function d(e) {
129
- if (h.call(e, "key")) {
128
+ function f(e) {
129
+ if (x.call(e, "key")) {
130
130
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
131
131
  if (r && r.isReactWarning) return !1;
132
132
  }
133
133
  return e.key !== void 0;
134
134
  }
135
- function E(e, r) {
135
+ function d(e, r) {
136
136
  function t() {
137
- y || (y = !0, console.error(
137
+ g || (g = !0, console.error(
138
138
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
139
139
  r
140
140
  ));
@@ -144,22 +144,23 @@ function te() {
144
144
  configurable: !0
145
145
  });
146
146
  }
147
- function L() {
147
+ function D() {
148
148
  var e = l(this.type);
149
- return N[e] || (N[e] = !0, console.error(
149
+ return h[e] || (h[e] = !0, console.error(
150
150
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
151
151
  )), e = this.props.ref, e !== void 0 ? e : null;
152
152
  }
153
- function M(e, r, t, n, c, u, A, S) {
154
- return t = u.ref, e = {
155
- $$typeof: x,
153
+ function L(e, r, t, n, b, A) {
154
+ var a = t.ref;
155
+ return e = {
156
+ $$typeof: j,
156
157
  type: e,
157
158
  key: r,
158
- props: u,
159
- _owner: c
160
- }, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
159
+ props: t,
160
+ _owner: n
161
+ }, (a !== void 0 ? a : null) !== null ? Object.defineProperty(e, "ref", {
161
162
  enumerable: !1,
162
- get: L
163
+ get: D
163
164
  }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
164
165
  configurable: !1,
165
166
  enumerable: !1,
@@ -174,33 +175,33 @@ function te() {
174
175
  configurable: !1,
175
176
  enumerable: !1,
176
177
  writable: !0,
177
- value: A
178
+ value: b
178
179
  }), Object.defineProperty(e, "_debugTask", {
179
180
  configurable: !1,
180
181
  enumerable: !1,
181
182
  writable: !0,
182
- value: S
183
+ value: A
183
184
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
184
185
  }
185
- function j(e, r, t, n, c, u, A, S) {
186
- var o = r.children;
187
- if (o !== void 0)
186
+ function P(e, r, t, n, b, A) {
187
+ var a = r.children;
188
+ if (a !== void 0)
188
189
  if (n)
189
- if (Q(o)) {
190
- for (n = 0; n < o.length; n++)
191
- w(o[n]);
192
- Object.freeze && Object.freeze(o);
190
+ if (Z(a)) {
191
+ for (n = 0; n < a.length; n++)
192
+ w(a[n]);
193
+ Object.freeze && Object.freeze(a);
193
194
  } else
194
195
  console.error(
195
196
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
196
197
  );
197
- else w(o);
198
- if (h.call(r, "key")) {
199
- o = l(e);
200
- var i = Object.keys(r).filter(function(K) {
201
- return K !== "key";
198
+ else w(a);
199
+ if (x.call(r, "key")) {
200
+ a = l(e);
201
+ var u = Object.keys(r).filter(function(Q) {
202
+ return Q !== "key";
202
203
  });
203
- n = 0 < i.length ? "{key: someKey, " + i.join(": ..., ") + ": ...}" : "{key: someKey}", I[o + n] || (i = 0 < i.length ? "{" + i.join(": ..., ") + ": ...}" : "{}", console.error(
204
+ n = 0 < u.length ? "{key: someKey, " + u.join(": ..., ") + ": ...}" : "{key: someKey}", Y[a + n] || (u = 0 < u.length ? "{" + u.join(": ..., ") + ": ...}" : "{}", console.error(
204
205
  `A props object containing a "key" prop is being spread into JSX:
205
206
  let props = %s;
206
207
  <%s {...props} />
@@ -208,77 +209,74 @@ React keys must be passed directly to JSX without using spread:
208
209
  let props = %s;
209
210
  <%s key={someKey} {...props} />`,
210
211
  n,
211
- o,
212
- i,
213
- o
214
- ), I[o + n] = !0);
212
+ a,
213
+ u,
214
+ a
215
+ ), Y[a + n] = !0);
215
216
  }
216
- if (o = null, t !== void 0 && (f(t), o = "" + t), d(r) && (f(r.key), o = "" + r.key), "key" in r) {
217
+ if (a = null, t !== void 0 && (c(t), a = "" + t), f(r) && (c(r.key), a = "" + r.key), "key" in r) {
217
218
  t = {};
218
- for (var P in r)
219
- P !== "key" && (t[P] = r[P]);
219
+ for (var S in r)
220
+ S !== "key" && (t[S] = r[S]);
220
221
  } else t = r;
221
- return o && E(
222
+ return a && d(
222
223
  t,
223
224
  typeof e == "function" ? e.displayName || e.name || "Unknown" : e
224
- ), M(
225
+ ), L(
225
226
  e,
226
- o,
227
- u,
228
- c,
229
- a(),
227
+ a,
230
228
  t,
231
- A,
232
- S
229
+ o(),
230
+ b,
231
+ A
233
232
  );
234
233
  }
235
234
  function w(e) {
236
- typeof e == "object" && e !== null && e.$$typeof === x && e._store && (e._store.validated = 1);
235
+ y(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === T && (e._payload.status === "fulfilled" ? y(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
236
+ }
237
+ function y(e) {
238
+ return typeof e == "object" && e !== null && e.$$typeof === j;
237
239
  }
238
- var v = ee, x = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), J = Symbol.for("react.profiler"), q = Symbol.for("react.consumer"), z = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), X = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), H = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), k = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, h = Object.prototype.hasOwnProperty, Q = Array.isArray, O = console.createTask ? console.createTask : function() {
240
+ var R = K, j = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), U = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), V = Symbol.for("react.context"), q = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), X = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), k = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, x = Object.prototype.hasOwnProperty, Z = Array.isArray, O = console.createTask ? console.createTask : function() {
239
241
  return null;
240
242
  };
241
- v = {
243
+ R = {
242
244
  react_stack_bottom_frame: function(e) {
243
245
  return e();
244
246
  }
245
247
  };
246
- var y, N = {}, C = v.react_stack_bottom_frame.bind(
247
- v,
248
+ var g, h = {}, N = R.react_stack_bottom_frame.bind(
249
+ R,
248
250
  s
249
- )(), Y = O(m(s)), I = {};
250
- _.Fragment = p, _.jsx = function(e, r, t, n, c) {
251
- var u = 1e4 > k.recentlyCreatedOwnerStacks++;
252
- return j(
251
+ )(), C = O(i(s)), Y = {};
252
+ _.Fragment = p, _.jsx = function(e, r, t) {
253
+ var n = 1e4 > k.recentlyCreatedOwnerStacks++;
254
+ return P(
253
255
  e,
254
256
  r,
255
257
  t,
256
258
  !1,
257
- n,
258
- c,
259
- u ? Error("react-stack-top-frame") : C,
260
- u ? O(m(e)) : Y
259
+ n ? Error("react-stack-top-frame") : N,
260
+ n ? O(i(e)) : C
261
261
  );
262
- }, _.jsxs = function(e, r, t, n, c) {
263
- var u = 1e4 > k.recentlyCreatedOwnerStacks++;
264
- return j(
262
+ }, _.jsxs = function(e, r, t) {
263
+ var n = 1e4 > k.recentlyCreatedOwnerStacks++;
264
+ return P(
265
265
  e,
266
266
  r,
267
267
  t,
268
268
  !0,
269
- n,
270
- c,
271
- u ? Error("react-stack-top-frame") : C,
272
- u ? O(m(e)) : Y
269
+ n ? Error("react-stack-top-frame") : N,
270
+ n ? O(i(e)) : C
273
271
  );
274
272
  };
275
273
  })()), _;
276
274
  }
277
- var D;
278
- function ne() {
279
- return D || (D = 1, process.env.NODE_ENV === "production" ? T.exports = re() : T.exports = te()), T.exports;
275
+ var F;
276
+ function te() {
277
+ return F || (F = 1, process.env.NODE_ENV === "production" ? v.exports = ee() : v.exports = re()), v.exports;
280
278
  }
281
- var ae = ne();
279
+ var ae = te();
282
280
  export {
283
281
  ae as j
284
282
  };
@@ -0,0 +1,244 @@
1
+ import { j as o } from "./jsx-runtime.D1SHvdVE.js";
2
+ import { forwardRef as we, useState as je, useRef as Ee, useImperativeHandle as $e, useEffect as Ie, useContext as Ce, createElement as Te } from "react";
3
+ import { c as Re } from "./compiler-runtime.Cu50tn6L.js";
4
+ import { useNavigate as Oe, Link as Pe } from "react-router-dom";
5
+ import ae from "../icons/index.js";
6
+ import '../assets/radio.css';import '../assets/skeleton.css';import '../assets/toolbar.css';import '../assets/label.css';import '../assets/panel.css';import '../assets/noPermission.css';import '../assets/button.css';import '../assets/gridlayout.css';import '../assets/tabs.css';/* empty css */
7
+ import Se from "../gridlayout/GridCol.js";
8
+ import { actionsOnPermissionDenied as Ne, OPTIONS_ON_DENIED as de } from "../permissionValidations.js";
9
+ import { ErrorMessage as Le } from "../inputs/errorMessage/index.js";
10
+ import "../buttons/DefaultButton.js";
11
+ /* empty css */
12
+ import "../panel/helpers.js";
13
+ /* empty css */
14
+ /* empty css */
15
+ import "../toolbar/helpers.js";
16
+ import "../labels/DefaultLabel.js";
17
+ /* empty css */
18
+ /* empty css */
19
+ import { ListContext as _e } from "../list/helpers.js";
20
+ import { WithDropdownContext as Be } from "../dropdown/withDropdown.js";
21
+ import { keyCodes as Ae } from "../internals/constants.js";
22
+ import He, { TooltipContext as Ke } from "../internals/withTooltip.js";
23
+ /* empty css */
24
+ /* empty css */
25
+ import ze from "../popover/index.js";
26
+ import ge from "../textContent/index.js";
27
+ import "../tabs/MenuTabs.js";
28
+ import "./lodash.CIAK_hAg.js";
29
+ import "../tabs/context.js";
30
+ import "../tabs/tabHelpers.js";
31
+ import "./index.aw0XaUkg.js";
32
+ import Fe from "../hint/index.js";
33
+ const ye = we(({
34
+ name: G,
35
+ required: e,
36
+ value: r,
37
+ label: c,
38
+ onChange: p,
39
+ autofocus: l,
40
+ hint: i,
41
+ id: a = void 0,
42
+ gridLayout: A,
43
+ checked: g = !1,
44
+ disabled: f,
45
+ permissionAttr: b,
46
+ tooltip: N,
47
+ tooltipPosition: y = "top",
48
+ tooltipWidth: M = "auto",
49
+ skeletonize: v,
50
+ targetRef: D,
51
+ errorMessages: w,
52
+ customClassForLabel: H,
53
+ hintPosition: K = "below",
54
+ themePopover: W = "light",
55
+ popoverAlign: z = "left"
56
+ }, F) => {
57
+ const [d, u] = je(g), J = [de.disabled, de.unvisible], [Q] = je(Ne(J, b)), t = Ee(null);
58
+ $e(F, () => t.current, [t.current]), Ie(() => {
59
+ u(g);
60
+ }, [g]);
61
+ const k = () => f || Q.disabled, me = () => {
62
+ if (k()) return null;
63
+ const C = {
64
+ checked: !d,
65
+ id: a,
66
+ name: G,
67
+ value: !d
68
+ };
69
+ return {
70
+ onClick: () => {
71
+ !k() && !v && (u(!d), p?.({
72
+ target: C
73
+ }));
74
+ },
75
+ onKeyDown: void 0,
76
+ role: "checkbox",
77
+ tabIndex: -1
78
+ };
79
+ }, E = () => /* @__PURE__ */ o.jsxs("div", { children: [
80
+ /* @__PURE__ */ o.jsxs("div", { "data-skeletonized": v, className: "checkbox-component", style: {
81
+ display: "flex",
82
+ alignItems: "center"
83
+ }, children: [
84
+ /* @__PURE__ */ o.jsxs("span", { "data-testid": "checkbox-container", className: "inputcontent", "aria-checked": d, ...me(), children: [
85
+ /* @__PURE__ */ o.jsx("input", { id: a || void 0, ref: (C) => {
86
+ D && D(C), t.current = C;
87
+ }, className: "input", type: "checkbox", autoFocus: l, checked: d, disabled: k(), name: G, required: e, value: r, onChange: () => {
88
+ } }),
89
+ /* @__PURE__ */ o.jsx("span", { children: /* @__PURE__ */ o.jsx(ae, { size: 12, name: "checkmark" }) }),
90
+ c && /* @__PURE__ */ o.jsxs("div", { className: "description", children: [
91
+ /* @__PURE__ */ o.jsx(ge, { required: e, disabled: k(), className: H, tooltip: N, tooltipWidth: M, tooltipPosition: y }),
92
+ c,
93
+ /* @__PURE__ */ o.jsx(ge, {}),
94
+ /* @__PURE__ */ o.jsx(Fe, { disabled: f, visible: !!i && K === "below", description: i, customClass: "hint" })
95
+ ] })
96
+ ] }),
97
+ !!i && K === "onLabelRight" && !v && /* @__PURE__ */ o.jsx(ze, { theme: W, align: z, customClass: "-hint", iconColor: "#03bde2", style: {
98
+ margin: "0px 5px",
99
+ height: "auto",
100
+ width: 20
101
+ }, children: i })
102
+ ] }),
103
+ /* @__PURE__ */ o.jsx(Le, { messages: w })
104
+ ] });
105
+ return Q.unvisible ? null : A ? /* @__PURE__ */ o.jsx(Se, { customClass: "-withinput", cols: A, children: E() }) : E();
106
+ });
107
+ ye.displayName = "CheckBox";
108
+ const Ge = (G) => {
109
+ const e = Re.c(94), {
110
+ onClick: r,
111
+ leftIconName: c,
112
+ leftIcon: p,
113
+ displayCheckbox: l,
114
+ url: i,
115
+ leftElement: a,
116
+ hovered: A,
117
+ customClass: g,
118
+ text: f,
119
+ subText: b,
120
+ rightIcon: N,
121
+ rightIconName: y,
122
+ itemId: M,
123
+ rightElement: v,
124
+ style: D,
125
+ children: w,
126
+ disabled: H,
127
+ separator: K,
128
+ visible: W,
129
+ permissionAttr: z,
130
+ skeletonize: F,
131
+ targetRef: d,
132
+ target: u,
133
+ onDeniedText: J
134
+ } = G, Q = A === void 0 ? !0 : A, t = M === void 0 ? "" : M, k = K === void 0 ? !0 : K, me = W === void 0 ? !0 : W, E = J === void 0 ? "Permissão Negada! Consulte o Administrador do sistema." : J, {
135
+ handleSelectItem: C,
136
+ selectable: $,
137
+ selectedItemId: m,
138
+ selectedItemRef: pe,
139
+ selectOnEnter: fe
140
+ } = Ce(_e), j = Ce(Be), {
141
+ handlerSetOnDeniedText: ue
142
+ } = Ce(Ke);
143
+ let U, V;
144
+ if (e[0] !== z) {
145
+ const s = [de.disabled, de.unvisible];
146
+ U = je, V = Ne(s, z), e[0] = z, e[1] = U, e[2] = V;
147
+ } else
148
+ U = e[1], V = e[2];
149
+ const [I] = U(V), xe = Oe(), n = I.disabled;
150
+ let X;
151
+ e[3] !== H || e[4] !== I.disabled ? (X = () => H || I.disabled, e[3] = H, e[4] = I.disabled, e[5] = X) : X = e[5];
152
+ const x = X;
153
+ let Y;
154
+ e[6] !== g || e[7] !== l || e[8] !== k || e[9] !== x ? (Y = () => `item ${g} ${k && "list-separator"} ${x() && "disabled"}
155
+ ${l && "list-checkbox"}`, e[6] = g, e[7] = l, e[8] = k, e[9] = x, e[10] = Y) : Y = e[10];
156
+ const h = Y;
157
+ let Z;
158
+ e[11] !== n || e[12] !== l || e[13] !== a || e[14] !== p || e[15] !== c || e[16] !== I.disabled ? (Z = (s, ke) => {
159
+ const De = !ke && !l && !a && !c && !p && I.disabled;
160
+ return ke || (De ? /* @__PURE__ */ o.jsx(ae, { name: "padlock", color: "rgb(193, 193, 193)" }) : s ? /* @__PURE__ */ o.jsx(ae, { name: n ? "padlock" : s, color: n ? "rgb(193, 193, 193)" : "" }) : null);
161
+ }, e[11] = n, e[12] = l, e[13] = a, e[14] = p, e[15] = c, e[16] = I.disabled, e[17] = Z) : Z = e[17];
162
+ const T = Z;
163
+ let q;
164
+ e[18] !== j || e[19] !== C || e[20] !== t || e[21] !== r || e[22] !== $ ? (q = (s) => {
165
+ r !== void 0 && r(s, t), j && j.handleDropdownClose && j.handleDropdownClose(), $ && C(t, r);
166
+ }, e[18] = j, e[19] = C, e[20] = t, e[21] = r, e[22] = $, e[23] = q) : q = e[23];
167
+ const R = q;
168
+ let ee;
169
+ e[24] !== R || e[25] !== t || e[26] !== xe || e[27] !== m || e[28] !== F || e[29] !== u || e[30] !== i ? (ee = (s) => {
170
+ [Ae.ENTER].includes(s.keyCode) && !F && t && m === t && (s.preventDefault(), R(s), i && (u === "_blank" ? window.open(i, "_blank")?.focus() : xe(i)));
171
+ }, e[24] = R, e[25] = t, e[26] = xe, e[27] = m, e[28] = F, e[29] = u, e[30] = i, e[31] = ee) : ee = e[31];
172
+ const te = ee;
173
+ let se;
174
+ e[32] !== j || e[33] !== R || e[34] !== r || e[35] !== $ || e[36] !== x ? (se = () => {
175
+ if (!x())
176
+ return r === void 0 && j === void 0 && !$ ? null : {
177
+ onClick: (s) => {
178
+ R(s);
179
+ },
180
+ role: "button",
181
+ tabIndex: 0
182
+ };
183
+ }, e[32] = j, e[33] = R, e[34] = r, e[35] = $, e[36] = x, e[37] = se) : se = e[37];
184
+ const he = se;
185
+ let oe;
186
+ e[38] !== te || e[39] !== fe ? (oe = () => (fe && document.addEventListener("keydown", te), () => {
187
+ document.removeEventListener("keydown", te);
188
+ }), e[38] = te, e[39] = fe, e[40] = oe) : oe = e[40];
189
+ let ie;
190
+ e[41] !== t || e[42] !== m || e[43] !== i ? (ie = [i, m, t], e[41] = t, e[42] = m, e[43] = i, e[44] = ie) : ie = e[44], Ie(oe, ie);
191
+ let ne;
192
+ e[45] !== n || e[46] !== ue || e[47] !== E ? (ne = () => {
193
+ n && ue(E);
194
+ }, e[45] = n, e[46] = ue, e[47] = E, e[48] = ne) : ne = e[48];
195
+ let le;
196
+ e[49] !== n ? (le = [n], e[49] = n, e[50] = le) : le = e[50], Ie(ne, le);
197
+ let re;
198
+ e: {
199
+ if (!n && l) {
200
+ let s;
201
+ e[51] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o.jsx(ye, { name: "checkbox" }), e[51] = s) : s = e[51], re = s;
202
+ break e;
203
+ } else if (n && l) {
204
+ let s;
205
+ e[52] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ o.jsx(ae, { name: "padlock" }), e[52] = s) : s = e[52], re = s;
206
+ break e;
207
+ }
208
+ re = null;
209
+ }
210
+ const be = re;
211
+ if (!me || I.unvisible)
212
+ return null;
213
+ let O;
214
+ e[53] !== t || e[54] !== m || e[55] !== pe || e[56] !== d ? (O = (s) => (d && d(s), t && m === t ? pe : null), e[53] = t, e[54] = m, e[55] = pe, e[56] = d, e[57] = O) : O = e[57];
215
+ const ve = `item-container ${Q && "hovered"}
216
+ ${t && m === t ? "-activedlist" : ""}`;
217
+ let P;
218
+ e[58] !== he ? (P = he(), e[58] = he, e[59] = P) : P = e[59];
219
+ let S;
220
+ e[60] !== x || e[61] !== u || e[62] !== i ? (S = i && !x() && /* @__PURE__ */ o.jsx(Pe, { className: "linkitem", to: i, target: u }), e[60] = x, e[61] = u, e[62] = i, e[63] = S) : S = e[63];
221
+ let L;
222
+ e[64] !== l || e[65] !== h || e[66] !== T || e[67] !== a || e[68] !== p || e[69] !== c || e[70] !== be ? (L = (l || a || c || p) && /* @__PURE__ */ o.jsxs("div", { className: `${h()} -icon-left`, children: [
223
+ be,
224
+ a,
225
+ T(c, p)
226
+ ] }), e[64] = l, e[65] = h, e[66] = T, e[67] = a, e[68] = p, e[69] = c, e[70] = be, e[71] = L) : L = e[71];
227
+ let _;
228
+ e[72] !== w || e[73] !== h || e[74] !== b || e[75] !== f ? (_ = (f || b || w) && /* @__PURE__ */ o.jsxs("div", { className: `${h()}`, children: [
229
+ f && /* @__PURE__ */ o.jsx("p", { className: `${f && "text"}`, children: f }),
230
+ b && /* @__PURE__ */ o.jsx("p", { className: `${b && "subtext"}`, children: b }),
231
+ w
232
+ ] }), e[72] = w, e[73] = h, e[74] = b, e[75] = f, e[76] = _) : _ = e[76];
233
+ let B;
234
+ e[77] !== n || e[78] !== h || e[79] !== T || e[80] !== v || e[81] !== N || e[82] !== y ? (B = (y || N || v || n) && /* @__PURE__ */ o.jsxs("div", { className: `${h()} -icon-right`, children: [
235
+ T(y, N),
236
+ v
237
+ ] }), e[77] = n, e[78] = h, e[79] = T, e[80] = v, e[81] = N, e[82] = y, e[83] = B) : B = e[83];
238
+ let ce;
239
+ return e[84] !== t || e[85] !== D || e[86] !== O || e[87] !== ve || e[88] !== P || e[89] !== S || e[90] !== L || e[91] !== _ || e[92] !== B ? (ce = /* @__PURE__ */ Te("li", { ref: O, style: D, className: ve, ...P, key: t }, S, L, _, B), e[84] = t, e[85] = D, e[86] = O, e[87] = ve, e[88] = P, e[89] = S, e[90] = L, e[91] = _, e[92] = B, e[93] = ce) : ce = e[93], ce;
240
+ }, It = He(Ge);
241
+ export {
242
+ ye as C,
243
+ It as L
244
+ };
@@ -1,23 +1,24 @@
1
- import { j as o } from "../chunks/jsx-runtime.C7wFtzyj.js";
1
+ import { j as l } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as f } from "../chunks/compiler-runtime.Cu50tn6L.js";
2
3
  import "react";
3
4
  import "../buttons/DefaultButton.js";
4
- import n from "../buttons/PrimaryButton.js";
5
- import c from "../icons/index.js";
5
+ import a from "../buttons/PrimaryButton.js";
6
+ import u from "../icons/index.js";
6
7
  import '../assets/button.css';/* empty css */
7
- import s from "./Custom.js";
8
- const j = (t) => {
9
- const { onConfirmClick: r, confirmLabel: m = "Confirmar" } = t, i = [
10
- /* @__PURE__ */ o.jsx(n, { onClick: r, label: m }, "confirm-buttom")
11
- ];
12
- return /* @__PURE__ */ o.jsx(
13
- s,
14
- {
15
- ...t,
16
- buttons: i,
17
- icon: /* @__PURE__ */ o.jsx(c, { name: "exclamation", color: "#f39c12", size: 64 })
18
- }
19
- );
8
+ import x from "./Custom.js";
9
+ const L = (t) => {
10
+ const o = f.c(7), {
11
+ onConfirmClick: i,
12
+ confirmLabel: s
13
+ } = t, n = s === void 0 ? "Confirmar" : s;
14
+ let m;
15
+ o[0] !== n || o[1] !== i ? (m = [/* @__PURE__ */ l.jsx(a, { onClick: i, label: n }, "confirm-buttom")], o[0] = n, o[1] = i, o[2] = m) : m = o[2];
16
+ const c = m;
17
+ let r;
18
+ o[3] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ l.jsx(u, { name: "exclamation", color: "#f39c12", size: 64 }), o[3] = r) : r = o[3];
19
+ let e;
20
+ return o[4] !== c || o[5] !== t ? (e = /* @__PURE__ */ l.jsx(x, { ...t, buttons: c, icon: r }), o[4] = c, o[5] = t, o[6] = e) : e = o[6], e;
20
21
  };
21
22
  export {
22
- j as default
23
+ L as default
23
24
  };