@ukic/canary-web-components 3.0.0-canary.11 → 3.0.0-canary.12
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/cjs/core.cjs.js +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +3 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +22 -21
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-table.cjs.entry.js +6 -2
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +1 -2
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +5 -6
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-item.cjs.entry.js +33 -13
- package/dist/cjs/ic-tree-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tree-view.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.js +6 -2
- package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
- package/dist/collection/components/ic-data-table/story-data.js +155 -0
- package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
- package/dist/collection/components/ic-tree-item/ic-tree-item.js +33 -13
- package/dist/collection/components/ic-tree-item/ic-tree-item.js.map +1 -1
- package/dist/collection/components/ic-tree-view/ic-tree-view.js.map +1 -1
- package/dist/components/ic-back-to-top.js +4 -1
- package/dist/components/ic-back-to-top.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js +22 -21
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-data-table.js +6 -2
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-radio-option.js +1 -1
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-select2.js +1 -1
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-tab-context.js +1 -2
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-panel.js +6 -6
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tree-item.js +33 -13
- package/dist/components/ic-tree-item.js.map +1 -1
- package/dist/components/ic-tree-view.js.map +1 -1
- package/dist/core/core.css +4 -4
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-04bd65fb.entry.js +2 -0
- package/dist/core/p-04bd65fb.entry.js.map +1 -0
- package/dist/core/p-34e05e3f.entry.js +2 -0
- package/dist/core/p-34e05e3f.entry.js.map +1 -0
- package/dist/core/p-41e48902.entry.js +2 -0
- package/dist/core/p-41e48902.entry.js.map +1 -0
- package/dist/core/{p-b6e385ba.entry.js → p-596ad611.entry.js} +2 -2
- package/dist/core/p-596ad611.entry.js.map +1 -0
- package/dist/core/p-63f90f39.entry.js +2 -0
- package/dist/core/p-63f90f39.entry.js.map +1 -0
- package/dist/core/p-9038c7e3.entry.js +2 -0
- package/dist/core/p-9038c7e3.entry.js.map +1 -0
- package/dist/core/p-a699b343.entry.js +2 -0
- package/dist/core/p-a699b343.entry.js.map +1 -0
- package/dist/core/p-a707b036.entry.js.map +1 -1
- package/dist/core/{p-e3e0cf46.entry.js → p-e9ed9a29.entry.js} +2 -2
- package/dist/core/p-e9ed9a29.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/ic-back-to-top.entry.js +3 -1
- package/dist/esm/ic-back-to-top.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +22 -21
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-data-table.entry.js +6 -2
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-pagination_4.entry.js +1 -1
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +1 -1
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +1 -2
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +5 -6
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tree-item.entry.js +33 -13
- package/dist/esm/ic-tree-item.entry.js.map +1 -1
- package/dist/esm/ic-tree-view.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-data-table/story-data.d.ts +57 -0
- package/dist/types/components/ic-tree-item/ic-tree-item.d.ts +1 -0
- package/hydrate/index.js +74 -46
- package/package.json +3 -3
- package/dist/core/p-007293a4.entry.js +0 -2
- package/dist/core/p-007293a4.entry.js.map +0 -1
- package/dist/core/p-14a6e578.entry.js +0 -2
- package/dist/core/p-14a6e578.entry.js.map +0 -1
- package/dist/core/p-1af4b9c1.entry.js +0 -2
- package/dist/core/p-1af4b9c1.entry.js.map +0 -1
- package/dist/core/p-51c6561f.entry.js +0 -2
- package/dist/core/p-51c6561f.entry.js.map +0 -1
- package/dist/core/p-9158c34f.entry.js +0 -2
- package/dist/core/p-9158c34f.entry.js.map +0 -1
- package/dist/core/p-91c720bc.entry.js +0 -2
- package/dist/core/p-91c720bc.entry.js.map +0 -1
- package/dist/core/p-b6e385ba.entry.js.map +0 -1
- package/dist/core/p-e3e0cf46.entry.js.map +0 -1
@@ -872,6 +872,34 @@ export const COLS_ELEMENTS = [
|
|
872
872
|
dataType: "address",
|
873
873
|
},
|
874
874
|
];
|
875
|
+
export const COLS_ELEMENTS_SINGLE_ACTION = [
|
876
|
+
{
|
877
|
+
key: "actions",
|
878
|
+
title: "Actions",
|
879
|
+
dataType: "element",
|
880
|
+
columnAlignment: { horizontal: "center" },
|
881
|
+
},
|
882
|
+
{
|
883
|
+
key: "firstName",
|
884
|
+
title: "First name",
|
885
|
+
dataType: "string",
|
886
|
+
},
|
887
|
+
{
|
888
|
+
key: "age",
|
889
|
+
title: "Age",
|
890
|
+
dataType: "number",
|
891
|
+
},
|
892
|
+
{
|
893
|
+
key: "jobTitle",
|
894
|
+
title: "Job title",
|
895
|
+
dataType: "string",
|
896
|
+
},
|
897
|
+
{
|
898
|
+
key: "address",
|
899
|
+
title: "Address",
|
900
|
+
dataType: "address",
|
901
|
+
},
|
902
|
+
];
|
875
903
|
export const DATA_ELEMENTS = [
|
876
904
|
{
|
877
905
|
actions: `<ic-button variant='destructive' onClick='this.closest("tr").remove()'>Delete</ic-button>`,
|
@@ -922,6 +950,86 @@ export const DATA_ELEMENTS = [
|
|
922
950
|
address: "5 New Street, Town, Country, Postcode",
|
923
951
|
},
|
924
952
|
];
|
953
|
+
export const DATA_ELEMENTS_PAGINATION = [
|
954
|
+
{
|
955
|
+
actions: `<ic-button onClick='console.log("1")'>1</ic-button>`,
|
956
|
+
firstName: {
|
957
|
+
data: "Joe",
|
958
|
+
href: "https://www.example.com",
|
959
|
+
target: "_blank",
|
960
|
+
rel: "noopener noreferrer",
|
961
|
+
},
|
962
|
+
age: 30,
|
963
|
+
jobTitle: "Developer",
|
964
|
+
address: "1 Main Street, Town, County, Postcode",
|
965
|
+
},
|
966
|
+
{
|
967
|
+
actions: `<ic-button onClick='console.log("2")'>2</ic-button>`,
|
968
|
+
firstName: {
|
969
|
+
data: "Sarah",
|
970
|
+
href: "https://www.example.org",
|
971
|
+
},
|
972
|
+
age: 28,
|
973
|
+
jobTitle: "Senior Software Developer, Site Reliability Engineering",
|
974
|
+
address: "2 Main Street, Town, Country, Postcode",
|
975
|
+
},
|
976
|
+
{
|
977
|
+
actions: `<ic-button onClick='console.log("3")'>3</ic-button>`,
|
978
|
+
firstName: "Mark",
|
979
|
+
age: 45,
|
980
|
+
jobTitle: "Team Lead",
|
981
|
+
address: "12 Key Street, Town, Country, Postcode",
|
982
|
+
},
|
983
|
+
{
|
984
|
+
actions: `<ic-button onClick='console.log("4")'>4</ic-button>`,
|
985
|
+
firstName: "Naomi",
|
986
|
+
age: 32,
|
987
|
+
jobTitle: "Analyst",
|
988
|
+
address: "8 Side Street, Town, Country, Postcode",
|
989
|
+
},
|
990
|
+
{
|
991
|
+
actions: `<ic-button onClick='console.log("5")'>5</ic-button>`,
|
992
|
+
firstName: "Luke",
|
993
|
+
age: 18,
|
994
|
+
jobTitle: "Junior Developer",
|
995
|
+
address: "5 New Street, Town, Country, Postcode",
|
996
|
+
},
|
997
|
+
{
|
998
|
+
actions: `<ic-button onClick='console.log("6")'>6</ic-button>`,
|
999
|
+
firstName: "Dave",
|
1000
|
+
age: 33,
|
1001
|
+
jobTitle: "Analyst",
|
1002
|
+
address: "4 Extra Street, Town, County, Postcode",
|
1003
|
+
},
|
1004
|
+
{
|
1005
|
+
actions: `<ic-button onClick='console.log("7")'>7</ic-button>`,
|
1006
|
+
firstName: "Amy",
|
1007
|
+
age: 27,
|
1008
|
+
jobTitle: "Analyst",
|
1009
|
+
address: "3 Main Street, Town, Country, Postcode",
|
1010
|
+
},
|
1011
|
+
{
|
1012
|
+
actions: `<ic-button onClick='console.log("8")'>8</ic-button>`,
|
1013
|
+
firstName: "Mary",
|
1014
|
+
age: 31,
|
1015
|
+
jobTitle: "Developer",
|
1016
|
+
address: "8 Main Street, Town, County, Postcode",
|
1017
|
+
},
|
1018
|
+
{
|
1019
|
+
actions: `<ic-button onClick='console.log("9")'>9</ic-button>`,
|
1020
|
+
firstName: "Alice",
|
1021
|
+
age: 38,
|
1022
|
+
jobTitle: "Team Lead",
|
1023
|
+
address: "10 High Street, Town, Country, Postcode",
|
1024
|
+
},
|
1025
|
+
{
|
1026
|
+
actions: `<ic-button onClick='console.log("10")'>10</ic-button>`,
|
1027
|
+
firstName: "Ben",
|
1028
|
+
age: 40,
|
1029
|
+
jobTitle: "Team Lead",
|
1030
|
+
address: "14 High Street, Town, Country, Postcode",
|
1031
|
+
},
|
1032
|
+
];
|
925
1033
|
export const DATA_REACT_ELEMENTS = [
|
926
1034
|
{
|
927
1035
|
firstName: {
|
@@ -962,6 +1070,39 @@ export const DATA_REACT_ELEMENTS = [
|
|
962
1070
|
address: "5 New Street, Town, Country, Postcode",
|
963
1071
|
},
|
964
1072
|
];
|
1073
|
+
export const DATA_REACT_ELEMENTS_PAGINATION = [
|
1074
|
+
...DATA_REACT_ELEMENTS,
|
1075
|
+
{
|
1076
|
+
firstName: "Dave",
|
1077
|
+
age: 33,
|
1078
|
+
jobTitle: "Analyst",
|
1079
|
+
address: "4 Extra Street, Town, County, Postcode",
|
1080
|
+
},
|
1081
|
+
{
|
1082
|
+
firstName: "Amy",
|
1083
|
+
age: 27,
|
1084
|
+
jobTitle: "Analyst",
|
1085
|
+
address: "3 Main Street, Town, Country, Postcode",
|
1086
|
+
},
|
1087
|
+
{
|
1088
|
+
firstName: "Mary",
|
1089
|
+
age: 31,
|
1090
|
+
jobTitle: "Developer",
|
1091
|
+
address: "8 Main Street, Town, County, Postcode",
|
1092
|
+
},
|
1093
|
+
{
|
1094
|
+
firstName: "Alice",
|
1095
|
+
age: 38,
|
1096
|
+
jobTitle: "Team Lead",
|
1097
|
+
address: "10 High Street, Town, Country, Postcode",
|
1098
|
+
},
|
1099
|
+
{
|
1100
|
+
firstName: "Ben",
|
1101
|
+
age: 40,
|
1102
|
+
jobTitle: "Team Lead",
|
1103
|
+
address: "14 High Street, Town, Country, Postcode",
|
1104
|
+
},
|
1105
|
+
];
|
965
1106
|
export const DATA_REACT_ELEMENTS_WITH_ICONS = [
|
966
1107
|
{
|
967
1108
|
firstName: {
|
@@ -1371,6 +1512,20 @@ export const ColumnOverrides = () => createDataTableElement("Column Overrides",
|
|
1371
1512
|
export const RowOverrides = () => createDataTableElement("Row Overrides", ROW_HEADER_COLS, ROW_ALIGNMENT);
|
1372
1513
|
export const CellOverrides = () => createDataTableElement("Cell Overrides", COLS, DATA_CELL_ALIGNMENT);
|
1373
1514
|
export const LinksHTMLElements = () => createDataTableElement("Links and HTML Elements Overrides", COLS_ELEMENTS, DATA_ELEMENTS);
|
1515
|
+
export const SlottedElementsWithPagination = () => {
|
1516
|
+
const dataTable = createDataTableElement("Slotted elements with pagination", COLS_ELEMENTS_SINGLE_ACTION, DATA_ELEMENTS_PAGINATION);
|
1517
|
+
dataTable.setAttribute("show-pagination", "true");
|
1518
|
+
dataTable.paginationBarOptions = {
|
1519
|
+
itemsPerPageOptions: [
|
1520
|
+
{ label: "5", value: "5" },
|
1521
|
+
{ label: "10", value: "10" },
|
1522
|
+
],
|
1523
|
+
showItemsPerPageControl: true,
|
1524
|
+
showGoToPageControl: true,
|
1525
|
+
selectedItemsPerPage: 5,
|
1526
|
+
};
|
1527
|
+
return dataTable;
|
1528
|
+
};
|
1374
1529
|
export const Empty = () => createDataTableElement("Empty State", COLS, null);
|
1375
1530
|
export const EmptySlotted = () => {
|
1376
1531
|
const dataTable = createDataTableElement("Empty State", COLS, null);
|