@7365admin1/layer-common 3.2.2-staging.163 → 3.2.2-staging.165
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/assets/css/screens.css +14 -0
- package/components/PeopleForm.vue +41 -20
- package/package.json +1 -1
package/assets/css/screens.css
CHANGED
|
@@ -752,6 +752,20 @@
|
|
|
752
752
|
font-weight: var(--fw-btn);
|
|
753
753
|
letter-spacing: 0;
|
|
754
754
|
color: var(--text2);
|
|
755
|
+
/*
|
|
756
|
+
* Same reason as `.screen-btn-ghost` (#1200): `border-color` alone draws
|
|
757
|
+
* nothing, it only tints an edge whose width the Vuetify `variant` decided.
|
|
758
|
+
* Measured: paired with `outlined` this rule gives 1px, paired with `flat`
|
|
759
|
+
* it gives 0px - and the fill is `--card`, the same colour as the surface
|
|
760
|
+
* behind it, so a borderless copy has no boundary at all.
|
|
761
|
+
*
|
|
762
|
+
* The one call site today (`TableMain.vue`, Scan QR Code) does use
|
|
763
|
+
* `outlined`, so nothing is visibly broken right now. This is the latent
|
|
764
|
+
* half of the same defect: the next caller who writes `flat` gets an
|
|
765
|
+
* invisible button and no error. Naming the width closes it.
|
|
766
|
+
*/
|
|
767
|
+
border-width: 1px;
|
|
768
|
+
border-style: solid;
|
|
755
769
|
border-color: var(--border);
|
|
756
770
|
background: var(--card);
|
|
757
771
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<v-card width="100%" :loading="processing">
|
|
3
|
-
<v-toolbar>
|
|
2
|
+
<v-card width="100%" class="screen-modal" :loading="processing">
|
|
3
|
+
<v-toolbar class="screen-dialog-bar" flat>
|
|
4
4
|
<v-row no-gutters class="fill-height px-6" align="center">
|
|
5
|
-
<span class="
|
|
5
|
+
<span class="screen-card-title text-capitalize">
|
|
6
6
|
{{ prop.mode }} {{ prop.type }}
|
|
7
7
|
</span>
|
|
8
8
|
</v-row>
|
|
9
9
|
</v-toolbar>
|
|
10
10
|
<v-card-text style="max-height: 100vh; overflow-y: auto" class="pa-5 my-3">
|
|
11
11
|
<div class="w-100 d-flex justify-space-between ga-2">
|
|
12
|
-
<span v class="
|
|
12
|
+
<span v class="people-form__section w-100 mb-3">
|
|
13
13
|
<span v-if="step === 1">General Information</span>
|
|
14
14
|
<span v-else-if="step === 2">Pass Information</span>
|
|
15
15
|
</span>
|
|
16
|
-
<span class="
|
|
17
|
-
<span class="
|
|
16
|
+
<span class="people-form__step" style="text-wrap: nowrap;">Step
|
|
17
|
+
<span class="people-form__stepno">{{ step }}</span>/2</span>
|
|
18
18
|
</div>
|
|
19
19
|
<v-form ref="formRef" v-model="validForm" :disabled="processing" @click="errorMessage = ''">
|
|
20
20
|
<v-row no-gutters class="pt-4">
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
<v-col v-if="prop.mode === 'add'" cols="12" class="mt-2">
|
|
94
94
|
<v-checkbox v-model="createMore" density="comfortable" hide-details>
|
|
95
95
|
<template #label>
|
|
96
|
-
<span class="
|
|
96
|
+
<span class="people-form__step">
|
|
97
97
|
Create more
|
|
98
98
|
</span>
|
|
99
99
|
</template>
|
|
@@ -106,20 +106,14 @@
|
|
|
106
106
|
</v-card-text>
|
|
107
107
|
|
|
108
108
|
<v-row no-gutters class="w-100" v-if="errorMessage">
|
|
109
|
-
<p class="text-error w-100 text-center
|
|
109
|
+
<p class="text-error w-100 text-center people-form__error">{{ errorMessage }}</p>
|
|
110
110
|
</v-row>
|
|
111
|
-
<
|
|
112
|
-
<v-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
<v-col cols="6">
|
|
118
|
-
<v-btn tile block variant="flat" color="primary-button" class="text-none" size="48" :disabled="processing"
|
|
119
|
-
@click="handleNextPage" :text="step === 2 ? 'Submit' : 'Next'" />
|
|
120
|
-
</v-col>
|
|
121
|
-
</v-row>
|
|
122
|
-
</v-toolbar>
|
|
111
|
+
<div class="screen-modal__footer">
|
|
112
|
+
<v-btn v-if="step > 1" variant="outlined" class="screen-btn-ghost" @click="back" text="Back" />
|
|
113
|
+
<v-btn v-else variant="outlined" class="screen-btn-ghost" @click="close" text="Close" />
|
|
114
|
+
<v-btn variant="flat" class="screen-btn-primary" :disabled="processing"
|
|
115
|
+
@click="handleNextPage" :text="step === 2 ? 'Submit' : 'Next'" />
|
|
116
|
+
</div>
|
|
123
117
|
</v-card>
|
|
124
118
|
</template>
|
|
125
119
|
|
|
@@ -449,4 +443,31 @@ onMounted(() => {
|
|
|
449
443
|
.button-outline-class {
|
|
450
444
|
border: 1px solid rgba(var(--v-theme-primary));
|
|
451
445
|
}
|
|
446
|
+
|
|
447
|
+
/* Was `text-subtitle-1` / `text-subtitle-2` - Vuetify's 16px/14px scale, which
|
|
448
|
+
drew the section label LARGER than the card title above it. The step counter
|
|
449
|
+
step number is handled below and the error line keeps `text-error`;
|
|
450
|
+
only their sizes move. */
|
|
451
|
+
.people-form__section {
|
|
452
|
+
font-size: var(--fs-card-title);
|
|
453
|
+
font-weight: 700;
|
|
454
|
+
color: var(--text);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.people-form__step {
|
|
458
|
+
font-size: var(--fs-cell);
|
|
459
|
+
font-weight: 700;
|
|
460
|
+
color: var(--text2);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.people-form__error {
|
|
464
|
+
font-size: var(--fs-cell);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/* The step number was `text-primary-button` - the design's FILL token used as
|
|
468
|
+
ink. On dark that is rgb(75,116,196) on rgb(28,30,36): 3.64:1 against a 4.5
|
|
469
|
+
floor. `--accent-text` is the foreground half of the same pair. */
|
|
470
|
+
.people-form__stepno {
|
|
471
|
+
color: var(--accent-text);
|
|
472
|
+
}
|
|
452
473
|
</style>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "3.2.2-staging.
|
|
5
|
+
"version": "3.2.2-staging.165",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|