@yongdall/file 0.3.0 → 0.4.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.
@@ -15,24 +15,22 @@ var FileCabinet_default = createModel("fileCabinet", {
15
15
  immutable: true,
16
16
  no: 2,
17
17
  label: "模式",
18
- renderer: {
19
- component: "select",
20
- values: [{
21
- value: "map",
22
- label: "映射"
23
- }]
24
- }
18
+ renderer: "select",
19
+ source: [{
20
+ value: "map",
21
+ label: "映射"
22
+ }]
25
23
  }),
26
24
  storeId: createField("string", {
27
25
  nullable: false,
28
26
  no: 3,
29
27
  label: "存储单元",
30
- renderer: {
31
- component: "select",
28
+ renderer: "select",
29
+ source: {
32
30
  type: "model",
33
31
  name: "database",
34
32
  value: "name",
35
- filter: "type=fs"
33
+ search: "type=fs"
36
34
  },
37
35
  layout: { colSpan: 4 }
38
36
  }),
@@ -107,4 +105,4 @@ var FileCabinet_default = createModel("fileCabinet", {
107
105
 
108
106
  //#endregion
109
107
  export { FileCabinet_default as t };
110
- //# sourceMappingURL=file-DvQI1qkl.mjs.map
108
+ //# sourceMappingURL=file-DqyOTm3m.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-DqyOTm3m.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: 'select', source: [\n\t\t\t{ value: 'map', label: '映射' },\n\t\t\t// {value: 'archive', label: '归档'},\n\t\t]\n\t}),\n\n\tstoreId: createField('string', { nullable: false, no: 3, label: '存储单元', renderer: 'select', source: {\n\t\ttype: 'model', name: 'database', value: 'name', search: 'type=fs',\n\t}, 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;EAAU,QAAQ,CACjG;GAAE,OAAO;GAAO,OAAO;GAAM,CAE7B;EACD,CAAC;CAEF,SAAS,YAAY,UAAU;EAAE,UAAU;EAAO,IAAI;EAAG,OAAO;EAAQ,UAAU;EAAU,QAAQ;GACnG,MAAM;GAAS,MAAM;GAAY,OAAO;GAAQ,QAAQ;GACxD;EAAE,QAAQ,EAAE,SAAS,GAAG;EAAE,CAAC;CAC5B,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-DvQI1qkl.mjs";
1
+ import { t as FileCabinet_default } from "./file-DqyOTm3m.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-DvQI1qkl.mjs";
1
+ import { t as FileCabinet_default } from "./file-DqyOTm3m.mjs";
2
2
 
3
3
  export { FileCabinet_default as FileCabinet };
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
1
  {
2
2
  "name": "@yongdall/file",
3
+ "version": "0.4.0",
3
4
  "type": "module",
4
5
  "main": "./index.mjs",
5
6
  "exports": {
6
7
  ".": "./index.mjs",
7
8
  "./assets": "./assets/index.mjs"
8
9
  },
9
- "version": "0.3.0",
10
10
  "description": "",
11
11
  "keywords": [],
12
12
  "author": "",
13
13
  "license": "ISC",
14
14
  "dependencies": {
15
- "@yongdall/core": "^0.3.0",
16
- "@yongdall/connection": "^0.3.0",
17
- "@yongdall/model": "^0.3.0",
18
- "@yongdall/http": "^0.3.0"
15
+ "@yongdall/core": "^0.4.0",
16
+ "@yongdall/connection": "^0.4.0",
17
+ "@yongdall/model": "^0.4.0",
18
+ "@yongdall/http": "^0.4.0"
19
19
  },
20
20
  "devDependencies": {
21
- "@yongdall/web": "^0.3.0"
21
+ "@yongdall/web": "^0.4.0"
22
22
  },
23
23
  "peerDependencies": {
24
- "@yongdall/web": "^0.3.0"
24
+ "@yongdall/web": "^0.4.0"
25
25
  }
26
26
  }
@@ -1 +0,0 @@
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;E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