From 8d02453a9151843e4dc1696d7dca7593651b1d55 Mon Sep 17 00:00:00 2001 From: Benjamin David Date: Fri, 5 Apr 2019 12:11:56 +0200 Subject: [PATCH 1/3] Fixed a bug where the Dropdown component was not accepting number values --- src/components/Dropdown.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Dropdown.vue b/src/components/Dropdown.vue index e1e187f..dda965d 100644 --- a/src/components/Dropdown.vue +++ b/src/components/Dropdown.vue @@ -47,7 +47,7 @@ default: null, }, value: { - type: String, + type: String | Number, default: null, }, }, From b0905a02fee9593bc442d8b6ef0ed1e1f3e5d295 Mon Sep 17 00:00:00 2001 From: Benjamin David Date: Fri, 5 Apr 2019 12:13:13 +0200 Subject: [PATCH 2/3] dist --- dist/craftui.cjs.js | 2 +- dist/craftui.css | 84 ++++++++++++++++++++-------------------- dist/craftui.es.js | 2 +- dist/craftui.js | 2 +- dist/craftui.min.css | 2 +- dist/craftui.min.css.map | 2 +- dist/craftui.min.js | 2 +- dist/craftui.min.js.map | 2 +- 8 files changed, 49 insertions(+), 49 deletions(-) diff --git a/dist/craftui.cjs.js b/dist/craftui.cjs.js index 9d91215..9b67c15 100644 --- a/dist/craftui.cjs.js +++ b/dist/craftui.cjs.js @@ -475,7 +475,7 @@ var script$3 = { default: null }, value: { - type: String, + type: String | Number, default: null } }, diff --git a/dist/craftui.css b/dist/craftui.css index 1c95a31..db7c840 100644 --- a/dist/craftui.css +++ b/dist/craftui.css @@ -1014,48 +1014,6 @@ body.rtl .c-radio input { font-size: .875rem; } -.c-textbox .wrapper { - position: relative; -} - -.c-textbox .wrapper input.c-textbox.w-full { - width: 100%; -} - -.c-textbox .wrapper .text-red-dark { - color: #cc1f1a; -} - -.c-textbox .wrapper .max { - margin-top: .5rem; -} - -body.ltr .c-textbox .wrapper .max { - padding-right: .25rem; -} - -body.rtl .c-textbox .wrapper .max { - padding-left: .25rem; -} - -.c-textbox .wrapper .max.floating { - position: absolute; - font-size: .75rem; - text-align: right; -} - -.c-textbox .wrapper .max.text-grey { - color: #b8c2cc; -} - -.c-textbox .wrapper .max.text-orange { - color: #f6993f; -} - -.c-textbox .wrapper .max.text-red { - color: #e3342f; -} - .c-spinner { display: inline-block; } @@ -1107,3 +1065,45 @@ body.rtl .c-textbox .wrapper .max { transform: rotate(1turn); } } + +.c-textbox .wrapper { + position: relative; +} + +.c-textbox .wrapper input.c-textbox.w-full { + width: 100%; +} + +.c-textbox .wrapper .text-red-dark { + color: #cc1f1a; +} + +.c-textbox .wrapper .max { + margin-top: .5rem; +} + +body.ltr .c-textbox .wrapper .max { + padding-right: .25rem; +} + +body.rtl .c-textbox .wrapper .max { + padding-left: .25rem; +} + +.c-textbox .wrapper .max.floating { + position: absolute; + font-size: .75rem; + text-align: right; +} + +.c-textbox .wrapper .max.text-grey { + color: #b8c2cc; +} + +.c-textbox .wrapper .max.text-orange { + color: #f6993f; +} + +.c-textbox .wrapper .max.text-red { + color: #e3342f; +} diff --git a/dist/craftui.es.js b/dist/craftui.es.js index 446cdc9..a3a4a2f 100644 --- a/dist/craftui.es.js +++ b/dist/craftui.es.js @@ -471,7 +471,7 @@ var script$3 = { default: null }, value: { - type: String, + type: String | Number, default: null } }, diff --git a/dist/craftui.js b/dist/craftui.js index 5f99ebe..b89c1c2 100644 --- a/dist/craftui.js +++ b/dist/craftui.js @@ -477,7 +477,7 @@ default: null }, value: { - type: String, + type: String | Number, default: null } }, diff --git a/dist/craftui.min.css b/dist/craftui.min.css index e3e8289..b11f6d1 100644 --- a/dist/craftui.min.css +++ b/dist/craftui.min.css @@ -5,6 +5,6 @@ body.ltr .c-checkbox input{margin-right:.5rem}body.rtl .c-checkbox input{margin- .c-icon{display:inline-block;vertical-align:middle;position:relative;fill:currentColor;top:-2px;width:18px;height:18px}.c-icon.size-sm{width:.75rem;height:.75rem}.c-icon.size-base{width:1rem;height:1rem}.c-icon.size-lg{width:1.25rem;height:1.25rem}.c-icon.size-xl{width:1.5rem;height:1.5rem}.c-icon.size-2xl{width:1.75rem;height:1.75rem}.c-icon.size-3xl{width:2.25rem;height:2.25rem}.c-icon.size-4xl{width:3rem;height:3rem}.c-icon.size-5xl{width:4rem;height:4rem} .c-lightswitch .c-lightswitch-input label{position:relative;display:block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:46px;height:30px}.c-lightswitch .c-lightswitch-input label input{position:absolute;opacity:0}.c-lightswitch .c-lightswitch-input label .slider{position:absolute;top:0;right:0;bottom:0;left:0;cursor:pointer;background-color:#ccc;-webkit-transition:.4s;transition:.4s}.c-lightswitch .c-lightswitch-input label .slider:before{position:absolute;background-color:#fff;content:"";height:26px;width:26px;bottom:2px;-webkit-transition:.1s;transition:.1s}body.ltr .c-lightswitch .c-lightswitch-input label .slider:before{left:2px}body.rtl .c-lightswitch .c-lightswitch-input label .slider:before{right:2px}.c-lightswitch .c-lightswitch-input label input:checked+.slider{background-color:#38c172}.c-lightswitch .c-lightswitch-input label input:active+.slider,.c-lightswitch .c-lightswitch-input label input:focus+.slider{-webkit-box-shadow:0 0 0 2px rgba(52,144,220,.5);box-shadow:0 0 0 2px rgba(52,144,220,.5)}.c-lightswitch .c-lightswitch-input label input:checked+.slider:before{-webkit-transform:translateX(16px);transform:translateX(16px)}.c-lightswitch .c-lightswitch-input label .slider.round{border-radius:34px}.c-lightswitch .c-lightswitch-input label .slider.round:before{border-radius:50%}.c-lightswitch .c-lightswitch-input label.disabled{opacity:.4}.c-lightswitch .c-lightswitch-input label.disabled .slider{cursor:default} body.ltr .c-radio input{margin-right:.5rem}body.rtl .c-radio input{margin-left:.5rem}.c-radio .instructions{color:#8795a1;font-size:.875rem} -.c-textbox .wrapper{position:relative}.c-textbox .wrapper input.c-textbox.w-full{width:100%}.c-textbox .wrapper .text-red-dark{color:#cc1f1a}.c-textbox .wrapper .max{margin-top:.5rem}body.ltr .c-textbox .wrapper .max{padding-right:.25rem}body.rtl .c-textbox .wrapper .max{padding-left:.25rem}.c-textbox .wrapper .max.floating{position:absolute;font-size:.75rem;text-align:right}.c-textbox .wrapper .max.text-grey{color:#b8c2cc}.c-textbox .wrapper .max.text-orange{color:#f6993f}.c-textbox .wrapper .max.text-red{color:#e3342f} .c-spinner{display:inline-block}.c-spinner>.animation{-webkit-animation:a .7s linear infinite;animation:a .7s linear infinite;width:20px;height:20px;border-radius:50%;border:2px solid transparent;border-top-color:transparent!important;border-left-color:transparent!important;border-right-color:#555;border-bottom-color:#555}.c-spinner.sm>.animation{width:16px;height:16px}.c-spinner.lg>.animation{width:32px;height:32px;border-width:3px}@-webkit-keyframes a{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes a{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}} +.c-textbox .wrapper{position:relative}.c-textbox .wrapper input.c-textbox.w-full{width:100%}.c-textbox .wrapper .text-red-dark{color:#cc1f1a}.c-textbox .wrapper .max{margin-top:.5rem}body.ltr .c-textbox .wrapper .max{padding-right:.25rem}body.rtl .c-textbox .wrapper .max{padding-left:.25rem}.c-textbox .wrapper .max.floating{position:absolute;font-size:.75rem;text-align:right}.c-textbox .wrapper .max.text-grey{color:#b8c2cc}.c-textbox .wrapper .max.text-orange{color:#f6993f}.c-textbox .wrapper .max.text-red{color:#e3342f} /*# sourceMappingURL=craftui.min.css.map */ \ No newline at end of file diff --git a/dist/craftui.min.css.map b/dist/craftui.min.css.map index d51acf4..dec51cb 100644 --- a/dist/craftui.min.css.map +++ b/dist/craftui.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["dist/styles.scss","dist/","dist/Btn.vue?rollup-plugin-vue=styles.0.css","dist/Checkbox.vue?rollup-plugin-vue=styles.0.css","dist/Dropdown.vue?rollup-plugin-vue=styles.0.css","dist/Icon.vue?rollup-plugin-vue=styles.0.css","dist/Lightswitch.vue?rollup-plugin-vue=styles.0.css","dist/Radio.vue?rollup-plugin-vue=styles.0.css","dist/Textbox.vue?rollup-plugin-vue=styles.0.css","dist/Spinner.vue?rollup-plugin-vue=styles.0.css"],"names":[],"mappings":"AACA,4EAAA,AAAoB,KAApB,iBAAA,AAAoB,6BAAA,CAApB,AAAoB,KAApB,QAAoB,CAApB,AAAoB,KAApB,aAAoB,CAApB,AAAoB,GAApB,cAAA,AAAoB,cAAA,CAApB,AAAoB,GAApB,+BAAA,AAAoB,uBAApB,AAAoB,SAApB,AAAoB,gBAAA,CAApB,AAAoB,IAApB,gCAAA,AAAoB,aAAA,CAApB,AAAoB,EAApB,4BAAoB,CAApB,AAAoB,YAApB,mBAAA,AAAoB,0BAApB,AAAoB,yCAApB,AAAoB,gCAAA,CAApB,AAAoB,SAApB,kBAAoB,CAApB,AAAoB,cAApB,gCAAA,AAAoB,aAAA,CAApB,AAAoB,MAApB,aAAoB,CAApB,AAAoB,QAApB,cAAA,AAAoB,cAApB,AAAoB,kBAApB,AAAoB,uBAAA,CAApB,AAAoB,IAApB,aAAoB,CAApB,AAAoB,IAApB,SAAoB,CAApB,AAAoB,IAApB,iBAAoB,CAApB,AAAoB,sCAApB,oBAAA,AAAoB,eAApB,AAAoB,iBAApB,AAAoB,QAAA,CAApB,AAAoB,aAApB,gBAAoB,CAApB,AAAoB,cAApB,mBAAoB,CAApB,AAAoB,gDAApB,yBAAoB,CAApB,AAAoB,wHAApB,kBAAA,AAAoB,SAAA,CAApB,AAAoB,4GAApB,6BAAoB,CAApB,AAAoB,SAApB,0BAAoB,CAApB,AAAoB,OAApB,8BAAA,AAAoB,sBAApB,AAAoB,cAApB,AAAoB,cAApB,AAAoB,eAApB,AAAoB,UAApB,AAAoB,kBAAA,CAApB,AAAoB,SAApB,uBAAoB,CAApB,AAAoB,SAApB,aAAoB,CAApB,AAAoB,6BAApB,8BAAA,AAAoB,sBAApB,AAAoB,SAAA,CAApB,AAAoB,kFAApB,WAAoB,CAApB,AAAoB,cAApB,6BAAA,AAAoB,mBAAA,CAApB,AAAoB,yCAApB,uBAAoB,C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AC,CAArE,AAAsE,aAAnD,GAAG,4BAAA,AAAmB,mBAAA,CAAC,GAAG,gCAAA,AAAuB,uBAAA,CAAC,CAAC","file":"dist/craftui.min.css","sourcesContent":["@charset \"UTF-8\";\n@tailwind preflight;\n/* Fields */\n.c-field {\n margin-bottom: 1rem; }\n\n.c-field.mono input,\n.c-field.mono textarea {\n @apply .font-mono; }\n\n.invalid-feedback {\n @apply .text-red .text-sm .mt-2 .mb-4; }\n\n.instructions {\n color: #8f98a3; }\n\nlabel {\n @apply .inline-block .mb-1; }\n\n.c-field .checkbox {\n @apply .mr-2; }\n\nselect {\n @apply .border .border-grey-light .bg-white;\n height: calc(2.25rem + 2px); }\n\n/* Inputs */\ninput[type=\"email\"],\ninput[type=\"text\"],\ninput[type=\"password\"],\ninput[type=\"tel\"],\ninput[type=\"url\"],\ninput[type=\"number\"],\ntextarea {\n @apply .bg-white .border .border-grey .p-2 .rounded .block; }\n input[type=\"email\"]:disabled, input[type=\"email\"][readonly],\n input[type=\"text\"]:disabled,\n input[type=\"text\"][readonly],\n input[type=\"password\"]:disabled,\n input[type=\"password\"][readonly],\n input[type=\"tel\"]:disabled,\n input[type=\"tel\"][readonly],\n input[type=\"url\"]:disabled,\n input[type=\"url\"][readonly],\n input[type=\"number\"]:disabled,\n input[type=\"number\"][readonly],\n textarea:disabled,\n textarea[readonly] {\n @apply .bg-grey-lightest; }\n input[type=\"email\"].is-invalid,\n input[type=\"text\"].is-invalid,\n input[type=\"password\"].is-invalid,\n input[type=\"tel\"].is-invalid,\n input[type=\"url\"].is-invalid,\n input[type=\"number\"].is-invalid,\n textarea.is-invalid {\n @apply .border-red; }\n\ninput[type=\"number\"] {\n width: 60px; }\n\n/*\nKeep it light, don't import Tailwind’s utilities.\n@tailwind utilities;\n*/\n",null,".c-btn,a.c-btn,button.c-btn{@apply .px-4 .py-2 .rounded .bg-grey-lighter .text-black .no-underline .border .border-solid .border-grey-lighter;}.c-btn:not(.outline),a.c-btn:not(.outline),button.c-btn:not(.outline){@apply .shadow;}.c-btn:not([disabled]):hover,a.c-btn:not([disabled]):hover,button.c-btn:not([disabled]):hover{@apply .cursor-pointer .bg-grey .border-grey .no-underline;}.c-btn:not([disabled]):active,a.c-btn:not([disabled]):active,button.c-btn:not([disabled]):active{@apply .cursor-pointer .bg-grey-dark .border-grey-dark;}.c-btn.block,a.c-btn.block,button.c-btn.block{@apply .w-full .my-2;}.c-btn.small,a.c-btn.small,button.c-btn.small{@apply .text-sm;}.c-btn.small .c-icon,a.c-btn.small .c-icon,button.c-btn.small .c-icon{width:12px;height:12px}.c-btn.large,a.c-btn.large,button.c-btn.large{@apply .text-lg .py-3;}.c-btn.danger:not(.outline) .c-icon,.c-btn.primary:not(.outline) .c-icon,a.c-btn.danger:not(.outline) .c-icon,a.c-btn.primary:not(.outline) .c-icon,button.c-btn.danger:not(.outline) .c-icon,button.c-btn.primary:not(.outline) .c-icon{fill:#fff}.c-btn.primary:not(.outline),a.c-btn.primary:not(.outline),button.c-btn.primary:not(.outline){@apply .bg-blue .border-blue .text-white;}.c-btn.primary:not(.outline):not([disabled]):hover,a.c-btn.primary:not(.outline):not([disabled]):hover,button.c-btn.primary:not(.outline):not([disabled]):hover{@apply .bg-blue-dark .border-blue-dark;}.c-btn.primary:not(.outline):not([disabled]):active,a.c-btn.primary:not(.outline):not([disabled]):active,button.c-btn.primary:not(.outline):not([disabled]):active{@apply .bg-blue-darker .border-blue-darker;}.c-btn.danger,a.c-btn.danger,button.c-btn.danger{@apply .bg-red .border-red .text-white;}.c-btn.danger:not([disabled]):hover,a.c-btn.danger:not([disabled]):hover,button.c-btn.danger:not([disabled]):hover{@apply .bg-red-dark .border-red-dark;}.c-btn.danger:not([disabled]):active,a.c-btn.danger:not([disabled]):active,button.c-btn.danger:not([disabled]):active{@apply .bg-red-darker .border-red-darker;}.c-btn[disabled],a.c-btn[disabled],button.c-btn[disabled]{@apply .opacity-50 .cursor-default;}.c-btn.outline,a.c-btn.outline,button.c-btn.outline{@apply .bg-transparent;}.c-btn.outline.primary,a.c-btn.outline.primary,button.c-btn.outline.primary{@apply .text-blue;}.c-btn.outline.primary:not([disabled]):hover,a.c-btn.outline.primary:not([disabled]):hover,button.c-btn.outline.primary:not([disabled]):hover{@apply .text-white .bg-blue;}.c-btn.outline.primary:not([disabled]):active,a.c-btn.outline.primary:not([disabled]):active,button.c-btn.outline.primary:not([disabled]):active{@apply .text-white .bg-blue-darker;}.c-btn.outline.danger,a.c-btn.outline.danger,button.c-btn.outline.danger{@apply .text-red;}.c-btn.outline.danger:not([disabled]):hover,a.c-btn.outline.danger:not([disabled]):hover,button.c-btn.outline.danger:not([disabled]):hover{@apply .text-white .bg-red;}.c-btn.outline.danger:not([disabled]):active,a.c-btn.outline.danger:not([disabled]):active,button.c-btn.outline.danger:not([disabled]):active{@apply .text-white .bg-red-darker;}.c-btn.outline .c-icon,a.c-btn.outline .c-icon,button.c-btn.outline .c-icon{@apply .fill-current;}.c-btn.loading,a.c-btn.loading,button.c-btn.loading{@apply .relative;}.c-btn.loading:not(.outline).danger .c-spinner>.animation,.c-btn.loading:not(.outline).primary .c-spinner>.animation,a.c-btn.loading:not(.outline).danger .c-spinner>.animation,a.c-btn.loading:not(.outline).primary .c-spinner>.animation,button.c-btn.loading:not(.outline).danger .c-spinner>.animation,button.c-btn.loading:not(.outline).primary .c-spinner>.animation{@apply .border-white;}.c-btn.loading.outline.primary .c-spinner>.animation,a.c-btn.loading.outline.primary .c-spinner>.animation,button.c-btn.loading.outline.primary .c-spinner>.animation{@apply .border-blue;}.c-btn.loading.outline.danger .c-spinner>.animation,a.c-btn.loading.outline.danger .c-spinner>.animation,button.c-btn.loading.outline.danger .c-spinner>.animation{@apply .border-red;}.c-btn.loading .c-spinner,a.c-btn.loading .c-spinner,button.c-btn.loading .c-spinner{@apply .absolute .pin .flex .justify-center .items-center;}.c-btn.loading .c-btn-content,a.c-btn.loading .c-btn-content,button.c-btn.loading .c-btn-content{@apply .invisible;}.c-btn .c-icon,a.c-btn .c-icon,button.c-btn .c-icon{@apply .align-middle;}body.ltr .c-btn:not(.c-btn-icon) .c-icon,body.ltr a.c-btn:not(.c-btn-icon) .c-icon,body.ltr button.c-btn:not(.c-btn-icon) .c-icon{margin-right:.25rem}body.rtl .c-btn:not(.c-btn-icon) .c-icon,body.rtl a.c-btn:not(.c-btn-icon) .c-icon,body.rtl button.c-btn:not(.c-btn-icon) .c-icon{margin-left:.25rem}.c-btn .c-btn-content,a.c-btn .c-btn-content,button.c-btn .c-btn-content{@apply .inline-block;}","body.ltr .c-checkbox input{margin-right:.5rem}body.rtl .c-checkbox input{margin-left:.5rem}",".c-dropdown .c-dropdown-input select.w-full{@apply .w-full;}.c-dropdown .is-invalid select{@apply .border-red;}",".c-icon{@apply .inline-block .align-middle .relative .fill-current;top:-2px;width:18px;height:18px}.c-icon.size-sm{width:.75rem;height:.75rem}.c-icon.size-base{width:1rem;height:1rem}.c-icon.size-lg{width:1.25rem;height:1.25rem}.c-icon.size-xl{width:1.5rem;height:1.5rem}.c-icon.size-2xl{width:1.75rem;height:1.75rem}.c-icon.size-3xl{width:2.25rem;height:2.25rem}.c-icon.size-4xl{width:3rem;height:3rem}.c-icon.size-5xl{width:4rem;height:4rem}",".c-lightswitch .c-lightswitch-input label{@apply .relative .block .select-none;width:46px;height:30px}.c-lightswitch .c-lightswitch-input label input{@apply .absolute .opacity-0;}.c-lightswitch .c-lightswitch-input label .slider{@apply .absolute .pin .cursor-pointer;background-color:#ccc;-webkit-transition:.4s;transition:.4s}.c-lightswitch .c-lightswitch-input label .slider:before{@apply .absolute .bg-white;content:\"\";height:26px;width:26px;bottom:2px;-webkit-transition:.1s;transition:.1s}body.ltr .c-lightswitch .c-lightswitch-input label .slider:before{left:2px}body.rtl .c-lightswitch .c-lightswitch-input label .slider:before{right:2px}.c-lightswitch .c-lightswitch-input label input:checked+.slider{background-color:#38c172}.c-lightswitch .c-lightswitch-input label input:active+.slider,.c-lightswitch .c-lightswitch-input label input:focus+.slider{box-shadow:0 0 0 2px rgba(52,144,220,.5)}.c-lightswitch .c-lightswitch-input label input:checked+.slider:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.c-lightswitch .c-lightswitch-input label .slider.round{border-radius:34px}.c-lightswitch .c-lightswitch-input label .slider.round:before{border-radius:50%}.c-lightswitch .c-lightswitch-input label.disabled{opacity:.4}.c-lightswitch .c-lightswitch-input label.disabled .slider{@apply .cursor-default;}","body.ltr .c-radio input{margin-right:.5rem}body.rtl .c-radio input{margin-left:.5rem}.c-radio .instructions{@apply .text-grey-dark .text-sm;}",".c-textbox .wrapper{@apply .relative;}.c-textbox .wrapper input.c-textbox.w-full{@apply .w-full;}.c-textbox .wrapper .text-red-dark{@apply .text-red-dark;}.c-textbox .wrapper .max{@apply .mt-2;}body.ltr .c-textbox .wrapper .max{padding-right:.25rem}body.rtl .c-textbox .wrapper .max{padding-left:.25rem}.c-textbox .wrapper .max.floating{@apply .absolute .text-xs .text-right;}.c-textbox .wrapper .max.text-grey{@apply .text-grey;}.c-textbox .wrapper .max.text-orange{@apply .text-orange;}.c-textbox .wrapper .max.text-red{@apply .text-red;}",".c-spinner{@apply .inline-block;}.c-spinner>.animation{animation:rotator .7s linear infinite;width:20px;height:20px;border-radius:50%;border:2px solid transparent;border-top-color:transparent!important;border-left-color:transparent!important;border-right-color:#555;border-bottom-color:#555}.c-spinner.sm>.animation{width:16px;height:16px}.c-spinner.lg>.animation{width:32px;height:32px;border-width:3px}@keyframes rotator{0%{transform:rotate(0)}to{transform:rotate(1turn)}}"]} \ No newline at end of file +{"version":3,"sources":["dist/styles.scss","dist/","dist/Btn.vue?rollup-plugin-vue=styles.0.css","dist/Checkbox.vue?rollup-plugin-vue=styles.0.css","dist/Dropdown.vue?rollup-plugin-vue=styles.0.css","dist/Icon.vue?rollup-plugin-vue=styles.0.css","dist/Lightswitch.vue?rollup-plugin-vue=styles.0.css","dist/Radio.vue?rollup-plugin-vue=styles.0.css","dist/Spinner.vue?rollup-plugin-vue=styles.0.css","dist/Textbox.vue?rollup-plugin-vue=styles.0.css"],"names":[],"mappings":"AACA,4EAAA,AAAoB,KAApB,iBAAA,AAAoB,6BAAA,CAApB,AAAoB,KAApB,QAAoB,CAApB,AAAoB,KAApB,aAAoB,CAApB,AAAoB,GAApB,cAAA,AAAoB,cAAA,CAApB,AAAoB,GAApB,+BAAA,AAAoB,uBAApB,AAAoB,SAApB,AAAoB,gBAAA,CAApB,AAAoB,IAApB,gCAAA,AAAoB,aAAA,CAApB,AAAoB,EAApB,4BAAoB,CAApB,AAAoB,YAApB,mBAAA,AAAoB,0BAApB,AAAoB,yCAApB,AAAoB,gCAAA,CAApB,AAAoB,SAApB,kBAAoB,CAApB,AAAoB,cAApB,gCAAA,AAAoB,aAAA,CAApB,AAAoB,MAApB,aAAoB,CAApB,AAAoB,QAApB,cAAA,AAAoB,cAApB,AAAoB,kBAApB,AAAoB,uBAAA,CAApB,AAAoB,IAApB,aAAoB,CAApB,AAAoB,IAApB,SAAoB,CAApB,AAAoB,IAApB,iBAAoB,CAApB,AAAoB,sCAApB,oBAAA,AAAoB,eAApB,AAAoB,iBAApB,AAAoB,QAAA,CAApB,AAAoB,aAApB,gBAAoB,CAApB,AAAoB,cAApB,mBAAoB,CAApB,AAAoB,gDAApB,yBAAoB,CAApB,AAAoB,wHAApB,kBAAA,AAAoB,SAAA,CAApB,AAAoB,4GAApB,6BAAoB,CAApB,AAAoB,SAApB,0BAAoB,CAApB,AAAoB,OAApB,8BAAA,AAAoB,sBAApB,AAAoB,cAApB,AAAoB,cAApB,AAAoB,eAApB,AAAoB,UAApB,AAAoB,kBAAA,CAApB,AAAoB,SAApB,uBAAoB,CAApB,AAAoB,SAApB,aAAoB,CAApB,AAAoB,6BAApB,8BAAA,AAAoB,sBAApB,AAAoB,SAAA,CAApB,AAAoB,kFAApB,WAAoB,CAApB,AAAoB,cAApB,6BAAA,AAAoB,mBAAA,CAApB,AAAoB,yCAApB,uBAAoB,CAApB,AAAoB,6B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A,iBAAA,gBAAA,CQAwX,mCRAxX,aAAA,CQA8a,qCRA9a,aAAA,CQAwe,kCRAxe,aAAA,CQA4hB","file":"dist/craftui.min.css","sourcesContent":["@charset \"UTF-8\";\n@tailwind preflight;\n/* Fields */\n.c-field {\n margin-bottom: 1rem; }\n\n.c-field.mono input,\n.c-field.mono textarea {\n @apply .font-mono; }\n\n.invalid-feedback {\n @apply .text-red .text-sm .mt-2 .mb-4; }\n\n.instructions {\n color: #8f98a3; }\n\nlabel {\n @apply .inline-block .mb-1; }\n\n.c-field .checkbox {\n @apply .mr-2; }\n\nselect {\n @apply .border .border-grey-light .bg-white;\n height: calc(2.25rem + 2px); }\n\n/* Inputs */\ninput[type=\"email\"],\ninput[type=\"text\"],\ninput[type=\"password\"],\ninput[type=\"tel\"],\ninput[type=\"url\"],\ninput[type=\"number\"],\ntextarea {\n @apply .bg-white .border .border-grey .p-2 .rounded .block; }\n input[type=\"email\"]:disabled, input[type=\"email\"][readonly],\n input[type=\"text\"]:disabled,\n input[type=\"text\"][readonly],\n input[type=\"password\"]:disabled,\n input[type=\"password\"][readonly],\n input[type=\"tel\"]:disabled,\n input[type=\"tel\"][readonly],\n input[type=\"url\"]:disabled,\n input[type=\"url\"][readonly],\n input[type=\"number\"]:disabled,\n input[type=\"number\"][readonly],\n textarea:disabled,\n textarea[readonly] {\n @apply .bg-grey-lightest; }\n input[type=\"email\"].is-invalid,\n input[type=\"text\"].is-invalid,\n input[type=\"password\"].is-invalid,\n input[type=\"tel\"].is-invalid,\n input[type=\"url\"].is-invalid,\n input[type=\"number\"].is-invalid,\n textarea.is-invalid {\n @apply .border-red; }\n\ninput[type=\"number\"] {\n width: 60px; }\n\n/*\nKeep it light, don't import Tailwind’s utilities.\n@tailwind utilities;\n*/\n",null,".c-btn,a.c-btn,button.c-btn{@apply .px-4 .py-2 .rounded .bg-grey-lighter .text-black .no-underline .border .border-solid .border-grey-lighter;}.c-btn:not(.outline),a.c-btn:not(.outline),button.c-btn:not(.outline){@apply .shadow;}.c-btn:not([disabled]):hover,a.c-btn:not([disabled]):hover,button.c-btn:not([disabled]):hover{@apply .cursor-pointer .bg-grey .border-grey .no-underline;}.c-btn:not([disabled]):active,a.c-btn:not([disabled]):active,button.c-btn:not([disabled]):active{@apply .cursor-pointer .bg-grey-dark .border-grey-dark;}.c-btn.block,a.c-btn.block,button.c-btn.block{@apply .w-full .my-2;}.c-btn.small,a.c-btn.small,button.c-btn.small{@apply .text-sm;}.c-btn.small .c-icon,a.c-btn.small .c-icon,button.c-btn.small .c-icon{width:12px;height:12px}.c-btn.large,a.c-btn.large,button.c-btn.large{@apply .text-lg .py-3;}.c-btn.danger:not(.outline) .c-icon,.c-btn.primary:not(.outline) .c-icon,a.c-btn.danger:not(.outline) .c-icon,a.c-btn.primary:not(.outline) .c-icon,button.c-btn.danger:not(.outline) .c-icon,button.c-btn.primary:not(.outline) .c-icon{fill:#fff}.c-btn.primary:not(.outline),a.c-btn.primary:not(.outline),button.c-btn.primary:not(.outline){@apply .bg-blue .border-blue .text-white;}.c-btn.primary:not(.outline):not([disabled]):hover,a.c-btn.primary:not(.outline):not([disabled]):hover,button.c-btn.primary:not(.outline):not([disabled]):hover{@apply .bg-blue-dark .border-blue-dark;}.c-btn.primary:not(.outline):not([disabled]):active,a.c-btn.primary:not(.outline):not([disabled]):active,button.c-btn.primary:not(.outline):not([disabled]):active{@apply .bg-blue-darker .border-blue-darker;}.c-btn.danger,a.c-btn.danger,button.c-btn.danger{@apply .bg-red .border-red .text-white;}.c-btn.danger:not([disabled]):hover,a.c-btn.danger:not([disabled]):hover,button.c-btn.danger:not([disabled]):hover{@apply .bg-red-dark .border-red-dark;}.c-btn.danger:not([disabled]):active,a.c-btn.danger:not([disabled]):active,button.c-btn.danger:not([disabled]):active{@apply .bg-red-darker .border-red-darker;}.c-btn[disabled],a.c-btn[disabled],button.c-btn[disabled]{@apply .opacity-50 .cursor-default;}.c-btn.outline,a.c-btn.outline,button.c-btn.outline{@apply .bg-transparent;}.c-btn.outline.primary,a.c-btn.outline.primary,button.c-btn.outline.primary{@apply .text-blue;}.c-btn.outline.primary:not([disabled]):hover,a.c-btn.outline.primary:not([disabled]):hover,button.c-btn.outline.primary:not([disabled]):hover{@apply .text-white .bg-blue;}.c-btn.outline.primary:not([disabled]):active,a.c-btn.outline.primary:not([disabled]):active,button.c-btn.outline.primary:not([disabled]):active{@apply .text-white .bg-blue-darker;}.c-btn.outline.danger,a.c-btn.outline.danger,button.c-btn.outline.danger{@apply .text-red;}.c-btn.outline.danger:not([disabled]):hover,a.c-btn.outline.danger:not([disabled]):hover,button.c-btn.outline.danger:not([disabled]):hover{@apply .text-white .bg-red;}.c-btn.outline.danger:not([disabled]):active,a.c-btn.outline.danger:not([disabled]):active,button.c-btn.outline.danger:not([disabled]):active{@apply .text-white .bg-red-darker;}.c-btn.outline .c-icon,a.c-btn.outline .c-icon,button.c-btn.outline .c-icon{@apply .fill-current;}.c-btn.loading,a.c-btn.loading,button.c-btn.loading{@apply .relative;}.c-btn.loading:not(.outline).danger .c-spinner>.animation,.c-btn.loading:not(.outline).primary .c-spinner>.animation,a.c-btn.loading:not(.outline).danger .c-spinner>.animation,a.c-btn.loading:not(.outline).primary .c-spinner>.animation,button.c-btn.loading:not(.outline).danger .c-spinner>.animation,button.c-btn.loading:not(.outline).primary .c-spinner>.animation{@apply .border-white;}.c-btn.loading.outline.primary .c-spinner>.animation,a.c-btn.loading.outline.primary .c-spinner>.animation,button.c-btn.loading.outline.primary .c-spinner>.animation{@apply .border-blue;}.c-btn.loading.outline.danger .c-spinner>.animation,a.c-btn.loading.outline.danger .c-spinner>.animation,button.c-btn.loading.outline.danger .c-spinner>.animation{@apply .border-red;}.c-btn.loading .c-spinner,a.c-btn.loading .c-spinner,button.c-btn.loading .c-spinner{@apply .absolute .pin .flex .justify-center .items-center;}.c-btn.loading .c-btn-content,a.c-btn.loading .c-btn-content,button.c-btn.loading .c-btn-content{@apply .invisible;}.c-btn .c-icon,a.c-btn .c-icon,button.c-btn .c-icon{@apply .align-middle;}body.ltr .c-btn:not(.c-btn-icon) .c-icon,body.ltr a.c-btn:not(.c-btn-icon) .c-icon,body.ltr button.c-btn:not(.c-btn-icon) .c-icon{margin-right:.25rem}body.rtl .c-btn:not(.c-btn-icon) .c-icon,body.rtl a.c-btn:not(.c-btn-icon) .c-icon,body.rtl button.c-btn:not(.c-btn-icon) .c-icon{margin-left:.25rem}.c-btn .c-btn-content,a.c-btn .c-btn-content,button.c-btn .c-btn-content{@apply .inline-block;}","body.ltr .c-checkbox input{margin-right:.5rem}body.rtl .c-checkbox input{margin-left:.5rem}",".c-dropdown .c-dropdown-input select.w-full{@apply .w-full;}.c-dropdown .is-invalid select{@apply .border-red;}",".c-icon{@apply .inline-block .align-middle .relative .fill-current;top:-2px;width:18px;height:18px}.c-icon.size-sm{width:.75rem;height:.75rem}.c-icon.size-base{width:1rem;height:1rem}.c-icon.size-lg{width:1.25rem;height:1.25rem}.c-icon.size-xl{width:1.5rem;height:1.5rem}.c-icon.size-2xl{width:1.75rem;height:1.75rem}.c-icon.size-3xl{width:2.25rem;height:2.25rem}.c-icon.size-4xl{width:3rem;height:3rem}.c-icon.size-5xl{width:4rem;height:4rem}",".c-lightswitch .c-lightswitch-input label{@apply .relative .block .select-none;width:46px;height:30px}.c-lightswitch .c-lightswitch-input label input{@apply .absolute .opacity-0;}.c-lightswitch .c-lightswitch-input label .slider{@apply .absolute .pin .cursor-pointer;background-color:#ccc;-webkit-transition:.4s;transition:.4s}.c-lightswitch .c-lightswitch-input label .slider:before{@apply .absolute .bg-white;content:\"\";height:26px;width:26px;bottom:2px;-webkit-transition:.1s;transition:.1s}body.ltr .c-lightswitch .c-lightswitch-input label .slider:before{left:2px}body.rtl .c-lightswitch .c-lightswitch-input label .slider:before{right:2px}.c-lightswitch .c-lightswitch-input label input:checked+.slider{background-color:#38c172}.c-lightswitch .c-lightswitch-input label input:active+.slider,.c-lightswitch .c-lightswitch-input label input:focus+.slider{box-shadow:0 0 0 2px rgba(52,144,220,.5)}.c-lightswitch .c-lightswitch-input label input:checked+.slider:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.c-lightswitch .c-lightswitch-input label .slider.round{border-radius:34px}.c-lightswitch .c-lightswitch-input label .slider.round:before{border-radius:50%}.c-lightswitch .c-lightswitch-input label.disabled{opacity:.4}.c-lightswitch .c-lightswitch-input label.disabled .slider{@apply .cursor-default;}","body.ltr .c-radio input{margin-right:.5rem}body.rtl .c-radio input{margin-left:.5rem}.c-radio .instructions{@apply .text-grey-dark .text-sm;}",".c-spinner{@apply .inline-block;}.c-spinner>.animation{animation:rotator .7s linear infinite;width:20px;height:20px;border-radius:50%;border:2px solid transparent;border-top-color:transparent!important;border-left-color:transparent!important;border-right-color:#555;border-bottom-color:#555}.c-spinner.sm>.animation{width:16px;height:16px}.c-spinner.lg>.animation{width:32px;height:32px;border-width:3px}@keyframes rotator{0%{transform:rotate(0)}to{transform:rotate(1turn)}}",".c-textbox .wrapper{@apply .relative;}.c-textbox .wrapper input.c-textbox.w-full{@apply .w-full;}.c-textbox .wrapper .text-red-dark{@apply .text-red-dark;}.c-textbox .wrapper .max{@apply .mt-2;}body.ltr .c-textbox .wrapper .max{padding-right:.25rem}body.rtl .c-textbox .wrapper .max{padding-left:.25rem}.c-textbox .wrapper .max.floating{@apply .absolute .text-xs .text-right;}.c-textbox .wrapper .max.text-grey{@apply .text-grey;}.c-textbox .wrapper .max.text-orange{@apply .text-orange;}.c-textbox .wrapper .max.text-red{@apply .text-red;}"]} \ No newline at end of file diff --git a/dist/craftui.min.js b/dist/craftui.min.js index 6c5264a..f09bfc8 100644 --- a/dist/craftui.min.js +++ b/dist/craftui.min.js @@ -1,2 +1,2 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.CraftUi={})}(this,function(t){"use strict";var e={install:function(){if("undefined"!=typeof document){var t=document.createElement("div");t.style.display="none",t.innerHTML='\n\n \n Angle Double Left\n \n \n \n Angle Double Right\n \n \n \n angle-left\n \n \n \n angle-right\n \n \n \n Bars\n \n \n \n book\n \n \n \n Check\n \n \n \n Check Circle\n \n \n \n Copy\n \n \n \n Exclamation Circle\n \n \n \n Exclamation Triangle\n \n \n \n Glass Martini\n \n \n \n Handshake\n \n \n \n Heart\n \n \n \n Line Heart\n \n \n \n Image\n \n \n \n Info Circle\n \n \n \n key\n \n \n \n Line Check Circle\n \n \n \n Line Exclamation Circle\n \n \n \n Line Exclamation Triangle\n \n \n \n Line Info Circle\n \n \n \n Link\n \n \n \n Pencil\n \n \n \n Plug\n \n \n \n plus\n \n \n \n Search\n \n \n \n shopping-cart\n \n \n \n Sort Amount Down\n \n \n \n Sort Amount Up\n \n \n \n th\n \n \n \n Times\n \n \n \n User\n \n \n\n',document.body.insertBefore(t,document.body.firstChild)}}};var l=function(t,e,l,i,n,c,a,o,s,r){"boolean"!=typeof a&&(s=o,o=a,a=!1);var d,u="function"==typeof l?l.options:l;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,n&&(u.functional=!0)),i&&(u._scopeId=i),c?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,s(t)),t&&t._registeredComponents&&t._registeredComponents.add(c)},u._ssrRegister=d):e&&(d=a?function(){e.call(this,r(this.$root.$options.shadowRoot))}:function(t){e.call(this,o(t))}),d)if(u.functional){var h=u.render;u.render=function(t,e){return d.call(e),h(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,d):[d]}return l};var i=l({render:function(){var t,e=this,l=e.$createElement,i=e._self._c||l;return i(e.component,{tag:"component",staticClass:"c-btn",class:[(t={small:e.small,large:e.large,block:e.block,outline:e.outline,loading:e.loading},t[e.kind]=!0,t["c-btn-icon"]=e.icon&&!e.$slots.default,t)],attrs:{to:e.to,href:e.href,target:e.target,type:e.computedType,disabled:e.disabled},on:{click:function(t){return e.$emit("click")}}},[e.loading?[i("spinner")]:e._e(),e._v(" "),i("div",{staticClass:"c-btn-content"},[e.icon&&e.icon.length>0?i("icon",{attrs:{icon:e.icon}}):e._e(),e._v(" "),e._t("default")],2)],2)},staticRenderFns:[]},void 0,{name:"Btn",props:{type:{type:String,default:"button"},kind:{type:String,default:"default"},small:{type:Boolean,default:!1},large:{type:Boolean,default:!1},block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},icon:{type:String,default:null},loading:{type:Boolean,default:!1},to:{type:String,default:null},href:{type:String,default:null},target:{type:String,default:null}},computed:{component:function(){return null!==this.to?"router-link":null!==this.href?"a":"button"},computedType:function(){return null!==this.to||null!==this.href?null:this.type}}},void 0,!1,void 0,void 0,void 0);var n=l({render:function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("field",{staticClass:"c-checkbox",attrs:{id:t.id,errors:t.errors}},[l("label",[l("input",{attrs:{type:"checkbox",id:t.id,disabled:t.disabled},domProps:{value:t.value,checked:t.state},on:{change:t.onChange}}),t._v("\n\n "+t._s(t.label)+"\n ")])])},staticRenderFns:[]},void 0,{model:{prop:"modelValue",event:"input"},props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},errors:{type:Array|Boolean,default:null},id:{type:String,default:function(){return"c-checkbox-id-"+this._uid}},label:{type:String,default:null},modelValue:{default:void 0},value:{type:String|Boolean,default:null}},computed:{state:function(){return void 0===this.modelValue?this.checked:Array.isArray(this.modelValue)?this.modelValue.indexOf(this.value)>-1:!!this.modelValue}},methods:{onChange:function(){this.toggle()},toggle:function(){var t;Array.isArray(this.modelValue)?(t=this.modelValue.slice(0),this.state?t.splice(t.indexOf(this.value),1):t.push(this.value)):t=!this.state,this.$emit("input",t)}},watch:{checked:function(t){t!==this.state&&this.toggle()}},mounted:function(){this.checked&&!this.state&&this.toggle()}},void 0,!1,void 0,void 0,void 0);var c=l({render:function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("div",{staticClass:"c-field",attrs:{id:"field-"+t.id}},[t.label?l("label",{attrs:{for:t.id}},[t._v(t._s(t.label))]):t._e(),t._v(" "),t.instructions?l("div",{staticClass:"instructions"},[l("p",[t._v(t._s(t.instructions))])]):t._e(),t._v(" "),t._t("default"),t._v(" "),t._l(t.errors,function(e,i){return t.errors?[l("div",{key:i,staticClass:"invalid-feedback"},[t._v(t._s(e))])]:t._e()})],2)},staticRenderFns:[]},void 0,{props:{errors:{type:Array|Boolean,default:null},id:{type:String,default:function(){return"c-field-id-"+this._uid}},instructions:{type:String,default:null},label:{type:String,default:null}}},void 0,!1,void 0,void 0,void 0);var a=l({render:function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("field",{staticClass:"c-dropdown",attrs:{id:t.id+"-label",label:t.label,instructions:t.instructions,errors:t.errors}},[l("div",{staticClass:"c-dropdown-input",class:{"is-invalid":t.errors&&t.errors.length>0}},[l("div",{staticClass:"select"},[l("select",{class:{"w-full":t.fullwidth},attrs:{disabled:t.disabled},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target[e.target.selectedIndex].value)}}},t._l(t.options,function(e,i){return l("option",{key:i,domProps:{value:e.value}},[t._v(t._s(e.label))])}),0)])])])},staticRenderFns:[]},void 0,{props:{disabled:{type:Boolean,default:!1},errors:{type:Array|Boolean,default:null},fullwidth:{type:Boolean,default:!1},id:{type:String,default:function(){return"c-dropdown-id-"+this._uid}},instructions:{type:String,default:null},label:{type:String,default:null},options:{type:Array,default:null},value:{type:String,default:null}},components:{Field:c}},void 0,!1,void 0,void 0,void 0);var o=l({render:function(){var t,e=this.$createElement,l=this._self._c||e;return l("svg",{staticClass:"c-icon",class:(t={},t["size-"+this.size]=!0,t),attrs:{viewBox:"0 0 18 18",width:"18",height:"18",role:"presentation"}},[l("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"#"+this.icon}})])},staticRenderFns:[]},void 0,{props:{icon:{type:String,default:null},size:{type:String,default:"base"}}},void 0,!1,void 0,void 0,void 0);var s=l({render:function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("field",{staticClass:"c-lightswitch",attrs:{id:t.id,label:t.label,instructions:t.instructions,errors:t.errors}},[l("div",{staticClass:"c-lightswitch-input"},[l("label",{staticClass:"lightswitch",class:{disabled:t.disabled},attrs:{for:t.id}},[l("input",{attrs:{id:t.id,type:"checkbox",disabled:t.disabled},domProps:{checked:t.checked},on:{change:t.onChange}}),t._v(" "),l("div",{staticClass:"slider round"})])])])},staticRenderFns:[]},void 0,{props:{checked:{type:Boolean,default:null},disabled:{type:Boolean,default:null},errors:{type:Array|Boolean,default:null},id:{type:String,default:function(){return"c-lightswitch-id-"+this._uid}},instructions:{type:String,default:null},label:{type:String,default:null}},components:{Field:c},methods:{onChange:function(t){this.$emit("update:checked",t.target.checked),this.$emit("change",t.target.checked)}}},void 0,!1,void 0,void 0,void 0);var r=l({render:function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("field",{staticClass:"c-radio",attrs:{id:t.id,errors:t.errors}},[l("label",[l("input",{attrs:{type:"radio",id:t.id,disabled:t.disabled},domProps:{value:t.value,checked:t.state},on:{change:t.onChange}}),t._v("\n\n "+t._s(t.label)+"\n ")])])},staticRenderFns:[]},void 0,{model:{prop:"modelValue",event:"input"},props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},errors:{type:Array|Boolean,default:null},id:{type:String,default:function(){return"c-radio-id-"+this._uid}},instructions:{type:String,default:null},label:{type:String,default:null},modelValue:{default:void 0},value:{default:""}},computed:{state:function(){return void 0===this.modelValue?this.checked:this.modelValue===this.value}},methods:{onChange:function(){this.toggle()},toggle:function(){this.$emit("input",this.state?"":this.value)}},watch:{checked:function(t){t!==this.state&&this.toggle()}},mounted:function(){this.checked&&!this.state&&this.toggle()}},void 0,!1,void 0,void 0,void 0);var d=l({render:function(){var t,e=this.$createElement,l=this._self._c||e;return l("div",{staticClass:"c-spinner",class:(t={},t[this.size]=!0,t)},[l("div",{staticClass:"animation"})])},staticRenderFns:[]},void 0,{props:{size:{type:String,default:"base"}}},void 0,!1,void 0,void 0,void 0);function u(t,e){var l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0;t=t||"",e=e||"";for(var n=0,c=0,a="";n2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0;return Array.isArray(e)?function(t,e,l){return e=e.sort(function(t,e){return t.length-e.length}),function(i,n){for(var c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=0;ao.length))return t(i,o,c,l)}return""}}(u,e,i)(t,e,l,i):u(t,e,l,i)}var p={"#":{pattern:/\d/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,transform:function(t){return t.toLocaleUpperCase()}},a:{pattern:/[a-zA-Z]/,transform:function(t){return t.toLocaleLowerCase()}},"!":{escape:!0}};function v(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e}var m={Btn:i,Checkbox:n,Dropdown:a,Field:c,Icon:o,Lightswitch:s,Radio:r,Spinner:d,Textbox:l({render:function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("field",{staticClass:"c-textbox",attrs:{id:t.id,label:t.label,instructions:t.instructions,errors:t.errors}},[l("div",{staticClass:"wrapper"},[l(t.computedComponent,{directives:[{name:"mask",rawName:"v-mask",value:t.mask,expression:"mask"}],ref:"input",tag:"component",class:{"w-full":!t.size,"is-invalid":t.errors&&t.errors.length>0,"text-red-dark":t.max&&t.max=20,"text-orange":t.remainingChars<20&&t.remainingChars>=0,"text-red":t.remainingChars<0}},[l("small",[t._v(t._s(t.max-t.remainingChars)+"/"+t._s(t.max))])]):t._e()],1)])},staticRenderFns:[]},void 0,{directives:{mask:{bind:function(t,e,l){if(l.context.mask)return function(t,e){var l=e.value;if((Array.isArray(l)||"string"==typeof l)&&(l={mask:l,tokens:p}),"INPUT"!==t.tagName.toLocaleUpperCase()){var i=t.getElementsByTagName("input");if(1!==i.length)throw new Error("v-mask directive requires 1 input, found "+i.length);t=i[0]}t.oninput=function(e){if(e.isTrusted){var i=t.selectionEnd,n=t.value[i-1];for(t.value=h(t.value,l.mask,!0,l.tokens);i\n\n \n Angle Double Left\n \n \n \n Angle Double Right\n \n \n \n angle-left\n \n \n \n angle-right\n \n \n \n Bars\n \n \n \n book\n \n \n \n Check\n \n \n \n Check Circle\n \n \n \n Copy\n \n \n \n Exclamation Circle\n \n \n \n Exclamation Triangle\n \n \n \n Glass Martini\n \n \n \n Handshake\n \n \n \n Heart\n \n \n \n Line Heart\n \n \n \n Image\n \n \n \n Info Circle\n \n \n \n key\n \n \n \n Line Check Circle\n \n \n \n Line Exclamation Circle\n \n \n \n Line Exclamation Triangle\n \n \n \n Line Info Circle\n \n \n \n Link\n \n \n \n Pencil\n \n \n \n Plug\n \n \n \n plus\n \n \n \n Search\n \n \n \n shopping-cart\n \n \n \n Sort Amount Down\n \n \n \n Sort Amount Up\n \n \n \n th\n \n \n \n Times\n \n \n \n User\n \n \n\n',document.body.insertBefore(t,document.body.firstChild)}}};var l=function(t,e,l,i,n,c,a,o,s,r){"boolean"!=typeof a&&(s=o,o=a,a=!1);var d,u="function"==typeof l?l.options:l;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,n&&(u.functional=!0)),i&&(u._scopeId=i),c?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,s(t)),t&&t._registeredComponents&&t._registeredComponents.add(c)},u._ssrRegister=d):e&&(d=a?function(){e.call(this,r(this.$root.$options.shadowRoot))}:function(t){e.call(this,o(t))}),d)if(u.functional){var h=u.render;u.render=function(t,e){return d.call(e),h(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,d):[d]}return l};var i=l({render:function(){var t,e=this,l=e.$createElement,i=e._self._c||l;return i(e.component,{tag:"component",staticClass:"c-btn",class:[(t={small:e.small,large:e.large,block:e.block,outline:e.outline,loading:e.loading},t[e.kind]=!0,t["c-btn-icon"]=e.icon&&!e.$slots.default,t)],attrs:{to:e.to,href:e.href,target:e.target,type:e.computedType,disabled:e.disabled},on:{click:function(t){return e.$emit("click")}}},[e.loading?[i("spinner")]:e._e(),e._v(" "),i("div",{staticClass:"c-btn-content"},[e.icon&&e.icon.length>0?i("icon",{attrs:{icon:e.icon}}):e._e(),e._v(" "),e._t("default")],2)],2)},staticRenderFns:[]},void 0,{name:"Btn",props:{type:{type:String,default:"button"},kind:{type:String,default:"default"},small:{type:Boolean,default:!1},large:{type:Boolean,default:!1},block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},icon:{type:String,default:null},loading:{type:Boolean,default:!1},to:{type:String,default:null},href:{type:String,default:null},target:{type:String,default:null}},computed:{component:function(){return null!==this.to?"router-link":null!==this.href?"a":"button"},computedType:function(){return null!==this.to||null!==this.href?null:this.type}}},void 0,!1,void 0,void 0,void 0);var n=l({render:function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("field",{staticClass:"c-checkbox",attrs:{id:t.id,errors:t.errors}},[l("label",[l("input",{attrs:{type:"checkbox",id:t.id,disabled:t.disabled},domProps:{value:t.value,checked:t.state},on:{change:t.onChange}}),t._v("\n\n "+t._s(t.label)+"\n ")])])},staticRenderFns:[]},void 0,{model:{prop:"modelValue",event:"input"},props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},errors:{type:Array|Boolean,default:null},id:{type:String,default:function(){return"c-checkbox-id-"+this._uid}},label:{type:String,default:null},modelValue:{default:void 0},value:{type:String|Boolean,default:null}},computed:{state:function(){return void 0===this.modelValue?this.checked:Array.isArray(this.modelValue)?this.modelValue.indexOf(this.value)>-1:!!this.modelValue}},methods:{onChange:function(){this.toggle()},toggle:function(){var t;Array.isArray(this.modelValue)?(t=this.modelValue.slice(0),this.state?t.splice(t.indexOf(this.value),1):t.push(this.value)):t=!this.state,this.$emit("input",t)}},watch:{checked:function(t){t!==this.state&&this.toggle()}},mounted:function(){this.checked&&!this.state&&this.toggle()}},void 0,!1,void 0,void 0,void 0);var c=l({render:function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("div",{staticClass:"c-field",attrs:{id:"field-"+t.id}},[t.label?l("label",{attrs:{for:t.id}},[t._v(t._s(t.label))]):t._e(),t._v(" "),t.instructions?l("div",{staticClass:"instructions"},[l("p",[t._v(t._s(t.instructions))])]):t._e(),t._v(" "),t._t("default"),t._v(" "),t._l(t.errors,function(e,i){return t.errors?[l("div",{key:i,staticClass:"invalid-feedback"},[t._v(t._s(e))])]:t._e()})],2)},staticRenderFns:[]},void 0,{props:{errors:{type:Array|Boolean,default:null},id:{type:String,default:function(){return"c-field-id-"+this._uid}},instructions:{type:String,default:null},label:{type:String,default:null}}},void 0,!1,void 0,void 0,void 0);var a=l({render:function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("field",{staticClass:"c-dropdown",attrs:{id:t.id+"-label",label:t.label,instructions:t.instructions,errors:t.errors}},[l("div",{staticClass:"c-dropdown-input",class:{"is-invalid":t.errors&&t.errors.length>0}},[l("div",{staticClass:"select"},[l("select",{class:{"w-full":t.fullwidth},attrs:{disabled:t.disabled},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target[e.target.selectedIndex].value)}}},t._l(t.options,function(e,i){return l("option",{key:i,domProps:{value:e.value}},[t._v(t._s(e.label))])}),0)])])])},staticRenderFns:[]},void 0,{props:{disabled:{type:Boolean,default:!1},errors:{type:Array|Boolean,default:null},fullwidth:{type:Boolean,default:!1},id:{type:String,default:function(){return"c-dropdown-id-"+this._uid}},instructions:{type:String,default:null},label:{type:String,default:null},options:{type:Array,default:null},value:{type:String|Number,default:null}},components:{Field:c}},void 0,!1,void 0,void 0,void 0);var o=l({render:function(){var t,e=this.$createElement,l=this._self._c||e;return l("svg",{staticClass:"c-icon",class:(t={},t["size-"+this.size]=!0,t),attrs:{viewBox:"0 0 18 18",width:"18",height:"18",role:"presentation"}},[l("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"#"+this.icon}})])},staticRenderFns:[]},void 0,{props:{icon:{type:String,default:null},size:{type:String,default:"base"}}},void 0,!1,void 0,void 0,void 0);var s=l({render:function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("field",{staticClass:"c-lightswitch",attrs:{id:t.id,label:t.label,instructions:t.instructions,errors:t.errors}},[l("div",{staticClass:"c-lightswitch-input"},[l("label",{staticClass:"lightswitch",class:{disabled:t.disabled},attrs:{for:t.id}},[l("input",{attrs:{id:t.id,type:"checkbox",disabled:t.disabled},domProps:{checked:t.checked},on:{change:t.onChange}}),t._v(" "),l("div",{staticClass:"slider round"})])])])},staticRenderFns:[]},void 0,{props:{checked:{type:Boolean,default:null},disabled:{type:Boolean,default:null},errors:{type:Array|Boolean,default:null},id:{type:String,default:function(){return"c-lightswitch-id-"+this._uid}},instructions:{type:String,default:null},label:{type:String,default:null}},components:{Field:c},methods:{onChange:function(t){this.$emit("update:checked",t.target.checked),this.$emit("change",t.target.checked)}}},void 0,!1,void 0,void 0,void 0);var r=l({render:function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("field",{staticClass:"c-radio",attrs:{id:t.id,errors:t.errors}},[l("label",[l("input",{attrs:{type:"radio",id:t.id,disabled:t.disabled},domProps:{value:t.value,checked:t.state},on:{change:t.onChange}}),t._v("\n\n "+t._s(t.label)+"\n ")])])},staticRenderFns:[]},void 0,{model:{prop:"modelValue",event:"input"},props:{checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},errors:{type:Array|Boolean,default:null},id:{type:String,default:function(){return"c-radio-id-"+this._uid}},instructions:{type:String,default:null},label:{type:String,default:null},modelValue:{default:void 0},value:{default:""}},computed:{state:function(){return void 0===this.modelValue?this.checked:this.modelValue===this.value}},methods:{onChange:function(){this.toggle()},toggle:function(){this.$emit("input",this.state?"":this.value)}},watch:{checked:function(t){t!==this.state&&this.toggle()}},mounted:function(){this.checked&&!this.state&&this.toggle()}},void 0,!1,void 0,void 0,void 0);var d=l({render:function(){var t,e=this.$createElement,l=this._self._c||e;return l("div",{staticClass:"c-spinner",class:(t={},t[this.size]=!0,t)},[l("div",{staticClass:"animation"})])},staticRenderFns:[]},void 0,{props:{size:{type:String,default:"base"}}},void 0,!1,void 0,void 0,void 0);function u(t,e){var l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0;t=t||"",e=e||"";for(var n=0,c=0,a="";n2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0;return Array.isArray(e)?function(t,e,l){return e=e.sort(function(t,e){return t.length-e.length}),function(i,n){for(var c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=0;ao.length))return t(i,o,c,l)}return""}}(u,e,i)(t,e,l,i):u(t,e,l,i)}var p={"#":{pattern:/\d/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,transform:function(t){return t.toLocaleUpperCase()}},a:{pattern:/[a-zA-Z]/,transform:function(t){return t.toLocaleLowerCase()}},"!":{escape:!0}};function v(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e}var m={Btn:i,Checkbox:n,Dropdown:a,Field:c,Icon:o,Lightswitch:s,Radio:r,Spinner:d,Textbox:l({render:function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("field",{staticClass:"c-textbox",attrs:{id:t.id,label:t.label,instructions:t.instructions,errors:t.errors}},[l("div",{staticClass:"wrapper"},[l(t.computedComponent,{directives:[{name:"mask",rawName:"v-mask",value:t.mask,expression:"mask"}],ref:"input",tag:"component",class:{"w-full":!t.size,"is-invalid":t.errors&&t.errors.length>0,"text-red-dark":t.max&&t.max=20,"text-orange":t.remainingChars<20&&t.remainingChars>=0,"text-red":t.remainingChars<0}},[l("small",[t._v(t._s(t.max-t.remainingChars)+"/"+t._s(t.max))])]):t._e()],1)])},staticRenderFns:[]},void 0,{directives:{mask:{bind:function(t,e,l){if(l.context.mask)return function(t,e){var l=e.value;if((Array.isArray(l)||"string"==typeof l)&&(l={mask:l,tokens:p}),"INPUT"!==t.tagName.toLocaleUpperCase()){var i=t.getElementsByTagName("input");if(1!==i.length)throw new Error("v-mask directive requires 1 input, found "+i.length);t=i[0]}t.oninput=function(e){if(e.isTrusted){var i=t.selectionEnd,n=t.value[i-1];for(t.value=h(t.value,l.mask,!0,l.tokens);i a.length - b.length)\n return function (value, mask, masked = true) {\n var i = 0\n while (i < masks.length) {\n var currentMask = masks[i]\n i++\n var nextMask = masks[i]\n if (! (nextMask && maskit(value, nextMask, true, tokens).length > currentMask.length) ) {\n return maskit(value, currentMask, masked, tokens)\n }\n }\n return '' // empty masks\n }\n}\n","module.exports = {\n '#': {pattern: /\\d/},\n 'X': {pattern: /[0-9a-zA-Z]/},\n 'S': {pattern: /[a-zA-Z]/},\n 'A': {pattern: /[a-zA-Z]/, transform: v => v.toLocaleUpperCase()},\n 'a': {pattern: /[a-zA-Z]/, transform: v => v.toLocaleLowerCase()},\n '!': {escape: true}\n}\n\n// https://github.com/fernandofleury/vanilla-masker/blob/master/lib/vanilla-masker.js\n// DIGIT = \"9\",\n// ALPHA = \"A\",\n// ALPHANUM = \"S\"\n\n// https://github.com/niksmr/vue-masked-input\n// 1 - number\n// a - letter\n// A - letter, forced to upper case when entered\n// * - alphanumeric\n// # - alphanumeric, forced to upper case when entered\n// + - any character\n\n// https://github.com/probil/v-mask\n// #\tNumber (0-9)\n// A\tLetter in any case (a-z,A-Z)\n// N\tNumber or letter\n// X\tAny symbol\n\n// https://github.com/igorescobar/jQuery-Mask-Plugin/blob/master/src/jquery.mask.js#L518\n// '0': {pattern: /\\d/},\n// '9': {pattern: /\\d/, optional: true},\n// '#': {pattern: /\\d/, recursive: true},\n// 'A': {pattern: /[a-zA-Z0-9]/},\n// 'S': {pattern: /[a-zA-Z]/}\n\n// https://github.com/the-darc/string-mask\n// 0\tAny numbers\n// 9\tAny numbers (Optional)\n// #\tAny numbers (recursive)\n// A\tAny alphanumeric character\n// a\tAny alphanumeric character (Optional) Not implemented yet\n// S\tAny letter\n// U\tAny letter (All lower case character will be mapped to uppercase)\n// L\tAny letter (All upper case character will be mapped to lowercase)\n// $\tEscape character, used to escape any of the special formatting characters.\n","import masker from './masker'\nimport tokens from './tokens'\n\n// https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Creating_and_triggering_events#The_old-fashioned_way\nfunction event (name) {\n var evt = document.createEvent('Event')\n evt.initEvent(name, true, true)\n return evt\n}\n\nexport default function (el, binding) {\n var config = binding.value\n if (Array.isArray(config) || typeof config === 'string') {\n config = {\n mask: config,\n tokens: tokens\n }\n }\n\n if (el.tagName.toLocaleUpperCase() !== 'INPUT') {\n var els = el.getElementsByTagName('input')\n if (els.length !== 1) {\n throw new Error(\"v-mask directive requires 1 input, found \" + els.length)\n } else {\n el = els[0]\n }\n }\n\n el.oninput = function (evt) {\n if (!evt.isTrusted) return // avoid infinite loop\n /* other properties to try to diferentiate InputEvent of Event (custom)\n InputEvent (native)\n cancelable: false\n isTrusted: true\n\n composed: true\n isComposing: false\n which: 0\n\n Event (custom)\n cancelable: true\n isTrusted: false\n */\n // by default, keep cursor at same position as before the mask\n var position = el.selectionEnd\n // save the character just inserted\n var digit = el.value[position-1]\n el.value = masker(el.value, config.mask, true, config.tokens)\n // if the digit was changed, increment position until find the digit again\n while (position < el.value.length && el.value.charAt(position-1) !== digit) {\n position++\n }\n if (el === document.activeElement) {\n el.setSelectionRange(position, position)\n setTimeout(function () {\n el.setSelectionRange(position, position)\n }, 0)\n }\n el.dispatchEvent(event('input'))\n }\n\n var newDisplay = masker(el.value, config.mask, true, config.tokens)\n if (newDisplay !== el.value) {\n el.value = newDisplay\n el.dispatchEvent(event('input'))\n }\n}\n","import Btn from './Btn.vue';\nimport Checkbox from './Checkbox.vue';\nimport Dropdown from './Dropdown.vue';\nimport Field from './Field.vue';\nimport Icon from './Icon.vue';\nimport Lightswitch from './Lightswitch.vue';\nimport Radio from './Radio.vue';\nimport Spinner from './Spinner.vue';\nimport Textbox from './Textbox.vue';\n\nconst CraftComponents = {\n Btn,\n Checkbox,\n Dropdown,\n Field,\n Icon,\n Lightswitch,\n Radio,\n Spinner,\n Textbox,\n};\n\nexport default CraftComponents;","import CraftIcons from './plugins/icons'\nimport CraftComponents from './components'\n\nimport './sass/styles.scss'\n\nexport default {\n install(Vue) {\n Vue.use(CraftIcons)\n\n // Craft Components\n Object.keys(CraftComponents).forEach(name => {\n Vue.component(name, CraftComponents[name])\n })\n }\n}\n"],"names":["install","document","iconsWrapper","createElement","style","display","innerHTML","body","insertBefore","firstChild","maskit","value","mask","masked","tokens","iMask","iValue","output","length","masker","cMask","cValue","escape","pattern","test","transform","restOutput","Array","isArray","masks","sort","a","b","i","currentMask","nextMask","dynamicMask","module","v","toLocaleUpperCase","toLocaleLowerCase","event","name","evt","createEvent","initEvent","CraftComponents","Btn","Checkbox","Dropdown","Field","Icon","Lightswitch","Radio","Spinner","Textbox","el","binding","config","tagName","els","getElementsByTagName","Error","oninput","isTrusted","position","selectionEnd","digit","charAt","activeElement","setSelectionRange","setTimeout","dispatchEvent","newDisplay","Vue","use","CraftIcons","Object","keys","forEach","component"],"mappings":"gMAEe,CACXA,sBAC2B,oBAAbC,SAAyB,KACzBC,EAAeD,SAASE,cAAc,OAC5CD,EAAaE,MAAMC,QAAU,OAC7BH,EAAaI,gynBACbL,SAASM,KAAKC,aAAaN,EAAcD,SAASM,KAAKE,6oPCRpD,SAASC,EAAQC,EAAOC,OAAMC,6DAAeC,yCAC1DH,EAAQA,GAAS,GACjBC,EAAOA,GAAQ,WACXG,EAAQ,EACRC,EAAS,EACTC,EAAS,GACNF,EAAQH,EAAKM,QAAUF,EAASL,EAAMO,QAAQ,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AAAA,EACAC,MAAAA,EACAC,KAAAA,EACAC,YAAAA,EACAC,MAAAA,EACAC,QAAAA,EACAC,6hDDTW,SAAUC,EAAIC,OACvBC,EAASD,EAAQ9C,UACjBgB,MAAMC,QAAQ8B,IAA6B,iBAAXA,KAClCA,EAAS,CACP9C,KAAM8C,EACN5C,OAAQA,IAI2B,UAAnC0C,EAAGG,QAAQpB,oBAAiC,KAC1CqB,EAAMJ,EAAGK,qBAAqB,YACf,IAAfD,EAAI1C,aACA,IAAI4C,MAAM,4CAA8CF,EAAI1C,QAElEsC,EAAKI,EAAI,GAIbJ,EAAGO,QAAU,SAAUpB,MAChBA,EAAIqB,eAeLC,EAAWT,EAAGU,aAEdC,EAAQX,EAAG7C,MAAMsD,EAAS,OAC9BT,EAAG7C,MAAQQ,EAAOqC,EAAG7C,MAAO+C,EAAO9C,MAAM,EAAM8C,EAAO5C,QAE/CmD,EAAWT,EAAG7C,MAAMO,QAAUsC,EAAG7C,MAAMyD,OAAOH,EAAS,KAAOE,GACnEF,IAEET,IAAOvD,SAASoE,gBAClBb,EAAGc,kBAAkBL,EAAUA,GAC/BM,WAAW,WACTf,EAAGc,kBAAkBL,EAAUA,IAC9B,IAELT,EAAGgB,cAAc/B,EAAM,gBAGrBgC,EAAatD,EAAOqC,EAAG7C,MAAO+C,EAAO9C,MAAM,EAAM8C,EAAO5C,QACxD2D,IAAejB,EAAG7C,QACpB6C,EAAG7C,MAAQ8D,EACXjB,EAAGgB,cAAc/B,EAAM,pp9DE3DZ,CACXzC,iBAAQ0E,GACJA,EAAIC,IAAIC,GAGRC,OAAOC,KAAKhC,GAAiBiC,QAAQ,SAAArC,GACjCgC,EAAIM,UAAUtC,EAAMI,EAAgBJ"} \ No newline at end of file +{"version":3,"file":"craftui.min.js","sources":["../src/plugins/icons.js","../node_modules/vue-the-mask/src/maskit.js","../node_modules/vue-the-mask/src/masker.js","../node_modules/vue-the-mask/src/dynamic-mask.js","../node_modules/vue-the-mask/src/tokens.js","../node_modules/vue-the-mask/src/directive.js","../src/components/index.js","../src/index.js"],"sourcesContent":["import iconsSvg from '../sprites/icons.svg'\n\nexport default {\n install () {\n if(typeof document !== 'undefined'){\n const iconsWrapper = document.createElement('div')\n iconsWrapper.style.display = 'none'\n iconsWrapper.innerHTML = iconsSvg\n document.body.insertBefore(iconsWrapper, document.body.firstChild)\n }\n },\n}","export default function maskit (value, mask, masked = true, tokens) {\n value = value || ''\n mask = mask || ''\n var iMask = 0\n var iValue = 0\n var output = ''\n while (iMask < mask.length && iValue < value.length) {\n var cMask = mask[iMask]\n var masker = tokens[cMask]\n var cValue = value[iValue]\n if (masker && !masker.escape) {\n if (masker.pattern.test(cValue)) {\n \toutput += masker.transform ? masker.transform(cValue) : cValue\n iMask++\n }\n iValue++\n } else {\n if (masker && masker.escape) {\n iMask++ // take the next mask char and treat it as char\n cMask = mask[iMask]\n }\n if (masked) output += cMask\n if (cValue === cMask) iValue++ // user typed the same char\n iMask++\n }\n }\n\n // fix mask that ends with a char: (#)\n var restOutput = ''\n while (iMask < mask.length && masked) {\n var cMask = mask[iMask]\n if (tokens[cMask]) {\n restOutput = ''\n break\n }\n restOutput += cMask\n iMask++\n }\n\n return output + restOutput\n}\n","import maskit from './maskit'\nimport dynamicMask from './dynamic-mask'\n// Facade to maskit/dynamicMask when mask is String or Array\nexport default function (value, mask, masked = true, tokens) {\n return Array.isArray(mask)\n ? dynamicMask(maskit, mask, tokens)(value, mask, masked, tokens)\n : maskit(value, mask, masked, tokens)\n}\n","export default function dynamicMask (maskit, masks, tokens) {\n masks = masks.sort((a, b) => a.length - b.length)\n return function (value, mask, masked = true) {\n var i = 0\n while (i < masks.length) {\n var currentMask = masks[i]\n i++\n var nextMask = masks[i]\n if (! (nextMask && maskit(value, nextMask, true, tokens).length > currentMask.length) ) {\n return maskit(value, currentMask, masked, tokens)\n }\n }\n return '' // empty masks\n }\n}\n","module.exports = {\n '#': {pattern: /\\d/},\n 'X': {pattern: /[0-9a-zA-Z]/},\n 'S': {pattern: /[a-zA-Z]/},\n 'A': {pattern: /[a-zA-Z]/, transform: v => v.toLocaleUpperCase()},\n 'a': {pattern: /[a-zA-Z]/, transform: v => v.toLocaleLowerCase()},\n '!': {escape: true}\n}\n\n// https://github.com/fernandofleury/vanilla-masker/blob/master/lib/vanilla-masker.js\n// DIGIT = \"9\",\n// ALPHA = \"A\",\n// ALPHANUM = \"S\"\n\n// https://github.com/niksmr/vue-masked-input\n// 1 - number\n// a - letter\n// A - letter, forced to upper case when entered\n// * - alphanumeric\n// # - alphanumeric, forced to upper case when entered\n// + - any character\n\n// https://github.com/probil/v-mask\n// #\tNumber (0-9)\n// A\tLetter in any case (a-z,A-Z)\n// N\tNumber or letter\n// X\tAny symbol\n\n// https://github.com/igorescobar/jQuery-Mask-Plugin/blob/master/src/jquery.mask.js#L518\n// '0': {pattern: /\\d/},\n// '9': {pattern: /\\d/, optional: true},\n// '#': {pattern: /\\d/, recursive: true},\n// 'A': {pattern: /[a-zA-Z0-9]/},\n// 'S': {pattern: /[a-zA-Z]/}\n\n// https://github.com/the-darc/string-mask\n// 0\tAny numbers\n// 9\tAny numbers (Optional)\n// #\tAny numbers (recursive)\n// A\tAny alphanumeric character\n// a\tAny alphanumeric character (Optional) Not implemented yet\n// S\tAny letter\n// U\tAny letter (All lower case character will be mapped to uppercase)\n// L\tAny letter (All upper case character will be mapped to lowercase)\n// $\tEscape character, used to escape any of the special formatting characters.\n","import masker from './masker'\nimport tokens from './tokens'\n\n// https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Creating_and_triggering_events#The_old-fashioned_way\nfunction event (name) {\n var evt = document.createEvent('Event')\n evt.initEvent(name, true, true)\n return evt\n}\n\nexport default function (el, binding) {\n var config = binding.value\n if (Array.isArray(config) || typeof config === 'string') {\n config = {\n mask: config,\n tokens: tokens\n }\n }\n\n if (el.tagName.toLocaleUpperCase() !== 'INPUT') {\n var els = el.getElementsByTagName('input')\n if (els.length !== 1) {\n throw new Error(\"v-mask directive requires 1 input, found \" + els.length)\n } else {\n el = els[0]\n }\n }\n\n el.oninput = function (evt) {\n if (!evt.isTrusted) return // avoid infinite loop\n /* other properties to try to diferentiate InputEvent of Event (custom)\n InputEvent (native)\n cancelable: false\n isTrusted: true\n\n composed: true\n isComposing: false\n which: 0\n\n Event (custom)\n cancelable: true\n isTrusted: false\n */\n // by default, keep cursor at same position as before the mask\n var position = el.selectionEnd\n // save the character just inserted\n var digit = el.value[position-1]\n el.value = masker(el.value, config.mask, true, config.tokens)\n // if the digit was changed, increment position until find the digit again\n while (position < el.value.length && el.value.charAt(position-1) !== digit) {\n position++\n }\n if (el === document.activeElement) {\n el.setSelectionRange(position, position)\n setTimeout(function () {\n el.setSelectionRange(position, position)\n }, 0)\n }\n el.dispatchEvent(event('input'))\n }\n\n var newDisplay = masker(el.value, config.mask, true, config.tokens)\n if (newDisplay !== el.value) {\n el.value = newDisplay\n el.dispatchEvent(event('input'))\n }\n}\n","import Btn from './Btn.vue';\nimport Checkbox from './Checkbox.vue';\nimport Dropdown from './Dropdown.vue';\nimport Field from './Field.vue';\nimport Icon from './Icon.vue';\nimport Lightswitch from './Lightswitch.vue';\nimport Radio from './Radio.vue';\nimport Spinner from './Spinner.vue';\nimport Textbox from './Textbox.vue';\n\nconst CraftComponents = {\n Btn,\n Checkbox,\n Dropdown,\n Field,\n Icon,\n Lightswitch,\n Radio,\n Spinner,\n Textbox,\n};\n\nexport default CraftComponents;","import CraftIcons from './plugins/icons'\nimport CraftComponents from './components'\n\nimport './sass/styles.scss'\n\nexport default {\n install(Vue) {\n Vue.use(CraftIcons)\n\n // Craft Components\n Object.keys(CraftComponents).forEach(name => {\n Vue.component(name, CraftComponents[name])\n })\n }\n}\n"],"names":["install","document","iconsWrapper","createElement","style","display","innerHTML","body","insertBefore","firstChild","maskit","value","mask","masked","tokens","iMask","iValue","output","length","masker","cMask","cValue","escape","pattern","test","transform","restOutput","Array","isArray","masks","sort","a","b","i","currentMask","nextMask","dynamicMask","module","v","toLocaleUpperCase","toLocaleLowerCase","event","name","evt","createEvent","initEvent","CraftComponents","Btn","Checkbox","Dropdown","Field","Icon","Lightswitch","Radio","Spinner","Textbox","el","binding","config","tagName","els","getElementsByTagName","Error","oninput","isTrusted","position","selectionEnd","digit","charAt","activeElement","setSelectionRange","setTimeout","dispatchEvent","newDisplay","Vue","use","CraftIcons","Object","keys","forEach","component"],"mappings":"gMAEe,CACXA,sBAC2B,oBAAbC,SAAyB,KACzBC,EAAeD,SAASE,cAAc,OAC5CD,EAAaE,MAAMC,QAAU,OAC7BH,EAAaI,gynBACbL,SAASM,KAAKC,aAAaN,EAAcD,SAASM,KAAKE,opPCRpD,SAASC,EAAQC,EAAOC,OAAMC,6DAAeC,yCAC1DH,EAAQA,GAAS,GACjBC,EAAOA,GAAQ,WACXG,EAAQ,EACRC,EAAS,EACTC,EAAS,GACNF,EAAQH,EAAKM,QAAUF,EAASL,EAAMO,QAAQ,KAE/CC,EAASL,EADTM,EAAQR,EAAKG,IAEbM,EAASV,EAAMK,GACfG,IAAWA,EAAOG,QAChBH,EAAOI,QAAQC,KAAKH,KACvBJ,GAAUE,EAAOM,UAAYN,EAAOM,UAAUJ,GAAUA,EACvDN,KAEFC,MAEIG,GAAUA,EAAOG,SAEnBF,EAAQR,IADRG,IAGEF,IAAQI,GAAUG,GAClBC,IAAWD,GAAOJ,IACtBD,aAKAW,EAAa,GACVX,EAAQH,EAAKM,QAAUL,GAAQ,KAChCO,KACAN,EADAM,EAAQR,EAAKG,IACE,CACjBW,EAAa,SAGfA,GAAcN,EACdL,WAGKE,EAASS,ECpCH,WAAUf,EAAOC,OAAMC,6DAAeC,gDAC5Ca,MAAMC,QAAQhB,YCJcF,EAAQmB,EAAOf,UAClDe,EAAQA,EAAMC,KAAK,SAACC,EAAGC,UAAMD,EAAEb,OAASc,EAAEd,SACnC,SAAUP,EAAOC,WAAMC,6DACxBoB,EAAI,EACDA,EAAIJ,EAAMX,QAAQ,KACnBgB,EAAcL,EAAMI,GAEpBE,EAAW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EAAGc,kBAAkBL,EAAUA,GAC/BM,WAAW,WACTf,EAAGc,kBAAkBL,EAAUA,IAC9B,IAELT,EAAGgB,cAAc/B,EAAM,gBAGrBgC,EAAatD,EAAOqC,EAAG7C,MAAO+C,EAAO9C,MAAM,EAAM8C,EAAO5C,QACxD2D,IAAejB,EAAG7C,QACpB6C,EAAG7C,MAAQ8D,EACXjB,EAAGgB,cAAc/B,EAAM,pp9DE3DZ,CACXzC,iBAAQ0E,GACJA,EAAIC,IAAIC,GAGRC,OAAOC,KAAKhC,GAAiBiC,QAAQ,SAAArC,GACjCgC,EAAIM,UAAUtC,EAAMI,EAAgBJ"} \ No newline at end of file From 2f1c294bce0c60dd44fc12605b87f6737ded36b3 Mon Sep 17 00:00:00 2001 From: Benjamin David Date: Fri, 5 Apr 2019 12:13:22 +0200 Subject: [PATCH 3/3] Craft UI 0.3.4 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 911f56d..b0e2d2a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@pixelandtonic/craftui", - "version": "0.3.3", + "version": "0.3.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 608a33a..44244b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pixelandtonic/craftui", - "version": "0.3.3", + "version": "0.3.4", "main": "dist/craftui.js", "unpkg": "dist/craftui.min.js", "module": "dist/craftui.es.js",