all data hide
NPM Installation / build (16.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (16.x, windows-latest) (push) Has been cancelled
NPM Installation / build (17.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (17.x, windows-latest) (push) Has been cancelled
NPM Installation / build (18.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (18.x, windows-latest) (push) Has been cancelled
NPM Installation / build (16.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (16.x, windows-latest) (push) Has been cancelled
NPM Installation / build (17.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (17.x, windows-latest) (push) Has been cancelled
NPM Installation / build (18.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (18.x, windows-latest) (push) Has been cancelled
This commit is contained in:
+196
@@ -0,0 +1,196 @@
|
||||
import { Kn as ref, U as computed, V as cloneVNode, gn as watch, nt as defineComponent, pt as h, xt as inject } from "./vue.runtime.esm-bundler-BbnC8aGa.js";
|
||||
//#region node_modules/@coreui/icons-vue/dist/index.es.js
|
||||
var CIcon = defineComponent({
|
||||
name: "CIcon",
|
||||
props: {
|
||||
/**
|
||||
* Use `:icon="..."` instead of
|
||||
*
|
||||
* @deprecated since version 3.0
|
||||
*/
|
||||
content: {
|
||||
type: [String, Array],
|
||||
default: void 0,
|
||||
required: false
|
||||
},
|
||||
/**
|
||||
* Use for replacing default CIcon component classes. Prop is overriding the 'size' prop.
|
||||
*/
|
||||
customClassName: {
|
||||
type: [
|
||||
String,
|
||||
Array,
|
||||
Object
|
||||
],
|
||||
default: void 0,
|
||||
required: false
|
||||
},
|
||||
/**
|
||||
* Name of the icon placed in React object or SVG content.
|
||||
*/
|
||||
icon: {
|
||||
type: [String, Array],
|
||||
default: void 0,
|
||||
required: false
|
||||
},
|
||||
/**
|
||||
* Use `icon="..."` instead of
|
||||
*
|
||||
* @deprecated since version 3.0
|
||||
*/
|
||||
name: {
|
||||
type: String,
|
||||
default: void 0,
|
||||
required: false
|
||||
},
|
||||
/**
|
||||
* Size of the icon. Available sizes: 'sm', 'lg', 'xl', 'xxl', '3xl...9xl', 'custom', 'custom-size'.
|
||||
*/
|
||||
size: {
|
||||
type: String,
|
||||
default: void 0,
|
||||
required: false,
|
||||
validator: (value) => {
|
||||
return [
|
||||
"custom",
|
||||
"custom-size",
|
||||
"sm",
|
||||
"lg",
|
||||
"xl",
|
||||
"xxl",
|
||||
"3xl",
|
||||
"4xl",
|
||||
"5xl",
|
||||
"6xl",
|
||||
"7xl",
|
||||
"8xl",
|
||||
"9xl"
|
||||
].includes(value);
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Title tag content.
|
||||
*/
|
||||
title: {
|
||||
type: String,
|
||||
default: void 0,
|
||||
required: false
|
||||
},
|
||||
/**
|
||||
* If defined component will be rendered using 'use' tag.
|
||||
*/
|
||||
use: {
|
||||
type: String,
|
||||
default: void 0,
|
||||
required: false
|
||||
}
|
||||
},
|
||||
setup(props, { attrs }) {
|
||||
const icons = inject("icons");
|
||||
const _icon = ref(props.icon || props.content || props.name);
|
||||
watch(() => props.icon, () => {
|
||||
_icon.value = props.icon;
|
||||
});
|
||||
const toCamelCase = (str) => {
|
||||
return str.replace(/([-_][a-z0-9])/gi, ($1) => {
|
||||
return $1.toUpperCase();
|
||||
}).replace(/-/gi, "");
|
||||
};
|
||||
const iconName = computed(() => _icon.value && typeof _icon.value === "string" ? _icon.value.includes("-") ? toCamelCase(_icon.value) : _icon.value : "");
|
||||
const titleCode = props.title ? `<title>${props.title}</title>` : "undefined";
|
||||
const code = computed(() => Array.isArray(_icon.value) ? _icon.value : typeof _icon.value === "string" && iconName.value && icons[iconName.value] ? icons[iconName.value] : "undefined");
|
||||
const iconCode = computed(() => Array.isArray(code.value) ? code.value[1] || code.value[0] : code.value);
|
||||
const scale = Array.isArray(code.value) && code.value.length > 1 ? code.value[0] : "64 64";
|
||||
const viewBox = attrs.viewBox || `0 0 ${scale}`;
|
||||
const size = () => {
|
||||
const addCustom = !props.size && (attrs.width || attrs.height);
|
||||
return props.size === "custom" || addCustom ? "custom-size" : props.size;
|
||||
};
|
||||
const classNames = (() => {
|
||||
return [props.customClassName || ["icon", { [`icon-${size()}`]: size() }], attrs.class];
|
||||
})();
|
||||
return () => props.use ? h("svg", {
|
||||
...attrs,
|
||||
xmlns: "http://www.w3.org/2000/svg",
|
||||
class: classNames,
|
||||
role: "img"
|
||||
}, h("use", { href: props.use })) : h("svg", {
|
||||
...attrs,
|
||||
xmlns: "http://www.w3.org/2000/svg",
|
||||
class: classNames,
|
||||
viewBox,
|
||||
innerHTML: `${titleCode}${iconCode.value}`,
|
||||
role: "img"
|
||||
});
|
||||
}
|
||||
});
|
||||
var CIconSvg = defineComponent({
|
||||
name: "CIconSvg",
|
||||
props: {
|
||||
/**
|
||||
* Use for replacing default CIconSvg component classes. Prop is overriding the 'size' prop.
|
||||
*/
|
||||
customClassName: [
|
||||
String,
|
||||
Array,
|
||||
Object
|
||||
],
|
||||
/**
|
||||
* The height attribute defines the vertical length of an icon.
|
||||
*/
|
||||
height: Number,
|
||||
/**
|
||||
* Size of the icon. Available sizes: 'sm', 'lg', 'xl', 'xxl', '3xl...9xl', 'custom', 'custom-size'.
|
||||
*/
|
||||
size: {
|
||||
type: String,
|
||||
validator: (value) => {
|
||||
return [
|
||||
"custom",
|
||||
"custom-size",
|
||||
"sm",
|
||||
"lg",
|
||||
"xl",
|
||||
"xxl",
|
||||
"3xl",
|
||||
"4xl",
|
||||
"5xl",
|
||||
"6xl",
|
||||
"7xl",
|
||||
"8xl",
|
||||
"9xl"
|
||||
].includes(value);
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Title tag content.
|
||||
*/
|
||||
title: String,
|
||||
/**
|
||||
* The width attribute defines the horizontal length of an icon.
|
||||
*/
|
||||
width: Number
|
||||
},
|
||||
setup(props, { attrs, slots }) {
|
||||
return () => slots.default && slots.default().map((slot) => cloneVNode(slot, {
|
||||
"aria-hidden": true,
|
||||
class: [props.customClassName || [
|
||||
"icon",
|
||||
{
|
||||
[`icon-${props.size}`]: props.size,
|
||||
[`icon-custom-size`]: props.height || props.width
|
||||
},
|
||||
attrs.class
|
||||
]],
|
||||
height: props.height,
|
||||
focusable: "false",
|
||||
role: "img",
|
||||
width: props.width,
|
||||
...attrs
|
||||
}));
|
||||
}
|
||||
});
|
||||
//#endregion
|
||||
export { CIcon, CIcon as default, CIconSvg };
|
||||
|
||||
//# sourceMappingURL=@coreui_icons-vue.js.map
|
||||
+1
File diff suppressed because one or more lines are too long
+6368
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+153
@@ -0,0 +1,153 @@
|
||||
//#region node_modules/@coreui/utils/dist/esm/deepObjectsMerge.js
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* CoreUI Utils (v2.0.1): deepObjectsMerge.ts
|
||||
* Licensed under MIT (https://github.com/coreui/coreui-utils/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var deepObjectsMerge = function(target, source) {
|
||||
for (var _i = 0, _a = Object.keys(source); _i < _a.length; _i++) {
|
||||
var key = _a[_i];
|
||||
if (source[key] instanceof Object) Object.assign(source[key], deepObjectsMerge(target[key], source[key]));
|
||||
}
|
||||
Object.assign(target || {}, source);
|
||||
return target;
|
||||
};
|
||||
//#endregion
|
||||
//#region node_modules/@coreui/utils/dist/esm/getStyle.js
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* CoreUI Utils (v2.0.1): getStyle.ts
|
||||
* Licensed under MIT (https://github.com/coreui/coreui-utils/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var getStyle = function(property, element) {
|
||||
if (typeof window === "undefined") return;
|
||||
if (typeof document === "undefined") return;
|
||||
var _element = element !== null && element !== void 0 ? element : document.body;
|
||||
return window.getComputedStyle(_element, null).getPropertyValue(property).replace(/^\s/, "");
|
||||
};
|
||||
//#endregion
|
||||
//#region node_modules/@coreui/utils/dist/esm/getColor.js
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* CoreUI Utils (v2.0.1): getColor.ts
|
||||
* Licensed under MIT (https://github.com/coreui/coreui-utils/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var getColor = function(rawProperty, element) {
|
||||
if (element === void 0) element = document.body;
|
||||
var style = getStyle("--".concat(rawProperty), element);
|
||||
return style ? style : rawProperty;
|
||||
};
|
||||
//#endregion
|
||||
//#region node_modules/@coreui/utils/dist/esm/hexToRgb.js
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* CoreUI Utils (v2.0.1): hexToRgb.ts
|
||||
* Licensed under MIT (https://github.com/coreui/coreui-utils/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var hexToRgb = function(color) {
|
||||
if (typeof color === "undefined") throw new TypeError("Hex color is not defined");
|
||||
color.match(/^#(?:[0-9a-f]{3}){1,2}$/i);
|
||||
var r;
|
||||
var g;
|
||||
var b;
|
||||
if (color.length === 7) {
|
||||
r = parseInt(color.slice(1, 3), 16);
|
||||
g = parseInt(color.slice(3, 5), 16);
|
||||
b = parseInt(color.slice(5, 7), 16);
|
||||
} else {
|
||||
r = parseInt(color.slice(1, 2), 16);
|
||||
g = parseInt(color.slice(2, 3), 16);
|
||||
b = parseInt(color.slice(3, 5), 16);
|
||||
}
|
||||
return "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ")");
|
||||
};
|
||||
//#endregion
|
||||
//#region node_modules/@coreui/utils/dist/esm/hexToRgba.js
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* CoreUI Utils (v2.0.1): hexToRgba.ts
|
||||
* Licensed under MIT (https://github.com/coreui/coreui-utils/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var hexToRgba = function(color, opacity) {
|
||||
if (opacity === void 0) opacity = 100;
|
||||
if (typeof color === "undefined") throw new TypeError("Hex color is not defined");
|
||||
if (!color.match(/^#(?:[0-9a-f]{3}){1,2}$/i)) throw new Error("".concat(color, " is not a valid hex color"));
|
||||
var r;
|
||||
var g;
|
||||
var b;
|
||||
if (color.length === 7) {
|
||||
r = parseInt(color.slice(1, 3), 16);
|
||||
g = parseInt(color.slice(3, 5), 16);
|
||||
b = parseInt(color.slice(5, 7), 16);
|
||||
} else {
|
||||
r = parseInt(color.slice(1, 2), 16);
|
||||
g = parseInt(color.slice(2, 3), 16);
|
||||
b = parseInt(color.slice(3, 5), 16);
|
||||
}
|
||||
return "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(opacity / 100, ")");
|
||||
};
|
||||
//#endregion
|
||||
//#region node_modules/@coreui/utils/dist/esm/makeUid.js
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* CoreUI Utils (v2.0.1): makeUid.ts
|
||||
* Licensed under MIT (https://github.com/coreui/coreui-utils/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var makeUid = function() {
|
||||
return "uid-" + Math.random().toString(36).substr(2);
|
||||
};
|
||||
//#endregion
|
||||
//#region node_modules/@coreui/utils/dist/esm/omitByKeys.js
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* CoreUI Utils (v2.0.1): omitByKeys.ts
|
||||
* Licensed under MIT (https://github.com/coreui/coreui-utils/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var omitByKeys = function(originalObject, keys) {
|
||||
var newObj = {};
|
||||
var objKeys = Object.keys(originalObject);
|
||||
for (var i = 0; i < objKeys.length; i++) !keys.includes(objKeys[i]) && (newObj[objKeys[i]] = originalObject[objKeys[i]]);
|
||||
return newObj;
|
||||
};
|
||||
//#endregion
|
||||
//#region node_modules/@coreui/utils/dist/esm/pickByKeys.js
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* CoreUI Utils (v2.0.1): pickByKeys.ts
|
||||
* Licensed under MIT (https://github.com/coreui/coreui-utils/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var pickByKeys = function(originalObject, keys) {
|
||||
var newObj = {};
|
||||
for (var i = 0; i < keys.length; i++) newObj[keys[i]] = originalObject[keys[i]];
|
||||
return newObj;
|
||||
};
|
||||
//#endregion
|
||||
//#region node_modules/@coreui/utils/dist/esm/rgbToHex.js
|
||||
/**
|
||||
* --------------------------------------------------------------------------
|
||||
* CoreUI Utils (v2.0.1): rgbToHex.ts
|
||||
* Licensed under MIT (https://github.com/coreui/coreui-utils/blob/main/LICENSE)
|
||||
* --------------------------------------------------------------------------
|
||||
*/
|
||||
var rgbToHex = function(color) {
|
||||
if (typeof color === "undefined") throw new TypeError("Hex color is not defined");
|
||||
if (color === "transparent") return "#00000000";
|
||||
var rgb = color.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);
|
||||
if (!rgb) throw new Error("".concat(color, " is not a valid rgb color"));
|
||||
var r = "0".concat(parseInt(rgb[1], 10).toString(16));
|
||||
var g = "0".concat(parseInt(rgb[2], 10).toString(16));
|
||||
var b = "0".concat(parseInt(rgb[3], 10).toString(16));
|
||||
return "#".concat(r.slice(-2)).concat(g.slice(-2)).concat(b.slice(-2));
|
||||
};
|
||||
//#endregion
|
||||
export { deepObjectsMerge, getColor, getStyle, hexToRgb, hexToRgba, makeUid, omitByKeys, pickByKeys, rgbToHex };
|
||||
|
||||
//# sourceMappingURL=@coreui_utils.js.map
|
||||
+1
File diff suppressed because one or more lines are too long
+15840
File diff suppressed because it is too large
Load Diff
+1
File diff suppressed because one or more lines are too long
+10120
File diff suppressed because it is too large
Load Diff
+1
File diff suppressed because one or more lines are too long
+82
@@ -0,0 +1,82 @@
|
||||
{
|
||||
"hash": "24b8d5d0",
|
||||
"configHash": "10ab3426",
|
||||
"lockfileHash": "8ab86554",
|
||||
"browserHash": "682cedef",
|
||||
"optimized": {
|
||||
"@coreui/icons-vue": {
|
||||
"src": "../../@coreui/icons-vue/dist/index.es.js",
|
||||
"file": "@coreui_icons-vue.js",
|
||||
"fileHash": "66cf0d91",
|
||||
"needsInterop": false
|
||||
},
|
||||
"@coreui/icons": {
|
||||
"src": "../../@coreui/icons/dist/esm/index.js",
|
||||
"file": "@coreui_icons.js",
|
||||
"fileHash": "0abe2e2c",
|
||||
"needsInterop": false
|
||||
},
|
||||
"@coreui/utils": {
|
||||
"src": "../../@coreui/utils/dist/esm/index.js",
|
||||
"file": "@coreui_utils.js",
|
||||
"fileHash": "abb66f41",
|
||||
"needsInterop": false
|
||||
},
|
||||
"@coreui/vue-chartjs": {
|
||||
"src": "../../@coreui/vue-chartjs/dist/esm/index.js",
|
||||
"file": "@coreui_vue-chartjs.js",
|
||||
"fileHash": "b960fb4f",
|
||||
"needsInterop": false
|
||||
},
|
||||
"@coreui/vue": {
|
||||
"src": "../../@coreui/vue/dist/esm/index.js",
|
||||
"file": "@coreui_vue.js",
|
||||
"fileHash": "a426af0d",
|
||||
"needsInterop": false
|
||||
},
|
||||
"axios": {
|
||||
"src": "../../axios/index.js",
|
||||
"file": "axios.js",
|
||||
"fileHash": "c845c278",
|
||||
"needsInterop": false
|
||||
},
|
||||
"pinia": {
|
||||
"src": "../../pinia/dist/pinia.mjs",
|
||||
"file": "pinia.js",
|
||||
"fileHash": "bb050b1f",
|
||||
"needsInterop": false
|
||||
},
|
||||
"simplebar-vue": {
|
||||
"src": "../../simplebar-vue/dist/simplebar-vue.esm.js",
|
||||
"file": "simplebar-vue.js",
|
||||
"fileHash": "fbc973f2",
|
||||
"needsInterop": false
|
||||
},
|
||||
"vue-router": {
|
||||
"src": "../../vue-router/dist/vue-router.js",
|
||||
"file": "vue-router.js",
|
||||
"fileHash": "4a4ad759",
|
||||
"needsInterop": false
|
||||
},
|
||||
"vue": {
|
||||
"src": "../../vue/dist/vue.runtime.esm-bundler.js",
|
||||
"file": "vue.js",
|
||||
"fileHash": "820a5047",
|
||||
"needsInterop": false
|
||||
}
|
||||
},
|
||||
"chunks": {
|
||||
"chunk-D7D4PA-g": {
|
||||
"file": "chunk-D7D4PA-g.js",
|
||||
"isDynamicEntry": false
|
||||
},
|
||||
"dist-CY5vkPpf": {
|
||||
"file": "dist-CY5vkPpf.js",
|
||||
"isDynamicEntry": false
|
||||
},
|
||||
"vue.runtime.esm-bundler-BbnC8aGa": {
|
||||
"file": "vue.runtime.esm-bundler-BbnC8aGa.js",
|
||||
"isDynamicEntry": false
|
||||
}
|
||||
}
|
||||
}
|
||||
+3418
File diff suppressed because it is too large
Load Diff
+1
File diff suppressed because one or more lines are too long
+13
@@ -0,0 +1,13 @@
|
||||
//#region \0rolldown/runtime.js
|
||||
var __defProp = Object.defineProperty;
|
||||
var __exportAll = (all, no_symbols) => {
|
||||
let target = {};
|
||||
for (var name in all) __defProp(target, name, {
|
||||
get: all[name],
|
||||
enumerable: true
|
||||
});
|
||||
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
||||
return target;
|
||||
};
|
||||
//#endregion
|
||||
export { __exportAll as t };
|
||||
+163
@@ -0,0 +1,163 @@
|
||||
//#region node_modules/hookable/dist/index.mjs
|
||||
function flatHooks(configHooks, hooks = {}, parentName) {
|
||||
for (const key in configHooks) {
|
||||
const subHook = configHooks[key];
|
||||
const name = parentName ? `${parentName}:${key}` : key;
|
||||
if (typeof subHook === "object" && subHook !== null) flatHooks(subHook, hooks, name);
|
||||
else if (typeof subHook === "function") hooks[name] = subHook;
|
||||
}
|
||||
return hooks;
|
||||
}
|
||||
var defaultTask = { run: (function_) => function_() };
|
||||
var _createTask = () => defaultTask;
|
||||
var createTask = typeof console.createTask !== "undefined" ? console.createTask : _createTask;
|
||||
function serialTaskCaller(hooks, args) {
|
||||
const task = createTask(args.shift());
|
||||
return hooks.reduce((promise, hookFunction) => promise.then(() => task.run(() => hookFunction(...args))), Promise.resolve());
|
||||
}
|
||||
function parallelTaskCaller(hooks, args) {
|
||||
const task = createTask(args.shift());
|
||||
return Promise.all(hooks.map((hook) => task.run(() => hook(...args))));
|
||||
}
|
||||
function callEachWith(callbacks, arg0) {
|
||||
for (const callback of [...callbacks]) callback(arg0);
|
||||
}
|
||||
var Hookable = class {
|
||||
constructor() {
|
||||
this._hooks = {};
|
||||
this._before = void 0;
|
||||
this._after = void 0;
|
||||
this._deprecatedMessages = void 0;
|
||||
this._deprecatedHooks = {};
|
||||
this.hook = this.hook.bind(this);
|
||||
this.callHook = this.callHook.bind(this);
|
||||
this.callHookWith = this.callHookWith.bind(this);
|
||||
}
|
||||
hook(name, function_, options = {}) {
|
||||
if (!name || typeof function_ !== "function") return () => {};
|
||||
const originalName = name;
|
||||
let dep;
|
||||
while (this._deprecatedHooks[name]) {
|
||||
dep = this._deprecatedHooks[name];
|
||||
name = dep.to;
|
||||
}
|
||||
if (dep && !options.allowDeprecated) {
|
||||
let message = dep.message;
|
||||
if (!message) message = `${originalName} hook has been deprecated` + (dep.to ? `, please use ${dep.to}` : "");
|
||||
if (!this._deprecatedMessages) this._deprecatedMessages = /* @__PURE__ */ new Set();
|
||||
if (!this._deprecatedMessages.has(message)) {
|
||||
console.warn(message);
|
||||
this._deprecatedMessages.add(message);
|
||||
}
|
||||
}
|
||||
if (!function_.name) try {
|
||||
Object.defineProperty(function_, "name", {
|
||||
get: () => "_" + name.replace(/\W+/g, "_") + "_hook_cb",
|
||||
configurable: true
|
||||
});
|
||||
} catch {}
|
||||
this._hooks[name] = this._hooks[name] || [];
|
||||
this._hooks[name].push(function_);
|
||||
return () => {
|
||||
if (function_) {
|
||||
this.removeHook(name, function_);
|
||||
function_ = void 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
hookOnce(name, function_) {
|
||||
let _unreg;
|
||||
let _function = (...arguments_) => {
|
||||
if (typeof _unreg === "function") _unreg();
|
||||
_unreg = void 0;
|
||||
_function = void 0;
|
||||
return function_(...arguments_);
|
||||
};
|
||||
_unreg = this.hook(name, _function);
|
||||
return _unreg;
|
||||
}
|
||||
removeHook(name, function_) {
|
||||
if (this._hooks[name]) {
|
||||
const index = this._hooks[name].indexOf(function_);
|
||||
if (index !== -1) this._hooks[name].splice(index, 1);
|
||||
if (this._hooks[name].length === 0) delete this._hooks[name];
|
||||
}
|
||||
}
|
||||
deprecateHook(name, deprecated) {
|
||||
this._deprecatedHooks[name] = typeof deprecated === "string" ? { to: deprecated } : deprecated;
|
||||
const _hooks = this._hooks[name] || [];
|
||||
delete this._hooks[name];
|
||||
for (const hook of _hooks) this.hook(name, hook);
|
||||
}
|
||||
deprecateHooks(deprecatedHooks) {
|
||||
Object.assign(this._deprecatedHooks, deprecatedHooks);
|
||||
for (const name in deprecatedHooks) this.deprecateHook(name, deprecatedHooks[name]);
|
||||
}
|
||||
addHooks(configHooks) {
|
||||
const hooks = flatHooks(configHooks);
|
||||
const removeFns = Object.keys(hooks).map((key) => this.hook(key, hooks[key]));
|
||||
return () => {
|
||||
for (const unreg of removeFns.splice(0, removeFns.length)) unreg();
|
||||
};
|
||||
}
|
||||
removeHooks(configHooks) {
|
||||
const hooks = flatHooks(configHooks);
|
||||
for (const key in hooks) this.removeHook(key, hooks[key]);
|
||||
}
|
||||
removeAllHooks() {
|
||||
for (const key in this._hooks) delete this._hooks[key];
|
||||
}
|
||||
callHook(name, ...arguments_) {
|
||||
arguments_.unshift(name);
|
||||
return this.callHookWith(serialTaskCaller, name, ...arguments_);
|
||||
}
|
||||
callHookParallel(name, ...arguments_) {
|
||||
arguments_.unshift(name);
|
||||
return this.callHookWith(parallelTaskCaller, name, ...arguments_);
|
||||
}
|
||||
callHookWith(caller, name, ...arguments_) {
|
||||
const event = this._before || this._after ? {
|
||||
name,
|
||||
args: arguments_,
|
||||
context: {}
|
||||
} : void 0;
|
||||
if (this._before) callEachWith(this._before, event);
|
||||
const result = caller(name in this._hooks ? [...this._hooks[name]] : [], arguments_);
|
||||
if (result instanceof Promise) return result.finally(() => {
|
||||
if (this._after && event) callEachWith(this._after, event);
|
||||
});
|
||||
if (this._after && event) callEachWith(this._after, event);
|
||||
return result;
|
||||
}
|
||||
beforeEach(function_) {
|
||||
this._before = this._before || [];
|
||||
this._before.push(function_);
|
||||
return () => {
|
||||
if (this._before !== void 0) {
|
||||
const index = this._before.indexOf(function_);
|
||||
if (index !== -1) this._before.splice(index, 1);
|
||||
}
|
||||
};
|
||||
}
|
||||
afterEach(function_) {
|
||||
this._after = this._after || [];
|
||||
this._after.push(function_);
|
||||
return () => {
|
||||
if (this._after !== void 0) {
|
||||
const index = this._after.indexOf(function_);
|
||||
if (index !== -1) this._after.splice(index, 1);
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
function createHooks() {
|
||||
return new Hookable();
|
||||
}
|
||||
//#endregion
|
||||
//#region node_modules/birpc/dist/index.mjs
|
||||
var { clearTimeout, setTimeout } = globalThis;
|
||||
Math.random.bind(Math);
|
||||
//#endregion
|
||||
export { createHooks as t };
|
||||
|
||||
//# sourceMappingURL=dist-CY5vkPpf.js.map
|
||||
+1
File diff suppressed because one or more lines are too long
+3
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"type": "module"
|
||||
}
|
||||
+4983
File diff suppressed because it is too large
Load Diff
+1
File diff suppressed because one or more lines are too long
+1399
File diff suppressed because it is too large
Load Diff
+1
File diff suppressed because one or more lines are too long
+6224
File diff suppressed because it is too large
Load Diff
+1
File diff suppressed because one or more lines are too long
+2
@@ -0,0 +1,2 @@
|
||||
import { $ as createTextVNode, $n as toRefs, $t as resolveTransitionHooks, A as ErrorCodes, An as customRef, At as onBeforeMount, B as callWithErrorHandling, Bn as markRaw, Bt as onUpdated, C as vShow, Cn as withDirectives, Ct as isRuntimeOnly, D as BaseTransitionPropsValidators, Dn as ReactiveEffect, Dt as mergeProps, E as BaseTransition, En as EffectScope, Et as mergeModels, F as Suspense, Fn as isProxy, Ft as onMounted, G as createBlock, Gn as readonly, Gt as queuePostFlushCb, H as compatUtils, Hn as onWatcherCleanup, Ht as popScopeId, I as Teleport, In as isReactive, It as onRenderTracked, J as createHydrationRenderer, Jn as shallowReadonly, Jt as renderSlot, K as createCommentVNode, Kn as ref, Kt as registerRuntimeCompiler, L as Text, Ln as isReadonly, Lt as onRenderTriggered, M as Fragment, Mn as effectScope, Mt as onBeforeUpdate, N as KeepAlive, Nn as getCurrentScope, Nt as onDeactivated, O as Comment, On as TrackOpTypes, Ot as nextTick, P as Static, Pn as getCurrentWatcher, Pt as onErrorCaptured, Q as createStaticVNode, Qn as toRef, Qt as resolveFilter, R as assertNumber, Rn as isRef, Rt as onServerPrefetch, S as vModelText, Sn as withDefaults, St as isMemoSame, T as withModifiers, Tn as withScopeId, Tt as mergeDefaults, U as computed, Un as proxyRefs, Ut as provide, V as cloneVNode, Vn as onScopeDispose, Vt as openBlock, W as createBaseVNode, Wn as reactive, Wt as pushScopeId, X as createRenderer, Xn as stop, Xt as resolveDirective, Y as createPropsRestProxy, Yn as shallowRef, Yt as resolveComponent, Z as createSlots, Zn as toRaw, Zt as resolveDynamicComponent, _ as useShadowRoot, _n as watchEffect, _t as hydrateOnInteraction, a as createApp, an as toHandlers, ar as normalizeClass, at as defineModel, b as vModelRadio, bn as withAsyncContext, bt as initCustomFormatter, c as defineSSRCustomElement, cn as useId, cr as toDisplayString, ct as defineSlots, d as nodeOps, dn as useSlots, dt as getTransitionRawChildren, en as setBlockTracking, er as toValue, et as createVNode, f as patchProp, fn as useTemplateRef, ft as guardReactiveProps, g as useHost, gn as watch, gt as hydrateOnIdle, h as useCssVars, hn as warn, ht as hasInjectionContext, i as VueElement, in as ssrUtils, ir as capitalize, it as defineExpose, j as ErrorTypeStrings, jn as effect, jt as onBeforeUnmount, k as DeprecationTypes, kn as TriggerOpTypes, kt as onActivated, l as hydrate, ln as useModel, lr as toHandlerKey, lt as devtools, m as useCssModule, mn as version, mt as handleError, n as Transition, nn as setTransitionHooks, nr as unref, nt as defineComponent, o as createSSRApp, on as transformVNodeArgs, or as normalizeProps, ot as defineOptions, p as render, pn as useTransitionState, pt as h, q as createElementBlock, qn as shallowReactive, qt as renderList, r as TransitionGroup, rn as ssrContextKey, rr as camelize, rt as defineEmits, s as defineCustomElement, sn as useAttrs, sr as normalizeStyle, st as defineProps, t as compile, tn as setDevtoolsHook, tr as triggerRef, tt as defineAsyncComponent, u as initDirectivesForSSR, un as useSSRContext, ut as getCurrentInstance, v as vModelCheckbox, vn as watchPostEffect, vt as hydrateOnMediaQuery, w as withKeys, wn as withMemo, wt as isVNode, x as vModelSelect, xn as withCtx, xt as inject, y as vModelDynamic, yn as watchSyncEffect, yt as hydrateOnVisible, z as callWithAsyncErrorHandling, zn as isShallow, zt as onUnmounted } from "./vue.runtime.esm-bundler-BbnC8aGa.js";
|
||||
export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, EffectScope, ErrorCodes, ErrorTypeStrings, Fragment, KeepAlive, ReactiveEffect, Static, Suspense, Teleport, Text, TrackOpTypes, Transition, TransitionGroup, TriggerOpTypes, VueElement, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, compile, computed, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSSRCustomElement, defineSlots, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getCurrentWatcher, getTransitionRawChildren, guardReactiveProps, h, handleError, hasInjectionContext, hydrate, hydrateOnIdle, hydrateOnInteraction, hydrateOnMediaQuery, hydrateOnVisible, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isShallow, isVNode, markRaw, mergeDefaults, mergeModels, mergeProps, nextTick, nodeOps, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, openBlock, patchProp, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toValue, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useHost, useId, useModel, useSSRContext, useShadowRoot, useSlots, useTemplateRef, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
|
||||
+8626
File diff suppressed because it is too large
Load Diff
+1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user