xmlui 0.7.13 → 0.7.15
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-BuZoKCP8.mjs → apiInterceptorWorker-yKpXImCG.mjs} +1 -1
- package/dist/{index-C8kHu1Bs.mjs → index-XNGGyvQ0.mjs} +9904 -9653
- package/dist/index.css +1 -1
- package/dist/scripts/bin/build.js +17 -7
- package/dist/scripts/bin/vite-ueml-plugin.js +17 -7
- package/dist/scripts/bin/viteConfig.js +17 -7
- package/dist/scripts/package.json +209 -0
- package/dist/scripts/src/abstractions/scripting/ScriptingSourceTreeExp.js +51 -0
- package/dist/scripts/src/components/APICall/APICall.js +74 -0
- package/dist/scripts/src/components/APICall/APICallNative.js +31 -0
- package/dist/scripts/src/components/Accordion/Accordion.js +78 -0
- package/dist/scripts/src/components/Accordion/AccordionContext.js +20 -0
- package/dist/scripts/src/components/Accordion/AccordionItem.js +28 -0
- package/dist/scripts/src/components/Accordion/AccordionItemNative.js +79 -0
- package/dist/scripts/src/components/Accordion/AccordionNative.js +122 -0
- package/dist/scripts/src/components/Alert/Alert.js +42 -0
- package/dist/scripts/src/components/Alert/AlertNative.js +8 -0
- package/dist/scripts/src/components/Animation/Animation.js +59 -0
- package/dist/scripts/src/components/Animation/AnimationNative.js +75 -0
- package/dist/scripts/src/components/App/App.js +76 -0
- package/dist/scripts/src/components/App/AppLayoutContext.js +49 -0
- package/dist/scripts/src/components/App/AppNative.js +204 -0
- package/dist/scripts/src/components/App/AppStateContext.js +9 -0
- package/dist/scripts/src/components/App/Sheet.js +99 -0
- package/dist/scripts/src/components/AppHeader/AppHeader.js +59 -0
- package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +58 -0
- package/dist/scripts/src/components/AppState/AppState.js +26 -0
- package/dist/scripts/src/components/AppState/AppStateNative.js +24 -0
- package/dist/scripts/src/components/AutoComplete/AutoComplete.js +83 -0
- package/dist/scripts/src/components/AutoComplete/AutoCompleteContext.js +16 -0
- package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +225 -0
- package/dist/scripts/src/components/Avatar/Avatar.js +47 -0
- package/dist/scripts/src/components/Avatar/AvatarNative.js +40 -0
- package/dist/scripts/src/components/Backdrop/Backdrop.js +31 -0
- package/dist/scripts/src/components/Backdrop/BackdropNative.js +14 -0
- package/dist/scripts/src/components/Badge/Badge.js +58 -0
- package/dist/scripts/src/components/Badge/BadgeNative.js +22 -0
- package/dist/scripts/src/components/BarChart/BarChart.js +49 -0
- package/dist/scripts/src/components/BarChart/BarChartNative.js +176 -0
- package/dist/scripts/src/components/Bookmark/Bookmark.js +23 -0
- package/dist/scripts/src/components/Bookmark/BookmarkNative.js +24 -0
- package/dist/scripts/src/components/Breakout/Breakout.js +16 -0
- package/dist/scripts/src/components/Breakout/BreakoutNative.js +12 -0
- package/dist/scripts/src/components/Button/Button.js +142 -0
- package/dist/scripts/src/components/Button/ButtonNative.js +88 -0
- package/dist/scripts/src/components/ButtonGroup/ButtonGroup.js +41 -0
- package/dist/scripts/src/components/ButtonGroup/ButtonGroupNative.js +8 -0
- package/dist/scripts/src/components/Card/Card.js +57 -0
- package/dist/scripts/src/components/Card/CardNative.js +26 -0
- package/dist/scripts/src/components/Carousel/Carousel.js +68 -0
- package/dist/scripts/src/components/Carousel/CarouselItem.js +16 -0
- package/dist/scripts/src/components/Carousel/CarouselItemNative.js +13 -0
- package/dist/scripts/src/components/Carousel/CarouselNative.js +163 -0
- package/dist/scripts/src/components/ChangeListener/ChangeListener.js +24 -0
- package/dist/scripts/src/components/ChangeListener/ChangeListenerNative.js +26 -0
- package/dist/scripts/src/components/Chart/Chart.js +24 -0
- package/dist/scripts/src/components/Chart/ChartNative.js +165 -0
- package/dist/scripts/src/components/Checkbox/Checkbox.js +68 -0
- package/dist/scripts/src/components/Column/Column.js +34 -0
- package/dist/scripts/src/components/Column/ColumnNative.js +38 -0
- package/dist/scripts/src/components/Column/TableContext.js +12 -0
- package/dist/scripts/src/components/ComponentProvider.js +503 -0
- package/dist/scripts/src/components/ComponentRegistryContext.js +44 -0
- package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +38 -0
- package/dist/scripts/src/components/ContentSeparator/ContentSeparatorNative.js +16 -0
- package/dist/scripts/src/components/DatePicker/DatePicker.js +62 -0
- package/dist/scripts/src/components/DatePicker/DatePickerNative.js +196 -0
- package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +125 -0
- package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +95 -0
- package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +26 -0
- package/dist/scripts/src/components/EmojiSelector/EmojiSelectorNative.js +52 -0
- package/dist/scripts/src/components/FileInput/FileInput.js +64 -0
- package/dist/scripts/src/components/FileInput/FileInputNative.js +128 -0
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +46 -0
- package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +112 -0
- package/dist/scripts/src/components/FlowLayout/FlowLayout.js +53 -0
- package/dist/scripts/src/components/FlowLayout/FlowLayoutNative.js +108 -0
- package/dist/scripts/src/components/Footer/Footer.js +35 -0
- package/dist/scripts/src/components/Footer/FooterNative.js +20 -0
- package/dist/scripts/src/components/Form/Form.js +89 -0
- package/dist/scripts/src/components/Form/FormContext.js +9 -0
- package/dist/scripts/src/components/Form/FormNative.js +317 -0
- package/dist/scripts/src/components/Form/formActions.js +114 -0
- package/dist/scripts/src/components/FormItem/FormItem.js +125 -0
- package/dist/scripts/src/components/FormItem/FormItemNative.js +157 -0
- package/dist/scripts/src/components/FormItem/HelperText.js +27 -0
- package/dist/scripts/src/components/FormItem/ItemWithLabel.js +40 -0
- package/dist/scripts/src/components/FormItem/Validations.js +351 -0
- package/dist/scripts/src/components/FormSection/FormSection.js +41 -0
- package/dist/scripts/src/components/Heading/Heading.js +258 -0
- package/dist/scripts/src/components/Heading/HeadingNative.js +45 -0
- package/dist/scripts/src/components/HoverCard/HoverCard.js +19 -0
- package/dist/scripts/src/components/HoverCard/HovercardNative.js +44 -0
- package/dist/scripts/src/components/Icon/ApiIcon.js +10 -0
- package/dist/scripts/src/components/Icon/Attach.js +10 -0
- package/dist/scripts/src/components/Icon/Binding.js +11 -0
- package/dist/scripts/src/components/Icon/BoardIcon.js +7 -0
- package/dist/scripts/src/components/Icon/BoxIcon.js +10 -0
- package/dist/scripts/src/components/Icon/CheckIcon.js +7 -0
- package/dist/scripts/src/components/Icon/ChevronLeft.js +7 -0
- package/dist/scripts/src/components/Icon/ChevronRight.js +7 -0
- package/dist/scripts/src/components/Icon/CodeFileIcon.js +10 -0
- package/dist/scripts/src/components/Icon/CodeSandbox.js +10 -0
- package/dist/scripts/src/components/Icon/CompactListIcon.js +7 -0
- package/dist/scripts/src/components/Icon/ContentCopyIcon.js +7 -0
- package/dist/scripts/src/components/Icon/DatabaseIcon.js +11 -0
- package/dist/scripts/src/components/Icon/DocFileIcon.js +10 -0
- package/dist/scripts/src/components/Icon/DocIcon.js +10 -0
- package/dist/scripts/src/components/Icon/DotMenuHorizontalIcon.js +7 -0
- package/dist/scripts/src/components/Icon/DotMenuIcon.js +7 -0
- package/dist/scripts/src/components/Icon/EmailIcon.js +7 -0
- package/dist/scripts/src/components/Icon/EmptyFolderIcon.js +10 -0
- package/dist/scripts/src/components/Icon/ErrorIcon.js +7 -0
- package/dist/scripts/src/components/Icon/ExpressionIcon.js +10 -0
- package/dist/scripts/src/components/Icon/FillPlusCricleIcon.js +7 -0
- package/dist/scripts/src/components/Icon/FilterIcon.js +10 -0
- package/dist/scripts/src/components/Icon/FolderIcon.js +10 -0
- package/dist/scripts/src/components/Icon/GlobeIcon.js +7 -0
- package/dist/scripts/src/components/Icon/HomeIcon.js +7 -0
- package/dist/scripts/src/components/Icon/HyperLinkIcon.js +7 -0
- package/dist/scripts/src/components/Icon/Icon.js +32 -0
- package/dist/scripts/src/components/Icon/IconNative.js +102 -0
- package/dist/scripts/src/components/Icon/ImageFileIcon.js +10 -0
- package/dist/scripts/src/components/Icon/LinkIcon.js +7 -0
- package/dist/scripts/src/components/Icon/ListIcon.js +7 -0
- package/dist/scripts/src/components/Icon/LooseListIcon.js +7 -0
- package/dist/scripts/src/components/Icon/MoonIcon.js +10 -0
- package/dist/scripts/src/components/Icon/MoreOptionsIcon.js +7 -0
- package/dist/scripts/src/components/Icon/NoSortIcon.js +8 -0
- package/dist/scripts/src/components/Icon/PDFIcon.js +10 -0
- package/dist/scripts/src/components/Icon/PenIcon.js +7 -0
- package/dist/scripts/src/components/Icon/PhoneIcon.js +7 -0
- package/dist/scripts/src/components/Icon/PhotoIcon.js +10 -0
- package/dist/scripts/src/components/Icon/PlusIcon.js +7 -0
- package/dist/scripts/src/components/Icon/SearchIcon.js +7 -0
- package/dist/scripts/src/components/Icon/ShareIcon.js +10 -0
- package/dist/scripts/src/components/Icon/SortAscendingIcon.js +8 -0
- package/dist/scripts/src/components/Icon/SortDescendingIcon.js +8 -0
- package/dist/scripts/src/components/Icon/SunIcon.js +10 -0
- package/dist/scripts/src/components/Icon/TrashIcon.js +7 -0
- package/dist/scripts/src/components/Icon/TrendingDownIcon.js +10 -0
- package/dist/scripts/src/components/Icon/TrendingLevelIcon.js +10 -0
- package/dist/scripts/src/components/Icon/TrendingUpIcon.js +10 -0
- package/dist/scripts/src/components/Icon/TxtIcon.js +10 -0
- package/dist/scripts/src/components/Icon/UnknownFileIcon.js +10 -0
- package/dist/scripts/src/components/Icon/UnlinkIcon.js +10 -0
- package/dist/scripts/src/components/Icon/UserIcon.js +7 -0
- package/dist/scripts/src/components/Icon/WarningIcon.js +7 -0
- package/dist/scripts/src/components/Icon/XlsIcon.js +10 -0
- package/dist/scripts/src/components/IconInfoCard/IconInfoCard.js +39 -0
- package/dist/scripts/src/components/IconProvider.js +264 -0
- package/dist/scripts/src/components/IconRegistryContext.js +317 -0
- package/dist/scripts/src/components/Image/Image.js +35 -0
- package/dist/scripts/src/components/Image/ImageNative.js +15 -0
- package/dist/scripts/src/components/Input/InputAdornment.js +14 -0
- package/dist/scripts/src/components/Items/Items.js +33 -0
- package/dist/scripts/src/components/Items/ItemsNative.js +29 -0
- package/dist/scripts/src/components/Link/Link.js +64 -0
- package/dist/scripts/src/components/Link/LinkNative.js +26 -0
- package/dist/scripts/src/components/List/List.js +81 -0
- package/dist/scripts/src/components/List/ListNative.js +425 -0
- package/dist/scripts/src/components/Logo/Logo.js +16 -0
- package/dist/scripts/src/components/Logo/LogoNative.js +15 -0
- package/dist/scripts/src/components/Map/Map.js +75 -0
- package/dist/scripts/src/components/Map/world_countries.json +45307 -0
- package/dist/scripts/src/components/Markdown/Markdown.js +45 -0
- package/dist/scripts/src/components/Markdown/MarkdownNative.js +107 -0
- package/dist/scripts/src/components/ModalDialog/ConfirmationModalContextProvider.js +116 -0
- package/dist/scripts/src/components/ModalDialog/Dialog.js +20 -0
- package/dist/scripts/src/components/ModalDialog/ModalDialog.js +64 -0
- package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +167 -0
- package/dist/scripts/src/components/ModalDialog/ModalVisibilityContext.js +60 -0
- package/dist/scripts/src/components/NavGroup/NavGroup.js +34 -0
- package/dist/scripts/src/components/NavGroup/NavGroupNative.js +91 -0
- package/dist/scripts/src/components/NavLink/NavLink.js +71 -0
- package/dist/scripts/src/components/NavLink/NavLinkNative.js +61 -0
- package/dist/scripts/src/components/NavPanel/NavPanel.js +31 -0
- package/dist/scripts/src/components/NavPanel/NavPanelNative.js +74 -0
- package/dist/scripts/src/components/NoResult/NoResult.js +38 -0
- package/dist/scripts/src/components/NoResult/NoResultNative.js +13 -0
- package/dist/scripts/src/components/NumberBox/NumberBox.js +61 -0
- package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +337 -0
- package/dist/scripts/src/components/NumberBox/numberbox-abstractions.js +74 -0
- package/dist/scripts/src/components/OffCanvas/OffCanvas.js +57 -0
- package/dist/scripts/src/components/OffCanvas/OffCanvasNative.js +48 -0
- package/dist/scripts/src/components/Option/Option.js +33 -0
- package/dist/scripts/src/components/Option/OptionTypeProvider.js +16 -0
- package/dist/scripts/src/components/PageHeader/PageHeader.js +36 -0
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTilteNative.js +9 -0
- package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +18 -0
- package/dist/scripts/src/components/Pages/Pages.js +33 -0
- package/dist/scripts/src/components/Pages/PagesNative.js +69 -0
- package/dist/scripts/src/components/PieChart/PieChart.js +45 -0
- package/dist/scripts/src/components/PieChart/PieChartNative.js +165 -0
- package/dist/scripts/src/components/PositionedContainer/PositionedContainer.js +24 -0
- package/dist/scripts/src/components/PositionedContainer/PositionedContainerNative.js +14 -0
- package/dist/scripts/src/components/ProgressBar/ProgressBar.js +36 -0
- package/dist/scripts/src/components/ProgressBar/ProgressBarNative.js +12 -0
- package/dist/scripts/src/components/Queue/Queue.js +71 -0
- package/dist/scripts/src/components/Queue/QueueNative.js +278 -0
- package/dist/scripts/src/components/Queue/queueActions.js +87 -0
- package/dist/scripts/src/components/RadioGroup/RadioGroup.js +68 -0
- package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +104 -0
- package/dist/scripts/src/components/Range/Range.js +56 -0
- package/dist/scripts/src/components/Range/RangeNative.js +8 -0
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +21 -0
- package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapterNative.js +131 -0
- package/dist/scripts/src/components/Redirect/Redirect.js +20 -0
- package/dist/scripts/src/components/Select/OptionContext.js +12 -0
- package/dist/scripts/src/components/Select/Select.js +98 -0
- package/dist/scripts/src/components/Select/SelectContext.js +9 -0
- package/dist/scripts/src/components/Select/SelectNative.js +214 -0
- package/dist/scripts/src/components/SelectionStore/SelectionStore.js +22 -0
- package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +94 -0
- package/dist/scripts/src/components/Slider/Slider.js +54 -0
- package/dist/scripts/src/components/Slider/SliderNative.js +8 -0
- package/dist/scripts/src/components/SpaceFiller/SpaceFiller.js +19 -0
- package/dist/scripts/src/components/SpaceFiller/SpaceFillerNative.js +10 -0
- package/dist/scripts/src/components/Spinner/Spinner.js +42 -0
- package/dist/scripts/src/components/Spinner/SpinnerNative.js +31 -0
- package/dist/scripts/src/components/Splitter/Splitter.js +89 -0
- package/dist/scripts/src/components/Splitter/SplitterNative.js +159 -0
- package/dist/scripts/src/components/Splitter/utils.js +17 -0
- package/dist/scripts/src/components/Stack/Stack.js +110 -0
- package/dist/scripts/src/components/Stack/StackNative.js +39 -0
- package/dist/scripts/src/components/StateViewer/StateViewerNative.js +19 -0
- package/dist/scripts/src/components/StickyBox/StickyBox.js +30 -0
- package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +15 -0
- package/dist/scripts/src/components/Switch/Switch.js +72 -0
- package/dist/scripts/src/components/Table/Table.js +184 -0
- package/dist/scripts/src/components/Table/TableNative.js +470 -0
- package/dist/scripts/src/components/Table/useRowSelection.js +245 -0
- package/dist/scripts/src/components/TableHeader/TableHeader.js +34 -0
- package/dist/scripts/src/components/TableOfContents/TableOfContents.js +74 -0
- package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +55 -0
- package/dist/scripts/src/components/Tabs/TabContext.js +45 -0
- package/dist/scripts/src/components/Tabs/TabItem.js +20 -0
- package/dist/scripts/src/components/Tabs/TabItemNative.js +24 -0
- package/dist/scripts/src/components/Tabs/Tabs.js +55 -0
- package/dist/scripts/src/components/Tabs/TabsNative.js +72 -0
- package/dist/scripts/src/components/Text/Text.js +122 -0
- package/dist/scripts/src/components/Text/TextNative.js +124 -0
- package/dist/scripts/src/components/TextArea/TextArea.js +65 -0
- package/dist/scripts/src/components/TextArea/TextAreaNative.js +176 -0
- package/dist/scripts/src/components/TextArea/TextAreaResizable.js +73 -0
- package/dist/scripts/src/components/TextArea/useComposedRef.js +60 -0
- package/dist/scripts/src/components/TextBox/TextBox.js +85 -0
- package/dist/scripts/src/components/TextBox/TextBoxNative.js +109 -0
- package/dist/scripts/src/components/Theme/NotificationToast.js +50 -0
- package/dist/scripts/src/components/Theme/Theme.js +43 -0
- package/dist/scripts/src/components/Theme/ThemeNative.js +126 -0
- package/dist/scripts/src/components/ThemeChanger/ThemeChanger.js +115 -0
- package/dist/scripts/src/components/ThemeChanger/ToneChangerButton.js +28 -0
- package/dist/scripts/src/components/Toggle/Toggle.js +99 -0
- package/dist/scripts/src/components/Toolbar/Toolbar.js +32 -0
- package/dist/scripts/src/components/ToolbarButton/ToolbarButton.js +38 -0
- package/dist/scripts/src/components/Tree/TreeComponent.js +32 -0
- package/dist/scripts/src/components/Tree/TreeNative.js +69 -0
- package/dist/scripts/src/components/TrendLabel/TrendLabel.js +37 -0
- package/dist/scripts/src/components/ValidationSummary/ValidationSummary.js +59 -0
- package/dist/scripts/src/components/abstractions.js +151 -0
- package/dist/scripts/src/components/chart-color-schemes.js +43 -0
- package/dist/scripts/src/components/component-utils.js +17 -0
- package/dist/scripts/src/components/container-helpers.js +25 -0
- package/dist/scripts/src/components/metadata-helpers.js +245 -0
- package/dist/scripts/src/components/slot-helpers.js +22 -0
- package/dist/scripts/src/components-core/ApiBoundComponent.js +194 -0
- package/dist/scripts/src/components-core/AppContext.js +16 -0
- package/dist/scripts/src/components-core/AppRoot.js +424 -0
- package/dist/scripts/src/components-core/ComponentBed.js +325 -0
- package/dist/scripts/src/components-core/ComponentDecorator.js +90 -0
- package/dist/scripts/src/components-core/CompoundComponent.js +144 -0
- package/dist/scripts/src/components-core/DebugViewProvider.js +43 -0
- package/dist/scripts/src/components-core/EngineError.js +91 -0
- package/dist/scripts/src/components-core/ErrorBoundary.js +59 -0
- package/dist/scripts/src/components-core/Fragment.js +15 -0
- package/dist/scripts/src/components-core/InspectorContext.js +176 -0
- package/dist/scripts/src/components-core/InvalidComponent.js +17 -0
- package/dist/scripts/src/components-core/LoaderComponent.js +92 -0
- package/dist/scripts/src/components-core/RestApiProxy.js +354 -0
- package/dist/scripts/src/components-core/ScrollContext.js +11 -0
- package/dist/scripts/src/components-core/Slot.js +17 -0
- package/dist/scripts/src/components-core/StandaloneApp.js +589 -0
- package/dist/scripts/src/components-core/StandaloneComponentManager.js +51 -0
- package/dist/scripts/src/components-core/TableOfContentsContext.js +110 -0
- package/dist/scripts/src/components-core/UnknownComponent.js +15 -0
- package/dist/scripts/src/components-core/XmluiCodeHighlighter.js +110 -0
- package/dist/scripts/src/components-core/abstractions/ComponentRenderer.js +2 -0
- package/dist/scripts/src/components-core/abstractions/LoaderRenderer.js +2 -0
- package/dist/scripts/src/components-core/abstractions/containers.js +18 -0
- package/dist/scripts/src/components-core/abstractions/standalone.js +2 -0
- package/dist/scripts/src/components-core/abstractions/treeAbstractions.js +2 -0
- package/dist/scripts/src/components-core/action/APICall.js +283 -0
- package/dist/scripts/src/components-core/action/FileDownloadAction.js +80 -0
- package/dist/scripts/src/components-core/action/FileUploadAction.js +88 -0
- package/dist/scripts/src/components-core/action/NavigateAction.js +20 -0
- package/dist/scripts/src/components-core/action/TimedAction.js +21 -0
- package/dist/scripts/src/components-core/action/actions.js +15 -0
- package/dist/scripts/src/components-core/appContext/date-functions.js +19 -0
- package/dist/scripts/src/components-core/appContext/math-function.js +27 -0
- package/dist/scripts/src/components-core/appContext/misc-utils.js +12 -0
- package/dist/scripts/src/components-core/component-hooks.js +25 -0
- package/dist/scripts/src/components-core/constants.js +18 -0
- package/dist/scripts/src/components-core/container/Container.js +1241 -0
- package/dist/scripts/src/components-core/container/buildProxy.js +54 -0
- package/dist/scripts/src/components-core/container/collectFnVarDeps.js +49 -0
- package/dist/scripts/src/components-core/container/valueExtractor.js +205 -0
- package/dist/scripts/src/components-core/descriptorHelper.js +72 -0
- package/dist/scripts/src/components-core/interception/ApiInterceptor.js +198 -0
- package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +94 -0
- package/dist/scripts/src/components-core/interception/Backend.js +129 -0
- package/dist/scripts/src/components-core/interception/Errors.js +129 -0
- package/dist/scripts/src/components-core/interception/InMemoryDb.js +41 -0
- package/dist/scripts/src/components-core/interception/IndexedDb.js +205 -0
- package/dist/scripts/src/components-core/interception/ReadonlyCollection.js +145 -0
- package/dist/scripts/src/components-core/interception/abstractions.js +2 -0
- package/dist/scripts/src/components-core/interception/apiInterceptorWorker.js +46 -0
- package/dist/scripts/src/components-core/interception/useApiInterceptorContext.js +9 -0
- package/dist/scripts/src/components-core/loader/ApiLoader.js +54 -0
- package/dist/scripts/src/components-core/loader/DataLoader.js +149 -0
- package/dist/scripts/src/components-core/loader/ExternalDataLoader.js +62 -0
- package/dist/scripts/src/components-core/loader/Loader.js +126 -0
- package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +40 -0
- package/dist/scripts/src/components-core/loader/PageableLoader.js +262 -0
- package/dist/scripts/src/components-core/markup-check.js +279 -0
- package/dist/scripts/src/components-core/renderers.js +45 -0
- package/dist/scripts/src/components-core/reportEngineError.js +62 -0
- package/dist/scripts/src/components-core/script-runner/BindingTreeEvaluationContext.js +35 -0
- package/dist/scripts/src/components-core/script-runner/ICustomOperations.js +34 -0
- package/dist/scripts/src/components-core/script-runner/ParameterParser.js +117 -0
- package/dist/scripts/src/components-core/script-runner/asyncProxy.js +149 -0
- package/dist/scripts/src/components-core/script-runner/bannedFunctions.js +34 -0
- package/dist/scripts/src/components-core/script-runner/custom-operations-registry.js +40 -0
- package/dist/scripts/src/components-core/script-runner/custom-ui-data.js +40 -0
- package/dist/scripts/src/components-core/script-runner/eval-tree-async.js +593 -0
- package/dist/scripts/src/components-core/script-runner/eval-tree-common.js +497 -0
- package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +482 -0
- package/dist/scripts/src/components-core/script-runner/process-statement-async.js +766 -0
- package/dist/scripts/src/components-core/script-runner/process-statement-common.js +193 -0
- package/dist/scripts/src/components-core/script-runner/process-statement-sync.js +752 -0
- package/dist/scripts/src/components-core/script-runner/statement-queue.js +62 -0
- package/dist/scripts/src/components-core/script-runner/syncProxy.js +31 -0
- package/dist/scripts/src/components-core/script-runner/visitors.js +361 -0
- package/dist/scripts/src/components-core/theming/ThemeContext.js +53 -0
- package/dist/scripts/src/components-core/theming/ThemeProvider.js +335 -0
- package/dist/scripts/src/components-core/theming/abstractions.js +11 -0
- package/dist/scripts/src/components-core/theming/extendThemeUtils.js +114 -0
- package/dist/scripts/src/components-core/theming/hvar.js +105 -0
- package/dist/scripts/src/components-core/theming/themeVars.js +62 -0
- package/dist/scripts/src/components-core/theming/themes/base-utils.js +31 -0
- package/dist/scripts/src/components-core/theming/themes/palette.js +55 -0
- package/dist/scripts/src/components-core/theming/themes/root.js +287 -0
- package/dist/scripts/src/components-core/theming/themes/solid.js +16 -0
- package/dist/scripts/src/components-core/theming/themes/theme-colors.js +561 -0
- package/dist/scripts/src/components-core/theming/themes/xmlui.js +58 -0
- package/dist/scripts/src/components-core/theming/transformThemeVars.js +300 -0
- package/dist/scripts/src/components-core/utils/DataLoaderQueryKeyGenerator.js +35 -0
- package/dist/scripts/src/components-core/utils/LruCache.js +184 -0
- package/dist/scripts/src/components-core/utils/actionUtils.js +32 -0
- package/dist/scripts/src/components-core/utils/classnames.js +58 -0
- package/dist/scripts/src/components-core/utils/compound-utils.js +11 -0
- package/dist/scripts/src/components-core/utils/css-utils.js +163 -0
- package/dist/scripts/src/components-core/utils/date-utils.js +78 -0
- package/dist/scripts/src/components-core/utils/extractParam.js +148 -0
- package/dist/scripts/src/components-core/utils/hooks.js +249 -0
- package/dist/scripts/src/components-core/utils/mergeProps.js +45 -0
- package/dist/scripts/src/components-core/utils/misc.js +472 -0
- package/dist/scripts/src/components-core/utils/request-params.js +70 -0
- package/dist/scripts/src/components-core/utils/statementUtils.js +221 -0
- package/dist/scripts/src/components-core/utils/treeUtils.js +48 -0
- package/dist/scripts/src/index.js +69 -0
- package/dist/scripts/src/parsers/common/GenericToken.js +2 -0
- package/dist/scripts/src/parsers/scripting-exp/TokenType.js +112 -0
- package/dist/scripts/src/parsers/style-parser/StyleInputStream.js +39 -0
- package/dist/scripts/src/parsers/style-parser/StyleLexer.js +623 -0
- package/dist/scripts/src/parsers/style-parser/StyleParser.js +1036 -0
- package/dist/scripts/src/parsers/style-parser/errors.js +37 -0
- package/dist/scripts/src/parsers/style-parser/source-tree.js +2 -0
- package/dist/scripts/src/parsers/style-parser/style-compiler.js +558 -0
- package/dist/scripts/src/parsers/style-parser/tokens.js +43 -0
- package/dist/scripts/src/parsers/xmlui-parser/ParserError.js +7 -0
- package/dist/scripts/src/parsers/xmlui-parser/transform.js +80 -32
- package/dist/scripts/src/syntax/grammar.tmLanguage.json +328 -0
- package/dist/scripts/src/syntax/textMate/xmlui.json +630 -0
- package/dist/style.css +1 -1
- package/dist/xmlui-metadata.mjs +2676 -2608
- package/dist/xmlui-metadata.umd.js +16 -16
- package/dist/xmlui-standalone.umd.js +186 -186
- package/dist/xmlui.d.ts +1868 -13
- package/dist/xmlui.mjs +1 -1
- package/package.json +5 -5
- package/dist/xmlui.umd.js +0 -293
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AccordionItemComponent = void 0;
|
|
40
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
41
|
+
const react_1 = require("react");
|
|
42
|
+
const AccordionContext_1 = require("@components/Accordion/AccordionContext");
|
|
43
|
+
const Accordion_module_scss_1 = __importDefault(require("@components/Accordion/Accordion.module.scss"));
|
|
44
|
+
const IconNative_1 = __importDefault(require("@components/Icon/IconNative"));
|
|
45
|
+
const RAccordion = __importStar(require("@radix-ui/react-accordion"));
|
|
46
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
47
|
+
function defaultRenderer(header) {
|
|
48
|
+
return (0, jsx_runtime_1.jsx)("div", { children: header });
|
|
49
|
+
}
|
|
50
|
+
exports.AccordionItemComponent = (0, react_1.forwardRef)(function AccordionItemComponent({ id, header, headerRenderer = defaultRenderer, content, initiallyExpanded, style }, forwardedRef) {
|
|
51
|
+
const generatedId = (0, react_1.useId)();
|
|
52
|
+
const itemId = (0, react_1.useMemo)(() => (id ? `${id}` : generatedId), [id, generatedId]);
|
|
53
|
+
const triggerId = (0, react_1.useMemo)(() => `trigger_${itemId}`, [itemId]);
|
|
54
|
+
const { rotateExpanded, expandedItems, hideIcon, expandedIcon, collapsedIcon, triggerPosition, expandItem, register, unRegister, } = (0, AccordionContext_1.useAccordionContext)();
|
|
55
|
+
const expanded = (0, react_1.useMemo)(() => expandedItems.includes(itemId), [itemId, expandedItems]);
|
|
56
|
+
const [initialised, setInitialised] = (0, react_1.useState)(false);
|
|
57
|
+
(0, react_1.useEffect)(() => {
|
|
58
|
+
if (!initialised) {
|
|
59
|
+
setInitialised(true);
|
|
60
|
+
if (initiallyExpanded) {
|
|
61
|
+
expandItem(itemId);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}, [expandItem, itemId, initiallyExpanded, initialised]);
|
|
65
|
+
(0, react_1.useEffect)(() => {
|
|
66
|
+
register(triggerId);
|
|
67
|
+
}, [register, triggerId]);
|
|
68
|
+
(0, react_1.useEffect)(() => {
|
|
69
|
+
return () => {
|
|
70
|
+
unRegister(triggerId);
|
|
71
|
+
};
|
|
72
|
+
}, [triggerId, unRegister]);
|
|
73
|
+
return ((0, jsx_runtime_1.jsxs)(RAccordion.Item, { value: itemId, className: Accordion_module_scss_1.default.item, ref: forwardedRef, style: style, children: [(0, jsx_runtime_1.jsx)(RAccordion.Header, { className: Accordion_module_scss_1.default.header, children: (0, jsx_runtime_1.jsxs)(RAccordion.Trigger, { id: `trigger_${itemId}`, className: (0, classnames_1.default)(Accordion_module_scss_1.default.trigger, {
|
|
74
|
+
[Accordion_module_scss_1.default.triggerStart]: triggerPosition === "start",
|
|
75
|
+
}), children: [headerRenderer(header), !hideIcon && ((0, jsx_runtime_1.jsx)("span", { style: {
|
|
76
|
+
transform: expanded && !expandedIcon ? `rotate(${rotateExpanded})` : "rotate(0deg)",
|
|
77
|
+
transition: "transform 300ms cubic-bezier(0.87, 0, 0.13, 1)",
|
|
78
|
+
}, children: (0, jsx_runtime_1.jsx)(IconNative_1.default, { name: !expanded ? collapsedIcon : expandedIcon || collapsedIcon, className: Accordion_module_scss_1.default.chevron }) }))] }) }), (0, jsx_runtime_1.jsx)(RAccordion.Content, { className: Accordion_module_scss_1.default.contentWrapper, children: (0, jsx_runtime_1.jsx)("div", { className: Accordion_module_scss_1.default.content, children: content }) })] }, itemId));
|
|
79
|
+
});
|
|
@@ -0,0 +1,122 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AccordionComponent = void 0;
|
|
40
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
41
|
+
const RAccordion = __importStar(require("@radix-ui/react-accordion"));
|
|
42
|
+
const AccordionContext_1 = require("@components/Accordion/AccordionContext");
|
|
43
|
+
const Accordion_module_scss_1 = __importDefault(require("./Accordion.module.scss"));
|
|
44
|
+
const react_1 = require("react");
|
|
45
|
+
const constants_1 = require("@components-core/constants");
|
|
46
|
+
exports.AccordionComponent = (0, react_1.forwardRef)(function AccordionComponent({ style, children, hideIcon = false, expandedIcon, collapsedIcon = "chevrondown", triggerPosition = "end", onDisplayDidChange = constants_1.noop, registerComponentApi, rotateExpanded = "180deg", }, forwardedRef) {
|
|
47
|
+
const [expandedItems, setExpandedItems] = (0, react_1.useState)([]);
|
|
48
|
+
const [itemElements, setItemElements] = (0, react_1.useState)(new Set());
|
|
49
|
+
const collapseItem = (0, react_1.useCallback)((id) => {
|
|
50
|
+
setExpandedItems((prev) => prev.filter((item) => item !== `${id}`));
|
|
51
|
+
}, [setExpandedItems]);
|
|
52
|
+
const expandItem = (0, react_1.useCallback)((id) => {
|
|
53
|
+
if (!expandedItems.includes(`${id}`)) {
|
|
54
|
+
setExpandedItems((prev) => [...prev, `${id}`]);
|
|
55
|
+
}
|
|
56
|
+
}, [setExpandedItems, expandedItems]);
|
|
57
|
+
const toggleItem = (0, react_1.useCallback)((id) => {
|
|
58
|
+
if (expandedItems.includes(`${id}`)) {
|
|
59
|
+
collapseItem(id);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
expandItem(id);
|
|
63
|
+
}
|
|
64
|
+
}, [setExpandedItems, expandedItems]);
|
|
65
|
+
const register = (0, react_1.useCallback)((id) => {
|
|
66
|
+
setItemElements((prev) => {
|
|
67
|
+
prev.add(id);
|
|
68
|
+
return prev;
|
|
69
|
+
});
|
|
70
|
+
}, [setItemElements]);
|
|
71
|
+
const unRegister = (0, react_1.useCallback)((id) => {
|
|
72
|
+
setItemElements((prev) => {
|
|
73
|
+
prev.delete(id);
|
|
74
|
+
return prev;
|
|
75
|
+
});
|
|
76
|
+
}, [setItemElements]);
|
|
77
|
+
const focusItem = (0, react_1.useCallback)((id) => {
|
|
78
|
+
if (itemElements.has(`trigger_${id}`)) {
|
|
79
|
+
const trigger = document.getElementById(`trigger_${id}`);
|
|
80
|
+
if (trigger) {
|
|
81
|
+
trigger.focus();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}, [itemElements]);
|
|
85
|
+
const isExpanded = (0, react_1.useCallback)((id) => {
|
|
86
|
+
return expandedItems.includes(`${id}`);
|
|
87
|
+
}, [expandedItems]);
|
|
88
|
+
(0, react_1.useEffect)(() => {
|
|
89
|
+
registerComponentApi === null || registerComponentApi === void 0 ? void 0 : registerComponentApi({
|
|
90
|
+
expanded: isExpanded,
|
|
91
|
+
expand: expandItem,
|
|
92
|
+
collapse: collapseItem,
|
|
93
|
+
toggle: toggleItem,
|
|
94
|
+
focus: focusItem,
|
|
95
|
+
});
|
|
96
|
+
}, [registerComponentApi, expandItem, collapseItem, toggleItem, focusItem, isExpanded]);
|
|
97
|
+
const contextValue = (0, react_1.useMemo)(() => ({
|
|
98
|
+
register,
|
|
99
|
+
unRegister,
|
|
100
|
+
expandItem,
|
|
101
|
+
expandedItems,
|
|
102
|
+
hideIcon,
|
|
103
|
+
expandedIcon,
|
|
104
|
+
collapsedIcon,
|
|
105
|
+
triggerPosition,
|
|
106
|
+
rotateExpanded,
|
|
107
|
+
}), [
|
|
108
|
+
register,
|
|
109
|
+
unRegister,
|
|
110
|
+
expandedItems,
|
|
111
|
+
hideIcon,
|
|
112
|
+
expandedIcon,
|
|
113
|
+
collapsedIcon,
|
|
114
|
+
triggerPosition,
|
|
115
|
+
expandItem,
|
|
116
|
+
rotateExpanded,
|
|
117
|
+
]);
|
|
118
|
+
(0, react_1.useEffect)(() => {
|
|
119
|
+
onDisplayDidChange === null || onDisplayDidChange === void 0 ? void 0 : onDisplayDidChange(expandedItems);
|
|
120
|
+
}, [expandedItems, onDisplayDidChange]);
|
|
121
|
+
return ((0, jsx_runtime_1.jsx)(AccordionContext_1.AccordionContext.Provider, { value: contextValue, children: (0, jsx_runtime_1.jsx)(RAccordion.Root, { style: style, ref: forwardedRef, value: expandedItems, type: "multiple", className: Accordion_module_scss_1.default.root, onValueChange: (value) => setExpandedItems(value), children: children }) }));
|
|
122
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.alertComponentRenderer = exports.AlertMd = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const ComponentDefs_1 = require("@abstractions/ComponentDefs");
|
|
9
|
+
const Alert_module_scss_1 = __importDefault(require("./Alert.module.scss"));
|
|
10
|
+
const renderers_1 = require("@components-core/renderers");
|
|
11
|
+
const themeVars_1 = require("@components-core/theming/themeVars");
|
|
12
|
+
const AlertNative_1 = require("./AlertNative");
|
|
13
|
+
const abstractions_1 = require("@components/abstractions");
|
|
14
|
+
const COMP = "Alert";
|
|
15
|
+
// See reference implementation here: https://getbootstrap.com/docs/5.3/components/alerts/
|
|
16
|
+
exports.AlertMd = (0, ComponentDefs_1.createMetadata)({
|
|
17
|
+
status: "in progress",
|
|
18
|
+
description: `(**NOT IMPLEMENTED YET**) The \`${COMP}\` component is a panel used to display important ` +
|
|
19
|
+
`notifications or feedback to users. It helps convey different statuses or levels of urgency, ` +
|
|
20
|
+
`such as success, warning, error, and others.`,
|
|
21
|
+
props: {
|
|
22
|
+
statusColor: (0, ComponentDefs_1.d)(`The value of this optional property sets the string to provide a color scheme for the ${COMP}.`, abstractions_1.statusColorMd, "string", "primary"),
|
|
23
|
+
dismissable: (0, ComponentDefs_1.d)(`This property's \`true\` value indicates if this alert is dismissable by the user. When the ` +
|
|
24
|
+
`user closes the ${COMP}, it gets hidden.`),
|
|
25
|
+
autoDismissInMs: (0, ComponentDefs_1.d)("Timeout for the alert to be dismissed"),
|
|
26
|
+
showIcon: (0, ComponentDefs_1.d)("Indicates if the alert should display an icon"),
|
|
27
|
+
icon: (0, ComponentDefs_1.d)("Icon to be displayed in the alert"),
|
|
28
|
+
},
|
|
29
|
+
events: {},
|
|
30
|
+
apis: {
|
|
31
|
+
dismiss: (0, ComponentDefs_1.d)(`This method dismisses the ${COMP}. It triggers the \`didDismiss\` event with the argument set ` +
|
|
32
|
+
`to \`false\`.`),
|
|
33
|
+
},
|
|
34
|
+
themeVars: (0, themeVars_1.parseScssVar)(Alert_module_scss_1.default.themeVars),
|
|
35
|
+
defaultThemeVars: {
|
|
36
|
+
light: {},
|
|
37
|
+
dark: {},
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
exports.alertComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.AlertMd, ({ layoutCss }) => {
|
|
41
|
+
return (0, jsx_runtime_1.jsx)(AlertNative_1.Alert, {});
|
|
42
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Alert = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
exports.Alert = (0, react_1.forwardRef)(function Alert({ style }, forwardedRef) {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: forwardedRef, style: Object.assign({ backgroundColor: "orange", color: "white", padding: 2 }, style), children: "Alert component is not implemented yet" }));
|
|
8
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.slideInAnimationRenderer = exports.fadeInAnimationRenderer = exports.animationComponentRenderer = exports.SlideInAnimationMd = exports.FadeInAnimationMd = exports.AnimationMd = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const ComponentDefs_1 = require("@abstractions/ComponentDefs");
|
|
6
|
+
const renderers_1 = require("@components-core/renderers");
|
|
7
|
+
const AnimationNative_1 = require("@components/Animation/AnimationNative");
|
|
8
|
+
const COMP = "Animation";
|
|
9
|
+
exports.AnimationMd = (0, ComponentDefs_1.createMetadata)({
|
|
10
|
+
status: "in progress",
|
|
11
|
+
description: ``,
|
|
12
|
+
props: {
|
|
13
|
+
animation: (0, ComponentDefs_1.d)(`The animation object to be applied to the component`),
|
|
14
|
+
animateWhenInView: (0, ComponentDefs_1.d)(`Indicates whether the animation should start when the component is in view`),
|
|
15
|
+
duration: (0, ComponentDefs_1.d)(`The duration of the animation in milliseconds`),
|
|
16
|
+
once: (0, ComponentDefs_1.d)(`Indicates whether the animation should only run once`),
|
|
17
|
+
},
|
|
18
|
+
events: {
|
|
19
|
+
started: (0, ComponentDefs_1.d)(`Event fired when the animation starts`),
|
|
20
|
+
stopped: (0, ComponentDefs_1.d)(`Event fired when the animation stops`),
|
|
21
|
+
},
|
|
22
|
+
apis: {
|
|
23
|
+
start: (0, ComponentDefs_1.d)(`Starts the animation`),
|
|
24
|
+
stop: (0, ComponentDefs_1.d)(`Stops the animation`),
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
exports.FadeInAnimationMd = (0, ComponentDefs_1.createMetadata)(Object.assign(Object.assign({}, exports.AnimationMd), { specializedFrom: COMP, description: `The \`${COMP}\` component represents an animation that fades in the content.` }));
|
|
28
|
+
exports.SlideInAnimationMd = (0, ComponentDefs_1.createMetadata)(Object.assign(Object.assign({}, exports.AnimationMd), { specializedFrom: COMP, description: `The \`${COMP}\` component represents an animation that slides in the content from the left.`, props: {
|
|
29
|
+
animateWhenInView: (0, ComponentDefs_1.d)(`Indicates whether the animation should start when the component is in view`),
|
|
30
|
+
direction: (0, ComponentDefs_1.d)(`The direction from which the content should slide in`),
|
|
31
|
+
duration: (0, ComponentDefs_1.d)(`The duration of the animation in milliseconds`),
|
|
32
|
+
} }));
|
|
33
|
+
exports.animationComponentRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.AnimationMd, ({ registerComponentApi, renderChild, node, extractValue, lookupEventHandler }) => {
|
|
34
|
+
return ((0, jsx_runtime_1.jsx)(AnimationNative_1.Animation, { registerComponentApi: registerComponentApi, animation: extractValue(node.props.animation), onStop: lookupEventHandler("stopped"), onStart: lookupEventHandler("started"), duration: extractValue.asOptionalNumber(node.props.duration), animateWhenInView: extractValue.asOptionalBoolean(node.props.animateWhenInView), once: extractValue.asOptionalBoolean(node.props.once), children: renderChild(node.children) }));
|
|
35
|
+
});
|
|
36
|
+
exports.fadeInAnimationRenderer = (0, renderers_1.createComponentRenderer)("FadeInAnimation", exports.FadeInAnimationMd, ({ node, renderChild, extractValue, registerComponentApi, lookupEventHandler }) => {
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)(AnimationNative_1.Animation, { registerComponentApi: registerComponentApi, animation: {
|
|
38
|
+
from: { opacity: 0 },
|
|
39
|
+
to: { opacity: 1 },
|
|
40
|
+
}, duration: extractValue.asOptionalNumber(node.props.duration), onStop: lookupEventHandler("stopped"), onStart: lookupEventHandler("started"), animateWhenInView: extractValue.asOptionalBoolean(node.props.animateWhenInView), children: renderChild(node.children) }));
|
|
41
|
+
});
|
|
42
|
+
exports.slideInAnimationRenderer = (0, renderers_1.createComponentRenderer)("SlideInAnimation", exports.SlideInAnimationMd, ({ node, renderChild, extractValue, registerComponentApi, lookupEventHandler }) => {
|
|
43
|
+
const direction = extractValue.asString(node.props.direction);
|
|
44
|
+
const animation = {
|
|
45
|
+
from: {
|
|
46
|
+
transform: direction === "right"
|
|
47
|
+
? "translateX(100%)"
|
|
48
|
+
: direction === "left"
|
|
49
|
+
? "translateX(-100%)"
|
|
50
|
+
: direction === "top"
|
|
51
|
+
? "translateY(-100%)"
|
|
52
|
+
: "translateY(100%)",
|
|
53
|
+
},
|
|
54
|
+
to: {
|
|
55
|
+
transform: direction === "right" || direction === "left" ? "translateX(0)" : "translateY(0)",
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
return ((0, jsx_runtime_1.jsx)(AnimationNative_1.Animation, { registerComponentApi: registerComponentApi, animation: animation, duration: extractValue.asOptionalNumber(node.props.duration), onStop: lookupEventHandler("stopped"), onStart: lookupEventHandler("started"), animateWhenInView: extractValue.asOptionalBoolean(node.props.animateWhenInView), children: renderChild(node.children) }));
|
|
59
|
+
});
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Animation = void 0;
|
|
37
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
|
+
const web_1 = require("@react-spring/web");
|
|
39
|
+
const react_1 = __importStar(require("react"));
|
|
40
|
+
const react_2 = require("react");
|
|
41
|
+
const AnimatedComponent = (0, web_1.animated)((0, react_1.forwardRef)(function InlineComponentDef(props, ref) {
|
|
42
|
+
const { children, style } = props;
|
|
43
|
+
return react_1.default.cloneElement(children, { style, ref });
|
|
44
|
+
}));
|
|
45
|
+
const Animation = ({ children, registerComponentApi, animation, duration = 500, onStop, onStart, animateWhenInView = false, once = false, }) => {
|
|
46
|
+
const animationSettings = (0, react_1.useMemo)(() => ({
|
|
47
|
+
from: animation.from,
|
|
48
|
+
to: animation.to,
|
|
49
|
+
config: Object.assign(Object.assign({}, animation.config), { duration }),
|
|
50
|
+
onStart,
|
|
51
|
+
onRest: onStop,
|
|
52
|
+
once,
|
|
53
|
+
}), [animation, duration, onStart, onStop, once]);
|
|
54
|
+
const [springs, api] = (0, web_1.useSpring)(() => (Object.assign({}, animationSettings)));
|
|
55
|
+
const [ref, animationStyles] = (0, web_1.useInView)(() => animationSettings, {
|
|
56
|
+
once,
|
|
57
|
+
});
|
|
58
|
+
const startAnimation = (0, react_2.useCallback)(() => {
|
|
59
|
+
api.start(animation);
|
|
60
|
+
return () => {
|
|
61
|
+
api.stop();
|
|
62
|
+
};
|
|
63
|
+
}, [api]);
|
|
64
|
+
const stopAnimation = (0, react_2.useCallback)(() => {
|
|
65
|
+
api.stop();
|
|
66
|
+
}, [api]);
|
|
67
|
+
(0, react_1.useEffect)(() => {
|
|
68
|
+
registerComponentApi === null || registerComponentApi === void 0 ? void 0 : registerComponentApi({
|
|
69
|
+
start: startAnimation,
|
|
70
|
+
stop: stopAnimation,
|
|
71
|
+
});
|
|
72
|
+
}, [registerComponentApi, startAnimation, stopAnimation]);
|
|
73
|
+
return react_1.Children.map(children, (child, index) => ((0, jsx_runtime_1.jsx)(AnimatedComponent, { style: animateWhenInView ? animationStyles : springs, ref: ref, children: child }, index)));
|
|
74
|
+
};
|
|
75
|
+
exports.Animation = Animation;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.appRenderer = exports.AppMd = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const ComponentDefs_1 = require("@abstractions/ComponentDefs");
|
|
9
|
+
const AppLayoutContext_1 = require("./AppLayoutContext");
|
|
10
|
+
const App_module_scss_1 = __importDefault(require("./App.module.scss"));
|
|
11
|
+
const renderers_1 = require("@components-core/renderers");
|
|
12
|
+
const themeVars_1 = require("@components-core/theming/themeVars");
|
|
13
|
+
const metadata_helpers_1 = require("@components/metadata-helpers");
|
|
14
|
+
const AppNative_1 = require("./AppNative");
|
|
15
|
+
const COMP = "App";
|
|
16
|
+
exports.AppMd = (0, ComponentDefs_1.createMetadata)({
|
|
17
|
+
status: "stable",
|
|
18
|
+
description: `The \`${COMP}\` component provides a UI frame for XMLUI apps. According to predefined (and ` +
|
|
19
|
+
`run-time configurable) structure templates, \`${COMP}\` allows you to display your ` +
|
|
20
|
+
`preferred layout.`,
|
|
21
|
+
props: {
|
|
22
|
+
layout: (0, ComponentDefs_1.d)(`This property sets the layout template of the app. This setting determines the position ` +
|
|
23
|
+
`and size of the app parts (such as header, navigation bar, footer, etc.) and the app's ` +
|
|
24
|
+
`scroll behavior.`, AppLayoutContext_1.appLayoutMd),
|
|
25
|
+
loggedInUser: (0, ComponentDefs_1.d)(`Stores information about the currently logged in user.`),
|
|
26
|
+
logoTemplate: (0, metadata_helpers_1.dComponent)("Optional template of the app logo"),
|
|
27
|
+
logo: (0, ComponentDefs_1.d)("Optional logo path"),
|
|
28
|
+
"logo-dark": (0, ComponentDefs_1.d)("Optional logo path in dark tone"),
|
|
29
|
+
"logo-light": (0, ComponentDefs_1.d)("Optional logo path in light tone"),
|
|
30
|
+
name: (0, ComponentDefs_1.d)("Optional application name (visible in the browser tab)"),
|
|
31
|
+
scrollWholePage: (0, ComponentDefs_1.d)(`This boolean property specifies whether the whole page should scroll (\`true\`) or just ` +
|
|
32
|
+
`the content area (\`false\`). The default value is \`true\`.`, null, "boolean", true),
|
|
33
|
+
noScrollbarGutters: (0, ComponentDefs_1.d)("This boolean property specifies whether the scrollbar gutters should be hidden.", null, "boolean", false),
|
|
34
|
+
defaultTone: (0, ComponentDefs_1.d)('This property sets the app\'s default tone ("light" or "dark").', null, "string", "light"),
|
|
35
|
+
defaultTheme: (0, ComponentDefs_1.d)("This property sets the app's default theme.", null, "string", "xmlui"),
|
|
36
|
+
},
|
|
37
|
+
events: {
|
|
38
|
+
ready: (0, ComponentDefs_1.d)(`This event fires when the \`${COMP}\` component finishes rendering on the page.`),
|
|
39
|
+
},
|
|
40
|
+
themeVars: (0, themeVars_1.parseScssVar)(App_module_scss_1.default.themeVars),
|
|
41
|
+
defaultThemeVars: {
|
|
42
|
+
[`width-navPanel-${COMP}`]: "$space-64",
|
|
43
|
+
[`max-content-width-${COMP}`]: "$max-content-width",
|
|
44
|
+
[`shadow-header-${COMP}`]: "$shadow-spread",
|
|
45
|
+
[`shadow-pages-${COMP}`]: "$shadow-spread",
|
|
46
|
+
light: {
|
|
47
|
+
// --- No light-specific theme vars
|
|
48
|
+
},
|
|
49
|
+
dark: {
|
|
50
|
+
// --- No dark-specific theme vars
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
exports.appRenderer = (0, renderers_1.createComponentRenderer)(COMP, exports.AppMd, ({ node, extractValue, renderChild, layoutCss, lookupEventHandler }) => {
|
|
55
|
+
var _a;
|
|
56
|
+
let AppHeader;
|
|
57
|
+
let Footer;
|
|
58
|
+
let NavPanel;
|
|
59
|
+
const restChildren = [];
|
|
60
|
+
(_a = node.children) === null || _a === void 0 ? void 0 : _a.forEach((child) => {
|
|
61
|
+
if (child.type === "AppHeader") {
|
|
62
|
+
AppHeader = child;
|
|
63
|
+
}
|
|
64
|
+
else if (child.type === "Footer") {
|
|
65
|
+
Footer = child;
|
|
66
|
+
}
|
|
67
|
+
else if (child.type === "NavPanel") {
|
|
68
|
+
NavPanel = child;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
restChildren.push(child);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
const layoutType = extractValue(node.props.layout);
|
|
75
|
+
return ((0, jsx_runtime_1.jsx)(AppNative_1.App, { scrollWholePage: extractValue.asOptionalBoolean(node.props.scrollWholePage, true), noScrollbarGutters: extractValue.asOptionalBoolean(node.props.noScrollbarGutters, false), style: layoutCss, layout: layoutType, loggedInUser: extractValue(node.props.loggedInUser), onReady: lookupEventHandler("ready"), header: renderChild(AppHeader), footer: renderChild(Footer), navPanel: renderChild(NavPanel), navPanelDef: NavPanel, logoContentDef: node.props.logoTemplate, renderChild: renderChild, name: extractValue(node.props.name), logo: extractValue(node.props.logo), logoDark: extractValue(node.props["logo-dark"]), logoLight: extractValue(node.props["logo-light"]), defaultTone: extractValue(node.props.defaultTone), defaultTheme: extractValue(node.props.defaultTheme), children: renderChild(restChildren) }));
|
|
76
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppLayoutContext = exports.appLayouts = exports.appLayoutMd = void 0;
|
|
4
|
+
exports.useAppLayoutContext = useAppLayoutContext;
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const appLayoutNames = [
|
|
7
|
+
"vertical",
|
|
8
|
+
"vertical-sticky",
|
|
9
|
+
"vertical-full-header",
|
|
10
|
+
"condensed",
|
|
11
|
+
"condensed-sticky",
|
|
12
|
+
"horizontal",
|
|
13
|
+
"horizontal-sticky",
|
|
14
|
+
];
|
|
15
|
+
exports.appLayoutMd = [
|
|
16
|
+
{
|
|
17
|
+
value: "vertical",
|
|
18
|
+
description: "This layout puts the navigation bar on the left side and displays its items vertically. The main content is aligned to the right (including the header and the footer), and its content is a single scroll container; every part of it moves as you scroll the page. This layout does not display the logo in the app header.",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
value: "vertical-sticky",
|
|
22
|
+
description: "Similar to `vertical`, the header and the navigation bar dock to the top of the main content's viewport, while the footer sticks to the bottom. This layout does not display the logo in the app header.",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
value: "vertical-full-header",
|
|
26
|
+
description: "Similar to `vertical-sticky`. However, the header and the navigation bar dock to the top of the app's window, while the footer sticks to the bottom.",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
value: "condensed",
|
|
30
|
+
description: "Similar to `horizontal`. However, the header and the navigation bar are in a single header block. (default)",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
value: "condensed-sticky",
|
|
34
|
+
description: "However, the header and the navigation bar are in a single header block.",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
value: "horizontal",
|
|
38
|
+
description: "This layout stacks the layout sections in a single column in this order: header, navigation bar, main content, and footer. The application is a single scroll container; every part moves as you scroll the page.",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
value: "horizontal-sticky",
|
|
42
|
+
description: "Similar to `horizontal`, the header and the navigation bar dock to the top of the viewport, while the footer sticks to the bottom.",
|
|
43
|
+
},
|
|
44
|
+
];
|
|
45
|
+
exports.appLayouts = [...appLayoutNames];
|
|
46
|
+
exports.AppLayoutContext = (0, react_1.createContext)(null);
|
|
47
|
+
function useAppLayoutContext() {
|
|
48
|
+
return (0, react_1.useContext)(exports.AppLayoutContext);
|
|
49
|
+
}
|