@corpsmap/corpsmap 3.2.84 → 3.2.90

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/css/corpsmap.css CHANGED
@@ -1,3 +1,112 @@
1
+ .loading-container {
2
+ height: 100px;
3
+ display: flex;
4
+ flex-direction: column;
5
+ justify-content: center;
6
+ align-items: center;
7
+ }
8
+
9
+ .loading-text {
10
+ font-size: 18px;
11
+ margin-top: 15px;
12
+ }
13
+
14
+ .loading-spinner {
15
+ font-size: 12px;
16
+ height: 12px;
17
+ width: 12px;
18
+ margin: 0 auto;
19
+ background-color: red;
20
+ -webkit-animation: move 3s linear infinite; /* Safari */
21
+ animation: move 3s linear infinite;
22
+ animation-play-state: running;
23
+ }
24
+
25
+ @keyframes move {
26
+ 0%,
27
+ 100% {
28
+ transform: translate(-10px, -10px);
29
+ background-color: #f5f5f5;
30
+ border-radius: 40%;
31
+ }
32
+ 25% {
33
+ transform: translate(10px, -10px);
34
+ border-radius: 20%;
35
+ }
36
+ 50% {
37
+ transform: translate(10px, 10px);
38
+ background-color: #4d4c4e;
39
+ border-radius: 0%;
40
+ }
41
+ 75% {
42
+ transform: translate(-10px, 10px);
43
+ border-radius: 20%;
44
+ }
45
+ }
46
+
47
+ /* Safari */
48
+ @-webkit-keyframes move {
49
+ 0%,
50
+ 100% {
51
+ -webkit-transform: translate(-10px, -10px);
52
+ background-color: #f5f5f5;
53
+ border-radius: 40%;
54
+ }
55
+ 25% {
56
+ -webkit-transform: translate(10px, -10px);
57
+ border-radius: 20%;
58
+ }
59
+ 50% {
60
+ -webkit-transform: translate(10px, 10px);
61
+ background-color: #4d4c4e;
62
+ border-radius: 0%;
63
+ }
64
+ 75% {
65
+ -webkit-transform: translate(-10px, 10px);
66
+ border-radius: 20%;
67
+ }
68
+ }
69
+
70
+ .cm-map-loading-container {
71
+ display: flex;
72
+ flex-direction: column;
73
+ justify-content: center;
74
+ align-items: center;
75
+ }
76
+ .cm-loading-indicator {
77
+ margin: 5px;
78
+ border: 2px solid #f3f3f3;
79
+ border-radius: 50%;
80
+ border-top: 2px solid #3498db;
81
+ width: 25px;
82
+ height: 25px;
83
+ -webkit-animation: spin 1s linear infinite; /* Safari */
84
+ animation: spin 1s linear infinite;
85
+ }
86
+ .cm-map-ready {
87
+ padding: 5px;
88
+ width: 25px;
89
+ height: 25px;
90
+ }
91
+
92
+ /* Safari */
93
+ @-webkit-keyframes spin {
94
+ 0% {
95
+ -webkit-transform: rotate(0deg);
96
+ }
97
+ 100% {
98
+ -webkit-transform: rotate(360deg);
99
+ }
100
+ }
101
+
102
+ @keyframes spin {
103
+ 0% {
104
+ transform: rotate(0deg);
105
+ }
106
+ 100% {
107
+ transform: rotate(360deg);
108
+ }
109
+ }
1
110
  .corpsmap .sidebar {
2
111
  display: flex;
3
112
  position: absolute;
@@ -172,115 +281,6 @@
172
281
  outline: 0;
173
282
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
174
283
  }
175
- .loading-container {
176
- height: 100px;
177
- display: flex;
178
- flex-direction: column;
179
- justify-content: center;
180
- align-items: center;
181
- }
182
-
183
- .loading-text {
184
- font-size: 18px;
185
- margin-top: 15px;
186
- }
187
-
188
- .loading-spinner {
189
- font-size: 12px;
190
- height: 12px;
191
- width: 12px;
192
- margin: 0 auto;
193
- background-color: red;
194
- -webkit-animation: move 3s linear infinite; /* Safari */
195
- animation: move 3s linear infinite;
196
- animation-play-state: running;
197
- }
198
-
199
- @keyframes move {
200
- 0%,
201
- 100% {
202
- transform: translate(-10px, -10px);
203
- background-color: #f5f5f5;
204
- border-radius: 40%;
205
- }
206
- 25% {
207
- transform: translate(10px, -10px);
208
- border-radius: 20%;
209
- }
210
- 50% {
211
- transform: translate(10px, 10px);
212
- background-color: #4d4c4e;
213
- border-radius: 0%;
214
- }
215
- 75% {
216
- transform: translate(-10px, 10px);
217
- border-radius: 20%;
218
- }
219
- }
220
-
221
- /* Safari */
222
- @-webkit-keyframes move {
223
- 0%,
224
- 100% {
225
- -webkit-transform: translate(-10px, -10px);
226
- background-color: #f5f5f5;
227
- border-radius: 40%;
228
- }
229
- 25% {
230
- -webkit-transform: translate(10px, -10px);
231
- border-radius: 20%;
232
- }
233
- 50% {
234
- -webkit-transform: translate(10px, 10px);
235
- background-color: #4d4c4e;
236
- border-radius: 0%;
237
- }
238
- 75% {
239
- -webkit-transform: translate(-10px, 10px);
240
- border-radius: 20%;
241
- }
242
- }
243
-
244
- .cm-map-loading-container {
245
- display: flex;
246
- flex-direction: column;
247
- justify-content: center;
248
- align-items: center;
249
- }
250
- .cm-loading-indicator {
251
- margin: 5px;
252
- border: 2px solid #f3f3f3;
253
- border-radius: 50%;
254
- border-top: 2px solid #3498db;
255
- width: 25px;
256
- height: 25px;
257
- -webkit-animation: spin 1s linear infinite; /* Safari */
258
- animation: spin 1s linear infinite;
259
- }
260
- .cm-map-ready {
261
- padding: 5px;
262
- width: 25px;
263
- height: 25px;
264
- }
265
-
266
- /* Safari */
267
- @-webkit-keyframes spin {
268
- 0% {
269
- -webkit-transform: rotate(0deg);
270
- }
271
- 100% {
272
- -webkit-transform: rotate(360deg);
273
- }
274
- }
275
-
276
- @keyframes spin {
277
- 0% {
278
- transform: rotate(0deg);
279
- }
280
- 100% {
281
- transform: rotate(360deg);
282
- }
283
- }
284
284
  @import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700");
285
285
 
286
286
  /*!
package/lib/dev.js CHANGED
@@ -109315,7 +109315,7 @@ var config = {
109315
109315
  };
109316
109316
 
109317
109317
  var name = "@corpsmap/corpsmap";
109318
- var version$1 = "3.2.84";
109318
+ var version$1 = "3.2.90";
109319
109319
  var description = "CorpsMap as React Components";
109320
109320
  var main = "index.js";
109321
109321
  var scripts = {
@@ -139573,12 +139573,14 @@ var ChangeLogModal = /*#__PURE__*/function (_React$Component) {
139573
139573
  key: "formatDate",
139574
139574
  value: function formatDate(oldDate) {
139575
139575
  var newDate = new Date(oldDate);
139576
- newDate = newDate.toLocaleDateString("default", {
139576
+ var offset = newDate.getTimezoneOffset() * 60000;
139577
+ var newDate2 = new Date(newDate.getTime() + offset);
139578
+ newDate2 = newDate2.toLocaleDateString("default", {
139577
139579
  month: "long",
139578
139580
  day: "numeric",
139579
139581
  year: "numeric"
139580
139582
  });
139581
- return newDate;
139583
+ return newDate2;
139582
139584
  }
139583
139585
  }, {
139584
139586
  key: "render",
package/lib/prod.js CHANGED
@@ -109229,7 +109229,7 @@ var config = {
109229
109229
  };
109230
109230
 
109231
109231
  var name = "@corpsmap/corpsmap";
109232
- var version$1 = "3.2.84";
109232
+ var version$1 = "3.2.90";
109233
109233
  var description = "CorpsMap as React Components";
109234
109234
  var main = "index.js";
109235
109235
  var scripts = {
@@ -139487,12 +139487,14 @@ var ChangeLogModal = /*#__PURE__*/function (_React$Component) {
139487
139487
  key: "formatDate",
139488
139488
  value: function formatDate(oldDate) {
139489
139489
  var newDate = new Date(oldDate);
139490
- newDate = newDate.toLocaleDateString("default", {
139490
+ var offset = newDate.getTimezoneOffset() * 60000;
139491
+ var newDate2 = new Date(newDate.getTime() + offset);
139492
+ newDate2 = newDate2.toLocaleDateString("default", {
139491
139493
  month: "long",
139492
139494
  day: "numeric",
139493
139495
  year: "numeric"
139494
139496
  });
139495
- return newDate;
139497
+ return newDate2;
139496
139498
  }
139497
139499
  }, {
139498
139500
  key: "render",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corpsmap/corpsmap",
3
- "version": "3.2.84",
3
+ "version": "3.2.90",
4
4
  "description": "CorpsMap as React Components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,195 +1,197 @@
1
- import React from "react";
2
- import { connect } from "redux-bundler-react";
3
- import { SearchInput, SearchResultsList } from "../../application-controls";
4
- import SelectDistrict from "./select-district";
5
-
6
- class ChangeLogModal extends React.Component {
7
- constructor(props) {
8
- super(props);
9
-
10
- this.handleChange = this.handleChange.bind(this);
11
- this.close = this.close.bind(this);
12
- this.fomatDate = this.formatDate.bind(this);
13
- }
14
-
15
- handleChange(event) {
16
- const { doSetSearchBarFilter } = this.props;
17
- doSetSearchBarFilter(event.target.value);
18
- }
19
-
20
- close() {
21
- const { doModalClose } = this.props;
22
- doModalClose();
23
- }
24
-
25
- formatDate(oldDate) {
26
- let newDate = new Date(oldDate);
27
- newDate = newDate.toLocaleDateString("default", {
28
- month: "long",
29
- day: "numeric",
30
- year: "numeric",
31
- });
32
- return newDate;
33
- }
34
-
35
- render() {
36
- const {
37
- theme,
38
- doGetChangeLogData,
39
- changeLogItems,
40
- allChangeLogItems,
41
- searchBarFilter,
42
- } = this.props;
43
- const loginDataWk = changeLogItems;
44
- let districtCodes = [
45
- ...new Set(allChangeLogItems.map((feature) => feature.district_code)),
46
- ];
47
- let options = [];
48
-
49
- districtCodes.sort().forEach((item, index) => {
50
- if (item) {
51
- options.push({
52
- label: `${item}`,
53
- value: `${item}`,
54
- });
55
- }
56
- });
57
-
58
- options.unshift({ label: "All Districts", value: "All" });
59
-
60
- const arrayDataItems = loginDataWk.map((data) => (
61
- <div
62
- key={data.id + data.id + 9876}
63
- style={
64
- Object.keys(data).length > 0
65
- ? { listStyleType: "disc" }
66
- : { listStyleType: "none" }
67
- }
68
- >
69
- {data.change_date ? (
70
- <li key={data.change_date + data.id}>
71
- <b>{this.formatDate(data.change_date)}</b>
72
- </li>
73
- ) : null}
74
- {data.environment ? (
75
- <li
76
- key={data.environment + data.id}
77
- style={{ listStyleType: "none" }}
78
- >
79
- <b>Environment:</b> {data.environment}{" "}
80
- </li>
81
- ) : null}
82
- {data.change_type ? (
83
- <li
84
- key={data.change_type + data.id}
85
- style={{ listStyleType: "none" }}
86
- >
87
- <b>Change Type:</b> {data.change_type}
88
- </li>
89
- ) : null}
90
- {data.district_code ? (
91
- <li
92
- key={data.district_code + data.id}
93
- style={{ listStyleType: "none" }}
94
- >
95
- <b>District:</b> {data.district_code}
96
- </li>
97
- ) : null}
98
- {data.description ? (
99
- <li
100
- key={data.description + data.id}
101
- style={{ listStyleType: "none" }}
102
- >
103
- <b>Description:</b> {data.description}
104
- </li>
105
- ) : null}
106
- <br></br>
107
- </div>
108
- ));
109
-
110
- const filterStyle = {
111
- // paddingLeft: "25px",
112
- display: "flex",
113
- justifyContent: "center",
114
- alignItems: "center",
115
- gap: "40px",
116
- width: "700px",
117
- alignItems: "flex-end",
118
- // textAlign: "right",
119
- // alignItems: "flex-end" /* Aligns content to the right */,
120
- // width: 300px; /* Example width for the container */
121
- // border: "1px solid lightgray" /* For visualization */,
122
- padding: "5px",
123
- };
124
-
125
- return (
126
- <div>
127
- <div className={"cm-modal-header " + theme}>Change Log</div>
128
-
129
- <div className="cm-modal-body">
130
- <div style={filterStyle}>
131
- <label style={{ fontSize: "18px", fontWeight: "bold" }}>
132
- Change Log
133
- </label>
134
- </div>
135
-
136
- <div style={filterStyle}>
137
- <label htmlFor="select-district">
138
- <b>Filter by District:</b>
139
- </label>
140
- <SelectDistrict options={options} />
141
- </div>
142
-
143
- <div style={filterStyle}>
144
- <label htmlFor="select-district">
145
- <b>Search:</b>
146
- </label>
147
-
148
- <input
149
- placeholder="Change Log Search..."
150
- style={{ width: "200px" }}
151
- value={searchBarFilter}
152
- onChange={this.handleChange}
153
- ></input>
154
- </div>
155
- <div
156
- style={{
157
- overflow: "auto scroll",
158
- width: "875px",
159
- height: "400px",
160
- whiteSpace: "pre-wrap",
161
- }}
162
- >
163
- <ul>{arrayDataItems}</ul>
164
- </div>
165
- </div>
166
- <div className="cm-modal-footer">
167
- <br></br>
168
- <br></br>
169
- <br></br>
170
- <button
171
- style={{ textAlign: "left" }}
172
- type="Close"
173
- className={"cm-btn cm-btn-theme " + theme}
174
- onClick={this.close}
175
- >
176
- Close
177
- </button>
178
- </div>
179
- </div>
180
- );
181
- }
182
- }
183
-
184
- export default connect(
185
- "selectTheme",
186
- "selectChangeLogItems",
187
- "selectAllChangeLogItems",
188
- "selectSearchBarFilter",
189
- "doModalClose",
190
- "doSubmitNotification",
191
- "doGetChangeLogData",
192
- "doSearchChangeLogData",
193
- "doSetSearchBarFilter",
194
- ChangeLogModal
195
- );
1
+ import React from "react";
2
+ import { connect } from "redux-bundler-react";
3
+ import { SearchInput, SearchResultsList } from "../../application-controls";
4
+ import SelectDistrict from "./select-district";
5
+
6
+ class ChangeLogModal extends React.Component {
7
+ constructor(props) {
8
+ super(props);
9
+
10
+ this.handleChange = this.handleChange.bind(this);
11
+ this.close = this.close.bind(this);
12
+ this.fomatDate = this.formatDate.bind(this);
13
+ }
14
+
15
+ handleChange(event) {
16
+ const { doSetSearchBarFilter } = this.props;
17
+ doSetSearchBarFilter(event.target.value);
18
+ }
19
+
20
+ close() {
21
+ const { doModalClose } = this.props;
22
+ doModalClose();
23
+ }
24
+
25
+ formatDate(oldDate) {
26
+ let newDate = new Date(oldDate);
27
+ let offset = newDate.getTimezoneOffset() * 60000;
28
+ let newDate2 = new Date(newDate.getTime() + offset);
29
+ newDate2 = newDate2.toLocaleDateString("default", {
30
+ month: "long",
31
+ day: "numeric",
32
+ year: "numeric",
33
+ });
34
+ return newDate2;
35
+ }
36
+
37
+ render() {
38
+ const {
39
+ theme,
40
+ doGetChangeLogData,
41
+ changeLogItems,
42
+ allChangeLogItems,
43
+ searchBarFilter,
44
+ } = this.props;
45
+ const loginDataWk = changeLogItems;
46
+ let districtCodes = [
47
+ ...new Set(allChangeLogItems.map((feature) => feature.district_code)),
48
+ ];
49
+ let options = [];
50
+
51
+ districtCodes.sort().forEach((item, index) => {
52
+ if (item) {
53
+ options.push({
54
+ label: `${item}`,
55
+ value: `${item}`,
56
+ });
57
+ }
58
+ });
59
+
60
+ options.unshift({ label: "All Districts", value: "All" });
61
+
62
+ const arrayDataItems = loginDataWk.map((data) => (
63
+ <div
64
+ key={data.id + data.id + 9876}
65
+ style={
66
+ Object.keys(data).length > 0
67
+ ? { listStyleType: "disc" }
68
+ : { listStyleType: "none" }
69
+ }
70
+ >
71
+ {data.change_date ? (
72
+ <li key={data.change_date + data.id}>
73
+ <b>{this.formatDate(data.change_date)}</b>
74
+ </li>
75
+ ) : null}
76
+ {data.environment ? (
77
+ <li
78
+ key={data.environment + data.id}
79
+ style={{ listStyleType: "none" }}
80
+ >
81
+ <b>Environment:</b> {data.environment}{" "}
82
+ </li>
83
+ ) : null}
84
+ {data.change_type ? (
85
+ <li
86
+ key={data.change_type + data.id}
87
+ style={{ listStyleType: "none" }}
88
+ >
89
+ <b>Change Type:</b> {data.change_type}
90
+ </li>
91
+ ) : null}
92
+ {data.district_code ? (
93
+ <li
94
+ key={data.district_code + data.id}
95
+ style={{ listStyleType: "none" }}
96
+ >
97
+ <b>District:</b> {data.district_code}
98
+ </li>
99
+ ) : null}
100
+ {data.description ? (
101
+ <li
102
+ key={data.description + data.id}
103
+ style={{ listStyleType: "none" }}
104
+ >
105
+ <b>Description:</b> {data.description}
106
+ </li>
107
+ ) : null}
108
+ <br></br>
109
+ </div>
110
+ ));
111
+
112
+ const filterStyle = {
113
+ // paddingLeft: "25px",
114
+ display: "flex",
115
+ justifyContent: "center",
116
+ alignItems: "center",
117
+ gap: "40px",
118
+ width: "700px",
119
+ alignItems: "flex-end",
120
+ // textAlign: "right",
121
+ // alignItems: "flex-end" /* Aligns content to the right */,
122
+ // width: 300px; /* Example width for the container */
123
+ // border: "1px solid lightgray" /* For visualization */,
124
+ padding: "5px",
125
+ };
126
+
127
+ return (
128
+ <div>
129
+ <div className={"cm-modal-header " + theme}>Change Log</div>
130
+
131
+ <div className="cm-modal-body">
132
+ <div style={filterStyle}>
133
+ <label style={{ fontSize: "18px", fontWeight: "bold" }}>
134
+ Change Log
135
+ </label>
136
+ </div>
137
+
138
+ <div style={filterStyle}>
139
+ <label htmlFor="select-district">
140
+ <b>Filter by District:</b>
141
+ </label>
142
+ <SelectDistrict options={options} />
143
+ </div>
144
+
145
+ <div style={filterStyle}>
146
+ <label htmlFor="select-district">
147
+ <b>Search:</b>
148
+ </label>
149
+
150
+ <input
151
+ placeholder="Change Log Search..."
152
+ style={{ width: "200px" }}
153
+ value={searchBarFilter}
154
+ onChange={this.handleChange}
155
+ ></input>
156
+ </div>
157
+ <div
158
+ style={{
159
+ overflow: "auto scroll",
160
+ width: "875px",
161
+ height: "400px",
162
+ whiteSpace: "pre-wrap",
163
+ }}
164
+ >
165
+ <ul>{arrayDataItems}</ul>
166
+ </div>
167
+ </div>
168
+ <div className="cm-modal-footer">
169
+ <br></br>
170
+ <br></br>
171
+ <br></br>
172
+ <button
173
+ style={{ textAlign: "left" }}
174
+ type="Close"
175
+ className={"cm-btn cm-btn-theme " + theme}
176
+ onClick={this.close}
177
+ >
178
+ Close
179
+ </button>
180
+ </div>
181
+ </div>
182
+ );
183
+ }
184
+ }
185
+
186
+ export default connect(
187
+ "selectTheme",
188
+ "selectChangeLogItems",
189
+ "selectAllChangeLogItems",
190
+ "selectSearchBarFilter",
191
+ "doModalClose",
192
+ "doSubmitNotification",
193
+ "doGetChangeLogData",
194
+ "doSearchChangeLogData",
195
+ "doSetSearchBarFilter",
196
+ ChangeLogModal
197
+ );