buefy v0.9.0 Release Notes

Release Date: 2020-08-16 // over 3 years ago
  • ๐Ÿ’ฅ Breaking changes

    Vue.js 2.6+ is now the minimum required version

    Bulma 0.8.0 and 0.9.0

    Table , new default slot and table column syntax

    From

    \<b-table :data="myData"\>\<template slot-scope="props"\>\<b-table-column field="name" label="Name"\> {{ props.row.name }} \</b-table-column\>\<b-table-column field="age" numeric label="Age"\> {{ props.row.age }} \</b-table-column\>\</template\>\</b-table\>
    

    To

    \<b-table :data="myData"\>\<b-table-column field="name" label="Name" v-slot="props"\> {{ props.row.name }} \</b-table-column\>\<b-table-column field="age" label="Age"\>\<template v-slot:default="props"\> {{ props.row.age }} \</template\>\</b-table-column\>\</b-table\>
    

    โž• Add triggers prop and remove hoverable prop to dropdown

    โž• Add placeholder option to number inputs removing default value 0 (thanks @rcoundon)

    ๐Ÿ‘‰ Show check-all checkbox when table cards

    Refacor carousel and carousel list and removing config prop too (thanks @Tofandel)

    โž• Add position prop and default alignment to skeleton (thanks @EmmanuelVlad)

    Replace is-active with active prop to navbar

    0๏ธโƒฃ Replace default value of defaultDatepickerYearsRange constructor option from [-100, 3] to [-100, 10]

    ๐Ÿ— Build with condense option to avoid leading/trailing whitespaces

    SVG:

    • $icon-svg-width: auto !default;

    - $icon-svg-height: auto !default;

    Internationalization , Buefy is now using Intl package to format dates and numbers A prop named locale which accept a BCP 47 language tag have been added to some components. The default value for this prop is undefined which will use the browser locale. It can affect the following components:

    • Progress:
      • Intl is used to format the displayed value
    • Rate
      • Intl is used to format the displayed score
    • Datepicker and Datetimepicker:
      • Intl is used to get month names
      • Intl is used to get week day names
      • Intl is used to format the displayed date(s)
      • Intl is used to parse the given date when editable
    • Timepicker, Clockpicker and Datetimepicker
      • Intl is used to get separators
      • Intl is used to format the displayed time

      - Intl is used to parse the given date when editable

    ๐Ÿ”ง Configuration

    • defaultTrapFocus is now true. It can affect the following components:
      • Datepicker
      • Dialog
      • Dropdown
      • Modal
    • defaultLocale
      • Default value is undefined, which means it will use the user browser locale
      • It accept a string with a BCP 47 language tag, or an array of such strings (see Unicode BCP 47 locale identifier).
    • monthNames
      • Default value is now undefined. It will use the given locale (default to browser locale) to get localized month names
    • dayNames

      - Default value is now undefined. It will use the given locale (default to browser locale) to get localized day names

    ๐Ÿ‘‰ Use KeyboardEvent.key instead of keyCode. It can affect the following component:

    • Taginput:
      • remove-on-keys default is now ["Backspace"] instead of [8]
      • confirm-key-codes is now called confirm-keys and the default is [",", "Enter"] instead of [13, 188]

    ๐Ÿ†• New features

    • ๐Ÿ†• New component: Image , see docs
    • ๐Ÿ”€ .sync deprecated (except of table), use v-model but you can use .sync until next breaking version
    • 0๏ธโƒฃ #1953 Add promise support to dialog using defaultPromiseProgrammatically constructor options
    • #2553 Add trigger slot to datepicker, timepicker and datetimepicker
    • #2568 Hide content message when empty slot
    • 0๏ธโƒฃ #2577 Add defaultStatusIcon constructor option and status-icon prop to field
    • โž• Add icon-size prop to menu item (thanks @cyberShaw)
    • โž• Add debounce-search prop to table (thanks @Sc0ra)
    • โž• Add reset-on-meridian-change to timepicker (thanks @taverasady)
    • โž• Add close-icon to tag (thanks @kaangokdemir)
    • โž• Add close-type to tag input (thanks @kaangokdemir)
    • โž• Add header-class prop to tab item and step item (thanks @Tofandel)
    • โž• Add exponential prop to number input (thanks @Tofandel)
    • โž• Add defaultTabsType and defaultTabsExpanded constructor options (thanks @wrabit)
    • ๐Ÿ‘Œ Improve handle events for customElement components (thanks @vvkk77)
    • ๐Ÿ”จ Refactor components (table, tabs, steps, carousel, etc) using provide/inject

    ๐Ÿ›  Fixes

    • ๐Ÿ›  Fix XSS on programmatic components
    • ๐Ÿ›  Fix #1226 and #2658 using message with fields addons and groups
    • ๐Ÿ›  Fix #2196 carousel v-model sync using arrow navigation buttons (thanks @Tofandel)
    • ๐Ÿ›  Fix #2518 set Autocomplete focus on clear
    • ๐Ÿ›  Fix #2584 default table sort when backend
    • ๐Ÿ›  Fix #2591 carousel does not continue to slide even pause-hover is false (thanks @Tofandel)
    • ๐Ÿ›  Fix #2599 disabled select and input have different colors
    • ๐Ÿ›  Fix #2608 taginput wrong value when allow-duplicates is false (thanks @nithesh247)
    • ๐Ÿ›  Fix #2631 table with sticky searchable column
    • ๐Ÿ›  Fix #2647 progress bar truncate whole number zeroes
    • ๐Ÿ›  Fix #2683 datepicker lost focus using arrow keys
    • ๐Ÿ›  Fix #2684 timepicker hour check using unselectable-dates
    • ๐Ÿ›  Fix #2639 datepicker clone before formatter
    • ๐Ÿ›  Fix #2706 number input steps (thanks @rcoundon)
    • ๐Ÿ›  Fix #2707 autocomplete index error using arrow keys
    • ๐Ÿ›  Fix #2725 open autocomplete when focused
    • ๐Ÿ›  Fix #2732 upload emit input when same file
    • ๐Ÿ›  Fix #2738 regex check when searchable table
    • ๐Ÿ‘Œ Improve datepicker a11y on older browsers (#2641)