duck-vue-components 0.2.99 → 0.3.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.
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./chunk-pbuEa-1d.js";
2
- import { Et as isHTML, Lt as renderTemplate, P as withInstall, a as bd09ToGcj02, h as http, n as PathUtils, o as gcj02ToBd09, qt as loadScript, r as createFormData, s as exportExcel, t as FormDataKey, tt as assignmentData, u as useAppConfigStore, ut as transDataToString, xt as isComponent } from "./utils-Cx01ubSA.js";
2
+ import { Et as isHTML, Lt as renderTemplate, P as withInstall, a as bd09ToGcj02, h as http, n as PathUtils, o as gcj02ToBd09, qt as loadScript, r as createFormData, s as exportExcel, t as FormDataKey, tt as assignmentData, u as useAppConfigStore, ut as transDataToString, xt as isComponent } from "./utils-brs6QYsu.js";
3
3
  import { a as localeOptions, i as locale, t as i18n, u as t$3 } from "./locale-BscyDzS3.js";
4
4
  import { useColumnsSettingStore, useLocalSettingStore } from "./stores.js";
5
5
  import { useFormValue } from "./hooks.js";
@@ -1,5 +1,5 @@
1
1
  const require_locale = require("./locale-BTmar3YP.cjs");
2
- const require_utils = require("./utils-CJUw1Ktb.cjs");
2
+ const require_utils = require("./utils-Cl3bl6VE.cjs");
3
3
  const require_stores = require("./stores.cjs");
4
4
  const require_hooks = require("./hooks.cjs");
5
5
  let element_plus = require("element-plus");
package/dist/controls.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_controls = require("./controls-OBwn6jcz.cjs");
2
+ const require_controls = require("./controls-gNBoiGgL.cjs");
3
3
  Object.defineProperty(exports, "RwAffix", {
4
4
  enumerable: true,
5
5
  get: function() {
package/dist/controls.js CHANGED
@@ -1,2 +1,2 @@
1
- import { A as mergeInput_exports, B as popconfirm_exports, C as upload_exports, D as mergeSelect_exports, E as slider_exports, F as input_exports, G as alert_exports, I as divider_exports, K as affix_exports, L as dialog_exports, M as inputNumber_exports, N as inputTag_exports, O as image_exports, P as select_exports, R as buttonGroup_exports, S as tree_exports, T as map_exports, U as autocomplete_exports, V as button_exports, W as avatar_exports, _ as segmented_exports, a as pageTable_exports, b as tag_exports, d as pageBase_exports, f as RwForm, g as RwFormItems, h as tabPane_exports, i as mTreeSTable_exports, j as radio_exports, k as switch_exports, l as pageStruct_exports, m as tabs_exports, n as search_exports, r as progress_exports, s as pageForm_exports, u as tableStruct_exports, v as table_exports, w as pagination_exports, x as text_exports, y as tagComp_exports, z as dropdown_exports } from "./controls-BNuqAbGZ.js";
1
+ import { A as mergeInput_exports, B as popconfirm_exports, C as upload_exports, D as mergeSelect_exports, E as slider_exports, F as input_exports, G as alert_exports, I as divider_exports, K as affix_exports, L as dialog_exports, M as inputNumber_exports, N as inputTag_exports, O as image_exports, P as select_exports, R as buttonGroup_exports, S as tree_exports, T as map_exports, U as autocomplete_exports, V as button_exports, W as avatar_exports, _ as segmented_exports, a as pageTable_exports, b as tag_exports, d as pageBase_exports, f as RwForm, g as RwFormItems, h as tabPane_exports, i as mTreeSTable_exports, j as radio_exports, k as switch_exports, l as pageStruct_exports, m as tabs_exports, n as search_exports, r as progress_exports, s as pageForm_exports, u as tableStruct_exports, v as table_exports, w as pagination_exports, x as text_exports, y as tagComp_exports, z as dropdown_exports } from "./controls-D9f-spZ0.js";
2
2
  export { affix_exports as RwAffix, alert_exports as RwAlert, autocomplete_exports as RwAutocomplete, avatar_exports as RwAvatar, button_exports as RwButton, buttonGroup_exports as RwButtonGroup, dialog_exports as RwDialog, divider_exports as RwDivider, dropdown_exports as RwDropdown, RwForm, RwFormItems, image_exports as RwImage, input_exports as RwInput, inputNumber_exports as RwInputNumber, inputTag_exports as RwInputTag, mTreeSTable_exports as RwMTreeSTable, map_exports as RwMap, mergeInput_exports as RwMergeInput, mergeSelect_exports as RwMergeSelect, pageBase_exports as RwPageBase, pageForm_exports as RwPageForm, pageTable_exports as RwPageTable, pagination_exports as RwPagination, popconfirm_exports as RwPopconfirm, progress_exports as RwProgress, radio_exports as RwRadio, search_exports as RwSearch, segmented_exports as RwSegmented, select_exports as RwSelect, slider_exports as RwSlider, switch_exports as RwSwitch, tabPane_exports as RwTabPane, table_exports as RwTable, tabs_exports as RwTabs, tag_exports as RwTag, tagComp_exports as RwTagComp, text_exports as RwText, tree_exports as RwTree, upload_exports as RwUpload, pageStruct_exports as pageStruct, tableStruct_exports as tableStruct };
package/dist/hooks.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("./locale-BTmar3YP.cjs");
3
- const require_utils = require("./utils-CJUw1Ktb.cjs");
3
+ const require_utils = require("./utils-Cl3bl6VE.cjs");
4
4
  let vue = require("vue");
5
5
  //#region src/packages/hooks/use-namespace/index.ts
6
6
  const defaultNamespace = "el";
package/dist/hooks.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as FormDataKey } from "./utils-Cx01ubSA.js";
1
+ import { t as FormDataKey } from "./utils-brs6QYsu.js";
2
2
  import { computed, getCurrentInstance, inject, onUnmounted, ref, unref } from "vue";
3
3
  //#region src/packages/hooks/use-namespace/index.ts
4
4
  const defaultNamespace = "el";
package/dist/index.cjs CHANGED
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_locale = require("./locale-BTmar3YP.cjs");
6
- const require_controls = require("./controls-OBwn6jcz.cjs");
6
+ const require_controls = require("./controls-gNBoiGgL.cjs");
7
7
  require("element-plus/dist/index.css");
8
8
  require("element-plus/theme-chalk/dark/css-vars.css");
9
9
  let element_plus = require("element-plus");
@@ -25,6 +25,7 @@ const makeInstaller = (components = []) => {
25
25
  apiBaseUrl,
26
26
  privateKey
27
27
  });
28
+ app.config.globalProperties.$privateKey = privateKey;
28
29
  components.forEach((component) => {
29
30
  app.use(component);
30
31
  });
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { d as tw_default, f as en_default, p as cn_default } from "./locale-BscyDzS3.js";
2
- import { t as controls_exports } from "./controls-BNuqAbGZ.js";
2
+ import { t as controls_exports } from "./controls-D9f-spZ0.js";
3
3
  import "element-plus/dist/index.css";
4
4
  import "element-plus/theme-chalk/dark/css-vars.css";
5
5
  import ElementPlus from "element-plus";
@@ -22,6 +22,7 @@ const makeInstaller = (components = []) => {
22
22
  apiBaseUrl,
23
23
  privateKey
24
24
  });
25
+ app.config.globalProperties.$privateKey = privateKey;
25
26
  components.forEach((component) => {
26
27
  app.use(component);
27
28
  });
package/dist/pages.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_locale = require("./locale-BTmar3YP.cjs");
3
- const require_utils = require("./utils-CJUw1Ktb.cjs");
4
- const require_controls = require("./controls-OBwn6jcz.cjs");
3
+ const require_utils = require("./utils-Cl3bl6VE.cjs");
4
+ const require_controls = require("./controls-gNBoiGgL.cjs");
5
5
  const require_stores = require("./stores.cjs");
6
6
  const require_hooks = require("./hooks.cjs");
7
7
  let element_plus = require("element-plus");
package/dist/pages.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./chunk-pbuEa-1d.js";
2
- import { P as withInstall, u as useAppConfigStore } from "./utils-Cx01ubSA.js";
2
+ import { P as withInstall, u as useAppConfigStore } from "./utils-brs6QYsu.js";
3
3
  import { a as localeOptions, l as setLanguage, o as mergeLocaleMessage, u as t } from "./locale-BscyDzS3.js";
4
- import { H as _plugin_vue_export_helper_default, c as init$2, g as RwFormItems, o as init, p as init$1, s as pageForm_exports } from "./controls-BNuqAbGZ.js";
4
+ import { H as _plugin_vue_export_helper_default, c as init$2, g as RwFormItems, o as init, p as init$1, s as pageForm_exports } from "./controls-D9f-spZ0.js";
5
5
  import { useLocalSettingStore } from "./stores.js";
6
6
  import { useMouse } from "./hooks.js";
7
7
  import { ElAlert, ElMessage } from "element-plus";
package/dist/stores.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_locale = require("./locale-BTmar3YP.cjs");
3
- const require_utils = require("./utils-CJUw1Ktb.cjs");
3
+ const require_utils = require("./utils-Cl3bl6VE.cjs");
4
4
  let element_plus = require("element-plus");
5
5
  let pinia = require("pinia");
6
6
  let _vueuse_core = require("@vueuse/core");
package/dist/stores.js CHANGED
@@ -1,4 +1,4 @@
1
- import { f as rwDecode, h as http, p as rwEncode, u as useAppConfigStore } from "./utils-Cx01ubSA.js";
1
+ import { f as rwDecode, h as http, p as rwEncode, u as useAppConfigStore } from "./utils-brs6QYsu.js";
2
2
  import { ElMessage } from "element-plus";
3
3
  import { createPinia, defineStore } from "pinia";
4
4
  import { useDark, useToggle } from "@vueuse/core";
@@ -959,6 +959,7 @@ const useHttp = () => http;
959
959
  //#endregion
960
960
  //#region src/packages/utils/encrypt.ts
961
961
  const config = (0, vue.inject)("frameworkConfig");
962
+ console.log("Using frameworkConfig in encrypt.ts:", config);
962
963
  function rwEncode(data, privateKey = config.privateKey || "") {
963
964
  const dataString = JSON.stringify(data);
964
965
  const keyHex = crypto_js.default.enc.Utf8.parse(privateKey);
@@ -955,6 +955,7 @@ const useHttp = () => http;
955
955
  //#endregion
956
956
  //#region src/packages/utils/encrypt.ts
957
957
  const config = inject("frameworkConfig");
958
+ console.log("Using frameworkConfig in encrypt.ts:", config);
958
959
  function rwEncode(data, privateKey = config.privateKey || "") {
959
960
  const dataString = JSON.stringify(data);
960
961
  const keyHex = CryptoJS.enc.Utf8.parse(privateKey);
package/dist/utils.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("./locale-BTmar3YP.cjs");
3
- const require_utils = require("./utils-CJUw1Ktb.cjs");
3
+ const require_utils = require("./utils-Cl3bl6VE.cjs");
4
4
  let _vue_shared = require("@vue/shared");
5
5
  let lodash_unified = require("lodash-unified");
6
6
  let _vueuse_core = require("@vueuse/core");
package/dist/utils.js CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as debugWarn, $t as isFocusable, A as buildProps, At as isPromise, B as getScrollContainer, Bt as getClientXY, C as toRawType, Ct as isElement, D as uniqueBy, Dt as isNumber, E as unique, Et as isHTML, F as withInstallDirective, Ft as isUndefined, G as addClass, Gt as isFirefox, H as getScrollTop, Ht as getOffsetTopDistance, I as withInstallFunction, It as isWindow, J as getStyle, Jt as composeEventHandlers, K as addUnit, Kt as isIOS, L as getElement, Lt as renderTemplate, M as epPropKey, Mt as isString, N as isEpProp, Nt as isStringNumber, O as uniqueByFn, Ot as isObject, P as withInstall, Pt as isSymbol, Q as setStyle, Qt as getSibling, R as animateScrollTo, Rt as stringToArray, S as NOOP, St as isDate, T as ensureArray, Tt as isFunction, U as isScroll, Ut as isInContainer, V as getScrollElement, Vt as getOffsetTop, W as scrollIntoView, Wt as isClient, X as removeClass, Xt as attemptFocus, Y as hasClass, Yt as whenMouse, Z as removeStyle, Zt as focusNode, _ as useHttp, _t as cAF, a as bd09ToGcj02, at as getProp, b as generateId, bt as isBoolean, c as exportExcelAll, ct as safeGet, d as md5, dt as validateObjectStructure, en as isLeaf, et as throwError, f as rwDecode, ft as camelize, g as initHttp, gt as kebabCase, h as http, ht as hyphenate, i as useFormField, it as entriesOf, j as definePropType, jt as isPropAbsent, k as buildProp, kt as isPlainObject, l as loadConfig, lt as safeSet, m as Http, mt as escapeStringRegexp, n as PathUtils, nn as obtainAllFocusableElements, nt as deepMerge, o as gcj02ToBd09, ot as hasOwn, p as rwEncode, pt as capitalize, q as classNameToArray, qt as loadScript, r as createFormData, rn as triggerEvent, rt as deepMergeInPlace, s as exportExcel, st as keysOf, t as FormDataKey, tn as isVisible, tt as assignmentData, ut as transDataToString, v as throttleByRaf, vt as rAF, w as castArray, wt as isEmpty, x as getRandomInt, xt as isComponent, y as mutable, yt as isArray, z as getScrollBarWidth, zt as easeInOutCubic } from "./utils-Cx01ubSA.js";
1
+ import { $ as debugWarn, $t as isFocusable, A as buildProps, At as isPromise, B as getScrollContainer, Bt as getClientXY, C as toRawType, Ct as isElement, D as uniqueBy, Dt as isNumber, E as unique, Et as isHTML, F as withInstallDirective, Ft as isUndefined, G as addClass, Gt as isFirefox, H as getScrollTop, Ht as getOffsetTopDistance, I as withInstallFunction, It as isWindow, J as getStyle, Jt as composeEventHandlers, K as addUnit, Kt as isIOS, L as getElement, Lt as renderTemplate, M as epPropKey, Mt as isString, N as isEpProp, Nt as isStringNumber, O as uniqueByFn, Ot as isObject, P as withInstall, Pt as isSymbol, Q as setStyle, Qt as getSibling, R as animateScrollTo, Rt as stringToArray, S as NOOP, St as isDate, T as ensureArray, Tt as isFunction, U as isScroll, Ut as isInContainer, V as getScrollElement, Vt as getOffsetTop, W as scrollIntoView, Wt as isClient, X as removeClass, Xt as attemptFocus, Y as hasClass, Yt as whenMouse, Z as removeStyle, Zt as focusNode, _ as useHttp, _t as cAF, a as bd09ToGcj02, at as getProp, b as generateId, bt as isBoolean, c as exportExcelAll, ct as safeGet, d as md5, dt as validateObjectStructure, en as isLeaf, et as throwError, f as rwDecode, ft as camelize, g as initHttp, gt as kebabCase, h as http, ht as hyphenate, i as useFormField, it as entriesOf, j as definePropType, jt as isPropAbsent, k as buildProp, kt as isPlainObject, l as loadConfig, lt as safeSet, m as Http, mt as escapeStringRegexp, n as PathUtils, nn as obtainAllFocusableElements, nt as deepMerge, o as gcj02ToBd09, ot as hasOwn, p as rwEncode, pt as capitalize, q as classNameToArray, qt as loadScript, r as createFormData, rn as triggerEvent, rt as deepMergeInPlace, s as exportExcel, st as keysOf, t as FormDataKey, tn as isVisible, tt as assignmentData, ut as transDataToString, v as throttleByRaf, vt as rAF, w as castArray, wt as isEmpty, x as getRandomInt, xt as isComponent, y as mutable, yt as isArray, z as getScrollBarWidth, zt as easeInOutCubic } from "./utils-brs6QYsu.js";
2
2
  export { FormDataKey, Http, NOOP, PathUtils, addClass, addUnit, animateScrollTo, assignmentData, attemptFocus, bd09ToGcj02, buildProp, buildProps, cAF, camelize, capitalize, castArray, classNameToArray, composeEventHandlers, createFormData, debugWarn, deepMerge, deepMergeInPlace, definePropType, easeInOutCubic, ensureArray, entriesOf, epPropKey, escapeStringRegexp, exportExcel, exportExcelAll, focusNode, gcj02ToBd09, generateId, getClientXY, getElement, getOffsetTop, getOffsetTopDistance, getProp, getRandomInt, getScrollBarWidth, getScrollContainer, getScrollElement, getScrollTop, getSibling, getStyle, hasClass, hasOwn, http, hyphenate, initHttp, isArray, isBoolean, isClient, isComponent, isDate, isElement, isEmpty, isEpProp, isFirefox, isFocusable, isFunction, isHTML, isIOS, isInContainer, isLeaf, isNumber, isObject, isPlainObject, isPromise, isPropAbsent, isScroll, isString, isStringNumber, isSymbol, isUndefined, isVisible, isWindow, kebabCase, keysOf, loadConfig, loadScript, md5, mutable, obtainAllFocusableElements, rAF, removeClass, removeStyle, renderTemplate, rwDecode, rwEncode, safeGet, safeSet, scrollIntoView, setStyle, stringToArray, throttleByRaf, throwError, toRawType, transDataToString, triggerEvent, unique, uniqueBy, uniqueByFn, useFormField, useHttp, validateObjectStructure, whenMouse, withInstall, withInstallDirective, withInstallFunction };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "duck-vue-components",
3
3
  "type": "module",
4
- "version": "0.2.99",
4
+ "version": "0.3.0",
5
5
  "description": "A Vue 3 component library with controls, utils, stores and more.",
6
6
  "author": "Your Name <your.email@mail.com>",
7
7
  "license": "MIT",