Commit Graph

32 Commits

Author SHA1 Message Date
nathan
b7160e6eaf Et2TreeDropdown: stop constantly listening for document clicks, only listen when open 2024-09-12 08:32:28 -06:00
nathan
dcece87c9c Et2TreeDropdown: Better sizing & styling to more closely match select & other widgets 2024-09-05 14:56:54 -06:00
ralf
51e7269d88 using bootstrap icons as stock icons for categories (former api/images) and allow to search arbitrary bootstrap icons when adding/editing categories
also fixed error editing categories in the root ('0' is not allowed validation message)
2024-09-05 18:00:18 +02:00
ralf
dacd2e0c94 display emptyLabel as placeholder, until non-multiple UI is more selectbox like 2024-08-25 11:02:12 +02:00
milan
f683947836 changed tree-dropdown popup strategy to fixed to avoid auto resizing issues 2024-08-22 16:48:27 +02:00
ralf
38ae6e4408 fix some warnings 2024-08-22 14:35:36 +02:00
ralf
c18be4cf4d do not return folders, if leafOnly is set and some more docu 2024-08-22 14:18:54 +02:00
milan
0605f6c2f5 LeafOnly selection of et2-tree now possible
et2-tree-dropdown can now also be leafOnly used e.g. in timezone preferences
2024-08-22 12:54:38 +02:00
milan
4ba8866d9c Dropdown tree now has leafOnly property to pass on to et2-tree 2024-08-22 10:52:41 +02:00
milan
888f859097 cleanup tree and make Leaf Selection possible 2024-08-21 20:50:17 +02:00
milan
bca9931fba cat tree for selection of categories fix if value is not a string 2024-08-21 13:06:59 +02:00
nathan
d8d9847012 Fix Et2TreeDropDown did not properly handle required 2024-07-26 10:16:49 -06:00
nathan
28db39c18e Fix dropdown tree search
Was constantly re-setting search term & dropdown
2024-07-10 13:13:55 -06:00
ralf
16d42c69c5 exclude Et2.*(Readonly|Mobile) components from documentation:
- renamed Et2DateSinceReadonly to Et2DateSince as there is no non-readonly class
- enhance getSlClass() in cem.js to also return regular Et2 class, if there is no readonly one
- replace ? in since tag with 23.1 and added @since 23.1.x to Tree widgets (somehow not parsed!)
- updated etemplate2.0.(dtd|rng)
2024-06-18 11:09:06 +02:00
ralf
731a9d91af implement not strictly linked multiselect tree by using sl-tree selection="single" and sl-tree-item.selection:
- instead of showing checkboxes, we use the sl-tree-item.selection marker (blue left border) to show the multi-selection and sl-tree sl-selection-change event to set the value accordingly
- implement Et2Tree.setSubChecked(_id, _value) to allow apps to (un)check a hierarchy onclick of parent, still allowing to (un)select single children
- also change several tree methods to return the updateComplete promise to use in mail app.js instead of window.setInterval() to wait for tree loading
2024-04-22 16:52:47 +02:00
nathan
7fc73f4c38 Et2TreeDropdownCategory: Get category colors working 2024-02-28 14:59:39 -07:00
nathan
762a18e711 Fix Et2TreeDropdown context menu actions & missing validation error 2024-02-27 11:22:55 -07:00
nathan
7f8e62e915 Et2TreeDropdown: Pass actions on to tree 2024-02-26 17:03:57 -07:00
nathan
0f139fb257 Et2TreeDropdown: Single value tag takes full width 2024-02-26 16:54:07 -07:00
nathan
a9a26ffe39 Implement local search in SearchMixin & for Et2TreeDropdown
Add ability for SearchResult to have children
2024-02-23 10:49:16 -07:00
nathan
b0e8666ecb Implement searching in Et2TreeDropdown 2024-02-22 14:33:22 -07:00
nathan
ab27bcd823 Et2TreeDropdown: Document slots 2024-02-20 09:56:29 -07:00
nathan
48ed89b76f Update from changes in cce0ab57fa 2024-02-16 09:59:04 -07:00
nathan
a60299e114 Get category icons working 2024-02-15 10:41:40 -07:00
nathan
bebd121b60 Show leaf path as title/tooltip 2024-02-15 10:35:06 -07:00
nathan
ff4988b41e Split dropdown category tree into its own file, get colors working in tags 2024-02-15 10:13:01 -07:00
nathan
2bbac91254 Et2TreeDropdown fixes
- Fix ID / tag could be doubled by selecting the same tree node multiple times
- Fix global categories had their marker escaped
2024-02-14 15:26:39 -07:00
nathan
8b21d21291 Et2TreeDropdown: server round-trip working 2024-02-14 10:43:05 -07:00
nathan
62d9c222b6 Just get it working WIP
- Fix category tree structure
- Switch on tree multiple
probably lots of bugs still, looks like we may have to do click on tree = add / remove and not show the value after all
2024-02-13 17:15:23 -07:00
nathan
51f23a0dcf Et2TreeDropdown
- Better handling of horizontal space
- Single select closes dropdown immediately
- Selecting tree item actually changes value
2024-02-13 10:40:00 -07:00
nathan
c53e122564 Et2TreeDropdown: Add some keyboard interactions 2024-02-13 10:32:36 -07:00
nathan
94a32d2800 Et2TreeDropdown WIP
Initial commit.  Sort of works.
2024-02-13 10:32:36 -07:00