@aquera/nile-elements 1.2.6-beta-1.0 → 1.2.6-beta-1.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/demo/index.html CHANGED
@@ -2,65 +2,44 @@
2
2
  <html lang="en-GB">
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
+ <!-- <link rel="stylesheet" href="nxtgen.css" id="stylesheet" /> -->
5
6
  <link rel="stylesheet" href="variables.css" id="stylesheet" />
6
7
  <link rel="stylesheet" href="index.css" />
7
- <script type="module" src="index.js"></script>
8
- </head>
9
- <body style="height: 9000px;"> <!-- make page scrollable -->
10
8
 
9
+ <style>
11
10
 
12
- <!-- Tall content for scroll test -->
13
-
14
- <nile-select
15
- noWidthSync
16
- multiple
17
- placeholder="Please Select"
18
- searchEnabled="true">
11
+ </style>
12
+ <script type="module" src="index.js"></script>
13
+ </head>
14
+ <body>
19
15
 
20
- <nile-icon slot="custom-select" name="chevron-down">Cli</nile-icon>
21
- <nile-option value="1">Option 1</nile-option>
22
- <nile-option value="2">Option 2</nile-option>
23
- <nile-option value="3">Option 3</nile-option>
24
- <nile-option value="4">Option 4</nile-option>
25
- <nile-option value="5">Option 5</nile-option>
26
- <nile-option value="6">Option 6</nile-option>
27
- <nile-option value="7">Option 7</nile-option>
28
- <nile-option value="8">Option 8</nile-option>
29
- <nile-option value="9">Option 9</nile-option>
30
- </nile-select>
31
16
 
32
- <nile-select placeholder="Select item">
33
- <nile-option value="a">Alpha</nile-option>
34
- <nile-option value="b">Beta</nile-option>
35
- </nile-select>
17
+
36
18
 
37
- <nile-select placeholder="Select item">
38
- <nile-icon slot="trigger" name="filter"></nile-icon>
39
- <nile-option value="1">One</nile-option>
40
- <nile-option value="2">Two</nile-option>
41
- </nile-select>
42
-
19
+
43
20
 
44
- <div style="height: 400px; background: linear-gradient(white, lightgray); padding: 8px;">
45
- <p>Scrollable area content</p>
46
- <p>Keep scrolling down...</p>
47
- <p>Keep scrolling down...</p>
48
- <p>Keep scrolling down...</p>
49
- <p>Keep scrolling down...</p>
50
- </div>
21
+ <!-- <nile-input
22
+ type="password"
23
+ canSavePassword>
24
+ </nile-input>
25
+ -->
26
+
51
27
 
28
+ <nile-select class="virtual-scroll-string" placeholder="Please Select" multiple searchEnabled="true" enableVirtualScroll="true" portal >
29
+ </nile-select>
52
30
 
53
- </div>
54
-
55
- <script>
56
- const optionsString = Array.from({ length: 100000 }, (_, i) => `Option ${i + 1}`);
57
- const basicString = document.querySelector('nile-virtual-select.virtual-scroll-string');
58
- basicString.data = optionsString;
31
+ <script>
32
+ const optionsString = Array.from({ length: 4}, (_, i) => `Option ${i + 1}`);
33
+ const basicString = document.querySelector('nile-select.virtual-scroll-string');
34
+ basicString.data = optionsString;
35
+ document.addEventListener('nile-search', (event) => {
36
+ console.log(event.detail);
37
+ setTimeout(() => {
38
+
39
+ console.log(basicString);
40
+ }, 100);
41
+ });
42
+ </script>
59
43
 
60
- document.querySelector('nile-virtual-select.virtual-scroll-string').addEventListener('nile-visibility-change', (event) => {
61
- console.log('nile-visibility-change', event);
62
- });
63
- </script>
64
-
65
44
  </body>
66
- </html>
45
+ </html>