@nocobase/plugin-client 2.1.0-alpha.1 → 2.1.0-alpha.2
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.
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +5 -5
- package/dist/locale/de-DE.json +2 -0
- package/dist/locale/en-US.json +51 -0
- package/dist/locale/es-ES.json +2 -0
- package/dist/locale/fr-FR.json +2 -0
- package/dist/locale/hu-HU.json +2 -0
- package/dist/locale/id-ID.json +2 -0
- package/dist/locale/it-IT.json +2 -0
- package/dist/locale/ja-JP.json +2 -0
- package/dist/locale/ko-KR.json +2 -0
- package/dist/locale/nl-NL.json +2 -0
- package/dist/locale/pt-BR.json +2 -0
- package/dist/locale/ru-RU.json +2 -0
- package/dist/locale/tr-TR.json +2 -0
- package/dist/locale/uk-UA.json +2 -0
- package/dist/locale/vi-VN.json +2 -0
- package/dist/locale/zh-CN.json +78 -7
- package/dist/locale/zh-TW.json +12 -0
- package/dist/node_modules/cronstrue/package.json +1 -1
- package/package.json +2 -2
package/dist/client/index.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@nocobase/client"),require("react"),require("@formily/react"),require("lodash"),require("@ant-design/icons"),require("antd"),require("@nocobase/utils/client"),require("react-i18next")):"function"==typeof define&&define.amd?define("@nocobase/plugin-client",["@nocobase/client","react","@formily/react","lodash","@ant-design/icons","antd","@nocobase/utils/client","react-i18next"],t):"object"==typeof exports?exports["@nocobase/plugin-client"]=t(require("@nocobase/client"),require("react"),require("@formily/react"),require("lodash"),require("@ant-design/icons"),require("antd"),require("@nocobase/utils/client"),require("react-i18next")):e["@nocobase/plugin-client"]=t(e["@nocobase/client"],e.react,e["@formily/react"],e.lodash,e["@ant-design/icons"],e.antd,e["@nocobase/utils/client"],e["react-i18next"])}(self,function(e,t,n,o,r,a,i,l){return function(){"use strict";var c={482:function(e){e.exports=r},505:function(e){e.exports=n},772:function(t){t.exports=e},584:function(e){e.exports=i},721:function(e){e.exports=a},467:function(e){e.exports=o},156:function(e){e.exports=t},238:function(e){e.exports=l}},u={};function p(e){var t=u[e];if(void 0!==t)return t.exports;var n=u[e]={exports:{}};return c[e](n,n.exports,p),n.exports}p.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(t,{a:t}),t},p.d=function(e,t){for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return!function(){p.r(s),p.d(s,{default:function(){return ei}});var e=p(772),t=p(721),n=p(156),o=p.n(n),r={name:"desktopRoutes",dumpRules:"required",migrationRules:["overwrite","schema-only"],inherit:!1,hidden:!1,description:null,fields:[{key:"ymgf0jxu1kg",name:"parentId",type:"bigInt",interface:"integer",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,isForeignKey:!0,uiSchema:{type:"number",title:'{{t("Parent ID")}}',"x-component":"InputNumber","x-read-pretty":!0}},{key:"b07aqgs2shv",name:"parent",type:"belongsTo",interface:"m2o",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,foreignKey:"parentId",treeParent:!0,onDelete:"CASCADE",uiSchema:{title:'{{t("Parent")}}',"x-component":"AssociationField","x-component-props":{multiple:!1,fieldNames:{label:"id",value:"id"}}},target:"desktopRoutes",targetKey:"id"},{key:"p8sxllsgin1",name:"children",type:"hasMany",interface:"o2m",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,foreignKey:"parentId",treeChildren:!0,onDelete:"CASCADE",uiSchema:{title:'{{t("Children")}}',"x-component":"AssociationField","x-component-props":{multiple:!0,fieldNames:{label:"id",value:"id"}}},target:"desktopRoutes",targetKey:"id",sourceKey:"id"},{key:"7y601o9bmih",name:"id",type:"snowflakeId",interface:"integer",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,primaryKey:!0,allowNull:!1,uiSchema:{type:"number",title:'{{t("ID")}}',"x-component":"InputNumber","x-read-pretty":!0}},{key:"m8s9b94amz3",name:"createdAt",type:"date",interface:"createdAt",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,field:"createdAt",uiSchema:{type:"datetime",title:'{{t("Created at")}}',"x-component":"DatePicker","x-component-props":{},"x-read-pretty":!0}},{key:"p3p69woziuu",name:"createdBy",type:"belongsTo",interface:"createdBy",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,target:"users",foreignKey:"createdById",uiSchema:{type:"object",title:'{{t("Created by")}}',"x-component":"AssociationField","x-component-props":{fieldNames:{value:"id",label:"nickname"}},"x-read-pretty":!0},targetKey:"id"},{key:"s0gw1blo4hm",name:"updatedAt",type:"date",interface:"updatedAt",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,field:"updatedAt",uiSchema:{type:"string",title:'{{t("Last updated at")}}',"x-component":"DatePicker","x-component-props":{},"x-read-pretty":!0}},{key:"d1l988n09gd",name:"updatedBy",type:"belongsTo",interface:"updatedBy",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,target:"users",foreignKey:"updatedById",uiSchema:{type:"object",title:'{{t("Last updated by")}}',"x-component":"AssociationField","x-component-props":{fieldNames:{value:"id",label:"nickname"}},"x-read-pretty":!0},targetKey:"id"},{key:"bo7btzkbyan",name:"title",type:"string",interface:"input",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input",title:'{{t("Title")}}'}},{key:"brt6tz4hgin",name:"tooltip",type:"string",interface:"textarea",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input.TextArea",title:'{{t("Tooltip")}}'}},{key:"ozl5d8t2d5e",name:"icon",type:"string",interface:"input",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input",title:'{{t("Icon")}}'}},{key:"6bbyhv00bp4",name:"schemaUid",type:"string",interface:"input",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input",title:'{{t("Schema UID")}}'}},{key:"6bbyhv00bp5",name:"menuSchemaUid",type:"string",interface:"input",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input",title:'{{t("Menu Schema UID")}}'}},{key:"6bbyhv00bp6",name:"tabSchemaName",type:"string",interface:"input",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input",title:'{{t("Tab Schema Name")}}'}},{key:"m0k5qbaktab",name:"type",type:"string",interface:"input",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input",title:'{{t("Type")}}'}},{key:"ssuml1j2v1b",name:"options",type:"json",interface:"json",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,defaultValue:null,uiSchema:{type:"object","x-component":"Input.JSON","x-component-props":{autoSize:{minRows:5}},default:null,title:'{{t("Options")}}'}},{key:"jjmosjqhz8l",name:"sort",type:"sort",interface:"sort",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,scopeKey:"parentId",uiSchema:{type:"number","x-component":"InputNumber","x-component-props":{stringMode:!0,step:"1"},"x-validator":"integer",title:'{{t("Sort")}}'}},{type:"belongsToMany",name:"roles",through:"rolesDesktopRoutes",target:"roles",onDelete:"CASCADE"},{type:"boolean",name:"hideInMenu",interface:"checkbox",uiSchema:{type:"boolean","x-component":"Checkbox",title:'{{t("Hide in menu")}}'}},{type:"boolean",name:"enableTabs",interface:"checkbox",uiSchema:{type:"boolean","x-component":"Checkbox",title:'{{t("Enable tabs")}}'}},{type:"boolean",name:"enableHeader",interface:"checkbox",uiSchema:{type:"boolean","x-component":"Checkbox",title:'{{t("Enable header")}}'}},{type:"boolean",name:"displayTitle",interface:"checkbox",uiSchema:{type:"boolean","x-component":"Checkbox",title:'{{t("Display title")}}'}},{type:"boolean",name:"hidden",interface:"checkbox",uiSchema:{type:"boolean","x-component":"Checkbox",title:'{{t("Hidden")}}'}}],category:[],logging:!0,autoGenId:!0,createdAt:!0,createdBy:!0,updatedAt:!0,updatedBy:!0,template:"tree",view:!1,tree:"adjacencyList",filterTargetKey:"id"},a=p(238),i="client";function l(t){return e.i18n.t(t,{ns:i})}function c(){return(0,a.useTranslation)(i,{nsMode:"fallback"})}var u=p(482),d=p(505),m=p(584),y=p(467),f=p.n(y);function b(t,n,o){var r=!0,a=!1,i=void 0;try{for(var l,c=n[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var u,p=l.value;if(p.id===t)return p.type===e.NocoBaseDesktopRouteType.page,p.schemaUid;if(null==(u=p.children)?void 0:u.length){var s=b(t,p.children,o);if(s)return s}}}catch(e){a=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return null}function h(e,t){var n=!0,o=!1,r=void 0;try{for(var a,i=t[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var l,c=a.value;if(c.id===e)return c;if(null==(l=c.children)?void 0:l.length){var u=h(e,c.children);if(u)return u}}}catch(e){o=!0,r=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw r}}return null}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function g(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var x=function(){var t,o,r,a,i,l,c=(0,d.useField)(),u=(0,d.useFieldSchema)(),p=(0,e.useDataBlockResource)(),s=(0,e.useDataBlockRequest)(),m=(0,e.useTableBlockContextBasicValue)(),y=(0,n.useRef)(null);y.current={service:s,resource:p};var b=(null==s||null==(t=s.data)?void 0:t.meta)||{},v=(0,n.useMemo)(function(){return{pageSize:null==b?void 0:b.pageSize,total:null==b?void 0:b.count,current:null==b?void 0:b.page}},[null==b?void 0:b.count,null==b?void 0:b.page,null==b?void 0:b.pageSize]),x=(null==s||null==(o=s.data)?void 0:o.data)||[];return(0,n.useEffect)(function(){if(!(null==s?void 0:s.loading)){var e,t,n=null==(t=m.field)||null==(e=t.data)?void 0:e.selectedRowKeys;c.data=c.data||{},f().isEqual(c.data.selectedRowKeys,n)||(c.data.selectedRowKeys=n)}},[c,null==s?void 0:s.data,null==s?void 0:s.loading,null==(a=m.field)||null==(r=a.data)?void 0:r.selectedRowKeys]),{optimizeTextCellRender:!1,value:x,loading:null==s?void 0:s.loading,showIndex:!0,dragSort:!1,rowKey:"id",pagination:(null==u||null==(i=u["x-component-props"])?void 0:i.pagination)!==!1&&v,onRowSelectionChange:(0,n.useCallback)(function(e,t,n){if(m){m.field.data=(null==(o=m.field)?void 0:o.data)||{};var o,r,a,i,l=m.field.data.selectedRecord,c=m.field.data.selected;m.field.data.selectedRowKeys=function(e,t,n,o){var r=g(e);if(0===r.length)return r;if(n)(p=r).push.apply(p,g(k(null==t?void 0:t.children)));else{for(var a=[],i=t;null==i?void 0:i.parentId;)a.push(i.parentId),i=h(i.parentId,o);var l=!0,c=!1,u=void 0;try{for(var p,s,d=a[Symbol.iterator]();!(l=(s=d.next()).done);l=!0)!function(){var e=s.value,t=h(e,o);t&&(k(t.children).every(function(e){return r.includes(e)})||(r=r.filter(function(e){return e!==t.id})))}()}catch(e){c=!0,u=e}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}var m=k(null==t?void 0:t.children);r=r.filter(function(e){return!m.includes(e)})}return f().uniq(r)}(e,l,c,(null==s||null==(r=s.data)?void 0:r.data)||[]),n(m.field.data.selectedRowKeys),null==(a=(i=m.field).onRowSelect)||a.call(i,m.field.data.selectedRowKeys)}},[null==s||null==(l=s.data)?void 0:l.data,m]),onChange:(0,n.useCallback)(function(e,t,n){var o,r,a,i,l,c,p,s,d,f,b,h,v=e.current,g=e.pageSize,x=null==(l=u.parent)||null==(i=l["x-decorator-props"])||null==(a=i.params)?void 0:a.sort,k=n.order?"ascend"===n.order?[n.field]:["-".concat(n.field)]:x||m.dragSortBy,S=g||(null==(s=u.parent)||null==(p=s["x-decorator-props"])||null==(c=p.params)?void 0:c.pageSize),w=(o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o})}return e}({},null==(b=y.current)||null==(f=b.service)||null==(d=f.params)?void 0:d[0]),r=r={page:v||1,pageSize:S},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n.push.apply(n,o)}return n})(Object(r)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))}),o);k&&(w.sort=k),null==(h=y.current)||h.service.run(w)},[u.parent])}};function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=!0,o=!1,r=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var l=a.value;t.push(l.id),t.push.apply(t,g(k(l.children)))}}catch(e){o=!0,r=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw r}}return t}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function w(e,t,n,o,r,a,i){try{var l=e[a](i),c=l.value}catch(e){n(e);return}l.done?t(c):Promise.resolve(c).then(o,r)}function R(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){w(a,o,r,i,l,"next",e)}function l(e){w(a,o,r,i,l,"throw",e)}i(void 0)})}}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){I(e,t,n[t])})}return e}function D(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n.push.apply(n,o)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,o,r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function O(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){var c=[a,l];if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(6===c[0]&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],o=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function N(){var e=A(["\n & > .ant-space-item:first-child,\n & > .ant-space-item:last-child {\n flex-shrink: 0;\n }\n "]);return N=function(){return e},e}function P(){var e=A(["\n & > .ant-space-item:first-child,\n & > .ant-space-item:last-child {\n flex-shrink: 0;\n }\n "]);return P=function(){return e},e}function B(){var e=A(["\n & > .ant-space-item:first-child,\n & > .ant-space-item:last-child {\n flex-shrink: 0;\n }\n "]);return B=function(){return e},e}var j=(0,e.getVariableComponentWithScope)(e.Variable.TextArea),K=function(r,i){var l,c,p,s="mobileRoutes"===r;return{type:"void",name:(0,m.uid)(),"x-decorator":"TableBlockProvider","x-decorator-props":{collection:r,action:"list",dragSort:!1,params:{sort:["sort"],pageSize:20,filter:{"hidden.$ne":!0}},treeTable:!0},properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:16}},properties:{refresh:{title:"{{t('Refresh')}}","x-action":"refresh","x-component":"Action","x-use-component-props":"useRefreshActionProps","x-component-props":{icon:"ReloadOutlined"}},delete:{type:"void",title:'{{t("Delete")}}',"x-component":"Action","x-use-component-props":function(){var t=(0,e.useTableBlockContextBasicValue)(),n=(0,e.useBlockRequestContext)(),o=n.resource,a=n.service,i=(0,e.useDeleteRouteSchema)().deleteRouteSchema,l=(0,e.useDataBlockRequestData)(),c=(0,e.useAllAccessDesktopRoutes)().refresh;return{onClick:function(){return R(function(){var e,n,u,p,d,m,y,f,h,v,g,x;return O(this,function(k){switch(k.label){case 0:if(!(null==(m=null==(n=t.field)||null==(e=n.data)?void 0:e.selectedRowKeys)?void 0:m.length))return[2];y=!0,f=!1,h=void 0,k.label=1;case 1:k.trys.push([1,6,7,8]),v=m[Symbol.iterator](),k.label=2;case 2:if(y=(g=v.next()).done)return[3,5];return[4,i(b(g.value,null==l?void 0:l.data,s))];case 3:k.sent(),k.label=4;case 4:return y=!0,[3,2];case 5:return[3,8];case 6:return x=k.sent(),f=!0,h=x,[3,8];case 7:try{y||null==v.return||v.return()}finally{if(f)throw h}return[7];case 8:return[4,o.destroy({filterByTk:m})];case 9:return k.sent(),null==(u=(p=t.field.data).clearSelectedRowKeys)||u.call(p),null==a||null==(d=a.refresh)||d.call(a),"desktopRoutes"===r&&c(),[2]}})})()}}},"x-component-props":{confirm:{title:"{{t('Delete routes')}}",content:"{{t('Are you sure you want to delete it?')}}"},icon:"DeleteOutlined"}},hide:{type:"void",title:'{{t("Hide in menu")}}',"x-component":"Action","x-use-component-props":function(){var t=(0,e.useTableBlockContextBasicValue)(),n=(0,e.useBlockRequestContext)().service,o=(0,e.useAllAccessDesktopRoutes)().refresh,a=(0,e.useNocoBaseRoutes)(r).updateRoute;return{onClick:function(){return R(function(){var e,r,i,l,c,u;return O(this,function(p){switch(p.label){case 0:if(!(null==(u=null==(r=t.field)||null==(e=r.data)?void 0:e.selectedRowKeys)?void 0:u.length))return[2];return[4,a(u,{hideInMenu:!0})];case 1:return p.sent(),null==(i=(l=t.field.data).clearSelectedRowKeys)||i.call(l),null==n||null==(c=n.refresh)||c.call(n),o(),[2]}})})()}}},"x-component-props":{icon:"EyeInvisibleOutlined",confirm:{title:"{{t('Hide in menu')}}",content:"{{t('Are you sure you want to hide these routes in menu?')}}"}}},show:{type:"void",title:'{{t("Show in menu")}}',"x-component":"Action","x-use-component-props":function(){var t=(0,e.useTableBlockContextBasicValue)(),n=(0,e.useBlockRequestContext)().service,o=(0,e.useNocoBaseRoutes)(r).updateRoute;return{onClick:function(){return R(function(){var e,r,a,i,l,c;return O(this,function(u){switch(u.label){case 0:if(!(null==(c=null==(r=t.field)||null==(e=r.data)?void 0:e.selectedRowKeys)?void 0:c.length))return[2];return[4,o(c,{hideInMenu:!1})];case 1:return u.sent(),null==(a=(i=t.field.data).clearSelectedRowKeys)||a.call(i),null==n||null==(l=n.refresh)||l.call(n),[2]}})})()}}},"x-component-props":{icon:"EyeOutlined",confirm:{title:"{{t('Show in menu')}}",content:"{{t('Are you sure you want to show these routes in menu?')}}"}}},create:{type:"void",title:'{{t("Add new")}}',"x-component":"Action","x-component-props":{type:"primary",icon:"PlusOutlined"},properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{useValues:function(e){return{}}},title:'{{t("Add new")}}',properties:{formSchema:{type:"void",properties:(I(l={type:{type:"string",title:'{{t("Type")}}',"x-decorator":"FormItem","x-component":function(n){var r=(0,a.useTranslation)().t;return o().createElement(t.Radio.Group,n,!s&&o().createElement(t.Radio,{value:e.NocoBaseDesktopRouteType.group},r("Group")),o().createElement(t.Radio,{value:e.NocoBaseDesktopRouteType.page},r(s?"Page":"Classic page (v1)")),!s&&o().createElement(t.Radio,{value:e.NocoBaseDesktopRouteType.flowPage},r("Modern page (v2)")),o().createElement(t.Radio,{value:e.NocoBaseDesktopRouteType.link},r("Link")))},default:e.NocoBaseDesktopRouteType.page,required:!0},title:{type:"string",title:'{{t("Title")}}',"x-decorator":"FormItem","x-component":"Input",required:!0},icon:{type:"string",title:'{{t("Icon")}}',"x-decorator":"FormItem","x-component":"IconPicker","x-reactions":s?{dependencies:["type"],fulfill:{state:{required:'{{$deps[0] !== "tabs"}}'}}}:void 0}},s?"url":"href",{title:'{{t("URL")}}',type:"string","x-decorator":"FormItem","x-component":j,description:'{{t("Do not concatenate search params in the URL")}}',"x-reactions":{dependencies:["type"],fulfill:{state:{hidden:'{{$deps[0] !== "link"}}'}}}}),I(l,"params",{type:"array","x-component":"ArrayItems","x-decorator":"FormItem",title:'{{t("Search parameters")}}',items:{type:"object",properties:{space:{type:"void","x-component":"Space","x-component-props":{style:{flexWrap:"nowrap",maxWidth:"100%"},className:(0,e.css)(N())},properties:{name:{type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:'{{t("Name")}}'}},value:{type:"string","x-decorator":"FormItem","x-component":j,"x-component-props":{placeholder:'{{t("Value")}}',useTypedConstant:!0,changeOnSelect:!0}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}}}},"x-reactions":{dependencies:["type"],fulfill:{state:{hidden:'{{$deps[0] !== "link"}}'}}},properties:{add:{type:"void",title:'{{t("Add parameter")}}',"x-component":"ArrayItems.Addition"}}}),I(l,"hideInMenu",{type:"boolean",title:'{{t("Show in menu")}}',"x-decorator":"FormItem","x-decorator-props":{tooltip:"{{t(`If selected, the route will be displayed in the menu.`)}}"},"x-component":function(e){var r=C((0,n.useState)(!e.value),2),a=r[0],i=r[1];return o().createElement(t.Checkbox,{checked:a,onChange:function(){var t;i(!a),null==(t=e.onChange)||t.call(e,a)}})},default:!1}),I(l,"enableTabs",{type:"boolean",title:'{{t("Enable page tabs")}}',"x-decorator":"FormItem","x-decorator-props":{tooltip:"{{t(`If selected, the page will display Tab pages.`)}}"},"x-component":function(e){return o().createElement(t.Checkbox,{checked:e.value,onChange:e.onChange})},"x-reactions":{dependencies:["type"],fulfill:{state:{hidden:'{{$deps[0] !== "page" && $deps[0] !== "flowPage"}}'}}},default:!1}),l)},footer:{type:"void","x-component":"Action.Drawer.Footer",properties:{cancel:{title:'{{t("Cancel")}}',"x-component":"Action","x-component-props":{useAction:"{{ cm.useCancelAction }}"}},submit:{title:'{{t("Submit")}}',"x-component":"Action","x-component-props":{type:"primary",useAction:function(t){var n=(0,d.useForm)(),o=(0,d.useField)(),a=(0,e.useActionContext)(),i=(0,e.useDataBlockRequestGetter)().getDataBlockRequest,l=(0,e.useNocoBaseRoutes)(r).createRoute,c=E(s).createRouteSchema;return{run:function(){return R(function(){var r,u,p,d,m,y,b,h,v,g,x;return O(this,function(k){switch(k.label){case 0:return k.trys.push([0,5,,6]),[4,n.submit()];case 1:return k.sent(),o.data=o.data||{},o.data.loading=!0,[4,c(n.values)];case 2:return d=(p=k.sent()).pageSchemaUid,m=p.tabSchemaUid,y=p.tabSchemaName,(n.values.href||!f().isEmpty(n.values.params))&&(b={params:n.values.params,href:s?void 0:n.values.href,url:s?n.values.url:void 0}),h={},m&&(h.children=[{schemaUid:m,type:e.NocoBaseDesktopRouteType.tabs,tabSchemaName:y,hidden:!(null==(v=n.values)?void 0:v.enableTabs)}]),[4,l(T(D(T({},f().omit(n.values,["href","params","url"])),{schemaUid:e.NocoBaseDesktopRouteType.page===n.values.type||e.NocoBaseDesktopRouteType.flowPage===n.values.type?d:void 0,options:b}),h))];case 3:return g=k.sent(),a.setVisible(!1),null==t||t(null==g||null==(r=g.data)?void 0:r.data),[4,n.reset()];case 4:return k.sent(),o.data.loading=!1,null==(u=i())||u.refresh(),[3,6];case 5:throw x=k.sent(),o.data&&(o.data.loading=!1),x;case 6:return[2]}})})()}}}}}}}}}}},filter:{"x-action":"filter",type:"object","x-component":"Filter.Action",title:"{{t('Filter')}}","x-use-component-props":"useFilterActionProps","x-component-props":{icon:"FilterOutlined"},"x-align":"left"}}},table:{type:"array","x-component":"TableV2","x-use-component-props":x,"x-component-props":{rowKey:"id",rowSelection:{type:"checkbox"}},properties:{title:{type:"void","x-component":"TableV2.Column",title:'{{t("Title")}}',"x-component-props":{width:200},properties:{title:{type:"string","x-component":function(t){var n=(0,e.useCollectionRecordData)(),r=(0,e.useMenuTranslation)().t,a=t.value;return n.type===e.NocoBaseDesktopRouteType.tabs&&f().isNil(t.value)&&(a=r("Unnamed")),o().createElement(e.CollectionField,D(T({},t),{value:r(a)}))},"x-read-pretty":!0,"x-component-props":{ellipsis:!0}}}},type:{type:"void","x-component":"TableV2.Column",title:'{{t("Type")}}',"x-component-props":{width:100},properties:{type:{type:"string","x-component":function(e){return o().createElement(F,{value:e.value})},"x-read-pretty":!0,"x-component-props":{ellipsis:!0}}}},hideInMenu:{type:"void","x-component":"TableV2.Column",title:'{{t("Show in menu")}}',"x-component-props":{width:100},properties:{hideInMenu:{type:"boolean","x-component":function(e){return e.value?o().createElement(u.CloseOutlined,{style:{color:"#ff4d4f"}}):o().createElement(u.CheckOutlined,{style:{color:"#52c41a"}})},"x-read-pretty":!0,"x-component-props":{ellipsis:!0}}}},path:{title:'{{t("Path")}}',type:"void","x-component":"TableV2.Column","x-component-props":{width:300},properties:{path:{type:"string","x-component":function(){var n=(0,e.useDataBlockRequestData)(),r=(0,e.useCollectionRecordData)(),l=(0,e.useRouterBasename)(),c=(0,a.useTranslation)().t;if(r.type===e.NocoBaseDesktopRouteType.group||r.type===e.NocoBaseDesktopRouteType.link)return null;if(r.type===e.NocoBaseDesktopRouteType.page||r.type===e.NocoBaseDesktopRouteType.flowPage){var u="".concat(l.slice(0,-1)).concat(i,"/").concat(r.schemaUid);return r._path=u,o().createElement(t.Typography.Paragraph,{copyable:!0,style:{marginBottom:0},ellipsis:!0},u)}if(r.type===e.NocoBaseDesktopRouteType.tabs&&(null==n?void 0:n.data)){var p="".concat(l.slice(0,-1)).concat(i,"/").concat(b(r.parentId,n.data,s),"/tabs/").concat(r.schemaUid);return r._path=p,o().createElement(t.Typography.Paragraph,{copyable:!0,style:{marginBottom:0},ellipsis:!0},p)}return o().createElement(t.Tag,null,c("Unknown")," ")},"x-read-pretty":!0}}},actions:{type:"void",title:'{{t("Actions")}}',"x-component":"TableV2.Column",properties:{addChild:{type:"void",title:'{{t("Add child route")}}',"x-component":"Action.Link","x-use-component-props":function(){var t=(0,e.useCollectionRecordData)();return{disabled:t.type!==e.NocoBaseDesktopRouteType.group&&t.type!==e.NocoBaseDesktopRouteType.page&&t.type!==e.NocoBaseDesktopRouteType.flowPage||!t.enableTabs&&(t.type===e.NocoBaseDesktopRouteType.page||t.type===e.NocoBaseDesktopRouteType.flowPage),openMode:"drawer"}},"x-decorator":"Space",properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{useValues:function(e){return{}}},title:'{{t("Add child route")}}',properties:{formSchema:{type:"void",properties:(I(c={type:{type:"string",title:'{{t("Type")}}',"x-decorator":"FormItem","x-component":function(r){var i=(0,a.useTranslation)().t,l=(0,e.useCollectionRecordData)(),c=l.type===e.NocoBaseDesktopRouteType.page||l.type===e.NocoBaseDesktopRouteType.flowPage,u=l.type===e.NocoBaseDesktopRouteType.group,p=(0,n.useMemo)(function(){return c?(r.onChange(e.NocoBaseDesktopRouteType.tabs),e.NocoBaseDesktopRouteType.tabs):e.NocoBaseDesktopRouteType.page},[c,r]);return o().createElement(t.Radio.Group,D(T({},r),{defaultValue:p}),!s&&o().createElement(t.Radio,{value:e.NocoBaseDesktopRouteType.group,disabled:!u},i("Group")),o().createElement(t.Radio,{value:e.NocoBaseDesktopRouteType.page,disabled:!u},i(s?"Page":"Classic page (v1)")),!s&&o().createElement(t.Radio,{value:e.NocoBaseDesktopRouteType.flowPage,disabled:!u},i("Modern page (v2)")),o().createElement(t.Radio,{value:e.NocoBaseDesktopRouteType.link,disabled:!u},i("Link")),o().createElement(t.Radio,{value:e.NocoBaseDesktopRouteType.tabs,disabled:!c},i("Tab")))},required:!0,default:e.NocoBaseDesktopRouteType.page},title:{type:"string",title:'{{t("Title")}}',"x-decorator":"FormItem","x-component":"Input",required:!0},icon:{type:"string",title:'{{t("Icon")}}',"x-decorator":"FormItem","x-component":"IconPicker","x-reactions":s?{dependencies:["type"],fulfill:{state:{required:'{{$deps[0] !== "tabs"}}'}}}:void 0}},s?"url":"href",{title:'{{t("URL")}}',type:"string","x-decorator":"FormItem","x-component":j,description:'{{t("Do not concatenate search params in the URL")}}',"x-reactions":{dependencies:["type"],fulfill:{state:{hidden:'{{$deps[0] !== "link"}}'}}}}),I(c,"params",{type:"array","x-component":"ArrayItems","x-decorator":"FormItem",title:'{{t("Search parameters")}}',items:{type:"object",properties:{space:{type:"void","x-component":"Space","x-component-props":{style:{flexWrap:"nowrap",maxWidth:"100%"},className:(0,e.css)(P())},properties:{name:{type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:'{{t("Name")}}'}},value:{type:"string","x-decorator":"FormItem","x-component":j,"x-component-props":{placeholder:'{{t("Value")}}',useTypedConstant:!0,changeOnSelect:!0}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}}}},"x-reactions":{dependencies:["type"],fulfill:{state:{hidden:'{{$deps[0] !== "link"}}'}}},properties:{add:{type:"void",title:'{{t("Add parameter")}}',"x-component":"ArrayItems.Addition"}}}),I(c,"hideInMenu",{type:"boolean",title:'{{t("Show in menu")}}',"x-decorator":"FormItem","x-decorator-props":{tooltip:"{{t(`If selected, the route will be displayed in the menu.`)}}"},"x-component":function(e){var r=C((0,n.useState)(!e.value),2),a=r[0],i=r[1];return o().createElement(t.Checkbox,{checked:a,onChange:function(){var t;i(!a),null==(t=e.onChange)||t.call(e,a)}})},default:!1}),I(c,"enableTabs",{type:"boolean",title:'{{t("Enable page tabs")}}',"x-decorator":"FormItem","x-decorator-props":{tooltip:"{{t(`If selected, the page will display Tab pages.`)}}"},"x-component":function(e){return o().createElement(t.Checkbox,{checked:e.value,onChange:e.onChange})},"x-reactions":{dependencies:["type"],fulfill:{state:{hidden:'{{$deps[0] !== "page" && $deps[0] !== "flowPage"}}'}}},default:!1}),c)},footer:{type:"void","x-component":"Action.Drawer.Footer",properties:{cancel:{title:'{{t("Cancel")}}',"x-component":"Action","x-component-props":{useAction:"{{ cm.useCancelAction }}"}},submit:{title:'{{t("Submit")}}',"x-component":"Action","x-component-props":{type:"primary",useAction:function(){var t=(0,d.useForm)(),n=(0,d.useField)(),o=(0,e.useActionContext)(),a=(0,e.useDataBlockRequestGetter)().getDataBlockRequest,i=(0,e.useNocoBaseRoutes)(r).createRoute,l=E(s),c=l.createRouteSchema,u=l.createTabRouteSchema,p=(0,e.useCollectionRecordData)();return{run:function(){return R(function(){var r,l,s,d,m,y,b,h,v,g,x,k,S;return O(this,function(w){switch(w.label){case 0:return w.trys.push([0,10,,11]),[4,t.submit()];case 1:if(w.sent(),n.data=n.data||{},n.data.loading=!0,t.values.type!==e.NocoBaseDesktopRouteType.tabs)return[3,4];return[4,u(D(T({},t.values),{parentSchemaUid:p.schemaUid}))];case 2:return s=(l=w.sent()).tabSchemaUid,d=l.tabSchemaName,[4,i(T({parentId:p.id,type:e.NocoBaseDesktopRouteType.tabs,schemaUid:s,tabSchemaName:d},t.values))];case 3:return w.sent(),[3,8];case 4:return[4,c(t.values)];case 5:return b=(y=w.sent()).pageSchemaUid,h=y.tabSchemaUid,v=y.tabSchemaName,(t.values.href||!f().isEmpty(t.values.params))&&(m={href:t.values.href,params:t.values.params}),[4,i(D(T({parentId:p.id},f().omit(t.values,["href","params"])),{schemaUid:e.NocoBaseDesktopRouteType.page===t.values.type||e.NocoBaseDesktopRouteType.flowPage===t.values.type?b:void 0,options:m}))];case 6:if(g=w.sent(),!h)return[3,8];return[4,i({parentId:null==g||null==(k=g.data)||null==(x=k.data)?void 0:x.id,type:e.NocoBaseDesktopRouteType.tabs,schemaUid:h,tabSchemaName:v,hidden:!0})];case 7:w.sent(),w.label=8;case 8:return o.setVisible(!1),[4,t.reset()];case 9:return w.sent(),n.data.loading=!1,null==(r=a())||r.refresh(),[3,11];case 10:throw S=w.sent(),n.data&&(n.data.loading=!1),S;case 11:return[2]}})})()}}}}}}}}}}},edit:{type:"void",title:'{{t("Edit")}}',"x-component":"Action.Link","x-component-props":{openMode:"drawer"},"x-decorator":"Space",properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{useValues:function(t){var n=(0,e.useCollectionRecordData)(),o=(0,e.useActionContext)();return(0,e.useRequest)(function(){var e,t,o;return Promise.resolve({data:D(T({},n),{href:null==(e=n.options)?void 0:e.href,params:null==(t=n.options)?void 0:t.params,url:null==(o=n.options)?void 0:o.url})})},D(T({},t),{refreshDeps:[o.visible]}))}},title:'{{t("Edit")}}',properties:{formSchema:{type:"void",properties:(I(p={type:{type:"string",title:'{{t("Type")}}',"x-decorator":"FormItem","x-component":function(e){return o().createElement(F,{value:e.value})},default:e.NocoBaseDesktopRouteType.page},title:{type:"string",title:'{{t("Title")}}',"x-decorator":"FormItem","x-component":"Input",required:!0},icon:{type:"string",title:'{{t("Icon")}}',"x-decorator":"FormItem","x-component":"IconPicker","x-reactions":s?{dependencies:["type"],fulfill:{state:{required:'{{$deps[0] !== "tabs"}}'}}}:void 0}},s?"url":"href",{title:'{{t("URL")}}',type:"string","x-decorator":"FormItem","x-component":j,description:'{{t("Do not concatenate search params in the URL")}}',"x-reactions":{dependencies:["type"],fulfill:{state:{hidden:'{{$deps[0] !== "link"}}'}}}}),I(p,"params",{type:"array","x-component":"ArrayItems","x-decorator":"FormItem",title:'{{t("Search parameters")}}',items:{type:"object",properties:{space:{type:"void","x-component":"Space","x-component-props":{style:{flexWrap:"nowrap",maxWidth:"100%"},className:(0,e.css)(B())},properties:{name:{type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:'{{t("Name")}}'}},value:{type:"string","x-decorator":"FormItem","x-component":j,"x-component-props":{placeholder:'{{t("Value")}}',useTypedConstant:!0,changeOnSelect:!0}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}}}},"x-reactions":{dependencies:["type"],fulfill:{state:{hidden:'{{$deps[0] !== "link"}}'}}},properties:{add:{type:"void",title:'{{t("Add parameter")}}',"x-component":"ArrayItems.Addition"}}}),I(p,"hideInMenu",{type:"boolean",title:'{{t("Show in menu")}}',"x-decorator":"FormItem","x-decorator-props":{tooltip:"{{t(`If selected, the route will be displayed in the menu.`)}}"},"x-component":function(e){var r=C((0,n.useState)(!e.value),2),a=r[0],i=r[1];return o().createElement(t.Checkbox,{checked:a,onChange:function(){var t;i(!a),null==(t=e.onChange)||t.call(e,a)}})},default:!1}),I(p,"enableTabs",{type:"boolean",title:'{{t("Enable page tabs")}}',"x-decorator":"FormItem","x-decorator-props":{tooltip:"{{t(`If selected, the page will display Tab pages.`)}}"},"x-component":function(e){return o().createElement(t.Checkbox,{checked:e.value,onChange:e.onChange})},"x-reactions":{dependencies:["type"],fulfill:{state:{hidden:'{{$deps[0] !== "page" && $deps[0] !== "flowPage"}}'}}},default:!1}),p)},footer:{type:"void","x-component":"Action.Drawer.Footer",properties:{cancel:{title:'{{t("Cancel")}}',"x-component":"Action","x-component-props":{useAction:"{{ cm.useCancelAction }}"}},submit:{title:'{{t("Submit")}}',"x-component":"Action","x-component-props":{type:"primary",useAction:function(t){var n=(0,d.useForm)(),o=(0,d.useField)(),a=(0,e.useCollectionRecordData)(),i=(0,e.useActionContext)(),l=(0,e.useDataBlockRequestGetter)().getDataBlockRequest,c=(0,e.useNocoBaseRoutes)(r).updateRoute;return{run:function(){return R(function(){var e,r,u,p,s;return O(this,function(d){switch(d.label){case 0:return d.trys.push([0,4,,5]),[4,n.submit()];case 1:return d.sent(),o.data=o.data||{},o.data.loading=!0,(n.values.href||!f().isEmpty(n.values.params))&&(u={href:n.values.href,params:n.values.params}),[4,c(a.id,D(T({},f().omit(n.values,["href","params"])),{options:u}))];case 2:return p=d.sent(),i.setVisible(!1),null==t||t(null==p||null==(e=p.data)?void 0:e.data),[4,n.reset()];case 3:return d.sent(),o.data.loading=!1,null==(r=l())||r.refresh(),[3,5];case 4:throw s=d.sent(),o.data&&(o.data.loading=!1),s;case 5:return[2]}})})()}}}}}}}}}}},access:{type:"void",title:'{{t("View")}}',"x-component":"Action.Link","x-use-component-props":function(){var t=(0,e.useCollectionRecordData)();return{onClick:function(){window.open(t._path,"_blank")},disabled:!t._path}},"x-decorator":"Space"},delete:{type:"void",title:'{{t("Delete")}}',"x-decorator":"Space","x-component":"Action.Link","x-use-component-props":function(){var t=(0,e.useCollectionRecordData)(),o=(0,e.useAPIClient)(),a=(0,n.useMemo)(function(){return o.resource(r)},[o]),i=(0,e.useDataBlockRequestGetter)().getDataBlockRequest,l=(0,e.useDeleteRouteSchema)().deleteRouteSchema,c=(0,e.useAllAccessDesktopRoutes)().refresh;return{onClick:R(function(){return O(this,function(e){switch(e.label){case 0:return[4,l(t.schemaUid)];case 1:return e.sent(),a.destroy({filterByTk:t.id}).then(function(){i().refresh(),c()}).catch(function(e){console.error(e)}),[2]}})})}},"x-component-props":{confirm:{title:"{{t('Delete route')}}",content:"{{t('Are you sure you want to delete it?')}}"}}}}}}}}}};function E(t){var o,r,a="uiSchemas",i=(0,e.useAPIClient)(),l=(0,n.useMemo)(function(){return i.resource(a)},[i,a]),c=(0,e.useInsertPageSchema)();return{createRouteSchema:(0,n.useCallback)((o=R(function(n){var o,r,a,i,u,p;return O(this,function(s){switch(s.label){case 0:var d,y;if(o=n.type,r=(0,m.uid)(),a=(0,m.uid)(),i=[e.NocoBaseDesktopRouteType.page,e.NocoBaseDesktopRouteType.flowPage].includes(o)?(0,m.uid)():void 0,I(u={},e.NocoBaseDesktopRouteType.page,t?({schema:{type:"void",name:d=r,"x-uid":d,"x-component":"MobilePageProvider","x-settings":"mobile:page","x-decorator":"BlockItem","x-decorator-props":{style:{height:"100%"}},"x-toolbar-props":{draggable:!1,spaceWrapperStyle:{right:-15,top:-15},spaceClassName:q,toolbarStyle:{overflowX:"hidden"}},properties:{header:M,content:{type:"void","x-component":"MobilePageContent",properties:I({},y=i,U(y))}}}}).schema:(0,e.getPageMenuSchema)({pageSchemaUid:r,tabSchemaUid:i,tabSchemaName:a})),I(u,e.NocoBaseDesktopRouteType.flowPage,(0,e.getFlowPageMenuSchema)({pageSchemaUid:r})),!(p=u)[o])return[2,{}];if(!t)return[3,2];return[4,l.insertAdjacent({resourceIndex:"mobile",position:"beforeEnd",values:{schema:p[o]}})];case 1:return s.sent(),[3,4];case 2:return[4,c(p[o])];case 3:s.sent(),s.label=4;case 4:return[2,{pageSchemaUid:r,tabSchemaUid:i,tabSchemaName:a}]}})}),function(e){return o.apply(this,arguments)}),[t,l,c]),createTabRouteSchema:(0,n.useCallback)((r=R(function(n){var o,r,a,i,c;return O(this,function(u){switch(u.label){case 0:return o=n.title,r=n.icon,a=n.parentSchemaUid,i=(0,m.uid)(),c=(0,m.uid)(),[4,l["insertAdjacent/".concat(a)]({position:"beforeEnd",values:{schema:t?U(i):(0,e.getTabSchema)({title:o,icon:r,schemaUid:i,tabSchemaName:c})}})];case 1:return u.sent(),[2,{tabSchemaUid:i,tabSchemaName:c}]}})}),function(e){return r.apply(this,arguments)}),[t,l])}}function F(n){var r,i,l=(0,a.useTranslation)().t,c=(I(r={},e.NocoBaseDesktopRouteType.group,"blue"),I(r,e.NocoBaseDesktopRouteType.page,"green"),I(r,e.NocoBaseDesktopRouteType.flowPage,"purple"),I(r,e.NocoBaseDesktopRouteType.link,"red"),I(r,e.NocoBaseDesktopRouteType.tabs,"orange"),r),u=(I(i={},e.NocoBaseDesktopRouteType.group,l("Group")),I(i,e.NocoBaseDesktopRouteType.page,l("Page")),I(i,e.NocoBaseDesktopRouteType.flowPage,l("Page (v2)")),I(i,e.NocoBaseDesktopRouteType.link,l("Link")),I(i,e.NocoBaseDesktopRouteType.tabs,l("Tab")),i);return o().createElement(t.Tag,{color:c[n.value]},u[n.value])}var q=(0,e.css)("\n &:first-child {\n .ant-space-item {\n width: 30px;\n height: 30px;\n transform: rotate(45deg);\n span {\n position: relative;\n bottom: -15px;\n right: -8px;\n transform: rotate(-45deg);\n font-size: 10px;\n }\n }\n }\n "),M={type:"void","x-component":"MobilePageHeader",properties:{pageNavigationBar:{type:"void","x-component":"MobilePageNavigationBar",properties:{actionBar:{type:"void","x-component":"MobileNavigationActionBar","x-initializer":"mobile:navigation-bar:actions","x-component-props":{spaceProps:{style:{flexWrap:"nowrap"}}},properties:{}}}},pageTabs:{type:"void","x-component":"MobilePageTabs"}}};function U(e){return{type:"void","x-uid":e,"x-async":!0,"x-component":"Grid","x-component-props":{showDivider:!1},"x-initializer":"mobile:addBlock"}}var z=K("desktopRoutes","/admin"),V=function(){var a=c().t,i=(0,e.useSchemaComponentContext)(),l=(0,n.useMemo)(function(){var e,t;return e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o})}return e}({},i),t=t={designable:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n.push.apply(n,o)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e},[i]);return o().createElement(e.ExtendCollectionsProvider,{collections:[r]},o().createElement(e.SchemaComponentContext.Provider,{value:l},o().createElement(t.Card,{bordered:!1},o().createElement(e.SchemaComponent,{schema:z,scope:{t:a}}))))},L={name:"mobileRoutes",dumpRules:"required",migrationRules:["overwrite","schema-only"],inherit:!1,hidden:!1,description:null,fields:[{key:"ymgf0jxu1kg",name:"parentId",type:"bigInt",interface:"integer",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,isForeignKey:!0,uiSchema:{type:"number",title:'{{t("Parent ID")}}',"x-component":"InputNumber","x-read-pretty":!0}},{key:"b07aqgs2shv",name:"parent",type:"belongsTo",interface:"m2o",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,foreignKey:"parentId",treeParent:!0,onDelete:"CASCADE",uiSchema:{title:'{{t("Parent")}}',"x-component":"AssociationField","x-component-props":{multiple:!1,fieldNames:{label:"id",value:"id"}}},target:"mobileRoutes",targetKey:"id"},{key:"p8sxllsgin1",name:"children",type:"hasMany",interface:"o2m",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,foreignKey:"parentId",treeChildren:!0,onDelete:"CASCADE",uiSchema:{title:'{{t("Children")}}',"x-component":"AssociationField","x-component-props":{multiple:!0,fieldNames:{label:"id",value:"id"}}},target:"mobileRoutes",targetKey:"id",sourceKey:"id"},{key:"7y601o9bmih",name:"id",type:"snowflakeId",interface:"integer",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,primaryKey:!0,allowNull:!1,uiSchema:{type:"number",title:'{{t("ID")}}',"x-component":"InputNumber","x-read-pretty":!0}},{key:"m8s9b94amz3",name:"createdAt",type:"date",interface:"createdAt",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,field:"createdAt",uiSchema:{type:"datetime",title:'{{t("Created at")}}',"x-component":"DatePicker","x-component-props":{},"x-read-pretty":!0}},{key:"p3p69woziuu",name:"createdBy",type:"belongsTo",interface:"createdBy",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,target:"users",foreignKey:"createdById",uiSchema:{type:"object",title:'{{t("Created by")}}',"x-component":"AssociationField","x-component-props":{fieldNames:{value:"id",label:"nickname"}},"x-read-pretty":!0},targetKey:"id"},{key:"s0gw1blo4hm",name:"updatedAt",type:"date",interface:"updatedAt",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,field:"updatedAt",uiSchema:{type:"string",title:'{{t("Last updated at")}}',"x-component":"DatePicker","x-component-props":{},"x-read-pretty":!0}},{key:"d1l988n09gd",name:"updatedBy",type:"belongsTo",interface:"updatedBy",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,target:"users",foreignKey:"updatedById",uiSchema:{type:"object",title:'{{t("Last updated by")}}',"x-component":"AssociationField","x-component-props":{fieldNames:{value:"id",label:"nickname"}},"x-read-pretty":!0},targetKey:"id"},{key:"bo7btzkbyan",name:"title",type:"string",interface:"input",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,translation:!0,uiSchema:{type:"string","x-component":"Input",title:'{{t("Title")}}'}},{key:"ozl5d8t2d5e",name:"icon",type:"string",interface:"input",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input",title:'{{t("Icon")}}'}},{key:"6bbyhv00bp4",name:"schemaUid",type:"string",interface:"input",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input",title:'{{t("Schema UID")}}'}},{key:"m0k5qbaktab",name:"type",type:"string",interface:"input",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input",title:'{{t("Type")}}'}},{key:"ssuml1j2v1b",name:"options",type:"json",interface:"json",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,defaultValue:null,uiSchema:{type:"object","x-component":"Input.JSON","x-component-props":{autoSize:{minRows:5}},default:null,title:'{{t("Options")}}'}},{key:"jjmosjqhz8l",name:"sort",type:"sort",interface:"sort",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,scopeKey:"parentId",uiSchema:{type:"number","x-component":"InputNumber","x-component-props":{stringMode:!0,step:"1"},"x-validator":"integer",title:'{{t("Sort")}}'}},{type:"belongsToMany",name:"roles",through:"rolesMobileRoutes",target:"roles",onDelete:"CASCADE"},{type:"boolean",name:"hideInMenu",interface:"checkbox",uiSchema:{type:"boolean","x-component":"Checkbox",title:'{{t("Hide in menu")}}'}},{type:"boolean",name:"enableTabs",interface:"checkbox",uiSchema:{type:"boolean","x-component":"Checkbox",title:'{{t("Enable tabs")}}'}},{type:"boolean",name:"hidden",interface:"checkbox",uiSchema:{type:"boolean","x-component":"Checkbox",title:'{{t("Hidden")}}'}}],category:[],logging:!0,autoGenId:!0,createdAt:!0,createdBy:!0,updatedAt:!0,updatedBy:!0,template:"tree",view:!1,tree:"adjacencyList",filterTargetKey:"id"},$=K("mobileRoutes","/m/page"),_=function(){var r=c().t,a=(0,e.useSchemaComponentContext)(),i=(0,n.useMemo)(function(){var e,t;return e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o})}return e}({},a),t=t={designable:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n.push.apply(n,o)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e},[a]);return o().createElement(e.ExtendCollectionsProvider,{collections:[L]},o().createElement(e.SchemaComponentContext.Provider,{value:i},o().createElement(t.Card,{bordered:!1},o().createElement(e.SchemaComponent,{schema:$,scope:{t:r}}))))};function G(e,t,n,o,r,a,i){try{var l=e[a](i),c=l.value}catch(e){n(e);return}l.done?t(c):Promise.resolve(c).then(o,r)}function W(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){G(a,o,r,i,l,"next",e)}function l(e){G(a,o,r,i,l,"throw",e)}i(void 0)})}}function H(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){var c=[a,l];if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(6===c[0]&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],o=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var J=function(){var n=(0,a.useTranslation)().t,r=(0,e.useAPIClient)(),i=t.App.useApp().modal;return o().createElement(e.SchemaSettingsItem,{eventKey:"cache",title:"cache",onClick:W(function(){return H(this,function(e){return i.confirm({title:n("Clear cache"),content:n("Are you sure you want to clear cache ?"),okText:n("Clear"),okButtonProps:{danger:!0},onOk:W(function(){return H(this,function(e){switch(e.label){case 0:return[4,r.resource("app").clearCache()];case 1:return e.sent(),window.location.reload(),[2]}})})}),[2]})})},n("Clear cache"))};function X(e,t,n,o,r,a,i){try{var l=e[a](i),c=l.value}catch(e){n(e);return}l.done?t(c):Promise.resolve(c).then(o,r)}function Q(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){X(a,o,r,i,l,"next",e)}function l(e){X(a,o,r,i,l,"throw",e)}i(void 0)})}}function Y(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){var c=[a,l];if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(6===c[0]&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],o=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var Z=function(){var n=(0,a.useTranslation)().t,r=(0,e.useAPIClient)(),i=t.App.useApp().modal;return o().createElement(e.SchemaSettingsItem,{eventKey:"restartApplication",title:"restartApplication",onClick:Q(function(){return Y(this,function(e){return i.confirm({title:n("Restart application"),okText:n("Restart"),okButtonProps:{danger:!0},onOk:Q(function(){return Y(this,function(e){switch(e.label){case 0:return[4,r.resource("app").restart()];case 1:return e.sent(),[2]}})})}),[2]})})},n("Restart application"))};function ee(e,t,n,o,r,a,i){try{var l=e[a](i),c=l.value}catch(e){n(e);return}l.done?t(c):Promise.resolve(c).then(o,r)}function et(e,t,n){return(et=ea()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&eo(r,n.prototype),r}).apply(null,arguments)}function en(e){return(en=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eo(e,t){return(eo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function er(e){var t="function"==typeof Map?new Map:void 0;return(er=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw 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,n)}function n(){return et(e,arguments,en(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),eo(n,e)})(e)}function ea(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ea=function(){return!!e})()}var ei=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(){var e,t;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return e=n,t=arguments,e=en(e),function(e,t){var n;if(t&&("object"==((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,ea()?Reflect.construct(e,t||[],en(this).constructor):e.apply(this,t))}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&eo(n,e),t=[{key:"load",value:function(){var e,t=this;return(e=function(){var e,n;return function(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){var c=[a,l];if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(6===c[0]&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],o=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(o){return t.app.pluginSettingsManager.add("routes",{title:l("Routes"),icon:"ApartmentOutlined",aclSnippet:"pm.routes"}),t.app.pluginSettingsManager.add("routes.desktop",{title:l("Desktop routes"),Component:V,aclSnippet:"pm.routes.desktop",sort:1}),t.app.addUserCenterSettingsItem({name:"divider4",sort:499,type:"divider",aclSnippet:"app"}),t.app.addUserCenterSettingsItem({name:"cache",sort:500,Component:J,aclSnippet:"app"}),t.app.addUserCenterSettingsItem({name:"restartApplication",Component:Z,sort:510,aclSnippet:"app"}),(null==(n=t.app.pluginManager.get("@nocobase/plugin-mobile"))||null==(e=n.options)?void 0:e.enabled)&&t.app.pluginSettingsManager.add("routes.mobile",{title:l("Mobile routes"),Component:_,aclSnippet:"pm.routes.mobile",sort:2}),[2]})},function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){ee(a,o,r,i,l,"next",e)}function l(e){ee(a,o,r,i,l,"throw",e)}i(void 0)})})()}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(n.prototype,t),n}(er(e.Plugin))}(),s}()});
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@nocobase/client"),require("react"),require("@formily/react"),require("lodash"),require("@ant-design/icons"),require("antd"),require("@nocobase/utils/client"),require("react-i18next")):"function"==typeof define&&define.amd?define("@nocobase/plugin-client",["@nocobase/client","react","@formily/react","lodash","@ant-design/icons","antd","@nocobase/utils/client","react-i18next"],t):"object"==typeof exports?exports["@nocobase/plugin-client"]=t(require("@nocobase/client"),require("react"),require("@formily/react"),require("lodash"),require("@ant-design/icons"),require("antd"),require("@nocobase/utils/client"),require("react-i18next")):e["@nocobase/plugin-client"]=t(e["@nocobase/client"],e.react,e["@formily/react"],e.lodash,e["@ant-design/icons"],e.antd,e["@nocobase/utils/client"],e["react-i18next"])}(self,function(e,t,n,o,r,a,i,l){return function(){"use strict";var c={482:function(e){e.exports=r},505:function(e){e.exports=n},772:function(t){t.exports=e},584:function(e){e.exports=i},721:function(e){e.exports=a},467:function(e){e.exports=o},156:function(e){e.exports=t},238:function(e){e.exports=l}},u={};function p(e){var t=u[e];if(void 0!==t)return t.exports;var n=u[e]={exports:{}};return c[e](n,n.exports,p),n.exports}p.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(t,{a:t}),t},p.d=function(e,t){for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return!function(){p.r(s),p.d(s,{default:function(){return ei}});var e=p(772),t=p(156),n=p.n(t),o=p(238),r=p(721);function a(e,t,n,o,r,a,i){try{var l=e[a](i),c=l.value}catch(e){n(e);return}l.done?t(c):Promise.resolve(c).then(o,r)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var i=e.apply(t,n);function l(e){a(i,o,r,l,c,"next",e)}function c(e){a(i,o,r,l,c,"throw",e)}l(void 0)})}}function l(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){var c=[a,l];if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(6===c[0]&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],o=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var c=function(){var t=(0,o.useTranslation)().t,a=(0,e.useAPIClient)(),c=r.App.useApp().modal;return n().createElement(e.SchemaSettingsItem,{eventKey:"cache",title:"cache",onClick:i(function(){return l(this,function(e){return c.confirm({title:t("Clear cache"),content:t("Are you sure you want to clear cache ?"),okText:t("Clear"),okButtonProps:{danger:!0},onOk:i(function(){return l(this,function(e){switch(e.label){case 0:return[4,a.resource("app").clearCache()];case 1:return e.sent(),window.location.reload(),[2]}})})}),[2]})})},t("Clear cache"))},u={name:"desktopRoutes",dumpRules:"required",migrationRules:["overwrite","schema-only"],inherit:!1,hidden:!1,description:null,fields:[{key:"ymgf0jxu1kg",name:"parentId",type:"bigInt",interface:"integer",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,isForeignKey:!0,uiSchema:{type:"number",title:'{{t("Parent ID")}}',"x-component":"InputNumber","x-read-pretty":!0}},{key:"b07aqgs2shv",name:"parent",type:"belongsTo",interface:"m2o",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,foreignKey:"parentId",treeParent:!0,onDelete:"CASCADE",uiSchema:{title:'{{t("Parent")}}',"x-component":"AssociationField","x-component-props":{multiple:!1,fieldNames:{label:"id",value:"id"}}},target:"desktopRoutes",targetKey:"id"},{key:"p8sxllsgin1",name:"children",type:"hasMany",interface:"o2m",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,foreignKey:"parentId",treeChildren:!0,onDelete:"CASCADE",uiSchema:{title:'{{t("Children")}}',"x-component":"AssociationField","x-component-props":{multiple:!0,fieldNames:{label:"id",value:"id"}}},target:"desktopRoutes",targetKey:"id",sourceKey:"id"},{key:"7y601o9bmih",name:"id",type:"snowflakeId",interface:"integer",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,primaryKey:!0,allowNull:!1,uiSchema:{type:"number",title:'{{t("ID")}}',"x-component":"InputNumber","x-read-pretty":!0}},{key:"m8s9b94amz3",name:"createdAt",type:"date",interface:"createdAt",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,field:"createdAt",uiSchema:{type:"datetime",title:'{{t("Created at")}}',"x-component":"DatePicker","x-component-props":{},"x-read-pretty":!0}},{key:"p3p69woziuu",name:"createdBy",type:"belongsTo",interface:"createdBy",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,target:"users",foreignKey:"createdById",uiSchema:{type:"object",title:'{{t("Created by")}}',"x-component":"AssociationField","x-component-props":{fieldNames:{value:"id",label:"nickname"}},"x-read-pretty":!0},targetKey:"id"},{key:"s0gw1blo4hm",name:"updatedAt",type:"date",interface:"updatedAt",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,field:"updatedAt",uiSchema:{type:"string",title:'{{t("Last updated at")}}',"x-component":"DatePicker","x-component-props":{},"x-read-pretty":!0}},{key:"d1l988n09gd",name:"updatedBy",type:"belongsTo",interface:"updatedBy",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,target:"users",foreignKey:"updatedById",uiSchema:{type:"object",title:'{{t("Last updated by")}}',"x-component":"AssociationField","x-component-props":{fieldNames:{value:"id",label:"nickname"}},"x-read-pretty":!0},targetKey:"id"},{key:"bo7btzkbyan",name:"title",type:"string",interface:"input",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input",title:'{{t("Title")}}'}},{key:"brt6tz4hgin",name:"tooltip",type:"string",interface:"textarea",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input.TextArea",title:'{{t("Tooltip")}}'}},{key:"ozl5d8t2d5e",name:"icon",type:"string",interface:"input",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input",title:'{{t("Icon")}}'}},{key:"6bbyhv00bp4",name:"schemaUid",type:"string",interface:"input",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input",title:'{{t("Schema UID")}}'}},{key:"6bbyhv00bp5",name:"menuSchemaUid",type:"string",interface:"input",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input",title:'{{t("Menu Schema UID")}}'}},{key:"6bbyhv00bp6",name:"tabSchemaName",type:"string",interface:"input",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input",title:'{{t("Tab Schema Name")}}'}},{key:"m0k5qbaktab",name:"type",type:"string",interface:"input",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input",title:'{{t("Type")}}'}},{key:"ssuml1j2v1b",name:"options",type:"json",interface:"json",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,defaultValue:null,uiSchema:{type:"object","x-component":"Input.JSON","x-component-props":{autoSize:{minRows:5}},default:null,title:'{{t("Options")}}'}},{key:"jjmosjqhz8l",name:"sort",type:"sort",interface:"sort",description:null,collectionName:"desktopRoutes",parentKey:null,reverseKey:null,scopeKey:"parentId",uiSchema:{type:"number","x-component":"InputNumber","x-component-props":{stringMode:!0,step:"1"},"x-validator":"integer",title:'{{t("Sort")}}'}},{type:"belongsToMany",name:"roles",through:"rolesDesktopRoutes",target:"roles",onDelete:"CASCADE"},{type:"boolean",name:"hideInMenu",interface:"checkbox",uiSchema:{type:"boolean","x-component":"Checkbox",title:'{{t("Hide in menu")}}'}},{type:"boolean",name:"enableTabs",interface:"checkbox",uiSchema:{type:"boolean","x-component":"Checkbox",title:'{{t("Enable tabs")}}'}},{type:"boolean",name:"enableHeader",interface:"checkbox",uiSchema:{type:"boolean","x-component":"Checkbox",title:'{{t("Enable header")}}'}},{type:"boolean",name:"displayTitle",interface:"checkbox",uiSchema:{type:"boolean","x-component":"Checkbox",title:'{{t("Display title")}}'}},{type:"boolean",name:"hidden",interface:"checkbox",uiSchema:{type:"boolean","x-component":"Checkbox",title:'{{t("Hidden")}}'}}],category:[],logging:!0,autoGenId:!0,createdAt:!0,createdBy:!0,updatedAt:!0,updatedBy:!0,template:"tree",view:!1,tree:"adjacencyList",filterTargetKey:"id"},d="client";function m(t){return e.i18n.t(t,{ns:d})}function y(){return(0,o.useTranslation)(d,{nsMode:"fallback"})}var f=p(482),b=p(505),h=p(584),v=p(467),g=p.n(v);function x(t,n,o){var r=!0,a=!1,i=void 0;try{for(var l,c=n[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var u,p=l.value;if(p.id===t)return p.type===e.NocoBaseDesktopRouteType.page,p.schemaUid;if(null==(u=p.children)?void 0:u.length){var s=x(t,p.children,o);if(s)return s}}}catch(e){a=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return null}function k(e,t){var n=!0,o=!1,r=void 0;try{for(var a,i=t[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var l,c=a.value;if(c.id===e)return c;if(null==(l=c.children)?void 0:l.length){var u=k(e,c.children);if(u)return u}}}catch(e){o=!0,r=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw r}}return null}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function w(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return S(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var R=function(){var n,o,r,a,i,l,c=(0,b.useField)(),u=(0,b.useFieldSchema)(),p=(0,e.useDataBlockResource)(),s=(0,e.useDataBlockRequest)(),d=(0,e.useTableBlockContextBasicValue)(),m=(0,t.useRef)(null);m.current={service:s,resource:p};var y=(null==s||null==(n=s.data)?void 0:n.meta)||{},f=(0,t.useMemo)(function(){return{pageSize:null==y?void 0:y.pageSize,total:null==y?void 0:y.count,current:null==y?void 0:y.page}},[null==y?void 0:y.count,null==y?void 0:y.page,null==y?void 0:y.pageSize]),h=(null==s||null==(o=s.data)?void 0:o.data)||[];return(0,t.useEffect)(function(){if(!(null==s?void 0:s.loading)){var e,t,n=null==(t=d.field)||null==(e=t.data)?void 0:e.selectedRowKeys;c.data=c.data||{},g().isEqual(c.data.selectedRowKeys,n)||(c.data.selectedRowKeys=n)}},[c,null==s?void 0:s.data,null==s?void 0:s.loading,null==(a=d.field)||null==(r=a.data)?void 0:r.selectedRowKeys]),{optimizeTextCellRender:!1,value:h,loading:null==s?void 0:s.loading,showIndex:!0,dragSort:!1,rowKey:"id",pagination:(null==u||null==(i=u["x-component-props"])?void 0:i.pagination)!==!1&&f,onRowSelectionChange:(0,t.useCallback)(function(e,t,n){if(d){d.field.data=(null==(o=d.field)?void 0:o.data)||{};var o,r,a,i,l=d.field.data.selectedRecord,c=d.field.data.selected;d.field.data.selectedRowKeys=function(e,t,n,o){var r=w(e);if(0===r.length)return r;if(n)(p=r).push.apply(p,w(I(null==t?void 0:t.children)));else{for(var a=[],i=t;null==i?void 0:i.parentId;)a.push(i.parentId),i=k(i.parentId,o);var l=!0,c=!1,u=void 0;try{for(var p,s,d=a[Symbol.iterator]();!(l=(s=d.next()).done);l=!0)!function(){var e=s.value,t=k(e,o);t&&(I(t.children).every(function(e){return r.includes(e)})||(r=r.filter(function(e){return e!==t.id})))}()}catch(e){c=!0,u=e}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}var m=I(null==t?void 0:t.children);r=r.filter(function(e){return!m.includes(e)})}return g().uniq(r)}(e,l,c,(null==s||null==(r=s.data)?void 0:r.data)||[]),n(d.field.data.selectedRowKeys),null==(a=(i=d.field).onRowSelect)||a.call(i,d.field.data.selectedRowKeys)}},[null==s||null==(l=s.data)?void 0:l.data,d]),onChange:(0,t.useCallback)(function(e,t,n){var o,r,a,i,l,c,p,s,y,f,b,h,v=e.current,g=e.pageSize,x=null==(l=u.parent)||null==(i=l["x-decorator-props"])||null==(a=i.params)?void 0:a.sort,k=n.order?"ascend"===n.order?[n.field]:["-".concat(n.field)]:x||d.dragSortBy,S=g||(null==(s=u.parent)||null==(p=s["x-decorator-props"])||null==(c=p.params)?void 0:c.pageSize),w=(o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o})}return e}({},null==(b=m.current)||null==(f=b.service)||null==(y=f.params)?void 0:y[0]),r=r={page:v||1,pageSize:S},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n.push.apply(n,o)}return n})(Object(r)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))}),o);k&&(w.sort=k),null==(h=m.current)||h.service.run(w)},[u.parent])}};function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=!0,o=!1,r=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var l=a.value;t.push(l.id),t.push.apply(t,w(I(l.children)))}}catch(e){o=!0,r=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw r}}return t}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function D(e,t,n,o,r,a,i){try{var l=e[a](i),c=l.value}catch(e){n(e);return}l.done?t(c):Promise.resolve(c).then(o,r)}function C(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){D(a,o,r,i,l,"next",e)}function l(e){D(a,o,r,i,l,"throw",e)}i(void 0)})}}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){A(e,t,n[t])})}return e}function N(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n.push.apply(n,o)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,o,r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function j(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){var c=[a,l];if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(6===c[0]&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],o=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function K(){var e=B(["\n & > .ant-space-item:first-child,\n & > .ant-space-item:last-child {\n flex-shrink: 0;\n }\n "]);return K=function(){return e},e}function E(){var e=B(["\n & > .ant-space-item:first-child,\n & > .ant-space-item:last-child {\n flex-shrink: 0;\n }\n "]);return E=function(){return e},e}function F(){var e=B(["\n & > .ant-space-item:first-child,\n & > .ant-space-item:last-child {\n flex-shrink: 0;\n }\n "]);return F=function(){return e},e}var q=(0,e.getVariableComponentWithScope)(e.Variable.TextArea),M=function(a,i){var l,c,u,p="mobileRoutes"===a;return{type:"void",name:(0,h.uid)(),"x-decorator":"TableBlockProvider","x-decorator-props":{collection:a,action:"list",dragSort:!1,params:{sort:["sort"],pageSize:20,filter:{"hidden.$ne":!0}},treeTable:!0},properties:{actions:{type:"void","x-component":"ActionBar","x-component-props":{style:{marginBottom:16}},properties:{refresh:{title:"{{t('Refresh')}}","x-action":"refresh","x-component":"Action","x-use-component-props":"useRefreshActionProps","x-component-props":{icon:"ReloadOutlined"}},delete:{type:"void",title:'{{t("Delete")}}',"x-component":"Action","x-use-component-props":function(){var t=(0,e.useTableBlockContextBasicValue)(),n=(0,e.useBlockRequestContext)(),o=n.resource,r=n.service,i=(0,e.useDeleteRouteSchema)().deleteRouteSchema,l=(0,e.useDataBlockRequestData)(),c=(0,e.useAllAccessDesktopRoutes)().refresh;return{onClick:function(){return C(function(){var e,n,u,s,d,m,y,f,b,h,v,g;return j(this,function(k){switch(k.label){case 0:if(!(null==(m=null==(n=t.field)||null==(e=n.data)?void 0:e.selectedRowKeys)?void 0:m.length))return[2];y=!0,f=!1,b=void 0,k.label=1;case 1:k.trys.push([1,6,7,8]),h=m[Symbol.iterator](),k.label=2;case 2:if(y=(v=h.next()).done)return[3,5];return[4,i(x(v.value,null==l?void 0:l.data,p))];case 3:k.sent(),k.label=4;case 4:return y=!0,[3,2];case 5:return[3,8];case 6:return g=k.sent(),f=!0,b=g,[3,8];case 7:try{y||null==h.return||h.return()}finally{if(f)throw b}return[7];case 8:return[4,o.destroy({filterByTk:m})];case 9:return k.sent(),null==(u=(s=t.field.data).clearSelectedRowKeys)||u.call(s),null==r||null==(d=r.refresh)||d.call(r),"desktopRoutes"===a&&c(),[2]}})})()}}},"x-component-props":{confirm:{title:"{{t('Delete routes')}}",content:"{{t('Are you sure you want to delete it?')}}"},icon:"DeleteOutlined"}},hide:{type:"void",title:'{{t("Hide in menu")}}',"x-component":"Action","x-use-component-props":function(){var t=(0,e.useTableBlockContextBasicValue)(),n=(0,e.useBlockRequestContext)().service,o=(0,e.useAllAccessDesktopRoutes)().refresh,r=(0,e.useNocoBaseRoutes)(a).updateRoute;return{onClick:function(){return C(function(){var e,a,i,l,c,u;return j(this,function(p){switch(p.label){case 0:if(!(null==(u=null==(a=t.field)||null==(e=a.data)?void 0:e.selectedRowKeys)?void 0:u.length))return[2];return[4,r(u,{hideInMenu:!0})];case 1:return p.sent(),null==(i=(l=t.field.data).clearSelectedRowKeys)||i.call(l),null==n||null==(c=n.refresh)||c.call(n),o(),[2]}})})()}}},"x-component-props":{icon:"EyeInvisibleOutlined",confirm:{title:"{{t('Hide in menu')}}",content:"{{t('Are you sure you want to hide these routes in menu?')}}"}}},show:{type:"void",title:'{{t("Show in menu")}}',"x-component":"Action","x-use-component-props":function(){var t=(0,e.useTableBlockContextBasicValue)(),n=(0,e.useBlockRequestContext)().service,o=(0,e.useNocoBaseRoutes)(a).updateRoute;return{onClick:function(){return C(function(){var e,r,a,i,l,c;return j(this,function(u){switch(u.label){case 0:if(!(null==(c=null==(r=t.field)||null==(e=r.data)?void 0:e.selectedRowKeys)?void 0:c.length))return[2];return[4,o(c,{hideInMenu:!1})];case 1:return u.sent(),null==(a=(i=t.field.data).clearSelectedRowKeys)||a.call(i),null==n||null==(l=n.refresh)||l.call(n),[2]}})})()}}},"x-component-props":{icon:"EyeOutlined",confirm:{title:"{{t('Show in menu')}}",content:"{{t('Are you sure you want to show these routes in menu?')}}"}}},create:{type:"void",title:'{{t("Add new")}}',"x-component":"Action","x-component-props":{type:"primary",icon:"PlusOutlined"},properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{useValues:function(e){return{}}},title:'{{t("Add new")}}',properties:{formSchema:{type:"void",properties:(A(l={type:{type:"string",title:'{{t("Type")}}',"x-decorator":"FormItem","x-component":function(t){var a=(0,o.useTranslation)().t;return n().createElement(r.Radio.Group,t,!p&&n().createElement(r.Radio,{value:e.NocoBaseDesktopRouteType.group},a("Group")),n().createElement(r.Radio,{value:e.NocoBaseDesktopRouteType.page},a(p?"Page":"Classic page (v1)")),!p&&n().createElement(r.Radio,{value:e.NocoBaseDesktopRouteType.flowPage},a("Modern page (v2)")),n().createElement(r.Radio,{value:e.NocoBaseDesktopRouteType.link},a("Link")))},default:e.NocoBaseDesktopRouteType.page,required:!0},title:{type:"string",title:'{{t("Title")}}',"x-decorator":"FormItem","x-component":"Input",required:!0},icon:{type:"string",title:'{{t("Icon")}}',"x-decorator":"FormItem","x-component":"IconPicker","x-reactions":p?{dependencies:["type"],fulfill:{state:{required:'{{$deps[0] !== "tabs"}}'}}}:void 0}},p?"url":"href",{title:'{{t("URL")}}',type:"string","x-decorator":"FormItem","x-component":q,description:'{{t("Do not concatenate search params in the URL")}}',"x-reactions":{dependencies:["type"],fulfill:{state:{hidden:'{{$deps[0] !== "link"}}'}}}}),A(l,"params",{type:"array","x-component":"ArrayItems","x-decorator":"FormItem",title:'{{t("Search parameters")}}',items:{type:"object",properties:{space:{type:"void","x-component":"Space","x-component-props":{style:{flexWrap:"nowrap",maxWidth:"100%"},className:(0,e.css)(K())},properties:{name:{type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:'{{t("Name")}}'}},value:{type:"string","x-decorator":"FormItem","x-component":q,"x-component-props":{placeholder:'{{t("Value")}}',useTypedConstant:!0,changeOnSelect:!0}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}}}},"x-reactions":{dependencies:["type"],fulfill:{state:{hidden:'{{$deps[0] !== "link"}}'}}},properties:{add:{type:"void",title:'{{t("Add parameter")}}',"x-component":"ArrayItems.Addition"}}}),A(l,"hideInMenu",{type:"boolean",title:'{{t("Show in menu")}}',"x-decorator":"FormItem","x-decorator-props":{tooltip:"{{t(`If selected, the route will be displayed in the menu.`)}}"},"x-component":function(e){var o=P((0,t.useState)(!e.value),2),a=o[0],i=o[1];return n().createElement(r.Checkbox,{checked:a,onChange:function(){var t;i(!a),null==(t=e.onChange)||t.call(e,a)}})},default:!1}),A(l,"enableTabs",{type:"boolean",title:'{{t("Enable page tabs")}}',"x-decorator":"FormItem","x-decorator-props":{tooltip:"{{t(`If selected, the page will display Tab pages.`)}}"},"x-component":function(e){return n().createElement(r.Checkbox,{checked:e.value,onChange:e.onChange})},"x-reactions":{dependencies:["type"],fulfill:{state:{hidden:'{{$deps[0] !== "page" && $deps[0] !== "flowPage"}}'}}},default:!1}),l)},footer:{type:"void","x-component":"Action.Drawer.Footer",properties:{cancel:{title:'{{t("Cancel")}}',"x-component":"Action","x-component-props":{useAction:"{{ cm.useCancelAction }}"}},submit:{title:'{{t("Submit")}}',"x-component":"Action","x-component-props":{type:"primary",useAction:function(t){var n=(0,b.useForm)(),o=(0,b.useField)(),r=(0,e.useActionContext)(),i=(0,e.useDataBlockRequestGetter)().getDataBlockRequest,l=(0,e.useNocoBaseRoutes)(a).createRoute,c=U(p).createRouteSchema;return{run:function(){return C(function(){var a,u,s,d,m,y,f,b,h,v,x;return j(this,function(k){switch(k.label){case 0:return k.trys.push([0,5,,6]),[4,n.submit()];case 1:return k.sent(),o.data=o.data||{},o.data.loading=!0,[4,c(n.values)];case 2:return d=(s=k.sent()).pageSchemaUid,m=s.tabSchemaUid,y=s.tabSchemaName,(n.values.href||!g().isEmpty(n.values.params))&&(f={params:n.values.params,href:p?void 0:n.values.href,url:p?n.values.url:void 0}),b={},m&&(b.children=[{schemaUid:m,type:e.NocoBaseDesktopRouteType.tabs,tabSchemaName:y,hidden:!(null==(h=n.values)?void 0:h.enableTabs)}]),[4,l(O(N(O({},g().omit(n.values,["href","params","url"])),{schemaUid:e.NocoBaseDesktopRouteType.page===n.values.type||e.NocoBaseDesktopRouteType.flowPage===n.values.type?d:void 0,options:f}),b))];case 3:return v=k.sent(),r.setVisible(!1),null==t||t(null==v||null==(a=v.data)?void 0:a.data),[4,n.reset()];case 4:return k.sent(),o.data.loading=!1,null==(u=i())||u.refresh(),[3,6];case 5:throw x=k.sent(),o.data&&(o.data.loading=!1),x;case 6:return[2]}})})()}}}}}}}}}}},filter:{"x-action":"filter",type:"object","x-component":"Filter.Action",title:"{{t('Filter')}}","x-use-component-props":"useFilterActionProps","x-component-props":{icon:"FilterOutlined"},"x-align":"left"}}},table:{type:"array","x-component":"TableV2","x-use-component-props":R,"x-component-props":{rowKey:"id",rowSelection:{type:"checkbox"}},properties:{title:{type:"void","x-component":"TableV2.Column",title:'{{t("Title")}}',"x-component-props":{width:200},properties:{title:{type:"string","x-component":function(t){var o=(0,e.useCollectionRecordData)(),r=(0,e.useMenuTranslation)().t,a=t.value;return o.type===e.NocoBaseDesktopRouteType.tabs&&g().isNil(t.value)&&(a=r("Unnamed")),n().createElement(e.CollectionField,N(O({},t),{value:r(a)}))},"x-read-pretty":!0,"x-component-props":{ellipsis:!0}}}},type:{type:"void","x-component":"TableV2.Column",title:'{{t("Type")}}',"x-component-props":{width:100},properties:{type:{type:"string","x-component":function(e){return n().createElement(z,{value:e.value})},"x-read-pretty":!0,"x-component-props":{ellipsis:!0}}}},hideInMenu:{type:"void","x-component":"TableV2.Column",title:'{{t("Show in menu")}}',"x-component-props":{width:100},properties:{hideInMenu:{type:"boolean","x-component":function(e){return e.value?n().createElement(f.CloseOutlined,{style:{color:"#ff4d4f"}}):n().createElement(f.CheckOutlined,{style:{color:"#52c41a"}})},"x-read-pretty":!0,"x-component-props":{ellipsis:!0}}}},path:{title:'{{t("Path")}}',type:"void","x-component":"TableV2.Column","x-component-props":{width:300},properties:{path:{type:"string","x-component":function(){var t=(0,e.useDataBlockRequestData)(),a=(0,e.useCollectionRecordData)(),l=(0,e.useRouterBasename)(),c=(0,o.useTranslation)().t;if(a.type===e.NocoBaseDesktopRouteType.group||a.type===e.NocoBaseDesktopRouteType.link)return null;if(a.type===e.NocoBaseDesktopRouteType.page||a.type===e.NocoBaseDesktopRouteType.flowPage){var u="".concat(l.slice(0,-1)).concat(i,"/").concat(a.schemaUid);return a._path=u,n().createElement(r.Typography.Paragraph,{copyable:!0,style:{marginBottom:0},ellipsis:!0},u)}if(a.type===e.NocoBaseDesktopRouteType.tabs&&(null==t?void 0:t.data)){var s="".concat(l.slice(0,-1)).concat(i,"/").concat(x(a.parentId,t.data,p),"/tabs/").concat(a.schemaUid);return a._path=s,n().createElement(r.Typography.Paragraph,{copyable:!0,style:{marginBottom:0},ellipsis:!0},s)}return n().createElement(r.Tag,null,c("Unknown")," ")},"x-read-pretty":!0}}},actions:{type:"void",title:'{{t("Actions")}}',"x-component":"TableV2.Column",properties:{addChild:{type:"void",title:'{{t("Add child route")}}',"x-component":"Action.Link","x-use-component-props":function(){var t=(0,e.useCollectionRecordData)();return{disabled:t.type!==e.NocoBaseDesktopRouteType.group&&t.type!==e.NocoBaseDesktopRouteType.page&&t.type!==e.NocoBaseDesktopRouteType.flowPage||!t.enableTabs&&(t.type===e.NocoBaseDesktopRouteType.page||t.type===e.NocoBaseDesktopRouteType.flowPage),openMode:"drawer"}},"x-decorator":"Space",properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{useValues:function(e){return{}}},title:'{{t("Add child route")}}',properties:{formSchema:{type:"void",properties:(A(c={type:{type:"string",title:'{{t("Type")}}',"x-decorator":"FormItem","x-component":function(a){var i=(0,o.useTranslation)().t,l=(0,e.useCollectionRecordData)(),c=l.type===e.NocoBaseDesktopRouteType.page||l.type===e.NocoBaseDesktopRouteType.flowPage,u=l.type===e.NocoBaseDesktopRouteType.group,s=(0,t.useMemo)(function(){return c?(a.onChange(e.NocoBaseDesktopRouteType.tabs),e.NocoBaseDesktopRouteType.tabs):e.NocoBaseDesktopRouteType.page},[c,a]);return n().createElement(r.Radio.Group,N(O({},a),{defaultValue:s}),!p&&n().createElement(r.Radio,{value:e.NocoBaseDesktopRouteType.group,disabled:!u},i("Group")),n().createElement(r.Radio,{value:e.NocoBaseDesktopRouteType.page,disabled:!u},i(p?"Page":"Classic page (v1)")),!p&&n().createElement(r.Radio,{value:e.NocoBaseDesktopRouteType.flowPage,disabled:!u},i("Modern page (v2)")),n().createElement(r.Radio,{value:e.NocoBaseDesktopRouteType.link,disabled:!u},i("Link")),n().createElement(r.Radio,{value:e.NocoBaseDesktopRouteType.tabs,disabled:!c},i("Tab")))},required:!0,default:e.NocoBaseDesktopRouteType.page},title:{type:"string",title:'{{t("Title")}}',"x-decorator":"FormItem","x-component":"Input",required:!0},icon:{type:"string",title:'{{t("Icon")}}',"x-decorator":"FormItem","x-component":"IconPicker","x-reactions":p?{dependencies:["type"],fulfill:{state:{required:'{{$deps[0] !== "tabs"}}'}}}:void 0}},p?"url":"href",{title:'{{t("URL")}}',type:"string","x-decorator":"FormItem","x-component":q,description:'{{t("Do not concatenate search params in the URL")}}',"x-reactions":{dependencies:["type"],fulfill:{state:{hidden:'{{$deps[0] !== "link"}}'}}}}),A(c,"params",{type:"array","x-component":"ArrayItems","x-decorator":"FormItem",title:'{{t("Search parameters")}}',items:{type:"object",properties:{space:{type:"void","x-component":"Space","x-component-props":{style:{flexWrap:"nowrap",maxWidth:"100%"},className:(0,e.css)(E())},properties:{name:{type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:'{{t("Name")}}'}},value:{type:"string","x-decorator":"FormItem","x-component":q,"x-component-props":{placeholder:'{{t("Value")}}',useTypedConstant:!0,changeOnSelect:!0}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}}}},"x-reactions":{dependencies:["type"],fulfill:{state:{hidden:'{{$deps[0] !== "link"}}'}}},properties:{add:{type:"void",title:'{{t("Add parameter")}}',"x-component":"ArrayItems.Addition"}}}),A(c,"hideInMenu",{type:"boolean",title:'{{t("Show in menu")}}',"x-decorator":"FormItem","x-decorator-props":{tooltip:"{{t(`If selected, the route will be displayed in the menu.`)}}"},"x-component":function(e){var o=P((0,t.useState)(!e.value),2),a=o[0],i=o[1];return n().createElement(r.Checkbox,{checked:a,onChange:function(){var t;i(!a),null==(t=e.onChange)||t.call(e,a)}})},default:!1}),A(c,"enableTabs",{type:"boolean",title:'{{t("Enable page tabs")}}',"x-decorator":"FormItem","x-decorator-props":{tooltip:"{{t(`If selected, the page will display Tab pages.`)}}"},"x-component":function(e){return n().createElement(r.Checkbox,{checked:e.value,onChange:e.onChange})},"x-reactions":{dependencies:["type"],fulfill:{state:{hidden:'{{$deps[0] !== "page" && $deps[0] !== "flowPage"}}'}}},default:!1}),c)},footer:{type:"void","x-component":"Action.Drawer.Footer",properties:{cancel:{title:'{{t("Cancel")}}',"x-component":"Action","x-component-props":{useAction:"{{ cm.useCancelAction }}"}},submit:{title:'{{t("Submit")}}',"x-component":"Action","x-component-props":{type:"primary",useAction:function(){var t=(0,b.useForm)(),n=(0,b.useField)(),o=(0,e.useActionContext)(),r=(0,e.useDataBlockRequestGetter)().getDataBlockRequest,i=(0,e.useNocoBaseRoutes)(a).createRoute,l=U(p),c=l.createRouteSchema,u=l.createTabRouteSchema,s=(0,e.useCollectionRecordData)();return{run:function(){return C(function(){var a,l,p,d,m,y,f,b,h,v,x,k,S;return j(this,function(w){switch(w.label){case 0:return w.trys.push([0,10,,11]),[4,t.submit()];case 1:if(w.sent(),n.data=n.data||{},n.data.loading=!0,t.values.type!==e.NocoBaseDesktopRouteType.tabs)return[3,4];return[4,u(N(O({},t.values),{parentSchemaUid:s.schemaUid}))];case 2:return p=(l=w.sent()).tabSchemaUid,d=l.tabSchemaName,[4,i(O({parentId:s.id,type:e.NocoBaseDesktopRouteType.tabs,schemaUid:p,tabSchemaName:d},t.values))];case 3:return w.sent(),[3,8];case 4:return[4,c(t.values)];case 5:return f=(y=w.sent()).pageSchemaUid,b=y.tabSchemaUid,h=y.tabSchemaName,(t.values.href||!g().isEmpty(t.values.params))&&(m={href:t.values.href,params:t.values.params}),[4,i(N(O({parentId:s.id},g().omit(t.values,["href","params"])),{schemaUid:e.NocoBaseDesktopRouteType.page===t.values.type||e.NocoBaseDesktopRouteType.flowPage===t.values.type?f:void 0,options:m}))];case 6:if(v=w.sent(),!b)return[3,8];return[4,i({parentId:null==v||null==(k=v.data)||null==(x=k.data)?void 0:x.id,type:e.NocoBaseDesktopRouteType.tabs,schemaUid:b,tabSchemaName:h,hidden:!0})];case 7:w.sent(),w.label=8;case 8:return o.setVisible(!1),[4,t.reset()];case 9:return w.sent(),n.data.loading=!1,null==(a=r())||a.refresh(),[3,11];case 10:throw S=w.sent(),n.data&&(n.data.loading=!1),S;case 11:return[2]}})})()}}}}}}}}}}},edit:{type:"void",title:'{{t("Edit")}}',"x-component":"Action.Link","x-component-props":{openMode:"drawer"},"x-decorator":"Space",properties:{drawer:{type:"void","x-component":"Action.Drawer","x-decorator":"Form","x-decorator-props":{useValues:function(t){var n=(0,e.useCollectionRecordData)(),o=(0,e.useActionContext)();return(0,e.useRequest)(function(){var e,t,o;return Promise.resolve({data:N(O({},n),{href:null==(e=n.options)?void 0:e.href,params:null==(t=n.options)?void 0:t.params,url:null==(o=n.options)?void 0:o.url})})},N(O({},t),{refreshDeps:[o.visible]}))}},title:'{{t("Edit")}}',properties:{formSchema:{type:"void",properties:(A(u={type:{type:"string",title:'{{t("Type")}}',"x-decorator":"FormItem","x-component":function(e){return n().createElement(z,{value:e.value})},default:e.NocoBaseDesktopRouteType.page},title:{type:"string",title:'{{t("Title")}}',"x-decorator":"FormItem","x-component":"Input",required:!0},icon:{type:"string",title:'{{t("Icon")}}',"x-decorator":"FormItem","x-component":"IconPicker","x-reactions":p?{dependencies:["type"],fulfill:{state:{required:'{{$deps[0] !== "tabs"}}'}}}:void 0}},p?"url":"href",{title:'{{t("URL")}}',type:"string","x-decorator":"FormItem","x-component":q,description:'{{t("Do not concatenate search params in the URL")}}',"x-reactions":{dependencies:["type"],fulfill:{state:{hidden:'{{$deps[0] !== "link"}}'}}}}),A(u,"params",{type:"array","x-component":"ArrayItems","x-decorator":"FormItem",title:'{{t("Search parameters")}}',items:{type:"object",properties:{space:{type:"void","x-component":"Space","x-component-props":{style:{flexWrap:"nowrap",maxWidth:"100%"},className:(0,e.css)(F())},properties:{name:{type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:'{{t("Name")}}'}},value:{type:"string","x-decorator":"FormItem","x-component":q,"x-component-props":{placeholder:'{{t("Value")}}',useTypedConstant:!0,changeOnSelect:!0}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}}}},"x-reactions":{dependencies:["type"],fulfill:{state:{hidden:'{{$deps[0] !== "link"}}'}}},properties:{add:{type:"void",title:'{{t("Add parameter")}}',"x-component":"ArrayItems.Addition"}}}),A(u,"hideInMenu",{type:"boolean",title:'{{t("Show in menu")}}',"x-decorator":"FormItem","x-decorator-props":{tooltip:"{{t(`If selected, the route will be displayed in the menu.`)}}"},"x-component":function(e){var o=P((0,t.useState)(!e.value),2),a=o[0],i=o[1];return n().createElement(r.Checkbox,{checked:a,onChange:function(){var t;i(!a),null==(t=e.onChange)||t.call(e,a)}})},default:!1}),A(u,"enableTabs",{type:"boolean",title:'{{t("Enable page tabs")}}',"x-decorator":"FormItem","x-decorator-props":{tooltip:"{{t(`If selected, the page will display Tab pages.`)}}"},"x-component":function(e){return n().createElement(r.Checkbox,{checked:e.value,onChange:e.onChange})},"x-reactions":{dependencies:["type"],fulfill:{state:{hidden:'{{$deps[0] !== "page" && $deps[0] !== "flowPage"}}'}}},default:!1}),u)},footer:{type:"void","x-component":"Action.Drawer.Footer",properties:{cancel:{title:'{{t("Cancel")}}',"x-component":"Action","x-component-props":{useAction:"{{ cm.useCancelAction }}"}},submit:{title:'{{t("Submit")}}',"x-component":"Action","x-component-props":{type:"primary",useAction:function(t){var n=(0,b.useForm)(),o=(0,b.useField)(),r=(0,e.useCollectionRecordData)(),i=(0,e.useActionContext)(),l=(0,e.useDataBlockRequestGetter)().getDataBlockRequest,c=(0,e.useNocoBaseRoutes)(a).updateRoute;return{run:function(){return C(function(){var e,a,u,p,s;return j(this,function(d){switch(d.label){case 0:return d.trys.push([0,4,,5]),[4,n.submit()];case 1:return d.sent(),o.data=o.data||{},o.data.loading=!0,(n.values.href||!g().isEmpty(n.values.params))&&(u={href:n.values.href,params:n.values.params}),[4,c(r.id,N(O({},g().omit(n.values,["href","params"])),{options:u}))];case 2:return p=d.sent(),i.setVisible(!1),null==t||t(null==p||null==(e=p.data)?void 0:e.data),[4,n.reset()];case 3:return d.sent(),o.data.loading=!1,null==(a=l())||a.refresh(),[3,5];case 4:throw s=d.sent(),o.data&&(o.data.loading=!1),s;case 5:return[2]}})})()}}}}}}}}}}},access:{type:"void",title:'{{t("View")}}',"x-component":"Action.Link","x-use-component-props":function(){var t=(0,e.useCollectionRecordData)();return{onClick:function(){window.open(t._path,"_blank")},disabled:!t._path}},"x-decorator":"Space"},delete:{type:"void",title:'{{t("Delete")}}',"x-decorator":"Space","x-component":"Action.Link","x-use-component-props":function(){var n=(0,e.useCollectionRecordData)(),o=(0,e.useAPIClient)(),r=(0,t.useMemo)(function(){return o.resource(a)},[o]),i=(0,e.useDataBlockRequestGetter)().getDataBlockRequest,l=(0,e.useDeleteRouteSchema)().deleteRouteSchema,c=(0,e.useAllAccessDesktopRoutes)().refresh;return{onClick:C(function(){return j(this,function(e){switch(e.label){case 0:return[4,l(n.schemaUid)];case 1:return e.sent(),r.destroy({filterByTk:n.id}).then(function(){i().refresh(),c()}).catch(function(e){console.error(e)}),[2]}})})}},"x-component-props":{confirm:{title:"{{t('Delete route')}}",content:"{{t('Are you sure you want to delete it?')}}"}}}}}}}}}};function U(n){var o,r,a="uiSchemas",i=(0,e.useAPIClient)(),l=(0,t.useMemo)(function(){return i.resource(a)},[i,a]),c=(0,e.useInsertPageSchema)();return{createRouteSchema:(0,t.useCallback)((o=C(function(t){var o,r,a,i,u,p;return j(this,function(s){switch(s.label){case 0:var d,m;if(o=t.type,r=(0,h.uid)(),a=(0,h.uid)(),i=[e.NocoBaseDesktopRouteType.page,e.NocoBaseDesktopRouteType.flowPage].includes(o)?(0,h.uid)():void 0,A(u={},e.NocoBaseDesktopRouteType.page,n?({schema:{type:"void",name:d=r,"x-uid":d,"x-component":"MobilePageProvider","x-settings":"mobile:page","x-decorator":"BlockItem","x-decorator-props":{style:{height:"100%"}},"x-toolbar-props":{draggable:!1,spaceWrapperStyle:{right:-15,top:-15},spaceClassName:V,toolbarStyle:{overflowX:"hidden"}},properties:{header:L,content:{type:"void","x-component":"MobilePageContent",properties:A({},m=i,$(m))}}}}).schema:(0,e.getPageMenuSchema)({pageSchemaUid:r,tabSchemaUid:i,tabSchemaName:a})),A(u,e.NocoBaseDesktopRouteType.flowPage,(0,e.getFlowPageMenuSchema)({pageSchemaUid:r})),!(p=u)[o])return[2,{}];if(!n)return[3,2];return[4,l.insertAdjacent({resourceIndex:"mobile",position:"beforeEnd",values:{schema:p[o]}})];case 1:return s.sent(),[3,4];case 2:return[4,c(p[o])];case 3:s.sent(),s.label=4;case 4:return[2,{pageSchemaUid:r,tabSchemaUid:i,tabSchemaName:a}]}})}),function(e){return o.apply(this,arguments)}),[n,l,c]),createTabRouteSchema:(0,t.useCallback)((r=C(function(t){var o,r,a,i,c;return j(this,function(u){switch(u.label){case 0:return o=t.title,r=t.icon,a=t.parentSchemaUid,i=(0,h.uid)(),c=(0,h.uid)(),[4,l["insertAdjacent/".concat(a)]({position:"beforeEnd",values:{schema:n?$(i):(0,e.getTabSchema)({title:o,icon:r,schemaUid:i,tabSchemaName:c})}})];case 1:return u.sent(),[2,{tabSchemaUid:i,tabSchemaName:c}]}})}),function(e){return r.apply(this,arguments)}),[n,l])}}function z(t){var a,i,l=(0,o.useTranslation)().t,c=(A(a={},e.NocoBaseDesktopRouteType.group,"blue"),A(a,e.NocoBaseDesktopRouteType.page,"green"),A(a,e.NocoBaseDesktopRouteType.flowPage,"purple"),A(a,e.NocoBaseDesktopRouteType.link,"red"),A(a,e.NocoBaseDesktopRouteType.tabs,"orange"),a),u=(A(i={},e.NocoBaseDesktopRouteType.group,l("Group")),A(i,e.NocoBaseDesktopRouteType.page,l("Page")),A(i,e.NocoBaseDesktopRouteType.flowPage,l("Page (v2)")),A(i,e.NocoBaseDesktopRouteType.link,l("Link")),A(i,e.NocoBaseDesktopRouteType.tabs,l("Tab")),i);return n().createElement(r.Tag,{color:c[t.value]},u[t.value])}var V=(0,e.css)("\n &:first-child {\n .ant-space-item {\n width: 30px;\n height: 30px;\n transform: rotate(45deg);\n span {\n position: relative;\n bottom: -15px;\n right: -8px;\n transform: rotate(-45deg);\n font-size: 10px;\n }\n }\n }\n "),L={type:"void","x-component":"MobilePageHeader",properties:{pageNavigationBar:{type:"void","x-component":"MobilePageNavigationBar",properties:{actionBar:{type:"void","x-component":"MobileNavigationActionBar","x-initializer":"mobile:navigation-bar:actions","x-component-props":{spaceProps:{style:{flexWrap:"nowrap"}}},properties:{}}}},pageTabs:{type:"void","x-component":"MobilePageTabs"}}};function $(e){return{type:"void","x-uid":e,"x-async":!0,"x-component":"Grid","x-component-props":{showDivider:!1},"x-initializer":"mobile:addBlock"}}var _=M("desktopRoutes","/admin"),G=function(){var o=y().t,a=(0,e.useSchemaComponentContext)(),i=(0,t.useMemo)(function(){var e,t;return e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o})}return e}({},a),t=t={designable:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n.push.apply(n,o)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e},[a]);return n().createElement(e.ExtendCollectionsProvider,{collections:[u]},n().createElement(e.SchemaComponentContext.Provider,{value:i},n().createElement(r.Card,{bordered:!1},n().createElement(e.SchemaComponent,{schema:_,scope:{t:o}}))))},W={name:"mobileRoutes",dumpRules:"required",migrationRules:["overwrite","schema-only"],inherit:!1,hidden:!1,description:null,fields:[{key:"ymgf0jxu1kg",name:"parentId",type:"bigInt",interface:"integer",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,isForeignKey:!0,uiSchema:{type:"number",title:'{{t("Parent ID")}}',"x-component":"InputNumber","x-read-pretty":!0}},{key:"b07aqgs2shv",name:"parent",type:"belongsTo",interface:"m2o",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,foreignKey:"parentId",treeParent:!0,onDelete:"CASCADE",uiSchema:{title:'{{t("Parent")}}',"x-component":"AssociationField","x-component-props":{multiple:!1,fieldNames:{label:"id",value:"id"}}},target:"mobileRoutes",targetKey:"id"},{key:"p8sxllsgin1",name:"children",type:"hasMany",interface:"o2m",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,foreignKey:"parentId",treeChildren:!0,onDelete:"CASCADE",uiSchema:{title:'{{t("Children")}}',"x-component":"AssociationField","x-component-props":{multiple:!0,fieldNames:{label:"id",value:"id"}}},target:"mobileRoutes",targetKey:"id",sourceKey:"id"},{key:"7y601o9bmih",name:"id",type:"snowflakeId",interface:"integer",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,primaryKey:!0,allowNull:!1,uiSchema:{type:"number",title:'{{t("ID")}}',"x-component":"InputNumber","x-read-pretty":!0}},{key:"m8s9b94amz3",name:"createdAt",type:"date",interface:"createdAt",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,field:"createdAt",uiSchema:{type:"datetime",title:'{{t("Created at")}}',"x-component":"DatePicker","x-component-props":{},"x-read-pretty":!0}},{key:"p3p69woziuu",name:"createdBy",type:"belongsTo",interface:"createdBy",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,target:"users",foreignKey:"createdById",uiSchema:{type:"object",title:'{{t("Created by")}}',"x-component":"AssociationField","x-component-props":{fieldNames:{value:"id",label:"nickname"}},"x-read-pretty":!0},targetKey:"id"},{key:"s0gw1blo4hm",name:"updatedAt",type:"date",interface:"updatedAt",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,field:"updatedAt",uiSchema:{type:"string",title:'{{t("Last updated at")}}',"x-component":"DatePicker","x-component-props":{},"x-read-pretty":!0}},{key:"d1l988n09gd",name:"updatedBy",type:"belongsTo",interface:"updatedBy",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,target:"users",foreignKey:"updatedById",uiSchema:{type:"object",title:'{{t("Last updated by")}}',"x-component":"AssociationField","x-component-props":{fieldNames:{value:"id",label:"nickname"}},"x-read-pretty":!0},targetKey:"id"},{key:"bo7btzkbyan",name:"title",type:"string",interface:"input",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,translation:!0,uiSchema:{type:"string","x-component":"Input",title:'{{t("Title")}}'}},{key:"ozl5d8t2d5e",name:"icon",type:"string",interface:"input",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input",title:'{{t("Icon")}}'}},{key:"6bbyhv00bp4",name:"schemaUid",type:"string",interface:"input",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input",title:'{{t("Schema UID")}}'}},{key:"m0k5qbaktab",name:"type",type:"string",interface:"input",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,uiSchema:{type:"string","x-component":"Input",title:'{{t("Type")}}'}},{key:"ssuml1j2v1b",name:"options",type:"json",interface:"json",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,defaultValue:null,uiSchema:{type:"object","x-component":"Input.JSON","x-component-props":{autoSize:{minRows:5}},default:null,title:'{{t("Options")}}'}},{key:"jjmosjqhz8l",name:"sort",type:"sort",interface:"sort",description:null,collectionName:"mobileRoutes",parentKey:null,reverseKey:null,scopeKey:"parentId",uiSchema:{type:"number","x-component":"InputNumber","x-component-props":{stringMode:!0,step:"1"},"x-validator":"integer",title:'{{t("Sort")}}'}},{type:"belongsToMany",name:"roles",through:"rolesMobileRoutes",target:"roles",onDelete:"CASCADE"},{type:"boolean",name:"hideInMenu",interface:"checkbox",uiSchema:{type:"boolean","x-component":"Checkbox",title:'{{t("Hide in menu")}}'}},{type:"boolean",name:"enableTabs",interface:"checkbox",uiSchema:{type:"boolean","x-component":"Checkbox",title:'{{t("Enable tabs")}}'}},{type:"boolean",name:"hidden",interface:"checkbox",uiSchema:{type:"boolean","x-component":"Checkbox",title:'{{t("Hidden")}}'}}],category:[],logging:!0,autoGenId:!0,createdAt:!0,createdBy:!0,updatedAt:!0,updatedBy:!0,template:"tree",view:!1,tree:"adjacencyList",filterTargetKey:"id"},H=M("mobileRoutes","/m/page"),J=function(){var o=y().t,a=(0,e.useSchemaComponentContext)(),i=(0,t.useMemo)(function(){var e,t;return e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){var o;o=n[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o})}return e}({},a),t=t={designable:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n.push.apply(n,o)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e},[a]);return n().createElement(e.ExtendCollectionsProvider,{collections:[W]},n().createElement(e.SchemaComponentContext.Provider,{value:i},n().createElement(r.Card,{bordered:!1},n().createElement(e.SchemaComponent,{schema:H,scope:{t:o}}))))};function X(e,t,n,o,r,a,i){try{var l=e[a](i),c=l.value}catch(e){n(e);return}l.done?t(c):Promise.resolve(c).then(o,r)}function Q(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){X(a,o,r,i,l,"next",e)}function l(e){X(a,o,r,i,l,"throw",e)}i(void 0)})}}function Y(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){var c=[a,l];if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(6===c[0]&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],o=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var Z=function(){var t=(0,o.useTranslation)().t,a=(0,e.useAPIClient)(),i=r.App.useApp().modal;return n().createElement(e.SchemaSettingsItem,{eventKey:"restartApplication",title:"restartApplication",onClick:Q(function(){return Y(this,function(e){return i.confirm({title:t("Restart application"),okText:t("Restart"),okButtonProps:{danger:!0},onOk:Q(function(){return Y(this,function(e){switch(e.label){case 0:return[4,a.resource("app").restart()];case 1:return e.sent(),[2]}})})}),[2]})})},t("Restart application"))};function ee(e,t,n,o,r,a,i){try{var l=e[a](i),c=l.value}catch(e){n(e);return}l.done?t(c):Promise.resolve(c).then(o,r)}function et(e,t,n){return(et=ea()?Reflect.construct:function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&eo(r,n.prototype),r}).apply(null,arguments)}function en(e){return(en=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eo(e,t){return(eo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function er(e){var t="function"==typeof Map?new Map:void 0;return(er=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw 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,n)}function n(){return et(e,arguments,en(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),eo(n,e)})(e)}function ea(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ea=function(){return!!e})()}var ei=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(){var e,t;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return e=n,t=arguments,e=en(e),function(e,t){var n;if(t&&("object"==((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,ea()?Reflect.construct(e,t||[],en(this).constructor):e.apply(this,t))}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&eo(n,e),t=[{key:"load",value:function(){var e,t=this;return(e=function(){var e,n,o;return function(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(a){return function(l){var c=[a,l];if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(r=(r=i.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(6===c[0]&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],o=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(r){return t.app.pluginSettingsManager.add("routes",{title:m("Routes"),icon:"ApartmentOutlined",aclSnippet:"pm.routes"}),t.app.pluginSettingsManager.add("routes.desktop",{title:m("Desktop routes"),Component:G,aclSnippet:"pm.routes.desktop",sort:1}),t.app.addUserCenterSettingsItem({name:"divider4",sort:499,type:"divider",aclSnippet:"app"}),t.app.addUserCenterSettingsItem({name:"cache",sort:500,Component:c,aclSnippet:"app"}),t.app.addUserCenterSettingsItem({name:"restartApplication",Component:Z,sort:510,aclSnippet:"app"}),(o=t.app.pluginManager.get("@nocobase/plugin-mobile"))&&!(null==(n=o.options)||null==(e=n.options)?void 0:e.deprecated)&&t.app.pluginSettingsManager.add("routes.mobile",{title:m("Mobile routes"),Component:J,aclSnippet:"pm.routes.mobile",sort:2}),[2]})},function(){var t=this,n=arguments;return new Promise(function(o,r){var a=e.apply(t,n);function i(e){ee(a,o,r,i,l,"next",e)}function l(e){ee(a,o,r,i,l,"throw",e)}i(void 0)})})()}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(n.prototype,t),n}(er(e.Plugin))}(),s}()});
|
package/dist/externalVersion.js
CHANGED
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"react": "18.2.0",
|
|
12
12
|
"react-i18next": "11.18.6",
|
|
13
|
-
"@nocobase/client": "2.1.0-alpha.
|
|
13
|
+
"@nocobase/client": "2.1.0-alpha.2",
|
|
14
14
|
"antd": "5.24.2",
|
|
15
15
|
"@ant-design/icons": "5.6.1",
|
|
16
16
|
"@formily/react": "2.3.7",
|
|
17
|
-
"@nocobase/utils": "2.1.0-alpha.
|
|
17
|
+
"@nocobase/utils": "2.1.0-alpha.2",
|
|
18
18
|
"lodash": "4.17.21",
|
|
19
|
-
"@nocobase/database": "2.1.0-alpha.
|
|
20
|
-
"@nocobase/plugin-localization": "2.1.0-alpha.
|
|
21
|
-
"@nocobase/server": "2.1.0-alpha.
|
|
19
|
+
"@nocobase/database": "2.1.0-alpha.2",
|
|
20
|
+
"@nocobase/plugin-localization": "2.1.0-alpha.2",
|
|
21
|
+
"@nocobase/server": "2.1.0-alpha.2"
|
|
22
22
|
};
|
package/dist/locale/de-DE.json
CHANGED
|
@@ -1424,6 +1424,8 @@
|
|
|
1424
1424
|
"Use simple pagination mode": "Use simple pagination mode",
|
|
1425
1425
|
"Use the same time zone (GMT) for all users": "Verwenden Sie die gleiche Zeitzone (GMT) für alle Benutzer",
|
|
1426
1426
|
"Used for drag and drop sorting scenarios, supporting grouping sorting": "Wird für Drag & Drop-Sortierungsszenarien verwendet und unterstützt Gruppensortierung",
|
|
1427
|
+
"Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.": "Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.",
|
|
1428
|
+
"Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.": "Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.",
|
|
1427
1429
|
"User": "Benutzer",
|
|
1428
1430
|
"User not found. Please sign in again to continue.": "Benutzer nicht gefunden. Bitte melden Sie sich erneut an, um fortzufahren.",
|
|
1429
1431
|
"User password changed, please signin again.": "Benutzerpasswort geändert, bitte melden Sie sich erneut an.",
|
package/dist/locale/en-US.json
CHANGED
|
@@ -71,8 +71,17 @@
|
|
|
71
71
|
"Add {{type}} after \"{{title}}\"": "Add {{type}} after \"{{title}}\"",
|
|
72
72
|
"Add {{type}} before \"{{title}}\"": "Add {{type}} before \"{{title}}\"",
|
|
73
73
|
"Add {{type}} in \"{{title}}\"": "Add {{type}} in \"{{title}}\"",
|
|
74
|
+
"Advanced": "Advanced",
|
|
74
75
|
"Advanced type": "Advanced",
|
|
76
|
+
"No available title fields": "No available title fields",
|
|
77
|
+
"Please choose a different title field before syncing": "Please choose a different title field before syncing",
|
|
78
|
+
"Sync selected title field to collection": "Sync selected title field to collection",
|
|
79
|
+
"Sync title field": "Sync title field",
|
|
80
|
+
"This will update the collection title field globally. Continue?": "This will update the collection title field globally. Continue?",
|
|
75
81
|
"After": "After",
|
|
82
|
+
"After built-in flow": "After specific flow",
|
|
83
|
+
"After built-in flows": "After all flows",
|
|
84
|
+
"After built-in flow step": "After specific flow step",
|
|
76
85
|
"After change": "After change",
|
|
77
86
|
"After clicking the custom button, the following field values will be assigned according to the following form.": "After clicking the custom button, the following field values will be assigned according to the following form.",
|
|
78
87
|
"After clicking the custom button, the following fields of the current record will be saved according to the following form.": "After clicking the custom button, the following fields of the current record will be saved according to the following form.",
|
|
@@ -146,11 +155,16 @@
|
|
|
146
155
|
"Assign data scope for the template": "Assign data scope for the template",
|
|
147
156
|
"Assign field values": "Assign field values",
|
|
148
157
|
"Assign value": "Assign value",
|
|
158
|
+
"A pre-filled value. Editable, for new entries only, and won’t affect existing data (including empty values).": "A pre-filled value. Editable, for new entries only, and won’t affect existing data (including empty values)",
|
|
159
|
+
"A system-set value. Read-only.": "A system-set value. Read-only",
|
|
149
160
|
"Assignment mode": "Assignment mode",
|
|
150
161
|
"Associate": "Associate",
|
|
162
|
+
"Field values": "Field values",
|
|
163
|
+
"Fixed value": "Fixed value",
|
|
151
164
|
"Associated records": "Associated records",
|
|
152
165
|
"Association field settings": "Association field settings",
|
|
153
166
|
"Association fields": "Association fields",
|
|
167
|
+
"Search association fields": "Search association fields",
|
|
154
168
|
"Association fields filter": "Association fields filter",
|
|
155
169
|
"Association select settings": "Association select settings",
|
|
156
170
|
"Association table settings": "Association table settings",
|
|
@@ -178,6 +192,9 @@
|
|
|
178
192
|
"Basic": "Basic",
|
|
179
193
|
"Basic configuration": "Basic configuration",
|
|
180
194
|
"Before": "Before",
|
|
195
|
+
"Before all flows": "Before all flows",
|
|
196
|
+
"Before built-in flow": "Before specific flow",
|
|
197
|
+
"Before built-in flow step": "Before specific flow step",
|
|
181
198
|
"Before change": "Before change",
|
|
182
199
|
"Before render": "Before render",
|
|
183
200
|
"Blank block": "Blank block",
|
|
@@ -188,6 +205,8 @@
|
|
|
188
205
|
"Block template": "Block template",
|
|
189
206
|
"Block templates": "Block templates",
|
|
190
207
|
"Block title": "Block title",
|
|
208
|
+
"Built-in flow": "Specific flow",
|
|
209
|
+
"Built-in flow step": "Specific flow step",
|
|
191
210
|
"Block type": "Block type",
|
|
192
211
|
"Blocks": "Blocks",
|
|
193
212
|
"Blue": "Blue",
|
|
@@ -203,6 +222,7 @@
|
|
|
203
222
|
"Button icon": "Button icon",
|
|
204
223
|
"Button settings": "Button settings",
|
|
205
224
|
"Button title": "Button title",
|
|
225
|
+
"Button tooltip": "Button tooltip",
|
|
206
226
|
"Button type": "Button type",
|
|
207
227
|
"Calculation engine": "Calculation engine",
|
|
208
228
|
"Calendar": "Calendar",
|
|
@@ -337,6 +357,7 @@
|
|
|
337
357
|
"Current device type": "Current device type",
|
|
338
358
|
"Current form": "Current form",
|
|
339
359
|
"Current object": "Current object",
|
|
360
|
+
"Current item": "Current item",
|
|
340
361
|
"Current popup": "Current popup",
|
|
341
362
|
"Current popup parent record": "Current popup parent record",
|
|
342
363
|
"Current popup record": "Current popup record",
|
|
@@ -550,6 +571,7 @@
|
|
|
550
571
|
"Enter collection name": "Enter collection name",
|
|
551
572
|
"Enter end accessor": "Enter end accessor",
|
|
552
573
|
"Enter field title": "Enter field title",
|
|
574
|
+
"Enter flow title": "Enter flow title",
|
|
553
575
|
"Enter number of rows to display": "Enter number of rows to display",
|
|
554
576
|
"Enter page title": "Enter page title",
|
|
555
577
|
"Enter placeholder text": "Enter placeholder text",
|
|
@@ -564,6 +586,9 @@
|
|
|
564
586
|
"Exact day": "Exact day",
|
|
565
587
|
"Execute": "Execute",
|
|
566
588
|
"Execute JavaScript": "Execute JavaScript",
|
|
589
|
+
"Execution succeeded": "Execution succeeded",
|
|
590
|
+
"Execution timed out": "Execution timed out",
|
|
591
|
+
"Execution timing": "Execution timing",
|
|
567
592
|
"Exists": "Exists",
|
|
568
593
|
"Exit fullscreen": "Exit fullscreen",
|
|
569
594
|
"Expand All": "Expand All",
|
|
@@ -581,6 +606,7 @@
|
|
|
581
606
|
"Feedback": "Feedback",
|
|
582
607
|
"Field": "Field",
|
|
583
608
|
"Field Linkage rules": "Field Linkage rules",
|
|
609
|
+
"Assignment takes precedence over form field assignment": "Assignment takes precedence over form field assignment",
|
|
584
610
|
"Field assignment": "Field assignment",
|
|
585
611
|
"Field component": "Field component",
|
|
586
612
|
"Field display name": "Field display name",
|
|
@@ -638,6 +664,7 @@
|
|
|
638
664
|
"Form field assignment": "Form field assignment",
|
|
639
665
|
"Form item settings": "Form item settings",
|
|
640
666
|
"Form settings": "Form settings",
|
|
667
|
+
"Form block settings": "Form block settings",
|
|
641
668
|
"Form values": "Form values",
|
|
642
669
|
"Form values change": "Form values change",
|
|
643
670
|
"Form variable": "Form variable",
|
|
@@ -703,6 +730,8 @@
|
|
|
703
730
|
"In configuration mode, the entire column becomes transparent. In non-configuration mode, the entire column will be hidden. Even if the entire column is hidden, its configured default values and other settings will still take effect.": "In configuration mode, the entire column becomes transparent. In non-configuration mode, the entire column will be hidden. Even if the entire column is hidden, its configured default values and other settings will still take effect.",
|
|
704
731
|
"Incomplete uploading files need to be resolved": "Incomplete uploading files need to be resolved",
|
|
705
732
|
"Index": "Index",
|
|
733
|
+
"Index (starts from 0)": "Index (starts from 0)",
|
|
734
|
+
"Attributes": "Attributes",
|
|
706
735
|
"Individual": "Individual",
|
|
707
736
|
"Inherited fields": "Inherited fields",
|
|
708
737
|
"Inherited template": "Inherited template",
|
|
@@ -777,6 +806,7 @@
|
|
|
777
806
|
"Log in with an existing account": "Log in with an existing account",
|
|
778
807
|
"Logging and monitoring": "Logging and monitoring",
|
|
779
808
|
"Logo": "Logo",
|
|
809
|
+
"Logs": "Logs",
|
|
780
810
|
"Long text": "Long text",
|
|
781
811
|
"MATHJS_DOC_URL": "https://v2.docs.nocobase.com/calculation-engine/math",
|
|
782
812
|
"Magenta": "Magenta",
|
|
@@ -868,9 +898,11 @@
|
|
|
868
898
|
"No configuration available.": "No configuration available.",
|
|
869
899
|
"No data": "No data",
|
|
870
900
|
"No event flows": "No event flows",
|
|
901
|
+
"No built-in flows for this event": "No flows available for this event",
|
|
871
902
|
"No form available for reset.": "No form available for reset.",
|
|
872
903
|
"No form available for submission.": "No form available for submission.",
|
|
873
904
|
"No linkage rules": "No linkage rules",
|
|
905
|
+
"No logs yet. Click Run to execute.": "No logs yet. Click Run to execute.",
|
|
874
906
|
"No pages yet, please configure first": "No pages yet, please configure first",
|
|
875
907
|
"A 53-bit Snowflake ID designed to be compatible with JavaScript’s safe integer range, providing both time-ordering and uniqueness.": "A 53-bit Snowflake ID designed to be compatible with JavaScript’s safe integer range, providing both time-ordering and uniqueness.",
|
|
876
908
|
"No parent popup": "No parent popup",
|
|
@@ -957,6 +989,7 @@
|
|
|
957
989
|
"Parent ID": "Parent ID",
|
|
958
990
|
"Parent collection fields": "Parent collection fields",
|
|
959
991
|
"Parent object": "Parent object",
|
|
992
|
+
"Parent item": "Parent item",
|
|
960
993
|
"Parent popup": "Parent popup",
|
|
961
994
|
"Parent popup record": "Parent popup record",
|
|
962
995
|
"Parent record": "Parent record",
|
|
@@ -1001,6 +1034,11 @@
|
|
|
1001
1034
|
"Please input target block uid": "Please input target block uid",
|
|
1002
1035
|
"Please input target form uid": "Please input target form uid",
|
|
1003
1036
|
"Please select": "Please select",
|
|
1037
|
+
"Used for display in the dropdown and selected tags.": "Used for display in the dropdown and selected tags.",
|
|
1038
|
+
"Stored as the field value for filtering (usually the primary key).": "Stored as the field value for filtering (usually the primary key).",
|
|
1039
|
+
"Value field": "Value field",
|
|
1040
|
+
"Please select a built-in flow": "Please select a flow",
|
|
1041
|
+
"Please select a built-in flow step": "Please select a step",
|
|
1004
1042
|
"Please select field": "Please select field",
|
|
1005
1043
|
"Please select fields": "Please select fields",
|
|
1006
1044
|
"Please select fields to filter": "Please select fields to filter",
|
|
@@ -1071,6 +1109,7 @@
|
|
|
1071
1109
|
"Record ID": "Record ID",
|
|
1072
1110
|
"Record deleted successfully": "Record deleted successfully",
|
|
1073
1111
|
"Record picker": "Record picker",
|
|
1112
|
+
"Record select": "Record select",
|
|
1074
1113
|
"Record unique key": "Record unique key",
|
|
1075
1114
|
"RecordPicker settings": "RecordPicker settings",
|
|
1076
1115
|
"Records can be sorted": "Records can be sorted",
|
|
@@ -1130,6 +1169,8 @@
|
|
|
1130
1169
|
"Routes": "Routes",
|
|
1131
1170
|
"Row click": "Row click",
|
|
1132
1171
|
"Rows": "Rows",
|
|
1172
|
+
"Run": "Run",
|
|
1173
|
+
"Run preview failed": "Run preview failed",
|
|
1133
1174
|
"SQL collection": "SQL collection",
|
|
1134
1175
|
"Save": "Save",
|
|
1135
1176
|
"Save action": "Save action",
|
|
@@ -1155,10 +1196,13 @@
|
|
|
1155
1196
|
"Search parameters": "Search parameters",
|
|
1156
1197
|
"Search plugin": "Search plugin",
|
|
1157
1198
|
"Search plugin...": "Search plugin...",
|
|
1199
|
+
"Search snippets (name / prefix / body / group)": "Search snippets (name / prefix / body / group)",
|
|
1158
1200
|
"Second": "Second",
|
|
1159
1201
|
"Secondary confirmation": "Secondary confirmation",
|
|
1160
1202
|
"Security": "Security",
|
|
1161
1203
|
"Select": "Select",
|
|
1204
|
+
"Select a built-in flow": "Select a flow",
|
|
1205
|
+
"Select a built-in flow step": "Select a step",
|
|
1162
1206
|
"Select a source field to use metadata of the field": "Select a source field to use metadata of the field",
|
|
1163
1207
|
"Select a variable": "Select a variable",
|
|
1164
1208
|
"Select all": "Select all",
|
|
@@ -1207,6 +1251,7 @@
|
|
|
1207
1251
|
"Set field value": "Set field value",
|
|
1208
1252
|
"Set form field state": "Set form field state",
|
|
1209
1253
|
"Set form field value": "Set form field value",
|
|
1254
|
+
"This setting has been moved to": "This setting has been moved to",
|
|
1210
1255
|
"Set state": "Set state",
|
|
1211
1256
|
"Set the count of columns displayed in a row": "Set the count of columns displayed in a row",
|
|
1212
1257
|
"Set the data scope": "Set the data scope",
|
|
@@ -1241,6 +1286,7 @@
|
|
|
1241
1286
|
"Skip getting the total number of table records during paging to speed up loading. It is recommended to enable this option for data tables with a large amount of data": "Skip getting the total number of table records during paging to speed up loading. It is recommended to enable this option for data tables with a large amount of data",
|
|
1242
1287
|
"Skip required validation": "Skip required validation",
|
|
1243
1288
|
"Small": "Small",
|
|
1289
|
+
"Snippets": "Snippets",
|
|
1244
1290
|
"Snowflake ID (53-bit)": "Snowflake ID (53-bit)",
|
|
1245
1291
|
"SmartTv": "SmartTv",
|
|
1246
1292
|
"Some files are not uploaded correctly, please check.": "Some files are not uploaded correctly, please check.",
|
|
@@ -1385,6 +1431,7 @@
|
|
|
1385
1431
|
"Tooltip": "Tooltip",
|
|
1386
1432
|
"Top left": "Top left",
|
|
1387
1433
|
"Top right": "Top right",
|
|
1434
|
+
"Total count": "Total count",
|
|
1388
1435
|
"Total {{count}} items": "Total {{count}} items",
|
|
1389
1436
|
"Tree collection": "Tree collection",
|
|
1390
1437
|
"Tree table": "Tree table",
|
|
@@ -1408,6 +1455,7 @@
|
|
|
1408
1455
|
"Unique": "Unique",
|
|
1409
1456
|
"Unit conversion": "Unit conversion",
|
|
1410
1457
|
"Unix Timestamp": "Unix Timestamp",
|
|
1458
|
+
"Unknown error": "Unknown error",
|
|
1411
1459
|
"Unknown field type": "Unknown field type",
|
|
1412
1460
|
"Unnamed": "Unnamed",
|
|
1413
1461
|
"Unpinned": "Unpinned",
|
|
@@ -1429,9 +1477,12 @@
|
|
|
1429
1477
|
"Upload new version": "Upload new version",
|
|
1430
1478
|
"Upload plugin": "Upload plugin",
|
|
1431
1479
|
"Uploading": "Uploading",
|
|
1480
|
+
"Use return to output value": "Use return to output value",
|
|
1432
1481
|
"Use simple pagination mode": "Use simple pagination mode",
|
|
1433
1482
|
"Use the same time zone (GMT) for all users": "Use the same time zone (GMT) for all users",
|
|
1434
1483
|
"Used for drag and drop sorting scenarios, supporting grouping sorting": "Used for drag and drop sorting scenarios, supporting grouping sorting",
|
|
1484
|
+
"Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.": "Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.",
|
|
1485
|
+
"Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.": "Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.",
|
|
1435
1486
|
"User": "User",
|
|
1436
1487
|
"User not found. Please sign in again to continue.": "User not found. Please sign in again to continue.",
|
|
1437
1488
|
"User password changed, please signin again.": "User password changed, please signin again.",
|
package/dist/locale/es-ES.json
CHANGED
|
@@ -1449,6 +1449,8 @@
|
|
|
1449
1449
|
"Use the built-in static file server": "Utilizar el servidor de archivos estático incorporado",
|
|
1450
1450
|
"Use the same time zone (GMT) for all users": "Utilizar la misma zona horaria (GMT) para todos los usuarios",
|
|
1451
1451
|
"Used for drag and drop sorting scenarios, supporting grouping sorting": "Used for drag and drop sorting scenarios, supporting grouping sorting",
|
|
1452
|
+
"Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.": "Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.",
|
|
1453
|
+
"Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.": "Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.",
|
|
1452
1454
|
"User": "Usuario",
|
|
1453
1455
|
"User not found. Please sign in again to continue.": "User not found. Please sign in again to continue.",
|
|
1454
1456
|
"User password changed, please signin again.": "User password changed, please signin again.",
|
package/dist/locale/fr-FR.json
CHANGED
|
@@ -1428,6 +1428,8 @@
|
|
|
1428
1428
|
"Use simple pagination mode": "Use simple pagination mode",
|
|
1429
1429
|
"Use the same time zone (GMT) for all users": "Utiliser le même fuseau horaire (GMT) pour tous les utilisateurs",
|
|
1430
1430
|
"Used for drag and drop sorting scenarios, supporting grouping sorting": "Used for drag and drop sorting scenarios, supporting grouping sorting",
|
|
1431
|
+
"Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.": "Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.",
|
|
1432
|
+
"Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.": "Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.",
|
|
1431
1433
|
"User": "Utilisateur",
|
|
1432
1434
|
"User not found. Please sign in again to continue.": "User not found. Please sign in again to continue.",
|
|
1433
1435
|
"User password changed, please signin again.": "User password changed, please signin again.",
|
package/dist/locale/hu-HU.json
CHANGED
|
@@ -1424,6 +1424,8 @@
|
|
|
1424
1424
|
"Use simple pagination mode": "Egyszerű lapozási mód használata",
|
|
1425
1425
|
"Use the same time zone (GMT) for all users": "Minden felhasználó számára ugyanazt az időzónát (GMT) használja",
|
|
1426
1426
|
"Used for drag and drop sorting scenarios, supporting grouping sorting": "Húzd és ejts rendezési forgatókönyvekhez használva, csoportosítási rendezés támogatásával",
|
|
1427
|
+
"Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.": "Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.",
|
|
1428
|
+
"Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.": "Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.",
|
|
1427
1429
|
"User": "Felhasználó",
|
|
1428
1430
|
"User not found. Please sign in again to continue.": "Felhasználó nem található. Kérjük, jelentkezzen be újra a folytatáshoz.",
|
|
1429
1431
|
"User password changed, please signin again.": "A felhasználói jelszó megváltozott, kérjük, jelentkezzen be újra.",
|
package/dist/locale/id-ID.json
CHANGED
|
@@ -1425,6 +1425,8 @@
|
|
|
1425
1425
|
"Use simple pagination mode": "Gunakan mode penomoran halaman sederhana",
|
|
1426
1426
|
"Use the same time zone (GMT) for all users": "Gunakan zona waktu yang sama (GMT) untuk semua pengguna",
|
|
1427
1427
|
"Used for drag and drop sorting scenarios, supporting grouping sorting": "Digunakan untuk skenario pengurutan seret dan lepas, mendukung pengurutan kelompok",
|
|
1428
|
+
"Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.": "Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.",
|
|
1429
|
+
"Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.": "Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.",
|
|
1428
1430
|
"User": "Pengguna",
|
|
1429
1431
|
"User not found. Please sign in again to continue.": "Pengguna tidak ditemukan. Harap masuk lagi untuk melanjutkan.",
|
|
1430
1432
|
"User password changed, please signin again.": "Kata sandi pengguna berubah, harap masuk lagi.",
|
package/dist/locale/it-IT.json
CHANGED
|
@@ -1424,6 +1424,8 @@
|
|
|
1424
1424
|
"Use simple pagination mode": "Usa modalità di paginazione semplice",
|
|
1425
1425
|
"Use the same time zone (GMT) for all users": "Usa lo stesso fuso orario (GMT) per tutti gli utenti",
|
|
1426
1426
|
"Used for drag and drop sorting scenarios, supporting grouping sorting": "Utilizzato per scenari con drag and drop, supporta ordinamento raggruppato",
|
|
1427
|
+
"Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.": "Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.",
|
|
1428
|
+
"Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.": "Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.",
|
|
1427
1429
|
"User": "Utente",
|
|
1428
1430
|
"User not found. Please sign in again to continue.": "Impossibile trovare l'utente. Accedi nuovamente per continuare.",
|
|
1429
1431
|
"User password changed, please signin again.": "La password dell'utente è stata modificata, accedi di nuovo.",
|
package/dist/locale/ja-JP.json
CHANGED
|
@@ -1441,6 +1441,8 @@
|
|
|
1441
1441
|
"Use simple pagination mode": "シンプルなページネーションモードを使用",
|
|
1442
1442
|
"Use the same time zone (GMT) for all users": "すべてのユーザーが同じタイムゾーン(GMT)を使用する",
|
|
1443
1443
|
"Used for drag and drop sorting scenarios, supporting grouping sorting": "ドラッグ&ドロップによる並べ替えで使用され、グループ分けソートをサポート",
|
|
1444
|
+
"Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.": "Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.",
|
|
1445
|
+
"Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.": "Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.",
|
|
1444
1446
|
"User": "ユーザー",
|
|
1445
1447
|
"User not found. Please sign in again to continue.": "ユーザーが見つかりません。再度ログインしてください。",
|
|
1446
1448
|
"User password changed, please signin again.": "ユーザーパスワードが変更されました。再度ログインしてください。",
|
package/dist/locale/ko-KR.json
CHANGED
|
@@ -1437,6 +1437,8 @@
|
|
|
1437
1437
|
"Use simple pagination mode": "간단한 페이지네이션 모드 사용",
|
|
1438
1438
|
"Use the same time zone (GMT) for all users": "모든 사용자가 동일한 시간대(GMT)를 사용합니다",
|
|
1439
1439
|
"Used for drag and drop sorting scenarios, supporting grouping sorting": "드래그 앤 드롭 정렬 시나리오에 사용되며, 그룹별 정렬을 지원합니다.",
|
|
1440
|
+
"Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.": "Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.",
|
|
1441
|
+
"Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.": "Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.",
|
|
1440
1442
|
"User": "사용자",
|
|
1441
1443
|
"User not found. Please sign in again to continue.": "사용자를 찾을 수 없습니다. 계속하려면 다시 로그인하세요.",
|
|
1442
1444
|
"User password changed, please signin again.": "사용자 비밀번호가 변경되었습니다. 다시 로그인해 주세요.",
|
package/dist/locale/nl-NL.json
CHANGED
|
@@ -1426,6 +1426,8 @@
|
|
|
1426
1426
|
"Use simple pagination mode": "Gebruik eenvoudige paginering",
|
|
1427
1427
|
"Use the same time zone (GMT) for all users": "Gebruik dezelfde tijdzone (GMT) voor alle gebruikers",
|
|
1428
1428
|
"Used for drag and drop sorting scenarios, supporting grouping sorting": "Gebruikt voor drag and drop sorteren, met ondersteuning voor groeperen",
|
|
1429
|
+
"Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.": "Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.",
|
|
1430
|
+
"Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.": "Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.",
|
|
1429
1431
|
"User": "Gebruiker",
|
|
1430
1432
|
"User not found. Please sign in again to continue.": "Gebruiker niet gevonden. Meld je opnieuw aan om verder te gaan.",
|
|
1431
1433
|
"User password changed, please signin again.": "Gebruikerswachtwoord gewijzigd, meld je opnieuw aan.",
|
package/dist/locale/pt-BR.json
CHANGED
|
@@ -1487,6 +1487,8 @@
|
|
|
1487
1487
|
"Use the built-in static file server": "Usar o servidor de arquivo estático integrado",
|
|
1488
1488
|
"Use the same time zone (GMT) for all users": "Use the same time zone (GMT) for all users",
|
|
1489
1489
|
"Used for drag and drop sorting scenarios, supporting grouping sorting": "Used for drag and drop sorting scenarios, supporting grouping sorting",
|
|
1490
|
+
"Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.": "Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.",
|
|
1491
|
+
"Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.": "Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.",
|
|
1490
1492
|
"User": "User",
|
|
1491
1493
|
"User not found. Please sign in again to continue.": "User not found. Please sign in again to continue.",
|
|
1492
1494
|
"User password changed, please signin again.": "User password changed, please signin again.",
|
package/dist/locale/ru-RU.json
CHANGED
|
@@ -1430,6 +1430,8 @@
|
|
|
1430
1430
|
"Use simple pagination mode": "Использовать простой режим пагинации",
|
|
1431
1431
|
"Use the same time zone (GMT) for all users": "Использовать одну временную зону (GMT) для всех пользователей",
|
|
1432
1432
|
"Used for drag and drop sorting scenarios, supporting grouping sorting": "Используется для сценариев сортировки перетаскиванием, поддерживает групповую сортировку",
|
|
1433
|
+
"Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.": "Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.",
|
|
1434
|
+
"Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.": "Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.",
|
|
1433
1435
|
"User": "Пользователь",
|
|
1434
1436
|
"User not found. Please sign in again to continue.": "Пользователь не найден. Пожалуйста, войдите снова, чтобы продолжить.",
|
|
1435
1437
|
"User password changed, please signin again.": "Пароль пользователя изменен, пожалуйста, войдите снова.",
|
package/dist/locale/tr-TR.json
CHANGED
|
@@ -1431,6 +1431,8 @@
|
|
|
1431
1431
|
"Use simple pagination mode": "Use simple pagination mode",
|
|
1432
1432
|
"Use the same time zone (GMT) for all users": "Tüm kullanıcılar için aynı saat dilimini (GMT) kullanın",
|
|
1433
1433
|
"Used for drag and drop sorting scenarios, supporting grouping sorting": "Used for drag and drop sorting scenarios, supporting grouping sorting",
|
|
1434
|
+
"Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.": "Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.",
|
|
1435
|
+
"Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.": "Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.",
|
|
1434
1436
|
"User": "Kullanıcı",
|
|
1435
1437
|
"User not found. Please sign in again to continue.": "User not found. Please sign in again to continue.",
|
|
1436
1438
|
"User password changed, please signin again.": "User password changed, please signin again.",
|
package/dist/locale/uk-UA.json
CHANGED
|
@@ -1449,6 +1449,8 @@
|
|
|
1449
1449
|
"Use the built-in static file server": "Використовувати вбудований статичний файловий сервер",
|
|
1450
1450
|
"Use the same time zone (GMT) for all users": "Використовувати одну і ту ж часову зону (GMT) для всіх користувачів",
|
|
1451
1451
|
"Used for drag and drop sorting scenarios, supporting grouping sorting": "Used for drag and drop sorting scenarios, supporting grouping sorting",
|
|
1452
|
+
"Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.": "Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.",
|
|
1453
|
+
"Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.": "Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.",
|
|
1452
1454
|
"User": "Користувач",
|
|
1453
1455
|
"User not found. Please sign in again to continue.": "User not found. Please sign in again to continue.",
|
|
1454
1456
|
"User password changed, please signin again.": "User password changed, please signin again.",
|
package/dist/locale/vi-VN.json
CHANGED
|
@@ -1424,6 +1424,8 @@
|
|
|
1424
1424
|
"Use simple pagination mode": "Use simple pagination mode",
|
|
1425
1425
|
"Use the same time zone (GMT) for all users": "Use the same time zone (GMT) for all users",
|
|
1426
1426
|
"Used for drag and drop sorting scenarios, supporting grouping sorting": "Used for drag and drop sorting scenarios, supporting grouping sorting",
|
|
1427
|
+
"Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.": "Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.",
|
|
1428
|
+
"Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.": "Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.",
|
|
1427
1429
|
"User": "Người dùng",
|
|
1428
1430
|
"User not found. Please sign in again to continue.": "User not found. Please sign in again to continue.",
|
|
1429
1431
|
"User password changed, please signin again.": "User password changed, please signin again.",
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -71,8 +71,17 @@
|
|
|
71
71
|
"Add {{type}} after \"{{title}}\"": "在 \"{{title}}\" 前插入{{type}}",
|
|
72
72
|
"Add {{type}} before \"{{title}}\"": "在 \"{{title}}\" 前插入{{type}}",
|
|
73
73
|
"Add {{type}} in \"{{title}}\"": "在 \"{{title}}\" 里插入{{type}}",
|
|
74
|
+
"Advanced": "高级",
|
|
74
75
|
"Advanced type": "高级类型",
|
|
76
|
+
"No available title fields": "无可用标题字段",
|
|
77
|
+
"Please choose a different title field before syncing": "请先选择不同的标题字段再同步",
|
|
78
|
+
"Sync selected title field to collection": "将所选标题字段同步到数据表",
|
|
79
|
+
"Sync title field": "同步标题字段",
|
|
80
|
+
"This will update the collection title field globally. Continue?": "这将全局更新数据表的标题字段。是否继续?",
|
|
75
81
|
"After": "之后",
|
|
82
|
+
"After built-in flow": "指定流之后",
|
|
83
|
+
"After built-in flows": "所有流之后",
|
|
84
|
+
"After built-in flow step": "指定流步骤之后",
|
|
76
85
|
"After change": "变更后",
|
|
77
86
|
"After clicking the custom button, the following field values will be assigned according to the following form.": "点击当前自定义按钮时,以下字段值将按照以下表单赋值。",
|
|
78
87
|
"After clicking the custom button, the following fields of the current record will be saved according to the following form.": "点击当前自定义按钮时,当前数据以下字段将按照以下表单保存。",
|
|
@@ -146,11 +155,16 @@
|
|
|
146
155
|
"Assign data scope for the template": "Assign data scope for the template",
|
|
147
156
|
"Assign field values": "字段赋值",
|
|
148
157
|
"Assign value": "赋值",
|
|
149
|
-
"
|
|
158
|
+
"A pre-filled value. Editable, for new entries only, and won’t affect existing data (including empty values).": "预填值,可修改,仅用于新增,不影响已有数据(含空值)",
|
|
159
|
+
"A system-set value. Read-only.": "系统固定值,只读不可改",
|
|
160
|
+
"Assignment mode": "赋值方式",
|
|
150
161
|
"Associate": "关联",
|
|
162
|
+
"Field values": "字段值",
|
|
163
|
+
"Fixed value": "固定值",
|
|
151
164
|
"Associated records": "关联记录",
|
|
152
165
|
"Association field settings": "关系字段设置",
|
|
153
166
|
"Association fields": "关系字段",
|
|
167
|
+
"Search association fields": "搜索关系字段",
|
|
154
168
|
"Association fields filter": "关系筛选",
|
|
155
169
|
"Association select settings": "关系选择器设置",
|
|
156
170
|
"Association table settings": "关系字段设置",
|
|
@@ -178,6 +192,9 @@
|
|
|
178
192
|
"Basic": "基本类型",
|
|
179
193
|
"Basic configuration": "基础配置",
|
|
180
194
|
"Before": "之前",
|
|
195
|
+
"Before all flows": "所有流之前",
|
|
196
|
+
"Before built-in flow": "指定流之前",
|
|
197
|
+
"Before built-in flow step": "指定流步骤之前",
|
|
181
198
|
"Before change": "变更前",
|
|
182
199
|
"Before render": "渲染前",
|
|
183
200
|
"Blank block": "空区块",
|
|
@@ -196,6 +213,8 @@
|
|
|
196
213
|
"Bottom left": "左下角",
|
|
197
214
|
"Bottom right": "右下角",
|
|
198
215
|
"Built-in": "内置",
|
|
216
|
+
"Built-in flow": "指定流",
|
|
217
|
+
"Built-in flow step": "指定流步骤",
|
|
199
218
|
"Bulk edit": "批量编辑",
|
|
200
219
|
"Bulk enable": "批量激活",
|
|
201
220
|
"Bulk update": "批量更新",
|
|
@@ -203,6 +222,7 @@
|
|
|
203
222
|
"Button icon": "按钮图标",
|
|
204
223
|
"Button settings": "按钮设置",
|
|
205
224
|
"Button title": "按钮标题",
|
|
225
|
+
"Button tooltip": "按钮提示信息",
|
|
206
226
|
"Button type": "按钮类型",
|
|
207
227
|
"Calculation engine": "计算引擎",
|
|
208
228
|
"Calendar": "日历",
|
|
@@ -213,9 +233,9 @@
|
|
|
213
233
|
"Cancel": "取消",
|
|
214
234
|
"Cannot find the model instance with UID": "找不到对应 UID 的模型实例",
|
|
215
235
|
"Card settings": "卡片设置",
|
|
216
|
-
"
|
|
217
|
-
"
|
|
218
|
-
"
|
|
236
|
+
"Cascader Select": "级联选择",
|
|
237
|
+
"Cascader select": "级联选择",
|
|
238
|
+
"Cascader select settings": "级联选择设置",
|
|
219
239
|
"Categories": "数据表类别",
|
|
220
240
|
"Category name": "分类名称",
|
|
221
241
|
"Center": "居中",
|
|
@@ -337,6 +357,7 @@
|
|
|
337
357
|
"Current device type": "当前设备类型",
|
|
338
358
|
"Current form": "当前表单",
|
|
339
359
|
"Current object": "当前对象",
|
|
360
|
+
"Current item": "当前项",
|
|
340
361
|
"Current popup": "当前弹窗",
|
|
341
362
|
"Current popup parent record": "当前弹窗上级记录",
|
|
342
363
|
"Current popup record": "当前弹窗记录",
|
|
@@ -549,6 +570,7 @@
|
|
|
549
570
|
"Enter collection name": "输入数据表名称",
|
|
550
571
|
"Enter end accessor": "输入结束访问器",
|
|
551
572
|
"Enter field title": "输入字段标题",
|
|
573
|
+
"Enter flow title": "输入流标题",
|
|
552
574
|
"Enter number of rows to display": "请输入显示行数",
|
|
553
575
|
"Enter page title": "输入页面标题",
|
|
554
576
|
"Enter placeholder text": "输入占位符文本",
|
|
@@ -563,6 +585,9 @@
|
|
|
563
585
|
"Exact day": "指定日期",
|
|
564
586
|
"Execute": "执行",
|
|
565
587
|
"Execute JavaScript": "执行 JavaScript",
|
|
588
|
+
"Execution succeeded": "执行成功",
|
|
589
|
+
"Execution timed out": "执行超时",
|
|
590
|
+
"Execution timing": "执行时机",
|
|
566
591
|
"Exists": "存在",
|
|
567
592
|
"Exit fullscreen": "退出全屏",
|
|
568
593
|
"Expand All": "展开全部",
|
|
@@ -580,6 +605,7 @@
|
|
|
580
605
|
"Feedback": "反馈问题",
|
|
581
606
|
"Field": "字段",
|
|
582
607
|
"Field Linkage rules": "字段联动规则",
|
|
608
|
+
"Assignment takes precedence over form field assignment": "赋值优先级高于表单字段赋值",
|
|
583
609
|
"Field assignment": "字段赋值",
|
|
584
610
|
"Field component": "字段组件",
|
|
585
611
|
"Field display name": "字段名称",
|
|
@@ -637,6 +663,7 @@
|
|
|
637
663
|
"Form field assignment": "表单字段赋值",
|
|
638
664
|
"Form item settings": "表单项设置",
|
|
639
665
|
"Form settings": "表单设置",
|
|
666
|
+
"Form block settings": "表单区块设置",
|
|
640
667
|
"Form values": "表单值",
|
|
641
668
|
"Form values change": "表单值变更",
|
|
642
669
|
"Form variable": "表单变量",
|
|
@@ -702,6 +729,8 @@
|
|
|
702
729
|
"In configuration mode, the entire column becomes transparent. In non-configuration mode, the entire column will be hidden. Even if the entire column is hidden, its configured default values and other settings will still take effect.": "在配置模式下,整个列会变为透明色。在非配置模式下,整个列将被隐藏。即使整个列被隐藏了,其配置的默认值和其他设置仍然有效。",
|
|
703
730
|
"Incomplete uploading files need to be resolved": "未完成上传的文件需要处理",
|
|
704
731
|
"Index": "索引",
|
|
732
|
+
"Index (starts from 0)": "索引(从0开始)",
|
|
733
|
+
"Attributes": "属性",
|
|
705
734
|
"Individual": "单独配置",
|
|
706
735
|
"Inherited fields": "继承字段",
|
|
707
736
|
"Inherited template": "继承模板",
|
|
@@ -776,6 +805,7 @@
|
|
|
776
805
|
"Log in with an existing account": "使用已有账号登录",
|
|
777
806
|
"Logging and monitoring": "日志与监控",
|
|
778
807
|
"Logo": "Logo",
|
|
808
|
+
"Logs": "日志",
|
|
779
809
|
"Long text": "多行文本",
|
|
780
810
|
"MATHJS_DOC_URL": "https://v2.docs.nocobase.com/cn/calculation-engine/math",
|
|
781
811
|
"Magenta": "法式洋红",
|
|
@@ -866,9 +896,11 @@
|
|
|
866
896
|
"No configuration available.": "无可配置项。",
|
|
867
897
|
"No data": "暂无数据",
|
|
868
898
|
"No event flows": "暂无事件流",
|
|
899
|
+
"No built-in flows for this event": "当前事件暂无可插入的指定流",
|
|
869
900
|
"No form available for reset.": "没有可用的表单进行重置。",
|
|
870
901
|
"No form available for submission.": "没有可用的表单进行提交。",
|
|
871
902
|
"No linkage rules": "暂无联动规则",
|
|
903
|
+
"No logs yet. Click Run to execute.": "暂无日志。点击“运行”执行。",
|
|
872
904
|
"No pages yet, please configure first": "暂无页面,请先配置",
|
|
873
905
|
"A 53-bit Snowflake ID designed to be compatible with JavaScript’s safe integer range, providing both time-ordering and uniqueness.": "一种为兼容 JavaScript 安全整数范围而设计的 53 位 Snowflake ID,兼具时间有序性与唯一性。",
|
|
874
906
|
"No parent popup": "无上级弹窗",
|
|
@@ -954,6 +986,7 @@
|
|
|
954
986
|
"Parent": "父记录",
|
|
955
987
|
"Parent ID": "父记录ID",
|
|
956
988
|
"Parent collection fields": "父表字段",
|
|
989
|
+
"Parent item": "上级项",
|
|
957
990
|
"Parent object": "上级对象",
|
|
958
991
|
"Parent popup": "上级弹窗",
|
|
959
992
|
"Parent popup record": "上级弹窗记录",
|
|
@@ -983,6 +1016,7 @@
|
|
|
983
1016
|
"Placeholder": "占位符",
|
|
984
1017
|
"Placement": "弹出位置",
|
|
985
1018
|
"Please add a data block on the page first": "请先在页面中添加一个数据区块",
|
|
1019
|
+
"Please add record": "请添加数据",
|
|
986
1020
|
"Please add or select record": "请添加或选择数据",
|
|
987
1021
|
"Please configure the URL": "请配置URL",
|
|
988
1022
|
"Please configure the duplicate fields": "请配置要复制的字段",
|
|
@@ -999,6 +1033,12 @@
|
|
|
999
1033
|
"Please input target block uid": "请输入目标区块 UID",
|
|
1000
1034
|
"Please input target form uid": "请输入目标表单 UID",
|
|
1001
1035
|
"Please select": "请选择",
|
|
1036
|
+
"Please select record": "请选择数据",
|
|
1037
|
+
"Used for display in the dropdown and selected tags.": "用于下拉选项与已选标签的显示。",
|
|
1038
|
+
"Stored as the field value for filtering (usually the primary key).": "作为筛选条件的字段值保存(通常为主键)。",
|
|
1039
|
+
"Value field": "值字段",
|
|
1040
|
+
"Please select a built-in flow": "请选择指定流",
|
|
1041
|
+
"Please select a built-in flow step": "请选择指定流步骤",
|
|
1002
1042
|
"Please select field": "请选择字段",
|
|
1003
1043
|
"Please select fields": "请选择字段",
|
|
1004
1044
|
"Please select fields to filter": "请选择需要筛选的字段",
|
|
@@ -1069,6 +1109,7 @@
|
|
|
1069
1109
|
"Record ID": "数据 ID",
|
|
1070
1110
|
"Record deleted successfully": "记录删除成功",
|
|
1071
1111
|
"Record picker": "数据选择器",
|
|
1112
|
+
"Record select": "关联记录",
|
|
1072
1113
|
"Record unique key": "记录唯一标识符",
|
|
1073
1114
|
"RecordPicker settings": "数据选择器设置",
|
|
1074
1115
|
"Records can be sorted": "可以对行记录进行排序",
|
|
@@ -1128,6 +1169,8 @@
|
|
|
1128
1169
|
"Routes": "路由",
|
|
1129
1170
|
"Row click": "行点击",
|
|
1130
1171
|
"Rows": "行",
|
|
1172
|
+
"Run": "运行",
|
|
1173
|
+
"Run preview failed": "预览运行失败",
|
|
1131
1174
|
"SQL collection": "SQL数据表",
|
|
1132
1175
|
"Save": "保存",
|
|
1133
1176
|
"Save action": "保存操作",
|
|
@@ -1153,10 +1196,13 @@
|
|
|
1153
1196
|
"Search parameters": "URL 查询参数",
|
|
1154
1197
|
"Search plugin": "搜索插件",
|
|
1155
1198
|
"Search plugin...": "搜索插件...",
|
|
1199
|
+
"Search snippets (name / prefix / body / group)": "搜索代码片段(名称 / 前缀 / 内容 / 分组)",
|
|
1156
1200
|
"Second": "秒",
|
|
1157
1201
|
"Secondary confirmation": "二次确认",
|
|
1158
1202
|
"Security": "安全性",
|
|
1159
1203
|
"Select": "选择",
|
|
1204
|
+
"Select a built-in flow": "选择指定流",
|
|
1205
|
+
"Select a built-in flow step": "选择指定流步骤",
|
|
1160
1206
|
"Select a source field to use metadata of the field": "选择源字段以使用字段的元数据",
|
|
1161
1207
|
"Select a variable": "选择变量",
|
|
1162
1208
|
"Select all": "全选",
|
|
@@ -1205,6 +1251,7 @@
|
|
|
1205
1251
|
"Set field value": "设置字段值",
|
|
1206
1252
|
"Set form field state": "设置表单字段状态",
|
|
1207
1253
|
"Set form field value": "设置表单字段值",
|
|
1254
|
+
"This setting has been moved to": "该配置项已经移至",
|
|
1208
1255
|
"Set state": "设置状态",
|
|
1209
1256
|
"Set the count of columns displayed in a row": "设置一行展示的列数",
|
|
1210
1257
|
"Set the data scope": "设置数据范围",
|
|
@@ -1239,6 +1286,7 @@
|
|
|
1239
1286
|
"Skip getting the total number of table records during paging to speed up loading. It is recommended to enable this option for data tables with a large amount of data": "在分页时跳过获取表记录总数,以加快加载速度,建议对有大量数据的数据表开启此选项",
|
|
1240
1287
|
"Skip required validation": "跳过必填校验",
|
|
1241
1288
|
"Small": "较窄",
|
|
1289
|
+
"Snippets": "代码片段",
|
|
1242
1290
|
"Snowflake ID (53-bit)": "Snowflake ID (53-bit)",
|
|
1243
1291
|
"SmartTv": "智能电视",
|
|
1244
1292
|
"Some files are not uploaded correctly, please check.": "部分文件未上传成功,请检查。",
|
|
@@ -1383,6 +1431,7 @@
|
|
|
1383
1431
|
"Tooltip": "提示",
|
|
1384
1432
|
"Top left": "左上角",
|
|
1385
1433
|
"Top right": "右上角",
|
|
1434
|
+
"Total count": "总数量",
|
|
1386
1435
|
"Total {{count}} items": "总共 {{count}} 条",
|
|
1387
1436
|
"Tree collection": "树结构表",
|
|
1388
1437
|
"Tree table": "树表格",
|
|
@@ -1406,6 +1455,7 @@
|
|
|
1406
1455
|
"Unique": "不允许重复",
|
|
1407
1456
|
"Unit conversion": "单位换算",
|
|
1408
1457
|
"Unix Timestamp": "Unix 时间戳",
|
|
1458
|
+
"Unknown error": "未知错误",
|
|
1409
1459
|
"Unknown field type": "未知字段类型",
|
|
1410
1460
|
"Unnamed": "未命名",
|
|
1411
1461
|
"Unpinned": "取消固定",
|
|
@@ -1427,9 +1477,12 @@
|
|
|
1427
1477
|
"Upload new version": "上传新版",
|
|
1428
1478
|
"Upload plugin": "上传插件",
|
|
1429
1479
|
"Uploading": "上传中",
|
|
1480
|
+
"Use return to output value": "使用 return 输出值",
|
|
1430
1481
|
"Use simple pagination mode": "使用简单分页模式",
|
|
1431
1482
|
"Use the same time zone (GMT) for all users": "所有用户使用同一时区 (格林尼治标准时间)",
|
|
1432
1483
|
"Used for drag and drop sorting scenarios, supporting grouping sorting": "用于拖拽排序场景,支持分组排序",
|
|
1484
|
+
"Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.": "当前标签页激活时作为浏览器页签标题。支持变量。留空时使用标签名称。",
|
|
1485
|
+
"Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.": "未启用标签页时作为浏览器页签标题。支持变量。留空时使用页面标题。",
|
|
1433
1486
|
"User": "用户",
|
|
1434
1487
|
"User not found. Please sign in again to continue.": "无法找到用户信息,请重新登录以继续。",
|
|
1435
1488
|
"User password changed, please signin again.": "用户密码已更改,请重新登录。",
|
|
@@ -1563,9 +1616,27 @@
|
|
|
1563
1616
|
"The field is hidden and only visible when the UI Editor is active": "当前字段已被隐藏,仅配置状态下显示",
|
|
1564
1617
|
"Destroy": "删除",
|
|
1565
1618
|
"The current storage \"{{storageName}}\" does not support file uploads.": "当前存储 \"{{storageName}}\" 不支持上传文件。",
|
|
1566
|
-
"File type is not supported for previewing,": "文件类型不支持预览,",
|
|
1567
|
-
"download it to preview": "请下载后预览",
|
|
1568
1619
|
"Your browser does not support the video tag.": "您的浏览器不支持视频标签。",
|
|
1569
1620
|
"Your browser does not support the audio tag.": "您的浏览器不支持音频标签。",
|
|
1570
|
-
"Edit
|
|
1621
|
+
"Edit add new popup": "编辑新增数据弹窗",
|
|
1622
|
+
"Edit select record popup": "编辑选择数据弹窗",
|
|
1623
|
+
"Subtable (Inline editing)": "子表格(行内编辑)",
|
|
1624
|
+
"Subtable (Popup editing)": "子表格(弹窗编辑)",
|
|
1625
|
+
"No permission to add new": "没有添加权限",
|
|
1626
|
+
"Popup select": "弹窗选择",
|
|
1627
|
+
"File picker": "文件选择",
|
|
1628
|
+
"Cascader": "级联选择",
|
|
1629
|
+
"Subform":"子表单",
|
|
1630
|
+
"Edit popup (Add new)":"编辑弹窗(添加)",
|
|
1631
|
+
"Are you sure you want to remove it?":"你确定要移除吗?",
|
|
1632
|
+
"Create record":"创建记录",
|
|
1633
|
+
"Duplicate record":"复制记录",
|
|
1634
|
+
"Are you sure you want to duplicate it?":"你确定要复制吗?",
|
|
1635
|
+
"Edit page": "编辑页面",
|
|
1636
|
+
"Page title": "页面标题",
|
|
1637
|
+
"Document title": "文档标题",
|
|
1638
|
+
"Edit popup (Select record)":"编辑弹窗(选择纪录)",
|
|
1639
|
+
"Remove record":"移除记录",
|
|
1640
|
+
"Block height":"区块高度",
|
|
1641
|
+
"Height": "高度"
|
|
1571
1642
|
}
|
package/dist/locale/zh-TW.json
CHANGED
|
@@ -565,6 +565,8 @@
|
|
|
565
565
|
"Exact day": "Exact day",
|
|
566
566
|
"Execute": "執行",
|
|
567
567
|
"Execute JavaScript": "Execute JavaScript",
|
|
568
|
+
"Execution succeeded": "執行成功",
|
|
569
|
+
"Execution timed out": "執行逾時",
|
|
568
570
|
"Exists": "存在",
|
|
569
571
|
"Expand All": "展開全部",
|
|
570
572
|
"Expand all": "全部展開",
|
|
@@ -775,6 +777,7 @@
|
|
|
775
777
|
"Log in with an existing account": "使用已有帳號登入",
|
|
776
778
|
"Logging and monitoring": "Logging and monitoring",
|
|
777
779
|
"Logo": "Logo",
|
|
780
|
+
"Logs": "日誌",
|
|
778
781
|
"Long text": "多行文字",
|
|
779
782
|
"MATHJS_DOC_URL": "https://v2.docs.nocobase.com/cn/calculation-engine/math",
|
|
780
783
|
"Magenta": "法式洋紅",
|
|
@@ -870,6 +873,7 @@
|
|
|
870
873
|
"No form available for reset.": "No form available for reset.",
|
|
871
874
|
"No form available for submission.": "No form available for submission.",
|
|
872
875
|
"No linkage rules": "No linkage rules",
|
|
876
|
+
"No logs yet. Click Run to execute.": "尚無日誌。點擊“執行”以執行。",
|
|
873
877
|
"No pages yet, please configure first": "尚未配置頁面,請先配置",
|
|
874
878
|
"No parent popup": "No parent popup",
|
|
875
879
|
"No records selected for bulk edit": "No records selected for bulk edit",
|
|
@@ -1127,6 +1131,8 @@
|
|
|
1127
1131
|
"Routes": "路由",
|
|
1128
1132
|
"Row click": "Row click",
|
|
1129
1133
|
"Rows": "Rows",
|
|
1134
|
+
"Run": "執行",
|
|
1135
|
+
"Run preview failed": "預覽執行失敗",
|
|
1130
1136
|
"SQL collection": "SQL資料表",
|
|
1131
1137
|
"Save": "儲存",
|
|
1132
1138
|
"Save action": "儲存動作",
|
|
@@ -1152,6 +1158,7 @@
|
|
|
1152
1158
|
"Search parameters": "Search parameters",
|
|
1153
1159
|
"Search plugin": "搜尋插件",
|
|
1154
1160
|
"Search plugin...": "Search plugin...",
|
|
1161
|
+
"Search snippets (name / prefix / body / group)": "搜尋程式碼片段(名稱 / 前綴 / 內容 / 分組)",
|
|
1155
1162
|
"Second": "Second",
|
|
1156
1163
|
"Secondary confirmation": "再次確認",
|
|
1157
1164
|
"Security": "Security",
|
|
@@ -1237,6 +1244,7 @@
|
|
|
1237
1244
|
"Skip getting the total number of table records during paging to speed up loading. It is recommended to enable this option for data tables with a large amount of data": "Skip getting the total number of table records during paging to speed up loading. It is recommended to enable this option for data tables with a large amount of data",
|
|
1238
1245
|
"Skip required validation": "跳過必填檢驗",
|
|
1239
1246
|
"Small": "較窄",
|
|
1247
|
+
"Snippets": "程式碼片段",
|
|
1240
1248
|
"SmartTv": "SmartTv",
|
|
1241
1249
|
"Some files are not uploaded correctly, please check.": "Some files are not uploaded correctly, please check.",
|
|
1242
1250
|
"Sorry, the page you visited does not exist.": "抱歉,你訪問的頁面不存在。",
|
|
@@ -1404,6 +1412,7 @@
|
|
|
1404
1412
|
"Unique": "不允許重複",
|
|
1405
1413
|
"Unit conversion": "Unit conversion",
|
|
1406
1414
|
"Unix Timestamp": "Unix Timestamp",
|
|
1415
|
+
"Unknown error": "未知錯誤",
|
|
1407
1416
|
"Unknown field type": "Unknown field type",
|
|
1408
1417
|
"Unnamed": "未命名",
|
|
1409
1418
|
"Unpinned": "取消固定",
|
|
@@ -1425,9 +1434,12 @@
|
|
|
1425
1434
|
"Upload new version": "上傳新版",
|
|
1426
1435
|
"Upload plugin": "上傳插件",
|
|
1427
1436
|
"Uploading": "Uploading",
|
|
1437
|
+
"Use return to output value": "使用 return 輸出值",
|
|
1428
1438
|
"Use simple pagination mode": "Use simple pagination mode",
|
|
1429
1439
|
"Use the same time zone (GMT) for all users": "所有使用者使用同一時區 (格林尼治標準時間)",
|
|
1430
1440
|
"Used for drag and drop sorting scenarios, supporting grouping sorting": "Used for drag and drop sorting scenarios, supporting grouping sorting",
|
|
1441
|
+
"Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.": "Used as the browser tab title when this tab is active. Supports variables. Leave empty to use Tab name.",
|
|
1442
|
+
"Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.": "Used as the browser tab title when tabs are disabled. Supports variables. Leave empty to use Page title.",
|
|
1431
1443
|
"User": "使用者",
|
|
1432
1444
|
"User not found. Please sign in again to continue.": "User not found. Please sign in again to continue.",
|
|
1433
1445
|
"User password changed, please signin again.": "User password changed, please signin again.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"cronstrue","title":"cRonstrue","version":"2.47.0","description":"Convert cron expressions into human readable descriptions","author":"Brady Holt","license":"MIT","bugs":{"url":"https://github.com/bradymholt/cronstrue/issues"},"homepage":"https://github.com/bradymholt/cronstrue","keywords":["cron","cronjob","crontab","schedule","parser","cron expression","cron description","pretty cron","cron for humans","cron translated","cron english","cron schedule","cron english","cron schedule"],"main":"dist/cronstrue.js","bin":{"cronstrue":"bin/cli.js"},"typings":"dist/cronstrue.d.ts","files":["dist/","locales/","i18n.js","i18n.d.ts"],"repository":{"type":"git","url":"git+https://github.com/bradymholt/cronstrue.git"},"publishConfig":{"access":"public"},"prettier":{"printWidth":120},"devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^8.0.0","chai":"^4.2.0","handlebars":"^4.7.6","marked":"^4.0.10","mocha":"^10.1.0","pixl-xml":"^1.0.13","prettier":"^2.1.1","terser-webpack-plugin":"^5.3.1","ts-loader":"^9.2.6","ts-node":"^10.5.0","typescript":"^4.6.2","webpack":"^5.69.1","webpack-cli":"^4.9.2","xml2js":"^0.5.0"},"scripts":{"start":"npm run build","build":"npx tsc -p ./src --emitDeclarationOnly","test":"npx mocha --reporter spec --require ts-node/register \"./test/**/*.ts\"","prepublishOnly":"rm -rf ./dist && ./node_modules/webpack-cli/bin/cli.js && git add -A"},"dependencies":{},"_lastModified":"
|
|
1
|
+
{"name":"cronstrue","title":"cRonstrue","version":"2.47.0","description":"Convert cron expressions into human readable descriptions","author":"Brady Holt","license":"MIT","bugs":{"url":"https://github.com/bradymholt/cronstrue/issues"},"homepage":"https://github.com/bradymholt/cronstrue","keywords":["cron","cronjob","crontab","schedule","parser","cron expression","cron description","pretty cron","cron for humans","cron translated","cron english","cron schedule","cron english","cron schedule"],"main":"dist/cronstrue.js","bin":{"cronstrue":"bin/cli.js"},"typings":"dist/cronstrue.d.ts","files":["dist/","locales/","i18n.js","i18n.d.ts"],"repository":{"type":"git","url":"git+https://github.com/bradymholt/cronstrue.git"},"publishConfig":{"access":"public"},"prettier":{"printWidth":120},"devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^8.0.0","chai":"^4.2.0","handlebars":"^4.7.6","marked":"^4.0.10","mocha":"^10.1.0","pixl-xml":"^1.0.13","prettier":"^2.1.1","terser-webpack-plugin":"^5.3.1","ts-loader":"^9.2.6","ts-node":"^10.5.0","typescript":"^4.6.2","webpack":"^5.69.1","webpack-cli":"^4.9.2","xml2js":"^0.5.0"},"scripts":{"start":"npm run build","build":"npx tsc -p ./src --emitDeclarationOnly","test":"npx mocha --reporter spec --require ts-node/register \"./test/**/*.ts\"","prepublishOnly":"rm -rf ./dist && ./node_modules/webpack-cli/bin/cli.js && git add -A"},"dependencies":{},"_lastModified":"2026-02-14T17:43:18.328Z"}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"description": "Provides a client interface for the NocoBase server",
|
|
7
7
|
"description.ru-RU": "Предоставляет клиентский интерфейс для сервера NocoBase",
|
|
8
8
|
"description.zh-CN": "为 NocoBase 服务端提供客户端界面",
|
|
9
|
-
"version": "2.1.0-alpha.
|
|
9
|
+
"version": "2.1.0-alpha.2",
|
|
10
10
|
"main": "./dist/server/index.js",
|
|
11
11
|
"license": "AGPL-3.0",
|
|
12
12
|
"devDependencies": {
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"@nocobase/test": "2.x",
|
|
24
24
|
"@nocobase/utils": "2.x"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "01afd1b928c72c072947533fb12a61b06e45c985"
|
|
27
27
|
}
|