ozdenui 0.1.0
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.
- checksums.yaml +7 -0
- data/LICENSE +14 -0
- data/NOTICE +5 -0
- data/README.md +242 -0
- data/exe/ozdenui +17 -0
- data/lib/ozdenui/AGENTS.md +210 -0
- data/lib/ozdenui/COMPONENTS.md +3017 -0
- data/lib/ozdenui/app.rb +749 -0
- data/lib/ozdenui/command.rb +107 -0
- data/lib/ozdenui/components.rb +368 -0
- data/lib/ozdenui/dialogs.rb +212 -0
- data/lib/ozdenui/files.rb +124 -0
- data/lib/ozdenui/icon.png +0 -0
- data/lib/ozdenui/kit.json +1 -0
- data/lib/ozdenui/kit.rb +115 -0
- data/lib/ozdenui/look.rb +229 -0
- data/lib/ozdenui/objects.rb +652 -0
- data/lib/ozdenui/server.rb +270 -0
- data/lib/ozdenui/values.rb +273 -0
- data/lib/ozdenui/version.rb +15 -0
- data/lib/ozdenui/web/basic/LICENSE +14 -0
- data/lib/ozdenui/web/basic/basic.min.css +1 -0
- data/lib/ozdenui/web/basic/basic.min.js +78 -0
- data/lib/ozdenui/web/basic/font/open-sans/LICENSE.txt +206 -0
- data/lib/ozdenui/web/basic/font/open-sans/OpenSans-Bold.ttf +0 -0
- data/lib/ozdenui/web/basic/font/open-sans/OpenSans-Regular.ttf +0 -0
- data/lib/ozdenui/web/basic/scroll-bar.min.js +3 -0
- data/lib/ozdenui/web/bridge.js +584 -0
- data/lib/ozdenui/web/comp/accordion.js +659 -0
- data/lib/ozdenui/web/comp/action-button/add.png +0 -0
- data/lib/ozdenui/web/comp/action-button.js +521 -0
- data/lib/ozdenui/web/comp/action-tab-bar.js +383 -0
- data/lib/ozdenui/web/comp/app-bar.js +237 -0
- data/lib/ozdenui/web/comp/badge.js +292 -0
- data/lib/ozdenui/web/comp/bottom-bar.js +555 -0
- data/lib/ozdenui/web/comp/breadcrumbs.js +524 -0
- data/lib/ozdenui/web/comp/canvas.js +652 -0
- data/lib/ozdenui/web/comp/chat-view.js +827 -0
- data/lib/ozdenui/web/comp/check-box.js +490 -0
- data/lib/ozdenui/web/comp/code-editor.js +965 -0
- data/lib/ozdenui/web/comp/color-picker.js +636 -0
- data/lib/ozdenui/web/comp/context-menu.js +951 -0
- data/lib/ozdenui/web/comp/currency-field.js +209 -0
- data/lib/ozdenui/web/comp/data-table/arrow.svg +2 -0
- data/lib/ozdenui/web/comp/data-table.js +937 -0
- data/lib/ozdenui/web/comp/date-picker.js +1055 -0
- data/lib/ozdenui/web/comp/dialog.js +992 -0
- data/lib/ozdenui/web/comp/email-field.js +65 -0
- data/lib/ozdenui/web/comp/file-picker.js +920 -0
- data/lib/ozdenui/web/comp/filters.js +807 -0
- data/lib/ozdenui/web/comp/form.js +602 -0
- data/lib/ozdenui/web/comp/full-screen-select/arrow.svg +2 -0
- data/lib/ozdenui/web/comp/full-screen-select/cancel.svg +2 -0
- data/lib/ozdenui/web/comp/full-screen-select.js +614 -0
- data/lib/ozdenui/web/comp/gauge.js +439 -0
- data/lib/ozdenui/web/comp/graph-box.js +3911 -0
- data/lib/ozdenui/web/comp/grid-group.js +185 -0
- data/lib/ozdenui/web/comp/hold-to-confirm-button/trash-red.png +0 -0
- data/lib/ozdenui/web/comp/hold-to-confirm-button/trash.png +0 -0
- data/lib/ozdenui/web/comp/hold-to-confirm-button.js +289 -0
- data/lib/ozdenui/web/comp/image-view.js +598 -0
- data/lib/ozdenui/web/comp/item-list.js +1740 -0
- data/lib/ozdenui/web/comp/json-editor.js +3221 -0
- data/lib/ozdenui/web/comp/json-view.js +597 -0
- data/lib/ozdenui/web/comp/label-editor.js +1140 -0
- data/lib/ozdenui/web/comp/left-menu/data-table.png +0 -0
- data/lib/ozdenui/web/comp/left-menu/home.png +0 -0
- data/lib/ozdenui/web/comp/left-menu/reports.png +0 -0
- data/lib/ozdenui/web/comp/left-menu/setting.png +0 -0
- data/lib/ozdenui/web/comp/left-menu.js +548 -0
- data/lib/ozdenui/web/comp/line-progress-bar.js +343 -0
- data/lib/ozdenui/web/comp/loading-screen.js +413 -0
- data/lib/ozdenui/web/comp/log-view.js +530 -0
- data/lib/ozdenui/web/comp/login-page.js +685 -0
- data/lib/ozdenui/web/comp/markdown-view.js +1045 -0
- data/lib/ozdenui/web/comp/menu-bar.js +624 -0
- data/lib/ozdenui/web/comp/mini-graph-box.js +492 -0
- data/lib/ozdenui/web/comp/minimal-accent.js +208 -0
- data/lib/ozdenui/web/comp/notice.js +229 -0
- data/lib/ozdenui/web/comp/number-field.js +128 -0
- data/lib/ozdenui/web/comp/numeric-keyboard.js +298 -0
- data/lib/ozdenui/web/comp/page-control.js +762 -0
- data/lib/ozdenui/web/comp/page-header.js +191 -0
- data/lib/ozdenui/web/comp/password-field/hide-btn.png +0 -0
- data/lib/ozdenui/web/comp/password-field/hide-btn2.png +0 -0
- data/lib/ozdenui/web/comp/password-field/show-btn.png +0 -0
- data/lib/ozdenui/web/comp/password-field/show-btn2.png +0 -0
- data/lib/ozdenui/web/comp/password-field.js +192 -0
- data/lib/ozdenui/web/comp/period-bar.js +436 -0
- data/lib/ozdenui/web/comp/phone-field.js +322 -0
- data/lib/ozdenui/web/comp/progress-bar.js +992 -0
- data/lib/ozdenui/web/comp/property-panel.js +3639 -0
- data/lib/ozdenui/web/comp/radio-button.js +527 -0
- data/lib/ozdenui/web/comp/range-slider.js +569 -0
- data/lib/ozdenui/web/comp/rich-text-editor.js +1064 -0
- data/lib/ozdenui/web/comp/scroll-area.js +308 -0
- data/lib/ozdenui/web/comp/scrolling-text.js +297 -0
- data/lib/ozdenui/web/comp/search-input/clear-round.svg +1 -0
- data/lib/ozdenui/web/comp/search-input/clear.svg +1 -0
- data/lib/ozdenui/web/comp/search-input/filter.png +0 -0
- data/lib/ozdenui/web/comp/search-input/filter.svg +1 -0
- data/lib/ozdenui/web/comp/search-input/search.svg +1 -0
- data/lib/ozdenui/web/comp/search-input.js +725 -0
- data/lib/ozdenui/web/comp/search-results.js +596 -0
- data/lib/ozdenui/web/comp/select-box.js +1862 -0
- data/lib/ozdenui/web/comp/settings-row.js +299 -0
- data/lib/ozdenui/web/comp/side-panel.js +616 -0
- data/lib/ozdenui/web/comp/slider-field.js +952 -0
- data/lib/ozdenui/web/comp/slider.js +838 -0
- data/lib/ozdenui/web/comp/smart-button/alert-black.png +0 -0
- data/lib/ozdenui/web/comp/smart-button/clock.png +0 -0
- data/lib/ozdenui/web/comp/smart-button.js +981 -0
- data/lib/ozdenui/web/comp/smart-table/clock.png +0 -0
- data/lib/ozdenui/web/comp/smart-table/down.png +0 -0
- data/lib/ozdenui/web/comp/smart-table/scroll.png +0 -0
- data/lib/ozdenui/web/comp/smart-table/sort.png +0 -0
- data/lib/ozdenui/web/comp/smart-table/up.png +0 -0
- data/lib/ozdenui/web/comp/smart-table.js +1883 -0
- data/lib/ozdenui/web/comp/sortable-list.js +1181 -0
- data/lib/ozdenui/web/comp/spark-line-box.js +738 -0
- data/lib/ozdenui/web/comp/splitter.js +411 -0
- data/lib/ozdenui/web/comp/status-bar.js +408 -0
- data/lib/ozdenui/web/comp/step-bar.js +345 -0
- data/lib/ozdenui/web/comp/stepper.js +753 -0
- data/lib/ozdenui/web/comp/tabs.js +1366 -0
- data/lib/ozdenui/web/comp/tag-input.js +1107 -0
- data/lib/ozdenui/web/comp/tap-effect.js +170 -0
- data/lib/ozdenui/web/comp/text-area-field.js +233 -0
- data/lib/ozdenui/web/comp/text-field.js +1006 -0
- data/lib/ozdenui/web/comp/time-line.js +398 -0
- data/lib/ozdenui/web/comp/time-picker.js +1032 -0
- data/lib/ozdenui/web/comp/tiny-select/arrow.svg +1 -0
- data/lib/ozdenui/web/comp/tiny-select.js +322 -0
- data/lib/ozdenui/web/comp/tiny-table.js +283 -0
- data/lib/ozdenui/web/comp/toast.js +891 -0
- data/lib/ozdenui/web/comp/toggle.js +757 -0
- data/lib/ozdenui/web/comp/tool-bar.js +760 -0
- data/lib/ozdenui/web/comp/tooltip.js +534 -0
- data/lib/ozdenui/web/comp/tree-view.js +1179 -0
- data/lib/ozdenui/web/comp/ui-effects.js +1097 -0
- data/lib/ozdenui/web/comp/ui-standards.js +403 -0
- data/lib/ozdenui/web/comp/url-field.js +190 -0
- data/lib/ozdenui/web/comp/web-view.js +588 -0
- data/lib/ozdenui/web/components.js +123 -0
- data/lib/ozdenui/web/index.html +39 -0
- data/lib/ozdenui/window.rb +188 -0
- data/lib/ozdenui/window_cocoa.rb +221 -0
- data/lib/ozdenui.rb +32 -0
- metadata +200 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Bismillah
|
|
2
|
+
#
|
|
3
|
+
# files.rb - ozdenui v0.1 (OzdenUI: basic.js for Ruby)
|
|
4
|
+
# The files of a FilePicker with their real paths: a click on it opens the file dialog of the system (the dialog of
|
|
5
|
+
# the page gives only names), picker.add_files(paths) and picker.paths.
|
|
6
|
+
#
|
|
7
|
+
# Started Date: November 2026
|
|
8
|
+
# Webpage: https://bug7a.github.io/ozdenui-ruby/
|
|
9
|
+
#
|
|
10
|
+
# Copyright 2026 Bugra Ozden <bugra.ozden@gmail.com> (https://bug7a.github.io/)
|
|
11
|
+
# Licensed under the Apache License, Version 2.0
|
|
12
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
13
|
+
|
|
14
|
+
require "find"
|
|
15
|
+
|
|
16
|
+
module OzdenUI
|
|
17
|
+
# What the gem is made of. A program uses the methods of OzdenUI; these classes are behind them.
|
|
18
|
+
module Runtime
|
|
19
|
+
# @api private
|
|
20
|
+
module Files
|
|
21
|
+
MAX_PREVIEWS = 12 # more files than this: no pictures in the list (each one is read)
|
|
22
|
+
MAX_PREVIEW_BYTES = 2 * 1024 * 1024 # a larger picture is not read for the list
|
|
23
|
+
# The endings behind a kind of files in the accept of a FilePicker ("image/*").
|
|
24
|
+
ENDINGS_OF_KIND = {
|
|
25
|
+
"image/*" => %w[png jpg jpeg gif webp svg bmp], "audio/*" => %w[mp3 wav ogg m4a flac],
|
|
26
|
+
"video/*" => %w[mp4 mov webm mkv avi], "text/*" => %w[txt md csv json html css js]
|
|
27
|
+
}.freeze
|
|
28
|
+
|
|
29
|
+
module_function
|
|
30
|
+
|
|
31
|
+
# What the page needs of a file: a plain object in the place of the File object of a browser. nil: not a file.
|
|
32
|
+
def file_for_page(path, with_preview)
|
|
33
|
+
path = File.expand_path(path.to_s)
|
|
34
|
+
return nil unless File.file?(path)
|
|
35
|
+
kind = (Values::MIME_TYPES[File.extname(path).downcase] || "").split(";").first.to_s
|
|
36
|
+
size = File.size(path)
|
|
37
|
+
file = { "name" => File.basename(path), "path" => path, "size" => size, "type" => kind,
|
|
38
|
+
"lastModified" => (File.mtime(path).to_f * 1000).to_i }
|
|
39
|
+
file["previewAddress"] = Values.picture_of_path(path) if with_preview && kind.start_with?("image/") && size <= MAX_PREVIEW_BYTES
|
|
40
|
+
file
|
|
41
|
+
rescue SystemCallError
|
|
42
|
+
nil
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# The endings of the accept of a FilePicker (".pdf,.docx", "image/*", "image/png"), for the dialog of the system.
|
|
46
|
+
# nil: every file.
|
|
47
|
+
def file_types_of(accept)
|
|
48
|
+
endings = []
|
|
49
|
+
accept.to_s.split(",").each do |part|
|
|
50
|
+
part = part.strip.downcase
|
|
51
|
+
next if part.empty?
|
|
52
|
+
if part.start_with?(".")
|
|
53
|
+
endings << part[1..-1]
|
|
54
|
+
elsif ENDINGS_OF_KIND[part]
|
|
55
|
+
endings.concat(ENDINGS_OF_KIND[part])
|
|
56
|
+
else
|
|
57
|
+
found = Values::MIME_TYPES.select { |_ending, kind| kind.split(";").first == part }.keys
|
|
58
|
+
return nil if found.empty? # WHY: a kind nobody knows the endings of: the dialog must not hide its files
|
|
59
|
+
endings.concat(found.map { |ending| ending[1..-1] })
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
endings.empty? ? nil : endings
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# The on_open_dialog of a FilePicker that was given none: the file dialog of the system.
|
|
66
|
+
def open_dialog_of_picker(picker)
|
|
67
|
+
if Values.on?(picker.kept_values["directory"])
|
|
68
|
+
folder = OzdenUI.choose_folder
|
|
69
|
+
picker.add_folder(folder) if folder
|
|
70
|
+
return
|
|
71
|
+
end
|
|
72
|
+
types = file_types_of(picker.kept_values["accept"])
|
|
73
|
+
if Values.on?(picker.kept_values["multiple"])
|
|
74
|
+
paths = OzdenUI.open_files(types: types)
|
|
75
|
+
picker.add_files(paths) unless paths.empty?
|
|
76
|
+
return
|
|
77
|
+
end
|
|
78
|
+
path = OzdenUI.open_file(types: types)
|
|
79
|
+
picker.add_files(path) if path
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
class UIObject
|
|
84
|
+
# Adds files of this computer to the list of a FilePicker, with their real paths. Its accept, max_size and
|
|
85
|
+
# max_files look at them too, and its on_change runs. A file that can not be read is told and left out.
|
|
86
|
+
#
|
|
87
|
+
# picker.add_files("/Users/ada/report.pdf", "notes.txt")
|
|
88
|
+
def add_files(*paths)
|
|
89
|
+
must_be("FilePicker", "add_files")
|
|
90
|
+
paths = paths.flatten
|
|
91
|
+
show_preview = @kept_values["showPreview"]
|
|
92
|
+
with_preview = paths.length <= Files::MAX_PREVIEWS && (show_preview.nil? || Values.on?(show_preview))
|
|
93
|
+
files = paths.map do |path|
|
|
94
|
+
file = Files.file_for_page(path, with_preview)
|
|
95
|
+
@app.warn_at("FilePicker.add_files: #{path} could not be read") unless file
|
|
96
|
+
file
|
|
97
|
+
end
|
|
98
|
+
call(:add_files, files.compact)
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# The files of a FilePicker that have a path on this computer: the ones chosen in the file dialog or given by
|
|
102
|
+
# add_files. A file dropped on the window has only its name (picker.files lists every file).
|
|
103
|
+
def paths
|
|
104
|
+
must_be("FilePicker", "paths")
|
|
105
|
+
Array(@kept_values["files"]).map { |file| file.is_a?(Hash) ? file["path"].to_s : "" }
|
|
106
|
+
.select { |path| !path.empty? && File.absolute_path(path) == path }
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Every file of a folder, as the dialog of the page gives a folder: a row says where its file is.
|
|
110
|
+
# @api private
|
|
111
|
+
def add_folder(folder)
|
|
112
|
+
files = []
|
|
113
|
+
root = File.dirname(folder)
|
|
114
|
+
Find.find(folder) do |path|
|
|
115
|
+
file = File.file?(path) ? Files.file_for_page(path, false) : nil
|
|
116
|
+
next unless file
|
|
117
|
+
file["webkitRelativePath"] = path[(root.length + 1)..-1].to_s.tr("\\", "/")
|
|
118
|
+
files << file
|
|
119
|
+
end
|
|
120
|
+
call(:add_files, files)
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"kitVersion":"26.11.10","objectProps":["alt","aria","autoSize","bold","border","borderColor","bottom","boxShadow","clickable","clipContent","color","containerBox","css","cursor","ellipsis","enabled","fontFamily","fontSize","grow","height","html","imageFit","inputElement","inputType","italic","left","lineHeight","loop","mainBox","maxLength","minimal","opacity","padding","parentBox","placeholder","plainText","position","readOnly","right","role","rotate","round","scrollX","scrollY","selectable","shrink","space","spaceX","spaceY","tabIndex","text","textAlign","textColor","textSize","title","top","value","visible","width","zIndex","zoom"],"components":{"Accordion":{"file":"comp/accordion.js","params":["animated","arrowSide","enabled","height","key","left","multiple","onToggle","sections","style","styleName","top","useScrollBar","width"],"methods":["addSection","close","closeAll","endSection","focus","getContent","getOpenKeys","getSection","isOpen","open","openAll","removeSection","setAnimated","setEnabled","setSectionDescription","setSectionEnabled","setSectionText","setSections","setTheme","startSection","toggle"],"setters":{"animated":["setAnimated",false],"enabled":["setEnabled",false],"sections":["setSections",false]},"aliases":{"theme":"styleName"},"containerHint":"accordion.section(key) { ... }","darkStyle":"dark","hasMinimal":true,"state":{"openKeys":"getOpenKeys()"},"stateDefaults":{"openKeys":[]},"sync":["onToggle"]},"ActionButton":{"file":"comp/action-button.js","params":["animated","bottomSpace","height","iconFile","iconRotate","iconSize","items","key","left","menuGap","menuWidth","onAction","onMenuToggle","openIconFile","openIconRotate","rightSpace","style","styleName","top","width"],"methods":["closeMenu","openMenu","press","setAnimated","setButtonColor","setItems","toggleMenu"],"setters":{"animated":["setAnimated",false],"items":["setItems",false]}},"ActionTabBar":{"file":"comp/action-tab-bar.js","params":["actionAriaLabel","ariaLabel","height","items","key","onAction","onChange","style","value","width"],"methods":["getIndex","setValue"],"setters":{"value":["setValue",true]}},"AppBar":{"file":"comp/app-bar.js","params":["backAriaLabel","backIconFile","color","height","iconColor","key","left","line","menuAriaLabel","menuIconFile","onBack","onMenu","showBack","showMenu","style","titleAlign","titleText","top","width"],"methods":["setBackVisible","setLine","setMenuVisible","setTitleAlign","setTitleText"],"setters":{"line":["setLine",false],"titleAlign":["setTitleAlign",false],"titleText":["setTitleText",false]}},"Badge":{"file":"comp/badge.js","params":["badgeStyle","dotForOne","dotSize","dotStyle","key","maxValue","numberStyle","showPlus","showZero","style","styleName","value"],"methods":["getState","getValue","hide","isVisible","setState","setValue","show"],"setters":{"value":["setValue",false]}},"BottomBar":{"file":"comp/bottom-bar.js","params":["allowHtml","badge","floatLabelTime","height","hoverEffect","items","labelMode","left","onItemClick","selectedIndex","style","width"],"methods":["refresh","refreshOneTime","selectByIndex","selectNone","setBadge","setLabelMode"],"setters":{"badge":["setBadge",false],"labelMode":["setLabelMode",false]}},"Breadcrumbs":{"file":"comp/breadcrumbs.js","params":["ariaLabel","currentClickable","enabled","height","items","itemsAfterCollapse","itemsBeforeCollapse","key","maxItemWidth","maxItems","onChange","onClick","separator","style","trimOnClick","width","wrap"],"methods":["addItem","back","clickItem","collapse","expand","getCurrentItem","getItems","goTo","refresh","setEnabled","setItems","setMaxItems","setSeparator"],"setters":{"enabled":["setEnabled",false],"items":["setItems",true],"maxItems":["setMaxItems",false],"separator":["setSeparator",false]}},"Canvas":{"file":"comp/canvas.js","params":["ariaLabel","drawing","height","key","left","onClick","onDrawEnd","onShapeMove","penColor","penWidth","shapes","style","styleName","top","width"],"methods":["addCircle","addEllipse","addImage","addLine","addPolygon","addPolyline","addRect","addShape","addText","bringToFront","clear","getImage","getShape","getShapes","moveShape","removeShape","setDrawing","setPen","setShapes","setTheme","updateShape"],"setters":{"drawing":["setDrawing",false],"shapes":["setShapes",false]},"aliases":{"theme":"styleName"},"darkStyle":"dark"},"ChatView":{"file":"comp/chat-view.js","params":["ariaLabel","autoScroll","busy","copiedText","copyText","emptyText","height","key","maxInputLines","messages","onLinkClick","onSend","onStop","placeholder","remotePictures","sendOnEnter","sendText","showInput","stopText","style","styleName","width"],"methods":["addMessage","appendText","clear","focus","getInputText","getMessageText","getMessages","removeMessage","scrollToEnd","scrollToTop","send","setBusy","setEmptyText","setInputText","setMessageText","setMessages","setPlaceholder","setShowInput","setTheme","stop"],"setters":{"busy":["setBusy",false],"emptyText":["setEmptyText",false],"messages":["setMessages",false],"placeholder":["setPlaceholder",false],"showInput":["setShowInput",false]},"aliases":{"theme":"styleName"},"darkStyle":"dark","hasMinimal":true,"state":{"busy":"busy"},"sync":["onStop"]},"CheckBox":{"file":"comp/check-box.js","params":["allowHtml","animated","checked","enabled","height","key","labelPosition","labelText","onChange","style","styleName","width","wrapLabel"],"methods":["refresh","setAnimated","setChecked","setEnabled","setLabelText","toggle"],"setters":{"animated":["setAnimated",false],"checked":["setChecked",true],"enabled":["setEnabled",false],"labelText":["setLabelText",false]},"aliases":{"text":"labelText"},"darkStyle":"dark","hasMinimal":true,"state":{"checked":"checked"},"stateDefaults":{"checked":0,"enabled":1},"sync":["onChange"]},"CodeEditor":{"file":"comp/code-editor.js","params":["ariaLabel","changeDelay","height","key","language","left","onChange","onCursorChange","placeholder","readOnly","showLineNumbers","style","styleName","tabSize","top","value","width"],"methods":["focusEditor","getSelectedText","getValue","goToLine","insertText","setLanguage","setReadOnly","setShowLineNumbers","setTabSize","setTheme","setValue"],"setters":{"language":["setLanguage",false],"readOnly":["setReadOnly",false],"showLineNumbers":["setShowLineNumbers",false],"tabSize":["setTabSize",false],"value":["setValue",true]},"aliases":{"theme":"styleName"},"darkStyle":"dark","state":{"cursorColumn":"cursorColumn","cursorLine":"cursorLine"},"stateDefaults":{"cursorColumn":1,"cursorLine":1},"sync":["onCursorChange"]},"ColorPicker":{"file":"comp/color-picker.js","params":["closeOnSelect","colors","columns","enabled","height","inline","key","onChange","onClose","onOpen","placeholder","selectedColor","showText","style","styleName","width"],"methods":["close","getColor","isOpen","open","refresh","setColor","setColors","setEnabled","toggle"],"setters":{"colors":["setColors",false],"enabled":["setEnabled",false]},"aliases":{"value":"selectedColor"},"darkStyle":"dark","hasMinimal":true,"state":{"value":"value"},"stateDefaults":{"value":""},"sync":["onChange"]},"ContextMenu":{"file":"comp/context-menu.js","params":["ariaLabel","enabled","items","key","maxWidth","minWidth","onClick","onClose","onOpen","onSideKey","parentMenu","style","styleName","target","trigger"],"methods":["activateFirst","attachTo","clickItem","close","closeSubmenu","detach","getItemByKey","getItems","hasActive","isOpen","openAt","openBelow","openBeside","openWithEvent","remove","setEnabled","setItemChecked","setItemEnabled","setItems"],"setters":{"enabled":["setEnabled",false],"items":["setItems",false]},"darkStyle":"dark","hasMinimal":true,"hasOwnPlace":true},"CurrencyField":{"file":"comp/currency-field.js","params":["allowDecimal","allowHtml","allowNegative","animatedWarningBall","backBorderBottomRound","backBorderColor","backBorderTopRound","backgroundColor","createInput","decimalSeparator","descriptionFontSize","descriptionText","descriptionTextColor","fieldPadding","focusBackBorderColor","focusBackgroundColor","focusLineColor","groupSeparator","height","hoverBackBorderColor","hoverBackgroundColor","inputColorScheme","inputFontSize","inputHeight","inputTextColor","key","leftPadding","lineColor","maxDecimalDigits","maxLength","onBlur","onChange","onFocus","placeholder","placeholderColor","required","requiredColor","requiredIconColor","requiredIconFile","requiredText","rightPadding","selectStyle","showDescription","showLeftBox","showRightBox","showUnit","styleName","titleBold","titleFontSize","titleGap","titleLetterSpacing","titlePosition","titleText","titleTextColor","tooltipStyle","type","unitStyle","unitText","value","warningBallBorder","warningBallBorderColor","warningBallSize","warningBallType","warningBorderColor","warningColor","warningIconFile","warningIconSize","warningText","width"],"methods":["applyFormattedValueToInput","applyTextColors","blurFunc","checkIfInputIsRequiredAndEmpty","checkInputValue","focusFunc","getValue","getValueAsNumber","inputFunc","isValid","paintFocus","setBackgroundColor","setDescriptionText","setFocusBackgroundColor","setFocusLineColor","setLineColor","setMaxLength","setPlaceholder","setRequired","setRequiredIcon","setRequiredText","setTitleText","setUnitText","setValue","setWarningColor","setWarningIcon","setWarningText","showWarningIfNotValid"],"setters":{"backgroundColor":["setBackgroundColor",false],"descriptionText":["setDescriptionText",false],"focusBackgroundColor":["setFocusBackgroundColor",false],"focusLineColor":["setFocusLineColor",false],"lineColor":["setLineColor",false],"maxLength":["setMaxLength",false],"placeholder":["setPlaceholder",false],"required":["setRequired",false],"requiredText":["setRequiredText",false],"titleText":["setTitleText",false],"unitText":["setUnitText",false],"value":["setValue",false],"warningColor":["setWarningColor",false],"warningText":["setWarningText",false]},"aliases":{"text":"value"},"darkStyle":"dark","defaults":{"placeholder":"","required":0,"styleName":"light","titleText":""},"focusPart":"input","hasMinimal":true,"state":{"text":"getValue()"},"sync":["onChange"]},"DataTable":{"file":"comp/data-table.js","params":["canSelect","columns","emptyText","height","idIndex","idKey","noResultText","onRowClick","onSelect","onSort","rowHeight","rows","searchParams","showSearch","sortDirection","sortIconFile","sortKey","style","styleName","titleText","useScrollBar","width"],"methods":["addRow","clearRows","clearSelection","clearSort","getBiggestId","getRow","getRows","getSelectedData","getSelectedId","removeRow","search","select","setRows","setTitleText","sortBy","updateRow","updateRows"],"setters":{"rows":["setRows",false],"titleText":["setTitleText",false]},"darkStyle":"dark","hasMinimal":true,"state":{"selectedRow":"getSelectedData()"},"sync":["onSelect"]},"DatePicker":{"file":"comp/date-picker.js","params":["closeOnSelect","date","enabled","firstDayOfWeek","format","height","inline","key","language","maxDate","minDate","onChange","onClose","onOpen","placeholder","scale","showClearButton","showTodayButton","style","styleName","width"],"methods":["close","getDate","isOpen","open","refresh","setDate","setEnabled","setMaxDate","setMinDate","toggle"],"setters":{"date":["setDate",true],"enabled":["setEnabled",false],"maxDate":["setMaxDate",false],"minDate":["setMinDate",false]},"aliases":{"value":"date"},"darkStyle":"dark","hasMinimal":true,"state":{"value":"value"},"stateDefaults":{"value":""},"sync":["onChange"]},"Dialog":{"file":"comp/dialog.js","params":["allowHtml","ariaLabel","autoOpen","buttons","closeOnCover","closeOnEscape","content","fields","key","messageText","onClose","onOpen","removeOnClose","scale","style","styleName","titleText","topIconFile","topIconTone","variant","width"],"methods":["close","getButton","getValues","isBusy","isOpen","open","remove","setBusy","setMessageText","setStatus","setTitleText"],"setters":{"messageText":["setMessageText",false],"titleText":["setTitleText",false]},"darkStyle":"ozdenDark","hasMinimal":true},"EmailField":{"file":"comp/email-field.js","params":["allowHtml","animatedWarningBall","backBorderBottomRound","backBorderColor","backBorderTopRound","backgroundColor","createInput","descriptionFontSize","descriptionText","descriptionTextColor","fieldPadding","focusBackBorderColor","focusBackgroundColor","focusLineColor","height","hoverBackBorderColor","hoverBackgroundColor","inputColorScheme","inputFontSize","inputHeight","inputTextColor","key","leftPadding","lineColor","maxLength","onBlur","onChange","onFocus","placeholder","placeholderColor","required","requiredColor","requiredIconColor","requiredIconFile","requiredText","rightPadding","selectStyle","showDescription","showLeftBox","showRightBox","showUnit","styleName","titleBold","titleFontSize","titleGap","titleLetterSpacing","titlePosition","titleText","titleTextColor","tooltipStyle","type","unitStyle","unitText","value","warningBallBorder","warningBallBorderColor","warningBallSize","warningBallType","warningBorderColor","warningColor","warningIconFile","warningIconSize","warningText","width"],"methods":["applyFormattedValueToInput","applyTextColors","blurFunc","checkIfInputIsRequiredAndEmpty","checkInputValue","focusFunc","getValue","inputFunc","isValid","paintFocus","setBackgroundColor","setDescriptionText","setFocusBackgroundColor","setFocusLineColor","setLineColor","setMaxLength","setPlaceholder","setRequired","setRequiredIcon","setRequiredText","setTitleText","setUnitText","setValue","setWarningColor","setWarningIcon","setWarningText","showWarningIfNotValid"],"setters":{"backgroundColor":["setBackgroundColor",false],"descriptionText":["setDescriptionText",false],"focusBackgroundColor":["setFocusBackgroundColor",false],"focusLineColor":["setFocusLineColor",false],"lineColor":["setLineColor",false],"maxLength":["setMaxLength",false],"placeholder":["setPlaceholder",false],"required":["setRequired",false],"requiredText":["setRequiredText",false],"titleText":["setTitleText",false],"unitText":["setUnitText",false],"value":["setValue",false],"warningColor":["setWarningColor",false],"warningText":["setWarningText",false]},"aliases":{"text":"value"},"darkStyle":"dark","defaults":{"maxLength":254,"required":0,"styleName":"light","titleText":""},"focusPart":"input","hasMinimal":true,"state":{"text":"getValue()"},"sync":["onChange"]},"FilePicker":{"file":"comp/file-picker.js","params":["accept","allowHtml","animated","descriptionText","directory","dropText","enabled","height","hintText","iconFile","iconSvg","key","maxFiles","maxSize","multiple","onChange","onError","onOpenDialog","preventPageDrop","showIcon","showList","showPreview","style","styleName","titleText","width","zoneHeight"],"methods":["addFiles","clear","getFileDetails","getFiles","open","refresh","remove","removeFile","setAnimated","setDescriptionText","setEnabled","setIcon","setIconSvg","setTitleText"],"setters":{"animated":["setAnimated",false],"descriptionText":["setDescriptionText",false],"enabled":["setEnabled",false],"iconSvg":["setIconSvg",false],"titleText":["setTitleText",false]},"darkStyle":"dark","defaults":{"shrink":0},"hasMinimal":true,"state":{"files":"getFileDetails()"},"stateDefaults":{"files":[]}},"Filters":{"file":"comp/filters.js","params":["animated","buttonText","checkBoxParams","clearText","height","key","noResultText","onChange","onPanelToggle","panelHeight","panelMode","panelOpened","searchInputParams","searchPlaceholder","sections","selectedText","style","styleName","width"],"methods":["clearAll","closePanel","getSelected","getSelectedCount","openPanel","search","setAnimated","setButtonText","setPanelOpened","setSectionOpened","setSections","setSelected","togglePanel"],"setters":{"animated":["setAnimated",false],"buttonText":["setButtonText",false],"panelOpened":["setPanelOpened",true],"sections":["setSections",false]}},"Form":{"file":"comp/form.js","params":["allowHtml","buttonColor","buttonText","doubleInputAlwaysHorizontal","errorText","hintRound","maxWidth","minWidth","minimalButton","missingEntriesText","missingEntryText","onChange","onSendClick","passiveButtonHintText","showDetailWarning","showPassiveButtonHint","warningText"],"methods":["addDoubleInput","addInput","addTitle","refresh","remove","setPassiveButtonHintText","showMessage"],"setters":{"passiveButtonHintText":["setPassiveButtonHintText",false]}},"FullScreenSelect":{"file":"comp/full-screen-select.js","params":["ariaLabel","arrowIconFile","autoWidth","clearIconFile","closeIconFile","emptyText","height","items","onChange","onClose","onOpen","placeholder","searchIconFile","selectedKey","showSearch","style","styleName","width"],"methods":["close","getSelectedIndex","getSelectedItem","open","remove","setItems","setSelectedIndex","setSelectedKey"],"setters":{"items":["setItems",false],"selectedKey":["setSelectedKey",true]},"darkStyle":"dark"},"Gauge":{"file":"comp/gauge.js","params":["ariaLabel","decimals","duration","height","key","markerValue","maxValue","minValue","onChange","radius","startAngle","style","styleName","subText","sweepAngle","titleText","value","valueSuffix","valueText","width"],"methods":["refresh","setBarColor","setMarkerValue","setRange","setSubText","setTitleText","setValue","setValueSuffix","setValueText"],"setters":{"markerValue":["setMarkerValue",false],"subText":["setSubText",false],"titleText":["setTitleText",false],"value":["setValue",true],"valueSuffix":["setValueSuffix",false],"valueText":["setValueText",false]},"darkStyle":"dark"},"GraphBox":{"file":"comp/graph-box.js","params":["animated","beginAtZero","centerSubText","centerText","curve","data","datasets","emptyText","formatValue","formatX","height","horizontal","key","labels","legend","locale","maxCount","maxLabels","maxSlices","maxValue","maxX","minValue","minX","onClick","otherText","showPoints","showValues","sizeText","softMaxValue","softMinValue","stacked","style","subtitleText","tableHeadText","tableView","targetLines","theme","titleText","totalText","type","valueStep","values","width","xAxisText","yAxisText"],"methods":["addDataset","addPoint","addValue","download","getCanvas","getImage","getTableData","removeDataset","setAnimated","setAxisTexts","setCenterText","setCurve","setData","setDatasetVisible","setDatasets","setFormatValue","setFormatX","setHorizontal","setLabels","setLegend","setMaxSlices","setShowValues","setSliceVisible","setSoftLimits","setStacked","setStyle","setSubtitleText","setTableView","setTargetLines","setTheme","setTitleText","setType","setValueLimits","setValueStep","setValues","setXLimits","update","whenReady"],"setters":{"animated":["setAnimated",false],"centerText":["setCenterText",false],"curve":["setCurve",false],"data":["setData",false],"datasets":["setDatasets",false],"formatValue":["setFormatValue",false],"formatX":["setFormatX",false],"horizontal":["setHorizontal",false],"labels":["setLabels",false],"legend":["setLegend",false],"maxSlices":["setMaxSlices",false],"showValues":["setShowValues",false],"stacked":["setStacked",false],"style":["setStyle",false],"subtitleText":["setSubtitleText",false],"tableView":["setTableView",false],"targetLines":["setTargetLines",false],"theme":["setTheme",false],"titleText":["setTitleText",false],"type":["setType",false],"valueStep":["setValueStep",false],"values":["setValues",false]},"formatParams":["formatValue","formatX"],"themeParam":true},"GridGroup":{"file":"comp/grid-group.js","params":["align","clipContent","columns","gap","height","rows","width"],"methods":["place","setAlign","setColumns","setGap","setRows"],"setters":{"align":["setAlign",false],"columns":["setColumns",false],"gap":["setGap",false],"rows":["setRows",false]},"container":"self"},"HoldToConfirmButton":{"file":"comp/hold-to-confirm-button.js","params":["allowHtml","completedText","height","holdDuration","holdingIconFile","iconFile","key","labelText","onConfirm","onReset","resetDelay","style","width"],"methods":["cancelHold","onHoldComplete","refresh","startHold"]},"ImageView":{"file":"comp/image-view.js","params":["altText","ariaLabel","buttonTexts","emptyText","enlargeToFit","errorText","height","imageFile","key","maxZoom","minZoom","onError","onLoad","onZoomChange","pixelatedZoom","showToolbar","style","styleName","wheelZoom","width","zoomStep"],"methods":["clearImage","setImage","setShowToolbar","setTheme","setZoomLevel","zoomIn","zoomOut","zoomToActualSize","zoomToFit"],"setters":{"showToolbar":["setShowToolbar",false]},"aliases":{"alt":"altText","image":"imageFile","theme":"styleName"},"darkStyle":"dark","state":{"naturalHeight":"naturalHeight","naturalWidth":"naturalWidth","zoomLevel":"zoomLevel"},"stateDefaults":{"naturalHeight":0,"naturalWidth":0,"zoomLevel":1},"sync":["onZoomChange","onLoad"]},"ItemList":{"file":"comp/item-list.js","params":["animated","ariaLabel","emptyText","enabled","height","items","key","layout","noResultText","onChange","onItemClick","scrollToSelected","searchParams","selectedKeys","selection","showSearch","style","styleName","useScrollBar","width"],"methods":["addItem","clearSelection","focusItem","forEach","getItem","getItems","getRow","getSelected","getSelectedKeys","refresh","removeItem","scrollToItem","search","select","setActiveKey","setAnimated","setEnabled","setItems","setLayout","setSelected","setSelection","unselect","updateItem"],"setters":{"animated":["setAnimated",false],"enabled":["setEnabled",false],"items":["setItems",false],"layout":["setLayout",false],"selectedKeys":["setSelected",true],"selection":["setSelection",false]},"darkStyle":"ozdenDark","hasMinimal":true,"state":{"selected":"getSelected()","selectedKeys":"getSelectedKeys()"},"stateDefaults":{"items":[],"selected":[],"selectedKeys":[]},"sync":["onChange"]},"JsonEditor":{"file":"comp/json-editor.js","params":["ariaLabel","colorOf","columns","height","key","left","noteText","onChange","onPickColor","onPickPicture","optionsOf","pictureBase","showHint","showTitleBar","style","styleName","texts","titleText","top","value","width"],"methods":["focus","getJsonText","getValue","getView","hasChanges","redo","setJsonText","setTitleText","setValue","setView","undo"],"setters":{"titleText":["setTitleText",false],"value":["setValue",false]},"darkStyle":"dark","hasMinimal":true,"wholeArgs":{"onChange":[1]}},"JsonView":{"file":"comp/json-view.js","params":["ariaLabel","copyPathText","copyValueText","emptyText","expandLevel","height","key","left","onCopy","onSelect","pageSize","style","styleName","top","useScrollBar","value","width"],"methods":["collapseAll","expandAll","getSelectedPath","getSelectedPathText","getSelectedValue","getValue","remove","selectPath","setJsonText","setTheme","setValue"],"setters":{"value":["setValue",false]},"aliases":{"theme":"styleName"},"darkStyle":"dark","state":{"selectedPath":"getSelectedPath()","selectedPathText":"getSelectedPathText()"},"stateDefaults":{"selectedPath":null,"selectedPathText":""},"sync":["onSelect"]},"LabelEditor":{"file":"comp/label-editor.js","params":["colorPalette","height","key","labels","newLabel","onChange","onSelect","onStylesChange","panelWidth","savedStyles","storageKey","style","styleName","texts","useScrollBar","width"],"methods":["addLabel","applyStyle","duplicateLabel","getLabels","getSavedStyles","getSelectedIndex","moveLabel","refresh","removeLabel","removeStyle","saveStyle","selectLabel","setLabels","setSavedStyles"],"setters":{"labels":["setLabels",false],"savedStyles":["setSavedStyles",false]},"darkStyle":"dark"},"LeftMenu":{"file":"comp/left-menu.js","params":["allowHtml","backgroundColor","expandedShadow","expandedWidth","hoverColor","invertIconColor","itemHeight","items","key","lineColor","onItemClick","onMenuToggle","openOnClick","scrollBarColor","selectedColor","selectedTextColor","style","styleName","textColor","titleColor","topBarHeight"],"methods":["addItemToBottom","addItemToTop","clearSelection","collapse","expand","getSelectedItem","isTapMode","remove","removeItem","setOpenOnClick","setSelectedItem","toggle"],"setters":{"openOnClick":["setOpenOnClick",false]},"darkStyle":"dark"},"LineProgressBar":{"file":"comp/line-progress-bar.js","params":["animated","backgroundColor","headGrow","height","lineGap","lineRound","lineWidth","primaryColor","progress","secondaryColor","showValueLabel","valueBubble","valueBubbleLook","width"],"methods":["setAnimated","setPrimaryColor","setProgress","setSecondaryColor"],"setters":{"animated":["setAnimated",false],"primaryColor":["setPrimaryColor",false],"progress":["setProgress",false],"secondaryColor":["setSecondaryColor",false]}},"LoadingScreen":{"file":"comp/loading-screen.js","params":["allowHtml","fadeDuration","height","iconFile","iconSvg","left","messageText","minDuration","onClose","opened","progress","removeOnClose","spinnerType","style","styleName","titleText","top","width"],"methods":["close","open","setMessageText","setProgress","setTitleText"],"setters":{"messageText":["setMessageText",false],"progress":["setProgress",false],"titleText":["setTitleText",false]},"aliases":{"message":"messageText","title":"titleText"},"darkStyle":"ozdenDark","hasMinimal":true,"onPage":true},"LogView":{"file":"comp/log-view.js","params":["ariaLabel","autoScroll","emptyText","height","key","levelTexts","lines","maxLines","newLinesText","showLevel","showTime","style","styleName","width","wrapLines"],"methods":["addLine","clearLines","debug","error","getText","info","scrollToEnd","setAutoScroll","setLevels","setMaxLines","setShowLevel","setShowTime","setTheme","setWrapLines","success","warn"],"setters":{"autoScroll":["setAutoScroll",false],"maxLines":["setMaxLines",false],"showLevel":["setShowLevel",false],"showTime":["setShowTime",false],"wrapLines":["setWrapLines",false]},"aliases":{"theme":"styleName"},"darkStyle":"dark"},"LoginPage":{"file":"comp/login-page.js","params":["allowHtml","buttonStyleName","buttonTone","hidePasswordIconFile","inputStyleName","input_backgroundColor","input_border","input_borderColor","input_lineColor","input_selectedBackgroundColor","input_textColor","onLoginClick","onSignupClick","orLineColor","orTextColor","panelName","panelWidth","primaryColor","showPasswordIconFile","showPasswordIconInvert","signupPasswordParams","style","tabStyle","tabWidth","tab_backgroundColorBottom","tab_backgroundColorTop","tab_border","tab_borderColor","tab_selectedColor","tab_textColor","waitingClock","waitingCoverColor"],"methods":["createButtonWithIcon","remove","setActiveTab","showAlert"]},"MarkdownView":{"file":"comp/markdown-view.js","params":["ariaLabel","autoScroll","copiedText","copyText","emptyText","height","key","left","markdownText","onLinkClick","remotePictures","style","styleName","top","useScrollBar","width"],"methods":["appendText","clear","getHeadings","getMarkdownText","scrollToEnd","scrollToHeading","scrollToTop","setAutoScroll","setEmptyText","setMarkdownText","setTheme"],"setters":{"autoScroll":["setAutoScroll",false],"emptyText":["setEmptyText",false],"markdownText":["setMarkdownText",false]},"aliases":{"theme":"styleName"},"darkStyle":"dark"},"MenuBar":{"file":"comp/menu-bar.js","params":["ariaLabel","enabled","height","key","left","menus","onClick","onMenuClose","onMenuOpen","style","styleName","top","width"],"methods":["closeMenu","remove","setEnabled","setItemChecked","setItemEnabled","setMenus","setTheme"],"setters":{"enabled":["setEnabled",false],"menus":["setMenus",false]},"aliases":{"theme":"styleName"},"darkStyle":"dark","dataParams":["value","options","items","rows","columns","tabs","selectedKeys","group","itemDataList","titleDataList","menus"],"defaults":{"shrink":0},"hasMinimal":true},"MiniGraphBox":{"file":"comp/mini-graph-box.js","params":["allowHtml","animated","barColor","height","iconFile","key","maxValue","onClick","showTooltip","style","titleText","valueFormat","valueText","values","width"],"methods":["addValue","clear","getLastValue","getValues","refresh","setBarColor","setIcon","setMaxValue","setTitleText","setValueText","setValues"],"setters":{"barColor":["setBarColor",false],"maxValue":["setMaxValue",false],"titleText":["setTitleText",false],"valueText":["setValueText",false],"values":["setValues",false]}},"Notice":{"file":"comp/notice.js","params":["allowHtml","closeOnClick","descriptionText","displayTime","height","iconFile","left","messageText","onClose","style","styleName","top","type","width"],"methods":["close","remove"]},"NumberField":{"file":"comp/number-field.js","params":["allowDecimal","allowHtml","allowNegative","animatedWarningBall","backBorderBottomRound","backBorderColor","backBorderTopRound","backgroundColor","createInput","decimalSeparator","descriptionFontSize","descriptionText","descriptionTextColor","fieldPadding","focusBackBorderColor","focusBackgroundColor","focusLineColor","height","hoverBackBorderColor","hoverBackgroundColor","inputColorScheme","inputFontSize","inputHeight","inputTextColor","key","leftPadding","lineColor","maxDecimalDigits","maxLength","onBlur","onChange","onFocus","placeholder","placeholderColor","required","requiredColor","requiredIconColor","requiredIconFile","requiredText","rightPadding","selectStyle","showDescription","showLeftBox","showRightBox","showUnit","styleName","titleBold","titleFontSize","titleGap","titleLetterSpacing","titlePosition","titleText","titleTextColor","tooltipStyle","type","unitStyle","unitText","value","warningBallBorder","warningBallBorderColor","warningBallSize","warningBallType","warningBorderColor","warningColor","warningIconFile","warningIconSize","warningText","width"],"methods":["applyFormattedValueToInput","applyTextColors","blurFunc","checkIfInputIsRequiredAndEmpty","checkInputValue","focusFunc","getValue","inputFunc","isValid","paintFocus","setBackgroundColor","setDescriptionText","setFocusBackgroundColor","setFocusLineColor","setLineColor","setMaxLength","setPlaceholder","setRequired","setRequiredIcon","setRequiredText","setTitleText","setUnitText","setValue","setWarningColor","setWarningIcon","setWarningText","showWarningIfNotValid"],"setters":{"backgroundColor":["setBackgroundColor",false],"descriptionText":["setDescriptionText",false],"focusBackgroundColor":["setFocusBackgroundColor",false],"focusLineColor":["setFocusLineColor",false],"lineColor":["setLineColor",false],"maxLength":["setMaxLength",false],"placeholder":["setPlaceholder",false],"required":["setRequired",false],"requiredText":["setRequiredText",false],"titleText":["setTitleText",false],"unitText":["setUnitText",false],"value":["setValue",false],"warningColor":["setWarningColor",false],"warningText":["setWarningText",false]},"aliases":{"text":"value"},"darkStyle":"dark","defaults":{"placeholder":"","required":0,"styleName":"light","titleText":""},"focusPart":"input","hasMinimal":true,"state":{"text":"getValue()"},"sync":["onChange"]},"NumericKeyboard":{"file":"comp/numeric-keyboard.js","params":["height","keyLayout","mask","maxLength","onChange","onEnter","showValue","style","styleName","titleText","value","width"],"methods":["clear","getValue","setTitleText","setValue"],"setters":{"titleText":["setTitleText",false],"value":["setValue",true]},"darkStyle":"dark"},"PageControl":{"file":"comp/page-control.js","params":["ariaLabel","arrows","autoPlay","dots","easing","enabled","height","key","keyboard","loop","motion","onBeforeChange","onChange","onClose","pageScroll","pages","style","swipe","swipeThreshold","transition","value","width"],"methods":["addPage","clear","endPage","focus","getCount","getIndex","getKeys","getPage","isFirst","isLast","next","open","openIndex","previous","refresh","removePage","setAutoPlay","setEnabled","setLoop","startPage"],"setters":{"autoPlay":["setAutoPlay",false],"enabled":["setEnabled",false],"loop":["setLoop",false]}},"PageHeader":{"file":"comp/page-header.js","params":["backColor","backIconFile","backText","color","height","key","left","onBack","showBack","style","titleText","top","width"],"methods":["setBackText","setBackVisible","setTitleText"],"setters":{"backText":["setBackText",false],"titleText":["setTitleText",false]}},"PasswordField":{"file":"comp/password-field.js","params":["allowHtml","animatedWarningBall","backBorderBottomRound","backBorderColor","backBorderTopRound","backgroundColor","createInput","descriptionFontSize","descriptionText","descriptionTextColor","eyeIconSize","fieldPadding","focusBackBorderColor","focusBackgroundColor","focusLineColor","height","hidePasswordHintText","hidePasswordIconFile","hoverBackBorderColor","hoverBackgroundColor","inputColorScheme","inputFontSize","inputHeight","inputTextColor","invertIconColor","key","leftPadding","lineColor","maxLength","minLength","minLengthWarningText","mustUseLetter","mustUseLetterWarningText","mustUseLowercase","mustUseLowercaseWarningText","mustUseNumber","mustUseNumberWarningText","mustUseSpecialChar","mustUseSpecialCharWarningText","mustUseUppercase","mustUseUppercaseWarningText","onBlur","onChange","onFocus","placeholder","placeholderColor","required","requiredColor","requiredIconColor","requiredIconFile","requiredText","rightPadding","selectStyle","showDescription","showLeftBox","showPassword","showPasswordHintText","showPasswordIconFile","showRightBox","showShowPasswordButton","showUnit","styleName","titleBold","titleFontSize","titleGap","titleLetterSpacing","titlePosition","titleText","titleTextColor","tooltipStyle","type","unitStyle","unitText","value","warningBallBorder","warningBallBorderColor","warningBallSize","warningBallType","warningBorderColor","warningColor","warningIconFile","warningIconSize","warningText","width"],"methods":["applyFormattedValueToInput","applyTextColors","blurFunc","checkIfInputIsRequiredAndEmpty","checkInputValue","focusFunc","getValue","inputFunc","isValid","paintFocus","refresh","setBackgroundColor","setDescriptionText","setFocusBackgroundColor","setFocusLineColor","setLineColor","setMaxLength","setPlaceholder","setRequired","setRequiredIcon","setRequiredText","setShowPassword","setTitleText","setUnitText","setValue","setWarningColor","setWarningIcon","setWarningText","showWarningIfNotValid"],"setters":{"backgroundColor":["setBackgroundColor",false],"descriptionText":["setDescriptionText",false],"focusBackgroundColor":["setFocusBackgroundColor",false],"focusLineColor":["setFocusLineColor",false],"lineColor":["setLineColor",false],"maxLength":["setMaxLength",false],"placeholder":["setPlaceholder",false],"required":["setRequired",false],"requiredText":["setRequiredText",false],"showPassword":["setShowPassword",false],"titleText":["setTitleText",false],"unitText":["setUnitText",false],"value":["setValue",false],"warningColor":["setWarningColor",false],"warningText":["setWarningText",false]},"aliases":{"text":"value"},"darkStyle":"dark","defaults":{"maxLength":1000,"required":0,"styleName":"light","titleText":""},"focusPart":"input","hasMinimal":true,"state":{"text":"getValue()"},"sync":["onChange"]},"PeriodBar":{"file":"comp/period-bar.js","params":["ariaLabel","height","key","language","monthCount","onChange","style","value","width"],"methods":["focus","getSelectedDate","selectNext","selectPrevious","setValue","setVisible"],"setters":{"value":["setValue",true]}},"PhoneField":{"file":"comp/phone-field.js","params":["allowHtml","animatedWarningBall","backBorderBottomRound","backBorderColor","backBorderTopRound","backgroundColor","countryCode","createInput","descriptionFontSize","descriptionText","descriptionTextColor","fieldPadding","focusBackBorderColor","focusBackgroundColor","focusLineColor","height","hoverBackBorderColor","hoverBackgroundColor","inputColorScheme","inputFontSize","inputHeight","inputTextColor","key","leftPadding","lineColor","maxLength","onBlur","onChange","onFocus","phoneMask","placeholder","placeholderColor","required","requiredColor","requiredIconColor","requiredIconFile","requiredText","rightPadding","selectStyle","showDescription","showLeftBox","showRightBox","showUnit","styleName","titleBold","titleFontSize","titleGap","titleLetterSpacing","titlePosition","titleText","titleTextColor","tooltipStyle","type","unitStyle","unitText","value","warningBallBorder","warningBallBorderColor","warningBallSize","warningBallType","warningBorderColor","warningColor","warningIconFile","warningIconSize","warningText","width"],"methods":["applyFormattedValueToInput","applyTextColors","blurFunc","checkIfInputIsRequiredAndEmpty","checkInputValue","fillAutoPlaceholder","focusFunc","getValue","inputFunc","isValid","paintFocus","refreshInput","setBackgroundColor","setCountryCode","setDescriptionText","setFocusBackgroundColor","setFocusLineColor","setLineColor","setMaxLength","setPhoneMask","setPlaceholder","setRequired","setRequiredIcon","setRequiredText","setTitleText","setUnitText","setValue","setWarningColor","setWarningIcon","setWarningText","showWarningIfNotValid"],"setters":{"backgroundColor":["setBackgroundColor",false],"countryCode":["setCountryCode",false],"descriptionText":["setDescriptionText",false],"focusBackgroundColor":["setFocusBackgroundColor",false],"focusLineColor":["setFocusLineColor",false],"lineColor":["setLineColor",false],"maxLength":["setMaxLength",false],"phoneMask":["setPhoneMask",false],"placeholder":["setPlaceholder",false],"required":["setRequired",false],"requiredText":["setRequiredText",false],"titleText":["setTitleText",false],"unitText":["setUnitText",false],"value":["setValue",false],"warningColor":["setWarningColor",false],"warningText":["setWarningText",false]},"aliases":{"text":"value"},"darkStyle":"dark","defaults":{"required":0,"styleName":"light","titleText":""},"focusPart":"input","hasMinimal":true,"state":{"text":"getValue()"},"sync":["onChange"]},"ProgressBar":{"file":"comp/progress-bar.js","params":["allowHtml","darkTrack","height","indeterminate","key","limits","maxValue","onChange","onComplete","secondStripes","secondValue","status","stripes","style","styleName","titleText","value","valueFormat","valuePosition","width"],"methods":["addValue","getPercent","refresh","reset","setDarkTrack","setIndeterminate","setLimits","setMaxValue","setSecondStripes","setSecondValue","setStatus","setStripes","setTitleText","setValue","setValues"],"setters":{"darkTrack":["setDarkTrack",false],"indeterminate":["setIndeterminate",false],"limits":["setLimits",false],"maxValue":["setMaxValue",false],"secondStripes":["setSecondStripes",false],"secondValue":["setSecondValue",false],"status":["setStatus",false],"stripes":["setStripes",false],"titleText":["setTitleText",false],"value":["setValue",true]},"darkStyle":"dark","hasMinimal":true,"state":{"value":"value"},"stateDefaults":{"maxValue":100,"value":0}},"PropertyPanel":{"file":"comp/property-panel.js","params":["data","key","onChange","opened","palettes","pickColor","recentColorsKey","style","width"],"methods":["buildColorStrip","close","closeColorPicker","getData","getItem","getValue","getValues","isColorPickerOpen","isPopupElement","listen","open","openColorPickerFor","remove","setActiveTab","setData","setEnabled","setItemVisible","setTitle","setValue","setValues","toggle"],"setters":{"data":["setData",false]}},"RadioButton":{"file":"comp/radio-button.js","params":["allowHtml","checked","enabled","group","height","key","labelPosition","labelText","onChange","style","styleName","value","width"],"methods":["refresh","remove","select","setChecked","setEnabled","setLabelText"],"setters":{"checked":["setChecked",true],"enabled":["setEnabled",false],"labelText":["setLabelText",false]},"aliases":{"text":"labelText"},"darkStyle":"dark","hasMinimal":true,"state":{"checked":"checked"},"stateDefaults":{"checked":0,"group":"default","value":""},"sync":["onChange"]},"RangeSlider":{"file":"comp/range-slider.js","params":["enabled","formatValue","height","highAriaLabel","highValue","key","left","lowAriaLabel","lowValue","maxValue","minGap","minValue","onChange","onChangeEnd","showValueOnMove","step","style","styleName","top","width"],"methods":["getValues","setEnabled","setMaxValue","setMinGap","setMinValue","setStep","setTheme","setValues"],"setters":{"enabled":["setEnabled",false],"maxValue":["setMaxValue",false],"minGap":["setMinGap",false],"minValue":["setMinValue",false],"step":["setStep",false]},"aliases":{"high":"highValue","low":"lowValue","theme":"styleName","valueFormat":"formatValue"},"darkStyle":"roundDark","formatParams":["formatValue"],"hasMinimal":true,"state":{"high":"highValue","low":"lowValue"},"stateDefaults":{"maxValue":100,"minValue":0},"sync":["onChangeEnd"]},"RichTextEditor":{"file":"comp/rich-text-editor.js","params":["ariaLabel","enabled","height","htmlText","key","maxLength","onBlur","onChange","onFocus","pasteAs","placeholder","readOnly","showCounter","spellCheck","style","styleName","texts","tools","useScrollBar","width"],"methods":["clear","focus","focusEnd","getHtmlText","getLength","getText","insertHtml","insertText","isEmpty","refresh","runTool","setEnabled","setHtmlText","setMaxLength","setPlaceholder","setReadOnly"],"setters":{"enabled":["setEnabled",false],"htmlText":["setHtmlText",false],"maxLength":["setMaxLength",false],"placeholder":["setPlaceholder",false],"readOnly":["setReadOnly",false]},"darkStyle":"dark"},"ScrollArea":{"file":"comp/scroll-area.js","params":["align","gap","height","key","left","onScroll","padding","scrollX","scrollY","style","styleName","top","useScrollBar","width"],"methods":["getScrollTop","scrollToEnd","scrollToObject","scrollToTop","setAlign","setGap","setPadding","setScrollTop","setScrollX","setScrollY"],"setters":{"align":["setAlign",false],"gap":["setGap",false],"padding":["setPadding",false],"scrollX":["setScrollX",false],"scrollY":["setScrollY",false]},"container":"content","darkStyle":"dark","hasMinimal":true},"ScrollingText":{"file":"comp/scrolling-text.js","params":["allowHtml","fullWaitDistance","height","labelText","minWaitTime","mode","speed","style","styleName","waitTime","width"],"methods":["refresh","remove","setLabelText"],"setters":{"labelText":["setLabelText",false]}},"SearchInput":{"file":"comp/search-input.js","params":["animated","border","borderBottomStyle","borderColor","clearIconFile","clearIconMinTextWidth","clearIconOffsetY","clearIconOpacity","clearIconRight","clearOnEscape","color","focusBorderColor","focusBorderWidth","focusRingColor","fontSize","height","hoverRingColor","invertClearIconColor","invertIconColor","invertSearchIconColor","left","onChange","onEnter","placeholder","placeholderColor","round","searchIconFile","searchIconGap","searchIconLeft","searchIconOffsetY","searchIconOpacity","searchIconSize","showClearIcon","style","styleName","textColor","textEndSpace","textFadeWidth","textOffsetY","top","value","width"],"methods":["focus","getSearchText","getValue","publicFunc","setAnimated","setClearIconRight","setPlaceholder","setValue"],"setters":{"animated":["setAnimated",false],"clearIconRight":["setClearIconRight",false],"placeholder":["setPlaceholder",false],"value":["setValue",true]},"darkStyle":"ozdenDark","defaults":{"shrink":0,"styleName":"ozden"},"hasMinimal":true,"state":{"text":"getValue()"},"stateDefaults":{"text":""},"sync":["onChange"]},"SearchResults":{"file":"comp/search-results.js","params":["anchor","anchorAlign","ariaLabel","closeOnBlur","emptyText","hintText","key","matchAnchorWidth","maxHeightRatio","maxWidth","offsetY","onActiveChange","onClose","onOpen","onSelect","openOnFocus","screenMargin","showEmpty","showGroups","showHint","style","styleName","useScrollBar","zIndexValue"],"methods":["attachTo","close","detach","getActiveIndex","getItems","moveActive","open","refresh","remove","selectActive","selectIndex","setActiveIndex","setItems","setMatchAnchorWidth"],"setters":{"matchAnchorWidth":["setMatchAnchorWidth",false]},"darkStyle":"dark"},"SelectBox":{"file":"comp/select-box.js","params":["ariaLabel","autoSearchCount","clearText","clearable","closeOnSelect","emptyText","enabled","fieldLabelCount","fullHeightList","height","key","maxRenderCount","moreText","multiple","onChange","onClose","onOpen","options","panelMaxHeight","panelMinWidth","placeholder","scale","searchPlaceholder","searchable","selectAllText","showSelectAll","style","styleName","useScrollBar","useSearchInput","value","width"],"methods":["clear","close","focus","getSelectedOptions","getValue","isOpen","open","setEnabled","setFullHeightList","setOptions","setPlaceholder","setValue","toggle"],"setters":{"enabled":["setEnabled",false],"fullHeightList":["setFullHeightList",false],"options":["setOptions",true],"placeholder":["setPlaceholder",false],"value":["setValue",true]},"darkStyle":"dark","hasMinimal":true,"state":{"value":"value"},"stateDefaults":{"options":[],"value":null},"sync":["onChange"]},"SettingsRow":{"file":"comp/settings-row.js","params":["arrow","color","control","descriptionText","height","key","onClick","style","titleColor","titleText","width"],"methods":["setDescriptionText","setTitleColor","setTitleText"],"setters":{"descriptionText":["setDescriptionText",false],"titleColor":["setTitleColor",false],"titleText":["setTitleText",false]}},"SidePanel":{"file":"comp/side-panel.js","params":["allowHtml","ariaLabel","closeOnBackdrop","closeOnEscape","container","duration","exclusive","fade","key","onBeforeClose","onClose","onOpen","opened","panelSize","screenMargin","showBackdrop","showCloseButton","showHeader","side","style","styleName","titleText"],"methods":["close","endBody","getBody","open","remove","setPanelSize","setTitleText","startBody","toggle"],"setters":{"panelSize":["setPanelSize",false],"titleText":["setTitleText",false]},"containerHint":"panel.body { ... }","darkStyle":"dark","hasMinimal":true,"state":{"isOpened":"isOpened"},"sync":["onOpen","onClose"]},"Slider":{"file":"comp/slider.js","params":["ariaLabel","key","maxValue","minThumbHeight","minValue","onChange","onChangeEnd","onChangeStart","showValueAtStart","showValueOnDrag","showValueOnSet","step","style","styleName","thumbColor","trackBackgroundColor","trackColor","trackHeight","value","width"],"methods":["getValue","setMaxValue","setMinValue","setStep","setThumbColor","setTrackBackgroundColor","setTrackColor","setValue","showValue","showValueClean"],"setters":{"maxValue":["setMaxValue",false],"minValue":["setMinValue",false],"step":["setStep",false],"thumbColor":["setThumbColor",false],"trackBackgroundColor":["setTrackBackgroundColor",false],"trackColor":["setTrackColor",false],"value":["setValue",false]},"darkStyle":"roundDark","defaults":{"styleName":"round"},"hasMinimal":true,"state":{"value":"value"},"stateDefaults":{"maxValue":100,"minValue":0,"value":0},"sync":["onChangeEnd"]},"SliderField":{"file":"comp/slider-field.js","params":["ariaLabel","editable","enabled","height","key","labelText","maxTicks","maxValue","minValue","onChange","onChangeEnd","precision","showTicks","step","style","styleName","unitText","value","valueFormat","width"],"methods":["decrease","focus","formatNumber","getValue","increase","refresh","setEnabled","setLabelText","setMaxValue","setMinValue","setPrecision","setRange","setShowTicks","setStep","setUnitText","setValue"],"setters":{"enabled":["setEnabled",false],"labelText":["setLabelText",false],"maxValue":["setMaxValue",false],"minValue":["setMinValue",false],"precision":["setPrecision",false],"showTicks":["setShowTicks",false],"step":["setStep",false],"unitText":["setUnitText",false],"value":["setValue",true]},"aliases":{"text":"labelText"},"darkStyle":"dark","hasMinimal":true,"state":{"maxValue":"maxValue","minValue":"minValue","value":"value"},"stateDefaults":{"maxValue":10,"minValue":0,"value":0},"sync":["onChange","onChangeEnd"]},"SmartButton":{"file":"comp/smart-button.js","params":["allowHtml","animated","ariaLabel","ask","enabled","height","iconFile","iconPosition","key","labelText","onBeforeClick","onClick","onWaitingEnd","ripple","style","styleName","tone","waiting","waitingType","width"],"methods":["cancelAsk","press","remove","setAnimated","setAsk","setEnabled","setIcon","setLabelText","setRipple","setStyle","setTone","setWaiting"],"setters":{"animated":["setAnimated",false],"ask":["setAsk",false],"enabled":["setEnabled",false],"labelText":["setLabelText",false],"ripple":["setRipple",false],"style":["setStyle",false],"tone":["setTone",false],"waiting":["setWaiting",false]},"aliases":{"icon":"iconFile","text":"labelText"},"darkStyle":"ozdenDark","defaults":{"styleName":"ozden"},"hasMinimal":true},"SmartTable":{"file":"comp/smart-table.js","params":["allTitlesText","allowHtml","canSelect","fillTestData","fitLineCount","highlightLine","highlightTitle","infoHeight","invertColor","itemDataList","itemHeight","itemLineCount","key","locale","noDataFoundAlert","onSelect","scrollBarParams","searchInputParams","searchKeyword","searchTitleIndex","searchTitleMenuParams","showCellTooltip","showSearchTitleSelect","sortByTitleIndex","sortDirection","style","styleName","titleDataList","titleHeight","wheelScroll"],"methods":["applyColumnHighlight","calcLastCellWidth","clearColumnHighlight","clearSelection","createItemCell","createItemLine","createItemLines","createLoading","createNoDataFoundLabel","createResizeEvent","createScrollEvents","createSortIcon","createTitleCell","createTitleLine","createToolbar","createVerticalScroll","filterAndSortData","generateTestData","getSelectedIndex","getTotalWidth","getVerticalScrollWidth","init","initScrollMetrics","refresh","refreshData","remove","resetSortIcons","scrollPage","selectItem","selectNextSearchTitle","setCanSelect","setFitLineCount","setHeight","setItemDataList","setItemHeight","setItemLineCount","setLocale","setScrollToTop","setSearchTitleIndex","setShowCellTooltip","setShowSearchTitleSelect","setState","setTitleCellWidth","setTitleDataList","setVerticalScrollEnabled","setWheelScroll","setWidth","showLoading","stretchLastCell","syncScrollPosition","updateInfoLabel","updateSearchTitleSelect","updateSortIcon"],"setters":{"canSelect":["setCanSelect",false],"fitLineCount":["setFitLineCount",false],"itemDataList":["setItemDataList",false],"itemHeight":["setItemHeight",false],"itemLineCount":["setItemLineCount",false],"locale":["setLocale",false],"searchTitleIndex":["setSearchTitleIndex",false],"showCellTooltip":["setShowCellTooltip",false],"showSearchTitleSelect":["setShowSearchTitleSelect",false],"titleDataList":["setTitleDataList",false],"wheelScroll":["setWheelScroll",false]},"darkStyle":"dark","hasMinimal":true,"sizeInStyle":true,"stateDefaults":{"rows":[]}},"SortableList":{"file":"comp/sortable-list.js","params":["ariaLabel","dragBy","emptyText","enabled","height","items","key","onChange","onDragEnd","onDragStart","onItemClick","onRemove","removable","rowGap","showButtons","showHandle","showNumbers","style","styleName","texts","useScrollBar","width"],"methods":["addItem","focusItem","getIndexByKey","getItems","getKeys","moveDown","moveItem","moveUp","refresh","remove","removeItem","setEnabled","setItems"],"setters":{"enabled":["setEnabled",false],"items":["setItems",false]},"darkStyle":"dark","state":{"order":"getKeys()"}},"SparkLineBox":{"file":"comp/spark-line-box.js","params":["allowHtml","animated","curve","height","iconFile","key","lineColor","maxPoints","maxValue","minValue","onClick","showArea","showLastDot","showMinMax","showTooltip","showTrend","style","titleText","trendText","valueFormat","valueText","values","width"],"methods":["addValue","clear","getLastValue","getValues","refresh","setIcon","setLineColor","setMaxPoints","setMaxValue","setMinValue","setTitleText","setTrendText","setValueText","setValues"],"setters":{"lineColor":["setLineColor",false],"maxPoints":["setMaxPoints",false],"maxValue":["setMaxValue",false],"minValue":["setMinValue",false],"titleText":["setTitleText",false],"trendText":["setTrendText",false],"valueText":["setValueText",false],"values":["setValues",false]}},"Splitter":{"file":"comp/splitter.js","params":["ariaLabel","direction","firstSize","height","key","keyStep","left","minFirst","minSecond","onChange","onChangeEnd","secondSize","style","styleName","top","width"],"methods":["getFirstSize","setAreaVisible","setFirstSize","setTheme"],"setters":{"firstSize":["setFirstSize",true]},"aliases":{"theme":"styleName"},"containerHint":"splitter.first { ... } and splitter.second { ... }","darkStyle":"dark","hasMinimal":true,"state":{"firstSizeNow":"getFirstSize()"},"stateDefaults":{"firstSizeNow":0},"sync":["onChangeEnd"]},"StatusBar":{"file":"comp/status-bar.js","params":["ariaLabel","busy","height","items","key","left","messageText","messageTone","style","styleName","width"],"methods":["getItem","setBusy","setItemText","setItemVisible","setItems","setMessageText","setTheme"],"setters":{"busy":["setBusy",false],"items":["setItems",false],"messageText":["setMessageText",false]},"aliases":{"message":"messageText","theme":"styleName","tone":"messageTone"},"darkStyle":"dark","defaults":{"shrink":0},"hasMinimal":true,"hasOwnPlace":true},"StepBar":{"file":"comp/step-bar.js","params":["ariaLabel","canGoBack","currentStep","height","key","left","onStepClick","showTitles","steps","style","styleName","top","width"],"methods":["getStep","next","previous","setStep","setSteps","setTheme"],"setters":{"steps":["setSteps",false]},"aliases":{"step":"currentStep","theme":"styleName"},"darkStyle":"dark","hasMinimal":true,"state":{"step":"currentStep"},"stateDefaults":{"step":0}},"Stepper":{"file":"comp/stepper.js","params":["ariaLabel","editable","enabled","height","holdToRepeat","key","layout","maxValue","minValue","onChange","onMaxReached","onMinReached","precision","step","style","styleName","unitText","value","valueFormat","width","wrap"],"methods":["decrease","focus","formatNumber","getValue","increase","refresh","setEnabled","setMaxValue","setMinValue","setPrecision","setRange","setStep","setUnitText","setValue"],"setters":{"enabled":["setEnabled",false],"maxValue":["setMaxValue",false],"minValue":["setMinValue",false],"precision":["setPrecision",false],"step":["setStep",false],"unitText":["setUnitText",false],"value":["setValue",true]},"darkStyle":"dark","formatParams":["valueFormat"],"hasMinimal":true,"state":{"value":"value"},"stateDefaults":{"maxValue":10,"minValue":0,"value":1},"sync":["onChange"]},"Tabs":{"file":"comp/tabs.js","params":["addButton","ariaLabel","barWidth","closable","enabled","fullWidth","height","key","onAdd","onChange","onClose","panelHeight","panels","scale","showArrows","style","styleName","tabs","value","variant","vertical","width"],"methods":["addTab","endPanel","focus","getActiveTab","getIndex","getPanel","getTab","getTabs","getValue","refresh","removeTab","setBadge","setCount","setEnabled","setPanelContent","setTabEnabled","setTabs","setValue","startPanel","updateTab"],"setters":{"enabled":["setEnabled",false],"tabs":["setTabs",true],"value":["setValue",true]},"containerHint":"tabs.panel(key) { ... }","darkStyle":"dark","defaults":{"panels":1,"width":"100%"},"hasMinimal":true,"state":{"previousValue":"previousValue","value":"value"},"stateDefaults":{"previousValue":null},"sync":["onChange"]},"TagInput":{"file":"comp/tag-input.js","params":["allowCustom","ariaLabel","emptyText","enabled","height","key","lowercase","maxLength","maxSuggestions","maxTags","messages","minLength","onAdd","onChange","onReject","onRemove","placeholder","separators","showSuggestionsOnFocus","style","styleName","suggestions","tags","validate","width"],"methods":["addTag","blur","clear","focus","getTags","removeTag","setEnabled","setMaxTags","setPlaceholder","setSuggestions","setTags"],"setters":{"enabled":["setEnabled",false],"maxTags":["setMaxTags",false],"placeholder":["setPlaceholder",false],"suggestions":["setSuggestions",false],"tags":["setTags",true]},"darkStyle":"dark","hasMinimal":true,"state":{"tags":"getTags()"},"sync":["onChange"]},"TapEffect":{"file":"comp/tap-effect.js","params":["color","duration","opacity","size","x","y","zIndex"],"methods":["remove"],"noFunction":true},"TextAreaField":{"file":"comp/text-area-field.js","params":["allowHtml","animatedWarningBall","backBorderBottomRound","backBorderColor","backBorderTopRound","backgroundColor","createInput","descriptionFontSize","descriptionText","descriptionTextColor","fieldPadding","focusBackBorderColor","focusBackgroundColor","focusLineColor","height","hoverBackBorderColor","hoverBackgroundColor","inputColorScheme","inputFontSize","inputHeight","inputTextColor","key","leftPadding","lengthText","lineColor","maxLength","minCharCount","onBlur","onChange","onFocus","placeholder","placeholderColor","required","requiredColor","requiredIconColor","requiredIconFile","requiredText","rightPadding","scrollBarStyle","selectStyle","showCount","showDescription","showLeftBox","showRightBox","showUnit","styleName","titleBold","titleFontSize","titleGap","titleLetterSpacing","titlePosition","titleText","titleTextColor","tooltipStyle","type","unitStyle","unitText","value","warningBallBorder","warningBallBorderColor","warningBallSize","warningBallType","warningBorderColor","warningColor","warningIconFile","warningIconSize","warningText","width"],"methods":["applyFormattedValueToInput","applyTextColors","blurFunc","checkIfInputIsRequiredAndEmpty","checkInputValue","focusFunc","getValue","inputFunc","isValid","paintFocus","setBackgroundColor","setDescriptionText","setFocusBackgroundColor","setFocusLineColor","setLineColor","setMaxLength","setPlaceholder","setRequired","setRequiredIcon","setRequiredText","setTitleText","setUnitText","setValue","setWarningColor","setWarningIcon","setWarningText","showWarningIfNotValid"],"setters":{"backgroundColor":["setBackgroundColor",false],"descriptionText":["setDescriptionText",false],"focusBackgroundColor":["setFocusBackgroundColor",false],"focusLineColor":["setFocusLineColor",false],"lineColor":["setLineColor",false],"maxLength":["setMaxLength",false],"placeholder":["setPlaceholder",false],"required":["setRequired",false],"requiredText":["setRequiredText",false],"titleText":["setTitleText",false],"unitText":["setUnitText",false],"value":["setValue",false],"warningColor":["setWarningColor",false],"warningText":["setWarningText",false]},"aliases":{"text":"value"},"darkStyle":"dark","defaults":{"maxLength":100000,"minCharCount":0,"placeholder":"","required":0,"showCount":0,"styleName":"light","titleText":"","warningText":""},"hasMinimal":true,"state":{"text":"getValue()"},"sync":["onChange"]},"TextField":{"file":"comp/text-field.js","params":["allowHtml","animatedWarningBall","backBorderBottomRound","backBorderColor","backBorderTopRound","backgroundColor","createInput","descriptionFontSize","descriptionText","descriptionTextColor","fieldPadding","focusBackBorderColor","focusBackgroundColor","focusLineColor","height","hoverBackBorderColor","hoverBackgroundColor","inputColorScheme","inputFontSize","inputHeight","inputTextColor","key","leftPadding","lineColor","maxLength","onBlur","onChange","onFocus","placeholder","placeholderColor","required","requiredColor","requiredIconColor","requiredIconFile","requiredText","rightPadding","selectStyle","showDescription","showLeftBox","showRightBox","showUnit","styleName","titleBold","titleFontSize","titleGap","titleLetterSpacing","titlePosition","titleText","titleTextColor","tooltipStyle","type","unitStyle","unitText","value","warningBallBorder","warningBallBorderColor","warningBallSize","warningBallType","warningBorderColor","warningColor","warningIconFile","warningIconSize","warningText","width"],"methods":["applyFormattedValueToInput","applyTextColors","blurFunc","checkIfInputIsRequiredAndEmpty","checkInputValue","focusFunc","getValue","inputFunc","isValid","paintFocus","setBackgroundColor","setDescriptionText","setFocusBackgroundColor","setFocusLineColor","setLineColor","setMaxLength","setPlaceholder","setRequired","setRequiredIcon","setRequiredText","setTitleText","setUnitText","setValue","setWarningColor","setWarningIcon","setWarningText","showWarningIfNotValid"],"setters":{"backgroundColor":["setBackgroundColor",false],"descriptionText":["setDescriptionText",false],"focusBackgroundColor":["setFocusBackgroundColor",false],"focusLineColor":["setFocusLineColor",false],"lineColor":["setLineColor",false],"maxLength":["setMaxLength",false],"placeholder":["setPlaceholder",false],"required":["setRequired",false],"requiredText":["setRequiredText",false],"titleText":["setTitleText",false],"unitText":["setUnitText",false],"value":["setValue",false],"warningColor":["setWarningColor",false],"warningText":["setWarningText",false]},"aliases":{"text":"value"},"darkStyle":"dark","defaults":{"maxLength":1000,"placeholder":"","required":0,"styleName":"light","titleText":""},"focusPart":"input","hasMinimal":true,"state":{"text":"getValue()"},"sync":["onChange"]},"TimeLine":{"file":"comp/time-line.js","params":["clickableItems","dotSize","enabled","itemGap","items","key","lineWidth","onClick","showLine","style","styleName","width"],"methods":["addItem","clear","getItems","refresh","setEnabled","setItems","setTheme"],"setters":{"enabled":["setEnabled",false],"items":["setItems",false]}},"TimePicker":{"file":"comp/time-picker.js","params":["closeOnSelect","enabled","format","height","inline","key","language","maxTime","minTime","minuteStep","onChange","onClose","onOpen","placeholder","showClearButton","showNowButton","style","styleName","time","useScrollBar","width"],"methods":["close","getTime","isOpen","open","refresh","setEnabled","setMaxTime","setMinTime","setMinuteStep","setTime","toggle"],"setters":{"enabled":["setEnabled",false],"maxTime":["setMaxTime",false],"minTime":["setMinTime",false],"minuteStep":["setMinuteStep",false],"time":["setTime",true]},"aliases":{"value":"time"},"darkStyle":"dark","hasMinimal":true,"state":{"value":"value"},"stateDefaults":{"value":""},"sync":["onChange"]},"TinySelect":{"file":"comp/tiny-select.js","params":["allowHtml","arrowBackgroundColor","arrowBorder","arrowBorderColor","arrowIconFile","arrowRound","arrowSize","border","color","emptyText","enabled","fontSize","height","invertIconColor","labelBold","labelTextColor","list","listBackgroundColor","listBorder","listBorderColor","listFontSize","listOverTextColor","listTextColor","onChange","paddingX","round","selectedIndex","titleText","width"],"methods":["getIndexByValue","getSelectedItem","remove","setColor","setEnabled","setList","setSelectedIndex","setTitleText"],"setters":{"color":["setColor",false],"enabled":["setEnabled",false],"list":["setList",false],"selectedIndex":["setSelectedIndex",true],"titleText":["setTitleText",false]}},"TinyTable":{"file":"comp/tiny-table.js","params":["allowHtml","bodyHeight","columns","height","onCellCreate","onRowClick","rows","style","styleName","width"],"methods":["setRows"],"setters":{"rows":["setRows",false]},"darkStyle":"dark"},"Toast":{"file":"comp/toast.js","params":["action","allowHtml","closable","duration","key","messageText","onClick","onClose","pauseOnHover","position","scale","showProgress","style","theme","titleText","type"],"methods":["bump","close","remove","update"],"noFunction":true},"Toggle":{"file":"comp/toggle.js","params":["animated","backgroundStyle","buttonStyle","focusRingColor","height","invertColor","key","markPlace","markStyle","offButtonScale","offMark","onChange","onMark","spacing","style","styleName","value","width"],"methods":["refresh","setAnimated","setBackgroundSelectedColor","setMarks","setSecondState","setState","setValue","switch"],"setters":{"animated":["setAnimated",false],"value":["setValue",true]},"darkStyle":"ozdenDark","dataParams":[],"hasMinimal":true,"state":{"value":"value"},"stateDefaults":{"value":0},"sync":["onChange"]},"ToolBar":{"file":"comp/tool-bar.js","params":["ariaLabel","enabled","height","items","key","left","moreText","onClick","shrink","style","styleName","top","width"],"methods":["clickItem","closeMenu","getCheckedKeys","isItemChecked","remove","setEnabled","setItemChecked","setItemEnabled","setItemHint","setItemText","setItems","setTheme"],"setters":{"enabled":["setEnabled",false],"items":["setItems",false]},"aliases":{"theme":"styleName"},"darkStyle":"dark","defaults":{"shrink":0},"hasMinimal":true,"state":{"checkedKeys":"getCheckedKeys()"},"stateDefaults":{"checkedKeys":[]},"sync":["onClick"]},"Tooltip":{"file":"comp/tooltip.js","params":["content","hintPosition","hintText","lbl_arrow","lbl_border","lbl_borderColor","lbl_color","lbl_fontSize","lbl_round","lbl_spaceX","lbl_spaceY","lbl_textColor","look","scale","styleName","target","trigger","visible"],"methods":["hideHint","remove","setHintText","setLbl_color"],"setters":{"hintText":["setHintText",false],"lbl_color":["setLbl_color",false]},"aliases":{"position":"hintPosition","text":"hintText"},"hasMinimal":true,"hasOwnPlace":true},"TreeView":{"file":"comp/tree-view.js","params":["ariaLabel","emptyText","enabled","height","items","key","onActivate","onHover","onLoadChildren","onSelect","onToggle","style","styleName","toggleOnDoubleClick","typeAhead","useScrollBar","value","width"],"methods":["addNode","collapse","collapseAll","expand","expandAll","focus","getItems","getNode","getNodeOfEvent","getParent","getPath","getRowElem","getSelectedNode","removeNode","reveal","setChildren","setEmptyText","setEnabled","setItems","setValue","toggle","updateNode"],"setters":{"emptyText":["setEmptyText",false],"enabled":["setEnabled",false],"items":["setItems",false],"value":["setValue",true]},"darkStyle":"dark","hasMinimal":true,"state":{"previousValue":"previousValue","value":"value"},"stateDefaults":{"previousValue":null,"value":null},"sync":["onSelect"]},"UrlField":{"file":"comp/url-field.js","params":["allowHtml","animatedWarningBall","backBorderBottomRound","backBorderColor","backBorderTopRound","backgroundColor","createInput","descriptionFontSize","descriptionText","descriptionTextColor","fieldPadding","focusBackBorderColor","focusBackgroundColor","focusLineColor","height","hoverBackBorderColor","hoverBackgroundColor","inputColorScheme","inputFontSize","inputHeight","inputTextColor","key","leftPadding","lineColor","maxLength","onBlur","onChange","onFocus","placeholder","placeholderColor","required","requiredColor","requiredIconColor","requiredIconFile","requiredText","rightPadding","selectStyle","showDescription","showLeftBox","showRightBox","showUnit","styleName","tinySelectParams","titleBold","titleFontSize","titleGap","titleLetterSpacing","titlePosition","titleText","titleTextColor","tooltipStyle","type","unitStyle","unitText","value","warningBallBorder","warningBallBorderColor","warningBallSize","warningBallType","warningBorderColor","warningColor","warningIconFile","warningIconSize","warningText","width"],"methods":["applyFormattedValueToInput","applyTextColors","blurFunc","checkIfInputIsRequiredAndEmpty","checkInputValue","focusFunc","getValue","inputFunc","isValid","paintFocus","setBackgroundColor","setDescriptionText","setFocusBackgroundColor","setFocusLineColor","setLineColor","setMaxLength","setPlaceholder","setRequired","setRequiredIcon","setRequiredText","setTitleText","setUnitText","setValue","setWarningColor","setWarningIcon","setWarningText","showWarningIfNotValid"],"setters":{"backgroundColor":["setBackgroundColor",false],"descriptionText":["setDescriptionText",false],"focusBackgroundColor":["setFocusBackgroundColor",false],"focusLineColor":["setFocusLineColor",false],"lineColor":["setLineColor",false],"maxLength":["setMaxLength",false],"placeholder":["setPlaceholder",false],"required":["setRequired",false],"requiredText":["setRequiredText",false],"titleText":["setTitleText",false],"unitText":["setUnitText",false],"value":["setValue",false],"warningColor":["setWarningColor",false],"warningText":["setWarningText",false]},"aliases":{"text":"value"},"darkStyle":"dark","defaults":{"maxLength":2048,"required":0,"styleName":"light","titleText":""},"focusPart":"input","hasMinimal":true,"state":{"text":"getValue()"},"sync":["onChange"]},"WebView":{"file":"comp/web-view.js","params":["allow","ariaLabel","autoHeight","emptyText","height","htmlText","interactive","key","lazy","loadTimeout","onClick","onError","onLoad","onMessage","onTimeout","referrerPolicy","sandbox","scale","showLoading","style","toolbar","url","width"],"methods":["clear","getDocument","getIframe","getWindow","hideError","isLoadingPage","load","loadHtml","postMessage","reload","remove","setAutoHeight","setInteractive","setScale","showError"],"setters":{"autoHeight":["setAutoHeight",false],"interactive":["setInteractive",false],"scale":["setScale",false]},"aliases":{"html":"htmlText"}}}}
|
data/lib/ozdenui/kit.rb
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Bismillah
|
|
2
|
+
#
|
|
3
|
+
# kit.rb - ozdenui v0.1 (OzdenUI: basic.js for Ruby)
|
|
4
|
+
# What the gem knows of every component of the kit: kit.json, written by tools/gen.rb from the copy of the kit in
|
|
5
|
+
# web/ and from tools/spec.json (by hand: the state a component sends back, the callbacks that carry it, short names,
|
|
6
|
+
# the dark looks, the areas that hold objects).
|
|
7
|
+
#
|
|
8
|
+
# Started Date: November 2026
|
|
9
|
+
# Webpage: https://bug7a.github.io/ozdenui-ruby/
|
|
10
|
+
#
|
|
11
|
+
# Copyright 2026 Bugra Ozden <bugra.ozden@gmail.com> (https://bug7a.github.io/)
|
|
12
|
+
# Licensed under the Apache License, Version 2.0
|
|
13
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
14
|
+
|
|
15
|
+
require "json"
|
|
16
|
+
|
|
17
|
+
module OzdenUI
|
|
18
|
+
# What the gem is made of. A program uses the methods of OzdenUI; these classes are behind them.
|
|
19
|
+
module Runtime
|
|
20
|
+
# @api private
|
|
21
|
+
class Spec
|
|
22
|
+
DEFAULT_DATA_PARAMS = %w[value options items rows columns tabs selectedKeys group itemDataList titleDataList].freeze
|
|
23
|
+
PLAIN_PARAMS = %w[styleName style key].freeze # every component takes them besides its own
|
|
24
|
+
|
|
25
|
+
attr_reader :name, :params, :methods, :setters, :defaults, :aliases, :state, :sync, :state_defaults, :whole_args,
|
|
26
|
+
:container, :container_hint, :focus_part, :dark_style
|
|
27
|
+
|
|
28
|
+
def initialize(name, entry)
|
|
29
|
+
@name = name
|
|
30
|
+
@params = entry["params"] || [] # the params of the component (its defaults in the kit)
|
|
31
|
+
@methods = entry["methods"] || []
|
|
32
|
+
@setters = entry["setters"] || {} # the params it has a method for: param -> [method, silent]
|
|
33
|
+
@defaults = entry["defaults"] || {} # params given unless the program gives them
|
|
34
|
+
@aliases = entry["aliases"] || {} # a short name of a param: text -> labelText
|
|
35
|
+
@state = entry["state"] || {} # the values the page sends back with every event: { "checked" => "checked" }
|
|
36
|
+
@sync = entry["sync"] || [] # callbacks always given to the page, so the state stays current
|
|
37
|
+
@state_defaults = entry["stateDefaults"] || {}
|
|
38
|
+
@data_params = entry["dataParams"] || DEFAULT_DATA_PARAMS # a true in them stays true (the others go as 1 / 0)
|
|
39
|
+
@format_params = entry["formatParams"] || []
|
|
40
|
+
@whole_args = entry["wholeArgs"] || {}
|
|
41
|
+
@container = entry["container"] # "self": objects go into it; a name: into that box inside it
|
|
42
|
+
@container_hint = entry["containerHint"]
|
|
43
|
+
@focus_part = entry["focusPart"] # the part that takes the keyboard (the input of a field)
|
|
44
|
+
@dark_style = entry["darkStyle"] # its package in a dark window
|
|
45
|
+
@flags = entry
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def own_place?
|
|
49
|
+
@flags["hasOwnPlace"] ? true : false # it knows its place without one (a StatusBar: at the bottom of its box)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def on_page?
|
|
53
|
+
@flags["onPage"] ? true : false # it is made on the page, not in the box it was written in (a LoadingScreen)
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def size_in_style?
|
|
57
|
+
@flags["sizeInStyle"] ? true : false # it reads its width and height from its style (SmartTable)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def minimal?
|
|
61
|
+
@flags["hasMinimal"] ? true : false
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
def theme_param?
|
|
65
|
+
@flags["themeParam"] ? true : false # it takes theme: "dark", not a package (GraphBox)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
def function?
|
|
69
|
+
!@flags["noFunction"]
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def data_param?(key)
|
|
73
|
+
@data_params.include?(key)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
def format_param?(key)
|
|
77
|
+
@format_params.include?(key)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Every name the component takes: its params, the values of a box (not text and html: it fills its box itself).
|
|
81
|
+
# nil: a component the kit copy does not describe.
|
|
82
|
+
def known_names
|
|
83
|
+
return nil if @params.empty?
|
|
84
|
+
@known_names ||= ((Kit::OBJECT_PROPS - %w[text html]) + @params + PLAIN_PARAMS + @aliases.keys).uniq
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# @api private
|
|
89
|
+
module Kit
|
|
90
|
+
DATA = JSON.parse(File.read(File.join(__dir__, "kit.json"), encoding: "UTF-8")).freeze
|
|
91
|
+
VERSION = DATA["kitVersion"]
|
|
92
|
+
GROUP_PARAMS = %w[flow align gap padding wrap justify hug fit stretch].freeze
|
|
93
|
+
# Values of an object that are not setters of basic.js but that the bridge or basic.js takes.
|
|
94
|
+
EXTRA_PROPS = %w[plainText grow shrink].freeze
|
|
95
|
+
OBJECT_PROPS = (DATA["objectProps"] + EXTRA_PROPS).uniq.freeze
|
|
96
|
+
GROUP_NAMES = (OBJECT_PROPS + GROUP_PARAMS).freeze
|
|
97
|
+
# A method every basic.js object has (not in the list of a component).
|
|
98
|
+
OBJECT_METHODS = %w[focus blur setMotion center centerBy aline props load select remove setFocusRing withMotion
|
|
99
|
+
dontMotion add scrollTo click].freeze
|
|
100
|
+
SPECS = DATA["components"].map { |name, entry| [name, Spec.new(name, entry)] }.to_h.freeze
|
|
101
|
+
|
|
102
|
+
def self.[](name)
|
|
103
|
+
SPECS[name]
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# The components a program makes with a method of their name: SmartButton(...), SelectBox(...)
|
|
107
|
+
def self.component_names
|
|
108
|
+
SPECS.select { |_name, spec| spec.function? }.keys
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# The version of basic.js in this gem.
|
|
114
|
+
KIT_VERSION = Runtime::Kit::VERSION
|
|
115
|
+
end
|