create-basicjs 0.0.1 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -2
- package/bin/create-basicjs.js +104 -1
- package/bin/verify-package.js +16 -0
- package/package.json +27 -6
- package/payload/starter/AGENTS.md +82 -0
- package/payload/starter/CLAUDE.md +1 -0
- package/payload/starter/README.md +45 -0
- package/payload/starter/_basic/VERSION +1 -0
- package/payload/starter/_basic/assets/categories/cappuccino.png +0 -0
- package/payload/starter/_basic/assets/categories/chocolate-milk.png +0 -0
- package/payload/starter/_basic/assets/categories/coffee-cup.png +0 -0
- package/payload/starter/_basic/assets/categories/coffee.png +0 -0
- package/payload/starter/_basic/assets/categories/frappe.png +0 -0
- package/payload/starter/_basic/assets/categories/iced-caffee.png +0 -0
- package/payload/starter/_basic/assets/categories/milkshake.png +0 -0
- package/payload/starter/_basic/assets/categories/orange-juice.png +0 -0
- package/payload/starter/_basic/assets/categories/tea.png +0 -0
- package/payload/starter/_basic/assets/data-table/palette.svg +2 -0
- package/payload/starter/_basic/assets/data-table/people.js +104 -0
- package/payload/starter/_basic/assets/data-table/trash.svg +2 -0
- package/payload/starter/_basic/assets/fruids/brokoli.png +0 -0
- package/payload/starter/_basic/assets/fruids/cilek.png +0 -0
- package/payload/starter/_basic/assets/fruids/domates.png +0 -0
- package/payload/starter/_basic/assets/fruids/elma.png +0 -0
- package/payload/starter/_basic/assets/fruids/havuc.png +0 -0
- package/payload/starter/_basic/assets/fruids/karpuz.png +0 -0
- package/payload/starter/_basic/assets/fruids/limon.png +0 -0
- package/payload/starter/_basic/assets/fruids/muz.png +0 -0
- package/payload/starter/_basic/assets/fruids/nar.png +0 -0
- package/payload/starter/_basic/assets/fruids/patlican.png +0 -0
- package/payload/starter/_basic/assets/fruids/yabanmersini.png +0 -0
- package/payload/starter/_basic/assets/fruids/yesilbiber.png +0 -0
- package/payload/starter/_basic/assets/icons/alert-black.png +0 -0
- package/payload/starter/_basic/assets/icons/alert.png +0 -0
- package/payload/starter/_basic/assets/icons/arrow-drop.svg +3 -0
- package/payload/starter/_basic/assets/icons/arrow-rise.svg +3 -0
- package/payload/starter/_basic/assets/icons/close.svg +1 -0
- package/payload/starter/_basic/assets/icons/lamp-on.png +0 -0
- package/payload/starter/_basic/assets/icons/lamp.png +0 -0
- package/payload/starter/_basic/assets/icons/lock.png +0 -0
- package/payload/starter/_basic/assets/icons/panel.png +0 -0
- package/payload/starter/_basic/assets/icons/plant.png +0 -0
- package/payload/starter/_basic/assets/icons/trash.png +0 -0
- package/payload/starter/_basic/assets/icons/trash.svg +2 -0
- package/payload/starter/_basic/assets/tab-bar/settings.png +0 -0
- package/payload/starter/_basic/assets/tab-bar/status.png +0 -0
- package/payload/starter/_basic/assets/tab-bar/transactions.png +0 -0
- package/payload/starter/_basic/assets/tutorial/blueberries.png +0 -0
- package/payload/starter/_basic/assets/tutorial/carrot.png +0 -0
- package/payload/starter/_basic/assets/tutorial/olives.png +0 -0
- package/payload/starter/_basic/assets/tutorial/strawberry.png +0 -0
- package/payload/starter/_basic/assets/ui-bottom-bar/setting.svg +11 -0
- package/payload/starter/_basic/basic/LICENSE +14 -0
- package/payload/starter/_basic/basic/basic.css +277 -0
- package/payload/starter/_basic/basic/basic.js +3767 -0
- package/payload/starter/_basic/basic/basic.min.css +1 -0
- package/payload/starter/_basic/basic/basic.min.js +65 -0
- package/payload/starter/_basic/basic/font/open-sans/LICENSE.txt +206 -0
- package/payload/starter/_basic/basic/font/open-sans/OpenSans-Bold.ttf +0 -0
- package/payload/starter/_basic/basic/font/open-sans/OpenSans-Regular.ttf +0 -0
- package/payload/starter/_basic/basic/scroll-bar.js +536 -0
- package/payload/starter/_basic/basic/scroll-bar.min.js +2 -0
- package/payload/starter/_basic/comp/action-button/add.png +0 -0
- package/payload/starter/_basic/comp/action-button.js +522 -0
- package/payload/starter/_basic/comp/action-tab-bar.js +383 -0
- package/payload/starter/_basic/comp/app-bar.js +236 -0
- package/payload/starter/_basic/comp/badge-v2.js +246 -0
- package/payload/starter/_basic/comp/bottom-bar.js +547 -0
- package/payload/starter/_basic/comp/breadcrumbs.js +522 -0
- package/payload/starter/_basic/comp/chart-box/chart-4.5.1.umd.min.js +13 -0
- package/payload/starter/_basic/comp/chart-box/chart-js-LICENSE.md +9 -0
- package/payload/starter/_basic/comp/chart-box.js +868 -0
- package/payload/starter/_basic/comp/check-box.js +374 -0
- package/payload/starter/_basic/comp/context-menu.js +634 -0
- package/payload/starter/_basic/comp/currency-input-b.js +190 -0
- package/payload/starter/_basic/comp/data-table/arrow.svg +2 -0
- package/payload/starter/_basic/comp/data-table.js +865 -0
- package/payload/starter/_basic/comp/dialog.js +854 -0
- package/payload/starter/_basic/comp/email-input-b.js +57 -0
- package/payload/starter/_basic/comp/filters.js +493 -0
- package/payload/starter/_basic/comp/form.js +590 -0
- package/payload/starter/_basic/comp/full-screen-select/arrow.svg +2 -0
- package/payload/starter/_basic/comp/full-screen-select/cancel.svg +2 -0
- package/payload/starter/_basic/comp/full-screen-select.js +611 -0
- package/payload/starter/_basic/comp/gauge.js +435 -0
- package/payload/starter/_basic/comp/hold-to-confirm-button/trash-red.png +0 -0
- package/payload/starter/_basic/comp/hold-to-confirm-button/trash.png +0 -0
- package/payload/starter/_basic/comp/hold-to-confirm-button.js +280 -0
- package/payload/starter/_basic/comp/input-b.js +759 -0
- package/payload/starter/_basic/comp/item-list.js +1396 -0
- package/payload/starter/_basic/comp/label-editor.js +1137 -0
- package/payload/starter/_basic/comp/left-menu/_Material Symbols & Icons - Google Fonts.webloc +8 -0
- package/payload/starter/_basic/comp/left-menu/data-table.png +0 -0
- package/payload/starter/_basic/comp/left-menu/home.png +0 -0
- package/payload/starter/_basic/comp/left-menu/reports.png +0 -0
- package/payload/starter/_basic/comp/left-menu/setting.png +0 -0
- package/payload/starter/_basic/comp/left-menu.js +476 -0
- package/payload/starter/_basic/comp/line-progress-bar.js +192 -0
- package/payload/starter/_basic/comp/loading-screen.js +382 -0
- package/payload/starter/_basic/comp/login-page-v2.js +586 -0
- package/payload/starter/_basic/comp/mini-graph-box.js +483 -0
- package/payload/starter/_basic/comp/notice.js +227 -0
- package/payload/starter/_basic/comp/number-input-b.js +121 -0
- package/payload/starter/_basic/comp/numeric-keyboard.js +296 -0
- package/payload/starter/_basic/comp/page-control.js +745 -0
- package/payload/starter/_basic/comp/page-header.js +190 -0
- package/payload/starter/_basic/comp/password-input-b/hide-btn.png +0 -0
- package/payload/starter/_basic/comp/password-input-b/hide-btn2.png +0 -0
- package/payload/starter/_basic/comp/password-input-b/show-btn.png +0 -0
- package/payload/starter/_basic/comp/password-input-b/show-btn2.png +0 -0
- package/payload/starter/_basic/comp/password-input-b.js +164 -0
- package/payload/starter/_basic/comp/period-bar.js +435 -0
- package/payload/starter/_basic/comp/phone-input-b.js +287 -0
- package/payload/starter/_basic/comp/progress-bar.js +676 -0
- package/payload/starter/_basic/comp/property-panel.js +2740 -0
- package/payload/starter/_basic/comp/radio-button.js +467 -0
- package/payload/starter/_basic/comp/rich-text-editor.js +1061 -0
- package/payload/starter/_basic/comp/scrolling-text.js +296 -0
- package/payload/starter/_basic/comp/search-input-v2/clear-round.svg +1 -0
- package/payload/starter/_basic/comp/search-input-v2/clear.svg +1 -0
- package/payload/starter/_basic/comp/search-input-v2/filter.png +0 -0
- package/payload/starter/_basic/comp/search-input-v2/filter.svg +1 -0
- package/payload/starter/_basic/comp/search-input-v2/search.svg +1 -0
- package/payload/starter/_basic/comp/search-input-v2.js +427 -0
- package/payload/starter/_basic/comp/search-results.js +560 -0
- package/payload/starter/_basic/comp/select-box.js +1740 -0
- package/payload/starter/_basic/comp/select-color.js +603 -0
- package/payload/starter/_basic/comp/select-date.js +1003 -0
- package/payload/starter/_basic/comp/select-file.js +732 -0
- package/payload/starter/_basic/comp/select-time.js +979 -0
- package/payload/starter/_basic/comp/settings-row.js +298 -0
- package/payload/starter/_basic/comp/side-panel.js +573 -0
- package/payload/starter/_basic/comp/slider-field.js +776 -0
- package/payload/starter/_basic/comp/slider.js +368 -0
- package/payload/starter/_basic/comp/smart-button/alert-black.png +0 -0
- package/payload/starter/_basic/comp/smart-button/clock.png +0 -0
- package/payload/starter/_basic/comp/smart-button.js +896 -0
- package/payload/starter/_basic/comp/smart-table/clock.png +0 -0
- package/payload/starter/_basic/comp/smart-table/down.png +0 -0
- package/payload/starter/_basic/comp/smart-table/scroll.png +0 -0
- package/payload/starter/_basic/comp/smart-table/sort.png +0 -0
- package/payload/starter/_basic/comp/smart-table/up.png +0 -0
- package/payload/starter/_basic/comp/smart-table.js +1321 -0
- package/payload/starter/_basic/comp/sortable-list.js +1172 -0
- package/payload/starter/_basic/comp/spark-line-box.js +729 -0
- package/payload/starter/_basic/comp/stepper.js +699 -0
- package/payload/starter/_basic/comp/tabs.js +1317 -0
- package/payload/starter/_basic/comp/tag-input.js +1067 -0
- package/payload/starter/_basic/comp/tap-effect.js +168 -0
- package/payload/starter/_basic/comp/textarea-b.js +184 -0
- package/payload/starter/_basic/comp/time-line.js +324 -0
- package/payload/starter/_basic/comp/tiny-select/arrow.svg +1 -0
- package/payload/starter/_basic/comp/tiny-select.js +282 -0
- package/payload/starter/_basic/comp/tiny-table.js +279 -0
- package/payload/starter/_basic/comp/toast.js +838 -0
- package/payload/starter/_basic/comp/toggle.js +636 -0
- package/payload/starter/_basic/comp/tooltip.js +471 -0
- package/payload/starter/_basic/comp/tree-view.js +1096 -0
- package/payload/starter/_basic/comp/ui-effects.js +1091 -0
- package/payload/starter/_basic/comp/ui-standards.js +402 -0
- package/payload/starter/_basic/comp/url-input-b.js +145 -0
- package/payload/starter/_basic/comp/web-view.js +534 -0
- package/payload/starter/_basic/docs/basic-js-animated-rules.md +90 -0
- package/payload/starter/_basic/docs/basic-js-code-rules.md +91 -0
- package/payload/starter/_basic/docs/basic-js-components.md +134 -0
- package/payload/starter/_basic/docs/basic-js-core.md +131 -0
- package/payload/starter/_basic/docs/component-index.md +522 -0
- package/payload/starter/_basic/docs/component-template.js +416 -0
- package/payload/starter/_basic/docs/handbook/00-introduction.md +125 -0
- package/payload/starter/_basic/docs/handbook/00-what-is-new.md +96 -0
- package/payload/starter/_basic/docs/handbook/01-label.md +104 -0
- package/payload/starter/_basic/docs/handbook/02-box.md +166 -0
- package/payload/starter/_basic/docs/handbook/03-image.md +81 -0
- package/payload/starter/_basic/docs/handbook/04-common-properties.md +159 -0
- package/payload/starter/_basic/docs/handbook/05-autolayout.md +332 -0
- package/payload/starter/_basic/docs/handbook/06-button.md +103 -0
- package/payload/starter/_basic/docs/handbook/07-input.md +78 -0
- package/payload/starter/_basic/docs/handbook/08-page.md +120 -0
- package/payload/starter/_basic/docs/handbook/09-useful-examples.md +309 -0
- package/payload/starter/_basic/docs/handbook/10-motion.md +132 -0
- package/payload/starter/_basic/docs/handbook/11-other-functions.md +92 -0
- package/payload/starter/_basic/docs/handbook/12-utilities.md +123 -0
- package/payload/starter/_basic/docs/handbook/13-sound.md +88 -0
- package/payload/starter/_basic/docs/what-is-new.md +402 -0
- package/payload/starter/_basic/examples/action-button.htm +81 -0
- package/payload/starter/_basic/examples/action-tab-bar.htm +97 -0
- package/payload/starter/_basic/examples/app-bar.htm +140 -0
- package/payload/starter/_basic/examples/badgeV2.htm +68 -0
- package/payload/starter/_basic/examples/bottom-bar/grid.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/grids.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/home.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/homes.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon1.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon1s.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon2.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon2s.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon3.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon3s.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon4.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon4s.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/search.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/searchs.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/settings.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/settingss.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/tasks.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/taskss.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar-2.htm +187 -0
- package/payload/starter/_basic/examples/bottom-bar.htm +46 -0
- package/payload/starter/_basic/examples/breadcrumbs.htm +284 -0
- package/payload/starter/_basic/examples/chart-box.htm +287 -0
- package/payload/starter/_basic/examples/check-box-1.htm +220 -0
- package/payload/starter/_basic/examples/check-box-2.htm +212 -0
- package/payload/starter/_basic/examples/check-box-3.htm +179 -0
- package/payload/starter/_basic/examples/context-menu.htm +269 -0
- package/payload/starter/_basic/examples/currency-input-b.htm +71 -0
- package/payload/starter/_basic/examples/data-table-2.htm +67 -0
- package/payload/starter/_basic/examples/data-table-3.htm +72 -0
- package/payload/starter/_basic/examples/data-table-4.htm +144 -0
- package/payload/starter/_basic/examples/data-table-5.htm +152 -0
- package/payload/starter/_basic/examples/data-table.htm +178 -0
- package/payload/starter/_basic/examples/dialog-centered.htm +130 -0
- package/payload/starter/_basic/examples/dialog.htm +209 -0
- package/payload/starter/_basic/examples/email-input-b.htm +67 -0
- package/payload/starter/_basic/examples/filters.htm +115 -0
- package/payload/starter/_basic/examples/form-1.htm +123 -0
- package/payload/starter/_basic/examples/full-screen-select.htm +114 -0
- package/payload/starter/_basic/examples/gauge.htm +133 -0
- package/payload/starter/_basic/examples/hold-to-confirm-button.htm +144 -0
- package/payload/starter/_basic/examples/input-b-ex1.htm +132 -0
- package/payload/starter/_basic/examples/input-b-ex2.htm +136 -0
- package/payload/starter/_basic/examples/input-b-ex3-style.htm +113 -0
- package/payload/starter/_basic/examples/input-b-ex4-custom-unit.htm +112 -0
- package/payload/starter/_basic/examples/input-b-ex5-warning-icon.htm +80 -0
- package/payload/starter/_basic/examples/input-b-ex6-dark.htm +108 -0
- package/payload/starter/_basic/examples/input-b-ex7-ozden.htm +153 -0
- package/payload/starter/_basic/examples/item-list-2.htm +253 -0
- package/payload/starter/_basic/examples/item-list.htm +176 -0
- package/payload/starter/_basic/examples/label-editor.htm +196 -0
- package/payload/starter/_basic/examples/left-menu.htm +81 -0
- package/payload/starter/_basic/examples/line-progress-bar.htm +145 -0
- package/payload/starter/_basic/examples/loading-screen.htm +217 -0
- package/payload/starter/_basic/examples/login-page-dark-v2.htm +269 -0
- package/payload/starter/_basic/examples/login-page-v2.htm +269 -0
- package/payload/starter/_basic/examples/mini-graph-box.htm +229 -0
- package/payload/starter/_basic/examples/notice.htm +79 -0
- package/payload/starter/_basic/examples/number-input-b.htm +68 -0
- package/payload/starter/_basic/examples/numeric-keyboard.htm +100 -0
- package/payload/starter/_basic/examples/page-control.htm +262 -0
- package/payload/starter/_basic/examples/page-header.htm +117 -0
- package/payload/starter/_basic/examples/password-input-b.htm +70 -0
- package/payload/starter/_basic/examples/period-bar.htm +94 -0
- package/payload/starter/_basic/examples/phone-input-b-select-country.htm +298 -0
- package/payload/starter/_basic/examples/phone-input-b.htm +72 -0
- package/payload/starter/_basic/examples/progress-bar-ozden.htm +168 -0
- package/payload/starter/_basic/examples/progress-bar.htm +296 -0
- package/payload/starter/_basic/examples/property-panel.htm +216 -0
- package/payload/starter/_basic/examples/radio-button-1.htm +264 -0
- package/payload/starter/_basic/examples/radio-button-2.htm +256 -0
- package/payload/starter/_basic/examples/radio-button-3.htm +168 -0
- package/payload/starter/_basic/examples/rich-text-editor.htm +228 -0
- package/payload/starter/_basic/examples/scrolling-text.htm +75 -0
- package/payload/starter/_basic/examples/search-input-v2-ozden.htm +128 -0
- package/payload/starter/_basic/examples/search-input-v2-place.htm +80 -0
- package/payload/starter/_basic/examples/search-input-v2.htm +65 -0
- package/payload/starter/_basic/examples/search-results.htm +193 -0
- package/payload/starter/_basic/examples/select-box-ozden-item.htm +114 -0
- package/payload/starter/_basic/examples/select-box-ozden-text.htm +64 -0
- package/payload/starter/_basic/examples/select-box.htm +254 -0
- package/payload/starter/_basic/examples/select-color.htm +215 -0
- package/payload/starter/_basic/examples/select-date.htm +244 -0
- package/payload/starter/_basic/examples/select-file.htm +268 -0
- package/payload/starter/_basic/examples/select-time.htm +249 -0
- package/payload/starter/_basic/examples/settings-row.htm +193 -0
- package/payload/starter/_basic/examples/side-panel-2.htm +270 -0
- package/payload/starter/_basic/examples/side-panel.htm +219 -0
- package/payload/starter/_basic/examples/slider-field.htm +223 -0
- package/payload/starter/_basic/examples/slider.htm +180 -0
- package/payload/starter/_basic/examples/smart-button-2.htm +220 -0
- package/payload/starter/_basic/examples/smart-button-3-ozden.htm +320 -0
- package/payload/starter/_basic/examples/smart-button-4-dark.htm +102 -0
- package/payload/starter/_basic/examples/smart-button-5-features.htm +205 -0
- package/payload/starter/_basic/examples/smart-button.htm +252 -0
- package/payload/starter/_basic/examples/smart-table-1.htm +142 -0
- package/payload/starter/_basic/examples/smart-table-2.htm +191 -0
- package/payload/starter/_basic/examples/smart-table-3.htm +359 -0
- package/payload/starter/_basic/examples/smart-table-4.htm +158 -0
- package/payload/starter/_basic/examples/sortable-list.htm +250 -0
- package/payload/starter/_basic/examples/spark-line-box.htm +285 -0
- package/payload/starter/_basic/examples/stepper-2.htm +172 -0
- package/payload/starter/_basic/examples/stepper.htm +255 -0
- package/payload/starter/_basic/examples/tabs-2/coffee.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i1-white.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i1.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i2-white.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i2.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i3-white.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i3.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i4-white.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i4.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i5-white.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i5.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/lamp-on.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/lamp.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/search.svg +2 -0
- package/payload/starter/_basic/examples/tabs-2.htm +188 -0
- package/payload/starter/_basic/examples/tabs.htm +300 -0
- package/payload/starter/_basic/examples/tag-input.htm +242 -0
- package/payload/starter/_basic/examples/tap-effect.htm +100 -0
- package/payload/starter/_basic/examples/textarea-b.htm +76 -0
- package/payload/starter/_basic/examples/time-line.htm +226 -0
- package/payload/starter/_basic/examples/tiny-select.htm +86 -0
- package/payload/starter/_basic/examples/tiny-table.htm +109 -0
- package/payload/starter/_basic/examples/toast.htm +262 -0
- package/payload/starter/_basic/examples/toggle-2.htm +163 -0
- package/payload/starter/_basic/examples/toggle-3.htm +218 -0
- package/payload/starter/_basic/examples/toggle.htm +93 -0
- package/payload/starter/_basic/examples/tooltip-2.htm +177 -0
- package/payload/starter/_basic/examples/tooltip-3.htm +212 -0
- package/payload/starter/_basic/examples/tooltip.htm +124 -0
- package/payload/starter/_basic/examples/tree-view.htm +285 -0
- package/payload/starter/_basic/examples/ui-effects.htm +463 -0
- package/payload/starter/_basic/examples/ui-standards.htm +261 -0
- package/payload/starter/_basic/examples/unfinished-login-page-dark-supabase.htm +221 -0
- package/payload/starter/_basic/examples/unfinished-login-page-supabase.htm +221 -0
- package/payload/starter/_basic/examples/url-input-b.htm +85 -0
- package/payload/starter/_basic/examples/web-view.htm +241 -0
- package/payload/starter/_basic/min/action-button.min.js +2 -0
- package/payload/starter/_basic/min/action-tab-bar.min.js +2 -0
- package/payload/starter/_basic/min/app-bar.min.js +2 -0
- package/payload/starter/_basic/min/badge-v2.min.js +2 -0
- package/payload/starter/_basic/min/bottom-bar.min.js +2 -0
- package/payload/starter/_basic/min/breadcrumbs.min.js +2 -0
- package/payload/starter/_basic/min/chart-box.min.js +2 -0
- package/payload/starter/_basic/min/check-box.min.js +2 -0
- package/payload/starter/_basic/min/context-menu.min.js +2 -0
- package/payload/starter/_basic/min/currency-input-b.min.js +2 -0
- package/payload/starter/_basic/min/data-table.min.js +2 -0
- package/payload/starter/_basic/min/dialog.min.js +2 -0
- package/payload/starter/_basic/min/email-input-b.min.js +2 -0
- package/payload/starter/_basic/min/filters.min.js +2 -0
- package/payload/starter/_basic/min/form.min.js +2 -0
- package/payload/starter/_basic/min/full-screen-select.min.js +2 -0
- package/payload/starter/_basic/min/gauge.min.js +2 -0
- package/payload/starter/_basic/min/hold-to-confirm-button.min.js +2 -0
- package/payload/starter/_basic/min/input-b.min.js +2 -0
- package/payload/starter/_basic/min/item-list.min.js +2 -0
- package/payload/starter/_basic/min/label-editor.min.js +2 -0
- package/payload/starter/_basic/min/left-menu.min.js +2 -0
- package/payload/starter/_basic/min/line-progress-bar.min.js +2 -0
- package/payload/starter/_basic/min/loading-screen.min.js +2 -0
- package/payload/starter/_basic/min/login-page-v2.min.js +2 -0
- package/payload/starter/_basic/min/mini-graph-box.min.js +2 -0
- package/payload/starter/_basic/min/notice.min.js +2 -0
- package/payload/starter/_basic/min/number-input-b.min.js +2 -0
- package/payload/starter/_basic/min/numeric-keyboard.min.js +2 -0
- package/payload/starter/_basic/min/page-control.min.js +2 -0
- package/payload/starter/_basic/min/page-header.min.js +2 -0
- package/payload/starter/_basic/min/password-input-b.min.js +2 -0
- package/payload/starter/_basic/min/period-bar.min.js +2 -0
- package/payload/starter/_basic/min/phone-input-b.min.js +2 -0
- package/payload/starter/_basic/min/progress-bar.min.js +2 -0
- package/payload/starter/_basic/min/property-panel.min.js +2 -0
- package/payload/starter/_basic/min/radio-button.min.js +2 -0
- package/payload/starter/_basic/min/rich-text-editor.min.js +2 -0
- package/payload/starter/_basic/min/scrolling-text.min.js +2 -0
- package/payload/starter/_basic/min/search-input-v2.min.js +2 -0
- package/payload/starter/_basic/min/search-results.min.js +2 -0
- package/payload/starter/_basic/min/select-box.min.js +2 -0
- package/payload/starter/_basic/min/select-color.min.js +2 -0
- package/payload/starter/_basic/min/select-date.min.js +2 -0
- package/payload/starter/_basic/min/select-file.min.js +2 -0
- package/payload/starter/_basic/min/select-time.min.js +2 -0
- package/payload/starter/_basic/min/settings-row.min.js +2 -0
- package/payload/starter/_basic/min/side-panel.min.js +2 -0
- package/payload/starter/_basic/min/slider-field.min.js +2 -0
- package/payload/starter/_basic/min/slider.min.js +2 -0
- package/payload/starter/_basic/min/smart-button.min.js +2 -0
- package/payload/starter/_basic/min/smart-table.min.js +2 -0
- package/payload/starter/_basic/min/sortable-list.min.js +2 -0
- package/payload/starter/_basic/min/spark-line-box.min.js +2 -0
- package/payload/starter/_basic/min/stepper.min.js +2 -0
- package/payload/starter/_basic/min/tabs.min.js +2 -0
- package/payload/starter/_basic/min/tag-input.min.js +2 -0
- package/payload/starter/_basic/min/tap-effect.min.js +2 -0
- package/payload/starter/_basic/min/textarea-b.min.js +2 -0
- package/payload/starter/_basic/min/time-line.min.js +2 -0
- package/payload/starter/_basic/min/tiny-select.min.js +2 -0
- package/payload/starter/_basic/min/tiny-table.min.js +2 -0
- package/payload/starter/_basic/min/toast.min.js +2 -0
- package/payload/starter/_basic/min/toggle.min.js +2 -0
- package/payload/starter/_basic/min/tooltip.min.js +2 -0
- package/payload/starter/_basic/min/tree-view.min.js +2 -0
- package/payload/starter/_basic/min/ui-effects.min.js +2 -0
- package/payload/starter/_basic/min/ui-standards.min.js +2 -0
- package/payload/starter/_basic/min/url-input-b.min.js +2 -0
- package/payload/starter/_basic/min/web-view.min.js +2 -0
- package/payload/starter/_basic/tools/build.js +175 -0
- package/payload/starter/_basic/tools/check.js +318 -0
- package/payload/starter/app/app.js +27 -0
- package/payload/starter/assets/.gitkeep +0 -0
- package/payload/starter/gitignore +3 -0
- package/payload/starter/index.htm +23 -0
- package/payload/templates/booking/TEMPLATE.md +77 -0
- package/payload/templates/booking/app/app.js +722 -0
- package/payload/templates/booking/app/settings.js +52 -0
- package/payload/templates/booking/app/store.js +265 -0
- package/payload/templates/booking/app/texts.js +148 -0
- package/payload/templates/booking/assets/app-icon.svg +1 -0
- package/payload/templates/booking/assets/tabs/account.svg +1 -0
- package/payload/templates/booking/assets/tabs/appointments.svg +1 -0
- package/payload/templates/booking/assets/tabs/home.svg +1 -0
- package/payload/templates/booking/assets/tabs/services.svg +1 -0
- package/payload/templates/booking/components/booking-ui.js +252 -0
- package/payload/templates/booking/index.htm +53 -0
- package/payload/templates/booking/pages/account.js +124 -0
- package/payload/templates/booking/pages/appointments.js +141 -0
- package/payload/templates/booking/pages/book.js +231 -0
- package/payload/templates/booking/pages/home.js +99 -0
- package/payload/templates/booking/pages/services.js +79 -0
- package/payload/templates/classic/TEMPLATE.md +104 -0
- package/payload/templates/classic/app/app.js +779 -0
- package/payload/templates/classic/app/settings.js +77 -0
- package/payload/templates/classic/assets/_attribute.txt +37 -0
- package/payload/templates/classic/assets/cards/dill.png +0 -0
- package/payload/templates/classic/assets/cards/fennel.png +0 -0
- package/payload/templates/classic/assets/cards/juniper.png +0 -0
- package/payload/templates/classic/assets/cards/olives.png +0 -0
- package/payload/templates/classic/assets/cards/oregano.png +0 -0
- package/payload/templates/classic/assets/cards/pepper.png +0 -0
- package/payload/templates/classic/assets/cards/rosehip.png +0 -0
- package/payload/templates/classic/assets/categories/cappuccino.png +0 -0
- package/payload/templates/classic/assets/categories/chocolate-milk.png +0 -0
- package/payload/templates/classic/assets/categories/coffee-cup.png +0 -0
- package/payload/templates/classic/assets/categories/coffee.png +0 -0
- package/payload/templates/classic/assets/categories/frappe.png +0 -0
- package/payload/templates/classic/assets/categories/iced-caffee.png +0 -0
- package/payload/templates/classic/assets/categories/milkshake.png +0 -0
- package/payload/templates/classic/assets/categories/orange-juice.png +0 -0
- package/payload/templates/classic/assets/categories/tea.png +0 -0
- package/payload/templates/classic/assets/example-tabs/coffee.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i1-white.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i1.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i2-white.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i2.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i3-white.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i3.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i4-white.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i4.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i5-white.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i5.png +0 -0
- package/payload/templates/classic/assets/example-tabs/lamp-on.png +0 -0
- package/payload/templates/classic/assets/example-tabs/lamp.png +0 -0
- package/payload/templates/classic/assets/example-tabs/search.svg +2 -0
- package/payload/templates/classic/assets/files/ai.png +0 -0
- package/payload/templates/classic/assets/files/doc.png +0 -0
- package/payload/templates/classic/assets/files/folder.png +0 -0
- package/payload/templates/classic/assets/files/js.png +0 -0
- package/payload/templates/classic/assets/files/pdf.png +0 -0
- package/payload/templates/classic/assets/files/txt.png +0 -0
- package/payload/templates/classic/assets/files/xls.png +0 -0
- package/payload/templates/classic/assets/icons/arrow-drop.svg +3 -0
- package/payload/templates/classic/assets/icons/arrow-rise.svg +3 -0
- package/payload/templates/classic/assets/icons/download.svg +18 -0
- package/payload/templates/classic/assets/icons/lamp-on.png +0 -0
- package/payload/templates/classic/assets/icons/lamp.png +0 -0
- package/payload/templates/classic/assets/icons/lock-small.png +0 -0
- package/payload/templates/classic/assets/icons/lock.png +0 -0
- package/payload/templates/classic/assets/icons/logo.png +0 -0
- package/payload/templates/classic/assets/icons/trash-red.svg +2 -0
- package/payload/templates/classic/assets/icons/trash.svg +2 -0
- package/payload/templates/classic/assets/menu/t1.png +0 -0
- package/payload/templates/classic/assets/menu/t10.png +0 -0
- package/payload/templates/classic/assets/menu/t11.png +0 -0
- package/payload/templates/classic/assets/menu/t2.png +0 -0
- package/payload/templates/classic/assets/menu/t3.png +0 -0
- package/payload/templates/classic/assets/menu/t4.png +0 -0
- package/payload/templates/classic/assets/menu/t5.png +0 -0
- package/payload/templates/classic/assets/menu/t6.png +0 -0
- package/payload/templates/classic/assets/menu/t7.png +0 -0
- package/payload/templates/classic/assets/menu/t8.png +0 -0
- package/payload/templates/classic/assets/menu/t9.png +0 -0
- package/payload/templates/classic/assets/products/brokoli.png +0 -0
- package/payload/templates/classic/assets/products/cilek.png +0 -0
- package/payload/templates/classic/assets/products/domates.png +0 -0
- package/payload/templates/classic/assets/products/elma.png +0 -0
- package/payload/templates/classic/assets/products/havuc.png +0 -0
- package/payload/templates/classic/assets/products/karpuz.png +0 -0
- package/payload/templates/classic/assets/products/limon.png +0 -0
- package/payload/templates/classic/assets/products/muz.png +0 -0
- package/payload/templates/classic/assets/products/nar.png +0 -0
- package/payload/templates/classic/assets/products/patlican.png +0 -0
- package/payload/templates/classic/assets/products/yabanmersini.png +0 -0
- package/payload/templates/classic/assets/products/yesilbiber.png +0 -0
- package/payload/templates/classic/assets/tab-bar/settings.png +0 -0
- package/payload/templates/classic/assets/tab-bar/status.png +0 -0
- package/payload/templates/classic/assets/tab-bar/transactions.png +0 -0
- package/payload/templates/classic/assets/tabs/grid.png +0 -0
- package/payload/templates/classic/assets/tabs/grids.png +0 -0
- package/payload/templates/classic/assets/tabs/home.png +0 -0
- package/payload/templates/classic/assets/tabs/homes.png +0 -0
- package/payload/templates/classic/assets/tabs/search.png +0 -0
- package/payload/templates/classic/assets/tabs/searchs.png +0 -0
- package/payload/templates/classic/assets/tabs/settings.png +0 -0
- package/payload/templates/classic/assets/tabs/settingss.png +0 -0
- package/payload/templates/classic/assets/tabs/tasks.png +0 -0
- package/payload/templates/classic/assets/tabs/taskss.png +0 -0
- package/payload/templates/classic/html/privacy.htm +58 -0
- package/payload/templates/classic/index.htm +70 -0
- package/payload/templates/classic/pages/dialogs.js +205 -0
- package/payload/templates/classic/pages/example.js +296 -0
- package/payload/templates/classic/pages/examples.js +148 -0
- package/payload/templates/classic/pages/home.js +268 -0
- package/payload/templates/classic/pages/info-pages.js +95 -0
- package/payload/templates/classic/pages/lock.js +70 -0
- package/payload/templates/classic/pages/search.js +153 -0
- package/payload/templates/classic/pages/settings.js +184 -0
- package/payload/templates/classic/pages/tasks.js +221 -0
- package/payload/templates/classic/pages/template-pages.js +240 -0
- package/payload/templates/coffee-shop/TEMPLATE.md +63 -0
- package/payload/templates/coffee-shop/app/app.js +713 -0
- package/payload/templates/coffee-shop/app/settings.js +20 -0
- package/payload/templates/coffee-shop/app/store.js +52 -0
- package/payload/templates/coffee-shop/assets/cappuccino.png +0 -0
- package/payload/templates/coffee-shop/assets/chocolate-milk.png +0 -0
- package/payload/templates/coffee-shop/assets/coffee-art/cocoa.svg +1 -0
- package/payload/templates/coffee-shop/assets/coffee-art/filter.svg +1 -0
- package/payload/templates/coffee-shop/assets/coffee-art/frappe.svg +1 -0
- package/payload/templates/coffee-shop/assets/coffee-art/iced.svg +1 -0
- package/payload/templates/coffee-shop/assets/coffee-art/latte.svg +1 -0
- package/payload/templates/coffee-shop/assets/coffee-art/tea.svg +1 -0
- package/payload/templates/coffee-shop/assets/coffee.png +0 -0
- package/payload/templates/coffee-shop/assets/credits.txt +41 -0
- package/payload/templates/coffee-shop/assets/fonts/OFL.txt +93 -0
- package/payload/templates/coffee-shop/assets/fonts/gelasio-OFL.txt +93 -0
- package/payload/templates/coffee-shop/assets/fonts/gelasio.ttf +0 -0
- package/payload/templates/coffee-shop/assets/frappe.png +0 -0
- package/payload/templates/coffee-shop/assets/iced-caffee.png +0 -0
- package/payload/templates/coffee-shop/assets/tabs/cart.svg +1 -0
- package/payload/templates/coffee-shop/assets/tabs/home.svg +1 -0
- package/payload/templates/coffee-shop/assets/tabs/menu.svg +1 -0
- package/payload/templates/coffee-shop/assets/tabs/rewards.svg +1 -0
- package/payload/templates/coffee-shop/assets/tea.png +0 -0
- package/payload/templates/coffee-shop/components/coffee-ui.js +246 -0
- package/payload/templates/coffee-shop/index.htm +55 -0
- package/payload/templates/coffee-shop/pages/cart.js +82 -0
- package/payload/templates/coffee-shop/pages/drink.js +74 -0
- package/payload/templates/coffee-shop/pages/home.js +54 -0
- package/payload/templates/coffee-shop/pages/menu.js +53 -0
- package/payload/templates/coffee-shop/pages/rewards.js +38 -0
- package/payload/templates/forms/TEMPLATE.md +12 -0
- package/payload/templates/forms/app/app.js +30 -0
- package/payload/templates/forms/appointment-form.htm +969 -0
- package/payload/templates/forms/assets/error.png +0 -0
- package/payload/templates/forms/assets/logo.png +0 -0
- package/payload/templates/forms/assets/logo2.png +0 -0
- package/payload/templates/forms/assets/mail.png +0 -0
- package/payload/templates/forms/assets/success.png +0 -0
- package/payload/templates/forms/contact-form-iframe.htm +24 -0
- package/payload/templates/forms/contact-form-table.sql +11 -0
- package/payload/templates/forms/contact-form-to-mail.htm +358 -0
- package/payload/templates/forms/contact-form-to-supabase.htm +396 -0
- package/payload/templates/forms/dark-contact-form.htm +623 -0
- package/payload/templates/forms/event-registration-form.htm +1056 -0
- package/payload/templates/forms/feedback-form.htm +813 -0
- package/payload/templates/forms/order-form.htm +1187 -0
- package/payload/templates/forms/recruitment-form.htm +698 -0
- package/payload/templates/forms/service/PHPMailer/Exception.php +40 -0
- package/payload/templates/forms/service/PHPMailer/LICENSE +502 -0
- package/payload/templates/forms/service/PHPMailer/PHPMailer.php +5586 -0
- package/payload/templates/forms/service/PHPMailer/SMTP.php +1617 -0
- package/payload/templates/forms/service/readme.md +162 -0
- package/payload/templates/forms/service/send-form-mail.php +941 -0
- package/payload/templates/forms/support-ticket-form.htm +908 -0
- package/payload/templates/panel/TEMPLATE.md +16 -0
- package/payload/templates/panel/assets/_Material Symbols & Icons - Google Fonts.webloc +8 -0
- package/payload/templates/panel/assets/arrow_down.png +0 -0
- package/payload/templates/panel/assets/close.png +0 -0
- package/payload/templates/panel/assets/left-menu/bolt.png +0 -0
- package/payload/templates/panel/assets/left-menu/brick.png +0 -0
- package/payload/templates/panel/assets/left-menu/code.png +0 -0
- package/payload/templates/panel/assets/left-menu/dashboard.png +0 -0
- package/payload/templates/panel/assets/left-menu/data-table.png +0 -0
- package/payload/templates/panel/assets/left-menu/extension.png +0 -0
- package/payload/templates/panel/assets/left-menu/home.png +0 -0
- package/payload/templates/panel/assets/left-menu/reports.png +0 -0
- package/payload/templates/panel/assets/left-menu/setting.png +0 -0
- package/payload/templates/panel/assets/left-menu/url.png +0 -0
- package/payload/templates/panel/assets/light.png +0 -0
- package/payload/templates/panel/assets/maybe.png +0 -0
- package/payload/templates/panel/assets/panel-icon.png +0 -0
- package/payload/templates/panel/assets/top-bar/add.png +0 -0
- package/payload/templates/panel/assets/top-bar/add.svg +1 -0
- package/payload/templates/panel/assets/top-bar/apps.png +0 -0
- package/payload/templates/panel/assets/top-bar/apps.svg +1 -0
- package/payload/templates/panel/assets/top-bar/arrow-down.svg +1 -0
- package/payload/templates/panel/assets/top-bar/bell.svg +1 -0
- package/payload/templates/panel/assets/top-bar/bookmark.png +0 -0
- package/payload/templates/panel/assets/top-bar/bookmark.svg +1 -0
- package/payload/templates/panel/assets/top-bar/cancel.png +0 -0
- package/payload/templates/panel/assets/top-bar/close.svg +1 -0
- package/payload/templates/panel/assets/top-bar/comment.png +0 -0
- package/payload/templates/panel/assets/top-bar/filter.png +0 -0
- package/payload/templates/panel/assets/top-bar/keyboard.svg +1 -0
- package/payload/templates/panel/assets/top-bar/notification.png +0 -0
- package/payload/templates/panel/assets/top-bar/search.png +0 -0
- package/payload/templates/panel/assets/top-bar/search.svg +1 -0
- package/payload/templates/panel/assets/top-bar/user.png +0 -0
- package/payload/templates/panel/assets/top-bar/user.svg +1 -0
- package/payload/templates/panel/assets/warning.png +0 -0
- package/payload/templates/panel/common/bridge.js +1 -0
- package/payload/templates/panel/common/bridge.min.js +0 -0
- package/payload/templates/panel/common/components.js +12 -0
- package/payload/templates/panel/common/full-view.js +107 -0
- package/payload/templates/panel/common/full-view.min.js +1 -0
- package/payload/templates/panel/common/main-view.js +53 -0
- package/payload/templates/panel/common/main-view.min.js +1 -0
- package/payload/templates/panel/common/module-page.js +46 -0
- package/payload/templates/panel/common/module-page.min.js +1 -0
- package/payload/templates/panel/common/right-view.js +77 -0
- package/payload/templates/panel/common/right-view.min.js +1 -0
- package/payload/templates/panel/common/start-page.js +31 -0
- package/payload/templates/panel/common/start-page.min.js +1 -0
- package/payload/templates/panel/common/theme.js +491 -0
- package/payload/templates/panel/common/top-bar-v25-07-29-1.js +330 -0
- package/payload/templates/panel/common/top-bar-v25-07-29-2.js +265 -0
- package/payload/templates/panel/common/top-bar.js +855 -0
- package/payload/templates/panel/common/top-bar.min.js +1 -0
- package/payload/templates/panel/common/ui-standards.css +77 -0
- package/payload/templates/panel/common/ui-standards.js +133 -0
- package/payload/templates/panel/common/ui-standards.min.css +1 -0
- package/payload/templates/panel/common/ui-standards.min.js +1 -0
- package/payload/templates/panel/index.htm +642 -0
- package/payload/templates/panel/managers/database.js +1 -0
- package/payload/templates/panel/managers/database.min.js +1 -0
- package/payload/templates/panel/managers/login.js +2 -0
- package/payload/templates/panel/managers/login.min.js +1 -0
- package/payload/templates/panel/module1/empty-main.htm +26 -0
- package/payload/templates/panel/module10/greenhouse.htm +1361 -0
- package/payload/templates/panel/module11/arduino-projects.htm +1124 -0
- package/payload/templates/panel/module2/empty-full.htm +26 -0
- package/payload/templates/panel/module3/empty-right.htm +26 -0
- package/payload/templates/panel/module4/empty-main-topbar.htm +26 -0
- package/payload/templates/panel/module5/empty-right-topbar.htm +26 -0
- package/payload/templates/panel/module6/energy-hub.htm +1507 -0
- package/payload/templates/panel/module7/3d-printers.htm +1258 -0
- package/payload/templates/panel/module8/cold-rooms.htm +1250 -0
- package/payload/templates/panel/module9/elevator-fleet.htm +1488 -0
- package/payload/templates/panel/pages/_page-template.js +36 -0
- package/payload/templates/panel/pages/_page-template.min.js +1 -0
- package/payload/templates/panel/pages/activity.js +1072 -0
- package/payload/templates/panel/pages/contents.js +1555 -0
- package/payload/templates/panel/pages/contents.min.js +1 -0
- package/payload/templates/panel/pages/customers.js +1171 -0
- package/payload/templates/panel/pages/edit-user.js +381 -0
- package/payload/templates/panel/pages/edit-user.min.js +1 -0
- package/payload/templates/panel/pages/edit-users-table.min.js +1 -0
- package/payload/templates/panel/pages/home.js +637 -0
- package/payload/templates/panel/pages/home.min.js +1 -0
- package/payload/templates/panel/pages/media.js +1538 -0
- package/payload/templates/panel/pages/notifications.js +542 -0
- package/payload/templates/panel/pages/notifications.min.js +1 -0
- package/payload/templates/panel/pages/orders.js +1147 -0
- package/payload/templates/panel/pages/products.js +1281 -0
- package/payload/templates/panel/pages/reports.js +1138 -0
- package/payload/templates/panel/pages/reports.min.js +1 -0
- package/payload/templates/panel/pages/roles.js +1096 -0
- package/payload/templates/panel/pages/settings.js +1462 -0
- package/payload/templates/panel/pages/settings.min.js +1 -0
- package/payload/templates/panel/pages/user-actions.js +456 -0
- package/payload/templates/panel/pages/user-actions.min.js +2 -0
- package/payload/templates/panel/pages/user-list.js +1113 -0
- package/payload/templates/panel/pages/users.js +334 -0
- package/payload/templates/panel/pages/users.min.js +1 -0
- package/payload/templates/shop/TEMPLATE.md +69 -0
- package/payload/templates/shop/app/app.js +727 -0
- package/payload/templates/shop/app/art.js +89 -0
- package/payload/templates/shop/app/settings.js +45 -0
- package/payload/templates/shop/app/store.js +239 -0
- package/payload/templates/shop/app/texts.js +232 -0
- package/payload/templates/shop/assets/app-icon.svg +1 -0
- package/payload/templates/shop/assets/tabs/account.svg +1 -0
- package/payload/templates/shop/assets/tabs/cart.svg +1 -0
- package/payload/templates/shop/assets/tabs/home.svg +1 -0
- package/payload/templates/shop/assets/tabs/shop.svg +1 -0
- package/payload/templates/shop/components/shop-ui.js +343 -0
- package/payload/templates/shop/index.htm +57 -0
- package/payload/templates/shop/pages/account.js +190 -0
- package/payload/templates/shop/pages/cart.js +116 -0
- package/payload/templates/shop/pages/checkout.js +134 -0
- package/payload/templates/shop/pages/favorites.js +37 -0
- package/payload/templates/shop/pages/home.js +86 -0
- package/payload/templates/shop/pages/orders.js +132 -0
- package/payload/templates/shop/pages/product.js +168 -0
- package/payload/templates/shop/pages/shop.js +113 -0
- package/payload/templates/starter/TEMPLATE.md +107 -0
- package/payload/templates/starter/app/app.js +660 -0
- package/payload/templates/starter/app/settings.js +57 -0
- package/payload/templates/starter/assets/app-icon.svg +5 -0
- package/payload/templates/starter/assets/products/brokoli.png +0 -0
- package/payload/templates/starter/assets/products/cilek.png +0 -0
- package/payload/templates/starter/assets/products/domates.png +0 -0
- package/payload/templates/starter/assets/products/elma.png +0 -0
- package/payload/templates/starter/assets/products/havuc.png +0 -0
- package/payload/templates/starter/assets/products/karpuz.png +0 -0
- package/payload/templates/starter/assets/products/limon.png +0 -0
- package/payload/templates/starter/assets/products/muz.png +0 -0
- package/payload/templates/starter/assets/products/nar.png +0 -0
- package/payload/templates/starter/assets/products/patlican.png +0 -0
- package/payload/templates/starter/assets/products/yabanmersini.png +0 -0
- package/payload/templates/starter/assets/products/yesilbiber.png +0 -0
- package/payload/templates/starter/assets/tabs/grid.png +0 -0
- package/payload/templates/starter/assets/tabs/grids.png +0 -0
- package/payload/templates/starter/assets/tabs/home.png +0 -0
- package/payload/templates/starter/assets/tabs/homes.png +0 -0
- package/payload/templates/starter/assets/tabs/settings.png +0 -0
- package/payload/templates/starter/assets/tabs/settingss.png +0 -0
- package/payload/templates/starter/assets/tabs/tasks.png +0 -0
- package/payload/templates/starter/assets/tabs/taskss.png +0 -0
- package/payload/templates/starter/html/about.htm +54 -0
- package/payload/templates/starter/index.htm +57 -0
- package/payload/templates/starter/pages/about.js +23 -0
- package/payload/templates/starter/pages/home.js +81 -0
- package/payload/templates/starter/pages/product.js +45 -0
- package/payload/templates/starter/pages/products.js +61 -0
- package/payload/templates/starter/pages/settings.js +103 -0
- package/payload/templates/starter/pages/tasks.js +187 -0
- package/payload/templates/starter/pages/website.js +29 -0
|
@@ -0,0 +1,1172 @@
|
|
|
1
|
+
/* Bismillah */
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
|
|
5
|
+
SortableList - v26.10
|
|
6
|
+
|
|
7
|
+
2026-10-28: Drag preview escapes scroll clipping; document pointer events prevent stuck rows.
|
|
8
|
+
|
|
9
|
+
UI COMPONENT TEMPLATE
|
|
10
|
+
- A list whose order can be changed. (Sıralama nesnesi: verilen itemlerin sırasını düzenleyebildiğin liste.)
|
|
11
|
+
- Items: strings or objects { key, text, desc, locked }. getItems() / getKeys() give the new order.
|
|
12
|
+
- Mouse and touch: drag the handle (dragBy: "handle", default) or the whole row (dragBy: "row").
|
|
13
|
+
The other rows slide out of the way. Near the top / bottom edge the list scrolls by itself.
|
|
14
|
+
- Keyboard: ArrowUp / ArrowDown move the focus. Space or Enter grabs the row, the arrow keys move it,
|
|
15
|
+
Space / Enter drops it, Escape puts it back. Alt (or Ctrl) + ArrowUp / ArrowDown moves the row at once.
|
|
16
|
+
Screen readers hear the moves (aria-live). Texts are in "texts" (English by default).
|
|
17
|
+
- showButtons: 1 -> Up / down buttons on every row. removable: 1 -> A remove (x) button (and the Delete key).
|
|
18
|
+
- locked: 1 on an item -> It does not move and the other rows can not pass it (Ex: a fixed first row).
|
|
19
|
+
- showNumbers: 1 -> The position number (1, 2, 3...) at the left of the row.
|
|
20
|
+
- createItemView(item, index, self) -> Draw your own row content (instead of the text and the description).
|
|
21
|
+
- height: "auto" -> The list grows with its rows. Otherwise it scrolls with basic/scroll-bar.js (if it is loaded).
|
|
22
|
+
- onChange(self, item, fromIndex, toIndex) is NOT called when the component is created,
|
|
23
|
+
by setItems() or by the silent: 1 parameter.
|
|
24
|
+
- Everything is drawn with code (no image files needed).
|
|
25
|
+
- Style packages: "classic" (default), "modern", "dark". Select with styleName. (SortableList.styles)
|
|
26
|
+
|
|
27
|
+
USAGE:
|
|
28
|
+
const list = SortableList({
|
|
29
|
+
width: 360,
|
|
30
|
+
height: 320,
|
|
31
|
+
items: ["Sales", "Stock", "Collections", "Branches"],
|
|
32
|
+
onChange: function (self, item, fromIndex, toIndex) { println(self.getKeys()); },
|
|
33
|
+
});
|
|
34
|
+
list.getItems(); // Items in the new order (the same objects / strings you gave)
|
|
35
|
+
list.moveItem(0, 2); // onChange is called
|
|
36
|
+
list.addItem({ key: "hr", text: "Staff", desc: "Headcount by department" });
|
|
37
|
+
list.removeItem(1);
|
|
38
|
+
SortableList({ items: [{ key: "home", text: "Home", locked: 1 }, "Orders", "Reports"], showButtons: 1, removable: 1 });
|
|
39
|
+
SortableList({ height: "auto", dragBy: "row", showNumbers: 0, styleName: "modern" });
|
|
40
|
+
|
|
41
|
+
Started Date: September 2026
|
|
42
|
+
Developer: Bugra Ozden
|
|
43
|
+
Email: bugra.ozden@gmail.com
|
|
44
|
+
Webpage: https://bug7a.github.io/js-components/
|
|
45
|
+
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
"use strict";
|
|
49
|
+
|
|
50
|
+
// Default values:
|
|
51
|
+
const SortableListDefaults = {
|
|
52
|
+
key: "0",
|
|
53
|
+
width: 340,
|
|
54
|
+
height: 320, // "auto": grows with the rows (no scrolling)
|
|
55
|
+
items: [], // Strings or { key, text, desc, locked }
|
|
56
|
+
dragBy: "handle", // "handle": drag by the grip at the left, "row": drag by the whole row (touch: the list then scrolls only by the scroll bar)
|
|
57
|
+
showHandle: 1, // The grip at the left. (dragBy: "row" can hide it)
|
|
58
|
+
showNumbers: 1, // Position numbers
|
|
59
|
+
showButtons: 0, // Up / down buttons
|
|
60
|
+
removable: 0, // A remove button and the Delete key
|
|
61
|
+
enabled: 1,
|
|
62
|
+
rowGap: 6, // Space between the rows
|
|
63
|
+
emptyText: "No items",
|
|
64
|
+
useScrollBar: 1, // basic/scroll-bar.js. 0: the scrollbar of the browser.
|
|
65
|
+
ariaLabel: "Sortable list",
|
|
66
|
+
createItemView: null, // function (item, index, self) { ... } Objects created here go into the content group of the row.
|
|
67
|
+
texts: {
|
|
68
|
+
handle: "Drag to reorder",
|
|
69
|
+
moveUp: "Move up",
|
|
70
|
+
moveDown: "Move down",
|
|
71
|
+
remove: "Remove",
|
|
72
|
+
locked: "Locked",
|
|
73
|
+
grabbed: "{text} grabbed. Position {position} of {count}. Use the arrow keys to move, Space to drop, Escape to cancel.",
|
|
74
|
+
moved: "{text}: position {position} of {count}.",
|
|
75
|
+
dropped: "{text} dropped at position {position} of {count}.",
|
|
76
|
+
canceled: "Move canceled. {text} is back at position {position}.",
|
|
77
|
+
removed: "{text} removed.",
|
|
78
|
+
},
|
|
79
|
+
onChange: function (self, item, fromIndex, toIndex) { }, // self.getItems() for the new order
|
|
80
|
+
onRemove: function (self, item, index) { },
|
|
81
|
+
onItemClick: function (self, item, index) { },
|
|
82
|
+
onDragStart: function (self, item, index) { },
|
|
83
|
+
onDragEnd: function (self, item, index) { }, // index: the new position
|
|
84
|
+
styleName: "classic", // "classic", "modern", "dark" or a name added to SortableList.styles
|
|
85
|
+
style: { // Classic style package (default)
|
|
86
|
+
box: {
|
|
87
|
+
color: "transparent",
|
|
88
|
+
border: 0,
|
|
89
|
+
borderColor: "transparent",
|
|
90
|
+
round: 0,
|
|
91
|
+
padding: 4, // Room around the rows (the shadow of the dragged row)
|
|
92
|
+
},
|
|
93
|
+
row: {
|
|
94
|
+
color: White(1),
|
|
95
|
+
hoverColor: "#FAFAF9",
|
|
96
|
+
border: 1,
|
|
97
|
+
borderColor: Black(0.12),
|
|
98
|
+
round: 8,
|
|
99
|
+
padding: [12, 10],
|
|
100
|
+
gap: 10, // Space between the parts of a row
|
|
101
|
+
minHeight: 48,
|
|
102
|
+
},
|
|
103
|
+
rowFocus: {
|
|
104
|
+
borderColor: "#141414",
|
|
105
|
+
},
|
|
106
|
+
rowDragging: {
|
|
107
|
+
color: White(1),
|
|
108
|
+
borderColor: Black(0.3),
|
|
109
|
+
boxShadow: "0px 10px 24px rgba(0, 0, 0, 0.16)",
|
|
110
|
+
scale: 1.02,
|
|
111
|
+
},
|
|
112
|
+
rowLocked: {
|
|
113
|
+
color: "#F4F4F3",
|
|
114
|
+
},
|
|
115
|
+
handle: {
|
|
116
|
+
iconColor: Black(0.3),
|
|
117
|
+
hoverColor: Black(0.65),
|
|
118
|
+
size: 18,
|
|
119
|
+
},
|
|
120
|
+
number: {
|
|
121
|
+
width: 22,
|
|
122
|
+
fontSize: 13,
|
|
123
|
+
textColor: Black(0.4),
|
|
124
|
+
fontFamily: "opensans-bold",
|
|
125
|
+
},
|
|
126
|
+
text: {
|
|
127
|
+
fontSize: 15,
|
|
128
|
+
textColor: "#141414",
|
|
129
|
+
fontFamily: "",
|
|
130
|
+
},
|
|
131
|
+
desc: {
|
|
132
|
+
fontSize: 12,
|
|
133
|
+
textColor: Black(0.45),
|
|
134
|
+
},
|
|
135
|
+
button: {
|
|
136
|
+
size: 28,
|
|
137
|
+
iconSize: 14,
|
|
138
|
+
iconColor: Black(0.55),
|
|
139
|
+
hoverColor: Black(0.06),
|
|
140
|
+
round: 6,
|
|
141
|
+
disabledOpacity: 0.25,
|
|
142
|
+
},
|
|
143
|
+
empty: {
|
|
144
|
+
fontSize: 14,
|
|
145
|
+
textColor: Black(0.4),
|
|
146
|
+
},
|
|
147
|
+
disabled: {
|
|
148
|
+
opacity: 0.5,
|
|
149
|
+
},
|
|
150
|
+
scrollBar: {
|
|
151
|
+
bar_color: "#9A9A98",
|
|
152
|
+
bar_mouseOverColor: "#6A6A68",
|
|
153
|
+
bar_width: 4,
|
|
154
|
+
bar_round: 3,
|
|
155
|
+
bar_opacity: 0.4,
|
|
156
|
+
bar_mouseOverOpacity: 0.9,
|
|
157
|
+
bar_padding: 2,
|
|
158
|
+
},
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
const SortableList = function (params = {}) {
|
|
163
|
+
|
|
164
|
+
// Merge style package: params.style > SortableList.styles[styleName] > SortableListDefaults.style (classic)
|
|
165
|
+
basic.applyStylePackage(params, SortableList.styles, SortableListDefaults);
|
|
166
|
+
|
|
167
|
+
// Merge params:
|
|
168
|
+
mergeIntoIfMissing(params, SortableListDefaults);
|
|
169
|
+
|
|
170
|
+
// Edit params, if needed:
|
|
171
|
+
const _bs = params.style.box;
|
|
172
|
+
params.color = _bs.color;
|
|
173
|
+
params.border = _bs.border;
|
|
174
|
+
params.borderColor = _bs.borderColor;
|
|
175
|
+
params.round = _bs.round;
|
|
176
|
+
const startItems = params.items;
|
|
177
|
+
params.items = []; // WHY: The default array must not be shared by the instances. box.items is set below.
|
|
178
|
+
const isAutoHeight = (String(params.height) === "auto"); // WHY: box.height reads 0 for "auto", so it is read here.
|
|
179
|
+
|
|
180
|
+
// BOX: Component container
|
|
181
|
+
let box = startObject(params);
|
|
182
|
+
|
|
183
|
+
// *** PRIVATE VARIABLES:
|
|
184
|
+
const _s = box.style;
|
|
185
|
+
const ROW_TRANSITION = "background-color 0.15s, border-color 0.15s, box-shadow 0.15s";
|
|
186
|
+
const SHIFT_TRANSITION = ROW_TRANSITION + ", transform 0.18s ease"; // The other rows slide out of the way.
|
|
187
|
+
const SETTLE_TRANSITION = ROW_TRANSITION + ", transform 0.16s ease"; // The dropped row slides to its place.
|
|
188
|
+
const SETTLE_DURATION = 170; // ms: a little longer than the transform of SETTLE_TRANSITION
|
|
189
|
+
const DRAG_THRESHOLD = 4; // px: a smaller move is still a click
|
|
190
|
+
const DRAGGED_Z_INDEX = 10;
|
|
191
|
+
const AUTO_SCROLL_EDGE = 48; // px: the edge (top / bottom) where the list scrolls by itself
|
|
192
|
+
const AUTO_SCROLL_SLOWDOWN = 3; // The speed is the depth into the edge divided by this.
|
|
193
|
+
const AUTO_SCROLL_MAX_SPEED = 18; // px per frame
|
|
194
|
+
let entries = []; // { item, key, text, desc, locked, row, ... } in the current order
|
|
195
|
+
let drag = null; // Pointer drag state
|
|
196
|
+
let grab = null; // Keyboard grab state: { entry, startIndex }
|
|
197
|
+
let isSettling = 0; // The dropped row is sliding to its place
|
|
198
|
+
let cancelSettle = null; // (box.after: stopped by remove())
|
|
199
|
+
let autoScrollFrame = null;
|
|
200
|
+
let isReordering = 0; // WHY: Moving a focused row in the DOM fires blur. It must not drop the grabbed row.
|
|
201
|
+
let suppressClick = 0; // WHY: The pointerup of a drag also fires a click on the row.
|
|
202
|
+
let dragPreview = null;
|
|
203
|
+
|
|
204
|
+
// *** PUBLIC VARIABLES:
|
|
205
|
+
// NOTE: Default values are also public variables. (box.items is the current order, the same as getItems())
|
|
206
|
+
|
|
207
|
+
// *** PRIVATE FUNCTIONS:
|
|
208
|
+
|
|
209
|
+
// "Sales" or { key, text, desc, locked } -> entry
|
|
210
|
+
const toEntry = function (item) {
|
|
211
|
+
const isObject = (item !== null && typeof item === "object");
|
|
212
|
+
const text = isObject ? String(item.text ?? item.key ?? "") : String(item ?? "");
|
|
213
|
+
return {
|
|
214
|
+
item: item,
|
|
215
|
+
key: isObject ? String(item.key ?? text) : text,
|
|
216
|
+
text: text,
|
|
217
|
+
desc: isObject ? String(item.desc ?? "") : "",
|
|
218
|
+
locked: (isObject && basic.isOn(item.locked)) ? 1 : 0,
|
|
219
|
+
row: null,
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
const indexOf = function (entry) {
|
|
224
|
+
return entries.indexOf(entry);
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
const syncItems = function () {
|
|
228
|
+
box.items = entries.map(function (e) { return e.item; });
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
const formatText = function (template, entry) {
|
|
232
|
+
return String(template || "")
|
|
233
|
+
.replace("{text}", entry.text)
|
|
234
|
+
.replace("{position}", String(indexOf(entry) + 1))
|
|
235
|
+
.replace("{count}", String(entries.length));
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
const announce = function (template, entry) {
|
|
239
|
+
box.lblLive.plainText = formatText(template, entry);
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
// Can the row at index move one step in direction (-1 / 1)?
|
|
243
|
+
const canMove = function (index, direction) {
|
|
244
|
+
const target = index + direction;
|
|
245
|
+
if (box.enabled != 1) return 0;
|
|
246
|
+
if (index < 0 || target < 0 || target >= entries.length) return 0;
|
|
247
|
+
return (!entries[index].locked && !entries[target].locked) ? 1 : 0;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
const getRowBorderColor = function (isDragged, isFocused) {
|
|
251
|
+
if (isDragged) return _s.rowDragging.borderColor;
|
|
252
|
+
if (isFocused) return _s.rowFocus.borderColor;
|
|
253
|
+
return _s.row.borderColor;
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
const paintRow = function (entry) {
|
|
257
|
+
const row = entry.row;
|
|
258
|
+
if (!row) return;
|
|
259
|
+
const isGrabbed = (grab && grab.entry === entry);
|
|
260
|
+
const isDragged = (drag && drag.active && drag.entry === entry) || isGrabbed;
|
|
261
|
+
const isFocused = (document.activeElement === row.elem);
|
|
262
|
+
let color = entry.locked ? _s.rowLocked.color : _s.row.color;
|
|
263
|
+
if (entry.isHover && !entry.locked && box.enabled == 1) color = _s.row.hoverColor;
|
|
264
|
+
if (isDragged) color = _s.rowDragging.color;
|
|
265
|
+
row.color = color;
|
|
266
|
+
row.borderColor = getRowBorderColor(isDragged, isFocused);
|
|
267
|
+
row.boxShadow = isDragged ? _s.rowDragging.boxShadow : "none";
|
|
268
|
+
row.zIndex = isDragged ? DRAGGED_Z_INDEX : "";
|
|
269
|
+
row.aria = { grabbed: isGrabbed ? "true" : "false" };
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
const paintButton = function (btn, isEnabled) {
|
|
273
|
+
if (!btn) return;
|
|
274
|
+
btn.css.opacity = isEnabled ? "1" : String(_s.button.disabledOpacity);
|
|
275
|
+
btn.cursor = isEnabled ? "pointer" : "default";
|
|
276
|
+
btn.aria = { disabled: isEnabled ? "false" : "true" };
|
|
277
|
+
if (!isEnabled) btn.color = "transparent";
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
// Numbers, aria and the button states after a change of the order.
|
|
281
|
+
const updateRows = function () {
|
|
282
|
+
entries.forEach(function (entry, index) {
|
|
283
|
+
const row = entry.row;
|
|
284
|
+
if (!row) return;
|
|
285
|
+
if (row.lblNumber) row.lblNumber.plainText = String(index + 1);
|
|
286
|
+
row.aria = { posinset: String(index + 1), setsize: String(entries.length) };
|
|
287
|
+
paintButton(row.btnUp, canMove(index, -1));
|
|
288
|
+
paintButton(row.btnDown, canMove(index, 1));
|
|
289
|
+
paintRow(entry);
|
|
290
|
+
});
|
|
291
|
+
box.lblEmpty.visible = (entries.length == 0) ? 1 : 0;
|
|
292
|
+
syncItems();
|
|
293
|
+
if (box.scrollBar) box.scrollBar.refreshScroll();
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
// Changes the order of the data and the DOM. (No onChange)
|
|
297
|
+
const isInList = function (index) {
|
|
298
|
+
return (index >= 0 && index < entries.length);
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
const moveEntry = function (from, to) {
|
|
302
|
+
if (from === to || !isInList(from) || !isInList(to)) return 0;
|
|
303
|
+
const entry = entries.splice(from, 1)[0];
|
|
304
|
+
entries.splice(to, 0, entry);
|
|
305
|
+
const elem = entry.row.elem;
|
|
306
|
+
const hadFocus = (document.activeElement === elem);
|
|
307
|
+
const next = entries[to + 1];
|
|
308
|
+
isReordering = 1;
|
|
309
|
+
box.wrapper.elem.insertBefore(elem, next ? next.row.elem : null);
|
|
310
|
+
if (hadFocus) elem.focus({ preventScroll: true });
|
|
311
|
+
isReordering = 0;
|
|
312
|
+
updateRows();
|
|
313
|
+
return 1;
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
const moveBy = function (entry, direction, fireChange) {
|
|
317
|
+
const from = indexOf(entry);
|
|
318
|
+
if (!canMove(from, direction)) return 0;
|
|
319
|
+
moveEntry(from, from + direction);
|
|
320
|
+
entry.row.elem.scrollIntoView({ block: "nearest" });
|
|
321
|
+
if (fireChange) box.onChange(box, entry.item, from, from + direction);
|
|
322
|
+
return 1;
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
const focusRow = function (index) {
|
|
326
|
+
const entry = entries[Math.max(0, Math.min(index, entries.length - 1))];
|
|
327
|
+
if (!entry) return;
|
|
328
|
+
entry.row.elem.focus({ preventScroll: true });
|
|
329
|
+
entry.row.elem.scrollIntoView({ block: "nearest" });
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
// *** KEYBOARD GRAB:
|
|
333
|
+
|
|
334
|
+
const startGrab = function (entry) {
|
|
335
|
+
if (box.enabled != 1 || entry.locked || grab || drag || isSettling) return;
|
|
336
|
+
grab = { entry: entry, startIndex: indexOf(entry) };
|
|
337
|
+
paintRow(entry);
|
|
338
|
+
announce(box.texts.grabbed, entry);
|
|
339
|
+
box.onDragStart(box, entry.item, grab.startIndex);
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
// apply: 1 -> Keep the new position. 0 -> Back to the start position.
|
|
343
|
+
const endGrab = function (apply) {
|
|
344
|
+
if (!grab) return;
|
|
345
|
+
const g = grab;
|
|
346
|
+
grab = null;
|
|
347
|
+
const index = indexOf(g.entry);
|
|
348
|
+
if (!apply && index !== g.startIndex) moveEntry(index, g.startIndex);
|
|
349
|
+
paintRow(g.entry);
|
|
350
|
+
const finalIndex = indexOf(g.entry);
|
|
351
|
+
if (finalIndex < 0) return; // WHY: The row may be removed while it is grabbed.
|
|
352
|
+
announce(apply ? box.texts.dropped : box.texts.canceled, g.entry);
|
|
353
|
+
box.onDragEnd(box, g.entry.item, finalIndex);
|
|
354
|
+
if (apply && finalIndex !== g.startIndex) box.onChange(box, g.entry.item, g.startIndex, finalIndex);
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
// ArrowUp -> -1, ArrowDown -> 1
|
|
358
|
+
const getArrowDirection = function (key) {
|
|
359
|
+
return (key === "ArrowUp") ? -1 : 1;
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
// The keys of a grabbed row: the arrows move it, Space / Enter / Tab drop it, Escape puts it back.
|
|
363
|
+
const onGrabKeyDown = function (entry, event) {
|
|
364
|
+
const key = event.key;
|
|
365
|
+
if (key === "ArrowUp" || key === "ArrowDown") {
|
|
366
|
+
event.preventDefault();
|
|
367
|
+
if (moveBy(entry, getArrowDirection(key), 0)) announce(box.texts.moved, entry);
|
|
368
|
+
} else if (key === " " || key === "Enter") {
|
|
369
|
+
event.preventDefault();
|
|
370
|
+
endGrab(1);
|
|
371
|
+
} else if (key === "Escape") {
|
|
372
|
+
event.preventDefault();
|
|
373
|
+
endGrab(0);
|
|
374
|
+
entry.row.elem.scrollIntoView({ block: "nearest" });
|
|
375
|
+
} else if (key === "Tab") {
|
|
376
|
+
endGrab(1);
|
|
377
|
+
}
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
const onRowKeyDown = function (entry, event) {
|
|
381
|
+
|
|
382
|
+
if (box.enabled != 1 || isSettling) return;
|
|
383
|
+
const key = event.key;
|
|
384
|
+
const index = indexOf(entry);
|
|
385
|
+
|
|
386
|
+
if (grab && grab.entry === entry) {
|
|
387
|
+
onGrabKeyDown(entry, event);
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
switch (key) {
|
|
392
|
+
case "ArrowUp":
|
|
393
|
+
case "ArrowDown":
|
|
394
|
+
event.preventDefault();
|
|
395
|
+
if (event.altKey || event.ctrlKey || event.metaKey) {
|
|
396
|
+
if (moveBy(entry, getArrowDirection(key), 1)) announce(box.texts.moved, entry);
|
|
397
|
+
} else {
|
|
398
|
+
focusRow(index + getArrowDirection(key));
|
|
399
|
+
}
|
|
400
|
+
break;
|
|
401
|
+
case "Home":
|
|
402
|
+
event.preventDefault();
|
|
403
|
+
focusRow(0);
|
|
404
|
+
break;
|
|
405
|
+
case "End":
|
|
406
|
+
event.preventDefault();
|
|
407
|
+
focusRow(entries.length - 1);
|
|
408
|
+
break;
|
|
409
|
+
case " ":
|
|
410
|
+
case "Enter":
|
|
411
|
+
event.preventDefault();
|
|
412
|
+
startGrab(entry);
|
|
413
|
+
break;
|
|
414
|
+
case "Delete":
|
|
415
|
+
case "Backspace":
|
|
416
|
+
if (box.removable != 1) break;
|
|
417
|
+
event.preventDefault();
|
|
418
|
+
removeEntry(entry, 0, 1);
|
|
419
|
+
break;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
// *** POINTER DRAG:
|
|
425
|
+
|
|
426
|
+
const getScrollTop = function () {
|
|
427
|
+
return isAutoHeight ? 0 : box.scrollBox.elem.scrollTop;
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
const onPointerDown = function (entry, self, event) {
|
|
431
|
+
if (box.enabled != 1 || entry.locked || drag || grab || isSettling) return;
|
|
432
|
+
if (event.pointerType === "mouse" && event.button !== 0) return;
|
|
433
|
+
event.preventDefault(); // WHY: No text selection, no native drag.
|
|
434
|
+
entry.row.elem.focus({ preventScroll: true });
|
|
435
|
+
const y = withPageZoom(event.clientY);
|
|
436
|
+
drag = {
|
|
437
|
+
entry: entry,
|
|
438
|
+
source: self,
|
|
439
|
+
pointerId: event.pointerId,
|
|
440
|
+
startY: y,
|
|
441
|
+
lastY: y,
|
|
442
|
+
lastClientY: event.clientY,
|
|
443
|
+
startScroll: getScrollTop(),
|
|
444
|
+
active: 0,
|
|
445
|
+
};
|
|
446
|
+
try {
|
|
447
|
+
self.elem.setPointerCapture(event.pointerId);
|
|
448
|
+
} catch (error) {
|
|
449
|
+
// WHY: It throws when the pointer is already gone. The drag still works without the capture.
|
|
450
|
+
}
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
const onPointerMove = function (self, event) {
|
|
454
|
+
if (!drag || event.pointerId !== drag.pointerId) return;
|
|
455
|
+
if (event.pointerType === "mouse" && event.buttons === 0) {
|
|
456
|
+
onPointerUp(self, event); // WHY: Recover if the mouse was released outside the browser.
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
459
|
+
drag.lastY = withPageZoom(event.clientY);
|
|
460
|
+
drag.lastClientY = event.clientY;
|
|
461
|
+
if (!drag.active) {
|
|
462
|
+
if (Math.abs(drag.lastY - drag.startY) < DRAG_THRESHOLD) return; // WHY: A small move is still a click.
|
|
463
|
+
beginDrag();
|
|
464
|
+
}
|
|
465
|
+
updateDrag();
|
|
466
|
+
updateAutoScroll();
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
const onPointerUp = function (self, event) {
|
|
470
|
+
if (!drag || event.pointerId !== drag.pointerId) return;
|
|
471
|
+
if (drag.active) {
|
|
472
|
+
suppressClick = 1;
|
|
473
|
+
// WHY: a touch drag makes no click, so the flag swallowed the next real tap. The click of a mouse
|
|
474
|
+
// drag comes in this same input turn, before the timer.
|
|
475
|
+
box.after(0, function () { suppressClick = 0; });
|
|
476
|
+
finishDrag(1);
|
|
477
|
+
} else {
|
|
478
|
+
drag = null;
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
const onPointerCancel = function (self, event) {
|
|
483
|
+
if (!drag || event.pointerId !== drag.pointerId) return;
|
|
484
|
+
if (drag.active) {
|
|
485
|
+
finishDrag(0);
|
|
486
|
+
} else {
|
|
487
|
+
drag = null;
|
|
488
|
+
}
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
const beginDrag = function () {
|
|
492
|
+
const index = indexOf(drag.entry);
|
|
493
|
+
drag.active = 1;
|
|
494
|
+
drag.index = index;
|
|
495
|
+
drag.target = index;
|
|
496
|
+
drag.tops = entries.map(function (e) { return e.row.elem.offsetTop; });
|
|
497
|
+
drag.heights = entries.map(function (e) { return e.row.elem.offsetHeight; });
|
|
498
|
+
// The locked rows are walls: the dragged row stays between them.
|
|
499
|
+
drag.minIndex = 0;
|
|
500
|
+
drag.maxIndex = entries.length - 1;
|
|
501
|
+
for (let i = index - 1; i >= 0; i--) {
|
|
502
|
+
if (!entries[i].locked) continue;
|
|
503
|
+
drag.minIndex = i + 1;
|
|
504
|
+
break;
|
|
505
|
+
}
|
|
506
|
+
for (let i = index + 1; i < entries.length; i++) {
|
|
507
|
+
if (!entries[i].locked) continue;
|
|
508
|
+
drag.maxIndex = i - 1;
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
entries.forEach(function (e, i) {
|
|
512
|
+
e.row.css.transition = (i === index) ? ROW_TRANSITION : SHIFT_TRANSITION;
|
|
513
|
+
});
|
|
514
|
+
drag.source.cursor = "grabbing";
|
|
515
|
+
paintRow(drag.entry);
|
|
516
|
+
// WHY: A scroll container clips even a row with a higher z-index. Draw a non-interactive
|
|
517
|
+
// copy above the page; the real row keeps its place, focus and pointer capture.
|
|
518
|
+
dragPreview = drag.entry.row.elem.cloneNode(true);
|
|
519
|
+
dragPreview.removeAttribute("id");
|
|
520
|
+
dragPreview.querySelectorAll("[id]").forEach(function (elem) { elem.removeAttribute("id"); });
|
|
521
|
+
dragPreview.setAttribute("aria-hidden", "true");
|
|
522
|
+
dragPreview.inert = true;
|
|
523
|
+
Object.assign(dragPreview.style, {
|
|
524
|
+
position: "fixed", margin: "0", pointerEvents: "none", zIndex: "2147483647",
|
|
525
|
+
transition: "none", transformOrigin: "center",
|
|
526
|
+
});
|
|
527
|
+
document.documentElement.appendChild(dragPreview);
|
|
528
|
+
drag.entry.row.css.opacity = "0";
|
|
529
|
+
box.onDragStart(box, drag.entry.item, index);
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
// Target: the dragged row passes a row when its center passes the center of that row.
|
|
533
|
+
const findDragTarget = function (center) {
|
|
534
|
+
const index = drag.index;
|
|
535
|
+
const tops = drag.tops;
|
|
536
|
+
const heights = drag.heights;
|
|
537
|
+
for (let k = drag.minIndex; k < index; k++) {
|
|
538
|
+
if (center < tops[k] + heights[k] / 2) return k;
|
|
539
|
+
}
|
|
540
|
+
for (let k = drag.maxIndex; k > index; k--) {
|
|
541
|
+
if (center > tops[k] + heights[k] / 2) return k;
|
|
542
|
+
}
|
|
543
|
+
return index;
|
|
544
|
+
};
|
|
545
|
+
|
|
546
|
+
// A row moved up shows the number above it, a row moved down the number below it.
|
|
547
|
+
const getNumberChange = function (shift) {
|
|
548
|
+
if (shift < 0) return -1;
|
|
549
|
+
if (shift > 0) return 1;
|
|
550
|
+
return 0;
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
const updateDrag = function () {
|
|
554
|
+
if (!drag || !drag.active) return;
|
|
555
|
+
const index = drag.index;
|
|
556
|
+
const tops = drag.tops;
|
|
557
|
+
const heights = drag.heights;
|
|
558
|
+
let dy = (drag.lastY - drag.startY) + (getScrollTop() - drag.startScroll);
|
|
559
|
+
const minDy = tops[drag.minIndex] - tops[index];
|
|
560
|
+
const maxDy = (tops[drag.maxIndex] + heights[drag.maxIndex]) - (tops[index] + heights[index]);
|
|
561
|
+
dy = Math.max(minDy, Math.min(dy, maxDy));
|
|
562
|
+
drag.dy = dy;
|
|
563
|
+
|
|
564
|
+
const center = tops[index] + heights[index] / 2 + dy;
|
|
565
|
+
const target = findDragTarget(center);
|
|
566
|
+
drag.target = target;
|
|
567
|
+
|
|
568
|
+
const slot = heights[index] + box.rowGap;
|
|
569
|
+
entries.forEach(function (e, k) {
|
|
570
|
+
if (k === index) return;
|
|
571
|
+
let shift = 0;
|
|
572
|
+
if (index < target && k > index && k <= target) shift = -slot;
|
|
573
|
+
else if (target < index && k >= target && k < index) shift = slot;
|
|
574
|
+
e.row.css.transform = shift ? "translateY(" + shift + "px)" : "";
|
|
575
|
+
if (e.row.lblNumber) e.row.lblNumber.plainText = String(k + 1 + getNumberChange(shift));
|
|
576
|
+
});
|
|
577
|
+
const draggedRow = entries[index].row;
|
|
578
|
+
const rect = draggedRow.elem.getBoundingClientRect();
|
|
579
|
+
const width = draggedRow.elem.offsetWidth;
|
|
580
|
+
const height = draggedRow.elem.offsetHeight;
|
|
581
|
+
const zoom = rect.width / width;
|
|
582
|
+
// WHY: Scaled from its center (like the row at the drop): the drop does not jump sideways.
|
|
583
|
+
// The unscaled preview is placed so that its center is the center of the row (zoom: a zoomed page).
|
|
584
|
+
Object.assign(dragPreview.style, {
|
|
585
|
+
left: (rect.left + (rect.width - width) / 2) + "px",
|
|
586
|
+
top: (rect.top + dy * zoom + (rect.height - height) / 2) + "px",
|
|
587
|
+
width: width + "px",
|
|
588
|
+
height: height + "px",
|
|
589
|
+
transform: "scale(" + (zoom * _s.rowDragging.scale) + ")",
|
|
590
|
+
});
|
|
591
|
+
if (draggedRow.lblNumber) draggedRow.lblNumber.plainText = String(target + 1); // The numbers show the new order while dragging.
|
|
592
|
+
if (draggedRow.lblNumber) {
|
|
593
|
+
// The preview is visual only; keep its position number in sync with the real row.
|
|
594
|
+
const numberIndex = Array.from(draggedRow.elem.children).indexOf(draggedRow.lblNumber.elem);
|
|
595
|
+
if (numberIndex >= 0) dragPreview.children[numberIndex].textContent = String(target + 1);
|
|
596
|
+
}
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
// Scrolls the list while the pointer is near its top or bottom edge.
|
|
600
|
+
const updateAutoScroll = function () {
|
|
601
|
+
if (isAutoHeight || !drag || !drag.active) return;
|
|
602
|
+
const rect = box.scrollBox.elem.getBoundingClientRect();
|
|
603
|
+
const edge = Math.min(AUTO_SCROLL_EDGE, rect.height / 4);
|
|
604
|
+
const y = drag.lastClientY;
|
|
605
|
+
let speed = 0;
|
|
606
|
+
if (y < rect.top + edge) {
|
|
607
|
+
speed = -(rect.top + edge - y) / AUTO_SCROLL_SLOWDOWN;
|
|
608
|
+
} else if (y > rect.bottom - edge) {
|
|
609
|
+
speed = (y - (rect.bottom - edge)) / AUTO_SCROLL_SLOWDOWN;
|
|
610
|
+
}
|
|
611
|
+
drag.scrollSpeed = Math.max(-AUTO_SCROLL_MAX_SPEED, Math.min(AUTO_SCROLL_MAX_SPEED, Math.round(speed)));
|
|
612
|
+
if (drag.scrollSpeed && !autoScrollFrame) autoScrollFrame = requestAnimationFrame(autoScrollTick);
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
const autoScrollTick = function () {
|
|
616
|
+
autoScrollFrame = null;
|
|
617
|
+
if (!box || !drag || !drag.active || !drag.scrollSpeed) return;
|
|
618
|
+
const scrollElem = box.scrollBox.elem;
|
|
619
|
+
const before = scrollElem.scrollTop;
|
|
620
|
+
scrollElem.scrollTop = before + drag.scrollSpeed;
|
|
621
|
+
if (scrollElem.scrollTop === before) return; // At the end: stop the loop.
|
|
622
|
+
updateDrag();
|
|
623
|
+
autoScrollFrame = requestAnimationFrame(autoScrollTick);
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
const stopAutoScroll = function () {
|
|
627
|
+
if (autoScrollFrame) cancelAnimationFrame(autoScrollFrame);
|
|
628
|
+
autoScrollFrame = null;
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
// apply: 1 -> Drop at the target. 0 -> Back to the start.
|
|
632
|
+
const finishDrag = function (apply) {
|
|
633
|
+
stopAutoScroll();
|
|
634
|
+
const finished = drag;
|
|
635
|
+
const from = finished.index;
|
|
636
|
+
const tops = finished.tops;
|
|
637
|
+
const heights = finished.heights;
|
|
638
|
+
const target = apply ? finished.target : from;
|
|
639
|
+
let finalDy = 0;
|
|
640
|
+
if (target > from) finalDy = (tops[target] + heights[target]) - (tops[from] + heights[from]);
|
|
641
|
+
else if (target < from) finalDy = tops[target] - tops[from];
|
|
642
|
+
if (!apply) {
|
|
643
|
+
entries.forEach(function (e, k) {
|
|
644
|
+
if (k !== from) e.row.css.transform = "";
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
// The dropped row slides to its place, then the order changes.
|
|
649
|
+
const droppedRow = finished.entry.row;
|
|
650
|
+
droppedRow.css = {
|
|
651
|
+
transition: "none",
|
|
652
|
+
transform: "translateY(" + finished.dy + "px) scale(" + _s.rowDragging.scale + ")",
|
|
653
|
+
};
|
|
654
|
+
if (dragPreview) dragPreview.remove();
|
|
655
|
+
dragPreview = null;
|
|
656
|
+
droppedRow.css.opacity = "";
|
|
657
|
+
void droppedRow.elem.offsetHeight; // WHY: Start the settling animation at the last dragged position.
|
|
658
|
+
droppedRow.css = { transition: SETTLE_TRANSITION, transform: "translateY(" + finalDy + "px)" };
|
|
659
|
+
finished.source.cursor = "";
|
|
660
|
+
drag = null;
|
|
661
|
+
isSettling = 1;
|
|
662
|
+
paintRow(finished.entry);
|
|
663
|
+
|
|
664
|
+
cancelSettle = box.after(SETTLE_DURATION, function () {
|
|
665
|
+
cancelSettle = null;
|
|
666
|
+
isSettling = 0;
|
|
667
|
+
placeDroppedRow(finished.entry, from, target);
|
|
668
|
+
});
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
// After the slide: the order of the data and the DOM changes, without an animation.
|
|
672
|
+
const placeDroppedRow = function (entry, from, target) {
|
|
673
|
+
entries.forEach(function (e) {
|
|
674
|
+
e.row.css = { transition: "none", transform: "" };
|
|
675
|
+
});
|
|
676
|
+
if (!moveEntry(from, target)) updateRows(); // WHY: Puts back the numbers changed while dragging.
|
|
677
|
+
void box.wrapper.elem.offsetHeight; // WHY: Applies the "none" transition before it is set back.
|
|
678
|
+
entries.forEach(function (e) { e.row.css.transition = ROW_TRANSITION; });
|
|
679
|
+
const finalIndex = indexOf(entry);
|
|
680
|
+
box.onDragEnd(box, entry.item, finalIndex);
|
|
681
|
+
if (target === from) return;
|
|
682
|
+
announce(box.texts.dropped, entry);
|
|
683
|
+
box.onChange(box, entry.item, from, finalIndex);
|
|
684
|
+
};
|
|
685
|
+
|
|
686
|
+
// *** VIEW:
|
|
687
|
+
|
|
688
|
+
const createIconButton = function (svg, ariaLabel) {
|
|
689
|
+
const btn = Label({
|
|
690
|
+
text: svg,
|
|
691
|
+
width: _s.button.size,
|
|
692
|
+
height: _s.button.size,
|
|
693
|
+
round: _s.button.round,
|
|
694
|
+
color: "transparent",
|
|
695
|
+
clickable: 1,
|
|
696
|
+
});
|
|
697
|
+
btn.elem.style.display = "flex";
|
|
698
|
+
btn.css = { alignItems: "center", justifyContent: "center", transition: "background-color 0.15s" };
|
|
699
|
+
btn.lineHeight = "0";
|
|
700
|
+
btn.shrink = 0;
|
|
701
|
+
btn.cursor = "pointer";
|
|
702
|
+
btn.role = "button";
|
|
703
|
+
btn.aria = { label: ariaLabel };
|
|
704
|
+
btn.elem.setAttribute("title", ariaLabel);
|
|
705
|
+
btn.on("mouseenter", function () {
|
|
706
|
+
if (btn.aria.disabled === "true") return;
|
|
707
|
+
btn.color = _s.button.hoverColor;
|
|
708
|
+
});
|
|
709
|
+
btn.on("mouseleave", function () { btn.color = "transparent"; });
|
|
710
|
+
// WHY: A press on a button must not start a drag of the row (dragBy: "row").
|
|
711
|
+
btn.on("pointerdown", function (self, event) {
|
|
712
|
+
event.stopPropagation();
|
|
713
|
+
event.preventDefault();
|
|
714
|
+
});
|
|
715
|
+
return btn;
|
|
716
|
+
};
|
|
717
|
+
|
|
718
|
+
// "Sales, Monthly totals, Locked"
|
|
719
|
+
const getRowLabel = function (entry) {
|
|
720
|
+
let label = entry.text;
|
|
721
|
+
if (entry.desc) label += ", " + entry.desc;
|
|
722
|
+
if (entry.locked) label += ", " + box.texts.locked;
|
|
723
|
+
return label;
|
|
724
|
+
};
|
|
725
|
+
|
|
726
|
+
const getHandleSvg = function (entry, color) {
|
|
727
|
+
if (entry.locked) return SortableList.getLockSvg(color, _s.handle.size - 2);
|
|
728
|
+
return SortableList.getGripSvg(color, _s.handle.size);
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
// LABEL: Handle (grip, or a lock for a locked row)
|
|
732
|
+
const createHandle = function (entry) {
|
|
733
|
+
const handle = Label({
|
|
734
|
+
text: getHandleSvg(entry, _s.handle.iconColor),
|
|
735
|
+
width: _s.handle.size + 6,
|
|
736
|
+
height: _s.handle.size + 10,
|
|
737
|
+
clickable: 1,
|
|
738
|
+
});
|
|
739
|
+
handle.elem.style.display = "flex";
|
|
740
|
+
handle.css = { alignItems: "center", justifyContent: "center", marginLeft: "-4px" };
|
|
741
|
+
handle.lineHeight = "0";
|
|
742
|
+
handle.shrink = 0;
|
|
743
|
+
handle.aria = { hidden: "true" };
|
|
744
|
+
handle.elem.setAttribute("title", entry.locked ? box.texts.locked : box.texts.handle);
|
|
745
|
+
if (entry.locked) return handle;
|
|
746
|
+
handle.cursor = "grab";
|
|
747
|
+
handle.css.touchAction = "none";
|
|
748
|
+
handle.on("mouseenter", function () {
|
|
749
|
+
if (box.enabled == 1) handle.text = getHandleSvg(entry, _s.handle.hoverColor);
|
|
750
|
+
});
|
|
751
|
+
handle.on("mouseleave", function () {
|
|
752
|
+
handle.text = getHandleSvg(entry, _s.handle.iconColor);
|
|
753
|
+
});
|
|
754
|
+
return handle;
|
|
755
|
+
};
|
|
756
|
+
|
|
757
|
+
// LABEL: Position number
|
|
758
|
+
const createNumberLabel = function () {
|
|
759
|
+
const lblNumber = Label({
|
|
760
|
+
plainText: "",
|
|
761
|
+
width: _s.number.width,
|
|
762
|
+
fontSize: _s.number.fontSize,
|
|
763
|
+
textColor: _s.number.textColor,
|
|
764
|
+
textAlign: "center",
|
|
765
|
+
});
|
|
766
|
+
lblNumber.shrink = 0;
|
|
767
|
+
lblNumber.css.fontVariantNumeric = "tabular-nums";
|
|
768
|
+
if (_s.number.fontFamily) lblNumber.css.fontFamily = _s.number.fontFamily;
|
|
769
|
+
return lblNumber;
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
// The up / down buttons: move the row one step and keep the focus on it.
|
|
773
|
+
const moveByButton = function (entry, direction, event) {
|
|
774
|
+
event.stopPropagation();
|
|
775
|
+
if (!moveBy(entry, direction, 1)) return;
|
|
776
|
+
announce(box.texts.moved, entry);
|
|
777
|
+
entry.row.elem.focus({ preventScroll: true });
|
|
778
|
+
};
|
|
779
|
+
|
|
780
|
+
const bindRowEvents = function (row, entry, isRowDrag) {
|
|
781
|
+
const dragSource = (isRowDrag || !row.handle) ? row : row.handle;
|
|
782
|
+
if (!entry.locked && (isRowDrag || row.handle)) {
|
|
783
|
+
dragSource.on("pointerdown", function (self, event) { onPointerDown(entry, self, event); });
|
|
784
|
+
dragSource.listenTo(dragSource.elem, "lostpointercapture", onPointerCancel);
|
|
785
|
+
}
|
|
786
|
+
row.on("keydown", function (self, event) { onRowKeyDown(entry, event); });
|
|
787
|
+
row.on("focus", function () { paintRow(entry); });
|
|
788
|
+
row.on("blur", function () {
|
|
789
|
+
if (isReordering) return;
|
|
790
|
+
if (grab && grab.entry === entry) endGrab(1);
|
|
791
|
+
paintRow(entry);
|
|
792
|
+
});
|
|
793
|
+
row.on("mouseenter", function () {
|
|
794
|
+
entry.isHover = 1;
|
|
795
|
+
if (!drag) paintRow(entry);
|
|
796
|
+
});
|
|
797
|
+
row.on("mouseleave", function () {
|
|
798
|
+
entry.isHover = 0;
|
|
799
|
+
if (!drag) paintRow(entry);
|
|
800
|
+
});
|
|
801
|
+
row.on("click", function () {
|
|
802
|
+
if (suppressClick) {
|
|
803
|
+
suppressClick = 0;
|
|
804
|
+
return;
|
|
805
|
+
}
|
|
806
|
+
if (box.enabled == 1) box.onItemClick(box, entry.item, indexOf(entry));
|
|
807
|
+
});
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
const createRow = function (entry) {
|
|
811
|
+
|
|
812
|
+
const isRowDrag = (box.dragBy === "row");
|
|
813
|
+
|
|
814
|
+
// GROUP: Row
|
|
815
|
+
const row = HGroup({
|
|
816
|
+
width: "100%",
|
|
817
|
+
height: "auto",
|
|
818
|
+
align: "left center",
|
|
819
|
+
gap: _s.row.gap,
|
|
820
|
+
padding: _s.row.padding,
|
|
821
|
+
color: entry.locked ? _s.rowLocked.color : _s.row.color,
|
|
822
|
+
border: _s.row.border,
|
|
823
|
+
borderColor: _s.row.borderColor,
|
|
824
|
+
round: _s.row.round,
|
|
825
|
+
});
|
|
826
|
+
entry.row = row;
|
|
827
|
+
row.css = {
|
|
828
|
+
minHeight: _s.row.minHeight + "px",
|
|
829
|
+
boxSizing: "border-box",
|
|
830
|
+
outline: "none",
|
|
831
|
+
transition: ROW_TRANSITION,
|
|
832
|
+
transformOrigin: "center center",
|
|
833
|
+
};
|
|
834
|
+
row.shrink = 0;
|
|
835
|
+
row.role = "option";
|
|
836
|
+
row.aria = { roledescription: "sortable item", label: getRowLabel(entry) };
|
|
837
|
+
row.clickable = 1;
|
|
838
|
+
row.tabIndex = (box.enabled == 1) ? 0 : -1;
|
|
839
|
+
if (isRowDrag && !entry.locked) {
|
|
840
|
+
row.cursor = "grab";
|
|
841
|
+
row.css.touchAction = "none";
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
if (box.showHandle == 1) row.handle = createHandle(entry);
|
|
845
|
+
if (box.showNumbers == 1) row.lblNumber = createNumberLabel();
|
|
846
|
+
|
|
847
|
+
// GROUP: Content (text, description or your own view)
|
|
848
|
+
row.content = VGroup({ width: "auto", height: "auto", align: "left center", gap: 2 });
|
|
849
|
+
row.content.css = { flex: "1 1 0", minWidth: "0" };
|
|
850
|
+
|
|
851
|
+
if (typeof box.createItemView === "function") {
|
|
852
|
+
box.createItemView(entry.item, indexOf(entry), box);
|
|
853
|
+
} else {
|
|
854
|
+
row.lblText = Label({
|
|
855
|
+
plainText: entry.text,
|
|
856
|
+
width: "100%",
|
|
857
|
+
fontSize: _s.text.fontSize,
|
|
858
|
+
textColor: _s.text.textColor,
|
|
859
|
+
ellipsis: 1,
|
|
860
|
+
});
|
|
861
|
+
if (_s.text.fontFamily) row.lblText.css.fontFamily = _s.text.fontFamily;
|
|
862
|
+
if (entry.desc) {
|
|
863
|
+
row.lblDesc = Label({
|
|
864
|
+
plainText: entry.desc,
|
|
865
|
+
width: "100%",
|
|
866
|
+
fontSize: _s.desc.fontSize,
|
|
867
|
+
textColor: _s.desc.textColor,
|
|
868
|
+
ellipsis: 1,
|
|
869
|
+
});
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
endGroup();
|
|
874
|
+
|
|
875
|
+
// LABEL: Up / down buttons
|
|
876
|
+
if (box.showButtons == 1) {
|
|
877
|
+
const upSvg = SortableList.getChevronSvg("up", _s.button.iconColor, _s.button.iconSize);
|
|
878
|
+
const downSvg = SortableList.getChevronSvg("down", _s.button.iconColor, _s.button.iconSize);
|
|
879
|
+
row.btnUp = createIconButton(upSvg, box.texts.moveUp);
|
|
880
|
+
row.btnUp.on("click", function (self, event) { moveByButton(entry, -1, event); });
|
|
881
|
+
row.btnDown = createIconButton(downSvg, box.texts.moveDown);
|
|
882
|
+
row.btnDown.on("click", function (self, event) { moveByButton(entry, 1, event); });
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
// LABEL: Remove button
|
|
886
|
+
if (box.removable == 1) {
|
|
887
|
+
const closeSvg = SortableList.getCloseSvg(_s.button.iconColor, _s.button.iconSize);
|
|
888
|
+
row.btnRemove = createIconButton(closeSvg, box.texts.remove);
|
|
889
|
+
row.btnRemove.on("click", function (self, event) {
|
|
890
|
+
event.stopPropagation();
|
|
891
|
+
if (box.enabled == 1) removeEntry(entry, 0, 1);
|
|
892
|
+
});
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
endGroup();
|
|
896
|
+
|
|
897
|
+
bindRowEvents(row, entry, isRowDrag);
|
|
898
|
+
|
|
899
|
+
return row;
|
|
900
|
+
};
|
|
901
|
+
|
|
902
|
+
// Draws all the rows again.
|
|
903
|
+
const render = function () {
|
|
904
|
+
if (grab) grab = null;
|
|
905
|
+
if (box.wrapper) box.wrapper.remove();
|
|
906
|
+
const host = isAutoHeight ? box : box.scrollBox;
|
|
907
|
+
createIn(host, function () {
|
|
908
|
+
// GROUP: Rows
|
|
909
|
+
box.wrapper = VGroup({
|
|
910
|
+
width: "100%",
|
|
911
|
+
height: "auto",
|
|
912
|
+
align: "left top",
|
|
913
|
+
gap: box.rowGap,
|
|
914
|
+
padding: _s.box.padding,
|
|
915
|
+
});
|
|
916
|
+
box.wrapper.css = { alignItems: "stretch", boxSizing: "border-box" };
|
|
917
|
+
box.wrapper.position = "relative"; // WHY: The scroll box (or the auto height box) grows with it.
|
|
918
|
+
box.wrapper.role = "listbox";
|
|
919
|
+
box.wrapper.aria = { label: box.ariaLabel };
|
|
920
|
+
entries.forEach(createRow);
|
|
921
|
+
endGroup();
|
|
922
|
+
});
|
|
923
|
+
updateRows();
|
|
924
|
+
};
|
|
925
|
+
|
|
926
|
+
const removeEntry = function (entry, silent, moveFocus) {
|
|
927
|
+
const index = indexOf(entry);
|
|
928
|
+
if (index < 0) return null;
|
|
929
|
+
if (grab && grab.entry === entry) grab = null;
|
|
930
|
+
const hadFocus = (document.activeElement === entry.row.elem);
|
|
931
|
+
entries.splice(index, 1);
|
|
932
|
+
isReordering = 1;
|
|
933
|
+
entry.row.remove();
|
|
934
|
+
isReordering = 0;
|
|
935
|
+
entry.row = null;
|
|
936
|
+
updateRows();
|
|
937
|
+
if (!silent) announce(box.texts.removed, entry);
|
|
938
|
+
if (hadFocus && moveFocus && entries.length) focusRow(Math.min(index, entries.length - 1));
|
|
939
|
+
if (!silent) box.onRemove(box, entry.item, index);
|
|
940
|
+
return entry.item;
|
|
941
|
+
};
|
|
942
|
+
|
|
943
|
+
const isBusy = function () {
|
|
944
|
+
return (drag && drag.active) || isSettling;
|
|
945
|
+
};
|
|
946
|
+
|
|
947
|
+
// *** PUBLIC FUNCTIONS:
|
|
948
|
+
|
|
949
|
+
box.setItems = function (items) {
|
|
950
|
+
if (isBusy()) return;
|
|
951
|
+
entries = (Array.isArray(items) ? items : []).map(toEntry);
|
|
952
|
+
render();
|
|
953
|
+
};
|
|
954
|
+
// USAGE: list.setItems(["A", "B", { key: "c", text: "C", desc: "Third", locked: 1 }]) // onChange is not called.
|
|
955
|
+
|
|
956
|
+
box.getItems = function () {
|
|
957
|
+
return entries.map(function (e) { return e.item; });
|
|
958
|
+
};
|
|
959
|
+
// USAGE: const order = list.getItems(); // The same strings / objects in the new order.
|
|
960
|
+
|
|
961
|
+
box.getKeys = function () {
|
|
962
|
+
return entries.map(function (e) { return e.key; });
|
|
963
|
+
};
|
|
964
|
+
// USAGE: list.getKeys() // ["sales", "stock", ...] (a string item is its own key)
|
|
965
|
+
|
|
966
|
+
box.getIndexByKey = function (key) {
|
|
967
|
+
return entries.findIndex(function (e) { return e.key === String(key); });
|
|
968
|
+
};
|
|
969
|
+
|
|
970
|
+
// silent: 1 -> onChange is not called. A locked row does not move. Returns 1 when it moved.
|
|
971
|
+
box.moveItem = function (fromIndex, toIndex, silent = 0) {
|
|
972
|
+
if (isBusy()) return 0;
|
|
973
|
+
const from = Number(fromIndex);
|
|
974
|
+
const to = Math.max(0, Math.min(Number(toIndex), entries.length - 1));
|
|
975
|
+
const entry = entries[from];
|
|
976
|
+
if (!entry || entry.locked || from === to) return 0;
|
|
977
|
+
moveEntry(from, to);
|
|
978
|
+
if (!silent) box.onChange(box, entry.item, from, to);
|
|
979
|
+
return 1;
|
|
980
|
+
};
|
|
981
|
+
// USAGE: list.moveItem(0, 3)
|
|
982
|
+
|
|
983
|
+
box.moveUp = function (index) {
|
|
984
|
+
const entry = entries[index];
|
|
985
|
+
return (entry && !isBusy()) ? moveBy(entry, -1, 1) : 0;
|
|
986
|
+
};
|
|
987
|
+
|
|
988
|
+
box.moveDown = function (index) {
|
|
989
|
+
const entry = entries[index];
|
|
990
|
+
return (entry && !isBusy()) ? moveBy(entry, 1, 1) : 0;
|
|
991
|
+
};
|
|
992
|
+
|
|
993
|
+
// index: -1 or empty -> at the end.
|
|
994
|
+
box.addItem = function (item, index = -1) {
|
|
995
|
+
if (isBusy()) return;
|
|
996
|
+
const entry = toEntry(item);
|
|
997
|
+
const at = (index < 0 || index > entries.length) ? entries.length : index;
|
|
998
|
+
entries.splice(at, 0, entry);
|
|
999
|
+
createIn(box.wrapper, function () { createRow(entry); });
|
|
1000
|
+
const next = entries[at + 1];
|
|
1001
|
+
if (next) box.wrapper.elem.insertBefore(entry.row.elem, next.row.elem);
|
|
1002
|
+
updateRows();
|
|
1003
|
+
};
|
|
1004
|
+
// USAGE: list.addItem("New item") or list.addItem({ key: "x", text: "X" }, 0)
|
|
1005
|
+
|
|
1006
|
+
// silent: 1 -> onRemove is not called. Returns the removed item.
|
|
1007
|
+
box.removeItem = function (index, silent = 0) {
|
|
1008
|
+
if (isBusy()) return null;
|
|
1009
|
+
const entry = entries[index];
|
|
1010
|
+
return entry ? removeEntry(entry, silent, 0) : null;
|
|
1011
|
+
};
|
|
1012
|
+
// USAGE: list.removeItem(2)
|
|
1013
|
+
|
|
1014
|
+
box.setEnabled = function (enabled) {
|
|
1015
|
+
box.enabled = basic.isOn(enabled) ? 1 : 0;
|
|
1016
|
+
if (box.enabled != 1 && grab) endGrab(0);
|
|
1017
|
+
if (box.enabled != 1 && drag) {
|
|
1018
|
+
if (drag.active) finishDrag(0);
|
|
1019
|
+
else drag = null;
|
|
1020
|
+
}
|
|
1021
|
+
box.css.opacity = (box.enabled == 1) ? "1" : String(_s.disabled.opacity);
|
|
1022
|
+
box.aria = { disabled: (box.enabled == 1) ? "false" : "true" };
|
|
1023
|
+
entries.forEach(function (e) {
|
|
1024
|
+
if (e.row) e.row.tabIndex = (box.enabled == 1) ? 0 : -1;
|
|
1025
|
+
});
|
|
1026
|
+
updateRows();
|
|
1027
|
+
};
|
|
1028
|
+
// USAGE: get: list.enabled, set: list.setEnabled(0)
|
|
1029
|
+
|
|
1030
|
+
box.focusItem = function (index = 0) {
|
|
1031
|
+
focusRow(index);
|
|
1032
|
+
};
|
|
1033
|
+
|
|
1034
|
+
box.refresh = function () {
|
|
1035
|
+
updateRows();
|
|
1036
|
+
};
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
// *** OBJECT VIEW:
|
|
1040
|
+
|
|
1041
|
+
box.css.boxSizing = "border-box";
|
|
1042
|
+
|
|
1043
|
+
if (!isAutoHeight) {
|
|
1044
|
+
// BOX: Scrolling area
|
|
1045
|
+
box.scrollBox = Box(0, 0, "100%", "100%", { color: "transparent", scrollY: 1 });
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
// LABEL: Empty text
|
|
1049
|
+
box.lblEmpty = Label({
|
|
1050
|
+
plainText: box.emptyText,
|
|
1051
|
+
width: "100%",
|
|
1052
|
+
fontSize: _s.empty.fontSize,
|
|
1053
|
+
textColor: _s.empty.textColor,
|
|
1054
|
+
textAlign: "center",
|
|
1055
|
+
padding: [0, 20],
|
|
1056
|
+
visible: 0,
|
|
1057
|
+
});
|
|
1058
|
+
if (isAutoHeight) box.lblEmpty.position = "relative";
|
|
1059
|
+
else box.lblEmpty.top = 24;
|
|
1060
|
+
|
|
1061
|
+
// LABEL: Screen reader messages (not visible)
|
|
1062
|
+
box.lblLive = Label({ left: 0, top: 0, width: 1, height: 1, opacity: 0, plainText: "" });
|
|
1063
|
+
box.lblLive.aria = { live: "polite" };
|
|
1064
|
+
box.lblLive.css.overflow = "hidden";
|
|
1065
|
+
|
|
1066
|
+
if (!isAutoHeight && box.useScrollBar == 1 && typeof ScrollBar !== "undefined") {
|
|
1067
|
+
box.scrollBar = ScrollBar(Object.assign({ scrollableBox: box.scrollBox, neverHide: 0, showDots: 0 }, _s.scrollBar));
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
// *** OBJECT INIT CODE:
|
|
1071
|
+
|
|
1072
|
+
// WHY: On the document (capture), not on the row: the move and the release are also caught outside the list
|
|
1073
|
+
// and when the pointer capture failed (a row stayed grabbed after a release outside of it).
|
|
1074
|
+
box.listenTo(document, "pointermove", onPointerMove, true);
|
|
1075
|
+
box.listenTo(document, "pointerup", onPointerUp, true);
|
|
1076
|
+
box.listenTo(document, "pointercancel", onPointerCancel, true);
|
|
1077
|
+
box.listenTo(window, "blur", function () {
|
|
1078
|
+
if (!drag) return;
|
|
1079
|
+
if (drag.active) finishDrag(0);
|
|
1080
|
+
else drag = null;
|
|
1081
|
+
});
|
|
1082
|
+
|
|
1083
|
+
// The drag preview is a raw element on <html> and the auto scroll a rAF loop: basic.js can not clean them.
|
|
1084
|
+
const superRemove = box.remove;
|
|
1085
|
+
box.superRemove = superRemove;
|
|
1086
|
+
box.remove = function () {
|
|
1087
|
+
if (!box) return; // WHY: remove() can be called twice (also by the parent's remove()).
|
|
1088
|
+
stopAutoScroll();
|
|
1089
|
+
if (dragPreview) dragPreview.remove();
|
|
1090
|
+
dragPreview = null;
|
|
1091
|
+
drag = null;
|
|
1092
|
+
superRemove.call(box);
|
|
1093
|
+
box = null;
|
|
1094
|
+
};
|
|
1095
|
+
|
|
1096
|
+
if (!isAutoHeight) {
|
|
1097
|
+
// WHY: A wheel scroll during a drag moves the list under the dragged row.
|
|
1098
|
+
box.scrollBox.on("scroll", function () {
|
|
1099
|
+
if (drag && drag.active) updateDrag();
|
|
1100
|
+
});
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
entries = (Array.isArray(startItems) ? startItems : []).map(toEntry);
|
|
1104
|
+
render();
|
|
1105
|
+
box.setEnabled(box.enabled);
|
|
1106
|
+
|
|
1107
|
+
return endObject(box);
|
|
1108
|
+
|
|
1109
|
+
};
|
|
1110
|
+
|
|
1111
|
+
// *** STATIC FUNCTIONS:
|
|
1112
|
+
|
|
1113
|
+
SortableList.getGripSvg = function (color, size) {
|
|
1114
|
+
return '<svg xmlns="http://www.w3.org/2000/svg" width="' + size + '" height="' + size + '" viewBox="0 0 24 24" fill="' + color + '"><circle cx="9" cy="6" r="1.7"/><circle cx="15" cy="6" r="1.7"/><circle cx="9" cy="12" r="1.7"/><circle cx="15" cy="12" r="1.7"/><circle cx="9" cy="18" r="1.7"/><circle cx="15" cy="18" r="1.7"/></svg>';
|
|
1115
|
+
};
|
|
1116
|
+
|
|
1117
|
+
SortableList.getLockSvg = function (color, size) {
|
|
1118
|
+
return '<svg xmlns="http://www.w3.org/2000/svg" width="' + size + '" height="' + size + '" viewBox="0 0 24 24" fill="none" stroke="' + color + '" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="11" width="14" height="9" rx="2"/><path d="M8 11V8a4 4 0 0 1 8 0v3"/></svg>';
|
|
1119
|
+
};
|
|
1120
|
+
|
|
1121
|
+
SortableList.getChevronSvg = function (direction, color, size) {
|
|
1122
|
+
const path = (direction === "up") ? "M6 15l6-6 6 6" : "M6 9l6 6 6-6";
|
|
1123
|
+
return '<svg xmlns="http://www.w3.org/2000/svg" width="' + size + '" height="' + size + '" viewBox="0 0 24 24" fill="none" stroke="' + color + '" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="' + path + '"/></svg>';
|
|
1124
|
+
};
|
|
1125
|
+
|
|
1126
|
+
SortableList.getCloseSvg = function (color, size) {
|
|
1127
|
+
return '<svg xmlns="http://www.w3.org/2000/svg" width="' + size + '" height="' + size + '" viewBox="0 0 24 24" fill="none" stroke="' + color + '" stroke-width="2.4" stroke-linecap="round"><path d="M6 6l12 12M18 6L6 18"/></svg>';
|
|
1128
|
+
};
|
|
1129
|
+
|
|
1130
|
+
// *** STYLE PACKAGES:
|
|
1131
|
+
// USAGE: SortableList({ styleName: "modern" })
|
|
1132
|
+
// USAGE: SortableList({ styleName: "dark", style: { row: { round: 4 } } }) // Change only some keys.
|
|
1133
|
+
// USAGE: SortableList({ style: SortableList.styles.dark }) // The same as styleName: "dark". (The package is copied, never changed.)
|
|
1134
|
+
// NOTE: A new package needs only the keys that differ from the default (classic) style.
|
|
1135
|
+
// USAGE: SortableList.styles.myStyle = { row: { color: "ivory" } };
|
|
1136
|
+
SortableList.styles = {
|
|
1137
|
+
|
|
1138
|
+
// White rows with a thin border.
|
|
1139
|
+
classic: SortableListDefaults.style,
|
|
1140
|
+
|
|
1141
|
+
// Soft cadetblue rows, no border. Same colors as the modern Stepper, CheckBox, ProgressBar and Tabs.
|
|
1142
|
+
modern: {
|
|
1143
|
+
row: { color: "#EEF5F5", hoverColor: "#E4EFEF", border: 1, borderColor: "transparent", round: 12, padding: [14, 10], gap: 10, minHeight: 50 },
|
|
1144
|
+
rowFocus: { borderColor: "cadetblue" },
|
|
1145
|
+
rowDragging: { color: White(1), borderColor: "cadetblue", boxShadow: "0px 12px 28px rgba(47, 95, 97, 0.25)", scale: 1.02 },
|
|
1146
|
+
rowLocked: { color: "#F5F8F8" },
|
|
1147
|
+
handle: { iconColor: "#8FB5B6", hoverColor: "#2F5F61", size: 18 },
|
|
1148
|
+
number: { width: 22, fontSize: 13, textColor: "cadetblue", fontFamily: "opensans-bold" },
|
|
1149
|
+
text: { fontSize: 15, textColor: "#2F5F61", fontFamily: "" },
|
|
1150
|
+
desc: { fontSize: 12, textColor: "#6E9A9B" },
|
|
1151
|
+
button: { size: 28, iconSize: 14, iconColor: "#2F5F61", hoverColor: "#CFE2E2", round: 100, disabledOpacity: 0.25 },
|
|
1152
|
+
empty: { fontSize: 14, textColor: "#6E9A9B" },
|
|
1153
|
+
scrollBar: { bar_color: "#CFE2E2", bar_mouseOverColor: "cadetblue", bar_width: 4, bar_round: 3, bar_opacity: 0.6, bar_mouseOverOpacity: 1, bar_padding: 2 },
|
|
1154
|
+
},
|
|
1155
|
+
|
|
1156
|
+
// Dark theme, same colors as SelectBox, TagInput, Tabs and Stepper "dark".
|
|
1157
|
+
dark: {
|
|
1158
|
+
row: { color: "#232322", hoverColor: "#2A2A29", border: 1, borderColor: "rgba(255, 255, 255, 0.10)", round: 8, padding: [12, 10], gap: 10, minHeight: 48 },
|
|
1159
|
+
rowFocus: { borderColor: "#65A293" },
|
|
1160
|
+
rowDragging: { color: "#2C2C2B", borderColor: "#65A293", boxShadow: "0px 12px 28px rgba(0, 0, 0, 0.5)", scale: 1.02 },
|
|
1161
|
+
rowLocked: { color: "#1C1C1B" },
|
|
1162
|
+
handle: { iconColor: "rgba(255, 255, 255, 0.3)", hoverColor: "rgba(255, 255, 255, 0.8)", size: 18 },
|
|
1163
|
+
number: { width: 22, fontSize: 13, textColor: "#65A293", fontFamily: "opensans-bold" },
|
|
1164
|
+
text: { fontSize: 15, textColor: "rgba(255, 255, 255, 0.90)", fontFamily: "" },
|
|
1165
|
+
desc: { fontSize: 12, textColor: "rgba(255, 255, 255, 0.45)" },
|
|
1166
|
+
button: { size: 28, iconSize: 14, iconColor: "rgba(255, 255, 255, 0.75)", hoverColor: "rgba(255, 255, 255, 0.10)", round: 6, disabledOpacity: 0.25 },
|
|
1167
|
+
empty: { fontSize: 14, textColor: "rgba(255, 255, 255, 0.45)" },
|
|
1168
|
+
disabled: { opacity: 0.4 },
|
|
1169
|
+
scrollBar: { bar_color: "#8A8A88", bar_mouseOverColor: "#BFBFBD", bar_width: 4, bar_round: 3, bar_opacity: 0.4, bar_mouseOverOpacity: 0.9, bar_padding: 2 },
|
|
1170
|
+
},
|
|
1171
|
+
|
|
1172
|
+
};
|