-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: connected page size select on async table
- Loading branch information
Showing
11 changed files
with
156 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ button { | |
|
||
button:disabled, | ||
button[disabled] { | ||
cursor: unset | ||
cursor: unset; | ||
} | ||
|
||
:root { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
export function jpTreeStructure(tree: Element): Object { | ||
if(tree.tagName !== 'JP-TREE' || !tree.hasAttribute('value')) | ||
return '' | ||
if (tree.tagName !== 'JP-TREE' || !tree.hasAttribute('value')) return ''; | ||
|
||
let structure = {} | ||
structure[tree.getAttribute('value')] = [] | ||
let structure = {}; | ||
|
||
structure[tree.getAttribute('value')] = []; | ||
|
||
for (const child of tree.children) { | ||
if(!child.hasAttribute('value')) continue; | ||
if (!child.hasAttribute('value')) continue; | ||
|
||
if(child.tagName == 'JP-NODE'){ | ||
structure[tree.getAttribute('value')].push(child.getAttribute('value')) | ||
if (child.tagName == 'JP-NODE') { | ||
structure[tree.getAttribute('value')].push(child.getAttribute('value')); | ||
} | ||
if(child.tagName == 'JP-TREE'){ | ||
structure[tree.getAttribute('value')].push(jpTreeStructure(child)) | ||
if (child.tagName == 'JP-TREE') { | ||
structure[tree.getAttribute('value')].push(jpTreeStructure(child)); | ||
} | ||
} | ||
return structure | ||
} | ||
return structure; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
export default interface SearchService { | ||
search: (str: string) => Promise<Array<{ label?: string; value: string; selected?: boolean; disabled?: boolean }>>; | ||
loadMore: (str: string) => Promise<Array<{ label?: string; value: string; selected?: boolean; disabled?: boolean }>>; | ||
getSingle: (value: string) => Promise<{ label?: string; value: string; selected?: boolean; disabled?: boolean }>; | ||
search: ( | ||
str: string | ||
) => Promise<Array<{ label?: string; value: string; selected?: boolean; disabled?: boolean }>>; | ||
loadMore: ( | ||
str: string | ||
) => Promise<Array<{ label?: string; value: string; selected?: boolean; disabled?: boolean }>>; | ||
getSingle: ( | ||
value: string | ||
) => Promise<{ label?: string; value: string; selected?: boolean; disabled?: boolean }>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.