@aquera/nile-elements 1.6.0 → 1.6.1
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 +3 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +301 -185
- package/dist/nile-floating-panel/index.cjs.js +1 -1
- package/dist/nile-floating-panel/index.esm.js +1 -1
- package/dist/nile-floating-panel/nile-floating-panel.cjs.js +1 -1
- package/dist/nile-floating-panel/nile-floating-panel.cjs.js.map +1 -1
- package/dist/nile-floating-panel/nile-floating-panel.css.cjs.js +1 -1
- package/dist/nile-floating-panel/nile-floating-panel.css.cjs.js.map +1 -1
- package/dist/nile-floating-panel/nile-floating-panel.css.esm.js +137 -21
- package/dist/nile-floating-panel/nile-floating-panel.esm.js +1 -1
- package/dist/nile-lite-tooltip/index.cjs.js +1 -1
- package/dist/nile-lite-tooltip/index.esm.js +1 -1
- package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js +1 -1
- package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js.map +1 -1
- package/dist/nile-lite-tooltip/nile-lite-tooltip.esm.js +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/nile-floating-panel/index.js.map +1 -1
- package/dist/src/nile-floating-panel/nile-floating-panel.css.d.ts +1 -1
- package/dist/src/nile-floating-panel/nile-floating-panel.css.js +147 -20
- package/dist/src/nile-floating-panel/nile-floating-panel.css.js.map +1 -1
- package/dist/src/nile-floating-panel/nile-floating-panel.d.ts +90 -24
- package/dist/src/nile-floating-panel/nile-floating-panel.js +478 -159
- package/dist/src/nile-floating-panel/nile-floating-panel.js.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/dist/tippy.esm-57628c2b.esm.js +1 -0
- package/dist/tippy.esm-78baa8f2.cjs.js +2 -0
- package/dist/tippy.esm-78baa8f2.cjs.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
- package/src/index.ts +2 -2
- package/src/nile-floating-panel/index.ts +0 -1
- package/src/nile-floating-panel/nile-floating-panel.css.ts +149 -21
- package/src/nile-floating-panel/nile-floating-panel.ts +489 -190
- package/vscode-html-custom-data.json +213 -23
- package/dist/nile-floating-panel/anchor-manager.cjs.js +0 -2
- package/dist/nile-floating-panel/anchor-manager.cjs.js.map +0 -1
- package/dist/nile-floating-panel/anchor-manager.esm.js +0 -1
- package/dist/nile-floating-panel/content-manager.cjs.js +0 -2
- package/dist/nile-floating-panel/content-manager.cjs.js.map +0 -1
- package/dist/nile-floating-panel/content-manager.esm.js +0 -1
- package/dist/nile-floating-panel/event-manager.cjs.js +0 -2
- package/dist/nile-floating-panel/event-manager.cjs.js.map +0 -1
- package/dist/nile-floating-panel/event-manager.esm.js +0 -1
- package/dist/nile-floating-panel/position-manager.cjs.js +0 -2
- package/dist/nile-floating-panel/position-manager.cjs.js.map +0 -1
- package/dist/nile-floating-panel/position-manager.esm.js +0 -1
- package/dist/nile-floating-panel/style-manager.cjs.js +0 -2
- package/dist/nile-floating-panel/style-manager.cjs.js.map +0 -1
- package/dist/nile-floating-panel/style-manager.esm.js +0 -1
- package/dist/nile-floating-panel/types.cjs.js +0 -2
- package/dist/nile-floating-panel/types.cjs.js.map +0 -1
- package/dist/nile-floating-panel/types.esm.js +0 -1
- package/dist/src/nile-floating-panel/anchor-manager.d.ts +0 -6
- package/dist/src/nile-floating-panel/anchor-manager.js +0 -27
- package/dist/src/nile-floating-panel/anchor-manager.js.map +0 -1
- package/dist/src/nile-floating-panel/content-manager.d.ts +0 -5
- package/dist/src/nile-floating-panel/content-manager.js +0 -44
- package/dist/src/nile-floating-panel/content-manager.js.map +0 -1
- package/dist/src/nile-floating-panel/event-manager.d.ts +0 -14
- package/dist/src/nile-floating-panel/event-manager.js +0 -52
- package/dist/src/nile-floating-panel/event-manager.js.map +0 -1
- package/dist/src/nile-floating-panel/position-manager.d.ts +0 -17
- package/dist/src/nile-floating-panel/position-manager.js +0 -72
- package/dist/src/nile-floating-panel/position-manager.js.map +0 -1
- package/dist/src/nile-floating-panel/style-manager.d.ts +0 -9
- package/dist/src/nile-floating-panel/style-manager.js +0 -44
- package/dist/src/nile-floating-panel/style-manager.js.map +0 -1
- package/dist/src/nile-floating-panel/types.d.ts +0 -11
- package/dist/src/nile-floating-panel/types.js +0 -2
- package/dist/src/nile-floating-panel/types.js.map +0 -1
- package/src/nile-floating-panel/anchor-manager.ts +0 -33
- package/src/nile-floating-panel/content-manager.ts +0 -54
- package/src/nile-floating-panel/event-manager.ts +0 -74
- package/src/nile-floating-panel/position-manager.ts +0 -102
- package/src/nile-floating-panel/style-manager.ts +0 -54
- package/src/nile-floating-panel/types.ts +0 -15
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": "1.6.
|
|
6
|
+
"version": "1.6.1",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"module": "dist/src/index.js",
|
|
@@ -116,7 +116,8 @@
|
|
|
116
116
|
"./nile-inline-sidebar": "./dist/src/nile-inline-sidebar/index.js",
|
|
117
117
|
"./nile-inline-sidebar-item": "./dist/src/nile-inline-sidebar-item/index.js",
|
|
118
118
|
"./nile-lite-tooltip": "./dist/src/nile-lite-tooltip/index.js",
|
|
119
|
-
"./nile-qr-code": "./dist/src/nile-qr-code/index.js"
|
|
119
|
+
"./nile-qr-code": "./dist/src/nile-qr-code/index.js",
|
|
120
|
+
"./nile-floating-panel": "./dist/src/nile-floating-panel/index.js"
|
|
120
121
|
},
|
|
121
122
|
"scripts": {
|
|
122
123
|
"analyze": "cem analyze --litelement",
|
|
@@ -221,4 +222,4 @@
|
|
|
221
222
|
"prettier --write"
|
|
222
223
|
]
|
|
223
224
|
}
|
|
224
|
-
}
|
|
225
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -75,7 +75,6 @@ export { NileTitle } from './nile-title';
|
|
|
75
75
|
export { NileSectionMessage } from './nile-section-message';
|
|
76
76
|
export { NileToolbar } from './nile-toolbar';
|
|
77
77
|
export { NileInlineEdit } from './nile-inline-edit';
|
|
78
|
-
export { NileFloatingPanel } from './nile-floating-panel';
|
|
79
78
|
export { NileTable } from './nile-table';
|
|
80
79
|
export { NileFilterChip } from './nile-filter-chip';
|
|
81
80
|
export {NilePagination } from './nile-pagination';
|
|
@@ -114,4 +113,5 @@ export { NileInlineSidebarItem } from './nile-inline-sidebar-item';
|
|
|
114
113
|
export { NileliteTooltip } from './nile-lite-tooltip';
|
|
115
114
|
export { NileSideBarPanel } from './nile-side-bar-panel';
|
|
116
115
|
export { NileDetail } from './nile-detail';
|
|
117
|
-
export { NileQrCode } from './nile-qr-code';
|
|
116
|
+
export { NileQrCode } from './nile-qr-code';
|
|
117
|
+
export { NileFloatingPanel } from './nile-floating-panel';
|
|
@@ -6,36 +6,59 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { css } from 'lit';
|
|
9
|
+
|
|
9
10
|
export const styles = css`
|
|
10
|
-
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
-webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));
|
|
13
|
-
-moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));
|
|
14
|
-
text-rendering: var(--nile-text-rendering, var(--ng-text-rendering));
|
|
11
|
+
nile-floating-panel {
|
|
15
12
|
display: inline-block;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.tippy-box[data-theme~='floating-panel'] {
|
|
16
|
+
background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
17
|
+
color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
|
|
18
|
+
border: solid 1px var(--nile-colors-dark-200, var(--ng-colors-border-secondary-alt));
|
|
19
|
+
border-radius: var(--nile-radius-sm, var(--ng-radius-md));
|
|
20
|
+
box-shadow: var(--nile-box-shadow-2, var(--ng-shadow-lg));
|
|
21
|
+
padding: 0;
|
|
22
|
+
font-size: var(--nile-type-scale-4, var(--ng-font-size-text-sm));
|
|
23
|
+
line-height: 1.4;
|
|
24
|
+
white-space: normal;
|
|
25
|
+
outline: 0;
|
|
26
|
+
transition-property: transform, visibility, opacity;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.tippy-box[data-theme~='floating-panel'][data-animation='fade'][data-state='hidden'] {
|
|
30
|
+
opacity: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.tippy-box[data-theme~='floating-panel'][data-inertia][data-state='visible'] {
|
|
34
|
+
transition-timing-function: cubic-bezier(0.54, 1.5, 0.38, 1.11);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.tippy-box[data-theme~='floating-panel'] > .tippy-content {
|
|
16
38
|
position: relative;
|
|
39
|
+
z-index: 1;
|
|
40
|
+
padding: 0;
|
|
17
41
|
}
|
|
18
42
|
|
|
19
|
-
|
|
20
|
-
|
|
43
|
+
.tippy-box[data-theme~='floating-panel'] > .tippy-svg-arrow {
|
|
44
|
+
fill: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
21
45
|
}
|
|
22
46
|
|
|
23
|
-
|
|
24
|
-
|
|
47
|
+
.tippy-box[data-theme~='floating-panel'] > .tippy-arrow {
|
|
48
|
+
color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
25
49
|
}
|
|
26
|
-
`;
|
|
27
50
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
z-index: 800;
|
|
33
|
-
background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
34
|
-
border: solid 1px var(--nile-colors-dark-200, var(--ng-colors-border-secondary-alt));
|
|
35
|
-
border-radius: var(--nile-radius-sm, var(--ng-radius-md));
|
|
36
|
-
box-shadow: var(--nile-box-shadow-2, var(--ng-shadow-lg));
|
|
37
|
-
padding: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
51
|
+
.nile-floating-panel__body {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
height: auto;
|
|
38
55
|
min-width: var(--nile-width-352px, var(--ng-width-80));
|
|
56
|
+
gap: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
57
|
+
padding: var(--nile-spacing-xl, var(--ng-spacing-xl));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.nile-floating-panel__title {
|
|
61
|
+
display: block;
|
|
39
62
|
color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
|
|
40
63
|
font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
|
|
41
64
|
font-size: var(--nile-type-scale-4, var(--ng-font-size-text-sm));
|
|
@@ -44,7 +67,112 @@ export const panelContainerStyles = css`
|
|
|
44
67
|
line-height: var(--nile-line-height-xsmall, var(--ng-line-height-text-sm));
|
|
45
68
|
letter-spacing: var(--nile-spacing-one-by-five-x, var(--ng-spacing-none));
|
|
46
69
|
}
|
|
70
|
+
|
|
71
|
+
.nile-floating-panel__title:empty {
|
|
72
|
+
display: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.nile-floating-panel__action {
|
|
76
|
+
align-self: end;
|
|
77
|
+
display: inline;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.nile-floating-panel__action:empty {
|
|
81
|
+
display: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='top'] > .tippy-svg-arrow { bottom: 0; }
|
|
85
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='top'] > .tippy-svg-arrow:after,
|
|
86
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='top'] > .tippy-svg-arrow > svg {
|
|
87
|
+
top: 16px;
|
|
88
|
+
transform: rotate(180deg);
|
|
89
|
+
}
|
|
90
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='bottom'] > .tippy-svg-arrow { top: 0; }
|
|
91
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='bottom'] > .tippy-svg-arrow > svg { bottom: 16px; }
|
|
92
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='left'] > .tippy-svg-arrow { right: 0; }
|
|
93
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='left'] > .tippy-svg-arrow:after,
|
|
94
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='left'] > .tippy-svg-arrow > svg {
|
|
95
|
+
transform: rotate(90deg);
|
|
96
|
+
top: calc(50% - 3px);
|
|
97
|
+
left: 11px;
|
|
98
|
+
}
|
|
99
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='right'] > .tippy-svg-arrow { left: 0; }
|
|
100
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='right'] > .tippy-svg-arrow:after,
|
|
101
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='right'] > .tippy-svg-arrow > svg {
|
|
102
|
+
transform: rotate(-90deg);
|
|
103
|
+
top: calc(50% - 3px);
|
|
104
|
+
right: 11px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.tippy-box[data-theme~='floating-panel'] > .tippy-svg-arrow {
|
|
108
|
+
width: 16px;
|
|
109
|
+
height: 16px;
|
|
110
|
+
text-align: initial;
|
|
111
|
+
position: absolute;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.tippy-box[data-theme~='floating-panel'] > .tippy-svg-arrow > svg {
|
|
115
|
+
position: absolute;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='top'] > .tippy-arrow {
|
|
119
|
+
bottom: 0;
|
|
120
|
+
}
|
|
121
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='top'] > .tippy-arrow:before {
|
|
122
|
+
bottom: -7px;
|
|
123
|
+
border-width: 8px 8px 0;
|
|
124
|
+
border-top-color: initial;
|
|
125
|
+
}
|
|
126
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='bottom'] > .tippy-arrow {
|
|
127
|
+
top: 0;
|
|
128
|
+
}
|
|
129
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='bottom'] > .tippy-arrow:before {
|
|
130
|
+
top: -7px;
|
|
131
|
+
border-width: 0 8px 8px;
|
|
132
|
+
border-bottom-color: initial;
|
|
133
|
+
}
|
|
134
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='left'] > .tippy-arrow {
|
|
135
|
+
right: 0;
|
|
136
|
+
}
|
|
137
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='left'] > .tippy-arrow:before {
|
|
138
|
+
right: -7px;
|
|
139
|
+
border-width: 8px 0 8px 8px;
|
|
140
|
+
border-left-color: initial;
|
|
141
|
+
}
|
|
142
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='right'] > .tippy-arrow {
|
|
143
|
+
left: 0;
|
|
144
|
+
}
|
|
145
|
+
.tippy-box[data-theme~='floating-panel'][data-placement^='right'] > .tippy-arrow:before {
|
|
146
|
+
left: -7px;
|
|
147
|
+
border-width: 8px 8px 8px 0;
|
|
148
|
+
border-right-color: initial;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.tippy-box[data-theme~='floating-panel'] > .tippy-arrow {
|
|
152
|
+
width: 16px;
|
|
153
|
+
height: 16px;
|
|
154
|
+
color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
|
|
155
|
+
}
|
|
156
|
+
.tippy-box[data-theme~='floating-panel'] > .tippy-arrow:before {
|
|
157
|
+
content: '';
|
|
158
|
+
position: absolute;
|
|
159
|
+
border-color: transparent;
|
|
160
|
+
border-style: solid;
|
|
161
|
+
}
|
|
47
162
|
`;
|
|
48
163
|
|
|
49
|
-
export
|
|
164
|
+
export function injectGlobalFloatingPanelStyles(): void {
|
|
165
|
+
if (typeof document === 'undefined') return;
|
|
166
|
+
|
|
167
|
+
const STYLE_ID = 'nile-floating-panel-styles';
|
|
168
|
+
if (document.getElementById(STYLE_ID)) return;
|
|
50
169
|
|
|
170
|
+
const style = document.createElement('style');
|
|
171
|
+
style.id = STYLE_ID;
|
|
172
|
+
style.textContent = styles.cssText;
|
|
173
|
+
document.head?.appendChild(style);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
injectGlobalFloatingPanelStyles();
|
|
177
|
+
|
|
178
|
+
export default [styles];
|