biblio-react 2.2.4 → 2.2.6

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/dist/index.js CHANGED
@@ -22718,12 +22718,15 @@ const $1 = /* @__PURE__ */ o((e) => {
22718
22718
  i,
22719
22719
  (x, O) => Jt(x, {
22720
22720
  onClick: x.props.options ? null : (w) => {
22721
- x.props.onClick && x.props.onClick(w), s(E, x.key);
22721
+ x.props.onClick ? x.props.onClick(w, E) : s(E, x.key);
22722
22722
  },
22723
22723
  options: x.props.options ? x.props.options.map((w) => ({
22724
22724
  ...w,
22725
22725
  onClick: /* @__PURE__ */ o((F) => {
22726
- x.props.onClick && x.props.onClick(F), s(E, w.key);
22726
+ x.props.onClick ? x.props.onClick(F, E) : s(
22727
+ E,
22728
+ w.key
22729
+ );
22727
22730
  }, "onClick")
22728
22731
  })) : null
22729
22732
  })
@@ -26214,11 +26217,30 @@ const _w = /* @__PURE__ */ o((e) => /* @__PURE__ */ f(
26214
26217
  empty: !1,
26215
26218
  title: " ",
26216
26219
  disableSyncWithLocation: !0,
26217
- children: /* @__PURE__ */ B(Tm, { bulkActionButtons: /* @__PURE__ */ f("span", {}), children: [
26218
- /* @__PURE__ */ f(On, { source: "funced", sortable: !0, label: "Cédula" }),
26219
- /* @__PURE__ */ f(On, { source: "funpriape", sortable: !0, label: "Apellido" }),
26220
- /* @__PURE__ */ f(On, { source: "funprinom", sortable: !0, label: "Nombre" })
26221
- ] })
26220
+ sx: {
26221
+ "& .MuiTablePagination-root": {
26222
+ position: "sticky",
26223
+ bottom: 0,
26224
+ zIndex: 1e3,
26225
+ backgroundColor: "white !important"
26226
+ }
26227
+ },
26228
+ children: /* @__PURE__ */ B(
26229
+ Tm,
26230
+ {
26231
+ bulkActionButtons: /* @__PURE__ */ f("span", {}),
26232
+ sx: {
26233
+ "& .RaDatagrid-thead": {
26234
+ display: "table-header-group"
26235
+ }
26236
+ },
26237
+ children: [
26238
+ /* @__PURE__ */ f(On, { source: "funced", sortable: !0, label: "Cédula" }),
26239
+ /* @__PURE__ */ f(On, { source: "funpriape", sortable: !0, label: "Apellido" }),
26240
+ /* @__PURE__ */ f(On, { source: "funprinom", sortable: !0, label: "Nombre" })
26241
+ ]
26242
+ }
26243
+ )
26222
26244
  }
26223
26245
  ), "AsistenteList"), Gw = { fillista: "empcod=-1" }, qw = /* @__PURE__ */ o((e) => {
26224
26246
  const [t, r] = S.useState(Gw), n = ou(), i = we(
@@ -26235,19 +26257,55 @@ const _w = /* @__PURE__ */ o((e) => /* @__PURE__ */ f(
26235
26257
  },
26236
26258
  [n]
26237
26259
  );
26238
- return /* @__PURE__ */ B($e, { display: "flex", flex: 1, alignItems: "flex-start", height: "20em", children: [
26239
- /* @__PURE__ */ f($e, { flexGrow: 1, children: /* @__PURE__ */ f(
26240
- Im,
26241
- {
26242
- id: "funcionarios-treeview",
26243
- dataStructure: "plain",
26244
- rootValue: "",
26245
- onItemClick: i,
26246
- createChildren: l
26247
- }
26248
- ) }),
26249
- /* @__PURE__ */ f($e, { flexGrow: 2, children: /* @__PURE__ */ f(Uw, { resource: "form_224", filter: t }) })
26250
- ] });
26260
+ return /* @__PURE__ */ B(
26261
+ $e,
26262
+ {
26263
+ display: "flex",
26264
+ flex: 1,
26265
+ alignItems: "flex-start",
26266
+ sx: {
26267
+ flexDirection: { xs: "column", md: "row" },
26268
+ height: { xs: "100%", md: "70vh" }
26269
+ },
26270
+ children: [
26271
+ /* @__PURE__ */ f(
26272
+ $e,
26273
+ {
26274
+ flex: { xs: "1 0 auto", md: "0 0 300px" },
26275
+ sx: {
26276
+ overflowY: "auto",
26277
+ height: { xs: "20vh", md: "100%" },
26278
+ width: { xs: "100%", md: "300px" }
26279
+ },
26280
+ children: /* @__PURE__ */ f(
26281
+ Im,
26282
+ {
26283
+ id: "funcionarios-treeview",
26284
+ dataStructure: "plain",
26285
+ rootValue: "",
26286
+ onItemClick: i,
26287
+ createChildren: l,
26288
+ selectionMode: "single"
26289
+ }
26290
+ )
26291
+ }
26292
+ ),
26293
+ /* @__PURE__ */ f(
26294
+ $e,
26295
+ {
26296
+ flexGrow: 1,
26297
+ sx: {
26298
+ maxHeight: "70vh",
26299
+ overflowY: "auto",
26300
+ height: { md: "70vh" },
26301
+ width: { xs: "100%", md: "auto" }
26302
+ },
26303
+ children: /* @__PURE__ */ f(Uw, { resource: "form_224", filter: t })
26304
+ }
26305
+ )
26306
+ ]
26307
+ }
26308
+ );
26251
26309
  }, "TreeWithList"), Kw = /* @__PURE__ */ o((e) => /* @__PURE__ */ f(
26252
26310
  xu,
26253
26311
  {
@@ -26261,7 +26319,6 @@ const _w = /* @__PURE__ */ o((e) => /* @__PURE__ */ f(
26261
26319
  isLoading: r,
26262
26320
  title: n,
26263
26321
  cancel: i = "ra.action.cancel",
26264
- //confirmColor = 'primary',
26265
26322
  ConfirmIcon: l = ts,
26266
26323
  CancelIcon: s = os,
26267
26324
  onClose: c,
@@ -26357,7 +26414,11 @@ const _w = /* @__PURE__ */ o((e) => /* @__PURE__ */ f(
26357
26414
  {
26358
26415
  display: "flex",
26359
26416
  alignItems: "center",
26360
- sx: { ...s, display: "inline-flex", margin: 1 },
26417
+ sx: {
26418
+ ...s,
26419
+ display: "inline-flex",
26420
+ width: { xs: "100%", md: "auto" }
26421
+ },
26361
26422
  children: /* @__PURE__ */ f(
26362
26423
  Or,
26363
26424
  {