duck-vue-components 0.3.0 → 0.3.1

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
  const require_locale = require("./locale-BTmar3YP.cjs");
2
- const require_utils = require("./utils-Cl3bl6VE.cjs");
2
+ const require_utils = require("./utils-DG7jv1H2.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");
@@ -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-brs6QYsu.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-Kfw_ENTo.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";
package/dist/controls.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_controls = require("./controls-gNBoiGgL.cjs");
2
+ const require_controls = require("./controls-Bcn6oek2.cjs");
3
3
  Object.defineProperty(exports, "RwAffix", {
4
4
  enumerable: true,
5
5
  get: function() {
@@ -1,2 +1,2 @@
1
- import { A as inputNumber_d_exports, B as autocomplete_d_exports, C as upload_d_exports, D as mergeSelect_d_exports, E as switch_d_exports, F as dialog_d_exports, H as alert_d_exports, I as buttonGroup_d_exports, L as dropdown_d_exports, M as select_d_exports, N as input_d_exports, O as mergeInput_d_exports, P as divider_d_exports, R as popconfirm_d_exports, S as tree_d_exports, T as slider_d_exports, U as affix_d_exports, V as avatar_d_exports, _ as table_d_exports, a as mTreeSTable_d_exports, b as image_d_exports, d as pageBase_d_exports, f as RwForm, g as segmented_d_exports, h as RwFormItems, i as progress_d_exports, j as inputTag_d_exports, k as radio_d_exports, l as pageStruct_d_exports, m as tabPane_d_exports, n as search_d_exports, o as pageTable_d_exports, p as tabs_d_exports, r as pagination_d_exports, s as pageForm_d_exports, u as tableStruct_d_exports, v as tagComp_d_exports, w as map_d_exports, x as text_d_exports, y as tag_d_exports, z as button_d_exports } from "./index-CQu1oZ1O.cjs";
1
+ import { A as inputNumber_d_exports, B as autocomplete_d_exports, C as upload_d_exports, D as mergeSelect_d_exports, E as switch_d_exports, F as dialog_d_exports, H as alert_d_exports, I as buttonGroup_d_exports, L as dropdown_d_exports, M as select_d_exports, N as input_d_exports, O as mergeInput_d_exports, P as divider_d_exports, R as popconfirm_d_exports, S as tree_d_exports, T as slider_d_exports, U as affix_d_exports, V as avatar_d_exports, _ as table_d_exports, a as mTreeSTable_d_exports, b as image_d_exports, d as pageBase_d_exports, f as RwForm, g as segmented_d_exports, h as RwFormItems, i as progress_d_exports, j as inputTag_d_exports, k as radio_d_exports, l as pageStruct_d_exports, m as tabPane_d_exports, n as search_d_exports, o as pageTable_d_exports, p as tabs_d_exports, r as pagination_d_exports, s as pageForm_d_exports, u as tableStruct_d_exports, v as tagComp_d_exports, w as map_d_exports, x as text_d_exports, y as tag_d_exports, z as button_d_exports } from "./index-ZL6GWPP9.cjs";
2
2
  export { affix_d_exports as RwAffix, alert_d_exports as RwAlert, autocomplete_d_exports as RwAutocomplete, avatar_d_exports as RwAvatar, button_d_exports as RwButton, buttonGroup_d_exports as RwButtonGroup, dialog_d_exports as RwDialog, divider_d_exports as RwDivider, dropdown_d_exports as RwDropdown, RwForm, RwFormItems, image_d_exports as RwImage, input_d_exports as RwInput, inputNumber_d_exports as RwInputNumber, inputTag_d_exports as RwInputTag, mTreeSTable_d_exports as RwMTreeSTable, map_d_exports as RwMap, mergeInput_d_exports as RwMergeInput, mergeSelect_d_exports as RwMergeSelect, pageBase_d_exports as RwPageBase, pageForm_d_exports as RwPageForm, pageTable_d_exports as RwPageTable, pagination_d_exports as RwPagination, popconfirm_d_exports as RwPopconfirm, progress_d_exports as RwProgress, radio_d_exports as RwRadio, search_d_exports as RwSearch, segmented_d_exports as RwSegmented, select_d_exports as RwSelect, slider_d_exports as RwSlider, switch_d_exports as RwSwitch, tabPane_d_exports as RwTabPane, table_d_exports as RwTable, tabs_d_exports as RwTabs, tag_d_exports as RwTag, tagComp_d_exports as RwTagComp, text_d_exports as RwText, tree_d_exports as RwTree, upload_d_exports as RwUpload, pageStruct_d_exports as pageStruct, tableStruct_d_exports as tableStruct };
@@ -1,2 +1,2 @@
1
- import { A as inputNumber_d_exports, B as autocomplete_d_exports, C as upload_d_exports, D as mergeSelect_d_exports, E as switch_d_exports, F as dialog_d_exports, H as alert_d_exports, I as buttonGroup_d_exports, L as dropdown_d_exports, M as select_d_exports, N as input_d_exports, O as mergeInput_d_exports, P as divider_d_exports, R as popconfirm_d_exports, S as tree_d_exports, T as slider_d_exports, U as affix_d_exports, V as avatar_d_exports, _ as table_d_exports, a as mTreeSTable_d_exports, b as image_d_exports, d as pageBase_d_exports, f as RwForm, g as segmented_d_exports, h as RwFormItems, i as progress_d_exports, j as inputTag_d_exports, k as radio_d_exports, l as pageStruct_d_exports, m as tabPane_d_exports, n as search_d_exports, o as pageTable_d_exports, p as tabs_d_exports, r as pagination_d_exports, s as pageForm_d_exports, u as tableStruct_d_exports, v as tagComp_d_exports, w as map_d_exports, x as text_d_exports, y as tag_d_exports, z as button_d_exports } from "./index-Dba0e0yB.js";
1
+ import { A as inputNumber_d_exports, B as autocomplete_d_exports, C as upload_d_exports, D as mergeSelect_d_exports, E as switch_d_exports, F as dialog_d_exports, H as alert_d_exports, I as buttonGroup_d_exports, L as dropdown_d_exports, M as select_d_exports, N as input_d_exports, O as mergeInput_d_exports, P as divider_d_exports, R as popconfirm_d_exports, S as tree_d_exports, T as slider_d_exports, U as affix_d_exports, V as avatar_d_exports, _ as table_d_exports, a as mTreeSTable_d_exports, b as image_d_exports, d as pageBase_d_exports, f as RwForm, g as segmented_d_exports, h as RwFormItems, i as progress_d_exports, j as inputTag_d_exports, k as radio_d_exports, l as pageStruct_d_exports, m as tabPane_d_exports, n as search_d_exports, o as pageTable_d_exports, p as tabs_d_exports, r as pagination_d_exports, s as pageForm_d_exports, u as tableStruct_d_exports, v as tagComp_d_exports, w as map_d_exports, x as text_d_exports, y as tag_d_exports, z as button_d_exports } from "./index-CoShKz6T.js";
2
2
  export { affix_d_exports as RwAffix, alert_d_exports as RwAlert, autocomplete_d_exports as RwAutocomplete, avatar_d_exports as RwAvatar, button_d_exports as RwButton, buttonGroup_d_exports as RwButtonGroup, dialog_d_exports as RwDialog, divider_d_exports as RwDivider, dropdown_d_exports as RwDropdown, RwForm, RwFormItems, image_d_exports as RwImage, input_d_exports as RwInput, inputNumber_d_exports as RwInputNumber, inputTag_d_exports as RwInputTag, mTreeSTable_d_exports as RwMTreeSTable, map_d_exports as RwMap, mergeInput_d_exports as RwMergeInput, mergeSelect_d_exports as RwMergeSelect, pageBase_d_exports as RwPageBase, pageForm_d_exports as RwPageForm, pageTable_d_exports as RwPageTable, pagination_d_exports as RwPagination, popconfirm_d_exports as RwPopconfirm, progress_d_exports as RwProgress, radio_d_exports as RwRadio, search_d_exports as RwSearch, segmented_d_exports as RwSegmented, select_d_exports as RwSelect, slider_d_exports as RwSlider, switch_d_exports as RwSwitch, tabPane_d_exports as RwTabPane, table_d_exports as RwTable, tabs_d_exports as RwTabs, tag_d_exports as RwTag, tagComp_d_exports as RwTagComp, text_d_exports as RwText, tree_d_exports as RwTree, upload_d_exports as RwUpload, pageStruct_d_exports as pageStruct, tableStruct_d_exports as tableStruct };
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-D9f-spZ0.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-b5TuMGWF.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-Cl3bl6VE.cjs");
3
+ const require_utils = require("./utils-DG7jv1H2.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-brs6QYsu.js";
1
+ import { t as FormDataKey } from "./utils-Kfw_ENTo.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";
@@ -509,7 +509,7 @@ declare const __VLS_base$14: _$vue.DefineComponent<__VLS_Props$23, {
509
509
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
510
510
  onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
511
511
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
512
- }>, "input" | "type" | "clear" | "modelValue" | "disabled" | "modelModifiers" | "autosize" | "autocomplete" | "clearIcon" | "wordLimitPosition" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textarea" | "ref" | "textareaStyle" | "isComposing" | "focus" | "blur" | "select" | "resizeTextarea"> & {
512
+ }>, "input" | "type" | "clear" | "modelValue" | "autocomplete" | "disabled" | "modelModifiers" | "autosize" | "clearIcon" | "wordLimitPosition" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textarea" | "ref" | "textareaStyle" | "isComposing" | "focus" | "blur" | "select" | "resizeTextarea"> & {
513
513
  input: HTMLInputElement | undefined;
514
514
  textarea: HTMLTextAreaElement | undefined;
515
515
  ref: HTMLInputElement | HTMLTextAreaElement | undefined;
@@ -691,7 +691,7 @@ declare const __VLS_base$14: _$vue.DefineComponent<__VLS_Props$23, {
691
691
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
692
692
  onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
693
693
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
694
- }>, "input" | "type" | "clear" | "modelValue" | "disabled" | "modelModifiers" | "autosize" | "autocomplete" | "clearIcon" | "wordLimitPosition" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textarea" | "ref" | "textareaStyle" | "isComposing" | "focus" | "blur" | "select" | "resizeTextarea"> & {
694
+ }>, "input" | "type" | "clear" | "modelValue" | "autocomplete" | "disabled" | "modelModifiers" | "autosize" | "clearIcon" | "wordLimitPosition" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textarea" | "ref" | "textareaStyle" | "isComposing" | "focus" | "blur" | "select" | "resizeTextarea"> & {
695
695
  input: HTMLInputElement | undefined;
696
696
  textarea: HTMLTextAreaElement | undefined;
697
697
  ref: HTMLInputElement | HTMLTextAreaElement | undefined;
@@ -511,7 +511,7 @@ declare const __VLS_base$14: _$vue.DefineComponent<__VLS_Props$23, {
511
511
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
512
512
  onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
513
513
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
514
- }>, "input" | "type" | "clear" | "modelValue" | "disabled" | "modelModifiers" | "autosize" | "autocomplete" | "clearIcon" | "wordLimitPosition" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textarea" | "ref" | "textareaStyle" | "isComposing" | "focus" | "blur" | "select" | "resizeTextarea"> & {
514
+ }>, "input" | "type" | "clear" | "modelValue" | "autocomplete" | "disabled" | "modelModifiers" | "autosize" | "clearIcon" | "wordLimitPosition" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textarea" | "ref" | "textareaStyle" | "isComposing" | "focus" | "blur" | "select" | "resizeTextarea"> & {
515
515
  input: HTMLInputElement | undefined;
516
516
  textarea: HTMLTextAreaElement | undefined;
517
517
  ref: HTMLInputElement | HTMLTextAreaElement | undefined;
@@ -693,7 +693,7 @@ declare const __VLS_base$14: _$vue.DefineComponent<__VLS_Props$23, {
693
693
  onMouseleave?: ((evt: MouseEvent) => any) | undefined;
694
694
  onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
695
695
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
696
- }>, "input" | "type" | "clear" | "modelValue" | "disabled" | "modelModifiers" | "autosize" | "autocomplete" | "clearIcon" | "wordLimitPosition" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textarea" | "ref" | "textareaStyle" | "isComposing" | "focus" | "blur" | "select" | "resizeTextarea"> & {
696
+ }>, "input" | "type" | "clear" | "modelValue" | "autocomplete" | "disabled" | "modelModifiers" | "autosize" | "clearIcon" | "wordLimitPosition" | "tabindex" | "validateEvent" | "inputStyle" | "rows" | "textarea" | "ref" | "textareaStyle" | "isComposing" | "focus" | "blur" | "select" | "resizeTextarea"> & {
697
697
  input: HTMLInputElement | undefined;
698
698
  textarea: HTMLTextAreaElement | undefined;
699
699
  ref: HTMLInputElement | HTMLTextAreaElement | undefined;
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-gNBoiGgL.cjs");
6
+ const require_controls = require("./controls-Bcn6oek2.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");
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as index_d_exports } from "./index-CQu1oZ1O.cjs";
1
+ import { t as index_d_exports } from "./index-ZL6GWPP9.cjs";
2
2
  import { t as FrameworkOptions } from "./index-C44rzTLG.cjs";
3
3
  import * as _$vue from "vue";
4
4
  export * from "element-plus";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as FrameworkOptions } from "./index-BPQVuYZD.js";
2
- import { t as index_d_exports } from "./index-Dba0e0yB.js";
2
+ import { t as index_d_exports } from "./index-CoShKz6T.js";
3
3
  import * as _$vue from "vue";
4
4
  export * from "element-plus";
5
5
  export * from "pinia";
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-D9f-spZ0.js";
2
+ import { t as controls_exports } from "./controls-b5TuMGWF.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";
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-Cl3bl6VE.cjs");
4
- const require_controls = require("./controls-gNBoiGgL.cjs");
3
+ const require_utils = require("./utils-DG7jv1H2.cjs");
4
+ const require_controls = require("./controls-Bcn6oek2.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.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { W as __exportAll, c as OptionT$2 } from "./index-CQu1oZ1O.cjs";
1
+ import { W as __exportAll, c as OptionT$2 } from "./index-ZL6GWPP9.cjs";
2
2
  import { nn as SFCWithInstall } from "./index-EQ65J7je.cjs";
3
3
  import * as _$vue from "vue";
4
4
 
package/dist/pages.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { nn as SFCWithInstall } from "./index-DjM1ozxC.js";
2
- import { c as OptionT$2 } from "./index-Dba0e0yB.js";
2
+ import { c as OptionT$2 } from "./index-CoShKz6T.js";
3
3
  import * as _$vue from "vue";
4
4
 
5
5
  //#region src/packages/pages/localSetting/localSetting.vue.d.ts
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-brs6QYsu.js";
2
+ import { P as withInstall, u as useAppConfigStore } from "./utils-Kfw_ENTo.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-D9f-spZ0.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-b5TuMGWF.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-Cl3bl6VE.cjs");
3
+ const require_utils = require("./utils-DG7jv1H2.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-brs6QYsu.js";
1
+ import { f as rwDecode, h as http, p as rwEncode, u as useAppConfigStore } from "./utils-Kfw_ENTo.js";
2
2
  import { ElMessage } from "element-plus";
3
3
  import { createPinia, defineStore } from "pinia";
4
4
  import { useDark, useToggle } from "@vueuse/core";
@@ -958,9 +958,9 @@ const initHttp = (HttpConfig) => {
958
958
  const useHttp = () => http;
959
959
  //#endregion
960
960
  //#region src/packages/utils/encrypt.ts
961
- const config = (0, vue.inject)("frameworkConfig");
962
- console.log("Using frameworkConfig in encrypt.ts:", config);
963
- function rwEncode(data, privateKey = config.privateKey || "") {
961
+ const $privateKey = (0, vue.getCurrentInstance)()?.appContext.config.globalProperties.$privateKey || "";
962
+ console.log("Using frameworkConfig in encrypt.ts:", $privateKey);
963
+ function rwEncode(data, privateKey = "") {
964
964
  const dataString = JSON.stringify(data);
965
965
  const keyHex = crypto_js.default.enc.Utf8.parse(privateKey);
966
966
  const options = {
@@ -970,7 +970,7 @@ function rwEncode(data, privateKey = config.privateKey || "") {
970
970
  const Result = crypto_js.default.DES.encrypt(dataString, keyHex, options);
971
971
  return crypto_js.default.enc.Base64.stringify(Result.ciphertext);
972
972
  }
973
- function rwDecode(data, privateKey = config.privateKey || "", showError = true) {
973
+ function rwDecode(data, privateKey = "", showError = true) {
974
974
  const keyHex = crypto_js.default.enc.Utf8.parse(privateKey);
975
975
  const options = {
976
976
  mode: crypto_js.default.mode.ECB,
@@ -5,7 +5,7 @@ import { isClient, isIOS } from "@vueuse/core";
5
5
  import { NOOP, camelize, capitalize, hyphenate, hyphenate as kebabCase, isArray, isArray as isArray$1, isDate, isFunction, isObject, isObject as isObject$2, isPlainObject as isPlainObject$1, isPromise, isString, isString as isString$1, isSymbol, toRawType } from "@vue/shared";
6
6
  import { castArray as ensureArray, fromPairs, isNil } from "lodash-unified";
7
7
  import { isObject as isObject$1, isPlainObject, merge } from "lodash-es";
8
- import { computed, inject, isReactive, reactive, ref, warn } from "vue";
8
+ import { computed, getCurrentInstance, inject, isReactive, reactive, ref, warn } from "vue";
9
9
  import axios from "axios";
10
10
  import CryptoJS from "crypto-js";
11
11
  import * as XLSX from "xlsx";
@@ -954,9 +954,9 @@ const initHttp = (HttpConfig) => {
954
954
  const useHttp = () => http;
955
955
  //#endregion
956
956
  //#region src/packages/utils/encrypt.ts
957
- const config = inject("frameworkConfig");
958
- console.log("Using frameworkConfig in encrypt.ts:", config);
959
- function rwEncode(data, privateKey = config.privateKey || "") {
957
+ const $privateKey = getCurrentInstance()?.appContext.config.globalProperties.$privateKey || "";
958
+ console.log("Using frameworkConfig in encrypt.ts:", $privateKey);
959
+ function rwEncode(data, privateKey = "") {
960
960
  const dataString = JSON.stringify(data);
961
961
  const keyHex = CryptoJS.enc.Utf8.parse(privateKey);
962
962
  const options = {
@@ -966,7 +966,7 @@ function rwEncode(data, privateKey = config.privateKey || "") {
966
966
  const Result = CryptoJS.DES.encrypt(dataString, keyHex, options);
967
967
  return CryptoJS.enc.Base64.stringify(Result.ciphertext);
968
968
  }
969
- function rwDecode(data, privateKey = config.privateKey || "", showError = true) {
969
+ function rwDecode(data, privateKey = "", showError = true) {
970
970
  const keyHex = CryptoJS.enc.Utf8.parse(privateKey);
971
971
  const options = {
972
972
  mode: CryptoJS.mode.ECB,
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-Cl3bl6VE.cjs");
3
+ const require_utils = require("./utils-DG7jv1H2.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-brs6QYsu.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-Kfw_ENTo.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.3.0",
4
+ "version": "0.3.1",
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",