@ukic/canary-web-components 2.0.0-canary.37 → 2.0.0-canary.38
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/ic-data-table.cjs.entry.js +6 -2
- package/dist/cjs/ic-data-table.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-tree-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-tree-item.cjs.entry.js.map +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.css +22 -3
- 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-tree-item.js +1 -1
- package/dist/components/ic-tree-item.js.map +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/{p-b4f824a6.entry.js → p-3ebd4703.entry.js} +2 -2
- package/dist/core/p-3ebd4703.entry.js.map +1 -0
- package/dist/core/p-bd0328f3.entry.js +2 -0
- package/dist/core/p-bd0328f3.entry.js.map +1 -0
- package/dist/core/p-cc0e0b46.entry.js +2 -0
- package/dist/core/p-cc0e0b46.entry.js.map +1 -0
- 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-radio-option.entry.js +1 -1
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-tree-item.entry.js +1 -1
- package/dist/esm/ic-tree-item.entry.js.map +1 -1
- package/dist/types/components/ic-data-table/story-data.d.ts +57 -0
- package/hydrate/index.js +8 -4
- package/package.json +3 -3
- package/dist/core/p-89112e37.entry.js +0 -2
- package/dist/core/p-89112e37.entry.js.map +0 -1
- package/dist/core/p-b4f824a6.entry.js.map +0 -1
- package/dist/core/p-fe105ed0.entry.js +0 -2
- package/dist/core/p-fe105ed0.entry.js.map +0 -1
@@ -51,9 +51,19 @@
|
|
51
51
|
background-color: var(--ic-action-dark-bg-active) !important;
|
52
52
|
}
|
53
53
|
|
54
|
+
:host(.ic-tree-item-light) .tree-item-content:hover,
|
55
|
+
:host(.ic-tree-item-light) ::slotted([slot="router-item"]:hover) {
|
56
|
+
background-color: var(--ic-action-light-bg-hover) !important;
|
57
|
+
}
|
58
|
+
|
59
|
+
:host(.ic-tree-item-light) .tree-item-content:active,
|
60
|
+
:host(.ic-tree-item-light) ::slotted([slot="router-item"]:active) {
|
61
|
+
background-color: var(--ic-action-light-bg-active) !important;
|
62
|
+
}
|
63
|
+
|
54
64
|
:host(.ic-tree-item-selected) .tree-item-content,
|
55
65
|
:host(.ic-tree-item-selected) ::slotted([slot="router-item"]) {
|
56
|
-
background-color: var(--ic-action-default-bg-hover)
|
66
|
+
background-color: var(--ic-action-default-bg-hover);
|
57
67
|
}
|
58
68
|
|
59
69
|
:host(.ic-tree-item-small) .tree-item-content,
|
@@ -86,7 +96,7 @@
|
|
86
96
|
:host(.ic-tree-item-disabled) .arrow-dropdown,
|
87
97
|
:host(.ic-tree-item-disabled) ::slotted([slot="icon"]),
|
88
98
|
:host(.ic-tree-item-disabled) ::slotted([slot="router-item"]) {
|
89
|
-
color: var(--ic-architectural-200)
|
99
|
+
color: var(--ic-architectural-200);
|
90
100
|
fill: var(--ic-architectural-200);
|
91
101
|
pointer-events: none;
|
92
102
|
}
|
@@ -99,6 +109,15 @@
|
|
99
109
|
fill: var(--ic-architectural-white);
|
100
110
|
}
|
101
111
|
|
112
|
+
:host(.ic-tree-item-light.ic-tree-item-disabled) .tree-item-content,
|
113
|
+
:host(.ic-tree-item-light.ic-tree-item-disabled) .arrow-dropdown,
|
114
|
+
:host(.ic-tree-item-light.ic-tree-item-disabled) ::slotted([slot="icon"]),
|
115
|
+
:host(.ic-tree-item-light.ic-tree-item-disabled)
|
116
|
+
::slotted([slot="router-item"]) {
|
117
|
+
color: var(--ic-architectural-300);
|
118
|
+
fill: var(--ic-architectural-300);
|
119
|
+
}
|
120
|
+
|
102
121
|
:host .arrow-dropdown {
|
103
122
|
color: var(--ic-action-default);
|
104
123
|
margin-right: var(--ic-space-xs);
|
@@ -162,6 +181,6 @@
|
|
162
181
|
|
163
182
|
:host(.ic-tree-item-selected) .tree-item-content,
|
164
183
|
:host(.ic-tree-item-selected) ::slotted([slot="router-item"]) {
|
165
|
-
color: Highlight
|
184
|
+
color: Highlight;
|
166
185
|
}
|
167
186
|
}
|
@@ -431,6 +431,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
431
431
|
const data = this.showPagination
|
432
432
|
? this.data.slice(this.fromRow, this.toRow)
|
433
433
|
: this.data.slice();
|
434
|
+
const paginationOffset = this.showPagination ? this.fromRow : 0;
|
434
435
|
/**
|
435
436
|
* Ensures that createCells has a value in data to map over to actually render the slot.
|
436
437
|
* Removes the need for the user to add it multiple times.
|
@@ -439,7 +440,10 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
439
440
|
*/
|
440
441
|
const organisedData = data.map((row, rowIndex) => {
|
441
442
|
const slottedColumns = this.columns
|
442
|
-
.map(({ key }, index) => isSlotUsed(this.el, `${key}-${rowIndex}`) && {
|
443
|
+
.map(({ key }, index) => isSlotUsed(this.el, `${key}-${rowIndex + paginationOffset}`) && {
|
444
|
+
key,
|
445
|
+
index,
|
446
|
+
})
|
443
447
|
.filter((col) => !!col &&
|
444
448
|
// skip the column if its already in the row
|
445
449
|
!Object.prototype.hasOwnProperty.call(row, col.key));
|
@@ -458,7 +462,7 @@ const DataTable = /*@__PURE__*/ proxyCustomElement(class DataTable extends HTMLE
|
|
458
462
|
["table-row"]: true,
|
459
463
|
["table-row-selected"]: this.highlightSelectedRow && this.selectedRow === row,
|
460
464
|
}
|
461
|
-
}, this.createCells(row, index)));
|
465
|
+
}, this.createCells(row, index + paginationOffset)));
|
462
466
|
});
|
463
467
|
};
|
464
468
|
this.getObjectValue = (cell, key) => Object.values(cell)[Object.keys(cell).indexOf(key)];
|