@factoringplus/pl-components-pack-v3 1.2.11-typings-02 → 1.2.11-typings-03
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,191 +1,4 @@
|
|
|
1
1
|
import type { TButtonProps } from './types';
|
|
2
|
-
export declare const PlButton: import('../../install-function').SFCInstallWithContext<
|
|
3
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
-
type: {
|
|
5
|
-
type: import("vue").PropType<"primary" | "secondary" | "alternative" | "error" | "empty">;
|
|
6
|
-
default: string;
|
|
7
|
-
};
|
|
8
|
-
size: {
|
|
9
|
-
type: import("vue").PropType<"small" | "large" | "medium">;
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
|
-
fullWidth: {
|
|
13
|
-
type: import("vue").PropType<boolean>;
|
|
14
|
-
default: boolean;
|
|
15
|
-
};
|
|
16
|
-
disabled: {
|
|
17
|
-
type: import("vue").PropType<boolean>;
|
|
18
|
-
default: boolean;
|
|
19
|
-
};
|
|
20
|
-
icon: {
|
|
21
|
-
type: import("vue").PropType<import("../pl-icon").TIcon>;
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
24
|
-
iconColor: {
|
|
25
|
-
type: import("vue").PropType<string>;
|
|
26
|
-
default: string;
|
|
27
|
-
};
|
|
28
|
-
iconPosition: {
|
|
29
|
-
type: import("vue").PropType<"left" | "right">;
|
|
30
|
-
default: string;
|
|
31
|
-
};
|
|
32
|
-
nativeType: {
|
|
33
|
-
type: import("vue").PropType<"button" | "submit" | "reset">;
|
|
34
|
-
default: string;
|
|
35
|
-
};
|
|
36
|
-
}>> & {
|
|
37
|
-
onClick?: (...args: any[]) => any;
|
|
38
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
39
|
-
click: (...args: any[]) => void;
|
|
40
|
-
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
41
|
-
type: {
|
|
42
|
-
type: import("vue").PropType<"primary" | "secondary" | "alternative" | "error" | "empty">;
|
|
43
|
-
default: string;
|
|
44
|
-
};
|
|
45
|
-
size: {
|
|
46
|
-
type: import("vue").PropType<"small" | "large" | "medium">;
|
|
47
|
-
default: string;
|
|
48
|
-
};
|
|
49
|
-
fullWidth: {
|
|
50
|
-
type: import("vue").PropType<boolean>;
|
|
51
|
-
default: boolean;
|
|
52
|
-
};
|
|
53
|
-
disabled: {
|
|
54
|
-
type: import("vue").PropType<boolean>;
|
|
55
|
-
default: boolean;
|
|
56
|
-
};
|
|
57
|
-
icon: {
|
|
58
|
-
type: import("vue").PropType<import("../pl-icon").TIcon>;
|
|
59
|
-
default: string;
|
|
60
|
-
};
|
|
61
|
-
iconColor: {
|
|
62
|
-
type: import("vue").PropType<string>;
|
|
63
|
-
default: string;
|
|
64
|
-
};
|
|
65
|
-
iconPosition: {
|
|
66
|
-
type: import("vue").PropType<"left" | "right">;
|
|
67
|
-
default: string;
|
|
68
|
-
};
|
|
69
|
-
nativeType: {
|
|
70
|
-
type: import("vue").PropType<"button" | "submit" | "reset">;
|
|
71
|
-
default: string;
|
|
72
|
-
};
|
|
73
|
-
}>> & {
|
|
74
|
-
onClick?: (...args: any[]) => any;
|
|
75
|
-
}, {
|
|
76
|
-
type: "primary" | "secondary" | "alternative" | "error" | "empty";
|
|
77
|
-
size: "small" | "large" | "medium";
|
|
78
|
-
fullWidth: boolean;
|
|
79
|
-
disabled: boolean;
|
|
80
|
-
icon: import("../pl-icon").TIcon;
|
|
81
|
-
iconColor: string;
|
|
82
|
-
iconPosition: "left" | "right";
|
|
83
|
-
nativeType: "button" | "submit" | "reset";
|
|
84
|
-
}, true, {}, {}, {
|
|
85
|
-
P: {};
|
|
86
|
-
B: {};
|
|
87
|
-
D: {};
|
|
88
|
-
C: {};
|
|
89
|
-
M: {};
|
|
90
|
-
Defaults: {};
|
|
91
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
92
|
-
type: {
|
|
93
|
-
type: import("vue").PropType<"primary" | "secondary" | "alternative" | "error" | "empty">;
|
|
94
|
-
default: string;
|
|
95
|
-
};
|
|
96
|
-
size: {
|
|
97
|
-
type: import("vue").PropType<"small" | "large" | "medium">;
|
|
98
|
-
default: string;
|
|
99
|
-
};
|
|
100
|
-
fullWidth: {
|
|
101
|
-
type: import("vue").PropType<boolean>;
|
|
102
|
-
default: boolean;
|
|
103
|
-
};
|
|
104
|
-
disabled: {
|
|
105
|
-
type: import("vue").PropType<boolean>;
|
|
106
|
-
default: boolean;
|
|
107
|
-
};
|
|
108
|
-
icon: {
|
|
109
|
-
type: import("vue").PropType<import("../pl-icon").TIcon>;
|
|
110
|
-
default: string;
|
|
111
|
-
};
|
|
112
|
-
iconColor: {
|
|
113
|
-
type: import("vue").PropType<string>;
|
|
114
|
-
default: string;
|
|
115
|
-
};
|
|
116
|
-
iconPosition: {
|
|
117
|
-
type: import("vue").PropType<"left" | "right">;
|
|
118
|
-
default: string;
|
|
119
|
-
};
|
|
120
|
-
nativeType: {
|
|
121
|
-
type: import("vue").PropType<"button" | "submit" | "reset">;
|
|
122
|
-
default: string;
|
|
123
|
-
};
|
|
124
|
-
}>> & {
|
|
125
|
-
onClick?: (...args: any[]) => any;
|
|
126
|
-
}, {}, {}, {}, {}, {
|
|
127
|
-
type: "primary" | "secondary" | "alternative" | "error" | "empty";
|
|
128
|
-
size: "small" | "large" | "medium";
|
|
129
|
-
fullWidth: boolean;
|
|
130
|
-
disabled: boolean;
|
|
131
|
-
icon: import("../pl-icon").TIcon;
|
|
132
|
-
iconColor: string;
|
|
133
|
-
iconPosition: "left" | "right";
|
|
134
|
-
nativeType: "button" | "submit" | "reset";
|
|
135
|
-
}>;
|
|
136
|
-
__isFragment?: never;
|
|
137
|
-
__isTeleport?: never;
|
|
138
|
-
__isSuspense?: never;
|
|
139
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
140
|
-
type: {
|
|
141
|
-
type: import("vue").PropType<"primary" | "secondary" | "alternative" | "error" | "empty">;
|
|
142
|
-
default: string;
|
|
143
|
-
};
|
|
144
|
-
size: {
|
|
145
|
-
type: import("vue").PropType<"small" | "large" | "medium">;
|
|
146
|
-
default: string;
|
|
147
|
-
};
|
|
148
|
-
fullWidth: {
|
|
149
|
-
type: import("vue").PropType<boolean>;
|
|
150
|
-
default: boolean;
|
|
151
|
-
};
|
|
152
|
-
disabled: {
|
|
153
|
-
type: import("vue").PropType<boolean>;
|
|
154
|
-
default: boolean;
|
|
155
|
-
};
|
|
156
|
-
icon: {
|
|
157
|
-
type: import("vue").PropType<import("../pl-icon").TIcon>;
|
|
158
|
-
default: string;
|
|
159
|
-
};
|
|
160
|
-
iconColor: {
|
|
161
|
-
type: import("vue").PropType<string>;
|
|
162
|
-
default: string;
|
|
163
|
-
};
|
|
164
|
-
iconPosition: {
|
|
165
|
-
type: import("vue").PropType<"left" | "right">;
|
|
166
|
-
default: string;
|
|
167
|
-
};
|
|
168
|
-
nativeType: {
|
|
169
|
-
type: import("vue").PropType<"button" | "submit" | "reset">;
|
|
170
|
-
default: string;
|
|
171
|
-
};
|
|
172
|
-
}>> & {
|
|
173
|
-
onClick?: (...args: any[]) => any;
|
|
174
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
175
|
-
click: (...args: any[]) => void;
|
|
176
|
-
}, string, {
|
|
177
|
-
type: "primary" | "secondary" | "alternative" | "error" | "empty";
|
|
178
|
-
size: "small" | "large" | "medium";
|
|
179
|
-
fullWidth: boolean;
|
|
180
|
-
disabled: boolean;
|
|
181
|
-
icon: import("../pl-icon").TIcon;
|
|
182
|
-
iconColor: string;
|
|
183
|
-
iconPosition: "left" | "right";
|
|
184
|
-
nativeType: "button" | "submit" | "reset";
|
|
185
|
-
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
186
|
-
$slots: {
|
|
187
|
-
default?(_: {}): any;
|
|
188
|
-
};
|
|
189
|
-
})>;
|
|
2
|
+
export declare const PlButton: import('../../install-function').SFCInstallWithContext<TButtonProps>;
|
|
190
3
|
export default PlButton;
|
|
191
4
|
export type { TButtonProps };
|
|
@@ -23702,7 +23702,7 @@ const Q6 = ["disabled", "type"], dl = /* @__PURE__ */ Ne({
|
|
|
23702
23702
|
};
|
|
23703
23703
|
}
|
|
23704
23704
|
});
|
|
23705
|
-
const Y6 = q4(dl, "PlButton");
|
|
23705
|
+
const Y6 = q4(new dl(), "PlButton");
|
|
23706
23706
|
/**
|
|
23707
23707
|
* Vue Currency Input 3.1.0
|
|
23708
23708
|
* (c) 2018-2024 Matthias Stiller
|
|
@@ -33019,7 +33019,6 @@ const Pv = (e, t) => Object.entries(qq).reduce((n, [r, o]) => {
|
|
|
33019
33019
|
}), (t = Mp.install) == null || t.call(Mp, e), e.use(Xq).use(a1);
|
|
33020
33020
|
},
|
|
33021
33021
|
PlNotification: pc,
|
|
33022
|
-
// добавить все компоненты в плагин
|
|
33023
33022
|
...j0,
|
|
33024
33023
|
apiJs: FA,
|
|
33025
33024
|
plLoading: WA,
|
|
@@ -99,7 +99,7 @@ usage: app.provide(ID_INJECTION_KEY, {
|
|
|
99
99
|
* maska v1.5.2
|
|
100
100
|
* (c) 2019-2022 Alexander Shabunevich
|
|
101
101
|
* Released under the MIT License.
|
|
102
|
-
*/function Nd(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,r)}return o}function Fl(t){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?arguments[n]:{};n%2?Nd(Object(o),!0).forEach(function(r){QH(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Nd(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function ZH(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function UH(t,n){for(var o=0;o<n.length;o++){var r=n[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,bd(r.key),r)}}function QH(t,n,o){return(n=bd(n))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t}function bd(t){var n=function(o,r){if(typeof o!="object"||o===null)return o;var i=o[Symbol.toPrimitive];if(i!==void 0){var s=i.call(o,r||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(o)}(t,"string");return typeof n=="symbol"?n:String(n)}var Dd={"#":{pattern:/[0-9]/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,uppercase:!0},a:{pattern:/[a-zA-Z]/,lowercase:!0},"!":{escape:!0},"*":{repeat:!0}};function kd(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Dd,r=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3];return Ld(n).length>1?YH(n)(t,n,o,r):zi(t,n,o,r)}function Ld(t){try{return JSON.parse(t)}catch{return[t]}}function YH(t){var n=Ld(t).sort(function(r,i){return r.length-i.length});return function(r,i,s){var c=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],d=n.map(function(C){return zi(r,C,s,!1)}),u=d.pop();for(var f in n)if(o(u,n[f],s))return zi(r,n[f],s,c);return""};function o(r,i,s){for(var c in s)s[c].escape&&(i=i.replace(new RegExp(c+".{1}","g"),""));return i.split("").filter(function(d){return s[d]&&s[d].pattern}).length>=r.length}}function zi(t,n,o){for(var r=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],i=0,s=0,c="",d="";i<n.length&&s<t.length;){var u=n[i],f=t[s],C=o[u];if(C&&C.pattern)C.pattern.test(f)&&(c+=RH(f,C),i++,r&&n[i]&&(o[n[i]]?o[n[i]]&&o[n[i]].escape&&(c+=n[i+1],i+=2):(c+=n[i],i++))),s++;else if(C&&C.repeat){var p=o[n[i-1]];p&&!p.pattern.test(f)?i++:i--}else C&&C.escape&&(u=n[++i]),r&&(c+=u),f===u&&s++,i++}for(;r&&i<n.length;){var M=n[i];if(o[M]){d="";break}d+=M,i++}return c+d}function RH(t,n){return n.transform&&(t=n.transform(t)),n.uppercase?t.toLocaleUpperCase():n.lowercase?t.toLocaleLowerCase():t}function xd(t){return t instanceof HTMLInputElement?t:t.querySelector("input")||t}function Bi(t){return Object.prototype.toString.call(t)==="[object String]"}var FH=function(){function t(r){var i=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(ZH(this,t),!r)throw new Error("Maska: no element for mask");if(s.preprocessor!=null&&typeof s.preprocessor!="function")throw new Error("Maska: preprocessor must be a function");if(s.tokens)for(var c in s.tokens)s.tokens[c]=Fl({},s.tokens[c]),s.tokens[c].pattern&&Bi(s.tokens[c].pattern)&&(s.tokens[c].pattern=new RegExp(s.tokens[c].pattern));this._opts={mask:s.mask,tokens:Fl(Fl({},Dd),s.tokens),preprocessor:s.preprocessor},this._el=Bi(r)?document.querySelectorAll(r):r.length?r:[r],this.inputEvent=function(d){return i.updateValue(d.target,d)},this.init()}var n,o;return n=t,o=[{key:"init",value:function(){for(var r=this,i=function(c){var d=xd(r._el[c]);!r._opts.mask||d.dataset.mask&&d.dataset.mask===r._opts.mask||(d.dataset.mask=r._opts.mask),setTimeout(function(){return r.updateValue(d)},0),d.dataset.maskInited||(d.dataset.maskInited=!0,d.addEventListener("input",r.inputEvent),d.addEventListener("beforeinput",r.beforeInput))},s=0;s<this._el.length;s++)i(s)}},{key:"destroy",value:function(){for(var r=0;r<this._el.length;r++){var i=xd(this._el[r]);i.removeEventListener("input",this.inputEvent),i.removeEventListener("beforeinput",this.beforeInput),delete i.dataset.mask,delete i.dataset.maskInited}}},{key:"updateValue",value:function(r,i){if(r&&r.type){var s=r.type.match(/^number$/i)&&r.validity.badInput;if(!r.value&&!s||!r.dataset.mask)return r.dataset.maskRawValue="",void this.dispatch("maska",r,i);var c=r.selectionEnd,d=r.value,u=d[c-1];r.dataset.maskRawValue=kd(r.value,r.dataset.mask,this._opts.tokens,!1);var f=r.value;this._opts.preprocessor&&(f=this._opts.preprocessor(f)),r.value=kd(f,r.dataset.mask,this._opts.tokens),i&&i.inputType==="insertText"&&c===d.length&&(c=r.value.length),function(C,p,M){for(;p&&p<C.value.length&&C.value.charAt(p-1)!==M;)p++;(C.type?C.type.match(/^(text|search|password|tel|url)$/i):!C.type)&&C===document.activeElement&&(C.setSelectionRange(p,p),setTimeout(function(){C.setSelectionRange(p,p)},0))}(r,c,u),this.dispatch("maska",r,i),r.value!==d&&this.dispatch("input",r,i)}}},{key:"beforeInput",value:function(r){r&&r.target&&r.target.type&&r.target.type.match(/^number$/i)&&r.data&&isNaN(r.target.value+r.data)&&r.preventDefault()}},{key:"dispatch",value:function(r,i,s){i.dispatchEvent(function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,u=document.createEvent("Event");return u.initEvent(c,!0,!0),d&&(u.inputType=d),u}(r,s&&s.inputType||null))}}],o&&UH(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(),Ai,WH=(Ai=new WeakMap,function(t,n){n.value&&(Ai.has(t)&&!function(o){return!(Bi(o.value)&&o.value===o.oldValue||Array.isArray(o.value)&&JSON.stringify(o.value)===JSON.stringify(o.oldValue)||o.value&&o.value.mask&&o.oldValue&&o.oldValue.mask&&o.value.mask===o.oldValue.mask)}(n)||Ai.set(t,new FH(t,function(o){var r={};return o.mask?(r.mask=Array.isArray(o.mask)?JSON.stringify(o.mask):o.mask,r.tokens=o.tokens?Fl({},o.tokens):{},r.preprocessor=o.preprocessor):r.mask=Array.isArray(o)?JSON.stringify(o):o,r}(n.value))))});function Ed(t){t.directive("maska",WH)}typeof window<"u"&&window.Vue&&window.Vue.use&&window.Vue.use(Ed);const GH=["disabled","type"],e3=e.defineComponent({__name:"pl-button",props:{fullWidth:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{default:"primary"},size:{default:"large"},icon:{default:""},iconColor:{default:""},iconPosition:{default:"left"},nativeType:{default:"button"}},emits:["click"],setup(t,{emit:n}){const o=t,r=e.computed(()=>({"typography-button-button-1":o.size==="large","button-medium typography-button-button-2":o.size==="medium","button-small typography-button-button-3":o.size==="small",disabled:o.disabled,"button-alternative":o.type==="alternative","button-secondary":o.type==="secondary","button-error":o.type==="error","button-empty":o.type==="empty","full-width":o.fullWidth,"pl-button":!0,"button-medium40":o.icon&&!s.value&&o.size==="medium"&&o.type!=="empty","button-small36":o.icon&&!s.value&&o.size==="small"&&o.type!=="empty"})),i=e.useSlots(),s=e.ref(!1),c=()=>{s.value=!!i.default&&i.default()[0].children!==""};e.onUpdated(()=>{c()}),e.onMounted(()=>{c()});const d=e.computed(()=>{const C={large:{paddingLeft:"8px",paddingRight:"8px"},medium:{paddingLeft:"4px",paddingRight:"4px"},small:{}},p={left:{large:{paddingRight:"12px"},medium:{paddingRight:"8px"},small:{paddingRight:"4px"}},right:{large:{paddingLeft:"12px"},medium:{paddingLeft:"8px"},small:{paddingLeft:"4px"}}};let M=C[o.size]||{};if(o.icon&&p[o.iconPosition]){const _=p[o.iconPosition][o.size];M={...M,..._}}return(o.type==="empty"||o.icon&&!s.value)&&(M.padding="0"),M}),u=n,f=()=>!o.disabled&&u("click");return(C,p)=>{const M=e.resolveDirective("tap");return e.withDirectives((e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(r.value),disabled:o.disabled,type:o.nativeType},[e.createElementVNode("div",{class:"pl-button-content-container",style:e.normalizeStyle(d.value)},[o.iconPosition==="left"&&o.icon?(e.openBlock(),e.createBlock(C1,{key:0,name:o.icon,style:e.normalizeStyle({color:o.iconColor})},null,8,["name","style"])):e.createCommentVNode("",!0),e.renderSlot(C.$slots,"default"),o.iconPosition==="right"&&o.icon?(e.openBlock(),e.createBlock(C1,{key:1,name:o.icon,style:e.normalizeStyle({color:o.iconColor})},null,8,["name","style"])):e.createCommentVNode("",!0)],4)],10,GH)),[[M,f]])}}}),qhe="",vd=hd(e3,"PlButton"),Khe="",Jhe="";/**
|
|
102
|
+
*/function Nd(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),o.push.apply(o,r)}return o}function Fl(t){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?arguments[n]:{};n%2?Nd(Object(o),!0).forEach(function(r){QH(t,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Nd(Object(o)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))})}return t}function ZH(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function UH(t,n){for(var o=0;o<n.length;o++){var r=n[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,bd(r.key),r)}}function QH(t,n,o){return(n=bd(n))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t}function bd(t){var n=function(o,r){if(typeof o!="object"||o===null)return o;var i=o[Symbol.toPrimitive];if(i!==void 0){var s=i.call(o,r||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(o)}(t,"string");return typeof n=="symbol"?n:String(n)}var Dd={"#":{pattern:/[0-9]/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,uppercase:!0},a:{pattern:/[a-zA-Z]/,lowercase:!0},"!":{escape:!0},"*":{repeat:!0}};function kd(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Dd,r=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3];return Ld(n).length>1?YH(n)(t,n,o,r):zi(t,n,o,r)}function Ld(t){try{return JSON.parse(t)}catch{return[t]}}function YH(t){var n=Ld(t).sort(function(r,i){return r.length-i.length});return function(r,i,s){var c=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],d=n.map(function(C){return zi(r,C,s,!1)}),u=d.pop();for(var f in n)if(o(u,n[f],s))return zi(r,n[f],s,c);return""};function o(r,i,s){for(var c in s)s[c].escape&&(i=i.replace(new RegExp(c+".{1}","g"),""));return i.split("").filter(function(d){return s[d]&&s[d].pattern}).length>=r.length}}function zi(t,n,o){for(var r=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],i=0,s=0,c="",d="";i<n.length&&s<t.length;){var u=n[i],f=t[s],C=o[u];if(C&&C.pattern)C.pattern.test(f)&&(c+=RH(f,C),i++,r&&n[i]&&(o[n[i]]?o[n[i]]&&o[n[i]].escape&&(c+=n[i+1],i+=2):(c+=n[i],i++))),s++;else if(C&&C.repeat){var p=o[n[i-1]];p&&!p.pattern.test(f)?i++:i--}else C&&C.escape&&(u=n[++i]),r&&(c+=u),f===u&&s++,i++}for(;r&&i<n.length;){var M=n[i];if(o[M]){d="";break}d+=M,i++}return c+d}function RH(t,n){return n.transform&&(t=n.transform(t)),n.uppercase?t.toLocaleUpperCase():n.lowercase?t.toLocaleLowerCase():t}function xd(t){return t instanceof HTMLInputElement?t:t.querySelector("input")||t}function Bi(t){return Object.prototype.toString.call(t)==="[object String]"}var FH=function(){function t(r){var i=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(ZH(this,t),!r)throw new Error("Maska: no element for mask");if(s.preprocessor!=null&&typeof s.preprocessor!="function")throw new Error("Maska: preprocessor must be a function");if(s.tokens)for(var c in s.tokens)s.tokens[c]=Fl({},s.tokens[c]),s.tokens[c].pattern&&Bi(s.tokens[c].pattern)&&(s.tokens[c].pattern=new RegExp(s.tokens[c].pattern));this._opts={mask:s.mask,tokens:Fl(Fl({},Dd),s.tokens),preprocessor:s.preprocessor},this._el=Bi(r)?document.querySelectorAll(r):r.length?r:[r],this.inputEvent=function(d){return i.updateValue(d.target,d)},this.init()}var n,o;return n=t,o=[{key:"init",value:function(){for(var r=this,i=function(c){var d=xd(r._el[c]);!r._opts.mask||d.dataset.mask&&d.dataset.mask===r._opts.mask||(d.dataset.mask=r._opts.mask),setTimeout(function(){return r.updateValue(d)},0),d.dataset.maskInited||(d.dataset.maskInited=!0,d.addEventListener("input",r.inputEvent),d.addEventListener("beforeinput",r.beforeInput))},s=0;s<this._el.length;s++)i(s)}},{key:"destroy",value:function(){for(var r=0;r<this._el.length;r++){var i=xd(this._el[r]);i.removeEventListener("input",this.inputEvent),i.removeEventListener("beforeinput",this.beforeInput),delete i.dataset.mask,delete i.dataset.maskInited}}},{key:"updateValue",value:function(r,i){if(r&&r.type){var s=r.type.match(/^number$/i)&&r.validity.badInput;if(!r.value&&!s||!r.dataset.mask)return r.dataset.maskRawValue="",void this.dispatch("maska",r,i);var c=r.selectionEnd,d=r.value,u=d[c-1];r.dataset.maskRawValue=kd(r.value,r.dataset.mask,this._opts.tokens,!1);var f=r.value;this._opts.preprocessor&&(f=this._opts.preprocessor(f)),r.value=kd(f,r.dataset.mask,this._opts.tokens),i&&i.inputType==="insertText"&&c===d.length&&(c=r.value.length),function(C,p,M){for(;p&&p<C.value.length&&C.value.charAt(p-1)!==M;)p++;(C.type?C.type.match(/^(text|search|password|tel|url)$/i):!C.type)&&C===document.activeElement&&(C.setSelectionRange(p,p),setTimeout(function(){C.setSelectionRange(p,p)},0))}(r,c,u),this.dispatch("maska",r,i),r.value!==d&&this.dispatch("input",r,i)}}},{key:"beforeInput",value:function(r){r&&r.target&&r.target.type&&r.target.type.match(/^number$/i)&&r.data&&isNaN(r.target.value+r.data)&&r.preventDefault()}},{key:"dispatch",value:function(r,i,s){i.dispatchEvent(function(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,u=document.createEvent("Event");return u.initEvent(c,!0,!0),d&&(u.inputType=d),u}(r,s&&s.inputType||null))}}],o&&UH(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),t}(),Ai,WH=(Ai=new WeakMap,function(t,n){n.value&&(Ai.has(t)&&!function(o){return!(Bi(o.value)&&o.value===o.oldValue||Array.isArray(o.value)&&JSON.stringify(o.value)===JSON.stringify(o.oldValue)||o.value&&o.value.mask&&o.oldValue&&o.oldValue.mask&&o.value.mask===o.oldValue.mask)}(n)||Ai.set(t,new FH(t,function(o){var r={};return o.mask?(r.mask=Array.isArray(o.mask)?JSON.stringify(o.mask):o.mask,r.tokens=o.tokens?Fl({},o.tokens):{},r.preprocessor=o.preprocessor):r.mask=Array.isArray(o)?JSON.stringify(o):o,r}(n.value))))});function Ed(t){t.directive("maska",WH)}typeof window<"u"&&window.Vue&&window.Vue.use&&window.Vue.use(Ed);const GH=["disabled","type"],e3=e.defineComponent({__name:"pl-button",props:{fullWidth:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{default:"primary"},size:{default:"large"},icon:{default:""},iconColor:{default:""},iconPosition:{default:"left"},nativeType:{default:"button"}},emits:["click"],setup(t,{emit:n}){const o=t,r=e.computed(()=>({"typography-button-button-1":o.size==="large","button-medium typography-button-button-2":o.size==="medium","button-small typography-button-button-3":o.size==="small",disabled:o.disabled,"button-alternative":o.type==="alternative","button-secondary":o.type==="secondary","button-error":o.type==="error","button-empty":o.type==="empty","full-width":o.fullWidth,"pl-button":!0,"button-medium40":o.icon&&!s.value&&o.size==="medium"&&o.type!=="empty","button-small36":o.icon&&!s.value&&o.size==="small"&&o.type!=="empty"})),i=e.useSlots(),s=e.ref(!1),c=()=>{s.value=!!i.default&&i.default()[0].children!==""};e.onUpdated(()=>{c()}),e.onMounted(()=>{c()});const d=e.computed(()=>{const C={large:{paddingLeft:"8px",paddingRight:"8px"},medium:{paddingLeft:"4px",paddingRight:"4px"},small:{}},p={left:{large:{paddingRight:"12px"},medium:{paddingRight:"8px"},small:{paddingRight:"4px"}},right:{large:{paddingLeft:"12px"},medium:{paddingLeft:"8px"},small:{paddingLeft:"4px"}}};let M=C[o.size]||{};if(o.icon&&p[o.iconPosition]){const _=p[o.iconPosition][o.size];M={...M,..._}}return(o.type==="empty"||o.icon&&!s.value)&&(M.padding="0"),M}),u=n,f=()=>!o.disabled&&u("click");return(C,p)=>{const M=e.resolveDirective("tap");return e.withDirectives((e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(r.value),disabled:o.disabled,type:o.nativeType},[e.createElementVNode("div",{class:"pl-button-content-container",style:e.normalizeStyle(d.value)},[o.iconPosition==="left"&&o.icon?(e.openBlock(),e.createBlock(C1,{key:0,name:o.icon,style:e.normalizeStyle({color:o.iconColor})},null,8,["name","style"])):e.createCommentVNode("",!0),e.renderSlot(C.$slots,"default"),o.iconPosition==="right"&&o.icon?(e.openBlock(),e.createBlock(C1,{key:1,name:o.icon,style:e.normalizeStyle({color:o.iconColor})},null,8,["name","style"])):e.createCommentVNode("",!0)],4)],10,GH)),[[M,f]])}}}),qhe="",vd=hd(new e3,"PlButton"),Khe="",Jhe="";/**
|
|
103
103
|
* Vue Currency Input 3.1.0
|
|
104
104
|
* (c) 2018-2024 Matthias Stiller
|
|
105
105
|
* @license MIT
|