q2-tecton-elements 1.10.6 → 1.10.9
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/cjs/{index-f4153f5a.js → index-a55d3c34.js} +9 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/q2-btn_2.cjs.entry.js +10 -6
- package/dist/cjs/q2-calendar.cjs.entry.js +2902 -6078
- package/dist/cjs/q2-carousel-pane.cjs.entry.js +50 -7
- package/dist/cjs/q2-carousel.cjs.entry.js +2719 -6513
- package/dist/cjs/q2-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/q2-checkbox.cjs.entry.js +10 -2
- package/dist/cjs/q2-dropdown-item.cjs.entry.js +2 -2
- package/dist/cjs/q2-dropdown.cjs.entry.js +8 -2
- package/dist/cjs/q2-editable-field.cjs.entry.js +26 -11
- package/dist/cjs/q2-icon.cjs.entry.js +1 -1
- package/dist/cjs/q2-input.cjs.entry.js +9 -7
- package/dist/cjs/q2-loading-element.cjs.entry.js +1 -1
- package/dist/cjs/q2-loc.cjs.entry.js +1 -1
- package/dist/cjs/q2-message.cjs.entry.js +11 -3
- package/dist/cjs/q2-optgroup.cjs.entry.js +2 -2
- package/dist/cjs/q2-option.cjs.entry.js +3 -34
- package/dist/cjs/q2-radio-group.cjs.entry.js +10 -2
- package/dist/cjs/q2-radio.cjs.entry.js +10 -2
- package/dist/cjs/q2-section.cjs.entry.js +9 -3
- package/dist/cjs/q2-select.cjs.entry.js +175 -130
- package/dist/cjs/q2-stepper-pane.cjs.entry.js +1 -1
- package/dist/cjs/q2-stepper.cjs.entry.js +10 -4
- package/dist/cjs/q2-tab-container.cjs.entry.js +9 -11
- package/dist/cjs/q2-tab-pane.cjs.entry.js +2 -2
- package/dist/cjs/q2-tecton-elements.cjs.js +1 -1
- package/dist/cjs/q2-textarea.cjs.entry.js +8 -4
- package/dist/cjs/tecton-tab-pane.cjs.entry.js +2 -2
- package/dist/collection/components/q2-avatar/index.js +1 -1
- package/dist/collection/components/q2-avatar/styles.css +63 -61
- package/dist/collection/components/q2-btn/index.js +8 -4
- package/dist/collection/components/q2-btn/styles.css +96 -96
- package/dist/collection/components/q2-calendar/helpers.js +77 -52
- package/dist/collection/components/q2-calendar/index.js +248 -196
- package/dist/collection/components/q2-calendar/styles.css +63 -84
- package/dist/collection/components/q2-calendar/validation.js +100 -166
- package/dist/collection/components/q2-carousel/index.js +204 -266
- package/dist/collection/components/q2-carousel/styles.css +152 -155
- package/dist/collection/components/q2-carousel-pane/index.js +67 -28
- package/dist/collection/components/q2-carousel-pane/styles.css +82 -16
- package/dist/collection/components/q2-checkbox/index.js +16 -2
- package/dist/collection/components/q2-checkbox/styles.css +152 -176
- package/dist/collection/components/q2-checkbox-group/index.js +1 -1
- package/dist/collection/components/q2-checkbox-group/styles.css +65 -81
- package/dist/collection/components/q2-dropdown/index.js +15 -2
- package/dist/collection/components/q2-dropdown/styles.css +49 -36
- package/dist/collection/components/q2-dropdown-item/index.js +1 -1
- package/dist/collection/components/q2-dropdown-item/styles.css +48 -62
- package/dist/collection/components/q2-editable-field/index.js +33 -12
- package/dist/collection/components/q2-editable-field/styles.css +49 -50
- package/dist/collection/components/q2-icon/styles.css +29 -29
- package/dist/collection/components/q2-input/index.js +9 -7
- package/dist/collection/components/q2-input/styles.css +211 -292
- package/dist/collection/components/q2-loading/index.js +1 -1
- package/dist/collection/components/q2-loading/skeleton/q2-loading-element/index.js +1 -1
- package/dist/collection/components/q2-loading/skeleton/q2-loading-element/styles.css +5 -6
- package/dist/collection/components/q2-loading/styles.css +130 -136
- package/dist/collection/components/q2-loc/index.js +1 -1
- package/dist/collection/components/q2-loc/styles.css +30 -31
- package/dist/collection/components/q2-message/index.js +18 -3
- package/dist/collection/components/q2-message/styles.css +32 -29
- package/dist/collection/components/q2-optgroup/index.js +1 -1
- package/dist/collection/components/q2-optgroup/styles.css +42 -47
- package/dist/collection/components/q2-option/index.js +4 -42
- package/dist/collection/components/q2-option/styles.css +29 -29
- package/dist/collection/components/q2-radio/index.js +16 -2
- package/dist/collection/components/q2-radio/styles.css +29 -29
- package/dist/collection/components/q2-radio-group/index.js +16 -2
- package/dist/collection/components/q2-radio-group/styles.css +67 -72
- package/dist/collection/components/q2-section/index.js +15 -3
- package/dist/collection/components/q2-section/styles.css +77 -77
- package/dist/collection/components/q2-select/index.js +182 -131
- package/dist/collection/components/q2-select/styles.css +33 -34
- package/dist/collection/components/q2-stepper/index.js +15 -3
- package/dist/collection/components/q2-stepper/styles.css +32 -32
- package/dist/collection/components/q2-stepper-pane/styles.css +29 -29
- package/dist/collection/components/q2-tab-container/index.js +7 -9
- package/dist/collection/components/q2-tab-container/styles.css +29 -29
- package/dist/collection/components/q2-tab-pane/index.js +2 -2
- package/dist/collection/components/q2-tab-pane/styles.css +34 -36
- package/dist/collection/components/q2-textarea/index.js +8 -4
- package/dist/collection/components/q2-textarea/styles.css +180 -228
- package/dist/collection/components/tecton-tab-pane/index.js +2 -2
- package/dist/collection/components/tecton-tab-pane/styles.css +50 -50
- package/dist/collection/utils/index.js +7 -0
- package/dist/esm/{index-476b86cc.js → index-ec6660af.js} +8 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/q2-btn_2.entry.js +10 -6
- package/dist/esm/q2-calendar.entry.js +2902 -6078
- package/dist/esm/q2-carousel-pane.entry.js +51 -8
- package/dist/esm/q2-carousel.entry.js +2720 -6514
- package/dist/esm/q2-checkbox-group.entry.js +2 -2
- package/dist/esm/q2-checkbox.entry.js +10 -2
- package/dist/esm/q2-dropdown-item.entry.js +2 -2
- package/dist/esm/q2-dropdown.entry.js +8 -2
- package/dist/esm/q2-editable-field.entry.js +26 -11
- package/dist/esm/q2-icon.entry.js +1 -1
- package/dist/esm/q2-input.entry.js +9 -7
- package/dist/esm/q2-loading-element.entry.js +1 -1
- package/dist/esm/q2-loc.entry.js +1 -1
- package/dist/esm/q2-message.entry.js +11 -3
- package/dist/esm/q2-optgroup.entry.js +2 -2
- package/dist/esm/q2-option.entry.js +4 -35
- package/dist/esm/q2-radio-group.entry.js +10 -2
- package/dist/esm/q2-radio.entry.js +10 -2
- package/dist/esm/q2-section.entry.js +9 -3
- package/dist/esm/q2-select.entry.js +175 -130
- package/dist/esm/q2-stepper-pane.entry.js +1 -1
- package/dist/esm/q2-stepper.entry.js +10 -4
- package/dist/esm/q2-tab-container.entry.js +7 -9
- package/dist/esm/q2-tab-pane.entry.js +2 -2
- package/dist/esm/q2-tecton-elements.js +1 -1
- package/dist/esm/q2-textarea.entry.js +8 -4
- package/dist/esm/tecton-tab-pane.entry.js +2 -2
- package/dist/q2-tecton-elements/{p-4830affe.entry.js → p-07a5d703.entry.js} +1 -1
- package/dist/q2-tecton-elements/{p-84c05db6.entry.js → p-32ad664c.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-37aba2a4.js +1 -0
- package/dist/q2-tecton-elements/p-4ae9d1f3.entry.js +1 -0
- package/dist/q2-tecton-elements/p-52f53e07.entry.js +1 -0
- package/dist/q2-tecton-elements/p-5559f126.entry.js +1 -0
- package/dist/q2-tecton-elements/p-6702eb4d.entry.js +1 -0
- package/dist/q2-tecton-elements/p-750bcd33.entry.js +1 -0
- package/dist/q2-tecton-elements/p-78642b7b.entry.js +1 -0
- package/dist/q2-tecton-elements/p-7e6fc65d.entry.js +1 -0
- package/dist/q2-tecton-elements/p-7eb39c90.entry.js +1 -0
- package/dist/q2-tecton-elements/p-81df91a1.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-01e00610.entry.js → p-843b1ee9.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-8509b171.entry.js +1 -0
- package/dist/q2-tecton-elements/p-8ea2c4f7.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-d1d040ef.entry.js → p-95a73559.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-96c9eb75.entry.js +1 -0
- package/dist/q2-tecton-elements/p-9b50c3c3.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-a9bdd814.entry.js → p-a6f8d09a.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-ab977515.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-a166b9a6.entry.js → p-bb2e110a.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-bbacb804.entry.js +1 -0
- package/dist/q2-tecton-elements/p-c555f1de.entry.js +1 -0
- package/dist/q2-tecton-elements/p-c5e55b9f.entry.js +1 -0
- package/dist/q2-tecton-elements/p-fa6eea5c.entry.js +1 -0
- package/dist/q2-tecton-elements/{p-61c0e5fd.entry.js → p-fbf7c5e6.entry.js} +1 -1
- package/dist/q2-tecton-elements/p-fc804ebd.entry.js +1 -0
- package/dist/q2-tecton-elements/q2-tecton-elements.esm.js +1 -1
- package/dist/test/helpers.js +4 -0
- package/dist/types/components/q2-btn/index.d.ts +1 -0
- package/dist/types/components/q2-calendar/helpers.d.ts +6 -6
- package/dist/types/components/q2-calendar/index.d.ts +16 -17
- package/dist/types/components/q2-calendar/types.d.ts +9 -26
- package/dist/types/components/q2-calendar/validation.d.ts +27 -12
- package/dist/types/components/q2-carousel/index.d.ts +15 -45
- package/dist/types/components/q2-carousel-pane/index.d.ts +5 -2
- package/dist/types/components/q2-checkbox/index.d.ts +2 -0
- package/dist/types/components/q2-dropdown/index.d.ts +1 -0
- package/dist/types/components/q2-editable-field/index.d.ts +5 -1
- package/dist/types/components/q2-input/index.d.ts +1 -1
- package/dist/types/components/q2-message/index.d.ts +2 -0
- package/dist/types/components/q2-option/index.d.ts +0 -4
- package/dist/types/components/q2-radio/index.d.ts +3 -0
- package/dist/types/components/q2-radio-group/index.d.ts +1 -0
- package/dist/types/components/q2-section/index.d.ts +1 -0
- package/dist/types/components/q2-select/index.d.ts +10 -7
- package/dist/types/components/q2-stepper/index.d.ts +2 -1
- package/dist/types/components/q2-tab-container/index.d.ts +1 -1
- package/dist/types/components/q2-textarea/index.d.ts +2 -1
- package/dist/types/components.d.ts +3 -2
- package/dist/types/util.d.ts +2 -1
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/workspace/workspace/tecton-production_release_1.10.x/packages/q2-tecton-elements/.stencil/test/helpers.d.ts +2 -1
- package/package.json +4 -5
- package/dist/q2-tecton-elements/p-1fc4e6f6.entry.js +0 -1
- package/dist/q2-tecton-elements/p-25a5f691.js +0 -1
- package/dist/q2-tecton-elements/p-27353237.entry.js +0 -1
- package/dist/q2-tecton-elements/p-3e100450.entry.js +0 -1
- package/dist/q2-tecton-elements/p-428d15fd.entry.js +0 -1
- package/dist/q2-tecton-elements/p-48fc317d.entry.js +0 -1
- package/dist/q2-tecton-elements/p-5222b792.entry.js +0 -1
- package/dist/q2-tecton-elements/p-5469c1e9.entry.js +0 -1
- package/dist/q2-tecton-elements/p-74c1a311.entry.js +0 -1
- package/dist/q2-tecton-elements/p-784af485.entry.js +0 -1
- package/dist/q2-tecton-elements/p-7c99a58b.entry.js +0 -1
- package/dist/q2-tecton-elements/p-7f74b629.entry.js +0 -1
- package/dist/q2-tecton-elements/p-831a461f.entry.js +0 -1
- package/dist/q2-tecton-elements/p-84c52d3b.entry.js +0 -9
- package/dist/q2-tecton-elements/p-997e4c7e.entry.js +0 -1
- package/dist/q2-tecton-elements/p-a224bc9c.entry.js +0 -1
- package/dist/q2-tecton-elements/p-d893fcf2.entry.js +0 -1
- package/dist/q2-tecton-elements/p-da7cca07.entry.js +0 -1
- package/dist/q2-tecton-elements/p-f17761da.entry.js +0 -1
- package/dist/q2-tecton-elements/p-f5e074f8.entry.js +0 -1
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
q2-loading-element {
|
|
2
|
-
|
|
2
|
+
display: block;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
/* Atoms */
|
|
6
6
|
.skeleton-shape.rectangle:not(.no-margin) {
|
|
7
|
-
|
|
8
|
-
var(--tct-loading-skeleton-horizontal-gap, var(--tct-scale-2, 10px));
|
|
7
|
+
margin: var(--tct-loading-skeleton-vertical-gap, var(--tct-scale-2, 10px)) var(--tct-loading-skeleton-horizontal-gap, var(--tct-scale-2, 10px));
|
|
9
8
|
}
|
|
10
9
|
|
|
11
10
|
.skeleton-shape.circle,
|
|
12
11
|
.skeleton-shape.rectangle {
|
|
13
|
-
|
|
12
|
+
background-color: var(--tct-loading-skeleton-element-bg, var(--tct-gray-l3, var(--t-gray-14, #f2f2f2)));
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
.skeleton-shape.circle {
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
border-radius: 50%;
|
|
17
|
+
padding-top: 100%;
|
|
19
18
|
}
|
|
@@ -1,317 +1,311 @@
|
|
|
1
1
|
* {
|
|
2
|
-
|
|
2
|
+
box-sizing: border-box;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
*:active {
|
|
6
|
-
|
|
6
|
+
outline: none;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
*:focus {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
outline: none;
|
|
11
|
+
box-shadow: var(--const-global-focus);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
:host {
|
|
15
|
-
|
|
15
|
+
box-shadow: none !important;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
::-moz-focus-inner {
|
|
19
|
-
|
|
19
|
+
border: none;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
input,
|
|
23
23
|
textarea,
|
|
24
24
|
button {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
font-family: inherit;
|
|
26
|
+
font-size: inherit;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
:host(.sr),
|
|
30
30
|
:host(.sr) button {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
border: 0;
|
|
32
|
+
clip: rect(0 0 0 0);
|
|
33
|
+
height: 1px;
|
|
34
|
+
margin: -1px;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
padding: 0;
|
|
37
|
+
position: absolute;
|
|
38
|
+
width: 1px;
|
|
39
|
+
white-space: nowrap;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.sr,
|
|
43
43
|
.sr button {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
border: 0;
|
|
45
|
+
clip: rect(0 0 0 0);
|
|
46
|
+
height: 1px;
|
|
47
|
+
margin: -1px;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
padding: 0;
|
|
50
|
+
position: absolute;
|
|
51
|
+
width: 1px;
|
|
52
|
+
white-space: nowrap;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.hidden {
|
|
56
|
-
|
|
56
|
+
display: none;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
:host([hidden]) {
|
|
60
|
-
|
|
60
|
+
display: none;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.invisible {
|
|
64
|
-
|
|
64
|
+
visibility: hidden;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.flex {
|
|
68
|
-
|
|
68
|
+
display: flex;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.flex-center {
|
|
72
|
-
|
|
72
|
+
justify-content: center;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.flex-left {
|
|
76
|
-
|
|
76
|
+
justify-content: flex-start;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.flex-right {
|
|
80
|
-
|
|
80
|
+
justify-content: flex-end;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.flex-v-center {
|
|
84
|
-
|
|
84
|
+
align-items: center;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.no-margin {
|
|
88
|
-
|
|
88
|
+
margin: 0;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
:host {
|
|
92
|
-
|
|
92
|
+
display: block;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
:host([inline]),
|
|
96
|
-
:host([modifiers*=
|
|
97
|
-
|
|
96
|
+
:host([modifiers*=inline]) {
|
|
97
|
+
display: inline-block;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
:host([hidden]) {
|
|
101
|
-
|
|
101
|
+
display: none;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
:host(:not([inline]):not([modifiers*=
|
|
105
|
-
|
|
104
|
+
:host(:not([inline]):not([modifiers*=inline])) {
|
|
105
|
+
font-size: var(--tct-loading-spinner-size, var(--tct-scale-5, var(--app-scale-5, 60px)));
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.q2-loading-animation {
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
height: 1em;
|
|
110
|
+
width: 1em;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
.half-circle-spinner,
|
|
114
114
|
.half-circle-spinner * {
|
|
115
|
-
|
|
115
|
+
box-sizing: border-box;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.half-circle-spinner {
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
border-radius: 100%;
|
|
120
|
+
position: relative;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
.half-circle-spinner .circle {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
124
|
+
position: absolute;
|
|
125
|
+
width: 100%;
|
|
126
|
+
height: 100%;
|
|
127
|
+
border-radius: 100%;
|
|
128
|
+
border: calc(1em / 12) solid transparent;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
.half-circle-spinner .circle.circle-1 {
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
border-top-color: var(--tct-loading-primary-color, var(--t-loading-primary-color, #2e2e2e));
|
|
133
|
+
animation: half-circle-spinner-animation 1s infinite;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
.half-circle-spinner .circle.circle-2 {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
var(--t-loading-secondary-color, #cccccc)
|
|
140
|
-
);
|
|
141
|
-
animation: half-circle-spinner-animation 1s infinite alternate;
|
|
137
|
+
border-bottom-color: var(--tct-loading-secondary-color, var(--t-loading-secondary-color, #cccccc));
|
|
138
|
+
animation: half-circle-spinner-animation 1s infinite alternate;
|
|
142
139
|
}
|
|
143
140
|
|
|
144
141
|
@keyframes half-circle-spinner-animation {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
142
|
+
0% {
|
|
143
|
+
transform: rotate(0deg);
|
|
144
|
+
}
|
|
145
|
+
100% {
|
|
146
|
+
transform: rotate(360deg);
|
|
147
|
+
}
|
|
151
148
|
}
|
|
152
|
-
|
|
153
149
|
.q2-loading-skeleton {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
150
|
+
position: relative;
|
|
151
|
+
width: 100%;
|
|
152
|
+
height: 100%;
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
--comp-loading-skeleton-shimmer-color: var(--tct-loading-skeleton-shimmer-color, var(--t-base, rgba(255, 255, 255, 0.5)));
|
|
155
|
+
--comp-loading-skeleton-vertical-gap: var(--tct-loading-skeleton-vertical-gap, var(--tct-scale-2, 10px));
|
|
156
|
+
--comp-loading-skeleton-horizontal-gap: var(--tct-loading-skeleton-horizontal-gap, var(--tct-scale-2, 10px));
|
|
161
157
|
}
|
|
162
158
|
|
|
163
159
|
.q2-loading-skeleton-shimmer {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
160
|
+
position: absolute;
|
|
161
|
+
width: 1rem;
|
|
162
|
+
height: 100%;
|
|
163
|
+
top: 0;
|
|
164
|
+
left: -100px;
|
|
165
|
+
animation: skeletonShimmer 3s ease-in-out infinite;
|
|
166
|
+
background-color: var(--comp-loading-skeleton-shimmer-color);
|
|
167
|
+
box-shadow: 0 0 25px 20px var(--comp-loading-skeleton-shimmer-color);
|
|
168
|
+
transform: rotate(10deg);
|
|
173
169
|
}
|
|
174
170
|
|
|
175
171
|
/* Atoms */
|
|
176
172
|
.skeleton-shape.rectangle:not(.no-margin) {
|
|
177
|
-
|
|
178
|
-
var(--tct-loading-skeleton-horizontal-gap, var(--tct-scale-2, 10px));
|
|
173
|
+
margin: var(--tct-loading-skeleton-vertical-gap, var(--tct-scale-2, 10px)) var(--tct-loading-skeleton-horizontal-gap, var(--tct-scale-2, 10px));
|
|
179
174
|
}
|
|
180
175
|
|
|
181
176
|
.skeleton-shape.circle,
|
|
182
177
|
.skeleton-shape.rectangle {
|
|
183
|
-
|
|
178
|
+
background-color: var(--tct-loading-skeleton-element-bg, var(--tct-gray-l3, var(--t-gray-14, #f2f2f2)));
|
|
184
179
|
}
|
|
185
180
|
|
|
186
181
|
.skeleton-shape.circle {
|
|
187
|
-
|
|
188
|
-
|
|
182
|
+
border-radius: 50%;
|
|
183
|
+
padding-top: 100%;
|
|
189
184
|
}
|
|
190
185
|
|
|
191
186
|
/* Uitils */
|
|
192
187
|
.flex .rectangle {
|
|
193
|
-
|
|
188
|
+
flex-grow: 1;
|
|
194
189
|
}
|
|
195
190
|
|
|
196
191
|
/* Table */
|
|
197
192
|
.skeleton-table-row .rectangle {
|
|
198
|
-
|
|
193
|
+
margin: var(--comp-loading-skeleton-vertical-gap) var(--comp-loading-skeleton-horizontal-gap);
|
|
199
194
|
}
|
|
200
195
|
|
|
201
196
|
.skeleton-table-row .rectangle:not(:first-child):not(:last-child) {
|
|
202
|
-
|
|
197
|
+
flex-grow: 2;
|
|
203
198
|
}
|
|
204
199
|
|
|
205
200
|
.skeleton-table-row-border .skeleton-shape {
|
|
206
|
-
|
|
201
|
+
margin: 0 var(--comp-loading-skeleton-horizontal-gap);
|
|
207
202
|
}
|
|
208
203
|
|
|
209
204
|
/* form */
|
|
210
205
|
.form {
|
|
211
|
-
|
|
206
|
+
flex-wrap: wrap;
|
|
212
207
|
}
|
|
213
208
|
|
|
214
|
-
.form .field{
|
|
215
|
-
|
|
209
|
+
.form .field {
|
|
210
|
+
margin: var(--comp-loading-skeleton-vertical-gap) 0;
|
|
216
211
|
}
|
|
217
212
|
|
|
218
|
-
.form.columns-1 .field{
|
|
219
|
-
|
|
213
|
+
.form.columns-1 .field {
|
|
214
|
+
flex-basis: 100%;
|
|
220
215
|
}
|
|
221
216
|
|
|
222
|
-
.form.columns-2 .field{
|
|
223
|
-
|
|
217
|
+
.form.columns-2 .field {
|
|
218
|
+
flex-basis: 50%;
|
|
224
219
|
}
|
|
225
220
|
|
|
226
|
-
.form.columns-3 .field{
|
|
227
|
-
|
|
221
|
+
.form.columns-3 .field {
|
|
222
|
+
flex-basis: 33.3333%;
|
|
228
223
|
}
|
|
229
224
|
|
|
230
|
-
.form.columns-4 .field{
|
|
231
|
-
|
|
225
|
+
.form.columns-4 .field {
|
|
226
|
+
flex-basis: 25%;
|
|
232
227
|
}
|
|
233
228
|
|
|
234
|
-
.form.columns-5 .field{
|
|
235
|
-
|
|
229
|
+
.form.columns-5 .field {
|
|
230
|
+
flex-basis: 20%;
|
|
236
231
|
}
|
|
237
232
|
|
|
238
233
|
/* text */
|
|
239
234
|
.text .rectangle {
|
|
240
|
-
|
|
235
|
+
margin-bottom: 0;
|
|
241
236
|
}
|
|
242
237
|
|
|
243
238
|
.text .header.center {
|
|
244
|
-
|
|
239
|
+
margin: 0 auto;
|
|
245
240
|
}
|
|
246
241
|
|
|
247
242
|
.text .header.right {
|
|
248
|
-
|
|
243
|
+
margin-left: auto;
|
|
249
244
|
}
|
|
250
245
|
|
|
251
246
|
.text .header {
|
|
252
|
-
|
|
247
|
+
height: 1.5rem;
|
|
253
248
|
}
|
|
254
249
|
|
|
255
250
|
.text .header.smaller {
|
|
256
|
-
|
|
251
|
+
height: 1rem;
|
|
257
252
|
}
|
|
258
253
|
|
|
259
|
-
/* Detailed Item */
|
|
254
|
+
/* Detailed Item */
|
|
260
255
|
.detailed-item {
|
|
261
|
-
|
|
256
|
+
flex-wrap: wrap;
|
|
262
257
|
}
|
|
263
258
|
|
|
264
259
|
.detailed-item.right {
|
|
265
|
-
|
|
260
|
+
flex-flow: row-reverse;
|
|
266
261
|
}
|
|
267
262
|
|
|
268
263
|
.detailed-item-image {
|
|
269
|
-
|
|
270
|
-
|
|
264
|
+
flex: 0 0 auto;
|
|
265
|
+
display: inline-flex;
|
|
271
266
|
}
|
|
272
267
|
|
|
273
268
|
.center .detailed-item-image {
|
|
274
|
-
|
|
275
|
-
|
|
269
|
+
flex-basis: 100%;
|
|
270
|
+
display: flex;
|
|
276
271
|
}
|
|
277
272
|
|
|
278
273
|
.detailed-item-image .rectangle {
|
|
279
|
-
|
|
274
|
+
flex-grow: 0;
|
|
280
275
|
}
|
|
281
276
|
|
|
282
277
|
.detailed-item-text > div {
|
|
283
|
-
|
|
278
|
+
width: 100%;
|
|
284
279
|
}
|
|
285
280
|
|
|
286
281
|
.detailed-item-text {
|
|
287
|
-
|
|
282
|
+
flex: 1 1 auto;
|
|
288
283
|
}
|
|
289
284
|
|
|
290
285
|
.detailed-item-text .text {
|
|
291
|
-
|
|
292
|
-
|
|
286
|
+
margin-top: 0;
|
|
287
|
+
margin-bottom: 0;
|
|
293
288
|
}
|
|
294
289
|
|
|
295
|
-
/* Label-value */
|
|
290
|
+
/* Label-value */
|
|
296
291
|
.label-value {
|
|
297
|
-
|
|
292
|
+
flex-wrap: wrap;
|
|
298
293
|
}
|
|
299
294
|
|
|
300
295
|
.label-value .rectangle {
|
|
301
|
-
|
|
296
|
+
flex-basis: calc(50% - 2 * var(--comp-loading-skeleton-horizontal-gap));
|
|
302
297
|
}
|
|
303
298
|
|
|
304
299
|
@keyframes skeletonShimmer {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
}
|
|
317
|
-
|
|
300
|
+
0% {
|
|
301
|
+
left: -100px;
|
|
302
|
+
opacity: 1;
|
|
303
|
+
}
|
|
304
|
+
70% {
|
|
305
|
+
opacity: 1;
|
|
306
|
+
}
|
|
307
|
+
100% {
|
|
308
|
+
left: 800px;
|
|
309
|
+
opacity: 0;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
@@ -7,7 +7,7 @@ export class Q2Loc {
|
|
|
7
7
|
static get is() { return "q2-loc"; }
|
|
8
8
|
static get encapsulation() { return "shadow"; }
|
|
9
9
|
static get originalStyleUrls() { return {
|
|
10
|
-
"$": ["styles.
|
|
10
|
+
"$": ["styles.scss"]
|
|
11
11
|
}; }
|
|
12
12
|
static get styleUrls() { return {
|
|
13
13
|
"$": ["styles.css"]
|
|
@@ -1,70 +1,69 @@
|
|
|
1
1
|
* {
|
|
2
|
-
|
|
2
|
+
box-sizing: border-box;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
*:active {
|
|
6
|
-
|
|
6
|
+
outline: none;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
*:focus {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
outline: none;
|
|
11
|
+
box-shadow: var(--const-global-focus);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
:host {
|
|
15
|
-
|
|
15
|
+
box-shadow: none !important;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
::-moz-focus-inner {
|
|
19
|
-
|
|
19
|
+
border: none;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
input,
|
|
23
23
|
textarea,
|
|
24
24
|
button {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
font-family: inherit;
|
|
26
|
+
font-size: inherit;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
:host(.sr),
|
|
30
30
|
:host(.sr) button {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
border: 0;
|
|
32
|
+
clip: rect(0 0 0 0);
|
|
33
|
+
height: 1px;
|
|
34
|
+
margin: -1px;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
padding: 0;
|
|
37
|
+
position: absolute;
|
|
38
|
+
width: 1px;
|
|
39
|
+
white-space: nowrap;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.sr,
|
|
43
43
|
.sr button {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
border: 0;
|
|
45
|
+
clip: rect(0 0 0 0);
|
|
46
|
+
height: 1px;
|
|
47
|
+
margin: -1px;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
padding: 0;
|
|
50
|
+
position: absolute;
|
|
51
|
+
width: 1px;
|
|
52
|
+
white-space: nowrap;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.hidden {
|
|
56
|
-
|
|
56
|
+
display: none;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
:host([hidden]) {
|
|
60
|
-
|
|
60
|
+
display: none;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.invisible {
|
|
64
|
-
|
|
64
|
+
visibility: hidden;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
67
|
:host {
|
|
69
|
-
|
|
68
|
+
display: inline;
|
|
70
69
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Component, Prop, h, Method, State, Element } from '@stencil/core';
|
|
2
|
-
import { isFirefox as checkIfFirefox, nextPaint } from 'src/utils';
|
|
1
|
+
import { Component, Prop, h, Method, State, Element, Listen } from '@stencil/core';
|
|
2
|
+
import { isEventFromElement, isFirefox as checkIfFirefox, nextPaint, overrideFocus } from 'src/utils';
|
|
3
3
|
export class Q2Message {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.type = 'info';
|
|
@@ -9,6 +9,9 @@ export class Q2Message {
|
|
|
9
9
|
get isFirefox() {
|
|
10
10
|
return checkIfFirefox();
|
|
11
11
|
}
|
|
12
|
+
componentDidLoad() {
|
|
13
|
+
overrideFocus(this.hostElement);
|
|
14
|
+
}
|
|
12
15
|
async present() {
|
|
13
16
|
const { isFirefox } = this;
|
|
14
17
|
this.presentToggle = !this.presentToggle;
|
|
@@ -18,12 +21,17 @@ export class Q2Message {
|
|
|
18
21
|
this.presentToggle = false;
|
|
19
22
|
});
|
|
20
23
|
}
|
|
24
|
+
delegateFocus(event) {
|
|
25
|
+
if (!isEventFromElement(event, this.hostElement))
|
|
26
|
+
return;
|
|
27
|
+
this.hostElement.shadowRoot.querySelector('.message').focus();
|
|
28
|
+
}
|
|
21
29
|
render() {
|
|
22
30
|
const { isFirefox } = this;
|
|
23
31
|
const addAriaHiddenForAriaLive = isFirefox && this.presentToggle;
|
|
24
32
|
const addDivForAriaLive = !isFirefox && this.presentToggle;
|
|
25
33
|
const { description } = this;
|
|
26
|
-
return (h("div", { class: "message", role: description ? undefined : 'alert', "aria-live": description ? undefined : '
|
|
34
|
+
return (h("div", { tabindex: "-1", class: "message", role: description ? undefined : 'alert', "aria-live": description ? undefined : 'assertive', "aria-atomic": description ? undefined : 'true', "aria-relevant": description ? undefined : 'all' },
|
|
27
35
|
this.appearance === 'standard' ? generateIcon(this.type) : '',
|
|
28
36
|
addDivForAriaLive && h("div", { class: "sr" }),
|
|
29
37
|
h("div", { class: "message-content", "aria-hidden": addAriaHiddenForAriaLive ? 'true' : undefined },
|
|
@@ -115,6 +123,13 @@ export class Q2Message {
|
|
|
115
123
|
}
|
|
116
124
|
}; }
|
|
117
125
|
static get elementRef() { return "hostElement"; }
|
|
126
|
+
static get listeners() { return [{
|
|
127
|
+
"name": "focus",
|
|
128
|
+
"method": "delegateFocus",
|
|
129
|
+
"target": undefined,
|
|
130
|
+
"capture": false,
|
|
131
|
+
"passive": false
|
|
132
|
+
}]; }
|
|
118
133
|
}
|
|
119
134
|
function generateIcon(type) {
|
|
120
135
|
const iconMap = {
|