@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.
Files changed (49) hide show
  1. package/components/index.js +1 -1
  2. package/components/p-CQ2VND9-.js +1 -0
  3. package/components/p-CQQI-pRu.js +1 -0
  4. package/components/p-CkwLFDlS.js +1 -0
  5. package/components/p-CzHtwC1k.js +1 -0
  6. package/components/{p-BlvrLhyv.js → p-DqayamUz.js} +1 -1
  7. package/components/x-form-builder.js +1 -1
  8. package/components/x-icon-picker-dropdown-content.js +1 -1
  9. package/components/x-input-icon.js +1 -1
  10. package/components/x-login.js +1 -1
  11. package/components/x-table.js +1 -1
  12. package/dist/cjs/icons-BfHE2jcr.js +19261 -0
  13. package/dist/cjs/index.cjs.js +2 -2
  14. package/dist/cjs/{schema-builder-BKX4QdTc.js → schema-builder-DAwDwgIM.js} +98 -14
  15. package/dist/cjs/x-address_51.cjs.entry.js +115 -11
  16. package/dist/cjs/x-icon-picker-dropdown-content.cjs.entry.js +1 -1
  17. package/dist/collection/components/x-form-builder/services/schema/condition-builder.js +48 -6
  18. package/dist/collection/components/x-form-builder/services/schema/form-mapping.js +2 -2
  19. package/dist/collection/components/x-form-builder/utils/condition-engine.js +48 -6
  20. package/dist/collection/components/x-form-builder/x-form-builder.js +96 -6
  21. package/dist/collection/components/x-icon/icons.js +11462 -11492
  22. package/dist/collection/components/x-table/x-table.js +18 -4
  23. package/dist/esm/icons-CQ2VND9-.js +19259 -0
  24. package/dist/esm/index.js +2 -2
  25. package/dist/esm/{schema-builder-DlGEzg5B.js → schema-builder-CekbhOnD.js} +98 -14
  26. package/dist/esm/x-address_51.entry.js +115 -11
  27. package/dist/esm/x-icon-picker-dropdown-content.entry.js +1 -1
  28. package/dist/types/components/x-form-builder/types/common/field-types-enum.d.ts +1 -1
  29. package/dist/types/components/x-form-builder/types/fields/advanced-fields.d.ts +1 -0
  30. package/dist/types/components/x-form-builder/types/fields/form-field-union.d.ts +2 -2
  31. package/dist/types/components/x-form-builder/types/fields/layout-fields.d.ts +10 -1
  32. package/dist/types/components/x-form-builder/types/fields/special-input-fields.d.ts +3 -0
  33. package/dist/types/components/x-form-builder/x-form-builder.d.ts +2 -0
  34. package/dist/xlabs/index.esm.js +1 -1
  35. package/dist/xlabs/{p-45fda37b.entry.js → p-99c568fd.entry.js} +1 -1
  36. package/dist/xlabs/p-CQ2VND9-.js +1 -0
  37. package/dist/xlabs/p-CkwLFDlS.js +1 -0
  38. package/dist/xlabs/p-a4995e36.entry.js +1 -0
  39. package/dist/xlabs/xlabs.esm.js +1 -1
  40. package/package.json +1 -1
  41. package/components/p-BGNOiTqa.js +0 -1
  42. package/components/p-BgCjF74f.js +0 -1
  43. package/components/p-xf66Fag-.js +0 -1
  44. package/components/p-xzKm-BQN.js +0 -1
  45. package/dist/cjs/icons-DJ-kuboh.js +0 -19291
  46. package/dist/esm/icons-BgCjF74f.js +0 -19289
  47. package/dist/xlabs/p-239cf367.entry.js +0 -1
  48. package/dist/xlabs/p-BgCjF74f.js +0 -1
  49. 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
- scrollStyle.minWidth = `${this.tableScroll.x}px`;
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: 'eaf4a6cf70d130e87188308bfd7bfb562cd01ba7', class: {
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: '96dc817e5ed149fda58e1e775ad9321cc667841c', class: "x-table-wrapper" }, this.renderTitle(), topPagination && this.renderPagination('top'), h("div", { key: 'a746ceefce9e30cd3f856ff61e9f84299ca211cc', class: "x-table-container" }, this.loading && (h("div", { key: 'c65e55ba96dc9ff93630c1cdf7fc5c7da76b18ae', class: "x-table-loading-overlay" }, h("x-spin", { key: 'd86580a956df1ee08c58454eb519f2cb78a16b8b' }))), h("div", { key: 'c526fe4cae8ce289d266ed97109d0fb57f3c48b3', class: "x-table-content", style: scrollStyle }, h("table", { key: '8e4ce3903cf364956c08ff0395a354edbb7ee536', style: {
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: '7e012c2a718b535225d3b9f9a2e1639bbb5bf23e', class: "x-table-footer-pagination" }, this.renderFooter(), bottomPagination && this.renderPagination('bottom'))))));
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"; }