@qxs-bns/components-wc 0.0.11 → 0.0.12

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.
@@ -1 +1 @@
1
- {"version":3,"file":"types.cjs","sources":["../../../../packages/components-wc/src/subject/types.ts"],"sourcesContent":["export enum ExamType {\n SINGLE = 0,\n MULTIPLE = 1,\n BLANK_FILL = 2,\n TEXT_FILL = 3,\n SORT = 5,\n SCALE = 6,\n}\n\nexport const ExamTypeMap = {\n [ExamType.SINGLE]: 'single',\n [ExamType.MULTIPLE]: 'multiple',\n [ExamType.BLANK_FILL]: 'blank_fill',\n [ExamType.TEXT_FILL]: 'text_fill',\n [ExamType.SORT]: 'sort',\n [ExamType.SCALE]: 'scale',\n} as const\n\nexport const ExamTypeLabelMap = {\n [ExamType.SINGLE]: '单选题',\n [ExamType.MULTIPLE]: '多选题',\n [ExamType.BLANK_FILL]: '填空题',\n [ExamType.TEXT_FILL]: '问答题',\n [ExamType.SORT]: '排序题',\n [ExamType.SCALE]: '量表题',\n} as const\n\nexport type SubjectType = 'single' | 'multiple' | 'blank_fill' | 'text_fill' | 'sort' | 'scale'\n\nexport function getExamType(type: SubjectType): ExamType {\n const map: Record<SubjectType, ExamType> = {\n 'single': ExamType.SINGLE,\n 'multiple': ExamType.MULTIPLE,\n 'blank_fill': ExamType.BLANK_FILL,\n 'text_fill': ExamType.TEXT_FILL,\n 'sort': ExamType.SORT,\n 'scale': ExamType.SCALE,\n }\n return map[type] ?? ExamType.SINGLE\n}\n\nexport function getSubjectType(examType: number): SubjectType {\n return ExamTypeMap[examType as ExamType] || 'single'\n}\n"],"names":["ExamType","ExamTypeMap","type","single","multiple","blank_fill","text_fill","sort","scale","examType"],"mappings":"iBAAYA,GAAAA,IACVA,EAAAA,SAAS,GAAT,SACAA,EAAAA,WAAW,GAAX,WACAA,EAAAA,aAAa,GAAb,aACAA,EAAAA,YAAY,GAAZ,YACAA,EAAAA,OAAO,GAAP,OACAA,EAAAA,QAAQ,GAAR,QANUA,IAAAA,GAAA,CAAA,GASL,MAAMC,EAAc,CACzB,EAAmB,SACnB,EAAqB,WACrB,EAAuB,aACvB,EAAsB,YACtB,EAAiB,OACjB,EAAkB,sEAcb,SAAqBC,GAS1B,MAR2C,CACzCC,OAAU,EACVC,SAAY,EACZC,WAAc,EACdC,UAAa,EACbC,KAAQ,EACRC,MAAS,GAEAN,IAAS,CACtB,yBAEO,SAAwBO,GAC7B,OAAOR,EAAYQ,IAAyB,QAC9C"}
1
+ {"version":3,"file":"types.cjs","sources":["../../../../packages/components-wc/src/subject/types.ts"],"sourcesContent":["export enum SubjectType {\n SINGLE = 'single',\n MULTIPLE = 'multiple',\n BLANK_FILL = 'blank_fill',\n TEXT_FILL = 'text_fill',\n SORT = 'sort',\n SCALE = 'scale',\n RICH_TEXT = 'rich_text',\n PAGE_END = 'page_end',\n}\n\nexport const SubjectTypeLabel: Record<SubjectType, string> = {\n [SubjectType.SINGLE]: '单选题',\n [SubjectType.MULTIPLE]: '多选题',\n [SubjectType.BLANK_FILL]: '填空题',\n [SubjectType.TEXT_FILL]: '问答题',\n [SubjectType.SORT]: '排序题',\n [SubjectType.SCALE]: '量表题',\n [SubjectType.RICH_TEXT]: '富文本块',\n [SubjectType.PAGE_END]: '分页符',\n}\n"],"names":["SubjectType"],"mappings":"iBAAYA,GAAAA,IACVA,EAAA,OAAS,SACTA,EAAA,SAAW,WACXA,EAAA,WAAa,aACbA,EAAA,UAAY,YACZA,EAAA,KAAO,OACPA,EAAA,MAAQ,QACRA,EAAA,UAAY,YACZA,EAAA,SAAW,WARDA,IAAAA,GAAA,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qxs-bns/components-wc",
3
3
  "type": "module",
4
- "version": "0.0.11",
4
+ "version": "0.0.12",
5
5
  "description": "QXS Business Components - Web Components (framework agnostic)",
6
6
  "license": "MIT",
7
7
  "homepage": "https://qxs-bns.pages.dev/guide/components-wc/",