xmlui 0.9.40 → 0.9.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/lib/{apiInterceptorWorker-B8TTzBdN.mjs → apiInterceptorWorker-hdo0gCSX.mjs} +1 -1
  2. package/dist/lib/{index-DGZ1xviB.mjs → index-DGIOfOMB.mjs} +203 -175
  3. package/dist/lib/index.css +358 -208
  4. package/dist/lib/language-server-web-worker.mjs +1 -1
  5. package/dist/lib/language-server.mjs +1 -1
  6. package/dist/lib/{server-common-Cb_e1fYU.mjs → server-common-CCyrHhiI.mjs} +1 -1
  7. package/dist/lib/xmlui.mjs +1 -1
  8. package/dist/metadata/style.css +358 -208
  9. package/dist/metadata/xmlui-metadata.mjs +103 -122
  10. package/dist/metadata/xmlui-metadata.umd.js +104 -123
  11. package/dist/scripts/package.json +2 -2
  12. package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +1 -1
  13. package/dist/scripts/src/components/Card/CardNative.js +1 -1
  14. package/dist/scripts/src/components/DatePicker/DatePicker.js +5 -1
  15. package/dist/scripts/src/components/DatePicker/DatePickerNative.js +14 -47
  16. package/dist/scripts/src/components/HtmlTags/HtmlTags.js +1 -1
  17. package/dist/scripts/src/components/Input/InputAdornment.js +1 -1
  18. package/dist/scripts/src/components/Link/Link.js +1 -1
  19. package/dist/scripts/src/components/Link/LinkNative.js +2 -2
  20. package/dist/scripts/src/components/Markdown/Markdown.js +1 -1
  21. package/dist/scripts/src/components/Markdown/MarkdownNative.js +11 -1
  22. package/dist/scripts/src/components/Select/SelectNative.js +2 -2
  23. package/dist/scripts/src/components/TableOfContents/TableOfContents.js +11 -37
  24. package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +1 -1
  25. package/dist/scripts/src/components/Theme/ThemeNative.js +30 -1
  26. package/dist/scripts/src/components-core/ApiBoundComponent.js +5 -3
  27. package/dist/standalone/xmlui-standalone.umd.js +5065 -4887
  28. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmlui",
3
- "version": "0.9.40",
3
+ "version": "0.9.42",
4
4
  "sideEffects": false,
5
5
  "scripts": {
6
6
  "start-test-bed": "cd src/testing/infrastructure && xmlui start",
@@ -111,7 +111,7 @@
111
111
  "@babel/core": "7.19.6",
112
112
  "@babel/preset-env": "7.19.4",
113
113
  "@babel/preset-typescript": "7.18.6",
114
- "@playwright/test": "1.50.1",
114
+ "@playwright/test": "1.52.0",
115
115
  "@rollup/pluginutils": "5.1.0",
116
116
  "@types/adm-zip": "0.5.4",
117
117
  "@types/glob": "7.2.0",
@@ -50,7 +50,7 @@ const AppHeader = ({ children, profileMenu, style = constants_1.EMPTY_OBJECT, lo
50
50
  }, []);
51
51
  return ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(AppHeader_module_scss_1.default.header, className), style: style, children: (0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(AppHeader_module_scss_1.default.headerInner, {
52
52
  [AppHeader_module_scss_1.default.full]: !canRestrictContentWidth,
53
- }), children: [!navPanelVisible && hasRegisteredNavPanel && ((0, jsx_runtime_1.jsx)(ButtonNative_1.Button, { onClick: toggleDrawer, icon: (0, jsx_runtime_1.jsx)(IconNative_1.Icon, { name: "hamburger" }), variant: "ghost", style: { color: "inherit", flexShrink: 0 } })), (0, jsx_runtime_1.jsx)("div", { className: AppHeader_module_scss_1.default.logoAndTitle, children: (showLogo || !navPanelVisible) &&
53
+ }), children: [hasRegisteredNavPanel && ((0, jsx_runtime_1.jsx)(ButtonNative_1.Button, { onClick: toggleDrawer, icon: (0, jsx_runtime_1.jsx)(IconNative_1.Icon, { name: "hamburger" }), variant: "ghost", className: AppHeader_module_scss_1.default.drawerToggle, style: { color: "inherit", flexShrink: 0 } })), (0, jsx_runtime_1.jsx)("div", { className: AppHeader_module_scss_1.default.logoAndTitle, children: (showLogo || !navPanelVisible) &&
54
54
  (logoContent ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: AppHeader_module_scss_1.default.customLogoContainer, children: logoContent }), safeLogoTitle] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [!!logoUrl && ((0, jsx_runtime_1.jsx)("div", { className: AppHeader_module_scss_1.default.logoContainer, children: (0, jsx_runtime_1.jsx)(NavLinkNative_1.NavLink, { to: "/", displayActive: false, style: { padding: 0, height: "100%" }, children: (0, jsx_runtime_1.jsx)(LogoNative_1.Logo, {}) }) })), safeLogoTitle] }))) }), (0, jsx_runtime_1.jsx)("div", { ref: subNavPanelSlot, className: AppHeader_module_scss_1.default.subNavPanelSlot }), (0, jsx_runtime_1.jsx)("div", { className: AppHeader_module_scss_1.default.childrenWrapper, children: children }), profileMenu && (0, jsx_runtime_1.jsx)("div", { className: AppHeader_module_scss_1.default.rightItems, children: profileMenu })] }) }));
55
55
  };
56
56
  exports.AppHeader = AppHeader;
@@ -24,5 +24,5 @@ exports.Card = (0, react_1.forwardRef)(function Card({ children, orientation = e
24
24
  [Card_module_scss_1.default.isClickable]: !!onClick,
25
25
  [Card_module_scss_1.default.vertical]: orientation === "vertical",
26
26
  [Card_module_scss_1.default.horizontal]: orientation === "horizontal",
27
- }), style: style, onClick: onClick, children: [[title, subtitle, avatarUrl, showAvatar].some(Boolean) && ((0, jsx_runtime_1.jsxs)("div", { className: Card_module_scss_1.default.avatarWrapper, children: [showAvatar && (0, jsx_runtime_1.jsx)(AvatarNative_1.Avatar, { url: avatarUrl, name: title, size: avatarSize }), (0, jsx_runtime_1.jsxs)("div", { className: Card_module_scss_1.default.titleWrapper, children: [linkTo ? (title ? ((0, jsx_runtime_1.jsx)(LinkNative_1.LocalLink, { to: linkTo + "", children: (0, jsx_runtime_1.jsx)(HeadingNative_1.Heading, Object.assign({}, titleProps, { children: title })) })) : null) : title ? ((0, jsx_runtime_1.jsx)(HeadingNative_1.Heading, Object.assign({}, titleProps, { children: title }))) : null, subtitle !== undefined && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(TextNative_1.Text, { variant: "small", children: subtitle }) }))] })] })), children] }));
27
+ }), style: style, onClick: onClick, children: [[title, subtitle, avatarUrl, showAvatar].some(Boolean) && ((0, jsx_runtime_1.jsxs)("div", { className: Card_module_scss_1.default.avatarWrapper, children: [showAvatar && (0, jsx_runtime_1.jsx)(AvatarNative_1.Avatar, { url: avatarUrl, name: title, size: avatarSize }), (0, jsx_runtime_1.jsxs)("div", { className: Card_module_scss_1.default.titleWrapper, children: [linkTo ? (title ? ((0, jsx_runtime_1.jsx)(LinkNative_1.LinkNative, { to: linkTo + "", children: (0, jsx_runtime_1.jsx)(HeadingNative_1.Heading, Object.assign({}, titleProps, { children: title })) })) : null) : title ? ((0, jsx_runtime_1.jsx)(HeadingNative_1.Heading, Object.assign({}, titleProps, { children: title }))) : null, subtitle !== undefined && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(TextNative_1.Text, { variant: "small", children: subtitle }) }))] })] })), children] }));
28
28
  });
@@ -22,6 +22,10 @@ exports.DatePickerMd = (0, ComponentDefs_1.createMetadata)({
22
22
  readOnly: (0, metadata_helpers_1.dReadonly)(),
23
23
  enabled: (0, metadata_helpers_1.dEnabled)(DatePickerNative_1.defaultProps.enabled),
24
24
  validationStatus: (0, metadata_helpers_1.dValidationStatus)(DatePickerNative_1.defaultProps.validationStatus),
25
+ label: (0, metadata_helpers_1.dLabel)(),
26
+ labelPosition: (0, metadata_helpers_1.dLabelPosition)("top"),
27
+ labelWidth: (0, metadata_helpers_1.dLabelWidth)(COMP),
28
+ labelBreak: (0, metadata_helpers_1.dLabelBreak)(COMP),
25
29
  mode: {
26
30
  description: "The mode of the datepicker (single or range)",
27
31
  valueType: "string",
@@ -119,5 +123,5 @@ exports.DatePickerMd = (0, ComponentDefs_1.createMetadata)({
119
123
  });
120
124
  exports.datePickerComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.DatePickerMd, ({ node, state, updateState, extractValue, layoutCss, lookupEventHandler, registerComponentApi, }) => {
121
125
  var _a;
122
- return ((0, jsx_runtime_1.jsx)(DatePickerNative_1.DatePicker, { style: layoutCss, mode: extractValue((_a = node.props) === null || _a === void 0 ? void 0 : _a.mode), value: state === null || state === void 0 ? void 0 : state.value, initialValue: extractValue(node.props.initialValue), enabled: extractValue.asOptionalBoolean(node.props.enabled), placeholder: extractValue.asOptionalString(node.props.placeholder), validationStatus: extractValue(node.props.validationStatus), updateState: updateState, onDidChange: lookupEventHandler("didChange"), onFocus: lookupEventHandler("gotFocus"), onBlur: lookupEventHandler("lostFocus"), registerComponentApi: registerComponentApi, dateFormat: extractValue(node.props.dateFormat), showWeekNumber: extractValue.asOptionalBoolean(node.props.showWeekNumber), weekStartsOn: extractValue(node.props.weekStartsOn), fromDate: extractValue(node.props.fromDate), toDate: extractValue(node.props.toDate), disabledDates: extractValue(node.props.disabledDates), inline: extractValue.asOptionalBoolean(node.props.inline), startText: extractValue.asOptionalString(node.props.startText), startIcon: extractValue.asOptionalString(node.props.startIcon), endText: extractValue.asOptionalString(node.props.endText), endIcon: extractValue.asOptionalString(node.props.endIcon) }));
126
+ return ((0, jsx_runtime_1.jsx)(DatePickerNative_1.DatePicker, { id: node.uid, style: layoutCss, mode: extractValue((_a = node.props) === null || _a === void 0 ? void 0 : _a.mode), value: state === null || state === void 0 ? void 0 : state.value, initialValue: extractValue(node.props.initialValue), enabled: extractValue.asOptionalBoolean(node.props.enabled), placeholder: extractValue.asOptionalString(node.props.placeholder), validationStatus: extractValue(node.props.validationStatus), updateState: updateState, onDidChange: lookupEventHandler("didChange"), onFocus: lookupEventHandler("gotFocus"), onBlur: lookupEventHandler("lostFocus"), registerComponentApi: registerComponentApi, dateFormat: extractValue(node.props.dateFormat), showWeekNumber: extractValue.asOptionalBoolean(node.props.showWeekNumber), weekStartsOn: extractValue(node.props.weekStartsOn), fromDate: extractValue(node.props.fromDate), toDate: extractValue(node.props.toDate), disabledDates: extractValue(node.props.disabledDates), inline: extractValue.asOptionalBoolean(node.props.inline), startText: extractValue.asOptionalString(node.props.startText), startIcon: extractValue.asOptionalString(node.props.startIcon), endText: extractValue.asOptionalString(node.props.endText), endIcon: extractValue.asOptionalString(node.props.endIcon), readOnly: extractValue.asOptionalBoolean(node.props.readOnly), autoFocus: extractValue.asOptionalBoolean(node.props.autoFocus), label: extractValue(node.props.label), labelPosition: extractValue(node.props.labelPosition), labelWidth: extractValue(node.props.labelWidth), labelBreak: extractValue.asOptionalBoolean(node.props.labelBreak) }));
123
127
  });
@@ -1,37 +1,4 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
36
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
37
4
  };
@@ -42,8 +9,6 @@ const react_1 = require("react");
42
9
  const react_2 = require("react");
43
10
  const react_day_picker_1 = require("react-day-picker");
44
11
  const date_fns_1 = require("date-fns");
45
- const ReactDropdownMenu = __importStar(require("@radix-ui/react-dropdown-menu"));
46
- const react_compose_refs_1 = require("@radix-ui/react-compose-refs");
47
12
  const classnames_1 = __importDefault(require("classnames"));
48
13
  const DatePicker_module_scss_1 = __importDefault(require("./DatePicker.module.scss"));
49
14
  const ThemeContext_1 = require("../../components-core/theming/ThemeContext");
@@ -51,6 +16,7 @@ const constants_1 = require("../../components-core/constants");
51
16
  const misc_1 = require("../../components-core/utils/misc");
52
17
  const InputAdornment_1 = require("../Input/InputAdornment");
53
18
  const ItemWithLabel_1 = require("../FormItem/ItemWithLabel");
19
+ const react_popover_1 = require("@radix-ui/react-popover");
54
20
  exports.DatePickerModeValues = ["single", "range"];
55
21
  var WeekDays;
56
22
  (function (WeekDays) {
@@ -82,12 +48,11 @@ exports.defaultProps = {
82
48
  weekStartsOn: WeekDays.Sunday,
83
49
  disabledDates: [],
84
50
  };
85
- exports.DatePicker = (0, react_2.forwardRef)(function DatePicker({ id, initialValue, value, mode = exports.defaultProps.mode, enabled = exports.defaultProps.enabled, placeholder, updateState = constants_1.noop, validationStatus = exports.defaultProps.validationStatus, onDidChange = constants_1.noop, onFocus = constants_1.noop, onBlur = constants_1.noop, dateFormat = exports.defaultProps.dateFormat, showWeekNumber = exports.defaultProps.showWeekNumber, weekStartsOn = exports.defaultProps.weekStartsOn, fromDate, toDate, disabledDates = exports.defaultProps.disabledDates, style, registerComponentApi, inline = exports.defaultProps.inline, startText, startIcon, endText, endIcon, label, labelPosition, labelWidth, labelBreak, inProgress, inProgressNotificationMessage, readOnly, required, }, forwardedRef) {
51
+ exports.DatePicker = (0, react_2.forwardRef)(function DatePicker({ id, initialValue, value, mode = exports.defaultProps.mode, enabled = exports.defaultProps.enabled, placeholder, updateState = constants_1.noop, validationStatus = exports.defaultProps.validationStatus, onDidChange = constants_1.noop, onFocus = constants_1.noop, onBlur = constants_1.noop, dateFormat = exports.defaultProps.dateFormat, showWeekNumber = exports.defaultProps.showWeekNumber, weekStartsOn = exports.defaultProps.weekStartsOn, fromDate, toDate, disabledDates = exports.defaultProps.disabledDates, style, registerComponentApi, inline = exports.defaultProps.inline, startText, startIcon, endText, endIcon, label, labelPosition, labelWidth, labelBreak, readOnly = false, required, autoFocus = false, }, ref) {
86
52
  const _weekStartsOn = weekStartsOn >= 0 && weekStartsOn <= 6 ? weekStartsOn : WeekDays.Sunday;
87
53
  const [isButtonFocused, setIsButtonFocused] = (0, react_2.useState)(false);
88
54
  const [isMenuFocused, setIsMenuFocused] = (0, react_2.useState)(false);
89
- const referenceElement = (0, react_2.useRef)(null);
90
- const ref = forwardedRef ? (0, react_compose_refs_1.composeRefs)(referenceElement, forwardedRef) : referenceElement;
55
+ const [referenceElement, setReferenceElement] = (0, react_2.useState)(null);
91
56
  const generatedId = (0, react_1.useId)();
92
57
  const inputId = id || generatedId;
93
58
  const selected = (0, react_2.useMemo)(() => {
@@ -132,9 +97,8 @@ exports.DatePicker = (0, react_2.forwardRef)(function DatePicker({ id, initialVa
132
97
  };
133
98
  // Register component API for external interactions
134
99
  const focus = (0, react_2.useCallback)(() => {
135
- var _a;
136
- (_a = referenceElement === null || referenceElement === void 0 ? void 0 : referenceElement.current) === null || _a === void 0 ? void 0 : _a.focus();
137
- }, [referenceElement === null || referenceElement === void 0 ? void 0 : referenceElement.current]);
100
+ referenceElement === null || referenceElement === void 0 ? void 0 : referenceElement.focus();
101
+ }, [referenceElement]);
138
102
  const setValue = (0, misc_1.useEvent)((newValue) => {
139
103
  const parsedDate = parseDate(newValue);
140
104
  handleSelect(parsedDate);
@@ -157,6 +121,9 @@ exports.DatePicker = (0, react_2.forwardRef)(function DatePicker({ id, initialVa
157
121
  updateState({ value: initialValue }, { initial: true });
158
122
  }, [initialValue, updateState]);
159
123
  const handleSelect = (0, react_2.useCallback)((dateOrRange) => {
124
+ if (readOnly) {
125
+ return;
126
+ }
160
127
  if (!dateOrRange) {
161
128
  updateState({ value: undefined });
162
129
  onDidChange("");
@@ -180,12 +147,12 @@ exports.DatePicker = (0, react_2.forwardRef)(function DatePicker({ id, initialVa
180
147
  setOpen(false);
181
148
  }
182
149
  }, [onDidChange, updateState, mode, dateFormat]);
183
- return ((0, jsx_runtime_1.jsx)(ItemWithLabel_1.ItemWithLabel, { id: inputId, labelPosition: labelPosition, label: label, labelWidth: labelWidth, labelBreak: labelBreak, required: required, enabled: enabled, onFocus: onFocus, onBlur: onBlur, style: style, children: inline ? ((0, jsx_runtime_1.jsx)("div", { className: DatePicker_module_scss_1.default.inlinePickerMenu, children: (0, jsx_runtime_1.jsx)(react_day_picker_1.DayPicker, { required: undefined, captionLayout: "dropdown", fixedWeeks: true, startMonth: startDate, endMonth: endDate, disabled: disabled, weekStartsOn: _weekStartsOn, showWeekNumber: showWeekNumber, showOutsideDays: true, classNames: DatePicker_module_scss_1.default, mode: mode === "single" ? "single" : "range", selected: selected, onSelect: handleSelect, autoFocus: !inline, numberOfMonths: mode === "range" ? 2 : 1 }) })) : ((0, jsx_runtime_1.jsxs)(ReactDropdownMenu.Root, { open: open, onOpenChange: setOpen, modal: false, children: [(0, jsx_runtime_1.jsx)(ReactDropdownMenu.Trigger, { asChild: true, children: (0, jsx_runtime_1.jsxs)("button", { disabled: !enabled, id: id, style: style, className: (0, classnames_1.default)(DatePicker_module_scss_1.default.datePicker, {
184
- [DatePicker_module_scss_1.default.disabled]: !enabled,
185
- [DatePicker_module_scss_1.default.error]: validationStatus === "error",
186
- [DatePicker_module_scss_1.default.warning]: validationStatus === "warning",
187
- [DatePicker_module_scss_1.default.valid]: validationStatus === "valid",
188
- }), onFocus: handleOnButtonFocus, onBlur: handleOnButtonBlur, children: [(0, jsx_runtime_1.jsx)(InputAdornment_1.Adornment, { text: startText, iconName: startIcon, className: DatePicker_module_scss_1.default.adornment }), (0, jsx_runtime_1.jsx)("div", { className: DatePicker_module_scss_1.default.datePickerValue, children: mode === "single" && selected ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, date_fns_1.format)(selected, dateFormat) })) : mode === "range" && typeof selected === "object" && selected.from ? (selected.to ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, date_fns_1.format)(selected.from, dateFormat), " - ", (0, date_fns_1.format)(selected.to, dateFormat)] })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, date_fns_1.format)(selected.from, dateFormat) }))) : placeholder ? ((0, jsx_runtime_1.jsx)("span", { className: DatePicker_module_scss_1.default.placeholder, children: placeholder })) : ((0, jsx_runtime_1.jsx)("span", { children: "\u00A0" })) }), (0, jsx_runtime_1.jsx)(InputAdornment_1.Adornment, { text: endText, iconName: endIcon, className: DatePicker_module_scss_1.default.adornment })] }) }), (0, jsx_runtime_1.jsx)(ReactDropdownMenu.Portal, { container: root, children: (0, jsx_runtime_1.jsx)(ReactDropdownMenu.Content, { align: "start", sideOffset: 5, className: DatePicker_module_scss_1.default.datePickerMenu, onFocus: handleOnMenuFocus, onBlur: handleOnMenuBlur, onInteractOutside: handleOnMenuBlur, children: (0, jsx_runtime_1.jsx)(react_day_picker_1.DayPicker, { required: undefined, animate: true, fixedWeeks: true, classNames: DatePicker_module_scss_1.default, captionLayout: "dropdown", startMonth: startDate, endMonth: endDate, disabled: disabled, weekStartsOn: _weekStartsOn, showWeekNumber: showWeekNumber, showOutsideDays: true, mode: mode === "single" ? "single" : "range", selected: selected, onSelect: handleSelect, autoFocus: !inline, numberOfMonths: mode === "range" ? 2 : 1 }) }) })] })) }));
150
+ return ((0, jsx_runtime_1.jsx)(ItemWithLabel_1.ItemWithLabel, { id: inputId, labelPosition: labelPosition, label: label, labelWidth: labelWidth, labelBreak: labelBreak, required: required, enabled: enabled, onFocus: onFocus, onBlur: onBlur, style: style, ref: ref, children: inline ? ((0, jsx_runtime_1.jsx)("div", { className: DatePicker_module_scss_1.default.inlinePickerMenu, ref: (ref) => setReferenceElement(ref), children: (0, jsx_runtime_1.jsx)(react_day_picker_1.DayPicker, { id: inputId, required: undefined, captionLayout: "dropdown", fixedWeeks: true, startMonth: startDate, endMonth: endDate, disabled: disabled, weekStartsOn: _weekStartsOn, showWeekNumber: showWeekNumber, showOutsideDays: true, classNames: DatePicker_module_scss_1.default, mode: mode === "single" ? "single" : "range", selected: selected, onSelect: handleSelect, autoFocus: autoFocus, numberOfMonths: mode === "range" ? 2 : 1 }) })) : ((0, jsx_runtime_1.jsxs)(react_popover_1.Popover, { open: open, onOpenChange: setOpen, modal: false, children: [(0, jsx_runtime_1.jsxs)(react_popover_1.PopoverTrigger, { ref: setReferenceElement, id: inputId, "aria-haspopup": true, disabled: !enabled, style: style, "aria-expanded": open, className: (0, classnames_1.default)(DatePicker_module_scss_1.default.datePicker, {
151
+ [DatePicker_module_scss_1.default.disabled]: !enabled,
152
+ [DatePicker_module_scss_1.default.error]: validationStatus === "error",
153
+ [DatePicker_module_scss_1.default.warning]: validationStatus === "warning",
154
+ [DatePicker_module_scss_1.default.valid]: validationStatus === "valid",
155
+ }), autoFocus: autoFocus, onFocus: onFocus, onBlur: onBlur, children: [(0, jsx_runtime_1.jsx)(InputAdornment_1.Adornment, { text: startText, iconName: startIcon, className: DatePicker_module_scss_1.default.adornment }), (0, jsx_runtime_1.jsx)("div", { className: DatePicker_module_scss_1.default.datePickerValue, children: mode === "single" && selected ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, date_fns_1.format)(selected, dateFormat) })) : mode === "range" && typeof selected === "object" && selected.from ? (selected.to ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, date_fns_1.format)(selected.from, dateFormat), " - ", (0, date_fns_1.format)(selected.to, dateFormat)] })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, date_fns_1.format)(selected.from, dateFormat) }))) : placeholder ? ((0, jsx_runtime_1.jsx)("span", { className: DatePicker_module_scss_1.default.placeholder, placeholder: placeholder, children: placeholder })) : ((0, jsx_runtime_1.jsx)("span", { children: "\u00A0" })) }), (0, jsx_runtime_1.jsx)(InputAdornment_1.Adornment, { text: endText, iconName: endIcon, className: DatePicker_module_scss_1.default.adornment })] }), (0, jsx_runtime_1.jsx)(react_popover_1.PopoverPortal, { container: root, children: (0, jsx_runtime_1.jsx)(react_popover_1.PopoverContent, { role: "menu", align: "start", sideOffset: 5, className: DatePicker_module_scss_1.default.datePickerMenu, onFocus: handleOnMenuFocus, onBlur: handleOnMenuBlur, onInteractOutside: handleOnMenuBlur, children: (0, jsx_runtime_1.jsx)(react_day_picker_1.DayPicker, { required: undefined, animate: true, fixedWeeks: true, autoFocus: autoFocus, classNames: DatePicker_module_scss_1.default, captionLayout: "dropdown", startMonth: startDate, endMonth: endDate, disabled: disabled, weekStartsOn: _weekStartsOn, showWeekNumber: showWeekNumber, showOutsideDays: true, mode: mode === "single" ? "single" : "range", selected: selected, onSelect: handleSelect, numberOfMonths: mode === "range" ? 2 : 1 }) }) })] })) }));
189
156
  });
190
157
  const isoRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/;
191
158
  const parseISODate = (dateString) => {
@@ -47,7 +47,7 @@ exports.htmlATagRenderer = (0, renderers_1.createComponentRenderer)("a", exports
47
47
  const p = new extractParam_1.PropsTrasform(extractValue, extractResourceUrl, layoutCss, node.props);
48
48
  const { disabled } = p.asOptionalBoolean("disabled");
49
49
  const _a = p.asRest(), { href } = _a, rest = __rest(_a, ["href"]);
50
- return ((0, jsx_runtime_1.jsx)(LinkNative_1.LocalLink, Object.assign({ to: href, disabled: disabled !== null && disabled !== void 0 ? disabled : false, style: layoutCss }, rest, { children: renderChild(node.children) })));
50
+ return ((0, jsx_runtime_1.jsx)(LinkNative_1.LinkNative, Object.assign({ to: href, disabled: disabled !== null && disabled !== void 0 ? disabled : false, style: layoutCss }, rest, { children: renderChild(node.children) })));
51
51
  });
52
52
  exports.HtmlAbbrMd = (0, ComponentDefs_1.createMetadata)({
53
53
  status: "experimental",
@@ -10,5 +10,5 @@ const InputAdornment_module_scss_1 = __importDefault(require("./InputAdornment.m
10
10
  const IconNative_1 = require("../Icon/IconNative");
11
11
  const TextNative_1 = require("../Text/TextNative");
12
12
  function Adornment({ iconName, text, className }) {
13
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: iconName || text ? ((0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(InputAdornment_module_scss_1.default.wrapper, className), children: [(0, jsx_runtime_1.jsx)(IconNative_1.Icon, { name: iconName, style: { color: "inherit" } }), text && ((0, jsx_runtime_1.jsx)("div", { style: { display: "flex", userSelect: "none" }, children: (0, jsx_runtime_1.jsx)(TextNative_1.Text, { style: { fontSize: "inherit" }, children: text }) }))] })) : null }));
13
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: iconName || text ? ((0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(InputAdornment_module_scss_1.default.wrapper, className), role: "presentation", children: [(0, jsx_runtime_1.jsx)(IconNative_1.Icon, { name: iconName, style: { color: "inherit" } }), text && ((0, jsx_runtime_1.jsx)("div", { style: { display: "flex", userSelect: "none" }, children: (0, jsx_runtime_1.jsx)(TextNative_1.Text, { style: { fontSize: "inherit" }, children: text }) }))] })) : null }));
14
14
  }
@@ -65,7 +65,7 @@ exports.LinkMd = (0, ComponentDefs_1.createMetadata)({
65
65
  */
66
66
  exports.localLinkComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.LinkMd, ({ node, extractValue, renderChild, layoutCss }) => {
67
67
  var _a, _b;
68
- return ((0, jsx_runtime_1.jsx)(LinkNative_1.LocalLink, { to: extractValue(node.props.to), icon: extractValue(node.props.icon), active: extractValue.asOptionalBoolean(node.props.active, false), target: extractValue((_a = node.props) === null || _a === void 0 ? void 0 : _a.target), style: layoutCss, disabled: !extractValue.asOptionalBoolean((_b = node.props.enabled) !== null && _b !== void 0 ? _b : true), children: node.props.label
68
+ return ((0, jsx_runtime_1.jsx)(LinkNative_1.LinkNative, { to: extractValue(node.props.to), icon: extractValue(node.props.icon), active: extractValue.asOptionalBoolean(node.props.active, false), target: extractValue((_a = node.props) === null || _a === void 0 ? void 0 : _a.target), style: layoutCss, disabled: !extractValue.asOptionalBoolean((_b = node.props.enabled) !== null && _b !== void 0 ? _b : true), children: node.props.label
69
69
  ? extractValue.asDisplayText(node.props.label)
70
70
  : renderChild(node.children) }));
71
71
  });
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.LocalLink = void 0;
17
+ exports.LinkNative = void 0;
18
18
  const jsx_runtime_1 = require("react/jsx-runtime");
19
19
  const react_1 = require("react");
20
20
  const react_2 = require("@remix-run/react");
@@ -22,7 +22,7 @@ const classnames_1 = __importDefault(require("classnames"));
22
22
  const Link_module_scss_1 = __importDefault(require("./Link.module.scss"));
23
23
  const component_utils_1 = require("../component-utils");
24
24
  const IconNative_1 = require("../Icon/IconNative");
25
- exports.LocalLink = (0, react_1.forwardRef)(function LocalLink(props, forwardedRef) {
25
+ exports.LinkNative = (0, react_1.forwardRef)(function LinkNative(props, forwardedRef) {
26
26
  const _a = specifyTypes(props), { to, children, icon, active, onClick, target, disabled, style } = _a, anchorProps = __rest(_a, ["to", "children", "icon", "active", "onClick", "target", "disabled", "style"]);
27
27
  const iconLink = !!icon && !children;
28
28
  const smartTo = (0, react_1.useMemo)(() => {
@@ -82,7 +82,7 @@ exports.markdownComponentRenderer = (0, renderers_1.createComponentRenderer)(COM
82
82
  renderedChildren = extractValue.asString(node.props.content);
83
83
  }
84
84
  // 2. "data" property fallback
85
- if (!renderedChildren) {
85
+ if (!renderedChildren && typeof node.props.data === "string") {
86
86
  renderedChildren = extractValue.asString(node.props.data);
87
87
  }
88
88
  // 3. Children fallback
@@ -138,7 +138,17 @@ exports.Markdown = (0, react_1.memo)(function Markdown({ removeIndents = true, c
138
138
  },
139
139
  a(_a) {
140
140
  var { children, href } = _a, props = __rest(_a, ["children", "href"]);
141
- return ((0, jsx_runtime_1.jsx)(LinkNative_1.LocalLink, Object.assign({ to: href }, props, { children: children })));
141
+ let target = undefined;
142
+ let label = children;
143
+ // --- Extract the optional target
144
+ if (typeof children === "string") {
145
+ const match = children.match(/^(.*)\|\s*target\s*=\s*([_a-zA-Z0-9-]+)\s*$/);
146
+ if (match) {
147
+ label = match[1].trim();
148
+ target = match[2];
149
+ }
150
+ }
151
+ return ((0, jsx_runtime_1.jsx)(LinkNative_1.LinkNative, Object.assign({ to: href, target: target }, props, { children: label })));
142
152
  },
143
153
  // TODO: somehow get the label from the containing li element
144
154
  input({ disabled, checked }) {
@@ -180,7 +180,7 @@ exports.Select = (0, react_1.forwardRef)(function Select({ id, initialValue, val
180
180
  return ((0, jsx_runtime_1.jsx)(SelectContext_1.SelectContext.Provider, { value: selectContextValue, children: (0, jsx_runtime_1.jsx)(OptionContext_1.OptionContext.Provider, { value: optionContextValue, children: (0, jsx_runtime_1.jsxs)(OptionTypeProvider_1.default, { Component: HiddenOption, children: [(0, jsx_runtime_1.jsx)(ItemWithLabel_1.ItemWithLabel, { ref: ref, id: inputId, labelPosition: labelPosition, label: label, labelWidth: labelWidth, labelBreak: labelBreak, required: required, enabled: enabled, onFocus: onFocus, onBlur: onBlur, style: style, children: searchable || multiSelect ? ((0, jsx_runtime_1.jsxs)(react_popover_1.Popover, { open: open, onOpenChange: setOpen, modal: false, children: [(0, jsx_runtime_1.jsxs)(react_popover_1.PopoverTrigger, { id: inputId, "aria-haspopup": "listbox", style: style, ref: setReferenceElement, onFocus: onFocus, onBlur: onBlur, disabled: !enabled, "aria-expanded": open, onClick: () => setOpen((prev) => !prev), className: (0, classnames_1.default)(Select_module_scss_1.default.selectTrigger, Select_module_scss_1.default[validationStatus], {
181
181
  [Select_module_scss_1.default.disabled]: !enabled,
182
182
  [Select_module_scss_1.default.multi]: multiSelect,
183
- }), placeholder: placeholder, autoFocus: autoFocus, children: [multiSelect ? (Array.isArray(value) && value.length > 0 ? ((0, jsx_runtime_1.jsx)("div", { className: Select_module_scss_1.default.badgeListContainer, children: (0, jsx_runtime_1.jsx)("div", { className: Select_module_scss_1.default.badgeList, children: value.map((v) => {
183
+ }), autoFocus: autoFocus, children: [multiSelect ? (Array.isArray(value) && value.length > 0 ? ((0, jsx_runtime_1.jsx)("div", { className: Select_module_scss_1.default.badgeListContainer, children: (0, jsx_runtime_1.jsx)("div", { className: Select_module_scss_1.default.badgeList, children: value.map((v) => {
184
184
  var _a;
185
185
  return valueRenderer ? (valueRenderer(Array.from(options).find((o) => o.value === `${v}`), () => {
186
186
  toggleOption(v);
@@ -188,7 +188,7 @@ exports.Select = (0, react_1.forwardRef)(function Select({ id, initialValue, val
188
188
  event.stopPropagation();
189
189
  toggleOption(v);
190
190
  } })] }, v));
191
- }) }) })) : ((0, jsx_runtime_1.jsx)("span", { "aria-placeholder": placeholder, className: Select_module_scss_1.default.placeholder, children: placeholder }))) : value !== undefined && value !== null ? ((0, jsx_runtime_1.jsx)("div", { children: (_a = Array.from(options).find((o) => o.value === value)) === null || _a === void 0 ? void 0 : _a.label })) : ((0, jsx_runtime_1.jsx)("span", { "aria-placeholder": placeholder, className: Select_module_scss_1.default.placeholder, children: placeholder || "" })), (0, jsx_runtime_1.jsxs)("div", { className: Select_module_scss_1.default.actions, children: [multiSelect && Array.isArray(value) && value.length > 0 && ((0, jsx_runtime_1.jsx)(IconNative_1.default, { name: "close", onClick: (event) => {
191
+ }) }) })) : ((0, jsx_runtime_1.jsx)("span", { placeholder: placeholder, className: Select_module_scss_1.default.placeholder, children: placeholder }))) : value !== undefined && value !== null ? ((0, jsx_runtime_1.jsx)("div", { children: (_a = Array.from(options).find((o) => o.value === value)) === null || _a === void 0 ? void 0 : _a.label })) : ((0, jsx_runtime_1.jsx)("span", { "aria-placeholder": placeholder, className: Select_module_scss_1.default.placeholder, children: placeholder || "" })), (0, jsx_runtime_1.jsxs)("div", { className: Select_module_scss_1.default.actions, children: [multiSelect && Array.isArray(value) && value.length > 0 && ((0, jsx_runtime_1.jsx)(IconNative_1.default, { name: "close", onClick: (event) => {
192
192
  event.stopPropagation();
193
193
  clearValue();
194
194
  } })), (0, jsx_runtime_1.jsx)(IconNative_1.default, { name: "chevrondown" })] })] }), open && ((0, jsx_runtime_1.jsx)(react_select_1.Portal, { container: root, children: (0, jsx_runtime_1.jsx)(react_focus_scope_1.FocusScope, { asChild: true, loop: true, trapped: true, children: (0, jsx_runtime_1.jsx)(react_popover_1.PopoverContent, { style: { width, height: dropdownHeight }, className: Select_module_scss_1.default.selectContent, children: (0, jsx_runtime_1.jsxs)(cmdk_1.Command, { className: Select_module_scss_1.default.command, shouldFilter: searchable, filter: (value, search, keywords) => {
@@ -11,6 +11,7 @@ const renderers_1 = require("../../components-core/renderers");
11
11
  const themeVars_1 = require("../../components-core/theming/themeVars");
12
12
  const TableOfContentsNative_1 = require("./TableOfContentsNative");
13
13
  const COMP = "TableOfContents";
14
+ const COMP_CHILD = "TableOfContentsItem";
14
15
  exports.TableOfContentsMd = (0, ComponentDefs_1.createMetadata)({
15
16
  status: "experimental",
16
17
  description: `The \`${COMP}\` component collects headings and bookmarks within the current page ` +
@@ -33,43 +34,16 @@ exports.TableOfContentsMd = (0, ComponentDefs_1.createMetadata)({
33
34
  },
34
35
  themeVars: (0, themeVars_1.parseScssVar)(TableOfContents_module_scss_1.default.themeVars),
35
36
  defaultThemeVars: {
36
- [`width-${COMP}`]: "auto",
37
- [`height-${COMP}`]: "auto",
38
- [`fontSize-${COMP}Item`]: "$fontSize-smaller",
39
- [`fontWeight-${COMP}Item`]: "$fontWeight-normal",
40
- [`fontFamily-${COMP}Item`]: "$fontFamily",
41
- [`borderRadius-${COMP}Item`]: "0",
42
- [`border-width-${COMP}Item`]: "$space-0_5",
43
- [`border-style-${COMP}Item`]: "solid",
44
- [`borderRadius-${COMP}Item--active`]: "0",
45
- [`border-width-${COMP}Item--active`]: "$space-0_5",
46
- [`border-style-${COMP}Item--active`]: "solid",
47
- [`fontWeight-${COMP}Item--active`]: "$fontWeight-bold",
48
- [`backgroundColor-${COMP}`]: "transparent",
49
- [`paddingHorizontal-${COMP}`]: "$space-8",
50
- [`paddingVertical-${COMP}`]: "$space-4",
51
- [`paddingHorizontal-${COMP}Item`]: "$space-2",
52
- [`paddingVertical-${COMP}Item`]: "$space-2",
53
- [`paddingHorizontal-${COMP}Item-level-1`]: "unset",
54
- [`paddingHorizontal-${COMP}Item-level-2`]: "unset",
55
- [`paddingHorizontal-${COMP}Item-level-3`]: "unset",
56
- [`paddingHorizontal-${COMP}Item-level-4`]: "unset",
57
- [`paddingHorizontal-${COMP}Item-level-5`]: "unset",
58
- [`paddingHorizontal-${COMP}Item-level-6`]: "unset",
59
- [`marginTop-${COMP}`]: "0",
60
- [`marginBottom-${COMP}`]: "0",
61
- [`borderRadius-${COMP}`]: "0",
62
- [`border-width-${COMP}`]: "0",
63
- [`borderColor-${COMP}`]: "transparent",
64
- [`border-style-${COMP}`]: "solid",
65
- [`paddingLeft-${COMP}Item`]: "$space-1",
66
- [`textTransform-${COMP}Item`]: "none",
67
- [`verticalAlign-${COMP}Item`]: "baseline",
68
- [`letterSpacing-${COMP}Item`]: "0",
69
- [`color-${COMP}Item`]: "$textColor-primary",
70
- [`borderColor-${COMP}Item`]: "$borderColor",
71
- [`borderColor-${COMP}Item--active`]: "$color-primary-500",
72
- [`color-${COMP}Item--active`]: "$color-primary-500",
37
+ [`padding-${COMP}`]: "$space-2",
38
+ [`textColor-${COMP_CHILD}`]: "$color-secondary-500",
39
+ [`textColor-${COMP_CHILD}--hover`]: "$textColor-primary",
40
+ [`fontSize-${COMP_CHILD}`]: "$fontSize-small",
41
+ [`wordWrap-${COMP_CHILD}`]: "break-word",
42
+ [`paddingVertical-${COMP_CHILD}`]: "$space-1",
43
+ [`paddingHorizontal-${COMP_CHILD}`]: "$space-1",
44
+ [`fontWeight-${COMP_CHILD}`]: "$fontWeight-bold",
45
+ [`fontStyle-${COMP_CHILD}-level-6`]: "italic",
46
+ [`color-${COMP_CHILD}--active`]: "$color-primary-500",
73
47
  },
74
48
  });
75
49
  exports.tableOfContentsRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.TableOfContentsMd, ({ layoutCss, node, extractValue }) => {
@@ -20,7 +20,7 @@ exports.TableOfContents = (0, react_1.forwardRef)(function TableOfContents({ sty
20
20
  (0, hooks_1.useIsomorphicLayoutEffect)(() => {
21
21
  return subscribeToActiveAnchorChange((id) => {
22
22
  const foundHeading = headings.find((heading) => heading.id === id);
23
- if (foundHeading.level <= maxHeadingLevel) {
23
+ if ((foundHeading === null || foundHeading === void 0 ? void 0 : foundHeading.level) <= maxHeadingLevel) {
24
24
  setActiveId(id);
25
25
  }
26
26
  });
@@ -63,6 +63,35 @@ function Theme({ id, isRoot = false, renderChild, node, tone, toastDuration = 50
63
63
  rangeClassName = `${fromClass} ~ *:has(~ .${toClass})`;
64
64
  css += `color: var(${(0, themeVars_1.getVarKey)("textColor-primary")});`;
65
65
  }
66
+ else {
67
+ css += `--screenSize: 0;`;
68
+ const maxWidthPhone = getThemeVar("maxWidth-phone");
69
+ const maxWidthLandscapePhone = getThemeVar("maxWidth-landscape-phone");
70
+ const maxWidthTablet = getThemeVar("maxWidth-tablet");
71
+ const maxWidthDesktop = getThemeVar("maxWidth-desktop");
72
+ const maxWidthLargeDesktop = getThemeVar("maxWidth-large-desktop");
73
+ const mediaClasses = ` @media (min-width: calc(${maxWidthPhone} + 1px)) {
74
+ --screenSize: 1;
75
+ }
76
+
77
+ @media (min-width: calc(${maxWidthLandscapePhone} + 1px)) {
78
+ --screenSize: 2;
79
+ }
80
+
81
+ @media (min-width: calc(${maxWidthTablet} + 1px)) {
82
+ --screenSize: 3;
83
+ }
84
+
85
+ @media (min-width: calc(${maxWidthDesktop} + 1px)) {
86
+ --screenSize: 4;
87
+ }
88
+
89
+ @media (min-width: calc(${maxWidthLargeDesktop} + 1px)) {
90
+ --screenSize: 5;
91
+ }
92
+ `;
93
+ css += mediaClasses;
94
+ }
66
95
  return {
67
96
  className,
68
97
  rangeClassName,
@@ -70,7 +99,7 @@ function Theme({ id, isRoot = false, renderChild, node, tone, toastDuration = 50
70
99
  toClass,
71
100
  css,
72
101
  };
73
- }, [isRoot, themeCssVars, themeTone]);
102
+ }, [isRoot, themeCssVars, themeTone, getThemeVar]);
74
103
  // useInsertionEffect(() => {
75
104
  // //PERF OPT IDEA: don't inject the css content that we already have
76
105
  // // (e.g. in Items component we inject and generate classes for all items if we use a theme for an item, but they have the same content.
@@ -129,7 +129,7 @@ function ApiBoundComponent({ uid, node, apiBoundProps, apiBoundEvents, renderChi
129
129
  }
130
130
  });
131
131
  apiBoundProps.forEach((key) => {
132
- var _a;
132
+ var _a, _b, _c;
133
133
  const isDatasourceRef = ((_a = node.props[key]) === null || _a === void 0 ? void 0 : _a.type) === "DataSourceRef";
134
134
  const loaderUid = node.props[key].uid || generateloaderUid(key);
135
135
  const operation = node.props[key].props || node.props[key];
@@ -160,8 +160,10 @@ function ApiBoundComponent({ uid, node, apiBoundProps, apiBoundEvents, renderChi
160
160
  props._data_url = operation.url;
161
161
  }
162
162
  }
163
- props[key] = `{ ${loaderUid}.value }`;
164
- props.loading = `{${loaderUid}.inProgress === undefined ? true : ${loaderUid}.inProgress}`;
163
+ //illesg really experimental brutal hack
164
+ const prefetchPathWithoutBindingExpression = ((_b = operation.url) === null || _b === void 0 ? void 0 : _b.trim().startsWith("{")) ? (_c = operation.url) === null || _c === void 0 ? void 0 : _c.trim().substring(1, operation.url.length - 1) : `'${operation.url}'`;
165
+ props[key] = `{ ${loaderUid}.value || ( appGlobals.prefetchedContent[${prefetchPathWithoutBindingExpression}] || appGlobals.prefetchedContent['/' + ${prefetchPathWithoutBindingExpression}] ) }`;
166
+ props.loading = `{ ${loaderUid}.inProgress === undefined ? true : ${loaderUid}.inProgress}`;
165
167
  props.pageInfo = `{${loaderUid}.pageInfo}`;
166
168
  events.requestFetchPrevPage = `${loaderUid}.fetchPrevPage()`;
167
169
  events.requestFetchNextPage = `${loaderUid}.fetchNextPage()`;