@aquera/nile-elements 0.1.32-beta-1.1 → 0.1.32-beta-1.3
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 +7 -21
- package/demo/index.html +9 -5
- package/dist/axe.min-2b379f29.cjs.js +12 -0
- package/dist/axe.min-2b379f29.cjs.js.map +1 -0
- package/dist/axe.min-c2cd8733.esm.js +12 -0
- package/dist/{fixture-3acb409b.cjs.js → fixture-161dee0b.cjs.js} +2 -2
- package/dist/{fixture-3acb409b.cjs.js.map → fixture-161dee0b.cjs.js.map} +1 -1
- package/dist/{fixture-db35a8ae.esm.js → fixture-372df3b0.esm.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/internal/animate.cjs.js +1 -1
- package/dist/internal/animate.cjs.js.map +1 -1
- package/dist/internal/animate.esm.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
- package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
- package/dist/nile-accordion/nile-accordion.cjs.js +1 -1
- package/dist/nile-accordion/nile-accordion.cjs.js.map +1 -1
- package/dist/nile-accordion/nile-accordion.css.cjs.js +1 -1
- package/dist/nile-accordion/nile-accordion.css.cjs.js.map +1 -1
- package/dist/nile-accordion/nile-accordion.css.esm.js +1 -1
- package/dist/nile-accordion/nile-accordion.esm.js +4 -4
- package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
- package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
- package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
- package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
- package/dist/nile-badge/nile-badge.test.esm.js +1 -1
- package/dist/nile-button/nile-button.test.cjs.js +1 -1
- package/dist/nile-button/nile-button.test.esm.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
- package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
- package/dist/nile-card/nile-card.test.cjs.js +1 -1
- package/dist/nile-card/nile-card.test.esm.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
- package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
- package/dist/nile-chip/nile-chip.test.esm.js +1 -1
- package/dist/nile-circular-progressbar/nile-circular-progressbar.css.cjs.js +1 -1
- package/dist/nile-circular-progressbar/nile-circular-progressbar.css.cjs.js.map +1 -1
- package/dist/nile-circular-progressbar/nile-circular-progressbar.css.esm.js +49 -49
- package/dist/nile-code-editor/extensionSetup.cjs.js +7 -7
- package/dist/nile-code-editor/extensionSetup.cjs.js.map +1 -1
- package/dist/nile-code-editor/extensionSetup.esm.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.cjs.js +2 -2
- package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.esm.js +2 -2
- package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
- package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
- package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
- package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
- package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
- package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
- package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
- package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
- package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
- package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
- package/dist/nile-hero/nile-hero.test.esm.js +1 -1
- package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
- package/dist/nile-icon/nile-icon.test.esm.js +1 -1
- package/dist/nile-input/nile-input.css.cjs.js +1 -1
- package/dist/nile-input/nile-input.css.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.css.esm.js +8 -0
- package/dist/nile-input/nile-input.test.cjs.js +1 -1
- package/dist/nile-input/nile-input.test.esm.js +1 -1
- package/dist/nile-link/nile-link.test.cjs.js +1 -1
- package/dist/nile-link/nile-link.test.esm.js +1 -1
- package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
- package/dist/nile-loader/nile-loader.test.esm.js +1 -1
- package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
- package/dist/nile-popover/nile-popover.test.esm.js +1 -1
- package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
- package/dist/nile-popup/nile-popup.test.esm.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
- package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
- package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
- package/dist/nile-radio/nile-radio.test.esm.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
- package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
- package/dist/nile-select/nile-select.test.cjs.js +1 -1
- package/dist/nile-select/nile-select.test.esm.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
- package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
- package/dist/nile-table-body/nile-table-body.cjs.js +1 -1
- package/dist/nile-table-body/nile-table-body.cjs.js.map +1 -1
- package/dist/nile-table-body/nile-table-body.esm.js +2 -2
- 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 +2 -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 +0 -2
- package/dist/nile-table-row/nile-table-row.cjs.js.map +1 -1
- package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
- package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
- package/dist/nile-tooltip/index.cjs.js +1 -1
- package/dist/nile-tooltip/index.esm.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.cjs.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.cjs.js.map +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.cjs.js.map +1 -1
- package/dist/nile-tooltip/nile-tooltip.css.esm.js +56 -115
- package/dist/nile-tooltip/nile-tooltip.esm.js +30 -13
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.js +0 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/nile-accordion/nile-accordion.css.js +1 -1
- package/dist/src/nile-accordion/nile-accordion.css.js.map +1 -1
- package/dist/src/nile-accordion/nile-accordion.d.ts +5 -6
- package/dist/src/nile-accordion/nile-accordion.js +8 -21
- package/dist/src/nile-accordion/nile-accordion.js.map +1 -1
- package/dist/src/nile-circular-progressbar/nile-circular-progressbar.css.js +49 -49
- package/dist/src/nile-circular-progressbar/nile-circular-progressbar.css.js.map +1 -1
- package/dist/src/nile-input/nile-input.css.js +8 -0
- package/dist/src/nile-input/nile-input.css.js.map +1 -1
- package/dist/src/nile-table-body/nile-table-body.d.ts +1 -3
- package/dist/src/nile-table-body/nile-table-body.js +1 -9
- package/dist/src/nile-table-body/nile-table-body.js.map +1 -1
- package/dist/src/nile-table-cell-item/nile-table-cell-item.css.js +2 -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 +0 -2
- 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.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.css.js +54 -113
- package/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
- package/dist/src/nile-tooltip/nile-tooltip.d.ts +62 -22
- package/dist/src/nile-tooltip/nile-tooltip.js +244 -180
- package/dist/src/nile-tooltip/nile-tooltip.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/index.ts +1 -2
- package/src/nile-accordion/nile-accordion.css.ts +1 -1
- package/src/nile-accordion/nile-accordion.ts +4 -15
- package/src/nile-circular-progressbar/nile-circular-progressbar.css.ts +56 -55
- package/src/nile-input/nile-input.css.ts +8 -0
- package/src/nile-table-body/nile-table-body.ts +2 -8
- package/src/nile-table-cell-item/nile-table-cell-item.css.ts +2 -4
- package/src/nile-table-header-item/nile-table-header-item.css.ts +0 -2
- package/src/nile-table-row/nile-table-row.ts +2 -1
- package/src/nile-tooltip/nile-tooltip.css.ts +54 -113
- package/src/nile-tooltip/nile-tooltip.ts +269 -207
- package/vscode-html-custom-data.json +18 -36
- package/dist/axe.min-5bf06036.esm.js +0 -12
- package/dist/axe.min-ff35bfba.cjs.js +0 -12
- package/dist/axe.min-ff35bfba.cjs.js.map +0 -1
- package/dist/nile-table/index.cjs.js +0 -2
- package/dist/nile-table/index.cjs.js.map +0 -1
- package/dist/nile-table/index.esm.js +0 -1
- package/dist/nile-table/nile-table.cjs.js +0 -2
- package/dist/nile-table/nile-table.cjs.js.map +0 -1
- package/dist/nile-table/nile-table.css.cjs.js +0 -2
- package/dist/nile-table/nile-table.css.cjs.js.map +0 -1
- package/dist/nile-table/nile-table.css.esm.js +0 -6
- package/dist/nile-table/nile-table.esm.js +0 -3
- package/dist/src/nile-table/index.d.ts +0 -1
- package/dist/src/nile-table/index.js +0 -2
- package/dist/src/nile-table/index.js.map +0 -1
- package/dist/src/nile-table/nile-table.css.d.ts +0 -12
- package/dist/src/nile-table/nile-table.css.js +0 -18
- package/dist/src/nile-table/nile-table.css.js.map +0 -1
- package/dist/src/nile-table/nile-table.d.ts +0 -47
- package/dist/src/nile-table/nile-table.js +0 -137
- package/dist/src/nile-table/nile-table.js.map +0 -1
- package/src/nile-table/index.ts +0 -1
- package/src/nile-table/nile-table.css.ts +0 -20
- package/src/nile-table/nile-table.ts +0 -154
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"description": "Webcomponent nile-elements following open-wc recommendations",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "nile-elements",
|
6
|
-
"version": "0.1.32-beta-1.
|
6
|
+
"version": "0.1.32-beta-1.3",
|
7
7
|
"main": "dist/src/index.js",
|
8
8
|
"type": "module",
|
9
9
|
"module": "dist/src/index.js",
|
@@ -84,7 +84,7 @@
|
|
84
84
|
"./nile-section-message": "./dist/src/nile-section-message/index.js",
|
85
85
|
"./nile-toolbar": "./dist/src/nile-toolbar/index.js",
|
86
86
|
"./nile-inline-edit": "./dist/src/nile-inline-edit/index.js",
|
87
|
-
"./nile-
|
87
|
+
"./nile-tour": "./dist/src/nile-tour/index.js"
|
88
88
|
},
|
89
89
|
"scripts": {
|
90
90
|
"analyze": "cem analyze --litelement",
|
@@ -188,4 +188,4 @@
|
|
188
188
|
"prettier --write"
|
189
189
|
]
|
190
190
|
}
|
191
|
-
}
|
191
|
+
}
|
package/src/index.ts
CHANGED
@@ -74,5 +74,4 @@ export { NileDivider } from './nile-divider';
|
|
74
74
|
export { NileTitle } from './nile-title';
|
75
75
|
export { NileSectionMessage } from './nile-section-message';
|
76
76
|
export { NileToolbar } from './nile-toolbar';
|
77
|
-
export { NileInlineEdit } from './nile-inline-edit';
|
78
|
-
export { NileTable } from './nile-table';
|
77
|
+
export { NileInlineEdit } from './nile-inline-edit';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
/**
|
2
2
|
* Copyright Aquera Inc 2023
|
3
3
|
*
|
4
4
|
* This source code is licensed under the BSD-3-Clause license found in the
|
@@ -57,7 +57,6 @@ static styles: CSSResultGroup = styles;
|
|
57
57
|
@query('.accordian__header') header: HTMLElement;
|
58
58
|
@query('.accordian__body') body: HTMLElement;
|
59
59
|
@query('.accordian__expand-icon-slot') expandIconSlot: HTMLSlotElement;
|
60
|
-
@query('slot[name="summary"]') summarySlot: HTMLSlotElement;
|
61
60
|
|
62
61
|
/**
|
63
62
|
* Indicates whether or not the accordian is open. You can toggle this attribute to show and hide the accordian, or you
|
@@ -94,17 +93,7 @@ firstUpdated() {
|
|
94
93
|
this.body.style.height = this.open ? 'auto' : '0';
|
95
94
|
}
|
96
95
|
|
97
|
-
|
98
|
-
const path = event.composedPath();
|
99
|
-
const slotIndex = path.indexOf(this.summarySlot);
|
100
|
-
if (slotIndex !== -1) {
|
101
|
-
for (let i = 0; i < slotIndex; i++) {
|
102
|
-
const el = path[i];
|
103
|
-
if (el instanceof Element && el.matches('input, button, select, textarea, a, label')) {
|
104
|
-
return;
|
105
|
-
}
|
106
|
-
}
|
107
|
-
}
|
96
|
+
private handleSummaryClick() {
|
108
97
|
if (!this.disabled) {
|
109
98
|
if (this.open) {
|
110
99
|
this.hide();
|
@@ -230,10 +219,10 @@ render() {
|
|
230
219
|
|
231
220
|
<span part="summary-icon" class="accordian__summary-icon">
|
232
221
|
<slot name="expand-icon">
|
233
|
-
<nile-icon name="
|
222
|
+
<nile-icon name="arrowright"></nile-icon>
|
234
223
|
</slot>
|
235
224
|
<slot name="collapse-icon">
|
236
|
-
<nile-icon name="
|
225
|
+
<nile-icon name="arrowright"></nile-icon>
|
237
226
|
</slot>
|
238
227
|
</span>
|
239
228
|
</div>
|
@@ -5,59 +5,60 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
|
8
|
-
import { css } from 'lit';
|
8
|
+
import { css } from 'lit';
|
9
9
|
|
10
|
-
/**
|
11
|
-
|
12
|
-
|
13
|
-
export const styles = css`
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
}
|
19
|
-
|
20
|
-
.track {
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
}
|
26
|
-
|
27
|
-
.progress {
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
}
|
36
|
-
|
37
|
-
.circle__text {
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
}
|
46
|
-
|
47
|
-
.nile-progress-bar__status {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
}
|
53
|
-
|
54
|
-
.nile-progress-bar__message {
|
55
|
-
|
56
|
-
}
|
57
|
-
|
58
|
-
.nile-progress-bar__percentage {
|
59
|
-
|
60
|
-
}
|
61
|
-
|
62
|
-
`
|
63
|
-
export default [styles];
|
10
|
+
/**
|
11
|
+
* Progressbar CSS
|
12
|
+
*/
|
13
|
+
export const styles = css`
|
14
|
+
|
15
|
+
:host {
|
16
|
+
display: inline-block;
|
17
|
+
|
18
|
+
}
|
19
|
+
|
20
|
+
.track {
|
21
|
+
stroke-width: 3px;
|
22
|
+
stroke: var(--nile-circular-progress-bar-track-color-stroke);
|
23
|
+
opacity: 0.5;
|
24
|
+
fill: none;
|
25
|
+
}
|
26
|
+
|
27
|
+
.progress {
|
28
|
+
stroke-width: 3px;
|
29
|
+
stroke: var(--nile-circular-progress-bar-progress-color-stroke);
|
30
|
+
stroke-linecap: round;
|
31
|
+
fill: none;
|
32
|
+
transform: rotate(270deg);
|
33
|
+
transform-origin: center;
|
34
|
+
transition: stroke-dashoffset 0.8s ease-in-out;
|
35
|
+
}
|
36
|
+
|
37
|
+
.circle__text {
|
38
|
+
fill: var(--nile-circular-progress-bar-circle-color-text);
|
39
|
+
text-align: center;
|
40
|
+
font-size: var(--nile-type-scale-1);
|
41
|
+
font-style: normal;
|
42
|
+
font-weight: var(--nile-font-weight-regular);
|
43
|
+
line-height: var(--nile-type-scale-1);
|
44
|
+
letter-spacing: 0.2px;
|
45
|
+
}
|
46
|
+
|
47
|
+
.nile-progress-bar__status {
|
48
|
+
display: flex;
|
49
|
+
justify-content: space-between;
|
50
|
+
align-items: center;
|
51
|
+
margin-bottom: 4px;
|
52
|
+
}
|
53
|
+
|
54
|
+
.nile-progress-bar__message {
|
55
|
+
flex-grow: 1;
|
56
|
+
}
|
57
|
+
|
58
|
+
.nile-progress-bar__percentage {
|
59
|
+
white-space: nowrap;
|
60
|
+
}
|
61
|
+
|
62
|
+
`
|
63
|
+
export default [styles];
|
64
|
+
|
@@ -15,6 +15,14 @@ export const styles = css`
|
|
15
15
|
display: block;
|
16
16
|
}
|
17
17
|
|
18
|
+
/* To Hide Safari's AutoFill icon */
|
19
|
+
input::-webkit-contacts-auto-fill-button {
|
20
|
+
visibility: hidden;
|
21
|
+
width: 0;
|
22
|
+
margin: 0;
|
23
|
+
padding: 0;
|
24
|
+
}
|
25
|
+
|
18
26
|
.form-control .form-control__label {
|
19
27
|
display: none;
|
20
28
|
}
|
@@ -10,7 +10,6 @@ import {
|
|
10
10
|
html,
|
11
11
|
CSSResultArray,
|
12
12
|
TemplateResult,
|
13
|
-
PropertyValues,
|
14
13
|
} from 'lit';
|
15
14
|
import {
|
16
15
|
customElement,
|
@@ -39,8 +38,8 @@ export class NileTableBody extends NileElement {
|
|
39
38
|
*/
|
40
39
|
|
41
40
|
@query('slot') defaultSlot: HTMLSlotElement;
|
42
|
-
@queryAssignedNodes({ flatten: true })
|
43
|
-
|
41
|
+
@queryAssignedNodes({ flatten: true })
|
42
|
+
_childNodes!: Array<HTMLElement>;
|
44
43
|
|
45
44
|
@state() private rows_data: any[] = [];
|
46
45
|
@state() private header_rows_data: any[] = [];
|
@@ -51,10 +50,6 @@ export class NileTableBody extends NileElement {
|
|
51
50
|
return [styles];
|
52
51
|
}
|
53
52
|
|
54
|
-
protected firstUpdated(_changedProperties: PropertyValues): void {
|
55
|
-
this.emit('nile-body-load', { value: this.type, comp:this },true,false)
|
56
|
-
}
|
57
|
-
|
58
53
|
/* #endregion */
|
59
54
|
|
60
55
|
/* #region Methods */
|
@@ -68,7 +63,6 @@ export class NileTableBody extends NileElement {
|
|
68
63
|
}
|
69
64
|
|
70
65
|
handleSlotchange(e: any) {
|
71
|
-
this.emit('nile-body-content-changed', { value: this.type, comp:this },true,false)
|
72
66
|
let row_data: any = [];
|
73
67
|
this._childNodes.forEach((child: any) => {
|
74
68
|
if (child.tagName && child?.tagName?.toLowerCase() === 'nile-table-row') {
|
@@ -12,19 +12,17 @@ import { css } from 'lit';
|
|
12
12
|
*/
|
13
13
|
export const styles = css`
|
14
14
|
:host {
|
15
|
-
--cell-width:auto;
|
16
|
-
--min--height: 52px;
|
17
|
-
--max--cell-width: auto;
|
18
15
|
box-sizing: border-box;
|
19
16
|
display: table-cell;
|
20
17
|
vertical-align: middle;
|
18
|
+
--min--height: 52px;
|
19
|
+
--max--cell-width: auto;
|
21
20
|
max-width: var(--max--cell-width);
|
22
21
|
padding: 16px 24px;
|
23
22
|
min-height: var(--min--height);
|
24
23
|
}
|
25
24
|
|
26
25
|
.column {
|
27
|
-
min-width:var(--cell-width);
|
28
26
|
height: 100%;
|
29
27
|
color: var(--nile-colors-gray-light-mode-600);
|
30
28
|
font-family: var(--nile-font-family-serif);
|
@@ -12,13 +12,11 @@ import { css } from 'lit';
|
|
12
12
|
*/
|
13
13
|
export const styles = css`
|
14
14
|
:host {
|
15
|
-
--cell-width:auto;
|
16
15
|
display: table-cell;
|
17
16
|
box-sizing: border-box;
|
18
17
|
}
|
19
18
|
|
20
19
|
.header__item__wrapper{
|
21
|
-
min-width:var(--cell-width);
|
22
20
|
display:flex;
|
23
21
|
align-items:center;
|
24
22
|
box-sizing: border-box;
|
@@ -47,7 +47,8 @@ export class NileTableRow extends NileElement {
|
|
47
47
|
];
|
48
48
|
for (let i = 0; i < header_items.length; i++) {
|
49
49
|
const header = header_items[i];
|
50
|
-
const haveIcon =
|
50
|
+
const haveIcon =
|
51
|
+
header.textContent == event.detail.value.curr_sort_string;
|
51
52
|
if (!haveIcon) {
|
52
53
|
header.sorting_ct = 0;
|
53
54
|
}
|
@@ -11,119 +11,60 @@ import { css } from 'lit';
|
|
11
11
|
* Tooltip CSS
|
12
12
|
*/
|
13
13
|
export const styles = css`
|
14
|
-
|
15
|
-
|
16
|
-
:
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
}
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
border-color: var(--nile-tooltip-color-background, #333) transparent transparent transparent;
|
69
|
-
}
|
70
|
-
|
71
|
-
.tooltip[data-placement^="bottom"]::after {
|
72
|
-
top: -6px;
|
73
|
-
border-width: 0 6px 6px 6px;
|
74
|
-
border-color: transparent transparent var(--nile-tooltip-color-background, #333) transparent;
|
75
|
-
}
|
76
|
-
|
77
|
-
.tooltip[data-placement^="left"]::after {
|
78
|
-
right: -6px;
|
79
|
-
border-width: 6px 0 6px 6px;
|
80
|
-
border-color: transparent transparent transparent var(--nile-tooltip-color-background, #333);
|
81
|
-
}
|
82
|
-
|
83
|
-
.tooltip[data-placement^="right"]::after {
|
84
|
-
left: -6px;
|
85
|
-
border-width: 6px 6px 6px 0;
|
86
|
-
border-color: transparent var(--nile-tooltip-color-background, #333) transparent transparent;
|
87
|
-
}
|
88
|
-
|
89
|
-
/* Arrow Horizontal Alignment for top/bottom placements */
|
90
|
-
.tooltip[data-placement="top"]::after,
|
91
|
-
.tooltip[data-placement="bottom"]::after {
|
92
|
-
left: 50%;
|
93
|
-
transform: translateX(-50%);
|
94
|
-
}
|
95
|
-
|
96
|
-
.tooltip[data-placement="top-start"]::after,
|
97
|
-
.tooltip[data-placement="bottom-start"]::after {
|
98
|
-
left: 12px;
|
99
|
-
}
|
100
|
-
|
101
|
-
.tooltip[data-placement="top-end"]::after,
|
102
|
-
.tooltip[data-placement="bottom-end"]::after {
|
103
|
-
right: 12px;
|
104
|
-
left: auto;
|
105
|
-
}
|
106
|
-
|
107
|
-
/* Arrow Vertical Alignment for left/right placements */
|
108
|
-
.tooltip[data-placement="left"]::after,
|
109
|
-
.tooltip[data-placement="right"]::after {
|
110
|
-
top: 50%;
|
111
|
-
transform: translateY(-50%);
|
112
|
-
}
|
113
|
-
|
114
|
-
.tooltip[data-placement="left-start"]::after,
|
115
|
-
.tooltip[data-placement="right-start"]::after {
|
116
|
-
top: 12px;
|
117
|
-
transform: none;
|
118
|
-
}
|
119
|
-
|
120
|
-
.tooltip[data-placement="left-end"]::after,
|
121
|
-
.tooltip[data-placement="right-end"]::after {
|
122
|
-
bottom: 12px;
|
123
|
-
top: auto;
|
124
|
-
transform: none;
|
125
|
-
}
|
126
|
-
|
14
|
+
:host {
|
15
|
+
--max-width: 20rem;
|
16
|
+
--hide-delay: 0ms;
|
17
|
+
--show-delay: 150ms;
|
18
|
+
|
19
|
+
display: contents;
|
20
|
+
}
|
21
|
+
|
22
|
+
.tooltip {
|
23
|
+
--arrow-size: 6px;
|
24
|
+
--arrow-color: var(--nile-tooltip-color-background);
|
25
|
+
}
|
26
|
+
|
27
|
+
.tooltip::part(popup) {
|
28
|
+
pointer-events: none;
|
29
|
+
z-index: 1000;
|
30
|
+
}
|
31
|
+
|
32
|
+
.tooltip[placement^='top']::part(popup) {
|
33
|
+
transform-origin: bottom;
|
34
|
+
}
|
35
|
+
|
36
|
+
.tooltip[placement^='bottom']::part(popup) {
|
37
|
+
transform-origin: top;
|
38
|
+
}
|
39
|
+
|
40
|
+
.tooltip[placement^='left']::part(popup) {
|
41
|
+
transform-origin: right;
|
42
|
+
}
|
43
|
+
|
44
|
+
.tooltip[placement^='right']::part(popup) {
|
45
|
+
transform-origin: left;
|
46
|
+
}
|
47
|
+
|
48
|
+
.tooltip__body {
|
49
|
+
display: block;
|
50
|
+
width: max-content;
|
51
|
+
max-width: var(--max-width);
|
52
|
+
border-radius: 4px;
|
53
|
+
background-color: var(--nile-tooltip-color-background);
|
54
|
+
font-size: var(--nile-tooltip-font-size-sm);
|
55
|
+
font-weight: var(--nile-tooltip-font-weight-sm);
|
56
|
+
line-height: var(--nile-tooltip-line-height-sm);
|
57
|
+
padding: var(--nile-tooltip-padding-y) var(--nile-tooltip-padding-x);
|
58
|
+
color: var(--nile-colors-white-base);
|
59
|
+
pointer-events: none;
|
60
|
+
word-break: break-word;
|
61
|
+
}
|
62
|
+
|
63
|
+
.tooltip__body--large {
|
64
|
+
font-size: var(--nile-tooltip-font-size-lg);
|
65
|
+
line-height: var(--nile-tooltip-line-height-lg);
|
66
|
+
font-weight: var(--nile-tooltip-font-weight-lg);
|
67
|
+
}
|
127
68
|
`;
|
128
69
|
|
129
70
|
export default [styles];
|