sit-onyx 1.1.0-dev-20250926121514 → 1.1.0-dev-20250929141520
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.
|
@@ -35,15 +35,18 @@ declare const __VLS_component: import('vue').DefineComponent<OnyxInputProps, {
|
|
|
35
35
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
36
|
validityChange: (validity: ValidityState) => any;
|
|
37
37
|
"update:modelValue": (value: string) => any;
|
|
38
|
+
"update:showPassword": (showPassword: boolean) => any;
|
|
38
39
|
}, string, import('vue').PublicProps, Readonly<OnyxInputProps> & Readonly<{
|
|
39
40
|
onValidityChange?: ((validity: ValidityState) => any) | undefined;
|
|
40
41
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
42
|
+
"onUpdate:showPassword"?: ((showPassword: boolean) => any) | undefined;
|
|
41
43
|
}>, {
|
|
42
44
|
skeleton: import('../../composables/useSkeletonState.js', { with: { "resolution-mode": "import" } }).SkeletonInjected;
|
|
43
45
|
required: boolean;
|
|
44
46
|
disabled: import('../OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<boolean>;
|
|
45
47
|
showError: import('../OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<import('../../composables/useErrorClass.js', { with: { "resolution-mode": "import" } }).ShowErrorMode>;
|
|
46
48
|
requiredMarker: import('../OnyxForm/OnyxForm.core.js', { with: { "resolution-mode": "import" } }).FormInjected<import('../../composables/required.js', { with: { "resolution-mode": "import" } }).RequiredMarkerType>;
|
|
49
|
+
showPassword: boolean;
|
|
47
50
|
readonly: boolean;
|
|
48
51
|
loading: boolean;
|
|
49
52
|
autocapitalize: import('../../composables/useLenientMaxLengthValidation.js', { with: { "resolution-mode": "import" } }).Autocapitalize;
|
|
@@ -19,6 +19,11 @@ export type OnyxInputProps = SharedFormElementProps & SharedTextInputProps & {
|
|
|
19
19
|
* Whether to hide the clear icon when the input is filled and focused.
|
|
20
20
|
*/
|
|
21
21
|
hideClearIcon?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Show or hide the password value for input with `type="password"`.
|
|
24
|
+
* If unset, the state will be managed internally.
|
|
25
|
+
*/
|
|
26
|
+
showPassword?: boolean;
|
|
22
27
|
};
|
|
23
28
|
export declare const INPUT_TYPES: readonly ["email", "password", "search", "tel", "text", "url"];
|
|
24
29
|
export type InputType = (typeof INPUT_TYPES)[number];
|
|
@@ -8148,6 +8148,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
8148
8148
|
success: { type: [String, Object], required: false },
|
|
8149
8149
|
hideSuccessIcon: { type: Boolean, required: false },
|
|
8150
8150
|
hideClearIcon: { type: Boolean, required: false },
|
|
8151
|
+
showPassword: { type: Boolean, required: false },
|
|
8151
8152
|
modelValue: { type: null, required: false },
|
|
8152
8153
|
type: { type: String, required: false, default: "date" },
|
|
8153
8154
|
min: { type: null, required: false },
|
|
@@ -8654,9 +8655,10 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
8654
8655
|
type: { type: null, required: false, default: "text" },
|
|
8655
8656
|
pattern: { type: null, required: false },
|
|
8656
8657
|
hideSuccessIcon: { type: Boolean, required: false, default: false },
|
|
8657
|
-
hideClearIcon: { type: Boolean, required: false, default: false }
|
|
8658
|
+
hideClearIcon: { type: Boolean, required: false, default: false },
|
|
8659
|
+
showPassword: { type: Boolean, required: false, default: void 0 }
|
|
8658
8660
|
},
|
|
8659
|
-
emits: ["validityChange", "update:modelValue"],
|
|
8661
|
+
emits: ["validityChange", "update:modelValue", "update:showPassword"],
|
|
8660
8662
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
8661
8663
|
const props = __props;
|
|
8662
8664
|
const emit = __emit;
|
|
@@ -8685,7 +8687,12 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
8685
8687
|
const skeleton = useSkeletonContext(props);
|
|
8686
8688
|
const errorClass = useErrorClass(showError);
|
|
8687
8689
|
useAutofocus(input2, props);
|
|
8688
|
-
const showPassword =
|
|
8690
|
+
const showPassword = useVModel({
|
|
8691
|
+
props,
|
|
8692
|
+
emit,
|
|
8693
|
+
key: "showPassword",
|
|
8694
|
+
default: false
|
|
8695
|
+
});
|
|
8689
8696
|
const displayType = computed(() => {
|
|
8690
8697
|
if (props.type === "password" && showPassword.value) {
|
|
8691
8698
|
return "text";
|
|
@@ -12763,6 +12770,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
12763
12770
|
minlength: { type: Number, required: false },
|
|
12764
12771
|
autocapitalize: { type: null, required: false, default: "sentences" },
|
|
12765
12772
|
modelValue: { type: null, required: false },
|
|
12773
|
+
showPassword: { type: Boolean, required: false },
|
|
12766
12774
|
autosize: { type: Object, required: false },
|
|
12767
12775
|
disableManualResize: { type: Boolean, required: false, default: false }
|
|
12768
12776
|
},
|