@addsign/moje-agenda-shared-lib 0.0.99 → 0.0.100

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.
@@ -931,8 +931,8 @@ video {
931
931
  .min-w-\[100px\] {
932
932
  min-width: 100px;
933
933
  }
934
- .max-w-\[300px\] {
935
- max-width: 300px;
934
+ .min-w-\[180px\] {
935
+ min-width: 180px;
936
936
  }
937
937
  .max-w-full {
938
938
  max-width: 100%;
@@ -1655,6 +1655,12 @@ video {
1655
1655
  padding-top: 1px;
1656
1656
  padding-bottom: 1px;
1657
1657
  }
1658
+ .\!pl-\[8px\] {
1659
+ padding-left: 8px !important;
1660
+ }
1661
+ .\!pr-8 {
1662
+ padding-right: 2rem !important;
1663
+ }
1658
1664
  .pb-0 {
1659
1665
  padding-bottom: 0px;
1660
1666
  }
@@ -7,6 +7,7 @@ import FormField from "../form/FormField.js";
7
7
  import InputField from "../form/InputField.js";
8
8
  import SelectField from "../form/SelectField.js";
9
9
  import Spinner from "../Spinner.js";
10
+ import DateRangeField from "../form/DateRangeField.js";
10
11
  import "../../index.esm-DjnEVdAW.js";
11
12
  import "../../contexts/FederationContext.js";
12
13
  import { useFederationContext } from "../../contexts/useFederationContext.js";
@@ -22026,45 +22027,69 @@ function DataTableServer({
22026
22027
  showColFilters && columns.findIndex((it) => it.filterType) > -1 && /* @__PURE__ */ jsxs("tr", { children: [
22027
22028
  data && bulkAction && /* @__PURE__ */ jsx("td", { children: " " }),
22028
22029
  columns.map(
22029
- ({ key, header, filterType, filterParam, width }) => /* @__PURE__ */ jsxs(
22030
+ ({
22031
+ key,
22032
+ header,
22033
+ filterType,
22034
+ filterParam,
22035
+ filterParam2,
22036
+ width
22037
+ }) => /* @__PURE__ */ jsx(
22030
22038
  "th",
22031
22039
  {
22032
22040
  id: String(key) + "_filter",
22033
22041
  className: `font-medium leading-9 text-xs text-left p-0 pb-1 text-gray-600 overflow-ellipsis whitespace-nowrap ${!title && !subtitle ? "border-t-0" : ""}`,
22034
22042
  style: { width },
22035
- children: [
22036
- filterType && filterType === "select" && /* @__PURE__ */ jsx(
22037
- SelectField,
22038
- {
22039
- label: header,
22040
- name: String(key) + "_filter",
22041
- onInputChange: (e) => filterHandler(
22042
- filterParam,
22043
- e.target.value
22044
- ),
22045
- type: filterType,
22046
- options: filterOptions[String(filterParam)] || [],
22047
- value: (columnFilters == null ? void 0 : columnFilters[String(filterParam)]) || "",
22048
- clearable: true,
22049
- className: "px-1"
22050
- }
22051
- ),
22052
- filterType && filterType !== "select" && /* @__PURE__ */ jsx(
22053
- InputField,
22054
- {
22055
- label: header,
22056
- name: String(key) + "_filter",
22057
- onInputChange: (e) => filterHandler(
22058
- filterParam,
22059
- e.target.value
22060
- ),
22061
- type: filterType,
22062
- value: (columnFilters == null ? void 0 : columnFilters[String(filterParam)]) || "",
22063
- clearable: true,
22064
- className: "max-w-[300px] min-w-[100px] px-1"
22065
- }
22066
- )
22067
- ]
22043
+ children: filterType === "select" ? /* @__PURE__ */ jsx(
22044
+ SelectField,
22045
+ {
22046
+ label: header,
22047
+ name: String(key) + "_filter",
22048
+ onInputChange: (e) => filterHandler(
22049
+ filterParam,
22050
+ e.target.value
22051
+ ),
22052
+ type: filterType,
22053
+ options: filterOptions[String(filterParam)] || [],
22054
+ value: (columnFilters == null ? void 0 : columnFilters[String(filterParam)]) || "",
22055
+ clearable: true,
22056
+ className: "px-1"
22057
+ }
22058
+ ) : filterType === "dateRange" ? /* @__PURE__ */ jsx(
22059
+ DateRangeField,
22060
+ {
22061
+ label: header,
22062
+ name: String(filterParam),
22063
+ nameEnd: String(filterParam2),
22064
+ onInputChange: (e) => filterHandler(
22065
+ e.target.name,
22066
+ e.target.value
22067
+ ),
22068
+ type: filterType,
22069
+ options: filterOptions[String(filterParam)] || [],
22070
+ value: {
22071
+ startDate: (columnFilters == null ? void 0 : columnFilters[String(filterParam)]) || "",
22072
+ endDate: (columnFilters == null ? void 0 : columnFilters[String(filterParam2)]) || ""
22073
+ },
22074
+ clearable: true,
22075
+ className: "px-1",
22076
+ placeholder: "Zvolte období"
22077
+ }
22078
+ ) : /* @__PURE__ */ jsx(
22079
+ InputField,
22080
+ {
22081
+ label: header,
22082
+ name: String(key) + "_filter",
22083
+ onInputChange: (e) => filterHandler(
22084
+ filterParam,
22085
+ e.target.value
22086
+ ),
22087
+ type: filterType,
22088
+ value: (columnFilters == null ? void 0 : columnFilters[String(filterParam)]) || "",
22089
+ clearable: true,
22090
+ className: " min-w-[100px] px-1"
22091
+ }
22092
+ )
22068
22093
  },
22069
22094
  String(key) + "_filter"
22070
22095
  )