@exmg/exm-grid 1.1.5-alpha.5 → 1.1.5-alpha.6
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/search/exm-toolbar-search.d.ts +1 -0
- package/dist/search/exm-toolbar-search.js +8 -1
- package/dist/styles/exm-grid-base-toolbar-styles-css.js +3 -12
- package/dist/table/exm-grid-base-toolbar.js +7 -4
- package/dist/table/exm-grid-toolbar-css.js +0 -4
- package/dist/table/exm-grid-toolbar.js +2 -2
- package/package.json +4 -4
|
@@ -8,6 +8,7 @@ export declare class ToolbarSearch extends ExmgElement {
|
|
|
8
8
|
filterValue?: string | null;
|
|
9
9
|
placeHolder: string;
|
|
10
10
|
search?: HTMLInputElement;
|
|
11
|
+
static styles: import("lit").CSSResult[];
|
|
11
12
|
private _debouncer;
|
|
12
13
|
render(): import("lit-html").TemplateResult<1>;
|
|
13
14
|
_getValue(): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { html } from 'lit';
|
|
2
|
+
import { css, html } from 'lit';
|
|
3
3
|
import { property, customElement, query, state } from 'lit/decorators.js';
|
|
4
4
|
import { ExmgElement } from '@exmg/lit-base/index.js';
|
|
5
5
|
import { classMap } from 'lit/directives/class-map.js';
|
|
@@ -62,6 +62,13 @@ let ToolbarSearch = class ToolbarSearch extends ExmgElement {
|
|
|
62
62
|
setTimeout(() => this.shadowRoot.querySelector('#searchInput').focus(), 200);
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
+
ToolbarSearch.styles = [
|
|
66
|
+
css `
|
|
67
|
+
:host {
|
|
68
|
+
width: 100%;
|
|
69
|
+
}
|
|
70
|
+
`,
|
|
71
|
+
];
|
|
65
72
|
__decorate([
|
|
66
73
|
state()
|
|
67
74
|
], ToolbarSearch.prototype, "isSearch", void 0);
|
|
@@ -15,9 +15,8 @@ export const style = css `
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.wrapper {
|
|
18
|
-
display:
|
|
19
|
-
|
|
20
|
-
flex-direction: row;
|
|
18
|
+
display: grid;
|
|
19
|
+
grid-template-columns: 1fr auto auto;
|
|
21
20
|
align-items: center;
|
|
22
21
|
padding: 10px 16px 10px 16px;
|
|
23
22
|
overflow-x: var(--exm-theme-table-toolbar-overflow-x, initial);
|
|
@@ -39,10 +38,8 @@ export const style = css `
|
|
|
39
38
|
|
|
40
39
|
.wrapper.active .description {
|
|
41
40
|
color: var(--active-toolbar-color);
|
|
42
|
-
flex: 1;
|
|
43
41
|
margin-left: 8px;
|
|
44
42
|
}
|
|
45
|
-
|
|
46
43
|
.wrapper .seperator {
|
|
47
44
|
min-height: 32px;
|
|
48
45
|
}
|
|
@@ -54,19 +51,12 @@ export const style = css `
|
|
|
54
51
|
.wrapper .description {
|
|
55
52
|
-moz-osx-font-smoothing: grayscale;
|
|
56
53
|
-webkit-font-smoothing: antialiased;
|
|
57
|
-
font-family: Roboto, sans-serif;
|
|
58
54
|
font-family: var(--mdc-typography-headline5-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));
|
|
59
|
-
font-size: 1.5rem;
|
|
60
55
|
font-size: var(--mdc-typography-headline5-font-size, 1.5rem);
|
|
61
|
-
line-height: 2rem;
|
|
62
56
|
line-height: var(--mdc-typography-headline5-line-height, 2rem);
|
|
63
|
-
font-weight: 400;
|
|
64
57
|
font-weight: var(--mdc-typography-headline5-font-weight, 400);
|
|
65
|
-
letter-spacing: normal;
|
|
66
58
|
letter-spacing: var(--mdc-typography-headline5-letter-spacing, normal);
|
|
67
|
-
text-decoration: inherit;
|
|
68
59
|
text-decoration: var(--mdc-typography-headline5-text-decoration, inherit);
|
|
69
|
-
text-transform: inherit;
|
|
70
60
|
text-transform: var(--mdc-typography-headline5-text-transform, inherit);
|
|
71
61
|
color: var(--toolbar-color);
|
|
72
62
|
font-size: 1.25rem;
|
|
@@ -75,6 +65,7 @@ export const style = css `
|
|
|
75
65
|
flex: 1;
|
|
76
66
|
display: flex;
|
|
77
67
|
align-items: center;
|
|
68
|
+
width: 100%;
|
|
78
69
|
}
|
|
79
70
|
|
|
80
71
|
.actions {
|
|
@@ -3,6 +3,7 @@ import { html } from 'lit';
|
|
|
3
3
|
import { customElement, property, state } from 'lit/decorators.js';
|
|
4
4
|
import { ExmgElement } from '@exmg/lit-base/index.js';
|
|
5
5
|
import { style } from '../styles/exm-grid-base-toolbar-styles-css.js';
|
|
6
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
6
7
|
/**
|
|
7
8
|
* ### Styling
|
|
8
9
|
* The following custom properties are available for styling:
|
|
@@ -43,18 +44,20 @@ let ExmGridBaseToolbar = class ExmGridBaseToolbar extends ExmgElement {
|
|
|
43
44
|
super.disconnectedCallback();
|
|
44
45
|
}
|
|
45
46
|
render() {
|
|
47
|
+
const classNames = { active: this.active, 'has-action': this.actionsCount > 0 };
|
|
46
48
|
return html `
|
|
47
|
-
<div class="wrapper ${
|
|
49
|
+
<div class="wrapper ${classMap(classNames)}">
|
|
48
50
|
${this.actionsCount > 0
|
|
49
51
|
? html `
|
|
50
52
|
<div class="actions">
|
|
51
53
|
<slot name="actions"></slot>
|
|
52
54
|
</div>
|
|
55
|
+
<div class="seperator ${this.actionsCount > 0 && !this.disableSeperator ? 'with-action-separator' : ''}">
|
|
56
|
+
|
|
57
|
+
</div>
|
|
53
58
|
`
|
|
54
59
|
: ''}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
</div>
|
|
60
|
+
|
|
58
61
|
<div class="description">
|
|
59
62
|
<slot name="description"></slot>
|
|
60
63
|
</div>
|
|
@@ -82,7 +82,7 @@ let ExmGridToolbar = class ExmGridToolbar extends ExmgElement {
|
|
|
82
82
|
`);
|
|
83
83
|
}
|
|
84
84
|
renderSearch() {
|
|
85
|
-
return html `<exm-toolbar-search placeHolder=${this.searchPlaceholder}></exm-toolbar-search> `;
|
|
85
|
+
return html `<exm-toolbar-search slot="description" placeHolder=${this.searchPlaceholder}></exm-toolbar-search> `;
|
|
86
86
|
}
|
|
87
87
|
renderDescription() {
|
|
88
88
|
return html ` ${this.description} `;
|
|
@@ -144,7 +144,7 @@ let ExmGridToolbar = class ExmGridToolbar extends ExmgElement {
|
|
|
144
144
|
<exm-grid-base-toolbar ?disableSeperator=${this.disableSeperator}>
|
|
145
145
|
<div slot="actions">${this.renderActions()}</div>
|
|
146
146
|
${this.searchEnabled
|
|
147
|
-
? html
|
|
147
|
+
? html `${this.renderSearch()}`
|
|
148
148
|
: html `<div class="title" slot="description">${this.renderDescription()}</div>`}
|
|
149
149
|
|
|
150
150
|
<div slot="filters">${this.renderFilters()}</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exmg/exm-grid",
|
|
3
|
-
"version": "1.1.5-alpha.
|
|
3
|
+
"version": "1.1.5-alpha.6+a4dfa63",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "exmg grid element",
|
|
6
6
|
"contributors": [
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"directory": "packages/exm-grid"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@exmg/exm-search": "^1.1.5-alpha.
|
|
41
|
-
"@exmg/exm-sortable": "^1.1.5-alpha.
|
|
40
|
+
"@exmg/exm-search": "^1.1.5-alpha.6+a4dfa63",
|
|
41
|
+
"@exmg/exm-sortable": "^1.1.5-alpha.6+a4dfa63"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@exmg/lit-base": "^3.0.0",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "a4dfa635573d70b8cfeefaf00bf1d2d79d3337fe"
|
|
56
56
|
}
|