@bigbinary/neeto-filters-frontend 2.11.6 → 2.11.7
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/README.md +2 -0
- package/dist/index.cjs.js +37 -36
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +37 -36
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -0
package/README.md
CHANGED
|
@@ -69,6 +69,7 @@ export const SAMPLE_FILTER_FIELDS = [
|
|
|
69
69
|
key: "name",
|
|
70
70
|
node: "first_name,last_name",
|
|
71
71
|
label: "Name",
|
|
72
|
+
suffixComponent: () => <Component />
|
|
72
73
|
type: "text",
|
|
73
74
|
},
|
|
74
75
|
{
|
|
@@ -90,6 +91,7 @@ export const SAMPLE_FILTER_FIELDS = [
|
|
|
90
91
|
- `group`: The label of the group, if the field is associated with a group.
|
|
91
92
|
- `node`: The column in DB table corresponding to the field.
|
|
92
93
|
- `label` The label to be shown just above the field in Pane.
|
|
94
|
+
- `suffixComponent` The component to be shown at the end of the respective Block in filters Bar.
|
|
93
95
|
- `type`: The nature/type of the field needed in pane.
|
|
94
96
|
- The supported types are `text`, `number`, `decimal`, `date`, `single_date`, `time`, `single_time`, `single_option`, `multi_option` and `boolean`
|
|
95
97
|
- `model`: If the node provided is **not** directly refering to the column within the table being queried for the filtered results, then we need to provide the **model** corresponding to the target table.
|
package/dist/index.cjs.js
CHANGED
|
@@ -63016,7 +63016,7 @@ var Segment = function Segment(_ref2) {
|
|
|
63016
63016
|
|
|
63017
63017
|
function cov_1jyxy15ds3() {
|
|
63018
63018
|
var path = "/home/runner/work/neeto-filters-frontend/neeto-filters-frontend/src/components/Bar/index.jsx";
|
|
63019
|
-
var hash = "
|
|
63019
|
+
var hash = "44dd496a5786efc879b2984eef6ade71849c4a04";
|
|
63020
63020
|
var global = new Function("return this")();
|
|
63021
63021
|
var gcv = "__coverage__";
|
|
63022
63022
|
var coverageData = {
|
|
@@ -63028,7 +63028,7 @@ function cov_1jyxy15ds3() {
|
|
|
63028
63028
|
column: 12
|
|
63029
63029
|
},
|
|
63030
63030
|
end: {
|
|
63031
|
-
line:
|
|
63031
|
+
line: 133,
|
|
63032
63032
|
column: 1
|
|
63033
63033
|
}
|
|
63034
63034
|
},
|
|
@@ -63368,7 +63368,7 @@ function cov_1jyxy15ds3() {
|
|
|
63368
63368
|
column: 2
|
|
63369
63369
|
},
|
|
63370
63370
|
end: {
|
|
63371
|
-
line:
|
|
63371
|
+
line: 132,
|
|
63372
63372
|
column: 4
|
|
63373
63373
|
}
|
|
63374
63374
|
},
|
|
@@ -63378,27 +63378,27 @@ function cov_1jyxy15ds3() {
|
|
|
63378
63378
|
column: 8
|
|
63379
63379
|
},
|
|
63380
63380
|
end: {
|
|
63381
|
-
line:
|
|
63381
|
+
line: 106,
|
|
63382
63382
|
column: 25
|
|
63383
63383
|
}
|
|
63384
63384
|
},
|
|
63385
63385
|
"36": {
|
|
63386
63386
|
start: {
|
|
63387
|
-
line:
|
|
63387
|
+
line: 109,
|
|
63388
63388
|
column: 28
|
|
63389
63389
|
},
|
|
63390
63390
|
end: {
|
|
63391
|
-
line:
|
|
63391
|
+
line: 109,
|
|
63392
63392
|
column: 54
|
|
63393
63393
|
}
|
|
63394
63394
|
},
|
|
63395
63395
|
"37": {
|
|
63396
63396
|
start: {
|
|
63397
|
-
line:
|
|
63397
|
+
line: 111,
|
|
63398
63398
|
column: 10
|
|
63399
63399
|
},
|
|
63400
63400
|
end: {
|
|
63401
|
-
line:
|
|
63401
|
+
line: 118,
|
|
63402
63402
|
column: 27
|
|
63403
63403
|
}
|
|
63404
63404
|
}
|
|
@@ -63422,7 +63422,7 @@ function cov_1jyxy15ds3() {
|
|
|
63422
63422
|
column: 6
|
|
63423
63423
|
},
|
|
63424
63424
|
end: {
|
|
63425
|
-
line:
|
|
63425
|
+
line: 133,
|
|
63426
63426
|
column: 1
|
|
63427
63427
|
}
|
|
63428
63428
|
},
|
|
@@ -63638,7 +63638,7 @@ function cov_1jyxy15ds3() {
|
|
|
63638
63638
|
column: 8
|
|
63639
63639
|
},
|
|
63640
63640
|
end: {
|
|
63641
|
-
line:
|
|
63641
|
+
line: 106,
|
|
63642
63642
|
column: 25
|
|
63643
63643
|
}
|
|
63644
63644
|
},
|
|
@@ -63648,49 +63648,49 @@ function cov_1jyxy15ds3() {
|
|
|
63648
63648
|
name: "(anonymous_10)",
|
|
63649
63649
|
decl: {
|
|
63650
63650
|
start: {
|
|
63651
|
-
line:
|
|
63651
|
+
line: 109,
|
|
63652
63652
|
column: 16
|
|
63653
63653
|
},
|
|
63654
63654
|
end: {
|
|
63655
|
-
line:
|
|
63655
|
+
line: 109,
|
|
63656
63656
|
column: 17
|
|
63657
63657
|
}
|
|
63658
63658
|
},
|
|
63659
63659
|
loc: {
|
|
63660
63660
|
start: {
|
|
63661
|
-
line:
|
|
63661
|
+
line: 109,
|
|
63662
63662
|
column: 28
|
|
63663
63663
|
},
|
|
63664
63664
|
end: {
|
|
63665
|
-
line:
|
|
63665
|
+
line: 109,
|
|
63666
63666
|
column: 54
|
|
63667
63667
|
}
|
|
63668
63668
|
},
|
|
63669
|
-
line:
|
|
63669
|
+
line: 109
|
|
63670
63670
|
},
|
|
63671
63671
|
"11": {
|
|
63672
63672
|
name: "(anonymous_11)",
|
|
63673
63673
|
decl: {
|
|
63674
63674
|
start: {
|
|
63675
|
-
line:
|
|
63675
|
+
line: 110,
|
|
63676
63676
|
column: 13
|
|
63677
63677
|
},
|
|
63678
63678
|
end: {
|
|
63679
|
-
line:
|
|
63679
|
+
line: 110,
|
|
63680
63680
|
column: 14
|
|
63681
63681
|
}
|
|
63682
63682
|
},
|
|
63683
63683
|
loc: {
|
|
63684
63684
|
start: {
|
|
63685
|
-
line:
|
|
63685
|
+
line: 111,
|
|
63686
63686
|
column: 10
|
|
63687
63687
|
},
|
|
63688
63688
|
end: {
|
|
63689
|
-
line:
|
|
63689
|
+
line: 118,
|
|
63690
63690
|
column: 27
|
|
63691
63691
|
}
|
|
63692
63692
|
},
|
|
63693
|
-
line:
|
|
63693
|
+
line: 111
|
|
63694
63694
|
}
|
|
63695
63695
|
},
|
|
63696
63696
|
branchMap: {
|
|
@@ -64090,68 +64090,68 @@ function cov_1jyxy15ds3() {
|
|
|
64090
64090
|
"13": {
|
|
64091
64091
|
loc: {
|
|
64092
64092
|
start: {
|
|
64093
|
-
line:
|
|
64093
|
+
line: 120,
|
|
64094
64094
|
column: 7
|
|
64095
64095
|
},
|
|
64096
64096
|
end: {
|
|
64097
|
-
line:
|
|
64097
|
+
line: 122,
|
|
64098
64098
|
column: 7
|
|
64099
64099
|
}
|
|
64100
64100
|
},
|
|
64101
64101
|
type: "binary-expr",
|
|
64102
64102
|
locations: [{
|
|
64103
64103
|
start: {
|
|
64104
|
-
line:
|
|
64104
|
+
line: 120,
|
|
64105
64105
|
column: 7
|
|
64106
64106
|
},
|
|
64107
64107
|
end: {
|
|
64108
|
-
line:
|
|
64108
|
+
line: 120,
|
|
64109
64109
|
column: 23
|
|
64110
64110
|
}
|
|
64111
64111
|
}, {
|
|
64112
64112
|
start: {
|
|
64113
|
-
line:
|
|
64113
|
+
line: 121,
|
|
64114
64114
|
column: 8
|
|
64115
64115
|
},
|
|
64116
64116
|
end: {
|
|
64117
|
-
line:
|
|
64117
|
+
line: 121,
|
|
64118
64118
|
column: 72
|
|
64119
64119
|
}
|
|
64120
64120
|
}],
|
|
64121
|
-
line:
|
|
64121
|
+
line: 120
|
|
64122
64122
|
},
|
|
64123
64123
|
"14": {
|
|
64124
64124
|
loc: {
|
|
64125
64125
|
start: {
|
|
64126
|
-
line:
|
|
64126
|
+
line: 123,
|
|
64127
64127
|
column: 7
|
|
64128
64128
|
},
|
|
64129
64129
|
end: {
|
|
64130
|
-
line:
|
|
64130
|
+
line: 130,
|
|
64131
64131
|
column: 7
|
|
64132
64132
|
}
|
|
64133
64133
|
},
|
|
64134
64134
|
type: "binary-expr",
|
|
64135
64135
|
locations: [{
|
|
64136
64136
|
start: {
|
|
64137
|
-
line:
|
|
64137
|
+
line: 123,
|
|
64138
64138
|
column: 7
|
|
64139
64139
|
},
|
|
64140
64140
|
end: {
|
|
64141
|
-
line:
|
|
64141
|
+
line: 123,
|
|
64142
64142
|
column: 23
|
|
64143
64143
|
}
|
|
64144
64144
|
}, {
|
|
64145
64145
|
start: {
|
|
64146
|
-
line:
|
|
64146
|
+
line: 124,
|
|
64147
64147
|
column: 8
|
|
64148
64148
|
},
|
|
64149
64149
|
end: {
|
|
64150
|
-
line:
|
|
64150
|
+
line: 129,
|
|
64151
64151
|
column: 10
|
|
64152
64152
|
}
|
|
64153
64153
|
}],
|
|
64154
|
-
line:
|
|
64154
|
+
line: 123
|
|
64155
64155
|
}
|
|
64156
64156
|
},
|
|
64157
64157
|
s: {
|
|
@@ -64226,7 +64226,7 @@ function cov_1jyxy15ds3() {
|
|
|
64226
64226
|
"14": [0, 0]
|
|
64227
64227
|
},
|
|
64228
64228
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
64229
|
-
hash: "
|
|
64229
|
+
hash: "44dd496a5786efc879b2984eef6ade71849c4a04"
|
|
64230
64230
|
};
|
|
64231
64231
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
64232
64232
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -64370,6 +64370,7 @@ var Bar = function Bar(_ref) {
|
|
|
64370
64370
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
64371
64371
|
className: classnames__default["default"]("neeto-filters-bar", _defineProperty$7({}, className, className))
|
|
64372
64372
|
}, nonHiddenFilters.map(function (filter) {
|
|
64373
|
+
var _filter$suffixCompone;
|
|
64373
64374
|
cov_1jyxy15ds3().f[9]++;
|
|
64374
64375
|
cov_1jyxy15ds3().s[35]++;
|
|
64375
64376
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
@@ -64378,7 +64379,7 @@ var Bar = function Bar(_ref) {
|
|
|
64378
64379
|
filter: filter,
|
|
64379
64380
|
handleDelete: handleDelete,
|
|
64380
64381
|
setIsPaneOpen: setIsPaneOpen
|
|
64381
|
-
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
64382
|
+
}), (_filter$suffixCompone = filter.suffixComponent) === null || _filter$suffixCompone === void 0 ? void 0 : _filter$suffixCompone.call(filter), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
64382
64383
|
className: "neeto-filters-bar--separator"
|
|
64383
64384
|
}));
|
|
64384
64385
|
}), childrenKeys.filter(function (childKey) {
|