@civicactions/cmsds-open-data-components 1.15.0 → 1.15.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.
@@ -16,8 +16,15 @@
16
16
  white-space: nowrap;
17
17
  }
18
18
 
19
+ .dc-c-table-header-group > div {
20
+ position: relative;
21
+ }
22
+
19
23
  .dc-c-resize-handle {
20
- height: auto;
24
+ top: 0;
25
+ bottom: 0;
26
+ right: 0;
27
+ position: absolute;
21
28
  background-color: $color-gray-light;
22
29
  width: 10px;
23
30
  min-width: 10px;
@@ -17,15 +17,13 @@ var CloseIcon = function CloseIcon() {
17
17
  version: "1.1",
18
18
  xmlns: "http://www.w3.org/2000/svg",
19
19
  xmlnsXlink: "http://www.w3.org/1999/xlink"
20
- }, /*#__PURE__*/_react["default"].createElement("title", null, "Artboard"), /*#__PURE__*/_react["default"].createElement("desc", null, "Created with Sketch."), /*#__PURE__*/_react["default"].createElement("g", {
21
- id: "Artboard",
20
+ }, /*#__PURE__*/_react["default"].createElement("title", null, "Close Icon"), /*#__PURE__*/_react["default"].createElement("desc", null, "Created with Sketch."), /*#__PURE__*/_react["default"].createElement("g", {
22
21
  stroke: "none",
23
22
  strokeWidth: "1",
24
23
  fill: "none",
25
24
  fillRule: "evenodd"
26
25
  }, /*#__PURE__*/_react["default"].createElement("path", {
27
26
  d: "M14.6467778,11.2126037 C14.8818403,11.4476661 15,11.7342663 15,12.0711472 C15,12.4080282 14.8818403,12.6946283 14.6467778,12.9296908 L12.9296908,14.6467778 C12.6933713,14.8830973 12.4067711,15.001257 12.0698902,15.001257 C11.7342663,15.001257 11.4476661,14.8830973 11.2126037,14.6467778 L7.49937149,10.9348026 L3.7873963,14.6467778 C3.55233386,14.8830973 3.26573368,15.001257 2.92885276,15.001257 C2.59197184,15.001257 2.30662868,14.8830973 2.07030923,14.6467778 L0.353222157,12.9296908 C0.116902707,12.6946283 0,12.4080282 0,12.0711472 C0,11.7342663 0.116902707,11.4476661 0.353222157,11.2126037 L4.06519735,7.50062851 L0.353222157,3.78865331 C0.116902707,3.55233386 0,3.2669907 0,2.92885276 C0,2.59322886 0.116902707,2.30662868 0.353222157,2.07156624 L2.07030923,0.353222157 C2.30662868,0.118159725 2.59197184,0 2.92885276,0 C3.26573368,0 3.55233386,0.118159725 3.7873963,0.353222157 L7.49937149,4.06519735 L11.2126037,0.353222157 C11.4476661,0.118159725 11.7342663,0 12.0698902,0 C12.4067711,0 12.6933713,0.118159725 12.9296908,0.353222157 L14.6467778,2.07156624 C14.8818403,2.30662868 15,2.59322886 15,2.92885276 C15,3.2669907 14.8818403,3.55233386 14.6467778,3.78865331 L10.9348026,7.50062851 L14.6467778,11.2126037 Z",
28
- id: "Path",
29
27
  fill: "#000000",
30
28
  fillRule: "nonzero"
31
29
  })));
@@ -9,12 +9,11 @@ const CloseIcon = () => (
9
9
  xmlns="http://www.w3.org/2000/svg"
10
10
  xmlnsXlink="http://www.w3.org/1999/xlink"
11
11
  >
12
- <title>Artboard</title>
12
+ <title>Close Icon</title>
13
13
  <desc>Created with Sketch.</desc>
14
- <g id="Artboard" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
14
+ <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
15
15
  <path
16
16
  d="M14.6467778,11.2126037 C14.8818403,11.4476661 15,11.7342663 15,12.0711472 C15,12.4080282 14.8818403,12.6946283 14.6467778,12.9296908 L12.9296908,14.6467778 C12.6933713,14.8830973 12.4067711,15.001257 12.0698902,15.001257 C11.7342663,15.001257 11.4476661,14.8830973 11.2126037,14.6467778 L7.49937149,10.9348026 L3.7873963,14.6467778 C3.55233386,14.8830973 3.26573368,15.001257 2.92885276,15.001257 C2.59197184,15.001257 2.30662868,14.8830973 2.07030923,14.6467778 L0.353222157,12.9296908 C0.116902707,12.6946283 0,12.4080282 0,12.0711472 C0,11.7342663 0.116902707,11.4476661 0.353222157,11.2126037 L4.06519735,7.50062851 L0.353222157,3.78865331 C0.116902707,3.55233386 0,3.2669907 0,2.92885276 C0,2.59322886 0.116902707,2.30662868 0.353222157,2.07156624 L2.07030923,0.353222157 C2.30662868,0.118159725 2.59197184,0 2.92885276,0 C3.26573368,0 3.55233386,0.118159725 3.7873963,0.353222157 L7.49937149,4.06519735 L11.2126037,0.353222157 C11.4476661,0.118159725 11.7342663,0 12.0698902,0 C12.4067711,0 12.6933713,0.118159725 12.9296908,0.353222157 L14.6467778,2.07156624 C14.8818403,2.30662868 15,2.59322886 15,2.92885276 C15,3.2669907 14.8818403,3.55233386 14.6467778,3.78865331 L10.9348026,7.50062851 L14.6467778,11.2126037 Z"
17
- id="Path"
18
17
  fill="#000000"
19
18
  fillRule="nonzero"
20
19
  ></path>
@@ -17,14 +17,12 @@ var CopyIcon = function CopyIcon() {
17
17
  version: "1.1",
18
18
  xmlns: "http://www.w3.org/2000/svg",
19
19
  xmlnsXlink: "http://www.w3.org/1999/xlink"
20
- }, /*#__PURE__*/_react["default"].createElement("g", {
21
- id: "Artboard",
20
+ }, /*#__PURE__*/_react["default"].createElement("title", null, "Copy Icon"), /*#__PURE__*/_react["default"].createElement("g", {
22
21
  stroke: "none",
23
22
  strokeWidth: "1",
24
23
  fill: "none",
25
24
  fillRule: "evenodd"
26
25
  }, /*#__PURE__*/_react["default"].createElement("path", {
27
- id: "Path",
28
26
  fill: "#112E51",
29
27
  fillRule: "nonzero",
30
28
  d: "M384 96L384 0h-112c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48H464c26.51 0 48-21.49 48-48V128h-95.1C398.4 128 384 113.6 384 96zM416 0v96h96L416 0zM192 352V128h-144c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h192c26.51 0 48-21.49 48-48L288 416h-32C220.7 416 192 387.3 192 352z"
@@ -9,9 +9,9 @@ const CopyIcon = () => (
9
9
  xmlns="http://www.w3.org/2000/svg"
10
10
  xmlnsXlink="http://www.w3.org/1999/xlink"
11
11
  >
12
- <g id="Artboard" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
12
+ <title>Copy Icon</title>
13
+ <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
13
14
  <path
14
- id="Path"
15
15
  fill="#112E51"
16
16
  fillRule="nonzero"
17
17
  d="M384 96L384 0h-112c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48H464c26.51 0 48-21.49 48-48V128h-95.1C398.4 128 384 113.6 384 96zM416 0v96h96L416 0zM192 352V128h-144c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h192c26.51 0 48-21.49 48-48L288 416h-32C220.7 416 192 387.3 192 352z"
@@ -17,14 +17,12 @@ var DownloadIcon = function DownloadIcon() {
17
17
  version: "1.1",
18
18
  xmlns: "http://www.w3.org/2000/svg",
19
19
  xmlnsXlink: "http://www.w3.org/1999/xlink"
20
- }, /*#__PURE__*/_react["default"].createElement("g", {
21
- id: "Artboard",
20
+ }, /*#__PURE__*/_react["default"].createElement("title", null, "Download Icon"), /*#__PURE__*/_react["default"].createElement("g", {
22
21
  stroke: "none",
23
22
  strokeWidth: "1",
24
23
  fill: "none",
25
24
  fillRule: "evenodd"
26
25
  }, /*#__PURE__*/_react["default"].createElement("path", {
27
- id: "Path",
28
26
  fill: "#112E51",
29
27
  fillRule: "nonzero",
30
28
  d: "M384 128h-128V0L384 128zM256 160H384v304c0 26.51-21.49 48-48 48h-288C21.49 512 0 490.5 0 464v-416C0 21.49 21.49 0 48 0H224l.0039 128C224 145.7 238.3 160 256 160zM255 295L216 334.1V232c0-13.25-10.75-24-24-24S168 218.8 168 232v102.1L128.1 295C124.3 290.3 118.2 288 112 288S99.72 290.3 95.03 295c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94S264.4 285.7 255 295z"
@@ -9,9 +9,9 @@ const DownloadIcon = () => (
9
9
  xmlns="http://www.w3.org/2000/svg"
10
10
  xmlnsXlink="http://www.w3.org/1999/xlink"
11
11
  >
12
- <g id="Artboard" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
12
+ <title>Download Icon</title>
13
+ <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
13
14
  <path
14
- id="Path"
15
15
  fill="#112E51"
16
16
  fillRule="nonzero"
17
17
  d="M384 128h-128V0L384 128zM256 160H384v304c0 26.51-21.49 48-48 48h-288C21.49 512 0 490.5 0 464v-416C0 21.49 21.49 0 48 0H224l.0039 128C224 145.7 238.3 160 256 160zM255 295L216 334.1V232c0-13.25-10.75-24-24-24S168 218.8 168 232v102.1L128.1 295C124.3 290.3 118.2 288 112 288S99.72 290.3 95.03 295c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94S264.4 285.7 255 295z"
@@ -18,14 +18,12 @@ var SettingsIcon = function SettingsIcon() {
18
18
  version: "1.1",
19
19
  xmlns: "http://www.w3.org/2000/svg",
20
20
  xmlnsXlink: "http://www.w3.org/1999/xlink"
21
- }, /*#__PURE__*/_react["default"].createElement("g", {
22
- id: "Artboard",
21
+ }, /*#__PURE__*/_react["default"].createElement("title", null, "Settings Icon"), /*#__PURE__*/_react["default"].createElement("g", {
23
22
  stroke: "none",
24
23
  strokeWidth: "1",
25
24
  fill: "none",
26
25
  fillRule: "evenodd"
27
26
  }, /*#__PURE__*/_react["default"].createElement("path", {
28
- id: "Path",
29
27
  fill: "#112E51",
30
28
  fillRule: "nonzero",
31
29
  d: "M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"
@@ -10,9 +10,9 @@ const SettingsIcon = () => (
10
10
  xmlns="http://www.w3.org/2000/svg"
11
11
  xmlnsXlink="http://www.w3.org/1999/xlink"
12
12
  >
13
- <g id="Artboard" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
13
+ <title>Settings Icon</title>
14
+ <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
14
15
  <path
15
- id="Path"
16
16
  fill="#112E51"
17
17
  fillRule="nonzero"
18
18
  d="M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"
@@ -157,7 +157,6 @@ var QueryBuilder = function QueryBuilder(_ref) {
157
157
  return Object.assign({}, oc);
158
158
  }));
159
159
  setConditionsChanged(false);
160
- console.log(includeSearchParams);
161
160
 
162
161
  if (includeSearchParams) {
163
162
  var url = new URL(window.location);
@@ -81,8 +81,14 @@ var QueryRow = function QueryRow(_ref) {
81
81
  } else {
82
82
  update(index, 'property', '');
83
83
  }
84
+
85
+ if (schema[id].fields[condition.property].mysql_type === 'date') {
86
+ if (!value) {
87
+ setValue(startDate.toJSON().slice(0, 10));
88
+ }
89
+ }
84
90
  }
85
- }, [property]);
91
+ }, [property, value, startDate, schema, id, condition]);
86
92
  (0, _react.useEffect)(function () {
87
93
  if (operator !== condition.operator) {
88
94
  if (operator) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civicactions/cmsds-open-data-components",
3
- "version": "1.15.0",
3
+ "version": "1.15.1",
4
4
  "description": "Components for the open data catalog frontend using CMS Design System",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -15,7 +15,7 @@
15
15
  "author": "",
16
16
  "license": "GPL-3.0",
17
17
  "dependencies": {
18
- "@civicactions/data-catalog-components": "2.0.1",
18
+ "@civicactions/data-catalog-components": "~2.1.0",
19
19
  "@civicactions/data-catalog-services": "~1.5.0",
20
20
  "@cmsgov/design-system": "~3.3.0",
21
21
  "@popperjs/core": "^2.11.4",