@edmicro/olkit 1.1.4 → 1.1.5
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/LICENSES/LICENSES/FLOWBITE-MIT.txt +21 -0
- package/LICENSES/LICENSES/MYNAUI-MIT.txt +21 -0
- package/LICENSES/LICENSES/SOLAR-CC-BY-4.0.txt +49 -0
- package/fesm2022/edmicro-olkit.mjs +23 -3
- package/fesm2022/edmicro-olkit.mjs.map +1 -1
- package/olkit.css +1 -1
- package/package.json +6 -2
- package/types/edmicro-olkit.d.ts +6 -2
- package/types/edmicro-olkit.d.ts.map +1 -1
- package/version.txt +2 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Bergside Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Praveen Juge
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Creative Commons Attribution 4.0 International License (CC BY 4.0)
|
|
2
|
+
|
|
3
|
+
Solar Icon Set by 480 Design
|
|
4
|
+
https://www.figma.com/@solar
|
|
5
|
+
https://github.com/480-Design/Solar-Icon-Set
|
|
6
|
+
|
|
7
|
+
Licensed under Creative Commons Attribution 4.0 International (CC BY 4.0)
|
|
8
|
+
https://creativecommons.org/licenses/by/4.0/
|
|
9
|
+
|
|
10
|
+
=======================================================================
|
|
11
|
+
|
|
12
|
+
You are free to:
|
|
13
|
+
|
|
14
|
+
• Share — copy and redistribute the material in any medium or format
|
|
15
|
+
• Adapt — remix, transform, and build upon the material
|
|
16
|
+
for any purpose, even commercially.
|
|
17
|
+
|
|
18
|
+
The licensor cannot revoke these freedoms as long as you follow the license terms.
|
|
19
|
+
|
|
20
|
+
=======================================================================
|
|
21
|
+
|
|
22
|
+
Under the following terms:
|
|
23
|
+
|
|
24
|
+
• Attribution — You must give appropriate credit, provide a link to the license,
|
|
25
|
+
and indicate if changes were made. You may do so in any reasonable manner,
|
|
26
|
+
but not in any way that suggests the licensor endorses you or your use.
|
|
27
|
+
|
|
28
|
+
• No additional restrictions — You may not apply legal terms or technological
|
|
29
|
+
measures that legally restrict others from doing anything the license permits.
|
|
30
|
+
|
|
31
|
+
=======================================================================
|
|
32
|
+
|
|
33
|
+
Notices:
|
|
34
|
+
|
|
35
|
+
You do not have to comply with the license for elements of the material
|
|
36
|
+
in the public domain or where your use is permitted by an applicable
|
|
37
|
+
exception or limitation.
|
|
38
|
+
|
|
39
|
+
No warranties are given. The license may not give you all of the permissions
|
|
40
|
+
necessary for your intended use. For example, other rights such as publicity,
|
|
41
|
+
privacy, or moral rights may limit how you use the material.
|
|
42
|
+
|
|
43
|
+
=======================================================================
|
|
44
|
+
|
|
45
|
+
Full Legal Code:
|
|
46
|
+
https://creativecommons.org/licenses/by/4.0/legalcode
|
|
47
|
+
|
|
48
|
+
Attribution for this project:
|
|
49
|
+
Solar Icons by 480 Design, licensed under CC BY 4.0
|
|
@@ -1945,7 +1945,23 @@ class OlTooltip {
|
|
|
1945
1945
|
* Computed tooltip classes based on theme
|
|
1946
1946
|
*/
|
|
1947
1947
|
tooltipClasses = computed(() => {
|
|
1948
|
-
|
|
1948
|
+
/*
|
|
1949
|
+
* KHÔNG `whitespace-nowrap` — nó mâu thuẫn với `max-w-xs` đứng ngay cạnh.
|
|
1950
|
+
*
|
|
1951
|
+
* Hai class này cùng lúc thì `nowrap` thắng: chữ không được phép xuống
|
|
1952
|
+
* dòng nên `max-width` chỉ bó cái HỘP lại, còn chữ cứ chạy thẳng ra ngoài.
|
|
1953
|
+
* Đo /tooltip ngày 2026-09-25 với nội dung 160 ký tự: hộp đúng 320px
|
|
1954
|
+
* nhưng `scrollWidth` lên **1070px** — chữ tràn khỏi nền tối ra cả hai
|
|
1955
|
+
* phía. Chụp ảnh thấy rõ.
|
|
1956
|
+
*
|
|
1957
|
+
* `break-words` (`overflow-wrap: break-word`) lo nốt từ đơn dài hơn 320px
|
|
1958
|
+
* — ví dụ một URL hay mã lớp không có dấu cách: không có nó thì từ đó vẫn
|
|
1959
|
+
* tràn dù đã bỏ `nowrap`.
|
|
1960
|
+
*
|
|
1961
|
+
* Tooltip ngắn KHÔNG bị ảnh hưởng: `max-w-xs` là giới hạn TRÊN, hộp vẫn
|
|
1962
|
+
* ôm sát nội dung khi chữ ngắn hơn.
|
|
1963
|
+
*/
|
|
1964
|
+
const baseClasses = 'px-3 py-2 rounded-lg text-sm font-medium break-words z-tooltip max-w-xs';
|
|
1949
1965
|
// Figma `ol-tooltip` chỉ định nghĩa nền tối; hai theme `light` và `brand`
|
|
1950
1966
|
// là mở rộng NGOÀI Figma nên giữ bậc số cho tới khi thiết kế định nghĩa.
|
|
1951
1967
|
//
|
|
@@ -5664,9 +5680,13 @@ class OlDatepickerPopup {
|
|
|
5664
5680
|
/**
|
|
5665
5681
|
* Trần chiều cao + cuộn CHỈ cho popup nổi.
|
|
5666
5682
|
*
|
|
5667
|
-
* Dùng `[class]` trả chuỗi chứ KHÔNG `[class.max-h-…]` với giá trị tuỳ ý: tên
|
|
5668
|
-
* chứa dấu chấm và ngoặc vuông nên Angular cắt hỏng tên khi dùng class
|
|
5683
|
+
* Dùng `[class]` trả chuỗi chứ KHÔNG `[class.max-h-…]` với giá trị tuỳ ý: tên
|
|
5684
|
+
* class chứa dấu chấm và ngoặc vuông nên Angular cắt hỏng tên khi dùng class
|
|
5669
5685
|
* binding từng cái (`[class.h-1.5]` ra `h-1`).
|
|
5686
|
+
*
|
|
5687
|
+
* Dấu `…` ở trên là cố ý, không phải ba chấm ASCII: Tailwind quét file thô,
|
|
5688
|
+
* không phân biệt chú thích với mã, nên tên class đầy đủ viết trong chú thích
|
|
5689
|
+
* cũng bị sinh thành luật CSS và làm build cảnh báo `Unexpected token Delim`.
|
|
5670
5690
|
*/
|
|
5671
5691
|
wrapperClasses = computed(() => this.inline() ? '' : 'max-h-[var(--ol-dp-max-height,85svh)] overflow-y-auto overscroll-contain', /* @ts-ignore */
|
|
5672
5692
|
...(ngDevMode ? [{ debugName: "wrapperClasses" }] : /* istanbul ignore next */ []));
|