create-basicjs 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -2
- package/bin/create-basicjs.js +58 -5
- package/bin/verify-package.js +1 -1
- package/package.json +2 -2
- package/payload/projects/tauri/.github/workflows/build.yml +86 -0
- package/payload/projects/tauri/.github/workflows/tests.yml +87 -0
- package/payload/projects/tauri/AGENTS.md +128 -0
- package/payload/projects/tauri/CLAUDE.md +1 -0
- package/payload/projects/tauri/LICENSE +201 -0
- package/payload/projects/tauri/NOTICE +8 -0
- package/payload/projects/tauri/README.md +269 -0
- package/payload/projects/tauri/checks/window-check.js +189 -0
- package/payload/projects/tauri/gitignore +8 -0
- package/payload/projects/tauri/handbook/01-getting-started.md +188 -0
- package/payload/projects/tauri/handbook/02-the-project.md +264 -0
- package/payload/projects/tauri/handbook/03-the-page.md +260 -0
- package/payload/projects/tauri/handbook/04-commands.md +265 -0
- package/payload/projects/tauri/handbook/05-events-and-state.md +275 -0
- package/payload/projects/tauri/handbook/06-plugins.md +282 -0
- package/payload/projects/tauri/handbook/07-the-window-and-the-app.md +431 -0
- package/payload/projects/tauri/handbook/08-security.md +374 -0
- package/payload/projects/tauri/handbook/09-tests-and-checks.md +266 -0
- package/payload/projects/tauri/handbook/10-building-and-releasing.md +238 -0
- package/payload/projects/tauri/handbook/11-troubleshooting.md +259 -0
- package/payload/projects/tauri/handbook/README.md +125 -0
- package/payload/projects/tauri/handbook/turkce/01-getting-started.md +193 -0
- package/payload/projects/tauri/handbook/turkce/02-the-project.md +272 -0
- package/payload/projects/tauri/handbook/turkce/03-the-page.md +272 -0
- package/payload/projects/tauri/handbook/turkce/04-commands.md +271 -0
- package/payload/projects/tauri/handbook/turkce/05-events-and-state.md +284 -0
- package/payload/projects/tauri/handbook/turkce/06-plugins.md +286 -0
- package/payload/projects/tauri/handbook/turkce/07-the-window-and-the-app.md +433 -0
- package/payload/projects/tauri/handbook/turkce/08-security.md +384 -0
- package/payload/projects/tauri/handbook/turkce/09-tests-and-checks.md +275 -0
- package/payload/projects/tauri/handbook/turkce/10-building-and-releasing.md +241 -0
- package/payload/projects/tauri/handbook/turkce/11-troubleshooting.md +264 -0
- package/payload/projects/tauri/handbook/turkce/README.md +128 -0
- package/payload/projects/tauri/images/app.png +0 -0
- package/payload/projects/tauri/src-tauri/Cargo.lock +4389 -0
- package/payload/projects/tauri/src-tauri/Cargo.toml +31 -0
- package/payload/projects/tauri/src-tauri/app-icon.svg +16 -0
- package/payload/projects/tauri/src-tauri/build.rs +15 -0
- package/payload/projects/tauri/src-tauri/capabilities/default.json +7 -0
- package/payload/projects/tauri/src-tauri/gitignore +5 -0
- package/payload/projects/tauri/src-tauri/icons/128x128.png +0 -0
- package/payload/projects/tauri/src-tauri/icons/128x128@2x.png +0 -0
- package/payload/projects/tauri/src-tauri/icons/32x32.png +0 -0
- package/payload/projects/tauri/src-tauri/icons/icon.icns +0 -0
- package/payload/projects/tauri/src-tauri/icons/icon.ico +0 -0
- package/payload/projects/tauri/src-tauri/src/check.rs +144 -0
- package/payload/projects/tauri/src-tauri/src/files.rs +255 -0
- package/payload/projects/tauri/src-tauri/src/main.rs +45 -0
- package/payload/projects/tauri/src-tauri/src/sizes.rs +214 -0
- package/payload/projects/tauri/src-tauri/tauri.conf.json +44 -0
- package/payload/projects/tauri/src-tauri/tests/project.rs +243 -0
- package/payload/projects/tauri/ui/app.js +459 -0
- package/payload/projects/tauri/ui/backend.js +196 -0
- package/payload/projects/tauri/ui/basic/LICENSE +14 -0
- package/payload/projects/tauri/ui/basic/basic.min.css +1 -0
- package/payload/projects/tauri/ui/basic/basic.min.js +78 -0
- package/payload/projects/tauri/ui/basic/font/open-sans/LICENSE.txt +206 -0
- package/payload/projects/tauri/ui/basic/font/open-sans/OpenSans-Bold.ttf +0 -0
- package/payload/projects/tauri/ui/basic/font/open-sans/OpenSans-Regular.ttf +0 -0
- package/payload/projects/tauri/ui/basic/scroll-bar.min.js +3 -0
- package/payload/projects/tauri/ui/comp/_sources.txt +9 -0
- package/payload/projects/tauri/ui/comp/components.min.js +21 -0
- package/payload/projects/tauri/ui/index.html +28 -0
- package/payload/projects/tauri/ui/sizes.js +104 -0
- package/payload/starter/AGENTS.md +11 -6
- package/payload/starter/README.md +1 -1
- package/payload/starter/_basic/VERSION +1 -1
- package/payload/starter/_basic/assets/cards/almond-blossom.png +0 -0
- package/payload/starter/_basic/assets/cards/blackberry.png +0 -0
- package/payload/starter/_basic/assets/cards/borage.png +0 -0
- package/payload/starter/_basic/assets/cards/chamomile.png +0 -0
- package/payload/starter/_basic/assets/cards/dill.png +0 -0
- package/payload/starter/_basic/assets/cards/eucalyptus.png +0 -0
- package/payload/starter/_basic/assets/cards/fennel.png +0 -0
- package/payload/starter/_basic/assets/cards/fig.png +0 -0
- package/payload/starter/_basic/assets/cards/juniper.png +0 -0
- package/payload/starter/_basic/assets/cards/lavender.png +0 -0
- package/payload/starter/_basic/assets/cards/lemon.png +0 -0
- package/payload/starter/_basic/assets/cards/olives.png +0 -0
- package/payload/starter/_basic/assets/cards/oregano.png +0 -0
- package/payload/starter/_basic/assets/cards/pepper.png +0 -0
- package/payload/starter/_basic/assets/cards/physalis.png +0 -0
- package/payload/starter/_basic/assets/cards/pomegranate.png +0 -0
- package/payload/starter/_basic/assets/cards/poppy.png +0 -0
- package/payload/starter/_basic/assets/cards/rosehip.png +0 -0
- package/payload/starter/_basic/assets/cards/saffron.png +0 -0
- package/payload/starter/_basic/assets/categories/cappuccino.png +0 -0
- package/payload/starter/_basic/assets/categories/chocolate-milk.png +0 -0
- package/payload/starter/_basic/assets/categories/coffee.png +0 -0
- package/payload/starter/_basic/assets/categories/frappe.png +0 -0
- package/payload/starter/_basic/assets/categories/iced-caffee.png +0 -0
- package/payload/starter/_basic/assets/categories/milkshake.png +0 -0
- package/payload/starter/_basic/assets/categories/orange-juice.png +0 -0
- package/payload/starter/_basic/assets/categories/tea.png +0 -0
- package/payload/starter/_basic/assets/fruids/brokoli.png +0 -0
- package/payload/starter/_basic/assets/fruids/cilek.png +0 -0
- package/payload/starter/_basic/assets/fruids/domates.png +0 -0
- package/payload/starter/_basic/assets/fruids/elma.png +0 -0
- package/payload/starter/_basic/assets/fruids/havuc.png +0 -0
- package/payload/starter/_basic/assets/fruids/karpuz.png +0 -0
- package/payload/starter/_basic/assets/fruids/limon.png +0 -0
- package/payload/starter/_basic/assets/fruids/muz.png +0 -0
- package/payload/starter/_basic/assets/fruids/nar.png +0 -0
- package/payload/starter/_basic/assets/fruids/patlican.png +0 -0
- package/payload/starter/_basic/assets/fruids/yabanmersini.png +0 -0
- package/payload/starter/_basic/assets/fruids/yesilbiber.png +0 -0
- package/payload/starter/_basic/basic/LICENSE +1 -1
- package/payload/starter/_basic/basic/basic.css +3 -6
- package/payload/starter/_basic/basic/basic.js +154 -60
- package/payload/starter/_basic/basic/basic.min.js +19 -6
- package/payload/starter/_basic/basic/scroll-bar.js +4 -2
- package/payload/starter/_basic/basic/scroll-bar.min.js +1 -0
- package/payload/starter/_basic/comp/accordion.js +659 -0
- package/payload/starter/_basic/comp/action-button.js +22 -23
- package/payload/starter/_basic/comp/action-tab-bar.js +8 -8
- package/payload/starter/_basic/comp/app-bar.js +12 -11
- package/payload/starter/_basic/comp/{badge-v2.js → badge.js} +51 -5
- package/payload/starter/_basic/comp/bottom-bar.js +62 -26
- package/payload/starter/_basic/comp/breadcrumbs.js +4 -2
- package/payload/starter/_basic/comp/canvas.js +652 -0
- package/payload/starter/_basic/comp/chat-view.js +827 -0
- package/payload/starter/_basic/comp/check-box.js +137 -21
- package/payload/starter/_basic/comp/code-editor.js +1171 -0
- package/payload/starter/_basic/comp/{select-color.js → color-picker.js} +62 -29
- package/payload/starter/_basic/comp/context-menu.js +348 -31
- package/payload/starter/_basic/comp/{currency-input-b.js → currency-field.js} +48 -29
- package/payload/starter/_basic/comp/data-table.js +114 -42
- package/payload/starter/_basic/comp/{select-date.js → date-picker.js} +104 -52
- package/payload/starter/_basic/comp/dialog.js +214 -76
- package/payload/starter/_basic/comp/email-field.js +65 -0
- package/payload/starter/_basic/comp/{select-file.js → file-picker.js} +245 -57
- package/payload/starter/_basic/comp/filters.js +374 -60
- package/payload/starter/_basic/comp/form.js +38 -26
- package/payload/starter/_basic/comp/full-screen-select.js +36 -33
- package/payload/starter/_basic/comp/gauge.js +12 -8
- package/payload/starter/_basic/comp/graph-box.js +3911 -0
- package/payload/starter/_basic/comp/grid-group.js +185 -0
- package/payload/starter/_basic/comp/hold-to-confirm-button.js +16 -7
- package/payload/starter/_basic/comp/image-view.js +598 -0
- package/payload/starter/_basic/comp/item-list.js +507 -163
- package/payload/starter/_basic/comp/json-editor.js +3221 -0
- package/payload/starter/_basic/comp/json-view.js +597 -0
- package/payload/starter/_basic/comp/label-editor.js +22 -19
- package/payload/starter/_basic/comp/left-menu.js +89 -22
- package/payload/starter/_basic/comp/line-progress-bar.js +196 -45
- package/payload/starter/_basic/comp/loading-screen.js +49 -18
- package/payload/starter/_basic/comp/log-view.js +530 -0
- package/payload/starter/_basic/comp/{login-page-v2.js → login-page.js} +205 -106
- package/payload/starter/_basic/comp/markdown-view.js +1046 -0
- package/payload/starter/_basic/comp/menu-bar.js +624 -0
- package/payload/starter/_basic/comp/mini-graph-box.js +20 -11
- package/payload/starter/_basic/comp/minimal-accent.js +208 -0
- package/payload/starter/_basic/comp/notice.js +15 -13
- package/payload/starter/_basic/comp/{number-input-b.js → number-field.js} +26 -19
- package/payload/starter/_basic/comp/numeric-keyboard.js +15 -13
- package/payload/starter/_basic/comp/page-control.js +21 -4
- package/payload/starter/_basic/comp/page-header.js +7 -6
- package/payload/starter/_basic/comp/password-field.js +192 -0
- package/payload/starter/_basic/comp/period-bar.js +8 -7
- package/payload/starter/_basic/comp/{phone-input-b.js → phone-field.js} +80 -45
- package/payload/starter/_basic/comp/progress-bar.js +401 -85
- package/payload/starter/_basic/comp/property-panel.js +1022 -123
- package/payload/starter/_basic/comp/radio-button.js +79 -19
- package/payload/starter/_basic/comp/range-slider.js +569 -0
- package/payload/starter/_basic/comp/rich-text-editor.js +33 -30
- package/payload/starter/_basic/comp/scroll-area.js +308 -0
- package/payload/starter/_basic/comp/scrolling-text.js +10 -9
- package/payload/starter/_basic/comp/search-input.js +725 -0
- package/payload/starter/_basic/comp/search-results.js +60 -24
- package/payload/starter/_basic/comp/select-box.js +229 -107
- package/payload/starter/_basic/comp/settings-row.js +20 -19
- package/payload/starter/_basic/comp/side-panel.js +53 -10
- package/payload/starter/_basic/comp/slider-field.js +264 -88
- package/payload/starter/_basic/comp/slider.js +556 -86
- package/payload/starter/_basic/comp/smart-button.js +438 -353
- package/payload/starter/_basic/comp/smart-table.js +748 -186
- package/payload/starter/_basic/comp/sortable-list.js +47 -38
- package/payload/starter/_basic/comp/spark-line-box.js +25 -16
- package/payload/starter/_basic/comp/splitter.js +411 -0
- package/payload/starter/_basic/comp/status-bar.js +408 -0
- package/payload/starter/_basic/comp/step-bar.js +345 -0
- package/payload/starter/_basic/comp/stepper.js +103 -49
- package/payload/starter/_basic/comp/tabs.js +67 -18
- package/payload/starter/_basic/comp/tag-input.js +50 -10
- package/payload/starter/_basic/comp/tap-effect.js +6 -4
- package/payload/starter/_basic/comp/text-area-field.js +233 -0
- package/payload/starter/_basic/comp/text-field.js +1006 -0
- package/payload/starter/_basic/comp/time-line.js +102 -28
- package/payload/starter/_basic/comp/{select-time.js → time-picker.js} +104 -51
- package/payload/starter/_basic/comp/tiny-select.js +79 -39
- package/payload/starter/_basic/comp/tiny-table.js +12 -8
- package/payload/starter/_basic/comp/toast.js +87 -34
- package/payload/starter/_basic/comp/toggle.js +149 -28
- package/payload/starter/_basic/comp/tool-bar.js +760 -0
- package/payload/starter/_basic/comp/tooltip.js +80 -17
- package/payload/starter/_basic/comp/tree-view.js +124 -41
- package/payload/starter/_basic/comp/ui-effects.js +17 -11
- package/payload/starter/_basic/comp/ui-standards.js +5 -4
- package/payload/starter/_basic/comp/url-field.js +190 -0
- package/payload/starter/_basic/comp/web-view.js +70 -16
- package/payload/starter/_basic/docs/basic-js-animated-rules.md +15 -9
- package/payload/starter/_basic/docs/basic-js-code-rules.md +42 -5
- package/payload/starter/_basic/docs/basic-js-components.md +12 -17
- package/payload/starter/_basic/docs/basic-js-core.md +5 -4
- package/payload/starter/_basic/docs/component-index.md +248 -107
- package/payload/starter/_basic/docs/component-template.js +28 -24
- package/payload/starter/_basic/docs/handbook/00-introduction.md +6 -2
- package/payload/starter/_basic/docs/handbook/00-what-is-new.md +21 -0
- package/payload/starter/_basic/docs/handbook/01-label.md +4 -4
- package/payload/starter/_basic/docs/handbook/02-box.md +7 -7
- package/payload/starter/_basic/docs/handbook/03-image.md +4 -4
- package/payload/starter/_basic/docs/handbook/04-common-properties.md +6 -5
- package/payload/starter/_basic/docs/handbook/05-autolayout.md +8 -7
- package/payload/starter/_basic/docs/handbook/06-button.md +3 -3
- package/payload/starter/_basic/docs/handbook/07-input.md +3 -3
- package/payload/starter/_basic/docs/handbook/08-page.md +3 -3
- package/payload/starter/_basic/docs/handbook/09-useful-examples.md +39 -58
- package/payload/starter/_basic/docs/handbook/10-motion.md +6 -6
- package/payload/starter/_basic/docs/handbook/11-other-functions.md +1 -0
- package/payload/starter/_basic/docs/handbook/13-sound.md +3 -3
- package/payload/starter/_basic/docs/handbook/14-using-components.md +180 -0
- package/payload/starter/_basic/docs/handbook/15-making-a-component.md +338 -0
- package/payload/starter/_basic/docs/what-is-new.md +106 -0
- package/payload/starter/_basic/examples/accordion.htm +174 -0
- package/payload/starter/_basic/examples/action-button.htm +74 -32
- package/payload/starter/_basic/examples/action-tab-bar.htm +5 -6
- package/payload/starter/_basic/examples/app-bar.htm +63 -41
- package/payload/starter/_basic/examples/badge.htm +96 -0
- package/payload/starter/_basic/examples/bottom-bar-2.htm +61 -48
- package/payload/starter/_basic/examples/bottom-bar.htm +74 -16
- package/payload/starter/_basic/examples/breadcrumbs.htm +160 -150
- package/payload/starter/_basic/examples/canvas.htm +190 -0
- package/payload/starter/_basic/examples/chat-view.htm +143 -0
- package/payload/starter/_basic/examples/check-box-2.htm +71 -82
- package/payload/starter/_basic/examples/check-box-3.htm +72 -83
- package/payload/starter/_basic/examples/check-box.htm +207 -0
- package/payload/starter/_basic/examples/code-editor-2.htm +259 -0
- package/payload/starter/_basic/examples/code-editor.htm +272 -0
- package/payload/starter/_basic/examples/color-picker.htm +206 -0
- package/payload/starter/_basic/examples/context-menu.htm +180 -139
- package/payload/starter/_basic/examples/currency-field.htm +105 -0
- package/payload/starter/_basic/examples/data-table-2.htm +2 -1
- package/payload/starter/_basic/examples/data-table-3.htm +1 -1
- package/payload/starter/_basic/examples/data-table-4.htm +15 -12
- package/payload/starter/_basic/examples/data-table-5.htm +11 -3
- package/payload/starter/_basic/examples/data-table.htm +90 -40
- package/payload/starter/_basic/examples/date-picker.htm +239 -0
- package/payload/starter/_basic/examples/dialog-centered.htm +394 -40
- package/payload/starter/_basic/examples/dialog.htm +267 -46
- package/payload/starter/_basic/examples/email-field.htm +102 -0
- package/payload/starter/_basic/examples/file-picker.htm +296 -0
- package/payload/starter/_basic/examples/filters.htm +33 -22
- package/payload/starter/_basic/examples/{form-1.htm → form.htm} +18 -19
- package/payload/starter/_basic/examples/full-screen-select.htm +81 -58
- package/payload/starter/_basic/examples/gallery-styled.htm +896 -0
- package/payload/starter/_basic/examples/gauge.htm +95 -81
- package/payload/starter/_basic/examples/graph-box.htm +365 -0
- package/payload/starter/_basic/examples/grid-group.htm +179 -0
- package/payload/starter/_basic/examples/hold-to-confirm-button.htm +102 -113
- package/payload/starter/_basic/examples/image-view.htm +195 -0
- package/payload/starter/_basic/examples/item-list-2.htm +138 -94
- package/payload/starter/_basic/examples/item-list.htm +191 -86
- package/payload/starter/_basic/examples/json-editor.htm +206 -0
- package/payload/starter/_basic/examples/json-view.htm +153 -0
- package/payload/starter/_basic/examples/label-editor.htm +85 -89
- package/payload/starter/_basic/examples/left-menu-2.htm +93 -0
- package/payload/starter/_basic/examples/left-menu.htm +42 -37
- package/payload/starter/_basic/examples/line-progress-bar.htm +155 -114
- package/payload/starter/_basic/examples/loading-screen.htm +149 -125
- package/payload/starter/_basic/examples/log-view.htm +175 -0
- package/payload/starter/_basic/examples/{login-page-dark-v2.htm → login-page-dark.htm} +265 -267
- package/payload/starter/_basic/examples/{login-page-v2.htm → login-page.htm} +266 -267
- package/payload/starter/_basic/examples/markdown-view.htm +220 -0
- package/payload/starter/_basic/examples/menu-bar-2.htm +225 -0
- package/payload/starter/_basic/examples/menu-bar.htm +145 -0
- package/payload/starter/_basic/examples/mini-graph-box.htm +98 -109
- package/payload/starter/_basic/examples/minimal-accent.htm +196 -0
- package/payload/starter/_basic/examples/minimal-theme.htm +432 -0
- package/payload/starter/_basic/examples/notice.htm +13 -4
- package/payload/starter/_basic/examples/number-field.htm +103 -0
- package/payload/starter/_basic/examples/numeric-keyboard.htm +44 -42
- package/payload/starter/_basic/examples/page-control.htm +181 -130
- package/payload/starter/_basic/examples/page-header.htm +57 -30
- package/payload/starter/_basic/examples/password-field.htm +117 -0
- package/payload/starter/_basic/examples/period-bar.htm +43 -29
- package/payload/starter/_basic/examples/phone-field-select-country.htm +292 -0
- package/payload/starter/_basic/examples/phone-field.htm +104 -0
- package/payload/starter/_basic/examples/progress-bar-ozden.htm +229 -92
- package/payload/starter/_basic/examples/progress-bar.htm +222 -174
- package/payload/starter/_basic/examples/property-panel.htm +152 -52
- package/payload/starter/_basic/examples/radio-button-2.htm +101 -109
- package/payload/starter/_basic/examples/radio-button-3.htm +81 -71
- package/payload/starter/_basic/examples/radio-button.htm +289 -0
- package/payload/starter/_basic/examples/range-slider.htm +171 -0
- package/payload/starter/_basic/examples/rich-text-editor.htm +115 -110
- package/payload/starter/_basic/examples/scroll-area.htm +293 -0
- package/payload/starter/_basic/examples/scrolling-text.htm +27 -6
- package/payload/starter/_basic/examples/search-input-2-light.htm +112 -0
- package/payload/starter/_basic/examples/search-input-3-dark.htm +105 -0
- package/payload/starter/_basic/examples/{search-input-v2-place.htm → search-input-place.htm} +25 -26
- package/payload/starter/_basic/examples/search-input.htm +159 -0
- package/payload/starter/_basic/examples/search-results.htm +85 -88
- package/payload/starter/_basic/examples/select-box-2-item-view.htm +304 -0
- package/payload/starter/_basic/examples/select-box-ozden-dark-text.htm +70 -0
- package/payload/starter/_basic/examples/select-box-ozden-item.htm +6 -5
- package/payload/starter/_basic/examples/select-box-ozden-text.htm +5 -3
- package/payload/starter/_basic/examples/select-box.htm +190 -159
- package/payload/starter/_basic/examples/settings-row.htm +92 -43
- package/payload/starter/_basic/examples/side-panel-2.htm +63 -25
- package/payload/starter/_basic/examples/side-panel.htm +84 -70
- package/payload/starter/_basic/examples/slider-2-split.htm +186 -0
- package/payload/starter/_basic/examples/slider-field-ozden.htm +286 -0
- package/payload/starter/_basic/examples/slider-field.htm +174 -134
- package/payload/starter/_basic/examples/slider.htm +257 -180
- package/payload/starter/_basic/examples/smart-button-3-ozden.htm +170 -257
- package/payload/starter/_basic/examples/smart-button-4-dark.htm +86 -47
- package/payload/starter/_basic/examples/smart-button-5-features.htm +130 -125
- package/payload/starter/_basic/examples/smart-button-alternatif.htm +266 -0
- package/payload/starter/_basic/examples/smart-button.htm +207 -174
- package/payload/starter/_basic/examples/smart-table-2.htm +43 -56
- package/payload/starter/_basic/examples/smart-table-3.htm +148 -113
- package/payload/starter/_basic/examples/smart-table-4.htm +37 -50
- package/payload/starter/_basic/examples/{smart-table-1.htm → smart-table-5.htm} +37 -48
- package/payload/starter/_basic/examples/smart-table.htm +183 -0
- package/payload/starter/_basic/examples/sortable-list.htm +191 -142
- package/payload/starter/_basic/examples/spark-line-box.htm +149 -161
- package/payload/starter/_basic/examples/splitter.htm +164 -0
- package/payload/starter/_basic/examples/status-bar.htm +166 -0
- package/payload/starter/_basic/examples/step-bar.htm +129 -0
- package/payload/starter/_basic/examples/stepper-2.htm +86 -58
- package/payload/starter/_basic/examples/stepper.htm +146 -135
- package/payload/starter/_basic/examples/tabs-2.htm +58 -67
- package/payload/starter/_basic/examples/tabs.htm +197 -180
- package/payload/starter/_basic/examples/tag-input.htm +150 -153
- package/payload/starter/_basic/examples/tap-effect.htm +23 -19
- package/payload/starter/_basic/examples/text-area-field.htm +104 -0
- package/payload/starter/_basic/examples/text-field-2.htm +113 -0
- package/payload/starter/_basic/examples/text-field-3-style.htm +105 -0
- package/payload/starter/_basic/examples/text-field-4-custom-unit.htm +96 -0
- package/payload/starter/_basic/examples/{input-b-ex5-warning-icon.htm → text-field-5-warning-icon.htm} +19 -19
- package/payload/starter/_basic/examples/text-field-6-modern-dark.htm +114 -0
- package/payload/starter/_basic/examples/text-field-7-modern.htm +106 -0
- package/payload/starter/_basic/examples/text-field-8-light-dark.htm +159 -0
- package/payload/starter/_basic/examples/text-field.htm +163 -0
- package/payload/starter/_basic/examples/time-line.htm +180 -116
- package/payload/starter/_basic/examples/time-picker.htm +240 -0
- package/payload/starter/_basic/examples/tiny-select.htm +118 -86
- package/payload/starter/_basic/examples/tiny-table.htm +40 -34
- package/payload/starter/_basic/examples/toast.htm +145 -147
- package/payload/starter/_basic/examples/toggle-2.htm +99 -68
- package/payload/starter/_basic/examples/toggle-3.htm +104 -101
- package/payload/starter/_basic/examples/toggle.htm +161 -93
- package/payload/starter/_basic/examples/tool-bar.htm +172 -0
- package/payload/starter/_basic/examples/tooltip-2.htm +110 -60
- package/payload/starter/_basic/examples/tooltip-3.htm +124 -65
- package/payload/starter/_basic/examples/tooltip-4.htm +218 -0
- package/payload/starter/_basic/examples/tooltip.htm +206 -124
- package/payload/starter/_basic/examples/tree-view.htm +210 -182
- package/payload/starter/_basic/examples/ui-effects.htm +207 -185
- package/payload/starter/_basic/examples/ui-standards.htm +200 -139
- package/payload/starter/_basic/examples/url-field.htm +120 -0
- package/payload/starter/_basic/examples/web-view.htm +109 -110
- package/payload/starter/_basic/min/accordion.min.js +2 -0
- package/payload/starter/_basic/min/action-button.min.js +1 -1
- package/payload/starter/_basic/min/app-bar.min.js +1 -1
- package/payload/starter/_basic/min/badge.min.js +2 -0
- package/payload/starter/_basic/min/bottom-bar.min.js +1 -1
- package/payload/starter/_basic/min/canvas.min.js +2 -0
- package/payload/starter/_basic/min/chat-view.min.js +2 -0
- package/payload/starter/_basic/min/check-box.min.js +1 -1
- package/payload/starter/_basic/min/code-editor.min.js +2 -0
- package/payload/starter/_basic/min/color-picker.min.js +2 -0
- package/payload/starter/_basic/min/context-menu.min.js +1 -1
- package/payload/starter/_basic/min/currency-field.min.js +2 -0
- package/payload/starter/_basic/min/data-table.min.js +1 -1
- package/payload/starter/_basic/min/date-picker.min.js +2 -0
- package/payload/starter/_basic/min/dialog.min.js +1 -1
- package/payload/starter/_basic/min/email-field.min.js +2 -0
- package/payload/starter/_basic/min/file-picker.min.js +2 -0
- package/payload/starter/_basic/min/filters.min.js +1 -1
- package/payload/starter/_basic/min/form.min.js +1 -1
- package/payload/starter/_basic/min/full-screen-select.min.js +1 -1
- package/payload/starter/_basic/min/gauge.min.js +1 -1
- package/payload/starter/_basic/min/graph-box.min.js +2 -0
- package/payload/starter/_basic/min/grid-group.min.js +2 -0
- package/payload/starter/_basic/min/hold-to-confirm-button.min.js +1 -1
- package/payload/starter/_basic/min/image-view.min.js +2 -0
- package/payload/starter/_basic/min/item-list.min.js +1 -1
- package/payload/starter/_basic/min/json-editor.min.js +2 -0
- package/payload/starter/_basic/min/json-view.min.js +2 -0
- package/payload/starter/_basic/min/label-editor.min.js +1 -1
- package/payload/starter/_basic/min/left-menu.min.js +1 -1
- package/payload/starter/_basic/min/line-progress-bar.min.js +1 -1
- package/payload/starter/_basic/min/loading-screen.min.js +1 -1
- package/payload/starter/_basic/min/log-view.min.js +2 -0
- package/payload/starter/_basic/min/login-page.min.js +2 -0
- package/payload/starter/_basic/min/markdown-view.min.js +2 -0
- package/payload/starter/_basic/min/menu-bar.min.js +2 -0
- package/payload/starter/_basic/min/mini-graph-box.min.js +1 -1
- package/payload/starter/_basic/min/minimal-accent.min.js +2 -0
- package/payload/starter/_basic/min/notice.min.js +1 -1
- package/payload/starter/_basic/min/number-field.min.js +2 -0
- package/payload/starter/_basic/min/numeric-keyboard.min.js +1 -1
- package/payload/starter/_basic/min/page-control.min.js +1 -1
- package/payload/starter/_basic/min/password-field.min.js +2 -0
- package/payload/starter/_basic/min/phone-field.min.js +2 -0
- package/payload/starter/_basic/min/progress-bar.min.js +1 -1
- package/payload/starter/_basic/min/property-panel.min.js +1 -1
- package/payload/starter/_basic/min/radio-button.min.js +1 -1
- package/payload/starter/_basic/min/range-slider.min.js +2 -0
- package/payload/starter/_basic/min/rich-text-editor.min.js +1 -1
- package/payload/starter/_basic/min/scroll-area.min.js +2 -0
- package/payload/starter/_basic/min/scrolling-text.min.js +1 -1
- package/payload/starter/_basic/min/search-input.min.js +2 -0
- package/payload/starter/_basic/min/search-results.min.js +1 -1
- package/payload/starter/_basic/min/select-box.min.js +1 -1
- package/payload/starter/_basic/min/settings-row.min.js +1 -1
- package/payload/starter/_basic/min/side-panel.min.js +1 -1
- package/payload/starter/_basic/min/slider-field.min.js +1 -1
- package/payload/starter/_basic/min/slider.min.js +1 -1
- package/payload/starter/_basic/min/smart-button.min.js +1 -1
- package/payload/starter/_basic/min/smart-table.min.js +1 -1
- package/payload/starter/_basic/min/sortable-list.min.js +1 -1
- package/payload/starter/_basic/min/spark-line-box.min.js +1 -1
- package/payload/starter/_basic/min/splitter.min.js +2 -0
- package/payload/starter/_basic/min/status-bar.min.js +2 -0
- package/payload/starter/_basic/min/step-bar.min.js +2 -0
- package/payload/starter/_basic/min/stepper.min.js +1 -1
- package/payload/starter/_basic/min/tabs.min.js +1 -1
- package/payload/starter/_basic/min/tag-input.min.js +1 -1
- package/payload/starter/_basic/min/text-area-field.min.js +2 -0
- package/payload/starter/_basic/min/text-field.min.js +2 -0
- package/payload/starter/_basic/min/time-line.min.js +1 -1
- package/payload/starter/_basic/min/time-picker.min.js +2 -0
- package/payload/starter/_basic/min/tiny-select.min.js +1 -1
- package/payload/starter/_basic/min/toast.min.js +1 -1
- package/payload/starter/_basic/min/toggle.min.js +1 -1
- package/payload/starter/_basic/min/tool-bar.min.js +2 -0
- package/payload/starter/_basic/min/tooltip.min.js +1 -1
- package/payload/starter/_basic/min/tree-view.min.js +1 -1
- package/payload/starter/_basic/min/ui-effects.min.js +1 -1
- package/payload/starter/_basic/min/url-field.min.js +2 -0
- package/payload/starter/_basic/min/web-view.min.js +1 -1
- package/payload/templates/booking/app/app.js +11 -8
- package/payload/templates/booking/app/settings.js +4 -4
- package/payload/templates/booking/index.htm +3 -3
- package/payload/templates/booking/pages/account.js +6 -6
- package/payload/templates/booking/pages/book.js +1 -1
- package/payload/templates/booking/pages/services.js +5 -4
- package/payload/templates/classic/app/app.js +15 -11
- package/payload/templates/classic/app/settings.js +22 -20
- package/payload/templates/classic/assets/_attribute.txt +2 -0
- package/payload/templates/classic/assets/cards/dill.png +0 -0
- package/payload/templates/classic/assets/cards/fennel.png +0 -0
- package/payload/templates/classic/assets/cards/juniper.png +0 -0
- package/payload/templates/classic/assets/cards/olives.png +0 -0
- package/payload/templates/classic/assets/cards/oregano.png +0 -0
- package/payload/templates/classic/assets/cards/pepper.png +0 -0
- package/payload/templates/classic/assets/cards/rosehip.png +0 -0
- package/payload/templates/classic/assets/categories/cappuccino.png +0 -0
- package/payload/templates/classic/assets/categories/chocolate-milk.png +0 -0
- package/payload/templates/classic/assets/categories/coffee.png +0 -0
- package/payload/templates/classic/assets/categories/frappe.png +0 -0
- package/payload/templates/classic/assets/categories/iced-caffee.png +0 -0
- package/payload/templates/classic/assets/categories/milkshake.png +0 -0
- package/payload/templates/classic/assets/categories/orange-juice.png +0 -0
- package/payload/templates/classic/assets/categories/tea.png +0 -0
- package/payload/templates/classic/index.htm +2 -2
- package/payload/templates/classic/pages/example.js +10 -10
- package/payload/templates/classic/pages/examples.js +44 -43
- package/payload/templates/classic/pages/home.js +16 -15
- package/payload/templates/classic/pages/info-pages.js +5 -5
- package/payload/templates/classic/pages/search.js +8 -7
- package/payload/templates/classic/pages/settings.js +13 -13
- package/payload/templates/classic/pages/tasks.js +1 -0
- package/payload/templates/classic/pages/template-pages.js +12 -11
- package/payload/templates/coffee-shop/app/app.js +12 -8
- package/payload/templates/coffee-shop/app/settings.js +4 -4
- package/payload/templates/coffee-shop/index.htm +3 -3
- package/payload/templates/coffee-shop/pages/drink.js +1 -1
- package/payload/templates/coffee-shop/pages/menu.js +5 -4
- package/payload/templates/forms/TEMPLATE.md +1 -1
- package/payload/templates/forms/appointment-form.htm +55 -53
- package/payload/templates/forms/contact-form-to-mail.htm +38 -37
- package/payload/templates/forms/contact-form-to-supabase.htm +47 -46
- package/payload/templates/forms/dark-contact-form.htm +43 -40
- package/payload/templates/forms/event-registration-form.htm +80 -77
- package/payload/templates/forms/feedback-form.htm +54 -54
- package/payload/templates/forms/order-form.htm +88 -84
- package/payload/templates/forms/recruitment-form.htm +60 -60
- package/payload/templates/forms/service/readme.md +9 -8
- package/payload/templates/forms/service/send-form-mail.php +38 -21
- package/payload/templates/forms/support-ticket-form.htm +67 -65
- package/payload/templates/panel/common/module-page.js +2 -2
- package/payload/templates/panel/common/theme.js +37 -10
- package/payload/templates/panel/common/top-bar.js +45 -40
- package/payload/templates/panel/index.htm +59 -60
- package/payload/templates/panel/module10/greenhouse.htm +98 -113
- package/payload/templates/panel/module11/arduino-projects.htm +47 -58
- package/payload/templates/panel/module6/energy-hub.htm +71 -103
- package/payload/templates/panel/module7/3d-printers.htm +58 -81
- package/payload/templates/panel/module8/cold-rooms.htm +58 -79
- package/payload/templates/panel/module9/elevator-fleet.htm +72 -93
- package/payload/templates/panel/pages/activity.js +134 -152
- package/payload/templates/panel/pages/contents.js +291 -308
- package/payload/templates/panel/pages/customers.js +250 -267
- package/payload/templates/panel/pages/edit-user.js +31 -30
- package/payload/templates/panel/pages/home.js +39 -70
- package/payload/templates/panel/pages/media.js +166 -183
- package/payload/templates/panel/pages/notifications.js +7 -7
- package/payload/templates/panel/pages/orders.js +200 -217
- package/payload/templates/panel/pages/products.js +259 -278
- package/payload/templates/panel/pages/reports.js +74 -123
- package/payload/templates/panel/pages/roles.js +57 -60
- package/payload/templates/panel/pages/settings.js +127 -143
- package/payload/templates/panel/pages/user-actions.js +106 -110
- package/payload/templates/panel/pages/user-list.js +221 -238
- package/payload/templates/panel/pages/users.js +14 -29
- package/payload/templates/shop/TEMPLATE.md +1 -1
- package/payload/templates/shop/app/app.js +11 -8
- package/payload/templates/shop/app/settings.js +4 -4
- package/payload/templates/shop/index.htm +3 -3
- package/payload/templates/shop/pages/account.js +7 -7
- package/payload/templates/shop/pages/cart.js +1 -1
- package/payload/templates/shop/pages/checkout.js +2 -2
- package/payload/templates/shop/pages/product.js +2 -2
- package/payload/templates/shop/pages/shop.js +6 -5
- package/payload/templates/starter/TEMPLATE.md +1 -1
- package/payload/templates/starter/app/app.js +12 -8
- package/payload/templates/starter/app/settings.js +14 -11
- package/payload/templates/starter/index.htm +3 -3
- package/payload/templates/starter/pages/about.js +1 -1
- package/payload/templates/starter/pages/home.js +2 -2
- package/payload/templates/starter/pages/product.js +1 -1
- package/payload/templates/starter/pages/products.js +5 -5
- package/payload/templates/starter/pages/settings.js +1 -1
- package/payload/templates/starter/pages/tasks.js +8 -8
- package/payload/templates/starter/pages/website.js +1 -1
- package/payload/starter/_basic/comp/chart-box/chart-4.5.1.umd.min.js +0 -13
- package/payload/starter/_basic/comp/chart-box/chart-js-LICENSE.md +0 -9
- package/payload/starter/_basic/comp/chart-box.js +0 -868
- package/payload/starter/_basic/comp/email-input-b.js +0 -57
- package/payload/starter/_basic/comp/input-b.js +0 -759
- package/payload/starter/_basic/comp/password-input-b.js +0 -164
- package/payload/starter/_basic/comp/search-input-v2.js +0 -427
- package/payload/starter/_basic/comp/textarea-b.js +0 -184
- package/payload/starter/_basic/comp/url-input-b.js +0 -145
- package/payload/starter/_basic/examples/badgeV2.htm +0 -68
- package/payload/starter/_basic/examples/chart-box.htm +0 -287
- package/payload/starter/_basic/examples/check-box-1.htm +0 -220
- package/payload/starter/_basic/examples/currency-input-b.htm +0 -71
- package/payload/starter/_basic/examples/email-input-b.htm +0 -67
- package/payload/starter/_basic/examples/input-b-ex1.htm +0 -132
- package/payload/starter/_basic/examples/input-b-ex2.htm +0 -136
- package/payload/starter/_basic/examples/input-b-ex3-style.htm +0 -113
- package/payload/starter/_basic/examples/input-b-ex4-custom-unit.htm +0 -112
- package/payload/starter/_basic/examples/input-b-ex6-dark.htm +0 -108
- package/payload/starter/_basic/examples/input-b-ex7-ozden.htm +0 -153
- package/payload/starter/_basic/examples/number-input-b.htm +0 -68
- package/payload/starter/_basic/examples/password-input-b.htm +0 -70
- package/payload/starter/_basic/examples/phone-input-b-select-country.htm +0 -298
- package/payload/starter/_basic/examples/phone-input-b.htm +0 -72
- package/payload/starter/_basic/examples/radio-button-1.htm +0 -264
- package/payload/starter/_basic/examples/search-input-v2-ozden.htm +0 -128
- package/payload/starter/_basic/examples/search-input-v2.htm +0 -65
- package/payload/starter/_basic/examples/select-color.htm +0 -215
- package/payload/starter/_basic/examples/select-date.htm +0 -244
- package/payload/starter/_basic/examples/select-file.htm +0 -268
- package/payload/starter/_basic/examples/select-time.htm +0 -249
- package/payload/starter/_basic/examples/smart-button-2.htm +0 -220
- package/payload/starter/_basic/examples/textarea-b.htm +0 -76
- package/payload/starter/_basic/examples/unfinished-login-page-dark-supabase.htm +0 -221
- package/payload/starter/_basic/examples/unfinished-login-page-supabase.htm +0 -221
- package/payload/starter/_basic/examples/url-input-b.htm +0 -85
- package/payload/starter/_basic/min/badge-v2.min.js +0 -2
- package/payload/starter/_basic/min/chart-box.min.js +0 -2
- package/payload/starter/_basic/min/currency-input-b.min.js +0 -2
- package/payload/starter/_basic/min/email-input-b.min.js +0 -2
- package/payload/starter/_basic/min/input-b.min.js +0 -2
- package/payload/starter/_basic/min/login-page-v2.min.js +0 -2
- package/payload/starter/_basic/min/number-input-b.min.js +0 -2
- package/payload/starter/_basic/min/password-input-b.min.js +0 -2
- package/payload/starter/_basic/min/phone-input-b.min.js +0 -2
- package/payload/starter/_basic/min/search-input-v2.min.js +0 -2
- package/payload/starter/_basic/min/select-color.min.js +0 -2
- package/payload/starter/_basic/min/select-date.min.js +0 -2
- package/payload/starter/_basic/min/select-file.min.js +0 -2
- package/payload/starter/_basic/min/select-time.min.js +0 -2
- package/payload/starter/_basic/min/textarea-b.min.js +0 -2
- package/payload/starter/_basic/min/url-input-b.min.js +0 -2
- package/payload/templates/panel/common/bridge.min.js +0 -0
- package/payload/templates/panel/common/full-view.min.js +0 -1
- package/payload/templates/panel/common/main-view.min.js +0 -1
- package/payload/templates/panel/common/module-page.min.js +0 -1
- package/payload/templates/panel/common/right-view.min.js +0 -1
- package/payload/templates/panel/common/start-page.min.js +0 -1
- package/payload/templates/panel/common/top-bar-v25-07-29-1.js +0 -330
- package/payload/templates/panel/common/top-bar-v25-07-29-2.js +0 -265
- package/payload/templates/panel/common/top-bar.min.js +0 -1
- package/payload/templates/panel/common/ui-standards.min.js +0 -1
- package/payload/templates/panel/managers/database.min.js +0 -1
- package/payload/templates/panel/managers/login.min.js +0 -1
- package/payload/templates/panel/pages/_page-template.min.js +0 -1
- package/payload/templates/panel/pages/contents.min.js +0 -1
- package/payload/templates/panel/pages/edit-user.min.js +0 -1
- package/payload/templates/panel/pages/edit-users-table.min.js +0 -1
- package/payload/templates/panel/pages/home.min.js +0 -1
- package/payload/templates/panel/pages/notifications.min.js +0 -1
- package/payload/templates/panel/pages/reports.min.js +0 -1
- package/payload/templates/panel/pages/settings.min.js +0 -1
- package/payload/templates/panel/pages/user-actions.min.js +0 -2
- package/payload/templates/panel/pages/users.min.js +0 -1
- /package/payload/starter/_basic/comp/{password-input-b → password-field}/hide-btn.png +0 -0
- /package/payload/starter/_basic/comp/{password-input-b → password-field}/hide-btn2.png +0 -0
- /package/payload/starter/_basic/comp/{password-input-b → password-field}/show-btn.png +0 -0
- /package/payload/starter/_basic/comp/{password-input-b → password-field}/show-btn2.png +0 -0
- /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/clear-round.svg +0 -0
- /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/clear.svg +0 -0
- /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/filter.png +0 -0
- /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/filter.svg +0 -0
- /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/search.svg +0 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<base href="../../"><!-- This page uses the paths of a page at the root of the project. -->
|
|
5
|
+
|
|
6
|
+
<title>ToolBar</title>
|
|
7
|
+
|
|
8
|
+
<meta charset="UTF-8">
|
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
10
|
+
|
|
11
|
+
<!-- LIBRARY FILES -->
|
|
12
|
+
<link rel="stylesheet" type="text/css" href="_basic/basic/basic.min.css">
|
|
13
|
+
<script src="_basic/basic/basic.min.js" type="text/javascript" charset="utf-8"></script>
|
|
14
|
+
<script src="_basic/basic/scroll-bar.min.js" type="text/javascript" charset="utf-8"></script>
|
|
15
|
+
|
|
16
|
+
<!-- COMPONENT FILES -->
|
|
17
|
+
<script src="_basic/comp/tooltip.js" type="text/javascript" charset="utf-8"></script>
|
|
18
|
+
<script src="_basic/comp/smart-button.js" type="text/javascript" charset="utf-8"></script>
|
|
19
|
+
<script src="_basic/comp/context-menu.js" type="text/javascript" charset="utf-8"></script>
|
|
20
|
+
<script src="_basic/comp/menu-bar.js" type="text/javascript" charset="utf-8"></script>
|
|
21
|
+
<script src="_basic/comp/status-bar.js" type="text/javascript" charset="utf-8"></script>
|
|
22
|
+
<script src="_basic/comp/tool-bar.js" type="text/javascript" charset="utf-8"></script>
|
|
23
|
+
<script src="_basic/comp/scroll-area.js" type="text/javascript" charset="utf-8"></script>
|
|
24
|
+
|
|
25
|
+
<script>
|
|
26
|
+
|
|
27
|
+
/* Bismillah */
|
|
28
|
+
|
|
29
|
+
// ToolBar (comp/tool-bar.js): the row of small buttons of a window, in the two themes.
|
|
30
|
+
// Icons with a hint, lines between the groups, Bold stays pressed, one of the Align buttons stays pressed,
|
|
31
|
+
// Insert opens a menu, Run stands at the right end. Ctrl+S and F9 run their buttons.
|
|
32
|
+
// Make the window narrow, or press "Narrow": the last buttons go into the "..." menu.
|
|
33
|
+
// Tab comes to the bar; the arrows go between the buttons.
|
|
34
|
+
|
|
35
|
+
// *** VARIABLES:
|
|
36
|
+
const PAGE_COLOR = "#ECEBE8";
|
|
37
|
+
const SOFT_TEXT = "#6F6E6B";
|
|
38
|
+
const WINDOW_WIDTH_NARROW = 280;
|
|
39
|
+
const WINDOW_MIN_WIDTH = 340;
|
|
40
|
+
const WINDOW_MAX_WIDTH = 620;
|
|
41
|
+
const WINDOW_HEIGHT = 250;
|
|
42
|
+
const MENUS = [
|
|
43
|
+
{ text: "File", items: ["New", "Open"] },
|
|
44
|
+
{ text: "Edit", items: ["Undo", "Redo"] },
|
|
45
|
+
];
|
|
46
|
+
const LOOKS = [
|
|
47
|
+
{ title: "Light", note: "styleName: \"light\" (default)", styleName: "light", windowColor: "#FFFFFF", lineColor: Black(0.14), softColor: Black(0.55) },
|
|
48
|
+
{ title: "Dark", note: "styleName: \"dark\"", styleName: "dark", windowColor: "#1C1C1B", lineColor: White(0.1), softColor: White(0.6) },
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
let windows = [];
|
|
52
|
+
let isNarrow = 0;
|
|
53
|
+
let btnNarrow;
|
|
54
|
+
|
|
55
|
+
// First running function. (basic.js calls it when the page is ready)
|
|
56
|
+
const start = function () {
|
|
57
|
+
|
|
58
|
+
page.color = PAGE_COLOR;
|
|
59
|
+
|
|
60
|
+
// SCROLL AREA: Page (it scrolls when the window is lower than the samples)
|
|
61
|
+
ScrollArea({ align: "center top", gap: 16, padding: [16, 28] });
|
|
62
|
+
|
|
63
|
+
Label({ text: "ToolBar", fontSize: 24, bold: 1, textColor: Black(0.8) });
|
|
64
|
+
|
|
65
|
+
btnNarrow = SmartButton({ labelText: "Narrow", onClick: toggleNarrow });
|
|
66
|
+
|
|
67
|
+
// GROUP: The two themes side by side (one under the other on a narrow screen)
|
|
68
|
+
HGroup({ width: "100%", height: "auto", align: "center top", gap: 20, wrap: 1, clipContent: 0 });
|
|
69
|
+
LOOKS.forEach(createWindow);
|
|
70
|
+
endGroup();
|
|
71
|
+
|
|
72
|
+
endGroup();
|
|
73
|
+
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
// *** OTHER FUNCTIONS:
|
|
77
|
+
|
|
78
|
+
const toggleNarrow = function () {
|
|
79
|
+
isNarrow = (isNarrow) ? 0 : 1;
|
|
80
|
+
btnNarrow.setLabelText((isNarrow) ? "Wide" : "Narrow");
|
|
81
|
+
windows.forEach(function (one) { one.width = (isNarrow) ? WINDOW_WIDTH_NARROW : "100%"; });
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
// The items of a bar. Its status bar tells what was pressed.
|
|
85
|
+
const getItems = function (tell) {
|
|
86
|
+
return [
|
|
87
|
+
{ key: "new", icon: "new", hint: "New", onClick: function () { tell("New"); } },
|
|
88
|
+
{ key: "open", icon: "open", hint: "Open" },
|
|
89
|
+
{ key: "save", icon: "save", hint: "Save", shortcut: "Ctrl+S" },
|
|
90
|
+
"-",
|
|
91
|
+
{ key: "undo", icon: "undo", hint: "Undo" },
|
|
92
|
+
{ key: "redo", icon: "redo", hint: "Redo", enabled: 0 },
|
|
93
|
+
"-",
|
|
94
|
+
{ key: "bold", icon: "bold", hint: "Bold", toggle: 1, checked: 1 },
|
|
95
|
+
{ key: "italic", icon: "italic", hint: "Italic", toggle: 1 },
|
|
96
|
+
"-",
|
|
97
|
+
{ key: "left", icon: "alignLeft", hint: "Align left", group: "align", checked: 1 },
|
|
98
|
+
{ key: "center", icon: "alignCenter", hint: "Align center", group: "align" },
|
|
99
|
+
{ key: "right", icon: "alignRight", hint: "Align right", group: "align" },
|
|
100
|
+
"-",
|
|
101
|
+
{ key: "insert", text: "Insert", hint: "Insert an object", items: [
|
|
102
|
+
{ text: "A picture", key: "picture", onClick: function () { tell("A picture"); } },
|
|
103
|
+
{ text: "A table", key: "table", onClick: function () { tell("A table"); } },
|
|
104
|
+
] },
|
|
105
|
+
" ",
|
|
106
|
+
{ key: "run", icon: "play", text: "Run", shortcut: "F9" },
|
|
107
|
+
];
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
// GROUP: A title and a small window: a MenuBar, a ToolBar, a page and a StatusBar
|
|
111
|
+
const createWindow = function (look) {
|
|
112
|
+
|
|
113
|
+
VGroup({
|
|
114
|
+
width: "auto",
|
|
115
|
+
height: "auto",
|
|
116
|
+
align: "left top",
|
|
117
|
+
gap: 8,
|
|
118
|
+
clipContent: 0,
|
|
119
|
+
css: { flex: "1 1 " + WINDOW_MIN_WIDTH + "px", maxWidth: WINDOW_MAX_WIDTH + "px", minWidth: "0" },
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
HGroup({ width: "100%", height: "auto", align: "left center", gap: 8 });
|
|
123
|
+
Label({ text: look.title, fontSize: 15, bold: 1, textColor: Black(0.75) });
|
|
124
|
+
Label({ text: look.note, fontSize: 13, textColor: SOFT_TEXT });
|
|
125
|
+
endGroup();
|
|
126
|
+
|
|
127
|
+
// GROUP: The window
|
|
128
|
+
const oneWindow = VGroup({
|
|
129
|
+
width: "100%",
|
|
130
|
+
height: WINDOW_HEIGHT,
|
|
131
|
+
align: "left top",
|
|
132
|
+
color: look.windowColor,
|
|
133
|
+
border: 1,
|
|
134
|
+
borderColor: look.lineColor,
|
|
135
|
+
round: 8,
|
|
136
|
+
});
|
|
137
|
+
windows.push(oneWindow);
|
|
138
|
+
|
|
139
|
+
MenuBar({ styleName: look.styleName, menus: MENUS, shrink: 0 });
|
|
140
|
+
|
|
141
|
+
let statusBar = null;
|
|
142
|
+
const tell = function (text) { statusBar.setMessageText(text); };
|
|
143
|
+
ToolBar({
|
|
144
|
+
styleName: look.styleName,
|
|
145
|
+
items: getItems(tell),
|
|
146
|
+
onClick: function (self, item) { tell(item.hint || item.text); },
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
Label({
|
|
150
|
+
width: "100%",
|
|
151
|
+
height: "auto",
|
|
152
|
+
grow: 1,
|
|
153
|
+
text: "The page of the window",
|
|
154
|
+
fontSize: 14,
|
|
155
|
+
textColor: look.softColor,
|
|
156
|
+
padding: 14,
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
statusBar = StatusBar({ styleName: look.styleName, messageText: "Press a button.", shrink: 0 });
|
|
160
|
+
|
|
161
|
+
endGroup();
|
|
162
|
+
|
|
163
|
+
endGroup();
|
|
164
|
+
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
</script>
|
|
168
|
+
</head>
|
|
169
|
+
|
|
170
|
+
<body></body>
|
|
171
|
+
|
|
172
|
+
</html>
|
|
@@ -15,13 +15,14 @@
|
|
|
15
15
|
|
|
16
16
|
<script src="_basic/comp/tooltip.js" type="text/javascript" charset="utf-8"></script>
|
|
17
17
|
<script src="_basic/comp/smart-button.js" type="text/javascript" charset="utf-8"></script>
|
|
18
|
+
<script src="_basic/comp/scroll-area.js" type="text/javascript" charset="utf-8"></script>
|
|
18
19
|
|
|
19
20
|
<script>
|
|
20
21
|
|
|
21
22
|
/* Bismillah */
|
|
22
23
|
|
|
23
|
-
// Tooltip
|
|
24
|
-
//
|
|
24
|
+
// Tooltip: the bubble: an arrow with the edge of the bubble around it, Tooltip.show() at an object, and a bubble
|
|
25
|
+
// that never leaves the screen.
|
|
25
26
|
|
|
26
27
|
const INK = "#232323";
|
|
27
28
|
const RED = "#E8796D";
|
|
@@ -29,11 +30,33 @@
|
|
|
29
30
|
|
|
30
31
|
// The looks of the bubbles of Tooltip.show() (Tooltip.BUBBLE_LOOK keys)
|
|
31
32
|
const LOOKS = {
|
|
32
|
-
edged: {
|
|
33
|
-
|
|
33
|
+
edged: {
|
|
34
|
+
color: "white",
|
|
35
|
+
textColor: INK,
|
|
36
|
+
border: 2,
|
|
37
|
+
borderColor: INK,
|
|
38
|
+
arrow: 14,
|
|
39
|
+
round: 8,
|
|
40
|
+
padding: [12, 8],
|
|
41
|
+
grow: 1,
|
|
42
|
+
},
|
|
43
|
+
red: {
|
|
44
|
+
color: RED,
|
|
45
|
+
textColor: "white",
|
|
46
|
+
bold: 1,
|
|
47
|
+
border: 0,
|
|
48
|
+
arrow: 12,
|
|
49
|
+
round: 8,
|
|
50
|
+
padding: [12, 7],
|
|
51
|
+
shadow: "0 6px 16px rgba(0, 0, 0, 0.18)",
|
|
52
|
+
grow: 1,
|
|
53
|
+
},
|
|
34
54
|
dark: { color: INK, textColor: "white", border: 0, arrow: 10, round: 6, grow: 1 },
|
|
35
55
|
};
|
|
36
56
|
|
|
57
|
+
// The white plain button of the page (the hover of ozden2 stays gray)
|
|
58
|
+
const PLAIN = { styleName: "ozden2", style: { box: { color: "white" } } };
|
|
59
|
+
|
|
37
60
|
// The bubbles of Tooltip.show() that are open (they are on the page: they go when the page box scrolls)
|
|
38
61
|
let openBubbles = [];
|
|
39
62
|
|
|
@@ -50,10 +73,27 @@
|
|
|
50
73
|
|
|
51
74
|
// GROUP: A card with a title and a short description
|
|
52
75
|
const startCard = function (title, description) {
|
|
53
|
-
VGroup({
|
|
54
|
-
|
|
76
|
+
VGroup({
|
|
77
|
+
width: 640,
|
|
78
|
+
height: "auto",
|
|
79
|
+
align: "left top",
|
|
80
|
+
gap: 14,
|
|
81
|
+
padding: 20,
|
|
82
|
+
color: "white",
|
|
83
|
+
round: 12,
|
|
84
|
+
border: 1,
|
|
85
|
+
borderColor: Black(0.08),
|
|
86
|
+
clipContent: 0,
|
|
87
|
+
css: { maxWidth: "100%" },
|
|
88
|
+
});
|
|
55
89
|
Label({ plainText: title, fontSize: 15, bold: 1, textColor: Black(0.8) });
|
|
56
|
-
Label({
|
|
90
|
+
Label({
|
|
91
|
+
plainText: description,
|
|
92
|
+
width: "100%",
|
|
93
|
+
fontSize: 13,
|
|
94
|
+
textColor: Black(0.5),
|
|
95
|
+
css: { lineHeight: "1.4", whiteSpace: "normal" },
|
|
96
|
+
});
|
|
57
97
|
HGroup({ width: "100%", height: "auto", align: "left center", gap: 12, wrap: 1, clipContent: 0 });
|
|
58
98
|
};
|
|
59
99
|
|
|
@@ -82,8 +122,7 @@
|
|
|
82
122
|
let bubble = null;
|
|
83
123
|
return SmartButton({
|
|
84
124
|
labelText: text,
|
|
85
|
-
|
|
86
|
-
style: { box: { color: "white" } },
|
|
125
|
+
...PLAIN,
|
|
87
126
|
onClick: function (self) {
|
|
88
127
|
if (bubble && !bubble._isRemoved) {
|
|
89
128
|
bubble.remove();
|
|
@@ -99,16 +138,19 @@
|
|
|
99
138
|
const createEdgeButtons = function () {
|
|
100
139
|
const EDGE = 6;
|
|
101
140
|
const places = [
|
|
102
|
-
{ text: "↖", hint: "At the top left corner: it goes under and slides in", left: EDGE, top: EDGE },
|
|
103
|
-
{ text: "↗", hint: "At the top right corner: it goes under and slides in", right: EDGE, top: EDGE },
|
|
104
|
-
{ text: "↙", hint: "At the bottom left corner: it goes up and slides in", left: EDGE, bottom: EDGE },
|
|
105
|
-
{ text: "↘", hint: "At the bottom right corner: it goes up and slides in", right: EDGE, bottom: EDGE },
|
|
141
|
+
{ text: "↖", hint: "At the top left corner: it goes under and slides in", edges: { left: EDGE, top: EDGE } },
|
|
142
|
+
{ text: "↗", hint: "At the top right corner: it goes under and slides in", edges: { right: EDGE, top: EDGE } },
|
|
143
|
+
{ text: "↙", hint: "At the bottom left corner: it goes up and slides in", edges: { left: EDGE, bottom: EDGE } },
|
|
144
|
+
{ text: "↘", hint: "At the bottom right corner: it goes up and slides in", edges: { right: EDGE, bottom: EDGE } },
|
|
106
145
|
];
|
|
107
146
|
return places.map(function (place) {
|
|
108
|
-
const button = SmartButton({
|
|
109
|
-
|
|
110
|
-
|
|
147
|
+
const button = SmartButton({
|
|
148
|
+
labelText: place.text,
|
|
149
|
+
width: 40,
|
|
150
|
+
height: 36,
|
|
151
|
+
style: { layout: { padding: [0, 0] }, label: { fontSize: 16 } },
|
|
111
152
|
});
|
|
153
|
+
button.props(place.edges);
|
|
112
154
|
button.hint = place.hint;
|
|
113
155
|
addMouseTooltip(button, place.hint, "top");
|
|
114
156
|
return button;
|
|
@@ -119,51 +161,59 @@
|
|
|
119
161
|
|
|
120
162
|
page.color = "#F0F2F5";
|
|
121
163
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
164
|
+
// WHY onScroll: a bubble of Tooltip.show() is on the page; the content under it moves when the page scrolls
|
|
165
|
+
ScrollArea({ align: "center top", gap: 24, padding: [60, 40], onScroll: removeBubbles });
|
|
166
|
+
|
|
167
|
+
Label({ text: "Tooltip: the bubble", fontSize: 26, bold: 1, textColor: Black(0.8) });
|
|
168
|
+
|
|
169
|
+
startCard(
|
|
170
|
+
"1. It follows the mouse, with an arrow",
|
|
171
|
+
"Tooltip({ target, hintText, hintPosition, lbl_arrow: 10, lbl_border: 1 }): the arrow points at the mouse; the edge of the bubble goes around the arrow too, as one line."
|
|
172
|
+
);
|
|
173
|
+
["top", "bottom", "left", "right"].forEach(function (position) {
|
|
174
|
+
const button = SmartButton({ labelText: position, ...PLAIN });
|
|
175
|
+
addMouseTooltip(button, "hintPosition: \"" + position + "\"", position);
|
|
176
|
+
});
|
|
177
|
+
endCard();
|
|
178
|
+
|
|
179
|
+
startCard("2. No arrow (the look of before)", "lbl_arrow: 0 (the default): the bubble of before, a little over the mouse.");
|
|
180
|
+
const plain = SmartButton({ labelText: "Hover me", ...PLAIN });
|
|
181
|
+
plain.tooltip = Tooltip({ target: plain, hintText: "Hint about this button" });
|
|
182
|
+
endCard();
|
|
183
|
+
|
|
184
|
+
startCard(
|
|
185
|
+
"3. Tooltip.show(): a bubble at an object",
|
|
186
|
+
"Tooltip.show(target, text, look, side) puts a bubble at an object, not under the mouse (Ex: the \"Click again\" of a SmartButton ask). It returns the bubble: bubble.remove(). A click opens one, the next click closes it."
|
|
187
|
+
);
|
|
188
|
+
toggleButton("Edged, top", "border: 2, arrow: 14", LOOKS.edged, "top");
|
|
189
|
+
toggleButton("Edged, bottom", "The edge goes around the arrow", LOOKS.edged, "bottom");
|
|
190
|
+
toggleButton("Red, no edge", "Click again to delete.", LOOKS.red, "top");
|
|
191
|
+
toggleButton("Dark, right", "On the right side", LOOKS.dark, "right");
|
|
192
|
+
endCard();
|
|
193
|
+
|
|
194
|
+
startCard(
|
|
195
|
+
"4. Never out of the screen",
|
|
196
|
+
"The small buttons at the corners of the screen have tooltips: the bubble slides inside, or goes to the other side when there is no room; the arrow still points at its place. \"Show all\" opens a bubble at each corner for 3 seconds."
|
|
197
|
+
);
|
|
198
|
+
SmartButton({
|
|
199
|
+
labelText: "Show all",
|
|
200
|
+
onClick: function () {
|
|
201
|
+
removeBubbles();
|
|
202
|
+
edgeButtons.forEach(function (button) {
|
|
203
|
+
showBubble(button, button.hint, LOOKS.edged, "top");
|
|
204
|
+
});
|
|
205
|
+
setTimeout(removeBubbles, SHOW_TIME);
|
|
206
|
+
},
|
|
207
|
+
});
|
|
208
|
+
endCard();
|
|
209
|
+
|
|
210
|
+
startCard(
|
|
211
|
+
"The look keys",
|
|
212
|
+
"Tooltip.BUBBLE_LOOK: fontSize, bold, padding, color, textColor, round, border, borderColor, shadow, arrow (0: none), gap (from the target to the point of the arrow), edge (the room kept inside the screen), grow (it grows out of the point), zIndex."
|
|
213
|
+
);
|
|
214
|
+
endCard();
|
|
139
215
|
|
|
140
|
-
|
|
141
|
-
toggleButton("Edged, top", "border: 2, arrow: 14", LOOKS.edged, "top");
|
|
142
|
-
toggleButton("Edged, bottom", "The edge goes around the arrow", LOOKS.edged, "bottom");
|
|
143
|
-
toggleButton("Red, no edge", "Click again to delete.", LOOKS.red, "top");
|
|
144
|
-
toggleButton("Dark, right", "On the right side", LOOKS.dark, "right");
|
|
145
|
-
endCard();
|
|
146
|
-
|
|
147
|
-
startCard("4. Never out of the screen", "The small buttons at the corners of the screen have tooltips: the bubble slides inside, or goes to the other side when there is no room; the arrow still points at its place. \"Show all\" opens a bubble at each corner for 3 seconds.");
|
|
148
|
-
SmartButton({
|
|
149
|
-
labelText: "Show all",
|
|
150
|
-
onClick: function () {
|
|
151
|
-
removeBubbles();
|
|
152
|
-
edgeButtons.forEach(function (button) { showBubble(button, button.hint, LOOKS.edged, "top"); });
|
|
153
|
-
setTimeout(removeBubbles, SHOW_TIME);
|
|
154
|
-
},
|
|
155
|
-
});
|
|
156
|
-
endCard();
|
|
157
|
-
|
|
158
|
-
startCard("The look keys", "Tooltip.BUBBLE_LOOK: fontSize, bold, padding, color, textColor, round, border, borderColor, shadow, arrow (0: none), gap (from the target to the point of the arrow), edge (the room kept inside the screen), grow (it grows out of the point), zIndex.");
|
|
159
|
-
endCard();
|
|
160
|
-
|
|
161
|
-
endGroup();
|
|
162
|
-
|
|
163
|
-
endBox();
|
|
164
|
-
|
|
165
|
-
// WHY: a bubble of Tooltip.show() is on the page; the content under it moves when the page box scrolls
|
|
166
|
-
pageBox.on("scroll", removeBubbles);
|
|
216
|
+
endGroup();
|
|
167
217
|
|
|
168
218
|
const edgeButtons = createEdgeButtons();
|
|
169
219
|
|
|
@@ -15,13 +15,14 @@
|
|
|
15
15
|
|
|
16
16
|
<script src="_basic/comp/tooltip.js" type="text/javascript" charset="utf-8"></script>
|
|
17
17
|
<script src="_basic/comp/smart-button.js" type="text/javascript" charset="utf-8"></script>
|
|
18
|
+
<script src="_basic/comp/scroll-area.js" type="text/javascript" charset="utf-8"></script>
|
|
18
19
|
|
|
19
20
|
<script>
|
|
20
21
|
|
|
21
22
|
/* Bismillah */
|
|
22
23
|
|
|
23
|
-
// Tooltip
|
|
24
|
-
//
|
|
24
|
+
// Tooltip: content(bubble) puts your own objects in the bubble; trigger: "click" (or Tooltip.openPopover()) makes
|
|
25
|
+
// a popover: it stays, its buttons can be clicked, a click outside or Escape closes it.
|
|
25
26
|
|
|
26
27
|
const INK = "#232323";
|
|
27
28
|
const SOFT_INK = "rgba(35, 35, 35, 0.6)";
|
|
@@ -31,10 +32,21 @@
|
|
|
31
32
|
|
|
32
33
|
// The bubbles (Tooltip.BUBBLE_LOOK keys)
|
|
33
34
|
const HINT_LOOK = { color: INK, textColor: "white", border: 0, round: 8, padding: [12, 10], arrow: 10, contentGap: 6 };
|
|
34
|
-
const POPOVER_LOOK = {
|
|
35
|
+
const POPOVER_LOOK = {
|
|
36
|
+
color: "white",
|
|
37
|
+
textColor: INK,
|
|
38
|
+
border: 1,
|
|
39
|
+
borderColor: Black(0.2),
|
|
40
|
+
round: 10,
|
|
41
|
+
padding: [16, 14],
|
|
42
|
+
arrow: 12,
|
|
43
|
+
contentGap: 12,
|
|
44
|
+
shadow: "0 10px 30px rgba(0, 0, 0, 0.12)",
|
|
45
|
+
grow: 1,
|
|
46
|
+
};
|
|
35
47
|
|
|
36
|
-
// The white plain button of the page (the hover of
|
|
37
|
-
const PLAIN = { styleName: "
|
|
48
|
+
// The white plain button of the page (the hover of ozden2 stays gray)
|
|
49
|
+
const PLAIN = { styleName: "ozden2", style: { box: { color: "white" } } };
|
|
38
50
|
|
|
39
51
|
let lblResult;
|
|
40
52
|
|
|
@@ -44,10 +56,27 @@
|
|
|
44
56
|
|
|
45
57
|
// GROUP: A card with a title and a short description
|
|
46
58
|
const startCard = function (title, description) {
|
|
47
|
-
VGroup({
|
|
48
|
-
|
|
59
|
+
VGroup({
|
|
60
|
+
width: 640,
|
|
61
|
+
height: "auto",
|
|
62
|
+
align: "left top",
|
|
63
|
+
gap: 14,
|
|
64
|
+
padding: 20,
|
|
65
|
+
color: "white",
|
|
66
|
+
round: 12,
|
|
67
|
+
border: 1,
|
|
68
|
+
borderColor: Black(0.08),
|
|
69
|
+
clipContent: 0,
|
|
70
|
+
css: { maxWidth: "100%" },
|
|
71
|
+
});
|
|
49
72
|
Label({ plainText: title, fontSize: 15, bold: 1, textColor: Black(0.8) });
|
|
50
|
-
Label({
|
|
73
|
+
Label({
|
|
74
|
+
plainText: description,
|
|
75
|
+
width: "100%",
|
|
76
|
+
fontSize: 13,
|
|
77
|
+
textColor: Black(0.5),
|
|
78
|
+
css: { lineHeight: "1.4", whiteSpace: "normal" },
|
|
79
|
+
});
|
|
51
80
|
HGroup({ width: "100%", height: "auto", align: "left center", gap: 12, wrap: 1, clipContent: 0 });
|
|
52
81
|
};
|
|
53
82
|
|
|
@@ -72,7 +101,18 @@
|
|
|
72
101
|
// A user card: the first letters in a circle, the name and the role
|
|
73
102
|
const userCard = function () {
|
|
74
103
|
HGroup({ hug: 1, align: "left center", gap: 10 });
|
|
75
|
-
Label({
|
|
104
|
+
Label({
|
|
105
|
+
width: 40,
|
|
106
|
+
height: 40,
|
|
107
|
+
text: "AK",
|
|
108
|
+
fontSize: 15,
|
|
109
|
+
bold: 1,
|
|
110
|
+
textColor: "white",
|
|
111
|
+
color: "#5BBAC1",
|
|
112
|
+
round: 20,
|
|
113
|
+
textAlign: "center",
|
|
114
|
+
css: { lineHeight: "40px" },
|
|
115
|
+
});
|
|
76
116
|
VGroup({ hug: 1, align: "left top", gap: 0 });
|
|
77
117
|
Label({ text: "Ayşe Kaya", fontSize: 14, bold: 1, textColor: "white" });
|
|
78
118
|
Label({ text: "Designer · online", fontSize: 12, textColor: White(0.7) });
|
|
@@ -88,7 +128,9 @@
|
|
|
88
128
|
{ text: "a number", isOk: 1 },
|
|
89
129
|
{ text: "a capital letter", isOk: 0 },
|
|
90
130
|
].forEach(function (rule) {
|
|
91
|
-
|
|
131
|
+
const mark = rule.isOk ? "✓ " : "✗ ";
|
|
132
|
+
const markColor = rule.isOk ? "#7FD6A3" : "#FF9A8F";
|
|
133
|
+
Label({ text: mark + rule.text, fontSize: 13, textColor: markColor });
|
|
92
134
|
});
|
|
93
135
|
};
|
|
94
136
|
|
|
@@ -96,13 +138,22 @@
|
|
|
96
138
|
const sharePopover = function () {
|
|
97
139
|
Label({ text: "Share the link", fontSize: 14, bold: 1, textColor: INK });
|
|
98
140
|
HGroup({ hug: 1, align: "left center", gap: 8 });
|
|
99
|
-
Label({
|
|
141
|
+
Label({
|
|
142
|
+
width: 230,
|
|
143
|
+
text: SHARE_LINK,
|
|
144
|
+
fontSize: 13,
|
|
145
|
+
textColor: SOFT_INK,
|
|
146
|
+
color: "#F4F4F4",
|
|
147
|
+
round: 6,
|
|
148
|
+
padding: [10, 8],
|
|
149
|
+
ellipsis: 1,
|
|
150
|
+
});
|
|
100
151
|
SmartButton({
|
|
101
152
|
labelText: "Copy",
|
|
102
153
|
height: 36,
|
|
103
154
|
onClick: function (self) {
|
|
104
155
|
if (navigator.clipboard) navigator.clipboard.writeText(SHARE_LINK).catch(function () { });
|
|
105
|
-
self.
|
|
156
|
+
self.setLabelText("Copied");
|
|
106
157
|
showResult("The link is copied.");
|
|
107
158
|
},
|
|
108
159
|
});
|
|
@@ -117,7 +168,7 @@
|
|
|
117
168
|
labelText: choice,
|
|
118
169
|
width: 200,
|
|
119
170
|
height: 36,
|
|
120
|
-
styleName: "
|
|
171
|
+
styleName: "ozden4",
|
|
121
172
|
style: { layout: { align: "left center", padding: [10, 0] }, label: { fontSize: 15 } },
|
|
122
173
|
onClick: function () {
|
|
123
174
|
showResult("Sorted: " + choice);
|
|
@@ -136,7 +187,12 @@
|
|
|
136
187
|
SmartButton({
|
|
137
188
|
labelText: "Delete",
|
|
138
189
|
height: 36,
|
|
139
|
-
style: {
|
|
190
|
+
style: {
|
|
191
|
+
box: { color: RED, borderColor: RED },
|
|
192
|
+
hover: { color: "#E0695C" },
|
|
193
|
+
active: { color: "#E0695C" },
|
|
194
|
+
label: { textColor: "white" },
|
|
195
|
+
},
|
|
140
196
|
onClick: function () {
|
|
141
197
|
showResult("report.pdf is deleted.");
|
|
142
198
|
Tooltip.closePopover();
|
|
@@ -149,58 +205,61 @@
|
|
|
149
205
|
|
|
150
206
|
page.color = "#F0F2F5";
|
|
151
207
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
208
|
+
// WHY onScroll: the bubbles are on the page; the content under them moves when the page scrolls
|
|
209
|
+
ScrollArea({ align: "center top", gap: 24, padding: [50, 40], onScroll: Tooltip.closePopover });
|
|
210
|
+
|
|
211
|
+
Label({ text: "Tooltip: content and popover", fontSize: 26, bold: 1, textColor: Black(0.8) });
|
|
212
|
+
|
|
213
|
+
startCard(
|
|
214
|
+
"1. Your own content (under the mouse)",
|
|
215
|
+
"content: function (bubble) { ... } builds its objects in the bubble, one under the other (look.contentGap), in place of hintText. It follows the mouse like a hint."
|
|
216
|
+
);
|
|
217
|
+
const btnSave = SmartButton({ labelText: "Save", ...PLAIN });
|
|
218
|
+
btnSave.tooltip = Tooltip({ target: btnSave, content: saveHint, lbl_arrow: 10, look: HINT_LOOK });
|
|
219
|
+
|
|
220
|
+
const btnUser = SmartButton({ labelText: "Ayşe K.", ...PLAIN });
|
|
221
|
+
btnUser.tooltip = Tooltip({ target: btnUser, content: userCard, hintPosition: "bottom", lbl_arrow: 10, look: HINT_LOOK });
|
|
222
|
+
|
|
223
|
+
const btnPassword = SmartButton({ labelText: "Password rules", ...PLAIN });
|
|
224
|
+
btnPassword.tooltip = Tooltip({ target: btnPassword, content: passwordRules, hintPosition: "right", lbl_arrow: 10, look: HINT_LOOK });
|
|
225
|
+
endCard();
|
|
226
|
+
|
|
227
|
+
startCard(
|
|
228
|
+
"2. A popover (a click)",
|
|
229
|
+
"trigger: \"click\": a click opens the bubble and it stays; its buttons can be clicked. A click outside, Escape or a second click on the button closes it; one popover at a time."
|
|
230
|
+
);
|
|
231
|
+
const btnShare = SmartButton({ labelText: "Share", ...PLAIN });
|
|
232
|
+
btnShare.tooltip = Tooltip({ target: btnShare, trigger: "click", content: sharePopover, hintPosition: "bottom", look: POPOVER_LOOK });
|
|
233
|
+
|
|
234
|
+
const btnSort = SmartButton({ labelText: "Sort", ...PLAIN });
|
|
235
|
+
btnSort.tooltip = Tooltip({ target: btnSort, trigger: "click", content: sortPopover, hintPosition: "bottom", look: POPOVER_LOOK });
|
|
236
|
+
|
|
237
|
+
const btnDelete = SmartButton({ labelText: "Delete", ...PLAIN });
|
|
238
|
+
btnDelete.tooltip = Tooltip({ target: btnDelete, trigger: "click", content: deletePopover, hintPosition: "top", look: POPOVER_LOOK });
|
|
239
|
+
endCard();
|
|
240
|
+
|
|
241
|
+
startCard(
|
|
242
|
+
"3. A popover from the code",
|
|
243
|
+
"Tooltip.openPopover(target, content, look, side, text, { onClose }) opens one at any object (here at the text under the button); Tooltip.closePopover() closes it."
|
|
244
|
+
);
|
|
245
|
+
VGroup({ hug: 1, align: "left top", gap: 12, clipContent: 0 });
|
|
246
|
+
const lblTarget = Label({ text: "The popover opens here", fontSize: 14, textColor: SOFT_INK });
|
|
247
|
+
SmartButton({
|
|
248
|
+
labelText: "Open from the code",
|
|
249
|
+
onClick: function () {
|
|
250
|
+
Tooltip.openPopover(lblTarget, deletePopover, POPOVER_LOOK, "right", "", {
|
|
251
|
+
onClose: function () { lblTarget.text = "It closed (onClose)"; },
|
|
252
|
+
});
|
|
253
|
+
lblTarget.text = "The popover opens here";
|
|
254
|
+
},
|
|
255
|
+
});
|
|
256
|
+
endGroup();
|
|
257
|
+
endCard();
|
|
258
|
+
|
|
259
|
+
// LABEL: What the buttons of the popovers did
|
|
260
|
+
lblResult = Label({ text: "-", fontSize: 14, textColor: GREEN });
|
|
164
261
|
|
|
165
|
-
|
|
166
|
-
btnPassword.tooltip = Tooltip({ target: btnPassword, content: passwordRules, hintPosition: "right", lbl_arrow: 10, look: HINT_LOOK });
|
|
167
|
-
endCard();
|
|
168
|
-
|
|
169
|
-
startCard("2. A popover (a click)", "trigger: \"click\": a click opens the bubble and it stays; its buttons can be clicked. A click outside, Escape or a second click on the button closes it; one popover at a time.");
|
|
170
|
-
const btnShare = SmartButton({ labelText: "Share", ...PLAIN });
|
|
171
|
-
btnShare.tooltip = Tooltip({ target: btnShare, trigger: "click", content: sharePopover, hintPosition: "bottom", look: POPOVER_LOOK });
|
|
172
|
-
|
|
173
|
-
const btnSort = SmartButton({ labelText: "Sort", ...PLAIN });
|
|
174
|
-
btnSort.tooltip = Tooltip({ target: btnSort, trigger: "click", content: sortPopover, hintPosition: "bottom", look: POPOVER_LOOK });
|
|
175
|
-
|
|
176
|
-
const btnDelete = SmartButton({ labelText: "Delete", ...PLAIN });
|
|
177
|
-
btnDelete.tooltip = Tooltip({ target: btnDelete, trigger: "click", content: deletePopover, hintPosition: "top", look: POPOVER_LOOK });
|
|
178
|
-
endCard();
|
|
179
|
-
|
|
180
|
-
startCard("3. A popover from the code", "Tooltip.openPopover(target, content, look, side, text, { onClose }) opens one at any object (here at the text under the button); Tooltip.closePopover() closes it.");
|
|
181
|
-
VGroup({ hug: 1, align: "left top", gap: 12, clipContent: 0 });
|
|
182
|
-
const lblTarget = Label({ text: "The popover opens here", fontSize: 14, textColor: SOFT_INK });
|
|
183
|
-
SmartButton({
|
|
184
|
-
labelText: "Open from the code",
|
|
185
|
-
onClick: function () {
|
|
186
|
-
Tooltip.openPopover(lblTarget, deletePopover, POPOVER_LOOK, "right", "", {
|
|
187
|
-
onClose: function () { lblTarget.text = "It closed (onClose)"; },
|
|
188
|
-
});
|
|
189
|
-
lblTarget.text = "The popover opens here";
|
|
190
|
-
},
|
|
191
|
-
});
|
|
192
|
-
endGroup();
|
|
193
|
-
endCard();
|
|
194
|
-
|
|
195
|
-
// LABEL: What the buttons of the popovers did
|
|
196
|
-
lblResult = Label({ text: "-", fontSize: 14, textColor: GREEN });
|
|
197
|
-
|
|
198
|
-
endGroup();
|
|
199
|
-
|
|
200
|
-
endBox();
|
|
201
|
-
|
|
202
|
-
// WHY: the bubbles are on the page; the content under them moves when the page box scrolls
|
|
203
|
-
pageBox.on("scroll", Tooltip.closePopover);
|
|
262
|
+
endGroup();
|
|
204
263
|
|
|
205
264
|
};
|
|
206
265
|
|