fui-material 2.8.7 → 2.8.9

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
@@ -63,6 +63,20 @@ npm run build
63
63
  npm run lint
64
64
  ```
65
65
 
66
+ ## Для graphify
67
+
68
+ ### Запуск сервера оновления
69
+
70
+ ```bash
71
+ graphify watch .
72
+ ```
73
+
74
+ ### Обновление
75
+
76
+ ```bash
77
+ graphify update .
78
+ ```
79
+
66
80
  ## 📄 Лицензия
67
81
 
68
- ISC © Allori
82
+ ISC © Allori
@@ -713,39 +713,39 @@ const FPaper = ({
713
713
  );
714
714
  };
715
715
  const TableControlsContext = createContext({ query: "", sort: null });
716
- const left$1 = "_left_jup4u_79";
717
- const center = "_center_jup4u_82";
718
- const right = "_right_jup4u_85";
719
- const justify = "_justify_jup4u_88";
720
- const more = "_more_jup4u_196";
716
+ const left$1 = "_left_18u6h_77";
717
+ const center = "_center_18u6h_80";
718
+ const right = "_right_18u6h_83";
719
+ const justify = "_justify_18u6h_86";
720
+ const more = "_more_18u6h_194";
721
721
  const styles$t = {
722
- "f-table-component": "_f-table-component_jup4u_1",
723
- "f-table-component__table": "_f-table-component__table_jup4u_13",
724
- "f-table-component__table_header": "_f-table-component__table_header_jup4u_23",
725
- "is-sticky": "_is-sticky_jup4u_27",
726
- "f-table-component__table_header-cell": "_f-table-component__table_header-cell_jup4u_33",
727
- "f-table-component__table_body-cell": "_f-table-component__table_body-cell_jup4u_33",
728
- "f-table-component__table_body": "_f-table-component__table_body_jup4u_33",
729
- "f-table-component__table_row": "_f-table-component__table_row_jup4u_62",
730
- "f-table-component__table_row_no-hover": "_f-table-component__table_row_no-hover_jup4u_62",
731
- "f-table-component__table_footer": "_f-table-component__table_footer_jup4u_68",
722
+ "f-table-component": "_f-table-component_18u6h_1",
723
+ "f-table-component__table": "_f-table-component__table_18u6h_14",
724
+ "f-table-component__table_header": "_f-table-component__table_header_18u6h_22",
725
+ "is-sticky": "_is-sticky_18u6h_26",
726
+ "f-table-component__table_header-cell": "_f-table-component__table_header-cell_18u6h_32",
727
+ "f-table-component__table_body-cell": "_f-table-component__table_body-cell_18u6h_32",
728
+ "f-table-component__table_body": "_f-table-component__table_body_18u6h_32",
729
+ "f-table-component__table_row": "_f-table-component__table_row_18u6h_60",
730
+ "f-table-component__table_row_no-hover": "_f-table-component__table_row_no-hover_18u6h_60",
731
+ "f-table-component__table_footer": "_f-table-component__table_footer_18u6h_66",
732
732
  left: left$1,
733
733
  center,
734
734
  right,
735
735
  justify,
736
- "cell-text": "_cell-text_jup4u_92",
737
- "cell-preview-text": "_cell-preview-text_jup4u_113",
738
- "cell-preview": "_cell-preview_jup4u_113",
739
- "cell-reveal": "_cell-reveal_jup4u_170",
736
+ "cell-text": "_cell-text_18u6h_90",
737
+ "cell-preview-text": "_cell-preview-text_18u6h_111",
738
+ "cell-preview": "_cell-preview_18u6h_111",
739
+ "cell-reveal": "_cell-reveal_18u6h_168",
740
740
  more,
741
- "row-menu": "_row-menu_jup4u_227",
742
- "table-tools": "_table-tools_jup4u_319",
743
- "table-search": "_table-search_jup4u_325",
744
- "table-sort": "_table-sort_jup4u_360",
745
- "table-empty": "_table-empty_jup4u_388",
746
- "cell-tooltip-anchor": "_cell-tooltip-anchor_jup4u_395",
747
- "cell-tooltip": "_cell-tooltip_jup4u_395",
748
- "cell-tooltip-in": "_cell-tooltip-in_jup4u_1"
741
+ "row-menu": "_row-menu_18u6h_225",
742
+ "table-tools": "_table-tools_18u6h_317",
743
+ "table-search": "_table-search_18u6h_323",
744
+ "table-sort": "_table-sort_18u6h_358",
745
+ "table-empty": "_table-empty_18u6h_386",
746
+ "cell-tooltip-anchor": "_cell-tooltip-anchor_18u6h_393",
747
+ "cell-tooltip": "_cell-tooltip_18u6h_393",
748
+ "cell-tooltip-in": "_cell-tooltip-in_18u6h_1"
749
749
  };
750
750
  const FTableHead = ({
751
751
  st,
@@ -982,6 +982,8 @@ const FTable = ({
982
982
  layout = "auto",
983
983
  // Добавляем новый пропс с дефолтным значением 'auto'
984
984
  searchable = false,
985
+ width,
986
+ minWidth,
985
987
  ...props
986
988
  }) => {
987
989
  const tableWrapperRef = useRef(null);
@@ -1039,7 +1041,12 @@ const FTable = ({
1039
1041
  children: /* @__PURE__ */ jsx(
1040
1042
  "table",
1041
1043
  {
1042
- style: { ...st, tableLayout: layout },
1044
+ style: {
1045
+ tableLayout: layout,
1046
+ ...width !== void 0 ? { width } : {},
1047
+ ...minWidth !== void 0 ? { minWidth } : {},
1048
+ ...st
1049
+ },
1043
1050
  ...props,
1044
1051
  className: `table ${styles$t["f-table-component__table"]} ${props.className || ""}`,
1045
1052
  children: React.Children.map(children, (child) => {
@@ -1106,17 +1113,23 @@ const FTableHeaderCell = ({
1106
1113
  children,
1107
1114
  textAlignment,
1108
1115
  // По умолчанию выравнивания нет
1109
- width = "auto",
1110
- // По умолчанию ширина автоматическая
1116
+ width,
1117
+ minWidth,
1118
+ maxWidth,
1119
+ height,
1111
1120
  sortKey,
1112
1121
  ...props
1113
1122
  }) => {
1114
1123
  const { sort, toggleSort } = useContext(TableControlsContext);
1115
1124
  const sortable = Boolean(sortKey && toggleSort);
1116
1125
  const direction = (sort == null ? void 0 : sort.key) === sortKey ? sort == null ? void 0 : sort.direction : void 0;
1126
+ const resolvedMinWidth = minWidth !== void 0 ? minWidth : width !== void 0 && width !== "auto" && !String(width).includes("%") ? width : void 0;
1117
1127
  const style = {
1118
1128
  textAlign: textAlignment,
1119
- width,
1129
+ ...width !== void 0 ? { width } : {},
1130
+ ...resolvedMinWidth !== void 0 ? { minWidth: resolvedMinWidth } : {},
1131
+ ...maxWidth !== void 0 ? { maxWidth } : {},
1132
+ ...height !== void 0 ? { height } : {},
1120
1133
  ...st
1121
1134
  };
1122
1135
  return /* @__PURE__ */ jsx(
@@ -1226,7 +1239,10 @@ const FTableDataCell = ({
1226
1239
  col,
1227
1240
  children,
1228
1241
  textAlignment,
1229
- height = "auto",
1242
+ width,
1243
+ minWidth,
1244
+ maxWidth,
1245
+ height,
1230
1246
  truncate,
1231
1247
  sortKey: _sortKey,
1232
1248
  sortValue: _sortValue,
@@ -1239,9 +1255,13 @@ const FTableDataCell = ({
1239
1255
  const text = typeof children === "string" || typeof children === "number" ? String(children) : null;
1240
1256
  const limit = truncateAt !== void 0 && Number.isFinite(truncateAt) && truncateAt >= 1 ? Math.floor(truncateAt) : truncate ? 40 : void 0;
1241
1257
  const collapsible = truncate !== false && limit !== void 0 && text !== null && text.length > limit;
1258
+ const resolvedMinWidth = minWidth !== void 0 ? minWidth : width !== void 0 && width !== "auto" && !String(width).includes("%") ? width : void 0;
1242
1259
  const style = {
1243
1260
  textAlign: textAlignment,
1244
- height,
1261
+ ...width !== void 0 ? { width } : {},
1262
+ ...resolvedMinWidth !== void 0 ? { minWidth: resolvedMinWidth } : {},
1263
+ ...maxWidth !== void 0 ? { maxWidth } : {},
1264
+ ...height !== void 0 ? { height } : {},
1245
1265
  ...st
1246
1266
  };
1247
1267
  return /* @__PURE__ */ jsx(