woylie
Doggo 0.18.2, 0.18.1 and 0.18.0 have been released.
Fixed
alert_dialog,modal: Show an open dialog as a modal again when a patch moves it without changing it, which 0.18.1 missed. Dialogs opened over it stay on top. Focus stays where it was, and goes back to the opener when the dialog closes.
Link: Release 0.18.2 · woylie/doggo · GitHub
Fixed
alert_dialog,modal: Show an open dialog as a modal again after a patch moves it in the DOM, instead of leaving it open in the page.
Link: Release 0.18.1 · woylie/doggo · GitHub
Added
Doggo.Components: Add adefaultsbuild option that sets the defaults of attributes and slots. Expressions written in the build call are evaluated at render time.Doggo.Form: New module withDoggo.Form.field_errors_id/1,Doggo.Form.field_description_id/1,Doggo.Form.input_aria_describedby/3,Doggo.Form.input_aria_errormessage/2andDoggo.Form.translate_error/1, for form controls with the same ids and ARIA attributes asfield.Doggo.JS: New module withDoggo.JS.show_modal/2,Doggo.JS.hide_modal/2andDoggo.JS.show_tab/3.accordion,property_list,table,tabs: Accept HEEx in the section title, the label of a property, the label of an action and the label of a panel.date: Add aprecisionattribute.date,datetime,time: Add alocalizeattribute that formats the value in the browser, in the language of the page and the time zone of the user.field: Add atranslate_errorbuild option.field,radio_group: Accept HEEx in the labels and descriptions of checkbox and radio options.relative_time: New component.table: Add alabelledbyattribute.@woylie/doggo: AddlocalizeTimes()andrelativeTimes().
Changed
Doggo.Components: Evaluate the texts and contents set in the build call at render time, so agettextcall returns the text for the current locale.alert,alert_dialog,modal: Replace theclose_labelattribute and thecloseslot with build options.alert,app_bar,callout,page_header: Replace thetitleattribute with a:titleslot.carousel: Replace thecarousel_roledescription,slide_roledescription,pagination_labelandpagination_slide_labelattributes with build options.combobox: Replace the:clearand:toggleslots with build options.date: Write the full value of aDateTimeorNaiveDateTimein thedatetimeattribute.date,datetime,time: Add the default base classesdate,datetimeandtime.datetime,time: Leave out the seconds withprecision={:minute}.drawer: Rename the:mainslot to:body, and thedrawer-mainclass todrawer-body.field: Rename the:addon_leftand:addon_rightslots to:addon_startand:addon_end, the classes tofield-input-addon-startandfield-input-addon-end, and thedata-addonvalues tostartandend.icon,icon_sprite: Renametexttolabelandtext_positiontolabel_position, thedata-text-positionattribute todata-label-position, and theicon-textclass toicon-label.time: Pass aDateTimeorNaiveDateTimeto the formatters as given, and write its full value in thedatetimeattribute.- Dependencies: Require Elixir
~> 1.17. - Dependencies: Make
phoenix_storybookan optional dependency.
Deprecated
Doggo: DeprecateDoggo.show_modal/2,Doggo.hide_modal/2andDoggo.show_tab/3in favour ofDoggo.JS.show_modal/2,Doggo.JS.hide_modal/2andDoggo.JS.show_tab/3.
Removed
field: Remove thegettextattribute and thegettext_modulebuild option.
Fixed
Doggo.Components: Recompile a module that builds components when a component module of Doggo changes.date,datetime,time: Raise anArgumentErrorthat names the accepted structs for a value of another type, instead of aFunctionClauseError.date,datetime,time: Write a validdatetimeattribute: at most three fractional digits, no attribute for a year before 1, and an offset with seconds in UTC.
How to upgrade
-
Add
phoenix_storybookto your dependencies if you use the Doggo stories.+ {:phoenix_storybook, "~> 1.1"} -
Doggo: ReplaceDoggo.show_modal/2,Doggo.hide_modal/2andDoggo.show_tab/3withDoggo.JS.show_modal/2,Doggo.JS.hide_modal/2andDoggo.JS.show_tab/3.- <.link phx-click={Doggo.show_modal("pet-modal")}>Open</.link> + <.link phx-click={Doggo.JS.show_modal("pet-modal")}>Open</.link> -
alert,alert_dialog,modal: Moveclose_labeland the:closeslot to the build call.- <.modal id="pet-modal" close_label={gettext("Close")}> + build_modal(close_label: gettext("Close")) -
alert,app_bar,callout,page_header: Pass the title in a slot.- <.alert title="Saved"> + <.alert> + <:title>Saved</:title> -
carousel: Movecarousel_roledescription,slide_roledescription,pagination_labelandpagination_slide_labelto the build call. -
combobox: Move the:clearand:toggleslots to the build call. -
date,datetime,time: Update CSS and tests that expectclass=""or six fractional digits, and tests that expect:00seconds withprecision={:minute}. -
date,time: Update tests that expect a date-only or time-onlydatetimeattribute for aDateTimeorNaiveDateTimevalue. -
time: Update formatters that match a%Time{}, since aDateTimeorNaiveDateTimevalue is passed as given. -
drawer: Rename the:mainslot and the.drawer-mainselectors.- <:main>…</:main> + <:body>…</:body> -
field: Rename the addon slots, classes anddata-addonvalues.- <:addon_left>…</:addon_left> + <:addon_start>…</:addon_start> - .field-input-addon-right, [data-addon="right"] + .field-input-addon-end, [data-addon="end"] -
field: Replace thegettextattribute and thegettext_modulebuild option with thetranslate_errorbuild option.- build_field(gettext_module: MyAppWeb.Gettext) + build_field(translate_error: &MyAppWeb.CoreComponents.translate_error/1) -
icon,icon_sprite: Renametextandtext_position, and the selectors.- <.icon name="info" text="Info" text_position="after" /> + <.icon name="info" label="Info" label_position="after" /> - [data-text-position], .icon-text + [data-label-position], .icon-label
Link: Release 0.18.0 · woylie/doggo · GitHub
Doggo Info
Classification: Component Library
Description: Component library for Phoenix LiveView
Forum/tag: doggo
Click here to view its main thread on the forum.
Trending in News & Updates
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #elixirconf-us
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #security
- #elixirconf-eu
- #processes
- #api
- #forms
- #hex











Showing Posts 1 to 2- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
woylie
@AstonJ Small grammar issue with bundled updates here.
AstonJ
Well spotted @woylie - fix pushed