@bitrix24/b24ui-nuxt 2.1.0 → 2.1.2
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/README.md +0 -4
- package/dist/meta.d.mts +52 -92
- package/dist/meta.mjs +52 -92
- package/dist/module.json +1 -1
- package/dist/module.mjs +10 -2
- package/dist/runtime/components/Advice.d.vue.ts +1 -1
- package/dist/runtime/components/Advice.vue +3 -1
- package/dist/runtime/components/Advice.vue.d.ts +1 -1
- package/dist/runtime/components/Calendar.vue +1 -3
- package/dist/runtime/components/FileUpload.d.vue.ts +5 -0
- package/dist/runtime/components/FileUpload.vue +2 -1
- package/dist/runtime/components/FileUpload.vue.d.ts +5 -0
- package/dist/runtime/components/InputDate.d.vue.ts +0 -5
- package/dist/runtime/components/InputDate.vue +0 -6
- package/dist/runtime/components/InputDate.vue.d.ts +0 -5
- package/dist/runtime/components/InputNumber.d.vue.ts +0 -5
- package/dist/runtime/components/InputNumber.vue +1 -4
- package/dist/runtime/components/InputNumber.vue.d.ts +0 -5
- package/dist/runtime/components/InputTime.d.vue.ts +0 -5
- package/dist/runtime/components/InputTime.vue +1 -7
- package/dist/runtime/components/InputTime.vue.d.ts +0 -5
- package/dist/runtime/components/prose/Callout.vue +4 -2
- package/dist/runtime/dictionary/icons.d.ts +2 -0
- package/dist/runtime/inertia/components/Link.d.vue.ts +1 -1
- package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
- package/dist/runtime/vue/components/Link.d.vue.ts +1 -1
- package/dist/runtime/vue/components/Link.vue +1 -1
- package/dist/runtime/vue/components/Link.vue.d.ts +1 -1
- package/dist/shared/{b24ui-nuxt.CXLCGBie.mjs → b24ui-nuxt.B9uYyQGR.mjs} +21 -13
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -12,22 +12,18 @@ Visit https://bitrix24.github.io/b24ui/ to explore the documentation.
|
|
|
12
12
|
|
|
13
13
|
```bash [pnpm]
|
|
14
14
|
pnpm add @bitrix24/b24ui-nuxt
|
|
15
|
-
pnpm add @bitrix24/b24icons-vue
|
|
16
15
|
```
|
|
17
16
|
|
|
18
17
|
```bash [yarn]
|
|
19
18
|
yarn add @bitrix24/b24ui-nuxt
|
|
20
|
-
yarn add @bitrix24/b24icons-vue
|
|
21
19
|
```
|
|
22
20
|
|
|
23
21
|
```bash [npm]
|
|
24
22
|
npm install @bitrix24/b24ui-nuxt
|
|
25
|
-
npm install @bitrix24/b24icons-vue
|
|
26
23
|
```
|
|
27
24
|
|
|
28
25
|
```bash [bun]
|
|
29
26
|
yarn add @bitrix24/b24ui-nuxt
|
|
30
|
-
yarn add @bitrix24/b24icons-vue
|
|
31
27
|
```
|
|
32
28
|
|
|
33
29
|
### Nuxt
|
package/dist/meta.d.mts
CHANGED
|
@@ -699,7 +699,7 @@ var B24UIMeta = {
|
|
|
699
699
|
],
|
|
700
700
|
"events": [],
|
|
701
701
|
"exposed": [],
|
|
702
|
-
"hash": "
|
|
702
|
+
"hash": "AduWQ3nb1hxoZJohRUybusVQLdPsmYxhyS91n-Mvro0"
|
|
703
703
|
}
|
|
704
704
|
},
|
|
705
705
|
"ProseCard": {
|
|
@@ -16480,7 +16480,7 @@ var B24UIMeta = {
|
|
|
16480
16480
|
],
|
|
16481
16481
|
"events": [],
|
|
16482
16482
|
"exposed": [],
|
|
16483
|
-
"hash": "
|
|
16483
|
+
"hash": "UaC6uVq3WnnPyNs2AjQaxxMTEAFhwvFbe7WUPz0ASWU"
|
|
16484
16484
|
}
|
|
16485
16485
|
},
|
|
16486
16486
|
"B24Alert": {
|
|
@@ -39330,7 +39330,7 @@ var B24UIMeta = {
|
|
|
39330
39330
|
],
|
|
39331
39331
|
"events": [],
|
|
39332
39332
|
"exposed": [],
|
|
39333
|
-
"hash": "
|
|
39333
|
+
"hash": "3AXpCfw-MlhbPCltoq0RG4ZGD4k9Gg7tMDftvmdVrwI"
|
|
39334
39334
|
}
|
|
39335
39335
|
},
|
|
39336
39336
|
"B24Card": {
|
|
@@ -70234,6 +70234,29 @@ var B24UIMeta = {
|
|
|
70234
70234
|
}
|
|
70235
70235
|
}
|
|
70236
70236
|
},
|
|
70237
|
+
{
|
|
70238
|
+
"name": "preview",
|
|
70239
|
+
"global": false,
|
|
70240
|
+
"description": "Show the file preview/list after upload.",
|
|
70241
|
+
"tags": [
|
|
70242
|
+
{
|
|
70243
|
+
"name": "defaultValue",
|
|
70244
|
+
"text": "true"
|
|
70245
|
+
}
|
|
70246
|
+
],
|
|
70247
|
+
"required": false,
|
|
70248
|
+
"type": "boolean | undefined",
|
|
70249
|
+
"schema": {
|
|
70250
|
+
"kind": "enum",
|
|
70251
|
+
"type": "boolean | undefined",
|
|
70252
|
+
"schema": {
|
|
70253
|
+
"0": "undefined",
|
|
70254
|
+
"1": "false",
|
|
70255
|
+
"2": "true"
|
|
70256
|
+
}
|
|
70257
|
+
},
|
|
70258
|
+
"default": "true"
|
|
70259
|
+
},
|
|
70237
70260
|
{
|
|
70238
70261
|
"name": "b24ui",
|
|
70239
70262
|
"global": false,
|
|
@@ -70447,7 +70470,7 @@ var B24UIMeta = {
|
|
|
70447
70470
|
],
|
|
70448
70471
|
"events": [],
|
|
70449
70472
|
"exposed": [],
|
|
70450
|
-
"hash": "
|
|
70473
|
+
"hash": "xl1RZNbo4ABnsUi-OdSezkLwIo3ji56M_zOkyGVjJ5k"
|
|
70451
70474
|
}
|
|
70452
70475
|
},
|
|
70453
70476
|
"B24Form": {
|
|
@@ -72852,27 +72875,6 @@ var B24UIMeta = {
|
|
|
72852
72875
|
}
|
|
72853
72876
|
}
|
|
72854
72877
|
},
|
|
72855
|
-
{
|
|
72856
|
-
"name": "locale",
|
|
72857
|
-
"global": false,
|
|
72858
|
-
"description": "The locale to use for formatting and parsing numbers.",
|
|
72859
|
-
"tags": [
|
|
72860
|
-
{
|
|
72861
|
-
"name": "defaultValue",
|
|
72862
|
-
"text": "B24App.locale.code"
|
|
72863
|
-
}
|
|
72864
|
-
],
|
|
72865
|
-
"required": false,
|
|
72866
|
-
"type": "string | undefined",
|
|
72867
|
-
"schema": {
|
|
72868
|
-
"kind": "enum",
|
|
72869
|
-
"type": "string | undefined",
|
|
72870
|
-
"schema": {
|
|
72871
|
-
"0": "undefined",
|
|
72872
|
-
"1": "string"
|
|
72873
|
-
}
|
|
72874
|
-
}
|
|
72875
|
-
},
|
|
72876
72878
|
{
|
|
72877
72879
|
"name": "defaultValue",
|
|
72878
72880
|
"global": false,
|
|
@@ -79188,7 +79190,7 @@ var B24UIMeta = {
|
|
|
79188
79190
|
],
|
|
79189
79191
|
"events": [],
|
|
79190
79192
|
"exposed": [],
|
|
79191
|
-
"hash": "
|
|
79193
|
+
"hash": "9COSq2Z8hrlcOOrGAxqLH-RnFiCYT4lifBRMptxDxfg"
|
|
79192
79194
|
}
|
|
79193
79195
|
},
|
|
79194
79196
|
"B24InputMenu": {
|
|
@@ -82628,15 +82630,15 @@ var B24UIMeta = {
|
|
|
82628
82630
|
}
|
|
82629
82631
|
],
|
|
82630
82632
|
"required": false,
|
|
82631
|
-
"type": '"
|
|
82633
|
+
"type": '"light" | "normal" | "dark" | undefined',
|
|
82632
82634
|
"schema": {
|
|
82633
82635
|
"kind": "enum",
|
|
82634
|
-
"type": '"
|
|
82636
|
+
"type": '"light" | "normal" | "dark" | undefined',
|
|
82635
82637
|
"schema": {
|
|
82636
82638
|
"0": "undefined",
|
|
82637
|
-
"1": '"
|
|
82638
|
-
"2": '"
|
|
82639
|
-
"3": '"
|
|
82639
|
+
"1": '"light"',
|
|
82640
|
+
"2": '"normal"',
|
|
82641
|
+
"3": '"dark"'
|
|
82640
82642
|
}
|
|
82641
82643
|
}
|
|
82642
82644
|
},
|
|
@@ -82646,8 +82648,8 @@ var B24UIMeta = {
|
|
|
82646
82648
|
"description": "",
|
|
82647
82649
|
"tags": [],
|
|
82648
82650
|
"required": false,
|
|
82649
|
-
"type": '"
|
|
82650
|
-
"schema": '"
|
|
82651
|
+
"type": '"light" | "normal" | "dark" | undefined',
|
|
82652
|
+
"schema": '"light" | "normal" | "dark" | undefined'
|
|
82651
82653
|
},
|
|
82652
82654
|
"size": {
|
|
82653
82655
|
"name": "size",
|
|
@@ -83500,14 +83502,14 @@ var B24UIMeta = {
|
|
|
83500
83502
|
}
|
|
83501
83503
|
],
|
|
83502
83504
|
"required": false,
|
|
83503
|
-
"type": '"
|
|
83505
|
+
"type": '"reset" | "submit" | "button" | undefined',
|
|
83504
83506
|
"schema": {
|
|
83505
83507
|
"kind": "enum",
|
|
83506
|
-
"type": '"
|
|
83508
|
+
"type": '"reset" | "submit" | "button" | undefined',
|
|
83507
83509
|
"schema": {
|
|
83508
83510
|
"0": "undefined",
|
|
83509
|
-
"1": '"
|
|
83510
|
-
"2": '"
|
|
83511
|
+
"1": '"reset"',
|
|
83512
|
+
"2": '"submit"',
|
|
83511
83513
|
"3": '"button"'
|
|
83512
83514
|
}
|
|
83513
83515
|
}
|
|
@@ -84159,15 +84161,15 @@ var B24UIMeta = {
|
|
|
84159
84161
|
}
|
|
84160
84162
|
],
|
|
84161
84163
|
"required": false,
|
|
84162
|
-
"type": '"
|
|
84164
|
+
"type": '"light" | "normal" | "dark" | undefined',
|
|
84163
84165
|
"schema": {
|
|
84164
84166
|
"kind": "enum",
|
|
84165
|
-
"type": '"
|
|
84167
|
+
"type": '"light" | "normal" | "dark" | undefined',
|
|
84166
84168
|
"schema": {
|
|
84167
84169
|
"0": "undefined",
|
|
84168
|
-
"1": '"
|
|
84169
|
-
"2": '"
|
|
84170
|
-
"3": '"
|
|
84170
|
+
"1": '"light"',
|
|
84171
|
+
"2": '"normal"',
|
|
84172
|
+
"3": '"dark"'
|
|
84171
84173
|
}
|
|
84172
84174
|
}
|
|
84173
84175
|
},
|
|
@@ -84177,8 +84179,8 @@ var B24UIMeta = {
|
|
|
84177
84179
|
"description": "",
|
|
84178
84180
|
"tags": [],
|
|
84179
84181
|
"required": false,
|
|
84180
|
-
"type": '"
|
|
84181
|
-
"schema": '"
|
|
84182
|
+
"type": '"light" | "normal" | "dark" | undefined',
|
|
84183
|
+
"schema": '"light" | "normal" | "dark" | undefined'
|
|
84182
84184
|
},
|
|
84183
84185
|
"size": {
|
|
84184
84186
|
"name": "size",
|
|
@@ -85031,14 +85033,14 @@ var B24UIMeta = {
|
|
|
85031
85033
|
}
|
|
85032
85034
|
],
|
|
85033
85035
|
"required": false,
|
|
85034
|
-
"type": '"
|
|
85036
|
+
"type": '"reset" | "submit" | "button" | undefined',
|
|
85035
85037
|
"schema": {
|
|
85036
85038
|
"kind": "enum",
|
|
85037
|
-
"type": '"
|
|
85039
|
+
"type": '"reset" | "submit" | "button" | undefined',
|
|
85038
85040
|
"schema": {
|
|
85039
85041
|
"0": "undefined",
|
|
85040
|
-
"1": '"
|
|
85041
|
-
"2": '"
|
|
85042
|
+
"1": '"reset"',
|
|
85043
|
+
"2": '"submit"',
|
|
85042
85044
|
"3": '"button"'
|
|
85043
85045
|
}
|
|
85044
85046
|
}
|
|
@@ -85633,27 +85635,6 @@ var B24UIMeta = {
|
|
|
85633
85635
|
}
|
|
85634
85636
|
}
|
|
85635
85637
|
},
|
|
85636
|
-
{
|
|
85637
|
-
"name": "locale",
|
|
85638
|
-
"global": false,
|
|
85639
|
-
"description": "The locale to use for formatting and parsing numbers.",
|
|
85640
|
-
"tags": [
|
|
85641
|
-
{
|
|
85642
|
-
"name": "defaultValue",
|
|
85643
|
-
"text": "B24App.locale.code"
|
|
85644
|
-
}
|
|
85645
|
-
],
|
|
85646
|
-
"required": false,
|
|
85647
|
-
"type": "string | undefined",
|
|
85648
|
-
"schema": {
|
|
85649
|
-
"kind": "enum",
|
|
85650
|
-
"type": "string | undefined",
|
|
85651
|
-
"schema": {
|
|
85652
|
-
"0": "undefined",
|
|
85653
|
-
"1": "string"
|
|
85654
|
-
}
|
|
85655
|
-
}
|
|
85656
|
-
},
|
|
85657
85638
|
{
|
|
85658
85639
|
"name": "b24ui",
|
|
85659
85640
|
"global": false,
|
|
@@ -86073,7 +86054,7 @@ var B24UIMeta = {
|
|
|
86073
86054
|
],
|
|
86074
86055
|
"events": [],
|
|
86075
86056
|
"exposed": [],
|
|
86076
|
-
"hash": "
|
|
86057
|
+
"hash": "eKSCYEuWLPvZARdlStxaboV9aSonu9Y4Q-PqT90dS5k"
|
|
86077
86058
|
}
|
|
86078
86059
|
},
|
|
86079
86060
|
"B24InputTags": {
|
|
@@ -87779,27 +87760,6 @@ var B24UIMeta = {
|
|
|
87779
87760
|
},
|
|
87780
87761
|
"default": "0"
|
|
87781
87762
|
},
|
|
87782
|
-
{
|
|
87783
|
-
"name": "locale",
|
|
87784
|
-
"global": false,
|
|
87785
|
-
"description": "The locale to use for formatting and parsing numbers.",
|
|
87786
|
-
"tags": [
|
|
87787
|
-
{
|
|
87788
|
-
"name": "defaultValue",
|
|
87789
|
-
"text": "B24App.locale.code"
|
|
87790
|
-
}
|
|
87791
|
-
],
|
|
87792
|
-
"required": false,
|
|
87793
|
-
"type": "string | undefined",
|
|
87794
|
-
"schema": {
|
|
87795
|
-
"kind": "enum",
|
|
87796
|
-
"type": "string | undefined",
|
|
87797
|
-
"schema": {
|
|
87798
|
-
"0": "undefined",
|
|
87799
|
-
"1": "string"
|
|
87800
|
-
}
|
|
87801
|
-
}
|
|
87802
|
-
},
|
|
87803
87763
|
{
|
|
87804
87764
|
"name": "b24ui",
|
|
87805
87765
|
"global": false,
|
|
@@ -93891,7 +93851,7 @@ var B24UIMeta = {
|
|
|
93891
93851
|
],
|
|
93892
93852
|
"events": [],
|
|
93893
93853
|
"exposed": [],
|
|
93894
|
-
"hash": "
|
|
93854
|
+
"hash": "1cQDz7jdn-qJ-P8qMnzzXJpByTlStjopmX3hwp8IQo8"
|
|
93895
93855
|
}
|
|
93896
93856
|
},
|
|
93897
93857
|
"B24Kbd": {
|
package/dist/meta.mjs
CHANGED
|
@@ -699,7 +699,7 @@ const B24UIMeta = {
|
|
|
699
699
|
],
|
|
700
700
|
"events": [],
|
|
701
701
|
"exposed": [],
|
|
702
|
-
"hash": "
|
|
702
|
+
"hash": "AduWQ3nb1hxoZJohRUybusVQLdPsmYxhyS91n-Mvro0"
|
|
703
703
|
}
|
|
704
704
|
},
|
|
705
705
|
"ProseCard": {
|
|
@@ -16480,7 +16480,7 @@ const B24UIMeta = {
|
|
|
16480
16480
|
],
|
|
16481
16481
|
"events": [],
|
|
16482
16482
|
"exposed": [],
|
|
16483
|
-
"hash": "
|
|
16483
|
+
"hash": "UaC6uVq3WnnPyNs2AjQaxxMTEAFhwvFbe7WUPz0ASWU"
|
|
16484
16484
|
}
|
|
16485
16485
|
},
|
|
16486
16486
|
"B24Alert": {
|
|
@@ -39330,7 +39330,7 @@ const B24UIMeta = {
|
|
|
39330
39330
|
],
|
|
39331
39331
|
"events": [],
|
|
39332
39332
|
"exposed": [],
|
|
39333
|
-
"hash": "
|
|
39333
|
+
"hash": "3AXpCfw-MlhbPCltoq0RG4ZGD4k9Gg7tMDftvmdVrwI"
|
|
39334
39334
|
}
|
|
39335
39335
|
},
|
|
39336
39336
|
"B24Card": {
|
|
@@ -70234,6 +70234,29 @@ const B24UIMeta = {
|
|
|
70234
70234
|
}
|
|
70235
70235
|
}
|
|
70236
70236
|
},
|
|
70237
|
+
{
|
|
70238
|
+
"name": "preview",
|
|
70239
|
+
"global": false,
|
|
70240
|
+
"description": "Show the file preview/list after upload.",
|
|
70241
|
+
"tags": [
|
|
70242
|
+
{
|
|
70243
|
+
"name": "defaultValue",
|
|
70244
|
+
"text": "true"
|
|
70245
|
+
}
|
|
70246
|
+
],
|
|
70247
|
+
"required": false,
|
|
70248
|
+
"type": "boolean | undefined",
|
|
70249
|
+
"schema": {
|
|
70250
|
+
"kind": "enum",
|
|
70251
|
+
"type": "boolean | undefined",
|
|
70252
|
+
"schema": {
|
|
70253
|
+
"0": "undefined",
|
|
70254
|
+
"1": "false",
|
|
70255
|
+
"2": "true"
|
|
70256
|
+
}
|
|
70257
|
+
},
|
|
70258
|
+
"default": "true"
|
|
70259
|
+
},
|
|
70237
70260
|
{
|
|
70238
70261
|
"name": "b24ui",
|
|
70239
70262
|
"global": false,
|
|
@@ -70447,7 +70470,7 @@ const B24UIMeta = {
|
|
|
70447
70470
|
],
|
|
70448
70471
|
"events": [],
|
|
70449
70472
|
"exposed": [],
|
|
70450
|
-
"hash": "
|
|
70473
|
+
"hash": "xl1RZNbo4ABnsUi-OdSezkLwIo3ji56M_zOkyGVjJ5k"
|
|
70451
70474
|
}
|
|
70452
70475
|
},
|
|
70453
70476
|
"B24Form": {
|
|
@@ -72852,27 +72875,6 @@ const B24UIMeta = {
|
|
|
72852
72875
|
}
|
|
72853
72876
|
}
|
|
72854
72877
|
},
|
|
72855
|
-
{
|
|
72856
|
-
"name": "locale",
|
|
72857
|
-
"global": false,
|
|
72858
|
-
"description": "The locale to use for formatting and parsing numbers.",
|
|
72859
|
-
"tags": [
|
|
72860
|
-
{
|
|
72861
|
-
"name": "defaultValue",
|
|
72862
|
-
"text": "B24App.locale.code"
|
|
72863
|
-
}
|
|
72864
|
-
],
|
|
72865
|
-
"required": false,
|
|
72866
|
-
"type": "string | undefined",
|
|
72867
|
-
"schema": {
|
|
72868
|
-
"kind": "enum",
|
|
72869
|
-
"type": "string | undefined",
|
|
72870
|
-
"schema": {
|
|
72871
|
-
"0": "undefined",
|
|
72872
|
-
"1": "string"
|
|
72873
|
-
}
|
|
72874
|
-
}
|
|
72875
|
-
},
|
|
72876
72878
|
{
|
|
72877
72879
|
"name": "defaultValue",
|
|
72878
72880
|
"global": false,
|
|
@@ -79188,7 +79190,7 @@ const B24UIMeta = {
|
|
|
79188
79190
|
],
|
|
79189
79191
|
"events": [],
|
|
79190
79192
|
"exposed": [],
|
|
79191
|
-
"hash": "
|
|
79193
|
+
"hash": "9COSq2Z8hrlcOOrGAxqLH-RnFiCYT4lifBRMptxDxfg"
|
|
79192
79194
|
}
|
|
79193
79195
|
},
|
|
79194
79196
|
"B24InputMenu": {
|
|
@@ -82628,15 +82630,15 @@ const B24UIMeta = {
|
|
|
82628
82630
|
}
|
|
82629
82631
|
],
|
|
82630
82632
|
"required": false,
|
|
82631
|
-
"type": '"
|
|
82633
|
+
"type": '"light" | "normal" | "dark" | undefined',
|
|
82632
82634
|
"schema": {
|
|
82633
82635
|
"kind": "enum",
|
|
82634
|
-
"type": '"
|
|
82636
|
+
"type": '"light" | "normal" | "dark" | undefined',
|
|
82635
82637
|
"schema": {
|
|
82636
82638
|
"0": "undefined",
|
|
82637
|
-
"1": '"
|
|
82638
|
-
"2": '"
|
|
82639
|
-
"3": '"
|
|
82639
|
+
"1": '"light"',
|
|
82640
|
+
"2": '"normal"',
|
|
82641
|
+
"3": '"dark"'
|
|
82640
82642
|
}
|
|
82641
82643
|
}
|
|
82642
82644
|
},
|
|
@@ -82646,8 +82648,8 @@ const B24UIMeta = {
|
|
|
82646
82648
|
"description": "",
|
|
82647
82649
|
"tags": [],
|
|
82648
82650
|
"required": false,
|
|
82649
|
-
"type": '"
|
|
82650
|
-
"schema": '"
|
|
82651
|
+
"type": '"light" | "normal" | "dark" | undefined',
|
|
82652
|
+
"schema": '"light" | "normal" | "dark" | undefined'
|
|
82651
82653
|
},
|
|
82652
82654
|
"size": {
|
|
82653
82655
|
"name": "size",
|
|
@@ -83500,14 +83502,14 @@ const B24UIMeta = {
|
|
|
83500
83502
|
}
|
|
83501
83503
|
],
|
|
83502
83504
|
"required": false,
|
|
83503
|
-
"type": '"
|
|
83505
|
+
"type": '"reset" | "submit" | "button" | undefined',
|
|
83504
83506
|
"schema": {
|
|
83505
83507
|
"kind": "enum",
|
|
83506
|
-
"type": '"
|
|
83508
|
+
"type": '"reset" | "submit" | "button" | undefined',
|
|
83507
83509
|
"schema": {
|
|
83508
83510
|
"0": "undefined",
|
|
83509
|
-
"1": '"
|
|
83510
|
-
"2": '"
|
|
83511
|
+
"1": '"reset"',
|
|
83512
|
+
"2": '"submit"',
|
|
83511
83513
|
"3": '"button"'
|
|
83512
83514
|
}
|
|
83513
83515
|
}
|
|
@@ -84159,15 +84161,15 @@ const B24UIMeta = {
|
|
|
84159
84161
|
}
|
|
84160
84162
|
],
|
|
84161
84163
|
"required": false,
|
|
84162
|
-
"type": '"
|
|
84164
|
+
"type": '"light" | "normal" | "dark" | undefined',
|
|
84163
84165
|
"schema": {
|
|
84164
84166
|
"kind": "enum",
|
|
84165
|
-
"type": '"
|
|
84167
|
+
"type": '"light" | "normal" | "dark" | undefined',
|
|
84166
84168
|
"schema": {
|
|
84167
84169
|
"0": "undefined",
|
|
84168
|
-
"1": '"
|
|
84169
|
-
"2": '"
|
|
84170
|
-
"3": '"
|
|
84170
|
+
"1": '"light"',
|
|
84171
|
+
"2": '"normal"',
|
|
84172
|
+
"3": '"dark"'
|
|
84171
84173
|
}
|
|
84172
84174
|
}
|
|
84173
84175
|
},
|
|
@@ -84177,8 +84179,8 @@ const B24UIMeta = {
|
|
|
84177
84179
|
"description": "",
|
|
84178
84180
|
"tags": [],
|
|
84179
84181
|
"required": false,
|
|
84180
|
-
"type": '"
|
|
84181
|
-
"schema": '"
|
|
84182
|
+
"type": '"light" | "normal" | "dark" | undefined',
|
|
84183
|
+
"schema": '"light" | "normal" | "dark" | undefined'
|
|
84182
84184
|
},
|
|
84183
84185
|
"size": {
|
|
84184
84186
|
"name": "size",
|
|
@@ -85031,14 +85033,14 @@ const B24UIMeta = {
|
|
|
85031
85033
|
}
|
|
85032
85034
|
],
|
|
85033
85035
|
"required": false,
|
|
85034
|
-
"type": '"
|
|
85036
|
+
"type": '"reset" | "submit" | "button" | undefined',
|
|
85035
85037
|
"schema": {
|
|
85036
85038
|
"kind": "enum",
|
|
85037
|
-
"type": '"
|
|
85039
|
+
"type": '"reset" | "submit" | "button" | undefined',
|
|
85038
85040
|
"schema": {
|
|
85039
85041
|
"0": "undefined",
|
|
85040
|
-
"1": '"
|
|
85041
|
-
"2": '"
|
|
85042
|
+
"1": '"reset"',
|
|
85043
|
+
"2": '"submit"',
|
|
85042
85044
|
"3": '"button"'
|
|
85043
85045
|
}
|
|
85044
85046
|
}
|
|
@@ -85633,27 +85635,6 @@ const B24UIMeta = {
|
|
|
85633
85635
|
}
|
|
85634
85636
|
}
|
|
85635
85637
|
},
|
|
85636
|
-
{
|
|
85637
|
-
"name": "locale",
|
|
85638
|
-
"global": false,
|
|
85639
|
-
"description": "The locale to use for formatting and parsing numbers.",
|
|
85640
|
-
"tags": [
|
|
85641
|
-
{
|
|
85642
|
-
"name": "defaultValue",
|
|
85643
|
-
"text": "B24App.locale.code"
|
|
85644
|
-
}
|
|
85645
|
-
],
|
|
85646
|
-
"required": false,
|
|
85647
|
-
"type": "string | undefined",
|
|
85648
|
-
"schema": {
|
|
85649
|
-
"kind": "enum",
|
|
85650
|
-
"type": "string | undefined",
|
|
85651
|
-
"schema": {
|
|
85652
|
-
"0": "undefined",
|
|
85653
|
-
"1": "string"
|
|
85654
|
-
}
|
|
85655
|
-
}
|
|
85656
|
-
},
|
|
85657
85638
|
{
|
|
85658
85639
|
"name": "b24ui",
|
|
85659
85640
|
"global": false,
|
|
@@ -86073,7 +86054,7 @@ const B24UIMeta = {
|
|
|
86073
86054
|
],
|
|
86074
86055
|
"events": [],
|
|
86075
86056
|
"exposed": [],
|
|
86076
|
-
"hash": "
|
|
86057
|
+
"hash": "eKSCYEuWLPvZARdlStxaboV9aSonu9Y4Q-PqT90dS5k"
|
|
86077
86058
|
}
|
|
86078
86059
|
},
|
|
86079
86060
|
"B24InputTags": {
|
|
@@ -87779,27 +87760,6 @@ const B24UIMeta = {
|
|
|
87779
87760
|
},
|
|
87780
87761
|
"default": "0"
|
|
87781
87762
|
},
|
|
87782
|
-
{
|
|
87783
|
-
"name": "locale",
|
|
87784
|
-
"global": false,
|
|
87785
|
-
"description": "The locale to use for formatting and parsing numbers.",
|
|
87786
|
-
"tags": [
|
|
87787
|
-
{
|
|
87788
|
-
"name": "defaultValue",
|
|
87789
|
-
"text": "B24App.locale.code"
|
|
87790
|
-
}
|
|
87791
|
-
],
|
|
87792
|
-
"required": false,
|
|
87793
|
-
"type": "string | undefined",
|
|
87794
|
-
"schema": {
|
|
87795
|
-
"kind": "enum",
|
|
87796
|
-
"type": "string | undefined",
|
|
87797
|
-
"schema": {
|
|
87798
|
-
"0": "undefined",
|
|
87799
|
-
"1": "string"
|
|
87800
|
-
}
|
|
87801
|
-
}
|
|
87802
|
-
},
|
|
87803
87763
|
{
|
|
87804
87764
|
"name": "b24ui",
|
|
87805
87765
|
"global": false,
|
|
@@ -93891,7 +93851,7 @@ const B24UIMeta = {
|
|
|
93891
93851
|
],
|
|
93892
93852
|
"events": [],
|
|
93893
93853
|
"exposed": [],
|
|
93894
|
-
"hash": "
|
|
93854
|
+
"hash": "1cQDz7jdn-qJ-P8qMnzzXJpByTlStjopmX3hwp8IQo8"
|
|
93895
93855
|
}
|
|
93896
93856
|
},
|
|
93897
93857
|
"B24Kbd": {
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defu } from 'defu';
|
|
2
|
-
import { defineNuxtModule, createResolver, addPlugin, hasNuxtModule, addComponentsDir, addImportsDir } from '@nuxt/kit';
|
|
3
|
-
import { d as defaultOptions, v as version, n as name, a as getDefaultConfig, b as addTemplates } from './shared/b24ui-nuxt.
|
|
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.B9uYyQGR.mjs';
|
|
4
4
|
import 'node:url';
|
|
5
5
|
import 'scule';
|
|
6
6
|
import 'knitwork';
|
|
@@ -36,6 +36,14 @@ const module$1 = defineNuxtModule({
|
|
|
36
36
|
if (nuxt.options.builder !== "@nuxt/vite-builder") {
|
|
37
37
|
nuxt.options.postcss.plugins["@tailwindcss/postcss"] = {};
|
|
38
38
|
}
|
|
39
|
+
async function registerModule(name2, key, options2) {
|
|
40
|
+
if (!hasNuxtModule(name2)) {
|
|
41
|
+
await installModule(name2, defu(nuxt.options[key], options2));
|
|
42
|
+
} else {
|
|
43
|
+
nuxt.options[key] = defu(nuxt.options[key], options2);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
await registerModule("@bitrix24/b24icons-nuxt", "empty", {});
|
|
39
47
|
addPlugin({ src: resolve("./runtime/plugins/colors") });
|
|
40
48
|
addPlugin({ src: resolve("./runtime/plugins/ui-version") });
|
|
41
49
|
if (hasNuxtModule("@nuxtjs/mdc") || options.mdc || (hasNuxtModule("@nuxt/content") || options.content)) {
|
|
@@ -3,7 +3,7 @@ import theme from '#build/b24ui/advice';
|
|
|
3
3
|
import type { UseComponentIconsProps } from '../composables/useComponentIcons';
|
|
4
4
|
import type { ComponentConfig } from '../types/tv';
|
|
5
5
|
type Advice = ComponentConfig<typeof theme, AppConfig, 'advice'>;
|
|
6
|
-
export interface AdviceProps extends
|
|
6
|
+
export interface AdviceProps extends Omit<UseComponentIconsProps, 'loading' | 'trailing' | 'trailingIcon'> {
|
|
7
7
|
/**
|
|
8
8
|
* The element or component this component should render as.
|
|
9
9
|
* @defaultValue 'div'
|
|
@@ -15,7 +15,9 @@ const props = defineProps({
|
|
|
15
15
|
description: { type: String, required: false },
|
|
16
16
|
angle: { type: null, required: false, default: "bottom" },
|
|
17
17
|
class: { type: null, required: false },
|
|
18
|
-
b24ui: { type: null, required: false }
|
|
18
|
+
b24ui: { type: null, required: false },
|
|
19
|
+
icon: { type: [Function, Object], required: false },
|
|
20
|
+
avatar: { type: Object, required: false }
|
|
19
21
|
});
|
|
20
22
|
const slots = defineSlots();
|
|
21
23
|
const appConfig = useAppConfig();
|
|
@@ -3,7 +3,7 @@ import theme from '#build/b24ui/advice';
|
|
|
3
3
|
import type { UseComponentIconsProps } from '../composables/useComponentIcons';
|
|
4
4
|
import type { ComponentConfig } from '../types/tv';
|
|
5
5
|
type Advice = ComponentConfig<typeof theme, AppConfig, 'advice'>;
|
|
6
|
-
export interface AdviceProps extends
|
|
6
|
+
export interface AdviceProps extends Omit<UseComponentIconsProps, 'loading' | 'trailing' | 'trailingIcon'> {
|
|
7
7
|
/**
|
|
8
8
|
* The element or component this component should render as.
|
|
9
9
|
* @defaultValue 'div'
|
|
@@ -58,7 +58,7 @@ const props = defineProps({
|
|
|
58
58
|
});
|
|
59
59
|
const emits = defineEmits(["update:modelValue", "update:placeholder", "update:validModelValue", "update:startValue"]);
|
|
60
60
|
defineSlots();
|
|
61
|
-
const {
|
|
61
|
+
const { dir, t } = useLocale();
|
|
62
62
|
const appConfig = useAppConfig();
|
|
63
63
|
const rootProps = useForwardPropsEmits(reactiveOmit(props, "range", "modelValue", "defaultValue", "color", "size", "monthControls", "yearControls", "class", "b24ui"), emits);
|
|
64
64
|
const nextYearIcon = computed(() => props.nextYearIcon || (dir.value === "rtl" ? icons.chevronDoubleLeft : icons.chevronDoubleRight));
|
|
@@ -92,8 +92,6 @@ const btnSize = computed(() => {
|
|
|
92
92
|
v-bind="rootProps"
|
|
93
93
|
:model-value="modelValue"
|
|
94
94
|
:default-value="defaultValue"
|
|
95
|
-
:locale="locale"
|
|
96
|
-
:dir="dir"
|
|
97
95
|
:class="b24ui.root({ class: [props.b24ui?.root, props.class] })"
|
|
98
96
|
>
|
|
99
97
|
<Calendar.Header :class="b24ui.header({ class: props.b24ui?.header })">
|
|
@@ -90,6 +90,11 @@ export interface FileUploadProps<M extends boolean = false> extends /** @vue-ign
|
|
|
90
90
|
* @IconComponent
|
|
91
91
|
*/
|
|
92
92
|
fileDeleteIcon?: IconComponent;
|
|
93
|
+
/**
|
|
94
|
+
* Show the file preview/list after upload.
|
|
95
|
+
* @defaultValue true
|
|
96
|
+
*/
|
|
97
|
+
preview?: boolean;
|
|
93
98
|
class?: any;
|
|
94
99
|
b24ui?: FileUpload['slots'];
|
|
95
100
|
}
|
|
@@ -37,6 +37,7 @@ const props = defineProps({
|
|
|
37
37
|
fileIcon: { type: [Function, Object], required: false },
|
|
38
38
|
fileDelete: { type: [Boolean, Object], required: false, default: true },
|
|
39
39
|
fileDeleteIcon: { type: [Function, Object], required: false },
|
|
40
|
+
preview: { type: Boolean, required: false, default: true },
|
|
40
41
|
class: { type: null, required: false },
|
|
41
42
|
b24ui: { type: null, required: false }
|
|
42
43
|
});
|
|
@@ -135,7 +136,7 @@ defineExpose({
|
|
|
135
136
|
|
|
136
137
|
<template>
|
|
137
138
|
<DefineFilesTemplate>
|
|
138
|
-
<template v-if="modelValue && (Array.isArray(modelValue) ? modelValue.length : true)">
|
|
139
|
+
<template v-if="props.preview && modelValue && (Array.isArray(modelValue) ? modelValue.length : true)">
|
|
139
140
|
<slot name="files-top" :files="modelValue" :open="open" :remove-file="removeFile" />
|
|
140
141
|
|
|
141
142
|
<div :class="b24ui.files({ class: props.b24ui?.files })">
|
|
@@ -90,6 +90,11 @@ export interface FileUploadProps<M extends boolean = false> extends /** @vue-ign
|
|
|
90
90
|
* @IconComponent
|
|
91
91
|
*/
|
|
92
92
|
fileDeleteIcon?: IconComponent;
|
|
93
|
+
/**
|
|
94
|
+
* Show the file preview/list after upload.
|
|
95
|
+
* @defaultValue true
|
|
96
|
+
*/
|
|
97
|
+
preview?: boolean;
|
|
93
98
|
class?: any;
|
|
94
99
|
b24ui?: FileUpload['slots'];
|
|
95
100
|
}
|
|
@@ -61,11 +61,6 @@ export interface InputDateProps<R extends boolean = false> extends UseComponentI
|
|
|
61
61
|
separatorIcon?: IconComponent;
|
|
62
62
|
/** Whether or not a range of dates can be selected */
|
|
63
63
|
range?: R & boolean;
|
|
64
|
-
/**
|
|
65
|
-
* The locale to use for formatting and parsing numbers.
|
|
66
|
-
* @defaultValue B24App.locale.code
|
|
67
|
-
*/
|
|
68
|
-
locale?: string;
|
|
69
64
|
defaultValue?: InputDateDefaultValue<R>;
|
|
70
65
|
modelValue?: InputDateModelValue<R>;
|
|
71
66
|
class?: any;
|
|
@@ -11,7 +11,6 @@ import { useAppConfig } from "#imports";
|
|
|
11
11
|
import { useFieldGroup } from "../composables/useFieldGroup";
|
|
12
12
|
import { useComponentIcons } from "../composables/useComponentIcons";
|
|
13
13
|
import { useFormField } from "../composables/useFormField";
|
|
14
|
-
import { useLocale } from "../composables/useLocale";
|
|
15
14
|
import { tv } from "../utils/tv";
|
|
16
15
|
import icons from "../dictionary/icons";
|
|
17
16
|
import B24Badge from "./Badge.vue";
|
|
@@ -32,7 +31,6 @@ const props = defineProps({
|
|
|
32
31
|
autofocusDelay: { type: Number, required: false, default: 0 },
|
|
33
32
|
separatorIcon: { type: [Function, Object], required: false },
|
|
34
33
|
range: { type: Boolean, required: false },
|
|
35
|
-
locale: { type: String, required: false },
|
|
36
34
|
defaultValue: { type: null, required: false },
|
|
37
35
|
modelValue: { type: null, required: false },
|
|
38
36
|
class: { type: null, required: false },
|
|
@@ -59,14 +57,12 @@ const props = defineProps({
|
|
|
59
57
|
});
|
|
60
58
|
const emits = defineEmits(["update:modelValue", "change", "blur", "focus", "update:placeholder"]);
|
|
61
59
|
const slots = defineSlots();
|
|
62
|
-
const { code: codeLocale, dir } = useLocale();
|
|
63
60
|
const appConfig = useAppConfig();
|
|
64
61
|
const rootProps = useForwardPropsEmits(reactiveOmit(props, "id", "name", "range", "modelValue", "defaultValue", "color", "size", "highlight", "disabled", "autofocus", "autofocusDelay", "icon", "avatar", "trailingIcon", "loading", "separatorIcon", "class", "b24ui"), emits);
|
|
65
62
|
const { emitFormBlur, emitFormFocus, emitFormChange, emitFormInput, size: formGroupSize, color, id, name, highlight, disabled, ariaAttrs } = useFormField(props);
|
|
66
63
|
const { orientation, size: fieldGroupSize } = useFieldGroup(props);
|
|
67
64
|
const { isLeading, isTrailing, leadingIconName, trailingIconName } = useComponentIcons(props);
|
|
68
65
|
const [DefineSegmentsTemplate, ReuseSegmentsTemplate] = createReusableTemplate();
|
|
69
|
-
const locale = computed(() => props.locale || codeLocale.value);
|
|
70
66
|
const inputSize = computed(() => fieldGroupSize.value || formGroupSize.value);
|
|
71
67
|
const isTag = computed(() => {
|
|
72
68
|
return props.tag;
|
|
@@ -138,8 +134,6 @@ defineExpose({
|
|
|
138
134
|
:default-value="defaultValue"
|
|
139
135
|
:name="name"
|
|
140
136
|
:disabled="disabled"
|
|
141
|
-
:locale="locale"
|
|
142
|
-
:dir="dir"
|
|
143
137
|
:class="b24ui.base({ class: [props.b24ui?.base, props.class] })"
|
|
144
138
|
@update:model-value="onUpdate"
|
|
145
139
|
@blur="onBlur"
|
|
@@ -61,11 +61,6 @@ export interface InputDateProps<R extends boolean = false> extends UseComponentI
|
|
|
61
61
|
separatorIcon?: IconComponent;
|
|
62
62
|
/** Whether or not a range of dates can be selected */
|
|
63
63
|
range?: R & boolean;
|
|
64
|
-
/**
|
|
65
|
-
* The locale to use for formatting and parsing numbers.
|
|
66
|
-
* @defaultValue B24App.locale.code
|
|
67
|
-
*/
|
|
68
|
-
locale?: string;
|
|
69
64
|
defaultValue?: InputDateDefaultValue<R>;
|
|
70
65
|
modelValue?: InputDateModelValue<R>;
|
|
71
66
|
class?: any;
|
|
@@ -79,11 +79,6 @@ export interface InputNumberProps<T extends InputNumberValue = InputNumberValue>
|
|
|
79
79
|
autofocus?: boolean;
|
|
80
80
|
autofocusDelay?: number;
|
|
81
81
|
modelModifiers?: Pick<ModelModifiers<T>, 'optional'>;
|
|
82
|
-
/**
|
|
83
|
-
* The locale to use for formatting and parsing numbers.
|
|
84
|
-
* @defaultValue B24App.locale.code
|
|
85
|
-
*/
|
|
86
|
-
locale?: string;
|
|
87
82
|
class?: any;
|
|
88
83
|
b24ui?: InputNumber['slots'];
|
|
89
84
|
}
|
|
@@ -36,7 +36,6 @@ const props = defineProps({
|
|
|
36
36
|
autofocus: { type: Boolean, required: false },
|
|
37
37
|
autofocusDelay: { type: Number, required: false },
|
|
38
38
|
modelModifiers: { type: Object, required: false },
|
|
39
|
-
locale: { type: String, required: false },
|
|
40
39
|
class: { type: null, required: false },
|
|
41
40
|
b24ui: { type: null, required: false },
|
|
42
41
|
modelValue: { type: [Number, null], required: false },
|
|
@@ -57,12 +56,11 @@ const props = defineProps({
|
|
|
57
56
|
const emits = defineEmits(["update:modelValue", "blur", "change"]);
|
|
58
57
|
defineSlots();
|
|
59
58
|
const modelValue = useVModel(props, "modelValue", emits, { defaultValue: props.defaultValue });
|
|
60
|
-
const { t
|
|
59
|
+
const { t } = useLocale();
|
|
61
60
|
const appConfig = useAppConfig();
|
|
62
61
|
const rootProps = useForwardPropsEmits(reactivePick(props, "as", "defaultValue", "min", "max", "step", "stepSnapping", "formatOptions", "disableWheelChange", "invertWheelChange", "readonly"), emits);
|
|
63
62
|
const { emitFormBlur, emitFormFocus, emitFormChange, emitFormInput, id, color, size: formGroupSize, name, highlight, disabled, ariaAttrs } = useFormField(props);
|
|
64
63
|
const { orientation, size: fieldGroupSize } = useFieldGroup(props);
|
|
65
|
-
const locale = computed(() => props.locale || codeLocale.value);
|
|
66
64
|
const inputSize = computed(() => fieldGroupSize.value || formGroupSize.value);
|
|
67
65
|
const isTag = computed(() => {
|
|
68
66
|
return props.tag;
|
|
@@ -118,7 +116,6 @@ defineExpose({
|
|
|
118
116
|
:class="b24ui.root({ class: [props.b24ui?.root, props.class] })"
|
|
119
117
|
:name="name"
|
|
120
118
|
:disabled="disabled"
|
|
121
|
-
:locale="locale"
|
|
122
119
|
@update:model-value="onUpdate"
|
|
123
120
|
>
|
|
124
121
|
<B24Badge
|
|
@@ -79,11 +79,6 @@ export interface InputNumberProps<T extends InputNumberValue = InputNumberValue>
|
|
|
79
79
|
autofocus?: boolean;
|
|
80
80
|
autofocusDelay?: number;
|
|
81
81
|
modelModifiers?: Pick<ModelModifiers<T>, 'optional'>;
|
|
82
|
-
/**
|
|
83
|
-
* The locale to use for formatting and parsing numbers.
|
|
84
|
-
* @defaultValue B24App.locale.code
|
|
85
|
-
*/
|
|
86
|
-
locale?: string;
|
|
87
82
|
class?: any;
|
|
88
83
|
b24ui?: InputNumber['slots'];
|
|
89
84
|
}
|
|
@@ -49,11 +49,6 @@ export interface InputTimeProps extends Omit<TimeFieldRootProps, 'as' | 'asChild
|
|
|
49
49
|
highlight?: boolean;
|
|
50
50
|
autofocus?: boolean;
|
|
51
51
|
autofocusDelay?: number;
|
|
52
|
-
/**
|
|
53
|
-
* The locale to use for formatting and parsing numbers.
|
|
54
|
-
* @defaultValue B24App.locale.code
|
|
55
|
-
*/
|
|
56
|
-
locale?: string;
|
|
57
52
|
class?: any;
|
|
58
53
|
b24ui?: InputTime['slots'];
|
|
59
54
|
}
|
|
@@ -10,7 +10,6 @@ import { useAppConfig } from "#imports";
|
|
|
10
10
|
import { useFieldGroup } from "../composables/useFieldGroup";
|
|
11
11
|
import { useComponentIcons } from "../composables/useComponentIcons";
|
|
12
12
|
import { useFormField } from "../composables/useFormField";
|
|
13
|
-
import { useLocale } from "../composables/useLocale";
|
|
14
13
|
import { tv } from "../utils/tv";
|
|
15
14
|
import B24Badge from "./Badge.vue";
|
|
16
15
|
import B24Avatar from "./Avatar.vue";
|
|
@@ -27,7 +26,6 @@ const props = defineProps({
|
|
|
27
26
|
highlight: { type: Boolean, required: false },
|
|
28
27
|
autofocus: { type: Boolean, required: false },
|
|
29
28
|
autofocusDelay: { type: Number, required: false, default: 0 },
|
|
30
|
-
locale: { type: String, required: false },
|
|
31
29
|
class: { type: null, required: false },
|
|
32
30
|
b24ui: { type: null, required: false },
|
|
33
31
|
defaultValue: { type: Object, required: false },
|
|
@@ -53,13 +51,11 @@ const props = defineProps({
|
|
|
53
51
|
});
|
|
54
52
|
const emits = defineEmits(["change", "blur", "focus", "update:modelValue", "update:placeholder"]);
|
|
55
53
|
const slots = defineSlots();
|
|
56
|
-
const { code: codeLocale, dir } = useLocale();
|
|
57
54
|
const appConfig = useAppConfig();
|
|
58
|
-
const rootProps = useForwardPropsEmits(reactiveOmit(props, "id", "name", "color", "size", "highlight", "disabled", "autofocus", "autofocusDelay", "
|
|
55
|
+
const rootProps = useForwardPropsEmits(reactiveOmit(props, "id", "name", "color", "size", "highlight", "disabled", "autofocus", "autofocusDelay", "icon", "avatar", "trailingIcon", "loading", "class", "b24ui"), emits);
|
|
59
56
|
const { emitFormBlur, emitFormFocus, emitFormChange, emitFormInput, id, color, size: formGroupSize, name, highlight, disabled, ariaAttrs } = useFormField(props);
|
|
60
57
|
const { orientation, size: fieldGroupSize } = useFieldGroup(props);
|
|
61
58
|
const { isLeading, isTrailing, leadingIconName, trailingIconName } = useComponentIcons(props);
|
|
62
|
-
const locale = computed(() => props.locale || codeLocale.value);
|
|
63
59
|
const inputSize = computed(() => fieldGroupSize.value || formGroupSize.value);
|
|
64
60
|
const isTag = computed(() => {
|
|
65
61
|
return props.tag;
|
|
@@ -114,8 +110,6 @@ defineExpose({
|
|
|
114
110
|
v-slot="{ segments }"
|
|
115
111
|
:name="name"
|
|
116
112
|
:disabled="disabled"
|
|
117
|
-
:locale="locale"
|
|
118
|
-
:dir="dir"
|
|
119
113
|
:class="b24ui.base({ class: [props.b24ui?.base, props.class] })"
|
|
120
114
|
@update:model-value="onUpdate"
|
|
121
115
|
@blur="onBlur"
|
|
@@ -49,11 +49,6 @@ export interface InputTimeProps extends Omit<TimeFieldRootProps, 'as' | 'asChild
|
|
|
49
49
|
highlight?: boolean;
|
|
50
50
|
autofocus?: boolean;
|
|
51
51
|
autofocusDelay?: number;
|
|
52
|
-
/**
|
|
53
|
-
* The locale to use for formatting and parsing numbers.
|
|
54
|
-
* @defaultValue B24App.locale.code
|
|
55
|
-
*/
|
|
56
|
-
locale?: string;
|
|
57
52
|
class?: any;
|
|
58
53
|
b24ui?: InputTime['slots'];
|
|
59
54
|
}
|
|
@@ -10,6 +10,7 @@ import icons from "../../dictionary/icons";
|
|
|
10
10
|
import B24Link from "../Link.vue";
|
|
11
11
|
import GitHubIcon from "@bitrix24/b24icons-vue/social/GitHubIcon";
|
|
12
12
|
import InfoCircleIcon from "@bitrix24/b24icons-vue/outline/InfoCircleIcon";
|
|
13
|
+
import MdnwebdocsIcon from "@bitrix24/b24icons-vue/social/MdnwebdocsIcon";
|
|
13
14
|
defineOptions({ inheritAttrs: false });
|
|
14
15
|
const props = defineProps({
|
|
15
16
|
to: { type: null, required: false },
|
|
@@ -32,11 +33,12 @@ const iconFromIconName = computed(() => {
|
|
|
32
33
|
return void 0;
|
|
33
34
|
}
|
|
34
35
|
switch (props.iconName) {
|
|
36
|
+
case "InfoCircleIcon":
|
|
37
|
+
return InfoCircleIcon;
|
|
35
38
|
case "GitHubIcon":
|
|
36
39
|
return GitHubIcon;
|
|
37
|
-
/** @todo change icon */
|
|
38
40
|
case "MdnWebDocIcon":
|
|
39
|
-
return
|
|
41
|
+
return MdnwebdocsIcon;
|
|
40
42
|
}
|
|
41
43
|
return void 0;
|
|
42
44
|
});
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* Default icons
|
|
3
3
|
* ---
|
|
4
4
|
* @link https://bitrix24.github.io/b24icons/
|
|
5
|
+
* @memo sync with docs/content/docs/1.getting-started/6.integrations/1.icons/1.nuxt.md
|
|
6
|
+
* @memo sync with docs/content/docs/1.getting-started/6.integrations/1.icons/2.vue.md
|
|
5
7
|
*/
|
|
6
8
|
declare const _default: {
|
|
7
9
|
arrowLeft: import("vue").FunctionalComponent<import("vue").HTMLAttributes & import("vue").VNodeProps, {}, any, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InertiaLinkProps } from '@inertiajs/vue3';
|
|
2
2
|
import type { ButtonHTMLAttributes, AnchorHTMLAttributes } from '../../types/html';
|
|
3
|
-
export interface LinkProps extends Omit<InertiaLinkProps, 'href' | 'onClick'
|
|
3
|
+
export interface LinkProps extends Partial<Omit<InertiaLinkProps, 'href' | 'onClick'>>, /** @vue-ignore */ Omit<ButtonHTMLAttributes, 'type' | 'disabled'>, /** @vue-ignore */ Omit<AnchorHTMLAttributes, 'href' | 'target' | 'rel' | 'type'> {
|
|
4
4
|
/**
|
|
5
5
|
* The element or component this component should render as when not a link.
|
|
6
6
|
* @defaultValue 'button'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InertiaLinkProps } from '@inertiajs/vue3';
|
|
2
2
|
import type { ButtonHTMLAttributes, AnchorHTMLAttributes } from '../../types/html';
|
|
3
|
-
export interface LinkProps extends Omit<InertiaLinkProps, 'href' | 'onClick'
|
|
3
|
+
export interface LinkProps extends Partial<Omit<InertiaLinkProps, 'href' | 'onClick'>>, /** @vue-ignore */ Omit<ButtonHTMLAttributes, 'type' | 'disabled'>, /** @vue-ignore */ Omit<AnchorHTMLAttributes, 'href' | 'target' | 'rel' | 'type'> {
|
|
4
4
|
/**
|
|
5
5
|
* The element or component this component should render as when not a link.
|
|
6
6
|
* @defaultValue 'button'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RouterLinkProps } from 'vue-router';
|
|
2
2
|
import type { ButtonHTMLAttributes, AnchorHTMLAttributes } from '../../types/html';
|
|
3
|
-
export interface LinkProps extends Omit<RouterLinkProps, 'custom'
|
|
3
|
+
export interface LinkProps extends Partial<Omit<RouterLinkProps, 'custom'>>, /** @vue-ignore */ Omit<ButtonHTMLAttributes, 'type' | 'disabled'>, /** @vue-ignore */ Omit<AnchorHTMLAttributes, 'href' | 'target' | 'rel' | 'type'> {
|
|
4
4
|
/**
|
|
5
5
|
* The element or component this component should render as when not a link.
|
|
6
6
|
* @defaultValue 'button'
|
|
@@ -36,7 +36,7 @@ const props = defineProps({
|
|
|
36
36
|
exactActiveClass: { type: String, required: false },
|
|
37
37
|
ariaCurrentValue: { type: String, required: false, default: "page" },
|
|
38
38
|
viewTransition: { type: Boolean, required: false },
|
|
39
|
-
to: { type: null, required:
|
|
39
|
+
to: { type: null, required: false },
|
|
40
40
|
replace: { type: Boolean, required: false }
|
|
41
41
|
});
|
|
42
42
|
defineSlots();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RouterLinkProps } from 'vue-router';
|
|
2
2
|
import type { ButtonHTMLAttributes, AnchorHTMLAttributes } from '../../types/html';
|
|
3
|
-
export interface LinkProps extends Omit<RouterLinkProps, 'custom'
|
|
3
|
+
export interface LinkProps extends Partial<Omit<RouterLinkProps, 'custom'>>, /** @vue-ignore */ Omit<ButtonHTMLAttributes, 'type' | 'disabled'>, /** @vue-ignore */ Omit<AnchorHTMLAttributes, 'href' | 'target' | 'rel' | 'type'> {
|
|
4
4
|
/**
|
|
5
5
|
* The element or component this component should render as when not a link.
|
|
6
6
|
* @defaultValue 'button'
|
|
@@ -8,7 +8,7 @@ import { globSync } from 'tinyglobby';
|
|
|
8
8
|
import { defuFn } from 'defu';
|
|
9
9
|
|
|
10
10
|
const name = "@bitrix24/b24ui-nuxt";
|
|
11
|
-
const version = "2.1.
|
|
11
|
+
const version = "2.1.2";
|
|
12
12
|
|
|
13
13
|
function getDefaultConfig(theme) {
|
|
14
14
|
return {
|
|
@@ -1650,7 +1650,7 @@ const chatMessage = {
|
|
|
1650
1650
|
root: "group/message relative w-full",
|
|
1651
1651
|
container: "relative flex items-start",
|
|
1652
1652
|
leading: "inline-flex items-center justify-center min-h-6",
|
|
1653
|
-
leadingIcon: "shrink-0",
|
|
1653
|
+
leadingIcon: "shrink-0 text-(--ui-color-design-plain-content-icon-secondary)",
|
|
1654
1654
|
leadingAvatar: "shrink-0",
|
|
1655
1655
|
leadingAvatarSize: "",
|
|
1656
1656
|
content: "relative text-pretty min-w-0 *:first:mt-0 *:last:mb-0",
|
|
@@ -3144,7 +3144,6 @@ const error = {
|
|
|
3144
3144
|
const fileUpload = {
|
|
3145
3145
|
slots: {
|
|
3146
3146
|
root: [
|
|
3147
|
-
"light",
|
|
3148
3147
|
"relative",
|
|
3149
3148
|
"flex flex-col"
|
|
3150
3149
|
].join(" "),
|
|
@@ -3153,6 +3152,7 @@ const fileUpload = {
|
|
|
3153
3152
|
"flex-1",
|
|
3154
3153
|
"bg-(--b24ui-background)/90",
|
|
3155
3154
|
"border-(--b24ui-border-color) border-(length:--b24ui-border-width)",
|
|
3155
|
+
"text-(--b24ui-color)",
|
|
3156
3156
|
"flex flex-col gap-2 items-stretch justify-center",
|
|
3157
3157
|
"rounded-(--ui-border-radius-md)",
|
|
3158
3158
|
"focus-visible:outline-2",
|
|
@@ -3174,14 +3174,14 @@ const fileUpload = {
|
|
|
3174
3174
|
},
|
|
3175
3175
|
variants: {
|
|
3176
3176
|
color: {
|
|
3177
|
-
"air-primary": { root: "style-filled-inverted" },
|
|
3178
|
-
"air-primary-success": { root: "style-filled-success-inverted" },
|
|
3179
|
-
"air-primary-alert": { root: "style-filled-alert-inverted" },
|
|
3180
|
-
"air-primary-copilot": { root: "style-filled-copilot-inverted" },
|
|
3181
|
-
"air-primary-warning": { root: "style-filled-warning-inverted" },
|
|
3182
|
-
"air-secondary": { root: "style-
|
|
3183
|
-
"air-secondary-alert": { root: "style-tinted-alert" },
|
|
3184
|
-
"air-secondary-accent": { root: "style-
|
|
3177
|
+
"air-primary": { root: "light style-filled-inverted" },
|
|
3178
|
+
"air-primary-success": { root: "light style-filled-success-inverted" },
|
|
3179
|
+
"air-primary-alert": { root: "light style-filled-alert-inverted" },
|
|
3180
|
+
"air-primary-copilot": { root: "light style-filled-copilot-inverted" },
|
|
3181
|
+
"air-primary-warning": { root: "light style-filled-warning-inverted" },
|
|
3182
|
+
"air-secondary": { root: "style-outline" },
|
|
3183
|
+
"air-secondary-alert": { root: "light style-tinted-alert" },
|
|
3184
|
+
"air-secondary-accent": { root: "light style-tinted" },
|
|
3185
3185
|
"air-secondary-accent-1": { root: "style-outline-accent-1" },
|
|
3186
3186
|
"air-secondary-accent-2": { root: "style-outline-accent-2" },
|
|
3187
3187
|
"air-tertiary": { root: "style-outline-no-accent" }
|
|
@@ -3239,7 +3239,15 @@ const fileUpload = {
|
|
|
3239
3239
|
"-top-1.5",
|
|
3240
3240
|
"-end-1.5",
|
|
3241
3241
|
"rounded-(--ui-border-radius-pill)",
|
|
3242
|
-
"border"
|
|
3242
|
+
"border",
|
|
3243
|
+
// @memo change color|bg for btn
|
|
3244
|
+
"edge-light:[--ui-btn-background:var(--ui-color-base-white-fixed)]",
|
|
3245
|
+
"edge-dark:[--ui-btn-background:var(--ui-color-base-white-fixed)]",
|
|
3246
|
+
"edge-dark:hover:bg-(--ui-color-base-white-fixed)/90",
|
|
3247
|
+
"edge-dark:[--ui-btn-color:var(--ui-color-g-content-grey-1)]",
|
|
3248
|
+
"dark:[--ui-btn-background:var(--ui-color-g-content-grey-1)]",
|
|
3249
|
+
"dark:hover:bg-(--ui-color-g-content-grey-1)/90",
|
|
3250
|
+
"dark:[--ui-btn-color:var(--ui-color-g-content-grey-4)]"
|
|
3243
3251
|
].join(" ")
|
|
3244
3252
|
}
|
|
3245
3253
|
},
|
|
@@ -10037,7 +10045,7 @@ const pre = {
|
|
|
10037
10045
|
"text-(length:--ui-font-size-md)/(--ui-font-line-height-md)",
|
|
10038
10046
|
"font-[family-name:var(--ui-font-family-system-mono)]",
|
|
10039
10047
|
"border border-(--ui-color-design-tinted-na-stroke)",
|
|
10040
|
-
"bg-(--ui-color-gray-90) dark:bg-(--ui-color-gray-90)/20",
|
|
10048
|
+
"bg-(--ui-color-gray-90) dark:bg-(--ui-color-gray-90)/20 light:bg-(--ui-color-gray-90)",
|
|
10041
10049
|
"rounded-(--ui-border-radius-md)",
|
|
10042
10050
|
"px-4 py-3",
|
|
10043
10051
|
"whitespace-pre-wrap",
|
package/dist/unplugin.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { join, normalize } from 'pathe';
|
|
|
3
3
|
import { createUnplugin } from 'unplugin';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
5
|
import tailwind from '@tailwindcss/vite';
|
|
6
|
-
import { g as getTemplates, d as defaultOptions, a as getDefaultConfig } from './shared/b24ui-nuxt.
|
|
6
|
+
import { g as getTemplates, d as defaultOptions, a as getDefaultConfig } from './shared/b24ui-nuxt.B9uYyQGR.mjs';
|
|
7
7
|
import fs from 'node:fs';
|
|
8
8
|
import path from 'node:path';
|
|
9
9
|
import MagicString from 'magic-string';
|
package/dist/vite.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitrix24/b24ui-nuxt",
|
|
3
3
|
"description": "Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/bitrix24/b24ui.git"
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"vue-plugin.d.ts"
|
|
105
105
|
],
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@bitrix24/b24icons-
|
|
107
|
+
"@bitrix24/b24icons-nuxt": "^2.0.7",
|
|
108
108
|
"@internationalized/date": "^3.10.0",
|
|
109
109
|
"@internationalized/number": "^3.6.5",
|
|
110
110
|
"@nuxt/kit": "^4.2.1",
|
|
@@ -207,7 +207,9 @@
|
|
|
207
207
|
"@bitrix24/b24ui-nuxt": "workspace:*",
|
|
208
208
|
"debug": "4.3.7",
|
|
209
209
|
"typescript": "5.8.3",
|
|
210
|
-
"unplugin": "^2.3.10"
|
|
210
|
+
"unplugin": "^2.3.10",
|
|
211
|
+
"ai": "5.0.90",
|
|
212
|
+
"@ai-sdk/vue": "2.0.90"
|
|
211
213
|
},
|
|
212
214
|
"keywords": [
|
|
213
215
|
"bitrix24-ui",
|