Skip to content

Exponential UI 1.0.0.1: the admin's content on jQuery 4

Choose a tag to compare

@se7enxweb se7enxweb released this 02 Oct 06:49
· 99 commits to main since this release

Exponential UI 1.0.0.1

The admin's content on jQuery 4: tables, dialogs, uploads, date fields and autosave.

1.0.0.0 moved the admin onto one jQuery 4 and named what would follow. This
release delivers it — phase 3 of the roadmap:
five new modules take over the YUI widgets the admin uses for its content,
each one compared with its YUI version by use, and each template keeps its YUI
version as the fallback when Exponential UI is not active. Nothing is removed.


What's new

Packer key Gives you Takes over in the admin
exp::datatable $.fn.expDataTable, Exp.datatable: sorting, paging with YUI Paginator's rules, selection with shift ranges, column toggling, inline editing, ARIA menu buttons, the "Table options" dialog, a filter, the keyboard in the rows the sub-items table of every node, eZ Tags' children table
exp::dialog Exp.dialog.open(), confirm(), alert(), form() on the native <dialog>: the page behind inert, the focus kept inside and given back, Escape and the close button answering the dialog of a relation field's upload, ezmultiupload's messages
exp::upload $.fn.expUpload, Exp.upload: one request per file with a progress bar and Cancel each, several files at once, drop zones, size and type checks a relation field's "Upload a file", ezmultiupload
exp::datepicker $.fn.expDatePicker, Exp.datepicker, showDatePicker(): a calendar in the page's language, opening on the date the fields hold, usable with the keyboard the date and date/time fields of admin, admin2, admin3, ezwebin and ezdemo
exp::autosave Exp.autosave.AutoSubmit, Exp.autosave.Preview: the configuration and events of YUI's AutoSubmit and ContentPreview ezautosave's draft saving and preview

A table in one line, from rows you already have or from a server function:

Exp.ready(function ($) {
    $('#my-list').expDataTable({
        columns: [ { key: 'name', label: 'Name', sortable: true }, { key: 'modified', label: 'Modified', format: 'date' } ],
        source: { rows: myRows },
        paging: { limit: 10 }
    });
});

A confirmation that is a real dialog, accessible and translated:

Exp.dialog.confirm('Remove the selected items?', { danger: true }).then(function (yes) {
    if (yes) { /* remove them */ }
});

Proven, not promised

  • Compared with YUI, by use. In the admin, admin2 and admin3 designs, on
    Exponential Velocity and on PHP-FPM, every moved feature was recorded first
    with YUI and then with Exponential UI: the sub-items and tags tables showed
    no difference in requests, posted fields, cookies, rows, menus or pagers; the
    relation upload and ezmultiupload posted the same fields in the same order;
    the calendar produced the same field values; autosave posted the same 67 of
    68 fields (the 68th is the rich text, now saved exactly as the editor shows
    it) with the same messages.
  • Used by hand, with real effects on test content: sorting, paging, Table
    options, columns, priority editing, hide, unhide, copy, move, remove, edit,
    create; adding, moving and deleting tags; uploads with progress, Cancel and
    retry; every dialog with the keyboard.
  • 110 browser unit tests on /expui/test (dialog 15, upload 10, datatable
    25, datepicker 10, autosave 8, and the 1.0.0.0 modules), and 39 PHPUnit
    tests
    . No console error and no jQuery Migrate warning in any run.

Better than before

  • A draft is no longer saved twice after the rich text editor rewrote its
    textarea: the editor is asked to save into the form before each autosave.
  • After a cancelled upload in ezmultiupload, the next files upload; YUI
    uploaded nothing more until the page was reloaded.
  • The calendar starts the week on the siteaccess's first day and names the
    months in the page's language; YUI's always started on Sunday, in English.
  • A table wider than its column (a narrow window, a large zoom) scrolls
    sideways inside it instead of running over the next column.
  • 38 more interface texts, all translated into German.

Upgrading from 1.0.0.0

composer require se7enxweb/expui:^1.0
php bin/php/ezpgenerateautoloads.php --extension
php bin/php/ezcache.php --clear-all

Restart persistent workers if you run them (Exponential Velocity:
php bin/php/velocity.php restart). Then open /expui/test in your admin:
it should say 110 passed, 0 failed.

The admin templates that use the new modules ship with Exponential and with
their own extensions (released alongside: ezautosave 6.0.5, ezmultiupload 6.0.5,
eZ Tags 2.4.8, ezwebin 6.0.14, ezwt 6.0.7); with an older template the YUI
version keeps running, so the order of upgrading does not matter.

Documentation

What comes next

Phase 4 of the roadmap:
ezflow's landing page tools — zone tabs, block drag and drop, the schedule and
push dialogs, the timeline. Then the site designs' galleries and fly-outs, and
finally YUI is removed.

Changes

Added

  • Added: exp::dialog, Exp.dialog.open(), confirm(), alert() and form() on the native dialog element
  • Added: exp::upload, $.fn.expUpload and Exp.upload
  • Added: exp::datatable, $.fn.expDataTable and Exp.datatable
  • Added: exp::datepicker, $.fn.expDatePicker, Exp.datepicker and showDatePicker()
  • Added: exp::autosave, Exp.autosave.AutoSubmit and Exp.autosave.Preview

Updated

  • Updated: The admin designs load the five new modules with their stylesheets and 38 new texts, translated into German
  • Updated: The documentation for the five new modules, with five new chapters of the book
  • Updated: Version 1.0.0.1

Exponential UI is free software under the GNU General Public License v2.0 or
later, made by 7x.