@superblocksteam/library 2.0.12-next.9 → 2.0.12

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 (38) hide show
  1. package/dist/{allPaths-QDngtDgF.js → allPaths-BuUgu-ep.js} +2 -2
  2. package/dist/{allPaths-QDngtDgF.js.map → allPaths-BuUgu-ep.js.map} +1 -1
  3. package/dist/{allPaths-DSGBbmkM.js → allPaths-DlzHwWMX.js} +2 -2
  4. package/dist/{allPaths-DSGBbmkM.js.map → allPaths-DlzHwWMX.js.map} +1 -1
  5. package/dist/{allPathsLoader-C0am3WW9.js → allPathsLoader-BGvU53aT.js} +3 -3
  6. package/dist/{allPathsLoader-C0am3WW9.js.map → allPathsLoader-BGvU53aT.js.map} +1 -1
  7. package/dist/{allPathsLoader-Cuc9rPiP.js → allPathsLoader-DSciOCN7.js} +3 -3
  8. package/dist/{allPathsLoader-Cuc9rPiP.js.map → allPathsLoader-DSciOCN7.js.map} +1 -1
  9. package/dist/{devtools-consolidated-DcgLGCxF.js → devtools-consolidated-BUXNw6tW.js} +2 -2
  10. package/dist/{devtools-consolidated-DcgLGCxF.js.map → devtools-consolidated-BUXNw6tW.js.map} +1 -1
  11. package/dist/{index-CGJkVHjX.js → index-Cqcbj1GQ.js} +502 -479
  12. package/dist/{index-CGJkVHjX.js.map → index-Cqcbj1GQ.js.map} +1 -1
  13. package/dist/index.js +2 -2
  14. package/dist/{splitPathsBySizeLoader-Co86rhhm.js → splitPathsBySizeLoader-B1MrW6Zz.js} +2 -2
  15. package/dist/{splitPathsBySizeLoader-Co86rhhm.js.map → splitPathsBySizeLoader-B1MrW6Zz.js.map} +1 -1
  16. package/dist/{splitPathsBySizeLoader-BhAoSPKn.js → splitPathsBySizeLoader-CdGEkez6.js} +2 -2
  17. package/dist/{splitPathsBySizeLoader-BhAoSPKn.js.map → splitPathsBySizeLoader-CdGEkez6.js.map} +1 -1
  18. package/dist-types/edit-mode/create-component.d.ts +1 -1
  19. package/dist-types/lib/internal-details/sb-wrapper.d.ts +25 -2
  20. package/dist-types/lib/user-facing/components/button/editor-template.d.ts +3 -0
  21. package/dist-types/lib/user-facing/components/checkbox/editor-template.d.ts +3 -0
  22. package/dist-types/lib/user-facing/components/column/editor-template.d.ts +3 -0
  23. package/dist-types/lib/user-facing/components/container/editor-template.d.ts +3 -0
  24. package/dist-types/lib/user-facing/components/date-picker/editor-template.d.ts +3 -0
  25. package/dist-types/lib/user-facing/components/dropdown/editor-template.d.ts +3 -0
  26. package/dist-types/lib/user-facing/components/icon/editor-template.d.ts +3 -0
  27. package/dist-types/lib/user-facing/components/icon/index.d.ts +2 -2
  28. package/dist-types/lib/user-facing/components/icon/props.d.ts +1 -1
  29. package/dist-types/lib/user-facing/components/image/editor-template.d.ts +3 -0
  30. package/dist-types/lib/user-facing/components/key-value/editor-template.d.ts +3 -0
  31. package/dist-types/lib/user-facing/components/modal/editor-template.d.ts +3 -0
  32. package/dist-types/lib/user-facing/components/section/editor-template.d.ts +3 -0
  33. package/dist-types/lib/user-facing/components/slideout/editor-template.d.ts +3 -0
  34. package/dist-types/lib/user-facing/components/switch/editor-template.d.ts +3 -0
  35. package/dist-types/lib/user-facing/components/table/editor-template.d.ts +3 -0
  36. package/dist-types/lib/user-facing/components/text/editor-template.d.ts +3 -0
  37. package/package.json +2 -2
  38. /package/dist-types/{edit-mode → lib/user-facing/components/table}/default-table-data.d.ts +0 -0
@@ -95080,7 +95080,7 @@ function registerStores(stores) {
95080
95080
  internalStores = { ...internalStores, ...stores };
95081
95081
  if (SUPPORTED_MODES.includes("production")) {
95082
95082
  if (Object.keys(internalStores).length === Object.keys(stores).length) {
95083
- import("./devtools-consolidated-DcgLGCxF.js").then(({ initializeCustomDevTools, setRegisteredStores }) => {
95083
+ import("./devtools-consolidated-BUXNw6tW.js").then(({ initializeCustomDevTools, setRegisteredStores }) => {
95084
95084
  setRegisteredStores(internalStores);
95085
95085
  initializeCustomDevTools();
95086
95086
  }).catch((error) => {
@@ -95093,7 +95093,7 @@ function registerStores(stores) {
95093
95093
  }
95094
95094
  }
95095
95095
  const DevToolsInternal = React__default.lazy(() => {
95096
- return import("./devtools-consolidated-DcgLGCxF.js").then((module2) => ({
95096
+ return import("./devtools-consolidated-BUXNw6tW.js").then((module2) => ({
95097
95097
  default: module2.CustomDevTools
95098
95098
  }));
95099
95099
  });
@@ -102658,14 +102658,14 @@ function getLoaderFn$1(options) {
102658
102658
  if (!(loader === "all")) return [3, 3];
102659
102659
  return [4, import(
102660
102660
  /* webpackChunkName: "blueprint-icons-all-paths-loader" */
102661
- "./allPathsLoader-Cuc9rPiP.js"
102661
+ "./allPathsLoader-DSciOCN7.js"
102662
102662
  )];
102663
102663
  case 2:
102664
102664
  return [2, _b2.sent().allPathsLoader];
102665
102665
  case 3:
102666
102666
  return [4, import(
102667
102667
  /* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
102668
- "./splitPathsBySizeLoader-BhAoSPKn.js"
102668
+ "./splitPathsBySizeLoader-CdGEkez6.js"
102669
102669
  )];
102670
102670
  case 4:
102671
102671
  return [2, _b2.sent().splitPathsBySizeLoader];
@@ -111777,7 +111777,7 @@ function createScope(getInitialEntities, options) {
111777
111777
  scopeId: stableScopeId
111778
111778
  });
111779
111779
  const bindingIds = {};
111780
- const getBinding = (key2) => {
111780
+ const getBinding2 = (key2) => {
111781
111781
  if (bindingIds[key2]) {
111782
111782
  return bindingIds[key2];
111783
111783
  }
@@ -111805,7 +111805,7 @@ function createScope(getInitialEntities, options) {
111805
111805
  useSuspense: true
111806
111806
  }
111807
111807
  ),
111808
- getBinding(key2)
111808
+ getBinding2(key2)
111809
111809
  );
111810
111810
  }
111811
111811
  }
@@ -127981,199 +127981,6 @@ const GridDropPreview = observer(() => {
127981
127981
  }
127982
127982
  );
127983
127983
  });
127984
- var KeyValuePropertyType = /* @__PURE__ */ ((KeyValuePropertyType2) => {
127985
- KeyValuePropertyType2["TEXT"] = "text";
127986
- KeyValuePropertyType2["NUMBER"] = "number";
127987
- KeyValuePropertyType2["CURRENCY"] = "currency";
127988
- KeyValuePropertyType2["PERCENTAGE"] = "percentage";
127989
- KeyValuePropertyType2["IMAGE"] = "image";
127990
- KeyValuePropertyType2["VIDEO"] = "video";
127991
- KeyValuePropertyType2["DATE"] = "date";
127992
- KeyValuePropertyType2["BUTTON"] = "button";
127993
- KeyValuePropertyType2["LINK"] = "link";
127994
- KeyValuePropertyType2["BOOLEAN"] = "boolean";
127995
- KeyValuePropertyType2["TAGS"] = "tags";
127996
- KeyValuePropertyType2["EMAIL"] = "email";
127997
- return KeyValuePropertyType2;
127998
- })(KeyValuePropertyType || {});
127999
- const DEFAULT_TABLE_DATA = [
128000
- {
128001
- photo: "https://cdn.superblocks.com/sample-data/rachel_kim.jpg",
128002
- name: "Rachel Kim",
128003
- email: "rachel.kim89@gmail.com",
128004
- role: "Vendor Partner",
128005
- company: "Urban Threads Co.",
128006
- status: "Active",
128007
- date_joined: "2023-04-12",
128008
- last_activity: "2025-06-07T16:20:00Z"
128009
- },
128010
- {
128011
- photo: "https://cdn.superblocks.com/sample-data/daniel_vargas.jpg",
128012
- name: "Daniel Vargas",
128013
- email: "dvargas1984@yahoo.com",
128014
- role: "Logistics Contact",
128015
- company: "Vargas Freight Ltd.",
128016
- status: "Pending",
128017
- date_joined: "2024-01-23",
128018
- last_activity: "2025-05-30T13:45:00Z"
128019
- },
128020
- {
128021
- photo: "https://cdn.superblocks.com/sample-data/sophie_liu.jpg",
128022
- name: "Sophie Liu",
128023
- email: "sophie.liu.personal@gmail.com",
128024
- role: "Retail Manager",
128025
- company: "Modern Goods",
128026
- status: "Active",
128027
- date_joined: "2022-09-10",
128028
- last_activity: "2025-06-08T09:03:00Z"
128029
- },
128030
- {
128031
- photo: "https://cdn.superblocks.com/sample-data/omar_el-sayed.jpg",
128032
- name: "Omar El-Sayed",
128033
- email: "omarsayed78@hotmail.com",
128034
- role: "Accounts Payable",
128035
- company: "Sayed Textiles",
128036
- status: "Inactive",
128037
- date_joined: "2021-06-05",
128038
- last_activity: "2024-12-18T11:40:00Z"
128039
- },
128040
- {
128041
- photo: "https://cdn.superblocks.com/sample-data/grace_nguyen.jpg",
128042
- name: "Grace Nguyen",
128043
- email: "gracenguyen23@icloud.com",
128044
- role: "Product Supplier",
128045
- company: "Green Earth Supplies",
128046
- status: "Active",
128047
- date_joined: "2023-11-03",
128048
- last_activity: "2025-06-08T17:28:00Z"
128049
- },
128050
- {
128051
- photo: "https://cdn.superblocks.com/sample-data/alex_romero.jpg",
128052
- name: "Alex Romero",
128053
- email: "alex.romero@gmail.com",
128054
- role: "Client Account Owner",
128055
- company: "Romero & Co.",
128056
- status: "Suspended",
128057
- date_joined: "2022-02-28",
128058
- last_activity: "2025-03-11T08:20:00Z"
128059
- },
128060
- {
128061
- photo: "https://cdn.superblocks.com/sample-data/lena_schmidt.jpg",
128062
- name: "Lena Schmidt",
128063
- email: "lena_schmidt92@gmx.de",
128064
- role: "Wholesale Contact",
128065
- company: "Schmidt Imports",
128066
- status: "Active",
128067
- date_joined: "2021-12-01",
128068
- last_activity: "2025-06-06T21:10:00Z"
128069
- },
128070
- {
128071
- photo: "https://cdn.superblocks.com/sample-data/devon_price.jpg",
128072
- name: "Devon Price",
128073
- email: "devon.price22@aol.com",
128074
- role: "Fulfillment Liaison",
128075
- company: "DepotLink",
128076
- status: "Active",
128077
- date_joined: "2024-05-17",
128078
- last_activity: "2025-06-08T10:42:00Z"
128079
- },
128080
- {
128081
- photo: "https://cdn.superblocks.com/sample-data/isabella_rossi.jpg",
128082
- name: "Isabella Rossi",
128083
- email: "bella.rossi@gmail.com",
128084
- role: "Procurement Agent",
128085
- company: "Rossi Global Sourcing",
128086
- status: "Pending",
128087
- date_joined: "2023-07-19",
128088
- last_activity: "2025-05-29T14:05:00Z"
128089
- },
128090
- {
128091
- photo: "https://cdn.superblocks.com/sample-data/tariq_khan.jpg",
128092
- name: "Tariq Khan",
128093
- email: "tariq.khan92@protonmail.com",
128094
- role: "International Ops Lead",
128095
- company: "CrossPort Trade Inc.",
128096
- status: "Active",
128097
- date_joined: "2022-11-08",
128098
- last_activity: "2025-06-08T16:11:00Z"
128099
- },
128100
- {
128101
- photo: "https://cdn.superblocks.com/sample-data/emily_zhang.jpg",
128102
- name: "Emily Zhang",
128103
- email: "emilyzhang.home@gmail.com",
128104
- role: "Logistics Coordinator",
128105
- company: "Zhang Export Ltd.",
128106
- status: "Active",
128107
- date_joined: "2023-03-12",
128108
- last_activity: "2025-06-08T19:02:00Z"
128109
- }
128110
- ];
128111
- const DEFAULT_TABLE_COLUMNS = {
128112
- name: {
128113
- columnType: "text",
128114
- label: "Name"
128115
- },
128116
- email: {
128117
- columnType: "email",
128118
- label: "Email"
128119
- },
128120
- role: {
128121
- columnType: "text",
128122
- label: "Role"
128123
- },
128124
- company: {
128125
- columnType: "text",
128126
- label: "Company"
128127
- },
128128
- status: {
128129
- columnType: "tags",
128130
- tagDisplayConfig: {
128131
- Active: {
128132
- color: "#14CDB733"
128133
- },
128134
- Pending: {
128135
- color: "#FF9F3533"
128136
- },
128137
- Inactive: {
128138
- color: "#a6a0a033"
128139
- },
128140
- Suspended: {
128141
- color: "#FF62A433"
128142
- }
128143
- },
128144
- label: "Status"
128145
- },
128146
- date_joined: {
128147
- columnType: "date",
128148
- inputFormat: "YYYY-MM-DD",
128149
- outputFormat: "MM-DD-YYYY",
128150
- label: "Date joined"
128151
- },
128152
- last_activity: {
128153
- columnType: "date",
128154
- inputFormat: "YYYY-MM-DDTHH:mm:ssZ",
128155
- outputFormat: "MM-DD-YYYY",
128156
- label: "Last activity"
128157
- },
128158
- photo: {
128159
- columnType: "image",
128160
- label: "Photo",
128161
- imageBorderRadius: {
128162
- topLeft: Dim.px(16),
128163
- topRight: Dim.px(16),
128164
- bottomLeft: Dim.px(16),
128165
- bottomRight: Dim.px(16)
128166
- }
128167
- }
128168
- };
128169
- const DEFAULT_TABLE_KEYS = Object.keys(DEFAULT_TABLE_COLUMNS);
128170
- const CLEARED_TABLE_COLUMNS = DEFAULT_TABLE_KEYS.reduce(
128171
- (acc, key2) => {
128172
- acc[key2] = void 0;
128173
- return acc;
128174
- },
128175
- {}
128176
- );
128177
127984
  function getParentInfo(parent) {
128178
127985
  const parentComponentMeta = getEditStore().runtimeEntitiesManager.getAnyEditorWidgetMeta(parent.id);
128179
127986
  const isParentGridLike = isWidgetGrid(parentComponentMeta);
@@ -128182,123 +127989,6 @@ function getParentInfo(parent) {
128182
127989
  type: parentComponentMeta == null ? void 0 : parentComponentMeta.type
128183
127990
  };
128184
127991
  }
128185
- function getModalChildren(modalName) {
128186
- return [
128187
- {
128188
- tagName: "Container",
128189
- properties: {
128190
- variant: Property.Static("none"),
128191
- width: Property.Dimension(Dim.fill()),
128192
- layout: Property.Static("horizontal"),
128193
- horizontalAlign: Property.Static("left")
128194
- },
128195
- children: [
128196
- {
128197
- tagName: "Text",
128198
- properties: {
128199
- text: Property.Static("Modal Title"),
128200
- textStyle: Property.Static({
128201
- variant: "heading3"
128202
- })
128203
- },
128204
- children: []
128205
- }
128206
- ]
128207
- },
128208
- {
128209
- tagName: "Container",
128210
- properties: {
128211
- variant: Property.Static("none"),
128212
- width: Property.Dimension(Dim.fill()),
128213
- horizontalAlign: Property.Static("left")
128214
- },
128215
- children: []
128216
- },
128217
- {
128218
- tagName: "Container",
128219
- properties: {
128220
- spacing: Property.Dimension(Dim.px(8)),
128221
- width: Property.Dimension(Dim.fill()),
128222
- variant: Property.Static("none"),
128223
- layout: Property.Static("horizontal"),
128224
- horizontalAlign: Property.Static("right")
128225
- },
128226
- children: [
128227
- {
128228
- tagName: "Button",
128229
- properties: {
128230
- label: Property.Static("Cancel"),
128231
- variant: Property.Static("secondary"),
128232
- onClick: Property.Event([
128233
- {
128234
- id: "closeModal",
128235
- type: TriggerStepType.CONTROL_MODAL,
128236
- name: modalName,
128237
- action: "close"
128238
- }
128239
- ])
128240
- },
128241
- children: []
128242
- },
128243
- {
128244
- tagName: "Button",
128245
- properties: {
128246
- label: Property.Static("Confirm")
128247
- },
128248
- children: []
128249
- }
128250
- ]
128251
- }
128252
- ];
128253
- }
128254
- function getSlideoutChildren() {
128255
- return [
128256
- {
128257
- tagName: "Container",
128258
- properties: {
128259
- variant: Property.Static("none"),
128260
- width: Property.Dimension(Dim.fill()),
128261
- layout: Property.Static("horizontal"),
128262
- horizontalAlign: Property.Static("left")
128263
- },
128264
- children: [
128265
- {
128266
- tagName: "Text",
128267
- properties: {
128268
- text: Property.Static("Slideout Title"),
128269
- textStyle: Property.Static({
128270
- variant: "heading3"
128271
- })
128272
- },
128273
- children: []
128274
- }
128275
- ]
128276
- },
128277
- {
128278
- tagName: "Container",
128279
- properties: {
128280
- variant: Property.Static("none"),
128281
- width: Property.Dimension(Dim.fill()),
128282
- height: Property.Dimension(Dim.fill()),
128283
- horizontalAlign: Property.Static("left"),
128284
- layout: Property.Static("vertical")
128285
- },
128286
- children: []
128287
- }
128288
- ];
128289
- }
128290
- function getSectionChildren() {
128291
- return [
128292
- {
128293
- tagName: "Column",
128294
- properties: {
128295
- width: Property.Dimension(Dim.fill()),
128296
- height: Property.Dimension(Dim.fill())
128297
- },
128298
- children: []
128299
- }
128300
- ];
128301
- }
128302
127992
  function getTriggerComponent({
128303
127993
  componentType,
128304
127994
  parentElement,
@@ -128344,11 +128034,41 @@ function getTriggerComponent({
128344
128034
  }
128345
128035
  throw new Error("Unhandled component type: " + componentType);
128346
128036
  }
128347
- function getComponentBaseProperties(componentType, parentInfo) {
128348
- var _a2, _b2, _c2, _d2;
128037
+ const generateUniqueName = (componentType) => {
128038
+ const baseName = componentType;
128039
+ let counter2 = 1;
128040
+ let name = `${baseName}${counter2}`;
128041
+ while (rootStore.nameManager.hasEntityWithName(name)) {
128042
+ counter2++;
128043
+ name = `${baseName}${counter2}`;
128044
+ }
128045
+ return name;
128046
+ };
128047
+ function getBinding({
128048
+ componentType,
128049
+ editorTemplateCreateRequest,
128050
+ parentInfo
128051
+ }) {
128349
128052
  const customComponents = rootStore.componentRegistry.customComponentList;
128053
+ if ((editorTemplateCreateRequest == null ? void 0 : editorTemplateCreateRequest.generateBinding) === true) {
128054
+ return Property.Static(generateUniqueName(componentType));
128055
+ } else if (typeof (editorTemplateCreateRequest == null ? void 0 : editorTemplateCreateRequest.generateBinding) === "string") {
128056
+ return Property.Static(editorTemplateCreateRequest.generateBinding);
128057
+ } else {
128058
+ const shouldProvideAName = (
128059
+ // All components dropped in a grid
128060
+ parentInfo.isGridLike || // All custom components
128061
+ customComponents.includes(componentType)
128062
+ );
128063
+ if (shouldProvideAName) {
128064
+ return Property.Static(generateUniqueName(componentType));
128065
+ }
128066
+ return void 0;
128067
+ }
128068
+ }
128069
+ function getComponentBaseProperties(componentType, parentInfo) {
128070
+ var _a2, _b2, _c2;
128350
128071
  let properties2 = {};
128351
- let children = [];
128352
128072
  const editorTemplates = rootStore.componentRegistry.getEditorTemplates(componentType);
128353
128073
  if (editorTemplates && editorTemplates.length > 1) {
128354
128074
  throw new Error(
@@ -128356,142 +128076,29 @@ function getComponentBaseProperties(componentType, parentInfo) {
128356
128076
  );
128357
128077
  }
128358
128078
  const context2 = {
128359
- generateUniqueName: getUniqueName
128079
+ generateUniqueName,
128080
+ parentInfo
128360
128081
  };
128361
- const editorTemplateOnCreate = (_b2 = (_a2 = editorTemplates == null ? void 0 : editorTemplates[0]) == null ? void 0 : _a2.create) == null ? void 0 : _b2.call(_a2, context2);
128362
- if (editorTemplateOnCreate && Array.isArray(editorTemplateOnCreate)) {
128082
+ const editorTemplateCreateRequest = (_b2 = (_a2 = editorTemplates == null ? void 0 : editorTemplates[0]) == null ? void 0 : _a2.create) == null ? void 0 : _b2.call(_a2, context2);
128083
+ if (editorTemplateCreateRequest && Array.isArray(editorTemplateCreateRequest)) {
128363
128084
  throw new Error(
128364
- `Multiple creates for on editor template are not supported yet. Found ${editorTemplateOnCreate.length} for component type: ${componentType}.`
128365
- );
128366
- }
128367
- if (editorTemplateOnCreate && editorTemplateOnCreate.bind) {
128368
- properties2.name = Property.Static(editorTemplateOnCreate.bind);
128369
- } else {
128370
- const shouldProvideAName = (
128371
- // TODO: migrate these components
128372
- componentType === "Dropdown" || componentType === "DatePicker" || componentType === "Checkbox" || componentType === "Switch" || componentType === "Modal" || componentType === "Slideout" || componentType === "Table" || // All components dropped in a grid
128373
- parentInfo.isGridLike || // All custom components
128374
- customComponents.includes(componentType)
128085
+ `Multiple creates for editor template are not supported yet. Found ${editorTemplateCreateRequest.length} for component type: ${componentType}.`
128375
128086
  );
128376
- if (shouldProvideAName) {
128377
- properties2.name = Property.Static(getUniqueName(componentType));
128378
- }
128379
- }
128380
- const isContainer = componentType === "Section" || componentType === "Column" || componentType === "Container" || componentType === "Modal" || componentType === "Slideout";
128381
- if (isContainer && componentType !== "Modal" && componentType !== "Slideout") {
128382
- properties2.width = Property.Dimension(Dim.fill());
128383
128087
  }
128384
- switch (componentType) {
128385
- case "Text":
128386
- properties2.text = Property.Static("Hello, world!");
128387
- break;
128388
- case "Button":
128389
- properties2.label = Property.Static("Submit");
128390
- properties2.onClick = Property.Event([
128391
- {
128392
- type: TriggerStepType.RUN_JS,
128393
- code: "() => console.log('Button clicked')",
128394
- id: "buttonClick"
128395
- }
128396
- ]);
128397
- break;
128398
- case "Image":
128399
- properties2.src = Property.Static(
128400
- "https://lowcode.s3.us-west-2.amazonaws.com/eilish-billie.jpeg"
128401
- );
128402
- properties2.fillContainer = Property.Static(true);
128403
- properties2.width = parentInfo.isGridLike ? Property.Dimension(Dim.col(4)) : Property.Dimension(Dim.px(300));
128404
- properties2.height = Property.Dimension(Dim.fit());
128405
- break;
128406
- case "KeyValue":
128407
- properties2.sourceData = Property.Static({
128408
- id: 123,
128409
- name: "John Smith",
128410
- description: "John has been cardholder for 3 years",
128411
- createdDate: "10-23-2012"
128412
- });
128413
- properties2.propertiesOrder = Property.Static([
128414
- "id",
128415
- "name",
128416
- "description",
128417
- "createdDate"
128418
- ]);
128419
- properties2.properties = Property.Static({
128420
- id: {
128421
- id: "id",
128422
- key: "id",
128423
- type: KeyValuePropertyType.NUMBER,
128424
- isVisible: true,
128425
- isDerived: false
128426
- },
128427
- name: {
128428
- id: "name",
128429
- key: "name",
128430
- type: KeyValuePropertyType.TEXT,
128431
- isVisible: true,
128432
- isDerived: false
128433
- },
128434
- description: {
128435
- id: "description",
128436
- key: "description",
128437
- type: KeyValuePropertyType.TEXT,
128438
- isVisible: true,
128439
- isDerived: false
128440
- },
128441
- createdDate: {
128442
- id: "createdDate",
128443
- key: "createdDate",
128444
- type: KeyValuePropertyType.DATE,
128445
- isVisible: true,
128446
- isDerived: false
128447
- }
128448
- });
128449
- break;
128450
- case "Dropdown":
128451
- properties2.label = Property.Static("Label");
128452
- properties2.options = Property.Computed([
128453
- { label: "All statuses", value: "all" },
128454
- { label: "Pending", value: "pending" },
128455
- { label: "Processing", value: "processing" },
128456
- { label: "Completed", value: "completed" },
128457
- { label: "Failed", value: "failed" },
128458
- { label: "Cancelled", value: "cancelled" },
128459
- { label: "Rejected", value: "rejected" },
128460
- { label: "On hold", value: "on_hold" }
128461
- ]);
128462
- break;
128463
- case "Modal":
128464
- children = getModalChildren((_c2 = properties2.name) == null ? void 0 : _c2.value);
128465
- break;
128466
- case "Slideout":
128467
- children = getSlideoutChildren();
128468
- break;
128469
- case "Checkbox":
128470
- properties2.label = Property.Static("Label");
128471
- break;
128472
- case "DatePicker":
128473
- properties2.label = Property.Static("Label");
128474
- properties2.defaultDate = Property.Static((/* @__PURE__ */ new Date()).toISOString());
128475
- break;
128476
- case "Switch":
128477
- properties2.label = Property.Static("Label");
128478
- break;
128479
- case "Section":
128480
- children = getSectionChildren();
128481
- break;
128482
- case "Table":
128483
- properties2.tableData = Property.Static(DEFAULT_TABLE_DATA);
128484
- properties2.columns = Property.Static(DEFAULT_TABLE_COLUMNS);
128485
- properties2.header = Property.Static("Customers");
128486
- properties2.searchPlaceholder = Property.Static("Search...");
128487
- break;
128488
- }
128489
- if (editorTemplateOnCreate == null ? void 0 : editorTemplateOnCreate.properties) {
128088
+ if (editorTemplateCreateRequest == null ? void 0 : editorTemplateCreateRequest.properties) {
128490
128089
  properties2 = {
128491
128090
  ...properties2,
128492
- ...editorTemplateOnCreate.properties
128091
+ ...editorTemplateCreateRequest.properties
128493
128092
  };
128494
128093
  }
128094
+ const binding = getBinding({
128095
+ componentType,
128096
+ editorTemplateCreateRequest,
128097
+ parentInfo
128098
+ });
128099
+ if (binding) {
128100
+ properties2.name = binding;
128101
+ }
128495
128102
  const { width, height, ...restProperties } = properties2;
128496
128103
  const safeDimensions = parentInfo.isGridLike ? filterSafeGridDimensionProperties({
128497
128104
  width: width == null ? void 0 : width.value,
@@ -128505,20 +128112,10 @@ function getComponentBaseProperties(componentType, parentInfo) {
128505
128112
  ...restProperties,
128506
128113
  ...safeDimensions
128507
128114
  },
128508
- children,
128509
- name: (_d2 = properties2.name) == null ? void 0 : _d2.value
128115
+ children: (editorTemplateCreateRequest == null ? void 0 : editorTemplateCreateRequest.children) ?? [],
128116
+ name: (_c2 = properties2.name) == null ? void 0 : _c2.value
128510
128117
  };
128511
128118
  }
128512
- const getUniqueName = (componentType) => {
128513
- const baseName = componentType;
128514
- let counter2 = 1;
128515
- let name = `${baseName}${counter2}`;
128516
- while (rootStore.nameManager.hasEntityWithName(name)) {
128517
- counter2++;
128518
- name = `${baseName}${counter2}`;
128519
- }
128520
- return name;
128521
- };
128522
128119
  function checkComponentForParentTypeBeforeCreating(componentType, parentType) {
128523
128120
  if (componentType === "Section" && parentType !== "Page") {
128524
128121
  return false;
@@ -130850,6 +130447,21 @@ function useTypographyStyling({
130850
130447
  style: style2
130851
130448
  };
130852
130449
  }
130450
+ const editorTemplate$c = {
130451
+ create: () => ({
130452
+ type: "Button",
130453
+ properties: {
130454
+ label: Property.Static("Button"),
130455
+ onClick: Property.Event([
130456
+ {
130457
+ type: TriggerStepType.RUN_JS,
130458
+ code: "() => console.log('Button clicked')",
130459
+ id: "buttonClick"
130460
+ }
130461
+ ])
130462
+ }
130463
+ })
130464
+ };
130853
130465
  const DEFAULT_ICON_SPACING = 8;
130854
130466
  const DEFAULT_ICON_SIZE = 16;
130855
130467
  const ICON_POSITION_OPTIONS = [
@@ -131400,7 +131012,7 @@ const Button$3 = registerComponent$1(
131400
131012
  }
131401
131013
  ) });
131402
131014
  }
131403
- );
131015
+ ).addEditorTemplate(editorTemplate$c);
131404
131016
  const useAlignmentStyles = ({
131405
131017
  layout,
131406
131018
  verticalAlign,
@@ -131802,6 +131414,29 @@ const InternalVStack = (props2) => {
131802
131414
  const InternalHStack = (props2) => {
131803
131415
  return /* @__PURE__ */ jsxRuntimeExports.jsx(InternalStack, { direction: "row", ...props2 });
131804
131416
  };
131417
+ function getSectionChildren() {
131418
+ return [
131419
+ {
131420
+ tagName: "Column",
131421
+ properties: {
131422
+ width: Property.Dimension(Dim.fill()),
131423
+ height: Property.Dimension(Dim.fill())
131424
+ },
131425
+ children: []
131426
+ }
131427
+ ];
131428
+ }
131429
+ const editorTemplate$b = {
131430
+ create: () => {
131431
+ return {
131432
+ type: "Section",
131433
+ children: getSectionChildren(),
131434
+ properties: {
131435
+ width: Property.Dimension(Dim.fill())
131436
+ }
131437
+ };
131438
+ }
131439
+ };
131805
131440
  const DEFAULT_SECTION_PADDING = {
131806
131441
  left: Dim.px(0),
131807
131442
  right: Dim.px(0),
@@ -131878,7 +131513,7 @@ const Section2 = registerComponent$1(
131878
131513
  }
131879
131514
  );
131880
131515
  }
131881
- );
131516
+ ).addEditorTemplate(editorTemplate$b);
131882
131517
  const generateClassName = (seed2) => {
131883
131518
  return `superblocks_widget_${seed2}`;
131884
131519
  };
@@ -132188,6 +131823,14 @@ const StaticComponent = ({
132188
131823
  }, [staticHeight]);
132189
131824
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { ...style2, width: "100%", height: "100%" }, children });
132190
131825
  };
131826
+ const editorTemplate$a = {
131827
+ create: () => ({
131828
+ type: "Container",
131829
+ properties: {
131830
+ width: Property.Dimension(Dim.fill())
131831
+ }
131832
+ })
131833
+ };
132191
131834
  const propertiesDefinition$g = {
132192
131835
  layout: Section$1.category(PropsPanelCategory.Layout).add(
132193
131836
  containerLayout({
@@ -132350,7 +131993,15 @@ const Container = registerComponent$1(
132350
131993
  propertiesDefinition: propertiesDefinition$g
132351
131994
  },
132352
131995
  InternalContainer
132353
- );
131996
+ ).addEditorTemplate(editorTemplate$a);
131997
+ const editorTemplate$9 = {
131998
+ create: () => ({
131999
+ type: "Container",
132000
+ properties: {
132001
+ width: Property.Dimension(Dim.fill())
132002
+ }
132003
+ })
132004
+ };
132354
132005
  const propertiesDefinition$f = {
132355
132006
  layout: Section$1.category(PropsPanelCategory.Layout).add(
132356
132007
  containerLayout({
@@ -132416,11 +132067,11 @@ const Column = registerComponent$1(
132416
132067
  }
132417
132068
  );
132418
132069
  }
132419
- );
132420
- const editorTemplate = {
132421
- create: (context2) => ({
132070
+ ).addEditorTemplate(editorTemplate$9);
132071
+ const editorTemplate$8 = {
132072
+ create: () => ({
132422
132073
  type: "Input",
132423
- bind: context2.generateUniqueName("Input"),
132074
+ generateBinding: true,
132424
132075
  properties: {
132425
132076
  label: Property.Static("Label")
132426
132077
  }
@@ -140090,7 +139741,7 @@ const Input2 = registerComponent$1(
140090
139741
  }
140091
139742
  ) });
140092
139743
  }
140093
- ).addEditorTemplate(editorTemplate);
139744
+ ).addEditorTemplate(editorTemplate$8);
140094
139745
  const propertiesDefinition$d = {
140095
139746
  contents: Section$1.category(PropsPanelCategory.Content).children({
140096
139747
  columns: Prop.array().readAndWrite().propertiesPanel({
@@ -141959,6 +141610,14 @@ const AutolinkedText = (props2) => {
141959
141610
  }
141960
141611
  );
141961
141612
  };
141613
+ const editorTemplate$7 = {
141614
+ create: () => ({
141615
+ type: "Text",
141616
+ properties: {
141617
+ text: Property.Static("Hello, world!")
141618
+ }
141619
+ })
141620
+ };
141962
141621
  var button$1 = {};
141963
141622
  var interopRequireDefault = { exports: {} };
141964
141623
  var hasRequiredInteropRequireDefault;
@@ -147156,7 +146815,7 @@ const Text$1 = registerComponent$1(
147156
146815
  }
147157
146816
  ) });
147158
146817
  }
147159
- );
146818
+ ).addEditorTemplate(editorTemplate$7);
147160
146819
  function useDialogEditing(props2) {
147161
146820
  const { isOpen, instanceId } = props2;
147162
146821
  const { features, isEditing } = useEditor();
@@ -147220,6 +146879,85 @@ function useDialogEditing(props2) {
147220
146879
  prevIsOpenRef.current = isOpen;
147221
146880
  }, [isOpen]);
147222
146881
  }
146882
+ function getModalChildren(modalName) {
146883
+ return [
146884
+ {
146885
+ tagName: "Container",
146886
+ properties: {
146887
+ variant: Property.Static("none"),
146888
+ width: Property.Dimension(Dim.fill()),
146889
+ layout: Property.Static("horizontal"),
146890
+ horizontalAlign: Property.Static("left")
146891
+ },
146892
+ children: [
146893
+ {
146894
+ tagName: "Text",
146895
+ properties: {
146896
+ text: Property.Static("Modal Title"),
146897
+ textStyle: Property.Static({
146898
+ variant: "heading3"
146899
+ })
146900
+ },
146901
+ children: []
146902
+ }
146903
+ ]
146904
+ },
146905
+ {
146906
+ tagName: "Container",
146907
+ properties: {
146908
+ variant: Property.Static("none"),
146909
+ width: Property.Dimension(Dim.fill()),
146910
+ horizontalAlign: Property.Static("left")
146911
+ },
146912
+ children: []
146913
+ },
146914
+ {
146915
+ tagName: "Container",
146916
+ properties: {
146917
+ spacing: Property.Dimension(Dim.px(8)),
146918
+ width: Property.Dimension(Dim.fill()),
146919
+ variant: Property.Static("none"),
146920
+ layout: Property.Static("horizontal"),
146921
+ horizontalAlign: Property.Static("right")
146922
+ },
146923
+ children: [
146924
+ {
146925
+ tagName: "Button",
146926
+ properties: {
146927
+ label: Property.Static("Cancel"),
146928
+ variant: Property.Static("secondary"),
146929
+ onClick: Property.Event([
146930
+ {
146931
+ id: "closeModal",
146932
+ type: TriggerStepType.CONTROL_MODAL,
146933
+ name: modalName,
146934
+ action: "close"
146935
+ }
146936
+ ])
146937
+ },
146938
+ children: []
146939
+ },
146940
+ {
146941
+ tagName: "Button",
146942
+ properties: {
146943
+ label: Property.Static("Confirm")
146944
+ },
146945
+ children: []
146946
+ }
146947
+ ]
146948
+ }
146949
+ ];
146950
+ }
146951
+ const editorTemplate$6 = {
146952
+ create: (context2) => {
146953
+ const modalName = context2.generateUniqueName("Modal");
146954
+ return {
146955
+ type: "Modal",
146956
+ generateBinding: modalName,
146957
+ children: getModalChildren(modalName)
146958
+ };
146959
+ }
146960
+ };
147223
146961
  const MODAL_BORDER_RADIUS = 4;
147224
146962
  const MODAL_WIDTH_PRESETS = {
147225
146963
  // in percentages
@@ -147565,7 +147303,52 @@ const Modal = registerComponent$1(
147565
147303
  }
147566
147304
  );
147567
147305
  }
147568
- );
147306
+ ).addEditorTemplate(editorTemplate$6);
147307
+ function getSlideoutChildren() {
147308
+ return [
147309
+ {
147310
+ tagName: "Container",
147311
+ properties: {
147312
+ variant: Property.Static("none"),
147313
+ width: Property.Dimension(Dim.fill()),
147314
+ layout: Property.Static("horizontal"),
147315
+ horizontalAlign: Property.Static("left")
147316
+ },
147317
+ children: [
147318
+ {
147319
+ tagName: "Text",
147320
+ properties: {
147321
+ text: Property.Static("Slideout Title"),
147322
+ textStyle: Property.Static({
147323
+ variant: "heading3"
147324
+ })
147325
+ },
147326
+ children: []
147327
+ }
147328
+ ]
147329
+ },
147330
+ {
147331
+ tagName: "Container",
147332
+ properties: {
147333
+ variant: Property.Static("none"),
147334
+ width: Property.Dimension(Dim.fill()),
147335
+ height: Property.Dimension(Dim.fill()),
147336
+ horizontalAlign: Property.Static("left"),
147337
+ layout: Property.Static("vertical")
147338
+ },
147339
+ children: []
147340
+ }
147341
+ ];
147342
+ }
147343
+ const editorTemplate$5 = {
147344
+ create: () => {
147345
+ return {
147346
+ type: "Slideout",
147347
+ generateBinding: true,
147348
+ children: getSlideoutChildren()
147349
+ };
147350
+ }
147351
+ };
147569
147352
  const SlideoutSize = {
147570
147353
  xsmall: "xsmall",
147571
147354
  small: "small",
@@ -149919,7 +149702,7 @@ const Slideout = registerComponent$1(
149919
149702
  }
149920
149703
  );
149921
149704
  }
149922
- );
149705
+ ).addEditorTemplate(editorTemplate$5);
149923
149706
  const RowDensity = {
149924
149707
  "extra-small": "extra-small",
149925
149708
  small: "small",
@@ -150096,6 +149879,196 @@ const tagColorPalette = [
150096
149879
  "#9D585833",
150097
149880
  "#FF484833"
150098
149881
  ];
149882
+ const DEFAULT_TABLE_DATA = [
149883
+ {
149884
+ photo: "https://cdn.superblocks.com/sample-data/rachel_kim.jpg",
149885
+ name: "Rachel Kim",
149886
+ email: "rachel.kim89@gmail.com",
149887
+ role: "Vendor Partner",
149888
+ company: "Urban Threads Co.",
149889
+ status: "Active",
149890
+ date_joined: "2023-04-12",
149891
+ last_activity: "2025-06-07T16:20:00Z"
149892
+ },
149893
+ {
149894
+ photo: "https://cdn.superblocks.com/sample-data/daniel_vargas.jpg",
149895
+ name: "Daniel Vargas",
149896
+ email: "dvargas1984@yahoo.com",
149897
+ role: "Logistics Contact",
149898
+ company: "Vargas Freight Ltd.",
149899
+ status: "Pending",
149900
+ date_joined: "2024-01-23",
149901
+ last_activity: "2025-05-30T13:45:00Z"
149902
+ },
149903
+ {
149904
+ photo: "https://cdn.superblocks.com/sample-data/sophie_liu.jpg",
149905
+ name: "Sophie Liu",
149906
+ email: "sophie.liu.personal@gmail.com",
149907
+ role: "Retail Manager",
149908
+ company: "Modern Goods",
149909
+ status: "Active",
149910
+ date_joined: "2022-09-10",
149911
+ last_activity: "2025-06-08T09:03:00Z"
149912
+ },
149913
+ {
149914
+ photo: "https://cdn.superblocks.com/sample-data/omar_el-sayed.jpg",
149915
+ name: "Omar El-Sayed",
149916
+ email: "omarsayed78@hotmail.com",
149917
+ role: "Accounts Payable",
149918
+ company: "Sayed Textiles",
149919
+ status: "Inactive",
149920
+ date_joined: "2021-06-05",
149921
+ last_activity: "2024-12-18T11:40:00Z"
149922
+ },
149923
+ {
149924
+ photo: "https://cdn.superblocks.com/sample-data/grace_nguyen.jpg",
149925
+ name: "Grace Nguyen",
149926
+ email: "gracenguyen23@icloud.com",
149927
+ role: "Product Supplier",
149928
+ company: "Green Earth Supplies",
149929
+ status: "Active",
149930
+ date_joined: "2023-11-03",
149931
+ last_activity: "2025-06-08T17:28:00Z"
149932
+ },
149933
+ {
149934
+ photo: "https://cdn.superblocks.com/sample-data/alex_romero.jpg",
149935
+ name: "Alex Romero",
149936
+ email: "alex.romero@gmail.com",
149937
+ role: "Client Account Owner",
149938
+ company: "Romero & Co.",
149939
+ status: "Suspended",
149940
+ date_joined: "2022-02-28",
149941
+ last_activity: "2025-03-11T08:20:00Z"
149942
+ },
149943
+ {
149944
+ photo: "https://cdn.superblocks.com/sample-data/lena_schmidt.jpg",
149945
+ name: "Lena Schmidt",
149946
+ email: "lena_schmidt92@gmx.de",
149947
+ role: "Wholesale Contact",
149948
+ company: "Schmidt Imports",
149949
+ status: "Active",
149950
+ date_joined: "2021-12-01",
149951
+ last_activity: "2025-06-06T21:10:00Z"
149952
+ },
149953
+ {
149954
+ photo: "https://cdn.superblocks.com/sample-data/devon_price.jpg",
149955
+ name: "Devon Price",
149956
+ email: "devon.price22@aol.com",
149957
+ role: "Fulfillment Liaison",
149958
+ company: "DepotLink",
149959
+ status: "Active",
149960
+ date_joined: "2024-05-17",
149961
+ last_activity: "2025-06-08T10:42:00Z"
149962
+ },
149963
+ {
149964
+ photo: "https://cdn.superblocks.com/sample-data/isabella_rossi.jpg",
149965
+ name: "Isabella Rossi",
149966
+ email: "bella.rossi@gmail.com",
149967
+ role: "Procurement Agent",
149968
+ company: "Rossi Global Sourcing",
149969
+ status: "Pending",
149970
+ date_joined: "2023-07-19",
149971
+ last_activity: "2025-05-29T14:05:00Z"
149972
+ },
149973
+ {
149974
+ photo: "https://cdn.superblocks.com/sample-data/tariq_khan.jpg",
149975
+ name: "Tariq Khan",
149976
+ email: "tariq.khan92@protonmail.com",
149977
+ role: "International Ops Lead",
149978
+ company: "CrossPort Trade Inc.",
149979
+ status: "Active",
149980
+ date_joined: "2022-11-08",
149981
+ last_activity: "2025-06-08T16:11:00Z"
149982
+ },
149983
+ {
149984
+ photo: "https://cdn.superblocks.com/sample-data/emily_zhang.jpg",
149985
+ name: "Emily Zhang",
149986
+ email: "emilyzhang.home@gmail.com",
149987
+ role: "Logistics Coordinator",
149988
+ company: "Zhang Export Ltd.",
149989
+ status: "Active",
149990
+ date_joined: "2023-03-12",
149991
+ last_activity: "2025-06-08T19:02:00Z"
149992
+ }
149993
+ ];
149994
+ const DEFAULT_TABLE_COLUMNS = {
149995
+ name: {
149996
+ columnType: "text",
149997
+ label: "Name"
149998
+ },
149999
+ email: {
150000
+ columnType: "email",
150001
+ label: "Email"
150002
+ },
150003
+ role: {
150004
+ columnType: "text",
150005
+ label: "Role"
150006
+ },
150007
+ company: {
150008
+ columnType: "text",
150009
+ label: "Company"
150010
+ },
150011
+ status: {
150012
+ columnType: "tags",
150013
+ tagDisplayConfig: {
150014
+ Active: {
150015
+ color: "#14CDB733"
150016
+ },
150017
+ Pending: {
150018
+ color: "#FF9F3533"
150019
+ },
150020
+ Inactive: {
150021
+ color: "#a6a0a033"
150022
+ },
150023
+ Suspended: {
150024
+ color: "#FF62A433"
150025
+ }
150026
+ },
150027
+ label: "Status"
150028
+ },
150029
+ date_joined: {
150030
+ columnType: "date",
150031
+ inputFormat: "YYYY-MM-DD",
150032
+ outputFormat: "MM-DD-YYYY",
150033
+ label: "Date joined"
150034
+ },
150035
+ last_activity: {
150036
+ columnType: "date",
150037
+ inputFormat: "YYYY-MM-DDTHH:mm:ssZ",
150038
+ outputFormat: "MM-DD-YYYY",
150039
+ label: "Last activity"
150040
+ },
150041
+ photo: {
150042
+ columnType: "image",
150043
+ label: "Photo",
150044
+ imageBorderRadius: {
150045
+ topLeft: Dim.px(16),
150046
+ topRight: Dim.px(16),
150047
+ bottomLeft: Dim.px(16),
150048
+ bottomRight: Dim.px(16)
150049
+ }
150050
+ }
150051
+ };
150052
+ const DEFAULT_TABLE_KEYS = Object.keys(DEFAULT_TABLE_COLUMNS);
150053
+ const CLEARED_TABLE_COLUMNS = DEFAULT_TABLE_KEYS.reduce(
150054
+ (acc, key2) => {
150055
+ acc[key2] = void 0;
150056
+ return acc;
150057
+ },
150058
+ {}
150059
+ );
150060
+ const editorTemplate$4 = {
150061
+ create: () => ({
150062
+ type: "Table",
150063
+ generateBinding: true,
150064
+ properties: {
150065
+ tableData: Property.Static(DEFAULT_TABLE_DATA),
150066
+ columns: Property.Static(DEFAULT_TABLE_COLUMNS),
150067
+ header: Property.Static("Customers"),
150068
+ searchPlaceholder: Property.Static("Search...")
150069
+ }
150070
+ })
150071
+ };
150099
150072
  const CurrencyList = CC.getCodes();
150100
150073
  const tableColumnTypes = [
150101
150074
  {
@@ -159787,14 +159760,14 @@ function getLoaderFn(options) {
159787
159760
  if (!(loader === "all")) return [3, 3];
159788
159761
  return [4, import(
159789
159762
  /* webpackChunkName: "blueprint-icons-all-paths-loader" */
159790
- "./allPathsLoader-C0am3WW9.js"
159763
+ "./allPathsLoader-BGvU53aT.js"
159791
159764
  )];
159792
159765
  case 2:
159793
159766
  return [2, _b2.sent().allPathsLoader];
159794
159767
  case 3:
159795
159768
  return [4, import(
159796
159769
  /* webpackChunkName: "blueprint-icons-split-paths-by-size-loader" */
159797
- "./splitPathsBySizeLoader-Co86rhhm.js"
159770
+ "./splitPathsBySizeLoader-B1MrW6Zz.js"
159798
159771
  )];
159799
159772
  case 4:
159800
159773
  return [2, _b2.sent().splitPathsBySizeLoader];
@@ -191486,7 +191459,7 @@ const Table = registerComponent$1(
191486
191459
  }
191487
191460
  ) });
191488
191461
  }
191489
- );
191462
+ ).addEditorTemplate(editorTemplate$4);
191490
191463
  var NS = getClassNamespace$1();
191491
191464
  var MULTISELECT = "".concat(NS, "-multi-select");
191492
191465
  var MULTISELECT_POPOVER = "".concat(MULTISELECT, "-popover");
@@ -195108,6 +195081,25 @@ const ListItemRenderer = (itemProps) => {
195108
195081
  ) }, itemProps.index);
195109
195082
  };
195110
195083
  ListItemRenderer.displayName = "SelectListItemRenderer";
195084
+ const editorTemplate$3 = {
195085
+ create: () => ({
195086
+ type: "Dropdown",
195087
+ generateBinding: true,
195088
+ properties: {
195089
+ label: Property.Static("Label"),
195090
+ options: Property.Computed([
195091
+ { label: "All statuses", value: "all" },
195092
+ { label: "Pending", value: "pending" },
195093
+ { label: "Processing", value: "processing" },
195094
+ { label: "Completed", value: "completed" },
195095
+ { label: "Failed", value: "failed" },
195096
+ { label: "Cancelled", value: "cancelled" },
195097
+ { label: "Rejected", value: "rejected" },
195098
+ { label: "On hold", value: "on_hold" }
195099
+ ])
195100
+ }
195101
+ })
195102
+ };
195111
195103
  const DropdownEntireObjectOption = "$$ENTIRE_OBJECT";
195112
195104
  const normalizeFunction$1 = (val, transformationValue) => {
195113
195105
  if (transformationValue === DropdownEntireObjectOption) {
@@ -195669,7 +195661,7 @@ const Dropdown = registerComponent$1(
195669
195661
  }
195670
195662
  ) }) });
195671
195663
  }
195672
- );
195664
+ ).addEditorTemplate(editorTemplate$3);
195673
195665
  const CustomComponent = registerComponent$1(
195674
195666
  "CustomComponent",
195675
195667
  {
@@ -195843,6 +195835,15 @@ class CheckboxComponent extends React__default.PureComponent {
195843
195835
  );
195844
195836
  }
195845
195837
  }
195838
+ const editorTemplate$2 = {
195839
+ create: () => ({
195840
+ type: "Checkbox",
195841
+ generateBinding: true,
195842
+ properties: {
195843
+ label: Property.Static("Label")
195844
+ }
195845
+ })
195846
+ };
195846
195847
  const propertiesDefinition$7 = {
195847
195848
  general: Section$1.category(PropsPanelCategory.Content).children({
195848
195849
  label: Prop.string().readAndWrite().default("").propertiesPanel({
@@ -195970,7 +195971,7 @@ const Checkbox = registerComponent$1(
195970
195971
  }
195971
195972
  ) });
195972
195973
  }
195973
- );
195974
+ ).addEditorTemplate(editorTemplate$2);
195974
195975
  const adjustDateFormatSideEffect = (params) => {
195975
195976
  const widgetMeta = params.widgetMeta;
195976
195977
  const widgetState = params.widgetState;
@@ -196344,6 +196345,15 @@ const DatePicker = registerComponent$1(
196344
196345
  ) });
196345
196346
  }
196346
196347
  );
196348
+ const editorTemplate$1 = {
196349
+ create: () => ({
196350
+ type: "Switch",
196351
+ generateBinding: true,
196352
+ properties: {
196353
+ label: Property.Static("Label")
196354
+ }
196355
+ })
196356
+ };
196347
196357
  const propertiesDefinition$5 = {
196348
196358
  general: Section$1.category(PropsPanelCategory.Content).children({
196349
196359
  label: Prop.string().readAndWrite().default("").propertiesPanel({
@@ -196629,10 +196639,10 @@ const Switch = registerComponent$1(
196629
196639
  props2.sourceId
196630
196640
  ) });
196631
196641
  }
196632
- );
196642
+ ).addEditorTemplate(editorTemplate$1);
196633
196643
  const propertiesDefinition$4 = {
196634
196644
  general: Section$1.category(PropsPanelCategory.Content).children({
196635
- icon: Prop.string().readAndWrite().default("info").propertiesPanel({
196645
+ icon: Prop.string().readAndWrite().propertiesPanel({
196636
196646
  label: "Icon",
196637
196647
  helpText: "Select an icon",
196638
196648
  controlType: "ICON_SELECTOR"
@@ -196720,6 +196730,19 @@ const Icon = registerComponent$1(
196720
196730
  );
196721
196731
  }
196722
196732
  );
196733
+ const editorTemplate = {
196734
+ create: (context2) => ({
196735
+ type: "Image",
196736
+ properties: {
196737
+ src: Property.Static(
196738
+ "https://lowcode.s3.us-west-2.amazonaws.com/eilish-billie.jpeg"
196739
+ ),
196740
+ fillContainer: Property.Static(true),
196741
+ width: context2.parentInfo.isGridLike ? Property.Dimension(Dim.col(4)) : Property.Dimension(Dim.px(300)),
196742
+ height: Property.Dimension(Dim.fit())
196743
+ }
196744
+ })
196745
+ };
196723
196746
  const StyledImage = qe$1.img`
196724
196747
  opacity: 0;
196725
196748
  pointer-events: none;
@@ -196951,7 +196974,7 @@ const Image = registerComponent$1(
196951
196974
  }
196952
196975
  ) });
196953
196976
  }
196954
- );
196977
+ ).addEditorTemplate(editorTemplate);
196955
196978
  const propertiesDefinition$2 = {
196956
196979
  general: Section$1.category(PropsPanelCategory.Uncategorized).propertiesPanel({ showHeader: false }).children({
196957
196980
  defaultValue: Prop.any().readAndWrite().propertiesPanel({
@@ -200707,4 +200730,4 @@ export {
200707
200730
  setQueryParams as y,
200708
200731
  download as z
200709
200732
  };
200710
- //# sourceMappingURL=index-CGJkVHjX.js.map
200733
+ //# sourceMappingURL=index-Cqcbj1GQ.js.map