@vc-shell/framework 1.1.5 → 1.1.6
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.
- package/CHANGELOG.md +10 -0
- package/core/plugins/modularity/loader.ts +31 -0
- package/dist/core/plugins/modularity/loader.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-error.vue.d.ts +2 -2
- package/dist/shared/components/common/popup/vc-popup-error.vue.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-info.vue.d.ts +2 -2
- package/dist/shared/components/common/popup/vc-popup-info.vue.d.ts.map +1 -1
- package/dist/shared/components/common/popup/vc-popup-warning.vue.d.ts +2 -2
- package/dist/shared/components/common/popup/vc-popup-warning.vue.d.ts.map +1 -1
- package/dist/shared/components/dashboard-widget-card/dashboard-widget-card.vue.d.ts +3 -3
- package/dist/shared/components/dashboard-widget-card/dashboard-widget-card.vue.d.ts.map +1 -1
- package/dist/shared/components/draggable-dashboard/composables/useDashboardDragAndDrop.d.ts +4 -4
- package/dist/shared/components/notifications/components/notification-container/index.d.ts +6 -6
- package/dist/shared/components/notifications/components/notification-container/index.d.ts.map +1 -1
- package/dist/shared/modules/assets-manager/components/assets-manager/assets-manager.vue.d.ts +2 -2
- package/dist/shared/modules/dynamic/pages/dynamic-blade-form.vue.d.ts +2 -2
- package/dist/shared/modules/dynamic/pages/dynamic-blade-list.vue.d.ts +2 -2
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts +1 -1
- package/dist/shared/pages/InvitePage/components/invite/Invite.vue.d.ts.map +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts +1 -1
- package/dist/shared/pages/ResetPasswordPage/components/reset-password/ResetPassword.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-badge/vc-badge.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-container/vc-container.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-icon/vc-material-icon.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-label/vc-label.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-progress/vc-progress.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts +2 -2
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-checkbox/vc-checkbox.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-file-upload/vc-file-upload.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts +4 -4
- package/dist/ui/components/molecules/vc-input/vc-input.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts +6 -34
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-dropdown/index.d.ts +4 -0
- package/dist/ui/components/molecules/vc-input-dropdown/index.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts +171 -0
- package/dist/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-pagination/vc-pagination.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts +2 -2
- package/dist/ui/components/molecules/vc-rating/vc-rating.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetItem.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetItem.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue.d.ts +5 -5
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/vc-app-menu-item.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-app/vc-app.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-base-button.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/vc-blade-toolbar/_internal/vc-blade-toolbar-buttons/_internal/vc-blade-toolbar-button/vc-blade-toolbar-circle-button.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts +5 -5
- package/dist/ui/components/organisms/vc-blade/vc-blade.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-item/vc-gallery-item.vue.d.ts +2 -2
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-gallery/vc-gallery.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-login-form/vc-login-form.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts +4 -4
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-counter/vc-table-counter.vue.d.ts.map +1 -1
- package/package.json +4 -4
- package/shared/components/common/popup/vc-popup-error.vue +3 -3
- package/shared/components/common/popup/vc-popup-info.vue +3 -3
- package/shared/components/common/popup/vc-popup-warning.vue +3 -3
- package/shared/components/dashboard-widget-card/dashboard-widget-card.vue +4 -4
- package/ui/components/atoms/vc-badge/vc-badge.vue +2 -2
- package/ui/components/atoms/vc-icon/vc-icon.stories.ts +1 -1
- package/ui/components/atoms/vc-label/vc-label.vue +3 -3
- package/ui/components/atoms/vc-tooltip/vc-tooltip.vue +3 -3
- package/ui/components/molecules/vc-checkbox/vc-checkbox.vue +4 -4
- package/ui/components/molecules/vc-file-upload/vc-file-upload.vue +2 -2
- package/ui/components/molecules/vc-input-currency/vc-input-currency.stories.ts +1 -1
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +36 -115
- package/ui/components/molecules/vc-input-dropdown/index.ts +4 -0
- package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.stories.ts +763 -0
- package/ui/components/molecules/vc-input-dropdown/vc-input-dropdown.vue +268 -0
- package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +2 -2
- package/ui/components/molecules/vc-rating/vc-rating.vue +2 -2
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +2 -2
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/AppBarWidgetItem.vue +3 -3
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/_internal/MenuSidebar.vue +6 -6
- package/ui/components/organisms/vc-app/_internal/vc-app-bar/vc-app-bar.vue +4 -4
- package/ui/components/organisms/vc-app/vc-app.vue +2 -3
- package/ui/components/organisms/vc-blade/vc-blade.vue +5 -5
- package/ui/components/organisms/vc-login-form/vc-login-form.vue +2 -2
- package/ui/components/organisms/vc-popup/vc-popup.vue +4 -4
- package/dist/apl-B2DGVGxc.js +0 -76
- package/dist/asciiarmor-2LVJmxlE.js +0 -34
- package/dist/asn1-jKiBa2Ya.js +0 -95
- package/dist/asterisk-DS281yxp.js +0 -271
- package/dist/brainfuck-C_p9pTT8.js +0 -34
- package/dist/clike-BUuHEmgZ.js +0 -620
- package/dist/clojure-CCKyeQKf.js +0 -800
- package/dist/cmake-CuaCgAKt.js +0 -28
- package/dist/cobol-BlTKFDRj.js +0 -72
- package/dist/coffeescript-BVCvwO8I.js +0 -179
- package/dist/commonlisp-D_kxz07b.js +0 -75
- package/dist/crystal-D309uH6_.js +0 -217
- package/dist/css-bIlmDBTK.js +0 -1560
- package/dist/cypher-BMq4Fwjl.js +0 -68
- package/dist/d-BZcgY6La.js +0 -127
- package/dist/diff-Cg9d_RX2.js +0 -18
- package/dist/dockerfile-DIy8NleC.js +0 -194
- package/dist/dtd-CtLokQ-U.js +0 -84
- package/dist/dylan-QYeExnWK.js +0 -234
- package/dist/ebnf-DUPDuY4r.js +0 -78
- package/dist/ecl-CiXN-g_D.js +0 -121
- package/dist/eiffel-yQhjl4T1.js +0 -110
- package/dist/elm-CNT9vbN0.js +0 -108
- package/dist/erlang-CFOYdy9e.js +0 -487
- package/dist/factor-DDOC7X6P.js +0 -65
- package/dist/fcl-CPC2WYrI.js +0 -103
- package/dist/forth-BmxRyE9S.js +0 -60
- package/dist/fortran-9bvPyrOW.js +0 -442
- package/dist/framework.js +0 -288
- package/dist/gas-BdfkXJT_.js +0 -183
- package/dist/gherkin-CJuwpceU.js +0 -34
- package/dist/groovy-DZeT_VM-.js +0 -146
- package/dist/haskell-Bvt3Qq1t.js +0 -375
- package/dist/haxe-70NVW1pR.js +0 -359
- package/dist/http-D9LttvKF.js +0 -44
- package/dist/idl-B6TRFYjl.js +0 -947
- package/dist/index-BBHl6nap.js +0 -308
- package/dist/index-BG6N4UCY.js +0 -299
- package/dist/index-Bv5as3SI.js +0 -71
- package/dist/index-C4VyqVxv.js +0 -249
- package/dist/index-CKLiFGZ-.js +0 -98
- package/dist/index-CTmAMa_1.js +0 -265
- package/dist/index-CtGZgIiV.js +0 -75
- package/dist/index-D13Jcezf.js +0 -288
- package/dist/index-DbpKygJh.js +0 -611
- package/dist/index-DgCtSr4P.js +0 -58
- package/dist/index-Dh1XjfgY.js +0 -134
- package/dist/index-DpDbQQg6.js +0 -341
- package/dist/index-DwuQbDJG.js +0 -156
- package/dist/index-Fhuqbkq2.js +0 -93
- package/dist/index-JTAZpxKF.js +0 -137
- package/dist/index-MKD2CP5c.js +0 -147000
- package/dist/index-Q3k1PYzc.js +0 -538
- package/dist/index.css +0 -9
- package/dist/javascript-WMWNx-Vj.js +0 -690
- package/dist/jinja2-DnB6dQmV.js +0 -154
- package/dist/julia-DpvXAuO6.js +0 -241
- package/dist/livescript-CanGTf8u.js +0 -272
- package/dist/lua-XplVlWi_.js +0 -217
- package/dist/mathematica-jaRHnSxC.js +0 -35
- package/dist/mbox-BctzC1hL.js +0 -76
- package/dist/mirc-CFBPAOaF.js +0 -72
- package/dist/mllike-BSnXJBGA.js +0 -272
- package/dist/modelica-vUgVs--1.js +0 -93
- package/dist/mscgen-Cpl0NYLN.js +0 -104
- package/dist/mumps-CQoS1kWX.js +0 -25
- package/dist/nginx-zDPm3Z74.js +0 -89
- package/dist/nsis-fePjrhq7.js +0 -62
- package/dist/ntriples-CsNjv2QF.js +0 -79
- package/dist/octave-C8PmmSRH.js +0 -143
- package/dist/oz-Ce8aN8oE.js +0 -151
- package/dist/pascal-De0D6mP7.js +0 -77
- package/dist/perl-B4bSCe1C.js +0 -915
- package/dist/pig-D24Z8EXi.js +0 -54
- package/dist/powershell-DkYVfTzP.js +0 -249
- package/dist/properties-Dn9wna3M.js +0 -26
- package/dist/protobuf-BPIjwpzm.js +0 -49
- package/dist/pug-BqUR2bBq.js +0 -248
- package/dist/puppet-nyd4dhjf.js +0 -45
- package/dist/python-B5QdSKoL.js +0 -313
- package/dist/q-DXjKs-tC.js +0 -83
- package/dist/r-LKEuhEGI.js +0 -104
- package/dist/rpm-IznJm2Xc.js +0 -57
- package/dist/ruby-CcYfvIk6.js +0 -228
- package/dist/sas-7E8yHoCW.js +0 -105
- package/dist/scheme-DjibxsNh.js +0 -124
- package/dist/shell-C0C2sNA_.js +0 -182
- package/dist/sieve-Bwz7vjP5.js +0 -72
- package/dist/simple-mode-B0dvCdAA.js +0 -89
- package/dist/smalltalk-Bhddl2pB.js +0 -48
- package/dist/solr-BNlsLglM.js +0 -41
- package/dist/sparql-FarWu_Gb.js +0 -197
- package/dist/spreadsheet-C-cy4P5N.js +0 -49
- package/dist/sql-mMre1Bo3.js +0 -282
- package/dist/stex-92raWT1r.js +0 -129
- package/dist/stylus-CAdqWld3.js +0 -250
- package/dist/swift-DSxqR9R6.js +0 -230
- package/dist/tcl-xfoLljhY.js +0 -81
- package/dist/textile-D1AWE-pc.js +0 -295
- package/dist/tiddlywiki-5wqsXtSk.js +0 -155
- package/dist/tiki-__Kn3CeS.js +0 -181
- package/dist/toml-BHiuTcfn.js +0 -49
- package/dist/troff-D2UO-fKf.js +0 -35
- package/dist/ttcn-Bsa4sfRm.js +0 -123
- package/dist/ttcn-cfg-Bac_acMi.js +0 -88
- package/dist/turtle-xwJUxoPV.js +0 -80
- package/dist/vb-c2kQGd6-.js +0 -74
- package/dist/vbscript-Dz1TtKsy.js +0 -324
- package/dist/velocity-DJd0pTTC.js +0 -96
- package/dist/verilog-C4VGD9n1.js +0 -263
- package/dist/vhdl-T9HkrbI2.js +0 -106
- package/dist/webidl-CjfDENEo.js +0 -155
- package/dist/xquery-BUQdORAS.js +0 -422
- package/dist/yacas-C0absKBh.js +0 -73
- package/dist/z80-C8rPtw-0.js +0 -61
|
@@ -1,100 +1,53 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<VcInputDropdown
|
|
3
3
|
class="vc-input-currency"
|
|
4
4
|
:options="options"
|
|
5
5
|
:option-label="optionLabel"
|
|
6
6
|
:option-value="optionValue"
|
|
7
|
-
:searchable="
|
|
7
|
+
:searchable="searchable"
|
|
8
8
|
:debounce="debounce"
|
|
9
9
|
:disabled="disabled"
|
|
10
10
|
:label="label"
|
|
11
11
|
:required="required"
|
|
12
|
-
:
|
|
12
|
+
:option="option"
|
|
13
|
+
:model-value="numberValue"
|
|
13
14
|
:tooltip="tooltip"
|
|
14
|
-
|
|
15
|
+
:placeholder="placeholder"
|
|
16
|
+
:hint="hint"
|
|
17
|
+
:clearable="clearable"
|
|
18
|
+
:prefix="prefix"
|
|
19
|
+
:suffix="suffix"
|
|
20
|
+
:name="name"
|
|
21
|
+
:loading="loading"
|
|
22
|
+
:autofocus="autofocus"
|
|
23
|
+
:error="error"
|
|
24
|
+
:error-message="errorMessage"
|
|
25
|
+
:maxlength="maxlength"
|
|
26
|
+
input-type="number"
|
|
27
|
+
@update:model-value="updateModel"
|
|
28
|
+
@update:option="$emit('update:option', $event)"
|
|
29
|
+
@blur="handleBlur"
|
|
15
30
|
>
|
|
16
|
-
<template #control="{
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
:clearable="clearable"
|
|
21
|
-
:prefix="prefix"
|
|
22
|
-
:suffix="suffix"
|
|
23
|
-
:name="name"
|
|
24
|
-
:model-value="numberValue"
|
|
25
|
-
:loading="loading"
|
|
31
|
+
<template #control="{ placeholder: holder }">
|
|
32
|
+
<input
|
|
33
|
+
ref="inputRef"
|
|
34
|
+
type="text"
|
|
26
35
|
:disabled="disabled"
|
|
27
|
-
:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
:maxlength="maxlength"
|
|
31
|
-
class="vc-input-currency__input"
|
|
32
|
-
type="number"
|
|
33
|
-
@update:model-value="updateModel"
|
|
36
|
+
:placeholder="holder"
|
|
37
|
+
class="vc-input-currency__control"
|
|
38
|
+
tabindex="0"
|
|
34
39
|
@blur="handleBlur"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
name="button"
|
|
39
|
-
:toggle-handler="toggleHandler"
|
|
40
|
-
>
|
|
41
|
-
<template v-if="options && options.length">
|
|
42
|
-
<button
|
|
43
|
-
class="vc-input-currency__toggle-button"
|
|
44
|
-
tabindex="0"
|
|
45
|
-
@click.stop.prevent="toggleHandler"
|
|
46
|
-
@keydown.enter.stop.prevent="toggleHandler"
|
|
47
|
-
@keydown.space.stop.prevent="toggleHandler"
|
|
48
|
-
>
|
|
49
|
-
{{ unref(option) }}
|
|
50
|
-
</button>
|
|
51
|
-
</template>
|
|
52
|
-
</slot>
|
|
53
|
-
<slot
|
|
54
|
-
v-if="$slots['append-inner']"
|
|
55
|
-
name="append-inner"
|
|
56
|
-
></slot>
|
|
57
|
-
</template>
|
|
58
|
-
<template #control="{ placeholder: holder }">
|
|
59
|
-
<input
|
|
60
|
-
ref="inputRef"
|
|
61
|
-
type="text"
|
|
62
|
-
:disabled="disabled"
|
|
63
|
-
:placeholder="holder"
|
|
64
|
-
class="vc-input-currency__control"
|
|
65
|
-
tabindex="0"
|
|
66
|
-
@blur="handleBlur"
|
|
67
|
-
@keydown="handleKeyDown"
|
|
68
|
-
@paste="handlePaste"
|
|
69
|
-
/>
|
|
70
|
-
</template>
|
|
71
|
-
<template
|
|
72
|
-
v-if="$slots['prepend-inner']"
|
|
73
|
-
#prepend-inner
|
|
74
|
-
>
|
|
75
|
-
<slot name="prepend-inner"></slot>
|
|
76
|
-
</template>
|
|
77
|
-
<template
|
|
78
|
-
v-if="$slots['append']"
|
|
79
|
-
#append
|
|
80
|
-
>
|
|
81
|
-
<slot name="append"></slot>
|
|
82
|
-
</template>
|
|
83
|
-
<template
|
|
84
|
-
v-if="$slots['prepend']"
|
|
85
|
-
#prepend
|
|
86
|
-
>
|
|
87
|
-
<slot name="prepend"></slot>
|
|
88
|
-
</template>
|
|
89
|
-
</VcInput>
|
|
40
|
+
@keydown="handleKeyDown"
|
|
41
|
+
@paste="handlePaste"
|
|
42
|
+
/>
|
|
90
43
|
</template>
|
|
91
|
-
</
|
|
44
|
+
</VcInputDropdown>
|
|
92
45
|
</template>
|
|
93
46
|
|
|
94
47
|
<script lang="ts" setup>
|
|
95
48
|
import { useCurrencyInput, CurrencyDisplay } from "vue-currency-input";
|
|
96
49
|
import { unref, watch } from "vue";
|
|
97
|
-
import {
|
|
50
|
+
import { VcInputDropdown } from "./../../";
|
|
98
51
|
import { OptionProp } from "../vc-select/vc-select.vue";
|
|
99
52
|
|
|
100
53
|
export interface Props {
|
|
@@ -197,6 +150,10 @@ export interface Props {
|
|
|
197
150
|
*/
|
|
198
151
|
currencyDisplay?: `${CurrencyDisplay}`;
|
|
199
152
|
precision?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
153
|
+
/**
|
|
154
|
+
* Enable search in dropdown
|
|
155
|
+
*/
|
|
156
|
+
searchable?: boolean;
|
|
200
157
|
}
|
|
201
158
|
|
|
202
159
|
export interface Emits {
|
|
@@ -210,37 +167,9 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
210
167
|
debounce: 0,
|
|
211
168
|
currencyDisplay: CurrencyDisplay.hidden,
|
|
212
169
|
precision: 2,
|
|
170
|
+
searchable: false,
|
|
213
171
|
});
|
|
214
172
|
|
|
215
|
-
defineSlots<{
|
|
216
|
-
/**
|
|
217
|
-
* Slot for custom dropdown open handler
|
|
218
|
-
*/
|
|
219
|
-
button: (scope: {
|
|
220
|
-
/**
|
|
221
|
-
* Dropdown open/close handler
|
|
222
|
-
*/
|
|
223
|
-
toggleHandler: () => void;
|
|
224
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
225
|
-
}) => any;
|
|
226
|
-
/**
|
|
227
|
-
* Slot for custom append-inner content
|
|
228
|
-
*/
|
|
229
|
-
"append-inner": void;
|
|
230
|
-
/**
|
|
231
|
-
* Slot for custom prepend-inner content
|
|
232
|
-
*/
|
|
233
|
-
"prepend-inner": void;
|
|
234
|
-
/**
|
|
235
|
-
* Slot for custom append content
|
|
236
|
-
*/
|
|
237
|
-
append: void;
|
|
238
|
-
/**
|
|
239
|
-
* Slot for custom prepend content
|
|
240
|
-
*/
|
|
241
|
-
prepend: void;
|
|
242
|
-
}>();
|
|
243
|
-
|
|
244
173
|
const emit = defineEmits<Emits>();
|
|
245
174
|
|
|
246
175
|
const { inputRef, setOptions, numberValue, setValue } = useCurrencyInput(
|
|
@@ -330,14 +259,6 @@ function handlePaste(e: ClipboardEvent) {
|
|
|
330
259
|
}
|
|
331
260
|
|
|
332
261
|
.vc-input-currency {
|
|
333
|
-
&__input {
|
|
334
|
-
@apply tw-w-full;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
&__toggle-button {
|
|
338
|
-
@apply tw-text-[color:var(--input-curr-toggle-color)] tw-not-italic tw-font-medium tw-text-sm tw-cursor-pointer;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
262
|
&__control {
|
|
342
263
|
@apply tw-border tw-border-solid tw-px-2 tw-py-1 tw-text-sm tw-outline-none tw-bg-transparent;
|
|
343
264
|
}
|