@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.
- package/dist/components/c3/C3.d.ts +5 -0
- package/dist/components/filePreview/common/index.d.ts +2 -0
- package/dist/components/filePreview/common/types/PDF/helpers.d.ts +53 -0
- package/dist/components/filePreview/common/types/index.d.ts +3 -0
- package/dist/components/input/CRichTextInput/RToolbar/TMark/loader.d.ts +10 -0
- package/dist/components/input/CRichTextInput/RToolbar/TNode/loader.d.ts +6 -0
- package/dist/components/input/CRichTextInput/RToolbar/TNodeAttr/loader.d.ts +6 -0
- package/dist/components/input/CRichTextInput/RToolbar/loader.d.ts +9 -0
- package/dist/components/input/CRichTextInput/extensions/heading.d.ts +12 -0
- package/dist/components/input/CRichTextInput/extensions/htmlPaster.d.ts +4 -0
- package/dist/components/input/CRichTextInput/extensions/index.d.ts +6 -0
- package/dist/components/input/CRichTextInput/extensions/link.d.ts +6 -0
- package/dist/components/input/CRichTextInput/extensions/paragraph.d.ts +9 -0
- package/dist/components/input/CRichTextInput/extensions/textBackground.d.ts +23 -0
- package/dist/components/input/CRichTextInput/extensions/textColor.d.ts +23 -0
- package/dist/components/input/CRichTextInput/extensions/utils.d.ts +15 -0
- package/dist/components/input/CRichTextInput/lib/formats.d.ts +85 -0
- package/dist/components/input/CRichTextInput/lib/index.d.ts +1 -0
- package/dist/components/itemPicker/C3.d.ts +1 -0
- package/dist/components/itemPicker/CItemPicker.c3.d.ts +32 -0
- package/dist/components/toaster/actions/index.d.ts +3 -0
- package/dist/index.cjs +31410 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.es.js +27 -62
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +140 -207
- package/dist/index.js.map +1 -1
- package/dist/mixins/corredor.d.ts +49 -0
- package/dist/mixins/files.d.ts +19 -0
- package/dist/mixins/index.d.ts +0 -1
- package/dist/mixins/vue-select-position.d.ts +11 -0
- package/dist/plugins/reminder.d.ts +66 -0
- package/dist/plugins/settings.d.ts +27 -0
- package/package.json +9 -4
package/dist/index.es.js
CHANGED
|
@@ -7,12 +7,12 @@ import detector from 'i18next-browser-languagedetector';
|
|
|
7
7
|
import multiload from 'i18next-multiload-backend-adapter';
|
|
8
8
|
import VueI18Next from '@panter/vue-i18next';
|
|
9
9
|
import mime from 'mime';
|
|
10
|
-
import { createPopper } from '@popperjs/core';
|
|
11
10
|
import _, { throttle as throttle$1, debounce, isNumber as isNumber$1 } from 'lodash';
|
|
12
11
|
import { PhotoSwipe } from 'v-photoswipe';
|
|
13
12
|
import * as pdfjsLib from 'pdfjs-dist';
|
|
14
13
|
import Draggable from 'vuedraggable';
|
|
15
14
|
import { VueSelect } from 'vue-select';
|
|
15
|
+
import { createPopper } from '@popperjs/core';
|
|
16
16
|
import Swatches from 'vue-swatches';
|
|
17
17
|
import { Paragraph as Paragraph$1, Mark, Plugin, PluginKey, Extension, EditorMenuBar, EditorContent, Editor } from 'tiptap';
|
|
18
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';
|
|
@@ -5816,60 +5816,10 @@ var files = {
|
|
|
5816
5816
|
}
|
|
5817
5817
|
};
|
|
5818
5818
|
|
|
5819
|
-
var vueSelectPosition = {
|
|
5820
|
-
methods: {
|
|
5821
|
-
calculateDropdownPosition: function calculateDropdownPosition(dropdownList, component, _ref) {
|
|
5822
|
-
var width = _ref.width;
|
|
5823
|
-
/**
|
|
5824
|
-
* We need to explicitly define the dropdown width since
|
|
5825
|
-
* it is usually inherited from the parent with CSS.
|
|
5826
|
-
*/
|
|
5827
|
-
dropdownList.style.width = width;
|
|
5828
|
-
|
|
5829
|
-
/**
|
|
5830
|
-
* Here we position the dropdownList relative to the $refs.toggle Element.
|
|
5831
|
-
*
|
|
5832
|
-
* The 'offset' modifier aligns the dropdown so that the $refs.toggle and
|
|
5833
|
-
* the dropdownList overlap by 1 pixel.
|
|
5834
|
-
*
|
|
5835
|
-
* The 'toggleClass' modifier adds a 'drop-up' class to the Vue Select
|
|
5836
|
-
* wrapper so that we can set some styles for when the dropdown is placed
|
|
5837
|
-
* above.
|
|
5838
|
-
*/
|
|
5839
|
-
var popper = createPopper(component.$refs.toggle, dropdownList, {
|
|
5840
|
-
placement: 'bottom',
|
|
5841
|
-
modifiers: [{
|
|
5842
|
-
name: 'offset',
|
|
5843
|
-
options: {
|
|
5844
|
-
offset: [0, -1]
|
|
5845
|
-
}
|
|
5846
|
-
}, {
|
|
5847
|
-
name: 'toggleClass',
|
|
5848
|
-
enabled: true,
|
|
5849
|
-
phase: 'write',
|
|
5850
|
-
fn: function fn(_ref2) {
|
|
5851
|
-
var state = _ref2.state;
|
|
5852
|
-
component.$el.classList.toggle('drop-up', state.placement === 'top');
|
|
5853
|
-
}
|
|
5854
|
-
}]
|
|
5855
|
-
});
|
|
5856
|
-
|
|
5857
|
-
/**
|
|
5858
|
-
* To prevent memory leaks Popper needs to be destroyed.
|
|
5859
|
-
* If you return function, it will be called just before dropdown is removed from DOM.
|
|
5860
|
-
*/
|
|
5861
|
-
return function () {
|
|
5862
|
-
return popper.destroy();
|
|
5863
|
-
};
|
|
5864
|
-
}
|
|
5865
|
-
}
|
|
5866
|
-
};
|
|
5867
|
-
|
|
5868
5819
|
var index$7 = /*#__PURE__*/Object.freeze({
|
|
5869
5820
|
__proto__: null,
|
|
5870
5821
|
corredor: corredor,
|
|
5871
|
-
files: files
|
|
5872
|
-
vueSelectPosition: vueSelectPosition
|
|
5822
|
+
files: files
|
|
5873
5823
|
});
|
|
5874
5824
|
|
|
5875
5825
|
//
|
|
@@ -15530,11 +15480,16 @@ const validTypes$1 = [
|
|
|
15530
15480
|
'search',
|
|
15531
15481
|
'date',
|
|
15532
15482
|
'time',
|
|
15483
|
+
'datetime',
|
|
15533
15484
|
];
|
|
15534
15485
|
|
|
15535
15486
|
var script$G = {
|
|
15536
15487
|
name: 'CPromptInput',
|
|
15537
15488
|
|
|
15489
|
+
components: {
|
|
15490
|
+
CInputDateTime: __vue_component__$1b,
|
|
15491
|
+
},
|
|
15492
|
+
|
|
15538
15493
|
extends: __vue_component__$M,
|
|
15539
15494
|
|
|
15540
15495
|
data () {
|
|
@@ -15568,7 +15523,12 @@ var script$G = {
|
|
|
15568
15523
|
const __vue_script__$G = script$G;
|
|
15569
15524
|
|
|
15570
15525
|
/* template */
|
|
15571
|
-
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"}},[
|
|
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)};
|
|
15572
15532
|
var __vue_staticRenderFns__$F = [];
|
|
15573
15533
|
|
|
15574
15534
|
/* style */
|
|
@@ -16496,6 +16456,7 @@ const prompts = Object.freeze([
|
|
|
16496
16456
|
{ value: 'email', text: 'Email' },
|
|
16497
16457
|
{ value: 'password', text: 'Password' },
|
|
16498
16458
|
{ value: 'search', text: 'Search' },
|
|
16459
|
+
{ value: 'datetime', text: 'Date & Time' },
|
|
16499
16460
|
{ value: 'date', text: 'Date' },
|
|
16500
16461
|
{ value: 'time', text: 'Time' },
|
|
16501
16462
|
],
|
|
@@ -16933,9 +16894,8 @@ var script$y = {
|
|
|
16933
16894
|
},
|
|
16934
16895
|
|
|
16935
16896
|
props: {
|
|
16936
|
-
|
|
16897
|
+
expanded: {
|
|
16937
16898
|
type: Boolean,
|
|
16938
|
-
required: true,
|
|
16939
16899
|
default: false,
|
|
16940
16900
|
},
|
|
16941
16901
|
|
|
@@ -17060,20 +17020,20 @@ var script$y = {
|
|
|
17060
17020
|
const __vue_script__$y = script$y;
|
|
17061
17021
|
|
|
17062
17022
|
/* template */
|
|
17063
|
-
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.
|
|
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:({
|
|
17064
17024
|
'background-image': _vm.avatarExists ? ("url(" + _vm.profileAvatarUrl + ")") : 'none',
|
|
17065
|
-
})}):_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":
|
|
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)])};
|
|
17066
17026
|
var __vue_staticRenderFns__$x = [];
|
|
17067
17027
|
|
|
17068
17028
|
/* style */
|
|
17069
17029
|
const __vue_inject_styles__$z = function (inject) {
|
|
17070
17030
|
if (!inject) return
|
|
17071
|
-
inject("data-v-
|
|
17072
|
-
,inject("data-v-
|
|
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 });
|
|
17073
17033
|
|
|
17074
17034
|
};
|
|
17075
17035
|
/* scoped */
|
|
17076
|
-
const __vue_scope_id__$z = "data-v-
|
|
17036
|
+
const __vue_scope_id__$z = "data-v-ce980aca";
|
|
17077
17037
|
/* module identifier */
|
|
17078
17038
|
const __vue_module_identifier__$z = undefined;
|
|
17079
17039
|
/* functional template */
|
|
@@ -20141,6 +20101,11 @@ var script$f = {
|
|
|
20141
20101
|
this.pagination.page = 1;
|
|
20142
20102
|
this.$refs.resourceList.refresh();
|
|
20143
20103
|
},
|
|
20104
|
+
|
|
20105
|
+
handleSearch (searchQuery) {
|
|
20106
|
+
this.filter[this.queryField] = searchQuery ? searchQuery.trim() : '';
|
|
20107
|
+
this.$emit('search');
|
|
20108
|
+
},
|
|
20144
20109
|
},
|
|
20145
20110
|
};
|
|
20146
20111
|
|
|
@@ -20148,7 +20113,7 @@ var script$f = {
|
|
|
20148
20113
|
const __vue_script__$f = script$f;
|
|
20149
20114
|
|
|
20150
20115
|
/* template */
|
|
20151
|
-
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,"
|
|
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){
|
|
20152
20117
|
var item = ref.item;
|
|
20153
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){
|
|
20154
20119
|
var item = ref.item;
|
|
@@ -20158,7 +20123,7 @@ var __vue_staticRenderFns__$g = [];
|
|
|
20158
20123
|
/* style */
|
|
20159
20124
|
const __vue_inject_styles__$g = function (inject) {
|
|
20160
20125
|
if (!inject) return
|
|
20161
|
-
inject("data-v-
|
|
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 });
|
|
20162
20127
|
|
|
20163
20128
|
};
|
|
20164
20129
|
/* scoped */
|