@cumulus-ui/components 0.5.5 → 0.5.6
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/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +428 -41
- package/dist/internal/styles/s3-resource-selector-s3-in-context.d.ts +2 -0
- package/dist/internal/styles/s3-resource-selector-s3-in-context.d.ts.map +1 -0
- package/dist/internal/styles/s3-resource-selector-s3-modal.d.ts +2 -0
- package/dist/internal/styles/s3-resource-selector-s3-modal.d.ts.map +1 -0
- package/dist/s3-resource-selector/index.d.ts +5 -0
- package/dist/s3-resource-selector/index.d.ts.map +1 -0
- package/dist/s3-resource-selector/internal.d.ts +55 -0
- package/dist/s3-resource-selector/internal.d.ts.map +1 -0
- package/dist/s3-resource-selector/styles.d.ts +5 -0
- package/dist/s3-resource-selector/styles.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -160,4 +160,6 @@ export { CsItemCard } from './item-card/index.js';
|
|
|
160
160
|
export type { ItemCardProps } from './item-card/index.js';
|
|
161
161
|
export { CsPanelLayout } from './panel-layout/index.js';
|
|
162
162
|
export type { PanelLayoutProps } from './panel-layout/index.js';
|
|
163
|
+
export { CsS3ResourceSelector } from './s3-resource-selector/index.js';
|
|
164
|
+
export type { S3ResourceSelectorProps } from './s3-resource-selector/index.js';
|
|
163
165
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC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AE,MAAM,uBAAuB,CAAC;AACpD,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,YAAY,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,YAAY,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -64,8 +64,8 @@ function FormAssociatedMixin(superClass) {
|
|
|
64
64
|
this._defaultValue = this.value;
|
|
65
65
|
}
|
|
66
66
|
// ── Public API (thin wrappers around ElementInternals) ────────────
|
|
67
|
-
setFormValue(value,
|
|
68
|
-
this._internals.setFormValue(value,
|
|
67
|
+
setFormValue(value, state28) {
|
|
68
|
+
this._internals.setFormValue(value, state28);
|
|
69
69
|
}
|
|
70
70
|
setValidity(flags, message, anchor) {
|
|
71
71
|
if (flags && message) {
|
|
@@ -99,9 +99,9 @@ function FormAssociatedMixin(superClass) {
|
|
|
99
99
|
* @param state - Previously saved value or `FormData` entry.
|
|
100
100
|
* @param _mode - `'restore'` (bfcache) or `'autocomplete'`.
|
|
101
101
|
*/
|
|
102
|
-
formStateRestoreCallback(
|
|
103
|
-
if (typeof
|
|
104
|
-
this.value =
|
|
102
|
+
formStateRestoreCallback(state28, _mode) {
|
|
103
|
+
if (typeof state28 === "string") {
|
|
104
|
+
this.value = state28;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -6120,7 +6120,7 @@ function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
|
6120
6120
|
}
|
|
6121
6121
|
return coords;
|
|
6122
6122
|
}
|
|
6123
|
-
async function detectOverflow(
|
|
6123
|
+
async function detectOverflow(state28, options) {
|
|
6124
6124
|
var _await$platform$isEle;
|
|
6125
6125
|
if (options === void 0) {
|
|
6126
6126
|
options = {};
|
|
@@ -6132,14 +6132,14 @@ async function detectOverflow(state27, options) {
|
|
|
6132
6132
|
rects,
|
|
6133
6133
|
elements,
|
|
6134
6134
|
strategy
|
|
6135
|
-
} =
|
|
6135
|
+
} = state28;
|
|
6136
6136
|
const {
|
|
6137
6137
|
boundary = "clippingAncestors",
|
|
6138
6138
|
rootBoundary = "viewport",
|
|
6139
6139
|
elementContext = "floating",
|
|
6140
6140
|
altBoundary = false,
|
|
6141
6141
|
padding = 0
|
|
6142
|
-
} = evaluate(options,
|
|
6142
|
+
} = evaluate(options, state28);
|
|
6143
6143
|
const paddingObject = getPaddingObject(padding);
|
|
6144
6144
|
const altContext = elementContext === "floating" ? "reference" : "floating";
|
|
6145
6145
|
const element = elements[altBoundary ? altContext : elementContext];
|
|
@@ -6271,7 +6271,7 @@ var flip = function(options) {
|
|
|
6271
6271
|
return {
|
|
6272
6272
|
name: "flip",
|
|
6273
6273
|
options,
|
|
6274
|
-
async fn(
|
|
6274
|
+
async fn(state28) {
|
|
6275
6275
|
var _middlewareData$arrow, _middlewareData$flip;
|
|
6276
6276
|
const {
|
|
6277
6277
|
placement,
|
|
@@ -6280,7 +6280,7 @@ var flip = function(options) {
|
|
|
6280
6280
|
initialPlacement,
|
|
6281
6281
|
platform: platform2,
|
|
6282
6282
|
elements
|
|
6283
|
-
} =
|
|
6283
|
+
} = state28;
|
|
6284
6284
|
const {
|
|
6285
6285
|
mainAxis: checkMainAxis = true,
|
|
6286
6286
|
crossAxis: checkCrossAxis = true,
|
|
@@ -6289,7 +6289,7 @@ var flip = function(options) {
|
|
|
6289
6289
|
fallbackAxisSideDirection = "none",
|
|
6290
6290
|
flipAlignment = true,
|
|
6291
6291
|
...detectOverflowOptions
|
|
6292
|
-
} = evaluate(options,
|
|
6292
|
+
} = evaluate(options, state28);
|
|
6293
6293
|
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
6294
6294
|
return {};
|
|
6295
6295
|
}
|
|
@@ -6303,7 +6303,7 @@ var flip = function(options) {
|
|
|
6303
6303
|
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
6304
6304
|
}
|
|
6305
6305
|
const placements2 = [initialPlacement, ...fallbackPlacements];
|
|
6306
|
-
const overflow = await platform2.detectOverflow(
|
|
6306
|
+
const overflow = await platform2.detectOverflow(state28, detectOverflowOptions);
|
|
6307
6307
|
const overflows = [];
|
|
6308
6308
|
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
6309
6309
|
if (checkMainAxis) {
|
|
@@ -6374,19 +6374,19 @@ var flip = function(options) {
|
|
|
6374
6374
|
};
|
|
6375
6375
|
};
|
|
6376
6376
|
var originSides = /* @__PURE__ */ new Set(["left", "top"]);
|
|
6377
|
-
async function convertValueToCoords(
|
|
6377
|
+
async function convertValueToCoords(state28, options) {
|
|
6378
6378
|
const {
|
|
6379
6379
|
placement,
|
|
6380
6380
|
platform: platform2,
|
|
6381
6381
|
elements
|
|
6382
|
-
} =
|
|
6382
|
+
} = state28;
|
|
6383
6383
|
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
|
|
6384
6384
|
const side = getSide(placement);
|
|
6385
6385
|
const alignment = getAlignment(placement);
|
|
6386
6386
|
const isVertical = getSideAxis(placement) === "y";
|
|
6387
6387
|
const mainAxisMulti = originSides.has(side) ? -1 : 1;
|
|
6388
6388
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
6389
|
-
const rawValue = evaluate(options,
|
|
6389
|
+
const rawValue = evaluate(options, state28);
|
|
6390
6390
|
let {
|
|
6391
6391
|
mainAxis,
|
|
6392
6392
|
crossAxis,
|
|
@@ -6418,15 +6418,15 @@ var offset = function(options) {
|
|
|
6418
6418
|
return {
|
|
6419
6419
|
name: "offset",
|
|
6420
6420
|
options,
|
|
6421
|
-
async fn(
|
|
6421
|
+
async fn(state28) {
|
|
6422
6422
|
var _middlewareData$offse, _middlewareData$arrow;
|
|
6423
6423
|
const {
|
|
6424
6424
|
x,
|
|
6425
6425
|
y,
|
|
6426
6426
|
placement,
|
|
6427
6427
|
middlewareData
|
|
6428
|
-
} =
|
|
6429
|
-
const diffCoords = await convertValueToCoords(
|
|
6428
|
+
} = state28;
|
|
6429
|
+
const diffCoords = await convertValueToCoords(state28, options);
|
|
6430
6430
|
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
6431
6431
|
return {};
|
|
6432
6432
|
}
|
|
@@ -6448,13 +6448,13 @@ var shift = function(options) {
|
|
|
6448
6448
|
return {
|
|
6449
6449
|
name: "shift",
|
|
6450
6450
|
options,
|
|
6451
|
-
async fn(
|
|
6451
|
+
async fn(state28) {
|
|
6452
6452
|
const {
|
|
6453
6453
|
x,
|
|
6454
6454
|
y,
|
|
6455
6455
|
placement,
|
|
6456
6456
|
platform: platform2
|
|
6457
|
-
} =
|
|
6457
|
+
} = state28;
|
|
6458
6458
|
const {
|
|
6459
6459
|
mainAxis: checkMainAxis = true,
|
|
6460
6460
|
crossAxis: checkCrossAxis = false,
|
|
@@ -6471,12 +6471,12 @@ var shift = function(options) {
|
|
|
6471
6471
|
}
|
|
6472
6472
|
},
|
|
6473
6473
|
...detectOverflowOptions
|
|
6474
|
-
} = evaluate(options,
|
|
6474
|
+
} = evaluate(options, state28);
|
|
6475
6475
|
const coords = {
|
|
6476
6476
|
x,
|
|
6477
6477
|
y
|
|
6478
6478
|
};
|
|
6479
|
-
const overflow = await platform2.detectOverflow(
|
|
6479
|
+
const overflow = await platform2.detectOverflow(state28, detectOverflowOptions);
|
|
6480
6480
|
const crossAxis = getSideAxis(getSide(placement));
|
|
6481
6481
|
const mainAxis = getOppositeAxis(crossAxis);
|
|
6482
6482
|
let mainAxisCoord = coords[mainAxis];
|
|
@@ -6496,7 +6496,7 @@ var shift = function(options) {
|
|
|
6496
6496
|
crossAxisCoord = clamp(min2, crossAxisCoord, max2);
|
|
6497
6497
|
}
|
|
6498
6498
|
const limitedCoords = limiter.fn({
|
|
6499
|
-
...
|
|
6499
|
+
...state28,
|
|
6500
6500
|
[mainAxis]: mainAxisCoord,
|
|
6501
6501
|
[crossAxis]: crossAxisCoord
|
|
6502
6502
|
});
|
|
@@ -6587,8 +6587,8 @@ var containRe = /paint|layout|strict|content/;
|
|
|
6587
6587
|
var isNotNone = (value) => !!value && value !== "none";
|
|
6588
6588
|
var isWebKitValue;
|
|
6589
6589
|
function isContainingBlock(elementOrCss) {
|
|
6590
|
-
const
|
|
6591
|
-
return isNotNone(
|
|
6590
|
+
const css182 = isElement(elementOrCss) ? getComputedStyle2(elementOrCss) : elementOrCss;
|
|
6591
|
+
return isNotNone(css182.transform) || isNotNone(css182.translate) || isNotNone(css182.scale) || isNotNone(css182.rotate) || isNotNone(css182.perspective) || !isWebKit() && (isNotNone(css182.backdropFilter) || isNotNone(css182.filter)) || willChangeRe.test(css182.willChange || "") || containRe.test(css182.contain || "");
|
|
6592
6592
|
}
|
|
6593
6593
|
function getContainingBlock(element) {
|
|
6594
6594
|
let currentNode = getParentNode(element);
|
|
@@ -6673,9 +6673,9 @@ function getFrameElement(win) {
|
|
|
6673
6673
|
|
|
6674
6674
|
// node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
6675
6675
|
function getCssDimensions(element) {
|
|
6676
|
-
const
|
|
6677
|
-
let width = parseFloat(
|
|
6678
|
-
let height = parseFloat(
|
|
6676
|
+
const css182 = getComputedStyle2(element);
|
|
6677
|
+
let width = parseFloat(css182.width) || 0;
|
|
6678
|
+
let height = parseFloat(css182.height) || 0;
|
|
6679
6679
|
const hasOffset = isHTMLElement(element);
|
|
6680
6680
|
const offsetWidth = hasOffset ? element.offsetWidth : width;
|
|
6681
6681
|
const offsetHeight = hasOffset ? element.offsetHeight : height;
|
|
@@ -6769,9 +6769,9 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
6769
6769
|
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
6770
6770
|
const iframeScale = getScale(currentIFrame);
|
|
6771
6771
|
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
6772
|
-
const
|
|
6773
|
-
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(
|
|
6774
|
-
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(
|
|
6772
|
+
const css182 = getComputedStyle2(currentIFrame);
|
|
6773
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css182.paddingLeft)) * iframeScale.x;
|
|
6774
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css182.paddingTop)) * iframeScale.y;
|
|
6775
6775
|
x *= iframeScale.x;
|
|
6776
6776
|
y *= iframeScale.y;
|
|
6777
6777
|
width *= iframeScale.x;
|
|
@@ -6848,15 +6848,15 @@ function getClientRects(element) {
|
|
|
6848
6848
|
return Array.from(element.getClientRects());
|
|
6849
6849
|
}
|
|
6850
6850
|
function getDocumentRect(element) {
|
|
6851
|
-
const
|
|
6851
|
+
const html83 = getDocumentElement(element);
|
|
6852
6852
|
const scroll = getNodeScroll(element);
|
|
6853
6853
|
const body = element.ownerDocument.body;
|
|
6854
|
-
const width = max(
|
|
6855
|
-
const height = max(
|
|
6854
|
+
const width = max(html83.scrollWidth, html83.clientWidth, body.scrollWidth, body.clientWidth);
|
|
6855
|
+
const height = max(html83.scrollHeight, html83.clientHeight, body.scrollHeight, body.clientHeight);
|
|
6856
6856
|
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
6857
6857
|
const y = -scroll.scrollTop;
|
|
6858
6858
|
if (getComputedStyle2(body).direction === "rtl") {
|
|
6859
|
-
x += max(
|
|
6859
|
+
x += max(html83.clientWidth, body.clientWidth) - width;
|
|
6860
6860
|
}
|
|
6861
6861
|
return {
|
|
6862
6862
|
width,
|
|
@@ -6868,10 +6868,10 @@ function getDocumentRect(element) {
|
|
|
6868
6868
|
var SCROLLBAR_MAX = 25;
|
|
6869
6869
|
function getViewportRect(element, strategy) {
|
|
6870
6870
|
const win = getWindow(element);
|
|
6871
|
-
const
|
|
6871
|
+
const html83 = getDocumentElement(element);
|
|
6872
6872
|
const visualViewport = win.visualViewport;
|
|
6873
|
-
let width =
|
|
6874
|
-
let height =
|
|
6873
|
+
let width = html83.clientWidth;
|
|
6874
|
+
let height = html83.clientHeight;
|
|
6875
6875
|
let x = 0;
|
|
6876
6876
|
let y = 0;
|
|
6877
6877
|
if (visualViewport) {
|
|
@@ -6883,13 +6883,13 @@ function getViewportRect(element, strategy) {
|
|
|
6883
6883
|
y = visualViewport.offsetTop;
|
|
6884
6884
|
}
|
|
6885
6885
|
}
|
|
6886
|
-
const windowScrollbarX = getWindowScrollBarX(
|
|
6886
|
+
const windowScrollbarX = getWindowScrollBarX(html83);
|
|
6887
6887
|
if (windowScrollbarX <= 0) {
|
|
6888
|
-
const doc =
|
|
6888
|
+
const doc = html83.ownerDocument;
|
|
6889
6889
|
const body = doc.body;
|
|
6890
6890
|
const bodyStyles = getComputedStyle(body);
|
|
6891
6891
|
const bodyMarginInline = doc.compatMode === "CSS1Compat" ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
|
|
6892
|
-
const clippingStableScrollbarWidth = Math.abs(
|
|
6892
|
+
const clippingStableScrollbarWidth = Math.abs(html83.clientWidth - body.clientWidth - bodyMarginInline);
|
|
6893
6893
|
if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
|
|
6894
6894
|
width -= clippingStableScrollbarWidth;
|
|
6895
6895
|
}
|
|
@@ -30685,6 +30685,392 @@ __decorateClass([
|
|
|
30685
30685
|
var CsPanelLayout = class extends CsPanelLayoutInternal {
|
|
30686
30686
|
};
|
|
30687
30687
|
customElements.define("cs-panel-layout", CsPanelLayout);
|
|
30688
|
+
|
|
30689
|
+
// src/s3-resource-selector/internal.ts
|
|
30690
|
+
import { css as css181, html as html82, nothing as nothing47 } from "lit";
|
|
30691
|
+
import { property as property81, state as state27 } from "lit/decorators.js";
|
|
30692
|
+
|
|
30693
|
+
// src/s3-resource-selector/styles.ts
|
|
30694
|
+
import { css as css180 } from "lit";
|
|
30695
|
+
var componentStyles78 = css180`
|
|
30696
|
+
|
|
30697
|
+
`;
|
|
30698
|
+
|
|
30699
|
+
// src/s3-resource-selector/internal.ts
|
|
30700
|
+
var hostStyles80 = css181`:host { display: block; }`;
|
|
30701
|
+
var CsS3ResourceSelectorInternal = class extends CsBaseElement {
|
|
30702
|
+
constructor() {
|
|
30703
|
+
super(...arguments);
|
|
30704
|
+
this.resource = { uri: "" };
|
|
30705
|
+
this.invalid = false;
|
|
30706
|
+
this._modalOpen = false;
|
|
30707
|
+
this._uri = "";
|
|
30708
|
+
this._currentLevel = "buckets";
|
|
30709
|
+
this._currentPath = [];
|
|
30710
|
+
this._items = [];
|
|
30711
|
+
this._loading = false;
|
|
30712
|
+
this._selectedItems = [];
|
|
30713
|
+
this._onUriChange = (e) => {
|
|
30714
|
+
e.stopPropagation();
|
|
30715
|
+
const uri = e.detail.value;
|
|
30716
|
+
this._uri = uri;
|
|
30717
|
+
const detail = {
|
|
30718
|
+
resource: { uri }
|
|
30719
|
+
};
|
|
30720
|
+
fireNonCancelableEvent(this, "change", detail);
|
|
30721
|
+
};
|
|
30722
|
+
this._openModal = () => {
|
|
30723
|
+
this._modalOpen = true;
|
|
30724
|
+
this._currentLevel = "buckets";
|
|
30725
|
+
this._currentPath = [];
|
|
30726
|
+
this._items = [];
|
|
30727
|
+
this._selectedItems = [];
|
|
30728
|
+
this._loadBuckets();
|
|
30729
|
+
};
|
|
30730
|
+
this._closeModal = () => {
|
|
30731
|
+
this._modalOpen = false;
|
|
30732
|
+
this._items = [];
|
|
30733
|
+
this._selectedItems = [];
|
|
30734
|
+
};
|
|
30735
|
+
this._confirmSelection = () => {
|
|
30736
|
+
if (this._selectedItems.length === 0) return;
|
|
30737
|
+
const selected = this._selectedItems[0];
|
|
30738
|
+
let uri = "";
|
|
30739
|
+
if (this._currentLevel === "buckets") {
|
|
30740
|
+
uri = `s3://${selected.Name}`;
|
|
30741
|
+
} else if (this._currentLevel === "objects") {
|
|
30742
|
+
const bucket = this._currentPath[0];
|
|
30743
|
+
const key = selected.Key ?? "";
|
|
30744
|
+
uri = `s3://${bucket}/${key}`;
|
|
30745
|
+
} else if (this._currentLevel === "versions") {
|
|
30746
|
+
const bucket = this._currentPath[0];
|
|
30747
|
+
const prefix = this._currentPath.slice(1).join("/");
|
|
30748
|
+
uri = `s3://${bucket}/${prefix}`;
|
|
30749
|
+
}
|
|
30750
|
+
this._uri = uri;
|
|
30751
|
+
this._modalOpen = false;
|
|
30752
|
+
const detail = { resource: { uri } };
|
|
30753
|
+
fireNonCancelableEvent(this, "change", detail);
|
|
30754
|
+
};
|
|
30755
|
+
this._onSelectionChange = (e) => {
|
|
30756
|
+
e.stopPropagation();
|
|
30757
|
+
this._selectedItems = e.detail.selectedItems;
|
|
30758
|
+
};
|
|
30759
|
+
this._onRowClick = (e) => {
|
|
30760
|
+
e.stopPropagation();
|
|
30761
|
+
const item = e.detail.item;
|
|
30762
|
+
if (this._currentLevel === "buckets") {
|
|
30763
|
+
const bucketName = item.Name ?? "";
|
|
30764
|
+
this._currentLevel = "objects";
|
|
30765
|
+
this._currentPath = [bucketName];
|
|
30766
|
+
this._selectedItems = [];
|
|
30767
|
+
this._loadObjects(bucketName, "");
|
|
30768
|
+
} else if (this._currentLevel === "objects") {
|
|
30769
|
+
const obj = item;
|
|
30770
|
+
if (obj.IsFolder) {
|
|
30771
|
+
const key = obj.Key ?? "";
|
|
30772
|
+
this._currentPath = [...this._currentPath.slice(0, 1), ...key.split("/").filter(Boolean)];
|
|
30773
|
+
this._selectedItems = [];
|
|
30774
|
+
const prefix = this._currentPath.slice(1).join("/") + "/";
|
|
30775
|
+
this._loadObjects(this._currentPath[0], prefix);
|
|
30776
|
+
}
|
|
30777
|
+
}
|
|
30778
|
+
};
|
|
30779
|
+
this._onBreadcrumbFollow = (e) => {
|
|
30780
|
+
e.stopPropagation();
|
|
30781
|
+
const item = e.detail.item;
|
|
30782
|
+
if (item.href === "/") {
|
|
30783
|
+
this._currentLevel = "buckets";
|
|
30784
|
+
this._currentPath = [];
|
|
30785
|
+
this._selectedItems = [];
|
|
30786
|
+
this._loadBuckets();
|
|
30787
|
+
} else {
|
|
30788
|
+
const depth = parseInt(item.href.replace("/path/", ""), 10);
|
|
30789
|
+
if (!isNaN(depth)) {
|
|
30790
|
+
this._currentPath = this._currentPath.slice(0, depth + 1);
|
|
30791
|
+
this._currentLevel = "objects";
|
|
30792
|
+
this._selectedItems = [];
|
|
30793
|
+
const prefix = this._currentPath.slice(1).join("/");
|
|
30794
|
+
this._loadObjects(this._currentPath[0], prefix ? prefix + "/" : "");
|
|
30795
|
+
}
|
|
30796
|
+
}
|
|
30797
|
+
};
|
|
30798
|
+
}
|
|
30799
|
+
static {
|
|
30800
|
+
this.styles = [sharedStyles, componentStyles78, hostStyles80];
|
|
30801
|
+
}
|
|
30802
|
+
willUpdate(changed) {
|
|
30803
|
+
if (changed.has("resource")) {
|
|
30804
|
+
this._uri = this.resource.uri;
|
|
30805
|
+
}
|
|
30806
|
+
}
|
|
30807
|
+
focus() {
|
|
30808
|
+
const input = this.shadowRoot?.querySelector("cs-input");
|
|
30809
|
+
input?.focus();
|
|
30810
|
+
}
|
|
30811
|
+
async _loadBuckets() {
|
|
30812
|
+
if (!this.fetchBuckets) {
|
|
30813
|
+
this._items = [];
|
|
30814
|
+
return;
|
|
30815
|
+
}
|
|
30816
|
+
this._loading = true;
|
|
30817
|
+
try {
|
|
30818
|
+
const buckets = await this.fetchBuckets();
|
|
30819
|
+
this._items = buckets;
|
|
30820
|
+
} catch {
|
|
30821
|
+
this._items = [];
|
|
30822
|
+
} finally {
|
|
30823
|
+
this._loading = false;
|
|
30824
|
+
}
|
|
30825
|
+
}
|
|
30826
|
+
async _loadObjects(bucket, prefix) {
|
|
30827
|
+
if (!this.fetchObjects) {
|
|
30828
|
+
this._items = [];
|
|
30829
|
+
return;
|
|
30830
|
+
}
|
|
30831
|
+
this._loading = true;
|
|
30832
|
+
try {
|
|
30833
|
+
const objects = await this.fetchObjects(bucket, prefix);
|
|
30834
|
+
this._items = objects;
|
|
30835
|
+
} catch {
|
|
30836
|
+
this._items = [];
|
|
30837
|
+
} finally {
|
|
30838
|
+
this._loading = false;
|
|
30839
|
+
}
|
|
30840
|
+
}
|
|
30841
|
+
get _breadcrumbs() {
|
|
30842
|
+
const root = this.i18nStrings?.modalBreadcrumbRootItem ?? "S3";
|
|
30843
|
+
const items = [{ text: root, href: "/" }];
|
|
30844
|
+
this._currentPath.forEach((segment, i) => {
|
|
30845
|
+
items.push({ text: segment, href: `/path/${i}` });
|
|
30846
|
+
});
|
|
30847
|
+
return items;
|
|
30848
|
+
}
|
|
30849
|
+
get _columnDefinitions() {
|
|
30850
|
+
const strings = this.i18nStrings;
|
|
30851
|
+
if (this._currentLevel === "buckets") {
|
|
30852
|
+
return [
|
|
30853
|
+
{
|
|
30854
|
+
id: "Name",
|
|
30855
|
+
header: strings?.columnBucketName ?? "Name",
|
|
30856
|
+
cell: (item) => item.Name ?? "",
|
|
30857
|
+
sortingField: "Name"
|
|
30858
|
+
},
|
|
30859
|
+
{
|
|
30860
|
+
id: "CreationDate",
|
|
30861
|
+
header: strings?.columnBucketCreationDate ?? "Creation date",
|
|
30862
|
+
cell: (item) => item.CreationDate ?? ""
|
|
30863
|
+
}
|
|
30864
|
+
];
|
|
30865
|
+
}
|
|
30866
|
+
if (this._currentLevel === "objects") {
|
|
30867
|
+
return [
|
|
30868
|
+
{
|
|
30869
|
+
id: "Key",
|
|
30870
|
+
header: strings?.columnObjectKey ?? "Key",
|
|
30871
|
+
cell: (item) => item.Key ?? "",
|
|
30872
|
+
sortingField: "Key"
|
|
30873
|
+
},
|
|
30874
|
+
{
|
|
30875
|
+
id: "LastModified",
|
|
30876
|
+
header: strings?.columnObjectLastModified ?? "Last modified",
|
|
30877
|
+
cell: (item) => item.LastModified ?? ""
|
|
30878
|
+
},
|
|
30879
|
+
{
|
|
30880
|
+
id: "Size",
|
|
30881
|
+
header: strings?.columnObjectSize ?? "Size",
|
|
30882
|
+
cell: (item) => {
|
|
30883
|
+
const size2 = item.Size;
|
|
30884
|
+
return size2 !== void 0 ? String(size2) : "";
|
|
30885
|
+
}
|
|
30886
|
+
}
|
|
30887
|
+
];
|
|
30888
|
+
}
|
|
30889
|
+
return [
|
|
30890
|
+
{
|
|
30891
|
+
id: "VersionId",
|
|
30892
|
+
header: strings?.columnVersionID ?? "Version ID",
|
|
30893
|
+
cell: (item) => item.VersionId ?? "",
|
|
30894
|
+
sortingField: "VersionId"
|
|
30895
|
+
},
|
|
30896
|
+
{
|
|
30897
|
+
id: "LastModified",
|
|
30898
|
+
header: strings?.columnVersionLastModified ?? "Last modified",
|
|
30899
|
+
cell: (item) => item.LastModified ?? ""
|
|
30900
|
+
},
|
|
30901
|
+
{
|
|
30902
|
+
id: "Size",
|
|
30903
|
+
header: strings?.columnVersionSize ?? "Size",
|
|
30904
|
+
cell: (item) => {
|
|
30905
|
+
const size2 = item.Size;
|
|
30906
|
+
return size2 !== void 0 ? String(size2) : "";
|
|
30907
|
+
}
|
|
30908
|
+
}
|
|
30909
|
+
];
|
|
30910
|
+
}
|
|
30911
|
+
get _selectionType() {
|
|
30912
|
+
if (!this.selectableItemsTypes) return void 0;
|
|
30913
|
+
if (this._currentLevel === "buckets" && this.selectableItemsTypes.includes("buckets")) return "single";
|
|
30914
|
+
if (this._currentLevel === "objects" && this.selectableItemsTypes.includes("objects")) return "single";
|
|
30915
|
+
if (this._currentLevel === "versions" && this.selectableItemsTypes.includes("versions")) return "single";
|
|
30916
|
+
return void 0;
|
|
30917
|
+
}
|
|
30918
|
+
get _tableHeaderText() {
|
|
30919
|
+
const strings = this.i18nStrings;
|
|
30920
|
+
if (this._currentLevel === "buckets") return strings?.selectionBuckets ?? "Buckets";
|
|
30921
|
+
if (this._currentLevel === "objects") return strings?.selectionObjects ?? "Objects";
|
|
30922
|
+
return strings?.selectionVersions ?? "Versions";
|
|
30923
|
+
}
|
|
30924
|
+
get _loadingText() {
|
|
30925
|
+
const strings = this.i18nStrings;
|
|
30926
|
+
if (this._currentLevel === "buckets") return strings?.selectionBucketsLoading ?? "Loading buckets";
|
|
30927
|
+
if (this._currentLevel === "objects") return strings?.selectionObjectsLoading ?? "Loading objects";
|
|
30928
|
+
return strings?.selectionVersionsLoading ?? "Loading versions";
|
|
30929
|
+
}
|
|
30930
|
+
get _emptyText() {
|
|
30931
|
+
const strings = this.i18nStrings;
|
|
30932
|
+
if (this._currentLevel === "buckets") return strings?.selectionBucketsNoItems ?? "No buckets";
|
|
30933
|
+
if (this._currentLevel === "objects") return strings?.selectionObjectsNoItems ?? "No objects";
|
|
30934
|
+
return strings?.selectionVersionsNoItems ?? "No versions";
|
|
30935
|
+
}
|
|
30936
|
+
render() {
|
|
30937
|
+
const strings = this.i18nStrings;
|
|
30938
|
+
const browseLabel = strings?.inContextBrowseButton ?? "Browse S3";
|
|
30939
|
+
const modalTitle = strings?.modalTitle ?? "Choose resource from S3";
|
|
30940
|
+
const cancelLabel = strings?.modalCancelButton ?? "Cancel";
|
|
30941
|
+
const submitLabel = strings?.modalSubmitButton ?? "Select";
|
|
30942
|
+
const placeholder = this.inputPlaceholder ?? strings?.inContextInputPlaceholder ?? "s3://bucket/prefix/object";
|
|
30943
|
+
return html82`
|
|
30944
|
+
<div class="root">
|
|
30945
|
+
<div class="input-row" style="display:flex;gap:8px;align-items:flex-start">
|
|
30946
|
+
<cs-input
|
|
30947
|
+
.value=${this._uri}
|
|
30948
|
+
placeholder=${placeholder}
|
|
30949
|
+
?invalid=${this.invalid}
|
|
30950
|
+
aria-describedby=${this.inputAriaDescribedby ?? nothing47}
|
|
30951
|
+
@change=${this._onUriChange}
|
|
30952
|
+
style="flex:1"
|
|
30953
|
+
></cs-input>
|
|
30954
|
+
<cs-button @click=${this._openModal}>${browseLabel}</cs-button>
|
|
30955
|
+
${this.viewHref ? html82`<cs-button variant="normal" href=${this.viewHref}>${strings?.inContextViewButton ?? "View"}</cs-button>` : nothing47}
|
|
30956
|
+
</div>
|
|
30957
|
+
|
|
30958
|
+
<slot name="alert"></slot>
|
|
30959
|
+
|
|
30960
|
+
<cs-modal
|
|
30961
|
+
size="large"
|
|
30962
|
+
header=${modalTitle}
|
|
30963
|
+
.visible=${this._modalOpen}
|
|
30964
|
+
@dismiss=${this._closeModal}
|
|
30965
|
+
>
|
|
30966
|
+
<cs-breadcrumb-group
|
|
30967
|
+
.items=${this._breadcrumbs}
|
|
30968
|
+
@follow=${this._onBreadcrumbFollow}
|
|
30969
|
+
></cs-breadcrumb-group>
|
|
30970
|
+
|
|
30971
|
+
<cs-table
|
|
30972
|
+
.items=${this._items}
|
|
30973
|
+
.columnDefinitions=${this._columnDefinitions}
|
|
30974
|
+
.loading=${this._loading}
|
|
30975
|
+
loading-text=${this._loadingText}
|
|
30976
|
+
.selectionType=${this._selectionType}
|
|
30977
|
+
.selectedItems=${this._selectedItems}
|
|
30978
|
+
@selectionChange=${this._onSelectionChange}
|
|
30979
|
+
@rowClick=${this._onRowClick}
|
|
30980
|
+
>
|
|
30981
|
+
<cs-header slot="header" counter=${`(${this._items.length})`}>
|
|
30982
|
+
${this._tableHeaderText}
|
|
30983
|
+
</cs-header>
|
|
30984
|
+
<div slot="empty">${this._emptyText}</div>
|
|
30985
|
+
</cs-table>
|
|
30986
|
+
|
|
30987
|
+
<div slot="footer" style="display:flex;justify-content:flex-end;gap:8px">
|
|
30988
|
+
<cs-button variant="link" @click=${this._closeModal}>${cancelLabel}</cs-button>
|
|
30989
|
+
<cs-button
|
|
30990
|
+
variant="primary"
|
|
30991
|
+
@click=${this._confirmSelection}
|
|
30992
|
+
?disabled=${this._selectedItems.length === 0}
|
|
30993
|
+
>${submitLabel}</cs-button>
|
|
30994
|
+
</div>
|
|
30995
|
+
</cs-modal>
|
|
30996
|
+
</div>
|
|
30997
|
+
`;
|
|
30998
|
+
}
|
|
30999
|
+
};
|
|
31000
|
+
__decorateClass([
|
|
31001
|
+
property81({ attribute: false })
|
|
31002
|
+
], CsS3ResourceSelectorInternal.prototype, "resource", 2);
|
|
31003
|
+
__decorateClass([
|
|
31004
|
+
property81({ type: String })
|
|
31005
|
+
], CsS3ResourceSelectorInternal.prototype, "inputAriaDescribedby", 2);
|
|
31006
|
+
__decorateClass([
|
|
31007
|
+
property81({ type: String })
|
|
31008
|
+
], CsS3ResourceSelectorInternal.prototype, "inputPlaceholder", 2);
|
|
31009
|
+
__decorateClass([
|
|
31010
|
+
property81({ type: Boolean })
|
|
31011
|
+
], CsS3ResourceSelectorInternal.prototype, "invalid", 2);
|
|
31012
|
+
__decorateClass([
|
|
31013
|
+
property81({ type: String })
|
|
31014
|
+
], CsS3ResourceSelectorInternal.prototype, "viewHref", 2);
|
|
31015
|
+
__decorateClass([
|
|
31016
|
+
property81({ attribute: false })
|
|
31017
|
+
], CsS3ResourceSelectorInternal.prototype, "selectableItemsTypes", 2);
|
|
31018
|
+
__decorateClass([
|
|
31019
|
+
property81({ attribute: false })
|
|
31020
|
+
], CsS3ResourceSelectorInternal.prototype, "bucketsVisibleColumns", 2);
|
|
31021
|
+
__decorateClass([
|
|
31022
|
+
property81({ attribute: false })
|
|
31023
|
+
], CsS3ResourceSelectorInternal.prototype, "objectsVisibleColumns", 2);
|
|
31024
|
+
__decorateClass([
|
|
31025
|
+
property81({ attribute: false })
|
|
31026
|
+
], CsS3ResourceSelectorInternal.prototype, "versionsVisibleColumns", 2);
|
|
31027
|
+
__decorateClass([
|
|
31028
|
+
property81({ attribute: false })
|
|
31029
|
+
], CsS3ResourceSelectorInternal.prototype, "bucketsIsItemDisabled", 2);
|
|
31030
|
+
__decorateClass([
|
|
31031
|
+
property81({ attribute: false })
|
|
31032
|
+
], CsS3ResourceSelectorInternal.prototype, "objectsIsItemDisabled", 2);
|
|
31033
|
+
__decorateClass([
|
|
31034
|
+
property81({ attribute: false })
|
|
31035
|
+
], CsS3ResourceSelectorInternal.prototype, "versionsIsItemDisabled", 2);
|
|
31036
|
+
__decorateClass([
|
|
31037
|
+
property81({ attribute: false })
|
|
31038
|
+
], CsS3ResourceSelectorInternal.prototype, "fetchBuckets", 2);
|
|
31039
|
+
__decorateClass([
|
|
31040
|
+
property81({ attribute: false })
|
|
31041
|
+
], CsS3ResourceSelectorInternal.prototype, "fetchObjects", 2);
|
|
31042
|
+
__decorateClass([
|
|
31043
|
+
property81({ attribute: false })
|
|
31044
|
+
], CsS3ResourceSelectorInternal.prototype, "fetchVersions", 2);
|
|
31045
|
+
__decorateClass([
|
|
31046
|
+
property81({ attribute: false })
|
|
31047
|
+
], CsS3ResourceSelectorInternal.prototype, "i18nStrings", 2);
|
|
31048
|
+
__decorateClass([
|
|
31049
|
+
state27()
|
|
31050
|
+
], CsS3ResourceSelectorInternal.prototype, "_modalOpen", 2);
|
|
31051
|
+
__decorateClass([
|
|
31052
|
+
state27()
|
|
31053
|
+
], CsS3ResourceSelectorInternal.prototype, "_uri", 2);
|
|
31054
|
+
__decorateClass([
|
|
31055
|
+
state27()
|
|
31056
|
+
], CsS3ResourceSelectorInternal.prototype, "_currentLevel", 2);
|
|
31057
|
+
__decorateClass([
|
|
31058
|
+
state27()
|
|
31059
|
+
], CsS3ResourceSelectorInternal.prototype, "_currentPath", 2);
|
|
31060
|
+
__decorateClass([
|
|
31061
|
+
state27()
|
|
31062
|
+
], CsS3ResourceSelectorInternal.prototype, "_items", 2);
|
|
31063
|
+
__decorateClass([
|
|
31064
|
+
state27()
|
|
31065
|
+
], CsS3ResourceSelectorInternal.prototype, "_loading", 2);
|
|
31066
|
+
__decorateClass([
|
|
31067
|
+
state27()
|
|
31068
|
+
], CsS3ResourceSelectorInternal.prototype, "_selectedItems", 2);
|
|
31069
|
+
|
|
31070
|
+
// src/s3-resource-selector/index.ts
|
|
31071
|
+
var CsS3ResourceSelector = class extends CsS3ResourceSelectorInternal {
|
|
31072
|
+
};
|
|
31073
|
+
customElements.define("cs-s3-resource-selector", CsS3ResourceSelector);
|
|
30688
31074
|
export {
|
|
30689
31075
|
CsAlert,
|
|
30690
31076
|
CsAnchorNavigation,
|
|
@@ -30741,6 +31127,7 @@ export {
|
|
|
30741
31127
|
CsPromptInput,
|
|
30742
31128
|
CsPropertyFilter,
|
|
30743
31129
|
CsRadioGroup,
|
|
31130
|
+
CsS3ResourceSelector,
|
|
30744
31131
|
CsSegmentedControl,
|
|
30745
31132
|
CsSelect,
|
|
30746
31133
|
CsSideNavigation,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"s3-resource-selector-s3-in-context.d.ts","sourceRoot":"","sources":["../../../src/internal/styles/s3-resource-selector-s3-in-context.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mCAAmC,yBA0B/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"s3-resource-selector-s3-modal.d.ts","sourceRoot":"","sources":["../../../src/internal/styles/s3-resource-selector-s3-modal.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,+BAA+B,yBAY3C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/s3-resource-selector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAE7D,qBAAa,oBAAqB,SAAQ,4BAA4B;CAAG;AAIzE,YAAY,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { type TemplateResult } from 'lit';
|
|
2
|
+
import { CsBaseElement } from '../internal/base-element.js';
|
|
3
|
+
import type { S3ResourceSelectorProps } from './interfaces.js';
|
|
4
|
+
import '../input/index.js';
|
|
5
|
+
import '../button/index.js';
|
|
6
|
+
import '../modal/index.js';
|
|
7
|
+
import '../breadcrumb-group/index.js';
|
|
8
|
+
import '../table/index.js';
|
|
9
|
+
import '../header/index.js';
|
|
10
|
+
import '../alert/index.js';
|
|
11
|
+
export declare class CsS3ResourceSelectorInternal extends CsBaseElement {
|
|
12
|
+
static styles: import("lit").CSSResult[];
|
|
13
|
+
resource: S3ResourceSelectorProps.Resource;
|
|
14
|
+
inputAriaDescribedby?: string;
|
|
15
|
+
inputPlaceholder?: string;
|
|
16
|
+
invalid: boolean;
|
|
17
|
+
viewHref?: string;
|
|
18
|
+
selectableItemsTypes?: ReadonlyArray<S3ResourceSelectorProps.SelectableItems>;
|
|
19
|
+
bucketsVisibleColumns?: ReadonlyArray<string>;
|
|
20
|
+
objectsVisibleColumns?: ReadonlyArray<string>;
|
|
21
|
+
versionsVisibleColumns?: ReadonlyArray<string>;
|
|
22
|
+
bucketsIsItemDisabled?: (item: S3ResourceSelectorProps.Bucket) => boolean;
|
|
23
|
+
objectsIsItemDisabled?: (item: S3ResourceSelectorProps.Object) => boolean;
|
|
24
|
+
versionsIsItemDisabled?: (item: S3ResourceSelectorProps.Version) => boolean;
|
|
25
|
+
fetchBuckets?: () => Promise<ReadonlyArray<S3ResourceSelectorProps.Bucket>>;
|
|
26
|
+
fetchObjects?: (bucketName: string, pathPrefix: string) => Promise<ReadonlyArray<S3ResourceSelectorProps.Object>>;
|
|
27
|
+
fetchVersions?: (bucketName: string, pathPrefix: string) => Promise<ReadonlyArray<S3ResourceSelectorProps.Version>>;
|
|
28
|
+
i18nStrings?: S3ResourceSelectorProps.I18nStrings;
|
|
29
|
+
private _modalOpen;
|
|
30
|
+
private _uri;
|
|
31
|
+
private _currentLevel;
|
|
32
|
+
private _currentPath;
|
|
33
|
+
private _items;
|
|
34
|
+
private _loading;
|
|
35
|
+
private _selectedItems;
|
|
36
|
+
willUpdate(changed: Map<PropertyKey, unknown>): void;
|
|
37
|
+
focus(): void;
|
|
38
|
+
private _onUriChange;
|
|
39
|
+
private _openModal;
|
|
40
|
+
private _closeModal;
|
|
41
|
+
private _confirmSelection;
|
|
42
|
+
private _loadBuckets;
|
|
43
|
+
private _loadObjects;
|
|
44
|
+
private _onSelectionChange;
|
|
45
|
+
private _onRowClick;
|
|
46
|
+
private _onBreadcrumbFollow;
|
|
47
|
+
private get _breadcrumbs();
|
|
48
|
+
private get _columnDefinitions();
|
|
49
|
+
private get _selectionType();
|
|
50
|
+
private get _tableHeaderText();
|
|
51
|
+
private get _loadingText();
|
|
52
|
+
private get _emptyText();
|
|
53
|
+
render(): TemplateResult;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../src/s3-resource-selector/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAG/D,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;A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