@itfin/components 1.2.33 → 1.2.35
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/package.json +1 -1
- package/src/assets/images/pdf-viewer/loading-icon.svg +26 -0
- package/src/assets/images/pdf-viewer/shadow.png +0 -0
- package/src/assets/images/pdf-viewer/treeitem-collapsed.png +0 -0
- package/src/assets/images/pdf-viewer/treeitem-collapsed@2x.png +0 -0
- package/src/assets/images/pdf-viewer/treeitem-expanded.png +0 -0
- package/src/assets/images/pdf-viewer/treeitem-expanded@2x.png +0 -0
- package/src/assets/scss/components/_air-select.scss +111 -0
- package/src/assets/scss/components/_avatar.scss +36 -0
- package/src/assets/scss/components/_button.scss +110 -0
- package/src/assets/scss/components/_card.scss +7 -0
- package/src/assets/scss/components/_checkbox.scss +83 -0
- package/src/{components/datepicker/datepicker.scss → assets/scss/components/_datepicker.scss} +217 -1
- package/src/assets/scss/components/_dropdown.scss +79 -0
- package/src/assets/scss/components/_form.scss +22 -0
- package/src/assets/scss/components/_icon.scss +5 -0
- package/src/assets/scss/components/_modal.scss +9 -0
- package/src/assets/scss/components/_pagination.scss +12 -0
- package/src/assets/scss/components/_pdf-viewer.scss +4 -0
- package/src/assets/scss/components/_popover.scss +37 -0
- package/src/assets/scss/components/_segmeneted-control.scss +138 -0
- package/src/assets/scss/components/_select.scss +76 -0
- package/src/assets/scss/components/_table.scss +278 -0
- package/src/{components/tabs/tabs.scss → assets/scss/components/_tabs.scss} +1 -1
- package/src/assets/scss/components/_text-field.scss +36 -0
- package/src/assets/scss/components/_toaster.scss +97 -0
- package/src/assets/scss/components/_tree-view.scss +17 -0
- package/src/{components/wizard/wizard.scss → assets/scss/components/_wizard.scss} +1 -1
- package/src/{components/pdf-viewer/styles → assets/scss/components/pdf-viewer}/_annotation_layer_builder.scss +0 -0
- package/src/{components/pdf-viewer/styles → assets/scss/components/pdf-viewer}/_colors.scss +1 -1
- package/src/{components/pdf-viewer/styles → assets/scss/components/pdf-viewer}/_pdf_viewer.scss +2 -2
- package/src/{components/pdf-viewer/styles → assets/scss/components/pdf-viewer}/_text_layer_builder.scss +0 -0
- package/src/{components/pdf-viewer/styles → assets/scss/components/pdf-viewer}/_variables.scss +0 -0
- package/src/{components/pdf-viewer/styles → assets/scss/components/pdf-viewer}/_viewer.scss +6 -6
- package/src/assets/scss/components/{_animations.scss → select/_animations.scss} +0 -0
- package/src/assets/scss/components/{_clear.scss → select/_clear.scss} +0 -0
- package/src/assets/scss/components/{_component.scss → select/_component.scss} +0 -0
- package/src/assets/scss/components/{_dropdown-menu.scss → select/_dropdown-menu.scss} +0 -0
- package/src/assets/scss/components/{_dropdown-option.scss → select/_dropdown-option.scss} +0 -0
- package/src/assets/scss/components/{_dropdown-toggle.scss → select/_dropdown-toggle.scss} +0 -0
- package/src/assets/scss/components/{_open-indicator.scss → select/_open-indicator.scss} +0 -0
- package/src/assets/scss/components/{_search-input.scss → select/_search-input.scss} +0 -0
- package/src/assets/scss/components/{_selected.scss → select/_selected.scss} +1 -1
- package/src/assets/scss/components/{_spinner.scss → select/_spinner.scss} +0 -0
- package/src/assets/scss/components/{_states.scss → select/_states.scss} +0 -0
- package/src/assets/scss/components/{_variables.scss → select/_variables.scss} +0 -0
- package/src/assets/scss/main.scss +23 -1
- package/src/components/app/App.vue +0 -66
- package/src/components/app/ToastContainer.vue +0 -35
- package/src/components/app/ToastMessage.vue +0 -7
- package/src/components/avatar/Avatar.vue +0 -38
- package/src/components/button/Button.vue +0 -142
- package/src/components/card/Card.vue +0 -10
- package/src/components/card/CardBody.vue +0 -3
- package/src/components/checkbox/Checkbox.vue +0 -54
- package/src/components/checkbox/CheckboxGroup.vue +0 -3
- package/src/components/checkbox/Radio.vue +0 -36
- package/src/components/checkbox/RadioGroup.vue +0 -3
- package/src/components/datepicker/DatePicker.vue +0 -39
- package/src/components/datepicker/DateRangePicker.vue +0 -58
- package/src/components/datepicker/MonthPicker.vue +0 -34
- package/src/components/datepicker/PeriodPicker.vue +0 -97
- package/src/components/dropdown/Dropdown.vue +0 -14
- package/src/components/form/Form.vue +0 -4
- package/src/components/form/Label.vue +0 -24
- package/src/components/icon/Icon.vue +0 -8
- package/src/components/modal/Modal.vue +0 -13
- package/src/components/pagination/Pagination.vue +0 -14
- package/src/components/pdf-viewer/PdfViewerSpa.vue +0 -3
- package/src/components/popover/ConfirmPopover.vue +0 -5
- package/src/components/popover/Popover.vue +0 -35
- package/src/components/segmented-control/SegmentedControl.vue +0 -140
- package/src/components/select/AirSelect.vue +0 -113
- package/src/components/select/Dropdown.vue +1 -71
- package/src/components/select/Select.vue +0 -78
- package/src/components/table/Table.vue +0 -279
- package/src/components/tabs/Tab.vue +0 -5
- package/src/components/tabs/TabContent.vue +0 -5
- package/src/components/tabs/Tabs.vue +0 -1
- package/src/components/text-field/TextField.vue +0 -15
- package/src/components/text-field/Textarea.vue +0 -30
- package/src/components/tooltip/Tooltip.vue +0 -1
- package/src/components/tree/TreeView.vue +0 -19
- package/src/components/wizard/Sidebar.vue +0 -4
- package/src/components/wizard/Step.vue +0 -5
- package/src/components/wizard/Wizard.vue +0 -1
- package/src/index.stories.js +1 -0
- package/src/components/pdf-viewer/styles/index.css +0 -0
- package/src/components/pdf-viewer/styles/index.scss +0 -4
package/package.json
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg
|
|
2
|
+
xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
|
|
3
|
+
xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" width="50px"
|
|
4
|
+
height="50px" viewBox="-3 -3 54 54" xml:space="preserve">
|
|
5
|
+
<g>
|
|
6
|
+
<path d="M25 0 A 26 26 0 0 0 0 25" stroke="#606c88" stroke-width="3"
|
|
7
|
+
fill="transparent">
|
|
8
|
+
<animateTransform attributeName="transform" type="rotate" from="0 25 25"
|
|
9
|
+
to="360 25 25" dur="1s" repeatCount="indefinite">
|
|
10
|
+
</animateTransform>
|
|
11
|
+
</path>
|
|
12
|
+
<path d="M25 8 A 18 18 0 0 0 8 25" stroke="#11ece5" stroke-width="3"
|
|
13
|
+
fill="transparent">
|
|
14
|
+
<animateTransform attributeName="transform" type="rotate" from="0 25 25"
|
|
15
|
+
to="360 25 25" dur="1.5s" repeatCount="indefinite">
|
|
16
|
+
</animateTransform>
|
|
17
|
+
</path>
|
|
18
|
+
<path d="M25 16 A 10 10 0 0 0 16 25" stroke="#606c88" stroke-width="3"
|
|
19
|
+
fill="transparent">
|
|
20
|
+
<animateTransform attributeName="transform" type="rotate" from="0 25 25"
|
|
21
|
+
to="360 25 25" dur="0.5s" repeatCount="indefinite">
|
|
22
|
+
</animateTransform>
|
|
23
|
+
</path>
|
|
24
|
+
|
|
25
|
+
</g>
|
|
26
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
@import '../variables';
|
|
2
|
+
|
|
3
|
+
.select {
|
|
4
|
+
position: relative;
|
|
5
|
+
border-radius: 4px;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
font-size: 14px;
|
|
8
|
+
transition: background 0.1s;
|
|
9
|
+
&:focus {
|
|
10
|
+
outline: none;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
.valueContainer {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
width: 100%;
|
|
17
|
+
min-height: 32px;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
}
|
|
20
|
+
.valueMulti {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
flex-wrap: wrap;
|
|
24
|
+
// padding-top: 5px;
|
|
25
|
+
}
|
|
26
|
+
.valueMultiItem {
|
|
27
|
+
height: 22px;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
border-radius: 3px;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
user-select: none;
|
|
33
|
+
background: #f0f0f0;
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
.valueMultiItemLabel {
|
|
36
|
+
flex: auto;
|
|
37
|
+
padding: 0 4px;
|
|
38
|
+
height: 100%;
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
border-right: 1px solid #ddd;
|
|
42
|
+
}
|
|
43
|
+
.valueMultiItemClose {
|
|
44
|
+
border-left: none;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
padding: 0 2px;
|
|
47
|
+
height: 100%;
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
&:hover {
|
|
52
|
+
background: #ff4757;
|
|
53
|
+
color: white;
|
|
54
|
+
}
|
|
55
|
+
.icon {
|
|
56
|
+
width: 18px;
|
|
57
|
+
height: 18px;
|
|
58
|
+
fill: currentColor;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
.addMore {
|
|
63
|
+
font-size: 12.5px;
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
color: #0052cc;
|
|
68
|
+
&:hover,
|
|
69
|
+
&:visited,
|
|
70
|
+
&:active {
|
|
71
|
+
color: #0052cc;
|
|
72
|
+
}
|
|
73
|
+
&:hover {
|
|
74
|
+
text-decoration: underline;
|
|
75
|
+
}
|
|
76
|
+
.icon {
|
|
77
|
+
width: 16px;
|
|
78
|
+
height: 16px;
|
|
79
|
+
fill: currentColor;
|
|
80
|
+
margin-right: 2px;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[data-theme="dark"] .select.normal {
|
|
85
|
+
border-color: $dark-input-focus-border-color;
|
|
86
|
+
background: $dark-input-focus-border-color;
|
|
87
|
+
}
|
|
88
|
+
.select.normal {
|
|
89
|
+
width: 100%;
|
|
90
|
+
padding-left: 0.5rem;
|
|
91
|
+
padding-right: 0.5rem;
|
|
92
|
+
border-width: 1px;
|
|
93
|
+
border-color: #dfe1e6;
|
|
94
|
+
background-color: #f4f5f7;
|
|
95
|
+
position: relative;
|
|
96
|
+
border-radius: 4px;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
font-size: 14px;
|
|
99
|
+
-webkit-transition: background .1s;
|
|
100
|
+
transition: background .1s;
|
|
101
|
+
}
|
|
102
|
+
.select.normal:hover {
|
|
103
|
+
@apply bg-backgroundLight;
|
|
104
|
+
}
|
|
105
|
+
.select.normal:focus {
|
|
106
|
+
@apply border border-borderInputFocus bg-white text-borderInputFocus;
|
|
107
|
+
box-shadow: 0 0 0 1px currentColor;
|
|
108
|
+
}
|
|
109
|
+
.select.empty {
|
|
110
|
+
display: inline-block;
|
|
111
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@import '../variables';
|
|
2
|
+
|
|
3
|
+
.itf-avatar {
|
|
4
|
+
--positive: #{$green};
|
|
5
|
+
|
|
6
|
+
position: relative;
|
|
7
|
+
display: inline-block;
|
|
8
|
+
font-size: 0;
|
|
9
|
+
line-height: 0;
|
|
10
|
+
vertical-align: middle;
|
|
11
|
+
|
|
12
|
+
.shadow {
|
|
13
|
+
stroke-width: 2;
|
|
14
|
+
stroke: rgba(0, 0, 0, 0.1);
|
|
15
|
+
fill: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.status-badge {
|
|
19
|
+
position: absolute;
|
|
20
|
+
pointer-events: none;
|
|
21
|
+
border-radius: 50%;
|
|
22
|
+
background-color: var(--positive);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.feature-icon {
|
|
26
|
+
width: 3rem;
|
|
27
|
+
height: 3rem;
|
|
28
|
+
border-radius: 0.5rem;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
|
|
31
|
+
img {
|
|
32
|
+
max-width: 100%;
|
|
33
|
+
max-height: 100%;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
@import '../variables';
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--itf-button-basic-bg-color: rgba(9, 30, 66, 0.08);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-theme="dark"] {
|
|
8
|
+
--itf-button-basic-bg-color: rgba(246, 225, 189, 0.08);
|
|
9
|
+
|
|
10
|
+
.itf-button.btn {
|
|
11
|
+
&.btn-secondary {
|
|
12
|
+
&, &.disabled {
|
|
13
|
+
background-color: $dark-btn-secondary-color;
|
|
14
|
+
border-color: $dark-btn-secondary-color;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:active, &:focus {
|
|
18
|
+
background-color: lighten($dark-btn-secondary-color, 5%);
|
|
19
|
+
border-color: lighten($dark-btn-secondary-color, 5%);
|
|
20
|
+
}
|
|
21
|
+
&:hover {
|
|
22
|
+
background-color: lighten($dark-btn-secondary-color, 10%);
|
|
23
|
+
border-color: lighten($dark-btn-secondary-color, 10%);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
&.btn-primary {
|
|
27
|
+
&, &.disabled {
|
|
28
|
+
background-color: $dark-btn-primary-color;
|
|
29
|
+
border-color: $dark-btn-primary-color;
|
|
30
|
+
color: $body-color;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:active, &:focus {
|
|
34
|
+
color: $body-color;
|
|
35
|
+
background-color: darken($dark-btn-primary-color, 5%);
|
|
36
|
+
border-color: darken($dark-btn-primary-color, 5%);
|
|
37
|
+
box-shadow: 0 0 0 0.125rem mix($dark-btn-primary-color, $dark-body-bg, 50%);
|
|
38
|
+
}
|
|
39
|
+
&:hover {
|
|
40
|
+
color: $body-color;
|
|
41
|
+
background-color: darken($dark-btn-primary-color, 10%);
|
|
42
|
+
border-color: darken($dark-btn-primary-color, 10%);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.itf-button.btn {
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
position: relative;
|
|
52
|
+
|
|
53
|
+
&.btn-primary {
|
|
54
|
+
color: #fff; // @todo remove when remove vuetify
|
|
55
|
+
}
|
|
56
|
+
&.itf-button__block {
|
|
57
|
+
display: block;
|
|
58
|
+
width: 100%;
|
|
59
|
+
}
|
|
60
|
+
& > div {
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
}
|
|
63
|
+
.itf-spinner {
|
|
64
|
+
position: absolute;
|
|
65
|
+
top: 50%;
|
|
66
|
+
left: 50%;
|
|
67
|
+
margin: -0.75rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&.loading {
|
|
71
|
+
cursor: progress;
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
color: transparent;
|
|
74
|
+
|
|
75
|
+
&.btn-sm .itf-spinner {
|
|
76
|
+
width: 1rem;
|
|
77
|
+
height: 1rem;
|
|
78
|
+
margin: -0.5rem;
|
|
79
|
+
}
|
|
80
|
+
&.btn-lg .itf-spinner {
|
|
81
|
+
width: 1.75rem;
|
|
82
|
+
height: 1.75rem;
|
|
83
|
+
margin: -0.875rem;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
&.btn-basic {
|
|
87
|
+
&:hover, &.active {
|
|
88
|
+
background-color: var(--itf-button-basic-bg-color);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
&.btn-icon {
|
|
92
|
+
padding: 0.25rem;
|
|
93
|
+
svg {
|
|
94
|
+
width: 1.5rem;
|
|
95
|
+
height: 1.5rem;
|
|
96
|
+
}
|
|
97
|
+
&.btn-sm {
|
|
98
|
+
svg {
|
|
99
|
+
width: 1.3125rem;
|
|
100
|
+
height: 1.3125rem;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
&.btn-lg {
|
|
104
|
+
svg {
|
|
105
|
+
width: 1.875rem;
|
|
106
|
+
height: 1.875rem;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@import '../variables';
|
|
2
|
+
|
|
3
|
+
.itf-checkbox {
|
|
4
|
+
.form-check-input, .form-check-label {
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
}
|
|
7
|
+
&__large.form-check {
|
|
8
|
+
padding-left: $form-check-padding-start * 2;
|
|
9
|
+
min-height: 2.5rem;
|
|
10
|
+
|
|
11
|
+
.form-check-label {
|
|
12
|
+
padding-top: 0.25rem;
|
|
13
|
+
}
|
|
14
|
+
.form-check-input {
|
|
15
|
+
margin-top: 0;
|
|
16
|
+
width: $form-check-input-width * 2;
|
|
17
|
+
height: $form-check-input-width * 2;
|
|
18
|
+
margin-left: -$form-check-padding-start * 2;
|
|
19
|
+
border-radius: 0.75rem;
|
|
20
|
+
}
|
|
21
|
+
&.form-switch {
|
|
22
|
+
padding-left: $form-switch-padding-start * 2;
|
|
23
|
+
|
|
24
|
+
.form-check-input {
|
|
25
|
+
width: $form-switch-width * 2;
|
|
26
|
+
margin-left: -$form-switch-padding-start * 2;
|
|
27
|
+
border-radius: 100px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
&__medium.form-check {
|
|
32
|
+
padding-left: $form-check-padding-start * 1.5;
|
|
33
|
+
min-height: 2rem;
|
|
34
|
+
|
|
35
|
+
.form-check-input {
|
|
36
|
+
margin-top: 0;
|
|
37
|
+
width: $form-check-input-width * 1.5;
|
|
38
|
+
height: $form-check-input-width * 1.5;
|
|
39
|
+
margin-left: -$form-check-padding-start * 1.5;
|
|
40
|
+
border-radius: 0.5rem;
|
|
41
|
+
}
|
|
42
|
+
&.form-switch {
|
|
43
|
+
padding-left: $form-switch-padding-start * 1.5;
|
|
44
|
+
|
|
45
|
+
.form-check-input {
|
|
46
|
+
width: $form-switch-width * 1.5;
|
|
47
|
+
margin-left: -$form-switch-padding-start * 1.5;
|
|
48
|
+
border-radius: 100px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.itf-radio {
|
|
55
|
+
.form-check-input, .form-check-label {
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
}
|
|
58
|
+
&__large.form-check {
|
|
59
|
+
padding-left: $form-check-padding-start * 2;
|
|
60
|
+
min-height: 2.5rem;
|
|
61
|
+
|
|
62
|
+
.form-check-label {
|
|
63
|
+
padding-top: 0.25rem;
|
|
64
|
+
}
|
|
65
|
+
.form-check-input {
|
|
66
|
+
margin-top: 0;
|
|
67
|
+
width: $form-check-input-width * 2;
|
|
68
|
+
height: $form-check-input-width * 2;
|
|
69
|
+
margin-left: -$form-check-padding-start * 2;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
&__medium.form-check {
|
|
73
|
+
padding-left: $form-check-padding-start * 1.5;
|
|
74
|
+
min-height: 2rem;
|
|
75
|
+
|
|
76
|
+
.form-check-input {
|
|
77
|
+
margin-top: 0;
|
|
78
|
+
width: $form-check-input-width * 1.5;
|
|
79
|
+
height: $form-check-input-width * 1.5;
|
|
80
|
+
margin-left: -$form-check-padding-start * 1.5;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
package/src/{components/datepicker/datepicker.scss → assets/scss/components/_datepicker.scss}
RENAMED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
@import '
|
|
1
|
+
@import '../variables';
|
|
2
|
+
@import '../directives/tooltip';
|
|
3
|
+
@import '../input-addon';
|
|
2
4
|
|
|
3
5
|
.air-datepicker-cell {
|
|
4
6
|
&.-range-from-:not(.-range-to-),
|
|
@@ -917,4 +919,218 @@ $rangeThumbSize: 12px;
|
|
|
917
919
|
}
|
|
918
920
|
}
|
|
919
921
|
|
|
922
|
+
[data-theme="dark"] {
|
|
923
|
+
.itf-datepicker {
|
|
924
|
+
&__dropdown {
|
|
925
|
+
background-color: $dark-body-bg;
|
|
926
|
+
border-color: $dark-border-color;
|
|
927
|
+
box-shadow: 0 0 0 2px $dark-input-focus-border;
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
.itf-datepicker {
|
|
933
|
+
&.with-addon .addon-end {
|
|
934
|
+
pointer-events: all;
|
|
935
|
+
padding-right: 0.25rem;
|
|
936
|
+
}
|
|
937
|
+
.form-control {
|
|
938
|
+
border-radius: $input-border-radius !important;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
&__dropdown {
|
|
942
|
+
width: max-content;
|
|
943
|
+
border: $input-border-width solid $input-border-color;
|
|
944
|
+
border-radius: $input-border-radius;
|
|
945
|
+
background-color: $body-bg;
|
|
946
|
+
overflow: hidden;
|
|
947
|
+
@if $enable-shadows {
|
|
948
|
+
@include box-shadow($input-box-shadow, $input-btn-focus-box-shadow);
|
|
949
|
+
} @else {
|
|
950
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
|
951
|
+
box-shadow: $input-btn-focus-box-shadow;
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
// range picker
|
|
958
|
+
|
|
959
|
+
.itf-daterange-picker {
|
|
960
|
+
display: flex;
|
|
961
|
+
.input-group-text.hidden {
|
|
962
|
+
visibility: hidden;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
&.with-addon .addon-end {
|
|
966
|
+
pointer-events: all;
|
|
967
|
+
padding-right: 0.25rem;
|
|
968
|
+
}
|
|
969
|
+
&__dropdown {
|
|
970
|
+
width: max-content;
|
|
971
|
+
overflow: hidden;
|
|
972
|
+
border: $input-border-width solid $input-border-color;
|
|
973
|
+
border-radius: $input-border-radius;
|
|
974
|
+
background-color: $body-bg;
|
|
975
|
+
@if $enable-shadows {
|
|
976
|
+
@include box-shadow($input-box-shadow, $input-btn-focus-box-shadow);
|
|
977
|
+
} @else {
|
|
978
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
|
979
|
+
box-shadow: $input-btn-focus-box-shadow;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
.form-control.focused, .form-control.focused input.form-control {
|
|
984
|
+
background-color: $input-focus-border-color;
|
|
985
|
+
}
|
|
986
|
+
[data-theme="dark"] & {
|
|
987
|
+
&__dropdown {
|
|
988
|
+
box-shadow: 0 0 0 2px $dark-input-focus-border;
|
|
989
|
+
}
|
|
990
|
+
.form-control.focused, .form-control.focused input.form-control {
|
|
991
|
+
background-color: $dark-input-focus-border-color;
|
|
992
|
+
}
|
|
993
|
+
.input-group-text {
|
|
994
|
+
color: #fff;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
.form-control input.form-control {
|
|
998
|
+
border: 0 none;
|
|
999
|
+
padding: 0;
|
|
1000
|
+
max-width: 100px;
|
|
1001
|
+
|
|
1002
|
+
&:focus, &:active {
|
|
1003
|
+
border: 0;
|
|
1004
|
+
box-shadow: none;
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
.input-group-text {
|
|
1008
|
+
border: 0 none;
|
|
1009
|
+
background: transparent;
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
.itf-monthpicker {
|
|
1015
|
+
.form-control {
|
|
1016
|
+
background-color: $input-bg;
|
|
1017
|
+
|
|
1018
|
+
&:focus {
|
|
1019
|
+
background-color: $body-bg;
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
&__dropdown {
|
|
1023
|
+
width: max-content;
|
|
1024
|
+
border: $input-border-width solid $input-border-color;
|
|
1025
|
+
border-radius: $input-border-radius;
|
|
1026
|
+
background-color: $body-bg;
|
|
1027
|
+
overflow: hidden;
|
|
1028
|
+
@if $enable-shadows {
|
|
1029
|
+
@include box-shadow($input-box-shadow, $input-btn-focus-box-shadow);
|
|
1030
|
+
} @else {
|
|
1031
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
|
1032
|
+
box-shadow: $input-btn-focus-box-shadow;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
[data-theme="dark"] & {
|
|
1036
|
+
background-color: $dark-body-bg;
|
|
1037
|
+
border-color: $dark-border-color;
|
|
1038
|
+
box-shadow: 0 0 0 2px $dark-input-focus-border;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
|
|
1044
|
+
.itf-periodpicker {
|
|
1045
|
+
.form-control {
|
|
1046
|
+
background-color: $input-bg;
|
|
1047
|
+
|
|
1048
|
+
&:focus {
|
|
1049
|
+
background-color: $body-bg;
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
.air-datepicker {
|
|
1054
|
+
--adp-font-family: #{$font-family-base};
|
|
1055
|
+
--adp-color-current-date: #{$primary};
|
|
1056
|
+
--adp-cell-background-color-selected: #{$primary};
|
|
1057
|
+
--adp-cell-background-color-selected-hover: #{lighten($primary, 10%)};
|
|
1058
|
+
--adp-day-name-color: #{$secondary};
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
&__quarters {
|
|
1062
|
+
gap: 5px;
|
|
1063
|
+
}
|
|
1064
|
+
&__quarters, &__months {
|
|
1065
|
+
display: flex;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
&__month {
|
|
1069
|
+
flex: 1 1 auto;
|
|
1070
|
+
border-radius: 0;
|
|
1071
|
+
justify-content: center;
|
|
1072
|
+
padding-left: 0;
|
|
1073
|
+
padding-right: 0;
|
|
1074
|
+
font-size: 14px;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
&__quarter {
|
|
1078
|
+
flex: 1 1 33.3%;
|
|
1079
|
+
cursor: pointer;
|
|
1080
|
+
color: var(--grey);
|
|
1081
|
+
background-color: rgba(0, 0, 0, 0.04);
|
|
1082
|
+
height: 125px;
|
|
1083
|
+
width: 125px;
|
|
1084
|
+
display: flex;
|
|
1085
|
+
flex-direction: column;
|
|
1086
|
+
justify-content: space-between;
|
|
1087
|
+
border-radius: $input-border-radius;
|
|
1088
|
+
overflow: hidden;
|
|
1089
|
+
text-align: right;
|
|
1090
|
+
|
|
1091
|
+
&:hover {
|
|
1092
|
+
background-color: rgba(9, 30, 66, 0.08);
|
|
1093
|
+
}
|
|
1094
|
+
&.active-inside {
|
|
1095
|
+
background-color: rgba(9, 30, 66, 0.08);
|
|
1096
|
+
}
|
|
1097
|
+
&.active {
|
|
1098
|
+
background-color: $primary;
|
|
1099
|
+
color: #fff;
|
|
1100
|
+
|
|
1101
|
+
.itf-periodpicker__month {
|
|
1102
|
+
color: #fff;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
920
1105
|
|
|
1106
|
+
.quarter-number {
|
|
1107
|
+
font-size: 36px;
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
&__dropdown {
|
|
1112
|
+
padding: 10px 15px;
|
|
1113
|
+
min-width: 400px;
|
|
1114
|
+
width: max-content;
|
|
1115
|
+
border: $input-border-width solid $input-border-color;
|
|
1116
|
+
border-radius: $input-border-radius;
|
|
1117
|
+
background-color: $body-bg;
|
|
1118
|
+
overflow: hidden;
|
|
1119
|
+
@if $enable-shadows {
|
|
1120
|
+
@include box-shadow($input-box-shadow, $input-btn-focus-box-shadow);
|
|
1121
|
+
} @else {
|
|
1122
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
|
1123
|
+
box-shadow: $input-btn-focus-box-shadow;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
[data-theme="dark"] & {
|
|
1127
|
+
background-color: $dark-body-bg;
|
|
1128
|
+
border-color: $dark-border-color;
|
|
1129
|
+
box-shadow: 0 0 0 2px $dark-input-focus-border;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
.btn-whole {
|
|
1133
|
+
background-color: rgba(0, 0, 0, 0.04);
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@import '../variables';
|
|
2
|
+
|
|
3
|
+
.itf-dropdown {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
|
|
6
|
+
&__menu.dropdown-menu {
|
|
7
|
+
border: 0 none;
|
|
8
|
+
padding: 0;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
.air-dropdown {
|
|
14
|
+
z-index: 101;
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: calc(100% + 4px);
|
|
17
|
+
left: -1px;
|
|
18
|
+
border-radius: 0 0 4px 4px;
|
|
19
|
+
background: #fff;
|
|
20
|
+
box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px,
|
|
21
|
+
rgba(9, 30, 66, 0.31) 0px 0px 1px;
|
|
22
|
+
width: 100%;
|
|
23
|
+
|
|
24
|
+
.dropdownInput {
|
|
25
|
+
padding: 10px 14px 8px;
|
|
26
|
+
width: 100%;
|
|
27
|
+
border: none;
|
|
28
|
+
color: #172b4d;
|
|
29
|
+
background: none;
|
|
30
|
+
|
|
31
|
+
&:focus {
|
|
32
|
+
outline: none;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.options {
|
|
37
|
+
padding: 5px 0;
|
|
38
|
+
max-height: 200px;
|
|
39
|
+
overflow-x: hidden;
|
|
40
|
+
overflow-y: auto;
|
|
41
|
+
-webkit-overflow-scrolling: touch;
|
|
42
|
+
// &::-webkit-scrollbar {
|
|
43
|
+
// width: 7px;
|
|
44
|
+
// }
|
|
45
|
+
// &::-webkit-scrollbar-track {
|
|
46
|
+
// background: none;
|
|
47
|
+
// }
|
|
48
|
+
// &::-webkit-scrollbar-thumb {
|
|
49
|
+
// // border-radius: 99px;
|
|
50
|
+
// background: #d1d1d1;
|
|
51
|
+
// }
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.option {
|
|
55
|
+
padding: 8px 14px;
|
|
56
|
+
word-break: break-word;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
|
|
59
|
+
&.select-option-is-active {
|
|
60
|
+
background: #e8ecee;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.optionsNoResults {
|
|
65
|
+
padding: 0px 15px 10px;
|
|
66
|
+
color: #8993a4;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[data-theme="dark"] .air-dropdown {
|
|
72
|
+
background: $dark-input-focus-border-color;
|
|
73
|
+
|
|
74
|
+
.option {
|
|
75
|
+
&.select-option-is-active {
|
|
76
|
+
background: $dark-border-color;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|