@intechstudio/grid-protocol 1.20250630.1242 → 1.20250709.938

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.
@@ -20,10 +20,11 @@ export declare enum EventType {
20
20
  UTILITY = "utility",
21
21
  MIDIRX = "midi rx",
22
22
  TIMER = "timer",
23
- ENDLESS = "endless"
23
+ ENDLESS = "endless",
24
+ DRAW = "draw"
24
25
  }
25
26
  export declare function NumberToEventType(value: Number): EventType;
26
- export declare function EventTypeToNumber(value: EventType): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
27
+ export declare function EventTypeToNumber(value: EventType): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
27
28
  export declare enum ElementType {
28
29
  SYSTEM = "system",
29
30
  BUTTON = "button",
package/dist/index.js CHANGED
@@ -767,6 +767,7 @@ var GRID_LUA_FNC_G_LOOKUP_human = "lookup";
767
767
  var GRID_LUA_FNC_G_ELEMENTNAME_source = "grid_lua_src_elementname_lua";
768
768
  var GRID_LUA_FNC_G_ELEMENTNAME_short = "gen";
769
769
  var GRID_LUA_FNC_G_ELEMENTNAME_human = "element_name";
770
+ var GRID_LUA_FNC_G_EVENTFNAME_source = "grid_lua_src_eventfname_lua";
770
771
  var GRID_LUA_FNC_G_LIMIT_source = "grid_lua_src_limit_lua";
771
772
  var GRID_LUA_FNC_G_LIMIT_short = "glim";
772
773
  var GRID_LUA_FNC_G_LIMIT_human = "limit";
@@ -1610,6 +1611,7 @@ var grid_protocol_bot = {
1610
1611
  GRID_LUA_FNC_G_ELEMENTNAME_source: GRID_LUA_FNC_G_ELEMENTNAME_source,
1611
1612
  GRID_LUA_FNC_G_ELEMENTNAME_short: GRID_LUA_FNC_G_ELEMENTNAME_short,
1612
1613
  GRID_LUA_FNC_G_ELEMENTNAME_human: GRID_LUA_FNC_G_ELEMENTNAME_human,
1614
+ GRID_LUA_FNC_G_EVENTFNAME_source: GRID_LUA_FNC_G_EVENTFNAME_source,
1613
1615
  GRID_LUA_FNC_G_LIMIT_source: GRID_LUA_FNC_G_LIMIT_source,
1614
1616
  GRID_LUA_FNC_G_LIMIT_short: GRID_LUA_FNC_G_LIMIT_short,
1615
1617
  GRID_LUA_FNC_G_LIMIT_human: GRID_LUA_FNC_G_LIMIT_human,
@@ -2149,6 +2151,7 @@ var protocol_data = /*#__PURE__*/Object.freeze({
2149
2151
  GRID_LUA_FNC_G_ELEMENT_COUNT_human: GRID_LUA_FNC_G_ELEMENT_COUNT_human,
2150
2152
  GRID_LUA_FNC_G_ELEMENT_COUNT_short: GRID_LUA_FNC_G_ELEMENT_COUNT_short,
2151
2153
  GRID_LUA_FNC_G_ELEMENT_COUNT_usage: GRID_LUA_FNC_G_ELEMENT_COUNT_usage,
2154
+ GRID_LUA_FNC_G_EVENTFNAME_source: GRID_LUA_FNC_G_EVENTFNAME_source,
2152
2155
  GRID_LUA_FNC_G_EVENT_TRIGGER_fnptr: GRID_LUA_FNC_G_EVENT_TRIGGER_fnptr,
2153
2156
  GRID_LUA_FNC_G_EVENT_TRIGGER_human: GRID_LUA_FNC_G_EVENT_TRIGGER_human,
2154
2157
  GRID_LUA_FNC_G_EVENT_TRIGGER_short: GRID_LUA_FNC_G_EVENT_TRIGGER_short,
@@ -19844,6 +19847,7 @@ var EventType;
19844
19847
  EventType["MIDIRX"] = "midi rx";
19845
19848
  EventType["TIMER"] = "timer";
19846
19849
  EventType["ENDLESS"] = "endless";
19850
+ EventType["DRAW"] = "draw";
19847
19851
  })(EventType || (EventType = {}));
19848
19852
  function NumberToEventType(value) {
19849
19853
  switch (value) {
@@ -19863,6 +19867,8 @@ function NumberToEventType(value) {
19863
19867
  return EventType.TIMER;
19864
19868
  case 7:
19865
19869
  return EventType.ENDLESS;
19870
+ case 8:
19871
+ return EventType.DRAW;
19866
19872
  default:
19867
19873
  throw "Unknown event type";
19868
19874
  }
@@ -19885,6 +19891,8 @@ function EventTypeToNumber(value) {
19885
19891
  return 6;
19886
19892
  case EventType.ENDLESS:
19887
19893
  return 7;
19894
+ case EventType.DRAW:
19895
+ return 8;
19888
19896
  default:
19889
19897
  throw "Unknown event type";
19890
19898
  }
@@ -20268,6 +20276,11 @@ var CEEAT = (_a = {},
20268
20276
  value: 7,
20269
20277
  key: "ENDLESS",
20270
20278
  },
20279
+ _a[EventType.DRAW] = {
20280
+ desc: EventType.DRAW,
20281
+ value: 8,
20282
+ key: "DRAW",
20283
+ },
20271
20284
  _a);
20272
20285
  // Define the module types and their associated element types
20273
20286
  var moduleElements = (_b = {},
@@ -20345,6 +20358,7 @@ var elementEvents = (_c = {},
20345
20358
  ],
20346
20359
  _c[ElementType.LCD] = [
20347
20360
  __assign(__assign({}, CEEAT[EventType.SETUP]), { defaultConfig: grid_protocol.GRID_ACTIONSTRING_LCD_INIT }),
20361
+ __assign(__assign({}, CEEAT[EventType.DRAW]), { defaultConfig: grid_protocol.GRID_ACTIONSTRING_LCD_DRAW }),
20348
20362
  ],
20349
20363
  _c);
20350
20364
  var GridProperty = /** @class */ (function () {