pui9-datatables 1.16.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/dist/demo.html +10 -0
- package/dist/pui9-datatables.common.js +89206 -0
- package/dist/pui9-datatables.common.js.map +1 -0
- package/dist/pui9-datatables.css +5 -0
- package/dist/pui9-datatables.umd.js +89216 -0
- package/dist/pui9-datatables.umd.js.map +1 -0
- package/dist/pui9-datatables.umd.min.js +55 -0
- package/dist/pui9-datatables.umd.min.js.map +1 -0
- package/package-lock.json +15982 -0
- package/package.json +89 -0
- package/src/App.vue +37 -0
- package/src/components/desktop/PuiDatatable.vue +709 -0
- package/src/components/desktop/PuiQuickEditionDatatable.vue +548 -0
- package/src/components/desktop/PuiSimpleDatatable.vue +1498 -0
- package/src/components/desktop/datatables.net-plugins/pagination/input.js +213 -0
- package/src/components/desktop/footer/PuiDatatableFooter.vue +65 -0
- package/src/components/desktop/footer/PuiGridActionFooter.vue +132 -0
- package/src/components/desktop/quickedition/PuiQuickEditionExportBtn.vue +138 -0
- package/src/components/desktop/quickedition/PuiQuickEditionForm.vue +60 -0
- package/src/components/desktop/quickedition/PuiQuickEditionToolbar.vue +144 -0
- package/src/components/desktop/row/PuiGridRowActions.vue +112 -0
- package/src/components/desktop/subdialogs/PuiDatatableColumnMenu.vue +186 -0
- package/src/components/desktop/toolbar/PuiGridToolbar.vue +310 -0
- package/src/components/desktop/toolbar/actions/PuiGridActionListItem.vue +34 -0
- package/src/components/desktop/toolbar/actions/PuiGridActionsBtn.vue +56 -0
- package/src/components/desktop/toolbar/actions/PuiGridActionsDialog.vue +66 -0
- package/src/components/desktop/toolbar/actions/audit/PuiAuditDialog.vue +92 -0
- package/src/components/desktop/toolbar/actions/docgen/PuiDocgenTemplateMatchingsDialog.vue +139 -0
- package/src/components/desktop/toolbar/actions/docgen/PuiDocgenTemplateParametersDialog.vue +317 -0
- package/src/components/desktop/toolbar/actions/importexport/PuiGridExportDialog.vue +187 -0
- package/src/components/desktop/toolbar/actions/importexport/PuiGridImportDialog.vue +421 -0
- package/src/components/desktop/toolbar/export/PuiGridExportBtn.vue +175 -0
- package/src/components/desktop/toolbar/filtercombo/PuiGridFilterCombo.vue +237 -0
- package/src/components/desktop/toolbar/filtering/PuiGridFilterBtns.vue +163 -0
- package/src/components/desktop/toolbar/filtering/PuiGridFilterDialog.vue +434 -0
- package/src/components/desktop/toolbar/filtering/PuiGridFilterGroup.vue +313 -0
- package/src/components/desktop/toolbar/filtering/PuiGridFilterListBtn.vue +85 -0
- package/src/components/desktop/toolbar/filtering/PuiGridFilterListDialog.vue +254 -0
- package/src/components/desktop/toolbar/filtering/PuiGridFilterListItem.vue +192 -0
- package/src/components/desktop/toolbar/filtering/PuiGridFilterRule.vue +517 -0
- package/src/components/desktop/toolbar/grid-configuration/PuiGridConfBtns.vue +99 -0
- package/src/components/desktop/toolbar/grid-configuration/PuiGridConfDialog.vue +640 -0
- package/src/components/desktop/toolbar/grid-configuration/PuiSaveConfigDialog.vue +154 -0
- package/src/components/desktop/toolbar/row/PuiGridCreateBtn.vue +39 -0
- package/src/components/desktop/toolbar/row/PuiGridDeleteBtn.vue +86 -0
- package/src/components/desktop/toolbar/row/PuiGridRefreshBtn.vue +39 -0
- package/src/components/desktop/toolbar/row/PuiGridUpdateBtn.vue +56 -0
- package/src/components/desktop/toolbar/searching/PuiGridSearcher.vue +67 -0
- package/src/components/desktop/toolbar/searching/PuiGridSearcherColumnsList.vue +43 -0
- package/src/components/desktop/toolbar/sorting/PuiGridSortBtn.vue +44 -0
- package/src/components/desktop/toolbar/sorting/PuiGridSortDialog.vue +113 -0
- package/src/components/mobile/PuiDatalist.vue +477 -0
- package/src/components/mobile/PuiSimpleDatalist.vue +313 -0
- package/src/components/mobile/actions/PuiListActionListItem.vue +34 -0
- package/src/components/mobile/actions/PuiListActionsBtn.vue +38 -0
- package/src/components/mobile/actions/PuiListActionsDialog.vue +66 -0
- package/src/components/mobile/footer/PuiListActionFooter.vue +56 -0
- package/src/components/mobile/toolbar/PuiListToolbar.vue +60 -0
- package/src/components/mobile/toolbar/searching/PuiListSearcher.vue +53 -0
- package/src/components/mobile/toolbar/searching/PuiListSearcherColumnsList.vue +43 -0
- package/src/components/mobile/toolbar/sorting/PuiListSortBtn.vue +46 -0
- package/src/components/mobile/toolbar/sorting/PuiListSortDialog.vue +140 -0
- package/src/components/puiaudit/PuiAuditForm.vue +107 -0
- package/src/generalActions.js +135 -0
- package/src/index.js +31 -0
- package/src/main.js +67 -0
- package/src/mixins/PuiActionsBtnMixin.js +287 -0
- package/src/mixins/PuiActionsDialogMixin.js +161 -0
- package/src/mixins/PuiActionsListItemMixin.js +62 -0
- package/src/mixins/PuiDatatablesKeepPage.js +15 -0
- package/src/mixins/PuiGridFormMethodsMixin.js +133 -0
- package/src/mixins/PuiModelConfigurationMixin.js +15 -0
- package/src/mixins/PuiSearcherColumnsListMixin.js +108 -0
- package/src/mixins/PuiSearcherMixin.js +192 -0
- package/src/mixins/PuiSortBtnMixin.js +54 -0
- package/src/mixins/PuiSortDialogMixin.js +256 -0
- package/src/mixins/PuiToolbarBtnMixin.js +66 -0
- package/src/mixins/PuiToolbarDialogMixin.js +12 -0
- package/src/router.js +18 -0
- package/src/tests/PuiContainer.vue +139 -0
- package/src/tests/PuiProfileTestSimpleDatatable.vue +66 -0
- package/src/tests/PuiUserTestCompleteDatatable.vue +126 -0
- package/src/tests/PuiVariableTestQuickEditionDatatable.vue +39 -0
- package/src/tests/PuiVariableTestQuickEditionForm.vue +18 -0
- package/src/tests/modelConfigurations.json +3516 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div ref="btn" class="pui-toolbar__multiBtn ml-2" :class="compClass">
|
|
3
|
+
<div>
|
|
4
|
+
<v-btn
|
|
5
|
+
class="elevation-0 pui-toolbar__btn pui-toolbar__miniBtn"
|
|
6
|
+
:class="compClass"
|
|
7
|
+
@click.native.stop="toggleConfiguration()"
|
|
8
|
+
:title="getTitleBtn1"
|
|
9
|
+
>
|
|
10
|
+
<v-icon small>fa fa-table</v-icon>
|
|
11
|
+
</v-btn>
|
|
12
|
+
<div class="pui-toolbar__multiBtnSeparator">|</div>
|
|
13
|
+
<v-btn
|
|
14
|
+
class="elevation-0 pui-toolbar__btn pui-toolbar__superMiniBtn"
|
|
15
|
+
:class="compClass"
|
|
16
|
+
@click.native.stop="states.active = !states.active"
|
|
17
|
+
:title="getTitleBtn2"
|
|
18
|
+
>
|
|
19
|
+
<v-icon v-if="!states.active" small>fa fa-angle-down</v-icon>
|
|
20
|
+
<v-icon v-else small>fa fa-angle-up</v-icon>
|
|
21
|
+
</v-btn>
|
|
22
|
+
</div>
|
|
23
|
+
<pui-grid-conf-dialog
|
|
24
|
+
ref="dialog"
|
|
25
|
+
:columns="columns"
|
|
26
|
+
:modelName="modelName"
|
|
27
|
+
:modelNameSuffix="modelNameSuffix"
|
|
28
|
+
:position="panel.position"
|
|
29
|
+
v-if="mounted"
|
|
30
|
+
v-show="states.active"
|
|
31
|
+
></pui-grid-conf-dialog>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<script>
|
|
36
|
+
import PuiToolbarBtnMixin from '../../../../mixins/PuiToolbarBtnMixin';
|
|
37
|
+
import PuiGridConfDialog from './PuiGridConfDialog';
|
|
38
|
+
|
|
39
|
+
export default {
|
|
40
|
+
name: 'PuiGridConfigBtns',
|
|
41
|
+
mixins: [PuiToolbarBtnMixin],
|
|
42
|
+
components: {
|
|
43
|
+
PuiGridConfDialog
|
|
44
|
+
},
|
|
45
|
+
props: {
|
|
46
|
+
columns: {
|
|
47
|
+
type: Array,
|
|
48
|
+
required: true
|
|
49
|
+
},
|
|
50
|
+
modelName: {
|
|
51
|
+
type: String
|
|
52
|
+
},
|
|
53
|
+
modelNameSuffix: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: ''
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
data() {
|
|
59
|
+
return {
|
|
60
|
+
idTool: 'configuration',
|
|
61
|
+
mounted: false,
|
|
62
|
+
panel: {
|
|
63
|
+
position: {}
|
|
64
|
+
},
|
|
65
|
+
//the filter object in db
|
|
66
|
+
model: null
|
|
67
|
+
};
|
|
68
|
+
},
|
|
69
|
+
watch: {
|
|
70
|
+
'states.active'(val) {
|
|
71
|
+
this.$puiEvents.$emit(`onPui-upperToolbarDialogActive-${this.modelName}`, val);
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
mounted() {
|
|
75
|
+
this.calculateDialogPosition();
|
|
76
|
+
this.mounted = true;
|
|
77
|
+
|
|
78
|
+
this.$puiEvents.$on(`onPui-apply-configuration-${this.modelName}`, () => {
|
|
79
|
+
this.states.applied = true;
|
|
80
|
+
});
|
|
81
|
+
},
|
|
82
|
+
destroyed() {
|
|
83
|
+
this.$puiEvents.$off(`onPui-apply-configuration-${this.modelName}`);
|
|
84
|
+
},
|
|
85
|
+
methods: {
|
|
86
|
+
toggleConfiguration() {
|
|
87
|
+
this.$refs.dialog.toggleConfiguration();
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
computed: {
|
|
91
|
+
getTitleBtn1() {
|
|
92
|
+
return this.$t('puidatatables.titleBtnEnableDisableConfig');
|
|
93
|
+
},
|
|
94
|
+
getTitleBtn2() {
|
|
95
|
+
return this.$t('puidatatables.titleBtnShowHideConfig');
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
</script>
|