x4js 2.0.12 → 2.0.13
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 +15 -15
- package/lib/README.txt +15 -15
- package/lib/cjs/x4.css +1 -1
- package/lib/cjs/x4.js +1 -1
- package/lib/esm/x4.css +1 -1
- package/lib/esm/x4.mjs +1 -1
- package/lib/src/components/base.scss +25 -26
- package/lib/src/components/boxes/boxes.module.scss +37 -37
- package/lib/src/components/boxes/boxes.ts +129 -125
- package/lib/src/components/breadcrumb/breadcrumb.scss +28 -0
- package/lib/src/components/breadcrumb/breadcrumb.ts +84 -0
- package/lib/src/components/breadcrumb/chevron-right.svg +1 -0
- package/lib/src/components/btngroup/btngroup.module.scss +28 -28
- package/lib/src/components/btngroup/btngroup.ts +119 -101
- package/lib/src/components/button/button.module.scss +154 -153
- package/lib/src/components/button/button.ts +117 -117
- package/lib/src/components/calendar/calendar.module.scss +162 -162
- package/lib/src/components/calendar/calendar.ts +326 -325
- package/lib/src/components/checkbox/check.svg +3 -3
- package/lib/src/components/checkbox/checkbox.module.scss +141 -141
- package/lib/src/components/checkbox/checkbox.ts +125 -124
- package/lib/src/components/colorinput/colorinput.module.scss +64 -64
- package/lib/src/components/colorinput/colorinput.ts +90 -87
- package/lib/src/components/colorpicker/colorpicker.module.scss +132 -132
- package/lib/src/components/colorpicker/colorpicker.ts +481 -476
- package/lib/src/components/combobox/combobox.module.scss +123 -120
- package/lib/src/components/combobox/combobox.ts +192 -190
- package/lib/src/components/combobox/updown.svg +3 -3
- package/lib/src/components/components.ts +34 -0
- package/lib/src/components/dialog/dialog.module.scss +71 -71
- package/lib/src/components/dialog/dialog.ts +94 -92
- package/lib/src/components/form/form.module.scss +34 -34
- package/lib/src/components/form/form.ts +41 -36
- package/lib/src/components/grid/datastore.ts +1298 -0
- package/lib/src/components/grid/gridview.ts +1108 -0
- package/lib/src/components/grid/memdb.ts +325 -0
- package/lib/src/components/header/header.module.scss +39 -39
- package/lib/src/components/header/header.ts +129 -123
- package/lib/src/components/icon/icon.module.scss +29 -29
- package/lib/src/components/icon/icon.ts +136 -134
- package/lib/src/components/image/image.module.scss +20 -20
- package/lib/src/components/image/image.ts +68 -66
- package/lib/src/components/input/input.module.scss +69 -69
- package/lib/src/components/input/input.ts +275 -274
- package/lib/src/components/label/label.module.scss +58 -52
- package/lib/src/components/label/label.ts +64 -55
- package/lib/src/components/link/link.ts +78 -0
- package/lib/src/components/listbox/listbox.module.scss +103 -103
- package/lib/src/components/listbox/listbox.ts +431 -427
- package/lib/src/components/menu/menu.module.scss +107 -107
- package/lib/src/components/menu/menu.ts +171 -168
- package/lib/src/components/messages/messages.module.scss +48 -47
- package/lib/src/components/messages/messages.ts +68 -63
- package/lib/src/components/normalize.scss +386 -386
- package/lib/src/components/notification/notification.module.scss +81 -81
- package/lib/src/components/notification/notification.ts +109 -108
- package/lib/src/components/panel/panel.module.scss +47 -47
- package/lib/src/components/panel/panel.ts +57 -56
- package/lib/src/components/popup/popup.module.scss +43 -43
- package/lib/src/components/popup/popup.ts +396 -395
- package/lib/src/components/progress/progress.module.scss +56 -56
- package/lib/src/components/progress/progress.ts +43 -42
- package/lib/src/components/rating/rating.module.scss +22 -22
- package/lib/src/components/rating/rating.ts +131 -125
- package/lib/src/components/shared.scss +90 -76
- package/lib/src/components/sizers/sizer.module.scss +89 -89
- package/lib/src/components/sizers/sizer.ts +123 -119
- package/lib/src/components/slider/slider.module.scss +70 -70
- package/lib/src/components/slider/slider.ts +147 -142
- package/lib/src/components/switch/switch.module.scss +126 -126
- package/lib/src/components/switch/switch.ts +61 -55
- package/lib/src/components/tabs/tabs.module.scss +46 -46
- package/lib/src/components/tabs/tabs.ts +168 -157
- package/lib/src/components/textarea/textarea.module.scss +59 -59
- package/lib/src/components/textarea/textarea.ts +60 -54
- package/lib/src/components/textedit/textedit.module.scss +113 -113
- package/lib/src/components/textedit/textedit.ts +83 -82
- package/lib/src/components/themes.scss +81 -77
- package/lib/src/components/tooltips/tooltips.scss +50 -50
- package/lib/src/components/tooltips/tooltips.ts +103 -102
- package/lib/src/components/treeview/treeview.module.scss +115 -115
- package/lib/src/components/treeview/treeview.ts +410 -403
- package/lib/src/components/viewport/viewport.module.scss +24 -24
- package/lib/src/components/viewport/viewport.ts +41 -38
- package/lib/src/core/component.ts +1002 -979
- package/lib/src/core/core_application.ts +44 -0
- package/lib/src/core/core_colors.ts +249 -249
- package/lib/src/core/core_dom.ts +471 -471
- package/lib/src/core/core_dragdrop.ts +200 -200
- package/lib/src/core/core_element.ts +97 -97
- package/lib/src/core/core_events.ts +149 -149
- package/lib/src/core/core_i18n.ts +377 -377
- package/lib/src/core/core_router.ts +221 -221
- package/lib/src/core/core_styles.ts +214 -214
- package/lib/src/core/core_svg.ts +550 -550
- package/lib/src/core/core_tools.ts +688 -673
- package/lib/src/demo/assets/radio.svg +3 -3
- package/lib/src/demo/index.html +11 -11
- package/lib/src/demo/main.scss +21 -21
- package/lib/src/demo/main.tsx +323 -323
- package/lib/src/types/scss.d.ts +4 -4
- package/lib/src/types/x4react.d.ts +8 -8
- package/lib/src/x4.scss +18 -18
- package/lib/src/x4.ts +31 -62
- package/lib/styles/x4.css +1 -1
- package/lib/types/x4js.d.ts +100 -49
- package/package.json +2 -3
- package/src/x4.ts +31 -62
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ___ ___ __
|
|
3
|
-
* \ \/ / / _
|
|
4
|
-
* \ / /_| |_
|
|
5
|
-
* / \____ _|
|
|
6
|
-
* /__/\__\ |_|
|
|
7
|
-
*
|
|
8
|
-
* @file textedit.module.scss
|
|
9
|
-
* @author Etienne Cochard
|
|
10
|
-
*
|
|
11
|
-
* @copyright (c) 2024 R-libre ingenierie
|
|
12
|
-
*
|
|
13
|
-
* Use of this source code is governed by an MIT-style license
|
|
14
|
-
* that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
|
|
15
|
-
**/
|
|
16
|
-
|
|
17
|
-
@use "../shared.scss";
|
|
18
|
-
|
|
19
|
-
:root {
|
|
20
|
-
--textedit-border: var( --border );
|
|
21
|
-
--textedit-border-focus: var( --border-focus );
|
|
22
|
-
--textedit-required: var( --alert-background );
|
|
23
|
-
|
|
24
|
-
--textedit-btn-background: inherit;
|
|
25
|
-
--textedit-btn-color: var( --text-secondary );
|
|
26
|
-
--textedit-btn-color-hover: var( --text-primary );
|
|
27
|
-
|
|
28
|
-
--textedit-color-disabled: var( --disabled-background );
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.x4textedit {
|
|
32
|
-
@extend .hbox;
|
|
33
|
-
margin: 5px;
|
|
34
|
-
gap: 6px;
|
|
35
|
-
|
|
36
|
-
&> #label { // hbox
|
|
37
|
-
border-bottom: 1px solid transparent;
|
|
38
|
-
|
|
39
|
-
&> .x4label {
|
|
40
|
-
@extend .hbox;
|
|
41
|
-
height: 100%;
|
|
42
|
-
padding: 0;
|
|
43
|
-
font-weight: 500;
|
|
44
|
-
gap: 0;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&::after {
|
|
48
|
-
content: ":"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&> #edit {
|
|
53
|
-
@extend .hbox;
|
|
54
|
-
@extend .flex;
|
|
55
|
-
border-bottom: 1px solid var( --textedit-border );
|
|
56
|
-
|
|
57
|
-
.x4input {
|
|
58
|
-
@extend .flex;
|
|
59
|
-
outline: none;
|
|
60
|
-
margin: 0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.x4button {
|
|
64
|
-
margin: 0;
|
|
65
|
-
padding: 0;
|
|
66
|
-
background-color: var( --textedit-btn-background );
|
|
67
|
-
color: var( --textedit-btn-color );
|
|
68
|
-
|
|
69
|
-
#icon {
|
|
70
|
-
color: var( --textedit-btn-color );
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&:hover, &:hover #icon {
|
|
74
|
-
color: var( --textedit-btn-color-hover );
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&:focus {
|
|
78
|
-
border-bottom-color: var( --textedit-border-focus );
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&:focus-within {
|
|
84
|
-
#edit {
|
|
85
|
-
border-bottom-color: var( --textedit-border-focus );
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&[required] {
|
|
91
|
-
& > #label > .x4label::before {
|
|
92
|
-
content: "*";
|
|
93
|
-
font-weight: bold;
|
|
94
|
-
color: var( --textedit-required )
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&[disabled] {
|
|
99
|
-
&, * {
|
|
100
|
-
cursor: not-allowed;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
#label > .x4label #text,
|
|
104
|
-
#label > .x4label::before,
|
|
105
|
-
#label::after {
|
|
106
|
-
color: var( --textedit-color-disabled );
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
#edit input {
|
|
110
|
-
color: var( --textedit-color-disabled );
|
|
111
|
-
background-color: unset;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* ___ ___ __
|
|
3
|
+
* \ \/ / / _
|
|
4
|
+
* \ / /_| |_
|
|
5
|
+
* / \____ _|
|
|
6
|
+
* /__/\__\ |_|
|
|
7
|
+
*
|
|
8
|
+
* @file textedit.module.scss
|
|
9
|
+
* @author Etienne Cochard
|
|
10
|
+
*
|
|
11
|
+
* @copyright (c) 2024 R-libre ingenierie
|
|
12
|
+
*
|
|
13
|
+
* Use of this source code is governed by an MIT-style license
|
|
14
|
+
* that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
|
|
15
|
+
**/
|
|
16
|
+
|
|
17
|
+
@use "../shared.scss";
|
|
18
|
+
|
|
19
|
+
:root {
|
|
20
|
+
--textedit-border: var( --border );
|
|
21
|
+
--textedit-border-focus: var( --border-focus );
|
|
22
|
+
--textedit-required: var( --alert-background );
|
|
23
|
+
|
|
24
|
+
--textedit-btn-background: inherit;
|
|
25
|
+
--textedit-btn-color: var( --text-secondary );
|
|
26
|
+
--textedit-btn-color-hover: var( --text-primary );
|
|
27
|
+
|
|
28
|
+
--textedit-color-disabled: var( --disabled-background );
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.x4textedit {
|
|
32
|
+
@extend .hbox;
|
|
33
|
+
margin: 5px;
|
|
34
|
+
gap: 6px;
|
|
35
|
+
|
|
36
|
+
&> #label { // hbox
|
|
37
|
+
border-bottom: 1px solid transparent;
|
|
38
|
+
|
|
39
|
+
&> .x4label {
|
|
40
|
+
@extend .hbox;
|
|
41
|
+
height: 100%;
|
|
42
|
+
padding: 0;
|
|
43
|
+
font-weight: 500;
|
|
44
|
+
gap: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&::after {
|
|
48
|
+
content: ":"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&> #edit {
|
|
53
|
+
@extend .hbox;
|
|
54
|
+
@extend .flex;
|
|
55
|
+
border-bottom: 1px solid var( --textedit-border );
|
|
56
|
+
|
|
57
|
+
.x4input {
|
|
58
|
+
@extend .flex;
|
|
59
|
+
outline: none;
|
|
60
|
+
margin: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.x4button {
|
|
64
|
+
margin: 0;
|
|
65
|
+
padding: 0;
|
|
66
|
+
background-color: var( --textedit-btn-background );
|
|
67
|
+
color: var( --textedit-btn-color );
|
|
68
|
+
|
|
69
|
+
#icon {
|
|
70
|
+
color: var( --textedit-btn-color );
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:hover, &:hover #icon {
|
|
74
|
+
color: var( --textedit-btn-color-hover );
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:focus {
|
|
78
|
+
border-bottom-color: var( --textedit-border-focus );
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&:focus-within {
|
|
84
|
+
#edit {
|
|
85
|
+
border-bottom-color: var( --textedit-border-focus );
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&[required] {
|
|
91
|
+
& > #label > .x4label::before {
|
|
92
|
+
content: "*";
|
|
93
|
+
font-weight: bold;
|
|
94
|
+
color: var( --textedit-required )
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&[disabled] {
|
|
99
|
+
&, * {
|
|
100
|
+
cursor: not-allowed;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
#label > .x4label #text,
|
|
104
|
+
#label > .x4label::before,
|
|
105
|
+
#label::after {
|
|
106
|
+
color: var( --textedit-color-disabled );
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
#edit input {
|
|
110
|
+
color: var( --textedit-color-disabled );
|
|
111
|
+
background-color: unset;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
114
|
}
|
|
@@ -1,82 +1,83 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ___ ___ __
|
|
3
|
-
* \ \/ / / _
|
|
4
|
-
* \ / /_| |_
|
|
5
|
-
* / \____ _|
|
|
6
|
-
* /__/\__\ |_|
|
|
7
|
-
*
|
|
8
|
-
* @file textedit.ts
|
|
9
|
-
* @author Etienne Cochard
|
|
10
|
-
*
|
|
11
|
-
* @copyright (c) 2024 R-libre ingenierie
|
|
12
|
-
*
|
|
13
|
-
* Use of this source code is governed by an MIT-style license
|
|
14
|
-
* that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
|
|
15
|
-
**/
|
|
16
|
-
|
|
17
|
-
import { Component, ComponentProps, makeUniqueComponentId } from '../../core/component';
|
|
18
|
-
import { UnsafeHtml } from '../../core/core_tools';
|
|
19
|
-
|
|
20
|
-
import { HBox } from '../boxes/boxes';
|
|
21
|
-
import { Input, TextInputProps } from "../input/input"
|
|
22
|
-
import { Label } from '../label/label';
|
|
23
|
-
|
|
24
|
-
import "./textedit.module.scss";
|
|
25
|
-
|
|
26
|
-
//@todo: disabled
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
interface TextEditProps extends ComponentProps {
|
|
33
|
-
label: string | UnsafeHtml;
|
|
34
|
-
labelWidth?: number;
|
|
35
|
-
inputId?: string;
|
|
36
|
-
|
|
37
|
-
type?: "text" | "email" | "password";
|
|
38
|
-
readonly?: boolean;
|
|
39
|
-
required?: boolean;
|
|
40
|
-
value: string | number;
|
|
41
|
-
placeholder?: string;
|
|
42
|
-
|
|
43
|
-
inputGadgets?: Component[];
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* ___ ___ __
|
|
3
|
+
* \ \/ / / _
|
|
4
|
+
* \ / /_| |_
|
|
5
|
+
* / \____ _|
|
|
6
|
+
* /__/\__\ |_|
|
|
7
|
+
*
|
|
8
|
+
* @file textedit.ts
|
|
9
|
+
* @author Etienne Cochard
|
|
10
|
+
*
|
|
11
|
+
* @copyright (c) 2024 R-libre ingenierie
|
|
12
|
+
*
|
|
13
|
+
* Use of this source code is governed by an MIT-style license
|
|
14
|
+
* that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
|
|
15
|
+
**/
|
|
16
|
+
|
|
17
|
+
import { Component, ComponentProps, makeUniqueComponentId } from '../../core/component';
|
|
18
|
+
import { class_ns, UnsafeHtml } from '../../core/core_tools';
|
|
19
|
+
|
|
20
|
+
import { HBox } from '../boxes/boxes';
|
|
21
|
+
import { Input, TextInputProps } from "../input/input"
|
|
22
|
+
import { Label } from '../label/label';
|
|
23
|
+
|
|
24
|
+
import "./textedit.module.scss";
|
|
25
|
+
|
|
26
|
+
//@todo: disabled
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
interface TextEditProps extends ComponentProps {
|
|
33
|
+
label: string | UnsafeHtml;
|
|
34
|
+
labelWidth?: number;
|
|
35
|
+
inputId?: string;
|
|
36
|
+
|
|
37
|
+
type?: "text" | "email" | "password";
|
|
38
|
+
readonly?: boolean;
|
|
39
|
+
required?: boolean;
|
|
40
|
+
value: string | number;
|
|
41
|
+
placeholder?: string;
|
|
42
|
+
|
|
43
|
+
inputGadgets?: Component[];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
@class_ns( "x4" )
|
|
51
|
+
export class TextEdit extends HBox {
|
|
52
|
+
constructor( props: TextEditProps ) {
|
|
53
|
+
super( props );
|
|
54
|
+
|
|
55
|
+
if( !props.inputId ) {
|
|
56
|
+
props.inputId = makeUniqueComponentId()
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if( props.required ) {
|
|
60
|
+
this.setAttribute( "required", true );
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const gadgets = props.inputGadgets ?? [];
|
|
64
|
+
|
|
65
|
+
this.setContent( [
|
|
66
|
+
new HBox( { id: "label", width: props.labelWidth, content: [
|
|
67
|
+
new Label( { tag: "label", text: props.label, labelFor: props.inputId } ),
|
|
68
|
+
]}),
|
|
69
|
+
new HBox( { id: "edit", content: [
|
|
70
|
+
new Input( {
|
|
71
|
+
type: props.type ?? "text",
|
|
72
|
+
readonly: props.readonly,
|
|
73
|
+
value: props.value,
|
|
74
|
+
id: props.inputId,
|
|
75
|
+
required: props.required,
|
|
76
|
+
disabled: props.disabled,
|
|
77
|
+
placeholder: props.placeholder
|
|
78
|
+
} ),
|
|
79
|
+
...gadgets,
|
|
80
|
+
]})
|
|
81
|
+
])
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -1,77 +1,81 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ___ ___ __
|
|
3
|
-
* \ \/ / / _
|
|
4
|
-
* \ / /_| |_
|
|
5
|
-
* / \____ _|
|
|
6
|
-
* /__/\__\ |_|
|
|
7
|
-
*
|
|
8
|
-
* @file themes.scss
|
|
9
|
-
* @author Etienne Cochard
|
|
10
|
-
*
|
|
11
|
-
* @copyright (c) 2024 R-libre ingenierie
|
|
12
|
-
*
|
|
13
|
-
* Use of this source code is governed by an MIT-style license
|
|
14
|
-
* that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
|
|
15
|
-
**/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
--color-primary-
|
|
23
|
-
--color-primary-
|
|
24
|
-
--color-primary-
|
|
25
|
-
--color-primary-
|
|
26
|
-
--color-primary-
|
|
27
|
-
--color-primary-
|
|
28
|
-
--color-primary-
|
|
29
|
-
--color-primary-
|
|
30
|
-
|
|
31
|
-
--color-
|
|
32
|
-
--color-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
--color-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
//
|
|
44
|
-
--
|
|
45
|
-
--
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
//
|
|
49
|
-
--
|
|
50
|
-
--
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
--
|
|
55
|
-
--
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
--accent-
|
|
60
|
-
--accent-
|
|
61
|
-
--accent-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
--
|
|
66
|
-
--
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
--
|
|
70
|
-
--
|
|
71
|
-
--
|
|
72
|
-
|
|
73
|
-
--
|
|
74
|
-
--
|
|
75
|
-
--
|
|
76
|
-
|
|
77
|
-
|
|
1
|
+
/**
|
|
2
|
+
* ___ ___ __
|
|
3
|
+
* \ \/ / / _
|
|
4
|
+
* \ / /_| |_
|
|
5
|
+
* / \____ _|
|
|
6
|
+
* /__/\__\ |_|
|
|
7
|
+
*
|
|
8
|
+
* @file themes.scss
|
|
9
|
+
* @author Etienne Cochard
|
|
10
|
+
*
|
|
11
|
+
* @copyright (c) 2024 R-libre ingenierie
|
|
12
|
+
*
|
|
13
|
+
* Use of this source code is governed by an MIT-style license
|
|
14
|
+
* that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
|
|
15
|
+
**/
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
$color--base: #569cd6;
|
|
19
|
+
$color--interval: 8.4%;
|
|
20
|
+
|
|
21
|
+
:root {
|
|
22
|
+
--color-primary-a0: #ffffff;
|
|
23
|
+
--color-primary-a10: #{lighten($color--base, $color--interval * 4)};
|
|
24
|
+
--color-primary-a20: #{lighten($color--base, $color--interval * 3)};
|
|
25
|
+
--color-primary-a30: #{lighten($color--base, $color--interval * 2)};
|
|
26
|
+
--color-primary-a40: #{lighten($color--base, $color--interval)};
|
|
27
|
+
--color-primary-a50: #{$color--base};
|
|
28
|
+
--color-primary-a55: #{darken($color--base,5%)};
|
|
29
|
+
--color-primary-a60: #{darken($color--base, $color--interval )};
|
|
30
|
+
--color-primary-a70: #{darken($color--base, $color--interval * 2)};
|
|
31
|
+
--color-primary-a80: #{darken($color--base, $color--interval * 3)};
|
|
32
|
+
--color-primary-a90: #{darken($color--base, $color--interval * 4)};
|
|
33
|
+
--color-primary-a100: #000000;
|
|
34
|
+
|
|
35
|
+
--color-danger-a50: #c01010;
|
|
36
|
+
--color-danger-a60: #{darken(#c01010,10%)};
|
|
37
|
+
|
|
38
|
+
--color-success-a50: #10c01f;
|
|
39
|
+
--color-success-a60: #{darken(#10c01f,10%)};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:root {
|
|
43
|
+
// Backgrounds
|
|
44
|
+
--background-primary: var(--color-primary-a0); // Fond principal
|
|
45
|
+
--background-secondary: var(--color-primary-a10); // Fond secondaire
|
|
46
|
+
|
|
47
|
+
// Texts
|
|
48
|
+
--text-primary: var(--color-primary-a100); // Texte principal
|
|
49
|
+
--text-secondary: #999; // Texte secondaire
|
|
50
|
+
--text-ternary: #666; // Texte tertiaire
|
|
51
|
+
|
|
52
|
+
// disabled
|
|
53
|
+
--disabled-background: #ccc;
|
|
54
|
+
--disabled-color: white;
|
|
55
|
+
--disabled-color-dark: #aaa;
|
|
56
|
+
|
|
57
|
+
// accents
|
|
58
|
+
--accent-background: var(--color-primary-a60);
|
|
59
|
+
--accent-background-hover: var(--color-primary-a55);
|
|
60
|
+
--accent-background-focus: var(--color-primary-a70);
|
|
61
|
+
--accent-background-active: var(--color-primary-a80);
|
|
62
|
+
|
|
63
|
+
--accent-color: var(--color-primary-a0);
|
|
64
|
+
--accent-color-hover: var(--color-primary-a0);
|
|
65
|
+
--accent-color-focus: var(--color-primary-a0);
|
|
66
|
+
--accent-color-active: var(--color-primary-a0);
|
|
67
|
+
|
|
68
|
+
// Borders
|
|
69
|
+
--border: #e1e1e1; // Bordures
|
|
70
|
+
--border-hover: #c2c2c2; // Bordures au survol
|
|
71
|
+
--border-focus: var( --accent-background ); // Bordures si focus
|
|
72
|
+
|
|
73
|
+
--alert-background: var( --color-danger-a50 );
|
|
74
|
+
--alert-background-active: var( --color-danger-a60 );
|
|
75
|
+
--alert-color: var( --color-primary-a0 );
|
|
76
|
+
|
|
77
|
+
--success-background: var( --color-success-a50 );
|
|
78
|
+
--success-background-active: var( --color-success-a60 );
|
|
79
|
+
--success-color: var( --color-success-a0 );
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ___ ___ __
|
|
3
|
-
* \ \/ / / _
|
|
4
|
-
* \ / /_| |_
|
|
5
|
-
* / \____ _|
|
|
6
|
-
* /__/\__\ |_|
|
|
7
|
-
*
|
|
8
|
-
* @file tooltips.scss
|
|
9
|
-
* @author Etienne Cochard
|
|
10
|
-
*
|
|
11
|
-
* @copyright (c) 2024 R-libre ingenierie
|
|
12
|
-
*
|
|
13
|
-
* Use of this source code is governed by an MIT-style license
|
|
14
|
-
* that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
|
|
15
|
-
**/
|
|
16
|
-
|
|
17
|
-
@use "../shared.scss";
|
|
18
|
-
|
|
19
|
-
:root {
|
|
20
|
-
--tooltip-background: var( --color-primary-a70 );
|
|
21
|
-
--tooltip-color: var( --color-primary-a0 );
|
|
22
|
-
--tooltip-border: var( --border-dark );
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.x4tooltip {
|
|
26
|
-
@extend .shadow-lg;
|
|
27
|
-
display: flex;
|
|
28
|
-
flex-direction: row;
|
|
29
|
-
border: none;
|
|
30
|
-
font-size: 90%;
|
|
31
|
-
position: absolute;
|
|
32
|
-
|
|
33
|
-
.x4icon {
|
|
34
|
-
width: 1.6em;
|
|
35
|
-
height: 100%;
|
|
36
|
-
padding: 2px 4px;
|
|
37
|
-
svg {
|
|
38
|
-
max-height: 100%;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
background-color: var( --tooltip-background );
|
|
42
|
-
color: var( --tooltip-color );
|
|
43
|
-
border: 1px solid var( --tooltip-border );
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
#text {
|
|
47
|
-
background-color: var( --tooltip-background );
|
|
48
|
-
color: var( --tooltip-color );
|
|
49
|
-
padding: 4px;
|
|
50
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* ___ ___ __
|
|
3
|
+
* \ \/ / / _
|
|
4
|
+
* \ / /_| |_
|
|
5
|
+
* / \____ _|
|
|
6
|
+
* /__/\__\ |_|
|
|
7
|
+
*
|
|
8
|
+
* @file tooltips.scss
|
|
9
|
+
* @author Etienne Cochard
|
|
10
|
+
*
|
|
11
|
+
* @copyright (c) 2024 R-libre ingenierie
|
|
12
|
+
*
|
|
13
|
+
* Use of this source code is governed by an MIT-style license
|
|
14
|
+
* that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.
|
|
15
|
+
**/
|
|
16
|
+
|
|
17
|
+
@use "../shared.scss";
|
|
18
|
+
|
|
19
|
+
:root {
|
|
20
|
+
--tooltip-background: var( --color-primary-a70 );
|
|
21
|
+
--tooltip-color: var( --color-primary-a0 );
|
|
22
|
+
--tooltip-border: var( --border-dark );
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.x4tooltip {
|
|
26
|
+
@extend .shadow-lg;
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: row;
|
|
29
|
+
border: none;
|
|
30
|
+
font-size: 90%;
|
|
31
|
+
position: absolute;
|
|
32
|
+
|
|
33
|
+
.x4icon {
|
|
34
|
+
width: 1.6em;
|
|
35
|
+
height: 100%;
|
|
36
|
+
padding: 2px 4px;
|
|
37
|
+
svg {
|
|
38
|
+
max-height: 100%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
background-color: var( --tooltip-background );
|
|
42
|
+
color: var( --tooltip-color );
|
|
43
|
+
border: 1px solid var( --tooltip-border );
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
#text {
|
|
47
|
+
background-color: var( --tooltip-background );
|
|
48
|
+
color: var( --tooltip-color );
|
|
49
|
+
padding: 4px;
|
|
50
|
+
}
|
|
51
51
|
}
|