@7365admin1/layer-common 3.2.2-staging.120 → 3.2.2-staging.122

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.
@@ -1,43 +1,58 @@
1
+ <!--
2
+ HID SERVICE SETTINGS - the row that turns the whole HID module on for a site.
3
+
4
+ The handoff has no HID screen of its own, but it does not leave this
5
+ undecided: the Settings screen draws the ANPR Camera module in full and then
6
+ states, in the prototype's own words, that every other module's "toggles,
7
+ form fields and tables use the same styling as the ANPR Camera section". This
8
+ panel is mounted inside exactly that accordion, so the ANPR section IS its
9
+ spec - toggle 38x22 on `--accent`, label 13.5px/700, explanatory line 13px/600
10
+ `--muted`, and a 38px `--accent` action button.
11
+
12
+ Behaviour is untouched: the same `saveHidService` on the same event, the same
13
+ `navigateTo`, the same snackbar.
14
+ -->
1
15
  <template>
2
16
  <v-row align="center" class="py-2">
3
17
  <v-col cols="12" md="8">
4
- <div class="text-subtitle-1 font-weight-bold">
18
+ <!-- The prototype's module label: 14px/800. -->
19
+ <div class="hid-settings-label">
5
20
  Enable HID biometric reader for this site
6
21
  </div>
7
- <div class="text-body-2 text-medium-emphasis mt-1">
22
+ <!-- Its explanatory line: 13px/600 in `--muted`. -->
23
+ <div class="screen-hint hid-settings-note mt-1">
8
24
  When enabled, admins can register HID Amico devices and manage reader sync from Access Management.
9
25
  </div>
10
26
  </v-col>
11
27
 
12
28
  <v-col cols="12" md="4" class="d-flex justify-md-end">
29
+ <!--
30
+ `color="success"` is gone: the design's ON track is `--accent`, and the
31
+ green came with three lines of hardcoded hex that were the same colour
32
+ in both themes. `.app-switch` in primitives.css draws the handoff's
33
+ toggle for all three HID panels that have one.
34
+ -->
13
35
  <v-switch
14
36
  v-model="hidEnabled"
15
- class="hid-service-switch"
16
- color="success"
37
+ class="app-switch"
17
38
  hide-details
18
- inset
19
39
  :loading="isSaving"
20
40
  @update:model-value="saveHidService"
21
41
  >
22
42
  <template #label>
23
- <span class="text-body-2">
24
- {{ hidEnabled ? "Enabled" : "Disabled" }}
25
- </span>
43
+ {{ hidEnabled ? "Enabled" : "Disabled" }}
26
44
  </template>
27
45
  </v-switch>
28
46
  </v-col>
29
47
 
30
48
  <v-col cols="12" class="d-flex justify-end ga-2">
31
- <v-btn
32
- class="text-none"
33
- color="primary"
34
- variant="flat"
35
- prepend-icon="mdi-card-account-details-star"
49
+ <AppButton
50
+ icon="mdi-card-account-details-star"
36
51
  :disabled="!hidEnabled"
37
52
  @click="goToHidReaders"
38
53
  >
39
54
  Manage HID Readers
40
- </v-btn>
55
+ </AppButton>
41
56
  </v-col>
42
57
 
43
58
  <Snackbar v-model="messageSnackbar" :text="message" :color="messageColor" />
@@ -151,19 +166,16 @@ function goToHidReaders() {
151
166
  </script>
152
167
 
153
168
  <style scoped>
154
- .hid-service-switch :deep(.v-switch__track) {
155
- background-color: #8b9297;
156
- opacity: 1;
169
+ /* The prototype's settings module label and its explanatory line. */
170
+ .hid-settings-label {
171
+ font-family: var(--font-sans);
172
+ font-size: 14px;
173
+ font-weight: 800;
174
+ color: var(--text);
157
175
  }
158
176
 
159
- .hid-service-switch :deep(.v-selection-control--dirty .v-switch__track) {
160
- background-color: #2eaf55 !important;
161
- color: #2eaf55 !important;
162
- opacity: 1;
163
- }
164
-
165
- .hid-service-switch :deep(.v-switch__thumb) {
166
- background-color: #fff !important;
167
- color: #fff !important;
177
+ .hid-settings-note {
178
+ font-size: 13px;
179
+ font-weight: 600;
168
180
  }
169
181
  </style>