@aquera/nile-elements 1.2.8-beta-1.1 → 1.2.8-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 +5 -0
- package/demo/index.html +33 -93
- package/demo/nxtgen.css +0 -6
- package/demo/variables.css +0 -4
- package/dist/index.js +411 -699
- package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.esm.js +46 -234
- package/dist/nile-calendar/nile-calendar.esm.js +106 -220
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -1
- package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +32 -18
- package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -2
- package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -1
- package/dist/nile-virtual-select/nile-virtual-select.esm.js +3 -3
- package/dist/src/nile-calendar/nile-calendar.css.js +44 -232
- package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.d.ts +0 -15
- package/dist/src/nile-calendar/nile-calendar.js +101 -340
- package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +30 -16
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -1
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +1 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +12 -0
- package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +1 -1
- package/dist/src/nile-virtual-select/nile-virtual-select.js +19 -1
- package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -1
- package/dist/src/version.js +2 -2
- package/dist/src/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-calendar/nile-calendar.css.ts +44 -232
- package/src/nile-calendar/nile-calendar.ts +115 -369
- package/src/nile-rich-text-editor/nile-rich-text-editor.css.ts +30 -16
- package/src/nile-rich-text-editor/nile-rich-text-editor.ts +12 -0
- package/src/nile-virtual-select/nile-virtual-select.ts +26 -2
- package/vscode-html-custom-data.json +27 -47
package/README.md
CHANGED
|
@@ -79,6 +79,11 @@ To run a local development server that serves the basic demo located in `demo/in
|
|
|
79
79
|
|
|
80
80
|
In this section, you can find the updates for each release of `nile-elements`. It's a good practice to maintain detailed release notes to help users and developers understand what changes have been made from one version to another and how these changes might affect their projects.
|
|
81
81
|
|
|
82
|
+
#### Version 1.2.7
|
|
83
|
+
- Nile Popover: Portal feature added (UIF-1004)
|
|
84
|
+
- New Component: Nile Lite Tooltip (UIF-1002)
|
|
85
|
+
- Dependency Nile 1.1.0
|
|
86
|
+
|
|
82
87
|
#### Version 1.2.6
|
|
83
88
|
- Nile Virtual Select: Scroll Not going to Top while searching when Portal is true (UIF-1001).
|
|
84
89
|
|
package/demo/index.html
CHANGED
|
@@ -2,107 +2,47 @@
|
|
|
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="" id="stylesheet" />
|
|
6
|
-
<script>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
</script>
|
|
7
|
+
<script>
|
|
8
|
+
const params = new URLSearchParams(window.location.search);
|
|
9
|
+
const style = params.get('style') || 'nxtgen.css';
|
|
10
|
+
document.getElementById('stylesheet').href = style;
|
|
11
|
+
</script>
|
|
12
|
+
<link rel="stylesheet" href="index.css" />
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
<!-- <link rel="stylesheet" href="variables.css" id="stylesheet" /> -->
|
|
14
|
-
<!-- <link rel="stylesheet" href="index.css" /> -->
|
|
14
|
+
<style>
|
|
15
15
|
|
|
16
|
+
</style>
|
|
16
17
|
<script type="module" src="index.js"></script>
|
|
17
18
|
</head>
|
|
18
19
|
<body>
|
|
19
20
|
|
|
20
|
-
<style>
|
|
21
|
-
body {
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
gap: 2rem;
|
|
25
|
-
padding: 2rem;
|
|
26
|
-
}
|
|
27
|
-
.calendar-block {
|
|
28
|
-
border: 1px solid #ccc;
|
|
29
|
-
border-radius: 8px;
|
|
30
|
-
padding: 1rem;
|
|
31
|
-
}
|
|
32
|
-
pre {
|
|
33
|
-
background: #f7f7f7;
|
|
34
|
-
padding: 0.75rem;
|
|
35
|
-
border-radius: 4px;
|
|
36
|
-
max-height: 200px;
|
|
37
|
-
overflow-y: auto;
|
|
38
|
-
font-size: 0.9rem;
|
|
39
|
-
}
|
|
40
|
-
</style>
|
|
41
|
-
</head>
|
|
42
|
-
<body>
|
|
43
|
-
<div class="calendar-block">
|
|
44
|
-
<h3>Calendar 1 — Range + hideTypes</h3>
|
|
45
|
-
<nile-calendar id="cal1" range hideTypes showMonthDropdown showYearDropdown showManualInputs allowClear></nile-calendar>
|
|
46
|
-
<pre id="log1"></pre>
|
|
47
|
-
</div>
|
|
48
|
-
|
|
49
|
-
<div class="calendar-block">
|
|
50
|
-
<h3>Calendar 2 — Range (default types shown)</h3>
|
|
51
|
-
<nile-calendar id="cal2" range></nile-calendar>
|
|
52
|
-
<pre id="log2"></pre>
|
|
53
|
-
</div>
|
|
54
|
-
|
|
55
|
-
<div class="calendar-block">
|
|
56
|
-
<h3>Calendar 3 — Year Range (2010–2030)</h3>
|
|
57
|
-
<nile-calendar id="cal3" startYear="2010" endYear="2030" showMonthDropdown showYearDropdown></nile-calendar>
|
|
58
|
-
<pre id="log3"></pre>
|
|
59
|
-
</div>
|
|
60
|
-
|
|
61
|
-
<div class="calendar-block">
|
|
62
|
-
<h3>Calendar 4 — Range + allowClear</h3>
|
|
63
|
-
<nile-calendar id="cal4" allowclear range showMonthDropdown showYearDropdown></nile-calendar>
|
|
64
|
-
<pre id="log4"></pre>
|
|
65
|
-
</div>
|
|
66
|
-
|
|
67
|
-
<script type="module">
|
|
68
|
-
const calendars = [
|
|
69
|
-
{ id: 'cal1', log: 'log1' },
|
|
70
|
-
{ id: 'cal2', log: 'log2' },
|
|
71
|
-
{ id: 'cal3', log: 'log3' },
|
|
72
|
-
{ id: 'cal4', log: 'log4' },
|
|
73
|
-
];
|
|
74
|
-
|
|
75
|
-
const eventList = [
|
|
76
|
-
'nile-init',
|
|
77
|
-
'nile-destroy',
|
|
78
|
-
'nile-change',
|
|
79
|
-
'nile-changed',
|
|
80
|
-
'nile-clear',
|
|
81
|
-
'nile-type-change',
|
|
82
|
-
'nile-month-change',
|
|
83
|
-
'nile-year-change',
|
|
84
|
-
];
|
|
85
|
-
|
|
86
|
-
calendars.forEach(({ id, log }) => {
|
|
87
|
-
const cal = document.getElementById(id);
|
|
88
|
-
const logEl = document.getElementById(log);
|
|
89
|
-
|
|
90
|
-
const logEvent = (eventName, detail) => {
|
|
91
|
-
const time = new Date().toLocaleTimeString();
|
|
92
|
-
const message = `[${time}] ${eventName}: ${JSON.stringify(detail, null, 2)}\n`;
|
|
93
|
-
logEl.textContent = message + logEl.textContent;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
eventList.forEach(eventName => {
|
|
97
|
-
cal.addEventListener(eventName, e => {
|
|
98
|
-
logEvent(eventName, e.detail);
|
|
99
|
-
});
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
</script>
|
|
103
21
|
|
|
104
|
-
|
|
105
|
-
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
<!-- <nile-input
|
|
27
|
+
type="password"
|
|
28
|
+
canSavePassword>
|
|
29
|
+
</nile-input>
|
|
30
|
+
-->
|
|
31
|
+
|
|
32
|
+
<div style="width: 500px;">
|
|
33
|
+
<nile-rich-text-editor singlelineeditor>
|
|
34
|
+
|
|
35
|
+
<nile-rte-mentions>
|
|
36
|
+
<nile-rte-mentions-item
|
|
37
|
+
mentionsCharacter="@"
|
|
38
|
+
mentionsData='[
|
|
39
|
+
{ "key":"alice", "label":"Alice Smith" },
|
|
40
|
+
{ "key":"bob", "label":"Bob Jones" }
|
|
41
|
+
]'>
|
|
42
|
+
</nile-rte-mentions-item>
|
|
43
|
+
</nile-rte-mentions>
|
|
106
44
|
|
|
45
|
+
</nile-rich-text-editor>
|
|
46
|
+
</div>
|
|
107
47
|
</body>
|
|
108
48
|
</html>
|
package/demo/nxtgen.css
CHANGED
|
@@ -412,9 +412,6 @@
|
|
|
412
412
|
--ng-spacing-2-5: 10px;
|
|
413
413
|
--ng-spacing-3-5: 14px;
|
|
414
414
|
--ng-spacing-4-5: 18px;
|
|
415
|
-
--ng-spacing-312: 312px;
|
|
416
|
-
--ng-spacing-164: 164px;
|
|
417
|
-
--ng-spacing-108: 108px;
|
|
418
415
|
|
|
419
416
|
/* Typography tokens */
|
|
420
417
|
|
|
@@ -880,9 +877,6 @@
|
|
|
880
877
|
--ng-width-360: var(--ng-spacing-360);
|
|
881
878
|
--ng-width-400: var(--ng-spacing-400);
|
|
882
879
|
--ng-width-480: var(--ng-spacing-480);
|
|
883
|
-
--ng-width-312: var(--ng-spacing-312);
|
|
884
|
-
--ng-width-164: var(--ng-spacing-164);
|
|
885
|
-
--ng-width-108: var(--ng-spacing-108);
|
|
886
880
|
}
|
|
887
881
|
|
|
888
882
|
:root {
|
package/demo/variables.css
CHANGED
|
@@ -527,7 +527,6 @@
|
|
|
527
527
|
--nile-box-shadow-12: hsl(198.6 88.7% 48.4% / 40%);
|
|
528
528
|
--nile-box-shadow-13: 3px -20px 28px 0px rgba(119, 125, 130, 0.15);
|
|
529
529
|
--nile-box-shadow-14: 0px 14px 28px 0px rgba(119, 125, 130, 0.15);
|
|
530
|
-
--nile-box-shadow-15: 0 2px 4px 0 rgba(119, 125, 130, 0.15);
|
|
531
530
|
|
|
532
531
|
/* Border Radius */
|
|
533
532
|
|
|
@@ -630,9 +629,6 @@
|
|
|
630
629
|
--nile-width-535px: 535px;
|
|
631
630
|
--nile-width-352px: 352px;
|
|
632
631
|
--nile-width-none: none;
|
|
633
|
-
--nile-width-288px: 288px;
|
|
634
|
-
--nile-width-150px: 150px;
|
|
635
|
-
--nile-width-99px: 99px;
|
|
636
632
|
|
|
637
633
|
/* Height */
|
|
638
634
|
|