@fewangsit/wangsvue-fats 1.0.1-alpha.27 → 1.0.1-alpha.29

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,10 +1,10 @@
1
- import { defineComponent as G, onMounted as v, reactive as I, inject as k, shallowRef as b, computed as p, watch as A, createBlock as V, openBlock as U, mergeProps as w, unref as o, withCtx as y, createVNode as S, normalizeClass as E, createTextVNode as z, toDisplayString as H, normalizeProps as O, guardReactiveProps as Z, nextTick as Y } from "vue";
2
- import { u as W } from "../vendor/vee-validate/dist/vee-validate.esm.es.js";
1
+ import { defineComponent as G, onMounted as v, reactive as I, inject as k, shallowRef as b, computed as S, watch as A, createBlock as V, openBlock as U, mergeProps as w, unref as o, withCtx as y, createVNode as g, createTextVNode as E, toDisplayString as H, normalizeProps as z, guardReactiveProps as O, nextTick as Z } from "vue";
2
+ import { u as Y } from "../vendor/vee-validate/dist/vee-validate.esm.es.js";
3
3
  import { u as N } from "../plugins/WangsVue.es.js";
4
- import { s as J } from "../vendor/primevue/dropdown/dropdown.esm.es.js";
5
- import { _ as j } from "../icon/index.es.js";
6
- import { _ as Q } from "../inputnumber/index.es.js";
7
- import { _ as x } from "../validatormessage/index.es.js";
4
+ import { s as W } from "../vendor/primevue/dropdown/dropdown.esm.es.js";
5
+ import { _ as J } from "../icon/index.es.js";
6
+ import { _ as j } from "../inputnumber/index.es.js";
7
+ import { _ as Q } from "../validatormessage/index.es.js";
8
8
  const f = /* @__PURE__ */ JSON.parse('[{"label":"؋ - Afghan Afghani","name":"Afghan Afghani","currency":"AFN","symbol":"؋","locale":"ps-AF"},{"label":"L - Albanian Lek","name":"Albanian Lek","currency":"ALL","symbol":"L","locale":"sq-AL"},{"label":"د.ج - Algerian Dinar","name":"Algerian Dinar","currency":"DZD","symbol":"د.ج","locale":"ar-DZ"},{"label":"Kz - Angolan Kwanza","name":"Angolan Kwanza","currency":"AOA","symbol":"Kz","locale":"pt-AO"},{"label":"$ - Argentine Peso","name":"Argentine Peso","currency":"ARS","symbol":"$","locale":"es-AR"},{"label":"֏ - Armenian Dram","name":"Armenian Dram","currency":"AMD","symbol":"֏","locale":"hy-AM"},{"label":"ƒ - Aruban Florin","name":"Aruban Florin","currency":"AWG","symbol":"ƒ","locale":"nl-AW"},{"label":"$ - Australian Dollar","name":"Australian Dollar","currency":"AUD","symbol":"$","locale":"en-AU"},{"label":"₼ - Azerbaijani Manat","name":"Azerbaijani Manat","currency":"AZN","symbol":"₼","locale":"az-AZ"},{"label":"$ - Bahamian Dollar","name":"Bahamian Dollar","currency":"BSD","symbol":"$","locale":"en-BS"},{"label":"ب.د - Bahraini Dinar","name":"Bahraini Dinar","currency":"BHD","symbol":"ب.د","locale":"ar-BH"},{"label":"৳ - Bangladeshi Taka","name":"Bangladeshi Taka","currency":"BDT","symbol":"৳","locale":"bn-BD"},{"label":"$ - Barbadian Dollar","name":"Barbadian Dollar","currency":"BBD","symbol":"$","locale":"en-BB"},{"label":"Br - Belarusian Ruble","name":"Belarusian Ruble","currency":"BYN","symbol":"Br","locale":"be-BY"},{"label":"$ - Belize Dollar","name":"Belize Dollar","currency":"BZD","symbol":"$","locale":"en-BZ"},{"label":"$ - Bermudian Dollar","name":"Bermudian Dollar","currency":"BMD","symbol":"$","locale":"en-BM"},{"label":"Nu. - Bhutanese Ngultrum","name":"Bhutanese Ngultrum","currency":"BTN","symbol":"Nu.","locale":"dz-BT"},{"label":"Bs. - Bolivian Boliviano","name":"Bolivian Boliviano","currency":"BOB","symbol":"Bs.","locale":"es-BO"},{"label":"KM - Bosnia-Herzegovina Convertible Mark","name":"Bosnia-Herzegovina Convertible Mark","currency":"BAM","symbol":"KM","locale":"bs-BA"},{"label":"P - Botswana Pula","name":"Botswana Pula","currency":"BWP","symbol":"P","locale":"en-BW"},{"label":"R$ - Brazilian Real","name":"Brazilian Real","currency":"BRL","symbol":"R$","locale":"pt-BR"},{"label":"$ - Brunei Dollar","name":"Brunei Dollar","currency":"BND","symbol":"$","locale":"ms-BN"},{"label":"лв - Bulgarian Lev","name":"Bulgarian Lev","currency":"BGN","symbol":"лв","locale":"bg-BG"},{"label":"FBu - Burundian Franc","name":"Burundian Franc","currency":"BIF","symbol":"FBu","locale":"fr-BI"},{"label":"$ - Cabo Verdean Escudo","name":"Cabo Verdean Escudo","currency":"CVE","symbol":"$","locale":"pt-CV"},{"label":"៛ - Cambodian Riel","name":"Cambodian Riel","currency":"KHR","symbol":"៛","locale":"km-KH"},{"label":"$ - Canadian Dollar","name":"Canadian Dollar","currency":"CAD","symbol":"$","locale":"en-CA"},{"label":"$ - Cayman Islands Dollar","name":"Cayman Islands Dollar","currency":"KYD","symbol":"$","locale":"en-KY"},{"label":"FCFA - Central African CFA Franc","name":"Central African CFA Franc","currency":"XAF","symbol":"FCFA","locale":"fr-CM"},{"label":"$ - Chilean Peso","name":"Chilean Peso","currency":"CLP","symbol":"$","locale":"es-CL"},{"label":"¥ - Chinese Yuan","name":"Chinese Yuan","currency":"CNY","symbol":"¥","locale":"zh-CN"},{"label":"$ - Colombian Peso","name":"Colombian Peso","currency":"COP","symbol":"$","locale":"es-CO"},{"label":"CF - Comorian Franc","name":"Comorian Franc","currency":"KMF","symbol":"CF","locale":"ar-KM"},{"label":"FC - Congolese Franc","name":"Congolese Franc","currency":"CDF","symbol":"FC","locale":"fr-CD"},{"label":"₡ - Costa Rican Colón","name":"Costa Rican Colón","currency":"CRC","symbol":"₡","locale":"es-CR"},{"label":"kn - Croatian Kuna","name":"Croatian Kuna","currency":"HRK","symbol":"kn","locale":"hr-HR"},{"label":"$ - Cuban Peso","name":"Cuban Peso","currency":"CUP","symbol":"$","locale":"es-CU"},{"label":"Kč - Czech Koruna","name":"Czech Koruna","currency":"CZK","symbol":"Kč","locale":"cs-CZ"},{"label":"kr - Danish Krone","name":"Danish Krone","currency":"DKK","symbol":"kr","locale":"da-DK"},{"label":"Fdj - Djiboutian Franc","name":"Djiboutian Franc","currency":"DJF","symbol":"Fdj","locale":"fr-DJ"},{"label":"$ - Dominican Peso","name":"Dominican Peso","currency":"DOP","symbol":"$","locale":"es-DO"},{"label":"$ - East Caribbean Dollar","name":"East Caribbean Dollar","currency":"XCD","symbol":"$","locale":"en-AI"},{"label":"£ - Egyptian Pound","name":"Egyptian Pound","currency":"EGP","symbol":"£","locale":"ar-EG"},{"label":"Nfk - Eritrean Nakfa","name":"Eritrean Nakfa","currency":"ERN","symbol":"Nfk","locale":"ti-ER"},{"label":"Br - Ethiopian Birr","name":"Ethiopian Birr","currency":"ETB","symbol":"Br","locale":"am-ET"},{"label":"€ - Euro","name":"Euro","currency":"EUR","symbol":"€","locale":"de-DE"},{"label":"$ - Fijian Dollar","name":"Fijian Dollar","currency":"FJD","symbol":"$","locale":"en-FJ"},{"label":"£ - Falkland Islands Pound","name":"Falkland Islands Pound","currency":"FKP","symbol":"£","locale":"en-FK"},{"label":"D - Gambian Dalasi","name":"Gambian Dalasi","currency":"GMD","symbol":"D","locale":"en-GM"},{"label":"₾ - Georgian Lari","name":"Georgian Lari","currency":"GEL","symbol":"₾","locale":"ka-GE"},{"label":"₵ - Ghanaian Cedi","name":"Ghanaian Cedi","currency":"GHS","symbol":"₵","locale":"en-GH"},{"label":"£ - Gibraltar Pound","name":"Gibraltar Pound","currency":"GIP","symbol":"£","locale":"en-GI"},{"label":"Q - Guatemalan Quetzal","name":"Guatemalan Quetzal","currency":"GTQ","symbol":"Q","locale":"es-GT"},{"label":"FG - Guinean Franc","name":"Guinean Franc","currency":"GNF","symbol":"FG","locale":"fr-GN"},{"label":"$ - Guyanese Dollar","name":"Guyanese Dollar","currency":"GYD","symbol":"$","locale":"en-GY"},{"label":"G - Haitian Gourde","name":"Haitian Gourde","currency":"HTG","symbol":"G","locale":"ht-HT"},{"label":"L - Honduran Lempira","name":"Honduran Lempira","currency":"HNL","symbol":"L","locale":"es-HN"},{"label":"$ - Hong Kong Dollar","name":"Hong Kong Dollar","currency":"HKD","symbol":"$","locale":"en-HK"},{"label":"Ft - Hungarian Forint","name":"Hungarian Forint","currency":"HUF","symbol":"Ft","locale":"hu-HU"},{"label":"kr - Icelandic Króna","name":"Icelandic Króna","currency":"ISK","symbol":"kr","locale":"is-IS"},{"label":"₹ - Indian Rupee","name":"Indian Rupee","currency":"INR","symbol":"₹","locale":"hi-IN"},{"label":"Rp - Indonesian Rupiah","name":"Indonesian Rupiah","currency":"IDR","symbol":"Rp","locale":"id-ID"},{"label":"﷼ - Iranian Rial","name":"Iranian Rial","currency":"IRR","symbol":"﷼","locale":"fa-IR"},{"label":"ع.د - Iraqi Dinar","name":"Iraqi Dinar","currency":"IQD","symbol":"ع.د","locale":"ar-IQ"},{"label":"₪ - Israeli Shekel","name":"Israeli Shekel","currency":"ILS","symbol":"₪","locale":"he-IL"},{"label":"$ - Jamaican Dollar","name":"Jamaican Dollar","currency":"JMD","symbol":"$","locale":"en-JM"},{"label":"¥ - Japanese Yen","name":"Japanese Yen","currency":"JPY","symbol":"¥","locale":"ja-JP"},{"label":"د.ا - Jordanian Dinar","name":"Jordanian Dinar","currency":"JOD","symbol":"د.ا","locale":"ar-JO"},{"label":"₸ - Kazakhstani Tenge","name":"Kazakhstani Tenge","currency":"KZT","symbol":"₸","locale":"kk-KZ"},{"label":"KSh - Kenyan Shilling","name":"Kenyan Shilling","currency":"KES","symbol":"KSh","locale":"en-KE"},{"label":"$ - Kiribati Dollar","name":"Kiribati Dollar","currency":"KID","symbol":"$","locale":"en-KI"},{"label":"د.ك - Kuwaiti Dinar","name":"Kuwaiti Dinar","currency":"KWD","symbol":"د.ك","locale":"ar-KW"},{"label":"лв - Kyrgyzstani Som","name":"Kyrgyzstani Som","currency":"KGS","symbol":"лв","locale":"ky-KG"},{"label":"₭ - Lao Kip","name":"Lao Kip","currency":"LAK","symbol":"₭","locale":"lo-LA"},{"label":"ل.ل - Lebanese Pound","name":"Lebanese Pound","currency":"LBP","symbol":"ل.ل","locale":"ar-LB"},{"label":"L - Lesotho Loti","name":"Lesotho Loti","currency":"LSL","symbol":"L","locale":"st-LS"},{"label":"$ - Liberian Dollar","name":"Liberian Dollar","currency":"LRD","symbol":"$","locale":"en-LR"},{"label":"ل.د - Libyan Dinar","name":"Libyan Dinar","currency":"LYD","symbol":"ل.د","locale":"ar-LY"},{"label":"MOP$ - Macanese Pataca","name":"Macanese Pataca","currency":"MOP","symbol":"MOP$","locale":"zh-MO"},{"label":"ден - Macedonian Denar","name":"Macedonian Denar","currency":"MKD","symbol":"ден","locale":"mk-MK"},{"label":"Ar - Malagasy Ariary","name":"Malagasy Ariary","currency":"MGA","symbol":"Ar","locale":"mg-MG"},{"label":"MK - Malawian Kwacha","name":"Malawian Kwacha","currency":"MWK","symbol":"MK","locale":"en-MW"},{"label":"RM - Malaysian Ringgit","name":"Malaysian Ringgit","currency":"MYR","symbol":"RM","locale":"ms-MY"},{"label":"ރ - Maldivian Rufiyaa","name":"Maldivian Rufiyaa","currency":"MVR","symbol":"ރ","locale":"dv-MV"},{"label":"UM - Mauritanian Ouguiya","name":"Mauritanian Ouguiya","currency":"MRU","symbol":"UM","locale":"ar-MR"},{"label":"₨ - Mauritian Rupee","name":"Mauritian Rupee","currency":"MUR","symbol":"₨","locale":"mfe-MU"},{"label":"$ - Mexican Peso","name":"Mexican Peso","currency":"MXN","symbol":"$","locale":"es-MX"},{"label":"L - Moldovan Leu","name":"Moldovan Leu","currency":"MDL","symbol":"L","locale":"ro-MD"},{"label":"₮ - Mongolian Tugrik","name":"Mongolian Tugrik","currency":"MNT","symbol":"₮","locale":"mn-MN"},{"label":"د.م. - Moroccan Dirham","name":"Moroccan Dirham","currency":"MAD","symbol":"د.م.","locale":"ar-MA"},{"label":"MT - Mozambican Metical","name":"Mozambican Metical","currency":"MZN","symbol":"MT","locale":"pt-MZ"},{"label":"K - Myanmar Kyat","name":"Myanmar Kyat","currency":"MMK","symbol":"K","locale":"my-MM"},{"label":"$ - Namibian Dollar","name":"Namibian Dollar","currency":"NAD","symbol":"$","locale":"en-NA"},{"label":"₨ - Nepalese Rupee","name":"Nepalese Rupee","currency":"NPR","symbol":"₨","locale":"ne-NP"},{"label":"ƒ - Netherlands Antillean Guilder","name":"Netherlands Antillean Guilder","currency":"ANG","symbol":"ƒ","locale":"nl-CW"},{"label":"$ - New Zealand Dollar","name":"New Zealand Dollar","currency":"NZD","symbol":"$","locale":"en-NZ"},{"label":"C$ - Nicaraguan Córdoba","name":"Nicaraguan Córdoba","currency":"NIO","symbol":"C$","locale":"es-NI"},{"label":"₦ - Nigerian Naira","name":"Nigerian Naira","currency":"NGN","symbol":"₦","locale":"en-NG"},{"label":"kr - Norwegian Krone","name":"Norwegian Krone","currency":"NOK","symbol":"kr","locale":"nb-NO"},{"label":"ر.ع. - Omani Rial","name":"Omani Rial","currency":"OMR","symbol":"ر.ع.","locale":"ar-OM"},{"label":"₨ - Pakistani Rupee","name":"Pakistani Rupee","currency":"PKR","symbol":"₨","locale":"ur-PK"},{"label":"B/. - Panamanian Balboa","name":"Panamanian Balboa","currency":"PAB","symbol":"B/.","locale":"es-PA"},{"label":"K - Papua New Guinean Kina","name":"Papua New Guinean Kina","currency":"PGK","symbol":"K","locale":"en-PG"},{"label":"₲ - Paraguayan Guarani","name":"Paraguayan Guarani","currency":"PYG","symbol":"₲","locale":"es-PY"},{"label":"S/ - Peruvian Sol","name":"Peruvian Sol","currency":"PEN","symbol":"S/","locale":"es-PE"},{"label":"₱ - Philippine Peso","name":"Philippine Peso","currency":"PHP","symbol":"₱","locale":"fil-PH"},{"label":"zł - Polish Zloty","name":"Polish Zloty","currency":"PLN","symbol":"zł","locale":"pl-PL"},{"label":"ر.ق - Qatari Riyal","name":"Qatari Riyal","currency":"QAR","symbol":"ر.ق","locale":"ar-QA"},{"label":"lei - Romanian Leu","name":"Romanian Leu","currency":"RON","symbol":"lei","locale":"ro-RO"},{"label":"₽ - Russian Ruble","name":"Russian Ruble","currency":"RUB","symbol":"₽","locale":"ru-RU"},{"label":"RF - Rwandan Franc","name":"Rwandan Franc","currency":"RWF","symbol":"RF","locale":"rw-RW"},{"label":"£ - Saint Helena Pound","name":"Saint Helena Pound","currency":"SHP","symbol":"£","locale":"en-SH"},{"label":"T - Samoan Tala","name":"Samoan Tala","currency":"WST","symbol":"T","locale":"sm-WS"},{"label":"Db - São Tomé and Príncipe Dobra","name":"São Tomé and Príncipe Dobra","currency":"STN","symbol":"Db","locale":"pt-ST"},{"label":"ر.س - Saudi Riyal","name":"Saudi Riyal","currency":"SAR","symbol":"ر.س","locale":"ar-SA"},{"label":"дин - Serbian Dinar","name":"Serbian Dinar","currency":"RSD","symbol":"дин","locale":"sr-RS"},{"label":"₨ - Seychellois Rupee","name":"Seychellois Rupee","currency":"SCR","symbol":"₨","locale":"fr-SC"},{"label":"Le - Sierra Leonean Leone","name":"Sierra Leonean Leone","currency":"SLE","symbol":"Le","locale":"en-SL"},{"label":"$ - Singapore Dollar","name":"Singapore Dollar","currency":"SGD","symbol":"$","locale":"en-SG"},{"label":"$ - Solomon Islands Dollar","name":"Solomon Islands Dollar","currency":"SBD","symbol":"$","locale":"en-SB"},{"label":"Sh - Somali Shilling","name":"Somali Shilling","currency":"SOS","symbol":"Sh","locale":"so-SO"},{"label":"R - South African Rand","name":"South African Rand","currency":"ZAR","symbol":"R","locale":"en-ZA"},{"label":"₩ - South Korean Won","name":"South Korean Won","currency":"KRW","symbol":"₩","locale":"ko-KR"},{"label":"£ - South Sudanese Pound","name":"South Sudanese Pound","currency":"SSP","symbol":"£","locale":"en-SS"},{"label":"₨ - Sri Lankan Rupee","name":"Sri Lankan Rupee","currency":"LKR","symbol":"₨","locale":"si-LK"},{"label":"£ - Sudanese Pound","name":"Sudanese Pound","currency":"SDG","symbol":"£","locale":"ar-SD"},{"label":"$ - Surinamese Dollar","name":"Surinamese Dollar","currency":"SRD","symbol":"$","locale":"nl-SR"},{"label":"E - Swazi Lilangeni","name":"Swazi Lilangeni","currency":"SZL","symbol":"E","locale":"en-SZ"},{"label":"kr - Swedish Krona","name":"Swedish Krona","currency":"SEK","symbol":"kr","locale":"sv-SE"},{"label":"Fr - Swiss Franc","name":"Swiss Franc","currency":"CHF","symbol":"Fr","locale":"fr-CH"},{"label":"£ - Syrian Pound","name":"Syrian Pound","currency":"SYP","symbol":"£","locale":"ar-SY"},{"label":"ЅМ - Tajikistani Somoni","name":"Tajikistani Somoni","currency":"TJS","symbol":"ЅМ","locale":"tg-TJ"},{"label":"Sh - Tanzanian Shilling","name":"Tanzanian Shilling","currency":"TZS","symbol":"Sh","locale":"sw-TZ"},{"label":"฿ - Thai Baht","name":"Thai Baht","currency":"THB","symbol":"฿","locale":"th-TH"},{"label":"T$ - Tongan Paʻanga","name":"Tongan Paʻanga","currency":"TOP","symbol":"T$","locale":"to-TO"},{"label":"$ - Trinidad and Tobago Dollar","name":"Trinidad and Tobago Dollar","currency":"TTD","symbol":"$","locale":"en-TT"},{"label":"د.ت - Tunisian Dinar","name":"Tunisian Dinar","currency":"TND","symbol":"د.ت","locale":"ar-TN"},{"label":"₺ - Turkish Lira","name":"Turkish Lira","currency":"TRY","symbol":"₺","locale":"tr-TR"},{"label":"T - Turkmenistani Manat","name":"Turkmenistani Manat","currency":"TMT","symbol":"T","locale":"tk-TM"},{"label":"USh - Ugandan Shilling","name":"Ugandan Shilling","currency":"UGX","symbol":"USh","locale":"en-UG"},{"label":"₴ - Ukrainian Hryvnia","name":"Ukrainian Hryvnia","currency":"UAH","symbol":"₴","locale":"uk-UA"},{"label":"د.إ - United Arab Emirates Dirham","name":"United Arab Emirates Dirham","currency":"AED","symbol":"د.إ","locale":"ar-AE"},{"label":"$ - United States Dollar","name":"United States Dollar","currency":"USD","symbol":"$","locale":"en-US"},{"label":"$ - Uruguayan Peso","name":"Uruguayan Peso","currency":"UYU","symbol":"$","locale":"es-UY"},{"label":"лв - Uzbekistani Som","name":"Uzbekistani Som","currency":"UZS","symbol":"лв","locale":"uz-UZ"},{"label":"VT - Vanuatu Vatu","name":"Vanuatu Vatu","currency":"VUV","symbol":"VT","locale":"bi-VU"},{"label":"Bs. - Venezuelan Bolívar","name":"Venezuelan Bolívar","currency":"VES","symbol":"Bs.","locale":"es-VE"},{"label":"₫ - Vietnamese Dong","name":"Vietnamese Dong","currency":"VND","symbol":"₫","locale":"vi-VN"},{"label":"CFA - West African CFA Franc","name":"West African CFA Franc","currency":"XOF","symbol":"CFA","locale":"fr-SN"},{"label":"﷼ - Yemeni Rial","name":"Yemeni Rial","currency":"YER","symbol":"﷼","locale":"ar-YE"},{"label":"ZK - Zambian Kwacha","name":"Zambian Kwacha","currency":"ZMW","symbol":"ZK","locale":"en-ZM"},{"label":"$ - Zimbabwean Dollar","name":"Zimbabwean Dollar","currency":"ZWL","symbol":"$","locale":"en-ZW"}]'), t = (i = "IDR") => {
9
9
  let m = i;
10
10
  const { generalSetting: a = {} } = JSON.parse(
@@ -17,13 +17,13 @@ const f = /* @__PURE__ */ JSON.parse('[{"label":"؋ - Afghan Afghani","name":"Af
17
17
  symbol: "$",
18
18
  locale: "en-US"
19
19
  };
20
- }, ra = (i, m, a = !0) => {
20
+ }, na = (i, m, a = !0) => {
21
21
  const { locale: u, currency: d } = t(m);
22
22
  return i == null ? "-" : Number(i).toLocaleString(u, {
23
23
  style: a ? "currency" : void 0,
24
24
  currency: d
25
25
  }).replace("Rp ", "Rp");
26
- }, oa = /* @__PURE__ */ G({
26
+ }, ra = /* @__PURE__ */ G({
27
27
  __name: "InputCurrency",
28
28
  props: {
29
29
  modelValue: {},
@@ -51,7 +51,7 @@ const f = /* @__PURE__ */ JSON.parse('[{"label":"؋ - Afghan Afghani","name":"Af
51
51
  v(() => {
52
52
  a.useValidator && (Object.assign(
53
53
  c,
54
- W(a.fieldName ?? "currencyInput", (e) => {
54
+ Y(a.fieldName ?? "currencyInput", (e) => {
55
55
  var l;
56
56
  return !(e != null && e.value) && a.mandatory ? typeof a.validatorMessage == "object" && "empty" in a.validatorMessage ? a.validatorMessage.empty.replace("{label}", a.label) : (l = d.emptyInputErrorMessage) == null ? void 0 : l.replace(
57
57
  "{label}",
@@ -60,18 +60,18 @@ const f = /* @__PURE__ */ JSON.parse('[{"label":"؋ - Afghan Afghani","name":"Af
60
60
  })
61
61
  ), a.modelValue && (c.value = a.modelValue));
62
62
  });
63
- const { locale: d } = N("InputCurrency"), { locale: L } = N("Dropdown"), { dropdown: g = {}, inputcurrency: R = {} } = k("preset", {}), D = b(!1), s = b((K = a.modelValue) == null ? void 0 : K.value), B = navigator.userAgent.includes("Chrome"), r = b(
63
+ const { locale: d } = N("InputCurrency"), { locale: L } = N("Dropdown"), { dropdown: D = {}, inputcurrency: R = {} } = k("preset", {}), p = b(!1), s = b((K = a.modelValue) == null ? void 0 : K.value), B = navigator.userAgent.includes("Chrome"), r = b(
64
64
  t((h = a.modelValue) == null ? void 0 : h.currency)
65
65
  ), c = I({
66
66
  value: a.modelValue
67
- }), $ = b(f), T = p(() => {
67
+ }), $ = b(f), T = S(() => {
68
68
  var e;
69
69
  return (e = r.value) == null ? void 0 : e.locale;
70
- }), M = p(() => a.inputnNumberId ? a.inputnNumberId : (a.label ?? a.fieldName ?? "input-number").toLowerCase().trim().replaceAll(" ", "-") + "-inputnumber"), P = p(() => a.invalid || !!c.errorMessage), C = ({ currency: e }, l) => {
70
+ }), M = S(() => a.inputnNumberId ? a.inputnNumberId : (a.label ?? a.fieldName ?? "input-number").toLowerCase().trim().replaceAll(" ", "-") + "-inputnumber"), P = S(() => a.invalid || !!c.errorMessage), C = ({ currency: e }, l) => {
71
71
  const n = { currency: e, value: l };
72
72
  u("update:modelValue", n), c.value = n;
73
73
  }, F = () => {
74
- Y(() => {
74
+ Z(() => {
75
75
  const e = document.getElementById(
76
76
  M.value
77
77
  );
@@ -89,7 +89,7 @@ const f = /* @__PURE__ */ JSON.parse('[{"label":"؋ - Afghan Afghani","name":"Af
89
89
  (e) => {
90
90
  r.value = e != null && e.currency ? t(e == null ? void 0 : e.currency) : r.value, s.value = e == null ? void 0 : e.value;
91
91
  }
92
- ), (e, l) => (U(), V(Q, w(a, {
92
+ ), (e, l) => (U(), V(j, w(a, {
93
93
  modelValue: s.value,
94
94
  "onUpdate:modelValue": [
95
95
  l[4] || (l[4] = (n) => s.value = n),
@@ -106,41 +106,49 @@ const f = /* @__PURE__ */ JSON.parse('[{"label":"؋ - Afghan Afghani","name":"Af
106
106
  "use-grouping": ""
107
107
  }), {
108
108
  "addon-left": y(() => [
109
- S(o(J), {
109
+ g(o(W), {
110
110
  modelValue: r.value,
111
111
  "onUpdate:modelValue": [
112
112
  l[0] || (l[0] = (n) => r.value = n),
113
113
  l[3] || (l[3] = (n) => C(n, s.value))
114
114
  ],
115
- class: E(o(R).currency({ isChromeBased: o(B), invalidInput: P.value }).class),
116
115
  "filter-fields": ["label", "currency"],
117
116
  "filter-placeholder": o(L).filterPlaceholder,
118
117
  options: $.value,
119
118
  pt: {
119
+ root: {
120
+ class: [
121
+ o(D).root({
122
+ props: { modelValue: r.value },
123
+ state: {}
124
+ }).class,
125
+ o(R).currency({ isChromeBased: o(B), invalidInput: P.value }).class
126
+ ]
127
+ },
120
128
  input: {
121
129
  class: [
122
130
  "py-1 pl-3 pr-0.5",
123
- o(g).input({ props: { modelValue: r.value } }).class
131
+ o(D).input({ props: { modelValue: r.value } }).class
124
132
  ]
125
133
  }
126
134
  },
127
- onHide: l[1] || (l[1] = (n) => (D.value = !1, F())),
128
- onShow: l[2] || (l[2] = (n) => D.value = !0),
135
+ onHide: l[1] || (l[1] = (n) => (p.value = !1, F())),
136
+ onShow: l[2] || (l[2] = (n) => p.value = !0),
129
137
  "data-key": "currency",
130
138
  filter: "",
131
139
  "option-label": "symbol"
132
140
  }, {
133
141
  dropdownicon: y(() => [
134
- S(j, O(Z(o(g).dropdownicon({ state: { isShowOverlay: D.value } }))), null, 16)
142
+ g(J, z(O(o(D).dropdownicon({ state: { isShowOverlay: p.value } }))), null, 16)
135
143
  ]),
136
144
  option: y(({ option: n }) => [
137
- z(H(n.label), 1)
145
+ E(H(n.label), 1)
138
146
  ]),
139
147
  _: 1
140
- }, 8, ["modelValue", "class", "filter-placeholder", "options", "pt"])
148
+ }, 8, ["modelValue", "filter-placeholder", "options", "pt"])
141
149
  ]),
142
150
  validatormessage: y(() => [
143
- S(x, {
151
+ g(Q, {
144
152
  message: c.errorMessage
145
153
  }, null, 8, ["message"])
146
154
  ]),
@@ -149,6 +157,6 @@ const f = /* @__PURE__ */ JSON.parse('[{"label":"؋ - Afghan Afghani","name":"Af
149
157
  }
150
158
  });
151
159
  export {
152
- oa as _,
153
- ra as f
160
+ ra as _,
161
+ na as f
154
162
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as U, useSlots as q, inject as E, shallowRef as K, ref as H, reactive as J, computed as x, onMounted as Q, watch as R, createBlock as m, openBlock as u, createSlots as W, withCtx as p, createVNode as I, renderSlot as g, normalizeClass as b, createCommentVNode as v, createElementVNode as X, unref as r, mergeProps as V, createElementBlock as Y, toDisplayString as Z, nextTick as $ } from "vue";
1
+ import { defineComponent as U, useSlots as q, inject as $, shallowRef as K, ref as H, reactive as J, computed as N, onMounted as Q, watch as E, createBlock as m, openBlock as u, createSlots as W, withCtx as p, createVNode as I, renderSlot as b, normalizeClass as v, createCommentVNode as V, createElementVNode as X, unref as r, mergeProps as y, createElementBlock as Y, toDisplayString as Z, nextTick as R } from "vue";
2
2
  import { u as _ } from "../vendor/vee-validate/dist/vee-validate.esm.es.js";
3
3
  import { u as ee } from "../plugins/WangsVue.es.js";
4
4
  import { s as z } from "../vendor/primevue/inputgroupaddon/inputgroupaddon.esm.es.js";
@@ -49,15 +49,15 @@ const ce = /* @__PURE__ */ U({
49
49
  },
50
50
  emits: ["update:modelValue", "input"],
51
51
  setup(D, { emit: P }) {
52
- const e = D, f = P, i = q(), M = E(
52
+ const e = D, f = P, i = q(), M = $(
53
53
  "preset",
54
54
  {}
55
- ).inputgroupaddon, { locale: y } = ee("InputNumber"), w = E("preset", {}).inputnumber, N = K(0), h = H(), o = J({
55
+ ).inputgroupaddon, { locale: w } = ee("InputNumber"), c = $("preset", {}).inputnumber, x = K(0), h = H(), o = J({
56
56
  value: e.value ?? e.modelValue
57
- }), F = x(
57
+ }), F = N(
58
58
  () => {
59
59
  var t, a;
60
- return e.placeholder ?? ((a = y.defaultPlaceholder) == null ? void 0 : a.replace(
60
+ return e.placeholder ?? ((a = w.defaultPlaceholder) == null ? void 0 : a.replace(
61
61
  "{label}",
62
62
  e.label ? (t = e.label) == null ? void 0 : t.toLowerCase() : ""
63
63
  ));
@@ -68,13 +68,13 @@ const ce = /* @__PURE__ */ U({
68
68
  o,
69
69
  _(
70
70
  e.fieldName ?? "numberInput",
71
- (l) => $(() => O(l))
71
+ (l) => R(() => O(l))
72
72
  )
73
73
  );
74
74
  const t = e.value ?? e.modelValue, a = t != null ? C(t) : t;
75
75
  a != null && e.allowEmptyValue ? o.value = a : e.allowEmptyValue || (o.value = a ?? e.min ?? 0), e.invalid && e.useValidator && o.validate();
76
76
  });
77
- const G = x(() => e.invalid || !!o.errorMessage), L = x(() => e.inputId ? e.inputId : (e.label ?? e.fieldName ?? "input-number").toLowerCase().trim().replaceAll(" ", "-") + "-inputnumber"), O = (t) => {
77
+ const G = N(() => e.invalid || !!o.errorMessage), L = N(() => e.inputId ? e.inputId : (e.label ?? e.fieldName ?? "input-number").toLowerCase().trim().replaceAll(" ", "-") + "-inputnumber"), O = (t) => {
78
78
  var l, n;
79
79
  const a = t != null && typeof t == "number";
80
80
  if (e.invalid && typeof e.validatorMessage == "string")
@@ -82,18 +82,18 @@ const ce = /* @__PURE__ */ U({
82
82
  if (typeof e.validatorMessage != "string") {
83
83
  const { empty: s, exist: d } = e.validatorMessage ?? {};
84
84
  if (t == null && e.mandatory)
85
- return s ?? y.emptyInvalidText.replace("{label}", e.label);
85
+ return s ?? w.emptyInvalidText.replace("{label}", e.label);
86
86
  if (a && ((l = e.existingValues) != null && l.includes(t)))
87
- return d ?? ((n = y.alreadyExistInvalidText) == null ? void 0 : n.replace("{label}", e.label));
87
+ return d ?? ((n = w.alreadyExistInvalidText) == null ? void 0 : n.replace("{label}", e.label));
88
88
  }
89
89
  return !0;
90
90
  }, k = () => {
91
- N.value++, $(() => {
91
+ x.value++, R(() => {
92
92
  var l;
93
93
  const t = (l = h.value) == null ? void 0 : l.$el, a = t == null ? void 0 : t.querySelector("input");
94
94
  a == null || a.focus();
95
95
  });
96
- }, c = (t, a) => {
96
+ }, g = (t, a) => {
97
97
  const l = a === "input" ? t.value : t;
98
98
  let s = (() => {
99
99
  if (l != null)
@@ -114,19 +114,19 @@ const ce = /* @__PURE__ */ U({
114
114
  t != null && t.toString().length > (e.maxDigit > 16 ? 16 : e.maxDigit)
115
115
  ), T = () => {
116
116
  const t = +(o.value ?? 0) + 1;
117
- (e.max && e.max >= t || e.max == null) && c(t, "modelValue");
117
+ (e.max && e.max >= t || e.max == null) && g(t, "modelValue");
118
118
  }, j = () => {
119
119
  const t = +(o.value ?? 0) - 1;
120
- (e.min && e.min <= t || e.min == null) && c(t, "modelValue");
120
+ (e.min && e.min <= t || e.min == null) && g(t, "modelValue");
121
121
  }, C = (t) => e.min && t < e.min ? e.min : e.max && t > e.max ? e.max : t;
122
- return R(
122
+ return E(
123
123
  () => e.value,
124
124
  (t) => {
125
125
  const a = t != null ? C(t) : t;
126
126
  B(a) || (o.value = a);
127
127
  },
128
128
  { once: !0 }
129
- ), R(
129
+ ), E(
130
130
  () => e.modelValue,
131
131
  (t) => {
132
132
  const a = t != null ? C(t) : t;
@@ -140,7 +140,7 @@ const ce = /* @__PURE__ */ U({
140
140
  }, W({
141
141
  default: p(() => [
142
142
  I(le, {
143
- class: b([
143
+ class: v([
144
144
  "grid ",
145
145
  {
146
146
  "grid-cols-[max-content,1fr,max-content]": i["addon-left"] && i["addon-right"] || t.showButtons,
@@ -156,7 +156,7 @@ const ce = /* @__PURE__ */ U({
156
156
  default: p(() => [
157
157
  i["addon-left"] || e.showButtons ? (u(), m(r(z), {
158
158
  key: 0,
159
- class: b([t.addonLeftClass, { "cursor-pointer": e.showButtons }]),
159
+ class: v([t.addonLeftClass, { "cursor-pointer": e.showButtons }]),
160
160
  disabled: t.disabled,
161
161
  pt: {
162
162
  root: r(M).root({ props: e })
@@ -164,42 +164,47 @@ const ce = /* @__PURE__ */ U({
164
164
  onClick: a[0] || (a[0] = (l) => e.showButtons && !e.disabled ? j() : void 0)
165
165
  }, {
166
166
  default: p(() => [
167
- g(t.$slots, "addon-left", {}, () => [
168
- I(S, V(r(w).decrementicon({ props: e }), { icon: "subtract" }), null, 16)
167
+ b(t.$slots, "addon-left", {}, () => [
168
+ I(S, y(r(c).decrementicon({ props: e }), { icon: "subtract" }), null, 16)
169
169
  ])
170
170
  ]),
171
171
  _: 3
172
- }, 8, ["class", "disabled", "pt"])) : v("", !0),
172
+ }, 8, ["class", "disabled", "pt"])) : V("", !0),
173
173
  X("span", {
174
- class: b(["relative", { "w-max": t.autoResize }]),
174
+ class: v(["relative", { "w-max": t.autoResize }]),
175
175
  "data-wv-section": "autoresizeinputwrapper"
176
176
  }, [
177
- t.autoResize ? (u(), Y("span", V({
177
+ t.autoResize ? (u(), Y("span", y({
178
178
  key: 0,
179
179
  "data-wv-section": "inputresizer"
180
- }, r(w).inputresizer), Z((o.value ?? "").toString().padStart(t.padStart, "0")), 17)) : v("", !0),
181
- (u(), m(r(te), V({
182
- key: N.value,
180
+ }, r(c).inputresizer), Z((o.value ?? "").toString().padStart(t.padStart, "0")), 17)) : V("", !0),
181
+ (u(), m(r(te), y({
182
+ key: x.value,
183
183
  ref_key: "inputNumber",
184
184
  ref: h
185
- }, e, {
186
- class: [
187
- t.inputNumberClass,
188
- {
189
- "absolute left-0 top-0": t.autoResize
190
- }
191
- ],
185
+ }, { ...e, inputNumberClass: void 0 }, {
192
186
  "input-id": L.value,
193
187
  "model-value": o.value,
194
188
  placeholder: t.autoResize ? "" : F.value,
189
+ pt: {
190
+ root: {
191
+ class: [
192
+ r(c).root({ props: e, parent: t.$parent }).class,
193
+ t.inputNumberClass,
194
+ {
195
+ "absolute left-0 top-0": t.autoResize
196
+ }
197
+ ]
198
+ }
199
+ },
195
200
  "show-buttons": !1,
196
- onInput: a[1] || (a[1] = (l) => c(l, "input")),
197
- "onUpdate:modelValue": a[2] || (a[2] = (l) => c(l, "modelValue"))
198
- }), null, 16, ["class", "input-id", "model-value", "placeholder"]))
201
+ onInput: a[1] || (a[1] = (l) => g(l, "input")),
202
+ "onUpdate:modelValue": a[2] || (a[2] = (l) => g(l, "modelValue"))
203
+ }), null, 16, ["input-id", "model-value", "placeholder", "pt"]))
199
204
  ], 2),
200
205
  i["addon-right"] || e.showButtons ? (u(), m(r(z), {
201
206
  key: 1,
202
- class: b([t.addonRightClass, { "cursor-pointer": e.showButtons }]),
207
+ class: v([t.addonRightClass, { "cursor-pointer": e.showButtons }]),
203
208
  disabled: t.disabled,
204
209
  pt: {
205
210
  root: r(M).root({ props: e })
@@ -207,20 +212,20 @@ const ce = /* @__PURE__ */ U({
207
212
  onClick: a[3] || (a[3] = (l) => e.showButtons && !t.disabled ? T() : void 0)
208
213
  }, {
209
214
  default: p(() => [
210
- g(t.$slots, "addon-right", {}, () => [
211
- I(S, V(r(w).incrementicon({ props: e }), { icon: "add" }), null, 16)
215
+ b(t.$slots, "addon-right", {}, () => [
216
+ I(S, y(r(c).incrementicon({ props: e }), { icon: "add" }), null, 16)
212
217
  ])
213
218
  ]),
214
219
  _: 3
215
- }, 8, ["class", "disabled", "pt"])) : v("", !0)
220
+ }, 8, ["class", "disabled", "pt"])) : V("", !0)
216
221
  ]),
217
222
  _: 3
218
223
  }, 8, ["class", "disabled", "invalid"]),
219
- g(t.$slots, "validatormessage", {}, () => [
224
+ b(t.$slots, "validatormessage", {}, () => [
220
225
  e.showValidatorMessage ? (u(), m(oe, {
221
226
  key: 0,
222
227
  message: o.errorMessage
223
- }, null, 8, ["message"])) : v("", !0)
228
+ }, null, 8, ["message"])) : V("", !0)
224
229
  ])
225
230
  ]),
226
231
  _: 2
@@ -228,7 +233,7 @@ const ce = /* @__PURE__ */ U({
228
233
  i["field-label-addon"] ? {
229
234
  name: "label-addon",
230
235
  fn: p(() => [
231
- g(t.$slots, "field-label-addon")
236
+ b(t.$slots, "field-label-addon")
232
237
  ]),
233
238
  key: "0"
234
239
  } : void 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue-fats",
3
- "version": "1.0.1-alpha.27",
3
+ "version": "1.0.1-alpha.29",
4
4
  "author": "Wangsit FE Developer",
5
5
  "description": "Fixed Asset Tagsamurai VueJS Component Library",
6
6
  "type": "module",