@oinone/kunlun-meta 6.2.0

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 (145) hide show
  1. package/dist/oinone-kunlun-meta.esm.js +496 -0
  2. package/dist/types/index.d.ts +1 -0
  3. package/dist/types/src/element/ActionElement.d.ts +15 -0
  4. package/dist/types/src/element/ApiElement.d.ts +21 -0
  5. package/dist/types/src/element/ClearElement.d.ts +9 -0
  6. package/dist/types/src/element/ConfigElement.d.ts +6 -0
  7. package/dist/types/src/element/ContextElement.d.ts +9 -0
  8. package/dist/types/src/element/CustomElement.d.ts +7 -0
  9. package/dist/types/src/element/FieldElement.d.ts +25 -0
  10. package/dist/types/src/element/IBaseElement.d.ts +5 -0
  11. package/dist/types/src/element/PropElement.d.ts +6 -0
  12. package/dist/types/src/element/RequestElement.d.ts +9 -0
  13. package/dist/types/src/element/ResponseElement.d.ts +9 -0
  14. package/dist/types/src/element/SubscribeElement.d.ts +9 -0
  15. package/dist/types/src/element/ValidationElement.d.ts +12 -0
  16. package/dist/types/src/element/ViewElement.d.ts +15 -0
  17. package/dist/types/src/element/WidgetElement.d.ts +23 -0
  18. package/dist/types/src/element/index.d.ts +14 -0
  19. package/dist/types/src/global-config/index.d.ts +2 -0
  20. package/dist/types/src/global-config/runtime-config.d.ts +14 -0
  21. package/dist/types/src/global-config/type.d.ts +26 -0
  22. package/dist/types/src/index.d.ts +5 -0
  23. package/dist/types/src/metadata/constant/config.d.ts +1 -0
  24. package/dist/types/src/metadata/constant/index.d.ts +2 -0
  25. package/dist/types/src/metadata/constant/module-name.d.ts +20 -0
  26. package/dist/types/src/metadata/fragment/action.d.ts +6 -0
  27. package/dist/types/src/metadata/fragment/field.d.ts +2 -0
  28. package/dist/types/src/metadata/fragment/func.d.ts +2 -0
  29. package/dist/types/src/metadata/fragment/index.d.ts +13 -0
  30. package/dist/types/src/metadata/fragment/menu.d.ts +2 -0
  31. package/dist/types/src/metadata/fragment/model.d.ts +2 -0
  32. package/dist/types/src/metadata/fragment/page.d.ts +2 -0
  33. package/dist/types/src/metadata/index.d.ts +4 -0
  34. package/dist/types/src/metadata/runtime-fragment/action.d.ts +8 -0
  35. package/dist/types/src/metadata/runtime-fragment/function.d.ts +3 -0
  36. package/dist/types/src/metadata/runtime-fragment/index.d.ts +20 -0
  37. package/dist/types/src/metadata/runtime-fragment/model.d.ts +2 -0
  38. package/dist/types/src/metadata/runtime-fragment/module.d.ts +2 -0
  39. package/dist/types/src/metadata/runtime-fragment/view.d.ts +6 -0
  40. package/dist/types/src/metadata/types/dsl-node.d.ts +12 -0
  41. package/dist/types/src/metadata/types/enumeration.d.ts +18 -0
  42. package/dist/types/src/metadata/types/index.d.ts +8 -0
  43. package/dist/types/src/metadata/types/layout.d.ts +4 -0
  44. package/dist/types/src/metadata/types/model.d.ts +573 -0
  45. package/dist/types/src/metadata/types/tag.d.ts +23 -0
  46. package/dist/types/src/metadata/types/user.d.ts +22 -0
  47. package/dist/types/src/metadata/types/value.d.ts +3 -0
  48. package/dist/types/src/metadata/types/view.d.ts +170 -0
  49. package/dist/types/src/plugin-loader/factory/PluginLoaderFactory.d.ts +4 -0
  50. package/dist/types/src/plugin-loader/factory/index.d.ts +1 -0
  51. package/dist/types/src/plugin-loader/index.d.ts +5 -0
  52. package/dist/types/src/plugin-loader/loader/CJSPluginLoader.d.ts +7 -0
  53. package/dist/types/src/plugin-loader/loader/CSSPluginLoader.d.ts +7 -0
  54. package/dist/types/src/plugin-loader/loader/ESMPluginLoader.d.ts +7 -0
  55. package/dist/types/src/plugin-loader/loader/IIFEPluginLoader.d.ts +7 -0
  56. package/dist/types/src/plugin-loader/loader/LoadedEvent.d.ts +4 -0
  57. package/dist/types/src/plugin-loader/loader/PluginLoader.d.ts +5 -0
  58. package/dist/types/src/plugin-loader/loader/RemotePluginLoader.d.ts +5 -0
  59. package/dist/types/src/plugin-loader/loader/UMDPluginLoader.d.ts +6 -0
  60. package/dist/types/src/plugin-loader/loader/index.d.ts +1 -0
  61. package/dist/types/src/plugin-loader/typing/index.d.ts +2 -0
  62. package/dist/types/src/plugin-loader/typing/load-option.d.ts +48 -0
  63. package/dist/types/src/plugin-loader/typing/loader-config.d.ts +38 -0
  64. package/dist/types/src/plugin-loader/util/PluginLoadHelper.d.ts +7 -0
  65. package/dist/types/src/plugin-loader/util/index.d.ts +1 -0
  66. package/dist/types/src/util/element.d.ts +16 -0
  67. package/dist/types/src/util/field.d.ts +7 -0
  68. package/dist/types/src/util/helper.d.ts +2 -0
  69. package/dist/types/src/util/index.d.ts +6 -0
  70. package/dist/types/src/util/ke-common.d.ts +6 -0
  71. package/dist/types/src/util/lang.d.ts +4 -0
  72. package/dist/types/src/util/validation-utils.d.ts +3 -0
  73. package/index.ts +1 -0
  74. package/package.json +17 -0
  75. package/rollup.config.js +4 -0
  76. package/src/element/ActionElement.ts +20 -0
  77. package/src/element/ApiElement.ts +22 -0
  78. package/src/element/ClearElement.ts +10 -0
  79. package/src/element/ConfigElement.ts +7 -0
  80. package/src/element/ContextElement.ts +10 -0
  81. package/src/element/CustomElement.ts +22 -0
  82. package/src/element/FieldElement.ts +41 -0
  83. package/src/element/IBaseElement.ts +5 -0
  84. package/src/element/PropElement.ts +7 -0
  85. package/src/element/RequestElement.ts +10 -0
  86. package/src/element/ResponseElement.ts +10 -0
  87. package/src/element/SubscribeElement.ts +10 -0
  88. package/src/element/ValidationElement.ts +17 -0
  89. package/src/element/ViewElement.ts +23 -0
  90. package/src/element/WidgetElement.ts +33 -0
  91. package/src/element/index.ts +14 -0
  92. package/src/global-config/index.ts +2 -0
  93. package/src/global-config/runtime-config.ts +83 -0
  94. package/src/global-config/type.ts +48 -0
  95. package/src/index.ts +5 -0
  96. package/src/metadata/constant/config.ts +1 -0
  97. package/src/metadata/constant/index.ts +2 -0
  98. package/src/metadata/constant/module-name.ts +21 -0
  99. package/src/metadata/fragment/action.ts +119 -0
  100. package/src/metadata/fragment/field.ts +42 -0
  101. package/src/metadata/fragment/func.ts +21 -0
  102. package/src/metadata/fragment/index.ts +20 -0
  103. package/src/metadata/fragment/menu.ts +35 -0
  104. package/src/metadata/fragment/model.ts +76 -0
  105. package/src/metadata/fragment/page.ts +17 -0
  106. package/src/metadata/index.ts +4 -0
  107. package/src/metadata/runtime-fragment/action.ts +159 -0
  108. package/src/metadata/runtime-fragment/function.ts +25 -0
  109. package/src/metadata/runtime-fragment/index.ts +36 -0
  110. package/src/metadata/runtime-fragment/model.ts +18 -0
  111. package/src/metadata/runtime-fragment/module.ts +11 -0
  112. package/src/metadata/runtime-fragment/view.ts +44 -0
  113. package/src/metadata/types/dsl-node.ts +14 -0
  114. package/src/metadata/types/enumeration.ts +19 -0
  115. package/src/metadata/types/index.ts +8 -0
  116. package/src/metadata/types/layout.ts +4 -0
  117. package/src/metadata/types/model.ts +823 -0
  118. package/src/metadata/types/tag.ts +24 -0
  119. package/src/metadata/types/user.ts +27 -0
  120. package/src/metadata/types/value.ts +3 -0
  121. package/src/metadata/types/view.ts +194 -0
  122. package/src/plugin-loader/factory/PluginLoaderFactory.ts +23 -0
  123. package/src/plugin-loader/factory/index.ts +1 -0
  124. package/src/plugin-loader/index.ts +33 -0
  125. package/src/plugin-loader/loader/CJSPluginLoader.ts +18 -0
  126. package/src/plugin-loader/loader/CSSPluginLoader.ts +29 -0
  127. package/src/plugin-loader/loader/ESMPluginLoader.ts +53 -0
  128. package/src/plugin-loader/loader/IIFEPluginLoader.ts +18 -0
  129. package/src/plugin-loader/loader/LoadedEvent.ts +24 -0
  130. package/src/plugin-loader/loader/PluginLoader.ts +12 -0
  131. package/src/plugin-loader/loader/RemotePluginLoader.ts +54 -0
  132. package/src/plugin-loader/loader/UMDPluginLoader.ts +50 -0
  133. package/src/plugin-loader/loader/index.ts +1 -0
  134. package/src/plugin-loader/typing/index.ts +2 -0
  135. package/src/plugin-loader/typing/load-option.ts +51 -0
  136. package/src/plugin-loader/typing/loader-config.ts +38 -0
  137. package/src/plugin-loader/util/PluginLoadHelper.ts +70 -0
  138. package/src/plugin-loader/util/index.ts +1 -0
  139. package/src/util/element.ts +154 -0
  140. package/src/util/field.ts +63 -0
  141. package/src/util/helper.ts +6 -0
  142. package/src/util/index.ts +6 -0
  143. package/src/util/ke-common.ts +25 -0
  144. package/src/util/lang.ts +8 -0
  145. package/src/util/validation-utils.ts +17 -0
@@ -0,0 +1,496 @@
1
+ import{HttpClient as e,gql as t}from"@oinone/kunlun-request";
2
+ /*! *****************************************************************************
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
+ PERFORMANCE OF THIS SOFTWARE.
15
+ ***************************************************************************** */var n,i,r,o,a=function(){return a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)};function s(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))}!function(e){e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE"}(n||(n={})),function(e){e.DRAFT="DRAFT",e.NOT_ENABLED="NOT_ENABLED",e.ENABLED="ENABLED",e.DISABLED="DISABLED"}(i||(i={})),function(e){e.STORE="STORE",e.TRANSIENT="TRANSIENT",e.ABSTRACT="ABSTRACT",e.PROXY="PROXY",e.CLIENT="CLIENT"}(r||(r={})),function(e){e.String="STRING",e.Text="TEXT",e.HTML="HTML",e.Phone="PHONE",e.Email="EMAIL",e.Integer="INTEGER",e.Long="LONG",e.Float="FLOAT",e.Currency="MONEY",e.DateTime="DATETIME",e.Date="DATE",e.Time="TIME",e.Year="YEAR",e.Boolean="BOOLEAN",e.Enum="ENUM",e.Map="MAP",e.Related="RELATED",e.OneToOne="O2O",e.OneToMany="O2M",e.ManyToOne="M2O",e.ManyToMany="M2M",e.OBJ="OBJ",e.ID="ID",e.Null="NULL",e.UID="UID",e.MultiEnum="MULTI_ENUM"}(o||(o={}));const c={ID:"ID",NULL:"空",INTEGER:"整数",LONG:"长整型",FLOAT:"浮点数",BOOLEAN:"布尔型",STRING:"文本",TEXT:"多行文本",DATETIME:"时间日期",DATE:"日期",TIME:"时间",YEAR:"年份",HTML:"富文本",MONEY:"金额",ENUM:"数据字典",MULTI_ENUM:"多枚举",O2O:"一对一",O2M:"一对多",M2O:"多对一",M2M:"多对多",RELATED:"引用类型",MAP:"键值对",UID:"用户ID",PHONE:"手机",EMAIL:"邮箱"},l=[{label:c.STRING,value:o.String},{label:c.TEXT,value:o.Text},{label:c.HTML,value:o.HTML},{label:c.PHONE,value:o.Phone},{label:c.EMAIL,value:o.Email},{label:c.INTEGER,value:o.Integer},{label:c.LONG,value:o.Long},{label:c.FLOAT,value:o.Float},{label:c.MONEY,value:o.Currency},{label:c.DATETIME,value:o.DateTime},{label:c.DATE,value:o.Date},{label:c.TIME,value:o.Time},{label:c.YEAR,value:o.Year},{label:c.BOOLEAN,value:o.Boolean},{label:c.ENUM,value:o.Enum},{label:c.MAP,value:o.Map},{label:c.O2M,value:o.OneToMany},{label:c.M2O,value:o.ManyToOne},{label:c.M2M,value:o.ManyToMany}];var u,p,d,f,h,E,m,N,T,O,I,y,_,A;function D(e){return[o.OneToOne,o.OneToMany,o.ManyToOne,o.ManyToMany].includes(e)}function v(e){return[o.OneToOne,o.ManyToOne].includes(e)}function S(e){return[o.ManyToMany,o.OneToMany].includes(e)}function g(e){return e===o.Related}!function(e){e.NON="NON",e.JSON="JSON",e.COMMA="COMMA",e.BIT="BIT",e.DOT="DOT"}(u||(u={})),function(e){e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE"}(p||(p={})),function(e){e.GRAPHQL="graphql",e.RESTFUL="restful"}(d||(d={})),function(e){e.PRIMITIVE="primitive",e.OBJECT="object",e.LIST="list"}(f||(f={})),function(e){e.CLIENT="client",e.SERVER="server"}(h||(h={})),function(e){e.CLIENT="client",e.SERVER="server",e.BOTH="both"}(E||(E={})),function(e){e.DOMAIN="domain",e.OBJECT="object",e.LIST="list"}(m||(m={})),function(e){e.Server="SERVER",e.View="VIEW",e.URL="URL",e.Client="CLIENT",e.Model="model",e.Composition="COMPOSITION",e.Custom="custom"}(N||(N={})),function(e){e.Single="SINGLE",e.Batch="BATCH",e.SingleAndBatch="SINGLE_AND_BATCH",e.ContextFree="CONTEXT_FREE"}(T||(T={})),function(e){e.JAVA="JAVA",e.JS="JS",e.GROOVY="GROOVY"}(O||(O={})),function(e){e.FindOne="FindOne",e.FindList="FindList",e.FindAll="FindAll",e.InsertOne="InsertOne",e.UpdateOne="UpdateOne",e.DeleteOne="DeleteOne",e.DeleteOneInline="DeleteOneInline",e.UpdateList="UpdateList",e.DeleteList="DeleteList"}(I||(I={})),function(e){e.ContextAction="contextFreeAction",e.SingleAction="singleAction",e.FooterAction="footer"}(y||(y={})),function(e){e.ValidateForm="validateForm",e.UpdateContext="updateContext",e.ShowDialog="showDialog",e.SubmitDialog="submitDialog",e.CloseDialog="closeDialog",e.InsertEmptyItemToList="insertEmptyItemToList",e.InsertEmptyItemToBefore="insertEmptyItemToBefore",e.InsertEmptyItemToAfter="insertEmptyItemToAfter",e.DeleteListItem="deleteListItem",e.ReloadData="reloadData",e.CopyText="copyText",e.Confirm="confirm",e.StartCreate="startCreate",e.StartInlineEdit="startInlineEdit",e.SubmitInlineEdit="submitInlineEdit",e.CancelInlineEdit="cancelInlineEdit",e.HistoryBack="historyBack",e.O2MCreateForm="O2MCreateForm",e.O2MEditForm="O2MEditForm",e.O2MDelete="O2MDelete",e.O2MCreateFormConfirm="O2MCreateFormConfirm",e.O2MEditFormConfirm="O2MEditFormConfirm",e.M2MCreateTable="M2MCreateTable",e.M2MDelete="M2MDelete",e.M2MCreateTableConfirm="M2MCreateTableConfirm",e.O2MCloseForm="O2MCloseForm"}(_||(_={})),function(e){e.create="create",e.update="update",e.delete="delete",e.redirectDetailPage="redirectDetailPage",e.redirectCreatePage="redirectCreatePage",e.redirectUpdatePage="redirectUpdatePage",e.$$internal_AddOne="$$internal_AddOne",e.$$internal_EditOne="$$internal_EditOne",e.$$internal_CopyOne="$$internal_CopyOne",e.$$internal_DeleteOne="$$internal_DeleteOne",e.$$internal_ListInsertOneAndBackToList="$$internal_ListInsertOneAndBackToList",e.$$internal_ListUpdateOneAndBackToList="$$internal_ListUpdateOneAndBackToList",e.$$internal_GotoListImportDialog="$$internal_GotoListImportDialog",e.$$internal_GotoListExportDialog="$$internal_GotoListExportDialog",e.$$internal_GotoListTableRouter="$$internal_GotoListTableRouter",e.$$internal_DialogCancel="$$internal_DialogCancel",e.$$internal_GotoO2MCreateDialog="$$internal_GotoO2MCreateDialog",e.$$internal_GotoO2MEditDialog="$$internal_GotoO2MEditDialog",e.$$internal_O2MUpdateOneAndSubmitDialog="$$internal_O2MUpdateOneAndSubmitDialog",e.$$internal_O2MDeleteOne="$$internal_O2MDeleteOne",e.$$internal_DialogSubmit="$$internal_DialogSubmit",e.$$internal_O2MInsertOneAndSubmitDialog="$$internal_O2MInsertOneAndSubmitDialog",e.$$internal_ListUpdateAndCloseDialogReloadOpenerAction="$$internal_ListUpdateAndCloseDialogReloadOpenerAction",e.$$internal_ListInsertOneAndCloseDialog="$$internal_ListInsertOneAndCloseDialog",e.$$internal_GotoM2MListDialog="$$internal_GotoM2MListDialog",e.$$internal_ReloadData="$$internal_ReloadData",e.$$internal_ValidateForm="$$internal_ValidateForm",e.$$internal_Download="$$internal_Download",e.$$internal_BatchUpdate="$$internal_BatchUpdate",e.$$internal_DownloadImportWorkbook="$$internal_DownloadImportWorkbook",e.$$internal_ImportWorkbook="$$internal_ImportWorkbook",e.$$internal_ExportWorkbook="$$internal_ExportWorkbook",e.$$internal_PrintPdfDocument="$$internal_PrintPdfDocument"}(A||(A={}));const M=[A.create,A.update,A.delete,A.redirectDetailPage,A.redirectCreatePage,A.redirectUpdatePage];var L,C,b,R,x,k,P,F,w,B;!function(e){e.Sequential="sequential",e.Parallel="parallel",e.ForkJoin="fork-join",e.Race="race"}(L||(L={})),function(e){e.Client="client",e.Server="server",e.Both="both"}(C||(C={})),function(e){e.MASK="MASK",e.BLOCK="BLOCK",e.HEADER="HEADER",e.CONTAINER="CONTAINER",e.SIDEBAR="SIDEBAR",e.CONTENT="CONTENT",e.VIEW="VIEW",e.FIELD="FIELD",e.GROUP="GROUP",e.GRID="GRID",e.ACTION="ACTION",e.API="API",e.CONTEXT="CONTEXT",e.REQUEST="REQUEST",e.RESPONSE="RESPONSE",e.CLEAR="CLEAR",e.FILTER="FILTER",e.WIDGET="WIDGET",e.PROP="PROP",e.VALIDATION="VALIDATION"}(b||(b={})),function(e){e.SIGN_UP_PHONE="SIGN_UP_PHONE",e.SIGN_UP_EMAIL="SIGN_UP_EMAIL",e.PHONE_MODIFY_PASSWORD_BY_PHONE_SUBMIT="MODIFY_PASSWORD_BY_PHONE",e.PHONE_MODIFY_PASSWORD_BY_PHONE_SEND_CODE="MODIFY_PASSWORD_BYPHONE_SEND_CODE",e.EMAIL_MODIFY_PASSWORD_BY_EMAIL_SUBMIT="MODIFY_PASSWORD_BY_EMAIL",e.EMAIL_MODIFY_PASSWORD_BY_EMAIL_SEND_CODE="MODIFY_PASSWORD_SEND_RESET_EMAIL",e.PHONE_MODIFY_PHONE_SUBMIT="MODIFY_PHONE",e.PHONE_MODIFY_PHONE_OLD_PHONE_CODE="MODIFY_PHONE_OLD_PHONE_CODE",e.EMAIL_MODIFY_PHONE_SEND_EMAIL_CODE="MODIFY_PHONE_SEND_EMAIL",e.PHONE_MODIFY_PHONE_NEW_PHONE_CODE="MODIFY_PHONE_NEW_PHONE_CODE",e.EMAIL_MODIFY_EMAIL_SUBMIT="MODIFY_EMAIL",e.EMAIL_MODIFY_EMAIL_SEND_OLD_EMAIL="MODIFY_EMAIL_SEND_OLD_EMAIL",e.PHONE_MODIFY_EMAIL_SEND_PHONE_CODE="MODIFY_EMAIL_SEND_PHONE_CODE",e.EMAIL_MODIFY_EMAIL_SEND_NEW_EMAIL="MODIFY_EMAIL_SEND_NEW_EMAIL",e.PHONE_ADD_CORP_SEND_PHONE_CODE="ADD_CORP_SEND_PHONE_CODE",e.EMAIL_ADD_CORP_SEND_EMAIL_CODE="ADD_CORP_SEND_EMAIL_CODE",e.PHONE_LOGIN_BY_PHONE_CODE="LOGIN_BY_PHONE_CODE",e.PHONE_SEND_LOGIN_BY_PHONE_CODE="SEND_LOGIN_BY_PHONE_CODE",e.EMAIL_LOGIN_BY_EMAIL_CODE="LOGIN_BY_EMAIL_CODE",e.EMAIL_SEND_LOGIN_BY_EMAIL_CODE="SEND_LOGIN_BY_EMAIL_CODE"}(R||(R={})),function(e){e.List="LIST",e.Object="OBJECT"}(x||(x={})),function(e){e.PC="PC",e.MOBILE="MOBILE"}(k||(k={})),function(e){e.Table="TABLE",e.Form="FORM",e.Detail="DETAIL",e.Search="SEARCH",e.Gallery="GALLERY",e.Tree="TREE",e.Multiple="MULTIPLE",e.Custom="CUSTOM"}(P||(P={})),function(e){e.Create="CREATE",e.Editor="EDITOR",e.Lookup="LOOKUP"}(F||(F={})),function(e){e.Router="ROUTER",e.Dialog="DIALOG",e.Drawer="DRAWER",e.Inner="INNER",e.OpenWindow="OPEN_WINDOW",e.Frame="iframe"}(w||(w={})),function(e){e.SYSTEM="SYSTEM",e.BASE="BASE",e.MANUAL="MANUAL",e.UI="UI",e.RELATION="RELATION",e.ABSTRACT_INHERITED="ABSTRACT_INHERITED",e.TRANSIENT_INHERITED="TRANSIENT_INHERITED",e.EXTEND_INHERITED="EXTEND_INHERITED",e.MULTI_TABLE_INHERITED="MULTI_TABLE_INHERITED",e.PROXY_INHERITED="PROXY_INHERITED"}(B||(B={}));const $={BASE:"base",COMMON:"common",USER:"user",AUTH:"auth",MESSAGE:"message",RESOURCE:"resource",FILE:"file",DESIGNER_COMMON:"designer_common"},U={BASE:"base",COMMON:"common",USER:"user",AUTH:"auth",MESSAGE:"message",RESOURCE:"resource",FILE:"file",DESIGNER_COMMON:"designerCommon"},V="id =notnull= true";function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}var G="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function j(e,t){for(var n,i=/\r\n|[\n\r]/g,r=1,o=t+1;(n=i.exec(e.body))&&n.index<t;)r+=1,o=t+1-(n.index+n[0].length);return{line:r,column:o}}function H(e){return K(e.source,j(e.source,e.start))}function K(e,t){var n=e.locationOffset.column-1,i=W(n)+e.body,r=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,c=t.column+s,l="".concat(e.name,":").concat(a,":").concat(c,"\n"),u=i.split(/\r\n|[\n\r]/g),p=u[r];if(p.length>120){for(var d=Math.floor(c/80),f=c%80,h=[],E=0;E<p.length;E+=80)h.push(p.slice(E,E+80));return l+J([["".concat(a),h[0]]].concat(h.slice(1,d+1).map((function(e){return["",e]})),[[" ",W(f-1)+"^"],["",h[d+1]]]))}return l+J([["".concat(a-1),u[r-1]],["".concat(a),p],["",W(c-1)+"^"],["".concat(a+1),u[r+1]]])}function J(e){var t=e.filter((function(e){return e[0],void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,i=e[0],r=e[1];return W(n-(t=i).length)+t+(r?" | "+r:" |")})).join("\n")}function W(e){return Array(e+1).join(" ")}function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Z(e,t){return!t||"object"!==q(t)&&"function"!=typeof t?ee(e):t}function ee(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function te(e){var t="function"==typeof Map?new Map:void 0;return te=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return ne(e,arguments,oe(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),re(i,e)},te(e)}function ne(e,t,n){return ne=ie()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&re(r,n.prototype),r},ne.apply(null,arguments)}function ie(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function re(e,t){return re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},re(e,t)}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}var ae=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&re(e,t)}(a,te(Error));var e,t,n,i,r,o=(e=a,t=ie(),function(){var n,i=oe(e);if(t){var r=oe(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return Z(this,n)});function a(e,t,n,i,r,s,c){var l,u,p,d;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(d=o.call(this,e)).name="GraphQLError",d.originalError=null!=s?s:void 0,d.nodes=se(Array.isArray(t)?t:t?[t]:void 0);for(var f=[],h=0,E=null!==(m=d.nodes)&&void 0!==m?m:[];h<E.length;h++){var m,N=E[h].loc;null!=N&&f.push(N)}f=se(f),d.source=null!=n?n:null===(l=f)||void 0===l?void 0:l[0].source,d.positions=null!=i?i:null===(u=f)||void 0===u?void 0:u.map((function(e){return e.start})),d.locations=i&&n?i.map((function(e){return j(n,e)})):null===(p=f)||void 0===p?void 0:p.map((function(e){return j(e.source,e.start)})),d.path=null!=r?r:void 0;var T,O=null==s?void 0:s.extensions;return null==c&&("object"==Y(T=O)&&null!==T)?d.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){Q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},O):d.extensions=null!=c?c:{},Object.defineProperties(ee(d),{message:{enumerable:!0},locations:{enumerable:null!=d.locations},path:{enumerable:null!=d.path},extensions:{enumerable:null!=d.extensions&&Object.keys(d.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(ee(d),"stack",{value:s.stack,writable:!0,configurable:!0}),Z(d)):(Error.captureStackTrace?Error.captureStackTrace(ee(d),a):Object.defineProperty(ee(d),"stack",{value:Error().stack,writable:!0,configurable:!0}),d)}return n=a,(i=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,i=e.nodes;n<i.length;n++){var r=i[n];r.loc&&(t+="\n\n"+H(r.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var s=a[o];t+="\n\n"+K(e.source,s)}return t}(this)}},{key:G,get:function(){return"Object"}}])&&z(n.prototype,i),r&&z(n,r),a}();function se(e){return void 0===e||0===e.length?void 0:e}function ce(e,t,n){return new ae("Syntax Error: ".concat(n),void 0,e,[t])}var le=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});var ue="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function pe(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,ue&&(e.prototype[ue]=t)}var de=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();pe(de);var fe=function(){function e(e,t,n,i,r,o,a){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();pe(fe);var he=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function Ee(e){return Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ee(e)}function me(e){return Ne(e,[])}function Ne(e,t){switch(Ee(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(ue)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==i){var r=i.call(e);if(r!==e)return"string"==typeof r?r:Ne(r,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),i=e.length-n,r=[],o=0;o<n;++o)r.push(Ne(e[o],t));1===i?r.push("... 1 more item"):i>1&&r.push("... ".concat(i," more items"));return"["+r.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";var i=n.map((function(n){return n+": "+Ne(e[n],t)}));return"{ "+i.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function Te(e,t){if(!Boolean(e))throw new Error(t)}function Oe(e){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oe(e)}var Ie="production"===process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"===Oe(e)&&null!==e){var n,i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){var r=me(e);throw new Error("Cannot use ".concat(i,' "').concat(r,'" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.'))}}return!1};function ye(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var _e=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||Te(0,"Body must be a string. Received: ".concat(me(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Te(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Te(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,i;return t=e,(n=[{key:G,get:function(){return"Source"}}])&&ye(t.prototype,n),i&&ye(t,i),e}();var Ae=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function De(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,i=!0,r=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,i=!0,r=0;break;case 9:case 32:++r;break;default:i&&!n&&(null===o||r<o)&&(o=r),i=!1}return null!==(t=o)&&void 0!==t?t:0}(e);if(0!==n)for(var i=1;i<t.length;i++)t[i]=t[i].slice(n);for(var r=0;r<t.length&&ve(t[r]);)++r;for(var o=t.length;o>r&&ve(t[o-1]);)--o;return t.slice(r,o).join("\n")}function ve(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}var Se=function(){function e(e){var t=new fe(he.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==he.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=Me(this,e)}while(e.kind===he.COMMENT);return e},e}();function ge(e){return isNaN(e)?he.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Me(e,t){for(var n=e.source,i=n.body,r=i.length,o=t.end;o<r;){var a=i.charCodeAt(o),s=e.line,c=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===i.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new fe(he.BANG,o,o+1,s,c,t);case 35:return Ce(n,o,s,c,t);case 36:return new fe(he.DOLLAR,o,o+1,s,c,t);case 38:return new fe(he.AMP,o,o+1,s,c,t);case 40:return new fe(he.PAREN_L,o,o+1,s,c,t);case 41:return new fe(he.PAREN_R,o,o+1,s,c,t);case 46:if(46===i.charCodeAt(o+1)&&46===i.charCodeAt(o+2))return new fe(he.SPREAD,o,o+3,s,c,t);break;case 58:return new fe(he.COLON,o,o+1,s,c,t);case 61:return new fe(he.EQUALS,o,o+1,s,c,t);case 64:return new fe(he.AT,o,o+1,s,c,t);case 91:return new fe(he.BRACKET_L,o,o+1,s,c,t);case 93:return new fe(he.BRACKET_R,o,o+1,s,c,t);case 123:return new fe(he.BRACE_L,o,o+1,s,c,t);case 124:return new fe(he.PIPE,o,o+1,s,c,t);case 125:return new fe(he.BRACE_R,o,o+1,s,c,t);case 34:return 34===i.charCodeAt(o+1)&&34===i.charCodeAt(o+2)?ke(n,o,s,c,t,e):xe(n,o,s,c,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return be(n,o,a,s,c,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return Fe(n,o,s,c,t)}throw ce(n,o,Le(a))}var l=e.line,u=1+o-e.lineStart;return new fe(he.EOF,r,r,l,u,t)}function Le(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(ge(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(ge(e),".")}function Ce(e,t,n,i,r){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new fe(he.COMMENT,t,s,n,i,r,a.slice(t+1,s))}function be(e,t,n,i,r,o){var a=e.body,s=n,c=t,l=!1;if(45===s&&(s=a.charCodeAt(++c)),48===s){if((s=a.charCodeAt(++c))>=48&&s<=57)throw ce(e,c,"Invalid number, unexpected digit after 0: ".concat(ge(s),"."))}else c=Re(e,c,s),s=a.charCodeAt(c);if(46===s&&(l=!0,s=a.charCodeAt(++c),c=Re(e,c,s),s=a.charCodeAt(c)),69!==s&&101!==s||(l=!0,43!==(s=a.charCodeAt(++c))&&45!==s||(s=a.charCodeAt(++c)),c=Re(e,c,s),s=a.charCodeAt(c)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw ce(e,c,"Invalid number, expected digit but got: ".concat(ge(s),"."));return new fe(l?he.FLOAT:he.INT,t,c,i,r,o,a.slice(t,c))}function Re(e,t,n){var i=e.body,r=t,o=n;if(o>=48&&o<=57){do{o=i.charCodeAt(++r)}while(o>=48&&o<=57);return r}throw ce(e,r,"Invalid number, expected digit but got: ".concat(ge(o),"."))}function xe(e,t,n,i,r){for(var o,a,s,c,l=e.body,u=t+1,p=u,d=0,f="";u<l.length&&!isNaN(d=l.charCodeAt(u))&&10!==d&&13!==d;){if(34===d)return f+=l.slice(p,u),new fe(he.STRING,t,u+1,n,i,r,f);if(d<32&&9!==d)throw ce(e,u,"Invalid character within String: ".concat(ge(d),"."));if(++u,92===d){switch(f+=l.slice(p,u-1),d=l.charCodeAt(u)){case 34:f+='"';break;case 47:f+="/";break;case 92:f+="\\";break;case 98:f+="\b";break;case 102:f+="\f";break;case 110:f+="\n";break;case 114:f+="\r";break;case 116:f+="\t";break;case 117:var h=(o=l.charCodeAt(u+1),a=l.charCodeAt(u+2),s=l.charCodeAt(u+3),c=l.charCodeAt(u+4),Pe(o)<<12|Pe(a)<<8|Pe(s)<<4|Pe(c));if(h<0){var E=l.slice(u+1,u+5);throw ce(e,u,"Invalid character escape sequence: \\u".concat(E,"."))}f+=String.fromCharCode(h),u+=4;break;default:throw ce(e,u,"Invalid character escape sequence: \\".concat(String.fromCharCode(d),"."))}p=++u}}throw ce(e,u,"Unterminated string.")}function ke(e,t,n,i,r,o){for(var a=e.body,s=t+3,c=s,l=0,u="";s<a.length&&!isNaN(l=a.charCodeAt(s));){if(34===l&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return u+=a.slice(c,s),new fe(he.BLOCK_STRING,t,s+3,n,i,r,De(u));if(l<32&&9!==l&&10!==l&&13!==l)throw ce(e,s,"Invalid character within String: ".concat(ge(l),"."));10===l?(++s,++o.line,o.lineStart=s):13===l?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===l&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(u+=a.slice(c,s)+'"""',c=s+=4):++s}throw ce(e,s,"Unterminated string.")}function Pe(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Fe(e,t,n,i,r){for(var o=e.body,a=o.length,s=t+1,c=0;s!==a&&!isNaN(c=o.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new fe(he.NAME,t,s,n,i,r,o.slice(t,s))}var we=function(){function e(e,t){var n=function(e){return Ie(e,_e)}(e)?e:new _e(e);this._lexer=new Se(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(he.NAME);return{kind:le.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:le.DOCUMENT,definitions:this.many(he.SOF,this.parseDefinition,he.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(he.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(he.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(he.BRACE_L))return{kind:le.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(he.NAME)&&(t=this.parseName()),{kind:le.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(he.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(he.PAREN_L,this.parseVariableDefinition,he.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:le.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(he.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(he.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(he.DOLLAR),{kind:le.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:le.SELECTION_SET,selections:this.many(he.BRACE_L,this.parseSelection,he.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(he.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,i=this.parseName();return this.expectOptionalToken(he.COLON)?(e=i,t=this.parseName()):t=i,{kind:le.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(he.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(he.PAREN_L,t,he.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(he.COLON),{kind:le.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:le.ARGUMENT,name:this.parseName(),value:(this.expectToken(he.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(he.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(he.NAME)?{kind:le.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:le.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:le.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:le.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case he.BRACKET_L:return this.parseList(e);case he.BRACE_L:return this.parseObject(e);case he.INT:return this._lexer.advance(),{kind:le.INT,value:t.value,loc:this.loc(t)};case he.FLOAT:return this._lexer.advance(),{kind:le.FLOAT,value:t.value,loc:this.loc(t)};case he.STRING:case he.BLOCK_STRING:return this.parseStringLiteral();case he.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:le.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:le.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:le.NULL,loc:this.loc(t)};default:return{kind:le.ENUM,value:t.value,loc:this.loc(t)}}case he.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:le.STRING,value:e.value,block:e.kind===he.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:le.LIST,values:this.any(he.BRACKET_L,(function(){return t.parseValueLiteral(e)}),he.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:le.OBJECT,fields:this.any(he.BRACE_L,(function(){return t.parseObjectField(e)}),he.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(he.COLON),{kind:le.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(he.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(he.AT),{kind:le.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(he.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(he.BRACKET_R),e={kind:le.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(he.BANG)?{kind:le.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:le.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===he.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(he.STRING)||this.peek(he.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),i=this.many(he.BRACE_L,this.parseOperationTypeDefinition,he.BRACE_R);return{kind:le.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(he.COLON);var n=this.parseNamedType();return{kind:le.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),i=this.parseDirectives(!0);return{kind:le.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:le.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(he.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(he.AMP)||this.peek(he.NAME));return t}return this.delimitedMany(he.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(he.BRACE_L)&&this._lexer.lookahead().kind===he.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(he.BRACE_L,this.parseFieldDefinition,he.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(he.COLON);var r=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:le.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(he.PAREN_L,this.parseInputValueDef,he.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(he.COLON);var i,r=this.parseTypeReference();this.expectOptionalToken(he.EQUALS)&&(i=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:le.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:le.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseUnionMemberTypes();return{kind:le.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(he.EQUALS)?this.delimitedMany(he.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();return{kind:le.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(he.BRACE_L,this.parseEnumValueDefinition,he.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseDirectives(!0);return{kind:le.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();return{kind:le.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(he.BRACE_L,this.parseInputValueDef,he.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===he.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(he.BRACE_L,this.parseOperationTypeDefinition,he.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:le.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:le.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:le.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:le.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:le.UNION_TYPE_EXTENSION,name:t,directives:n,types:i,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:le.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:le.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(he.AT);var n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:le.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(he.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==Ae[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new de(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw ce(this._lexer.source,t.start,"Expected ".concat($e(e),", found ").concat(Be(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==he.NAME||t.value!==e)throw ce(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(Be(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===he.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return ce(this._lexer.source,t.start,"Unexpected ".concat(Be(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var i=[];!this.expectOptionalToken(n);)i.push(t.call(this));return i},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}return[]},t.many=function(e,t,n){this.expectToken(e);var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function Be(e){var t=e.value;return $e(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function $e(e){return function(e){return e===he.BANG||e===he.DOLLAR||e===he.AMP||e===he.PAREN_L||e===he.PAREN_R||e===he.SPREAD||e===he.COLON||e===he.EQUALS||e===he.AT||e===he.BRACKET_L||e===he.BRACKET_R||e===he.BRACE_L||e===he.PIPE||e===he.BRACE_R}(e)?'"'.concat(e,'"'):e}var Ue=new Map,Ve=new Map,Ye=!0,Ge=!1;function je(e){return e.replace(/[\s,]+/g," ").trim()}function He(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var i=e.name.value,r=je((a=e.loc).source.body.substring(a.start,a.end)),o=Ve.get(i);o&&!o.has(r)?Ye&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||Ve.set(i,o=new Set),o.add(r),t.has(r)||(t.add(r),n.push(e))}else n.push(e);var a})),a(a({},e),{definitions:n})}function Ke(e){var t=je(e);if(!Ue.has(t)){var n=function(e,t){return new we(e,t).parseDocument()}(e,{experimentalFragmentVariables:Ge,allowLegacyFragmentVariables:Ge});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Ue.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var i=e[n];i&&"object"==typeof i&&t.add(i)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(He(n)))}return Ue.get(t)}function Je(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[n+1]})),Ke(i)}var We,qe=Je,Xe=function(){Ue.clear(),Ve.clear()},Qe=function(){Ye=!1},ze=function(){Ge=!0},Ze=function(){Ge=!1};(We=Je||(Je={})).gql=qe,We.resetCaches=Xe,We.disableFragmentWarnings=Qe,We.enableExperimentalFragmentVariables=ze,We.disableExperimentalFragmentVariables=Ze,Je.default=Je;const et=Je`
16
+ fragment ViewAction on ViewAction {
17
+ id
18
+ name
19
+ title
20
+ displayName
21
+ actionType
22
+ target
23
+ domain
24
+ viewType
25
+ dataType
26
+ contextType
27
+ bindingType
28
+ bindingViewName
29
+ sessionPath
30
+ model
31
+ resModel
32
+ invisible
33
+ moduleName
34
+ resModule
35
+ resModuleName
36
+ context
37
+ priority
38
+ attributes
39
+ }
40
+ `,tt=Je`
41
+ fragment UrlAction on UrlAction {
42
+ id
43
+ name
44
+ displayName
45
+ url
46
+ target
47
+ description
48
+ actionType
49
+ contextType
50
+ bindingType
51
+ sessionPath
52
+ model
53
+ modelName
54
+ invisible
55
+ compute
56
+ context
57
+ priority
58
+ }
59
+ `,nt=Je`
60
+ fragment ServerAction on ServerAction {
61
+ id
62
+ name
63
+ displayName
64
+ label
65
+ description
66
+ actionType
67
+ contextType
68
+ bindingType
69
+ sessionPath
70
+ model
71
+ modelName
72
+ invisible
73
+ priority
74
+ fun
75
+ functionDefinition {
76
+ method
77
+ name
78
+ type
79
+ argumentList {
80
+ name
81
+ }
82
+ }
83
+ }
84
+ `,it=Je`
85
+ fragment ClientAction on ClientAction {
86
+ id
87
+ name
88
+ displayName
89
+ label
90
+ description
91
+ actionType
92
+ contextType
93
+ bindingType
94
+ sessionPath
95
+ model
96
+ modelName
97
+ invisible
98
+ priority
99
+ fun
100
+ }
101
+ `,rt=Je`
102
+ fragment Field on Field {
103
+ id
104
+ name
105
+ displayName
106
+ ttype
107
+ model
108
+ multi
109
+ references
110
+ size
111
+ limit
112
+ related
113
+ relatedTtype
114
+ store
115
+ storeSerialize
116
+ relationStore
117
+ required
118
+ relationFields
119
+ referenceFields
120
+ throughRelationFields
121
+ throughReferenceFields
122
+ through
123
+ invisible
124
+ field
125
+ domainSize
126
+ index
127
+ unique
128
+ decimal
129
+ systemSource
130
+ format
131
+ options {
132
+ name
133
+ displayName
134
+ value
135
+ }
136
+ attributes
137
+ }
138
+ `,ot=Je`
139
+ fragment Func on Function {
140
+ type
141
+ namespace
142
+ fun
143
+ name
144
+ argumentList {
145
+ name
146
+ ttype
147
+ model
148
+ }
149
+ returnType {
150
+ ttype
151
+ model
152
+ }
153
+ }
154
+ `,at=Je`
155
+ fragment View on View {
156
+ id
157
+ name
158
+ type
159
+ model
160
+ title
161
+ template
162
+ active
163
+ priority
164
+ systemSource
165
+ }
166
+ `,st={Model:Je`
167
+ fragment Model on Model {
168
+ id
169
+ pk
170
+ model
171
+ name
172
+ displayName
173
+ labelFields
174
+ label
175
+ moduleName
176
+ module
177
+ type
178
+ attributes
179
+ ordering
180
+ indexes
181
+ uniques
182
+ modelFields {
183
+ ...Field
184
+ }
185
+ viewActionList {
186
+ ...ViewAction
187
+ }
188
+ serverActionList {
189
+ ...ServerAction
190
+ }
191
+ urlActionList {
192
+ ...UrlAction
193
+ }
194
+ viewList {
195
+ ...View
196
+ }
197
+ clientActionList {
198
+ ...ClientAction
199
+ }
200
+ functions {
201
+ ...Func
202
+ }
203
+ }
204
+ ${rt}
205
+ ${et}
206
+ ${nt}
207
+ ${tt}
208
+ ${it}
209
+ ${at}
210
+ ${ot}
211
+ `,ModelWithFields:Je`
212
+ fragment ModelWithFields on Model {
213
+ id
214
+ pk
215
+ model
216
+ name
217
+ displayName
218
+ labelFields
219
+ label
220
+ moduleName
221
+ module
222
+ type
223
+ attributes
224
+ ordering
225
+ indexes
226
+ uniques
227
+ modelFields {
228
+ ...Field
229
+ }
230
+ }
231
+ ${rt}
232
+ `,Field:rt,UrlAction:tt,ServerAction:nt,ViewAction:et,ClientAction:it,Action:Je`
233
+ fragment Action on Action {
234
+ id
235
+ name
236
+ displayName
237
+ label
238
+ description
239
+ actionType
240
+ contextType
241
+ bindingType
242
+ sessionPath
243
+ model
244
+ modelName
245
+ invisible
246
+ priority
247
+ attributes
248
+ }
249
+ `,Menu:Je`
250
+ fragment Menu on Menu {
251
+ serverAction {
252
+ ...ServerAction
253
+ }
254
+ viewAction {
255
+ ...ViewAction
256
+ }
257
+ urlAction {
258
+ ...UrlAction
259
+ }
260
+ id
261
+ icon
262
+ name
263
+ displayName
264
+ priority
265
+ actionType
266
+ mapping
267
+ context
268
+ parentName
269
+ moduleDefinition {
270
+ name
271
+ displayName
272
+ id
273
+ }
274
+ }
275
+ ${nt}
276
+ ${et}
277
+ ${tt}
278
+ `,View:at,Func:ot},ct="...FuncV3",lt=Je`
279
+ fragment FuncV3 on Function {
280
+ type
281
+ namespace
282
+ fun
283
+ name
284
+ argumentList {
285
+ name
286
+ ttype
287
+ multi
288
+ model
289
+ }
290
+ returnType {
291
+ ttype
292
+ multi
293
+ model
294
+ }
295
+ }
296
+ `,ut="...ModelV3",pt=Je`
297
+ fragment ModelV3 on ModelDefinition {
298
+ id
299
+ model
300
+ name
301
+ type
302
+ module
303
+ moduleName
304
+ pk
305
+ uniques
306
+ indexes
307
+ ordering
308
+ }
309
+ `,dt="...ModuleV3",ft=Je`
310
+ fragment ModuleV3 on ModuleDefinition {
311
+ module
312
+ name
313
+ displayName
314
+ }
315
+ `,ht="...MaskV3",Et=Je`
316
+ fragment MaskV3 on MaskDefinition {
317
+ name
318
+ template
319
+ }
320
+ `,mt="...ViewV3",Nt=Je`
321
+ fragment ViewV3 on View {
322
+ id
323
+ model
324
+ modelDefinition {
325
+ model
326
+ name
327
+ module
328
+ moduleName
329
+ }
330
+ name
331
+ title
332
+ type
333
+ template
334
+ extension
335
+ baseLayoutName
336
+ baseLayoutDefinition {
337
+ ${"...LayoutV3"}
338
+ }
339
+ }
340
+ ${Je`
341
+ fragment LayoutV3 on LayoutDefinition {
342
+ name
343
+ template
344
+ }
345
+ `}
346
+ `,Tt={Module:ft,Model:pt,ViewAction:Je`
347
+ fragment ViewActionV3 on ViewAction {
348
+ id
349
+ name
350
+ title
351
+ displayName
352
+ contextType
353
+ viewType
354
+ target
355
+ theme
356
+ domain
357
+ filter
358
+ load
359
+ mapping
360
+ context
361
+ sessionPath
362
+ model
363
+ modelName
364
+ modelDefinition {
365
+ ${ut}
366
+ }
367
+ module
368
+ moduleName
369
+ moduleDefinition {
370
+ ${dt}
371
+ }
372
+ resModel
373
+ resModelDefinition {
374
+ ${ut}
375
+ }
376
+ resModule
377
+ resModuleName
378
+ resModuleDefinition {
379
+ ${dt}
380
+ }
381
+ mask
382
+ maskDefinition {
383
+ ${ht}
384
+ }
385
+ resViewName
386
+ resView {
387
+ ${mt}
388
+ }
389
+ }
390
+ ${pt}
391
+ ${ft}
392
+ ${Et}
393
+ ${Nt}
394
+ `,SharedViewAction:Je`
395
+ fragment SharedPageViewActionV3 on SharedPageViewAction {
396
+ id
397
+ name
398
+ title
399
+ displayName
400
+ contextType
401
+ viewType
402
+ target
403
+ theme
404
+ domain
405
+ filter
406
+ load
407
+ sessionPath
408
+ sharedCode
409
+ authorizationCode
410
+ sharedParameters
411
+ browserTitle
412
+ language
413
+ languageIsoCode
414
+ model
415
+ modelName
416
+ modelDefinition {
417
+ ${ut}
418
+ }
419
+ module
420
+ moduleName
421
+ moduleDefinition {
422
+ ${dt}
423
+ }
424
+ resModel
425
+ resModelDefinition {
426
+ ${ut}
427
+ }
428
+ resModule
429
+ resModuleName
430
+ resModuleDefinition {
431
+ ${dt}
432
+ }
433
+ mask
434
+ maskDefinition {
435
+ ${ht}
436
+ }
437
+ resViewName
438
+ resView {
439
+ ${mt}
440
+ }
441
+ }
442
+ ${pt}
443
+ ${ft}
444
+ ${Et}
445
+ ${Nt}
446
+ `,ServerAction:Je`
447
+ fragment ServerActionV3 on ServerAction {
448
+ id
449
+ name
450
+ displayName
451
+ label
452
+ description
453
+ actionType
454
+ contextType
455
+ bindingType
456
+ sessionPath
457
+ model
458
+ modelName
459
+ invisible
460
+ priority
461
+ fun
462
+ functionDefinition {
463
+ ${ct}
464
+ }
465
+ }
466
+
467
+ ${lt}
468
+ `,UrlAction:Je`
469
+ fragment UrlActionV3 on UrlAction {
470
+ id
471
+ name
472
+ displayName
473
+ url
474
+ target
475
+ description
476
+ actionType
477
+ contextType
478
+ bindingType
479
+ sessionPath
480
+ model
481
+ modelName
482
+ invisible
483
+ compute
484
+ context
485
+ priority
486
+ }
487
+ `,View:Nt,Function:lt},Ot={Module:dt,Model:ut,ViewAction:"...ViewActionV3",SharedViewAction:"...SharedPageViewActionV3",ServerAction:"...ServerActionV3",UrlAction:"...UrlActionV3",View:mt,Function:ct};function It(e,t){e.onload=yt(e.src,t),e.onerror=_t(e.src,t)}function yt(e,t){return()=>{t()}}function _t(e,t){return()=>{t(),console.error(`load error. ${e}`)}}let At=0;class Dt{constructor(){}load(e){return s(this,void 0,void 0,(function*(){const{id:t,path:n,dependencies:i}=e;if(!document.getElementById(t))return i&&(yield this.loadDependencies(i)),new Promise((e=>{const i=document.createElement("script");i.id=t,i.src=n,i.type="module",It(i,e),document.body.append(i)}))}))}loadDependencies(e){return s(this,void 0,void 0,(function*(){const t={};if(Object.entries(e).forEach((([e,n])=>{"string"==typeof n&&(t[e]=n)})),Object.keys(t).length)return new Promise((e=>{const n=document.createElement("script");n.id="import-map-"+At++,n.type="importmap",n.text=JSON.stringify({imports:t}),It(n,e),document.body.append(n)}))}))}}Dt.INSTANCE=new Dt;class vt{constructor(){}load(e){return Dt.INSTANCE.load(e)}loadDependencies(e){return Dt.INSTANCE.loadDependencies(e)}}vt.INSTANCE=new vt;class St{constructor(){}load(e){return s(this,void 0,void 0,(function*(){const{id:t,path:n}=e;if(!document.getElementById(t))return new Promise((e=>{const i=document.createElement("link");i.id=t,i.href=n,i.rel="stylesheet",i.type="text/css",function(e,t){e.onload=yt(e.href,t),e.onerror=_t(e.href,t)}(i,e),document.body.append(i)}))}))}loadDependencies(){return s(this,void 0,void 0,(function*(){}))}}St.INSTANCE=new St;class gt{load(e){return s(this,void 0,void 0,(function*(){const{id:t,path:n,dependencies:i}=e;if(!document.getElementById(t))return i&&(yield this.loadDependencies(i)),new Promise((e=>{const i=document.createElement("script");i.id=t,i.src=n,i.type="text/javascript",It(i,e),document.body.append(i)}))}))}loadDependencies(e){return s(this,void 0,void 0,(function*(){if(!e)return;const t=window;yield Promise.allSettled(Object.entries(e).map((([e,n])=>s(this,void 0,void 0,(function*(){if(void 0===t[e]){let i;i="string"==typeof n?yield import(n):yield n,i||(i=null),void 0===t[e]&&(t[e]=i)}})))))}))}}gt.INSTANCE=new gt;class Mt{constructor(){}load(e){return gt.INSTANCE.load(e)}loadDependencies(e){return gt.INSTANCE.loadDependencies(e)}}Mt.INSTANCE=new Mt;class Lt{static get(e){switch(e){case"esm":return Dt.INSTANCE;case"cjs":return vt.INSTANCE;case"umd":return gt.INSTANCE;case"iife":return Mt.INSTANCE;case"css":return St.INSTANCE}}}class Ct{static load(e){return s(this,void 0,void 0,(function*(){yield Promise.allSettled(e.map((e=>{var t;return null===(t=Lt.get(e.type))||void 0===t?void 0:t.load(e)})))}))}static loadDependencies(e,t){var n;return s(this,void 0,void 0,(function*(){yield null===(n=Lt.get(e))||void 0===n?void 0:n.loadDependencies(t)}))}}let bt=1;function Rt(e){return!!e}class xt{constructor(){}static loadDependencies(e){return s(this,void 0,void 0,(function*(){let t;t=Array.isArray(e)?e:[{type:"umd",dependencies:e}],yield Promise.allSettled(t.map((e=>Ct.loadDependencies(e.type,e.dependencies))))}))}static loadJavascript(e){return Ct.load(e.map((e=>"string"==typeof e?{id:"plugin-"+bt++,type:"umd",path:e}:e.path?{id:"plugin-"+bt++,type:e.type||"umd",path:e.path}:void console.error("Invalid javascript plugin.",e))).filter(Rt))}static loadCSS(e){return Ct.load(e.map((e=>({id:"plugin-css-"+bt++,type:"css",path:e}))))}}const kt=e.getInstance();class Pt{load(){return s(this,void 0,void 0,(function*(){let e=this.cache;if(void 0===e&&(e=yield function(){return s(this,void 0,void 0,(function*(){const e=t`
488
+ {
489
+ widgetDefinitionQuery {
490
+ loadSDK(data: {}) {
491
+ javascript
492
+ css
493
+ }
494
+ }
495
+ }
496
+ `;try{return(yield kt.query(U.BASE,e)).data.widgetDefinitionQuery.loadSDK}catch(e){return void console.error("remote plugin load error.",e)}}))}(),e||(e=null),this.cache=e),e){const{javascript:t,css:n}=e,i=[];t&&i.push(xt.loadJavascript(t)),n&&i.push(xt.loadCSS(n)),yield Promise.allSettled(i)}}))}}Pt.INSTANCE=new Pt;class Ft{static load(e,t){return s(this,void 0,void 0,(function*(){const{dependencies:n,mounted:i,usingRemote:r}=e;if(t&&(yield xt.loadDependencies(t)),n&&(yield xt.loadDependencies(n)),i)if(Array.isArray(i))yield xt.loadJavascript(i);else{const{js:e,css:t}=i;e&&(yield xt.loadJavascript(e)),t&&(yield xt.loadCSS(t))}r&&(yield Pt.INSTANCE.load())}))}}class wt{static resister(e){this._config=e}static getConfig(){return this._config}static getConfigByName(e){return"login"===e?this._config.login||this.defaultLoginPath:this._config[e]}}wt.defaultLoginPath="/login",wt._config={};const Bt="runtimeConfigResolve",$t={init:!1,updateTime:new Date,value:{}};class Ut{static init(e){return s(this,void 0,void 0,(function*(){if(!$t.init)return function(){if($t.init)return;if(Reflect.get(window,Bt))return;return new Promise((e=>{Reflect.set(window,Bt,(t=>{e(t),Reflect.deleteProperty(window,Bt)}));const t=document.createElement("script");t.src=`${process.env.RUNTIME_CONFIG_BASE_URL||""}/${process.env.RUNTIME_CONFIG_FILENAME||"manifest"}.js`;const n=function(e){return()=>{e({}),Reflect.deleteProperty(window,Bt)}}(e);t.onload=n,t.onerror=n,document.body.appendChild(t)})).then((e=>s(this,void 0,void 0,(function*(){$t.updateTime=new Date,$t.value=e})))).finally((()=>{$t.init=!0}))}()}))}static get(){return $t.init?$t.value||{}:("development"===process.env.NODE_ENV&&console.warn("runtime config is not init."),{})}static getConfig(e){return Ut.get()[e]}}function Vt(e){return null==e?e:JSON.parse(JSON.stringify(e))}const Yt=e=>e?Array.isArray(e)?null:Vt(e):{},Gt=e=>e&&e.children?e.children.filter((e=>e.tagName===b.PROP)).map((e=>({name:e.name,textContent:e.textContent}))):[],jt=e=>e?Vt(e):{},Ht=e=>e&&e.children?e.children.filter((e=>e.tagName===b.FIELD)).map((e=>({name:e.name,textContent:e.textContent,children:Ht(e)}))):[],Kt=(e,t)=>{if(!t)return{};const n=Vt(e);if(t.children&&t.children.find((e=>e.tagName===b.API&&e.name===n.submitApi))||null){const e=Jt(t,n.submitApi);if(!e)return{};n.api=e}return n},Jt=(e,t,n)=>{const i=e.children&&e.children.find((e=>e.tagName===b.API&&e.name===t))||null;if(!i)return console.warn(`api not fund: ${t}`,e),null;const r=Vt(i);return r.fun||console.warn(`api fun not fund: ${t}`,e),r.type||console.warn(`api type not fund: ${t}`,e),r.context={props:Gt(i.children.find((e=>e.tagName===b.CONTEXT)))},r.request={fields:Wt(Ht(i.children.find((e=>e.tagName===b.REQUEST))),n)},r.response={fields:Wt(Ht(i.children.find((e=>e.tagName===b.RESPONSE))),n)},r.clear={fields:Ht(i.children.find((e=>e.tagName===b.CLEAR)))},r};function Wt(e,t){return e&&e.length?e:(t||[]).map((e=>Xt(e)))}const qt=e=>({name:e.data,ttype:e.ttype,references:e.references,relatedTtype:e.relatedTtype}),Xt=e=>({data:e.name,name:e.name,ttype:e.ttype,references:e.references,relatedTtype:e.relatedTtype});function Qt(e){return!!e&&"function"==typeof e.then}const zt=e=>{switch(e.ttype){case o.Boolean:case o.Integer:case o.Long:case o.Float:case o.Currency:case o.String:case o.Email:case o.Phone:case o.ID:case o.Date:case o.DateTime:case o.Time:case o.Year:case o.Enum:case o.MultiEnum:case o.HTML:case o.Map:case o.Text:return!0;default:return!1}},Zt=e=>[o.OneToOne,o.OneToMany,o.ManyToOne,o.ManyToMany].includes(e),en=e=>[o.Date,o.DateTime,o.Year,o.Time].includes(e),tn=e=>[o.ID,o.UID,o.Integer,o.Long,o.Float,o.Currency].includes(e),nn=e=>[o.String,o.Text,o.HTML,o.Phone,o.Email].includes(e),rn=e=>{if(!1===e||0===e)return!1;if(!e)return!0;if(e instanceof Object){if(0===Object.keys(e||{}).length)return!0;return 0===Object.keys(e||{}).filter((e=>!e.startsWith("_"))).length}return!(!Array.isArray(e)||0!==e.length)},on=e=>rn(e)||Array.isArray(e)&&0===e.length,an=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length;export{L as ActionCompositionType,T as ActionContextType,O as ActionFunctionType,N as ActionType,C as ActionValidationScope,n as ActiveEnum,d as ApiProtocol,V as BASE_RSQL_QUERY_CONDITION,_ as ClientActionName,x as DataClass,i as DataStatusEnum,f as DataType,b as ElementType,p as EnumOptionState,wt as GlobalConfig,y as IActionTag,h as LoadType,st as MetadataFragment,Tt as MetadataRuntimeFragment,Ot as MetadataRuntimeFragmentName,I as ModelActionType,A as ModelDefaultActionName,M as ModelDefaultActionNames,u as ModelFieldSerializeType,o as ModelFieldType,c as ModelFieldTypeDisplayName,l as ModelFieldTypeOptions,r as ModelType,Ft as PluginsLoader,m as QueryType,Ut as RuntimeConfig,$ as SYSTEM_MODULE,U as SYSTEM_MODULE_NAME,B as SystemSource,R as UserBehaviorEventEnum,E as ValidationScope,w as ViewActionTarget,k as ViewClientType,F as ViewMode,P as ViewType,Kt as createActionElement,Jt as createApiElement,jt as createFieldElement,Ht as createFieldElements,Gt as createPropElements,Yt as createViewElement,Vt as deepClone,qt as fieldElement2ModelField,Zt as isComplexTtype,en as isDateTtype,rn as isEmptyKeObject,an as isEmptyValue,tn as isNumberTtype,Qt as isPromise,g as isRelatedTtype,D as isRelationTtype,zt as isSimpleField,nn as isStringTtype,S as isToManyTtype,v as isToOneTtype,on as isValidateEmpty,Xt as modelField2fieldElement};
@@ -0,0 +1 @@
1
+ export * from './src';
@@ -0,0 +1,15 @@
1
+ import { IBaseElement } from './IBaseElement';
2
+ import { ApiElement } from './ApiElement';
3
+ /**
4
+ * 动作按钮
5
+ */
6
+ interface ActionElement extends IBaseElement {
7
+ displayName: string;
8
+ model: string;
9
+ refs: string;
10
+ rule: string;
11
+ type: string;
12
+ submitApi: string;
13
+ api: ApiElement;
14
+ }
15
+ export { ActionElement };
@@ -0,0 +1,21 @@
1
+ import { IBaseElement } from './IBaseElement';
2
+ import { LoadType } from '../metadata';
3
+ import { ContextElement } from './ContextElement';
4
+ import { RequestElement } from './RequestElement';
5
+ import { ResponseElement } from './ResponseElement';
6
+ import { ClearElement } from './ClearElement';
7
+ import { ValidationElement } from './ValidationElement';
8
+ /**
9
+ * 自定义api
10
+ */
11
+ interface ApiElement extends IBaseElement {
12
+ model: string;
13
+ fun: string;
14
+ type: LoadType;
15
+ context: ContextElement;
16
+ request: RequestElement;
17
+ response: ResponseElement;
18
+ clear: ClearElement;
19
+ validation: ValidationElement;
20
+ }
21
+ export { ApiElement };
@@ -0,0 +1,9 @@
1
+ import { IBaseElement } from './IBaseElement';
2
+ import { FieldElement } from './FieldElement';
3
+ /**
4
+ * 待响应后清理的字段
5
+ */
6
+ interface ClearElement extends IBaseElement {
7
+ fields: FieldElement[];
8
+ }
9
+ export { ClearElement };
@@ -0,0 +1,6 @@
1
+ import { IBaseElement } from './IBaseElement';
2
+ /**
3
+ * 配置
4
+ */
5
+ declare type ConfigElement = IBaseElement;
6
+ export { ConfigElement };