cortex-react-ui 0.2.22 → 0.2.23
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/lib/cjs/BarLoader/BarLoader.d.ts +9 -0
- package/lib/cjs/BarLoader/index.d.ts +1 -0
- package/lib/cjs/Button/Button.d.ts +11 -0
- package/lib/cjs/Button/index.d.ts +1 -0
- package/lib/cjs/Camera/Camera.d.ts +20 -0
- package/lib/cjs/Camera/FileStorageDb.d.ts +9 -0
- package/lib/cjs/Camera/index.d.ts +1 -0
- package/lib/cjs/Camera/useTimer.d.ts +6 -0
- package/lib/cjs/DatePicker/DatePicker.d.ts +7 -0
- package/lib/cjs/DatePicker/index.d.ts +1 -0
- package/lib/cjs/Dialog/ConfirmDialog.d.ts +11 -0
- package/lib/cjs/Dialog/Dialog.d.ts +12 -0
- package/lib/cjs/Dialog/DialogActions.d.ts +7 -0
- package/lib/cjs/Dialog/DialogContent.d.ts +7 -0
- package/lib/cjs/Dialog/DialogFooter.d.ts +7 -0
- package/lib/cjs/Dialog/DialogHeader.d.ts +7 -0
- package/lib/cjs/Dialog/DialogTitle.d.ts +9 -0
- package/lib/cjs/Dialog/ErrorDialog.d.ts +10 -0
- package/lib/cjs/Dialog/WarningDialog.d.ts +10 -0
- package/lib/cjs/Dialog/index.d.ts +9 -0
- package/lib/cjs/DomContainer/DomContainer.d.ts +7 -0
- package/lib/cjs/DomContainer/index.d.ts +1 -0
- package/lib/cjs/Icons/ChevronDownIcon.d.ts +6 -0
- package/lib/cjs/Icons/ChevronLeftIcon.d.ts +6 -0
- package/lib/cjs/Icons/ChevronRightIcon.d.ts +6 -0
- package/lib/cjs/Icons/CrossIcon.d.ts +6 -0
- package/lib/cjs/Icons/index.d.ts +4 -0
- package/lib/cjs/Input/Input.d.ts +7 -0
- package/lib/cjs/Input/index.d.ts +1 -0
- package/lib/cjs/Map/Map.d.ts +16 -0
- package/lib/cjs/Map/components/CenterActiveAreaControl.d.ts +5 -0
- package/lib/cjs/Map/components/DrawTools.d.ts +18 -0
- package/lib/cjs/Map/components/LocationContext.d.ts +6 -0
- package/lib/cjs/Map/components/MapFullscreenControl.d.ts +22 -0
- package/lib/cjs/Map/components/Maps.d.ts +22 -0
- package/lib/cjs/Map/config/appConfig.d.ts +4 -0
- package/lib/cjs/Map/config/config.d.ts +6 -0
- package/lib/cjs/Map/hooks/getGeoJSONTest.d.ts +16 -0
- package/lib/cjs/Map/hooks/useLocationContext.d.ts +1 -0
- package/lib/cjs/Map/index.d.ts +1 -0
- package/lib/cjs/Map/models/index.d.ts +2 -0
- package/lib/cjs/Map/models/location.d.ts +6 -0
- package/lib/cjs/Map/models/locationSearch.d.ts +4 -0
- package/lib/cjs/Map/models/point.d.ts +6 -0
- package/lib/cjs/Map/utils/logger.d.ts +17 -0
- package/lib/cjs/Map/utils/toolkit.d.ts +129 -0
- package/lib/cjs/Menu/AuthDownloadLink.d.ts +14 -0
- package/lib/cjs/Menu/ContextMenu.d.ts +13 -0
- package/lib/cjs/Menu/Divider.d.ts +6 -0
- package/lib/cjs/Menu/Menu.d.ts +10 -0
- package/lib/cjs/Menu/MenuGroup.d.ts +8 -0
- package/lib/cjs/Menu/MenuItem.d.ts +14 -0
- package/lib/cjs/Menu/PopupMenu.d.ts +16 -0
- package/lib/cjs/Menu/index.d.ts +7 -0
- package/lib/cjs/Popper/Popper.d.ts +38 -0
- package/lib/cjs/Popper/index.d.ts +1 -0
- package/lib/cjs/Scanner/Dialog.d.ts +8 -0
- package/lib/cjs/Scanner/DialogBody.d.ts +3 -0
- package/lib/cjs/Scanner/DialogMask.d.ts +3 -0
- package/lib/cjs/Scanner/ScanConfirmationDialog.d.ts +18 -0
- package/lib/cjs/Scanner/Scanner.d.ts +11 -0
- package/lib/cjs/Scanner/index.d.ts +1 -0
- package/lib/cjs/Select/Select.d.ts +6 -0
- package/lib/cjs/Select/index.d.ts +1 -0
- package/lib/cjs/Selected/Selected.d.ts +8 -0
- package/lib/cjs/Selected/index.d.ts +1 -0
- package/lib/cjs/Spinner/Spinner.d.ts +7 -0
- package/lib/cjs/Spinner/index.d.ts +1 -0
- package/lib/cjs/TagInput/TagInput.d.ts +12 -0
- package/lib/cjs/TagInput/TagItem.d.ts +9 -0
- package/lib/cjs/TagInput/TagSearchInput.d.ts +9 -0
- package/lib/cjs/TagInput/TagSuggestion.d.ts +13 -0
- package/lib/cjs/TagInput/TagSuggestionGroup.d.ts +8 -0
- package/lib/cjs/TagInput/TagSuggestionItem.d.ts +8 -0
- package/lib/cjs/TagInput/index.d.ts +1 -0
- package/lib/cjs/TagInput/types.d.ts +14 -0
- package/lib/cjs/TextField/TextField.d.ts +6 -0
- package/lib/cjs/TextField/TextFieldInput.d.ts +10 -0
- package/lib/cjs/TextField/index.d.ts +1 -0
- package/lib/cjs/ToggleButton/ToggleButton.d.ts +11 -0
- package/lib/cjs/ToggleButton/index.d.ts +1 -0
- package/lib/cjs/Tooltip/Tooltip.d.ts +12 -0
- package/lib/cjs/Tooltip/index.d.ts +1 -0
- package/lib/cjs/Transition/CSSTransition.d.ts +17 -0
- package/lib/cjs/Transition/Fade.d.ts +13 -0
- package/lib/cjs/index.d.ts +23 -0
- package/lib/cjs/index.js +10 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/utils/classNames.d.ts +1 -0
- package/lib/cjs/utils/forwardRef.d.ts +35 -0
- package/lib/cjs/utils/setRef.d.ts +9 -0
- package/lib/cjs/utils/useClickOutside.d.ts +2 -0
- package/lib/cjs/utils/useElement.d.ts +2 -0
- package/lib/cjs/utils/useForkRef.d.ts +10 -0
- package/lib/esm/BarLoader/BarLoader.d.ts +9 -0
- package/lib/esm/BarLoader/index.d.ts +1 -0
- package/lib/esm/Button/Button.d.ts +11 -0
- package/lib/esm/Button/index.d.ts +1 -0
- package/lib/esm/Camera/Camera.d.ts +20 -0
- package/lib/esm/Camera/FileStorageDb.d.ts +9 -0
- package/lib/esm/Camera/index.d.ts +1 -0
- package/lib/esm/Camera/useTimer.d.ts +6 -0
- package/lib/esm/DatePicker/DatePicker.d.ts +7 -0
- package/lib/esm/DatePicker/index.d.ts +1 -0
- package/lib/esm/Dialog/ConfirmDialog.d.ts +11 -0
- package/lib/esm/Dialog/Dialog.d.ts +12 -0
- package/lib/esm/Dialog/DialogActions.d.ts +7 -0
- package/lib/esm/Dialog/DialogContent.d.ts +7 -0
- package/lib/esm/Dialog/DialogFooter.d.ts +7 -0
- package/lib/esm/Dialog/DialogHeader.d.ts +7 -0
- package/lib/esm/Dialog/DialogTitle.d.ts +9 -0
- package/lib/esm/Dialog/ErrorDialog.d.ts +10 -0
- package/lib/esm/Dialog/WarningDialog.d.ts +10 -0
- package/lib/esm/Dialog/index.d.ts +9 -0
- package/lib/esm/DomContainer/DomContainer.d.ts +7 -0
- package/lib/esm/DomContainer/index.d.ts +1 -0
- package/lib/esm/Icons/ChevronDownIcon.d.ts +6 -0
- package/lib/esm/Icons/ChevronLeftIcon.d.ts +6 -0
- package/lib/esm/Icons/ChevronRightIcon.d.ts +6 -0
- package/lib/esm/Icons/CrossIcon.d.ts +6 -0
- package/lib/esm/Icons/index.d.ts +4 -0
- package/lib/esm/Input/Input.d.ts +7 -0
- package/lib/esm/Input/index.d.ts +1 -0
- package/lib/esm/Map/Map.d.ts +16 -0
- package/lib/esm/Map/components/CenterActiveAreaControl.d.ts +5 -0
- package/lib/esm/Map/components/DrawTools.d.ts +18 -0
- package/lib/esm/Map/components/LocationContext.d.ts +6 -0
- package/lib/esm/Map/components/MapFullscreenControl.d.ts +22 -0
- package/lib/esm/Map/components/Maps.d.ts +22 -0
- package/lib/esm/Map/config/appConfig.d.ts +4 -0
- package/lib/esm/Map/config/config.d.ts +6 -0
- package/lib/esm/Map/hooks/getGeoJSONTest.d.ts +16 -0
- package/lib/esm/Map/hooks/useLocationContext.d.ts +1 -0
- package/lib/esm/Map/index.d.ts +1 -0
- package/lib/esm/Map/models/index.d.ts +2 -0
- package/lib/esm/Map/models/location.d.ts +6 -0
- package/lib/esm/Map/models/locationSearch.d.ts +4 -0
- package/lib/esm/Map/models/point.d.ts +6 -0
- package/lib/esm/Map/utils/logger.d.ts +17 -0
- package/lib/esm/Map/utils/toolkit.d.ts +129 -0
- package/lib/esm/Menu/AuthDownloadLink.d.ts +14 -0
- package/lib/esm/Menu/ContextMenu.d.ts +13 -0
- package/lib/esm/Menu/Divider.d.ts +6 -0
- package/lib/esm/Menu/Menu.d.ts +10 -0
- package/lib/esm/Menu/MenuGroup.d.ts +8 -0
- package/lib/esm/Menu/MenuItem.d.ts +14 -0
- package/lib/esm/Menu/PopupMenu.d.ts +16 -0
- package/lib/esm/Menu/index.d.ts +7 -0
- package/lib/esm/Popper/Popper.d.ts +38 -0
- package/lib/esm/Popper/index.d.ts +1 -0
- package/lib/esm/Scanner/Dialog.d.ts +8 -0
- package/lib/esm/Scanner/DialogBody.d.ts +3 -0
- package/lib/esm/Scanner/DialogMask.d.ts +3 -0
- package/lib/esm/Scanner/ScanConfirmationDialog.d.ts +18 -0
- package/lib/esm/Scanner/Scanner.d.ts +11 -0
- package/lib/esm/Scanner/index.d.ts +1 -0
- package/lib/esm/Select/Select.d.ts +6 -0
- package/lib/esm/Select/index.d.ts +1 -0
- package/lib/esm/Selected/Selected.d.ts +8 -0
- package/lib/esm/Selected/index.d.ts +1 -0
- package/lib/esm/Spinner/Spinner.d.ts +7 -0
- package/lib/esm/Spinner/index.d.ts +1 -0
- package/lib/esm/TagInput/TagInput.d.ts +12 -0
- package/lib/esm/TagInput/TagItem.d.ts +9 -0
- package/lib/esm/TagInput/TagSearchInput.d.ts +9 -0
- package/lib/esm/TagInput/TagSuggestion.d.ts +13 -0
- package/lib/esm/TagInput/TagSuggestionGroup.d.ts +8 -0
- package/lib/esm/TagInput/TagSuggestionItem.d.ts +8 -0
- package/lib/esm/TagInput/index.d.ts +1 -0
- package/lib/esm/TagInput/types.d.ts +14 -0
- package/lib/esm/TextField/TextField.d.ts +6 -0
- package/lib/esm/TextField/TextFieldInput.d.ts +10 -0
- package/lib/esm/TextField/index.d.ts +1 -0
- package/lib/esm/ToggleButton/ToggleButton.d.ts +11 -0
- package/lib/esm/ToggleButton/index.d.ts +1 -0
- package/lib/esm/Tooltip/Tooltip.d.ts +12 -0
- package/lib/esm/Tooltip/index.d.ts +1 -0
- package/lib/esm/Transition/CSSTransition.d.ts +17 -0
- package/lib/esm/Transition/Fade.d.ts +13 -0
- package/lib/esm/index.d.ts +23 -0
- package/lib/esm/index.js +10 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/utils/classNames.d.ts +1 -0
- package/lib/esm/utils/forwardRef.d.ts +35 -0
- package/lib/esm/utils/setRef.d.ts +9 -0
- package/lib/esm/utils/useClickOutside.d.ts +2 -0
- package/lib/esm/utils/useElement.d.ts +2 -0
- package/lib/esm/utils/useForkRef.d.ts +10 -0
- package/lib/images/layers-2x.png +0 -0
- package/lib/images/layers.png +0 -0
- package/lib/images/marker-icon-2x.png +0 -0
- package/lib/images/marker-icon.png +0 -0
- package/lib/images/marker-shadow.png +0 -0
- package/lib/index.d.ts +447 -0
- package/lib/styles/BarLoader/index.scss +132 -0
- package/lib/styles/Button/index.scss +147 -0
- package/lib/styles/Camera/index.css +196 -0
- package/lib/styles/Camera/index.scss +241 -0
- package/lib/styles/Dialog/index.scss +265 -0
- package/lib/styles/Icons/index.scss +9 -0
- package/lib/styles/Input/index.scss +69 -0
- package/lib/styles/Map/index.scss +50 -0
- package/lib/styles/Menu/index.scss +131 -0
- package/lib/styles/Popper/index.scss +24 -0
- package/lib/styles/Scanner/index.scss +110 -0
- package/lib/styles/Select/index.scss +13 -0
- package/lib/styles/Selected/index.scss +78 -0
- package/lib/styles/Spinner/index.scss +43 -0
- package/lib/styles/TagInput/index.scss +141 -0
- package/lib/styles/TextField/index.scss +22 -0
- package/lib/styles/ToggleButton/index.scss +60 -0
- package/lib/styles/Tooltip/index.scss +25 -0
- package/lib/styles/Transition/index.scss +15 -0
- package/lib/styles/global.scss +162 -0
- package/lib/styles/index.scss +50 -0
- package/lib/typings/typings/css.d.ts +12 -0
- package/lib/typings/typings/index.d.ts +31 -0
- package/lib/typings/typings/tagInput.d.ts +13 -0
- package/package.json +5 -4
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
@use "../global.scss";
|
|
2
|
+
|
|
3
|
+
@mixin dialog($props: null, $options: null) {
|
|
4
|
+
$internal-options: global.$default-options;
|
|
5
|
+
|
|
6
|
+
$internal-props: (
|
|
7
|
+
bgColor: #ffffff,
|
|
8
|
+
fgColor: global.$color-grey-darker,
|
|
9
|
+
closeBtnColor: global.$color-grey,
|
|
10
|
+
closeBtnHoverColor: global.$color-blue,
|
|
11
|
+
closeBtnDisableColor: global.$color-blue-grey-lighter,
|
|
12
|
+
confirm: (
|
|
13
|
+
headerBgColor: global.$color-orange-dark,
|
|
14
|
+
headerFgColor: #ffffff,
|
|
15
|
+
bgColor: #ffffff,
|
|
16
|
+
fgColor: global.$color-grey-darker,
|
|
17
|
+
),
|
|
18
|
+
error: (
|
|
19
|
+
headerBgColor: global.$color-red,
|
|
20
|
+
headerFgColor: #ffffff,
|
|
21
|
+
bgColor: #ffffff,
|
|
22
|
+
fgColor: global.$color-grey-darker,
|
|
23
|
+
),
|
|
24
|
+
warning: (
|
|
25
|
+
headerBgColor: global.$color-grey,
|
|
26
|
+
headerFgColor: #ffffff,
|
|
27
|
+
bgColor: #ffffff,
|
|
28
|
+
fgColor: global.$color-grey-darker,
|
|
29
|
+
),
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
$internal-props: global.safe-map-merge($internal-props, $props);
|
|
33
|
+
$internal-options: global.safe-map-merge($internal-options, $options);
|
|
34
|
+
|
|
35
|
+
.ui-dialog {
|
|
36
|
+
position: fixed;
|
|
37
|
+
top: 0;
|
|
38
|
+
left: 0;
|
|
39
|
+
right: 0;
|
|
40
|
+
bottom: 0;
|
|
41
|
+
z-index: 1300;
|
|
42
|
+
display: flex;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
align-items: center;
|
|
45
|
+
opacity: 1;
|
|
46
|
+
padding: global.$spacer;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.ui-dialog-overlay {
|
|
50
|
+
top: 0;
|
|
51
|
+
left: 0;
|
|
52
|
+
right: 0;
|
|
53
|
+
bottom: 0;
|
|
54
|
+
z-index: -1;
|
|
55
|
+
position: fixed;
|
|
56
|
+
touch-action: none;
|
|
57
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
58
|
+
-webkit-tap-highlight-color: transparent;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ui-dialog-container {
|
|
62
|
+
display: flex;
|
|
63
|
+
min-width: 400px;
|
|
64
|
+
flex: 0 1 auto;
|
|
65
|
+
max-height: 100%;
|
|
66
|
+
position: relative;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
background: global.get-map-deep($internal-props, "bgColor");
|
|
69
|
+
color: global.get-map-deep($internal-props, "fgColor");
|
|
70
|
+
border-radius: 4px;
|
|
71
|
+
box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14),
|
|
72
|
+
0px 9px 46px 8px rgba(0, 0, 0, 0.12);
|
|
73
|
+
animation: dialogExpand 0.15s ease-in-out;
|
|
74
|
+
min-height: 200px;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.ui-dialog-content {
|
|
79
|
+
position: relative;
|
|
80
|
+
overflow: auto;
|
|
81
|
+
max-height: 100%;
|
|
82
|
+
max-width: 100%;
|
|
83
|
+
height: auto;
|
|
84
|
+
width: auto;
|
|
85
|
+
border-bottom-left-radius: 4px;
|
|
86
|
+
border-bottom-right-radius: 4px;
|
|
87
|
+
flex: 1 1 auto;
|
|
88
|
+
padding: 10px 20px 15px 20px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.ui-dialog-title {
|
|
92
|
+
display: flex;
|
|
93
|
+
margin: 20px 20px 10px 20px;
|
|
94
|
+
font-size: 20px;
|
|
95
|
+
font-weight: bold;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.ui-dialog-actions {
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: flex-end;
|
|
102
|
+
padding: 8px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.ui-dialog-header {
|
|
106
|
+
flex: 0 0 auto;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.ui-dialog-footer {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex: 0 0 auto;
|
|
112
|
+
text-align: right;
|
|
113
|
+
|
|
114
|
+
.btn:not(:last-child) {
|
|
115
|
+
margin-right: 10px;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.ui-dialog-close {
|
|
120
|
+
font-size: 1.5rem;
|
|
121
|
+
background: none;
|
|
122
|
+
appearance: none;
|
|
123
|
+
border: 0;
|
|
124
|
+
padding: global.$spacer-xs;
|
|
125
|
+
margin: 0;
|
|
126
|
+
display: inline-flex;
|
|
127
|
+
margin-left: auto;
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
color: global.get-map-deep($internal-props, "closeBtnColor");
|
|
130
|
+
transition: color 250ms;
|
|
131
|
+
|
|
132
|
+
&:not(.ui-dialog-close-disable):hover {
|
|
133
|
+
color: global.get-map-deep($internal-props, "closeBtnHoverColor");
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.ui-dialog-close-disable {
|
|
138
|
+
color: global.get-map-deep($internal-props, "closeBtnDisableColor");
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.ui-dialog-box {
|
|
142
|
+
z-index: 5000;
|
|
143
|
+
|
|
144
|
+
.ui-dialog-header {
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
align-items: center;
|
|
148
|
+
padding: 30px 20px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.ui-dialog-icon {
|
|
152
|
+
width: 80px;
|
|
153
|
+
height: 80px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.ui-dialog-title {
|
|
157
|
+
font-size: 1.2em;
|
|
158
|
+
margin: 15px 0 0 0;
|
|
159
|
+
padding: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.ui-dialog-content {
|
|
163
|
+
padding: 30px 40px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.ui-dialog-footer {
|
|
167
|
+
justify-content: center;
|
|
168
|
+
padding: 10px 20px;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.ui-dialog-size-xs {
|
|
173
|
+
max-width: 444px;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.ui-dialog-size-sm {
|
|
177
|
+
max-width: 600px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.ui-dialog-size-md {
|
|
181
|
+
max-width: 900px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.ui-dialog-size-lg {
|
|
185
|
+
max-width: 1200px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.ui-dialog-size-xl {
|
|
189
|
+
max-width: 100%;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.ui-dialog-size-fullwidth {
|
|
193
|
+
width: 100%;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.ui-dialog-size-fullheight {
|
|
197
|
+
height: 100%;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.ui-dialog-confirm {
|
|
201
|
+
.ui-dialog-header {
|
|
202
|
+
background-color: global.get-map-deep($internal-props, "confirm.headerBgColor");
|
|
203
|
+
color: global.get-map-deep($internal-props, "confirm.headerFgColor");
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.ui-dialog-icon {
|
|
207
|
+
fill: global.get-map-deep($internal-props, "confirm.headerFgColor");
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.ui-dialog-content {
|
|
211
|
+
text-align: center;
|
|
212
|
+
background: global.get-map-deep($internal-props, "confirm.bgColor");
|
|
213
|
+
color: global.get-map-deep($internal-props, "confirm.fgColor");
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.ui-dialog-action-ok {
|
|
217
|
+
background-color: global.get-map-deep($internal-props, "confirm.headerBgColor");
|
|
218
|
+
color: global.get-map-deep($internal-props, "confirm.headerFgColor");
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.ui-dialog-error {
|
|
223
|
+
.ui-dialog-header {
|
|
224
|
+
background-color: global.get-map-deep($internal-props, "error.headerBgColor");
|
|
225
|
+
color: global.get-map-deep($internal-props, "error.headerFgColor");
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.ui-dialog-icon {
|
|
229
|
+
fill: global.get-map-deep($internal-props, "error.headerFgColor");
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.ui-dialog-content {
|
|
233
|
+
text-align: center;
|
|
234
|
+
background: global.get-map-deep($internal-props, "error.bgColor");
|
|
235
|
+
color: global.get-map-deep($internal-props, "error.fgColor");
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.ui-dialog-action-ok {
|
|
239
|
+
background-color: global.get-map-deep($internal-props, "error.headerBgColor");
|
|
240
|
+
color: global.get-map-deep($internal-props, "error.headerFgColor");
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.ui-dialog-warning {
|
|
245
|
+
.ui-dialog-header {
|
|
246
|
+
background-color: global.get-map-deep($internal-props, "warning.headerBgColor");
|
|
247
|
+
color: global.get-map-deep($internal-props, "warning.headerFgColor");
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.ui-dialog-icon {
|
|
251
|
+
fill: global.get-map-deep($internal-props, "warning.headerFgColor");
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.ui-dialog-content {
|
|
255
|
+
text-align: center;
|
|
256
|
+
background: global.get-map-deep($internal-props, "warning.bgColor");
|
|
257
|
+
color: global.get-map-deep($internal-props, "warning.fgColor");
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.ui-dialog-action-ok {
|
|
261
|
+
background-color: global.get-map-deep($internal-props, "warning.headerBgColor");
|
|
262
|
+
color: global.get-map-deep($internal-props, "warning.headerFgColor");
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
@use "../global.scss";
|
|
2
|
+
|
|
3
|
+
@mixin input($props: null, $options: null) {
|
|
4
|
+
$internal-options: global.$default-options;
|
|
5
|
+
|
|
6
|
+
$internal-props: (
|
|
7
|
+
color: blue,
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
$internal-props: global.safe-map-merge($internal-props, $props);
|
|
11
|
+
$internal-options: global.safe-map-merge($internal-options, $options);
|
|
12
|
+
|
|
13
|
+
.ui-input-container {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ui-input {
|
|
19
|
+
position: relative;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
height: 56px;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
background-color: #f5f5f5;
|
|
25
|
+
border-radius: 4 px 4 px 0 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ui-input-label {
|
|
29
|
+
position: absolute;
|
|
30
|
+
left: 16px;
|
|
31
|
+
top: 50%;
|
|
32
|
+
font-size: 1rem;
|
|
33
|
+
line-height: 1.75rem;
|
|
34
|
+
font-weight: 400;
|
|
35
|
+
text-transform: inherit;
|
|
36
|
+
transform-origin: left top;
|
|
37
|
+
transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
38
|
+
line-height: 1.15rem;
|
|
39
|
+
text-align: left;
|
|
40
|
+
text-overflow: ellipsis;
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
cursor: text;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
transform: translateY(-50%);
|
|
45
|
+
pointer-events: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.ui-input-label-above {
|
|
49
|
+
transform: translateY(-106%) scale(0.75);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ui-input-field {
|
|
53
|
+
border: none;
|
|
54
|
+
border-bottom: 1px solid;
|
|
55
|
+
border-radius: 0;
|
|
56
|
+
width: 100%;
|
|
57
|
+
height: 100%;
|
|
58
|
+
padding: 0 16px;
|
|
59
|
+
|
|
60
|
+
&:focus {
|
|
61
|
+
outline: none;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.ui-input-helper-line {
|
|
66
|
+
padding-right: 16px;
|
|
67
|
+
padding-left: 16px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@use "../global.scss";
|
|
2
|
+
|
|
3
|
+
@mixin map($props: null, $options: null) {
|
|
4
|
+
$internal-options: global.$default-options;
|
|
5
|
+
|
|
6
|
+
$internal-props: (
|
|
7
|
+
bgColor: #212121,
|
|
8
|
+
fgColor: #fff,
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
$internal-props: global.safe-map-merge($internal-props, $props);
|
|
12
|
+
$internal-options: global.safe-map-merge($internal-options, $options);
|
|
13
|
+
|
|
14
|
+
.cortex-widget-buttons {
|
|
15
|
+
margin: 20px;
|
|
16
|
+
text-align: right;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.leaflet-container {
|
|
20
|
+
height: 85% !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.cortex-widget-viewport {
|
|
24
|
+
position: absolute;
|
|
25
|
+
inset: 100px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.cortex-widget-btn {
|
|
29
|
+
color: #fff;
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
padding: 6px 12px;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
border: 0;
|
|
34
|
+
border-radius: 3px;
|
|
35
|
+
box-shadow: none;
|
|
36
|
+
width: 100px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.cortex-widget-btn-cancel {
|
|
40
|
+
margin: 10px;
|
|
41
|
+
background-color: #337ab7;
|
|
42
|
+
border-color: #2e6da4;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.cortex-widget-btn-save {
|
|
46
|
+
color: #fff;
|
|
47
|
+
background-color: #5cb85c;
|
|
48
|
+
border-color: #4cae4c;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
@use "../global.scss";
|
|
2
|
+
|
|
3
|
+
@mixin menu($props: null, $options: null) {
|
|
4
|
+
$internal-options: global.$default-options;
|
|
5
|
+
|
|
6
|
+
$internal-props: (
|
|
7
|
+
background-color: #fff,
|
|
8
|
+
group: (
|
|
9
|
+
color: #fff,
|
|
10
|
+
background-color: global.$color-grey-dark,
|
|
11
|
+
),
|
|
12
|
+
item: (
|
|
13
|
+
color: #000,
|
|
14
|
+
colorDisable: global.$color-grey,
|
|
15
|
+
background-color: #fff,
|
|
16
|
+
),
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
$internal-props: global.safe-map-merge($internal-props, $props);
|
|
20
|
+
$internal-options: global.safe-map-merge($internal-options, $options);
|
|
21
|
+
|
|
22
|
+
.ui-menu-popper {
|
|
23
|
+
z-index: 3000;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ui-menu {
|
|
27
|
+
@if global.showProps($internal-options) {
|
|
28
|
+
box-shadow: 0 2px 4px -1px #0003, 0 4px 5px #00000024, 0 1px 10px #0000001f;
|
|
29
|
+
min-width: 180px;
|
|
30
|
+
user-select: none;
|
|
31
|
+
margin: 0;
|
|
32
|
+
padding: 0;
|
|
33
|
+
z-index: 100;
|
|
34
|
+
}
|
|
35
|
+
@if global.showColors($internal-options) {
|
|
36
|
+
background-color: global.get-map-deep($internal-props, "background-color");
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ui-menuList {
|
|
41
|
+
@if global.showProps($internal-options) {
|
|
42
|
+
margin: 0;
|
|
43
|
+
padding: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.ui-menu .ui-menu {
|
|
48
|
+
max-height: 94vh;
|
|
49
|
+
overflow: auto;
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 0;
|
|
52
|
+
left: 92%;
|
|
53
|
+
// opacity: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ui-menuItem {
|
|
57
|
+
@if global.showProps($internal-options) {
|
|
58
|
+
position: relative;
|
|
59
|
+
display: block;
|
|
60
|
+
white-space: nowrap;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
}
|
|
63
|
+
@if global.showColors($internal-options) {
|
|
64
|
+
background-color: global.get-map-deep($internal-props, "item.background-color");
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:hover:not(.ui-menuItem-disable) {
|
|
68
|
+
background-color: #39b1d1;
|
|
69
|
+
|
|
70
|
+
> .ui-menuItem-btn {
|
|
71
|
+
color: #fff;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ui-menuItem-disable {
|
|
77
|
+
cursor: default;
|
|
78
|
+
|
|
79
|
+
.ui-menuItem-btn {
|
|
80
|
+
color: global.get-map-deep($internal-props, "item.colorDisable");
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.ui-menuItem-icon {
|
|
84
|
+
opacity: 0.2;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.ui-menuItem-btn {
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
width: 100%;
|
|
92
|
+
padding: (global.$spacer-xs * 3) global.$spacer-sm (global.$spacer-xs * 3) global.$spacer;
|
|
93
|
+
background: transparent;
|
|
94
|
+
border: 0;
|
|
95
|
+
font-size: 0.9em;
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
|
|
98
|
+
@if global.showColors($internal-options) {
|
|
99
|
+
color: global.get-map-deep($internal-props, "item.color");
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.ui-menuItem-icon {
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
margin-right: global.$spacer-sm;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.ui-menuItem-menuIconContainer{
|
|
110
|
+
margin-left: auto;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ui-menuItem-menuIcon {
|
|
114
|
+
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.ui-group-title {
|
|
118
|
+
@if global.showProps($internal-options) {
|
|
119
|
+
position: relative;
|
|
120
|
+
display: block;
|
|
121
|
+
white-space: nowrap;
|
|
122
|
+
padding: global.$spacer-sm global.$spacer-md;
|
|
123
|
+
cursor: pointer;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@if global.showColors($internal-options) {
|
|
127
|
+
color: global.get-map-deep($internal-props, "group.color");
|
|
128
|
+
background-color: global.get-map-deep($internal-props, "group.background-color");
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@use "../global.scss";
|
|
2
|
+
|
|
3
|
+
@mixin popper($props: null, $options: null) {
|
|
4
|
+
$internal-options: global.$default-options;
|
|
5
|
+
|
|
6
|
+
$internal-props: (
|
|
7
|
+
bgColor: #212121,
|
|
8
|
+
fgColor: #fff,
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
$internal-props: global.safe-map-merge($internal-props, $props);
|
|
12
|
+
$internal-options: global.safe-map-merge($internal-options, $options);
|
|
13
|
+
|
|
14
|
+
// .ui-popper {
|
|
15
|
+
// @if get-map-deep($internal-options, "properties") == true {
|
|
16
|
+
// padding: 8px;
|
|
17
|
+
// border-radius: 4px;
|
|
18
|
+
// }
|
|
19
|
+
// @if get-map-deep($internal-options, "colors") == true {
|
|
20
|
+
// background-color: get-map-deep($internal-props, "bgColor");
|
|
21
|
+
// color: get-map-deep($internal-props, "fgColor");
|
|
22
|
+
// }
|
|
23
|
+
// }
|
|
24
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
@use "../global.scss";
|
|
2
|
+
|
|
3
|
+
@mixin scanner($props: null, $options: null) {
|
|
4
|
+
$internal-options: global.$default-options;
|
|
5
|
+
|
|
6
|
+
$internal-props: (
|
|
7
|
+
bgColor: #ffffff,
|
|
8
|
+
fgColor: global.$color-grey-darker,
|
|
9
|
+
closeBtnColor: global.$color-grey,
|
|
10
|
+
closeBtnHoverColor: global.$color-blue,
|
|
11
|
+
closeBtnDisableColor: global.$color-blue-grey-lighter,
|
|
12
|
+
confirm: (
|
|
13
|
+
headerBgColor: global.$color-orange-dark,
|
|
14
|
+
headerFgColor: #ffffff,
|
|
15
|
+
bgColor: #ffffff,
|
|
16
|
+
fgColor: global.$color-grey-darker,
|
|
17
|
+
),
|
|
18
|
+
error: (
|
|
19
|
+
headerBgColor: global.$color-red,
|
|
20
|
+
headerFgColor: #ffffff,
|
|
21
|
+
bgColor: #ffffff,
|
|
22
|
+
fgColor: global.$color-grey-darker,
|
|
23
|
+
),
|
|
24
|
+
warning: (
|
|
25
|
+
headerBgColor: global.$color-grey,
|
|
26
|
+
headerFgColor: #ffffff,
|
|
27
|
+
bgColor: #ffffff,
|
|
28
|
+
fgColor: global.$color-grey-darker,
|
|
29
|
+
),
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
$internal-props: global.safe-map-merge($internal-props, $props);
|
|
33
|
+
$internal-options: global.safe-map-merge($internal-options, $options);
|
|
34
|
+
|
|
35
|
+
.btn {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
padding: 0.5rem 1rem;
|
|
40
|
+
border: 1px solid transparent;
|
|
41
|
+
border-radius: 0.375rem;
|
|
42
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
43
|
+
font-size: 0.875rem;
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
line-height: 1.25rem;
|
|
46
|
+
text-align: center;
|
|
47
|
+
text-transform: none;
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
vertical-align: middle;
|
|
50
|
+
user-select: none;
|
|
51
|
+
background-color: #4F46E5;
|
|
52
|
+
color: #fff;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
outline: none;
|
|
55
|
+
transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.btn-default {
|
|
59
|
+
background-color: #4F46E5;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.btn-default:hover {
|
|
63
|
+
opacity: 0.8;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.select {
|
|
67
|
+
display: block;
|
|
68
|
+
width: 100%;
|
|
69
|
+
padding-left: 0.75rem;
|
|
70
|
+
color: #000;
|
|
71
|
+
padding-right: 2.5rem;
|
|
72
|
+
padding-top: 0.5rem;
|
|
73
|
+
padding-bottom: 0.5rem;
|
|
74
|
+
font-size: 1rem;
|
|
75
|
+
border-radius: 0.375rem;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* DIALOG */
|
|
79
|
+
.dialog-header {
|
|
80
|
+
display: flex;
|
|
81
|
+
justify-content: space-between;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.dialog-header h4 {
|
|
85
|
+
margin: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.dialog-mask {
|
|
89
|
+
overflow-x: hidden;
|
|
90
|
+
overflow-y: auto;
|
|
91
|
+
display: flex;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
padding-top: 2.5rem;
|
|
94
|
+
padding-bottom: 5rem;
|
|
95
|
+
background-color: #0005;
|
|
96
|
+
position: fixed;
|
|
97
|
+
inset: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.dialog-body {
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
gap: 1.25rem;
|
|
104
|
+
padding: 1.25rem;
|
|
105
|
+
height: max-content;
|
|
106
|
+
background-color: white;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* DIALOG */
|
|
110
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@import "../global.scss";
|
|
2
|
+
|
|
3
|
+
@mixin select($props: null, $options: null) {
|
|
4
|
+
$internal-options: $default-options;
|
|
5
|
+
|
|
6
|
+
$internal-props: (
|
|
7
|
+
color: blue,
|
|
8
|
+
);
|
|
9
|
+
|
|
10
|
+
$internal-props: safe-map-merge($internal-props, $props);
|
|
11
|
+
$internal-options: safe-map-merge($internal-options, $options);
|
|
12
|
+
|
|
13
|
+
}
|