@mjhls/mjh-framework 1.0.107 → 1.0.108

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 CHANGED
@@ -1,6 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.106
3
- # mjh-framework v. 1.0.107
2
+ # mjh-framework v. 1.0.108
4
3
 
5
4
 
6
5
  > Foundation Framework
package/dist/index.es.js CHANGED
@@ -22,7 +22,6 @@ import Navbar from 'react-bootstrap/Navbar';
22
22
  import NavDropdown from 'react-bootstrap/NavDropdown';
23
23
  import Carousel$1 from 'react-bootstrap/Carousel';
24
24
  import Breadcrumb from 'react-bootstrap/Breadcrumb';
25
- import cookie from 'js-cookie';
26
25
 
27
26
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
28
27
 
@@ -12344,48 +12343,6 @@ var NavMagazine = function NavMagazine(props) {
12344
12343
  })
12345
12344
  )
12346
12345
  ),
12347
- React__default.createElement(
12348
- Navbar.Collapse,
12349
- { id: 'basic-navbar-nav' },
12350
- React__default.createElement(
12351
- Nav,
12352
- { className: 'mr-auto' },
12353
- dataObject && dataObject.map(function (row, index) {
12354
- if (row.subQuery && row.subQuery.length > 0) {
12355
- return row.name ? React__default.createElement(
12356
- NavDropdown,
12357
- { key: index, title: row.name, id: 'basic-nav-dropdown' },
12358
- row.subQuery && row.subQuery.map(function (ddRow, subIndex) {
12359
- if (ddRow.type === 'divider') {
12360
- return React__default.createElement(NavDropdown.Divider, { key: subIndex });
12361
- } else {
12362
- return ddRow.url && ddRow.name ? React__default.createElement(
12363
- Link,
12364
- { key: subIndex, href: ddRow.url },
12365
- React__default.createElement(
12366
- 'a',
12367
- { target: ddRow.blank ? '_blank' : '_self', className: 'dropdown-item' },
12368
- ddRow.name
12369
- )
12370
- ) : null;
12371
- }
12372
- })
12373
- ) : null;
12374
- } else {
12375
- return row.url && row.name ? React__default.createElement(
12376
- Link,
12377
- { key: index, href: row.url },
12378
- React__default.createElement(
12379
- 'a',
12380
- { target: row.blank ? '_blank' : '_self', className: 'nav-link' },
12381
- row.name
12382
- )
12383
- ) : null;
12384
- }
12385
- })
12386
- ),
12387
- React__default.createElement(Search, { device: 'mobile' })
12388
- ),
12389
12346
  website && React__default.createElement(
12390
12347
  Navbar.Collapse,
12391
12348
  { id: 'basic-navbar-sub' },
@@ -20294,8 +20251,163 @@ var Breadcrumbs = function Breadcrumbs() {
20294
20251
  );
20295
20252
  };
20296
20253
 
20254
+ var js_cookie = createCommonjsModule(function (module, exports) {
20255
+ (function (factory) {
20256
+ var registeredInModuleLoader;
20257
+ {
20258
+ module.exports = factory();
20259
+ registeredInModuleLoader = true;
20260
+ }
20261
+ if (!registeredInModuleLoader) {
20262
+ var OldCookies = window.Cookies;
20263
+ var api = window.Cookies = factory();
20264
+ api.noConflict = function () {
20265
+ window.Cookies = OldCookies;
20266
+ return api;
20267
+ };
20268
+ }
20269
+ }(function () {
20270
+ function extend () {
20271
+ var i = 0;
20272
+ var result = {};
20273
+ for (; i < arguments.length; i++) {
20274
+ var attributes = arguments[ i ];
20275
+ for (var key in attributes) {
20276
+ result[key] = attributes[key];
20277
+ }
20278
+ }
20279
+ return result;
20280
+ }
20281
+
20282
+ function decode (s) {
20283
+ return s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
20284
+ }
20285
+
20286
+ function init (converter) {
20287
+ function api() {}
20288
+
20289
+ function set (key, value, attributes) {
20290
+ if (typeof document === 'undefined') {
20291
+ return;
20292
+ }
20293
+
20294
+ attributes = extend({
20295
+ path: '/'
20296
+ }, api.defaults, attributes);
20297
+
20298
+ if (typeof attributes.expires === 'number') {
20299
+ attributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);
20300
+ }
20301
+
20302
+ // We're using "expires" because "max-age" is not supported by IE
20303
+ attributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';
20304
+
20305
+ try {
20306
+ var result = JSON.stringify(value);
20307
+ if (/^[\{\[]/.test(result)) {
20308
+ value = result;
20309
+ }
20310
+ } catch (e) {}
20311
+
20312
+ value = converter.write ?
20313
+ converter.write(value, key) :
20314
+ encodeURIComponent(String(value))
20315
+ .replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
20316
+
20317
+ key = encodeURIComponent(String(key))
20318
+ .replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)
20319
+ .replace(/[\(\)]/g, escape);
20320
+
20321
+ var stringifiedAttributes = '';
20322
+ for (var attributeName in attributes) {
20323
+ if (!attributes[attributeName]) {
20324
+ continue;
20325
+ }
20326
+ stringifiedAttributes += '; ' + attributeName;
20327
+ if (attributes[attributeName] === true) {
20328
+ continue;
20329
+ }
20330
+
20331
+ // Considers RFC 6265 section 5.2:
20332
+ // ...
20333
+ // 3. If the remaining unparsed-attributes contains a %x3B (";")
20334
+ // character:
20335
+ // Consume the characters of the unparsed-attributes up to,
20336
+ // not including, the first %x3B (";") character.
20337
+ // ...
20338
+ stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
20339
+ }
20340
+
20341
+ return (document.cookie = key + '=' + value + stringifiedAttributes);
20342
+ }
20343
+
20344
+ function get (key, json) {
20345
+ if (typeof document === 'undefined') {
20346
+ return;
20347
+ }
20348
+
20349
+ var jar = {};
20350
+ // To prevent the for loop in the first place assign an empty array
20351
+ // in case there are no cookies at all.
20352
+ var cookies = document.cookie ? document.cookie.split('; ') : [];
20353
+ var i = 0;
20354
+
20355
+ for (; i < cookies.length; i++) {
20356
+ var parts = cookies[i].split('=');
20357
+ var cookie = parts.slice(1).join('=');
20358
+
20359
+ if (!json && cookie.charAt(0) === '"') {
20360
+ cookie = cookie.slice(1, -1);
20361
+ }
20362
+
20363
+ try {
20364
+ var name = decode(parts[0]);
20365
+ cookie = (converter.read || converter)(cookie, name) ||
20366
+ decode(cookie);
20367
+
20368
+ if (json) {
20369
+ try {
20370
+ cookie = JSON.parse(cookie);
20371
+ } catch (e) {}
20372
+ }
20373
+
20374
+ jar[name] = cookie;
20375
+
20376
+ if (key === name) {
20377
+ break;
20378
+ }
20379
+ } catch (e) {}
20380
+ }
20381
+
20382
+ return key ? jar[key] : jar;
20383
+ }
20384
+
20385
+ api.set = set;
20386
+ api.get = function (key) {
20387
+ return get(key, false /* read as raw */);
20388
+ };
20389
+ api.getJSON = function (key) {
20390
+ return get(key, true /* read as json */);
20391
+ };
20392
+ api.remove = function (key, attributes) {
20393
+ set(key, '', extend(attributes, {
20394
+ expires: -1
20395
+ }));
20396
+ };
20397
+
20398
+ api.defaults = {};
20399
+
20400
+ api.withConverter = init;
20401
+
20402
+ return api;
20403
+ }
20404
+
20405
+ return init(function () {});
20406
+ }));
20407
+ });
20408
+
20297
20409
  var SetCookie = function SetCookie(key, value) {
20298
- cookie.set(key, value, { expires: 1, sameSite: 'none', secure: true });
20410
+ js_cookie.set(key, value, { expires: 1, sameSite: 'none', secure: true });
20299
20411
  };
20300
20412
 
20301
20413
  var BreadcrumbsExtended = function BreadcrumbsExtended(_ref) {