@bitrix24/b24ui-nuxt 0.1.4 → 0.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.cjs +35 -35
- package/dist/meta.d.cts +35 -35
- package/dist/meta.d.mts +35 -35
- package/dist/meta.d.ts +35 -35
- package/dist/meta.mjs +35 -35
- package/dist/module.json +1 -1
- package/dist/unplugin.cjs +47 -40
- package/dist/unplugin.d.cts +10 -0
- package/dist/unplugin.d.mts +10 -0
- package/dist/unplugin.d.ts +10 -0
- package/dist/unplugin.mjs +46 -39
- package/dist/vite.cjs +1 -1
- package/dist/vite.d.cts +2 -0
- package/dist/vite.d.mts +2 -0
- package/dist/vite.d.ts +2 -0
- package/dist/vite.mjs +1 -1
- package/package.json +4 -4
package/dist/meta.cjs
CHANGED
|
@@ -5502,22 +5502,6 @@ const B24UIMeta = {
|
|
|
5502
5502
|
}
|
|
5503
5503
|
}
|
|
5504
5504
|
},
|
|
5505
|
-
{
|
|
5506
|
-
"name": "name",
|
|
5507
|
-
"global": false,
|
|
5508
|
-
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
5509
|
-
"tags": [],
|
|
5510
|
-
"required": false,
|
|
5511
|
-
"type": "string | undefined",
|
|
5512
|
-
"schema": {
|
|
5513
|
-
"kind": "enum",
|
|
5514
|
-
"type": "string | undefined",
|
|
5515
|
-
"schema": {
|
|
5516
|
-
"0": "undefined",
|
|
5517
|
-
"1": "string"
|
|
5518
|
-
}
|
|
5519
|
-
}
|
|
5520
|
-
},
|
|
5521
5505
|
{
|
|
5522
5506
|
"name": "value",
|
|
5523
5507
|
"global": false,
|
|
@@ -5542,6 +5526,22 @@ const B24UIMeta = {
|
|
|
5542
5526
|
}
|
|
5543
5527
|
}
|
|
5544
5528
|
},
|
|
5529
|
+
{
|
|
5530
|
+
"name": "name",
|
|
5531
|
+
"global": false,
|
|
5532
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
5533
|
+
"tags": [],
|
|
5534
|
+
"required": false,
|
|
5535
|
+
"type": "string | undefined",
|
|
5536
|
+
"schema": {
|
|
5537
|
+
"kind": "enum",
|
|
5538
|
+
"type": "string | undefined",
|
|
5539
|
+
"schema": {
|
|
5540
|
+
"0": "undefined",
|
|
5541
|
+
"1": "string"
|
|
5542
|
+
}
|
|
5543
|
+
}
|
|
5544
|
+
},
|
|
5545
5545
|
{
|
|
5546
5546
|
"name": "required",
|
|
5547
5547
|
"global": false,
|
|
@@ -7105,8 +7105,8 @@ const B24UIMeta = {
|
|
|
7105
7105
|
"2": "\"reset\"",
|
|
7106
7106
|
"3": "\"submit\"",
|
|
7107
7107
|
"4": "\"image\"",
|
|
7108
|
-
"5": "\"
|
|
7109
|
-
"6": "\"
|
|
7108
|
+
"5": "\"text\"",
|
|
7109
|
+
"6": "\"color\"",
|
|
7110
7110
|
"7": "\"button\"",
|
|
7111
7111
|
"8": "\"date\"",
|
|
7112
7112
|
"9": "\"time\"",
|
|
@@ -9922,37 +9922,37 @@ const B24UIMeta = {
|
|
|
9922
9922
|
"default": "1"
|
|
9923
9923
|
},
|
|
9924
9924
|
{
|
|
9925
|
-
"name": "
|
|
9925
|
+
"name": "max",
|
|
9926
9926
|
"global": false,
|
|
9927
|
-
"description": "The
|
|
9927
|
+
"description": "The maximum value for the range.",
|
|
9928
9928
|
"tags": [],
|
|
9929
9929
|
"required": false,
|
|
9930
|
-
"type": "
|
|
9930
|
+
"type": "number | undefined",
|
|
9931
9931
|
"schema": {
|
|
9932
9932
|
"kind": "enum",
|
|
9933
|
-
"type": "
|
|
9933
|
+
"type": "number | undefined",
|
|
9934
9934
|
"schema": {
|
|
9935
9935
|
"0": "undefined",
|
|
9936
|
-
"1": "
|
|
9936
|
+
"1": "number"
|
|
9937
9937
|
}
|
|
9938
|
-
}
|
|
9938
|
+
},
|
|
9939
|
+
"default": "100"
|
|
9939
9940
|
},
|
|
9940
9941
|
{
|
|
9941
|
-
"name": "
|
|
9942
|
+
"name": "name",
|
|
9942
9943
|
"global": false,
|
|
9943
|
-
"description": "The
|
|
9944
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
9944
9945
|
"tags": [],
|
|
9945
9946
|
"required": false,
|
|
9946
|
-
"type": "
|
|
9947
|
+
"type": "string | undefined",
|
|
9947
9948
|
"schema": {
|
|
9948
9949
|
"kind": "enum",
|
|
9949
|
-
"type": "
|
|
9950
|
+
"type": "string | undefined",
|
|
9950
9951
|
"schema": {
|
|
9951
9952
|
"0": "undefined",
|
|
9952
|
-
"1": "
|
|
9953
|
+
"1": "string"
|
|
9953
9954
|
}
|
|
9954
|
-
}
|
|
9955
|
-
"default": "100"
|
|
9955
|
+
}
|
|
9956
9956
|
},
|
|
9957
9957
|
{
|
|
9958
9958
|
"name": "inverted",
|
|
@@ -13654,9 +13654,9 @@ const B24UIMeta = {
|
|
|
13654
13654
|
}
|
|
13655
13655
|
},
|
|
13656
13656
|
{
|
|
13657
|
-
"name": "
|
|
13657
|
+
"name": "value",
|
|
13658
13658
|
"global": false,
|
|
13659
|
-
"description": "The
|
|
13659
|
+
"description": "The value given as data when submitted with a `name`.",
|
|
13660
13660
|
"tags": [],
|
|
13661
13661
|
"required": false,
|
|
13662
13662
|
"type": "string | undefined",
|
|
@@ -13670,9 +13670,9 @@ const B24UIMeta = {
|
|
|
13670
13670
|
}
|
|
13671
13671
|
},
|
|
13672
13672
|
{
|
|
13673
|
-
"name": "
|
|
13673
|
+
"name": "name",
|
|
13674
13674
|
"global": false,
|
|
13675
|
-
"description": "The
|
|
13675
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
13676
13676
|
"tags": [],
|
|
13677
13677
|
"required": false,
|
|
13678
13678
|
"type": "string | undefined",
|
package/dist/meta.d.cts
CHANGED
|
@@ -5500,22 +5500,6 @@ var B24UIMeta = {
|
|
|
5500
5500
|
}
|
|
5501
5501
|
}
|
|
5502
5502
|
},
|
|
5503
|
-
{
|
|
5504
|
-
"name": "name",
|
|
5505
|
-
"global": false,
|
|
5506
|
-
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
5507
|
-
"tags": [],
|
|
5508
|
-
"required": false,
|
|
5509
|
-
"type": "string | undefined",
|
|
5510
|
-
"schema": {
|
|
5511
|
-
"kind": "enum",
|
|
5512
|
-
"type": "string | undefined",
|
|
5513
|
-
"schema": {
|
|
5514
|
-
"0": "undefined",
|
|
5515
|
-
"1": "string"
|
|
5516
|
-
}
|
|
5517
|
-
}
|
|
5518
|
-
},
|
|
5519
5503
|
{
|
|
5520
5504
|
"name": "value",
|
|
5521
5505
|
"global": false,
|
|
@@ -5540,6 +5524,22 @@ var B24UIMeta = {
|
|
|
5540
5524
|
}
|
|
5541
5525
|
}
|
|
5542
5526
|
},
|
|
5527
|
+
{
|
|
5528
|
+
"name": "name",
|
|
5529
|
+
"global": false,
|
|
5530
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
5531
|
+
"tags": [],
|
|
5532
|
+
"required": false,
|
|
5533
|
+
"type": "string | undefined",
|
|
5534
|
+
"schema": {
|
|
5535
|
+
"kind": "enum",
|
|
5536
|
+
"type": "string | undefined",
|
|
5537
|
+
"schema": {
|
|
5538
|
+
"0": "undefined",
|
|
5539
|
+
"1": "string"
|
|
5540
|
+
}
|
|
5541
|
+
}
|
|
5542
|
+
},
|
|
5543
5543
|
{
|
|
5544
5544
|
"name": "required",
|
|
5545
5545
|
"global": false,
|
|
@@ -7103,8 +7103,8 @@ var B24UIMeta = {
|
|
|
7103
7103
|
"2": "\"reset\"",
|
|
7104
7104
|
"3": "\"submit\"",
|
|
7105
7105
|
"4": "\"image\"",
|
|
7106
|
-
"5": "\"
|
|
7107
|
-
"6": "\"
|
|
7106
|
+
"5": "\"text\"",
|
|
7107
|
+
"6": "\"color\"",
|
|
7108
7108
|
"7": "\"button\"",
|
|
7109
7109
|
"8": "\"date\"",
|
|
7110
7110
|
"9": "\"time\"",
|
|
@@ -9920,37 +9920,37 @@ var B24UIMeta = {
|
|
|
9920
9920
|
"default": "1"
|
|
9921
9921
|
},
|
|
9922
9922
|
{
|
|
9923
|
-
"name": "
|
|
9923
|
+
"name": "max",
|
|
9924
9924
|
"global": false,
|
|
9925
|
-
"description": "The
|
|
9925
|
+
"description": "The maximum value for the range.",
|
|
9926
9926
|
"tags": [],
|
|
9927
9927
|
"required": false,
|
|
9928
|
-
"type": "
|
|
9928
|
+
"type": "number | undefined",
|
|
9929
9929
|
"schema": {
|
|
9930
9930
|
"kind": "enum",
|
|
9931
|
-
"type": "
|
|
9931
|
+
"type": "number | undefined",
|
|
9932
9932
|
"schema": {
|
|
9933
9933
|
"0": "undefined",
|
|
9934
|
-
"1": "
|
|
9934
|
+
"1": "number"
|
|
9935
9935
|
}
|
|
9936
|
-
}
|
|
9936
|
+
},
|
|
9937
|
+
"default": "100"
|
|
9937
9938
|
},
|
|
9938
9939
|
{
|
|
9939
|
-
"name": "
|
|
9940
|
+
"name": "name",
|
|
9940
9941
|
"global": false,
|
|
9941
|
-
"description": "The
|
|
9942
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
9942
9943
|
"tags": [],
|
|
9943
9944
|
"required": false,
|
|
9944
|
-
"type": "
|
|
9945
|
+
"type": "string | undefined",
|
|
9945
9946
|
"schema": {
|
|
9946
9947
|
"kind": "enum",
|
|
9947
|
-
"type": "
|
|
9948
|
+
"type": "string | undefined",
|
|
9948
9949
|
"schema": {
|
|
9949
9950
|
"0": "undefined",
|
|
9950
|
-
"1": "
|
|
9951
|
+
"1": "string"
|
|
9951
9952
|
}
|
|
9952
|
-
}
|
|
9953
|
-
"default": "100"
|
|
9953
|
+
}
|
|
9954
9954
|
},
|
|
9955
9955
|
{
|
|
9956
9956
|
"name": "inverted",
|
|
@@ -13652,9 +13652,9 @@ var B24UIMeta = {
|
|
|
13652
13652
|
}
|
|
13653
13653
|
},
|
|
13654
13654
|
{
|
|
13655
|
-
"name": "
|
|
13655
|
+
"name": "value",
|
|
13656
13656
|
"global": false,
|
|
13657
|
-
"description": "The
|
|
13657
|
+
"description": "The value given as data when submitted with a `name`.",
|
|
13658
13658
|
"tags": [],
|
|
13659
13659
|
"required": false,
|
|
13660
13660
|
"type": "string | undefined",
|
|
@@ -13668,9 +13668,9 @@ var B24UIMeta = {
|
|
|
13668
13668
|
}
|
|
13669
13669
|
},
|
|
13670
13670
|
{
|
|
13671
|
-
"name": "
|
|
13671
|
+
"name": "name",
|
|
13672
13672
|
"global": false,
|
|
13673
|
-
"description": "The
|
|
13673
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
13674
13674
|
"tags": [],
|
|
13675
13675
|
"required": false,
|
|
13676
13676
|
"type": "string | undefined",
|
package/dist/meta.d.mts
CHANGED
|
@@ -5500,22 +5500,6 @@ var B24UIMeta = {
|
|
|
5500
5500
|
}
|
|
5501
5501
|
}
|
|
5502
5502
|
},
|
|
5503
|
-
{
|
|
5504
|
-
"name": "name",
|
|
5505
|
-
"global": false,
|
|
5506
|
-
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
5507
|
-
"tags": [],
|
|
5508
|
-
"required": false,
|
|
5509
|
-
"type": "string | undefined",
|
|
5510
|
-
"schema": {
|
|
5511
|
-
"kind": "enum",
|
|
5512
|
-
"type": "string | undefined",
|
|
5513
|
-
"schema": {
|
|
5514
|
-
"0": "undefined",
|
|
5515
|
-
"1": "string"
|
|
5516
|
-
}
|
|
5517
|
-
}
|
|
5518
|
-
},
|
|
5519
5503
|
{
|
|
5520
5504
|
"name": "value",
|
|
5521
5505
|
"global": false,
|
|
@@ -5540,6 +5524,22 @@ var B24UIMeta = {
|
|
|
5540
5524
|
}
|
|
5541
5525
|
}
|
|
5542
5526
|
},
|
|
5527
|
+
{
|
|
5528
|
+
"name": "name",
|
|
5529
|
+
"global": false,
|
|
5530
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
5531
|
+
"tags": [],
|
|
5532
|
+
"required": false,
|
|
5533
|
+
"type": "string | undefined",
|
|
5534
|
+
"schema": {
|
|
5535
|
+
"kind": "enum",
|
|
5536
|
+
"type": "string | undefined",
|
|
5537
|
+
"schema": {
|
|
5538
|
+
"0": "undefined",
|
|
5539
|
+
"1": "string"
|
|
5540
|
+
}
|
|
5541
|
+
}
|
|
5542
|
+
},
|
|
5543
5543
|
{
|
|
5544
5544
|
"name": "required",
|
|
5545
5545
|
"global": false,
|
|
@@ -7103,8 +7103,8 @@ var B24UIMeta = {
|
|
|
7103
7103
|
"2": "\"reset\"",
|
|
7104
7104
|
"3": "\"submit\"",
|
|
7105
7105
|
"4": "\"image\"",
|
|
7106
|
-
"5": "\"
|
|
7107
|
-
"6": "\"
|
|
7106
|
+
"5": "\"text\"",
|
|
7107
|
+
"6": "\"color\"",
|
|
7108
7108
|
"7": "\"button\"",
|
|
7109
7109
|
"8": "\"date\"",
|
|
7110
7110
|
"9": "\"time\"",
|
|
@@ -9920,37 +9920,37 @@ var B24UIMeta = {
|
|
|
9920
9920
|
"default": "1"
|
|
9921
9921
|
},
|
|
9922
9922
|
{
|
|
9923
|
-
"name": "
|
|
9923
|
+
"name": "max",
|
|
9924
9924
|
"global": false,
|
|
9925
|
-
"description": "The
|
|
9925
|
+
"description": "The maximum value for the range.",
|
|
9926
9926
|
"tags": [],
|
|
9927
9927
|
"required": false,
|
|
9928
|
-
"type": "
|
|
9928
|
+
"type": "number | undefined",
|
|
9929
9929
|
"schema": {
|
|
9930
9930
|
"kind": "enum",
|
|
9931
|
-
"type": "
|
|
9931
|
+
"type": "number | undefined",
|
|
9932
9932
|
"schema": {
|
|
9933
9933
|
"0": "undefined",
|
|
9934
|
-
"1": "
|
|
9934
|
+
"1": "number"
|
|
9935
9935
|
}
|
|
9936
|
-
}
|
|
9936
|
+
},
|
|
9937
|
+
"default": "100"
|
|
9937
9938
|
},
|
|
9938
9939
|
{
|
|
9939
|
-
"name": "
|
|
9940
|
+
"name": "name",
|
|
9940
9941
|
"global": false,
|
|
9941
|
-
"description": "The
|
|
9942
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
9942
9943
|
"tags": [],
|
|
9943
9944
|
"required": false,
|
|
9944
|
-
"type": "
|
|
9945
|
+
"type": "string | undefined",
|
|
9945
9946
|
"schema": {
|
|
9946
9947
|
"kind": "enum",
|
|
9947
|
-
"type": "
|
|
9948
|
+
"type": "string | undefined",
|
|
9948
9949
|
"schema": {
|
|
9949
9950
|
"0": "undefined",
|
|
9950
|
-
"1": "
|
|
9951
|
+
"1": "string"
|
|
9951
9952
|
}
|
|
9952
|
-
}
|
|
9953
|
-
"default": "100"
|
|
9953
|
+
}
|
|
9954
9954
|
},
|
|
9955
9955
|
{
|
|
9956
9956
|
"name": "inverted",
|
|
@@ -13652,9 +13652,9 @@ var B24UIMeta = {
|
|
|
13652
13652
|
}
|
|
13653
13653
|
},
|
|
13654
13654
|
{
|
|
13655
|
-
"name": "
|
|
13655
|
+
"name": "value",
|
|
13656
13656
|
"global": false,
|
|
13657
|
-
"description": "The
|
|
13657
|
+
"description": "The value given as data when submitted with a `name`.",
|
|
13658
13658
|
"tags": [],
|
|
13659
13659
|
"required": false,
|
|
13660
13660
|
"type": "string | undefined",
|
|
@@ -13668,9 +13668,9 @@ var B24UIMeta = {
|
|
|
13668
13668
|
}
|
|
13669
13669
|
},
|
|
13670
13670
|
{
|
|
13671
|
-
"name": "
|
|
13671
|
+
"name": "name",
|
|
13672
13672
|
"global": false,
|
|
13673
|
-
"description": "The
|
|
13673
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
13674
13674
|
"tags": [],
|
|
13675
13675
|
"required": false,
|
|
13676
13676
|
"type": "string | undefined",
|
package/dist/meta.d.ts
CHANGED
|
@@ -5500,22 +5500,6 @@ var B24UIMeta = {
|
|
|
5500
5500
|
}
|
|
5501
5501
|
}
|
|
5502
5502
|
},
|
|
5503
|
-
{
|
|
5504
|
-
"name": "name",
|
|
5505
|
-
"global": false,
|
|
5506
|
-
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
5507
|
-
"tags": [],
|
|
5508
|
-
"required": false,
|
|
5509
|
-
"type": "string | undefined",
|
|
5510
|
-
"schema": {
|
|
5511
|
-
"kind": "enum",
|
|
5512
|
-
"type": "string | undefined",
|
|
5513
|
-
"schema": {
|
|
5514
|
-
"0": "undefined",
|
|
5515
|
-
"1": "string"
|
|
5516
|
-
}
|
|
5517
|
-
}
|
|
5518
|
-
},
|
|
5519
5503
|
{
|
|
5520
5504
|
"name": "value",
|
|
5521
5505
|
"global": false,
|
|
@@ -5540,6 +5524,22 @@ var B24UIMeta = {
|
|
|
5540
5524
|
}
|
|
5541
5525
|
}
|
|
5542
5526
|
},
|
|
5527
|
+
{
|
|
5528
|
+
"name": "name",
|
|
5529
|
+
"global": false,
|
|
5530
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
5531
|
+
"tags": [],
|
|
5532
|
+
"required": false,
|
|
5533
|
+
"type": "string | undefined",
|
|
5534
|
+
"schema": {
|
|
5535
|
+
"kind": "enum",
|
|
5536
|
+
"type": "string | undefined",
|
|
5537
|
+
"schema": {
|
|
5538
|
+
"0": "undefined",
|
|
5539
|
+
"1": "string"
|
|
5540
|
+
}
|
|
5541
|
+
}
|
|
5542
|
+
},
|
|
5543
5543
|
{
|
|
5544
5544
|
"name": "required",
|
|
5545
5545
|
"global": false,
|
|
@@ -7103,8 +7103,8 @@ var B24UIMeta = {
|
|
|
7103
7103
|
"2": "\"reset\"",
|
|
7104
7104
|
"3": "\"submit\"",
|
|
7105
7105
|
"4": "\"image\"",
|
|
7106
|
-
"5": "\"
|
|
7107
|
-
"6": "\"
|
|
7106
|
+
"5": "\"text\"",
|
|
7107
|
+
"6": "\"color\"",
|
|
7108
7108
|
"7": "\"button\"",
|
|
7109
7109
|
"8": "\"date\"",
|
|
7110
7110
|
"9": "\"time\"",
|
|
@@ -9920,37 +9920,37 @@ var B24UIMeta = {
|
|
|
9920
9920
|
"default": "1"
|
|
9921
9921
|
},
|
|
9922
9922
|
{
|
|
9923
|
-
"name": "
|
|
9923
|
+
"name": "max",
|
|
9924
9924
|
"global": false,
|
|
9925
|
-
"description": "The
|
|
9925
|
+
"description": "The maximum value for the range.",
|
|
9926
9926
|
"tags": [],
|
|
9927
9927
|
"required": false,
|
|
9928
|
-
"type": "
|
|
9928
|
+
"type": "number | undefined",
|
|
9929
9929
|
"schema": {
|
|
9930
9930
|
"kind": "enum",
|
|
9931
|
-
"type": "
|
|
9931
|
+
"type": "number | undefined",
|
|
9932
9932
|
"schema": {
|
|
9933
9933
|
"0": "undefined",
|
|
9934
|
-
"1": "
|
|
9934
|
+
"1": "number"
|
|
9935
9935
|
}
|
|
9936
|
-
}
|
|
9936
|
+
},
|
|
9937
|
+
"default": "100"
|
|
9937
9938
|
},
|
|
9938
9939
|
{
|
|
9939
|
-
"name": "
|
|
9940
|
+
"name": "name",
|
|
9940
9941
|
"global": false,
|
|
9941
|
-
"description": "The
|
|
9942
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
9942
9943
|
"tags": [],
|
|
9943
9944
|
"required": false,
|
|
9944
|
-
"type": "
|
|
9945
|
+
"type": "string | undefined",
|
|
9945
9946
|
"schema": {
|
|
9946
9947
|
"kind": "enum",
|
|
9947
|
-
"type": "
|
|
9948
|
+
"type": "string | undefined",
|
|
9948
9949
|
"schema": {
|
|
9949
9950
|
"0": "undefined",
|
|
9950
|
-
"1": "
|
|
9951
|
+
"1": "string"
|
|
9951
9952
|
}
|
|
9952
|
-
}
|
|
9953
|
-
"default": "100"
|
|
9953
|
+
}
|
|
9954
9954
|
},
|
|
9955
9955
|
{
|
|
9956
9956
|
"name": "inverted",
|
|
@@ -13652,9 +13652,9 @@ var B24UIMeta = {
|
|
|
13652
13652
|
}
|
|
13653
13653
|
},
|
|
13654
13654
|
{
|
|
13655
|
-
"name": "
|
|
13655
|
+
"name": "value",
|
|
13656
13656
|
"global": false,
|
|
13657
|
-
"description": "The
|
|
13657
|
+
"description": "The value given as data when submitted with a `name`.",
|
|
13658
13658
|
"tags": [],
|
|
13659
13659
|
"required": false,
|
|
13660
13660
|
"type": "string | undefined",
|
|
@@ -13668,9 +13668,9 @@ var B24UIMeta = {
|
|
|
13668
13668
|
}
|
|
13669
13669
|
},
|
|
13670
13670
|
{
|
|
13671
|
-
"name": "
|
|
13671
|
+
"name": "name",
|
|
13672
13672
|
"global": false,
|
|
13673
|
-
"description": "The
|
|
13673
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
13674
13674
|
"tags": [],
|
|
13675
13675
|
"required": false,
|
|
13676
13676
|
"type": "string | undefined",
|
package/dist/meta.mjs
CHANGED
|
@@ -5500,22 +5500,6 @@ const B24UIMeta = {
|
|
|
5500
5500
|
}
|
|
5501
5501
|
}
|
|
5502
5502
|
},
|
|
5503
|
-
{
|
|
5504
|
-
"name": "name",
|
|
5505
|
-
"global": false,
|
|
5506
|
-
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
5507
|
-
"tags": [],
|
|
5508
|
-
"required": false,
|
|
5509
|
-
"type": "string | undefined",
|
|
5510
|
-
"schema": {
|
|
5511
|
-
"kind": "enum",
|
|
5512
|
-
"type": "string | undefined",
|
|
5513
|
-
"schema": {
|
|
5514
|
-
"0": "undefined",
|
|
5515
|
-
"1": "string"
|
|
5516
|
-
}
|
|
5517
|
-
}
|
|
5518
|
-
},
|
|
5519
5503
|
{
|
|
5520
5504
|
"name": "value",
|
|
5521
5505
|
"global": false,
|
|
@@ -5540,6 +5524,22 @@ const B24UIMeta = {
|
|
|
5540
5524
|
}
|
|
5541
5525
|
}
|
|
5542
5526
|
},
|
|
5527
|
+
{
|
|
5528
|
+
"name": "name",
|
|
5529
|
+
"global": false,
|
|
5530
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
5531
|
+
"tags": [],
|
|
5532
|
+
"required": false,
|
|
5533
|
+
"type": "string | undefined",
|
|
5534
|
+
"schema": {
|
|
5535
|
+
"kind": "enum",
|
|
5536
|
+
"type": "string | undefined",
|
|
5537
|
+
"schema": {
|
|
5538
|
+
"0": "undefined",
|
|
5539
|
+
"1": "string"
|
|
5540
|
+
}
|
|
5541
|
+
}
|
|
5542
|
+
},
|
|
5543
5543
|
{
|
|
5544
5544
|
"name": "required",
|
|
5545
5545
|
"global": false,
|
|
@@ -7103,8 +7103,8 @@ const B24UIMeta = {
|
|
|
7103
7103
|
"2": "\"reset\"",
|
|
7104
7104
|
"3": "\"submit\"",
|
|
7105
7105
|
"4": "\"image\"",
|
|
7106
|
-
"5": "\"
|
|
7107
|
-
"6": "\"
|
|
7106
|
+
"5": "\"text\"",
|
|
7107
|
+
"6": "\"color\"",
|
|
7108
7108
|
"7": "\"button\"",
|
|
7109
7109
|
"8": "\"date\"",
|
|
7110
7110
|
"9": "\"time\"",
|
|
@@ -9920,37 +9920,37 @@ const B24UIMeta = {
|
|
|
9920
9920
|
"default": "1"
|
|
9921
9921
|
},
|
|
9922
9922
|
{
|
|
9923
|
-
"name": "
|
|
9923
|
+
"name": "max",
|
|
9924
9924
|
"global": false,
|
|
9925
|
-
"description": "The
|
|
9925
|
+
"description": "The maximum value for the range.",
|
|
9926
9926
|
"tags": [],
|
|
9927
9927
|
"required": false,
|
|
9928
|
-
"type": "
|
|
9928
|
+
"type": "number | undefined",
|
|
9929
9929
|
"schema": {
|
|
9930
9930
|
"kind": "enum",
|
|
9931
|
-
"type": "
|
|
9931
|
+
"type": "number | undefined",
|
|
9932
9932
|
"schema": {
|
|
9933
9933
|
"0": "undefined",
|
|
9934
|
-
"1": "
|
|
9934
|
+
"1": "number"
|
|
9935
9935
|
}
|
|
9936
|
-
}
|
|
9936
|
+
},
|
|
9937
|
+
"default": "100"
|
|
9937
9938
|
},
|
|
9938
9939
|
{
|
|
9939
|
-
"name": "
|
|
9940
|
+
"name": "name",
|
|
9940
9941
|
"global": false,
|
|
9941
|
-
"description": "The
|
|
9942
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
9942
9943
|
"tags": [],
|
|
9943
9944
|
"required": false,
|
|
9944
|
-
"type": "
|
|
9945
|
+
"type": "string | undefined",
|
|
9945
9946
|
"schema": {
|
|
9946
9947
|
"kind": "enum",
|
|
9947
|
-
"type": "
|
|
9948
|
+
"type": "string | undefined",
|
|
9948
9949
|
"schema": {
|
|
9949
9950
|
"0": "undefined",
|
|
9950
|
-
"1": "
|
|
9951
|
+
"1": "string"
|
|
9951
9952
|
}
|
|
9952
|
-
}
|
|
9953
|
-
"default": "100"
|
|
9953
|
+
}
|
|
9954
9954
|
},
|
|
9955
9955
|
{
|
|
9956
9956
|
"name": "inverted",
|
|
@@ -13652,9 +13652,9 @@ const B24UIMeta = {
|
|
|
13652
13652
|
}
|
|
13653
13653
|
},
|
|
13654
13654
|
{
|
|
13655
|
-
"name": "
|
|
13655
|
+
"name": "value",
|
|
13656
13656
|
"global": false,
|
|
13657
|
-
"description": "The
|
|
13657
|
+
"description": "The value given as data when submitted with a `name`.",
|
|
13658
13658
|
"tags": [],
|
|
13659
13659
|
"required": false,
|
|
13660
13660
|
"type": "string | undefined",
|
|
@@ -13668,9 +13668,9 @@ const B24UIMeta = {
|
|
|
13668
13668
|
}
|
|
13669
13669
|
},
|
|
13670
13670
|
{
|
|
13671
|
-
"name": "
|
|
13671
|
+
"name": "name",
|
|
13672
13672
|
"global": false,
|
|
13673
|
-
"description": "The
|
|
13673
|
+
"description": "The name of the field. Submitted with its owning form as part of a name/value pair.",
|
|
13674
13674
|
"tags": [],
|
|
13675
13675
|
"required": false,
|
|
13676
13676
|
"type": "string | undefined",
|
package/dist/module.json
CHANGED
package/dist/unplugin.cjs
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
const node_url = require('node:url');
|
|
4
4
|
const pathe = require('pathe');
|
|
5
5
|
const unplugin = require('unplugin');
|
|
6
|
-
const AutoImport = require('unplugin-auto-import');
|
|
7
6
|
const defu = require('defu');
|
|
8
7
|
const tailwind = require('@tailwindcss/vite');
|
|
9
8
|
const templates = require('./shared/b24ui-nuxt.D8eTlsIC.cjs');
|
|
@@ -12,16 +11,17 @@ const knitwork = require('knitwork');
|
|
|
12
11
|
const MagicString = require('magic-string');
|
|
13
12
|
const mlly = require('mlly');
|
|
14
13
|
const AutoImportComponents = require('unplugin-vue-components');
|
|
14
|
+
const AutoImport = require('unplugin-auto-import');
|
|
15
15
|
require('scule');
|
|
16
16
|
require('@nuxt/kit');
|
|
17
17
|
|
|
18
18
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
19
19
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
20
20
|
|
|
21
|
-
const AutoImport__default = /*#__PURE__*/_interopDefaultCompat(AutoImport);
|
|
22
21
|
const tailwind__default = /*#__PURE__*/_interopDefaultCompat(tailwind);
|
|
23
22
|
const MagicString__default = /*#__PURE__*/_interopDefaultCompat(MagicString);
|
|
24
23
|
const AutoImportComponents__default = /*#__PURE__*/_interopDefaultCompat(AutoImportComponents);
|
|
24
|
+
const AutoImport__default = /*#__PURE__*/_interopDefaultCompat(AutoImport);
|
|
25
25
|
|
|
26
26
|
function TemplatePlugin(options) {
|
|
27
27
|
const templates$1 = templates.getTemplates(options);
|
|
@@ -100,7 +100,7 @@ function AppConfigPlugin(options, appConfig) {
|
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
function ComponentImportPlugin(
|
|
103
|
+
function ComponentImportPlugin(options, meta) {
|
|
104
104
|
const components = tinyglobby.globSync("**/*.vue", { cwd: pathe.join(runtimeDir, "components") });
|
|
105
105
|
const componentNames = new Set(components.map((c) => `B24${c.replace(/\.vue$/, "")}`));
|
|
106
106
|
const componentsContent = tinyglobby.globSync("**/*.vue", { cwd: pathe.join(runtimeDir, "components/content") });
|
|
@@ -109,10 +109,26 @@ function ComponentImportPlugin(framework, options) {
|
|
|
109
109
|
const componentProseNames = new Set(componentsProse.map((c) => `B24${c.replace(/\.vue$/, "")}`));
|
|
110
110
|
const overrides = tinyglobby.globSync("**/*.vue", { cwd: pathe.join(runtimeDir, "vue/components") });
|
|
111
111
|
const overrideNames = new Set(overrides.map((c) => `B24${c.replace(/\.vue$/, "")}`));
|
|
112
|
+
const pluginOptions = defu.defu(options.components, {
|
|
113
|
+
dts: options.dts ?? true,
|
|
114
|
+
exclude: [/[\\/]node_modules[\\/](?!\.pnpm|@nuxt\/ui)/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
|
|
115
|
+
resolvers: [
|
|
116
|
+
(componentName) => {
|
|
117
|
+
if (overrideNames.has(componentName))
|
|
118
|
+
return { name: "default", from: pathe.join(runtimeDir, "vue/components", `${componentName.slice("B24".length)}.vue`) };
|
|
119
|
+
if (componentProseNames.has(componentName))
|
|
120
|
+
return { name: "default", from: pathe.join(runtimeDir, "components/prose", `${componentName.slice("B24".length)}.vue`) };
|
|
121
|
+
if (componentContentNames.has(componentName))
|
|
122
|
+
return { name: "default", from: pathe.join(runtimeDir, "components/content", `${componentName.slice("B24".length)}.vue`) };
|
|
123
|
+
if (componentNames.has(componentName))
|
|
124
|
+
return { name: "default", from: pathe.join(runtimeDir, "components", `${componentName.slice("B24".length)}.vue`) };
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
});
|
|
112
128
|
return [
|
|
113
129
|
/**
|
|
114
130
|
* This plugin aims to ensure we override certain components with Vue-compatible versions:
|
|
115
|
-
* <
|
|
131
|
+
* <B24Link> currently.
|
|
116
132
|
*/
|
|
117
133
|
{
|
|
118
134
|
name: "bitrix24:b24ui:components",
|
|
@@ -130,38 +146,7 @@ function ComponentImportPlugin(framework, options) {
|
|
|
130
146
|
}
|
|
131
147
|
}
|
|
132
148
|
},
|
|
133
|
-
AutoImportComponents__default
|
|
134
|
-
dts: options.dts ?? true,
|
|
135
|
-
exclude: [/[\\/]node_modules[\\/](?!\.pnpm|@bitrix24\/b24ui)/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
|
|
136
|
-
resolvers: [
|
|
137
|
-
(componentName) => {
|
|
138
|
-
if (overrideNames.has(componentName)) {
|
|
139
|
-
return {
|
|
140
|
-
name: "default",
|
|
141
|
-
from: pathe.join(runtimeDir, "vue/components", `${componentName.slice("B24".length)}.vue`)
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
if (componentContentNames.has(componentName)) {
|
|
145
|
-
return {
|
|
146
|
-
name: "default",
|
|
147
|
-
from: pathe.join(runtimeDir, "components/content", `${componentName.slice("B24".length)}.vue`)
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
if (componentProseNames.has(componentName)) {
|
|
151
|
-
return {
|
|
152
|
-
name: "default",
|
|
153
|
-
from: pathe.join(runtimeDir, "components/prose", `${componentName.slice("B24".length)}.vue`)
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
if (componentNames.has(componentName)) {
|
|
157
|
-
return {
|
|
158
|
-
name: "default",
|
|
159
|
-
from: pathe.join(runtimeDir, "components", `${componentName.slice("B24".length)}.vue`)
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
]
|
|
164
|
-
})
|
|
149
|
+
AutoImportComponents__default.raw(pluginOptions, meta)
|
|
165
150
|
];
|
|
166
151
|
}
|
|
167
152
|
const RELATIVE_IMPORT_RE = /^\.{1,2}\//;
|
|
@@ -194,19 +179,41 @@ function Bitrix24EnvironmentPlugin() {
|
|
|
194
179
|
};
|
|
195
180
|
}
|
|
196
181
|
|
|
182
|
+
function AutoImportPlugin(options, meta) {
|
|
183
|
+
const pluginOptions = defu.defu(options.autoImport, {
|
|
184
|
+
dts: options.dts ?? true,
|
|
185
|
+
dirs: [pathe.join(runtimeDir, "composables")]
|
|
186
|
+
});
|
|
187
|
+
return AutoImport__default.raw(pluginOptions, meta);
|
|
188
|
+
}
|
|
189
|
+
|
|
197
190
|
const runtimeDir = pathe.normalize(node_url.fileURLToPath(new URL("./runtime", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('unplugin.cjs', document.baseURI).href)))));
|
|
198
191
|
const Bitrix24UIPlugin = unplugin.createUnplugin((_options = {}, meta) => {
|
|
199
192
|
const options = defu.defu(_options, { fonts: false, devtools: { enabled: false } }, templates.defaultOptions);
|
|
200
193
|
const appConfig = defu.defu({ b24ui: options.b24ui }, { b24ui: templates.getDefaultUiConfig() });
|
|
201
194
|
return [
|
|
202
195
|
Bitrix24EnvironmentPlugin(),
|
|
203
|
-
|
|
204
|
-
|
|
196
|
+
ComponentImportPlugin(options, meta),
|
|
197
|
+
AutoImportPlugin(options, meta),
|
|
205
198
|
tailwind__default(),
|
|
206
199
|
PluginsPlugin(options),
|
|
207
200
|
TemplatePlugin(options),
|
|
208
|
-
AppConfigPlugin(options, appConfig)
|
|
209
|
-
|
|
201
|
+
AppConfigPlugin(options, appConfig),
|
|
202
|
+
{
|
|
203
|
+
name: "bitrix24:b24ui:plugins-duplication-detection",
|
|
204
|
+
vite: {
|
|
205
|
+
configResolved(config) {
|
|
206
|
+
const plugins = config.plugins || [];
|
|
207
|
+
if (plugins.filter((i) => i.name === "unplugin-auto-import").length > 1) {
|
|
208
|
+
throw new Error("[Bitrix24 UI] Multiple instances of `unplugin-auto-import` detected. Nuxt UI includes `unplugin-auto-import` already, and you can configure it using `autoImport` option in Bitrix24 UI module options.");
|
|
209
|
+
}
|
|
210
|
+
if (plugins.filter((i) => i.name === "unplugin-vue-components").length > 1) {
|
|
211
|
+
throw new Error("[Bitrix24 UI] Multiple instances of `unplugin-vue-components` detected. Nuxt UI includes `unplugin-vue-components` already, and you can configure it using `components` option in Bitrix24 UI module options.");
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
].flat(1);
|
|
210
217
|
});
|
|
211
218
|
|
|
212
219
|
exports.Bitrix24UIPlugin = Bitrix24UIPlugin;
|
package/dist/unplugin.d.cts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as unplugin from 'unplugin';
|
|
2
|
+
import { Options } from 'unplugin-auto-import/types';
|
|
3
|
+
import { Options as Options$1 } from 'unplugin-vue-components/types';
|
|
2
4
|
import * as b24ui from '#build/b24ui';
|
|
3
5
|
import { ModuleOptions } from './module.cjs';
|
|
4
6
|
import { DeepPartial } from '../dist/runtime/types/utils.js';
|
|
@@ -15,6 +17,14 @@ interface Bitrix24UIOptions extends Omit<ModuleOptions, 'colorMode'> {
|
|
|
15
17
|
* @defaultValue `true`
|
|
16
18
|
*/
|
|
17
19
|
colorMode?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Override options for `unplugin-auto-import`
|
|
22
|
+
*/
|
|
23
|
+
autoImport?: Partial<Options>;
|
|
24
|
+
/**
|
|
25
|
+
* Override options for `unplugin-vue-components`
|
|
26
|
+
*/
|
|
27
|
+
components?: Partial<Options$1>;
|
|
18
28
|
}
|
|
19
29
|
declare const runtimeDir: string;
|
|
20
30
|
declare const Bitrix24UIPlugin: unplugin.UnpluginInstance<Bitrix24UIOptions | undefined, boolean>;
|
package/dist/unplugin.d.mts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as unplugin from 'unplugin';
|
|
2
|
+
import { Options } from 'unplugin-auto-import/types';
|
|
3
|
+
import { Options as Options$1 } from 'unplugin-vue-components/types';
|
|
2
4
|
import * as b24ui from '#build/b24ui';
|
|
3
5
|
import { ModuleOptions } from './module.mjs';
|
|
4
6
|
import { DeepPartial } from '../dist/runtime/types/utils.js';
|
|
@@ -15,6 +17,14 @@ interface Bitrix24UIOptions extends Omit<ModuleOptions, 'colorMode'> {
|
|
|
15
17
|
* @defaultValue `true`
|
|
16
18
|
*/
|
|
17
19
|
colorMode?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Override options for `unplugin-auto-import`
|
|
22
|
+
*/
|
|
23
|
+
autoImport?: Partial<Options>;
|
|
24
|
+
/**
|
|
25
|
+
* Override options for `unplugin-vue-components`
|
|
26
|
+
*/
|
|
27
|
+
components?: Partial<Options$1>;
|
|
18
28
|
}
|
|
19
29
|
declare const runtimeDir: string;
|
|
20
30
|
declare const Bitrix24UIPlugin: unplugin.UnpluginInstance<Bitrix24UIOptions | undefined, boolean>;
|
package/dist/unplugin.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as unplugin from 'unplugin';
|
|
2
|
+
import { Options } from 'unplugin-auto-import/types';
|
|
3
|
+
import { Options as Options$1 } from 'unplugin-vue-components/types';
|
|
2
4
|
import * as b24ui from '#build/b24ui';
|
|
3
5
|
import { ModuleOptions } from './module.js';
|
|
4
6
|
import { DeepPartial } from '../dist/runtime/types/utils.js';
|
|
@@ -15,6 +17,14 @@ interface Bitrix24UIOptions extends Omit<ModuleOptions, 'colorMode'> {
|
|
|
15
17
|
* @defaultValue `true`
|
|
16
18
|
*/
|
|
17
19
|
colorMode?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Override options for `unplugin-auto-import`
|
|
22
|
+
*/
|
|
23
|
+
autoImport?: Partial<Options>;
|
|
24
|
+
/**
|
|
25
|
+
* Override options for `unplugin-vue-components`
|
|
26
|
+
*/
|
|
27
|
+
components?: Partial<Options$1>;
|
|
18
28
|
}
|
|
19
29
|
declare const runtimeDir: string;
|
|
20
30
|
declare const Bitrix24UIPlugin: unplugin.UnpluginInstance<Bitrix24UIOptions | undefined, boolean>;
|
package/dist/unplugin.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { fileURLToPath } from 'node:url';
|
|
2
2
|
import { join, normalize } from 'pathe';
|
|
3
3
|
import { createUnplugin } from 'unplugin';
|
|
4
|
-
import AutoImport from 'unplugin-auto-import';
|
|
5
4
|
import { defu } from 'defu';
|
|
6
5
|
import tailwind from '@tailwindcss/vite';
|
|
7
6
|
import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.CGBDJv97.mjs';
|
|
@@ -10,6 +9,7 @@ import { genSafeVariableName } from 'knitwork';
|
|
|
10
9
|
import MagicString from 'magic-string';
|
|
11
10
|
import { resolvePathSync } from 'mlly';
|
|
12
11
|
import AutoImportComponents from 'unplugin-vue-components';
|
|
12
|
+
import AutoImport from 'unplugin-auto-import';
|
|
13
13
|
import 'scule';
|
|
14
14
|
import '@nuxt/kit';
|
|
15
15
|
|
|
@@ -90,7 +90,7 @@ function AppConfigPlugin(options, appConfig) {
|
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
function ComponentImportPlugin(
|
|
93
|
+
function ComponentImportPlugin(options, meta) {
|
|
94
94
|
const components = globSync("**/*.vue", { cwd: join(runtimeDir, "components") });
|
|
95
95
|
const componentNames = new Set(components.map((c) => `B24${c.replace(/\.vue$/, "")}`));
|
|
96
96
|
const componentsContent = globSync("**/*.vue", { cwd: join(runtimeDir, "components/content") });
|
|
@@ -99,10 +99,26 @@ function ComponentImportPlugin(framework, options) {
|
|
|
99
99
|
const componentProseNames = new Set(componentsProse.map((c) => `B24${c.replace(/\.vue$/, "")}`));
|
|
100
100
|
const overrides = globSync("**/*.vue", { cwd: join(runtimeDir, "vue/components") });
|
|
101
101
|
const overrideNames = new Set(overrides.map((c) => `B24${c.replace(/\.vue$/, "")}`));
|
|
102
|
+
const pluginOptions = defu(options.components, {
|
|
103
|
+
dts: options.dts ?? true,
|
|
104
|
+
exclude: [/[\\/]node_modules[\\/](?!\.pnpm|@nuxt\/ui)/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
|
|
105
|
+
resolvers: [
|
|
106
|
+
(componentName) => {
|
|
107
|
+
if (overrideNames.has(componentName))
|
|
108
|
+
return { name: "default", from: join(runtimeDir, "vue/components", `${componentName.slice("B24".length)}.vue`) };
|
|
109
|
+
if (componentProseNames.has(componentName))
|
|
110
|
+
return { name: "default", from: join(runtimeDir, "components/prose", `${componentName.slice("B24".length)}.vue`) };
|
|
111
|
+
if (componentContentNames.has(componentName))
|
|
112
|
+
return { name: "default", from: join(runtimeDir, "components/content", `${componentName.slice("B24".length)}.vue`) };
|
|
113
|
+
if (componentNames.has(componentName))
|
|
114
|
+
return { name: "default", from: join(runtimeDir, "components", `${componentName.slice("B24".length)}.vue`) };
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
});
|
|
102
118
|
return [
|
|
103
119
|
/**
|
|
104
120
|
* This plugin aims to ensure we override certain components with Vue-compatible versions:
|
|
105
|
-
* <
|
|
121
|
+
* <B24Link> currently.
|
|
106
122
|
*/
|
|
107
123
|
{
|
|
108
124
|
name: "bitrix24:b24ui:components",
|
|
@@ -120,38 +136,7 @@ function ComponentImportPlugin(framework, options) {
|
|
|
120
136
|
}
|
|
121
137
|
}
|
|
122
138
|
},
|
|
123
|
-
AutoImportComponents
|
|
124
|
-
dts: options.dts ?? true,
|
|
125
|
-
exclude: [/[\\/]node_modules[\\/](?!\.pnpm|@bitrix24\/b24ui)/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
|
|
126
|
-
resolvers: [
|
|
127
|
-
(componentName) => {
|
|
128
|
-
if (overrideNames.has(componentName)) {
|
|
129
|
-
return {
|
|
130
|
-
name: "default",
|
|
131
|
-
from: join(runtimeDir, "vue/components", `${componentName.slice("B24".length)}.vue`)
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
if (componentContentNames.has(componentName)) {
|
|
135
|
-
return {
|
|
136
|
-
name: "default",
|
|
137
|
-
from: join(runtimeDir, "components/content", `${componentName.slice("B24".length)}.vue`)
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
if (componentProseNames.has(componentName)) {
|
|
141
|
-
return {
|
|
142
|
-
name: "default",
|
|
143
|
-
from: join(runtimeDir, "components/prose", `${componentName.slice("B24".length)}.vue`)
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
if (componentNames.has(componentName)) {
|
|
147
|
-
return {
|
|
148
|
-
name: "default",
|
|
149
|
-
from: join(runtimeDir, "components", `${componentName.slice("B24".length)}.vue`)
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
]
|
|
154
|
-
})
|
|
139
|
+
AutoImportComponents.raw(pluginOptions, meta)
|
|
155
140
|
];
|
|
156
141
|
}
|
|
157
142
|
const RELATIVE_IMPORT_RE = /^\.{1,2}\//;
|
|
@@ -184,19 +169,41 @@ function Bitrix24EnvironmentPlugin() {
|
|
|
184
169
|
};
|
|
185
170
|
}
|
|
186
171
|
|
|
172
|
+
function AutoImportPlugin(options, meta) {
|
|
173
|
+
const pluginOptions = defu(options.autoImport, {
|
|
174
|
+
dts: options.dts ?? true,
|
|
175
|
+
dirs: [join(runtimeDir, "composables")]
|
|
176
|
+
});
|
|
177
|
+
return AutoImport.raw(pluginOptions, meta);
|
|
178
|
+
}
|
|
179
|
+
|
|
187
180
|
const runtimeDir = normalize(fileURLToPath(new URL("./runtime", import.meta.url)));
|
|
188
181
|
const Bitrix24UIPlugin = createUnplugin((_options = {}, meta) => {
|
|
189
182
|
const options = defu(_options, { fonts: false, devtools: { enabled: false } }, defaultOptions);
|
|
190
183
|
const appConfig = defu({ b24ui: options.b24ui }, { b24ui: getDefaultUiConfig() });
|
|
191
184
|
return [
|
|
192
185
|
Bitrix24EnvironmentPlugin(),
|
|
193
|
-
|
|
194
|
-
|
|
186
|
+
ComponentImportPlugin(options, meta),
|
|
187
|
+
AutoImportPlugin(options, meta),
|
|
195
188
|
tailwind(),
|
|
196
189
|
PluginsPlugin(options),
|
|
197
190
|
TemplatePlugin(options),
|
|
198
|
-
AppConfigPlugin(options, appConfig)
|
|
199
|
-
|
|
191
|
+
AppConfigPlugin(options, appConfig),
|
|
192
|
+
{
|
|
193
|
+
name: "bitrix24:b24ui:plugins-duplication-detection",
|
|
194
|
+
vite: {
|
|
195
|
+
configResolved(config) {
|
|
196
|
+
const plugins = config.plugins || [];
|
|
197
|
+
if (plugins.filter((i) => i.name === "unplugin-auto-import").length > 1) {
|
|
198
|
+
throw new Error("[Bitrix24 UI] Multiple instances of `unplugin-auto-import` detected. Nuxt UI includes `unplugin-auto-import` already, and you can configure it using `autoImport` option in Bitrix24 UI module options.");
|
|
199
|
+
}
|
|
200
|
+
if (plugins.filter((i) => i.name === "unplugin-vue-components").length > 1) {
|
|
201
|
+
throw new Error("[Bitrix24 UI] Multiple instances of `unplugin-vue-components` detected. Nuxt UI includes `unplugin-vue-components` already, and you can configure it using `components` option in Bitrix24 UI module options.");
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
].flat(1);
|
|
200
207
|
});
|
|
201
208
|
|
|
202
209
|
export { Bitrix24UIPlugin, runtimeDir };
|
package/dist/vite.cjs
CHANGED
|
@@ -4,7 +4,6 @@ const unplugin = require('./unplugin.cjs');
|
|
|
4
4
|
require('node:url');
|
|
5
5
|
require('pathe');
|
|
6
6
|
require('unplugin');
|
|
7
|
-
require('unplugin-auto-import');
|
|
8
7
|
require('defu');
|
|
9
8
|
require('@tailwindcss/vite');
|
|
10
9
|
require('./shared/b24ui-nuxt.D8eTlsIC.cjs');
|
|
@@ -15,6 +14,7 @@ require('knitwork');
|
|
|
15
14
|
require('magic-string');
|
|
16
15
|
require('mlly');
|
|
17
16
|
require('unplugin-vue-components');
|
|
17
|
+
require('unplugin-auto-import');
|
|
18
18
|
|
|
19
19
|
const vite = unplugin.Bitrix24UIPlugin.vite;
|
|
20
20
|
|
package/dist/vite.d.cts
CHANGED
package/dist/vite.d.mts
CHANGED
package/dist/vite.d.ts
CHANGED
package/dist/vite.mjs
CHANGED
|
@@ -2,7 +2,6 @@ import { Bitrix24UIPlugin } from './unplugin.mjs';
|
|
|
2
2
|
import 'node:url';
|
|
3
3
|
import 'pathe';
|
|
4
4
|
import 'unplugin';
|
|
5
|
-
import 'unplugin-auto-import';
|
|
6
5
|
import 'defu';
|
|
7
6
|
import '@tailwindcss/vite';
|
|
8
7
|
import './shared/b24ui-nuxt.CGBDJv97.mjs';
|
|
@@ -13,6 +12,7 @@ import 'knitwork';
|
|
|
13
12
|
import 'magic-string';
|
|
14
13
|
import 'mlly';
|
|
15
14
|
import 'unplugin-vue-components';
|
|
15
|
+
import 'unplugin-auto-import';
|
|
16
16
|
|
|
17
17
|
const vite = Bitrix24UIPlugin.vite;
|
|
18
18
|
|
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": "0.1.
|
|
4
|
+
"version": "0.1.5",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/bitrix24/b24ui.git"
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"@nuxt/kit": "^3.15.4",
|
|
66
66
|
"@nuxt/schema": "^3.15.4",
|
|
67
67
|
"@nuxtjs/color-mode": "^3.5.2",
|
|
68
|
-
"@tailwindcss/postcss": "^4.0.
|
|
69
|
-
"@tailwindcss/vite": "^4.0.
|
|
68
|
+
"@tailwindcss/postcss": "^4.0.1",
|
|
69
|
+
"@tailwindcss/vite": "^4.0.1",
|
|
70
70
|
"@tanstack/vue-table": "^8.20.5",
|
|
71
71
|
"@unhead/vue": "^1.11.18",
|
|
72
72
|
"@vueuse/core": "^12.5.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"reka-ui": "1.0.0-alpha.9",
|
|
91
91
|
"scule": "^1.3.0",
|
|
92
92
|
"tailwind-variants": "^0.3.1",
|
|
93
|
-
"tailwindcss": "^4.0.
|
|
93
|
+
"tailwindcss": "^4.0.1",
|
|
94
94
|
"tinyglobby": "^0.2.10",
|
|
95
95
|
"unplugin": "^2.1.2",
|
|
96
96
|
"unplugin-auto-import": "^19.0.0",
|