@cortezaproject/corteza-vue 2024.9.3 → 2024.9.4-dev.2

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.
Files changed (34) hide show
  1. package/dist/components/c3/C3.d.ts +5 -0
  2. package/dist/components/filePreview/common/index.d.ts +2 -0
  3. package/dist/components/filePreview/common/types/PDF/helpers.d.ts +53 -0
  4. package/dist/components/filePreview/common/types/index.d.ts +3 -0
  5. package/dist/components/input/CRichTextInput/RToolbar/TMark/loader.d.ts +10 -0
  6. package/dist/components/input/CRichTextInput/RToolbar/TNode/loader.d.ts +6 -0
  7. package/dist/components/input/CRichTextInput/RToolbar/TNodeAttr/loader.d.ts +6 -0
  8. package/dist/components/input/CRichTextInput/RToolbar/loader.d.ts +9 -0
  9. package/dist/components/input/CRichTextInput/extensions/heading.d.ts +12 -0
  10. package/dist/components/input/CRichTextInput/extensions/htmlPaster.d.ts +4 -0
  11. package/dist/components/input/CRichTextInput/extensions/index.d.ts +6 -0
  12. package/dist/components/input/CRichTextInput/extensions/link.d.ts +6 -0
  13. package/dist/components/input/CRichTextInput/extensions/paragraph.d.ts +9 -0
  14. package/dist/components/input/CRichTextInput/extensions/textBackground.d.ts +23 -0
  15. package/dist/components/input/CRichTextInput/extensions/textColor.d.ts +23 -0
  16. package/dist/components/input/CRichTextInput/extensions/utils.d.ts +15 -0
  17. package/dist/components/input/CRichTextInput/lib/formats.d.ts +85 -0
  18. package/dist/components/input/CRichTextInput/lib/index.d.ts +1 -0
  19. package/dist/components/itemPicker/C3.d.ts +1 -0
  20. package/dist/components/itemPicker/CItemPicker.c3.d.ts +32 -0
  21. package/dist/components/toaster/actions/index.d.ts +3 -0
  22. package/dist/index.cjs +31410 -0
  23. package/dist/index.cjs.map +1 -0
  24. package/dist/index.es.js +27 -62
  25. package/dist/index.es.js.map +1 -1
  26. package/dist/index.js +140 -207
  27. package/dist/index.js.map +1 -1
  28. package/dist/mixins/corredor.d.ts +49 -0
  29. package/dist/mixins/files.d.ts +19 -0
  30. package/dist/mixins/index.d.ts +0 -1
  31. package/dist/mixins/vue-select-position.d.ts +11 -0
  32. package/dist/plugins/reminder.d.ts +66 -0
  33. package/dist/plugins/settings.d.ts +27 -0
  34. package/package.json +9 -4
package/dist/index.js CHANGED
@@ -1,55 +1,33 @@
1
- 'use strict';
2
-
3
- var cortezaJs = require('@cortezaproject/corteza-js');
4
- var qs = require('qs');
5
- var moment = require('moment');
6
- var i18next = require('i18next');
7
- var http = require('i18next-http-backend');
8
- var detector = require('i18next-browser-languagedetector');
9
- var multiload = require('i18next-multiload-backend-adapter');
10
- var VueI18Next = require('@panter/vue-i18next');
11
- var mime = require('mime');
12
- var core = require('@popperjs/core');
13
- var _ = require('lodash');
14
- var vPhotoswipe = require('v-photoswipe');
15
- var pdfjsLib = require('pdfjs-dist');
16
- var Draggable = require('vuedraggable');
17
- var vueSelect = require('vue-select');
18
- var Swatches = require('vue-swatches');
19
- var tiptap = require('tiptap');
20
- var tiptapExtensions = require('tiptap-extensions');
21
- var hps = require('html-parse-stringify');
22
- var vueColor = require('vue-color');
23
- var AceEditor = require('vue2-ace-editor');
24
- var fontawesomeSvgCore = require('@fortawesome/fontawesome-svg-core');
25
- var freeSolidSvgIcons = require('@fortawesome/free-solid-svg-icons');
26
- var vuex = require('vuex');
27
- var numeral = require('numeral');
28
- var leafletGeosearch = require('leaflet-geosearch');
29
- var leaflet = require('leaflet');
30
- var vue2Leaflet = require('vue2-leaflet');
31
- var pino = require('pino');
32
- var fzy = require('fuzzysort');
33
-
34
- var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
35
- function _interopNamespaceDefault(e) {
36
- var n = Object.create(null);
37
- if (e) {
38
- Object.keys(e).forEach(function (k) {
39
- if (k !== 'default') {
40
- var d = Object.getOwnPropertyDescriptor(e, k);
41
- Object.defineProperty(n, k, d.get ? d : {
42
- enumerable: true,
43
- get: function () { return e[k]; }
44
- });
45
- }
46
- });
47
- }
48
- n.default = e;
49
- return Object.freeze(n);
50
- }
51
-
52
- var pdfjsLib__namespace = /*#__PURE__*/_interopNamespaceDefault(pdfjsLib);
1
+ import { apiClients, system, eventbus as eventbus$1, corredor as corredor$1, NoID, compose, automation, shared, fmt } from '@cortezaproject/corteza-js';
2
+ import qs from 'qs';
3
+ import moment from 'moment';
4
+ import i18next from 'i18next';
5
+ import http from 'i18next-http-backend';
6
+ import detector from 'i18next-browser-languagedetector';
7
+ import multiload from 'i18next-multiload-backend-adapter';
8
+ import VueI18Next from '@panter/vue-i18next';
9
+ import mime from 'mime';
10
+ import _, { throttle as throttle$1, debounce, isNumber as isNumber$1 } from 'lodash';
11
+ import { PhotoSwipe } from 'v-photoswipe';
12
+ import * as pdfjsLib from 'pdfjs-dist';
13
+ import Draggable from 'vuedraggable';
14
+ import { VueSelect } from 'vue-select';
15
+ import { createPopper } from '@popperjs/core';
16
+ import Swatches from 'vue-swatches';
17
+ import { Paragraph as Paragraph$1, Mark, Plugin, PluginKey, Extension, EditorMenuBar, EditorContent, Editor } from 'tiptap';
18
+ import { Heading as Heading$1, Link as Link$1, Bold, Italic, Underline, Strike, Blockquote, CodeBlock, OrderedList, BulletList, TodoList, HorizontalRule, ListItem, TodoItem, History, Table, TableHeader, TableCell, TableRow } from 'tiptap-extensions';
19
+ import hps from 'html-parse-stringify';
20
+ import { Chrome } from 'vue-color';
21
+ import AceEditor from 'vue2-ace-editor';
22
+ import { library } from '@fortawesome/fontawesome-svg-core';
23
+ import { faExpandAlt, faLock, faMoon, faSun } from '@fortawesome/free-solid-svg-icons';
24
+ import { mapActions, mapGetters, mapMutations } from 'vuex';
25
+ import numeral from 'numeral';
26
+ import { OpenStreetMapProvider } from 'leaflet-geosearch';
27
+ import { divIcon, latLng, latLngBounds } from 'leaflet';
28
+ import { LTooltip, LMap, LMarker, LTileLayer, LPolygon, LControl } from 'vue2-leaflet';
29
+ import pino from 'pino';
30
+ import fzy from 'fuzzysort';
53
31
 
54
32
  /**
55
33
  * Generic Corteza API plugin
@@ -79,7 +57,7 @@ function cortezaApi (service, opt = {}) {
79
57
  }
80
58
  // @ts-ignore
81
59
  // makes Vue.$<service>API (Vue.$SystemAPI, Vue.$ComposeAPI, Vue.$FederationAPI, Vue.$AutomationAPI) available
82
- Vue.prototype[`$${service}API`] = new cortezaJs.apiClients[service](opt);
60
+ Vue.prototype[`$${service}API`] = new apiClients[service](opt);
83
61
  };
84
62
  }
85
63
 
@@ -4074,7 +4052,7 @@ class Auth {
4074
4052
  this.log.info('fetching authentication info from ' + oauth2InfoURL);
4075
4053
  return this.axios.get(oauth2InfoURL, { headers }).then(({ data }) => {
4076
4054
  this.log.info('data fetch form info endpoint', { oauth2InfoURL, headers, data });
4077
- const authUser = new cortezaJs.system.User(Object.assign({ userID: data.sub, meta: {
4055
+ const authUser = new system.User(Object.assign({ userID: data.sub, meta: {
4078
4056
  preferredLanguage: data.preferred_language || 'en',
4079
4057
  avatarID: data.avatarID,
4080
4058
  theme: data.theme,
@@ -4260,7 +4238,7 @@ class Auth {
4260
4238
  });
4261
4239
  }), 1000 * timeout);
4262
4240
  this.sessionStorage.setItem(storeKeyRefreshToken, oa2tkn.refresh_token);
4263
- const u = new cortezaJs.system.User(Object.assign({ userID: oa2tkn.sub, meta: {
4241
+ const u = new system.User(Object.assign({ userID: oa2tkn.sub, meta: {
4264
4242
  preferredLanguage: oa2tkn.preferred_language || 'en',
4265
4243
  avatarID: oa2tkn.avatarID,
4266
4244
  theme: oa2tkn.theme,
@@ -4440,7 +4418,7 @@ class Button {
4440
4418
  this.page = uiProps.page;
4441
4419
  this.slot = uiProps.slot;
4442
4420
  this.variant = uiProps.variant;
4443
- this.constraints = ((_d = t.constraints) === null || _d === void 0 ? void 0 : _d.map(cortezaJs.eventbus.ConstraintMaker)) || [];
4421
+ this.constraints = ((_d = t.constraints) === null || _d === void 0 ? void 0 : _d.map(eventbus$1.ConstraintMaker)) || [];
4444
4422
  }
4445
4423
  }
4446
4424
  /**
@@ -4534,7 +4512,7 @@ function uiHooks () {
4534
4512
 
4535
4513
  function eventbus () {
4536
4514
  return function (Vue, opts) {
4537
- Vue.prototype.$EventBus = new cortezaJs.eventbus.EventBus(opts);
4515
+ Vue.prototype.$EventBus = new eventbus$1.EventBus(opts);
4538
4516
  };
4539
4517
  }
4540
4518
 
@@ -5274,7 +5252,7 @@ var ReminderService = /*#__PURE__*/function () {
5274
5252
  }, this.filter)).then(function (_ref3) {
5275
5253
  var set = _ref3.set;
5276
5254
  return (set || []).map(function (r) {
5277
- return new cortezaJs.system.Reminder(r);
5255
+ return new system.Reminder(r);
5278
5256
  });
5279
5257
  }));
5280
5258
  case 1:
@@ -5291,7 +5269,7 @@ var ReminderService = /*#__PURE__*/function () {
5291
5269
  }, {
5292
5270
  key: "enqueueRaw",
5293
5271
  value: function enqueueRaw(raw) {
5294
- this.enqueue(new cortezaJs.system.Reminder(raw));
5272
+ this.enqueue(new system.Reminder(raw));
5295
5273
  }
5296
5274
 
5297
5275
  /**
@@ -5799,8 +5777,8 @@ var corredor = {
5799
5777
  // convert event arguments and prepare
5800
5778
  // context for script's execution
5801
5779
  function (ev) {
5802
- var args = new cortezaJs.corredor.ArgsProxy(ev.args);
5803
- return cortezaJs.corredor.Exec(script, args, ctx.withArgs(args));
5780
+ var args = new corredor$1.ArgsProxy(ev.args);
5781
+ return corredor$1.Exec(script, args, ctx.withArgs(args));
5804
5782
  }, trigger);
5805
5783
  } catch (e) {
5806
5784
  console.error(e);
@@ -5838,60 +5816,10 @@ var files = {
5838
5816
  }
5839
5817
  };
5840
5818
 
5841
- var vueSelectPosition = {
5842
- methods: {
5843
- calculateDropdownPosition: function calculateDropdownPosition(dropdownList, component, _ref) {
5844
- var width = _ref.width;
5845
- /**
5846
- * We need to explicitly define the dropdown width since
5847
- * it is usually inherited from the parent with CSS.
5848
- */
5849
- dropdownList.style.width = width;
5850
-
5851
- /**
5852
- * Here we position the dropdownList relative to the $refs.toggle Element.
5853
- *
5854
- * The 'offset' modifier aligns the dropdown so that the $refs.toggle and
5855
- * the dropdownList overlap by 1 pixel.
5856
- *
5857
- * The 'toggleClass' modifier adds a 'drop-up' class to the Vue Select
5858
- * wrapper so that we can set some styles for when the dropdown is placed
5859
- * above.
5860
- */
5861
- var popper = core.createPopper(component.$refs.toggle, dropdownList, {
5862
- placement: 'bottom',
5863
- modifiers: [{
5864
- name: 'offset',
5865
- options: {
5866
- offset: [0, -1]
5867
- }
5868
- }, {
5869
- name: 'toggleClass',
5870
- enabled: true,
5871
- phase: 'write',
5872
- fn: function fn(_ref2) {
5873
- var state = _ref2.state;
5874
- component.$el.classList.toggle('drop-up', state.placement === 'top');
5875
- }
5876
- }]
5877
- });
5878
-
5879
- /**
5880
- * To prevent memory leaks Popper needs to be destroyed.
5881
- * If you return function, it will be called just before dropdown is removed from DOM.
5882
- */
5883
- return function () {
5884
- return popper.destroy();
5885
- };
5886
- }
5887
- }
5888
- };
5889
-
5890
5819
  var index$7 = /*#__PURE__*/Object.freeze({
5891
5820
  __proto__: null,
5892
5821
  corredor: corredor,
5893
- files: files,
5894
- vueSelectPosition: vueSelectPosition
5822
+ files: files
5895
5823
  });
5896
5824
 
5897
5825
  //
@@ -5949,7 +5877,7 @@ var script$1l = {
5949
5877
  },
5950
5878
 
5951
5879
  mounted () {
5952
- this.debouncedUpdateActivity = _.throttle(this.updateActivity, 5000, { leading: true, trailing: true });
5880
+ this.debouncedUpdateActivity = throttle$1(this.updateActivity, 5000, { leading: true, trailing: true });
5953
5881
  this.setupActivityListeners();
5954
5882
  this.setupHeartbeatMonitoring();
5955
5883
  },
@@ -6423,7 +6351,7 @@ var __vue_staticRenderFns__$1e = [];
6423
6351
 
6424
6352
  var script$1h = {
6425
6353
  components: {
6426
- PhotoSwipe: vPhotoswipe.PhotoSwipe,
6354
+ PhotoSwipe,
6427
6355
  },
6428
6356
 
6429
6357
  extends: __vue_component__$1l,
@@ -6600,7 +6528,7 @@ function makeFailedPage(labels) {
6600
6528
  return node;
6601
6529
  }
6602
6530
 
6603
- pdfjsLib__namespace.GlobalWorkerOptions.workerSrc = new URL('pdfjs-dist/build/pdf.worker.min.mjs', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.js', document.baseURI).href))).toString();
6531
+ pdfjsLib.GlobalWorkerOptions.workerSrc = new URL('pdfjs-dist/build/pdf.worker.min.mjs', import.meta.url).toString();
6604
6532
 
6605
6533
  function sleep (t) {
6606
6534
  return new Promise(resolve => setTimeout(resolve, t))
@@ -6710,7 +6638,7 @@ var script$1g = {
6710
6638
  * @returns {Promise<PDFDocumentProxy>}
6711
6639
  */
6712
6640
  async pdfjsLoad (src) {
6713
- return pdfjsLib__namespace.getDocument({
6641
+ return pdfjsLib.getDocument({
6714
6642
  url: src,
6715
6643
  useWorkerFetch: true,
6716
6644
  isEvalSupported: true,
@@ -7569,7 +7497,7 @@ var script$19 = {
7569
7497
  name: 'CInputSelect',
7570
7498
 
7571
7499
  components: {
7572
- VueSelect: vueSelect.VueSelect,
7500
+ VueSelect,
7573
7501
  },
7574
7502
 
7575
7503
  props: {
@@ -7677,7 +7605,7 @@ var script$19 = {
7677
7605
  * wrapper so that we can set some styles for when the dropdown is placed
7678
7606
  * above.
7679
7607
  */
7680
- const popper = core.createPopper(component.$refs.toggle, dropdownList, {
7608
+ const popper = createPopper(component.$refs.toggle, dropdownList, {
7681
7609
  placement: 'bottom',
7682
7610
  modifiers: [
7683
7611
  {
@@ -11647,7 +11575,7 @@ var Paragraph = /*#__PURE__*/function (_Base) {
11647
11575
  };
11648
11576
  }
11649
11577
  }]);
11650
- }(tiptap.Paragraph);
11578
+ }(Paragraph$1);
11651
11579
 
11652
11580
  /**
11653
11581
  * Extends original heading node to allow content alignment
@@ -11704,7 +11632,7 @@ var Heading = /*#__PURE__*/function (_Base) {
11704
11632
  };
11705
11633
  }
11706
11634
  }]);
11707
- }(tiptapExtensions.Heading);
11635
+ }(Heading$1);
11708
11636
 
11709
11637
  /**
11710
11638
  * Represents text's color
@@ -11751,7 +11679,7 @@ var Color = /*#__PURE__*/function (_Mark) {
11751
11679
  };
11752
11680
  }
11753
11681
  }]);
11754
- }(tiptap.Mark);
11682
+ }(Mark);
11755
11683
 
11756
11684
  /**
11757
11685
  * Represents text's background color
@@ -11798,7 +11726,7 @@ var Background = /*#__PURE__*/function (_Mark) {
11798
11726
  };
11799
11727
  }
11800
11728
  }]);
11801
- }(tiptap.Mark);
11729
+ }(Mark);
11802
11730
 
11803
11731
  /**
11804
11732
  * Extends original Link node to allow custom target attr
@@ -11824,7 +11752,7 @@ var Link = /*#__PURE__*/function (_BaseLink) {
11824
11752
  });
11825
11753
  }
11826
11754
  }]);
11827
- }(tiptapExtensions.Link);
11755
+ }(Link$1);
11828
11756
 
11829
11757
  var knownContentRoots = new Set(['pre', 'p']);
11830
11758
  function tp(c) {
@@ -11851,8 +11779,8 @@ function tp(c) {
11851
11779
  * It prevents white spaces from collapsing by converting them into
11852
11780
  * non-breakable spaces.
11853
11781
  */
11854
- var plug = new tiptap.Plugin({
11855
- key: new tiptap.PluginKey('htmlPaster'),
11782
+ var plug = new Plugin({
11783
+ key: new PluginKey('htmlPaster'),
11856
11784
  view: function view() {
11857
11785
  return {
11858
11786
  // eslint-disable-next-line @typescript-eslint/no-empty-function
@@ -11951,20 +11879,20 @@ var HtmlPaster = /*#__PURE__*/function (_Extension) {
11951
11879
  return [plug];
11952
11880
  }
11953
11881
  }]);
11954
- }(tiptap.Extension);
11882
+ }(Extension);
11955
11883
 
11956
11884
  /* eslint-disable @typescript-eslint/explicit-function-return-type */
11957
11885
 
11958
11886
 
11959
11887
  // Defines a set of formats that our document supports
11960
11888
  var getFormats = function getFormats() {
11961
- return [new HtmlPaster(), new tiptapExtensions.Bold(), new tiptapExtensions.Italic(), new tiptapExtensions.Underline(), new tiptapExtensions.Strike(), new tiptapExtensions.Blockquote(), new tiptapExtensions.CodeBlock(), new tiptapExtensions.OrderedList(), new tiptapExtensions.BulletList(), new tiptapExtensions.TodoList(), new Heading({
11889
+ return [new HtmlPaster(), new Bold(), new Italic(), new Underline(), new Strike(), new Blockquote(), new CodeBlock(), new OrderedList(), new BulletList(), new TodoList(), new Heading({
11962
11890
  levels: [1, 2, 3]
11963
11891
  }), new Paragraph({
11964
11892
  alignments: ['left', 'right', 'center', 'justify']
11965
- }), new Link(), new tiptapExtensions.HorizontalRule(), new tiptapExtensions.ListItem(), new tiptapExtensions.TodoItem(), new tiptapExtensions.History(), new Background(), new Color(), new tiptapExtensions.Table({
11893
+ }), new Link(), new HorizontalRule(), new ListItem(), new TodoItem(), new History(), new Background(), new Color(), new Table({
11966
11894
  resizable: true
11967
- }), new tiptapExtensions.TableHeader(), new tiptapExtensions.TableCell(), new tiptapExtensions.TableRow()];
11895
+ }), new TableHeader(), new TableCell(), new TableRow()];
11968
11896
  };
11969
11897
 
11970
11898
  // Defines the structure of our editor toolbar
@@ -12803,9 +12731,9 @@ var script$Y = {
12803
12731
  name: 'CRichTextInput',
12804
12732
 
12805
12733
  components: {
12806
- EditorContent: tiptap.EditorContent,
12734
+ EditorContent,
12807
12735
  RToolbar: __vue_component__$_,
12808
- EditorMenuBar: tiptap.EditorMenuBar,
12736
+ EditorMenuBar,
12809
12737
  },
12810
12738
 
12811
12739
  props: {
@@ -12860,7 +12788,7 @@ var script$Y = {
12860
12788
  * Initialize the editor, state, ...
12861
12789
  */
12862
12790
  init () {
12863
- this.editor = new tiptap.Editor({
12791
+ this.editor = new Editor({
12864
12792
  extensions: this.formats,
12865
12793
  // Bypass Editor default empty white space script with an empty space string if there is no value because it's not really valid html
12866
12794
  // also ensuring that the unsaved changes alert detection is not triggered when the Editor does not have any changes
@@ -13163,7 +13091,7 @@ var script$W = {
13163
13091
  name: 'CInputColorPicker',
13164
13092
 
13165
13093
  components: {
13166
- Chrome: vueColor.Chrome,
13094
+ Chrome,
13167
13095
  },
13168
13096
 
13169
13097
  props: {
@@ -13279,7 +13207,7 @@ var script$W = {
13279
13207
  },
13280
13208
 
13281
13209
  methods: {
13282
- updateColor: _.debounce(function ({ hex8 = '' }) {
13210
+ updateColor: debounce(function ({ hex8 = '' }) {
13283
13211
  this.currentColor = hex8;
13284
13212
  }, 300),
13285
13213
 
@@ -13378,7 +13306,7 @@ var __vue_staticRenderFns__$U = [];
13378
13306
  //
13379
13307
 
13380
13308
 
13381
- fontawesomeSvgCore.library.add(freeSolidSvgIcons.faExpandAlt);
13309
+ library.add(faExpandAlt);
13382
13310
 
13383
13311
  var script$V = {
13384
13312
  components: {
@@ -14089,7 +14017,7 @@ var script$S = {
14089
14017
  })
14090
14018
  },
14091
14019
 
14092
- search: _.debounce(function (query = '') {
14020
+ search: debounce(function (query = '') {
14093
14021
  if (query !== this.filter) {
14094
14022
  this.filter = query;
14095
14023
  }
@@ -14201,7 +14129,7 @@ var script$R = {
14201
14129
  },
14202
14130
 
14203
14131
  methods: {
14204
- search: _.debounce(function (query) {
14132
+ search: debounce(function (query) {
14205
14133
  if (query !== this.user.filter.query) {
14206
14134
  this.user.filter.query = query;
14207
14135
  this.user.filter.page = 1;
@@ -14223,7 +14151,7 @@ var script$R = {
14223
14151
  },
14224
14152
 
14225
14153
  getUserByID (userID) {
14226
- if (!userID || userID === cortezaJs.NoID) {
14154
+ if (!userID || userID === NoID) {
14227
14155
  this.user.value = undefined;
14228
14156
  return
14229
14157
  }
@@ -14304,7 +14232,7 @@ function split(input) {
14304
14232
  };
14305
14233
  }
14306
14234
 
14307
- fontawesomeSvgCore.library.add(freeSolidSvgIcons.faLock);
14235
+ library.add(faLock);
14308
14236
 
14309
14237
  var script$Q = {
14310
14238
  props: {
@@ -15315,7 +15243,7 @@ var script$H = {
15315
15243
  nextPage: '',
15316
15244
  },
15317
15245
 
15318
- namespaceID: cortezaJs.NoID,
15246
+ namespaceID: NoID,
15319
15247
  module: undefined,
15320
15248
 
15321
15249
  options: [],
@@ -15415,12 +15343,12 @@ var script$H = {
15415
15343
  const namespaceID = this.namespaceID;
15416
15344
  const moduleID = this.module.moduleID;
15417
15345
  const { limit } = this.filter;
15418
- if (moduleID && moduleID !== cortezaJs.NoID) {
15346
+ if (moduleID && moduleID !== NoID) {
15419
15347
  this.fetchPrefiltered({ namespaceID, moduleID, limit });
15420
15348
  }
15421
15349
  },
15422
15350
 
15423
- search: _.debounce(function (query = '') {
15351
+ search: debounce(function (query = '') {
15424
15352
  if (query !== this.query) {
15425
15353
  this.query = query;
15426
15354
  this.filter.pageCursor = undefined;
@@ -15431,7 +15359,7 @@ var script$H = {
15431
15359
  const moduleID = this.module.moduleID;
15432
15360
  const queryFields = this.pVal('queryFields') || [];
15433
15361
 
15434
- if (moduleID && moduleID !== cortezaJs.NoID) {
15362
+ if (moduleID && moduleID !== NoID) {
15435
15363
  // Determine what fields to use for searching
15436
15364
  // Default to label field
15437
15365
  let qf = queryFields.map(f => f['@value']).filter(f => !!f);
@@ -15474,7 +15402,7 @@ var script$H = {
15474
15402
  this.filter.prevPage = filter.prevPage;
15475
15403
 
15476
15404
  this.options = set.map(r => {
15477
- const record = new cortezaJs.compose.Record(this.module, r);
15405
+ const record = new compose.Record(this.module, r);
15478
15406
 
15479
15407
  let label;
15480
15408
  if (this.labelField) {
@@ -15503,7 +15431,7 @@ var script$H = {
15503
15431
  this.processing = false;
15504
15432
  this.query = '';
15505
15433
  this.filter = {};
15506
- this.namespaceID = cortezaJs.NoID;
15434
+ this.namespaceID = NoID;
15507
15435
  this.module = undefined;
15508
15436
  this.options = [];
15509
15437
  this.value = undefined;
@@ -15552,11 +15480,16 @@ const validTypes$1 = [
15552
15480
  'search',
15553
15481
  'date',
15554
15482
  'time',
15483
+ 'datetime',
15555
15484
  ];
15556
15485
 
15557
15486
  var script$G = {
15558
15487
  name: 'CPromptInput',
15559
15488
 
15489
+ components: {
15490
+ CInputDateTime: __vue_component__$1b,
15491
+ },
15492
+
15560
15493
  extends: __vue_component__$M,
15561
15494
 
15562
15495
  data () {
@@ -15590,7 +15523,12 @@ var script$G = {
15590
15523
  const __vue_script__$G = script$G;
15591
15524
 
15592
15525
  /* template */
15593
- var __vue_render__$F = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-flex flex-column gap-1"},[(!!_vm.message)?_c('p',{staticClass:"text-break",domProps:{"innerHTML":_vm._s(_vm.message)}}):_vm._e(),_vm._v(" "),_c('b-form-group',{attrs:{"label":_vm.label,"label-class":"text-primary"}},[_c('b-input',{attrs:{"type":_vm.type,"disabled":_vm.loading},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v;},expression:"value"}})],1),_vm._v(" "),_c('b-button',{staticClass:"ml-auto",attrs:{"disabled":_vm.loading,"variant":"primary"},on:{"click":function($event){return _vm.$emit('submit', { value: { '@value': _vm.value, '@type': 'String' }})}}},[_vm._v("\n "+_vm._s(_vm.pVal('buttonLabel', 'Submit'))+"\n ")])],1)};
15526
+ var __vue_render__$F = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"d-flex flex-column gap-1"},[(!!_vm.message)?_c('p',{staticClass:"text-break",domProps:{"innerHTML":_vm._s(_vm.message)}}):_vm._e(),_vm._v(" "),_c('b-form-group',{attrs:{"label":_vm.label,"label-class":"text-primary"}},[(_vm.type === 'date' || _vm.type === 'time' || _vm.type === 'datetime')?_c('c-input-date-time',{attrs:{"no-date":_vm.type === 'time',"no-time":_vm.type === 'date',"disabled":_vm.loading,"labels":{
15527
+ clear: _vm.$t('general:label.clear'),
15528
+ none: _vm.$t('general:label.none'),
15529
+ now: _vm.$t('general:label.now'),
15530
+ today: _vm.$t('general:label.today'),
15531
+ }},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v;},expression:"value"}}):_c('b-input',{attrs:{"type":_vm.type,"disabled":_vm.loading},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v;},expression:"value"}})],1),_vm._v(" "),_c('b-button',{staticClass:"ml-auto",attrs:{"disabled":_vm.loading,"variant":"primary"},on:{"click":function($event){return _vm.$emit('submit', { value: { '@value': _vm.value, '@type': 'String' }})}}},[_vm._v("\n "+_vm._s(_vm.pVal('buttonLabel', 'Submit'))+"\n ")])],1)};
15594
15532
  var __vue_staticRenderFns__$F = [];
15595
15533
 
15596
15534
  /* style */
@@ -15914,7 +15852,7 @@ const definitions = {
15914
15852
  // @ts-ignore
15915
15853
  if (this.$root.$options.name === 'compose') {
15916
15854
  let name = 'page.record';
15917
- if (!recordID || recordID === cortezaJs.NoID) {
15855
+ if (!recordID || recordID === NoID) {
15918
15856
  name += '.create';
15919
15857
  }
15920
15858
  else if (edit) {
@@ -15932,7 +15870,7 @@ const definitions = {
15932
15870
  else if (openMode === 'modal') {
15933
15871
  // @ts-ignore
15934
15872
  this.$root.$emit('show-record-modal', {
15935
- recordID: !recordID ? cortezaJs.NoID : recordID,
15873
+ recordID: !recordID ? NoID : recordID,
15936
15874
  recordPageID: pageID,
15937
15875
  edit,
15938
15876
  });
@@ -16020,7 +15958,7 @@ var script$D = {
16020
15958
  },
16021
15959
 
16022
15960
  computed: {
16023
- ...vuex.mapGetters({
15961
+ ...mapGetters({
16024
15962
  prompts: 'wfPrompts/all',
16025
15963
  isActive: 'wfPrompts/isActive',
16026
15964
  isLoading: 'wfPrompts/isLoading',
@@ -16119,7 +16057,7 @@ var script$D = {
16119
16057
  },
16120
16058
 
16121
16059
  methods: {
16122
- ...vuex.mapActions({
16060
+ ...mapActions({
16123
16061
  resume: 'wfPrompts/resume',
16124
16062
  cancel: 'wfPrompts/cancel',
16125
16063
  activate: 'wfPrompts/activate',
@@ -16218,7 +16156,7 @@ var __vue_staticRenderFns__$C = [];
16218
16156
  var script$C = {
16219
16157
  name: 'CPromptModal',
16220
16158
  computed: {
16221
- ...vuex.mapGetters({
16159
+ ...mapGetters({
16222
16160
  isLoading: 'wfPrompts/isLoading',
16223
16161
  isActive: 'wfPrompts/isActive',
16224
16162
  prompts: 'wfPrompts/all',
@@ -16262,7 +16200,7 @@ var script$C = {
16262
16200
  },
16263
16201
 
16264
16202
  methods: {
16265
- ...vuex.mapActions({
16203
+ ...mapActions({
16266
16204
  remove: 'wfPrompts/remove',
16267
16205
  resume: 'wfPrompts/resume',
16268
16206
  activate: 'wfPrompts/activate',
@@ -16518,6 +16456,7 @@ const prompts = Object.freeze([
16518
16456
  { value: 'email', text: 'Email' },
16519
16457
  { value: 'password', text: 'Password' },
16520
16458
  { value: 'search', text: 'Search' },
16459
+ { value: 'datetime', text: 'Date & Time' },
16521
16460
  { value: 'date', text: 'Date' },
16522
16461
  { value: 'time', text: 'Time' },
16523
16462
  ],
@@ -16571,7 +16510,7 @@ const prompts = Object.freeze([
16571
16510
  { name: 'value', types: ['Any'] },
16572
16511
  ],
16573
16512
  },
16574
- ].map(f => new cortezaJs.automation.Function(Object.assign(Object.assign({}, f), { kind: 'prompt' }))));
16513
+ ].map(f => new automation.Function(Object.assign(Object.assign({}, f), { kind: 'prompt' }))));
16575
16514
 
16576
16515
  //
16577
16516
  //
@@ -16659,7 +16598,7 @@ var script$z = {
16659
16598
  name: 'CNotificationButton',
16660
16599
 
16661
16600
  computed: {
16662
- ...vuex.mapGetters({
16601
+ ...mapGetters({
16663
16602
  unreadCount: 'notifications/unreadCount',
16664
16603
  muted: 'notifications/muted',
16665
16604
  }),
@@ -16680,7 +16619,7 @@ var script$z = {
16680
16619
  },
16681
16620
 
16682
16621
  methods: {
16683
- ...vuex.mapActions({
16622
+ ...mapActions({
16684
16623
  toggleVisibility: 'notifications/toggleVisibility',
16685
16624
  }),
16686
16625
 
@@ -16947,7 +16886,7 @@ var __vue_staticRenderFns__$y = [];
16947
16886
  //
16948
16887
 
16949
16888
 
16950
- fontawesomeSvgCore.library.add(freeSolidSvgIcons.faMoon, freeSolidSvgIcons.faSun);
16889
+ library.add(faMoon, faSun);
16951
16890
 
16952
16891
  var script$y = {
16953
16892
  components: {
@@ -16955,9 +16894,8 @@ var script$y = {
16955
16894
  },
16956
16895
 
16957
16896
  props: {
16958
- sidebarExpanded: {
16897
+ expanded: {
16959
16898
  type: Boolean,
16960
- required: true,
16961
16899
  default: false,
16962
16900
  },
16963
16901
 
@@ -17082,20 +17020,20 @@ var script$y = {
17082
17020
  const __vue_script__$y = script$y;
17083
17021
 
17084
17022
  /* template */
17085
- var __vue_render__$x = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"header-navigation d-flex flex-wrap align-items-center py-2 px-3 gap-2"},[_c('div',{staticClass:"sidebar-spacer",class:{ 'expanded': _vm.sidebarExpanded }}),_vm._v(" "),_c('h2',{staticClass:"title mb-0"},[_vm._t("title")],2),_vm._v(" "),_c('div',{staticClass:"tools-wrapper ml-auto"},[_vm._t("tools")],2),_vm._v(" "),_c('div',{staticClass:"d-flex align-items-center ml-auto gap-1"},[(!_vm.hideAppSelector && !_vm.settings.hideAppSelector)?_c('b-button',{staticClass:"text-dark border-0 px-1",attrs:{"data-test-id":"app-selector","variant":"outline-extra-light","href":_vm.appSelectorURL}},[_vm._v("\n "+_vm._s(_vm.labels.appMenu)+"\n ")]):_vm._e(),_vm._v(" "),_vm._t("right-tools"),_vm._v(" "),(!_vm.settings.hideNotifications)?_c('c-notification-button'):_vm._e(),_vm._v(" "),(!_vm.settings.hideHelp)?_c('b-dropdown',{staticClass:"nav-icon text-sm-nowrap",attrs:{"data-test-id":"dropdown-helper","size":"lg","variant":"outline-extra-light","toggle-class":"text-decoration-none text-dark rounded-circle border-0 w-100","menu-class":"topbar-dropdown-menu border-0 shadow-sm text-dark mt-2","right":"","no-caret":""},scopedSlots:_vm._u([{key:"button-content",fn:function(){return [_c('div',{staticClass:"d-flex align-items-center justify-content-center"},[_c('font-awesome-icon',{staticClass:"m-0 h5",attrs:{"icon":['far', 'question-circle']}}),_vm._v(" "),_c('span',{staticClass:"sr-only"},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")])],1)]},proxy:true}],null,false,1129756517)},[_vm._v(" "),_c('div',[_vm._t("help-dropdown")],2),_vm._v(" "),_vm._l((_vm.helpLinks),function(helpLink,index){return _c('b-dropdown-item',{key:index,attrs:{"href":_vm._f("checkValidURL")(helpLink.url),"target":helpLink.newTab ? '_blank' : ''}},[_vm._v("\n "+_vm._s(helpLink.handle)+"\n ")])}),_vm._v(" "),(!_vm.settings.hideForumLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-helper-forum","href":"https://forum.cortezaproject.org/","target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideDocumentationLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-helper-docs","href":_vm.documentationURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.helpDocumentation)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideFeedbackLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-helper-feedback","href":"mailto:info@cortezaproject.org","target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.helpFeedback)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.onlyVersion)?_c('b-dropdown-divider'):_vm._e(),_vm._v(" "),_c('b-dropdown-item',{staticClass:"small",attrs:{"disabled":""}},[_vm._v("\n "+_vm._s(_vm.labels.helpVersion)+"\n "),_c('br'),_vm._v("\n "+_vm._s(_vm.frontendVersion)+"\n ")])],2):_vm._e(),_vm._v(" "),(!_vm.settings.hideProfile)?_c('b-dropdown',{staticClass:"nav-user-icon",attrs:{"data-test-id":"dropdown-profile","variant":_vm.avatarExists ? 'link' : 'outline-extra-light',"toggle-class":("nav-icon text-decoration-none text-dark rounded-circle border " + (_vm.avatarExists ? 'p-0' : '')),"size":"lg","right":"","menu-class":"topbar-dropdown-menu border-0 shadow-sm text-dark mt-2","no-caret":""},on:{"hide":_vm.preventDropdownClose},scopedSlots:_vm._u([{key:"button-content",fn:function(){return [(_vm.avatarExists)?_c('div',{staticClass:"avatar d-flex h-100",style:({
17023
+ var __vue_render__$x = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"header-navigation d-flex flex-wrap align-items-center py-2 px-3 gap-2"},[_c('div',{staticClass:"sidebar-spacer",class:{ 'expanded': _vm.expanded }}),_vm._v(" "),_c('h2',{staticClass:"title mb-0"},[_vm._t("title")],2),_vm._v(" "),_c('div',{staticClass:"tools-wrapper ml-auto"},[_vm._t("tools")],2),_vm._v(" "),_c('div',{staticClass:"d-flex align-items-center ml-auto gap-1"},[(!_vm.hideAppSelector && !_vm.settings.hideAppSelector)?_c('b-button',{staticClass:"text-dark border-0 px-1",attrs:{"data-test-id":"app-selector","variant":"outline-extra-light","href":_vm.appSelectorURL}},[_vm._v("\n "+_vm._s(_vm.labels.appMenu)+"\n ")]):_vm._e(),_vm._v(" "),_vm._t("right-tools"),_vm._v(" "),(!_vm.settings.hideNotifications)?_c('c-notification-button'):_vm._e(),_vm._v(" "),(!_vm.settings.hideHelp)?_c('b-dropdown',{staticClass:"nav-icon text-sm-nowrap",attrs:{"data-test-id":"dropdown-helper","size":"lg","variant":"outline-extra-light","toggle-class":"text-decoration-none text-dark rounded-circle border-0 w-100","menu-class":"topbar-dropdown-menu border-0 shadow-sm text-dark mt-2","right":"","no-caret":""},scopedSlots:_vm._u([{key:"button-content",fn:function(){return [_c('div',{staticClass:"d-flex align-items-center justify-content-center"},[_c('font-awesome-icon',{staticClass:"m-0 h5",attrs:{"icon":['far', 'question-circle']}}),_vm._v(" "),_c('span',{staticClass:"sr-only"},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")])],1)]},proxy:true}],null,false,1129756517)},[_vm._v(" "),_c('div',[_vm._t("help-dropdown")],2),_vm._v(" "),_vm._l((_vm.helpLinks),function(helpLink,index){return _c('b-dropdown-item',{key:index,attrs:{"href":_vm._f("checkValidURL")(helpLink.url),"target":helpLink.newTab ? '_blank' : ''}},[_vm._v("\n "+_vm._s(helpLink.handle)+"\n ")])}),_vm._v(" "),(!_vm.settings.hideForumLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-helper-forum","href":"https://forum.cortezaproject.org/","target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideDocumentationLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-helper-docs","href":_vm.documentationURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.helpDocumentation)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideFeedbackLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-helper-feedback","href":"mailto:info@cortezaproject.org","target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.helpFeedback)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.onlyVersion)?_c('b-dropdown-divider'):_vm._e(),_vm._v(" "),_c('b-dropdown-item',{staticClass:"small",attrs:{"disabled":""}},[_vm._v("\n "+_vm._s(_vm.labels.helpVersion)+"\n "),_c('br'),_vm._v("\n "+_vm._s(_vm.frontendVersion)+"\n ")])],2):_vm._e(),_vm._v(" "),(!_vm.settings.hideProfile)?_c('b-dropdown',{staticClass:"nav-user-icon",attrs:{"data-test-id":"dropdown-profile","variant":_vm.avatarExists ? 'link' : 'outline-extra-light',"toggle-class":("nav-icon text-decoration-none text-dark rounded-circle border " + (_vm.avatarExists ? 'p-0' : '')),"size":"lg","right":"","menu-class":"topbar-dropdown-menu border-0 shadow-sm text-dark mt-2","no-caret":""},on:{"hide":_vm.preventDropdownClose},scopedSlots:_vm._u([{key:"button-content",fn:function(){return [(_vm.avatarExists)?_c('div',{staticClass:"avatar d-flex h-100",style:({
17086
17024
  'background-image': _vm.avatarExists ? ("url(" + _vm.profileAvatarUrl + ")") : 'none',
17087
- })}):_c('div',{staticClass:"d-flex align-items-center justify-content-center"},[_c('font-awesome-icon',{staticClass:"m-0 h5",attrs:{"icon":['far', 'user']}}),_vm._v(" "),_c('span',{staticClass:"sr-only"},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")])],1)]},proxy:true}],null,false,1615905304)},[_vm._v(" "),_c('b-dropdown-text',{staticClass:"text-muted mb-2",attrs:{"data-test-id":"dropdown-item-username"}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsLoggedInAs)+"\n ")]),_vm._v(" "),_c('div',[_vm._t("avatar-dropdown")],2),_vm._v(" "),_vm._l((_vm.profileLinks),function(profileLink,index){return _c('b-dropdown-item',{key:index,attrs:{"href":_vm._f("checkValidURL")(profileLink.url),"target":profileLink.newTab ? '_blank' : ''}},[_vm._v("\n "+_vm._s(profileLink.handle)+"\n ")])}),_vm._v(" "),(!_vm.settings.hideProfileLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-profile-user","href":_vm.userProfileURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsProfile)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideChangePasswordLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-profile-change-password","href":_vm.changePasswordURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsChangePassword)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideThemeSelector)?_c('b-dropdown',{staticClass:"d-flex",attrs:{"id":"theme-dropleft","variant":"link","text":"Theme","dropleft":"","no-caret":"","toggle-class":"text-decoration-none text-left dropdown-item rounded-0"},on:{"show":function($event){_vm.isThemeDropdownVisible = true;},"hide":function($event){_vm.isThemeDropdownVisible = false;},"click":function($event){$event.preventDefault();$event.stopPropagation();}}},_vm._l((_vm.themes),function(theme){return _c('b-dropdown-item-button',{key:theme.id,attrs:{"disabled":_vm.currentTheme === theme.id},on:{"click":function($event){return _vm.saveThemeMode(theme.id)}}},[_vm._v("\n "+_vm._s(theme.label)+"\n ")])}),1):_vm._e(),_vm._v(" "),_c('b-dropdown-divider'),_vm._v(" "),_c('b-dropdown-item-button',{staticClass:"mt-2",attrs:{"data-test-id":"dropdown-profile-logout"},on:{"click":function($event){return _vm.$auth.logout()}}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsLogout)+"\n ")])],2):_vm._e()],2)])};
17025
+ })}):_c('div',{staticClass:"d-flex align-items-center justify-content-center"},[_c('font-awesome-icon',{staticClass:"m-0 h5",attrs:{"icon":['far', 'user']}}),_vm._v(" "),_c('span',{staticClass:"sr-only"},[_vm._v("\n "+_vm._s(_vm.labels.helpForum)+"\n ")])],1)]},proxy:true}],null,false,1615905304)},[_vm._v(" "),_c('b-dropdown-text',{staticClass:"text-muted mb-2",attrs:{"data-test-id":"dropdown-item-username"}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsLoggedInAs)+"\n ")]),_vm._v(" "),_c('div',[_vm._t("avatar-dropdown")],2),_vm._v(" "),_vm._l((_vm.profileLinks),function(profileLink,index){return _c('b-dropdown-item',{key:index,attrs:{"href":_vm._f("checkValidURL")(profileLink.url),"target":profileLink.newTab ? '_blank' : ''}},[_vm._v("\n "+_vm._s(profileLink.handle)+"\n ")])}),_vm._v(" "),(!_vm.settings.hideProfileLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-profile-user","href":_vm.userProfileURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsProfile)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideChangePasswordLink)?_c('b-dropdown-item',{attrs:{"data-test-id":"dropdown-profile-change-password","href":_vm.changePasswordURL,"target":"_blank"}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsChangePassword)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.settings.hideThemeSelector)?_c('b-dropdown',{staticClass:"d-flex",attrs:{"id":"theme-dropleft","variant":"link","text":_vm.labels.userSettingsTheme,"dropleft":"","no-caret":"","toggle-class":"text-decoration-none text-left dropdown-item rounded-0"},on:{"show":function($event){_vm.isThemeDropdownVisible = true;},"hide":function($event){_vm.isThemeDropdownVisible = false;},"click":function($event){$event.preventDefault();$event.stopPropagation();}}},_vm._l((_vm.themes),function(theme){return _c('b-dropdown-item-button',{key:theme.id,attrs:{"disabled":_vm.currentTheme === theme.id},on:{"click":function($event){return _vm.saveThemeMode(theme.id)}}},[_vm._v("\n "+_vm._s(theme.label)+"\n ")])}),1):_vm._e(),_vm._v(" "),_c('b-dropdown-divider'),_vm._v(" "),_c('b-dropdown-item-button',{staticClass:"mt-2",attrs:{"data-test-id":"dropdown-profile-logout"},on:{"click":function($event){return _vm.$auth.logout()}}},[_vm._v("\n "+_vm._s(_vm.labels.userSettingsLogout)+"\n ")])],2):_vm._e()],2)])};
17088
17026
  var __vue_staticRenderFns__$x = [];
17089
17027
 
17090
17028
  /* style */
17091
17029
  const __vue_inject_styles__$z = function (inject) {
17092
17030
  if (!inject) return
17093
- inject("data-v-2ac14c0d_0", { source: ".nav-icon[data-v-2ac14c0d]{width:calc(var(--topbar-height) - 24px);height:calc(var(--topbar-height) - 24px)}.nav-user-icon[data-v-2ac14c0d]{min-width:calc(var(--topbar-height) - 16px);min-height:calc(var(--topbar-height) - 16px)}.header-navigation[data-v-2ac14c0d]{width:100vw;min-height:var(--topbar-height);background-color:var(--topbar-bg)}.header-navigation .sidebar-spacer[data-v-2ac14c0d]{display:none;min-width:calc(var(--sidebar-width) - 60px)}.header-navigation .sidebar-spacer.expanded[data-v-2ac14c0d]{display:block}.avatar[data-v-2ac14c0d]{border-radius:50%;background-size:cover;background-repeat:no-repeat;background-position:center}.avatar[data-v-2ac14c0d]:hover{opacity:.8;transition:opacity .25s ease-in-out;-moz-transition:opacity .25s ease-in-out;-webkit-transition:opacity .25s ease-in-out}.title[data-v-2ac14c0d]{display:flex;align-items:center;min-height:calc(var(--topbar-height) - 16px);padding-left:47px}.title>*[data-v-2ac14c0d]{padding:.25rem 0;display:-webkit-box;display:-ms-flexbox;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;text-overflow:ellipsis}.tools-wrapper[data-v-2ac14c0d]{flex-grow:1}.tools-wrapper>*[data-v-2ac14c0d]{display:flex;justify-content:end;align-items:center;flex-wrap:wrap}", map: undefined, media: undefined })
17094
- ,inject("data-v-2ac14c0d_1", { source: ".topbar-dropdown-menu{z-index:1100}#theme-dropleft .btn{font-family:var(--font-regular)}", map: undefined, media: undefined });
17031
+ inject("data-v-ce980aca_0", { source: ".nav-icon[data-v-ce980aca]{width:calc(var(--topbar-height) - 24px);height:calc(var(--topbar-height) - 24px)}.nav-user-icon[data-v-ce980aca]{min-width:calc(var(--topbar-height) - 16px);min-height:calc(var(--topbar-height) - 16px)}.header-navigation[data-v-ce980aca]{width:100vw;min-height:var(--topbar-height);background-color:var(--topbar-bg)}.header-navigation .sidebar-spacer[data-v-ce980aca]{display:none;min-width:calc(var(--sidebar-width) - 60px)}.header-navigation .sidebar-spacer.expanded[data-v-ce980aca]{display:block}.avatar[data-v-ce980aca]{border-radius:50%;background-size:cover;background-repeat:no-repeat;background-position:center}.avatar[data-v-ce980aca]:hover{opacity:.8;transition:opacity .25s ease-in-out;-moz-transition:opacity .25s ease-in-out;-webkit-transition:opacity .25s ease-in-out}.title[data-v-ce980aca]{display:flex;align-items:center;min-height:calc(var(--topbar-height) - 16px);padding-left:47px}.title>*[data-v-ce980aca]{padding:.25rem 0;display:-webkit-box;display:-ms-flexbox;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;text-overflow:ellipsis}.tools-wrapper[data-v-ce980aca]{flex-grow:1}.tools-wrapper>*[data-v-ce980aca]{display:flex;justify-content:end;align-items:center;flex-wrap:wrap}", map: undefined, media: undefined })
17032
+ ,inject("data-v-ce980aca_1", { source: ".topbar-dropdown-menu{z-index:1100}#theme-dropleft .btn{font-family:var(--font-regular)}", map: undefined, media: undefined });
17095
17033
 
17096
17034
  };
17097
17035
  /* scoped */
17098
- const __vue_scope_id__$z = "data-v-2ac14c0d";
17036
+ const __vue_scope_id__$z = "data-v-ce980aca";
17099
17037
  /* module identifier */
17100
17038
  const __vue_module_identifier__$z = undefined;
17101
17039
  /* functional template */
@@ -17310,7 +17248,7 @@ var script$x = {
17310
17248
  },
17311
17249
 
17312
17250
  methods: {
17313
- checkIfMobile: _.throttle(function () {
17251
+ checkIfMobile: throttle$1(function () {
17314
17252
  this.isMobile = window.innerWidth < 1024;
17315
17253
  }, 500),
17316
17254
 
@@ -18442,7 +18380,7 @@ var script$n = {
18442
18380
  this.available = this.frozen().filter(i => !this.selected.includes(i));
18443
18381
  },
18444
18382
 
18445
- select: _.throttle(function (item) {
18383
+ select: throttle$1(function (item) {
18446
18384
  // remove available
18447
18385
  this.available = this.available.filter(i => i !== item);
18448
18386
 
@@ -18619,7 +18557,7 @@ const __vue_script__$m = script$m;
18619
18557
  var script$l = {
18620
18558
  props: {
18621
18559
  chart: {
18622
- type: cortezaJs.shared.Chart,
18560
+ type: shared.Chart,
18623
18561
  required: true,
18624
18562
  },
18625
18563
  },
@@ -19574,15 +19512,15 @@ var script$g = {
19574
19512
 
19575
19513
  computed: {
19576
19514
  _value () {
19577
- return this.value === cortezaJs.NoID ? undefined : this.value
19515
+ return this.value === NoID ? undefined : this.value
19578
19516
  },
19579
19517
 
19580
19518
  _disabled () {
19581
- return this.disabled || this.maxLevel === cortezaJs.NoID
19519
+ return this.disabled || this.maxLevel === NoID
19582
19520
  },
19583
19521
 
19584
19522
  sensitivityLevels () {
19585
- if (this.maxLevel === cortezaJs.NoID) {
19523
+ if (this.maxLevel === NoID) {
19586
19524
  return []
19587
19525
  }
19588
19526
 
@@ -19604,7 +19542,7 @@ var script$g = {
19604
19542
  handler () {
19605
19543
  const isValueCompatible = this.sensitivityLevels.some(({ sensitivityLevelID }) => sensitivityLevelID === this.value);
19606
19544
  if (!isValueCompatible) {
19607
- this.$emit('input', cortezaJs.NoID);
19545
+ this.$emit('input', NoID);
19608
19546
  }
19609
19547
  },
19610
19548
  },
@@ -19616,7 +19554,7 @@ var script$g = {
19616
19554
  },
19617
19555
 
19618
19556
  onInput (sensitivityLevelID) {
19619
- this.$emit('input', sensitivityLevelID || cortezaJs.NoID);
19557
+ this.$emit('input', sensitivityLevelID || NoID);
19620
19558
  },
19621
19559
 
19622
19560
  getOptionKey ({ sensitivityLevelID }) {
@@ -20163,6 +20101,11 @@ var script$f = {
20163
20101
  this.pagination.page = 1;
20164
20102
  this.$refs.resourceList.refresh();
20165
20103
  },
20104
+
20105
+ handleSearch (searchQuery) {
20106
+ this.filter[this.queryField] = searchQuery ? searchQuery.trim() : '';
20107
+ this.$emit('search');
20108
+ },
20166
20109
  },
20167
20110
  };
20168
20111
 
@@ -20170,7 +20113,7 @@ var script$f = {
20170
20113
  const __vue_script__$f = script$f;
20171
20114
 
20172
20115
  /* template */
20173
- var __vue_render__$g = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card',{staticClass:"shadow-sm",staticStyle:{"min-height":"45rem"},attrs:{"id":"resource-list-wrapper","no-body":"","footer-bg-variant":"light","footer-class":"p-0","header-class":("border-0 " + _vm.cardHeaderClass)},scopedSlots:_vm._u([{key:"header",fn:function(){return [_c('b-container',{staticClass:"d-flex flex-column p-0 gap-2 d-print-none",attrs:{"fluid":""}},[_c('b-row',{staticClass:"d-flex align-items-center justify-content-between gap-1",attrs:{"no-gutters":""}},[_c('div',{class:("d-flex align-items-center flex-grow-1 flex-wrap flex-fill-child gap-1 " + _vm.headerClass)},[_vm._t("header",null,{"selected":_vm.selected})],2),_vm._v(" "),(!_vm.hideSearch)?_c('div',{staticClass:"flex-fill"},[_c('c-input-search',{attrs:{"placeholder":_vm.translations.searchPlaceholder,"debounce":300},on:{"input":function($event){return _vm.$emit('search')}},model:{value:(_vm.filter[_vm.queryField]),callback:function ($$v) {_vm.$set(_vm.filter, _vm.queryField, (typeof $$v === 'string'? $$v.trim(): $$v));},expression:"filter[queryField]"}})],1):_vm._e()]),_vm._v(" "),(_vm.$slots.toolbar)?_c('b-row',{staticClass:"gap-1"},[_vm._t("toolbar")],2):_vm._e()],1)]},proxy:true},(_vm.showFooter)?{key:"footer",fn:function(){return [_c('div',{staticClass:"resource-list-footer d-flex align-items-center flex-wrap px-3 py-2 gap-2"},[_c('div',{staticClass:"d-flex align-items-center flex-wrap gap-2"},[(!_vm.hideTotal)?_c('div',{staticClass:"text-nowrap text-truncate py-1"},[_vm._v("\n "+_vm._s(_vm.getPagination)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.hidePerPageOption)?_c('div',{staticClass:"d-flex align-items-center gap-1 text-nowrap ml-auto"},[_c('span',[_vm._v("\n "+_vm._s(_vm.$t('general:resourceList.pagination.recordsPerPage'))+"\n ")]),_vm._v(" "),_c('b-form-select',{attrs:{"value":_vm.pagination.limit,"options":_vm.perPageOptions,"size":"sm"},on:{"change":_vm.handlePerPageChange}})],1):_vm._e()]),_vm._v(" "),(!_vm.hidePagination)?_c('div',{staticClass:"d-flex align-items-center ml-auto"},[_c('b-button-group',{staticClass:"gap-1"},[_c('b-button',{staticClass:"d-flex align-items-center text-dark border-0 p-1",attrs:{"disabled":!_vm.hasPrevPage,"variant":"outline-extra-light"},on:{"click":function($event){return _vm.goToPage()}}},[_c('font-awesome-icon',{attrs:{"icon":['fas', 'angle-double-left']}})],1),_vm._v(" "),_c('b-button',{staticClass:"d-flex align-items-center text-dark border-0 p-1",attrs:{"disabled":!_vm.hasPrevPage,"variant":"outline-extra-light"},on:{"click":function($event){return _vm.goToPage('prevPage')}}},[_c('font-awesome-icon',{staticClass:"mr-1",attrs:{"icon":['fas', 'angle-left']}}),_vm._v("\n\n "+_vm._s(_vm.translations.prevPagination)+"\n ")],1),_vm._v(" "),_c('b-button',{staticClass:"d-flex align-items-center justify-content-center text-dark border-0 p-1",attrs:{"disabled":!_vm.hasNextPage,"variant":"outline-extra-light"},on:{"click":function($event){return _vm.goToPage('nextPage')}}},[_vm._v("\n "+_vm._s(_vm.translations.nextPagination)+"\n\n "),_c('font-awesome-icon',{staticClass:"ml-1",attrs:{"icon":['fas', 'angle-right']}})],1)],1)],1):_vm._e()])]},proxy:true}:null],null,true)},[_vm._v(" "),_c('b-card-body',{staticClass:"p-0"},[_c('b-table',{ref:"resourceList",staticClass:"mh-100 h-100 mb-0",attrs:{"id":"resource-list","fields":_vm._fields,"items":_vm._items,"sticky-header":_vm.stickyHeader,"tbody-tr-class":_vm.tableRowClasses,"hover":"","responsive":"","show-empty":"","no-sort-reset":"","no-local-sorting":"","head-variant":"light","foot-variant":"light","primary-key":_vm.primaryKey},on:{"row-clicked":function($event){return _vm.$emit('row-clicked', $event)}},scopedSlots:_vm._u([{key:"head()",fn:function(field){return [_c('div',{staticClass:"d-flex align-items-center",on:{"click":function($event){$event.preventDefault();$event.stopPropagation();}}},[_c('div',{staticClass:"flex-fill text-nowrap"},[_vm._v("\n "+_vm._s(field.label)+"\n\n "),(field.field.sort)?_c('b-button',{staticClass:"d-inline-flex align-items-center text-secondary d-print-none border-0 px-1 ml-1",staticStyle:{"margin-right":"-0.25rem"},attrs:{"variant":"outline-extra-light"},on:{"click":function($event){return _vm.handleSort(field)}}},[_c('font-awesome-layers',{staticClass:"d-print-none"},[_c('font-awesome-icon',{staticClass:"mb-1",class:{ 'text-primary': field.column === _vm.sorting.sortBy && !_vm.sorting.sortDesc },attrs:{"icon":['fas', 'angle-up']}}),_vm._v(" "),_c('font-awesome-icon',{staticClass:"mt-1",class:{ 'text-primary': field.column === _vm.sorting.sortBy && _vm.sorting.sortDesc },attrs:{"icon":['fas', 'angle-down']}})],1)],1):_vm._e()],1)])]}},{key:"empty",fn:function(){return [_c('p',{staticClass:"text-center text-dark",staticStyle:{"margin-top":"1vh"},attrs:{"data-test-id":"no-matches"}},[_vm._v("\n "+_vm._s(_vm.translations.noItems)+"\n ")])]},proxy:true},{key:"table-busy",fn:function(){return [_c('div',{staticClass:"text-center m-5"},[_c('div',[_c('b-spinner',{staticClass:"align-middle m-2"})],1),_vm._v("\n "+_vm._s(_vm.translations.loading)+"\n ")])]},proxy:true},(_vm.selectable)?{key:"head(select)",fn:function(){return [_c('b-checkbox',{staticClass:"ml-1",attrs:{"disabled":_vm.disableSelectAll,"checked":_vm.allRowsSelected && !_vm.disableSelectAll},on:{"change":_vm.selectAllRows}})]},proxy:true}:null,{key:"cell(select)",fn:function(ref){
20116
+ var __vue_render__$g = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-card',{staticClass:"shadow-sm",staticStyle:{"min-height":"45rem"},attrs:{"id":"resource-list-wrapper","no-body":"","footer-bg-variant":"light","footer-class":"p-0","header-class":("border-0 " + _vm.cardHeaderClass)},scopedSlots:_vm._u([{key:"header",fn:function(){return [_c('b-container',{staticClass:"d-flex flex-column p-0 gap-2 d-print-none",attrs:{"fluid":""}},[_c('b-row',{staticClass:"d-flex align-items-center justify-content-between gap-1",attrs:{"no-gutters":""}},[_c('div',{class:("d-flex align-items-center flex-grow-1 flex-wrap flex-fill-child gap-1 " + _vm.headerClass)},[_vm._t("header",null,{"selected":_vm.selected})],2),_vm._v(" "),(!_vm.hideSearch)?_c('div',{staticClass:"flex-fill"},[_c('c-input-search',{attrs:{"value":_vm.filter[_vm.queryField],"placeholder":_vm.translations.searchPlaceholder,"submittable":true},on:{"search":_vm.handleSearch}})],1):_vm._e()]),_vm._v(" "),(_vm.$slots.toolbar)?_c('b-row',{staticClass:"gap-1"},[_vm._t("toolbar")],2):_vm._e()],1)]},proxy:true},(_vm.showFooter)?{key:"footer",fn:function(){return [_c('div',{staticClass:"resource-list-footer d-flex align-items-center flex-wrap px-3 py-2 gap-2"},[_c('div',{staticClass:"d-flex align-items-center flex-wrap gap-2"},[(!_vm.hideTotal)?_c('div',{staticClass:"text-nowrap text-truncate py-1"},[_vm._v("\n "+_vm._s(_vm.getPagination)+"\n ")]):_vm._e(),_vm._v(" "),(!_vm.hidePerPageOption)?_c('div',{staticClass:"d-flex align-items-center gap-1 text-nowrap ml-auto"},[_c('span',[_vm._v("\n "+_vm._s(_vm.$t('general:resourceList.pagination.recordsPerPage'))+"\n ")]),_vm._v(" "),_c('b-form-select',{attrs:{"value":_vm.pagination.limit,"options":_vm.perPageOptions,"size":"sm"},on:{"change":_vm.handlePerPageChange}})],1):_vm._e()]),_vm._v(" "),(!_vm.hidePagination)?_c('div',{staticClass:"d-flex align-items-center ml-auto"},[_c('b-button-group',{staticClass:"gap-1"},[_c('b-button',{staticClass:"d-flex align-items-center text-dark border-0 p-1",attrs:{"disabled":!_vm.hasPrevPage,"variant":"outline-extra-light"},on:{"click":function($event){return _vm.goToPage()}}},[_c('font-awesome-icon',{attrs:{"icon":['fas', 'angle-double-left']}})],1),_vm._v(" "),_c('b-button',{staticClass:"d-flex align-items-center text-dark border-0 p-1",attrs:{"disabled":!_vm.hasPrevPage,"variant":"outline-extra-light"},on:{"click":function($event){return _vm.goToPage('prevPage')}}},[_c('font-awesome-icon',{staticClass:"mr-1",attrs:{"icon":['fas', 'angle-left']}}),_vm._v("\n\n "+_vm._s(_vm.translations.prevPagination)+"\n ")],1),_vm._v(" "),_c('b-button',{staticClass:"d-flex align-items-center justify-content-center text-dark border-0 p-1",attrs:{"disabled":!_vm.hasNextPage,"variant":"outline-extra-light"},on:{"click":function($event){return _vm.goToPage('nextPage')}}},[_vm._v("\n "+_vm._s(_vm.translations.nextPagination)+"\n\n "),_c('font-awesome-icon',{staticClass:"ml-1",attrs:{"icon":['fas', 'angle-right']}})],1)],1)],1):_vm._e()])]},proxy:true}:null],null,true)},[_vm._v(" "),_c('b-card-body',{staticClass:"p-0"},[_c('b-table',{ref:"resourceList",staticClass:"mh-100 h-100 mb-0",attrs:{"id":"resource-list","fields":_vm._fields,"items":_vm._items,"sticky-header":_vm.stickyHeader,"tbody-tr-class":_vm.tableRowClasses,"hover":"","responsive":"","show-empty":"","no-sort-reset":"","no-local-sorting":"","head-variant":"light","foot-variant":"light","primary-key":_vm.primaryKey},on:{"row-clicked":function($event){return _vm.$emit('row-clicked', $event)}},scopedSlots:_vm._u([{key:"head()",fn:function(field){return [_c('div',{staticClass:"d-flex align-items-center",on:{"click":function($event){$event.preventDefault();$event.stopPropagation();}}},[_c('div',{staticClass:"flex-fill text-nowrap"},[_vm._v("\n "+_vm._s(field.label)+"\n\n "),(field.field.sort)?_c('b-button',{staticClass:"d-inline-flex align-items-center text-secondary d-print-none border-0 px-1 ml-1",staticStyle:{"margin-right":"-0.25rem"},attrs:{"variant":"outline-extra-light"},on:{"click":function($event){return _vm.handleSort(field)}}},[_c('font-awesome-layers',{staticClass:"d-print-none"},[_c('font-awesome-icon',{staticClass:"mb-1",class:{ 'text-primary': field.column === _vm.sorting.sortBy && !_vm.sorting.sortDesc },attrs:{"icon":['fas', 'angle-up']}}),_vm._v(" "),_c('font-awesome-icon',{staticClass:"mt-1",class:{ 'text-primary': field.column === _vm.sorting.sortBy && _vm.sorting.sortDesc },attrs:{"icon":['fas', 'angle-down']}})],1)],1):_vm._e()],1)])]}},{key:"empty",fn:function(){return [_c('p',{staticClass:"text-center text-dark",staticStyle:{"margin-top":"1vh"},attrs:{"data-test-id":"no-matches"}},[_vm._v("\n "+_vm._s(_vm.translations.noItems)+"\n ")])]},proxy:true},{key:"table-busy",fn:function(){return [_c('div',{staticClass:"text-center m-5"},[_c('div',[_c('b-spinner',{staticClass:"align-middle m-2"})],1),_vm._v("\n "+_vm._s(_vm.translations.loading)+"\n ")])]},proxy:true},(_vm.selectable)?{key:"head(select)",fn:function(){return [_c('b-checkbox',{staticClass:"ml-1",attrs:{"disabled":_vm.disableSelectAll,"checked":_vm.allRowsSelected && !_vm.disableSelectAll},on:{"change":_vm.selectAllRows}})]},proxy:true}:null,{key:"cell(select)",fn:function(ref){
20174
20117
  var item = ref.item;
20175
20118
  return [(_vm.isItemSelectable(item))?_c('b-form-checkbox',{staticClass:"ml-1",attrs:{"checked":_vm.selected.includes(item[_vm.primaryKey])},on:{"change":function($event){return _vm.onSelectRow($event, item[_vm.primaryKey])}}}):_vm._e()]}},_vm._l((_vm.customFieldSlots),function(field){return {key:("cell(" + field + ")"),fn:function(ref){
20176
20119
  var item = ref.item;
@@ -20180,7 +20123,7 @@ var __vue_staticRenderFns__$g = [];
20180
20123
  /* style */
20181
20124
  const __vue_inject_styles__$g = function (inject) {
20182
20125
  if (!inject) return
20183
- inject("data-v-1c79c2fa_0", { source: "#resource-list td.actions{padding-top:8px;right:0;opacity:0;position:sticky;transition:opacity .25s;width:1%;font-family:var(--font-regular)!important}#resource-list tr:hover td.actions{opacity:1;z-index:1;background-color:var(--light)}#resource-list>thead>tr>[aria-sort=ascending],#resource-list>thead>tr>[aria-sort=descending],#resource-list>thead>tr>[aria-sort=none]{background-image:none!important}.resource-list-footer{font-family:var(--font-medium)}", map: undefined, media: undefined });
20126
+ inject("data-v-6eb187b4_0", { source: "#resource-list td.actions{padding-top:8px;right:0;opacity:0;position:sticky;transition:opacity .25s;width:1%;font-family:var(--font-regular)!important}#resource-list tr:hover td.actions{opacity:1;z-index:1;background-color:var(--light)}#resource-list>thead>tr>[aria-sort=ascending],#resource-list>thead>tr>[aria-sort=descending],#resource-list>thead>tr>[aria-sort=none]{background-image:none!important}.resource-list-footer{font-family:var(--font-medium)}", map: undefined, media: undefined });
20184
20127
 
20185
20128
  };
20186
20129
  /* scoped */
@@ -20582,13 +20525,13 @@ n(css$3,{});
20582
20525
 
20583
20526
  var script$c = {
20584
20527
  components: {
20585
- LControl: vue2Leaflet.LControl,
20528
+ LControl,
20586
20529
  CInputSearch: __vue_component__$17,
20587
- LPolygon: vue2Leaflet.LPolygon,
20588
- LTileLayer: vue2Leaflet.LTileLayer,
20589
- LMarker: vue2Leaflet.LMarker,
20590
- LMap: vue2Leaflet.LMap,
20591
- LTooltip: vue2Leaflet.LTooltip,
20530
+ LPolygon,
20531
+ LTileLayer,
20532
+ LMarker,
20533
+ LMap,
20534
+ LTooltip,
20592
20535
  },
20593
20536
 
20594
20537
  props: {
@@ -20632,7 +20575,7 @@ var script$c = {
20632
20575
  return {
20633
20576
  geoSearch: {
20634
20577
  query: '',
20635
- provider: new leafletGeosearch.OpenStreetMapProvider(),
20578
+ provider: new OpenStreetMapProvider(),
20636
20579
  results: [],
20637
20580
  },
20638
20581
  }
@@ -20657,7 +20600,7 @@ var script$c = {
20657
20600
  attribution: '&copy; <a target="_blank" href="http://osm.org/copyright">OpenStreetMap</a>',
20658
20601
  };
20659
20602
 
20660
- map.bounds = map.bounds ? leaflet.latLngBounds(map.bounds) : null;
20603
+ map.bounds = map.bounds ? latLngBounds(map.bounds) : null;
20661
20604
 
20662
20605
  return {
20663
20606
  ...defaultOptions,
@@ -20702,8 +20645,8 @@ var script$c = {
20702
20645
  getLatLng (coordinates = [undefined, undefined]) {
20703
20646
  const [lat, lng] = coordinates;
20704
20647
 
20705
- if (_.isNumber(lat) && _.isNumber(lng)) {
20706
- return leaflet.latLng(lat, lng)
20648
+ if (isNumber$1(lat) && isNumber$1(lng)) {
20649
+ return latLng(lat, lng)
20707
20650
  }
20708
20651
  },
20709
20652
 
@@ -20743,7 +20686,7 @@ var script$c = {
20743
20686
  </g>
20744
20687
  </svg>`;
20745
20688
 
20746
- return leaflet.divIcon({
20689
+ return divIcon({
20747
20690
  className: 'marker-pin',
20748
20691
  html: markerIconHtml,
20749
20692
  })
@@ -21618,7 +21561,7 @@ var script$7 = {
21618
21561
  },
21619
21562
 
21620
21563
  computed: {
21621
- ...vuex.mapGetters({
21564
+ ...mapGetters({
21622
21565
  notifications: 'notifications/notifications',
21623
21566
  hasUnread: 'notifications/hasUnread',
21624
21567
  hasMorePages: 'notifications/hasMorePages',
@@ -21644,7 +21587,7 @@ var script$7 = {
21644
21587
  },
21645
21588
 
21646
21589
  methods: {
21647
- ...vuex.mapActions({
21590
+ ...mapActions({
21648
21591
  fetchNotifications: 'notifications/fetchNotifications',
21649
21592
  markAsRead: 'notifications/markAsRead',
21650
21593
  markAllAsRead: 'notifications/markAllAsRead',
@@ -21743,7 +21686,7 @@ var script$6 = {
21743
21686
  },
21744
21687
 
21745
21688
  computed: {
21746
- ...vuex.mapGetters({
21689
+ ...mapGetters({
21747
21690
  visible: 'notifications/visible',
21748
21691
  }),
21749
21692
 
@@ -21763,7 +21706,7 @@ var script$6 = {
21763
21706
  },
21764
21707
 
21765
21708
  methods: {
21766
- ...vuex.mapMutations({
21709
+ ...mapMutations({
21767
21710
  setVisible: 'notifications/setVisible',
21768
21711
  }),
21769
21712
  },
@@ -22466,7 +22409,7 @@ var index$5 = /*#__PURE__*/Object.freeze({
22466
22409
  /**
22467
22410
  * Bare-minimum webapp helper
22468
22411
  */
22469
- class WebappCtx extends cortezaJs.corredor.Ctx {
22412
+ class WebappCtx extends corredor$1.Ctx {
22470
22413
  constructor(args) {
22471
22414
  super(args, pino(), {});
22472
22415
  }
@@ -22611,7 +22554,7 @@ class ComposeUIHelper {
22611
22554
  /**
22612
22555
  * Extends corredor exec context with compose UI helper
22613
22556
  */
22614
- class ComposeCtx extends cortezaJs.corredor.Ctx {
22557
+ class ComposeCtx extends corredor$1.Ctx {
22615
22558
  // @todo remove ts-ignore flags
22616
22559
  constructor(args, vue) {
22617
22560
  // @ts-ignore
@@ -22656,11 +22599,11 @@ var index$4 = /*#__PURE__*/Object.freeze({
22656
22599
  function locFullDateTime(d) {
22657
22600
  // Thursday, September 4, 1986 8:30 PM
22658
22601
  // return moment(d).format('LLLL')
22659
- return cortezaJs.fmt.fullDateTime(d);
22602
+ return fmt.fullDateTime(d);
22660
22603
  }
22661
22604
  function locDate(d) {
22662
22605
  // 09/04/1986
22663
- return cortezaJs.fmt.date(d);
22606
+ return fmt.date(d);
22664
22607
  }
22665
22608
 
22666
22609
  function checkValidURL(url) {
@@ -22685,7 +22628,7 @@ function loadPrompts(api) {
22685
22628
  if (!Array.isArray(set)) {
22686
22629
  return [];
22687
22630
  }
22688
- return set.map((p) => new cortezaJs.automation.Prompt(p));
22631
+ return set.map((p) => new automation.Prompt(p));
22689
22632
  });
22690
22633
  });
22691
22634
  }
@@ -22969,10 +22912,10 @@ function index$1 ({ api }) {
22969
22912
  },
22970
22913
  mutations: {
22971
22914
  [types.setNotifications](state, notifications = []) {
22972
- state.notifications = notifications.map((n) => new cortezaJs.system.Notification(n));
22915
+ state.notifications = notifications.map((n) => new system.Notification(n));
22973
22916
  },
22974
22917
  [types.appendNotifications](state, notifications = []) {
22975
- const newNotifications = notifications.map((n) => new cortezaJs.system.Notification(n));
22918
+ const newNotifications = notifications.map((n) => new system.Notification(n));
22976
22919
  state.notifications = [...state.notifications, ...newNotifications];
22977
22920
  },
22978
22921
  [types.setVisible](state, visible) {
@@ -22997,7 +22940,7 @@ function index$1 ({ api }) {
22997
22940
  },
22998
22941
  [types.addNotification](state, notification) {
22999
22942
  // Add to the beginning of the array
23000
- state.notifications.unshift(new cortezaJs.system.Notification(notification));
22943
+ state.notifications.unshift(new system.Notification(notification));
23001
22944
  },
23002
22945
  [types.deleteNotification](state, notificationID) {
23003
22946
  state.notifications = state.notifications.filter(n => String(n.notificationID) !== String(notificationID));
@@ -31431,15 +31374,5 @@ var emmet = /*#__PURE__*/Object.freeze({
31431
31374
  __proto__: null
31432
31375
  });
31433
31376
 
31434
- exports.components = index$5;
31435
- exports.corredor = index$4;
31436
- exports.filter = filter;
31437
- exports.filters = index$3;
31438
- exports.handle = handle;
31439
- exports.i18n = i18n;
31440
- exports.mixins = index$7;
31441
- exports.plugins = index$8;
31442
- exports.store = index;
31443
- exports.url = url;
31444
- exports.websocket = websocket;
31377
+ export { index$5 as components, index$4 as corredor, filter, index$3 as filters, handle, i18n, index$7 as mixins, index$8 as plugins, index as store, url, websocket };
31445
31378
  //# sourceMappingURL=index.js.map