* Implement translations and indentation fixes for Advanced Info tab
* update change note
* Update CascadeInfo hint for current tiddler context
Clarified hint for cascade info in TiddlerInfo.
* docs: update github-links in release note #9634
* feat: eventcatcher with pointer capture support
* fix: various cleanups and improvements
* chore: lint
* chore: lint
* docs: updated eventcatcher docs
* docs: added changenote
* feat: provide access to event properties via JSON blob
* fix: added updated utils file
* fix: guard against missing nodes and not element nodes
* UI: Show details on cascade filters in the "Advanced info" tab
* Update CascadeInfo.tid with new formatting
* Remove codeblock for conciseness
* Add change note for #9634
* Refactor CascadeInfo.tid for active filters
Improve filter logic and names of variable
* Change heading names
Updated the CascadeInfo.tid to change 'Active Filter Condition' to 'Active Cascade Filter' and adjusted the corresponding variables.
* Allow title, tags, text as focus for editing existing tiddlers
* Add release note
* Update description field
* refresh select widget, it .default parameter is changed
* remove default variable, because it is not needed anymore. select widget refresh handling deals with it
* Undo select widget changes
* Initial commit
The idea is to extend the macro call syntax to accept dynamic parameter values (ie thing:{{more}} etc). Eventually, this will work in all the contexts in which the double angle bracket syntax is valid.
This initial commit gets the tests passing, but doesn't yet activate the new functionality.
* Test for standalone macro calls with dynamic parameters
* Parse attribute macros with the new parser
This fixes the tests
* Test for attribute macros
* Add some examples
* Tweak examples
* Fix test
* Temporarily disable a broken serializer test
* Fix/dynamic macro calls test (#9459)
* Revert "Temporarily disable a broken serializer test"
This reverts commit b3144300ee.
* restore synamic parameter parse result
* lint
* lint
* remove duplicate
* Update core/modules/parsers/parseutils.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update editions/test/tiddlers/tests/data/serialize/DynamicWidgetAttribute.tid
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update editions/test/tiddlers/tests/data/serialize/DynamicWidgetAttribute.tid
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: mixed qouted and unquoted
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Fix unneeded diff
* Minor docs update
* Genuflecting to the linter
* Remove debug logging
* Add change note
* Allow single closing square brackets within double square brackets quoted strings
* Only allow new style parameter values if the separator is an equals sign
* On reflection, new style values should not be allowed for anonymous parameters
Backwards compatibility
* Docs updates
* Docs updates
---------
Co-authored-by: lin onetwo <linonetwo012@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Make draft title translatable
* Update change note
* Improve number handling
Now generates "Draft of '...' 2" instead of "Draft 2 of '...'"
* Improve whitespace handling
We no longer needs to add whitespace in languages. We now handle it in javascript.
* Update language naming
* Update zh-Hans translation
* Update change note
* Refactor logic to make it less complex
Since we don't need to care about draft numbers, we can have two different templates for draft title with and without attribution. No need to trim the string now.
Also, we can reuse the getSubstitutedText method
* Update translators edition
* fixup! Update translators edition
* Switch to transclude and variable mechanism
* Adapt translators to the new mechanism
* Update change note
* Further simplify the logic
$tw.language.getString can already wikify translatable strings. No need for this.renderText
* Introduced preliminary idea for infinite recurse exception
* Better handling of infinite recursion
But it could be better still...
* the TransclusionError is a proper error
Moved the magic number to be on the error's class. Not sure if that's
a great idea.
* Fixed minor minor issue that came up in conflict
The minor fix to the jasmine regexp that escaped a '+' somehow
broke some random test.
* Removing patch fix for recursion errors
* Fixed issue where buttton and other widgets don't clean up
* Added release notes for #9548
* Update test-widget.js
If I don't fix those indentations, the entire TW codebase will explode or soemthing.
* Update test-widget.js
These lint problems are wasting my time.
* Fixed all core widgets to not leak when renderChildren fails
* Updated release notes to reflect what I'm actually fixing
* Update test-widget.js
Added warning not to use for-of loop for defining tests. The iterating variable needs to have its own method scope, or it risks being the same value for all tests.
* Refactored fields.tid
* Add changenote
* Optimize indentation and remove unneeded variable
* Consolidate some variables, procedures and functions
* Streamlined conditional and reveal structures
* Eliminate the fieldmangler widget
* Add tc-edit-field-exists to new field name input if applicable
* Call save-tiddler-actions on Ctrl-Enter in name input field
* feat: support for data-attributes and on load actions
* feat: support for data-attributes and on load actions
* fix: typo
* fix: simplify variable assignment
* docs: added changenote
* Fix: bug in multivalue default params
* Enhance release notes for version 5.4.0
Updated GitHub links and contributors for release notes.
* Add FunctionDefaultValues test for default parameters
* Update function default values in FunctionDefaultValues.tid
* Update #8972.tid
* fix: correctly resolve default values for functions
* Update #8972.tid
* Fixes#8092 SelectWidget does not work with multiple options organised into group
* Consolidate variables
* Apply suggestion from @saqimtiaz
* Update core/modules/widgets/select.js
Co-authored-by: Mario Pietsch <pmariojo@gmail.com>
* added release note
* chore: lint fixes
---------
Co-authored-by: Saq Imtiaz <saq.imtiaz@gmail.com>
Co-authored-by: Mario Pietsch <pmariojo@gmail.com>
* Create RootStylesheet.tid
* put stylesheets into single <style> tags
* viewHandler should not be a widget
* format RootStylesheet
* add ROOT_STYLESHEET_TITLE constant
* use let widget in RootStylesheet
* use view widget from #8135 for testing
* reformat RootStylesheet
* update view widget
* update view widget
* update view widget
* update view widget
* update view widget
* update view widget
* trying to fix the date parsing
* refactor view widget with more extensible architecture
* remove performance instrumentation
* hardcode reset and base stylesheets
* adopt ES2017 syntax for view widget
* don't hardcode vanilla/base
* remove unused constructors
* remove unused variable
* make refresh method static
* trying to fix missingThis
* add changenote
* revert change in vanilla/base
* Revert changes to the view widget
* Refactor RootStylesheet.tid
* Use transclude widget instead of view widget
* Remove hardcoded noramlize.css
* Add comment for debugging
* Migrate some templates to use RootStylesheet
* Remove PAGE_STYLESHEET_TITLE
Since it is no longer used in render.js
* Update change note
---------
Co-authored-by: Simon Huber <huber.simon@protonmail.com>
* Initial commit
* Add line ending configuration for consistent tests
* Initial commit
* Correctly consider editcost parameter
* Move diffPartsToChars() to $tw.utils
* Remove superfluous file
* Correct "efficiency" parameter naming in the documentation
The parameter was incorrectly referred to as "efficent" in several places.
* Update diffPartsToChars to ES2017 style
* Consolidate let/const declarations
* Revert the list-tagged-draggable to use title field by default
* Update list.tid
It seems `<$transclude field=<<__field__>> />` when field default value is empty does not work as expected.
This commit uses `field:"title"` instead of `field:""` in the list-tagged-draggable header.
* Update list.tid
The redundant `field` removed. The new `displayField` attribute is used to let user choose the filed they like to display when the list items are rendered as simple links.
* Update list.tid
The proposed field attribute in list-tagged-draggable updated to use the same `displayField` aslist-links-draggable.
* Create #9177
change note for #9177 was created
* Update list.tid
The `list-links-draggable` now is fully backward compatible. It uses caption as default field as before and is compatible with `list-links`.
The `list-tagged-draggable` is fully backward compatible while got a new displayField parameter.
* Update list-tagged-draggable Macro.tid
Update docs to reflect new displayField parameter
* Update list-links-draggable Macro.tid
Update documentation to reflect the new displayField parameter.
* Update list-tagged-draggable Macro.tid
Update docs. Remove formatting error in doc.
* Locale support for sort operator
* Add checkLanguageCode util function
* Update docs & add language code validation
* Replace multiple isDescending with reverse
* Revert "Replace multiple isDescending with reverse"
This reverts commit 793177b8bc.
* Simplify sortTiddler with Intl.Collator
* Add change notes
* Remove comment
* Update makeCompareFunction to support locale
* Update checkLanguageCode
* Add locale support for sortsub
* Add locale support for sort filter run prefix
* Revert "Add locale support for sort filter run prefix"
This reverts commit 9479a156d7.
* Remove checkLanguageCode
Since filters are able to catch errors now
* Update locale example
* Revert " Add locale support for sortsub"
This reverts commit 4a617188fc.
* Revert "Update makeCompareFunction to support locale"
This reverts commit 0ebca08036.
* Update docs
* Update change note
* Bidirectional improvements for core classes
* Fix Control Panel table text direction
* Switch to logical properties
* Add -webkit-margin-* properties
* Improve backward compatibility
* Use supports CSS at-rule for fallback
* Tiddler controls, alert, TOC update.
* tc-tree & testcase update
* .tc-sidebar-scrollable use new syntax
* Snow white use standard value
* Update divider
* Avoid negative logic
* Remove :dir rules at the moment
* Use property procedures
* Add change note
* Update blockquote
* Update unfold banner
* Update tiddlerinfo close button
* Group supports rule
* Update tiddler title icon
* Fix wrong float and margin
* Migrate to diff-match-patch-es & update api
* Update acknowledgements
* Update change notes
* Fix editcost attribute not working
* Make library compatible with ES2017