Lwc Utils Versions Save

Reusable LWCs to 10x your solution building speed. Design interactive, data-dense UIs with LWC + Screen Flows.

1.9.0

2 years ago

Updated installation links here

Changed Components

  1. Introduces configurable column type attributes to soqlDatatable.

    • Configure the granularity in lightning-datatable typeAttribute properties in the new Datatable_Column_Config__mdt object.
  2. Configuration page layout for various Datatable configs has been improved.

Appendix

  • PRs: #111, #112

1.8.0

2 years ago

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 a lightning-card base component title 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.

messageService and related component updates:

  • Updated with an open variant of some APIs which will bypass any boundaries set up.
    • This supports better dialog close behavior with "Tab Focused Dialogs" release update.
    • See Event Pulbisher examples for more detail.

Appendix

  • Issues: #97
  • PRs: #98, #100

1.7.0

2 years ago

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

  • Issues: #47, #82
  • PRs: #96

1.6.0

3 years ago

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) to messageService.

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 in sfdx-project.json.
    • recipes will only have the current release logged in sfdx-project.json.

Recipe Installation Note: If you have 1.5.4 of the recipes installed in your sandbox, you must first uninstall it before installing 1.6.0 of recipes. This is due to the fact I had to unwind some flexipage attributes, and there is a dependency there.

Appendix

  • Issues: #84, #90
  • PRs: #85, #91

1.5.4

3 years ago

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 in sfdx-project.json.
    • recipes will only have the current release logged in sfdx-project.json.

Appendix

  • Issues: #75
  • PRs: #76

1.5.3

3 years ago

Updated installation links here

Changed Components

  • soqlDatatable and collectionDatatable have a new showSearch (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 via showSearch = 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

  • Issues: #9
  • PRs: #72, #72, #73

1.5.0

3 years ago

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.

Appendix

  • Issues in this release: #57 #58 #59 #60
  • PRs in this release: #68 #67 #66 #65 #64 #62

1.4.0

3 years ago

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:

  1. Type__c of Table Action, Table Overflow Action, or Row Action.
  2. 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.
  3. Define a value in only one of the picklist values.
    • Table Action Name, valid values of custom_lwc/custom_flow.
    • Overflow Action Name, valid values of custom_lwc/custom_flow.
    • Row Action Name logic and values is unchanged.

See the attached image for clarity (which is included in recipes):

Screen Shot 2021-01-18 at 9 09 52 PM

And now, an image not for ants:

Screen Shot 2021-01-18 at 9 15 55 PM

Finally, here is the page layout (with instructions) for Datatable_Action_Config__mdt:

Screen Shot 2021-01-18 at 9 19 06 PM

Resolves #37

  • Moved cmdt related page layouts from recipes to core.
  • Clears up ambiguity by including page layouts in core for soqlDatatable related cmdt.
  • Adds tooltips and more validation rules to soqlDatatable related cmdt.

IMPORTANT NOTE: If you are upgrading, you may have to install 1.4.0 twice per this known issue to get the correct page layout. I have not tested on a clean 1.4.0 install but please be aware of this workaround.

Fixes #55

1.3.0

3 years ago
  1. 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.
  2. Moved useLoadStyleHackForOverflow from static resource to renderedCallback style tag appending.

    • The overflow hack is better scoped now, so it can be used when multiple soql/collectionDatatables are on the same page.

1.2.1

3 years ago

Fixes #49

  • Adds customHeight aka Table Height (px) to both soql / 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.