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,1321 @@
|
|
|
1
|
+
/* Bismillah */
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
|
|
5
|
+
SmartTable- v25.07 - "Optimized for big data"
|
|
6
|
+
|
|
7
|
+
- SmartTable is a JavaScript table component designed to run smoothly even with millions of records. Thanks to its virtual scroll architecture, it only writes the visible rows to the DOM, eliminating memory and performance issues with large datasets. It makes data exploration easy with real-time filtering, multi-column sorting, and both horizontal and vertical scroll support. Custom cell designs can be created for each column via createCustomItemCell, allowing flexible visual content per column. Since column widths, heights, and colors are all configurable through parameters, it can be quickly adapted to different projects.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Started Date: Mar 2026
|
|
11
|
+
Developer: Bugra Ozden
|
|
12
|
+
Email: bugra.ozden@gmail.com
|
|
13
|
+
Webpage: https://bug7a.github.io/js-components/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
- Arama sütunu: Arama kutusunun sağındaki kutuya (ALL) basınca sütun listesi açılır. Arama sadece seçilen sütunda yapılır.
|
|
17
|
+
-- searchTitleIndex: -1 (ALL: tüm sütunlar), showSearchTitleSelect: 0 ise kutu gizlenir.
|
|
18
|
+
-- Liste için comp/context-menu.js yüklenmelidir. Yüklenmemiş ise, kutuya her basışta sıradaki sütuna geçer.
|
|
19
|
+
- Eğer itemHeight 20px den küçük ise otomatik itemLineCount düşür ve eğer itemHeight büyükse 100px den itemLineCount arttır.
|
|
20
|
+
- wheelScroll: 1 ise fare tekerleği tablonun satırlarını kaydırır (sayfa kaymaz). Varsayılan 0: tekerlek sayfayı kaydırır, satırlar scroll çubuğu ve butonlar ile kaydırılır.
|
|
21
|
+
-- smartTable.setWheelScroll(1) ile sonradan açılabilir.
|
|
22
|
+
- allowHtml (2026-10-29): 0 (varsayılan): hücre değerleri düz metin yazılır (kullanıcının yazdığı bir ad veya başlık
|
|
23
|
+
HTML olarak çalışmaz). 1: değerler HTML olarak yazılır (Ex: "<b>12</b>"). createCustomItemCell / updateCustomItemCell
|
|
24
|
+
içinde cell.label.text ile yazılan kendi değerleriniz etkilenmez.
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
"use strict";
|
|
30
|
+
|
|
31
|
+
// Default values:
|
|
32
|
+
const SmartTableDefaults = {
|
|
33
|
+
|
|
34
|
+
key: "0",
|
|
35
|
+
titleHeight: 50,
|
|
36
|
+
itemHeight: 40,
|
|
37
|
+
infoHeight: 50,
|
|
38
|
+
itemLineCount: 16,
|
|
39
|
+
highlightTitle: true,
|
|
40
|
+
highlightLine: true,
|
|
41
|
+
invertColor: 0,
|
|
42
|
+
noDataFoundAlert: "No data found!",
|
|
43
|
+
searchKeyword: "",
|
|
44
|
+
searchTitleIndex: -1, // -1: Search in all columns (ALL). 0, 1...: Search only in this column.
|
|
45
|
+
showSearchTitleSelect: 1, // 0: Hide the column select box (ALL) next to the search input.
|
|
46
|
+
wheelScroll: 0, // 1: The mouse wheel scrolls the rows (and the page does not scroll). 0: The wheel is left to the page.
|
|
47
|
+
allowHtml: 0, // 1: The cell values are written as HTML. 0: As plain text (safe for the text of the users)
|
|
48
|
+
allTitlesText: "ALL",
|
|
49
|
+
sortByTitleIndex: 0,
|
|
50
|
+
sortDirection: "A-Z", // "A-Z" or "Z-A"
|
|
51
|
+
fillTestData: 0,
|
|
52
|
+
onSelect: function (itemData) { },
|
|
53
|
+
createCustomItemCell: function (cell, titleDataIndex) { return cell },
|
|
54
|
+
updateCustomItemCell: function (cell, titleDataIndex, data) { },
|
|
55
|
+
titleDataList: [
|
|
56
|
+
{ name: "ID", dataTitle: "id", dataType: "integer", width: 100, shortable: 1 },
|
|
57
|
+
{ name: "NAME", dataTitle: "name", dataType: "string", width: 100, shortable: 1 },
|
|
58
|
+
{ name: "EMAIL", dataTitle: "email", dataType: "string", width: 290, shortable: 0 },
|
|
59
|
+
{ name: "", dataTitle: "active", dataType: "boolean", width: 40, shortable: 0 },
|
|
60
|
+
],
|
|
61
|
+
itemDataList: [
|
|
62
|
+
{ id: 1, name: "Bugra", desc: "about", email: "emainil", active: 1 },
|
|
63
|
+
{ id: 2, name: "Alper", desc: "about", email: "emainil", active: 1 },
|
|
64
|
+
{ id: 3, name: "Murat", desc: "about", email: "emainil-3", active: 1 },
|
|
65
|
+
{ id: 4, name: "Deniz", desc: "about", email: "emainil", active: 1 },
|
|
66
|
+
{ id: 5, name: "Nilüfer", desc: "about", email: "emainil-7", active: 1 },
|
|
67
|
+
{ id: 6, name: "Frank", desc: "about", email: "emainil", active: 1 },
|
|
68
|
+
{ id: 7, name: "Dany", desc: "about", email: "emainil-45", active: 1 },
|
|
69
|
+
{ id: 8, name: "Duygu", desc: "about", email: "emainil", active: 1 },
|
|
70
|
+
{ id: 9, name: "Filiz", desc: "about", email: "emainil-356", active: 1 },
|
|
71
|
+
{ id: 10, name: "Anka", desc: "about", email: "emainil", active: 1 },
|
|
72
|
+
],
|
|
73
|
+
scrollBarParams: {
|
|
74
|
+
bar_border: 0,
|
|
75
|
+
bar_round: 3,
|
|
76
|
+
bar_borderColor: "rgba(0, 0, 0, 1)",
|
|
77
|
+
bar_width: 4,
|
|
78
|
+
bar_mouseOverWidth: 4, //8
|
|
79
|
+
bar_mouseOverColor: "#373836",
|
|
80
|
+
bar_opacity: 0.4,
|
|
81
|
+
bar_mouseOverOpacity: 0.9,
|
|
82
|
+
bar_padding: 2,
|
|
83
|
+
bar_color: "#373836",
|
|
84
|
+
neverHide: 0,
|
|
85
|
+
showDots: 0,
|
|
86
|
+
},
|
|
87
|
+
// Filtredeki sütun listesinin (ContextMenu) parametreleri. (Sadece stil için; onClick bileşen tarafından verilir.)
|
|
88
|
+
searchTitleMenuParams: {},
|
|
89
|
+
searchInputParams: {
|
|
90
|
+
width: "50%",
|
|
91
|
+
height: 36,
|
|
92
|
+
border: 1,
|
|
93
|
+
round: 8,
|
|
94
|
+
color: "white",
|
|
95
|
+
searchIconSize: 16,
|
|
96
|
+
placeholderText: "Filter",
|
|
97
|
+
fontSize: 16,
|
|
98
|
+
borderColor: "rgba(0, 0, 0, 0.4)",
|
|
99
|
+
borderBottomStyle: "1px solid rgba(0, 0, 0, 0.4)",
|
|
100
|
+
searchIconFile: "_basic/comp/search-input-v2/filter.png",
|
|
101
|
+
},
|
|
102
|
+
style: {
|
|
103
|
+
|
|
104
|
+
width: "auto",
|
|
105
|
+
height: "auto",
|
|
106
|
+
round: 6,
|
|
107
|
+
line1Color: "white",
|
|
108
|
+
line2Color: "whitesmoke",
|
|
109
|
+
highlightItemCellColor: "#F3E7C2",
|
|
110
|
+
highlightTitleCellColor: White(0.2),
|
|
111
|
+
verticalScrollWidth: 20,
|
|
112
|
+
verticalScrollMargin: 2,
|
|
113
|
+
btnScrollDownIconFile: "_basic/comp/smart-table/down.png",
|
|
114
|
+
btnScrollUpIconFile: "_basic/comp/smart-table/up.png",
|
|
115
|
+
btnScrollCenterIconFile: "_basic/comp/smart-table/scroll.png",
|
|
116
|
+
sortIconFile: "_basic/comp/smart-table/sort.png",
|
|
117
|
+
loadingIconFile: "_basic/comp/smart-table/clock.png",
|
|
118
|
+
searchTitleCheckIconFile: "data:image/svg+xml," + encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#373836" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5 10 17.5 19 7"/></svg>'),
|
|
119
|
+
invertIconColor: 0,
|
|
120
|
+
|
|
121
|
+
box: { color: "white" },
|
|
122
|
+
boxBorder: { border: 2, borderColor: Black(0.8) },
|
|
123
|
+
boxTitleLine: { color: "#65A293", },
|
|
124
|
+
boxTitleCell: { padding: [8, 0], borderRight: "1px solid rgba(0, 0, 0, 0.5)", borderBottom: "2px solid #141414", },
|
|
125
|
+
lblTitleCell: { fontSize: 20, fontFamily: "opensans", textColor: Black(0.8), },
|
|
126
|
+
boxItemCell: { borderBottom: "1px solid darkgray", borderRight: "1px solid rgba(0, 0, 0, 0.05)", padding: [8, 0], },
|
|
127
|
+
lblItemCell: { fontSize: 20, textColor: Black(0.75), fontFamily: "opensans", },
|
|
128
|
+
boxInfoLine: { color: "#E4E4E4", borderTop: "1px solid rgba(0, 0, 0, 0)" },
|
|
129
|
+
lblBoxInfoLine: { fontSize: 16, textColor: Black(0.85), },
|
|
130
|
+
lblNoDataFound: { color: "lightgray", padding: [8, 2], fontSize: 14, round: 8, border: 1, borderColor: Black(0.4), },
|
|
131
|
+
// Filtre kutusundaki sütun seçim etiketi (ALL). Boş ise lblNoDataFound stili kullanılır.
|
|
132
|
+
lblSearchTitle: {},
|
|
133
|
+
btnScrollCenter: { color: "white", round: 100, borderColor: "rgba(0,0,0,0.4)", border: 1, },
|
|
134
|
+
btnScrollUp: { color: "lightgray", round: 100, border: 1, },
|
|
135
|
+
btnScrollDown: { color: "lightgray", round: 100, border: 1, },
|
|
136
|
+
boxSort: { color: "#65A293" },
|
|
137
|
+
|
|
138
|
+
},
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
const SmartTable = function (params = {}) {
|
|
142
|
+
|
|
143
|
+
mergeIntoIfMissing(params, SmartTableDefaults);
|
|
144
|
+
|
|
145
|
+
// BOX: Component container
|
|
146
|
+
let box = startObject(params);
|
|
147
|
+
|
|
148
|
+
// WHY: mergeIntoIfMissing dizileri referansla kopyalıyor. Kopyalanmaz ise setTitleCellWidth, SmartTableDefaults (ve diğer tabloları) değiştirir.
|
|
149
|
+
box.titleDataList = box.titleDataList.map(titleData => ({ ...titleData }));
|
|
150
|
+
box.itemDataList = [...box.itemDataList];
|
|
151
|
+
|
|
152
|
+
// *** PRIVATE VARIABLES:
|
|
153
|
+
const DEFAULT_CELL_WIDTH = 100;
|
|
154
|
+
const SORT_ICON_SIZE = 22;
|
|
155
|
+
const SCROLL_CENTER_HEIGHT = 50;
|
|
156
|
+
const LOADING_ICON_SIZE = 32;
|
|
157
|
+
const SEARCH_TITLE_MAX_WIDTH = "160px";
|
|
158
|
+
const FILTER_DELAY = 50; // ms
|
|
159
|
+
const RESIZE_DELAY = 3; // ms
|
|
160
|
+
const LOADING_MIN_ITEM_COUNT = 1000; // WHY: Küçük listelerde loading bir an yanıp sönmesin.
|
|
161
|
+
const TEST_DATA_REPEAT_COUNT = 100000;
|
|
162
|
+
|
|
163
|
+
// *** PRIVATE FUNCTIONS:
|
|
164
|
+
|
|
165
|
+
// The last top index: the last page of rows ends with the last record.
|
|
166
|
+
const getMaxScrollIndex = function () {
|
|
167
|
+
return Math.max(0, box.visibleItemDataList.length - box.itemLineCount);
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
const clampScrollIndex = function (index) {
|
|
171
|
+
if (index < 0) return 0;
|
|
172
|
+
return Math.min(index, getMaxScrollIndex());
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
// WHY: isNaN("") false döndüğü için boş değerler sayı sanılıyor, parseFloat("") NaN verip sıralamayı bozuyordu.
|
|
176
|
+
const toSortNumber = function (value) {
|
|
177
|
+
if (typeof value === "number") return value;
|
|
178
|
+
if (typeof value === "string" && value.trim() !== "") return Number(value);
|
|
179
|
+
return NaN;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
// *** PUBLIC VARIABLES:
|
|
183
|
+
// State of component [var]
|
|
184
|
+
box.state = "normal";
|
|
185
|
+
// Created items by data [var]
|
|
186
|
+
box.visibleItemDataList = [...box.itemDataList];
|
|
187
|
+
// [var]
|
|
188
|
+
box.titleCellList = [];
|
|
189
|
+
// [var]
|
|
190
|
+
box.titleCellCount = 0;
|
|
191
|
+
// [var]
|
|
192
|
+
box.itemLineList = [];
|
|
193
|
+
// [var] en üstteki kaydın index i
|
|
194
|
+
box.startedItemIndexForScrolling = 0;
|
|
195
|
+
// Scroll haraketi için gerekli değişkenler [var]
|
|
196
|
+
box.scrollVars = {};
|
|
197
|
+
// [var] if height not auto will recallItemHeight
|
|
198
|
+
box.recalcItemHeight = 0;
|
|
199
|
+
// [var]
|
|
200
|
+
box.resizeTimer = null;
|
|
201
|
+
box.refreshTimer = null;
|
|
202
|
+
box.filterTimer = null;
|
|
203
|
+
|
|
204
|
+
// *** PUBLIC FUNCTIONS:
|
|
205
|
+
|
|
206
|
+
// The states have no look yet; the value is kept for the page.
|
|
207
|
+
box.setState = function (state) {
|
|
208
|
+
box.state = state;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
const refresh = function () {
|
|
212
|
+
// refresh code
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
box.refresh = function (time = 3) {
|
|
216
|
+
|
|
217
|
+
// NOTE: Check the child objects and make sure their states are appropriate.
|
|
218
|
+
box.refreshTimer = waitAndRun(box.refreshTimer, refresh, time);
|
|
219
|
+
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
// WHY: box.superRemove is overwritten by a component that extends this one, so the local copy is called below.
|
|
223
|
+
const superRemove = box.remove;
|
|
224
|
+
box.superRemove = superRemove;
|
|
225
|
+
box.remove = function () {
|
|
226
|
+
|
|
227
|
+
if (!box) return; // WHY: remove() can be called twice (also by the parent's remove()).
|
|
228
|
+
|
|
229
|
+
// WHY: waitAndRun timers are not box.after() timers; remove() does not know them.
|
|
230
|
+
clearTimeout(box.resizeTimer);
|
|
231
|
+
clearTimeout(box.refreshTimer);
|
|
232
|
+
clearTimeout(box.filterTimer);
|
|
233
|
+
|
|
234
|
+
// WHY: Menü page üzerinde oluşturuluyor; box.remove() onu silmez. (Before the cascade: it detaches from its target label.)
|
|
235
|
+
if (box.searchTitleMenu) box.searchTitleMenu.remove();
|
|
236
|
+
|
|
237
|
+
superRemove.call(box); // NOTE: basic.js remove(). It cleans all the events (listenTo too) and the objects inside.
|
|
238
|
+
box = null;
|
|
239
|
+
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
// A row without data stays in its place, empty and not clickable.
|
|
243
|
+
const hideItemLine = function (itemLine) {
|
|
244
|
+
itemLine.opacity = 0;
|
|
245
|
+
itemLine.clickable = 0;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
const fillItemLine = function (itemLine, rowData) {
|
|
249
|
+
|
|
250
|
+
itemLine.opacity = 1;
|
|
251
|
+
itemLine.clickable = 1;
|
|
252
|
+
itemLine.itemData = rowData; // WHY: Line a basıldığında bu bilgi kullanılacak.
|
|
253
|
+
|
|
254
|
+
// TODO: If selected itemData == this item data then make colored.
|
|
255
|
+
|
|
256
|
+
for (let j = 0; j < box.titleCellCount; j++) {
|
|
257
|
+
|
|
258
|
+
const titleData = box.titleDataList[j];
|
|
259
|
+
const cell = itemLine["itemCell" + j];
|
|
260
|
+
const newValue = rowData[titleData.dataTitle] ?? "";
|
|
261
|
+
|
|
262
|
+
// Sadece değer değişmişse DOM'a dokun
|
|
263
|
+
// WHY: label.text innerHTML (string) döndürüyor; sayı veya "&" içeren değerlerle karşılaştırma hep farklı çıkıyordu. Son yazılan değer hücrede tutuluyor.
|
|
264
|
+
if (!("lastValue" in cell) || cell.lastValue !== newValue) { // WHY: eğer !== olmaz ise, 0 ile "" aynı sayılıyor.
|
|
265
|
+
cell.lastValue = newValue;
|
|
266
|
+
// WHY plainText: a value from a user (a name, a title) ran as HTML in the cell
|
|
267
|
+
if (box.allowHtml == 1) cell.label.text = newValue;
|
|
268
|
+
else cell.label.plainText = newValue;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
box.updateCustomItemCell(cell, j, newValue);
|
|
272
|
+
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
box.refreshData = function () {
|
|
278
|
+
|
|
279
|
+
const startIndex = box.startedItemIndexForScrolling;
|
|
280
|
+
const dataList = box.visibleItemDataList;
|
|
281
|
+
const lineCount = box.itemLineCount;
|
|
282
|
+
|
|
283
|
+
// WHY: Virtual scroll; only the rows on the screen exist, they show the records from startIndex.
|
|
284
|
+
for (let i = 0; i < lineCount; i++) {
|
|
285
|
+
|
|
286
|
+
const itemLine = box.itemLineList[i];
|
|
287
|
+
const rowData = dataList[startIndex + i];
|
|
288
|
+
|
|
289
|
+
if (rowData) {
|
|
290
|
+
fillItemLine(itemLine, rowData);
|
|
291
|
+
} else {
|
|
292
|
+
hideItemLine(itemLine);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
box.setVerticalScrollEnabled(dataList.length > lineCount);
|
|
298
|
+
box.updateInfoLabel();
|
|
299
|
+
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
const setScrollButtonState = function (button, opacity, clickable) {
|
|
303
|
+
button.opacity = opacity;
|
|
304
|
+
button.clickable = clickable;
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
box.setVerticalScrollEnabled = function (enabled) {
|
|
308
|
+
|
|
309
|
+
// Sadece kullanılabilir durumda ise enabled yapılabilir.
|
|
310
|
+
if (enabled && box.visibleItemDataList.length > box.itemLineCount) {
|
|
311
|
+
setScrollButtonState(box.btnScrollCenter, 1, 1);
|
|
312
|
+
setScrollButtonState(box.btnScrollUp, 1, 1);
|
|
313
|
+
setScrollButtonState(box.btnScrollDown, 1, 1);
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
setScrollButtonState(box.btnScrollCenter, 0, 0);
|
|
318
|
+
setScrollButtonState(box.btnScrollUp, 0.5, 0);
|
|
319
|
+
setScrollButtonState(box.btnScrollDown, 0.5, 0);
|
|
320
|
+
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
box.setTitleCellWidth = function (titleCellIndex, width) { // [GOOD]
|
|
324
|
+
|
|
325
|
+
if (titleCellIndex < 0 || titleCellIndex >= box.titleCellCount) return;
|
|
326
|
+
|
|
327
|
+
box.titleCellList[titleCellIndex].width = width;
|
|
328
|
+
box.titleDataList[titleCellIndex].width = width;
|
|
329
|
+
|
|
330
|
+
box.itemLineList.forEach(function (itemLine) {
|
|
331
|
+
itemLine["itemCell" + titleCellIndex].width = width;
|
|
332
|
+
});
|
|
333
|
+
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
// Başlık listesini oluştur
|
|
337
|
+
box.createTitleLine = function () { // [GOOD]
|
|
338
|
+
|
|
339
|
+
box.titleCellList = [];
|
|
340
|
+
box.boxTitleLine.html = "";
|
|
341
|
+
|
|
342
|
+
// titleDataList
|
|
343
|
+
box.titleDataList.forEach(function (titleData, titleCellIndex) {
|
|
344
|
+
const titleCell = box.createTitleCell(titleData, titleCellIndex);
|
|
345
|
+
|
|
346
|
+
box.titleCellList.push(titleCell);
|
|
347
|
+
box.boxTitleLine.add(titleCell);
|
|
348
|
+
});
|
|
349
|
+
|
|
350
|
+
box.titleCellCount = box.titleCellList.length;
|
|
351
|
+
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
box.setTitleDataList = function(titleDataList) {
|
|
355
|
+
|
|
356
|
+
box.titleDataList = titleDataList.map(titleData => ({ ...titleData }));
|
|
357
|
+
box.createTitleLine();
|
|
358
|
+
// WHY: Satırlardaki hücre sayısı başlık sayısı ile aynı olmalı. Yoksa refreshData olmayan hücreye erişir.
|
|
359
|
+
box.createItemLines();
|
|
360
|
+
if (box.recalcItemHeight) box.setItemHeight(box.itemHeight);
|
|
361
|
+
box.stretchLastCell(box.calcLastCellWidth());
|
|
362
|
+
if (!box.titleDataList[box.sortByTitleIndex]) box.sortByTitleIndex = 0;
|
|
363
|
+
box.updateSortIcon();
|
|
364
|
+
box.updateSearchTitleSelect(); // WHY: Sütunlar değişti; liste yenilensin, olmayan sütun seçili ise ALL olsun.
|
|
365
|
+
box.filterAndSortData();
|
|
366
|
+
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
box.createSortIcon = function (titleCell) {
|
|
370
|
+
|
|
371
|
+
startBox({
|
|
372
|
+
align: "right center",
|
|
373
|
+
color: box.style.boxSort.color,
|
|
374
|
+
round: 100,
|
|
375
|
+
border: 0,
|
|
376
|
+
borderColor: "rgba(0,0,0,0.1)",
|
|
377
|
+
width: SORT_ICON_SIZE,
|
|
378
|
+
height: SORT_ICON_SIZE,
|
|
379
|
+
right: 2,
|
|
380
|
+
padding: [4, 0],
|
|
381
|
+
position: "absolute",
|
|
382
|
+
});
|
|
383
|
+
if (titleCell.shortable == 0) that.opacity = 0;
|
|
384
|
+
titleCell.add(that);
|
|
385
|
+
that.center("top");
|
|
386
|
+
|
|
387
|
+
titleCell.icon = Icon({
|
|
388
|
+
width: SORT_ICON_SIZE,
|
|
389
|
+
height: SORT_ICON_SIZE,
|
|
390
|
+
left: 0,
|
|
391
|
+
top: 0,
|
|
392
|
+
opacity: 0.5,
|
|
393
|
+
});
|
|
394
|
+
that.setMotion("opacity 0.3s, transform 0.3s");
|
|
395
|
+
that.load(box.style.sortIconFile);
|
|
396
|
+
if (box.style.invertIconColor == 1) that.css.filter = "invert(100%)";
|
|
397
|
+
that.center();
|
|
398
|
+
|
|
399
|
+
endBox();
|
|
400
|
+
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
box.resetSortIcons = function (currentTitleCell) {
|
|
404
|
+
|
|
405
|
+
box.titleCellList.forEach(function (titleCell, titleCellIndex) {
|
|
406
|
+
if (titleCellIndex != currentTitleCell.titleCellIndex) {
|
|
407
|
+
titleCell.icon.rotate = 0;
|
|
408
|
+
titleCell.icon.opacity = 0.5;
|
|
409
|
+
titleCell.sortDirection = "";
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
// Başlık hücresi oluştur
|
|
416
|
+
box.createTitleCell = function (titleData, titleCellIndex) {
|
|
417
|
+
|
|
418
|
+
// TitleCell
|
|
419
|
+
const titleCell = AutoLayout({
|
|
420
|
+
flow: "horizontal",
|
|
421
|
+
align: "center left",
|
|
422
|
+
width: titleData.width || DEFAULT_CELL_WIDTH,
|
|
423
|
+
padding: box.style.boxTitleCell.padding,
|
|
424
|
+
height: box.titleHeight,
|
|
425
|
+
color: "transparent",
|
|
426
|
+
border: 0,
|
|
427
|
+
position: "relative",
|
|
428
|
+
});
|
|
429
|
+
that.css = {
|
|
430
|
+
borderRight: box.style.boxTitleCell.borderRight,
|
|
431
|
+
borderBottom: box.style.boxTitleCell.borderBottom,
|
|
432
|
+
};
|
|
433
|
+
that.cursor = "pointer";
|
|
434
|
+
|
|
435
|
+
// DATA IN OBJECT (titleCell)
|
|
436
|
+
that.titleCellIndex = titleCellIndex;
|
|
437
|
+
that.titleDataTitle = titleData.dataTitle;
|
|
438
|
+
that.shortable = titleData.shortable;
|
|
439
|
+
|
|
440
|
+
titleCell.label = Label({
|
|
441
|
+
text: titleData.name,
|
|
442
|
+
...box.style.lblTitleCell,
|
|
443
|
+
});
|
|
444
|
+
that.css.fontFamily = box.style.lblTitleCell.fontFamily;
|
|
445
|
+
|
|
446
|
+
endAutoLayout();
|
|
447
|
+
|
|
448
|
+
box.createSortIcon(titleCell);
|
|
449
|
+
|
|
450
|
+
titleCell.on("click", function (self, event) {
|
|
451
|
+
|
|
452
|
+
if (self.shortable != 1) return;
|
|
453
|
+
|
|
454
|
+
box.resetSortIcons(self);
|
|
455
|
+
box.sortByTitleIndex = self.titleCellIndex;
|
|
456
|
+
// WHY: The first click sorts A-Z; a click on the column that is already A-Z turns it.
|
|
457
|
+
box.sortDirection = (self.sortDirection != "A-Z") ? "A-Z" : "Z-A";
|
|
458
|
+
box.updateSortIcon();
|
|
459
|
+
box.filterAndSortData();
|
|
460
|
+
|
|
461
|
+
});
|
|
462
|
+
|
|
463
|
+
titleCell.on("mouseover", function (self, event) {
|
|
464
|
+
box.applyColumnHighlight(self);
|
|
465
|
+
});
|
|
466
|
+
|
|
467
|
+
titleCell.on("mouseout", function (self, event) {
|
|
468
|
+
box.clearColumnHighlight(self);
|
|
469
|
+
});
|
|
470
|
+
|
|
471
|
+
return titleCell;
|
|
472
|
+
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
box.updateSortIcon = function() {
|
|
476
|
+
|
|
477
|
+
const titleCell = box.titleCellList[box.sortByTitleIndex];
|
|
478
|
+
if (!titleCell) return; // WHY: Geçersiz sortByTitleIndex verilirse hata vermesin.
|
|
479
|
+
|
|
480
|
+
if (box.sortDirection == "A-Z") {
|
|
481
|
+
titleCell.sortDirection = "A-Z";
|
|
482
|
+
titleCell.icon.rotate = 0;
|
|
483
|
+
} else {
|
|
484
|
+
titleCell.sortDirection = "Z-A";
|
|
485
|
+
titleCell.icon.rotate = 180;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
titleCell.icon.opacity = 1;
|
|
489
|
+
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
const paintColumn = function (titleCell, titleColor, cellColor) {
|
|
493
|
+
titleCell.color = titleColor;
|
|
494
|
+
box.itemLineList.forEach(function (itemLine) {
|
|
495
|
+
itemLine["itemCell" + titleCell.titleCellIndex].color = cellColor;
|
|
496
|
+
});
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
box.clearColumnHighlight = function (titleCell) {
|
|
500
|
+
if (!box.highlightTitle) return;
|
|
501
|
+
paintColumn(titleCell, "transparent", "transparent");
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
box.applyColumnHighlight = function (titleCell) {
|
|
505
|
+
if (!box.highlightTitle) return;
|
|
506
|
+
paintColumn(titleCell, box.style.highlightTitleCellColor, box.style.highlightItemCellColor);
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
// Tüm bilgi satırlarını oluştur.
|
|
510
|
+
box.createItemLines = function () {
|
|
511
|
+
|
|
512
|
+
box.itemLineList = [];
|
|
513
|
+
box.boxItemLineGroup.html = "";
|
|
514
|
+
|
|
515
|
+
for (let i = 0; i < box.itemLineCount; i++) {
|
|
516
|
+
const itemLineIndex = i;
|
|
517
|
+
const itemLine = box.createItemLine(box.itemDataList[i], itemLineIndex);
|
|
518
|
+
|
|
519
|
+
box.itemLineList.push(itemLine);
|
|
520
|
+
box.boxItemLineGroup.add(itemLine);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
// Bir bilgi satırı oluştur
|
|
526
|
+
box.createItemLine = function (itemData, itemLineIndex) {
|
|
527
|
+
|
|
528
|
+
// GROUP: ItemLine
|
|
529
|
+
const itemLine = HGroup({
|
|
530
|
+
height: box.itemHeight || 100,
|
|
531
|
+
width: "auto",
|
|
532
|
+
align: "top left",
|
|
533
|
+
padding: [0, 0],
|
|
534
|
+
gap: 0,
|
|
535
|
+
color: (itemLineIndex % 2) ? box.style.line2Color : box.style.line1Color,
|
|
536
|
+
position: "relative",
|
|
537
|
+
});
|
|
538
|
+
|
|
539
|
+
box.titleDataList.forEach(function (titleData, titleDataIndex) {
|
|
540
|
+
itemLine["itemCell" + titleDataIndex] = box.createItemCell(titleData.width, titleDataIndex, itemLine);
|
|
541
|
+
});
|
|
542
|
+
|
|
543
|
+
endGroup();
|
|
544
|
+
|
|
545
|
+
itemLine.on("click", function (self) {
|
|
546
|
+
box.onSelect(self.itemData);
|
|
547
|
+
});
|
|
548
|
+
|
|
549
|
+
if (box.style.height != "auto") itemLine.visible = 0; // WHY: Yüksekli yeniden hesaplanması gerekirse, ekranda kırpma yapması için gizli oluşturuluyor.
|
|
550
|
+
return itemLine;
|
|
551
|
+
|
|
552
|
+
};
|
|
553
|
+
|
|
554
|
+
const paintItemLineCells = function (itemLine, color) {
|
|
555
|
+
for (let i = 0; i < box.titleCellCount; i++) {
|
|
556
|
+
itemLine["itemCell" + i].color = color;
|
|
557
|
+
}
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
// Hücre oluştur.
|
|
561
|
+
box.createItemCell = function (cellWidth, titleDataIndex, itemLine) {
|
|
562
|
+
|
|
563
|
+
// GROUP: ItemCell
|
|
564
|
+
let itemCell = AutoLayout({
|
|
565
|
+
align: "center left",
|
|
566
|
+
width: cellWidth || DEFAULT_CELL_WIDTH,
|
|
567
|
+
padding: box.style.boxItemCell.padding,
|
|
568
|
+
height: "100%",
|
|
569
|
+
color: "transparent",
|
|
570
|
+
border: 0,
|
|
571
|
+
});
|
|
572
|
+
that.css = {
|
|
573
|
+
borderBottom: box.style.boxItemCell.borderBottom,
|
|
574
|
+
borderRight: box.style.boxItemCell.borderRight,
|
|
575
|
+
};
|
|
576
|
+
that.cursor = "pointer";
|
|
577
|
+
|
|
578
|
+
itemCell.label = Label({
|
|
579
|
+
text: "",
|
|
580
|
+
...box.style.lblItemCell,
|
|
581
|
+
});
|
|
582
|
+
that.css = {
|
|
583
|
+
whiteSpace: "nowrap",
|
|
584
|
+
textOverflow: "ellipsis",
|
|
585
|
+
fontFamily: box.style.lblItemCell.fontFamily,
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
endAutoLayout();
|
|
589
|
+
|
|
590
|
+
itemCell.on("mouseover", function (self, event) {
|
|
591
|
+
if (!box.highlightLine) return;
|
|
592
|
+
paintItemLineCells(itemLine, box.style.highlightItemCellColor);
|
|
593
|
+
});
|
|
594
|
+
|
|
595
|
+
itemCell.on("mouseout", function (self, event) {
|
|
596
|
+
if (!box.highlightLine) return;
|
|
597
|
+
paintItemLineCells(itemLine, "transparent");
|
|
598
|
+
});
|
|
599
|
+
|
|
600
|
+
itemCell = box.createCustomItemCell(itemCell, titleDataIndex);
|
|
601
|
+
|
|
602
|
+
return itemCell;
|
|
603
|
+
|
|
604
|
+
};
|
|
605
|
+
|
|
606
|
+
// RIGHT Scroll
|
|
607
|
+
box.initScrollMetrics = function () {
|
|
608
|
+
|
|
609
|
+
// Değişkenler
|
|
610
|
+
box.scrollVars.minY = box.titleHeight;
|
|
611
|
+
box.scrollVars.scrollAreaHeight = box.height - box.titleHeight - box.infoHeight;
|
|
612
|
+
box.scrollVars.scrollIconHeight = box.btnScrollCenter.height;
|
|
613
|
+
box.scrollVars.maxY = box.scrollVars.minY + box.scrollVars.scrollAreaHeight - box.scrollVars.scrollIconHeight;
|
|
614
|
+
box.scrollVars.totalPath = box.scrollVars.maxY - box.scrollVars.minY;
|
|
615
|
+
|
|
616
|
+
box.scrollVars.isDragging = false;
|
|
617
|
+
box.scrollVars.startY = 0;
|
|
618
|
+
box.scrollVars.startTop = 0;
|
|
619
|
+
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
box.syncScrollPosition = function () {
|
|
623
|
+
|
|
624
|
+
const maxScrollIndex = getMaxScrollIndex();
|
|
625
|
+
if (maxScrollIndex === 0) return;
|
|
626
|
+
|
|
627
|
+
const percent = box.startedItemIndexForScrolling / maxScrollIndex;
|
|
628
|
+
box.btnScrollCenter.top = box.scrollVars.minY + (percent * box.scrollVars.totalPath);
|
|
629
|
+
|
|
630
|
+
};
|
|
631
|
+
|
|
632
|
+
box.createScrollEvents = function () {
|
|
633
|
+
|
|
634
|
+
box.btnScrollCenter.clickable = 1;
|
|
635
|
+
box.btnScrollCenter.elem.setAttribute("draggable", "false");
|
|
636
|
+
box.btnScrollCenter.cursor = "grab";
|
|
637
|
+
|
|
638
|
+
box.initScrollMetrics();
|
|
639
|
+
|
|
640
|
+
// WHEEL: one row for each wheel step.
|
|
641
|
+
box.on("wheel", function (self, event) {
|
|
642
|
+
|
|
643
|
+
// WHY: Varsayılan olarak tekerlek sayfaya bırakılır; tablo sayfanın kaymasını engellemesin. (wheelScroll: 1 ile açılır)
|
|
644
|
+
if (box.wheelScroll != 1) return;
|
|
645
|
+
|
|
646
|
+
// WHY: A mostly horizontal move is left to the browser (the horizontal scroll of the columns).
|
|
647
|
+
if (Math.abs(event.deltaX) > Math.abs(event.deltaY)) return;
|
|
648
|
+
|
|
649
|
+
event.preventDefault();
|
|
650
|
+
|
|
651
|
+
const step = event.deltaY > 0 ? 1 : -1;
|
|
652
|
+
const newIndex = clampScrollIndex(box.startedItemIndexForScrolling + step);
|
|
653
|
+
if (newIndex === box.startedItemIndexForScrolling) return;
|
|
654
|
+
|
|
655
|
+
box.startedItemIndexForScrolling = newIndex;
|
|
656
|
+
box.syncScrollPosition();
|
|
657
|
+
box.refreshData();
|
|
658
|
+
|
|
659
|
+
}, { passive: false });
|
|
660
|
+
|
|
661
|
+
// DRAG: the center button of the vertical scroll.
|
|
662
|
+
box.btnScrollCenter.on("mousedown", function (self, event) {
|
|
663
|
+
|
|
664
|
+
box.scrollVars.isDragging = true;
|
|
665
|
+
box.scrollVars.startY = event.clientY;
|
|
666
|
+
box.scrollVars.startTop = box.btnScrollCenter.top;
|
|
667
|
+
box.btnScrollCenter.cursor = "grabbing";
|
|
668
|
+
document.body.style.userSelect = "none";
|
|
669
|
+
|
|
670
|
+
});
|
|
671
|
+
|
|
672
|
+
box.listenTo(window, "mousemove", function (self, event) {
|
|
673
|
+
dragScrollButton(event);
|
|
674
|
+
});
|
|
675
|
+
box.listenTo(window, "mouseup", function () {
|
|
676
|
+
stopScrollButtonDrag();
|
|
677
|
+
});
|
|
678
|
+
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
const dragScrollButton = function (event) {
|
|
682
|
+
|
|
683
|
+
if (!box || !box.scrollVars.isDragging) return;
|
|
684
|
+
|
|
685
|
+
const diffY = event.clientY - box.scrollVars.startY;
|
|
686
|
+
let newTop = box.scrollVars.startTop + diffY;
|
|
687
|
+
|
|
688
|
+
if (newTop < box.scrollVars.minY) newTop = box.scrollVars.minY;
|
|
689
|
+
if (newTop > box.scrollVars.maxY) newTop = box.scrollVars.maxY;
|
|
690
|
+
|
|
691
|
+
box.btnScrollCenter.top = newTop;
|
|
692
|
+
|
|
693
|
+
// WHY: Tablo çok kısa ise totalPath 0 olabilir; 0'a bölme NaN index üretir.
|
|
694
|
+
if (box.scrollVars.totalPath <= 0) return;
|
|
695
|
+
|
|
696
|
+
const currentProgress = (newTop - box.scrollVars.minY) / box.scrollVars.totalPath;
|
|
697
|
+
const newIndex = Math.round(currentProgress * getMaxScrollIndex());
|
|
698
|
+
if (newIndex === box.startedItemIndexForScrolling) return;
|
|
699
|
+
|
|
700
|
+
box.startedItemIndexForScrolling = newIndex;
|
|
701
|
+
box.refreshData();
|
|
702
|
+
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
const stopScrollButtonDrag = function () {
|
|
706
|
+
|
|
707
|
+
if (!box || !box.scrollVars.isDragging) return;
|
|
708
|
+
|
|
709
|
+
box.scrollVars.isDragging = false;
|
|
710
|
+
box.btnScrollCenter.cursor = "grab";
|
|
711
|
+
document.body.style.userSelect = "auto";
|
|
712
|
+
|
|
713
|
+
};
|
|
714
|
+
|
|
715
|
+
box.scrollPage = function (direction) { // +1 ise aşağı (bir sayfa boyu), -1 ise yukarı
|
|
716
|
+
|
|
717
|
+
const newIndex = clampScrollIndex(box.startedItemIndexForScrolling + (direction * box.itemLineCount));
|
|
718
|
+
if (newIndex === box.startedItemIndexForScrolling) return;
|
|
719
|
+
|
|
720
|
+
box.startedItemIndexForScrolling = newIndex;
|
|
721
|
+
box.refreshData();
|
|
722
|
+
box.syncScrollPosition();
|
|
723
|
+
|
|
724
|
+
};
|
|
725
|
+
|
|
726
|
+
box.updateInfoLabel = function () {
|
|
727
|
+
|
|
728
|
+
const totalData = box.visibleItemDataList.length;
|
|
729
|
+
|
|
730
|
+
if (totalData == 0) {
|
|
731
|
+
box.boxInfoLine.label.text = "0 - 0 / 0";
|
|
732
|
+
box.lblNoDataFound.opacity = 1;
|
|
733
|
+
// TODO: Show a alert text at center (No data!)
|
|
734
|
+
return;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
box.lblNoDataFound.opacity = 0;
|
|
738
|
+
|
|
739
|
+
// Başlangıç indeksi (İnsanların okuması için +1 ekliyoruz, 0 yerine 1'den başlasın)
|
|
740
|
+
const start = box.startedItemIndexForScrolling + 1;
|
|
741
|
+
|
|
742
|
+
// Bitiş indeksi (Ya sayfa sonu ya da toplam veri miktarı)
|
|
743
|
+
let end = box.startedItemIndexForScrolling + box.itemLineCount;
|
|
744
|
+
if (end > totalData) end = totalData;
|
|
745
|
+
|
|
746
|
+
// Sayıları binlik ayırıcı ile formatlamak (12499 -> 12.499)
|
|
747
|
+
const formatNumber = (number) => number.toLocaleString('tr-TR');
|
|
748
|
+
|
|
749
|
+
box.boxInfoLine.label.text = `${formatNumber(start)} - ${formatNumber(end)} / ${formatNumber(totalData)}`;
|
|
750
|
+
|
|
751
|
+
};
|
|
752
|
+
|
|
753
|
+
box.setScrollToTop = function () {
|
|
754
|
+
box.startedItemIndexForScrolling = 0;
|
|
755
|
+
box.btnScrollCenter.top = box.scrollVars.minY;
|
|
756
|
+
};
|
|
757
|
+
|
|
758
|
+
box.setItemDataList = function (itemDataList) {
|
|
759
|
+
box.itemDataList = [...itemDataList];
|
|
760
|
+
box.filterAndSortData();
|
|
761
|
+
};
|
|
762
|
+
|
|
763
|
+
// WHY: "value ?" kontrolü 0 ve false değerlerini aranamaz yapıyordu.
|
|
764
|
+
const hasKeyword = function (value, searchKeyword) {
|
|
765
|
+
if (value === undefined || value === null) return false;
|
|
766
|
+
return String(value).toLowerCase().includes(searchKeyword);
|
|
767
|
+
};
|
|
768
|
+
|
|
769
|
+
const filterItems = function (itemList, searchKeyword) {
|
|
770
|
+
|
|
771
|
+
if (searchKeyword === "") return itemList;
|
|
772
|
+
|
|
773
|
+
// Sütun seçili ise sadece o sütunda, değil ise (ALL) tüm sütunlarda ara.
|
|
774
|
+
const searchTitleData = box.titleDataList[box.searchTitleIndex];
|
|
775
|
+
const searchTitleList = (searchTitleData) ? [searchTitleData] : box.titleDataList;
|
|
776
|
+
|
|
777
|
+
return itemList.filter(item => {
|
|
778
|
+
return searchTitleList.some(title => hasKeyword(item[title.dataTitle], searchKeyword));
|
|
779
|
+
});
|
|
780
|
+
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
const compareValues = function (valueA, valueB) {
|
|
784
|
+
|
|
785
|
+
const numberA = toSortNumber(valueA);
|
|
786
|
+
const numberB = toSortNumber(valueB);
|
|
787
|
+
|
|
788
|
+
if (Number.isFinite(numberA) && Number.isFinite(numberB)) return numberA - numberB;
|
|
789
|
+
return String(valueA).localeCompare(String(valueB), 'tr');
|
|
790
|
+
|
|
791
|
+
};
|
|
792
|
+
|
|
793
|
+
// Sorts the list in place.
|
|
794
|
+
const sortItems = function (itemList, sortByTitleIndex, sortDirection) {
|
|
795
|
+
|
|
796
|
+
const titleData = box.titleDataList[sortByTitleIndex];
|
|
797
|
+
if (!titleData || titleData.shortable === 0) return;
|
|
798
|
+
|
|
799
|
+
const key = titleData.dataTitle;
|
|
800
|
+
|
|
801
|
+
itemList.sort((a, b) => {
|
|
802
|
+
const comparison = compareValues(a[key] ?? "", b[key] ?? "");
|
|
803
|
+
return sortDirection === "A-Z" ? comparison : -comparison;
|
|
804
|
+
});
|
|
805
|
+
|
|
806
|
+
};
|
|
807
|
+
|
|
808
|
+
box.filterAndSortData = function () {
|
|
809
|
+
|
|
810
|
+
if (box.itemDataList.length > LOADING_MIN_ITEM_COUNT) box.showLoading(1);
|
|
811
|
+
|
|
812
|
+
// WHY: Arka arkaya çağrılırsa (ör. hızlı arama) sadece son çağrı çalışsın; eski sonuç yenisinin üzerine yazılmasın.
|
|
813
|
+
box.filterTimer = waitAndRun(box.filterTimer, function () {
|
|
814
|
+
|
|
815
|
+
box.filterTimer = null;
|
|
816
|
+
const searchKeyword = String(box.searchKeyword ?? "").toLowerCase().trim();
|
|
817
|
+
|
|
818
|
+
// WHY: A copy; sort() must not change the order of box.itemDataList.
|
|
819
|
+
const filteredList = filterItems([...box.itemDataList], searchKeyword);
|
|
820
|
+
sortItems(filteredList, box.sortByTitleIndex, box.sortDirection);
|
|
821
|
+
|
|
822
|
+
box.visibleItemDataList = filteredList;
|
|
823
|
+
|
|
824
|
+
box.setScrollToTop();
|
|
825
|
+
box.refreshData();
|
|
826
|
+
|
|
827
|
+
box.showLoading(0);
|
|
828
|
+
|
|
829
|
+
}, FILTER_DELAY);
|
|
830
|
+
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
box.generateTestData = function () {
|
|
834
|
+
|
|
835
|
+
let bigData = [];
|
|
836
|
+
|
|
837
|
+
for (let i = 0; i < TEST_DATA_REPEAT_COUNT; i++) {
|
|
838
|
+
// Nesneleri klonlayarak ekliyoruz ki ID'leri çakışmasın veya referans karışmasın
|
|
839
|
+
const clonedBatch = box.itemDataList.map(item => ({
|
|
840
|
+
...item,
|
|
841
|
+
id: bigData.length + item.id // Benzersiz ID oluşturmak için
|
|
842
|
+
}));
|
|
843
|
+
|
|
844
|
+
bigData.push(...clonedBatch);
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
box.itemDataList = bigData;
|
|
848
|
+
box.visibleItemDataList = bigData;
|
|
849
|
+
|
|
850
|
+
console.log("Yeni veri sayısı:", box.visibleItemDataList.length);
|
|
851
|
+
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
box.createVerticalScroll = function () {
|
|
855
|
+
|
|
856
|
+
const scrollWidth = box.style.verticalScrollWidth;
|
|
857
|
+
const leftMargin = box.style.verticalScrollMargin;
|
|
858
|
+
const scrollRight = (scrollWidth + leftMargin) * -1;
|
|
859
|
+
|
|
860
|
+
box.btnScrollCenter = startBox(0, 0, scrollWidth, SCROLL_CENTER_HEIGHT, {
|
|
861
|
+
right: scrollRight,
|
|
862
|
+
top: box.titleHeight,
|
|
863
|
+
opacity: 0,
|
|
864
|
+
clickable: 0,
|
|
865
|
+
...box.style.btnScrollCenter,
|
|
866
|
+
});
|
|
867
|
+
|
|
868
|
+
Icon(0, 0, "100%", "100%");
|
|
869
|
+
that.load(box.style.btnScrollCenterIconFile);
|
|
870
|
+
|
|
871
|
+
endBox();
|
|
872
|
+
|
|
873
|
+
box.btnScrollUp = Box(0, 0, scrollWidth, box.titleHeight, {
|
|
874
|
+
right: scrollRight,
|
|
875
|
+
...box.style.btnScrollUp,
|
|
876
|
+
});
|
|
877
|
+
that.cursor = "pointer";
|
|
878
|
+
that.on("click", function (self, event) {
|
|
879
|
+
box.scrollPage(-1);
|
|
880
|
+
});
|
|
881
|
+
|
|
882
|
+
Icon(0, 0, "100%", "100%");
|
|
883
|
+
box.btnScrollUp.add(that);
|
|
884
|
+
that.load(box.style.btnScrollUpIconFile);
|
|
885
|
+
if (box.style.invertIconColor == 1) that.css.filter = "invert(100%)";
|
|
886
|
+
|
|
887
|
+
box.btnScrollDown = Box(0, 0, scrollWidth, box.infoHeight, {
|
|
888
|
+
right: scrollRight,
|
|
889
|
+
bottom: 0,
|
|
890
|
+
...box.style.btnScrollDown,
|
|
891
|
+
});
|
|
892
|
+
that.cursor = "pointer";
|
|
893
|
+
that.on("click", function (self, event) {
|
|
894
|
+
box.scrollPage(1);
|
|
895
|
+
});
|
|
896
|
+
|
|
897
|
+
Icon(0, 0, "100%", "100%");
|
|
898
|
+
box.btnScrollDown.add(that);
|
|
899
|
+
that.load(box.style.btnScrollDownIconFile);
|
|
900
|
+
if (box.style.invertIconColor == 1) that.css.filter = "invert(100%)";
|
|
901
|
+
|
|
902
|
+
};
|
|
903
|
+
|
|
904
|
+
box.createToolbar = function () {
|
|
905
|
+
|
|
906
|
+
HGroup({
|
|
907
|
+
align: "left center",
|
|
908
|
+
padding: [8, 0],
|
|
909
|
+
});
|
|
910
|
+
box.boxInfoLine.add(that);
|
|
911
|
+
|
|
912
|
+
SearchInput(box.searchInputParams);
|
|
913
|
+
that.setText(box.searchKeyword);
|
|
914
|
+
that.onSubmit = function (searchedText, self) {
|
|
915
|
+
box.searchKeyword = searchedText;
|
|
916
|
+
box.filterAndSortData();
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
endGroup();
|
|
920
|
+
|
|
921
|
+
HGroup({
|
|
922
|
+
align: "right center",
|
|
923
|
+
padding: [14, 0],
|
|
924
|
+
});
|
|
925
|
+
box.boxInfoLine.add(that);
|
|
926
|
+
|
|
927
|
+
box.boxInfoLine.label = Label({
|
|
928
|
+
text: "0 - 0 / 0",
|
|
929
|
+
...box.style.lblBoxInfoLine,
|
|
930
|
+
});
|
|
931
|
+
|
|
932
|
+
endGroup();
|
|
933
|
+
|
|
934
|
+
// Center the label
|
|
935
|
+
HGroup({
|
|
936
|
+
align: "right center",
|
|
937
|
+
width: "50%",
|
|
938
|
+
padding: [40, 0],
|
|
939
|
+
});
|
|
940
|
+
box.boxInfoLine.add(that);
|
|
941
|
+
|
|
942
|
+
// LABEL: Arama sütunu seçimi (ALL)
|
|
943
|
+
box.lblSelectedSortKey = Label({
|
|
944
|
+
text: box.allTitlesText,
|
|
945
|
+
opacity: 1,
|
|
946
|
+
clickable: 1,
|
|
947
|
+
...box.style.lblNoDataFound,
|
|
948
|
+
...box.style.lblSearchTitle, // WHY: Etiket filtre kutusunun içinde duruyor; "no data" etiketinden ayrı stil verilebilsin.
|
|
949
|
+
});
|
|
950
|
+
that.cursor = "pointer";
|
|
951
|
+
that.ellipsis = 1;
|
|
952
|
+
that.css.maxWidth = SEARCH_TITLE_MAX_WIDTH;
|
|
953
|
+
that.setMotion("opacity 0.2s");
|
|
954
|
+
|
|
955
|
+
endGroup();
|
|
956
|
+
|
|
957
|
+
if (typeof ContextMenu === "function") {
|
|
958
|
+
|
|
959
|
+
// MENU: Sütun listesi (Items: box.updateSearchTitleSelect)
|
|
960
|
+
box.searchTitleMenu = ContextMenu({
|
|
961
|
+
minWidth: 160,
|
|
962
|
+
...box.searchTitleMenuParams,
|
|
963
|
+
onClick: function (self, item) {
|
|
964
|
+
box.setSearchTitleIndex(item.data);
|
|
965
|
+
},
|
|
966
|
+
});
|
|
967
|
+
box.searchTitleMenu.attachTo(box.lblSelectedSortKey, "click");
|
|
968
|
+
|
|
969
|
+
} else {
|
|
970
|
+
|
|
971
|
+
// WHY: context-menu.js yüklenmemiş ise özellik yine çalışsın; her basışta sıradaki sütuna geç.
|
|
972
|
+
box.lblSelectedSortKey.on("click", function () {
|
|
973
|
+
box.selectNextSearchTitle();
|
|
974
|
+
});
|
|
975
|
+
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
};
|
|
979
|
+
|
|
980
|
+
box.stretchLastCell = function (width) {
|
|
981
|
+
|
|
982
|
+
const hasWidth = width > 0; // WHY: Not "width <= 0": a NaN width must also stop here.
|
|
983
|
+
if (!hasWidth || box.titleCellCount == 0) return;
|
|
984
|
+
|
|
985
|
+
const lastCellIndex = box.titleCellCount - 1;
|
|
986
|
+
|
|
987
|
+
box.itemLineList.forEach(function (itemLine) {
|
|
988
|
+
itemLine["itemCell" + lastCellIndex].width = width;
|
|
989
|
+
});
|
|
990
|
+
|
|
991
|
+
box.titleCellList[lastCellIndex].width = width;
|
|
992
|
+
|
|
993
|
+
};
|
|
994
|
+
|
|
995
|
+
box.calcLastCellWidth = function () {
|
|
996
|
+
|
|
997
|
+
const titleDataList = box.titleDataList;
|
|
998
|
+
const tableWidth = box.width;
|
|
999
|
+
|
|
1000
|
+
if (titleDataList.length == 0) return 0;
|
|
1001
|
+
|
|
1002
|
+
// WHY: createTitleCell/createItemCell width yoksa DEFAULT_CELL_WIDTH kullanıyor; burada da aynısı olmalı, yoksa basic.num(undefined) NaN olur.
|
|
1003
|
+
let totalWidth = 0;
|
|
1004
|
+
titleDataList.forEach(function (titleData) {
|
|
1005
|
+
totalWidth += basic.num(titleData.width || DEFAULT_CELL_WIDTH);
|
|
1006
|
+
});
|
|
1007
|
+
|
|
1008
|
+
const lastCellWidth = basic.num(titleDataList[titleDataList.length - 1].width || DEFAULT_CELL_WIDTH);
|
|
1009
|
+
|
|
1010
|
+
if (tableWidth > totalWidth) return tableWidth - totalWidth + lastCellWidth;
|
|
1011
|
+
|
|
1012
|
+
// WHY: Tablo daraldığında son hücre, önceki genişletilmiş boyutunda kalıyordu. Orijinal genişliğe dön.
|
|
1013
|
+
return lastCellWidth;
|
|
1014
|
+
|
|
1015
|
+
};
|
|
1016
|
+
|
|
1017
|
+
box.setItemHeight = function (itemHeight) {
|
|
1018
|
+
|
|
1019
|
+
box.itemHeight = itemHeight;
|
|
1020
|
+
|
|
1021
|
+
box.itemLineList.forEach(function (itemLine) {
|
|
1022
|
+
itemLine.height = box.itemHeight;
|
|
1023
|
+
itemLine.visible = 1; // WHY: Yükseklik hesaplandıktan sonra göster.
|
|
1024
|
+
});
|
|
1025
|
+
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
box.setHeight = function (height) {
|
|
1029
|
+
|
|
1030
|
+
// Yükseklik otomatik değil ise, ItemCell yüksekliği resize sırasında hesaplanır.
|
|
1031
|
+
box.recalcItemHeight = (height != "auto") ? 1 : 0;
|
|
1032
|
+
box.height = height;
|
|
1033
|
+
|
|
1034
|
+
};
|
|
1035
|
+
|
|
1036
|
+
box.setWidth = function (width) {
|
|
1037
|
+
|
|
1038
|
+
// WHY: Sayı verilirse (width: 800) .includes hata veriyordu.
|
|
1039
|
+
const isPercent = typeof width === "string" && width.includes("%");
|
|
1040
|
+
|
|
1041
|
+
if (!isPercent) {
|
|
1042
|
+
box.width = width;
|
|
1043
|
+
return;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
// A percent width leaves room for the vertical scroll at the right side.
|
|
1047
|
+
box.width = "calc(" + width + " - " + box.getVerticalScrollWidth() + "px)";
|
|
1048
|
+
|
|
1049
|
+
};
|
|
1050
|
+
|
|
1051
|
+
box.getTotalWidth = function () {
|
|
1052
|
+
return box.width + box.getVerticalScrollWidth();
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
box.getVerticalScrollWidth = function () {
|
|
1056
|
+
return box.style.verticalScrollWidth + box.style.verticalScrollMargin;
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
box.createLoading = function () {
|
|
1060
|
+
|
|
1061
|
+
box.boxLoading = VGroup({
|
|
1062
|
+
color: Black(0.3),
|
|
1063
|
+
clickable: 1,
|
|
1064
|
+
round: box.style.round,
|
|
1065
|
+
});
|
|
1066
|
+
box.add(box.boxLoading);
|
|
1067
|
+
|
|
1068
|
+
Icon({
|
|
1069
|
+
width: LOADING_ICON_SIZE,
|
|
1070
|
+
height: LOADING_ICON_SIZE,
|
|
1071
|
+
});
|
|
1072
|
+
that.load(box.style.loadingIconFile);
|
|
1073
|
+
|
|
1074
|
+
endGroup();
|
|
1075
|
+
|
|
1076
|
+
};
|
|
1077
|
+
|
|
1078
|
+
box.showLoading = function (show) {
|
|
1079
|
+
if (show) {
|
|
1080
|
+
box.boxLoading.visible = 1;
|
|
1081
|
+
box.setVerticalScrollEnabled(false);
|
|
1082
|
+
|
|
1083
|
+
} else {
|
|
1084
|
+
box.boxLoading.visible = 0;
|
|
1085
|
+
box.setVerticalScrollEnabled(true);
|
|
1086
|
+
}
|
|
1087
|
+
};
|
|
1088
|
+
|
|
1089
|
+
box.createNoDataFoundLabel = function () {
|
|
1090
|
+
|
|
1091
|
+
// Centered
|
|
1092
|
+
HGroup();
|
|
1093
|
+
|
|
1094
|
+
box.lblNoDataFound = Label({
|
|
1095
|
+
text: box.noDataFoundAlert,
|
|
1096
|
+
opacity: 0,
|
|
1097
|
+
...box.style.lblNoDataFound,
|
|
1098
|
+
});
|
|
1099
|
+
that.setMotion("opacity 0.2s");
|
|
1100
|
+
|
|
1101
|
+
endGroup();
|
|
1102
|
+
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
// Sütunun listede görünen adı. (HTML etiketleri olmadan; adı boş ise dataTitle)
|
|
1106
|
+
const getTitleText = function (titleData) {
|
|
1107
|
+
const name = String(titleData.name ?? "").replace(/<[^>]*>/g, "").trim();
|
|
1108
|
+
return name || String(titleData.dataTitle ?? "");
|
|
1109
|
+
};
|
|
1110
|
+
|
|
1111
|
+
// Arama sütunu kutusunu ve listesini, seçime göre yenile.
|
|
1112
|
+
box.updateSearchTitleSelect = function () {
|
|
1113
|
+
|
|
1114
|
+
if (!box.titleDataList[box.searchTitleIndex]) box.searchTitleIndex = -1;
|
|
1115
|
+
|
|
1116
|
+
const selectedTitleData = box.titleDataList[box.searchTitleIndex];
|
|
1117
|
+
box.lblSelectedSortKey.text = (selectedTitleData) ? getTitleText(selectedTitleData) : box.allTitlesText;
|
|
1118
|
+
box.lblSelectedSortKey.visible = (box.showSearchTitleSelect == 1) ? 1 : 0;
|
|
1119
|
+
|
|
1120
|
+
if (!box.searchTitleMenu) return;
|
|
1121
|
+
|
|
1122
|
+
// WHY: Sadece seçili olanda ikon var; ContextMenu diğerlerine boş ikon alanı verir, metinler aynı hizada durur.
|
|
1123
|
+
const getCheckIcon = function (titleIndex) {
|
|
1124
|
+
return (box.searchTitleIndex == titleIndex) ? box.style.searchTitleCheckIconFile : "";
|
|
1125
|
+
};
|
|
1126
|
+
|
|
1127
|
+
const items = [
|
|
1128
|
+
{ text: box.allTitlesText, data: -1, iconFile: getCheckIcon(-1) },
|
|
1129
|
+
"-",
|
|
1130
|
+
];
|
|
1131
|
+
|
|
1132
|
+
box.titleDataList.forEach(function (titleData, titleIndex) {
|
|
1133
|
+
items.push({ text: getTitleText(titleData), data: titleIndex, iconFile: getCheckIcon(titleIndex) });
|
|
1134
|
+
});
|
|
1135
|
+
|
|
1136
|
+
box.searchTitleMenu.setItems(items);
|
|
1137
|
+
if (box.showSearchTitleSelect != 1) box.searchTitleMenu.close();
|
|
1138
|
+
|
|
1139
|
+
};
|
|
1140
|
+
|
|
1141
|
+
// Arama sütununu seç. -1: ALL (tüm sütunlar)
|
|
1142
|
+
box.setSearchTitleIndex = function (titleIndex) {
|
|
1143
|
+
|
|
1144
|
+
box.searchTitleIndex = (box.titleDataList[titleIndex]) ? titleIndex : -1;
|
|
1145
|
+
box.updateSearchTitleSelect();
|
|
1146
|
+
|
|
1147
|
+
// WHY: Arama kutusu boş ise sonuç değişmez; scroll boşuna başa dönmesin.
|
|
1148
|
+
if (String(box.searchKeyword ?? "").trim() !== "") box.filterAndSortData();
|
|
1149
|
+
|
|
1150
|
+
};
|
|
1151
|
+
// USAGE: smartTable.setSearchTitleIndex(1) or smartTable.setSearchTitleIndex(-1)
|
|
1152
|
+
|
|
1153
|
+
// Sıradaki sütuna geç: ALL -> 0 -> 1 -> ... -> ALL
|
|
1154
|
+
box.selectNextSearchTitle = function () {
|
|
1155
|
+
const nextIndex = box.searchTitleIndex + 1;
|
|
1156
|
+
box.setSearchTitleIndex((nextIndex < box.titleDataList.length) ? nextIndex : -1);
|
|
1157
|
+
};
|
|
1158
|
+
|
|
1159
|
+
box.setShowSearchTitleSelect = function (show) {
|
|
1160
|
+
box.showSearchTitleSelect = basic.isOn(show) ? 1 : 0;
|
|
1161
|
+
box.updateSearchTitleSelect();
|
|
1162
|
+
};
|
|
1163
|
+
// USAGE: smartTable.setShowSearchTitleSelect(0)
|
|
1164
|
+
|
|
1165
|
+
// Fare tekerleği ile satır kaydırma. 0: Tekerlek sayfaya bırakılır.
|
|
1166
|
+
box.setWheelScroll = function (enabled) {
|
|
1167
|
+
box.wheelScroll = basic.isOn(enabled) ? 1 : 0;
|
|
1168
|
+
};
|
|
1169
|
+
// USAGE: smartTable.setWheelScroll(1)
|
|
1170
|
+
|
|
1171
|
+
box.createResizeEvent = function () {
|
|
1172
|
+
|
|
1173
|
+
const resizeUI = function () {
|
|
1174
|
+
|
|
1175
|
+
if (box.recalcItemHeight) {
|
|
1176
|
+
|
|
1177
|
+
const itemHeight = (box.height - box.titleHeight - box.infoHeight) / box.itemLineCount;
|
|
1178
|
+
|
|
1179
|
+
// WHY: Hesaplanan yükseklik mevcut itemHeight ile aynı ise satırlar hiç görünür yapılmıyordu.
|
|
1180
|
+
if (box.itemHeight != itemHeight || (box.itemLineList[0] && !box.itemLineList[0].visible)) {
|
|
1181
|
+
box.setItemHeight(itemHeight);
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
box.stretchLastCell(box.calcLastCellWidth());
|
|
1187
|
+
box.initScrollMetrics();
|
|
1188
|
+
box.syncScrollPosition();
|
|
1189
|
+
box.scrollBar.refreshScroll(); // Ekranı daraltırken, scroll gereksiz görünmesin diye.
|
|
1190
|
+
|
|
1191
|
+
box.refreshData();
|
|
1192
|
+
|
|
1193
|
+
};
|
|
1194
|
+
|
|
1195
|
+
box.onResize(function (self) {
|
|
1196
|
+
box.resizeTimer = waitAndRun(box.resizeTimer, resizeUI, RESIZE_DELAY);
|
|
1197
|
+
});
|
|
1198
|
+
|
|
1199
|
+
};
|
|
1200
|
+
|
|
1201
|
+
// *** OBJECT VIEW:
|
|
1202
|
+
box.init = function () {
|
|
1203
|
+
|
|
1204
|
+
box.clickable = 1;
|
|
1205
|
+
// Show outside of the box.
|
|
1206
|
+
box.clipContent = 0;
|
|
1207
|
+
box.color = box.style.box.color;
|
|
1208
|
+
box.round = box.style.round;
|
|
1209
|
+
if (box.invertColor == 1) box.css.filter = "invert(100%)";
|
|
1210
|
+
box.setWidth(box.style.width);
|
|
1211
|
+
box.setHeight(box.style.height);
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
// CREATE the structure:
|
|
1215
|
+
|
|
1216
|
+
// Tıtle and Item Lıne Group Container
|
|
1217
|
+
box.boxHorizontalScrollable = VGroup({
|
|
1218
|
+
align: "top left",
|
|
1219
|
+
width: "auto",
|
|
1220
|
+
height: "auto",
|
|
1221
|
+
padding: [0, 0],
|
|
1222
|
+
gap: 0,
|
|
1223
|
+
position: "relative",
|
|
1224
|
+
clipContent: 0,
|
|
1225
|
+
scrollX: 1,
|
|
1226
|
+
});
|
|
1227
|
+
// WHY: Only the top corners are round; the info line under it has the bottom ones.
|
|
1228
|
+
that.css = {
|
|
1229
|
+
borderTopLeftRadius: box.style.round + "px",
|
|
1230
|
+
borderTopRightRadius: box.style.round + "px",
|
|
1231
|
+
borderBottomRightRadius: "0px",
|
|
1232
|
+
borderBottomLeftRadius: "0px",
|
|
1233
|
+
marginBottom: box.infoHeight + "px",
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1236
|
+
// Title Line
|
|
1237
|
+
box.boxTitleLine = HGroup({
|
|
1238
|
+
height: "auto",
|
|
1239
|
+
width: "auto",
|
|
1240
|
+
align: "top left",
|
|
1241
|
+
padding: [0, 0],
|
|
1242
|
+
gap: 0,
|
|
1243
|
+
color: box.style.boxTitleLine.color,
|
|
1244
|
+
// NOTE: this width, height: "100%" as default.
|
|
1245
|
+
});
|
|
1246
|
+
|
|
1247
|
+
// TITLE CELLS WILL BE HERE
|
|
1248
|
+
|
|
1249
|
+
endGroup();
|
|
1250
|
+
|
|
1251
|
+
// Item Lıne Group
|
|
1252
|
+
box.boxItemLineGroup = VGroup({
|
|
1253
|
+
align: "top left",
|
|
1254
|
+
width: "auto",
|
|
1255
|
+
height: "auto",
|
|
1256
|
+
padding: [0, 0],
|
|
1257
|
+
gap: 0,
|
|
1258
|
+
});
|
|
1259
|
+
|
|
1260
|
+
// ITEM LINES WILL BE HERE
|
|
1261
|
+
|
|
1262
|
+
endGroup();
|
|
1263
|
+
|
|
1264
|
+
endGroup(); // Tıtle and Item Lıne Group Container
|
|
1265
|
+
|
|
1266
|
+
box.boxInfoLine = HGroup({
|
|
1267
|
+
bottom: 0,
|
|
1268
|
+
left: 0,
|
|
1269
|
+
height: box.infoHeight,
|
|
1270
|
+
width: "100%",
|
|
1271
|
+
align: "top left",
|
|
1272
|
+
padding: [0, 0],
|
|
1273
|
+
gap: 0,
|
|
1274
|
+
...box.style.boxInfoLine,
|
|
1275
|
+
});
|
|
1276
|
+
endGroup();
|
|
1277
|
+
that.css = {
|
|
1278
|
+
borderTopLeftRadius: "0px",
|
|
1279
|
+
borderTopRightRadius: "0px",
|
|
1280
|
+
borderBottomRightRadius: box.style.round + "px",
|
|
1281
|
+
borderBottomLeftRadius: box.style.round + "px",
|
|
1282
|
+
borderTop: box.style.boxInfoLine.borderTop,
|
|
1283
|
+
};
|
|
1284
|
+
that.clickable = 0;
|
|
1285
|
+
|
|
1286
|
+
box.createToolbar();
|
|
1287
|
+
box.createNoDataFoundLabel();
|
|
1288
|
+
|
|
1289
|
+
// boxBorder
|
|
1290
|
+
box.boxBorder = Box(0, 0, "100%", "100%", box.style.boxBorder);
|
|
1291
|
+
that.round = box.style.round;
|
|
1292
|
+
that.color = "transparent";
|
|
1293
|
+
|
|
1294
|
+
box.createVerticalScroll();
|
|
1295
|
+
|
|
1296
|
+
// SCROLL BAR: Horizontal Scroll
|
|
1297
|
+
box.scrollBar = ScrollBar({
|
|
1298
|
+
scrollableBox: box.boxHorizontalScrollable,
|
|
1299
|
+
...box.scrollBarParams,
|
|
1300
|
+
});
|
|
1301
|
+
|
|
1302
|
+
box.createResizeEvent();
|
|
1303
|
+
box.createLoading();
|
|
1304
|
+
|
|
1305
|
+
};
|
|
1306
|
+
|
|
1307
|
+
// *** OBJECT INIT CODE:
|
|
1308
|
+
box.init(); // Create UI
|
|
1309
|
+
box.createTitleLine();
|
|
1310
|
+
box.createItemLines();
|
|
1311
|
+
box.createScrollEvents();
|
|
1312
|
+
box.stretchLastCell(box.calcLastCellWidth());
|
|
1313
|
+
box.updateSortIcon();
|
|
1314
|
+
box.updateSearchTitleSelect();
|
|
1315
|
+
// Add test data WHY: filterAndSortData dan önce olmalı; böylece kayıtlar düz yüklenmeden sıralanır ve büyük veri için loading gösterilir.
|
|
1316
|
+
if (box.fillTestData) box.generateTestData();
|
|
1317
|
+
box.filterAndSortData();
|
|
1318
|
+
|
|
1319
|
+
return endObject(box);
|
|
1320
|
+
|
|
1321
|
+
};
|