From 6dd466ddaf822f49ab6097319994c57c21b86cbb Mon Sep 17 00:00:00 2001 From: zadam Date: Fri, 3 Nov 2023 12:23:14 +0100 Subject: [PATCH] updates --- docs/backend_api/becca_entities_bnote.js.html | 6 +- docs/frontend_api/BasicWidget.html | 27 +----- docs/frontend_api/NoteContextAwareWidget.html | 27 +----- docs/frontend_api/RightPanelWidget.html | 86 ++++++++++--------- docs/frontend_api/entities_fnote.js.html | 4 +- .../frontend_api/widgets_basic_widget.js.html | 13 +-- .../widgets_right_panel_widget.js.html | 32 +++++-- package-lock.json | 62 ++++++------- package.json | 8 +- 9 files changed, 124 insertions(+), 141 deletions(-) diff --git a/docs/backend_api/becca_entities_bnote.js.html b/docs/backend_api/becca_entities_bnote.js.html index dec3f5ce6..b28fbc47c 100644 --- a/docs/backend_api/becca_entities_bnote.js.html +++ b/docs/backend_api/becca_entities_bnote.js.html @@ -119,7 +119,7 @@ class BNote extends AbstractBeccaEntity { this.utcDateCreated = utcDateCreated || dateUtils.utcNowDateTime(); /** @type {string} */ this.utcDateModified = utcDateModified; - /** + /** * set during the deletion operation, before it is completed (removed from becca completely) * @type {boolean} */ @@ -784,7 +784,7 @@ class BNote extends AbstractBeccaEntity { } else if (a.parentNote?.isHiddenCompletely()) { return 1; } else { - return -1; + return 0; } }); @@ -804,7 +804,7 @@ class BNote extends AbstractBeccaEntity { const aBranch = becca.getBranchFromChildAndParent(a.noteId, this.noteId); const bBranch = becca.getBranchFromChildAndParent(b.noteId, this.noteId); - return aBranch?.notePosition < bBranch?.notePosition ? -1 : 1; + return (aBranch?.notePosition - bBranch?.notePosition) || 0; }); } diff --git a/docs/frontend_api/BasicWidget.html b/docs/frontend_api/BasicWidget.html index 021f24af1..2e8edd905 100644 --- a/docs/frontend_api/BasicWidget.html +++ b/docs/frontend_api/BasicWidget.html @@ -310,7 +310,7 @@ For information on using widgets, see the tutorial widget_basics. -

doRender() → {JQuery.<HTMLElement>}

+

doRender()

@@ -321,6 +321,7 @@ For information on using widgets, see the tutorial widget_basics. Method used for rendering the widget. Your class should override this method. +The method is expected to create a this.$widget containing jQuery object @@ -364,7 +365,7 @@ Your class should override this method.
Source:
@@ -389,28 +390,6 @@ Your class should override this method. -
Returns:
- - -
- Your widget. -
- - - -
-
- Type -
-
- -JQuery.<HTMLElement> - - -
-
- - diff --git a/docs/frontend_api/NoteContextAwareWidget.html b/docs/frontend_api/NoteContextAwareWidget.html index cd5cee960..cafbd5af4 100644 --- a/docs/frontend_api/NoteContextAwareWidget.html +++ b/docs/frontend_api/NoteContextAwareWidget.html @@ -628,7 +628,7 @@ -

doRender() → {JQuery.<HTMLElement>}

+

doRender()

@@ -639,6 +639,7 @@ Method used for rendering the widget. Your class should override this method. +The method is expected to create a this.$widget containing jQuery object @@ -687,7 +688,7 @@ Your class should override this method.
Source:
@@ -712,28 +713,6 @@ Your class should override this method. -
Returns:
- - -
- Your widget. -
- - - -
-
- Type -
-
- -JQuery.<HTMLElement> - - -
-
- - diff --git a/docs/frontend_api/RightPanelWidget.html b/docs/frontend_api/RightPanelWidget.html index 2913dd240..307ecefd4 100644 --- a/docs/frontend_api/RightPanelWidget.html +++ b/docs/frontend_api/RightPanelWidget.html @@ -93,7 +93,7 @@
Source:
@@ -172,8 +172,10 @@ -
Inherited From:
-