@atscript/vue-aooth 0.1.78 → 0.1.80
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/dist/as-copy-CxLJdyxe.mjs +277 -0
- package/dist/as-copy-USMxrTlI.cjs +282 -0
- package/dist/as-copy.cjs +2 -0
- package/dist/as-copy.d.cts +14 -0
- package/dist/as-copy.d.mts +15 -0
- package/dist/as-copy.mjs +2 -0
- package/dist/{as-password-rules-DkFih-lL.cjs → as-password-rules-DBoLmROR.cjs} +8 -15
- package/dist/{as-password-rules-f9ouYgev.mjs → as-password-rules-DuKe47j8.mjs} +9 -16
- package/dist/as-password-rules.cjs +1 -1
- package/dist/as-password-rules.mjs +1 -1
- package/dist/as-qr-code-BoEy7mvV.cjs +293 -0
- package/dist/as-qr-code-U4sjF5lD.mjs +288 -0
- package/dist/as-qr-code.cjs +2 -0
- package/dist/as-qr-code.d.cts +16 -0
- package/dist/as-qr-code.d.mts +17 -0
- package/dist/as-qr-code.mjs +2 -0
- package/dist/index.cjs +5 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.mts +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +25 -7
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { computed, createBlock, createElementVNode, defineComponent, mergeProps, normalizeClass, onUnmounted, openBlock, ref, toDisplayString, unref, withCtx } from "vue";
|
|
2
|
+
import { AsFieldShell } from "@atscript/vue-form";
|
|
3
|
+
//#region src/components/as-copy.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
const _hoisted_1 = { class: "as-copy-row" };
|
|
5
|
+
const _hoisted_2 = [
|
|
6
|
+
"id",
|
|
7
|
+
"value",
|
|
8
|
+
"name",
|
|
9
|
+
"aria-describedby"
|
|
10
|
+
];
|
|
11
|
+
const _hoisted_3 = ["disabled", "aria-label"];
|
|
12
|
+
const _hoisted_4 = {
|
|
13
|
+
class: "as-copy-label",
|
|
14
|
+
"aria-live": "polite"
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/as-copy.vue
|
|
18
|
+
var as_copy_default = /* @__PURE__ */ defineComponent({
|
|
19
|
+
__name: "as-copy",
|
|
20
|
+
props: {
|
|
21
|
+
onBlur: {
|
|
22
|
+
type: Function,
|
|
23
|
+
required: true
|
|
24
|
+
},
|
|
25
|
+
error: {
|
|
26
|
+
type: String,
|
|
27
|
+
required: false
|
|
28
|
+
},
|
|
29
|
+
model: {
|
|
30
|
+
type: Object,
|
|
31
|
+
required: true
|
|
32
|
+
},
|
|
33
|
+
value: {
|
|
34
|
+
type: null,
|
|
35
|
+
required: false
|
|
36
|
+
},
|
|
37
|
+
label: {
|
|
38
|
+
type: String,
|
|
39
|
+
required: false
|
|
40
|
+
},
|
|
41
|
+
description: {
|
|
42
|
+
type: String,
|
|
43
|
+
required: false
|
|
44
|
+
},
|
|
45
|
+
hint: {
|
|
46
|
+
type: String,
|
|
47
|
+
required: false
|
|
48
|
+
},
|
|
49
|
+
placeholder: {
|
|
50
|
+
type: String,
|
|
51
|
+
required: false
|
|
52
|
+
},
|
|
53
|
+
prefixIcon: {
|
|
54
|
+
type: String,
|
|
55
|
+
required: false
|
|
56
|
+
},
|
|
57
|
+
suffixIcon: {
|
|
58
|
+
type: String,
|
|
59
|
+
required: false
|
|
60
|
+
},
|
|
61
|
+
class: {
|
|
62
|
+
type: [Object, String],
|
|
63
|
+
required: false
|
|
64
|
+
},
|
|
65
|
+
style: {
|
|
66
|
+
type: [Object, String],
|
|
67
|
+
required: false
|
|
68
|
+
},
|
|
69
|
+
optional: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
required: false,
|
|
72
|
+
skipCheck: true
|
|
73
|
+
},
|
|
74
|
+
onToggleOptional: {
|
|
75
|
+
type: Function,
|
|
76
|
+
required: false
|
|
77
|
+
},
|
|
78
|
+
required: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
required: false,
|
|
81
|
+
skipCheck: true
|
|
82
|
+
},
|
|
83
|
+
readonly: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
required: false,
|
|
86
|
+
skipCheck: true
|
|
87
|
+
},
|
|
88
|
+
type: {
|
|
89
|
+
type: String,
|
|
90
|
+
required: true
|
|
91
|
+
},
|
|
92
|
+
formAction: {
|
|
93
|
+
type: Object,
|
|
94
|
+
required: false
|
|
95
|
+
},
|
|
96
|
+
name: {
|
|
97
|
+
type: String,
|
|
98
|
+
required: false
|
|
99
|
+
},
|
|
100
|
+
field: {
|
|
101
|
+
type: Object,
|
|
102
|
+
required: false
|
|
103
|
+
},
|
|
104
|
+
options: {
|
|
105
|
+
type: Array,
|
|
106
|
+
required: false
|
|
107
|
+
},
|
|
108
|
+
maxLength: {
|
|
109
|
+
type: Number,
|
|
110
|
+
required: false
|
|
111
|
+
},
|
|
112
|
+
autocomplete: {
|
|
113
|
+
type: String,
|
|
114
|
+
required: false
|
|
115
|
+
},
|
|
116
|
+
title: {
|
|
117
|
+
type: String,
|
|
118
|
+
required: false
|
|
119
|
+
},
|
|
120
|
+
level: {
|
|
121
|
+
type: Number,
|
|
122
|
+
required: false
|
|
123
|
+
},
|
|
124
|
+
onRemove: {
|
|
125
|
+
type: Function,
|
|
126
|
+
required: false
|
|
127
|
+
},
|
|
128
|
+
canRemove: {
|
|
129
|
+
type: Boolean,
|
|
130
|
+
required: false
|
|
131
|
+
},
|
|
132
|
+
removeLabel: {
|
|
133
|
+
type: String,
|
|
134
|
+
required: false
|
|
135
|
+
},
|
|
136
|
+
arrayIndex: {
|
|
137
|
+
type: Number,
|
|
138
|
+
required: false
|
|
139
|
+
},
|
|
140
|
+
path: {
|
|
141
|
+
type: String,
|
|
142
|
+
required: true
|
|
143
|
+
},
|
|
144
|
+
valueHelp: {
|
|
145
|
+
type: Object,
|
|
146
|
+
required: false
|
|
147
|
+
},
|
|
148
|
+
singularLabel: {
|
|
149
|
+
type: String,
|
|
150
|
+
required: false
|
|
151
|
+
},
|
|
152
|
+
inputId: {
|
|
153
|
+
type: String,
|
|
154
|
+
required: true
|
|
155
|
+
},
|
|
156
|
+
errorId: {
|
|
157
|
+
type: String,
|
|
158
|
+
required: true
|
|
159
|
+
},
|
|
160
|
+
descId: {
|
|
161
|
+
type: String,
|
|
162
|
+
required: true
|
|
163
|
+
},
|
|
164
|
+
ariaDescribedBy: {
|
|
165
|
+
type: String,
|
|
166
|
+
required: false
|
|
167
|
+
},
|
|
168
|
+
currencyCode: {
|
|
169
|
+
type: String,
|
|
170
|
+
required: false
|
|
171
|
+
},
|
|
172
|
+
unitCode: {
|
|
173
|
+
type: String,
|
|
174
|
+
required: false
|
|
175
|
+
},
|
|
176
|
+
precisionScale: {
|
|
177
|
+
type: Number,
|
|
178
|
+
required: false
|
|
179
|
+
},
|
|
180
|
+
prefix: {
|
|
181
|
+
type: String,
|
|
182
|
+
required: false
|
|
183
|
+
},
|
|
184
|
+
suffix: {
|
|
185
|
+
type: String,
|
|
186
|
+
required: false
|
|
187
|
+
},
|
|
188
|
+
scale: {
|
|
189
|
+
type: Number,
|
|
190
|
+
required: false
|
|
191
|
+
},
|
|
192
|
+
hasAdornment: {
|
|
193
|
+
type: Boolean,
|
|
194
|
+
required: false
|
|
195
|
+
},
|
|
196
|
+
disabled: {
|
|
197
|
+
type: Boolean,
|
|
198
|
+
required: false
|
|
199
|
+
},
|
|
200
|
+
hidden: {
|
|
201
|
+
type: Boolean,
|
|
202
|
+
required: false
|
|
203
|
+
},
|
|
204
|
+
copiedLabel: {
|
|
205
|
+
type: String,
|
|
206
|
+
required: false,
|
|
207
|
+
default: "Copied"
|
|
208
|
+
},
|
|
209
|
+
copyLabel: {
|
|
210
|
+
type: String,
|
|
211
|
+
required: false,
|
|
212
|
+
default: "Copy"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
setup(__props) {
|
|
216
|
+
const props = __props;
|
|
217
|
+
const text = computed(() => props.value ?? props.model?.value ?? "");
|
|
218
|
+
const copied = ref(false);
|
|
219
|
+
const error = ref();
|
|
220
|
+
let revertTimer;
|
|
221
|
+
async function onCopy() {
|
|
222
|
+
if (!navigator.clipboard?.writeText) {
|
|
223
|
+
copied.value = false;
|
|
224
|
+
error.value = "Copy failed — select and copy manually";
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
try {
|
|
228
|
+
await navigator.clipboard.writeText(text.value);
|
|
229
|
+
error.value = void 0;
|
|
230
|
+
copied.value = true;
|
|
231
|
+
clearTimeout(revertTimer);
|
|
232
|
+
revertTimer = setTimeout(() => {
|
|
233
|
+
copied.value = false;
|
|
234
|
+
revertTimer = void 0;
|
|
235
|
+
}, 1500);
|
|
236
|
+
} catch {
|
|
237
|
+
copied.value = false;
|
|
238
|
+
clearTimeout(revertTimer);
|
|
239
|
+
revertTimer = void 0;
|
|
240
|
+
error.value = "Copy failed — select and copy manually";
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
function onFocus(e) {
|
|
244
|
+
e.target.select();
|
|
245
|
+
}
|
|
246
|
+
onUnmounted(() => clearTimeout(revertTimer));
|
|
247
|
+
return (_ctx, _cache) => {
|
|
248
|
+
return openBlock(), createBlock(unref(AsFieldShell), mergeProps(_ctx.$props, {
|
|
249
|
+
"field-class": "as-copy",
|
|
250
|
+
error: error.value
|
|
251
|
+
}), {
|
|
252
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1, [createElementVNode("input", {
|
|
253
|
+
id: __props.inputId,
|
|
254
|
+
type: "text",
|
|
255
|
+
readonly: "",
|
|
256
|
+
value: text.value,
|
|
257
|
+
name: __props.name,
|
|
258
|
+
class: "as-copy-input",
|
|
259
|
+
"aria-describedby": __props.ariaDescribedBy,
|
|
260
|
+
onFocus
|
|
261
|
+
}, null, 40, _hoisted_2), createElementVNode("button", {
|
|
262
|
+
type: "button",
|
|
263
|
+
class: normalizeClass(["as-copy-btn", { copied: copied.value }]),
|
|
264
|
+
disabled: !text.value,
|
|
265
|
+
"aria-label": copied.value ? __props.copiedLabel : __props.copyLabel,
|
|
266
|
+
onClick: onCopy
|
|
267
|
+
}, [createElementVNode("span", {
|
|
268
|
+
class: normalizeClass(["as-copy-icon", copied.value ? "i-as-check-circle" : "i-as-copy"]),
|
|
269
|
+
"aria-hidden": "true"
|
|
270
|
+
}, null, 2), createElementVNode("span", _hoisted_4, toDisplayString(copied.value ? __props.copiedLabel : __props.copyLabel), 1)], 10, _hoisted_3)])]),
|
|
271
|
+
_: 1
|
|
272
|
+
}, 16, ["error"]);
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
//#endregion
|
|
277
|
+
export { as_copy_default as t };
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
let vue = require("vue");
|
|
2
|
+
let _atscript_vue_form = require("@atscript/vue-form");
|
|
3
|
+
//#region src/components/as-copy.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
const _hoisted_1 = { class: "as-copy-row" };
|
|
5
|
+
const _hoisted_2 = [
|
|
6
|
+
"id",
|
|
7
|
+
"value",
|
|
8
|
+
"name",
|
|
9
|
+
"aria-describedby"
|
|
10
|
+
];
|
|
11
|
+
const _hoisted_3 = ["disabled", "aria-label"];
|
|
12
|
+
const _hoisted_4 = {
|
|
13
|
+
class: "as-copy-label",
|
|
14
|
+
"aria-live": "polite"
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/components/as-copy.vue
|
|
18
|
+
var as_copy_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
19
|
+
__name: "as-copy",
|
|
20
|
+
props: {
|
|
21
|
+
onBlur: {
|
|
22
|
+
type: Function,
|
|
23
|
+
required: true
|
|
24
|
+
},
|
|
25
|
+
error: {
|
|
26
|
+
type: String,
|
|
27
|
+
required: false
|
|
28
|
+
},
|
|
29
|
+
model: {
|
|
30
|
+
type: Object,
|
|
31
|
+
required: true
|
|
32
|
+
},
|
|
33
|
+
value: {
|
|
34
|
+
type: null,
|
|
35
|
+
required: false
|
|
36
|
+
},
|
|
37
|
+
label: {
|
|
38
|
+
type: String,
|
|
39
|
+
required: false
|
|
40
|
+
},
|
|
41
|
+
description: {
|
|
42
|
+
type: String,
|
|
43
|
+
required: false
|
|
44
|
+
},
|
|
45
|
+
hint: {
|
|
46
|
+
type: String,
|
|
47
|
+
required: false
|
|
48
|
+
},
|
|
49
|
+
placeholder: {
|
|
50
|
+
type: String,
|
|
51
|
+
required: false
|
|
52
|
+
},
|
|
53
|
+
prefixIcon: {
|
|
54
|
+
type: String,
|
|
55
|
+
required: false
|
|
56
|
+
},
|
|
57
|
+
suffixIcon: {
|
|
58
|
+
type: String,
|
|
59
|
+
required: false
|
|
60
|
+
},
|
|
61
|
+
class: {
|
|
62
|
+
type: [Object, String],
|
|
63
|
+
required: false
|
|
64
|
+
},
|
|
65
|
+
style: {
|
|
66
|
+
type: [Object, String],
|
|
67
|
+
required: false
|
|
68
|
+
},
|
|
69
|
+
optional: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
required: false,
|
|
72
|
+
skipCheck: true
|
|
73
|
+
},
|
|
74
|
+
onToggleOptional: {
|
|
75
|
+
type: Function,
|
|
76
|
+
required: false
|
|
77
|
+
},
|
|
78
|
+
required: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
required: false,
|
|
81
|
+
skipCheck: true
|
|
82
|
+
},
|
|
83
|
+
readonly: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
required: false,
|
|
86
|
+
skipCheck: true
|
|
87
|
+
},
|
|
88
|
+
type: {
|
|
89
|
+
type: String,
|
|
90
|
+
required: true
|
|
91
|
+
},
|
|
92
|
+
formAction: {
|
|
93
|
+
type: Object,
|
|
94
|
+
required: false
|
|
95
|
+
},
|
|
96
|
+
name: {
|
|
97
|
+
type: String,
|
|
98
|
+
required: false
|
|
99
|
+
},
|
|
100
|
+
field: {
|
|
101
|
+
type: Object,
|
|
102
|
+
required: false
|
|
103
|
+
},
|
|
104
|
+
options: {
|
|
105
|
+
type: Array,
|
|
106
|
+
required: false
|
|
107
|
+
},
|
|
108
|
+
maxLength: {
|
|
109
|
+
type: Number,
|
|
110
|
+
required: false
|
|
111
|
+
},
|
|
112
|
+
autocomplete: {
|
|
113
|
+
type: String,
|
|
114
|
+
required: false
|
|
115
|
+
},
|
|
116
|
+
title: {
|
|
117
|
+
type: String,
|
|
118
|
+
required: false
|
|
119
|
+
},
|
|
120
|
+
level: {
|
|
121
|
+
type: Number,
|
|
122
|
+
required: false
|
|
123
|
+
},
|
|
124
|
+
onRemove: {
|
|
125
|
+
type: Function,
|
|
126
|
+
required: false
|
|
127
|
+
},
|
|
128
|
+
canRemove: {
|
|
129
|
+
type: Boolean,
|
|
130
|
+
required: false
|
|
131
|
+
},
|
|
132
|
+
removeLabel: {
|
|
133
|
+
type: String,
|
|
134
|
+
required: false
|
|
135
|
+
},
|
|
136
|
+
arrayIndex: {
|
|
137
|
+
type: Number,
|
|
138
|
+
required: false
|
|
139
|
+
},
|
|
140
|
+
path: {
|
|
141
|
+
type: String,
|
|
142
|
+
required: true
|
|
143
|
+
},
|
|
144
|
+
valueHelp: {
|
|
145
|
+
type: Object,
|
|
146
|
+
required: false
|
|
147
|
+
},
|
|
148
|
+
singularLabel: {
|
|
149
|
+
type: String,
|
|
150
|
+
required: false
|
|
151
|
+
},
|
|
152
|
+
inputId: {
|
|
153
|
+
type: String,
|
|
154
|
+
required: true
|
|
155
|
+
},
|
|
156
|
+
errorId: {
|
|
157
|
+
type: String,
|
|
158
|
+
required: true
|
|
159
|
+
},
|
|
160
|
+
descId: {
|
|
161
|
+
type: String,
|
|
162
|
+
required: true
|
|
163
|
+
},
|
|
164
|
+
ariaDescribedBy: {
|
|
165
|
+
type: String,
|
|
166
|
+
required: false
|
|
167
|
+
},
|
|
168
|
+
currencyCode: {
|
|
169
|
+
type: String,
|
|
170
|
+
required: false
|
|
171
|
+
},
|
|
172
|
+
unitCode: {
|
|
173
|
+
type: String,
|
|
174
|
+
required: false
|
|
175
|
+
},
|
|
176
|
+
precisionScale: {
|
|
177
|
+
type: Number,
|
|
178
|
+
required: false
|
|
179
|
+
},
|
|
180
|
+
prefix: {
|
|
181
|
+
type: String,
|
|
182
|
+
required: false
|
|
183
|
+
},
|
|
184
|
+
suffix: {
|
|
185
|
+
type: String,
|
|
186
|
+
required: false
|
|
187
|
+
},
|
|
188
|
+
scale: {
|
|
189
|
+
type: Number,
|
|
190
|
+
required: false
|
|
191
|
+
},
|
|
192
|
+
hasAdornment: {
|
|
193
|
+
type: Boolean,
|
|
194
|
+
required: false
|
|
195
|
+
},
|
|
196
|
+
disabled: {
|
|
197
|
+
type: Boolean,
|
|
198
|
+
required: false
|
|
199
|
+
},
|
|
200
|
+
hidden: {
|
|
201
|
+
type: Boolean,
|
|
202
|
+
required: false
|
|
203
|
+
},
|
|
204
|
+
copiedLabel: {
|
|
205
|
+
type: String,
|
|
206
|
+
required: false,
|
|
207
|
+
default: "Copied"
|
|
208
|
+
},
|
|
209
|
+
copyLabel: {
|
|
210
|
+
type: String,
|
|
211
|
+
required: false,
|
|
212
|
+
default: "Copy"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
setup(__props) {
|
|
216
|
+
const props = __props;
|
|
217
|
+
const text = (0, vue.computed)(() => props.value ?? props.model?.value ?? "");
|
|
218
|
+
const copied = (0, vue.ref)(false);
|
|
219
|
+
const error = (0, vue.ref)();
|
|
220
|
+
let revertTimer;
|
|
221
|
+
async function onCopy() {
|
|
222
|
+
if (!navigator.clipboard?.writeText) {
|
|
223
|
+
copied.value = false;
|
|
224
|
+
error.value = "Copy failed — select and copy manually";
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
try {
|
|
228
|
+
await navigator.clipboard.writeText(text.value);
|
|
229
|
+
error.value = void 0;
|
|
230
|
+
copied.value = true;
|
|
231
|
+
clearTimeout(revertTimer);
|
|
232
|
+
revertTimer = setTimeout(() => {
|
|
233
|
+
copied.value = false;
|
|
234
|
+
revertTimer = void 0;
|
|
235
|
+
}, 1500);
|
|
236
|
+
} catch {
|
|
237
|
+
copied.value = false;
|
|
238
|
+
clearTimeout(revertTimer);
|
|
239
|
+
revertTimer = void 0;
|
|
240
|
+
error.value = "Copy failed — select and copy manually";
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
function onFocus(e) {
|
|
244
|
+
e.target.select();
|
|
245
|
+
}
|
|
246
|
+
(0, vue.onUnmounted)(() => clearTimeout(revertTimer));
|
|
247
|
+
return (_ctx, _cache) => {
|
|
248
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(_atscript_vue_form.AsFieldShell), (0, vue.mergeProps)(_ctx.$props, {
|
|
249
|
+
"field-class": "as-copy",
|
|
250
|
+
error: error.value
|
|
251
|
+
}), {
|
|
252
|
+
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("div", _hoisted_1, [(0, vue.createElementVNode)("input", {
|
|
253
|
+
id: __props.inputId,
|
|
254
|
+
type: "text",
|
|
255
|
+
readonly: "",
|
|
256
|
+
value: text.value,
|
|
257
|
+
name: __props.name,
|
|
258
|
+
class: "as-copy-input",
|
|
259
|
+
"aria-describedby": __props.ariaDescribedBy,
|
|
260
|
+
onFocus
|
|
261
|
+
}, null, 40, _hoisted_2), (0, vue.createElementVNode)("button", {
|
|
262
|
+
type: "button",
|
|
263
|
+
class: (0, vue.normalizeClass)(["as-copy-btn", { copied: copied.value }]),
|
|
264
|
+
disabled: !text.value,
|
|
265
|
+
"aria-label": copied.value ? __props.copiedLabel : __props.copyLabel,
|
|
266
|
+
onClick: onCopy
|
|
267
|
+
}, [(0, vue.createElementVNode)("span", {
|
|
268
|
+
class: (0, vue.normalizeClass)(["as-copy-icon", copied.value ? "i-as-check-circle" : "i-as-copy"]),
|
|
269
|
+
"aria-hidden": "true"
|
|
270
|
+
}, null, 2), (0, vue.createElementVNode)("span", _hoisted_4, (0, vue.toDisplayString)(copied.value ? __props.copiedLabel : __props.copyLabel), 1)], 10, _hoisted_3)])]),
|
|
271
|
+
_: 1
|
|
272
|
+
}, 16, ["error"]);
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
//#endregion
|
|
277
|
+
Object.defineProperty(exports, "as_copy_default", {
|
|
278
|
+
enumerable: true,
|
|
279
|
+
get: function() {
|
|
280
|
+
return as_copy_default;
|
|
281
|
+
}
|
|
282
|
+
});
|
package/dist/as-copy.cjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as vue from "vue";
|
|
2
|
+
import { TAsComponentProps } from "@atscript/vue-form";
|
|
3
|
+
|
|
4
|
+
//#region src/components/as-copy.vue.d.ts
|
|
5
|
+
type __VLS_Props = TAsComponentProps<string | undefined> & {
|
|
6
|
+
copiedLabel?: string;
|
|
7
|
+
copyLabel?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
copiedLabel: string;
|
|
11
|
+
copyLabel: string;
|
|
12
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export = _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as vue from "vue";
|
|
2
|
+
import { TAsComponentProps } from "@atscript/vue-form";
|
|
3
|
+
|
|
4
|
+
//#region src/components/as-copy.vue.d.ts
|
|
5
|
+
type __VLS_Props = TAsComponentProps<string | undefined> & {
|
|
6
|
+
copiedLabel?: string;
|
|
7
|
+
copyLabel?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
copiedLabel: string;
|
|
11
|
+
copyLabel: string;
|
|
12
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { _default as default };
|
package/dist/as-copy.mjs
ADDED
|
@@ -2,16 +2,9 @@ let vue = require("vue");
|
|
|
2
2
|
let _atscript_vue_form = require("@atscript/vue-form");
|
|
3
3
|
let _atscript_ui_fns = require("@atscript/ui-fns");
|
|
4
4
|
//#region src/components/as-password-rules.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
const _hoisted_1 = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
const _hoisted_2 = {
|
|
10
|
-
key: 1,
|
|
11
|
-
class: "as-password-rules-list"
|
|
12
|
-
};
|
|
13
|
-
const _hoisted_3 = ["data-passed"];
|
|
14
|
-
const _hoisted_4 = { class: "as-password-rules-text" };
|
|
5
|
+
const _hoisted_1 = { class: "as-password-rules-list" };
|
|
6
|
+
const _hoisted_2 = ["data-passed"];
|
|
7
|
+
const _hoisted_3 = { class: "as-password-rules-text" };
|
|
15
8
|
//#endregion
|
|
16
9
|
//#region src/components/as-password-rules.vue
|
|
17
10
|
var as_password_rules_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -243,11 +236,11 @@ var as_password_rules_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
243
236
|
return out;
|
|
244
237
|
});
|
|
245
238
|
return (_ctx, _cache) => {
|
|
246
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(_atscript_vue_form.AsFieldShell), (0, vue.mergeProps)(_ctx.$props, {
|
|
239
|
+
return evaluated.value.length > 0 ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(_atscript_vue_form.AsFieldShell), (0, vue.mergeProps)({ key: 0 }, _ctx.$props, {
|
|
247
240
|
chromeless: true,
|
|
248
241
|
"field-class": "as-password-rules"
|
|
249
242
|
}), {
|
|
250
|
-
default: (0, vue.withCtx)(() => [
|
|
243
|
+
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("div", _hoisted_1, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(evaluated.value, (policy, index) => {
|
|
251
244
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
252
245
|
key: index,
|
|
253
246
|
class: "as-password-rules-row",
|
|
@@ -255,10 +248,10 @@ var as_password_rules_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
255
248
|
}, [_cache[0] || (_cache[0] = (0, vue.createElementVNode)("span", {
|
|
256
249
|
class: "as-password-rules-icon",
|
|
257
250
|
"aria-hidden": "true"
|
|
258
|
-
}, null, -1)), (0, vue.createElementVNode)("span",
|
|
259
|
-
}), 128))])
|
|
251
|
+
}, null, -1)), (0, vue.createElementVNode)("span", _hoisted_3, (0, vue.toDisplayString)(policy.description), 1)], 8, _hoisted_2);
|
|
252
|
+
}), 128))])]),
|
|
260
253
|
_: 1
|
|
261
|
-
}, 16);
|
|
254
|
+
}, 16)) : (0, vue.createCommentVNode)("v-if", true);
|
|
262
255
|
};
|
|
263
256
|
}
|
|
264
257
|
});
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, defineComponent, mergeProps, openBlock, renderList, toDisplayString, unref, withCtx } from "vue";
|
|
1
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, openBlock, renderList, toDisplayString, unref, withCtx } from "vue";
|
|
2
2
|
import { AsFieldShell } from "@atscript/vue-form";
|
|
3
3
|
import { compileFieldFn } from "@atscript/ui-fns";
|
|
4
4
|
//#region src/components/as-password-rules.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
const _hoisted_1 = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
const _hoisted_2 = {
|
|
10
|
-
key: 1,
|
|
11
|
-
class: "as-password-rules-list"
|
|
12
|
-
};
|
|
13
|
-
const _hoisted_3 = ["data-passed"];
|
|
14
|
-
const _hoisted_4 = { class: "as-password-rules-text" };
|
|
5
|
+
const _hoisted_1 = { class: "as-password-rules-list" };
|
|
6
|
+
const _hoisted_2 = ["data-passed"];
|
|
7
|
+
const _hoisted_3 = { class: "as-password-rules-text" };
|
|
15
8
|
//#endregion
|
|
16
9
|
//#region src/components/as-password-rules.vue
|
|
17
10
|
var as_password_rules_default = /* @__PURE__ */ defineComponent({
|
|
@@ -243,11 +236,11 @@ var as_password_rules_default = /* @__PURE__ */ defineComponent({
|
|
|
243
236
|
return out;
|
|
244
237
|
});
|
|
245
238
|
return (_ctx, _cache) => {
|
|
246
|
-
return openBlock(), createBlock(unref(AsFieldShell), mergeProps(_ctx.$props, {
|
|
239
|
+
return evaluated.value.length > 0 ? (openBlock(), createBlock(unref(AsFieldShell), mergeProps({ key: 0 }, _ctx.$props, {
|
|
247
240
|
chromeless: true,
|
|
248
241
|
"field-class": "as-password-rules"
|
|
249
242
|
}), {
|
|
250
|
-
default: withCtx(() => [
|
|
243
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(evaluated.value, (policy, index) => {
|
|
251
244
|
return openBlock(), createElementBlock("div", {
|
|
252
245
|
key: index,
|
|
253
246
|
class: "as-password-rules-row",
|
|
@@ -255,10 +248,10 @@ var as_password_rules_default = /* @__PURE__ */ defineComponent({
|
|
|
255
248
|
}, [_cache[0] || (_cache[0] = createElementVNode("span", {
|
|
256
249
|
class: "as-password-rules-icon",
|
|
257
250
|
"aria-hidden": "true"
|
|
258
|
-
}, null, -1)), createElementVNode("span",
|
|
259
|
-
}), 128))])
|
|
251
|
+
}, null, -1)), createElementVNode("span", _hoisted_3, toDisplayString(policy.description), 1)], 8, _hoisted_2);
|
|
252
|
+
}), 128))])]),
|
|
260
253
|
_: 1
|
|
261
|
-
}, 16);
|
|
254
|
+
}, 16)) : createCommentVNode("v-if", true);
|
|
262
255
|
};
|
|
263
256
|
}
|
|
264
257
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_password_rules = require("./as-password-rules-
|
|
1
|
+
const require_as_password_rules = require("./as-password-rules-DBoLmROR.cjs");
|
|
2
2
|
module.exports = require_as_password_rules.as_password_rules_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_password_rules_default } from "./as-password-rules-
|
|
1
|
+
import { t as as_password_rules_default } from "./as-password-rules-DuKe47j8.mjs";
|
|
2
2
|
export { as_password_rules_default as default };
|