@hkdigital/lib-sveltekit 0.1.66 → 0.1.67
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.
@@ -276,6 +276,11 @@ export default class AudioScene {
|
|
276
276
|
}
|
277
277
|
|
278
278
|
unmute() {
|
279
|
+
if( !this.muted )
|
280
|
+
{
|
281
|
+
return;
|
282
|
+
}
|
283
|
+
|
279
284
|
this.setTargetGain(this.#unmutedTargetGain);
|
280
285
|
}
|
281
286
|
|
@@ -284,7 +289,10 @@ export default class AudioScene {
|
|
284
289
|
{
|
285
290
|
if( !this.#targetGainNode )
|
286
291
|
{
|
287
|
-
|
292
|
+
const audioContext = this.#getAudioContext();
|
293
|
+
|
294
|
+
this.#targetGainNode = audioContext.createGain();
|
295
|
+
this.#targetGainNode.connect(audioContext.destination);
|
288
296
|
this.setTargetGain(this.#targetGain);
|
289
297
|
}
|
290
298
|
|
@@ -317,39 +325,4 @@ export default class AudioScene {
|
|
317
325
|
|
318
326
|
throw new Error(`Source [${label}] has not been defined`);
|
319
327
|
}
|
320
|
-
|
321
|
-
// connect
|
322
|
-
// play
|
323
|
-
|
324
|
-
// source.connect(audioContext.destination);
|
325
|
-
// source.loop = true;
|
326
|
-
// source.start();
|
327
|
-
|
328
|
-
// /**
|
329
|
-
// * Get the source identified by the specified label
|
330
|
-
// *
|
331
|
-
// * @param {string} label
|
332
|
-
// */
|
333
|
-
// async getBufferSourceNode(label) {
|
334
|
-
// // expect.notEmptyString( label );
|
335
|
-
|
336
|
-
// for (const source of this.#memorySources) {
|
337
|
-
// if (label === source.label) {
|
338
|
-
// if (!source.bufferSourceNode) {
|
339
|
-
// source.bufferSourceNode =
|
340
|
-
// await source.AudioLoader.transferToBufferSource(this.#audioContext);
|
341
|
-
// }
|
342
|
-
|
343
|
-
// return source.bufferSourceNode;
|
344
|
-
// }
|
345
|
-
// }
|
346
|
-
// }
|
347
|
-
|
348
|
-
// async connectSourceToDestination(label) {
|
349
|
-
// const source = await this.getBufferSourceNode(label);
|
350
|
-
|
351
|
-
// if (source) {
|
352
|
-
// source.connect(this.#audioContext.destination);
|
353
|
-
// }
|
354
|
-
// }
|
355
328
|
}
|
@@ -27,6 +27,7 @@
|
|
27
27
|
* legendBase?: string,
|
28
28
|
* legendClasses?: string,
|
29
29
|
* iconClasses?: string,
|
30
|
+
* initialValue?: string,
|
30
31
|
* value?: string,
|
31
32
|
* type?: 'text' | 'url' | 'email' | 'number',
|
32
33
|
* pattern?: string,
|
@@ -43,7 +44,7 @@
|
|
43
44
|
* } & { [attr: string]: any }}
|
44
45
|
*/
|
45
46
|
let {
|
46
|
-
initialValue,
|
47
|
+
initialValue = '',
|
47
48
|
value = $bindable(''),
|
48
49
|
|
49
50
|
isValid = $bindable(true),
|
@@ -91,7 +92,6 @@
|
|
91
92
|
|
92
93
|
let inputRef = $state();
|
93
94
|
let validationMessage = $state('');
|
94
|
-
// let initialValue = $state('');
|
95
95
|
|
96
96
|
$effect(() => {
|
97
97
|
if (!inputRef) return;
|
@@ -10,6 +10,7 @@ type TextInput = {
|
|
10
10
|
legendBase?: string;
|
11
11
|
legendClasses?: string;
|
12
12
|
iconClasses?: string;
|
13
|
+
initialValue?: string;
|
13
14
|
value?: string;
|
14
15
|
type?: "number" | "url" | "text" | "email";
|
15
16
|
pattern?: string;
|
@@ -36,6 +37,7 @@ declare const TextInput: import("svelte").Component<{
|
|
36
37
|
legendBase?: string;
|
37
38
|
legendClasses?: string;
|
38
39
|
iconClasses?: string;
|
40
|
+
initialValue?: string;
|
39
41
|
value?: string;
|
40
42
|
type?: "text" | "url" | "email" | "number";
|
41
43
|
pattern?: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hkdigital/lib-sveltekit",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.67",
|
4
4
|
"author": {
|
5
5
|
"name": "HKdigital",
|
6
6
|
"url": "https://hkdigital.nl"
|
@@ -74,6 +74,8 @@
|
|
74
74
|
"@sveltejs/package": "2.3.7",
|
75
75
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
76
76
|
"@tailwindcss/typography": "^0.5.16",
|
77
|
+
"@testing-library/svelte": "^5.2.7",
|
78
|
+
"@testing-library/user-event": "^14.6.1",
|
77
79
|
"@types/eslint": "^9.6.1",
|
78
80
|
"autoprefixer": "^10.4.20",
|
79
81
|
"eslint": "^9.21.0",
|