@itfin/components 1.2.31 → 1.2.34
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/dist/ITFComponents.common.js +0 -2
- package/dist/ITFComponents.common.js.map +1 -1
- package/dist/ITFComponents.umd.js +0 -2
- package/dist/ITFComponents.umd.js.map +1 -1
- package/package.json +16 -20
- 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/_css_variables.scss +17 -0
- package/src/assets/scss/_input-addon.scss +1 -1
- 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} +314 -1
- package/src/assets/scss/components/_dropdown.scss +78 -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 +7 -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 +24 -2
- package/src/components/alert/Alert.vue +0 -4
- 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/DatePickerInline.vue +11 -43
- package/src/components/datepicker/DateRangePicker.vue +0 -58
- package/src/components/datepicker/DateRangePickerInline.vue +10 -39
- package/src/components/datepicker/MonthPicker.vue +0 -34
- package/src/components/datepicker/PeriodPicker.vue +0 -97
- package/src/components/datepicker/index.stories.js +6 -6
- 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 +0 -70
- 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/directives/visible.js +1 -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
|
@@ -72,103 +72,6 @@
|
|
|
72
72
|
</div>
|
|
73
73
|
</div>
|
|
74
74
|
</template>
|
|
75
|
-
<style lang="scss">
|
|
76
|
-
@import '../../assets/scss/variables';
|
|
77
|
-
|
|
78
|
-
.itf-periodpicker {
|
|
79
|
-
.form-control {
|
|
80
|
-
background-color: $input-bg;
|
|
81
|
-
|
|
82
|
-
&:focus {
|
|
83
|
-
background-color: $body-bg;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.air-datepicker {
|
|
88
|
-
--adp-font-family: #{$font-family-base};
|
|
89
|
-
--adp-color-current-date: #{$primary};
|
|
90
|
-
--adp-cell-background-color-selected: #{$primary};
|
|
91
|
-
--adp-cell-background-color-selected-hover: #{lighten($primary, 10%)};
|
|
92
|
-
--adp-day-name-color: #{$secondary};
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&__quarters {
|
|
96
|
-
gap: 5px;
|
|
97
|
-
}
|
|
98
|
-
&__quarters, &__months {
|
|
99
|
-
display: flex;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&__month {
|
|
103
|
-
flex: 1 1 auto;
|
|
104
|
-
border-radius: 0;
|
|
105
|
-
justify-content: center;
|
|
106
|
-
padding-left: 0;
|
|
107
|
-
padding-right: 0;
|
|
108
|
-
font-size: 14px;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&__quarter {
|
|
112
|
-
flex: 1 1 33.3%;
|
|
113
|
-
cursor: pointer;
|
|
114
|
-
color: var(--grey);
|
|
115
|
-
background-color: rgba(0, 0, 0, 0.04);
|
|
116
|
-
height: 125px;
|
|
117
|
-
width: 125px;
|
|
118
|
-
display: flex;
|
|
119
|
-
flex-direction: column;
|
|
120
|
-
justify-content: space-between;
|
|
121
|
-
border-radius: $input-border-radius;
|
|
122
|
-
overflow: hidden;
|
|
123
|
-
text-align: right;
|
|
124
|
-
|
|
125
|
-
&:hover {
|
|
126
|
-
background-color: rgba(9, 30, 66, 0.08);
|
|
127
|
-
}
|
|
128
|
-
&.active-inside {
|
|
129
|
-
background-color: rgba(9, 30, 66, 0.08);
|
|
130
|
-
}
|
|
131
|
-
&.active {
|
|
132
|
-
background-color: $primary;
|
|
133
|
-
color: #fff;
|
|
134
|
-
|
|
135
|
-
.itf-periodpicker__month {
|
|
136
|
-
color: #fff;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.quarter-number {
|
|
141
|
-
font-size: 36px;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
&__dropdown {
|
|
146
|
-
padding: 10px 15px;
|
|
147
|
-
min-width: 400px;
|
|
148
|
-
width: max-content;
|
|
149
|
-
border: $input-border-width solid $input-border-color;
|
|
150
|
-
border-radius: $input-border-radius;
|
|
151
|
-
background-color: $body-bg;
|
|
152
|
-
overflow: hidden;
|
|
153
|
-
@if $enable-shadows {
|
|
154
|
-
@include box-shadow($input-box-shadow, $input-btn-focus-box-shadow);
|
|
155
|
-
} @else {
|
|
156
|
-
// Avoid using mixin so we can pass custom focus shadow properly
|
|
157
|
-
box-shadow: $input-btn-focus-box-shadow;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
[data-theme="dark"] & {
|
|
161
|
-
background-color: $dark-body-bg;
|
|
162
|
-
border-color: $dark-border-color;
|
|
163
|
-
box-shadow: 0 0 0 2px $dark-input-focus-border;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.btn-whole {
|
|
167
|
-
background-color: rgba(0, 0, 0, 0.04);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
</style>
|
|
172
75
|
<script>
|
|
173
76
|
import { Vue, Component, Prop, Inject } from 'vue-property-decorator';
|
|
174
77
|
import { DateTime } from 'luxon';
|
|
@@ -49,28 +49,28 @@ storiesOf('Common', module)
|
|
|
49
49
|
{{date}}
|
|
50
50
|
|
|
51
51
|
<br />
|
|
52
|
-
<itf-date-picker-inline :custom-days="customDays" :value="date" v-model.lazy="date"></itf-date-picker-inline>
|
|
52
|
+
<itf-date-picker-inline value-format="yyyy-MM-dd" :custom-days="customDays" :value="date" v-model.lazy="date"></itf-date-picker-inline>
|
|
53
53
|
|
|
54
54
|
<br />
|
|
55
55
|
<br />
|
|
56
56
|
|
|
57
|
-
<itf-date-picker-inline only-calendar :custom-days="customDays" :value="date" v-model.lazy="date"></itf-date-picker-inline>
|
|
57
|
+
<itf-date-picker-inline value-format="yyyy-MM-dd" only-calendar :custom-days="customDays" :value="date" v-model.lazy="date"></itf-date-picker-inline>
|
|
58
58
|
|
|
59
59
|
<br />
|
|
60
60
|
<br />
|
|
61
61
|
|
|
62
|
-
<itf-date-picker :value="date" v-model.lazy="date"></itf-date-picker>
|
|
62
|
+
<itf-date-picker value-format="yyyy-MM-dd" :value="date" v-model.lazy="date"></itf-date-picker>
|
|
63
63
|
|
|
64
64
|
<br />
|
|
65
65
|
<br />
|
|
66
|
-
<itf-date-picker start-view="years" only-calendar :value="date" v-model.lazy="date"></itf-date-picker>
|
|
66
|
+
<itf-date-picker value-format="yyyy-MM-dd" start-view="years" only-calendar :value="date" v-model.lazy="date"></itf-date-picker>
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
<h2>Range</h2>
|
|
70
70
|
|
|
71
|
-
<itf-date-range-picker v-model="dateRange"></itf-date-range-picker>
|
|
71
|
+
<itf-date-range-picker value-format="yyyy-MM-dd" v-model="dateRange"></itf-date-range-picker>
|
|
72
72
|
|
|
73
|
-
<itf-date-range-picker-inline v-model="dateRange"></itf-date-range-picker-inline>
|
|
73
|
+
<itf-date-range-picker-inline value-format="yyyy-MM-dd" v-model="dateRange"></itf-date-range-picker-inline>
|
|
74
74
|
|
|
75
75
|
<h2>Month</h2>
|
|
76
76
|
|
|
@@ -21,20 +21,6 @@
|
|
|
21
21
|
</div>
|
|
22
22
|
|
|
23
23
|
</template>
|
|
24
|
-
<style lang="scss">
|
|
25
|
-
@import '../../assets/scss/variables';
|
|
26
|
-
//@import '~bootstrap/scss/dropdown';
|
|
27
|
-
//@import '~bootstrap/scss/transitions';
|
|
28
|
-
|
|
29
|
-
.itf-dropdown {
|
|
30
|
-
display: inline-block;
|
|
31
|
-
|
|
32
|
-
&__menu.dropdown-menu {
|
|
33
|
-
border: 0 none;
|
|
34
|
-
padding: 0;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
</style>
|
|
38
24
|
<script>
|
|
39
25
|
import { Vue, Component, Prop, Watch, PropSync } from 'vue-property-decorator';
|
|
40
26
|
import itfButton from '../button/Button';
|
|
@@ -3,10 +3,6 @@
|
|
|
3
3
|
<slot :valid="valid" :validate="doValidation" :reset="resetValidation"/>
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
|
-
<style lang="scss">
|
|
7
|
-
@import '../../assets/scss/variables';
|
|
8
|
-
//@import '~bootstrap/scss/forms';
|
|
9
|
-
</style>
|
|
10
6
|
<script>
|
|
11
7
|
import { Vue, Component, Watch, Model } from 'vue-property-decorator';
|
|
12
8
|
import * as validators from '../../helpers/validators';
|
|
@@ -23,30 +23,6 @@
|
|
|
23
23
|
</div>
|
|
24
24
|
|
|
25
25
|
</template>
|
|
26
|
-
<style lang="scss" scoped>
|
|
27
|
-
@import '../../assets/scss/variables';
|
|
28
|
-
|
|
29
|
-
.itf-label {
|
|
30
|
-
&.no-details {
|
|
31
|
-
margin-bottom: .5rem;
|
|
32
|
-
}
|
|
33
|
-
&__label {
|
|
34
|
-
.star {
|
|
35
|
-
color: $danger;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
&__errors {
|
|
39
|
-
min-height: 21px;
|
|
40
|
-
margin-top: 4px;
|
|
41
|
-
font-size: 0.75rem;
|
|
42
|
-
opacity: .5;
|
|
43
|
-
|
|
44
|
-
&.valid-feedback, &.invalid-feedback {
|
|
45
|
-
opacity: 1;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
</style>
|
|
50
26
|
<script>
|
|
51
27
|
import { Component, Prop, Inject, Mixins } from 'vue-property-decorator';
|
|
52
28
|
import ValidatableMixin from '../../mixins/ValidatableMixin';
|
|
@@ -3,14 +3,6 @@
|
|
|
3
3
|
<component @click="$emit('click')" :style="style" :is="iconComponent"></component>
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
6
|
-
<style lang="scss" scoped>
|
|
7
|
-
@import '../../assets/scss/variables';
|
|
8
|
-
|
|
9
|
-
.itf-icon {
|
|
10
|
-
display: inline-block;
|
|
11
|
-
pointer-events: none;
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
14
6
|
<script>
|
|
15
7
|
import { Vue, Prop, Component } from 'vue-property-decorator';
|
|
16
8
|
import icons from './icons';
|
|
@@ -23,19 +23,6 @@
|
|
|
23
23
|
</div>
|
|
24
24
|
|
|
25
25
|
</template>
|
|
26
|
-
<style lang="scss">
|
|
27
|
-
@import '../../assets/scss/variables';
|
|
28
|
-
//@import '~bootstrap/scss/modal';
|
|
29
|
-
//@import '~bootstrap/scss/transitions';
|
|
30
|
-
|
|
31
|
-
.itf-modal {
|
|
32
|
-
.modal-header {
|
|
33
|
-
.btn-close {
|
|
34
|
-
margin-right: 0;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
</style>
|
|
39
26
|
<script>
|
|
40
27
|
import { Vue, Component, Prop, Watch, PropSync, Inject } from 'vue-property-decorator';
|
|
41
28
|
import itfButton from '../button/Button';
|
|
@@ -25,20 +25,6 @@
|
|
|
25
25
|
</nav>
|
|
26
26
|
|
|
27
27
|
</template>
|
|
28
|
-
<style lang="scss">
|
|
29
|
-
@import '../../assets/scss/variables';
|
|
30
|
-
|
|
31
|
-
.itf-pagination.pagination {
|
|
32
|
-
padding-left: 0;
|
|
33
|
-
|
|
34
|
-
.page-item {
|
|
35
|
-
margin-right: 3px;
|
|
36
|
-
.page-link {
|
|
37
|
-
border-radius: .5rem;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
</style>
|
|
42
28
|
<script>
|
|
43
29
|
import { Vue, Component, Model, Prop } from 'vue-property-decorator';
|
|
44
30
|
import itfIcon from '../icon/Icon.vue';
|
|
@@ -18,11 +18,6 @@
|
|
|
18
18
|
</div>
|
|
19
19
|
</itf-popover>
|
|
20
20
|
</template>
|
|
21
|
-
<style lang="scss">
|
|
22
|
-
.nopadding .popover-body {
|
|
23
|
-
padding: 0;
|
|
24
|
-
}
|
|
25
|
-
</style>
|
|
26
21
|
<script>
|
|
27
22
|
import { Vue, Component, Prop, PropSync } from 'vue-property-decorator';
|
|
28
23
|
import itfPopover from './Popover';
|
|
@@ -9,41 +9,6 @@
|
|
|
9
9
|
</div>
|
|
10
10
|
|
|
11
11
|
</template>
|
|
12
|
-
<style lang="scss">
|
|
13
|
-
@import '../../assets/scss/variables';
|
|
14
|
-
|
|
15
|
-
.itf-popover {
|
|
16
|
-
display: none;
|
|
17
|
-
|
|
18
|
-
.popover-body > & {
|
|
19
|
-
display: block;
|
|
20
|
-
}
|
|
21
|
-
.border-right {
|
|
22
|
-
border-right: 1px solid #eee;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
.itf-popover-container {
|
|
26
|
-
display: inline-block;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
[data-theme="dark"] {
|
|
30
|
-
.itf-popover {
|
|
31
|
-
.border-right {
|
|
32
|
-
border-color: $dark-border-color;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
.popover {
|
|
36
|
-
background-color: $dark-body-bg;
|
|
37
|
-
border-color: $dark-border-color;
|
|
38
|
-
}
|
|
39
|
-
.bs-popover-bottom > .popover-arrow::after, .bs-popover-auto[data-popper-placement^=bottom] > .popover-arrow::after {
|
|
40
|
-
border-bottom-color: $dark-border-color;
|
|
41
|
-
}
|
|
42
|
-
.popover-body {
|
|
43
|
-
color: $dark-body-color;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
</style>
|
|
47
12
|
<script>
|
|
48
13
|
import {
|
|
49
14
|
Vue, Component, Prop, Watch, PropSync,
|
|
@@ -29,146 +29,6 @@
|
|
|
29
29
|
</div>
|
|
30
30
|
</div>
|
|
31
31
|
</template>
|
|
32
|
-
<style lang="scss">
|
|
33
|
-
@import '../../assets/scss/variables';
|
|
34
|
-
|
|
35
|
-
.itf-segmeneted-control {
|
|
36
|
-
--itf-segmeneted-control--background: #{$input-bg};
|
|
37
|
-
--itf-segmeneted-control--border-radius: #{$border-radius};
|
|
38
|
-
--itf-segmeneted-control--shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
39
|
-
|
|
40
|
-
cursor: pointer;
|
|
41
|
-
background: var(--itf-segmeneted-control--background);
|
|
42
|
-
border-radius: var(--itf-segmeneted-control--border-radius);
|
|
43
|
-
margin: 0;
|
|
44
|
-
padding: 2px;
|
|
45
|
-
border: none;
|
|
46
|
-
outline: none;
|
|
47
|
-
display: inline-grid;
|
|
48
|
-
grid-auto-flow: column;
|
|
49
|
-
grid-auto-columns: 1fr;
|
|
50
|
-
-webkit-user-select: none;
|
|
51
|
-
-moz-user-select: none;
|
|
52
|
-
-ms-user-select: none;
|
|
53
|
-
user-select: none;
|
|
54
|
-
overflow: hidden;
|
|
55
|
-
|
|
56
|
-
.option {
|
|
57
|
-
position: relative;
|
|
58
|
-
cursor: pointer;
|
|
59
|
-
|
|
60
|
-
&:hover input:not(:checked) + label span,
|
|
61
|
-
&:active input:not(:checked) + label span,
|
|
62
|
-
&:focus input:not(:checked) + label span {
|
|
63
|
-
/*opacity: .2;*/
|
|
64
|
-
color: var(--v-primary-base);
|
|
65
|
-
}
|
|
66
|
-
&:active input:not(:checked) + label span {
|
|
67
|
-
transform: scale(.95);
|
|
68
|
-
}
|
|
69
|
-
&:first-of-type {
|
|
70
|
-
grid-column: 1;
|
|
71
|
-
grid-row: 1;
|
|
72
|
-
box-shadow: none;
|
|
73
|
-
|
|
74
|
-
label::before {
|
|
75
|
-
opacity: 0;
|
|
76
|
-
}
|
|
77
|
-
label::after {
|
|
78
|
-
opacity: 0;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
&:last-of-type {
|
|
82
|
-
label::after {
|
|
83
|
-
opacity: 0;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
label {
|
|
87
|
-
justify-content: center;
|
|
88
|
-
height: 100%;
|
|
89
|
-
align-items: center;
|
|
90
|
-
display: flex;
|
|
91
|
-
cursor: pointer;
|
|
92
|
-
position: relative;
|
|
93
|
-
text-align: center;
|
|
94
|
-
padding: .25rem 1.5rem;
|
|
95
|
-
background: rgba(255, 255, 255, 0);
|
|
96
|
-
color: rgba(0, 0, 0, 1);
|
|
97
|
-
|
|
98
|
-
&::before,
|
|
99
|
-
&::after {
|
|
100
|
-
content: '';
|
|
101
|
-
width: 1px;
|
|
102
|
-
background: rgba(142, 142, 147, .15);
|
|
103
|
-
position: absolute;
|
|
104
|
-
top: 14%;
|
|
105
|
-
bottom: 14%;
|
|
106
|
-
border-radius: var(--itf-segmeneted-control--border-radius);
|
|
107
|
-
will-change: background;
|
|
108
|
-
-webkit-transition: background .2s ease;
|
|
109
|
-
transition: background .2s ease;
|
|
110
|
-
}
|
|
111
|
-
&::before {
|
|
112
|
-
left: 0;
|
|
113
|
-
transform: translateX(-.5px);
|
|
114
|
-
}
|
|
115
|
-
&::after {
|
|
116
|
-
right: 0;
|
|
117
|
-
transform: translateX(.5px);
|
|
118
|
-
}
|
|
119
|
-
span {
|
|
120
|
-
display: block;
|
|
121
|
-
position: relative;
|
|
122
|
-
z-index: 2;
|
|
123
|
-
-webkit-transition: all .2s ease;
|
|
124
|
-
transition: all .2s ease;
|
|
125
|
-
will-change: transform;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
input {
|
|
130
|
-
position: absolute;
|
|
131
|
-
top: 0;
|
|
132
|
-
left: 0;
|
|
133
|
-
right: 0;
|
|
134
|
-
bottom: 0;
|
|
135
|
-
width: 100%;
|
|
136
|
-
height: 100%;
|
|
137
|
-
padding: 0;
|
|
138
|
-
margin: 0;
|
|
139
|
-
-webkit-appearance: none;
|
|
140
|
-
-moz-appearance: none;
|
|
141
|
-
appearance: none;
|
|
142
|
-
outline: none;
|
|
143
|
-
border: none;
|
|
144
|
-
opacity: 0;
|
|
145
|
-
|
|
146
|
-
&:checked + label {
|
|
147
|
-
cursor: default;
|
|
148
|
-
}
|
|
149
|
-
&:checked + label::before,
|
|
150
|
-
&:checked + label::after {
|
|
151
|
-
background: var(--itf-segmeneted-control--background);
|
|
152
|
-
z-index: 1;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
.selection {
|
|
157
|
-
margin-right: 1px;
|
|
158
|
-
background: rgba(255, 255, 255, 1);
|
|
159
|
-
border: .5px solid rgba(0, 0, 0, 0.04);
|
|
160
|
-
box-shadow: var(--itf-segmeneted-control--shadow);
|
|
161
|
-
/*box-shadow: 0 3px 8px 0 rgba(0,0,0,0.12), 0 3px 1px 0 rgba(0,0,0,0.04);*/
|
|
162
|
-
border-radius: var(--itf-segmeneted-control--border-radius);
|
|
163
|
-
grid-column: 1;
|
|
164
|
-
grid-row: 1;
|
|
165
|
-
z-index: 2;
|
|
166
|
-
will-change: transform;
|
|
167
|
-
-webkit-transition: transform .2s ease;
|
|
168
|
-
transition: transform .2s ease;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
</style>
|
|
172
32
|
<script>
|
|
173
33
|
import { Vue, Component, Model, Prop, Watch } from 'vue-property-decorator';
|
|
174
34
|
import itfSelect from '../select/Select';
|
|
@@ -245,116 +245,3 @@ class itfAirSelect extends Vue {
|
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
</script>
|
|
248
|
-
|
|
249
|
-
<style lang="scss" scoped>
|
|
250
|
-
@import '../../assets/scss/variables';
|
|
251
|
-
.select {
|
|
252
|
-
position: relative;
|
|
253
|
-
border-radius: 4px;
|
|
254
|
-
cursor: pointer;
|
|
255
|
-
font-size: 14px;
|
|
256
|
-
transition: background 0.1s;
|
|
257
|
-
&:focus {
|
|
258
|
-
outline: none;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
.valueContainer {
|
|
262
|
-
display: flex;
|
|
263
|
-
align-items: center;
|
|
264
|
-
width: 100%;
|
|
265
|
-
min-height: 32px;
|
|
266
|
-
justify-content: space-between;
|
|
267
|
-
}
|
|
268
|
-
.valueMulti {
|
|
269
|
-
display: flex;
|
|
270
|
-
align-items: center;
|
|
271
|
-
flex-wrap: wrap;
|
|
272
|
-
// padding-top: 5px;
|
|
273
|
-
}
|
|
274
|
-
.valueMultiItem {
|
|
275
|
-
height: 22px;
|
|
276
|
-
overflow: hidden;
|
|
277
|
-
border-radius: 3px;
|
|
278
|
-
display: flex;
|
|
279
|
-
align-items: center;
|
|
280
|
-
user-select: none;
|
|
281
|
-
background: #f0f0f0;
|
|
282
|
-
font-size: 14px;
|
|
283
|
-
.valueMultiItemLabel {
|
|
284
|
-
flex: auto;
|
|
285
|
-
padding: 0 4px;
|
|
286
|
-
height: 100%;
|
|
287
|
-
display: flex;
|
|
288
|
-
align-items: center;
|
|
289
|
-
border-right: 1px solid #ddd;
|
|
290
|
-
}
|
|
291
|
-
.valueMultiItemClose {
|
|
292
|
-
border-left: none;
|
|
293
|
-
overflow: hidden;
|
|
294
|
-
padding: 0 2px;
|
|
295
|
-
height: 100%;
|
|
296
|
-
display: flex;
|
|
297
|
-
align-items: center;
|
|
298
|
-
justify-content: center;
|
|
299
|
-
&:hover {
|
|
300
|
-
background: #ff4757;
|
|
301
|
-
color: white;
|
|
302
|
-
}
|
|
303
|
-
.icon {
|
|
304
|
-
width: 18px;
|
|
305
|
-
height: 18px;
|
|
306
|
-
fill: currentColor;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
.addMore {
|
|
311
|
-
font-size: 12.5px;
|
|
312
|
-
cursor: pointer;
|
|
313
|
-
display: flex;
|
|
314
|
-
align-items: center;
|
|
315
|
-
color: #0052cc;
|
|
316
|
-
&:hover,
|
|
317
|
-
&:visited,
|
|
318
|
-
&:active {
|
|
319
|
-
color: #0052cc;
|
|
320
|
-
}
|
|
321
|
-
&:hover {
|
|
322
|
-
text-decoration: underline;
|
|
323
|
-
}
|
|
324
|
-
.icon {
|
|
325
|
-
width: 16px;
|
|
326
|
-
height: 16px;
|
|
327
|
-
fill: currentColor;
|
|
328
|
-
margin-right: 2px;
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
[data-theme="dark"] .select.normal {
|
|
333
|
-
border-color: $dark-input-focus-border-color;
|
|
334
|
-
background: $dark-input-focus-border-color;
|
|
335
|
-
}
|
|
336
|
-
.select.normal {
|
|
337
|
-
width: 100%;
|
|
338
|
-
padding-left: 0.5rem;
|
|
339
|
-
padding-right: 0.5rem;
|
|
340
|
-
border-width: 1px;
|
|
341
|
-
border-color: #dfe1e6;
|
|
342
|
-
background-color: #f4f5f7;
|
|
343
|
-
position: relative;
|
|
344
|
-
border-radius: 4px;
|
|
345
|
-
cursor: pointer;
|
|
346
|
-
font-size: 14px;
|
|
347
|
-
-webkit-transition: background .1s;
|
|
348
|
-
transition: background .1s;
|
|
349
|
-
}
|
|
350
|
-
.select.normal:hover {
|
|
351
|
-
@apply bg-backgroundLight;
|
|
352
|
-
}
|
|
353
|
-
.select.normal:focus {
|
|
354
|
-
@apply border border-borderInputFocus bg-white text-borderInputFocus;
|
|
355
|
-
box-shadow: 0 0 0 1px currentColor;
|
|
356
|
-
}
|
|
357
|
-
.select.empty {
|
|
358
|
-
display: inline-block;
|
|
359
|
-
}
|
|
360
|
-
</style>
|
|
@@ -214,73 +214,3 @@ class itfDropdown extends Vue {
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
</script>
|
|
217
|
-
|
|
218
|
-
<style scoped lang="scss">
|
|
219
|
-
@import '../../assets/scss/variables';
|
|
220
|
-
.dropdown {
|
|
221
|
-
z-index: 101;
|
|
222
|
-
position: absolute;
|
|
223
|
-
top: calc(100% + 4px);
|
|
224
|
-
left: -1px;
|
|
225
|
-
border-radius: 0 0 4px 4px;
|
|
226
|
-
background: #fff;
|
|
227
|
-
box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px,
|
|
228
|
-
rgba(9, 30, 66, 0.31) 0px 0px 1px;
|
|
229
|
-
width: 100%;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
[data-theme="dark"] .dropdown {
|
|
233
|
-
background: $dark-input-focus-border-color;
|
|
234
|
-
|
|
235
|
-
.option {
|
|
236
|
-
&.select-option-is-active {
|
|
237
|
-
background: $dark-border-color;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.dropdownInput {
|
|
243
|
-
padding: 10px 14px 8px;
|
|
244
|
-
width: 100%;
|
|
245
|
-
border: none;
|
|
246
|
-
color: #172b4d;
|
|
247
|
-
background: none;
|
|
248
|
-
|
|
249
|
-
&:focus {
|
|
250
|
-
outline: none;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.options {
|
|
255
|
-
padding: 5px 0;
|
|
256
|
-
max-height: 200px;
|
|
257
|
-
overflow-x: hidden;
|
|
258
|
-
overflow-y: auto;
|
|
259
|
-
-webkit-overflow-scrolling: touch;
|
|
260
|
-
// &::-webkit-scrollbar {
|
|
261
|
-
// width: 7px;
|
|
262
|
-
// }
|
|
263
|
-
// &::-webkit-scrollbar-track {
|
|
264
|
-
// background: none;
|
|
265
|
-
// }
|
|
266
|
-
// &::-webkit-scrollbar-thumb {
|
|
267
|
-
// // border-radius: 99px;
|
|
268
|
-
// background: #d1d1d1;
|
|
269
|
-
// }
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.option {
|
|
273
|
-
padding: 8px 14px;
|
|
274
|
-
word-break: break-word;
|
|
275
|
-
cursor: pointer;
|
|
276
|
-
|
|
277
|
-
&.select-option-is-active {
|
|
278
|
-
background: #e8ecee;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.optionsNoResults {
|
|
283
|
-
padding: 0px 15px 10px;
|
|
284
|
-
color: #8993a4;
|
|
285
|
-
}
|
|
286
|
-
</style>
|