@nsshunt/stsvueutils 1.0.101 → 1.0.102
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/stsvueutils.mjs +1 -227
- package/dist/stsvueutils.mjs.map +1 -1
- package/dist/stsvueutils.umd.js +0 -226
- package/dist/stsvueutils.umd.js.map +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +0 -2
- package/types/index.d.ts.map +1 -1
- package/dist/style.css +0 -7
- package/types/components/UXTestForm.vue.d.ts +0 -30
- package/types/components/UXTestForm.vue.d.ts.map +0 -1
package/dist/stsvueutils.mjs
CHANGED
|
@@ -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
|
|
38
|
+
import { inject } 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,231 +2467,6 @@ _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
|
-
});
|
|
2695
2470
|
export {
|
|
2696
2471
|
ClientStorageFactory,
|
|
2697
2472
|
ClientStorageType,
|
|
@@ -2709,7 +2484,6 @@ export {
|
|
|
2709
2484
|
STSWorkerManagerPlugin,
|
|
2710
2485
|
STSWorkerManagerPluginKey,
|
|
2711
2486
|
TelemetryStore,
|
|
2712
|
-
_sfc_main as UXTestForm,
|
|
2713
2487
|
WorkerInstance,
|
|
2714
2488
|
eIWMessageCommands,
|
|
2715
2489
|
useSTSEmitterPlugin,
|