@uni-design-system/uni-mcp 4.0.0 → 4.1.0
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/LICENSE +21 -0
- package/dist/{chunk-WTQ4AVHO.js → chunk-UQRS5BYW.js} +109 -1058
- package/dist/chunk-UQRS5BYW.js.map +1 -0
- package/dist/http.js +1 -1
- package/dist/server.js +1 -1
- package/dist/stdio.js +1 -1
- package/package.json +14 -14
- package/dist/chunk-WTQ4AVHO.js.map +0 -1
|
@@ -7,8 +7,8 @@ import { z } from "zod";
|
|
|
7
7
|
// src/data/uni-index.json
|
|
8
8
|
var uni_index_default = {
|
|
9
9
|
meta: {
|
|
10
|
-
version: "
|
|
11
|
-
builtAt: "2026-07-23T19:
|
|
10
|
+
version: "5.0.0",
|
|
11
|
+
builtAt: "2026-07-23T19:54:03.647Z",
|
|
12
12
|
frameworks: [
|
|
13
13
|
"angular"
|
|
14
14
|
],
|
|
@@ -16,7 +16,7 @@ var uni_index_default = {
|
|
|
16
16
|
components: 59,
|
|
17
17
|
tokens: 223,
|
|
18
18
|
themes: 2,
|
|
19
|
-
examples:
|
|
19
|
+
examples: 0
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
components: [
|
|
@@ -27,7 +27,7 @@ var uni_index_default = {
|
|
|
27
27
|
summary: "",
|
|
28
28
|
description: "",
|
|
29
29
|
category: "feedback",
|
|
30
|
-
version: "
|
|
30
|
+
version: "5.0.0",
|
|
31
31
|
bindings: {
|
|
32
32
|
angular: {
|
|
33
33
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -74,13 +74,7 @@ var uni_index_default = {
|
|
|
74
74
|
]
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
|
-
examples: [
|
|
78
|
-
{
|
|
79
|
-
title: "Primary",
|
|
80
|
-
framework: "angular",
|
|
81
|
-
code: "<!-- Storybook story: Primary -->\n<Button (click)=\"alert.open()\">Show Alert</Button>\n<Alert #alert ${argsToTemplate(props)}>\n ${ngContent}\n</Alert>\n<!-- args:\n{\n ngContent: 'This is an alert!',\n variant: 'tertiary',\n symbolName: 'privacy_tip',\n }\n-->"
|
|
82
|
-
}
|
|
83
|
-
],
|
|
77
|
+
examples: [],
|
|
84
78
|
guidelines: {
|
|
85
79
|
whenToUse: "",
|
|
86
80
|
dos: [],
|
|
@@ -101,7 +95,7 @@ var uni_index_default = {
|
|
|
101
95
|
summary: "",
|
|
102
96
|
description: "",
|
|
103
97
|
category: "primitives",
|
|
104
|
-
version: "
|
|
98
|
+
version: "5.0.0",
|
|
105
99
|
bindings: {
|
|
106
100
|
angular: {
|
|
107
101
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -146,23 +140,7 @@ var uni_index_default = {
|
|
|
146
140
|
]
|
|
147
141
|
}
|
|
148
142
|
},
|
|
149
|
-
examples: [
|
|
150
|
-
{
|
|
151
|
-
title: "Primary",
|
|
152
|
-
framework: "angular",
|
|
153
|
-
code: "<!-- Storybook story: Primary -->\n<!-- args:\n{\n image: 'images/phone-zone-illustration.svg',\n imagePosition: 'center',\n imageSize: '400px',\n height: '400px',\n width: '100%',\n }\n-->"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
title: "Contain Size",
|
|
157
|
-
framework: "angular",
|
|
158
|
-
code: "<!-- Storybook story: Contain Size -->\n<!-- args:\n{\n ...Primary.args,\n imageSize: 'contain',\n }\n-->"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
title: "Custom Position",
|
|
162
|
-
framework: "angular",
|
|
163
|
-
code: "<!-- Storybook story: Custom Position -->\n<!-- args:\n{\n ...Primary.args,\n imagePosition: 'top',\n }\n-->"
|
|
164
|
-
}
|
|
165
|
-
],
|
|
143
|
+
examples: [],
|
|
166
144
|
guidelines: {
|
|
167
145
|
whenToUse: "",
|
|
168
146
|
dos: [],
|
|
@@ -178,7 +156,7 @@ var uni_index_default = {
|
|
|
178
156
|
summary: "",
|
|
179
157
|
description: "",
|
|
180
158
|
category: "feedback",
|
|
181
|
-
version: "
|
|
159
|
+
version: "5.0.0",
|
|
182
160
|
bindings: {
|
|
183
161
|
angular: {
|
|
184
162
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -210,38 +188,7 @@ var uni_index_default = {
|
|
|
210
188
|
]
|
|
211
189
|
}
|
|
212
190
|
},
|
|
213
|
-
examples: [
|
|
214
|
-
{
|
|
215
|
-
title: "Pass",
|
|
216
|
-
framework: "angular",
|
|
217
|
-
code: `<!-- Storybook story: Pass -->
|
|
218
|
-
<Badge color="\${color}" [width]="\${width}">
|
|
219
|
-
\${ngContent}
|
|
220
|
-
</Badge>
|
|
221
|
-
<!-- args:
|
|
222
|
-
{
|
|
223
|
-
color: 'secondary',
|
|
224
|
-
ngContent: 'Pass',
|
|
225
|
-
width: 76,
|
|
226
|
-
}
|
|
227
|
-
-->`
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
title: "Fail",
|
|
231
|
-
framework: "angular",
|
|
232
|
-
code: `<!-- Storybook story: Fail -->
|
|
233
|
-
<Badge color="\${color}" [width]="\${width}">
|
|
234
|
-
\${ngContent}
|
|
235
|
-
</Badge>
|
|
236
|
-
<!-- args:
|
|
237
|
-
{
|
|
238
|
-
color: 'warn',
|
|
239
|
-
ngContent: 'Fail',
|
|
240
|
-
width: 76,
|
|
241
|
-
}
|
|
242
|
-
-->`
|
|
243
|
-
}
|
|
244
|
-
],
|
|
191
|
+
examples: [],
|
|
245
192
|
guidelines: {
|
|
246
193
|
whenToUse: "",
|
|
247
194
|
dos: [],
|
|
@@ -259,7 +206,7 @@ var uni_index_default = {
|
|
|
259
206
|
summary: "",
|
|
260
207
|
description: "",
|
|
261
208
|
category: "directives",
|
|
262
|
-
version: "
|
|
209
|
+
version: "5.0.0",
|
|
263
210
|
bindings: {
|
|
264
211
|
angular: {
|
|
265
212
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -283,7 +230,7 @@ var uni_index_default = {
|
|
|
283
230
|
summary: "",
|
|
284
231
|
description: "",
|
|
285
232
|
category: "layout",
|
|
286
|
-
version: "
|
|
233
|
+
version: "5.0.0",
|
|
287
234
|
bindings: {
|
|
288
235
|
angular: {
|
|
289
236
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -624,13 +571,7 @@ var uni_index_default = {
|
|
|
624
571
|
]
|
|
625
572
|
}
|
|
626
573
|
},
|
|
627
|
-
examples: [
|
|
628
|
-
{
|
|
629
|
-
title: "Primary",
|
|
630
|
-
framework: "angular",
|
|
631
|
-
code: "<!-- Storybook story: Primary -->\n<div box-layout ${argsToTemplate(props)}>\n<Text>${ngContent}</Text>\n</div>\n<!-- args:\n{\n color: 'secondary-container',\n borderRadius: 'md',\n padding: 'lg',\n ngContent: 'Box Content.',\n }\n-->"
|
|
632
|
-
}
|
|
633
|
-
],
|
|
574
|
+
examples: [],
|
|
634
575
|
guidelines: {
|
|
635
576
|
whenToUse: "",
|
|
636
577
|
dos: [],
|
|
@@ -646,7 +587,7 @@ var uni_index_default = {
|
|
|
646
587
|
summary: "",
|
|
647
588
|
description: "",
|
|
648
589
|
category: "primitives",
|
|
649
|
-
version: "
|
|
590
|
+
version: "5.0.0",
|
|
650
591
|
bindings: {
|
|
651
592
|
angular: {
|
|
652
593
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -693,81 +634,7 @@ var uni_index_default = {
|
|
|
693
634
|
]
|
|
694
635
|
}
|
|
695
636
|
},
|
|
696
|
-
examples: [
|
|
697
|
-
{
|
|
698
|
-
title: "Primary",
|
|
699
|
-
framework: "angular",
|
|
700
|
-
code: `<!-- Storybook story: Primary -->
|
|
701
|
-
<button text-button [variant]="variant" [size]="size" \${argsToTemplate(props)}>
|
|
702
|
-
{{ngContent}}
|
|
703
|
-
</button>
|
|
704
|
-
<!-- args:
|
|
705
|
-
{
|
|
706
|
-
variant: 'primary',
|
|
707
|
-
size: 'lg',
|
|
708
|
-
ngContent: 'Button',
|
|
709
|
-
}
|
|
710
|
-
-->`
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
title: "Secondary",
|
|
714
|
-
framework: "angular",
|
|
715
|
-
code: `<!-- Storybook story: Secondary -->
|
|
716
|
-
<button text-button [variant]="variant" [size]="size" \${argsToTemplate(props)}>
|
|
717
|
-
{{ngContent}}
|
|
718
|
-
</button>
|
|
719
|
-
<!-- args:
|
|
720
|
-
{
|
|
721
|
-
size: 'lg',
|
|
722
|
-
variant: 'secondary',
|
|
723
|
-
ngContent: 'Secondary Button',
|
|
724
|
-
}
|
|
725
|
-
-->`
|
|
726
|
-
},
|
|
727
|
-
{
|
|
728
|
-
title: "Tertiary",
|
|
729
|
-
framework: "angular",
|
|
730
|
-
code: `<!-- Storybook story: Tertiary -->
|
|
731
|
-
<button text-button [variant]="variant" [size]="size" \${argsToTemplate(props)}>
|
|
732
|
-
{{ngContent}}
|
|
733
|
-
</button>
|
|
734
|
-
<!-- args:
|
|
735
|
-
{
|
|
736
|
-
size: 'lg',
|
|
737
|
-
variant: 'tertiary',
|
|
738
|
-
ngContent: 'Tertiary Button',
|
|
739
|
-
}
|
|
740
|
-
-->`
|
|
741
|
-
},
|
|
742
|
-
{
|
|
743
|
-
title: "Medium",
|
|
744
|
-
framework: "angular",
|
|
745
|
-
code: `<!-- Storybook story: Medium -->
|
|
746
|
-
<button text-button [variant]="variant" [size]="size" \${argsToTemplate(props)}>
|
|
747
|
-
{{ngContent}}
|
|
748
|
-
</button>
|
|
749
|
-
<!-- args:
|
|
750
|
-
{
|
|
751
|
-
size: 'md',
|
|
752
|
-
ngContent: 'Medium Button',
|
|
753
|
-
}
|
|
754
|
-
-->`
|
|
755
|
-
},
|
|
756
|
-
{
|
|
757
|
-
title: "Small",
|
|
758
|
-
framework: "angular",
|
|
759
|
-
code: `<!-- Storybook story: Small -->
|
|
760
|
-
<button text-button [variant]="variant" [size]="size" \${argsToTemplate(props)}>
|
|
761
|
-
{{ngContent}}
|
|
762
|
-
</button>
|
|
763
|
-
<!-- args:
|
|
764
|
-
{
|
|
765
|
-
size: 'sm',
|
|
766
|
-
ngContent: 'Small Button',
|
|
767
|
-
}
|
|
768
|
-
-->`
|
|
769
|
-
}
|
|
770
|
-
],
|
|
637
|
+
examples: [],
|
|
771
638
|
guidelines: {
|
|
772
639
|
whenToUse: "",
|
|
773
640
|
dos: [],
|
|
@@ -783,7 +650,7 @@ var uni_index_default = {
|
|
|
783
650
|
summary: "",
|
|
784
651
|
description: "",
|
|
785
652
|
category: "primitives",
|
|
786
|
-
version: "
|
|
653
|
+
version: "5.0.0",
|
|
787
654
|
bindings: {
|
|
788
655
|
angular: {
|
|
789
656
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -791,13 +658,7 @@ var uni_index_default = {
|
|
|
791
658
|
api: []
|
|
792
659
|
}
|
|
793
660
|
},
|
|
794
|
-
examples: [
|
|
795
|
-
{
|
|
796
|
-
title: "Primary",
|
|
797
|
-
framework: "angular",
|
|
798
|
-
code: '<!-- Storybook story: Primary -->\n<ButtonGroup ${argsToTemplate(props)}>\n <button icon-button symbolName="align_horizontal_left" size="sm"></button>\n <button icon-button symbolName="align_horizontal_center" size="sm"></button>\n <button icon-button symbolName="align_horizontal_right" size="sm"></button>\n</ButtonGroup>\n<!-- args:\n{}\n-->'
|
|
799
|
-
}
|
|
800
|
-
],
|
|
661
|
+
examples: [],
|
|
801
662
|
guidelines: {
|
|
802
663
|
whenToUse: "",
|
|
803
664
|
dos: [],
|
|
@@ -813,7 +674,7 @@ var uni_index_default = {
|
|
|
813
674
|
summary: "",
|
|
814
675
|
description: "",
|
|
815
676
|
category: "layout",
|
|
816
|
-
version: "
|
|
677
|
+
version: "5.0.0",
|
|
817
678
|
bindings: {
|
|
818
679
|
angular: {
|
|
819
680
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -821,26 +682,7 @@ var uni_index_default = {
|
|
|
821
682
|
api: []
|
|
822
683
|
}
|
|
823
684
|
},
|
|
824
|
-
examples: [
|
|
825
|
-
{
|
|
826
|
-
title: "Primary",
|
|
827
|
-
framework: "angular",
|
|
828
|
-
code: `<!-- Storybook story: Primary -->
|
|
829
|
-
<Card variant="\${variant}">
|
|
830
|
-
<CardHeader title="Card Header"></CardHeader>
|
|
831
|
-
<CardContent>
|
|
832
|
-
<Text>\${ngContent}</Text>
|
|
833
|
-
</CardContent>
|
|
834
|
-
</Card>
|
|
835
|
-
<!-- args:
|
|
836
|
-
{
|
|
837
|
-
variant: 'primary',
|
|
838
|
-
size: 'lg',
|
|
839
|
-
ngContent: 'Card content.',
|
|
840
|
-
}
|
|
841
|
-
-->`
|
|
842
|
-
}
|
|
843
|
-
],
|
|
685
|
+
examples: [],
|
|
844
686
|
guidelines: {
|
|
845
687
|
whenToUse: "",
|
|
846
688
|
dos: [],
|
|
@@ -856,7 +698,7 @@ var uni_index_default = {
|
|
|
856
698
|
summary: "",
|
|
857
699
|
description: "",
|
|
858
700
|
category: "layout",
|
|
859
|
-
version: "
|
|
701
|
+
version: "5.0.0",
|
|
860
702
|
bindings: {
|
|
861
703
|
angular: {
|
|
862
704
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -880,7 +722,7 @@ var uni_index_default = {
|
|
|
880
722
|
summary: "",
|
|
881
723
|
description: "",
|
|
882
724
|
category: "layout",
|
|
883
|
-
version: "
|
|
725
|
+
version: "5.0.0",
|
|
884
726
|
bindings: {
|
|
885
727
|
angular: {
|
|
886
728
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -921,7 +763,7 @@ var uni_index_default = {
|
|
|
921
763
|
summary: "",
|
|
922
764
|
description: "",
|
|
923
765
|
category: "layout",
|
|
924
|
-
version: "
|
|
766
|
+
version: "5.0.0",
|
|
925
767
|
bindings: {
|
|
926
768
|
angular: {
|
|
927
769
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -954,13 +796,7 @@ var uni_index_default = {
|
|
|
954
796
|
]
|
|
955
797
|
}
|
|
956
798
|
},
|
|
957
|
-
examples: [
|
|
958
|
-
{
|
|
959
|
-
title: "Primary",
|
|
960
|
-
framework: "angular",
|
|
961
|
-
code: "<!-- Storybook story: Primary -->\n<div center-layout ${argsToTemplate(props)}>\n <Text typeface=\"headline-large\">${ngContent}</Text>\n</div>\n<!-- args:\n{\n ngContent: 'Centered Content',\n height: 180,\n width: '100%',\n }\n-->"
|
|
962
|
-
}
|
|
963
|
-
],
|
|
799
|
+
examples: [],
|
|
964
800
|
guidelines: {
|
|
965
801
|
whenToUse: "",
|
|
966
802
|
dos: [],
|
|
@@ -976,7 +812,7 @@ var uni_index_default = {
|
|
|
976
812
|
summary: "",
|
|
977
813
|
description: "",
|
|
978
814
|
category: "forms",
|
|
979
|
-
version: "
|
|
815
|
+
version: "5.0.0",
|
|
980
816
|
bindings: {
|
|
981
817
|
angular: {
|
|
982
818
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1055,38 +891,7 @@ var uni_index_default = {
|
|
|
1055
891
|
]
|
|
1056
892
|
}
|
|
1057
893
|
},
|
|
1058
|
-
examples: [
|
|
1059
|
-
{
|
|
1060
|
-
title: "Default",
|
|
1061
|
-
framework: "angular",
|
|
1062
|
-
code: "<!-- Storybook story: Default -->\n<uni-checkbox ${argsToTemplate(args)}></uni-checkbox>\n<!-- args:\n{\n label: 'Accept terms and conditions',\n variant: 'primary',\n disabled: false,\n checked: true,\n }\n-->"
|
|
1063
|
-
},
|
|
1064
|
-
{
|
|
1065
|
-
title: "Without Label",
|
|
1066
|
-
framework: "angular",
|
|
1067
|
-
code: "<!-- Storybook story: Without Label -->\n<uni-checkbox ${argsToTemplate(args)}></uni-checkbox>\n<!-- args:\n{\n label: '',\n variant: 'primary',\n disabled: false,\n }\n-->"
|
|
1068
|
-
},
|
|
1069
|
-
{
|
|
1070
|
-
title: "Disabled",
|
|
1071
|
-
framework: "angular",
|
|
1072
|
-
code: "<!-- Storybook story: Disabled -->\n<uni-checkbox ${argsToTemplate(args)}></uni-checkbox>\n<!-- args:\n{\n label: 'Disabled checkbox',\n variant: 'primary',\n disabled: true,\n }\n-->"
|
|
1073
|
-
},
|
|
1074
|
-
{
|
|
1075
|
-
title: "Variants",
|
|
1076
|
-
framework: "angular",
|
|
1077
|
-
code: "<!-- Storybook story: Variants -->\n<uni-checkbox ${argsToTemplate(args)}></uni-checkbox>"
|
|
1078
|
-
},
|
|
1079
|
-
{
|
|
1080
|
-
title: "With Change Event",
|
|
1081
|
-
framework: "angular",
|
|
1082
|
-
code: "<!-- Storybook story: With Change Event -->\n<uni-checkbox ${argsToTemplate(args)}></uni-checkbox>"
|
|
1083
|
-
},
|
|
1084
|
-
{
|
|
1085
|
-
title: "Form Signals",
|
|
1086
|
-
framework: "angular",
|
|
1087
|
-
code: "<!-- Storybook story: Form Signals -->\n<uni-checkbox ${argsToTemplate(args)}></uni-checkbox>"
|
|
1088
|
-
}
|
|
1089
|
-
],
|
|
894
|
+
examples: [],
|
|
1090
895
|
guidelines: {
|
|
1091
896
|
whenToUse: "",
|
|
1092
897
|
dos: [],
|
|
@@ -1104,7 +909,7 @@ var uni_index_default = {
|
|
|
1104
909
|
summary: "",
|
|
1105
910
|
description: "",
|
|
1106
911
|
category: "feedback",
|
|
1107
|
-
version: "
|
|
912
|
+
version: "5.0.0",
|
|
1108
913
|
bindings: {
|
|
1109
914
|
angular: {
|
|
1110
915
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1151,7 +956,7 @@ var uni_index_default = {
|
|
|
1151
956
|
summary: "",
|
|
1152
957
|
description: "",
|
|
1153
958
|
category: "forms",
|
|
1154
|
-
version: "
|
|
959
|
+
version: "5.0.0",
|
|
1155
960
|
bindings: {
|
|
1156
961
|
angular: {
|
|
1157
962
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1182,43 +987,7 @@ var uni_index_default = {
|
|
|
1182
987
|
]
|
|
1183
988
|
}
|
|
1184
989
|
},
|
|
1185
|
-
examples: [
|
|
1186
|
-
{
|
|
1187
|
-
title: "Primary",
|
|
1188
|
-
framework: "angular",
|
|
1189
|
-
code: `<!-- Storybook story: Primary -->
|
|
1190
|
-
<uni-data-search \${argsToTemplate(props)} />
|
|
1191
|
-
<div style="margin-top: 16px;">
|
|
1192
|
-
@for (record of datasource.records(); track record.id) {
|
|
1193
|
-
<div>{{ record.name }} \u2014 {{ record.homeworld }}</div>
|
|
1194
|
-
}
|
|
1195
|
-
</div>
|
|
1196
|
-
<!-- args:
|
|
1197
|
-
{
|
|
1198
|
-
datasource: new UniRecordDatasource<any>(starWarsCharacters.slice(0, 10)),
|
|
1199
|
-
placeholder: 'Search characters',
|
|
1200
|
-
}
|
|
1201
|
-
-->`
|
|
1202
|
-
},
|
|
1203
|
-
{
|
|
1204
|
-
title: "Field Scoped",
|
|
1205
|
-
framework: "angular",
|
|
1206
|
-
code: `<!-- Storybook story: Field Scoped -->
|
|
1207
|
-
<uni-data-search \${argsToTemplate(props)} />
|
|
1208
|
-
<div style="margin-top: 16px;">
|
|
1209
|
-
@for (record of datasource.records(); track record.id) {
|
|
1210
|
-
<div>{{ record.name }} \u2014 {{ record.homeworld }}</div>
|
|
1211
|
-
}
|
|
1212
|
-
</div>
|
|
1213
|
-
<!-- args:
|
|
1214
|
-
{
|
|
1215
|
-
datasource: new UniRecordDatasource<any>(starWarsCharacters.slice(0, 10)),
|
|
1216
|
-
placeholder: 'Search by name only',
|
|
1217
|
-
fields: ['name'],
|
|
1218
|
-
}
|
|
1219
|
-
-->`
|
|
1220
|
-
}
|
|
1221
|
-
],
|
|
990
|
+
examples: [],
|
|
1222
991
|
guidelines: {
|
|
1223
992
|
whenToUse: "",
|
|
1224
993
|
dos: [],
|
|
@@ -1234,7 +1003,7 @@ var uni_index_default = {
|
|
|
1234
1003
|
summary: "",
|
|
1235
1004
|
description: "",
|
|
1236
1005
|
category: "data",
|
|
1237
|
-
version: "
|
|
1006
|
+
version: "5.0.0",
|
|
1238
1007
|
bindings: {
|
|
1239
1008
|
angular: {
|
|
1240
1009
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1294,28 +1063,7 @@ var uni_index_default = {
|
|
|
1294
1063
|
]
|
|
1295
1064
|
}
|
|
1296
1065
|
},
|
|
1297
|
-
examples: [
|
|
1298
|
-
{
|
|
1299
|
-
title: "Primary",
|
|
1300
|
-
framework: "angular",
|
|
1301
|
-
code: "<!-- Storybook story: Primary -->\n<!-- args:\n{\n columns: [\n {\n columnDef: 'id',\n header: 'ID',\n isSticky: true,\n },\n {\n columnDef: 'name',\n header: 'Name',\n textAlign: 'left',\n },\n {\n columnDef: 'species',\n header: 'Species',\n },\n {\n columnDef: 'height',\n header: 'Height',\n cell: (element: any) => (element.height ? `${element.height} m` : ''),\n },\n {\n columnDef: 'homeworld',\n header: 'Home World',\n },\n ],\n datasource: new UniRecordDatasource<any>(starWarsCharacters),\n }\n-->"
|
|
1302
|
-
},
|
|
1303
|
-
{
|
|
1304
|
-
title: "With Header",
|
|
1305
|
-
framework: "angular",
|
|
1306
|
-
code: "<!-- Storybook story: With Header -->\n<!-- args:\n{\n height: '300px',\n columns: [\n {\n columnDef: 'id',\n header: 'ID',\n },\n {\n columnDef: 'name',\n header: 'Name',\n textAlign: 'left',\n },\n {\n columnDef: 'homeworld',\n header: 'Home World',\n },\n ],\n datasource: new UniRecordDatasource<any>(starWarsCharacters),\n }\n-->"
|
|
1307
|
-
},
|
|
1308
|
-
{
|
|
1309
|
-
title: "With Search",
|
|
1310
|
-
framework: "angular",
|
|
1311
|
-
code: "<!-- Storybook story: With Search -->\n<!-- args:\n{\n height: '300px',\n columns: [\n {\n columnDef: 'id',\n header: 'ID',\n },\n {\n columnDef: 'name',\n header: 'Name',\n textAlign: 'left',\n },\n {\n columnDef: 'homeworld',\n header: 'Home World',\n },\n ],\n datasource: new UniRecordDatasource<any>(starWarsCharacters),\n }\n-->"
|
|
1312
|
-
},
|
|
1313
|
-
{
|
|
1314
|
-
title: "With Detail Row",
|
|
1315
|
-
framework: "angular",
|
|
1316
|
-
code: "<!-- Storybook story: With Detail Row -->\n<!-- args:\n{\n height: '300px',\n columns: [\n {\n columnDef: 'id',\n header: 'ID',\n },\n {\n columnDef: 'name',\n header: 'Name',\n textAlign: 'left',\n },\n {\n columnDef: 'homeworld',\n header: 'Home World',\n },\n ],\n datasource: new UniRecordDatasource<any>(starWarsCharacters),\n }\n-->"
|
|
1317
|
-
}
|
|
1318
|
-
],
|
|
1066
|
+
examples: [],
|
|
1319
1067
|
guidelines: {
|
|
1320
1068
|
whenToUse: "",
|
|
1321
1069
|
dos: [],
|
|
@@ -1331,7 +1079,7 @@ var uni_index_default = {
|
|
|
1331
1079
|
summary: "",
|
|
1332
1080
|
description: "",
|
|
1333
1081
|
category: "forms",
|
|
1334
|
-
version: "
|
|
1082
|
+
version: "5.0.0",
|
|
1335
1083
|
bindings: {
|
|
1336
1084
|
angular: {
|
|
1337
1085
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1369,24 +1117,7 @@ var uni_index_default = {
|
|
|
1369
1117
|
]
|
|
1370
1118
|
}
|
|
1371
1119
|
},
|
|
1372
|
-
examples: [
|
|
1373
|
-
{
|
|
1374
|
-
title: "Primary",
|
|
1375
|
-
framework: "angular",
|
|
1376
|
-
code: `<!-- Storybook story: Primary -->
|
|
1377
|
-
<DebounceInput \${argsToTemplate(props)} (change)="lastEmitted = $event" #debounce />
|
|
1378
|
-
<div style="margin-top: 16px;">
|
|
1379
|
-
<div>Live value: {{ debounce.value() }}</div>
|
|
1380
|
-
<div>Debounced value: {{ lastEmitted }}</div>
|
|
1381
|
-
</div>
|
|
1382
|
-
<!-- args:
|
|
1383
|
-
{
|
|
1384
|
-
inputName: 'search',
|
|
1385
|
-
debounceTime: 400,
|
|
1386
|
-
}
|
|
1387
|
-
-->`
|
|
1388
|
-
}
|
|
1389
|
-
],
|
|
1120
|
+
examples: [],
|
|
1390
1121
|
guidelines: {
|
|
1391
1122
|
whenToUse: "",
|
|
1392
1123
|
dos: [],
|
|
@@ -1402,7 +1133,7 @@ var uni_index_default = {
|
|
|
1402
1133
|
summary: "",
|
|
1403
1134
|
description: "",
|
|
1404
1135
|
category: "feedback",
|
|
1405
|
-
version: "
|
|
1136
|
+
version: "5.0.0",
|
|
1406
1137
|
bindings: {
|
|
1407
1138
|
angular: {
|
|
1408
1139
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1447,13 +1178,7 @@ var uni_index_default = {
|
|
|
1447
1178
|
]
|
|
1448
1179
|
}
|
|
1449
1180
|
},
|
|
1450
|
-
examples: [
|
|
1451
|
-
{
|
|
1452
|
-
title: "Primary",
|
|
1453
|
-
framework: "angular",
|
|
1454
|
-
code: '<!-- Storybook story: Primary -->\n<Button (click)="dialog.open()">Open Dialog</Button>\n<Dialog #dialog>\n <DialogHeader color="primary">Sample Dialog</DialogHeader>\n <div center-layout [width]="300" [height]="200">\n <Text>Dialog</Text>\n </div>\n <DialogButtons></DialogButtons>\n</Dialog>\n<!-- args:\n{}\n-->'
|
|
1455
|
-
}
|
|
1456
|
-
],
|
|
1181
|
+
examples: [],
|
|
1457
1182
|
guidelines: {
|
|
1458
1183
|
whenToUse: "",
|
|
1459
1184
|
dos: [],
|
|
@@ -1476,7 +1201,7 @@ var uni_index_default = {
|
|
|
1476
1201
|
summary: "",
|
|
1477
1202
|
description: "",
|
|
1478
1203
|
category: "feedback",
|
|
1479
|
-
version: "
|
|
1204
|
+
version: "5.0.0",
|
|
1480
1205
|
bindings: {
|
|
1481
1206
|
angular: {
|
|
1482
1207
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1561,7 +1286,7 @@ var uni_index_default = {
|
|
|
1561
1286
|
summary: "",
|
|
1562
1287
|
description: "",
|
|
1563
1288
|
category: "feedback",
|
|
1564
|
-
version: "
|
|
1289
|
+
version: "5.0.0",
|
|
1565
1290
|
bindings: {
|
|
1566
1291
|
angular: {
|
|
1567
1292
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1585,7 +1310,7 @@ var uni_index_default = {
|
|
|
1585
1310
|
summary: "",
|
|
1586
1311
|
description: "",
|
|
1587
1312
|
category: "layout",
|
|
1588
|
-
version: "
|
|
1313
|
+
version: "5.0.0",
|
|
1589
1314
|
bindings: {
|
|
1590
1315
|
angular: {
|
|
1591
1316
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1610,22 +1335,7 @@ var uni_index_default = {
|
|
|
1610
1335
|
]
|
|
1611
1336
|
}
|
|
1612
1337
|
},
|
|
1613
|
-
examples: [
|
|
1614
|
-
{
|
|
1615
|
-
title: "Primary",
|
|
1616
|
-
framework: "angular",
|
|
1617
|
-
code: `<!-- Storybook story: Primary -->
|
|
1618
|
-
<Center height="200px">
|
|
1619
|
-
<Divider border="\${border}" orientation="\${orientation}" />
|
|
1620
|
-
</Center>
|
|
1621
|
-
<!-- args:
|
|
1622
|
-
{
|
|
1623
|
-
orientation: 'horizontal',
|
|
1624
|
-
border: 'primary',
|
|
1625
|
-
}
|
|
1626
|
-
-->`
|
|
1627
|
-
}
|
|
1628
|
-
],
|
|
1338
|
+
examples: [],
|
|
1629
1339
|
guidelines: {
|
|
1630
1340
|
whenToUse: "",
|
|
1631
1341
|
dos: [],
|
|
@@ -1641,7 +1351,7 @@ var uni_index_default = {
|
|
|
1641
1351
|
summary: "",
|
|
1642
1352
|
description: "",
|
|
1643
1353
|
category: "directives",
|
|
1644
|
-
version: "
|
|
1354
|
+
version: "5.0.0",
|
|
1645
1355
|
bindings: {
|
|
1646
1356
|
angular: {
|
|
1647
1357
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1673,7 +1383,7 @@ var uni_index_default = {
|
|
|
1673
1383
|
summary: "",
|
|
1674
1384
|
description: "",
|
|
1675
1385
|
category: "components",
|
|
1676
|
-
version: "
|
|
1386
|
+
version: "5.0.0",
|
|
1677
1387
|
bindings: {
|
|
1678
1388
|
angular: {
|
|
1679
1389
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1762,7 +1472,7 @@ var uni_index_default = {
|
|
|
1762
1472
|
summary: "",
|
|
1763
1473
|
description: "",
|
|
1764
1474
|
category: "layout",
|
|
1765
|
-
version: "
|
|
1475
|
+
version: "5.0.0",
|
|
1766
1476
|
bindings: {
|
|
1767
1477
|
angular: {
|
|
1768
1478
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1779,27 +1489,7 @@ var uni_index_default = {
|
|
|
1779
1489
|
]
|
|
1780
1490
|
}
|
|
1781
1491
|
},
|
|
1782
|
-
examples: [
|
|
1783
|
-
{
|
|
1784
|
-
title: "Primary",
|
|
1785
|
-
framework: "angular",
|
|
1786
|
-
code: `<!-- Storybook story: Primary -->
|
|
1787
|
-
<Card>
|
|
1788
|
-
<CardHeader title="Expandable Card"><ExpandToggle #toggle /></CardHeader>
|
|
1789
|
-
<Expand [collapsed]="toggle.collapsed()">
|
|
1790
|
-
<CardContent>
|
|
1791
|
-
<Text>\${ngContent}</Text>
|
|
1792
|
-
</CardContent>
|
|
1793
|
-
</Expand>
|
|
1794
|
-
</Card>
|
|
1795
|
-
<!-- args:
|
|
1796
|
-
{
|
|
1797
|
-
collapsed: false,
|
|
1798
|
-
ngContent: 'Expandable Content',
|
|
1799
|
-
}
|
|
1800
|
-
-->`
|
|
1801
|
-
}
|
|
1802
|
-
],
|
|
1492
|
+
examples: [],
|
|
1803
1493
|
guidelines: {
|
|
1804
1494
|
whenToUse: "",
|
|
1805
1495
|
dos: [],
|
|
@@ -1815,7 +1505,7 @@ var uni_index_default = {
|
|
|
1815
1505
|
summary: "",
|
|
1816
1506
|
description: "",
|
|
1817
1507
|
category: "layout",
|
|
1818
|
-
version: "
|
|
1508
|
+
version: "5.0.0",
|
|
1819
1509
|
bindings: {
|
|
1820
1510
|
angular: {
|
|
1821
1511
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1854,23 +1544,7 @@ var uni_index_default = {
|
|
|
1854
1544
|
]
|
|
1855
1545
|
}
|
|
1856
1546
|
},
|
|
1857
|
-
examples: [
|
|
1858
|
-
{
|
|
1859
|
-
title: "Primary",
|
|
1860
|
-
framework: "angular",
|
|
1861
|
-
code: `<!-- Storybook story: Primary -->
|
|
1862
|
-
<ExpandArea title="\${title}" padding="\${padding}" initCollapsed="\${initCollapsed}" #expandArea>
|
|
1863
|
-
<button text-button (click)="expandArea.toggleExpand()" size="md" variant="ghost" symbolLeft="collapse_all">Collapse area</button>
|
|
1864
|
-
</ExpandArea>
|
|
1865
|
-
<!-- args:
|
|
1866
|
-
{
|
|
1867
|
-
title: 'Expand Area Title',
|
|
1868
|
-
padding: 'sm',
|
|
1869
|
-
initCollapsed: true,
|
|
1870
|
-
}
|
|
1871
|
-
-->`
|
|
1872
|
-
}
|
|
1873
|
-
],
|
|
1547
|
+
examples: [],
|
|
1874
1548
|
guidelines: {
|
|
1875
1549
|
whenToUse: "",
|
|
1876
1550
|
dos: [],
|
|
@@ -1886,7 +1560,7 @@ var uni_index_default = {
|
|
|
1886
1560
|
summary: "",
|
|
1887
1561
|
description: "",
|
|
1888
1562
|
category: "forms",
|
|
1889
|
-
version: "
|
|
1563
|
+
version: "5.0.0",
|
|
1890
1564
|
bindings: {
|
|
1891
1565
|
angular: {
|
|
1892
1566
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -1910,13 +1584,7 @@ var uni_index_default = {
|
|
|
1910
1584
|
]
|
|
1911
1585
|
}
|
|
1912
1586
|
},
|
|
1913
|
-
examples: [
|
|
1914
|
-
{
|
|
1915
|
-
title: "Primary",
|
|
1916
|
-
framework: "angular",
|
|
1917
|
-
code: '<!-- Storybook story: Primary -->\n<ExpandToggle [collapsed]="collapsed" #toggle />\n<div>Collapsed: {{ toggle.collapsed() }}</div>\n<!-- args:\n{\n collapsed: true,\n }\n-->'
|
|
1918
|
-
}
|
|
1919
|
-
],
|
|
1587
|
+
examples: [],
|
|
1920
1588
|
guidelines: {
|
|
1921
1589
|
whenToUse: "",
|
|
1922
1590
|
dos: [],
|
|
@@ -1932,7 +1600,7 @@ var uni_index_default = {
|
|
|
1932
1600
|
summary: "",
|
|
1933
1601
|
description: "",
|
|
1934
1602
|
category: "forms",
|
|
1935
|
-
version: "
|
|
1603
|
+
version: "5.0.0",
|
|
1936
1604
|
bindings: {
|
|
1937
1605
|
angular: {
|
|
1938
1606
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2033,46 +1701,7 @@ var uni_index_default = {
|
|
|
2033
1701
|
]
|
|
2034
1702
|
}
|
|
2035
1703
|
},
|
|
2036
|
-
examples: [
|
|
2037
|
-
{
|
|
2038
|
-
title: "Primary",
|
|
2039
|
-
framework: "angular",
|
|
2040
|
-
code: `<!-- Storybook story: Primary -->
|
|
2041
|
-
<uni-file-drop-zone \${argsToTemplate(props)} [helpTemplate]="myTemplate" />
|
|
2042
|
-
<ng-template #myTemplate>
|
|
2043
|
-
<div stack-layout alignItems="center">
|
|
2044
|
-
<Text typeface="title-medium">Title Text</Text>
|
|
2045
|
-
<Text typeface="subtitle-1">Subtitle Text</Text>
|
|
2046
|
-
</div>
|
|
2047
|
-
</ng-template>
|
|
2048
|
-
<!-- args:
|
|
2049
|
-
{
|
|
2050
|
-
label: 'Image',
|
|
2051
|
-
browseButtonText: 'Browse for image',
|
|
2052
|
-
allowedFileExtensions: ['png', 'jpg'],
|
|
2053
|
-
}
|
|
2054
|
-
-->`
|
|
2055
|
-
},
|
|
2056
|
-
{
|
|
2057
|
-
title: "With Help Template",
|
|
2058
|
-
framework: "angular",
|
|
2059
|
-
code: `<!-- Storybook story: With Help Template -->
|
|
2060
|
-
<uni-file-drop-zone \${argsToTemplate(props)} [helpTemplate]="myTemplate" />
|
|
2061
|
-
<ng-template #myTemplate>
|
|
2062
|
-
<div stack-layout alignItems="center">
|
|
2063
|
-
<Text typeface="title-medium">Title Text</Text>
|
|
2064
|
-
<Text typeface="subtitle-1">Subtitle Text</Text>
|
|
2065
|
-
</div>
|
|
2066
|
-
</ng-template>
|
|
2067
|
-
<!-- args:
|
|
2068
|
-
{
|
|
2069
|
-
label: 'Image',
|
|
2070
|
-
browseButtonText: 'Browse for image',
|
|
2071
|
-
allowedFileExtensions: ['png', 'jpg'],
|
|
2072
|
-
}
|
|
2073
|
-
-->`
|
|
2074
|
-
}
|
|
2075
|
-
],
|
|
1704
|
+
examples: [],
|
|
2076
1705
|
guidelines: {
|
|
2077
1706
|
whenToUse: "",
|
|
2078
1707
|
dos: [],
|
|
@@ -2088,7 +1717,7 @@ var uni_index_default = {
|
|
|
2088
1717
|
summary: "",
|
|
2089
1718
|
description: "",
|
|
2090
1719
|
category: "layout",
|
|
2091
|
-
version: "
|
|
1720
|
+
version: "5.0.0",
|
|
2092
1721
|
bindings: {
|
|
2093
1722
|
angular: {
|
|
2094
1723
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2140,36 +1769,7 @@ var uni_index_default = {
|
|
|
2140
1769
|
]
|
|
2141
1770
|
}
|
|
2142
1771
|
},
|
|
2143
|
-
examples: [
|
|
2144
|
-
{
|
|
2145
|
-
title: "Simple Grid",
|
|
2146
|
-
framework: "angular",
|
|
2147
|
-
code: `<!-- Storybook story: Simple Grid -->
|
|
2148
|
-
<div grid-layout \${argsToTemplate(props)}>
|
|
2149
|
-
<div box-layout gridArea="nav" color="quaternary" padding="md" borderRadius="sm">
|
|
2150
|
-
<Text>nav</Text>
|
|
2151
|
-
</div>
|
|
2152
|
-
<div box-layout gridArea="a1" color="primary" padding="md" borderRadius="sm">
|
|
2153
|
-
<Text>a1</Text>
|
|
2154
|
-
</div>
|
|
2155
|
-
<div box-layout gridArea="a2" color="secondary" padding="md" borderRadius="sm">
|
|
2156
|
-
<Text>a2</Text>
|
|
2157
|
-
</div>
|
|
2158
|
-
<div box-layout gridArea="b1" color="tertiary" padding="md" borderRadius="sm">
|
|
2159
|
-
<Text>b1</Text>
|
|
2160
|
-
</div>
|
|
2161
|
-
<div box-layout gridArea="b2" color="warn" padding="md" borderRadius="sm">
|
|
2162
|
-
<Text>b2</Text>
|
|
2163
|
-
</div>
|
|
2164
|
-
</div>
|
|
2165
|
-
<!-- args:
|
|
2166
|
-
{
|
|
2167
|
-
templateAreas: \`'nav a1 a2' 'nav b1 b2'\`,
|
|
2168
|
-
gap: 'sm',
|
|
2169
|
-
}
|
|
2170
|
-
-->`
|
|
2171
|
-
}
|
|
2172
|
-
],
|
|
1772
|
+
examples: [],
|
|
2173
1773
|
guidelines: {
|
|
2174
1774
|
whenToUse: "",
|
|
2175
1775
|
dos: [],
|
|
@@ -2185,7 +1785,7 @@ var uni_index_default = {
|
|
|
2185
1785
|
summary: "",
|
|
2186
1786
|
description: "",
|
|
2187
1787
|
category: "layout",
|
|
2188
|
-
version: "
|
|
1788
|
+
version: "5.0.0",
|
|
2189
1789
|
bindings: {
|
|
2190
1790
|
angular: {
|
|
2191
1791
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2217,7 +1817,7 @@ var uni_index_default = {
|
|
|
2217
1817
|
summary: "",
|
|
2218
1818
|
description: "",
|
|
2219
1819
|
category: "primitives",
|
|
2220
|
-
version: "
|
|
1820
|
+
version: "5.0.0",
|
|
2221
1821
|
bindings: {
|
|
2222
1822
|
angular: {
|
|
2223
1823
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2240,21 +1840,7 @@ var uni_index_default = {
|
|
|
2240
1840
|
]
|
|
2241
1841
|
}
|
|
2242
1842
|
},
|
|
2243
|
-
examples: [
|
|
2244
|
-
{
|
|
2245
|
-
title: "Primary",
|
|
2246
|
-
framework: "angular",
|
|
2247
|
-
code: `<!-- Storybook story: Primary -->
|
|
2248
|
-
<div style="height: \${size + 'px'}">
|
|
2249
|
-
<Icon name="\${name}" color="\${color}" />
|
|
2250
|
-
</div>
|
|
2251
|
-
<!-- args:
|
|
2252
|
-
{
|
|
2253
|
-
name: 'checkCircle',
|
|
2254
|
-
}
|
|
2255
|
-
-->`
|
|
2256
|
-
}
|
|
2257
|
-
],
|
|
1843
|
+
examples: [],
|
|
2258
1844
|
guidelines: {
|
|
2259
1845
|
whenToUse: "",
|
|
2260
1846
|
dos: [],
|
|
@@ -2270,7 +1856,7 @@ var uni_index_default = {
|
|
|
2270
1856
|
summary: "",
|
|
2271
1857
|
description: "",
|
|
2272
1858
|
category: "primitives",
|
|
2273
|
-
version: "
|
|
1859
|
+
version: "5.0.0",
|
|
2274
1860
|
bindings: {
|
|
2275
1861
|
angular: {
|
|
2276
1862
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2338,23 +1924,7 @@ var uni_index_default = {
|
|
|
2338
1924
|
]
|
|
2339
1925
|
}
|
|
2340
1926
|
},
|
|
2341
|
-
examples: [
|
|
2342
|
-
{
|
|
2343
|
-
title: "Primary",
|
|
2344
|
-
framework: "angular",
|
|
2345
|
-
code: `<!-- Storybook story: Primary -->
|
|
2346
|
-
<button icon-button iconName="\${iconName}" variant="\${variant}" size="\${size}" \${argsToTemplate(
|
|
2347
|
-
props
|
|
2348
|
-
)}></button>
|
|
2349
|
-
<!-- args:
|
|
2350
|
-
{
|
|
2351
|
-
iconName: 'search',
|
|
2352
|
-
size: 'lg',
|
|
2353
|
-
variant: 'ghost',
|
|
2354
|
-
}
|
|
2355
|
-
-->`
|
|
2356
|
-
}
|
|
2357
|
-
],
|
|
1927
|
+
examples: [],
|
|
2358
1928
|
guidelines: {
|
|
2359
1929
|
whenToUse: "",
|
|
2360
1930
|
dos: [],
|
|
@@ -2370,7 +1940,7 @@ var uni_index_default = {
|
|
|
2370
1940
|
summary: "",
|
|
2371
1941
|
description: "",
|
|
2372
1942
|
category: "forms",
|
|
2373
|
-
version: "
|
|
1943
|
+
version: "5.0.0",
|
|
2374
1944
|
bindings: {
|
|
2375
1945
|
angular: {
|
|
2376
1946
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2449,38 +2019,7 @@ var uni_index_default = {
|
|
|
2449
2019
|
]
|
|
2450
2020
|
}
|
|
2451
2021
|
},
|
|
2452
|
-
examples: [
|
|
2453
|
-
{
|
|
2454
|
-
title: "Primary",
|
|
2455
|
-
framework: "angular",
|
|
2456
|
-
code: "<!-- Storybook story: Primary -->\n<uni-input ${argsToTemplate(props)}>\n</uni-input>\n<!-- args:\n{\n label: 'Email Address',\n placeholder: 'Enter your email',\n value: '',\n disabled: false,\n touched: false,\n invalid: false,\n dirty: false,\n }\n-->"
|
|
2457
|
-
},
|
|
2458
|
-
{
|
|
2459
|
-
title: "With Value",
|
|
2460
|
-
framework: "angular",
|
|
2461
|
-
code: "<!-- Storybook story: With Value -->\n<uni-input ${argsToTemplate(props)}>\n</uni-input>\n<!-- args:\n{\n label: 'Username',\n placeholder: 'Enter username',\n value: 'john.doe',\n disabled: false,\n touched: true,\n invalid: false,\n dirty: true,\n }\n-->"
|
|
2462
|
-
},
|
|
2463
|
-
{
|
|
2464
|
-
title: "Disabled",
|
|
2465
|
-
framework: "angular",
|
|
2466
|
-
code: "<!-- Storybook story: Disabled -->\n<uni-input ${argsToTemplate(props)}>\n</uni-input>\n<!-- args:\n{\n label: 'Disabled Input',\n placeholder: 'This input is disabled',\n value: 'Cannot edit this',\n disabled: true,\n touched: false,\n invalid: false,\n dirty: false,\n }\n-->"
|
|
2467
|
-
},
|
|
2468
|
-
{
|
|
2469
|
-
title: "Invalid",
|
|
2470
|
-
framework: "angular",
|
|
2471
|
-
code: "<!-- Storybook story: Invalid -->\n<uni-input ${argsToTemplate(props)}>\n</uni-input>\n<!-- args:\n{\n label: 'Email Address',\n placeholder: 'Enter your email',\n value: 'invalid-email',\n disabled: false,\n touched: true,\n invalid: true,\n dirty: true,\n }\n-->"
|
|
2472
|
-
},
|
|
2473
|
-
{
|
|
2474
|
-
title: "Required",
|
|
2475
|
-
framework: "angular",
|
|
2476
|
-
code: "<!-- Storybook story: Required -->\n<uni-input ${argsToTemplate(props)}>\n</uni-input>\n<!-- args:\n{\n label: 'Full Name',\n placeholder: 'This field is required',\n value: '',\n disabled: false,\n touched: true,\n invalid: true,\n dirty: false,\n }\n-->"
|
|
2477
|
-
},
|
|
2478
|
-
{
|
|
2479
|
-
title: "Long Label",
|
|
2480
|
-
framework: "angular",
|
|
2481
|
-
code: "<!-- Storybook story: Long Label -->\n<uni-input ${argsToTemplate(props)}>\n</uni-input>\n<!-- args:\n{\n label: 'A Very Long Label That Demonstrates How The Component Handles Extended Text',\n placeholder: 'Enter some text',\n value: '',\n disabled: false,\n touched: false,\n invalid: false,\n dirty: false,\n }\n-->"
|
|
2482
|
-
}
|
|
2483
|
-
],
|
|
2022
|
+
examples: [],
|
|
2484
2023
|
guidelines: {
|
|
2485
2024
|
whenToUse: "",
|
|
2486
2025
|
dos: [],
|
|
@@ -2510,7 +2049,7 @@ var uni_index_default = {
|
|
|
2510
2049
|
summary: "",
|
|
2511
2050
|
description: "",
|
|
2512
2051
|
category: "forms",
|
|
2513
|
-
version: "
|
|
2052
|
+
version: "5.0.0",
|
|
2514
2053
|
bindings: {
|
|
2515
2054
|
angular: {
|
|
2516
2055
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2543,23 +2082,7 @@ var uni_index_default = {
|
|
|
2543
2082
|
]
|
|
2544
2083
|
}
|
|
2545
2084
|
},
|
|
2546
|
-
examples: [
|
|
2547
|
-
{
|
|
2548
|
-
title: "Primary",
|
|
2549
|
-
framework: "angular",
|
|
2550
|
-
code: '<!-- Storybook story: Primary -->\n<uni-input-box ${argsToTemplate(props)}>\n <input type="text" placeholder="Type here..." />\n</uni-input-box>\n<!-- args:\n{\n disabled: false,\n error: false,\n }\n-->'
|
|
2551
|
-
},
|
|
2552
|
-
{
|
|
2553
|
-
title: "Error State",
|
|
2554
|
-
framework: "angular",
|
|
2555
|
-
code: '<!-- Storybook story: Error State -->\n<uni-input-box ${argsToTemplate(props)}>\n <input type="text" placeholder="Type here..." />\n</uni-input-box>\n<!-- args:\n{\n disabled: false,\n error: true,\n }\n-->'
|
|
2556
|
-
},
|
|
2557
|
-
{
|
|
2558
|
-
title: "Disabled",
|
|
2559
|
-
framework: "angular",
|
|
2560
|
-
code: '<!-- Storybook story: Disabled -->\n<uni-input-box ${argsToTemplate(props)}>\n <input type="text" placeholder="Type here..." />\n</uni-input-box>\n<!-- args:\n{\n disabled: true,\n error: false,\n }\n-->'
|
|
2561
|
-
}
|
|
2562
|
-
],
|
|
2085
|
+
examples: [],
|
|
2563
2086
|
guidelines: {
|
|
2564
2087
|
whenToUse: "",
|
|
2565
2088
|
dos: [],
|
|
@@ -2575,7 +2098,7 @@ var uni_index_default = {
|
|
|
2575
2098
|
summary: "",
|
|
2576
2099
|
description: "",
|
|
2577
2100
|
category: "components",
|
|
2578
|
-
version: "
|
|
2101
|
+
version: "5.0.0",
|
|
2579
2102
|
bindings: {
|
|
2580
2103
|
angular: {
|
|
2581
2104
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2623,13 +2146,7 @@ var uni_index_default = {
|
|
|
2623
2146
|
]
|
|
2624
2147
|
}
|
|
2625
2148
|
},
|
|
2626
|
-
examples: [
|
|
2627
|
-
{
|
|
2628
|
-
title: "Primary",
|
|
2629
|
-
framework: "angular",
|
|
2630
|
-
code: "<!-- Storybook story: Primary -->\n<!-- args:\n{\n json: { a: { b: ['c', 'd', 'e', 'f'], g: ['h', 'i'] }, j: 'k' },\n }\n-->"
|
|
2631
|
-
}
|
|
2632
|
-
],
|
|
2149
|
+
examples: [],
|
|
2633
2150
|
guidelines: {
|
|
2634
2151
|
whenToUse: "",
|
|
2635
2152
|
dos: [],
|
|
@@ -2645,7 +2162,7 @@ var uni_index_default = {
|
|
|
2645
2162
|
summary: "",
|
|
2646
2163
|
description: "",
|
|
2647
2164
|
category: "layout",
|
|
2648
|
-
version: "
|
|
2165
|
+
version: "5.0.0",
|
|
2649
2166
|
bindings: {
|
|
2650
2167
|
angular: {
|
|
2651
2168
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2683,27 +2200,7 @@ var uni_index_default = {
|
|
|
2683
2200
|
]
|
|
2684
2201
|
}
|
|
2685
2202
|
},
|
|
2686
|
-
examples: [
|
|
2687
|
-
{
|
|
2688
|
-
title: "Primary",
|
|
2689
|
-
framework: "angular",
|
|
2690
|
-
code: `<!-- Storybook story: Primary -->
|
|
2691
|
-
<div box-layout color="primary" padding="sm">
|
|
2692
|
-
<Menu \${argsToTemplate(props)}>
|
|
2693
|
-
<button text-button variant="ghost" symbolRight="arrow_drop_down">Menu</button>
|
|
2694
|
-
</Menu>
|
|
2695
|
-
</div>
|
|
2696
|
-
<!-- args:
|
|
2697
|
-
{
|
|
2698
|
-
menuItems: [
|
|
2699
|
-
{ label: 'Language', symbolName: 'translate' },
|
|
2700
|
-
{ label: 'Settings', symbolName: 'settings' },
|
|
2701
|
-
{ label: 'Logout', symbolName: 'logout' },
|
|
2702
|
-
],
|
|
2703
|
-
}
|
|
2704
|
-
-->`
|
|
2705
|
-
}
|
|
2706
|
-
],
|
|
2203
|
+
examples: [],
|
|
2707
2204
|
guidelines: {
|
|
2708
2205
|
whenToUse: "",
|
|
2709
2206
|
dos: [],
|
|
@@ -2719,7 +2216,7 @@ var uni_index_default = {
|
|
|
2719
2216
|
summary: "",
|
|
2720
2217
|
description: "",
|
|
2721
2218
|
category: "layout",
|
|
2722
|
-
version: "
|
|
2219
|
+
version: "5.0.0",
|
|
2723
2220
|
bindings: {
|
|
2724
2221
|
angular: {
|
|
2725
2222
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2835,7 +2332,7 @@ var uni_index_default = {
|
|
|
2835
2332
|
summary: "",
|
|
2836
2333
|
description: "",
|
|
2837
2334
|
category: "forms",
|
|
2838
|
-
version: "
|
|
2335
|
+
version: "5.0.0",
|
|
2839
2336
|
bindings: {
|
|
2840
2337
|
angular: {
|
|
2841
2338
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2883,28 +2380,7 @@ var uni_index_default = {
|
|
|
2883
2380
|
]
|
|
2884
2381
|
}
|
|
2885
2382
|
},
|
|
2886
|
-
examples: [
|
|
2887
|
-
{
|
|
2888
|
-
title: "Primary",
|
|
2889
|
-
framework: "angular",
|
|
2890
|
-
code: "<!-- Storybook story: Primary -->\n<uni-multi-select ${argsToTemplate(props)}>\n</uni-multi-select>\n<!-- args:\n{\n options: [\n { value: 'option1', label: 'Option 1' },\n { value: 'option2', label: 'Option 2' },\n { value: 'option3', label: 'Option 3' },\n { value: 'option4', label: 'Option 4' },\n ],\n selections: ['option1', 'option3'],\n }\n-->"
|
|
2891
|
-
},
|
|
2892
|
-
{
|
|
2893
|
-
title: "Empty",
|
|
2894
|
-
framework: "angular",
|
|
2895
|
-
code: "<!-- Storybook story: Empty -->\n<uni-multi-select ${argsToTemplate(props)}>\n</uni-multi-select>\n<!-- args:\n{\n options: [\n { value: 'option1', label: 'Option 1' },\n { value: 'option2', label: 'Option 2' },\n { value: 'option3', label: 'Option 3' },\n ],\n selections: undefined,\n }\n-->"
|
|
2896
|
-
},
|
|
2897
|
-
{
|
|
2898
|
-
title: "Single Selection",
|
|
2899
|
-
framework: "angular",
|
|
2900
|
-
code: "<!-- Storybook story: Single Selection -->\n<uni-multi-select ${argsToTemplate(props)}>\n</uni-multi-select>\n<!-- args:\n{\n options: [\n { value: 'red', label: 'Red' },\n { value: 'green', label: 'Green' },\n { value: 'blue', label: 'Blue' },\n ],\n selections: ['red'],\n }\n-->"
|
|
2901
|
-
},
|
|
2902
|
-
{
|
|
2903
|
-
title: "Many Options",
|
|
2904
|
-
framework: "angular",
|
|
2905
|
-
code: "<!-- Storybook story: Many Options -->\n<uni-multi-select ${argsToTemplate(props)}>\n</uni-multi-select>\n<!-- args:\n{\n options: [\n { value: 'option1', label: 'First Option' },\n { value: 'option2', label: 'Second Option' },\n { value: 'option3', label: 'Third Option' },\n { value: 'option4', label: 'Fourth Option' },\n { value: 'option5', label: 'Fifth Option' },\n { value: 'option6', label: 'Sixth Option' },\n { value: 'option7', label: 'Seventh Option' },\n { value: 'option8', label: 'Eighth Option' },\n ],\n selections: ['option2', 'option4', 'option6'],\n }\n-->"
|
|
2906
|
-
}
|
|
2907
|
-
],
|
|
2383
|
+
examples: [],
|
|
2908
2384
|
guidelines: {
|
|
2909
2385
|
whenToUse: "",
|
|
2910
2386
|
dos: [],
|
|
@@ -2920,7 +2396,7 @@ var uni_index_default = {
|
|
|
2920
2396
|
summary: "",
|
|
2921
2397
|
description: "",
|
|
2922
2398
|
category: "forms",
|
|
2923
|
-
version: "
|
|
2399
|
+
version: "5.0.0",
|
|
2924
2400
|
bindings: {
|
|
2925
2401
|
angular: {
|
|
2926
2402
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -2999,43 +2475,7 @@ var uni_index_default = {
|
|
|
2999
2475
|
]
|
|
3000
2476
|
}
|
|
3001
2477
|
},
|
|
3002
|
-
examples: [
|
|
3003
|
-
{
|
|
3004
|
-
title: "Primary",
|
|
3005
|
-
framework: "angular",
|
|
3006
|
-
code: "<!-- Storybook story: Primary -->\n<uni-multi-select-dropdown ${argsToTemplate(props)}>\n</uni-multi-select-dropdown>\n<!-- args:\n{\n options: [\n { value: 'option1', label: 'Option 1' },\n { value: 'option2', label: 'Option 2' },\n { value: 'option3', label: 'Option 3' },\n { value: 'option4', label: 'Option 4' },\n ],\n value: ['option1', 'option3'],\n }\n-->"
|
|
3007
|
-
},
|
|
3008
|
-
{
|
|
3009
|
-
title: "Empty",
|
|
3010
|
-
framework: "angular",
|
|
3011
|
-
code: "<!-- Storybook story: Empty -->\n<uni-multi-select-dropdown ${argsToTemplate(props)}>\n</uni-multi-select-dropdown>\n<!-- args:\n{\n options: [\n { value: 'option1', label: 'Option 1' },\n { value: 'option2', label: 'Option 2' },\n { value: 'option3', label: 'Option 3' },\n ],\n value: [],\n }\n-->"
|
|
3012
|
-
},
|
|
3013
|
-
{
|
|
3014
|
-
title: "Single Selection",
|
|
3015
|
-
framework: "angular",
|
|
3016
|
-
code: "<!-- Storybook story: Single Selection -->\n<uni-multi-select-dropdown ${argsToTemplate(props)}>\n</uni-multi-select-dropdown>\n<!-- args:\n{\n options: [\n { value: 'red', label: 'Red' },\n { value: 'green', label: 'Green' },\n { value: 'blue', label: 'Blue' },\n ],\n value: ['red'],\n }\n-->"
|
|
3017
|
-
},
|
|
3018
|
-
{
|
|
3019
|
-
title: "Many Options",
|
|
3020
|
-
framework: "angular",
|
|
3021
|
-
code: "<!-- Storybook story: Many Options -->\n<uni-multi-select-dropdown ${argsToTemplate(props)}>\n</uni-multi-select-dropdown>\n<!-- args:\n{\n options: [\n { value: 'option1', label: 'First Option' },\n { value: 'option2', label: 'Second Option' },\n { value: 'option3', label: 'Third Option' },\n { value: 'option4', label: 'Fourth Option' },\n { value: 'option5', label: 'Fifth Option' },\n { value: 'option6', label: 'Sixth Option' },\n { value: 'option7', label: 'Seventh Option' },\n { value: 'option8', label: 'Eighth Option' },\n ],\n value: ['option2', 'option4', 'option6'],\n }\n-->"
|
|
3022
|
-
},
|
|
3023
|
-
{
|
|
3024
|
-
title: "Disabled",
|
|
3025
|
-
framework: "angular",
|
|
3026
|
-
code: "<!-- Storybook story: Disabled -->\n<uni-multi-select-dropdown ${argsToTemplate(props)}>\n</uni-multi-select-dropdown>\n<!-- args:\n{\n options: [\n { value: 'option1', label: 'Option 1' },\n { value: 'option2', label: 'Option 2' },\n { value: 'option3', label: 'Option 3' },\n ],\n value: ['option1'],\n disabled: true,\n }\n-->"
|
|
3027
|
-
},
|
|
3028
|
-
{
|
|
3029
|
-
title: "Error State",
|
|
3030
|
-
framework: "angular",
|
|
3031
|
-
code: "<!-- Storybook story: Error State -->\n<uni-multi-select-dropdown ${argsToTemplate(props)}>\n</uni-multi-select-dropdown>\n<!-- args:\n{\n options: [\n { value: 'option1', label: 'Option 1' },\n { value: 'option2', label: 'Option 2' },\n { value: 'option3', label: 'Option 3' },\n ],\n value: [],\n invalid: true,\n touched: true,\n }\n-->"
|
|
3032
|
-
},
|
|
3033
|
-
{
|
|
3034
|
-
title: "With Placeholder",
|
|
3035
|
-
framework: "angular",
|
|
3036
|
-
code: "<!-- Storybook story: With Placeholder -->\n<uni-multi-select-dropdown ${argsToTemplate(props)}>\n</uni-multi-select-dropdown>\n<!-- args:\n{\n options: [\n { value: 'apple', label: 'Apple' },\n { value: 'banana', label: 'Banana' },\n { value: 'orange', label: 'Orange' },\n { value: 'grape', label: 'Grape' },\n ],\n value: [],\n placeholder: 'Choose your favorite fruits...',\n }\n-->"
|
|
3037
|
-
}
|
|
3038
|
-
],
|
|
2478
|
+
examples: [],
|
|
3039
2479
|
guidelines: {
|
|
3040
2480
|
whenToUse: "",
|
|
3041
2481
|
dos: [],
|
|
@@ -3051,7 +2491,7 @@ var uni_index_default = {
|
|
|
3051
2491
|
summary: "",
|
|
3052
2492
|
description: "",
|
|
3053
2493
|
category: "feedback",
|
|
3054
|
-
version: "
|
|
2494
|
+
version: "5.0.0",
|
|
3055
2495
|
bindings: {
|
|
3056
2496
|
angular: {
|
|
3057
2497
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3115,166 +2555,7 @@ var uni_index_default = {
|
|
|
3115
2555
|
]
|
|
3116
2556
|
}
|
|
3117
2557
|
},
|
|
3118
|
-
examples: [
|
|
3119
|
-
{
|
|
3120
|
-
title: "Default",
|
|
3121
|
-
framework: "angular",
|
|
3122
|
-
code: `<!-- Storybook story: Default -->
|
|
3123
|
-
<div style="margin: 20px;">
|
|
3124
|
-
<uni-notification-badge
|
|
3125
|
-
[count]="count"
|
|
3126
|
-
[maxCount]="maxCount"
|
|
3127
|
-
[badgeVariant]="badgeVariant"
|
|
3128
|
-
[color]="color"
|
|
3129
|
-
[position]="position"
|
|
3130
|
-
[show]="show">
|
|
3131
|
-
<button uni-text-button>
|
|
3132
|
-
Button with Badge
|
|
3133
|
-
</button>
|
|
3134
|
-
</uni-notification-badge>
|
|
3135
|
-
</div>
|
|
3136
|
-
<!-- args:
|
|
3137
|
-
{
|
|
3138
|
-
count: 5,
|
|
3139
|
-
badgeVariant: 'count',
|
|
3140
|
-
color: 'warn',
|
|
3141
|
-
position: 'top-right',
|
|
3142
|
-
show: true,
|
|
3143
|
-
maxCount: 99,
|
|
3144
|
-
}
|
|
3145
|
-
-->`
|
|
3146
|
-
},
|
|
3147
|
-
{
|
|
3148
|
-
title: "Dot",
|
|
3149
|
-
framework: "angular",
|
|
3150
|
-
code: `<!-- Storybook story: Dot -->
|
|
3151
|
-
<div style="margin: 20px;">
|
|
3152
|
-
<uni-notification-badge
|
|
3153
|
-
[count]="count"
|
|
3154
|
-
[maxCount]="maxCount"
|
|
3155
|
-
[badgeVariant]="badgeVariant"
|
|
3156
|
-
[color]="color"
|
|
3157
|
-
[position]="position"
|
|
3158
|
-
[show]="show">
|
|
3159
|
-
<button uni-text-button>
|
|
3160
|
-
Button with Badge
|
|
3161
|
-
</button>
|
|
3162
|
-
</uni-notification-badge>
|
|
3163
|
-
</div>
|
|
3164
|
-
<!-- args:
|
|
3165
|
-
{
|
|
3166
|
-
badgeVariant: 'dot',
|
|
3167
|
-
color: 'warn',
|
|
3168
|
-
position: 'top-right',
|
|
3169
|
-
show: true,
|
|
3170
|
-
}
|
|
3171
|
-
-->`
|
|
3172
|
-
},
|
|
3173
|
-
{
|
|
3174
|
-
title: "Count",
|
|
3175
|
-
framework: "angular",
|
|
3176
|
-
code: `<!-- Storybook story: Count -->
|
|
3177
|
-
<div style="margin: 20px;">
|
|
3178
|
-
<uni-notification-badge
|
|
3179
|
-
[count]="count"
|
|
3180
|
-
[maxCount]="maxCount"
|
|
3181
|
-
[badgeVariant]="badgeVariant"
|
|
3182
|
-
[color]="color"
|
|
3183
|
-
[position]="position"
|
|
3184
|
-
[show]="show">
|
|
3185
|
-
<button uni-text-button>
|
|
3186
|
-
Button with Badge
|
|
3187
|
-
</button>
|
|
3188
|
-
</uni-notification-badge>
|
|
3189
|
-
</div>
|
|
3190
|
-
<!-- args:
|
|
3191
|
-
{
|
|
3192
|
-
count: 12,
|
|
3193
|
-
badgeVariant: 'count',
|
|
3194
|
-
color: 'warn',
|
|
3195
|
-
position: 'top-right',
|
|
3196
|
-
show: true,
|
|
3197
|
-
maxCount: 99,
|
|
3198
|
-
}
|
|
3199
|
-
-->`
|
|
3200
|
-
},
|
|
3201
|
-
{
|
|
3202
|
-
title: "Pill",
|
|
3203
|
-
framework: "angular",
|
|
3204
|
-
code: `<!-- Storybook story: Pill -->
|
|
3205
|
-
<div style="margin: 20px;">
|
|
3206
|
-
<uni-notification-badge
|
|
3207
|
-
[count]="count"
|
|
3208
|
-
[maxCount]="maxCount"
|
|
3209
|
-
[badgeVariant]="badgeVariant"
|
|
3210
|
-
[color]="color"
|
|
3211
|
-
[position]="position"
|
|
3212
|
-
[show]="show">
|
|
3213
|
-
<button uni-text-button>
|
|
3214
|
-
Button with Badge
|
|
3215
|
-
</button>
|
|
3216
|
-
</uni-notification-badge>
|
|
3217
|
-
</div>
|
|
3218
|
-
<!-- args:
|
|
3219
|
-
{
|
|
3220
|
-
count: 1234,
|
|
3221
|
-
badgeVariant: 'pill',
|
|
3222
|
-
color: 'warn',
|
|
3223
|
-
position: 'top-right',
|
|
3224
|
-
show: true,
|
|
3225
|
-
maxCount: 999,
|
|
3226
|
-
}
|
|
3227
|
-
-->`
|
|
3228
|
-
},
|
|
3229
|
-
{
|
|
3230
|
-
title: "Large Count",
|
|
3231
|
-
framework: "angular",
|
|
3232
|
-
code: `<!-- Storybook story: Large Count -->
|
|
3233
|
-
<div style="margin: 20px;">
|
|
3234
|
-
<uni-notification-badge
|
|
3235
|
-
[count]="count"
|
|
3236
|
-
[maxCount]="maxCount"
|
|
3237
|
-
[badgeVariant]="badgeVariant"
|
|
3238
|
-
[color]="color"
|
|
3239
|
-
[position]="position"
|
|
3240
|
-
[show]="show">
|
|
3241
|
-
<button uni-text-button>
|
|
3242
|
-
Button with Badge
|
|
3243
|
-
</button>
|
|
3244
|
-
</uni-notification-badge>
|
|
3245
|
-
</div>
|
|
3246
|
-
<!-- args:
|
|
3247
|
-
{
|
|
3248
|
-
count: 150,
|
|
3249
|
-
badgeVariant: 'count',
|
|
3250
|
-
color: 'warn',
|
|
3251
|
-
position: 'top-right',
|
|
3252
|
-
show: true,
|
|
3253
|
-
maxCount: 99,
|
|
3254
|
-
}
|
|
3255
|
-
-->`
|
|
3256
|
-
},
|
|
3257
|
-
{
|
|
3258
|
-
title: "Different Colors",
|
|
3259
|
-
framework: "angular",
|
|
3260
|
-
code: '<!-- Storybook story: Different Colors -->\n<div style="margin: 20px;">\n<uni-notification-badge\n [count]="count"\n [maxCount]="maxCount"\n [badgeVariant]="badgeVariant"\n [color]="color"\n [position]="position"\n [show]="show">\n <button uni-text-button>\n Button with Badge\n </button>\n</uni-notification-badge>\n</div>'
|
|
3261
|
-
},
|
|
3262
|
-
{
|
|
3263
|
-
title: "Different Positions",
|
|
3264
|
-
framework: "angular",
|
|
3265
|
-
code: '<!-- Storybook story: Different Positions -->\n<div style="margin: 20px;">\n<uni-notification-badge\n [count]="count"\n [maxCount]="maxCount"\n [badgeVariant]="badgeVariant"\n [color]="color"\n [position]="position"\n [show]="show">\n <button uni-text-button>\n Button with Badge\n </button>\n</uni-notification-badge>\n</div>'
|
|
3266
|
-
},
|
|
3267
|
-
{
|
|
3268
|
-
title: "Variant Comparison",
|
|
3269
|
-
framework: "angular",
|
|
3270
|
-
code: '<!-- Storybook story: Variant Comparison -->\n<div style="margin: 20px;">\n<uni-notification-badge\n [count]="count"\n [maxCount]="maxCount"\n [badgeVariant]="badgeVariant"\n [color]="color"\n [position]="position"\n [show]="show">\n <button uni-text-button>\n Button with Badge\n </button>\n</uni-notification-badge>\n</div>'
|
|
3271
|
-
},
|
|
3272
|
-
{
|
|
3273
|
-
title: "With Icons",
|
|
3274
|
-
framework: "angular",
|
|
3275
|
-
code: '<!-- Storybook story: With Icons -->\n<div style="margin: 20px;">\n<uni-notification-badge\n [count]="count"\n [maxCount]="maxCount"\n [badgeVariant]="badgeVariant"\n [color]="color"\n [position]="position"\n [show]="show">\n <button uni-text-button>\n Button with Badge\n </button>\n</uni-notification-badge>\n</div>'
|
|
3276
|
-
}
|
|
3277
|
-
],
|
|
2558
|
+
examples: [],
|
|
3278
2559
|
guidelines: {
|
|
3279
2560
|
whenToUse: "",
|
|
3280
2561
|
dos: [],
|
|
@@ -3290,7 +2571,7 @@ var uni_index_default = {
|
|
|
3290
2571
|
summary: "",
|
|
3291
2572
|
description: "",
|
|
3292
2573
|
category: "feedback",
|
|
3293
|
-
version: "
|
|
2574
|
+
version: "5.0.0",
|
|
3294
2575
|
bindings: {
|
|
3295
2576
|
angular: {
|
|
3296
2577
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3314,7 +2595,7 @@ var uni_index_default = {
|
|
|
3314
2595
|
summary: "",
|
|
3315
2596
|
description: "",
|
|
3316
2597
|
category: "data",
|
|
3317
|
-
version: "
|
|
2598
|
+
version: "5.0.0",
|
|
3318
2599
|
bindings: {
|
|
3319
2600
|
angular: {
|
|
3320
2601
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3361,18 +2642,7 @@ var uni_index_default = {
|
|
|
3361
2642
|
]
|
|
3362
2643
|
}
|
|
3363
2644
|
},
|
|
3364
|
-
examples: [
|
|
3365
|
-
{
|
|
3366
|
-
title: "Primary",
|
|
3367
|
-
framework: "angular",
|
|
3368
|
-
code: '<!-- Storybook story: Primary -->\n<Paginator ${argsToTemplate(props)} />\n<div style="margin-top: 16px;">\n @for (record of datasource.records(); track record.id) {\n <div>{{ record.name }}</div>\n }\n</div>\n<!-- args:\n{\n datasource: new UniRecordDatasource<any>(starWarsCharacters),\n initPageSize: 5,\n showPageSize: true,\n showPageJumper: true,\n showPageNumbers: true,\n }\n-->'
|
|
3369
|
-
},
|
|
3370
|
-
{
|
|
3371
|
-
title: "Page Numbers Only",
|
|
3372
|
-
framework: "angular",
|
|
3373
|
-
code: '<!-- Storybook story: Page Numbers Only -->\n<Paginator ${argsToTemplate(props)} />\n<div style="margin-top: 16px;">\n @for (record of datasource.records(); track record.id) {\n <div>{{ record.name }}</div>\n }\n</div>\n<!-- args:\n{\n datasource: new UniRecordDatasource<any>(starWarsCharacters),\n initPageSize: 5,\n showPageSize: false,\n showPageJumper: false,\n showPageNumbers: true,\n }\n-->'
|
|
3374
|
-
}
|
|
3375
|
-
],
|
|
2645
|
+
examples: [],
|
|
3376
2646
|
guidelines: {
|
|
3377
2647
|
whenToUse: "",
|
|
3378
2648
|
dos: [],
|
|
@@ -3396,7 +2666,7 @@ var uni_index_default = {
|
|
|
3396
2666
|
summary: "",
|
|
3397
2667
|
description: "",
|
|
3398
2668
|
category: "layout",
|
|
3399
|
-
version: "
|
|
2669
|
+
version: "5.0.0",
|
|
3400
2670
|
bindings: {
|
|
3401
2671
|
angular: {
|
|
3402
2672
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3421,13 +2691,7 @@ var uni_index_default = {
|
|
|
3421
2691
|
]
|
|
3422
2692
|
}
|
|
3423
2693
|
},
|
|
3424
|
-
examples: [
|
|
3425
|
-
{
|
|
3426
|
-
title: "Primary",
|
|
3427
|
-
framework: "angular",
|
|
3428
|
-
code: '<!-- Storybook story: Primary -->\n<Popover placement="${placement}" [autoClose]="${autoClose}" #popover>\n <Button trigger>Open Popover</Button>\n <Stack gap="sm">\n <div>\n <Text typeface="title-small" display="block">\n This is a Popover.\n </Text>\n It is possible to add any markup you want to a Popover.\n </div>\n <div>\n <Button symbolLeft="thumb_up" size="sm" variant="secondary" (click)="popover.hidePopover()">OK!</Button>\n </div>\n </Stack>\n</Popover>\n<!-- args:\n{\n placement: \'right-start\',\n autoClose: true,\n }\n-->'
|
|
3429
|
-
}
|
|
3430
|
-
],
|
|
2694
|
+
examples: [],
|
|
3431
2695
|
guidelines: {
|
|
3432
2696
|
whenToUse: "",
|
|
3433
2697
|
dos: [],
|
|
@@ -3443,7 +2707,7 @@ var uni_index_default = {
|
|
|
3443
2707
|
summary: "",
|
|
3444
2708
|
description: "",
|
|
3445
2709
|
category: "feedback",
|
|
3446
|
-
version: "
|
|
2710
|
+
version: "5.0.0",
|
|
3447
2711
|
bindings: {
|
|
3448
2712
|
angular: {
|
|
3449
2713
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3483,13 +2747,7 @@ var uni_index_default = {
|
|
|
3483
2747
|
]
|
|
3484
2748
|
}
|
|
3485
2749
|
},
|
|
3486
|
-
examples: [
|
|
3487
|
-
{
|
|
3488
|
-
title: "Default",
|
|
3489
|
-
framework: "angular",
|
|
3490
|
-
code: '<!-- Storybook story: Default -->\n<ProgressBar percent="${percent}" ${argsToTemplate(props)}></ProgressBar>\n<!-- args:\n{\n percent: 60,\n }\n-->'
|
|
3491
|
-
}
|
|
3492
|
-
],
|
|
2750
|
+
examples: [],
|
|
3493
2751
|
guidelines: {
|
|
3494
2752
|
whenToUse: "",
|
|
3495
2753
|
dos: [],
|
|
@@ -3505,7 +2763,7 @@ var uni_index_default = {
|
|
|
3505
2763
|
summary: "",
|
|
3506
2764
|
description: "",
|
|
3507
2765
|
category: "feedback",
|
|
3508
|
-
version: "
|
|
2766
|
+
version: "5.0.0",
|
|
3509
2767
|
bindings: {
|
|
3510
2768
|
angular: {
|
|
3511
2769
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3529,21 +2787,7 @@ var uni_index_default = {
|
|
|
3529
2787
|
]
|
|
3530
2788
|
}
|
|
3531
2789
|
},
|
|
3532
|
-
examples: [
|
|
3533
|
-
{
|
|
3534
|
-
title: "Default",
|
|
3535
|
-
framework: "angular",
|
|
3536
|
-
code: `<!-- Storybook story: Default -->
|
|
3537
|
-
<ProgressGauge percent="\${percent}" variant="\${variant}" size="\${size}"></ProgressGauge>
|
|
3538
|
-
<!-- args:
|
|
3539
|
-
{
|
|
3540
|
-
percent: 60,
|
|
3541
|
-
size: 'lg',
|
|
3542
|
-
variant: 'primary',
|
|
3543
|
-
}
|
|
3544
|
-
-->`
|
|
3545
|
-
}
|
|
3546
|
-
],
|
|
2790
|
+
examples: [],
|
|
3547
2791
|
guidelines: {
|
|
3548
2792
|
whenToUse: "",
|
|
3549
2793
|
dos: [],
|
|
@@ -3559,7 +2803,7 @@ var uni_index_default = {
|
|
|
3559
2803
|
summary: "",
|
|
3560
2804
|
description: "",
|
|
3561
2805
|
category: "forms",
|
|
3562
|
-
version: "
|
|
2806
|
+
version: "5.0.0",
|
|
3563
2807
|
bindings: {
|
|
3564
2808
|
angular: {
|
|
3565
2809
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3646,43 +2890,7 @@ var uni_index_default = {
|
|
|
3646
2890
|
]
|
|
3647
2891
|
}
|
|
3648
2892
|
},
|
|
3649
|
-
examples: [
|
|
3650
|
-
{
|
|
3651
|
-
title: "Default",
|
|
3652
|
-
framework: "angular",
|
|
3653
|
-
code: "<!-- Storybook story: Default -->\n<uni-radio ${argsToTemplate(args)}></uni-radio>\n<!-- args:\n{\n label: 'Select an option',\n variant: 'primary',\n disabled: false,\n value: 'option1',\n name: 'radio-group',\n options: defaultOptions,\n }\n-->"
|
|
3654
|
-
},
|
|
3655
|
-
{
|
|
3656
|
-
title: "Without Label",
|
|
3657
|
-
framework: "angular",
|
|
3658
|
-
code: "<!-- Storybook story: Without Label -->\n<uni-radio ${argsToTemplate(args)}></uni-radio>\n<!-- args:\n{\n label: '',\n variant: 'primary',\n disabled: false,\n value: '',\n name: 'radio-group',\n options: defaultOptions,\n }\n-->"
|
|
3659
|
-
},
|
|
3660
|
-
{
|
|
3661
|
-
title: "Disabled",
|
|
3662
|
-
framework: "angular",
|
|
3663
|
-
code: "<!-- Storybook story: Disabled -->\n<uni-radio ${argsToTemplate(args)}></uni-radio>\n<!-- args:\n{\n label: 'Disabled radio group',\n variant: 'primary',\n disabled: true,\n value: 'option1',\n name: 'radio-group',\n options: defaultOptions,\n }\n-->"
|
|
3664
|
-
},
|
|
3665
|
-
{
|
|
3666
|
-
title: "With Disabled Options",
|
|
3667
|
-
framework: "angular",
|
|
3668
|
-
code: "<!-- Storybook story: With Disabled Options -->\n<uni-radio ${argsToTemplate(args)}></uni-radio>\n<!-- args:\n{\n label: 'Some options disabled',\n variant: 'primary',\n disabled: false,\n value: 'option1',\n name: 'radio-group',\n options: [\n { label: 'Available Option', value: 'option1' },\n { label: 'Disabled Option', value: 'option2', disabled: true },\n { label: 'Another Available', value: 'option3' },\n ],\n }\n-->"
|
|
3669
|
-
},
|
|
3670
|
-
{
|
|
3671
|
-
title: "Variants",
|
|
3672
|
-
framework: "angular",
|
|
3673
|
-
code: "<!-- Storybook story: Variants -->\n<uni-radio ${argsToTemplate(args)}></uni-radio>"
|
|
3674
|
-
},
|
|
3675
|
-
{
|
|
3676
|
-
title: "With Change Event",
|
|
3677
|
-
framework: "angular",
|
|
3678
|
-
code: "<!-- Storybook story: With Change Event -->\n<uni-radio ${argsToTemplate(args)}></uni-radio>"
|
|
3679
|
-
},
|
|
3680
|
-
{
|
|
3681
|
-
title: "Form Signals",
|
|
3682
|
-
framework: "angular",
|
|
3683
|
-
code: "<!-- Storybook story: Form Signals -->\n<uni-radio ${argsToTemplate(args)}></uni-radio>"
|
|
3684
|
-
}
|
|
3685
|
-
],
|
|
2893
|
+
examples: [],
|
|
3686
2894
|
guidelines: {
|
|
3687
2895
|
whenToUse: "",
|
|
3688
2896
|
dos: [],
|
|
@@ -3698,7 +2906,7 @@ var uni_index_default = {
|
|
|
3698
2906
|
summary: "",
|
|
3699
2907
|
description: "",
|
|
3700
2908
|
category: "directives",
|
|
3701
|
-
version: "
|
|
2909
|
+
version: "5.0.0",
|
|
3702
2910
|
bindings: {
|
|
3703
2911
|
angular: {
|
|
3704
2912
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3722,7 +2930,7 @@ var uni_index_default = {
|
|
|
3722
2930
|
summary: "",
|
|
3723
2931
|
description: "",
|
|
3724
2932
|
category: "layout",
|
|
3725
|
-
version: "
|
|
2933
|
+
version: "5.0.0",
|
|
3726
2934
|
bindings: {
|
|
3727
2935
|
angular: {
|
|
3728
2936
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3755,13 +2963,7 @@ var uni_index_default = {
|
|
|
3755
2963
|
]
|
|
3756
2964
|
}
|
|
3757
2965
|
},
|
|
3758
|
-
examples: [
|
|
3759
|
-
{
|
|
3760
|
-
title: "Button Row",
|
|
3761
|
-
framework: "angular",
|
|
3762
|
-
code: "<!-- Storybook story: Button Row -->\n<div row-layout ${argsToTemplate(props)}>\n <button text-button>Button 1</button>\n <button text-button>Button 2</button>\n <button text-button>Button 3</button>\n</div>\n<!-- args:\n{ gap: 'lg' }\n-->"
|
|
3763
|
-
}
|
|
3764
|
-
],
|
|
2966
|
+
examples: [],
|
|
3765
2967
|
guidelines: {
|
|
3766
2968
|
whenToUse: "",
|
|
3767
2969
|
dos: [],
|
|
@@ -3777,7 +2979,7 @@ var uni_index_default = {
|
|
|
3777
2979
|
summary: "",
|
|
3778
2980
|
description: "",
|
|
3779
2981
|
category: "layout",
|
|
3780
|
-
version: "
|
|
2982
|
+
version: "5.0.0",
|
|
3781
2983
|
bindings: {
|
|
3782
2984
|
angular: {
|
|
3783
2985
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3902,13 +3104,7 @@ var uni_index_default = {
|
|
|
3902
3104
|
]
|
|
3903
3105
|
}
|
|
3904
3106
|
},
|
|
3905
|
-
examples: [
|
|
3906
|
-
{
|
|
3907
|
-
title: "Primary",
|
|
3908
|
-
framework: "angular",
|
|
3909
|
-
code: '<!-- Storybook story: Primary -->\n<div scroll-area ${argsToTemplate(props)} #scrollArea>\n <button size="sm" text-button variant="ghost" symbolLeft="arrow_downward" (click)="scrollArea.scrollToBottom()">Scroll to bottom</button>\n ${ngContent}\n <button size="sm" text-button variant="ghost" symbolLeft="arrow_upward" (click)="scrollArea.scrollToTop()">Back to top</button>\n</div>\n<!-- args:\n{\n border: \'quaternary\',\n color: \'tertiary-surface\',\n height: 200,\n ngContent: `\n <Text typeface="headline-medium">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</Text>\n <Text typeface="body-1-long">\n <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quis facere debitis ullam, quae quidem, impedit\n culpa nam\n repellat in voluptatibus esse ab harum, hic? Aliquam nesciunt voluptates repellendus assumenda labore.\n </p>\n <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Porro quos voluptate doloribus. Optio unde\n inventore, tempore\n nemo repellat expedita! Quod, accusamus nobis iure. Aliquam quibusdam, nemo explicabo ipsum provident\n asperiores.</p>\n <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat, qui, rem! Debitis cum maiores iste,\n possimus!\n Obcaecati accusamus eaque expedita quo soluta quis, repudiandae similique, veritatis repellendus facere\n suscipit!\n Et!</p>\n <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Harum doloremque repellat praesentium quae et\n consectetur\n iure quos porro, provident voluptates reprehenderit a. Accusamus ut, quaerat asperiores blanditiis\n voluptate, sint\n facilis.</p>\n <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus beatae inventore nobis esse\n temporibus\n exercitationem\n eos illo minima non magnam, provident sit doloribus maiores odio in animi quidem unde. Perferendis.</p>\n\n </Text>\n\n\n `,\n }\n-->'
|
|
3910
|
-
}
|
|
3911
|
-
],
|
|
3107
|
+
examples: [],
|
|
3912
3108
|
guidelines: {
|
|
3913
3109
|
whenToUse: "",
|
|
3914
3110
|
dos: [],
|
|
@@ -3924,7 +3120,7 @@ var uni_index_default = {
|
|
|
3924
3120
|
summary: "",
|
|
3925
3121
|
description: "",
|
|
3926
3122
|
category: "forms",
|
|
3927
|
-
version: "
|
|
3123
|
+
version: "5.0.0",
|
|
3928
3124
|
bindings: {
|
|
3929
3125
|
angular: {
|
|
3930
3126
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -3962,13 +3158,7 @@ var uni_index_default = {
|
|
|
3962
3158
|
]
|
|
3963
3159
|
}
|
|
3964
3160
|
},
|
|
3965
|
-
examples: [
|
|
3966
|
-
{
|
|
3967
|
-
title: "Primary",
|
|
3968
|
-
framework: "angular",
|
|
3969
|
-
code: "<!-- Storybook story: Primary -->\n<!-- args:\n{\n label: 'Search',\n }\n-->"
|
|
3970
|
-
}
|
|
3971
|
-
],
|
|
3161
|
+
examples: [],
|
|
3972
3162
|
guidelines: {
|
|
3973
3163
|
whenToUse: "",
|
|
3974
3164
|
dos: [],
|
|
@@ -3984,7 +3174,7 @@ var uni_index_default = {
|
|
|
3984
3174
|
summary: "",
|
|
3985
3175
|
description: "",
|
|
3986
3176
|
category: "forms",
|
|
3987
|
-
version: "
|
|
3177
|
+
version: "5.0.0",
|
|
3988
3178
|
bindings: {
|
|
3989
3179
|
angular: {
|
|
3990
3180
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4070,38 +3260,7 @@ var uni_index_default = {
|
|
|
4070
3260
|
]
|
|
4071
3261
|
}
|
|
4072
3262
|
},
|
|
4073
|
-
examples: [
|
|
4074
|
-
{
|
|
4075
|
-
title: "Primary",
|
|
4076
|
-
framework: "angular",
|
|
4077
|
-
code: "<!-- Storybook story: Primary -->\n<uni-select ${argsToTemplate(props)}>\n</uni-select>\n<!-- args:\n{\n placeholder: 'Select your country...',\n options: [\n { value: 'us', label: 'United States' },\n { value: 'ca', label: 'Canada' },\n { value: 'uk', label: 'United Kingdom' },\n { value: 'au', label: 'Australia' },\n ],\n value: null,\n disabled: false,\n touched: false,\n invalid: false,\n dirty: false,\n }\n-->"
|
|
4078
|
-
},
|
|
4079
|
-
{
|
|
4080
|
-
title: "With Value",
|
|
4081
|
-
framework: "angular",
|
|
4082
|
-
code: "<!-- Storybook story: With Value -->\n<uni-select ${argsToTemplate(props)}>\n</uni-select>\n<!-- args:\n{\n placeholder: 'Select priority...',\n options: [\n { value: 'low', label: 'Low Priority' },\n { value: 'medium', label: 'Medium Priority' },\n { value: 'high', label: 'High Priority' },\n { value: 'urgent', label: 'Urgent' },\n ],\n value: 'high',\n disabled: false,\n touched: true,\n invalid: false,\n dirty: false,\n }\n-->"
|
|
4083
|
-
},
|
|
4084
|
-
{
|
|
4085
|
-
title: "Disabled",
|
|
4086
|
-
framework: "angular",
|
|
4087
|
-
code: "<!-- Storybook story: Disabled -->\n<uni-select ${argsToTemplate(props)}>\n</uni-select>\n<!-- args:\n{\n placeholder: 'Cannot select...',\n options: [\n { value: 'option1', label: 'Option 1' },\n { value: 'option2', label: 'Option 2' },\n { value: 'option3', label: 'Option 3' },\n ],\n value: 'option2',\n disabled: true,\n touched: false,\n invalid: false,\n dirty: false,\n }\n-->"
|
|
4088
|
-
},
|
|
4089
|
-
{
|
|
4090
|
-
title: "Invalid",
|
|
4091
|
-
framework: "angular",
|
|
4092
|
-
code: "<!-- Storybook story: Invalid -->\n<uni-select ${argsToTemplate(props)}>\n</uni-select>\n<!-- args:\n{\n placeholder: 'Please select an option...',\n options: [\n { value: 'yes', label: 'Yes' },\n { value: 'no', label: 'No' },\n { value: 'maybe', label: 'Maybe' },\n ],\n value: null,\n disabled: false,\n touched: true,\n invalid: true,\n }\n-->"
|
|
4093
|
-
},
|
|
4094
|
-
{
|
|
4095
|
-
title: "Many Options",
|
|
4096
|
-
framework: "angular",
|
|
4097
|
-
code: "<!-- Storybook story: Many Options -->\n<uni-select ${argsToTemplate(props)}>\n</uni-select>\n<!-- args:\n{\n placeholder: 'Select state or province...',\n options: [\n { value: 'al', label: 'Alabama' },\n { value: 'ak', label: 'Alaska' },\n { value: 'az', label: 'Arizona' },\n { value: 'ar', label: 'Arkansas' },\n { value: 'ca', label: 'California' },\n { value: 'co', label: 'Colorado' },\n { value: 'ct', label: 'Connecticut' },\n { value: 'de', label: 'Delaware' },\n { value: 'fl', label: 'Florida' },\n { value: 'ga', label: 'Georgia' },\n { value: 'hi', label: 'Hawaii' },\n { value: 'id', label: 'Idaho' },\n { value: 'il', label: 'Illinois' },\n { value: 'in', label: 'Indiana' },\n { value: 'ia', label: 'Iowa' },\n ],\n value: 'ca',\n disabled: false,\n touched: true,\n invalid: false,\n dirty: false,\n }\n-->"
|
|
4098
|
-
},
|
|
4099
|
-
{
|
|
4100
|
-
title: "Short Options",
|
|
4101
|
-
framework: "angular",
|
|
4102
|
-
code: "<!-- Storybook story: Short Options -->\n<uni-select ${argsToTemplate(props)}>\n</uni-select>\n<!-- args:\n{\n placeholder: 'Pick a size...',\n options: [\n { value: 'xs', label: 'XS' },\n { value: 's', label: 'S' },\n { value: 'm', label: 'M' },\n { value: 'l', label: 'L' },\n { value: 'xl', label: 'XL' },\n ],\n value: 'm',\n disabled: false,\n touched: false,\n invalid: false,\n dirty: false,\n }\n-->"
|
|
4103
|
-
}
|
|
4104
|
-
],
|
|
3263
|
+
examples: [],
|
|
4105
3264
|
guidelines: {
|
|
4106
3265
|
whenToUse: "",
|
|
4107
3266
|
dos: [],
|
|
@@ -4117,7 +3276,7 @@ var uni_index_default = {
|
|
|
4117
3276
|
summary: "",
|
|
4118
3277
|
description: "",
|
|
4119
3278
|
category: "feedback",
|
|
4120
|
-
version: "
|
|
3279
|
+
version: "5.0.0",
|
|
4121
3280
|
bindings: {
|
|
4122
3281
|
angular: {
|
|
4123
3282
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4183,13 +3342,7 @@ var uni_index_default = {
|
|
|
4183
3342
|
]
|
|
4184
3343
|
}
|
|
4185
3344
|
},
|
|
4186
|
-
examples: [
|
|
4187
|
-
{
|
|
4188
|
-
title: "Primary",
|
|
4189
|
-
framework: "angular",
|
|
4190
|
-
code: "<!-- Storybook story: Primary -->\n<Button (click)=\"snackbar.open()\">Show Snackbar</Button>\n<Snackbar #snackbar ${argsToTemplate(props)}>\n ${ngContent}\n</Snackbar>\n<!-- args:\n{\n ngContent: 'The record has been removed.',\n variant: 'warn',\n actionLabel: 'undo',\n timeout: '5000',\n symbolName: 'delete_sweep',\n }\n-->"
|
|
4191
|
-
}
|
|
4192
|
-
],
|
|
3345
|
+
examples: [],
|
|
4193
3346
|
guidelines: {
|
|
4194
3347
|
whenToUse: "",
|
|
4195
3348
|
dos: [],
|
|
@@ -4209,7 +3362,7 @@ var uni_index_default = {
|
|
|
4209
3362
|
summary: "",
|
|
4210
3363
|
description: "",
|
|
4211
3364
|
category: "data",
|
|
4212
|
-
version: "
|
|
3365
|
+
version: "5.0.0",
|
|
4213
3366
|
bindings: {
|
|
4214
3367
|
angular: {
|
|
4215
3368
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4232,27 +3385,7 @@ var uni_index_default = {
|
|
|
4232
3385
|
]
|
|
4233
3386
|
}
|
|
4234
3387
|
},
|
|
4235
|
-
examples: [
|
|
4236
|
-
{
|
|
4237
|
-
title: "Primary",
|
|
4238
|
-
framework: "angular",
|
|
4239
|
-
code: `<!-- Storybook story: Primary -->
|
|
4240
|
-
<uni-sort-header [datasource]="datasource" [column]="column">
|
|
4241
|
-
<Text typeface="title-small">Name</Text>
|
|
4242
|
-
</uni-sort-header>
|
|
4243
|
-
<div style="margin-top: 16px;">
|
|
4244
|
-
@for (record of datasource.records().slice(0, 5); track record.id) {
|
|
4245
|
-
<div>{{ record.name }}</div>
|
|
4246
|
-
}
|
|
4247
|
-
</div>
|
|
4248
|
-
<!-- args:
|
|
4249
|
-
{
|
|
4250
|
-
column: 'name',
|
|
4251
|
-
datasource: new UniRecordDatasource<any>(starWarsCharacters),
|
|
4252
|
-
}
|
|
4253
|
-
-->`
|
|
4254
|
-
}
|
|
4255
|
-
],
|
|
3388
|
+
examples: [],
|
|
4256
3389
|
guidelines: {
|
|
4257
3390
|
whenToUse: "",
|
|
4258
3391
|
dos: [],
|
|
@@ -4268,7 +3401,7 @@ var uni_index_default = {
|
|
|
4268
3401
|
summary: "",
|
|
4269
3402
|
description: "",
|
|
4270
3403
|
category: "layout",
|
|
4271
|
-
version: "
|
|
3404
|
+
version: "5.0.0",
|
|
4272
3405
|
bindings: {
|
|
4273
3406
|
angular: {
|
|
4274
3407
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4301,13 +3434,7 @@ var uni_index_default = {
|
|
|
4301
3434
|
]
|
|
4302
3435
|
}
|
|
4303
3436
|
},
|
|
4304
|
-
examples: [
|
|
4305
|
-
{
|
|
4306
|
-
title: "Stacked Cards",
|
|
4307
|
-
framework: "angular",
|
|
4308
|
-
code: "<!-- Storybook story: Stacked Cards -->\n<div stack-layout ${argsToTemplate(props)}>\n <Card><CardContent><Text>Card 1</Text></CardContent></Card>\n <Card><CardContent><Text>Card 2</Text></CardContent></Card>\n <Card><CardContent><Text>Card 3</Text></CardContent></Card>\n <Card><CardContent><Text>Card 4</Text></CardContent></Card>\n <Card><CardContent><Text>Card 5</Text></CardContent></Card>\n</div>\n<!-- args:\n{ gap: 'lg' }\n-->"
|
|
4309
|
-
}
|
|
4310
|
-
],
|
|
3437
|
+
examples: [],
|
|
4311
3438
|
guidelines: {
|
|
4312
3439
|
whenToUse: "",
|
|
4313
3440
|
dos: [],
|
|
@@ -4323,7 +3450,7 @@ var uni_index_default = {
|
|
|
4323
3450
|
summary: "",
|
|
4324
3451
|
description: "",
|
|
4325
3452
|
category: "primitives",
|
|
4326
|
-
version: "
|
|
3453
|
+
version: "5.0.0",
|
|
4327
3454
|
bindings: {
|
|
4328
3455
|
angular: {
|
|
4329
3456
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4367,13 +3494,7 @@ var uni_index_default = {
|
|
|
4367
3494
|
]
|
|
4368
3495
|
}
|
|
4369
3496
|
},
|
|
4370
|
-
examples: [
|
|
4371
|
-
{
|
|
4372
|
-
title: "Primary",
|
|
4373
|
-
framework: "angular",
|
|
4374
|
-
code: "<!-- Storybook story: Primary -->\n<!-- args:\n{\n name: 'settings',\n }\n-->"
|
|
4375
|
-
}
|
|
4376
|
-
],
|
|
3497
|
+
examples: [],
|
|
4377
3498
|
guidelines: {
|
|
4378
3499
|
whenToUse: "",
|
|
4379
3500
|
dos: [],
|
|
@@ -4394,7 +3515,7 @@ var uni_index_default = {
|
|
|
4394
3515
|
summary: "",
|
|
4395
3516
|
description: "",
|
|
4396
3517
|
category: "data",
|
|
4397
|
-
version: "
|
|
3518
|
+
version: "5.0.0",
|
|
4398
3519
|
bindings: {
|
|
4399
3520
|
angular: {
|
|
4400
3521
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4424,28 +3545,7 @@ var uni_index_default = {
|
|
|
4424
3545
|
]
|
|
4425
3546
|
}
|
|
4426
3547
|
},
|
|
4427
|
-
examples: [
|
|
4428
|
-
{
|
|
4429
|
-
title: "Primary",
|
|
4430
|
-
framework: "angular",
|
|
4431
|
-
code: "<!-- Storybook story: Primary -->\n<!-- args:\n{\n label: 'Primary Tag',\n value: '1',\n }\n-->"
|
|
4432
|
-
},
|
|
4433
|
-
{
|
|
4434
|
-
title: "Numeric Value",
|
|
4435
|
-
framework: "angular",
|
|
4436
|
-
code: "<!-- Storybook story: Numeric Value -->\n<!-- args:\n{\n label: 'Numeric Tag',\n value: 42,\n }\n-->"
|
|
4437
|
-
},
|
|
4438
|
-
{
|
|
4439
|
-
title: "Long Label",
|
|
4440
|
-
framework: "angular",
|
|
4441
|
-
code: "<!-- Storybook story: Long Label -->\n<!-- args:\n{\n label: 'This is a very long tag label that might need truncation',\n value: 'long',\n }\n-->"
|
|
4442
|
-
},
|
|
4443
|
-
{
|
|
4444
|
-
title: "Without Value",
|
|
4445
|
-
framework: "angular",
|
|
4446
|
-
code: "<!-- Storybook story: Without Value -->\n<!-- args:\n{\n label: 'Tag without value',\n }\n-->"
|
|
4447
|
-
}
|
|
4448
|
-
],
|
|
3548
|
+
examples: [],
|
|
4449
3549
|
guidelines: {
|
|
4450
3550
|
whenToUse: "",
|
|
4451
3551
|
dos: [],
|
|
@@ -4461,7 +3561,7 @@ var uni_index_default = {
|
|
|
4461
3561
|
summary: "",
|
|
4462
3562
|
description: "",
|
|
4463
3563
|
category: "primitives",
|
|
4464
|
-
version: "
|
|
3564
|
+
version: "5.0.0",
|
|
4465
3565
|
bindings: {
|
|
4466
3566
|
angular: {
|
|
4467
3567
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4537,7 +3637,7 @@ var uni_index_default = {
|
|
|
4537
3637
|
summary: "",
|
|
4538
3638
|
description: "",
|
|
4539
3639
|
category: "primitives",
|
|
4540
|
-
version: "
|
|
3640
|
+
version: "5.0.0",
|
|
4541
3641
|
bindings: {
|
|
4542
3642
|
angular: {
|
|
4543
3643
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4545,13 +3645,7 @@ var uni_index_default = {
|
|
|
4545
3645
|
api: []
|
|
4546
3646
|
}
|
|
4547
3647
|
},
|
|
4548
|
-
examples: [
|
|
4549
|
-
{
|
|
4550
|
-
title: "Builder",
|
|
4551
|
-
framework: "angular",
|
|
4552
|
-
code: "<!-- Storybook story: Builder -->\n<uni-theme-builder />"
|
|
4553
|
-
}
|
|
4554
|
-
],
|
|
3648
|
+
examples: [],
|
|
4555
3649
|
guidelines: {
|
|
4556
3650
|
whenToUse: "",
|
|
4557
3651
|
dos: [],
|
|
@@ -4567,7 +3661,7 @@ var uni_index_default = {
|
|
|
4567
3661
|
summary: "",
|
|
4568
3662
|
description: "",
|
|
4569
3663
|
category: "forms",
|
|
4570
|
-
version: "
|
|
3664
|
+
version: "5.0.0",
|
|
4571
3665
|
bindings: {
|
|
4572
3666
|
angular: {
|
|
4573
3667
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4638,38 +3732,7 @@ var uni_index_default = {
|
|
|
4638
3732
|
]
|
|
4639
3733
|
}
|
|
4640
3734
|
},
|
|
4641
|
-
examples: [
|
|
4642
|
-
{
|
|
4643
|
-
title: "Default",
|
|
4644
|
-
framework: "angular",
|
|
4645
|
-
code: "<!-- Storybook story: Default -->\n<uni-toggle ${argsToTemplate(args)}></uni-toggle>\n<!-- args:\n{\n label: 'Enable notifications',\n variant: 'primary',\n disabled: false,\n checked: true,\n }\n-->"
|
|
4646
|
-
},
|
|
4647
|
-
{
|
|
4648
|
-
title: "Without Label",
|
|
4649
|
-
framework: "angular",
|
|
4650
|
-
code: "<!-- Storybook story: Without Label -->\n<uni-toggle ${argsToTemplate(args)}></uni-toggle>\n<!-- args:\n{\n label: '',\n variant: 'primary',\n disabled: false,\n }\n-->"
|
|
4651
|
-
},
|
|
4652
|
-
{
|
|
4653
|
-
title: "Disabled",
|
|
4654
|
-
framework: "angular",
|
|
4655
|
-
code: "<!-- Storybook story: Disabled -->\n<uni-toggle ${argsToTemplate(args)}></uni-toggle>\n<!-- args:\n{\n label: 'Disabled toggle',\n variant: 'primary',\n disabled: true,\n }\n-->"
|
|
4656
|
-
},
|
|
4657
|
-
{
|
|
4658
|
-
title: "Variants",
|
|
4659
|
-
framework: "angular",
|
|
4660
|
-
code: "<!-- Storybook story: Variants -->\n<uni-toggle ${argsToTemplate(args)}></uni-toggle>"
|
|
4661
|
-
},
|
|
4662
|
-
{
|
|
4663
|
-
title: "With Change Event",
|
|
4664
|
-
framework: "angular",
|
|
4665
|
-
code: "<!-- Storybook story: With Change Event -->\n<uni-toggle ${argsToTemplate(args)}></uni-toggle>"
|
|
4666
|
-
},
|
|
4667
|
-
{
|
|
4668
|
-
title: "Form Signals",
|
|
4669
|
-
framework: "angular",
|
|
4670
|
-
code: "<!-- Storybook story: Form Signals -->\n<uni-toggle ${argsToTemplate(args)}></uni-toggle>"
|
|
4671
|
-
}
|
|
4672
|
-
],
|
|
3735
|
+
examples: [],
|
|
4673
3736
|
guidelines: {
|
|
4674
3737
|
whenToUse: "",
|
|
4675
3738
|
dos: [],
|
|
@@ -4687,7 +3750,7 @@ var uni_index_default = {
|
|
|
4687
3750
|
summary: "",
|
|
4688
3751
|
description: "",
|
|
4689
3752
|
category: "feedback",
|
|
4690
|
-
version: "
|
|
3753
|
+
version: "5.0.0",
|
|
4691
3754
|
bindings: {
|
|
4692
3755
|
angular: {
|
|
4693
3756
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4735,13 +3798,7 @@ var uni_index_default = {
|
|
|
4735
3798
|
]
|
|
4736
3799
|
}
|
|
4737
3800
|
},
|
|
4738
|
-
examples: [
|
|
4739
|
-
{
|
|
4740
|
-
title: "Primary",
|
|
4741
|
-
framework: "angular",
|
|
4742
|
-
code: "<!-- Storybook story: Primary -->\n<Text>Here is some text with a <Tooltip ${argsToTemplate(props)}>tooltip</Tooltip> in the middle.\n</Text>\n<!-- args:\n{\n label: 'Bottom-start tooltip',\n placement: 'bottom-start',\n inlineText: true,\n }\n-->"
|
|
4743
|
-
}
|
|
4744
|
-
],
|
|
3801
|
+
examples: [],
|
|
4745
3802
|
guidelines: {
|
|
4746
3803
|
whenToUse: "",
|
|
4747
3804
|
dos: [],
|
|
@@ -4762,7 +3819,7 @@ var uni_index_default = {
|
|
|
4762
3819
|
summary: "",
|
|
4763
3820
|
description: "",
|
|
4764
3821
|
category: "layout",
|
|
4765
|
-
version: "
|
|
3822
|
+
version: "5.0.0",
|
|
4766
3823
|
bindings: {
|
|
4767
3824
|
angular: {
|
|
4768
3825
|
importPath: "@uni-design-system/uni-angular",
|
|
@@ -4787,13 +3844,7 @@ var uni_index_default = {
|
|
|
4787
3844
|
]
|
|
4788
3845
|
}
|
|
4789
3846
|
},
|
|
4790
|
-
examples: [
|
|
4791
|
-
{
|
|
4792
|
-
title: "Primary",
|
|
4793
|
-
framework: "angular",
|
|
4794
|
-
code: "<!-- Storybook story: Primary -->"
|
|
4795
|
-
}
|
|
4796
|
-
],
|
|
3847
|
+
examples: [],
|
|
4797
3848
|
guidelines: {
|
|
4798
3849
|
whenToUse: "",
|
|
4799
3850
|
dos: [],
|
|
@@ -9726,4 +8777,4 @@ export {
|
|
|
9726
8777
|
meta,
|
|
9727
8778
|
createUniServer
|
|
9728
8779
|
};
|
|
9729
|
-
//# sourceMappingURL=chunk-
|
|
8780
|
+
//# sourceMappingURL=chunk-UQRS5BYW.js.map
|