xmlui 0.9.4 → 0.9.5

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.
@@ -12,7 +12,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
12
12
  var _executor, _DeferredPromise_instances, decorate_fn, _a2;
13
13
  import { delay as delay$1, HttpResponse, http } from "msw";
14
14
  import { isArray, isObject as isObject$1, mapValues } from "lodash-es";
15
- import { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./index-KP1TDy9n.mjs";
15
+ import { r as runEventHandlerCode, g as getDate, d as delay, m as miscellaneousUtils, a as dateFunctions, o as orderBy, T as ThrowStatementError } from "./index-tLddBc_K.mjs";
16
16
  import Dexie from "dexie";
17
17
  var POSITIONALS_EXP = /(%?)(%([sdijo]))/g;
18
18
  function serializePositional(positional, flag) {
@@ -8132,6 +8132,10 @@ function generatePaddingSegments(theme2) {
8132
8132
  const result = { ...theme2 };
8133
8133
  Object.entries(theme2).forEach(([key, value]) => {
8134
8134
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
8135
+ if (value === null || value === void 0) {
8136
+ delete result[key];
8137
+ return;
8138
+ }
8135
8139
  let match = paddingHorizontalRegEx.exec(key);
8136
8140
  if (match) {
8137
8141
  const remainder2 = match[1];
@@ -9006,7 +9010,7 @@ const Table = forwardRef(
9006
9010
  data = EMPTY_ARRAY,
9007
9011
  columns = EMPTY_ARRAY,
9008
9012
  isPaginated = false,
9009
- loading = false,
9013
+ loading: loading2 = false,
9010
9014
  headerHeight,
9011
9015
  rowsSelectable = false,
9012
9016
  enableMultiRowSelection = true,
@@ -9516,8 +9520,8 @@ const Table = forwardRef(
9516
9520
  ]
9517
9521
  }
9518
9522
  ),
9519
- loading && !hasData && /* @__PURE__ */ jsx("div", { className: styles$R.loadingWrapper, children: /* @__PURE__ */ jsx(Spinner, {}) }),
9520
- !hideNoDataView && !loading && !hasData && (noDataRenderer ? noDataRenderer() : /* @__PURE__ */ jsx("div", { className: styles$R.noRows, children: "No data available" })),
9523
+ loading2 && !hasData && /* @__PURE__ */ jsx("div", { className: styles$R.loadingWrapper, children: /* @__PURE__ */ jsx(Spinner, {}) }),
9524
+ !hideNoDataView && !loading2 && !hasData && (noDataRenderer ? noDataRenderer() : /* @__PURE__ */ jsx("div", { className: styles$R.noRows, children: "No data available" })),
9521
9525
  isPaginated && hasData && rows.length > 0 && pagination2 && // --- Render the pagination controls
9522
9526
  /* @__PURE__ */ jsxs("div", { className: styles$R.pagination, children: [
9523
9527
  /* @__PURE__ */ jsx("div", { style: { flex: 1 }, children: /* @__PURE__ */ jsxs("span", { className: styles$R.paginationLabel, children: [
@@ -12582,7 +12586,7 @@ const ListNative = forwardRef(function DynamicHeightList({
12582
12586
  itemRenderer = defaultItemRenderer,
12583
12587
  sectionRenderer,
12584
12588
  sectionFooterRenderer,
12585
- loading,
12589
+ loading: loading2,
12586
12590
  limit,
12587
12591
  groupBy: groupBy2,
12588
12592
  orderBy: orderBy2,
@@ -12745,8 +12749,8 @@ const ListNative = forwardRef(function DynamicHeightList({
12745
12749
  [styles$E.hasOutsideScroll]: hasOutsideScroll2
12746
12750
  }),
12747
12751
  children: [
12748
- loading && rows.length === 0 && /* @__PURE__ */ jsx("div", { className: styles$E.loadingWrapper, children: /* @__PURE__ */ jsx(Spinner, {}) }),
12749
- !loading && rows.length === 0 && (emptyListPlaceholder ?? /* @__PURE__ */ jsx("div", { className: styles$E.noRows, children: /* @__PURE__ */ jsx(Text, { children: "No data available" }) })),
12752
+ loading2 && rows.length === 0 && /* @__PURE__ */ jsx("div", { className: styles$E.loadingWrapper, children: /* @__PURE__ */ jsx(Spinner, {}) }),
12753
+ !loading2 && rows.length === 0 && (emptyListPlaceholder ?? /* @__PURE__ */ jsx("div", { className: styles$E.noRows, children: /* @__PURE__ */ jsx(Text, { children: "No data available" }) })),
12750
12754
  rows.length > 0 && /* @__PURE__ */ jsx(
12751
12755
  "div",
12752
12756
  {
@@ -15620,38 +15624,39 @@ function $d3863c46a17e8a28$var$removeLinks(items) {
15620
15624
  );
15621
15625
  }
15622
15626
  const themeVars$j = `'{"Input:fontSize-Select-default": "var(--xmlui-fontSize-Select-default)", "Input:textColor-placeholder-Select-default": "var(--xmlui-textColor-placeholder-Select-default)", "Input:textColor-Select-default": "var(--xmlui-textColor-Select-default)", "Input:fontSize-Select-error": "var(--xmlui-fontSize-Select-error)", "Input:textColor-placeholder-Select-error": "var(--xmlui-textColor-placeholder-Select-error)", "Input:textColor-Select-error": "var(--xmlui-textColor-Select-error)", "Input:fontSize-Select-warning": "var(--xmlui-fontSize-Select-warning)", "Input:textColor-placeholder-Select-warning": "var(--xmlui-textColor-placeholder-Select-warning)", "Input:textColor-Select-warning": "var(--xmlui-textColor-Select-warning)", "Input:fontSize-Select-success": "var(--xmlui-fontSize-Select-success)", "Input:textColor-placeholder-Select-success": "var(--xmlui-textColor-placeholder-Select-success)", "Input:textColor-Select-success": "var(--xmlui-textColor-Select-success)", "Input:borderRadius-Select-default": "var(--xmlui-borderRadius-Select-default)", "Input:borderColor-Select-default": "var(--xmlui-borderColor-Select-default)", "Input:borderWidth-Select-default": "var(--xmlui-borderWidth-Select-default)", "Input:borderStyle-Select-default": "var(--xmlui-borderStyle-Select-default)", "Input:backgroundColor-Select-default": "var(--xmlui-backgroundColor-Select-default)", "Input:boxShadow-Select-default": "var(--xmlui-boxShadow-Select-default)", "Input:borderColor-Select-default--hover": "var(--xmlui-borderColor-Select-default--hover)", "Input:backgroundColor-Select-default--hover": "var(--xmlui-backgroundColor-Select-default--hover)", "Input:boxShadow-Select-default--hover": "var(--xmlui-boxShadow-Select-default--hover)", "Input:textColor-Select-default--hover": "var(--xmlui-textColor-Select-default--hover)", "Input:outlineWidth-Select-default--focus": "var(--xmlui-outlineWidth-Select-default--focus)", "Input:outlineColor-Select-default--focus": "var(--xmlui-outlineColor-Select-default--focus)", "Input:outlineStyle-Select-default--focus": "var(--xmlui-outlineStyle-Select-default--focus)", "Input:outlineOffset-Select-default--focus": "var(--xmlui-outlineOffset-Select-default--focus)", "Input:borderRadius-Select-error": "var(--xmlui-borderRadius-Select-error)", "Input:borderColor-Select-error": "var(--xmlui-borderColor-Select-error)", "Input:borderWidth-Select-error": "var(--xmlui-borderWidth-Select-error)", "Input:borderStyle-Select-error": "var(--xmlui-borderStyle-Select-error)", "Input:backgroundColor-Select-error": "var(--xmlui-backgroundColor-Select-error)", "Input:boxShadow-Select-error": "var(--xmlui-boxShadow-Select-error)", "Input:borderColor-Select-error--hover": "var(--xmlui-borderColor-Select-error--hover)", "Input:backgroundColor-Select-error--hover": "var(--xmlui-backgroundColor-Select-error--hover)", "Input:boxShadow-Select-error--hover": "var(--xmlui-boxShadow-Select-error--hover)", "Input:textColor-Select-error--hover": "var(--xmlui-textColor-Select-error--hover)", "Input:outlineWidth-Select-error--focus": "var(--xmlui-outlineWidth-Select-error--focus)", "Input:outlineColor-Select-error--focus": "var(--xmlui-outlineColor-Select-error--focus)", "Input:outlineStyle-Select-error--focus": "var(--xmlui-outlineStyle-Select-error--focus)", "Input:outlineOffset-Select-error--focus": "var(--xmlui-outlineOffset-Select-error--focus)", "Input:borderRadius-Select-warning": "var(--xmlui-borderRadius-Select-warning)", "Input:borderColor-Select-warning": "var(--xmlui-borderColor-Select-warning)", "Input:borderWidth-Select-warning": "var(--xmlui-borderWidth-Select-warning)", "Input:borderStyle-Select-warning": "var(--xmlui-borderStyle-Select-warning)", "Input:backgroundColor-Select-warning": "var(--xmlui-backgroundColor-Select-warning)", "Input:boxShadow-Select-warning": "var(--xmlui-boxShadow-Select-warning)", "Input:borderColor-Select-warning--hover": "var(--xmlui-borderColor-Select-warning--hover)", "Input:backgroundColor-Select-warning--hover": "var(--xmlui-backgroundColor-Select-warning--hover)", "Input:boxShadow-Select-warning--hover": "var(--xmlui-boxShadow-Select-warning--hover)", "Input:textColor-Select-warning--hover": "var(--xmlui-textColor-Select-warning--hover)", "Input:outlineWidth-Select-warning--focus": "var(--xmlui-outlineWidth-Select-warning--focus)", "Input:outlineColor-Select-warning--focus": "var(--xmlui-outlineColor-Select-warning--focus)", "Input:outlineStyle-Select-warning--focus": "var(--xmlui-outlineStyle-Select-warning--focus)", "Input:outlineOffset-Select-warning--focus": "var(--xmlui-outlineOffset-Select-warning--focus)", "Input:borderRadius-Select-success": "var(--xmlui-borderRadius-Select-success)", "Input:borderColor-Select-success": "var(--xmlui-borderColor-Select-success)", "Input:borderWidth-Select-success": "var(--xmlui-borderWidth-Select-success)", "Input:borderStyle-Select-success": "var(--xmlui-borderStyle-Select-success)", "Input:backgroundColor-Select-success": "var(--xmlui-backgroundColor-Select-success)", "Input:boxShadow-Select-success": "var(--xmlui-boxShadow-Select-success)", "Input:borderColor-Select-success--hover": "var(--xmlui-borderColor-Select-success--hover)", "Input:backgroundColor-Select-success--hover": "var(--xmlui-backgroundColor-Select-success--hover)", "Input:boxShadow-Select-success--hover": "var(--xmlui-boxShadow-Select-success--hover)", "Input:textColor-Select-success--hover": "var(--xmlui-textColor-Select-success--hover)", "Input:outlineWidth-Select-success--focus": "var(--xmlui-outlineWidth-Select-success--focus)", "Input:outlineColor-Select-success--focus": "var(--xmlui-outlineColor-Select-success--focus)", "Input:outlineStyle-Select-success--focus": "var(--xmlui-outlineStyle-Select-success--focus)", "Input:outlineOffset-Select-success--focus": "var(--xmlui-outlineOffset-Select-success--focus)", "opacity-Select--disabled": "var(--xmlui-opacity-Select--disabled)", "Input:backgroundColor-Select--disabled": "var(--xmlui-backgroundColor-Select--disabled)", "Input:textColor-Select--disabled": "var(--xmlui-textColor-Select--disabled)", "Input:borderColor-Select--disabled": "var(--xmlui-borderColor-Select--disabled)", "paddingVertical-Select-badge": "var(--xmlui-paddingVertical-Select-badge)", "paddingHorizontal-Select-badge": "var(--xmlui-paddingHorizontal-Select-badge)", "Input:fontSize-Select-badge": "var(--xmlui-fontSize-Select-badge)", "Input:backgroundColor-Select-badge": "var(--xmlui-backgroundColor-Select-badge)", "Input:textColor-Select-badge": "var(--xmlui-textColor-Select-badge)", "Input:backgroundColor-Select-badge--hover": "var(--xmlui-backgroundColor-Select-badge--hover)", "Input:textColor-Select-badge--hover": "var(--xmlui-textColor-Select-badge--hover)", "Input:backgroundColor-Select-badge--active": "var(--xmlui-backgroundColor-Select-badge--active)", "Input:textColor-Select-badge--active": "var(--xmlui-textColor-Select-badge--active)", "Input:textColor-placeholder-Select": "var(--xmlui-textColor-placeholder-Select)", "Input:backgroundColor-menu-Select": "var(--xmlui-backgroundColor-menu-Select)", "Input:borderRadius-menu-Select": "var(--xmlui-borderRadius-menu-Select)", "Input:boxShadow-menu-Select": "var(--xmlui-boxShadow-menu-Select)", "Input:borderWidth-menu-Select": "var(--xmlui-borderWidth-menu-Select)", "Input:borderColor-menu-Select": "var(--xmlui-borderColor-menu-Select)", "backgroundColor-item-Select": "var(--xmlui-backgroundColor-item-Select)", "backgroundColor-item-Select--hover": "var(--xmlui-backgroundColor-item-Select--hover)", "opacity-text-item-Select--disabled": "var(--xmlui-opacity-text-item-Select--disabled)", "fontSize-Select": "var(--xmlui-fontSize-Select)", "backgroundColor-item-Select--active": "var(--xmlui-backgroundColor-item-Select--active)", "textColor-indicator-Select": "var(--xmlui-textColor-indicator-Select)"}'`;
15623
- const selectValue = "_selectValue_1o7b6_13";
15624
- const error$7 = "_error_1o7b6_21";
15625
- const warning$7 = "_warning_1o7b6_29";
15626
- const valid$7 = "_valid_1o7b6_37";
15627
- const selectTrigger = "_selectTrigger_1o7b6_46";
15628
- const badgeListContainer = "_badgeListContainer_1o7b6_170";
15629
- const badgeList$1 = "_badgeList_1o7b6_170";
15630
- const badge$1 = "_badge_1o7b6_170";
15631
- const actions$2 = "_actions_1o7b6_210";
15632
- const placeholder$1 = "_placeholder_1o7b6_216";
15633
- const emptyList = "_emptyList_1o7b6_221";
15634
- const selectScrollUpButton = "_selectScrollUpButton_1o7b6_231";
15635
- const selectScrollDownButton = "_selectScrollDownButton_1o7b6_240";
15636
- const command$1 = "_command_1o7b6_249";
15637
- const commandInputContainer = "_commandInputContainer_1o7b6_259";
15638
- const commandInput$1 = "_commandInput_1o7b6_259";
15639
- const commandList$1 = "_commandList_1o7b6_284";
15640
- const selectContent = "_selectContent_1o7b6_289";
15641
- const fadeIn = "_fadeIn_1o7b6_1";
15642
- const zoomIn = "_zoomIn_1o7b6_1";
15643
- const fadeOut = "_fadeOut_1o7b6_1";
15644
- const zoomOut = "_zoomOut_1o7b6_1";
15645
- const slideInFromTop = "_slideInFromTop_1o7b6_1";
15646
- const slideInFromRight = "_slideInFromRight_1o7b6_1";
15647
- const slideInFromLeft = "_slideInFromLeft_1o7b6_1";
15648
- const slideInFromBottom = "_slideInFromBottom_1o7b6_1";
15649
- const multiComboboxOption = "_multiComboboxOption_1o7b6_329";
15650
- const selectItem = "_selectItem_1o7b6_349";
15651
- const selectItemIndicator = "_selectItemIndicator_1o7b6_377";
15652
- const selectViewport = "_selectViewport_1o7b6_388";
15653
- const selectEmpty = "_selectEmpty_1o7b6_394";
15654
- const srOnly = "_srOnly_1o7b6_405";
15627
+ const selectValue = "_selectValue_w44f3_13";
15628
+ const error$7 = "_error_w44f3_21";
15629
+ const warning$7 = "_warning_w44f3_29";
15630
+ const valid$7 = "_valid_w44f3_37";
15631
+ const selectTrigger = "_selectTrigger_w44f3_46";
15632
+ const badgeListContainer = "_badgeListContainer_w44f3_170";
15633
+ const badgeList$1 = "_badgeList_w44f3_170";
15634
+ const badge$1 = "_badge_w44f3_170";
15635
+ const actions$2 = "_actions_w44f3_210";
15636
+ const placeholder$1 = "_placeholder_w44f3_216";
15637
+ const emptyList = "_emptyList_w44f3_221";
15638
+ const selectScrollUpButton = "_selectScrollUpButton_w44f3_231";
15639
+ const selectScrollDownButton = "_selectScrollDownButton_w44f3_240";
15640
+ const command$1 = "_command_w44f3_249";
15641
+ const commandInputContainer = "_commandInputContainer_w44f3_259";
15642
+ const commandInput$1 = "_commandInput_w44f3_259";
15643
+ const commandList$1 = "_commandList_w44f3_284";
15644
+ const selectContent = "_selectContent_w44f3_289";
15645
+ const fadeIn = "_fadeIn_w44f3_1";
15646
+ const zoomIn = "_zoomIn_w44f3_1";
15647
+ const fadeOut = "_fadeOut_w44f3_1";
15648
+ const zoomOut = "_zoomOut_w44f3_1";
15649
+ const slideInFromTop = "_slideInFromTop_w44f3_1";
15650
+ const slideInFromRight = "_slideInFromRight_w44f3_1";
15651
+ const slideInFromLeft = "_slideInFromLeft_w44f3_1";
15652
+ const slideInFromBottom = "_slideInFromBottom_w44f3_1";
15653
+ const multiComboboxOption = "_multiComboboxOption_w44f3_329";
15654
+ const selectItem = "_selectItem_w44f3_349";
15655
+ const selectItemIndicator = "_selectItemIndicator_w44f3_377";
15656
+ const selectViewport = "_selectViewport_w44f3_388";
15657
+ const selectEmpty = "_selectEmpty_w44f3_394";
15658
+ const loading = "_loading_w44f3_405";
15659
+ const srOnly = "_srOnly_w44f3_409";
15655
15660
  const styles$y = {
15656
15661
  themeVars: themeVars$j,
15657
15662
  selectValue,
@@ -15685,6 +15690,7 @@ const styles$y = {
15685
15690
  selectItemIndicator,
15686
15691
  selectViewport,
15687
15692
  selectEmpty,
15693
+ loading,
15688
15694
  srOnly
15689
15695
  };
15690
15696
  const SelectContext = createContext(null);
@@ -15804,7 +15810,9 @@ const Select = forwardRef(function Select2({
15804
15810
  labelPosition,
15805
15811
  labelWidth,
15806
15812
  labelBreak: labelBreak2,
15807
- required: required2 = false
15813
+ required: required2 = false,
15814
+ inProgress = false,
15815
+ inProgressNotificationMessage = "Loading..."
15808
15816
  }, ref) {
15809
15817
  var _a;
15810
15818
  const [referenceElement, setReferenceElement] = useState(null);
@@ -15994,6 +16002,7 @@ const Select = forwardRef(function Select2({
15994
16002
  /* @__PURE__ */ jsx("button", { autoFocus: true, "aria-hidden": "true", className: styles$y.srOnly })
15995
16003
  ),
15996
16004
  /* @__PURE__ */ jsxs(CommandList, { className: styles$y.commandList, children: [
16005
+ inProgress && /* @__PURE__ */ jsx("div", { className: styles$y.loading, children: inProgressNotificationMessage }),
15997
16006
  Array.from(options2).map(({ value: value2, label: label22, enabled: enabled22, keywords }) => /* @__PURE__ */ jsx(
15998
16007
  ComboboxOption,
15999
16008
  {
@@ -16004,7 +16013,7 @@ const Select = forwardRef(function Select2({
16004
16013
  },
16005
16014
  value2
16006
16015
  )),
16007
- /* @__PURE__ */ jsx(CommandEmpty, { children: emptyListNode })
16016
+ !inProgress && /* @__PURE__ */ jsx(CommandEmpty, { children: emptyListNode })
16008
16017
  ] })
16009
16018
  ]
16010
16019
  }
@@ -20736,7 +20745,13 @@ const SelectMd = createMetadata({
20736
20745
  `This optional property provides the ability to customize what is displayed when the list of options is empty.`
20737
20746
  ),
20738
20747
  multiSelect: dMulti(),
20739
- searchable: d(`This property enables the search functionality in the dropdown list.`)
20748
+ searchable: d(`This property enables the search functionality in the dropdown list.`),
20749
+ inProgress: d(
20750
+ `This property indicates whether the component is in progress. It can be used to show a loading message.`
20751
+ ),
20752
+ inProgressNotificationMessage: d(
20753
+ `This property indicates the message to display when the component is in progress.`
20754
+ )
20740
20755
  },
20741
20756
  events: {
20742
20757
  gotFocus: dGotFocus(COMP$v),
@@ -20795,6 +20810,8 @@ const selectComponentRenderer = createComponentRenderer(
20795
20810
  {
20796
20811
  multiSelect: extractValue.asOptionalBoolean(node.props.multiSelect),
20797
20812
  style: layoutCss,
20813
+ inProgress: extractValue.asOptionalBoolean(node.props.inProgress),
20814
+ inProgressNotificationMessage: extractValue.asOptionalString(node.props.inProgressNotificationMessage),
20798
20815
  updateState,
20799
20816
  searchable: extractValue.asOptionalBoolean(node.props.searchable),
20800
20817
  initialValue: extractValue(node.props.initialValue),
@@ -31649,7 +31666,7 @@ function IconProvider({ children }) {
31649
31666
  /* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
31650
31667
  ] });
31651
31668
  }
31652
- const version = "0.9.4";
31669
+ const version = "0.9.5";
31653
31670
  const ApiInterceptorContext = createContext(null);
31654
31671
  function useApiInterceptorContext() {
31655
31672
  return useContext(ApiInterceptorContext);
@@ -35633,7 +35650,7 @@ function ApiInterceptorProvider({
35633
35650
  let interceptorWorker;
35634
35651
  (async () => {
35635
35652
  if (process.env.VITE_MOCK_ENABLED) {
35636
- const { createApiInterceptorWorker } = await import("./apiInterceptorWorker-Bez0_28l.mjs");
35653
+ const { createApiInterceptorWorker } = await import("./apiInterceptorWorker-Be8IJaBL.mjs");
35637
35654
  if (interceptor) {
35638
35655
  interceptorWorker = await createApiInterceptorWorker(interceptor, apiWorker);
35639
35656
  if (!apiWorker) {