Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
915 changes: 915 additions & 0 deletions dist/assets/output-Bp6uA9Uu.css

Large diffs are not rendered by default.

6,280 changes: 3,273 additions & 3,007 deletions dist/vue-good-table-next.cjs.prod.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/vue-good-table-next.global.prod.js

Large diffs are not rendered by default.

6,280 changes: 3,273 additions & 3,007 deletions dist/vue-good-table.cjs.js

Large diffs are not rendered by default.

6,278 changes: 3,272 additions & 3,006 deletions dist/vue-good-table.esm.js

Large diffs are not rendered by default.

25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@
"lodash.isequal": "^4.5.0"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^13.0.6",
"@rollup/plugin-replace": "^3.0.0",
"@vitejs/plugin-vue": "^1.9.4",
"@vue/babel-preset-app": "^4.5.15",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-replace": "^6.0.1",
"@rollup/plugin-terser": "latest",
"@vitejs/plugin-vue": "^5.2.1",
"@vue/babel-preset-app": "^5.0.8",
"@vue/cli-plugin-unit-jest": "^4.5.15",
"@vue/cli-service": "^4.5.15",
"@vue/component-compiler-utils": "^3.3.0",
"@vue/test-utils": "^2.0.0-rc.16",
"@vue/test-utils": "2.4.6",
"@vuepress/bundler-vite": "^2.0.0-rc.15",
"@vuepress/plugin-google-analytics": "^2.0.0-rc.15",
"@vuepress/plugin-register-components": "^2.0.0-rc.15",
Expand All @@ -50,15 +51,15 @@
"chromedriver": "^95.0.0",
"eslint-config-airbnb": "^18.2.0",
"postcss-loader": "^6.2.0",
"rollup": "^2.72.1",
"rollup": "4.28.1",
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-scss": "3",
"rollup-plugin-terser": "^7.0.2",
"sass": "^1.43.4",
"rollup-plugin-scss": "^4.0.0",

"sass": "^1.82.0",
"sinon": "^11.1.2",
"typescript": "^4.4.4",
"vite": "^2.6.13",
"vue": "^3.2.20",
"vite": "^6.0.3",
"vue": "^3.5.13",
"vue-jest": "^5.0.0-0",
"vuepress": "^2.0.0-rc.15",
"webpack-node-externals": "^3.0.0"
Expand Down
8 changes: 5 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import VuePlugin from '@vitejs/plugin-vue'
import scss from 'rollup-plugin-scss'
import chalk from 'chalk'
import terser from '@rollup/plugin-terser';

import pkg from './package.json' with { type: "json" };

const pkg = require('./package.json')
const name = pkg.name

const banner = `/*!
Expand Down Expand Up @@ -59,7 +62,7 @@ export default packageConfigs

function createConfig(format, output, plugins = []) {
if (!output) {
console.log(require('chalk').yellow(`invalid format: "${format}"`))
console.log(chalk.yellow(`invalid format: "${format}"`))
process.exit(1)
}

Expand Down Expand Up @@ -170,7 +173,6 @@ function createProductionConfig(format) {
}

function createMinifiedConfig(format) {
const { terser } = require('rollup-plugin-terser')
return createConfig(
format,
{
Expand Down
80 changes: 35 additions & 45 deletions src/components/VgtGlobalSearch.vue
Original file line number Diff line number Diff line change
@@ -1,72 +1,62 @@
<template>
<div v-if="showControlBar" class="vgt-global-search vgt-clearfix">
<div class="vgt-global-search__input vgt-pull-left">
<form @submit.prevent v-if="searchEnabled" role="search">
<label :for="id">
<span aria-hidden="true" class="input__icon">
<div class="magnifying-glass"></div>
</span>
<span class="sr-only">Search</span>
</label>
<input
:id="id"
type="text"
class="vgt-input vgt-pull-left"
:placeholder="globalSearchPlaceholder"
:value="value"
@input="updateValue($event.target.value)"
@keyup.enter="entered($event.target.value)" />
</form>
</div>
<div v-if="showControlBar" class="vgt-global-search vgt-clearfix">
<div class="vgt-global-search__input vgt-pull-start">
<form @submit.prevent v-if="searchEnabled" role="search">
<label :for="id">
<span aria-hidden="true" class="input__icon">
<div class="magnifying-glass"></div>
</span>
<span class="sr-only">Search</span>
</label>
<input
:id="id"
type="text"
class="vgt-input vgt-pull-start"
:placeholder="globalSearchPlaceholder"
:value="value"
@input="updateValue($event.target.value)"
@keyup.enter="entered($event.target.value)"
/>
</form>
</div>

<div class="vgt-global-search__actions vgt-pull-right">
<slot name="internal-table-actions">
</slot>
<div class="vgt-global-search__actions vgt-pull-right">
<slot name="internal-table-actions"> </slot>
</div>
</div>
</div>
</template>

<script>
export default {
name: 'VgtGlobalSearch',
props: [
'value',
'searchEnabled',
'globalSearchPlaceholder',
],
emits: [
'input',
'keyup',
'enter',
],
props: ['value', 'searchEnabled', 'globalSearchPlaceholder'],
emits: ['input', 'keyup', 'enter'],
data() {
return {
globalSearchTerm: null,
id: this.getId(),
};
}
},
computed: {
showControlBar() {
if (this.searchEnabled) return true;
if (this.$slots && this.$slots['internal-table-actions']) return true;
return false;
if (this.searchEnabled) return true
if (this.$slots && this.$slots['internal-table-actions']) return true
return false
},
},
methods: {
updateValue(value) {
this.$emit('input', value);
this.$emit('keyup', value);
this.$emit('input', value)
this.$emit('keyup', value)
},
entered(value) {
this.$emit('enter', value);
this.$emit('enter', value)
},
getId() {
return `vgt-search-${Math.floor(Math.random() * Date.now())}`;
return `vgt-search-${Math.floor(Math.random() * Date.now())}`
},
},
};
}
</script>

<style>

</style>
<style></style>
Loading