neo.mjs 10.0.0-beta.4 → 10.0.0-beta.6
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/.github/RELEASE_NOTES/v10.0.0-beta.4.md +2 -2
- package/.github/RELEASE_NOTES/v10.0.0-beta.5.md +70 -0
- package/.github/RELEASE_NOTES/v10.0.0-beta.6.md +48 -0
- package/.github/epic-functional-components.md +498 -0
- package/.github/ticket-asymmetric-vdom-updates.md +122 -0
- package/README.md +0 -3
- package/ServiceWorker.mjs +2 -2
- package/apps/colors/store/Colors.mjs +1 -0
- package/apps/colors/view/GridContainer.mjs +3 -0
- package/apps/colors/view/HeaderToolbar.mjs +2 -0
- package/apps/colors/view/Viewport.mjs +3 -0
- package/apps/covid/view/FooterContainer.mjs +3 -0
- package/apps/covid/view/GalleryContainer.mjs +2 -0
- package/apps/covid/view/GalleryContainerController.mjs +1 -0
- package/apps/covid/view/HeaderContainer.mjs +2 -0
- package/apps/covid/view/HelixContainer.mjs +2 -0
- package/apps/covid/view/HelixContainerController.mjs +1 -0
- package/apps/covid/view/MainContainer.mjs +3 -0
- package/apps/covid/view/TableContainer.mjs +3 -0
- package/apps/covid/view/TableContainerController.mjs +1 -0
- package/apps/covid/view/WorldMapContainer.mjs +2 -0
- package/apps/covid/view/country/Gallery.mjs +3 -0
- package/apps/covid/view/country/Helix.mjs +8 -0
- package/apps/covid/view/country/HistoricalDataTable.mjs +1 -0
- package/apps/covid/view/country/Table.mjs +2 -0
- package/apps/covid/view/mapboxGl/Component.mjs +1 -0
- package/apps/covid/view/mapboxGl/Container.mjs +2 -0
- package/apps/email/EPIC_PLAN.md +58 -0
- package/apps/email/neo-config.json +2 -2
- package/apps/email/store/Emails.mjs +11 -1
- package/apps/email/view/ComposeView.mjs +44 -0
- package/apps/email/view/MainView.mjs +89 -0
- package/apps/email/view/Viewport.mjs +4 -33
- package/apps/email/view/ViewportStateProvider.mjs +3 -3
- package/apps/form/store/SideNav.mjs +1 -0
- package/apps/form/view/FormContainer.mjs +1 -0
- package/apps/form/view/FormPageContainer.mjs +2 -0
- package/apps/form/view/SideNavList.mjs +1 -0
- package/apps/form/view/Viewport.mjs +3 -0
- package/apps/portal/childapps/preview/MainContainer.mjs +1 -0
- package/apps/portal/index.html +1 -1
- package/apps/portal/store/BlogPosts.mjs +2 -0
- package/apps/portal/store/Content.mjs +1 -0
- package/apps/portal/store/ContentSections.mjs +1 -0
- package/apps/portal/store/Examples.mjs +1 -0
- package/apps/portal/view/HeaderToolbar.mjs +1 -0
- package/apps/portal/view/Viewport.mjs +5 -0
- package/apps/portal/view/ViewportController.mjs +8 -2
- package/apps/portal/view/about/Container.mjs +2 -0
- package/apps/portal/view/about/MemberContainer.mjs +7 -0
- package/apps/portal/view/blog/Container.mjs +2 -0
- package/apps/portal/view/blog/List.mjs +2 -0
- package/apps/portal/view/examples/List.mjs +1 -0
- package/apps/portal/view/examples/TabContainer.mjs +4 -0
- package/apps/portal/view/home/ContentBox.mjs +3 -0
- package/apps/portal/view/home/FeatureSection.mjs +8 -0
- package/apps/portal/view/home/FooterContainer.mjs +4 -1
- package/apps/portal/view/home/MainContainer.mjs +2 -0
- package/apps/portal/view/home/parts/AfterMath.mjs +2 -0
- package/apps/portal/view/home/parts/BaseContainer.mjs +1 -0
- package/apps/portal/view/home/parts/Colors.mjs +4 -0
- package/apps/portal/view/home/parts/Features.mjs +2 -0
- package/apps/portal/view/home/parts/Helix.mjs +5 -0
- package/apps/portal/view/home/parts/How.mjs +4 -0
- package/apps/portal/view/home/parts/MainNeo.mjs +1 -0
- package/apps/portal/view/home/parts/References.mjs +2 -0
- package/apps/portal/view/learn/ContentComponent.mjs +11 -5
- package/apps/portal/view/learn/ContentTreeList.mjs +2 -0
- package/apps/portal/view/learn/CubeLayoutButton.mjs +1 -0
- package/apps/portal/view/learn/MainContainer.mjs +4 -0
- package/apps/portal/view/learn/PageContainer.mjs +2 -0
- package/apps/portal/view/learn/PageSectionsContainer.mjs +3 -0
- package/apps/portal/view/learn/PageSectionsList.mjs +1 -0
- package/apps/portal/view/services/Component.mjs +1 -0
- package/apps/realworld/api/Base.mjs +1 -0
- package/apps/realworld/view/HeaderComponent.mjs +4 -0
- package/apps/realworld/view/HomeComponent.mjs +7 -0
- package/apps/realworld/view/MainContainer.mjs +2 -0
- package/apps/realworld/view/MainContainerController.mjs +2 -0
- package/apps/realworld/view/article/CommentComponent.mjs +3 -0
- package/apps/realworld/view/article/Component.mjs +17 -10
- package/apps/realworld/view/article/CreateCommentComponent.mjs +2 -0
- package/apps/realworld/view/article/CreateComponent.mjs +5 -0
- package/apps/realworld/view/article/PreviewComponent.mjs +9 -0
- package/apps/realworld/view/article/TagListComponent.mjs +2 -0
- package/apps/realworld/view/user/ProfileComponent.mjs +7 -0
- package/apps/realworld/view/user/SettingsComponent.mjs +5 -0
- package/apps/realworld/view/user/SignUpComponent.mjs +3 -0
- package/apps/realworld2/api/Base.mjs +1 -0
- package/apps/realworld2/view/FooterComponent.mjs +1 -0
- package/apps/realworld2/view/HeaderToolbar.mjs +3 -0
- package/apps/realworld2/view/HomeContainer.mjs +1 -0
- package/apps/realworld2/view/MainContainer.mjs +2 -0
- package/apps/realworld2/view/MainContainerController.mjs +1 -0
- package/apps/realworld2/view/article/Helix.mjs +1 -0
- package/apps/realworld2/view/article/PreviewComponent.mjs +9 -0
- package/apps/realworld2/view/article/PreviewList.mjs +1 -0
- package/apps/realworld2/view/article/TagListComponent.mjs +2 -0
- package/apps/route/view/CenterContainer.mjs +1 -0
- package/apps/route/view/MainView.mjs +1 -0
- package/apps/sharedcovid/childapps/sharedcovidchart/MainContainer.mjs +1 -0
- package/apps/sharedcovid/childapps/sharedcovidgallery/MainContainer.mjs +1 -0
- package/apps/sharedcovid/childapps/sharedcovidhelix/MainContainer.mjs +1 -0
- package/apps/sharedcovid/childapps/sharedcovidmap/MainContainer.mjs +1 -0
- package/apps/sharedcovid/view/FooterContainer.mjs +3 -0
- package/apps/sharedcovid/view/GalleryContainer.mjs +2 -0
- package/apps/sharedcovid/view/GalleryContainerController.mjs +1 -0
- package/apps/sharedcovid/view/HeaderContainer.mjs +2 -0
- package/apps/sharedcovid/view/HelixContainer.mjs +2 -0
- package/apps/sharedcovid/view/HelixContainerController.mjs +1 -0
- package/apps/sharedcovid/view/MainContainer.mjs +3 -0
- package/apps/sharedcovid/view/TableContainer.mjs +3 -0
- package/apps/sharedcovid/view/TableContainerController.mjs +1 -0
- package/apps/sharedcovid/view/WorldMapContainer.mjs +2 -0
- package/apps/sharedcovid/view/country/Gallery.mjs +3 -0
- package/apps/sharedcovid/view/country/Helix.mjs +8 -0
- package/apps/sharedcovid/view/country/HistoricalDataTable.mjs +1 -0
- package/apps/sharedcovid/view/country/Table.mjs +2 -0
- package/apps/sharedcovid/view/mapboxGl/Component.mjs +1 -0
- package/apps/sharedcovid/view/mapboxGl/Container.mjs +2 -0
- package/apps/shareddialog/childapps/shareddialog2/view/MainContainer.mjs +2 -0
- package/apps/shareddialog/view/DemoDialog.mjs +2 -0
- package/apps/shareddialog/view/MainContainer.mjs +2 -0
- package/apps/shareddialog/view/MainContainerController.mjs +1 -0
- package/buildScripts/addReactiveTags.mjs +191 -0
- package/buildScripts/checkReactiveTags.mjs +160 -0
- package/docs/app/store/Api.mjs +1 -0
- package/docs/app/store/Examples.mjs +1 -0
- package/docs/app/view/ApiTreeList.mjs +1 -0
- package/docs/app/view/ContentTabContainer.mjs +2 -0
- package/docs/app/view/ExamplesTreeList.mjs +2 -0
- package/docs/app/view/HeaderContainer.mjs +3 -0
- package/docs/app/view/MainContainer.mjs +5 -0
- package/docs/app/view/classdetails/HeaderComponent.mjs +1 -0
- package/docs/app/view/classdetails/MainContainer.mjs +3 -0
- package/docs/app/view/classdetails/MembersList.mjs +5 -0
- package/docs/app/view/classdetails/SourceViewComponent.mjs +2 -0
- package/examples/ConfigurationViewport.mjs +14 -8
- package/examples/button/effect/MainContainer.mjs +207 -0
- package/examples/button/effect/app.mjs +6 -0
- package/examples/button/effect/index.html +11 -0
- package/examples/button/effect/neo-config.json +6 -0
- package/examples/calendar/weekview/MainContainer.mjs +4 -0
- package/examples/component/coronaGallery/CountryGallery.mjs +2 -0
- package/examples/component/coronaGallery/CountryStore.mjs +1 -0
- package/examples/component/coronaGallery/Viewport.mjs +3 -0
- package/examples/component/coronaGallery/ViewportController.mjs +1 -0
- package/examples/component/coronaHelix/CountryHelix.mjs +7 -0
- package/examples/component/coronaHelix/MainContainer.mjs +1 -0
- package/examples/component/gallery/ImageStore.mjs +1 -0
- package/examples/component/helix/ImageStore.mjs +1 -0
- package/examples/component/helix/Viewport.mjs +3 -0
- package/examples/component/helix/ViewportController.mjs +1 -0
- package/examples/component/multiWindowCoronaGallery/childapp/Viewport.mjs +1 -0
- package/examples/component/multiWindowHelix/childapp/Viewport.mjs +1 -0
- package/examples/component/wrapper/googleMaps/MapComponent.mjs +2 -0
- package/examples/core/config/MainContainer.mjs +2 -0
- package/examples/dialog/DemoDialog.mjs +2 -0
- package/examples/dialog/MainContainer.mjs +1 -0
- package/examples/form/field/color/MainStore.mjs +1 -0
- package/examples/functional/defineComponent/Component.mjs +18 -0
- package/examples/functional/defineComponent/MainContainer.mjs +41 -0
- package/examples/functional/defineComponent/app.mjs +6 -0
- package/examples/functional/defineComponent/index.html +11 -0
- package/examples/functional/defineComponent/neo-config.json +6 -0
- package/examples/functional/hostComponent/Component.mjs +32 -0
- package/examples/functional/hostComponent/MainContainer.mjs +48 -0
- package/examples/functional/hostComponent/app.mjs +6 -0
- package/examples/functional/hostComponent/index.html +11 -0
- package/examples/functional/hostComponent/neo-config.json +6 -0
- package/examples/grid/animatedRowSorting/Viewport.mjs +1 -1
- package/examples/grid/bigData/ControlsContainer.mjs +3 -0
- package/examples/grid/bigData/GridContainer.mjs +4 -2
- package/examples/grid/bigData/MainContainer.mjs +2 -0
- package/examples/grid/bigData/MainModel.mjs +1 -0
- package/examples/grid/bigData/MainStore.mjs +3 -0
- package/examples/grid/cellEditing/MainContainer.mjs +1 -1
- package/examples/grid/container/MainContainer.mjs +1 -1
- package/examples/grid/covid/GridContainer.mjs +3 -0
- package/examples/grid/covid/MainContainer.mjs +2 -0
- package/examples/grid/covid/Store.mjs +1 -0
- package/examples/grid/nestedRecordFields/EditUserDialog.mjs +3 -0
- package/examples/grid/nestedRecordFields/Viewport.mjs +3 -1
- package/examples/list/animate/List.mjs +4 -0
- package/examples/list/animate/MainContainer.mjs +2 -0
- package/examples/list/circle/MainStore.mjs +1 -0
- package/examples/list/color/MainStore.mjs +1 -0
- package/examples/preloadingAssets/view/MainContainer.mjs +2 -0
- package/examples/stateProvider/advanced/MainContainer.mjs +1 -0
- package/examples/stateProvider/dialog/EditUserDialog.mjs +2 -0
- package/examples/stateProvider/dialog/MainContainer.mjs +1 -0
- package/examples/stateProvider/extendedClass/MainContainer.mjs +2 -0
- package/examples/stateProvider/inline/MainContainer.mjs +1 -0
- package/examples/stateProvider/inlineNoStateProvider/MainContainer.mjs +1 -0
- package/examples/stateProvider/inlineNoStateProvider/MainContainerController.mjs +2 -0
- package/examples/stateProvider/multiWindow/EditUserDialog.mjs +3 -0
- package/examples/stateProvider/multiWindow/MainContainer.mjs +1 -0
- package/examples/stateProvider/multiWindow/Viewport.mjs +1 -0
- package/examples/stateProvider/nestedData/MainContainer.mjs +1 -0
- package/examples/stateProvider/table/MainContainer.mjs +1 -0
- package/examples/table/covid/MainContainer.mjs +2 -0
- package/examples/table/covid/Store.mjs +1 -0
- package/examples/table/covid/TableContainer.mjs +3 -0
- package/examples/table/nestedRecordFields/EditUserDialog.mjs +3 -0
- package/examples/table/nestedRecordFields/Viewport.mjs +1 -0
- package/examples/todoList/version1/MainComponent.mjs +1 -1
- package/examples/toolbar/breadcrumb/view/MainContainer.mjs +2 -0
- package/examples/toolbar/paging/store/Users.mjs +1 -0
- package/examples/toolbar/paging/view/AddUserDialog.mjs +3 -0
- package/examples/toolbar/paging/view/MainContainer.mjs +3 -0
- package/examples/treeAccordion/MainContainer.mjs +2 -2
- package/examples/worker/task/MainContainer.mjs +1 -0
- package/learn/Glossary.md +1 -0
- package/learn/UsingTheseTopics.md +1 -0
- package/learn/benefits/ConfigSystem.md +2 -0
- package/learn/benefits/Effort.md +1 -0
- package/learn/benefits/Features.md +1 -0
- package/learn/benefits/FormsEngine.md +1 -0
- package/learn/benefits/FourEnvironments.md +2 -0
- package/learn/benefits/Introduction.md +2 -0
- package/learn/benefits/MultiWindow.md +3 -1
- package/learn/benefits/OffTheMainThread.md +2 -0
- package/learn/benefits/Quick.md +2 -0
- package/learn/benefits/RPCLayer.md +2 -0
- package/learn/benefits/Speed.md +2 -0
- package/learn/comparisons/NeoVsAngular.md +90 -0
- package/learn/comparisons/NeoVsExtJs.md +178 -0
- package/learn/comparisons/NeoVsNextJs.md +124 -0
- package/learn/comparisons/NeoVsReact.md +95 -0
- package/learn/comparisons/NeoVsSolid.md +78 -0
- package/learn/comparisons/NeoVsVue.md +92 -0
- package/learn/comparisons/Overview.md +46 -0
- package/learn/gettingstarted/ComponentModels.md +2 -0
- package/learn/gettingstarted/Config.md +2 -0
- package/learn/gettingstarted/DescribingTheUI.md +2 -0
- package/learn/gettingstarted/Events.md +2 -0
- package/learn/gettingstarted/Extending.md +2 -0
- package/learn/gettingstarted/References.md +2 -0
- package/learn/gettingstarted/Setup.md +3 -2
- package/learn/gettingstarted/Workspaces.md +2 -0
- package/learn/guides/datahandling/Collections.md +1 -0
- package/learn/guides/datahandling/Records.md +1 -0
- package/learn/guides/datahandling/StateProviders.md +131 -16
- package/learn/guides/datahandling/Tables.md +1 -1
- package/learn/guides/fundamentals/ConfigSystemDeepDive.md +1 -0
- package/learn/guides/fundamentals/DeclarativeComponentTreesVsImperativeVdom.md +2 -0
- package/learn/guides/fundamentals/DeclarativeVDOMWithEffects.md +168 -0
- package/learn/guides/fundamentals/ExtendingNeoClasses.md +1 -0
- package/learn/guides/fundamentals/InstanceLifecycle.md +3 -1
- package/learn/guides/fundamentals/MainThreadAddons.md +2 -0
- package/learn/guides/specificfeatures/Mixins.md +3 -1
- package/learn/guides/specificfeatures/MultiWindow.md +3 -1
- package/learn/guides/specificfeatures/PortalApp.md +2 -0
- package/learn/guides/uibuildingblocks/ComponentsAndContainers.md +2 -0
- package/learn/guides/uibuildingblocks/CustomComponents.md +2 -0
- package/learn/guides/uibuildingblocks/Layouts.md +2 -0
- package/learn/guides/uibuildingblocks/WorkingWithVDom.md +2 -0
- package/learn/guides/userinteraction/Forms.md +2 -0
- package/learn/guides/userinteraction/events/CustomEvents.md +2 -1
- package/learn/guides/userinteraction/events/DomEvents.md +2 -0
- package/learn/javascript/ClassFeatures.md +4 -3
- package/learn/javascript/Classes.md +10 -13
- package/learn/javascript/Overrides.md +10 -6
- package/learn/javascript/Super.md +12 -8
- package/learn/tree.json +71 -63
- package/learn/tutorials/Earthquakes.md +2 -0
- package/learn/tutorials/RSP.md +3 -1
- package/learn/tutorials/TodoList.md +103 -7
- package/package.json +6 -4
- package/resources/scss/src/apps/email/ComposeView.scss +16 -0
- package/resources/scss/src/apps/email/MainView.scss +5 -0
- package/resources/scss/src/apps/portal/learn/ContentComponent.scss +5 -4
- package/src/DefaultConfig.mjs +12 -2
- package/src/Main.mjs +1 -0
- package/src/Neo.mjs +377 -178
- package/src/Xhr.mjs +1 -0
- package/src/button/Base.mjs +13 -0
- package/src/button/Effect.mjs +449 -0
- package/src/button/Split.mjs +2 -0
- package/src/calendar/store/Calendars.mjs +1 -0
- package/src/calendar/store/Colors.mjs +1 -0
- package/src/calendar/store/Events.mjs +1 -0
- package/src/calendar/view/DayComponent.mjs +2 -0
- package/src/calendar/view/EditEventContainer.mjs +4 -1
- package/src/calendar/view/MainContainer.mjs +13 -0
- package/src/calendar/view/MainContainerStateProvider.mjs +14 -28
- package/src/calendar/view/SettingsContainer.mjs +1 -0
- package/src/calendar/view/YearComponent.mjs +16 -0
- package/src/calendar/view/calendars/ColorsList.mjs +2 -0
- package/src/calendar/view/calendars/Container.mjs +2 -0
- package/src/calendar/view/calendars/EditContainer.mjs +1 -0
- package/src/calendar/view/month/Component.mjs +11 -0
- package/src/calendar/view/settings/GeneralContainer.mjs +1 -0
- package/src/calendar/view/settings/MonthContainer.mjs +1 -0
- package/src/calendar/view/settings/WeekContainer.mjs +1 -0
- package/src/calendar/view/settings/YearContainer.mjs +1 -0
- package/src/calendar/view/week/Component.mjs +15 -1
- package/src/calendar/view/week/TimeAxisComponent.mjs +4 -0
- package/src/code/LivePreview.mjs +51 -23
- package/src/collection/Base.mjs +14 -12
- package/src/collection/Filter.mjs +6 -0
- package/src/collection/Sorter.mjs +3 -0
- package/src/component/Base.mjs +156 -802
- package/src/component/Canvas.mjs +1 -0
- package/src/component/Chip.mjs +4 -0
- package/src/component/Circle.mjs +14 -0
- package/src/component/Clock.mjs +4 -0
- package/src/component/DateSelector.mjs +12 -0
- package/src/component/Gallery.mjs +11 -0
- package/src/component/Helix.mjs +24 -0
- package/src/component/Label.mjs +1 -0
- package/src/component/Legend.mjs +3 -0
- package/src/component/MagicMoveText.mjs +4 -0
- package/src/component/Progress.mjs +3 -0
- package/src/component/Splitter.mjs +3 -0
- package/src/component/StatusBadge.mjs +6 -0
- package/src/component/Timer.mjs +4 -0
- package/src/component/Toast.mjs +6 -0
- package/src/component/Video.mjs +1 -0
- package/src/component/mwc/Button.mjs +7 -0
- package/src/component/mwc/TextField.mjs +9 -0
- package/src/component/wrapper/AmChart.mjs +2 -0
- package/src/component/wrapper/GoogleMaps.mjs +3 -0
- package/src/component/wrapper/MapboxGL.mjs +5 -0
- package/src/component/wrapper/MonacoEditor.mjs +12 -0
- package/src/container/Accordion.mjs +2 -0
- package/src/container/Base.mjs +34 -26
- package/src/container/Panel.mjs +1 -0
- package/src/container/Viewport.mjs +1 -0
- package/src/controller/Application.mjs +1 -0
- package/src/controller/Base.mjs +1 -0
- package/src/controller/Component.mjs +1 -0
- package/src/core/Base.mjs +193 -22
- package/src/core/Compare.mjs +4 -7
- package/src/core/Config.mjs +137 -33
- package/src/core/Effect.mjs +193 -0
- package/src/core/EffectBatchManager.mjs +67 -0
- package/src/core/EffectManager.mjs +60 -0
- package/src/core/IdGenerator.mjs +13 -44
- package/src/data/Model.mjs +2 -0
- package/src/data/Store.mjs +7 -0
- package/src/data/connection/WebSocket.mjs +2 -0
- package/src/date/DayViewComponent.mjs +2 -0
- package/src/date/SelectorContainer.mjs +14 -0
- package/src/dialog/Base.mjs +8 -0
- package/src/draggable/DragZone.mjs +5 -0
- package/src/draggable/tree/DragZone.mjs +1 -0
- package/src/filter/BooleanContainer.mjs +2 -0
- package/src/filter/NumberContainer.mjs +3 -0
- package/src/filter/ToggleOperatorsButton.mjs +2 -0
- package/src/form/Fieldset.mjs +6 -0
- package/src/form/field/Base.mjs +7 -0
- package/src/form/field/CheckBox.mjs +18 -0
- package/src/form/field/Chip.mjs +1 -0
- package/src/form/field/ComboBox.mjs +8 -0
- package/src/form/field/Country.mjs +1 -0
- package/src/form/field/Currency.mjs +2 -0
- package/src/form/field/Date.mjs +4 -0
- package/src/form/field/Display.mjs +1 -0
- package/src/form/field/Email.mjs +1 -0
- package/src/form/field/FileUpload.mjs +7 -0
- package/src/form/field/Hidden.mjs +1 -0
- package/src/form/field/Number.mjs +7 -0
- package/src/form/field/Password.mjs +1 -0
- package/src/form/field/Phone.mjs +3 -0
- package/src/form/field/Picker.mjs +2 -0
- package/src/form/field/Radio.mjs +1 -0
- package/src/form/field/Range.mjs +3 -0
- package/src/form/field/Search.mjs +2 -0
- package/src/form/field/Text.mjs +32 -0
- package/src/form/field/TextArea.mjs +7 -0
- package/src/form/field/Time.mjs +6 -0
- package/src/form/field/Url.mjs +3 -0
- package/src/form/field/ZipCode.mjs +2 -0
- package/src/form/field/trigger/Base.mjs +3 -0
- package/src/form/field/trigger/Clear.mjs +2 -0
- package/src/form/field/trigger/CopyToClipboard.mjs +2 -0
- package/src/form/field/trigger/Date.mjs +1 -0
- package/src/form/field/trigger/Picker.mjs +1 -0
- package/src/form/field/trigger/Search.mjs +1 -0
- package/src/form/field/trigger/SpinDown.mjs +2 -0
- package/src/form/field/trigger/SpinUp.mjs +1 -0
- package/src/form/field/trigger/Time.mjs +2 -0
- package/src/functional/_export.mjs +6 -0
- package/src/functional/component/Base.mjs +499 -0
- package/src/functional/defineComponent.mjs +102 -0
- package/src/functional/useConfig.mjs +52 -0
- package/src/functional/useEvent.mjs +43 -0
- package/src/grid/Body.mjs +20 -1
- package/src/grid/Container.mjs +57 -63
- package/src/grid/ScrollManager.mjs +2 -0
- package/src/grid/VerticalScrollbar.mjs +2 -0
- package/src/grid/column/Base.mjs +2 -0
- package/src/grid/column/Component.mjs +1 -1
- package/src/grid/header/Button.mjs +7 -0
- package/src/grid/header/Toolbar.mjs +6 -0
- package/src/grid/plugin/AnimateRows.mjs +2 -0
- package/src/layout/Base.mjs +3 -0
- package/src/layout/Card.mjs +1 -0
- package/src/layout/Cube.mjs +11 -1
- package/src/layout/Fit.mjs +1 -0
- package/src/layout/Flexbox.mjs +7 -0
- package/src/layout/Form.mjs +2 -0
- package/src/layout/Grid.mjs +1 -0
- package/src/layout/HBox.mjs +1 -0
- package/src/layout/VBox.mjs +1 -0
- package/src/list/Base.mjs +13 -0
- package/src/list/Chip.mjs +1 -0
- package/src/list/Circle.mjs +2 -0
- package/src/list/Color.mjs +1 -0
- package/src/list/plugin/Animate.mjs +2 -0
- package/src/main/DeltaUpdates.mjs +1 -0
- package/src/main/DomEvents.mjs +2 -0
- package/src/main/addon/CloneNode.mjs +1 -0
- package/src/main/addon/Cookie.mjs +1 -0
- package/src/main/addon/GoogleMaps.mjs +1 -0
- package/src/main/addon/LocalStorage.mjs +1 -0
- package/src/main/addon/MapboxGL.mjs +1 -0
- package/src/main/addon/Markdown.mjs +1 -0
- package/src/main/addon/Navigator.mjs +1 -0
- package/src/main/addon/Popover.mjs +1 -0
- package/src/main/addon/Stylesheet.mjs +1 -0
- package/src/main/addon/WindowPosition.mjs +1 -0
- package/src/manager/Component.mjs +0 -71
- package/src/manager/VDomUpdate.mjs +235 -0
- package/src/menu/List.mjs +6 -0
- package/src/menu/Model.mjs +1 -0
- package/src/menu/Panel.mjs +3 -0
- package/src/menu/Store.mjs +1 -0
- package/src/mixin/DomEvents.mjs +130 -0
- package/src/mixin/VdomLifecycle.mjs +667 -0
- package/src/plugin/Base.mjs +1 -0
- package/src/plugin/Resizable.mjs +2 -0
- package/src/selection/Model.mjs +15 -18
- package/src/selection/grid/BaseModel.mjs +1 -0
- package/src/sitemap/Component.mjs +1 -0
- package/src/state/Provider.mjs +376 -457
- package/src/state/createHierarchicalDataProxy.mjs +138 -0
- package/src/tab/Container.mjs +6 -0
- package/src/tab/Strip.mjs +1 -0
- package/src/tab/header/Button.mjs +2 -0
- package/src/tab/header/EffectButton.mjs +77 -0
- package/src/tab/header/Toolbar.mjs +1 -0
- package/src/table/Body.mjs +3 -0
- package/src/table/Container.mjs +10 -0
- package/src/table/header/Button.mjs +8 -0
- package/src/table/header/Toolbar.mjs +5 -0
- package/src/table/plugin/CellEditing.mjs +1 -0
- package/src/toolbar/Base.mjs +4 -0
- package/src/toolbar/Breadcrumb.mjs +3 -0
- package/src/toolbar/Paging.mjs +5 -0
- package/src/tooltip/Base.mjs +2 -0
- package/src/tree/List.mjs +3 -0
- package/src/util/HashHistory.mjs +1 -0
- package/src/util/KeyNavigation.mjs +2 -0
- package/src/util/Matrix.mjs +1 -0
- package/src/util/VDom.mjs +7 -1
- package/src/util/VNode.mjs +7 -1
- package/src/util/vdom/TreeBuilder.mjs +129 -0
- package/src/vdom/Helper.mjs +44 -33
- package/src/vdom/VNode.mjs +5 -7
- package/src/worker/App.mjs +1 -5
- package/src/worker/Base.mjs +2 -0
- package/src/worker/Manager.mjs +2 -0
- package/src/worker/ServiceBase.mjs +6 -1
- package/test/siesta/siesta.js +36 -1
- package/test/siesta/tests/CollectionBase.mjs +10 -10
- package/test/siesta/tests/VdomCalendar.mjs +13 -9
- package/test/siesta/tests/VdomHelper.mjs +22 -59
- package/test/siesta/tests/config/AfterSetConfig.mjs +100 -0
- package/test/siesta/tests/{ReactiveConfigs.mjs → config/Basic.mjs} +58 -21
- package/test/siesta/tests/config/CircularDependencies.mjs +166 -0
- package/test/siesta/tests/config/CustomFunctions.mjs +69 -0
- package/test/siesta/tests/config/Hierarchy.mjs +94 -0
- package/test/siesta/tests/config/MemoryLeak.mjs +92 -0
- package/test/siesta/tests/config/MultiLevelHierarchy.mjs +85 -0
- package/test/siesta/tests/core/Effect.mjs +127 -0
- package/test/siesta/tests/core/EffectBatching.mjs +310 -0
- package/test/siesta/tests/neo/MixinStaticConfig.mjs +138 -0
- package/test/siesta/tests/state/Provider.mjs +537 -0
- package/test/siesta/tests/state/ProviderNestedDataConfigs.mjs +255 -0
- package/test/siesta/tests/state/createHierarchicalDataProxy.mjs +204 -0
- package/test/siesta/tests/vdom/VdomAsymmetricUpdates.mjs +366 -0
- package/test/siesta/tests/vdom/VdomRealWorldUpdates.mjs +249 -0
- package/learn/javascript/NewNode.md +0 -31
@@ -0,0 +1,207 @@
|
|
1
|
+
import CheckBox from '../../../src/form/field/CheckBox.mjs';
|
2
|
+
import ComboBox from '../../../src/form/field/ComboBox.mjs';
|
3
|
+
import ConfigurationViewport from '../../ConfigurationViewport.mjs';
|
4
|
+
import EffectButton from '../../../src/button/Effect.mjs';
|
5
|
+
import NumberField from '../../../src/form/field/Number.mjs';
|
6
|
+
import Radio from '../../../src/form/field/Radio.mjs';
|
7
|
+
import TextField from '../../../src/form/field/Text.mjs';
|
8
|
+
|
9
|
+
/**
|
10
|
+
* @class Neo.examples.button.effect.MainContainer
|
11
|
+
* @extends Neo.examples.ConfigurationViewport
|
12
|
+
*/
|
13
|
+
class MainContainer extends ConfigurationViewport {
|
14
|
+
static config = {
|
15
|
+
className : 'Neo.examples.button.effect.MainContainer',
|
16
|
+
configItemLabelWidth: 160,
|
17
|
+
configItemWidth : 280,
|
18
|
+
layout : {ntype: 'hbox', align: 'stretch'}
|
19
|
+
}
|
20
|
+
|
21
|
+
createConfigurationComponents() {
|
22
|
+
let me = this;
|
23
|
+
|
24
|
+
return [{
|
25
|
+
module : Radio,
|
26
|
+
checked : me.exampleComponent.badgePosition === 'bottom-left',
|
27
|
+
hideValueLabel: false,
|
28
|
+
labelText : 'badgePosition',
|
29
|
+
listeners : {change: me.onRadioChange.bind(me, 'badgePosition', 'bottom-left')},
|
30
|
+
name : 'badgePosition',
|
31
|
+
valueLabelText: 'bottom-left'
|
32
|
+
}, {
|
33
|
+
module : Radio,
|
34
|
+
checked : me.exampleComponent.badgePosition === 'bottom-right',
|
35
|
+
hideValueLabel: false,
|
36
|
+
labelText : '',
|
37
|
+
listeners : {change: me.onRadioChange.bind(me, 'badgePosition', 'bottom-right')},
|
38
|
+
name : 'badgePosition',
|
39
|
+
valueLabelText: 'bottom-right'
|
40
|
+
}, {
|
41
|
+
module : Radio,
|
42
|
+
checked : me.exampleComponent.badgePosition === 'top-left',
|
43
|
+
hideValueLabel: false,
|
44
|
+
labelText : '',
|
45
|
+
listeners : {change: me.onRadioChange.bind(me, 'badgePosition', 'top-left')},
|
46
|
+
name : 'badgePosition',
|
47
|
+
valueLabelText: 'top-left'
|
48
|
+
}, {
|
49
|
+
module : Radio,
|
50
|
+
checked : me.exampleComponent.badgePosition === 'top-right',
|
51
|
+
hideValueLabel: false,
|
52
|
+
labelText : '',
|
53
|
+
listeners : {change: me.onRadioChange.bind(me, 'badgePosition', 'top-right')},
|
54
|
+
name : 'badgePosition',
|
55
|
+
valueLabelText: 'top-right'
|
56
|
+
}, {
|
57
|
+
module : TextField,
|
58
|
+
labelText : 'badgeText',
|
59
|
+
listeners : {change: me.onConfigChange.bind(me, 'badgeText')},
|
60
|
+
style : {marginTop: '10px'},
|
61
|
+
value : me.exampleComponent.badgeText
|
62
|
+
}, {
|
63
|
+
module : CheckBox,
|
64
|
+
checked : me.exampleComponent.disabled,
|
65
|
+
labelText: 'disabled',
|
66
|
+
listeners: {change: me.onConfigChange.bind(me, 'disabled')},
|
67
|
+
style : {marginTop: '10px'}
|
68
|
+
}, {
|
69
|
+
module : NumberField,
|
70
|
+
clearable : true,
|
71
|
+
labelText : 'height',
|
72
|
+
listeners : {change: me.onConfigChange.bind(me, 'height')},
|
73
|
+
maxValue : 300,
|
74
|
+
minValue : 30,
|
75
|
+
stepSize : 5,
|
76
|
+
style : {marginTop: '10px'},
|
77
|
+
value : me.exampleComponent.height
|
78
|
+
}, {
|
79
|
+
module : TextField, // todo: selectField with options
|
80
|
+
labelText : 'iconCls',
|
81
|
+
listeners : {change: me.onConfigChange.bind(me, 'iconCls')},
|
82
|
+
value : me.exampleComponent.iconCls
|
83
|
+
}, {
|
84
|
+
module : TextField, // todo: colorPickerField
|
85
|
+
clearable : true,
|
86
|
+
labelText : 'iconColor',
|
87
|
+
listeners : {change: me.onConfigChange.bind(me, 'iconColor')},
|
88
|
+
value : me.exampleComponent.iconColor
|
89
|
+
}, {
|
90
|
+
module : Radio,
|
91
|
+
checked : me.exampleComponent.iconPosition === 'top',
|
92
|
+
hideValueLabel: false,
|
93
|
+
labelText : 'iconPosition',
|
94
|
+
listeners : {change: me.onRadioChange.bind(me, 'iconPosition', 'top')},
|
95
|
+
name : 'iconPosition',
|
96
|
+
style : {marginTop: '10px'},
|
97
|
+
valueLabelText: 'top'
|
98
|
+
}, {
|
99
|
+
module : Radio,
|
100
|
+
checked : me.exampleComponent.iconPosition === 'right',
|
101
|
+
hideValueLabel: false,
|
102
|
+
labelText : '',
|
103
|
+
listeners : {change: me.onRadioChange.bind(me, 'iconPosition', 'right')},
|
104
|
+
name : 'iconPosition',
|
105
|
+
valueLabelText: 'right'
|
106
|
+
}, {
|
107
|
+
module : Radio,
|
108
|
+
checked : me.exampleComponent.iconPosition === 'bottom',
|
109
|
+
hideValueLabel: false,
|
110
|
+
labelText : '',
|
111
|
+
listeners : {change: me.onRadioChange.bind(me, 'iconPosition', 'bottom')},
|
112
|
+
name : 'iconPosition',
|
113
|
+
valueLabelText: 'bottom'
|
114
|
+
}, {
|
115
|
+
module : Radio,
|
116
|
+
checked : me.exampleComponent.iconPosition === 'left',
|
117
|
+
hideValueLabel: false,
|
118
|
+
labelText : '',
|
119
|
+
listeners : {change: me.onRadioChange.bind(me, 'iconPosition', 'left')},
|
120
|
+
name : 'iconPosition',
|
121
|
+
valueLabelText: 'left'
|
122
|
+
}, {
|
123
|
+
module : NumberField,
|
124
|
+
clearable : true,
|
125
|
+
labelText : 'rippleEffectDuration',
|
126
|
+
listeners : {change: me.onConfigChange.bind(me, 'rippleEffectDuration')},
|
127
|
+
maxValue : 5000,
|
128
|
+
minValue : 100,
|
129
|
+
stepSize : 100,
|
130
|
+
style : {marginTop: '10px'},
|
131
|
+
value : me.exampleComponent.rippleEffectDuration
|
132
|
+
}, {
|
133
|
+
module : TextField,
|
134
|
+
clearable : true,
|
135
|
+
labelText : 'text',
|
136
|
+
listeners : {change: me.onConfigChange.bind(me, 'text')},
|
137
|
+
style : {marginTop: '10px'},
|
138
|
+
value : me.exampleComponent.text
|
139
|
+
}, {
|
140
|
+
module : TextField,
|
141
|
+
clearable : true,
|
142
|
+
labelText : 'tooltip',
|
143
|
+
listeners : {change: me.onConfigChange.bind(me, 'tooltip')},
|
144
|
+
style : {marginTop: '10px'},
|
145
|
+
value : me.exampleComponent.tooltip
|
146
|
+
}, {
|
147
|
+
module : ComboBox,
|
148
|
+
forceSelection: true,
|
149
|
+
labelText : 'ui',
|
150
|
+
listeners : {change: me.onConfigRecordChange.bind(me, 'ui')},
|
151
|
+
style : {marginTop: '10px'},
|
152
|
+
value : me.exampleComponent.ui,
|
153
|
+
|
154
|
+
store: {
|
155
|
+
data: [
|
156
|
+
{id: 'primary', name: 'primary'},
|
157
|
+
{id: 'secondary', name: 'secondary'},
|
158
|
+
{id: 'tertiary', name: 'tertiary'}
|
159
|
+
]
|
160
|
+
}
|
161
|
+
}, {
|
162
|
+
module : CheckBox,
|
163
|
+
checked : me.exampleComponent.useRippleEffect,
|
164
|
+
labelText: 'useRippleEffect',
|
165
|
+
listeners: {change: me.onConfigChange.bind(me, 'useRippleEffect')},
|
166
|
+
style : {marginTop: '10px'}
|
167
|
+
}, {
|
168
|
+
module : NumberField,
|
169
|
+
clearable : true,
|
170
|
+
labelText : 'width',
|
171
|
+
listeners : {change: me.onConfigChange.bind(me, 'width')},
|
172
|
+
maxValue : 300,
|
173
|
+
minValue : 100,
|
174
|
+
stepSize : 5,
|
175
|
+
style : {marginTop: '10px'},
|
176
|
+
value : me.exampleComponent.width
|
177
|
+
}];
|
178
|
+
}
|
179
|
+
|
180
|
+
/**
|
181
|
+
* @returns {Neo.component.Base}
|
182
|
+
*/
|
183
|
+
createExampleComponent() {
|
184
|
+
return Neo.create({
|
185
|
+
module : EffectButton,
|
186
|
+
badgeText: 'Badge',
|
187
|
+
flex : 'none',
|
188
|
+
handler : data => console.log('button click =>', data.component.id),
|
189
|
+
height : 50,
|
190
|
+
iconCls : 'fa fa-home',
|
191
|
+
style : {marginBottom: '1500px', marginTop: '500px'},
|
192
|
+
text : 'Hello World',
|
193
|
+
ui : 'primary',
|
194
|
+
width : 150
|
195
|
+
})
|
196
|
+
}
|
197
|
+
|
198
|
+
/**
|
199
|
+
* @param {String} config
|
200
|
+
* @param {Object} opts
|
201
|
+
*/
|
202
|
+
onConfigRecordChange(config, opts) {
|
203
|
+
this.exampleComponent[config] = opts.value['id']
|
204
|
+
}
|
205
|
+
}
|
206
|
+
|
207
|
+
export default Neo.setupClass(MainContainer);
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!DOCTYPE HTML>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
<title>Neo EffectButton</title>
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<script src="../../../src/MicroLoader.mjs" type="module"></script>
|
10
|
+
</body>
|
11
|
+
</html>
|
@@ -16,6 +16,7 @@ class MainContainer extends Viewport {
|
|
16
16
|
/**
|
17
17
|
* Value for the container.Base layout_ config
|
18
18
|
* @member {Object} layout={ntype: 'fit'}
|
19
|
+
* @reactive
|
19
20
|
*/
|
20
21
|
layout: {ntype: 'fit'},
|
21
22
|
/**
|
@@ -25,6 +26,7 @@ class MainContainer extends Viewport {
|
|
25
26
|
* 1. Extend Neo.calendar.view.week.Component and add the configs and view model there.
|
26
27
|
* 2. Just drop them into a parent view.
|
27
28
|
* @member {Neo.calendar.view.MainContainerStateProvider} stateProvider=MainContainerStateProvider
|
29
|
+
* @reactive
|
28
30
|
*/
|
29
31
|
stateProvider: {
|
30
32
|
module: MainContainerStateProvider,
|
@@ -36,6 +38,7 @@ class MainContainer extends Viewport {
|
|
36
38
|
* Config options for Neo.calendar.store.Calendars.
|
37
39
|
* The calendar view model relies on it.
|
38
40
|
* @member {Object} calendarStoreConfig_
|
41
|
+
* @reactive
|
39
42
|
*/
|
40
43
|
calendarStoreConfig_: {
|
41
44
|
autoLoad: true,
|
@@ -45,6 +48,7 @@ class MainContainer extends Viewport {
|
|
45
48
|
* Config options for Neo.calendar.store.Events.
|
46
49
|
* The calendar view model relies on it.
|
47
50
|
* @member {Object} eventStoreConfig_
|
51
|
+
* @reactive
|
48
52
|
*/
|
49
53
|
eventStoreConfig_: {
|
50
54
|
autoLoad: true,
|
@@ -22,6 +22,7 @@ class CountryGallery extends Gallery {
|
|
22
22
|
className: 'Neo.examples.component.coronaGallery.CountryGallery',
|
23
23
|
/**
|
24
24
|
* @member {String[]} cls=['neo-country-gallery']
|
25
|
+
* @reactive
|
25
26
|
*/
|
26
27
|
cls: ['neo-country-gallery'],
|
27
28
|
/**
|
@@ -46,6 +47,7 @@ class CountryGallery extends Gallery {
|
|
46
47
|
selectOnMount: false,
|
47
48
|
/**
|
48
49
|
* @member {Neo.data.Store} store=CountryStore
|
50
|
+
* @reactive
|
49
51
|
*/
|
50
52
|
store: CountryStore
|
51
53
|
}
|
@@ -21,6 +21,7 @@ class Viewport extends BaseViewport {
|
|
21
21
|
baseCls: ['neo-gallery-viewport', 'neo-viewport'],
|
22
22
|
/**
|
23
23
|
* @member {Neo.controller.Component} controller=ViewportController
|
24
|
+
* @reactive
|
24
25
|
*/
|
25
26
|
controller: ViewportController,
|
26
27
|
/**
|
@@ -33,10 +34,12 @@ class Viewport extends BaseViewport {
|
|
33
34
|
galleryConfig: null,
|
34
35
|
/**
|
35
36
|
* @member {Object|null} layout={ntype: 'hbox', align: 'stretch'}
|
37
|
+
* @reactive
|
36
38
|
*/
|
37
39
|
layout: {ntype: 'hbox', align: 'stretch'},
|
38
40
|
/**
|
39
41
|
* @member {Boolean} showGitHubStarButton_=true
|
42
|
+
* @reactive
|
40
43
|
*/
|
41
44
|
showGitHubStarButton_: true,
|
42
45
|
/**
|
@@ -27,10 +27,12 @@ class CountryHelix extends Helix {
|
|
27
27
|
/**
|
28
28
|
* The vertical delta between each helix item (increasing this value will create a spiral)
|
29
29
|
* @member {Number} deltaY=1.2
|
30
|
+
* @reactive
|
30
31
|
*/
|
31
32
|
deltaY: 1.2,
|
32
33
|
/**
|
33
34
|
* @member {Object} itemTpl_
|
35
|
+
* @reactive
|
34
36
|
*/
|
35
37
|
itemTpl:
|
36
38
|
{cls: ['surface', 'neo-helix-item'], style: {}, tabIndex: '-1', cn: [
|
@@ -74,11 +76,13 @@ class CountryHelix extends Helix {
|
|
74
76
|
/**
|
75
77
|
* The radius of the Helix in px
|
76
78
|
* @member {Number} radius=2500
|
79
|
+
* @reactive
|
77
80
|
*/
|
78
81
|
radius: 2500,
|
79
82
|
/**
|
80
83
|
* The rotationAngle of the Helix in degrees
|
81
84
|
* @member {Number} rotationAngle=720
|
85
|
+
* @reactive
|
82
86
|
*/
|
83
87
|
rotationAngle: 720,
|
84
88
|
/**
|
@@ -88,16 +92,19 @@ class CountryHelix extends Helix {
|
|
88
92
|
showCloneInfo: false,
|
89
93
|
/**
|
90
94
|
* @member {Neo.data.Store} store=CountryStore
|
95
|
+
* @reactive
|
91
96
|
*/
|
92
97
|
store: CountryStore,
|
93
98
|
/**
|
94
99
|
* The translateX value gets included into each helix item
|
95
100
|
* @member {Number} translateY=500
|
101
|
+
* @reactive
|
96
102
|
*/
|
97
103
|
translateY: 500,
|
98
104
|
/**
|
99
105
|
* The translateX value gets included into each helix item
|
100
106
|
* @member {Number} translateZ_=-2300
|
107
|
+
* @reactive
|
101
108
|
*/
|
102
109
|
translateZ: -2300
|
103
110
|
}
|
@@ -28,6 +28,7 @@ class Viewport extends BaseViewport {
|
|
28
28
|
className: 'Neo.examples.component.helix.Viewport',
|
29
29
|
/**
|
30
30
|
* @member {Neo.controller.Component} controller=ViewportController
|
31
|
+
* @reactive
|
31
32
|
*/
|
32
33
|
controller: ViewportController,
|
33
34
|
/**
|
@@ -40,10 +41,12 @@ class Viewport extends BaseViewport {
|
|
40
41
|
helixConfig: null,
|
41
42
|
/**
|
42
43
|
* @member {Object|null} layout={ntype: 'hbox',align:'stretch'}
|
44
|
+
* @reactive
|
43
45
|
*/
|
44
46
|
layout: {ntype: 'hbox', align: 'stretch'},
|
45
47
|
/**
|
46
48
|
* @member {Boolean} showGitHubStarButton_=true
|
49
|
+
* @reactive
|
47
50
|
*/
|
48
51
|
showGitHubStarButton_: true,
|
49
52
|
/**
|
@@ -15,6 +15,7 @@ class MapComponent extends GoogleMapsComponent {
|
|
15
15
|
/**
|
16
16
|
* Center the map initially to Island
|
17
17
|
* @member {Object} center={lat: 64.963051,lng: -19.020835}
|
18
|
+
* @reactive
|
18
19
|
*/
|
19
20
|
center: {
|
20
21
|
lat: 64.963051,
|
@@ -53,6 +54,7 @@ class MapComponent extends GoogleMapsComponent {
|
|
53
54
|
/**
|
54
55
|
* Ensure only Island is visible
|
55
56
|
* @member {Number} zoom=6
|
57
|
+
* @reactive
|
56
58
|
*/
|
57
59
|
zoom: 6
|
58
60
|
}
|
@@ -14,10 +14,12 @@ class MainContainer extends Viewport {
|
|
14
14
|
className: 'Neo.examples.core.config.MainContainer',
|
15
15
|
/**
|
16
16
|
* @member {Number|null} a_=null
|
17
|
+
* @reactive
|
17
18
|
*/
|
18
19
|
a_: null,
|
19
20
|
/**
|
20
21
|
* @member {Number|null} b_=null
|
22
|
+
* @reactive
|
21
23
|
*/
|
22
24
|
b_: null,
|
23
25
|
/**
|
@@ -16,6 +16,7 @@ class DemoDialog extends Dialog {
|
|
16
16
|
/**
|
17
17
|
* Custom config to dynamically enable / disable the animateTargetId
|
18
18
|
* @member {Boolean} animated_=true
|
19
|
+
* @reactive
|
19
20
|
*/
|
20
21
|
animated_: true,
|
21
22
|
/**
|
@@ -33,6 +34,7 @@ class DemoDialog extends Dialog {
|
|
33
34
|
index: 1,
|
34
35
|
/**
|
35
36
|
* @member {Boolean} modal=true
|
37
|
+
* @reactive
|
36
38
|
*/
|
37
39
|
modal: true,
|
38
40
|
/**
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import {defineComponent, useConfig, useEvent} from '../../../src/functional/_export.mjs';
|
2
|
+
|
3
|
+
export default defineComponent({
|
4
|
+
config: {
|
5
|
+
className: 'Neo.examples.functional.defineComponent.Component',
|
6
|
+
greeting_: 'Hello'
|
7
|
+
},
|
8
|
+
createVdom(config) {
|
9
|
+
const [name, setName] = useConfig('World');
|
10
|
+
|
11
|
+
useEvent('click', () => setName(prev => prev === 'Neo' ? 'World' : 'Neo'));
|
12
|
+
|
13
|
+
return {
|
14
|
+
// tag : 'div', // div is the default value
|
15
|
+
text: `${config.greeting}, ${name}!`
|
16
|
+
}
|
17
|
+
}
|
18
|
+
});
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import ConfigurationViewport from '../../ConfigurationViewport.mjs';
|
2
|
+
import MyFunctionalComponent from './Component.mjs';
|
3
|
+
import TextField from '../../../src/form/field/Text.mjs';
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @class Neo.examples.functional.defineComponent.MainContainer
|
7
|
+
* @extends Neo.examples.ConfigurationViewport
|
8
|
+
*/
|
9
|
+
class MainContainer extends ConfigurationViewport {
|
10
|
+
static config = {
|
11
|
+
className : 'Neo.examples.functional.defineComponent.MainContainer',
|
12
|
+
configItemLabelWidth: 160,
|
13
|
+
configItemWidth : 280,
|
14
|
+
layout : {ntype: 'hbox', align: 'stretch'}
|
15
|
+
}
|
16
|
+
|
17
|
+
createConfigurationComponents() {
|
18
|
+
let me = this;
|
19
|
+
|
20
|
+
return [{
|
21
|
+
module : TextField,
|
22
|
+
clearable : true,
|
23
|
+
labelText : 'greeting',
|
24
|
+
listeners : {change: me.onConfigChange.bind(me, 'greeting')},
|
25
|
+
style : {marginTop: '10px'},
|
26
|
+
value : me.exampleComponent.greeting
|
27
|
+
}]
|
28
|
+
}
|
29
|
+
|
30
|
+
/**
|
31
|
+
* @returns {Neo.functional.Component}
|
32
|
+
*/
|
33
|
+
createExampleComponent() {
|
34
|
+
return {
|
35
|
+
module : MyFunctionalComponent,
|
36
|
+
greeting: 'Hi'
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
export default Neo.setupClass(MainContainer);
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!DOCTYPE HTML>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
<title>Neo Functional Component</title>
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<script src="../../../src/MicroLoader.mjs" type="module"></script>
|
10
|
+
</body>
|
11
|
+
</html>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import {defineComponent, useConfig} from '../../../src/functional/_export.mjs';
|
2
|
+
import Button from '../../../src/button/Base.mjs';
|
3
|
+
|
4
|
+
export default defineComponent({
|
5
|
+
config: {
|
6
|
+
className: 'Neo.examples.functional.hostComponent.Component'
|
7
|
+
},
|
8
|
+
createVdom() {
|
9
|
+
const [count, setCount] = useConfig(0);
|
10
|
+
|
11
|
+
const style = {
|
12
|
+
display : 'flex',
|
13
|
+
flexDirection : 'column',
|
14
|
+
alignItems : 'center',
|
15
|
+
justifyContent: 'center',
|
16
|
+
fontSize : '20px'
|
17
|
+
};
|
18
|
+
|
19
|
+
return {style, cn: [
|
20
|
+
{
|
21
|
+
tag : 'p',
|
22
|
+
text: `Button clicked ${count} times`
|
23
|
+
}, {
|
24
|
+
module : Button,
|
25
|
+
id : 'myButtonModule',
|
26
|
+
theme : 'neo-theme-neo-light',
|
27
|
+
text : 'Click Me (Neo Button)',
|
28
|
+
handler: () => setCount(prev => prev + 1)
|
29
|
+
}
|
30
|
+
]}
|
31
|
+
}
|
32
|
+
});
|