alchemy-form 0.3.0-alpha.1 → 0.3.0-alpha.3
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/CHANGELOG.md +27 -0
- package/assets/stylesheets/form/alchemy_form.scss +1 -2
- package/assets/stylesheets/form/elements/_button.scss +4 -31
- package/assets/stylesheets/form/elements/_dropdown.scss +93 -0
- package/assets/stylesheets/form/elements/_enum_badge.scss +7 -0
- package/assets/stylesheets/form/elements/_feedback_input.scss +2 -0
- package/assets/stylesheets/form/elements/_field.scss +16 -25
- package/assets/stylesheets/form/elements/_form.scss +7 -2
- package/assets/stylesheets/form/elements/_select.scss +176 -176
- package/assets/stylesheets/form/elements/_table.scss +117 -46
- package/assets/stylesheets/form/elements/_tabs.scss +25 -35
- package/assets/stylesheets/form/elements/index.scss +20 -18
- package/assets/stylesheets/form/general/index.scss +2 -2
- package/config/routes.js +10 -0
- package/controller/form_api_controller.js +28 -0
- package/element/00_form_base.js +82 -27
- package/element/10_dataprovider.js +2 -2
- package/element/al_button.js +12 -1
- package/element/al_dropdown.js +123 -0
- package/element/al_dropdown_item.js +40 -0
- package/element/al_enum_badge.js +157 -0
- package/element/al_field.js +196 -37
- package/element/al_field_array.js +22 -0
- package/element/al_field_schema.js +222 -55
- package/element/al_form.js +9 -6
- package/element/al_select.js +2 -2
- package/element/al_table.js +8 -2
- package/helper/field_recompute_handler.js +0 -2
- package/package.json +3 -2
- package/view/form/elements/al_dropdown.hwk +21 -0
- package/view/form/elements/al_enum_badge.hwk +9 -0
- package/view/form/elements/alchemy_field.hwk +3 -12
- package/view/form/elements/alchemy_field_array.hwk +16 -6
- package/view/form/elements/alchemy_field_array_entry.hwk +10 -5
- package/view/form/elements/alchemy_field_schema.hwk +2 -2
- package/view/form/inputs/edit/enum.hwk +1 -1
- package/view/form/inputs/edit_sw/fallback.hwk +1 -0
- package/view/form/inputs/view/association_alias.hwk +16 -0
- package/view/form/inputs/view/schema.hwk +4 -0
- package/view/form/inputs/view/string.hwk +1 -1
- package/view/form/inputs/view_inline/belongs_to.hwk +16 -0
- package/view/form/inputs/view_inline/boolean.hwk +24 -17
- package/view/form/inputs/view_inline/datetime.hwk +31 -24
- package/view/form/inputs/view_inline/enum.hwk +32 -1
- package/view/form/inputs/view_inline/objectid.hwk +9 -1
- package/view/form/inputs/view_inline/string.hwk +11 -3
- package/view/form/wrappers/edit_sw/default.hwk +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
## 0.3.0-alpha.3 (2024-08-04)
|
|
2
|
+
|
|
3
|
+
* Add `original_value_container` property to `<al-field>` elements, for when they're not inside a `<al-form>` element but still need the original container
|
|
4
|
+
* Use `getParentFieldElement()` instead of `alchemy_form` when resolving inherited attributes
|
|
5
|
+
* Also let the `mode` attribute inherit
|
|
6
|
+
* Add template for `view` mode for `schema` fields
|
|
7
|
+
* Move the badge element to `styleboost`
|
|
8
|
+
* Make `al-table` contents responsive/scrollable by default
|
|
9
|
+
* Fix `<al-field-schema>#getSchemaSupplierField()` not finding the supplier field when it's a nested schema
|
|
10
|
+
* Don't let `<al-field-schema>#sub_fields` return meta fields
|
|
11
|
+
* Fix `<al-field-schema>` having issues with nested `<al-field-schema>` fields
|
|
12
|
+
* Make `<al-field>` remember forced `schema` values
|
|
13
|
+
* Prefer `fallback` template over `string` template when no specific template is found for a field
|
|
14
|
+
* Make `<al-field>` prefer the nearest descendant when getting the `value_element` property
|
|
15
|
+
* Support the `<al-field>` `config` property being a `Schema` instance (for now)
|
|
16
|
+
* Add API action to get enum info
|
|
17
|
+
* Make `<al-field-schema>` `original_value` getter aware of it being in an array
|
|
18
|
+
|
|
19
|
+
## 0.3.0-alpha.2 (2024-02-25)
|
|
20
|
+
|
|
21
|
+
* Added `.alchemy-badge` class
|
|
22
|
+
* Use badges & microcopy for showing in-line empty values
|
|
23
|
+
* Also set the `al-field`'s model attribute inside `al-table` elements
|
|
24
|
+
* Depend on the `alchemy-styleboost` peer dependency
|
|
25
|
+
* Let enum values use automatic styleboost colors in indexes + show correct titles
|
|
26
|
+
|
|
1
27
|
## 0.3.0-alpha.1 (2024-02-15)
|
|
2
28
|
|
|
3
29
|
* Upgrade to Alchemy v1.4.0
|
|
@@ -5,6 +31,7 @@
|
|
|
5
31
|
* Add settings editor element
|
|
6
32
|
* Make `readonly` attribute work on `al-field` and `al-form` elements
|
|
7
33
|
* Use "alchemy-field-title" and "alchemy-field-description" microcopy in `al-field` labels
|
|
34
|
+
* Add `zone` attribute for use in the microcopy system
|
|
8
35
|
|
|
9
36
|
## 0.2.10 (2024-01-15)
|
|
10
37
|
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
@
|
|
2
|
-
@import "./elements/index.scss";
|
|
1
|
+
@use "elements";
|
|
@@ -1,33 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
--al-button-font-size: 1em;
|
|
3
|
-
--al-button-font-weight: 400;
|
|
4
|
-
--al-button-bg-color: rgb(89, 105, 225);
|
|
5
|
-
--al-button-bg-color-hover: rgb(105, 118, 218);
|
|
6
|
-
--al-button-text-color: white;
|
|
7
|
-
}
|
|
1
|
+
@use "styleboost";
|
|
8
2
|
|
|
9
3
|
al-button {
|
|
10
|
-
|
|
11
|
-
font-size: var(--al-button-font-size);
|
|
12
|
-
font-weight: var(--al-button-font-weight);
|
|
13
|
-
background-color: var(--al-button-bg-color);
|
|
14
|
-
color: var(--al-button-text-color);
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
user-select: none;
|
|
4
|
+
@extend .button;
|
|
17
5
|
|
|
6
|
+
display: inline-block;
|
|
18
7
|
position: relative;
|
|
19
|
-
padding: 0.5em 1em;
|
|
20
|
-
text-align: center;
|
|
21
|
-
text-decoration: none;
|
|
22
|
-
vertical-align: bottom;
|
|
23
|
-
transition: 0.1s;
|
|
24
|
-
overflow: hidden;
|
|
25
|
-
line-height: 1.5;
|
|
26
|
-
|
|
27
|
-
al-icon,
|
|
28
|
-
.icon {
|
|
29
|
-
line-height: 1 !important;
|
|
30
|
-
}
|
|
31
8
|
|
|
32
9
|
.apb-content {
|
|
33
10
|
display: flex;
|
|
@@ -42,11 +19,7 @@ al-button {
|
|
|
42
19
|
|
|
43
20
|
&[disabled] {
|
|
44
21
|
pointer-events: none;
|
|
45
|
-
filter: saturate(0.5);
|
|
22
|
+
filter: unquote("saturate(0.5)");
|
|
46
23
|
cursor: not-allowed;
|
|
47
24
|
}
|
|
48
|
-
|
|
49
|
-
&:hover {
|
|
50
|
-
background-color: var(--al-button-bg-color-hover);
|
|
51
|
-
}
|
|
52
25
|
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
@use "styleboost";
|
|
2
|
+
@use "styleboost/inputs";
|
|
3
|
+
@use "styleboost/utilities/properties";
|
|
4
|
+
|
|
5
|
+
@layer defaults {
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
--size-c-dropdown-border: 0px;
|
|
9
|
+
--style-c-dropdown-border: solid;
|
|
10
|
+
--size-c-dropdown-border-radius: 4px;
|
|
11
|
+
--color-c-dropdown-bg: white;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
al-dropdown {
|
|
15
|
+
// Only extend the input defaults (custom properties),
|
|
16
|
+
// that way we don't inherit the actual applied values to padding etc
|
|
17
|
+
@extend .input-defaults;
|
|
18
|
+
|
|
19
|
+
--color-p-dropdown-bg: #{properties.backgroundColor('dropdown')};
|
|
20
|
+
|
|
21
|
+
--color-p-dropdown-active-item-bg: var(--color-p-input-accent);
|
|
22
|
+
--color-p-dropdown-active-item-bg-text: var(--color-p-input-accent-text);
|
|
23
|
+
|
|
24
|
+
--color-p-dropdown-selected-item-bg: var(--color-p-input-accent);
|
|
25
|
+
--color-p-dropdown-selected-item-bg-text: var(--color-p-input-accent-text);
|
|
26
|
+
|
|
27
|
+
--size-p-dropdown-border-radius: var(--size-c-dropdown-border-radius);
|
|
28
|
+
|
|
29
|
+
display: block;
|
|
30
|
+
position: relative;
|
|
31
|
+
|
|
32
|
+
.dropdown-trigger-wrapper > button {
|
|
33
|
+
@extend .button;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.dropdown-items-wrapper {
|
|
37
|
+
position: fixed;
|
|
38
|
+
box-shadow: 0 12px 28px #0003,0 2px 4px #0000001a,inset 0 0 0 1px #ffffff80;
|
|
39
|
+
border-radius: var(--size-p-dropdown-border-radius);
|
|
40
|
+
background-color: var(--color-p-dropdown-bg);
|
|
41
|
+
|
|
42
|
+
[slot="dropdown-items"] {
|
|
43
|
+
// display: flex;
|
|
44
|
+
// flex-flow: column;
|
|
45
|
+
display: grid;
|
|
46
|
+
grid-template-columns: max-content 1fr;
|
|
47
|
+
grid-auto-rows: auto;
|
|
48
|
+
grid-template-areas: "icons titles";
|
|
49
|
+
gap: 0px 1rem;
|
|
50
|
+
|
|
51
|
+
al-dropdown-item {
|
|
52
|
+
display: grid;
|
|
53
|
+
grid-template-columns: subgrid;
|
|
54
|
+
grid-template-rows: subgrid;
|
|
55
|
+
grid-column: span 2;
|
|
56
|
+
|
|
57
|
+
al-icon {
|
|
58
|
+
grid-area: icons;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
align-items: center;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.text {
|
|
64
|
+
grid-area: title;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
al-dropdown-item {
|
|
71
|
+
margin: 0 8px;
|
|
72
|
+
padding: 8px;
|
|
73
|
+
|
|
74
|
+
&:hover,
|
|
75
|
+
&.focused {
|
|
76
|
+
background-color: var(--color-p-dropdown-active-item-bg);
|
|
77
|
+
color: var(--color-p-dropdown-active-item-bg-text);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:first-child {
|
|
81
|
+
margin-top: 8px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:last-child {
|
|
85
|
+
margin-bottom: 8px;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
al-dropdown-item {
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
@use "styleboost" as *;
|
|
2
|
+
|
|
1
3
|
al-field {
|
|
2
4
|
display: block;
|
|
5
|
+
--badge-font-size: 1rem;
|
|
3
6
|
|
|
4
7
|
&[field-type="boolean"] {
|
|
5
8
|
|
|
@@ -8,34 +11,22 @@ al-field {
|
|
|
8
11
|
justify-content: flex-start;
|
|
9
12
|
}
|
|
10
13
|
|
|
11
|
-
.boolean-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
&.boolean-null {
|
|
23
|
-
--boolean-color: #f3f3f3;
|
|
24
|
-
--text-color: #666;
|
|
25
|
-
font-style: italic;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
background-color: var(--boolean-color);
|
|
29
|
-
border-radius: 5px;
|
|
30
|
-
padding: 4px 8px;
|
|
31
|
-
min-width: 1rem;
|
|
32
|
-
color: var(--text-color, white);
|
|
33
|
-
display: inline-flex;
|
|
14
|
+
.boolean-true {
|
|
15
|
+
@extend .use-truthy-theme;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.boolean-false {
|
|
19
|
+
@extend .use-falsy-theme;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.value-icon {
|
|
23
|
+
margin-right: 0.5rem;
|
|
34
24
|
}
|
|
35
25
|
}
|
|
36
26
|
|
|
37
|
-
.alchemy-field-empty-value {
|
|
38
|
-
color:
|
|
27
|
+
.alchemy-field-empty-value-placeholder {
|
|
28
|
+
--color-theme-fill: var(--color-inactive-bg);
|
|
29
|
+
--color-theme-fill-text: var(--color-inactive-bg-text);
|
|
39
30
|
font-style: italic;
|
|
40
31
|
}
|
|
41
32
|
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
@use "styleboost";
|
|
2
|
+
|
|
1
3
|
al-form {
|
|
2
4
|
.error-area:empty {
|
|
3
5
|
display: none;
|
|
4
6
|
}
|
|
5
7
|
|
|
6
8
|
.error-area:not(:empty) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
@extend .use-danger-theme;
|
|
10
|
+
border: 1px solid var(--color-theme-accent);
|
|
11
|
+
color: var(--color-theme-bg-text);
|
|
12
|
+
background-color: var(--color-theme-bg);
|
|
9
13
|
padding: 0.2rem;
|
|
14
|
+
border-radius: 4px;
|
|
10
15
|
}
|
|
11
16
|
}
|
|
12
17
|
|
|
@@ -1,215 +1,215 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
position: relative;
|
|
4
|
-
display: block;
|
|
1
|
+
@use "styleboost";
|
|
2
|
+
@use "styleboost/inputs";
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
@layer defaults {
|
|
5
|
+
$accent: styleboost.themePropertyVar('color', 'accent', 'form');
|
|
6
|
+
$accent_rgb: styleboost.themePropertyVar('color', 'accent-rgb', 'form');
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
al-select {
|
|
9
|
+
// Only extend the input defaults (custom properties),
|
|
10
|
+
// that way we don't inherit the actual applied values to padding etc
|
|
11
|
+
@extend .input-defaults;
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
.dropdown {
|
|
15
|
-
box-sizing: border-box;
|
|
16
|
-
}
|
|
13
|
+
--al-select-color-active-item-bg: var(--color-t-current-bg, var(--color-t-primary-bg));
|
|
14
|
+
--al-select-color-active-item-fg: var(--color-t-current-bg-text, var(--color-t-primary-bg-text));
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
--al-select-color-selected-item-bg: var(--color-t-current-fill, var(--color-t-primary-fill));
|
|
17
|
+
--al-select-color-selected-item-fg: var(--color-t-current-fill-text, var(--color-t-primary-fill-text));
|
|
18
|
+
|
|
19
|
+
--color-p-select-border: var(--color-t-current-bg-subtle);
|
|
20
|
+
|
|
21
|
+
--color-p-input-active-item-bg: var(--color-p-input-accent);
|
|
22
|
+
--color-p-input-active-item-bg-text: var(--color-p-input-accent-text);
|
|
23
|
+
|
|
24
|
+
--color-p-input-selected-item-bg: var(--color-p-input-accent);
|
|
25
|
+
--color-p-input-selected-item-bg-text: var(--color-p-input-accent-text);
|
|
26
|
+
|
|
27
|
+
display: block;
|
|
28
|
+
border-radius: var(--size-p-input-border-radius);
|
|
29
|
+
border-width: var(--size-p-input-border);
|
|
30
|
+
border-style: var(--style-p-input-border);
|
|
31
|
+
|
|
32
|
+
&:focus {
|
|
33
|
+
.value-wrapper {
|
|
34
|
+
border-color: rgba(#{$accent_rgb}, 0.8) !important;
|
|
35
|
+
}
|
|
21
36
|
}
|
|
22
|
-
}
|
|
23
37
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
// The value wrapper is the main visible part of the select
|
|
39
|
+
.value-wrapper {
|
|
40
|
+
border-radius: var(--size-p-input-border-radius);
|
|
41
|
+
|
|
42
|
+
padding-bottom: var(--size-p-input-spacer-y);
|
|
43
|
+
padding-top: var(--size-p-input-spacer-y);
|
|
44
|
+
padding-left: var(--size-p-input-spacer-x);
|
|
45
|
+
padding-right: var(--size-p-input-spacer-x);
|
|
46
|
+
|
|
47
|
+
width: 100%;
|
|
48
|
+
display: flex;
|
|
49
|
+
position: relative;
|
|
50
|
+
z-index: 1;
|
|
51
|
+
flex-wrap: wrap;
|
|
52
|
+
align-items: center;
|
|
53
|
+
|
|
54
|
+
input.type-area {
|
|
55
|
+
height: 1.5rem !important;
|
|
56
|
+
}
|
|
43
57
|
}
|
|
44
|
-
}
|
|
45
58
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
59
|
+
&[aria-expanded="true"] {
|
|
60
|
+
border-radius: var(--size-p-input-border-radius) var(--size-p-input-border-radius) 0 0;
|
|
61
|
+
}
|
|
49
62
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
63
|
+
// Single value input
|
|
64
|
+
&:not([multiple]) {
|
|
65
|
+
.value-wrapper {
|
|
66
|
+
//border-color: #b8b8b8;
|
|
67
|
+
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
|
|
70
|
+
&::after {
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: 50%;
|
|
73
|
+
right: 15px;
|
|
74
|
+
display: block;
|
|
75
|
+
width: 0;
|
|
76
|
+
height: 0;
|
|
77
|
+
margin-top: -3px;
|
|
78
|
+
border-color: #808080 transparent transparent transparent;
|
|
79
|
+
border-style: solid;
|
|
80
|
+
border-width: 5px 5px 0 5px;
|
|
81
|
+
content: ' ';
|
|
82
|
+
}
|
|
83
|
+
}
|
|
56
84
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
top: 50%;
|
|
60
|
-
right: 15px;
|
|
61
|
-
display: block;
|
|
62
|
-
width: 0;
|
|
63
|
-
height: 0;
|
|
64
|
-
margin-top: -3px;
|
|
65
|
-
border-color: #808080 transparent transparent transparent;
|
|
66
|
-
border-style: solid;
|
|
67
|
-
border-width: 5px 5px 0 5px;
|
|
68
|
-
content: ' ';
|
|
85
|
+
&[aria-expanded="false"] .value-wrapper .type-area {
|
|
86
|
+
cursor: pointer;
|
|
69
87
|
}
|
|
70
88
|
}
|
|
71
89
|
|
|
72
|
-
|
|
73
|
-
|
|
90
|
+
// Multiple value input
|
|
91
|
+
&[multiple] {
|
|
92
|
+
.value-wrapper {
|
|
93
|
+
cursor: text;
|
|
94
|
+
}
|
|
74
95
|
}
|
|
75
96
|
|
|
76
|
-
|
|
77
|
-
|
|
97
|
+
.value-wrapper {
|
|
98
|
+
min-width: 5rem;
|
|
99
|
+
overflow: hidden;
|
|
78
100
|
}
|
|
79
|
-
}
|
|
80
101
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
102
|
+
.type-area {
|
|
103
|
+
font-family: inherit;
|
|
104
|
+
//font-size: 13px;
|
|
105
|
+
//line-height: 18px;
|
|
106
|
+
display: inline-block !important;
|
|
107
|
+
padding: 0 !important;
|
|
108
|
+
min-height: 0 !important;
|
|
109
|
+
max-height: none !important;
|
|
110
|
+
max-width: 100% !important;
|
|
111
|
+
margin: 0 1px !important;
|
|
112
|
+
text-indent: 0 !important;
|
|
113
|
+
border: 0 none !important;
|
|
114
|
+
background: none !important;
|
|
115
|
+
line-height: inherit !important;
|
|
116
|
+
box-shadow: none !important;
|
|
117
|
+
outline: none !important;
|
|
118
|
+
flex: 0 1 auto;
|
|
119
|
+
margin-right: 20px !important;
|
|
85
120
|
}
|
|
86
|
-
}
|
|
87
121
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
overflow: hidden;
|
|
91
|
-
background: #fff;
|
|
122
|
+
.dropdown {
|
|
123
|
+
@extend .input-defaults;
|
|
92
124
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
125
|
+
// The dropdown has to be hidden by default
|
|
126
|
+
display: none;
|
|
127
|
+
position: absolute;
|
|
128
|
+
z-index: 999999;
|
|
129
|
+
left: 0px;
|
|
99
130
|
|
|
100
|
-
|
|
101
|
-
color: #303030;
|
|
102
|
-
font-family: inherit;
|
|
103
|
-
font-size: 13px;
|
|
104
|
-
line-height: 18px;
|
|
105
|
-
display: inline-block !important;
|
|
106
|
-
padding: 0 !important;
|
|
107
|
-
min-height: 0 !important;
|
|
108
|
-
max-height: none !important;
|
|
109
|
-
max-width: 100% !important;
|
|
110
|
-
margin: 0 1px !important;
|
|
111
|
-
text-indent: 0 !important;
|
|
112
|
-
border: 0 none !important;
|
|
113
|
-
background: none !important;
|
|
114
|
-
line-height: inherit !important;
|
|
115
|
-
box-shadow: none !important;
|
|
116
|
-
outline: none !important;
|
|
117
|
-
flex: 0 1 auto;
|
|
118
|
-
margin-right: 20px !important;
|
|
119
|
-
}
|
|
131
|
+
margin: 0 0 0 -1px;
|
|
120
132
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
line-height: 18px;
|
|
126
|
-
-webkit-font-smoothing: inherit;
|
|
127
|
-
display: none;
|
|
128
|
-
|
|
129
|
-
position: absolute;
|
|
130
|
-
z-index: 999999;
|
|
131
|
-
border: 1px solid #d0d0d0;
|
|
132
|
-
background: #fff;
|
|
133
|
-
margin: -1px 0 0 0;
|
|
134
|
-
border-top: 0 none;
|
|
135
|
-
|
|
136
|
-
// Make it scroll
|
|
137
|
-
overflow-y: auto;
|
|
138
|
-
overflow-x: hidden;
|
|
139
|
-
max-height: 200px;
|
|
140
|
-
}
|
|
133
|
+
border-radius: 0 0 var(--size-p-input-border-radius) var(--size-p-input-border-radius);
|
|
134
|
+
border-width: var(--size-p-input-border);
|
|
135
|
+
border-style: var(--style-p-input-border);
|
|
136
|
+
border-color: inherit;
|
|
141
137
|
|
|
142
|
-
|
|
143
|
-
display: flex;
|
|
144
|
-
}
|
|
138
|
+
border-top: 0 none;
|
|
145
139
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
140
|
+
// Make it scroll
|
|
141
|
+
overflow-y: auto;
|
|
142
|
+
overflow-x: hidden;
|
|
143
|
+
max-height: 200px;
|
|
149
144
|
|
|
150
|
-
|
|
151
|
-
cursor: pointer;
|
|
152
|
-
overflow: hidden;
|
|
153
|
-
padding: 6px 8px;
|
|
154
|
-
flex: 1 0;
|
|
155
|
-
}
|
|
145
|
+
scrollbar-width: thin;
|
|
156
146
|
|
|
157
|
-
|
|
147
|
+
[role="option"] {
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
padding: 6px 8px;
|
|
151
|
+
flex: 1 0;
|
|
158
152
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
153
|
+
&:hover,
|
|
154
|
+
&.focused {
|
|
155
|
+
background-color: var(--color-p-input-active-item-bg);
|
|
156
|
+
color: var(--color-p-input-active-item-bg-text);
|
|
157
|
+
}
|
|
164
158
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
159
|
+
&[selected] {
|
|
160
|
+
background-color: var(--color-p-input-selected-item-bg);
|
|
161
|
+
color: var(--color-p-input-selected-item-bg-text);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
168
164
|
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
&[aria-expanded="true"] .dropdown {
|
|
172
|
-
display: block !important;
|
|
173
|
-
}
|
|
174
165
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
padding: 2px 6px;
|
|
180
|
-
border-color: 1px solid #0073bb;
|
|
181
|
-
background-color: #1b9dec;
|
|
182
|
-
background-image: linear-gradient(to bottom, #1da7ee, #178ee9);
|
|
183
|
-
box-shadow: 0 1px 0 rgba(0,0,0,0.2),inset 0 1px rgba(255,255,255,0.03);
|
|
184
|
-
border-radius: 3px;
|
|
185
|
-
text-shadow: 0 1px 0 rgba(0,51,83,0.3);
|
|
186
|
-
white-space: nowrap;
|
|
187
|
-
color: white;
|
|
188
|
-
}
|
|
166
|
+
.dropdown-content {
|
|
167
|
+
display: flex;
|
|
168
|
+
flex-flow: column nowrap;
|
|
169
|
+
}
|
|
189
170
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
width: 1px;
|
|
194
|
-
height: 1px;
|
|
195
|
-
}
|
|
171
|
+
&[aria-expanded="true"] .dropdown {
|
|
172
|
+
display: block !important;
|
|
173
|
+
}
|
|
196
174
|
|
|
197
|
-
|
|
198
|
-
al-select-item {
|
|
175
|
+
div.value {
|
|
199
176
|
display: inline-block;
|
|
177
|
+
cursor: pointer;
|
|
178
|
+
margin: 0 3px 3px 0;
|
|
179
|
+
padding: 2px 6px;
|
|
180
|
+
border-color: 1px solid #{$accent};
|
|
200
181
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
182
|
+
background-color: var(--color-p-input-selected-item-bg);
|
|
183
|
+
color: var(--color-p-input-selected-item-bg-text);
|
|
184
|
+
|
|
185
|
+
box-shadow: 0 1px 0 rgba(0,0,0,0.2),inset 0 1px rgba(255,255,255,0.03);
|
|
204
186
|
border-radius: 3px;
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
187
|
+
text-shadow: 0 1px 0 rgba(0,51,83,0.3);
|
|
188
|
+
white-space: nowrap;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.result-info {
|
|
192
|
+
position: fixed;
|
|
193
|
+
left: -200vw;
|
|
194
|
+
width: 1px;
|
|
195
|
+
height: 1px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&[multiple] .value-wrapper {
|
|
199
|
+
al-select-item {
|
|
200
|
+
display: inline-block;
|
|
201
|
+
|
|
202
|
+
text-shadow: 0 1px 0 rgba(0,51,83,0.3);
|
|
203
|
+
background-color: var(--color-p-input-selected-item-bg);
|
|
204
|
+
color: var(--color-p-input-selected-item-bg-text);
|
|
205
|
+
|
|
206
|
+
border-radius: 3px;
|
|
207
|
+
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.03);
|
|
208
|
+
padding: 2px 6px;
|
|
209
|
+
margin: 0 3px 3px 0;
|
|
210
|
+
|
|
211
|
+
border: 1px solid #{$accent};
|
|
210
212
|
|
|
211
|
-
&.active {
|
|
212
|
-
background-image: linear-gradient(to bottom, #008fd8, #0075cf);
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
}
|