@bitrix24/b24ui-nuxt 2.1.3 → 2.1.5
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/meta.d.mts +138 -113
- package/dist/meta.mjs +138 -113
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/CheckboxGroup.vue +3 -2
- package/dist/runtime/components/CommandPalette.vue +8 -2
- package/dist/runtime/components/DashboardSearchButton.vue +4 -3
- package/dist/runtime/components/InputMenu.vue +15 -13
- package/dist/runtime/components/NavigationMenu.d.vue.ts +44 -9
- package/dist/runtime/components/NavigationMenu.vue +19 -11
- package/dist/runtime/components/NavigationMenu.vue.d.ts +44 -9
- package/dist/runtime/components/RadioGroup.vue +5 -5
- package/dist/runtime/components/SelectMenu.vue +14 -11
- package/dist/runtime/components/Table.d.vue.ts +2 -2
- package/dist/runtime/components/Table.vue +15 -2
- package/dist/runtime/components/Table.vue.d.ts +2 -2
- package/dist/runtime/components/color-mode/ColorModeButton.d.vue.ts +2 -9
- package/dist/runtime/components/color-mode/ColorModeButton.vue +8 -13
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +2 -9
- package/dist/runtime/components/content/ContentSearchButton.vue +4 -3
- package/dist/runtime/utils/virtualizer.d.ts +6 -0
- package/dist/runtime/utils/virtualizer.js +32 -0
- package/dist/shared/{b24ui-nuxt.mq1NUekN.mjs → b24ui-nuxt.Dspx5yCK.mjs} +85 -49
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeButton.d.vue.ts +0 -12
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue +0 -83
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +0 -12
package/dist/meta.mjs
CHANGED
|
@@ -6795,15 +6795,15 @@ const B24UIMeta = {
|
|
|
6795
6795
|
"description": "",
|
|
6796
6796
|
"tags": [],
|
|
6797
6797
|
"required": false,
|
|
6798
|
-
"type": "({ base?: ClassNameValue; trailing?: ClassNameValue; } & { base?: ClassNameValue; baseLoading?: ClassNameValue; baseLoadingWaitIcon?: ClassNameValue; baseLoadingClockIcon?: ClassNameValue; baseLoadingSpinnerIcon?: ClassNameValue; baseLine?: ClassNameValue; label?: ClassNameValue; labelInner?: ClassNameValue; leadingIcon?: ClassNameValue; leadingAvatar?: ClassNameValue; leadingAvatarSize?: ClassNameValue; trailingIcon?: ClassNameValue; safeList?: ClassNameValue; }) | undefined",
|
|
6798
|
+
"type": "({ base?: ClassNameValue; baseLine?: ClassNameValue; label?: ClassNameValue; trailing?: ClassNameValue; } & { base?: ClassNameValue; baseLoading?: ClassNameValue; baseLoadingWaitIcon?: ClassNameValue; baseLoadingClockIcon?: ClassNameValue; baseLoadingSpinnerIcon?: ClassNameValue; baseLine?: ClassNameValue; label?: ClassNameValue; labelInner?: ClassNameValue; leadingIcon?: ClassNameValue; leadingAvatar?: ClassNameValue; leadingAvatarSize?: ClassNameValue; trailingIcon?: ClassNameValue; safeList?: ClassNameValue; }) | undefined",
|
|
6799
6799
|
"schema": {
|
|
6800
6800
|
"kind": "enum",
|
|
6801
|
-
"type": "({ base?: ClassNameValue; trailing?: ClassNameValue; } & { base?: ClassNameValue; baseLoading?: ClassNameValue; baseLoadingWaitIcon?: ClassNameValue; baseLoadingClockIcon?: ClassNameValue; baseLoadingSpinnerIcon?: ClassNameValue; baseLine?: ClassNameValue; label?: ClassNameValue; labelInner?: ClassNameValue; leadingIcon?: ClassNameValue; leadingAvatar?: ClassNameValue; leadingAvatarSize?: ClassNameValue; trailingIcon?: ClassNameValue; safeList?: ClassNameValue; }) | undefined",
|
|
6801
|
+
"type": "({ base?: ClassNameValue; baseLine?: ClassNameValue; label?: ClassNameValue; trailing?: ClassNameValue; } & { base?: ClassNameValue; baseLoading?: ClassNameValue; baseLoadingWaitIcon?: ClassNameValue; baseLoadingClockIcon?: ClassNameValue; baseLoadingSpinnerIcon?: ClassNameValue; baseLine?: ClassNameValue; label?: ClassNameValue; labelInner?: ClassNameValue; leadingIcon?: ClassNameValue; leadingAvatar?: ClassNameValue; leadingAvatarSize?: ClassNameValue; trailingIcon?: ClassNameValue; safeList?: ClassNameValue; }) | undefined",
|
|
6802
6802
|
"schema": {
|
|
6803
6803
|
"0": "undefined",
|
|
6804
6804
|
"1": {
|
|
6805
6805
|
"kind": "object",
|
|
6806
|
-
"type": "{ base?: ClassNameValue; trailing?: ClassNameValue; } & { base?: ClassNameValue; baseLoading?: ClassNameValue; baseLoadingWaitIcon?: ClassNameValue; baseLoadingClockIcon?: ClassNameValue; baseLoadingSpinnerIcon?: ClassNameValue; baseLine?: ClassNameValue; label?: ClassNameValue; labelInner?: ClassNameValue; leadingIcon?: ClassNameValue; leadingAvatar?: ClassNameValue; leadingAvatarSize?: ClassNameValue; trailingIcon?: ClassNameValue; safeList?: ClassNameValue; }",
|
|
6806
|
+
"type": "{ base?: ClassNameValue; baseLine?: ClassNameValue; label?: ClassNameValue; trailing?: ClassNameValue; } & { base?: ClassNameValue; baseLoading?: ClassNameValue; baseLoadingWaitIcon?: ClassNameValue; baseLoadingClockIcon?: ClassNameValue; baseLoadingSpinnerIcon?: ClassNameValue; baseLine?: ClassNameValue; label?: ClassNameValue; labelInner?: ClassNameValue; leadingIcon?: ClassNameValue; leadingAvatar?: ClassNameValue; leadingAvatarSize?: ClassNameValue; trailingIcon?: ClassNameValue; safeList?: ClassNameValue; }",
|
|
6807
6807
|
"schema": {
|
|
6808
6808
|
"base": {
|
|
6809
6809
|
"name": "base",
|
|
@@ -6832,8 +6832,8 @@ const B24UIMeta = {
|
|
|
6832
6832
|
}
|
|
6833
6833
|
}
|
|
6834
6834
|
},
|
|
6835
|
-
"
|
|
6836
|
-
"name": "
|
|
6835
|
+
"baseLine": {
|
|
6836
|
+
"name": "baseLine",
|
|
6837
6837
|
"global": false,
|
|
6838
6838
|
"description": "",
|
|
6839
6839
|
"tags": [],
|
|
@@ -6841,8 +6841,8 @@ const B24UIMeta = {
|
|
|
6841
6841
|
"type": "ClassNameValue",
|
|
6842
6842
|
"schema": "ClassNameValue"
|
|
6843
6843
|
},
|
|
6844
|
-
"
|
|
6845
|
-
"name": "
|
|
6844
|
+
"label": {
|
|
6845
|
+
"name": "label",
|
|
6846
6846
|
"global": false,
|
|
6847
6847
|
"description": "",
|
|
6848
6848
|
"tags": [],
|
|
@@ -6850,8 +6850,8 @@ const B24UIMeta = {
|
|
|
6850
6850
|
"type": "ClassNameValue",
|
|
6851
6851
|
"schema": "ClassNameValue"
|
|
6852
6852
|
},
|
|
6853
|
-
"
|
|
6854
|
-
"name": "
|
|
6853
|
+
"trailing": {
|
|
6854
|
+
"name": "trailing",
|
|
6855
6855
|
"global": false,
|
|
6856
6856
|
"description": "",
|
|
6857
6857
|
"tags": [],
|
|
@@ -6859,8 +6859,8 @@ const B24UIMeta = {
|
|
|
6859
6859
|
"type": "ClassNameValue",
|
|
6860
6860
|
"schema": "ClassNameValue"
|
|
6861
6861
|
},
|
|
6862
|
-
"
|
|
6863
|
-
"name": "
|
|
6862
|
+
"baseLoading": {
|
|
6863
|
+
"name": "baseLoading",
|
|
6864
6864
|
"global": false,
|
|
6865
6865
|
"description": "",
|
|
6866
6866
|
"tags": [],
|
|
@@ -6868,8 +6868,8 @@ const B24UIMeta = {
|
|
|
6868
6868
|
"type": "ClassNameValue",
|
|
6869
6869
|
"schema": "ClassNameValue"
|
|
6870
6870
|
},
|
|
6871
|
-
"
|
|
6872
|
-
"name": "
|
|
6871
|
+
"baseLoadingWaitIcon": {
|
|
6872
|
+
"name": "baseLoadingWaitIcon",
|
|
6873
6873
|
"global": false,
|
|
6874
6874
|
"description": "",
|
|
6875
6875
|
"tags": [],
|
|
@@ -6877,8 +6877,8 @@ const B24UIMeta = {
|
|
|
6877
6877
|
"type": "ClassNameValue",
|
|
6878
6878
|
"schema": "ClassNameValue"
|
|
6879
6879
|
},
|
|
6880
|
-
"
|
|
6881
|
-
"name": "
|
|
6880
|
+
"baseLoadingClockIcon": {
|
|
6881
|
+
"name": "baseLoadingClockIcon",
|
|
6882
6882
|
"global": false,
|
|
6883
6883
|
"description": "",
|
|
6884
6884
|
"tags": [],
|
|
@@ -6886,8 +6886,8 @@ const B24UIMeta = {
|
|
|
6886
6886
|
"type": "ClassNameValue",
|
|
6887
6887
|
"schema": "ClassNameValue"
|
|
6888
6888
|
},
|
|
6889
|
-
"
|
|
6890
|
-
"name": "
|
|
6889
|
+
"baseLoadingSpinnerIcon": {
|
|
6890
|
+
"name": "baseLoadingSpinnerIcon",
|
|
6891
6891
|
"global": false,
|
|
6892
6892
|
"description": "",
|
|
6893
6893
|
"tags": [],
|
|
@@ -8859,7 +8859,7 @@ const B24UIMeta = {
|
|
|
8859
8859
|
],
|
|
8860
8860
|
"events": [],
|
|
8861
8861
|
"exposed": [],
|
|
8862
|
-
"hash": "
|
|
8862
|
+
"hash": "BITru2BFV1WIKYd_JWoqHKbMPMEkcuYq6YB4qGizJfQ"
|
|
8863
8863
|
}
|
|
8864
8864
|
},
|
|
8865
8865
|
"B24ContentSurround": {
|
|
@@ -12086,16 +12086,10 @@ const B24UIMeta = {
|
|
|
12086
12086
|
}
|
|
12087
12087
|
}
|
|
12088
12088
|
],
|
|
12089
|
-
"slots": [
|
|
12090
|
-
{
|
|
12091
|
-
"name": "fallback",
|
|
12092
|
-
"type": "{} | undefined",
|
|
12093
|
-
"description": ""
|
|
12094
|
-
}
|
|
12095
|
-
],
|
|
12089
|
+
"slots": [],
|
|
12096
12090
|
"events": [],
|
|
12097
12091
|
"exposed": [],
|
|
12098
|
-
"hash": "
|
|
12092
|
+
"hash": "gNcve841eye260cg6qWtLrbJEhVCAAZEqbvjcy-hw1U"
|
|
12099
12093
|
}
|
|
12100
12094
|
},
|
|
12101
12095
|
"B24ColorModeImage": {
|
|
@@ -47746,7 +47740,7 @@ const B24UIMeta = {
|
|
|
47746
47740
|
}
|
|
47747
47741
|
],
|
|
47748
47742
|
"exposed": [],
|
|
47749
|
-
"hash": "
|
|
47743
|
+
"hash": "S_lIijGysSBqCOKHSmA3XB5YruQ_-lvMR6-09NNEVxc"
|
|
47750
47744
|
}
|
|
47751
47745
|
},
|
|
47752
47746
|
"B24Chip": {
|
|
@@ -50591,7 +50585,7 @@ const B24UIMeta = {
|
|
|
50591
50585
|
}
|
|
50592
50586
|
],
|
|
50593
50587
|
"exposed": [],
|
|
50594
|
-
"hash": "
|
|
50588
|
+
"hash": "DchR7JEFAoPxlZnMYa9Mz_ibXwN55wlt817VlGA0rq8"
|
|
50595
50589
|
}
|
|
50596
50590
|
},
|
|
50597
50591
|
"B24Container": {
|
|
@@ -58707,15 +58701,15 @@ const B24UIMeta = {
|
|
|
58707
58701
|
"description": "",
|
|
58708
58702
|
"tags": [],
|
|
58709
58703
|
"required": false,
|
|
58710
|
-
"type": "({ base?: ClassNameValue; trailing?: ClassNameValue; } & { base?: ClassNameValue; baseLoading?: ClassNameValue; baseLoadingWaitIcon?: ClassNameValue; baseLoadingClockIcon?: ClassNameValue; baseLoadingSpinnerIcon?: ClassNameValue; baseLine?: ClassNameValue; label?: ClassNameValue; labelInner?: ClassNameValue; leadingIcon?: ClassNameValue; leadingAvatar?: ClassNameValue; leadingAvatarSize?: ClassNameValue; trailingIcon?: ClassNameValue; safeList?: ClassNameValue; }) | undefined",
|
|
58704
|
+
"type": "({ base?: ClassNameValue; baseLine?: ClassNameValue; label?: ClassNameValue; trailing?: ClassNameValue; } & { base?: ClassNameValue; baseLoading?: ClassNameValue; baseLoadingWaitIcon?: ClassNameValue; baseLoadingClockIcon?: ClassNameValue; baseLoadingSpinnerIcon?: ClassNameValue; baseLine?: ClassNameValue; label?: ClassNameValue; labelInner?: ClassNameValue; leadingIcon?: ClassNameValue; leadingAvatar?: ClassNameValue; leadingAvatarSize?: ClassNameValue; trailingIcon?: ClassNameValue; safeList?: ClassNameValue; }) | undefined",
|
|
58711
58705
|
"schema": {
|
|
58712
58706
|
"kind": "enum",
|
|
58713
|
-
"type": "({ base?: ClassNameValue; trailing?: ClassNameValue; } & { base?: ClassNameValue; baseLoading?: ClassNameValue; baseLoadingWaitIcon?: ClassNameValue; baseLoadingClockIcon?: ClassNameValue; baseLoadingSpinnerIcon?: ClassNameValue; baseLine?: ClassNameValue; label?: ClassNameValue; labelInner?: ClassNameValue; leadingIcon?: ClassNameValue; leadingAvatar?: ClassNameValue; leadingAvatarSize?: ClassNameValue; trailingIcon?: ClassNameValue; safeList?: ClassNameValue; }) | undefined",
|
|
58707
|
+
"type": "({ base?: ClassNameValue; baseLine?: ClassNameValue; label?: ClassNameValue; trailing?: ClassNameValue; } & { base?: ClassNameValue; baseLoading?: ClassNameValue; baseLoadingWaitIcon?: ClassNameValue; baseLoadingClockIcon?: ClassNameValue; baseLoadingSpinnerIcon?: ClassNameValue; baseLine?: ClassNameValue; label?: ClassNameValue; labelInner?: ClassNameValue; leadingIcon?: ClassNameValue; leadingAvatar?: ClassNameValue; leadingAvatarSize?: ClassNameValue; trailingIcon?: ClassNameValue; safeList?: ClassNameValue; }) | undefined",
|
|
58714
58708
|
"schema": {
|
|
58715
58709
|
"0": "undefined",
|
|
58716
58710
|
"1": {
|
|
58717
58711
|
"kind": "object",
|
|
58718
|
-
"type": "{ base?: ClassNameValue; trailing?: ClassNameValue; } & { base?: ClassNameValue; baseLoading?: ClassNameValue; baseLoadingWaitIcon?: ClassNameValue; baseLoadingClockIcon?: ClassNameValue; baseLoadingSpinnerIcon?: ClassNameValue; baseLine?: ClassNameValue; label?: ClassNameValue; labelInner?: ClassNameValue; leadingIcon?: ClassNameValue; leadingAvatar?: ClassNameValue; leadingAvatarSize?: ClassNameValue; trailingIcon?: ClassNameValue; safeList?: ClassNameValue; }",
|
|
58712
|
+
"type": "{ base?: ClassNameValue; baseLine?: ClassNameValue; label?: ClassNameValue; trailing?: ClassNameValue; } & { base?: ClassNameValue; baseLoading?: ClassNameValue; baseLoadingWaitIcon?: ClassNameValue; baseLoadingClockIcon?: ClassNameValue; baseLoadingSpinnerIcon?: ClassNameValue; baseLine?: ClassNameValue; label?: ClassNameValue; labelInner?: ClassNameValue; leadingIcon?: ClassNameValue; leadingAvatar?: ClassNameValue; leadingAvatarSize?: ClassNameValue; trailingIcon?: ClassNameValue; safeList?: ClassNameValue; }",
|
|
58719
58713
|
"schema": {
|
|
58720
58714
|
"base": {
|
|
58721
58715
|
"name": "base",
|
|
@@ -58744,8 +58738,8 @@ const B24UIMeta = {
|
|
|
58744
58738
|
}
|
|
58745
58739
|
}
|
|
58746
58740
|
},
|
|
58747
|
-
"
|
|
58748
|
-
"name": "
|
|
58741
|
+
"baseLine": {
|
|
58742
|
+
"name": "baseLine",
|
|
58749
58743
|
"global": false,
|
|
58750
58744
|
"description": "",
|
|
58751
58745
|
"tags": [],
|
|
@@ -58753,8 +58747,8 @@ const B24UIMeta = {
|
|
|
58753
58747
|
"type": "ClassNameValue",
|
|
58754
58748
|
"schema": "ClassNameValue"
|
|
58755
58749
|
},
|
|
58756
|
-
"
|
|
58757
|
-
"name": "
|
|
58750
|
+
"label": {
|
|
58751
|
+
"name": "label",
|
|
58758
58752
|
"global": false,
|
|
58759
58753
|
"description": "",
|
|
58760
58754
|
"tags": [],
|
|
@@ -58762,8 +58756,8 @@ const B24UIMeta = {
|
|
|
58762
58756
|
"type": "ClassNameValue",
|
|
58763
58757
|
"schema": "ClassNameValue"
|
|
58764
58758
|
},
|
|
58765
|
-
"
|
|
58766
|
-
"name": "
|
|
58759
|
+
"trailing": {
|
|
58760
|
+
"name": "trailing",
|
|
58767
58761
|
"global": false,
|
|
58768
58762
|
"description": "",
|
|
58769
58763
|
"tags": [],
|
|
@@ -58771,8 +58765,8 @@ const B24UIMeta = {
|
|
|
58771
58765
|
"type": "ClassNameValue",
|
|
58772
58766
|
"schema": "ClassNameValue"
|
|
58773
58767
|
},
|
|
58774
|
-
"
|
|
58775
|
-
"name": "
|
|
58768
|
+
"baseLoading": {
|
|
58769
|
+
"name": "baseLoading",
|
|
58776
58770
|
"global": false,
|
|
58777
58771
|
"description": "",
|
|
58778
58772
|
"tags": [],
|
|
@@ -58780,8 +58774,8 @@ const B24UIMeta = {
|
|
|
58780
58774
|
"type": "ClassNameValue",
|
|
58781
58775
|
"schema": "ClassNameValue"
|
|
58782
58776
|
},
|
|
58783
|
-
"
|
|
58784
|
-
"name": "
|
|
58777
|
+
"baseLoadingWaitIcon": {
|
|
58778
|
+
"name": "baseLoadingWaitIcon",
|
|
58785
58779
|
"global": false,
|
|
58786
58780
|
"description": "",
|
|
58787
58781
|
"tags": [],
|
|
@@ -58789,8 +58783,8 @@ const B24UIMeta = {
|
|
|
58789
58783
|
"type": "ClassNameValue",
|
|
58790
58784
|
"schema": "ClassNameValue"
|
|
58791
58785
|
},
|
|
58792
|
-
"
|
|
58793
|
-
"name": "
|
|
58786
|
+
"baseLoadingClockIcon": {
|
|
58787
|
+
"name": "baseLoadingClockIcon",
|
|
58794
58788
|
"global": false,
|
|
58795
58789
|
"description": "",
|
|
58796
58790
|
"tags": [],
|
|
@@ -58798,8 +58792,8 @@ const B24UIMeta = {
|
|
|
58798
58792
|
"type": "ClassNameValue",
|
|
58799
58793
|
"schema": "ClassNameValue"
|
|
58800
58794
|
},
|
|
58801
|
-
"
|
|
58802
|
-
"name": "
|
|
58795
|
+
"baseLoadingSpinnerIcon": {
|
|
58796
|
+
"name": "baseLoadingSpinnerIcon",
|
|
58803
58797
|
"global": false,
|
|
58804
58798
|
"description": "",
|
|
58805
58799
|
"tags": [],
|
|
@@ -60771,7 +60765,7 @@ const B24UIMeta = {
|
|
|
60771
60765
|
],
|
|
60772
60766
|
"events": [],
|
|
60773
60767
|
"exposed": [],
|
|
60774
|
-
"hash": "
|
|
60768
|
+
"hash": "je3_Pi4e2l2SMVlKq_w3D-O9Jw-2yHjWKjS1GF3hLoo"
|
|
60775
60769
|
}
|
|
60776
60770
|
},
|
|
60777
60771
|
"B24DescriptionList": {
|
|
@@ -82774,7 +82768,7 @@ const B24UIMeta = {
|
|
|
82774
82768
|
}
|
|
82775
82769
|
],
|
|
82776
82770
|
"exposed": [],
|
|
82777
|
-
"hash": "
|
|
82771
|
+
"hash": "kTnvAgyFW-xm0udyy9wM1yD3VzzGNyLjueHb9YmY288"
|
|
82778
82772
|
}
|
|
82779
82773
|
},
|
|
82780
82774
|
"B24InputNumber": {
|
|
@@ -96817,6 +96811,75 @@ const B24UIMeta = {
|
|
|
96817
96811
|
"type": "any",
|
|
96818
96812
|
"schema": "any"
|
|
96819
96813
|
},
|
|
96814
|
+
{
|
|
96815
|
+
"name": "type",
|
|
96816
|
+
"global": false,
|
|
96817
|
+
"description": 'Determines whether a "single" or "multiple" items can be selected at a time.\n\nOnly works when `orientation` is `vertical`.',
|
|
96818
|
+
"tags": [
|
|
96819
|
+
{
|
|
96820
|
+
"name": "defaultValue",
|
|
96821
|
+
"text": "'multiple'"
|
|
96822
|
+
}
|
|
96823
|
+
],
|
|
96824
|
+
"required": false,
|
|
96825
|
+
"type": "SingleOrMultipleType | undefined",
|
|
96826
|
+
"schema": {
|
|
96827
|
+
"kind": "enum",
|
|
96828
|
+
"type": "SingleOrMultipleType | undefined",
|
|
96829
|
+
"schema": {
|
|
96830
|
+
"0": "undefined",
|
|
96831
|
+
"1": '"single"',
|
|
96832
|
+
"2": '"multiple"'
|
|
96833
|
+
}
|
|
96834
|
+
},
|
|
96835
|
+
"default": '"multiple" as never'
|
|
96836
|
+
},
|
|
96837
|
+
{
|
|
96838
|
+
"name": "modelValue",
|
|
96839
|
+
"global": false,
|
|
96840
|
+
"description": 'The controlled value of the active item(s).\n- In horizontal orientation: always `string`\n- In vertical orientation with `type="single"`: `string`\n- In vertical orientation with `type="multiple"`: `string[]`\n\nUse this when you need to control the state of the items. Can be binded with `v-model`',
|
|
96841
|
+
"tags": [],
|
|
96842
|
+
"required": false,
|
|
96843
|
+
"type": "string | string[] | undefined",
|
|
96844
|
+
"schema": {
|
|
96845
|
+
"kind": "enum",
|
|
96846
|
+
"type": "string | string[] | undefined",
|
|
96847
|
+
"schema": {
|
|
96848
|
+
"0": "undefined",
|
|
96849
|
+
"1": "string",
|
|
96850
|
+
"2": {
|
|
96851
|
+
"kind": "array",
|
|
96852
|
+
"type": "string[]",
|
|
96853
|
+
"schema": [
|
|
96854
|
+
"string"
|
|
96855
|
+
]
|
|
96856
|
+
}
|
|
96857
|
+
}
|
|
96858
|
+
}
|
|
96859
|
+
},
|
|
96860
|
+
{
|
|
96861
|
+
"name": "defaultValue",
|
|
96862
|
+
"global": false,
|
|
96863
|
+
"description": 'The default active value of the item(s).\n- In horizontal orientation: always `string`\n- In vertical orientation with `type="single"`: `string`\n- In vertical orientation with `type="multiple"`: `string[]`\n\nUse when you do not need to control the state of the item(s).',
|
|
96864
|
+
"tags": [],
|
|
96865
|
+
"required": false,
|
|
96866
|
+
"type": "string | string[] | undefined",
|
|
96867
|
+
"schema": {
|
|
96868
|
+
"kind": "enum",
|
|
96869
|
+
"type": "string | string[] | undefined",
|
|
96870
|
+
"schema": {
|
|
96871
|
+
"0": "undefined",
|
|
96872
|
+
"1": "string",
|
|
96873
|
+
"2": {
|
|
96874
|
+
"kind": "array",
|
|
96875
|
+
"type": "string[]",
|
|
96876
|
+
"schema": [
|
|
96877
|
+
"string"
|
|
96878
|
+
]
|
|
96879
|
+
}
|
|
96880
|
+
}
|
|
96881
|
+
}
|
|
96882
|
+
},
|
|
96820
96883
|
{
|
|
96821
96884
|
"name": "trailingIcon",
|
|
96822
96885
|
"global": false,
|
|
@@ -98596,13 +98659,13 @@ const B24UIMeta = {
|
|
|
98596
98659
|
"description": "",
|
|
98597
98660
|
"tags": [],
|
|
98598
98661
|
"required": false,
|
|
98599
|
-
"type": 'Pick<{ root?: ClassNameValue; list?: ClassNameValue; label?: ClassNameValue; item?: ClassNameValue; link?: ClassNameValue; linkLeadingIcon?: ClassNameValue; linkLeadingAvatar?: ClassNameValue; linkLeadingAvatarSize?: ClassNameValue; linkLeadingHint?: ClassNameValue; linkLeadingBadge?: ClassNameValue; linkLeadingBadgeSize?: ClassNameValue; linkTrailing?: ClassNameValue; linkTrailingIcon?: ClassNameValue; linkLabel?: ClassNameValue; linkLabelWrapper?: ClassNameValue; linkLabelExternalIcon?: ClassNameValue; childList?: ClassNameValue; childLabel?: ClassNameValue; childItem?: ClassNameValue; childLink?: ClassNameValue; childLinkWrapper?: ClassNameValue; childLinkIcon?: ClassNameValue; childLinkHint?: ClassNameValue; childLinkBadge?: ClassNameValue; childLinkBadgeSize?: ClassNameValue; childLinkLabel?: ClassNameValue; childLinkLabelExternalIcon?: ClassNameValue; separator?: ClassNameValue; popoverWrapper?: ClassNameValue; viewportWrapper?: ClassNameValue; viewport?: ClassNameValue; content?: ClassNameValue; }, "label" | "content" | "link" | "childList" | "item" | "linkLeadingIcon" | "linkLeadingAvatar" | "linkLeadingAvatarSize" | "linkLeadingHint" | "linkLeadingBadge" | "linkLeadingBadgeSize" | "
|
|
98662
|
+
"type": 'Pick<{ root?: ClassNameValue; list?: ClassNameValue; label?: ClassNameValue; item?: ClassNameValue; link?: ClassNameValue; linkLeadingIcon?: ClassNameValue; linkLeadingAvatar?: ClassNameValue; linkLeadingAvatarSize?: ClassNameValue; linkLeadingHint?: ClassNameValue; linkLeadingBadge?: ClassNameValue; linkLeadingBadgeSize?: ClassNameValue; linkTrailing?: ClassNameValue; linkTrailingIcon?: ClassNameValue; linkLabel?: ClassNameValue; linkLabelWrapper?: ClassNameValue; linkLabelExternalIcon?: ClassNameValue; childList?: ClassNameValue; childLabel?: ClassNameValue; childItem?: ClassNameValue; childLink?: ClassNameValue; childLinkWrapper?: ClassNameValue; childLinkIcon?: ClassNameValue; childLinkHint?: ClassNameValue; childLinkBadge?: ClassNameValue; childLinkBadgeSize?: ClassNameValue; childLinkLabel?: ClassNameValue; childLinkLabelExternalIcon?: ClassNameValue; separator?: ClassNameValue; popoverWrapper?: ClassNameValue; viewportWrapper?: ClassNameValue; viewport?: ClassNameValue; content?: ClassNameValue; }, "label" | "content" | "link" | "linkTrailing" | "childList" | "item" | "linkLeadingIcon" | "linkLeadingAvatar" | "linkLeadingAvatarSize" | "linkLeadingHint" | "linkLeadingBadge" | "linkLeadingBadgeSize" | "linkTrailingIcon" | "linkLabel" | "linkLabelExternalIcon" | "childLabel" | "childItem" | "childLink" | "childLinkWrapper" | "childLinkIcon" | "childLinkHint" | "childLinkBadge" | "childLinkBadgeSize" | "childLinkLabel" | "childLinkLabelExternalIcon" | "popoverWrapper"> | undefined',
|
|
98600
98663
|
"schema": {
|
|
98601
98664
|
"kind": "enum",
|
|
98602
|
-
"type": 'Pick<{ root?: ClassNameValue; list?: ClassNameValue; label?: ClassNameValue; item?: ClassNameValue; link?: ClassNameValue; linkLeadingIcon?: ClassNameValue; linkLeadingAvatar?: ClassNameValue; linkLeadingAvatarSize?: ClassNameValue; linkLeadingHint?: ClassNameValue; linkLeadingBadge?: ClassNameValue; linkLeadingBadgeSize?: ClassNameValue; linkTrailing?: ClassNameValue; linkTrailingIcon?: ClassNameValue; linkLabel?: ClassNameValue; linkLabelWrapper?: ClassNameValue; linkLabelExternalIcon?: ClassNameValue; childList?: ClassNameValue; childLabel?: ClassNameValue; childItem?: ClassNameValue; childLink?: ClassNameValue; childLinkWrapper?: ClassNameValue; childLinkIcon?: ClassNameValue; childLinkHint?: ClassNameValue; childLinkBadge?: ClassNameValue; childLinkBadgeSize?: ClassNameValue; childLinkLabel?: ClassNameValue; childLinkLabelExternalIcon?: ClassNameValue; separator?: ClassNameValue; popoverWrapper?: ClassNameValue; viewportWrapper?: ClassNameValue; viewport?: ClassNameValue; content?: ClassNameValue; }, "label" | "content" | "link" | "childList" | "item" | "linkLeadingIcon" | "linkLeadingAvatar" | "linkLeadingAvatarSize" | "linkLeadingHint" | "linkLeadingBadge" | "linkLeadingBadgeSize" | "
|
|
98665
|
+
"type": 'Pick<{ root?: ClassNameValue; list?: ClassNameValue; label?: ClassNameValue; item?: ClassNameValue; link?: ClassNameValue; linkLeadingIcon?: ClassNameValue; linkLeadingAvatar?: ClassNameValue; linkLeadingAvatarSize?: ClassNameValue; linkLeadingHint?: ClassNameValue; linkLeadingBadge?: ClassNameValue; linkLeadingBadgeSize?: ClassNameValue; linkTrailing?: ClassNameValue; linkTrailingIcon?: ClassNameValue; linkLabel?: ClassNameValue; linkLabelWrapper?: ClassNameValue; linkLabelExternalIcon?: ClassNameValue; childList?: ClassNameValue; childLabel?: ClassNameValue; childItem?: ClassNameValue; childLink?: ClassNameValue; childLinkWrapper?: ClassNameValue; childLinkIcon?: ClassNameValue; childLinkHint?: ClassNameValue; childLinkBadge?: ClassNameValue; childLinkBadgeSize?: ClassNameValue; childLinkLabel?: ClassNameValue; childLinkLabelExternalIcon?: ClassNameValue; separator?: ClassNameValue; popoverWrapper?: ClassNameValue; viewportWrapper?: ClassNameValue; viewport?: ClassNameValue; content?: ClassNameValue; }, "label" | "content" | "link" | "linkTrailing" | "childList" | "item" | "linkLeadingIcon" | "linkLeadingAvatar" | "linkLeadingAvatarSize" | "linkLeadingHint" | "linkLeadingBadge" | "linkLeadingBadgeSize" | "linkTrailingIcon" | "linkLabel" | "linkLabelExternalIcon" | "childLabel" | "childItem" | "childLink" | "childLinkWrapper" | "childLinkIcon" | "childLinkHint" | "childLinkBadge" | "childLinkBadgeSize" | "childLinkLabel" | "childLinkLabelExternalIcon" | "popoverWrapper"> | undefined',
|
|
98603
98666
|
"schema": {
|
|
98604
98667
|
"0": "undefined",
|
|
98605
|
-
"1": 'Pick<{ root?: ClassNameValue; list?: ClassNameValue; label?: ClassNameValue; item?: ClassNameValue; link?: ClassNameValue; linkLeadingIcon?: ClassNameValue; linkLeadingAvatar?: ClassNameValue; linkLeadingAvatarSize?: ClassNameValue; linkLeadingHint?: ClassNameValue; linkLeadingBadge?: ClassNameValue; linkLeadingBadgeSize?: ClassNameValue; linkTrailing?: ClassNameValue; linkTrailingIcon?: ClassNameValue; linkLabel?: ClassNameValue; linkLabelWrapper?: ClassNameValue; linkLabelExternalIcon?: ClassNameValue; childList?: ClassNameValue; childLabel?: ClassNameValue; childItem?: ClassNameValue; childLink?: ClassNameValue; childLinkWrapper?: ClassNameValue; childLinkIcon?: ClassNameValue; childLinkHint?: ClassNameValue; childLinkBadge?: ClassNameValue; childLinkBadgeSize?: ClassNameValue; childLinkLabel?: ClassNameValue; childLinkLabelExternalIcon?: ClassNameValue; separator?: ClassNameValue; popoverWrapper?: ClassNameValue; viewportWrapper?: ClassNameValue; viewport?: ClassNameValue; content?: ClassNameValue; }, "label" | "content" | "link" | "childList" | "item" | "linkLeadingIcon" | "linkLeadingAvatar" | "linkLeadingAvatarSize" | "linkLeadingHint" | "linkLeadingBadge" | "linkLeadingBadgeSize" | "
|
|
98668
|
+
"1": 'Pick<{ root?: ClassNameValue; list?: ClassNameValue; label?: ClassNameValue; item?: ClassNameValue; link?: ClassNameValue; linkLeadingIcon?: ClassNameValue; linkLeadingAvatar?: ClassNameValue; linkLeadingAvatarSize?: ClassNameValue; linkLeadingHint?: ClassNameValue; linkLeadingBadge?: ClassNameValue; linkLeadingBadgeSize?: ClassNameValue; linkTrailing?: ClassNameValue; linkTrailingIcon?: ClassNameValue; linkLabel?: ClassNameValue; linkLabelWrapper?: ClassNameValue; linkLabelExternalIcon?: ClassNameValue; childList?: ClassNameValue; childLabel?: ClassNameValue; childItem?: ClassNameValue; childLink?: ClassNameValue; childLinkWrapper?: ClassNameValue; childLinkIcon?: ClassNameValue; childLinkHint?: ClassNameValue; childLinkBadge?: ClassNameValue; childLinkBadgeSize?: ClassNameValue; childLinkLabel?: ClassNameValue; childLinkLabelExternalIcon?: ClassNameValue; separator?: ClassNameValue; popoverWrapper?: ClassNameValue; viewportWrapper?: ClassNameValue; viewport?: ClassNameValue; content?: ClassNameValue; }, "label" | "content" | "link" | "linkTrailing" | "childList" | "item" | "linkLeadingIcon" | "linkLeadingAvatar" | "linkLeadingAvatarSize" | "linkLeadingHint" | "linkLeadingBadge" | "linkLeadingBadgeSize" | "linkTrailingIcon" | "linkLabel" | "linkLabelExternalIcon" | "childLabel" | "childItem" | "childLink" | "childLinkWrapper" | "childLinkIcon" | "childLinkHint" | "childLinkBadge" | "childLinkBadgeSize" | "childLinkLabel" | "childLinkLabelExternalIcon" | "popoverWrapper">'
|
|
98606
98669
|
}
|
|
98607
98670
|
}
|
|
98608
98671
|
},
|
|
@@ -99240,7 +99303,7 @@ const B24UIMeta = {
|
|
|
99240
99303
|
"2": '"horizontal"'
|
|
99241
99304
|
}
|
|
99242
99305
|
},
|
|
99243
|
-
"default": '"horizontal"'
|
|
99306
|
+
"default": '"horizontal" as never'
|
|
99244
99307
|
},
|
|
99245
99308
|
{
|
|
99246
99309
|
"name": "collapsed",
|
|
@@ -100203,38 +100266,6 @@ const B24UIMeta = {
|
|
|
100203
100266
|
}
|
|
100204
100267
|
}
|
|
100205
100268
|
},
|
|
100206
|
-
{
|
|
100207
|
-
"name": "modelValue",
|
|
100208
|
-
"global": false,
|
|
100209
|
-
"description": "The controlled value of the menu item to activate. Can be used as `v-model`.",
|
|
100210
|
-
"tags": [],
|
|
100211
|
-
"required": false,
|
|
100212
|
-
"type": "string | undefined",
|
|
100213
|
-
"schema": {
|
|
100214
|
-
"kind": "enum",
|
|
100215
|
-
"type": "string | undefined",
|
|
100216
|
-
"schema": {
|
|
100217
|
-
"0": "undefined",
|
|
100218
|
-
"1": "string"
|
|
100219
|
-
}
|
|
100220
|
-
}
|
|
100221
|
-
},
|
|
100222
|
-
{
|
|
100223
|
-
"name": "defaultValue",
|
|
100224
|
-
"global": false,
|
|
100225
|
-
"description": "The value of the menu item that should be active when initially rendered.\n\nUse when you do not need to control the value state.",
|
|
100226
|
-
"tags": [],
|
|
100227
|
-
"required": false,
|
|
100228
|
-
"type": "string | undefined",
|
|
100229
|
-
"schema": {
|
|
100230
|
-
"kind": "enum",
|
|
100231
|
-
"type": "string | undefined",
|
|
100232
|
-
"schema": {
|
|
100233
|
-
"0": "undefined",
|
|
100234
|
-
"1": "string"
|
|
100235
|
-
}
|
|
100236
|
-
}
|
|
100237
|
-
},
|
|
100238
100269
|
{
|
|
100239
100270
|
"name": "delayDuration",
|
|
100240
100271
|
"global": false,
|
|
@@ -100389,24 +100420,6 @@ const B24UIMeta = {
|
|
|
100389
100420
|
}
|
|
100390
100421
|
}
|
|
100391
100422
|
},
|
|
100392
|
-
{
|
|
100393
|
-
"name": "type",
|
|
100394
|
-
"global": false,
|
|
100395
|
-
"description": 'Determines whether a "single" or "multiple" items can be selected at a time.\n\nThis prop will overwrite the inferred type from `modelValue` and `defaultValue`.',
|
|
100396
|
-
"tags": [],
|
|
100397
|
-
"required": false,
|
|
100398
|
-
"type": "SingleOrMultipleType | undefined",
|
|
100399
|
-
"schema": {
|
|
100400
|
-
"kind": "enum",
|
|
100401
|
-
"type": "SingleOrMultipleType | undefined",
|
|
100402
|
-
"schema": {
|
|
100403
|
-
"0": "undefined",
|
|
100404
|
-
"1": '"single"',
|
|
100405
|
-
"2": '"multiple"'
|
|
100406
|
-
}
|
|
100407
|
-
},
|
|
100408
|
-
"default": '"multiple"'
|
|
100409
|
-
},
|
|
100410
100423
|
{
|
|
100411
100424
|
"name": "collapsible",
|
|
100412
100425
|
"global": false,
|
|
@@ -100473,12 +100486,12 @@ const B24UIMeta = {
|
|
|
100473
100486
|
"name": "update:modelValue",
|
|
100474
100487
|
"description": "",
|
|
100475
100488
|
"tags": [],
|
|
100476
|
-
"type": "[value: string]",
|
|
100477
|
-
"signature": '(evt: "update:modelValue", value: string): void'
|
|
100489
|
+
"type": "[value: string | string[] | undefined]",
|
|
100490
|
+
"signature": '(evt: "update:modelValue", value: string | string[] | undefined): void'
|
|
100478
100491
|
}
|
|
100479
100492
|
],
|
|
100480
100493
|
"exposed": [],
|
|
100481
|
-
"hash": "
|
|
100494
|
+
"hash": "520fNSmj7JH0DehShqNk-LqWjiql-Pbp_FW-ihEcJPU"
|
|
100482
100495
|
}
|
|
100483
100496
|
},
|
|
100484
100497
|
"B24OverlayProvider": {
|
|
@@ -104661,7 +104674,7 @@ const B24UIMeta = {
|
|
|
104661
104674
|
}
|
|
104662
104675
|
],
|
|
104663
104676
|
"exposed": [],
|
|
104664
|
-
"hash": "
|
|
104677
|
+
"hash": "XAUYoQy93YuRiuRRiCu4IaEh5LgndB_r3xyfhRfcsoI"
|
|
104665
104678
|
}
|
|
104666
104679
|
},
|
|
104667
104680
|
"B24Range": {
|
|
@@ -111336,7 +111349,7 @@ const B24UIMeta = {
|
|
|
111336
111349
|
}
|
|
111337
111350
|
],
|
|
111338
111351
|
"exposed": [],
|
|
111339
|
-
"hash": "
|
|
111352
|
+
"hash": "L-Cf6BrsA61GRhgcvGKTebruHjs-W_33usKwCmqwJjU"
|
|
111340
111353
|
}
|
|
111341
111354
|
},
|
|
111342
111355
|
"B24Separator": {
|
|
@@ -120995,17 +121008,17 @@ const B24UIMeta = {
|
|
|
120995
121008
|
}
|
|
120996
121009
|
],
|
|
120997
121010
|
"required": false,
|
|
120998
|
-
"type": 'boolean | (Partial<Omit<VirtualizerOptions<Element, Element>, "getScrollElement" | "count" | "estimateSize" | "overscan">> & { overscan?: number | undefined; estimateSize?: number | undefined; }) | undefined',
|
|
121011
|
+
"type": 'boolean | (Partial<Omit<VirtualizerOptions<Element, Element>, "getScrollElement" | "count" | "estimateSize" | "overscan">> & { overscan?: number | undefined; estimateSize?: number | ((index: number) => number) | undefined; }) | undefined',
|
|
120999
121012
|
"schema": {
|
|
121000
121013
|
"kind": "enum",
|
|
121001
|
-
"type": 'boolean | (Partial<Omit<VirtualizerOptions<Element, Element>, "getScrollElement" | "count" | "estimateSize" | "overscan">> & { overscan?: number | undefined; estimateSize?: number | undefined; }) | undefined',
|
|
121014
|
+
"type": 'boolean | (Partial<Omit<VirtualizerOptions<Element, Element>, "getScrollElement" | "count" | "estimateSize" | "overscan">> & { overscan?: number | undefined; estimateSize?: number | ((index: number) => number) | undefined; }) | undefined',
|
|
121002
121015
|
"schema": {
|
|
121003
121016
|
"0": "undefined",
|
|
121004
121017
|
"1": "false",
|
|
121005
121018
|
"2": "true",
|
|
121006
121019
|
"3": {
|
|
121007
121020
|
"kind": "object",
|
|
121008
|
-
"type": 'Partial<Omit<VirtualizerOptions<Element, Element>, "getScrollElement" | "count" | "estimateSize" | "overscan">> & { overscan?: number | undefined; estimateSize?: number | undefined; }',
|
|
121021
|
+
"type": 'Partial<Omit<VirtualizerOptions<Element, Element>, "getScrollElement" | "count" | "estimateSize" | "overscan">> & { overscan?: number | undefined; estimateSize?: number | ((index: number) => number) | undefined; }',
|
|
121009
121022
|
"schema": {
|
|
121010
121023
|
"onChange": {
|
|
121011
121024
|
"name": "onChange",
|
|
@@ -121482,7 +121495,7 @@ const B24UIMeta = {
|
|
|
121482
121495
|
"estimateSize": {
|
|
121483
121496
|
"name": "estimateSize",
|
|
121484
121497
|
"global": false,
|
|
121485
|
-
"description": "Estimated size (in px) of each item",
|
|
121498
|
+
"description": "Estimated size (in px) of each item, or a function that returns the size for a given index",
|
|
121486
121499
|
"tags": [
|
|
121487
121500
|
{
|
|
121488
121501
|
"name": "defaultValue",
|
|
@@ -121490,8 +121503,20 @@ const B24UIMeta = {
|
|
|
121490
121503
|
}
|
|
121491
121504
|
],
|
|
121492
121505
|
"required": false,
|
|
121493
|
-
"type": "number | undefined",
|
|
121494
|
-
"schema":
|
|
121506
|
+
"type": "number | ((index: number) => number) | undefined",
|
|
121507
|
+
"schema": {
|
|
121508
|
+
"kind": "enum",
|
|
121509
|
+
"type": "number | ((index: number) => number) | undefined",
|
|
121510
|
+
"schema": {
|
|
121511
|
+
"0": "undefined",
|
|
121512
|
+
"1": "number",
|
|
121513
|
+
"2": {
|
|
121514
|
+
"kind": "event",
|
|
121515
|
+
"type": "(index: number): number",
|
|
121516
|
+
"schema": []
|
|
121517
|
+
}
|
|
121518
|
+
}
|
|
121519
|
+
}
|
|
121495
121520
|
}
|
|
121496
121521
|
}
|
|
121497
121522
|
}
|
|
@@ -123543,7 +123568,7 @@ const B24UIMeta = {
|
|
|
123543
123568
|
}
|
|
123544
123569
|
],
|
|
123545
123570
|
"exposed": [],
|
|
123546
|
-
"hash": "
|
|
123571
|
+
"hash": "irkn8qnmGXuqh5Of_BGFc3-3FcvgqSuiXVRrnfpA1P8"
|
|
123547
123572
|
}
|
|
123548
123573
|
},
|
|
123549
123574
|
"B24TableWrapper": {
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defu } from 'defu';
|
|
2
2
|
import { defineNuxtModule, createResolver, addPlugin, hasNuxtModule, addComponentsDir, addImportsDir, installModule } from '@nuxt/kit';
|
|
3
|
-
import { d as defaultOptions, v as version, n as name, a as getDefaultConfig, b as addTemplates } from './shared/b24ui-nuxt.
|
|
3
|
+
import { d as defaultOptions, v as version, n as name, a as getDefaultConfig, b as addTemplates } from './shared/b24ui-nuxt.Dspx5yCK.mjs';
|
|
4
4
|
import 'node:url';
|
|
5
5
|
import 'scule';
|
|
6
6
|
import 'knitwork';
|
|
@@ -45,7 +45,8 @@ const b24ui = computed(() => tv({ extend: theme, ...appConfig.b24ui?.checkboxGro
|
|
|
45
45
|
required: props.required,
|
|
46
46
|
orientation: props.orientation,
|
|
47
47
|
color: props.color,
|
|
48
|
-
variant: props.variant
|
|
48
|
+
variant: props.variant,
|
|
49
|
+
disabled: disabled.value
|
|
49
50
|
}));
|
|
50
51
|
function normalizeItem(item) {
|
|
51
52
|
if (item === null) {
|
|
@@ -113,7 +114,7 @@ function onUpdate(value) {
|
|
|
113
114
|
:disabled="item.disabled || disabled"
|
|
114
115
|
:b24ui="{ ...props.b24ui ? omit(props.b24ui, ['root']) : void 0, ...item.b24ui || {} }"
|
|
115
116
|
data-slot="item"
|
|
116
|
-
:class="b24ui.item({ class: [props.b24ui?.item, item.b24ui?.item, item.class] })"
|
|
117
|
+
:class="b24ui.item({ class: [props.b24ui?.item, item.b24ui?.item, item.class], disabled: item.disabled || disabled })"
|
|
117
118
|
>
|
|
118
119
|
<template v-for="(_, name) in getProxySlots()" #[name]>
|
|
119
120
|
<slot :name="name" :item="item" />
|
|
@@ -11,9 +11,10 @@ import { useFuse } from "@vueuse/integrations/useFuse";
|
|
|
11
11
|
import { useAppConfig } from "#imports";
|
|
12
12
|
import { useLocale } from "../composables/useLocale";
|
|
13
13
|
import { omit, get } from "../utils";
|
|
14
|
-
import { tv } from "../utils/tv";
|
|
15
14
|
import { highlight } from "../utils/fuse";
|
|
16
15
|
import { pickLinkProps } from "../utils/link";
|
|
16
|
+
import { getEstimateSize } from "../utils/virtualizer";
|
|
17
|
+
import { tv } from "../utils/tv";
|
|
17
18
|
import icons from "../dictionary/icons";
|
|
18
19
|
import B24Avatar from "./Avatar.vue";
|
|
19
20
|
import B24Button from "./Button.vue";
|
|
@@ -58,7 +59,12 @@ const { t } = useLocale();
|
|
|
58
59
|
const appConfig = useAppConfig();
|
|
59
60
|
const rootProps = useForwardPropsEmits(reactivePick(props, "as", "disabled", "multiple", "modelValue", "defaultValue", "highlightOnHover"), emits);
|
|
60
61
|
const inputProps = useForwardProps(reactivePick(props, "loading"));
|
|
61
|
-
const virtualizerProps = toRef(() =>
|
|
62
|
+
const virtualizerProps = toRef(() => {
|
|
63
|
+
if (!props.virtualize) return false;
|
|
64
|
+
return defu(typeof props.virtualize === "boolean" ? {} : props.virtualize, {
|
|
65
|
+
estimateSize: getEstimateSize(filteredItems.value, "md", props.descriptionKey)
|
|
66
|
+
});
|
|
67
|
+
});
|
|
62
68
|
const [DefineItemTemplate, ReuseItemTemplate] = createReusableTemplate({
|
|
63
69
|
props: {
|
|
64
70
|
item: {
|
|
@@ -75,7 +75,9 @@ const { t } = useLocale();
|
|
|
75
75
|
const appConfig = useAppConfig();
|
|
76
76
|
const { toggleSearch } = useDashboard({ toggleSearch: () => {
|
|
77
77
|
} });
|
|
78
|
-
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.dashboardSearchButton || {} })(
|
|
78
|
+
const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.dashboardSearchButton || {} })({
|
|
79
|
+
collapsed: props.collapsed
|
|
80
|
+
}));
|
|
79
81
|
</script>
|
|
80
82
|
|
|
81
83
|
<template>
|
|
@@ -86,7 +88,6 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.dashboa
|
|
|
86
88
|
v-bind="{
|
|
87
89
|
...buttonProps,
|
|
88
90
|
...collapsed ? {
|
|
89
|
-
'label': void 0,
|
|
90
91
|
'aria-label': label || t('dashboardSearchButton.label')
|
|
91
92
|
} : {
|
|
92
93
|
color: 'air-secondary-no-accent'
|
|
@@ -102,7 +103,7 @@ const b24ui = computed(() => tv({ extend: tv(theme), ...appConfig.b24ui?.dashboa
|
|
|
102
103
|
<slot :name="name" v-bind="slotData" />
|
|
103
104
|
</template>
|
|
104
105
|
|
|
105
|
-
<template
|
|
106
|
+
<template #trailing="{ b24ui: b24uiProxy }">
|
|
106
107
|
<div data-slot="trailing" :class="b24ui.trailing({ class: props.b24ui?.trailing })">
|
|
107
108
|
<slot name="trailing" :b24ui="b24uiProxy">
|
|
108
109
|
<template v-if="kbds?.length">
|