neo.mjs 10.0.0-beta.1 → 10.0.0-beta.2
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/ServiceWorker.mjs +2 -2
- package/apps/colors/view/GridContainer.mjs +1 -1
- package/apps/covid/view/AttributionComponent.mjs +1 -1
- package/apps/covid/view/HeaderContainer.mjs +6 -6
- package/apps/covid/view/MainContainerController.mjs +5 -5
- package/apps/covid/view/TableContainerController.mjs +1 -1
- package/apps/covid/view/country/Gallery.mjs +13 -13
- package/apps/covid/view/country/Helix.mjs +13 -13
- package/apps/covid/view/country/HistoricalDataTable.mjs +1 -1
- package/apps/email/view/Viewport.mjs +2 -2
- package/apps/form/view/SideNavList.mjs +1 -1
- package/apps/portal/index.html +1 -1
- package/apps/portal/resources/data/examples_dist_esm.json +1 -1
- package/apps/portal/resources/data/examples_dist_prod.json +2 -2
- package/apps/portal/view/HeaderToolbar.mjs +3 -3
- package/apps/portal/view/about/Container.mjs +2 -2
- package/apps/portal/view/about/MemberContainer.mjs +3 -3
- package/apps/portal/view/blog/List.mjs +7 -7
- package/apps/portal/view/examples/List.mjs +4 -4
- package/apps/portal/view/home/ContentBox.mjs +2 -2
- package/apps/portal/view/home/FeatureSection.mjs +3 -3
- package/apps/portal/view/home/FooterContainer.mjs +7 -7
- package/apps/portal/view/home/parts/AfterMath.mjs +3 -3
- package/apps/portal/view/home/parts/MainNeo.mjs +3 -3
- package/apps/portal/view/home/parts/References.mjs +6 -6
- package/apps/portal/view/learn/ContentComponent.mjs +3 -3
- package/apps/portal/view/learn/PageSectionsContainer.mjs +1 -1
- package/apps/portal/view/learn/PageSectionsList.mjs +2 -2
- package/apps/portal/view/services/Component.mjs +16 -16
- package/apps/realworld/view/FooterComponent.mjs +1 -1
- package/apps/realworld/view/HeaderComponent.mjs +8 -8
- package/apps/realworld/view/HomeComponent.mjs +6 -6
- package/apps/realworld/view/article/CommentComponent.mjs +4 -4
- package/apps/realworld/view/article/Component.mjs +14 -14
- package/apps/realworld/view/article/CreateCommentComponent.mjs +3 -3
- package/apps/realworld/view/article/CreateComponent.mjs +3 -3
- package/apps/realworld/view/article/PreviewComponent.mjs +1 -1
- package/apps/realworld/view/article/TagListComponent.mjs +2 -2
- package/apps/realworld/view/user/ProfileComponent.mjs +8 -8
- package/apps/realworld/view/user/SettingsComponent.mjs +4 -4
- package/apps/realworld/view/user/SignUpComponent.mjs +4 -4
- package/apps/realworld2/view/FooterComponent.mjs +1 -1
- package/apps/realworld2/view/HomeContainer.mjs +3 -3
- package/apps/realworld2/view/article/DetailsContainer.mjs +1 -1
- package/apps/realworld2/view/article/PreviewComponent.mjs +7 -7
- package/apps/realworld2/view/article/TagListComponent.mjs +2 -2
- package/apps/realworld2/view/user/ProfileContainer.mjs +1 -1
- package/apps/route/view/center/CardAdministration.mjs +2 -2
- package/apps/route/view/center/CardAdministrationDenied.mjs +1 -1
- package/apps/route/view/center/CardContact.mjs +2 -2
- package/apps/route/view/center/CardHome.mjs +1 -1
- package/apps/route/view/center/CardSection1.mjs +1 -1
- package/apps/route/view/center/CardSection2.mjs +1 -1
- package/apps/sharedcovid/view/AttributionComponent.mjs +1 -1
- package/apps/sharedcovid/view/HeaderContainer.mjs +6 -6
- package/apps/sharedcovid/view/MainContainerController.mjs +5 -5
- package/apps/sharedcovid/view/TableContainerController.mjs +1 -1
- package/apps/sharedcovid/view/country/Gallery.mjs +13 -13
- package/apps/sharedcovid/view/country/Helix.mjs +13 -13
- package/apps/sharedcovid/view/country/HistoricalDataTable.mjs +1 -1
- package/apps/shareddialog/childapps/shareddialog2/view/MainContainer.mjs +1 -1
- package/apps/shareddialog/view/MainContainer.mjs +1 -1
- package/buildScripts/createApp.mjs +2 -2
- package/learn/Glossary.md +261 -0
- package/learn/benefits/ConfigSystem.md +536 -26
- package/learn/benefits/Effort.md +47 -2
- package/learn/benefits/Features.md +50 -32
- package/learn/benefits/FormsEngine.md +54 -24
- package/learn/benefits/MultiWindow.md +31 -5
- package/learn/benefits/Quick.md +45 -12
- package/learn/benefits/RPCLayer.md +75 -0
- package/learn/benefits/Speed.md +17 -12
- package/learn/guides/ConfigSystemDeepDive.md +280 -0
- package/learn/guides/DeclarativeComponentTreesVsImperativeVdom.md +17 -17
- package/learn/guides/InstanceLifecycle.md +295 -1
- package/learn/guides/MainThreadAddons.md +475 -0
- package/learn/guides/WorkingWithVDom.md +14 -14
- package/learn/tree.json +52 -51
- package/package.json +2 -2
- package/src/DefaultConfig.mjs +2 -2
- package/src/Main.mjs +8 -7
- package/src/Neo.mjs +16 -2
- package/src/button/Base.mjs +2 -2
- package/src/calendar/view/SettingsContainer.mjs +2 -2
- package/src/calendar/view/YearComponent.mjs +9 -9
- package/src/calendar/view/calendars/ColorsList.mjs +1 -1
- package/src/calendar/view/calendars/List.mjs +1 -1
- package/src/calendar/view/month/Component.mjs +15 -15
- package/src/calendar/view/week/Component.mjs +12 -12
- package/src/calendar/view/week/EventDragZone.mjs +4 -4
- package/src/calendar/view/week/TimeAxisComponent.mjs +3 -3
- package/src/component/Base.mjs +17 -2
- package/src/component/Carousel.mjs +2 -2
- package/src/component/Chip.mjs +3 -3
- package/src/component/Circle.mjs +2 -2
- package/src/component/DateSelector.mjs +8 -8
- package/src/component/Helix.mjs +1 -1
- package/src/component/Label.mjs +3 -18
- package/src/component/Legend.mjs +3 -3
- package/src/component/MagicMoveText.mjs +6 -14
- package/src/component/Process.mjs +3 -3
- package/src/component/Progress.mjs +1 -1
- package/src/component/StatusBadge.mjs +2 -2
- package/src/component/Timer.mjs +2 -2
- package/src/component/Toast.mjs +5 -3
- package/src/container/AccordionItem.mjs +2 -2
- package/src/container/Base.mjs +1 -1
- package/src/core/Base.mjs +18 -2
- package/src/date/DayViewComponent.mjs +2 -2
- package/src/date/SelectorContainer.mjs +1 -1
- package/src/form/field/CheckBox.mjs +4 -4
- package/src/form/field/FileUpload.mjs +25 -39
- package/src/form/field/Range.mjs +1 -1
- package/src/form/field/Text.mjs +3 -3
- package/src/form/field/TextArea.mjs +2 -3
- package/src/grid/Body.mjs +6 -2
- package/src/list/Color.mjs +2 -2
- package/src/main/DeltaUpdates.mjs +157 -98
- package/src/main/addon/AmCharts.mjs +53 -73
- package/src/main/addon/Base.mjs +11 -0
- package/src/main/addon/MonacoEditor.mjs +31 -58
- package/src/manager/ClassHierarchy.mjs +114 -0
- package/src/menu/List.mjs +1 -1
- package/src/plugin/Popover.mjs +2 -2
- package/src/sitemap/Component.mjs +1 -1
- package/src/table/Body.mjs +6 -2
- package/src/tooltip/Base.mjs +1 -6
- package/src/tree/Accordion.mjs +3 -3
- package/src/vdom/Helper.mjs +19 -19
- package/src/worker/App.mjs +1 -2
- package/src/worker/Base.mjs +6 -4
- package/src/worker/Canvas.mjs +2 -3
- package/src/worker/Data.mjs +5 -7
- package/src/worker/Task.mjs +2 -3
- package/src/worker/VDom.mjs +3 -4
- package/src/worker/mixin/RemoteMethodAccess.mjs +4 -1
- package/learn/guides/MainThreadAddonExample.md +0 -15
- package/learn/guides/MainThreadAddonIntro.md +0 -44
package/learn/tree.json
CHANGED
@@ -1,53 +1,54 @@
|
|
1
1
|
{"data": [
|
2
|
-
{"name": "Using These Topics",
|
3
|
-
{"name": "Benefits",
|
4
|
-
{"name": "Introduction ",
|
5
|
-
{"name": "Off the Main Thread",
|
6
|
-
{"name": "4 Environments",
|
7
|
-
{"name": "Unified Config System",
|
8
|
-
{"name": "
|
9
|
-
{"name": "
|
10
|
-
{"name": "
|
11
|
-
{"name": "
|
12
|
-
{"name": "
|
13
|
-
{"name": "
|
14
|
-
|
15
|
-
|
16
|
-
{"name": "
|
17
|
-
{"name": "
|
18
|
-
{"name": "
|
19
|
-
{"name": "
|
20
|
-
{"name": "
|
21
|
-
{"name": "
|
22
|
-
{"name": "
|
23
|
-
|
24
|
-
|
25
|
-
{"name": "
|
26
|
-
{"name": "
|
27
|
-
{"name": "
|
28
|
-
{"name": "
|
29
|
-
{"name": "
|
30
|
-
{"name": "
|
31
|
-
{"name": "
|
32
|
-
{"name": "
|
33
|
-
{"name": "
|
34
|
-
|
35
|
-
|
36
|
-
{"name": "
|
37
|
-
|
38
|
-
|
39
|
-
{"name": "
|
40
|
-
|
41
|
-
|
42
|
-
{"name": "Mixins",
|
43
|
-
{"name": "Tutorials",
|
44
|
-
{"name": "Rock Scissors Paper",
|
45
|
-
{"name": "Earthquakes",
|
46
|
-
{"name": "Todo List",
|
47
|
-
{"name": "JavaScript Classes",
|
48
|
-
{"name": "Classes, Properties, and Methods",
|
49
|
-
{"name": "Overriding Methods",
|
50
|
-
{"name": "Other JavaScript Class Features",
|
51
|
-
{"name": "Super",
|
52
|
-
{"name": "New Node",
|
2
|
+
{"name": "Using These Topics", "parentId": null, "id": "UsingTheseTopics" },
|
3
|
+
{"name": "Benefits", "parentId": null, "isLeaf": false, "id": "Benefits"},
|
4
|
+
{"name": "Introduction ", "parentId": "Benefits", "id": "benefits.Introduction"},
|
5
|
+
{"name": "Off the Main Thread", "parentId": "Benefits", "id": "benefits.OffTheMainThread"},
|
6
|
+
{"name": "4 Environments", "parentId": "Benefits", "id": "benefits.FourEnvironments"},
|
7
|
+
{"name": "Unified Config System", "parentId": "Benefits", "id": "benefits.ConfigSystem"},
|
8
|
+
{"name": "RPC Layer", "parentId": "Benefits", "id": "benefits.RPCLayer"},
|
9
|
+
{"name": "Extreme Speed", "parentId": "Benefits", "id": "benefits.Speed"},
|
10
|
+
{"name": "Multi-Window Applications", "parentId": "Benefits", "id": "benefits.MultiWindow"},
|
11
|
+
{"name": "Quick Application Development", "parentId": "Benefits", "id": "benefits.Quick"},
|
12
|
+
{"name": "Complexity and Effort", "parentId": "Benefits", "id": "benefits.Effort"},
|
13
|
+
{"name": "Forms Engine", "parentId": "Benefits", "id": "benefits.FormsEngine"},
|
14
|
+
{"name": "Features and Benefits Summary", "parentId": "Benefits", "id": "benefits.Features"},
|
15
|
+
{"name": "Getting Started", "parentId": null, "isLeaf": false, "id": "GettingStarted", "collapsed": true},
|
16
|
+
{"name": "Setup", "parentId": "GettingStarted", "id": "gettingstarted.Setup"},
|
17
|
+
{"name": "Workspaces and Applications", "parentId": "GettingStarted", "id": "gettingstarted.Workspaces"},
|
18
|
+
{"name": "Describing a View", "parentId": "GettingStarted", "id": "gettingstarted.DescribingTheUI"},
|
19
|
+
{"name": "Events", "parentId": "GettingStarted", "id": "gettingstarted.Events"},
|
20
|
+
{"name": "Component References", "parentId": "GettingStarted", "id": "gettingstarted.References"},
|
21
|
+
{"name": "Extending Classes", "parentId": "GettingStarted", "id": "gettingstarted.Extending"},
|
22
|
+
{"name": "Config", "parentId": "GettingStarted", "id": "gettingstarted.Config"},
|
23
|
+
{"name": "Shared Bindable Data", "parentId": "GettingStarted", "id": "gettingstarted.ComponentModels"},
|
24
|
+
{"name": "Guides", "parentId": null, "isLeaf": false, "id": "InDepth", "collapsed": true},
|
25
|
+
{"name": "Application Bootstrap", "parentId": "InDepth", "id": "guides.ApplicationBootstrap"},
|
26
|
+
{"name": "Instance Lifecycle", "parentId": "InDepth", "id": "guides.InstanceLifecycle"},
|
27
|
+
{"name": "Declarative Component Trees VS Imperative Vdom", "parentId": "InDepth", "id": "guides.DeclarativeComponentTreesVsImperativeVdom"},
|
28
|
+
{"name": "Shared Bindable Data (State Providers)", "parentId": "InDepth", "id": "guides.StateProviders"},
|
29
|
+
{"name": "Working with VDom", "parentId": "InDepth", "id": "guides.WorkingWithVDom"},
|
30
|
+
{"name": "Config System Deep Dive", "parentId": "InDepth", "id": "guides.ConfigSystemDeepDive"},
|
31
|
+
{"name": "Main Thread Addons: Interacting with the Browser", "parentId": "InDepth", "id": "guides.MainThreadAddons"},
|
32
|
+
{"name": "User Input (Forms)", "parentId": "InDepth", "id": "guides.Forms", "hidden": true},
|
33
|
+
{"name": "Component and Container Basics", "parentId": "InDepth", "id": "guides.ComponentsAndContainers"},
|
34
|
+
{"name": "Layouts", "parentId": "InDepth", "isLeaf": false, "id": "guides.Layouts", "hidden": true},
|
35
|
+
{"name": "Custom Components", "parentId": "InDepth", "id": "guides.CustomComponents", "hidden": true},
|
36
|
+
{"name": "Events", "parentId": "InDepth", "isLeaf": false, "id": "GuideEvents"},
|
37
|
+
{"name": "Custom Events", "parentId": "GuideEvents", "id": "guides.events.CustomEvents"},
|
38
|
+
{"name": "DOM Events", "parentId": "GuideEvents", "id": "guides.events.DomEvents"},
|
39
|
+
{"name": "Portal App", "parentId": "InDepth", "id": "guides.PortalApp"},
|
40
|
+
{"name": "Tables (Stores)", "parentId": "InDepth", "id": "guides.Tables", "hidden": true},
|
41
|
+
{"name": "Multi-Window Applications", "parentId": "InDepth", "id": "guides.MultiWindow", "hidden": true},
|
42
|
+
{"name": "Mixins", "parentId": "InDepth", "id": "guides.Mixins", "hidden": true},
|
43
|
+
{"name": "Tutorials", "parentId": null, "isLeaf": false, "id": "Tutorials", "collapsed": true},
|
44
|
+
{"name": "Rock Scissors Paper", "parentId": "Tutorials", "id": "tutorials.RSP", "hidden": true},
|
45
|
+
{"name": "Earthquakes", "parentId": "Tutorials", "id": "tutorials.Earthquakes"},
|
46
|
+
{"name": "Todo List", "parentId": "Tutorials", "id": "tutorials.TodoList"},
|
47
|
+
{"name": "JavaScript Classes", "parentId": null, "isLeaf": false, "id": "JavaScript", "hidden": true},
|
48
|
+
{"name": "Classes, Properties, and Methods", "parentId": "JavaScript", "id": "javascript.Classes"},
|
49
|
+
{"name": "Overriding Methods", "parentId": "JavaScript", "id": "javascript.Overrides"},
|
50
|
+
{"name": "Other JavaScript Class Features", "parentId": "JavaScript", "id": "javascript.ClassFeatures"},
|
51
|
+
{"name": "Super", "parentId": "JavaScript", "id": "javascript.Super"},
|
52
|
+
{"name": "New Node", "parentId": "JavaScript", "id": "javascript.NewNode"},
|
53
|
+
{"name": "Glossary", "parentId": null, "id": "Glossary"}
|
53
54
|
]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name" : "neo.mjs",
|
3
|
-
"version" : "10.0.0-beta.
|
3
|
+
"version" : "10.0.0-beta.2",
|
4
4
|
"description" : "Neo.mjs: The multi-threaded UI framework for building ultra-fast, desktop-like web applications with uncompromised responsiveness, inherent security, and a transpilation-free dev mode.",
|
5
5
|
"type" : "module",
|
6
6
|
"repository" : {
|
@@ -87,7 +87,7 @@
|
|
87
87
|
"highlightjs-line-numbers.js" : "^2.9.0",
|
88
88
|
"html-minifier-terser" : "^7.2.0",
|
89
89
|
"inquirer" : "^12.6.3",
|
90
|
-
"marked" : "^
|
90
|
+
"marked" : "^16.0.0",
|
91
91
|
"monaco-editor" : "0.50.0",
|
92
92
|
"neo-jsdoc" : "1.0.1",
|
93
93
|
"neo-jsdoc-x" : "1.0.5",
|
package/src/DefaultConfig.mjs
CHANGED
@@ -289,12 +289,12 @@ const DefaultConfig = {
|
|
289
289
|
useVdomWorker: true,
|
290
290
|
/**
|
291
291
|
* buildScripts/injectPackageVersion.mjs will update this value
|
292
|
-
* @default '10.0.0-beta.
|
292
|
+
* @default '10.0.0-beta.2'
|
293
293
|
* @memberOf! module:Neo
|
294
294
|
* @name config.version
|
295
295
|
* @type String
|
296
296
|
*/
|
297
|
-
version: '10.0.0-beta.
|
297
|
+
version: '10.0.0-beta.2'
|
298
298
|
};
|
299
299
|
|
300
300
|
Object.assign(DefaultConfig, {
|
package/src/Main.mjs
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
import Neo
|
2
|
-
import * as core
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
1
|
+
import Neo from './Neo.mjs';
|
2
|
+
import * as core from './core/_export.mjs';
|
3
|
+
import ClassHierarchyManager from './manager/ClassHierarchy.mjs';
|
4
|
+
import DomAccess from './main/DomAccess.mjs'; // has to get imported before DeltaUpdates
|
5
|
+
import DeltaUpdates from './main/DeltaUpdates.mjs';
|
6
|
+
import DomEvents from './main/DomEvents.mjs';
|
7
|
+
import Observable from './core/Observable.mjs';
|
8
|
+
import WorkerManager from './worker/Manager.mjs';
|
8
9
|
|
9
10
|
/**
|
10
11
|
* @class Neo.Main
|
package/src/Neo.mjs
CHANGED
@@ -466,11 +466,11 @@ Neo = globalThis.Neo = Object.assign({
|
|
466
466
|
proto = cls.prototype || cls,
|
467
467
|
ns = Neo.ns(proto.constructor.config.className, false),
|
468
468
|
protos = [],
|
469
|
-
cfg, config, ctor, ntype;
|
469
|
+
cfg, config, ctor, hierarchyInfo, ntype;
|
470
470
|
|
471
471
|
/*
|
472
472
|
* If the namespace already exists, directly return it.
|
473
|
-
* This can happen when using different versions of
|
473
|
+
* This can happen when using different versions of Neo.mjs
|
474
474
|
* => Especially singletons (IdGenerator) must stay unique.
|
475
475
|
*
|
476
476
|
* This can also happen when using different environments of neo.mjs in parallel.
|
@@ -583,6 +583,20 @@ Neo = globalThis.Neo = Object.assign({
|
|
583
583
|
Neo.applyToGlobalNs(cls)
|
584
584
|
}
|
585
585
|
|
586
|
+
hierarchyInfo = {
|
587
|
+
className : proto.className,
|
588
|
+
module : cls,
|
589
|
+
ntype : Object.hasOwn(proto, 'ntype') ? proto.ntype : null,
|
590
|
+
parentClassName: proto.__proto__?.className || null
|
591
|
+
};
|
592
|
+
|
593
|
+
if (Neo.manager?.ClassHierarchy) {
|
594
|
+
Neo.manager.ClassHierarchy.add(hierarchyInfo)
|
595
|
+
} else {
|
596
|
+
Neo.classHierarchyMap ??= {};
|
597
|
+
Neo.classHierarchyMap[proto.className] = hierarchyInfo
|
598
|
+
}
|
599
|
+
|
586
600
|
return cls
|
587
601
|
},
|
588
602
|
|
package/src/button/Base.mjs
CHANGED
@@ -100,9 +100,9 @@ class Button extends Component {
|
|
100
100
|
route_: null,
|
101
101
|
/**
|
102
102
|
* The text displayed on the button [optional]
|
103
|
-
* @member {String|null}
|
103
|
+
* @member {String|null} text=null
|
104
104
|
*/
|
105
|
-
|
105
|
+
text: null,
|
106
106
|
/**
|
107
107
|
* Transforms the button tag into an a tag [optional]
|
108
108
|
* @member {String|null} url_=null
|
@@ -95,8 +95,8 @@ class SettingsContainer extends Container {
|
|
95
95
|
ntype : 'component',
|
96
96
|
flag : 'day',
|
97
97
|
header: {text: 'Day'},
|
98
|
-
|
99
|
-
|
98
|
+
style : {padding: '20px'},
|
99
|
+
test : 'Day'
|
100
100
|
}, {
|
101
101
|
module: () => import('./settings/WeekContainer.mjs'),
|
102
102
|
flag : 'week',
|
@@ -490,7 +490,7 @@ class YearComponent extends Component {
|
|
490
490
|
{cls: ['neo-animation-wrapper'], cn: [
|
491
491
|
{cls: ['neo-content-wrapper'], cn: [
|
492
492
|
{cls: ['neo-year-header'], cn: [
|
493
|
-
{
|
493
|
+
{text: me.currentDate.getFullYear()},
|
494
494
|
{cls: ['neo-nav-button', 'neo-prev-button']},
|
495
495
|
{cls: ['neo-nav-button', 'neo-next-button']}
|
496
496
|
]},
|
@@ -539,7 +539,7 @@ class YearComponent extends Component {
|
|
539
539
|
for (; i < 7; i++) {
|
540
540
|
node = {
|
541
541
|
cls : ['neo-cell', 'neo-weekday-cell'],
|
542
|
-
|
542
|
+
text: me.intlFormat_day.format(date)
|
543
543
|
};
|
544
544
|
|
545
545
|
day = date.getDay();
|
@@ -591,8 +591,8 @@ class YearComponent extends Component {
|
|
591
591
|
|
592
592
|
cn: [{
|
593
593
|
cls : ['neo-cell', 'neo-weeknumber-cell'],
|
594
|
-
|
595
|
-
|
594
|
+
removeDom: !me.showWeekNumbers,
|
595
|
+
text : DateUtil.getWeekOfYear(weekDate)
|
596
596
|
}]
|
597
597
|
};
|
598
598
|
|
@@ -610,7 +610,7 @@ class YearComponent extends Component {
|
|
610
610
|
|
611
611
|
cn: [{
|
612
612
|
cls : ['neo-cell-content'],
|
613
|
-
|
613
|
+
text: hasContent ? day : me.showDisabledDays ? date.getDate() : ''
|
614
614
|
}]
|
615
615
|
};
|
616
616
|
|
@@ -679,7 +679,7 @@ class YearComponent extends Component {
|
|
679
679
|
|
680
680
|
monthVdom =
|
681
681
|
{cls: ['neo-month'], cn: [
|
682
|
-
{cls: ['neo-month-name'],
|
682
|
+
{cls: ['neo-month-name'], text: me.intlFormat_month.format(currentDate)},
|
683
683
|
me.createDayNamesRow()
|
684
684
|
]};
|
685
685
|
|
@@ -809,7 +809,7 @@ class YearComponent extends Component {
|
|
809
809
|
day = date.getDay();
|
810
810
|
node = vdom.cn[0].cn[1].cn[j].cn[1].cn[i];
|
811
811
|
|
812
|
-
node.
|
812
|
+
node.text = me.intlFormat_day.format(date);
|
813
813
|
|
814
814
|
if (!me.showWeekends && (day === 0 || day === 6)) {
|
815
815
|
node.removeDom = true
|
@@ -829,7 +829,7 @@ class YearComponent extends Component {
|
|
829
829
|
*
|
830
830
|
*/
|
831
831
|
updateHeaderYear() {
|
832
|
-
this.vdom.cn[0].cn[0].cn[0].
|
832
|
+
this.vdom.cn[0].cn[0].cn[0].text = this.currentDate.getFullYear()
|
833
833
|
}
|
834
834
|
|
835
835
|
/**
|
@@ -852,7 +852,7 @@ class YearComponent extends Component {
|
|
852
852
|
currentDate.setMonth(i);
|
853
853
|
currentDate.setDate(1);
|
854
854
|
|
855
|
-
vdom.cn[0].cn[1].cn[i].cn[0].
|
855
|
+
vdom.cn[0].cn[1].cn[i].cn[0].text = me.intlFormat_month.format(currentDate)
|
856
856
|
}
|
857
857
|
|
858
858
|
!silent && me.update()
|
@@ -63,7 +63,7 @@ class ColorsList extends List {
|
|
63
63
|
* Override this method for custom renderers
|
64
64
|
* @param {Object} record
|
65
65
|
* @param {Number} index
|
66
|
-
* @returns {Object|Object[]|String} Either a config object to assign to the item, a vdom cn array or a
|
66
|
+
* @returns {Object|Object[]|String} Either a config object to assign to the item, a vdom cn array or a string.
|
67
67
|
*/
|
68
68
|
createItemContent(record, index) {
|
69
69
|
return {style: {
|
@@ -43,7 +43,7 @@ class List extends ComponentList {
|
|
43
43
|
* Override this method for custom renderers
|
44
44
|
* @param {Object} record
|
45
45
|
* @param {Number} index
|
46
|
-
* @returns {Object|Object[]|String} Either a config object to assign to the item, a vdom cn array or a
|
46
|
+
* @returns {Object|Object[]|String} Either a config object to assign to the item, a vdom cn array or a string.
|
47
47
|
*/
|
48
48
|
createItemContent(record, index) {
|
49
49
|
let me = this,
|
@@ -485,10 +485,10 @@ class Component extends BaseComponent {
|
|
485
485
|
tag : 'span',
|
486
486
|
cls : ['neo-month-name'],
|
487
487
|
flag: 'month-name',
|
488
|
-
|
488
|
+
text: me.intlFormat_month.format(date)
|
489
489
|
}, {
|
490
490
|
vtype: 'text',
|
491
|
-
|
491
|
+
text : ` ${date.getFullYear()}`
|
492
492
|
}]
|
493
493
|
}]
|
494
494
|
};
|
@@ -499,8 +499,8 @@ class Component extends BaseComponent {
|
|
499
499
|
id : `${me.id}__day__${ymdDate}`,
|
500
500
|
cn : [{
|
501
501
|
cls : ['neo-day-number'],
|
502
|
-
|
503
|
-
|
502
|
+
id : `${me.id}__day_number__${ymdDate}`,
|
503
|
+
text: day
|
504
504
|
}]
|
505
505
|
};
|
506
506
|
|
@@ -530,12 +530,12 @@ class Component extends BaseComponent {
|
|
530
530
|
|
531
531
|
cn: [{
|
532
532
|
cls : ['neo-event-title'],
|
533
|
-
|
534
|
-
|
533
|
+
id : me.id + '__title__' + recordKey,
|
534
|
+
text: record.title
|
535
535
|
}, {
|
536
536
|
cls : ['neo-event-time'],
|
537
|
-
|
538
|
-
|
537
|
+
id : me.id + '__time__' + recordKey,
|
538
|
+
text: me.intlFormat_time.format(record.startDate)
|
539
539
|
}]
|
540
540
|
});
|
541
541
|
}
|
@@ -729,8 +729,8 @@ class Component extends BaseComponent {
|
|
729
729
|
if (flag) {
|
730
730
|
date = new Date(flag);
|
731
731
|
date.setMonth(date.getMonth() + 1);
|
732
|
-
header.cn[0].
|
733
|
-
header.cn[1].
|
732
|
+
header.cn[0].text = me.intlFormat_month.format(date);
|
733
|
+
header.cn[1].text = ` ${date.getFullYear()}`;
|
734
734
|
break
|
735
735
|
}
|
736
736
|
}
|
@@ -753,8 +753,8 @@ class Component extends BaseComponent {
|
|
753
753
|
i = 1,
|
754
754
|
day, node;
|
755
755
|
|
756
|
-
header.cn[0].
|
757
|
-
header.cn[1].
|
756
|
+
header.cn[0].text = me.intlFormat_month.format(date);
|
757
|
+
header.cn[1].text = ` ${date.getFullYear()}`;
|
758
758
|
|
759
759
|
date.setDate(me.currentDate.getDate() - me.currentDate.getDay() + me.weekStartDay);
|
760
760
|
|
@@ -764,7 +764,7 @@ class Component extends BaseComponent {
|
|
764
764
|
if (create) {
|
765
765
|
node = {
|
766
766
|
cls : ['neo-day-name'],
|
767
|
-
|
767
|
+
text: me.intlFormat_day.format(date)
|
768
768
|
};
|
769
769
|
|
770
770
|
if (!me.showWeekends && (day === 0 || day === 6)) {
|
@@ -777,7 +777,7 @@ class Component extends BaseComponent {
|
|
777
777
|
|
778
778
|
// the method could be called before the header content got created
|
779
779
|
if (node) {
|
780
|
-
node.
|
780
|
+
node.text = me.intlFormat_day.format(date);
|
781
781
|
|
782
782
|
if (!me.showWeekends && (day === 0 || day === 6)) {
|
783
783
|
node.removeDom = true
|
@@ -802,7 +802,7 @@ class Component extends BaseComponent {
|
|
802
802
|
months = VDomUtil.getFlags(me.vdom, 'month-name');
|
803
803
|
|
804
804
|
months.forEach(month => {
|
805
|
-
month.
|
805
|
+
month.text = me.intlFormat_month.format(date);
|
806
806
|
date.setMonth(date.getMonth() + 1);
|
807
807
|
});
|
808
808
|
|
@@ -582,8 +582,8 @@ class Component extends BaseComponent {
|
|
582
582
|
|
583
583
|
header =
|
584
584
|
{cls: ['neo-header-row-item'], removeDom: removeDom, cn: [
|
585
|
-
{cls: ['neo-day'],
|
586
|
-
{cls: dateCls,
|
585
|
+
{cls: ['neo-day'], text: me.intlFormat_day.format(date)},
|
586
|
+
{cls: dateCls, text: currentDate}
|
587
587
|
]};
|
588
588
|
|
589
589
|
return {column, header}
|
@@ -906,17 +906,17 @@ class Component extends BaseComponent {
|
|
906
906
|
|
907
907
|
cn: [{
|
908
908
|
cls : ['neo-event-time'],
|
909
|
-
|
910
|
-
|
909
|
+
id : `${me.id}__time__${recordKey}`,
|
910
|
+
text: me.intlFormat_time.format(record.startDate)
|
911
911
|
}, {
|
912
912
|
cls : ['neo-event-title'],
|
913
|
-
|
914
|
-
|
913
|
+
id : `${me.id}__title__${recordKey}`,
|
914
|
+
text: record.title
|
915
915
|
}, {
|
916
916
|
cls : ['neo-event-time', 'neo-event-end-time'],
|
917
|
-
html : me.intlFormat_time.format(record.endDate),
|
918
917
|
id : `${me.id}__enddate__${recordKey}`,
|
919
|
-
removeDom: !showEventEndTime
|
918
|
+
removeDom: !showEventEndTime,
|
919
|
+
text : me.intlFormat_time.format(record.endDate)
|
920
920
|
}],
|
921
921
|
|
922
922
|
style: {
|
@@ -975,8 +975,8 @@ class Component extends BaseComponent {
|
|
975
975
|
|
976
976
|
header.cn.push(
|
977
977
|
{cls: ['neo-header-row-item'], id: headerId, removeDom, cn: [
|
978
|
-
{cls: ['neo-day'],
|
979
|
-
{cls : dateCls,
|
978
|
+
{cls: ['neo-day'], id: `${headerId}_day`, text: me.intlFormat_day.format(date)},
|
979
|
+
{cls : dateCls, id: `${headerId}_date`, text: currentDate}
|
980
980
|
]})
|
981
981
|
} else {
|
982
982
|
Object.assign(content.cn[i], {
|
@@ -987,8 +987,8 @@ class Component extends BaseComponent {
|
|
987
987
|
});
|
988
988
|
|
989
989
|
Object.assign(header.cn[i], {id: headerId, removeDom});
|
990
|
-
Object.assign(header.cn[i].cn[0], {
|
991
|
-
Object.assign(header.cn[i].cn[1], {cls: dateCls,
|
990
|
+
Object.assign(header.cn[i].cn[0], {id: `${headerId}_day`, text: me.intlFormat_day.format(date)});
|
991
|
+
Object.assign(header.cn[i].cn[1], {cls: dateCls, id: `${headerId}_date`, text: currentDate})
|
992
992
|
}
|
993
993
|
|
994
994
|
date.setDate(date.getDate() + 1)
|
@@ -450,8 +450,8 @@ class EventDragZone extends DragZone {
|
|
450
450
|
endDate = me.adjustEndDate(endDate);
|
451
451
|
|
452
452
|
deltas.push({
|
453
|
-
id
|
454
|
-
|
453
|
+
id : me.dragProxy.vdom.cn[2].id,
|
454
|
+
textContent: owner.intlFormat_time.format(endDate)
|
455
455
|
});
|
456
456
|
|
457
457
|
if (keepEndDate || keepStartDate) {
|
@@ -460,8 +460,8 @@ class EventDragZone extends DragZone {
|
|
460
460
|
}
|
461
461
|
|
462
462
|
deltas.push({
|
463
|
-
id
|
464
|
-
|
463
|
+
id : me.dragProxy.vdom.cn[0].id,
|
464
|
+
textContent: owner.intlFormat_time.format(startDate)
|
465
465
|
});
|
466
466
|
|
467
467
|
// check if the node got added yet
|
@@ -179,16 +179,16 @@ class TimeAxisComponent extends Component {
|
|
179
179
|
*/
|
180
180
|
createItems() {
|
181
181
|
let {vdom} = this,
|
182
|
-
|
182
|
+
text, i;
|
183
183
|
|
184
184
|
vdom.cn = [];
|
185
185
|
|
186
186
|
for (i=0; i < 25; i++) {
|
187
|
-
|
187
|
+
text = i === 24 ? '00:00' : (i < 10 ? '0' : '') + i + ':00';
|
188
188
|
|
189
189
|
vdom.cn.push({
|
190
190
|
cls: ['neo-c-w-timeaxis-item'],
|
191
|
-
cn : [{
|
191
|
+
cn : [{text}]
|
192
192
|
})
|
193
193
|
}
|
194
194
|
}
|
package/src/component/Base.mjs
CHANGED
@@ -342,6 +342,11 @@ class Component extends Base {
|
|
342
342
|
* @member {String|null} tag_=null
|
343
343
|
*/
|
344
344
|
tag_: null,
|
345
|
+
/**
|
346
|
+
* The top level textContent of the component
|
347
|
+
* @member {String|null} text_=null
|
348
|
+
*/
|
349
|
+
text_: null,
|
345
350
|
/**
|
346
351
|
* Add tooltip config object or a string containing the display text
|
347
352
|
* See tooltip/Base.mjs
|
@@ -995,6 +1000,16 @@ class Component extends Base {
|
|
995
1000
|
}
|
996
1001
|
}
|
997
1002
|
|
1003
|
+
/**
|
1004
|
+
* Triggered after the text config got changed
|
1005
|
+
* @param {String|null} value
|
1006
|
+
* @param {String|null} oldValue
|
1007
|
+
* @protected
|
1008
|
+
*/
|
1009
|
+
afterSetText(value, oldValue) {
|
1010
|
+
this.changeVdomRootKey('text', value)
|
1011
|
+
}
|
1012
|
+
|
998
1013
|
/**
|
999
1014
|
* Triggered after the tooltip config got changed
|
1000
1015
|
* @param {Object|String} value
|
@@ -1417,8 +1432,8 @@ class Component extends Base {
|
|
1417
1432
|
cls: this.loadingSpinnerCls
|
1418
1433
|
}, {
|
1419
1434
|
cls : ['neo-loading-message'],
|
1420
|
-
|
1421
|
-
|
1435
|
+
removeDom: !Neo.isString(loadingMessage),
|
1436
|
+
text : loadingMessage
|
1422
1437
|
}]
|
1423
1438
|
}]
|
1424
1439
|
}
|
package/src/component/Chip.mjs
CHANGED
@@ -38,9 +38,9 @@ class Chip extends Component {
|
|
38
38
|
iconCls_: null,
|
39
39
|
/**
|
40
40
|
* The text displayed on the button [optional]
|
41
|
-
* @member {String|null}
|
41
|
+
* @member {String|null} text=null
|
42
42
|
*/
|
43
|
-
|
43
|
+
text: null,
|
44
44
|
/**
|
45
45
|
* Set this one to false when used in lists
|
46
46
|
* @member {Boolean} useDomListeners=true
|
@@ -132,7 +132,7 @@ class Chip extends Component {
|
|
132
132
|
textNode.removeDom = true
|
133
133
|
} else {
|
134
134
|
textNode.removeDom = false;
|
135
|
-
textNode.
|
135
|
+
textNode.text = value
|
136
136
|
}
|
137
137
|
|
138
138
|
this.update()
|
package/src/component/Circle.mjs
CHANGED
@@ -850,8 +850,8 @@ class Circle extends Component {
|
|
850
850
|
let me = this,
|
851
851
|
innerCircle = me.getInnerCircle();
|
852
852
|
|
853
|
-
innerCircle.cn[0].
|
854
|
-
innerCircle.cn[1].
|
853
|
+
innerCircle.cn[0].text = me.store?.getCount() || 0;
|
854
|
+
innerCircle.cn[1].text = me.title;
|
855
855
|
|
856
856
|
!silent && me.update()
|
857
857
|
}
|