Browse Source

ukwnon change / rename dist dir to src

pull/6/head
A1Gard 3 years ago
parent
commit
642c53411e
13 changed files with 1304 additions and 1522 deletions
  1. +83
    -83
      .gitignore
  2. +0
    -0
      .idea/combobox-wizard.iml
  3. +0
    -14
      .idea/deployment.xml
  4. +1
    -1
      .idea/modules.xml
  5. +51
    -263
      .idea/workspace.xml
  6. +674
    -674
      LICENSE
  7. +2
    -2
      README.md
  8. +149
    -149
      example/index.html
  9. +5
    -5
      example/jquery.min.js
  10. +74
    -74
      src/jquery.combobox-wizard.css
  11. +265
    -257
      src/jquery.combobox-wizard.js
  12. +0
    -0
      src/left.png
  13. +0
    -0
      src/right.png

+ 83
- 83
.gitignore View File

@ -1,84 +1,84 @@
# Created by https://www.gitignore.io/api/phpstorm
# Edit at https://www.gitignore.io/?templates=phpstorm
### PhpStorm ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# Generated files
.idea/**/contentModel.xml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# CMake
cmake-build-*/
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# File-based project format
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Editor-based Rest Client
.idea/httpRequests
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
### PhpStorm Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr
# Sonarlint plugin
.idea/sonarlint
# Created by https://www.gitignore.io/api/phpstorm
# Edit at https://www.gitignore.io/?templates=phpstorm
### PhpStorm ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# Generated files
.idea/**/contentModel.xml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# CMake
cmake-build-*/
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# File-based project format
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Editor-based Rest Client
.idea/httpRequests
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
### PhpStorm Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
# *.iml
# modules.xml
# .idea/misc.xml
# *.ipr
# Sonarlint plugin
.idea/sonarlint
# End of https://www.gitignore.io/api/phpstorm

.idea/comobox-wizard.iml → .idea/combobox-wizard.iml View File


+ 0
- 14
.idea/deployment.xml View File

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PublishConfigData">
<serverData>
<paths name="tajhizat">
<serverdata>
<mappings>
<mapping local="$PROJECT_DIR$" web="/" />
</mappings>
</serverdata>
</paths>
</serverData>
</component>
</project>

+ 1
- 1
.idea/modules.xml View File

@ -2,7 +2,7 @@
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/comobox-wizard.iml" filepath="$PROJECT_DIR$/.idea/comobox-wizard.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/combobox-wizard.iml" filepath="$PROJECT_DIR$/.idea/combobox-wizard.iml" />
</modules>
</component>
</project>

+ 51
- 263
.idea/workspace.xml View File

@ -1,11 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="dc6683c5-d7bc-48be-8f3a-494ebac5cfb4" name="Default Changelist" comment="">
<list default="true" id="fcd02ce4-2607-40f2-8d4b-28093ec96edc" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/comobox-wizard.iml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/deployment.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/modules.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/modules.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/vcs.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/dist/jquery.combobox-wizard.css" beforeDir="false" afterPath="$PROJECT_DIR$/dist/jquery.combobox-wizard.css" afterDir="false" />
<change beforePath="$PROJECT_DIR$/dist/jquery.combobox-wizard.js" beforeDir="false" afterPath="$PROJECT_DIR$/dist/jquery.combobox-wizard.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/LICENSE" beforeDir="false" afterPath="$PROJECT_DIR$/LICENSE" afterDir="false" />
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/dist/jquery.combobox-wizard.css" beforeDir="false" afterPath="$PROJECT_DIR$/src/jquery.combobox-wizard.css" afterDir="false" />
<change beforePath="$PROJECT_DIR$/dist/jquery.combobox-wizard.js" beforeDir="false" afterPath="$PROJECT_DIR$/src/jquery.combobox-wizard.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/dist/left.png" beforeDir="false" afterPath="$PROJECT_DIR$/src/left.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/dist/right.png" beforeDir="false" afterPath="$PROJECT_DIR$/src/right.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/example/index.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/example/jquery.min.js" beforeDir="false" afterPath="$PROJECT_DIR$/example/jquery.min.js" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
@ -14,122 +25,42 @@
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FUSProjectUsageTrigger">
<session id="649996111">
<session id="550391559">
<usages-collector id="statistics.lifecycle.project">
<counts>
<entry key="project.closed" value="1" />
<entry key="project.open.time.3" value="1" />
<entry key="project.open.time.1" value="1" />
<entry key="project.opened" value="1" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.open">
<counts>
<entry key="css" value="1" />
<entry key="html" value="1" />
<entry key="js" value="1" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.open">
<counts>
<entry key="CSS" value="1" />
<entry key="HTML" value="1" />
<entry key="JavaScript" value="1" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.edit">
<counts>
<entry key="html" value="101" />
<entry key="js" value="28" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.edit">
<counts>
<entry key="HTML" value="101" />
<entry key="JavaScript" value="28" />
</counts>
</usages-collector>
</session>
<session id="550391559">
<usages-collector id="statistics.lifecycle.project">
<counts>
<entry key="project.closed" value="3" />
<entry key="project.open.time.1" value="1" />
<entry key="project.open.time.10" value="1" />
<entry key="project.open.time.13" value="1" />
<entry key="project.open.time.16" value="1" />
<entry key="project.opened" value="4" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.edit">
<counts>
<entry key="css" value="382" />
<entry key="html" value="449" />
<entry key="js" value="4727" />
<entry key="txt" value="185" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.edit">
<counts>
<entry key="CSS" value="382" />
<entry key="HTML" value="450" />
<entry key="JavaScript" value="4726" />
<entry key="PLAIN_TEXT" value="185" />
</counts>
</usages-collector>
</session>
<session id="-242012147">
<usages-collector id="statistics.lifecycle.project">
<counts>
<entry key="project.open.time.7" value="1" />
<entry key="project.opened" value="1" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.edit">
<counts>
<entry key="css" value="383" />
<entry key="html" value="71" />
<entry key="js" value="493" />
<entry key="txt" value="13" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.edit">
<counts>
<entry key="CSS" value="383" />
<entry key="HTML" value="71" />
<entry key="JavaScript" value="493" />
<entry key="PLAIN_TEXT" value="13" />
</counts>
</usages-collector>
</session>
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<leaf>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/example/index.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="231">
<caret line="16" column="26" selection-start-line="16" selection-start-column="26" selection-end-line="16" selection-end-column="26" />
<folding>
<element signature="n#style#0;n#div#0;n#form#0;n#body#0;n#html#0;n#!!top" expanded="true" />
</folding>
<state relative-caret-position="297">
<caret line="9" lean-forward="true" selection-start-line="9" selection-end-line="9" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/dist/jquery.combobox-wizard.css">
<entry file="file://$PROJECT_DIR$/src/jquery.combobox-wizard.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="429">
<caret line="22" column="23" selection-start-line="22" selection-start-column="23" selection-end-line="22" selection-end-column="23" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/dist/jquery.combobox-wizard.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="179">
<caret line="122" column="48" lean-forward="true" selection-start-line="122" selection-start-column="48" selection-end-line="122" selection-end-column="48" />
<state relative-caret-position="-1485">
<folding>
<element signature="e#35#41#0" expanded="true" />
</folding>
@ -139,76 +70,19 @@
</file>
</leaf>
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="HTML File" />
<option value="CSS File" />
<option value="JavaScript File" />
</list>
</option>
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>self</find>
<find>childer</find>
<find>console.</find>
<find>last</find>
<find>https://github.com/4xmen</find>
<find>mianTitle</find>
<find>w</find>
<find>lt</find>
<find>slided</find>
<find>slideUp</find>
<find>selec</find>
<find>conso</find>
<find>target</find>
<find>.open</find>
<find>$.wcb.t</find>
<find>wzcmb-back</find>
<find>showTree</find>
</findStrings>
<replaceStrings>
<replace>this</replace>
<replace>children</replace>
<replace>lastx</replace>
<replace>mainTitle</replace>
</replaceStrings>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/dist/jquery.combox-wizard.css" />
<option value="$PROJECT_DIR$/dist/jquery.combox-wizard.js" />
<option value="$PROJECT_DIR$/example/index.html" />
<option value="$PROJECT_DIR$/dist/jquery.combobox-wizard.js" />
<option value="$PROJECT_DIR$/dist/jquery.combobox-wizard.css" />
</list>
</option>
</component>
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsFlowSettings">
<service-enabled>true</service-enabled>
<exe-path />
<other-services-enabled>true</other-services-enabled>
<auto-save>true</auto-save>
</component>
<component name="JsGulpfileManager">
<detection-done>true</detection-done>
<sorting>DEFINITION_ORDER</sorting>
</component>
<component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="-8" />
<option name="y" value="32" />
<option name="width" value="697" />
<option name="height" value="371" />
</component>
<component name="ProjectLevelVcsManager">
<ConfirmationsSetting value="2" id="Add" />
<component name="ProjectFrameBounds" extendedState="7">
<option name="x" value="1079" />
<option name="width" value="1910" />
<option name="height" value="786" />
</component>
<component name="ProjectView">
<navigator proportions="" version="1">
@ -223,6 +97,11 @@
<item name="combobox-wizard" type="b2602c69:ProjectViewProjectNode" />
<item name="combobox-wizard" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="combobox-wizard" type="b2602c69:ProjectViewProjectNode" />
<item name="combobox-wizard" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
@ -230,13 +109,9 @@
</panes>
</component>
<component name="PropertiesComponent">
<property name="DefaultHtmlFileTemplate" value="HTML File" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="list.type.of.created.stylesheet" value="CSS" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
<property name="settings.editor.selected.configurable" value="editing.templates" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
@ -250,95 +125,34 @@
</list>
</option>
</component>
<component name="RunManager">
<configuration name="index.html" type="JavascriptDebugType" factoryName="JavaScript Debug" temporary="true" nameIsGenerated="true" uri="http://localhost:63342/comobox-wizard/example/index.html">
<method v="2" />
</configuration>
<recent_temporary>
<list>
<item itemvalue="JavaScript Debug.index.html" />
</list>
</recent_temporary>
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="dc6683c5-d7bc-48be-8f3a-494ebac5cfb4" name="Default Changelist" comment="" />
<created>1548378741439</created>
<changelist id="fcd02ce4-2607-40f2-8d4b-28093ec96edc" name="Default Changelist" comment="" />
<created>1548539236399</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1548378741439</updated>
<workItem from="1548378744146" duration="747000" />
<workItem from="1548379554531" duration="5838000" />
<workItem from="1548401631289" duration="5000" />
<workItem from="1548413928000" duration="709000" />
<workItem from="1548433036248" duration="13423000" />
<workItem from="1548480349402" duration="8535000" />
</task>
<task id="LOCAL-00001" summary="add the comobowiz element">
<created>1548381057545</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1548381057545</updated>
</task>
<task id="LOCAL-00002" summary="show main menu">
<created>1548382929546</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1548382929546</updated>
</task>
<task id="LOCAL-00003" summary="show first level menu">
<created>1548384100385</created>
<option name="number" value="00003" />
<option name="presentableId" value="LOCAL-00003" />
<option name="project" value="LOCAL" />
<updated>1548384100385</updated>
</task>
<task id="LOCAL-00004" summary="make json list for save level">
<created>1548385399275</created>
<option name="number" value="00004" />
<option name="presentableId" value="LOCAL-00004" />
<option name="project" value="LOCAL" />
<updated>1548385399275</updated>
<updated>1548539236399</updated>
<workItem from="1548539237802" duration="656000" />
</task>
<task id="LOCAL-00005" summary="first release without comment">
<created>1548444663193</created>
<option name="number" value="00005" />
<option name="presentableId" value="LOCAL-00005" />
<option name="project" value="LOCAL" />
<updated>1548444663193</updated>
</task>
<task id="LOCAL-00006" summary="add comment to projct">
<created>1548447280147</created>
<option name="number" value="00006" />
<option name="presentableId" value="LOCAL-00006" />
<option name="project" value="LOCAL" />
<updated>1548447280147</updated>
</task>
<task id="LOCAL-00007" summary="fix some bugs">
<created>1548481594872</created>
<option name="number" value="00007" />
<option name="presentableId" value="LOCAL-00007" />
<option name="project" value="LOCAL" />
<updated>1548481594872</updated>
</task>
<option name="localTasksCounter" value="8" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="29257000" />
<option name="totallyTimeSpent" value="656000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="32" width="1382" height="744" extended-state="6" />
<editor active="true" />
<frame x="1360" y="32" width="1920" height="1048" extended-state="6" />
<layout>
<window_info content_ui="combo" id="Project" order="0" sideWeight="0.4966443" visible="true" weight="0.24200913" />
<window_info id="Structure" order="1" sideWeight="0.5033557" side_tool="true" visible="true" weight="0.24200913" />
<window_info id="Favorites" order="2" side_tool="true" />
<window_info id="Favorites" side_tool="true" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24973147" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info anchor="bottom" id="Docker" show_stripe_button="false" />
<window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
<window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
<window_info anchor="bottom" id="Terminal" visible="true" weight="0.32918552" />
<window_info anchor="bottom" id="Event Log" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" />
<window_info anchor="bottom" id="Run" order="2" />
@ -346,15 +160,10 @@
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
<window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
<window_info anchor="bottom" id="Version Control" order="9" show_stripe_button="false" />
<window_info anchor="bottom" id="Terminal" order="10" weight="0.33221477" />
<window_info anchor="bottom" id="Event Log" order="11" side_tool="true" />
<window_info anchor="right" id="Database" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
<window_info anchor="right" id="Database" order="3" />
</layout>
</component>
<component name="TypeScriptGeneratedFilesManager">
@ -363,43 +172,22 @@
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="add the comobowiz element" />
<MESSAGE value="show main menu" />
<MESSAGE value="show first level menu" />
<MESSAGE value="make json list for save level" />
<MESSAGE value="first release without comment" />
<MESSAGE value="add comment to projct" />
<MESSAGE value="fix some bugs" />
<option name="LAST_COMMIT_MESSAGE" value="fix some bugs" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/dist/jquery.combobox-wizard.js">
<entry file="file://$PROJECT_DIR$/example/index.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="179">
<caret line="122" column="48" lean-forward="true" selection-start-line="122" selection-start-column="48" selection-end-line="122" selection-end-column="48" />
<folding>
<element signature="e#35#41#0" expanded="true" />
</folding>
<state relative-caret-position="297">
<caret line="9" lean-forward="true" selection-start-line="9" selection-end-line="9" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/example/index.html">
<entry file="file://$PROJECT_DIR$/src/jquery.combobox-wizard.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="231">
<caret line="16" column="26" selection-start-line="16" selection-start-column="26" selection-end-line="16" selection-end-column="26" />
<state relative-caret-position="-1485">
<folding>
<element signature="n#style#0;n#div#0;n#form#0;n#body#0;n#html#0;n#!!top" expanded="true" />
<element signature="e#35#41#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/dist/jquery.combobox-wizard.css">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="429">
<caret line="22" column="23" selection-start-line="22" selection-start-column="23" selection-end-line="22" selection-end-column="23" />
</state>
</provider>
</entry>
</component>
</project>

+ 674
- 674
LICENSE
File diff suppressed because it is too large
View File


+ 2
- 2
README.md View File

@ -1,2 +1,2 @@
# comobox-wizard
combox wizard
# comobox-wizard
combox wizard

+ 149
- 149
example/index.html View File

@ -1,150 +1,150 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>combox wizard example</title>
<script src="jquery.min.js"></script>
<script src="../dist/jquery.combobox-wizard.js"></script>
<link rel="stylesheet" href="../dist/jquery.combobox-wizard.css">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0">
</head>
<body>
<form method="get" action="">
<div style="width: 50%;margin: 50px auto;">
<input type="text" name="test" id="test" placeholder="plz select"/>
</div>
<input type="submit" value="send"/>
</form>
<br>
<div>
<input type="text" id="test2" placeholder="Pleasem choose an item"/>
</div>
<script>
$(function () {
$("#test").wizcombobox({
mainTitle: 'x main cat',
datatree: [
{
title: 'text1',
value: 1,
child: []
}, {
title: 'text2',
value: 2,
child: []
},
{
title: 'text3',
value: 3,
child: [
{
title: 'lv2 text3',
value: 3,
child: []
},
{
title: 'lv2 text4',
value: 4,
child: [
{
title: 'lv3 text3',
value: 3,
child: []
},
{
title: 'lv3 text4',
value: 4,
child: []
},
{
title: 'lv3 text5',
value: 5,
child: []
},
]
},
{
title: 'lv2 text5',
value: 5,
child: []
}
]
},
{
title: 'text4',
value: 4,
child: []
},
{
title: 'text5',
value: 5,
child: []
},
]
});
$("#test2").wizcombobox({
datatree: [
{
title: '*** text1',
value: 1,
child: []
}, {
title: '*** text2',
value: 2,
child: []
},
{
title: '*** text3',
value: 3,
child: [
{
title: '*** lv2 text3',
value: 3,
child: []
},
{
title: '*** lv2 text4',
value: 4,
child: [
{
title: '*** lv3 text3',
value: 3,
child: []
},
{
title: '*** lv3 text4',
value: 4,
child: []
},
{
title: '*** lv3 text5',
value: 5,
child: []
},
]
},
{
title: '*** lv2 text5',
value: 5,
child: []
}
]
},
{
title: '*** text4',
value: 4,
child: []
},
{
title: '*** text5',
value: 5,
child: []
},
]
});
});
</script>
</body>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>combox wizard example</title>
<script src="jquery.min.js"></script>
<script src="../src/jquery.combobox-wizard.js"></script>
<link rel="stylesheet" href="../src/jquery.combobox-wizard.css">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0">
</head>
<body>
<form method="get" action="">
<div style="width: 50%;margin: 50px auto;">
<input type="text" name="test" id="test" placeholder="plz select"/>
</div>
<input type="submit" value="send"/>
</form>
<br>
<div>
<input type="text" id="test2" placeholder="Pleasem choose an item"/>
</div>
<script>
$(function () {
$("#test").wizcombobox({
mainTitle: 'x main cat',
datatree: [
{
title: 'text1',
value: 1,
child: []
}, {
title: 'text2',
value: 2,
child: []
},
{
title: 'text3',
value: 3,
child: [
{
title: 'lv2 text3',
value: 3,
child: []
},
{
title: 'lv2 text4',
value: 4,
child: [
{
title: 'lv3 text3',
value: 3,
child: []
},
{
title: 'lv3 text4',
value: 4,
child: []
},
{
title: 'lv3 text5',
value: 5,
child: []
},
]
},
{
title: 'lv2 text5',
value: 5,
child: []
}
]
},
{
title: 'text4',
value: 4,
child: []
},
{
title: 'text5',
value: 5,
child: []
},
]
});
$("#test2").wizcombobox({
datatree: [
{
title: '*** text1',
value: 1,
child: []
}, {
title: '*** text2',
value: 2,
child: []
},
{
title: '*** text3',
value: 3,
child: [
{
title: '*** lv2 text3',
value: 3,
child: []
},
{
title: '*** lv2 text4',
value: 4,
child: [
{
title: '*** lv3 text3',
value: 3,
child: []
},
{
title: '*** lv3 text4',
value: 4,
child: []
},
{
title: '*** lv3 text5',
value: 5,
child: []
},
]
},
{
title: '*** lv2 text5',
value: 5,
child: []
}
]
},
{
title: '*** text4',
value: 4,
child: []
},
{
title: '*** text5',
value: 5,
child: []
},
]
});
});
</script>
</body>
</html>

+ 5
- 5
example/jquery.min.js
File diff suppressed because it is too large
View File


dist/jquery.combobox-wizard.css → src/jquery.combobox-wizard.css View File

@ -1,75 +1,75 @@
.wzcmb{
border: 1px solid silver;
padding: 5px;
text-align: center;
border-radius: 4px;
cursor: pointer;
position: relative;
}
#wzcmb-list{
border: gray 1px solid;
width: 100%;
padding: 0;
position: absolute;
display: none;
list-style: none;
top: 45%;
left: -1px;
background: white;
border-radius: 0 0 6px 6px;
overflow: hidden;
z-index: 99;
overflow-x: hidden;
}
#wzcmb-list li{
padding: 4px;
border-bottom: 1px solid rgba(33,33,33,0.2);
display: block;
text-align: left;
background: white;
overflow: hidden;
}
#wzcmb-list li:nth-child(even){
background: #efefef;
}
#wzcmb-list li:last-child{
border: none;
}
#wzcmb-list li.wzcmb-childer{
background: white url("right.png") no-repeat;
background-position-x: calc(100% - 10px) ;
-ms-background-position-y: center;
background-position-y: center;
background-size: auto 50% ;
}
#wzcmb-list li:hover{
background-color: #dbedff ;
}
#wzcmb-list li.wzcmb-back{
background: white url("left.png") 5px no-repeat;
padding-left: 30px;
background-size: auto 50% ;
}
#wzcmb-list.out{
transform-origin: center right;
transform-style: preserve-3d;
transform: translateX(-100%) rotateY(-180deg) skew(0deg) ;
}
.anim{
-webkit-transition: all .6s linear;
-moz-transition: all .6s linear;
-o-transition: all .6s linear;
transition: all .6s linear;
}
/*.skew25y{*/
/**/
.wzcmb{
border: 1px solid silver;
padding: 5px;
text-align: center;
border-radius: 4px;
cursor: pointer;
position: relative;
}
#wzcmb-list{
border: gray 1px solid;
width: 100%;
padding: 0;
position: absolute;
display: none;
list-style: none;
top: 45%;
left: -1px;
background: white;
border-radius: 0 0 6px 6px;
overflow: hidden;
z-index: 99;
overflow-x: hidden;
}
#wzcmb-list li{
padding: 4px;
border-bottom: 1px solid rgba(33,33,33,0.2);
display: block;
text-align: left;
background: white;
overflow: hidden;
}
#wzcmb-list li:nth-child(even){
background: #efefef;
}
#wzcmb-list li:last-child{
border: none;
}
#wzcmb-list li.wzcmb-childer{
background: white url("right.png") no-repeat;
background-position-x: calc(100% - 10px) ;
-ms-background-position-y: center;
background-position-y: center;
background-size: auto 50% ;
}
#wzcmb-list li:hover{
background-color: #dbedff ;
}
#wzcmb-list li.wzcmb-back{
background: white url("left.png") 5px no-repeat;
padding-left: 30px;
background-size: auto 50% ;
}
#wzcmb-list.out{
transform-origin: center right;
transform-style: preserve-3d;
transform: translateX(-100%) rotateY(-180deg) skew(0deg) ;
}
.anim{
-webkit-transition: all .6s linear;
-moz-transition: all .6s linear;
-o-transition: all .6s linear;
transition: all .6s linear;
}
/*.skew25y{*/
/**/
/*}*/

dist/jquery.combobox-wizard.js → src/jquery.combobox-wizard.js View File

@ -1,258 +1,266 @@
;(function ($) {
$.fn.wizcombobox = function (options) {
// make app var for use in plugin
$.wcb = this;
// change plugin info
var settings = $.extend({
datatree: [],
mainTitle: 'Main category'
}, options);
// store navigation for trace where are we?
var navigatex = [];
// store last navigtion fot buffer use
var lastx = {
title: settings.mainTitle,
id: ''
};
// use for seleect update
this.target = null;
this.text = null;
/**
* initial element
* @param self
*/
this.init = function (self) {
lastx.title = settings.mainTitle;
// hide element
$(self).hide();
// set placehodler
var placeholder = 'Please select';
// check place holder
if ($(self).attr('placeholder') != undefined) {
placeholder = $(self).attr('placeholder');
}
// init element for click for choose
$(self).parent().append('<div class="wzcmb">' + placeholder + '</div>');
// initial idx for use in naviagion
settings.datatree = $.wcb.makeId('1', settings.datatree);
// on click combowizard
$(self).parent().find('.wzcmb').bind('click.open', function (e) {
// check is open list
if (!$(this).hasClass('active')) {
// find target for last value
$.wcb.target = $(this).parent().find('input');
// find select text position
$.wcb.text = $(self).parent().find('.wzcmb');
//if now list show list and countiniu
$(this).append('<ul id="wzcmb-list"></ul>');
// show first list main cat in list
$.wcb.showTree(settings.datatree);
// slide down list
$("#wzcmb-list").slideDown(function () {
$(document).bind('click.handlewsc', function (e) {
if (!$(event.target).is(".wzcmb-childer, .wzcmb-back")) {
$.wcb.resetClose();
$("#wzcmb-list").slideUp(200, function () {
$(this).remove();
});
$($.wcb.text).removeClass('active');
}
});
});
// add active class for check is open
$(this).addClass('active');
} else {
// if click not in main element
if (e.target !== this)
return;
// hide and remove list
$(this).removeClass('active');
$("#wzcmb-list").slideUp(100, function () {
$.wcb.resetClose();
$(this).remove();
})
}
});
// on click items
$(document).on('click', '#wzcmb-list li', function () {
// hast child
if ($(this).hasClass('wzcmb-childer')) {
// make navigation
let tmp = {
title: lastx.title,
id: lastx.id
};
navigatex.push(tmp);
lastx.title = $(this).text();
lastx.id = $(this).data('id');
// show child items
$("#wzcmb-list").addClass('anim out');
$.wcb.showTree($.wcb.findTree(settings.datatree, $(this).data('id')));
var ax = setTimeout(function () {
$("#wzcmb-list").removeClass('anim out');
}, 500);
} else if ($(this).hasClass('wzcmb-back')) { // if click on back
if (navigatex[navigatex.length - 1] != undefined) {
// roll back navigtaion to last
lastx.title = navigatex[navigatex.length - 1].title;
lastx.id = navigatex[navigatex.length - 1].id;
} else {
// check is navigation emoppty set def
lastx.title = settings.mainTitle;
lastx.id = '';
}
// pop last navigation item
navigatex.pop();
// get parent list
var lst = $.wcb.findTree(settings.datatree, $(this).data('id'));
// if has not parent show main cat
$("#wzcmb-list").addClass('anim out');
if (lst.length == 0) {
$.wcb.showTree(settings.datatree);
} else {
// then show parent list
$.wcb.showTree(lst);
}
var ax = setTimeout(function () {
$("#wzcmb-list").removeClass('anim out');
}, 500);
} else { // choose value
// set main input value
$($.wcb.target).val($(this).data('value'));
// set choosed test
$($.wcb.text).text($(this).text());
// remove active class and hide list
$($.wcb.text).removeClass('active');
$.wcb.resetClose();
$("#wzcmb-list").slideUp(100, function () {
$(this).remove();
})
}
});
}
/**
* make idx for navigatopm
* @param base base prefix for id
* @param lst list of json
* @returns {Array}
*/
this.makeId = function (base, lst) {
var all = [];
// each item of list
for (const ix in lst) {
let itm = lst[ix];
// add prefix + - + counter
let prefix = base + '-' + (parseInt(ix) + 1);
itm.idx = prefix;
// if has child
if (itm.child.length != 0) {
// recall this function for children
itm.child = $.wcb.makeId(prefix, itm.child);
}
all.push(itm);
}
return all;
};
/**
* show list into selector
* @param list
*/
this.showTree = function (list, cb) {
var content = '';
// clear li list
$("#wzcmb-list li").remove();
// back button handle
// has parent need back button
if (navigatex.length !== 0) {
// if navigation is empity not need back button
let back = navigatex[navigatex.length - 1];
content += '<li class="wzcmb-back" data-id="' + back.id + '"> &nbsp;' + back.title + '</li>';
}
// show list passed to function
for (const ix in list) {
let item = list[ix];
// ad childs
// check has child
if (item.child.length == 0) {
var clsx = ' class=""';
} else {
var clsx = ' class="wzcmb-childer"';
}
// li to list
content += '<li' + clsx + ' data-id="' + item.idx + '" data-value="' + item.value + '">' + item.title + '</li>';
}
console.log(content);
$("#wzcmb-list").html(content);
if (cb !== undefined) {
cb();
}
};
/**
* find idx in tree
* @param list
* @param idx
* @returns {*}
*/
this.findTree = function (list, idx) {
// make return by def
var back = [];
// each first level of list
for (const ix in list) {
let item = list[ix];
if (item.idx == idx) {
return item.child;
}
}
// if not fond in first level each the childs
for (const ix in list) {
let item = list[ix];
if (item.child.length !== 0) {
var tmp = $.wcb.findTree(item.child, idx);
// if found idx retrur
if (tmp.length !== 0) {
return tmp;
}
}
}
// then retrun defualt ret var
return back;
};
/**
* reset values on close
*/
this.resetClose = function () {
// reset navagtion value
navigatex = [];
lastx = {
title: settings.mainTitle,
id: ''
};
// reset docuemnt bind
$(document).unbind('click.handlewsc');
};
this.each(function () {
$.wcb.init(this);
});
return this;
};
;(function ($) {
"use strict";
$.fn.wizcombobox = function (options) {
// make app var for use in plugin
$.wcb = this;
// change plugin info
var settings = $.extend({
datatree: [],
mainTitle: 'Main category'
}, options);
// store navigation for trace where are we?
var navigatex = [];
// store last navigtion fot buffer use
var lastx = {
title: settings.mainTitle,
id: ''
};
// use for seleect update
this.target = null;
this.text = null;
/**
* initial element
* @param self
*/
this.init = function (self) {
lastx.title = settings.mainTitle;
// hide element
$(self).hide();
// set placehodler
var placeholder = 'Please select';
// check place holder
if ($(self).attr('placeholder') != undefined) {
placeholder = $(self).attr('placeholder');
}
// init element for click for choose
$(self).parent().append('<div class="wzcmb">' + placeholder + '</div>');
// initial idx for use in naviagion
settings.datatree = $.wcb.makeId('1', settings.datatree);
// on click combowizard
$(self).parent().find('.wzcmb').bind('click.open', function (e) {
// check is open list
if (!$(this).hasClass('active')) {
// find target for last value
$.wcb.target = $(this).parent().find('input');
// find select text position
$.wcb.text = $(self).parent().find('.wzcmb');
//if now list show list and countiniu
$(this).append('<ul id="wzcmb-list"></ul>');
// show first list main cat in list
$.wcb.showTree(settings.datatree);
// slide down list
$("#wzcmb-list").slideDown(function () {
$(document).bind('click.handlewsc', function (e) {
if (!$(event.target).is(".wzcmb-childer, .wzcmb-back")) {
$.wcb.resetClose();
$("#wzcmb-list").slideUp(200, function () {
$(this).remove();
});
$($.wcb.text).removeClass('active');
}
e.preventDefault();
return false;
});
});
// add active class for check is open
$(this).addClass('active');
} else {
// if click not in main element
if (e.target !== this)
return;
// hide and remove list
$(this).removeClass('active');
$("#wzcmb-list").slideUp(100, function () {
$.wcb.resetClose();
$(this).remove();
})
}
});
//reset
$(document).off('click', '#wzcmb-list li');
// on click items
$(document).on('click', '#wzcmb-list li', function () {
// hast child
if ($(this).hasClass('wzcmb-childer')) {
console.log('xy');
// make navigation
let tmp = {
title: lastx.title,
id: lastx.id
};
navigatex.push(tmp);
lastx.title = $(this).text();
lastx.id = $(this).data('id');
// show child items
$("#wzcmb-list").addClass('anim out');
$.wcb.showTree($.wcb.findTree(settings.datatree, $(this).data('id')));
var ax = setTimeout(function () {
$("#wzcmb-list").removeClass('anim out');
}, 500);
} else if ($(this).hasClass('wzcmb-back')) { // if click on back
if (navigatex[navigatex.length - 1] != undefined) {
// roll back navigtaion to last
lastx.title = navigatex[navigatex.length - 1].title;
lastx.id = navigatex[navigatex.length - 1].id;
} else {
// check is navigation emoppty set def
lastx.title = settings.mainTitle;
lastx.id = '';
}
// pop last navigation item
navigatex.pop();
// get parent list
var lst = $.wcb.findTree(settings.datatree, $(this).data('id'));
// if has not parent show main cat
$("#wzcmb-list").addClass('anim out');
if (lst.length == 0) {
$.wcb.showTree(settings.datatree);
} else {
// then show parent list
$.wcb.showTree(lst);
}
var ax = setTimeout(function () {
$("#wzcmb-list").removeClass('anim out');
}, 500);
} else { // choose value
// set main input value
$($.wcb.target).val($(this).data('value'));
// set choosed test
$($.wcb.text).text($(this).text());
// remove active class and hide list
$($.wcb.text).removeClass('active');
$.wcb.resetClose();
$("#wzcmb-list").slideUp(100, function () {
$(this).remove();
})
}
});
}
/**
* make idx for navigatopm
* @param base base prefix for id
* @param lst list of json
* @returns {Array}
*/
this.makeId = function (base, lst) {
var all = [];
// each item of list
for (const ix in lst) {
let itm = lst[ix];
// add prefix + - + counter
let prefix = base + '-' + (parseInt(ix) + 1);
itm.idx = prefix;
// if has child
if (itm.child.length != 0) {
// recall this function for children
itm.child = $.wcb.makeId(prefix, itm.child);
}
all.push(itm);
}
return all;
};
/**
* show list into selector
* @param list
*/
this.showTree = function (list, cb) {
var content = '';
// clear li list
$("#wzcmb-list li").remove();
// back button handle
// has parent need back button
if (navigatex.length !== 0) {
// if navigation is empity not need back button
let back = navigatex[navigatex.length - 1];
content += '<li class="wzcmb-back" data-id="' + back.id + '"> &nbsp;' + back.title + '</li>';
}
// show list passed to function
for (const ix in list) {
let item = list[ix];
// ad childs
// check has child
if (item.child.length == 0) {
var clsx = ' class=""';
} else {
var clsx = ' class="wzcmb-childer"';
}
// li to list
content += '<li' + clsx + ' data-id="' + item.idx + '" data-value="' + item.value + '">' + item.title + '</li>';
}
$("#wzcmb-list").html(content);
if (cb !== undefined) {
cb();
}
};
/**
* find idx in tree
* @param list
* @param idx
* @returns {*}
*/
this.findTree = function (list, idx) {
console.log(list);
// make return by def
var back = [];
// each first level of list
for (const ix in list) {
let item = list[ix];
if (item.idx == idx) {
return item.child;
}
}
// if not fond in first level each the childs
for (const ix in list) {
let item = list[ix];
if (item.child.length !== 0) {
var tmp = $.wcb.findTree(item.child, idx);
// if found idx retrur
if (tmp.length !== 0) {
return tmp;
}
}
}
// then retrun defualt ret var
return back;
};
/**
* reset values on close
*/
this.resetClose = function () {
// reset navagtion value
navigatex = [];
lastx = {
title: settings.mainTitle,
id: ''
};
// reset docuemnt bind
$(document).unbind('click.handlewsc');
};
this.setValue = function(newValue) {
var currentInnerText = this.html();
this.html(currentInnerText + " " + newValue)
};
this.each(function () {
$.wcb.init(this);
});
return this;
};
}(jQuery));

dist/left.png → src/left.png View File


dist/right.png → src/right.png View File


Loading…
Cancel
Save