@yongdall/file 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,7 +32,7 @@ var FileCabinet_default = createModel("fileCabinet", {
32
32
  type: "model",
33
33
  name: "database",
34
34
  value: "name",
35
- filter: "type=rdb"
35
+ filter: "type=fs"
36
36
  },
37
37
  layout: { colSpan: 4 }
38
38
  }),
@@ -107,4 +107,4 @@ var FileCabinet_default = createModel("fileCabinet", {
107
107
 
108
108
  //#endregion
109
109
  export { FileCabinet_default as t };
110
- //# sourceMappingURL=file-rQo6J1mo.mjs.map
110
+ //# sourceMappingURL=file-DvQI1qkl.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-DvQI1qkl.mjs","names":[],"sources":["../../plugins/file/models/FileCabinet.mjs"],"sourcesContent":["import { createField, createModel, now, uuid } from '@yongdall/model';\n\nexport default createModel('fileCabinet', {\n\tlabel: createField('string', { nullable: false, default: '', no: 1, label: '名称', layout: { colSpan: 12 } }),\n\tmode: createField('string', {\n\t\tdefault: 'map', nullable: false, immutable: true, no: 2, label: '模式', renderer: {\n\t\t\tcomponent: 'select', values: [\n\t\t\t\t{ value: 'map', label: '映射' },\n\t\t\t\t// {value: 'archive', label: '归档'},\n\t\t\t]\n\t\t}\n\t}),\n\n\tstoreId: createField('string', { nullable: false, no: 3, label: '存储单元', renderer: { component: 'select', type: 'model', name: 'database', value: 'name', filter: 'type=fs' }, layout: { colSpan: 4 } }),\n\tstorePath: createField('string', { nullable: false, default: '', no: 4, label: '根路径', layout: { colSpan: 4 } }),\n\tuploadPath: createField('string', { nullable: false, default: '', no: 5, label: '上传路径', layout: { colSpan: 4 } }),\n\n\tid: createField('string', { nullable: false, no: 7, default: uuid, label: '#', renderer: 'string', layout: { colSpan: 12 }, primary: 1 }),\n\n\n\n\tcreatedAt: createField('timestamp', { nullable: false, creating: now, no: 8, label: '创建时间' }),\n\tupdatedAt: createField('timestamp', { nullable: false, updating: now, no: 9, label: '更新时间' }),\n\n\n\n\tpublic: createField('bool', { nullable: false, default: true, no: 6, label: '是否公开', layout: { colSpan: 4 } }),\n\n\n\n\tdescription: createField('text', { nullable: false, default: '', no: 10, label: '描述' }),\n}, {\n\tlabel: '文件柜',\n\tlabelField: 'label',\n\tpermissions: [\n\t\t{ fields: ['id', 'label'], authorizations: ['options'] },\n\t\t{ permission: 'system:fileCabinet', fields: '*', authorizations: ['query', 'read', 'create', 'update', 'destroy', 'add', 'remove'] },\n\t],\n});\n"],"mappings":";;;AAEA,0BAAe,YAAY,eAAe;CACzC,OAAO,YAAY,UAAU;EAAE,UAAU;EAAO,SAAS;EAAI,IAAI;EAAG,OAAO;EAAM,QAAQ,EAAE,SAAS,IAAI;EAAE,CAAC;CAC3G,MAAM,YAAY,UAAU;EAC3B,SAAS;EAAO,UAAU;EAAO,WAAW;EAAM,IAAI;EAAG,OAAO;EAAM,UAAU;GAC/E,WAAW;GAAU,QAAQ,CAC5B;IAAE,OAAO;IAAO,OAAO;IAAM,CAE7B;GACD;EACD,CAAC;CAEF,SAAS,YAAY,UAAU;EAAE,UAAU;EAAO,IAAI;EAAG,OAAO;EAAQ,UAAU;GAAE,WAAW;GAAU,MAAM;GAAS,MAAM;GAAY,OAAO;GAAQ,QAAQ;GAAW;EAAE,QAAQ,EAAE,SAAS,GAAG;EAAE,CAAC;CACvM,WAAW,YAAY,UAAU;EAAE,UAAU;EAAO,SAAS;EAAI,IAAI;EAAG,OAAO;EAAO,QAAQ,EAAE,SAAS,GAAG;EAAE,CAAC;CAC/G,YAAY,YAAY,UAAU;EAAE,UAAU;EAAO,SAAS;EAAI,IAAI;EAAG,OAAO;EAAQ,QAAQ,EAAE,SAAS,GAAG;EAAE,CAAC;CAEjH,IAAI,YAAY,UAAU;EAAE,UAAU;EAAO,IAAI;EAAG,SAAS;EAAM,OAAO;EAAK,UAAU;EAAU,QAAQ,EAAE,SAAS,IAAI;EAAE,SAAS;EAAG,CAAC;CAIzI,WAAW,YAAY,aAAa;EAAE,UAAU;EAAO,UAAU;EAAK,IAAI;EAAG,OAAO;EAAQ,CAAC;CAC7F,WAAW,YAAY,aAAa;EAAE,UAAU;EAAO,UAAU;EAAK,IAAI;EAAG,OAAO;EAAQ,CAAC;CAI7F,QAAQ,YAAY,QAAQ;EAAE,UAAU;EAAO,SAAS;EAAM,IAAI;EAAG,OAAO;EAAQ,QAAQ,EAAE,SAAS,GAAG;EAAE,CAAC;CAI7G,aAAa,YAAY,QAAQ;EAAE,UAAU;EAAO,SAAS;EAAI,IAAI;EAAI,OAAO;EAAM,CAAC;CACvF,EAAE;CACF,OAAO;CACP,YAAY;CACZ,aAAa,CACZ;EAAE,QAAQ,CAAC,MAAM,QAAQ;EAAE,gBAAgB,CAAC,UAAU;EAAE,EACxD;EAAE,YAAY;EAAsB,QAAQ;EAAK,gBAAgB;GAAC;GAAS;GAAQ;GAAU;GAAU;GAAW;GAAO;GAAS;EAAE,CACpI;CACD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { t as FileCabinet_default } from "./file-rQo6J1mo.mjs";
1
+ import { t as FileCabinet_default } from "./file-DvQI1qkl.mjs";
2
2
 
3
3
  //#region plugins/file/hooks.yongdall.mjs
4
4
  /** @import { Hooks } from '@yongdall/core' */
package/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { t as FileCabinet_default } from "./file-rQo6J1mo.mjs";
1
+ import { t as FileCabinet_default } from "./file-DvQI1qkl.mjs";
2
2
 
3
3
  export { FileCabinet_default as FileCabinet };
package/package.json CHANGED
@@ -6,21 +6,21 @@
6
6
  ".": "./index.mjs",
7
7
  "./assets": "./assets/index.mjs"
8
8
  },
9
- "version": "0.1.0",
9
+ "version": "0.2.0",
10
10
  "description": "",
11
11
  "keywords": [],
12
12
  "author": "",
13
13
  "license": "ISC",
14
14
  "dependencies": {
15
- "@yongdall/core": "^0.1.0",
16
- "@yongdall/connection": "^0.1.0",
17
- "@yongdall/model": "^0.1.0",
18
- "@yongdall/http": "^0.1.0"
15
+ "@yongdall/core": "^0.2.0",
16
+ "@yongdall/connection": "^0.2.0",
17
+ "@yongdall/model": "^0.2.0",
18
+ "@yongdall/http": "^0.2.0"
19
19
  },
20
20
  "devDependencies": {
21
- "@yongdall/web": "^0.1.0"
21
+ "@yongdall/web": "^0.2.0"
22
22
  },
23
23
  "peerDependencies": {
24
- "@yongdall/web": "^0.1.0"
24
+ "@yongdall/web": "^0.2.0"
25
25
  }
26
26
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-rQo6J1mo.mjs","names":[],"sources":["../../plugins/file/models/FileCabinet.mjs"],"sourcesContent":["import { createField, createModel, now, uuid } from '@yongdall/model';\n\nexport default createModel('fileCabinet', {\n\tlabel: createField('string', { nullable: false, default: '', no: 1, label: '名称', layout: { colSpan: 12 } }),\n\tmode: createField('string', {\n\t\tdefault: 'map', nullable: false, immutable: true, no: 2, label: '模式', renderer: {\n\t\t\tcomponent: 'select', values: [\n\t\t\t\t{ value: 'map', label: '映射' },\n\t\t\t\t// {value: 'archive', label: '归档'},\n\t\t\t]\n\t\t}\n\t}),\n\n\tstoreId: createField('string', { nullable: false, no: 3, label: '存储单元', renderer: { component: 'select', type: 'model', name: 'database', value: 'name', filter: 'type=rdb' }, layout: { colSpan: 4 } }),\n\tstorePath: createField('string', { nullable: false, default: '', no: 4, label: '根路径', layout: { colSpan: 4 } }),\n\tuploadPath: createField('string', { nullable: false, default: '', no: 5, label: '上传路径', layout: { colSpan: 4 } }),\n\n\tid: createField('string', { nullable: false, no: 7, default: uuid, label: '#', renderer: 'string', layout: { colSpan: 12 }, primary: 1 }),\n\n\n\n\tcreatedAt: createField('timestamp', { nullable: false, creating: now, no: 8, label: '创建时间' }),\n\tupdatedAt: createField('timestamp', { nullable: false, updating: now, no: 9, label: '更新时间' }),\n\n\n\n\tpublic: createField('bool', { nullable: false, default: true, no: 6, label: '是否公开', layout: { colSpan: 4 } }),\n\n\n\n\tdescription: createField('text', { nullable: false, default: '', no: 10, label: '描述' }),\n}, {\n\tlabel: '文件柜',\n\tlabelField: 'label',\n\tpermissions: [\n\t\t{ fields: ['id', 'label'], authorizations: ['options'] },\n\t\t{ permission: 'system:fileCabinet', fields: '*', authorizations: ['query', 'read', 'create', 'update', 'destroy', 'add', 'remove'] },\n\t],\n});\n"],"mappings":";;;AAEA,0BAAe,YAAY,eAAe;CACzC,OAAO,YAAY,UAAU;EAAE,UAAU;EAAO,SAAS;EAAI,IAAI;EAAG,OAAO;EAAM,QAAQ,EAAE,SAAS,IAAI;EAAE,CAAC;CAC3G,MAAM,YAAY,UAAU;EAC3B,SAAS;EAAO,UAAU;EAAO,WAAW;EAAM,IAAI;EAAG,OAAO;EAAM,UAAU;GAC/E,WAAW;GAAU,QAAQ,CAC5B;IAAE,OAAO;IAAO,OAAO;IAAM,CAE7B;GACD;EACD,CAAC;CAEF,SAAS,YAAY,UAAU;EAAE,UAAU;EAAO,IAAI;EAAG,OAAO;EAAQ,UAAU;GAAE,WAAW;GAAU,MAAM;GAAS,MAAM;GAAY,OAAO;GAAQ,QAAQ;GAAY;EAAE,QAAQ,EAAE,SAAS,GAAG;EAAE,CAAC;CACxM,WAAW,YAAY,UAAU;EAAE,UAAU;EAAO,SAAS;EAAI,IAAI;EAAG,OAAO;EAAO,QAAQ,EAAE,SAAS,GAAG;EAAE,CAAC;CAC/G,YAAY,YAAY,UAAU;EAAE,UAAU;EAAO,SAAS;EAAI,IAAI;EAAG,OAAO;EAAQ,QAAQ,EAAE,SAAS,GAAG;EAAE,CAAC;CAEjH,IAAI,YAAY,UAAU;EAAE,UAAU;EAAO,IAAI;EAAG,SAAS;EAAM,OAAO;EAAK,UAAU;EAAU,QAAQ,EAAE,SAAS,IAAI;EAAE,SAAS;EAAG,CAAC;CAIzI,WAAW,YAAY,aAAa;EAAE,UAAU;EAAO,UAAU;EAAK,IAAI;EAAG,OAAO;EAAQ,CAAC;CAC7F,WAAW,YAAY,aAAa;EAAE,UAAU;EAAO,UAAU;EAAK,IAAI;EAAG,OAAO;EAAQ,CAAC;CAI7F,QAAQ,YAAY,QAAQ;EAAE,UAAU;EAAO,SAAS;EAAM,IAAI;EAAG,OAAO;EAAQ,QAAQ,EAAE,SAAS,GAAG;EAAE,CAAC;CAI7G,aAAa,YAAY,QAAQ;EAAE,UAAU;EAAO,SAAS;EAAI,IAAI;EAAI,OAAO;EAAM,CAAC;CACvF,EAAE;CACF,OAAO;CACP,YAAY;CACZ,aAAa,CACZ;EAAE,QAAQ,CAAC,MAAM,QAAQ;EAAE,gBAAgB,CAAC,UAAU;EAAE,EACxD;EAAE,YAAY;EAAsB,QAAQ;EAAK,gBAAgB;GAAC;GAAS;GAAQ;GAAU;GAAU;GAAW;GAAO;GAAS;EAAE,CACpI;CACD,CAAC"}