@aquera/nile-elements 0.0.56 → 0.0.58
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 +12 -0
- package/demo/index.html +24 -25
- package/demo/variables_v2.css +330 -420
- package/dist/index.iife.js +28 -18
- package/dist/nile-select/nile-select.cjs.js +1 -1
- package/dist/nile-select/nile-select.cjs.js.map +1 -1
- package/dist/nile-select/nile-select.esm.js +7 -7
- package/dist/nile-table-body/nile-table-body.css.cjs.js +1 -1
- package/dist/nile-table-body/nile-table-body.css.cjs.js.map +1 -1
- package/dist/nile-table-body/nile-table-body.css.esm.js +18 -3
- package/dist/nile-table-cell-item/nile-table-cell-item.css.cjs.js +1 -1
- package/dist/nile-table-cell-item/nile-table-cell-item.css.cjs.js.map +1 -1
- package/dist/nile-table-cell-item/nile-table-cell-item.css.esm.js +1 -4
- package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js +1 -1
- package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js.map +1 -1
- package/dist/nile-table-header-item/nile-table-header-item.css.esm.js +1 -3
- package/dist/nile-table-row/nile-table-row.css.cjs.js +1 -1
- package/dist/nile-table-row/nile-table-row.css.cjs.js.map +1 -1
- package/dist/nile-table-row/nile-table-row.css.esm.js +1 -1
- package/dist/src/nile-select/nile-select.js +3 -2
- package/dist/src/nile-select/nile-select.js.map +1 -1
- package/dist/src/nile-table-body/nile-table-body.css.js +18 -3
- package/dist/src/nile-table-body/nile-table-body.css.js.map +1 -1
- package/dist/src/nile-table-cell-item/nile-table-cell-item.css.js +1 -4
- package/dist/src/nile-table-cell-item/nile-table-cell-item.css.js.map +1 -1
- package/dist/src/nile-table-header-item/nile-table-header-item.css.js +1 -3
- package/dist/src/nile-table-header-item/nile-table-header-item.css.js.map +1 -1
- package/dist/src/nile-table-row/nile-table-row.css.js +1 -1
- package/dist/src/nile-table-row/nile-table-row.css.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-select/nile-select.ts +4 -3
- package/src/nile-table-body/nile-table-body.css.ts +18 -3
- package/src/nile-table-cell-item/nile-table-cell-item.css.ts +1 -4
- package/src/nile-table-header-item/nile-table-header-item.css.ts +1 -3
- package/src/nile-table-row/nile-table-row.css.ts +1 -1
package/package.json
CHANGED
@@ -145,7 +145,7 @@ export class NileSelect extends NileElement implements NileFormControl {
|
|
145
145
|
@property() placeholder = 'Select...';
|
146
146
|
|
147
147
|
/** Placeholder text to show as a hint when the select is empty. */
|
148
|
-
@state() searchValue = '';
|
148
|
+
@state() searchValue : string = '';
|
149
149
|
|
150
150
|
@property({ type: Boolean, reflect: true }) searchEnabled = false;
|
151
151
|
|
@@ -868,6 +868,8 @@ export class NileSelect extends NileElement implements NileFormControl {
|
|
868
868
|
} else {
|
869
869
|
// Hide
|
870
870
|
this.emit('nile-hide', { value: this.value, name: this.name });
|
871
|
+
this.searchValue = '';
|
872
|
+
this.filterOptions(this.searchValue);
|
871
873
|
this.removeOpenListeners();
|
872
874
|
|
873
875
|
await stopAnimations(this);
|
@@ -1003,7 +1005,6 @@ export class NileSelect extends NileElement implements NileFormControl {
|
|
1003
1005
|
const hasClearIcon =
|
1004
1006
|
this.clearable && !this.disabled && this.value.length > 0;
|
1005
1007
|
const isPlaceholderVisible = this.placeholder && this.value.length === 0;
|
1006
|
-
const searchValue = this.searchValue || '';
|
1007
1008
|
const hasHelpText = this.helpText ? true : false;
|
1008
1009
|
const hasErrorMessage = this.errorMessage ? true : false;
|
1009
1010
|
const prefixContent = this.selectedOptions[0]
|
@@ -1250,7 +1251,7 @@ export class NileSelect extends NileElement implements NileFormControl {
|
|
1250
1251
|
<nile-input
|
1251
1252
|
size="small"
|
1252
1253
|
clearable
|
1253
|
-
.value=${searchValue}
|
1254
|
+
.value=${this.searchValue}
|
1254
1255
|
placeholder="Search..."
|
1255
1256
|
@nile-input=${this.handleSearchChange}
|
1256
1257
|
@nile-focus=${this.handleSearchFocus}
|
@@ -11,14 +11,25 @@ import { css } from 'lit-element';
|
|
11
11
|
* TableBody CSS
|
12
12
|
*/
|
13
13
|
export const styles = css`
|
14
|
+
|
14
15
|
:host {
|
15
16
|
box-sizing: border-box;
|
16
|
-
--nile-table-background--odd: var(
|
17
|
-
|
17
|
+
--nile-table-background--odd: var(
|
18
|
+
--nile-table-body-row-odd-background-color
|
19
|
+
);
|
20
|
+
--nile-table-background--even: var(
|
21
|
+
--nile-table-body-row-even-background-color
|
22
|
+
);
|
18
23
|
}
|
24
|
+
|
19
25
|
.base {
|
20
26
|
width: max-content;
|
21
27
|
background-color: var(--nile-colors-white-base);
|
28
|
+
border: 1px solid var(--nile-table-row-border-color);
|
29
|
+
border-radius: var(--nile-radius-radius-xl);
|
30
|
+
box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1),
|
31
|
+
0px 1px 2px 0px rgba(16, 24, 40, 0.06);
|
32
|
+
overflow:hidden;
|
22
33
|
}
|
23
34
|
|
24
35
|
.table__header {
|
@@ -32,12 +43,16 @@ export const styles = css`
|
|
32
43
|
}
|
33
44
|
|
34
45
|
slot::slotted(nile-table-row:nth-child(odd)) {
|
35
|
-
border-bottom: 1px solid var(--nile-table-row-border-color);
|
36
46
|
background: var(--nile-table-background--odd);
|
37
47
|
}
|
48
|
+
|
38
49
|
slot::slotted(nile-table-row:nth-child(even)) {
|
39
50
|
background: var(--nile-table-background--even);
|
40
51
|
}
|
52
|
+
|
53
|
+
slot::slotted(nile-table-row:last-child) {
|
54
|
+
border-bottom: 0px;
|
55
|
+
}
|
41
56
|
`;
|
42
57
|
|
43
58
|
export default [styles];
|
@@ -11,6 +11,7 @@ import { css } from 'lit-element';
|
|
11
11
|
* TableCellItem CSS
|
12
12
|
*/
|
13
13
|
export const styles = css`
|
14
|
+
|
14
15
|
:host {
|
15
16
|
box-sizing: border-box;
|
16
17
|
display: table-cell;
|
@@ -28,12 +29,8 @@ export const styles = css`
|
|
28
29
|
min-height: var(--min--height);
|
29
30
|
height: auto;
|
30
31
|
width: auto;
|
31
|
-
|
32
|
-
/**font styling */
|
33
32
|
color: var(--nile-colors-dark-900);
|
34
|
-
|
35
33
|
font-feature-settings: 'clig' off, 'liga' off;
|
36
|
-
/* New Paragraph/Regular */
|
37
34
|
font-size: var(--nile-type-scale-3);
|
38
35
|
font-style: normal;
|
39
36
|
font-weight: var(--nile-font-weight-regular);
|
@@ -27,11 +27,8 @@ export const styles = css`
|
|
27
27
|
width: auto;
|
28
28
|
min-width: var(--min--width);
|
29
29
|
gap: 8px;
|
30
|
-
|
31
30
|
color: var(--nile-colors-dark-900);
|
32
|
-
|
33
31
|
font-feature-settings: 'clig' off, 'liga' off;
|
34
|
-
/* New Paragraph/Regular */
|
35
32
|
font-size: var(--nile-type-scale-3);
|
36
33
|
font-style: normal;
|
37
34
|
font-weight: var(--nile-font-weight-regular);
|
@@ -42,6 +39,7 @@ export const styles = css`
|
|
42
39
|
slot {
|
43
40
|
cursor: pointer;
|
44
41
|
}
|
42
|
+
|
45
43
|
nile-icon {
|
46
44
|
cursor: pointer;
|
47
45
|
}
|
@@ -13,8 +13,8 @@ import { css } from 'lit-element';
|
|
13
13
|
export const styles = css`
|
14
14
|
:host {
|
15
15
|
display: table-row;
|
16
|
-
border-bottom: 1px solid #e4e2e4;
|
17
16
|
--nile-header-background:var(--nile-table-header-background-color);
|
17
|
+
border-bottom: 1px solid var(--nile-table-row-border-color);
|
18
18
|
}
|
19
19
|
|
20
20
|
slot::slotted(nile-table-header-item) {
|