create-basicjs 0.1.4 → 0.1.5
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 +2 -2
- package/bin/create-basicjs.js +31 -4
- package/bin/verify-package.js +1 -1
- package/package.json +2 -2
- package/payload/starter/AGENTS.md +11 -6
- package/payload/starter/README.md +1 -1
- package/payload/starter/_basic/VERSION +1 -1
- package/payload/starter/_basic/assets/cards/almond-blossom.png +0 -0
- package/payload/starter/_basic/assets/cards/blackberry.png +0 -0
- package/payload/starter/_basic/assets/cards/borage.png +0 -0
- package/payload/starter/_basic/assets/cards/chamomile.png +0 -0
- package/payload/starter/_basic/assets/cards/dill.png +0 -0
- package/payload/starter/_basic/assets/cards/eucalyptus.png +0 -0
- package/payload/starter/_basic/assets/cards/fennel.png +0 -0
- package/payload/starter/_basic/assets/cards/fig.png +0 -0
- package/payload/starter/_basic/assets/cards/juniper.png +0 -0
- package/payload/starter/_basic/assets/cards/lavender.png +0 -0
- package/payload/starter/_basic/assets/cards/lemon.png +0 -0
- package/payload/starter/_basic/assets/cards/olives.png +0 -0
- package/payload/starter/_basic/assets/cards/oregano.png +0 -0
- package/payload/starter/_basic/assets/cards/pepper.png +0 -0
- package/payload/starter/_basic/assets/cards/physalis.png +0 -0
- package/payload/starter/_basic/assets/cards/pomegranate.png +0 -0
- package/payload/starter/_basic/assets/cards/poppy.png +0 -0
- package/payload/starter/_basic/assets/cards/rosehip.png +0 -0
- package/payload/starter/_basic/assets/cards/saffron.png +0 -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.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/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/basic/LICENSE +1 -1
- package/payload/starter/_basic/basic/basic.css +3 -6
- package/payload/starter/_basic/basic/basic.js +154 -60
- package/payload/starter/_basic/basic/basic.min.js +19 -6
- package/payload/starter/_basic/basic/scroll-bar.js +4 -2
- package/payload/starter/_basic/basic/scroll-bar.min.js +1 -0
- package/payload/starter/_basic/comp/accordion.js +659 -0
- package/payload/starter/_basic/comp/action-button.js +22 -23
- package/payload/starter/_basic/comp/action-tab-bar.js +8 -8
- package/payload/starter/_basic/comp/app-bar.js +12 -11
- package/payload/starter/_basic/comp/{badge-v2.js → badge.js} +51 -5
- package/payload/starter/_basic/comp/bottom-bar.js +31 -23
- package/payload/starter/_basic/comp/breadcrumbs.js +4 -2
- package/payload/starter/_basic/comp/canvas.js +652 -0
- package/payload/starter/_basic/comp/chat-view.js +827 -0
- package/payload/starter/_basic/comp/check-box.js +137 -21
- package/payload/starter/_basic/comp/code-editor.js +953 -0
- package/payload/starter/_basic/comp/{select-color.js → color-picker.js} +62 -29
- package/payload/starter/_basic/comp/context-menu.js +342 -30
- package/payload/starter/_basic/comp/{currency-input-b.js → currency-field.js} +48 -29
- package/payload/starter/_basic/comp/data-table.js +114 -42
- package/payload/starter/_basic/comp/{select-date.js → date-picker.js} +104 -52
- package/payload/starter/_basic/comp/dialog.js +214 -76
- package/payload/starter/_basic/comp/email-field.js +65 -0
- package/payload/starter/_basic/comp/{select-file.js → file-picker.js} +245 -57
- package/payload/starter/_basic/comp/filters.js +374 -60
- package/payload/starter/_basic/comp/form.js +38 -26
- package/payload/starter/_basic/comp/full-screen-select.js +36 -33
- package/payload/starter/_basic/comp/gauge.js +12 -8
- package/payload/starter/_basic/comp/graph-box.js +3911 -0
- package/payload/starter/_basic/comp/grid-group.js +185 -0
- package/payload/starter/_basic/comp/hold-to-confirm-button.js +16 -7
- package/payload/starter/_basic/comp/image-view.js +598 -0
- package/payload/starter/_basic/comp/item-list.js +507 -163
- package/payload/starter/_basic/comp/json-editor.js +3221 -0
- package/payload/starter/_basic/comp/json-view.js +597 -0
- package/payload/starter/_basic/comp/label-editor.js +22 -19
- package/payload/starter/_basic/comp/left-menu.js +89 -22
- package/payload/starter/_basic/comp/line-progress-bar.js +196 -45
- package/payload/starter/_basic/comp/loading-screen.js +49 -18
- package/payload/starter/_basic/comp/log-view.js +530 -0
- package/payload/starter/_basic/comp/{login-page-v2.js → login-page.js} +205 -106
- package/payload/starter/_basic/comp/markdown-view.js +1044 -0
- package/payload/starter/_basic/comp/menu-bar.js +624 -0
- package/payload/starter/_basic/comp/mini-graph-box.js +20 -11
- package/payload/starter/_basic/comp/minimal-accent.js +208 -0
- package/payload/starter/_basic/comp/notice.js +15 -13
- package/payload/starter/_basic/comp/{number-input-b.js → number-field.js} +26 -19
- package/payload/starter/_basic/comp/numeric-keyboard.js +15 -13
- package/payload/starter/_basic/comp/page-control.js +21 -4
- package/payload/starter/_basic/comp/page-header.js +7 -6
- package/payload/starter/_basic/comp/password-field.js +192 -0
- package/payload/starter/_basic/comp/period-bar.js +8 -7
- package/payload/starter/_basic/comp/{phone-input-b.js → phone-field.js} +80 -45
- package/payload/starter/_basic/comp/progress-bar.js +401 -85
- package/payload/starter/_basic/comp/property-panel.js +1022 -123
- package/payload/starter/_basic/comp/radio-button.js +79 -19
- package/payload/starter/_basic/comp/range-slider.js +569 -0
- package/payload/starter/_basic/comp/rich-text-editor.js +33 -30
- package/payload/starter/_basic/comp/scroll-area.js +308 -0
- package/payload/starter/_basic/comp/scrolling-text.js +10 -9
- package/payload/starter/_basic/comp/search-input.js +725 -0
- package/payload/starter/_basic/comp/search-results.js +60 -24
- package/payload/starter/_basic/comp/select-box.js +229 -107
- package/payload/starter/_basic/comp/settings-row.js +20 -19
- package/payload/starter/_basic/comp/side-panel.js +53 -10
- package/payload/starter/_basic/comp/slider-field.js +264 -88
- package/payload/starter/_basic/comp/slider.js +541 -86
- package/payload/starter/_basic/comp/smart-button.js +433 -352
- package/payload/starter/_basic/comp/smart-table.js +740 -185
- package/payload/starter/_basic/comp/sortable-list.js +47 -38
- package/payload/starter/_basic/comp/spark-line-box.js +25 -16
- package/payload/starter/_basic/comp/splitter.js +411 -0
- package/payload/starter/_basic/comp/status-bar.js +408 -0
- package/payload/starter/_basic/comp/step-bar.js +345 -0
- package/payload/starter/_basic/comp/stepper.js +77 -49
- package/payload/starter/_basic/comp/tabs.js +67 -18
- package/payload/starter/_basic/comp/tag-input.js +50 -10
- package/payload/starter/_basic/comp/tap-effect.js +6 -4
- package/payload/starter/_basic/comp/text-area-field.js +233 -0
- package/payload/starter/_basic/comp/text-field.js +1006 -0
- package/payload/starter/_basic/comp/time-line.js +102 -28
- package/payload/starter/_basic/comp/{select-time.js → time-picker.js} +104 -51
- package/payload/starter/_basic/comp/tiny-select.js +79 -39
- package/payload/starter/_basic/comp/tiny-table.js +12 -8
- package/payload/starter/_basic/comp/toast.js +87 -34
- package/payload/starter/_basic/comp/toggle.js +147 -27
- package/payload/starter/_basic/comp/tool-bar.js +760 -0
- package/payload/starter/_basic/comp/tooltip.js +80 -17
- package/payload/starter/_basic/comp/tree-view.js +124 -41
- package/payload/starter/_basic/comp/ui-effects.js +17 -11
- package/payload/starter/_basic/comp/ui-standards.js +5 -4
- package/payload/starter/_basic/comp/url-field.js +190 -0
- package/payload/starter/_basic/comp/web-view.js +70 -16
- package/payload/starter/_basic/docs/basic-js-animated-rules.md +15 -9
- package/payload/starter/_basic/docs/basic-js-code-rules.md +42 -5
- package/payload/starter/_basic/docs/basic-js-components.md +12 -17
- package/payload/starter/_basic/docs/basic-js-core.md +5 -4
- package/payload/starter/_basic/docs/component-index.md +245 -104
- package/payload/starter/_basic/docs/component-template.js +28 -24
- package/payload/starter/_basic/docs/handbook/00-introduction.md +6 -2
- package/payload/starter/_basic/docs/handbook/00-what-is-new.md +21 -0
- package/payload/starter/_basic/docs/handbook/01-label.md +4 -4
- package/payload/starter/_basic/docs/handbook/02-box.md +7 -7
- package/payload/starter/_basic/docs/handbook/03-image.md +4 -4
- package/payload/starter/_basic/docs/handbook/04-common-properties.md +6 -5
- package/payload/starter/_basic/docs/handbook/05-autolayout.md +8 -7
- package/payload/starter/_basic/docs/handbook/06-button.md +3 -3
- package/payload/starter/_basic/docs/handbook/07-input.md +3 -3
- package/payload/starter/_basic/docs/handbook/08-page.md +3 -3
- package/payload/starter/_basic/docs/handbook/09-useful-examples.md +39 -58
- package/payload/starter/_basic/docs/handbook/10-motion.md +6 -6
- package/payload/starter/_basic/docs/handbook/11-other-functions.md +1 -0
- package/payload/starter/_basic/docs/handbook/13-sound.md +3 -3
- package/payload/starter/_basic/docs/handbook/14-using-components.md +180 -0
- package/payload/starter/_basic/docs/handbook/15-making-a-component.md +338 -0
- package/payload/starter/_basic/docs/what-is-new.md +106 -0
- package/payload/starter/_basic/examples/accordion.htm +174 -0
- package/payload/starter/_basic/examples/action-button.htm +74 -32
- package/payload/starter/_basic/examples/action-tab-bar.htm +5 -6
- package/payload/starter/_basic/examples/app-bar.htm +63 -41
- package/payload/starter/_basic/examples/badge.htm +96 -0
- package/payload/starter/_basic/examples/bottom-bar-2.htm +61 -48
- package/payload/starter/_basic/examples/bottom-bar.htm +74 -16
- package/payload/starter/_basic/examples/breadcrumbs.htm +160 -150
- package/payload/starter/_basic/examples/canvas.htm +190 -0
- package/payload/starter/_basic/examples/chat-view.htm +143 -0
- package/payload/starter/_basic/examples/check-box-2.htm +71 -82
- package/payload/starter/_basic/examples/check-box-3.htm +72 -83
- package/payload/starter/_basic/examples/check-box.htm +207 -0
- package/payload/starter/_basic/examples/code-editor-2.htm +259 -0
- package/payload/starter/_basic/examples/code-editor.htm +225 -0
- package/payload/starter/_basic/examples/color-picker.htm +206 -0
- package/payload/starter/_basic/examples/context-menu.htm +180 -139
- package/payload/starter/_basic/examples/currency-field.htm +105 -0
- package/payload/starter/_basic/examples/data-table-2.htm +2 -1
- package/payload/starter/_basic/examples/data-table-3.htm +1 -1
- package/payload/starter/_basic/examples/data-table-4.htm +15 -12
- package/payload/starter/_basic/examples/data-table-5.htm +11 -3
- package/payload/starter/_basic/examples/data-table.htm +90 -40
- package/payload/starter/_basic/examples/date-picker.htm +239 -0
- package/payload/starter/_basic/examples/dialog-centered.htm +394 -40
- package/payload/starter/_basic/examples/dialog.htm +267 -46
- package/payload/starter/_basic/examples/email-field.htm +102 -0
- package/payload/starter/_basic/examples/file-picker.htm +296 -0
- package/payload/starter/_basic/examples/filters.htm +33 -22
- package/payload/starter/_basic/examples/{form-1.htm → form.htm} +18 -19
- package/payload/starter/_basic/examples/full-screen-select.htm +81 -58
- package/payload/starter/_basic/examples/gauge.htm +95 -81
- package/payload/starter/_basic/examples/graph-box.htm +365 -0
- package/payload/starter/_basic/examples/grid-group.htm +179 -0
- package/payload/starter/_basic/examples/hold-to-confirm-button.htm +102 -113
- package/payload/starter/_basic/examples/image-view.htm +195 -0
- package/payload/starter/_basic/examples/item-list-2.htm +138 -94
- package/payload/starter/_basic/examples/item-list.htm +191 -86
- package/payload/starter/_basic/examples/json-editor.htm +206 -0
- package/payload/starter/_basic/examples/json-view.htm +153 -0
- package/payload/starter/_basic/examples/label-editor.htm +85 -89
- package/payload/starter/_basic/examples/left-menu-2.htm +93 -0
- package/payload/starter/_basic/examples/left-menu.htm +42 -37
- package/payload/starter/_basic/examples/line-progress-bar.htm +155 -114
- package/payload/starter/_basic/examples/loading-screen.htm +149 -125
- package/payload/starter/_basic/examples/log-view.htm +175 -0
- package/payload/starter/_basic/examples/{login-page-dark-v2.htm → login-page-dark.htm} +265 -267
- package/payload/starter/_basic/examples/{login-page-v2.htm → login-page.htm} +266 -267
- package/payload/starter/_basic/examples/markdown-view.htm +220 -0
- package/payload/starter/_basic/examples/menu-bar-2.htm +225 -0
- package/payload/starter/_basic/examples/menu-bar.htm +145 -0
- package/payload/starter/_basic/examples/mini-graph-box.htm +98 -109
- package/payload/starter/_basic/examples/minimal-accent.htm +196 -0
- package/payload/starter/_basic/examples/minimal-theme.htm +432 -0
- package/payload/starter/_basic/examples/notice.htm +13 -4
- package/payload/starter/_basic/examples/number-field.htm +103 -0
- package/payload/starter/_basic/examples/numeric-keyboard.htm +44 -42
- package/payload/starter/_basic/examples/page-control.htm +181 -130
- package/payload/starter/_basic/examples/page-header.htm +57 -30
- package/payload/starter/_basic/examples/password-field.htm +117 -0
- package/payload/starter/_basic/examples/period-bar.htm +43 -29
- package/payload/starter/_basic/examples/phone-field-select-country.htm +292 -0
- package/payload/starter/_basic/examples/phone-field.htm +104 -0
- package/payload/starter/_basic/examples/progress-bar-ozden.htm +229 -92
- package/payload/starter/_basic/examples/progress-bar.htm +222 -174
- package/payload/starter/_basic/examples/property-panel.htm +152 -52
- package/payload/starter/_basic/examples/radio-button-2.htm +101 -109
- package/payload/starter/_basic/examples/radio-button-3.htm +81 -71
- package/payload/starter/_basic/examples/radio-button.htm +289 -0
- package/payload/starter/_basic/examples/range-slider.htm +171 -0
- package/payload/starter/_basic/examples/rich-text-editor.htm +115 -110
- package/payload/starter/_basic/examples/scroll-area.htm +293 -0
- package/payload/starter/_basic/examples/scrolling-text.htm +27 -6
- package/payload/starter/_basic/examples/search-input-2-light.htm +112 -0
- package/payload/starter/_basic/examples/search-input-3-dark.htm +105 -0
- package/payload/starter/_basic/examples/{search-input-v2-place.htm → search-input-place.htm} +25 -26
- package/payload/starter/_basic/examples/search-input.htm +159 -0
- package/payload/starter/_basic/examples/search-results.htm +85 -88
- package/payload/starter/_basic/examples/select-box-ozden-dark-text.htm +70 -0
- package/payload/starter/_basic/examples/select-box-ozden-item.htm +6 -5
- package/payload/starter/_basic/examples/select-box-ozden-text.htm +5 -3
- package/payload/starter/_basic/examples/select-box.htm +190 -159
- package/payload/starter/_basic/examples/settings-row.htm +92 -43
- package/payload/starter/_basic/examples/side-panel-2.htm +63 -25
- package/payload/starter/_basic/examples/side-panel.htm +84 -70
- package/payload/starter/_basic/examples/slider-2-classic.htm +152 -0
- package/payload/starter/_basic/examples/slider-field-ozden.htm +286 -0
- package/payload/starter/_basic/examples/slider-field.htm +174 -134
- package/payload/starter/_basic/examples/slider.htm +257 -180
- package/payload/starter/_basic/examples/smart-button-3-ozden.htm +170 -257
- package/payload/starter/_basic/examples/smart-button-4-dark.htm +86 -47
- package/payload/starter/_basic/examples/smart-button-5-features.htm +130 -125
- package/payload/starter/_basic/examples/smart-button-alternatif.htm +266 -0
- package/payload/starter/_basic/examples/smart-button.htm +207 -174
- package/payload/starter/_basic/examples/smart-table-2.htm +43 -56
- package/payload/starter/_basic/examples/smart-table-3.htm +148 -113
- package/payload/starter/_basic/examples/smart-table-4.htm +37 -50
- package/payload/starter/_basic/examples/{smart-table-1.htm → smart-table-5.htm} +37 -48
- package/payload/starter/_basic/examples/smart-table.htm +183 -0
- package/payload/starter/_basic/examples/sortable-list.htm +191 -142
- package/payload/starter/_basic/examples/spark-line-box.htm +149 -161
- package/payload/starter/_basic/examples/splitter.htm +164 -0
- package/payload/starter/_basic/examples/status-bar.htm +166 -0
- package/payload/starter/_basic/examples/step-bar.htm +129 -0
- package/payload/starter/_basic/examples/stepper-2.htm +71 -59
- package/payload/starter/_basic/examples/stepper.htm +146 -135
- package/payload/starter/_basic/examples/tabs-2.htm +58 -67
- package/payload/starter/_basic/examples/tabs.htm +197 -180
- package/payload/starter/_basic/examples/tag-input.htm +150 -153
- package/payload/starter/_basic/examples/tap-effect.htm +23 -19
- package/payload/starter/_basic/examples/text-area-field.htm +104 -0
- package/payload/starter/_basic/examples/text-field-2.htm +113 -0
- package/payload/starter/_basic/examples/text-field-3-style.htm +105 -0
- package/payload/starter/_basic/examples/text-field-4-custom-unit.htm +96 -0
- package/payload/starter/_basic/examples/{input-b-ex5-warning-icon.htm → text-field-5-warning-icon.htm} +19 -19
- package/payload/starter/_basic/examples/text-field-6-modern-dark.htm +114 -0
- package/payload/starter/_basic/examples/text-field-7-modern.htm +106 -0
- package/payload/starter/_basic/examples/text-field-8-light-dark.htm +159 -0
- package/payload/starter/_basic/examples/text-field.htm +163 -0
- package/payload/starter/_basic/examples/time-line.htm +180 -116
- package/payload/starter/_basic/examples/time-picker.htm +240 -0
- package/payload/starter/_basic/examples/tiny-select.htm +118 -86
- package/payload/starter/_basic/examples/tiny-table.htm +40 -34
- package/payload/starter/_basic/examples/toast.htm +145 -147
- package/payload/starter/_basic/examples/toggle-2.htm +99 -68
- package/payload/starter/_basic/examples/toggle-3.htm +104 -101
- package/payload/starter/_basic/examples/toggle.htm +161 -93
- package/payload/starter/_basic/examples/tool-bar.htm +172 -0
- package/payload/starter/_basic/examples/tooltip-2.htm +110 -60
- package/payload/starter/_basic/examples/tooltip-3.htm +124 -65
- package/payload/starter/_basic/examples/tooltip-4.htm +218 -0
- package/payload/starter/_basic/examples/tooltip.htm +206 -124
- package/payload/starter/_basic/examples/tree-view.htm +210 -182
- package/payload/starter/_basic/examples/ui-effects.htm +207 -185
- package/payload/starter/_basic/examples/ui-standards.htm +200 -139
- package/payload/starter/_basic/examples/url-field.htm +120 -0
- package/payload/starter/_basic/examples/web-view.htm +109 -110
- package/payload/starter/_basic/min/accordion.min.js +2 -0
- package/payload/starter/_basic/min/action-button.min.js +1 -1
- package/payload/starter/_basic/min/app-bar.min.js +1 -1
- package/payload/starter/_basic/min/badge.min.js +2 -0
- package/payload/starter/_basic/min/bottom-bar.min.js +1 -1
- package/payload/starter/_basic/min/canvas.min.js +2 -0
- package/payload/starter/_basic/min/chat-view.min.js +2 -0
- package/payload/starter/_basic/min/check-box.min.js +1 -1
- package/payload/starter/_basic/min/code-editor.min.js +2 -0
- package/payload/starter/_basic/min/color-picker.min.js +2 -0
- package/payload/starter/_basic/min/context-menu.min.js +1 -1
- package/payload/starter/_basic/min/currency-field.min.js +2 -0
- package/payload/starter/_basic/min/data-table.min.js +1 -1
- package/payload/starter/_basic/min/date-picker.min.js +2 -0
- package/payload/starter/_basic/min/dialog.min.js +1 -1
- package/payload/starter/_basic/min/email-field.min.js +2 -0
- package/payload/starter/_basic/min/file-picker.min.js +2 -0
- package/payload/starter/_basic/min/filters.min.js +1 -1
- package/payload/starter/_basic/min/form.min.js +1 -1
- package/payload/starter/_basic/min/full-screen-select.min.js +1 -1
- package/payload/starter/_basic/min/gauge.min.js +1 -1
- package/payload/starter/_basic/min/graph-box.min.js +2 -0
- package/payload/starter/_basic/min/grid-group.min.js +2 -0
- package/payload/starter/_basic/min/hold-to-confirm-button.min.js +1 -1
- package/payload/starter/_basic/min/image-view.min.js +2 -0
- package/payload/starter/_basic/min/item-list.min.js +1 -1
- package/payload/starter/_basic/min/json-editor.min.js +2 -0
- package/payload/starter/_basic/min/json-view.min.js +2 -0
- package/payload/starter/_basic/min/label-editor.min.js +1 -1
- package/payload/starter/_basic/min/left-menu.min.js +1 -1
- package/payload/starter/_basic/min/line-progress-bar.min.js +1 -1
- package/payload/starter/_basic/min/loading-screen.min.js +1 -1
- package/payload/starter/_basic/min/log-view.min.js +2 -0
- package/payload/starter/_basic/min/login-page.min.js +2 -0
- package/payload/starter/_basic/min/markdown-view.min.js +2 -0
- package/payload/starter/_basic/min/menu-bar.min.js +2 -0
- package/payload/starter/_basic/min/mini-graph-box.min.js +1 -1
- package/payload/starter/_basic/min/minimal-accent.min.js +2 -0
- package/payload/starter/_basic/min/notice.min.js +1 -1
- package/payload/starter/_basic/min/number-field.min.js +2 -0
- package/payload/starter/_basic/min/numeric-keyboard.min.js +1 -1
- package/payload/starter/_basic/min/page-control.min.js +1 -1
- package/payload/starter/_basic/min/password-field.min.js +2 -0
- package/payload/starter/_basic/min/phone-field.min.js +2 -0
- package/payload/starter/_basic/min/progress-bar.min.js +1 -1
- package/payload/starter/_basic/min/property-panel.min.js +1 -1
- package/payload/starter/_basic/min/radio-button.min.js +1 -1
- package/payload/starter/_basic/min/range-slider.min.js +2 -0
- package/payload/starter/_basic/min/rich-text-editor.min.js +1 -1
- package/payload/starter/_basic/min/scroll-area.min.js +2 -0
- package/payload/starter/_basic/min/scrolling-text.min.js +1 -1
- package/payload/starter/_basic/min/search-input.min.js +2 -0
- package/payload/starter/_basic/min/search-results.min.js +1 -1
- package/payload/starter/_basic/min/select-box.min.js +1 -1
- package/payload/starter/_basic/min/settings-row.min.js +1 -1
- package/payload/starter/_basic/min/side-panel.min.js +1 -1
- package/payload/starter/_basic/min/slider-field.min.js +1 -1
- package/payload/starter/_basic/min/slider.min.js +1 -1
- package/payload/starter/_basic/min/smart-button.min.js +1 -1
- package/payload/starter/_basic/min/smart-table.min.js +1 -1
- package/payload/starter/_basic/min/sortable-list.min.js +1 -1
- package/payload/starter/_basic/min/spark-line-box.min.js +1 -1
- package/payload/starter/_basic/min/splitter.min.js +2 -0
- package/payload/starter/_basic/min/status-bar.min.js +2 -0
- package/payload/starter/_basic/min/step-bar.min.js +2 -0
- package/payload/starter/_basic/min/stepper.min.js +1 -1
- package/payload/starter/_basic/min/tabs.min.js +1 -1
- package/payload/starter/_basic/min/tag-input.min.js +1 -1
- package/payload/starter/_basic/min/text-area-field.min.js +2 -0
- package/payload/starter/_basic/min/text-field.min.js +2 -0
- package/payload/starter/_basic/min/time-line.min.js +1 -1
- package/payload/starter/_basic/min/time-picker.min.js +2 -0
- package/payload/starter/_basic/min/tiny-select.min.js +1 -1
- package/payload/starter/_basic/min/toast.min.js +1 -1
- package/payload/starter/_basic/min/toggle.min.js +1 -1
- package/payload/starter/_basic/min/tool-bar.min.js +2 -0
- package/payload/starter/_basic/min/tooltip.min.js +1 -1
- package/payload/starter/_basic/min/tree-view.min.js +1 -1
- package/payload/starter/_basic/min/ui-effects.min.js +1 -1
- package/payload/starter/_basic/min/url-field.min.js +2 -0
- package/payload/starter/_basic/min/web-view.min.js +1 -1
- package/payload/templates/booking/app/app.js +11 -8
- package/payload/templates/booking/app/settings.js +4 -4
- package/payload/templates/booking/index.htm +3 -3
- package/payload/templates/booking/pages/account.js +6 -6
- package/payload/templates/booking/pages/book.js +1 -1
- package/payload/templates/booking/pages/services.js +5 -4
- package/payload/templates/classic/app/app.js +15 -11
- package/payload/templates/classic/app/settings.js +22 -20
- package/payload/templates/classic/assets/_attribute.txt +2 -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.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/index.htm +2 -2
- package/payload/templates/classic/pages/example.js +10 -10
- package/payload/templates/classic/pages/examples.js +44 -43
- package/payload/templates/classic/pages/home.js +16 -15
- package/payload/templates/classic/pages/info-pages.js +5 -5
- package/payload/templates/classic/pages/search.js +8 -7
- package/payload/templates/classic/pages/settings.js +13 -13
- package/payload/templates/classic/pages/tasks.js +1 -0
- package/payload/templates/classic/pages/template-pages.js +12 -11
- package/payload/templates/coffee-shop/app/app.js +12 -8
- package/payload/templates/coffee-shop/app/settings.js +4 -4
- package/payload/templates/coffee-shop/index.htm +3 -3
- package/payload/templates/coffee-shop/pages/drink.js +1 -1
- package/payload/templates/coffee-shop/pages/menu.js +5 -4
- package/payload/templates/forms/TEMPLATE.md +1 -1
- package/payload/templates/forms/appointment-form.htm +55 -53
- package/payload/templates/forms/contact-form-to-mail.htm +38 -37
- package/payload/templates/forms/contact-form-to-supabase.htm +47 -46
- package/payload/templates/forms/dark-contact-form.htm +43 -40
- package/payload/templates/forms/event-registration-form.htm +80 -77
- package/payload/templates/forms/feedback-form.htm +54 -54
- package/payload/templates/forms/order-form.htm +88 -84
- package/payload/templates/forms/recruitment-form.htm +60 -60
- package/payload/templates/forms/service/readme.md +9 -8
- package/payload/templates/forms/service/send-form-mail.php +38 -21
- package/payload/templates/forms/support-ticket-form.htm +67 -65
- package/payload/templates/panel/common/module-page.js +2 -2
- package/payload/templates/panel/common/theme.js +37 -10
- package/payload/templates/panel/common/top-bar.js +45 -40
- package/payload/templates/panel/index.htm +59 -60
- package/payload/templates/panel/module10/greenhouse.htm +98 -113
- package/payload/templates/panel/module11/arduino-projects.htm +47 -58
- package/payload/templates/panel/module6/energy-hub.htm +71 -103
- package/payload/templates/panel/module7/3d-printers.htm +58 -81
- package/payload/templates/panel/module8/cold-rooms.htm +58 -79
- package/payload/templates/panel/module9/elevator-fleet.htm +72 -93
- package/payload/templates/panel/pages/activity.js +134 -152
- package/payload/templates/panel/pages/contents.js +291 -308
- package/payload/templates/panel/pages/customers.js +250 -267
- package/payload/templates/panel/pages/edit-user.js +31 -30
- package/payload/templates/panel/pages/home.js +39 -70
- package/payload/templates/panel/pages/media.js +166 -183
- package/payload/templates/panel/pages/notifications.js +7 -7
- package/payload/templates/panel/pages/orders.js +200 -217
- package/payload/templates/panel/pages/products.js +259 -278
- package/payload/templates/panel/pages/reports.js +74 -123
- package/payload/templates/panel/pages/roles.js +57 -60
- package/payload/templates/panel/pages/settings.js +127 -143
- package/payload/templates/panel/pages/user-actions.js +106 -110
- package/payload/templates/panel/pages/user-list.js +221 -238
- package/payload/templates/panel/pages/users.js +14 -29
- package/payload/templates/shop/TEMPLATE.md +1 -1
- package/payload/templates/shop/app/app.js +11 -8
- package/payload/templates/shop/app/settings.js +4 -4
- package/payload/templates/shop/index.htm +3 -3
- package/payload/templates/shop/pages/account.js +7 -7
- package/payload/templates/shop/pages/cart.js +1 -1
- package/payload/templates/shop/pages/checkout.js +2 -2
- package/payload/templates/shop/pages/product.js +2 -2
- package/payload/templates/shop/pages/shop.js +6 -5
- package/payload/templates/starter/TEMPLATE.md +1 -1
- package/payload/templates/starter/app/app.js +12 -8
- package/payload/templates/starter/app/settings.js +14 -11
- package/payload/templates/starter/index.htm +3 -3
- package/payload/templates/starter/pages/about.js +1 -1
- package/payload/templates/starter/pages/home.js +2 -2
- package/payload/templates/starter/pages/product.js +1 -1
- package/payload/templates/starter/pages/products.js +5 -5
- package/payload/templates/starter/pages/settings.js +1 -1
- package/payload/templates/starter/pages/tasks.js +8 -8
- package/payload/templates/starter/pages/website.js +1 -1
- package/payload/starter/_basic/comp/chart-box/chart-4.5.1.umd.min.js +0 -13
- package/payload/starter/_basic/comp/chart-box/chart-js-LICENSE.md +0 -9
- package/payload/starter/_basic/comp/chart-box.js +0 -868
- package/payload/starter/_basic/comp/email-input-b.js +0 -57
- package/payload/starter/_basic/comp/input-b.js +0 -759
- package/payload/starter/_basic/comp/password-input-b.js +0 -164
- package/payload/starter/_basic/comp/search-input-v2.js +0 -427
- package/payload/starter/_basic/comp/textarea-b.js +0 -184
- package/payload/starter/_basic/comp/url-input-b.js +0 -145
- package/payload/starter/_basic/examples/badgeV2.htm +0 -68
- package/payload/starter/_basic/examples/chart-box.htm +0 -287
- package/payload/starter/_basic/examples/check-box-1.htm +0 -220
- package/payload/starter/_basic/examples/currency-input-b.htm +0 -71
- package/payload/starter/_basic/examples/email-input-b.htm +0 -67
- package/payload/starter/_basic/examples/input-b-ex1.htm +0 -132
- package/payload/starter/_basic/examples/input-b-ex2.htm +0 -136
- package/payload/starter/_basic/examples/input-b-ex3-style.htm +0 -113
- package/payload/starter/_basic/examples/input-b-ex4-custom-unit.htm +0 -112
- package/payload/starter/_basic/examples/input-b-ex6-dark.htm +0 -108
- package/payload/starter/_basic/examples/input-b-ex7-ozden.htm +0 -153
- package/payload/starter/_basic/examples/number-input-b.htm +0 -68
- package/payload/starter/_basic/examples/password-input-b.htm +0 -70
- package/payload/starter/_basic/examples/phone-input-b-select-country.htm +0 -298
- package/payload/starter/_basic/examples/phone-input-b.htm +0 -72
- package/payload/starter/_basic/examples/radio-button-1.htm +0 -264
- package/payload/starter/_basic/examples/search-input-v2-ozden.htm +0 -128
- package/payload/starter/_basic/examples/search-input-v2.htm +0 -65
- package/payload/starter/_basic/examples/select-color.htm +0 -215
- package/payload/starter/_basic/examples/select-date.htm +0 -244
- package/payload/starter/_basic/examples/select-file.htm +0 -268
- package/payload/starter/_basic/examples/select-time.htm +0 -249
- package/payload/starter/_basic/examples/smart-button-2.htm +0 -220
- package/payload/starter/_basic/examples/textarea-b.htm +0 -76
- package/payload/starter/_basic/examples/unfinished-login-page-dark-supabase.htm +0 -221
- package/payload/starter/_basic/examples/unfinished-login-page-supabase.htm +0 -221
- package/payload/starter/_basic/examples/url-input-b.htm +0 -85
- package/payload/starter/_basic/min/badge-v2.min.js +0 -2
- package/payload/starter/_basic/min/chart-box.min.js +0 -2
- package/payload/starter/_basic/min/currency-input-b.min.js +0 -2
- package/payload/starter/_basic/min/email-input-b.min.js +0 -2
- package/payload/starter/_basic/min/input-b.min.js +0 -2
- package/payload/starter/_basic/min/login-page-v2.min.js +0 -2
- package/payload/starter/_basic/min/number-input-b.min.js +0 -2
- package/payload/starter/_basic/min/password-input-b.min.js +0 -2
- package/payload/starter/_basic/min/phone-input-b.min.js +0 -2
- package/payload/starter/_basic/min/search-input-v2.min.js +0 -2
- package/payload/starter/_basic/min/select-color.min.js +0 -2
- package/payload/starter/_basic/min/select-date.min.js +0 -2
- package/payload/starter/_basic/min/select-file.min.js +0 -2
- package/payload/starter/_basic/min/select-time.min.js +0 -2
- package/payload/starter/_basic/min/textarea-b.min.js +0 -2
- package/payload/starter/_basic/min/url-input-b.min.js +0 -2
- package/payload/templates/panel/common/bridge.min.js +0 -0
- package/payload/templates/panel/common/full-view.min.js +0 -1
- package/payload/templates/panel/common/main-view.min.js +0 -1
- package/payload/templates/panel/common/module-page.min.js +0 -1
- package/payload/templates/panel/common/right-view.min.js +0 -1
- package/payload/templates/panel/common/start-page.min.js +0 -1
- package/payload/templates/panel/common/top-bar-v25-07-29-1.js +0 -330
- package/payload/templates/panel/common/top-bar-v25-07-29-2.js +0 -265
- package/payload/templates/panel/common/top-bar.min.js +0 -1
- package/payload/templates/panel/common/ui-standards.min.js +0 -1
- package/payload/templates/panel/managers/database.min.js +0 -1
- package/payload/templates/panel/managers/login.min.js +0 -1
- package/payload/templates/panel/pages/_page-template.min.js +0 -1
- package/payload/templates/panel/pages/contents.min.js +0 -1
- package/payload/templates/panel/pages/edit-user.min.js +0 -1
- package/payload/templates/panel/pages/edit-users-table.min.js +0 -1
- package/payload/templates/panel/pages/home.min.js +0 -1
- package/payload/templates/panel/pages/notifications.min.js +0 -1
- package/payload/templates/panel/pages/reports.min.js +0 -1
- package/payload/templates/panel/pages/settings.min.js +0 -1
- package/payload/templates/panel/pages/user-actions.min.js +0 -2
- package/payload/templates/panel/pages/users.min.js +0 -1
- /package/payload/starter/_basic/comp/{password-input-b → password-field}/hide-btn.png +0 -0
- /package/payload/starter/_basic/comp/{password-input-b → password-field}/hide-btn2.png +0 -0
- /package/payload/starter/_basic/comp/{password-input-b → password-field}/show-btn.png +0 -0
- /package/payload/starter/_basic/comp/{password-input-b → password-field}/show-btn2.png +0 -0
- /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/clear-round.svg +0 -0
- /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/clear.svg +0 -0
- /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/filter.png +0 -0
- /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/filter.svg +0 -0
- /package/payload/starter/_basic/comp/{search-input-v2 → search-input}/search.svg +0 -0
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
/* Bismillah */
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
|
|
5
|
-
PasswordInputB - v25.07
|
|
6
|
-
|
|
7
|
-
UI COMPONENT TEMPLATE
|
|
8
|
-
- You can customize, this template code as you need:
|
|
9
|
-
|
|
10
|
-
Started Date: June 2024
|
|
11
|
-
Developer: Bugra Ozden
|
|
12
|
-
Email: bugra.ozden@gmail.com
|
|
13
|
-
Webpage: https://bug7a.github.io/js-components/
|
|
14
|
-
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
"use strict";
|
|
18
|
-
|
|
19
|
-
// Default values
|
|
20
|
-
const PasswordInputBDefaults = {
|
|
21
|
-
isRequired: 1,
|
|
22
|
-
requiredText: "Password must be entered",
|
|
23
|
-
type: "password",
|
|
24
|
-
titleText: "PASSWORD",
|
|
25
|
-
placeholder: "Enter your password",
|
|
26
|
-
warningText: "",
|
|
27
|
-
warningColor: "#E5885E", // "#F1BF3C"
|
|
28
|
-
maxChar: 25,
|
|
29
|
-
showPassword: 0,
|
|
30
|
-
showShowPasswordButton: 1, // enable show/hide icon by default
|
|
31
|
-
showPasswordIconFile: "_basic/comp/password-input-b/show-btn.png",
|
|
32
|
-
hidePasswordIconFile: "_basic/comp/password-input-b/hide-btn.png",
|
|
33
|
-
showTooltipMessage: "Show Password",
|
|
34
|
-
hideTooltipMessage: "Hide Password",
|
|
35
|
-
minChar: 6,
|
|
36
|
-
minCharWarningText: "Password must be at least 6 characters",
|
|
37
|
-
mustUseNumber: 1,
|
|
38
|
-
mustUseNumberWarningText: "Password must contain at least one number",
|
|
39
|
-
mustUseLetter: 1,
|
|
40
|
-
mustUseLetterWarningText: "Password must contain at least one letter",
|
|
41
|
-
mustUseUppercase: 0,
|
|
42
|
-
mustUseUppercaseWarningText: "Password must contain at least one uppercase letter",
|
|
43
|
-
mustUseLowercase: 0,
|
|
44
|
-
mustUseLowercaseWarningText: "Password must contain at least one lowercase letter",
|
|
45
|
-
mustUseSpecialChar: 0,
|
|
46
|
-
mustUseSpecialCharWarningText: "Password must contain at least one special character",
|
|
47
|
-
showPasswordIconInvert: 0,
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
const PasswordInputB = function(params = {}) {
|
|
51
|
-
|
|
52
|
-
// Merge params:
|
|
53
|
-
mergeIntoIfMissing(params, PasswordInputBDefaults);
|
|
54
|
-
|
|
55
|
-
// Edit params:
|
|
56
|
-
params.createLeftBox = 1; // WHY: to add show/hide password button
|
|
57
|
-
|
|
58
|
-
// BOX: Component container
|
|
59
|
-
let box = startExtendedObject(InputB, params);
|
|
60
|
-
|
|
61
|
-
// *** PRIVATE VARIABLES:
|
|
62
|
-
|
|
63
|
-
// *** PUBLIC VARIABLES:
|
|
64
|
-
|
|
65
|
-
// *** PRIVATE FUNCTIONS:
|
|
66
|
-
|
|
67
|
-
// *** PUBLIC FUNCTIONS:
|
|
68
|
-
box.isValid = function() { // OVERRIDE
|
|
69
|
-
const value = box.getInputValue();
|
|
70
|
-
// 1. Minimum karakter kontrolü
|
|
71
|
-
if (value.length < box.minChar) {
|
|
72
|
-
box.setWarningText(box.minCharWarningText);
|
|
73
|
-
return 0;
|
|
74
|
-
}
|
|
75
|
-
// 2. Rakam kontrolü
|
|
76
|
-
if (box.mustUseNumber == 1 && !(/[0-9]/.test(value))) {
|
|
77
|
-
box.setWarningText(box.mustUseNumberWarningText);
|
|
78
|
-
return 0;
|
|
79
|
-
}
|
|
80
|
-
// 3. Harf kontrolü
|
|
81
|
-
if (box.mustUseLetter == 1 && !(/[a-zA-Z]/.test(value))) {
|
|
82
|
-
box.setWarningText(box.mustUseLetterWarningText);
|
|
83
|
-
return 0;
|
|
84
|
-
}
|
|
85
|
-
// 4. Büyük harf kontrolü
|
|
86
|
-
if (box.mustUseUppercase == 1 && !(/[A-Z]/.test(value))) {
|
|
87
|
-
box.setWarningText(box.mustUseUppercaseWarningText);
|
|
88
|
-
return 0;
|
|
89
|
-
}
|
|
90
|
-
// 5. Küçük harf kontrolü
|
|
91
|
-
if (box.mustUseLowercase == 1 && !(/[a-z]/.test(value))) {
|
|
92
|
-
box.setWarningText(box.mustUseLowercaseWarningText);
|
|
93
|
-
return 0;
|
|
94
|
-
}
|
|
95
|
-
// 6. Özel karakter kontrolü
|
|
96
|
-
if (box.mustUseSpecialChar == 1 && !(/[^a-zA-Z0-9]/.test(value))) {
|
|
97
|
-
box.setWarningText(box.mustUseSpecialCharWarningText);
|
|
98
|
-
return 0;
|
|
99
|
-
}
|
|
100
|
-
// Geçtiyse uyarı yok
|
|
101
|
-
return 1;
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
box.setShowPassword = function(show) {
|
|
105
|
-
const isShown = (show != 0);
|
|
106
|
-
box.showPassword = isShown ? 1 : 0;
|
|
107
|
-
box.input.inputElement.type = isShown ? "text" : "password";
|
|
108
|
-
// The button shows what a click does:
|
|
109
|
-
box.btnShowPassword.tooltip.setHintText(isShown ? box.hideTooltipMessage : box.showTooltipMessage);
|
|
110
|
-
box.btnShowPassword.load(isShown ? box.hidePasswordIconFile : box.showPasswordIconFile);
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
box.refresh = function() {
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// *** OBJECT VIEW:
|
|
118
|
-
box.input.inputElement.type = "password";
|
|
119
|
-
|
|
120
|
-
// GROUP: btnShowPassword (in the left box of InputB)
|
|
121
|
-
AutoLayout({
|
|
122
|
-
align: "right center",
|
|
123
|
-
padding: [10, 0],
|
|
124
|
-
});
|
|
125
|
-
box.leftBox.add(that);
|
|
126
|
-
|
|
127
|
-
// ICON: Show / hide password button
|
|
128
|
-
box.btnShowPassword = Icon({
|
|
129
|
-
width: 32,
|
|
130
|
-
height: 32,
|
|
131
|
-
visible: box.showShowPasswordButton,
|
|
132
|
-
});
|
|
133
|
-
that.clickable = 1;
|
|
134
|
-
that.cursor = "pointer";
|
|
135
|
-
if (box.showPasswordIconInvert == 1) {
|
|
136
|
-
box.btnShowPassword.css.filter = "invert(100%)";
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
endAutoLayout();
|
|
140
|
-
|
|
141
|
-
box.btnShowPassword.tooltip = Tooltip({
|
|
142
|
-
target: box.btnShowPassword,
|
|
143
|
-
hintText: "",
|
|
144
|
-
hintPosition: "left",
|
|
145
|
-
lbl_border: 1,
|
|
146
|
-
lbl_color: "white",
|
|
147
|
-
lbl_textColor: "#141414",
|
|
148
|
-
lbl_borderColor: "#141414",
|
|
149
|
-
lbl_fontSize: 14,
|
|
150
|
-
lbl_round: 2,
|
|
151
|
-
});
|
|
152
|
-
// WHY: The tooltip may be made outside the box (after InputB is closed); box.own() removes it with the box.
|
|
153
|
-
box.own(box.btnShowPassword.tooltip);
|
|
154
|
-
|
|
155
|
-
// *** OBJECT INIT CODE:
|
|
156
|
-
box.btnShowPassword.on("click", function() {
|
|
157
|
-
box.setShowPassword((box.showPassword == 1) ? 0 : 1);
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
box.setShowPassword(box.showPassword);
|
|
161
|
-
|
|
162
|
-
return endExtendedObject(box);
|
|
163
|
-
|
|
164
|
-
};
|
|
@@ -1,427 +0,0 @@
|
|
|
1
|
-
/* Bismillah */
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
|
|
5
|
-
Search Input - v24.04
|
|
6
|
-
|
|
7
|
-
UI COMPONENT TEMPLATE
|
|
8
|
-
- You can customize, this template code as you need:
|
|
9
|
-
- Style packages: "classic" (default), "ozden", "ozdenDark". Select with styleName. (SearchInput.styles)
|
|
10
|
-
-- A package is a package of params (basic.js v26.10.27): its keys fill the params you did not give.
|
|
11
|
-
-- SearchInput.styles.myStyle = { style: {}, color: "white", textColor: "#222", ... };
|
|
12
|
-
- animated: 1 adds small motions (not at the first view): under the mouse a thin line and a bigger search icon,
|
|
13
|
-
while typing a stronger line and a tilted search icon (a small pulse at every letter), the clear icon grows in
|
|
14
|
-
and turns under the mouse. The "ozden" and "ozdenDark" packages are animated (animated: 0 makes them still).
|
|
15
|
-
Only transform, opacity and box-shadow change (smooth, cheap). Off when the system asks for reduced motion.
|
|
16
|
-
- Place: left / top (default 0, 0), or right / bottom: SearchInput({ right: 20, bottom: 20 }) is at the right bottom
|
|
17
|
-
corner of its box (the default left / top is not used then). Sample: _basic/examples/search-input-v2-place.htm
|
|
18
|
-
|
|
19
|
-
Started Date: December 2025
|
|
20
|
-
Developer: Bugra Ozden
|
|
21
|
-
Email: bugra.ozden@gmail.com
|
|
22
|
-
Webpage: https://bug7a.github.io/js-components/
|
|
23
|
-
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
"use strict";
|
|
27
|
-
// Default values
|
|
28
|
-
const SearchInputDefaults = {
|
|
29
|
-
left: 0,
|
|
30
|
-
top: 0,
|
|
31
|
-
width: 300,
|
|
32
|
-
height: 50,
|
|
33
|
-
searchIconFile: "data:image/svg+xml;utf8," + encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23.707 22.293l-5.969-5.969a10.016 10.016 0 10-1.414 1.414l5.969 5.969a1 1 0 001.414-1.414zM10 18a8 8 0 118-8 8.009 8.009 0 01-8 8z"/></svg>'),
|
|
34
|
-
clearIconFile: "data:image/svg+xml;utf8," + encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="m336-280 144-144 144 144 56-56-144-144 144-144-56-56-144 144-144-144-56 56 144 144-144 144 56 56ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>'),
|
|
35
|
-
searchIconSize: 24,
|
|
36
|
-
searchIconLeft: 16, // px: the search icon from the left side of the box
|
|
37
|
-
searchIconGap: 8, // px: between the search icon and the text
|
|
38
|
-
isCancelEnabled: 1,
|
|
39
|
-
placeholderText: "Search",
|
|
40
|
-
color: "whitesmoke",
|
|
41
|
-
textColor: "rgba(0, 0, 0, 0.8)",
|
|
42
|
-
placeholderColor: "", // "": Tarayıcının kendi rengi. Koyu zeminde White(0.35) gibi bir renk verin.
|
|
43
|
-
searchIconOpacity: 1,
|
|
44
|
-
clearIconOpacity: 0.6, // The clear icon while it is shown
|
|
45
|
-
border: 0,
|
|
46
|
-
borderColor: "rgba(0, 0, 0, 0.1)",
|
|
47
|
-
borderBottomStyle: "2px solid rgba(0, 0, 0, 0.06)",
|
|
48
|
-
round: 6,
|
|
49
|
-
fontSize: 20,
|
|
50
|
-
invertIconColor: 0, // 1: both icons are inverted (white icons for a dark field)
|
|
51
|
-
invertSearchIconColor: null, // null: invertIconColor. 0 / 1: only the search icon
|
|
52
|
-
invertClearIconColor: null, // null: invertIconColor. 0 / 1: only the clear icon
|
|
53
|
-
animated: 0, // 1: small hover / focus / clear motions. (box.setAnimated(0/1))
|
|
54
|
-
hoverRingColor: "rgba(0, 0, 0, 0.08)", // animated: the thin line inside the border under the mouse
|
|
55
|
-
focusRingColor: "rgba(0, 0, 0, 0.16)", // animated: the line while typing
|
|
56
|
-
onSearch: function(searchedText, self) {},
|
|
57
|
-
onSubmit: function(searchedText, self) {},
|
|
58
|
-
styleName: "classic", // "classic", "ozden", "ozdenDark" or a name added to SearchInput.styles
|
|
59
|
-
style: {}, // WHY: the look is in the flat params above; the packages are packages of params (see SearchInput.styles).
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
const SearchInput = function(params = {}) {
|
|
63
|
-
|
|
64
|
-
// Merge style package: your params > SearchInput.styles[styleName] (a package of params) > SearchInputDefaults
|
|
65
|
-
basic.applyStylePackage(params, SearchInput.styles, SearchInputDefaults);
|
|
66
|
-
|
|
67
|
-
// WHY: A box placed with right / bottom does not get the default left / top. In basic.js the setter of left
|
|
68
|
-
// clears right (and top clears bottom), so the default left: 0 / top: 0, set after them, put the box back
|
|
69
|
-
// at the left top corner.
|
|
70
|
-
const isPlacedByRight = (params.right !== undefined && params.left === undefined);
|
|
71
|
-
const isPlacedByBottom = (params.bottom !== undefined && params.top === undefined);
|
|
72
|
-
|
|
73
|
-
// Merge params:
|
|
74
|
-
mergeIntoIfMissing(params, SearchInputDefaults);
|
|
75
|
-
if (isPlacedByRight) delete params.left;
|
|
76
|
-
if (isPlacedByBottom) delete params.top;
|
|
77
|
-
|
|
78
|
-
// BOX: Component container
|
|
79
|
-
const box = startObject(params);
|
|
80
|
-
|
|
81
|
-
// *** Private variables:
|
|
82
|
-
const ICONS_SPACE = 80; // The width of the box that is not for the text, with the default icon place (16 + 8)
|
|
83
|
-
|
|
84
|
-
// animated: 1
|
|
85
|
-
const MOTION_TIME = "0.25s";
|
|
86
|
-
const MOTION_EASE = "cubic-bezier(0.2, 0.8, 0.2, 1)"; // a fast start and a soft stop
|
|
87
|
-
const HOVER_RING_WIDTH = 1;
|
|
88
|
-
const FOCUS_RING_WIDTH = 2;
|
|
89
|
-
const HOVER_ICON_GROW = 1.08;
|
|
90
|
-
const FOCUS_ICON_GROW = 1.06; // WHY: at 1.1 the tilted icon touched the text
|
|
91
|
-
const FOCUS_ICON_TILT = -12; // deg: the magnifier "looks"
|
|
92
|
-
const ICON_OPACITY_GAIN = 0.25; // the search icon is clearer under the mouse (x2 while typing)
|
|
93
|
-
const HIDDEN_CLEAR_ICON_SIZE = 0.6; // the clear icon grows in from this size
|
|
94
|
-
const CLEAR_ICON_TURN = 90; // deg, under the mouse
|
|
95
|
-
const PULSE_GROW = 1.14; // the search icon at a typed letter
|
|
96
|
-
const PULSE_TIME = 150; // ms
|
|
97
|
-
let isHovered = 0;
|
|
98
|
-
let isFocused = 0;
|
|
99
|
-
let isClearHovered = 0;
|
|
100
|
-
let wasAnimated = 0;
|
|
101
|
-
let isPulsing = 0;
|
|
102
|
-
let cancelPulse = null;
|
|
103
|
-
|
|
104
|
-
// *** Public variables:
|
|
105
|
-
box.publicVar = "";
|
|
106
|
-
|
|
107
|
-
// *** Private functions:
|
|
108
|
-
|
|
109
|
-
// The width of the text: the box without the icons. A search icon moved from its default place (16 + 8) moves the text too.
|
|
110
|
-
const getTextWidth = function() {
|
|
111
|
-
const iconMove = (box.searchIconLeft - SearchInputDefaults.searchIconLeft) + (box.searchIconGap - SearchInputDefaults.searchIconGap);
|
|
112
|
-
return box.width - ICONS_SPACE - iconMove;
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
const refreshLayout = function(self) {
|
|
116
|
-
|
|
117
|
-
self.txtSearch.width = getTextWidth();
|
|
118
|
-
self.txtSearch.center("top");
|
|
119
|
-
self.imgClearIcon.center("top");
|
|
120
|
-
self.imgIcon.center("top");
|
|
121
|
-
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
// The text given to onSearch and onSubmit
|
|
125
|
-
const getSearchedText = function() {
|
|
126
|
-
return box.txtSearch.text.toLowerCase();
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
// An icon's own invert param (0 / 1), or invertIconColor when it is null.
|
|
130
|
-
const isIconInverted = function(iconInvert) {
|
|
131
|
-
if (iconInvert === null || iconInvert === undefined) return (box.invertIconColor == 1);
|
|
132
|
-
return (iconInvert == 1);
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
const setClearIconVisible = function(isVisible) {
|
|
136
|
-
box.imgClearIcon.opacity = (isVisible) ? box.clearIconOpacity : 0;
|
|
137
|
-
box.imgClearIcon.clickable = (isVisible) ? 1 : 0;
|
|
138
|
-
paintMotion();
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
// WHY: A user who asked the system for less motion gets the still field.
|
|
142
|
-
const isMotionOn = function() {
|
|
143
|
-
if (box.animated != 1) return false;
|
|
144
|
-
const reduceMotion = window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
145
|
-
return !reduceMotion;
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
const getRing = function() {
|
|
149
|
-
if (isFocused) return "inset 0 0 0 " + FOCUS_RING_WIDTH + "px " + box.focusRingColor;
|
|
150
|
-
if (isHovered) return "inset 0 0 0 " + HOVER_RING_WIDTH + "px " + box.hoverRingColor;
|
|
151
|
-
return "inset 0 0 0 0 transparent";
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
const getSearchIconTransform = function() {
|
|
155
|
-
if (isPulsing) return "scale(" + PULSE_GROW + ") rotate(" + FOCUS_ICON_TILT + "deg)";
|
|
156
|
-
if (isFocused) return "scale(" + FOCUS_ICON_GROW + ") rotate(" + FOCUS_ICON_TILT + "deg)";
|
|
157
|
-
if (isHovered) return "scale(" + HOVER_ICON_GROW + ")";
|
|
158
|
-
return "none";
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
const getSearchIconOpacity = function() {
|
|
162
|
-
let gain = 0;
|
|
163
|
-
if (isHovered) gain = ICON_OPACITY_GAIN;
|
|
164
|
-
if (isFocused) gain = ICON_OPACITY_GAIN * 2;
|
|
165
|
-
return Math.min(1, box.searchIconOpacity + gain);
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
const getClearIconTransform = function() {
|
|
169
|
-
if (!box.imgClearIcon.clickable) return "scale(" + HIDDEN_CLEAR_ICON_SIZE + ")";
|
|
170
|
-
if (isClearHovered) return "rotate(" + CLEAR_ICON_TURN + "deg)";
|
|
171
|
-
return "none";
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
// The look of the hover / focus / clear icon state. (Nothing when animated is off.)
|
|
175
|
-
const paintMotion = function() {
|
|
176
|
-
if (!isMotionOn()) return;
|
|
177
|
-
box.boxShadow = getRing();
|
|
178
|
-
box.imgIcon.css.transform = getSearchIconTransform();
|
|
179
|
-
box.imgIcon.opacity = getSearchIconOpacity();
|
|
180
|
-
box.imgClearIcon.css.transform = getClearIconTransform();
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
// A letter is typed: the search icon grows a little and goes back. (Many letters: one longer pulse.)
|
|
184
|
-
const pulseSearchIcon = function() {
|
|
185
|
-
if (!isMotionOn()) return;
|
|
186
|
-
if (cancelPulse) cancelPulse();
|
|
187
|
-
isPulsing = 1;
|
|
188
|
-
paintMotion();
|
|
189
|
-
cancelPulse = box.after(PULSE_TIME, function() {
|
|
190
|
-
isPulsing = 0;
|
|
191
|
-
cancelPulse = null;
|
|
192
|
-
paintMotion();
|
|
193
|
-
});
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
// Back to the still look, after setAnimated(0).
|
|
197
|
-
const removeMotion = function() {
|
|
198
|
-
wasAnimated = 0;
|
|
199
|
-
box.setMotion("");
|
|
200
|
-
box.imgIcon.setMotion("");
|
|
201
|
-
box.boxShadow = "";
|
|
202
|
-
box.imgIcon.css.transform = "";
|
|
203
|
-
box.imgIcon.opacity = box.searchIconOpacity;
|
|
204
|
-
box.imgClearIcon.css.transform = "";
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
// The transitions and the still look of animated: 0.
|
|
208
|
-
const applyAnimated = function() {
|
|
209
|
-
if (!isMotionOn()) {
|
|
210
|
-
box.imgClearIcon.setMotion("opacity 0.3s");
|
|
211
|
-
if (wasAnimated) removeMotion();
|
|
212
|
-
return;
|
|
213
|
-
}
|
|
214
|
-
wasAnimated = 1;
|
|
215
|
-
const motion = function(properties) {
|
|
216
|
-
return properties.map(function(property) { return property + " " + MOTION_TIME + " " + MOTION_EASE; }).join(", ");
|
|
217
|
-
};
|
|
218
|
-
box.setMotion(motion(["box-shadow"]));
|
|
219
|
-
box.imgIcon.setMotion(motion(["transform", "opacity"]));
|
|
220
|
-
box.imgClearIcon.setMotion(motion(["transform", "opacity"]));
|
|
221
|
-
paintMotion();
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
// The clear icon is shown while there is a text
|
|
225
|
-
const refreshClearIcon = function() {
|
|
226
|
-
if (!box.isCancelEnabled) return;
|
|
227
|
-
setClearIconVisible(box.txtSearch.text.length > 0);
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
// *** Public functions:
|
|
231
|
-
box.publicFunc = () => {};
|
|
232
|
-
|
|
233
|
-
box.setText = function(text) {
|
|
234
|
-
box.txtSearch.text = text;
|
|
235
|
-
refreshClearIcon();
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
box.getText = function() {
|
|
239
|
-
return box.txtSearch.text;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
box.setPlaceholderText = function(text) {
|
|
243
|
-
box.placeholderText = text;
|
|
244
|
-
box.txtSearch.inputElement.setAttribute("placeholder", text);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
box.focus = function() {
|
|
248
|
-
box.txtSearch.inputElement.focus();
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
box.setAnimated = function(value) {
|
|
252
|
-
box.animated = (value == 1) ? 1 : 0;
|
|
253
|
-
applyAnimated();
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
// *** OBJECT TEMPLATE:
|
|
257
|
-
box.css.borderBottom = box.borderBottomStyle;
|
|
258
|
-
|
|
259
|
-
// ICON: Search icon
|
|
260
|
-
box.imgIcon = Icon(box.searchIconLeft, 0, box.searchIconSize, box.searchIconSize, {
|
|
261
|
-
opacity: box.searchIconOpacity,
|
|
262
|
-
space: 0,
|
|
263
|
-
});
|
|
264
|
-
that.load(box.searchIconFile);
|
|
265
|
-
if (isIconInverted(box.invertSearchIconColor)) that.css.filter = "invert(100%)";
|
|
266
|
-
that.center("top");
|
|
267
|
-
|
|
268
|
-
// INPUT: Search textbox
|
|
269
|
-
box.txtSearch = Input(box.searchIconLeft + box.searchIconSize + box.searchIconGap, 0, {
|
|
270
|
-
width: getTextWidth(),
|
|
271
|
-
height: box.height,
|
|
272
|
-
border: 0,
|
|
273
|
-
minimal: 1,
|
|
274
|
-
fontSize: box.fontSize,
|
|
275
|
-
textColor: box.textColor,
|
|
276
|
-
color: "transparent",
|
|
277
|
-
});
|
|
278
|
-
that.inputElement.style.paddingLeft = "0px";
|
|
279
|
-
that.inputElement.setAttribute("placeholder", box.placeholderText);
|
|
280
|
-
// WHY: ::placeholder rengi sadece CSS ile değişir. Kural sayfaya bir kez eklenir; rengi her input kendi değişkeninde taşır.
|
|
281
|
-
if (box.placeholderColor !== "") {
|
|
282
|
-
SearchInput.addPlaceholderStyle();
|
|
283
|
-
that.inputElement.setAttribute("data-placeholder-color", "1");
|
|
284
|
-
that.inputElement.style.setProperty("--placeholder-color", box.placeholderColor);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
// ICON: Clear icon button
|
|
288
|
-
box.imgClearIcon = Icon(5, 0, 20, 20, {
|
|
289
|
-
right: 16,
|
|
290
|
-
opacity: 0,
|
|
291
|
-
space: 0,
|
|
292
|
-
});
|
|
293
|
-
that.load(box.clearIconFile);
|
|
294
|
-
if (isIconInverted(box.invertClearIconColor)) that.css.filter = "invert(100%)";
|
|
295
|
-
that.center("top");
|
|
296
|
-
that.cursor = "pointer";
|
|
297
|
-
|
|
298
|
-
// *** OBJECT INIT CODE:
|
|
299
|
-
// Every change of the text: typed, pasted, dropped or filled by the browser.
|
|
300
|
-
// WHY "input" (it was keyup): a text pasted with the mouse, dropped or filled by the browser was never searched
|
|
301
|
-
// (the list kept the old text); and the arrows, Enter, Escape, which change nothing, searched again.
|
|
302
|
-
box.listenTo(box.txtSearch.inputElement, "input", function() {
|
|
303
|
-
box.onSearch(getSearchedText(), box);
|
|
304
|
-
refreshClearIcon();
|
|
305
|
-
});
|
|
306
|
-
|
|
307
|
-
// Sadece enter a basınca.
|
|
308
|
-
box.listenTo(box.txtSearch.inputElement, "keyup", function(self, event) {
|
|
309
|
-
if (event.key === "Enter") box.onSubmit(getSearchedText(), box);
|
|
310
|
-
});
|
|
311
|
-
box.onResize(refreshLayout);
|
|
312
|
-
box.imgClearIcon.onClick(function(self) {
|
|
313
|
-
|
|
314
|
-
setClearIconVisible(0);
|
|
315
|
-
box.txtSearch.text = "";
|
|
316
|
-
box.onSearch(getSearchedText(), box);
|
|
317
|
-
box.onSubmit(getSearchedText(), box);
|
|
318
|
-
|
|
319
|
-
});
|
|
320
|
-
box.imgClearIcon.onHoverChange(function(self, isOver) {
|
|
321
|
-
isClearHovered = isOver;
|
|
322
|
-
paintMotion();
|
|
323
|
-
});
|
|
324
|
-
// WHY: After onHoverChange: on() makes an object clickable, and the hidden clear icon must not be.
|
|
325
|
-
box.imgClearIcon.clickable = 0;
|
|
326
|
-
|
|
327
|
-
// animated: the state of the mouse and the focus (painted only when animated is on)
|
|
328
|
-
box.onHoverChange(function(self, isOver) {
|
|
329
|
-
isHovered = isOver;
|
|
330
|
-
paintMotion();
|
|
331
|
-
});
|
|
332
|
-
box.listenTo(box.txtSearch.inputElement, "focus", function() {
|
|
333
|
-
isFocused = 1;
|
|
334
|
-
paintMotion();
|
|
335
|
-
});
|
|
336
|
-
// WHY: "input" and not keyup: arrows, Shift and Enter do not change the text, they must not pulse.
|
|
337
|
-
box.listenTo(box.txtSearch.inputElement, "input", pulseSearchIcon);
|
|
338
|
-
box.listenTo(box.txtSearch.inputElement, "blur", function() {
|
|
339
|
-
isFocused = 0;
|
|
340
|
-
paintMotion();
|
|
341
|
-
});
|
|
342
|
-
// A click on the field (an icon, the space around the text) starts typing.
|
|
343
|
-
box.on("click", function(self, event) {
|
|
344
|
-
if (event.target === box.txtSearch.inputElement) return;
|
|
345
|
-
if (box.imgClearIcon.elem.contains(event.target)) return;
|
|
346
|
-
box.focus();
|
|
347
|
-
});
|
|
348
|
-
// WHY: setMotion waits a moment before it starts: the first view does not move.
|
|
349
|
-
applyAnimated();
|
|
350
|
-
|
|
351
|
-
return endObject(box);
|
|
352
|
-
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
// Sayfaya bir kez eklenen ::placeholder kuralı. (Sadece placeholderColor verilen inputları etkiler.)
|
|
356
|
-
SearchInput.addPlaceholderStyle = function() {
|
|
357
|
-
|
|
358
|
-
if (document.getElementById("searchInputPlaceholderStyle")) return;
|
|
359
|
-
|
|
360
|
-
const styleElement = document.createElement("style");
|
|
361
|
-
styleElement.id = "searchInputPlaceholderStyle";
|
|
362
|
-
styleElement.textContent = "input[data-placeholder-color]::placeholder { color: var(--placeholder-color); opacity: 1; }";
|
|
363
|
-
document.head.appendChild(styleElement);
|
|
364
|
-
|
|
365
|
-
};
|
|
366
|
-
|
|
367
|
-
// *** STYLE PACKAGES:
|
|
368
|
-
// USAGE: SearchInput({ styleName: "ozden" })
|
|
369
|
-
// USAGE: SearchInput({ styleName: "ozden", fontSize: 16 }) // A param you give wins over the package.
|
|
370
|
-
// NOTE: Every package has "style: {}": that is the mark of a package of params (basic.js v26.10.27).
|
|
371
|
-
// Without it the keys would go into params.style and change nothing.
|
|
372
|
-
// NOTE: A package needs only the params that differ from SearchInputDefaults.
|
|
373
|
-
SearchInput.styles = {
|
|
374
|
-
|
|
375
|
-
// The look of SearchInputDefaults (whitesmoke, a soft bottom line).
|
|
376
|
-
classic: { style: {} },
|
|
377
|
-
|
|
378
|
-
// Bugra's style: a round field with a thin line, a soft search icon and a white round clear button. (Change, add or remove any look param.)
|
|
379
|
-
ozden: {
|
|
380
|
-
style: {},
|
|
381
|
-
searchIconFile: "data:image/svg+xml;utf8," + encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23.707 22.293l-5.969-5.969a10.016 10.016 0 10-1.414 1.414l5.969 5.969a1 1 0 001.414-1.414zM10 18a8 8 0 118-8 8.009 8.009 0 01-8 8z"/></svg>'),
|
|
382
|
-
clearIconFile: "data:image/svg+xml;utf8," + encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="11" fill="#FFFFFF" stroke="rgba(0,0,0,0.12)" stroke-width="1"/><path d="M8 8l8 8M16 8l-8 8" fill="none" stroke="#333333" stroke-width="2" stroke-linecap="round"/></svg>'),
|
|
383
|
-
searchIconSize: 24,
|
|
384
|
-
searchIconOpacity: 0.4,
|
|
385
|
-
clearIconOpacity: 0.6, // WHY: at 0.6 the white circle faded into the field (the user, 2026-10-27).
|
|
386
|
-
invertIconColor: 0,
|
|
387
|
-
invertSearchIconColor: null, // null: invertIconColor
|
|
388
|
-
invertClearIconColor: null, // null: invertIconColor
|
|
389
|
-
color: "whitesmoke",
|
|
390
|
-
textColor: "rgba(0, 0, 0, 0.8)",
|
|
391
|
-
placeholderColor: "",
|
|
392
|
-
fontSize: 20,
|
|
393
|
-
border: 1,
|
|
394
|
-
borderColor: "rgba(0, 0, 0, 0.1)",
|
|
395
|
-
borderBottomStyle: "3px solid rgba(0, 0, 0, 0.06)",
|
|
396
|
-
round: 50,
|
|
397
|
-
animated: 0, // 1: small hover / focus motions
|
|
398
|
-
hoverRingColor: "rgba(0, 0, 0, 0.08)", // Alpha("#141414", 0.2), //
|
|
399
|
-
focusRingColor: "rgba(0, 0, 0, 0.16)", // Alpha("#23BCC1", 0.6), //
|
|
400
|
-
},
|
|
401
|
-
|
|
402
|
-
// The dark theme of ozden: the same shape on a dark field, light text and icons.
|
|
403
|
-
// WHY: invertIconColor also inverts clear-round.svg, so the clear button is a dark circle with a light cross.
|
|
404
|
-
ozdenDark: {
|
|
405
|
-
style: {},
|
|
406
|
-
searchIconFile: "data:image/svg+xml;utf8," + encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23.707 22.293l-5.969-5.969a10.016 10.016 0 10-1.414 1.414l5.969 5.969a1 1 0 001.414-1.414zM10 18a8 8 0 118-8 8.009 8.009 0 01-8 8z"/></svg>'),
|
|
407
|
-
clearIconFile: "data:image/svg+xml;utf8," + encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="11" fill="#FFFFFF" stroke="rgba(0,0,0,0.12)" stroke-width="1"/><path d="M8 8l8 8M16 8l-8 8" fill="none" stroke="#333333" stroke-width="2" stroke-linecap="round"/></svg>'),
|
|
408
|
-
searchIconSize: 24,
|
|
409
|
-
searchIconOpacity: 0.4,
|
|
410
|
-
clearIconOpacity: 0.4,
|
|
411
|
-
invertIconColor: null,
|
|
412
|
-
invertSearchIconColor: 1, // null: invertIconColor
|
|
413
|
-
invertClearIconColor: 1, // null: invertIconColor
|
|
414
|
-
color: "#2B2D31",
|
|
415
|
-
textColor: "rgba(255, 255, 255, 0.88)",
|
|
416
|
-
placeholderColor: "rgba(255, 255, 255, 0.35)",
|
|
417
|
-
fontSize: 20,
|
|
418
|
-
border: 1,
|
|
419
|
-
borderColor: "rgba(255, 255, 255, 0.1)",
|
|
420
|
-
borderBottomStyle: "3px solid rgba(255, 255, 255, 0.06)",
|
|
421
|
-
round: 50,
|
|
422
|
-
animated: 0, // 1: small hover / focus motions
|
|
423
|
-
hoverRingColor: "rgba(255, 255, 255, 0.08)", // Alpha("#FFFFFF", 0.2), //
|
|
424
|
-
focusRingColor: "rgba(255, 255, 255, 0.18)", // Alpha("#23BCC1", 0.6), //
|
|
425
|
-
},
|
|
426
|
-
|
|
427
|
-
};
|