@hestia-earth/ui-components 0.6.0 → 0.6.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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/router'), require('@ng-bootstrap/ng-bootstrap'), require('@angular/google-maps'), require('@fortawesome/angular-fontawesome'), require('@fortawesome/free-regular-svg-icons'), require('@fortawesome/free-solid-svg-icons'), require('random-material-color'), require('@hestia-earth/schema'), require('@hestia-earth/api'), require('@angular/platform-browser'), require('rxjs'), require('@hestia-earth/utils'), require('pluralize'), require('@hestia-earth/utils/dist/term'), require('@hestia-earth/glossary'), require('rxjs/operators'), require('csvtojson'), require('@angular/common/http'), require('@hestia-earth/utils/dist/delta'), require('json-2-csv'), require('@angular/cdk/drag-drop'), require('@hestia-earth/schema-convert'), require('@hestia-earth/json-schema/schema-utils'), require('@hestia-earth/json-schema'), require('jsondiffpatch'), require('chart.js'), require('chartjs-plugin-datalabels'), require('semver-sort'), require('moment'), require('moment/locale/en-gb'), require('uuid'), require('@google/markerclustererplus')) :
3
- typeof define === 'function' && define.amd ? define('@hestia-earth/ui-components', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/router', '@ng-bootstrap/ng-bootstrap', '@angular/google-maps', '@fortawesome/angular-fontawesome', '@fortawesome/free-regular-svg-icons', '@fortawesome/free-solid-svg-icons', 'random-material-color', '@hestia-earth/schema', '@hestia-earth/api', '@angular/platform-browser', 'rxjs', '@hestia-earth/utils', 'pluralize', '@hestia-earth/utils/dist/term', '@hestia-earth/glossary', 'rxjs/operators', 'csvtojson', '@angular/common/http', '@hestia-earth/utils/dist/delta', 'json-2-csv', '@angular/cdk/drag-drop', '@hestia-earth/schema-convert', '@hestia-earth/json-schema/schema-utils', '@hestia-earth/json-schema', 'jsondiffpatch', 'chart.js', 'chartjs-plugin-datalabels', 'semver-sort', 'moment', 'moment/locale/en-gb', 'uuid', '@google/markerclustererplus'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["hestia-earth"] = global["hestia-earth"] || {}, global["hestia-earth"]["ui-components"] = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.router, global.i12, global.ng.googleMaps, global.i1, global.freeRegularSvgIcons, global.freeSolidSvgIcons, global.randomMaterialColor, global.schema, global.api, global.ng.platformBrowser, global.rxjs, global.utils, global.pluralize, global.term, global.glossary, global.rxjs.operators, global.csvtojson, global.ng.common.http, global.delta, global.json2Csv, global.ng.cdk.dragDrop, global.schemaConvert, global.schemaUtils, global.jsonSchema, global.jsondiffpatch, global.chart_js, global.ChartDataLabels, global.semverSort, global.moment, null, global.uuid$1, global.MarkerClusterer));
5
- })(this, (function (exports, i0, i2, i1$1, i5, i12, i1$4, i1, freeRegularSvgIcons, freeSolidSvgIcons, randomMaterialColor, schema, api, i1$2, rxjs, utils, pluralize, term, glossary, operators, csvtojson, i1$3, delta, json2Csv, i6, schemaConvert, schemaUtils, jsonSchema, jsondiffpatch, chart_js, ChartDataLabels, semverSort, moment, enGb, uuid$1, MarkerClusterer) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/router'), require('@ng-bootstrap/ng-bootstrap'), require('@angular/google-maps'), require('@fortawesome/angular-fontawesome'), require('@fortawesome/free-regular-svg-icons'), require('@fortawesome/free-solid-svg-icons'), require('random-material-color'), require('@hestia-earth/schema'), require('@hestia-earth/api'), require('@angular/platform-browser'), require('rxjs'), require('@hestia-earth/utils'), require('pluralize'), require('@hestia-earth/utils/dist/term'), require('@hestia-earth/glossary'), require('rxjs/operators'), require('csvtojson'), require('@angular/common/http'), require('@hestia-earth/utils/dist/delta'), require('json-2-csv'), require('@angular/cdk/drag-drop'), require('@hestia-earth/schema-convert'), require('@hestia-earth/json-schema/schema-utils'), require('@hestia-earth/json-schema'), require('jsondiffpatch'), require('chart.js'), require('chartjs-plugin-datalabels'), require('semver'), require('moment'), require('moment/locale/en-gb'), require('uuid'), require('@google/markerclustererplus')) :
3
+ typeof define === 'function' && define.amd ? define('@hestia-earth/ui-components', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/router', '@ng-bootstrap/ng-bootstrap', '@angular/google-maps', '@fortawesome/angular-fontawesome', '@fortawesome/free-regular-svg-icons', '@fortawesome/free-solid-svg-icons', 'random-material-color', '@hestia-earth/schema', '@hestia-earth/api', '@angular/platform-browser', 'rxjs', '@hestia-earth/utils', 'pluralize', '@hestia-earth/utils/dist/term', '@hestia-earth/glossary', 'rxjs/operators', 'csvtojson', '@angular/common/http', '@hestia-earth/utils/dist/delta', 'json-2-csv', '@angular/cdk/drag-drop', '@hestia-earth/schema-convert', '@hestia-earth/json-schema/schema-utils', '@hestia-earth/json-schema', 'jsondiffpatch', 'chart.js', 'chartjs-plugin-datalabels', 'semver', 'moment', 'moment/locale/en-gb', 'uuid', '@google/markerclustererplus'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["hestia-earth"] = global["hestia-earth"] || {}, global["hestia-earth"]["ui-components"] = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.router, global.i12, global.ng.googleMaps, global.i1, global.freeRegularSvgIcons, global.freeSolidSvgIcons, global.randomMaterialColor, global.schema, global.api, global.ng.platformBrowser, global.rxjs, global.utils, global.pluralize, global.term, global.glossary, global.rxjs.operators, global.csvtojson, global.ng.common.http, global.delta, global.json2Csv, global.ng.cdk.dragDrop, global.schemaConvert, global.schemaUtils, global.jsonSchema, global.jsondiffpatch, global.chart_js, global.ChartDataLabels, global.semver, global.moment, null, global.uuid$1, global.MarkerClusterer));
5
+ })(this, (function (exports, i0, i2, i1$1, i5, i12, i1$4, i1, freeRegularSvgIcons, freeSolidSvgIcons, randomMaterialColor, schema, api, i1$2, rxjs, utils, pluralize, term, glossary, operators, csvtojson, i1$3, delta, json2Csv, i6, schemaConvert, schemaUtils, jsonSchema, jsondiffpatch, chart_js, ChartDataLabels, semver, moment, enGb, uuid$1, MarkerClusterer) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -37,7 +37,7 @@
37
37
  var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
38
38
  var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
39
39
  var ChartDataLabels__default = /*#__PURE__*/_interopDefaultLegacy(ChartDataLabels);
40
- var semverSort__namespace = /*#__PURE__*/_interopNamespace(semverSort);
40
+ var semver__namespace = /*#__PURE__*/_interopNamespace(semver);
41
41
  var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
42
42
  var MarkerClusterer__default = /*#__PURE__*/_interopDefaultLegacy(MarkerClusterer);
43
43
 
@@ -7330,6 +7330,17 @@
7330
7330
  }]
7331
7331
  }] });
7332
7332
 
7333
+ /* eslint-disable max-len */
7334
+ var semverRegex = function () { return /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/gi; };
7335
+ /* eslint-enable max-len */
7336
+ var sort = function (versions, compare) { return versions.sort(function (v1, v2) {
7337
+ var sv1 = semverRegex().exec(v1)[0] || v1;
7338
+ var sv2 = semverRegex().exec(v2)[0] || v2;
7339
+ return compare(sv1, sv2);
7340
+ }); };
7341
+ var asc = function (versions) { return sort(versions, semver__namespace.compare); };
7342
+ var desc = function (versions) { return sort(versions, semver__namespace.rcompare); };
7343
+
7333
7344
  var isVersionKey = function (key) { return ['addedVersion', 'updatedVersion'].includes(key); };
7334
7345
  var isValidValue = function (value) { return !utils.isUndefined(value) && (typeof value === 'object' && (Array.isArray(value) || value.addedVersion || value.updatedVersion)); };
7335
7346
  var version = function (node) {
@@ -7349,7 +7360,7 @@
7349
7360
  : value;
7350
7361
  })
7351
7362
  .filter(Boolean);
7352
- return (versions === null || versions === void 0 ? void 0 : versions.length) ? semverSort__namespace.desc(versions)[0] : null;
7363
+ return (versions === null || versions === void 0 ? void 0 : versions.length) ? desc(versions)[0] : null;
7353
7364
  };
7354
7365
 
7355
7366
  var EngineModelsVersionLinkComponent = /** @class */ (function () {