yxuse 2.0.36 → 2.0.37
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/README.md +75 -75
- package/lib/dayjs.min.es.js.gz +0 -0
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.cjs10.js.map +1 -1
- package/lib/index.cjs11.js.map +1 -1
- package/lib/index.cjs12.js.gz +0 -0
- package/lib/index.cjs12.js.map +1 -1
- package/lib/index.cjs13.js.map +1 -1
- package/lib/index.cjs2.js.map +1 -1
- package/lib/index.cjs3.js.map +1 -1
- package/lib/index.cjs4.js.map +1 -1
- package/lib/index.cjs5.js +3 -3
- package/lib/index.cjs5.js.gz +0 -0
- package/lib/index.cjs5.js.map +1 -1
- package/lib/index.cjs6.js +1 -1
- package/lib/index.cjs6.js.gz +0 -0
- package/lib/index.cjs6.js.map +1 -1
- package/lib/index.cjs7.js.gz +0 -0
- package/lib/index.cjs7.js.map +1 -1
- package/lib/index.cjs8.js.map +1 -1
- package/lib/index.es.js.map +1 -1
- package/lib/index.es10.js.map +1 -1
- package/lib/index.es11.js.map +1 -1
- package/lib/index.es12.js.gz +0 -0
- package/lib/index.es12.js.map +1 -1
- package/lib/index.es13.js.map +1 -1
- package/lib/index.es2.js.map +1 -1
- package/lib/index.es3.js.map +1 -1
- package/lib/index.es4.js.map +1 -1
- package/lib/index.es5.js +7 -15
- package/lib/index.es5.js.gz +0 -0
- package/lib/index.es5.js.map +1 -1
- package/lib/index.es6.js +5 -5
- package/lib/index.es6.js.gz +0 -0
- package/lib/index.es6.js.map +1 -1
- package/lib/index.es7.js.gz +0 -0
- package/lib/index.es7.js.map +1 -1
- package/lib/index.es8.js.map +1 -1
- package/lib/mqtt.min.cjs.js.gz +0 -0
- package/lib/mqtt.min.cjs.js.map +1 -1
- package/lib/mqtt.min.es.js.gz +0 -0
- package/lib/mqtt.min.es.js.map +1 -1
- package/lib/style.css +1 -1
- package/lib/style.css.gz +0 -0
- package/lib/version.json +12 -12
- package/lib/vue.runtime.esm-bundler.cjs.js.gz +0 -0
- package/lib/vue.runtime.esm-bundler.es.js.gz +0 -0
- package/package.json +176 -176
- package/types/api/modules/auth/index.d.ts +13 -13
- package/types/components/SearchForm/index.d.ts +3 -3
- package/types/components/SearchForm/index.vue.d.ts +2 -2
- package/types/components/YxForm/form.type.d.ts +183 -183
- package/types/components/YxForm/form.vaildator.d.ts +57 -57
- package/types/components/YxForm/form.vue.d.ts +66 -66
- package/types/components/YxFormV2/index.d.ts +3 -3
- package/types/components/YxFormV2/index.vue.d.ts +46 -46
- package/types/components/YxFormV2/type.d.ts +54 -54
- package/types/components/YxFrom/form.type.d.ts +179 -179
- package/types/components/YxFrom/form.vaildator.d.ts +57 -57
- package/types/components/YxFrom/form.vue.d.ts +66 -66
- package/types/components/YxFrom/index.d.ts +3 -3
- package/types/components/YxIcon/index.vue.d.ts +22 -22
- package/types/components/YxTable3/index.d.ts +1 -1
- package/types/components/YxTable3/src/index.d.ts +31 -31
- package/types/icons/index.d.ts +1 -1
- package/types/icons/src/index.d.ts +4 -4
package/lib/index.cjs8.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs8.js","sources":["../packages/directives/modules/auth.ts","../packages/directives/index.ts"],"sourcesContent":["/*\n * @Author: WangXin\n * @Date: 2023-09-15 10:33:59\n * @LastEditors: WangXin\n * @LastEditTime: 2023-09-15 10:37:28\n * @FilePath: \\yxUse\\packages\\directives\\modules\\auth.ts\n * @Description:\n *\n * Copyright (c) 2023 by YuXing, All Rights Reserved.\n */\nimport type { Directive, DirectiveBinding } from \"vue\";\nimport { getUserIsHaveBtnPower } from \"@packages/api/auth\";\nconst auth: Directive = {\n\tmounted(el, binding) {\n\t\tcontrolShowByUserPower(el, binding);\n\t}\n};\nconst controlShowByUserPower = (el: HTMLElement, binding: DirectiveBinding) => {\n\tconst value = binding.value as never;\n\treturn !getUserIsHaveBtnPower(value) ? el.remove() : \"\";\n};\nexport default auth;\n","/*\n * @Author: WangXin\n * @Date: 2023-09-15 10:33:40\n * @LastEditors: WangXin\n * @LastEditTime: 2023-09-15 10:35:52\n * @FilePath: \\yxUse\\packages\\directives\\index.ts\n * @Description:\n *\n * Copyright (c) 2023 by YuXing, All Rights Reserved.\n */\nimport type { App } from \"vue\";\nimport auth from \"./modules/auth\";\nconst directivesList: any = {\n\tauth\n};\nconst directives = {\n\tinstall: function (app: App<Element>) {\n\t\tObject.keys(directivesList).forEach(key => {\n\t\t\t// 注册所有自定义指令\n\t\t\tapp.directive(key, directivesList[key]);\n\t\t});\n\t}\n};\n\nexport default directives;\n"],"names":["auth","mounted","el","binding","controlShowByUserPower","value","getUserIsHaveBtnPower","remove","directivesList","directives","install","app","Object","keys","forEach","key","directive"],"mappings":"iDAYMA,EAAkB,CACvB,OAAAC,CAAQC,EAAIC,GACXC,EAAuBF,EAAIC,EAAO,GAG9BC,EAAyB,CAACF,EAAiBC,KAChD,MAAME,EAAQF,EAAQE,MACtB,OAAQC,EAAsBA,sBAAAD,GAAuB,GAAdH,EAAGK,QAAW,ECPhDC,EAAsB,CAC3BR,QAEKS,EAAa,CAClBC,QAAS,SAAUC,GAClBC,OAAOC,KAAKL,GAAgBM,SAAeC,IAE1CJ,EAAIK,UAAUD,EAAKP,EAAeO,GAAI,GACtC"}
|
|
1
|
+
{"version":3,"file":"index.cjs8.js","sources":["../packages/directives/modules/auth.ts","../packages/directives/index.ts"],"sourcesContent":["/*\r\n * @Author: WangXin\r\n * @Date: 2023-09-15 10:33:59\r\n * @LastEditors: WangXin\r\n * @LastEditTime: 2023-09-15 10:37:28\r\n * @FilePath: \\yxUse\\packages\\directives\\modules\\auth.ts\r\n * @Description:\r\n *\r\n * Copyright (c) 2023 by YuXing, All Rights Reserved.\r\n */\r\nimport type { Directive, DirectiveBinding } from \"vue\";\r\nimport { getUserIsHaveBtnPower } from \"@packages/api/auth\";\r\nconst auth: Directive = {\r\n\tmounted(el, binding) {\r\n\t\tcontrolShowByUserPower(el, binding);\r\n\t}\r\n};\r\nconst controlShowByUserPower = (el: HTMLElement, binding: DirectiveBinding) => {\r\n\tconst value = binding.value as never;\r\n\treturn !getUserIsHaveBtnPower(value) ? el.remove() : \"\";\r\n};\r\nexport default auth;\r\n","/*\r\n * @Author: WangXin\r\n * @Date: 2023-09-15 10:33:40\r\n * @LastEditors: WangXin\r\n * @LastEditTime: 2023-09-15 10:35:52\r\n * @FilePath: \\yxUse\\packages\\directives\\index.ts\r\n * @Description:\r\n *\r\n * Copyright (c) 2023 by YuXing, All Rights Reserved.\r\n */\r\nimport type { App } from \"vue\";\r\nimport auth from \"./modules/auth\";\r\nconst directivesList: any = {\r\n\tauth\r\n};\r\nconst directives = {\r\n\tinstall: function (app: App<Element>) {\r\n\t\tObject.keys(directivesList).forEach(key => {\r\n\t\t\t// 注册所有自定义指令\r\n\t\t\tapp.directive(key, directivesList[key]);\r\n\t\t});\r\n\t}\r\n};\r\n\r\nexport default directives;\r\n"],"names":["auth","mounted","el","binding","controlShowByUserPower","value","getUserIsHaveBtnPower","remove","directivesList","directives","install","app","Object","keys","forEach","key","directive"],"mappings":"iDAYMA,EAAkB,CACvB,OAAAC,CAAQC,EAAIC,GACXC,EAAuBF,EAAIC,EAAO,GAG9BC,EAAyB,CAACF,EAAiBC,KAChD,MAAME,EAAQF,EAAQE,MACtB,OAAQC,EAAsBA,sBAAAD,GAAuB,GAAdH,EAAGK,QAAW,ECPhDC,EAAsB,CAC3BR,QAEKS,EAAa,CAClBC,QAAS,SAAUC,GAClBC,OAAOC,KAAKL,GAAgBM,SAAeC,IAE1CJ,EAAIK,UAAUD,EAAKP,EAAeO,GAAI,GACtC"}
|
package/lib/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../packages/index.ts"],"sourcesContent":["/*\n * @Author: WangXin\n * @Date: 2023-08-16 15:38:34\n * @LastEditors: WangXin\n * @LastEditTime: 2025-05-08 15:48:37\n * @FilePath: /yxuse/packages/index.ts\n * @Description:\n *\n * Copyright (c) 2023 by YuXing, All Rights Reserved.\n */\nexport * as utils from \"./utils\";\n\n// export * as icons from \"./icons\";\nexport * as yxIcon from \"./yxIcon\";\nexport * as api from \"./api\";\nexport * as theme from \"./theme\";\nexport * as components from \"./components\";\nexport * as translate from \"./translate\";\nexport * as yxi18n from \"./yxi18n\";\nexport * from \"./directives\";\nexport * from \"./hooks\";\nexport * from \"./app\";\nexport * from \"./bc\";\n//导出类型\nexport * from \"./components/type\";\nimport * as utils from \"./utils\";\n\n// import * as icons from \"./icons\";\nimport * as api from \"./api\";\nimport * as theme from \"./theme\";\nimport * as components from \"./components\";\nimport * as directives from \"./directives\";\nimport * as translate from \"./translate\";\nimport * as yxi18n from \"./yxi18n\";\nimport * as yxHooks from \"./hooks\";\nimport * as yxIcon from \"./yxIcon\";\nimport * as app from \"./app\";\nimport * as BC from \"./bc\";\nexport default {\n\tutils,\n\tapi,\n\tapp,\n\ttheme,\n\tcomponents,\n\tdirectives,\n\tBC,\n\ttranslate,\n\tyxi18n,\n\tyxHooks,\n\tyxIcon\n};\n"],"names":["utils","api","theme","components","translate","yxi18n","yxIcon"],"mappings":";;;;;;;;;;;;AAsCA,MAAe,QAAA;AAAA,EACd,OAAAA;AAAAA,EACA,KAAAC;AAAAA,EACA;AAAA,EACA,OAAAC;AAAAA,EACA,YAAAC;AAAAA,EACA;AAAA,EACA;AAAA,EACA,WAAAC;AAAAA,EACA,QAAAC;AAAAA,EACA;AAAA,EACA,QAAAC;AACD;"}
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../packages/index.ts"],"sourcesContent":["/*\r\n * @Author: WangXin\r\n * @Date: 2023-08-16 15:38:34\r\n * @LastEditors: WangXin\r\n * @LastEditTime: 2025-05-08 15:48:37\r\n * @FilePath: /yxuse/packages/index.ts\r\n * @Description:\r\n *\r\n * Copyright (c) 2023 by YuXing, All Rights Reserved.\r\n */\r\nexport * as utils from \"./utils\";\r\n\r\n// export * as icons from \"./icons\";\r\nexport * as yxIcon from \"./yxIcon\";\r\nexport * as api from \"./api\";\r\nexport * as theme from \"./theme\";\r\nexport * as components from \"./components\";\r\nexport * as translate from \"./translate\";\r\nexport * as yxi18n from \"./yxi18n\";\r\nexport * from \"./directives\";\r\nexport * from \"./hooks\";\r\nexport * from \"./app\";\r\nexport * from \"./bc\";\r\n//导出类型\r\nexport * from \"./components/type\";\r\nimport * as utils from \"./utils\";\r\n\r\n// import * as icons from \"./icons\";\r\nimport * as api from \"./api\";\r\nimport * as theme from \"./theme\";\r\nimport * as components from \"./components\";\r\nimport * as directives from \"./directives\";\r\nimport * as translate from \"./translate\";\r\nimport * as yxi18n from \"./yxi18n\";\r\nimport * as yxHooks from \"./hooks\";\r\nimport * as yxIcon from \"./yxIcon\";\r\nimport * as app from \"./app\";\r\nimport * as BC from \"./bc\";\r\nexport default {\r\n\tutils,\r\n\tapi,\r\n\tapp,\r\n\ttheme,\r\n\tcomponents,\r\n\tdirectives,\r\n\tBC,\r\n\ttranslate,\r\n\tyxi18n,\r\n\tyxHooks,\r\n\tyxIcon\r\n};\r\n"],"names":["utils","api","theme","components","translate","yxi18n","yxIcon"],"mappings":";;;;;;;;;;;;AAsCA,MAAe,QAAA;AAAA,EACd,OAAAA;AAAAA,EACA,KAAAC;AAAAA,EACA;AAAA,EACA,OAAAC;AAAAA,EACA,YAAAC;AAAAA,EACA;AAAA,EACA;AAAA,EACA,WAAAC;AAAAA,EACA,QAAAC;AAAAA,EACA;AAAA,EACA,QAAAC;AACD;"}
|
package/lib/index.es10.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es10.js","sources":["../packages/app/index.ts"],"sourcesContent":["/*\n * @Author: WangXin\n * @Date: 2024-09-02 14:03:25\n * @LastEditors: WangXin\n * @LastEditTime: 2024-09-02 15:40:00\n * @FilePath: /yxuse/packages/app/index.ts\n * @Description:\n *\n * Copyright (c) ${2024} by YuXing, All Rights Reserved.\n */\n// export const installWebApp = async (systemKey?: string, lang?: string, callback?: Function) => {\n// \twindow.__YUXING_APP_ENVIRONMENT__ = true;\n// \tconsole.log(\"当前的主题是\", getCurThemeCssVar(), getCurTheme());\n// \tinstallCssVarInSystemTheme();\n// \tconst langStr = await getLang();\n// \tawait initTranslate({ to: lang ? langStr : lang || \"zh\", systemKey });\n// \t//注册BC\n// \tBC.onmessage = event => {\n// \t\tconst data = JSON.parse(event.data);\n// \t\tif (data.type === \"theme\") {\n// \t\t\tconsole.log(\"监听到其他系统切换主题收到的信息\", data.data);\n// \t\t\tconst { themeCssVar, themeId, themeUrl } = data.data;\n// \t\t\t// setCssVar(themeUrl);\n// \t\t\tsaveCssVar({ themeCssVar, themeId });\n// \t\t\tinstallCssVarInSystemTheme(themeCssVar);\n// \t\t}\n// \t\tif (data.type === \"lang\") {\n// \t\t\tconsole.log(\"监听到其他系统切换语言\");\n// \t\t\tlocation.reload();\n// \t\t}\n// \t};\n// \tcallback && callback();\n// };\n\nexport const isWebApp = (key = \"isWebApp\") => {\n\tconst url = new URLSearchParams(window.location.href.split(\"?\")[1]);\n\tconst params = Object.fromEntries(url.entries());\n\treturn params[key] && +params[key] ? true : false;\n};\n"],"names":[],"mappings":"AAkCa,MAAA,WAAW,CAAC,MAAM,eAAe;AACvC,QAAA,MAAM,IAAI,gBAAgB,OAAO,SAAS,KAAK,MAAM,GAAG,EAAE,CAAC,CAAC;AAClE,QAAM,SAAS,OAAO,YAAY,IAAI,SAAS;AAC/C,SAAO,OAAO,GAAG,KAAK,CAAC,OAAO,GAAG,IAAI,OAAO;AAC7C;;;;;"}
|
|
1
|
+
{"version":3,"file":"index.es10.js","sources":["../packages/app/index.ts"],"sourcesContent":["/*\r\n * @Author: WangXin\r\n * @Date: 2024-09-02 14:03:25\r\n * @LastEditors: WangXin\r\n * @LastEditTime: 2024-09-02 15:40:00\r\n * @FilePath: /yxuse/packages/app/index.ts\r\n * @Description:\r\n *\r\n * Copyright (c) ${2024} by YuXing, All Rights Reserved.\r\n */\r\n// export const installWebApp = async (systemKey?: string, lang?: string, callback?: Function) => {\r\n// \twindow.__YUXING_APP_ENVIRONMENT__ = true;\r\n// \tconsole.log(\"当前的主题是\", getCurThemeCssVar(), getCurTheme());\r\n// \tinstallCssVarInSystemTheme();\r\n// \tconst langStr = await getLang();\r\n// \tawait initTranslate({ to: lang ? langStr : lang || \"zh\", systemKey });\r\n// \t//注册BC\r\n// \tBC.onmessage = event => {\r\n// \t\tconst data = JSON.parse(event.data);\r\n// \t\tif (data.type === \"theme\") {\r\n// \t\t\tconsole.log(\"监听到其他系统切换主题收到的信息\", data.data);\r\n// \t\t\tconst { themeCssVar, themeId, themeUrl } = data.data;\r\n// \t\t\t// setCssVar(themeUrl);\r\n// \t\t\tsaveCssVar({ themeCssVar, themeId });\r\n// \t\t\tinstallCssVarInSystemTheme(themeCssVar);\r\n// \t\t}\r\n// \t\tif (data.type === \"lang\") {\r\n// \t\t\tconsole.log(\"监听到其他系统切换语言\");\r\n// \t\t\tlocation.reload();\r\n// \t\t}\r\n// \t};\r\n// \tcallback && callback();\r\n// };\r\n\r\nexport const isWebApp = (key = \"isWebApp\") => {\r\n\tconst url = new URLSearchParams(window.location.href.split(\"?\")[1]);\r\n\tconst params = Object.fromEntries(url.entries());\r\n\treturn params[key] && +params[key] ? true : false;\r\n};\r\n"],"names":[],"mappings":"AAkCa,MAAA,WAAW,CAAC,MAAM,eAAe;AACvC,QAAA,MAAM,IAAI,gBAAgB,OAAO,SAAS,KAAK,MAAM,GAAG,EAAE,CAAC,CAAC;AAClE,QAAM,SAAS,OAAO,YAAY,IAAI,SAAS;AAC/C,SAAO,OAAO,GAAG,KAAK,CAAC,OAAO,GAAG,IAAI,OAAO;AAC7C;;;;;"}
|
package/lib/index.es11.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es11.js","sources":["../packages/hooks/useTime/index.ts"],"sourcesContent":["/*\n * @Author: WangXin\n * @Date: 2024-04-07 09:50:34\n * @LastEditors: WangXin\n * @LastEditTime: 2025-04-25 14:50:40\n * @FilePath: /yxuse/packages/hooks/useTime/index.ts\n * @Description:\n *\n * Copyright (c) 2024 by YuXing, All Rights Reserved.\n */\nimport { ref, reactive, computed } from \"vue\";\nimport dayjs from \"dayjs\";\nconst time = ref(\"\");\nlet _timer: any;\nexport const useTime = () => {\n\tconst timedExecution = () => {\n\t\t_timer = setTimeout(() => {\n\t\t\ttime.value = dayjs().format(\"YYYY-MM-DD HH:mm:ss\");\n\t\t\t_timer && clearTimeout(_timer);\n\t\t\ttimedExecution();\n\t\t}, 1000);\n\t};\n\ttimedExecution();\n\treturn { time };\n};\n"],"names":[],"mappings":";;AAYA,MAAM,OAAO,IAAI,EAAE;AACnB,IAAI;AACG,MAAM,UAAU,MAAM;AAC5B,QAAM,iBAAiB,MAAM;AAC5B,aAAS,WAAW,MAAM;AACzB,WAAK,QAAQ,QAAQ,OAAO,qBAAqB;AACjD,gBAAU,aAAa,MAAM;AACd,qBAAA;AAAA,OACb,GAAI;AAAA,EACR;AACe,iBAAA;AACf,SAAO,EAAE,KAAK;AACf;"}
|
|
1
|
+
{"version":3,"file":"index.es11.js","sources":["../packages/hooks/useTime/index.ts"],"sourcesContent":["/*\r\n * @Author: WangXin\r\n * @Date: 2024-04-07 09:50:34\r\n * @LastEditors: WangXin\r\n * @LastEditTime: 2025-04-25 14:50:40\r\n * @FilePath: /yxuse/packages/hooks/useTime/index.ts\r\n * @Description:\r\n *\r\n * Copyright (c) 2024 by YuXing, All Rights Reserved.\r\n */\r\nimport { ref, reactive, computed } from \"vue\";\r\nimport dayjs from \"dayjs\";\r\nconst time = ref(\"\");\r\nlet _timer: any;\r\nexport const useTime = () => {\r\n\tconst timedExecution = () => {\r\n\t\t_timer = setTimeout(() => {\r\n\t\t\ttime.value = dayjs().format(\"YYYY-MM-DD HH:mm:ss\");\r\n\t\t\t_timer && clearTimeout(_timer);\r\n\t\t\ttimedExecution();\r\n\t\t}, 1000);\r\n\t};\r\n\ttimedExecution();\r\n\treturn { time };\r\n};\r\n"],"names":[],"mappings":";;AAYA,MAAM,OAAO,IAAI,EAAE;AACnB,IAAI;AACG,MAAM,UAAU,MAAM;AAC5B,QAAM,iBAAiB,MAAM;AAC5B,aAAS,WAAW,MAAM;AACzB,WAAK,QAAQ,QAAQ,OAAO,qBAAqB;AACjD,gBAAU,aAAa,MAAM;AACd,qBAAA;AAAA,OACb,GAAI;AAAA,EACR;AACe,iBAAA;AACf,SAAO,EAAE,KAAK;AACf;"}
|
package/lib/index.es12.js.gz
CHANGED
|
Binary file
|