@7365admin1/layer-common 4.97.1-staging.594 → 4.97.1-staging.595

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,16 +1,18 @@
1
1
  <template>
2
2
  <v-text-field
3
3
  v-model.trim="model"
4
- class="filter-field"
4
+ :class="['filter-field', { 'nric-field--masked': masked && !shown }]"
5
5
  :rules="rules"
6
6
  :maxlength="maxlength"
7
7
  :placeholder="placeholder"
8
8
  :counter="maxlength"
9
9
  @input="onInput"
10
10
  :loading="loading"
11
- :type="masked && !shown ? 'password' : 'text'"
11
+ type="text"
12
12
  :append-inner-icon="masked ? (shown ? 'mdi-eye-off' : 'mdi-eye') : undefined"
13
13
  autocomplete="off"
14
+ data-lpignore="true"
15
+ data-1p-ignore
14
16
  outlined
15
17
  clearable
16
18
  @click:append-inner="shown = !shown"
@@ -63,4 +65,14 @@ function onInput(event) {
63
65
  watch(model, (newVal) => {
64
66
  emit('update:modelValue', newVal)
65
67
  })
66
- </script>
68
+ </script>
69
+
70
+ <style scoped>
71
+ /* Masked by CSS, never type="password": a password box makes Chrome treat the
72
+ form as a login and fill the saved sign-in password into the NRIC field
73
+ (it ignores autocomplete="off" on password boxes). */
74
+ .nric-field--masked :deep(input) {
75
+ -webkit-text-security: disc;
76
+ text-security: disc;
77
+ }
78
+ </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": "4.97.1-staging.594",
5
+ "version": "4.97.1-staging.595",
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.",