{"id":15731753,"url":"https://github.com/juijs/jui-ui","last_synced_at":"2025-04-04T13:10:08.368Z","repository":{"id":392515,"uuid":"13986915","full_name":"juijs/jui-ui","owner":"juijs","description":"JUI provide all kinds of UI components that are used in web pages. However, charts and grids are not included.","archived":false,"fork":false,"pushed_at":"2022-12-09T06:12:39.000Z","size":45220,"stargazers_count":403,"open_issues_count":53,"forks_count":105,"subscribers_count":55,"default_branch":"master","last_synced_at":"2024-04-13T21:59:33.992Z","etag":null,"topics":["component-library","javascript","ui"],"latest_commit_sha":null,"homepage":"http://uiplay.jui.io","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juijs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-30T13:16:39.000Z","updated_at":"2024-03-29T08:40:19.000Z","dependencies_parsed_at":"2023-01-13T10:14:45.071Z","dependency_job_id":null,"html_url":"https://github.com/juijs/jui-ui","commit_stats":null,"previous_names":["juijs/jui"],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juijs%2Fjui-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juijs%2Fjui-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juijs%2Fjui-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juijs%2Fjui-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juijs","download_url":"https://codeload.github.com/juijs/jui-ui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247182338,"owners_count":20897379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["component-library","javascript","ui"],"created_at":"2024-10-04T00:05:04.908Z","updated_at":"2025-04-04T13:10:08.353Z","avatar_url":"https://github.com/juijs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Installation\n\n### NPM\n```bash\nnpm install juijs-ui\n```\n\n### Browser\n\n```html\n\u003clink rel=\"stylesheet\" href=\"../dist/jui-ui.classic.css\" /\u003e\n\u003cscript src=\"https://code.jquery.com/jquery-2.2.4.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.rawgit.com/juijs/jui-core/es6/dist/jui-core.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"../dist/jui-ui.js\"\u003e\u003c/script\u003e\n```\n\n### ES Modules\n\nThe difference with the existing method is that you need to add the module directly using the 'use' function.\n\n```js\nimport jui from 'juijs-ui'\nimport TimepickerComp from 'juijs-ui/src/components/timepicker.js'\nimport Styles from './index.less'\n\njui.use(TimepickerComp);\n```\n\nBelow is the index.less file. You can only use the style you want to bundle.\n\n```less\n.jui {\n  @import \"../node_modules/juijs-ui/src/styles/base/mixins.less\";\n  @import \"../node_modules/juijs-ui/src/styles/common.less\";\n  @import \"../node_modules/juijs-ui/src/styles/common.theme.less\";\n  @import \"../node_modules/juijs-ui/src/styles/icon.less\";\n  @import \"../node_modules/juijs-ui/src/styles/icon.theme.less\";\n  @import \"../node_modules/juijs-ui/src/styles/timepicker.less\";\n  @import \"../node_modules/juijs-ui/src/styles/timepicker.theme.less\";\n  @import \"../node_modules/juijs-ui/src/styles/theme/classic.less\";\n}\n```\n\n## Usage\n\n```html\n\u003cbody class=\"jui\"\u003e\n    \u003cdiv id=\"timepicker_date\" class=\"timepicker calendar small\" style=\"margin-right: 3px;\"\u003e\n        \u003cinput type=\"input\" class=\"year\" maxlength=\"4\" /\u003e-\u003cinput type=\"input\" class=\"month\" maxlength=\"2\" /\u003e-\u003cinput type=\"input\" class=\"date\" maxlength=\"2\" /\u003e\n        \u003ci class=\"icon-calendar\"\u003e\u003c/i\u003e\n    \u003c/div\u003e\n    \n    \u003cdiv id=\"timepicker_time\" class=\"timepicker small\"\u003e\n        \u003cinput type=\"input\" class=\"hours\" maxlength=\"2\" value=\"00\" /\u003e :\n        \u003cinput type=\"input\" class=\"minutes\" maxlength=\"2\" value=\"00\" /\u003e\n        \u003ci class=\"icon-arrow7\"\u003e\u003c/i\u003e\n    \u003c/div\u003e\n\u003c/body\u003e\n```\n\nThe UI component creation code is the same as the existing one.\n\n```js\njui.ready([ \"ui.timepicker\" ], function(timepicker) {\n    timepicker(\"#timepicker_date\");\n    timepicker(\"#timepicker_time\");\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuijs%2Fjui-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuijs%2Fjui-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuijs%2Fjui-ui/lists"}