create-basicjs 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/create-basicjs.js +2 -2
- package/bin/verify-package.js +16 -0
- package/package.json +4 -1
- package/payload/starter/AGENTS.md +82 -0
- package/payload/starter/CLAUDE.md +1 -0
- package/payload/starter/README.md +45 -0
- package/payload/starter/_basic/VERSION +1 -0
- package/payload/starter/_basic/assets/categories/cappuccino.png +0 -0
- package/payload/starter/_basic/assets/categories/chocolate-milk.png +0 -0
- package/payload/starter/_basic/assets/categories/coffee-cup.png +0 -0
- package/payload/starter/_basic/assets/categories/coffee.png +0 -0
- package/payload/starter/_basic/assets/categories/frappe.png +0 -0
- package/payload/starter/_basic/assets/categories/iced-caffee.png +0 -0
- package/payload/starter/_basic/assets/categories/milkshake.png +0 -0
- package/payload/starter/_basic/assets/categories/orange-juice.png +0 -0
- package/payload/starter/_basic/assets/categories/tea.png +0 -0
- package/payload/starter/_basic/assets/data-table/palette.svg +2 -0
- package/payload/starter/_basic/assets/data-table/people.js +104 -0
- package/payload/starter/_basic/assets/data-table/trash.svg +2 -0
- package/payload/starter/_basic/assets/fruids/brokoli.png +0 -0
- package/payload/starter/_basic/assets/fruids/cilek.png +0 -0
- package/payload/starter/_basic/assets/fruids/domates.png +0 -0
- package/payload/starter/_basic/assets/fruids/elma.png +0 -0
- package/payload/starter/_basic/assets/fruids/havuc.png +0 -0
- package/payload/starter/_basic/assets/fruids/karpuz.png +0 -0
- package/payload/starter/_basic/assets/fruids/limon.png +0 -0
- package/payload/starter/_basic/assets/fruids/muz.png +0 -0
- package/payload/starter/_basic/assets/fruids/nar.png +0 -0
- package/payload/starter/_basic/assets/fruids/patlican.png +0 -0
- package/payload/starter/_basic/assets/fruids/yabanmersini.png +0 -0
- package/payload/starter/_basic/assets/fruids/yesilbiber.png +0 -0
- package/payload/starter/_basic/assets/icons/alert-black.png +0 -0
- package/payload/starter/_basic/assets/icons/alert.png +0 -0
- package/payload/starter/_basic/assets/icons/arrow-drop.svg +3 -0
- package/payload/starter/_basic/assets/icons/arrow-rise.svg +3 -0
- package/payload/starter/_basic/assets/icons/close.svg +1 -0
- package/payload/starter/_basic/assets/icons/lamp-on.png +0 -0
- package/payload/starter/_basic/assets/icons/lamp.png +0 -0
- package/payload/starter/_basic/assets/icons/lock.png +0 -0
- package/payload/starter/_basic/assets/icons/panel.png +0 -0
- package/payload/starter/_basic/assets/icons/plant.png +0 -0
- package/payload/starter/_basic/assets/icons/trash.png +0 -0
- package/payload/starter/_basic/assets/icons/trash.svg +2 -0
- package/payload/starter/_basic/assets/tab-bar/settings.png +0 -0
- package/payload/starter/_basic/assets/tab-bar/status.png +0 -0
- package/payload/starter/_basic/assets/tab-bar/transactions.png +0 -0
- package/payload/starter/_basic/assets/tutorial/blueberries.png +0 -0
- package/payload/starter/_basic/assets/tutorial/carrot.png +0 -0
- package/payload/starter/_basic/assets/tutorial/olives.png +0 -0
- package/payload/starter/_basic/assets/tutorial/strawberry.png +0 -0
- package/payload/starter/_basic/assets/ui-bottom-bar/setting.svg +11 -0
- package/payload/starter/_basic/basic/LICENSE +14 -0
- package/payload/starter/_basic/basic/basic.css +277 -0
- package/payload/starter/_basic/basic/basic.js +3767 -0
- package/payload/starter/_basic/basic/basic.min.css +1 -0
- package/payload/starter/_basic/basic/basic.min.js +65 -0
- package/payload/starter/_basic/basic/font/open-sans/LICENSE.txt +206 -0
- package/payload/starter/_basic/basic/font/open-sans/OpenSans-Bold.ttf +0 -0
- package/payload/starter/_basic/basic/font/open-sans/OpenSans-Regular.ttf +0 -0
- package/payload/starter/_basic/basic/scroll-bar.js +536 -0
- package/payload/starter/_basic/basic/scroll-bar.min.js +2 -0
- package/payload/starter/_basic/comp/action-button/add.png +0 -0
- package/payload/starter/_basic/comp/action-button.js +522 -0
- package/payload/starter/_basic/comp/action-tab-bar.js +383 -0
- package/payload/starter/_basic/comp/app-bar.js +236 -0
- package/payload/starter/_basic/comp/badge-v2.js +246 -0
- package/payload/starter/_basic/comp/bottom-bar.js +547 -0
- package/payload/starter/_basic/comp/breadcrumbs.js +522 -0
- package/payload/starter/_basic/comp/chart-box/chart-4.5.1.umd.min.js +13 -0
- package/payload/starter/_basic/comp/chart-box/chart-js-LICENSE.md +9 -0
- package/payload/starter/_basic/comp/chart-box.js +868 -0
- package/payload/starter/_basic/comp/check-box.js +374 -0
- package/payload/starter/_basic/comp/context-menu.js +634 -0
- package/payload/starter/_basic/comp/currency-input-b.js +190 -0
- package/payload/starter/_basic/comp/data-table/arrow.svg +2 -0
- package/payload/starter/_basic/comp/data-table.js +865 -0
- package/payload/starter/_basic/comp/dialog.js +854 -0
- package/payload/starter/_basic/comp/email-input-b.js +57 -0
- package/payload/starter/_basic/comp/filters.js +493 -0
- package/payload/starter/_basic/comp/form.js +590 -0
- package/payload/starter/_basic/comp/full-screen-select/arrow.svg +2 -0
- package/payload/starter/_basic/comp/full-screen-select/cancel.svg +2 -0
- package/payload/starter/_basic/comp/full-screen-select.js +611 -0
- package/payload/starter/_basic/comp/gauge.js +435 -0
- package/payload/starter/_basic/comp/hold-to-confirm-button/trash-red.png +0 -0
- package/payload/starter/_basic/comp/hold-to-confirm-button/trash.png +0 -0
- package/payload/starter/_basic/comp/hold-to-confirm-button.js +280 -0
- package/payload/starter/_basic/comp/input-b.js +759 -0
- package/payload/starter/_basic/comp/item-list.js +1396 -0
- package/payload/starter/_basic/comp/label-editor.js +1137 -0
- package/payload/starter/_basic/comp/left-menu/_Material Symbols & Icons - Google Fonts.webloc +8 -0
- package/payload/starter/_basic/comp/left-menu/data-table.png +0 -0
- package/payload/starter/_basic/comp/left-menu/home.png +0 -0
- package/payload/starter/_basic/comp/left-menu/reports.png +0 -0
- package/payload/starter/_basic/comp/left-menu/setting.png +0 -0
- package/payload/starter/_basic/comp/left-menu.js +476 -0
- package/payload/starter/_basic/comp/line-progress-bar.js +192 -0
- package/payload/starter/_basic/comp/loading-screen.js +382 -0
- package/payload/starter/_basic/comp/login-page-v2.js +586 -0
- package/payload/starter/_basic/comp/mini-graph-box.js +483 -0
- package/payload/starter/_basic/comp/notice.js +227 -0
- package/payload/starter/_basic/comp/number-input-b.js +121 -0
- package/payload/starter/_basic/comp/numeric-keyboard.js +296 -0
- package/payload/starter/_basic/comp/page-control.js +745 -0
- package/payload/starter/_basic/comp/page-header.js +190 -0
- package/payload/starter/_basic/comp/password-input-b/hide-btn.png +0 -0
- package/payload/starter/_basic/comp/password-input-b/hide-btn2.png +0 -0
- package/payload/starter/_basic/comp/password-input-b/show-btn.png +0 -0
- package/payload/starter/_basic/comp/password-input-b/show-btn2.png +0 -0
- package/payload/starter/_basic/comp/password-input-b.js +164 -0
- package/payload/starter/_basic/comp/period-bar.js +435 -0
- package/payload/starter/_basic/comp/phone-input-b.js +287 -0
- package/payload/starter/_basic/comp/progress-bar.js +676 -0
- package/payload/starter/_basic/comp/property-panel.js +2740 -0
- package/payload/starter/_basic/comp/radio-button.js +467 -0
- package/payload/starter/_basic/comp/rich-text-editor.js +1061 -0
- package/payload/starter/_basic/comp/scrolling-text.js +296 -0
- package/payload/starter/_basic/comp/search-input-v2/clear-round.svg +1 -0
- package/payload/starter/_basic/comp/search-input-v2/clear.svg +1 -0
- package/payload/starter/_basic/comp/search-input-v2/filter.png +0 -0
- package/payload/starter/_basic/comp/search-input-v2/filter.svg +1 -0
- package/payload/starter/_basic/comp/search-input-v2/search.svg +1 -0
- package/payload/starter/_basic/comp/search-input-v2.js +427 -0
- package/payload/starter/_basic/comp/search-results.js +560 -0
- package/payload/starter/_basic/comp/select-box.js +1740 -0
- package/payload/starter/_basic/comp/select-color.js +603 -0
- package/payload/starter/_basic/comp/select-date.js +1003 -0
- package/payload/starter/_basic/comp/select-file.js +732 -0
- package/payload/starter/_basic/comp/select-time.js +979 -0
- package/payload/starter/_basic/comp/settings-row.js +298 -0
- package/payload/starter/_basic/comp/side-panel.js +573 -0
- package/payload/starter/_basic/comp/slider-field.js +776 -0
- package/payload/starter/_basic/comp/slider.js +368 -0
- package/payload/starter/_basic/comp/smart-button/alert-black.png +0 -0
- package/payload/starter/_basic/comp/smart-button/clock.png +0 -0
- package/payload/starter/_basic/comp/smart-button.js +896 -0
- package/payload/starter/_basic/comp/smart-table/clock.png +0 -0
- package/payload/starter/_basic/comp/smart-table/down.png +0 -0
- package/payload/starter/_basic/comp/smart-table/scroll.png +0 -0
- package/payload/starter/_basic/comp/smart-table/sort.png +0 -0
- package/payload/starter/_basic/comp/smart-table/up.png +0 -0
- package/payload/starter/_basic/comp/smart-table.js +1321 -0
- package/payload/starter/_basic/comp/sortable-list.js +1172 -0
- package/payload/starter/_basic/comp/spark-line-box.js +729 -0
- package/payload/starter/_basic/comp/stepper.js +699 -0
- package/payload/starter/_basic/comp/tabs.js +1317 -0
- package/payload/starter/_basic/comp/tag-input.js +1067 -0
- package/payload/starter/_basic/comp/tap-effect.js +168 -0
- package/payload/starter/_basic/comp/textarea-b.js +184 -0
- package/payload/starter/_basic/comp/time-line.js +324 -0
- package/payload/starter/_basic/comp/tiny-select/arrow.svg +1 -0
- package/payload/starter/_basic/comp/tiny-select.js +282 -0
- package/payload/starter/_basic/comp/tiny-table.js +279 -0
- package/payload/starter/_basic/comp/toast.js +838 -0
- package/payload/starter/_basic/comp/toggle.js +636 -0
- package/payload/starter/_basic/comp/tooltip.js +471 -0
- package/payload/starter/_basic/comp/tree-view.js +1096 -0
- package/payload/starter/_basic/comp/ui-effects.js +1091 -0
- package/payload/starter/_basic/comp/ui-standards.js +402 -0
- package/payload/starter/_basic/comp/url-input-b.js +145 -0
- package/payload/starter/_basic/comp/web-view.js +534 -0
- package/payload/starter/_basic/docs/basic-js-animated-rules.md +90 -0
- package/payload/starter/_basic/docs/basic-js-code-rules.md +91 -0
- package/payload/starter/_basic/docs/basic-js-components.md +134 -0
- package/payload/starter/_basic/docs/basic-js-core.md +131 -0
- package/payload/starter/_basic/docs/component-index.md +522 -0
- package/payload/starter/_basic/docs/component-template.js +416 -0
- package/payload/starter/_basic/docs/handbook/00-introduction.md +125 -0
- package/payload/starter/_basic/docs/handbook/00-what-is-new.md +96 -0
- package/payload/starter/_basic/docs/handbook/01-label.md +104 -0
- package/payload/starter/_basic/docs/handbook/02-box.md +166 -0
- package/payload/starter/_basic/docs/handbook/03-image.md +81 -0
- package/payload/starter/_basic/docs/handbook/04-common-properties.md +159 -0
- package/payload/starter/_basic/docs/handbook/05-autolayout.md +332 -0
- package/payload/starter/_basic/docs/handbook/06-button.md +103 -0
- package/payload/starter/_basic/docs/handbook/07-input.md +78 -0
- package/payload/starter/_basic/docs/handbook/08-page.md +120 -0
- package/payload/starter/_basic/docs/handbook/09-useful-examples.md +309 -0
- package/payload/starter/_basic/docs/handbook/10-motion.md +132 -0
- package/payload/starter/_basic/docs/handbook/11-other-functions.md +92 -0
- package/payload/starter/_basic/docs/handbook/12-utilities.md +123 -0
- package/payload/starter/_basic/docs/handbook/13-sound.md +88 -0
- package/payload/starter/_basic/docs/what-is-new.md +402 -0
- package/payload/starter/_basic/examples/action-button.htm +81 -0
- package/payload/starter/_basic/examples/action-tab-bar.htm +97 -0
- package/payload/starter/_basic/examples/app-bar.htm +140 -0
- package/payload/starter/_basic/examples/badgeV2.htm +68 -0
- package/payload/starter/_basic/examples/bottom-bar/grid.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/grids.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/home.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/homes.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon1.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon1s.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon2.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon2s.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon3.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon3s.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon4.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/icon4s.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/search.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/searchs.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/settings.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/settingss.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/tasks.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar/taskss.png +0 -0
- package/payload/starter/_basic/examples/bottom-bar-2.htm +187 -0
- package/payload/starter/_basic/examples/bottom-bar.htm +46 -0
- package/payload/starter/_basic/examples/breadcrumbs.htm +284 -0
- package/payload/starter/_basic/examples/chart-box.htm +287 -0
- package/payload/starter/_basic/examples/check-box-1.htm +220 -0
- package/payload/starter/_basic/examples/check-box-2.htm +212 -0
- package/payload/starter/_basic/examples/check-box-3.htm +179 -0
- package/payload/starter/_basic/examples/context-menu.htm +269 -0
- package/payload/starter/_basic/examples/currency-input-b.htm +71 -0
- package/payload/starter/_basic/examples/data-table-2.htm +67 -0
- package/payload/starter/_basic/examples/data-table-3.htm +72 -0
- package/payload/starter/_basic/examples/data-table-4.htm +144 -0
- package/payload/starter/_basic/examples/data-table-5.htm +152 -0
- package/payload/starter/_basic/examples/data-table.htm +178 -0
- package/payload/starter/_basic/examples/dialog-centered.htm +130 -0
- package/payload/starter/_basic/examples/dialog.htm +209 -0
- package/payload/starter/_basic/examples/email-input-b.htm +67 -0
- package/payload/starter/_basic/examples/filters.htm +115 -0
- package/payload/starter/_basic/examples/form-1.htm +123 -0
- package/payload/starter/_basic/examples/full-screen-select.htm +114 -0
- package/payload/starter/_basic/examples/gauge.htm +133 -0
- package/payload/starter/_basic/examples/hold-to-confirm-button.htm +144 -0
- package/payload/starter/_basic/examples/input-b-ex1.htm +132 -0
- package/payload/starter/_basic/examples/input-b-ex2.htm +136 -0
- package/payload/starter/_basic/examples/input-b-ex3-style.htm +113 -0
- package/payload/starter/_basic/examples/input-b-ex4-custom-unit.htm +112 -0
- package/payload/starter/_basic/examples/input-b-ex5-warning-icon.htm +80 -0
- package/payload/starter/_basic/examples/input-b-ex6-dark.htm +108 -0
- package/payload/starter/_basic/examples/input-b-ex7-ozden.htm +153 -0
- package/payload/starter/_basic/examples/item-list-2.htm +253 -0
- package/payload/starter/_basic/examples/item-list.htm +176 -0
- package/payload/starter/_basic/examples/label-editor.htm +196 -0
- package/payload/starter/_basic/examples/left-menu.htm +81 -0
- package/payload/starter/_basic/examples/line-progress-bar.htm +145 -0
- package/payload/starter/_basic/examples/loading-screen.htm +217 -0
- package/payload/starter/_basic/examples/login-page-dark-v2.htm +269 -0
- package/payload/starter/_basic/examples/login-page-v2.htm +269 -0
- package/payload/starter/_basic/examples/mini-graph-box.htm +229 -0
- package/payload/starter/_basic/examples/notice.htm +79 -0
- package/payload/starter/_basic/examples/number-input-b.htm +68 -0
- package/payload/starter/_basic/examples/numeric-keyboard.htm +100 -0
- package/payload/starter/_basic/examples/page-control.htm +262 -0
- package/payload/starter/_basic/examples/page-header.htm +117 -0
- package/payload/starter/_basic/examples/password-input-b.htm +70 -0
- package/payload/starter/_basic/examples/period-bar.htm +94 -0
- package/payload/starter/_basic/examples/phone-input-b-select-country.htm +298 -0
- package/payload/starter/_basic/examples/phone-input-b.htm +72 -0
- package/payload/starter/_basic/examples/progress-bar-ozden.htm +168 -0
- package/payload/starter/_basic/examples/progress-bar.htm +296 -0
- package/payload/starter/_basic/examples/property-panel.htm +216 -0
- package/payload/starter/_basic/examples/radio-button-1.htm +264 -0
- package/payload/starter/_basic/examples/radio-button-2.htm +256 -0
- package/payload/starter/_basic/examples/radio-button-3.htm +168 -0
- package/payload/starter/_basic/examples/rich-text-editor.htm +228 -0
- package/payload/starter/_basic/examples/scrolling-text.htm +75 -0
- package/payload/starter/_basic/examples/search-input-v2-ozden.htm +128 -0
- package/payload/starter/_basic/examples/search-input-v2-place.htm +80 -0
- package/payload/starter/_basic/examples/search-input-v2.htm +65 -0
- package/payload/starter/_basic/examples/search-results.htm +193 -0
- package/payload/starter/_basic/examples/select-box-ozden-item.htm +114 -0
- package/payload/starter/_basic/examples/select-box-ozden-text.htm +64 -0
- package/payload/starter/_basic/examples/select-box.htm +254 -0
- package/payload/starter/_basic/examples/select-color.htm +215 -0
- package/payload/starter/_basic/examples/select-date.htm +244 -0
- package/payload/starter/_basic/examples/select-file.htm +268 -0
- package/payload/starter/_basic/examples/select-time.htm +249 -0
- package/payload/starter/_basic/examples/settings-row.htm +193 -0
- package/payload/starter/_basic/examples/side-panel-2.htm +270 -0
- package/payload/starter/_basic/examples/side-panel.htm +219 -0
- package/payload/starter/_basic/examples/slider-field.htm +223 -0
- package/payload/starter/_basic/examples/slider.htm +180 -0
- package/payload/starter/_basic/examples/smart-button-2.htm +220 -0
- package/payload/starter/_basic/examples/smart-button-3-ozden.htm +320 -0
- package/payload/starter/_basic/examples/smart-button-4-dark.htm +102 -0
- package/payload/starter/_basic/examples/smart-button-5-features.htm +205 -0
- package/payload/starter/_basic/examples/smart-button.htm +252 -0
- package/payload/starter/_basic/examples/smart-table-1.htm +142 -0
- package/payload/starter/_basic/examples/smart-table-2.htm +191 -0
- package/payload/starter/_basic/examples/smart-table-3.htm +359 -0
- package/payload/starter/_basic/examples/smart-table-4.htm +158 -0
- package/payload/starter/_basic/examples/sortable-list.htm +250 -0
- package/payload/starter/_basic/examples/spark-line-box.htm +285 -0
- package/payload/starter/_basic/examples/stepper-2.htm +172 -0
- package/payload/starter/_basic/examples/stepper.htm +255 -0
- package/payload/starter/_basic/examples/tabs-2/coffee.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i1-white.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i1.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i2-white.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i2.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i3-white.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i3.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i4-white.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i4.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i5-white.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/i5.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/lamp-on.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/lamp.png +0 -0
- package/payload/starter/_basic/examples/tabs-2/search.svg +2 -0
- package/payload/starter/_basic/examples/tabs-2.htm +188 -0
- package/payload/starter/_basic/examples/tabs.htm +300 -0
- package/payload/starter/_basic/examples/tag-input.htm +242 -0
- package/payload/starter/_basic/examples/tap-effect.htm +100 -0
- package/payload/starter/_basic/examples/textarea-b.htm +76 -0
- package/payload/starter/_basic/examples/time-line.htm +226 -0
- package/payload/starter/_basic/examples/tiny-select.htm +86 -0
- package/payload/starter/_basic/examples/tiny-table.htm +109 -0
- package/payload/starter/_basic/examples/toast.htm +262 -0
- package/payload/starter/_basic/examples/toggle-2.htm +163 -0
- package/payload/starter/_basic/examples/toggle-3.htm +218 -0
- package/payload/starter/_basic/examples/toggle.htm +93 -0
- package/payload/starter/_basic/examples/tooltip-2.htm +177 -0
- package/payload/starter/_basic/examples/tooltip-3.htm +212 -0
- package/payload/starter/_basic/examples/tooltip.htm +124 -0
- package/payload/starter/_basic/examples/tree-view.htm +285 -0
- package/payload/starter/_basic/examples/ui-effects.htm +463 -0
- package/payload/starter/_basic/examples/ui-standards.htm +261 -0
- package/payload/starter/_basic/examples/unfinished-login-page-dark-supabase.htm +221 -0
- package/payload/starter/_basic/examples/unfinished-login-page-supabase.htm +221 -0
- package/payload/starter/_basic/examples/url-input-b.htm +85 -0
- package/payload/starter/_basic/examples/web-view.htm +241 -0
- package/payload/starter/_basic/min/action-button.min.js +2 -0
- package/payload/starter/_basic/min/action-tab-bar.min.js +2 -0
- package/payload/starter/_basic/min/app-bar.min.js +2 -0
- package/payload/starter/_basic/min/badge-v2.min.js +2 -0
- package/payload/starter/_basic/min/bottom-bar.min.js +2 -0
- package/payload/starter/_basic/min/breadcrumbs.min.js +2 -0
- package/payload/starter/_basic/min/chart-box.min.js +2 -0
- package/payload/starter/_basic/min/check-box.min.js +2 -0
- package/payload/starter/_basic/min/context-menu.min.js +2 -0
- package/payload/starter/_basic/min/currency-input-b.min.js +2 -0
- package/payload/starter/_basic/min/data-table.min.js +2 -0
- package/payload/starter/_basic/min/dialog.min.js +2 -0
- package/payload/starter/_basic/min/email-input-b.min.js +2 -0
- package/payload/starter/_basic/min/filters.min.js +2 -0
- package/payload/starter/_basic/min/form.min.js +2 -0
- package/payload/starter/_basic/min/full-screen-select.min.js +2 -0
- package/payload/starter/_basic/min/gauge.min.js +2 -0
- package/payload/starter/_basic/min/hold-to-confirm-button.min.js +2 -0
- package/payload/starter/_basic/min/input-b.min.js +2 -0
- package/payload/starter/_basic/min/item-list.min.js +2 -0
- package/payload/starter/_basic/min/label-editor.min.js +2 -0
- package/payload/starter/_basic/min/left-menu.min.js +2 -0
- package/payload/starter/_basic/min/line-progress-bar.min.js +2 -0
- package/payload/starter/_basic/min/loading-screen.min.js +2 -0
- package/payload/starter/_basic/min/login-page-v2.min.js +2 -0
- package/payload/starter/_basic/min/mini-graph-box.min.js +2 -0
- package/payload/starter/_basic/min/notice.min.js +2 -0
- package/payload/starter/_basic/min/number-input-b.min.js +2 -0
- package/payload/starter/_basic/min/numeric-keyboard.min.js +2 -0
- package/payload/starter/_basic/min/page-control.min.js +2 -0
- package/payload/starter/_basic/min/page-header.min.js +2 -0
- package/payload/starter/_basic/min/password-input-b.min.js +2 -0
- package/payload/starter/_basic/min/period-bar.min.js +2 -0
- package/payload/starter/_basic/min/phone-input-b.min.js +2 -0
- package/payload/starter/_basic/min/progress-bar.min.js +2 -0
- package/payload/starter/_basic/min/property-panel.min.js +2 -0
- package/payload/starter/_basic/min/radio-button.min.js +2 -0
- package/payload/starter/_basic/min/rich-text-editor.min.js +2 -0
- package/payload/starter/_basic/min/scrolling-text.min.js +2 -0
- package/payload/starter/_basic/min/search-input-v2.min.js +2 -0
- package/payload/starter/_basic/min/search-results.min.js +2 -0
- package/payload/starter/_basic/min/select-box.min.js +2 -0
- package/payload/starter/_basic/min/select-color.min.js +2 -0
- package/payload/starter/_basic/min/select-date.min.js +2 -0
- package/payload/starter/_basic/min/select-file.min.js +2 -0
- package/payload/starter/_basic/min/select-time.min.js +2 -0
- package/payload/starter/_basic/min/settings-row.min.js +2 -0
- package/payload/starter/_basic/min/side-panel.min.js +2 -0
- package/payload/starter/_basic/min/slider-field.min.js +2 -0
- package/payload/starter/_basic/min/slider.min.js +2 -0
- package/payload/starter/_basic/min/smart-button.min.js +2 -0
- package/payload/starter/_basic/min/smart-table.min.js +2 -0
- package/payload/starter/_basic/min/sortable-list.min.js +2 -0
- package/payload/starter/_basic/min/spark-line-box.min.js +2 -0
- package/payload/starter/_basic/min/stepper.min.js +2 -0
- package/payload/starter/_basic/min/tabs.min.js +2 -0
- package/payload/starter/_basic/min/tag-input.min.js +2 -0
- package/payload/starter/_basic/min/tap-effect.min.js +2 -0
- package/payload/starter/_basic/min/textarea-b.min.js +2 -0
- package/payload/starter/_basic/min/time-line.min.js +2 -0
- package/payload/starter/_basic/min/tiny-select.min.js +2 -0
- package/payload/starter/_basic/min/tiny-table.min.js +2 -0
- package/payload/starter/_basic/min/toast.min.js +2 -0
- package/payload/starter/_basic/min/toggle.min.js +2 -0
- package/payload/starter/_basic/min/tooltip.min.js +2 -0
- package/payload/starter/_basic/min/tree-view.min.js +2 -0
- package/payload/starter/_basic/min/ui-effects.min.js +2 -0
- package/payload/starter/_basic/min/ui-standards.min.js +2 -0
- package/payload/starter/_basic/min/url-input-b.min.js +2 -0
- package/payload/starter/_basic/min/web-view.min.js +2 -0
- package/payload/starter/_basic/tools/build.js +175 -0
- package/payload/starter/_basic/tools/check.js +318 -0
- package/payload/starter/app/app.js +27 -0
- package/payload/starter/assets/.gitkeep +0 -0
- package/payload/starter/gitignore +3 -0
- package/payload/starter/index.htm +23 -0
- package/payload/templates/booking/TEMPLATE.md +77 -0
- package/payload/templates/booking/app/app.js +722 -0
- package/payload/templates/booking/app/settings.js +52 -0
- package/payload/templates/booking/app/store.js +265 -0
- package/payload/templates/booking/app/texts.js +148 -0
- package/payload/templates/booking/assets/app-icon.svg +1 -0
- package/payload/templates/booking/assets/tabs/account.svg +1 -0
- package/payload/templates/booking/assets/tabs/appointments.svg +1 -0
- package/payload/templates/booking/assets/tabs/home.svg +1 -0
- package/payload/templates/booking/assets/tabs/services.svg +1 -0
- package/payload/templates/booking/components/booking-ui.js +252 -0
- package/payload/templates/booking/index.htm +53 -0
- package/payload/templates/booking/pages/account.js +124 -0
- package/payload/templates/booking/pages/appointments.js +141 -0
- package/payload/templates/booking/pages/book.js +231 -0
- package/payload/templates/booking/pages/home.js +99 -0
- package/payload/templates/booking/pages/services.js +79 -0
- package/payload/templates/classic/TEMPLATE.md +104 -0
- package/payload/templates/classic/app/app.js +779 -0
- package/payload/templates/classic/app/settings.js +77 -0
- package/payload/templates/classic/assets/_attribute.txt +37 -0
- package/payload/templates/classic/assets/cards/dill.png +0 -0
- package/payload/templates/classic/assets/cards/fennel.png +0 -0
- package/payload/templates/classic/assets/cards/juniper.png +0 -0
- package/payload/templates/classic/assets/cards/olives.png +0 -0
- package/payload/templates/classic/assets/cards/oregano.png +0 -0
- package/payload/templates/classic/assets/cards/pepper.png +0 -0
- package/payload/templates/classic/assets/cards/rosehip.png +0 -0
- package/payload/templates/classic/assets/categories/cappuccino.png +0 -0
- package/payload/templates/classic/assets/categories/chocolate-milk.png +0 -0
- package/payload/templates/classic/assets/categories/coffee-cup.png +0 -0
- package/payload/templates/classic/assets/categories/coffee.png +0 -0
- package/payload/templates/classic/assets/categories/frappe.png +0 -0
- package/payload/templates/classic/assets/categories/iced-caffee.png +0 -0
- package/payload/templates/classic/assets/categories/milkshake.png +0 -0
- package/payload/templates/classic/assets/categories/orange-juice.png +0 -0
- package/payload/templates/classic/assets/categories/tea.png +0 -0
- package/payload/templates/classic/assets/example-tabs/coffee.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i1-white.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i1.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i2-white.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i2.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i3-white.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i3.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i4-white.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i4.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i5-white.png +0 -0
- package/payload/templates/classic/assets/example-tabs/i5.png +0 -0
- package/payload/templates/classic/assets/example-tabs/lamp-on.png +0 -0
- package/payload/templates/classic/assets/example-tabs/lamp.png +0 -0
- package/payload/templates/classic/assets/example-tabs/search.svg +2 -0
- package/payload/templates/classic/assets/files/ai.png +0 -0
- package/payload/templates/classic/assets/files/doc.png +0 -0
- package/payload/templates/classic/assets/files/folder.png +0 -0
- package/payload/templates/classic/assets/files/js.png +0 -0
- package/payload/templates/classic/assets/files/pdf.png +0 -0
- package/payload/templates/classic/assets/files/txt.png +0 -0
- package/payload/templates/classic/assets/files/xls.png +0 -0
- package/payload/templates/classic/assets/icons/arrow-drop.svg +3 -0
- package/payload/templates/classic/assets/icons/arrow-rise.svg +3 -0
- package/payload/templates/classic/assets/icons/download.svg +18 -0
- package/payload/templates/classic/assets/icons/lamp-on.png +0 -0
- package/payload/templates/classic/assets/icons/lamp.png +0 -0
- package/payload/templates/classic/assets/icons/lock-small.png +0 -0
- package/payload/templates/classic/assets/icons/lock.png +0 -0
- package/payload/templates/classic/assets/icons/logo.png +0 -0
- package/payload/templates/classic/assets/icons/trash-red.svg +2 -0
- package/payload/templates/classic/assets/icons/trash.svg +2 -0
- package/payload/templates/classic/assets/menu/t1.png +0 -0
- package/payload/templates/classic/assets/menu/t10.png +0 -0
- package/payload/templates/classic/assets/menu/t11.png +0 -0
- package/payload/templates/classic/assets/menu/t2.png +0 -0
- package/payload/templates/classic/assets/menu/t3.png +0 -0
- package/payload/templates/classic/assets/menu/t4.png +0 -0
- package/payload/templates/classic/assets/menu/t5.png +0 -0
- package/payload/templates/classic/assets/menu/t6.png +0 -0
- package/payload/templates/classic/assets/menu/t7.png +0 -0
- package/payload/templates/classic/assets/menu/t8.png +0 -0
- package/payload/templates/classic/assets/menu/t9.png +0 -0
- package/payload/templates/classic/assets/products/brokoli.png +0 -0
- package/payload/templates/classic/assets/products/cilek.png +0 -0
- package/payload/templates/classic/assets/products/domates.png +0 -0
- package/payload/templates/classic/assets/products/elma.png +0 -0
- package/payload/templates/classic/assets/products/havuc.png +0 -0
- package/payload/templates/classic/assets/products/karpuz.png +0 -0
- package/payload/templates/classic/assets/products/limon.png +0 -0
- package/payload/templates/classic/assets/products/muz.png +0 -0
- package/payload/templates/classic/assets/products/nar.png +0 -0
- package/payload/templates/classic/assets/products/patlican.png +0 -0
- package/payload/templates/classic/assets/products/yabanmersini.png +0 -0
- package/payload/templates/classic/assets/products/yesilbiber.png +0 -0
- package/payload/templates/classic/assets/tab-bar/settings.png +0 -0
- package/payload/templates/classic/assets/tab-bar/status.png +0 -0
- package/payload/templates/classic/assets/tab-bar/transactions.png +0 -0
- package/payload/templates/classic/assets/tabs/grid.png +0 -0
- package/payload/templates/classic/assets/tabs/grids.png +0 -0
- package/payload/templates/classic/assets/tabs/home.png +0 -0
- package/payload/templates/classic/assets/tabs/homes.png +0 -0
- package/payload/templates/classic/assets/tabs/search.png +0 -0
- package/payload/templates/classic/assets/tabs/searchs.png +0 -0
- package/payload/templates/classic/assets/tabs/settings.png +0 -0
- package/payload/templates/classic/assets/tabs/settingss.png +0 -0
- package/payload/templates/classic/assets/tabs/tasks.png +0 -0
- package/payload/templates/classic/assets/tabs/taskss.png +0 -0
- package/payload/templates/classic/html/privacy.htm +58 -0
- package/payload/templates/classic/index.htm +70 -0
- package/payload/templates/classic/pages/dialogs.js +205 -0
- package/payload/templates/classic/pages/example.js +296 -0
- package/payload/templates/classic/pages/examples.js +148 -0
- package/payload/templates/classic/pages/home.js +268 -0
- package/payload/templates/classic/pages/info-pages.js +95 -0
- package/payload/templates/classic/pages/lock.js +70 -0
- package/payload/templates/classic/pages/search.js +153 -0
- package/payload/templates/classic/pages/settings.js +184 -0
- package/payload/templates/classic/pages/tasks.js +221 -0
- package/payload/templates/classic/pages/template-pages.js +240 -0
- package/payload/templates/coffee-shop/TEMPLATE.md +63 -0
- package/payload/templates/coffee-shop/app/app.js +713 -0
- package/payload/templates/coffee-shop/app/settings.js +20 -0
- package/payload/templates/coffee-shop/app/store.js +52 -0
- package/payload/templates/coffee-shop/assets/cappuccino.png +0 -0
- package/payload/templates/coffee-shop/assets/chocolate-milk.png +0 -0
- package/payload/templates/coffee-shop/assets/coffee-art/cocoa.svg +1 -0
- package/payload/templates/coffee-shop/assets/coffee-art/filter.svg +1 -0
- package/payload/templates/coffee-shop/assets/coffee-art/frappe.svg +1 -0
- package/payload/templates/coffee-shop/assets/coffee-art/iced.svg +1 -0
- package/payload/templates/coffee-shop/assets/coffee-art/latte.svg +1 -0
- package/payload/templates/coffee-shop/assets/coffee-art/tea.svg +1 -0
- package/payload/templates/coffee-shop/assets/coffee.png +0 -0
- package/payload/templates/coffee-shop/assets/credits.txt +41 -0
- package/payload/templates/coffee-shop/assets/fonts/OFL.txt +93 -0
- package/payload/templates/coffee-shop/assets/fonts/gelasio-OFL.txt +93 -0
- package/payload/templates/coffee-shop/assets/fonts/gelasio.ttf +0 -0
- package/payload/templates/coffee-shop/assets/frappe.png +0 -0
- package/payload/templates/coffee-shop/assets/iced-caffee.png +0 -0
- package/payload/templates/coffee-shop/assets/tabs/cart.svg +1 -0
- package/payload/templates/coffee-shop/assets/tabs/home.svg +1 -0
- package/payload/templates/coffee-shop/assets/tabs/menu.svg +1 -0
- package/payload/templates/coffee-shop/assets/tabs/rewards.svg +1 -0
- package/payload/templates/coffee-shop/assets/tea.png +0 -0
- package/payload/templates/coffee-shop/components/coffee-ui.js +246 -0
- package/payload/templates/coffee-shop/index.htm +55 -0
- package/payload/templates/coffee-shop/pages/cart.js +82 -0
- package/payload/templates/coffee-shop/pages/drink.js +74 -0
- package/payload/templates/coffee-shop/pages/home.js +54 -0
- package/payload/templates/coffee-shop/pages/menu.js +53 -0
- package/payload/templates/coffee-shop/pages/rewards.js +38 -0
- package/payload/templates/forms/TEMPLATE.md +12 -0
- package/payload/templates/forms/app/app.js +30 -0
- package/payload/templates/forms/appointment-form.htm +969 -0
- package/payload/templates/forms/assets/error.png +0 -0
- package/payload/templates/forms/assets/logo.png +0 -0
- package/payload/templates/forms/assets/logo2.png +0 -0
- package/payload/templates/forms/assets/mail.png +0 -0
- package/payload/templates/forms/assets/success.png +0 -0
- package/payload/templates/forms/contact-form-iframe.htm +24 -0
- package/payload/templates/forms/contact-form-table.sql +11 -0
- package/payload/templates/forms/contact-form-to-mail.htm +358 -0
- package/payload/templates/forms/contact-form-to-supabase.htm +396 -0
- package/payload/templates/forms/dark-contact-form.htm +623 -0
- package/payload/templates/forms/event-registration-form.htm +1056 -0
- package/payload/templates/forms/feedback-form.htm +813 -0
- package/payload/templates/forms/order-form.htm +1187 -0
- package/payload/templates/forms/recruitment-form.htm +698 -0
- package/payload/templates/forms/service/PHPMailer/Exception.php +40 -0
- package/payload/templates/forms/service/PHPMailer/LICENSE +502 -0
- package/payload/templates/forms/service/PHPMailer/PHPMailer.php +5586 -0
- package/payload/templates/forms/service/PHPMailer/SMTP.php +1617 -0
- package/payload/templates/forms/service/readme.md +162 -0
- package/payload/templates/forms/service/send-form-mail.php +941 -0
- package/payload/templates/forms/support-ticket-form.htm +908 -0
- package/payload/templates/panel/TEMPLATE.md +16 -0
- package/payload/templates/panel/assets/_Material Symbols & Icons - Google Fonts.webloc +8 -0
- package/payload/templates/panel/assets/arrow_down.png +0 -0
- package/payload/templates/panel/assets/close.png +0 -0
- package/payload/templates/panel/assets/left-menu/bolt.png +0 -0
- package/payload/templates/panel/assets/left-menu/brick.png +0 -0
- package/payload/templates/panel/assets/left-menu/code.png +0 -0
- package/payload/templates/panel/assets/left-menu/dashboard.png +0 -0
- package/payload/templates/panel/assets/left-menu/data-table.png +0 -0
- package/payload/templates/panel/assets/left-menu/extension.png +0 -0
- package/payload/templates/panel/assets/left-menu/home.png +0 -0
- package/payload/templates/panel/assets/left-menu/reports.png +0 -0
- package/payload/templates/panel/assets/left-menu/setting.png +0 -0
- package/payload/templates/panel/assets/left-menu/url.png +0 -0
- package/payload/templates/panel/assets/light.png +0 -0
- package/payload/templates/panel/assets/maybe.png +0 -0
- package/payload/templates/panel/assets/panel-icon.png +0 -0
- package/payload/templates/panel/assets/top-bar/add.png +0 -0
- package/payload/templates/panel/assets/top-bar/add.svg +1 -0
- package/payload/templates/panel/assets/top-bar/apps.png +0 -0
- package/payload/templates/panel/assets/top-bar/apps.svg +1 -0
- package/payload/templates/panel/assets/top-bar/arrow-down.svg +1 -0
- package/payload/templates/panel/assets/top-bar/bell.svg +1 -0
- package/payload/templates/panel/assets/top-bar/bookmark.png +0 -0
- package/payload/templates/panel/assets/top-bar/bookmark.svg +1 -0
- package/payload/templates/panel/assets/top-bar/cancel.png +0 -0
- package/payload/templates/panel/assets/top-bar/close.svg +1 -0
- package/payload/templates/panel/assets/top-bar/comment.png +0 -0
- package/payload/templates/panel/assets/top-bar/filter.png +0 -0
- package/payload/templates/panel/assets/top-bar/keyboard.svg +1 -0
- package/payload/templates/panel/assets/top-bar/notification.png +0 -0
- package/payload/templates/panel/assets/top-bar/search.png +0 -0
- package/payload/templates/panel/assets/top-bar/search.svg +1 -0
- package/payload/templates/panel/assets/top-bar/user.png +0 -0
- package/payload/templates/panel/assets/top-bar/user.svg +1 -0
- package/payload/templates/panel/assets/warning.png +0 -0
- package/payload/templates/panel/common/bridge.js +1 -0
- package/payload/templates/panel/common/bridge.min.js +0 -0
- package/payload/templates/panel/common/components.js +12 -0
- package/payload/templates/panel/common/full-view.js +107 -0
- package/payload/templates/panel/common/full-view.min.js +1 -0
- package/payload/templates/panel/common/main-view.js +53 -0
- package/payload/templates/panel/common/main-view.min.js +1 -0
- package/payload/templates/panel/common/module-page.js +46 -0
- package/payload/templates/panel/common/module-page.min.js +1 -0
- package/payload/templates/panel/common/right-view.js +77 -0
- package/payload/templates/panel/common/right-view.min.js +1 -0
- package/payload/templates/panel/common/start-page.js +31 -0
- package/payload/templates/panel/common/start-page.min.js +1 -0
- package/payload/templates/panel/common/theme.js +491 -0
- package/payload/templates/panel/common/top-bar-v25-07-29-1.js +330 -0
- package/payload/templates/panel/common/top-bar-v25-07-29-2.js +265 -0
- package/payload/templates/panel/common/top-bar.js +855 -0
- package/payload/templates/panel/common/top-bar.min.js +1 -0
- package/payload/templates/panel/common/ui-standards.css +77 -0
- package/payload/templates/panel/common/ui-standards.js +133 -0
- package/payload/templates/panel/common/ui-standards.min.css +1 -0
- package/payload/templates/panel/common/ui-standards.min.js +1 -0
- package/payload/templates/panel/index.htm +642 -0
- package/payload/templates/panel/managers/database.js +1 -0
- package/payload/templates/panel/managers/database.min.js +1 -0
- package/payload/templates/panel/managers/login.js +2 -0
- package/payload/templates/panel/managers/login.min.js +1 -0
- package/payload/templates/panel/module1/empty-main.htm +26 -0
- package/payload/templates/panel/module10/greenhouse.htm +1361 -0
- package/payload/templates/panel/module11/arduino-projects.htm +1124 -0
- package/payload/templates/panel/module2/empty-full.htm +26 -0
- package/payload/templates/panel/module3/empty-right.htm +26 -0
- package/payload/templates/panel/module4/empty-main-topbar.htm +26 -0
- package/payload/templates/panel/module5/empty-right-topbar.htm +26 -0
- package/payload/templates/panel/module6/energy-hub.htm +1507 -0
- package/payload/templates/panel/module7/3d-printers.htm +1258 -0
- package/payload/templates/panel/module8/cold-rooms.htm +1250 -0
- package/payload/templates/panel/module9/elevator-fleet.htm +1488 -0
- package/payload/templates/panel/pages/_page-template.js +36 -0
- package/payload/templates/panel/pages/_page-template.min.js +1 -0
- package/payload/templates/panel/pages/activity.js +1072 -0
- package/payload/templates/panel/pages/contents.js +1555 -0
- package/payload/templates/panel/pages/contents.min.js +1 -0
- package/payload/templates/panel/pages/customers.js +1171 -0
- package/payload/templates/panel/pages/edit-user.js +381 -0
- package/payload/templates/panel/pages/edit-user.min.js +1 -0
- package/payload/templates/panel/pages/edit-users-table.min.js +1 -0
- package/payload/templates/panel/pages/home.js +637 -0
- package/payload/templates/panel/pages/home.min.js +1 -0
- package/payload/templates/panel/pages/media.js +1538 -0
- package/payload/templates/panel/pages/notifications.js +542 -0
- package/payload/templates/panel/pages/notifications.min.js +1 -0
- package/payload/templates/panel/pages/orders.js +1147 -0
- package/payload/templates/panel/pages/products.js +1281 -0
- package/payload/templates/panel/pages/reports.js +1138 -0
- package/payload/templates/panel/pages/reports.min.js +1 -0
- package/payload/templates/panel/pages/roles.js +1096 -0
- package/payload/templates/panel/pages/settings.js +1462 -0
- package/payload/templates/panel/pages/settings.min.js +1 -0
- package/payload/templates/panel/pages/user-actions.js +456 -0
- package/payload/templates/panel/pages/user-actions.min.js +2 -0
- package/payload/templates/panel/pages/user-list.js +1113 -0
- package/payload/templates/panel/pages/users.js +334 -0
- package/payload/templates/panel/pages/users.min.js +1 -0
- package/payload/templates/shop/TEMPLATE.md +69 -0
- package/payload/templates/shop/app/app.js +727 -0
- package/payload/templates/shop/app/art.js +89 -0
- package/payload/templates/shop/app/settings.js +45 -0
- package/payload/templates/shop/app/store.js +239 -0
- package/payload/templates/shop/app/texts.js +232 -0
- package/payload/templates/shop/assets/app-icon.svg +1 -0
- package/payload/templates/shop/assets/tabs/account.svg +1 -0
- package/payload/templates/shop/assets/tabs/cart.svg +1 -0
- package/payload/templates/shop/assets/tabs/home.svg +1 -0
- package/payload/templates/shop/assets/tabs/shop.svg +1 -0
- package/payload/templates/shop/components/shop-ui.js +343 -0
- package/payload/templates/shop/index.htm +57 -0
- package/payload/templates/shop/pages/account.js +190 -0
- package/payload/templates/shop/pages/cart.js +116 -0
- package/payload/templates/shop/pages/checkout.js +134 -0
- package/payload/templates/shop/pages/favorites.js +37 -0
- package/payload/templates/shop/pages/home.js +86 -0
- package/payload/templates/shop/pages/orders.js +132 -0
- package/payload/templates/shop/pages/product.js +168 -0
- package/payload/templates/shop/pages/shop.js +113 -0
- package/payload/templates/starter/TEMPLATE.md +107 -0
- package/payload/templates/starter/app/app.js +660 -0
- package/payload/templates/starter/app/settings.js +57 -0
- package/payload/templates/starter/assets/app-icon.svg +5 -0
- package/payload/templates/starter/assets/products/brokoli.png +0 -0
- package/payload/templates/starter/assets/products/cilek.png +0 -0
- package/payload/templates/starter/assets/products/domates.png +0 -0
- package/payload/templates/starter/assets/products/elma.png +0 -0
- package/payload/templates/starter/assets/products/havuc.png +0 -0
- package/payload/templates/starter/assets/products/karpuz.png +0 -0
- package/payload/templates/starter/assets/products/limon.png +0 -0
- package/payload/templates/starter/assets/products/muz.png +0 -0
- package/payload/templates/starter/assets/products/nar.png +0 -0
- package/payload/templates/starter/assets/products/patlican.png +0 -0
- package/payload/templates/starter/assets/products/yabanmersini.png +0 -0
- package/payload/templates/starter/assets/products/yesilbiber.png +0 -0
- package/payload/templates/starter/assets/tabs/grid.png +0 -0
- package/payload/templates/starter/assets/tabs/grids.png +0 -0
- package/payload/templates/starter/assets/tabs/home.png +0 -0
- package/payload/templates/starter/assets/tabs/homes.png +0 -0
- package/payload/templates/starter/assets/tabs/settings.png +0 -0
- package/payload/templates/starter/assets/tabs/settingss.png +0 -0
- package/payload/templates/starter/assets/tabs/tasks.png +0 -0
- package/payload/templates/starter/assets/tabs/taskss.png +0 -0
- package/payload/templates/starter/html/about.htm +54 -0
- package/payload/templates/starter/index.htm +57 -0
- package/payload/templates/starter/pages/about.js +23 -0
- package/payload/templates/starter/pages/home.js +81 -0
- package/payload/templates/starter/pages/product.js +45 -0
- package/payload/templates/starter/pages/products.js +61 -0
- package/payload/templates/starter/pages/settings.js +103 -0
- package/payload/templates/starter/pages/tasks.js +187 -0
- package/payload/templates/starter/pages/website.js +29 -0
|
@@ -0,0 +1,1488 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
|
|
5
|
+
<title>Elevator Fleet</title>
|
|
6
|
+
|
|
7
|
+
<meta charset="UTF-8">
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0"><!-- , user-scalable=no -->
|
|
9
|
+
|
|
10
|
+
<!-- LIBRARY FILES -->
|
|
11
|
+
<link rel="preload" href="../_basic/basic/font/open-sans/OpenSans-Regular.ttf" as="font" crossorigin="anonymous">
|
|
12
|
+
<link rel="stylesheet" type="text/css" href="../_basic/basic/basic.min.css">
|
|
13
|
+
<script src="../_basic/basic/basic.js" type="text/javascript" charset="utf-8"></script>
|
|
14
|
+
<script src="../common/theme.js" type="text/javascript" charset="utf-8"></script>
|
|
15
|
+
|
|
16
|
+
<!-- COMPONENTS -->
|
|
17
|
+
<script src="../_basic/comp/tiny-select.js" type="text/javascript" charset="utf-8"></script>
|
|
18
|
+
<script src="../_basic/comp/tiny-table.js" type="text/javascript" charset="utf-8"></script>
|
|
19
|
+
<script src="../_basic/comp/slider.js" type="text/javascript" charset="utf-8"></script>
|
|
20
|
+
<script src="../_basic/comp/smart-button.js" type="text/javascript" charset="utf-8"></script>
|
|
21
|
+
<script src="../_basic/comp/dialog.js" type="text/javascript" charset="utf-8"></script>
|
|
22
|
+
<script src="../_basic/comp/check-box.js" type="text/javascript" charset="utf-8"></script>
|
|
23
|
+
<script src="../_basic/comp/radio-button.js" type="text/javascript" charset="utf-8"></script>
|
|
24
|
+
<script src="../_basic/comp/hold-to-confirm-button.js" type="text/javascript" charset="utf-8"></script>
|
|
25
|
+
<script src="../_basic/comp/spark-line-box.js" type="text/javascript" charset="utf-8"></script>
|
|
26
|
+
<script src="../_basic/comp/chart-box.js" type="text/javascript" charset="utf-8"></script>
|
|
27
|
+
<script src="../_basic/comp/context-menu.js" type="text/javascript" charset="utf-8"></script>
|
|
28
|
+
<script src="../_basic/comp/select-date.js" type="text/javascript" charset="utf-8"></script>
|
|
29
|
+
|
|
30
|
+
<!--
|
|
31
|
+
|
|
32
|
+
/* Bismillah */
|
|
33
|
+
|
|
34
|
+
Module #9: Elevator Fleet (Template) - v26.09
|
|
35
|
+
|
|
36
|
+
- Monitors and controls a fleet of 3 elevators in one building: a live shaft diagram (position, doors,
|
|
37
|
+
direction, hall calls), per-car mode (Normal / Attendant / Independent / Out of Service), a car panel
|
|
38
|
+
(manual floor buttons, open/close door), express floor lockout, load / overload, emergency recall,
|
|
39
|
+
maintenance hours and an inspection date.
|
|
40
|
+
- Dispatch is a simple "nearest available car" simulation. Runs inside the admin panel (iframe), but it
|
|
41
|
+
can work alone too.
|
|
42
|
+
- Simulation: 1 second = 1 tick. Replace the "FLEET SERVICE" functions with your elevator controller API
|
|
43
|
+
(BACnet, a vendor cloud API, KNX...).
|
|
44
|
+
|
|
45
|
+
-->
|
|
46
|
+
|
|
47
|
+
<script>
|
|
48
|
+
|
|
49
|
+
// *** CONSTANTS:
|
|
50
|
+
const LIB_PATH = "../_basic/";
|
|
51
|
+
const ASSETS = "../assets/";
|
|
52
|
+
|
|
53
|
+
const PAGE_COLOR = T.page;
|
|
54
|
+
const CARD_COLOR = T.surface;
|
|
55
|
+
const CARD_BORDER_COLOR = Ink(0.1);
|
|
56
|
+
const FIELD_COLOR = T.surface2;
|
|
57
|
+
const PRIMARY_COLOR = T.primary;
|
|
58
|
+
const ACCENT_COLOR = T.accent;
|
|
59
|
+
const WARNING_COLOR = T.warning;
|
|
60
|
+
const ERROR_COLOR = T.danger;
|
|
61
|
+
|
|
62
|
+
// One color for each car, used everywhere (shaft, charts, badges).
|
|
63
|
+
const FLEET_COLORS = { A: T.accent, B: T.info, C: "#9085E9" };
|
|
64
|
+
|
|
65
|
+
// Floors from the bottom to the top. "L": Lobby (ground floor).
|
|
66
|
+
const FLOORS = ["B1", "L", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
67
|
+
const LOBBY_INDEX = 1;
|
|
68
|
+
const TOP_INDEX = FLOORS.length - 1;
|
|
69
|
+
|
|
70
|
+
const CHART_COUNT = 60; // Seconds on the line chart
|
|
71
|
+
const HISTORY_COUNT = 60; // Values kept for the mini graphs
|
|
72
|
+
|
|
73
|
+
const STATUS_LIST = {
|
|
74
|
+
idle: { text: "Idle", color: Theme.readable("#A9A79F") },
|
|
75
|
+
moving: { text: "Moving", color: ACCENT_COLOR },
|
|
76
|
+
doors: { text: "Doors Open", color: WARNING_COLOR },
|
|
77
|
+
outOfService: { text: "Out of Service", color: "#898781" },
|
|
78
|
+
alarm: { text: "Alarm", color: ERROR_COLOR },
|
|
79
|
+
emergency: { text: "Emergency Recall", color: ERROR_COLOR },
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const MODES = [
|
|
83
|
+
{ value: "normal", text: "Normal", desc: "Answers hall calls automatically" },
|
|
84
|
+
{ value: "attendant", text: "Attendant", desc: "Only the car panel works, hall calls are ignored" },
|
|
85
|
+
{ value: "independent", text: "Independent", desc: "Like Attendant. Skip-floors are ignored, doors stay open" },
|
|
86
|
+
{ value: "outOfService", text: "Out of Service", desc: "Parked. Does not answer any calls" },
|
|
87
|
+
];
|
|
88
|
+
|
|
89
|
+
// *** TEST DATA: (FLEET SERVICE)
|
|
90
|
+
const CARS = [
|
|
91
|
+
{
|
|
92
|
+
id: "A", key: "A", name: "Car A", model: "Standard · 13 person", serial: "TKE-EVA-2024-01",
|
|
93
|
+
floorPos: LOBBY_INDEX, speed: 0.5, capacity: 1000,
|
|
94
|
+
mode: "normal", stops: [], doorState: "closed", doorTimer: 0,
|
|
95
|
+
direction: "idle", status: "idle", load: 0, overloaded: 0,
|
|
96
|
+
serviceFloors: FLOORS.map(function () { return true; }),
|
|
97
|
+
motorHours: 842, doorCyclesTotal: 15230, doorCycles: 0, tripsToday: 0, faults: 0,
|
|
98
|
+
inspection: { last: "2026-03-14", next: "2026-10-01" },
|
|
99
|
+
history: { labels: [], floor: [] }, events: [],
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
id: "B", key: "B", name: "Car B", model: "Standard · 13 person", serial: "TKE-EVA-2024-02",
|
|
103
|
+
floorPos: 6, speed: 0.45, capacity: 1000,
|
|
104
|
+
mode: "normal", stops: [], doorState: "closed", doorTimer: 0,
|
|
105
|
+
direction: "idle", status: "idle", load: 0, overloaded: 0,
|
|
106
|
+
serviceFloors: FLOORS.map(function () { return true; }),
|
|
107
|
+
motorHours: 1105, doorCyclesTotal: 19860, doorCycles: 0, tripsToday: 0, faults: 0,
|
|
108
|
+
inspection: { last: "2026-01-22", next: "2026-09-25" },
|
|
109
|
+
history: { labels: [], floor: [] }, events: [],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: "C", key: "C", name: "Car C (Express)", model: "Express · 17 person", serial: "TKE-EXV-2025-01",
|
|
113
|
+
floorPos: 9, speed: 0.55, capacity: 1200,
|
|
114
|
+
mode: "normal", stops: [], doorState: "closed", doorTimer: 0,
|
|
115
|
+
direction: "idle", status: "idle", load: 0, overloaded: 0,
|
|
116
|
+
// WHY: The express car only serves the Lobby and the upper floors.
|
|
117
|
+
serviceFloors: FLOORS.map(function (name, index) { return index === LOBBY_INDEX || index >= 5; }),
|
|
118
|
+
motorHours: 318, doorCyclesTotal: 4720, doorCycles: 0, tripsToday: 0, faults: 0,
|
|
119
|
+
inspection: { last: "2026-06-02", next: "2026-11-15" },
|
|
120
|
+
history: { labels: [], floor: [] }, events: [],
|
|
121
|
+
},
|
|
122
|
+
];
|
|
123
|
+
|
|
124
|
+
let hallCalls = []; // { id, floor, direction, time, carId }
|
|
125
|
+
let nextCallId = 1;
|
|
126
|
+
let recentWaits = []; // Last served calls' wait time (seconds), for the average
|
|
127
|
+
|
|
128
|
+
const fleet = {
|
|
129
|
+
buildingName: "Riverside Tower",
|
|
130
|
+
emergencyActive: 0,
|
|
131
|
+
doorHoldTicks: 4, // Seconds a door stays open (before it closes on its own)
|
|
132
|
+
stopsByFloorToday: FLOORS.map(function () { return 0; }),
|
|
133
|
+
history: { trips: [], wait: [], doors: [], faults: [] },
|
|
134
|
+
totalsBefore: { trips: 0, doors: 0, faults: 0 }, // Used to turn totals into per-tick bars
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
// *** VARIABLES:
|
|
138
|
+
let car = null; // Selected car
|
|
139
|
+
let isReady = 0;
|
|
140
|
+
let isRendering = 0; // WHY: Component setters call onChange. Changes made by code must not be logged.
|
|
141
|
+
|
|
142
|
+
let lblBuilding, carSelect, lblStatus, moreMenu;
|
|
143
|
+
let alertBox, lblAlert;
|
|
144
|
+
let shaftBox, shaft = {}, skipOverlayRows = [];
|
|
145
|
+
let carInfoLabels = {};
|
|
146
|
+
let kpiBoxList = [];
|
|
147
|
+
let chartPosition, chartStops;
|
|
148
|
+
let radioList = [];
|
|
149
|
+
let lblModeInfo, lblHold, sliderHold;
|
|
150
|
+
let floorButtons = {}, btnOpenDoor, btnCloseDoor;
|
|
151
|
+
let gaugeBox, lblLoadInfo, btnForceClose;
|
|
152
|
+
let serviceChecks = {};
|
|
153
|
+
let queueCard, grpQueueHost, grpMaintenanceHost, grpEventHost;
|
|
154
|
+
let selectNextInspection;
|
|
155
|
+
|
|
156
|
+
// First running function.
|
|
157
|
+
const start = function () {
|
|
158
|
+
|
|
159
|
+
page.color = PAGE_COLOR;
|
|
160
|
+
|
|
161
|
+
for (let i = 0; i < HISTORY_COUNT; i++) {
|
|
162
|
+
CARS.forEach(function (c) { pushHistory(c); });
|
|
163
|
+
}
|
|
164
|
+
CARS.forEach(function (c) { addEvent(c, "Info", "Connected (" + c.serial + ")"); });
|
|
165
|
+
|
|
166
|
+
// BOX: Full screen scrollable container
|
|
167
|
+
// WHY: page does not scroll. Scrollable content must be inside a Box with scrollY: 1.
|
|
168
|
+
startBox(0, 0, "100%", "100%", {
|
|
169
|
+
color: "transparent",
|
|
170
|
+
scrollY: 1,
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
VGroup({
|
|
174
|
+
width: "100%",
|
|
175
|
+
height: "auto", // Grows with content, so the Box can scroll.
|
|
176
|
+
align: "left top",
|
|
177
|
+
gap: 16,
|
|
178
|
+
padding: 24,
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
initHeader();
|
|
182
|
+
initAlert();
|
|
183
|
+
initHeroRow();
|
|
184
|
+
initKpiRow();
|
|
185
|
+
initChartRow();
|
|
186
|
+
initControlRow();
|
|
187
|
+
initBottomRow();
|
|
188
|
+
|
|
189
|
+
endGroup();
|
|
190
|
+
|
|
191
|
+
endBox();
|
|
192
|
+
|
|
193
|
+
// WHY: Bar count was calculated with the default width (before flex).
|
|
194
|
+
kpiBoxList.forEach(function (kpiBox) { kpiBox.refresh(); });
|
|
195
|
+
|
|
196
|
+
isReady = 1;
|
|
197
|
+
selectCar(0);
|
|
198
|
+
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
// Runs every second: one tick of the simulation.
|
|
202
|
+
const loop = function () {
|
|
203
|
+
|
|
204
|
+
if (!isReady) return;
|
|
205
|
+
|
|
206
|
+
simulateTick();
|
|
207
|
+
renderLive();
|
|
208
|
+
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
// *** FLEET SERVICE (SIMULATION):
|
|
212
|
+
|
|
213
|
+
const isOut = function (c) {
|
|
214
|
+
return c.mode === "outOfService";
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
// A skip-floor (express lockout) is ignored in Independent mode.
|
|
218
|
+
const isServiced = function (c, floorIndex) {
|
|
219
|
+
return c.mode === "independent" || c.serviceFloors[floorIndex];
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
const pickNextTarget = function (c) {
|
|
223
|
+
if (c.stops.length === 0) return null;
|
|
224
|
+
let best = c.stops[0];
|
|
225
|
+
let bestDist = Math.abs(c.floorPos - best);
|
|
226
|
+
for (let i = 1; i < c.stops.length; i++) {
|
|
227
|
+
const dist = Math.abs(c.floorPos - c.stops[i]);
|
|
228
|
+
if (dist < bestDist) { best = c.stops[i]; bestDist = dist; }
|
|
229
|
+
}
|
|
230
|
+
return best;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
const arriveAtFloor = function (c, floorIndex) {
|
|
234
|
+
|
|
235
|
+
c.stops = c.stops.filter(function (stop) { return stop !== floorIndex; });
|
|
236
|
+
|
|
237
|
+
// Serve (remove) the hall calls waiting at this floor, and record how long they waited.
|
|
238
|
+
const served = hallCalls.filter(function (call) { return call.floor === floorIndex; });
|
|
239
|
+
hallCalls = hallCalls.filter(function (call) { return call.floor !== floorIndex; });
|
|
240
|
+
served.forEach(function (call) {
|
|
241
|
+
recentWaits.push((Date.now() - call.time) / 1000);
|
|
242
|
+
if (recentWaits.length > 20) recentWaits.shift();
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
c.doorState = "opening";
|
|
246
|
+
c.status = "doors";
|
|
247
|
+
|
|
248
|
+
// Passengers board / alight.
|
|
249
|
+
// WHY even: random(-350, 420) gave +35 kg a stop on average; in minutes every car was overloaded and stuck open
|
|
250
|
+
const delta = random(-400, 400);
|
|
251
|
+
c.load = Math.max(0, Math.min(c.capacity * 1.35, c.load + delta));
|
|
252
|
+
c.overloaded = (c.load > c.capacity) ? 1 : 0;
|
|
253
|
+
|
|
254
|
+
c.doorCycles++;
|
|
255
|
+
c.doorCyclesTotal++;
|
|
256
|
+
c.tripsToday++;
|
|
257
|
+
fleet.stopsByFloorToday[floorIndex]++;
|
|
258
|
+
|
|
259
|
+
// WHY: Independent mode and the emergency recall hold the doors open (manual close only).
|
|
260
|
+
c.doorTimer = (c.mode === "independent" || fleet.emergencyActive) ? -1 : fleet.doorHoldTicks;
|
|
261
|
+
|
|
262
|
+
addEvent(c, (c.overloaded) ? "Warning" : "Info", "Arrived at " + FLOORS[floorIndex] + ((c.overloaded) ? " · Overloaded!" : ""));
|
|
263
|
+
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
const OFF_STEP_MIN = 60; // kg a tick that step off an overloaded car
|
|
267
|
+
const OFF_STEP_MAX = 120;
|
|
268
|
+
|
|
269
|
+
const handleDoors = function (c) {
|
|
270
|
+
|
|
271
|
+
if (c.doorState === "opening") {
|
|
272
|
+
c.doorState = "open";
|
|
273
|
+
} else if (c.doorState === "open") {
|
|
274
|
+
if (c.overloaded) {
|
|
275
|
+
// Open until "Force Close" or the load goes down: some passengers step off
|
|
276
|
+
// WHY: nothing lowered the load before, so the car stayed open for ever
|
|
277
|
+
c.load = Math.max(0, c.load - random(OFF_STEP_MIN, OFF_STEP_MAX));
|
|
278
|
+
c.overloaded = (c.load > c.capacity) ? 1 : 0;
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
if (c.doorTimer < 0) return; // Held open (Independent / emergency). Manual close only.
|
|
282
|
+
c.doorTimer--;
|
|
283
|
+
if (c.doorTimer <= 0) c.doorState = "closing";
|
|
284
|
+
} else if (c.doorState === "closing") {
|
|
285
|
+
c.doorState = "closed";
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
const moveCar = function (c) {
|
|
291
|
+
|
|
292
|
+
if (isOut(c)) {
|
|
293
|
+
c.status = "outOfService";
|
|
294
|
+
c.direction = "idle";
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
if (c.doorState !== "closed") return; // Wait for the doors.
|
|
299
|
+
|
|
300
|
+
const target = pickNextTarget(c);
|
|
301
|
+
if (target === null) {
|
|
302
|
+
c.status = "idle";
|
|
303
|
+
c.direction = "idle";
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
if (Math.abs(c.floorPos - target) < 0.001) {
|
|
308
|
+
arriveAtFloor(c, target);
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
const dir = (target > c.floorPos) ? 1 : -1;
|
|
313
|
+
c.direction = (dir > 0) ? "up" : "down";
|
|
314
|
+
c.status = "moving";
|
|
315
|
+
c.motorHours += 0.0004; // Test data, not real-time accurate.
|
|
316
|
+
|
|
317
|
+
let next = c.floorPos + dir * c.speed;
|
|
318
|
+
if ((dir > 0 && next >= target) || (dir < 0 && next <= target)) next = target;
|
|
319
|
+
c.floorPos = next;
|
|
320
|
+
|
|
321
|
+
if (Math.abs(c.floorPos - target) < 0.001) arriveAtFloor(c, target);
|
|
322
|
+
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
const dispatch = function () {
|
|
326
|
+
|
|
327
|
+
if (fleet.emergencyActive) {
|
|
328
|
+
// All cars (that can move) head to the Lobby.
|
|
329
|
+
CARS.forEach(function (c) {
|
|
330
|
+
if (isOut(c)) return;
|
|
331
|
+
const atLobby = (Math.abs(c.floorPos - LOBBY_INDEX) < 0.001 && c.doorState !== "closed");
|
|
332
|
+
if (!atLobby && (c.stops.length !== 1 || c.stops[0] !== LOBBY_INDEX)) c.stops = [LOBBY_INDEX];
|
|
333
|
+
});
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
hallCalls.forEach(function (call) {
|
|
338
|
+
|
|
339
|
+
if (call.carId !== null) return;
|
|
340
|
+
|
|
341
|
+
const candidates = CARS.filter(function (c) { return c.mode === "normal" && isServiced(c, call.floor); });
|
|
342
|
+
if (!candidates.length) return; // Stays pending. Shown in the Queue card as "Waiting".
|
|
343
|
+
|
|
344
|
+
candidates.sort(function (a, b) { return Math.abs(a.floorPos - call.floor) - Math.abs(b.floorPos - call.floor); });
|
|
345
|
+
const chosen = candidates[0];
|
|
346
|
+
|
|
347
|
+
call.carId = chosen.id;
|
|
348
|
+
if (!chosen.stops.includes(call.floor)) chosen.stops.push(call.floor);
|
|
349
|
+
|
|
350
|
+
});
|
|
351
|
+
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
// One tick: random hall calls, dispatch, then move every car.
|
|
355
|
+
const simulateTick = function () {
|
|
356
|
+
|
|
357
|
+
if (!fleet.emergencyActive && Math.random() < 0.14) {
|
|
358
|
+
const floor = Math.floor(Math.random() * FLOORS.length);
|
|
359
|
+
const canUp = floor < TOP_INDEX, canDown = floor > 0;
|
|
360
|
+
const direction = (canUp && canDown) ? ((Math.random() < 0.5) ? "up" : "down") : ((canUp) ? "up" : "down");
|
|
361
|
+
const exists = hallCalls.some(function (call) { return call.floor === floor && call.direction === direction; });
|
|
362
|
+
if (!exists) hallCalls.push({ id: nextCallId++, floor: floor, direction: direction, time: Date.now(), carId: null });
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
dispatch();
|
|
366
|
+
|
|
367
|
+
CARS.forEach(function (c) {
|
|
368
|
+
handleDoors(c);
|
|
369
|
+
moveCar(c);
|
|
370
|
+
// Rare spontaneous fault (test data), so the "Faults" KPI is not only user-triggered.
|
|
371
|
+
if (!isOut(c) && Math.random() < 0.002) {
|
|
372
|
+
c.faults++;
|
|
373
|
+
addEvent(c, "Error", "Door sensor fault (auto-cleared)");
|
|
374
|
+
}
|
|
375
|
+
pushHistory(c);
|
|
376
|
+
});
|
|
377
|
+
|
|
378
|
+
updateFleetHistory();
|
|
379
|
+
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
const pushHistory = function (c) {
|
|
383
|
+
const h = c.history;
|
|
384
|
+
h.labels.push(new Date().toLocaleTimeString("en-GB"));
|
|
385
|
+
h.floor.push(round2(c.floorPos));
|
|
386
|
+
if (h.labels.length > HISTORY_COUNT) { h.labels.shift(); h.floor.shift(); }
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
const updateFleetHistory = function () {
|
|
390
|
+
|
|
391
|
+
const trips = sum(CARS, function (c) { return c.tripsToday; });
|
|
392
|
+
const doors = sum(CARS, function (c) { return c.doorCycles; });
|
|
393
|
+
const faults = sum(CARS, function (c) { return c.faults; });
|
|
394
|
+
const wait = (recentWaits.length) ? Math.round(recentWaits.reduce(function (a, b) { return a + b; }, 0) / recentWaits.length) : 0;
|
|
395
|
+
|
|
396
|
+
const h = fleet.history;
|
|
397
|
+
h.trips.push(trips - fleet.totalsBefore.trips);
|
|
398
|
+
h.doors.push(doors - fleet.totalsBefore.doors);
|
|
399
|
+
h.faults.push(faults - fleet.totalsBefore.faults);
|
|
400
|
+
h.wait.push(wait);
|
|
401
|
+
for (const key in h) { if (h[key].length > HISTORY_COUNT) h[key].shift(); }
|
|
402
|
+
|
|
403
|
+
fleet.totalsBefore = { trips: trips, doors: doors, faults: faults };
|
|
404
|
+
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
const setGridEmergency = function (active) {
|
|
408
|
+
fleet.emergencyActive = active ? 1 : 0;
|
|
409
|
+
if (!active) {
|
|
410
|
+
// WHY: Cars held open by the recall (doorTimer -1) must resume their normal auto-close countdown.
|
|
411
|
+
// A car held open because of its own Independent mode (not the recall) stays held.
|
|
412
|
+
CARS.forEach(function (c) {
|
|
413
|
+
if (c.doorState === "open" && c.doorTimer < 0 && c.mode !== "independent") c.doorTimer = fleet.doorHoldTicks;
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
addEvent(car, (active) ? "Error" : "Success", (active) ? "Emergency recall: all cars sent to the Lobby" : "Emergency recall cleared. Normal service resumed");
|
|
417
|
+
renderAll();
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
const forceCloseDoors = function (c) {
|
|
421
|
+
c.load = Math.round(c.capacity * 0.9);
|
|
422
|
+
c.overloaded = 0;
|
|
423
|
+
addEvent(c, "Warning", "Doors force-closed after overload");
|
|
424
|
+
c.faults++;
|
|
425
|
+
renderAll();
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
const setCarMode = function (c, mode) {
|
|
429
|
+
if (mode === "outOfService" && c.stops.length) {
|
|
430
|
+
addEvent(c, "Warning", "Taken out of service. " + c.stops.length + " stop(s) reassigned to the fleet");
|
|
431
|
+
// WHY: The car's own stops that came from hall calls go back to the pool (unassigned) automatically,
|
|
432
|
+
// because hallCalls[].carId is only cleared here, then dispatch() reassigns them next tick.
|
|
433
|
+
hallCalls.forEach(function (call) { if (call.carId === c.id) call.carId = null; });
|
|
434
|
+
}
|
|
435
|
+
c.mode = mode;
|
|
436
|
+
if (mode === "outOfService") c.stops = [];
|
|
437
|
+
addEvent(c, "Info", "Mode set to " + MODES.find(function (m) { return m.value === mode; }).text);
|
|
438
|
+
};
|
|
439
|
+
|
|
440
|
+
const addEvent = function (c, level, message) {
|
|
441
|
+
c.events.unshift({ time: new Date().toLocaleTimeString("en-GB"), level: level, message: message });
|
|
442
|
+
if (c.events.length > 50) c.events.pop();
|
|
443
|
+
if (c === car && isReady) renderEvents();
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
// *** HELPERS:
|
|
447
|
+
|
|
448
|
+
const round2 = function (value) {
|
|
449
|
+
return Math.round(value * 100) / 100;
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
const sum = function (list, getValue) {
|
|
453
|
+
return list.reduce(function (total, item) { return total + getValue(item); }, 0);
|
|
454
|
+
};
|
|
455
|
+
|
|
456
|
+
const escapeHtml = function (text) {
|
|
457
|
+
return String(text).replace(/[&<>"']/g, function (c) { return { "&": "&", "<": "<", ">": ">", "\"": """, "'": "'" }[c]; });
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
// WHY: Some components have no enabled setting. "inert" blocks the mouse and keyboard for all the children.
|
|
461
|
+
const setInteractive = function (obj, enabled) {
|
|
462
|
+
obj.elem.inert = !enabled;
|
|
463
|
+
obj.opacity = (enabled) ? 1 : 0.4;
|
|
464
|
+
};
|
|
465
|
+
|
|
466
|
+
// Creates the content of a container again. (One group is started and ended in it.)
|
|
467
|
+
// WHY: setDefaultContainerBox() is not in the start/end list of basic.js. One wrapper group is safe.
|
|
468
|
+
const renderInto = function (container, buildContent) {
|
|
469
|
+
if (container.wrapper) container.wrapper.remove();
|
|
470
|
+
const previous = getDefaultContainerBox();
|
|
471
|
+
setDefaultContainerBox(container);
|
|
472
|
+
container.wrapper = VGroup({ width: "100%", height: "auto", align: "left top", gap: 0 });
|
|
473
|
+
buildContent();
|
|
474
|
+
endGroup();
|
|
475
|
+
setDefaultContainerBox(previous);
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
// *** VIEW HELPERS:
|
|
479
|
+
|
|
480
|
+
const startRow = function () {
|
|
481
|
+
HGroup({ width: "100%", height: "auto", align: "left top", gap: 16 });
|
|
482
|
+
that.elem.style.flexWrap = "wrap";
|
|
483
|
+
that.elem.style.alignItems = "stretch"; // WHY: Cards in the same row have the same height.
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
const setFlex = function (obj, flex) {
|
|
487
|
+
obj.elem.style.flex = flex;
|
|
488
|
+
obj.elem.style.minWidth = "0";
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
const startCard = function (title, subtitle, flex) {
|
|
492
|
+
|
|
493
|
+
const cardBox = VGroup({ height: "auto", align: "left top", gap: 14, padding: 16, color: CARD_COLOR, border: 1, borderColor: CARD_BORDER_COLOR, round: 12 });
|
|
494
|
+
setFlex(cardBox, flex);
|
|
495
|
+
|
|
496
|
+
startSpaceBetween();
|
|
497
|
+
VGroup({ width: "auto", height: "auto", align: "left top", gap: 0 });
|
|
498
|
+
Label({ text: title, fontSize: 15, textColor: Ink(0.95) });
|
|
499
|
+
that.elem.style.fontFamily = "opensans-bold";
|
|
500
|
+
if (subtitle) Label({ text: subtitle, fontSize: 12, textColor: Ink(0.45) });
|
|
501
|
+
endGroup();
|
|
502
|
+
cardBox.lblRight = Label({ text: "", fontSize: 12, textColor: Ink(0.5) });
|
|
503
|
+
that.elem.style.whiteSpace = "nowrap";
|
|
504
|
+
endGroup();
|
|
505
|
+
|
|
506
|
+
return cardBox;
|
|
507
|
+
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
const endCard = function () {
|
|
511
|
+
endGroup();
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
const startSpaceBetween = function (gap = 12) {
|
|
515
|
+
HGroup({ width: "100%", height: "auto", align: "left center", gap: gap });
|
|
516
|
+
that.elem.style.justifyContent = "space-between";
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
const createSmallTitle = function (text) {
|
|
520
|
+
Label({ text: text.toUpperCase(), fontSize: 11, textColor: Ink(0.45) });
|
|
521
|
+
that.elem.style.letterSpacing = "1px";
|
|
522
|
+
return that;
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
const setPill = function (label, text, color) {
|
|
526
|
+
label.text = text;
|
|
527
|
+
label.textColor = color;
|
|
528
|
+
label.color = ChartBox.alpha(color, 0.12);
|
|
529
|
+
label.borderColor = ChartBox.alpha(color, 0.4);
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
const createInfoLine = function (title, first) {
|
|
533
|
+
startSpaceBetween();
|
|
534
|
+
that.elem.style.padding = "8px 0px";
|
|
535
|
+
if (!first) that.elem.style.borderTop = "1px solid " + Ink(0.06);
|
|
536
|
+
Label({ text: title, fontSize: 14, textColor: Ink(0.5) });
|
|
537
|
+
const value = Label({ text: "", fontSize: 14, textColor: Ink(0.9) });
|
|
538
|
+
that.elem.style.whiteSpace = "nowrap";
|
|
539
|
+
endGroup();
|
|
540
|
+
return value;
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
const createButton = function (text, iconFile, onClick, params = {}) {
|
|
544
|
+
const btn = SmartButton({
|
|
545
|
+
styleName: "classic",
|
|
546
|
+
width: params.width || "auto",
|
|
547
|
+
labelText: text,
|
|
548
|
+
iconFile: (iconFile) ? ASSETS + iconFile : "",
|
|
549
|
+
onClick: onClick,
|
|
550
|
+
style: {
|
|
551
|
+
layout: { gap: 10, padding: [14, 8], align: "center center" },
|
|
552
|
+
icon: { width: 18, height: 18 },
|
|
553
|
+
label: { fontSize: 14, textColor: Ink(0.9) },
|
|
554
|
+
box: { color: params.color || FIELD_COLOR, border: 1, borderColor: CARD_BORDER_COLOR, round: 8 },
|
|
555
|
+
hover: { color: params.hoverColor || T.surface3 },
|
|
556
|
+
active: { color: params.activeColor || T.surface4 },
|
|
557
|
+
},
|
|
558
|
+
});
|
|
559
|
+
if (btn.icon) btn.icon.elem.style.filter = T.iconFilter; // WHY: Panel icons are black.
|
|
560
|
+
return btn;
|
|
561
|
+
};
|
|
562
|
+
|
|
563
|
+
const createSlider = function (color, onDragMove, onDragEnd) {
|
|
564
|
+
return Slider({
|
|
565
|
+
width: 250,
|
|
566
|
+
trackHeight: 8,
|
|
567
|
+
minThumbHeight: 26,
|
|
568
|
+
trackColor: color,
|
|
569
|
+
trackBackgroundColor: Ink(0.1),
|
|
570
|
+
thumbColor: Ink(0.9),
|
|
571
|
+
showValueOnSet: 0,
|
|
572
|
+
showValueOnDrag: 0, // WHY: Slider shows 0-100. The real value is shown in a label.
|
|
573
|
+
onDragMove: onDragMove,
|
|
574
|
+
onDragEnd: onDragEnd,
|
|
575
|
+
});
|
|
576
|
+
};
|
|
577
|
+
|
|
578
|
+
const DARK_RADIO_STYLE = {
|
|
579
|
+
mark: { width: 20, height: 20, color: "transparent", borderColor: Ink(0.35) },
|
|
580
|
+
checkedMark: { color: "transparent", borderColor: ACCENT_COLOR },
|
|
581
|
+
hoverMark: { borderColor: Ink(0.7) },
|
|
582
|
+
dot: { color: ACCENT_COLOR },
|
|
583
|
+
label: { fontSize: 14, textColor: Ink(0.9) },
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
const DARK_CHECK_STYLE = {
|
|
587
|
+
layout: { padding: [0, 2] },
|
|
588
|
+
mark: { width: 18, height: 18, color: "transparent", borderColor: Ink(0.35) },
|
|
589
|
+
checkedMark: { color: PRIMARY_COLOR, borderColor: PRIMARY_COLOR },
|
|
590
|
+
hoverMark: { borderColor: Ink(0.7) },
|
|
591
|
+
tick: { color: Ink(1) },
|
|
592
|
+
label: { fontSize: 13, textColor: Ink(0.75) },
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
// Dark style for SelectDate
|
|
596
|
+
const PICKER_STYLE = {
|
|
597
|
+
field: { color: FIELD_COLOR, border: 1, borderColor: CARD_BORDER_COLOR, round: 8 },
|
|
598
|
+
fieldHover: { borderColor: Ink(0.3) },
|
|
599
|
+
fieldFocus: { borderColor: ACCENT_COLOR },
|
|
600
|
+
fieldText: { fontSize: 14, textColor: Ink(0.9) },
|
|
601
|
+
placeholder: { textColor: Ink(0.4) },
|
|
602
|
+
icon: { color: Ink(0.55) },
|
|
603
|
+
panel: { color: FIELD_COLOR, borderColor: Ink(0.12), shadow: "0 8px 24px rgba(0, 0, 0, 0.5)" },
|
|
604
|
+
title: { textColor: Ink(0.9) },
|
|
605
|
+
arrow: { color: Ink(0.6), hoverColor: Ink(0.08) },
|
|
606
|
+
weekDay: { textColor: Ink(0.45) },
|
|
607
|
+
day: { textColor: Ink(0.85), hoverColor: Ink(0.08) },
|
|
608
|
+
today: { borderColor: Ink(0.35) },
|
|
609
|
+
selectedDay: { color: PRIMARY_COLOR, textColor: Ink(1) },
|
|
610
|
+
disabledDay: { textColor: Ink(0.2) },
|
|
611
|
+
footerButton: { textColor: ACCENT_COLOR },
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
// *** VIEW:
|
|
615
|
+
|
|
616
|
+
const initHeader = function () {
|
|
617
|
+
|
|
618
|
+
startSpaceBetween(16);
|
|
619
|
+
that.elem.style.flexWrap = "wrap";
|
|
620
|
+
|
|
621
|
+
HGroup({ width: "auto", height: "auto", align: "left center", gap: 20 });
|
|
622
|
+
that.elem.style.flexWrap = "wrap";
|
|
623
|
+
|
|
624
|
+
VGroup({ width: "auto", height: "auto", align: "left top", gap: 0 });
|
|
625
|
+
Label({ text: "Elevator Fleet", fontSize: 26, textColor: Ink(0.95) });
|
|
626
|
+
that.elem.style.fontFamily = "opensans-bold";
|
|
627
|
+
lblBuilding = Label({ text: "", fontSize: 14, textColor: Ink(0.5) });
|
|
628
|
+
endGroup();
|
|
629
|
+
|
|
630
|
+
carSelect = TinySelect({
|
|
631
|
+
title: "Car",
|
|
632
|
+
list: CARS.map(function (c) { return { id: c.id, label: c.name }; }),
|
|
633
|
+
height: 40,
|
|
634
|
+
fontSize: 15,
|
|
635
|
+
color: CARD_COLOR,
|
|
636
|
+
border: 1,
|
|
637
|
+
borderColor: CARD_BORDER_COLOR,
|
|
638
|
+
round: 8,
|
|
639
|
+
labelTextColor: Ink(0.95),
|
|
640
|
+
arrowIcon: LIB_PATH + "comp/tiny-select/arrow.svg",
|
|
641
|
+
arrowSize: 20,
|
|
642
|
+
invertIconColor: T.invertIcon,
|
|
643
|
+
listFontSize: 15,
|
|
644
|
+
listTextColor: Ink(0.85),
|
|
645
|
+
listOverTextColor: ACCENT_COLOR,
|
|
646
|
+
listBackgroundColor: FIELD_COLOR,
|
|
647
|
+
listBorderColor: Ink(0.15),
|
|
648
|
+
onSelect: function (index) { if (isReady) selectCar(index); },
|
|
649
|
+
});
|
|
650
|
+
carSelect.lblTitle.textColor = Ink(0.5);
|
|
651
|
+
|
|
652
|
+
lblStatus = Label({ text: "", fontSize: 13, round: 100, border: 1, padding: [12, 4] });
|
|
653
|
+
lblStatus.elem.style.whiteSpace = "nowrap";
|
|
654
|
+
|
|
655
|
+
endGroup();
|
|
656
|
+
|
|
657
|
+
HGroup({ width: "auto", height: "auto", align: "right center", gap: 10 });
|
|
658
|
+
|
|
659
|
+
const btnMore = createButton("More", "top-bar/apps.png", function () { });
|
|
660
|
+
|
|
661
|
+
moreMenu = ContextMenu({
|
|
662
|
+
items: [
|
|
663
|
+
{ text: "Test: Emergency recall", key: "recall" },
|
|
664
|
+
{ text: "Reset after emergency", key: "reset" },
|
|
665
|
+
"-",
|
|
666
|
+
{ text: "Test: Overload the car", key: "overload" },
|
|
667
|
+
{ text: "Download today's report (CSV)", key: "csv" },
|
|
668
|
+
{ text: "Copy car serial number", key: "copy" },
|
|
669
|
+
],
|
|
670
|
+
onClick: function (self, item) { onMoreMenuClick(item.key); },
|
|
671
|
+
style: {
|
|
672
|
+
menu: { color: FIELD_COLOR, borderColor: Ink(0.12), shadow: "0px 8px 24px rgba(0, 0, 0, 0.5)" },
|
|
673
|
+
item: { textColor: Ink(0.85) },
|
|
674
|
+
itemHover: { textColor: Ink(1), color: Ink(0.08) },
|
|
675
|
+
disabled: { textColor: Ink(0.3) },
|
|
676
|
+
separator: { color: Ink(0.1) },
|
|
677
|
+
},
|
|
678
|
+
});
|
|
679
|
+
moreMenu.attachTo(btnMore, "click");
|
|
680
|
+
|
|
681
|
+
endGroup();
|
|
682
|
+
|
|
683
|
+
endGroup();
|
|
684
|
+
|
|
685
|
+
};
|
|
686
|
+
|
|
687
|
+
const initAlert = function () {
|
|
688
|
+
|
|
689
|
+
alertBox = HGroup({
|
|
690
|
+
width: "100%", height: "auto", align: "left center", gap: 12, padding: [16, 12],
|
|
691
|
+
color: "rgba(230, 103, 103, 0.10)", border: 1, borderColor: "rgba(230, 103, 103, 0.45)", round: 12,
|
|
692
|
+
visible: 0,
|
|
693
|
+
});
|
|
694
|
+
that.elem.style.flexWrap = "wrap";
|
|
695
|
+
|
|
696
|
+
lblAlert = Label({ text: "", fontSize: 14, textColor: Ink(0.9) });
|
|
697
|
+
lblAlert.elem.style.flex = "1 1 300px";
|
|
698
|
+
|
|
699
|
+
createButton("Reset After Emergency", "", function () { setGridEmergency(0); }, { color: ERROR_COLOR, hoverColor: "#C24E4E" });
|
|
700
|
+
|
|
701
|
+
endGroup();
|
|
702
|
+
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
const initHeroRow = function () {
|
|
706
|
+
|
|
707
|
+
startRow();
|
|
708
|
+
|
|
709
|
+
const shaftCard = startCard("Live Shaft", fleet.buildingName + " · " + FLOORS.length + " stops", "2 1 460px");
|
|
710
|
+
|
|
711
|
+
shaftBox = Box({ width: "100%", height: "auto", color: "transparent" });
|
|
712
|
+
shaftBox.position = "relative";
|
|
713
|
+
shaftBox.elem.innerHTML = createShaftSvg();
|
|
714
|
+
shaft.svg = shaftBox.elem.querySelector("svg");
|
|
715
|
+
|
|
716
|
+
HGroup({ width: "100%", height: "auto", align: "left center", gap: 16 });
|
|
717
|
+
that.elem.style.flexWrap = "wrap";
|
|
718
|
+
Object.keys(FLEET_COLORS).forEach(function (key) {
|
|
719
|
+
Label({ text: "<span style='color:" + FLEET_COLORS[key] + "'>●</span> Car " + key, fontSize: 12, textColor: Ink(0.6) });
|
|
720
|
+
});
|
|
721
|
+
Label({ text: "<span style='color:" + WARNING_COLOR + "'>●</span> Doors open", fontSize: 12, textColor: Ink(0.45) });
|
|
722
|
+
Label({ text: "<span style='color:" + WARNING_COLOR + "'>▲▼</span> Waiting call", fontSize: 12, textColor: Ink(0.45) });
|
|
723
|
+
endGroup();
|
|
724
|
+
|
|
725
|
+
endCard();
|
|
726
|
+
|
|
727
|
+
startCard("Car Details", "", "1 1 300px");
|
|
728
|
+
|
|
729
|
+
VGroup({ width: "100%", height: "auto", align: "left top", gap: 0 });
|
|
730
|
+
carInfoLabels.floor = createInfoLine("Current floor", 1);
|
|
731
|
+
carInfoLabels.next = createInfoLine("Next stop");
|
|
732
|
+
carInfoLabels.direction = createInfoLine("Direction");
|
|
733
|
+
carInfoLabels.doors = createInfoLine("Doors");
|
|
734
|
+
carInfoLabels.mode = createInfoLine("Mode");
|
|
735
|
+
carInfoLabels.load = createInfoLine("Load");
|
|
736
|
+
endGroup();
|
|
737
|
+
|
|
738
|
+
endCard();
|
|
739
|
+
|
|
740
|
+
endGroup();
|
|
741
|
+
|
|
742
|
+
};
|
|
743
|
+
|
|
744
|
+
const initKpiRow = function () {
|
|
745
|
+
|
|
746
|
+
const KPI_LIST = [
|
|
747
|
+
{ title: "Trips Today", iconFile: "left-menu/extension.png", lineColor: ACCENT_COLOR, maxValue: 0 },
|
|
748
|
+
{ title: "Avg. Wait Time", iconFile: "light.png", lineColor: T.info, maxValue: 0 },
|
|
749
|
+
{ title: "Door Cycles Today", iconFile: "left-menu/dashboard.png", lineColor: "#9085E9", maxValue: 0 },
|
|
750
|
+
{ title: "Faults", iconFile: "warning.png", lineColor: ERROR_COLOR, maxValue: 0 },
|
|
751
|
+
];
|
|
752
|
+
|
|
753
|
+
startRow();
|
|
754
|
+
|
|
755
|
+
KPI_LIST.forEach(function (kpi) {
|
|
756
|
+
const kpiBox = SparkLineBox({
|
|
757
|
+
height: 100,
|
|
758
|
+
title: kpi.title,
|
|
759
|
+
valueText: "",
|
|
760
|
+
iconFile: ASSETS + kpi.iconFile,
|
|
761
|
+
lineColor: kpi.lineColor,
|
|
762
|
+
maxValue: kpi.maxValue,
|
|
763
|
+
style: {
|
|
764
|
+
box: { color: CARD_COLOR, border: 1, borderColor: CARD_BORDER_COLOR, round: 12 },
|
|
765
|
+
text: { padding: 14 },
|
|
766
|
+
title: { fontSize: 13, textColor: Ink(0.5) },
|
|
767
|
+
valueText: { fontSize: 24, textColor: Ink(0.95) },
|
|
768
|
+
trend: { flatColor: Ink(0.45) }, // WHY: The default flat color is made for light cards.
|
|
769
|
+
icon: { width: 20, height: 20 },
|
|
770
|
+
graph: { height: 34, padding: 14 },
|
|
771
|
+
},
|
|
772
|
+
});
|
|
773
|
+
setFlex(kpiBox, "1 1 220px");
|
|
774
|
+
kpiBox.icon.elem.style.filter = T.iconFilter;
|
|
775
|
+
kpiBox.icon.opacity = 0.5;
|
|
776
|
+
kpiBoxList.push(kpiBox);
|
|
777
|
+
});
|
|
778
|
+
|
|
779
|
+
endGroup();
|
|
780
|
+
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
const initChartRow = function () {
|
|
784
|
+
|
|
785
|
+
startRow();
|
|
786
|
+
|
|
787
|
+
chartPosition = ChartBox({
|
|
788
|
+
height: 320,
|
|
789
|
+
type: "line",
|
|
790
|
+
theme: T.chartTheme,
|
|
791
|
+
title: "Car Position",
|
|
792
|
+
subtitle: "Live, last " + CHART_COUNT + " seconds",
|
|
793
|
+
maxCount: CHART_COUNT,
|
|
794
|
+
beginAtZero: 0,
|
|
795
|
+
animated: 0,
|
|
796
|
+
labels: [],
|
|
797
|
+
datasets: [{ label: "Floor", data: [], fill: "start", tension: 0.2, backgroundColor: ChartBox.gradient("rgba(101, 162, 147, 0.3)", "rgba(101, 162, 147, 0)") }],
|
|
798
|
+
formatValue: function (value) { return FLOORS[Math.round(value)] || value; },
|
|
799
|
+
options: {
|
|
800
|
+
elements: { point: { radius: 0 } },
|
|
801
|
+
scales: { x: { ticks: { maxTicksLimit: 6 } }, y: { min: 0, max: TOP_INDEX, ticks: { stepSize: 1, autoSkip: false, callback: function (value) { return FLOORS[value] || ""; } } } },
|
|
802
|
+
},
|
|
803
|
+
style: {
|
|
804
|
+
box: { color: CARD_COLOR, borderColor: CARD_BORDER_COLOR, round: 12, padding: 16 },
|
|
805
|
+
chart: { colors: [ACCENT_COLOR] },
|
|
806
|
+
},
|
|
807
|
+
});
|
|
808
|
+
setFlex(chartPosition, "2 1 520px");
|
|
809
|
+
chartPosition.elem.style.height = "auto";
|
|
810
|
+
chartPosition.elem.style.minHeight = "320px";
|
|
811
|
+
|
|
812
|
+
chartStops = ChartBox({
|
|
813
|
+
height: 320,
|
|
814
|
+
type: "bar",
|
|
815
|
+
theme: T.chartTheme,
|
|
816
|
+
title: "Stops by Floor Today",
|
|
817
|
+
subtitle: "Whole fleet",
|
|
818
|
+
horizontal: 1,
|
|
819
|
+
beginAtZero: 1,
|
|
820
|
+
labels: FLOORS.slice(),
|
|
821
|
+
values: fleet.stopsByFloorToday.slice(),
|
|
822
|
+
style: {
|
|
823
|
+
box: { color: CARD_COLOR, borderColor: CARD_BORDER_COLOR, round: 12, padding: 16 },
|
|
824
|
+
chart: { colors: [T.info] },
|
|
825
|
+
},
|
|
826
|
+
});
|
|
827
|
+
setFlex(chartStops, "1 1 260px");
|
|
828
|
+
|
|
829
|
+
endGroup();
|
|
830
|
+
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
const initControlRow = function () {
|
|
834
|
+
|
|
835
|
+
startRow();
|
|
836
|
+
|
|
837
|
+
// DISPATCH & DOORS
|
|
838
|
+
startCard("Dispatch & Doors", "Mode and door timing", "1 1 300px");
|
|
839
|
+
|
|
840
|
+
VGroup({ width: "100%", height: "auto", align: "left top", gap: 10 });
|
|
841
|
+
MODES.forEach(function (mode) {
|
|
842
|
+
RadioButton({
|
|
843
|
+
group: "carMode", value: mode.value,
|
|
844
|
+
labelText: mode.text + "<br><span style='color:" + Ink(0.4) + "; font-size: 12px'>" + mode.desc + "</span>",
|
|
845
|
+
style: DARK_RADIO_STYLE,
|
|
846
|
+
onChange: function (self) { onModeChange(self.value); },
|
|
847
|
+
});
|
|
848
|
+
});
|
|
849
|
+
endGroup();
|
|
850
|
+
|
|
851
|
+
lblModeInfo = Label({ text: "", fontSize: 12, textColor: Ink(0.45), width: "100%" });
|
|
852
|
+
|
|
853
|
+
VGroup({ width: "100%", height: "auto", align: "left top", gap: 8 });
|
|
854
|
+
that.elem.style.borderTop = "1px solid " + Ink(0.06);
|
|
855
|
+
that.elem.style.paddingTop = "14px";
|
|
856
|
+
startSpaceBetween();
|
|
857
|
+
createSmallTitle("Door hold time");
|
|
858
|
+
lblHold = Label({ text: "", fontSize: 15, textColor: Ink(0.95) });
|
|
859
|
+
that.elem.style.fontFamily = "opensans-bold";
|
|
860
|
+
endGroup();
|
|
861
|
+
sliderHold = createSlider(WARNING_COLOR,
|
|
862
|
+
function (value) { lblHold.text = sliderToHold(value) + " s"; },
|
|
863
|
+
function () {
|
|
864
|
+
const hold = sliderToHold(sliderHold.getValue());
|
|
865
|
+
if (hold === fleet.doorHoldTicks) return;
|
|
866
|
+
fleet.doorHoldTicks = hold;
|
|
867
|
+
addEvent(car, "Info", "Door hold time set to " + hold + " s");
|
|
868
|
+
}
|
|
869
|
+
);
|
|
870
|
+
endGroup();
|
|
871
|
+
|
|
872
|
+
endCard();
|
|
873
|
+
|
|
874
|
+
// CAR PANEL
|
|
875
|
+
startCard("Car Panel", "Manual floor selection", "1 1 300px");
|
|
876
|
+
|
|
877
|
+
HGroup({ width: "100%", height: "auto", align: "left top", gap: 6 });
|
|
878
|
+
that.elem.style.flexWrap = "wrap";
|
|
879
|
+
FLOORS.forEach(function (label, index) {
|
|
880
|
+
const btn = HGroup({ width: 44, height: 36, align: "center center", round: 8, color: FIELD_COLOR, border: 1, borderColor: CARD_BORDER_COLOR });
|
|
881
|
+
btn.elem.style.cursor = "pointer";
|
|
882
|
+
btn.setMotion("background-color 0.15s, border-color 0.15s");
|
|
883
|
+
btn.on("click", function () { onFloorButtonClick(index); });
|
|
884
|
+
btn.lbl = Label({ text: label, fontSize: 13, textColor: Ink(0.85) });
|
|
885
|
+
endGroup();
|
|
886
|
+
floorButtons[index] = btn;
|
|
887
|
+
});
|
|
888
|
+
endGroup();
|
|
889
|
+
|
|
890
|
+
HGroup({ width: "100%", height: "auto", align: "left center", gap: 8 });
|
|
891
|
+
that.elem.style.borderTop = "1px solid " + Ink(0.06);
|
|
892
|
+
that.elem.style.paddingTop = "14px";
|
|
893
|
+
btnOpenDoor = createButton("Open Door", "", function () { onDoorButtonClick("open"); });
|
|
894
|
+
btnCloseDoor = createButton("Close Door", "", function () { onDoorButtonClick("close"); });
|
|
895
|
+
createButton("Test: Alarm", "", function () { onAlarmTest(); }, { color: "rgba(230, 103, 103, 0.14)", hoverColor: "rgba(230, 103, 103, 0.22)" });
|
|
896
|
+
endGroup();
|
|
897
|
+
|
|
898
|
+
endCard();
|
|
899
|
+
|
|
900
|
+
// LOAD & SAFETY
|
|
901
|
+
startCard("Load & Safety", "", "1 1 300px");
|
|
902
|
+
|
|
903
|
+
HGroup({ width: "100%", height: "auto", align: "center center" });
|
|
904
|
+
gaugeBox = Box({ width: 200, height: 130, color: "transparent" });
|
|
905
|
+
gaugeBox.position = "relative";
|
|
906
|
+
gaugeBox.elem.innerHTML = createLoadGaugeSvg();
|
|
907
|
+
endGroup();
|
|
908
|
+
|
|
909
|
+
lblLoadInfo = Label({ text: "", fontSize: 12, textColor: Ink(0.45), width: "100%" });
|
|
910
|
+
|
|
911
|
+
btnForceClose = HoldToConfirmButton({
|
|
912
|
+
height: 40,
|
|
913
|
+
labelText: "Hold to Force Close",
|
|
914
|
+
completedText: "CLOSED",
|
|
915
|
+
iconFile: LIB_PATH + "comp/hold-to-confirm-button/trash.png",
|
|
916
|
+
holdingIconFile: LIB_PATH + "comp/hold-to-confirm-button/trash-red.png",
|
|
917
|
+
holdDuration: 1200,
|
|
918
|
+
resetDelay: 800,
|
|
919
|
+
style: {
|
|
920
|
+
layout: { gap: 6, padding: [14, 0] },
|
|
921
|
+
icon: { width: 18, height: 18 },
|
|
922
|
+
label: { fontSize: 14, textColor: Ink(0.9) },
|
|
923
|
+
holdingLabel: { fontSize: 14, textColor: "#B03A2E" },
|
|
924
|
+
completedLabel: { fontSize: 14, textColor: T.primaryActive },
|
|
925
|
+
box: { color: FIELD_COLOR, border: 1, borderColor: CARD_BORDER_COLOR, round: 8 },
|
|
926
|
+
holdingBox: { color: "#FFD1CB", borderColor: ERROR_COLOR, round: 8 },
|
|
927
|
+
completedBox: { color: "#DFEFE6", borderColor: ACCENT_COLOR, round: 8 },
|
|
928
|
+
},
|
|
929
|
+
onConfirm: function () { forceCloseDoors(car); },
|
|
930
|
+
});
|
|
931
|
+
btnForceClose.icon.elem.style.filter = T.iconFilter;
|
|
932
|
+
|
|
933
|
+
VGroup({ width: "100%", height: "auto", align: "left top", gap: 8 });
|
|
934
|
+
that.elem.style.borderTop = "1px solid " + Ink(0.06);
|
|
935
|
+
that.elem.style.paddingTop = "14px";
|
|
936
|
+
createSmallTitle("Skip floors (express)");
|
|
937
|
+
HGroup({ width: "100%", height: "auto", align: "left top", gap: [4, 10] });
|
|
938
|
+
that.elem.style.flexWrap = "wrap";
|
|
939
|
+
FLOORS.forEach(function (label, index) {
|
|
940
|
+
serviceChecks[index] = CheckBox({
|
|
941
|
+
labelText: label,
|
|
942
|
+
checked: 1,
|
|
943
|
+
style: DARK_CHECK_STYLE,
|
|
944
|
+
onChange: function (self) { onServiceFloorChange(index, self.checked); },
|
|
945
|
+
});
|
|
946
|
+
serviceChecks[index].elem.style.width = "25%";
|
|
947
|
+
});
|
|
948
|
+
endGroup();
|
|
949
|
+
endGroup();
|
|
950
|
+
|
|
951
|
+
endCard();
|
|
952
|
+
|
|
953
|
+
endGroup();
|
|
954
|
+
|
|
955
|
+
};
|
|
956
|
+
|
|
957
|
+
const initBottomRow = function () {
|
|
958
|
+
|
|
959
|
+
startRow();
|
|
960
|
+
|
|
961
|
+
queueCard = startCard("Pending Calls", "Hall calls waiting for a car", "1 1 300px");
|
|
962
|
+
grpQueueHost = VGroup({ width: "100%", height: "auto", align: "left top", gap: 0 });
|
|
963
|
+
endGroup();
|
|
964
|
+
endCard();
|
|
965
|
+
|
|
966
|
+
startCard("Maintenance & Inspection", "", "1 1 300px");
|
|
967
|
+
grpMaintenanceHost = VGroup({ width: "100%", height: "auto", align: "left top", gap: 0 });
|
|
968
|
+
endGroup();
|
|
969
|
+
endCard();
|
|
970
|
+
|
|
971
|
+
startCard("Events", "", "1 1 300px");
|
|
972
|
+
grpEventHost = VGroup({ width: "100%", height: "auto", align: "left top", gap: 0 });
|
|
973
|
+
endGroup();
|
|
974
|
+
endCard();
|
|
975
|
+
|
|
976
|
+
endGroup();
|
|
977
|
+
|
|
978
|
+
};
|
|
979
|
+
|
|
980
|
+
// *** SVG:
|
|
981
|
+
|
|
982
|
+
const SHAFT_TOP = 20, SHAFT_BOTTOM = 428;
|
|
983
|
+
const SHAFT_SPACING = (SHAFT_BOTTOM - SHAFT_TOP) / (FLOORS.length - 1);
|
|
984
|
+
const LANE_WIDTH = 108;
|
|
985
|
+
const LANE_X = { A: 158, B: 266, C: 374 }; // Lane centers
|
|
986
|
+
|
|
987
|
+
const floorY = function (floorIndex) {
|
|
988
|
+
return SHAFT_BOTTOM - floorIndex * SHAFT_SPACING;
|
|
989
|
+
};
|
|
990
|
+
|
|
991
|
+
const createShaftSvg = function () {
|
|
992
|
+
|
|
993
|
+
let rows = "", skipRows = "", rails = "";
|
|
994
|
+
|
|
995
|
+
Object.keys(FLEET_COLORS).forEach(function (key) {
|
|
996
|
+
// WHY: A faint track behind each car so its movement reads against a fixed shaft, not empty space.
|
|
997
|
+
rails += "<rect x='" + (LANE_X[key] - LANE_WIDTH / 2) + "' y='" + (SHAFT_TOP - SHAFT_SPACING / 2) + "' width='" + LANE_WIDTH + "' height='" + (SHAFT_BOTTOM - SHAFT_TOP + SHAFT_SPACING) + "' fill='" + Ink(0.025) + "' stroke='" + Ink(0.06) + "'/>";
|
|
998
|
+
});
|
|
999
|
+
|
|
1000
|
+
FLOORS.forEach(function (label, index) {
|
|
1001
|
+
const y = floorY(index);
|
|
1002
|
+
rows += "<line x1='104' y1='" + y + "' x2='430' y2='" + y + "' stroke='" + Ink(0.05) + "'/>" +
|
|
1003
|
+
"<text x='34' y='" + (y + 4) + "' text-anchor='end' class='t-floor'>" + label + "</text>" +
|
|
1004
|
+
"<text id='call-up-" + index + "' x='52' y='" + (y + 4) + "' class='t-call' style='opacity:0'>▲</text>" +
|
|
1005
|
+
"<text id='call-down-" + index + "' x='68' y='" + (y + 4) + "' class='t-call' style='opacity:0'>▼</text>";
|
|
1006
|
+
skipRows += "<rect id='skip-row-" + index + "' x='0' y='" + (y - SHAFT_SPACING / 2) + "' width='" + LANE_WIDTH + "' height='" + SHAFT_SPACING + "' fill='" + Black(0.55) + "' style='opacity:0'/>";
|
|
1007
|
+
});
|
|
1008
|
+
|
|
1009
|
+
const carGroup = function (key) {
|
|
1010
|
+
const color = FLEET_COLORS[key];
|
|
1011
|
+
// WHY: Doors sit on top of a warning-colored "cabin light" rect. Closed, they hide it; open,
|
|
1012
|
+
// they slide clear and the light shows through, so "doors open" reads at a glance.
|
|
1013
|
+
return "<g id='car-" + key + "' class='car' style='transform: translate(" + LANE_X[key] + "px, " + SHAFT_BOTTOM + "px); transition: transform 0.9s linear'>" +
|
|
1014
|
+
"<text id='dir-" + key + "' y='-34' text-anchor='middle' class='t-dir' style='opacity:0'></text>" +
|
|
1015
|
+
"<circle id='status-" + key + "' cx='0' cy='-22' r='5' fill='" + Ink(0.3) + "' stroke='" + Black(0.3) + "'/>" +
|
|
1016
|
+
"<rect x='-38' y='-15' width='76' height='30' rx='7' fill='" + ChartBox.alpha(color, 0.16) + "' stroke='" + color + "' stroke-width='2'/>" +
|
|
1017
|
+
"<g style='clip-path: inset(2px round 5px)'>" +
|
|
1018
|
+
"<rect id='glow-" + key + "' x='-20' y='-13' width='40' height='26' fill='" + WARNING_COLOR + "' style='opacity:0; transition: opacity 0.4s'/>" +
|
|
1019
|
+
"<rect id='door-l-" + key + "' x='-20' y='-13' width='20' height='26' fill='" + Ink(0.35) + "' style='transition: transform 0.5s'/>" +
|
|
1020
|
+
"<rect id='door-r-" + key + "' x='0' y='-13' width='20' height='26' fill='" + Ink(0.35) + "' style='transition: transform 0.5s'/>" +
|
|
1021
|
+
"<line x1='0' y1='-13' x2='0' y2='13' stroke='" + Black(0.35) + "'/>" +
|
|
1022
|
+
"</g>" +
|
|
1023
|
+
"<rect x='-28' y='19' width='56' height='5' rx='2' fill='" + Ink(0.08) + "'/>" +
|
|
1024
|
+
"<rect id='load-" + key + "' x='-28' y='19' width='56' height='5' rx='2' fill='" + color + "' style='transform-origin:-28px 0px; transition: transform 0.4s, fill 0.3s'/>" +
|
|
1025
|
+
"</g>";
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
const overlay = "<g id='skip-overlay' style='transform: translateX(" + (LANE_X.A - LANE_WIDTH / 2) + "px); transition: transform 0.4s'>" + skipRows + "</g>";
|
|
1029
|
+
|
|
1030
|
+
return "<svg viewBox='0 0 460 460' style='display:block; width:100%; height:auto; max-height:460px; font-family:inherit'>" +
|
|
1031
|
+
"<style>" +
|
|
1032
|
+
".t-floor { fill:" + Ink(0.5) + "; font-size:12px; }" +
|
|
1033
|
+
".t-call { fill:" + WARNING_COLOR + "; font-size:13px; font-weight:bold; transition: opacity 0.3s; }" +
|
|
1034
|
+
".t-dir { fill:" + Ink(0.9) + "; font-size:16px; font-weight:bold; transition: opacity 0.3s; }" +
|
|
1035
|
+
"@keyframes carPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }" +
|
|
1036
|
+
".car.doors-open circle { animation: carPulse 1.1s ease-in-out infinite; }" +
|
|
1037
|
+
"</style>" +
|
|
1038
|
+
rails + overlay + rows + carGroup("A") + carGroup("B") + carGroup("C") +
|
|
1039
|
+
"</svg>";
|
|
1040
|
+
|
|
1041
|
+
};
|
|
1042
|
+
|
|
1043
|
+
const GAUGE_R = 70;
|
|
1044
|
+
|
|
1045
|
+
const createLoadGaugeSvg = function () {
|
|
1046
|
+
const cx = 100, cy = 100;
|
|
1047
|
+
const arc = "M" + (cx - GAUGE_R) + " " + cy + " A" + GAUGE_R + " " + GAUGE_R + " 0 0 1 " + (cx + GAUGE_R) + " " + cy;
|
|
1048
|
+
return "<svg viewBox='0 0 200 130' style='display:block; width:100%; height:auto'>" +
|
|
1049
|
+
"<path d='" + arc + "' fill='none' stroke='" + Ink(0.07) + "' stroke-width='12' stroke-linecap='round'/>" +
|
|
1050
|
+
"<path id='load-bar' d='" + arc + "' fill='none' stroke='" + ACCENT_COLOR + "' stroke-width='12' stroke-linecap='round' pathLength='100' stroke-dasharray='0 100' style='transition: stroke-dasharray 0.6s, stroke 0.3s'/>" +
|
|
1051
|
+
"<text id='load-value' x='" + cx + "' y='" + (cy - 8) + "' text-anchor='middle' style='fill:" + Ink(0.95) + "; font-size:26px; font-weight:bold'></text>" +
|
|
1052
|
+
"<text id='load-percent' x='" + cx + "' y='" + (cy + 12) + "' text-anchor='middle' style='fill:" + Ink(0.45) + "; font-size:12px'></text>" +
|
|
1053
|
+
"</svg>";
|
|
1054
|
+
};
|
|
1055
|
+
|
|
1056
|
+
// *** VALUE CONVERTERS:
|
|
1057
|
+
|
|
1058
|
+
const sliderToHold = function (value) {
|
|
1059
|
+
return Math.round(2 + value / 100 * 8); // 2 - 10 seconds
|
|
1060
|
+
};
|
|
1061
|
+
|
|
1062
|
+
const holdToSlider = function (hold) {
|
|
1063
|
+
return (hold - 2) / 8 * 100;
|
|
1064
|
+
};
|
|
1065
|
+
|
|
1066
|
+
// *** ACTIONS:
|
|
1067
|
+
|
|
1068
|
+
const onModeChange = function (value) {
|
|
1069
|
+
|
|
1070
|
+
if (isRendering) return;
|
|
1071
|
+
|
|
1072
|
+
if (value === "outOfService") {
|
|
1073
|
+
const previousMode = car.mode;
|
|
1074
|
+
Theme.confirm({
|
|
1075
|
+
titleText: "Take Out of Service",
|
|
1076
|
+
messageText: "<b>" + car.name + "</b> will stop answering calls. Any of its pending stops go back to the fleet.",
|
|
1077
|
+
confirmText: "Take Out of Service",
|
|
1078
|
+
onAnswer: function (isConfirmed) {
|
|
1079
|
+
if (!car) return;
|
|
1080
|
+
if (isConfirmed) {
|
|
1081
|
+
setCarMode(car, "outOfService");
|
|
1082
|
+
renderAll();
|
|
1083
|
+
} else {
|
|
1084
|
+
isRendering = 1;
|
|
1085
|
+
RadioButton.setValue("carMode", previousMode, 1);
|
|
1086
|
+
isRendering = 0;
|
|
1087
|
+
}
|
|
1088
|
+
},
|
|
1089
|
+
});
|
|
1090
|
+
return;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
setCarMode(car, value);
|
|
1094
|
+
renderAll();
|
|
1095
|
+
|
|
1096
|
+
};
|
|
1097
|
+
|
|
1098
|
+
const onFloorButtonClick = function (floorIndex) {
|
|
1099
|
+
if (!car || isOut(car)) return;
|
|
1100
|
+
if (!isServiced(car, floorIndex)) return;
|
|
1101
|
+
if (!car.stops.includes(floorIndex)) car.stops.push(floorIndex);
|
|
1102
|
+
addEvent(car, "Info", "Car panel: floor " + FLOORS[floorIndex] + " selected");
|
|
1103
|
+
renderCarPanel();
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
const onDoorButtonClick = function (action) {
|
|
1107
|
+
if (!car || isOut(car)) return;
|
|
1108
|
+
if (action === "open" && car.doorState === "closed") {
|
|
1109
|
+
car.doorState = "opening";
|
|
1110
|
+
car.status = "doors";
|
|
1111
|
+
car.doorTimer = (car.mode === "independent" || fleet.emergencyActive) ? -1 : fleet.doorHoldTicks;
|
|
1112
|
+
addEvent(car, "Info", "Door opened manually");
|
|
1113
|
+
} else if (action === "close" && car.doorState === "open" && !car.overloaded) {
|
|
1114
|
+
car.doorState = "closing";
|
|
1115
|
+
addEvent(car, "Info", "Door closed manually");
|
|
1116
|
+
}
|
|
1117
|
+
renderLive();
|
|
1118
|
+
};
|
|
1119
|
+
|
|
1120
|
+
const onAlarmTest = function () {
|
|
1121
|
+
if (!car) return;
|
|
1122
|
+
car.status = "alarm";
|
|
1123
|
+
car.faults++;
|
|
1124
|
+
addEvent(car, "Error", "Alarm bell activated");
|
|
1125
|
+
renderLive();
|
|
1126
|
+
setTimeout(function () { if (car && car.status === "alarm") { car.status = "idle"; renderLive(); } }, 2500);
|
|
1127
|
+
};
|
|
1128
|
+
|
|
1129
|
+
const onServiceFloorChange = function (floorIndex, checked) {
|
|
1130
|
+
if (isRendering || !car) return;
|
|
1131
|
+
car.serviceFloors[floorIndex] = checked;
|
|
1132
|
+
addEvent(car, "Info", "Floor " + FLOORS[floorIndex] + (checked ? " is now serviced" : " is now skipped") + " by " + car.name);
|
|
1133
|
+
renderSkipOverlay();
|
|
1134
|
+
renderCarPanel();
|
|
1135
|
+
};
|
|
1136
|
+
|
|
1137
|
+
const onMoreMenuClick = function (key) {
|
|
1138
|
+
switch (key) {
|
|
1139
|
+
case "recall":
|
|
1140
|
+
Theme.confirm({
|
|
1141
|
+
titleText: "Test an Emergency Recall",
|
|
1142
|
+
messageText: "All cars head to the Lobby and hold their doors open. Hall calls are ignored until it is reset.",
|
|
1143
|
+
confirmText: "Start Recall",
|
|
1144
|
+
onAnswer: function (isConfirmed) { if (isConfirmed) setGridEmergency(1); },
|
|
1145
|
+
});
|
|
1146
|
+
break;
|
|
1147
|
+
case "reset":
|
|
1148
|
+
setGridEmergency(0);
|
|
1149
|
+
break;
|
|
1150
|
+
case "overload":
|
|
1151
|
+
car.load = Math.round(car.capacity * 1.15);
|
|
1152
|
+
car.overloaded = 1;
|
|
1153
|
+
addEvent(car, "Warning", "Test: load set above capacity");
|
|
1154
|
+
renderAll();
|
|
1155
|
+
break;
|
|
1156
|
+
case "csv":
|
|
1157
|
+
downloadReport();
|
|
1158
|
+
break;
|
|
1159
|
+
case "copy":
|
|
1160
|
+
navigator.clipboard.writeText(car.serial).then(function () {
|
|
1161
|
+
addEvent(car, "Info", "Serial number copied: " + car.serial);
|
|
1162
|
+
}).catch(function () {
|
|
1163
|
+
addEvent(car, "Error", "Serial number could not be copied");
|
|
1164
|
+
});
|
|
1165
|
+
break;
|
|
1166
|
+
}
|
|
1167
|
+
};
|
|
1168
|
+
|
|
1169
|
+
const downloadReport = function () {
|
|
1170
|
+
const lines = ["car,trips_today,door_cycles_today,faults,load_kg,mode"];
|
|
1171
|
+
CARS.forEach(function (c) {
|
|
1172
|
+
lines.push([c.name, c.tripsToday, c.doorCycles, c.faults, Math.round(c.load), c.mode].join(","));
|
|
1173
|
+
});
|
|
1174
|
+
const link = document.createElement("a");
|
|
1175
|
+
link.href = URL.createObjectURL(new Blob([lines.join("\n")], { type: "text/csv" }));
|
|
1176
|
+
link.download = "elevator-fleet-report.csv";
|
|
1177
|
+
link.click();
|
|
1178
|
+
URL.revokeObjectURL(link.href);
|
|
1179
|
+
};
|
|
1180
|
+
|
|
1181
|
+
// *** RENDER:
|
|
1182
|
+
|
|
1183
|
+
const selectCar = function (index) {
|
|
1184
|
+
|
|
1185
|
+
car = CARS[index];
|
|
1186
|
+
|
|
1187
|
+
chartPosition.whenReady(function () {
|
|
1188
|
+
chartPosition.data.labels = car.history.labels.slice();
|
|
1189
|
+
chartPosition.data.datasets[0].data = car.history.floor.slice();
|
|
1190
|
+
chartPosition.update("none");
|
|
1191
|
+
chartPosition.data.datasets[0].borderColor = FLEET_COLORS[car.key];
|
|
1192
|
+
chartPosition.update("none");
|
|
1193
|
+
});
|
|
1194
|
+
|
|
1195
|
+
renderAll();
|
|
1196
|
+
|
|
1197
|
+
};
|
|
1198
|
+
|
|
1199
|
+
const renderAll = function () {
|
|
1200
|
+
renderHeader();
|
|
1201
|
+
renderAlert();
|
|
1202
|
+
// WHY: These two are also in renderLive() (every tick), but the shaft's car groups and the KPI
|
|
1203
|
+
// text/bars are otherwise stuck at their SVG-creation defaults until the first tick of loop()
|
|
1204
|
+
// (about 1 second after the page opens). Calling them here fixes the very first paint.
|
|
1205
|
+
renderShaftLive();
|
|
1206
|
+
renderKpis();
|
|
1207
|
+
renderCarInfo();
|
|
1208
|
+
renderControls();
|
|
1209
|
+
renderCarPanel();
|
|
1210
|
+
renderSkipOverlay();
|
|
1211
|
+
renderLoadGauge();
|
|
1212
|
+
renderQueue();
|
|
1213
|
+
renderMaintenance();
|
|
1214
|
+
renderEvents();
|
|
1215
|
+
};
|
|
1216
|
+
|
|
1217
|
+
// Every second.
|
|
1218
|
+
const renderLive = function () {
|
|
1219
|
+
renderHeader();
|
|
1220
|
+
renderAlert();
|
|
1221
|
+
renderShaftLive();
|
|
1222
|
+
renderCarInfo();
|
|
1223
|
+
renderLoadGauge();
|
|
1224
|
+
renderKpis();
|
|
1225
|
+
renderQueue();
|
|
1226
|
+
renderCarPanel();
|
|
1227
|
+
};
|
|
1228
|
+
|
|
1229
|
+
const getStatusKey = function (c) {
|
|
1230
|
+
if (fleet.emergencyActive && !isOut(c)) return "emergency";
|
|
1231
|
+
if (c.status === "alarm") return "alarm";
|
|
1232
|
+
if (isOut(c)) return "outOfService";
|
|
1233
|
+
if (c.doorState !== "closed") return "doors";
|
|
1234
|
+
if (c.direction === "up" || c.direction === "down") return "moving";
|
|
1235
|
+
return "idle";
|
|
1236
|
+
};
|
|
1237
|
+
|
|
1238
|
+
const renderHeader = function () {
|
|
1239
|
+
lblBuilding.text = fleet.buildingName + " · " + car.model;
|
|
1240
|
+
const status = STATUS_LIST[getStatusKey(car)];
|
|
1241
|
+
setPill(lblStatus, "● " + status.text, status.color);
|
|
1242
|
+
moreMenu.setItemEnabled("overload", !isOut(car));
|
|
1243
|
+
moreMenu.setItemEnabled("recall", !fleet.emergencyActive);
|
|
1244
|
+
moreMenu.setItemEnabled("reset", fleet.emergencyActive === 1);
|
|
1245
|
+
};
|
|
1246
|
+
|
|
1247
|
+
const renderAlert = function () {
|
|
1248
|
+
alertBox.visible = fleet.emergencyActive ? 1 : 0;
|
|
1249
|
+
lblAlert.text = "<b>Emergency recall is active.</b> All cars are heading to the Lobby and holding their doors open. " +
|
|
1250
|
+
"<span style='color:" + Ink(0.55) + "'>Hall calls are not answered.</span>";
|
|
1251
|
+
};
|
|
1252
|
+
|
|
1253
|
+
const renderCarInfo = function () {
|
|
1254
|
+
const c = car;
|
|
1255
|
+
carInfoLabels.floor.text = FLOORS[Math.round(c.floorPos)];
|
|
1256
|
+
const target = pickNextTarget(c);
|
|
1257
|
+
carInfoLabels.next.text = (isOut(c)) ? "—" : (target !== null) ? FLOORS[target] : "None";
|
|
1258
|
+
carInfoLabels.direction.text = (c.direction === "up") ? "▲ Up" : (c.direction === "down") ? "▼ Down" : "—";
|
|
1259
|
+
carInfoLabels.doors.text = (c.doorState === "closed") ? "Closed" : (c.doorState === "open") ? "Open" : (c.doorState === "opening") ? "Opening" : "Closing";
|
|
1260
|
+
carInfoLabels.mode.text = MODES.find(function (m) { return m.value === c.mode; }).text;
|
|
1261
|
+
carInfoLabels.load.text = Math.round(c.load) + " / " + c.capacity + " kg" + ((c.overloaded) ? " <span style='color:" + ERROR_COLOR + "'>· Overloaded</span>" : "");
|
|
1262
|
+
};
|
|
1263
|
+
|
|
1264
|
+
const setCarTransform = function (key, floorPos) {
|
|
1265
|
+
const g = shaft.svg.querySelector("#car-" + key);
|
|
1266
|
+
g.style.transform = "translate(" + LANE_X[key] + "px, " + floorY(floorPos) + "px)";
|
|
1267
|
+
};
|
|
1268
|
+
|
|
1269
|
+
const renderShaftLive = function () {
|
|
1270
|
+
|
|
1271
|
+
CARS.forEach(function (c) {
|
|
1272
|
+
|
|
1273
|
+
setCarTransform(c.key, c.floorPos);
|
|
1274
|
+
|
|
1275
|
+
const dirText = shaft.svg.querySelector("#dir-" + c.key);
|
|
1276
|
+
if (c.direction === "up" || c.direction === "down") {
|
|
1277
|
+
dirText.textContent = (c.direction === "up") ? "▲" : "▼";
|
|
1278
|
+
dirText.style.opacity = 1;
|
|
1279
|
+
} else {
|
|
1280
|
+
dirText.style.opacity = 0;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
const status = STATUS_LIST[getStatusKey(c)];
|
|
1284
|
+
shaft.svg.querySelector("#status-" + c.key).setAttribute("fill", status.color);
|
|
1285
|
+
|
|
1286
|
+
const isOpen = (c.doorState === "open" || c.doorState === "opening");
|
|
1287
|
+
shaft.svg.querySelector("#door-l-" + c.key).style.transform = "translateX(" + ((isOpen) ? -20 : 0) + "px)";
|
|
1288
|
+
shaft.svg.querySelector("#door-r-" + c.key).style.transform = "translateX(" + ((isOpen) ? 20 : 0) + "px)";
|
|
1289
|
+
shaft.svg.querySelector("#glow-" + c.key).style.opacity = (isOpen) ? 1 : 0;
|
|
1290
|
+
shaft.svg.querySelector("#car-" + c.key).classList.toggle("doors-open", isOpen);
|
|
1291
|
+
|
|
1292
|
+
const loadBar = shaft.svg.querySelector("#load-" + c.key);
|
|
1293
|
+
const ratio = Math.max(0, Math.min(1.3, c.load / c.capacity));
|
|
1294
|
+
loadBar.style.transform = "scaleX(" + ratio + ")";
|
|
1295
|
+
loadBar.setAttribute("fill", (c.overloaded) ? ERROR_COLOR : FLEET_COLORS[c.key]);
|
|
1296
|
+
|
|
1297
|
+
});
|
|
1298
|
+
|
|
1299
|
+
FLOORS.forEach(function (label, index) {
|
|
1300
|
+
const up = hallCalls.some(function (call) { return call.floor === index && call.direction === "up"; });
|
|
1301
|
+
const down = hallCalls.some(function (call) { return call.floor === index && call.direction === "down"; });
|
|
1302
|
+
shaft.svg.querySelector("#call-up-" + index).style.opacity = (up) ? 1 : 0;
|
|
1303
|
+
shaft.svg.querySelector("#call-down-" + index).style.opacity = (down) ? 1 : 0;
|
|
1304
|
+
});
|
|
1305
|
+
|
|
1306
|
+
};
|
|
1307
|
+
|
|
1308
|
+
const renderSkipOverlay = function () {
|
|
1309
|
+
const overlay = shaft.svg.querySelector("#skip-overlay");
|
|
1310
|
+
overlay.style.transform = "translateX(" + (LANE_X[car.key] - LANE_WIDTH / 2) + "px)";
|
|
1311
|
+
FLOORS.forEach(function (label, index) {
|
|
1312
|
+
shaft.svg.querySelector("#skip-row-" + index).style.opacity = (car.serviceFloors[index]) ? 0 : 0.55;
|
|
1313
|
+
});
|
|
1314
|
+
};
|
|
1315
|
+
|
|
1316
|
+
const renderLoadGauge = function () {
|
|
1317
|
+
const c = car;
|
|
1318
|
+
const ratio = Math.max(0, Math.min(1, c.load / c.capacity));
|
|
1319
|
+
const svg = gaugeBox.elem.querySelector("svg");
|
|
1320
|
+
const color = (c.overloaded) ? ERROR_COLOR : (ratio > 0.85) ? WARNING_COLOR : ACCENT_COLOR;
|
|
1321
|
+
svg.querySelector("#load-bar").setAttribute("stroke-dasharray", (ratio * 100).toFixed(1) + " 100");
|
|
1322
|
+
svg.querySelector("#load-bar").setAttribute("stroke", color);
|
|
1323
|
+
svg.querySelector("#load-value").textContent = Math.round(c.load) + " kg";
|
|
1324
|
+
svg.querySelector("#load-percent").textContent = Math.round(c.load / c.capacity * 100) + "% of " + c.capacity + " kg";
|
|
1325
|
+
lblLoadInfo.text = (c.overloaded) ? "Overloaded. The doors will not close until the load goes down or you force them." : "Normal load.";
|
|
1326
|
+
setInteractive(btnForceClose, c.overloaded && c.doorState === "open");
|
|
1327
|
+
};
|
|
1328
|
+
|
|
1329
|
+
const renderKpis = function () {
|
|
1330
|
+
const h = fleet.history;
|
|
1331
|
+
kpiBoxList[0].setValueText(String(sum(CARS, function (c) { return c.tripsToday; })));
|
|
1332
|
+
kpiBoxList[1].setValueText((recentWaits.length) ? Math.round(recentWaits.reduce(function (a, b) { return a + b; }, 0) / recentWaits.length) + " s" : "—");
|
|
1333
|
+
kpiBoxList[2].setValueText(String(sum(CARS, function (c) { return c.doorCycles; })));
|
|
1334
|
+
kpiBoxList[3].setValueText(String(sum(CARS, function (c) { return c.faults; })));
|
|
1335
|
+
kpiBoxList[0].setValues(h.trips);
|
|
1336
|
+
kpiBoxList[1].setValues(h.wait);
|
|
1337
|
+
kpiBoxList[2].setValues(h.doors);
|
|
1338
|
+
kpiBoxList[3].setValues(h.faults);
|
|
1339
|
+
chartStops.whenReady(function () {
|
|
1340
|
+
chartStops.data.datasets[0].data = fleet.stopsByFloorToday.slice();
|
|
1341
|
+
chartStops.update("none");
|
|
1342
|
+
});
|
|
1343
|
+
};
|
|
1344
|
+
|
|
1345
|
+
const renderControls = function () {
|
|
1346
|
+
isRendering = 1;
|
|
1347
|
+
RadioButton.setValue("carMode", car.mode, 1);
|
|
1348
|
+
const info = {
|
|
1349
|
+
normal: "The car answers hall calls automatically, in the order it can reach them.",
|
|
1350
|
+
attendant: "The car only moves to floors selected on its own car panel.",
|
|
1351
|
+
independent: "Like Attendant, but skip-floors are ignored and the doors stay open until you close them.",
|
|
1352
|
+
outOfService: "The car is parked and does not answer any calls.",
|
|
1353
|
+
};
|
|
1354
|
+
lblModeInfo.text = info[car.mode];
|
|
1355
|
+
lblHold.text = fleet.doorHoldTicks + " s";
|
|
1356
|
+
if (sliderToHold(sliderHold.getValue()) !== fleet.doorHoldTicks) sliderHold.setValue(holdToSlider(fleet.doorHoldTicks));
|
|
1357
|
+
isRendering = 0;
|
|
1358
|
+
};
|
|
1359
|
+
|
|
1360
|
+
const renderCarPanel = function () {
|
|
1361
|
+
|
|
1362
|
+
const c = car;
|
|
1363
|
+
const controllable = !isOut(c);
|
|
1364
|
+
|
|
1365
|
+
FLOORS.forEach(function (label, index) {
|
|
1366
|
+
const btn = floorButtons[index];
|
|
1367
|
+
const serviced = isServiced(c, index);
|
|
1368
|
+
const requested = c.stops.includes(index);
|
|
1369
|
+
const isHere = (Math.round(c.floorPos) === index);
|
|
1370
|
+
btn.color = (isHere) ? PRIMARY_COLOR : (requested) ? "rgba(101, 162, 147, 0.18)" : FIELD_COLOR;
|
|
1371
|
+
btn.borderColor = (isHere || requested) ? ACCENT_COLOR : CARD_BORDER_COLOR;
|
|
1372
|
+
btn.lbl.textColor = (isHere) ? Ink(1) : (serviced) ? Ink(0.85) : Ink(0.25);
|
|
1373
|
+
btn.elem.style.cursor = (controllable && serviced) ? "pointer" : "default";
|
|
1374
|
+
btn.elem.style.pointerEvents = (controllable && serviced) ? "auto" : "none";
|
|
1375
|
+
});
|
|
1376
|
+
|
|
1377
|
+
setInteractive(btnOpenDoor, controllable && c.doorState === "closed");
|
|
1378
|
+
setInteractive(btnCloseDoor, controllable && c.doorState === "open" && !c.overloaded);
|
|
1379
|
+
|
|
1380
|
+
isRendering = 1;
|
|
1381
|
+
FLOORS.forEach(function (label, index) {
|
|
1382
|
+
serviceChecks[index].setChecked(c.serviceFloors[index], 1);
|
|
1383
|
+
setInteractive(serviceChecks[index], c.mode !== "outOfService");
|
|
1384
|
+
});
|
|
1385
|
+
isRendering = 0;
|
|
1386
|
+
|
|
1387
|
+
};
|
|
1388
|
+
|
|
1389
|
+
const renderQueue = function () {
|
|
1390
|
+
|
|
1391
|
+
queueCard.lblRight.text = (hallCalls.length) ? hallCalls.length + " waiting" : "";
|
|
1392
|
+
|
|
1393
|
+
renderInto(grpQueueHost, function () {
|
|
1394
|
+
|
|
1395
|
+
if (!hallCalls.length) {
|
|
1396
|
+
Label({ text: "No hall calls waiting.", fontSize: 13, textColor: Ink(0.45), padding: [0, 4] });
|
|
1397
|
+
return;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
hallCalls.slice(0, 10).forEach(function (call, index) {
|
|
1401
|
+
|
|
1402
|
+
HGroup({ width: "100%", height: "auto", align: "left center", gap: 12 });
|
|
1403
|
+
that.elem.style.padding = "8px 0px";
|
|
1404
|
+
if (index > 0) that.elem.style.borderTop = "1px solid " + Ink(0.06);
|
|
1405
|
+
|
|
1406
|
+
Label({ text: (call.direction === "up") ? "▲" : "▼", fontSize: 14, textColor: WARNING_COLOR, width: 20 });
|
|
1407
|
+
|
|
1408
|
+
VGroup({ width: "auto", height: "auto", align: "left top", gap: 0 });
|
|
1409
|
+
that.elem.style.flex = "1 1 auto";
|
|
1410
|
+
Label({ text: "Floor " + FLOORS[call.floor], fontSize: 14, textColor: Ink(0.9) });
|
|
1411
|
+
const assignedCar = CARS.find(function (c) { return c.id === call.carId; });
|
|
1412
|
+
Label({ text: (assignedCar) ? "Car " + assignedCar.key + " is coming" : "Waiting for a car", fontSize: 12, textColor: (assignedCar) ? ACCENT_COLOR : Ink(0.45) });
|
|
1413
|
+
endGroup();
|
|
1414
|
+
|
|
1415
|
+
Label({ text: Math.round((Date.now() - call.time) / 1000) + " s", fontSize: 12, textColor: Ink(0.4) });
|
|
1416
|
+
|
|
1417
|
+
endGroup();
|
|
1418
|
+
|
|
1419
|
+
});
|
|
1420
|
+
|
|
1421
|
+
});
|
|
1422
|
+
|
|
1423
|
+
};
|
|
1424
|
+
|
|
1425
|
+
const renderMaintenance = function () {
|
|
1426
|
+
const c = car;
|
|
1427
|
+
renderInto(grpMaintenanceHost, function () {
|
|
1428
|
+
createInfoLine("Motor hours", 1).text = Math.round(c.motorHours).toLocaleString("en-US");
|
|
1429
|
+
createInfoLine("Door cycles (total)").text = c.doorCyclesTotal.toLocaleString("en-US");
|
|
1430
|
+
createInfoLine("Last inspection").text = c.inspection.last;
|
|
1431
|
+
|
|
1432
|
+
HGroup({ width: "100%", height: "auto", align: "left center", gap: 10 });
|
|
1433
|
+
that.elem.style.padding = "8px 0px";
|
|
1434
|
+
that.elem.style.borderTop = "1px solid " + Ink(0.06);
|
|
1435
|
+
that.elem.style.justifyContent = "space-between";
|
|
1436
|
+
Label({ text: "Next inspection", fontSize: 14, textColor: Ink(0.5) });
|
|
1437
|
+
selectNextInspection = SelectDate({
|
|
1438
|
+
width: 150, height: 36, format: "DD MMM YYYY",
|
|
1439
|
+
date: c.inspection.next, minDate: new Date(),
|
|
1440
|
+
showClearButton: 0, style: PICKER_STYLE,
|
|
1441
|
+
onChange: function (self) {
|
|
1442
|
+
if (!self.value) return;
|
|
1443
|
+
car.inspection.next = self.value;
|
|
1444
|
+
addEvent(car, "Info", "Next inspection set to " + self.dateText);
|
|
1445
|
+
},
|
|
1446
|
+
});
|
|
1447
|
+
endGroup();
|
|
1448
|
+
|
|
1449
|
+
const daysLeft = Math.round((new Date(c.inspection.next) - new Date()) / 86400000);
|
|
1450
|
+
if (daysLeft <= 14) {
|
|
1451
|
+
Label({
|
|
1452
|
+
text: (daysLeft < 0) ? "Inspection is overdue." : "Inspection is due in " + daysLeft + " day(s).",
|
|
1453
|
+
fontSize: 12, textColor: WARNING_COLOR, width: "100%",
|
|
1454
|
+
});
|
|
1455
|
+
that.elem.style.marginTop = "6px";
|
|
1456
|
+
}
|
|
1457
|
+
});
|
|
1458
|
+
};
|
|
1459
|
+
|
|
1460
|
+
const renderEvents = function () {
|
|
1461
|
+
if (grpEventHost.table) { grpEventHost.table.remove(); grpEventHost.table = null; }
|
|
1462
|
+
const LEVEL_COLORS = { "Info": Ink(0.6), "Success": ACCENT_COLOR, "Warning": WARNING_COLOR, "Error": ERROR_COLOR };
|
|
1463
|
+
const previous = getDefaultContainerBox();
|
|
1464
|
+
setDefaultContainerBox(grpEventHost);
|
|
1465
|
+
grpEventHost.table = TinyTable({
|
|
1466
|
+
columns: Theme.tableColumns(["TIME", "LEVEL", "MESSAGE"], ["18%", "18%", "63%"]),
|
|
1467
|
+
rows: car.events.slice(0, 10).map(function (e) { return [e.time, e.level, e.message]; }),
|
|
1468
|
+
allowHtml: 1, // (the texts are made by the panel, user texts are escaped)
|
|
1469
|
+
style: Theme.tableStyle({ headerColor: FIELD_COLOR, bodyColor: CARD_COLOR, borderColor: CARD_BORDER_COLOR, fontSize: 13 }),
|
|
1470
|
+
onCellCreate: function (cell) {
|
|
1471
|
+
if (cell.columnIndex === 0) cell.label.textColor = Ink(0.5);
|
|
1472
|
+
if (cell.columnIndex === 1) cell.label.textColor = LEVEL_COLORS[cell.value] || Ink(0.8);
|
|
1473
|
+
},
|
|
1474
|
+
});
|
|
1475
|
+
Theme.fillTableWidth(grpEventHost.table);
|
|
1476
|
+
grpEventHost.table.elem.style.minWidth = "420px";
|
|
1477
|
+
setDefaultContainerBox(previous);
|
|
1478
|
+
};
|
|
1479
|
+
|
|
1480
|
+
</script>
|
|
1481
|
+
|
|
1482
|
+
</head>
|
|
1483
|
+
<body>
|
|
1484
|
+
|
|
1485
|
+
<!-- HTML content -->
|
|
1486
|
+
|
|
1487
|
+
</body>
|
|
1488
|
+
</html>
|