@yqg/permission 1.0.4-beta.0 → 1.0.4
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/.arcconfig +8 -0
- package/.husky/commit-msg +20 -0
- package/.husky/pre-commit +4 -0
- package/README.md +126 -3
- package/arcanist/.phutil_module_cache +1 -0
- package/arcanist/__phutil_library_init__.php +3 -0
- package/arcanist/__phutil_library_map__.php +18 -0
- package/arcanist/lint/engine/YqgWebDiffLintEngine.php +68 -0
- package/commitlint.config.js +32 -0
- package/dist/{apply-modal-C7hVR1xJ.js → apply-modal-C6TDad8I.js} +1372 -1351
- package/dist/card.png +0 -0
- package/dist/{checkbox-item-Bf_S20_z.js → checkbox-item-q2a4Z5-a.js} +972 -963
- package/dist/dialog.png +0 -0
- package/dist/image.png +0 -0
- package/dist/{index-B0kTXjfX.js → index-DZ6BhBlc.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/index.umd.cjs +55 -55
- package/dist/{yqg-permission-CbkviMn9.js → yqg-permission-C6-76anl.js} +1071 -1046
- package/eslint.config.js +26 -0
- package/package.json +10 -4
- package/public/card.png +0 -0
- package/public/dialog.png +0 -0
- package/public/image.png +0 -0
- package/src/App.vue +11 -4
- package/src/axios/axios.ts +1 -1
- package/src/components/apply-modal.vue +30 -7
- package/src/components/approval-steps.vue +10 -8
- package/src/components/checkbox-item.vue +24 -22
- package/src/components/success-modal.vue +16 -7
- package/src/components/yqg-permission.vue +31 -17
- package/src/i18n/en-US.ts +6 -1
- package/src/i18n/zh-CH.ts +6 -1
- package/src/main.ts +1 -1
- package/src/typings/index.d.ts +5 -0
- package/src/vite-env.d.ts +1 -1
- package/src/yqg-permission/index.ts +2 -2
- package/tsconfig.app.json +10 -1
- package/tsconfig.json +2 -2
- package/dist/vite.svg +0 -1
- package/public/vite.svg +0 -1
package/dist/dialog.png
ADDED
|
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-
|
|
6072
|
+
const Ou = /* @__PURE__ */ vc(() => import("./yqg-permission-C6-76anl.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
|
-
|
|
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
|
|
2
|
-
import { $ as f } from "./index-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".crane-wraper[data-v-0923d8e1]{display:flex;align-items:center;flex-direction:column;font-size:14px;white-space:nowrap}.crane-margin10[data-v-0923d8e1]{margin:10px}.crane-margin-right10[data-v-0923d8e1]{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-95656202]{display:flex;align-items:center}.crane-checkbox-line[data-v-95656202]{margin-bottom:12px;display:flex;align-items:center}.crane-checkbox-line[data-v-95656202]:last-child{margin-bottom:0}.crane-checkbox-label[data-v-95656202]{max-width:346px}.crane-tag-position[data-v-95656202]{margin-right:4px;font-size:10px;padding:2px 4px;line-height:12px;font-weight:500}.crane-margin-right-0[data-v-95656202]{margin-right:0}.crane-margin-left-4[data-v-95656202]{margin-left:4px}.crane-margin-right-4[data-v-95656202]{margin-right:4px}.crane-margin-left-12[data-v-95656202]{margin-left:12px}.crane-disabled-color[data-v-95656202]{color:#c9cdd4}.crane-week-color[data-v-95656202]{color:#86909c}.crane-text-overflow[data-v-95656202]{flex:1;overflow:hidden;text-overflow:ellipsis}")),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
+
import { $ as f } from "./index-DZ6BhBlc.js";
|
|
3
3
|
export {
|
|
4
4
|
f as default
|
|
5
5
|
};
|