funda-ui 1.0.272
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/BackToTop/index.css +34 -0
- package/BackToTop/index.d.ts +11 -0
- package/BackToTop/index.js +458 -0
- package/CascadingSelect/index.css +159 -0
- package/CascadingSelect/index.d.ts +56 -0
- package/CascadingSelect/index.js +958 -0
- package/CascadingSelectE2E/index.css +159 -0
- package/CascadingSelectE2E/index.d.ts +60 -0
- package/CascadingSelectE2E/index.js +1126 -0
- package/Checkbox/index.d.ts +30 -0
- package/Checkbox/index.js +226 -0
- package/ColorPicker/index.css +38 -0
- package/ColorPicker/index.d.ts +27 -0
- package/ColorPicker/index.js +246 -0
- package/DigitalClock/index.d.ts +7 -0
- package/DigitalClock/index.js +208 -0
- package/DropdownMenu/index.css +127 -0
- package/DropdownMenu/index.d.ts +37 -0
- package/DropdownMenu/index.js +237 -0
- package/DynamicFields/index.d.ts +26 -0
- package/DynamicFields/index.js +412 -0
- package/File/index.d.ts +36 -0
- package/File/index.js +473 -0
- package/Input/index.d.ts +42 -0
- package/Input/index.js +286 -0
- package/LiveSearch/index.d.ts +37 -0
- package/LiveSearch/index.js +1195 -0
- package/ModalDialog/index.d.ts +60 -0
- package/ModalDialog/index.js +725 -0
- package/ModeSwitch/index.d.ts +17 -0
- package/ModeSwitch/index.js +202 -0
- package/MultiFuncSelect/index.css +178 -0
- package/MultiFuncSelect/index.d.ts +67 -0
- package/MultiFuncSelect/index.js +1826 -0
- package/MultilevelDropdownMenu/index.css +35 -0
- package/MultilevelDropdownMenu/index.d.ts +25 -0
- package/MultilevelDropdownMenu/index.js +464 -0
- package/Pagination/index.d.ts +49 -0
- package/Pagination/index.js +341 -0
- package/README.md +108 -0
- package/Radio/index.d.ts +31 -0
- package/Radio/index.js +246 -0
- package/RangeSlider/index.css +149 -0
- package/RangeSlider/index.d.ts +21 -0
- package/RangeSlider/index.js +730 -0
- package/ScrollReveal/index.css +23 -0
- package/ScrollReveal/index.d.ts +21 -0
- package/ScrollReveal/index.js +216 -0
- package/Scrollbar/index.css +168 -0
- package/Scrollbar/index.d.ts +15 -0
- package/Scrollbar/index.js +605 -0
- package/SearchBar/index.d.ts +32 -0
- package/SearchBar/index.js +246 -0
- package/Select/index.d.ts +34 -0
- package/Select/index.js +331 -0
- package/ShowMoreLess/index.css +23 -0
- package/ShowMoreLess/index.d.ts +30 -0
- package/ShowMoreLess/index.js +202 -0
- package/Switch/index.d.ts +29 -0
- package/Switch/index.js +211 -0
- package/Table/index.css +533 -0
- package/Table/index.d.ts +25 -0
- package/Table/index.js +2113 -0
- package/Tabs/index.d.ts +3 -0
- package/Tabs/index.js +323 -0
- package/TagInput/index.css +90 -0
- package/TagInput/index.d.ts +28 -0
- package/TagInput/index.js +370 -0
- package/Textarea/index.d.ts +30 -0
- package/Textarea/index.js +242 -0
- package/Toast/index.css +95 -0
- package/Toast/index.d.ts +35 -0
- package/Toast/index.js +340 -0
- package/Tooltip/index.css +240 -0
- package/Tooltip/index.d.ts +19 -0
- package/Tooltip/index.js +200 -0
- package/Tree/index.css +225 -0
- package/Tree/index.d.ts +37 -0
- package/Tree/index.js +1406 -0
- package/all.d.ts +33 -0
- package/all.js +35 -0
- package/lib/cjs/BackToTop/index.d.ts +11 -0
- package/lib/cjs/BackToTop/index.js +458 -0
- package/lib/cjs/CascadingSelect/index.d.ts +56 -0
- package/lib/cjs/CascadingSelect/index.js +958 -0
- package/lib/cjs/CascadingSelectE2E/index.d.ts +60 -0
- package/lib/cjs/CascadingSelectE2E/index.js +1126 -0
- package/lib/cjs/Checkbox/index.d.ts +30 -0
- package/lib/cjs/Checkbox/index.js +226 -0
- package/lib/cjs/ColorPicker/index.d.ts +27 -0
- package/lib/cjs/ColorPicker/index.js +246 -0
- package/lib/cjs/DigitalClock/index.d.ts +7 -0
- package/lib/cjs/DigitalClock/index.js +208 -0
- package/lib/cjs/DropdownMenu/index.d.ts +37 -0
- package/lib/cjs/DropdownMenu/index.js +237 -0
- package/lib/cjs/DynamicFields/index.d.ts +26 -0
- package/lib/cjs/DynamicFields/index.js +412 -0
- package/lib/cjs/File/index.d.ts +36 -0
- package/lib/cjs/File/index.js +473 -0
- package/lib/cjs/Input/index.d.ts +42 -0
- package/lib/cjs/Input/index.js +286 -0
- package/lib/cjs/LiveSearch/index.d.ts +37 -0
- package/lib/cjs/LiveSearch/index.js +1195 -0
- package/lib/cjs/ModalDialog/index.d.ts +60 -0
- package/lib/cjs/ModalDialog/index.js +725 -0
- package/lib/cjs/ModeSwitch/index.d.ts +17 -0
- package/lib/cjs/ModeSwitch/index.js +202 -0
- package/lib/cjs/MultiFuncSelect/index.d.ts +67 -0
- package/lib/cjs/MultiFuncSelect/index.js +1826 -0
- package/lib/cjs/MultilevelDropdownMenu/index.d.ts +25 -0
- package/lib/cjs/MultilevelDropdownMenu/index.js +464 -0
- package/lib/cjs/Pagination/index.d.ts +49 -0
- package/lib/cjs/Pagination/index.js +341 -0
- package/lib/cjs/Radio/index.d.ts +31 -0
- package/lib/cjs/Radio/index.js +246 -0
- package/lib/cjs/RangeSlider/index.d.ts +21 -0
- package/lib/cjs/RangeSlider/index.js +730 -0
- package/lib/cjs/ScrollReveal/index.d.ts +21 -0
- package/lib/cjs/ScrollReveal/index.js +216 -0
- package/lib/cjs/Scrollbar/index.d.ts +15 -0
- package/lib/cjs/Scrollbar/index.js +605 -0
- package/lib/cjs/SearchBar/index.d.ts +32 -0
- package/lib/cjs/SearchBar/index.js +246 -0
- package/lib/cjs/Select/index.d.ts +34 -0
- package/lib/cjs/Select/index.js +331 -0
- package/lib/cjs/ShowMoreLess/index.d.ts +30 -0
- package/lib/cjs/ShowMoreLess/index.js +202 -0
- package/lib/cjs/Switch/index.d.ts +29 -0
- package/lib/cjs/Switch/index.js +211 -0
- package/lib/cjs/Table/index.d.ts +25 -0
- package/lib/cjs/Table/index.js +2113 -0
- package/lib/cjs/Tabs/index.d.ts +3 -0
- package/lib/cjs/Tabs/index.js +323 -0
- package/lib/cjs/TagInput/index.d.ts +28 -0
- package/lib/cjs/TagInput/index.js +370 -0
- package/lib/cjs/Textarea/index.d.ts +30 -0
- package/lib/cjs/Textarea/index.js +242 -0
- package/lib/cjs/Toast/index.d.ts +35 -0
- package/lib/cjs/Toast/index.js +340 -0
- package/lib/cjs/Tooltip/index.d.ts +19 -0
- package/lib/cjs/Tooltip/index.js +200 -0
- package/lib/cjs/Tree/index.d.ts +37 -0
- package/lib/cjs/Tree/index.js +1406 -0
- package/lib/cjs/index.d.ts +33 -0
- package/lib/cjs/index.js +35 -0
- package/lib/css/BackToTop/index.css +34 -0
- package/lib/css/CascadingSelect/index.css +159 -0
- package/lib/css/CascadingSelectE2E/index.css +159 -0
- package/lib/css/ColorPicker/index.css +38 -0
- package/lib/css/DropdownMenu/index.css +127 -0
- package/lib/css/MultiFuncSelect/index.css +178 -0
- package/lib/css/MultilevelDropdownMenu/index.css +35 -0
- package/lib/css/RangeSlider/index.css +149 -0
- package/lib/css/ScrollReveal/index.css +23 -0
- package/lib/css/Scrollbar/index.css +168 -0
- package/lib/css/ShowMoreLess/index.css +23 -0
- package/lib/css/Table/index.css +533 -0
- package/lib/css/TagInput/index.css +90 -0
- package/lib/css/Toast/index.css +95 -0
- package/lib/css/Tooltip/index.css +240 -0
- package/lib/css/Tree/index.css +225 -0
- package/lib/esm/BackToTop/index.scss +47 -0
- package/lib/esm/BackToTop/index.tsx +182 -0
- package/lib/esm/BackToTop/utils/easing.js +200 -0
- package/lib/esm/BackToTop/utils/performance.js +52 -0
- package/lib/esm/CascadingSelect/Group.tsx +39 -0
- package/lib/esm/CascadingSelect/index.scss +214 -0
- package/lib/esm/CascadingSelect/index.tsx +922 -0
- package/lib/esm/CascadingSelect/utils/performance.js +52 -0
- package/lib/esm/CascadingSelectE2E/Group.tsx +39 -0
- package/lib/esm/CascadingSelectE2E/index.scss +214 -0
- package/lib/esm/CascadingSelectE2E/index.tsx +1091 -0
- package/lib/esm/CascadingSelectE2E/utils/performance.js +52 -0
- package/lib/esm/Checkbox/index.tsx +160 -0
- package/lib/esm/ColorPicker/index.scss +48 -0
- package/lib/esm/ColorPicker/index.tsx +187 -0
- package/lib/esm/DigitalClock/index.tsx +72 -0
- package/lib/esm/DigitalClock/utils/useInterval.js +43 -0
- package/lib/esm/DropdownMenu/Option.tsx +27 -0
- package/lib/esm/DropdownMenu/index.scss +180 -0
- package/lib/esm/DropdownMenu/index.tsx +148 -0
- package/lib/esm/DynamicFields/index.tsx +386 -0
- package/lib/esm/File/index.tsx +302 -0
- package/lib/esm/Input/index.tsx +233 -0
- package/lib/esm/LiveSearch/index.tsx +582 -0
- package/lib/esm/LiveSearch/utils/performance.js +52 -0
- package/lib/esm/LiveSearch/utils/useThrottle.js +36 -0
- package/lib/esm/ModalDialog/index.tsx +479 -0
- package/lib/esm/ModalDialog/plugins/BSL/bodyScrollLock.es6.js +262 -0
- package/lib/esm/ModalDialog/plugins/BSL/index.ts +2 -0
- package/lib/esm/ModeSwitch/index.tsx +82 -0
- package/lib/esm/MultiFuncSelect/index.scss +269 -0
- package/lib/esm/MultiFuncSelect/index.tsx +1597 -0
- package/lib/esm/MultiFuncSelect/utils/performance.js +52 -0
- package/lib/esm/MultiFuncSelect/utils/tree.js +103 -0
- package/lib/esm/MultiFuncSelect/utils/useThrottle.js +36 -0
- package/lib/esm/MultilevelDropdownMenu/MenuList.tsx +230 -0
- package/lib/esm/MultilevelDropdownMenu/index.scss +75 -0
- package/lib/esm/MultilevelDropdownMenu/index.tsx +71 -0
- package/lib/esm/MultilevelDropdownMenu/utils/dom.js +81 -0
- package/lib/esm/Pagination/index.tsx +230 -0
- package/lib/esm/Pagination/pagination-navigators.tsx +60 -0
- package/lib/esm/Radio/index.tsx +201 -0
- package/lib/esm/RangeSlider/index.scss +184 -0
- package/lib/esm/RangeSlider/index.tsx +223 -0
- package/lib/esm/ScrollReveal/index.scss +27 -0
- package/lib/esm/ScrollReveal/index.tsx +146 -0
- package/lib/esm/Scrollbar/index.scss +217 -0
- package/lib/esm/Scrollbar/index.tsx +497 -0
- package/lib/esm/Scrollbar/utils/performance.js +52 -0
- package/lib/esm/SearchBar/index.tsx +181 -0
- package/lib/esm/Select/index.tsx +276 -0
- package/lib/esm/ShowMoreLess/index.scss +27 -0
- package/lib/esm/ShowMoreLess/index.tsx +144 -0
- package/lib/esm/Switch/index.tsx +143 -0
- package/lib/esm/Table/TableColgroup.tsx +29 -0
- package/lib/esm/Table/TableField.tsx +40 -0
- package/lib/esm/Table/TableFieldRow.tsx +212 -0
- package/lib/esm/Table/TableHeaders.tsx +146 -0
- package/lib/esm/Table/TableRow.tsx +127 -0
- package/lib/esm/Table/TableSummaries.tsx +36 -0
- package/lib/esm/Table/index.scss +364 -0
- package/lib/esm/Table/index.tsx +576 -0
- package/lib/esm/Table/table-utils.ts +65 -0
- package/lib/esm/Table/utils/dom.js +81 -0
- package/lib/esm/Table/utils/performance.js +52 -0
- package/lib/esm/Tabs/TabList.tsx +42 -0
- package/lib/esm/Tabs/TabPanel.tsx +34 -0
- package/lib/esm/Tabs/Tabs.tsx +232 -0
- package/lib/esm/Tabs/index.tsx +3 -0
- package/lib/esm/TagInput/index.scss +125 -0
- package/lib/esm/TagInput/index.tsx +314 -0
- package/lib/esm/Textarea/index.tsx +178 -0
- package/lib/esm/Toast/Item.tsx +75 -0
- package/lib/esm/Toast/index.scss +120 -0
- package/lib/esm/Toast/index.tsx +249 -0
- package/lib/esm/Tooltip/index.scss +327 -0
- package/lib/esm/Tooltip/index.tsx +142 -0
- package/lib/esm/Tree/TreeList.tsx +503 -0
- package/lib/esm/Tree/index.scss +375 -0
- package/lib/esm/Tree/index.tsx +301 -0
- package/lib/esm/Tree/init-height.tsx +27 -0
- package/lib/esm/Tree/utils/convert-tree.js +29 -0
- package/lib/esm/Tree/utils/dom.js +81 -0
- package/lib/esm/index.js +31 -0
- package/package.json +40 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
/* ======================================================
|
|
2
|
+
<!-- Tooltip -->
|
|
3
|
+
/* ====================================================== */
|
|
4
|
+
/*
|
|
5
|
+
* 1. Base Styles
|
|
6
|
+
* 2. Position Modifiers - Top
|
|
7
|
+
* 3. Position Modifiers - Top Left
|
|
8
|
+
* 4. Position Modifiers - Top Right
|
|
9
|
+
* 5. Position Modifiers - Bottom
|
|
10
|
+
* 6. Position Modifiers - Bottom Left
|
|
11
|
+
* 7. Position Modifiers - Bottom Right
|
|
12
|
+
* 8. Position Modifiers - Left
|
|
13
|
+
* 9. Position Modifiers - Right
|
|
14
|
+
* 10. Size
|
|
15
|
+
*/
|
|
16
|
+
.tooltip__wrapper {
|
|
17
|
+
--tooltip-box-shadow: 0 5px 15px 0 rgba(0,0,0,.07), 0 15px 35px 0 rgba(50,50,93,.1);
|
|
18
|
+
--tooltip-content-bg: rgba(17, 17, 17, 0.9);
|
|
19
|
+
--tooltip-content-color: #fff;
|
|
20
|
+
--tooltip-content-font-size: 0.75em;
|
|
21
|
+
--tooltip-content-padding-x: 1em;
|
|
22
|
+
--tooltip-content-padding-y: .5em;
|
|
23
|
+
--tooltip-content-line-height: 1.5;
|
|
24
|
+
--tooltip-arrow-bg-top: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
|
|
25
|
+
--tooltip-arrow-bg-bottom: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
|
|
26
|
+
--tooltip-arrow-bg-left: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
|
|
27
|
+
--tooltip-arrow-bg-right: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
|
|
28
|
+
--tooltip-arrow-width: 18px;
|
|
29
|
+
--tooltip-arrow-height: 6px;
|
|
30
|
+
position: relative;
|
|
31
|
+
display: inline-block;
|
|
32
|
+
/*
|
|
33
|
+
---------------------------
|
|
34
|
+
1. Base Styles
|
|
35
|
+
---------------------------
|
|
36
|
+
*/
|
|
37
|
+
/*
|
|
38
|
+
---------------------------
|
|
39
|
+
2. Position Modifiers - Top
|
|
40
|
+
---------------------------
|
|
41
|
+
*/
|
|
42
|
+
/*
|
|
43
|
+
---------------------------
|
|
44
|
+
3. Position Modifiers - Top Left
|
|
45
|
+
---------------------------
|
|
46
|
+
*/
|
|
47
|
+
/*
|
|
48
|
+
---------------------------
|
|
49
|
+
4. Position Modifiers - Top Right
|
|
50
|
+
---------------------------
|
|
51
|
+
*/
|
|
52
|
+
/*
|
|
53
|
+
---------------------------
|
|
54
|
+
5. Position Modifiers - Bottom
|
|
55
|
+
---------------------------
|
|
56
|
+
*/
|
|
57
|
+
/*
|
|
58
|
+
---------------------------
|
|
59
|
+
6. Position Modifiers - Bottom Left
|
|
60
|
+
---------------------------
|
|
61
|
+
*/
|
|
62
|
+
/*
|
|
63
|
+
---------------------------
|
|
64
|
+
7. Position Modifiers - Bottom Right
|
|
65
|
+
---------------------------
|
|
66
|
+
*/
|
|
67
|
+
/*
|
|
68
|
+
---------------------------
|
|
69
|
+
8. Position Modifiers - Left
|
|
70
|
+
---------------------------
|
|
71
|
+
*/
|
|
72
|
+
/*
|
|
73
|
+
---------------------------
|
|
74
|
+
9. Position Modifiers - Right
|
|
75
|
+
---------------------------
|
|
76
|
+
*/
|
|
77
|
+
/*
|
|
78
|
+
---------------------------
|
|
79
|
+
10. Size
|
|
80
|
+
---------------------------
|
|
81
|
+
*/
|
|
82
|
+
}
|
|
83
|
+
.tooltip__wrapper::before {
|
|
84
|
+
background-size: 100% auto !important;
|
|
85
|
+
content: "";
|
|
86
|
+
}
|
|
87
|
+
.tooltip__wrapper.active::before,
|
|
88
|
+
.tooltip__wrapper.active .tooltip__content {
|
|
89
|
+
opacity: 1;
|
|
90
|
+
pointer-events: auto;
|
|
91
|
+
}
|
|
92
|
+
.tooltip__wrapper:focus::before,
|
|
93
|
+
.tooltip__wrapper:focus .tooltip__content {
|
|
94
|
+
opacity: 1;
|
|
95
|
+
pointer-events: auto;
|
|
96
|
+
}
|
|
97
|
+
.tooltip__wrapper::before,
|
|
98
|
+
.tooltip__wrapper .tooltip__content {
|
|
99
|
+
backface-visibility: hidden;
|
|
100
|
+
will-change: transform;
|
|
101
|
+
opacity: 0;
|
|
102
|
+
pointer-events: none;
|
|
103
|
+
position: absolute;
|
|
104
|
+
box-sizing: border-box;
|
|
105
|
+
z-index: 10;
|
|
106
|
+
transform-origin: top;
|
|
107
|
+
box-shadow: var(--tooltip-box-shadow);
|
|
108
|
+
transition: 0.1s ease-in-out;
|
|
109
|
+
}
|
|
110
|
+
.tooltip__wrapper .tooltip__content {
|
|
111
|
+
background: var(--tooltip-content-bg);
|
|
112
|
+
border-radius: 4px;
|
|
113
|
+
color: var(--tooltip-content-color);
|
|
114
|
+
content: attr(aria-label);
|
|
115
|
+
font-size: var(--tooltip-content-font-size);
|
|
116
|
+
font-weight: normal;
|
|
117
|
+
text-transform: none;
|
|
118
|
+
padding: var(--tooltip-content-padding-y) var(--tooltip-content-padding-x);
|
|
119
|
+
white-space: nowrap;
|
|
120
|
+
box-sizing: content-box;
|
|
121
|
+
line-height: var(--tooltip-content-line-height);
|
|
122
|
+
}
|
|
123
|
+
.tooltip__wrapper .tooltip__content img {
|
|
124
|
+
height: auto !important;
|
|
125
|
+
margin: 0.5rem 0;
|
|
126
|
+
}
|
|
127
|
+
.tooltip__wrapper[data-microtip-position|=top]::before {
|
|
128
|
+
background: var(--tooltip-arrow-bg-top);
|
|
129
|
+
height: var(--tooltip-arrow-height);
|
|
130
|
+
width: var(--tooltip-arrow-width);
|
|
131
|
+
}
|
|
132
|
+
.tooltip__wrapper[data-microtip-position|=top] .tooltip__content {
|
|
133
|
+
margin-bottom: var(--tooltip-arrow-height);
|
|
134
|
+
}
|
|
135
|
+
.tooltip__wrapper[data-microtip-position|=top]::before {
|
|
136
|
+
bottom: calc(100% + var(--tooltip-arrow-height));
|
|
137
|
+
left: calc(50% - var(--tooltip-arrow-width) / 2);
|
|
138
|
+
}
|
|
139
|
+
.tooltip__wrapper[data-microtip-position|=top] .tooltip__content {
|
|
140
|
+
bottom: calc(100% + var(--tooltip-arrow-height));
|
|
141
|
+
left: 50%;
|
|
142
|
+
transform: translateX(-50%);
|
|
143
|
+
}
|
|
144
|
+
.tooltip__wrapper[data-microtip-position=top-left] .tooltip__content {
|
|
145
|
+
bottom: calc(100% + var(--tooltip-arrow-height));
|
|
146
|
+
left: 50%;
|
|
147
|
+
transform: translateX(calc(-100% + var(--tooltip-arrow-width)));
|
|
148
|
+
}
|
|
149
|
+
.tooltip__wrapper[data-microtip-position=top-right] .tooltip__content {
|
|
150
|
+
bottom: calc(100% + var(--tooltip-arrow-height));
|
|
151
|
+
left: 50%;
|
|
152
|
+
transform: translateX(calc(0% - var(--tooltip-arrow-width)));
|
|
153
|
+
}
|
|
154
|
+
.tooltip__wrapper[data-microtip-position|=bottom]::before {
|
|
155
|
+
background: var(--tooltip-arrow-bg-bottom);
|
|
156
|
+
height: var(--tooltip-arrow-height);
|
|
157
|
+
width: var(--tooltip-arrow-width);
|
|
158
|
+
margin-top: 5px;
|
|
159
|
+
margin-bottom: 0;
|
|
160
|
+
}
|
|
161
|
+
.tooltip__wrapper[data-microtip-position|=bottom] .tooltip__content {
|
|
162
|
+
margin-top: var(--tooltip-arrow-height);
|
|
163
|
+
}
|
|
164
|
+
.tooltip__wrapper[data-microtip-position|=bottom]::before {
|
|
165
|
+
bottom: auto;
|
|
166
|
+
top: calc(100% + 1px);
|
|
167
|
+
left: calc(50% - var(--tooltip-arrow-width) / 2);
|
|
168
|
+
}
|
|
169
|
+
.tooltip__wrapper[data-microtip-position|=bottom] .tooltip__content {
|
|
170
|
+
bottom: auto;
|
|
171
|
+
top: calc(100% + var(--tooltip-arrow-height));
|
|
172
|
+
left: 50%;
|
|
173
|
+
transform: translateX(-50%);
|
|
174
|
+
}
|
|
175
|
+
.tooltip__wrapper[data-microtip-position=bottom-left] .tooltip__content {
|
|
176
|
+
bottom: auto;
|
|
177
|
+
top: calc(100% + var(--tooltip-arrow-height));
|
|
178
|
+
left: 50%;
|
|
179
|
+
transform: translateX(calc(-100% + var(--tooltip-arrow-width)));
|
|
180
|
+
}
|
|
181
|
+
.tooltip__wrapper[data-microtip-position=bottom-right] .tooltip__content {
|
|
182
|
+
bottom: auto;
|
|
183
|
+
top: calc(100% + var(--tooltip-arrow-height));
|
|
184
|
+
left: 50%;
|
|
185
|
+
transform: translateX(calc(0% - var(--tooltip-arrow-width)));
|
|
186
|
+
}
|
|
187
|
+
.tooltip__wrapper[data-microtip-position=left]::before,
|
|
188
|
+
.tooltip__wrapper[data-microtip-position=left] .tooltip__content {
|
|
189
|
+
bottom: auto;
|
|
190
|
+
left: auto;
|
|
191
|
+
right: 100%;
|
|
192
|
+
top: 50%;
|
|
193
|
+
transform: translateY(-50%);
|
|
194
|
+
}
|
|
195
|
+
.tooltip__wrapper[data-microtip-position=left]::before {
|
|
196
|
+
background: var(--tooltip-arrow-bg-left);
|
|
197
|
+
height: var(--tooltip-arrow-width);
|
|
198
|
+
width: var(--tooltip-arrow-height);
|
|
199
|
+
margin-right: 5px;
|
|
200
|
+
margin-bottom: 0;
|
|
201
|
+
}
|
|
202
|
+
.tooltip__wrapper[data-microtip-position=left] .tooltip__content {
|
|
203
|
+
margin-right: 10px;
|
|
204
|
+
}
|
|
205
|
+
.tooltip__wrapper[data-microtip-position=right]::before,
|
|
206
|
+
.tooltip__wrapper[data-microtip-position=right] .tooltip__content {
|
|
207
|
+
bottom: auto;
|
|
208
|
+
left: 100%;
|
|
209
|
+
top: 50%;
|
|
210
|
+
transform: translateY(-50%);
|
|
211
|
+
}
|
|
212
|
+
.tooltip__wrapper[data-microtip-position=right]::before {
|
|
213
|
+
background: var(--tooltip-arrow-bg-right);
|
|
214
|
+
height: var(--tooltip-arrow-width);
|
|
215
|
+
width: var(--tooltip-arrow-height);
|
|
216
|
+
margin-bottom: 0;
|
|
217
|
+
margin-left: 5px;
|
|
218
|
+
}
|
|
219
|
+
.tooltip__wrapper[data-microtip-position=right] .tooltip__content {
|
|
220
|
+
margin-left: 10px;
|
|
221
|
+
}
|
|
222
|
+
.tooltip__wrapper[data-microtip-size=auto].tooltip__content {
|
|
223
|
+
white-space: nowrap;
|
|
224
|
+
width: auto;
|
|
225
|
+
max-width: 530px;
|
|
226
|
+
overflow: hidden;
|
|
227
|
+
text-overflow: ellipsis;
|
|
228
|
+
}
|
|
229
|
+
.tooltip__wrapper[data-microtip-size=small].tooltip__content {
|
|
230
|
+
white-space: initial;
|
|
231
|
+
width: 80px;
|
|
232
|
+
}
|
|
233
|
+
.tooltip__wrapper[data-microtip-size=medium].tooltip__content {
|
|
234
|
+
white-space: initial;
|
|
235
|
+
width: 150px;
|
|
236
|
+
}
|
|
237
|
+
.tooltip__wrapper[data-microtip-size=large].tooltip__content {
|
|
238
|
+
white-space: initial;
|
|
239
|
+
width: 260px;
|
|
240
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare type TooltipProps = {
|
|
3
|
+
wrapperClassName?: string;
|
|
4
|
+
/** The direction of the tip. Defaults to `top`. Possible values are: `top`, `top-right`, `top-left`, `bottom`, `bottom-right`, `bottom-left` */
|
|
5
|
+
direction?: string;
|
|
6
|
+
/** The size of the content area. Defaults to `auto`. Possible values are: `auto`, `large`, `medium`, `small` */
|
|
7
|
+
size?: string;
|
|
8
|
+
/** The number of milliseconds to determine hover intent, defaults to 200 */
|
|
9
|
+
hoverDelay?: number;
|
|
10
|
+
/** The number of milliseconds to determine hover-end intent, defaults to the hoverDelay value */
|
|
11
|
+
mouseOutDelay?: number;
|
|
12
|
+
/** Set a piece of text or HTML code */
|
|
13
|
+
content?: React.ReactNode;
|
|
14
|
+
/** -- */
|
|
15
|
+
id?: string;
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
};
|
|
18
|
+
declare const Tooltip: (props: TooltipProps) => JSX.Element;
|
|
19
|
+
export default Tooltip;
|
package/Tooltip/index.js
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("react"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define(["react"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["RPB"] = factory(require("react"));
|
|
8
|
+
else
|
|
9
|
+
root["RPB"] = factory(root["React"]);
|
|
10
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE__787__) => {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
14
|
+
|
|
15
|
+
/***/ 787:
|
|
16
|
+
/***/ ((module) => {
|
|
17
|
+
|
|
18
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
|
|
19
|
+
|
|
20
|
+
/***/ })
|
|
21
|
+
|
|
22
|
+
/******/ });
|
|
23
|
+
/************************************************************************/
|
|
24
|
+
/******/ // The module cache
|
|
25
|
+
/******/ var __webpack_module_cache__ = {};
|
|
26
|
+
/******/
|
|
27
|
+
/******/ // The require function
|
|
28
|
+
/******/ function __webpack_require__(moduleId) {
|
|
29
|
+
/******/ // Check if module is in cache
|
|
30
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
31
|
+
/******/ if (cachedModule !== undefined) {
|
|
32
|
+
/******/ return cachedModule.exports;
|
|
33
|
+
/******/ }
|
|
34
|
+
/******/ // Create a new module (and put it into the cache)
|
|
35
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
36
|
+
/******/ // no module.id needed
|
|
37
|
+
/******/ // no module.loaded needed
|
|
38
|
+
/******/ exports: {}
|
|
39
|
+
/******/ };
|
|
40
|
+
/******/
|
|
41
|
+
/******/ // Execute the module function
|
|
42
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
43
|
+
/******/
|
|
44
|
+
/******/ // Return the exports of the module
|
|
45
|
+
/******/ return module.exports;
|
|
46
|
+
/******/ }
|
|
47
|
+
/******/
|
|
48
|
+
/************************************************************************/
|
|
49
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
50
|
+
/******/ (() => {
|
|
51
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
52
|
+
/******/ __webpack_require__.n = (module) => {
|
|
53
|
+
/******/ var getter = module && module.__esModule ?
|
|
54
|
+
/******/ () => (module['default']) :
|
|
55
|
+
/******/ () => (module);
|
|
56
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
57
|
+
/******/ return getter;
|
|
58
|
+
/******/ };
|
|
59
|
+
/******/ })();
|
|
60
|
+
/******/
|
|
61
|
+
/******/ /* webpack/runtime/define property getters */
|
|
62
|
+
/******/ (() => {
|
|
63
|
+
/******/ // define getter functions for harmony exports
|
|
64
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
65
|
+
/******/ for(var key in definition) {
|
|
66
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
67
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
68
|
+
/******/ }
|
|
69
|
+
/******/ }
|
|
70
|
+
/******/ };
|
|
71
|
+
/******/ })();
|
|
72
|
+
/******/
|
|
73
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
74
|
+
/******/ (() => {
|
|
75
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
76
|
+
/******/ })();
|
|
77
|
+
/******/
|
|
78
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
79
|
+
/******/ (() => {
|
|
80
|
+
/******/ // define __esModule on exports
|
|
81
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
82
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
83
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
84
|
+
/******/ }
|
|
85
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
86
|
+
/******/ };
|
|
87
|
+
/******/ })();
|
|
88
|
+
/******/
|
|
89
|
+
/************************************************************************/
|
|
90
|
+
var __webpack_exports__ = {};
|
|
91
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
92
|
+
(() => {
|
|
93
|
+
__webpack_require__.r(__webpack_exports__);
|
|
94
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
95
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
96
|
+
/* harmony export */ });
|
|
97
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(787);
|
|
98
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
99
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
100
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
101
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
102
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
103
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
104
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
105
|
+
|
|
106
|
+
var Tooltip = function Tooltip(props) {
|
|
107
|
+
var wrapperClassName = props.wrapperClassName,
|
|
108
|
+
direction = props.direction,
|
|
109
|
+
size = props.size,
|
|
110
|
+
hoverDelay = props.hoverDelay,
|
|
111
|
+
mouseOutDelay = props.mouseOutDelay,
|
|
112
|
+
content = props.content,
|
|
113
|
+
id = props.id,
|
|
114
|
+
children = props.children;
|
|
115
|
+
var uniqueID = (0,react__WEBPACK_IMPORTED_MODULE_0__.useId)();
|
|
116
|
+
var idRes = id || uniqueID;
|
|
117
|
+
var rootRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
118
|
+
var HOVER_DELAY = hoverDelay ? hoverDelay : 200;
|
|
119
|
+
var MOUSE_OUT_DELAY = mouseOutDelay ? mouseOutDelay : HOVER_DELAY;
|
|
120
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
|
121
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
122
|
+
hasBeenShown = _useState2[0],
|
|
123
|
+
setHasBeenShown = _useState2[1];
|
|
124
|
+
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
|
125
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
126
|
+
isShow = _useState4[0],
|
|
127
|
+
setIsShow = _useState4[1];
|
|
128
|
+
|
|
129
|
+
//timer hover
|
|
130
|
+
var timeoutHoverIdRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
131
|
+
var startTimerHover = function startTimerHover() {
|
|
132
|
+
timeoutHoverIdRef.current = setTimeout(function () {
|
|
133
|
+
if (!hasBeenShown) {
|
|
134
|
+
// this will render once, then fire componentDidUpdate, which will show the tip
|
|
135
|
+
setHasBeenShown(true);
|
|
136
|
+
}
|
|
137
|
+
if (!isShow) setIsShow(true);
|
|
138
|
+
}, HOVER_DELAY);
|
|
139
|
+
};
|
|
140
|
+
var stopTimerHover = function stopTimerHover() {
|
|
141
|
+
clearTimeout(timeoutHoverIdRef.current);
|
|
142
|
+
timeoutHoverIdRef.current = null;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
//timer mouseout
|
|
146
|
+
var timeoutMouseoutIdRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
147
|
+
var startTimerMouseout = function startTimerMouseout() {
|
|
148
|
+
timeoutMouseoutIdRef.current = setTimeout(function () {
|
|
149
|
+
hideTip();
|
|
150
|
+
}, MOUSE_OUT_DELAY);
|
|
151
|
+
};
|
|
152
|
+
var stopTimerMouseout = function stopTimerMouseout() {
|
|
153
|
+
clearTimeout(timeoutMouseoutIdRef.current);
|
|
154
|
+
timeoutMouseoutIdRef.current = null;
|
|
155
|
+
};
|
|
156
|
+
function handleMouseEnter() {
|
|
157
|
+
stopTimerHover();
|
|
158
|
+
stopTimerMouseout();
|
|
159
|
+
startTimerHover();
|
|
160
|
+
}
|
|
161
|
+
function handleMouseLeave() {
|
|
162
|
+
stopTimerHover();
|
|
163
|
+
stopTimerMouseout();
|
|
164
|
+
startTimerMouseout();
|
|
165
|
+
}
|
|
166
|
+
function hideTip() {
|
|
167
|
+
if (isShow) setIsShow(false);
|
|
168
|
+
}
|
|
169
|
+
function handleTouchStart(e) {
|
|
170
|
+
hideTip();
|
|
171
|
+
}
|
|
172
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
|
173
|
+
window.removeEventListener('touchstart', handleTouchStart);
|
|
174
|
+
window.addEventListener('touchstart', handleTouchStart);
|
|
175
|
+
return function () {
|
|
176
|
+
stopTimerHover();
|
|
177
|
+
stopTimerMouseout();
|
|
178
|
+
window.removeEventListener('touchstart', handleTouchStart);
|
|
179
|
+
};
|
|
180
|
+
}, []);
|
|
181
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
182
|
+
ref: rootRef,
|
|
183
|
+
id: idRes,
|
|
184
|
+
className: "".concat(wrapperClassName || wrapperClassName === '' ? "tooltip__wrapper ".concat(wrapperClassName) : "tooltip__wrapper d-inline-block", " ").concat(isShow ? 'active' : ''),
|
|
185
|
+
onMouseEnter: handleMouseEnter,
|
|
186
|
+
onMouseLeave: handleMouseLeave,
|
|
187
|
+
role: "tooltip",
|
|
188
|
+
"data-microtip-position": direction || 'top',
|
|
189
|
+
"data-microtip-size": size || 'auto'
|
|
190
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
191
|
+
className: "tooltip__content"
|
|
192
|
+
}, content), children));
|
|
193
|
+
};
|
|
194
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Tooltip);
|
|
195
|
+
})();
|
|
196
|
+
|
|
197
|
+
/******/ return __webpack_exports__;
|
|
198
|
+
/******/ })()
|
|
199
|
+
;
|
|
200
|
+
});
|
package/Tree/index.css
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/* ======================================================
|
|
2
|
+
<!-- Tree -->
|
|
3
|
+
/* ====================================================== */
|
|
4
|
+
.tree-diagram-default {
|
|
5
|
+
--tree-padding-x: 1rem;
|
|
6
|
+
--tree-padding-y: 0.5rem;
|
|
7
|
+
--tree-font-line-height: 1.5;
|
|
8
|
+
--tree-dis-top: 1rem;
|
|
9
|
+
--tree-font-size: 0.875rem;
|
|
10
|
+
--tree-ident: var(--tree-font-size);
|
|
11
|
+
--tree-dis-start: -var(--tree-ident);
|
|
12
|
+
--tree-border-color: #ddd;
|
|
13
|
+
--tree-font-bg: #f6f6f6;
|
|
14
|
+
--tree-font-active-bg: #f0f8ff;
|
|
15
|
+
--tree-checkbox-indeterminate-color: #bbbbbb;
|
|
16
|
+
--tree-link-min-width: 150px;
|
|
17
|
+
position: relative;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-wrap: wrap;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
padding: 0.5rem 0;
|
|
23
|
+
outline: none; /* When using "tabindex" please set */
|
|
24
|
+
/*------ line ------*/
|
|
25
|
+
/*------ has checkbox ------*/
|
|
26
|
+
/*------ hide arrow ------*/
|
|
27
|
+
}
|
|
28
|
+
.tree-diagram-default ul, .tree-diagram-default li {
|
|
29
|
+
list-style: none;
|
|
30
|
+
}
|
|
31
|
+
.tree-diagram-default .tree-diagram-default-nav {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
padding-left: 0;
|
|
35
|
+
margin-bottom: 0;
|
|
36
|
+
list-style: none;
|
|
37
|
+
/* Default height for sub items */
|
|
38
|
+
}
|
|
39
|
+
.tree-diagram-default .tree-diagram-default-nav .nav-link {
|
|
40
|
+
position: relative;
|
|
41
|
+
display: block;
|
|
42
|
+
min-width: var(--tree-link-min-width);
|
|
43
|
+
padding: var(--tree-padding-y) var(--tree-padding-x);
|
|
44
|
+
font-size: var(--tree-font-size);
|
|
45
|
+
font-weight: 400;
|
|
46
|
+
color: inherit;
|
|
47
|
+
text-decoration: none;
|
|
48
|
+
transition: 0.1s ease-in-out;
|
|
49
|
+
padding-left: calc(var(--tree-padding-x) * 2);
|
|
50
|
+
z-index: 1;
|
|
51
|
+
}
|
|
52
|
+
.tree-diagram-default .tree-diagram-default-nav .nav-link > span {
|
|
53
|
+
transition: 0.1s ease-in-out;
|
|
54
|
+
display: inline-block;
|
|
55
|
+
border-radius: 2px;
|
|
56
|
+
}
|
|
57
|
+
.tree-diagram-default .tree-diagram-default-nav .nav-link > span var.loading-icon {
|
|
58
|
+
position: absolute;
|
|
59
|
+
margin-left: 0.2em;
|
|
60
|
+
}
|
|
61
|
+
.tree-diagram-default .tree-diagram-default-nav .nav-link:hover span {
|
|
62
|
+
background-color: var(--tree-font-bg);
|
|
63
|
+
}
|
|
64
|
+
.tree-diagram-default .tree-diagram-default-nav .nav-link.selected span {
|
|
65
|
+
background-color: var(--tree-font-active-bg);
|
|
66
|
+
}
|
|
67
|
+
.tree-diagram-default .tree-diagram-default-nav .nav-link.loading > span var.loading-icon {
|
|
68
|
+
display: inline-block;
|
|
69
|
+
}
|
|
70
|
+
.tree-diagram-default .tree-diagram-default-nav var.loading-icon {
|
|
71
|
+
display: none;
|
|
72
|
+
}
|
|
73
|
+
.tree-diagram-default .tree-diagram-default-nav var.loading-icon svg {
|
|
74
|
+
animation: tree-diagram-ring 1.2s linear infinite;
|
|
75
|
+
}
|
|
76
|
+
.tree-diagram-default .tree-diagram-default-nav .checkbox-trigger {
|
|
77
|
+
display: none;
|
|
78
|
+
position: absolute;
|
|
79
|
+
left: calc(var(--tree-padding-x) + 1.5em);
|
|
80
|
+
top: calc(var(--tree-dis-top) - 8px);
|
|
81
|
+
z-index: 2;
|
|
82
|
+
}
|
|
83
|
+
.tree-diagram-default .tree-diagram-default-nav .checkbox-trigger > div {
|
|
84
|
+
display: inline-block;
|
|
85
|
+
}
|
|
86
|
+
.tree-diagram-default .tree-diagram-default-nav .checkbox-trigger > div .form-check {
|
|
87
|
+
min-height: auto;
|
|
88
|
+
margin-bottom: 0;
|
|
89
|
+
}
|
|
90
|
+
.tree-diagram-default .tree-diagram-default-nav .checkbox-trigger > div .form-check [type=checkbox]:indeterminate {
|
|
91
|
+
background-color: var(--tree-checkbox-indeterminate-color);
|
|
92
|
+
border-color: var(--tree-checkbox-indeterminate-color);
|
|
93
|
+
}
|
|
94
|
+
.tree-diagram-default .tree-diagram-default-nav .arrow {
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
transition: 0.1s ease-in-out;
|
|
97
|
+
display: inline-block;
|
|
98
|
+
text-align: center;
|
|
99
|
+
position: absolute;
|
|
100
|
+
left: calc(var(--tree-padding-x) + 0.2em);
|
|
101
|
+
top: calc(var(--tree-dis-top) - 5px);
|
|
102
|
+
transform: translateY(-50%) rotate(0deg);
|
|
103
|
+
z-index: 2;
|
|
104
|
+
width: 10px;
|
|
105
|
+
height: 10px;
|
|
106
|
+
transform-origin: 50% 125%;
|
|
107
|
+
}
|
|
108
|
+
.tree-diagram-default .tree-diagram-default-nav .arrow > var > svg {
|
|
109
|
+
transition: 0.1s ease-in-out;
|
|
110
|
+
}
|
|
111
|
+
.tree-diagram-default .tree-diagram-default-nav .arrow var.default-icon > span:last-child {
|
|
112
|
+
display: none;
|
|
113
|
+
}
|
|
114
|
+
.tree-diagram-default .tree-diagram-default-nav .arrow.loading var.default-icon {
|
|
115
|
+
display: none;
|
|
116
|
+
}
|
|
117
|
+
.tree-diagram-default .tree-diagram-default-nav .arrow.loading var.loading-icon {
|
|
118
|
+
display: inline-block;
|
|
119
|
+
}
|
|
120
|
+
.tree-diagram-default .tree-diagram-default-nav .arrow:hover {
|
|
121
|
+
opacity: 0.5;
|
|
122
|
+
}
|
|
123
|
+
.tree-diagram-default .tree-diagram-default-nav .arrow:hover > var > svg {
|
|
124
|
+
transform: scale(1.4);
|
|
125
|
+
}
|
|
126
|
+
.tree-diagram-default .tree-diagram-default-nav li {
|
|
127
|
+
position: relative;
|
|
128
|
+
padding-left: 0.2em;
|
|
129
|
+
}
|
|
130
|
+
.tree-diagram-default .tree-diagram-default-nav li i {
|
|
131
|
+
font-style: normal;
|
|
132
|
+
}
|
|
133
|
+
.tree-diagram-default .tree-diagram-default-nav li.active > .arrow:not(.custom-icons) {
|
|
134
|
+
transform: translateY(-50%) rotate(90deg);
|
|
135
|
+
}
|
|
136
|
+
.tree-diagram-default .tree-diagram-default-nav li.active > .arrow.custom-icons var.default-icon > span:first-child {
|
|
137
|
+
display: none;
|
|
138
|
+
}
|
|
139
|
+
.tree-diagram-default .tree-diagram-default-nav li.active > .arrow.custom-icons var.default-icon > span:last-child {
|
|
140
|
+
display: block;
|
|
141
|
+
}
|
|
142
|
+
.tree-diagram-default .tree-diagram-default-nav > li ul {
|
|
143
|
+
transition: max-height 0.25s ease;
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
position: relative;
|
|
146
|
+
}
|
|
147
|
+
.tree-diagram-default .tree-diagram-default-nav > li:not(.active) ul {
|
|
148
|
+
max-height: 0;
|
|
149
|
+
}
|
|
150
|
+
.tree-diagram-default .tree-diagram-default-nav > li ul ul {
|
|
151
|
+
margin-top: auto;
|
|
152
|
+
}
|
|
153
|
+
.tree-diagram-default.show-line .tree-diagram-default-nav li::before, .tree-diagram-default.show-line .tree-diagram-default-nav li::after {
|
|
154
|
+
content: "";
|
|
155
|
+
position: absolute;
|
|
156
|
+
top: calc(0px - var(--tree-dis-top));
|
|
157
|
+
left: var(--tree-dis-start);
|
|
158
|
+
border-left-width: 1px;
|
|
159
|
+
border-left-style: solid;
|
|
160
|
+
border-left-color: var(--tree-border-color);
|
|
161
|
+
border-bottom-width: 1px;
|
|
162
|
+
border-bottom-style: solid;
|
|
163
|
+
border-bottom-color: var(--tree-border-color);
|
|
164
|
+
width: var(--tree-ident);
|
|
165
|
+
pointer-events: none;
|
|
166
|
+
}
|
|
167
|
+
.tree-diagram-default.show-line .tree-diagram-default-nav li::before {
|
|
168
|
+
height: calc(var(--tree-font-size) * var(--tree-font-line-height) + var(--tree-padding-y) + var(--tree-padding-y));
|
|
169
|
+
}
|
|
170
|
+
.tree-diagram-default.show-line .tree-diagram-default-nav li::after {
|
|
171
|
+
height: 100%;
|
|
172
|
+
border-bottom-width: 0;
|
|
173
|
+
}
|
|
174
|
+
.tree-diagram-default.show-line .tree-diagram-default-nav li:last-child::after {
|
|
175
|
+
display: none;
|
|
176
|
+
}
|
|
177
|
+
.tree-diagram-default.show-line .tree-diagram-default-nav > li:first-child::before {
|
|
178
|
+
border-left-width: 0;
|
|
179
|
+
}
|
|
180
|
+
.tree-diagram-default.show-line .tree-diagram-default-nav > li:first-child::after {
|
|
181
|
+
top: calc(var(--tree-font-size) * var(--tree-font-line-height));
|
|
182
|
+
}
|
|
183
|
+
.tree-diagram-default.show-line.line--dotted .tree-diagram-default-nav li::before, .tree-diagram-default.show-line.line--dotted .tree-diagram-default-nav li::after {
|
|
184
|
+
border-left-style: dotted;
|
|
185
|
+
border-bottom-style: dotted;
|
|
186
|
+
}
|
|
187
|
+
.tree-diagram-default.show-line.line--dashed .tree-diagram-default-nav li::before, .tree-diagram-default.show-line.line--dashed .tree-diagram-default-nav li::after {
|
|
188
|
+
border-left-style: dashed;
|
|
189
|
+
border-bottom-style: dashed;
|
|
190
|
+
}
|
|
191
|
+
.tree-diagram-default.show-line.line--double .tree-diagram-default-nav li::before, .tree-diagram-default.show-line.line--double .tree-diagram-default-nav li::after {
|
|
192
|
+
border-left-style: double;
|
|
193
|
+
border-bottom-style: double;
|
|
194
|
+
}
|
|
195
|
+
.tree-diagram-default.show-line.line--solid .tree-diagram-default-nav li::before, .tree-diagram-default.show-line.line--solid .tree-diagram-default-nav li::after {
|
|
196
|
+
border-left-style: solid;
|
|
197
|
+
border-bottom-style: solid;
|
|
198
|
+
}
|
|
199
|
+
.tree-diagram-default.has-checkbox .checkbox-trigger {
|
|
200
|
+
display: inline-block;
|
|
201
|
+
}
|
|
202
|
+
.tree-diagram-default.has-checkbox .tree-diagram-default-nav .nav-link {
|
|
203
|
+
padding-left: calc(var(--tree-padding-x) + 2.7em);
|
|
204
|
+
}
|
|
205
|
+
.tree-diagram-default.hide-arrow .arrow {
|
|
206
|
+
display: none;
|
|
207
|
+
}
|
|
208
|
+
.tree-diagram-default.hide-arrow .tree-diagram-default-nav .nav-link {
|
|
209
|
+
padding-left: var(--tree-padding-x);
|
|
210
|
+
}
|
|
211
|
+
.tree-diagram-default.hide-arrow.has-checkbox .tree-diagram-default-nav .checkbox-trigger {
|
|
212
|
+
left: calc(var(--tree-padding-x) + 0.5em);
|
|
213
|
+
}
|
|
214
|
+
.tree-diagram-default.hide-arrow.has-checkbox .tree-diagram-default-nav .nav-link {
|
|
215
|
+
padding-left: calc(var(--tree-padding-x) + 1.5em);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@keyframes tree-diagram-ring {
|
|
219
|
+
0% {
|
|
220
|
+
transform: rotate(0deg);
|
|
221
|
+
}
|
|
222
|
+
100% {
|
|
223
|
+
transform: rotate(360deg);
|
|
224
|
+
}
|
|
225
|
+
}
|