Commit graph

43 commits

Author SHA1 Message Date
Lance Edgar
d5d9c644a2 Add the ViewSupplement concept
also fix cell-class for grid columns.  cannot use "raw" fieldname
because in some cases (e.g. 'number', 'rate') Bulma may interpret that
as actually meaning something, and affect the display
2022-12-10 09:46:54 -06:00
Lance Edgar
2e3823364c Add support for editing catalog cost in receiving batch, per new theme
had to add several "under the hood" features to make this work, to
embed a Vue component within grid `<td>` cells, etc.
2022-12-05 14:03:03 -06:00
Lance Edgar
deed2111fb Add "between" verb for numeric grid filters 2022-11-15 16:29:15 -06:00
Lance Edgar
d52a186e12 Add support for toggling visibility of email profile settings 2022-08-06 18:38:17 -05:00
Lance Edgar
ec2600ddf7 Add simple searchable column support for non-AJAX grids
idk maybe even AJAX grids can use?  not gonna try at the moment
2022-02-26 21:00:05 -06:00
Lance Edgar
4d404cb20b Add auto-filter hyperlinks for batch row status breakdown 2022-02-20 19:40:32 -06:00
Lance Edgar
340a177a29 Overhaul desktop views for receiving, for efficiency
still could use even more i'm sure, but this takes advantage of buefy
to add dialogs etc. from the "view receiving batch row" page.  this
batch no longer allows direct edit of rows but that's hopefully for
the better.
2021-12-13 18:37:47 -06:00
Lance Edgar
a553a26644 Optionally set the sticky-header attribute for main buefy grids
should affect the 'index' and 'view' (with rows) but i don't think any
other pages will get this..?
2021-10-22 21:04:39 -05:00
Lance Edgar
87d8322b85 Add way to override grid action label rendering
so that custom HTML can be embedded in there somehow..
2021-09-22 16:42:49 -05:00
Lance Edgar
4d742bacb1 Allow grid columns to be *invisible* (but still present in grid)
this can be useful when you need contextual data for a given row, for
sake of front-end UI features, but do not want to actually show the
extra data column(s)
2021-08-29 10:28:36 -05:00
Lance Edgar
fe584f193f Always show all grid actions...for now
we don't have a great way to accommodate too many actions; ideally
could hide some in a drawer, but for now we just show them all for
simplicity...
2021-08-28 18:45:31 -05:00
Lance Edgar
3cf4c0f8e4 Require explicit opt-in for "clicking grid row checks box" feature
sometimes it makes sense *not* to enable that, in which case disabled
probably should be the default
2021-08-23 19:26:50 -05:00
Lance Edgar
637c249c36 Handle row click as if checkbox was clicked, for checkable grid
should be more convenient since the checkbox is a rather small target as
compared to the row itself.

this also brings in newer Buefy 0.8.6 b/c it includes "shift+click" behavior
for the checkbox:

- https://github.com/buefy/buefy/issues/535
- https://github.com/buefy/buefy/pull/1894
2021-02-26 21:49:58 -06:00
Lance Edgar
89f0336af9 Add special "contains any of" verb for string-based grid filters 2021-02-12 13:57:54 -06:00
Lance Edgar
7a0f975b31 Fix spacing between components in "grid tools" section 2020-08-23 11:26:29 -05:00
Lance Edgar
4c3112b85b Fix another pagination bug with buefy grid tables
hopefully this gets it all working right...ugh
2020-07-19 18:43:31 -05:00
Lance Edgar
3819dd9469 Fix pagination sync issue with buefy grid tables 2020-07-15 22:05:57 -05:00
Lance Edgar
a8a79ee326 Let each grid component have a custom name, if needed 2020-05-20 19:19:06 -05:00
Lance Edgar
3223a77cb1 Add "danger" style for "delete" grid row action 2020-03-19 00:02:27 -05:00
Lance Edgar
bcfb4f257d Improve checkbox click handling support for grids
i.e. let custom use define click handlers
2019-10-31 18:03:17 -05:00
Lance Edgar
3b65b06a3d Fix buefy grid pager bug
"has results, then no results" bug where spinner kept going
2019-10-15 15:30:52 -05:00
Lance Edgar
ec8ce36bd5 Only show action URL if present, for Buefy grid rows 2019-10-12 18:35:22 -05:00
Lance Edgar
d97f95fb92 Add basic support for "between" verb, for date range grid filter
this seems to be complete, but we'll see in practice if i forgot something..
2019-08-29 17:23:32 -05:00
Lance Edgar
fd700e06f4 Let a grid have custom ajax data url
i.e. instead of assuming we should GET the current "partial" page, can use a
different URL altogether now
2019-08-23 19:28:36 -05:00
Lance Edgar
a4d6c6694a Make sure grid action links preserve white-space
i.e. don't wrap between link icon and text!
2019-07-01 11:46:52 -05:00
Lance Edgar
76a19ebe5b Pull the grid tools to the right, for Buefy 2019-06-16 16:23:01 -05:00
Lance Edgar
3ddde1a1ca Use locale formatting for some numbers in the Buefy grid 2019-06-15 19:50:25 -05:00
Lance Edgar
f727c87b56 Add Buefy support for "delete w/ simple confirm" from index grid 2019-06-10 21:59:10 -05:00
Lance Edgar
1ee76878d9 Various things to support "notes management" from person profile view 2019-06-06 13:49:59 -05:00
Lance Edgar
8a47ab2dde Punctuation tweak 2019-05-23 13:58:29 -05:00
Lance Edgar
7b1947914e Make Buefy grids use proper Vue.js component structure
at least, better than before...this lets each page have the final say about the
app logic etc.
2019-05-23 12:10:11 -05:00
Lance Edgar
be6a1d916f Add Buefy support for enum grid filters 2019-05-21 18:40:08 -05:00
Lance Edgar
47b2c603ef Expose per-page size picker for grids 2019-05-21 17:37:39 -05:00
Lance Edgar
d5d04b7dac Add support for Buefy datepicker in grid filters 2019-05-21 13:44:02 -05:00
Lance Edgar
e9976635ba Align pseudo-columns for grid filters; let app settings define widths 2019-05-08 17:13:01 -05:00
Lance Edgar
98428bf8c2 Fix sorting info bug when Buefy grid doesn't support it 2019-05-08 15:37:03 -05:00
Lance Edgar
3cb803ffe3 Clean up falafel theme, move some parts to root template path 2019-05-07 21:10:48 -05:00
Lance Edgar
b2b4e1bfbc Add basic Buefy support for merging 2 objects
i.e. special grid stuff, plus "merge" view
2019-05-06 21:43:59 -05:00
Lance Edgar
fcfc8b56bb Add basic Buefy support for App Settings page
also various buttons have been tweaked on some other "master view" pages
2019-04-17 14:55:27 -05:00
Lance Edgar
e45dfd7351 More tweaks for Buefy support 2019-04-15 20:34:34 -05:00
Lance Edgar
a0cd1f4cd0 Add "most of" Buefy support for grid filters
still a couple of details to wrap up yet, but this is most of it!
2019-04-15 18:36:14 -05:00
Lance Edgar
05b8ed7153 Add support for "row status" in Buefy grid tables 2019-03-28 23:09:10 -05:00
Lance Edgar
8d6ecc3ec7 Add basic "Buefy" support for grids (master index view)
still pretty experimental at this point, but making progress
2019-03-24 21:09:08 -05:00