@qtoggle/qui 0.0.0
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/.eslintignore +2 -0
- package/.eslintrc.json +492 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +33 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +23 -0
- package/.github/ISSUE_TEMPLATE/improvement_proposal.md +20 -0
- package/.github/workflows/main.yml +74 -0
- package/.pre-commit-config.yaml +8 -0
- package/LICENSE.txt +177 -0
- package/README.md +4 -0
- package/font/dejavusans-bold.woff +0 -0
- package/font/dejavusans-bolditalic.woff +0 -0
- package/font/dejavusans-italic.woff +0 -0
- package/font/dejavusans-regular.woff +0 -0
- package/img/qui-icons.svg +1937 -0
- package/js/base/base.js +47 -0
- package/js/base/condition-variable.js +92 -0
- package/js/base/errors.js +36 -0
- package/js/base/i18n.js +20 -0
- package/js/base/mixwith.js +135 -0
- package/js/base/require-js-compat.js +78 -0
- package/js/base/signal.js +91 -0
- package/js/base/singleton.js +66 -0
- package/js/base/timer.js +126 -0
- package/js/config.js +184 -0
- package/js/forms/common-fields/check-field.js +42 -0
- package/js/forms/common-fields/choice-buttons-field.js +30 -0
- package/js/forms/common-fields/color-combo-field.js +37 -0
- package/js/forms/common-fields/combo-field.js +108 -0
- package/js/forms/common-fields/common-fields.js +23 -0
- package/js/forms/common-fields/composite-field.js +132 -0
- package/js/forms/common-fields/custom-html-field.js +51 -0
- package/js/forms/common-fields/email-field.js +30 -0
- package/js/forms/common-fields/file-picker-field.js +46 -0
- package/js/forms/common-fields/jquery-ui-field.js +111 -0
- package/js/forms/common-fields/labels-field.js +69 -0
- package/js/forms/common-fields/numeric-field.js +39 -0
- package/js/forms/common-fields/password-field.js +28 -0
- package/js/forms/common-fields/phone-field.js +26 -0
- package/js/forms/common-fields/progress-disk-field.js +69 -0
- package/js/forms/common-fields/push-button-field.js +138 -0
- package/js/forms/common-fields/slider-field.js +51 -0
- package/js/forms/common-fields/text-area-field.js +34 -0
- package/js/forms/common-fields/text-field.js +89 -0
- package/js/forms/common-fields/up-down-field.js +85 -0
- package/js/forms/common-forms/common-forms.js +16 -0
- package/js/forms/common-forms/options-form.js +77 -0
- package/js/forms/common-forms/page-form.js +115 -0
- package/js/forms/form-button.js +202 -0
- package/js/forms/form-field.js +1183 -0
- package/js/forms/form.js +1181 -0
- package/js/forms/forms.js +68 -0
- package/js/global-glass.js +100 -0
- package/js/icons/default-stock.js +173 -0
- package/js/icons/icon.js +64 -0
- package/js/icons/icons.js +16 -0
- package/js/icons/multi-state-sprites-icon.js +362 -0
- package/js/icons/stock-icon.js +219 -0
- package/js/icons/stock.js +98 -0
- package/js/icons/stocks.js +57 -0
- package/js/index.js +232 -0
- package/js/lib/jquery.longpress.js +79 -0
- package/js/lib/jquery.module.js +4 -0
- package/js/lib/logger.module.js +4 -0
- package/js/lib/pep.module.js +4 -0
- package/js/lists/common-items/common-items.js +5 -0
- package/js/lists/common-items/icon-label-list-item.js +86 -0
- package/js/lists/common-lists/common-lists.js +5 -0
- package/js/lists/common-lists/page-list.js +53 -0
- package/js/lists/list-item.js +147 -0
- package/js/lists/list.js +636 -0
- package/js/lists/lists.js +26 -0
- package/js/main-ui/main-ui.js +64 -0
- package/js/main-ui/menu-bar.js +144 -0
- package/js/main-ui/options-bar.js +181 -0
- package/js/main-ui/status.js +185 -0
- package/js/main-ui/top-bar.js +59 -0
- package/js/messages/common-message-forms/common-message-forms.js +7 -0
- package/js/messages/common-message-forms/confirm-message-form.js +81 -0
- package/js/messages/common-message-forms/simple-message-form.js +67 -0
- package/js/messages/common-message-forms/sticky-simple-message-form.js +27 -0
- package/js/messages/message-form.js +107 -0
- package/js/messages/messages.js +21 -0
- package/js/messages/sticky-modal-page.js +98 -0
- package/js/messages/sticky-modal-progress-message.js +27 -0
- package/js/messages/toast.js +164 -0
- package/js/navigation.js +654 -0
- package/js/pages/breadcrumbs.js +124 -0
- package/js/pages/common-pages/common-pages.js +6 -0
- package/js/pages/common-pages/modal-progress-page.js +83 -0
- package/js/pages/common-pages/structured-page.js +46 -0
- package/js/pages/page.js +1018 -0
- package/js/pages/pages-context.js +154 -0
- package/js/pages/pages.js +252 -0
- package/js/pwa.js +337 -0
- package/js/sections/section.js +612 -0
- package/js/sections/sections.js +300 -0
- package/js/tables/common-cells/common-cells.js +7 -0
- package/js/tables/common-cells/icon-label-table-cell.js +68 -0
- package/js/tables/common-cells/push-button-table-cell.js +133 -0
- package/js/tables/common-cells/simple-table-cell.js +37 -0
- package/js/tables/common-tables/common-tables.js +5 -0
- package/js/tables/common-tables/page-table.js +55 -0
- package/js/tables/table-cell.js +198 -0
- package/js/tables/table-row.js +126 -0
- package/js/tables/table.js +492 -0
- package/js/tables/tables.js +36 -0
- package/js/theme.js +304 -0
- package/js/utils/ajax.js +126 -0
- package/js/utils/array.js +194 -0
- package/js/utils/colors.js +445 -0
- package/js/utils/cookies.js +65 -0
- package/js/utils/crypto.js +439 -0
- package/js/utils/css.js +234 -0
- package/js/utils/date.js +300 -0
- package/js/utils/files.js +27 -0
- package/js/utils/gestures.js +165 -0
- package/js/utils/html.js +76 -0
- package/js/utils/misc.js +81 -0
- package/js/utils/object.js +324 -0
- package/js/utils/promise.js +49 -0
- package/js/utils/string.js +192 -0
- package/js/utils/url.js +187 -0
- package/js/utils/utils.js +3 -0
- package/js/utils/visibility-manager.js +211 -0
- package/js/views/common-views/common-views.js +7 -0
- package/js/views/common-views/icon-label-view.js +210 -0
- package/js/views/common-views/progress-view.js +89 -0
- package/js/views/common-views/structured-view.js +368 -0
- package/js/views/view.js +467 -0
- package/js/views/views.js +3 -0
- package/js/widgets/base-widget.js +23 -0
- package/js/widgets/common-widgets/check-button.js +109 -0
- package/js/widgets/common-widgets/choice-buttons.js +322 -0
- package/js/widgets/common-widgets/color-combo.js +104 -0
- package/js/widgets/common-widgets/combo.js +645 -0
- package/js/widgets/common-widgets/common-widgets.js +17 -0
- package/js/widgets/common-widgets/email-input.js +7 -0
- package/js/widgets/common-widgets/file-picker.js +133 -0
- package/js/widgets/common-widgets/labels.js +132 -0
- package/js/widgets/common-widgets/numeric-input.js +49 -0
- package/js/widgets/common-widgets/password-input.js +91 -0
- package/js/widgets/common-widgets/phone-input.js +7 -0
- package/js/widgets/common-widgets/progress-disk.js +174 -0
- package/js/widgets/common-widgets/push-button.js +155 -0
- package/js/widgets/common-widgets/slider.js +455 -0
- package/js/widgets/common-widgets/text-area.js +52 -0
- package/js/widgets/common-widgets/text-input.js +174 -0
- package/js/widgets/common-widgets/up-down.js +351 -0
- package/js/widgets/widgets.js +57 -0
- package/js/window.js +557 -0
- package/jsdoc.conf.json +20 -0
- package/less/base.less +123 -0
- package/less/forms/common-fields.less +101 -0
- package/less/forms/common-forms.less +5 -0
- package/less/forms/form-button.less +21 -0
- package/less/forms/form-field.less +266 -0
- package/less/forms/form.less +131 -0
- package/less/global-glass.less +64 -0
- package/less/icon-label-view.less +82 -0
- package/less/icons.less +144 -0
- package/less/lists.less +105 -0
- package/less/main-ui.less +328 -0
- package/less/messages.less +189 -0
- package/less/no-effects.less +24 -0
- package/less/pages/breadcrumbs.less +98 -0
- package/less/pages/common-pages.less +36 -0
- package/less/pages/page.less +70 -0
- package/less/progress-view.less +51 -0
- package/less/stock-icons.less +43 -0
- package/less/structured-view.less +245 -0
- package/less/tables.less +84 -0
- package/less/theme-dark.less +133 -0
- package/less/theme-light.less +132 -0
- package/less/theme.less +419 -0
- package/less/visibility-manager.less +11 -0
- package/less/widgets/check-button.less +96 -0
- package/less/widgets/choice-buttons.less +160 -0
- package/less/widgets/color-combo.less +33 -0
- package/less/widgets/combo.less +230 -0
- package/less/widgets/common-buttons.less +120 -0
- package/less/widgets/common.less +24 -0
- package/less/widgets/input.less +258 -0
- package/less/widgets/labels.less +81 -0
- package/less/widgets/progress-disk.less +70 -0
- package/less/widgets/slider.less +199 -0
- package/less/widgets/updown.less +115 -0
- package/less/widgets/various.less +36 -0
- package/package.json +47 -0
- package/pyproject.toml +45 -0
- package/qui/__init__.py +110 -0
- package/qui/constants.py +1 -0
- package/qui/exceptions.py +2 -0
- package/qui/j2template.py +71 -0
- package/qui/settings.py +60 -0
- package/qui/templates/manifest.json +25 -0
- package/qui/templates/qui.html +126 -0
- package/qui/templates/service-worker.js +188 -0
- package/qui/web/__init__.py +0 -0
- package/qui/web/tornado.py +220 -0
- package/scripts/postinstall.sh +10 -0
- package/webpack/webpack-adjust-css-urls-loader.js +36 -0
- package/webpack/webpack-common.js +384 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
|
|
2
|
+
@import (reference) "../theme";
|
|
3
|
+
@import (reference) "../widgets/common";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/* Fields based on input entries */
|
|
7
|
+
|
|
8
|
+
div.qui-form-field-value {
|
|
9
|
+
|
|
10
|
+
& > div.qui-text-input > input,
|
|
11
|
+
& > div.qui-text-input > textarea {
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/* Check field */
|
|
19
|
+
|
|
20
|
+
div.qui-form-body > div.qui-form-field.jquery-ui-checkbutton.auto-width {
|
|
21
|
+
/* Position the check field label and value on the same line */
|
|
22
|
+
|
|
23
|
+
& {
|
|
24
|
+
display: grid;
|
|
25
|
+
grid-template-columns: 1fr auto auto;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
& > div.qui-form-field-description,
|
|
29
|
+
& > div.qui-form-field-warning,
|
|
30
|
+
& > div.qui-form-field-error {
|
|
31
|
+
grid-column-start: 1;
|
|
32
|
+
grid-column-end: 4;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
& > div.qui-form-field-label {
|
|
36
|
+
align-self: center;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/* Combo */
|
|
42
|
+
|
|
43
|
+
div.qui-form-field.has-error > div.qui-form-field-value > div.qui-combo-container:NOT(.disabled) >
|
|
44
|
+
div.qui-combo-button {
|
|
45
|
+
|
|
46
|
+
border-color: @error-color;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
div.qui-form-field.has-error > div.qui-form-field-value > div.qui-combo-container:NOT(.disabled) >
|
|
50
|
+
div.qui-combo-button.active {
|
|
51
|
+
|
|
52
|
+
border-color: @error-active-color;
|
|
53
|
+
background: @error-active-color;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
div.qui-form-field.has-error > div.qui-form-field-value > div.qui-combo-container:FOCUS > div.qui-combo-button,
|
|
57
|
+
div.qui-form-field.has-error > div.qui-form-field-value > div.qui-combo-container > div.qui-combo-button.open {
|
|
58
|
+
background: @error-color;
|
|
59
|
+
border-color: @error-color;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
div.qui-form-field.has-error > div.qui-form-field-value > div.qui-combo-container:NOT(:FOCUS) >
|
|
63
|
+
div.qui-combo-button:NOT(.active):NOT(.open) > span.qui-combo-arrow-separator {
|
|
64
|
+
|
|
65
|
+
border-color: @error-color;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
div.qui-form-field.has-error > div.qui-form-field-value > div.qui-combo-container:NOT(:FOCUS) >
|
|
69
|
+
div.qui-combo-button:NOT(.active):NOT(.open) > span.qui-combo-arrow {
|
|
70
|
+
|
|
71
|
+
border-top-color: @error-color;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/* Push button */
|
|
76
|
+
|
|
77
|
+
div.qui-form-push-button {
|
|
78
|
+
padding: 0 0.5em;
|
|
79
|
+
line-height: 2em;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/* Labels */
|
|
84
|
+
|
|
85
|
+
div.qui-form-field-value > div.qui-labels-container.chevrons {
|
|
86
|
+
white-space: nowrap;
|
|
87
|
+
max-width: 100%;
|
|
88
|
+
overflow: auto;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/* Composite field */
|
|
93
|
+
|
|
94
|
+
div.qui-composite-field-container {
|
|
95
|
+
display: grid;
|
|
96
|
+
grid-gap: 0.5em;
|
|
97
|
+
|
|
98
|
+
& > div.qui-form-field > div.qui-form-field-value {
|
|
99
|
+
padding: 0;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
@import (reference) "../theme";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
div.qui-form-button {
|
|
6
|
+
line-height: 2.5em;
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
text-overflow: ellipsis;
|
|
10
|
+
vertical-align: middle;
|
|
11
|
+
padding: 0 0.5em;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
form.qui-form.no-background > div.qui-form-bottom {
|
|
15
|
+
background: transparent;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
body.small-screen form.qui-form > div.qui-form-bottom > div.qui-form-button,
|
|
19
|
+
form.qui-form.compact > div.qui-form-bottom > div.qui-form-button {
|
|
20
|
+
min-width: auto;
|
|
21
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
|
|
2
|
+
@import (reference) "../theme";
|
|
3
|
+
@import (reference) "../base";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
div.qui-form-field {
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
transition: height @transition-duration ease,
|
|
9
|
+
opacity @transition-duration ease;
|
|
10
|
+
position: relative;
|
|
11
|
+
|
|
12
|
+
&.first-visible {
|
|
13
|
+
padding-top: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.last-visible {
|
|
17
|
+
padding-bottom: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.hidden {
|
|
21
|
+
opacity: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.separator:NOT(.first-visible) {
|
|
25
|
+
border-top: 0.0625em solid @border-color;
|
|
26
|
+
margin-top: 0.5em;
|
|
27
|
+
padding-top: 0.5em;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
form.qui-form.compact > div.qui-form-body > & {
|
|
31
|
+
|
|
32
|
+
&:NOT(.force-one-line) {
|
|
33
|
+
white-space: normal;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.separator:NOT(.first-visible) {
|
|
37
|
+
margin-top: 0.25em;
|
|
38
|
+
padding-top: 0.25em;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:NOT(.force-one-line) {
|
|
42
|
+
padding-top: 0.4em;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
/* Warning & error */
|
|
51
|
+
|
|
52
|
+
div.qui-form-field-warning {
|
|
53
|
+
color: @warning-color;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
div.qui-form-field-error {
|
|
57
|
+
color: @error-color;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
div.qui-form-field-warning,
|
|
61
|
+
div.qui-form-field-error {
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
max-height: 0;
|
|
64
|
+
opacity: 0;
|
|
65
|
+
white-space: normal;
|
|
66
|
+
text-align: right;
|
|
67
|
+
transition: opacity @transition-duration ease,
|
|
68
|
+
max-height @transition-duration ease;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
div.qui-form-field.has-warning.warning-visible > div.qui-form-field-warning,
|
|
72
|
+
div.qui-form-field.has-error.error-visible > div.qui-form-field-error {
|
|
73
|
+
max-height: 5em;
|
|
74
|
+
padding-top: 0.5em;
|
|
75
|
+
opacity: 1;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
span.qui-form-field-warning-text,
|
|
79
|
+
span.qui-form-field-error-text {
|
|
80
|
+
padding: 0.5em 0;
|
|
81
|
+
text-align: left;
|
|
82
|
+
font-size: 0.75em;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
div.qui-form-field-warning-label,
|
|
86
|
+
div.qui-form-field-error-label {
|
|
87
|
+
display: inline-flex;
|
|
88
|
+
position: relative;
|
|
89
|
+
background: @border-color;
|
|
90
|
+
border-radius: 1em;
|
|
91
|
+
border-bottom-right-radius: 0;
|
|
92
|
+
padding: 0 0.5em;
|
|
93
|
+
align-items: center;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
/* Description */
|
|
98
|
+
|
|
99
|
+
div.qui-form-field-description {
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
max-height: 0;
|
|
102
|
+
opacity: 0;
|
|
103
|
+
white-space: normal;
|
|
104
|
+
color: @info-color;
|
|
105
|
+
text-align: right;
|
|
106
|
+
transition: opacity @transition-duration ease,
|
|
107
|
+
max-height @transition-duration ease;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
div.qui-form-field.description-visible > div.qui-form-field-description {
|
|
111
|
+
max-height: 5em;
|
|
112
|
+
padding-top: 0.5em;
|
|
113
|
+
opacity: 1;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
span.qui-form-field-description-icon {
|
|
117
|
+
display: inline-block;
|
|
118
|
+
background-image: url('@{qui_img_path}/qui-icons.svg');
|
|
119
|
+
background-size: 80em;
|
|
120
|
+
background-position: @info-icon-x-offset @info-icon-y-offset;
|
|
121
|
+
transform: scale(0.75);
|
|
122
|
+
width: 2em;
|
|
123
|
+
height: 2em;
|
|
124
|
+
flex: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
span.qui-form-field-description-text {
|
|
128
|
+
padding: 0.5em 0;
|
|
129
|
+
text-align: left;
|
|
130
|
+
font-size: 0.75em;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
div.qui-form-field-description-label {
|
|
134
|
+
display: inline-flex;
|
|
135
|
+
position: relative;
|
|
136
|
+
background: @border-color;
|
|
137
|
+
border-radius: 1em;
|
|
138
|
+
border-bottom-right-radius: 0;
|
|
139
|
+
padding-right: 0.5em;
|
|
140
|
+
align-items: center;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
div.qui-form-field.auto-width {
|
|
144
|
+
width: 100%;
|
|
145
|
+
padding-right: 0;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
/* Label */
|
|
150
|
+
|
|
151
|
+
div.qui-form-field-label {
|
|
152
|
+
display: none;
|
|
153
|
+
width: 50%;
|
|
154
|
+
padding: 0.2em 0.5em 0.2em 0.2em;
|
|
155
|
+
white-space: normal;
|
|
156
|
+
box-sizing: border-box;
|
|
157
|
+
vertical-align: middle;
|
|
158
|
+
grid-auto-flow: column;
|
|
159
|
+
justify-content: right;
|
|
160
|
+
align-items: center;
|
|
161
|
+
text-align: right;
|
|
162
|
+
|
|
163
|
+
div.qui-form-field.has-label > & {
|
|
164
|
+
display: inline-grid;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
div.qui-form-field.auto-width > & {
|
|
168
|
+
width: auto;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
form.qui-form.compact > div.qui-form-body > div.qui-form-field > & {
|
|
172
|
+
justify-content: left;
|
|
173
|
+
text-align: left;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
form.qui-form.compact > div.qui-form-body > div.qui-form-field:NOT(.force-one-line) > & {
|
|
177
|
+
width: 100%;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
& > span.qui-form-field-unit {
|
|
181
|
+
display: none;
|
|
182
|
+
font-size: 75%;
|
|
183
|
+
color: fade(@foreground-color, 75%);
|
|
184
|
+
margin-left: 0.25em;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
div.qui-form-field.has-unit > & > span.qui-form-field-unit {
|
|
188
|
+
display: inline-block;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
& > div.qui-form-field-description-icon {
|
|
192
|
+
cursor: pointer;
|
|
193
|
+
display: none;
|
|
194
|
+
margin-left: 0.25em;
|
|
195
|
+
width: 1em;
|
|
196
|
+
height: 1em;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
div.qui-form-field.has-description > & > div.qui-form-field-description-icon {
|
|
200
|
+
display: inline-block;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
/* Value */
|
|
207
|
+
|
|
208
|
+
div.qui-form-field-value {
|
|
209
|
+
display: inline-block;
|
|
210
|
+
width: 50%;
|
|
211
|
+
vertical-align: middle;
|
|
212
|
+
box-sizing: border-box;
|
|
213
|
+
padding: 0.2em 0;
|
|
214
|
+
text-align: left;
|
|
215
|
+
|
|
216
|
+
div.qui-form-field.side-icon-visible > & {
|
|
217
|
+
padding-right: 2em;
|
|
218
|
+
margin-right: -1.5em; /* Makes place for the side icon */
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
& > * {
|
|
222
|
+
box-sizing: border-box;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
form.qui-form.compact > div.qui-form-body > div.qui-form-field > & {
|
|
226
|
+
text-align: right;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
form.qui-form.compact > div.qui-form-body > div.qui-form-field:NOT(.force-one-line) > & {
|
|
230
|
+
width: 100%;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
form.qui-form.compact > div.qui-form-body > div.qui-form-field:NOT(.force-one-line).last-visible > & {
|
|
234
|
+
padding-bottom: 0;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
div.qui-form-field.auto-width > & {
|
|
238
|
+
width: auto;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
/* Side icon */
|
|
245
|
+
|
|
246
|
+
div.qui-form-field-side-icon {
|
|
247
|
+
display: none;
|
|
248
|
+
vertical-align: middle;
|
|
249
|
+
width: 1.5em;
|
|
250
|
+
height: 1.5em;
|
|
251
|
+
margin: 0.2em 0;
|
|
252
|
+
background: transparent;
|
|
253
|
+
|
|
254
|
+
form.qui-form.compact > div.qui-form-body > div.qui-form-field:NOT(.force-one-line).last-visible > & {
|
|
255
|
+
margin-bottom: 0;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
div.qui-form-field-side-icon.progress {
|
|
261
|
+
animation: spin 1s linear infinite;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
div.qui-form-field.side-icon-visible > div.qui-form-field-value + div.qui-form-field-side-icon {
|
|
265
|
+
display: inline-block;
|
|
266
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
|
|
2
|
+
@import (reference) "../theme";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
/* Form main div */
|
|
6
|
+
|
|
7
|
+
form.qui-form {
|
|
8
|
+
width: 40em;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
form.qui-form.compact {
|
|
12
|
+
width: 20em;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/* Form body */
|
|
17
|
+
|
|
18
|
+
div.qui-form-body {
|
|
19
|
+
background: @background-color;
|
|
20
|
+
border-color: @border-color;
|
|
21
|
+
border-style: solid;
|
|
22
|
+
border-bottom-width: 0.0625em;
|
|
23
|
+
padding: 0.5em;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
form.qui-form.topless > div.qui-form-body {
|
|
27
|
+
padding-top: 0.5em;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
form.qui-form.buttonless > div.qui-form-body {
|
|
31
|
+
padding-bottom: 0.5em;
|
|
32
|
+
border-bottom: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
form.qui-form.compact.minimized > div.qui-form-body {
|
|
36
|
+
padding: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
form.qui-form.no-background > div.qui-form-body {
|
|
40
|
+
background: transparent;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
/* Form bottom */
|
|
45
|
+
|
|
46
|
+
div.qui-form-bottom {
|
|
47
|
+
background: @background-color;
|
|
48
|
+
text-align: right;
|
|
49
|
+
padding: 0.5em;
|
|
50
|
+
display: grid;
|
|
51
|
+
grid-template-columns: repeat(auto-fit, minmax(min-content, 0));
|
|
52
|
+
grid-gap: 0.5em;
|
|
53
|
+
justify-content: right;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
div.qui-form-bottom:empty {
|
|
57
|
+
height: 0;
|
|
58
|
+
padding: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Attach buttons to the bottom when scrolling on form */
|
|
62
|
+
body.small-screen form.qui-form.fixed-bottom {
|
|
63
|
+
|
|
64
|
+
& > div.qui-form-body {
|
|
65
|
+
margin-bottom: 3.6em; /* It's 3.5 + 0.1 guard */
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:NOT(.fully-scrolled) > div.qui-form-body {
|
|
69
|
+
border-bottom-width: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
& > div.qui-form-bottom {
|
|
73
|
+
position: fixed;
|
|
74
|
+
bottom: 0;
|
|
75
|
+
right: 0;
|
|
76
|
+
left: 0;
|
|
77
|
+
box-shadow: 0 -0.3125em 0.5em -0.3125em @bar-shadow-color;
|
|
78
|
+
z-index: 1000;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&.fully-scrolled > div.qui-form-bottom {
|
|
82
|
+
box-shadow: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
/* Error */
|
|
89
|
+
|
|
90
|
+
div.qui-form-error {
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
max-height: 0;
|
|
93
|
+
opacity: 0;
|
|
94
|
+
white-space: normal;
|
|
95
|
+
color: @error-color;
|
|
96
|
+
transition: opacity @transition-duration ease,
|
|
97
|
+
max-height @transition-duration ease;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
form.qui-form.has-error > div.qui-form-body > div.qui-form-error {
|
|
101
|
+
max-height: 5em;
|
|
102
|
+
padding-bottom: 0.5em;
|
|
103
|
+
opacity: 1;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
div.qui-form-error-label {
|
|
107
|
+
display: grid;
|
|
108
|
+
position: relative;
|
|
109
|
+
background: @border-color;
|
|
110
|
+
border-radius: 1em;
|
|
111
|
+
padding-right: 0.5em;
|
|
112
|
+
align-items: center;
|
|
113
|
+
grid-template-columns: 1fr 100fr;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
span.qui-form-error-icon {
|
|
117
|
+
display: inline-block;
|
|
118
|
+
background-image: url('@{qui_img_path}/qui-icons.svg');
|
|
119
|
+
background-size: 80em;
|
|
120
|
+
background-position: @exclam-icon-x-offset @error-icon-y-offset;
|
|
121
|
+
transform: scale(0.75);
|
|
122
|
+
width: 2em;
|
|
123
|
+
height: 2em;
|
|
124
|
+
vertical-align: middle;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
span.qui-form-error-text {
|
|
128
|
+
padding: 0.5em 0;
|
|
129
|
+
text-align: left;
|
|
130
|
+
vertical-align: middle;
|
|
131
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
|
|
2
|
+
@import (reference) "theme";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
div.qui-global-glass {
|
|
6
|
+
z-index: 99;
|
|
7
|
+
position: absolute;
|
|
8
|
+
top: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
right: 0;
|
|
11
|
+
bottom: 0;
|
|
12
|
+
transition: opacity @transition-duration ease,
|
|
13
|
+
backdrop-filter @transition-duration linear,
|
|
14
|
+
margin-top @transition-duration linear;
|
|
15
|
+
opacity: 0;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
backdrop-filter: @modal-background-filter;
|
|
20
|
+
|
|
21
|
+
/* Workaround for Firefox that doesn't support backdrop-filter property */
|
|
22
|
+
@supports (-moz-appearance:none) {
|
|
23
|
+
background-color: fade(@background-root-color, 85%);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:NOT(.modal) {
|
|
27
|
+
margin-top: 3em;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.modal {
|
|
31
|
+
z-index: 1000;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.hidden {
|
|
35
|
+
display: none;
|
|
36
|
+
width: 0;
|
|
37
|
+
height: 0;
|
|
38
|
+
right: auto;
|
|
39
|
+
bottom: auto;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
body.global-glass-visible > & {
|
|
43
|
+
opacity: 1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
& > div.qui-global-glass-container {
|
|
47
|
+
|
|
48
|
+
& > div.qui-page {
|
|
49
|
+
border: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Hide all but last children */
|
|
53
|
+
& > :NOT(:LAST-CHILD) {
|
|
54
|
+
opacity: 0 !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Ensure sticky children are at the top of the stack */
|
|
58
|
+
& > .sticky {
|
|
59
|
+
z-index: 1000 !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
|
|
2
|
+
@import (reference) "theme";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
div.qui-icon-label-view {
|
|
6
|
+
transition: background @transition-duration ease,
|
|
7
|
+
color @transition-duration ease,
|
|
8
|
+
opacity @transition-duration ease;
|
|
9
|
+
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-auto-flow: column;
|
|
12
|
+
grid-template-columns: auto 1fr;
|
|
13
|
+
grid-gap: 0.5em;
|
|
14
|
+
min-height: 3em;
|
|
15
|
+
align-items: center;
|
|
16
|
+
padding: 0 0.5em;
|
|
17
|
+
|
|
18
|
+
& > div.qui-icon {
|
|
19
|
+
vertical-align: middle;
|
|
20
|
+
width: 2em;
|
|
21
|
+
height: 2em;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
& > div.labels {
|
|
25
|
+
max-width: 100%;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
text-overflow: ellipsis;
|
|
28
|
+
|
|
29
|
+
& > div.label {
|
|
30
|
+
text-overflow: ellipsis;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
vertical-align: middle;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
& > div.sub-label {
|
|
36
|
+
display: inline-block;
|
|
37
|
+
font-size: 75%;
|
|
38
|
+
max-width: 100%;
|
|
39
|
+
color: @info-color;
|
|
40
|
+
background: fade(@background-root-color, 50%);
|
|
41
|
+
border-radius: 1em;
|
|
42
|
+
border-style: solid;
|
|
43
|
+
border-color: transparent;
|
|
44
|
+
border-width: 0 0.5em;
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
text-overflow: ellipsis;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
margin-top: 0.25em;
|
|
49
|
+
vertical-align: middle;
|
|
50
|
+
transition: background @transition-duration ease,
|
|
51
|
+
color @transition-duration ease;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.qui-base-button {
|
|
57
|
+
background: @background-color;
|
|
58
|
+
color: @interactive-color;
|
|
59
|
+
|
|
60
|
+
&.active {
|
|
61
|
+
background: @background-active-color;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.selected {
|
|
65
|
+
background: @interactive-color;
|
|
66
|
+
color: @background-color;
|
|
67
|
+
|
|
68
|
+
& > div.labels > div.sub-label {
|
|
69
|
+
color: @background-color;
|
|
70
|
+
background-color: fade(@interactive-active-color, 50%);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.active.selected {
|
|
76
|
+
background: @interactive-active-color;
|
|
77
|
+
color: @background-color;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
}
|