@emuanalytics/flow-rdf-ui 4.1.0-preview.22 → 4.1.0-preview.24
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/components/list/list.component.mjs +6 -5
- package/dist/components/list-item/list-item.component.mjs +10 -13
- package/dist/components/list-item/list-item.styles.mjs +4 -0
- package/dist/custom-elements.json +240 -245
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/package.json.mjs +1 -1
- package/dist/vscode.html-custom-data.json +48 -48
- package/package.json +1 -1
|
@@ -29,10 +29,10 @@ class FlowUiList extends FlowRdfElement {
|
|
|
29
29
|
}
|
|
30
30
|
connectedCallback() {
|
|
31
31
|
super.connectedCallback();
|
|
32
|
-
this.editable = boolean(this.editable);
|
|
33
|
-
this.reorder = boolean(this.reorder);
|
|
34
|
-
this.removable = boolean(this.removable);
|
|
35
|
-
this.selectable = boolean(this.selectable);
|
|
32
|
+
this.editable = boolean(this.editable, true);
|
|
33
|
+
this.reorder = boolean(this.reorder, true);
|
|
34
|
+
this.removable = boolean(this.removable, true);
|
|
35
|
+
this.selectable = boolean(this.selectable, true);
|
|
36
36
|
}
|
|
37
37
|
disconnectedCallback() {
|
|
38
38
|
super.disconnectedCallback();
|
|
@@ -105,6 +105,7 @@ class FlowUiList extends FlowRdfElement {
|
|
|
105
105
|
item.removable = this.removable;
|
|
106
106
|
item.editable = this.editable;
|
|
107
107
|
item.reorder = this.reorder;
|
|
108
|
+
item.selectable = this.selectable;
|
|
108
109
|
});
|
|
109
110
|
if (!items.some((item) => item.checked)) {
|
|
110
111
|
items[0].tabIndex = 0;
|
|
@@ -191,7 +192,7 @@ __decorateClass([
|
|
|
191
192
|
property({ type: Boolean })
|
|
192
193
|
], FlowUiList.prototype, "removable", 2);
|
|
193
194
|
__decorateClass([
|
|
194
|
-
watch(["reorder", "editable", "removable"], { waitUntilFirstUpdate: true })
|
|
195
|
+
watch(["reorder", "editable", "removable", "selectable"], { waitUntilFirstUpdate: true })
|
|
195
196
|
], FlowUiList.prototype, "handleStyleChange", 1);
|
|
196
197
|
__decorateClass([
|
|
197
198
|
watch("value")
|
|
@@ -28,6 +28,7 @@ class FlowUiListItem extends FlowRdfElement {
|
|
|
28
28
|
this.reorder = false;
|
|
29
29
|
this.removable = false;
|
|
30
30
|
this.disabled = false;
|
|
31
|
+
this.selectable = false;
|
|
31
32
|
this.handleDragStart = (ev) => {
|
|
32
33
|
ev.stopPropagation();
|
|
33
34
|
ev.dataTransfer.setData("application/flow-ui-list-item", this.value);
|
|
@@ -39,16 +40,15 @@ class FlowUiListItem extends FlowRdfElement {
|
|
|
39
40
|
this.handleDrop = this.handleDrop.bind(this);
|
|
40
41
|
this.handleDragEnd = this.handleDragEnd.bind(this);
|
|
41
42
|
this.handleBlur = this.handleBlur.bind(this);
|
|
42
|
-
this.handleClick = this.handleClick.bind(this);
|
|
43
43
|
this.handleFocus = this.handleFocus.bind(this);
|
|
44
44
|
}
|
|
45
45
|
connectedCallback() {
|
|
46
46
|
super.connectedCallback();
|
|
47
|
-
this.editable = boolean(this.editable);
|
|
48
|
-
this.reorder = boolean(this.reorder);
|
|
49
|
-
this.removable = boolean(this.removable);
|
|
50
|
-
this.checked = boolean(this.checked);
|
|
51
|
-
this.disabled = boolean(this.disabled);
|
|
47
|
+
this.editable = boolean(this.editable, true);
|
|
48
|
+
this.reorder = boolean(this.reorder, true);
|
|
49
|
+
this.removable = boolean(this.removable, true);
|
|
50
|
+
this.checked = boolean(this.checked, true);
|
|
51
|
+
this.disabled = boolean(this.disabled, true);
|
|
52
52
|
this.setAttribute("tabindex", "-1");
|
|
53
53
|
this.addEventListeners();
|
|
54
54
|
}
|
|
@@ -65,14 +65,12 @@ class FlowUiListItem extends FlowRdfElement {
|
|
|
65
65
|
}
|
|
66
66
|
addEventListeners() {
|
|
67
67
|
this.addEventListener("blur", this.handleBlur);
|
|
68
|
-
this.addEventListener("click", this.handleClick);
|
|
69
68
|
this.addEventListener("focus", this.handleFocus);
|
|
70
69
|
this.addEventListener("dragover", this.handleDragOver);
|
|
71
70
|
this.addEventListener("drop", this.handleDrop);
|
|
72
71
|
}
|
|
73
72
|
removeEventListeners() {
|
|
74
73
|
this.removeEventListener("blur", this.handleBlur);
|
|
75
|
-
this.removeEventListener("click", this.handleClick);
|
|
76
74
|
this.removeEventListener("focus", this.handleFocus);
|
|
77
75
|
this.removeEventListener("dragover", this.handleDragOver);
|
|
78
76
|
this.removeEventListener("drop", this.handleDrop);
|
|
@@ -81,11 +79,6 @@ class FlowUiListItem extends FlowRdfElement {
|
|
|
81
79
|
this.hasFocus = false;
|
|
82
80
|
this.emit("flow-ui-blur");
|
|
83
81
|
}
|
|
84
|
-
handleClick() {
|
|
85
|
-
if (!this.disabled) {
|
|
86
|
-
this.checked = true;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
82
|
handleFocus() {
|
|
90
83
|
this.hasFocus = true;
|
|
91
84
|
this.emit("flow-ui-focus");
|
|
@@ -183,6 +176,7 @@ class FlowUiListItem extends FlowRdfElement {
|
|
|
183
176
|
"list-item--has-suffix": this.hasSlotController.test("suffix"),
|
|
184
177
|
"list-item--has-menu": this.hasSlotController.test("menu"),
|
|
185
178
|
"list-item--editable": this.editable,
|
|
179
|
+
"list-item--selectable": this.selectable,
|
|
186
180
|
"list-item--focused": this.hasFocus
|
|
187
181
|
})}
|
|
188
182
|
>
|
|
@@ -244,6 +238,9 @@ __decorateClass([
|
|
|
244
238
|
__decorateClass([
|
|
245
239
|
property({ type: Boolean, reflect: true })
|
|
246
240
|
], FlowUiListItem.prototype, "disabled", 2);
|
|
241
|
+
__decorateClass([
|
|
242
|
+
property({ type: Boolean, reflect: true })
|
|
243
|
+
], FlowUiListItem.prototype, "selectable", 2);
|
|
247
244
|
__decorateClass([
|
|
248
245
|
watch("checked")
|
|
249
246
|
], FlowUiListItem.prototype, "handleCheckedChange", 1);
|
|
@@ -668,191 +668,6 @@
|
|
|
668
668
|
}
|
|
669
669
|
]
|
|
670
670
|
},
|
|
671
|
-
{
|
|
672
|
-
"kind": "javascript-module",
|
|
673
|
-
"path": "components/avatar/avatar.component.js",
|
|
674
|
-
"declarations": [
|
|
675
|
-
{
|
|
676
|
-
"kind": "class",
|
|
677
|
-
"description": "",
|
|
678
|
-
"name": "FlowUiAvatar",
|
|
679
|
-
"cssProperties": [
|
|
680
|
-
{
|
|
681
|
-
"description": "The size of the avatar.",
|
|
682
|
-
"name": "--size"
|
|
683
|
-
}
|
|
684
|
-
],
|
|
685
|
-
"cssParts": [
|
|
686
|
-
{
|
|
687
|
-
"description": "The component's base wrapper.",
|
|
688
|
-
"name": "base"
|
|
689
|
-
},
|
|
690
|
-
{
|
|
691
|
-
"description": "The container that wraps the avatar's icon.",
|
|
692
|
-
"name": "icon"
|
|
693
|
-
},
|
|
694
|
-
{
|
|
695
|
-
"description": "The container that wraps the avatar's initials.",
|
|
696
|
-
"name": "initials"
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
"description": "The avatar image. Only shown when the `image` attribute is set.",
|
|
700
|
-
"name": "image"
|
|
701
|
-
}
|
|
702
|
-
],
|
|
703
|
-
"slots": [
|
|
704
|
-
{
|
|
705
|
-
"description": "The default icon to use when no image or initials are present. Works best with `<flow-ui-icon>`.",
|
|
706
|
-
"name": "icon"
|
|
707
|
-
}
|
|
708
|
-
],
|
|
709
|
-
"members": [
|
|
710
|
-
{
|
|
711
|
-
"kind": "field",
|
|
712
|
-
"name": "hasError",
|
|
713
|
-
"type": {
|
|
714
|
-
"text": "boolean"
|
|
715
|
-
},
|
|
716
|
-
"privacy": "private",
|
|
717
|
-
"default": "false"
|
|
718
|
-
},
|
|
719
|
-
{
|
|
720
|
-
"kind": "field",
|
|
721
|
-
"name": "image",
|
|
722
|
-
"type": {
|
|
723
|
-
"text": "string"
|
|
724
|
-
},
|
|
725
|
-
"default": "''",
|
|
726
|
-
"description": "The image source to use for the avatar.",
|
|
727
|
-
"attribute": "image"
|
|
728
|
-
},
|
|
729
|
-
{
|
|
730
|
-
"kind": "field",
|
|
731
|
-
"name": "label",
|
|
732
|
-
"type": {
|
|
733
|
-
"text": "string"
|
|
734
|
-
},
|
|
735
|
-
"default": "''",
|
|
736
|
-
"description": "A label to use to describe the avatar to assistive devices.",
|
|
737
|
-
"attribute": "label"
|
|
738
|
-
},
|
|
739
|
-
{
|
|
740
|
-
"kind": "field",
|
|
741
|
-
"name": "initials",
|
|
742
|
-
"type": {
|
|
743
|
-
"text": "string"
|
|
744
|
-
},
|
|
745
|
-
"default": "''",
|
|
746
|
-
"description": "Initials to use as a fallback when no image is available (1-2 characters max recommended).",
|
|
747
|
-
"attribute": "initials"
|
|
748
|
-
},
|
|
749
|
-
{
|
|
750
|
-
"kind": "field",
|
|
751
|
-
"name": "loading",
|
|
752
|
-
"type": {
|
|
753
|
-
"text": "'eager' | 'lazy'"
|
|
754
|
-
},
|
|
755
|
-
"default": "'eager'",
|
|
756
|
-
"description": "Indicates how the browser should load the image.",
|
|
757
|
-
"attribute": "loading"
|
|
758
|
-
},
|
|
759
|
-
{
|
|
760
|
-
"kind": "field",
|
|
761
|
-
"name": "shape",
|
|
762
|
-
"type": {
|
|
763
|
-
"text": "'circle' | 'square' | 'rounded'"
|
|
764
|
-
},
|
|
765
|
-
"default": "'circle'",
|
|
766
|
-
"description": "The shape of the avatar.",
|
|
767
|
-
"attribute": "shape",
|
|
768
|
-
"reflects": true
|
|
769
|
-
}
|
|
770
|
-
],
|
|
771
|
-
"attributes": [
|
|
772
|
-
{
|
|
773
|
-
"name": "image",
|
|
774
|
-
"type": {
|
|
775
|
-
"text": "string"
|
|
776
|
-
},
|
|
777
|
-
"default": "''",
|
|
778
|
-
"description": "The image source to use for the avatar.",
|
|
779
|
-
"fieldName": "image"
|
|
780
|
-
},
|
|
781
|
-
{
|
|
782
|
-
"name": "label",
|
|
783
|
-
"type": {
|
|
784
|
-
"text": "string"
|
|
785
|
-
},
|
|
786
|
-
"default": "''",
|
|
787
|
-
"description": "A label to use to describe the avatar to assistive devices.",
|
|
788
|
-
"fieldName": "label"
|
|
789
|
-
},
|
|
790
|
-
{
|
|
791
|
-
"name": "initials",
|
|
792
|
-
"type": {
|
|
793
|
-
"text": "string"
|
|
794
|
-
},
|
|
795
|
-
"default": "''",
|
|
796
|
-
"description": "Initials to use as a fallback when no image is available (1-2 characters max recommended).",
|
|
797
|
-
"fieldName": "initials"
|
|
798
|
-
},
|
|
799
|
-
{
|
|
800
|
-
"name": "loading",
|
|
801
|
-
"type": {
|
|
802
|
-
"text": "'eager' | 'lazy'"
|
|
803
|
-
},
|
|
804
|
-
"default": "'eager'",
|
|
805
|
-
"description": "Indicates how the browser should load the image.",
|
|
806
|
-
"fieldName": "loading"
|
|
807
|
-
},
|
|
808
|
-
{
|
|
809
|
-
"name": "shape",
|
|
810
|
-
"type": {
|
|
811
|
-
"text": "'circle' | 'square' | 'rounded'"
|
|
812
|
-
},
|
|
813
|
-
"default": "'circle'",
|
|
814
|
-
"description": "The shape of the avatar.",
|
|
815
|
-
"fieldName": "shape"
|
|
816
|
-
}
|
|
817
|
-
],
|
|
818
|
-
"superclass": {
|
|
819
|
-
"name": "FlowRdfElement",
|
|
820
|
-
"module": "/src/internal/flow-ui-rdf-element"
|
|
821
|
-
},
|
|
822
|
-
"tagName": "flow-ui-avatar",
|
|
823
|
-
"summary": "Avatars are used to represent a person or object.",
|
|
824
|
-
"dependencies": [
|
|
825
|
-
"flow-ui-icon"
|
|
826
|
-
],
|
|
827
|
-
"customElement": true
|
|
828
|
-
}
|
|
829
|
-
],
|
|
830
|
-
"exports": [
|
|
831
|
-
{
|
|
832
|
-
"kind": "js",
|
|
833
|
-
"name": "default",
|
|
834
|
-
"declaration": {
|
|
835
|
-
"name": "FlowUiAvatar",
|
|
836
|
-
"module": "components/avatar/avatar.component.js"
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
]
|
|
840
|
-
},
|
|
841
|
-
{
|
|
842
|
-
"kind": "javascript-module",
|
|
843
|
-
"path": "components/avatar/avatar.js",
|
|
844
|
-
"declarations": [],
|
|
845
|
-
"exports": [
|
|
846
|
-
{
|
|
847
|
-
"kind": "js",
|
|
848
|
-
"name": "default",
|
|
849
|
-
"declaration": {
|
|
850
|
-
"name": "FlowUiAvatar",
|
|
851
|
-
"module": "components/avatar/avatar.js"
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
]
|
|
855
|
-
},
|
|
856
671
|
{
|
|
857
672
|
"kind": "javascript-module",
|
|
858
673
|
"path": "components/base-control/base-control.component.js",
|
|
@@ -1316,114 +1131,160 @@
|
|
|
1316
1131
|
},
|
|
1317
1132
|
{
|
|
1318
1133
|
"kind": "javascript-module",
|
|
1319
|
-
"path": "components/
|
|
1134
|
+
"path": "components/avatar/avatar.component.js",
|
|
1320
1135
|
"declarations": [
|
|
1321
1136
|
{
|
|
1322
1137
|
"kind": "class",
|
|
1323
1138
|
"description": "",
|
|
1324
|
-
"name": "
|
|
1139
|
+
"name": "FlowUiAvatar",
|
|
1140
|
+
"cssProperties": [
|
|
1141
|
+
{
|
|
1142
|
+
"description": "The size of the avatar.",
|
|
1143
|
+
"name": "--size"
|
|
1144
|
+
}
|
|
1145
|
+
],
|
|
1325
1146
|
"cssParts": [
|
|
1326
1147
|
{
|
|
1327
1148
|
"description": "The component's base wrapper.",
|
|
1328
1149
|
"name": "base"
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
"description": "The container that wraps the avatar's icon.",
|
|
1153
|
+
"name": "icon"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"description": "The container that wraps the avatar's initials.",
|
|
1157
|
+
"name": "initials"
|
|
1158
|
+
},
|
|
1159
|
+
{
|
|
1160
|
+
"description": "The avatar image. Only shown when the `image` attribute is set.",
|
|
1161
|
+
"name": "image"
|
|
1329
1162
|
}
|
|
1330
1163
|
],
|
|
1331
1164
|
"slots": [
|
|
1332
1165
|
{
|
|
1333
|
-
"description": "The
|
|
1334
|
-
"name": ""
|
|
1166
|
+
"description": "The default icon to use when no image or initials are present. Works best with `<flow-ui-icon>`.",
|
|
1167
|
+
"name": "icon"
|
|
1335
1168
|
}
|
|
1336
1169
|
],
|
|
1337
1170
|
"members": [
|
|
1338
1171
|
{
|
|
1339
1172
|
"kind": "field",
|
|
1340
|
-
"name": "
|
|
1173
|
+
"name": "hasError",
|
|
1341
1174
|
"type": {
|
|
1342
|
-
"text": "
|
|
1175
|
+
"text": "boolean"
|
|
1343
1176
|
},
|
|
1344
|
-
"
|
|
1345
|
-
"
|
|
1346
|
-
"attribute": "variant",
|
|
1347
|
-
"reflects": true
|
|
1177
|
+
"privacy": "private",
|
|
1178
|
+
"default": "false"
|
|
1348
1179
|
},
|
|
1349
1180
|
{
|
|
1350
1181
|
"kind": "field",
|
|
1351
|
-
"name": "
|
|
1182
|
+
"name": "image",
|
|
1352
1183
|
"type": {
|
|
1353
|
-
"text": "
|
|
1184
|
+
"text": "string"
|
|
1354
1185
|
},
|
|
1355
|
-
"default": "'
|
|
1356
|
-
"description": "The
|
|
1357
|
-
"attribute": "
|
|
1358
|
-
"reflects": true
|
|
1186
|
+
"default": "''",
|
|
1187
|
+
"description": "The image source to use for the avatar.",
|
|
1188
|
+
"attribute": "image"
|
|
1359
1189
|
},
|
|
1360
1190
|
{
|
|
1361
1191
|
"kind": "field",
|
|
1362
|
-
"name": "
|
|
1192
|
+
"name": "label",
|
|
1363
1193
|
"type": {
|
|
1364
|
-
"text": "
|
|
1194
|
+
"text": "string"
|
|
1365
1195
|
},
|
|
1366
|
-
"default": "
|
|
1367
|
-
"description": "
|
|
1368
|
-
"attribute": "
|
|
1369
|
-
"reflects": true
|
|
1196
|
+
"default": "''",
|
|
1197
|
+
"description": "A label to use to describe the avatar to assistive devices.",
|
|
1198
|
+
"attribute": "label"
|
|
1370
1199
|
},
|
|
1371
1200
|
{
|
|
1372
1201
|
"kind": "field",
|
|
1373
|
-
"name": "
|
|
1202
|
+
"name": "initials",
|
|
1374
1203
|
"type": {
|
|
1375
|
-
"text": "
|
|
1204
|
+
"text": "string"
|
|
1376
1205
|
},
|
|
1377
|
-
"default": "
|
|
1378
|
-
"description": "
|
|
1379
|
-
"attribute": "
|
|
1206
|
+
"default": "''",
|
|
1207
|
+
"description": "Initials to use as a fallback when no image is available (1-2 characters max recommended).",
|
|
1208
|
+
"attribute": "initials"
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
"kind": "field",
|
|
1212
|
+
"name": "loading",
|
|
1213
|
+
"type": {
|
|
1214
|
+
"text": "'eager' | 'lazy'"
|
|
1215
|
+
},
|
|
1216
|
+
"default": "'eager'",
|
|
1217
|
+
"description": "Indicates how the browser should load the image.",
|
|
1218
|
+
"attribute": "loading"
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"kind": "field",
|
|
1222
|
+
"name": "shape",
|
|
1223
|
+
"type": {
|
|
1224
|
+
"text": "'circle' | 'square' | 'rounded'"
|
|
1225
|
+
},
|
|
1226
|
+
"default": "'circle'",
|
|
1227
|
+
"description": "The shape of the avatar.",
|
|
1228
|
+
"attribute": "shape",
|
|
1380
1229
|
"reflects": true
|
|
1381
1230
|
}
|
|
1382
1231
|
],
|
|
1383
1232
|
"attributes": [
|
|
1384
1233
|
{
|
|
1385
|
-
"name": "
|
|
1234
|
+
"name": "image",
|
|
1386
1235
|
"type": {
|
|
1387
|
-
"text": "
|
|
1236
|
+
"text": "string"
|
|
1388
1237
|
},
|
|
1389
|
-
"default": "'
|
|
1390
|
-
"description": "The
|
|
1391
|
-
"fieldName": "
|
|
1238
|
+
"default": "''",
|
|
1239
|
+
"description": "The image source to use for the avatar.",
|
|
1240
|
+
"fieldName": "image"
|
|
1392
1241
|
},
|
|
1393
1242
|
{
|
|
1394
|
-
"name": "
|
|
1243
|
+
"name": "label",
|
|
1395
1244
|
"type": {
|
|
1396
|
-
"text": "
|
|
1245
|
+
"text": "string"
|
|
1397
1246
|
},
|
|
1398
|
-
"default": "'
|
|
1399
|
-
"description": "
|
|
1400
|
-
"fieldName": "
|
|
1247
|
+
"default": "''",
|
|
1248
|
+
"description": "A label to use to describe the avatar to assistive devices.",
|
|
1249
|
+
"fieldName": "label"
|
|
1401
1250
|
},
|
|
1402
1251
|
{
|
|
1403
|
-
"name": "
|
|
1252
|
+
"name": "initials",
|
|
1404
1253
|
"type": {
|
|
1405
|
-
"text": "
|
|
1254
|
+
"text": "string"
|
|
1406
1255
|
},
|
|
1407
|
-
"default": "
|
|
1408
|
-
"description": "
|
|
1409
|
-
"fieldName": "
|
|
1256
|
+
"default": "''",
|
|
1257
|
+
"description": "Initials to use as a fallback when no image is available (1-2 characters max recommended).",
|
|
1258
|
+
"fieldName": "initials"
|
|
1410
1259
|
},
|
|
1411
1260
|
{
|
|
1412
|
-
"name": "
|
|
1261
|
+
"name": "loading",
|
|
1413
1262
|
"type": {
|
|
1414
|
-
"text": "
|
|
1263
|
+
"text": "'eager' | 'lazy'"
|
|
1415
1264
|
},
|
|
1416
|
-
"default": "
|
|
1417
|
-
"description": "
|
|
1418
|
-
"fieldName": "
|
|
1265
|
+
"default": "'eager'",
|
|
1266
|
+
"description": "Indicates how the browser should load the image.",
|
|
1267
|
+
"fieldName": "loading"
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
"name": "shape",
|
|
1271
|
+
"type": {
|
|
1272
|
+
"text": "'circle' | 'square' | 'rounded'"
|
|
1273
|
+
},
|
|
1274
|
+
"default": "'circle'",
|
|
1275
|
+
"description": "The shape of the avatar.",
|
|
1276
|
+
"fieldName": "shape"
|
|
1419
1277
|
}
|
|
1420
1278
|
],
|
|
1421
1279
|
"superclass": {
|
|
1422
1280
|
"name": "FlowRdfElement",
|
|
1423
1281
|
"module": "/src/internal/flow-ui-rdf-element"
|
|
1424
1282
|
},
|
|
1425
|
-
"tagName": "flow-ui-
|
|
1426
|
-
"summary": "
|
|
1283
|
+
"tagName": "flow-ui-avatar",
|
|
1284
|
+
"summary": "Avatars are used to represent a person or object.",
|
|
1285
|
+
"dependencies": [
|
|
1286
|
+
"flow-ui-icon"
|
|
1287
|
+
],
|
|
1427
1288
|
"customElement": true
|
|
1428
1289
|
}
|
|
1429
1290
|
],
|
|
@@ -1432,23 +1293,23 @@
|
|
|
1432
1293
|
"kind": "js",
|
|
1433
1294
|
"name": "default",
|
|
1434
1295
|
"declaration": {
|
|
1435
|
-
"name": "
|
|
1436
|
-
"module": "components/
|
|
1296
|
+
"name": "FlowUiAvatar",
|
|
1297
|
+
"module": "components/avatar/avatar.component.js"
|
|
1437
1298
|
}
|
|
1438
1299
|
}
|
|
1439
1300
|
]
|
|
1440
1301
|
},
|
|
1441
1302
|
{
|
|
1442
1303
|
"kind": "javascript-module",
|
|
1443
|
-
"path": "components/
|
|
1304
|
+
"path": "components/avatar/avatar.js",
|
|
1444
1305
|
"declarations": [],
|
|
1445
1306
|
"exports": [
|
|
1446
1307
|
{
|
|
1447
1308
|
"kind": "js",
|
|
1448
1309
|
"name": "default",
|
|
1449
1310
|
"declaration": {
|
|
1450
|
-
"name": "
|
|
1451
|
-
"module": "components/
|
|
1311
|
+
"name": "FlowUiAvatar",
|
|
1312
|
+
"module": "components/avatar/avatar.js"
|
|
1452
1313
|
}
|
|
1453
1314
|
}
|
|
1454
1315
|
]
|
|
@@ -1576,6 +1437,145 @@
|
|
|
1576
1437
|
}
|
|
1577
1438
|
]
|
|
1578
1439
|
},
|
|
1440
|
+
{
|
|
1441
|
+
"kind": "javascript-module",
|
|
1442
|
+
"path": "components/badge/badge.component.js",
|
|
1443
|
+
"declarations": [
|
|
1444
|
+
{
|
|
1445
|
+
"kind": "class",
|
|
1446
|
+
"description": "",
|
|
1447
|
+
"name": "FlowUiBadge",
|
|
1448
|
+
"cssParts": [
|
|
1449
|
+
{
|
|
1450
|
+
"description": "The component's base wrapper.",
|
|
1451
|
+
"name": "base"
|
|
1452
|
+
}
|
|
1453
|
+
],
|
|
1454
|
+
"slots": [
|
|
1455
|
+
{
|
|
1456
|
+
"description": "The badge's content.",
|
|
1457
|
+
"name": ""
|
|
1458
|
+
}
|
|
1459
|
+
],
|
|
1460
|
+
"members": [
|
|
1461
|
+
{
|
|
1462
|
+
"kind": "field",
|
|
1463
|
+
"name": "variant",
|
|
1464
|
+
"type": {
|
|
1465
|
+
"text": "'primary' | 'secondary' | 'success' | 'neutral' | 'warning' | 'danger'"
|
|
1466
|
+
},
|
|
1467
|
+
"default": "'primary'",
|
|
1468
|
+
"description": "The badge's theme variant.",
|
|
1469
|
+
"attribute": "variant",
|
|
1470
|
+
"reflects": true
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
"kind": "field",
|
|
1474
|
+
"name": "size",
|
|
1475
|
+
"type": {
|
|
1476
|
+
"text": "'small' | 'medium' | 'large'"
|
|
1477
|
+
},
|
|
1478
|
+
"default": "'medium'",
|
|
1479
|
+
"description": "The badge size.",
|
|
1480
|
+
"attribute": "size",
|
|
1481
|
+
"reflects": true
|
|
1482
|
+
},
|
|
1483
|
+
{
|
|
1484
|
+
"kind": "field",
|
|
1485
|
+
"name": "pill",
|
|
1486
|
+
"type": {
|
|
1487
|
+
"text": "boolean"
|
|
1488
|
+
},
|
|
1489
|
+
"default": "false",
|
|
1490
|
+
"description": "Draws a pill-style badge with rounded edges.",
|
|
1491
|
+
"attribute": "pill",
|
|
1492
|
+
"reflects": true
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
"kind": "field",
|
|
1496
|
+
"name": "pulse",
|
|
1497
|
+
"type": {
|
|
1498
|
+
"text": "boolean"
|
|
1499
|
+
},
|
|
1500
|
+
"default": "false",
|
|
1501
|
+
"description": "Makes the badge pulsate to draw attention.",
|
|
1502
|
+
"attribute": "pulse",
|
|
1503
|
+
"reflects": true
|
|
1504
|
+
}
|
|
1505
|
+
],
|
|
1506
|
+
"attributes": [
|
|
1507
|
+
{
|
|
1508
|
+
"name": "variant",
|
|
1509
|
+
"type": {
|
|
1510
|
+
"text": "'primary' | 'secondary' | 'success' | 'neutral' | 'warning' | 'danger'"
|
|
1511
|
+
},
|
|
1512
|
+
"default": "'primary'",
|
|
1513
|
+
"description": "The badge's theme variant.",
|
|
1514
|
+
"fieldName": "variant"
|
|
1515
|
+
},
|
|
1516
|
+
{
|
|
1517
|
+
"name": "size",
|
|
1518
|
+
"type": {
|
|
1519
|
+
"text": "'small' | 'medium' | 'large'"
|
|
1520
|
+
},
|
|
1521
|
+
"default": "'medium'",
|
|
1522
|
+
"description": "The badge size.",
|
|
1523
|
+
"fieldName": "size"
|
|
1524
|
+
},
|
|
1525
|
+
{
|
|
1526
|
+
"name": "pill",
|
|
1527
|
+
"type": {
|
|
1528
|
+
"text": "boolean"
|
|
1529
|
+
},
|
|
1530
|
+
"default": "false",
|
|
1531
|
+
"description": "Draws a pill-style badge with rounded edges.",
|
|
1532
|
+
"fieldName": "pill"
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
"name": "pulse",
|
|
1536
|
+
"type": {
|
|
1537
|
+
"text": "boolean"
|
|
1538
|
+
},
|
|
1539
|
+
"default": "false",
|
|
1540
|
+
"description": "Makes the badge pulsate to draw attention.",
|
|
1541
|
+
"fieldName": "pulse"
|
|
1542
|
+
}
|
|
1543
|
+
],
|
|
1544
|
+
"superclass": {
|
|
1545
|
+
"name": "FlowRdfElement",
|
|
1546
|
+
"module": "/src/internal/flow-ui-rdf-element"
|
|
1547
|
+
},
|
|
1548
|
+
"tagName": "flow-ui-badge",
|
|
1549
|
+
"summary": "Badges are used to draw attention and display statuses or counts.",
|
|
1550
|
+
"customElement": true
|
|
1551
|
+
}
|
|
1552
|
+
],
|
|
1553
|
+
"exports": [
|
|
1554
|
+
{
|
|
1555
|
+
"kind": "js",
|
|
1556
|
+
"name": "default",
|
|
1557
|
+
"declaration": {
|
|
1558
|
+
"name": "FlowUiBadge",
|
|
1559
|
+
"module": "components/badge/badge.component.js"
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
]
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
"kind": "javascript-module",
|
|
1566
|
+
"path": "components/badge/badge.js",
|
|
1567
|
+
"declarations": [],
|
|
1568
|
+
"exports": [
|
|
1569
|
+
{
|
|
1570
|
+
"kind": "js",
|
|
1571
|
+
"name": "default",
|
|
1572
|
+
"declaration": {
|
|
1573
|
+
"name": "FlowUiBadge",
|
|
1574
|
+
"module": "components/badge/badge.js"
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
]
|
|
1578
|
+
},
|
|
1579
1579
|
{
|
|
1580
1580
|
"kind": "javascript-module",
|
|
1581
1581
|
"path": "components/breadcrumb-item/breadcrumb-item.component.js",
|
|
@@ -12036,11 +12036,6 @@
|
|
|
12036
12036
|
"name": "handleBlur",
|
|
12037
12037
|
"privacy": "private"
|
|
12038
12038
|
},
|
|
12039
|
-
{
|
|
12040
|
-
"kind": "method",
|
|
12041
|
-
"name": "handleClick",
|
|
12042
|
-
"privacy": "private"
|
|
12043
|
-
},
|
|
12044
12039
|
{
|
|
12045
12040
|
"kind": "method",
|
|
12046
12041
|
"name": "handleFocus",
|
|
@@ -24816,6 +24811,6 @@
|
|
|
24816
24811
|
],
|
|
24817
24812
|
"package": {
|
|
24818
24813
|
"name": "@emuanalytics/flow-rdf-ui",
|
|
24819
|
-
"version": "4.1.0-preview.
|
|
24814
|
+
"version": "4.1.0-preview.24"
|
|
24820
24815
|
}
|
|
24821
24816
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -4410,6 +4410,8 @@ declare class FlowUiListItem extends FlowRdfElement {
|
|
|
4410
4410
|
removable: boolean;
|
|
4411
4411
|
/** Set to enable removing the list item. */
|
|
4412
4412
|
disabled: boolean;
|
|
4413
|
+
/** @internal Set to enable selection support for this list item. */
|
|
4414
|
+
selectable: boolean;
|
|
4413
4415
|
constructor();
|
|
4414
4416
|
connectedCallback(): void;
|
|
4415
4417
|
disconnectedCallback(): void;
|
|
@@ -4419,7 +4421,6 @@ declare class FlowUiListItem extends FlowRdfElement {
|
|
|
4419
4421
|
private addEventListeners;
|
|
4420
4422
|
private removeEventListeners;
|
|
4421
4423
|
private handleBlur;
|
|
4422
|
-
private handleClick;
|
|
4423
4424
|
private handleFocus;
|
|
4424
4425
|
private handleMenuSelect;
|
|
4425
4426
|
private handleInputEvents;
|
package/dist/index.d.ts
CHANGED
|
@@ -4410,6 +4410,8 @@ declare class FlowUiListItem extends FlowRdfElement {
|
|
|
4410
4410
|
removable: boolean;
|
|
4411
4411
|
/** Set to enable removing the list item. */
|
|
4412
4412
|
disabled: boolean;
|
|
4413
|
+
/** @internal Set to enable selection support for this list item. */
|
|
4414
|
+
selectable: boolean;
|
|
4413
4415
|
constructor();
|
|
4414
4416
|
connectedCallback(): void;
|
|
4415
4417
|
disconnectedCallback(): void;
|
|
@@ -4419,7 +4421,6 @@ declare class FlowUiListItem extends FlowRdfElement {
|
|
|
4419
4421
|
private addEventListeners;
|
|
4420
4422
|
private removeEventListeners;
|
|
4421
4423
|
private handleBlur;
|
|
4422
|
-
private handleClick;
|
|
4423
4424
|
private handleFocus;
|
|
4424
4425
|
private handleMenuSelect;
|
|
4425
4426
|
private handleInputEvents;
|
package/dist/package.json.mjs
CHANGED
|
@@ -97,42 +97,6 @@
|
|
|
97
97
|
],
|
|
98
98
|
"references": []
|
|
99
99
|
},
|
|
100
|
-
{
|
|
101
|
-
"name": "flow-ui-avatar",
|
|
102
|
-
"description": "Avatars are used to represent a person or object.\n\n\n---\n\n\n\n\n### **Slots:**\n - **icon** - The default icon to use when no image or initials are present. Works best with `<flow-ui-icon>`.\n\n### **CSS Properties:**\n - **--size** - The size of the avatar. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon** - The container that wraps the avatar's icon.\n- **initials** - The container that wraps the avatar's initials.\n- **image** - The avatar image. Only shown when the `image` attribute is set.",
|
|
103
|
-
"attributes": [
|
|
104
|
-
{
|
|
105
|
-
"name": "image",
|
|
106
|
-
"description": "The image source to use for the avatar.",
|
|
107
|
-
"values": []
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"name": "label",
|
|
111
|
-
"description": "A label to use to describe the avatar to assistive devices.",
|
|
112
|
-
"values": []
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"name": "initials",
|
|
116
|
-
"description": "Initials to use as a fallback when no image is available (1-2 characters max recommended).",
|
|
117
|
-
"values": []
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"name": "loading",
|
|
121
|
-
"description": "Indicates how the browser should load the image.",
|
|
122
|
-
"values": [{ "name": "eager" }, { "name": "lazy" }]
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"name": "shape",
|
|
126
|
-
"description": "The shape of the avatar.",
|
|
127
|
-
"values": [
|
|
128
|
-
{ "name": "circle" },
|
|
129
|
-
{ "name": "square" },
|
|
130
|
-
{ "name": "rounded" }
|
|
131
|
-
]
|
|
132
|
-
}
|
|
133
|
-
],
|
|
134
|
-
"references": []
|
|
135
|
-
},
|
|
136
100
|
{
|
|
137
101
|
"name": "flow-ui-base-control",
|
|
138
102
|
"description": "Inputs collect data from the user.\n\n\n---\n\n\n\n\n### **Events:**\n - **flow-ui-blur** - Emitted when the control loses focus.\n- **flow-ui-change** - Emitted when an alteration to the control's value is committed by the user.\n- **flow-ui-clear** - Emitted when the clear button is activated.\n- **flow-ui-focus** - Emitted when the control gains focus.\n- **flow-ui-input** - Emitted when the control receives input.\n- **flow-ui-invalid** - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the input.\n- **blur()** - Removes focus from the input.\n- **checkValidity()** - Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The input's label. Alternatively, you can use the `label` attribute.\n- **prefix** - Used to prepend a presentational icon or similar element to the input.\n- **suffix** - Used to append a presentational icon or similar element to the input.\n- **clear-icon** - An icon to use in lieu of the default clear icon.\n- **show-password-icon** - An icon to use in lieu of the default show password icon.\n- **hide-password-icon** - An icon to use in lieu of the default hide password icon.\n- **help-text** - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the label, input, and help text.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input's wrapper.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **input** - The internal `<input>` control.\n- **prefix** - The container that wraps the prefix.\n- **clear-button** - The clear button.\n- **password-toggle-button** - The password toggle button.\n- **suffix** - The container that wraps the suffix.",
|
|
@@ -194,6 +158,54 @@
|
|
|
194
158
|
],
|
|
195
159
|
"references": []
|
|
196
160
|
},
|
|
161
|
+
{
|
|
162
|
+
"name": "flow-ui-avatar",
|
|
163
|
+
"description": "Avatars are used to represent a person or object.\n\n\n---\n\n\n\n\n### **Slots:**\n - **icon** - The default icon to use when no image or initials are present. Works best with `<flow-ui-icon>`.\n\n### **CSS Properties:**\n - **--size** - The size of the avatar. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon** - The container that wraps the avatar's icon.\n- **initials** - The container that wraps the avatar's initials.\n- **image** - The avatar image. Only shown when the `image` attribute is set.",
|
|
164
|
+
"attributes": [
|
|
165
|
+
{
|
|
166
|
+
"name": "image",
|
|
167
|
+
"description": "The image source to use for the avatar.",
|
|
168
|
+
"values": []
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "label",
|
|
172
|
+
"description": "A label to use to describe the avatar to assistive devices.",
|
|
173
|
+
"values": []
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "initials",
|
|
177
|
+
"description": "Initials to use as a fallback when no image is available (1-2 characters max recommended).",
|
|
178
|
+
"values": []
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "loading",
|
|
182
|
+
"description": "Indicates how the browser should load the image.",
|
|
183
|
+
"values": [{ "name": "eager" }, { "name": "lazy" }]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"name": "shape",
|
|
187
|
+
"description": "The shape of the avatar.",
|
|
188
|
+
"values": [
|
|
189
|
+
{ "name": "circle" },
|
|
190
|
+
{ "name": "square" },
|
|
191
|
+
{ "name": "rounded" }
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"references": []
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "flow-ui-breadcrumb",
|
|
199
|
+
"description": "Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - One or more breadcrumb items to display.\n- **separator** - The separator to use between breadcrumb items. Works best with `<flow-ui-icon>`.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
200
|
+
"attributes": [
|
|
201
|
+
{
|
|
202
|
+
"name": "label",
|
|
203
|
+
"description": "The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by\nscreen readers and other assistive devices to provide more context for users.",
|
|
204
|
+
"values": []
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"references": []
|
|
208
|
+
},
|
|
197
209
|
{
|
|
198
210
|
"name": "flow-ui-badge",
|
|
199
211
|
"description": "Badges are used to draw attention and display statuses or counts.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The badge's content.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -232,18 +244,6 @@
|
|
|
232
244
|
],
|
|
233
245
|
"references": []
|
|
234
246
|
},
|
|
235
|
-
{
|
|
236
|
-
"name": "flow-ui-breadcrumb",
|
|
237
|
-
"description": "Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - One or more breadcrumb items to display.\n- **separator** - The separator to use between breadcrumb items. Works best with `<flow-ui-icon>`.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
238
|
-
"attributes": [
|
|
239
|
-
{
|
|
240
|
-
"name": "label",
|
|
241
|
-
"description": "The label to use for the breadcrumb control. This will not be shown on the screen, but it will be announced by\nscreen readers and other assistive devices to provide more context for users.",
|
|
242
|
-
"values": []
|
|
243
|
-
}
|
|
244
|
-
],
|
|
245
|
-
"references": []
|
|
246
|
-
},
|
|
247
247
|
{
|
|
248
248
|
"name": "flow-ui-breadcrumb-item",
|
|
249
249
|
"description": "Breadcrumb Items are used inside [breadcrumbs](./flow-ui-breadcrumb) to represent different links.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The breadcrumb item's label.\n- **prefix** - An optional prefix, usually an icon or icon button.\n- **suffix** - An optional suffix, usually an icon or icon button.\n- **separator** - The separator to use for the breadcrumb item. This will only change the separator for this item. If you want to change it for all items in the group, set the separator on `<flow-ui-breadcrumb>` instead.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **label** - The breadcrumb item's label.\n- **prefix** - The container that wraps the prefix.\n- **suffix** - The container that wraps the suffix.\n- **separator** - The container that wraps the separator.",
|