@tripup-company/element-ui-extended 0.0.13 → 0.0.14

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@tripup-company/element-ui-extended",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "main": "./dist/element-ui-extended.umd.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
7
7
  "build": "vue-cli-service build",
8
8
  "lint": "vue-cli-service lint",
9
9
  "build-lib": "vue-cli-service build --target lib src/index.ts",
10
- "test": "mochapack --webpack-config webpack.test.config.js --require mock-local-storage --require ./src/test/setup.js ./src/test/unit/**/*.js"
10
+ "test": "mochapack --webpack-config webpack.test.config.js --require mock-local-storage --require ./tests/setup.js ./tests/unit/**/*.js"
11
11
  },
12
12
  "dependencies": {
13
13
  "axios": "^0.24.0",
@@ -2,7 +2,7 @@
2
2
  <div v-loading="loading" class="composite-table">
3
3
  <slot>
4
4
  <el-row :gutter="20">
5
- <el-col :span="18">
5
+ <el-col :span="filters.length ? 18 : 24">
6
6
  <slot name="quick-search-filter" v-bind="{ topFilter, search }">
7
7
  <quick-search-filter
8
8
  v-if="topFilter"
@@ -33,7 +33,7 @@
33
33
  </el-col>
34
34
  </el-row>
35
35
  </el-col>
36
- <el-col :span="6">
36
+ <el-col :span="filters.length ? 6 : 0">
37
37
  <slot name="filter" v-bind="{ filters, search }">
38
38
  <generic-filter
39
39
  v-if="filters.length"
@@ -49,10 +49,6 @@ export default {
49
49
  },
50
50
  type: Array,
51
51
  },
52
- title: {
53
- default: "",
54
- type: String,
55
- },
56
52
  fields: {
57
53
  default: () => [],
58
54
  type: Array,
package/src/App.vue DELETED
@@ -1,64 +0,0 @@
1
- <template>
2
- <div id="app">
3
- <composite-table
4
- :storageKey="'Project_name'"
5
- :fields="fields"
6
- :filters="filters"
7
- :top-filter="topFilter"
8
- :repository="repository"
9
- ></composite-table>
10
- <img alt="Vue logo" src="./assets/logo.png" />
11
- </div>
12
- </template>
13
-
14
- <script lang="ts">
15
- import { Component, Vue } from "vue-property-decorator";
16
- import CompositeTable from "@/components/CompositeTable/index.vue";
17
- import filters from "./filters";
18
- import topFilter from "./topFilter";
19
- import repository from "./repositories/contacts-repository";
20
- @Component({
21
- components: { CompositeTable },
22
- data: function () {
23
- let repo = new repository("", "/test", null);
24
- return {
25
- filters: filters,
26
- topFilter: topFilter,
27
- repository: repo,
28
- fields: [
29
- {
30
- prop: "full_name",
31
- label: "Full Name",
32
- formatter: (row) => {
33
- return row.first_name + " " + row.last_name;
34
- },
35
- },
36
- {
37
- prop: "email",
38
- label: "Email",
39
- },
40
- {
41
- prop: "phone",
42
- label: "Phone",
43
- },
44
- {
45
- prop: "created_at",
46
- label: "Created at",
47
- },
48
- ],
49
- };
50
- },
51
- })
52
- export default class App extends Vue {}
53
- </script>
54
-
55
- <style lang="scss">
56
- #app {
57
- font-family: Avenir, Helvetica, Arial, sans-serif;
58
- -webkit-font-smoothing: antialiased;
59
- -moz-osx-font-smoothing: grayscale;
60
- text-align: center;
61
- color: #2c3e50;
62
- margin-top: 60px;
63
- }
64
- </style>
@@ -1,122 +0,0 @@
1
- <template>
2
- <div class="hello">
3
- <h1>{{ msg }}</h1>
4
- <p>
5
- For a guide and recipes on how to configure / customize this project,<br />
6
- check out the
7
- <a href="https://cli.vuejs.org" target="_blank" rel="noopener"
8
- >vue-cli documentation</a
9
- >.
10
- </p>
11
- <h3>Installed CLI Plugins</h3>
12
- <ul>
13
- <li>
14
- <a
15
- href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel"
16
- target="_blank"
17
- rel="noopener"
18
- >babel</a
19
- >
20
- </li>
21
- <li>
22
- <a
23
- href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-typescript"
24
- target="_blank"
25
- rel="noopener"
26
- >typescript</a
27
- >
28
- </li>
29
- <li>
30
- <a
31
- href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint"
32
- target="_blank"
33
- rel="noopener"
34
- >eslint</a
35
- >
36
- </li>
37
- </ul>
38
- <h3>Essential Links</h3>
39
- <ul>
40
- <li>
41
- <a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a>
42
- </li>
43
- <li>
44
- <a href="https://forum.vuejs.org" target="_blank" rel="noopener"
45
- >Forum</a
46
- >
47
- </li>
48
- <li>
49
- <a href="https://chat.vuejs.org" target="_blank" rel="noopener"
50
- >Community Chat</a
51
- >
52
- </li>
53
- <li>
54
- <a href="https://twitter.com/vuejs" target="_blank" rel="noopener"
55
- >Twitter</a
56
- >
57
- </li>
58
- <li>
59
- <a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a>
60
- </li>
61
- </ul>
62
- <h3>Ecosystem</h3>
63
- <ul>
64
- <li>
65
- <a href="https://router.vuejs.org" target="_blank" rel="noopener"
66
- >vue-router</a
67
- >
68
- </li>
69
- <li>
70
- <a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a>
71
- </li>
72
- <li>
73
- <a
74
- href="https://github.com/vuejs/vue-devtools#vue-devtools"
75
- target="_blank"
76
- rel="noopener"
77
- >vue-devtools</a
78
- >
79
- </li>
80
- <li>
81
- <a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener"
82
- >vue-loader</a
83
- >
84
- </li>
85
- <li>
86
- <a
87
- href="https://github.com/vuejs/awesome-vue"
88
- target="_blank"
89
- rel="noopener"
90
- >awesome-vue</a
91
- >
92
- </li>
93
- </ul>
94
- </div>
95
- </template>
96
-
97
- <script lang="ts">
98
- import { Component, Prop, Vue } from "vue-property-decorator";
99
-
100
- @Component
101
- export default class HelloWorld extends Vue {
102
- @Prop() private msg!: string;
103
- }
104
- </script>
105
-
106
- <!-- Add "scoped" attribute to limit CSS to this component only -->
107
- <style scoped lang="scss">
108
- h3 {
109
- margin: 40px 0 0;
110
- }
111
- ul {
112
- list-style-type: none;
113
- padding: 0;
114
- }
115
- li {
116
- display: inline-block;
117
- margin: 0 10px;
118
- }
119
- a {
120
- color: #42b983;
121
- }
122
- </style>
package/src/filters.js DELETED
@@ -1,64 +0,0 @@
1
- export default [
2
- {
3
- name: 'title',
4
- label: 'Title',
5
- type: 'string',
6
- },
7
- {
8
- name: 'first_name',
9
- label: 'First Name',
10
- type: 'string',
11
- },
12
- {
13
- name: 'last_name',
14
- label: 'Last Name',
15
- type: 'string',
16
- },
17
- {
18
- name: 'email',
19
- label: 'Email',
20
- type: 'string',
21
- },
22
- {
23
- name: 'phone',
24
- label: 'Phone',
25
- type: 'string',
26
- },
27
- {
28
- name: 'mobile',
29
- label: 'Mobile',
30
- type: 'string',
31
- },
32
- {
33
- name: 'position',
34
- label: 'Position',
35
- type: 'string',
36
- },
37
- {
38
- name: 'street',
39
- label: 'Street',
40
- type: 'string',
41
- },
42
- {
43
- name: 'zip_code',
44
- label: 'Zip Code',
45
- type: 'string',
46
- },
47
- {
48
- name: 'city',
49
- label: 'City',
50
- type: 'string',
51
- },
52
- {
53
- name: 'state',
54
- label: 'State',
55
- type: 'string',
56
- },
57
-
58
- {
59
- name: 'created_at',
60
- label: 'Created at',
61
- type: 'date',
62
- operator: 'between_date',
63
- },
64
- ];
@@ -1,23 +0,0 @@
1
- import { Icontact } from "../types/icontact";
2
- import { BaseModel } from "./base-model";
3
-
4
- export class ContactModel extends BaseModel implements Icontact {
5
- id?: number;
6
- title?: string;
7
- first_name?: string;
8
- last_name?: string;
9
- email: string;
10
- phone?: string;
11
- mobile?: string;
12
- position?: string;
13
- comments_guid?: string;
14
- city: string;
15
- state?: string;
16
- zip_code: string;
17
- street?: string;
18
- country?: string;
19
-
20
- constructor(data = []) {
21
- super(data);
22
- }
23
- }
@@ -1,15 +0,0 @@
1
- <template>
2
- <div>
3
- Hello world!
4
- </div>
5
- </template>
6
-
7
- <script>
8
- export default {
9
- name: 'TestComponent',
10
- };
11
- </script>
12
-
13
- <style scoped>
14
-
15
- </style>
@@ -1,6 +0,0 @@
1
- export class Article {
2
- constructor() {
3
- this.name = "article";
4
- }
5
- }
6
- //# sourceMappingURL=article.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"article.js","sourceRoot":"","sources":["article.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,OAAO;IAApB;QACS,SAAI,GAAG,SAAS,CAAC;IAC1B,CAAC;CAAA"}
@@ -1,17 +0,0 @@
1
- export interface Icontact {
2
- id?: number;
3
- title?: string;
4
- first_name?: string;
5
- last_name?: string;
6
- email: string;
7
- phone?: string;
8
- mobile?: string;
9
- position?: string;
10
- comments_guid?: string;
11
- city: string;
12
- state?: string;
13
- zip_code: string;
14
- street?: string;
15
- country?: string;
16
-
17
- }