@nsshunt/stsvueutils 1.0.95 → 1.0.97

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.
Files changed (32) hide show
  1. package/{types → dist}/commonTypes.d.ts +1 -0
  2. package/dist/components/UXTestForm.vue.d.ts +30 -0
  3. package/dist/components/UXTestForm.vue.d.ts.map +1 -0
  4. package/{types → dist}/index.d.ts +2 -0
  5. package/{types → dist}/index.d.ts.map +1 -1
  6. package/{types → dist}/plugins/requestResponseHelper.d.ts +2 -1
  7. package/{types → dist}/plugins/storage.d.ts +2 -1
  8. package/{types → dist}/plugins/stsStorage.d.ts +2 -1
  9. package/{types → dist}/plugins/stsTestWorkerDefinitions.d.ts +3 -2
  10. package/{types → dist}/plugins/workerInstance.d.ts +2 -1
  11. package/{types → dist}/plugins/workerManager.d.ts +2 -1
  12. package/{types → dist}/stores/TelemetryStore.d.ts +3 -2
  13. package/dist/stsvueutils.mjs +227 -1
  14. package/dist/stsvueutils.mjs.map +1 -1
  15. package/dist/stsvueutils.umd.js +226 -0
  16. package/dist/stsvueutils.umd.js.map +1 -1
  17. package/dist/style.css +7 -0
  18. package/package.json +9 -5
  19. /package/{types → dist}/commonTypes.d.ts.map +0 -0
  20. /package/{types → dist}/index.test.d.ts +0 -0
  21. /package/{types → dist}/index.test.d.ts.map +0 -0
  22. /package/{types → dist}/plugins/emitter.d.ts +0 -0
  23. /package/{types → dist}/plugins/emitter.d.ts.map +0 -0
  24. /package/{types → dist}/plugins/requestResponseHelper.d.ts.map +0 -0
  25. /package/{types → dist}/plugins/storage.d.ts.map +0 -0
  26. /package/{types → dist}/plugins/stsPluginKeys.d.ts +0 -0
  27. /package/{types → dist}/plugins/stsPluginKeys.d.ts.map +0 -0
  28. /package/{types → dist}/plugins/stsStorage.d.ts.map +0 -0
  29. /package/{types → dist}/plugins/stsTestWorkerDefinitions.d.ts.map +0 -0
  30. /package/{types → dist}/plugins/workerInstance.d.ts.map +0 -0
  31. /package/{types → dist}/plugins/workerManager.d.ts.map +0 -0
  32. /package/{types → dist}/stores/TelemetryStore.d.ts.map +0 -0
@@ -1,4 +1,5 @@
1
1
  import { IContextBase } from '@nsshunt/stsobservability';
2
+
2
3
  export interface IAsyncRunnerContext extends IContextBase {
3
4
  id: string;
4
5
  hostName: string;
@@ -0,0 +1,30 @@
1
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ showFormValues?: boolean | undefined;
3
+ }>, {
4
+ showFormValues: boolean;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
+ showFormValues?: boolean | undefined;
7
+ }>, {
8
+ showFormValues: boolean;
9
+ }>>>, {
10
+ showFormValues: boolean;
11
+ }, {}>;
12
+ export default _default;
13
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
+ type __VLS_TypePropsToRuntimeProps<T> = {
15
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
16
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
+ } : {
18
+ type: import('vue').PropType<T[K]>;
19
+ required: true;
20
+ };
21
+ };
22
+ type __VLS_WithDefaults<P, D> = {
23
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
24
+ default: D[K];
25
+ }> : P[K];
26
+ };
27
+ type __VLS_Prettify<T> = {
28
+ [K in keyof T]: T[K];
29
+ } & {};
30
+ //# sourceMappingURL=UXTestForm.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UXTestForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/UXTestForm.vue"],"names":[],"mappings":"AAuHA;;;;;;;;;;oBA+bqB,OAAO;;AAN5B,wBAQG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { default as UXTestForm } from './components/UXTestForm.vue';
1
2
  export * from './plugins/stsPluginKeys';
2
3
  export * from './plugins/emitter';
3
4
  export * from './plugins/storage';
@@ -8,4 +9,5 @@ export * from './plugins/stsTestWorkerDefinitions';
8
9
  export * from './plugins/workerInstance';
9
10
  export * from './stores/TelemetryStore';
10
11
  export * from './commonTypes';
12
+ export { UXTestForm };
11
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AAEvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AAEpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,oCAAoC,CAAA;AAClD,cAAc,0BAA0B,CAAA;AAExC,cAAc,yBAAyB,CAAA;AAEvC,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AAEvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AAEpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,oCAAoC,CAAA;AAClD,cAAc,0BAA0B,CAAA;AAExC,cAAc,yBAAyB,CAAA;AAEvC,cAAc,eAAe,CAAA;AAE7B,OAAO,UAAU,MAAM,6BAA6B,CAAA;AAEpD,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1,4 +1,5 @@
1
- import type { IIWMessagePayload } from './../commonTypes';
1
+ import { IIWMessagePayload } from './../commonTypes';
2
+
2
3
  export declare class RequestResponseHelper {
3
4
  #private;
4
5
  constructor(port: MessagePort);
@@ -1,4 +1,5 @@
1
- import { ClientStorageType, type IStsStorage } from './stsStorage';
1
+ import { ClientStorageType, IStsStorage } from './stsStorage';
2
+
2
3
  export interface ISTSStoragePluginOptions {
3
4
  clientStorageType: ClientStorageType;
4
5
  }
@@ -1,4 +1,5 @@
1
- import type { JSONObject } from "@nsshunt/stsutils";
1
+ import { JSONObject } from '@nsshunt/stsutils';
2
+
2
3
  export interface IStsStorage<T> {
3
4
  get(key: string): T | null;
4
5
  set(key: string, value: T, options?: JSONObject): void;
@@ -1,5 +1,6 @@
1
- import type { PublishInstrumentController } from '@nsshunt/stsobservability';
2
- import type { IIWMessagePayloadContentBase, IIWMessagePayload, IAsyncRunnerContext } from './../commonTypes';
1
+ import { IIWMessagePayloadContentBase, IIWMessagePayload, IAsyncRunnerContext } from './../commonTypes';
2
+ import { PublishInstrumentController } from '@nsshunt/stsobservability';
3
+
3
4
  export interface ISTSAgentWorkerMessagePort extends IIWMessagePayloadContentBase {
4
5
  port: MessagePort;
5
6
  options: IWorkerOptions;
@@ -1,5 +1,6 @@
1
- import type { IRunner } from './stsTestWorkerDefinitions';
2
1
  import { RequestResponseHelper } from './requestResponseHelper';
2
+ import { IRunner } from './stsTestWorkerDefinitions';
3
+
3
4
  export interface IWorkerInstanceOptions {
4
5
  }
5
6
  export declare abstract class WorkerInstance {
@@ -1,4 +1,5 @@
1
- import type { IWorkerEx, IRunnerEx, IRunnerOptions, IWorkerManagerOptions, IWorkerFactory } from './stsTestWorkerDefinitions';
1
+ import { IWorkerEx, IRunnerEx, IRunnerOptions, IWorkerManagerOptions, IWorkerFactory } from './stsTestWorkerDefinitions';
2
+
2
3
  export declare class STSWorkerManager {
3
4
  #private;
4
5
  constructor(app: any, options?: IWorkerManagerOptions);
@@ -1,5 +1,6 @@
1
- import type { IWorkerEx, IRunnerEx, ITelemetryStore } from './../plugins/stsTestWorkerDefinitions';
2
- export declare const TelemetryStore: import("pinia").StoreDefinition<"__sts__TelemetryStore", ITelemetryStore, {}, {
1
+ import { IWorkerEx, IRunnerEx, ITelemetryStore } from './../plugins/stsTestWorkerDefinitions';
2
+
3
+ export declare const TelemetryStore: import('pinia').StoreDefinition<"__sts__TelemetryStore", ITelemetryStore, {}, {
3
4
  RemoveWorker(workerEx: IWorkerEx): void;
4
5
  RemoveRunner(workerEx: IWorkerEx, runnerEx: IRunnerEx): void;
5
6
  Update(workerEx: IWorkerEx, runnerEx: IRunnerEx): void;
@@ -35,7 +35,7 @@ var __privateMethod = (obj, member, method) => {
35
35
  return method;
36
36
  };
37
37
  var _store, _storage, _workersEx, _runner, _workerId, _options, _STSInstrumentController, _app, _CreateRunnerCopy, CreateRunnerCopy_fn, _SetRunnerIntoWorker, _ProcessTelemetry, _CreateAsyncRunner, _PostMessageToWorker, _TerminateWorker, _StopRunner, _StopWorker, _requestResponseMessages, _requestResponseMessageTimeout, _port, _SetupListener, _collectorCollectorPort, _requestResponseHelper, _runners, _options2, _SetMessagePort, _AddAsyncRunner, _StopRunners;
38
- import { inject } from "vue";
38
+ import { inject, defineComponent, onMounted, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from "vue";
39
39
  import debugModule from "debug";
40
40
  import { STSInstrumentControllerPluginKey, GetSTSInstrumentController, Gauge, GetSTSInstrumentControllerPluginKey } from "@nsshunt/stsobservability";
41
41
  import { ModelDelimeter, Sleep } from "@nsshunt/stsutils";
@@ -2467,6 +2467,231 @@ _options2 = new WeakMap();
2467
2467
  _SetMessagePort = new WeakMap();
2468
2468
  _AddAsyncRunner = new WeakMap();
2469
2469
  _StopRunners = new WeakMap();
2470
+ const _hoisted_1 = /* @__PURE__ */ createElementVNode("div", null, " UXTestForm ", -1);
2471
+ const _hoisted_2 = { class: "text-wrap" };
2472
+ const _hoisted_3 = { class: "ml-0 text-caption" };
2473
+ const _sfc_main = /* @__PURE__ */ defineComponent({
2474
+ __name: "UXTestForm",
2475
+ props: {
2476
+ showFormValues: { type: Boolean, default: true }
2477
+ },
2478
+ setup(__props) {
2479
+ onMounted(() => {
2480
+ console.log(chalk$1.green("onMounted"));
2481
+ });
2482
+ const formData = ref([
2483
+ {
2484
+ elementType: "textField",
2485
+ model: "My test Profile",
2486
+ label: "Profile Name",
2487
+ hint: "Profile name. Used as output file name."
2488
+ },
2489
+ {
2490
+ elementType: "radio",
2491
+ model: "so2",
2492
+ radioGroup: [
2493
+ {
2494
+ key: "o1",
2495
+ label: "Option One",
2496
+ value: "so1"
2497
+ },
2498
+ {
2499
+ key: "o2",
2500
+ label: "Option Two",
2501
+ value: "so2"
2502
+ }
2503
+ ]
2504
+ },
2505
+ {
2506
+ elementType: "slider",
2507
+ model: 5,
2508
+ description: "Some description for the slider one."
2509
+ },
2510
+ {
2511
+ elementType: "slider",
2512
+ model: 2,
2513
+ description: "Some description for the slider two."
2514
+ },
2515
+ {
2516
+ elementType: "checkbox",
2517
+ model: true,
2518
+ description: "Some description for checkbox 1"
2519
+ },
2520
+ {
2521
+ elementType: "divider"
2522
+ },
2523
+ {
2524
+ elementType: "checkbox",
2525
+ model: false,
2526
+ description: "Some description for checkbox 2"
2527
+ }
2528
+ ]);
2529
+ return (_ctx, _cache) => {
2530
+ const _component_v_divider = resolveComponent("v-divider");
2531
+ const _component_v_row = resolveComponent("v-row");
2532
+ const _component_v_col = resolveComponent("v-col");
2533
+ const _component_v_radio = resolveComponent("v-radio");
2534
+ const _component_v_radio_group = resolveComponent("v-radio-group");
2535
+ const _component_v_text_field = resolveComponent("v-text-field");
2536
+ const _component_v_checkbox = resolveComponent("v-checkbox");
2537
+ const _component_v_slider = resolveComponent("v-slider");
2538
+ const _component_v_container = resolveComponent("v-container");
2539
+ return openBlock(), createBlock(_component_v_container, { class: "yellowgreen" }, {
2540
+ default: withCtx(() => [
2541
+ createVNode(_component_v_row, null, {
2542
+ default: withCtx(() => [
2543
+ _hoisted_1,
2544
+ createVNode(_component_v_divider)
2545
+ ]),
2546
+ _: 1
2547
+ }),
2548
+ _ctx.showFormValues ? (openBlock(), createBlock(_component_v_row, { key: 0 }, {
2549
+ default: withCtx(() => [
2550
+ createVNode(_component_v_col, { cols: "12" }, {
2551
+ default: withCtx(() => [
2552
+ (openBlock(true), createElementBlock(Fragment, null, renderList(formData.value, (formDataElement, index) => {
2553
+ return openBlock(), createBlock(_component_v_row, {
2554
+ key: index,
2555
+ class: "ml-1 text-caption"
2556
+ }, {
2557
+ default: withCtx(() => [
2558
+ createTextVNode(toDisplayString(formDataElement.model), 1)
2559
+ ]),
2560
+ _: 2
2561
+ }, 1024);
2562
+ }), 128))
2563
+ ]),
2564
+ _: 1
2565
+ })
2566
+ ]),
2567
+ _: 1
2568
+ })) : createCommentVNode("", true),
2569
+ createVNode(_component_v_row, null, {
2570
+ default: withCtx(() => [
2571
+ createVNode(_component_v_divider)
2572
+ ]),
2573
+ _: 1
2574
+ }),
2575
+ (openBlock(true), createElementBlock(Fragment, null, renderList(formData.value, (formDataElement, index) => {
2576
+ return openBlock(), createBlock(_component_v_row, { key: index }, {
2577
+ default: withCtx(() => [
2578
+ formDataElement.elementType.localeCompare("divider") === 0 ? (openBlock(), createBlock(_component_v_col, {
2579
+ key: 0,
2580
+ cols: "12",
2581
+ class: "ma-0 pa-0"
2582
+ }, {
2583
+ default: withCtx(() => [
2584
+ createVNode(_component_v_divider)
2585
+ ]),
2586
+ _: 1
2587
+ })) : createCommentVNode("", true),
2588
+ formDataElement.elementType.localeCompare("radio") === 0 ? (openBlock(), createBlock(_component_v_col, {
2589
+ key: 1,
2590
+ cols: "12",
2591
+ class: "ma-0 pa-0"
2592
+ }, {
2593
+ default: withCtx(() => [
2594
+ createVNode(_component_v_radio_group, {
2595
+ modelValue: formDataElement.model,
2596
+ "onUpdate:modelValue": ($event) => formDataElement.model = $event,
2597
+ "hide-details": true
2598
+ }, {
2599
+ default: withCtx(() => [
2600
+ (openBlock(true), createElementBlock(Fragment, null, renderList(formDataElement.radioGroup, (n) => {
2601
+ return openBlock(), createBlock(_component_v_radio, {
2602
+ key: n.key,
2603
+ label: `${n.label}`,
2604
+ value: n.value
2605
+ }, null, 8, ["label", "value"]);
2606
+ }), 128))
2607
+ ]),
2608
+ _: 2
2609
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
2610
+ ]),
2611
+ _: 2
2612
+ }, 1024)) : createCommentVNode("", true),
2613
+ formDataElement.elementType.localeCompare("textField") === 0 ? (openBlock(), createBlock(_component_v_col, {
2614
+ key: 2,
2615
+ cols: "12",
2616
+ class: "ma-0 pa-0"
2617
+ }, {
2618
+ default: withCtx(() => [
2619
+ createVNode(_component_v_text_field, {
2620
+ modelValue: formDataElement.model,
2621
+ "onUpdate:modelValue": ($event) => formDataElement.model = $event,
2622
+ label: formDataElement.label,
2623
+ required: "",
2624
+ hint: formDataElement.hint,
2625
+ "persistent-hint": ""
2626
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "hint"])
2627
+ ]),
2628
+ _: 2
2629
+ }, 1024)) : createCommentVNode("", true),
2630
+ formDataElement.elementType.localeCompare("checkbox") === 0 ? (openBlock(), createBlock(_component_v_col, {
2631
+ key: 3,
2632
+ cols: "12",
2633
+ class: "ma-0 pa-0"
2634
+ }, {
2635
+ default: withCtx(() => [
2636
+ createVNode(_component_v_checkbox, {
2637
+ modelValue: formDataElement.model,
2638
+ "onUpdate:modelValue": ($event) => formDataElement.model = $event,
2639
+ "hide-details": true
2640
+ }, {
2641
+ label: withCtx(() => [
2642
+ createElementVNode("div", _hoisted_2, toDisplayString(formDataElement.description), 1)
2643
+ ]),
2644
+ _: 2
2645
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
2646
+ ]),
2647
+ _: 2
2648
+ }, 1024)) : createCommentVNode("", true),
2649
+ formDataElement.elementType.localeCompare("slider") === 0 ? (openBlock(), createBlock(_component_v_col, {
2650
+ key: 4,
2651
+ cols: "12",
2652
+ class: "mx-3",
2653
+ style: { "padding": "0 10px 0 0" }
2654
+ }, {
2655
+ default: withCtx(() => [
2656
+ createElementVNode("div", _hoisted_3, toDisplayString(formDataElement.description), 1),
2657
+ createVNode(_component_v_slider, {
2658
+ modelValue: formDataElement.model,
2659
+ "onUpdate:modelValue": ($event) => formDataElement.model = $event,
2660
+ class: "align-center",
2661
+ max: "5",
2662
+ min: "1",
2663
+ step: "1",
2664
+ "show-ticks": "always",
2665
+ "tick-size": "6",
2666
+ "hide-details": ""
2667
+ }, {
2668
+ append: withCtx(() => [
2669
+ createVNode(_component_v_text_field, {
2670
+ modelValue: formDataElement.model,
2671
+ "onUpdate:modelValue": ($event) => formDataElement.model = $event,
2672
+ "hide-details": "",
2673
+ "single-line": "",
2674
+ density: "compact",
2675
+ type: "number",
2676
+ style: { "width": "110px" },
2677
+ variant: "outlined"
2678
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
2679
+ ]),
2680
+ _: 2
2681
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
2682
+ ]),
2683
+ _: 2
2684
+ }, 1024)) : createCommentVNode("", true)
2685
+ ]),
2686
+ _: 2
2687
+ }, 1024);
2688
+ }), 128))
2689
+ ]),
2690
+ _: 1
2691
+ });
2692
+ };
2693
+ }
2694
+ });
2470
2695
  export {
2471
2696
  ClientStorageFactory,
2472
2697
  ClientStorageType,
@@ -2484,6 +2709,7 @@ export {
2484
2709
  STSWorkerManagerPlugin,
2485
2710
  STSWorkerManagerPluginKey,
2486
2711
  TelemetryStore,
2712
+ _sfc_main as UXTestForm,
2487
2713
  WorkerInstance,
2488
2714
  eIWMessageCommands,
2489
2715
  useSTSEmitterPlugin,