@knime/kds-table 6.6.0 → 6.7.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/CHANGELOG.md +22 -0
- package/dist/index.css +12 -11
- package/dist/index.js +41 -12
- package/dist/index.js.map +1 -1
- package/dist/src/components/control/TableActionBar.vue.d.ts.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @knime/kds-table
|
|
2
2
|
|
|
3
|
+
## 6.7.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [c7da181]
|
|
8
|
+
- Updated dependencies [4b7f2d1]
|
|
9
|
+
- Updated dependencies [9fd0c13]
|
|
10
|
+
- @knime/kds-components@6.7.0
|
|
11
|
+
- @knime/utils@2.0.1
|
|
12
|
+
- @knime/kds-styles@6.7.0
|
|
13
|
+
|
|
14
|
+
## 6.6.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 7e0c2e0: Change spacing of preview label in action bar
|
|
19
|
+
- Updated dependencies [02c9f3c]
|
|
20
|
+
- Updated dependencies [0c81fa7]
|
|
21
|
+
- Updated dependencies [aba9f9c]
|
|
22
|
+
- @knime/kds-styles@6.6.1
|
|
23
|
+
- @knime/kds-components@6.6.1
|
|
24
|
+
|
|
3
25
|
## 6.6.0
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/index.css
CHANGED
|
@@ -186,7 +186,7 @@ tr {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
.kds-table-action-bar {
|
|
189
|
-
&[data-v-
|
|
189
|
+
&[data-v-206732ac] {
|
|
190
190
|
display: grid;
|
|
191
191
|
grid-template-columns: 1fr 1fr 1fr;
|
|
192
192
|
min-height: var(--kds-dimension-component-height-2-5x);
|
|
@@ -194,41 +194,42 @@ tr {
|
|
|
194
194
|
padding-left: var(--kds-spacing-container-0-5x);
|
|
195
195
|
border-bottom: var(--kds-border-base-subtle);
|
|
196
196
|
}
|
|
197
|
-
&.temporary-view[data-v-
|
|
197
|
+
&.temporary-view[data-v-206732ac] {
|
|
198
198
|
background-color: var(--kds-color-background-static-info-muted);
|
|
199
199
|
}
|
|
200
|
-
& .dimension[data-v-
|
|
200
|
+
& .dimension[data-v-206732ac] {
|
|
201
201
|
font: var(--kds-font-base-title-small);
|
|
202
202
|
color: var(--kds-color-text-and-icon-muted);
|
|
203
203
|
white-space: pre;
|
|
204
204
|
}
|
|
205
205
|
& .preview {
|
|
206
|
-
&[data-v-
|
|
206
|
+
&[data-v-206732ac] {
|
|
207
207
|
display: flex;
|
|
208
208
|
gap: var(--kds-spacing-container-0-12x);
|
|
209
209
|
align-items: center;
|
|
210
210
|
}
|
|
211
|
-
& .preview-label[data-v-
|
|
211
|
+
& .preview-label[data-v-206732ac] {
|
|
212
212
|
font: var(--kds-font-base-title-small-strong);
|
|
213
213
|
color: var(--kds-color-text-and-icon-neutral);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
& .left[data-v-
|
|
217
|
-
& .center[data-v-
|
|
218
|
-
& .right[data-v-
|
|
216
|
+
& .left[data-v-206732ac],
|
|
217
|
+
& .center[data-v-206732ac],
|
|
218
|
+
& .right[data-v-206732ac] {
|
|
219
219
|
display: flex;
|
|
220
220
|
flex: 1;
|
|
221
221
|
align-items: center;
|
|
222
222
|
min-width: 0;
|
|
223
223
|
padding: var(--kds-spacing-container-0-12x) 0;
|
|
224
224
|
}
|
|
225
|
-
& .left[data-v-
|
|
225
|
+
& .left[data-v-206732ac],
|
|
226
|
+
& .center[data-v-206732ac] {
|
|
226
227
|
gap: var(--kds-spacing-container-0-5x);
|
|
227
228
|
}
|
|
228
|
-
& .center[data-v-
|
|
229
|
+
& .center[data-v-206732ac] {
|
|
229
230
|
justify-content: center;
|
|
230
231
|
}
|
|
231
|
-
& .right[data-v-
|
|
232
|
+
& .right[data-v-206732ac] {
|
|
232
233
|
gap: var(--kds-spacing-container-0-25x);
|
|
233
234
|
justify-content: flex-end;
|
|
234
235
|
}
|
package/dist/index.js
CHANGED
|
@@ -1600,8 +1600,8 @@ var oe = class extends b {
|
|
|
1600
1600
|
}
|
|
1601
1601
|
};
|
|
1602
1602
|
//#endregion
|
|
1603
|
-
//#region ../../node_modules/.pnpm/dompurify@3.4.
|
|
1604
|
-
/*! @license DOMPurify 3.4.
|
|
1603
|
+
//#region ../../node_modules/.pnpm/dompurify@3.4.13/node_modules/dompurify/dist/purify.es.mjs
|
|
1604
|
+
/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */
|
|
1605
1605
|
function _arrayLikeToArray(r, a) {
|
|
1606
1606
|
(null == a || a > r.length) && (a = r.length);
|
|
1607
1607
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
@@ -2551,7 +2551,7 @@ var _resolveSetOption = function _resolveSetOption(cfg, key, fallback, options)
|
|
|
2551
2551
|
function createDOMPurify() {
|
|
2552
2552
|
let window = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
2553
2553
|
const DOMPurify = (root) => createDOMPurify(root);
|
|
2554
|
-
DOMPurify.version = "3.4.
|
|
2554
|
+
DOMPurify.version = "3.4.13";
|
|
2555
2555
|
DOMPurify.removed = [];
|
|
2556
2556
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
2557
2557
|
DOMPurify.isSupported = false;
|
|
@@ -2575,6 +2575,7 @@ function createDOMPurify() {
|
|
|
2575
2575
|
const getAttributes = lookupGetter(ElementPrototype, "attributes");
|
|
2576
2576
|
const getNodeType = Node && Node.prototype ? lookupGetter(Node.prototype, "nodeType") : null;
|
|
2577
2577
|
const getNodeName = Node && Node.prototype ? lookupGetter(Node.prototype, "nodeName") : null;
|
|
2578
|
+
const getOwnerDocument = Node && Node.prototype ? lookupGetter(Node.prototype, "ownerDocument") : null;
|
|
2578
2579
|
if (typeof HTMLTemplateElement === "function") {
|
|
2579
2580
|
const template = document.createElement("template");
|
|
2580
2581
|
if (template.content && template.content.ownerDocument) document = template.content.ownerDocument;
|
|
@@ -3215,7 +3216,8 @@ function createDOMPurify() {
|
|
|
3215
3216
|
* @return The created NodeIterator
|
|
3216
3217
|
*/
|
|
3217
3218
|
const _createNodeIterator = function _createNodeIterator(root) {
|
|
3218
|
-
|
|
3219
|
+
const doc = getOwnerDocument ? getOwnerDocument(root) : root.ownerDocument;
|
|
3220
|
+
return createNodeIterator.call(doc || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
|
|
3219
3221
|
};
|
|
3220
3222
|
/**
|
|
3221
3223
|
* Replace template expression syntax (mustache, ERB, template
|
|
@@ -3253,7 +3255,8 @@ function createDOMPurify() {
|
|
|
3253
3255
|
const _scrubTemplateExpressions2 = function _scrubTemplateExpressions(node) {
|
|
3254
3256
|
var _node$querySelectorAl;
|
|
3255
3257
|
node.normalize();
|
|
3256
|
-
const
|
|
3258
|
+
const doc = getOwnerDocument ? getOwnerDocument(node) : node.ownerDocument;
|
|
3259
|
+
const walker = createNodeIterator.call(doc || node, node, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
|
|
3257
3260
|
let currentNode = walker.nextNode();
|
|
3258
3261
|
while (currentNode) {
|
|
3259
3262
|
currentNode.data = _stripTemplateExpressions(currentNode.data);
|
|
@@ -3360,7 +3363,7 @@ function createDOMPurify() {
|
|
|
3360
3363
|
* @param tagName the node's transformCaseFunc'd tag name
|
|
3361
3364
|
* @return true if the node was removed, false if kept
|
|
3362
3365
|
*/
|
|
3363
|
-
const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName) {
|
|
3366
|
+
const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName, root) {
|
|
3364
3367
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
3365
3368
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false;
|
|
3366
3369
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false;
|
|
@@ -3371,7 +3374,7 @@ function createDOMPurify() {
|
|
|
3371
3374
|
if (childNodes && parentNode) {
|
|
3372
3375
|
const childCount = childNodes.length;
|
|
3373
3376
|
for (let i = childCount - 1; i >= 0; --i) {
|
|
3374
|
-
const hoisted =
|
|
3377
|
+
const hoisted = currentNode === root ? cloneNode(childNodes[i], true) : childNodes[i];
|
|
3375
3378
|
parentNode.insertBefore(hoisted, getNextSibling(currentNode));
|
|
3376
3379
|
}
|
|
3377
3380
|
}
|
|
@@ -3380,6 +3383,24 @@ function createDOMPurify() {
|
|
|
3380
3383
|
return true;
|
|
3381
3384
|
};
|
|
3382
3385
|
/**
|
|
3386
|
+
* Fork a hook-mutable allowlist off its shared binding the first time a
|
|
3387
|
+
* (possibly lazily-installed) uponSanitize* hook is about to see it, so the
|
|
3388
|
+
* hook cannot widen the per-instance default or the setConfig binding by
|
|
3389
|
+
* reference and leak past the call. Returns the set unchanged once it is
|
|
3390
|
+
* already call-local, so repeated calls across elements are idempotent.
|
|
3391
|
+
*
|
|
3392
|
+
* @param hookList the uponSanitize* hook array for this event
|
|
3393
|
+
* @param set the current ALLOWED_TAGS / ALLOWED_ATTR binding
|
|
3394
|
+
* @param defaultSet the per-instance DEFAULT_ALLOWED_* constant
|
|
3395
|
+
* @param setConfigSet the captured setConfig() binding, or null
|
|
3396
|
+
* @return a call-local clone if a hook is present and set is still shared,
|
|
3397
|
+
* else set unchanged
|
|
3398
|
+
*/
|
|
3399
|
+
const _forkSharedAllowlist = function _forkSharedAllowlist(hookList, set, defaultSet, setConfigSet) {
|
|
3400
|
+
if (hookList.length === 0) return set;
|
|
3401
|
+
return set === defaultSet || set === setConfigSet ? clone(set) : set;
|
|
3402
|
+
};
|
|
3403
|
+
/**
|
|
3383
3404
|
* _sanitizeElements
|
|
3384
3405
|
*
|
|
3385
3406
|
* @protect nodeName
|
|
@@ -3390,23 +3411,30 @@ function createDOMPurify() {
|
|
|
3390
3411
|
*/
|
|
3391
3412
|
const _sanitizeElements = function _sanitizeElements(currentNode, root) {
|
|
3392
3413
|
_executeHooks(hooks.beforeSanitizeElements, currentNode, null);
|
|
3393
|
-
if (currentNode !== root && getParentNode(currentNode) === null)
|
|
3414
|
+
if (currentNode !== root && getParentNode(currentNode) === null) {
|
|
3415
|
+
if (IN_PLACE) _neutralizeSubtree(currentNode);
|
|
3416
|
+
return true;
|
|
3417
|
+
}
|
|
3394
3418
|
if (_isClobbered(currentNode)) {
|
|
3395
3419
|
_forceRemove(currentNode);
|
|
3396
3420
|
return true;
|
|
3397
3421
|
}
|
|
3398
3422
|
const tagName = transformCaseFunc(getNodeName ? getNodeName(currentNode) : currentNode.nodeName);
|
|
3423
|
+
ALLOWED_TAGS = _forkSharedAllowlist(hooks.uponSanitizeElement, ALLOWED_TAGS, DEFAULT_ALLOWED_TAGS, SET_CONFIG_ALLOWED_TAGS);
|
|
3399
3424
|
_executeHooks(hooks.uponSanitizeElement, currentNode, {
|
|
3400
3425
|
tagName,
|
|
3401
3426
|
allowedTags: ALLOWED_TAGS
|
|
3402
3427
|
});
|
|
3403
|
-
if (currentNode !== root && getParentNode(currentNode) === null)
|
|
3428
|
+
if (currentNode !== root && getParentNode(currentNode) === null) {
|
|
3429
|
+
if (IN_PLACE) _neutralizeSubtree(currentNode);
|
|
3430
|
+
return true;
|
|
3431
|
+
}
|
|
3404
3432
|
if (_isUnsafeNode(currentNode, tagName)) {
|
|
3405
3433
|
_forceRemove(currentNode);
|
|
3406
3434
|
return true;
|
|
3407
3435
|
}
|
|
3408
3436
|
if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
|
|
3409
|
-
const removed = _sanitizeDisallowedNode(currentNode, tagName);
|
|
3437
|
+
const removed = _sanitizeDisallowedNode(currentNode, tagName, root);
|
|
3410
3438
|
if (removed === false) _executeHooks(hooks.afterSanitizeElements, currentNode, null);
|
|
3411
3439
|
return removed;
|
|
3412
3440
|
}
|
|
@@ -3530,6 +3558,7 @@ function createDOMPurify() {
|
|
|
3530
3558
|
_executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
|
|
3531
3559
|
const attributes = currentNode.attributes;
|
|
3532
3560
|
if (!attributes || _isClobbered(currentNode)) return;
|
|
3561
|
+
ALLOWED_ATTR = _forkSharedAllowlist(hooks.uponSanitizeAttribute, ALLOWED_ATTR, DEFAULT_ALLOWED_ATTR, SET_CONFIG_ALLOWED_ATTR);
|
|
3533
3562
|
const hookEvent = {
|
|
3534
3563
|
attrName: "",
|
|
3535
3564
|
attrValue: "",
|
|
@@ -3720,8 +3749,8 @@ function createDOMPurify() {
|
|
|
3720
3749
|
}
|
|
3721
3750
|
if (body && FORCE_BODY) _forceRemove(body.firstChild);
|
|
3722
3751
|
const walkRoot = inPlace ? dirty : body;
|
|
3723
|
-
const nodeIterator = _createNodeIterator(walkRoot);
|
|
3724
3752
|
try {
|
|
3753
|
+
const nodeIterator = _createNodeIterator(walkRoot);
|
|
3725
3754
|
while (currentNode = nodeIterator.nextNode()) {
|
|
3726
3755
|
_sanitizeElements(currentNode, walkRoot);
|
|
3727
3756
|
_sanitizeAttributes(currentNode);
|
|
@@ -5488,7 +5517,7 @@ var TableActionBar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
5488
5517
|
], 2)) : createCommentVNode("", true);
|
|
5489
5518
|
};
|
|
5490
5519
|
}
|
|
5491
|
-
}), [["__scopeId", "data-v-
|
|
5520
|
+
}), [["__scopeId", "data-v-206732ac"]]);
|
|
5492
5521
|
//#endregion
|
|
5493
5522
|
//#region src/components/composables/useHeaderMenuItems.ts
|
|
5494
5523
|
var useHeaderMenuItems = ({ enableSorting, sortDirection, sortTexts, additionalMenuItems, onColumnSort }) => {
|