create-basicjs 0.0.1 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -2
- package/bin/create-basicjs.js +104 -1
- package/bin/verify-package.js +16 -0
- package/package.json +27 -6
- package/payload/starter/AGENTS.md +82 -0
- package/payload/starter/CLAUDE.md +1 -0
- package/payload/starter/README.md +45 -0
- package/payload/starter/_basic/VERSION +1 -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-cup.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/data-table/palette.svg +2 -0
- package/payload/starter/_basic/assets/data-table/people.js +104 -0
- package/payload/starter/_basic/assets/data-table/trash.svg +2 -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/assets/icons/alert-black.png +0 -0
- package/payload/starter/_basic/assets/icons/alert.png +0 -0
- package/payload/starter/_basic/assets/icons/arrow-drop.svg +3 -0
- package/payload/starter/_basic/assets/icons/arrow-rise.svg +3 -0
- package/payload/starter/_basic/assets/icons/close.svg +1 -0
- package/payload/starter/_basic/assets/icons/lamp-on.png +0 -0
- package/payload/starter/_basic/assets/icons/lamp.png +0 -0
- package/payload/starter/_basic/assets/icons/lock.png +0 -0
- package/payload/starter/_basic/assets/icons/panel.png +0 -0
- package/payload/starter/_basic/assets/icons/plant.png +0 -0
- package/payload/starter/_basic/assets/icons/trash.png +0 -0
- package/payload/starter/_basic/assets/icons/trash.svg +2 -0
- package/payload/starter/_basic/assets/tab-bar/settings.png +0 -0
- package/payload/starter/_basic/assets/tab-bar/status.png +0 -0
- package/payload/starter/_basic/assets/tab-bar/transactions.png +0 -0
- package/payload/starter/_basic/assets/tutorial/blueberries.png +0 -0
- package/payload/starter/_basic/assets/tutorial/carrot.png +0 -0
- package/payload/starter/_basic/assets/tutorial/olives.png +0 -0
- package/payload/starter/_basic/assets/tutorial/strawberry.png +0 -0
- package/payload/starter/_basic/assets/ui-bottom-bar/setting.svg +11 -0
- package/payload/starter/_basic/basic/LICENSE +14 -0
- package/payload/starter/_basic/basic/basic.css +277 -0
- package/payload/starter/_basic/basic/basic.js +3767 -0
- package/payload/starter/_basic/basic/basic.min.css +1 -0
- package/payload/starter/_basic/basic/basic.min.js +65 -0
- package/payload/starter/_basic/basic/font/open-sans/LICENSE.txt +206 -0
- package/payload/starter/_basic/basic/font/open-sans/OpenSans-Bold.ttf +0 -0
- package/payload/starter/_basic/basic/font/open-sans/OpenSans-Regular.ttf +0 -0
- package/payload/starter/_basic/basic/scroll-bar.js +536 -0
- package/payload/starter/_basic/basic/scroll-bar.min.js +2 -0
- package/payload/starter/_basic/comp/action-button/add.png +0 -0
- package/payload/starter/_basic/comp/action-button.js +522 -0
- package/payload/starter/_basic/comp/action-tab-bar.js +383 -0
- package/payload/starter/_basic/comp/app-bar.js +236 -0
- package/payload/starter/_basic/comp/badge-v2.js +246 -0
- package/payload/starter/_basic/comp/bottom-bar.js +547 -0
- package/payload/starter/_basic/comp/breadcrumbs.js +522 -0
- package/payload/starter/_basic/comp/chart-box/chart-4.5.1.umd.min.js +13 -0
- package/payload/starter/_basic/comp/chart-box/chart-js-LICENSE.md +9 -0
- package/payload/starter/_basic/comp/chart-box.js +868 -0
- package/payload/starter/_basic/comp/check-box.js +374 -0
- package/payload/starter/_basic/comp/context-menu.js +634 -0
- package/payload/starter/_basic/comp/currency-input-b.js +190 -0
- package/payload/starter/_basic/comp/data-table/arrow.svg +2 -0
- package/payload/starter/_basic/comp/data-table.js +865 -0
- package/payload/starter/_basic/comp/dialog.js +854 -0
- package/payload/starter/_basic/comp/email-input-b.js +57 -0
- package/payload/starter/_basic/comp/filters.js +493 -0
- package/payload/starter/_basic/comp/form.js +590 -0
- package/payload/starter/_basic/comp/full-screen-select/arrow.svg +2 -0
- package/payload/starter/_basic/comp/full-screen-select/cancel.svg +2 -0
- package/payload/starter/_basic/comp/full-screen-select.js +611 -0
- package/payload/starter/_basic/comp/gauge.js +435 -0
- package/payload/starter/_basic/comp/hold-to-confirm-button/trash-red.png +0 -0
- package/payload/starter/_basic/comp/hold-to-confirm-button/trash.png +0 -0
- package/payload/starter/_basic/comp/hold-to-confirm-button.js +280 -0
- package/payload/starter/_basic/comp/input-b.js +759 -0
- package/payload/starter/_basic/comp/item-list.js +1396 -0
- package/payload/starter/_basic/comp/label-editor.js +1137 -0
- package/payload/starter/_basic/comp/left-menu/_Material Symbols & Icons - Google Fonts.webloc +8 -0
- package/payload/starter/_basic/comp/left-menu/data-table.png +0 -0
- package/payload/starter/_basic/comp/left-menu/home.png +0 -0
- package/payload/starter/_basic/comp/left-menu/reports.png +0 -0
- package/payload/starter/_basic/comp/left-menu/setting.png +0 -0
- package/payload/starter/_basic/comp/left-menu.js +476 -0
- package/payload/starter/_basic/comp/line-progress-bar.js +192 -0
- package/payload/starter/_basic/comp/loading-screen.js +382 -0
- package/payload/starter/_basic/comp/login-page-v2.js +586 -0
- package/payload/starter/_basic/comp/mini-graph-box.js +483 -0
- package/payload/starter/_basic/comp/notice.js +227 -0
- package/payload/starter/_basic/comp/number-input-b.js +121 -0
- package/payload/starter/_basic/comp/numeric-keyboard.js +296 -0
- package/payload/starter/_basic/comp/page-control.js +745 -0
- package/payload/starter/_basic/comp/page-header.js +190 -0
- package/payload/starter/_basic/comp/password-input-b/hide-btn.png +0 -0
- package/payload/starter/_basic/comp/password-input-b/hide-btn2.png +0 -0
- package/payload/starter/_basic/comp/password-input-b/show-btn.png +0 -0
- package/payload/starter/_basic/comp/password-input-b/show-btn2.png +0 -0
- package/payload/starter/_basic/comp/password-input-b.js +164 -0
- package/payload/starter/_basic/comp/period-bar.js +435 -0
- package/payload/starter/_basic/comp/phone-input-b.js +287 -0
- package/payload/starter/_basic/comp/progress-bar.js +676 -0
- package/payload/starter/_basic/comp/property-panel.js +2740 -0
- package/payload/starter/_basic/comp/radio-button.js +467 -0
- package/payload/starter/_basic/comp/rich-text-editor.js +1061 -0
- package/payload/starter/_basic/comp/scrolling-text.js +296 -0
- package/payload/starter/_basic/comp/search-input-v2/clear-round.svg +1 -0
- package/payload/starter/_basic/comp/search-input-v2/clear.svg +1 -0
- package/payload/starter/_basic/comp/search-input-v2/filter.png +0 -0
- package/payload/starter/_basic/comp/search-input-v2/filter.svg +1 -0
- package/payload/starter/_basic/comp/search-input-v2/search.svg +1 -0
- package/payload/starter/_basic/comp/search-input-v2.js +427 -0
- package/payload/starter/_basic/comp/search-results.js +560 -0
- package/payload/starter/_basic/comp/select-box.js +1740 -0
- package/payload/starter/_basic/comp/select-color.js +603 -0
- package/payload/starter/_basic/comp/select-date.js +1003 -0
- package/payload/starter/_basic/comp/select-file.js +732 -0
- package/payload/starter/_basic/comp/select-time.js +979 -0
- package/payload/starter/_basic/comp/settings-row.js +298 -0
- package/payload/starter/_basic/comp/side-panel.js +573 -0
- package/payload/starter/_basic/comp/slider-field.js +776 -0
- package/payload/starter/_basic/comp/slider.js +368 -0
- package/payload/starter/_basic/comp/smart-button/alert-black.png +0 -0
- package/payload/starter/_basic/comp/smart-button/clock.png +0 -0
- package/payload/starter/_basic/comp/smart-button.js +896 -0
- package/payload/starter/_basic/comp/smart-table/clock.png +0 -0
- package/payload/starter/_basic/comp/smart-table/down.png +0 -0
- package/payload/starter/_basic/comp/smart-table/scroll.png +0 -0
- package/payload/starter/_basic/comp/smart-table/sort.png +0 -0
- package/payload/starter/_basic/comp/smart-table/up.png +0 -0
- package/payload/starter/_basic/comp/smart-table.js +1321 -0
- package/payload/starter/_basic/comp/sortable-list.js +1172 -0
- package/payload/starter/_basic/comp/spark-line-box.js +729 -0
- package/payload/starter/_basic/comp/stepper.js +699 -0
- package/payload/starter/_basic/comp/tabs.js +1317 -0
- package/payload/starter/_basic/comp/tag-input.js +1067 -0
- package/payload/starter/_basic/comp/tap-effect.js +168 -0
- package/payload/starter/_basic/comp/textarea-b.js +184 -0
- package/payload/starter/_basic/comp/time-line.js +324 -0
- package/payload/starter/_basic/comp/tiny-select/arrow.svg +1 -0
- package/payload/starter/_basic/comp/tiny-select.js +282 -0
- package/payload/starter/_basic/comp/tiny-table.js +279 -0
- package/payload/starter/_basic/comp/toast.js +838 -0
- package/payload/starter/_basic/comp/toggle.js +636 -0
- package/payload/starter/_basic/comp/tooltip.js +471 -0
- package/payload/starter/_basic/comp/tree-view.js +1096 -0
- package/payload/starter/_basic/comp/ui-effects.js +1091 -0
- package/payload/starter/_basic/comp/ui-standards.js +402 -0
- package/payload/starter/_basic/comp/url-input-b.js +145 -0
- package/payload/starter/_basic/comp/web-view.js +534 -0
- package/payload/starter/_basic/docs/basic-js-animated-rules.md +90 -0
- package/payload/starter/_basic/docs/basic-js-code-rules.md +91 -0
- package/payload/starter/_basic/docs/basic-js-components.md +134 -0
- package/payload/starter/_basic/docs/basic-js-core.md +131 -0
- package/payload/starter/_basic/docs/component-index.md +522 -0
- package/payload/starter/_basic/docs/component-template.js +416 -0
- package/payload/starter/_basic/docs/handbook/00-introduction.md +125 -0
- package/payload/starter/_basic/docs/handbook/00-what-is-new.md +96 -0
- package/payload/starter/_basic/docs/handbook/01-label.md +104 -0
- package/payload/starter/_basic/docs/handbook/02-box.md +166 -0
- package/payload/starter/_basic/docs/handbook/03-image.md +81 -0
- package/payload/starter/_basic/docs/handbook/04-common-properties.md +159 -0
- package/payload/starter/_basic/docs/handbook/05-autolayout.md +332 -0
- package/payload/starter/_basic/docs/handbook/06-button.md +103 -0
- package/payload/starter/_basic/docs/handbook/07-input.md +78 -0
- package/payload/starter/_basic/docs/handbook/08-page.md +120 -0
- package/payload/starter/_basic/docs/handbook/09-useful-examples.md +309 -0
- package/payload/starter/_basic/docs/handbook/10-motion.md +132 -0
- package/payload/starter/_basic/docs/handbook/11-other-functions.md +92 -0
- package/payload/starter/_basic/docs/handbook/12-utilities.md +123 -0
- package/payload/starter/_basic/docs/handbook/13-sound.md +88 -0
- package/payload/starter/_basic/docs/what-is-new.md +402 -0
- package/payload/starter/_basic/examples/action-button.htm +81 -0
- package/payload/starter/_basic/examples/action-tab-bar.htm +97 -0
- package/payload/starter/_basic/examples/app-bar.htm +140 -0
- package/payload/starter/_basic/examples/badgeV2.htm +68 -0
- package/payload/starter/_basic/examples/bottom-bar/grid.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/grids.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/home.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/homes.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon1.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon1s.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon2.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon2s.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon3.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon3s.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon4.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon4s.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/search.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/searchs.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/settings.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/settingss.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/tasks.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/taskss.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar-2.htm +187 -0
- package/payload/starter/_basic/examples/bottom-bar.htm +46 -0
- package/payload/starter/_basic/examples/breadcrumbs.htm +284 -0
- package/payload/starter/_basic/examples/chart-box.htm +287 -0
- package/payload/starter/_basic/examples/check-box-1.htm +220 -0
- package/payload/starter/_basic/examples/check-box-2.htm +212 -0
- package/payload/starter/_basic/examples/check-box-3.htm +179 -0
- package/payload/starter/_basic/examples/context-menu.htm +269 -0
- package/payload/starter/_basic/examples/currency-input-b.htm +71 -0
- package/payload/starter/_basic/examples/data-table-2.htm +67 -0
- package/payload/starter/_basic/examples/data-table-3.htm +72 -0
- package/payload/starter/_basic/examples/data-table-4.htm +144 -0
- package/payload/starter/_basic/examples/data-table-5.htm +152 -0
- package/payload/starter/_basic/examples/data-table.htm +178 -0
- package/payload/starter/_basic/examples/dialog-centered.htm +130 -0
- package/payload/starter/_basic/examples/dialog.htm +209 -0
- package/payload/starter/_basic/examples/email-input-b.htm +67 -0
- package/payload/starter/_basic/examples/filters.htm +115 -0
- package/payload/starter/_basic/examples/form-1.htm +123 -0
- package/payload/starter/_basic/examples/full-screen-select.htm +114 -0
- package/payload/starter/_basic/examples/gauge.htm +133 -0
- package/payload/starter/_basic/examples/hold-to-confirm-button.htm +144 -0
- package/payload/starter/_basic/examples/input-b-ex1.htm +132 -0
- package/payload/starter/_basic/examples/input-b-ex2.htm +136 -0
- package/payload/starter/_basic/examples/input-b-ex3-style.htm +113 -0
- package/payload/starter/_basic/examples/input-b-ex4-custom-unit.htm +112 -0
- package/payload/starter/_basic/examples/input-b-ex5-warning-icon.htm +80 -0
- package/payload/starter/_basic/examples/input-b-ex6-dark.htm +108 -0
- package/payload/starter/_basic/examples/input-b-ex7-ozden.htm +153 -0
- package/payload/starter/_basic/examples/item-list-2.htm +253 -0
- package/payload/starter/_basic/examples/item-list.htm +176 -0
- package/payload/starter/_basic/examples/label-editor.htm +196 -0
- package/payload/starter/_basic/examples/left-menu.htm +81 -0
- package/payload/starter/_basic/examples/line-progress-bar.htm +145 -0
- package/payload/starter/_basic/examples/loading-screen.htm +217 -0
- package/payload/starter/_basic/examples/login-page-dark-v2.htm +269 -0
- package/payload/starter/_basic/examples/login-page-v2.htm +269 -0
- package/payload/starter/_basic/examples/mini-graph-box.htm +229 -0
- package/payload/starter/_basic/examples/notice.htm +79 -0
- package/payload/starter/_basic/examples/number-input-b.htm +68 -0
- package/payload/starter/_basic/examples/numeric-keyboard.htm +100 -0
- package/payload/starter/_basic/examples/page-control.htm +262 -0
- package/payload/starter/_basic/examples/page-header.htm +117 -0
- package/payload/starter/_basic/examples/password-input-b.htm +70 -0
- package/payload/starter/_basic/examples/period-bar.htm +94 -0
- package/payload/starter/_basic/examples/phone-input-b-select-country.htm +298 -0
- package/payload/starter/_basic/examples/phone-input-b.htm +72 -0
- package/payload/starter/_basic/examples/progress-bar-ozden.htm +168 -0
- package/payload/starter/_basic/examples/progress-bar.htm +296 -0
- package/payload/starter/_basic/examples/property-panel.htm +216 -0
- package/payload/starter/_basic/examples/radio-button-1.htm +264 -0
- package/payload/starter/_basic/examples/radio-button-2.htm +256 -0
- package/payload/starter/_basic/examples/radio-button-3.htm +168 -0
- package/payload/starter/_basic/examples/rich-text-editor.htm +228 -0
- package/payload/starter/_basic/examples/scrolling-text.htm +75 -0
- package/payload/starter/_basic/examples/search-input-v2-ozden.htm +128 -0
- package/payload/starter/_basic/examples/search-input-v2-place.htm +80 -0
- package/payload/starter/_basic/examples/search-input-v2.htm +65 -0
- package/payload/starter/_basic/examples/search-results.htm +193 -0
- package/payload/starter/_basic/examples/select-box-ozden-item.htm +114 -0
- package/payload/starter/_basic/examples/select-box-ozden-text.htm +64 -0
- package/payload/starter/_basic/examples/select-box.htm +254 -0
- package/payload/starter/_basic/examples/select-color.htm +215 -0
- package/payload/starter/_basic/examples/select-date.htm +244 -0
- package/payload/starter/_basic/examples/select-file.htm +268 -0
- package/payload/starter/_basic/examples/select-time.htm +249 -0
- package/payload/starter/_basic/examples/settings-row.htm +193 -0
- package/payload/starter/_basic/examples/side-panel-2.htm +270 -0
- package/payload/starter/_basic/examples/side-panel.htm +219 -0
- package/payload/starter/_basic/examples/slider-field.htm +223 -0
- package/payload/starter/_basic/examples/slider.htm +180 -0
- package/payload/starter/_basic/examples/smart-button-2.htm +220 -0
- package/payload/starter/_basic/examples/smart-button-3-ozden.htm +320 -0
- package/payload/starter/_basic/examples/smart-button-4-dark.htm +102 -0
- package/payload/starter/_basic/examples/smart-button-5-features.htm +205 -0
- package/payload/starter/_basic/examples/smart-button.htm +252 -0
- package/payload/starter/_basic/examples/smart-table-1.htm +142 -0
- package/payload/starter/_basic/examples/smart-table-2.htm +191 -0
- package/payload/starter/_basic/examples/smart-table-3.htm +359 -0
- package/payload/starter/_basic/examples/smart-table-4.htm +158 -0
- package/payload/starter/_basic/examples/sortable-list.htm +250 -0
- package/payload/starter/_basic/examples/spark-line-box.htm +285 -0
- package/payload/starter/_basic/examples/stepper-2.htm +172 -0
- package/payload/starter/_basic/examples/stepper.htm +255 -0
- package/payload/starter/_basic/examples/tabs-2/coffee.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i1-white.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i1.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i2-white.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i2.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i3-white.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i3.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i4-white.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i4.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i5-white.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i5.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/lamp-on.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/lamp.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/search.svg +2 -0
- package/payload/starter/_basic/examples/tabs-2.htm +188 -0
- package/payload/starter/_basic/examples/tabs.htm +300 -0
- package/payload/starter/_basic/examples/tag-input.htm +242 -0
- package/payload/starter/_basic/examples/tap-effect.htm +100 -0
- package/payload/starter/_basic/examples/textarea-b.htm +76 -0
- package/payload/starter/_basic/examples/time-line.htm +226 -0
- package/payload/starter/_basic/examples/tiny-select.htm +86 -0
- package/payload/starter/_basic/examples/tiny-table.htm +109 -0
- package/payload/starter/_basic/examples/toast.htm +262 -0
- package/payload/starter/_basic/examples/toggle-2.htm +163 -0
- package/payload/starter/_basic/examples/toggle-3.htm +218 -0
- package/payload/starter/_basic/examples/toggle.htm +93 -0
- package/payload/starter/_basic/examples/tooltip-2.htm +177 -0
- package/payload/starter/_basic/examples/tooltip-3.htm +212 -0
- package/payload/starter/_basic/examples/tooltip.htm +124 -0
- package/payload/starter/_basic/examples/tree-view.htm +285 -0
- package/payload/starter/_basic/examples/ui-effects.htm +463 -0
- package/payload/starter/_basic/examples/ui-standards.htm +261 -0
- package/payload/starter/_basic/examples/unfinished-login-page-dark-supabase.htm +221 -0
- package/payload/starter/_basic/examples/unfinished-login-page-supabase.htm +221 -0
- package/payload/starter/_basic/examples/url-input-b.htm +85 -0
- package/payload/starter/_basic/examples/web-view.htm +241 -0
- package/payload/starter/_basic/min/action-button.min.js +2 -0
- package/payload/starter/_basic/min/action-tab-bar.min.js +2 -0
- package/payload/starter/_basic/min/app-bar.min.js +2 -0
- package/payload/starter/_basic/min/badge-v2.min.js +2 -0
- package/payload/starter/_basic/min/bottom-bar.min.js +2 -0
- package/payload/starter/_basic/min/breadcrumbs.min.js +2 -0
- package/payload/starter/_basic/min/chart-box.min.js +2 -0
- package/payload/starter/_basic/min/check-box.min.js +2 -0
- package/payload/starter/_basic/min/context-menu.min.js +2 -0
- package/payload/starter/_basic/min/currency-input-b.min.js +2 -0
- package/payload/starter/_basic/min/data-table.min.js +2 -0
- package/payload/starter/_basic/min/dialog.min.js +2 -0
- package/payload/starter/_basic/min/email-input-b.min.js +2 -0
- package/payload/starter/_basic/min/filters.min.js +2 -0
- package/payload/starter/_basic/min/form.min.js +2 -0
- package/payload/starter/_basic/min/full-screen-select.min.js +2 -0
- package/payload/starter/_basic/min/gauge.min.js +2 -0
- package/payload/starter/_basic/min/hold-to-confirm-button.min.js +2 -0
- package/payload/starter/_basic/min/input-b.min.js +2 -0
- package/payload/starter/_basic/min/item-list.min.js +2 -0
- package/payload/starter/_basic/min/label-editor.min.js +2 -0
- package/payload/starter/_basic/min/left-menu.min.js +2 -0
- package/payload/starter/_basic/min/line-progress-bar.min.js +2 -0
- package/payload/starter/_basic/min/loading-screen.min.js +2 -0
- package/payload/starter/_basic/min/login-page-v2.min.js +2 -0
- package/payload/starter/_basic/min/mini-graph-box.min.js +2 -0
- package/payload/starter/_basic/min/notice.min.js +2 -0
- package/payload/starter/_basic/min/number-input-b.min.js +2 -0
- package/payload/starter/_basic/min/numeric-keyboard.min.js +2 -0
- package/payload/starter/_basic/min/page-control.min.js +2 -0
- package/payload/starter/_basic/min/page-header.min.js +2 -0
- package/payload/starter/_basic/min/password-input-b.min.js +2 -0
- package/payload/starter/_basic/min/period-bar.min.js +2 -0
- package/payload/starter/_basic/min/phone-input-b.min.js +2 -0
- package/payload/starter/_basic/min/progress-bar.min.js +2 -0
- package/payload/starter/_basic/min/property-panel.min.js +2 -0
- package/payload/starter/_basic/min/radio-button.min.js +2 -0
- package/payload/starter/_basic/min/rich-text-editor.min.js +2 -0
- package/payload/starter/_basic/min/scrolling-text.min.js +2 -0
- package/payload/starter/_basic/min/search-input-v2.min.js +2 -0
- package/payload/starter/_basic/min/search-results.min.js +2 -0
- package/payload/starter/_basic/min/select-box.min.js +2 -0
- package/payload/starter/_basic/min/select-color.min.js +2 -0
- package/payload/starter/_basic/min/select-date.min.js +2 -0
- package/payload/starter/_basic/min/select-file.min.js +2 -0
- package/payload/starter/_basic/min/select-time.min.js +2 -0
- package/payload/starter/_basic/min/settings-row.min.js +2 -0
- package/payload/starter/_basic/min/side-panel.min.js +2 -0
- package/payload/starter/_basic/min/slider-field.min.js +2 -0
- package/payload/starter/_basic/min/slider.min.js +2 -0
- package/payload/starter/_basic/min/smart-button.min.js +2 -0
- package/payload/starter/_basic/min/smart-table.min.js +2 -0
- package/payload/starter/_basic/min/sortable-list.min.js +2 -0
- package/payload/starter/_basic/min/spark-line-box.min.js +2 -0
- package/payload/starter/_basic/min/stepper.min.js +2 -0
- package/payload/starter/_basic/min/tabs.min.js +2 -0
- package/payload/starter/_basic/min/tag-input.min.js +2 -0
- package/payload/starter/_basic/min/tap-effect.min.js +2 -0
- package/payload/starter/_basic/min/textarea-b.min.js +2 -0
- package/payload/starter/_basic/min/time-line.min.js +2 -0
- package/payload/starter/_basic/min/tiny-select.min.js +2 -0
- package/payload/starter/_basic/min/tiny-table.min.js +2 -0
- package/payload/starter/_basic/min/toast.min.js +2 -0
- package/payload/starter/_basic/min/toggle.min.js +2 -0
- package/payload/starter/_basic/min/tooltip.min.js +2 -0
- package/payload/starter/_basic/min/tree-view.min.js +2 -0
- package/payload/starter/_basic/min/ui-effects.min.js +2 -0
- package/payload/starter/_basic/min/ui-standards.min.js +2 -0
- package/payload/starter/_basic/min/url-input-b.min.js +2 -0
- package/payload/starter/_basic/min/web-view.min.js +2 -0
- package/payload/starter/_basic/tools/build.js +175 -0
- package/payload/starter/_basic/tools/check.js +318 -0
- package/payload/starter/app/app.js +27 -0
- package/payload/starter/assets/.gitkeep +0 -0
- package/payload/starter/gitignore +3 -0
- package/payload/starter/index.htm +23 -0
- package/payload/templates/booking/TEMPLATE.md +77 -0
- package/payload/templates/booking/app/app.js +722 -0
- package/payload/templates/booking/app/settings.js +52 -0
- package/payload/templates/booking/app/store.js +265 -0
- package/payload/templates/booking/app/texts.js +148 -0
- package/payload/templates/booking/assets/app-icon.svg +1 -0
- package/payload/templates/booking/assets/tabs/account.svg +1 -0
- package/payload/templates/booking/assets/tabs/appointments.svg +1 -0
- package/payload/templates/booking/assets/tabs/home.svg +1 -0
- package/payload/templates/booking/assets/tabs/services.svg +1 -0
- package/payload/templates/booking/components/booking-ui.js +252 -0
- package/payload/templates/booking/index.htm +53 -0
- package/payload/templates/booking/pages/account.js +124 -0
- package/payload/templates/booking/pages/appointments.js +141 -0
- package/payload/templates/booking/pages/book.js +231 -0
- package/payload/templates/booking/pages/home.js +99 -0
- package/payload/templates/booking/pages/services.js +79 -0
- package/payload/templates/classic/TEMPLATE.md +104 -0
- package/payload/templates/classic/app/app.js +779 -0
- package/payload/templates/classic/app/settings.js +77 -0
- package/payload/templates/classic/assets/_attribute.txt +37 -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-cup.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/assets/example-tabs/coffee.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i1-white.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i1.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i2-white.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i2.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i3-white.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i3.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i4-white.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i4.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i5-white.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i5.png +0 -0
- package/payload/templates/classic/assets/example-tabs/lamp-on.png +0 -0
- package/payload/templates/classic/assets/example-tabs/lamp.png +0 -0
- package/payload/templates/classic/assets/example-tabs/search.svg +2 -0
- package/payload/templates/classic/assets/files/ai.png +0 -0
- package/payload/templates/classic/assets/files/doc.png +0 -0
- package/payload/templates/classic/assets/files/folder.png +0 -0
- package/payload/templates/classic/assets/files/js.png +0 -0
- package/payload/templates/classic/assets/files/pdf.png +0 -0
- package/payload/templates/classic/assets/files/txt.png +0 -0
- package/payload/templates/classic/assets/files/xls.png +0 -0
- package/payload/templates/classic/assets/icons/arrow-drop.svg +3 -0
- package/payload/templates/classic/assets/icons/arrow-rise.svg +3 -0
- package/payload/templates/classic/assets/icons/download.svg +18 -0
- package/payload/templates/classic/assets/icons/lamp-on.png +0 -0
- package/payload/templates/classic/assets/icons/lamp.png +0 -0
- package/payload/templates/classic/assets/icons/lock-small.png +0 -0
- package/payload/templates/classic/assets/icons/lock.png +0 -0
- package/payload/templates/classic/assets/icons/logo.png +0 -0
- package/payload/templates/classic/assets/icons/trash-red.svg +2 -0
- package/payload/templates/classic/assets/icons/trash.svg +2 -0
- package/payload/templates/classic/assets/menu/t1.png +0 -0
- package/payload/templates/classic/assets/menu/t10.png +0 -0
- package/payload/templates/classic/assets/menu/t11.png +0 -0
- package/payload/templates/classic/assets/menu/t2.png +0 -0
- package/payload/templates/classic/assets/menu/t3.png +0 -0
- package/payload/templates/classic/assets/menu/t4.png +0 -0
- package/payload/templates/classic/assets/menu/t5.png +0 -0
- package/payload/templates/classic/assets/menu/t6.png +0 -0
- package/payload/templates/classic/assets/menu/t7.png +0 -0
- package/payload/templates/classic/assets/menu/t8.png +0 -0
- package/payload/templates/classic/assets/menu/t9.png +0 -0
- package/payload/templates/classic/assets/products/brokoli.png +0 -0
- package/payload/templates/classic/assets/products/cilek.png +0 -0
- package/payload/templates/classic/assets/products/domates.png +0 -0
- package/payload/templates/classic/assets/products/elma.png +0 -0
- package/payload/templates/classic/assets/products/havuc.png +0 -0
- package/payload/templates/classic/assets/products/karpuz.png +0 -0
- package/payload/templates/classic/assets/products/limon.png +0 -0
- package/payload/templates/classic/assets/products/muz.png +0 -0
- package/payload/templates/classic/assets/products/nar.png +0 -0
- package/payload/templates/classic/assets/products/patlican.png +0 -0
- package/payload/templates/classic/assets/products/yabanmersini.png +0 -0
- package/payload/templates/classic/assets/products/yesilbiber.png +0 -0
- package/payload/templates/classic/assets/tab-bar/settings.png +0 -0
- package/payload/templates/classic/assets/tab-bar/status.png +0 -0
- package/payload/templates/classic/assets/tab-bar/transactions.png +0 -0
- package/payload/templates/classic/assets/tabs/grid.png +0 -0
- package/payload/templates/classic/assets/tabs/grids.png +0 -0
- package/payload/templates/classic/assets/tabs/home.png +0 -0
- package/payload/templates/classic/assets/tabs/homes.png +0 -0
- package/payload/templates/classic/assets/tabs/search.png +0 -0
- package/payload/templates/classic/assets/tabs/searchs.png +0 -0
- package/payload/templates/classic/assets/tabs/settings.png +0 -0
- package/payload/templates/classic/assets/tabs/settingss.png +0 -0
- package/payload/templates/classic/assets/tabs/tasks.png +0 -0
- package/payload/templates/classic/assets/tabs/taskss.png +0 -0
- package/payload/templates/classic/html/privacy.htm +58 -0
- package/payload/templates/classic/index.htm +70 -0
- package/payload/templates/classic/pages/dialogs.js +205 -0
- package/payload/templates/classic/pages/example.js +296 -0
- package/payload/templates/classic/pages/examples.js +148 -0
- package/payload/templates/classic/pages/home.js +268 -0
- package/payload/templates/classic/pages/info-pages.js +95 -0
- package/payload/templates/classic/pages/lock.js +70 -0
- package/payload/templates/classic/pages/search.js +153 -0
- package/payload/templates/classic/pages/settings.js +184 -0
- package/payload/templates/classic/pages/tasks.js +221 -0
- package/payload/templates/classic/pages/template-pages.js +240 -0
- package/payload/templates/coffee-shop/TEMPLATE.md +63 -0
- package/payload/templates/coffee-shop/app/app.js +713 -0
- package/payload/templates/coffee-shop/app/settings.js +20 -0
- package/payload/templates/coffee-shop/app/store.js +52 -0
- package/payload/templates/coffee-shop/assets/cappuccino.png +0 -0
- package/payload/templates/coffee-shop/assets/chocolate-milk.png +0 -0
- package/payload/templates/coffee-shop/assets/coffee-art/cocoa.svg +1 -0
- package/payload/templates/coffee-shop/assets/coffee-art/filter.svg +1 -0
- package/payload/templates/coffee-shop/assets/coffee-art/frappe.svg +1 -0
- package/payload/templates/coffee-shop/assets/coffee-art/iced.svg +1 -0
- package/payload/templates/coffee-shop/assets/coffee-art/latte.svg +1 -0
- package/payload/templates/coffee-shop/assets/coffee-art/tea.svg +1 -0
- package/payload/templates/coffee-shop/assets/coffee.png +0 -0
- package/payload/templates/coffee-shop/assets/credits.txt +41 -0
- package/payload/templates/coffee-shop/assets/fonts/OFL.txt +93 -0
- package/payload/templates/coffee-shop/assets/fonts/gelasio-OFL.txt +93 -0
- package/payload/templates/coffee-shop/assets/fonts/gelasio.ttf +0 -0
- package/payload/templates/coffee-shop/assets/frappe.png +0 -0
- package/payload/templates/coffee-shop/assets/iced-caffee.png +0 -0
- package/payload/templates/coffee-shop/assets/tabs/cart.svg +1 -0
- package/payload/templates/coffee-shop/assets/tabs/home.svg +1 -0
- package/payload/templates/coffee-shop/assets/tabs/menu.svg +1 -0
- package/payload/templates/coffee-shop/assets/tabs/rewards.svg +1 -0
- package/payload/templates/coffee-shop/assets/tea.png +0 -0
- package/payload/templates/coffee-shop/components/coffee-ui.js +246 -0
- package/payload/templates/coffee-shop/index.htm +55 -0
- package/payload/templates/coffee-shop/pages/cart.js +82 -0
- package/payload/templates/coffee-shop/pages/drink.js +74 -0
- package/payload/templates/coffee-shop/pages/home.js +54 -0
- package/payload/templates/coffee-shop/pages/menu.js +53 -0
- package/payload/templates/coffee-shop/pages/rewards.js +38 -0
- package/payload/templates/forms/TEMPLATE.md +12 -0
- package/payload/templates/forms/app/app.js +30 -0
- package/payload/templates/forms/appointment-form.htm +969 -0
- package/payload/templates/forms/assets/error.png +0 -0
- package/payload/templates/forms/assets/logo.png +0 -0
- package/payload/templates/forms/assets/logo2.png +0 -0
- package/payload/templates/forms/assets/mail.png +0 -0
- package/payload/templates/forms/assets/success.png +0 -0
- package/payload/templates/forms/contact-form-iframe.htm +24 -0
- package/payload/templates/forms/contact-form-table.sql +11 -0
- package/payload/templates/forms/contact-form-to-mail.htm +358 -0
- package/payload/templates/forms/contact-form-to-supabase.htm +396 -0
- package/payload/templates/forms/dark-contact-form.htm +623 -0
- package/payload/templates/forms/event-registration-form.htm +1056 -0
- package/payload/templates/forms/feedback-form.htm +813 -0
- package/payload/templates/forms/order-form.htm +1187 -0
- package/payload/templates/forms/recruitment-form.htm +698 -0
- package/payload/templates/forms/service/PHPMailer/Exception.php +40 -0
- package/payload/templates/forms/service/PHPMailer/LICENSE +502 -0
- package/payload/templates/forms/service/PHPMailer/PHPMailer.php +5586 -0
- package/payload/templates/forms/service/PHPMailer/SMTP.php +1617 -0
- package/payload/templates/forms/service/readme.md +162 -0
- package/payload/templates/forms/service/send-form-mail.php +941 -0
- package/payload/templates/forms/support-ticket-form.htm +908 -0
- package/payload/templates/panel/TEMPLATE.md +16 -0
- package/payload/templates/panel/assets/_Material Symbols & Icons - Google Fonts.webloc +8 -0
- package/payload/templates/panel/assets/arrow_down.png +0 -0
- package/payload/templates/panel/assets/close.png +0 -0
- package/payload/templates/panel/assets/left-menu/bolt.png +0 -0
- package/payload/templates/panel/assets/left-menu/brick.png +0 -0
- package/payload/templates/panel/assets/left-menu/code.png +0 -0
- package/payload/templates/panel/assets/left-menu/dashboard.png +0 -0
- package/payload/templates/panel/assets/left-menu/data-table.png +0 -0
- package/payload/templates/panel/assets/left-menu/extension.png +0 -0
- package/payload/templates/panel/assets/left-menu/home.png +0 -0
- package/payload/templates/panel/assets/left-menu/reports.png +0 -0
- package/payload/templates/panel/assets/left-menu/setting.png +0 -0
- package/payload/templates/panel/assets/left-menu/url.png +0 -0
- package/payload/templates/panel/assets/light.png +0 -0
- package/payload/templates/panel/assets/maybe.png +0 -0
- package/payload/templates/panel/assets/panel-icon.png +0 -0
- package/payload/templates/panel/assets/top-bar/add.png +0 -0
- package/payload/templates/panel/assets/top-bar/add.svg +1 -0
- package/payload/templates/panel/assets/top-bar/apps.png +0 -0
- package/payload/templates/panel/assets/top-bar/apps.svg +1 -0
- package/payload/templates/panel/assets/top-bar/arrow-down.svg +1 -0
- package/payload/templates/panel/assets/top-bar/bell.svg +1 -0
- package/payload/templates/panel/assets/top-bar/bookmark.png +0 -0
- package/payload/templates/panel/assets/top-bar/bookmark.svg +1 -0
- package/payload/templates/panel/assets/top-bar/cancel.png +0 -0
- package/payload/templates/panel/assets/top-bar/close.svg +1 -0
- package/payload/templates/panel/assets/top-bar/comment.png +0 -0
- package/payload/templates/panel/assets/top-bar/filter.png +0 -0
- package/payload/templates/panel/assets/top-bar/keyboard.svg +1 -0
- package/payload/templates/panel/assets/top-bar/notification.png +0 -0
- package/payload/templates/panel/assets/top-bar/search.png +0 -0
- package/payload/templates/panel/assets/top-bar/search.svg +1 -0
- package/payload/templates/panel/assets/top-bar/user.png +0 -0
- package/payload/templates/panel/assets/top-bar/user.svg +1 -0
- package/payload/templates/panel/assets/warning.png +0 -0
- package/payload/templates/panel/common/bridge.js +1 -0
- package/payload/templates/panel/common/bridge.min.js +0 -0
- package/payload/templates/panel/common/components.js +12 -0
- package/payload/templates/panel/common/full-view.js +107 -0
- package/payload/templates/panel/common/full-view.min.js +1 -0
- package/payload/templates/panel/common/main-view.js +53 -0
- package/payload/templates/panel/common/main-view.min.js +1 -0
- package/payload/templates/panel/common/module-page.js +46 -0
- package/payload/templates/panel/common/module-page.min.js +1 -0
- package/payload/templates/panel/common/right-view.js +77 -0
- package/payload/templates/panel/common/right-view.min.js +1 -0
- package/payload/templates/panel/common/start-page.js +31 -0
- package/payload/templates/panel/common/start-page.min.js +1 -0
- package/payload/templates/panel/common/theme.js +491 -0
- package/payload/templates/panel/common/top-bar-v25-07-29-1.js +330 -0
- package/payload/templates/panel/common/top-bar-v25-07-29-2.js +265 -0
- package/payload/templates/panel/common/top-bar.js +855 -0
- package/payload/templates/panel/common/top-bar.min.js +1 -0
- package/payload/templates/panel/common/ui-standards.css +77 -0
- package/payload/templates/panel/common/ui-standards.js +133 -0
- package/payload/templates/panel/common/ui-standards.min.css +1 -0
- package/payload/templates/panel/common/ui-standards.min.js +1 -0
- package/payload/templates/panel/index.htm +642 -0
- package/payload/templates/panel/managers/database.js +1 -0
- package/payload/templates/panel/managers/database.min.js +1 -0
- package/payload/templates/panel/managers/login.js +2 -0
- package/payload/templates/panel/managers/login.min.js +1 -0
- package/payload/templates/panel/module1/empty-main.htm +26 -0
- package/payload/templates/panel/module10/greenhouse.htm +1361 -0
- package/payload/templates/panel/module11/arduino-projects.htm +1124 -0
- package/payload/templates/panel/module2/empty-full.htm +26 -0
- package/payload/templates/panel/module3/empty-right.htm +26 -0
- package/payload/templates/panel/module4/empty-main-topbar.htm +26 -0
- package/payload/templates/panel/module5/empty-right-topbar.htm +26 -0
- package/payload/templates/panel/module6/energy-hub.htm +1507 -0
- package/payload/templates/panel/module7/3d-printers.htm +1258 -0
- package/payload/templates/panel/module8/cold-rooms.htm +1250 -0
- package/payload/templates/panel/module9/elevator-fleet.htm +1488 -0
- package/payload/templates/panel/pages/_page-template.js +36 -0
- package/payload/templates/panel/pages/_page-template.min.js +1 -0
- package/payload/templates/panel/pages/activity.js +1072 -0
- package/payload/templates/panel/pages/contents.js +1555 -0
- package/payload/templates/panel/pages/contents.min.js +1 -0
- package/payload/templates/panel/pages/customers.js +1171 -0
- package/payload/templates/panel/pages/edit-user.js +381 -0
- package/payload/templates/panel/pages/edit-user.min.js +1 -0
- package/payload/templates/panel/pages/edit-users-table.min.js +1 -0
- package/payload/templates/panel/pages/home.js +637 -0
- package/payload/templates/panel/pages/home.min.js +1 -0
- package/payload/templates/panel/pages/media.js +1538 -0
- package/payload/templates/panel/pages/notifications.js +542 -0
- package/payload/templates/panel/pages/notifications.min.js +1 -0
- package/payload/templates/panel/pages/orders.js +1147 -0
- package/payload/templates/panel/pages/products.js +1281 -0
- package/payload/templates/panel/pages/reports.js +1138 -0
- package/payload/templates/panel/pages/reports.min.js +1 -0
- package/payload/templates/panel/pages/roles.js +1096 -0
- package/payload/templates/panel/pages/settings.js +1462 -0
- package/payload/templates/panel/pages/settings.min.js +1 -0
- package/payload/templates/panel/pages/user-actions.js +456 -0
- package/payload/templates/panel/pages/user-actions.min.js +2 -0
- package/payload/templates/panel/pages/user-list.js +1113 -0
- package/payload/templates/panel/pages/users.js +334 -0
- package/payload/templates/panel/pages/users.min.js +1 -0
- package/payload/templates/shop/TEMPLATE.md +69 -0
- package/payload/templates/shop/app/app.js +727 -0
- package/payload/templates/shop/app/art.js +89 -0
- package/payload/templates/shop/app/settings.js +45 -0
- package/payload/templates/shop/app/store.js +239 -0
- package/payload/templates/shop/app/texts.js +232 -0
- package/payload/templates/shop/assets/app-icon.svg +1 -0
- package/payload/templates/shop/assets/tabs/account.svg +1 -0
- package/payload/templates/shop/assets/tabs/cart.svg +1 -0
- package/payload/templates/shop/assets/tabs/home.svg +1 -0
- package/payload/templates/shop/assets/tabs/shop.svg +1 -0
- package/payload/templates/shop/components/shop-ui.js +343 -0
- package/payload/templates/shop/index.htm +57 -0
- package/payload/templates/shop/pages/account.js +190 -0
- package/payload/templates/shop/pages/cart.js +116 -0
- package/payload/templates/shop/pages/checkout.js +134 -0
- package/payload/templates/shop/pages/favorites.js +37 -0
- package/payload/templates/shop/pages/home.js +86 -0
- package/payload/templates/shop/pages/orders.js +132 -0
- package/payload/templates/shop/pages/product.js +168 -0
- package/payload/templates/shop/pages/shop.js +113 -0
- package/payload/templates/starter/TEMPLATE.md +107 -0
- package/payload/templates/starter/app/app.js +660 -0
- package/payload/templates/starter/app/settings.js +57 -0
- package/payload/templates/starter/assets/app-icon.svg +5 -0
- package/payload/templates/starter/assets/products/brokoli.png +0 -0
- package/payload/templates/starter/assets/products/cilek.png +0 -0
- package/payload/templates/starter/assets/products/domates.png +0 -0
- package/payload/templates/starter/assets/products/elma.png +0 -0
- package/payload/templates/starter/assets/products/havuc.png +0 -0
- package/payload/templates/starter/assets/products/karpuz.png +0 -0
- package/payload/templates/starter/assets/products/limon.png +0 -0
- package/payload/templates/starter/assets/products/muz.png +0 -0
- package/payload/templates/starter/assets/products/nar.png +0 -0
- package/payload/templates/starter/assets/products/patlican.png +0 -0
- package/payload/templates/starter/assets/products/yabanmersini.png +0 -0
- package/payload/templates/starter/assets/products/yesilbiber.png +0 -0
- package/payload/templates/starter/assets/tabs/grid.png +0 -0
- package/payload/templates/starter/assets/tabs/grids.png +0 -0
- package/payload/templates/starter/assets/tabs/home.png +0 -0
- package/payload/templates/starter/assets/tabs/homes.png +0 -0
- package/payload/templates/starter/assets/tabs/settings.png +0 -0
- package/payload/templates/starter/assets/tabs/settingss.png +0 -0
- package/payload/templates/starter/assets/tabs/tasks.png +0 -0
- package/payload/templates/starter/assets/tabs/taskss.png +0 -0
- package/payload/templates/starter/html/about.htm +54 -0
- package/payload/templates/starter/index.htm +57 -0
- package/payload/templates/starter/pages/about.js +23 -0
- package/payload/templates/starter/pages/home.js +81 -0
- package/payload/templates/starter/pages/product.js +45 -0
- package/payload/templates/starter/pages/products.js +61 -0
- package/payload/templates/starter/pages/settings.js +103 -0
- package/payload/templates/starter/pages/tasks.js +187 -0
- package/payload/templates/starter/pages/website.js +29 -0
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
/* Bismillah */
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
|
|
5
|
+
ActionTabBar - v26.11
|
|
6
|
+
|
|
7
|
+
UI COMPONENT
|
|
8
|
+
- A tab bar for the bottom of a mobile app, with a big round "+" button at its right end: the tabs (an icon over a
|
|
9
|
+
text) change the page, the "+" runs the main action of the app (Ex: add a spending). The new version of the bottom
|
|
10
|
+
tab bar of javascript-mobile-app-template (custom-tab-bar.htm, js/custom/custom-tab-bar/ui-bottom-tab-bar.js), with
|
|
11
|
+
the same look and the same motion.
|
|
12
|
+
- The selected tab is clear (opacity 1), the others are faded. A short line under the selected tab slides to it
|
|
13
|
+
(0.2 s). Only transform moves; no motion at the first view; none when the system asks for reduced motion.
|
|
14
|
+
- The "+" is drawn in SVG (no image file) and calls onAction. A tap on a tab selects it and calls onChange.
|
|
15
|
+
- KEYBOARD AND ACCESSIBILITY: the tabs are a tablist (role "tab", aria-selected) with one Tab stop (roving tabindex):
|
|
16
|
+
Left / Right arrows, Home, End move between them, Enter / Space select. The "+" is a button (Tab reaches it,
|
|
17
|
+
Enter / Space; its name: actionAriaLabel). A focus ring only for the keyboard.
|
|
18
|
+
- THE SIZES are px of a 600 px design (the page is fitted with page.fit(600, 800)), like the old template: the tabs
|
|
19
|
+
are 130 px wide from x 30, so three tabs fit next to the "+".
|
|
20
|
+
- onChange is NOT called when the component is created or when the value is set with silent: 1.
|
|
21
|
+
- NEEDS basic.js v26.10.23 (role, aria, tabIndex, setFocusRing).
|
|
22
|
+
|
|
23
|
+
USAGE:
|
|
24
|
+
const tabBar = ActionTabBar({
|
|
25
|
+
bottom: 0,
|
|
26
|
+
items: [
|
|
27
|
+
{ key: "status", text: "STATUS", iconFile: "_basic/assets/tab-bar/status.png" },
|
|
28
|
+
{ key: "receipts", text: "RECEIPTS", iconFile: "_basic/assets/tab-bar/transactions.png" },
|
|
29
|
+
{ key: "tools", text: "TOOLS", iconFile: "_basic/assets/tab-bar/settings.png" },
|
|
30
|
+
],
|
|
31
|
+
value: "status",
|
|
32
|
+
onChange: function (self) { openPage(self.value); },
|
|
33
|
+
onAction: function (self) { openNewSpending(); },
|
|
34
|
+
});
|
|
35
|
+
tabBar.setValue("tools"); // onChange is called
|
|
36
|
+
tabBar.setValue("status", 1); // silent: onChange is not called
|
|
37
|
+
tabBar.getIndex(); // 0: the index of the selected tab
|
|
38
|
+
|
|
39
|
+
Started Date: November 2026 (the old bottomTabBar: 2022)
|
|
40
|
+
Developer: Bugra Ozden
|
|
41
|
+
Email: bugra.ozden@gmail.com
|
|
42
|
+
Webpage: https://bug7a.github.io/js-components/
|
|
43
|
+
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
"use strict";
|
|
47
|
+
|
|
48
|
+
// Default values:
|
|
49
|
+
const ActionTabBarDefaults = {
|
|
50
|
+
key: "0", // Your name for this object: read it in a callback (self.key)
|
|
51
|
+
width: 600,
|
|
52
|
+
height: 150,
|
|
53
|
+
items: [], // [{ key, text, iconFile }] (Only at create time)
|
|
54
|
+
value: null, // The key of the selected tab. null: the first tab
|
|
55
|
+
ariaLabel: "Tabs", // The name of the tab list for a screen reader
|
|
56
|
+
actionAriaLabel: "Add", // The name of the "+" button for a screen reader
|
|
57
|
+
onChange: function (self) { }, // self.value, self.previousValue, self.getIndex()
|
|
58
|
+
onAction: function (self) { }, // The "+" button
|
|
59
|
+
style: {
|
|
60
|
+
bar: {
|
|
61
|
+
space: 20, // From the left, the top and the right of the box
|
|
62
|
+
height: 100,
|
|
63
|
+
background: "linear-gradient(to bottom, #D8D8D8, #D8D8D800)",
|
|
64
|
+
round: 20,
|
|
65
|
+
border: 1,
|
|
66
|
+
borderColor: "#141414",
|
|
67
|
+
},
|
|
68
|
+
item: { // A tab: as high as the bar
|
|
69
|
+
left: 30, // The first tab, from the left of the box
|
|
70
|
+
width: 130,
|
|
71
|
+
gap: 5, // Between the tabs
|
|
72
|
+
round: 16, // The shape of its focus ring
|
|
73
|
+
passiveOpacity: 0.4, // A tab that is not selected
|
|
74
|
+
},
|
|
75
|
+
icon: {
|
|
76
|
+
size: 40,
|
|
77
|
+
top: 12,
|
|
78
|
+
},
|
|
79
|
+
label: {
|
|
80
|
+
bottom: 12,
|
|
81
|
+
fontSize: 23,
|
|
82
|
+
textColor: "#000000",
|
|
83
|
+
opacity: 0.6,
|
|
84
|
+
},
|
|
85
|
+
indicator: { // The line under the selected tab
|
|
86
|
+
top: 106,
|
|
87
|
+
width: 60,
|
|
88
|
+
height: 4,
|
|
89
|
+
color: "#40A5AF",
|
|
90
|
+
opacity: 0.8,
|
|
91
|
+
round: 4,
|
|
92
|
+
motionTime: 0.2, // s: it slides to the selected tab. 0: no motion
|
|
93
|
+
ease: "ease",
|
|
94
|
+
},
|
|
95
|
+
action: { // The round "+" button
|
|
96
|
+
top: 10,
|
|
97
|
+
right: 35,
|
|
98
|
+
size: 120,
|
|
99
|
+
color: "#FFFFFF",
|
|
100
|
+
border: 2,
|
|
101
|
+
borderColor: "#141414",
|
|
102
|
+
round: 100,
|
|
103
|
+
iconSize: 48,
|
|
104
|
+
iconColor: "#000000",
|
|
105
|
+
iconLine: 2.35, // On a 24 px grid
|
|
106
|
+
iconOpacity: 0.65,
|
|
107
|
+
},
|
|
108
|
+
focus: {
|
|
109
|
+
ringColor: "rgba(64, 165, 175, 0.9)", // The ring of the keyboard focus (a tab, the "+")
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
const ActionTabBar = function (params = {}) {
|
|
115
|
+
|
|
116
|
+
// Merge params:
|
|
117
|
+
mergeIntoIfMissing(params, ActionTabBarDefaults);
|
|
118
|
+
|
|
119
|
+
// Edit params, if needed:
|
|
120
|
+
params.color = "transparent";
|
|
121
|
+
params.items = ActionTabBar.normalizeItems(params.items); // WHY: A copy: the array of the caller does not change.
|
|
122
|
+
|
|
123
|
+
// BOX: Component container
|
|
124
|
+
const box = startObject(params);
|
|
125
|
+
|
|
126
|
+
// *** PRIVATE VARIABLES:
|
|
127
|
+
const _s = box.style;
|
|
128
|
+
let itemList = []; // A Box for every tab (item.data: { key, text, iconFile }; item.icon, item.label)
|
|
129
|
+
|
|
130
|
+
// *** PUBLIC VARIABLES:
|
|
131
|
+
box.previousValue = null;
|
|
132
|
+
// NOTE: Default values are also public variables. (box.items, box.value)
|
|
133
|
+
|
|
134
|
+
// *** PRIVATE FUNCTIONS:
|
|
135
|
+
|
|
136
|
+
// DRAWING: each function does one job:
|
|
137
|
+
// createItems() -> a Box for every tab (the first drawing)
|
|
138
|
+
// showSelectedItem() -> after box.value changed: the look of the tabs, the line under the selected one
|
|
139
|
+
// and the Tab order (setValue)
|
|
140
|
+
|
|
141
|
+
const findItem = function (key) {
|
|
142
|
+
return itemList.find(function (item) { return item.data.key === key; }) || null;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
const isMotionOn = function () {
|
|
146
|
+
const reduceMotion = window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
147
|
+
return !reduceMotion;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
// The left of a tab in the box: from style.item.left, one after the other.
|
|
151
|
+
const getItemLeft = function (index) {
|
|
152
|
+
return _s.item.left + index * (_s.item.width + _s.item.gap);
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
// The line is in the middle under its tab.
|
|
156
|
+
const getIndicatorLeft = function (index) {
|
|
157
|
+
return getItemLeft(index) + (_s.item.width - _s.indicator.width) / 2;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
// DATA: one tab, in the tab list. (createIn)
|
|
161
|
+
const createItem = function (data, index) {
|
|
162
|
+
|
|
163
|
+
// BOX: Tab
|
|
164
|
+
const item = startBox({
|
|
165
|
+
left: getItemLeft(index),
|
|
166
|
+
top: _s.bar.space,
|
|
167
|
+
width: _s.item.width,
|
|
168
|
+
height: _s.bar.height,
|
|
169
|
+
color: "transparent",
|
|
170
|
+
round: _s.item.round,
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
// ICON:
|
|
174
|
+
item.icon = Icon({
|
|
175
|
+
left: (_s.item.width - _s.icon.size) / 2,
|
|
176
|
+
top: _s.icon.top,
|
|
177
|
+
width: _s.icon.size,
|
|
178
|
+
height: _s.icon.size,
|
|
179
|
+
alt: "",
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
// LABEL: Text
|
|
183
|
+
item.label = Label({ ..._s.label, left: 0, width: "100%", textAlign: "center", plainText: data.text });
|
|
184
|
+
|
|
185
|
+
endBox();
|
|
186
|
+
|
|
187
|
+
item.data = data;
|
|
188
|
+
item.cursor = "pointer";
|
|
189
|
+
item.role = "tab";
|
|
190
|
+
item.aria = { label: data.text };
|
|
191
|
+
item.setFocusRing(_s.focus.ringColor);
|
|
192
|
+
if (data.iconFile) item.icon.load(data.iconFile);
|
|
193
|
+
else item.icon.visible = 0;
|
|
194
|
+
|
|
195
|
+
item.on("click", function () { selectByUser(item); });
|
|
196
|
+
item.on("keydown", function (self, event) { onItemKeyDown(item, event); });
|
|
197
|
+
return item;
|
|
198
|
+
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
const createItems = function () {
|
|
202
|
+
itemList = box.items.map(function (data, index) {
|
|
203
|
+
return createIn(box.tabList, function () { return createItem(data, index); });
|
|
204
|
+
});
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
// The line slides to the selected tab. (isAnimated: 0 -> it jumps: the first view)
|
|
208
|
+
const moveIndicator = function (isAnimated) {
|
|
209
|
+
const index = box.getIndex();
|
|
210
|
+
box.indicator.visible = (index >= 0) ? 1 : 0;
|
|
211
|
+
if (index < 0) return;
|
|
212
|
+
const seconds = _s.indicator.motionTime;
|
|
213
|
+
const isMoving = (isAnimated && seconds > 0 && isMotionOn());
|
|
214
|
+
box.indicator.setMotionNow((isMoving) ? "transform " + seconds + "s " + _s.indicator.ease : "none");
|
|
215
|
+
box.indicator.css.transform = "translateX(" + getIndicatorLeft(index) + "px)";
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
// Roving tabindex: only one tab is in the Tab order.
|
|
219
|
+
// WHY: The only place that sets the tabIndex of the tabs: with two places, two tabs could be in the Tab order.
|
|
220
|
+
const makeTabbable = function (tabbableItem) {
|
|
221
|
+
itemList.forEach(function (item) {
|
|
222
|
+
item.tabIndex = (item === tabbableItem) ? 0 : -1;
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
// THE SELECTED TAB IS SHOWN: the look of the tabs, the line under the selected one, the Tab order.
|
|
227
|
+
// WHY: One place, so no setter can forget a part.
|
|
228
|
+
const showSelectedItem = function (isAnimated) {
|
|
229
|
+
const selectedItem = findItem(box.value);
|
|
230
|
+
itemList.forEach(function (item) {
|
|
231
|
+
const isSelected = (item === selectedItem);
|
|
232
|
+
item.opacity = (isSelected) ? 1 : _s.item.passiveOpacity;
|
|
233
|
+
item.aria = { selected: isSelected };
|
|
234
|
+
});
|
|
235
|
+
moveIndicator(isAnimated);
|
|
236
|
+
makeTabbable(selectedItem || itemList[0]);
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
const focusItem = function (item) {
|
|
240
|
+
makeTabbable(item);
|
|
241
|
+
item.elem.focus({ preventScroll: true });
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
// A tap on a tab: it is selected and takes the focus (a ring only for the keyboard).
|
|
245
|
+
const selectByUser = function (item) {
|
|
246
|
+
box.setValue(item.data.key);
|
|
247
|
+
focusItem(item);
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
const onItemKeyDown = function (item, event) {
|
|
251
|
+
const index = itemList.indexOf(item);
|
|
252
|
+
const count = itemList.length;
|
|
253
|
+
const key = event.key;
|
|
254
|
+
if (key === "ArrowLeft") focusItem(itemList[(index - 1 + count) % count]); // WHY: % goes round at both ends.
|
|
255
|
+
else if (key === "ArrowRight") focusItem(itemList[(index + 1) % count]);
|
|
256
|
+
else if (key === "Home") focusItem(itemList[0]);
|
|
257
|
+
else if (key === "End") focusItem(itemList[count - 1]);
|
|
258
|
+
else if (key === "Enter" || key === " ") box.setValue(item.data.key);
|
|
259
|
+
else return; // Another key: the browser keeps it.
|
|
260
|
+
event.preventDefault();
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
const runAction = function () {
|
|
264
|
+
box.onAction(box);
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
const onActionKeyDown = function (self, event) {
|
|
268
|
+
if (event.key !== "Enter" && event.key !== " ") return;
|
|
269
|
+
event.preventDefault();
|
|
270
|
+
runAction();
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
// *** PUBLIC FUNCTIONS:
|
|
274
|
+
|
|
275
|
+
// silent: 1 -> onChange is not called. Returns 1 when the tab exists.
|
|
276
|
+
box.setValue = function (key, silent = 0) {
|
|
277
|
+
if (!findItem(key)) return 0;
|
|
278
|
+
if (box.value === key) return 1;
|
|
279
|
+
box.previousValue = box.value;
|
|
280
|
+
box.value = key;
|
|
281
|
+
showSelectedItem(1);
|
|
282
|
+
if (!silent) box.onChange(box);
|
|
283
|
+
return 1;
|
|
284
|
+
};
|
|
285
|
+
// USAGE: tabBar.setValue("tools")
|
|
286
|
+
|
|
287
|
+
// The index of a tab (default: the selected one). -1: no tab with this key.
|
|
288
|
+
box.getIndex = function (key = box.value) {
|
|
289
|
+
return itemList.findIndex(function (item) { return item.data.key === key; });
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
// *** OBJECT VIEW:
|
|
293
|
+
|
|
294
|
+
const _b = _s.bar;
|
|
295
|
+
const _a = _s.action;
|
|
296
|
+
|
|
297
|
+
// BOX: The bar (a gray that fades to the bottom)
|
|
298
|
+
box.bar = Box({
|
|
299
|
+
left: _b.space,
|
|
300
|
+
top: _b.space,
|
|
301
|
+
width: "calc(100% - " + (_b.space * 2) + "px)",
|
|
302
|
+
height: _b.height,
|
|
303
|
+
color: "transparent",
|
|
304
|
+
round: _b.round,
|
|
305
|
+
border: _b.border,
|
|
306
|
+
borderColor: _b.borderColor,
|
|
307
|
+
css: { background: _b.background },
|
|
308
|
+
});
|
|
309
|
+
|
|
310
|
+
// BOX: The tab list (the tabs are made by createItems())
|
|
311
|
+
box.tabList = Box({ left: 0, top: 0, width: "100%", height: "100%", color: "transparent" });
|
|
312
|
+
box.tabList.role = "tablist";
|
|
313
|
+
box.tabList.aria = { label: box.ariaLabel };
|
|
314
|
+
|
|
315
|
+
// BOX: The line under the selected tab
|
|
316
|
+
box.indicator = Box({
|
|
317
|
+
left: 0,
|
|
318
|
+
top: _s.indicator.top,
|
|
319
|
+
width: _s.indicator.width,
|
|
320
|
+
height: _s.indicator.height,
|
|
321
|
+
color: _s.indicator.color,
|
|
322
|
+
opacity: _s.indicator.opacity,
|
|
323
|
+
round: _s.indicator.round,
|
|
324
|
+
});
|
|
325
|
+
|
|
326
|
+
// LABEL: The round "+" button
|
|
327
|
+
box.btnAction = Label({
|
|
328
|
+
right: _a.right,
|
|
329
|
+
top: _a.top,
|
|
330
|
+
width: _a.size,
|
|
331
|
+
height: _a.size,
|
|
332
|
+
color: _a.color,
|
|
333
|
+
border: _a.border,
|
|
334
|
+
borderColor: _a.borderColor,
|
|
335
|
+
round: _a.round,
|
|
336
|
+
text: ActionTabBar.getPlusSvg(_a.iconColor, _a.iconSize, _a.iconLine, _a.iconOpacity),
|
|
337
|
+
lineHeight: "0",
|
|
338
|
+
clickable: 1,
|
|
339
|
+
cursor: "pointer",
|
|
340
|
+
css: { display: "flex", alignItems: "center", justifyContent: "center" },
|
|
341
|
+
});
|
|
342
|
+
box.btnAction.role = "button";
|
|
343
|
+
box.btnAction.aria = { label: box.actionAriaLabel };
|
|
344
|
+
box.btnAction.tabIndex = 0;
|
|
345
|
+
box.btnAction.setFocusRing(_s.focus.ringColor);
|
|
346
|
+
|
|
347
|
+
// *** OBJECT INIT CODE:
|
|
348
|
+
|
|
349
|
+
box.btnAction.on("click", runAction);
|
|
350
|
+
box.btnAction.on("keydown", onActionKeyDown);
|
|
351
|
+
|
|
352
|
+
createItems();
|
|
353
|
+
if (!findItem(box.value)) box.value = (itemList.length) ? itemList[0].data.key : null;
|
|
354
|
+
showSelectedItem(0);
|
|
355
|
+
|
|
356
|
+
return endObject(box);
|
|
357
|
+
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
// *** STATIC FUNCTIONS:
|
|
361
|
+
|
|
362
|
+
// A tab: { key, text, iconFile }. A text is a tab too: "Home" -> { key: "Home", text: "Home", iconFile: "" }
|
|
363
|
+
ActionTabBar.normalizeItems = function (items) {
|
|
364
|
+
if (!Array.isArray(items)) return [];
|
|
365
|
+
return items.map(function (item) {
|
|
366
|
+
if (typeof item !== "object" || item === null) return { key: String(item), text: String(item), iconFile: "" };
|
|
367
|
+
const text = (item.text === undefined || item.text === null) ? "" : String(item.text);
|
|
368
|
+
const key = (item.key === undefined) ? text : item.key;
|
|
369
|
+
return { key: key, text: text, iconFile: item.iconFile || "" };
|
|
370
|
+
});
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
// The "+" of the action button. line: the width of its lines on the 24 px grid of the icon (round ends).
|
|
374
|
+
ActionTabBar.getPlusSvg = function (color, size, line, opacity) {
|
|
375
|
+
const GRID_SIZE = 24;
|
|
376
|
+
const middle = GRID_SIZE / 2;
|
|
377
|
+
const start = line / 2; // WHY: The round ends touch the edges of the grid, like the icon of the old template.
|
|
378
|
+
const end = GRID_SIZE - line / 2;
|
|
379
|
+
const path = "M" + middle + " " + start + "V" + end + "M" + start + " " + middle + "H" + end;
|
|
380
|
+
return '<svg xmlns="http://www.w3.org/2000/svg" width="' + size + '" height="' + size + '" viewBox="0 0 24 24"' +
|
|
381
|
+
' fill="none" stroke="' + color + '" stroke-width="' + line + '" stroke-linecap="round" opacity="' + opacity + '"' +
|
|
382
|
+
' aria-hidden="true"><path d="' + path + '"/></svg>';
|
|
383
|
+
};
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/* Bismillah */
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
|
|
5
|
+
AppBar - v26.11
|
|
6
|
+
|
|
7
|
+
THE TOP BAR OF A TAB PAGE of a mobile app, with the look of the old javascript-mobile-app-template
|
|
8
|
+
(js/ui-top-bar.js, the "topBar" of its tab pages).
|
|
9
|
+
- The sizes are px of a 600 px design: the page is fitted with page.fit(600, 800), like the mobile template
|
|
10
|
+
(04-templates/mobile-app-template/classic).
|
|
11
|
+
- A white bar, 105 px high. The title (28 px, bold) in the middle (titleAlign "center") or at the left ("left");
|
|
12
|
+
a long title ends with "...". In the middle it keeps the same room at both sides, so it stays in the middle of
|
|
13
|
+
the bar when only one button is shown.
|
|
14
|
+
- A back button at the left (showBack: 1) and a menu button at the right (showMenu: 1): 40 x 40, 20 px from the
|
|
15
|
+
sides. The buttons and the title stand 24 px from the bottom of the bar.
|
|
16
|
+
- The buttons are SmartButtons (styleName "ozdenType4": a gray square under the mouse), with only an icon and an
|
|
17
|
+
aria label: the keyboard and the screen readers work as with every SmartButton.
|
|
18
|
+
- The icons are drawn in SVG in iconColor (a back arrow with a shaft, three dots), or your own files
|
|
19
|
+
(backIconFile, menuIconFile: a file keeps its own colors).
|
|
20
|
+
- line: 1 -> a 2 px soft line at the bottom. Its place is always there (a clear line when it is off), so the title
|
|
21
|
+
and the buttons do not move when it changes.
|
|
22
|
+
- NEEDS: comp/smart-button.js, loaded before the bar is created.
|
|
23
|
+
|
|
24
|
+
USAGE:
|
|
25
|
+
const bar = AppBar({ titleText: "Settings", titleAlign: "left", line: 1, onMenu: function (self) { menu.open(); } });
|
|
26
|
+
AppBar({ titleText: "Details", showBack: 1, onBack: function (self) { App.goBack(); } });
|
|
27
|
+
AppBar({ titleText: "Green", color: "#5ABB9F", iconColor: "white", style: { title: { textColor: "white" } } });
|
|
28
|
+
bar.setTitleText("Tasks");
|
|
29
|
+
bar.setTitleAlign("center");
|
|
30
|
+
bar.setLine(0);
|
|
31
|
+
bar.setBackVisible(1);
|
|
32
|
+
bar.setMenuVisible(0);
|
|
33
|
+
|
|
34
|
+
Started Date: November 2026 (the look of bug7a/javascript-mobile-app-template)
|
|
35
|
+
Developer: Bugra Ozden
|
|
36
|
+
Email: bugra.ozden@gmail.com
|
|
37
|
+
Webpage: https://bug7a.github.io/js-components/
|
|
38
|
+
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
"use strict";
|
|
42
|
+
|
|
43
|
+
// Default values:
|
|
44
|
+
const AppBarDefaults = {
|
|
45
|
+
key: "0", // Your name for this object: read it in a callback (self.key)
|
|
46
|
+
left: 0, // The bar stands at the top of its container (a page)
|
|
47
|
+
top: 0,
|
|
48
|
+
width: "100%",
|
|
49
|
+
height: 105,
|
|
50
|
+
color: "white", // The background of the bar
|
|
51
|
+
titleText: "",
|
|
52
|
+
titleAlign: "center", // "center" or "left" (set later with setTitleAlign)
|
|
53
|
+
line: 0, // 1: a soft line at the bottom (setLine)
|
|
54
|
+
showBack: 0, // 1: the back button at the left (setBackVisible)
|
|
55
|
+
showMenu: 1, // 1: the menu button at the right (setMenuVisible)
|
|
56
|
+
backIconFile: "", // "": a back arrow drawn in SVG (Ex: "assets/icons/back.svg")
|
|
57
|
+
menuIconFile: "", // "": three dots drawn in SVG
|
|
58
|
+
iconColor: Black(0.8), // The color of the drawn icons (a file keeps its own colors)
|
|
59
|
+
backAriaLabel: "Back", // What a screen reader says for the buttons
|
|
60
|
+
menuAriaLabel: "Menu",
|
|
61
|
+
onBack: function (self) { },
|
|
62
|
+
onMenu: function (self) { },
|
|
63
|
+
style: {
|
|
64
|
+
layout: {
|
|
65
|
+
side: 20, // The space at the left and the right
|
|
66
|
+
bottom: 24, // The buttons and the title stand this far from the bottom
|
|
67
|
+
titleGap: 10, // The least space between a button and the title
|
|
68
|
+
// WHY: the back arrow of the old template was its 34 px icon at (side, bottom), in line with the title;
|
|
69
|
+
// in a 40 px button it stands that far only when the button goes 3 px to the left and down
|
|
70
|
+
backShift: 3,
|
|
71
|
+
},
|
|
72
|
+
title: {
|
|
73
|
+
fontSize: 28,
|
|
74
|
+
bold: 1,
|
|
75
|
+
textColor: Black(0.8),
|
|
76
|
+
},
|
|
77
|
+
button: {
|
|
78
|
+
size: 40,
|
|
79
|
+
iconSize: 34, // In the middle of the button
|
|
80
|
+
},
|
|
81
|
+
line: {
|
|
82
|
+
width: 2,
|
|
83
|
+
color: Black(0.1),
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const AppBar = function (params = {}) {
|
|
89
|
+
|
|
90
|
+
// Merge params:
|
|
91
|
+
mergeIntoIfMissing(params, AppBarDefaults);
|
|
92
|
+
|
|
93
|
+
// BOX: Component container
|
|
94
|
+
const box = startObject(params);
|
|
95
|
+
|
|
96
|
+
// *** PRIVATE VARIABLES:
|
|
97
|
+
const _s = box.style;
|
|
98
|
+
|
|
99
|
+
// *** PRIVATE FUNCTIONS:
|
|
100
|
+
|
|
101
|
+
// The room of a button with its gap to the title (0: the button is not shown)
|
|
102
|
+
const getButtonRoom = function (isShown) {
|
|
103
|
+
if (!isShown) return 0;
|
|
104
|
+
return _s.button.size + _s.layout.titleGap;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
// TITLE: at the left, or in the middle with the same room at both sides (so it is in the middle of the bar)
|
|
108
|
+
const placeTitle = function () {
|
|
109
|
+
const backRoom = getButtonRoom(box.showBack == 1);
|
|
110
|
+
const menuRoom = getButtonRoom(box.showMenu == 1);
|
|
111
|
+
const isLeft = (box.titleAlign == "left");
|
|
112
|
+
const sideRoom = Math.max(backRoom, menuRoom);
|
|
113
|
+
const leftSpace = _s.layout.side + (isLeft ? backRoom : sideRoom);
|
|
114
|
+
const rightSpace = _s.layout.side + (isLeft ? menuRoom : sideRoom);
|
|
115
|
+
box.lblTitle.left = leftSpace;
|
|
116
|
+
box.lblTitle.width = "calc(100% - " + (leftSpace + rightSpace) + "px)";
|
|
117
|
+
box.lblTitle.textAlign = box.titleAlign;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
// WHY always a border: a clear line when it is off, so the title and the buttons stay at the same place
|
|
121
|
+
const paintLine = function () {
|
|
122
|
+
const lineColor = (box.line == 1) ? _s.line.color : "transparent";
|
|
123
|
+
box.css = { borderBottom: _s.line.width + "px solid " + lineColor };
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
// BUTTON: only an icon, in the middle (place: { left, bottom } or { right, bottom })
|
|
127
|
+
const createButton = function (iconFile, ariaLabel, onClick, place) {
|
|
128
|
+
const iconSpace = (_s.button.size - _s.button.iconSize) / 2;
|
|
129
|
+
const button = SmartButton({
|
|
130
|
+
styleName: "ozdenType4",
|
|
131
|
+
labelText: "",
|
|
132
|
+
iconFile: iconFile,
|
|
133
|
+
ariaLabel: ariaLabel,
|
|
134
|
+
width: _s.button.size,
|
|
135
|
+
height: _s.button.size,
|
|
136
|
+
...place,
|
|
137
|
+
style: {
|
|
138
|
+
layout: { padding: [iconSpace, iconSpace] },
|
|
139
|
+
icon: { width: _s.button.iconSize, height: _s.button.iconSize, opacity: 1 },
|
|
140
|
+
},
|
|
141
|
+
onClick: onClick,
|
|
142
|
+
});
|
|
143
|
+
button.icon.alt = ""; // WHY: load() writes the file as the alt text (a drawn icon is a long data URI)
|
|
144
|
+
return button;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
// *** PUBLIC FUNCTIONS:
|
|
148
|
+
|
|
149
|
+
box.setTitleText = function (text) {
|
|
150
|
+
box.titleText = text;
|
|
151
|
+
box.lblTitle.plainText = text;
|
|
152
|
+
};
|
|
153
|
+
// USAGE: bar.setTitleText("Settings")
|
|
154
|
+
|
|
155
|
+
box.setTitleAlign = function (align) {
|
|
156
|
+
box.titleAlign = (align == "left") ? "left" : "center";
|
|
157
|
+
placeTitle();
|
|
158
|
+
};
|
|
159
|
+
// USAGE: get: bar.titleAlign, set: bar.setTitleAlign("left")
|
|
160
|
+
|
|
161
|
+
box.setLine = function (value) {
|
|
162
|
+
box.line = basic.isOn(value) ? 1 : 0;
|
|
163
|
+
paintLine();
|
|
164
|
+
};
|
|
165
|
+
// USAGE: bar.setLine(1)
|
|
166
|
+
|
|
167
|
+
box.setBackVisible = function (value) {
|
|
168
|
+
box.showBack = basic.isOn(value) ? 1 : 0;
|
|
169
|
+
box.btnBack.visible = box.showBack;
|
|
170
|
+
placeTitle();
|
|
171
|
+
};
|
|
172
|
+
// USAGE: get: bar.showBack, set: bar.setBackVisible(1)
|
|
173
|
+
|
|
174
|
+
box.setMenuVisible = function (value) {
|
|
175
|
+
box.showMenu = basic.isOn(value) ? 1 : 0;
|
|
176
|
+
box.btnMenu.visible = box.showMenu;
|
|
177
|
+
placeTitle();
|
|
178
|
+
};
|
|
179
|
+
// USAGE: get: bar.showMenu, set: bar.setMenuVisible(0)
|
|
180
|
+
|
|
181
|
+
// *** OBJECT VIEW:
|
|
182
|
+
|
|
183
|
+
// BOX: Bar
|
|
184
|
+
box.shrink = 0; // WHY: in a group with a fixed height the bar keeps its height
|
|
185
|
+
paintLine();
|
|
186
|
+
|
|
187
|
+
// LABEL: Title (placeTitle gives its left and its width)
|
|
188
|
+
box.lblTitle = Label({ bottom: _s.layout.bottom, ..._s.title, ellipsis: 1 });
|
|
189
|
+
box.lblTitle.role = "heading";
|
|
190
|
+
box.lblTitle.aria = { level: 1 };
|
|
191
|
+
|
|
192
|
+
// BUTTON: Back (left)
|
|
193
|
+
const backIconFile = box.backIconFile || AppBar.toSvgFile(AppBar.drawBackArrow(box.iconColor));
|
|
194
|
+
box.btnBack = createButton(backIconFile, box.backAriaLabel, function () {
|
|
195
|
+
box.onBack(box);
|
|
196
|
+
}, { left: _s.layout.side - _s.layout.backShift, bottom: _s.layout.bottom - _s.layout.backShift });
|
|
197
|
+
|
|
198
|
+
// BUTTON: Menu (right)
|
|
199
|
+
const menuIconFile = box.menuIconFile || AppBar.toSvgFile(AppBar.drawMenuDots(box.iconColor));
|
|
200
|
+
box.btnMenu = createButton(menuIconFile, box.menuAriaLabel, function () {
|
|
201
|
+
box.onMenu(box);
|
|
202
|
+
}, { right: _s.layout.side, bottom: _s.layout.bottom });
|
|
203
|
+
|
|
204
|
+
// *** OBJECT INIT CODE:
|
|
205
|
+
|
|
206
|
+
box.setTitleText(box.titleText);
|
|
207
|
+
box.setTitleAlign(box.titleAlign);
|
|
208
|
+
box.setBackVisible(box.showBack);
|
|
209
|
+
box.setMenuVisible(box.showMenu);
|
|
210
|
+
|
|
211
|
+
return endObject(box);
|
|
212
|
+
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
// *** STATIC FUNCTIONS:
|
|
216
|
+
|
|
217
|
+
// An SVG text as a file for an Icon (a data URI)
|
|
218
|
+
AppBar.toSvgFile = function (svg) {
|
|
219
|
+
return "data:image/svg+xml;charset=utf-8," + encodeURIComponent(svg);
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
// A back arrow with a shaft (24 x 24; the shape and the size of the arrow of the old template)
|
|
223
|
+
AppBar.drawBackArrow = function (color) {
|
|
224
|
+
return '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="' + color +
|
|
225
|
+
'" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 12H7.6M12 7l-5 5 5 5"/></svg>';
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
// Three dots one under the other (24 x 24; as big and as far apart as the dots of the old template)
|
|
229
|
+
AppBar.MENU_DOT_RADIUS = 2.5;
|
|
230
|
+
AppBar.MENU_DOT_PLACES = [2.5, 12, 21.5];
|
|
231
|
+
AppBar.drawMenuDots = function (color) {
|
|
232
|
+
const dots = AppBar.MENU_DOT_PLACES.map(function (y) {
|
|
233
|
+
return '<circle cx="12" cy="' + y + '" r="' + AppBar.MENU_DOT_RADIUS + '"/>';
|
|
234
|
+
});
|
|
235
|
+
return '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="' + color + '">' + dots.join("") + "</svg>";
|
|
236
|
+
};
|