Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v6.7.6 #4970

Merged
merged 188 commits into from
Oct 4, 2023
Merged

v6.7.6 #4970

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
188 commits
Select commit Hold shift + click to select a range
5a68e43
Merge pull request #4864 from neomjs/main
tobiu Sep 7, 2023
a55b6a1
util.HashHistory: second() #4865
tobiu Sep 7, 2023
16c9246
Floating component auto-aligning (#4851)
ExtAnimal Sep 10, 2023
57044d6
examples.ConfigurationViewport: hotfix
tobiu Sep 10, 2023
4ef4763
examples.form.field.select.MainContainer: removed the update() call a…
tobiu Sep 10, 2023
2f6b809
button.Base: afterSetMenu() => cleanup
tobiu Sep 10, 2023
ba978c4
menu.List: removed onItemClick() => a list select will now show subMe…
tobiu Sep 10, 2023
e5bd491
menu.List: - testing log
tobiu Sep 10, 2023
4e5f2cf
menu.List: showSubMenu() => added a negative top&left style to preven…
tobiu Sep 10, 2023
4e0f029
button.Base: afterSetMenu() => docs comment => added objects
tobiu Sep 10, 2023
cd4390c
button.Base: destroy() #4867
tobiu Sep 10, 2023
40df7d4
button.Base: destroy() #4867
tobiu Sep 10, 2023
0e4ca8e
button.Base: toggleMenu() => focus() is no longer working for the 2+ …
tobiu Sep 10, 2023
08aff3c
examples.form.field.select.MainContainer: width control #4869
tobiu Sep 10, 2023
f50d367
examples.form.field.select.MainContainer: cleanup
tobiu Sep 10, 2023
d805987
Fix https://github.com/neomjs/neo/issues/4870
ExtAnimal Sep 11, 2023
d9f00b4
Revert removal of Observable
ExtAnimal Sep 11, 2023
77a4f62
component.Base: cleanup
tobiu Sep 11, 2023
3a0e787
Updated iconCls to remove serveral items which contain several cls in…
Dinkh Sep 11, 2023
614bfc9
button.Base: adjust the initial main menu rendering position to a neg…
tobiu Sep 11, 2023
1ef84c9
menu.List: use a top-level background color #4872
tobiu Sep 11, 2023
39da015
component.Base: getApp() => get app() refactoring #4874
tobiu Sep 11, 2023
c67c523
#4874 using the new app shortcut
tobiu Sep 11, 2023
6e68118
button.Base, menu.List => remove the negative offsets for showing pop…
tobiu Sep 11, 2023
1bc3ce2
#4873 examples.ConfigurationViewport: onSwitchTheme() => applying cha…
tobiu Sep 11, 2023
8c49391
component.Base: theme_ config #4876
tobiu Sep 11, 2023
007736f
button.Base: afterSetTheme() => update the related list theme #4877
tobiu Sep 11, 2023
ab6e0e4
menu.List: afterSetTheme() => pass the theme to child menus #4878
tobiu Sep 11, 2023
df08dc1
form.field.Picker: afterSetTheme() => adjust the picker #4879
tobiu Sep 11, 2023
fc1c026
remote method calls: ensure the appName (window identifier) is presen…
tobiu Sep 11, 2023
069bbdb
list.Base: method order
tobiu Sep 11, 2023
0ca251d
form.Container: adjustTreeLeaves() => do not use assign: true for arr…
tobiu Sep 11, 2023
bca7a06
v6.4.0
tobiu Sep 11, 2023
7b91928
menu.List: re-add onItemClick() #4883
tobiu Sep 11, 2023
07e07b2
v6.4.1
tobiu Sep 11, 2023
e47ebf4
Merge branch 'main' into dev
tobiu Sep 11, 2023
8d2285a
v6.4.1 (#4884) (#4885)
tobiu Sep 11, 2023
80d82d4
form.field.Checkbox: update the styling for firefox (hiding the defau…
tobiu Sep 11, 2023
c9f4412
form.field.Date: hide the default trigger in Firefox > v109 #4887
tobiu Sep 11, 2023
993eb03
v6.4.2
tobiu Sep 11, 2023
bf31a73
Merge branch 'main' into dev
tobiu Sep 11, 2023
47f04ca
Neo.worker.App: setConfigs() remote method #4889
tobiu Sep 11, 2023
97662e9
v6.4.3
tobiu Sep 11, 2023
39cd7aa
Merge branch 'main' into dev
tobiu Sep 11, 2023
19d40ab
v6.4.3 (#4890) (#4891)
tobiu Sep 11, 2023
0cac92f
main.DomAccess: minor cleanup
tobiu Sep 11, 2023
cc5f937
calendar.view.EditEventContainer: regression bug => using form.Contai…
tobiu Sep 12, 2023
4c171cf
calendar.view.EditEventContainer: onFocusLeave() cleanup
tobiu Sep 12, 2023
19bd2f8
#4893 form.Container: adjustTreeLeaves() => passing all field paths t…
tobiu Sep 12, 2023
e460894
docs build throws a JS error #4896
tobiu Sep 12, 2023
7919990
Fix fallback aligning, clipping and moving on resize-caused move (#4894)
ExtAnimal Sep 12, 2023
6200d85
form.Container: adjustTreeLeaves() => sharper separation of the key &…
tobiu Sep 12, 2023
41db2d6
#4893 removed a testing log
tobiu Sep 12, 2023
a45aa9c
component.Base: not registering needed updates to parents before a vn…
tobiu Sep 12, 2023
597fba6
v6.5.0
tobiu Sep 12, 2023
7b9ba34
Merge branch 'main' into dev
tobiu Sep 12, 2023
8eb4f61
field.Base: getPath() => return null in case a field has no name #4899
tobiu Sep 12, 2023
987bbc1
v6.5.1
tobiu Sep 12, 2023
87a31d7
Merge branch 'main' into dev
tobiu Sep 12, 2023
e62472b
form.Container: adjustTreeLeaves() comment update
tobiu Sep 12, 2023
220ce38
util.Function: debounce #4901
tobiu Sep 14, 2023
69f060c
util.Function: convert the class into named exports #4902
tobiu Sep 14, 2023
a4b88df
core.Base: static delayable #4903
tobiu Sep 14, 2023
b0a1388
util.Function: debounce #4901 leading edge
tobiu Sep 14, 2023
36fbc78
util.Rectangle: dropping in Nige's latest changes
tobiu Sep 14, 2023
bf182fe
v6.5.2
tobiu Sep 14, 2023
69d9103
Merge branch 'main' into dev
tobiu Sep 14, 2023
f306160
dependencies update
tobiu Sep 14, 2023
0b8f360
util.Function: debounce() => doc comments update
tobiu Sep 14, 2023
a12038c
form.field.Checkbox, form.field.Text: Fire userChange event #4818
tobiu Sep 14, 2023
23b51a7
Form.view.FormContainerController: cleanup
tobiu Sep 14, 2023
efe9541
v6.5.3
tobiu Sep 14, 2023
f56424b
Merge branch 'main' into dev
tobiu Sep 14, 2023
9f59d84
util.Function: throttle #4908
tobiu Sep 14, 2023
84c77f9
util.Function: debounce => cleanup to be consistent to throttle
tobiu Sep 14, 2023
f5fc6a4
v6.5.4
tobiu Sep 14, 2023
3ec5686
Merge branch 'main' into dev
tobiu Sep 14, 2023
5399ed9
util.Function: throttle() => don't lose the last tick #4910
tobiu Sep 15, 2023
4b7152f
form.field.Base: remove the delayable => now covered inside field.Bas…
tobiu Sep 15, 2023
a75885b
v6.5.5
tobiu Sep 15, 2023
dd0936a
util.Function: comments cleanup
tobiu Sep 15, 2023
3812cf9
dependencies update
tobiu Sep 15, 2023
3b06b35
calendar.view.week.Component: afterSetMounted() sometimes sends reque…
tobiu Sep 15, 2023
e4703d7
component.DateSelector: onComponentWheel() => deltaX, deltaY vars
tobiu Sep 15, 2023
6a55700
component.Base: reference_ config => mapping reference names into the…
tobiu Sep 18, 2023
b51e948
v6.5.6
tobiu Sep 18, 2023
ea6c4d5
Merge branch 'main' into dev
tobiu Sep 18, 2023
8725df8
button.Base: afterSetItems() => we need a more flexible way to handle…
tobiu Sep 18, 2023
129d93f
list.Base: cleanup
tobiu Sep 18, 2023
e7bb67e
v6.5.7
tobiu Sep 18, 2023
db6d34d
v6.5.7
tobiu Sep 18, 2023
80c9f21
Merge branch 'main' into dev
tobiu Sep 18, 2023
810916d
workflows: npm publish needs an update #4921
tobiu Sep 18, 2023
d87f194
v6.5.8
tobiu Sep 18, 2023
cbeb84f
Merge branch 'main' into dev
tobiu Sep 18, 2023
37159ac
button.Base: afterSetMenu() => pass the parent model, if available #4923
tobiu Sep 19, 2023
fe69432
menu.List: minor cleanup
tobiu Sep 19, 2023
05744c1
dependencies update
tobiu Sep 19, 2023
cea8786
v6.5.9
tobiu Sep 19, 2023
f7b31ad
Merge branch 'main' into dev
tobiu Sep 19, 2023
cd2af3d
menu.List: afterSetItems() => proper way to remove old items #4925
tobiu Sep 19, 2023
7f97878
v6.5.10
tobiu Sep 19, 2023
1fb7385
Merge branch 'main' into dev
tobiu Sep 19, 2023
edfa87b
component.Base: get parent() convenience shortcut #4927
tobiu Sep 20, 2023
6bc01cf
#4927 adjusting relevant spots
tobiu Sep 20, 2023
f43c92e
WIP
ExtAnimal Sep 15, 2023
e8130f1
Fix latest FileUpload bugs
ExtAnimal Sep 20, 2023
38886e8
examples.dialog.DemoDialog: cleanup
tobiu Sep 20, 2023
9171c69
dialog.Base: cleanup
tobiu Sep 20, 2023
3cc28f4
dialog.Base: replace Neo.currentWorker.promiseMessage() #4929
tobiu Sep 20, 2023
f16839a
dialog.Base: cleanup
tobiu Sep 20, 2023
df25da9
main.DomAccess: cleanup
tobiu Sep 20, 2023
7779724
v6.6.0
tobiu Sep 20, 2023
d0aa681
Merge branch 'main' into dev
tobiu Sep 20, 2023
f72a2a1
core.Base: ordering static class fields
tobiu Sep 21, 2023
0753838
Hide align subject on target not present in DOM
ExtAnimal Sep 21, 2023
054c1eb
main.DomAccess: minor cleanup
tobiu Sep 21, 2023
fc59a29
v6.6.1
tobiu Sep 21, 2023
9fc0fe4
Merge branch 'main' into dev
tobiu Sep 21, 2023
1abbe09
form.field.FileUpload: doc comments for configs cleanup
tobiu Sep 21, 2023
18af4a6
form.field.FileUpload: _vdom formatting (matching html indentation)
tobiu Sep 21, 2023
097a5dd
component.Base: update() => removed the aync
tobiu Sep 21, 2023
eb1161a
Make sure file name is truncated
ExtAnimal Sep 22, 2023
3b62070
vdom.Helper: createDeltas() => removeNode => edge case where the delt…
tobiu Sep 22, 2023
1073dda
v6.6.2
tobiu Sep 22, 2023
52f303e
Merge branch 'main' into dev
tobiu Sep 22, 2023
7fac69d
vdom.Helper: createDeltas() => removeNode edge case => only search th…
tobiu Sep 22, 2023
6263ef9
list.Base / menu.List: add support for hidden list items #4936
tobiu Sep 22, 2023
50426b3
v6.6.3
tobiu Sep 22, 2023
a2661e4
Merge branch 'main' into dev
tobiu Sep 22, 2023
d35c58b
DefaultConfig: resolved the merge conflict fail
tobiu Sep 22, 2023
dd0cdf9
v6.6.4
tobiu Sep 22, 2023
1c0a85f
Merge branch 'main' into dev
tobiu Sep 22, 2023
30be5f2
util.VDom: syncVdomIds() => only update vdom ids in case there is no …
tobiu Sep 22, 2023
9480fd3
v6.6.5
tobiu Sep 22, 2023
27b293a
util.VDom: forceSyncVdomIds() #4941
tobiu Sep 22, 2023
f4c470d
component.Base: syncVnodeTree() => doc comment update
tobiu Sep 22, 2023
19b0627
component.DateSelector: cleanup
tobiu Sep 22, 2023
ac4b92e
v6.7.0
tobiu Sep 22, 2023
919434d
Merge branch 'main' into dev
tobiu Sep 22, 2023
7a95798
dependencies update
tobiu Sep 22, 2023
c8087c1
examples.dialog.DemoDialog: different title for the 2nd dialog
tobiu Sep 25, 2023
835fd66
examples.ConfigurationViewport: switch theme => smarter button check …
tobiu Sep 25, 2023
203bd87
toolbar.Breadcrumb: default button ui => tertiary
tobiu Sep 25, 2023
e2360e3
examples.ConfigurationViewport: top level themes config (making it ea…
tobiu Sep 25, 2023
fb21444
form.field.Base: increase the debounce timers to 1000ms #4944
tobiu Sep 26, 2023
41868ac
v6.7.1
tobiu Sep 26, 2023
22e5c0d
Merge branch 'main' into dev
tobiu Sep 26, 2023
e218a61
component.Base: up() => docs comment improvement
tobiu Sep 26, 2023
171c1f9
Neo.getComponent(this.parentId) => this.parent
tobiu Sep 27, 2023
d753243
table.View: getColumn() => not accessing header buttons #4946
tobiu Sep 27, 2023
e49961b
v6.7.2
tobiu Sep 27, 2023
c9ea14d
Merge branch 'main' into dev
tobiu Sep 27, 2023
846533c
component.Base: getDomRect() => inconsistent return values #4950
tobiu Sep 27, 2023
c22ec67
main.DomAccess: getBoundingClientRect() does not pass minHeight & min…
tobiu Sep 27, 2023
27e1ccd
main.DomAccess: getBoundingClientRect() minor cleanup
tobiu Sep 27, 2023
aae132f
draggable.toolbar.SortZone: switchItems() => regression issue #4948
tobiu Sep 27, 2023
71cb06b
main.DomAccess: -testing log
tobiu Sep 27, 2023
defedcb
table.Container: get headerToolbar(), get view() convenience shortcut…
tobiu Sep 28, 2023
54459ff
form.field.Text: emptyValue config #4953
tobiu Sep 28, 2023
31e1b45
v6.7.3
tobiu Sep 28, 2023
8663ec2
Merge branch 'main' into dev
tobiu Sep 28, 2023
8ec05c1
Extend error message handling
ThorstenRaab Sep 28, 2023
e49844d
#4956 shortening the logic
tobiu Sep 28, 2023
94217c5
v6.7.4
ThorstenRaab Sep 29, 2023
10ee813
Merge branch 'main' into dev
ThorstenRaab Sep 29, 2023
499bcb6
calendar.view.MainContainer: regression bug => the DateSelector jumps…
tobiu Sep 30, 2023
b1c0ab1
dependencies update
tobiu Oct 2, 2023
5118134
component.Base: cleanup (doc comments)
tobiu Oct 2, 2023
a6c5d2f
tab.header.Toolbar: sortable #4767
tobiu Oct 2, 2023
2af4af5
core.Base: merge() => must not call itself recursively for null value…
tobiu Oct 2, 2023
bf02153
combine Neo.merge() & core.Base: merge() #4961
tobiu Oct 2, 2023
bc466e6
#4961 cleanup
tobiu Oct 2, 2023
38cff2c
v6.7.5
tobiu Oct 2, 2023
674dc17
Merge branch 'main' into dev
tobiu Oct 2, 2023
065f8aa
main.DomAccess: doc comments, method order
tobiu Oct 2, 2023
03c435f
dialog.Base: showing a dialog with out an animateTargetId breaks #4963
tobiu Oct 2, 2023
1efed7e
examples.dialog.DemoDialog: modal state for child dialogs #4964
tobiu Oct 2, 2023
42c9c37
#4964 examples.dialog.MainContainer: pass changes of the modal checkb…
tobiu Oct 2, 2023
952f5d5
examples.dialog.MainContainer: animated checkbox #4965
tobiu Oct 2, 2023
65d98e3
dialog.Base: close button throws an error, in case there is no animat…
tobiu Oct 2, 2023
4b53ba0
examples.dialog.DemoDialog: polishing
tobiu Oct 3, 2023
51a7129
covid tables: replacing the deprecated getView() with view
tobiu Oct 3, 2023
110a924
dialog.Base: dragproxy regression issue #4967
tobiu Oct 4, 2023
a9d4676
examples.dialog.DemoDialog: display additional dialogs with a random …
tobiu Oct 4, 2023
0b4b7a3
worker.App: webpack magic comments #4969
tobiu Oct 4, 2023
351c5e4
v6.7.6
tobiu Oct 4, 2023
269febb
Merge branch 'main' into dev
tobiu Oct 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
WIP
  • Loading branch information
ExtAnimal authored and tobiu committed Sep 20, 2023
commit f43c92efca252573d8d46419dd0eef0e27aabf50
39 changes: 36 additions & 3 deletions examples/dialog/DemoDialog.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Dialog from '../../src/dialog/Base.mjs';
import SelectField from '../../src/form/field/Select.mjs';
import Button from '../../src/button/Base.mjs';

/**
* @class Neo.examples.dialog.DemoDialog
Expand All @@ -13,9 +14,15 @@ class DemoDialog extends Dialog {

wrapperStyle: {
width : '40%'
},
}
}

construct() {
super.construct(...arguments);

const me = this;

items : [{
me.items = [{
module : SelectField,
labelText: 'Select',

Expand All @@ -33,7 +40,33 @@ class DemoDialog extends Dialog {
return result;
})()
}
}]
}, {
module : Button,
handler: me.createDialog.bind(me),
iconCls: 'fa fa-window-maximize',
text : 'Create new modal Dialog',
}];
}

createDialog(data) {
let me = this;

data.component.disabled = true;

me.dialog = Neo.create(DemoDialog, {
appName : me.appName,
boundaryContainerId: me.boundaryContainerId,
listeners : {close: me.onWindowClose, scope: me},
modal : true
});
}

onWindowClose() {
let button = this.down({
text: 'Create new modal Dialog'
});

button.disabled = false;
}
}

Expand Down
10 changes: 9 additions & 1 deletion examples/dialog/MainContainer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ class MainContainer extends Viewport {
listeners : {change: me.onDragLimitChange, scope: me},
style : {marginLeft: '3em'},
valueLabelText: 'Limit Drag&Drop to the document.body'
}, {
module : CheckBox,
checked : true,
hideLabel : true,
hideValueLabel: false,
style : {marginLeft: '3em'},
valueLabelText: 'Modal'
}, '->', {
module : Button,
handler: me.switchTheme.bind(me),
Expand All @@ -71,7 +78,8 @@ class MainContainer extends Viewport {
animateTargetId : data.component.id,
appName : me.appName,
boundaryContainerId: me.boundaryContainerId,
listeners : {close: me.onWindowClose, scope: me}
listeners : {close: me.onWindowClose, scope: me},
modal : me.down({ valueLabelText : 'Modal' }).checked
});
}

Expand Down
37 changes: 21 additions & 16 deletions resources/scss/src/dialog/Base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,33 @@
}
}

.neo-dialog-wrapper {
display : flex;
position: absolute;
z-index : 20; // ensure to be on top of table headers
.neo-dialog-modal-mask {
position : fixed;
top : 0;
left : 0;
bottom : 0;
right : 0;
background-color : rgba(100, 100, 100, 0.5);
backdrop-filter : blur(1px);
z-index : 1000;
}

transition-duration : 200ms;
transition-property : height, left, top, transform, width;
transition-timing-function: ease-out;
.neo-dialog {
border : 1px solid var(--dialog-border-color);
display : flex;
flex-direction: column;

&.animated-hiding-showing {
transition-duration : 200ms;
transition-property : height, left, top, transform, width;
transition-timing-function: ease-out;
}

&.neo-maximized {
height : 98% !important;
left : 1% !important;
top : 1% !important;
transform: none;
transform: none!important;
width : 98% !important;

&.neo-panel {
Expand All @@ -41,14 +54,6 @@
}
}
}
}

.neo-dialog {
border : 1px solid var(--dialog-border-color);
display : flex;
flex : 1 0 auto;
flex-direction: column;
position : relative;

&.neo-panel {
.neo-footer-toolbar {
Expand Down
30 changes: 17 additions & 13 deletions src/component/Base.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -902,20 +902,24 @@ class Base extends CoreBase {
* @returns {Promise<void>}
*/
async alignTo(spec={}) {
const me = this;
const
me = this,
align = {
...me.align,
...spec,
id : me.id,
configuredFlex : me.configuredFlex,
configuredWidth : me.configuredWidth,
configuredHeight : me.configuredHeight,
configuredMinWidth : me.configuredMinWidth,
configuredMinHeight : me.configuredMinHeight,
configuredMaxWidth : me.configuredMaxWidth,
configuredMaxHeight : me.configuredMaxHeight
};

await Neo.main.DomAccess.align({
...me.align,
...spec,
id : me.id,
configuredFlex : me.configuredFlex,
configuredWidth : me.configuredWidth,
configuredHeight : me.configuredHeight,
configuredMinWidth : me.configuredMinWidth,
configuredMinHeight : me.configuredMinHeight,
configuredMaxWidth : me.configuredMaxWidth,
configuredMaxHeight : me.configuredMaxHeight
});
if (align.target) {
await Neo.main.DomAccess.align(align);
}
}

/**
Expand Down
Loading
Loading