slim-select 2.1.0 → 2.2.1
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/README.md +8 -0
- package/dist/render.d.ts +9 -2
- package/dist/select.d.ts +6 -6
- package/dist/settings.d.ts +0 -3
- package/dist/slimselect.cjs.js +152 -51
- package/dist/slimselect.css +1 -1
- package/dist/slimselect.css.map +1 -1
- package/dist/slimselect.es.js +152 -51
- package/dist/slimselect.global.js +152 -51
- package/dist/slimselect.js +152 -51
- package/dist/slimselect.min.js +1 -1
- package/dist/slimselect.umd.js +152 -51
- package/dist/slimselect.umd.min.js +1 -1
- package/dist/store.d.ts +5 -0
- package/package.json +1 -3
- package/src/slim-select/index.ts +3 -1
- package/src/slim-select/render.ts +167 -34
- package/src/slim-select/select.ts +35 -27
- package/src/slim-select/settings.ts +0 -4
- package/src/slim-select/slimselect.scss +112 -11
- package/src/slim-select/store.ts +19 -1
- package/src/vue/README.md +48 -0
- package/src/vue/dist/slim-select/helpers.d.ts +4 -0
- package/src/vue/dist/slim-select/index.d.ts +45 -0
- package/src/vue/dist/slim-select/render.d.ts +116 -0
- package/src/vue/dist/slim-select/select.d.ts +33 -0
- package/src/vue/dist/slim-select/settings.d.ts +30 -0
- package/src/vue/dist/slim-select/store.d.ts +76 -0
- package/src/vue/dist/slimselectvue.es.js +152 -51
- package/src/vue/dist/slimselectvue.global.js +152 -51
- package/src/vue/dist/slimselectvue.ssr.js +152 -51
- package/src/vue/dist/vue/hello.d.ts +2 -0
- package/src/vue/dist/vue/slimselect.vue.d.ts +286 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/code/cache/05b27cf262de47962f4beeba3d4b4f67616bdf24 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/code/cache/26c90bc22e366b540ff134ba7de2ab3715155a20 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/code/cache/7a2b654bed9256f52421aec7d04cd8553486335b +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/code/cache/80fdd1aafff88316e6a7f63509fb7304c94ae6d3 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/code/cache/88c6c8bf5346a961efcdff848fba6e3f2d24b26c +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/code/cache/b2f217f16a7744eb13543dc90442443538b724b8 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/code/cache/be60813c21c2fbc627fcf99127ca2a96a3065fba +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/semanticDiagnostics/cache/05b27cf262de47962f4beeba3d4b4f67616bdf24 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/semanticDiagnostics/cache/26c90bc22e366b540ff134ba7de2ab3715155a20 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/semanticDiagnostics/cache/7a2b654bed9256f52421aec7d04cd8553486335b +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/semanticDiagnostics/cache/80fdd1aafff88316e6a7f63509fb7304c94ae6d3 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/semanticDiagnostics/cache/88c6c8bf5346a961efcdff848fba6e3f2d24b26c +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/semanticDiagnostics/cache/a8a4a8a1b06b6c8069e965f4a30a4b42013b830a +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/semanticDiagnostics/cache/b2f217f16a7744eb13543dc90442443538b724b8 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/semanticDiagnostics/cache/be60813c21c2fbc627fcf99127ca2a96a3065fba +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/syntacticDiagnostics/cache/05b27cf262de47962f4beeba3d4b4f67616bdf24 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/syntacticDiagnostics/cache/26c90bc22e366b540ff134ba7de2ab3715155a20 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/syntacticDiagnostics/cache/7a2b654bed9256f52421aec7d04cd8553486335b +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/syntacticDiagnostics/cache/80fdd1aafff88316e6a7f63509fb7304c94ae6d3 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/syntacticDiagnostics/cache/88c6c8bf5346a961efcdff848fba6e3f2d24b26c +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/syntacticDiagnostics/cache/a8a4a8a1b06b6c8069e965f4a30a4b42013b830a +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/syntacticDiagnostics/cache/b2f217f16a7744eb13543dc90442443538b724b8 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/syntacticDiagnostics/cache/be60813c21c2fbc627fcf99127ca2a96a3065fba +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/types/cache/068e7904209e205518dbc9726d632bbaf28bfc55 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/types/cache/06b75ecfe63fda3fcfaa42593fa1f22167f3a9f8 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/types/cache/2aa9d56fc4a9661ee8e3de277da5ee3f960713de +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/types/cache/2c58b356be1a9572c64469d50a7a25c46f94aaeb +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/types/cache/36d3fb579feb4cad7a15b7a2f509f338caf72fa0 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/types/cache/388b297c3f73fcba25b8174fda975235e5d12b5a +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/types/cache/40e43895ec63e1e25aa7e278ca1e8c3adefc815d +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/types/cache/645e188194be07518ebbb0a5b4304f5170fee599 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/types/cache/65515bf3a44aaf1306f589073f1c8b98be747f5f +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/types/cache/6a357fe7542e07f7919ea9b22401027dd1e8a0c1 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/types/cache/72087cac150d02ed6d19e37d6f1436566d5ac798 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/types/cache/9ff120b6426a4c7a03236428f26a92772586c3e5 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/types/cache/a6917de673fc74a6cfca5133913982e54e58a7fb +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/types/cache/aa4aee440d13b06b4bb05c36eee326513aa6c040 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/types/cache/b02a4d0c40fac4c7f9ea7acd7944ee8844afcedf +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/types/cache/b21a02b948881426bc4dcff649fc4fba07ca34d2 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/types/cache/c10c11f9c426095ab3f504dd8b7622ad7ba7c8ed +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_1e8d68e0803222688213218fda500c83f6c6476e/types/cache/dc186595636217ded2d4a4cfbb789d68ea485b6b +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/code/cache/05b27cf262de47962f4beeba3d4b4f67616bdf24 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/code/cache/26c90bc22e366b540ff134ba7de2ab3715155a20 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/code/cache/7a2b654bed9256f52421aec7d04cd8553486335b +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/code/cache/80fdd1aafff88316e6a7f63509fb7304c94ae6d3 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/code/cache/88c6c8bf5346a961efcdff848fba6e3f2d24b26c +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/code/cache/b2f217f16a7744eb13543dc90442443538b724b8 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/code/cache/be60813c21c2fbc627fcf99127ca2a96a3065fba +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/semanticDiagnostics/cache/05b27cf262de47962f4beeba3d4b4f67616bdf24 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/semanticDiagnostics/cache/26c90bc22e366b540ff134ba7de2ab3715155a20 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/semanticDiagnostics/cache/7a2b654bed9256f52421aec7d04cd8553486335b +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/semanticDiagnostics/cache/80fdd1aafff88316e6a7f63509fb7304c94ae6d3 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/semanticDiagnostics/cache/88c6c8bf5346a961efcdff848fba6e3f2d24b26c +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/semanticDiagnostics/cache/a8a4a8a1b06b6c8069e965f4a30a4b42013b830a +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/semanticDiagnostics/cache/b2f217f16a7744eb13543dc90442443538b724b8 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/semanticDiagnostics/cache/be60813c21c2fbc627fcf99127ca2a96a3065fba +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/syntacticDiagnostics/cache/05b27cf262de47962f4beeba3d4b4f67616bdf24 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/syntacticDiagnostics/cache/26c90bc22e366b540ff134ba7de2ab3715155a20 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/syntacticDiagnostics/cache/7a2b654bed9256f52421aec7d04cd8553486335b +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/syntacticDiagnostics/cache/80fdd1aafff88316e6a7f63509fb7304c94ae6d3 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/syntacticDiagnostics/cache/88c6c8bf5346a961efcdff848fba6e3f2d24b26c +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/syntacticDiagnostics/cache/a8a4a8a1b06b6c8069e965f4a30a4b42013b830a +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/syntacticDiagnostics/cache/b2f217f16a7744eb13543dc90442443538b724b8 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/syntacticDiagnostics/cache/be60813c21c2fbc627fcf99127ca2a96a3065fba +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/types/cache/068e7904209e205518dbc9726d632bbaf28bfc55 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/types/cache/06b75ecfe63fda3fcfaa42593fa1f22167f3a9f8 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/types/cache/2aa9d56fc4a9661ee8e3de277da5ee3f960713de +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/types/cache/2c58b356be1a9572c64469d50a7a25c46f94aaeb +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/types/cache/36d3fb579feb4cad7a15b7a2f509f338caf72fa0 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/types/cache/388b297c3f73fcba25b8174fda975235e5d12b5a +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/types/cache/40e43895ec63e1e25aa7e278ca1e8c3adefc815d +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/types/cache/645e188194be07518ebbb0a5b4304f5170fee599 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/types/cache/65515bf3a44aaf1306f589073f1c8b98be747f5f +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/types/cache/6a357fe7542e07f7919ea9b22401027dd1e8a0c1 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/types/cache/72087cac150d02ed6d19e37d6f1436566d5ac798 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/types/cache/9ff120b6426a4c7a03236428f26a92772586c3e5 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/types/cache/a6917de673fc74a6cfca5133913982e54e58a7fb +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/types/cache/aa4aee440d13b06b4bb05c36eee326513aa6c040 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/types/cache/b02a4d0c40fac4c7f9ea7acd7944ee8844afcedf +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/types/cache/b21a02b948881426bc4dcff649fc4fba07ca34d2 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/types/cache/c10c11f9c426095ab3f504dd8b7622ad7ba7c8ed +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_2e1b3e4caed5e16ec3a087e96a7fe6e4f5ea8a82/types/cache/dc186595636217ded2d4a4cfbb789d68ea485b6b +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/code/cache/05b27cf262de47962f4beeba3d4b4f67616bdf24 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/code/cache/26c90bc22e366b540ff134ba7de2ab3715155a20 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/code/cache/7a2b654bed9256f52421aec7d04cd8553486335b +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/code/cache/80fdd1aafff88316e6a7f63509fb7304c94ae6d3 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/code/cache/88c6c8bf5346a961efcdff848fba6e3f2d24b26c +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/code/cache/b2f217f16a7744eb13543dc90442443538b724b8 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/code/cache/be60813c21c2fbc627fcf99127ca2a96a3065fba +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/semanticDiagnostics/cache/05b27cf262de47962f4beeba3d4b4f67616bdf24 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/semanticDiagnostics/cache/26c90bc22e366b540ff134ba7de2ab3715155a20 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/semanticDiagnostics/cache/7a2b654bed9256f52421aec7d04cd8553486335b +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/semanticDiagnostics/cache/80fdd1aafff88316e6a7f63509fb7304c94ae6d3 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/semanticDiagnostics/cache/88c6c8bf5346a961efcdff848fba6e3f2d24b26c +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/semanticDiagnostics/cache/a8a4a8a1b06b6c8069e965f4a30a4b42013b830a +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/semanticDiagnostics/cache/b2f217f16a7744eb13543dc90442443538b724b8 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/semanticDiagnostics/cache/be60813c21c2fbc627fcf99127ca2a96a3065fba +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/syntacticDiagnostics/cache/05b27cf262de47962f4beeba3d4b4f67616bdf24 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/syntacticDiagnostics/cache/26c90bc22e366b540ff134ba7de2ab3715155a20 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/syntacticDiagnostics/cache/7a2b654bed9256f52421aec7d04cd8553486335b +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/syntacticDiagnostics/cache/80fdd1aafff88316e6a7f63509fb7304c94ae6d3 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/syntacticDiagnostics/cache/88c6c8bf5346a961efcdff848fba6e3f2d24b26c +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/syntacticDiagnostics/cache/a8a4a8a1b06b6c8069e965f4a30a4b42013b830a +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/syntacticDiagnostics/cache/b2f217f16a7744eb13543dc90442443538b724b8 +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/syntacticDiagnostics/cache/be60813c21c2fbc627fcf99127ca2a96a3065fba +1 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/types/cache/068e7904209e205518dbc9726d632bbaf28bfc55 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/types/cache/06b75ecfe63fda3fcfaa42593fa1f22167f3a9f8 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/types/cache/2aa9d56fc4a9661ee8e3de277da5ee3f960713de +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/types/cache/2c58b356be1a9572c64469d50a7a25c46f94aaeb +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/types/cache/36d3fb579feb4cad7a15b7a2f509f338caf72fa0 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/types/cache/388b297c3f73fcba25b8174fda975235e5d12b5a +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/types/cache/40e43895ec63e1e25aa7e278ca1e8c3adefc815d +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/types/cache/645e188194be07518ebbb0a5b4304f5170fee599 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/types/cache/65515bf3a44aaf1306f589073f1c8b98be747f5f +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/types/cache/6a357fe7542e07f7919ea9b22401027dd1e8a0c1 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/types/cache/72087cac150d02ed6d19e37d6f1436566d5ac798 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/types/cache/9ff120b6426a4c7a03236428f26a92772586c3e5 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/types/cache/a6917de673fc74a6cfca5133913982e54e58a7fb +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/types/cache/aa4aee440d13b06b4bb05c36eee326513aa6c040 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/types/cache/b02a4d0c40fac4c7f9ea7acd7944ee8844afcedf +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/types/cache/b21a02b948881426bc4dcff649fc4fba07ca34d2 +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/types/cache/c10c11f9c426095ab3f504dd8b7622ad7ba7c8ed +0 -0
- package/src/vue/node_modules/.cache/rollup-plugin-typescript2/rpt2_6eed9deea87cc005768ee2b80168901d42458ef9/types/cache/dc186595636217ded2d4a4cfbb789d68ea485b6b +0 -0
- package/src/vue/package.json +4 -4
- package/src/vue/rollup.config.mjs +3 -3
- package/src/vue/tsconfig.json +3 -3
- package/tsconfig.json +9 -2
- package/.github/FUNDING.yml +0 -12
- package/.github/ISSUE_TEMPLATE/issue-report.md +0 -14
- package/.vscode/extensions.json +0 -3
- package/.vscode/settings.json +0 -17
- package/docs/404.html +0 -42
- package/docs/CNAME +0 -1
- package/docs/assets/check-mark.svg +0 -6
- package/docs/assets/data.js +0 -59
- package/docs/assets/home.css +0 -1
- package/docs/assets/home.js +0 -1
- package/docs/assets/index.css +0 -1
- package/docs/assets/index.js +0 -16
- package/docs/assets/index2.js +0 -274
- package/docs/assets/index3.js +0 -135
- package/docs/assets/index4.js +0 -60
- package/docs/assets/index5.js +0 -147
- package/docs/assets/install.js +0 -34
- package/docs/assets/selects.js +0 -55
- package/docs/favicon.ico +0 -0
- package/docs/index.html +0 -36
- package/public/404.html +0 -42
- package/public/CNAME +0 -1
- package/public/favicon.ico +0 -0
- package/slimselect.gif +0 -0
- package/src/docs/app.vue +0 -227
- package/src/docs/assets/images/check-mark.svg +0 -6
- package/src/docs/assets/images/chrome.svg +0 -22
- package/src/docs/assets/images/firefox.svg +0 -58
- package/src/docs/assets/images/github.png +0 -0
- package/src/docs/assets/images/ie.svg +0 -11
- package/src/docs/assets/images/npm.png +0 -0
- package/src/docs/assets/images/opera.svg +0 -15
- package/src/docs/assets/images/safari.svg +0 -22
- package/src/docs/assets/scss/_variables.scss +0 -26
- package/src/docs/assets/scss/alert.scss +0 -12
- package/src/docs/assets/scss/animations.scss +0 -8
- package/src/docs/assets/scss/button.scss +0 -21
- package/src/docs/assets/scss/index.scss +0 -8
- package/src/docs/assets/scss/input.scss +0 -3
- package/src/docs/assets/scss/layout.scss +0 -250
- package/src/docs/assets/scss/misc.scss +0 -162
- package/src/docs/assets/scss/prism.scss +0 -157
- package/src/docs/env.d.ts +0 -13
- package/src/docs/main.ts +0 -27
- package/src/docs/pages/data.vue +0 -130
- package/src/docs/pages/events/addable.vue +0 -95
- package/src/docs/pages/events/before_after_change.vue +0 -154
- package/src/docs/pages/events/before_after_open_close.vue +0 -122
- package/src/docs/pages/events/error.vue +0 -59
- package/src/docs/pages/events/index.vue +0 -33
- package/src/docs/pages/events/search.vue +0 -155
- package/src/docs/pages/events/search_filter.vue +0 -45
- package/src/docs/pages/frameworks/index.vue +0 -18
- package/src/docs/pages/frameworks/vue.vue +0 -405
- package/src/docs/pages/home.vue +0 -194
- package/src/docs/pages/install.vue +0 -105
- package/src/docs/pages/methods/destroy.vue +0 -66
- package/src/docs/pages/methods/enable_disable.vue +0 -70
- package/src/docs/pages/methods/get_data.vue +0 -82
- package/src/docs/pages/methods/get_selected.vue +0 -78
- package/src/docs/pages/methods/index.vue +0 -36
- package/src/docs/pages/methods/open_close.vue +0 -63
- package/src/docs/pages/methods/search.vue +0 -62
- package/src/docs/pages/methods/set_data.vue +0 -106
- package/src/docs/pages/methods/set_selected.vue +0 -70
- package/src/docs/pages/selects.vue +0 -213
- package/src/docs/pages/settings/always_open.vue +0 -88
- package/src/docs/pages/settings/close_on_select.vue +0 -69
- package/src/docs/pages/settings/content_location.vue +0 -64
- package/src/docs/pages/settings/content_position.vue +0 -86
- package/src/docs/pages/settings/css.vue +0 -73
- package/src/docs/pages/settings/data_attributes.vue +0 -39
- package/src/docs/pages/settings/deselect.vue +0 -69
- package/src/docs/pages/settings/display.vue +0 -88
- package/src/docs/pages/settings/hide_selected.vue +0 -73
- package/src/docs/pages/settings/html.vue +0 -86
- package/src/docs/pages/settings/index.vue +0 -73
- package/src/docs/pages/settings/mandatory.vue +0 -91
- package/src/docs/pages/settings/min_max.vue +0 -61
- package/src/docs/pages/settings/open_position.vue +0 -60
- package/src/docs/pages/settings/placeholder.vue +0 -72
- package/src/docs/pages/settings/search.vue +0 -140
- package/src/docs/pages/settings/select.vue +0 -32
- package/src/docs/pages/settings/select_by_group.vue +0 -46
- package/src/docs/pages/settings/show_tooltip.vue +0 -44
- package/src/docs/pages/settings/styles.vue +0 -51
- package/src/docs/router.ts +0 -50
package/docs/assets/index5.js
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import{d as m,S as O,_,o as c,c as d,l as y,g,a as e,h as s,w as i,f as n,t as r,i as C,F as S,r as f}from"./index.js";const b=m({name:"SlimSelect",props:{data:{type:Array},settings:{type:Object},events:{type:Object}},data(){return{slim:null}},mounted(){let t={select:this.$refs.slim};this.data&&(t.data=this.data),this.settings&&(t.settings=this.settings),this.events&&(t.events=this.events),this.slim=new O(t)},beforeUnmount(){this.slim&&this.slim.destroy()},watch:{data:{handler:function(t){this.slim&&this.slim.setData(t)},deep:!0}},methods:{getSlimSelect(){return this.slim}}}),w={ref:"slim"};function D(t,o,p,u,h,v){return c(),d("select",w,[y(t.$slots,"default")],512)}const $=_(b,[["render",D]]),V=m({name:"Vue",components:{SlimSelect:$},data(){return{settings:{showSearch:!1},data:[{value:"value1",text:"Value 1"},{value:"value2",text:"Value 2"},{value:"value3",text:"Value 3"}],dynamicData:[],afterChangeData:[],events:{afterChange:this.afterChange}}},mounted(){},methods:{changeData(){this.$refs.dataSingle.getSlimSelect().open(),this.$refs.dataMultiple.getSlimSelect().open(),setTimeout(()=>{this.data=[{value:"value4",text:"Value 4"},{value:"value5",text:"Value 5"},{value:"value6",text:"Value 6"}]},500)},afterChange(t){this.afterChangeData=t},randomDynamicData(){fetch("https://api.gofakeit.com/json",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:"array",rowcount:20,indent:!1,fields:[{name:"key",function:"password",params:{lower:!0,upper:!0,numeric:!0,special:!1,space:!1,length:10}},{name:"first_name",function:"firstname",params:{}},{name:"last_name",function:"lastname",params:{}},{name:"selected",function:"number",params:{min:1,max:10}}]})}).then(t=>t.json()).then(t=>{this.dynamicData=t.map(o=>({id:o.id,text:`${o.first_name} ${o.last_name}`,value:`${o.first_name} ${o.last_name}`,selected:o.selected>=8}))})}}}),j={id:"vue",class:"content"},x=e("h2",{class:"header"},"Vue",-1),k=e("h3",null,"Install",-1),M=e("p",null,"The vue component is in a sub package under SlimSelect",-1),T=e("pre",null,[n(" "),e("code",{class:"language-bash"},`
|
|
2
|
-
npm install @slim-select/vue
|
|
3
|
-
`),n(`
|
|
4
|
-
`)],-1),N=e("br",null,null,-1),B=e("h3",null,"Simple example",-1),E={class:"row"},F=e("option",{value:"1"},"Option 1",-1),R=e("option",{value:"2"},"Option 2",-1),A=e("option",{value:"3"},"Option 3",-1),I=e("option",{value:"1"},"Option 1",-1),J=e("option",{value:"2"},"Option 2",-1),L=e("option",{value:"3"},"Option 3",-1),P=e("pre",null,[n(" "),e("code",{class:"language-javascript"},`
|
|
5
|
-
import { defineComponent } from 'vue'
|
|
6
|
-
import SlimSelect from '@slim-select/vue'
|
|
7
|
-
|
|
8
|
-
export default defineComponent({
|
|
9
|
-
components: {
|
|
10
|
-
SlimSelect,
|
|
11
|
-
},
|
|
12
|
-
})
|
|
13
|
-
`),n(`
|
|
14
|
-
`)],-1),U=e("pre",null,[n(" "),e("code",{class:"language-html"},`
|
|
15
|
-
<SlimSelect>
|
|
16
|
-
<option value="1">Option 1</option>
|
|
17
|
-
<option value="2">Option 2</option>
|
|
18
|
-
<option value="3">Option 3</option>
|
|
19
|
-
</SlimSelect>
|
|
20
|
-
|
|
21
|
-
<SlimSelect multiple>
|
|
22
|
-
<option value="1">Option 1</option>
|
|
23
|
-
<option value="2">Option 2</option>
|
|
24
|
-
<option value="3">Option 3</option>
|
|
25
|
-
</SlimSelect>
|
|
26
|
-
`),n(`
|
|
27
|
-
`)],-1),Y=e("br",null,null,-1),q=e("div",{class:"separator"},null,-1),z=e("br",null,null,-1),G=e("h3",null,"Settings",-1),H=e("p",null," Settings just like its passed as an object in normal SlimSelct will also be passed as an object to the component prop ",-1),K={class:"row"},Q=e("option",{value:"1"},"Option 1",-1),W=e("option",{value:"2"},"Option 2",-1),X=e("option",{value:"3"},"Option 3",-1),Z=e("option",{value:"1"},"Option 1",-1),ee=e("option",{value:"2"},"Option 2",-1),te=e("option",{value:"3"},"Option 3",-1),ne=e("pre",null,[n(" "),e("code",{class:"language-javascript"},`
|
|
28
|
-
import { defineComponent } from 'vue'
|
|
29
|
-
import SlimSelect from '@slim-select/vue'
|
|
30
|
-
|
|
31
|
-
export default defineComponent({
|
|
32
|
-
components: {
|
|
33
|
-
SlimSelect,
|
|
34
|
-
},
|
|
35
|
-
data() {
|
|
36
|
-
return {
|
|
37
|
-
settings: {
|
|
38
|
-
showSearch: false,
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
})
|
|
43
|
-
`),n(`
|
|
44
|
-
`)],-1),oe=e("pre",null,[n(" "),e("code",{class:"language-html"},`
|
|
45
|
-
<SlimSelect :settings="settings">
|
|
46
|
-
<option value="1">Option 1</option>
|
|
47
|
-
<option value="2">Option 2</option>
|
|
48
|
-
<option value="3">Option 3</option>
|
|
49
|
-
</SlimSelect>
|
|
50
|
-
|
|
51
|
-
<SlimSelect :settings="settings" multiple>
|
|
52
|
-
<option value="1">Option 1</option>
|
|
53
|
-
<option value="2">Option 2</option>
|
|
54
|
-
<option value="3">Option 3</option>
|
|
55
|
-
</SlimSelect>
|
|
56
|
-
`),n(`
|
|
57
|
-
`)],-1),le=e("br",null,null,-1),ae=e("div",{class:"separator"},null,-1),se=e("br",null,null,-1),ie=e("h3",null,"Data",-1),ce=e("p",null," Data just like its passed as an array in normal SlimSelct will also be passed as an array to the component prop. ",-1),de=e("div",{class:"alert info"}," You may pass data as a prop if you would like. But you can also have reactive options that when options change the select will update as well. See Reactivity below for more info. ",-1),pe={class:"row"},ue=e("pre",null,[n(" "),e("code",{class:"language-javascript"},`
|
|
58
|
-
import { defineComponent } from 'vue'
|
|
59
|
-
import SlimSelect from '@slim-select/vue'
|
|
60
|
-
|
|
61
|
-
export default defineComponent({
|
|
62
|
-
components: {
|
|
63
|
-
SlimSelect,
|
|
64
|
-
},
|
|
65
|
-
data() {
|
|
66
|
-
return {
|
|
67
|
-
data: [
|
|
68
|
-
{ value: 'value1', text: 'Value 1' },
|
|
69
|
-
{ value: 'value2', text: 'Value 2' },
|
|
70
|
-
{ value: 'value3', text: 'Value 3' },
|
|
71
|
-
],
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
})
|
|
75
|
-
`),n(`
|
|
76
|
-
`)],-1),re=e("pre",null,[n(" "),e("code",{class:"language-html"},`
|
|
77
|
-
<SlimSelect :data="data" />
|
|
78
|
-
|
|
79
|
-
<SlimSelect :data="data" multiple />
|
|
80
|
-
`),n(`
|
|
81
|
-
`)],-1),me=e("br",null,null,-1),_e=e("div",{class:"separator"},null,-1),he=e("br",null,null,-1),ve=e("h3",null,"Events",-1),Se=e("p",null," Events just like its passed as an object in normal SlimSelct will also be passed as an object to the component prop. ",-1),fe={key:0},ge=e("strong",null,"afterChange:",-1),Oe={class:"row"},ye=e("option",{value:"1"},"Option 1",-1),Ce=e("option",{value:"2"},"Option 2",-1),be=e("option",{value:"3"},"Option 3",-1),we=e("option",{value:"1"},"Option 1",-1),De=e("option",{value:"2"},"Option 2",-1),$e=e("option",{value:"3"},"Option 3",-1),Ve=e("pre",null,[n(" "),e("code",{class:"language-javascript"},`
|
|
82
|
-
import { defineComponent } from 'vue'
|
|
83
|
-
import SlimSelect from '@slim-select/vue'
|
|
84
|
-
|
|
85
|
-
export default defineComponent({
|
|
86
|
-
components: {
|
|
87
|
-
SlimSelect,
|
|
88
|
-
},
|
|
89
|
-
data() {
|
|
90
|
-
return {
|
|
91
|
-
data: [],
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
methods: {
|
|
95
|
-
afterChange(newVal) {
|
|
96
|
-
console.log(newVal)
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
})
|
|
100
|
-
`),n(`
|
|
101
|
-
`)],-1),je=e("pre",null,[n(" "),e("code",{class:"language-html"},`
|
|
102
|
-
<SlimSelect :events="events">
|
|
103
|
-
<option value="1">Option 1</option>
|
|
104
|
-
<option value="2">Option 2</option>
|
|
105
|
-
<option value="3">Option 3</option>
|
|
106
|
-
</SlimSelect>
|
|
107
|
-
|
|
108
|
-
<SlimSelect :events="events" multiple>
|
|
109
|
-
<option value="1">Option 1</option>
|
|
110
|
-
<option value="2">Option 2</option>
|
|
111
|
-
<option value="3">Option 3</option>
|
|
112
|
-
</SlimSelect>
|
|
113
|
-
`),n(`
|
|
114
|
-
`)],-1),xe=e("br",null,null,-1),ke=e("div",{class:"separator"},null,-1),Me=e("br",null,null,-1),Te=e("h3",null,"Reactivity",-1),Ne=e("p",null," Slim select will look out for any options changes that happen to the select options and SlimSelect will update accordingly. This is done via mutation observers. ",-1),Be={class:"row"},Ee=["value","selected"],Fe=["value","selected"],Re=e("pre",null,[n(" "),e("code",{class:"language-javascript"},`
|
|
115
|
-
import { defineComponent } from 'vue'
|
|
116
|
-
import SlimSelect from '@slim-select/vue'
|
|
117
|
-
|
|
118
|
-
export default defineComponent({
|
|
119
|
-
components: {
|
|
120
|
-
SlimSelect,
|
|
121
|
-
},
|
|
122
|
-
data() {
|
|
123
|
-
return {
|
|
124
|
-
dynamicData: []
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
methods: {
|
|
128
|
-
changeData() {
|
|
129
|
-
this.dynamicData = [
|
|
130
|
-
{ id: 1, value: 1, text: 'Option 1', selected: true },
|
|
131
|
-
{ id: 2, value: 2, text: 'Option 2', selected: false },
|
|
132
|
-
{ id: 3, value: 3, text: 'Option 3', selected: false },
|
|
133
|
-
]
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
})
|
|
137
|
-
`),n(`
|
|
138
|
-
`)],-1),Ae=e("pre",null,[n(" "),e("code",{class:"language-html"},`
|
|
139
|
-
<SlimSelect :events="events">
|
|
140
|
-
<option v-for="d in dynamicData" :key="d.id" :value="d.value" :selected="d.selected">{{ d.text }}</option>
|
|
141
|
-
</SlimSelect>
|
|
142
|
-
|
|
143
|
-
<SlimSelect :events="events" multiple>
|
|
144
|
-
<option v-for="d in dynamicData" :value="d.value" :selected="d.selected">{{ d.text }}</option>
|
|
145
|
-
</SlimSelect>
|
|
146
|
-
`),n(`
|
|
147
|
-
`)],-1);function Ie(t,o,p,u,h,v){const l=g("SlimSelect");return c(),d("div",j,[x,k,M,T,N,B,e("div",E,[s(l,null,{default:i(()=>[F,R,A]),_:1}),s(l,{multiple:""},{default:i(()=>[I,J,L]),_:1})]),P,U,Y,q,z,G,H,e("div",K,[s(l,{settings:t.settings},{default:i(()=>[Q,W,X]),_:1},8,["settings"]),s(l,{settings:t.settings,multiple:""},{default:i(()=>[Z,ee,te]),_:1},8,["settings"])]),ne,oe,le,ae,se,ie,ce,de,e("div",pe,[e("div",{class:"btn info",onClick:o[0]||(o[0]=(...a)=>t.changeData&&t.changeData(...a))},"Change data"),s(l,{ref:"dataSingle",data:t.data},null,8,["data"]),s(l,{ref:"dataMultiple",data:t.data,multiple:""},null,8,["data"])]),ue,re,me,_e,he,ve,Se,t.afterChangeData.length?(c(),d("div",fe,[ge,n(" "+r(t.afterChangeData),1)])):C("",!0),e("div",Oe,[s(l,{events:t.events},{default:i(()=>[ye,Ce,be]),_:1},8,["events"]),s(l,{events:t.events,multiple:""},{default:i(()=>[we,De,$e]),_:1},8,["events"])]),Ve,je,xe,ke,Me,Te,Ne,e("div",Be,[e("div",{class:"btn info",onClick:o[1]||(o[1]=(...a)=>t.randomDynamicData&&t.randomDynamicData(...a))},"Change data"),s(l,{ref:"randomDynamic"},{default:i(()=>[(c(!0),d(S,null,f(t.dynamicData,a=>(c(),d("option",{key:a.id,value:a.value,selected:a.selected},r(a.text),9,Ee))),128))]),_:1},512),s(l,{multiple:""},{default:i(()=>[(c(!0),d(S,null,f(t.dynamicData,a=>(c(),d("option",{value:a.value,selected:a.selected},r(a.text),9,Fe))),256))]),_:1})]),Re,Ae])}const Je=_(V,[["render",Ie]]),Le=m({name:"Events",components:{Vue:Je}}),Pe={id:"frameworks",class:"contents"};function Ue(t,o,p,u,h,v){const l=g("Vue");return c(),d("div",Pe,[s(l)])}const qe=_(Le,[["render",Ue]]);export{qe as default};
|
package/docs/assets/install.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import{e as M,d as $,_ as I,o as O,c as V,a as o,f as B,t as E,b as L}from"./index.js";var R={exports:{}};(function(d,w){(function(y,v){d.exports=v()})(M,function(){return function y(v,j,k){var n=window,p="application/octet-stream",r=k||p,e=v,c=!j&&!k&&e,t=document.createElement("a"),_=function(s){return String(s)},i=n.Blob||n.MozBlob||n.WebKitBlob||_,m=j||"download",l,S;if(i=i.call?i.bind(n):Blob,String(this)==="true"&&(e=[e,r],r=e[0],e=e[1]),c&&c.length<2048&&(m=c.split("/").pop().split("?")[0],t.href=c,t.href.indexOf(c)!==-1)){var u=new XMLHttpRequest;return u.open("GET",c,!0),u.responseType="blob",u.onload=function(s){y(s.target.response,m,p)},setTimeout(function(){u.send()},0),u}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(e))if(e.length>1024*1024*1.999&&i!==_)e=x(e),r=e.type||p;else return navigator.msSaveBlob?navigator.msSaveBlob(x(e),m):f(e);else if(/([\x80-\xff])/.test(e)){var b=0,C=new Uint8Array(e.length),N=C.length;for(b;b<N;++b)C[b]=e.charCodeAt(b);e=new i([C],{type:r})}l=e instanceof i?e:new i([e],{type:r});function x(s){var a=s.split(/[:;,]/),h=a[1],A=a[2]=="base64"?atob:decodeURIComponent,D=A(a.pop()),U=D.length,g=0,T=new Uint8Array(U);for(g;g<U;++g)T[g]=D.charCodeAt(g);return new i([T],{type:h})}function f(s,a){if("download"in t)return t.href=s,t.setAttribute("download",m),t.className="download-js-link",t.innerHTML="downloading...",t.style.display="none",document.body.appendChild(t),setTimeout(function(){t.click(),document.body.removeChild(t),a===!0&&setTimeout(function(){n.URL.revokeObjectURL(t.href)},250)},66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(s)&&(s="data:"+s.replace(/^data:([\w\/\-\+]+)/,p)),window.open(s)||confirm(`Displaying New Document
|
|
2
|
-
|
|
3
|
-
Use Save As... to download, then click back to return to this page.`)&&(location.href=s),!0;var h=document.createElement("iframe");document.body.appendChild(h),!a&&/^data:/.test(s)&&(s="data:"+s.replace(/^data:([\w\/\-\+]+)/,p)),h.src=s,setTimeout(function(){document.body.removeChild(h)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(l,m);if(n.URL)f(n.URL.createObjectURL(l),!0);else{if(typeof l=="string"||l.constructor===_)try{return f("data:"+r+";base64,"+n.btoa(l))}catch{return f("data:"+r+","+encodeURIComponent(l))}S=new FileReader,S.onload=function(s){f(this.result)},S.readAsDataURL(l)}return!0}})})(R);const H=R.exports,G="slim-select",J="Slim advanced select dropdown",q="2.1.0",z="Brian Voelker <brian@webiswhatido.com> (http://webiswhatido.com)",F="https://slimselectjs.com",K="MIT",W={url:"https://github.com/brianvoe/slim-select/issues"},X="dist/slimselect.ssr.js",P="dist/slimselect.umd.js",Q="dist/slimselect.es.js",Y="dist/slimselect.umd.min.js",Z="dist/index.d.ts",ee="dist/index.d.ts",se="dist/slimselect.css",te="src/slim-select/slimselect.scss",ne=["src/vue"],oe={type:"git",url:"git+https://github.com/brianvoe/slim-select.git"},ie=["select","vanilla","dropdown","search","multiselect"],le={dev:"vite --port=1111",format:'prettier --write --cache --parser typescript "src/**/*.ts"',build:"npm run build:clean && npm run build:docs && npm run build:library && npm run build:frameworks","build:clean":"rimraf ./dist/*","build:docs":"vite build","build:library":"npm run build:library:js && npm run build:library:css","build:library:js":"cd src/slim-select && rollup --config ./rollup.config.mjs && cd ../../","build:library:css":"cd src/slim-select && sass ./slimselect.scss ../../dist/slimselect.css --style=compressed && cd ../../","build:frameworks":"npm run build --workspaces",test:"jest"},re={"@jest/globals":"^29.3.1","@rollup/plugin-babel":"^6.0.2","@rollup/plugin-commonjs":"^23.0.2","@rollup/plugin-node-resolve":"^15.0.1","@rollup/plugin-terser":"^0.1.0","@rollup/plugin-typescript":"^9.0.2","@slim-select/vue":"workspace:src/vue","@types/downloadjs":"^1.4.3","@vitejs/plugin-vue":"^3.2.0",clipboard:"^2.0.11",downloadjs:"^1.4.7",jest:"^29.3.1","jest-environment-jsdom":"^29.3.1",prettier:"^2.7.1",prismjs:"^1.29.0",rimraf:"^3.0.2",rollup:"^2.79.1","rollup-plugin-typescript2":"^0.34.1","rollup-plugin-vue":"^6.0.0",sass:"^1.56.1","ts-jest":"^29.0.3",tslib:"^2.4.1",typescript:"^4.9.3",vite:"^3.2.4",vue:"^3.2.45","vue-router":"^4.1.6","vue-tsc":"^1.0.9",vuex:"^4.0.2"},ce={name:G,description:J,version:q,author:z,homepage:F,license:K,bugs:W,main:X,browser:P,module:Q,unpkg:Y,types:Z,typings:ee,style:se,sass:te,workspaces:ne,repository:oe,keywords:ie,scripts:le,devDependencies:re},ae=$({name:"Install",data:()=>({version:ce.version}),methods:{downloadLink(){H(`https://cdnjs.cloudflare.com/ajax/libs/slim-select/${this.version}/slimselect.min.js`)}}}),de={id:"install",class:"contents"},pe=L(`<div id="npm" class="content"><h2>Npm</h2><p>Most common usage is npm</p><pre class="install-code"> <code class="language-bash">
|
|
4
|
-
npm install slim-select
|
|
5
|
-
</code>
|
|
6
|
-
</pre><pre class="example-code"> <code class="language-javascript">
|
|
7
|
-
import SlimSelect from 'slim-select'
|
|
8
|
-
|
|
9
|
-
new SlimSelect({
|
|
10
|
-
select: '#selectElement'
|
|
11
|
-
})
|
|
12
|
-
</code>
|
|
13
|
-
</pre></div>`,1),me={id:"cdn",class:"content"},ue=L('<h2>Cdn</h2><p> Cdn has a url link you can grab. Cdn exists on both <a target="_blank" href="https://cdnjs.com">cdnjs.com</a> and <a target="_blank" href="https://unpkg.com">unpkg.com</a></p><p> See full list of available options.<br><strong>cdnjs</strong> - <a target="_blank" href="https://cdnjs.com/libraries/slim-select">cdnjs.com/libraries/slim-select</a><br><strong>unpkg</strong> - <a target="_blank" href="https://unpkg.com/browse/slim-select/dist/">https://unpkg.com/browse/slim-select/dist/</a></p><ul><li>slimselct.js - UMD unminified</li><li>slimselct.min.js - UMD minified</li><li>slimselect.cjs.js - CommonJS (for Node) and ES module (for bundlers) build</li><li>slimselect.umd.js - UMD build for browsers</li><li>slimselect.es.js - ES module build for modern browsers</li><li>slimselect.global.js - IIFE build for modern browsers</li></ul><div class="alert info">New releases may be delayed until the next time its indexed</div>',5),be={class:"install-code"},fe={class:"language-html"},he={id:"download",class:"content"},ge=o("h2",null,"Download",-1),ve=o("p",null,"Download the latest minified umd version of slim select",-1),we=o("p",null,[B(" See full list of available downloadable options. "),o("a",{target:"_blank",href:"https://cdnjs.com/libraries/slim-select"},"cdnjs.com/libraries/slim-select")],-1);function ye(d,w,y,v,j,k){return O(),V("div",de,[pe,o("div",me,[ue,o("pre",be,[B(" "),o("code",fe,`
|
|
14
|
-
<html>
|
|
15
|
-
<head>
|
|
16
|
-
<script src="unpkg.com/slim-select@`+E(d.version)+`/dist/slimselect.min.js"><\/script>
|
|
17
|
-
<link href="unpkg.com/slim-select@`+E(d.version)+`/dist/slimselect.css" rel="stylesheet"></link>
|
|
18
|
-
|
|
19
|
-
<script>
|
|
20
|
-
new SlimSelect({
|
|
21
|
-
select: '#selectElement'
|
|
22
|
-
})
|
|
23
|
-
<script>
|
|
24
|
-
</head>
|
|
25
|
-
<body>
|
|
26
|
-
<select id="selectElement">
|
|
27
|
-
<option>Option 1</option>
|
|
28
|
-
<option>Option 2</option>
|
|
29
|
-
<option>Option 3</option>
|
|
30
|
-
</select>
|
|
31
|
-
</body>
|
|
32
|
-
</html>
|
|
33
|
-
`,1),B(`
|
|
34
|
-
`)])]),o("div",he,[ge,ve,we,o("div",{class:"btn",onClick:w[0]||(w[0]=n=>d.downloadLink())},"Click Here To Download")])])}const ke=I(ae,[["render",ye]]);export{ke as default};
|
package/docs/assets/selects.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import{d as c,S as p,_ as v,o as a,c as s,a as e,F as n,r as i,f as l,t as r}from"./index.js";const b=c({name:"Selects",data(){return{states:[{abv:"AL",state:"Alabama"},{abv:"AK",state:"Alaska"},{abv:"AZ",state:"Arizona"},{abv:"AR",state:"Arkansas"},{abv:"CA",state:"California"},{abv:"CO",state:"Colorado"},{abv:"CT",state:"Connecticut"},{abv:"DE",state:"Delaware"},{abv:"FL",state:"Florida"},{abv:"GA",state:"Georgia"},{abv:"HI",state:"Hawaii"},{abv:"ID",state:"Idaho"},{abv:"IL",state:"Illinois"},{abv:"IN",state:"Indiana"},{abv:"IA",state:"Iowa"},{abv:"KS",state:"Kansas"},{abv:"KY",state:"Kentucky"},{abv:"LA",state:"Louisiana"},{abv:"ME",state:"Maine"},{abv:"MD",state:"Maryland"},{abv:"MA",state:"Massachusetts"},{abv:"MI",state:"Michigan"},{abv:"MN",state:"Minnesota"},{abv:"MS",state:"Mississippi"},{abv:"MO",state:"Missouri"},{abv:"MT",state:"Montana"},{abv:"NE",state:"Nebraska"},{abv:"NV",state:"Nevada"},{abv:"NH",state:"New Hampshire"},{abv:"NJ",state:"New Jersey"},{abv:"NM",state:"New Mexico"},{abv:"NY",state:"New York"},{abv:"NC",state:"North Carolina"},{abv:"ND",state:"North Dakota"},{abv:"OH",state:"Ohio"},{abv:"OK",state:"Oklahoma"},{abv:"OR",state:"Oregon"},{abv:"PA",state:"Pennsylvania"},{abv:"RI",state:"Rhode Island"},{abv:"SC",state:"South Carolina"},{abv:"SD",state:"South Dakota"},{abv:"TN",state:"Tennessee",selected:!0},{abv:"TX",state:"Texas"},{abv:"UT",state:"Utah"},{abv:"VT",state:"Vermont"},{abv:"VA",state:"Virginia"},{abv:"WA",state:"Washington"},{abv:"WV",state:"West Virginia"},{abv:"WI",state:"Wisconsin"},{abv:"WY",state:"Wyoming"}],foods:[{label:"Dairy",options:["Milk","Cheese","Butter","Ice Cream"]},{label:"Meat",options:["Beef","Ham","Pork","Sausage","Chicken","Turkey"]},{label:"Fruits",options:["Apple","Banana","Grape","Orange","Strawberry","Blueberry","Raspberry"]},{label:"Vegetables",options:["Carrot","Tomato","Broccoli","Celery","Corn","Pumpkin","Kale","Spinach"]}]}},mounted(){new p({select:this.$refs.single}),new p({select:this.$refs.singleOptgroup}),new p({select:this.$refs.multiple}),new p({select:this.$refs.multipleOptgroup}).setSelected(["Cheese","Apple","Corn"])}}),d={id:"selects",class:"contents"},h={id:"single",class:"content"},_=e("h2",{class:"header"},"Single",-1),g=e("p",null," Basic single select usage with Slim Select is extremely easy. Just set the select value to your select element. ",-1),m={class:"row"},V=e("h4",null,"Options",-1),y={ref:"single"},k=["value","selected"],M=e("h4",null,"Optgroups",-1),S={ref:"singleOptgroup"},N=["label"],O=["value"],f=e("pre",null,[l(" "),e("code",{class:"language-javascript"},`
|
|
2
|
-
new SlimSelect({
|
|
3
|
-
select: '#single'
|
|
4
|
-
})
|
|
5
|
-
`),l(`
|
|
6
|
-
`)],-1),C=e("pre",null,[l(" "),e("code",{class:"language-html"},`
|
|
7
|
-
<!-- Options -->
|
|
8
|
-
<select id="single">
|
|
9
|
-
<option value="value 1">Value 1</option>
|
|
10
|
-
<option value="value 2">Value 2</option>
|
|
11
|
-
<option value="value 3">Value 3</option>
|
|
12
|
-
</select>
|
|
13
|
-
|
|
14
|
-
<!-- Optgroups -->
|
|
15
|
-
<select id="single-optgroups">
|
|
16
|
-
<optgroup label="Label 1">
|
|
17
|
-
<option value="value 1">Value 1</option>
|
|
18
|
-
<option value="value 2">Value 2</option>
|
|
19
|
-
<option value="value 3">Value 3</option>
|
|
20
|
-
</optgroup>
|
|
21
|
-
<optgroup label="Label 2">
|
|
22
|
-
<option value="value 21">Value 1</option>
|
|
23
|
-
<option value="value 22">Value 2</option>
|
|
24
|
-
<option value="value 23">Value 3</option>
|
|
25
|
-
</optgroup>
|
|
26
|
-
</select>
|
|
27
|
-
`),l(`
|
|
28
|
-
`)],-1),w={id:"multiple",class:"content"},A=e("h2",{class:"header"},"Multiple",-1),I=e("p",null," Multi selects work just the same as a single select. The only difference is setting the multiple attribute on your select. ",-1),T={class:"row"},D=e("h4",null,"Options",-1),L={ref:"multiple",multiple:""},B=["value","selected"],W=e("h4",null,"Optgroups",-1),$={ref:"multipleOptgroup",multiple:""},K=["label"],H=["value"],F=e("pre",null,[l(" "),e("code",{class:"language-javascript"},`
|
|
29
|
-
new SlimSelect({
|
|
30
|
-
select: '#multiple'
|
|
31
|
-
})
|
|
32
|
-
`),l(`
|
|
33
|
-
`)],-1),G=e("pre",null,[l(" "),e("code",{class:"language-html"},`
|
|
34
|
-
<!-- Options -->
|
|
35
|
-
<select id="multiple" multiple>
|
|
36
|
-
<option value="value 1">Value 1</option>
|
|
37
|
-
<option value="value 2">Value 2</option>
|
|
38
|
-
<option value="value 3">Value 3</option>
|
|
39
|
-
</select>
|
|
40
|
-
|
|
41
|
-
<!-- Optgroups -->
|
|
42
|
-
<select id="multiple-optgroups" multiple>
|
|
43
|
-
<optgroup label="Label 1">
|
|
44
|
-
<option value="value 1">Value 1</option>
|
|
45
|
-
<option value="value 2">Value 2</option>
|
|
46
|
-
<option value="value 3">Value 3</option>
|
|
47
|
-
</optgroup>
|
|
48
|
-
<optgroup label="Label 2">
|
|
49
|
-
<option value="value 21">Value 1</option>
|
|
50
|
-
<option value="value 22">Value 2</option>
|
|
51
|
-
<option value="value 23">Value 3</option>
|
|
52
|
-
</optgroup>
|
|
53
|
-
</select>
|
|
54
|
-
`),l(`
|
|
55
|
-
`)],-1);function R(u,E,P,Y,j,x){return a(),s("div",d,[e("div",h,[_,g,e("div",m,[e("div",null,[V,e("select",y,[(a(!0),s(n,null,i(u.states,t=>(a(),s("option",{key:t.abv,value:t.abv,selected:t.selected},r(t.state),9,k))),128))],512)]),e("div",null,[M,e("select",S,[(a(!0),s(n,null,i(u.foods,t=>(a(),s("optgroup",{key:t.label,label:t.label},[(a(!0),s(n,null,i(t.options,o=>(a(),s("option",{key:o,value:o},r(o),9,O))),128))],8,N))),128))],512)])]),f,C]),e("div",w,[A,I,e("div",T,[e("div",null,[D,e("select",L,[(a(!0),s(n,null,i(u.states,t=>(a(),s("option",{value:t.abv,key:t.abv,selected:t.selected},r(t.state),9,B))),128))],512)]),e("div",null,[W,e("select",$,[(a(!0),s(n,null,i(u.foods,t=>(a(),s("optgroup",{key:t.label,label:t.label},[(a(!0),s(n,null,i(t.options,o=>(a(),s("option",{key:o,value:o},r(o),9,H))),128))],8,K))),128))],512)])]),F,G])])}const U=v(b,[["render",R]]);export{U as default};
|
package/docs/favicon.ico
DELETED
|
Binary file
|
package/docs/index.html
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" href="/favicon.ico" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title>Slim Select</title>
|
|
8
|
-
<meta name="description" content="Advanced select dropdown" />
|
|
9
|
-
<meta property="og:type" content="article" />
|
|
10
|
-
<meta property="og:title" content="Slim Select" />
|
|
11
|
-
<meta property="og:description" content="Advanced select dropdown" />
|
|
12
|
-
<script type="module" crossorigin src="/assets/index.js"></script>
|
|
13
|
-
<link rel="stylesheet" href="/assets/index.css">
|
|
14
|
-
</head>
|
|
15
|
-
<body>
|
|
16
|
-
<noscript>
|
|
17
|
-
<strong
|
|
18
|
-
>We're sorry but this site doesn't work properly without JavaScript enabled. Please enable it to
|
|
19
|
-
continue.</strong
|
|
20
|
-
>
|
|
21
|
-
</noscript>
|
|
22
|
-
<div id="app"></div>
|
|
23
|
-
|
|
24
|
-
<!-- Google tag (gtag.js) -->
|
|
25
|
-
<script async src="https://www.googletagmanager.com/gtag/js?id=G-14PMXQVXTC"></script>
|
|
26
|
-
<script>
|
|
27
|
-
window.dataLayer = window.dataLayer || []
|
|
28
|
-
function gtag() {
|
|
29
|
-
dataLayer.push(arguments)
|
|
30
|
-
}
|
|
31
|
-
gtag('js', new Date())
|
|
32
|
-
|
|
33
|
-
gtag('config', 'G-14PMXQVXTC')
|
|
34
|
-
</script>
|
|
35
|
-
</body>
|
|
36
|
-
</html>
|
package/public/404.html
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title>Slim Select</title>
|
|
6
|
-
<script type="text/javascript">
|
|
7
|
-
// Single Page Apps for GitHub Pages
|
|
8
|
-
// https://github.com/rafrex/spa-github-pages
|
|
9
|
-
// Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
|
|
10
|
-
// ----------------------------------------------------------------------
|
|
11
|
-
// This script takes the current url and converts the path and query
|
|
12
|
-
// string into just a query string, and then redirects the browser
|
|
13
|
-
// to the new url with only a query string and hash fragment,
|
|
14
|
-
// e.g. http://www.foo.tld/one/two?a=b&c=d#qwe, becomes
|
|
15
|
-
// http://www.foo.tld/?p=/one/two&q=a=b~and~c=d#qwe
|
|
16
|
-
// Note: this 404.html file must be at least 512 bytes for it to work
|
|
17
|
-
// with Internet Explorer (it is currently > 512 bytes)
|
|
18
|
-
// If you're creating a Project Pages site and NOT using a custom domain,
|
|
19
|
-
// then set pathPrefix = true. This way the repo name will remain in the path:
|
|
20
|
-
// https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes
|
|
21
|
-
// https://username.github.io/repo-name/?p=/one/two&q=a=b~and~c=d#qwe
|
|
22
|
-
// Otherwise, leave pathPrefix as false.
|
|
23
|
-
var pathPrefix = false
|
|
24
|
-
var l = window.location
|
|
25
|
-
l.replace(
|
|
26
|
-
l.protocol +
|
|
27
|
-
'//' +
|
|
28
|
-
l.hostname +
|
|
29
|
-
(l.port ? ':' + l.port : '') +
|
|
30
|
-
l.pathname
|
|
31
|
-
.split('/')
|
|
32
|
-
.slice(0, 2 * pathPrefix)
|
|
33
|
-
.join('/') +
|
|
34
|
-
'/?p=/' +
|
|
35
|
-
l.pathname.slice(1).split('/').slice(pathPrefix).join('/').replace(/&/g, '~and~') +
|
|
36
|
-
(l.search ? '&q=' + l.search.slice(1).replace(/&/g, '~and~') : '') +
|
|
37
|
-
l.hash,
|
|
38
|
-
)
|
|
39
|
-
</script>
|
|
40
|
-
</head>
|
|
41
|
-
<body></body>
|
|
42
|
-
</html>
|
package/public/CNAME
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
slimselectjs.com
|
package/public/favicon.ico
DELETED
|
Binary file
|
package/slimselect.gif
DELETED
|
Binary file
|
package/src/docs/app.vue
DELETED
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { defineComponent } from 'vue'
|
|
3
|
-
|
|
4
|
-
import SlimSelect from '../slim-select'
|
|
5
|
-
import Settings from '../slim-select/settings'
|
|
6
|
-
import { debounce } from '../slim-select/helpers'
|
|
7
|
-
|
|
8
|
-
export default defineComponent({
|
|
9
|
-
name: 'App',
|
|
10
|
-
data() {
|
|
11
|
-
return {
|
|
12
|
-
nav: null as SlimSelect | null,
|
|
13
|
-
navDebounce: debounce(() => {
|
|
14
|
-
this.setDemensions()
|
|
15
|
-
}, 100),
|
|
16
|
-
year: new Date().getFullYear(),
|
|
17
|
-
width: 0,
|
|
18
|
-
height: 0,
|
|
19
|
-
|
|
20
|
-
navData: [
|
|
21
|
-
{ text: 'Home', value: '/', class: 'label' },
|
|
22
|
-
|
|
23
|
-
// Install
|
|
24
|
-
{ text: 'Install', value: 'install', class: 'label' },
|
|
25
|
-
{ text: 'npm', value: 'install#npm', class: 'mar-l-l' },
|
|
26
|
-
{ text: 'cdn', value: 'install#cdn', class: 'mar-l-l' },
|
|
27
|
-
{ text: 'download', value: 'install#download', class: 'mar-l-l' },
|
|
28
|
-
|
|
29
|
-
// Select
|
|
30
|
-
{ text: 'Selects', value: 'selects', class: 'label' },
|
|
31
|
-
{ text: 'single', value: 'selects#single', class: 'mar-l-l' },
|
|
32
|
-
{ text: 'multiple', value: 'selects#multiple', class: 'mar-l-l' },
|
|
33
|
-
|
|
34
|
-
// Data
|
|
35
|
-
{ text: 'Data', value: 'data', class: 'label' },
|
|
36
|
-
{ text: 'types', value: 'data#types', class: 'mar-l-l' },
|
|
37
|
-
{ text: 'field', value: 'data#field', class: 'mar-l-l' },
|
|
38
|
-
|
|
39
|
-
// Settings
|
|
40
|
-
{ text: 'Settings', value: 'settings', class: 'label' },
|
|
41
|
-
{ text: 'select', value: 'settings#select', class: 'mar-l-l' },
|
|
42
|
-
{ text: 'alwaysOpen', value: 'settings#alwaysOpen', class: 'mar-l-l' },
|
|
43
|
-
{ text: 'contentLocation', value: 'settings#contentLocation', class: 'mar-l-l' },
|
|
44
|
-
{ text: 'contentPosition', value: 'settings#contentPosition', class: 'mar-l-l' },
|
|
45
|
-
{ text: 'openPosition', value: 'settings#openPosition', class: 'mar-l-l' },
|
|
46
|
-
{ text: 'placeholder', value: 'settings#placeholder', class: 'mar-l-l' },
|
|
47
|
-
{ text: 'allowDeselect', value: 'settings#allowDeselect', class: 'mar-l-l' },
|
|
48
|
-
{ text: 'display', value: 'settings#display', class: 'mar-l-l' },
|
|
49
|
-
{ text: 'mandatory', value: 'settings#mandatory', class: 'mar-l-l' },
|
|
50
|
-
{ text: 'minmax', value: 'settings#minmax', class: 'mar-l-l' },
|
|
51
|
-
{ text: 'dataAttributes', value: 'settings#dataAttributes', class: 'mar-l-l' },
|
|
52
|
-
{ text: 'cssClass', value: 'settings#cssClass', class: 'mar-l-l' },
|
|
53
|
-
{ text: 'inlineStyles', value: 'settings#inlineStyles', class: 'mar-l-l' },
|
|
54
|
-
{ text: 'html', value: 'settings#html', class: 'mar-l-l' },
|
|
55
|
-
{ text: 'search', value: 'settings#search', class: 'mar-l-l' },
|
|
56
|
-
{ text: 'closeOnSelect', value: 'settings#closeOnSelect', class: 'mar-l-l' },
|
|
57
|
-
{ text: 'showOptionTooltips', value: 'settings#showOptionTooltips', class: 'mar-l-l' },
|
|
58
|
-
{ text: 'selectByGroup', value: 'settings#selectByGroup', class: 'mar-l-l' },
|
|
59
|
-
{ text: 'hideSelected', value: 'settings#hideSelected', class: 'mar-l-l' },
|
|
60
|
-
|
|
61
|
-
// Events
|
|
62
|
-
{ text: 'Events', value: 'events', class: 'label' },
|
|
63
|
-
{ text: 'error', value: 'events#error', class: 'mar-l-l' },
|
|
64
|
-
{ text: 'beforeChange', value: 'events#beforeChange', class: 'mar-l-l' },
|
|
65
|
-
{ text: 'afterChange', value: 'events#afterChange', class: 'mar-l-l' },
|
|
66
|
-
{ text: 'open', value: 'events#open', class: 'mar-l-l' },
|
|
67
|
-
{ text: 'search', value: 'events#search', class: 'mar-l-l' },
|
|
68
|
-
{ text: 'searchFilter', value: 'events#searchFilter', class: 'mar-l-l' },
|
|
69
|
-
{ text: 'addable', value: 'events#addable', class: 'mar-l-l' },
|
|
70
|
-
|
|
71
|
-
// Methods
|
|
72
|
-
{ text: 'Methods', value: 'methods', class: 'label' },
|
|
73
|
-
{ text: 'getSelected', value: 'methods#getSelected', class: 'mar-l-l' },
|
|
74
|
-
{ text: 'setSelected', value: 'methods#setSelected', class: 'mar-l-l' },
|
|
75
|
-
{ text: 'getData', value: 'methods#getData', class: 'mar-l-l' },
|
|
76
|
-
{ text: 'setData', value: 'methods#setData', class: 'mar-l-l' },
|
|
77
|
-
{ text: 'enableDisable', value: 'methods#enableDisable', class: 'mar-l-l' },
|
|
78
|
-
{ text: 'search', value: 'methods#search', class: 'mar-l-l' },
|
|
79
|
-
{ text: 'destroy', value: 'methods#destroy', class: 'mar-l-l' },
|
|
80
|
-
|
|
81
|
-
// Frameworks
|
|
82
|
-
{ text: 'Frameworks', value: 'frameworks', class: 'label' },
|
|
83
|
-
{ text: 'vue', value: 'frameworks#vue', class: 'mar-l-l' },
|
|
84
|
-
],
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
mounted() {
|
|
88
|
-
this.runNav()
|
|
89
|
-
|
|
90
|
-
this.$router.isReady().then(() => {
|
|
91
|
-
if (this.nav) {
|
|
92
|
-
this.nav.setSelected(this.$router.currentRoute.value.fullPath.replace('/', ''))
|
|
93
|
-
}
|
|
94
|
-
})
|
|
95
|
-
|
|
96
|
-
this.$router.afterEach(() => {
|
|
97
|
-
if (this.$route.query.p) {
|
|
98
|
-
// Delay router push to allow for
|
|
99
|
-
// other things to happen first
|
|
100
|
-
setTimeout(() => {
|
|
101
|
-
if (this.$route.query.p) {
|
|
102
|
-
this.$router.push({ path: this.$route.query.p.toString(), hash: this.$route.hash })
|
|
103
|
-
}
|
|
104
|
-
}, 200)
|
|
105
|
-
|
|
106
|
-
return
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// After route change get the hash and scroll to element in main
|
|
110
|
-
setTimeout(() => {
|
|
111
|
-
const hash = this.$route.hash
|
|
112
|
-
if (hash === '') {
|
|
113
|
-
window.scroll({
|
|
114
|
-
top: 0,
|
|
115
|
-
behavior: 'smooth',
|
|
116
|
-
})
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// If hash is not empty scroll to element
|
|
120
|
-
if (hash) {
|
|
121
|
-
const el = document.querySelector(hash) as HTMLElement
|
|
122
|
-
if (el) {
|
|
123
|
-
// get header height
|
|
124
|
-
const header = document.querySelector('header') as HTMLElement
|
|
125
|
-
const nav = document.querySelector('nav') as HTMLElement
|
|
126
|
-
const headerHeight = header ? header.clientHeight + (window.innerWidth < 700 ? nav.clientHeight : 0) + 8 : 0
|
|
127
|
-
|
|
128
|
-
window.scroll({
|
|
129
|
-
top: el.offsetTop - headerHeight, // header height + padding
|
|
130
|
-
behavior: 'smooth',
|
|
131
|
-
})
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}, 200)
|
|
135
|
-
})
|
|
136
|
-
|
|
137
|
-
this.setDemensions()
|
|
138
|
-
window.addEventListener('resize', this.navDebounce)
|
|
139
|
-
},
|
|
140
|
-
unmounted() {
|
|
141
|
-
window.removeEventListener('resize', this.navDebounce)
|
|
142
|
-
|
|
143
|
-
this.nav?.destroy()
|
|
144
|
-
},
|
|
145
|
-
watch: {
|
|
146
|
-
width() {
|
|
147
|
-
this.runNav()
|
|
148
|
-
},
|
|
149
|
-
},
|
|
150
|
-
methods: {
|
|
151
|
-
setDemensions(): void {
|
|
152
|
-
this.width = document.documentElement.clientWidth
|
|
153
|
-
this.height = document.documentElement.clientHeight
|
|
154
|
-
},
|
|
155
|
-
runNav() {
|
|
156
|
-
if (this.nav) {
|
|
157
|
-
this.nav.destroy()
|
|
158
|
-
this.nav = null
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
let settings = {
|
|
162
|
-
searchHighlight: true,
|
|
163
|
-
openContent: 'below',
|
|
164
|
-
} as Partial<Settings>
|
|
165
|
-
|
|
166
|
-
if (this.width > 700) {
|
|
167
|
-
settings.alwaysOpen = true
|
|
168
|
-
settings.contentPosition = 'relative'
|
|
169
|
-
settings.contentLocation = this.$refs.navContent as HTMLDivElement
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
this.nav = new SlimSelect({
|
|
173
|
-
select: this.$refs.nav as HTMLSelectElement,
|
|
174
|
-
data: this.navData,
|
|
175
|
-
settings: settings,
|
|
176
|
-
events: {
|
|
177
|
-
afterChange: (newVal) => {
|
|
178
|
-
const value = newVal[0].value
|
|
179
|
-
const split = value.split('#')
|
|
180
|
-
const val = split[0]
|
|
181
|
-
const hash = split[1] ? '#' + split[1] : undefined
|
|
182
|
-
this.$router.push({ path: val, hash: hash })
|
|
183
|
-
},
|
|
184
|
-
},
|
|
185
|
-
})
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
})
|
|
189
|
-
</script>
|
|
190
|
-
|
|
191
|
-
<template>
|
|
192
|
-
<header>
|
|
193
|
-
<div class="top">
|
|
194
|
-
<div class="text">
|
|
195
|
-
<h1 class="logo">Slim Select <small>2.0</small></h1>
|
|
196
|
-
</div>
|
|
197
|
-
<div class="socials">
|
|
198
|
-
<a href="https://github.com/brianvoe/slim-select" target="_blank">
|
|
199
|
-
<img src="./assets/images/github.png" />
|
|
200
|
-
</a>
|
|
201
|
-
<a href="https://www.npmjs.com/package/slim-select" target="_blank">
|
|
202
|
-
<img src="./assets/images/npm.png" />
|
|
203
|
-
</a>
|
|
204
|
-
</div>
|
|
205
|
-
</div>
|
|
206
|
-
<div class="bar">
|
|
207
|
-
<div class="tagline">Advanced select dropdown</div>
|
|
208
|
-
<div class="drop">
|
|
209
|
-
<svg viewBox="0 0 100 100">
|
|
210
|
-
<path d="M10,30 L50,70 L90,30" />
|
|
211
|
-
</svg>
|
|
212
|
-
</div>
|
|
213
|
-
</div>
|
|
214
|
-
</header>
|
|
215
|
-
<nav>
|
|
216
|
-
<select ref="nav"></select>
|
|
217
|
-
<div class="nav-content" ref="navContent"></div>
|
|
218
|
-
</nav>
|
|
219
|
-
<main>
|
|
220
|
-
<router-view />
|
|
221
|
-
<footer>
|
|
222
|
-
© {{ year }} <a href="http://webiswhatido.com" style="color: #ffffff" target="_blank">Brian Voelker</a>.
|
|
223
|
-
<br />
|
|
224
|
-
Slim Select is under the MIT license.
|
|
225
|
-
</footer>
|
|
226
|
-
</main>
|
|
227
|
-
</template>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
2
|
-
width="45.701px" height="45.7px" viewBox="0 0 45.701 45.7" style="enable-background:new 0 0 45.701 45.7;" xml:space="preserve">
|
|
3
|
-
<path fill="#5897fb" d="M20.687,38.332c-2.072,2.072-5.434,2.072-7.505,0L1.554,26.704c-2.072-2.071-2.072-5.433,0-7.504
|
|
4
|
-
c2.071-2.072,5.433-2.072,7.505,0l6.928,6.927c0.523,0.522,1.372,0.522,1.896,0L36.642,7.368c2.071-2.072,5.433-2.072,7.505,0
|
|
5
|
-
c0.995,0.995,1.554,2.345,1.554,3.752c0,1.407-0.559,2.757-1.554,3.752L20.687,38.332z"/>
|
|
6
|
-
</svg>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
2
|
-
viewBox="0 0 512.001 512.001" style="enable-background:new 0 0 512.001 512.001;" xml:space="preserve">
|
|
3
|
-
<path style="fill:#E16B5A;" d="M255.333,0.048c0,0,150.936-6.78,230.932,144.636c-42.26,0-243.764,0-243.764,0
|
|
4
|
-
s-46.036-1.512-85.28,54.244c-11.32,23.352-23.392,47.46-9.808,94.916C127.793,260.704,43.265,113.8,43.265,113.8
|
|
5
|
-
S102.889,6.072,255.333,0.048z"/>
|
|
6
|
-
<path style="fill:#CC6152;" d="M255.333,0.048c-2.604,0.104-5.116,0.308-7.668,0.468c40.752,2.968,150.852,22.468,215.148,144.168
|
|
7
|
-
c9.928,0,18.016,0,23.444,0C406.265-6.736,255.333,0.048,255.333,0.048z"/>
|
|
8
|
-
<path style="fill:#FFD464;" d="M478.409,384.488c0,0-69.6,133.852-240.968,127.268c21.14-36.524,121.912-210.704,121.912-210.704
|
|
9
|
-
s24.328-39.044-4.4-100.844c-14.604-21.464-58.844-43.96-106.812-55.952c38.576-0.384,237.644,0.024,237.644,0.024
|
|
10
|
-
S549.417,249.7,478.409,384.488z"/>
|
|
11
|
-
<path style="fill:#F2C95F;" d="M485.781,144.284c0,0-101.54-0.208-173.636-0.184c69.164,0.016,152.012,0.184,152.012,0.184
|
|
12
|
-
s63.636,105.416-7.372,240.204c0,0-63.776,122.416-219.348,127.268l0,0c171.368,6.584,240.972-127.268,240.972-127.268
|
|
13
|
-
C549.417,249.7,485.781,144.284,485.781,144.284z"/>
|
|
14
|
-
<path style="fill:#74B340;" d="M33.333,385.504c0,0-81.324-127.104,10.08-271.952c21.124,36.54,121.84,210.752,121.84,210.752
|
|
15
|
-
s21.696,40.552,89.684,46.616c25.916-1.888,52.876-3.492,87.264-38.952c-18.96,33.532-104.172,180.028-104.172,180.028
|
|
16
|
-
S114.757,514.292,33.333,385.504z"/>
|
|
17
|
-
<circle style="fill:#FFFFFF;" cx="254.721" cy="258.08" r="116"/>
|
|
18
|
-
<circle style="fill:#2995CC;" cx="254.681" cy="258.08" r="92"/>
|
|
19
|
-
<path style="fill:#268CBF;" d="M254.705,166.1c-1.832,0-3.644,0.068-5.444,0.172c48.272,2.82,86.552,42.848,86.552,91.824
|
|
20
|
-
c0,48.984-38.28,89.016-86.552,91.836c1.804,0.1,3.616,0.172,5.444,0.172c50.804,0,92-41.196,92-92.008
|
|
21
|
-
C346.705,207.292,305.509,166.1,254.705,166.1z"/>
|
|
22
|
-
</svg>
|