pmario
9cace159ab
add tf.toc-getTooltip function
2024-05-14 03:19:26 +02:00
pmario
e9d009a6a6
fix chevron spacing for custom itemTemplates
2024-05-13 14:10:29 +02:00
pmario
63fc0bc562
add cascade to check if macro prams and fields are valid. eg Caption has a value
2024-05-13 12:58:04 +02:00
pmario
04ea2dd076
add a tooltip and make caption the default fallback
2024-05-12 18:13:54 +02:00
pmario
ab2e571ee6
rename 1 variable change docs a bit
2024-05-04 15:28:11 +02:00
pmario
780cf038ab
toc - do not show "more" chevron, it all child nodes are hidden
2024-02-14 13:39:36 +01:00
pmario
781213911d
toc - add tc- prefix to class definitions, to make them more obvious
2024-02-14 13:38:35 +01:00
pmario
d0c7d7e307
toc-macros - somehow a "dot" slipped in with a commit :/
2024-02-10 17:58:33 +01:00
pmario
0bedb46e8a
change inline docs. Move \function tf.toc-stateTitle() up in the code near it's first use
2024-02-10 17:34:31 +01:00
pmario
cf35a264a8
updated inline docs
2024-02-09 12:23:24 +01:00
pmario
291e3a42b5
allow toc-filter fields to created open/close chevrons
2024-02-08 14:44:34 +01:00
pmario
6e23d8db51
CTRL-click should not create edundant state tiddlers if tag tiddlers include themself
2024-02-08 14:11:14 +01:00
pmario
13be3c2147
if currentTiddler includes itself as a child do not show a more-chevron
2024-02-08 13:42:58 +01:00
pmario
6ce2eaad2c
CTRL click on chevron expands / folds whole branch
2024-02-08 12:53:07 +01:00
pmario
bce803acc0
WIP recursive open - close with tags and path works with CTRL click and buttons
2024-02-07 20:27:23 +01:00
pmario
296743632d
improve inline docs
2024-02-07 14:32:22 +01:00
pmario
f0d7c8bbd6
move captionField in front of tagField
2024-02-07 13:17:38 +01:00
pmario
58c81598b5
add all new fields to all toc-macros. rename some internal variables
2024-02-07 12:45:12 +01:00
pmario
9b53df00a1
rename toc-captionField to toc-defaultItemTemplate and lists call toc-itemTemplate which is a new proc
2024-02-07 11:30:10 +01:00
pmario
a2afdc8c96
allow tagField and parentField instead of tags
2024-02-07 01:25:12 +01:00
pmario
655f9616e8
ren: viewField to captionField,viewFieldTemplate to captionFieldTemplate
2024-02-06 19:03:21 +01:00
pmario
5510e226bb
remove itemClassFilter from macro-calls, but leaf them alone in the procedure definitions. So parameter order is kept intakt
2024-02-06 18:47:33 +01:00
pmario
dbb27b55e9
fix let syntax
2024-02-06 18:39:46 +01:00
pmario
59b8264206
add viewField instead of captions, use viewFieldTemplate if defined to show item-link text. It always uses field:text
2024-02-06 17:39:51 +01:00
pmario
13c1affb0f
add global field names
2024-02-05 21:14:44 +01:00
pmario
d8662d4498
fix typo in class function
2024-02-05 20:10:29 +01:00
pmario
9de43bad05
rename toc-override -> toc-filter
2024-02-05 20:07:10 +01:00
pmario
8e1e875ebf
add class handling for toc-override
2024-02-04 22:29:07 +01:00
pmario
e884c1178c
change possible fields to: toc-hide, toc-override and toc-include
2024-02-04 21:57:34 +01:00
pmario
141f8029dc
toc-include replaces the default filter
2024-02-04 15:44:49 +01:00
pmario
51aa7a054a
show chevron if toc-included is the only "child" of a node. some code restructuring for better readability
2024-02-04 07:37:24 +01:00
pmario
e1a42ebf82
add new classes toc-item-included and toc-item-excluded, simplify code using more functions
2024-02-04 06:15:49 +01:00
pmario
f3a314adf0
add toc-include, toc-exclude to all tocs
2024-02-04 05:16:22 +01:00
pmario
39f3c4b7eb
use 2 underscores instead of 1 for better readability
2024-02-03 19:25:05 +01:00
pmario
745c7fbbcd
toc-exclude works, but should be improved
2024-02-03 03:04:41 +01:00
pmario
84167ed1e9
add internal variable prefixes to __exclude and __path to make the code less error prone
2024-02-02 00:42:40 +01:00
pmario
b322a70b86
toc - replace reveal with conditional if
2024-02-01 21:51:53 +01:00
pmario
955d5a299b
toc rewrite -- clean up the code and add comme important comments
2024-02-01 19:23:48 +01:00
pmario
9b0a461f85
toc rewrite wip - works - replaced emptyMessages with conditional if
2024-02-01 18:53:55 +01:00
pmario
20c043ef7d
toc rewrite wip - works - before improving emptymessages
2024-02-01 18:07:40 +01:00
pmario
625d029207
replace <$qualify name="toc-state" title={{{ xxx filter }}} > with
...
\function makeTocState() [[$:/state/toc]addsuffix<__path__>addsuffix[/]addsuffix<currentTiddler>]
<$qualify name="toc-state" title=<<makeTocState>> >
2024-02-01 14:12:35 +01:00
Jeremy Ruston
267521ad1b
Preparing for v5.3.3-prerelease
2023-12-13 08:16:59 +00:00
Jeremy Ruston
ca41a8db04
Core macros don't allow pragmas in action strings ( #7855 )
...
* First commit
* Transclude preferred over macrocall
2023-11-24 10:48:48 +00:00
Jeremy Ruston
62bb8affa4
Add data attribute support to button and other widgets ( #7769 )
...
* Add data attribute support to button widget
* Fix typo
* Refactor ready for making mechanism more generic
* Apply more generic implementation to multiplate widgets
* Refactor to use existing widget.assignAttributes() method
* Fix typo
* Clarify docs
* Update docs
* Update select widget to support style.* attributes
* Remove obsolete comment
* Fixes refresh issues for checkbox and links widgets for data attributes (#7846 )
* fix: refresh issues with checkbox and links widgets
* fix: indenting
* Feat: add support for data attributes to Draggable and Droppable widgets (#7845 )
* Docs clarification
* docs: add style and data attributes to Draggable and Droppable widget docs (#7850 )
* Refactors Select widget to directly create DOM node (#7848 )
* fix: refactored SelectWidget to directly create DOM nodes
* fix: refactored SelectWidget to directly create DOM nodes
* fix: improve refresh handling for select widget
* Fixes issues in the PR "Button widget data attributes" (#7852 )
* fix: fixed ordered attributes handling and improved tests to catch event attributes
* fix: clean up code from testing
* fix: more tests and refactoring
* fix: use lowercase when checking for event attribute prefix
* fix: use lowercase when checking for event attribute prefix
* fix: changed comment wording
* fix: minor refactoring
* refactor: for brevity
---------
Co-authored-by: Saq Imtiaz <saq.imtiaz@gmail.com>
2023-11-22 20:05:40 +00:00
Mario Pietsch
a4850ba3d9
make all list-* macros readable for easier future improvements ( #7551 )
...
* make all list-* widgets readable for easier future improvements
* remove whitespace on closing braces
2023-11-21 11:30:05 +00:00
Scott Sauyet
23a576b8bd
Tweak TOC to not show expander for sublist with all children excluded ( #7802 )
2023-10-25 13:37:24 +01:00
Jeremy Ruston
fa9bfa07a0
Fix missing closing tag in tag-pill-inner macro
...
Fixes #7697
2023-08-25 14:06:17 +01:00
Jeremy Ruston
70309c67d1
Prepare for v5.3.2-prerelease
2023-08-20 11:45:38 +01:00
Mario Pietsch
b000f20283
Fix toc indentation problem ( #7627 )
...
* fix toc indentation problem
* add caption to Third & Fourth toc tiddlers to see caption-handling
* reset modified fields
2023-07-22 12:41:19 +01:00
Mario Pietsch
3bd8c5d50d
Add code-body to unsafe templates, and new cascade for tiddlers with system tags ( #7583 )
2023-07-15 18:12:10 +01:00