@wpmoo/ui 1.1.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/js/chart.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Moo UI chart.js v1.1.0 (https://wpmoo.org/)
2
+ * Moo UI chart.js v1.2.1 (https://wpmoo.org/)
3
3
  * Copyright 2026 WPMoo Authors
4
4
  * Licensed under MIT (https://github.com/wpmoo-org/ui/blob/main/LICENSE)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Moo UI chart.min.js v1.1.0 (https://wpmoo.org/)
2
+ * Moo UI chart.min.js v1.2.1 (https://wpmoo.org/)
3
3
  * Copyright 2026 WPMoo Authors
4
4
  * Licensed under MIT (https://github.com/wpmoo-org/ui/blob/main/LICENSE)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Moo UI combobox.js v1.1.0 (https://wpmoo.org/)
2
+ * Moo UI combobox.js v1.2.1 (https://wpmoo.org/)
3
3
  * Copyright 2026 WPMoo Authors
4
4
  * Licensed under MIT (https://github.com/wpmoo-org/ui/blob/main/LICENSE)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Moo UI context-menu.js v1.1.0 (https://wpmoo.org/)
2
+ * Moo UI context-menu.js v1.2.1 (https://wpmoo.org/)
3
3
  * Copyright 2026 WPMoo Authors
4
4
  * Licensed under MIT (https://github.com/wpmoo-org/ui/blob/main/LICENSE)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Moo UI datatable.js v1.1.0 (https://wpmoo.org/)
2
+ * Moo UI datatable.js v1.2.1 (https://wpmoo.org/)
3
3
  * Copyright 2026 WPMoo Authors
4
4
  * Licensed under MIT (https://github.com/wpmoo-org/ui/blob/main/LICENSE)
5
5
  */
@@ -674,16 +674,20 @@ var _DataTable = class _DataTable {
674
674
  }
675
675
  const hasRows = this._rows.length > 0;
676
676
  empty.hidden = totalRows !== 0;
677
- empty.querySelector(".datatable-empty-title")?.replaceChildren(
677
+ empty.querySelector(".empty-state-title, .datatable-empty-title")?.replaceChildren(
678
678
  this._document.createTextNode(hasRows ? "No matching results" : "No rows to display")
679
679
  );
680
- const copy = empty.querySelector(".datatable-empty-copy");
680
+ const copy = empty.querySelector(".empty-state-description, .datatable-empty-copy");
681
681
  if (copy) {
682
682
  copy.hidden = !hasRows;
683
683
  }
684
684
  const reset = empty.querySelector("[data-datatable-empty-reset]");
685
685
  if (reset) {
686
686
  reset.hidden = !hasRows;
687
+ const actions = reset.closest(".empty-state-actions");
688
+ if (actions) {
689
+ actions.hidden = !hasRows;
690
+ }
687
691
  }
688
692
  }
689
693
  _sortAriaValue(direction) {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Moo UI datepicker.js v1.1.0 (https://wpmoo.org/)
2
+ * Moo UI datepicker.js v1.2.1 (https://wpmoo.org/)
3
3
  * Copyright 2026 WPMoo Authors
4
4
  * Licensed under MIT (https://github.com/wpmoo-org/ui/blob/main/LICENSE)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Moo UI datepicker.min.js v1.1.0 (https://wpmoo.org/)
2
+ * Moo UI datepicker.min.js v1.2.1 (https://wpmoo.org/)
3
3
  * Copyright 2026 WPMoo Authors
4
4
  * Licensed under MIT (https://github.com/wpmoo-org/ui/blob/main/LICENSE)
5
5
  */
package/dist/js/moo-ui.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Moo UI moo-ui.js v1.1.0 (https://wpmoo.org/)
2
+ * Moo UI moo-ui.js v1.2.1 (https://wpmoo.org/)
3
3
  * Copyright 2026 WPMoo Authors
4
4
  * Licensed under MIT (https://github.com/wpmoo-org/ui/blob/main/LICENSE)
5
5
  */
@@ -1377,16 +1377,20 @@ var DataTable = class _DataTable {
1377
1377
  }
1378
1378
  const hasRows = this._rows.length > 0;
1379
1379
  empty.hidden = totalRows !== 0;
1380
- empty.querySelector(".datatable-empty-title")?.replaceChildren(
1380
+ empty.querySelector(".empty-state-title, .datatable-empty-title")?.replaceChildren(
1381
1381
  this._document.createTextNode(hasRows ? "No matching results" : "No rows to display")
1382
1382
  );
1383
- const copy = empty.querySelector(".datatable-empty-copy");
1383
+ const copy = empty.querySelector(".empty-state-description, .datatable-empty-copy");
1384
1384
  if (copy) {
1385
1385
  copy.hidden = !hasRows;
1386
1386
  }
1387
1387
  const reset = empty.querySelector("[data-datatable-empty-reset]");
1388
1388
  if (reset) {
1389
1389
  reset.hidden = !hasRows;
1390
+ const actions = reset.closest(".empty-state-actions");
1391
+ if (actions) {
1392
+ actions.hidden = !hasRows;
1393
+ }
1390
1394
  }
1391
1395
  }
1392
1396
  _sortAriaValue(direction) {