@truedat/dq 8.11.3 → 8.11.6

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.
@@ -46,84 +46,92 @@ exports[`<RuleImplementation /> matches the latest snapshot 1`] = `
46
46
  <div
47
47
  class="right aligned eight wide column"
48
48
  >
49
- <button
50
- class="ui basic icon button button icon group-actions"
51
- data-tooltip="quality.actions.subcribe.tooltip"
52
- >
53
- <i
54
- aria-hidden="true"
55
- class="eye icon"
56
- />
57
- </button>
58
- <button
59
- class="ui secondary button"
60
- >
61
- implementations.actions.do_execution
62
- </button>
63
49
  <div
64
- aria-expanded="false"
65
- class="ui floating dropdown button icon group-actions"
66
- role="listbox"
67
- tabindex="0"
50
+ class="rule-implementation-actions"
68
51
  >
69
- <i
70
- aria-hidden="true"
71
- class="ellipsis vertical icon"
72
- />
73
- <i
74
- aria-hidden="true"
75
- class="dropdown icon"
76
- />
52
+ <button
53
+ class="ui basic icon button button icon group-actions subscription-action-button"
54
+ data-tooltip="quality.actions.subcribe.tooltip"
55
+ >
56
+ <i
57
+ aria-hidden="true"
58
+ class="eye icon"
59
+ />
60
+ </button>
77
61
  <div
78
- class="left menu transition"
62
+ class="execution-popup-wrapper"
79
63
  >
80
- <a
81
- aria-checked="false"
82
- aria-selected="true"
83
- class="selected item td-icon-text-control"
84
- data-discover="true"
85
- href="/implementations/1/clone"
86
- role="option"
87
- style="pointer-events: all;"
64
+ <button
65
+ class="ui primary button"
88
66
  >
89
- <i
90
- aria-hidden="true"
91
- class="copy outline icon"
92
- />
93
- <span
94
- class="text"
95
- >
96
- ruleImplementation.actions.clone
97
- </span>
98
- </a>
99
- <a
100
- aria-checked="false"
101
- aria-selected="false"
102
- class="item td-icon-text-control"
103
- data-discover="true"
104
- href="/implementations/1/move"
105
- role="option"
106
- style="pointer-events: all;"
67
+ implementation.actions.do_execution
68
+ </button>
69
+ </div>
70
+ <div
71
+ aria-expanded="false"
72
+ class="ui floating dropdown button icon group-actions"
73
+ role="listbox"
74
+ tabindex="0"
75
+ >
76
+ <i
77
+ aria-hidden="true"
78
+ class="ellipsis vertical icon"
79
+ />
80
+ <i
81
+ aria-hidden="true"
82
+ class="dropdown icon"
83
+ />
84
+ <div
85
+ class="left menu transition"
107
86
  >
108
- <i
109
- aria-hidden="true"
110
- class="share square icon"
111
- />
112
- <span
113
- class="text"
87
+ <a
88
+ aria-checked="false"
89
+ aria-selected="true"
90
+ class="selected item td-icon-text-control"
91
+ data-discover="true"
92
+ href="/implementations/1/clone"
93
+ role="option"
94
+ style="pointer-events: all;"
114
95
  >
115
- ruleImplementation.actions.move
116
- </span>
117
- </a>
118
- <a
119
- class="item"
120
- >
121
- <i
122
- aria-hidden="true"
123
- class="red trash alternate outline icon"
124
- />
125
- ruleImplementation.actions.delete
126
- </a>
96
+ <i
97
+ aria-hidden="true"
98
+ class="copy outline icon"
99
+ />
100
+ <span
101
+ class="text"
102
+ >
103
+ ruleImplementation.actions.clone
104
+ </span>
105
+ </a>
106
+ <a
107
+ aria-checked="false"
108
+ aria-selected="false"
109
+ class="item td-icon-text-control"
110
+ data-discover="true"
111
+ href="/implementations/1/move"
112
+ role="option"
113
+ style="pointer-events: all;"
114
+ >
115
+ <i
116
+ aria-hidden="true"
117
+ class="share square icon"
118
+ />
119
+ <span
120
+ class="text"
121
+ >
122
+ ruleImplementation.actions.move
123
+ </span>
124
+ </a>
125
+ <a
126
+ class="item"
127
+ >
128
+ <i
129
+ aria-hidden="true"
130
+ class="red trash alternate outline icon"
131
+ />
132
+ ruleImplementation.actions.delete
133
+ </a>
134
+ </div>
127
135
  </div>
128
136
  </div>
129
137
  </div>
@@ -20,13 +20,17 @@ exports[`<RuleImplementationsActions /> matches the latest snapshot 1`] = `
20
20
  for="execute_checkbox"
21
21
  />
22
22
  </div>
23
- <button
24
- class="ui secondary disabled button"
25
- disabled=""
26
- tabindex="-1"
23
+ <div
24
+ class="execution-popup-wrapper"
27
25
  >
28
- implementations.actions.do_execution
29
- </button>
26
+ <button
27
+ class="ui primary disabled button"
28
+ disabled=""
29
+ tabindex="-1"
30
+ >
31
+ implementations.actions.do_execution
32
+ </button>
33
+ </div>
30
34
  <a
31
35
  class="ui button"
32
36
  data-discover="true"
@@ -3,7 +3,7 @@
3
3
  exports[`<Subscription /> matches the latest snapshot 1`] = `
4
4
  <div>
5
5
  <button
6
- class="ui basic icon button button icon group-actions"
6
+ class="ui basic icon button button icon group-actions subscription-action-button"
7
7
  data-tooltip="quality.actions.unsubcribe.tooltip"
8
8
  >
9
9
  <i
@@ -0,0 +1,261 @@
1
+ @execution-popup-border-radius: 0.375rem;
2
+ @execution-popup-padding: 0.75rem;
3
+ @execution-popup-gap: 0.625rem;
4
+ @execution-popup-border: #e2e8f0;
5
+ @execution-popup-text-secondary: #475569;
6
+ @execution-popup-text-light: #64748b;
7
+ @execution-popup-bg-light: #f8fafc;
8
+ @execution-popup-warning-bg: #fffbeb;
9
+ @execution-popup-warning-border: #fde68a;
10
+ @execution-popup-warning-text: #78350f;
11
+ @execution-popup-badge-optional-bg: #f1f5f9;
12
+ @execution-popup-badge-mandatory-pending-bg: #fee2e2;
13
+ @execution-popup-badge-mandatory-pending-text: #881337;
14
+ @execution-popup-badge-mandatory-complete-bg: #dcfce7;
15
+ @execution-popup-badge-mandatory-complete-text: #166534;
16
+
17
+ .ui.modal.execution-popup-modal {
18
+ width: min(48rem, calc(100vw - 2rem));
19
+ min-height: 24rem;
20
+ max-height: calc(100vh - 2rem);
21
+ padding: 0 !important;
22
+ border: 0 !important;
23
+ border-radius: 1rem !important;
24
+ overflow: visible;
25
+ box-shadow:
26
+ 0 20px 25px -5px rgba(0, 0, 0, 0.2),
27
+ 0 8px 10px -6px rgba(0, 0, 0, 0.15);
28
+
29
+ > .header {
30
+ padding: 1.5rem 1.5rem 1rem;
31
+ border-radius: 1rem 1rem 0 0;
32
+ border-bottom: 0 !important;
33
+ background: @primaryColor;
34
+ color: #f8fafc;
35
+
36
+ .execution-popup-header {
37
+ color: #f8fafc;
38
+
39
+ .subtitle {
40
+ color: #cbd5e1;
41
+ }
42
+
43
+ .close-button {
44
+ color: #e2e8f0;
45
+
46
+ &:hover {
47
+ color: #ffffff;
48
+ }
49
+ }
50
+ }
51
+ }
52
+
53
+ > .content {
54
+ display: flex;
55
+ flex-direction: column;
56
+ min-height: 16rem;
57
+ max-height: calc(100vh - 16rem);
58
+ overflow: visible;
59
+ padding: 1.625rem 1.5rem 2rem;
60
+
61
+ &.has-template {
62
+ padding-bottom: 1.25rem;
63
+ }
64
+ }
65
+
66
+ > .actions {
67
+ display: flex;
68
+ justify-content: flex-end;
69
+ align-items: center;
70
+ gap: 0.75rem;
71
+ padding: 1rem 1.5rem;
72
+ border-radius: 0 0 calc(1rem - 1px) calc(1rem - 1px);
73
+ border-top: 1px solid @execution-popup-border;
74
+ background: @execution-popup-bg-light;
75
+
76
+ .button {
77
+ margin-left: 0;
78
+ }
79
+ }
80
+ }
81
+
82
+ .execution-popup-header {
83
+ display: flex;
84
+ justify-content: space-between;
85
+ align-items: flex-start;
86
+
87
+ .subtitle {
88
+ font-size: 0.75rem;
89
+ font-weight: 400;
90
+ color: #94a3b8;
91
+ margin: 0.15rem 0 0;
92
+ }
93
+
94
+ .close-button {
95
+ flex-shrink: 0;
96
+ padding: 6px;
97
+ border: none;
98
+ border-radius: 0.5rem;
99
+ background: none;
100
+ color: #94a3b8;
101
+ cursor: pointer;
102
+ font-size: 1.25rem;
103
+ line-height: 1;
104
+
105
+ &:hover {
106
+ color: #334155;
107
+ }
108
+
109
+ &:focus-visible {
110
+ outline: 2px solid @primaryColor;
111
+ outline-offset: 2px;
112
+ }
113
+ }
114
+ }
115
+
116
+ .execution-popup-wrapper {
117
+ display: inline-block;
118
+ vertical-align: middle;
119
+ }
120
+
121
+ .execution-popup-selector-label {
122
+ display: flex;
123
+ justify-content: space-between;
124
+ align-items: center;
125
+ margin-bottom: 0.5rem;
126
+ font-size: 0.7rem;
127
+ font-weight: 700;
128
+ text-transform: uppercase;
129
+ letter-spacing: 0.08em;
130
+ color: @execution-popup-text-secondary;
131
+
132
+ .optional-badge,
133
+ .mandatory-badge {
134
+ padding: 0.2rem 0.45rem;
135
+ border-radius: 0.25rem;
136
+ font-size: 0.625rem;
137
+ font-weight: 600;
138
+ letter-spacing: 0.04em;
139
+ }
140
+
141
+ .optional-badge {
142
+ background: @execution-popup-badge-optional-bg;
143
+ color: @execution-popup-text-light;
144
+ }
145
+
146
+ .mandatory-badge {
147
+ &.pending {
148
+ background: @execution-popup-badge-mandatory-pending-bg;
149
+ color: @execution-popup-badge-mandatory-pending-text;
150
+ }
151
+
152
+ &.complete {
153
+ background: @execution-popup-badge-mandatory-complete-bg;
154
+ color: @execution-popup-badge-mandatory-complete-text;
155
+ }
156
+ }
157
+ }
158
+
159
+ .execution-popup-single-template-label {
160
+ margin-bottom: 0.75rem;
161
+ color: @execution-popup-text-secondary;
162
+ font-size: 0.75rem;
163
+ }
164
+
165
+ .execution-popup-template-area {
166
+ margin-bottom: 1.5rem;
167
+
168
+ .execution-popup-template-label {
169
+ display: block;
170
+ font-size: 0.75rem;
171
+ font-weight: 500;
172
+ color: @execution-popup-text-secondary;
173
+ margin-bottom: 0.25rem;
174
+
175
+ .required {
176
+ color: @red;
177
+ margin-left: 0.125rem;
178
+ }
179
+ }
180
+
181
+ .ui.dropdown {
182
+ width: 100%;
183
+
184
+ .menu {
185
+ z-index: 1001;
186
+ max-height: min(18rem, calc(100vh - 12rem));
187
+ overflow-y: auto;
188
+ }
189
+ }
190
+ }
191
+
192
+ .execution-popup-template-fields {
193
+ margin-top: 0.75rem;
194
+ background: @execution-popup-bg-light;
195
+ border: 1px solid @execution-popup-border;
196
+ border-radius: @execution-popup-border-radius;
197
+ padding: @execution-popup-padding;
198
+
199
+ h4 {
200
+ font-size: 0.6875rem;
201
+ font-weight: 700;
202
+ color: @execution-popup-text-light;
203
+ text-transform: uppercase;
204
+ letter-spacing: 0.05em;
205
+ margin: 0 0 0.5rem;
206
+ display: flex;
207
+ align-items: center;
208
+ gap: 0.375rem;
209
+ }
210
+
211
+ .execution-popup-template-scroll {
212
+ max-height: calc(100vh - 24rem);
213
+ overflow-y: auto;
214
+ }
215
+ }
216
+
217
+ .execution-popup-warning {
218
+ margin-top: auto;
219
+ padding: @execution-popup-padding;
220
+ background: @execution-popup-warning-bg;
221
+ border: 1px solid @execution-popup-warning-border;
222
+ border-radius: @execution-popup-border-radius;
223
+ display: flex;
224
+ align-items: center;
225
+ gap: @execution-popup-gap;
226
+
227
+ > .icon {
228
+ margin: 0;
229
+ }
230
+
231
+ p {
232
+ font-size: 0.875rem;
233
+ color: @execution-popup-warning-text;
234
+ line-height: 1.625;
235
+ margin: 0;
236
+
237
+ .count {
238
+ font-weight: 700;
239
+ font-size: 1rem;
240
+ }
241
+ }
242
+ }
243
+
244
+ .rule-implementation-actions {
245
+ display: inline-flex;
246
+ align-items: center;
247
+ justify-content: flex-end;
248
+ gap: 0.25em;
249
+ flex-wrap: wrap;
250
+ min-height: 40px;
251
+ }
252
+
253
+ .ui.button.subscription-action-button {
254
+ height: 40px;
255
+ width: 40px;
256
+ min-width: 40px;
257
+ display: inline-flex;
258
+ align-items: center;
259
+ justify-content: center;
260
+ padding: 0;
261
+ }