@cortezaproject/corteza-vue 2024.9.4-dev.1 → 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.
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 }) {
@@ -20587,13 +20525,13 @@ n(css$3,{});
20587
20525
 
20588
20526
  var script$c = {
20589
20527
  components: {
20590
- LControl: vue2Leaflet.LControl,
20528
+ LControl,
20591
20529
  CInputSearch: __vue_component__$17,
20592
- LPolygon: vue2Leaflet.LPolygon,
20593
- LTileLayer: vue2Leaflet.LTileLayer,
20594
- LMarker: vue2Leaflet.LMarker,
20595
- LMap: vue2Leaflet.LMap,
20596
- LTooltip: vue2Leaflet.LTooltip,
20530
+ LPolygon,
20531
+ LTileLayer,
20532
+ LMarker,
20533
+ LMap,
20534
+ LTooltip,
20597
20535
  },
20598
20536
 
20599
20537
  props: {
@@ -20637,7 +20575,7 @@ var script$c = {
20637
20575
  return {
20638
20576
  geoSearch: {
20639
20577
  query: '',
20640
- provider: new leafletGeosearch.OpenStreetMapProvider(),
20578
+ provider: new OpenStreetMapProvider(),
20641
20579
  results: [],
20642
20580
  },
20643
20581
  }
@@ -20662,7 +20600,7 @@ var script$c = {
20662
20600
  attribution: '&copy; <a target="_blank" href="http://osm.org/copyright">OpenStreetMap</a>',
20663
20601
  };
20664
20602
 
20665
- map.bounds = map.bounds ? leaflet.latLngBounds(map.bounds) : null;
20603
+ map.bounds = map.bounds ? latLngBounds(map.bounds) : null;
20666
20604
 
20667
20605
  return {
20668
20606
  ...defaultOptions,
@@ -20707,8 +20645,8 @@ var script$c = {
20707
20645
  getLatLng (coordinates = [undefined, undefined]) {
20708
20646
  const [lat, lng] = coordinates;
20709
20647
 
20710
- if (_.isNumber(lat) && _.isNumber(lng)) {
20711
- return leaflet.latLng(lat, lng)
20648
+ if (isNumber$1(lat) && isNumber$1(lng)) {
20649
+ return latLng(lat, lng)
20712
20650
  }
20713
20651
  },
20714
20652
 
@@ -20748,7 +20686,7 @@ var script$c = {
20748
20686
  </g>
20749
20687
  </svg>`;
20750
20688
 
20751
- return leaflet.divIcon({
20689
+ return divIcon({
20752
20690
  className: 'marker-pin',
20753
20691
  html: markerIconHtml,
20754
20692
  })
@@ -21623,7 +21561,7 @@ var script$7 = {
21623
21561
  },
21624
21562
 
21625
21563
  computed: {
21626
- ...vuex.mapGetters({
21564
+ ...mapGetters({
21627
21565
  notifications: 'notifications/notifications',
21628
21566
  hasUnread: 'notifications/hasUnread',
21629
21567
  hasMorePages: 'notifications/hasMorePages',
@@ -21649,7 +21587,7 @@ var script$7 = {
21649
21587
  },
21650
21588
 
21651
21589
  methods: {
21652
- ...vuex.mapActions({
21590
+ ...mapActions({
21653
21591
  fetchNotifications: 'notifications/fetchNotifications',
21654
21592
  markAsRead: 'notifications/markAsRead',
21655
21593
  markAllAsRead: 'notifications/markAllAsRead',
@@ -21748,7 +21686,7 @@ var script$6 = {
21748
21686
  },
21749
21687
 
21750
21688
  computed: {
21751
- ...vuex.mapGetters({
21689
+ ...mapGetters({
21752
21690
  visible: 'notifications/visible',
21753
21691
  }),
21754
21692
 
@@ -21768,7 +21706,7 @@ var script$6 = {
21768
21706
  },
21769
21707
 
21770
21708
  methods: {
21771
- ...vuex.mapMutations({
21709
+ ...mapMutations({
21772
21710
  setVisible: 'notifications/setVisible',
21773
21711
  }),
21774
21712
  },
@@ -22471,7 +22409,7 @@ var index$5 = /*#__PURE__*/Object.freeze({
22471
22409
  /**
22472
22410
  * Bare-minimum webapp helper
22473
22411
  */
22474
- class WebappCtx extends cortezaJs.corredor.Ctx {
22412
+ class WebappCtx extends corredor$1.Ctx {
22475
22413
  constructor(args) {
22476
22414
  super(args, pino(), {});
22477
22415
  }
@@ -22616,7 +22554,7 @@ class ComposeUIHelper {
22616
22554
  /**
22617
22555
  * Extends corredor exec context with compose UI helper
22618
22556
  */
22619
- class ComposeCtx extends cortezaJs.corredor.Ctx {
22557
+ class ComposeCtx extends corredor$1.Ctx {
22620
22558
  // @todo remove ts-ignore flags
22621
22559
  constructor(args, vue) {
22622
22560
  // @ts-ignore
@@ -22661,11 +22599,11 @@ var index$4 = /*#__PURE__*/Object.freeze({
22661
22599
  function locFullDateTime(d) {
22662
22600
  // Thursday, September 4, 1986 8:30 PM
22663
22601
  // return moment(d).format('LLLL')
22664
- return cortezaJs.fmt.fullDateTime(d);
22602
+ return fmt.fullDateTime(d);
22665
22603
  }
22666
22604
  function locDate(d) {
22667
22605
  // 09/04/1986
22668
- return cortezaJs.fmt.date(d);
22606
+ return fmt.date(d);
22669
22607
  }
22670
22608
 
22671
22609
  function checkValidURL(url) {
@@ -22690,7 +22628,7 @@ function loadPrompts(api) {
22690
22628
  if (!Array.isArray(set)) {
22691
22629
  return [];
22692
22630
  }
22693
- return set.map((p) => new cortezaJs.automation.Prompt(p));
22631
+ return set.map((p) => new automation.Prompt(p));
22694
22632
  });
22695
22633
  });
22696
22634
  }
@@ -22974,10 +22912,10 @@ function index$1 ({ api }) {
22974
22912
  },
22975
22913
  mutations: {
22976
22914
  [types.setNotifications](state, notifications = []) {
22977
- state.notifications = notifications.map((n) => new cortezaJs.system.Notification(n));
22915
+ state.notifications = notifications.map((n) => new system.Notification(n));
22978
22916
  },
22979
22917
  [types.appendNotifications](state, notifications = []) {
22980
- const newNotifications = notifications.map((n) => new cortezaJs.system.Notification(n));
22918
+ const newNotifications = notifications.map((n) => new system.Notification(n));
22981
22919
  state.notifications = [...state.notifications, ...newNotifications];
22982
22920
  },
22983
22921
  [types.setVisible](state, visible) {
@@ -23002,7 +22940,7 @@ function index$1 ({ api }) {
23002
22940
  },
23003
22941
  [types.addNotification](state, notification) {
23004
22942
  // Add to the beginning of the array
23005
- state.notifications.unshift(new cortezaJs.system.Notification(notification));
22943
+ state.notifications.unshift(new system.Notification(notification));
23006
22944
  },
23007
22945
  [types.deleteNotification](state, notificationID) {
23008
22946
  state.notifications = state.notifications.filter(n => String(n.notificationID) !== String(notificationID));
@@ -31436,15 +31374,5 @@ var emmet = /*#__PURE__*/Object.freeze({
31436
31374
  __proto__: null
31437
31375
  });
31438
31376
 
31439
- exports.components = index$5;
31440
- exports.corredor = index$4;
31441
- exports.filter = filter;
31442
- exports.filters = index$3;
31443
- exports.handle = handle;
31444
- exports.i18n = i18n;
31445
- exports.mixins = index$7;
31446
- exports.plugins = index$8;
31447
- exports.store = index;
31448
- exports.url = url;
31449
- 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 };
31450
31378
  //# sourceMappingURL=index.js.map