cax-design-system 2.7.2 → 2.7.4
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/README.md +1 -1
- package/accordion/accordion.d.ts +5 -1
- package/calendar/calendar.d.ts +8 -1
- package/esm2022/accordion/accordion.mjs +11 -4
- package/esm2022/calendar/calendar.mjs +35 -3
- package/esm2022/commentbox/commentbox.mjs +1 -1
- package/esm2022/dropdown/dropdown.mjs +3 -3
- package/esm2022/inputtextarea/inputtextarea.component.mjs +16 -4
- package/esm2022/navigation/navigation.mjs +72 -31
- package/esm2022/sidebar/sidebar.mjs +11 -3
- package/esm2022/table/components/column-filter/column-filter.mjs +2 -2
- package/esm2022/table/components/column-filter-form-element/column-filter-form-element.mjs +2 -2
- package/esm2022/tree/tree.mjs +5 -5
- package/fesm2022/cax-design-system-accordion.mjs +10 -3
- package/fesm2022/cax-design-system-accordion.mjs.map +1 -1
- package/fesm2022/cax-design-system-calendar.mjs +34 -2
- package/fesm2022/cax-design-system-calendar.mjs.map +1 -1
- package/fesm2022/cax-design-system-commentbox.mjs +1 -1
- package/fesm2022/cax-design-system-commentbox.mjs.map +1 -1
- package/fesm2022/cax-design-system-dropdown.mjs +2 -2
- package/fesm2022/cax-design-system-dropdown.mjs.map +1 -1
- package/fesm2022/cax-design-system-inputtextarea.mjs +15 -3
- package/fesm2022/cax-design-system-inputtextarea.mjs.map +1 -1
- package/fesm2022/cax-design-system-navigation.mjs +71 -30
- package/fesm2022/cax-design-system-navigation.mjs.map +1 -1
- package/fesm2022/cax-design-system-sidebar.mjs +10 -2
- package/fesm2022/cax-design-system-sidebar.mjs.map +1 -1
- package/fesm2022/cax-design-system-table.mjs +2 -2
- package/fesm2022/cax-design-system-table.mjs.map +1 -1
- package/fesm2022/cax-design-system-tree.mjs +4 -4
- package/fesm2022/cax-design-system-tree.mjs.map +1 -1
- package/inputtextarea/inputtextarea.component.d.ts +7 -1
- package/navigation/navigation.d.ts +3 -1
- package/package.json +177 -177
- package/resources/cax.min.scss +1 -1
- package/resources/cax.scss +237 -205
- package/resources/components/calendar/calendar.scss +220 -190
- package/resources/components/common/common.scss +1 -0
- package/resources/components/dropdown/dropdown.scss +8 -0
- package/resources/components/navigation/navigation.scss +27 -2
- package/resources/components/sidebar/sidebar.scss +67 -14
- package/resources/components/tree/tree.scss +0 -4
- package/sidebar/sidebar.d.ts +4 -2
|
@@ -1,198 +1,228 @@
|
|
|
1
1
|
@layer cax {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
2
|
+
.cax-calendar {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
max-width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.cax-calendar .cax-inputtext {
|
|
9
|
+
flex: 1 1 auto;
|
|
10
|
+
width: 1%;
|
|
11
|
+
text-overflow: ellipsis;
|
|
12
|
+
padding-left: 1.8rem !important;
|
|
13
|
+
padding-right: 1.8rem !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.cax-calendar-w-btn .cax-inputtext {
|
|
17
|
+
border-top-right-radius: 0;
|
|
18
|
+
border-bottom-right-radius: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.cax-calendar-w-btn .cax-datepicker-trigger {
|
|
22
|
+
border-top-left-radius: 0;
|
|
23
|
+
border-bottom-left-radius: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Fluid */
|
|
27
|
+
.cax-fluid .cax-calendar {
|
|
28
|
+
display: flex;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.cax-fluid .cax-calendar .cax-inputtext {
|
|
32
|
+
width: 1%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Datepicker */
|
|
36
|
+
.cax-calendar .cax-datepicker {
|
|
37
|
+
min-width: 100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.cax-datepicker {
|
|
41
|
+
width: auto;
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 0;
|
|
44
|
+
left: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.cax-datepicker-inline {
|
|
48
|
+
display: inline-block;
|
|
49
|
+
position: static;
|
|
50
|
+
overflow-x: auto;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Header */
|
|
54
|
+
.cax-datepicker-header {
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: space-between;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.cax-datepicker-header .cax-datepicker-title {
|
|
61
|
+
margin: 0 auto;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.cax-datepicker-prev,
|
|
65
|
+
.cax-datepicker-next {
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
display: inline-flex;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
align-items: center;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
position: relative;
|
|
72
|
+
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Multiple Month DatePicker */
|
|
76
|
+
.cax-datepicker-multiple-month .cax-datepicker-group-container {
|
|
77
|
+
display: flex;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.cax-datepicker-multiple-month .cax-datepicker-group-container .cax-datepicker-group {
|
|
81
|
+
flex: 1 1 auto;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* Multiple Month DatePicker */
|
|
85
|
+
.cax-datepicker-multiple-month .cax-datepicker-group-container {
|
|
86
|
+
display: flex;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* DatePicker Table */
|
|
90
|
+
.cax-datepicker table {
|
|
91
|
+
width: 100%;
|
|
92
|
+
border-collapse: collapse;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.cax-datepicker td > span {
|
|
96
|
+
display: flex;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
align-items: center;
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
margin: 0 auto;
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
position: relative;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Month Picker */
|
|
106
|
+
.cax-monthpicker-month {
|
|
107
|
+
width: 33.3%;
|
|
108
|
+
display: inline-flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
justify-content: center;
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
overflow: hidden;
|
|
113
|
+
position: relative;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Button Bar */
|
|
117
|
+
.cax-datepicker-buttonbar {
|
|
118
|
+
display: flex;
|
|
119
|
+
justify-content: space-between;
|
|
120
|
+
align-items: center;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* Time Picker */
|
|
124
|
+
.cax-timepicker {
|
|
125
|
+
display: flex;
|
|
126
|
+
justify-content: center;
|
|
127
|
+
align-items: center;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.cax-timepicker button {
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
cursor: pointer;
|
|
135
|
+
overflow: hidden;
|
|
136
|
+
position: relative;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.cax-timepicker > div {
|
|
140
|
+
display: flex;
|
|
141
|
+
align-items: center;
|
|
142
|
+
flex-direction: column;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Touch UI */
|
|
146
|
+
.cax-datepicker-touch-ui,
|
|
147
|
+
.cax-calendar .cax-datepicker-touch-ui {
|
|
148
|
+
position: fixed;
|
|
149
|
+
top: 50%;
|
|
150
|
+
left: 50%;
|
|
151
|
+
min-width: 80vw;
|
|
152
|
+
transform: translate(-50%, -50%);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* Year Picker */
|
|
156
|
+
.cax-yearpicker-year {
|
|
157
|
+
width: 50%;
|
|
158
|
+
display: inline-flex;
|
|
159
|
+
align-items: center;
|
|
160
|
+
justify-content: center;
|
|
161
|
+
cursor: pointer;
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
position: relative;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.cax-calendar-clear-icon {
|
|
167
|
+
position: absolute;
|
|
168
|
+
top: 50%;
|
|
169
|
+
margin-top: -0.5rem;
|
|
170
|
+
cursor: pointer;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.cax-datepicker-icon {
|
|
174
|
+
pointer-events: none;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.cax-calendar-clearable {
|
|
178
|
+
position: relative;
|
|
179
|
+
}
|
|
180
|
+
.cax-datepicker-icon {
|
|
181
|
+
pointer-events: none;
|
|
182
|
+
left: 1.67px;
|
|
183
|
+
margin-top: 1px !important;
|
|
184
|
+
}
|
|
185
|
+
.cax-input-icon-left {
|
|
186
|
+
order: -1;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.cax-datepicker-inline-actions {
|
|
190
|
+
display: flex;
|
|
191
|
+
justify-content: space-between;
|
|
192
|
+
margin-top: 13px;
|
|
193
|
+
padding: 10px;
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
.cax-datepicker-inline-input {
|
|
197
|
+
margin-bottom: 10px;
|
|
198
|
+
position: relative;
|
|
199
|
+
display: inline-block;
|
|
200
|
+
input {
|
|
201
|
+
width: 130px;
|
|
202
|
+
height: 32px;
|
|
203
|
+
padding-left: 2rem;
|
|
204
|
+
border-radius: 8px;
|
|
205
|
+
font-size: 14px;
|
|
206
|
+
font-weight: 500;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.cax-datepicker-inline-input .cax-calendar-minimalistic {
|
|
46
211
|
position: absolute;
|
|
47
|
-
|
|
48
|
-
left: 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.cax-datepicker-inline {
|
|
52
|
-
display: inline-block;
|
|
53
|
-
position: static;
|
|
54
|
-
overflow-x: auto;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/* Header */
|
|
58
|
-
.cax-datepicker-header {
|
|
59
|
-
display: flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
justify-content: space-between;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.cax-datepicker-header .cax-datepicker-title {
|
|
65
|
-
margin: 0 auto;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.cax-datepicker-prev,
|
|
69
|
-
.cax-datepicker-next {
|
|
70
|
-
cursor: pointer;
|
|
71
|
-
display: inline-flex;
|
|
72
|
-
justify-content: center;
|
|
73
|
-
align-items: center;
|
|
74
|
-
overflow: hidden;
|
|
75
|
-
position: relative;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/* Multiple Month DatePicker */
|
|
79
|
-
.cax-datepicker-multiple-month .cax-datepicker-group-container {
|
|
80
|
-
display: flex;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.cax-datepicker-multiple-month .cax-datepicker-group-container .cax-datepicker-group {
|
|
84
|
-
flex: 1 1 auto;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/* Multiple Month DatePicker */
|
|
88
|
-
.cax-datepicker-multiple-month .cax-datepicker-group-container {
|
|
89
|
-
display: flex;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/* DatePicker Table */
|
|
93
|
-
.cax-datepicker table {
|
|
94
|
-
width: 100%;
|
|
95
|
-
border-collapse: collapse;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.cax-datepicker td > span {
|
|
99
|
-
display: flex;
|
|
100
|
-
justify-content: center;
|
|
101
|
-
align-items: center;
|
|
102
|
-
cursor: pointer;
|
|
103
|
-
margin: 0 auto;
|
|
104
|
-
overflow: hidden;
|
|
105
|
-
position: relative;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/* Month Picker */
|
|
109
|
-
.cax-monthpicker-month {
|
|
110
|
-
width: 33.3%;
|
|
111
|
-
height: 56px;
|
|
112
|
-
display: inline-flex;
|
|
113
|
-
align-items: center;
|
|
114
|
-
justify-content: center;
|
|
115
|
-
cursor: pointer;
|
|
116
|
-
overflow: hidden;
|
|
117
|
-
position: relative;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/* Button Bar */
|
|
121
|
-
.cax-datepicker-buttonbar {
|
|
122
|
-
display: flex;
|
|
123
|
-
justify-content: center;
|
|
124
|
-
align-items: center;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/* Time Picker */
|
|
128
|
-
.cax-timepicker {
|
|
129
|
-
display: flex;
|
|
130
|
-
justify-content: center;
|
|
131
|
-
align-items: center;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.cax-timepicker button {
|
|
135
|
-
display: flex;
|
|
136
|
-
align-items: center;
|
|
137
|
-
justify-content: center;
|
|
138
|
-
cursor: pointer;
|
|
139
|
-
overflow: hidden;
|
|
140
|
-
position: relative;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.cax-timepicker > div {
|
|
144
|
-
display: flex;
|
|
145
|
-
align-items: center;
|
|
146
|
-
flex-direction: column;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/* Touch UI */
|
|
150
|
-
.cax-datepicker-touch-ui,
|
|
151
|
-
.cax-calendar .cax-datepicker-touch-ui {
|
|
152
|
-
position: fixed;
|
|
212
|
+
left: 0.6rem;
|
|
153
213
|
top: 50%;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
214
|
+
transform: translateY(-50%);
|
|
215
|
+
font-size: 1rem;
|
|
216
|
+
pointer-events: none;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
158
219
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
align-items: center;
|
|
165
|
-
justify-content: center;
|
|
166
|
-
cursor: pointer;
|
|
167
|
-
overflow: hidden;
|
|
168
|
-
position: relative;
|
|
169
|
-
}
|
|
220
|
+
.left-side{
|
|
221
|
+
display: flex;
|
|
222
|
+
justify-content: space-between;
|
|
223
|
+
gap: 15px;
|
|
224
|
+
}
|
|
170
225
|
|
|
171
|
-
.cax-calendar-clear-icon {
|
|
172
|
-
position: absolute;
|
|
173
|
-
top: 50%;
|
|
174
|
-
margin-top: -0.5rem;
|
|
175
|
-
cursor: pointer;
|
|
176
|
-
}
|
|
177
226
|
|
|
178
|
-
.cax-datepicker-icon {
|
|
179
|
-
pointer-events: none;
|
|
180
|
-
left: 1.67px;
|
|
181
|
-
color: black !important;
|
|
182
|
-
margin-top: 1px !important;
|
|
183
|
-
}
|
|
184
|
-
.cax-input-icon-left {
|
|
185
|
-
order: -1;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
227
|
|
|
189
|
-
.cax-calendar-clearable {
|
|
190
|
-
position: relative;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.downarrow{
|
|
194
|
-
top: 1.5rem !important;
|
|
195
|
-
color: black !important;
|
|
196
|
-
|
|
197
|
-
}
|
|
198
228
|
}
|
|
@@ -27,6 +27,14 @@
|
|
|
27
27
|
flex-shrink: 0;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
.cax-dropdown-trigger-icon {
|
|
31
|
+
transition: transform 0.3s ease;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.cax-dropdown-open .cax-dropdown-trigger-icon {
|
|
35
|
+
transform: rotate(180deg);
|
|
36
|
+
}
|
|
37
|
+
|
|
30
38
|
.cax-dropdown-label {
|
|
31
39
|
display: block;
|
|
32
40
|
white-space: nowrap;
|
|
@@ -2,17 +2,20 @@
|
|
|
2
2
|
.cax-nav {
|
|
3
3
|
width: 88px;
|
|
4
4
|
height: 100vh;
|
|
5
|
-
transition: width 0.3s
|
|
5
|
+
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
6
6
|
overflow: hidden;
|
|
7
7
|
padding: 16px 8px;
|
|
8
8
|
position: absolute;
|
|
9
9
|
left: 0;
|
|
10
10
|
top: 0;
|
|
11
11
|
z-index: 1200;
|
|
12
|
+
will-change: width;
|
|
12
13
|
.cax-nav-header {
|
|
13
14
|
.cax-image img {
|
|
14
15
|
max-width: 26px;
|
|
15
16
|
object-fit: cover;
|
|
17
|
+
transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
18
|
+
will-change: max-width;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
18
21
|
}
|
|
@@ -20,11 +23,13 @@
|
|
|
20
23
|
width: 264px;
|
|
21
24
|
.cax-nav-bottom-container {
|
|
22
25
|
width: 248px;
|
|
26
|
+
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
23
27
|
}
|
|
24
28
|
.cax-nav-header {
|
|
25
29
|
.cax-image img {
|
|
26
30
|
max-width: 100px;
|
|
27
31
|
object-fit: cover;
|
|
32
|
+
transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
28
33
|
}
|
|
29
34
|
}
|
|
30
35
|
}
|
|
@@ -67,6 +72,16 @@
|
|
|
67
72
|
cursor: pointer;
|
|
68
73
|
height: 56px;
|
|
69
74
|
line-height: 24px;
|
|
75
|
+
|
|
76
|
+
.cax-image {
|
|
77
|
+
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
78
|
+
will-change: transform;
|
|
79
|
+
}
|
|
80
|
+
.cax-image img {
|
|
81
|
+
transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
82
|
+
will-change: opacity;
|
|
83
|
+
backface-visibility: hidden;
|
|
84
|
+
}
|
|
70
85
|
}
|
|
71
86
|
}
|
|
72
87
|
}
|
|
@@ -88,13 +103,23 @@
|
|
|
88
103
|
border-radius: 12px;
|
|
89
104
|
padding: 12px;
|
|
90
105
|
cursor: pointer;
|
|
91
|
-
transition: width 0.3s
|
|
106
|
+
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
92
107
|
display: flex;
|
|
93
108
|
align-items: flex-start;
|
|
109
|
+
will-change: width;
|
|
94
110
|
.cax-nav-account-icon {
|
|
95
111
|
display: grid;
|
|
96
112
|
margin-left: auto;
|
|
97
113
|
}
|
|
114
|
+
.cax-avatar {
|
|
115
|
+
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
116
|
+
will-change: transform;
|
|
117
|
+
}
|
|
118
|
+
.cax-avatar img {
|
|
119
|
+
transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
120
|
+
will-change: opacity;
|
|
121
|
+
backface-visibility: hidden;
|
|
122
|
+
}
|
|
98
123
|
}
|
|
99
124
|
|
|
100
125
|
.cax-nav.cax-nav-expand .cax-nav-account-details {
|
|
@@ -1,10 +1,55 @@
|
|
|
1
1
|
@layer cax {
|
|
2
|
-
.cax-sidebar {
|
|
3
|
-
position: fixed;
|
|
4
|
-
transition: transform 0.3s;
|
|
2
|
+
.cax-sidebar-layout-wrapper {
|
|
5
3
|
display: flex;
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
position: relative;
|
|
7
|
+
background-color: white;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.cax-sidebar-content-wrapper {
|
|
11
|
+
flex: 1;
|
|
12
|
+
transition: margin 0.3s ease;
|
|
13
|
+
|
|
14
|
+
&.shift-left {
|
|
15
|
+
margin-left: 300px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&.shift-right {
|
|
19
|
+
margin-right: 300px;
|
|
20
|
+
}
|
|
21
|
+
&.shift-bottom{
|
|
22
|
+
margin-bottom: 300px;
|
|
23
|
+
}
|
|
24
|
+
&.shift-top{
|
|
25
|
+
margin-top: 300px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.cax-sidebar {
|
|
30
|
+
width: 300px;
|
|
31
|
+
position: fixed;
|
|
32
|
+
transition: transform 0.3s ease;
|
|
33
|
+
z-index: 1000;
|
|
34
|
+
box-shadow: none !important;
|
|
35
|
+
|
|
36
|
+
&.cax-sidebar-left {
|
|
37
|
+
left: 0;
|
|
38
|
+
transform: translateX(-100%);
|
|
39
|
+
&.cax-sidebar-active {
|
|
40
|
+
transform: translateX(0);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.cax-sidebar-right {
|
|
45
|
+
right: 0;
|
|
46
|
+
transform: translateX(100%);
|
|
47
|
+
&.cax-sidebar-active {
|
|
48
|
+
transform: translateX(0);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
}
|
|
8
53
|
|
|
9
54
|
.cax-sidebar-content {
|
|
10
55
|
position: relative;
|
|
@@ -33,17 +78,15 @@
|
|
|
33
78
|
left: 0;
|
|
34
79
|
width: 478px;
|
|
35
80
|
height: -webkit-fill-available;
|
|
36
|
-
margin: 15px 15px 15px 15px;
|
|
37
|
-
border-radius: 12px;
|
|
38
81
|
}
|
|
39
82
|
|
|
40
83
|
.cax-sidebar-right {
|
|
41
84
|
top: 0;
|
|
42
85
|
right: 0;
|
|
43
86
|
width: 480px;
|
|
87
|
+
box-shadow: none !important;
|
|
44
88
|
height: -webkit-fill-available;
|
|
45
|
-
|
|
46
|
-
border-radius: 12px;
|
|
89
|
+
|
|
47
90
|
}
|
|
48
91
|
|
|
49
92
|
.cax-sidebar-top {
|
|
@@ -51,8 +94,7 @@
|
|
|
51
94
|
left: 0;
|
|
52
95
|
width: -webkit-fill-available;
|
|
53
96
|
height: 10rem;
|
|
54
|
-
|
|
55
|
-
border-radius: 12px;
|
|
97
|
+
|
|
56
98
|
}
|
|
57
99
|
|
|
58
100
|
.cax-sidebar-bottom {
|
|
@@ -60,10 +102,21 @@
|
|
|
60
102
|
left: 0;
|
|
61
103
|
width: -webkit-fill-available;
|
|
62
104
|
height: 10rem;
|
|
63
|
-
|
|
64
|
-
|
|
105
|
+
-webkit-transition: none !important;
|
|
106
|
+
transition: none !important;
|
|
65
107
|
}
|
|
66
|
-
|
|
108
|
+
.cax-sidebar-overlay {
|
|
109
|
+
margin: 15px;
|
|
110
|
+
border-radius: 12px;
|
|
111
|
+
|
|
112
|
+
&.cax-sidebar-left,
|
|
113
|
+
&.cax-sidebar-right,
|
|
114
|
+
&.cax-sidebar-top,
|
|
115
|
+
&.cax-sidebar-bottom {
|
|
116
|
+
margin: 15px;
|
|
117
|
+
border-radius: 12px;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
67
120
|
.cax-sidebar-full {
|
|
68
121
|
width: 100%;
|
|
69
122
|
height: 100%;
|
package/sidebar/sidebar.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList, Renderer2, TemplateRef } from '@angular/core';
|
|
1
|
+
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList, Renderer2, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import { caxConfig, CaxTemplate } from 'cax-design-system/api';
|
|
3
3
|
import { Nullable, VoidListener } from 'cax-design-system/ts-helpers';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -95,6 +95,7 @@ export declare class Sidebar implements AfterViewInit, AfterContentInit, OnDestr
|
|
|
95
95
|
*/
|
|
96
96
|
get fullScreen(): boolean;
|
|
97
97
|
set fullScreen(value: boolean);
|
|
98
|
+
mode: 'overlay' | 'inline';
|
|
98
99
|
templates: QueryList<CaxTemplate> | undefined;
|
|
99
100
|
/**
|
|
100
101
|
* Callback to invoke when dialog is shown.
|
|
@@ -152,9 +153,10 @@ export declare class Sidebar implements AfterViewInit, AfterContentInit, OnDestr
|
|
|
152
153
|
unbindMaskClickListener(): void;
|
|
153
154
|
unbindGlobalListeners(): void;
|
|
154
155
|
unbindAnimationEndListener(): void;
|
|
156
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
155
157
|
ngOnDestroy(): void;
|
|
156
158
|
static ɵfac: i0.ɵɵFactoryDeclaration<Sidebar, never>;
|
|
157
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Sidebar, "cax-sidebar", never, { "headerText": { "alias": "headerText"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "blockScroll": { "alias": "blockScroll"; "required": false; }; "style": { "alias": "style"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "ariaCloseLabel": { "alias": "ariaCloseLabel"; "required": false; }; "autoZIndex": { "alias": "autoZIndex"; "required": false; }; "baseZIndex": { "alias": "baseZIndex"; "required": false; }; "modal": { "alias": "modal"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "showCloseIcon": { "alias": "showCloseIcon"; "required": false; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; }; "transitionOptions": { "alias": "transitionOptions"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "position": { "alias": "position"; "required": false; }; "fullScreen": { "alias": "fullScreen"; "required": false; }; "contentTemplate": { "alias": "contentTemplate"; "required": false; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; }; "headlessTemplate": { "alias": "headlessTemplate"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "closeIconTemplate": { "alias": "closeIconTemplate"; "required": false; }; "headerStyle": { "alias": "headerStyle"; "required": false; }; }, { "onShow": "onShow"; "onHide": "onHide"; "visibleChange": "visibleChange"; }, ["templates"], ["*"], true, never>;
|
|
159
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Sidebar, "cax-sidebar", never, { "headerText": { "alias": "headerText"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "blockScroll": { "alias": "blockScroll"; "required": false; }; "style": { "alias": "style"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "ariaCloseLabel": { "alias": "ariaCloseLabel"; "required": false; }; "autoZIndex": { "alias": "autoZIndex"; "required": false; }; "baseZIndex": { "alias": "baseZIndex"; "required": false; }; "modal": { "alias": "modal"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "showCloseIcon": { "alias": "showCloseIcon"; "required": false; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; }; "transitionOptions": { "alias": "transitionOptions"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "position": { "alias": "position"; "required": false; }; "fullScreen": { "alias": "fullScreen"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "contentTemplate": { "alias": "contentTemplate"; "required": false; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; }; "headlessTemplate": { "alias": "headlessTemplate"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "closeIconTemplate": { "alias": "closeIconTemplate"; "required": false; }; "headerStyle": { "alias": "headerStyle"; "required": false; }; }, { "onShow": "onShow"; "onHide": "onHide"; "visibleChange": "visibleChange"; }, ["templates"], ["*"], true, never>;
|
|
158
160
|
static ngAcceptInputType_blockScroll: unknown;
|
|
159
161
|
static ngAcceptInputType_autoZIndex: unknown;
|
|
160
162
|
static ngAcceptInputType_baseZIndex: unknown;
|