@plusscommunities/pluss-maintenance-web-forms 1.1.37 → 1.1.38
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/index.cjs.js +10 -8
- package/dist/index.esm.js +10 -8
- package/dist/index.umd.js +10 -8
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -588,6 +588,7 @@ const stringActions = Apis$2.stringActions;
|
|
|
588
588
|
var jobStatusOptions = [
|
|
589
589
|
{
|
|
590
590
|
text: "Open",
|
|
591
|
+
alias: "Unassigned",
|
|
591
592
|
order: 0,
|
|
592
593
|
color: "#d5dde4",
|
|
593
594
|
category: "Not Actioned"
|
|
@@ -784,15 +785,16 @@ class JobList extends React.Component {
|
|
|
784
785
|
} = this.props;
|
|
785
786
|
const params = {};
|
|
786
787
|
|
|
787
|
-
// Status filter: translate "All Incomplete" into the actual incomplete statuses
|
|
788
|
+
// Status filter: translate "All Incomplete" into the actual incomplete statuses.
|
|
789
|
+
// Expand each status to include its `alias` so legacy DB values (e.g. "Unassigned"
|
|
790
|
+
// for "Open") still match the filter.
|
|
788
791
|
if (selectedStatusFilter) {
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
} else {
|
|
792
|
+
const selectedStatusTypes = selectedStatusFilter === STATUS_IMCOMPLETE ? statusTypes.filter(s => s.category !== STATUS_COMPLETED) : statusTypes.filter(s => s.text === selectedStatusFilter);
|
|
793
|
+
const expanded = ___default["default"].uniq(selectedStatusTypes.flatMap(s => s.alias ? [s.text, s.alias] : [s.text]));
|
|
794
|
+
if (expanded.length > 0) {
|
|
795
|
+
params.status = expanded.join(',');
|
|
796
|
+
} else if (selectedStatusFilter !== STATUS_IMCOMPLETE) {
|
|
797
|
+
// Fallback if the status isn't in statusTypes (shouldn't happen normally)
|
|
796
798
|
params.status = selectedStatusFilter;
|
|
797
799
|
}
|
|
798
800
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -557,6 +557,7 @@ const stringActions = Apis$2.stringActions;
|
|
|
557
557
|
var jobStatusOptions = [
|
|
558
558
|
{
|
|
559
559
|
text: "Open",
|
|
560
|
+
alias: "Unassigned",
|
|
560
561
|
order: 0,
|
|
561
562
|
color: "#d5dde4",
|
|
562
563
|
category: "Not Actioned"
|
|
@@ -753,15 +754,16 @@ class JobList extends Component {
|
|
|
753
754
|
} = this.props;
|
|
754
755
|
const params = {};
|
|
755
756
|
|
|
756
|
-
// Status filter: translate "All Incomplete" into the actual incomplete statuses
|
|
757
|
+
// Status filter: translate "All Incomplete" into the actual incomplete statuses.
|
|
758
|
+
// Expand each status to include its `alias` so legacy DB values (e.g. "Unassigned"
|
|
759
|
+
// for "Open") still match the filter.
|
|
757
760
|
if (selectedStatusFilter) {
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
} else {
|
|
761
|
+
const selectedStatusTypes = selectedStatusFilter === STATUS_IMCOMPLETE ? statusTypes.filter(s => s.category !== STATUS_COMPLETED) : statusTypes.filter(s => s.text === selectedStatusFilter);
|
|
762
|
+
const expanded = _.uniq(selectedStatusTypes.flatMap(s => s.alias ? [s.text, s.alias] : [s.text]));
|
|
763
|
+
if (expanded.length > 0) {
|
|
764
|
+
params.status = expanded.join(',');
|
|
765
|
+
} else if (selectedStatusFilter !== STATUS_IMCOMPLETE) {
|
|
766
|
+
// Fallback if the status isn't in statusTypes (shouldn't happen normally)
|
|
765
767
|
params.status = selectedStatusFilter;
|
|
766
768
|
}
|
|
767
769
|
}
|
package/dist/index.umd.js
CHANGED
|
@@ -577,6 +577,7 @@
|
|
|
577
577
|
var jobStatusOptions = [
|
|
578
578
|
{
|
|
579
579
|
text: "Open",
|
|
580
|
+
alias: "Unassigned",
|
|
580
581
|
order: 0,
|
|
581
582
|
color: "#d5dde4",
|
|
582
583
|
category: "Not Actioned"
|
|
@@ -773,15 +774,16 @@
|
|
|
773
774
|
} = this.props;
|
|
774
775
|
const params = {};
|
|
775
776
|
|
|
776
|
-
// Status filter: translate "All Incomplete" into the actual incomplete statuses
|
|
777
|
+
// Status filter: translate "All Incomplete" into the actual incomplete statuses.
|
|
778
|
+
// Expand each status to include its `alias` so legacy DB values (e.g. "Unassigned"
|
|
779
|
+
// for "Open") still match the filter.
|
|
777
780
|
if (selectedStatusFilter) {
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
} else {
|
|
781
|
+
const selectedStatusTypes = selectedStatusFilter === STATUS_IMCOMPLETE ? statusTypes.filter(s => s.category !== STATUS_COMPLETED) : statusTypes.filter(s => s.text === selectedStatusFilter);
|
|
782
|
+
const expanded = ___default["default"].uniq(selectedStatusTypes.flatMap(s => s.alias ? [s.text, s.alias] : [s.text]));
|
|
783
|
+
if (expanded.length > 0) {
|
|
784
|
+
params.status = expanded.join(',');
|
|
785
|
+
} else if (selectedStatusFilter !== STATUS_IMCOMPLETE) {
|
|
786
|
+
// Fallback if the status isn't in statusTypes (shouldn't happen normally)
|
|
785
787
|
params.status = selectedStatusFilter;
|
|
786
788
|
}
|
|
787
789
|
}
|
package/package.json
CHANGED