@mmlogic/components 0.1.27 → 0.1.29

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.
@@ -1392,10 +1392,13 @@ const MrdLayoutSection = class {
1392
1392
  this.imagePreviews = {};
1393
1393
  this.activeViewMap = {};
1394
1394
  this.viewLinksMap = {};
1395
+ this.activeFiltersMap = {};
1395
1396
  this.searchTimers = {};
1396
1397
  this.handleViewLoadPage = (e, name) => {
1398
+ var _a;
1397
1399
  e.stopPropagation();
1398
- this.mrdLoadViewPage.emit({ name, page: e.detail.page, sort: e.detail.sort });
1400
+ const filters = (_a = this.activeFiltersMap[name]) !== null && _a !== void 0 ? _a : [];
1401
+ this.mrdLoadViewPage.emit({ name, page: e.detail.page, sort: e.detail.sort, filters });
1399
1402
  };
1400
1403
  this.handleSearchInput = (dataClass, query) => {
1401
1404
  this.searchQueryMap = Object.assign(Object.assign({}, this.searchQueryMap), { [dataClass]: query });
@@ -1427,8 +1430,23 @@ const MrdLayoutSection = class {
1427
1430
  this.emitLoadViews();
1428
1431
  }
1429
1432
  }
1433
+ resolveViewFilters(viewConfig) {
1434
+ var _a;
1435
+ return ((_a = viewConfig.filter) !== null && _a !== void 0 ? _a : []).map(f => {
1436
+ var _a, _b, _c, _d;
1437
+ const base = { field: f.name, dataType: 'TEXT' };
1438
+ switch (f.operator) {
1439
+ case 'FROM': return Object.assign(Object.assign({}, base), { from: (_a = f.value) !== null && _a !== void 0 ? _a : null });
1440
+ case 'TO': return Object.assign(Object.assign({}, base), { to: (_b = f.value) !== null && _b !== void 0 ? _b : null });
1441
+ case 'STARTS_WITH': return Object.assign(Object.assign({}, base), { operator: 'startsWith', value: (_c = f.value) !== null && _c !== void 0 ? _c : null });
1442
+ case 'NOT_EMPTY': return Object.assign(Object.assign({}, base), { operator: 'isNotEmpty' });
1443
+ case 'EMPTY': return Object.assign(Object.assign({}, base), { operator: 'isEmpty' });
1444
+ default: return Object.assign(Object.assign({}, base), { operator: 'equals', value: (_d = f.value) !== null && _d !== void 0 ? _d : null });
1445
+ }
1446
+ });
1447
+ }
1430
1448
  emitLoadViews() {
1431
- var _a, _b, _c, _d, _e, _f;
1449
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1432
1450
  const dataLinks = ((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a._links) !== null && _b !== void 0 ? _b : {});
1433
1451
  for (const item of this.flattenItems(this.items)) {
1434
1452
  if (item.type === ClientLayoutItemType.RELATED_VIEW && item.relatedView) {
@@ -1437,17 +1455,17 @@ const MrdLayoutSection = class {
1437
1455
  if (!viewConfig)
1438
1456
  continue;
1439
1457
  const href = (_c = dataLinks[rv.relatedClass]) === null || _c === void 0 ? void 0 : _c.href;
1440
- this.mrdLoadView.emit({ name: rv.name, href, viewConfig });
1458
+ this.mrdLoadView.emit({ name: rv.name, href, viewConfig, sort: (_d = viewConfig.defaultSort) !== null && _d !== void 0 ? _d : '', filters: this.resolveViewFilters(viewConfig) });
1441
1459
  }
1442
1460
  else if (item.type === ClientLayoutItemType.VIEW) {
1443
- const viewName = (_e = (_d = item.view) === null || _d === void 0 ? void 0 : _d.name) !== null && _e !== void 0 ? _e : item.name;
1461
+ const viewName = (_f = (_e = item.view) === null || _e === void 0 ? void 0 : _e.name) !== null && _f !== void 0 ? _f : item.name;
1444
1462
  if (!viewName)
1445
1463
  continue;
1446
1464
  const viewConfig = this.views[viewName];
1447
1465
  if (!viewConfig)
1448
1466
  continue;
1449
- const href = (_f = this.links[viewName]) === null || _f === void 0 ? void 0 : _f.href;
1450
- this.mrdLoadView.emit({ name: viewName, href, viewConfig });
1467
+ const href = (_g = this.links[viewName]) === null || _g === void 0 ? void 0 : _g.href;
1468
+ this.mrdLoadView.emit({ name: viewName, href, viewConfig, sort: (_h = viewConfig.defaultSort) !== null && _h !== void 0 ? _h : '', filters: this.resolveViewFilters(viewConfig) });
1451
1469
  }
1452
1470
  }
1453
1471
  }
@@ -1631,7 +1649,7 @@ const MrdLayoutSection = class {
1631
1649
  return (h("div", { class: "mrd-layout-section__search", key: `search-${dataClass}` }, h("input", { class: "mrd-layout-section__search-input", type: "text", value: query, placeholder: (_c = item.label) !== null && _c !== void 0 ? _c : '', onInput: e => this.handleSearchInput(dataClass, e.target.value) }), results.length > 0 && (h("ul", { class: "mrd-layout-section__search-results" }, results.map(r => (h("li", { key: r.id, class: "mrd-layout-section__search-result" }, h("button", { class: "mrd-layout-section__search-result-btn", onClick: () => this.mrdNavigate.emit({ href: r.id, label: r.label }) }, h("span", { class: "mrd-layout-section__search-result-label" }, r.label), r.description && h("span", { class: "mrd-layout-section__search-result-desc" }, r.description)))))))));
1632
1650
  }
1633
1651
  renderRelatedView(item) {
1634
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
1652
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
1635
1653
  const isRelated = item.type === ClientLayoutItemType.RELATED_VIEW;
1636
1654
  // Support both nested (item.view / item.relatedView) and flat API format (item.name)
1637
1655
  const name = isRelated
@@ -1645,11 +1663,15 @@ const MrdLayoutSection = class {
1645
1663
  const showTitle = isRelated
1646
1664
  ? (_d = item.relatedView) === null || _d === void 0 ? void 0 : _d.showTitle
1647
1665
  : ((_g = (_f = (_e = item.view) === null || _e === void 0 ? void 0 : _e.showTitle) !== null && _f !== void 0 ? _f : item.showTitle) !== null && _g !== void 0 ? _g : false);
1648
- const altViews = item.alternativeViews;
1649
1666
  const activeName = (_h = this.activeViewMap[name]) !== null && _h !== void 0 ? _h : name;
1650
1667
  const activeViewConfig = (_j = this.views[activeName]) !== null && _j !== void 0 ? _j : viewConfig;
1651
- const viewLabel = (_m = (_l = (_k = item.label) !== null && _k !== void 0 ? _k : activeViewConfig.pluralLabel) !== null && _l !== void 0 ? _l : activeViewConfig.singularLabel) !== null && _m !== void 0 ? _m : '';
1652
- const rawActions = (_o = item.actions) !== null && _o !== void 0 ? _o : ['NEW', 'EXPORT'];
1668
+ // Build the full view list (original + alternatives) so the switcher can always go back.
1669
+ const originalLabel = (_m = (_l = (_k = viewConfig.pluralLabel) !== null && _k !== void 0 ? _k : viewConfig.singularLabel) !== null && _l !== void 0 ? _l : item.label) !== null && _m !== void 0 ? _m : name;
1670
+ const allViews = [{ name, label: originalLabel }, ...((_o = item.alternativeViews) !== null && _o !== void 0 ? _o : [])];
1671
+ const activeEntry = allViews.find(v => v.name === activeName);
1672
+ const viewLabel = (_r = (_q = (_p = activeEntry === null || activeEntry === void 0 ? void 0 : activeEntry.label) !== null && _p !== void 0 ? _p : activeViewConfig.pluralLabel) !== null && _q !== void 0 ? _q : activeViewConfig.singularLabel) !== null && _r !== void 0 ? _r : '';
1673
+ const altViews = allViews.filter(v => v.name !== activeName);
1674
+ const rawActions = (_s = item.actions) !== null && _s !== void 0 ? _s : ['NEW', 'EXPORT'];
1653
1675
  const tableActions = rawActions.reduce((acc, a) => {
1654
1676
  if (a === 'NEW')
1655
1677
  acc.push({ action: 'create', label: t('table_new_record', this.locale), icon: 'assets/sprites.svg#icon-plus', variant: 'primary' });
@@ -1657,27 +1679,32 @@ const MrdLayoutSection = class {
1657
1679
  acc.push({ action: 'export', label: t('table_export_excel', this.locale), icon: 'assets/sprites.svg#icon-file-excel' });
1658
1680
  return acc;
1659
1681
  }, []);
1660
- return (h("div", { class: "mrd-layout-section__related-view", key: `view-${name}` }, showTitle && item.label && h("h3", { class: "mrd-layout-section__related-view-title" }, item.label), h("mrd-table", { "data-view": name, columns: activeViewConfig.values, locale: this.locale, defaultSort: (_p = activeViewConfig.defaultSort) !== null && _p !== void 0 ? _p : '', viewLabel: viewLabel, alternativeViews: altViews, actions: tableActions, onMrdLoadPage: (e) => this.handleViewLoadPage(e, name), onMrdSwitchView: (e) => {
1661
- var _a, _b, _c, _d, _e, _f;
1682
+ return (h("div", { class: "mrd-layout-section__related-view", key: `view-${name}` }, showTitle && item.label && h("h3", { class: "mrd-layout-section__related-view-title" }, item.label), h("mrd-table", { "data-view": name, columns: activeViewConfig.values, locale: this.locale, defaultSort: (_t = activeViewConfig.defaultSort) !== null && _t !== void 0 ? _t : '', viewLabel: viewLabel, alternativeViews: altViews, actions: tableActions, onMrdLoadPage: (e) => this.handleViewLoadPage(e, name), onMrdSwitchView: (e) => {
1683
+ var _a, _b, _c, _d, _e, _f, _g;
1662
1684
  e.stopPropagation();
1663
1685
  const newViewName = e.detail.name;
1664
1686
  const newViewConfig = this.views[newViewName];
1665
1687
  if (!newViewConfig)
1666
1688
  return;
1667
1689
  this.activeViewMap = Object.assign(Object.assign({}, this.activeViewMap), { [name]: newViewName });
1690
+ this.activeFiltersMap = Object.assign(Object.assign({}, this.activeFiltersMap), { [name]: [] });
1668
1691
  const dataLinks = ((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a._links) !== null && _b !== void 0 ? _b : {});
1669
1692
  const href = isRelated
1670
1693
  ? (_c = dataLinks[item.relatedView.relatedClass]) === null || _c === void 0 ? void 0 : _c.href
1671
1694
  : ((_e = (_d = this.links[newViewName]) === null || _d === void 0 ? void 0 : _d.href) !== null && _e !== void 0 ? _e : (_f = this.links[name]) === null || _f === void 0 ? void 0 : _f.href);
1672
- this.mrdLoadView.emit({ name, href, viewConfig: newViewConfig });
1695
+ this.mrdLoadView.emit({ name, href, viewConfig: newViewConfig, sort: (_g = newViewConfig.defaultSort) !== null && _g !== void 0 ? _g : '', filters: this.resolveViewFilters(newViewConfig) });
1696
+ }, onMrdFilter: (e) => {
1697
+ e.stopPropagation();
1698
+ this.activeFiltersMap = Object.assign(Object.assign({}, this.activeFiltersMap), { [name]: e.detail.filters });
1673
1699
  }, onMrdLoadAggregations: (e) => {
1674
- var _a, _b, _c, _d, _e, _f, _g;
1700
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1675
1701
  e.stopPropagation();
1676
1702
  const dataLinks = ((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a._links) !== null && _b !== void 0 ? _b : {});
1677
1703
  const href = isRelated
1678
1704
  ? (_c = dataLinks[item.relatedView.relatedClass]) === null || _c === void 0 ? void 0 : _c.href
1679
1705
  : ((_f = (_e = this.links[(_d = this.activeViewMap[name]) !== null && _d !== void 0 ? _d : name]) === null || _e === void 0 ? void 0 : _e.href) !== null && _f !== void 0 ? _f : (_g = this.links[name]) === null || _g === void 0 ? void 0 : _g.href);
1680
- this.mrdLoadViewAggregations.emit(Object.assign({ name, href }, e.detail));
1706
+ const filters = (_h = this.activeFiltersMap[name]) !== null && _h !== void 0 ? _h : [];
1707
+ this.mrdLoadViewAggregations.emit(Object.assign({ name, href, filters }, e.detail));
1681
1708
  }, onMrdAction: (e) => {
1682
1709
  var _a, _b, _c;
1683
1710
  e.stopPropagation();
@@ -1717,7 +1744,7 @@ const MrdLayoutSection = class {
1717
1744
  return (h("div", { class: "mrd-layout-section__modal-backdrop", onClick: () => { this.imagePreviewUrl = null; } }, h("div", { class: "mrd-layout-section__modal", onClick: (e) => e.stopPropagation() }, h("button", { class: "mrd-layout-section__modal-close", onClick: () => { this.imagePreviewUrl = null; } }, "\u2715"), h("img", { class: "mrd-layout-section__modal-image", src: this.imagePreviewUrl, alt: "" }))));
1718
1745
  }
1719
1746
  render() {
1720
- return (h(Host, { key: '61e2e24dfc38480f95a76ae5b433fcdf31c7c2ab' }, h("div", { key: 'bbe3fa8d350cb8175ae3884ba879463d172fd65b', class: "mrd-layout-section" }, this.items.map(item => this.renderItem(item))), this.renderImageModal()));
1747
+ return (h(Host, { key: 'bf92b312d32b17bac4cb43691175951ebdecca47' }, h("div", { key: '4c6ce4650395d15d15777ba5abecf3b8ea98f11d', class: "mrd-layout-section" }, this.items.map(item => this.renderItem(item))), this.renderImageModal()));
1721
1748
  }
1722
1749
  get el() { return getElement(this); }
1723
1750
  static get watchers() { return {
@@ -2263,6 +2290,27 @@ const MrdTable = class {
2263
2290
  totalElementsChanged(newVal) {
2264
2291
  this.renderEnd = Math.min(this.renderEnd, Math.max(0, newVal - 1));
2265
2292
  }
2293
+ /** Apply defaultSort when the prop changes (e.g. after a view switch). */
2294
+ defaultSortChanged(newVal) {
2295
+ this.applyDefaultSort(newVal);
2296
+ }
2297
+ // ── Lifecycle ──────────────────────────────────────────────────────────────
2298
+ componentWillLoad() {
2299
+ this.applyDefaultSort(this.defaultSort);
2300
+ }
2301
+ // ── Helpers ────────────────────────────────────────────────────────────────
2302
+ applyDefaultSort(defaultSort) {
2303
+ var _a;
2304
+ if (defaultSort) {
2305
+ const parts = defaultSort.split(',');
2306
+ this.sortField = parts[0].trim();
2307
+ this.sortDir = ((_a = parts[1]) === null || _a === void 0 ? void 0 : _a.trim()) === 'desc' ? 'desc' : 'asc';
2308
+ }
2309
+ else {
2310
+ this.sortField = '';
2311
+ this.sortDir = 'asc';
2312
+ }
2313
+ }
2266
2314
  // ── Public API ─────────────────────────────────────────────────────────────
2267
2315
  /**
2268
2316
  * Initialise (or reset) the virtual scroll.
@@ -2270,7 +2318,6 @@ const MrdTable = class {
2270
2318
  * but before calling setPage(0, rows).
2271
2319
  */
2272
2320
  async init() {
2273
- var _a;
2274
2321
  if (this.debounceTimer !== null) {
2275
2322
  clearTimeout(this.debounceTimer);
2276
2323
  this.debounceTimer = null;
@@ -2279,15 +2326,6 @@ const MrdTable = class {
2279
2326
  this.loadedPages = new Map();
2280
2327
  this.requestedPages = new Set();
2281
2328
  this.colWidths = [];
2282
- if (this.defaultSort) {
2283
- const parts = this.defaultSort.split(',');
2284
- this.sortField = parts[0].trim();
2285
- this.sortDir = ((_a = parts[1]) === null || _a === void 0 ? void 0 : _a.trim()) === 'desc' ? 'desc' : 'asc';
2286
- }
2287
- else {
2288
- this.sortField = '';
2289
- this.sortDir = 'asc';
2290
- }
2291
2329
  this.scrollTop = 0;
2292
2330
  this.renderStart = 0;
2293
2331
  // No BUFFER on init — only request what fits the visible area (page 0).
@@ -2982,6 +3020,9 @@ const MrdTable = class {
2982
3020
  static get watchers() { return {
2983
3021
  "totalElements": [{
2984
3022
  "totalElementsChanged": 0
3023
+ }],
3024
+ "defaultSort": [{
3025
+ "defaultSortChanged": 0
2985
3026
  }]
2986
3027
  }; }
2987
3028
  };
@@ -1 +1 @@
1
- import{p as e,b as l}from"./p-_tsCCkAi.js";export{s as setNonce}from"./p-_tsCCkAi.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await a(),l([["p-7a4dc3cd",[[2,"mrd-form",{layout:[16],locale:[1],values:[16],referenceHref:[1,"reference-href"],referenceClass:[1,"reference-class"],showCancel:[4,"show-cancel"],formValues:[32],errors:[32],submitted:[32],setFieldValue:[64]},null,{values:[{valuesChanged:0}]}],[2,"mrd-layout-section",{items:[16],data:[16],views:[16],links:[16],locale:[1],searchQueryMap:[32],searchResultsMap:[32],imagePreviewUrl:[32],imagePreviews:[32],activeViewMap:[32],setSearchResults:[64],setViewPage:[64],setViewAggregations:[64],setImagePreview:[64],openImagePreview:[64]},null,{links:[{linksChanged:0}],data:[{dataChanged:0}]}],[2,"mrd-field",{item:[16],locale:[1],value:[16]}],[2,"mrd-table",{columns:[16],rows:[16],locale:[1],totalElements:[2,"total-elements"],pageSize:[2,"page-size"],rowHeight:[2,"row-height"],tableHeight:[2,"table-height"],defaultSort:[1,"default-sort"],actions:[16],viewLabel:[1,"view-label"],alternativeViews:[16],loadedPages:[32],requestedPages:[32],renderStart:[32],renderEnd:[32],colWidths:[32],sortField:[32],sortDir:[32],filterMode:[32],activeFilters:[32],openFilterCol:[32],pendingFilter:[32],popupPos:[32],scrollTop:[32],textblockModal:[32],jsonModal:[32],aggregations:[32],init:[64],setPage:[64],setAggregations:[64]},null,{totalElements:[{totalElementsChanged:0}]}],[2,"mrd-boolean-field",{name:[1],label:[1],value:[4],required:[4],disabled:[4],locale:[1],checked:[32]}],[2,"mrd-currency-field",{name:[1],label:[1],value:[16],required:[4],disabled:[4],locale:[1],amountDisplay:[32],currency:[32],error:[32]}],[2,"mrd-date-field",{name:[1],label:[1],value:[1],required:[4],disabled:[4],locale:[1],error:[32]}],[2,"mrd-datetime-field",{name:[1],label:[1],value:[1],required:[4],disabled:[4],locale:[1],error:[32],localValue:[32]},null,{value:[{valueChanged:0}]}],[2,"mrd-email-field",{name:[1],label:[1],value:[1],placeholder:[1],required:[4],disabled:[4],locale:[1],error:[32]}],[2,"mrd-file-field",{name:[1],label:[1],value:[16],required:[4],disabled:[4],locale:[1],accept:[1],maxSize:[2,"max-size"],fileName:[32],isDragging:[32],uploading:[32],error:[32]},null,{value:[{valueChanged:0}]}],[2,"mrd-hyperlink-field",{name:[1],label:[1],value:[1],placeholder:[1],required:[4],disabled:[4],locale:[1],error:[32]}],[2,"mrd-image-field",{name:[1],label:[1],value:[16],required:[4],disabled:[4],locale:[1],accept:[1],maxSize:[2,"max-size"],previewUrl:[32],fileName:[32],isDragging:[32],uploading:[32],error:[32]},null,{value:[{valueChanged:0}]}],[2,"mrd-list-field",{name:[1],label:[1],value:[1],required:[4],disabled:[4],multiple:[4],locale:[1],listItems:[16],error:[32],selected:[32]}],[2,"mrd-longtext-field",{name:[1],label:[1],value:[1],placeholder:[1],required:[4],disabled:[4],locale:[1],error:[32]}],[2,"mrd-number-field",{name:[1],label:[1],value:[2],placeholder:[1],required:[4],disabled:[4],locale:[1],dataType:[1,"data-type"],decimalPrecision:[2,"decimal-precision"],displayValue:[32],error:[32]}],[2,"mrd-relation-field",{name:[1],label:[1],required:[4],disabled:[4],locale:[1],relatedClass:[1,"related-class"],mostSignificantClass:[1,"most-significant-class"],displayType:[1,"display-type"],editBehavior:[1,"edit-behavior"],commonRelation:[1,"common-relation"],multiple:[4],dropdownValues:[16],value:[1],searchQuery:[32],searchResults:[32],allRecords:[32],isLoading:[32],selectedItems:[32],showResults:[32],error:[32],highlightedIndex:[32],setAllRecords:[64],setSearchResults:[64],setLoading:[64]},null,{allRecords:[{allRecordsChanged:0}]}],[2,"mrd-text-field",{name:[1],label:[1],value:[1],placeholder:[1],required:[4],disabled:[4],locale:[1],error:[32]}],[2,"mrd-textarea-field",{name:[1],label:[1],value:[1],placeholder:[1],required:[4],disabled:[4],locale:[1],error:[32],editorReady:[32]}],[2,"mrd-time-field",{name:[1],label:[1],value:[1],required:[4],disabled:[4],locale:[1],error:[32]}]]]],e))));
1
+ import{p as e,b as l}from"./p-_tsCCkAi.js";export{s as setNonce}from"./p-_tsCCkAi.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await a(),l([["p-3aacd101",[[2,"mrd-form",{layout:[16],locale:[1],values:[16],referenceHref:[1,"reference-href"],referenceClass:[1,"reference-class"],showCancel:[4,"show-cancel"],formValues:[32],errors:[32],submitted:[32],setFieldValue:[64]},null,{values:[{valuesChanged:0}]}],[2,"mrd-layout-section",{items:[16],data:[16],views:[16],links:[16],locale:[1],searchQueryMap:[32],searchResultsMap:[32],imagePreviewUrl:[32],imagePreviews:[32],activeViewMap:[32],setSearchResults:[64],setViewPage:[64],setViewAggregations:[64],setImagePreview:[64],openImagePreview:[64]},null,{links:[{linksChanged:0}],data:[{dataChanged:0}]}],[2,"mrd-field",{item:[16],locale:[1],value:[16]}],[2,"mrd-table",{columns:[16],rows:[16],locale:[1],totalElements:[2,"total-elements"],pageSize:[2,"page-size"],rowHeight:[2,"row-height"],tableHeight:[2,"table-height"],defaultSort:[1,"default-sort"],actions:[16],viewLabel:[1,"view-label"],alternativeViews:[16],loadedPages:[32],requestedPages:[32],renderStart:[32],renderEnd:[32],colWidths:[32],sortField:[32],sortDir:[32],filterMode:[32],activeFilters:[32],openFilterCol:[32],pendingFilter:[32],popupPos:[32],scrollTop:[32],textblockModal:[32],jsonModal:[32],aggregations:[32],init:[64],setPage:[64],setAggregations:[64]},null,{totalElements:[{totalElementsChanged:0}],defaultSort:[{defaultSortChanged:0}]}],[2,"mrd-boolean-field",{name:[1],label:[1],value:[4],required:[4],disabled:[4],locale:[1],checked:[32]}],[2,"mrd-currency-field",{name:[1],label:[1],value:[16],required:[4],disabled:[4],locale:[1],amountDisplay:[32],currency:[32],error:[32]}],[2,"mrd-date-field",{name:[1],label:[1],value:[1],required:[4],disabled:[4],locale:[1],error:[32]}],[2,"mrd-datetime-field",{name:[1],label:[1],value:[1],required:[4],disabled:[4],locale:[1],error:[32],localValue:[32]},null,{value:[{valueChanged:0}]}],[2,"mrd-email-field",{name:[1],label:[1],value:[1],placeholder:[1],required:[4],disabled:[4],locale:[1],error:[32]}],[2,"mrd-file-field",{name:[1],label:[1],value:[16],required:[4],disabled:[4],locale:[1],accept:[1],maxSize:[2,"max-size"],fileName:[32],isDragging:[32],uploading:[32],error:[32]},null,{value:[{valueChanged:0}]}],[2,"mrd-hyperlink-field",{name:[1],label:[1],value:[1],placeholder:[1],required:[4],disabled:[4],locale:[1],error:[32]}],[2,"mrd-image-field",{name:[1],label:[1],value:[16],required:[4],disabled:[4],locale:[1],accept:[1],maxSize:[2,"max-size"],previewUrl:[32],fileName:[32],isDragging:[32],uploading:[32],error:[32]},null,{value:[{valueChanged:0}]}],[2,"mrd-list-field",{name:[1],label:[1],value:[1],required:[4],disabled:[4],multiple:[4],locale:[1],listItems:[16],error:[32],selected:[32]}],[2,"mrd-longtext-field",{name:[1],label:[1],value:[1],placeholder:[1],required:[4],disabled:[4],locale:[1],error:[32]}],[2,"mrd-number-field",{name:[1],label:[1],value:[2],placeholder:[1],required:[4],disabled:[4],locale:[1],dataType:[1,"data-type"],decimalPrecision:[2,"decimal-precision"],displayValue:[32],error:[32]}],[2,"mrd-relation-field",{name:[1],label:[1],required:[4],disabled:[4],locale:[1],relatedClass:[1,"related-class"],mostSignificantClass:[1,"most-significant-class"],displayType:[1,"display-type"],editBehavior:[1,"edit-behavior"],commonRelation:[1,"common-relation"],multiple:[4],dropdownValues:[16],value:[1],searchQuery:[32],searchResults:[32],allRecords:[32],isLoading:[32],selectedItems:[32],showResults:[32],error:[32],highlightedIndex:[32],setAllRecords:[64],setSearchResults:[64],setLoading:[64]},null,{allRecords:[{allRecordsChanged:0}]}],[2,"mrd-text-field",{name:[1],label:[1],value:[1],placeholder:[1],required:[4],disabled:[4],locale:[1],error:[32]}],[2,"mrd-textarea-field",{name:[1],label:[1],value:[1],placeholder:[1],required:[4],disabled:[4],locale:[1],error:[32],editorReady:[32]}],[2,"mrd-time-field",{name:[1],label:[1],value:[1],required:[4],disabled:[4],locale:[1],error:[32]}]]]],e))));