xmlui 0.7.26 → 0.7.27

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 (47) hide show
  1. package/dist/{apiInterceptorWorker-BlvgbCSf.mjs → apiInterceptorWorker-Ca5HMlfW.mjs} +1 -1
  2. package/dist/{index-CWLnzVw7.mjs → index-BMOK5q0U.mjs} +8338 -8005
  3. package/dist/scripts/src/components/APICall/APICall.js +63 -28
  4. package/dist/scripts/src/components/Accordion/Accordion.js +27 -7
  5. package/dist/scripts/src/components/Accordion/AccordionNative.js +9 -3
  6. package/dist/scripts/src/components/Alert/Alert.js +25 -6
  7. package/dist/scripts/src/components/App/App.js +48 -13
  8. package/dist/scripts/src/components/AppHeader/AppHeader.js +9 -2
  9. package/dist/scripts/src/components/AppState/AppState.js +14 -8
  10. package/dist/scripts/src/components/Avatar/Avatar.js +14 -3
  11. package/dist/scripts/src/components/Avatar/AvatarNative.js +5 -2
  12. package/dist/scripts/src/components/Backdrop/Backdrop.js +10 -2
  13. package/dist/scripts/src/components/Backdrop/BackdropNative.js +6 -2
  14. package/dist/scripts/src/components/Badge/Badge.js +17 -9
  15. package/dist/scripts/src/components/Badge/BadgeNative.js +6 -4
  16. package/dist/scripts/src/components/Bookmark/Bookmark.js +22 -9
  17. package/dist/scripts/src/components/Bookmark/BookmarkNative.js +6 -2
  18. package/dist/scripts/src/components/ButtonGroup/ButtonGroup.js +22 -8
  19. package/dist/scripts/src/components/Card/Card.js +31 -10
  20. package/dist/scripts/src/components/Card/CardNative.js +6 -3
  21. package/dist/scripts/src/components/Carousel/Carousel.js +59 -12
  22. package/dist/scripts/src/components/Carousel/CarouselNative.js +13 -2
  23. package/dist/scripts/src/components/ChangeListener/ChangeListener.js +10 -3
  24. package/dist/scripts/src/components/ChangeListener/ChangeListenerNative.js +5 -1
  25. package/dist/scripts/src/components/Checkbox/Checkbox.js +8 -6
  26. package/dist/scripts/src/components/ColorPicker/ColorPicker.js +2 -2
  27. package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +8 -2
  28. package/dist/scripts/src/components/Column/Column.js +39 -17
  29. package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +11 -3
  30. package/dist/scripts/src/components/ContentSeparator/ContentSeparatorNative.js +5 -2
  31. package/dist/scripts/src/components/DatePicker/DatePicker.js +42 -10
  32. package/dist/scripts/src/components/DatePicker/DatePickerNative.js +67 -26
  33. package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +51 -12
  34. package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +14 -3
  35. package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +10 -3
  36. package/dist/scripts/src/components/Switch/Switch.js +6 -6
  37. package/dist/scripts/src/components/Toggle/Toggle.js +10 -2
  38. package/dist/scripts/src/components/metadata-helpers.js +20 -8
  39. package/dist/scripts/src/components-core/loader/DataLoader.js +1 -1
  40. package/dist/scripts/src/components-core/utils/hooks.js +3 -0
  41. package/dist/scripts/src/components-core/utils/misc.js +3 -0
  42. package/dist/style.css +1 -1
  43. package/dist/xmlui-metadata.mjs +6560 -5279
  44. package/dist/xmlui-metadata.umd.js +17 -17
  45. package/dist/xmlui-standalone.umd.js +173 -173
  46. package/dist/xmlui.mjs +1 -1
  47. package/package.json +1 -1
@@ -20,14 +20,38 @@ exports.DropdownMenuMd = (0, ComponentDefs_1.createMetadata)({
20
20
  props: {
21
21
  label: (0, metadata_helpers_1.dLabel)(),
22
22
  triggerTemplate: (0, metadata_helpers_1.dTriggerTemplate)(DDMCOMP),
23
- alignment: (0, ComponentDefs_1.d)(`This property allows you to determine the alignment of the displayed menu items.`),
23
+ alignment: {
24
+ description: `This property allows you to determine the alignment of the displayed menu items.`,
25
+ valueType: "string",
26
+ availableValues: abstractions_1.alignmentOptionMd,
27
+ defaultValue: DropdownMenuNative_1.defaultDropdownMenuProps.alignment,
28
+ },
24
29
  enabled: (0, metadata_helpers_1.dEnabled)(),
25
- triggerButtonVariant: (0, ComponentDefs_1.d)(`This property defines the theme variant of the \`Button\` as the dropdown menu's trigger. ` +
26
- `It has no effect when a custom trigger is defined with \`triggerTemplate\`.`),
27
- triggerButtonThemeColor: (0, ComponentDefs_1.d)(`This property defines the theme color of the \`Button\` as the dropdown menu's trigger. ` +
28
- `It has no effect when a custom trigger is defined with \`triggerTemplate\`.`),
29
- triggerButtonIcon: (0, ComponentDefs_1.d)(`This property defines the icon to display on the trigger button.`),
30
- triggerButtonIconPosition: (0, ComponentDefs_1.d)(`This property defines the position of the icon on the trigger button.`, abstractions_1.iconPositionNames),
30
+ triggerButtonVariant: {
31
+ description: `This property defines the theme variant of the \`Button\` as the dropdown menu's trigger. ` +
32
+ `It has no effect when a custom trigger is defined with \`triggerTemplate\`.`,
33
+ valueType: "string",
34
+ availableValues: abstractions_1.buttonVariantMd,
35
+ defaultValue: DropdownMenuNative_1.defaultDropdownMenuProps.triggerButtonVariant,
36
+ },
37
+ triggerButtonThemeColor: {
38
+ description: `This property defines the theme color of the \`Button\` as the dropdown menu's trigger. ` +
39
+ `It has no effect when a custom trigger is defined with \`triggerTemplate\`.`,
40
+ valueType: "string",
41
+ availableValues: abstractions_1.buttonThemeMd,
42
+ defaultValue: DropdownMenuNative_1.defaultDropdownMenuProps.triggerButtonThemeColor,
43
+ },
44
+ triggerButtonIcon: {
45
+ description: `This property defines the icon to display on the trigger button.`,
46
+ defaultValue: DropdownMenuNative_1.defaultDropdownMenuProps.triggerButtonIcon,
47
+ valueType: "string",
48
+ },
49
+ triggerButtonIconPosition: {
50
+ description: `This property defines the position of the icon on the trigger button.`,
51
+ defaultValue: DropdownMenuNative_1.defaultDropdownMenuProps.triggerButtonIconPosition,
52
+ valueType: "string",
53
+ availableValues: abstractions_1.iconPositionMd,
54
+ },
31
55
  },
32
56
  events: {
33
57
  willOpen: (0, ComponentDefs_1.d)(`This event fires when the \`${DDMCOMP}\` component is opened.`),
@@ -53,12 +77,27 @@ exports.MenuItemMd = (0, ComponentDefs_1.createMetadata)({
53
77
  description: `This property represents a leaf item in a menu hierarchy. Clicking the item triggers an action.`,
54
78
  docFolder: DDMCOMP,
55
79
  props: {
56
- iconPosition: (0, ComponentDefs_1.d)(`This property allows you to determine the position of the icon displayed in the menu item.`, abstractions_1.iconPositionMd.filter(p => p.value === "start" || p.value === "end")),
57
- icon: (0, ComponentDefs_1.d)(`This property names an optional icon to display with the menu item.`),
80
+ iconPosition: {
81
+ description: `This property allows you to determine the position of the icon displayed in the menu item.`,
82
+ valueType: "string",
83
+ availableValues: abstractions_1.iconPositionMd,
84
+ defaultValue: DropdownMenuNative_1.defaultMenuItemProps.iconPosition,
85
+ },
86
+ icon: {
87
+ description: `This property names an optional icon to display with the menu item.`,
88
+ valueType: "string",
89
+ },
58
90
  label: (0, metadata_helpers_1.dLabel)(),
59
- to: (0, ComponentDefs_1.d)(`This property defines the URL of the menu item. If this property is defined (and the \`click\` ` +
60
- `event does not have an event handler), clicking the menu item navigates to this link.`),
61
- active: (0, ComponentDefs_1.d)(`This property indicates if the specified menu item is active.`),
91
+ to: {
92
+ description: `This property defines the URL of the menu item. If this property is defined (and the \`click\` ` +
93
+ `event does not have an event handler), clicking the menu item navigates to this link.`,
94
+ valueType: "string",
95
+ },
96
+ active: {
97
+ description: `This property indicates if the specified menu item is active.`,
98
+ valueType: "boolean",
99
+ defaultValue: DropdownMenuNative_1.defaultMenuItemProps.active,
100
+ },
62
101
  },
63
102
  events: {
64
103
  click: (0, metadata_helpers_1.dClick)(MICOMP),
@@ -45,7 +45,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
45
45
  return (mod && mod.__esModule) ? mod : { "default": mod };
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.DropdownMenu = void 0;
48
+ exports.defaultMenuItemProps = exports.DropdownMenu = exports.defaultDropdownMenuProps = void 0;
49
49
  exports.MenuItem = MenuItem;
50
50
  exports.SubMenuItem = SubMenuItem;
51
51
  exports.MenuSeparator = MenuSeparator;
@@ -59,7 +59,14 @@ const ThemeContext_1 = require("../../components-core/theming/ThemeContext");
59
59
  const constants_1 = require("../../components-core/constants");
60
60
  const ButtonNative_1 = require("../Button/ButtonNative");
61
61
  const IconNative_1 = require("../Icon/IconNative");
62
- exports.DropdownMenu = (0, react_1.forwardRef)(function DropdownMenu({ triggerTemplate, children, label, registerComponentApi, style, onWillOpen, alignment = "start", disabled = false, triggerButtonVariant = "ghost", triggerButtonThemeColor = "primary", triggerButtonIcon = "chevrondown", triggerButtonIconPosition = "end", }, ref) {
62
+ exports.defaultDropdownMenuProps = {
63
+ alignment: "start",
64
+ triggerButtonVariant: "ghost",
65
+ triggerButtonThemeColor: "primary",
66
+ triggerButtonIcon: "chevrondown",
67
+ triggerButtonIconPosition: "end",
68
+ };
69
+ exports.DropdownMenu = (0, react_1.forwardRef)(function DropdownMenu({ triggerTemplate, children, label, registerComponentApi, style, onWillOpen, alignment = exports.defaultDropdownMenuProps.alignment, disabled = false, triggerButtonVariant = exports.defaultDropdownMenuProps.triggerButtonVariant, triggerButtonThemeColor = exports.defaultDropdownMenuProps.triggerButtonThemeColor, triggerButtonIcon = exports.defaultDropdownMenuProps.triggerButtonIcon, triggerButtonIconPosition = exports.defaultDropdownMenuProps.triggerButtonIconPosition, }, ref) {
63
70
  const { root } = (0, ThemeContext_1.useTheme)();
64
71
  const [open, setOpen] = (0, react_2.useState)(false);
65
72
  (0, react_2.useEffect)(() => {
@@ -77,7 +84,11 @@ exports.DropdownMenu = (0, react_1.forwardRef)(function DropdownMenu({ triggerTe
77
84
  setOpen(isOpen);
78
85
  }), children: [(0, jsx_runtime_1.jsx)(ReactDropdownMenu.Trigger, { asChild: true, disabled: disabled, ref: ref, children: triggerTemplate ? (triggerTemplate) : ((0, jsx_runtime_1.jsx)(ButtonNative_1.Button, { icon: (0, jsx_runtime_1.jsx)(IconNative_1.Icon, { name: triggerButtonIcon }), iconPosition: triggerButtonIconPosition, type: "button", variant: triggerButtonVariant, themeColor: triggerButtonThemeColor, disabled: disabled, children: label })) }), (0, jsx_runtime_1.jsx)(ReactDropdownMenu.Portal, { container: root, children: (0, jsx_runtime_1.jsx)(ReactDropdownMenu.Content, { align: alignment, style: style, className: DropdownMenu_module_scss_1.default.DropdownMenuContent, children: children }) })] }));
79
86
  });
80
- function MenuItem({ children, onClick = constants_1.noop, label, style, icon, iconPosition = "start", active = false, }) {
87
+ exports.defaultMenuItemProps = {
88
+ iconPosition: "start",
89
+ active: false,
90
+ };
91
+ function MenuItem({ children, onClick = constants_1.noop, label, style, icon, iconPosition = exports.defaultMenuItemProps.iconPosition, active = exports.defaultMenuItemProps.active, }) {
81
92
  const iconToStart = iconPosition === "start";
82
93
  return ((0, jsx_runtime_1.jsxs)(ReactDropdownMenu.Item, { style: style, className: (0, classnames_1.default)(DropdownMenu_module_scss_1.default.DropdownMenuItem, {
83
94
  [DropdownMenu_module_scss_1.default.active]: active,
@@ -7,7 +7,7 @@ exports.StickyBox = StickyBox;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const react_1 = require("react");
9
9
  const classnames_1 = __importDefault(require("classnames"));
10
- const react_sticky_el_1 = __importDefault(require("react-sticky-el"));
10
+ const react_sticky_el_1 = require("react-sticky-el");
11
11
  const StickyBox_module_scss_1 = __importDefault(require("./StickyBox.module.scss"));
12
12
  const hooks_1 = require("../../components-core/utils/hooks");
13
13
  function StickyBox({ children, uid, layout, to = "top" }) {
@@ -18,10 +18,17 @@ function StickyBox({ children, uid, layout, to = "top" }) {
18
18
  const realBackground = (0, hooks_1.useRealBackground)(scrollParent);
19
19
  (0, react_1.useEffect)(() => {
20
20
  if (wrapper) {
21
- console.log(wrapper.innerHeight);
22
21
  document.documentElement.style.setProperty("--xmlui-scroll-margin-top", wrapper.clientHeight + "px");
23
22
  // scrollParent.setAttribute("data-xmlui-scroll-padding", true);
24
23
  }
25
24
  }, [scrollParent, wrapper]);
26
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [scrollParent && ((0, jsx_runtime_1.jsx)(react_sticky_el_1.default, { scrollElement: scrollParent, wrapperClassName: (0, classnames_1.default)(StickyBox_module_scss_1.default.wrapper), mode: to, onFixedToggle: setStuck, stickyStyle: Object.assign({ backgroundColor: realBackground }, layout), children: (0, jsx_runtime_1.jsx)("div", { ref: setWrapper, children: children }) })), (0, jsx_runtime_1.jsx)("div", { style: { display: "none" }, ref: sentinelRef, className: to === "top" ? StickyBox_module_scss_1.default.sentinel : "" })] }));
25
+ const wrapperClassName = (0, classnames_1.default)(StickyBox_module_scss_1.default.wrapper);
26
+ const stickyStyles = Object.assign({ backgroundColor: realBackground }, layout);
27
+ const stickyClassName = "";
28
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [!!scrollParent && ((0, jsx_runtime_1.jsx)(react_sticky_el_1.RenderPropSticky, { mode: to, onFixedToggle: setStuck,
29
+ // hideOnBoundaryHit={hideOnBoundaryHit}
30
+ // offsetTransforms={offsetTransforms}
31
+ // disabled={disabled}
32
+ // boundaryElement={boundaryElement}
33
+ scrollElement: scrollParent, children: ({ isFixed, wrapperStyles, wrapperRef, holderStyles, holderRef }) => ((0, jsx_runtime_1.jsx)("div", { ref: holderRef, style: holderStyles, children: (0, jsx_runtime_1.jsx)("div", { className: `${wrapperClassName} ${isFixed ? stickyClassName : ''}`, style: isFixed ? Object.assign(Object.assign({}, wrapperStyles), stickyStyles) : wrapperStyles, ref: wrapperRef, children: (0, jsx_runtime_1.jsx)("div", { ref: setWrapper, children: children }) }) })) })), (0, jsx_runtime_1.jsx)("div", { style: { display: "none" }, ref: sentinelRef, className: to === "top" ? StickyBox_module_scss_1.default.sentinel : "" })] }));
27
34
  }
@@ -17,18 +17,18 @@ exports.SwitchMd = (0, ComponentDefs_1.createMetadata)({
17
17
  `on and off. It consists of a small rectangular or circular button that can be moved left or right to ` +
18
18
  `change its state.`,
19
19
  props: {
20
- indeterminate: (0, metadata_helpers_1.dIndeterminate)(),
20
+ indeterminate: (0, metadata_helpers_1.dIndeterminate)(Toggle_1.defaultProps.indeterminate),
21
21
  label: (0, metadata_helpers_1.dLabel)(),
22
22
  labelPosition: (0, metadata_helpers_1.dLabelPosition)("end"),
23
23
  labelWidth: (0, metadata_helpers_1.dLabelWidth)(COMP),
24
24
  labelBreak: (0, metadata_helpers_1.dLabelBreak)(COMP),
25
25
  required: (0, metadata_helpers_1.dRequired)(),
26
- initialValue: (0, metadata_helpers_1.dInitialValue)(false),
26
+ initialValue: (0, metadata_helpers_1.dInitialValue)(Toggle_1.defaultProps.initialValue),
27
27
  autoFocus: (0, metadata_helpers_1.dAutoFocus)(),
28
28
  readOnly: (0, metadata_helpers_1.dReadonly)(),
29
29
  enabled: (0, metadata_helpers_1.dEnabled)(),
30
- validationStatus: (0, metadata_helpers_1.dValidationStatus)(),
31
- description: (0, ComponentDefs_1.d)(`(*** NOT IMPLEMENTED YET ***) This optional property displays an alternate description ` +
30
+ validationStatus: (0, metadata_helpers_1.dValidationStatus)(Toggle_1.defaultProps.validationStatus),
31
+ description: (0, metadata_helpers_1.dInternal)(`(*** NOT IMPLEMENTED YET ***) This optional property displays an alternate description ` +
32
32
  `of the ${COMP} besides its label.`),
33
33
  },
34
34
  events: {
@@ -67,6 +67,6 @@ exports.SwitchMd = (0, ComponentDefs_1.createMetadata)({
67
67
  },
68
68
  },
69
69
  });
70
- exports.switchComponentRenderer = (0, renderers_1.createComponentRenderer)("Switch", exports.SwitchMd, ({ node, extractValue, layoutCss, updateState, state, lookupEventHandler, registerComponentApi, }) => {
71
- return ((0, jsx_runtime_1.jsx)(Toggle_1.Toggle, { enabled: extractValue.asOptionalBoolean(node.props.enabled), style: layoutCss, initialValue: extractValue.asOptionalBoolean(node.props.initialValue) || false, value: state === null || state === void 0 ? void 0 : state.value, readOnly: extractValue.asOptionalBoolean(node.props.readOnly), validationStatus: extractValue(node.props.validationStatus), updateState: updateState, onDidChange: lookupEventHandler("didChange"), onFocus: lookupEventHandler("gotFocus"), onBlur: lookupEventHandler("lostFocus"), label: extractValue(node.props.label), labelPosition: extractValue(node.props.labelPosition), labelWidth: extractValue(node.props.labelWidth), labelBreak: extractValue.asOptionalBoolean(node.props.labelBreak), required: extractValue.asOptionalBoolean(node.props.required), variant: "switch", registerComponentApi: registerComponentApi }));
70
+ exports.switchComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.SwitchMd, ({ node, extractValue, layoutCss, updateState, state, lookupEventHandler, registerComponentApi, }) => {
71
+ return ((0, jsx_runtime_1.jsx)(Toggle_1.Toggle, { enabled: extractValue.asOptionalBoolean(node.props.enabled), style: layoutCss, initialValue: extractValue.asOptionalBoolean(node.props.initialValue, Toggle_1.defaultProps.initialValue), value: state === null || state === void 0 ? void 0 : state.value, readOnly: extractValue.asOptionalBoolean(node.props.readOnly), validationStatus: extractValue(node.props.validationStatus), updateState: updateState, onDidChange: lookupEventHandler("didChange"), onFocus: lookupEventHandler("gotFocus"), onBlur: lookupEventHandler("lostFocus"), label: extractValue(node.props.label), labelPosition: extractValue(node.props.labelPosition), labelWidth: extractValue(node.props.labelWidth), labelBreak: extractValue.asOptionalBoolean(node.props.labelBreak), required: extractValue.asOptionalBoolean(node.props.required), variant: "switch", registerComponentApi: registerComponentApi }));
72
72
  });
@@ -36,7 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Toggle = void 0;
39
+ exports.Toggle = exports.defaultProps = void 0;
40
40
  const jsx_runtime_1 = require("react/jsx-runtime");
41
41
  const react_1 = require("react");
42
42
  const react_2 = require("react");
@@ -46,7 +46,14 @@ const Toggle_module_scss_1 = __importDefault(require("./Toggle.module.scss"));
46
46
  const constants_1 = require("../../components-core/constants");
47
47
  const misc_1 = require("../../components-core/utils/misc");
48
48
  const ItemWithLabel_1 = require("../FormItem/ItemWithLabel");
49
- exports.Toggle = (0, react_3.forwardRef)(function Toggle({ id, initialValue = false, value = false, enabled = true, style, readOnly, validationStatus = "none", updateState = constants_1.noop, onDidChange = constants_1.noop, onFocus = constants_1.noop, onBlur = constants_1.noop, variant = "checkbox", indeterminate = false, className, label, labelPosition = "start", labelWidth, labelBreak, required, registerComponentApi, inputRenderer, }, forwardedRef) {
49
+ exports.defaultProps = {
50
+ initialValue: false,
51
+ value: false,
52
+ enabled: true,
53
+ validationStatus: "none",
54
+ indeterminate: false,
55
+ };
56
+ exports.Toggle = (0, react_3.forwardRef)(function Toggle({ id, initialValue = exports.defaultProps.initialValue, value = exports.defaultProps.value, enabled = exports.defaultProps.enabled, style, readOnly, validationStatus = exports.defaultProps.validationStatus, updateState = constants_1.noop, onDidChange = constants_1.noop, onFocus = constants_1.noop, onBlur = constants_1.noop, variant = "checkbox", indeterminate = exports.defaultProps.indeterminate, className, label, labelPosition = "end", labelWidth, labelBreak, required, registerComponentApi, inputRenderer, }, forwardedRef) {
50
57
  const generatedId = (0, react_1.useId)();
51
58
  const inputId = id || generatedId;
52
59
  const innerRef = react_3.default.useRef(null);
@@ -98,6 +105,7 @@ exports.Toggle = (0, react_3.forwardRef)(function Toggle({ id, initialValue = fa
98
105
  [Toggle_module_scss_1.default.warning]: validationStatus === "warning",
99
106
  [Toggle_module_scss_1.default.valid]: validationStatus === "valid",
100
107
  }) })), [
108
+ inputId,
101
109
  className,
102
110
  enabled,
103
111
  handleOnBlur,
@@ -62,22 +62,24 @@ function dDidChange(comp) {
62
62
  description: `This event is triggered when value of ${comp} has changed.`,
63
63
  };
64
64
  }
65
- function dIndeterminate() {
65
+ function dIndeterminate(defaultValue) {
66
66
  return {
67
67
  description: `The \`true\` value of this property signals that the component is in an ` +
68
68
  `_intedeterminate state_.`,
69
+ defaultValue,
69
70
  };
70
71
  }
71
72
  function dLabel() {
72
73
  return {
73
74
  description: `This property sets the label of the component.`,
75
+ valueType: "string",
74
76
  };
75
77
  }
76
78
  function dLabelPosition(def) {
77
79
  return {
78
80
  description: `Places the label at the given position of the component.`,
79
81
  availableValues: abstractions_1.labelPositionMd,
80
- defaultValue: def,
82
+ defaultValue: def !== null && def !== void 0 ? def : "top",
81
83
  };
82
84
  }
83
85
  function dLabelWidth(comp) {
@@ -100,22 +102,24 @@ function dAutoFocus() {
100
102
  defaultValue: false,
101
103
  };
102
104
  }
103
- function dInitialValue(def) {
105
+ function dInitialValue(value) {
104
106
  return {
105
107
  description: `This property sets the component's initial value.`,
106
- defaultValue: def,
108
+ defaultValue: value,
107
109
  };
108
110
  }
109
- function dReadonly() {
111
+ function dReadonly(readOnly) {
110
112
  return {
111
113
  description: `Set this property to \`true\` to disallow changing the component value.`,
114
+ valueType: "boolean",
115
+ defaultValue: readOnly !== null && readOnly !== void 0 ? readOnly : false,
112
116
  };
113
117
  }
114
- function dEnabled() {
118
+ function dEnabled(isEnabled) {
115
119
  return {
116
120
  description: `This boolean property value indicates whether the component responds to user events (\`true\`) or not (\`false\`).`,
117
121
  valueType: "boolean",
118
- defaultValue: true,
122
+ defaultValue: isEnabled !== null && isEnabled !== void 0 ? isEnabled : true,
119
123
  };
120
124
  }
121
125
  function dMulti() {
@@ -125,10 +129,11 @@ function dMulti() {
125
129
  defaultValue: false,
126
130
  };
127
131
  }
128
- function dValidationStatus() {
132
+ function dValidationStatus(value) {
129
133
  return {
130
134
  description: `This property allows you to set the validation status of the input component.`,
131
135
  availableValues: abstractions_1.validationStatusMd,
136
+ defaultValue: value !== null && value !== void 0 ? value : "none",
132
137
  };
133
138
  }
134
139
  function dValueApi() {
@@ -152,41 +157,48 @@ function dComponent(description) {
152
157
  function dPlaceholder() {
153
158
  return {
154
159
  description: `A placeholder text that is visible in the input field when its empty.`,
160
+ valueType: "string",
155
161
  };
156
162
  }
157
163
  function dMaxLength() {
158
164
  return {
159
165
  description: `This property sets the maximum length of the input it accepts.`,
166
+ valueType: "number",
160
167
  };
161
168
  }
162
169
  function dRequired() {
163
170
  return {
164
171
  description: `Set this property to \`true\` to indicate it must have a value ` +
165
172
  `before submitting the containing form.`,
173
+ valueType: "boolean",
166
174
  };
167
175
  }
168
176
  function dStartText() {
169
177
  return {
170
178
  description: `This property sets a text to appear at the start (left side when the ` +
171
179
  `left-to-right direction is set) of the input.`,
180
+ valueType: "string",
172
181
  };
173
182
  }
174
183
  function dStartIcon() {
175
184
  return {
176
185
  description: `This property sets an icon to appear at the start (left side when the ` +
177
186
  `left-to-right direction is set) of the input.`,
187
+ valueType: "string",
178
188
  };
179
189
  }
180
190
  function dEndText() {
181
191
  return {
182
192
  description: `This property sets a text to appear on the end (right side when the ` +
183
193
  `left-to-right direction is set) of the input.`,
194
+ valueType: "string",
184
195
  };
185
196
  }
186
197
  function dEndIcon() {
187
198
  return {
188
199
  description: `This property sets an icon to appear on the end (right side when the ` +
189
200
  `left-to-right direction is set) of the input.`,
201
+ valueType: "string",
190
202
  };
191
203
  }
192
204
  function dExpanded(comp) {
@@ -66,7 +66,7 @@ function DataLoader({ loader, state, registerComponentApi, onLoaded, onError, lo
66
66
  }), [api, loader.props, state]);
67
67
  const queryId = (0, react_1.useMemo)(() => {
68
68
  return new DataLoaderQueryKeyGenerator_1.DataLoaderQueryKeyGenerator(url, queryParams, appContext === null || appContext === void 0 ? void 0 : appContext.appGlobals.apiUrl, body, rawBody).asKey();
69
- }, [appContext === null || appContext === void 0 ? void 0 : appContext.appGlobals.apiUrl, queryParams, url]);
69
+ }, [appContext === null || appContext === void 0 ? void 0 : appContext.appGlobals.apiUrl, queryParams, url, body, rawBody]);
70
70
  const stateRef = (0, react_1.useRef)({ state, appContext });
71
71
  stateRef.current = { state, appContext };
72
72
  const loadingToastIdRef = (0, react_1.useRef)(undefined);
@@ -256,6 +256,9 @@ function getScrollParent(element) {
256
256
  return document.body;
257
257
  }
258
258
  for (let parent = element;; parent = parent.parentElement) {
259
+ if (!parent) {
260
+ return null;
261
+ }
259
262
  style = getComputedStyle(parent);
260
263
  if (excludeStaticParent && style.position === "static") {
261
264
  continue;
@@ -370,6 +370,9 @@ exports.shallowCompare = shallowCompare;
370
370
  function shallowEqual(a, b) {
371
371
  const aIsArr = Array.isArray(a);
372
372
  const bIsArr = Array.isArray(b);
373
+ if (typeof a === "string" || typeof b === "string") {
374
+ return a === b;
375
+ }
373
376
  if (aIsArr !== bIsArr) {
374
377
  return false;
375
378
  }