create-basicjs 0.1.0 → 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 +1 -1
- package/bin/create-basicjs.js +2 -2
- package/bin/verify-package.js +16 -0
- package/package.json +4 -1
- 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,483 @@
|
|
|
1
|
+
/* Bismillah */
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
|
|
5
|
+
MiniGraphBox - v26.09
|
|
6
|
+
|
|
7
|
+
UI COMPONENT TEMPLATE
|
|
8
|
+
- A small box with a title, a value text, an icon and a bar graph.
|
|
9
|
+
- The title, value text and icon can be changed. (setTitle, setValueText, setIcon)
|
|
10
|
+
- The bar color can be changed. (setBarColor) A value can have its own color too. (addValue(12, "red"))
|
|
11
|
+
- New values are added to the right. When the graph is full, the first value is removed
|
|
12
|
+
and all the bars move one step to the left.
|
|
13
|
+
- WHY: Bar objects are created one time. Only their heights and colors change. (Fast for live data)
|
|
14
|
+
- Bar count: As many bars as fit in the width. It is calculated again when the size changes.
|
|
15
|
+
- TOOLTIP (2026-10-28, the user: "at once, no delay"): the mouse over the bars shows the value of the bar under it in a
|
|
16
|
+
small box over the bar. The bar is found from the mouse x (the bars are thin), the box follows live values.
|
|
17
|
+
valueFormat(value, index, self) makes its text; showTooltip: 0 turns it off.
|
|
18
|
+
|
|
19
|
+
VALUE: A number, or { value, color }
|
|
20
|
+
|
|
21
|
+
USAGE:
|
|
22
|
+
const graph = MiniGraphBox({ title: "Sold Items", valueText: "1.3K", iconFile: "carrot.png", barColor: "tomato" });
|
|
23
|
+
graph.addValue(24);
|
|
24
|
+
graph.addValue(30, "orange");
|
|
25
|
+
graph.setValues([10, 20, 15]);
|
|
26
|
+
MiniGraphBox({ valueFormat: function (value) { return value + " items"; } });
|
|
27
|
+
|
|
28
|
+
Started Date: September 2026
|
|
29
|
+
Developer: Bugra Ozden
|
|
30
|
+
Email: bugra.ozden@gmail.com
|
|
31
|
+
Webpage: https://bug7a.github.io/js-components/
|
|
32
|
+
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
"use strict";
|
|
36
|
+
|
|
37
|
+
// Default values:
|
|
38
|
+
const MiniGraphBoxDefaults = {
|
|
39
|
+
key: "0",
|
|
40
|
+
width: 200,
|
|
41
|
+
height: 80,
|
|
42
|
+
title: "Sold Items",
|
|
43
|
+
valueText: "1.3K",
|
|
44
|
+
iconFile: "", // "": No icon
|
|
45
|
+
barColor: "tomato",
|
|
46
|
+
values: [], // [10, 20, { value: 15, color: "orange" }]
|
|
47
|
+
maxValue: 0, // 0: Auto (the biggest visible value is the top of the graph)
|
|
48
|
+
animated: 1, // 1: Bar heights change with a short motion.
|
|
49
|
+
showTooltip: 1, // 1: the value of the bar under the mouse, in a small box (at once)
|
|
50
|
+
valueFormat: function (value, index, self) { return String(value); }, // The text of the tooltip
|
|
51
|
+
onClick: function (self) { },
|
|
52
|
+
style: {
|
|
53
|
+
box: {
|
|
54
|
+
color: "whitesmoke",
|
|
55
|
+
border: 1,
|
|
56
|
+
borderColor: Black(0.6),
|
|
57
|
+
round: 4,
|
|
58
|
+
},
|
|
59
|
+
text: {
|
|
60
|
+
padding: 8,
|
|
61
|
+
},
|
|
62
|
+
title: {
|
|
63
|
+
fontSize: 12,
|
|
64
|
+
textColor: Black(0.5),
|
|
65
|
+
},
|
|
66
|
+
valueText: {
|
|
67
|
+
fontSize: 20,
|
|
68
|
+
textColor: Black(0.75),
|
|
69
|
+
},
|
|
70
|
+
icon: {
|
|
71
|
+
width: 24,
|
|
72
|
+
height: 24,
|
|
73
|
+
},
|
|
74
|
+
bars: {
|
|
75
|
+
height: 30, // The tallest bar height
|
|
76
|
+
minHeight: 2, // Height for small values (bigger than 0)
|
|
77
|
+
barWidth: 3,
|
|
78
|
+
gap: 1,
|
|
79
|
+
padding: 2, // Left and right space
|
|
80
|
+
round: 1,
|
|
81
|
+
},
|
|
82
|
+
tooltip: {
|
|
83
|
+
color: Black(0.8),
|
|
84
|
+
textColor: "white",
|
|
85
|
+
fontSize: 11,
|
|
86
|
+
padding: [6, 2],
|
|
87
|
+
round: 4,
|
|
88
|
+
gap: 3, // between the tooltip and the top of the bar
|
|
89
|
+
barOpacity: 0.55, // the other bars while one is under the mouse
|
|
90
|
+
},
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
const MiniGraphBox = function (params = {}) {
|
|
95
|
+
|
|
96
|
+
// Merge params:
|
|
97
|
+
mergeIntoIfMissing(params, MiniGraphBoxDefaults);
|
|
98
|
+
|
|
99
|
+
// Edit params, if needed:
|
|
100
|
+
const _bs = params.style.box;
|
|
101
|
+
params.color = _bs.color;
|
|
102
|
+
params.border = _bs.border;
|
|
103
|
+
params.borderColor = _bs.borderColor;
|
|
104
|
+
params.round = _bs.round;
|
|
105
|
+
|
|
106
|
+
// BOX: Component container
|
|
107
|
+
let box = startObject(params);
|
|
108
|
+
|
|
109
|
+
// *** PRIVATE VARIABLES:
|
|
110
|
+
const _s = box.style;
|
|
111
|
+
let barList = []; // Bar objects (created one time for the bar count)
|
|
112
|
+
let cancelResize = null; // (box.after: stopped by remove())
|
|
113
|
+
const BAR_MOTION = "height 0.2s, background-color 0.2s";
|
|
114
|
+
const NEW_BAR_MOTION = "height 0.2s";
|
|
115
|
+
const RESIZE_WAIT = 30; // ms
|
|
116
|
+
let hoverIndex = -1; // The bar under the mouse (-1: none)
|
|
117
|
+
|
|
118
|
+
// *** PUBLIC VARIABLES:
|
|
119
|
+
// [var] Visible values, from left to right: [{ value, color }]
|
|
120
|
+
box.values = [];
|
|
121
|
+
// [var] How many bars fit in the width.
|
|
122
|
+
box.barCount = 0;
|
|
123
|
+
|
|
124
|
+
// *** PRIVATE FUNCTIONS:
|
|
125
|
+
|
|
126
|
+
const normalizeValue = function (item) {
|
|
127
|
+
if (item !== null && typeof item == "object") {
|
|
128
|
+
return { value: basic.num(item.value) || 0, color: item.color || "" };
|
|
129
|
+
}
|
|
130
|
+
return { value: basic.num(item) || 0, color: "" };
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
// How many bars fit in the inner width of the box.
|
|
134
|
+
const calcBarCount = function () {
|
|
135
|
+
const innerWidth = box.elem.clientWidth - (_s.bars.padding * 2);
|
|
136
|
+
const step = _s.bars.barWidth + _s.bars.gap;
|
|
137
|
+
// WHY: The last bar does not need a gap after it.
|
|
138
|
+
return Math.max(0, Math.floor((innerWidth + _s.bars.gap) / step));
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
// Keep only the last values that fit in the graph.
|
|
142
|
+
const trimValues = function () {
|
|
143
|
+
if (box.barCount <= 0) return; // WHY: made at width 0 (in a hidden group): the values wait for the bars
|
|
144
|
+
if (box.values.length > box.barCount) {
|
|
145
|
+
box.values = box.values.slice(box.values.length - box.barCount);
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
const getMaxValue = function () {
|
|
150
|
+
if (box.maxValue > 0) return box.maxValue;
|
|
151
|
+
let max = 0;
|
|
152
|
+
box.values.forEach(function (item) {
|
|
153
|
+
if (item.value > max) max = item.value;
|
|
154
|
+
});
|
|
155
|
+
return max;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
// Create the bar objects. (Only when the bar count changes.)
|
|
159
|
+
const createBars = function () {
|
|
160
|
+
|
|
161
|
+
barList.forEach(function (bar) { bar.remove(); });
|
|
162
|
+
barList = [];
|
|
163
|
+
|
|
164
|
+
createIn(box.barGroup, function () {
|
|
165
|
+
|
|
166
|
+
for (let i = 0; i < box.barCount; i++) {
|
|
167
|
+
|
|
168
|
+
// BOX: Bar
|
|
169
|
+
const bar = Box({
|
|
170
|
+
width: _s.bars.barWidth,
|
|
171
|
+
height: 0,
|
|
172
|
+
color: box.barColor,
|
|
173
|
+
round: _s.bars.round,
|
|
174
|
+
});
|
|
175
|
+
bar.shrink = 0;
|
|
176
|
+
bar.motion = "";
|
|
177
|
+
barList.push(bar);
|
|
178
|
+
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
// Change the motion only if it is different. (Fewer style changes on every update)
|
|
186
|
+
const setBarMotion = function (bar, motion) {
|
|
187
|
+
if (bar.motion === motion) return;
|
|
188
|
+
bar.motion = motion;
|
|
189
|
+
bar.setMotionNow(motion); // WHY: setMotion() waits a little (timeout); the motion must change before the height.
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
const getBarHeight = function (item, max) {
|
|
193
|
+
if (item.value <= 0 || max <= 0) return 0;
|
|
194
|
+
const height = Math.round(Math.min(item.value, max) / max * _s.bars.height);
|
|
195
|
+
return Math.max(_s.bars.minHeight, height);
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
// Write the values to the bars. (Bars are not moved; only their height and color change.)
|
|
199
|
+
// newBarIndex: The bar of the new value (addValue). Only this bar is animated.
|
|
200
|
+
// WHY: When the graph is full, every bar gets its right neighbour's value. If all of them are animated, the graph looks like a wave, not like moving to the left.
|
|
201
|
+
const updateBars = function (newBarIndex = -1) {
|
|
202
|
+
|
|
203
|
+
const max = getMaxValue();
|
|
204
|
+
|
|
205
|
+
barList.forEach(function (bar, index) {
|
|
206
|
+
|
|
207
|
+
const item = box.values[index];
|
|
208
|
+
const isNewBar = (index == newBarIndex);
|
|
209
|
+
|
|
210
|
+
if (box.animated != 1 || (newBarIndex >= 0 && !isNewBar)) {
|
|
211
|
+
setBarMotion(bar, "none");
|
|
212
|
+
} else if (!isNewBar) {
|
|
213
|
+
setBarMotion(bar, BAR_MOTION);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
if (!item) {
|
|
217
|
+
bar.height = 0;
|
|
218
|
+
bar.elem.title = "";
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
const height = getBarHeight(item, max);
|
|
223
|
+
|
|
224
|
+
if (isNewBar && box.animated == 1) {
|
|
225
|
+
// WHY: This bar showed another value before (graph is full). Start from 0, so it rises like a new bar.
|
|
226
|
+
setBarMotion(bar, "none");
|
|
227
|
+
bar.height = 0;
|
|
228
|
+
bar.color = item.color || box.barColor;
|
|
229
|
+
void bar.elem.offsetHeight; // WHY: Apply height 0 now, before the motion starts.
|
|
230
|
+
setBarMotion(bar, NEW_BAR_MOTION);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
bar.height = height;
|
|
234
|
+
bar.color = item.color || box.barColor;
|
|
235
|
+
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
showTooltip(); // WHY: a live value under the mouse changes its text and its place too
|
|
239
|
+
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
// *** TOOLTIP:
|
|
243
|
+
|
|
244
|
+
// The bar under the mouse: from its x over the bar group (the bars are too thin to point at).
|
|
245
|
+
// WHY the scale: page.fit() zooms the page with a transform; clientX is in screen pixels.
|
|
246
|
+
const findBarIndex = function (event) {
|
|
247
|
+
const rect = box.barGroup.elem.getBoundingClientRect();
|
|
248
|
+
const scale = rect.width / (box.barGroup.elem.offsetWidth || 1);
|
|
249
|
+
const x = (event.clientX - rect.left) / scale - _s.bars.padding;
|
|
250
|
+
const step = _s.bars.barWidth + _s.bars.gap;
|
|
251
|
+
const index = Math.floor((x + _s.bars.gap / 2) / step);
|
|
252
|
+
if (index < 0 || index >= box.values.length) return -1;
|
|
253
|
+
return index;
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
// The other bars are fainter while one is under the mouse.
|
|
257
|
+
const paintBars = function () {
|
|
258
|
+
barList.forEach(function (bar, index) {
|
|
259
|
+
const isFaint = (hoverIndex >= 0 && index != hoverIndex);
|
|
260
|
+
bar.opacity = isFaint ? _s.tooltip.barOpacity : 1;
|
|
261
|
+
});
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
// The box over the bar of hoverIndex, inside the graph (it is not cut at the sides).
|
|
265
|
+
const showTooltip = function () {
|
|
266
|
+
|
|
267
|
+
const item = box.values[hoverIndex];
|
|
268
|
+
const bar = barList[hoverIndex];
|
|
269
|
+
if (!item || !bar || box.showTooltip != 1) {
|
|
270
|
+
// WHY: fewer values under a still mouse: the other bars must not stay faint
|
|
271
|
+
if (hoverIndex >= 0 && (!item || !bar)) {
|
|
272
|
+
hoverIndex = -1;
|
|
273
|
+
paintBars();
|
|
274
|
+
}
|
|
275
|
+
box.lblTooltip.visible = 0;
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
box.lblTooltip.plainText = box.valueFormat(item.value, hoverIndex, box);
|
|
280
|
+
box.lblTooltip.visible = 1;
|
|
281
|
+
|
|
282
|
+
const barCenter = box.barGroup.elem.offsetLeft + bar.elem.offsetLeft + bar.elem.offsetWidth / 2;
|
|
283
|
+
const tipWidth = box.lblTooltip.elem.offsetWidth;
|
|
284
|
+
const tipHeight = box.lblTooltip.elem.offsetHeight;
|
|
285
|
+
const maxLeft = box.elem.clientWidth - tipWidth;
|
|
286
|
+
const barTop = box.barGroup.elem.offsetTop + box.barGroup.elem.offsetHeight - getBarHeight(item, getMaxValue());
|
|
287
|
+
box.lblTooltip.left = Math.round(Math.max(0, Math.min(maxLeft, barCenter - tipWidth / 2)));
|
|
288
|
+
box.lblTooltip.top = Math.round(Math.max(0, barTop - tipHeight - _s.tooltip.gap));
|
|
289
|
+
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
const setHoverIndex = function (index) {
|
|
293
|
+
if (index == hoverIndex) return;
|
|
294
|
+
hoverIndex = index;
|
|
295
|
+
paintBars();
|
|
296
|
+
showTooltip();
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
// Check the bar count again. (The box size can change: width "100%")
|
|
300
|
+
const refreshSize = function () {
|
|
301
|
+
|
|
302
|
+
if (!box) return;
|
|
303
|
+
|
|
304
|
+
const barCount = calcBarCount();
|
|
305
|
+
|
|
306
|
+
if (barCount != box.barCount) {
|
|
307
|
+
box.barCount = barCount;
|
|
308
|
+
createBars();
|
|
309
|
+
trimValues();
|
|
310
|
+
hoverIndex = -1;
|
|
311
|
+
paintBars();
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
updateBars();
|
|
315
|
+
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
// *** PUBLIC FUNCTIONS:
|
|
319
|
+
|
|
320
|
+
// Add a value to the right. If the graph is full, the first value is removed.
|
|
321
|
+
box.addValue = function (value, color) {
|
|
322
|
+
|
|
323
|
+
const item = normalizeValue(value);
|
|
324
|
+
if (color) item.color = color;
|
|
325
|
+
|
|
326
|
+
box.values.push(item);
|
|
327
|
+
trimValues();
|
|
328
|
+
updateBars(box.values.length - 1);
|
|
329
|
+
|
|
330
|
+
};
|
|
331
|
+
// USAGE: graph.addValue(24) or graph.addValue(24, "orange")
|
|
332
|
+
|
|
333
|
+
box.setValues = function (values) {
|
|
334
|
+
box.values = (values || []).map(normalizeValue);
|
|
335
|
+
trimValues();
|
|
336
|
+
updateBars();
|
|
337
|
+
};
|
|
338
|
+
// USAGE: graph.setValues([10, 20, { value: 15, color: "orange" }])
|
|
339
|
+
|
|
340
|
+
box.getValues = function () {
|
|
341
|
+
return box.values.map(function (item) { return item.value; });
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
box.getLastValue = function () {
|
|
345
|
+
const item = box.values[box.values.length - 1];
|
|
346
|
+
return (item) ? item.value : null;
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
box.clear = function () {
|
|
350
|
+
box.values = [];
|
|
351
|
+
updateBars();
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
box.setTitle = function (text) {
|
|
355
|
+
box.title = text;
|
|
356
|
+
box.lblTitle.text = text;
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
box.setValueText = function (text) {
|
|
360
|
+
box.valueText = text;
|
|
361
|
+
box.lblValueText.text = text;
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
box.setIcon = function (iconFile) {
|
|
365
|
+
box.iconFile = iconFile || "";
|
|
366
|
+
box.icon.visible = (box.iconFile) ? 1 : 0;
|
|
367
|
+
if (box.iconFile) box.icon.load(box.iconFile);
|
|
368
|
+
};
|
|
369
|
+
// USAGE: graph.setIcon("assets/carrot.png") or graph.setIcon("") to hide it
|
|
370
|
+
|
|
371
|
+
// Color of all the bars. (Values with their own color keep it.)
|
|
372
|
+
box.setBarColor = function (color) {
|
|
373
|
+
box.barColor = color;
|
|
374
|
+
updateBars();
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
// 0: Auto
|
|
378
|
+
box.setMaxValue = function (maxValue) {
|
|
379
|
+
box.maxValue = basic.num(maxValue) || 0;
|
|
380
|
+
updateBars();
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
box.refresh = function () {
|
|
384
|
+
refreshSize();
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
// *** OBJECT VIEW:
|
|
389
|
+
|
|
390
|
+
// GROUP: Bars (at the bottom)
|
|
391
|
+
box.barGroup = HGroup({
|
|
392
|
+
align: "left bottom",
|
|
393
|
+
gap: _s.bars.gap,
|
|
394
|
+
padding: [_s.bars.padding, 0],
|
|
395
|
+
});
|
|
396
|
+
|
|
397
|
+
endGroup();
|
|
398
|
+
|
|
399
|
+
// GROUP: Title and value text (left top)
|
|
400
|
+
VGroup({
|
|
401
|
+
align: "left top",
|
|
402
|
+
padding: _s.text.padding,
|
|
403
|
+
gap: 0,
|
|
404
|
+
});
|
|
405
|
+
|
|
406
|
+
box.lblTitle = Label({
|
|
407
|
+
text: box.title,
|
|
408
|
+
fontSize: _s.title.fontSize,
|
|
409
|
+
textColor: _s.title.textColor,
|
|
410
|
+
});
|
|
411
|
+
// WHY: marginBottom: Line heights of the two texts leave a big space between them.
|
|
412
|
+
box.lblTitle.css = { whiteSpace: "nowrap", marginBottom: "-6px" };
|
|
413
|
+
|
|
414
|
+
box.lblValueText = Label({
|
|
415
|
+
text: box.valueText,
|
|
416
|
+
fontSize: _s.valueText.fontSize,
|
|
417
|
+
textColor: _s.valueText.textColor,
|
|
418
|
+
});
|
|
419
|
+
box.lblValueText.css.whiteSpace = "nowrap";
|
|
420
|
+
|
|
421
|
+
endGroup();
|
|
422
|
+
|
|
423
|
+
// GROUP: Icon (right top)
|
|
424
|
+
HGroup({
|
|
425
|
+
align: "right top",
|
|
426
|
+
padding: _s.text.padding,
|
|
427
|
+
gap: 0,
|
|
428
|
+
});
|
|
429
|
+
|
|
430
|
+
box.icon = Icon({
|
|
431
|
+
width: _s.icon.width,
|
|
432
|
+
height: _s.icon.height,
|
|
433
|
+
});
|
|
434
|
+
box.icon.elem.alt = "";
|
|
435
|
+
|
|
436
|
+
endGroup();
|
|
437
|
+
|
|
438
|
+
// LABEL: Tooltip (the value of the bar under the mouse; no motion: it is seen at once)
|
|
439
|
+
box.lblTooltip = Label({
|
|
440
|
+
left: 0,
|
|
441
|
+
top: 0,
|
|
442
|
+
width: "auto",
|
|
443
|
+
height: "auto",
|
|
444
|
+
color: _s.tooltip.color,
|
|
445
|
+
textColor: _s.tooltip.textColor,
|
|
446
|
+
fontSize: _s.tooltip.fontSize,
|
|
447
|
+
padding: _s.tooltip.padding,
|
|
448
|
+
round: _s.tooltip.round,
|
|
449
|
+
visible: 0,
|
|
450
|
+
css: { whiteSpace: "nowrap", pointerEvents: "none" },
|
|
451
|
+
});
|
|
452
|
+
|
|
453
|
+
// *** OBJECT INIT CODE:
|
|
454
|
+
|
|
455
|
+
box.on("click", function () { box.onClick(box); });
|
|
456
|
+
box.cursor = "default";
|
|
457
|
+
box.clickable = 1; // WHY: the mouse events of the tooltip (a basic.js box gets none by default)
|
|
458
|
+
box.on("mousemove", function (self, event) {
|
|
459
|
+
setHoverIndex(findBarIndex(event));
|
|
460
|
+
});
|
|
461
|
+
box.on("mouseleave", function () {
|
|
462
|
+
setHoverIndex(-1);
|
|
463
|
+
});
|
|
464
|
+
|
|
465
|
+
box.setIcon(box.iconFile);
|
|
466
|
+
|
|
467
|
+
box.values = (params.values || []).map(normalizeValue); // WHY: Copy. The default [] must not be shared between components.
|
|
468
|
+
box.barCount = calcBarCount();
|
|
469
|
+
createBars();
|
|
470
|
+
trimValues();
|
|
471
|
+
updateBars();
|
|
472
|
+
|
|
473
|
+
box.onResize(function () {
|
|
474
|
+
if (cancelResize) cancelResize();
|
|
475
|
+
cancelResize = box.after(RESIZE_WAIT, function () {
|
|
476
|
+
cancelResize = null;
|
|
477
|
+
refreshSize();
|
|
478
|
+
});
|
|
479
|
+
});
|
|
480
|
+
|
|
481
|
+
return endObject(box);
|
|
482
|
+
|
|
483
|
+
};
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
/* Bismillah */
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
|
|
5
|
+
Notice - v26.10
|
|
6
|
+
|
|
7
|
+
A short message in the middle of the screen over a soft dark cover: "Process completed", "No internet connection".
|
|
8
|
+
It comes in, stays a moment (displayTime) and goes. The new version of comp-m1/ui-notice.js (notice.show) with the
|
|
9
|
+
same look: a round box with a thin line and a soft shadow, a big text, a color by its type, an icon at the left.
|
|
10
|
+
- Notice.show({ messageText, descText, type, iconFile, displayTime }) makes it on page. Only one at a time: a new
|
|
11
|
+
notice takes the place of the one that is seen.
|
|
12
|
+
- type: "info" (white), "warning" (yellow), "error" (red), "note" (blue), "success" (green). Notice.COLORS
|
|
13
|
+
- descText: a smaller second line. The texts are plain text (allowHtml: 1: HTML, only for your own texts).
|
|
14
|
+
- A click (on the cover or the message) or Escape closes it before its time. displayTime 0: it stays until then.
|
|
15
|
+
- Motion: it grows in from a little smaller with a fade in 0.2 s and goes at once; none with reduced motion.
|
|
16
|
+
- Accessibility: role "status" (an error: "alert"), so a screen reader reads it.
|
|
17
|
+
|
|
18
|
+
USAGE:
|
|
19
|
+
Notice.show({ messageText: "Process completed" });
|
|
20
|
+
Notice.show({ messageText: "No internet connection.", descText: "Please, try again later.", type: "warning" });
|
|
21
|
+
Notice.show({ messageText: "Failed to copy", type: "error", iconFile: "_basic/assets/icons/alert.png" });
|
|
22
|
+
const notice = Notice.show({ messageText: "Saving...", displayTime: 0 }); notice.close();
|
|
23
|
+
Notice.close(); // the notice that is seen
|
|
24
|
+
|
|
25
|
+
Started Date: 1 September 2022 (notice), October 2026 (Notice)
|
|
26
|
+
Developer: Bugra Ozden
|
|
27
|
+
Email: bugra.ozden@gmail.com
|
|
28
|
+
Webpage: https://bug7a.github.io/js-components/
|
|
29
|
+
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
"use strict";
|
|
33
|
+
|
|
34
|
+
// Default values:
|
|
35
|
+
const NoticeDefaults = {
|
|
36
|
+
left: 0,
|
|
37
|
+
top: 0,
|
|
38
|
+
width: "100%",
|
|
39
|
+
height: "100%",
|
|
40
|
+
messageText: "No message",
|
|
41
|
+
descText: "", // "": no second line
|
|
42
|
+
type: "info", // "info", "warning", "error", "note", "success"
|
|
43
|
+
iconFile: "", // "": no icon
|
|
44
|
+
allowHtml: 0, // 1: the texts are HTML (only for your own texts)
|
|
45
|
+
displayTime: 2000, // ms; 0: it stays until a click or Escape
|
|
46
|
+
closeOnClick: 1,
|
|
47
|
+
onClose: function (self) {},
|
|
48
|
+
styleName: "classic", // "classic" or a name added to Notice.styles
|
|
49
|
+
style: { // Classic style package: the look of comp-m1 notice
|
|
50
|
+
cover: { color: "rgba(0, 0, 0, 0.2)", zIndex: 50000 }, // WHY: over the dialogs (Dialog, Modal: 4000 and up), under Tooltip (100000)
|
|
51
|
+
message: { round: 8, border: 2, borderColor: "rgba(0, 0, 0, 0.2)", padding: [24, 18], gap: 20, maxWidth: 480, boxShadow: "0px 0px 12px rgba(0, 0, 0, 0.1)" },
|
|
52
|
+
text: { fontSize: 20, textColor: "rgba(0, 0, 0, 0.8)", fontFamily: "opensans" },
|
|
53
|
+
desc: { fontSize: 17, opacity: 0.8 },
|
|
54
|
+
icon: { size: 28, opacity: 0.95 },
|
|
55
|
+
motion: { startScale: 0.9 }, // it grows in from this size
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
const Notice = function (params = {}) {
|
|
60
|
+
|
|
61
|
+
// Merge style package: params.style > Notice.styles[styleName] > NoticeDefaults.style
|
|
62
|
+
basic.applyStylePackage(params, Notice.styles, NoticeDefaults);
|
|
63
|
+
|
|
64
|
+
// Merge params:
|
|
65
|
+
mergeIntoIfMissing(params, NoticeDefaults);
|
|
66
|
+
|
|
67
|
+
// BOX: Component container (the cover of the page)
|
|
68
|
+
let box = startObject(params);
|
|
69
|
+
|
|
70
|
+
// *** PRIVATE VARIABLES:
|
|
71
|
+
const _s = box.style;
|
|
72
|
+
const SHOW_MOTION = "transform 0.2s, opacity 0.2s";
|
|
73
|
+
let isClosed = 0;
|
|
74
|
+
|
|
75
|
+
// *** PRIVATE FUNCTIONS:
|
|
76
|
+
|
|
77
|
+
const isReducedMotion = function () {
|
|
78
|
+
return window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
const setText = function (label, text) {
|
|
82
|
+
if (box.allowHtml == 1) label.text = text;
|
|
83
|
+
else label.plainText = text;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
// It grows in from a little smaller with a fade (at once: no timer of basic.js).
|
|
87
|
+
const showWithMotion = function () {
|
|
88
|
+
if (isReducedMotion()) return;
|
|
89
|
+
const message = box.message;
|
|
90
|
+
message.opacity = 0;
|
|
91
|
+
message.css = { transform: "scale(" + _s.motion.startScale + ")" };
|
|
92
|
+
box.opacity = 0;
|
|
93
|
+
// WHY: the start look must be drawn before the motion is turned on, or it is seen at once
|
|
94
|
+
void message.elem.offsetHeight;
|
|
95
|
+
message.setMotionNow(SHOW_MOTION);
|
|
96
|
+
box.setMotionNow("opacity 0.2s");
|
|
97
|
+
message.opacity = 1;
|
|
98
|
+
message.css = { transform: "none" };
|
|
99
|
+
box.opacity = 1;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// *** PUBLIC FUNCTIONS:
|
|
103
|
+
|
|
104
|
+
// It goes at once.
|
|
105
|
+
box.close = function () {
|
|
106
|
+
if (!box || isClosed) return;
|
|
107
|
+
isClosed = 1;
|
|
108
|
+
if (Notice.current == box) Notice.current = null;
|
|
109
|
+
box.onClose(box);
|
|
110
|
+
box.remove();
|
|
111
|
+
};
|
|
112
|
+
// USAGE: notice.close()
|
|
113
|
+
|
|
114
|
+
// REMOVE: the static Notice.current must not keep a removed notice.
|
|
115
|
+
const superRemove = box.remove;
|
|
116
|
+
box.superRemove = superRemove;
|
|
117
|
+
box.remove = function () {
|
|
118
|
+
if (!box) return;
|
|
119
|
+
if (Notice.current == box) Notice.current = null;
|
|
120
|
+
superRemove.call(box);
|
|
121
|
+
box = null;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
// *** OBJECT VIEW:
|
|
125
|
+
|
|
126
|
+
const look = Notice.COLORS[box.type] || Notice.COLORS.info;
|
|
127
|
+
|
|
128
|
+
box.color = _s.cover.color;
|
|
129
|
+
box.zIndex = _s.cover.zIndex;
|
|
130
|
+
box.clickable = 1; // WHY: a click on the page under it must not happen while it is seen
|
|
131
|
+
box.role = (box.type == "error") ? "alert" : "status";
|
|
132
|
+
box.aria = { live: (box.type == "error") ? "assertive" : "polite" };
|
|
133
|
+
|
|
134
|
+
// GROUP: Page (the message in the middle)
|
|
135
|
+
HGroup({ align: "center", clipContent: 0 });
|
|
136
|
+
|
|
137
|
+
// GROUP: Message (an icon, the texts)
|
|
138
|
+
box.message = HGroup({
|
|
139
|
+
hug: 1,
|
|
140
|
+
align: "left center",
|
|
141
|
+
gap: _s.message.gap,
|
|
142
|
+
padding: _s.message.padding,
|
|
143
|
+
color: look.color,
|
|
144
|
+
round: _s.message.round,
|
|
145
|
+
border: _s.message.border,
|
|
146
|
+
borderColor: _s.message.borderColor,
|
|
147
|
+
boxShadow: _s.message.boxShadow,
|
|
148
|
+
css: { maxWidth: "min(" + _s.message.maxWidth + "px, calc(100% - 40px))" },
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
if (box.iconFile) {
|
|
152
|
+
// ICON
|
|
153
|
+
box.icon = Icon({ width: _s.icon.size, height: _s.icon.size, opacity: _s.icon.opacity });
|
|
154
|
+
box.icon.load(box.iconFile);
|
|
155
|
+
box.icon.shrink = 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// GROUP: Texts
|
|
159
|
+
VGroup({ hug: 1, align: (box.iconFile ? "left" : "center") + " center", gap: 2 });
|
|
160
|
+
that.css = { minWidth: "0px" };
|
|
161
|
+
|
|
162
|
+
// LABEL: Message
|
|
163
|
+
box.lblMessage = Label({ ..._s.text, textColor: look.textColor || _s.text.textColor, textAlign: box.iconFile ? "left" : "center" });
|
|
164
|
+
box.lblMessage.css = { whiteSpace: "normal" };
|
|
165
|
+
setText(box.lblMessage, box.messageText);
|
|
166
|
+
|
|
167
|
+
// LABEL: Second line
|
|
168
|
+
box.lblDesc = Label({ ..._s.text, fontSize: _s.desc.fontSize, opacity: _s.desc.opacity, textColor: look.textColor || _s.text.textColor, textAlign: box.iconFile ? "left" : "center" });
|
|
169
|
+
box.lblDesc.css = { whiteSpace: "normal" };
|
|
170
|
+
setText(box.lblDesc, box.descText);
|
|
171
|
+
box.lblDesc.visible = (box.descText !== "" && box.descText !== null && box.descText !== undefined) ? 1 : 0; // (0 is a text too)
|
|
172
|
+
|
|
173
|
+
endGroup();
|
|
174
|
+
|
|
175
|
+
endGroup();
|
|
176
|
+
|
|
177
|
+
endGroup();
|
|
178
|
+
|
|
179
|
+
// *** OBJECT INIT CODE:
|
|
180
|
+
|
|
181
|
+
if (box.closeOnClick == 1) box.on("click", function () { box.close(); });
|
|
182
|
+
// WHY capture on window: it runs before the Escape of a Dialog (document) under the notice; only the notice closes
|
|
183
|
+
box.listenTo(window, "keydown", function (self, event) {
|
|
184
|
+
if (event.key != "Escape") return;
|
|
185
|
+
event.preventDefault();
|
|
186
|
+
event.stopImmediatePropagation();
|
|
187
|
+
box.close();
|
|
188
|
+
}, true);
|
|
189
|
+
if (box.displayTime > 0) box.after(box.displayTime, function () { box.close(); });
|
|
190
|
+
|
|
191
|
+
showWithMotion();
|
|
192
|
+
|
|
193
|
+
return endObject(box);
|
|
194
|
+
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
// *** STATIC VARIABLES AND FUNCTIONS:
|
|
198
|
+
|
|
199
|
+
// The colors of the types (comp-m1 notice.colors). textColor: "" -> style.text.textColor
|
|
200
|
+
Notice.COLORS = {
|
|
201
|
+
info: { color: "white", textColor: "" },
|
|
202
|
+
warning: { color: "#FFD541", textColor: "#141414" },
|
|
203
|
+
error: { color: "#EE7553", textColor: "#141414" },
|
|
204
|
+
note: { color: "#689BD2", textColor: "white" },
|
|
205
|
+
success: { color: "seagreen", textColor: "white" },
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
Notice.current = null; // The notice that is seen
|
|
209
|
+
|
|
210
|
+
// Makes a notice on page (the one that is seen goes). Returns it.
|
|
211
|
+
Notice.show = function (params = {}) {
|
|
212
|
+
// WHY a loop: the onClose of the old notice may show another one
|
|
213
|
+
while (Notice.current) Notice.close();
|
|
214
|
+
Notice.current = createIn(page, function () { return Notice(params); });
|
|
215
|
+
return Notice.current;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
// Closes the notice that is seen.
|
|
219
|
+
Notice.close = function () {
|
|
220
|
+
if (Notice.current) Notice.current.close();
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
// *** STYLE PACKAGES:
|
|
224
|
+
// USAGE: Notice.show({ messageText: "Hi", style: { message: { round: 20, border: 0 } } }) // Change only some keys.
|
|
225
|
+
Notice.styles = {
|
|
226
|
+
classic: NoticeDefaults.style,
|
|
227
|
+
};
|