@quidgest/ui 0.16.49 → 0.16.50

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 (50) hide show
  1. package/dist/json/api.json +220 -5
  2. package/dist/manifest/components.json +1 -0
  3. package/dist/ui.css +9 -0
  4. package/dist/ui.esm.js +7048 -7703
  5. package/dist/ui.js +27 -38
  6. package/dist/ui.min.css +1 -1
  7. package/dist/ui.min.js +1026 -1148
  8. package/dist/ui.scss +9 -1
  9. package/esm/components/QDialog/QDialog.d.ts +3 -2
  10. package/esm/components/QDialog/QDialog.d.ts.map +1 -1
  11. package/esm/components/QDialog/QDialog.vue.js +83 -77
  12. package/esm/components/QDialog/index.d.ts +21 -9
  13. package/esm/components/QDialog/index.d.ts.map +1 -1
  14. package/esm/components/QDialog/types.d.ts +24 -3
  15. package/esm/components/QDialog/types.d.ts.map +1 -1
  16. package/esm/components/QFocusWrap/QFocusWrap.d.ts +26 -0
  17. package/esm/components/QFocusWrap/QFocusWrap.d.ts.map +1 -0
  18. package/esm/components/QFocusWrap/QFocusWrap.vue.js +119 -0
  19. package/esm/components/QFocusWrap/QFocusWrap.vue2.js +4 -0
  20. package/esm/components/QFocusWrap/index.d.ts +31 -0
  21. package/esm/components/QFocusWrap/index.d.ts.map +1 -0
  22. package/esm/components/QFocusWrap/index.js +6 -0
  23. package/esm/components/QFocusWrap/types.d.ts +42 -0
  24. package/esm/components/QFocusWrap/types.d.ts.map +1 -0
  25. package/esm/components/QOverlay/QOverlay.d.ts +2 -1
  26. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  27. package/esm/components/QOverlay/QOverlay.vue.js +126 -120
  28. package/esm/components/QOverlay/index.d.ts +18 -6
  29. package/esm/components/QOverlay/index.d.ts.map +1 -1
  30. package/esm/components/QOverlay/types.d.ts +24 -3
  31. package/esm/components/QOverlay/types.d.ts.map +1 -1
  32. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +17 -14
  33. package/esm/components/QPopover/QPopover.d.ts.map +1 -1
  34. package/esm/components/QPopover/QPopover.vue.js +13 -14
  35. package/esm/components/QSelect/QSelect.d.ts +8 -8
  36. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  37. package/esm/components/QSelect/QSelect.vue.js +79 -77
  38. package/esm/components/QSelect/constants.d.ts +1 -0
  39. package/esm/components/QSelect/constants.d.ts.map +1 -1
  40. package/esm/components/QSelect/constants.js +10 -8
  41. package/esm/components/index.d.ts +1 -0
  42. package/esm/components/index.d.ts.map +1 -1
  43. package/esm/components/index.js +76 -74
  44. package/esm/composables/useDialog/index.d.ts +4 -1
  45. package/esm/composables/useDialog/index.d.ts.map +1 -1
  46. package/esm/index.d.ts +1 -0
  47. package/package.json +1 -1
  48. package/esm/vendors/focus-trap/dist/focus-trap.esm.js +0 -473
  49. package/esm/vendors/focus-trap-vue/dist/focus-trap-vue.esm-browser.js +0 -104
  50. package/esm/vendors/tabbable/dist/index.esm.js +0 -202
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.16.49",
2
+ "version": "0.16.50",
3
3
  "components": [
4
4
  {
5
5
  "name": "QAccordion",
@@ -2675,16 +2675,67 @@
2675
2675
  "category": "Behavior"
2676
2676
  },
2677
2677
  {
2678
- "name": "focusTrap",
2678
+ "name": "focusWrap",
2679
2679
  "type": {
2680
2680
  "kind": "primitive",
2681
2681
  "name": "boolean"
2682
2682
  },
2683
- "description": "Whether to enable focus trapping within the dialog.\nWhen enabled, focus will be constrained to elements within the dialog.",
2683
+ "description": "Whether to enable focus wrapping within the dialog.\nWhen enabled, focus by tabbing will wrap around elements within the dialog.",
2684
2684
  "default": "true",
2685
2685
  "required": false,
2686
2686
  "category": "Behavior"
2687
2687
  },
2688
+ {
2689
+ "name": "initialFocus",
2690
+ "type": {
2691
+ "kind": "union",
2692
+ "types": [
2693
+ {
2694
+ "name": "other",
2695
+ "value": "null"
2696
+ },
2697
+ {
2698
+ "name": "string"
2699
+ },
2700
+ {
2701
+ "name": "object",
2702
+ "value": {}
2703
+ }
2704
+ ]
2705
+ },
2706
+ "description": "Element to set focus on when the focus wrap is activated.\nHas priority over focusWithinOnActivate",
2707
+ "required": false,
2708
+ "category": "Behavior"
2709
+ },
2710
+ {
2711
+ "name": "focusWithinOnActivate",
2712
+ "type": {
2713
+ "kind": "primitive",
2714
+ "name": "boolean"
2715
+ },
2716
+ "description": "Whether to focus on the first focusable element within when\nactivating the focus wrap.",
2717
+ "default": "true",
2718
+ "required": false,
2719
+ "category": "Behavior"
2720
+ },
2721
+ {
2722
+ "name": "closingFocus",
2723
+ "type": {
2724
+ "kind": "union",
2725
+ "types": [
2726
+ {
2727
+ "name": "string"
2728
+ },
2729
+ {
2730
+ "name": "object",
2731
+ "value": {}
2732
+ }
2733
+ ]
2734
+ },
2735
+ "description": "Element to set focus on when the dialog is closed.\nHas priority over returnFocusOnDeactivate.",
2736
+ "required": false,
2737
+ "category": "Behavior"
2738
+ },
2688
2739
  {
2689
2740
  "name": "returnFocusOnDeactivate",
2690
2741
  "type": {
@@ -2857,6 +2908,11 @@
2857
2908
  "title": "Overflown",
2858
2909
  "description": "When the dialog content overflows, the header and footer remain visible while the body becomes scrollable.",
2859
2910
  "code": "<q-button label=\"Click me\" @click=\"modelValue = true\" />\n <q-dialog v-model=\"modelValue\" v-bind=\"args\">\n <template #body>\n <div style=\"padding: 0 1rem;\">\n <p v-for=\"i in 100\" :key=\"i\">\n This is a long paragraph of content to demonstrate scrolling behavior within the dialog. Line {{ i }}.\n </p>\n </div>\n </template>\n </q-dialog>"
2911
+ },
2912
+ {
2913
+ "title": "Focus On Close",
2914
+ "description": "When the dialog is closed, a specific element will be focused.",
2915
+ "code": "<q-button label=\"Click me\" @click=\"modelValue = true\" />\n\t\t\t<br /><br />\n\t\t\t<q-button id=\"focus-btn\" label=\"Focus\" />\n\t\t\t<q-dialog v-model=\"modelValue\" v-bind=\"args\" />"
2860
2916
  }
2861
2917
  ]
2862
2918
  },
@@ -3582,6 +3638,114 @@
3582
3638
  }
3583
3639
  ]
3584
3640
  },
3641
+ {
3642
+ "name": "QFocusWrap",
3643
+ "description": "Causes the focus on elements within to wrap.",
3644
+ "meta": {
3645
+ "props": [
3646
+ {
3647
+ "name": "id",
3648
+ "type": {
3649
+ "kind": "primitive",
3650
+ "name": "string"
3651
+ },
3652
+ "description": "The component unique identifier.",
3653
+ "required": false,
3654
+ "category": "Identification"
3655
+ },
3656
+ {
3657
+ "name": "active",
3658
+ "type": {
3659
+ "kind": "primitive",
3660
+ "name": "boolean"
3661
+ },
3662
+ "description": "Whether to enable focus wrapping within the components contents.\nWhen enabled, focus will wrap from the last element to the first\nwhen tabbing forward and from the first element to the last\nwhen tabbing backward.",
3663
+ "default": "true",
3664
+ "required": false,
3665
+ "category": "Behavior"
3666
+ },
3667
+ {
3668
+ "name": "initialFocus",
3669
+ "type": {
3670
+ "kind": "union",
3671
+ "types": [
3672
+ {
3673
+ "name": "other",
3674
+ "value": "null"
3675
+ },
3676
+ {
3677
+ "name": "string"
3678
+ },
3679
+ {
3680
+ "name": "object",
3681
+ "value": {}
3682
+ }
3683
+ ]
3684
+ },
3685
+ "description": "Element to set focus on when the focus wrap is activated.\nHas priority over focusWithinOnActivate",
3686
+ "required": false,
3687
+ "category": "Behavior"
3688
+ },
3689
+ {
3690
+ "name": "focusWithinOnActivate",
3691
+ "type": {
3692
+ "kind": "primitive",
3693
+ "name": "boolean"
3694
+ },
3695
+ "description": "Whether to focus on the first focusable element within when\nactivating the focus wrap.",
3696
+ "default": "true",
3697
+ "required": false,
3698
+ "category": "Behavior"
3699
+ },
3700
+ {
3701
+ "name": "closingFocus",
3702
+ "type": {
3703
+ "kind": "union",
3704
+ "types": [
3705
+ {
3706
+ "name": "other",
3707
+ "value": "null"
3708
+ },
3709
+ {
3710
+ "name": "string"
3711
+ },
3712
+ {
3713
+ "name": "object",
3714
+ "value": {}
3715
+ }
3716
+ ]
3717
+ },
3718
+ "description": "Element to set focus on when the focus wrap is deactivated.\nHas priority over returnFocusOnDeactivate.",
3719
+ "required": false,
3720
+ "category": "Behavior"
3721
+ },
3722
+ {
3723
+ "name": "returnFocusOnDeactivate",
3724
+ "type": {
3725
+ "kind": "primitive",
3726
+ "name": "boolean"
3727
+ },
3728
+ "description": "Whether to return focus to the element that had focus before\nactivating the focus wrap.",
3729
+ "required": false,
3730
+ "category": "Behavior"
3731
+ }
3732
+ ],
3733
+ "events": [],
3734
+ "slots": [
3735
+ {
3736
+ "name": "default",
3737
+ "description": ""
3738
+ }
3739
+ ]
3740
+ },
3741
+ "examples": [
3742
+ {
3743
+ "title": "Default",
3744
+ "description": "The default focus wrap.",
3745
+ "code": "<q-focus-wrap v-bind=\"args\">\n\t\t\t\t<q-button id=\"btn1\" label=\"Button 1\" />\n\t\t\t\t<q-button id=\"btn2\" label=\"Button 2\" />\n\t\t\t\t<q-button id=\"btn3\" label=\"Button 3\" />\n\t\t\t</q-focus-wrap>"
3746
+ }
3747
+ ]
3748
+ },
3585
3749
  {
3586
3750
  "name": "QGroupBox",
3587
3751
  "description": "A container with a title that groups related content.",
@@ -4681,12 +4845,63 @@
4681
4845
  "category": "Behavior"
4682
4846
  },
4683
4847
  {
4684
- "name": "focusTrap",
4848
+ "name": "focusWrap",
4849
+ "type": {
4850
+ "kind": "primitive",
4851
+ "name": "boolean"
4852
+ },
4853
+ "description": "Whether to enable focus wrapping within the overlay.\nWhen enabled, focus by tabbing will wrap around elements within the overlay.",
4854
+ "required": false,
4855
+ "category": "Behavior"
4856
+ },
4857
+ {
4858
+ "name": "initialFocus",
4859
+ "type": {
4860
+ "kind": "union",
4861
+ "types": [
4862
+ {
4863
+ "name": "other",
4864
+ "value": "null"
4865
+ },
4866
+ {
4867
+ "name": "string"
4868
+ },
4869
+ {
4870
+ "name": "object",
4871
+ "value": {}
4872
+ }
4873
+ ]
4874
+ },
4875
+ "description": "Element to set focus on when the focus wrap is activated.\nHas priority over focusWithinOnActivate",
4876
+ "required": false,
4877
+ "category": "Behavior"
4878
+ },
4879
+ {
4880
+ "name": "focusWithinOnActivate",
4685
4881
  "type": {
4686
4882
  "kind": "primitive",
4687
4883
  "name": "boolean"
4688
4884
  },
4689
- "description": "Whether to enable focus trapping within the overlay.\nWhen enabled, focus will be constrained to elements within the overlay.",
4885
+ "description": "Whether to focus on the first focusable element within when\nactivating the focus wrap.",
4886
+ "default": "false",
4887
+ "required": false,
4888
+ "category": "Behavior"
4889
+ },
4890
+ {
4891
+ "name": "closingFocus",
4892
+ "type": {
4893
+ "kind": "union",
4894
+ "types": [
4895
+ {
4896
+ "name": "string"
4897
+ },
4898
+ {
4899
+ "name": "object",
4900
+ "value": {}
4901
+ }
4902
+ ]
4903
+ },
4904
+ "description": "Element to set focus on when the focus wrap is deactivated.\nHas priority over returnFocusOnDeactivate.",
4690
4905
  "required": false,
4691
4906
  "category": "Behavior"
4692
4907
  },
@@ -22,6 +22,7 @@
22
22
  "QDropdownMenu",
23
23
  "QField",
24
24
  "QFileUpload",
25
+ "QFocusWrap",
25
26
  "QCol",
26
27
  "QContainer",
27
28
  "QRow",
package/dist/ui.css CHANGED
@@ -3252,6 +3252,15 @@ body *::-webkit-scrollbar-track {
3252
3252
  outline: none;
3253
3253
  }
3254
3254
 
3255
+ .q-focus-wrap {
3256
+ width: 0;
3257
+ height: 0;
3258
+ display: inline-block;
3259
+ }
3260
+ .q-focus-wrap:focus {
3261
+ outline: 0;
3262
+ }
3263
+
3255
3264
  .q-container {
3256
3265
  width: 100%;
3257
3266
  margin-left: auto;