xmlui 0.7.25 → 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 (74) hide show
  1. package/dist/{apiInterceptorWorker-B0H9MD6w.mjs → apiInterceptorWorker-Ca5HMlfW.mjs} +1 -1
  2. package/dist/{index-Brmiu4kS.mjs → index-BMOK5q0U.mjs} +10810 -10330
  3. package/dist/index.css +1 -1
  4. package/dist/scripts/src/abstractions/ComponentDefs.js +2 -2
  5. package/dist/scripts/src/components/APICall/APICall.js +63 -28
  6. package/dist/scripts/src/components/Accordion/Accordion.js +28 -8
  7. package/dist/scripts/src/components/Accordion/AccordionNative.js +9 -3
  8. package/dist/scripts/src/components/Alert/Alert.js +25 -6
  9. package/dist/scripts/src/components/App/App.js +49 -13
  10. package/dist/scripts/src/components/App/AppNative.js +9 -3
  11. package/dist/scripts/src/components/AppHeader/AppHeader.js +10 -14
  12. package/dist/scripts/src/components/AppState/AppState.js +14 -8
  13. package/dist/scripts/src/components/Avatar/Avatar.js +16 -7
  14. package/dist/scripts/src/components/Avatar/AvatarNative.js +5 -2
  15. package/dist/scripts/src/components/Backdrop/Backdrop.js +10 -2
  16. package/dist/scripts/src/components/Backdrop/BackdropNative.js +6 -2
  17. package/dist/scripts/src/components/Badge/Badge.js +23 -10
  18. package/dist/scripts/src/components/Badge/BadgeNative.js +6 -4
  19. package/dist/scripts/src/components/Bookmark/Bookmark.js +22 -9
  20. package/dist/scripts/src/components/Bookmark/BookmarkNative.js +7 -3
  21. package/dist/scripts/src/components/Button/Button.js +74 -24
  22. package/dist/scripts/src/components/Button/ButtonNative.js +11 -3
  23. package/dist/scripts/src/components/ButtonGroup/ButtonGroup.js +22 -8
  24. package/dist/scripts/src/components/Card/Card.js +31 -10
  25. package/dist/scripts/src/components/Card/CardNative.js +6 -3
  26. package/dist/scripts/src/components/Carousel/Carousel.js +59 -12
  27. package/dist/scripts/src/components/Carousel/CarouselNative.js +13 -2
  28. package/dist/scripts/src/components/ChangeListener/ChangeListener.js +10 -3
  29. package/dist/scripts/src/components/ChangeListener/ChangeListenerNative.js +5 -1
  30. package/dist/scripts/src/components/Checkbox/Checkbox.js +8 -6
  31. package/dist/scripts/src/components/ColorPicker/ColorPicker.js +2 -2
  32. package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +8 -2
  33. package/dist/scripts/src/components/Column/Column.js +61 -16
  34. package/dist/scripts/src/components/Column/ColumnNative.js +8 -2
  35. package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +11 -3
  36. package/dist/scripts/src/components/ContentSeparator/ContentSeparatorNative.js +5 -2
  37. package/dist/scripts/src/components/DatePicker/DatePicker.js +42 -10
  38. package/dist/scripts/src/components/DatePicker/DatePickerNative.js +67 -26
  39. package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +51 -12
  40. package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +14 -3
  41. package/dist/scripts/src/components/Footer/Footer.js +13 -10
  42. package/dist/scripts/src/components/Form/Form.js +7 -1
  43. package/dist/scripts/src/components/Form/FormNative.js +31 -2
  44. package/dist/scripts/src/components/Heading/Heading.js +5 -4
  45. package/dist/scripts/src/components/Heading/HeadingNative.js +4 -4
  46. package/dist/scripts/src/components/HtmlTags/HtmlTags.js +1 -1
  47. package/dist/scripts/src/components/Link/Link.js +1 -0
  48. package/dist/scripts/src/components/NavLink/NavLink.js +1 -0
  49. package/dist/scripts/src/components/NavPanel/NavPanel.js +12 -4
  50. package/dist/scripts/src/components/NoResult/NoResult.js +1 -0
  51. package/dist/scripts/src/components/Pages/PagesNative.js +1 -1
  52. package/dist/scripts/src/components/Select/SelectNative.js +17 -17
  53. package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +23 -4
  54. package/dist/scripts/src/components/Switch/Switch.js +6 -6
  55. package/dist/scripts/src/components/Table/Table.js +2 -7
  56. package/dist/scripts/src/components/Table/TableNative.js +1 -1
  57. package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +18 -9
  58. package/dist/scripts/src/components/Toggle/Toggle.js +10 -2
  59. package/dist/scripts/src/components/abstractions.js +1 -2
  60. package/dist/scripts/src/components/metadata-helpers.js +22 -9
  61. package/dist/scripts/src/components-core/TableOfContentsContext.js +21 -10
  62. package/dist/scripts/src/components-core/loader/DataLoader.js +7 -3
  63. package/dist/scripts/src/components-core/rendering/valueExtractor.js +5 -2
  64. package/dist/scripts/src/components-core/theming/ThemeProvider.js +4 -1
  65. package/dist/scripts/src/components-core/theming/transformThemeVars.js +55 -59
  66. package/dist/scripts/src/components-core/utils/hooks.js +76 -1
  67. package/dist/scripts/src/components-core/utils/misc.js +3 -0
  68. package/dist/style.css +1 -1
  69. package/dist/xmlui-metadata.mjs +6322 -4934
  70. package/dist/xmlui-metadata.umd.js +17 -17
  71. package/dist/xmlui-standalone.umd.js +186 -186
  72. package/dist/xmlui.d.ts +11 -6
  73. package/dist/xmlui.mjs +1 -1
  74. package/package.json +10 -12
package/dist/xmlui.d.ts CHANGED
@@ -641,6 +641,10 @@ declare type ComponentPropertyMetadata = {
641
641
  * documentation
642
642
  */
643
643
  isInternal?: boolean;
644
+ /**
645
+ * Indicates that a particular property is required for the component to essentially function.
646
+ */
647
+ isRequired?: boolean;
644
648
  };
645
649
 
646
650
  declare interface ComponentRendererContextBase<TMd extends ComponentMetadata = ComponentMetadata> {
@@ -771,7 +775,7 @@ export declare function createComponentRenderer<TMd extends ComponentMetadata>(t
771
775
 
772
776
  export declare function createMetadata<TProps extends Record<string, ComponentPropertyMetadata>, TEvents extends Record<string, ComponentPropertyMetadata>, TContextVars extends Record<string, ComponentPropertyMetadata> = Record<string, any>, TApis extends Record<string, ComponentPropertyMetadata> = Record<string, any>>({ description, shortDescription, specializedFrom, status, props, events, contextVars, apis, nonVisual, opaque, themeVars, defaultThemeVars, toneSpecificThemeVars, allowArbitraryProps, docFolder, isHtmlTag, }: ComponentMetadata<TProps, TEvents, TContextVars, TApis>): ComponentMetadata<TProps, TEvents, TContextVars, TApis>;
773
777
 
774
- export declare function d(description: string, availableValues?: readonly PropertyValueDescription[], valueType?: PropertyValueType, defaultValue?: any, isValid?: IsValidFunction<any>): ComponentPropertyMetadata;
778
+ export declare function d(description: string, availableValues?: readonly PropertyValueDescription[], valueType?: PropertyValueType, defaultValue?: any, isValid?: IsValidFunction<any>, isRequired?: boolean): ComponentPropertyMetadata;
775
779
 
776
780
  declare type DefaultThemeVars = Record<string | ThemeTone_2, string | Record<string, string>>;
777
781
 
@@ -1834,13 +1838,14 @@ declare type ValueExtractor = {
1834
1838
  /**
1835
1839
  * Get an optional string value from an expression
1836
1840
  * @param expression Value expression
1841
+ * @param defValue Default value, if the parameter value is undefined
1837
1842
  */
1838
- asOptionalString(expression?: any): string | undefined;
1843
+ asOptionalString<T extends string>(expression?: any, defValue?: string): T | undefined;
1839
1844
  /**
1840
1845
  * Get an optional string value from an expression
1841
1846
  * @param expression Value expression
1842
1847
  */
1843
- asOptionalStringArray(expression?: any): string[];
1848
+ asOptionalStringArray(expression?: any): (string | undefined)[];
1844
1849
  /**
1845
1850
  * Get a display string value from an expression
1846
1851
  * @param expression Value expression
@@ -1856,7 +1861,7 @@ declare type ValueExtractor = {
1856
1861
  * @param expression Value expression
1857
1862
  * @param defValue Default value, if the parameter value is undefined
1858
1863
  */
1859
- asOptionalNumber(expression?: any, defValue?: number): number;
1864
+ asOptionalNumber(expression?: any, defValue?: number): number | undefined;
1860
1865
  /**
1861
1866
  * Get a boolean value (JavaScript semantics) from an expression
1862
1867
  * @param expression Value expression
@@ -1867,7 +1872,7 @@ declare type ValueExtractor = {
1867
1872
  * @param expression Value expression
1868
1873
  * @param defValue Default value, if the parameter value is undefined
1869
1874
  */
1870
- asOptionalBoolean(expression?: any, defValue?: boolean): boolean;
1875
+ asOptionalBoolean(expression?: any, defValue?: boolean): boolean | undefined;
1871
1876
  /**
1872
1877
  * Get a CSS size value from an expression
1873
1878
  * @param expression Value expression
@@ -1906,7 +1911,7 @@ declare module "@tanstack/table-core" {
1906
1911
  starSizedWidth?: string;
1907
1912
  accessorKey?: string;
1908
1913
  pinTo?: string;
1909
- cellRenderer?: (row: any) => ReactNode;
1914
+ cellRenderer?: (row: any, rowIdx: number, colIdx: number, value?: any) => ReactNode;
1910
1915
  }
1911
1916
  }
1912
1917
 
package/dist/xmlui.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as e, B as t, E as r, I as o, h as p, f as n, S as c, c as d, b as u, e as S, i as l, p as A, s as C, t as m, j as B, u as f } from "./index-Brmiu4kS.mjs";
1
+ import { A as e, B as t, E as r, I as o, h as p, f as n, S as c, c as d, b as u, e as S, i as l, p as A, s as C, t as m, j as B, u as f } from "./index-BMOK5q0U.mjs";
2
2
  export {
3
3
  e as AppRoot,
4
4
  t as Button,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmlui",
3
- "version": "0.7.25",
3
+ "version": "0.7.27",
4
4
  "sideEffects": false,
5
5
  "scripts": {
6
6
  "start-test-bed": "cd src/testing/infrastructure && xmlui start",
@@ -21,17 +21,10 @@
21
21
  "generate-docs": "node scripts/generate-docs/get-docs.mjs"
22
22
  },
23
23
  "dependencies": {
24
- "@azure/msal-browser": "2.30.0",
25
- "@azure/msal-react": "1.4.9",
26
24
  "@eslint-community/regexpp": "4.10.0",
27
25
  "@formkit/auto-animate": "0.7.0",
28
- "@headlessui/react": "1.7.16",
29
26
  "@modyfi/vite-plugin-yaml": "1.1.0",
30
27
  "@monaco-editor/react": "4.4.6",
31
- "@nivo/bar": "0.87.0",
32
- "@nivo/core": "0.87.0",
33
- "@nivo/geo": "0.87.0",
34
- "@nivo/pie": "0.87.0",
35
28
  "@popperjs/core": "2.11.6",
36
29
  "@radix-ui/react-accordion": "^1.2.0",
37
30
  "@radix-ui/react-alert-dialog": "^1.1.2",
@@ -52,14 +45,12 @@
52
45
  "@types/color": "3.0.6",
53
46
  "@vitejs/plugin-react": "4.3.0",
54
47
  "adm-zip": "0.5.10",
55
- "apexcharts": "3.44.0",
56
48
  "axios": "1.7.7",
57
49
  "cmdk": "^1.0.4",
58
50
  "color": "4.2.3",
59
51
  "date-fns": "2.30.0",
60
52
  "dexie": "3.2.4",
61
53
  "dotenv": "16.3.1",
62
- "downshift": "8.2.3",
63
54
  "embla-carousel-autoplay": "^8.3.0",
64
55
  "embla-carousel-react": "^8.3.0",
65
56
  "emoji-picker-react": "4.4.10",
@@ -71,7 +62,6 @@
71
62
  "msw": "2.0.1",
72
63
  "oidc-client-ts": "2.1.0",
73
64
  "react": "18.2.0",
74
- "react-apexcharts": "1.4.1",
75
65
  "react-currency-input-field": "3.6.9",
76
66
  "react-datepicker": "4.25.0",
77
67
  "react-day-picker": "8.10.1",
@@ -83,11 +73,11 @@
83
73
  "react-imask": "7.1.3",
84
74
  "react-markdown": "^9.0.1",
85
75
  "react-measure": "2.5.2",
86
- "react-oidc-context": "2.2.0",
87
76
  "react-popper": "2.3.0",
88
77
  "react-resizable-panels": "2.0.19",
89
78
  "react-router-dom": "6.23.0",
90
79
  "react-select": "5.7.4",
80
+ "react-sticky-el": "^2.1.1",
91
81
  "react-textarea-autosize": "8.5.3",
92
82
  "react-virtualized-auto-sizer": "1.0.24",
93
83
  "react-window": "1.8.10",
@@ -170,6 +160,10 @@
170
160
  "./index.scss": {
171
161
  "import": "./src/index.scss",
172
162
  "require": "./src/index.scss"
163
+ },
164
+ "./vite-ueml-plugin": {
165
+ "import": "./dist/scripts/bin/vite-ueml-plugin.js",
166
+ "require": "./dist/scripts/bin/vite-ueml-plugin.js"
173
167
  }
174
168
  }
175
169
  }
@@ -187,6 +181,10 @@
187
181
  "./index.scss": {
188
182
  "import": "./src/index.scss",
189
183
  "require": "./src/index.scss"
184
+ },
185
+ "./vite-ueml-plugin": {
186
+ "import": "./dist/scripts/bin/vite-ueml-plugin.js",
187
+ "require": "./dist/scripts/bin/vite-ueml-plugin.js"
190
188
  }
191
189
  },
192
190
  "browserslist": {