xmlui 0.9.13 → 0.9.14
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/{apiInterceptorWorker-BUaYCWe6.mjs → apiInterceptorWorker-B9XuRkxC.mjs} +1 -1
- package/dist/{index-DiCe0Ajo.mjs → index-D82p1y9A.mjs} +421 -203
- package/dist/index.css +298 -275
- package/dist/scripts/src/components/Card/Card.js +17 -1
- package/dist/scripts/src/components/Card/CardNative.js +2 -3
- package/dist/scripts/src/components/DatePicker/DatePickerNative.js +2 -2
- package/dist/scripts/src/components/Markdown/Markdown.js +10 -9
- package/dist/scripts/src/components/Option/Option.js +0 -1
- package/dist/scripts/src/components/Select/Select.js +3 -2
- package/dist/scripts/src/components/Select/SelectNative.js +1 -1
- package/dist/scripts/src/components/Table/Table.js +7 -1
- package/dist/scripts/src/components/Table/TableNative.js +2 -1
- package/dist/scripts/src/components-core/LoaderComponent.js +14 -0
- package/dist/scripts/src/components-core/abstractions/containers.js +1 -0
- package/dist/scripts/src/components-core/loader/ApiLoader.js +4 -5
- package/dist/scripts/src/components-core/loader/DataLoader.js +4 -4
- package/dist/scripts/src/components-core/loader/ExternalDataLoader.js +4 -7
- package/dist/scripts/src/components-core/loader/Loader.js +23 -11
- package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +3 -3
- package/dist/scripts/src/components-core/loader/PageableLoader.js +14 -4
- package/dist/scripts/src/components-core/rendering/reducer.js +9 -3
- package/dist/style.css +298 -275
- package/dist/xmlui-metadata.mjs +197 -156
- package/dist/xmlui-metadata.umd.js +197 -156
- package/dist/xmlui-standalone.umd.js +4911 -2858
- package/dist/xmlui.d.ts +33 -1
- package/dist/xmlui.mjs +1 -1
- package/package.json +2 -2
|
@@ -26,7 +26,7 @@ import toast, { Toaster, ToastBar } from "react-hot-toast";
|
|
|
26
26
|
import { Virtualizer } from "virtua";
|
|
27
27
|
import { createContext as createContext$1, useContextSelector } from "use-context-selector";
|
|
28
28
|
import memoizeOne from "memoize-one";
|
|
29
|
-
import { Portal, Root, Trigger, Value, Icon as Icon$1, Content, ScrollUpButton, Viewport, ScrollDownButton, Item as Item$1, ItemText, ItemIndicator } from "@radix-ui/react-select";
|
|
29
|
+
import { Portal, Root, Trigger, Value, Icon as Icon$1, Content, ScrollUpButton, Viewport, ScrollDownButton, Item as Item$1, ItemText, ItemIndicator, SelectItemText } from "@radix-ui/react-select";
|
|
30
30
|
import { Popover, PopoverTrigger, PopoverContent, Portal as Portal$1 } from "@radix-ui/react-popover";
|
|
31
31
|
import { Command, CommandInput, CommandList, CommandEmpty, CommandItem, CommandGroup } from "cmdk";
|
|
32
32
|
import * as InnerRadioGroup from "@radix-ui/react-radio-group";
|
|
@@ -4609,7 +4609,7 @@ const MemoizedItem = memo(
|
|
|
4609
4609
|
);
|
|
4610
4610
|
const wrapper$e = "_wrapper_1c1hh_14";
|
|
4611
4611
|
const rowWrapper = "_rowWrapper_1c1hh_18";
|
|
4612
|
-
const selected$
|
|
4612
|
+
const selected$2 = "_selected_1c1hh_28";
|
|
4613
4613
|
const gutter = "_gutter_1c1hh_42";
|
|
4614
4614
|
const toggleWrapper = "_toggleWrapper_1c1hh_50";
|
|
4615
4615
|
const hidden = "_hidden_1c1hh_59";
|
|
@@ -4619,7 +4619,7 @@ const labelWrapper = "_labelWrapper_1c1hh_78";
|
|
|
4619
4619
|
const styles$T = {
|
|
4620
4620
|
wrapper: wrapper$e,
|
|
4621
4621
|
rowWrapper,
|
|
4622
|
-
selected: selected$
|
|
4622
|
+
selected: selected$2,
|
|
4623
4623
|
gutter,
|
|
4624
4624
|
toggleWrapper,
|
|
4625
4625
|
hidden,
|
|
@@ -7571,31 +7571,32 @@ const fragmentComponentRenderer = createComponentRenderer(
|
|
|
7571
7571
|
}
|
|
7572
7572
|
);
|
|
7573
7573
|
const themeVars$B = `'{"textColor-pagination-Table": "var(--xmlui-textColor-pagination-Table)", "backgroundColor-Table": "var(--xmlui-backgroundColor-Table)", "textColor-Table": "var(--xmlui-textColor-Table)", "backgroundColor-row-Table": "var(--xmlui-backgroundColor-row-Table)", "backgroundColor-row-Table--hover": "var(--xmlui-backgroundColor-row-Table--hover)", "backgroundColor-selected-Table": "var(--xmlui-backgroundColor-selected-Table)", "backgroundColor-selected-Table--hover": "var(--xmlui-backgroundColor-selected-Table--hover)", "backgroundColor-heading-Table": "var(--xmlui-backgroundColor-heading-Table)", "backgroundColor-heading-Table--hover": "var(--xmlui-backgroundColor-heading-Table--hover)", "backgroundColor-heading-Table--active": "var(--xmlui-backgroundColor-heading-Table--active)", "padding-heading-Table": "var(--xmlui-padding-heading-Table)", "paddingHorizontal-heading-Table": "var(--xmlui-paddingHorizontal-heading-Table, var(--xmlui-padding-heading-Table))", "paddingVertical-heading-Table": "var(--xmlui-paddingVertical-heading-Table, var(--xmlui-padding-heading-Table))", "paddingLeft-heading-Table": "var(--xmlui-paddingLeft-heading-Table, var(--xmlui-paddingHorizontal-heading-Table, var(--xmlui-padding-heading-Table)))", "paddingRight-heading-Table": "var(--xmlui-paddingRight-heading-Table, var(--xmlui-paddingHorizontal-heading-Table, var(--xmlui-padding-heading-Table)))", "paddingTop-heading-Table": "var(--xmlui-paddingTop-heading-Table, var(--xmlui-paddingVertical-heading-Table, var(--xmlui-padding-heading-Table)))", "paddingBottom-heading-Table": "var(--xmlui-paddingBottom-heading-Table, var(--xmlui-paddingVertical-heading-Table, var(--xmlui-padding-heading-Table)))", "padding-cell-Table": "var(--xmlui-padding-cell-Table)", "paddingHorizontal-cell-Table": "var(--xmlui-paddingHorizontal-cell-Table, var(--xmlui-padding-cell-Table))", "paddingVertical-cell-Table": "var(--xmlui-paddingVertical-cell-Table, var(--xmlui-padding-cell-Table))", "paddingLeft-cell-Table": "var(--xmlui-paddingLeft-cell-Table, var(--xmlui-paddingHorizontal-cell-Table, var(--xmlui-padding-cell-Table)))", "paddingRight-cell-Table": "var(--xmlui-paddingRight-cell-Table, var(--xmlui-paddingHorizontal-cell-Table, var(--xmlui-padding-cell-Table)))", "paddingTop-cell-Table": "var(--xmlui-paddingTop-cell-Table, var(--xmlui-paddingVertical-cell-Table, var(--xmlui-padding-cell-Table)))", "paddingBottom-cell-Table": "var(--xmlui-paddingBottom-cell-Table, var(--xmlui-paddingVertical-cell-Table, var(--xmlui-padding-cell-Table)))", "paddingHorizontal-cell-first-Table": "var(--xmlui-paddingHorizontal-cell-first-Table)", "paddingHorizontal-cell-last-Table": "var(--xmlui-paddingHorizontal-cell-last-Table)", "border-cell-Table": "var(--xmlui-border-cell-Table)", "borderHorizontal-cell-Table": "var(--xmlui-borderHorizontal-cell-Table, var(--xmlui-border-cell-Table))", "borderVertical-cell-Table": "var(--xmlui-borderVertical-cell-Table, var(--xmlui-border-cell-Table))", "borderLeft-cell-Table": "var(--xmlui-borderLeft-cell-Table, var(--xmlui-borderHorizontal-cell-Table, var(--xmlui-border-cell-Table)))", "borderRight-cell-Table": "var(--xmlui-borderRight-cell-Table, var(--xmlui-borderHorizontal-cell-Table, var(--xmlui-border-cell-Table)))", "borderTop-cell-Table": "var(--xmlui-borderTop-cell-Table, var(--xmlui-borderVertical-cell-Table, var(--xmlui-border-cell-Table)))", "borderBottom-cell-Table": "var(--xmlui-borderBottom-cell-Table)", "borderWidth-cell-Table": "var(--xmlui-borderWidth-cell-Table)", "borderHorizontalWidth-cell-Table": "var(--xmlui-borderHorizontalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table))", "borderLeftWidth-cell-Table": "var(--xmlui-borderLeftWidth-cell-Table, var(--xmlui-borderHorizontalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table)))", "borderRightWidth-cell-Table": "var(--xmlui-borderRightWidth-cell-Table, var(--xmlui-borderHorizontalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table)))", "borderVerticalWidth-cell-Table": "var(--xmlui-borderVerticalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table))", "borderTopWidth-cell-Table": "var(--xmlui-borderTopWidth-cell-Table, var(--xmlui-borderVerticalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table)))", "borderBottomWidth-cell-Table": "var(--xmlui-borderBottomWidth-cell-Table, var(--xmlui-borderVerticalWidth-cell-Table, var(--xmlui-borderWidth-cell-Table)))", "borderStyle-cell-Table": "var(--xmlui-borderStyle-cell-Table)", "borderHorizontalStyle-cell-Table": "var(--xmlui-borderHorizontalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table))", "borderLeftStyle-cell-Table": "var(--xmlui-borderLeftStyle-cell-Table, var(--xmlui-borderHorizontalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table)))", "borderRightStyle-cell-Table": "var(--xmlui-borderRightStyle-cell-Table, var(--xmlui-borderHorizontalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table)))", "borderVerticalStyle-cell-Table": "var(--xmlui-borderVerticalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table))", "borderTopStyle-cell-Table": "var(--xmlui-borderTopStyle-cell-Table, var(--xmlui-borderVerticalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table)))", "borderBottomStyle-cell-Table": "var(--xmlui-borderBottomStyle-cell-Table, var(--xmlui-borderVerticalStyle-cell-Table, var(--xmlui-borderStyle-cell-Table)))", "borderColor-cell-Table": "var(--xmlui-borderColor-cell-Table)", "borderHorizontalColor-cell-Table": "var(--xmlui-borderHorizontalColor-cell-Table, var(--xmlui-borderColor-cell-Table))", "borderLeftColor-cell-Table": "var(--xmlui-borderLeftColor-cell-Table, var(--xmlui-borderHorizontalColor-cell-Table, var(--xmlui-borderColor-cell-Table)))", "borderRightColor-cell-Table": "var(--xmlui-borderRightColor-cell-Table, var(--xmlui-borderHorizontalColor-cell-Table, var(--xmlui-borderColor-cell-Table)))", "borderVerticalColor-cell-Table": "var(--xmlui-borderVerticalColor-cell-Table, var(--xmlui-borderColor-cell-Table))", "borderTopColor-cell-Table": "var(--xmlui-borderTopColor-cell-Table, var(--xmlui-borderVerticalColor-cell-Table, var(--xmlui-borderColor-cell-Table)))", "borderBottomColor-cell-Table": "var(--xmlui-borderBottomColor-cell-Table, var(--xmlui-borderVerticalColor-cell-Table, var(--xmlui-borderColor-cell-Table)))", "borderStartStartRadius-cell-Table": "var(--xmlui-borderStartStartRadius-cell-Table, var(--xmlui-borderRadius-cell-Table))", "borderStartEndRadius-cell-Table": "var(--xmlui-borderStartEndRadius-cell-Table, var(--xmlui-borderRadius-cell-Table))", "borderEndStartRadius-cell-Table": "var(--xmlui-borderEndStartRadius-cell-Table, var(--xmlui-borderRadius-cell-Table))", "borderEndEndRadius-cell-Table": "var(--xmlui-borderEndEndRadius-cell-Table, var(--xmlui-borderRadius-cell-Table))", "backgroundColor-pagination-Table": "var(--xmlui-backgroundColor-pagination-Table)", "textColor-heading-Table": "var(--xmlui-textColor-heading-Table)", "fontWeight-row-Table": "var(--xmlui-fontWeight-row-Table)", "fontSize-row-Table": "var(--xmlui-fontSize-row-Table)", "fontWeight-heading-Table": "var(--xmlui-fontWeight-heading-Table)", "fontSize-heading-Table": "var(--xmlui-fontSize-heading-Table)", "textTransform-heading-Table": "var(--xmlui-textTransform-heading-Table)", "outlineWidth-heading-Table--focus": "var(--xmlui-outlineWidth-heading-Table--focus)", "outlineColor-heading-Table--focus": "var(--xmlui-outlineColor-heading-Table--focus)", "outlineStyle-heading-Table--focus": "var(--xmlui-outlineStyle-heading-Table--focus)", "outlineOffset-heading-Table--focus": "var(--xmlui-outlineOffset-heading-Table--focus)"}'`;
|
|
7574
|
-
const wrapper$d = "
|
|
7575
|
-
const noScroll = "
|
|
7576
|
-
const headerWrapper = "
|
|
7577
|
-
const tableBody = "
|
|
7578
|
-
const clickableHeader = "
|
|
7579
|
-
const headerContent = "
|
|
7580
|
-
const headerRow = "
|
|
7581
|
-
const columnCell = "
|
|
7582
|
-
const cell
|
|
7583
|
-
const table
|
|
7584
|
-
const row$
|
|
7585
|
-
const checkBoxWrapper = "
|
|
7586
|
-
const showInHeader = "
|
|
7587
|
-
const selected = "
|
|
7588
|
-
const allSelected = "
|
|
7589
|
-
const focused$1 = "
|
|
7590
|
-
const disabled$4 = "
|
|
7591
|
-
const
|
|
7592
|
-
const
|
|
7593
|
-
const
|
|
7594
|
-
const
|
|
7595
|
-
const
|
|
7596
|
-
const
|
|
7597
|
-
const
|
|
7598
|
-
const
|
|
7574
|
+
const wrapper$d = "_wrapper_1wbg1_13";
|
|
7575
|
+
const noScroll = "_noScroll_1wbg1_19";
|
|
7576
|
+
const headerWrapper = "_headerWrapper_1wbg1_23";
|
|
7577
|
+
const tableBody = "_tableBody_1wbg1_23";
|
|
7578
|
+
const clickableHeader = "_clickableHeader_1wbg1_29";
|
|
7579
|
+
const headerContent = "_headerContent_1wbg1_43";
|
|
7580
|
+
const headerRow = "_headerRow_1wbg1_76";
|
|
7581
|
+
const columnCell = "_columnCell_1wbg1_81";
|
|
7582
|
+
const cell = "_cell_1wbg1_81";
|
|
7583
|
+
const table = "_table_1wbg1_23";
|
|
7584
|
+
const row$1 = "_row_1wbg1_93";
|
|
7585
|
+
const checkBoxWrapper = "_checkBoxWrapper_1wbg1_99";
|
|
7586
|
+
const showInHeader = "_showInHeader_1wbg1_103";
|
|
7587
|
+
const selected$1 = "_selected_1wbg1_106";
|
|
7588
|
+
const allSelected = "_allSelected_1wbg1_106";
|
|
7589
|
+
const focused$1 = "_focused_1wbg1_152";
|
|
7590
|
+
const disabled$4 = "_disabled_1wbg1_164";
|
|
7591
|
+
const noBottomBorder = "_noBottomBorder_1wbg1_168";
|
|
7592
|
+
const noRows$1 = "_noRows_1wbg1_196";
|
|
7593
|
+
const pagination = "_pagination_1wbg1_202";
|
|
7594
|
+
const paginationLabel = "_paginationLabel_1wbg1_218";
|
|
7595
|
+
const paginationSelect = "_paginationSelect_1wbg1_223";
|
|
7596
|
+
const paginationButtons = "_paginationButtons_1wbg1_229";
|
|
7597
|
+
const loadingWrapper$1 = "_loadingWrapper_1wbg1_241";
|
|
7598
|
+
const resizer$1 = "_resizer_1wbg1_256";
|
|
7599
|
+
const isResizing = "_isResizing_1wbg1_278";
|
|
7599
7600
|
const styles$Q = {
|
|
7600
7601
|
themeVars: themeVars$B,
|
|
7601
7602
|
wrapper: wrapper$d,
|
|
@@ -7606,15 +7607,16 @@ const styles$Q = {
|
|
|
7606
7607
|
headerContent,
|
|
7607
7608
|
headerRow,
|
|
7608
7609
|
columnCell,
|
|
7609
|
-
cell
|
|
7610
|
-
table
|
|
7611
|
-
row: row$
|
|
7610
|
+
cell,
|
|
7611
|
+
table,
|
|
7612
|
+
row: row$1,
|
|
7612
7613
|
checkBoxWrapper,
|
|
7613
7614
|
showInHeader,
|
|
7614
|
-
selected,
|
|
7615
|
+
selected: selected$1,
|
|
7615
7616
|
allSelected,
|
|
7616
7617
|
focused: focused$1,
|
|
7617
7618
|
disabled: disabled$4,
|
|
7619
|
+
noBottomBorder,
|
|
7618
7620
|
noRows: noRows$1,
|
|
7619
7621
|
pagination,
|
|
7620
7622
|
paginationLabel,
|
|
@@ -9040,7 +9042,8 @@ const Table = forwardRef(
|
|
|
9040
9042
|
hideNoDataView = false,
|
|
9041
9043
|
alwaysShowSelectionHeader = false,
|
|
9042
9044
|
registerComponentApi,
|
|
9043
|
-
onSelectionDidChange
|
|
9045
|
+
onSelectionDidChange,
|
|
9046
|
+
noBottomBorder: noBottomBorder2 = false
|
|
9044
9047
|
// cols
|
|
9045
9048
|
}, forwardedRef) => {
|
|
9046
9049
|
var _a, _b, _c, _d;
|
|
@@ -9482,7 +9485,8 @@ const Table = forwardRef(
|
|
|
9482
9485
|
className: classnames(styles$Q.row, {
|
|
9483
9486
|
[styles$Q.selected]: row2.getIsSelected(),
|
|
9484
9487
|
[styles$Q.focused]: focusedIndex === rowIndex,
|
|
9485
|
-
[styles$Q.disabled]: rowDisabledPredicate(row2.original)
|
|
9488
|
+
[styles$Q.disabled]: rowDisabledPredicate(row2.original),
|
|
9489
|
+
[styles$Q.noBottomBorder]: noBottomBorder2
|
|
9486
9490
|
}),
|
|
9487
9491
|
ref: (el) => {
|
|
9488
9492
|
if (el && estimatedHeightRef.current === null) {
|
|
@@ -9679,6 +9683,11 @@ const TableMd = createMetadata({
|
|
|
9679
9683
|
description: "This property indicates when the row selection header is displayed. When the value is `true,` the selection header is always visible. Otherwise, it is displayed only when hovered.",
|
|
9680
9684
|
valueType: "boolean",
|
|
9681
9685
|
defaultValue: false
|
|
9686
|
+
},
|
|
9687
|
+
noBottomBorder: {
|
|
9688
|
+
description: `This property indicates whether the table should have a bottom border. When set to \`true\`, the table does not have a bottom border. Otherwise, it has a bottom border.`,
|
|
9689
|
+
valueType: "boolean",
|
|
9690
|
+
defaultValue: false
|
|
9682
9691
|
}
|
|
9683
9692
|
},
|
|
9684
9693
|
events: {
|
|
@@ -9837,7 +9846,8 @@ const TableWithColumns = forwardRef(
|
|
|
9837
9846
|
),
|
|
9838
9847
|
alwaysShowSelectionHeader: extractValue.asOptionalBoolean(
|
|
9839
9848
|
node.props.alwaysShowSelectionHeader
|
|
9840
|
-
)
|
|
9849
|
+
),
|
|
9850
|
+
noBottomBorder: extractValue.asOptionalBoolean(node.props.noBottomBorder)
|
|
9841
9851
|
}
|
|
9842
9852
|
)
|
|
9843
9853
|
] });
|
|
@@ -10195,14 +10205,18 @@ const contentSeparatorComponentRenderer = createComponentRenderer(
|
|
|
10195
10205
|
);
|
|
10196
10206
|
}
|
|
10197
10207
|
);
|
|
10198
|
-
const themeVars$v = `'{"padding-Card": "var(--xmlui-padding-Card)", "paddingHorizontal-Card": "var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card))", "paddingVertical-Card": "var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card))", "paddingLeft-Card": "var(--xmlui-paddingLeft-Card, var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card)))", "paddingRight-Card": "var(--xmlui-paddingRight-Card, var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card)))", "paddingTop-Card": "var(--xmlui-paddingTop-Card, var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card)))", "paddingBottom-Card": "var(--xmlui-paddingBottom-Card, var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card)))", "border-Card": "var(--xmlui-border-Card)", "borderHorizontal-Card": "var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card))", "borderVertical-Card": "var(--xmlui-borderVertical-Card, var(--xmlui-border-Card))", "borderLeft-Card": "var(--xmlui-borderLeft-Card, var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card)))", "borderRight-Card": "var(--xmlui-borderRight-Card, var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card)))", "borderTop-Card": "var(--xmlui-borderTop-Card, var(--xmlui-borderVertical-Card, var(--xmlui-border-Card)))", "borderBottom-Card": "var(--xmlui-borderBottom-Card, var(--xmlui-borderVertical-Card, var(--xmlui-border-Card)))", "borderWidth-Card": "var(--xmlui-borderWidth-Card)", "borderHorizontalWidth-Card": "var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card))", "borderLeftWidth-Card": "var(--xmlui-borderLeftWidth-Card, var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderRightWidth-Card": "var(--xmlui-borderRightWidth-Card, var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderVerticalWidth-Card": "var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card))", "borderTopWidth-Card": "var(--xmlui-borderTopWidth-Card, var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderBottomWidth-Card": "var(--xmlui-borderBottomWidth-Card, var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderStyle-Card": "var(--xmlui-borderStyle-Card)", "borderHorizontalStyle-Card": "var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card))", "borderLeftStyle-Card": "var(--xmlui-borderLeftStyle-Card, var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderRightStyle-Card": "var(--xmlui-borderRightStyle-Card, var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderVerticalStyle-Card": "var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card))", "borderTopStyle-Card": "var(--xmlui-borderTopStyle-Card, var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderBottomStyle-Card": "var(--xmlui-borderBottomStyle-Card, var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderColor-Card": "var(--xmlui-borderColor-Card)", "borderHorizontalColor-Card": "var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card))", "borderLeftColor-Card": "var(--xmlui-borderLeftColor-Card, var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card)))", "borderRightColor-Card": "var(--xmlui-borderRightColor-Card, var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card)))", "borderVerticalColor-Card": "var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card))", "borderTopColor-Card": "var(--xmlui-borderTopColor-Card, var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card)))", "borderBottomColor-Card": "var(--xmlui-borderBottomColor-Card, var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card)))", "borderStartStartRadius-Card": "var(--xmlui-borderStartStartRadius-Card, var(--xmlui-borderRadius-Card))", "borderStartEndRadius-Card": "var(--xmlui-borderStartEndRadius-Card, var(--xmlui-borderRadius-Card))", "borderEndStartRadius-Card": "var(--xmlui-borderEndStartRadius-Card, var(--xmlui-borderRadius-Card))", "borderEndEndRadius-Card": "var(--xmlui-borderEndEndRadius-Card, var(--xmlui-borderRadius-Card))", "boxShadow-Card": "var(--xmlui-boxShadow-Card)", "backgroundColor-Card": "var(--xmlui-backgroundColor-Card)", "borderRadius-Card": "var(--xmlui-borderRadius-Card)"}'`;
|
|
10199
|
-
const wrapper$b = "
|
|
10200
|
-
const
|
|
10201
|
-
const
|
|
10202
|
-
const
|
|
10208
|
+
const themeVars$v = `'{"padding-Card": "var(--xmlui-padding-Card)", "paddingHorizontal-Card": "var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card))", "paddingVertical-Card": "var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card))", "paddingLeft-Card": "var(--xmlui-paddingLeft-Card, var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card)))", "paddingRight-Card": "var(--xmlui-paddingRight-Card, var(--xmlui-paddingHorizontal-Card, var(--xmlui-padding-Card)))", "paddingTop-Card": "var(--xmlui-paddingTop-Card, var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card)))", "paddingBottom-Card": "var(--xmlui-paddingBottom-Card, var(--xmlui-paddingVertical-Card, var(--xmlui-padding-Card)))", "border-Card": "var(--xmlui-border-Card)", "borderHorizontal-Card": "var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card))", "borderVertical-Card": "var(--xmlui-borderVertical-Card, var(--xmlui-border-Card))", "borderLeft-Card": "var(--xmlui-borderLeft-Card, var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card)))", "borderRight-Card": "var(--xmlui-borderRight-Card, var(--xmlui-borderHorizontal-Card, var(--xmlui-border-Card)))", "borderTop-Card": "var(--xmlui-borderTop-Card, var(--xmlui-borderVertical-Card, var(--xmlui-border-Card)))", "borderBottom-Card": "var(--xmlui-borderBottom-Card, var(--xmlui-borderVertical-Card, var(--xmlui-border-Card)))", "borderWidth-Card": "var(--xmlui-borderWidth-Card)", "borderHorizontalWidth-Card": "var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card))", "borderLeftWidth-Card": "var(--xmlui-borderLeftWidth-Card, var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderRightWidth-Card": "var(--xmlui-borderRightWidth-Card, var(--xmlui-borderHorizontalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderVerticalWidth-Card": "var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card))", "borderTopWidth-Card": "var(--xmlui-borderTopWidth-Card, var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderBottomWidth-Card": "var(--xmlui-borderBottomWidth-Card, var(--xmlui-borderVerticalWidth-Card, var(--xmlui-borderWidth-Card)))", "borderStyle-Card": "var(--xmlui-borderStyle-Card)", "borderHorizontalStyle-Card": "var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card))", "borderLeftStyle-Card": "var(--xmlui-borderLeftStyle-Card, var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderRightStyle-Card": "var(--xmlui-borderRightStyle-Card, var(--xmlui-borderHorizontalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderVerticalStyle-Card": "var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card))", "borderTopStyle-Card": "var(--xmlui-borderTopStyle-Card, var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderBottomStyle-Card": "var(--xmlui-borderBottomStyle-Card, var(--xmlui-borderVerticalStyle-Card, var(--xmlui-borderStyle-Card)))", "borderColor-Card": "var(--xmlui-borderColor-Card)", "borderHorizontalColor-Card": "var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card))", "borderLeftColor-Card": "var(--xmlui-borderLeftColor-Card, var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card)))", "borderRightColor-Card": "var(--xmlui-borderRightColor-Card, var(--xmlui-borderHorizontalColor-Card, var(--xmlui-borderColor-Card)))", "borderVerticalColor-Card": "var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card))", "borderTopColor-Card": "var(--xmlui-borderTopColor-Card, var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card)))", "borderBottomColor-Card": "var(--xmlui-borderBottomColor-Card, var(--xmlui-borderVerticalColor-Card, var(--xmlui-borderColor-Card)))", "borderStartStartRadius-Card": "var(--xmlui-borderStartStartRadius-Card, var(--xmlui-borderRadius-Card))", "borderStartEndRadius-Card": "var(--xmlui-borderStartEndRadius-Card, var(--xmlui-borderRadius-Card))", "borderEndStartRadius-Card": "var(--xmlui-borderEndStartRadius-Card, var(--xmlui-borderRadius-Card))", "borderEndEndRadius-Card": "var(--xmlui-borderEndEndRadius-Card, var(--xmlui-borderRadius-Card))", "boxShadow-Card": "var(--xmlui-boxShadow-Card)", "backgroundColor-Card": "var(--xmlui-backgroundColor-Card)", "borderRadius-Card": "var(--xmlui-borderRadius-Card)", "gap-Card": "var(--xmlui-gap-Card)", "gap-title-Card": "var(--xmlui-gap-title-Card)", "gap-avatar-Card": "var(--xmlui-gap-avatar-Card)", "horizontalAlignment-title-Card": "var(--xmlui-horizontalAlignment-title-Card)", "verticalAlignment-title-Card": "var(--xmlui-verticalAlignment-title-Card)"}'`;
|
|
10209
|
+
const wrapper$b = "_wrapper_1arn2_13";
|
|
10210
|
+
const avatarWrapper = "_avatarWrapper_1arn2_46";
|
|
10211
|
+
const titleWrapper = "_titleWrapper_1arn2_52";
|
|
10212
|
+
const horizontal$2 = "_horizontal_1arn2_59";
|
|
10213
|
+
const vertical$2 = "_vertical_1arn2_63";
|
|
10214
|
+
const isClickable = "_isClickable_1arn2_66";
|
|
10203
10215
|
const styles$K = {
|
|
10204
10216
|
themeVars: themeVars$v,
|
|
10205
10217
|
wrapper: wrapper$b,
|
|
10218
|
+
avatarWrapper,
|
|
10219
|
+
titleWrapper,
|
|
10206
10220
|
horizontal: horizontal$2,
|
|
10207
10221
|
vertical: vertical$2,
|
|
10208
10222
|
isClickable
|
|
@@ -10220,6 +10234,7 @@ const Card = forwardRef(function Card2({
|
|
|
10220
10234
|
linkTo,
|
|
10221
10235
|
avatarUrl,
|
|
10222
10236
|
showAvatar = !!avatarUrl || defaultProps$b.showAvatar,
|
|
10237
|
+
avatarSize,
|
|
10223
10238
|
onClick
|
|
10224
10239
|
}, forwardedRef) {
|
|
10225
10240
|
const titleProps = {
|
|
@@ -10237,11 +10252,11 @@ const Card = forwardRef(function Card2({
|
|
|
10237
10252
|
style: style2,
|
|
10238
10253
|
onClick,
|
|
10239
10254
|
children: [
|
|
10240
|
-
[title2, subtitle2, avatarUrl, showAvatar].some(Boolean) && /* @__PURE__ */ jsxs(
|
|
10241
|
-
showAvatar && /* @__PURE__ */ jsx(Avatar, { url: avatarUrl, name: title2 }),
|
|
10242
|
-
/* @__PURE__ */ jsxs(
|
|
10255
|
+
[title2, subtitle2, avatarUrl, showAvatar].some(Boolean) && /* @__PURE__ */ jsxs("div", { className: styles$K.avatarWrapper, children: [
|
|
10256
|
+
showAvatar && /* @__PURE__ */ jsx(Avatar, { url: avatarUrl, name: title2, size: avatarSize }),
|
|
10257
|
+
/* @__PURE__ */ jsxs("div", { className: styles$K.titleWrapper, children: [
|
|
10243
10258
|
linkTo ? title2 ? /* @__PURE__ */ jsx(LocalLink, { to: linkTo + "", children: /* @__PURE__ */ jsx(Heading, { ...titleProps, children: title2 }) }) : null : title2 ? /* @__PURE__ */ jsx(Heading, { ...titleProps, children: title2 }) : null,
|
|
10244
|
-
subtitle2 !== void 0 && /* @__PURE__ */ jsx(Text, { variant: "small", children: subtitle2 })
|
|
10259
|
+
subtitle2 !== void 0 && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Text, { variant: "small", children: subtitle2 }) })
|
|
10245
10260
|
] })
|
|
10246
10261
|
] }),
|
|
10247
10262
|
children
|
|
@@ -10262,6 +10277,11 @@ const CardMd = createMetadata({
|
|
|
10262
10277
|
valueType: "boolean",
|
|
10263
10278
|
defaultValue: defaultProps$b.showAvatar
|
|
10264
10279
|
},
|
|
10280
|
+
avatarSize: {
|
|
10281
|
+
description: `This prop sets the size of the avatar. The default value is \`sm\`.`,
|
|
10282
|
+
availableValues: ["xs", "sm", "md", "lg"],
|
|
10283
|
+
valueType: "string"
|
|
10284
|
+
},
|
|
10265
10285
|
title: {
|
|
10266
10286
|
description: `This prop sets the prestyled title.`,
|
|
10267
10287
|
valueType: "string"
|
|
@@ -10290,7 +10310,18 @@ const CardMd = createMetadata({
|
|
|
10290
10310
|
[`border-${COMP$12}`]: "1px solid $borderColor",
|
|
10291
10311
|
[`borderRadius-${COMP$12}`]: "$borderRadius",
|
|
10292
10312
|
[`boxShadow-${COMP$12}`]: "none",
|
|
10293
|
-
[`backgroundColor-${COMP$12}`]: "$color-surface-raised"
|
|
10313
|
+
[`backgroundColor-${COMP$12}`]: "$color-surface-raised",
|
|
10314
|
+
[`gap-${COMP$12}`]: "var(--stack-gap-default)",
|
|
10315
|
+
[`gap-title-${COMP$12}`]: "$gap-normal",
|
|
10316
|
+
[`gap-avatar-${COMP$12}`]: "$gap-normal",
|
|
10317
|
+
[`verticalAlignment-title-${COMP$12}`]: "center"
|
|
10318
|
+
},
|
|
10319
|
+
themeVarDescriptions: {
|
|
10320
|
+
[`gap-${COMP$12}`]: "The gap between the component's children.",
|
|
10321
|
+
[`gap-title-${COMP$12}`]: "The gap between the title and the subtitle",
|
|
10322
|
+
[`gap-avatar-${COMP$12}`]: "The gap between the avatar and the title panel",
|
|
10323
|
+
[`horizontalAlignment-title-${COMP$12}`]: "The horizontal alignment of panel with the title and subtitle",
|
|
10324
|
+
[`verticalAlignment-title-${COMP$12}`]: "The vertical alignment of the title and subtitle to the avatar"
|
|
10294
10325
|
}
|
|
10295
10326
|
});
|
|
10296
10327
|
const cardComponentRenderer = createComponentRenderer(
|
|
@@ -10306,6 +10337,7 @@ const cardComponentRenderer = createComponentRenderer(
|
|
|
10306
10337
|
subtitle: extractValue.asOptionalString(node.props.subtitle),
|
|
10307
10338
|
avatarUrl: extractValue.asOptionalString(node.props.avatarUrl),
|
|
10308
10339
|
showAvatar: extractValue.asOptionalBoolean(node.props.showAvatar),
|
|
10340
|
+
avatarSize: extractValue.asOptionalString(node.props.avatarSize),
|
|
10309
10341
|
orientation: extractValue.asOptionalString(node.props.orientation),
|
|
10310
10342
|
children: renderChild2(node.children, {
|
|
10311
10343
|
type: "Stack",
|
|
@@ -12424,7 +12456,7 @@ const loadingWrapper = "_loadingWrapper_5o4m3_36";
|
|
|
12424
12456
|
const noRows = "_noRows_5o4m3_44";
|
|
12425
12457
|
const borderCollapse = "_borderCollapse_5o4m3_54";
|
|
12426
12458
|
const sectioned = "_sectioned_5o4m3_54";
|
|
12427
|
-
const row
|
|
12459
|
+
const row = "_row_5o4m3_54";
|
|
12428
12460
|
const section = "_section_5o4m3_54";
|
|
12429
12461
|
const sectionFooter = "_sectionFooter_5o4m3_70";
|
|
12430
12462
|
const styles$D = {
|
|
@@ -12437,7 +12469,7 @@ const styles$D = {
|
|
|
12437
12469
|
noRows,
|
|
12438
12470
|
borderCollapse,
|
|
12439
12471
|
sectioned,
|
|
12440
|
-
row
|
|
12472
|
+
row,
|
|
12441
12473
|
section,
|
|
12442
12474
|
sectionFooter
|
|
12443
12475
|
};
|
|
@@ -15642,41 +15674,41 @@ function $d3863c46a17e8a28$var$removeLinks(items) {
|
|
|
15642
15674
|
);
|
|
15643
15675
|
}
|
|
15644
15676
|
const themeVars$j = `'{"padding-item-Select": "var(--xmlui-padding-item-Select)", "paddingHorizontal-item-Select": "var(--xmlui-paddingHorizontal-item-Select, var(--xmlui-padding-item-Select))", "paddingVertical-item-Select": "var(--xmlui-paddingVertical-item-Select, var(--xmlui-padding-item-Select))", "paddingLeft-item-Select": "var(--xmlui-paddingLeft-item-Select, var(--xmlui-paddingHorizontal-item-Select, var(--xmlui-padding-item-Select)))", "paddingRight-item-Select": "var(--xmlui-paddingRight-item-Select, var(--xmlui-paddingHorizontal-item-Select, var(--xmlui-padding-item-Select)))", "paddingTop-item-Select": "var(--xmlui-paddingTop-item-Select, var(--xmlui-paddingVertical-item-Select, var(--xmlui-padding-item-Select)))", "paddingBottom-item-Select": "var(--xmlui-paddingBottom-item-Select, var(--xmlui-paddingVertical-item-Select, var(--xmlui-padding-item-Select)))", "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)"}'`;
|
|
15645
|
-
const selectValue = "
|
|
15646
|
-
const error$7 = "
|
|
15647
|
-
const warning$7 = "
|
|
15648
|
-
const valid$7 = "
|
|
15649
|
-
const selectTrigger = "
|
|
15650
|
-
const badgeListContainer = "
|
|
15651
|
-
const badgeList$1 = "
|
|
15652
|
-
const badge$1 = "
|
|
15653
|
-
const actions$1 = "
|
|
15654
|
-
const placeholder$1 = "
|
|
15655
|
-
const emptyList = "
|
|
15656
|
-
const selectScrollUpButton = "
|
|
15657
|
-
const selectScrollDownButton = "
|
|
15658
|
-
const command$1 = "
|
|
15659
|
-
const commandInputContainer = "
|
|
15660
|
-
const commandInput$1 = "
|
|
15661
|
-
const commandList$1 = "
|
|
15662
|
-
const selectContent = "
|
|
15663
|
-
const fadeIn = "
|
|
15664
|
-
const zoomIn = "
|
|
15665
|
-
const fadeOut = "
|
|
15666
|
-
const zoomOut = "
|
|
15667
|
-
const slideInFromTop = "
|
|
15668
|
-
const slideInFromRight = "
|
|
15669
|
-
const slideInFromLeft = "
|
|
15670
|
-
const slideInFromBottom = "
|
|
15671
|
-
const multiComboboxOption = "
|
|
15672
|
-
const multiComboboxOptionContent = "
|
|
15673
|
-
const selectItem = "
|
|
15674
|
-
const selectItemContent = "
|
|
15675
|
-
const selectItemIndicator = "
|
|
15676
|
-
const selectViewport = "
|
|
15677
|
-
const selectEmpty = "
|
|
15678
|
-
const loading = "
|
|
15679
|
-
const srOnly = "
|
|
15677
|
+
const selectValue = "_selectValue_1ept5_13";
|
|
15678
|
+
const error$7 = "_error_1ept5_21";
|
|
15679
|
+
const warning$7 = "_warning_1ept5_29";
|
|
15680
|
+
const valid$7 = "_valid_1ept5_37";
|
|
15681
|
+
const selectTrigger = "_selectTrigger_1ept5_46";
|
|
15682
|
+
const badgeListContainer = "_badgeListContainer_1ept5_170";
|
|
15683
|
+
const badgeList$1 = "_badgeList_1ept5_170";
|
|
15684
|
+
const badge$1 = "_badge_1ept5_170";
|
|
15685
|
+
const actions$1 = "_actions_1ept5_210";
|
|
15686
|
+
const placeholder$1 = "_placeholder_1ept5_216";
|
|
15687
|
+
const emptyList = "_emptyList_1ept5_221";
|
|
15688
|
+
const selectScrollUpButton = "_selectScrollUpButton_1ept5_231";
|
|
15689
|
+
const selectScrollDownButton = "_selectScrollDownButton_1ept5_240";
|
|
15690
|
+
const command$1 = "_command_1ept5_249";
|
|
15691
|
+
const commandInputContainer = "_commandInputContainer_1ept5_259";
|
|
15692
|
+
const commandInput$1 = "_commandInput_1ept5_259";
|
|
15693
|
+
const commandList$1 = "_commandList_1ept5_284";
|
|
15694
|
+
const selectContent = "_selectContent_1ept5_289";
|
|
15695
|
+
const fadeIn = "_fadeIn_1ept5_1";
|
|
15696
|
+
const zoomIn = "_zoomIn_1ept5_1";
|
|
15697
|
+
const fadeOut = "_fadeOut_1ept5_1";
|
|
15698
|
+
const zoomOut = "_zoomOut_1ept5_1";
|
|
15699
|
+
const slideInFromTop = "_slideInFromTop_1ept5_1";
|
|
15700
|
+
const slideInFromRight = "_slideInFromRight_1ept5_1";
|
|
15701
|
+
const slideInFromLeft = "_slideInFromLeft_1ept5_1";
|
|
15702
|
+
const slideInFromBottom = "_slideInFromBottom_1ept5_1";
|
|
15703
|
+
const multiComboboxOption = "_multiComboboxOption_1ept5_329";
|
|
15704
|
+
const multiComboboxOptionContent = "_multiComboboxOptionContent_1ept5_329";
|
|
15705
|
+
const selectItem = "_selectItem_1ept5_354";
|
|
15706
|
+
const selectItemContent = "_selectItemContent_1ept5_369";
|
|
15707
|
+
const selectItemIndicator = "_selectItemIndicator_1ept5_390";
|
|
15708
|
+
const selectViewport = "_selectViewport_1ept5_401";
|
|
15709
|
+
const selectEmpty = "_selectEmpty_1ept5_407";
|
|
15710
|
+
const loading = "_loading_1ept5_418";
|
|
15711
|
+
const srOnly = "_srOnly_1ept5_422";
|
|
15680
15712
|
const styles$x = {
|
|
15681
15713
|
themeVars: themeVars$j,
|
|
15682
15714
|
selectValue,
|
|
@@ -16135,7 +16167,7 @@ const SelectOption = React__default.forwardRef(
|
|
|
16135
16167
|
return () => onOptionRemove(option);
|
|
16136
16168
|
}, [option, onOptionAdd, onOptionRemove]);
|
|
16137
16169
|
return /* @__PURE__ */ jsx(Item$1, { ref, className: styles$x.selectItem, value: value + "", disabled: !enabled2, children: /* @__PURE__ */ jsx("div", { className: styles$x.selectItemContent, children: optionRenderer ? optionRenderer({
|
|
16138
|
-
label:
|
|
16170
|
+
label: label2,
|
|
16139
16171
|
value,
|
|
16140
16172
|
enabled: enabled2
|
|
16141
16173
|
}) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -16307,54 +16339,52 @@ const RadioGroupOption = ({
|
|
|
16307
16339
|
})
|
|
16308
16340
|
] }) : item2 }, id);
|
|
16309
16341
|
};
|
|
16310
|
-
const themeVars$h = `'{"Input:minHeight-DatePicker": "var(--xmlui-minHeight-DatePicker)", "Input:fontSize-DatePicker": "var(--xmlui-fontSize-DatePicker)", "Input:borderRadius-DatePicker-default": "var(--xmlui-borderRadius-DatePicker-default)", "Input:borderColor-DatePicker-default": "var(--xmlui-borderColor-DatePicker-default)", "Input:borderWidth-DatePicker-default": "var(--xmlui-borderWidth-DatePicker-default)", "Input:borderStyle-DatePicker-default": "var(--xmlui-borderStyle-DatePicker-default)", "Input:backgroundColor-DatePicker-default": "var(--xmlui-backgroundColor-DatePicker-default)", "Input:boxShadow-DatePicker-default": "var(--xmlui-boxShadow-DatePicker-default)", "Input:textColor-DatePicker-default": "var(--xmlui-textColor-DatePicker-default)", "Input:padding-DatePicker-default": "var(--xmlui-padding-DatePicker-default)", "Input:borderColor-DatePicker-default--hover": "var(--xmlui-borderColor-DatePicker-default--hover)", "Input:backgroundColor-DatePicker-default--hover": "var(--xmlui-backgroundColor-DatePicker-default--hover)", "Input:boxShadow-DatePicker-default--hover": "var(--xmlui-boxShadow-DatePicker-default--hover)", "Input:textColor-DatePicker-default--hover": "var(--xmlui-textColor-DatePicker-default--hover)", "Input:outlineWidth-DatePicker-default--focus": "var(--xmlui-outlineWidth-DatePicker-default--focus)", "Input:outlineColor-DatePicker-default--focus": "var(--xmlui-outlineColor-DatePicker-default--focus)", "Input:outlineStyle-DatePicker-default--focus": "var(--xmlui-outlineStyle-DatePicker-default--focus)", "Input:outlineOffset-DatePicker-default--focus": "var(--xmlui-outlineOffset-DatePicker-default--focus)", "Input:textColor-placeholder-DatePicker-default": "var(--xmlui-textColor-placeholder-DatePicker-default)", "Input:textColor-adornment-DatePicker-default": "var(--xmlui-textColor-adornment-DatePicker-default)", "Input:borderRadius-DatePicker-error": "var(--xmlui-borderRadius-DatePicker-error)", "Input:borderColor-DatePicker-error": "var(--xmlui-borderColor-DatePicker-error)", "Input:borderWidth-DatePicker-error": "var(--xmlui-borderWidth-DatePicker-error)", "Input:borderStyle-DatePicker-error": "var(--xmlui-borderStyle-DatePicker-error)", "Input:backgroundColor-DatePicker-error": "var(--xmlui-backgroundColor-DatePicker-error)", "Input:boxShadow-DatePicker-error": "var(--xmlui-boxShadow-DatePicker-error)", "Input:textColor-DatePicker-error": "var(--xmlui-textColor-DatePicker-error)", "Input:padding-DatePicker-error": "var(--xmlui-padding-DatePicker-error)", "Input:borderColor-DatePicker-error--hover": "var(--xmlui-borderColor-DatePicker-error--hover)", "Input:backgroundColor-DatePicker-error--hover": "var(--xmlui-backgroundColor-DatePicker-error--hover)", "Input:boxShadow-DatePicker-error--hover": "var(--xmlui-boxShadow-DatePicker-error--hover)", "Input:textColor-DatePicker-error--hover": "var(--xmlui-textColor-DatePicker-error--hover)", "Input:outlineWidth-DatePicker-error--focus": "var(--xmlui-outlineWidth-DatePicker-error--focus)", "Input:outlineColor-DatePicker-error--focus": "var(--xmlui-outlineColor-DatePicker-error--focus)", "Input:outlineStyle-DatePicker-error--focus": "var(--xmlui-outlineStyle-DatePicker-error--focus)", "Input:outlineOffset-DatePicker-error--focus": "var(--xmlui-outlineOffset-DatePicker-error--focus)", "Input:textColor-placeholder-DatePicker-error": "var(--xmlui-textColor-placeholder-DatePicker-error)", "Input:textColor-adornment-DatePicker-error": "var(--xmlui-textColor-adornment-DatePicker-error)", "Input:borderRadius-DatePicker-warning": "var(--xmlui-borderRadius-DatePicker-warning)", "Input:borderColor-DatePicker-warning": "var(--xmlui-borderColor-DatePicker-warning)", "Input:borderWidth-DatePicker-warning": "var(--xmlui-borderWidth-DatePicker-warning)", "Input:borderStyle-DatePicker-warning": "var(--xmlui-borderStyle-DatePicker-warning)", "Input:backgroundColor-DatePicker-warning": "var(--xmlui-backgroundColor-DatePicker-warning)", "Input:boxShadow-DatePicker-warning": "var(--xmlui-boxShadow-DatePicker-warning)", "Input:textColor-DatePicker-warning": "var(--xmlui-textColor-DatePicker-warning)", "Input:padding-DatePicker-warning": "var(--xmlui-padding-DatePicker-warning)", "Input:borderColor-DatePicker-warning--hover": "var(--xmlui-borderColor-DatePicker-warning--hover)", "Input:backgroundColor-DatePicker-warning--hover": "var(--xmlui-backgroundColor-DatePicker-warning--hover)", "Input:boxShadow-DatePicker-warning--hover": "var(--xmlui-boxShadow-DatePicker-warning--hover)", "Input:textColor-DatePicker-warning--hover": "var(--xmlui-textColor-DatePicker-warning--hover)", "Input:outlineWidth-DatePicker-warning--focus": "var(--xmlui-outlineWidth-DatePicker-warning--focus)", "Input:outlineColor-DatePicker-warning--focus": "var(--xmlui-outlineColor-DatePicker-warning--focus)", "Input:outlineStyle-DatePicker-warning--focus": "var(--xmlui-outlineStyle-DatePicker-warning--focus)", "Input:outlineOffset-DatePicker-warning--focus": "var(--xmlui-outlineOffset-DatePicker-warning--focus)", "Input:textColor-placeholder-DatePicker-warning": "var(--xmlui-textColor-placeholder-DatePicker-warning)", "Input:textColor-adornment-DatePicker-warning": "var(--xmlui-textColor-adornment-DatePicker-warning)", "Input:borderRadius-DatePicker-success": "var(--xmlui-borderRadius-DatePicker-success)", "Input:borderColor-DatePicker-success": "var(--xmlui-borderColor-DatePicker-success)", "Input:borderWidth-DatePicker-success": "var(--xmlui-borderWidth-DatePicker-success)", "Input:borderStyle-DatePicker-success": "var(--xmlui-borderStyle-DatePicker-success)", "Input:backgroundColor-DatePicker-success": "var(--xmlui-backgroundColor-DatePicker-success)", "Input:boxShadow-DatePicker-success": "var(--xmlui-boxShadow-DatePicker-success)", "Input:textColor-DatePicker-success": "var(--xmlui-textColor-DatePicker-success)", "Input:padding-DatePicker-success": "var(--xmlui-padding-DatePicker-success)", "Input:borderColor-DatePicker-success--hover": "var(--xmlui-borderColor-DatePicker-success--hover)", "Input:backgroundColor-DatePicker-success--hover": "var(--xmlui-backgroundColor-DatePicker-success--hover)", "Input:boxShadow-DatePicker-success--hover": "var(--xmlui-boxShadow-DatePicker-success--hover)", "Input:textColor-DatePicker-success--hover": "var(--xmlui-textColor-DatePicker-success--hover)", "Input:outlineWidth-DatePicker-success--focus": "var(--xmlui-outlineWidth-DatePicker-success--focus)", "Input:outlineColor-DatePicker-success--focus": "var(--xmlui-outlineColor-DatePicker-success--focus)", "Input:outlineStyle-DatePicker-success--focus": "var(--xmlui-outlineStyle-DatePicker-success--focus)", "Input:outlineOffset-DatePicker-success--focus": "var(--xmlui-outlineOffset-DatePicker-success--focus)", "Input:textColor-placeholder-DatePicker-success": "var(--xmlui-textColor-placeholder-DatePicker-success)", "Input:textColor-adornment-DatePicker-success": "var(--xmlui-textColor-adornment-DatePicker-success)", "Input:backgroundColor-DatePicker--disabled": "var(--xmlui-backgroundColor-DatePicker--disabled)", "Input:textColor-DatePicker--disabled": "var(--xmlui-textColor-DatePicker--disabled)", "Input:borderColor-DatePicker--disabled": "var(--xmlui-borderColor-DatePicker--disabled)", "Input:boxShadow-menu-DatePicker": "var(--xmlui-boxShadow-menu-DatePicker)", "Input:backgroundColor-menu-DatePicker": "var(--xmlui-backgroundColor-menu-DatePicker)", "Input:borderRadius-menu-DatePicker": "var(--xmlui-borderRadius-menu-DatePicker)"
|
|
16311
|
-
const datePicker = "
|
|
16312
|
-
const placeholder = "
|
|
16313
|
-
const adornment = "
|
|
16314
|
-
const error$5 = "
|
|
16315
|
-
const warning$5 = "
|
|
16316
|
-
const valid$5 = "
|
|
16317
|
-
const disabled$2 = "
|
|
16318
|
-
const indicator$1 = "
|
|
16319
|
-
const datePickerInput = "
|
|
16320
|
-
const datePickerValue = "
|
|
16321
|
-
const inlinePickerMenu = "
|
|
16322
|
-
const
|
|
16323
|
-
const
|
|
16324
|
-
const vhidden = "
|
|
16325
|
-
const button_reset = "
|
|
16326
|
-
const button$1 = "
|
|
16327
|
-
const day_selected = "
|
|
16328
|
-
const
|
|
16329
|
-
const
|
|
16330
|
-
const
|
|
16331
|
-
const
|
|
16332
|
-
const
|
|
16333
|
-
const
|
|
16334
|
-
const
|
|
16335
|
-
const
|
|
16336
|
-
const
|
|
16337
|
-
const
|
|
16338
|
-
const
|
|
16339
|
-
const
|
|
16340
|
-
const
|
|
16341
|
-
const
|
|
16342
|
-
const
|
|
16343
|
-
const
|
|
16344
|
-
const
|
|
16345
|
-
const
|
|
16346
|
-
const
|
|
16347
|
-
const
|
|
16348
|
-
const
|
|
16349
|
-
const
|
|
16350
|
-
const
|
|
16351
|
-
const
|
|
16352
|
-
const
|
|
16353
|
-
const
|
|
16354
|
-
const
|
|
16355
|
-
const
|
|
16356
|
-
const day_range_end = "_day_range_end_1lk6v_556";
|
|
16357
|
-
const day_range_middle = "_day_range_middle_1lk6v_580";
|
|
16342
|
+
const themeVars$h = `'{"Input:backgroundColor-item-DatePicker--active": "var(--xmlui-backgroundColor-item-DatePicker--active)", "Input:backgroundColor-item-DatePicker--hover": "var(--xmlui-backgroundColor-item-DatePicker--hover)", "Input:textColor-value-DatePicker": "var(--xmlui-textColor-value-DatePicker)", "Input:minHeight-DatePicker": "var(--xmlui-minHeight-DatePicker)", "Input:fontSize-DatePicker": "var(--xmlui-fontSize-DatePicker)", "Input:borderRadius-DatePicker-default": "var(--xmlui-borderRadius-DatePicker-default)", "Input:borderColor-DatePicker-default": "var(--xmlui-borderColor-DatePicker-default)", "Input:borderWidth-DatePicker-default": "var(--xmlui-borderWidth-DatePicker-default)", "Input:borderStyle-DatePicker-default": "var(--xmlui-borderStyle-DatePicker-default)", "Input:backgroundColor-DatePicker-default": "var(--xmlui-backgroundColor-DatePicker-default)", "Input:boxShadow-DatePicker-default": "var(--xmlui-boxShadow-DatePicker-default)", "Input:textColor-DatePicker-default": "var(--xmlui-textColor-DatePicker-default)", "Input:padding-DatePicker-default": "var(--xmlui-padding-DatePicker-default)", "Input:borderColor-DatePicker-default--hover": "var(--xmlui-borderColor-DatePicker-default--hover)", "Input:backgroundColor-DatePicker-default--hover": "var(--xmlui-backgroundColor-DatePicker-default--hover)", "Input:boxShadow-DatePicker-default--hover": "var(--xmlui-boxShadow-DatePicker-default--hover)", "Input:textColor-DatePicker-default--hover": "var(--xmlui-textColor-DatePicker-default--hover)", "Input:outlineWidth-DatePicker-default--focus": "var(--xmlui-outlineWidth-DatePicker-default--focus)", "Input:outlineColor-DatePicker-default--focus": "var(--xmlui-outlineColor-DatePicker-default--focus)", "Input:outlineStyle-DatePicker-default--focus": "var(--xmlui-outlineStyle-DatePicker-default--focus)", "Input:outlineOffset-DatePicker-default--focus": "var(--xmlui-outlineOffset-DatePicker-default--focus)", "Input:textColor-placeholder-DatePicker-default": "var(--xmlui-textColor-placeholder-DatePicker-default)", "Input:textColor-adornment-DatePicker-default": "var(--xmlui-textColor-adornment-DatePicker-default)", "Input:borderRadius-DatePicker-error": "var(--xmlui-borderRadius-DatePicker-error)", "Input:borderColor-DatePicker-error": "var(--xmlui-borderColor-DatePicker-error)", "Input:borderWidth-DatePicker-error": "var(--xmlui-borderWidth-DatePicker-error)", "Input:borderStyle-DatePicker-error": "var(--xmlui-borderStyle-DatePicker-error)", "Input:backgroundColor-DatePicker-error": "var(--xmlui-backgroundColor-DatePicker-error)", "Input:boxShadow-DatePicker-error": "var(--xmlui-boxShadow-DatePicker-error)", "Input:textColor-DatePicker-error": "var(--xmlui-textColor-DatePicker-error)", "Input:padding-DatePicker-error": "var(--xmlui-padding-DatePicker-error)", "Input:borderColor-DatePicker-error--hover": "var(--xmlui-borderColor-DatePicker-error--hover)", "Input:backgroundColor-DatePicker-error--hover": "var(--xmlui-backgroundColor-DatePicker-error--hover)", "Input:boxShadow-DatePicker-error--hover": "var(--xmlui-boxShadow-DatePicker-error--hover)", "Input:textColor-DatePicker-error--hover": "var(--xmlui-textColor-DatePicker-error--hover)", "Input:outlineWidth-DatePicker-error--focus": "var(--xmlui-outlineWidth-DatePicker-error--focus)", "Input:outlineColor-DatePicker-error--focus": "var(--xmlui-outlineColor-DatePicker-error--focus)", "Input:outlineStyle-DatePicker-error--focus": "var(--xmlui-outlineStyle-DatePicker-error--focus)", "Input:outlineOffset-DatePicker-error--focus": "var(--xmlui-outlineOffset-DatePicker-error--focus)", "Input:textColor-placeholder-DatePicker-error": "var(--xmlui-textColor-placeholder-DatePicker-error)", "Input:textColor-adornment-DatePicker-error": "var(--xmlui-textColor-adornment-DatePicker-error)", "Input:borderRadius-DatePicker-warning": "var(--xmlui-borderRadius-DatePicker-warning)", "Input:borderColor-DatePicker-warning": "var(--xmlui-borderColor-DatePicker-warning)", "Input:borderWidth-DatePicker-warning": "var(--xmlui-borderWidth-DatePicker-warning)", "Input:borderStyle-DatePicker-warning": "var(--xmlui-borderStyle-DatePicker-warning)", "Input:backgroundColor-DatePicker-warning": "var(--xmlui-backgroundColor-DatePicker-warning)", "Input:boxShadow-DatePicker-warning": "var(--xmlui-boxShadow-DatePicker-warning)", "Input:textColor-DatePicker-warning": "var(--xmlui-textColor-DatePicker-warning)", "Input:padding-DatePicker-warning": "var(--xmlui-padding-DatePicker-warning)", "Input:borderColor-DatePicker-warning--hover": "var(--xmlui-borderColor-DatePicker-warning--hover)", "Input:backgroundColor-DatePicker-warning--hover": "var(--xmlui-backgroundColor-DatePicker-warning--hover)", "Input:boxShadow-DatePicker-warning--hover": "var(--xmlui-boxShadow-DatePicker-warning--hover)", "Input:textColor-DatePicker-warning--hover": "var(--xmlui-textColor-DatePicker-warning--hover)", "Input:outlineWidth-DatePicker-warning--focus": "var(--xmlui-outlineWidth-DatePicker-warning--focus)", "Input:outlineColor-DatePicker-warning--focus": "var(--xmlui-outlineColor-DatePicker-warning--focus)", "Input:outlineStyle-DatePicker-warning--focus": "var(--xmlui-outlineStyle-DatePicker-warning--focus)", "Input:outlineOffset-DatePicker-warning--focus": "var(--xmlui-outlineOffset-DatePicker-warning--focus)", "Input:textColor-placeholder-DatePicker-warning": "var(--xmlui-textColor-placeholder-DatePicker-warning)", "Input:textColor-adornment-DatePicker-warning": "var(--xmlui-textColor-adornment-DatePicker-warning)", "Input:borderRadius-DatePicker-success": "var(--xmlui-borderRadius-DatePicker-success)", "Input:borderColor-DatePicker-success": "var(--xmlui-borderColor-DatePicker-success)", "Input:borderWidth-DatePicker-success": "var(--xmlui-borderWidth-DatePicker-success)", "Input:borderStyle-DatePicker-success": "var(--xmlui-borderStyle-DatePicker-success)", "Input:backgroundColor-DatePicker-success": "var(--xmlui-backgroundColor-DatePicker-success)", "Input:boxShadow-DatePicker-success": "var(--xmlui-boxShadow-DatePicker-success)", "Input:textColor-DatePicker-success": "var(--xmlui-textColor-DatePicker-success)", "Input:padding-DatePicker-success": "var(--xmlui-padding-DatePicker-success)", "Input:borderColor-DatePicker-success--hover": "var(--xmlui-borderColor-DatePicker-success--hover)", "Input:backgroundColor-DatePicker-success--hover": "var(--xmlui-backgroundColor-DatePicker-success--hover)", "Input:boxShadow-DatePicker-success--hover": "var(--xmlui-boxShadow-DatePicker-success--hover)", "Input:textColor-DatePicker-success--hover": "var(--xmlui-textColor-DatePicker-success--hover)", "Input:outlineWidth-DatePicker-success--focus": "var(--xmlui-outlineWidth-DatePicker-success--focus)", "Input:outlineColor-DatePicker-success--focus": "var(--xmlui-outlineColor-DatePicker-success--focus)", "Input:outlineStyle-DatePicker-success--focus": "var(--xmlui-outlineStyle-DatePicker-success--focus)", "Input:outlineOffset-DatePicker-success--focus": "var(--xmlui-outlineOffset-DatePicker-success--focus)", "Input:textColor-placeholder-DatePicker-success": "var(--xmlui-textColor-placeholder-DatePicker-success)", "Input:textColor-adornment-DatePicker-success": "var(--xmlui-textColor-adornment-DatePicker-success)", "Input:backgroundColor-DatePicker--disabled": "var(--xmlui-backgroundColor-DatePicker--disabled)", "Input:textColor-DatePicker--disabled": "var(--xmlui-textColor-DatePicker--disabled)", "Input:borderColor-DatePicker--disabled": "var(--xmlui-borderColor-DatePicker--disabled)", "Input:boxShadow-menu-DatePicker": "var(--xmlui-boxShadow-menu-DatePicker)", "Input:backgroundColor-menu-DatePicker": "var(--xmlui-backgroundColor-menu-DatePicker)", "Input:borderRadius-menu-DatePicker": "var(--xmlui-borderRadius-menu-DatePicker)"}'`;
|
|
16343
|
+
const datePicker = "_datePicker_qilmv_13";
|
|
16344
|
+
const placeholder = "_placeholder_qilmv_47";
|
|
16345
|
+
const adornment = "_adornment_qilmv_50";
|
|
16346
|
+
const error$5 = "_error_qilmv_53";
|
|
16347
|
+
const warning$5 = "_warning_qilmv_81";
|
|
16348
|
+
const valid$5 = "_valid_qilmv_109";
|
|
16349
|
+
const disabled$2 = "_disabled_qilmv_137";
|
|
16350
|
+
const indicator$1 = "_indicator_qilmv_143";
|
|
16351
|
+
const datePickerInput = "_datePickerInput_qilmv_143";
|
|
16352
|
+
const datePickerValue = "_datePickerValue_qilmv_147";
|
|
16353
|
+
const inlinePickerMenu = "_inlinePickerMenu_qilmv_152";
|
|
16354
|
+
const root$1 = "_root_qilmv_269";
|
|
16355
|
+
const datePickerMenu = "_datePickerMenu_qilmv_274";
|
|
16356
|
+
const vhidden = "_vhidden_qilmv_285";
|
|
16357
|
+
const button_reset = "_button_reset_qilmv_304";
|
|
16358
|
+
const button$1 = "_button_qilmv_304";
|
|
16359
|
+
const day_selected = "_day_selected_qilmv_322";
|
|
16360
|
+
const button_next = "_button_next_qilmv_336";
|
|
16361
|
+
const button_previous = "_button_previous_qilmv_337";
|
|
16362
|
+
const months = "_months_qilmv_367";
|
|
16363
|
+
const month = "_month_qilmv_367";
|
|
16364
|
+
const month_grid = "_month_grid_qilmv_383";
|
|
16365
|
+
const caption = "_caption_qilmv_387";
|
|
16366
|
+
const multiple_months = "_multiple_months_qilmv_395";
|
|
16367
|
+
const caption_dropdowns = "_caption_dropdowns_qilmv_401";
|
|
16368
|
+
const caption_label = "_caption_label_qilmv_406";
|
|
16369
|
+
const chevron$1 = "_chevron_qilmv_421";
|
|
16370
|
+
const nav$1 = "_nav_qilmv_426";
|
|
16371
|
+
const caption_start = "_caption_start_qilmv_430";
|
|
16372
|
+
const caption_end = "_caption_end_qilmv_437";
|
|
16373
|
+
const nav_button = "_nav_button_qilmv_444";
|
|
16374
|
+
const dropdowns = "_dropdowns_qilmv_457";
|
|
16375
|
+
const dropdown_year = "_dropdown_year_qilmv_464";
|
|
16376
|
+
const dropdown_month = "_dropdown_month_qilmv_465";
|
|
16377
|
+
const dropdown = "_dropdown_qilmv_457";
|
|
16378
|
+
const day = "_day_qilmv_322";
|
|
16379
|
+
const weekday = "_weekday_qilmv_509";
|
|
16380
|
+
const week_number = "_week_number_qilmv_514";
|
|
16381
|
+
const day_button = "_day_button_qilmv_519";
|
|
16382
|
+
const today = "_today_qilmv_540";
|
|
16383
|
+
const outside = "_outside_qilmv_540";
|
|
16384
|
+
const selected = "_selected_qilmv_544";
|
|
16385
|
+
const day_range_start = "_day_range_start_qilmv_565";
|
|
16386
|
+
const day_range_end = "_day_range_end_qilmv_565";
|
|
16387
|
+
const day_range_middle = "_day_range_middle_qilmv_589";
|
|
16358
16388
|
const styles$v = {
|
|
16359
16389
|
themeVars: themeVars$h,
|
|
16360
16390
|
datePicker,
|
|
@@ -16368,39 +16398,37 @@ const styles$v = {
|
|
|
16368
16398
|
datePickerInput,
|
|
16369
16399
|
datePickerValue,
|
|
16370
16400
|
inlinePickerMenu,
|
|
16371
|
-
datePickerMenu,
|
|
16372
16401
|
root: root$1,
|
|
16402
|
+
datePickerMenu,
|
|
16373
16403
|
vhidden,
|
|
16374
16404
|
button_reset,
|
|
16375
16405
|
button: button$1,
|
|
16376
16406
|
day_selected,
|
|
16407
|
+
button_next,
|
|
16408
|
+
button_previous,
|
|
16377
16409
|
months,
|
|
16378
16410
|
month,
|
|
16379
|
-
|
|
16380
|
-
with_weeknumber,
|
|
16411
|
+
month_grid,
|
|
16381
16412
|
caption,
|
|
16382
16413
|
multiple_months,
|
|
16383
16414
|
caption_dropdowns,
|
|
16384
16415
|
caption_label,
|
|
16416
|
+
chevron: chevron$1,
|
|
16385
16417
|
nav: nav$1,
|
|
16386
16418
|
caption_start,
|
|
16387
16419
|
caption_end,
|
|
16388
16420
|
nav_button,
|
|
16421
|
+
dropdowns,
|
|
16389
16422
|
dropdown_year,
|
|
16390
16423
|
dropdown_month,
|
|
16391
16424
|
dropdown,
|
|
16392
|
-
dropdown_icon,
|
|
16393
|
-
head,
|
|
16394
|
-
head_row,
|
|
16395
|
-
row,
|
|
16396
|
-
head_cell,
|
|
16397
|
-
tbody,
|
|
16398
|
-
tfoot,
|
|
16399
|
-
cell,
|
|
16400
|
-
weeknumber,
|
|
16401
16425
|
day,
|
|
16402
|
-
|
|
16403
|
-
|
|
16426
|
+
weekday,
|
|
16427
|
+
week_number,
|
|
16428
|
+
day_button,
|
|
16429
|
+
today,
|
|
16430
|
+
outside,
|
|
16431
|
+
selected,
|
|
16404
16432
|
day_range_start,
|
|
16405
16433
|
day_range_end,
|
|
16406
16434
|
day_range_middle
|
|
@@ -16561,9 +16589,11 @@ const DatePicker = forwardRef(function DatePicker2({
|
|
|
16561
16589
|
return inline ? /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("div", { className: styles$v.inlinePickerMenu, children: /* @__PURE__ */ jsx(
|
|
16562
16590
|
DayPicker,
|
|
16563
16591
|
{
|
|
16592
|
+
required: void 0,
|
|
16593
|
+
captionLayout: "dropdown",
|
|
16564
16594
|
fixedWeeks: true,
|
|
16565
|
-
|
|
16566
|
-
|
|
16595
|
+
startMonth: startDate,
|
|
16596
|
+
endMonth: endDate,
|
|
16567
16597
|
disabled: disabled2,
|
|
16568
16598
|
weekStartsOn: _weekStartsOn,
|
|
16569
16599
|
showWeekNumber,
|
|
@@ -16572,7 +16602,7 @@ const DatePicker = forwardRef(function DatePicker2({
|
|
|
16572
16602
|
mode: mode === "single" ? "single" : "range",
|
|
16573
16603
|
selected: selected2,
|
|
16574
16604
|
onSelect: handleSelect,
|
|
16575
|
-
|
|
16605
|
+
autoFocus: !inline,
|
|
16576
16606
|
numberOfMonths: mode === "range" ? 2 : 1
|
|
16577
16607
|
}
|
|
16578
16608
|
) }) }) : /* @__PURE__ */ jsxs(ReactDropdownMenu.Root, { open: open2, onOpenChange: setOpen, modal: false, children: [
|
|
@@ -16606,6 +16636,7 @@ const DatePicker = forwardRef(function DatePicker2({
|
|
|
16606
16636
|
ReactDropdownMenu.Content,
|
|
16607
16637
|
{
|
|
16608
16638
|
align: "start",
|
|
16639
|
+
sideOffset: 5,
|
|
16609
16640
|
className: styles$v.datePickerMenu,
|
|
16610
16641
|
onFocus: handleOnMenuFocus,
|
|
16611
16642
|
onBlur: handleOnMenuBlur,
|
|
@@ -16613,18 +16644,20 @@ const DatePicker = forwardRef(function DatePicker2({
|
|
|
16613
16644
|
children: /* @__PURE__ */ jsx(
|
|
16614
16645
|
DayPicker,
|
|
16615
16646
|
{
|
|
16647
|
+
required: void 0,
|
|
16616
16648
|
fixedWeeks: true,
|
|
16617
|
-
|
|
16618
|
-
|
|
16649
|
+
classNames: styles$v,
|
|
16650
|
+
captionLayout: "dropdown",
|
|
16651
|
+
startMonth: startDate,
|
|
16652
|
+
endMonth: endDate,
|
|
16619
16653
|
disabled: disabled2,
|
|
16620
16654
|
weekStartsOn: _weekStartsOn,
|
|
16621
16655
|
showWeekNumber,
|
|
16622
16656
|
showOutsideDays: true,
|
|
16623
|
-
classNames: styles$v,
|
|
16624
16657
|
mode: mode === "single" ? "single" : "range",
|
|
16625
16658
|
selected: selected2,
|
|
16626
16659
|
onSelect: handleSelect,
|
|
16627
|
-
|
|
16660
|
+
autoFocus: !inline,
|
|
16628
16661
|
numberOfMonths: mode === "range" ? 2 : 1
|
|
16629
16662
|
}
|
|
16630
16663
|
)
|
|
@@ -21323,18 +21356,19 @@ const MarkdownMd = createMetadata({
|
|
|
21323
21356
|
defaultThemeVars: {
|
|
21324
21357
|
"backgroundColor-Admonition": "$color-warn-300",
|
|
21325
21358
|
"borderRadius-Admonition": "$space-4",
|
|
21326
|
-
"iconSize-Admonition": "
|
|
21327
|
-
"padding-Admonition": "
|
|
21328
|
-
"marginBottom-Admonition": "
|
|
21329
|
-
"marginLeft-Admonition-content": "
|
|
21359
|
+
"iconSize-Admonition": "$space-6",
|
|
21360
|
+
"padding-Admonition": "$space-4",
|
|
21361
|
+
"marginBottom-Admonition": "$space-4",
|
|
21362
|
+
"marginLeft-Admonition-content": "$space-2",
|
|
21330
21363
|
"backgroundColor-Blockquote": "$color-warn-200",
|
|
21331
21364
|
"accentWidth-Blockquote": "3px",
|
|
21332
21365
|
"accentColor-Blockquote": "$color-surface-500",
|
|
21333
|
-
"padding-Blockquote": "
|
|
21334
|
-
"marginBottom-Blockquote": "
|
|
21335
|
-
"marginBottom-Text-codefence": "
|
|
21336
|
-
"marginBottom-Text-markdown": "
|
|
21337
|
-
"marginTop-HtmlLi": "-
|
|
21366
|
+
"padding-Blockquote": "$space-2",
|
|
21367
|
+
"marginBottom-Blockquote": "$space-4",
|
|
21368
|
+
"marginBottom-Text-codefence": "$space-2",
|
|
21369
|
+
"marginBottom-Text-markdown": "$space-2",
|
|
21370
|
+
"marginTop-HtmlLi": "$space-2",
|
|
21371
|
+
"marginBottom-HtmlLi": "$space-2",
|
|
21338
21372
|
light: {
|
|
21339
21373
|
// --- No light-specific theme vars
|
|
21340
21374
|
},
|
|
@@ -21421,7 +21455,9 @@ const SelectMd = createMetadata({
|
|
|
21421
21455
|
focus: dFocus(COMP$v),
|
|
21422
21456
|
setValue: dSetValueApi(),
|
|
21423
21457
|
value: dValue(),
|
|
21424
|
-
reset: d(
|
|
21458
|
+
reset: d(
|
|
21459
|
+
`This method resets the component to its initial value, or clears the selection if no initial value was provided.`
|
|
21460
|
+
)
|
|
21425
21461
|
},
|
|
21426
21462
|
contextVars: {
|
|
21427
21463
|
$item: d(`This property represents the value of an item in the dropdown list.`),
|
|
@@ -21473,7 +21509,9 @@ const selectComponentRenderer = createComponentRenderer(
|
|
|
21473
21509
|
multiSelect: extractValue.asOptionalBoolean(node.props.multiSelect),
|
|
21474
21510
|
style: layoutCss,
|
|
21475
21511
|
inProgress: extractValue.asOptionalBoolean(node.props.inProgress),
|
|
21476
|
-
inProgressNotificationMessage: extractValue.asOptionalString(
|
|
21512
|
+
inProgressNotificationMessage: extractValue.asOptionalString(
|
|
21513
|
+
node.props.inProgressNotificationMessage
|
|
21514
|
+
),
|
|
21477
21515
|
updateState,
|
|
21478
21516
|
searchable: extractValue.asOptionalBoolean(node.props.searchable),
|
|
21479
21517
|
initialValue: extractValue(node.props.initialValue),
|
|
@@ -21509,7 +21547,7 @@ const selectComponentRenderer = createComponentRenderer(
|
|
|
21509
21547
|
{
|
|
21510
21548
|
node: node.props.optionTemplate,
|
|
21511
21549
|
item: item2,
|
|
21512
|
-
renderChild: renderChild2
|
|
21550
|
+
renderChild: (...args) => /* @__PURE__ */ jsx(SelectItemText, { children: renderChild2(...args) })
|
|
21513
21551
|
}
|
|
21514
21552
|
);
|
|
21515
21553
|
} : void 0,
|
|
@@ -25075,15 +25113,21 @@ function Loader({
|
|
|
25075
25113
|
onLoaded,
|
|
25076
25114
|
loaderLoaded: loaderLoaded2,
|
|
25077
25115
|
loaderInProgressChanged: loaderInProgressChanged2,
|
|
25116
|
+
loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
|
|
25078
25117
|
loaderError: loaderError2,
|
|
25079
25118
|
transformResult
|
|
25080
25119
|
}) {
|
|
25081
25120
|
const { uid } = loader;
|
|
25082
25121
|
const appContext = useAppContext();
|
|
25083
|
-
const
|
|
25084
|
-
|
|
25085
|
-
|
|
25086
|
-
|
|
25122
|
+
const [isRefetching, setIsRefetching] = useState(false);
|
|
25123
|
+
const { data, status, isFetching, error: error2, refetch } = useQuery({
|
|
25124
|
+
queryKey: useMemo(
|
|
25125
|
+
() => queryId ? queryId : [uid, extractParam(state, loader.props, appContext)],
|
|
25126
|
+
[appContext, loader.props, queryId, state, uid]
|
|
25127
|
+
),
|
|
25128
|
+
structuralSharing: false,
|
|
25129
|
+
queryFn: useCallback(
|
|
25130
|
+
async ({ signal }) => {
|
|
25087
25131
|
try {
|
|
25088
25132
|
const newVar = await loaderFn(signal);
|
|
25089
25133
|
if (newVar === void 0) {
|
|
@@ -25093,8 +25137,11 @@ function Loader({
|
|
|
25093
25137
|
} catch (error22) {
|
|
25094
25138
|
throw error22;
|
|
25095
25139
|
}
|
|
25096
|
-
},
|
|
25097
|
-
|
|
25140
|
+
},
|
|
25141
|
+
[loaderFn]
|
|
25142
|
+
),
|
|
25143
|
+
select: useCallback(
|
|
25144
|
+
(data2) => {
|
|
25098
25145
|
let result = data2;
|
|
25099
25146
|
const resultSelector = loader.props.resultSelector;
|
|
25100
25147
|
if (resultSelector) {
|
|
@@ -25105,14 +25152,16 @@ function Loader({
|
|
|
25105
25152
|
}
|
|
25106
25153
|
const finalResult = transformResult ? transformResult(result) : result;
|
|
25107
25154
|
return finalResult;
|
|
25108
|
-
},
|
|
25109
|
-
|
|
25110
|
-
|
|
25111
|
-
|
|
25155
|
+
},
|
|
25156
|
+
[loader.props.resultSelector, transformResult]
|
|
25157
|
+
),
|
|
25158
|
+
retry: false
|
|
25159
|
+
});
|
|
25112
25160
|
useEffect(() => {
|
|
25113
25161
|
let intervalId;
|
|
25114
25162
|
if (pollIntervalInSeconds) {
|
|
25115
25163
|
intervalId = setInterval(() => {
|
|
25164
|
+
setIsRefetching(true);
|
|
25116
25165
|
refetch();
|
|
25117
25166
|
}, pollIntervalInSeconds * 1e3);
|
|
25118
25167
|
}
|
|
@@ -25127,16 +25176,21 @@ function Loader({
|
|
|
25127
25176
|
useLayoutEffect(() => {
|
|
25128
25177
|
loaderInProgressChanged2(isFetching);
|
|
25129
25178
|
}, [isFetching, loaderInProgressChanged2]);
|
|
25179
|
+
useLayoutEffect(() => {
|
|
25180
|
+
loaderIsRefetchingChanged2(isRefetching);
|
|
25181
|
+
}, [isRefetching, loaderIsRefetchingChanged2]);
|
|
25130
25182
|
useLayoutEffect(() => {
|
|
25131
25183
|
if (status === "success" && data !== prevData) {
|
|
25132
25184
|
loaderLoaded2(data);
|
|
25133
25185
|
setTimeout(() => {
|
|
25134
|
-
onLoaded == null ? void 0 : onLoaded(data);
|
|
25186
|
+
onLoaded == null ? void 0 : onLoaded(data, isRefetching);
|
|
25187
|
+
setIsRefetching(false);
|
|
25135
25188
|
}, 0);
|
|
25136
25189
|
} else if (status === "error" && error2 !== prevError) {
|
|
25137
25190
|
loaderError2(error2);
|
|
25191
|
+
setIsRefetching(false);
|
|
25138
25192
|
}
|
|
25139
|
-
}, [data, error2, loaderError2, loaderLoaded2, onLoaded, prevData, prevError, status]);
|
|
25193
|
+
}, [data, error2, loaderError2, loaderLoaded2, onLoaded, prevData, prevError, status, isRefetching]);
|
|
25140
25194
|
useLayoutEffect(() => {
|
|
25141
25195
|
return () => {
|
|
25142
25196
|
loaderLoaded2(void 0);
|
|
@@ -25144,7 +25198,10 @@ function Loader({
|
|
|
25144
25198
|
}, [loaderLoaded2, uid]);
|
|
25145
25199
|
useEffect(() => {
|
|
25146
25200
|
registerComponentApi == null ? void 0 : registerComponentApi({
|
|
25147
|
-
refetch
|
|
25201
|
+
refetch: async (options2) => {
|
|
25202
|
+
setIsRefetching(true);
|
|
25203
|
+
refetch(options2);
|
|
25204
|
+
},
|
|
25148
25205
|
update: async (updater) => {
|
|
25149
25206
|
var _a, _b;
|
|
25150
25207
|
const oldData = (_a = appContext.queryClient) == null ? void 0 : _a.getQueryData(queryId);
|
|
@@ -25186,6 +25243,7 @@ function Loader({
|
|
|
25186
25243
|
function ApiLoader$1({
|
|
25187
25244
|
loader,
|
|
25188
25245
|
loaderInProgressChanged: loaderInProgressChanged2,
|
|
25246
|
+
loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
|
|
25189
25247
|
loaderLoaded: loaderLoaded2,
|
|
25190
25248
|
loaderError: loaderError2,
|
|
25191
25249
|
state,
|
|
@@ -25198,7 +25256,6 @@ function ApiLoader$1({
|
|
|
25198
25256
|
if (!loadable) {
|
|
25199
25257
|
return;
|
|
25200
25258
|
}
|
|
25201
|
-
console.log("doLoad ", url);
|
|
25202
25259
|
const response = await fetch(url);
|
|
25203
25260
|
if (loader.props.raw) {
|
|
25204
25261
|
return await response.text();
|
|
@@ -25215,6 +25272,7 @@ function ApiLoader$1({
|
|
|
25215
25272
|
state,
|
|
25216
25273
|
loader,
|
|
25217
25274
|
loaderInProgressChanged: loaderInProgressChanged2,
|
|
25275
|
+
loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
|
|
25218
25276
|
loaderLoaded: loaderLoaded2,
|
|
25219
25277
|
loaderError: loaderError2,
|
|
25220
25278
|
loaderFn: doLoad
|
|
@@ -25230,13 +25288,14 @@ const ApiLoaderMd = createMetadata({
|
|
|
25230
25288
|
});
|
|
25231
25289
|
const apiLoaderRenderer = createLoaderRenderer(
|
|
25232
25290
|
"ApiLoader",
|
|
25233
|
-
({ loader, state,
|
|
25291
|
+
({ loader, state, loaderInProgressChanged: loaderInProgressChanged2, loaderIsRefetchingChanged: loaderIsRefetchingChanged2, loaderLoaded: loaderLoaded2, loaderError: loaderError2 }) => {
|
|
25234
25292
|
return /* @__PURE__ */ jsx(
|
|
25235
25293
|
ApiLoader$1,
|
|
25236
25294
|
{
|
|
25237
25295
|
loader,
|
|
25238
25296
|
state,
|
|
25239
25297
|
loaderInProgressChanged: loaderInProgressChanged2,
|
|
25298
|
+
loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
|
|
25240
25299
|
loaderLoaded: loaderLoaded2,
|
|
25241
25300
|
loaderError: loaderError2
|
|
25242
25301
|
}
|
|
@@ -25247,6 +25306,7 @@ const apiLoaderRenderer = createLoaderRenderer(
|
|
|
25247
25306
|
function ExternalDataLoader({
|
|
25248
25307
|
loader,
|
|
25249
25308
|
loaderInProgressChanged: loaderInProgressChanged2,
|
|
25309
|
+
loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
|
|
25250
25310
|
loaderError: loaderError2,
|
|
25251
25311
|
loaderLoaded: loaderLoaded2,
|
|
25252
25312
|
state,
|
|
@@ -25256,14 +25316,12 @@ function ExternalDataLoader({
|
|
|
25256
25316
|
const method = extractParam(state, loader.props.method, appContext);
|
|
25257
25317
|
const headers = extractParam(state, loader.props.headers, appContext);
|
|
25258
25318
|
const data = extractParam(state, loader.props.data, appContext);
|
|
25259
|
-
console.log("resolve");
|
|
25260
25319
|
const url = extractParam(state, loader.props.url, appContext);
|
|
25261
25320
|
const urlLoadable = !!url;
|
|
25262
25321
|
const doLoad = useCallback(async () => {
|
|
25263
25322
|
if (!urlLoadable) {
|
|
25264
25323
|
return;
|
|
25265
25324
|
}
|
|
25266
|
-
console.log("doLoad ", url, data);
|
|
25267
25325
|
const response = await fetch(url, {
|
|
25268
25326
|
method: method || "POST",
|
|
25269
25327
|
headers: {
|
|
@@ -25276,7 +25334,6 @@ function ExternalDataLoader({
|
|
|
25276
25334
|
if (!doNotRemoveNulls) {
|
|
25277
25335
|
removeNullProperties(responseObj);
|
|
25278
25336
|
}
|
|
25279
|
-
console.log("result", responseObj);
|
|
25280
25337
|
return responseObj;
|
|
25281
25338
|
}, [urlLoadable, headers, data, url, method, doNotRemoveNulls]);
|
|
25282
25339
|
return /* @__PURE__ */ jsx(
|
|
@@ -25285,6 +25342,7 @@ function ExternalDataLoader({
|
|
|
25285
25342
|
state,
|
|
25286
25343
|
loader,
|
|
25287
25344
|
loaderInProgressChanged: loaderInProgressChanged2,
|
|
25345
|
+
loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
|
|
25288
25346
|
loaderLoaded: loaderLoaded2,
|
|
25289
25347
|
loaderError: loaderError2,
|
|
25290
25348
|
loaderFn: doLoad
|
|
@@ -25302,13 +25360,14 @@ const ExternalDataLoaderMd = createMetadata({
|
|
|
25302
25360
|
});
|
|
25303
25361
|
const externalDataLoaderRenderer = createLoaderRenderer(
|
|
25304
25362
|
"ExternalDataLoader",
|
|
25305
|
-
({ loader, state, loaderInProgressChanged: loaderInProgressChanged2, loaderError: loaderError2, loaderLoaded: loaderLoaded2 }) => {
|
|
25363
|
+
({ loader, state, loaderInProgressChanged: loaderInProgressChanged2, loaderIsRefetchingChanged: loaderIsRefetchingChanged2, loaderError: loaderError2, loaderLoaded: loaderLoaded2 }) => {
|
|
25306
25364
|
return /* @__PURE__ */ jsx(
|
|
25307
25365
|
ExternalDataLoader,
|
|
25308
25366
|
{
|
|
25309
25367
|
loader,
|
|
25310
25368
|
state,
|
|
25311
25369
|
loaderInProgressChanged: loaderInProgressChanged2,
|
|
25370
|
+
loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
|
|
25312
25371
|
loaderLoaded: loaderLoaded2,
|
|
25313
25372
|
loaderError: loaderError2
|
|
25314
25373
|
}
|
|
@@ -25319,6 +25378,7 @@ const externalDataLoaderRenderer = createLoaderRenderer(
|
|
|
25319
25378
|
function ApiLoader({
|
|
25320
25379
|
loader,
|
|
25321
25380
|
loaderInProgressChanged: loaderInProgressChanged2,
|
|
25381
|
+
loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
|
|
25322
25382
|
loaderError: loaderError2,
|
|
25323
25383
|
loaderLoaded: loaderLoaded2,
|
|
25324
25384
|
state
|
|
@@ -25336,6 +25396,7 @@ function ApiLoader({
|
|
|
25336
25396
|
state,
|
|
25337
25397
|
loader,
|
|
25338
25398
|
loaderInProgressChanged: loaderInProgressChanged2,
|
|
25399
|
+
loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
|
|
25339
25400
|
loaderLoaded: loaderLoaded2,
|
|
25340
25401
|
loaderError: loaderError2,
|
|
25341
25402
|
loaderFn: doLoad
|
|
@@ -25358,6 +25419,7 @@ const mockLoaderRenderer = createLoaderRenderer(
|
|
|
25358
25419
|
loader,
|
|
25359
25420
|
state,
|
|
25360
25421
|
loaderInProgressChanged: loaderInProgressChanged2,
|
|
25422
|
+
loaderIsRefetchingChanged: loaderInProgressChanged2,
|
|
25361
25423
|
loaderLoaded: loaderLoaded2,
|
|
25362
25424
|
loaderError: loaderError2
|
|
25363
25425
|
}
|
|
@@ -25374,6 +25436,7 @@ function PageableLoader({
|
|
|
25374
25436
|
pollIntervalInSeconds,
|
|
25375
25437
|
onLoaded,
|
|
25376
25438
|
loaderInProgressChanged: loaderInProgressChanged2,
|
|
25439
|
+
loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
|
|
25377
25440
|
loaderLoaded: loaderLoaded2,
|
|
25378
25441
|
loaderError: loaderError2,
|
|
25379
25442
|
transformResult
|
|
@@ -25385,6 +25448,7 @@ function PageableLoader({
|
|
|
25385
25448
|
[appContext, loader.props, queryId, state, uid]
|
|
25386
25449
|
);
|
|
25387
25450
|
const thizRef = useRef(queryKey);
|
|
25451
|
+
const [isRefetching, setIsRefetching] = useState(false);
|
|
25388
25452
|
const getPreviousPageParam = useCallback(
|
|
25389
25453
|
(firstPage) => {
|
|
25390
25454
|
let prevPageParam = void 0;
|
|
@@ -25485,6 +25549,9 @@ function PageableLoader({
|
|
|
25485
25549
|
useLayoutEffect(() => {
|
|
25486
25550
|
loaderInProgressChanged2(isFetching);
|
|
25487
25551
|
}, [isFetching, loaderInProgressChanged2]);
|
|
25552
|
+
useLayoutEffect(() => {
|
|
25553
|
+
loaderIsRefetchingChanged2(isRefetching);
|
|
25554
|
+
}, [isRefetching, loaderIsRefetchingChanged2]);
|
|
25488
25555
|
const pageInfo = useMemo(() => {
|
|
25489
25556
|
return {
|
|
25490
25557
|
hasPrevPage: hasPreviousPage,
|
|
@@ -25498,10 +25565,12 @@ function PageableLoader({
|
|
|
25498
25565
|
if (status === "success" && (prevData !== data || prevPageInfo !== pageInfo)) {
|
|
25499
25566
|
loaderLoaded2(data, pageInfo);
|
|
25500
25567
|
setTimeout(() => {
|
|
25501
|
-
onLoaded == null ? void 0 : onLoaded(data);
|
|
25568
|
+
onLoaded == null ? void 0 : onLoaded(data, isRefetching);
|
|
25569
|
+
setIsRefetching(false);
|
|
25502
25570
|
}, 0);
|
|
25503
25571
|
} else if (status === "error" && prevError !== error2) {
|
|
25504
25572
|
loaderError2(error2);
|
|
25573
|
+
setIsRefetching(false);
|
|
25505
25574
|
}
|
|
25506
25575
|
}, [
|
|
25507
25576
|
data,
|
|
@@ -25519,6 +25588,7 @@ function PageableLoader({
|
|
|
25519
25588
|
let intervalId;
|
|
25520
25589
|
if (pollIntervalInSeconds) {
|
|
25521
25590
|
intervalId = setInterval(() => {
|
|
25591
|
+
setIsRefetching(true);
|
|
25522
25592
|
refetch();
|
|
25523
25593
|
}, pollIntervalInSeconds * 1e3);
|
|
25524
25594
|
}
|
|
@@ -25538,7 +25608,10 @@ function PageableLoader({
|
|
|
25538
25608
|
registerComponentApi({
|
|
25539
25609
|
fetchPrevPage,
|
|
25540
25610
|
fetchNextPage: stableFetchNextPage,
|
|
25541
|
-
refetch
|
|
25611
|
+
refetch: async (options2) => {
|
|
25612
|
+
setIsRefetching(true);
|
|
25613
|
+
refetch(options2);
|
|
25614
|
+
},
|
|
25542
25615
|
update: async (updater) => {
|
|
25543
25616
|
var _a, _b;
|
|
25544
25617
|
const oldData = (_a = appContext.queryClient) == null ? void 0 : _a.getQueryData(queryId);
|
|
@@ -25600,6 +25673,7 @@ function DataLoader({
|
|
|
25600
25673
|
onLoaded,
|
|
25601
25674
|
onError,
|
|
25602
25675
|
loaderInProgressChanged: loaderInProgressChanged2,
|
|
25676
|
+
loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
|
|
25603
25677
|
loaderLoaded: loaderLoaded2,
|
|
25604
25678
|
loaderError: loaderError2,
|
|
25605
25679
|
transformResult
|
|
@@ -25855,6 +25929,7 @@ function DataLoader({
|
|
|
25855
25929
|
state,
|
|
25856
25930
|
loader,
|
|
25857
25931
|
loaderInProgressChanged: inProgress,
|
|
25932
|
+
loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
|
|
25858
25933
|
loaderLoaded: loaded,
|
|
25859
25934
|
loaderError: error2,
|
|
25860
25935
|
loaderFn: doLoad,
|
|
@@ -25871,6 +25946,7 @@ function DataLoader({
|
|
|
25871
25946
|
state,
|
|
25872
25947
|
loader,
|
|
25873
25948
|
loaderInProgressChanged: inProgress,
|
|
25949
|
+
loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
|
|
25874
25950
|
loaderLoaded: loaded,
|
|
25875
25951
|
loaderError: error2,
|
|
25876
25952
|
loaderFn: doLoad,
|
|
@@ -25913,6 +25989,7 @@ const dataLoaderRenderer = createLoaderRenderer(
|
|
|
25913
25989
|
state,
|
|
25914
25990
|
loaderLoaded: loaderLoaded2,
|
|
25915
25991
|
loaderInProgressChanged: loaderInProgressChanged2,
|
|
25992
|
+
loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
|
|
25916
25993
|
loaderError: loaderError2,
|
|
25917
25994
|
registerComponentApi,
|
|
25918
25995
|
lookupAction,
|
|
@@ -25928,6 +26005,7 @@ const dataLoaderRenderer = createLoaderRenderer(
|
|
|
25928
26005
|
loader,
|
|
25929
26006
|
state,
|
|
25930
26007
|
loaderInProgressChanged: loaderInProgressChanged2,
|
|
26008
|
+
loaderIsRefetchingChanged: loaderIsRefetchingChanged2,
|
|
25931
26009
|
loaderLoaded: loaderLoaded2,
|
|
25932
26010
|
loaderError: loaderError2,
|
|
25933
26011
|
registerComponentApi,
|
|
@@ -28096,8 +28174,7 @@ const OptionMd = createMetadata({
|
|
|
28096
28174
|
),
|
|
28097
28175
|
enabled: dEnabled(),
|
|
28098
28176
|
optionTemplate: d("This property is used to define a custom option template")
|
|
28099
|
-
}
|
|
28100
|
-
childrenAsTemplate: "optionTemplate"
|
|
28177
|
+
}
|
|
28101
28178
|
});
|
|
28102
28179
|
const OptionNative = memo((props) => {
|
|
28103
28180
|
const OptionType = useOptionType();
|
|
@@ -31484,7 +31561,7 @@ function IconProvider({ children }) {
|
|
|
31484
31561
|
/* @__PURE__ */ jsx("svg", { style: { display: "none" }, ref: spriteRootRef })
|
|
31485
31562
|
] });
|
|
31486
31563
|
}
|
|
31487
|
-
const version = "0.9.
|
|
31564
|
+
const version = "0.9.14";
|
|
31488
31565
|
const ApiInterceptorContext = createContext(null);
|
|
31489
31566
|
function useApiInterceptorContext() {
|
|
31490
31567
|
return useContext(ApiInterceptorContext);
|
|
@@ -31593,6 +31670,7 @@ const mathFunctions = {
|
|
|
31593
31670
|
var ContainerActionKind = /* @__PURE__ */ ((ContainerActionKind2) => {
|
|
31594
31671
|
ContainerActionKind2["LOADER_LOADED"] = "ContainerActionKind:LOADER_LOADED";
|
|
31595
31672
|
ContainerActionKind2["LOADER_IN_PROGRESS_CHANGED"] = "ContainerActionKind:LOADER_IN_PROGRESS_CHANGED";
|
|
31673
|
+
ContainerActionKind2["LOADER_IS_REFETCHING_CHANGED"] = "ContainerActionKind:LOADER_IS_REFETCHING_CHANGED";
|
|
31596
31674
|
ContainerActionKind2["LOADER_ERROR"] = "ContainerActionKind:LOADER_ERROR";
|
|
31597
31675
|
ContainerActionKind2["EVENT_HANDLER_STARTED"] = "ContainerActionKind:EVENT_HANDLER_STARTED";
|
|
31598
31676
|
ContainerActionKind2["EVENT_HANDLER_COMPLETED"] = "ContainerActionKind:EVENT_HANDLER_COMPLETED";
|
|
@@ -31651,6 +31729,11 @@ function createContainerReducer(debugView) {
|
|
|
31651
31729
|
storeNextValue(state[uid]);
|
|
31652
31730
|
break;
|
|
31653
31731
|
}
|
|
31732
|
+
case ContainerActionKind.LOADER_IS_REFETCHING_CHANGED: {
|
|
31733
|
+
state[uid] = { ...state[uid], isRefetching: action.payload.isRefetching };
|
|
31734
|
+
storeNextValue(state[uid]);
|
|
31735
|
+
break;
|
|
31736
|
+
}
|
|
31654
31737
|
case ContainerActionKind.LOADER_LOADED: {
|
|
31655
31738
|
const { data, pageInfo } = action.payload;
|
|
31656
31739
|
state[uid] = {
|
|
@@ -31726,7 +31809,6 @@ function createContainerReducer(debugView) {
|
|
|
31726
31809
|
prevState,
|
|
31727
31810
|
nextState
|
|
31728
31811
|
};
|
|
31729
|
-
console.log("Transition", loggedTransition);
|
|
31730
31812
|
if (debugView.stateTransitions) {
|
|
31731
31813
|
if (debugView.stateTransitions.length >= MAX_STATE_TRANSITION_LENGTH) {
|
|
31732
31814
|
debugView.stateTransitions.shift();
|
|
@@ -33171,6 +33253,12 @@ function LoaderComponent({
|
|
|
33171
33253
|
},
|
|
33172
33254
|
[dispatch, uid]
|
|
33173
33255
|
);
|
|
33256
|
+
const memoedLoaderIsRefetchingChanged = useCallback(
|
|
33257
|
+
(isRefetching) => {
|
|
33258
|
+
dispatch(loaderIsRefetchingChanged(uid, isRefetching));
|
|
33259
|
+
},
|
|
33260
|
+
[dispatch, uid]
|
|
33261
|
+
);
|
|
33174
33262
|
const memoedLoaderLoaded = useCallback(
|
|
33175
33263
|
(data, pageInfo) => {
|
|
33176
33264
|
dispatch(loaderLoaded(uid, data, pageInfo));
|
|
@@ -33195,6 +33283,7 @@ function LoaderComponent({
|
|
|
33195
33283
|
state,
|
|
33196
33284
|
dispatch,
|
|
33197
33285
|
loaderInProgressChanged: memoedLoaderInProgressChanged,
|
|
33286
|
+
loaderIsRefetchingChanged: memoedLoaderIsRefetchingChanged,
|
|
33198
33287
|
loaderLoaded: memoedLoaderLoaded,
|
|
33199
33288
|
loaderError: memoedLoaderError,
|
|
33200
33289
|
extractValue: valueExtractor,
|
|
@@ -33212,6 +33301,15 @@ function loaderInProgressChanged(uid, isInProgress) {
|
|
|
33212
33301
|
}
|
|
33213
33302
|
};
|
|
33214
33303
|
}
|
|
33304
|
+
function loaderIsRefetchingChanged(uid, isRefetching) {
|
|
33305
|
+
return {
|
|
33306
|
+
type: ContainerActionKind.LOADER_IS_REFETCHING_CHANGED,
|
|
33307
|
+
payload: {
|
|
33308
|
+
uid,
|
|
33309
|
+
isRefetching
|
|
33310
|
+
}
|
|
33311
|
+
};
|
|
33312
|
+
}
|
|
33215
33313
|
function loaderLoaded(uid, data, pageInfo) {
|
|
33216
33314
|
return {
|
|
33217
33315
|
type: ContainerActionKind.LOADER_LOADED,
|
|
@@ -35564,7 +35662,8 @@ function AppRoot({
|
|
|
35564
35662
|
resourceMap,
|
|
35565
35663
|
sources,
|
|
35566
35664
|
extensionManager,
|
|
35567
|
-
children
|
|
35665
|
+
children,
|
|
35666
|
+
projectCompilation
|
|
35568
35667
|
}) {
|
|
35569
35668
|
const rootNode = useMemo(() => {
|
|
35570
35669
|
const themedRoot = node.type === "Theme" ? {
|
|
@@ -35587,9 +35686,14 @@ function AppRoot({
|
|
|
35587
35686
|
uses: []
|
|
35588
35687
|
};
|
|
35589
35688
|
}, [node]);
|
|
35689
|
+
if (projectCompilation) {
|
|
35690
|
+
const entryDeps = projectCompilation.entrypoint.dependencies;
|
|
35691
|
+
getTransitiveDependencies(entryDeps, projectCompilation.components);
|
|
35692
|
+
}
|
|
35590
35693
|
return /* @__PURE__ */ jsx(ComponentProvider, { contributes, extensionManager, children: /* @__PURE__ */ jsx(DebugViewProvider, { debugConfig: globalProps == null ? void 0 : globalProps.debug, children: /* @__PURE__ */ jsx(
|
|
35591
35694
|
AppWrapper,
|
|
35592
35695
|
{
|
|
35696
|
+
projectCompilation,
|
|
35593
35697
|
resourceMap,
|
|
35594
35698
|
apiInterceptor,
|
|
35595
35699
|
node: rootNode,
|
|
@@ -35609,6 +35713,26 @@ function AppRoot({
|
|
|
35609
35713
|
}
|
|
35610
35714
|
) }) });
|
|
35611
35715
|
}
|
|
35716
|
+
function getTransitiveDependencies(directCompDepNames, components) {
|
|
35717
|
+
const allDepsByCompName = components.reduce(
|
|
35718
|
+
function addDepsByNameToCollection(collection, { definition: { name }, dependencies }) {
|
|
35719
|
+
return collection.set(name, dependencies);
|
|
35720
|
+
},
|
|
35721
|
+
/* @__PURE__ */ new Map()
|
|
35722
|
+
);
|
|
35723
|
+
const transitiveDeps = /* @__PURE__ */ new Set();
|
|
35724
|
+
populateTransitiveDeps(directCompDepNames);
|
|
35725
|
+
return transitiveDeps;
|
|
35726
|
+
function populateTransitiveDeps(directCompDepNames2) {
|
|
35727
|
+
for (const directDep of directCompDepNames2) {
|
|
35728
|
+
if (!transitiveDeps.has(directDep)) {
|
|
35729
|
+
transitiveDeps.add(directDep);
|
|
35730
|
+
const depsOfDirectDep = allDepsByCompName.get(directDep);
|
|
35731
|
+
populateTransitiveDeps(depsOfDirectDep);
|
|
35732
|
+
}
|
|
35733
|
+
}
|
|
35734
|
+
}
|
|
35735
|
+
}
|
|
35612
35736
|
function ApiInterceptorProvider({
|
|
35613
35737
|
interceptor,
|
|
35614
35738
|
children,
|
|
@@ -35622,7 +35746,7 @@ function ApiInterceptorProvider({
|
|
|
35622
35746
|
let interceptorWorker;
|
|
35623
35747
|
(async () => {
|
|
35624
35748
|
if (process.env.VITE_MOCK_ENABLED) {
|
|
35625
|
-
const { createApiInterceptorWorker } = await import("./apiInterceptorWorker-
|
|
35749
|
+
const { createApiInterceptorWorker } = await import("./apiInterceptorWorker-B9XuRkxC.mjs");
|
|
35626
35750
|
if (interceptor) {
|
|
35627
35751
|
interceptorWorker = await createApiInterceptorWorker(interceptor, apiWorker);
|
|
35628
35752
|
if (!apiWorker) {
|
|
@@ -35953,9 +36077,16 @@ const DataSourceMd = createMetadata({
|
|
|
35953
36077
|
},
|
|
35954
36078
|
events: {
|
|
35955
36079
|
loaded: d(
|
|
35956
|
-
|
|
36080
|
+
"The component triggers this event when the fetch operation has been completed and the data is loaded. The event has two arguments. The first is the data loaded; the second indicates if the event is a result of a refetch."
|
|
35957
36081
|
),
|
|
35958
36082
|
error: d(`This event fires when a request results in an error.`)
|
|
36083
|
+
},
|
|
36084
|
+
apis: {
|
|
36085
|
+
value: d("This property retrieves the data queried from the source after optional transformations."),
|
|
36086
|
+
inProgress: d("This property indicates if the data is being fetched."),
|
|
36087
|
+
isRefetching: d("This property indicates if the data is being re-fetched."),
|
|
36088
|
+
loaded: d("This property indicates if the data has been loaded."),
|
|
36089
|
+
refetch: d("This method requests the re-fetch of the data.")
|
|
35959
36090
|
}
|
|
35960
36091
|
});
|
|
35961
36092
|
const collectedComponentMetadata = {
|
|
@@ -36167,7 +36298,7 @@ function StandaloneApp({
|
|
|
36167
36298
|
runtime,
|
|
36168
36299
|
extensionManager
|
|
36169
36300
|
}) {
|
|
36170
|
-
const { standaloneApp } = useStandalone(appDef, runtime, extensionManager);
|
|
36301
|
+
const { standaloneApp, projectCompilation } = useStandalone(appDef, runtime, extensionManager);
|
|
36171
36302
|
usePrintVersionNumber(standaloneApp);
|
|
36172
36303
|
if (!standaloneApp) {
|
|
36173
36304
|
return null;
|
|
@@ -36195,6 +36326,7 @@ function StandaloneApp({
|
|
|
36195
36326
|
return /* @__PURE__ */ jsx(ApiInterceptorProvider, { interceptor: mockedApi, useHashBasedRouting, children: /* @__PURE__ */ jsx(
|
|
36196
36327
|
AppRoot,
|
|
36197
36328
|
{
|
|
36329
|
+
projectCompilation,
|
|
36198
36330
|
decorateComponentsWithTestId: shouldDecorateWithTestId,
|
|
36199
36331
|
node: entryPoint,
|
|
36200
36332
|
standalone: true,
|
|
@@ -36267,6 +36399,7 @@ async function parseCodeBehindResponse(response) {
|
|
|
36267
36399
|
}
|
|
36268
36400
|
removeCodeBehindTokensFromTree(codeBehind);
|
|
36269
36401
|
return {
|
|
36402
|
+
src: code2,
|
|
36270
36403
|
codeBehind,
|
|
36271
36404
|
file: response.url
|
|
36272
36405
|
};
|
|
@@ -36284,9 +36417,8 @@ function resolveRuntime(runtime) {
|
|
|
36284
36417
|
const projectCompilation = {
|
|
36285
36418
|
entrypoint: {
|
|
36286
36419
|
filename: "",
|
|
36287
|
-
componentName: "Main",
|
|
36288
36420
|
definition: null,
|
|
36289
|
-
dependencies:
|
|
36421
|
+
dependencies: /* @__PURE__ */ new Set()
|
|
36290
36422
|
},
|
|
36291
36423
|
components: [],
|
|
36292
36424
|
themes: {}
|
|
@@ -36304,11 +36436,11 @@ function resolveRuntime(runtime) {
|
|
|
36304
36436
|
config = value.default;
|
|
36305
36437
|
}
|
|
36306
36438
|
if (matchesFileName(key, "Main") || matchesFileName(key, "App")) {
|
|
36307
|
-
projectCompilation.entrypoint.filename = key;
|
|
36308
36439
|
if (key.endsWith(codeBehindFileExtension)) {
|
|
36309
36440
|
entryPointCodeBehind = value.default;
|
|
36310
36441
|
projectCompilation.entrypoint.codeBehindSource = value.default.src;
|
|
36311
36442
|
} else {
|
|
36443
|
+
projectCompilation.entrypoint.filename = key;
|
|
36312
36444
|
entryPoint = value.default.component;
|
|
36313
36445
|
projectCompilation.entrypoint.definition = entryPoint;
|
|
36314
36446
|
projectCompilation.entrypoint.markupSource = value.default.src;
|
|
@@ -36323,9 +36455,25 @@ function resolveRuntime(runtime) {
|
|
|
36323
36455
|
if (matchesFolder(key, "components")) {
|
|
36324
36456
|
if (key.endsWith(`.${codeBehindFileExtension}`)) {
|
|
36325
36457
|
codeBehindsByFileName[key] = value.default;
|
|
36458
|
+
const componentCompilationForCodeBehind = projectCompilation.components.findLast(
|
|
36459
|
+
({ filename }) => {
|
|
36460
|
+
const idxOfCodeBehindFileExtension = key.lastIndexOf(codeBehindFileExtension);
|
|
36461
|
+
const idxOfComponentFileExtension = filename.lastIndexOf(componentFileExtension);
|
|
36462
|
+
const extensionlessFilenamesMatch = filename.substring(0, idxOfComponentFileExtension) === key.substring(0, idxOfCodeBehindFileExtension);
|
|
36463
|
+
return extensionlessFilenamesMatch;
|
|
36464
|
+
}
|
|
36465
|
+
);
|
|
36466
|
+
componentCompilationForCodeBehind.codeBehindSource = value.default.src;
|
|
36326
36467
|
} else {
|
|
36327
36468
|
componentsByFileName[key] = value.default.component;
|
|
36328
36469
|
sources[value.default.file] = value.default.src;
|
|
36470
|
+
const componentCompilation = {
|
|
36471
|
+
definition: value.default.component,
|
|
36472
|
+
filename: key,
|
|
36473
|
+
markupSource: value.default.src,
|
|
36474
|
+
dependencies: /* @__PURE__ */ new Set()
|
|
36475
|
+
};
|
|
36476
|
+
projectCompilation.components.push(componentCompilation);
|
|
36329
36477
|
}
|
|
36330
36478
|
}
|
|
36331
36479
|
if (matchesFolder(key, "themes")) {
|
|
@@ -36412,7 +36560,6 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
|
|
|
36412
36560
|
var _a, _b, _c, _d;
|
|
36413
36561
|
const resolvedRuntime = resolveRuntime(runtime);
|
|
36414
36562
|
const appDef = mergeAppDefWithRuntime(resolvedRuntime.standaloneApp, standaloneAppDef);
|
|
36415
|
-
setProjectCompilation(resolvedRuntime.projectCompilation);
|
|
36416
36563
|
if ((process.env.VITE_DEV_MODE || process.env.VITE_BUILD_MODE === "INLINE_ALL") && !process.env.VITE_STANDALONE) {
|
|
36417
36564
|
if (!appDef) {
|
|
36418
36565
|
throw new Error("couldn't find the application metadata");
|
|
@@ -36421,6 +36568,11 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
|
|
|
36421
36568
|
if (lintErrorComponent2) {
|
|
36422
36569
|
appDef.entryPoint = lintErrorComponent2;
|
|
36423
36570
|
}
|
|
36571
|
+
discoverCompilationDependencies({
|
|
36572
|
+
projectCompilation: resolvedRuntime.projectCompilation,
|
|
36573
|
+
extensionManager
|
|
36574
|
+
});
|
|
36575
|
+
setProjectCompilation(resolvedRuntime.projectCompilation);
|
|
36424
36576
|
setStandaloneApp(appDef);
|
|
36425
36577
|
return;
|
|
36426
36578
|
}
|
|
@@ -36445,6 +36597,11 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
|
|
|
36445
36597
|
if (lintErrorComponent2) {
|
|
36446
36598
|
newAppDef2.entryPoint = lintErrorComponent2;
|
|
36447
36599
|
}
|
|
36600
|
+
discoverCompilationDependencies({
|
|
36601
|
+
projectCompilation: resolvedRuntime.projectCompilation,
|
|
36602
|
+
extensionManager
|
|
36603
|
+
});
|
|
36604
|
+
setProjectCompilation(resolvedRuntime.projectCompilation);
|
|
36448
36605
|
setStandaloneApp(newAppDef2);
|
|
36449
36606
|
return;
|
|
36450
36607
|
}
|
|
@@ -36522,6 +36679,12 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
|
|
|
36522
36679
|
const codeBehinds = {};
|
|
36523
36680
|
if (loadedEntryPoint.file) {
|
|
36524
36681
|
sources[loadedEntryPoint.file] = loadedEntryPoint.src;
|
|
36682
|
+
resolvedRuntime.projectCompilation.entrypoint.filename = MAIN_FILE;
|
|
36683
|
+
resolvedRuntime.projectCompilation.entrypoint.definition = loadedEntryPoint.component;
|
|
36684
|
+
resolvedRuntime.projectCompilation.entrypoint.markupSource = loadedEntryPoint.src;
|
|
36685
|
+
if ((loadedEntryPointCodeBehind == null ? void 0 : loadedEntryPointCodeBehind.src) !== void 0) {
|
|
36686
|
+
resolvedRuntime.projectCompilation.entrypoint.codeBehindSource = loadedEntryPointCodeBehind.src;
|
|
36687
|
+
}
|
|
36525
36688
|
}
|
|
36526
36689
|
loadedComponents.forEach((compWrapper) => {
|
|
36527
36690
|
var _a2;
|
|
@@ -36577,6 +36740,7 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
|
|
|
36577
36740
|
const componentsFailedToLoad = /* @__PURE__ */ new Set();
|
|
36578
36741
|
while (componentsToLoad.size > 0) {
|
|
36579
36742
|
const componentPromises2 = [...componentsToLoad].map(async (componentPath) => {
|
|
36743
|
+
var _a2;
|
|
36580
36744
|
try {
|
|
36581
36745
|
const componentPromise = fetchWithoutCache(
|
|
36582
36746
|
`components/${componentPath}.${componentFileExtension}`
|
|
@@ -36591,7 +36755,7 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
|
|
|
36591
36755
|
errorComponents.push(codeBehindWrapper.component);
|
|
36592
36756
|
}
|
|
36593
36757
|
resolve(
|
|
36594
|
-
codeBehindWrapper.hasError ? codeBehindWrapper.component : codeBehindWrapper
|
|
36758
|
+
codeBehindWrapper.hasError ? codeBehindWrapper.component : codeBehindWrapper
|
|
36595
36759
|
);
|
|
36596
36760
|
} catch {
|
|
36597
36761
|
resolve(null);
|
|
@@ -36606,18 +36770,31 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
|
|
|
36606
36770
|
errorComponents.push(compWrapper.component);
|
|
36607
36771
|
}
|
|
36608
36772
|
sources[compWrapper.file] = compWrapper.src;
|
|
36609
|
-
|
|
36773
|
+
const compCompilation = {
|
|
36774
|
+
dependencies: /* @__PURE__ */ new Set(),
|
|
36775
|
+
filename: compWrapper.file,
|
|
36776
|
+
markupSource: compWrapper.src,
|
|
36777
|
+
definition: compWrapper.component
|
|
36778
|
+
};
|
|
36779
|
+
if (componentCodeBehind && "src" in componentCodeBehind) {
|
|
36780
|
+
compCompilation.codeBehindSource = componentCodeBehind.src;
|
|
36781
|
+
}
|
|
36782
|
+
resolvedRuntime.projectCompilation.components.push(compCompilation);
|
|
36783
|
+
const compoundComp = {
|
|
36610
36784
|
...compWrapper.component,
|
|
36611
36785
|
component: {
|
|
36612
36786
|
...compWrapper.component.component,
|
|
36613
36787
|
vars: {
|
|
36614
36788
|
...compWrapper.component.component.vars,
|
|
36615
|
-
...componentCodeBehind == null ? void 0 : componentCodeBehind.vars
|
|
36616
|
-
}
|
|
36617
|
-
functions: componentCodeBehind == null ? void 0 : componentCodeBehind.functions,
|
|
36618
|
-
scriptError: componentCodeBehind == null ? void 0 : componentCodeBehind.moduleErrors
|
|
36789
|
+
...(_a2 = componentCodeBehind == null ? void 0 : componentCodeBehind.component) == null ? void 0 : _a2.vars
|
|
36790
|
+
}
|
|
36619
36791
|
}
|
|
36620
36792
|
};
|
|
36793
|
+
if (componentCodeBehind && "codeBehind" in componentCodeBehind) {
|
|
36794
|
+
compoundComp.component.functions = componentCodeBehind.codeBehind.functions;
|
|
36795
|
+
compoundComp.component.scriptError = componentCodeBehind.codeBehind.moduleErrors;
|
|
36796
|
+
}
|
|
36797
|
+
return compoundComp;
|
|
36621
36798
|
} catch (e) {
|
|
36622
36799
|
componentsFailedToLoad.add(componentPath);
|
|
36623
36800
|
return null;
|
|
@@ -36653,6 +36830,11 @@ function useStandalone(standaloneAppDef, runtime = EMPTY_OBJECT, extensionManage
|
|
|
36653
36830
|
} else if (lintErrorComponent) {
|
|
36654
36831
|
newAppDef.entryPoint = lintErrorComponent;
|
|
36655
36832
|
}
|
|
36833
|
+
discoverCompilationDependencies({
|
|
36834
|
+
projectCompilation: resolvedRuntime.projectCompilation,
|
|
36835
|
+
extensionManager
|
|
36836
|
+
});
|
|
36837
|
+
setProjectCompilation(resolvedRuntime.projectCompilation);
|
|
36656
36838
|
setStandaloneApp(newAppDef);
|
|
36657
36839
|
})();
|
|
36658
36840
|
}, [runtime, standaloneAppDef]);
|
|
@@ -36733,6 +36915,42 @@ function processAppLinting(appDef, metadataByComponent) {
|
|
|
36733
36915
|
return null;
|
|
36734
36916
|
}
|
|
36735
36917
|
}
|
|
36918
|
+
function discoverCompilationDependencies({
|
|
36919
|
+
projectCompilation: { components, entrypoint },
|
|
36920
|
+
extensionManager
|
|
36921
|
+
}) {
|
|
36922
|
+
const registry = new ComponentRegistry({}, extensionManager);
|
|
36923
|
+
const entrypointDependencies = discoverDirectComponentDependencies(
|
|
36924
|
+
entrypoint.definition,
|
|
36925
|
+
registry
|
|
36926
|
+
);
|
|
36927
|
+
entrypoint.dependencies = entrypointDependencies;
|
|
36928
|
+
for (const componentCompilation of components) {
|
|
36929
|
+
const compDependencies = discoverDirectComponentDependencies(
|
|
36930
|
+
componentCompilation.definition.component,
|
|
36931
|
+
registry
|
|
36932
|
+
);
|
|
36933
|
+
compDependencies.delete(componentCompilation.definition.name);
|
|
36934
|
+
componentCompilation.dependencies = compDependencies;
|
|
36935
|
+
}
|
|
36936
|
+
registry.destroy();
|
|
36937
|
+
}
|
|
36938
|
+
function discoverDirectComponentDependencies(entrypoint, registry) {
|
|
36939
|
+
return discoverDirectComponentDependenciesHelp(entrypoint, registry, /* @__PURE__ */ new Set());
|
|
36940
|
+
}
|
|
36941
|
+
function discoverDirectComponentDependenciesHelp(component, registry, deps) {
|
|
36942
|
+
const compName = component.type;
|
|
36943
|
+
if (!registry.hasComponent(compName)) {
|
|
36944
|
+
deps.add(compName);
|
|
36945
|
+
}
|
|
36946
|
+
if (!component.children) {
|
|
36947
|
+
return deps;
|
|
36948
|
+
}
|
|
36949
|
+
for (const child of component.children) {
|
|
36950
|
+
discoverDirectComponentDependenciesHelp(child, registry, deps);
|
|
36951
|
+
}
|
|
36952
|
+
return deps;
|
|
36953
|
+
}
|
|
36736
36954
|
export {
|
|
36737
36955
|
AppRoot as A,
|
|
36738
36956
|
Button as B,
|