@yqg/permission 1.0.4-beta.0 → 1.0.6-beta.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.
Files changed (38) hide show
  1. package/.arcconfig +8 -0
  2. package/.husky/commit-msg +20 -0
  3. package/.husky/pre-commit +4 -0
  4. package/README.md +126 -3
  5. package/arcanist/.phutil_module_cache +1 -0
  6. package/arcanist/__phutil_library_init__.php +3 -0
  7. package/arcanist/__phutil_library_map__.php +18 -0
  8. package/arcanist/lint/engine/YqgWebDiffLintEngine.php +68 -0
  9. package/commitlint.config.js +32 -0
  10. package/dist/{apply-modal-C7hVR1xJ.js → apply-modal-B779Z1yz.js} +1234 -1216
  11. package/dist/card.png +0 -0
  12. package/dist/{checkbox-item-Bf_S20_z.js → checkbox-item-CWDiWBTe.js} +804 -795
  13. package/dist/dialog.png +0 -0
  14. package/dist/image.png +0 -0
  15. package/dist/{index-B0kTXjfX.js → index-C1qXS-ty.js} +2 -2
  16. package/dist/index.js +2 -2
  17. package/dist/index.umd.cjs +52 -52
  18. package/dist/{yqg-permission-CbkviMn9.js → yqg-permission-CrityVMS.js} +446 -428
  19. package/eslint.config.js +26 -0
  20. package/package.json +10 -4
  21. package/public/card.png +0 -0
  22. package/public/dialog.png +0 -0
  23. package/public/image.png +0 -0
  24. package/src/App.vue +12 -3
  25. package/src/axios/axios.ts +1 -1
  26. package/src/components/apply-modal.vue +21 -6
  27. package/src/components/approval-steps.vue +10 -8
  28. package/src/components/checkbox-item.vue +23 -22
  29. package/src/components/success-modal.vue +16 -7
  30. package/src/components/yqg-permission.vue +28 -16
  31. package/src/i18n/zh-CH.ts +5 -1
  32. package/src/main.ts +1 -1
  33. package/src/typings/index.d.ts +2 -0
  34. package/src/yqg-permission/index.ts +2 -2
  35. package/tsconfig.app.json +10 -1
  36. package/tsconfig.json +2 -2
  37. package/dist/vite.svg +0 -1
  38. package/public/vite.svg +0 -1
Binary file
package/dist/image.png ADDED
Binary file
@@ -6069,7 +6069,7 @@ function bu() {
6069
6069
  If();
6070
6070
  }
6071
6071
  process.env.NODE_ENV !== "production" && bu();
6072
- const Ou = /* @__PURE__ */ vc(() => import("./yqg-permission-CbkviMn9.js").then((e) => e.br)), Du = (e) => {
6072
+ const Ou = /* @__PURE__ */ vc(() => import("./yqg-permission-CrityVMS.js").then((e) => e.bs)), Du = (e) => {
6073
6073
  customElements.define(
6074
6074
  e,
6075
6075
  /* @__PURE__ */ iu(Ou, {
@@ -6084,7 +6084,7 @@ class wu {
6084
6084
  ro(this, "hasInit");
6085
6085
  this.tagName = "yqg-permission", this.hasInit = !1;
6086
6086
  }
6087
- start(t) {
6087
+ init(t) {
6088
6088
  if (!window || !window.customElements) {
6089
6089
  console.error("yqg-permission is not supported in this environment");
6090
6090
  return;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".crane-wraper[data-v-7a637be6]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-7a637be6]{margin:10px}.crane-margin-right10[data-v-7a637be6]{margin-right:10px}[data-v-d803332d] .success-modal-wrap .yqg-permission-modal-confirm-btns{text-align:center}.crane-step-wraper[data-v-6b35bb95]{display:flex;align-items:center;width:100%;overflow-x:scroll;line-height:32px;padding-bottom:8px}.crane-step-node[data-v-6b35bb95]{display:flex;align-items:center}.crane-step-icon[data-v-6b35bb95]{margin:0 8px;height:auto;max-width:none}.crane-flex-center[data-v-da0d7c0c]{display:flex;align-items:center}.crane-checkbox-line[data-v-da0d7c0c]{margin-bottom:12px;display:flex;align-items:center}.crane-checkbox-line[data-v-da0d7c0c]:last-child{margin-bottom:0}.crane-checkbox-label[data-v-da0d7c0c]{max-width:346px}.crane-tag-position[data-v-da0d7c0c]{margin-right:4px;font-size:10px;padding:2px 4px;line-height:12px;font-weight:500}.crane-margin-right-0[data-v-da0d7c0c]{margin-right:0}.crane-margin-left-4[data-v-da0d7c0c]{margin-left:4px}.crane-margin-right-4[data-v-da0d7c0c]{margin-right:4px}.crane-margin-left-12[data-v-da0d7c0c]{margin-left:12px}.crane-disabled-color[data-v-da0d7c0c]{color:#c9cdd4}.crane-week-color[data-v-da0d7c0c]{color:#86909c}.crane-text-overflow[data-v-da0d7c0c]{flex:1;overflow:hidden;text-overflow:ellipsis}")),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import { $ as f } from "./index-B0kTXjfX.js";
1
+ (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".crane-wraper[data-v-effc6ab5]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-effc6ab5]{margin:10px}.crane-margin-right10[data-v-effc6ab5]{margin-right:10px}.yqg-permission-modal-wrap .yqg-permission-modal-confirm-btns{text-align:center!important}.crane-step-wraper[data-v-f3d62522]{display:flex;align-items:center;width:100%;overflow-x:scroll;line-height:32px;padding-bottom:8px}.crane-step-node[data-v-f3d62522]{display:flex;align-items:center}.crane-step-icon[data-v-f3d62522]{margin:0 8px;height:auto;max-width:none}.crane-flex-center[data-v-755c8f7a]{display:flex;align-items:center}.crane-checkbox-line[data-v-755c8f7a]{margin-bottom:12px;display:flex;align-items:center}.crane-checkbox-line[data-v-755c8f7a]:last-child{margin-bottom:0}.crane-checkbox-label[data-v-755c8f7a]{max-width:346px}.crane-tag-position[data-v-755c8f7a]{margin-right:4px;font-size:10px;padding:2px 4px;line-height:12px;font-weight:500}.crane-margin-right-0[data-v-755c8f7a]{margin-right:0}.crane-margin-left-4[data-v-755c8f7a]{margin-left:4px}.crane-margin-right-4[data-v-755c8f7a]{margin-right:4px}.crane-margin-left-12[data-v-755c8f7a]{margin-left:12px}.crane-disabled-color[data-v-755c8f7a]{color:#c9cdd4}.crane-week-color[data-v-755c8f7a]{color:#86909c}.crane-text-overflow[data-v-755c8f7a]{flex:1;overflow:hidden;text-overflow:ellipsis}")),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ import { $ as f } from "./index-C1qXS-ty.js";
3
3
  export {
4
4
  f as default
5
5
  };