@operato/popup 1.17.2 → 2.0.0-alpha.100
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/CHANGELOG.md +200 -8
- package/demo/index.html +25 -14
- package/demo/ox-popup-list.html +14 -3
- package/demo/ox-popup-menu.html +25 -14
- package/dist/src/ox-floating-overlay.d.ts +2 -2
- package/dist/src/ox-floating-overlay.js +5 -7
- package/dist/src/ox-floating-overlay.js.map +1 -1
- package/dist/src/ox-popup-list.d.ts +2 -2
- package/dist/src/ox-popup-list.js +12 -10
- package/dist/src/ox-popup-list.js.map +1 -1
- package/dist/src/ox-popup-menu.d.ts +1 -1
- package/dist/src/ox-popup-menuitem.d.ts +1 -1
- package/dist/src/ox-popup-menuitem.js +2 -2
- package/dist/src/ox-popup-menuitem.js.map +1 -1
- package/dist/src/ox-popup.d.ts +4 -3
- package/dist/src/ox-popup.js +9 -5
- package/dist/src/ox-popup.js.map +1 -1
- package/dist/src/ox-prompt.d.ts +3 -2
- package/dist/src/ox-prompt.js +39 -6
- package/dist/src/ox-prompt.js.map +1 -1
- package/dist/stories/open-popup.stories.js +27 -18
- package/dist/stories/open-popup.stories.js.map +1 -1
- package/dist/stories/ox-popup-list.stories.d.ts +1 -1
- package/dist/stories/ox-popup-list.stories.js +15 -3
- package/dist/stories/ox-popup-list.stories.js.map +1 -1
- package/dist/stories/ox-popup-menu.stories.d.ts +1 -1
- package/dist/stories/ox-popup-menu.stories.js +37 -25
- package/dist/stories/ox-popup-menu.stories.js.map +1 -1
- package/dist/stories/ox-prompt-icon.stories.d.ts +25 -0
- package/dist/stories/ox-prompt-icon.stories.js +59 -0
- package/dist/stories/ox-prompt-icon.stories.js.map +1 -0
- package/dist/stories/ox-prompt-normal.stories.js +26 -13
- package/dist/stories/ox-prompt-normal.stories.js.map +1 -1
- package/dist/stories/ox-prompt.stories.js +26 -13
- package/dist/stories/ox-prompt.stories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +16 -16
- package/src/ox-floating-overlay.ts +5 -7
- package/src/ox-popup-list.ts +12 -10
- package/src/ox-popup-menuitem.ts +2 -2
- package/src/ox-popup.ts +11 -6
- package/src/ox-prompt.ts +39 -6
- package/stories/open-popup.stories.ts +28 -20
- package/stories/ox-popup-list.stories.ts +15 -3
- package/stories/ox-popup-menu.stories.ts +38 -27
- package/stories/ox-prompt-icon.stories.ts +76 -0
- package/stories/ox-prompt-normal.stories.ts +29 -17
- package/stories/ox-prompt.stories.ts +29 -17
- package/themes/input-theme.css +7 -7
- package/themes/material-theme.css +88 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,39 +3,231 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
## [2.0.0-alpha.100](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.99...v2.0.0-alpha.100) (2024-04-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @operato/popup
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [2.0.0-alpha.99](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.98...v2.0.0-alpha.99) (2024-04-21)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @operato/popup
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [2.0.0-alpha.98](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.97...v2.0.0-alpha.98) (2024-04-21)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @operato/popup
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [2.0.0-alpha.94](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.93...v2.0.0-alpha.94) (2024-04-20)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### :bug: Bug Fix
|
|
34
|
+
|
|
35
|
+
* support 'checkbox' type in ox-filters-form-base ([1ffe0e5](https://github.com/hatiolab/operato/commit/1ffe0e5fc16480240c8c5accf57d247bb3299867))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## [2.0.0-alpha.92](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.91...v2.0.0-alpha.92) (2024-04-19)
|
|
40
|
+
|
|
41
|
+
**Note:** Version bump only for package @operato/popup
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## [2.0.0-alpha.90](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.89...v2.0.0-alpha.90) (2024-04-18)
|
|
48
|
+
|
|
49
|
+
**Note:** Version bump only for package @operato/popup
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## [2.0.0-alpha.89](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.88...v2.0.0-alpha.89) (2024-04-18)
|
|
56
|
+
|
|
57
|
+
**Note:** Version bump only for package @operato/popup
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
## [2.0.0-alpha.87](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.86...v2.0.0-alpha.87) (2024-04-17)
|
|
64
|
+
|
|
65
|
+
**Note:** Version bump only for package @operato/popup
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## [2.0.0-alpha.85](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.84...v2.0.0-alpha.85) (2024-04-16)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### :bug: Bug Fix
|
|
75
|
+
|
|
76
|
+
* tweak filters-form style ([6fb293d](https://github.com/hatiolab/operato/commit/6fb293d7d34ea7b01b3011264f554158beb62621))
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## [2.0.0-alpha.82](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.81...v2.0.0-alpha.82) (2024-04-15)
|
|
81
|
+
|
|
82
|
+
**Note:** Version bump only for package @operato/popup
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## [2.0.0-alpha.81](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.80...v2.0.0-alpha.81) (2024-04-15)
|
|
89
|
+
|
|
90
|
+
**Note:** Version bump only for package @operato/popup
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
## [2.0.0-alpha.80](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.79...v2.0.0-alpha.80) (2024-04-15)
|
|
97
|
+
|
|
98
|
+
**Note:** Version bump only for package @operato/popup
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
## [2.0.0-alpha.68](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.67...v2.0.0-alpha.68) (2024-04-13)
|
|
7
105
|
|
|
8
106
|
|
|
9
107
|
### :bug: Bug Fix
|
|
10
108
|
|
|
11
|
-
*
|
|
109
|
+
* mwc=>md for context ([2bc13f2](https://github.com/hatiolab/operato/commit/2bc13f285f257782f73e5d7b5d1ddd197df85393))
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
## [2.0.0-alpha.62](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.61...v2.0.0-alpha.62) (2024-04-12)
|
|
114
|
+
|
|
115
|
+
**Note:** Version bump only for package @operato/popup
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
12
119
|
|
|
13
120
|
|
|
121
|
+
## [2.0.0-alpha.57](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.56...v2.0.0-alpha.57) (2024-04-07)
|
|
122
|
+
|
|
123
|
+
**Note:** Version bump only for package @operato/popup
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
**Note:** Version bump only for package @operato/popup
|
|
14
132
|
|
|
15
|
-
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
## [2.0.0-alpha.52](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.51...v2.0.0-alpha.52) (2024-03-29)
|
|
16
138
|
|
|
17
139
|
|
|
18
140
|
### :bug: Bug Fix
|
|
19
141
|
|
|
20
|
-
*
|
|
142
|
+
* custom-alert in @operato/shell ([e628af8](https://github.com/hatiolab/operato/commit/e628af8d923de49960bfbcd04452b428105c0bc8))
|
|
143
|
+
* renovation CustomAlert ([757f04f](https://github.com/hatiolab/operato/commit/757f04f44bdb50e087ecacdbf217f3d3b20e922c))
|
|
21
144
|
|
|
22
145
|
|
|
23
146
|
|
|
24
|
-
|
|
147
|
+
## [2.0.0-alpha.51](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.50...v2.0.0-alpha.51) (2024-03-29)
|
|
25
148
|
|
|
26
149
|
|
|
27
150
|
### :bug: Bug Fix
|
|
28
151
|
|
|
29
|
-
*
|
|
152
|
+
* upgrade lit ([e661c33](https://github.com/hatiolab/operato/commit/e661c333d2bb97f784b5ac2c0e365714ee5e80ff))
|
|
30
153
|
|
|
31
154
|
|
|
32
155
|
|
|
33
|
-
|
|
156
|
+
## [2.0.0-alpha.48](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.47...v2.0.0-alpha.48) (2024-03-28)
|
|
34
157
|
|
|
35
158
|
|
|
36
159
|
### :bug: Bug Fix
|
|
37
160
|
|
|
38
|
-
*
|
|
161
|
+
* 폼 select가 왼쪽으로 가려질때 점점 왼쪽으로 가는 현상 수정 ([281bf40](https://github.com/hatiolab/operato/commit/281bf40fc1d37c35d837ee18d4489ed9da5982c5))
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
## [2.0.0-alpha.47](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.46...v2.0.0-alpha.47) (2024-03-27)
|
|
166
|
+
|
|
167
|
+
**Note:** Version bump only for package @operato/popup
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
## [2.0.0-alpha.35](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.34...v2.0.0-alpha.35) (2024-03-13)
|
|
174
|
+
|
|
175
|
+
**Note:** Version bump only for package @operato/popup
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
## [2.0.0-alpha.28](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.27...v2.0.0-alpha.28) (2024-02-20)
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
### :bug: Bug Fix
|
|
185
|
+
|
|
186
|
+
* upgrade devDependencies for webcomponents ([1489b8b](https://github.com/hatiolab/operato/commit/1489b8b790d9bcee779a070a630697f25c01728f))
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
## [2.0.0-alpha.9](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.8...v2.0.0-alpha.9) (2024-01-20)
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
### :bug: Bug Fix
|
|
194
|
+
|
|
195
|
+
* use zbar-wasm for barcode scan ([41f632e](https://github.com/hatiolab/operato/commit/41f632e1e395e17364713e1ecb8f878615fc91ca))
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
## [2.0.0-alpha.8](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.7...v2.0.0-alpha.8) (2024-01-20)
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
### :bug: Bug Fix
|
|
203
|
+
|
|
204
|
+
* comment for libraries ([bdf20d0](https://github.com/hatiolab/operato/commit/bdf20d057819187106b4a9e37d25c2c1f7febb39))
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
## [2.0.0-alpha.4](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.3...v2.0.0-alpha.4) (2024-01-15)
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
### :bug: Bug Fix
|
|
212
|
+
|
|
213
|
+
* up z-index for ox-float-overlay ([57ff5ce](https://github.com/hatiolab/operato/commit/57ff5ceb0fd7dccbe5745e99a63f8cbba4a23ace))
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
## [2.0.0-alpha.2](https://github.com/hatiolab/operato/compare/v2.0.0-alpha.1...v2.0.0-alpha.2) (2024-01-09)
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
### :bug: Bug Fix
|
|
221
|
+
|
|
222
|
+
* typo event name 'context' => 'contextmenu' ([dcb6afa](https://github.com/hatiolab/operato/commit/dcb6afaafbfa9157b90b62a2f394ed71dcca3810))
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
## [2.0.0-alpha.0](https://github.com/hatiolab/operato/compare/v1.13.1...v2.0.0-alpha.0) (2024-01-05)
|
|
227
|
+
|
|
228
|
+
**Note:** Version bump only for package @operato/popup
|
|
229
|
+
|
|
230
|
+
|
|
39
231
|
|
|
40
232
|
|
|
41
233
|
|
package/demo/index.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<html lang="en-GB">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
@@ -16,7 +16,18 @@
|
|
|
16
16
|
}
|
|
17
17
|
</style>
|
|
18
18
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
|
|
19
|
-
<link
|
|
19
|
+
<link
|
|
20
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
21
|
+
rel="stylesheet"
|
|
22
|
+
/>
|
|
23
|
+
<link
|
|
24
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
|
25
|
+
rel="stylesheet"
|
|
26
|
+
/>
|
|
27
|
+
<link
|
|
28
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
|
29
|
+
rel="stylesheet"
|
|
30
|
+
/>
|
|
20
31
|
</head>
|
|
21
32
|
<body>
|
|
22
33
|
<div id="demo"></div>
|
|
@@ -25,7 +36,7 @@
|
|
|
25
36
|
import { html, render } from 'lit'
|
|
26
37
|
import '../dist/src/ox-popup-menu.js'
|
|
27
38
|
import '../dist/src/ox-popup-menuitem.js'
|
|
28
|
-
import '@material/
|
|
39
|
+
import '@material/web/icon/icon.js'
|
|
29
40
|
import '@operato/input/ox-checkbox.js'
|
|
30
41
|
|
|
31
42
|
import { OxPopupMenu } from '../dist/src/ox-popup-menu.js'
|
|
@@ -41,11 +52,11 @@
|
|
|
41
52
|
console.log('first level article selected')
|
|
42
53
|
}}
|
|
43
54
|
>
|
|
44
|
-
<
|
|
55
|
+
<md-icon slot="icon">article</md-icon>
|
|
45
56
|
</ox-popup-menuitem>
|
|
46
57
|
|
|
47
58
|
<ox-popup-menuitem label="home">
|
|
48
|
-
<
|
|
59
|
+
<md-icon slot="icon">home</md-icon>
|
|
49
60
|
</ox-popup-menuitem>
|
|
50
61
|
|
|
51
62
|
<ox-popup-menuitem label="empty"> </ox-popup-menuitem>
|
|
@@ -53,16 +64,16 @@
|
|
|
53
64
|
<ox-popup-menuitem
|
|
54
65
|
label="click me to toggle"
|
|
55
66
|
@selected=${function (e) {
|
|
56
|
-
const icon = this.querySelector('
|
|
67
|
+
const icon = this.querySelector('md-icon')
|
|
57
68
|
icon.innerHTML = icon.innerHTML == 'check' ? '' : 'check'
|
|
58
69
|
}}
|
|
59
70
|
alive-on-select
|
|
60
71
|
>
|
|
61
|
-
<
|
|
72
|
+
<md-icon slot="icon" style="width: 20px;height: 20px;"></md-icon>
|
|
62
73
|
</ox-popup-menuitem>
|
|
63
74
|
|
|
64
75
|
<ox-popup-menuitem label="verified" @selected=${e => console.log('selected verified')}>
|
|
65
|
-
<
|
|
76
|
+
<md-icon slot="icon">verified</md-icon>
|
|
66
77
|
<ox-popup-menu>
|
|
67
78
|
<ox-popup-menuitem
|
|
68
79
|
label="article"
|
|
@@ -71,26 +82,26 @@
|
|
|
71
82
|
}}
|
|
72
83
|
alive-on-select
|
|
73
84
|
>
|
|
74
|
-
<
|
|
85
|
+
<md-icon slot="icon">article</md-icon>
|
|
75
86
|
</ox-popup-menuitem>
|
|
76
87
|
|
|
77
88
|
<ox-popup-menuitem label="home">
|
|
78
|
-
<
|
|
89
|
+
<md-icon slot="icon">home</md-icon>
|
|
79
90
|
</ox-popup-menuitem>
|
|
80
91
|
|
|
81
92
|
<ox-popup-menuitem label="verified">
|
|
82
|
-
<
|
|
93
|
+
<md-icon slot="icon">verified</md-icon>
|
|
83
94
|
<ox-popup-menu>
|
|
84
95
|
<ox-popup-menuitem label="article">
|
|
85
|
-
<
|
|
96
|
+
<md-icon slot="icon">article</md-icon>
|
|
86
97
|
</ox-popup-menuitem>
|
|
87
98
|
|
|
88
99
|
<ox-popup-menuitem label="home">
|
|
89
|
-
<
|
|
100
|
+
<md-icon slot="icon">home</md-icon>
|
|
90
101
|
</ox-popup-menuitem>
|
|
91
102
|
|
|
92
103
|
<ox-popup-menuitem label="verified">
|
|
93
|
-
<
|
|
104
|
+
<md-icon slot="icon">verified</md-icon>
|
|
94
105
|
</ox-popup-menuitem>
|
|
95
106
|
|
|
96
107
|
<ox-popup-menuitem label="checkbox">
|
package/demo/ox-popup-list.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<html lang="en-GB">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
@@ -26,7 +26,18 @@
|
|
|
26
26
|
}
|
|
27
27
|
</style>
|
|
28
28
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
|
|
29
|
-
<link
|
|
29
|
+
<link
|
|
30
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
31
|
+
rel="stylesheet"
|
|
32
|
+
/>
|
|
33
|
+
<link
|
|
34
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
|
35
|
+
rel="stylesheet"
|
|
36
|
+
/>
|
|
37
|
+
<link
|
|
38
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
|
39
|
+
rel="stylesheet"
|
|
40
|
+
/>
|
|
30
41
|
</head>
|
|
31
42
|
<body>
|
|
32
43
|
<div id="demo-container">
|
|
@@ -37,7 +48,7 @@
|
|
|
37
48
|
<script type="module">
|
|
38
49
|
import { html, render } from 'lit'
|
|
39
50
|
import '../dist/src/ox-popup-list.js'
|
|
40
|
-
import '@material/
|
|
51
|
+
import '@material/web/icon/icon.js'
|
|
41
52
|
import '@operato/input/ox-checkbox.js'
|
|
42
53
|
|
|
43
54
|
import { OxPopupList } from '../dist/src/ox-popup-list.js'
|
package/demo/ox-popup-menu.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<html lang="en-GB">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
@@ -16,7 +16,18 @@
|
|
|
16
16
|
}
|
|
17
17
|
</style>
|
|
18
18
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
|
|
19
|
-
<link
|
|
19
|
+
<link
|
|
20
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1"
|
|
21
|
+
rel="stylesheet"
|
|
22
|
+
/>
|
|
23
|
+
<link
|
|
24
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL@20..48,100..700,0..1"
|
|
25
|
+
rel="stylesheet"
|
|
26
|
+
/>
|
|
27
|
+
<link
|
|
28
|
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Sharp:opsz,wght,FILL@20..48,100..700,0..1"
|
|
29
|
+
rel="stylesheet"
|
|
30
|
+
/>
|
|
20
31
|
</head>
|
|
21
32
|
<body>
|
|
22
33
|
<div id="demo"></div>
|
|
@@ -25,7 +36,7 @@
|
|
|
25
36
|
import { html, render } from 'lit'
|
|
26
37
|
import '../dist/src/ox-popup-menu.js'
|
|
27
38
|
import '../dist/src/ox-popup-menuitem.js'
|
|
28
|
-
import '@material/
|
|
39
|
+
import '@material/web/icon/icon.js'
|
|
29
40
|
import '@operato/input/ox-checkbox.js'
|
|
30
41
|
|
|
31
42
|
import { OxPopupMenu } from '../dist/src/ox-popup-menu.js'
|
|
@@ -41,11 +52,11 @@
|
|
|
41
52
|
console.log('first level article selected')
|
|
42
53
|
}}
|
|
43
54
|
>
|
|
44
|
-
<
|
|
55
|
+
<md-icon slot="icon">article</md-icon>
|
|
45
56
|
</ox-popup-menuitem>
|
|
46
57
|
|
|
47
58
|
<ox-popup-menuitem label="home">
|
|
48
|
-
<
|
|
59
|
+
<md-icon slot="icon">home</md-icon>
|
|
49
60
|
</ox-popup-menuitem>
|
|
50
61
|
|
|
51
62
|
<ox-popup-menuitem label="empty"> </ox-popup-menuitem>
|
|
@@ -53,16 +64,16 @@
|
|
|
53
64
|
<ox-popup-menuitem
|
|
54
65
|
label="click me to toggle"
|
|
55
66
|
@selected=${function (e) {
|
|
56
|
-
const icon = this.querySelector('
|
|
67
|
+
const icon = this.querySelector('md-icon')
|
|
57
68
|
icon.innerHTML = icon.innerHTML == 'check' ? '' : 'check'
|
|
58
69
|
}}
|
|
59
70
|
alive-on-select
|
|
60
71
|
>
|
|
61
|
-
<
|
|
72
|
+
<md-icon slot="icon" style="width: 20px;height: 20px;"></md-icon>
|
|
62
73
|
</ox-popup-menuitem>
|
|
63
74
|
|
|
64
75
|
<ox-popup-menuitem label="verified" @selected=${e => console.log('selected verified')}>
|
|
65
|
-
<
|
|
76
|
+
<md-icon slot="icon">verified</md-icon>
|
|
66
77
|
<ox-popup-menu>
|
|
67
78
|
<ox-popup-menuitem
|
|
68
79
|
label="article"
|
|
@@ -71,26 +82,26 @@
|
|
|
71
82
|
}}
|
|
72
83
|
alive-on-select
|
|
73
84
|
>
|
|
74
|
-
<
|
|
85
|
+
<md-icon slot="icon">article</md-icon>
|
|
75
86
|
</ox-popup-menuitem>
|
|
76
87
|
|
|
77
88
|
<ox-popup-menuitem label="home">
|
|
78
|
-
<
|
|
89
|
+
<md-icon slot="icon">home</md-icon>
|
|
79
90
|
</ox-popup-menuitem>
|
|
80
91
|
|
|
81
92
|
<ox-popup-menuitem label="verified">
|
|
82
|
-
<
|
|
93
|
+
<md-icon slot="icon">verified</md-icon>
|
|
83
94
|
<ox-popup-menu>
|
|
84
95
|
<ox-popup-menuitem label="article">
|
|
85
|
-
<
|
|
96
|
+
<md-icon slot="icon">article</md-icon>
|
|
86
97
|
</ox-popup-menuitem>
|
|
87
98
|
|
|
88
99
|
<ox-popup-menuitem label="home">
|
|
89
|
-
<
|
|
100
|
+
<md-icon slot="icon">home</md-icon>
|
|
90
101
|
</ox-popup-menuitem>
|
|
91
102
|
|
|
92
103
|
<ox-popup-menuitem label="verified">
|
|
93
|
-
<
|
|
104
|
+
<md-icon slot="icon">verified</md-icon>
|
|
94
105
|
</ox-popup-menuitem>
|
|
95
106
|
|
|
96
107
|
<ox-popup-menuitem label="checkbox">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import '@material/
|
|
1
|
+
import '@material/web/icon/icon.js';
|
|
2
2
|
import { LitElement, PropertyValues } from 'lit';
|
|
3
3
|
/**
|
|
4
4
|
* Custom element for creating floating overlays.
|
|
@@ -88,7 +88,7 @@ export declare class OxFloatingOverlay extends LitElement {
|
|
|
88
88
|
private dragMoveHandler;
|
|
89
89
|
overlayed: HTMLDivElement;
|
|
90
90
|
content: HTMLDivElement;
|
|
91
|
-
render(): import("lit").TemplateResult<1>;
|
|
91
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
92
92
|
updated(changes: PropertyValues<this>): void;
|
|
93
93
|
firstUpdated(): void;
|
|
94
94
|
connectedCallback(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import '@material/
|
|
2
|
+
import '@material/web/icon/icon.js';
|
|
3
3
|
import { css, html, LitElement } from 'lit';
|
|
4
4
|
import { customElement, property, query } from 'lit/decorators.js';
|
|
5
5
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
@@ -107,8 +107,8 @@ let OxFloatingOverlay = class OxFloatingOverlay extends LitElement {
|
|
|
107
107
|
@touchstart=${this.onDragStart.bind(this)}
|
|
108
108
|
draggable="false"
|
|
109
109
|
>
|
|
110
|
-
<
|
|
111
|
-
${this.movable ? html `<
|
|
110
|
+
<md-icon @click=${(e) => this.onClose(e)} ?closable=${this.closable} historyback>arrow_back</md-icon>
|
|
111
|
+
${this.movable ? html `<md-icon>drag_indicator</md-icon>` : html ``}
|
|
112
112
|
<slot name="header">
|
|
113
113
|
${this.title || this.closable
|
|
114
114
|
? html `
|
|
@@ -134,9 +134,7 @@ let OxFloatingOverlay = class OxFloatingOverlay extends LitElement {
|
|
|
134
134
|
: html ``}
|
|
135
135
|
${this.help && searchable ? html `<ox-help-icon .topic=${this.help}></ox-help-icon>` : html ``}
|
|
136
136
|
${filterable
|
|
137
|
-
? html `<
|
|
138
|
-
>tune</mwc-icon
|
|
139
|
-
>`
|
|
137
|
+
? html `<md-icon @click=${(e) => filterHandler(this.firstElementChild)}>tune</md-icon>`
|
|
140
138
|
: html ``}
|
|
141
139
|
</div>
|
|
142
140
|
`
|
|
@@ -145,7 +143,7 @@ let OxFloatingOverlay = class OxFloatingOverlay extends LitElement {
|
|
|
145
143
|
? html `<ox-help-icon .topic=${this.help}></ox-help-icon>`
|
|
146
144
|
: html ``}
|
|
147
145
|
</slot>
|
|
148
|
-
<
|
|
146
|
+
<md-icon @click=${(e) => this.onClose(e)} ?closable=${this.closable} close>close</md-icon>
|
|
149
147
|
</div>
|
|
150
148
|
|
|
151
149
|
<div content>
|