@itfin/components 1.2.33 → 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/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 +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 +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 +22 -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 +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/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
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import '../variables';
|
|
2
|
+
|
|
3
|
+
.itf-label {
|
|
4
|
+
&.no-details {
|
|
5
|
+
margin-bottom: .5rem;
|
|
6
|
+
}
|
|
7
|
+
&__label {
|
|
8
|
+
.star {
|
|
9
|
+
color: $danger;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
&__errors {
|
|
13
|
+
min-height: 21px;
|
|
14
|
+
margin-top: 4px;
|
|
15
|
+
font-size: 0.75rem;
|
|
16
|
+
opacity: .5;
|
|
17
|
+
|
|
18
|
+
&.valid-feedback, &.invalid-feedback {
|
|
19
|
+
opacity: 1;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@import '../variables';
|
|
2
|
+
|
|
3
|
+
.itf-popover {
|
|
4
|
+
display: none;
|
|
5
|
+
|
|
6
|
+
.popover-body > & {
|
|
7
|
+
display: block;
|
|
8
|
+
}
|
|
9
|
+
.border-right {
|
|
10
|
+
border-right: 1px solid #eee;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
.itf-popover-container {
|
|
14
|
+
display: inline-block;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[data-theme="dark"] {
|
|
18
|
+
.itf-popover {
|
|
19
|
+
.border-right {
|
|
20
|
+
border-color: $dark-border-color;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.popover {
|
|
24
|
+
background-color: $dark-body-bg;
|
|
25
|
+
border-color: $dark-border-color;
|
|
26
|
+
}
|
|
27
|
+
.bs-popover-bottom > .popover-arrow::after, .bs-popover-auto[data-popper-placement^=bottom] > .popover-arrow::after {
|
|
28
|
+
border-bottom-color: $dark-border-color;
|
|
29
|
+
}
|
|
30
|
+
.popover-body {
|
|
31
|
+
color: $dark-body-color;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.nopadding .popover-body {
|
|
36
|
+
padding: 0;
|
|
37
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
@import '../variables';
|
|
2
|
+
|
|
3
|
+
.itf-segmeneted-control {
|
|
4
|
+
--itf-segmeneted-control--background: #{$input-bg};
|
|
5
|
+
--itf-segmeneted-control--border-radius: #{$border-radius};
|
|
6
|
+
--itf-segmeneted-control--shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
7
|
+
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
background: var(--itf-segmeneted-control--background);
|
|
10
|
+
border-radius: var(--itf-segmeneted-control--border-radius);
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 2px;
|
|
13
|
+
border: none;
|
|
14
|
+
outline: none;
|
|
15
|
+
display: inline-grid;
|
|
16
|
+
grid-auto-flow: column;
|
|
17
|
+
grid-auto-columns: 1fr;
|
|
18
|
+
-webkit-user-select: none;
|
|
19
|
+
-moz-user-select: none;
|
|
20
|
+
-ms-user-select: none;
|
|
21
|
+
user-select: none;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
|
|
24
|
+
.option {
|
|
25
|
+
position: relative;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
|
|
28
|
+
&:hover input:not(:checked) + label span,
|
|
29
|
+
&:active input:not(:checked) + label span,
|
|
30
|
+
&:focus input:not(:checked) + label span {
|
|
31
|
+
/*opacity: .2;*/
|
|
32
|
+
color: var(--v-primary-base);
|
|
33
|
+
}
|
|
34
|
+
&:active input:not(:checked) + label span {
|
|
35
|
+
transform: scale(.95);
|
|
36
|
+
}
|
|
37
|
+
&:first-of-type {
|
|
38
|
+
grid-column: 1;
|
|
39
|
+
grid-row: 1;
|
|
40
|
+
box-shadow: none;
|
|
41
|
+
|
|
42
|
+
label::before {
|
|
43
|
+
opacity: 0;
|
|
44
|
+
}
|
|
45
|
+
label::after {
|
|
46
|
+
opacity: 0;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
&:last-of-type {
|
|
50
|
+
label::after {
|
|
51
|
+
opacity: 0;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
label {
|
|
55
|
+
justify-content: center;
|
|
56
|
+
height: 100%;
|
|
57
|
+
align-items: center;
|
|
58
|
+
display: flex;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
position: relative;
|
|
61
|
+
text-align: center;
|
|
62
|
+
padding: .25rem 1.5rem;
|
|
63
|
+
background: rgba(255, 255, 255, 0);
|
|
64
|
+
color: rgba(0, 0, 0, 1);
|
|
65
|
+
|
|
66
|
+
&::before,
|
|
67
|
+
&::after {
|
|
68
|
+
content: '';
|
|
69
|
+
width: 1px;
|
|
70
|
+
background: rgba(142, 142, 147, .15);
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: 14%;
|
|
73
|
+
bottom: 14%;
|
|
74
|
+
border-radius: var(--itf-segmeneted-control--border-radius);
|
|
75
|
+
will-change: background;
|
|
76
|
+
-webkit-transition: background .2s ease;
|
|
77
|
+
transition: background .2s ease;
|
|
78
|
+
}
|
|
79
|
+
&::before {
|
|
80
|
+
left: 0;
|
|
81
|
+
transform: translateX(-.5px);
|
|
82
|
+
}
|
|
83
|
+
&::after {
|
|
84
|
+
right: 0;
|
|
85
|
+
transform: translateX(.5px);
|
|
86
|
+
}
|
|
87
|
+
span {
|
|
88
|
+
display: block;
|
|
89
|
+
position: relative;
|
|
90
|
+
z-index: 2;
|
|
91
|
+
-webkit-transition: all .2s ease;
|
|
92
|
+
transition: all .2s ease;
|
|
93
|
+
will-change: transform;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
input {
|
|
98
|
+
position: absolute;
|
|
99
|
+
top: 0;
|
|
100
|
+
left: 0;
|
|
101
|
+
right: 0;
|
|
102
|
+
bottom: 0;
|
|
103
|
+
width: 100%;
|
|
104
|
+
height: 100%;
|
|
105
|
+
padding: 0;
|
|
106
|
+
margin: 0;
|
|
107
|
+
-webkit-appearance: none;
|
|
108
|
+
-moz-appearance: none;
|
|
109
|
+
appearance: none;
|
|
110
|
+
outline: none;
|
|
111
|
+
border: none;
|
|
112
|
+
opacity: 0;
|
|
113
|
+
|
|
114
|
+
&:checked + label {
|
|
115
|
+
cursor: default;
|
|
116
|
+
}
|
|
117
|
+
&:checked + label::before,
|
|
118
|
+
&:checked + label::after {
|
|
119
|
+
background: var(--itf-segmeneted-control--background);
|
|
120
|
+
z-index: 1;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
.selection {
|
|
125
|
+
margin-right: 1px;
|
|
126
|
+
background: rgba(255, 255, 255, 1);
|
|
127
|
+
border: .5px solid rgba(0, 0, 0, 0.04);
|
|
128
|
+
box-shadow: var(--itf-segmeneted-control--shadow);
|
|
129
|
+
/*box-shadow: 0 3px 8px 0 rgba(0,0,0,0.12), 0 3px 1px 0 rgba(0,0,0,0.04);*/
|
|
130
|
+
border-radius: var(--itf-segmeneted-control--border-radius);
|
|
131
|
+
grid-column: 1;
|
|
132
|
+
grid-row: 1;
|
|
133
|
+
z-index: 2;
|
|
134
|
+
will-change: transform;
|
|
135
|
+
-webkit-transition: transform .2s ease;
|
|
136
|
+
transition: transform .2s ease;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@import '../variables';
|
|
2
|
+
@import '../directives/loading';
|
|
3
|
+
@import './select/variables';
|
|
4
|
+
@import './select/component';
|
|
5
|
+
@import './select/animations';
|
|
6
|
+
@import './select/states';
|
|
7
|
+
|
|
8
|
+
@import './select/dropdown-toggle';
|
|
9
|
+
@import './select/open-indicator';
|
|
10
|
+
@import './select/clear';
|
|
11
|
+
@import './select/dropdown-menu';
|
|
12
|
+
@import './select/dropdown-option';
|
|
13
|
+
@import './select/selected';
|
|
14
|
+
@import './select/search-input';
|
|
15
|
+
@import './select/spinner';
|
|
16
|
+
|
|
17
|
+
[data-theme="dark"] {
|
|
18
|
+
.itf-select {
|
|
19
|
+
&.vs--open .form-control {
|
|
20
|
+
box-shadow: 0 0 0 0.125rem $dark-input-focus-border;
|
|
21
|
+
border-color: $dark-input-focus-border-color;
|
|
22
|
+
background: $dark-input-focus-border-color;
|
|
23
|
+
}
|
|
24
|
+
&__dropdown-menu {
|
|
25
|
+
background-color: $dark-body-bg;
|
|
26
|
+
border-color: $dark-input-focus-border;
|
|
27
|
+
|
|
28
|
+
.dropdown-item {
|
|
29
|
+
color: $dark-body-color;
|
|
30
|
+
|
|
31
|
+
&.active, &:active {
|
|
32
|
+
background-color: $dark-primary;
|
|
33
|
+
color: $dark-body-bg;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.itf-select {
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
|
|
43
|
+
.form-control {
|
|
44
|
+
padding: 0.3125rem 0.75rem;
|
|
45
|
+
|
|
46
|
+
&.is-valid, &.is-invalid {
|
|
47
|
+
background-image: none;
|
|
48
|
+
}
|
|
49
|
+
&.is-invalid .vs__open-indicator {
|
|
50
|
+
color: $danger;
|
|
51
|
+
}
|
|
52
|
+
&.is-valid .vs__open-indicator {
|
|
53
|
+
color: $success;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
&.vs--multiple .form-control {
|
|
57
|
+
padding-top: 0.125rem;
|
|
58
|
+
padding-bottom: 0.125rem;
|
|
59
|
+
}
|
|
60
|
+
&.vs--open .form-control {
|
|
61
|
+
box-shadow: 0 0 0 0.125rem $input-focus-border;
|
|
62
|
+
border-color: $body-bg;
|
|
63
|
+
background: $body-bg;
|
|
64
|
+
}
|
|
65
|
+
&__dropdown-menu {
|
|
66
|
+
background-color: $body-bg;
|
|
67
|
+
//border: 2px solid $input-focus-border;
|
|
68
|
+
border: 0 none;
|
|
69
|
+
padding-left: 0.125rem !important;
|
|
70
|
+
padding-right: 0.125rem !important;
|
|
71
|
+
left: -2px;
|
|
72
|
+
right: -2px;
|
|
73
|
+
width: auto;
|
|
74
|
+
box-shadow: rgb(9 30 66 / 25%) 0px 4px 8px -2px, rgb(9 30 66 / 31%) 0px 0px 1px;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
@import '../variables';
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--itf-table-background-color: #fff;
|
|
5
|
+
--itf-table-sticky-top: 0;
|
|
6
|
+
--itf-table-border-color: #e1e4e7;
|
|
7
|
+
--itf-table-hover-color: #f0f0f0;
|
|
8
|
+
--itf-table-strip-color: #f8f8f8;//#dadce033;
|
|
9
|
+
--itf-table-sorted-color: #f8f8f8;//#dadce033;
|
|
10
|
+
--itf-table-shadow-width: 3px;
|
|
11
|
+
--itf-table-row-cursor: default;
|
|
12
|
+
--itf-table-sticky-shadow1: rgb(0 0 0 / 16%);
|
|
13
|
+
--itf-table-sticky-shadow2: rgb(0 0 0 / 23%);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[data-theme="dark"] {
|
|
17
|
+
--itf-table-background-color: #{$dark-body-bg};
|
|
18
|
+
--itf-table-border-color: #666;
|
|
19
|
+
--itf-table-hover-color: #111;
|
|
20
|
+
--itf-table-strip-color: #222;
|
|
21
|
+
--itf-table-sorted-color: #444;
|
|
22
|
+
--itf-table-sticky-shadow1: rgb(255 255 255 / 16%);
|
|
23
|
+
--itf-table-sticky-shadow2: rgb(255 255 255 / 23%);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.itf-table {
|
|
27
|
+
width: 100%;
|
|
28
|
+
grid-template-columns: [col-start] auto [col-end];
|
|
29
|
+
grid-template-rows: [header-start] 56px [header-end row-start] auto [row-end];
|
|
30
|
+
|
|
31
|
+
&__wrapper {
|
|
32
|
+
margin-top: 10px;
|
|
33
|
+
margin-right: -30px;
|
|
34
|
+
background-color: var(--itf-table-background-color);
|
|
35
|
+
padding-right: 0;
|
|
36
|
+
//overflow: hidden;
|
|
37
|
+
width: 100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&__headers {
|
|
41
|
+
.scroller {
|
|
42
|
+
overflow-x: hidden;
|
|
43
|
+
overflow-y: visible;
|
|
44
|
+
padding-bottom: 1px;
|
|
45
|
+
}
|
|
46
|
+
.itf-table__header-row {
|
|
47
|
+
display: grid;
|
|
48
|
+
grid-template-columns: var(--itf-table-template);
|
|
49
|
+
}
|
|
50
|
+
.itf-table__header.align-left > span {
|
|
51
|
+
justify-content: flex-start;
|
|
52
|
+
text-align: left;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
&__rows {
|
|
56
|
+
display: grid;
|
|
57
|
+
overflow: auto;
|
|
58
|
+
grid-template-columns: var(--itf-table-template);
|
|
59
|
+
padding-bottom: 10px;
|
|
60
|
+
|
|
61
|
+
& > .itf-table__row {
|
|
62
|
+
display: contents;
|
|
63
|
+
|
|
64
|
+
&:not(.itf-table__summary-row) {
|
|
65
|
+
cursor: var(--itf-table-row-cursor);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&--striped &__row:nth-child(even) &__cell {
|
|
71
|
+
background-color: var(--itf-table-strip-color);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&__cell.itf-table__cell--sorted {
|
|
75
|
+
background-color: var(--itf-table-sorted-color);
|
|
76
|
+
}
|
|
77
|
+
&--hoverable &__rows{
|
|
78
|
+
& > .itf-table__row:not(.itf-table__summary-row) {
|
|
79
|
+
&:hover > .itf-table__cell,
|
|
80
|
+
&:hover > .itf-table__cell--sorted {
|
|
81
|
+
background-color: var(--itf-table-hover-color);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.itf-table__sticky-header &__headers {
|
|
87
|
+
position: sticky;
|
|
88
|
+
top: var(--itf-table-sticky-top);
|
|
89
|
+
z-index: 4;
|
|
90
|
+
|
|
91
|
+
.itf-table__header-row:last-child .itf-table__header {
|
|
92
|
+
&:after {
|
|
93
|
+
display: block;
|
|
94
|
+
content: ' ';
|
|
95
|
+
border-top: 1px solid var(--itf-table-border-color);
|
|
96
|
+
left: 0;
|
|
97
|
+
bottom: 0;
|
|
98
|
+
right: 0;
|
|
99
|
+
height: 0;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&__header {
|
|
105
|
+
background-color: var(--itf-table-background-color);
|
|
106
|
+
grid-row: header;
|
|
107
|
+
font-weight: 500;
|
|
108
|
+
&--sortable {
|
|
109
|
+
cursor: pointer;
|
|
110
|
+
}
|
|
111
|
+
&--sorted {
|
|
112
|
+
background-color: var(--itf-table-sorted-color);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
& > span {
|
|
116
|
+
text-overflow: ellipsis;
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
height: 100%;
|
|
119
|
+
display: block;
|
|
120
|
+
padding: 8px 10px;
|
|
121
|
+
text-align: right;
|
|
122
|
+
|
|
123
|
+
&:hover .com-table-sort-btn {
|
|
124
|
+
opacity: 1;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&:first-child > span {
|
|
129
|
+
text-align: left;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&__small &__header span, &__small &__cell {
|
|
134
|
+
padding: 4px 5px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&__summary-row &__cell {
|
|
138
|
+
padding-top: 2rem;
|
|
139
|
+
border-bottom: 1px solid var(--itf-table-border-color);
|
|
140
|
+
|
|
141
|
+
&:first-child {
|
|
142
|
+
font-weight: 500;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&--borders &__cell {
|
|
147
|
+
border-bottom: 1px solid var(--itf-table-border-color);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&__cell {
|
|
151
|
+
background-color: var(--itf-table-background-color);
|
|
152
|
+
padding: 8px 10px;
|
|
153
|
+
//border-left: 1px solid var(--itf-table-border-color);
|
|
154
|
+
align-items: center;
|
|
155
|
+
display: flex;
|
|
156
|
+
justify-content: end;
|
|
157
|
+
text-align: right;
|
|
158
|
+
word-break: break-word;
|
|
159
|
+
|
|
160
|
+
&:first-child, &.align-left {
|
|
161
|
+
justify-content: flex-start;
|
|
162
|
+
text-align: left;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// First column sticky
|
|
167
|
+
&__sticky-column & {
|
|
168
|
+
.itf-table__header:nth-child(1) {
|
|
169
|
+
position: sticky;
|
|
170
|
+
left: 0;
|
|
171
|
+
z-index: 5;
|
|
172
|
+
border-right: solid 1px var(--itf-table-border-color);
|
|
173
|
+
}
|
|
174
|
+
.itf-table__cell:nth-child(1) {
|
|
175
|
+
position: sticky;
|
|
176
|
+
left: 0;
|
|
177
|
+
z-index: 3;
|
|
178
|
+
border-right: solid 1px var(--itf-table-border-color);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
&__sticky-column &__header, &__sticky-column &__cell {
|
|
182
|
+
&:first-child {
|
|
183
|
+
&:before {
|
|
184
|
+
content: " ";
|
|
185
|
+
display: block;
|
|
186
|
+
//background: rgba(0, 0, 0, .1);
|
|
187
|
+
top: 0;
|
|
188
|
+
left: 100%;
|
|
189
|
+
width: 1px;
|
|
190
|
+
box-shadow: var(--itf-table-sticky-shadow1) 2px 0px 3px, var(--itf-table-sticky-shadow2) 2px 0px 3px;
|
|
191
|
+
height: 100%;
|
|
192
|
+
bottom: 0;
|
|
193
|
+
position: absolute;
|
|
194
|
+
opacity: 0;
|
|
195
|
+
transition: opacity .25s ease-in-out;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
.scrolled-x & {
|
|
200
|
+
.itf-table__header, .itf-table__cell {
|
|
201
|
+
&:first-child {
|
|
202
|
+
&:before {
|
|
203
|
+
opacity: 1;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// Last column sticky
|
|
210
|
+
&__sticky-last-column & {
|
|
211
|
+
.itf-table__header:last-child {
|
|
212
|
+
position: sticky;
|
|
213
|
+
right: 0;
|
|
214
|
+
z-index: 5;
|
|
215
|
+
border-left: solid 1px var(--itf-table-border-color);
|
|
216
|
+
}
|
|
217
|
+
.itf-table__cell:last-child {
|
|
218
|
+
position: sticky;
|
|
219
|
+
right: 0;
|
|
220
|
+
z-index: 3;
|
|
221
|
+
border-left: solid 1px var(--itf-table-border-color);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
&__sticky-last-column &__header, &__sticky-column &__cell {
|
|
225
|
+
&:last-child {
|
|
226
|
+
&:before {
|
|
227
|
+
content: " ";
|
|
228
|
+
display: block;
|
|
229
|
+
//background: rgba(0, 0, 0, .1);
|
|
230
|
+
top: 0;
|
|
231
|
+
left: 0;
|
|
232
|
+
width: 1px;
|
|
233
|
+
box-shadow: var(--itf-table-sticky-shadow1) -2px 0px 3px, var(--itf-table-sticky-shadow2) -2px 0px 3px;
|
|
234
|
+
height: 100%;
|
|
235
|
+
bottom: 0;
|
|
236
|
+
position: absolute;
|
|
237
|
+
opacity: 1;
|
|
238
|
+
transition: opacity .25s ease-in-out;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
.scrolled-right & {
|
|
243
|
+
.itf-table__header, .itf-table__cell {
|
|
244
|
+
&:last-child {
|
|
245
|
+
&:before {
|
|
246
|
+
opacity: 0;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.scrolled-y & {
|
|
253
|
+
.scroller {
|
|
254
|
+
.itf-table__header {
|
|
255
|
+
border-top: 1px solid var(--itf-table-border-color);
|
|
256
|
+
}
|
|
257
|
+
&:after {
|
|
258
|
+
content: " ";
|
|
259
|
+
display: block;
|
|
260
|
+
left: 0;
|
|
261
|
+
right: 0;
|
|
262
|
+
background: rgba(0, 0, 0, .1);
|
|
263
|
+
height: calc(var(--itf-table-shadow-width) - 1px); // subtract 1px border-top
|
|
264
|
+
top: 100%;
|
|
265
|
+
position: absolute;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.table2.table-retrieve tbody tr td.value {
|
|
272
|
+
border: solid 1px transparent; }
|
|
273
|
+
|
|
274
|
+
.table2.table-border-hover tbody tr:hover td.value:hover,
|
|
275
|
+
.table2.table-retrieve tbody tr:hover td.value:hover {
|
|
276
|
+
border: solid 1px #64abdc !important;
|
|
277
|
+
cursor: pointer;
|
|
278
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@import '../variables';
|
|
2
|
+
|
|
3
|
+
.itf-text-field {
|
|
4
|
+
&__input {
|
|
5
|
+
border-radius: $input-border-radius !important;
|
|
6
|
+
}
|
|
7
|
+
.addon-end {
|
|
8
|
+
pointer-events: all;
|
|
9
|
+
padding-right: 0.25rem;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.itf-textarea {
|
|
14
|
+
position: relative;
|
|
15
|
+
|
|
16
|
+
&__input {
|
|
17
|
+
border-radius: $input-border-radius !important;
|
|
18
|
+
resize: none;
|
|
19
|
+
}
|
|
20
|
+
&__autogrow &__input {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 0;
|
|
23
|
+
left: 0;
|
|
24
|
+
right: 0;
|
|
25
|
+
bottom: 0;
|
|
26
|
+
height: 100%;
|
|
27
|
+
width: 100%;
|
|
28
|
+
}
|
|
29
|
+
&__autogrow &__autogrow-text {
|
|
30
|
+
white-space: pre-line;
|
|
31
|
+
visibility: hidden;
|
|
32
|
+
min-height: 4rem;
|
|
33
|
+
max-height: 75vh; // жалувались, що коли багато тексту,
|
|
34
|
+
// то поле за межі вікна виходить і не зручно
|
|
35
|
+
}
|
|
36
|
+
}
|