@@ -2378,264 +2378,11 @@ span {
2378
2378
` ;
2379
2379
2380
2380
exports [` basic simple: js 1` ] = `
2381
- "import { setDevtoolsHook , initCustomFormatter , computed , ref , watchEffect , openBlock , createBlock , resolveDynamicComponent , withCtx , toDisplayString , createCommentVNode , renderSlot , createVNode , withDirectives , withModifiers , vModelCheckbox , reactive , onMounted , resolveComponent , createTextVNode , createApp } from '@vue/runtime-dom';
2382
- import { getGlobalThis } from '@vue/shared';
2383
-
2384
- function initDev() {
2385
- const target = getGlobalThis ();
2386
- target .__VUE__ = true ;
2387
- setDevtoolsHook (target .__VUE_DEVTOOLS_GLOBAL_HOOK__ );
2388
- {
2389
- console.info(\`You are running a development build of Vue .\\\\n \` +
2390
- \`Make sure to use the production build (*.prod .js ) when deploying for production.\`);
2391
- initCustomFormatter();
2392
- }
2393
- }
2394
-
2395
- // This entry exports the runtime only, and is built as
2396
- (process.env.NODE_ENV !== 'production') && initDev();
2381
+ "import { reactive , computed , onMounted , watchEffect , resolveComponent , openBlock , createBlock , createVNode , withCtx , createTextVNode , toDisplayString , createApp } from 'vue';
2382
+ import { VField , VButton , VSwitch } from '@pathscale/vue3-ui';
2397
2383
2398
2384
var script = {
2399
- name : ' VButton' ,
2400
- props : {
2401
- type: {
2402
- type: String ,
2403
- default: ' button'
2404
- },
2405
- size: String ,
2406
- label: String ,
2407
- rounded: Boolean ,
2408
- loading: Boolean ,
2409
- outlined: Boolean ,
2410
- expanded: Boolean ,
2411
- inverted: Boolean ,
2412
- focused: Boolean ,
2413
- active: Boolean ,
2414
- hovered: Boolean ,
2415
- selected: Boolean ,
2416
- nativeType: {
2417
- type: String ,
2418
- default: ' button'
2419
- },
2420
- tag: {
2421
- type: String ,
2422
- default: ' button'
2423
- },
2424
- light: Boolean
2425
- },
2426
- setup (props , { attrs }) {
2427
- const computedTag = computed(() => attrs.disabled ? 'button' : props.tag);
2428
- return { computedTag }
2429
- }
2430
- };
2431
-
2432
- const _hoisted_1 = { key : 0 } ;
2433
-
2434
- function render(_ctx, _cache, $props, $setup, $data, $options) {
2435
- return (openBlock (), createBlock (resolveDynamicComponent ($setup .computedTag ), {
2436
- class: [\\" button\\ " , [
2437
- $props .size ,
2438
- $props .type ,
2439
- {
2440
- ' is-rounded' : $props .rounded ,
2441
- ' is-loading' : $props .loading ,
2442
- ' is-outlined' : $props .outlined ,
2443
- ' is-fullwidth' : $props .expanded ,
2444
- ' is-inverted' : $props .inverted ,
2445
- ' is-focused' : $props .focused ,
2446
- ' is-active' : $props .active ,
2447
- ' is-hovered' : $props .hovered ,
2448
- ' is-selected' : $props .selected ,
2449
- ' is-light' : $props .light ,
2450
- }
2451
- ]],
2452
- type: $props .nativeType
2453
- }, {
2454
- default: withCtx (() => [
2455
- ($props .label )
2456
- ? (openBlock (), createBlock (\\" span\\ " , _hoisted_1 , toDisplayString ($props .label ), 1 ))
2457
- : createCommentVNode (\\" \\ " , true ),
2458
- renderSlot (_ctx .$slots , \\" default\\ " )
2459
- ]),
2460
- _: 3
2461
- }, 8 , [\\" type\\ " , \\" class\\ " ]))
2462
- }
2463
-
2464
- script.render = render;
2465
-
2466
- var script$3 = {
2467
- name : ' VField' ,
2468
- props : {
2469
- type: String ,
2470
- label: String ,
2471
- labelFor: String ,
2472
- message: String ,
2473
- grouped: Boolean ,
2474
- groupMultiline: Boolean ,
2475
- position: String ,
2476
- expanded: Boolean ,
2477
- horizontal: Boolean ,
2478
- addons: Boolean ,
2479
- size: String ,
2480
- },
2481
- setup (props ) {
2482
- const hasHorizontalLabel = computed(() => props.horizontal && props.label);
2483
- return { hasHorizontalLabel }
2484
- }
2485
- };
2486
-
2487
- const _hoisted_1$2 = {
2488
- key : 2 ,
2489
- class : \\"field -body \\"
2490
- };
2491
-
2492
- function render$3(_ctx , _cache , $props , $setup , $data , $options ) {
2493
- return (openBlock (), createBlock (\\" div\\ " , {
2494
- class: [\\" field\\ " , [
2495
- $props .position , {
2496
- ' is-expanded' : $props .expanded ,
2497
- ' is-horizontal' : $props .horizontal ,
2498
- ' is-grouped' : $props .grouped ,
2499
- ' is-grouped-multiline' : $props .groupMultiline ,
2500
- ' has-addons' : $props .addons
2501
- }]]
2502
- }, [
2503
- ($setup .hasHorizontalLabel )
2504
- ? (openBlock (), createBlock (\\" div\\ " , {
2505
- key: 0 ,
2506
- class: [\\" field-label\\ " , $props .size ]
2507
- }, [
2508
- createVNode (\\" label\\ " , {
2509
- class: \\" label\\ " ,
2510
- for: $props .labelFor
2511
- }, toDisplayString ($props .label ), 9 , [\\" for\\ " ])
2512
- ], 2 ))
2513
- : ($props .label )
2514
- ? (openBlock (), createBlock (\\" label\\ " , {
2515
- key: 1 ,
2516
- class: \\" label\\ " ,
2517
- for: $props .labelFor
2518
- }, toDisplayString ($props .label ), 9 , [\\" for\\ " ]))
2519
- : createCommentVNode (\\" \\ " , true ),
2520
- ($props .horizontal )
2521
- ? (openBlock (), createBlock (\\" div\\ " , _hoisted_1$2 , [
2522
- createVNode (\\" div\\ " , {
2523
- class: [\\" field\\ " , {' is-grouped' : $props .grouped }]
2524
- }, [
2525
- renderSlot (_ctx .$slots , \\" default\\ " )
2526
- ], 2 )
2527
- ]))
2528
- : renderSlot (_ctx .$slots , \\" default\\ " , { key: 3 }),
2529
- ($props .message )
2530
- ? (openBlock (), createBlock (\\" p\\ " , {
2531
- key: 4 ,
2532
- class: [\\" help\\ " , $props .type ]
2533
- }, toDisplayString ($props .message ), 3 ))
2534
- : createCommentVNode (\\" \\ " , true )
2535
- ], 2 ))
2536
- }
2537
-
2538
- script$3 .render = render$3 ;
2539
-
2540
- function checkBenchieSupport() {
2541
- const isProduction = process .env .NODE_ENV === ' production' ;
2542
- if (! isProduction ) return false
2543
- return (
2544
- typeof t !== ' undefined' &&
2545
- typeof $__CDN !== ' undefined' &&
2546
- typeof t === ' function' &&
2547
- typeof $__CDN === ' string'
2548
- )
2549
- }
2550
-
2551
- const hasBenchieSupport$1 = checkBenchieSupport ();
2552
-
2553
- var script$c = {
2554
- name: ' VSwitch' ,
2555
- props: {
2556
- modelValue: {
2557
- type: [String , Number , Boolean , Function , Object , Array , Date ],
2558
- },
2559
- nativeValue: {
2560
- type: [String , Number , Boolean , Function , Object , Array , Date ],
2561
- },
2562
- disabled: {
2563
- type: Boolean ,
2564
- default: null
2565
- },
2566
- type: String ,
2567
- passiveType: String ,
2568
- name: String ,
2569
- required: Boolean ,
2570
- size: String ,
2571
- trueValue: {
2572
- type: [String , Number , Boolean , Function , Object , Array , Date ],
2573
- default: true
2574
- },
2575
- falseValue: {
2576
- type: [String , Number , Boolean , Function , Object , Array , Date ],
2577
- default: false
2578
- },
2579
- rounded: {
2580
- type: Boolean ,
2581
- default: true
2582
- },
2583
- outlined: Boolean
2584
- },
2585
- emits: [' update:modelValue' ],
2586
- setup(props , { emit }) {
2587
- const value = ref (props .modelValue );
2588
- const passiveClass = computed (() => props .passiveType && \` \$ { props .passiveType } -passive\` );
2589
- watchEffect(() => {
2590
- value .value = props .modelValue ;
2591
- } );
2592
- watchEffect(() => {
2593
- emit (' update:modelValue' , value .value );
2594
- } );
2595
- return { value , passiveClass }
2596
- }
2597
- };
2598
-
2599
- const _hoisted_1$a = { class : \\"control -label \\" };
2600
-
2601
- function render$c(_ctx , _cache , $props , $setup , $data , $options ) {
2602
- return (openBlock (), createBlock (\\" label\\ " , {
2603
- class: [\\" switch\\ " , [
2604
- $props .size ,
2605
- {
2606
- ' is-disabled' : $props .disabled ,
2607
- ' is-rounded' : $props .rounded ,
2608
- ' is-outlined' : $props .outlined ,
2609
- }
2610
- ]],
2611
- disabled: $props .disabled
2612
- }, [
2613
- withDirectives (createVNode (\\" input\\ " , {
2614
- \\" onUpdate:modelValue\\ " : _cache [1 ] || (_cache [1 ] = $event => ($setup .value = $event )),
2615
- type: \\" checkbox\\ " ,
2616
- onClick: _cache [2 ] || (_cache [2 ] = withModifiers (() => {}, [\\" stop\\ " ])),
2617
- disabled: $props .disabled ,
2618
- name: $props .name ,
2619
- required: $props .required ,
2620
- value: $props .nativeValue ,
2621
- \\" true-value\\ " : $props .trueValue ,
2622
- \\" false-value\\ " : $props .falseValue
2623
- }, null , 8 , [\\" disabled\\ " , \\" name\\ " , \\" required\\ " , \\" value\\ " , \\" true-value\\ " , \\" false-value\\ " ]), [
2624
- [vModelCheckbox , $setup .value ]
2625
- ]),
2626
- createVNode (\\" span\\ " , {
2627
- class: [\\" check\\ " , [$setup .passiveClass , $props .type ]]
2628
- }, null , 2 ),
2629
- createVNode (\\" span\\ " , _hoisted_1$a , [
2630
- renderSlot (_ctx .$slots , \\" default\\ " )
2631
- ])
2632
- ], 10 , [\\" disabled\\ " ]))
2633
- }
2634
-
2635
- script$c .render = render$c ;
2636
-
2637
- var script$1 = {
2638
- components: { VField: script$3 , VButton: script , VSwitch: script$c },
2385
+ components : { VField , VButton , VSwitch },
2639
2386
emits : [\\" login\\ " ],
2640
2387
setup (props , { emit }) {
2641
2388
const state = reactive({ email : \\"\\", password : \\"\\", remember : false });
@@ -2660,10 +2407,10 @@ var script$1 = {
2660
2407
} ,
2661
2408
};
2662
2409
2663
- const _hoisted_1$1 = /* #__PURE__*/ createTextVNode (\\" Remember me \\ " );
2410
+ const _hoisted_1 = /*#__PURE__*/createTextVNode(\\ " Remember me \\ ");
2664
2411
const _hoisted_2 = /*#__PURE__*/createTextVNode(\\ "Login\\ ");
2665
2412
2666
- function render$1 (_ctx , _cache , $props , $setup , $data , $options ) {
2413
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
2667
2414
const _component_VSwitch = resolveComponent (\\" VSwitch\\ " );
2668
2415
const _component_v_field = resolveComponent (\\" v-field\\ " );
2669
2416
const _component_VButton = resolveComponent (\\" VButton\\ " );
@@ -2679,12 +2426,12 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
2679
2426
\\" onUpdate:modelValue\\ " : _cache [1 ] || (_cache [1 ] = $event => ($setup .state .remember = $event ))
2680
2427
}, {
2681
2428
default: withCtx (() => [
2682
- _hoisted_1$1
2429
+ _hoisted_1
2683
2430
]),
2684
- _: 1
2431
+ _: 1 /* STABLE */
2685
2432
}, 8 /* PROPS */ , [\\" modelValue\\ " ])
2686
2433
]),
2687
- _: 1
2434
+ _: 1 /* STABLE */
2688
2435
}),
2689
2436
createVNode (_component_VField , null , {
2690
2437
default: withCtx (() => [
@@ -2699,38 +2446,38 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
2699
2446
default: withCtx (() => [
2700
2447
_hoisted_2
2701
2448
]),
2702
- _: 1
2449
+ _: 1 /* STABLE */
2703
2450
}, 8 /* PROPS */ , [\\" onClick\\ " , \\" disabled\\ " ])
2704
2451
]),
2705
- _: 1
2452
+ _: 1 /* STABLE */
2706
2453
})
2707
2454
]))
2708
2455
}
2709
2456
2710
- script$1 .render = render$1 ;
2711
- script$1 .__file = \\" __tests__/fixtures/simple/Dummy.vue\\ " ;
2457
+ script.render = render;
2458
+ script.__file = \\ "__tests__/fixtures/simple/Dummy.vue\\ ";
2712
2459
2713
- var script$2 = {
2714
- components: { Dummy: script$1 },
2460
+ var script$1 = {
2461
+ components : { Dummy: script },
2715
2462
props : { name: { type: String , default: \\" John\\ " } },
2716
2463
} ;
2717
2464
2718
- const _hoisted_1$3 = /* #__PURE__*/ createTextVNode (\\" Hello \\ " );
2465
+ const _hoisted_1$1 = /*#__PURE__*/createTextVNode(\\ " Hello \\ ");
2719
2466
const _hoisted_2$1 = { class : \\"name \\" };
2720
2467
2721
- function render$2 (_ctx , _cache , $props , $setup , $data , $options ) {
2468
+ function render$1 (_ctx , _cache , $props , $setup , $data , $options ) {
2722
2469
const _component_Dummy = resolveComponent (\\" Dummy\\ " );
2723
2470
2724
2471
return (openBlock (), createBlock (\\" h1\\ " , null , [
2725
- _hoisted_1$3 ,
2472
+ _hoisted_1$1 ,
2726
2473
createVNode (\\" span\\ " , _hoisted_2$1 , toDisplayString ($props .name ), 1 /* TEXT */ ),
2727
2474
createVNode (_component_Dummy )
2728
2475
]))
2729
2476
}
2730
2477
2731
- script$2 .render = render$2 ;
2732
- script$2 .__file = \\" __tests__/fixtures/simple/Test.vue\\ " ;
2478
+ script$1 .render = render$1 ;
2479
+ script$1 .__file = \\" __tests__/fixtures/simple/Test.vue\\ " ;
2733
2480
2734
- createApp (script$2 ).mount (document .body );
2481
+ createApp (script$1 ).mount (document .body );
2735
2482
"
2736
2483
`;
0 commit comments