@bitrix24/b24ui-nuxt 2.1.4 → 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.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
- "trailing": {
6836
- "name": "trailing",
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
- "baseLoading": {
6845
- "name": "baseLoading",
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
- "baseLoadingWaitIcon": {
6854
- "name": "baseLoadingWaitIcon",
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
- "baseLoadingClockIcon": {
6863
- "name": "baseLoadingClockIcon",
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
- "baseLoadingSpinnerIcon": {
6872
- "name": "baseLoadingSpinnerIcon",
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
- "baseLine": {
6881
- "name": "baseLine",
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
- "label": {
6890
- "name": "label",
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": "hpAByieTWtO26zrwTpQODSr3eaPM6hpdeWp2JH_Olzs"
8862
+ "hash": "BITru2BFV1WIKYd_JWoqHKbMPMEkcuYq6YB4qGizJfQ"
8863
8863
  }
8864
8864
  },
8865
8865
  "B24ContentSurround": {
@@ -47740,7 +47740,7 @@ const B24UIMeta = {
47740
47740
  }
47741
47741
  ],
47742
47742
  "exposed": [],
47743
- "hash": "EiLM1nat3rqRer6w1Dj7Fk7MKWAaUB3Z5RxFLyM-7Wo"
47743
+ "hash": "S_lIijGysSBqCOKHSmA3XB5YruQ_-lvMR6-09NNEVxc"
47744
47744
  }
47745
47745
  },
47746
47746
  "B24Chip": {
@@ -58701,15 +58701,15 @@ const B24UIMeta = {
58701
58701
  "description": "",
58702
58702
  "tags": [],
58703
58703
  "required": false,
58704
- "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",
58705
58705
  "schema": {
58706
58706
  "kind": "enum",
58707
- "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",
58708
58708
  "schema": {
58709
58709
  "0": "undefined",
58710
58710
  "1": {
58711
58711
  "kind": "object",
58712
- "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; }",
58713
58713
  "schema": {
58714
58714
  "base": {
58715
58715
  "name": "base",
@@ -58738,8 +58738,8 @@ const B24UIMeta = {
58738
58738
  }
58739
58739
  }
58740
58740
  },
58741
- "trailing": {
58742
- "name": "trailing",
58741
+ "baseLine": {
58742
+ "name": "baseLine",
58743
58743
  "global": false,
58744
58744
  "description": "",
58745
58745
  "tags": [],
@@ -58747,8 +58747,8 @@ const B24UIMeta = {
58747
58747
  "type": "ClassNameValue",
58748
58748
  "schema": "ClassNameValue"
58749
58749
  },
58750
- "baseLoading": {
58751
- "name": "baseLoading",
58750
+ "label": {
58751
+ "name": "label",
58752
58752
  "global": false,
58753
58753
  "description": "",
58754
58754
  "tags": [],
@@ -58756,8 +58756,8 @@ const B24UIMeta = {
58756
58756
  "type": "ClassNameValue",
58757
58757
  "schema": "ClassNameValue"
58758
58758
  },
58759
- "baseLoadingWaitIcon": {
58760
- "name": "baseLoadingWaitIcon",
58759
+ "trailing": {
58760
+ "name": "trailing",
58761
58761
  "global": false,
58762
58762
  "description": "",
58763
58763
  "tags": [],
@@ -58765,8 +58765,8 @@ const B24UIMeta = {
58765
58765
  "type": "ClassNameValue",
58766
58766
  "schema": "ClassNameValue"
58767
58767
  },
58768
- "baseLoadingClockIcon": {
58769
- "name": "baseLoadingClockIcon",
58768
+ "baseLoading": {
58769
+ "name": "baseLoading",
58770
58770
  "global": false,
58771
58771
  "description": "",
58772
58772
  "tags": [],
@@ -58774,8 +58774,8 @@ const B24UIMeta = {
58774
58774
  "type": "ClassNameValue",
58775
58775
  "schema": "ClassNameValue"
58776
58776
  },
58777
- "baseLoadingSpinnerIcon": {
58778
- "name": "baseLoadingSpinnerIcon",
58777
+ "baseLoadingWaitIcon": {
58778
+ "name": "baseLoadingWaitIcon",
58779
58779
  "global": false,
58780
58780
  "description": "",
58781
58781
  "tags": [],
@@ -58783,8 +58783,8 @@ const B24UIMeta = {
58783
58783
  "type": "ClassNameValue",
58784
58784
  "schema": "ClassNameValue"
58785
58785
  },
58786
- "baseLine": {
58787
- "name": "baseLine",
58786
+ "baseLoadingClockIcon": {
58787
+ "name": "baseLoadingClockIcon",
58788
58788
  "global": false,
58789
58789
  "description": "",
58790
58790
  "tags": [],
@@ -58792,8 +58792,8 @@ const B24UIMeta = {
58792
58792
  "type": "ClassNameValue",
58793
58793
  "schema": "ClassNameValue"
58794
58794
  },
58795
- "label": {
58796
- "name": "label",
58795
+ "baseLoadingSpinnerIcon": {
58796
+ "name": "baseLoadingSpinnerIcon",
58797
58797
  "global": false,
58798
58798
  "description": "",
58799
58799
  "tags": [],
@@ -60765,7 +60765,7 @@ const B24UIMeta = {
60765
60765
  ],
60766
60766
  "events": [],
60767
60767
  "exposed": [],
60768
- "hash": "tsyvEezGchnv5QZN-TYz2cSfwWhM1mXll7qBw6HHi4g"
60768
+ "hash": "je3_Pi4e2l2SMVlKq_w3D-O9Jw-2yHjWKjS1GF3hLoo"
60769
60769
  }
60770
60770
  },
60771
60771
  "B24DescriptionList": {
@@ -96811,6 +96811,75 @@ const B24UIMeta = {
96811
96811
  "type": "any",
96812
96812
  "schema": "any"
96813
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
+ },
96814
96883
  {
96815
96884
  "name": "trailingIcon",
96816
96885
  "global": false,
@@ -98590,13 +98659,13 @@ const B24UIMeta = {
98590
98659
  "description": "",
98591
98660
  "tags": [],
98592
98661
  "required": false,
98593
- "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" | "linkTrailing" | "linkTrailingIcon" | "linkLabel" | "linkLabelExternalIcon" | "childLabel" | "childItem" | "childLink" | "childLinkWrapper" | "childLinkIcon" | "childLinkHint" | "childLinkBadge" | "childLinkBadgeSize" | "childLinkLabel" | "childLinkLabelExternalIcon" | "popoverWrapper"> | undefined',
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',
98594
98663
  "schema": {
98595
98664
  "kind": "enum",
98596
- "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" | "linkTrailing" | "linkTrailingIcon" | "linkLabel" | "linkLabelExternalIcon" | "childLabel" | "childItem" | "childLink" | "childLinkWrapper" | "childLinkIcon" | "childLinkHint" | "childLinkBadge" | "childLinkBadgeSize" | "childLinkLabel" | "childLinkLabelExternalIcon" | "popoverWrapper"> | undefined',
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',
98597
98666
  "schema": {
98598
98667
  "0": "undefined",
98599
- "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" | "linkTrailing" | "linkTrailingIcon" | "linkLabel" | "linkLabelExternalIcon" | "childLabel" | "childItem" | "childLink" | "childLinkWrapper" | "childLinkIcon" | "childLinkHint" | "childLinkBadge" | "childLinkBadgeSize" | "childLinkLabel" | "childLinkLabelExternalIcon" | "popoverWrapper">'
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">'
98600
98669
  }
98601
98670
  }
98602
98671
  },
@@ -99234,7 +99303,7 @@ const B24UIMeta = {
99234
99303
  "2": '"horizontal"'
99235
99304
  }
99236
99305
  },
99237
- "default": '"horizontal"'
99306
+ "default": '"horizontal" as never'
99238
99307
  },
99239
99308
  {
99240
99309
  "name": "collapsed",
@@ -100197,38 +100266,6 @@ const B24UIMeta = {
100197
100266
  }
100198
100267
  }
100199
100268
  },
100200
- {
100201
- "name": "modelValue",
100202
- "global": false,
100203
- "description": "The controlled value of the menu item to activate. Can be used as `v-model`.",
100204
- "tags": [],
100205
- "required": false,
100206
- "type": "string | undefined",
100207
- "schema": {
100208
- "kind": "enum",
100209
- "type": "string | undefined",
100210
- "schema": {
100211
- "0": "undefined",
100212
- "1": "string"
100213
- }
100214
- }
100215
- },
100216
- {
100217
- "name": "defaultValue",
100218
- "global": false,
100219
- "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.",
100220
- "tags": [],
100221
- "required": false,
100222
- "type": "string | undefined",
100223
- "schema": {
100224
- "kind": "enum",
100225
- "type": "string | undefined",
100226
- "schema": {
100227
- "0": "undefined",
100228
- "1": "string"
100229
- }
100230
- }
100231
- },
100232
100269
  {
100233
100270
  "name": "delayDuration",
100234
100271
  "global": false,
@@ -100383,24 +100420,6 @@ const B24UIMeta = {
100383
100420
  }
100384
100421
  }
100385
100422
  },
100386
- {
100387
- "name": "type",
100388
- "global": false,
100389
- "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`.',
100390
- "tags": [],
100391
- "required": false,
100392
- "type": "SingleOrMultipleType | undefined",
100393
- "schema": {
100394
- "kind": "enum",
100395
- "type": "SingleOrMultipleType | undefined",
100396
- "schema": {
100397
- "0": "undefined",
100398
- "1": '"single"',
100399
- "2": '"multiple"'
100400
- }
100401
- },
100402
- "default": '"multiple"'
100403
- },
100404
100423
  {
100405
100424
  "name": "collapsible",
100406
100425
  "global": false,
@@ -100467,12 +100486,12 @@ const B24UIMeta = {
100467
100486
  "name": "update:modelValue",
100468
100487
  "description": "",
100469
100488
  "tags": [],
100470
- "type": "[value: string]",
100471
- "signature": '(evt: "update:modelValue", value: string): void'
100489
+ "type": "[value: string | string[] | undefined]",
100490
+ "signature": '(evt: "update:modelValue", value: string | string[] | undefined): void'
100472
100491
  }
100473
100492
  ],
100474
100493
  "exposed": [],
100475
- "hash": "zPI25xnP17VDZlHEhAoV8lw7DtTEooz_EVUrvHe17sc"
100494
+ "hash": "520fNSmj7JH0DehShqNk-LqWjiql-Pbp_FW-ihEcJPU"
100476
100495
  }
100477
100496
  },
100478
100497
  "B24OverlayProvider": {
@@ -104655,7 +104674,7 @@ const B24UIMeta = {
104655
104674
  }
104656
104675
  ],
104657
104676
  "exposed": [],
104658
- "hash": "wioKmy79omCm6xHk6cnHXka4ahgbs6h6-53_n1fBX6w"
104677
+ "hash": "XAUYoQy93YuRiuRRiCu4IaEh5LgndB_r3xyfhRfcsoI"
104659
104678
  }
104660
104679
  },
104661
104680
  "B24Range": {
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitrix24/b24ui-nuxt",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "docs": "https://bitrix24.github.io/b24ui/guide/installation-nuxt-app.html",
5
5
  "configKey": "b24ui",
6
6
  "compatibility": {
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.Bs0V9FLV.mjs';
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" />
@@ -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 v-if="!collapsed" #trailing="{ b24ui: b24uiProxy }">
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">
@@ -1,4 +1,4 @@
1
- import type { NavigationMenuRootProps, NavigationMenuRootEmits, NavigationMenuContentProps, NavigationMenuContentEmits, AccordionRootProps } from 'reka-ui';
1
+ import type { NavigationMenuRootProps, NavigationMenuContentProps, NavigationMenuContentEmits, AccordionRootProps } from 'reka-ui';
2
2
  import type { AppConfig } from '@nuxt/schema';
3
3
  import theme from '#build/b24ui/navigation-menu';
4
4
  import type { AvatarProps, BadgeProps, IconComponent, LinkProps, PopoverProps, TooltipProps } from '../types';
@@ -75,6 +75,9 @@ export interface NavigationMenuItem extends Omit<LinkProps, 'type' | 'raw' | 'cu
75
75
  b24ui?: Pick<NavigationMenu['slots'], 'item' | 'linkLeadingAvatarSize' | 'linkLeadingAvatar' | 'linkLeadingIcon' | 'linkLabel' | 'linkLabelExternalIcon' | 'linkTrailing' | 'linkLeadingHint' | 'linkLeadingBadgeSize' | 'linkLeadingBadge' | 'linkTrailingIcon' | 'label' | 'link' | 'content' | 'childList' | 'childLabel' | 'childItem' | 'childLink' | 'childLinkIcon' | 'childLinkHint' | 'childLinkBadgeSize' | 'childLinkBadge' | 'childLinkWrapper' | 'childLinkLabel' | 'childLinkLabelExternalIcon' | 'popoverWrapper'>;
76
76
  [key: string]: any;
77
77
  }
78
+ type SingleOrMultipleType = 'single' | 'multiple';
79
+ type Orientation = NavigationMenuRootProps['orientation'];
80
+ type NavigationMenuModelValue<K extends SingleOrMultipleType = SingleOrMultipleType, O extends Orientation = Orientation> = O extends 'horizontal' ? string : K extends 'single' ? string : K extends 'multiple' ? string[] : string | string[];
78
81
  /**
79
82
  * @memo remove contentOrientation
80
83
  * @memo remove highlight
@@ -83,12 +86,37 @@ export interface NavigationMenuItem extends Omit<LinkProps, 'type' | 'raw' | 'cu
83
86
  * @memo remove color
84
87
  * @memo remove variant (link) -> use variant.pill
85
88
  */
86
- export interface NavigationMenuProps<T extends ArrayOrNested<NavigationMenuItem> = ArrayOrNested<NavigationMenuItem>> extends Pick<NavigationMenuRootProps, 'modelValue' | 'defaultValue' | 'delayDuration' | 'disableClickTrigger' | 'disableHoverTrigger' | 'skipDelayDuration' | 'disablePointerLeaveClose' | 'unmountOnHide'>, Pick<AccordionRootProps, 'disabled' | 'type' | 'collapsible'> {
89
+ export interface NavigationMenuProps<T extends ArrayOrNested<NavigationMenuItem> = ArrayOrNested<NavigationMenuItem>, K extends SingleOrMultipleType = SingleOrMultipleType, O extends Orientation = Orientation> extends Pick<NavigationMenuRootProps, 'delayDuration' | 'disableClickTrigger' | 'disableHoverTrigger' | 'skipDelayDuration' | 'disablePointerLeaveClose' | 'unmountOnHide'>, Pick<AccordionRootProps, 'disabled' | 'collapsible'> {
87
90
  /**
88
91
  * The element or component this component should render as.
89
92
  * @defaultValue 'div'
90
93
  */
91
94
  as?: any;
95
+ /**
96
+ * Determines whether a "single" or "multiple" items can be selected at a time.
97
+ *
98
+ * Only works when `orientation` is `vertical`.
99
+ * @defaultValue 'multiple'
100
+ */
101
+ type?: K;
102
+ /**
103
+ * The controlled value of the active item(s).
104
+ * - In horizontal orientation: always `string`
105
+ * - In vertical orientation with `type="single"`: `string`
106
+ * - In vertical orientation with `type="multiple"`: `string[]`
107
+ *
108
+ * Use this when you need to control the state of the items. Can be binded with `v-model`
109
+ */
110
+ modelValue?: NavigationMenuModelValue<K, O>;
111
+ /**
112
+ * The default active value of the item(s).
113
+ * - In horizontal orientation: always `string`
114
+ * - In vertical orientation with `type="single"`: `string`
115
+ * - In vertical orientation with `type="multiple"`: `string[]`
116
+ *
117
+ * Use when you do not need to control the state of the item(s).
118
+ */
119
+ defaultValue?: NavigationMenuModelValue<K, O>;
92
120
  /**
93
121
  * The icon displayed to open the menu.
94
122
  * @defaultValue icons.chevronDown
@@ -107,7 +135,7 @@ export interface NavigationMenuProps<T extends ArrayOrNested<NavigationMenuItem>
107
135
  * The orientation of the menu.
108
136
  * @defaultValue 'horizontal'
109
137
  */
110
- orientation?: NavigationMenuRootProps['orientation'];
138
+ orientation?: O;
111
139
  /**
112
140
  * Collapse the navigation menu to only show icons.
113
141
  * Only works when `orientation` is `vertical`.
@@ -138,8 +166,15 @@ export interface NavigationMenuProps<T extends ArrayOrNested<NavigationMenuItem>
138
166
  class?: any;
139
167
  b24ui?: NavigationMenu['slots'];
140
168
  }
141
- export interface NavigationMenuEmits extends NavigationMenuRootEmits {
142
- }
169
+ export type NavigationMenuEmits<K extends SingleOrMultipleType = SingleOrMultipleType, O extends Orientation = Orientation> = {
170
+ /**
171
+ * Event handler called when the value changes.
172
+ * - In horizontal orientation: emits `string`
173
+ * - In vertical orientation with `type="single"`: emits `string | undefined`
174
+ * - In vertical orientation with `type="multiple"`: emits `string[] | undefined`
175
+ */
176
+ 'update:modelValue': [value: NavigationMenuModelValue<K, O> | undefined];
177
+ };
143
178
  type SlotProps<T extends NavigationMenuItem> = (props: {
144
179
  item: T;
145
180
  index: number;
@@ -169,14 +204,14 @@ export type NavigationMenuSlots<A extends ArrayOrNested<NavigationMenuItem> = Ar
169
204
  active?: boolean;
170
205
  b24ui: NavigationMenu['b24ui'];
171
206
  }>;
172
- declare const __VLS_export: <T extends ArrayOrNested<NavigationMenuItem>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
173
- props: __VLS_PrettifyLocal<NavigationMenuProps<T> & {
174
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
207
+ declare const __VLS_export: <T extends ArrayOrNested<NavigationMenuItem>, K extends SingleOrMultipleType = SingleOrMultipleType, O extends Orientation = Orientation>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
208
+ props: __VLS_PrettifyLocal<NavigationMenuProps<T, K, O> & {
209
+ "onUpdate:modelValue"?: ((value: NavigationMenuModelValue<K, O> | undefined) => any) | undefined;
175
210
  }> & import("vue").PublicProps;
176
211
  expose: (exposed: {}) => void;
177
212
  attrs: any;
178
213
  slots: NavigationMenuSlots<T, NestedItem<T>>;
179
- emit: (evt: "update:modelValue", value: string) => void;
214
+ emit: (evt: "update:modelValue", value: NavigationMenuModelValue<K, O> | undefined) => void;
180
215
  }>) => import("vue").VNode & {
181
216
  __ctx?: Awaited<typeof __VLS_setup>;
182
217
  };