vueless 0.0.514 → 0.0.516

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 (36) hide show
  1. package/package.json +1 -1
  2. package/types.ts +8 -0
  3. package/ui.button-link/useAttrs.ts +2 -2
  4. package/ui.dropdown-badge/UDropdownBadge.vue +70 -167
  5. package/ui.dropdown-badge/storybook/Docs.mdx +2 -2
  6. package/ui.dropdown-badge/storybook/{stories.js → stories.ts} +16 -5
  7. package/ui.dropdown-badge/types.ts +93 -0
  8. package/ui.dropdown-badge/{useAttrs.js → useAttrs.ts} +13 -2
  9. package/ui.dropdown-button/UDropdownButton.vue +85 -203
  10. package/ui.dropdown-button/storybook/Docs.mdx +2 -2
  11. package/ui.dropdown-button/storybook/{stories.js → stories.ts} +25 -11
  12. package/ui.dropdown-button/types.ts +108 -0
  13. package/ui.dropdown-button/{useAttrs.js → useAttrs.ts} +14 -3
  14. package/ui.dropdown-link/UDropdownLink.vue +84 -194
  15. package/ui.dropdown-link/storybook/Docs.mdx +2 -2
  16. package/ui.dropdown-link/storybook/{stories.js → stories.ts} +20 -9
  17. package/ui.dropdown-link/types.ts +103 -0
  18. package/ui.dropdown-link/{useAttrs.js → useAttrs.ts} +14 -3
  19. package/ui.dropdown-list/UDropdownList.vue +112 -177
  20. package/ui.dropdown-list/storybook/Docs.mdx +2 -2
  21. package/ui.dropdown-list/storybook/{stories.js → stories.ts} +23 -7
  22. package/ui.dropdown-list/types.ts +52 -0
  23. package/ui.dropdown-list/{useAttrs.js → useAttrs.ts} +6 -3
  24. package/ui.dropdown-list/usePointer.ts +111 -0
  25. package/ui.text-money/UMoney.vue +1 -1
  26. package/ui.text-money/config.ts +12 -13
  27. package/web-types.json +117 -55
  28. package/ui.dropdown-list/usePointer.js +0 -86
  29. /package/ui.dropdown-badge/{config.js → config.ts} +0 -0
  30. /package/ui.dropdown-badge/{constants.js → constants.ts} +0 -0
  31. /package/ui.dropdown-button/{config.js → config.ts} +0 -0
  32. /package/ui.dropdown-button/{constants.js → constants.ts} +0 -0
  33. /package/ui.dropdown-link/{config.js → config.ts} +0 -0
  34. /package/ui.dropdown-link/{constants.js → constants.ts} +0 -0
  35. /package/ui.dropdown-list/{config.js → config.ts} +0 -0
  36. /package/ui.dropdown-list/{constants.js → constants.ts} +0 -0
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.514",
4
+ "version": "0.0.516",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",
@@ -3900,24 +3900,28 @@
3900
3900
  "attributes": [
3901
3901
  {
3902
3902
  "name": "label",
3903
+ "required": false,
3903
3904
  "description": "Badge label.",
3904
3905
  "value": {
3905
3906
  "kind": "expression",
3906
3907
  "type": "string"
3907
- },
3908
- "default": "\"\""
3908
+ }
3909
3909
  },
3910
3910
  {
3911
3911
  "name": "options",
3912
+ "required": false,
3912
3913
  "description": "Options list.",
3914
+ "enum": [
3915
+ "UnknownObject"
3916
+ ],
3913
3917
  "value": {
3914
3918
  "kind": "expression",
3915
- "type": "array"
3916
- },
3917
- "default": "[]"
3919
+ "type": "Array"
3920
+ }
3918
3921
  },
3919
3922
  {
3920
3923
  "name": "labelKey",
3924
+ "required": false,
3921
3925
  "description": "Label key in the item object of options.",
3922
3926
  "value": {
3923
3927
  "kind": "expression",
@@ -3927,6 +3931,7 @@
3927
3931
  },
3928
3932
  {
3929
3933
  "name": "variant",
3934
+ "required": false,
3930
3935
  "description": "Badge variant.",
3931
3936
  "enum": [
3932
3937
  "primary",
@@ -3935,12 +3940,13 @@
3935
3940
  ],
3936
3941
  "value": {
3937
3942
  "kind": "expression",
3938
- "type": "string"
3943
+ "type": "union"
3939
3944
  },
3940
3945
  "default": "primary"
3941
3946
  },
3942
3947
  {
3943
3948
  "name": "color",
3949
+ "required": false,
3944
3950
  "description": "Badge color.",
3945
3951
  "enum": [
3946
3952
  "brand",
@@ -3967,12 +3973,13 @@
3967
3973
  ],
3968
3974
  "value": {
3969
3975
  "kind": "expression",
3970
- "type": "string"
3976
+ "type": "union"
3971
3977
  },
3972
3978
  "default": "brand"
3973
3979
  },
3974
3980
  {
3975
3981
  "name": "size",
3982
+ "required": false,
3976
3983
  "description": "Badge size.",
3977
3984
  "enum": [
3978
3985
  "sm",
@@ -3981,12 +3988,13 @@
3981
3988
  ],
3982
3989
  "value": {
3983
3990
  "kind": "expression",
3984
- "type": "string"
3991
+ "type": "union"
3985
3992
  },
3986
3993
  "default": "md"
3987
3994
  },
3988
3995
  {
3989
3996
  "name": "round",
3997
+ "required": false,
3990
3998
  "description": "Set badge corners rounded.",
3991
3999
  "value": {
3992
4000
  "kind": "expression",
@@ -3996,6 +4004,7 @@
3996
4004
  },
3997
4005
  {
3998
4006
  "name": "noIcon",
4007
+ "required": false,
3999
4008
  "description": "Hide dropdown icon.",
4000
4009
  "value": {
4001
4010
  "kind": "expression",
@@ -4005,6 +4014,7 @@
4005
4014
  },
4006
4015
  {
4007
4016
  "name": "yPosition",
4017
+ "required": false,
4008
4018
  "description": "The position of dropdown list on the y-axis.",
4009
4019
  "enum": [
4010
4020
  "top",
@@ -4012,12 +4022,13 @@
4012
4022
  ],
4013
4023
  "value": {
4014
4024
  "kind": "expression",
4015
- "type": "string"
4025
+ "type": "union"
4016
4026
  },
4017
4027
  "default": "bottom"
4018
4028
  },
4019
4029
  {
4020
4030
  "name": "xPosition",
4031
+ "required": false,
4021
4032
  "description": "The position of dropdown list on the x-axis.",
4022
4033
  "enum": [
4023
4034
  "left",
@@ -4025,30 +4036,34 @@
4025
4036
  ],
4026
4037
  "value": {
4027
4038
  "kind": "expression",
4028
- "type": "string"
4039
+ "type": "union"
4029
4040
  },
4030
4041
  "default": "left"
4031
4042
  },
4032
4043
  {
4033
4044
  "name": "id",
4045
+ "required": false,
4034
4046
  "description": "Unique element id.",
4035
4047
  "value": {
4036
4048
  "kind": "expression",
4037
4049
  "type": "string"
4038
- },
4039
- "default": "\"\""
4050
+ }
4040
4051
  },
4041
4052
  {
4042
4053
  "name": "config",
4054
+ "required": false,
4043
4055
  "description": "Component config object.",
4056
+ "enum": [
4057
+ "TSTypeQuery"
4058
+ ],
4044
4059
  "value": {
4045
4060
  "kind": "expression",
4046
- "type": "object"
4047
- },
4048
- "default": "{}"
4061
+ "type": "Partial"
4062
+ }
4049
4063
  },
4050
4064
  {
4051
4065
  "name": "dataTest",
4066
+ "required": false,
4052
4067
  "description": "Data-test attribute for automated testing.",
4053
4068
  "value": {
4054
4069
  "kind": "expression",
@@ -4120,24 +4135,28 @@
4120
4135
  "attributes": [
4121
4136
  {
4122
4137
  "name": "label",
4138
+ "required": false,
4123
4139
  "description": "Button label.",
4124
4140
  "value": {
4125
4141
  "kind": "expression",
4126
4142
  "type": "string"
4127
- },
4128
- "default": "\"\""
4143
+ }
4129
4144
  },
4130
4145
  {
4131
4146
  "name": "options",
4147
+ "required": false,
4132
4148
  "description": "Options list.",
4149
+ "enum": [
4150
+ "UnknownObject"
4151
+ ],
4133
4152
  "value": {
4134
4153
  "kind": "expression",
4135
- "type": "array"
4136
- },
4137
- "default": "[]"
4154
+ "type": "Array"
4155
+ }
4138
4156
  },
4139
4157
  {
4140
4158
  "name": "labelKey",
4159
+ "required": false,
4141
4160
  "description": "Label key in the item object of options.",
4142
4161
  "value": {
4143
4162
  "kind": "expression",
@@ -4147,6 +4166,7 @@
4147
4166
  },
4148
4167
  {
4149
4168
  "name": "variant",
4169
+ "required": false,
4150
4170
  "description": "Button variant.",
4151
4171
  "enum": [
4152
4172
  "primary",
@@ -4155,12 +4175,13 @@
4155
4175
  ],
4156
4176
  "value": {
4157
4177
  "kind": "expression",
4158
- "type": "string"
4178
+ "type": "union"
4159
4179
  },
4160
4180
  "default": "primary"
4161
4181
  },
4162
4182
  {
4163
4183
  "name": "filled",
4184
+ "required": false,
4164
4185
  "description": "Fill the background for thirdary variant.",
4165
4186
  "value": {
4166
4187
  "kind": "expression",
@@ -4170,6 +4191,7 @@
4170
4191
  },
4171
4192
  {
4172
4193
  "name": "color",
4194
+ "required": false,
4173
4195
  "description": "Button color.",
4174
4196
  "enum": [
4175
4197
  "brand",
@@ -4196,12 +4218,13 @@
4196
4218
  ],
4197
4219
  "value": {
4198
4220
  "kind": "expression",
4199
- "type": "string"
4221
+ "type": "union"
4200
4222
  },
4201
4223
  "default": "brand"
4202
4224
  },
4203
4225
  {
4204
4226
  "name": "size",
4227
+ "required": false,
4205
4228
  "description": "Button size.",
4206
4229
  "enum": [
4207
4230
  "2xs",
@@ -4213,12 +4236,13 @@
4213
4236
  ],
4214
4237
  "value": {
4215
4238
  "kind": "expression",
4216
- "type": "string"
4239
+ "type": "union"
4217
4240
  },
4218
4241
  "default": "md"
4219
4242
  },
4220
4243
  {
4221
4244
  "name": "round",
4245
+ "required": false,
4222
4246
  "description": "Set button corners rounded.",
4223
4247
  "value": {
4224
4248
  "kind": "expression",
@@ -4228,6 +4252,7 @@
4228
4252
  },
4229
4253
  {
4230
4254
  "name": "square",
4255
+ "required": false,
4231
4256
  "description": "Set the same paddings for the button.",
4232
4257
  "value": {
4233
4258
  "kind": "expression",
@@ -4237,6 +4262,7 @@
4237
4262
  },
4238
4263
  {
4239
4264
  "name": "disabled",
4265
+ "required": false,
4240
4266
  "description": "Disable the link.",
4241
4267
  "value": {
4242
4268
  "kind": "expression",
@@ -4246,6 +4272,7 @@
4246
4272
  },
4247
4273
  {
4248
4274
  "name": "noIcon",
4275
+ "required": false,
4249
4276
  "description": "Hide dropdown icon.",
4250
4277
  "value": {
4251
4278
  "kind": "expression",
@@ -4255,6 +4282,7 @@
4255
4282
  },
4256
4283
  {
4257
4284
  "name": "yPosition",
4285
+ "required": false,
4258
4286
  "description": "The position of dropdown list on the y-axis.",
4259
4287
  "enum": [
4260
4288
  "top",
@@ -4262,12 +4290,13 @@
4262
4290
  ],
4263
4291
  "value": {
4264
4292
  "kind": "expression",
4265
- "type": "string"
4293
+ "type": "union"
4266
4294
  },
4267
4295
  "default": "bottom"
4268
4296
  },
4269
4297
  {
4270
4298
  "name": "xPosition",
4299
+ "required": false,
4271
4300
  "description": "The position of dropdown list on the x-axis.",
4272
4301
  "enum": [
4273
4302
  "left",
@@ -4275,30 +4304,34 @@
4275
4304
  ],
4276
4305
  "value": {
4277
4306
  "kind": "expression",
4278
- "type": "string"
4307
+ "type": "union"
4279
4308
  },
4280
4309
  "default": "left"
4281
4310
  },
4282
4311
  {
4283
4312
  "name": "id",
4313
+ "required": false,
4284
4314
  "description": "Unique element id.",
4285
4315
  "value": {
4286
4316
  "kind": "expression",
4287
4317
  "type": "string"
4288
- },
4289
- "default": "\"\""
4318
+ }
4290
4319
  },
4291
4320
  {
4292
4321
  "name": "config",
4322
+ "required": false,
4293
4323
  "description": "Component config object.",
4324
+ "enum": [
4325
+ "TSTypeQuery"
4326
+ ],
4294
4327
  "value": {
4295
4328
  "kind": "expression",
4296
- "type": "object"
4297
- },
4298
- "default": "{}"
4329
+ "type": "Partial"
4330
+ }
4299
4331
  },
4300
4332
  {
4301
4333
  "name": "dataTest",
4334
+ "required": false,
4302
4335
  "description": "Data-test attribute for automated testing.",
4303
4336
  "value": {
4304
4337
  "kind": "expression",
@@ -4371,24 +4404,28 @@
4371
4404
  "attributes": [
4372
4405
  {
4373
4406
  "name": "label",
4407
+ "required": false,
4374
4408
  "description": "Link label.",
4375
4409
  "value": {
4376
4410
  "kind": "expression",
4377
4411
  "type": "string"
4378
- },
4379
- "default": "\"\""
4412
+ }
4380
4413
  },
4381
4414
  {
4382
4415
  "name": "options",
4416
+ "required": false,
4383
4417
  "description": "Options list.",
4418
+ "enum": [
4419
+ "UnknownObject"
4420
+ ],
4384
4421
  "value": {
4385
4422
  "kind": "expression",
4386
- "type": "array"
4387
- },
4388
- "default": "[]"
4423
+ "type": "Array"
4424
+ }
4389
4425
  },
4390
4426
  {
4391
4427
  "name": "labelKey",
4428
+ "required": false,
4392
4429
  "description": "Label key in the item object of options.",
4393
4430
  "value": {
4394
4431
  "kind": "expression",
@@ -4398,6 +4435,7 @@
4398
4435
  },
4399
4436
  {
4400
4437
  "name": "color",
4438
+ "required": false,
4401
4439
  "description": "Link color.",
4402
4440
  "enum": [
4403
4441
  "brand",
@@ -4424,12 +4462,13 @@
4424
4462
  ],
4425
4463
  "value": {
4426
4464
  "kind": "expression",
4427
- "type": "string"
4465
+ "type": "union"
4428
4466
  },
4429
4467
  "default": "brand"
4430
4468
  },
4431
4469
  {
4432
4470
  "name": "size",
4471
+ "required": false,
4433
4472
  "description": "Link size.",
4434
4473
  "enum": [
4435
4474
  "sm",
@@ -4438,12 +4477,13 @@
4438
4477
  ],
4439
4478
  "value": {
4440
4479
  "kind": "expression",
4441
- "type": "string"
4480
+ "type": "union"
4442
4481
  },
4443
4482
  "default": "md"
4444
4483
  },
4445
4484
  {
4446
4485
  "name": "underlined",
4486
+ "required": false,
4447
4487
  "description": "Add underline.",
4448
4488
  "value": {
4449
4489
  "kind": "expression",
@@ -4452,6 +4492,7 @@
4452
4492
  },
4453
4493
  {
4454
4494
  "name": "dashed",
4495
+ "required": false,
4455
4496
  "description": "Set dashed underline style.",
4456
4497
  "value": {
4457
4498
  "kind": "expression",
@@ -4461,6 +4502,7 @@
4461
4502
  },
4462
4503
  {
4463
4504
  "name": "disabled",
4505
+ "required": false,
4464
4506
  "description": "Disable the link.",
4465
4507
  "value": {
4466
4508
  "kind": "expression",
@@ -4470,6 +4512,7 @@
4470
4512
  },
4471
4513
  {
4472
4514
  "name": "noRing",
4515
+ "required": false,
4473
4516
  "description": "Hide focus ring.",
4474
4517
  "value": {
4475
4518
  "kind": "expression",
@@ -4479,6 +4522,7 @@
4479
4522
  },
4480
4523
  {
4481
4524
  "name": "noIcon",
4525
+ "required": false,
4482
4526
  "description": "Hide dropdown icon.",
4483
4527
  "value": {
4484
4528
  "kind": "expression",
@@ -4488,6 +4532,7 @@
4488
4532
  },
4489
4533
  {
4490
4534
  "name": "yPosition",
4535
+ "required": false,
4491
4536
  "description": "The position of dropdown list on the y-axis.",
4492
4537
  "enum": [
4493
4538
  "top",
@@ -4495,12 +4540,13 @@
4495
4540
  ],
4496
4541
  "value": {
4497
4542
  "kind": "expression",
4498
- "type": "string"
4543
+ "type": "union"
4499
4544
  },
4500
4545
  "default": "bottom"
4501
4546
  },
4502
4547
  {
4503
4548
  "name": "xPosition",
4549
+ "required": false,
4504
4550
  "description": "The position of dropdown list on the x-axis.",
4505
4551
  "enum": [
4506
4552
  "left",
@@ -4508,30 +4554,34 @@
4508
4554
  ],
4509
4555
  "value": {
4510
4556
  "kind": "expression",
4511
- "type": "string"
4557
+ "type": "union"
4512
4558
  },
4513
4559
  "default": "left"
4514
4560
  },
4515
4561
  {
4516
4562
  "name": "id",
4563
+ "required": false,
4517
4564
  "description": "Unique element id.",
4518
4565
  "value": {
4519
4566
  "kind": "expression",
4520
4567
  "type": "string"
4521
- },
4522
- "default": "\"\""
4568
+ }
4523
4569
  },
4524
4570
  {
4525
4571
  "name": "config",
4572
+ "required": false,
4526
4573
  "description": "Component config object.",
4574
+ "enum": [
4575
+ "TSTypeQuery"
4576
+ ],
4527
4577
  "value": {
4528
4578
  "kind": "expression",
4529
- "type": "object"
4530
- },
4531
- "default": "{}"
4579
+ "type": "Partial"
4580
+ }
4532
4581
  },
4533
4582
  {
4534
4583
  "name": "dataTest",
4584
+ "required": false,
4535
4585
  "description": "Data-test attribute for automated testing.",
4536
4586
  "value": {
4537
4587
  "kind": "expression",
@@ -4604,15 +4654,19 @@
4604
4654
  "attributes": [
4605
4655
  {
4606
4656
  "name": "options",
4607
- "description": "List options.",
4657
+ "required": false,
4658
+ "description": "List of options.",
4659
+ "enum": [
4660
+ "UnknownObject"
4661
+ ],
4608
4662
  "value": {
4609
4663
  "kind": "expression",
4610
- "type": "array"
4611
- },
4612
- "default": "[]"
4664
+ "type": "Array"
4665
+ }
4613
4666
  },
4614
4667
  {
4615
4668
  "name": "labelKey",
4669
+ "required": false,
4616
4670
  "description": "Label key in the item object of options.",
4617
4671
  "value": {
4618
4672
  "kind": "expression",
@@ -4622,6 +4676,7 @@
4622
4676
  },
4623
4677
  {
4624
4678
  "name": "valueKey",
4679
+ "required": false,
4625
4680
  "description": "Value key in the item object of options.",
4626
4681
  "value": {
4627
4682
  "kind": "expression",
@@ -4631,6 +4686,7 @@
4631
4686
  },
4632
4687
  {
4633
4688
  "name": "addOption",
4689
+ "required": false,
4634
4690
  "description": "Show add option button.",
4635
4691
  "value": {
4636
4692
  "kind": "expression",
@@ -4640,6 +4696,7 @@
4640
4696
  },
4641
4697
  {
4642
4698
  "name": "disabled",
4699
+ "required": false,
4643
4700
  "description": "Disable the list.",
4644
4701
  "value": {
4645
4702
  "kind": "expression",
@@ -4649,6 +4706,7 @@
4649
4706
  },
4650
4707
  {
4651
4708
  "name": "size",
4709
+ "required": false,
4652
4710
  "description": "List size.",
4653
4711
  "enum": [
4654
4712
  "sm",
@@ -4657,12 +4715,13 @@
4657
4715
  ],
4658
4716
  "value": {
4659
4717
  "kind": "expression",
4660
- "type": "string"
4718
+ "type": "union"
4661
4719
  },
4662
4720
  "default": "md"
4663
4721
  },
4664
4722
  {
4665
4723
  "name": "visibleOptions",
4724
+ "required": false,
4666
4725
  "description": "Number of options to show without a scroll.",
4667
4726
  "value": {
4668
4727
  "kind": "expression",
@@ -4671,21 +4730,24 @@
4671
4730
  },
4672
4731
  {
4673
4732
  "name": "id",
4733
+ "required": false,
4674
4734
  "description": "Unique element id.",
4675
4735
  "value": {
4676
4736
  "kind": "expression",
4677
4737
  "type": "string"
4678
- },
4679
- "default": "\"\""
4738
+ }
4680
4739
  },
4681
4740
  {
4682
4741
  "name": "config",
4742
+ "required": false,
4683
4743
  "description": "Component config object.",
4744
+ "enum": [
4745
+ "TSTypeQuery"
4746
+ ],
4684
4747
  "value": {
4685
4748
  "kind": "expression",
4686
- "type": "object"
4687
- },
4688
- "default": "{}"
4749
+ "type": "Partial"
4750
+ }
4689
4751
  }
4690
4752
  ],
4691
4753
  "events": [
@@ -1,86 +0,0 @@
1
- import { ref, computed, toValue } from "vue";
2
-
3
- export default function usePointer(options, optionElements, listWrapperElement) {
4
- const pointer = ref(null);
5
- const pointerDirty = ref(false);
6
-
7
- const activeElementHeight = computed(() => {
8
- const isGroupLabel = toValue(optionElements).at(pointer.value).dataset.groupLabel;
9
- const groupIndex = 2;
10
-
11
- if (isGroupLabel) {
12
- return toValue(optionElements)
13
- .at(pointer.value - groupIndex)
14
- .getBoundingClientRect().height;
15
- }
16
-
17
- return toValue(optionElements).at(pointer.value).getBoundingClientRect().height;
18
- });
19
-
20
- const pointerPosition = computed(() => {
21
- return pointer.value * activeElementHeight.value || 0;
22
- });
23
-
24
- function scrollWrapperToElement() {
25
- const visibleElements =
26
- listWrapperElement.value.getBoundingClientRect().height / activeElementHeight.value;
27
- const currentElement = visibleElements - 1;
28
- const currentPointerPosition =
29
- pointerPosition.value - currentElement * activeElementHeight.value;
30
-
31
- if (listWrapperElement.value.scrollTop <= currentPointerPosition) {
32
- listWrapperElement.value.scrollTop = currentPointerPosition;
33
- }
34
- }
35
-
36
- function pointerForward() {
37
- if (pointer.value < options.length - 1) {
38
- pointer.value++;
39
-
40
- const isGroup = options[pointer.value].isSubGroup || options[pointer.value].groupLabel;
41
-
42
- if (listWrapperElement) scrollWrapperToElement();
43
-
44
- if (options[pointer.value] && isGroup) {
45
- pointerForward();
46
- }
47
- }
48
-
49
- pointerDirty.value = true;
50
- }
51
-
52
- function pointerBackward() {
53
- if (pointer.value > 0) {
54
- pointer.value--;
55
-
56
- const isGroup = options[pointer.value].isSubGroup || options[pointer.value].groupLabel;
57
-
58
- if (listWrapperElement && listWrapperElement.value.scrollTop >= pointerPosition.value) {
59
- listWrapperElement.value.scrollTop = pointerPosition.value;
60
- }
61
-
62
- if (options[pointer.value] && isGroup) {
63
- pointerBackward();
64
- }
65
- } else {
66
- if (options[pointer.value] && options[0].groupLabel) {
67
- pointerForward();
68
- }
69
- }
70
-
71
- pointerDirty.value = true;
72
- }
73
-
74
- function pointerSet(index) {
75
- pointer.value = index;
76
- pointerDirty.value = true;
77
- }
78
-
79
- function pointerReset() {
80
- pointer.value = 0;
81
-
82
- if (listWrapperElement) listWrapperElement.value.scrollTop = 0;
83
- }
84
-
85
- return { pointer, pointerDirty, pointerSet, pointerReset, pointerBackward, pointerForward };
86
- }
File without changes