@gct-paas/core-mobile 0.1.4-dev.9 → 0.1.5-dev.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.
@@ -0,0 +1 @@
1
+ var e={name:"Name",tel:"Telefon",save:"Speichern",clear:"Klar",cancel:"Abbrechen",confirm:"Bestätigen",delete:"Löschen",loading:"Laden...",noCoupon:"Keine Coupons",nameEmpty:"Bitte den Name angeben",addContact:"Neuen Kontakt hinzufügen",telInvalid:"Ungültige Telefonnummer",vanCalendar:{end:"Ende",start:"Start",title:"Kalender",weekdays:["So","Mo","Di","Mo","Do","Fr","Sa"],monthTitle:(e,n)=>`${e}/${n}`,rangePrompt:e=>`Wähle nicht mehr als ${e} Tage`},vanCascader:{select:"Wählen"},vanPagination:{prev:"Vorherige",next:"Nächste"},vanPullRefresh:{pulling:"Zum Aktualisieren herunterziehen...",loosing:"Loslassen zum Aktualisieren..."},vanSubmitBar:{label:"Total:"},vanCoupon:{unlimited:"Unbegrenzt",discount:e=>10*e+"% Rabatt",condition:e=>`Mindestens ${e}`},vanCouponCell:{title:"Coupon",count:e=>`Du hast ${e} Coupons`},vanCouponList:{exchange:"Austauschen",close:"Schließen",enable:"Verfügbar",disabled:"Nicht verfügbar",placeholder:"Couponcode"},vanAddressEdit:{area:"Standort",areaEmpty:"Bitte deinen Ort angeben",addressEmpty:"Adresse darf nicht leer sein",addressDetail:"Adresse",defaultAddress:"Als Standardadresse festgelegen"},vanAddressList:{add:"Neue Adresse hinzufügen"}};export{e as default};
@@ -0,0 +1 @@
1
+ var e={name:"Name",tel:"Phone",save:"Save",clear:"Clear",cancel:"Cancel",confirm:"Confirm",delete:"Delete",loading:"Loading...",noCoupon:"No coupons",nameEmpty:"Please fill in the name",addContact:"Add contact",telInvalid:"Malformed phone number",vanCalendar:{end:"End",start:"Start",title:"Calendar",weekdays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthTitle:(e,a)=>`${e}/${a}`,rangePrompt:e=>`Choose no more than ${e} days`},vanCascader:{select:"Select"},vanPagination:{prev:"Previous",next:"Next"},vanPullRefresh:{pulling:"Pull to refresh...",loosing:"Loose to refresh..."},vanSubmitBar:{label:"Total:"},vanCoupon:{unlimited:"Unlimited",discount:e=>10*e+"% off",condition:e=>`At least ${e}`},vanCouponCell:{title:"Coupon",count:e=>`You have ${e} coupons`},vanCouponList:{exchange:"Exchange",close:"Close",enable:"Available",disabled:"Unavailable",placeholder:"Coupon code"},vanAddressEdit:{area:"Area",areaEmpty:"Please select a receiving area",addressEmpty:"Address can not be empty",addressDetail:"Address",defaultAddress:"Set as the default address"},vanAddressList:{add:"Add new address"}};export{e as default};
@@ -0,0 +1 @@
1
+ var e={name:"Nombre",tel:"Teléfono",save:"Guardar",clear:"Claro",cancel:"Cancelar",confirm:"Confirmar",delete:"Eliminar",loading:"Cargando...",noCoupon:"Sin cupones",nameEmpty:"Por favor rellena el nombre",addContact:"Añadi contacto",telInvalid:"Teléfono inválido",vanCalendar:{end:"Fin",start:"Inicio",title:"Calendario",weekdays:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],monthTitle:(e,a)=>`${e}/${a}`,rangePrompt:e=>`Elija no más de ${e} días`},vanCascader:{select:"Seleccione"},vanPagination:{prev:"Anterior",next:"Siguiente"},vanPullRefresh:{pulling:"Tira para recargar...",loosing:"Suelta para recargar..."},vanSubmitBar:{label:"Total:"},vanCoupon:{unlimited:"Ilimitado",discount:e=>10*e+"% de descuento",condition:e=>`Al menos ${e}`},vanCouponCell:{title:"Cupón",count:e=>`You have ${e} coupons`},vanCouponList:{exchange:"Intercambio",close:"Cerrar",enable:"Disponible",disabled:"No disponible",placeholder:"Código del cupón"},vanAddressEdit:{area:"Área",areaEmpty:"Por favor selecciona una área de recogida",addressEmpty:"La dirección no puede estar vacia",addressDetail:"Dirección",defaultAddress:"Establecer como dirección por defecto"},vanAddressList:{add:"Anadir dirección"}};export{e as default};
@@ -0,0 +1 @@
1
+ var e={name:"Nom",tel:"Telephone",save:"Sauvegarder",clear:"Clair",cancel:"Annuler",confirm:"Confirmer",delete:"Suprimer",loading:"Chargement...",noCoupon:"Pas de coupons",nameEmpty:"Veuillez remplir le nom",addContact:"Ajouter contact",telInvalid:"Numéro de téléphone incorrect",vanCalendar:{end:"Fin",start:"Début",title:"Calendrier",weekdays:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],monthTitle:(e,n)=>`${e}/${n}`,rangePrompt:e=>`Choisir pas plus de ${e} jours`},vanCascader:{select:"Sélectionner"},vanPagination:{prev:"Précédent",next:"Suivant"},vanPullRefresh:{pulling:"Tirer pour actualiser ...",loosing:"Relâchez pour actualiser..."},vanSubmitBar:{label:"Total:"},vanCoupon:{unlimited:"Illimité",discount:e=>10*e+"% de réduction",condition:e=>`Au moins ${e}`},vanCouponCell:{title:"Coupon",count:e=>`Vous avez ${e} coupons`},vanCouponList:{exchange:"Exchange",close:"Fermer",enable:"Disponible",disabled:"Indisponible",placeholder:"Code coupon"},vanAddressEdit:{area:"Zone",areaEmpty:"Veuillez sélectionner une zone de réception",addressEmpty:"L'adresse ne peut pas être vide",addressDetail:"Adresse",defaultAddress:"Définir comme adresse par défaut"},vanAddressList:{add:"Ajouter une nouvelle adresse"}};export{e as default};
@@ -0,0 +1,2 @@
1
+ [data-v-6e846204] .van-button.btn-font-color{color:var(--fontColor)!important}[data-v-6e846204] .van-button.btn-bg-style{border-color:var(--backgroundColor)!important;background:var(--backgroundColor)!important}[data-v-6e846204] .van-button.btn-border-style{background:0 0;border-color:var(--backgroundColor)!important}[data-v-6e846204] .van-button__icon{font-size:0}.dashed[data-v-6e846204]{border-style:dashed}.link[data-v-6e846204]{color:var(--van-primary-color);background-color:#0000;border:none}.link[data-v-6e846204]:active :scope:before,.link[data-v-6e846204]:active:before{opacity:0}.gct-van-button-icon-only[data-v-6e846204] .van-button__icon+.van-button__text{margin-left:0}
2
+ /*$vite$:1*/
@@ -0,0 +1 @@
1
+ var e={name:"お名前",tel:"電話番号",save:"セーブ",clear:"クリア",cancel:"キャンセル",confirm:"確認",delete:"削除",loading:"読み込み中...",noCoupon:"クーポンはありません",nameEmpty:"名前を入力してください",addContact:"連絡先を追加",telInvalid:"正しい電話番号を入力してください",vanCalendar:{end:"終了",start:"開始",title:"日付選択",weekdays:["日","月","火","水","木","金","土"],monthTitle:(e,a)=>`${e}年${a}月`,rangePrompt:e=>`${e}日まで選択`},vanCascader:{select:"選択する"},vanPagination:{prev:"前のページ",next:"次のページ"},vanPullRefresh:{pulling:"プルダウンして更新...",loosing:"リリース時に更新..."},vanSubmitBar:{label:"合計:"},vanCoupon:{unlimited:"無制限",discount:e=>10-e+"割引",condition:e=>`${e}円以上で利用可能`},vanCouponCell:{title:"クーポン",count:e=>`${e}枚が利用可能`},vanCouponList:{exchange:"両替",close:"使用禁止",enable:"利用可能",disabled:"利用できません",placeholder:"割引コードを入力してください"},vanAddressEdit:{area:"地域",areaEmpty:"地域を選択してください",addressEmpty:"詳しい住所を入力してください",addressDetail:"詳しい住所",defaultAddress:"デフォルトの住所に設定"},vanAddressList:{add:"住所を追加"}};export{e as default};
@@ -0,0 +1 @@
1
+ import{computed as e,createBlock as o,createCommentVNode as t,createElementBlock as l,createTextVNode as a,createVNode as n,defineComponent as i,normalizeClass as r,normalizeStyle as s,openBlock as u,ref as d,resolveComponent as c,toDisplayString as p,withCtx as f}from"vue";import m,{showConfirmDialog as v}from"vant";import{ButtonSize as g,ButtonStyle as y,ButtonType as b,ButtonType_vant as C,t as R}from"@gct-paas/core";var h={"zh-CN":()=>import("./zh-CN-C4LceMCt.js"),"en-US":()=>import("./en-US-Dr0jFB4Q.js"),"pt-BR":()=>import("./pt-BR-Dq3VR77V.js"),"tr-TR":()=>import("./tr-TR-BfmYfhvY.js"),"zh-TW":()=>import("./zh-TW-p_4YJMOD.js"),"ja-JP":()=>import("./ja-JP-lnEqez25.js"),"vi-VN":()=>import("./vi-VN-DtONCFwt.js"),"de-GE":()=>import("./de-DE-Chzz6lz7.js"),"fr-FR":()=>import("./fr-FR-DXwElwtS.js"),"es-ES":()=>import("./es-ES-CFDCOgQW.js"),"ru-RU":()=>import("./ru-RU-Rd1ffaWM.js")},k=d({locale:""});function T(){if(k.value.locale!==_gct.i18n.global.locale){const e=h[_gct.i18n.global.locale];e&&e().then(e=>{k.value=e.default})}return{getVantLocale:k}}var A={class:"inline-block align-middle whitespace-nowrap"},j=/* @__PURE__ */(e=>{const o=e.__vccOpts||e;for(const[t,l]of[["__scopeId","data-v-6e846204"]])o[t]=l;return o})(/* @__PURE__ */i({__name:"vant-button",props:{hasIcon:{type:Boolean,default:!1},hasText:{type:Boolean,default:!0},type:{default:b.PRIMARY},size:{default:g.DEFAULT},danger:{type:Boolean,default:!1},icon:{default:""},title:{default:""},disabled:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},i18nConfig:{default:""},buttonStyle:{default:y.ORDINARY},confirmText:{default:""},confirm:{type:Boolean,default:!1},enableCustomColor:{type:Boolean,default:!1},backgroundColor:{default:""},fontColor:{default:""},block:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["click"],setup(i,{emit:d}){const m=d,y=i,h=e(()=>y.title),k=e(()=>y.danger?C.DANGER:y.type===b.DASHED||y.type===b.DEFAULT?C.DEFAULT:C.PRIMARY),T=e(()=>!(y.type!==b.DEFAULT||!y.danger)),j=e(()=>y.type===b.DASHED),D=e(()=>y.type===b.LINK),B=e(()=>function(e){switch(e){case g.SMALL:case g.DEFAULT:}return"small"}(y.size)),E=e(()=>y.hasIcon&&!y.hasText),I=e(()=>(null==y?void 0:y.enableCustomColor)&&(null==y?void 0:y.fontColor)),z=e(()=>(null==y?void 0:y.enableCustomColor)&&(null==y?void 0:y.backgroundColor)&&y.type===C.PRIMARY),L=e(()=>(null==y?void 0:y.enableCustomColor)&&(null==y?void 0:y.backgroundColor)&&k.value!==C.PRIMARY);async function U(){!/\/page-designer\//.test(location.pathname)&&y.confirm&&await v({message:y.confirmText||R("sys.pageDesigner.confirmTodo")}),m("click")}return(e,d)=>{const m=c("IconNext"),v=c("van-button");return u(),l("div",A,[n(v,{loading:i.loading,block:i.block,type:k.value,size:B.value,plain:T.value,disabled:i.disabled,style:s({"--fontColor":i.fontColor,"--backgroundColor":i.backgroundColor}),class:r({dashed:j.value,link:D.value,"gct-van-button-icon-only":E.value,"btn-font-color":I.value,"btn-bg-style":z.value,"btn-border-style":L.value}),onClick:U},{icon:f(()=>[i.hasIcon?(u(),o(m,{key:0,size:14,value:i.icon,style:{marginRight:"0px","--color":"inherit",lineHeight:"1"}},null,8,["value"])):t("",!0)]),default:f(()=>[a(" "+p(i.hasText?h.value:""),1)]),_:1},8,["loading","block","type","size","plain","disabled","style","class"])])}}})),D="undefined"==typeof window,B=!D;async function E(e){e.use(m)}export{j as VantButton,E as coreMobileCreateAppVue,B as isClient,D as isServer,T as useLocale};
@@ -0,0 +1 @@
1
+ var e={name:"Nome",tel:"Fone",save:"Salvar",clear:"Claro",cancel:"Cancelar",confirm:"Confirmar",delete:"Excluir",loading:"Carregando...",noCoupon:"Nenhum cupom",nameEmpty:"Por favor, preencha o nome",addContact:"Adicionar novo contato",telInvalid:"Telefone em formato inválido",vanCalendar:{end:"Fim",start:"Início",title:"Calendário",weekdays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],monthTitle:(e,a)=>`${a}/${e}`,rangePrompt:e=>`Escolha no máximo ${e} dias`},vanCascader:{select:"Selecione"},vanPagination:{prev:"Anterior",next:"Próximo"},vanPullRefresh:{pulling:"Puxe para atualizar...",loosing:"Solte para atualizar..."},vanSubmitBar:{label:"Total:"},vanCoupon:{unlimited:"Ilimitado",discount:e=>10*e+"% de desconto",condition:e=>`Pelo menos ${e}`},vanCouponCell:{title:"Cupom",count:e=>`Você possui ${e} cupom(ns)`},vanCouponList:{exchange:"Usar",close:"Fechar",enable:"Disponível",disabled:"Indisponível",placeholder:"Código do cupom"},vanAddressEdit:{area:"Área",areaEmpty:"Por favor, selecione uma área de recebimento",addressEmpty:"Endereço não pode ser vazio",addressDetail:"Endereço",defaultAddress:"Usar como endereço padrão"},vanAddressList:{add:"Adicionar novo endereço"}};export{e as default};
@@ -0,0 +1 @@
1
+ var e={name:"Имя",tel:"Телефон",save:"Сохранить",clear:"Прозрачный",cancel:"Отмена",confirm:"Подтвердить",delete:"Удалить",loading:"Загрузка...",noCoupon:"Нет купонов",nameEmpty:"Пожалуйста укажите имя",addContact:"Создать контакт",telInvalid:"Некорректный номер телефона",vanCalendar:{end:"Конец",start:"Начало",title:"Календарь",weekdays:["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"],monthTitle:(e,a)=>`${e}/${a}`,rangePrompt:e=>`Укажите более ${e} дней`},vanCascader:{select:"Выбрать"},vanPagination:{prev:"Назад",next:"Вперед"},vanPullRefresh:{pulling:"Потяните для обновления...",loosing:"Отпустите для обновления..."},vanSubmitBar:{label:"Всего:"},vanCoupon:{unlimited:"Безлимитный",discount:e=>10*e+"% скидка",condition:e=>`Как минимум ${e}`},vanCouponCell:{title:"Купон",count:e=>`У вас есть ${e} купонов`},vanCouponList:{exchange:"Обмен",close:"Закрыть",enable:"Доступно",disabled:"Недоступно",placeholder:"Код купона"},vanAddressEdit:{area:"Область",areaEmpty:"Укажите зону доставки",addressEmpty:"Адрес не может быть пустым",addressDetail:"Адрес",defaultAddress:"Сделать адресом по умолчанию"},vanAddressList:{add:"Новый адрес"}};export{e as default};
@@ -0,0 +1 @@
1
+ var a={name:"İsim",tel:"Telefon",save:"Kaydet",clear:"Temizlemek",cancel:"İptal",confirm:"Onayla",delete:"Sil",loading:"Yükleniyor...",noCoupon:"Kupon yok",nameEmpty:"Lütfen isim giriniz",addContact:"Yeni kişi ekle",telInvalid:"Geçersiz tel. numarası",vanCalendar:{end:"Son",start:"Başlat",title:"Takvim",weekdays:["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"],monthTitle:(a,e)=>`${a}/${e}`,rangePrompt:a=>`En fazla ${a} gün seçin`},vanCascader:{select:"Seçiniz"},vanPagination:{prev:"Önceki",next:"Sonraki"},vanPullRefresh:{pulling:"Yenilemek için çekin...",loosing:"Yenilemek için bırakın..."},vanSubmitBar:{label:"Toplam:"},vanCoupon:{unlimited:"Sınırsız",discount:a=>`%${10*a} indirim`,condition:a=>`En az ${a}`},vanCouponCell:{title:"Kupon",count:a=>`${a} adet teklif var`},vanCouponList:{exchange:"Takas",close:"Kapat",enable:"Mevcut",disabled:"Mevcut değil",placeholder:"Kupon kodu"},vanAddressEdit:{area:"Alan",areaEmpty:"Lütfen alıcı alanını seçin",addressEmpty:"Adres boş olamaz!",addressDetail:"Adres",defaultAddress:"Varsayılan adres olarak ayarla"},vanAddressList:{add:"Yeni adres ekle"}};export{a as default};
@@ -0,0 +1 @@
1
+ var n={name:"tên",tel:"Điện thoại",save:"Cứu",clear:"Thông thoáng",cancel:"Hủy bỏ",confirm:"Xác nhận",delete:"Xóa",loading:"Đang tải ...",noCoupon:"Không có phiếu giảm giá",nameEmpty:"Vui lòng điền vào tên",addContact:"Thêm liên hệ",telInvalid:"Số điện thoại không đúng định dạng",vanCalendar:{end:"Kết thúc",start:"Bắt ​​đầu",title:"Lịch",weekdays:["chủ nhật","thứ hai","thứ ba","Thứ Tư","Thứ năm","Thứ sáu","thứ bảy"],monthTitle:(n,a)=>`${n}/${a}`,rangePrompt:n=>`Chọn không quá ${n} ngày`},vanCascader:{select:"Chọn"},vanPagination:{prev:"Trước đó",next:"Tiếp theo"},vanPullRefresh:{pulling:"Kéo để làm mới ...",loosing:"Loose để làm mới ..."},vanSubmitBar:{label:"Tổng:"},vanCoupon:{unlimited:"Không giới hạn",discount:n=>`Chiết khấu ${10*n}%`,condition:n=>`Ít nhất ${n}`},vanCouponCell:{title:"Phiếu giảm giá",count:n=>`Bạn có ${n} phiếu giảm giá`},vanCouponList:{exchange:"Trao đổi",close:"Đóng",enable:"Có sẵn",disabled:"Không khả dụng",placeholder:"Mã phiếu thưởng"},vanAddressEdit:{area:"Khu vực",areaEmpty:"Vui lòng chọn khu vực nhận hàng",addressEmpty:"Địa chỉ không được để trống",addressDetail:"Địa chỉ",defaultAddress:"Đặt làm địa chỉ mặc định"},vanAddressList:{add:"Thêm địa chỉ mới"}};export{n as default};
@@ -0,0 +1 @@
1
+ var e={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,a)=>`${e}年${a}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};export{e as default};
@@ -0,0 +1 @@
1
+ var e={name:"姓名",tel:"電話",save:"儲存",clear:"清空",cancel:"取消",confirm:"確認",delete:"刪除",loading:"載入中...",noCoupon:"暫無優惠券",nameEmpty:"請填寫姓名",addContact:"建立聯絡人",telInvalid:"請填寫正確的電話",vanCalendar:{end:"結束",start:"開始",title:"日期選擇",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,a)=>`${e}年${a}月`,rangePrompt:e=>`最多選擇 ${e} 天`},vanCascader:{select:"請選擇"},vanPagination:{prev:"上一頁",next:"下一頁"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"釋放即可刷新..."},vanSubmitBar:{label:"合計:"},vanCoupon:{unlimited:"無門檻",discount:e=>`${e}折`,condition:e=>`滿${e}元可用`},vanCouponCell:{title:"優惠券",count:e=>`${e}張可用`},vanCouponList:{exchange:"兌換",close:"不使用",enable:"可使用優惠券",disabled:"不可使用優惠券",placeholder:"輸入優惠代碼"},vanAddressEdit:{area:"地區",areaEmpty:"請選擇地區",addressEmpty:"請填寫詳細地址",addressDetail:"詳細地址",defaultAddress:"設為預設收貨地址"},vanAddressList:{add:"新增地址"}};export{e as default};
@@ -0,0 +1,8 @@
1
+ //#region \0plugin-vue:export-helper
2
+ var _plugin_vue_export_helper_default = (sfc, props) => {
3
+ const target = sfc.__vccOpts || sfc;
4
+ for (const [key, val] of props) target[key] = val;
5
+ return target;
6
+ };
7
+ //#endregion
8
+ export { _plugin_vue_export_helper_default as default };
@@ -0,0 +1,2 @@
1
+ import { default as VantButton } from './vant-button/vant-button.vue';
2
+ export { VantButton };
@@ -0,0 +1 @@
1
+ import "./vant-button/vant-button.vue.mjs";
@@ -0,0 +1,46 @@
1
+ import { ButtonSize, ButtonStyle, ButtonType } from '@gct-paas/core';
2
+ type __VLS_Props = {
3
+ hasIcon?: boolean;
4
+ hasText?: boolean;
5
+ type?: ButtonType;
6
+ size?: ButtonSize;
7
+ danger?: boolean;
8
+ icon?: string;
9
+ title?: string;
10
+ disabled?: boolean;
11
+ hidden?: boolean;
12
+ i18nConfig?: string;
13
+ buttonStyle?: ButtonStyle;
14
+ confirmText?: string;
15
+ confirm?: boolean;
16
+ enableCustomColor?: boolean;
17
+ backgroundColor?: string;
18
+ fontColor?: string;
19
+ block?: boolean;
20
+ loading?: boolean;
21
+ };
22
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
+ click: (...args: any[]) => void;
24
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
25
+ onClick?: ((...args: any[]) => any) | undefined;
26
+ }>, {
27
+ hasIcon: boolean;
28
+ hasText: boolean;
29
+ type: ButtonType;
30
+ size: ButtonSize;
31
+ danger: boolean;
32
+ icon: string;
33
+ title: string;
34
+ disabled: boolean;
35
+ hidden: boolean;
36
+ i18nConfig: string;
37
+ buttonStyle: ButtonStyle;
38
+ confirmText: string;
39
+ confirm: boolean;
40
+ enableCustomColor: boolean;
41
+ backgroundColor: string;
42
+ fontColor: string;
43
+ block: boolean;
44
+ loading: boolean;
45
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
46
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import vant_button_vue_vue_type_script_setup_true_name_vantButton_lang_default from "./vant-button.vue_vue_type_script_setup_true_name_vantButton_lang.mjs";
2
+ import './vant-button.vue_vue_type_style_index_0_scoped_6e846204_lang.css';/* empty css */
3
+ import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ //#region src/components/vant-button/vant-button.vue
5
+ var vant_button_default = /* @__PURE__ */ _plugin_vue_export_helper_default(vant_button_vue_vue_type_script_setup_true_name_vantButton_lang_default, [["__scopeId", "data-v-6e846204"]]);
6
+ //#endregion
7
+ export { vant_button_default as default };
@@ -0,0 +1,149 @@
1
+ import { computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, resolveComponent, toDisplayString, withCtx } from "vue";
2
+ import { showConfirmDialog } from "vant";
3
+ import { ButtonSize, ButtonStyle, ButtonType, ButtonType_vant, t } from "@gct-paas/core";
4
+ //#region src/components/vant-button/vant-button.vue?vue&type=script&setup=true&name=vantButton&lang.ts
5
+ var _hoisted_1 = { class: "inline-block align-middle whitespace-nowrap" };
6
+ var vant_button_vue_vue_type_script_setup_true_name_vantButton_lang_default = /* @__PURE__ */ defineComponent({
7
+ __name: "vant-button",
8
+ props: {
9
+ hasIcon: {
10
+ type: Boolean,
11
+ default: false
12
+ },
13
+ hasText: {
14
+ type: Boolean,
15
+ default: true
16
+ },
17
+ type: { default: ButtonType.PRIMARY },
18
+ size: { default: ButtonSize.DEFAULT },
19
+ danger: {
20
+ type: Boolean,
21
+ default: false
22
+ },
23
+ icon: { default: "" },
24
+ title: { default: "" },
25
+ disabled: {
26
+ type: Boolean,
27
+ default: false
28
+ },
29
+ hidden: {
30
+ type: Boolean,
31
+ default: false
32
+ },
33
+ i18nConfig: { default: "" },
34
+ buttonStyle: { default: ButtonStyle.ORDINARY },
35
+ confirmText: { default: "" },
36
+ confirm: {
37
+ type: Boolean,
38
+ default: false
39
+ },
40
+ enableCustomColor: {
41
+ type: Boolean,
42
+ default: false
43
+ },
44
+ backgroundColor: { default: "" },
45
+ fontColor: { default: "" },
46
+ block: {
47
+ type: Boolean,
48
+ default: false
49
+ },
50
+ loading: {
51
+ type: Boolean,
52
+ default: false
53
+ }
54
+ },
55
+ emits: ["click"],
56
+ setup(__props, { emit: __emit }) {
57
+ const emit = __emit;
58
+ const defProps = __props;
59
+ const buttonTitle = computed(() => defProps.title);
60
+ const btnType = computed(() => {
61
+ if (defProps.danger) return ButtonType_vant.DANGER;
62
+ else if (defProps.type === ButtonType.DASHED || defProps.type === ButtonType.DEFAULT) return ButtonType_vant.DEFAULT;
63
+ else return ButtonType_vant.PRIMARY;
64
+ });
65
+ const plain = computed(() => {
66
+ return defProps.type === ButtonType.DEFAULT && defProps.danger ? true : false;
67
+ });
68
+ const dashed = computed(() => {
69
+ return defProps.type === ButtonType.DASHED ? true : false;
70
+ });
71
+ const link = computed(() => {
72
+ return defProps.type === ButtonType.LINK ? true : false;
73
+ });
74
+ /** Vant `van-button` size prop (`vant/lib/button/types`) */
75
+ function toVantButtonSize(size) {
76
+ switch (size) {
77
+ case ButtonSize.SMALL: return "small";
78
+ case ButtonSize.DEFAULT:
79
+ default: return "small";
80
+ }
81
+ }
82
+ const btnSize = computed(() => toVantButtonSize(defProps.size));
83
+ const onlyIcon = computed(() => {
84
+ return defProps.hasIcon && !defProps.hasText;
85
+ });
86
+ const hasFontColor = computed(() => {
87
+ return defProps?.enableCustomColor && defProps?.fontColor;
88
+ });
89
+ const hasBgColor = computed(() => {
90
+ return defProps?.enableCustomColor && defProps?.backgroundColor && defProps.type === ButtonType_vant.PRIMARY;
91
+ });
92
+ const hasBorderColor = computed(() => {
93
+ return defProps?.enableCustomColor && defProps?.backgroundColor && btnType.value !== ButtonType_vant.PRIMARY;
94
+ });
95
+ async function handleClick() {
96
+ if (!/\/page-designer\//.test(location.pathname) && defProps.confirm) await showConfirmDialog({ message: defProps.confirmText || t("sys.pageDesigner.confirmTodo") });
97
+ emit("click");
98
+ }
99
+ return (_ctx, _cache) => {
100
+ const _component_IconNext = resolveComponent("IconNext");
101
+ const _component_van_button = resolveComponent("van-button");
102
+ return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_van_button, {
103
+ loading: __props.loading,
104
+ block: __props.block,
105
+ type: btnType.value,
106
+ size: btnSize.value,
107
+ plain: plain.value,
108
+ disabled: __props.disabled,
109
+ style: normalizeStyle({
110
+ "--fontColor": __props.fontColor,
111
+ "--backgroundColor": __props.backgroundColor
112
+ }),
113
+ class: normalizeClass({
114
+ dashed: dashed.value,
115
+ link: link.value,
116
+ "gct-van-button-icon-only": onlyIcon.value,
117
+ "btn-font-color": hasFontColor.value,
118
+ "btn-bg-style": hasBgColor.value,
119
+ "btn-border-style": hasBorderColor.value
120
+ }),
121
+ onClick: handleClick
122
+ }, {
123
+ icon: withCtx(() => [__props.hasIcon ? (openBlock(), createBlock(_component_IconNext, {
124
+ key: 0,
125
+ size: 14,
126
+ value: __props.icon,
127
+ style: {
128
+ marginRight: "0px",
129
+ "--color": "inherit",
130
+ lineHeight: "1"
131
+ }
132
+ }, null, 8, ["value"])) : createCommentVNode("", true)]),
133
+ default: withCtx(() => [createTextVNode(" " + toDisplayString(__props.hasText ? buttonTitle.value : ""), 1)]),
134
+ _: 1
135
+ }, 8, [
136
+ "loading",
137
+ "block",
138
+ "type",
139
+ "size",
140
+ "plain",
141
+ "disabled",
142
+ "style",
143
+ "class"
144
+ ])]);
145
+ };
146
+ }
147
+ });
148
+ //#endregion
149
+ export { vant_button_vue_vue_type_script_setup_true_name_vantButton_lang_default as default };
@@ -0,0 +1,95 @@
1
+ @charset "UTF-8";
2
+ /* stylelint-disable scss/no-global-function-names */
3
+ /* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
4
+ /**
5
+ * 定义 Block 块
6
+ * @param {String} $block - Block 块名称
7
+ * @example
8
+ * @include b('button') {
9
+ * padding: 10px;
10
+ * }
11
+ */
12
+ /**
13
+ * 定义 Element 元素
14
+ * @param {String|List} $element - Element 元素名称,支持单个或多个
15
+ * @example
16
+ * @include b('button') {
17
+ * @include e('text') {
18
+ * color: #000;
19
+ * }
20
+ * }
21
+ * // 或传入多个元素
22
+ * @include b('button') {
23
+ * @include e(('text', 'icon')) {
24
+ * margin: 5px;
25
+ * }
26
+ * }
27
+ */
28
+ /**
29
+ * 定义 Modifier 修饰符
30
+ * @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
31
+ * @example
32
+ * @include b('button') {
33
+ * @include m('primary') {
34
+ * background: blue;
35
+ * }
36
+ * }
37
+ * // 或传入多个修饰符
38
+ * @include b('button') {
39
+ * @include m(('primary', 'large')) {
40
+ * background: blue;
41
+ * font-size: 16px;
42
+ * }
43
+ * }
44
+ */
45
+ /**
46
+ * 定义状态选择器
47
+ * @param {String} $state - 状态名称
48
+ * @example
49
+ * @include b('button') {
50
+ * @include when('disabled') {
51
+ * opacity: 0.5;
52
+ * }
53
+ * }
54
+ */
55
+ /**
56
+ * 深色主题样式
57
+ * @param {String} $block - Block 块名称
58
+ * @example
59
+ * @include dark('button') {
60
+ * background: #333;
61
+ * color: #fff;
62
+ * }
63
+ */
64
+ /* stylelint-disable scss/no-global-function-names */
65
+ [data-v-6e846204] .van-button.btn-font-color {
66
+ color: var(--fontColor) !important;
67
+ }
68
+ [data-v-6e846204] .van-button.btn-bg-style {
69
+ border-color: var(--backgroundColor) !important;
70
+ background: var(--backgroundColor) !important;
71
+ }
72
+ [data-v-6e846204] .van-button.btn-border-style {
73
+ border-color: var(--backgroundColor) !important;
74
+ background: transparent;
75
+ }
76
+ [data-v-6e846204] .van-button__icon {
77
+ font-size: 0;
78
+ }
79
+ .dashed[data-v-6e846204] {
80
+ border-style: dashed;
81
+ }
82
+ .link[data-v-6e846204] {
83
+ border: none;
84
+ background-color: transparent;
85
+ color: var(--van-primary-color);
86
+ }
87
+ .link[data-v-6e846204]:active &::before {
88
+ opacity: 0;
89
+ }
90
+ .link[data-v-6e846204]:active::before {
91
+ opacity: 0;
92
+ }
93
+ .gct-van-button-icon-only[data-v-6e846204] .van-button__icon + .van-button__text {
94
+ margin-left: 0;
95
+ }
@@ -0,0 +1,9 @@
1
+ import { App } from 'vue';
2
+ /**
3
+ * 核心 Mobile 库的外部使用注册,在创建 app 时调用
4
+ *
5
+ * @export
6
+ * @param {App} app
7
+ * @return {*} {Promise<void>}
8
+ */
9
+ export declare function coreMobileCreateAppVue(app: App): Promise<void>;
@@ -0,0 +1,14 @@
1
+ import Vant from "vant";
2
+ //#region src/create-app-vue.ts
3
+ /**
4
+ * 核心 Mobile 库的外部使用注册,在创建 app 时调用
5
+ *
6
+ * @export
7
+ * @param {App} app
8
+ * @return {*} {Promise<void>}
9
+ */
10
+ async function coreMobileCreateAppVue(app) {
11
+ app.use(Vant);
12
+ }
13
+ //#endregion
14
+ export { coreMobileCreateAppVue };
@@ -0,0 +1 @@
1
+ import "./useLocale.mjs";
@@ -1,3 +1,3 @@
1
1
  export declare function useLocale(): {
2
- getVantLocale: import('vue').ComputedRef<object | undefined>;
2
+ getVantLocale: import('vue').Ref<IObject, IObject>;
3
3
  };
@@ -1,32 +1,27 @@
1
- import { computed } from 'vue';
2
- import vantLocaleCn from 'vant/es/locale/lang/zh-CN';
3
- import vantLocaleUs from 'vant/es/locale/lang/en-US';
4
- import vantLocalePt from 'vant/es/locale/lang/pt-BR';
5
- import vantLocaleTr from 'vant/es/locale/lang/tr-TR';
6
- import vantLocaleTw from 'vant/es/locale/lang/zh-TW';
7
- import vantLocaleJp from 'vant/es/locale/lang/ja-JP';
8
- import vantLocaleVn from 'vant/es/locale/lang/vi-VN';
9
- import vantLocaleDe from 'vant/es/locale/lang/de-DE';
10
- import vantLocaleFr from 'vant/es/locale/lang/fr-FR';
11
- import vantLocaleEs from 'vant/es/locale/lang/es-ES';
12
- import vantLocaleRu from 'vant/es/locale/lang/ru-RU';
13
-
14
- const vantMap = {
15
- "zh-CN": vantLocaleCn,
16
- "en-US": vantLocaleUs,
17
- "pt-BR": vantLocalePt,
18
- "tr-TR": vantLocaleTr,
19
- "zh-TW": vantLocaleTw,
20
- "ja-JP": vantLocaleJp,
21
- "vi-VN": vantLocaleVn,
22
- "de-GE": vantLocaleDe,
23
- "fr-FR": vantLocaleFr,
24
- "es-ES": vantLocaleEs,
25
- "ru-RU": vantLocaleRu
1
+ import { ref } from "vue";
2
+ //#region src/hooks/useLocale.ts
3
+ var vantMap = {
4
+ "zh-CN": () => import("vant/es/locale/lang/zh-CN"),
5
+ "en-US": () => import("vant/es/locale/lang/en-US"),
6
+ "pt-BR": () => import("vant/es/locale/lang/pt-BR"),
7
+ "tr-TR": () => import("vant/es/locale/lang/tr-TR"),
8
+ "zh-TW": () => import("vant/es/locale/lang/zh-TW"),
9
+ "ja-JP": () => import("vant/es/locale/lang/ja-JP"),
10
+ "vi-VN": () => import("vant/es/locale/lang/vi-VN"),
11
+ "de-GE": () => import("vant/es/locale/lang/de-DE"),
12
+ "fr-FR": () => import("vant/es/locale/lang/fr-FR"),
13
+ "es-ES": () => import("vant/es/locale/lang/es-ES"),
14
+ "ru-RU": () => import("vant/es/locale/lang/ru-RU")
26
15
  };
16
+ var getVantLocale = ref({ locale: "" });
27
17
  function useLocale() {
28
- const getVantLocale = computed(() => vantMap[_gct.store.getLang]);
29
- return { getVantLocale };
18
+ if (getVantLocale.value.locale !== _gct.i18n.global.locale) {
19
+ const loadLocale = vantMap[_gct.i18n.global.locale];
20
+ if (loadLocale) loadLocale().then((module) => {
21
+ getVantLocale.value = module.default;
22
+ });
23
+ }
24
+ return { getVantLocale };
30
25
  }
31
-
26
+ //#endregion
32
27
  export { useLocale };
package/es/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- import { App } from 'vue';
2
- declare const _default: {
3
- install(_app: App): void;
4
- };
5
- export default _default;
6
1
  export * from './hooks';
2
+ export * from './components';
3
+ export * from './utils';
4
+ export { coreMobileCreateAppVue } from './create-app-vue';
package/es/index.mjs CHANGED
@@ -1,8 +1,7 @@
1
- export { useLocale } from './hooks/useLocale.mjs';
2
-
3
- const index = {
4
- install(_app) {
5
- }
6
- };
7
-
8
- export { index as default };
1
+ import { useLocale } from "./hooks/useLocale.mjs";
2
+ import "./hooks/index.mjs";
3
+ import vant_button_default from "./components/vant-button/vant-button.vue.mjs";
4
+ import "./components/index.mjs";
5
+ import { isClient, isServer } from "./utils/is.mjs";
6
+ import { coreMobileCreateAppVue } from "./create-app-vue.mjs";
7
+ export { vant_button_default as VantButton, coreMobileCreateAppVue, isClient, isServer, useLocale };
package/es/loader.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './index';
@@ -0,0 +1 @@
1
+ export * from './is.ts';
@@ -0,0 +1,2 @@
1
+ export declare const isServer: boolean;
2
+ export declare const isClient: boolean;
@@ -0,0 +1,5 @@
1
+ //#region src/utils/is.ts
2
+ var isServer = typeof window === "undefined";
3
+ var isClient = !isServer;
4
+ //#endregion
5
+ export { isClient, isServer };
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@gct-paas/core-mobile",
3
- "version": "0.1.4-dev.9",
3
+ "version": "0.1.5-dev.0",
4
4
  "type": "module",
5
5
  "description": "paas 平台移动端核心包",
6
- "main": "dist/index.min.cjs",
7
- "module": "es/index.mjs",
6
+ "loader": "dist/loader.esm.min.js",
8
7
  "types": "es/index.d.ts",
9
- "system": "dist/index.system.min.js",
10
8
  "exports": {
11
9
  ".": {
12
10
  "types": "./es/index.d.ts",
13
- "import": "./es/index.mjs",
14
- "require": "./dist/index.min.cjs"
11
+ "import": "./es/index.mjs"
12
+ },
13
+ "./types": {
14
+ "types": "./es/types/index.d.ts"
15
15
  }
16
16
  },
17
17
  "files": [
@@ -45,17 +45,16 @@
45
45
  "gen-api:platform": "gct-paas gen-api --url=http://paas.paasdev.gct-paas.com --tag=platform -t ../cli/hbs-temp -o ./src/service/gct-platform && prettier './src/service/gct-platform' --write"
46
46
  },
47
47
  "dependencies": {
48
- "@gct-paas/core": "0.1.4-dev.9",
49
- "@gct-paas/scss": "0.1.4-dev.9",
48
+ "@gct-paas/core": "0.1.5-dev.0",
49
+ "@gct-paas/scss": "0.1.5-dev.0",
50
50
  "vant": "^4.9.22",
51
- "vue": "^3.5.27"
52
- },
53
- "devDependencies": {
54
- "@gct-paas/build": "^0.1.5-dev.8",
55
- "sass": "^1.97.3"
51
+ "vue": "^3.5.30"
56
52
  },
57
53
  "peerDependencies": {
58
- "vue": "^3.x"
54
+ "@gct-paas/core": "*",
55
+ "@gct-paas/scss": "*",
56
+ "vant": ">=4",
57
+ "vue": ">=3"
59
58
  },
60
- "gitHead": "c51d9883f7d287433d2def4d7338a06773804fbf"
59
+ "gitHead": "d5a1badfd34c55ceefd2cf33f2ee659454076e37"
61
60
  }