@itfin/components 1.0.116 → 1.2.1
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 +1 -94
- package/dist/ITFComponents.common.js.map +1 -1
- package/dist/ITFComponents.umd.js +1 -94
- package/dist/ITFComponents.umd.js.map +1 -1
- package/dist/ITFComponents.umd.min.js +1 -1
- package/dist/ITFComponents.umd.min.js.map +1 -1
- package/package.json +13 -13
- package/src/assets/scss/_dark-theme.scss +2 -2
- package/src/assets/scss/_variables.scss +1 -0
- package/src/assets/scss/components/_search-input.scss +3 -2
- package/src/assets/scss/components/_selected.scss +3 -2
- package/src/assets/scss/directives/loading.scss +20 -13
- package/src/assets/scss/directives/tooltip.scss +17 -9
- package/src/assets/scss/main.scss +7 -5
- package/src/components/avatar/index.stories.js +4 -5
- package/src/components/button/Button.vue +48 -42
- package/src/components/datepicker/DatePicker.vue +10 -6
- package/src/components/datepicker/datepicker.scss +25 -23
- package/src/components/modal/Modal.vue +1 -1
- package/src/components/pdf-viewer/pdfjs-dist/cmaps/CNS2-V.bcmap +2 -2
- package/src/components/pdf-viewer/pdfjs-dist/cmaps/ETenms-B5-H.bcmap +2 -2
- package/src/components/pdf-viewer/styles/_colors.scss +2 -2
- package/src/components/popover/Popover.vue +9 -3
- package/src/components/select/Dropdown.vue +1 -1
- package/src/components/select/Select.vue +6 -8
- package/src/components/table/Table.vue +4 -2
- package/src/.DS_Store +0 -0
- package/src/assets/scss/directives/loading.css +0 -3178
- package/src/assets/scss/directives/tooltip.css +0 -3144
- package/src/assets/scss/main.css +0 -3180
- package/src/components/.DS_Store +0 -0
- package/src/components/datepicker/datepicker.css +0 -3665
|
@@ -2,6 +2,53 @@
|
|
|
2
2
|
@import '../../assets/scss/main';
|
|
3
3
|
//@import '~bootstrap/scss/buttons';
|
|
4
4
|
|
|
5
|
+
:root {
|
|
6
|
+
--itf-button-basic-bg-color: rgba(9, 30, 66, 0.08);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@media (prefers-color-scheme: dark) {
|
|
10
|
+
.support-dark {
|
|
11
|
+
--itf-button-basic-bg-color: rgba(246, 225, 189, 0.08);
|
|
12
|
+
|
|
13
|
+
.itf-button.btn {
|
|
14
|
+
&.btn-secondary {
|
|
15
|
+
&, &.disabled {
|
|
16
|
+
background-color: $dark-btn-secondary-color;
|
|
17
|
+
border-color: $dark-btn-secondary-color;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:active, &:focus {
|
|
21
|
+
background-color: lighten($dark-btn-secondary-color, 5%);
|
|
22
|
+
border-color: lighten($dark-btn-secondary-color, 5%);
|
|
23
|
+
}
|
|
24
|
+
&:hover {
|
|
25
|
+
background-color: lighten($dark-btn-secondary-color, 10%);
|
|
26
|
+
border-color: lighten($dark-btn-secondary-color, 10%);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
&.btn-primary {
|
|
30
|
+
&, &.disabled {
|
|
31
|
+
background-color: $dark-btn-primary-color;
|
|
32
|
+
border-color: $dark-btn-primary-color;
|
|
33
|
+
color: $body-color;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:active, &:focus {
|
|
37
|
+
color: $body-color;
|
|
38
|
+
background-color: darken($dark-btn-primary-color, 5%);
|
|
39
|
+
border-color: darken($dark-btn-primary-color, 5%);
|
|
40
|
+
box-shadow: 0 0 0 0.125rem mix($dark-btn-primary-color, $dark-body-bg, 50%);
|
|
41
|
+
}
|
|
42
|
+
&:hover {
|
|
43
|
+
color: $body-color;
|
|
44
|
+
background-color: darken($dark-btn-primary-color, 10%);
|
|
45
|
+
border-color: darken($dark-btn-primary-color, 10%);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
5
52
|
.itf-button.btn {
|
|
6
53
|
display: inline-flex;
|
|
7
54
|
align-items: center;
|
|
@@ -42,11 +89,7 @@
|
|
|
42
89
|
}
|
|
43
90
|
&.btn-basic {
|
|
44
91
|
&:hover, &.active {
|
|
45
|
-
background-color:
|
|
46
|
-
|
|
47
|
-
@media (prefers-color-scheme: notdark) {
|
|
48
|
-
background-color: rgba(246, 225, 189, 0.08);
|
|
49
|
-
}
|
|
92
|
+
background-color: var(--itf-button-basic-bg-color);
|
|
50
93
|
}
|
|
51
94
|
}
|
|
52
95
|
&.btn-icon {
|
|
@@ -68,43 +111,6 @@
|
|
|
68
111
|
}
|
|
69
112
|
}
|
|
70
113
|
}
|
|
71
|
-
|
|
72
|
-
@media (prefers-color-scheme: notdark) {
|
|
73
|
-
&.btn-secondary {
|
|
74
|
-
&, &.disabled {
|
|
75
|
-
background-color: $dark-btn-secondary-color;
|
|
76
|
-
border-color: $dark-btn-secondary-color;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&:active, &:focus {
|
|
80
|
-
background-color: lighten($dark-btn-secondary-color, 5%);
|
|
81
|
-
border-color: lighten($dark-btn-secondary-color, 5%);
|
|
82
|
-
}
|
|
83
|
-
&:hover {
|
|
84
|
-
background-color: lighten($dark-btn-secondary-color, 10%);
|
|
85
|
-
border-color: lighten($dark-btn-secondary-color, 10%);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
&.btn-primary {
|
|
89
|
-
&, &.disabled {
|
|
90
|
-
background-color: $dark-btn-primary-color;
|
|
91
|
-
border-color: $dark-btn-primary-color;
|
|
92
|
-
color: $body-color;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&:active, &:focus {
|
|
96
|
-
color: $body-color;
|
|
97
|
-
background-color: darken($dark-btn-primary-color, 5%);
|
|
98
|
-
border-color: darken($dark-btn-primary-color, 5%);
|
|
99
|
-
box-shadow: 0 0 0 0.125rem mix($dark-btn-primary-color, $dark-body-bg, 50%);
|
|
100
|
-
}
|
|
101
|
-
&:hover {
|
|
102
|
-
color: $body-color;
|
|
103
|
-
background-color: darken($dark-btn-primary-color, 10%);
|
|
104
|
-
border-color: darken($dark-btn-primary-color, 10%);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
114
|
}
|
|
109
115
|
</style>
|
|
110
116
|
<!---template>
|
|
@@ -54,6 +54,16 @@
|
|
|
54
54
|
@import '../../assets/scss/directives/tooltip';
|
|
55
55
|
@import '../../assets/scss/input-addon';
|
|
56
56
|
|
|
57
|
+
@media (prefers-color-scheme: dark) {
|
|
58
|
+
.support-dark .itf-datepicker {
|
|
59
|
+
&__dropdown {
|
|
60
|
+
background-color: $dark-body-bg;
|
|
61
|
+
border-color: $dark-border-color;
|
|
62
|
+
box-shadow: 0 0 0 2px $dark-input-focus-border;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
57
67
|
.itf-datepicker {
|
|
58
68
|
&.with-addon .addon-end {
|
|
59
69
|
pointer-events: all;
|
|
@@ -75,12 +85,6 @@
|
|
|
75
85
|
// Avoid using mixin so we can pass custom focus shadow properly
|
|
76
86
|
box-shadow: $input-btn-focus-box-shadow;
|
|
77
87
|
}
|
|
78
|
-
|
|
79
|
-
@media (prefers-color-scheme: notdark) {
|
|
80
|
-
background-color: $dark-body-bg;
|
|
81
|
-
border-color: $dark-border-color;
|
|
82
|
-
box-shadow: 0 0 0 2px $dark-input-focus-border;
|
|
83
|
-
}
|
|
84
88
|
}
|
|
85
89
|
}
|
|
86
90
|
</style>
|
|
@@ -1,7 +1,29 @@
|
|
|
1
1
|
@import '../../assets/scss/variables';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@media (prefers-color-scheme: dark) {
|
|
6
|
+
.support-dark .air-datepicker {
|
|
7
|
+
--adp-background-color: #{$dark-body-bg};
|
|
8
|
+
--adp-color-current-date: #{$dark-primary};
|
|
9
|
+
--adp-cell-background-color-selected: #{$dark-primary};
|
|
10
|
+
--adp-cell-background-color-selected-hover: #{lighten($dark-primary, 10%)};
|
|
11
|
+
--adp-day-name-color: #bfbfbf;
|
|
12
|
+
--adp-color: #dedede;
|
|
13
|
+
--adp-color-other-month: #4a4a4a;
|
|
14
|
+
--adp-cell-background-color-in-range: #{$dark-input-focus-border-color};
|
|
15
|
+
--adp-background-color-hover: #{darken($dark-primary, 25%)};
|
|
16
|
+
--adp-border-color-inner: #{lighten($dark-body-bg, 25%)};
|
|
17
|
+
|
|
18
|
+
--adp-background-color-selected-other-month-focused: #{$dark-primary};
|
|
19
|
+
--adp-background-color-selected-other-month: #{lighten($dark-primary, 10%)};
|
|
20
|
+
|
|
21
|
+
.air-datepicker-cell.-selected-, .air-datepicker-cell.-selected-.-current- {
|
|
22
|
+
color: $dark-body-bg;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
5
27
|
.air-datepicker {
|
|
6
28
|
--adp-width: 246px; // Day cell width will be equal to 34px
|
|
7
29
|
--adp-z-index: 100;
|
|
@@ -39,26 +61,6 @@
|
|
|
39
61
|
//--adp-border-color-inline: #d7d7d7;
|
|
40
62
|
--adp-border-color-inline: transparent;
|
|
41
63
|
|
|
42
|
-
@media (prefers-color-scheme: notdark) {
|
|
43
|
-
--adp-background-color: #{$dark-body-bg};
|
|
44
|
-
--adp-color-current-date: #{$dark-primary};
|
|
45
|
-
--adp-cell-background-color-selected: #{$dark-primary};
|
|
46
|
-
--adp-cell-background-color-selected-hover: #{lighten($dark-primary, 10%)};
|
|
47
|
-
--adp-day-name-color: #bfbfbf;
|
|
48
|
-
--adp-color: #dedede;
|
|
49
|
-
--adp-color-other-month: #4a4a4a;
|
|
50
|
-
--adp-cell-background-color-in-range: #{$dark-input-focus-border-color};
|
|
51
|
-
--adp-background-color-hover: #{darken($dark-primary, 25%)};
|
|
52
|
-
--adp-border-color-inner: #{lighten($dark-body-bg, 25%)};
|
|
53
|
-
|
|
54
|
-
--adp-background-color-selected-other-month-focused: #{$dark-primary};
|
|
55
|
-
--adp-background-color-selected-other-month: #{lighten($dark-primary, 10%)};
|
|
56
|
-
|
|
57
|
-
.air-datepicker-cell.-selected-, .air-datepicker-cell.-selected-.-current- {
|
|
58
|
-
color: $dark-body-bg;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
64
|
--adp-nav-height: 32px;
|
|
63
65
|
--adp-nav-arrow-color: var(--adp-color-secondary);
|
|
64
66
|
--adp-nav-color-secondary: var(--adp-color-secondary);
|
|
@@ -120,7 +120,7 @@ class itfModal extends Vue {
|
|
|
120
120
|
this.$el.parentNode.removeChild(this.$el);
|
|
121
121
|
document.body.appendChild(this.$el); // should append only to body
|
|
122
122
|
}
|
|
123
|
-
const { default: Modal } = await import('bootstrap/js/src/modal
|
|
123
|
+
const { default: Modal } = await import('bootstrap/js/src/modal');
|
|
124
124
|
this.modalEl = new Modal(this.$el, { backdrop: 'static' });
|
|
125
125
|
this.onVisibleChanged(this.value);
|
|
126
126
|
this.bindEvents();
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
�RCopyright 1990-2009 Adobe Systems Incorporated.
|
|
1
|
+
�RCopyright 1990-2009 Adobe Systems Incorporated.
|
|
2
2
|
All rights reserved.
|
|
3
|
-
See ./LICENSE�CNS2-H
|
|
3
|
+
See ./LICENSE�CNS2-H
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
�RCopyright 1990-2009 Adobe Systems Incorporated.
|
|
1
|
+
�RCopyright 1990-2009 Adobe Systems Incorporated.
|
|
2
2
|
All rights reserved.
|
|
3
|
-
See ./LICENSE� ETen-B5-H` ^
|
|
3
|
+
See ./LICENSE� ETen-B5-H` ^
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
--pdf-button-hover-bg-color: #{mix($primary, $body-bg, 50%)};
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
@media (prefers-color-scheme:
|
|
39
|
-
.pdf-app {
|
|
38
|
+
@media (prefers-color-scheme: dark) {
|
|
39
|
+
.support-dark .pdf-app {
|
|
40
40
|
--pdf-app-background-color: #{$pdf-app-background-color-light};
|
|
41
41
|
--pdf-sidebar-content-color: #{$pdf-sidebar-content-color-light};
|
|
42
42
|
--pdf-toolbar-sidebar-color: #{$pdf-toolbar-sidebar-color-light};
|
|
@@ -47,7 +47,9 @@
|
|
|
47
47
|
}
|
|
48
48
|
</style>
|
|
49
49
|
<script>
|
|
50
|
-
import {
|
|
50
|
+
import {
|
|
51
|
+
Vue, Component, Prop, Watch, PropSync,
|
|
52
|
+
} from 'vue-property-decorator';
|
|
51
53
|
|
|
52
54
|
let globalModalIndex = 0; // base modal z-index
|
|
53
55
|
|
|
@@ -58,14 +60,18 @@ export default @Component({
|
|
|
58
60
|
})
|
|
59
61
|
class itfPopover extends Vue {
|
|
60
62
|
@PropSync('visible') value;
|
|
63
|
+
|
|
61
64
|
@Prop({ type: String, default: 'bottom', validator: (value) => ['bottom', 'left', 'right', 'top'].includes(value) }) placement;
|
|
65
|
+
|
|
62
66
|
@Prop({ type: String, default: 'click', validator: (value) => ['click', 'focus', 'hover', 'manual'].includes(value) }) trigger;
|
|
67
|
+
|
|
63
68
|
@Prop({ type: String, default: '' }) customClass;
|
|
64
69
|
|
|
65
70
|
modalId = '';
|
|
71
|
+
|
|
66
72
|
modalEl = null;
|
|
67
73
|
|
|
68
|
-
beforeDestroy
|
|
74
|
+
beforeDestroy() {
|
|
69
75
|
this.hide();
|
|
70
76
|
}
|
|
71
77
|
|
|
@@ -91,7 +97,7 @@ class itfPopover extends Vue {
|
|
|
91
97
|
return;
|
|
92
98
|
}
|
|
93
99
|
const el = this.$refs.popover;
|
|
94
|
-
const { default: Popover } = await import('bootstrap/js/src/popover
|
|
100
|
+
const { default: Popover } = await import('bootstrap/js/src/popover');
|
|
95
101
|
|
|
96
102
|
const context = this.$el.closest('.itf-append-context') || document.body;
|
|
97
103
|
this.modalEl = new Popover(this.$el, {
|
|
@@ -55,7 +55,7 @@ export default @Component({
|
|
|
55
55
|
name: 'itfDropdown',
|
|
56
56
|
components: {}
|
|
57
57
|
})
|
|
58
|
-
class
|
|
58
|
+
class itfDropdown extends Vue {
|
|
59
59
|
@Prop({ type: Number, default: undefined }) dropdownWidth;
|
|
60
60
|
@Prop({ type: [Array, String, Number], default: undefined }) value;
|
|
61
61
|
@Prop({ type: Boolean }) isValueEmpty;
|
|
@@ -146,8 +146,6 @@
|
|
|
146
146
|
<style lang="scss">
|
|
147
147
|
@import '../../assets/scss/variables';
|
|
148
148
|
@import '../../assets/scss/directives/loading';
|
|
149
|
-
@import '~bootstrap/scss/badge';
|
|
150
|
-
@import '~bootstrap/scss/dropdown';
|
|
151
149
|
@import '../../assets/scss/components/variables';
|
|
152
150
|
@import '../../assets/scss/components/component';
|
|
153
151
|
@import '../../assets/scss/components/animations';
|
|
@@ -248,7 +246,7 @@ export default {
|
|
|
248
246
|
* Contains the currently selected value. Very similar to a
|
|
249
247
|
* `value` attribute on an <input>. You can listen for changes
|
|
250
248
|
* with the 'input' event.
|
|
251
|
-
* @type {Object
|
|
249
|
+
* @type {Object|String|null}
|
|
252
250
|
*/
|
|
253
251
|
// eslint-disable-next-line vue/require-default-prop,vue/require-prop-types
|
|
254
252
|
value: {},
|
|
@@ -402,7 +400,7 @@ export default {
|
|
|
402
400
|
* `selected-option` slots.
|
|
403
401
|
*
|
|
404
402
|
* @type {Function}
|
|
405
|
-
* @param {Object
|
|
403
|
+
* @param {Object | String} option
|
|
406
404
|
* @return {String}
|
|
407
405
|
*/
|
|
408
406
|
getOptionLabel: {
|
|
@@ -434,7 +432,7 @@ export default {
|
|
|
434
432
|
* The result of this function *must* be unique.
|
|
435
433
|
*
|
|
436
434
|
* @type {Function}
|
|
437
|
-
* @param {Object
|
|
435
|
+
* @param {Object | String} option
|
|
438
436
|
* @return {String}
|
|
439
437
|
*/
|
|
440
438
|
getOptionKey: {
|
|
@@ -509,7 +507,7 @@ export default {
|
|
|
509
507
|
* match the current search text. Used to determine
|
|
510
508
|
* if the option should be displayed.
|
|
511
509
|
* @type {Function}
|
|
512
|
-
* @param {Object
|
|
510
|
+
* @param {Object | String} option
|
|
513
511
|
* @param {String} label
|
|
514
512
|
* @param {String} search
|
|
515
513
|
* @return {Boolean}
|
|
@@ -1235,7 +1233,7 @@ export default {
|
|
|
1235
1233
|
* Determine if an option exists
|
|
1236
1234
|
* within this.optionList array.
|
|
1237
1235
|
*
|
|
1238
|
-
* @param {Object
|
|
1236
|
+
* @param {Object | String} option
|
|
1239
1237
|
* @return {boolean}
|
|
1240
1238
|
*/
|
|
1241
1239
|
optionExists(option) {
|
|
@@ -1256,7 +1254,7 @@ export default {
|
|
|
1256
1254
|
* If push-tags is true, push the
|
|
1257
1255
|
* given option to `this.pushedTags`.
|
|
1258
1256
|
*
|
|
1259
|
-
* @param {Object
|
|
1257
|
+
* @param {Object | String} option
|
|
1260
1258
|
* @return {void}
|
|
1261
1259
|
*/
|
|
1262
1260
|
pushTag(option) {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
<style lang="scss">
|
|
72
72
|
@import '../../assets/scss/variables';
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
:root {
|
|
75
75
|
--itf-table-background-color: #fff;
|
|
76
76
|
--itf-table-sticky-top: 0;
|
|
77
77
|
--itf-table-border-color: #e1e4e7;
|
|
@@ -82,8 +82,10 @@ html {
|
|
|
82
82
|
--itf-table-row-cursor: default;
|
|
83
83
|
--itf-table-sticky-shadow1: rgb(0 0 0 / 16%);
|
|
84
84
|
--itf-table-sticky-shadow2: rgb(0 0 0 / 23%);
|
|
85
|
+
}
|
|
85
86
|
|
|
86
|
-
|
|
87
|
+
@media (prefers-color-scheme: dark) {
|
|
88
|
+
.support-dark {
|
|
87
89
|
--itf-table-background-color: #{$dark-body-bg};
|
|
88
90
|
--itf-table-border-color: #666;
|
|
89
91
|
--itf-table-hover-color: #111;
|
package/src/.DS_Store
DELETED
|
Binary file
|