@xlabs-store/core 0.0.2 → 0.0.3
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/components/index.js +1 -1
- package/components/p-CQ2VND9-.js +1 -0
- package/components/p-CQQI-pRu.js +1 -0
- package/components/p-CkwLFDlS.js +1 -0
- package/components/p-CzHtwC1k.js +1 -0
- package/components/{p-BlvrLhyv.js → p-DqayamUz.js} +1 -1
- package/components/x-form-builder.js +1 -1
- package/components/x-icon-picker-dropdown-content.js +1 -1
- package/components/x-input-icon.js +1 -1
- package/components/x-login.js +1 -1
- package/components/x-table.js +1 -1
- package/dist/cjs/icons-BfHE2jcr.js +19261 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{schema-builder-BKX4QdTc.js → schema-builder-DAwDwgIM.js} +98 -14
- package/dist/cjs/x-address_51.cjs.entry.js +115 -11
- package/dist/cjs/x-icon-picker-dropdown-content.cjs.entry.js +1 -1
- package/dist/collection/components/x-form-builder/services/schema/condition-builder.js +48 -6
- package/dist/collection/components/x-form-builder/services/schema/form-mapping.js +2 -2
- package/dist/collection/components/x-form-builder/utils/condition-engine.js +48 -6
- package/dist/collection/components/x-form-builder/x-form-builder.js +96 -6
- package/dist/collection/components/x-icon/icons.js +11462 -11492
- package/dist/collection/components/x-table/x-table.js +18 -4
- package/dist/esm/icons-CQ2VND9-.js +19259 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/{schema-builder-DlGEzg5B.js → schema-builder-CekbhOnD.js} +98 -14
- package/dist/esm/x-address_51.entry.js +115 -11
- package/dist/esm/x-icon-picker-dropdown-content.entry.js +1 -1
- package/dist/types/components/x-form-builder/types/common/field-types-enum.d.ts +1 -1
- package/dist/types/components/x-form-builder/types/fields/advanced-fields.d.ts +1 -0
- package/dist/types/components/x-form-builder/types/fields/form-field-union.d.ts +2 -2
- package/dist/types/components/x-form-builder/types/fields/layout-fields.d.ts +10 -1
- package/dist/types/components/x-form-builder/types/fields/special-input-fields.d.ts +3 -0
- package/dist/types/components/x-form-builder/x-form-builder.d.ts +2 -0
- package/dist/xlabs/index.esm.js +1 -1
- package/dist/xlabs/{p-45fda37b.entry.js → p-99c568fd.entry.js} +1 -1
- package/dist/xlabs/p-CQ2VND9-.js +1 -0
- package/dist/xlabs/p-CkwLFDlS.js +1 -0
- package/dist/xlabs/p-a4995e36.entry.js +1 -0
- package/dist/xlabs/xlabs.esm.js +1 -1
- package/package.json +1 -1
- package/components/p-BGNOiTqa.js +0 -1
- package/components/p-BgCjF74f.js +0 -1
- package/components/p-xf66Fag-.js +0 -1
- package/components/p-xzKm-BQN.js +0 -1
- package/dist/cjs/icons-DJ-kuboh.js +0 -19291
- package/dist/esm/icons-BgCjF74f.js +0 -19289
- package/dist/xlabs/p-239cf367.entry.js +0 -1
- package/dist/xlabs/p-BgCjF74f.js +0 -1
- package/dist/xlabs/p-xf66Fag-.js +0 -1
|
@@ -1009,6 +1009,9 @@ export class XTable {
|
|
|
1009
1009
|
if (column.maxWidth) {
|
|
1010
1010
|
style.maxWidth = `${column.maxWidth}px`;
|
|
1011
1011
|
}
|
|
1012
|
+
if (column.width) {
|
|
1013
|
+
style.width = typeof column.width === 'number' ? `${column.width}px` : column.width;
|
|
1014
|
+
}
|
|
1012
1015
|
// Sticky
|
|
1013
1016
|
// Find the leaf columns to determine sticky offsets
|
|
1014
1017
|
const leaves = ColumnUtil.getFlattenColumns([column]);
|
|
@@ -1202,6 +1205,9 @@ export class XTable {
|
|
|
1202
1205
|
cellContent = column.render ? column.render(value, record, index) : value;
|
|
1203
1206
|
}
|
|
1204
1207
|
const style = {};
|
|
1208
|
+
if (column.width) {
|
|
1209
|
+
style.width = typeof column.width === 'number' ? `${column.width}px` : column.width;
|
|
1210
|
+
}
|
|
1205
1211
|
// Sticky
|
|
1206
1212
|
const key = column.key || column.dataIndex;
|
|
1207
1213
|
const isFixedLeft = column.fixed === 'left' || column.fixed === true;
|
|
@@ -1404,10 +1410,17 @@ export class XTable {
|
|
|
1404
1410
|
*/
|
|
1405
1411
|
render() {
|
|
1406
1412
|
const scrollStyle = {};
|
|
1413
|
+
const innerTableStyle = {};
|
|
1407
1414
|
if (this.tableScroll?.x) {
|
|
1408
1415
|
scrollStyle.overflowX = 'auto';
|
|
1409
1416
|
if (typeof this.tableScroll.x === 'number') {
|
|
1410
|
-
|
|
1417
|
+
innerTableStyle.minWidth = `${this.tableScroll.x}px`;
|
|
1418
|
+
}
|
|
1419
|
+
else if (typeof this.tableScroll.x === 'string') {
|
|
1420
|
+
innerTableStyle.minWidth = this.tableScroll.x;
|
|
1421
|
+
}
|
|
1422
|
+
else if (this.tableScroll.x === true) {
|
|
1423
|
+
innerTableStyle.minWidth = 'max-content';
|
|
1411
1424
|
}
|
|
1412
1425
|
}
|
|
1413
1426
|
if (this.tableScroll?.y) {
|
|
@@ -1435,17 +1448,18 @@ export class XTable {
|
|
|
1435
1448
|
total,
|
|
1436
1449
|
startIndex,
|
|
1437
1450
|
});
|
|
1438
|
-
return (h(Host, { key: '
|
|
1451
|
+
return (h(Host, { key: '76c750528d53df24f767afdc0d53e90c901f113f', class: {
|
|
1439
1452
|
'x-table': true,
|
|
1440
1453
|
'x-table-bordered': this.bordered,
|
|
1441
1454
|
'x-table-loading': this.loading,
|
|
1442
1455
|
[`x-table-${this.size}`]: true,
|
|
1443
1456
|
'x-table-sticky': !!this.sticky || !!this.tableScroll?.y,
|
|
1444
1457
|
[this.classNames?.root || '']: !!this.classNames?.root,
|
|
1445
|
-
}, style: this.styles?.root }, h("div", { key: '
|
|
1458
|
+
}, style: this.styles?.root }, h("div", { key: '5af6bb4b50f3e790f1eb15d1c15c262f4ff8ea29', class: "x-table-wrapper" }, this.renderTitle(), topPagination && this.renderPagination('top'), h("div", { key: '71578d15387263765f1ef603520d2e7b668c1476', class: "x-table-container" }, this.loading && (h("div", { key: '17eaf05d5f7884e606a26c5ee64ad23bb495e0af', class: "x-table-loading-overlay" }, h("x-spin", { key: '69fe0249701f71a9dab737d54e6c848fdbce9111' }))), h("div", { key: '37d0f9e25159256389c8b137236ffd20c2575a88', class: "x-table-content", style: scrollStyle }, h("table", { key: '511af98bedf1b8fc0a2b2f1a07fb22b9d7d4675a', style: {
|
|
1446
1459
|
...tableStyle,
|
|
1460
|
+
...innerTableStyle,
|
|
1447
1461
|
tableLayout: this.resizeState || this.internalColumns.some(c => c.width) ? 'fixed' : this.tableLayout,
|
|
1448
|
-
} }, this.renderColGroup(), this.renderHeader(stickyOffsets), this.renderBody(stickyOffsets)))), (bottomPagination || this.tableFooter) && (h("div", { key: '
|
|
1462
|
+
} }, this.renderColGroup(), this.renderHeader(stickyOffsets), this.renderBody(stickyOffsets)))), (bottomPagination || this.tableFooter) && (h("div", { key: '3bd5751883e4d30519d81cc6ade817c0a13951cc', class: "x-table-footer-pagination" }, this.renderFooter(), bottomPagination && this.renderPagination('bottom'))))));
|
|
1449
1463
|
}
|
|
1450
1464
|
static get is() { return "x-table"; }
|
|
1451
1465
|
static get encapsulation() { return "shadow"; }
|