Releases: tsalb/lwc-utils
1.9.0
Updated installation links here
Changed Components
-
Introduces configurable column type attributes to
soqlDatatable
.- Configure the granularity in
lightning-datatable
typeAttribute
properties in the newDatatable_Column_Config__mdt
object.
- Configure the granularity in
-
Configuration page layout for various
Datatable
configs has been improved.
Appendix
1.8.0
Updated installation links here
Changed Components
soqlDatatable
updates:
- Add
iconName
. See help tooltip. - Improve api initiated
refresh
UX (spinners now work better). - Add
composedTitle
slot for putting custom components inside alightning-card
base componenttitle
slot. - Remove case sensitivity for
checkboxType
. - Clean
selectedRows
output when passing to a Flow table action.- Seems Summer 20 made some changes to how Flow ingests a serialized
sObject
inputVariable. - This doesn't fix it, but it does strip the flattened (parent) tableData prior to sending, just in case.
- Seems Summer 20 made some changes to how Flow ingests a serialized
messageService
and related component updates:
- Updated with an
open
variant of some APIs which will bypass anyboundaries
set up.- This supports better dialog close behavior with "Tab Focused Dialogs" release update.
- See Event Pulbisher examples for more detail.
Appendix
1.7.0
Updated installation links here
IMPORTANT NOTE:
If you're upgrading from a previous release, follow the instructions in this issue.
Changed Components
- This release adds
base
to a few generically named components. This effectively renames components in your org. - Adjusts the search default behavior for datatables in this lib, hopefully for the better!
Appendix
1.6.0
Updated installation links here
IMPORTANT NOTE PRE-EMPTING SUMMER 21
If you are experiencing any issues with either summer 21 or any error mentioned in issue #95, please follow the thread there for a workaround or unlisted hotfix patch (
1.6.1
).
New Components
- Adds aura's
workspaceApi
(with some limitations) tomessageService
.
Changed Components
MessageServiceHandler
can now be given a custom boundary, allowing for some granular behavior in lightning service console.- Also, introduces additional recipes (in a service console app) to showcase this.
- General bugfixes and improvements to util code.
Housekeeping
- Starting this release:
core
will only have the current and previous logged insfdx-project.json
.recipes
will only have the current release logged insfdx-project.json
.
Recipe Installation Note: If you have
1.5.4
of the recipes installed in your sandbox, you must first uninstall it before installing1.6.0
of recipes. This is due to the fact I had to unwind some flexipage attributes, and there is a dependency there.
Appendix
1.5.4
Updated installation links here
Changed Components
- Fixed issue where lookup cell values (
collectionDatatable
/soqlDatatable
) were not working as expected in some scenarios.- Introduced by some overzealous truthy checks from Global Fuzzy Search in previous release.
Housekeeping
- Starting this release:
core
will only have the current and previous two releases logged insfdx-project.json
.recipes
will only have the current release logged insfdx-project.json
.
Appendix
1.5.3
Updated installation links here
Changed Components
soqlDatatable
andcollectionDatatable
have a newshowSearch
(Show Search) public design prop which shows Global (Fuse Fuzzy) Search.- See wiki for more details.
datatable
contains the actual search input, but specific implementations need to expose it viashowSearch = true
.
Considerations
- If you plan on using global search with inline edit for picklist/lookup, please enable the
Allow Overflow (EXPERIMENTAL)
.- Because search results can return only a few rows, the dropdown for both picklist/lookup will get cut off.
- The downside of this experimental feature (to allow dropdown overflow) is it removes the ability for vertical/horizontal scrolling.
- When inline edit saves, global search is undone (search parameters cleared).
- Post MVP for global search, I may take a look at "holding" the search value and applying it to the table during a refresh from server.
Housekeeping
- Add some recipes to prettier ignore.
- Cleanup readme images (since things are in wiki now).
Appendix
1.5.0
This is a fairly significant release with the following milestones:
New Components
- Introduces the EventPublisher component to help close dialogs and other
message-service
related things.- Two flavors: local flow action (aura) and flow screen component (lwc).
- Introduces the csvDatatable (BETA).
Changed Components
- soqlDatatable has updated public events, public methods, and added a new slot.
Housekeeping
- Fixed
eslint
errors and deprecated pre-commit hooks in favor of actions (thank you @jlyon87!). - Moved most of the README contents to the Wiki.
- Branch protection against
master
has been added.- Only
sfdx-project.json
changes need to go through a PR. - All install URLs are now more easily maintained in the wiki.
- Only
Appendix
1.4.0
Resolves #38
Adds a new Datatable_Action_Config__mdt.Type__c
value of Table Overflow Action
which adds to the overflow (dropdown) menu of table actions above each table.
This datamodel change is backwards compatible since it can't deactivate currently used values in Datatable_Action_Config__mdt.Type__c
. Instead, it marks them with (OLD)
.
You can continue to use the old configs but for new ones consider migrating to the new format which requires:
Type__c
ofTable Action
,Table Overflow Action
, orRow Action
.Order__c
is now required (via validation rules) for each of the above selections.Table Action
= 1 or 2 (which replaces the old- Primary
and- Secondary
values).Table Overflow Action
>= 3 (which is new, and these are additional actions in the dropdown on the right).Row Action
order logic is unchanged.
- Define a value in only one of the picklist values.
Table Action Name
, valid values ofcustom_lwc
/custom_flow
.Overflow Action Name
, valid values ofcustom_lwc
/custom_flow
.Row Action Name
logic and values is unchanged.
See the attached image for clarity (which is included in recipes
):
And now, an image not for ants:
Finally, here is the page layout (with instructions) for Datatable_Action_Config__mdt
:
Resolves #37
- Moved cmdt related page layouts from
recipes
tocore
. - Clears up ambiguity by including page layouts in
core
forsoqlDatatable
related cmdt. - Adds tooltips and more validation rules to
soqlDatatable
related cmdt.
IMPORTANT NOTE:
If you are upgrading, you may have to install1.4.0
twice per this known issue to get the correct page layout.
I have not tested on a clean1.4.0
install but please be aware of this workaround.
Fixes #55
1.3.0
-
Fixed issues with
soql
/collectionDatatable
meta property configs for Screen Flows.- This might be a breaking change if you used
collectionDatatable.recordCollection
in any way, it was originally meant as input only and this fixes that. - This might be a breaking change if you used
useLoadStyleHackForOverflow
in the past few days, it was originally meant as input only and this fixes that.
- This might be a breaking change if you used
-
Moved
useLoadStyleHackForOverflow
from static resource torenderedCallback
style tag appending.- The overflow hack is better scoped now, so it can be used when multiple
soql
/collectionDatatables
are on the same page.
- The overflow hack is better scoped now, so it can be used when multiple
1.2.1
Fixes #49
- Adds
customHeight
aka Table Height (px) to bothsoql
/collectionDatatable
for Screen Flows.- Screen flows won't support relative vh (view height).
- Adds the
loadStyle
hack which forces CSS overflow so that in-line edit of picklists can overflow below the datatable container.- Use at the risk of minor CSS issues.
- Should only be used when in-line edit is required for < 5 rows.
- Fixes incorrect display of picklist values when database saved value is not found in the picklist options.