Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Monster
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Javascript
Monster
Commits
60718acb
Verified
Commit
60718acb
authored
3 weeks ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: send an event after succesfully import
parent
07b99970
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/components/tree-menu/tree-menu.mjs
+10
-10
10 additions, 10 deletions
source/components/tree-menu/tree-menu.mjs
with
10 additions
and
10 deletions
source/components/tree-menu/tree-menu.mjs
+
10
−
10
View file @
60718acb
...
@@ -25,10 +25,9 @@ import {
...
@@ -25,10 +25,9 @@ import {
assembleMethodSymbol
,
assembleMethodSymbol
,
CustomElement
,
CustomElement
,
getSlottedElements
,
getSlottedElements
,
initMethodSymbol
,
registerCustomElement
,
registerCustomElement
,
}
from
"
../../dom/customelement.mjs
"
;
}
from
"
../../dom/customelement.mjs
"
;
import
{
findTargetElementFromEvent
}
from
"
../../dom/events.mjs
"
;
import
{
findTargetElementFromEvent
,
fireEvent
}
from
"
../../dom/events.mjs
"
;
import
{
findElementWithSelectorUpwards
}
from
"
../../dom/util.mjs
"
;
import
{
findElementWithSelectorUpwards
}
from
"
../../dom/util.mjs
"
;
import
{
Formatter
}
from
"
../../text/formatter.mjs
"
;
import
{
Formatter
}
from
"
../../text/formatter.mjs
"
;
import
{
isFunction
,
isString
}
from
"
../../types/is.mjs
"
;
import
{
isFunction
,
isString
}
from
"
../../types/is.mjs
"
;
...
@@ -81,7 +80,7 @@ const firstRunDoneSymbol = Symbol("firstRunDone");
...
@@ -81,7 +80,7 @@ const firstRunDoneSymbol = Symbol("firstRunDone");
*
*
* @since 1.0.0
* @since 1.0.0
* @summary A TreeMenu control
* @summary A TreeMenu control
* @fires
monster-fetch
ed
* @fires
entries-import
ed
*/
*/
class
TreeMenu
extends
CustomElement
{
class
TreeMenu
extends
CustomElement
{
/**
/**
...
@@ -120,13 +119,13 @@ class TreeMenu extends CustomElement {
...
@@ -120,13 +119,13 @@ class TreeMenu extends CustomElement {
* @property {string} templates.main Main template
* @property {string} templates.main Main template
* @property {Datasource} datasource data source
* @property {Datasource} datasource data source
* @property {Object} mapping
* @property {Object} mapping
* @property {String} mapping.selector
=*
Path to select the appropriate entries
* @property {String} mapping.selector Path to select the appropriate entries
* @property {String} mapping.labelTemplate
=""
template with the label placeholders in the form ${name}, where name is the key
* @property {String} mapping.labelTemplate template with the label placeholders in the form ${name}, where name is the key
* @property {String} mapping.keyTemplate
=""
template with the key placeholders in the form ${name}, where name is the key
* @property {String} mapping.keyTemplate template with the key placeholders in the form ${name}, where name is the key
* @property {String} mapping.rootReferences
=['0', undefined, null]
* @property {String} mapping.rootReferences
the root references
* @property {String} mapping.idTemplate
=id
* @property {String} mapping.idTemplate
template with the id placeholders in the form ${name}, where name is the key
* @property {String} mapping.parentKey
=
parent
* @property {String} mapping.parentKey
the
parent
key
* @property {String} mapping.selection
* @property {String} mapping.selection
the selection
*/
*/
get
defaults
()
{
get
defaults
()
{
return
Object
.
assign
({},
super
.
defaults
,
{
return
Object
.
assign
({},
super
.
defaults
,
{
...
@@ -513,6 +512,7 @@ function importEntries() {
...
@@ -513,6 +512,7 @@ function importEntries() {
queueMicrotask
(()
=>
{
queueMicrotask
(()
=>
{
this
.
setOption
(
"
entries
"
,
options
);
this
.
setOption
(
"
entries
"
,
options
);
fireEvent
(
this
,
"
entries-imported
"
);
});
});
return
this
;
return
this
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment