scorer-ui-kit 3.0.5 → 3.0.7

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 (59) hide show
  1. package/dist/Alerts/atom/AlertBar.d.ts +4 -4
  2. package/dist/Alerts/atom/AlertBar.d.ts.map +1 -1
  3. package/dist/CameraPanels/molecules/CameraPanel.d.ts +4 -4
  4. package/dist/CameraPanels/molecules/CameraPanel.d.ts.map +1 -1
  5. package/dist/Form/atoms/Label.d.ts +4 -4
  6. package/dist/Form/atoms/Label.d.ts.map +1 -1
  7. package/dist/Form/atoms/SelectField.d.ts +3 -1
  8. package/dist/Form/atoms/SelectField.d.ts.map +1 -1
  9. package/dist/Global/atoms/ContextItem.d.ts.map +1 -1
  10. package/dist/Global/atoms/Layout.d.ts +17 -14
  11. package/dist/Global/atoms/Layout.d.ts.map +1 -1
  12. package/dist/Global/atoms/TopBarBadge.d.ts.map +1 -1
  13. package/dist/Global/molecules/Sidebar.d.ts +12 -4
  14. package/dist/Global/molecules/Sidebar.d.ts.map +1 -1
  15. package/dist/Icons/Icon.d.ts +6 -2
  16. package/dist/Icons/Icon.d.ts.map +1 -1
  17. package/dist/{LineUIVideoBase-CJ61ZqPJ.mjs → LineUIVideoBase-Bo0pvCP-.mjs} +18 -12
  18. package/dist/{LineUIVideoBase-CJ61ZqPJ.mjs.map → LineUIVideoBase-Bo0pvCP-.mjs.map} +1 -1
  19. package/dist/{LineUIVideoBase-VxlYHeJG.js → LineUIVideoBase-DmQtfhyc.js} +19 -13
  20. package/dist/{LineUIVideoBase-VxlYHeJG.js.map → LineUIVideoBase-DmQtfhyc.js.map} +1 -1
  21. package/dist/Misc/atoms/MediaBox.d.ts +4 -5
  22. package/dist/Misc/atoms/MediaBox.d.ts.map +1 -1
  23. package/dist/Misc/atoms/Tag.d.ts +4 -8
  24. package/dist/Misc/atoms/Tag.d.ts.map +1 -1
  25. package/dist/Misc/molecules/TagList.d.ts +3 -1
  26. package/dist/Misc/molecules/TagList.d.ts.map +1 -1
  27. package/dist/Tabs/TabList.d.ts +3 -1
  28. package/dist/Tabs/TabList.d.ts.map +1 -1
  29. package/dist/hls.js +1 -2
  30. package/dist/hls.js.map +1 -1
  31. package/dist/hls.modern.js +1 -2
  32. package/dist/hls.modern.js.map +1 -1
  33. package/dist/index.js +152 -115
  34. package/dist/index.js.map +1 -1
  35. package/dist/index.modern.js +629 -583
  36. package/dist/index.modern.js.map +1 -1
  37. package/dist/svg/AvatarPlaceholder.d.ts +1 -1
  38. package/dist/svg/AvatarPlaceholder.d.ts.map +1 -1
  39. package/dist/svg/Invalid.d.ts +1 -1
  40. package/dist/svg/Invalid.d.ts.map +1 -1
  41. package/dist/svg/LogoMark.d.ts +1 -1
  42. package/dist/svg/LogoMark.d.ts.map +1 -1
  43. package/dist/svg/LogoText.d.ts +1 -1
  44. package/dist/svg/LogoText.d.ts.map +1 -1
  45. package/dist/svg/NoImage.d.ts +1 -1
  46. package/dist/svg/NoImage.d.ts.map +1 -1
  47. package/dist/svg/NoImageBig.d.ts +1 -1
  48. package/dist/svg/NoImageBig.d.ts.map +1 -1
  49. package/dist/svg/PasswordHide.d.ts +1 -1
  50. package/dist/svg/PasswordHide.d.ts.map +1 -1
  51. package/dist/svg/PasswordShow.d.ts +1 -1
  52. package/dist/svg/PasswordShow.d.ts.map +1 -1
  53. package/dist/svg/Required.d.ts +1 -1
  54. package/dist/svg/Required.d.ts.map +1 -1
  55. package/dist/svg/Success.d.ts +1 -1
  56. package/dist/svg/Success.d.ts.map +1 -1
  57. package/dist/svg/checkmark.d.ts +1 -1
  58. package/dist/svg/checkmark.d.ts.map +1 -1
  59. package/package.json +13 -13
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_LineUIVideoBase = require("./LineUIVideoBase-VxlYHeJG.js");
2
+ const require_LineUIVideoBase = require("./LineUIVideoBase-DmQtfhyc.js");
3
3
  let styled_components = require("styled-components");
4
4
  styled_components = require_LineUIVideoBase.__toESM(styled_components);
5
5
  let react = require("react");
@@ -2972,7 +2972,10 @@ var Tooltip = ({ icon, message, type, tooltipFor, tooltipPosition, maxWidth }) =
2972
2972
  setVisible(false);
2973
2973
  }, []);
2974
2974
  const updateCoords = (0, react.useCallback)(() => {
2975
- if (tooltipFor?.current) setCoords(tooltipFor.current.getBoundingClientRect());
2975
+ if (tooltipFor?.current) {
2976
+ const rect = tooltipFor.current.getBoundingClientRect();
2977
+ setCoords(rect);
2978
+ }
2976
2979
  }, [tooltipFor]);
2977
2980
  (0, react.useEffect)(() => {
2978
2981
  let currentRef = null;
@@ -4441,8 +4444,10 @@ var nearMark = (value, marks) => {
4441
4444
  */
4442
4445
  var getValidMin = (max, min) => {
4443
4446
  if (!max && !min) return 0;
4444
- if (!min) if (max > 0) return 0;
4445
- else return max - 1;
4447
+ if (!min) {
4448
+ if (max > 0) return 0;
4449
+ else return max - 1;
4450
+ }
4446
4451
  return min;
4447
4452
  };
4448
4453
  /**
@@ -4465,7 +4470,7 @@ var getMarkAlignment = (value, min, max) => {
4465
4470
  };
4466
4471
  var renderMarks = (markList, min, max, listTag, allMarkCentered) => {
4467
4472
  const listOptions = [];
4468
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react.Fragment, { children: [markList.map(({ value, label }, index) => {
4473
+ const marksElements = markList.map(({ value, label }, index) => {
4469
4474
  const left = index === markList.length - 1 ? 100 : valueToPercent(value, min, max);
4470
4475
  listOptions.push(/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", { children: value }, `option-${value}`));
4471
4476
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Mark, {
@@ -4476,7 +4481,8 @@ var renderMarks = (markList, min, max, listTag, allMarkCentered) => {
4476
4481
  $alignment: allMarkCentered ? "center" : getMarkAlignment(value, min, max),
4477
4482
  children: label
4478
4483
  })] }, `mark-${value}`);
4479
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("datalist", {
4484
+ });
4485
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react.Fragment, { children: [marksElements, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("datalist", {
4480
4486
  id: listTag,
4481
4487
  children: listOptions
4482
4488
  })] });
@@ -4485,7 +4491,8 @@ var ghostThumbValue = 0;
4485
4491
  var SliderInput = ({ min, max, marks, defaultValue, thumbColor = "info", disabled = false, onlyMarkSelect = false, inputCallback = () => {}, onChangeCallback = () => {}, allMarkCentered = false, showValue: _showValue, children, formAction, ...props }) => {
4486
4492
  const maxValid = getValidMax(max, min);
4487
4493
  const minValid = getValidMin(max, min);
4488
- const [selectedValue, setSelectedValue] = (0, react.useState)(defaultValue && isInsideRange(defaultValue, minValid, maxValid) ? defaultValue : minValid);
4494
+ const initValue = defaultValue && isInsideRange(defaultValue, minValid, maxValid) ? defaultValue : minValid;
4495
+ const [selectedValue, setSelectedValue] = (0, react.useState)(initValue);
4489
4496
  const [isGhostActive, setIsGhostActive] = (0, react.useState)(false);
4490
4497
  const thumbValueRef = (0, react.useRef)(thumbLeftPosition(selectedValue, minValid, maxValid));
4491
4498
  if (marks && onlyMarkSelect) ghostThumbValue = thumbLeftPosition(nearMark(selectedValue, marks), minValid, maxValid);
@@ -5179,13 +5186,15 @@ var ButtonsStack = ({ buttons }) => {
5179
5186
  //#region src/helpers/cropToolHelpers.ts
5180
5187
  var updateCursorStyle = (left, top, width, height, clientX, clientY) => {
5181
5188
  let cursorStyle = "default";
5182
- if (clientY - top < 5) if (width - (clientX - left) < 5) cursorStyle = "ne-resize";
5183
- else if (clientX - left < 5) cursorStyle = "nw-resize";
5184
- else cursorStyle = "n-resize";
5185
- else if (height - (clientY - top) < 5) if (width - (clientX - left) < 5) cursorStyle = "se-resize";
5186
- else if (clientX - left < 5) cursorStyle = "sw-resize";
5187
- else cursorStyle = "s-resize";
5188
- else if (width - (clientX - left) < 5) cursorStyle = "e-resize";
5189
+ if (clientY - top < 5) {
5190
+ if (width - (clientX - left) < 5) cursorStyle = "ne-resize";
5191
+ else if (clientX - left < 5) cursorStyle = "nw-resize";
5192
+ else cursorStyle = "n-resize";
5193
+ } else if (height - (clientY - top) < 5) {
5194
+ if (width - (clientX - left) < 5) cursorStyle = "se-resize";
5195
+ else if (clientX - left < 5) cursorStyle = "sw-resize";
5196
+ else cursorStyle = "s-resize";
5197
+ } else if (width - (clientX - left) < 5) cursorStyle = "e-resize";
5189
5198
  else if (clientX - left < 5) cursorStyle = "w-resize";
5190
5199
  else cursorStyle = "move";
5191
5200
  return cursorStyle;
@@ -5277,8 +5286,6 @@ var updateCropValues = (oldSelection, newX, newY) => {
5277
5286
  case "move":
5278
5287
  updatedTop = oldSelection.cropTop + diffY;
5279
5288
  updatedLeft = oldSelection.cropLeft + diffX;
5280
- break;
5281
- default: break;
5282
5289
  }
5283
5290
  const width = clamp(updatedWidth, 0, oldSelection.imgWidth);
5284
5291
  const height = clamp(updatedHeight, 0, oldSelection.imgHeight);
@@ -5331,8 +5338,6 @@ var updateCropWithAspect = (oldSelection, newX, newY, aspectRatio) => {
5331
5338
  case "move":
5332
5339
  updatedTop = oldSelection.cropTop + diffY;
5333
5340
  updatedLeft = oldSelection.cropLeft + diffX;
5334
- break;
5335
- default: break;
5336
5341
  }
5337
5342
  /**img values only change if the image is updated */
5338
5343
  const imgBoundLeft = clamp(updatedLeft, oldSelection.imgLeft, oldSelection.imgWidth - oldSelection.cropWidth + oldSelection.imgLeft);
@@ -5866,7 +5871,7 @@ var getValueTitle = (value, timeUnit, timeFormat) => {
5866
5871
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Unit, { children: unit })] });
5867
5872
  }
5868
5873
  const timeValues = getTimeValues(value, timeUnit);
5869
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ValueTitle$1, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TitleTemplate, { children: timeFormat.split(/(\[H+\]|\[M+\]|\[S+\])/).map((part, index) => {
5874
+ const updatedTitle = timeFormat.split(/(\[H+\]|\[M+\]|\[S+\])/).map((part, index) => {
5870
5875
  switch (part) {
5871
5876
  case "[HH]": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: timeValues.hours.toString().padStart(2, "0") }, index);
5872
5877
  case "[H]": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: timeValues.hours }, index);
@@ -5876,7 +5881,8 @@ var getValueTitle = (value, timeUnit, timeFormat) => {
5876
5881
  case "[S]": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: timeValues.seconds }, index);
5877
5882
  default: return part.replace(/\s+/g, "\xA0");
5878
5883
  }
5879
- }) }) });
5884
+ });
5885
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ValueTitle$1, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TitleTemplate, { children: updatedTitle }) });
5880
5886
  };
5881
5887
  var DurationSlider = ({ max, min, defaultValue = 0, title = "", timeUnit, controlledValue, inputCallback, timeFormat, ...props }) => {
5882
5888
  const [selectedValue, setSelectedValue] = (0, react.useState)(defaultValue);
@@ -6272,10 +6278,11 @@ var useModal = () => {
6272
6278
  const { modalProps, setModalProps } = (0, react.useContext)(ModalContext);
6273
6279
  const setModalOpen = (0, react.useCallback)((newStatus) => {
6274
6280
  if (newStatus === void 0) return;
6275
- setModalProps({
6281
+ const updateProps = {
6276
6282
  ...modalProps,
6277
6283
  isOpen: newStatus
6278
- });
6284
+ };
6285
+ setModalProps(updateProps);
6279
6286
  }, [modalProps, setModalProps]);
6280
6287
  const onDismiss = (0, react.useCallback)(() => {
6281
6288
  setModalOpen(false);
@@ -6286,7 +6293,7 @@ var useModal = () => {
6286
6293
  isOpen: true,
6287
6294
  onDismiss
6288
6295
  });
6289
- setModalProps({
6296
+ const updateProps = {
6290
6297
  isOpen: true,
6291
6298
  closeText: modal?.closeText,
6292
6299
  isCloseEnable: modal?.isCloseEnable,
@@ -6295,7 +6302,8 @@ var useModal = () => {
6295
6302
  dismissCallback: modal?.dismissCallback,
6296
6303
  customComponent: modal?.customComponent,
6297
6304
  onDismiss
6298
- });
6305
+ };
6306
+ setModalProps(updateProps);
6299
6307
  }, [onDismiss, setModalProps]),
6300
6308
  isModalOpen: modalProps.isOpen,
6301
6309
  setModalOpen
@@ -6385,10 +6393,11 @@ var NotificationProvider = ({ children }) => {
6385
6393
  setActiveNotification(null);
6386
6394
  showNotification();
6387
6395
  };
6388
- setActiveNotification({
6396
+ const displayedNotification = {
6389
6397
  ...nextNotification,
6390
6398
  closeCallback: updateOnClose
6391
- });
6399
+ };
6400
+ setActiveNotification(displayedNotification);
6392
6401
  }, []);
6393
6402
  const sendNotification = (0, react.useCallback)(async (newNotification) => {
6394
6403
  const validNotification = {
@@ -8291,11 +8300,14 @@ var DatePicker = ({ dateMode = "interval", timeMode = "interval", dateTimeTextUp
8291
8300
  */
8292
8301
  const onCellClick = (0, react.useCallback)((day) => {
8293
8302
  const validRange = selectedRange ? selectedRange : TODAY_INTERVAL;
8294
- if (dateMode === "single") setSelectedRange({
8295
- start: updateDay(validRange.start, day),
8296
- end: updateDay(validRange.end, day)
8297
- });
8298
- else if (targetedDate === "end" && (0, date_fns.isAfter)(day, validRange.start)) {
8303
+ if (dateMode === "single") {
8304
+ const start = updateDay(validRange.start, day);
8305
+ const end = updateDay(validRange.end, day);
8306
+ setSelectedRange({
8307
+ start,
8308
+ end
8309
+ });
8310
+ } else if (targetedDate === "end" && (0, date_fns.isAfter)(day, validRange.start)) {
8299
8311
  const end = updateDay(validRange.end, day);
8300
8312
  setSelectedRange({
8301
8313
  ...validRange,
@@ -8303,9 +8315,11 @@ var DatePicker = ({ dateMode = "interval", timeMode = "interval", dateTimeTextUp
8303
8315
  });
8304
8316
  setTargetedDate("done");
8305
8317
  } else if (targetedDate === "start" || targetedDate === "end" || targetedDate === "done") {
8318
+ const start = updateDay(validRange.start, day);
8319
+ const end = updateDay(validRange.end, day);
8306
8320
  setSelectedRange({
8307
- start: updateDay(validRange.start, day),
8308
- end: updateDay(validRange.end, day)
8321
+ start,
8322
+ end
8309
8323
  });
8310
8324
  setTargetedDate("end");
8311
8325
  }
@@ -8316,9 +8330,10 @@ var DatePicker = ({ dateMode = "interval", timeMode = "interval", dateTimeTextUp
8316
8330
  ]);
8317
8331
  (0, react.useEffect)(() => {
8318
8332
  const { start, end } = selectedRange ? selectedRange : TODAY_INTERVAL;
8319
- if (timeMode === "interval" && (0, date_fns.isAfter)((0, date_fns.add)(start, { minutes: 1 }), end)) if ((0, date_fns.isEqual)(end, (0, date_fns.endOfDay)(start)) && end.getSeconds() > 0) setIsTimeRangeValid(true);
8320
- else setIsTimeRangeValid(false);
8321
- else setIsTimeRangeValid(true);
8333
+ if (timeMode === "interval" && (0, date_fns.isAfter)((0, date_fns.add)(start, { minutes: 1 }), end)) {
8334
+ if ((0, date_fns.isEqual)(end, (0, date_fns.endOfDay)(start)) && end.getSeconds() > 0) setIsTimeRangeValid(true);
8335
+ else setIsTimeRangeValid(false);
8336
+ } else setIsTimeRangeValid(true);
8322
8337
  }, [selectedRange, timeMode]);
8323
8338
  const updateStartDate = (0, react.useCallback)((start) => {
8324
8339
  const { end } = selectedRange ? selectedRange : TODAY_INTERVAL;
@@ -8381,10 +8396,11 @@ var DatePicker = ({ dateMode = "interval", timeMode = "interval", dateTimeTextUp
8381
8396
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalHCell, { children: label }, key);
8382
8397
  }) }),
8383
8398
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalBody, { children: weeksOfMonth.map((week) => {
8384
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalRow, { children: (0, date_fns.eachDayOfInterval)({
8399
+ const days = (0, date_fns.eachDayOfInterval)({
8385
8400
  start: week,
8386
8401
  end: (0, date_fns.endOfWeek)(week)
8387
- }).map((day) => {
8402
+ });
8403
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CalRow, { children: days.map((day) => {
8388
8404
  const dayState = cellState(day, selectedRange);
8389
8405
  const isTodayValue = (0, date_fns.isToday)(day);
8390
8406
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(CalCellB, {
@@ -8428,10 +8444,12 @@ var cellState = (day, interval, _hoverDate) => {
8428
8444
  } catch (_error) {
8429
8445
  isInsideInterval = false;
8430
8446
  }
8431
- if (isInsideInterval || (0, date_fns.isSameDay)(interval.start, day)) if (singleDayRange) state = "single";
8432
- else if ((0, date_fns.isSameDay)(interval.start, day)) state = "start";
8433
- else if ((0, date_fns.isSameDay)(interval.end, day)) state = "end";
8434
- else state = "inside";
8447
+ if (isInsideInterval || (0, date_fns.isSameDay)(interval.start, day)) {
8448
+ if (singleDayRange) state = "single";
8449
+ else if ((0, date_fns.isSameDay)(interval.start, day)) state = "start";
8450
+ else if ((0, date_fns.isSameDay)(interval.end, day)) state = "end";
8451
+ else state = "inside";
8452
+ }
8435
8453
  return state;
8436
8454
  };
8437
8455
  var updateDay = (date, target) => {
@@ -9180,7 +9198,8 @@ var FilterDropdown = ({ buttonIcon, buttonText, list, selected = null, disabled
9180
9198
  setVisibleList(selectedOrderList(list, maxDisplayedItems, tempSelected, isSortAscending));
9181
9199
  return;
9182
9200
  }
9183
- setVisibleList(selectedOrderList(getFilteredList(list, value), maxDisplayedItems, null, isSortAscending));
9201
+ const newList = getFilteredList(list, value);
9202
+ setVisibleList(selectedOrderList(newList, maxDisplayedItems, null, isSortAscending));
9184
9203
  }, [
9185
9204
  isSortAscending,
9186
9205
  list,
@@ -9482,8 +9501,13 @@ var FilterInputs = ({ hasShowMore = false, searchFilters = [], datePickerFilters
9482
9501
  setShowMoreDropdowns((prev) => !prev);
9483
9502
  }, []);
9484
9503
  const handleVisibleSearch = (0, react.useCallback)((searchId) => {
9485
- if (visibleSearchInputs.includes(searchId)) setVisibleSearchInputs(visibleSearchInputs.filter((id) => searchId !== id));
9486
- else setVisibleSearchInputs([...visibleSearchInputs, searchId]);
9504
+ if (visibleSearchInputs.includes(searchId)) {
9505
+ const newVisible = visibleSearchInputs.filter((id) => searchId !== id);
9506
+ setVisibleSearchInputs(newVisible);
9507
+ } else {
9508
+ const newVisible = [...visibleSearchInputs, searchId];
9509
+ setVisibleSearchInputs(newVisible);
9510
+ }
9487
9511
  }, [visibleSearchInputs]);
9488
9512
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Container$39, {
9489
9513
  ...props,
@@ -10890,7 +10914,7 @@ var LineUI$1 = ({ ws, onSizeChange = () => {}, onLineMoveEnd = () => {}, onLineC
10890
10914
  (0, react.useEffect)(() => {
10891
10915
  if (!frame.current || !loaded) return;
10892
10916
  const { viewBox } = frame.current;
10893
- setBoundaries({
10917
+ const bounds = {
10894
10918
  x: {
10895
10919
  min: viewBox.baseVal.x + boundaryOffset,
10896
10920
  max: viewBox.baseVal.x + viewBox.baseVal.width - boundaryOffset
@@ -10899,7 +10923,8 @@ var LineUI$1 = ({ ws, onSizeChange = () => {}, onLineMoveEnd = () => {}, onLineC
10899
10923
  min: viewBox.baseVal.y + boundaryOffset,
10900
10924
  max: viewBox.baseVal.y + viewBox.baseVal.height - boundaryOffset
10901
10925
  }
10902
- });
10926
+ };
10927
+ setBoundaries(bounds);
10903
10928
  }, [loaded, boundaryOffset]);
10904
10929
  const onLoadedMetadata = (0, react.useCallback)(({ target }) => {
10905
10930
  if (target) {
@@ -11001,7 +11026,7 @@ var IntroductionText = ({ children }) => {
11001
11026
  //#region src/Pages/atoms/PageTitle.tsx
11002
11027
  var ICON_SIZE = 24;
11003
11028
  var GAP_LEFT = 20;
11004
- var ICON_MARGIN_LEFT = -20 - ICON_SIZE;
11029
+ var ICON_MARGIN_LEFT = -44;
11005
11030
  var Container$30 = styled_components.default.div`
11006
11031
  position: relative;
11007
11032
  display: flex;
@@ -11778,8 +11803,9 @@ var TypeTableRow = ({ selectable = false, selectCallback, hasStatus, hasThumbnai
11778
11803
  const wrappedSelectCallback = (0, react.useCallback)((checked) => {
11779
11804
  if (selectCallback) selectCallback(checked, rowData.id);
11780
11805
  }, [rowData.id, selectCallback]);
11806
+ const isEmpty = rowData.columns.length === 0;
11781
11807
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(RowContainer, {
11782
- $isEmpty: rowData.columns.length === 0,
11808
+ $isEmpty: isEmpty,
11783
11809
  children: [
11784
11810
  selectable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TypeTableCell, {
11785
11811
  hideDivider: true,
@@ -12088,9 +12114,10 @@ var TypeTable = ({ columnConfig, selectable, rows = [], closeText, hasStatus = f
12088
12114
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LoadingText, { children: loadingText })] }) : null,
12089
12115
  isEmptyTable ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(EmptyTableBox, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: emptyTableTitle }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: emptyTableText })] }) : null,
12090
12116
  rows.map((rowData, key) => {
12117
+ const isLastRow = rows.length - 1 === key;
12091
12118
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TypeTableRow, {
12092
12119
  rowData,
12093
- isLastRow: rows.length - 1 === key,
12120
+ isLastRow,
12094
12121
  selectable,
12095
12122
  selectCallback,
12096
12123
  columnConfig,
@@ -13596,13 +13623,16 @@ var SplitLayout = ({ mainArea, sideArea, layout = "horizontal", reverse, divider
13596
13623
  };
13597
13624
  }, [handleMouseLeaveViewport]);
13598
13625
  const resizeLineArrowDirection = () => {
13599
- if (sideAreaState === "collapsed" || sideAreaState === "peeking") if (layout === "horizontal") if (!reverse) return "left";
13600
- else return "right";
13601
- else if (!reverse) return "up";
13602
- else return "down";
13603
- else if (layout === "horizontal") if (!reverse) return "right";
13604
- else return "left";
13605
- else if (!reverse) return "down";
13626
+ if (sideAreaState === "collapsed" || sideAreaState === "peeking") {
13627
+ if (layout === "horizontal") {
13628
+ if (!reverse) return "left";
13629
+ else return "right";
13630
+ } else if (!reverse) return "up";
13631
+ else return "down";
13632
+ } else if (layout === "horizontal") {
13633
+ if (!reverse) return "right";
13634
+ else return "left";
13635
+ } else if (!reverse) return "down";
13606
13636
  else return "up";
13607
13637
  };
13608
13638
  const resizeLineState = () => {
@@ -14054,8 +14084,9 @@ var Content$1 = styled_components.default.div`
14054
14084
  `;
14055
14085
  var ContentLayout = ({ layout = "default", HeaderContent = {}, children }) => {
14056
14086
  const { PageHeaderArea, TabsElementArea, UtilityHeaderOptions } = HeaderContent;
14087
+ const containerClass = `content-layout-${layout}`;
14057
14088
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Container$16, {
14058
- className: `content-layout-${layout}`,
14089
+ className: containerClass,
14059
14090
  children: [
14060
14091
  UtilityHeaderOptions ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UtilityHeader, { ...UtilityHeaderOptions }) : null,
14061
14092
  PageHeaderArea ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HeaderArea, { children: PageHeaderArea }) : null,
@@ -14126,6 +14157,7 @@ var CoreStyle = styled_components.css`
14126
14157
  font-weight: 500;
14127
14158
  line-height: 12px; /* 85.714% */
14128
14159
  white-space: nowrap;
14160
+ user-select: none;
14129
14161
 
14130
14162
  transition: opacity var(--speed-fast) var(--easing-primary-out);
14131
14163
 
@@ -14232,46 +14264,47 @@ var TopBarBadge = ({ text, color, linkHref, linkTo, linkText, onClick }) => {
14232
14264
  defaultTextElement,
14233
14265
  linkTextElement
14234
14266
  ]);
14267
+ const badgeComponent = (0, react.useMemo)(() => {
14268
+ if (onClick) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContainerButton, {
14269
+ $themeColor: color,
14270
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
14271
+ onClick,
14272
+ type: "button",
14273
+ children: renderContent
14274
+ })
14275
+ });
14276
+ else if (linkTo) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContainerLinked, {
14277
+ $themeColor: color,
14278
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router_dom.Link, {
14279
+ to: linkTo,
14280
+ children: renderContent
14281
+ })
14282
+ });
14283
+ else if (linkHref) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContainerLinked, {
14284
+ $themeColor: color,
14285
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
14286
+ href: linkHref,
14287
+ children: renderContent
14288
+ })
14289
+ });
14290
+ else return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContainerStatic, {
14291
+ $themeColor: color,
14292
+ children: defaultTextElement
14293
+ });
14294
+ }, [
14295
+ onClick,
14296
+ linkTo,
14297
+ linkHref,
14298
+ color,
14299
+ renderContent,
14300
+ defaultTextElement
14301
+ ]);
14235
14302
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Container$15, {
14236
14303
  $ready: ready,
14237
14304
  $minWidth: minWidth,
14238
14305
  onPointerEnter: () => ready && setHover(true),
14239
14306
  onPointerLeave: () => ready && setHover(false),
14240
- children: (0, react.useMemo)(() => {
14241
- if (onClick) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContainerButton, {
14242
- $themeColor: color,
14243
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
14244
- onClick,
14245
- type: "button",
14246
- children: renderContent
14247
- })
14248
- });
14249
- else if (linkTo) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContainerLinked, {
14250
- $themeColor: color,
14251
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_router_dom.Link, {
14252
- to: linkTo,
14253
- children: renderContent
14254
- })
14255
- });
14256
- else if (linkHref) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContainerLinked, {
14257
- $themeColor: color,
14258
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
14259
- href: linkHref,
14260
- children: renderContent
14261
- })
14262
- });
14263
- else return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContainerStatic, {
14264
- $themeColor: color,
14265
- children: defaultTextElement
14266
- });
14267
- }, [
14268
- onClick,
14269
- linkTo,
14270
- linkHref,
14271
- color,
14272
- renderContent,
14273
- defaultTextElement
14274
- ])
14307
+ children: badgeComponent
14275
14308
  });
14276
14309
  };
14277
14310
  //#endregion
@@ -15318,6 +15351,8 @@ var ContextActionButton = styled_components.default.button`
15318
15351
  }
15319
15352
 
15320
15353
  ${({ $isActive }) => $isActive && styled_components.css`
15354
+ color: var(--grey-12);
15355
+
15321
15356
  ${ContextIcon},
15322
15357
  &:hover ${ContextIcon}{
15323
15358
  background-color: var(--global-menu-icon-background-active);
@@ -15343,7 +15378,8 @@ var ContextItem = ({ hasSubmenu = false, contextKey = -1, submenuOpen, menuOpen,
15343
15378
  color: "dimmed"
15344
15379
  }) }) : null
15345
15380
  ] });
15346
- if (hasSubmenu) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContextActionButton, {
15381
+ if (hasSubmenu || !href && !isExternalLink) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContextActionButton, {
15382
+ type: "button",
15347
15383
  $menuOpen: menuOpen,
15348
15384
  $isActive: isActive,
15349
15385
  onClick: () => onClickCallback?.(contextKey),
@@ -15525,27 +15561,28 @@ var generateSubmenus = (submenu, onClickCallback) => {
15525
15561
  grouping.push([]);
15526
15562
  submenu.forEach((item, key) => {
15527
15563
  const { title, href, isExternalLink } = item;
15528
- if (href) if (isExternalLink) grouping[grouping.length - 1].push(/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SubmenuItem, {
15529
- $isActive: false,
15530
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SubmenuItemAnchor, {
15531
- href,
15532
- target: "_blank",
15533
- children: [title, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExternalIconWrapper, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_LineUIVideoBase.Icon, {
15534
- icon: "ExternalLink",
15535
- color: "dimmed",
15536
- size: 10
15537
- }) })]
15538
- })
15539
- }, key));
15540
- else grouping[grouping.length - 1].push(/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SubmenuItem, {
15541
- $isActive: false,
15542
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SubmenuItemLink, {
15543
- to: href,
15544
- onClick: () => onClickCallback?.(-1),
15545
- children: title
15546
- })
15547
- }, key));
15548
- else {
15564
+ if (href) {
15565
+ if (isExternalLink) grouping[grouping.length - 1].push(/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SubmenuItem, {
15566
+ $isActive: false,
15567
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SubmenuItemAnchor, {
15568
+ href,
15569
+ target: "_blank",
15570
+ children: [title, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExternalIconWrapper, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_LineUIVideoBase.Icon, {
15571
+ icon: "ExternalLink",
15572
+ color: "dimmed",
15573
+ size: 10
15574
+ }) })]
15575
+ })
15576
+ }, key));
15577
+ else grouping[grouping.length - 1].push(/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SubmenuItem, {
15578
+ $isActive: false,
15579
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SubmenuItemLink, {
15580
+ to: href,
15581
+ onClick: () => onClickCallback?.(-1),
15582
+ children: title
15583
+ })
15584
+ }, key));
15585
+ } else {
15549
15586
  if (grouping[grouping.length - 1].length > 1) grouping.push([]);
15550
15587
  grouping[grouping.length - 1].push(/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SubmenuHeader, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SubmenuItemTitle, { children: title }) }, key));
15551
15588
  }