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
package/package.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pui9-datatables",
|
|
3
|
+
"description": "PUI9 Datatables Component",
|
|
4
|
+
"author": {
|
|
5
|
+
"name": "Prodevelop S.L."
|
|
6
|
+
},
|
|
7
|
+
"version": "1.16.4",
|
|
8
|
+
"license": "Copyright",
|
|
9
|
+
"main": "dist/pui9-datatables.common.js",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"serve": "vue-cli-service serve",
|
|
12
|
+
"build-bundle": "vue-cli-service build --target lib --name pui9-datatables ./src/index.js",
|
|
13
|
+
"prepare": "npm run build-bundle",
|
|
14
|
+
"lint": "vue-cli-service lint"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"current-device": "0.10.2",
|
|
18
|
+
"datatables.net": "1.10.23",
|
|
19
|
+
"datatables.net-colreorder": "1.5.3",
|
|
20
|
+
"datatables.net-colreorder-dt": "1.5.3",
|
|
21
|
+
"datatables.net-dt": "1.10.23",
|
|
22
|
+
"datatables.net-fixedcolumns": "3.3.2",
|
|
23
|
+
"datatables.net-fixedcolumns-dt": "3.3.2",
|
|
24
|
+
"datatables.net-fixedheader": "3.1.8",
|
|
25
|
+
"datatables.net-fixedheader-dt": "3.1.8",
|
|
26
|
+
"datatables.net-keytable": "2.6.0",
|
|
27
|
+
"datatables.net-keytable-dt": "2.6.0",
|
|
28
|
+
"datatables.net-rowgroup": "1.1.2",
|
|
29
|
+
"datatables.net-rowgroup-dt": "1.1.2",
|
|
30
|
+
"datatables.net-select": "1.3.1",
|
|
31
|
+
"datatables.net-select-dt": "1.3.1",
|
|
32
|
+
"jquery": "3.5.1",
|
|
33
|
+
"moment": "2.29.1",
|
|
34
|
+
"moment-timezone": "0.5.33"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@fortawesome/fontawesome-pro": "5.15.4",
|
|
38
|
+
"@vue/cli-plugin-babel": "4.5.13",
|
|
39
|
+
"@vue/cli-plugin-eslint": "4.5.13",
|
|
40
|
+
"@vue/cli-service": "4.5.13",
|
|
41
|
+
"autoprefixer": "9.8.6",
|
|
42
|
+
"babel-eslint": "10.1.0",
|
|
43
|
+
"core-js": "3.17.2",
|
|
44
|
+
"css-loader": "0.28.11",
|
|
45
|
+
"deepmerge": "4.2.2",
|
|
46
|
+
"eslint": "6.8.0",
|
|
47
|
+
"eslint-plugin-vue": "6.2.2",
|
|
48
|
+
"postcss-css-variables": "0.18.0",
|
|
49
|
+
"postcss-import": "12.0.1",
|
|
50
|
+
"postcss-loader": "4.1.0",
|
|
51
|
+
"postcss-nested": "4.2.3",
|
|
52
|
+
"postcss-url": "8.0.0",
|
|
53
|
+
"sass": "1.27.0",
|
|
54
|
+
"sass-loader": "10.0.2",
|
|
55
|
+
"stylus": "0.54.8",
|
|
56
|
+
"stylus-loader": "3.0.2",
|
|
57
|
+
"vue": "2.6.14",
|
|
58
|
+
"vue-i18n": "8.25.0",
|
|
59
|
+
"vue-router": "3.5.2",
|
|
60
|
+
"vue-cli-plugin-vuetify": "2.4.1",
|
|
61
|
+
"vue-template-compiler": "2.6.14",
|
|
62
|
+
"vuetify-loader": "1.7.3",
|
|
63
|
+
"vuetify": "2.3.23",
|
|
64
|
+
"vuex": "3.6.2"
|
|
65
|
+
},
|
|
66
|
+
"eslintConfig": {
|
|
67
|
+
"root": true,
|
|
68
|
+
"env": {
|
|
69
|
+
"node": true
|
|
70
|
+
},
|
|
71
|
+
"extends": [
|
|
72
|
+
"plugin:vue/essential",
|
|
73
|
+
"eslint:recommended"
|
|
74
|
+
],
|
|
75
|
+
"parserOptions": {
|
|
76
|
+
"parser": "babel-eslint"
|
|
77
|
+
},
|
|
78
|
+
"rules": {}
|
|
79
|
+
},
|
|
80
|
+
"browserslist": [
|
|
81
|
+
"> 1%",
|
|
82
|
+
"last 2 versions"
|
|
83
|
+
],
|
|
84
|
+
"files": [
|
|
85
|
+
"dist/*",
|
|
86
|
+
"src/*",
|
|
87
|
+
"*.json"
|
|
88
|
+
]
|
|
89
|
+
}
|
package/src/App.vue
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-app class="pui-baseLayout">
|
|
3
|
+
<v-toolbar app color="primary" dark>
|
|
4
|
+
<div class="d-flex align-center">
|
|
5
|
+
<h2>PUI9 Datatable Component Library</h2>
|
|
6
|
+
</div>
|
|
7
|
+
|
|
8
|
+
<v-spacer></v-spacer>
|
|
9
|
+
|
|
10
|
+
<v-btn href="https://confluence.prodevelop.es/pages/viewpage.action?pageId=163217879" target="_blank" text>
|
|
11
|
+
<span class="mr-2">Documentation</span>
|
|
12
|
+
<v-icon>mdi-open-in-new</v-icon>
|
|
13
|
+
</v-btn>
|
|
14
|
+
</v-toolbar>
|
|
15
|
+
|
|
16
|
+
<v-layout>
|
|
17
|
+
<pui-container></pui-container>
|
|
18
|
+
</v-layout>
|
|
19
|
+
</v-app>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
import modelConfigs from '@/tests/modelConfigurations.json';
|
|
24
|
+
import PuiContainer from '@/tests/PuiContainer';
|
|
25
|
+
|
|
26
|
+
export default {
|
|
27
|
+
name: 'App',
|
|
28
|
+
components: {
|
|
29
|
+
PuiContainer
|
|
30
|
+
},
|
|
31
|
+
created() {
|
|
32
|
+
this.$store.state.httpRequestHeaders.Authorization =
|
|
33
|
+
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJQVUk5X1NFUlZFUiIsImlhdCI6MTU4NjI0MjE0NywianRpIjoiNmMyYjU0OWEtN2IwYy00N2Y5LWJmNDItMGRiM2Q3MjM5ZTkwIiwic3ViIjoiYWRtaW4iLCJ0aW1lem9uZSI6IkV1cm9wZS9NYWRyaWQiLCJwZXJzaXN0ZW50IjpmYWxzZSwiaXAiOiIxMzAuMi4wLjEyIiwidXNlcmFnZW50IjoiTW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzgwLjAuMzk4Ny4xNDkgU2FmYXJpLzUzNy4zNiIsImNsaWVudCI6IlBVSTlfQ0xJRU5UIn0.kyxl7qSU5Fdx5FB1m60x6FX-ecXkWwfdGr8vugPzjH8aZYJu_cSJfdYErgsX07lTitJUZB6K6WS3jyTsn6jmZQ';
|
|
34
|
+
this.$store.dispatch('puiModelsSetModels', modelConfigs);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
</script>
|