phlex-stimulus 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/.ruby-version +1 -0
- data/CHANGELOG.md +16 -0
- data/LICENSE.txt +21 -0
- data/README.md +341 -0
- data/Rakefile +12 -0
- data/lib/generators/phlex/stimulus/controller/USAGE +5 -0
- data/lib/generators/phlex/stimulus/controller/controller_generator.rb +49 -0
- data/lib/generators/phlex/stimulus/controller/templates/component.rb.erb +30 -0
- data/lib/generators/phlex/stimulus/controller/templates/controller.ts.erb +23 -0
- data/lib/generators/phlex/stimulus/generator_mixin.rb +21 -0
- data/lib/generators/phlex/stimulus/install/USAGE +5 -0
- data/lib/generators/phlex/stimulus/install/install_generator.rb +111 -0
- data/lib/generators/phlex/stimulus/install/templates/app/components/base.rb.erb +29 -0
- data/lib/generators/phlex/stimulus/install/templates/app/components/chain_controller.rb.erb +29 -0
- data/lib/generators/phlex/stimulus/install/templates/app/components/classlist_controller.rb.erb +30 -0
- data/lib/generators/phlex/stimulus/install/templates/app/components/controller.rb.erb +10 -0
- data/lib/generators/phlex/stimulus/install/templates/app/components/controller_chain.rb.erb +32 -0
- data/lib/generators/phlex/stimulus/install/templates/app/components/controller_template.rb.erb +24 -0
- data/lib/generators/phlex/stimulus/install/templates/app/components/log_controller.rb.erb +33 -0
- data/lib/generators/phlex/stimulus/install/templates/app/components/sleep_controller.rb.erb +30 -0
- data/lib/generators/phlex/stimulus/install/templates/app/components.rb.erb +7 -0
- data/lib/generators/phlex/stimulus/install/templates/app/javascript/application.ts.erb +5 -0
- data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/application.ts.erb +10 -0
- data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/chain_controller.ts.erb +32 -0
- data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/chainable_controller.ts.erb +44 -0
- data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/classlist_controller.ts.erb +30 -0
- data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/index.ts.erb +4 -0
- data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/log_controller.ts.erb +25 -0
- data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/sleep_controller.ts.erb +19 -0
- data/lib/generators/phlex/stimulus/install/templates/app/javascript/controllers/typed_controller.ts.erb +53 -0
- data/lib/generators/phlex/stimulus/install/templates/app/javascript/utils/misc.ts.erb +37 -0
- data/lib/generators/phlex/stimulus/install/templates/app/javascript/utils/template.ts.erb +11 -0
- data/lib/phlex/stimulus/components/base.rb +81 -0
- data/lib/phlex/stimulus/components/controller.rb +170 -0
- data/lib/phlex/stimulus/components.rb +9 -0
- data/lib/phlex/stimulus/version.rb +8 -0
- data/lib/phlex/stimulus.rb +15 -0
- data/sorbet/config +7 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/actionmailer.rbi +15 -0
- data/sorbet/rbi/annotations/actionpack.rbi +430 -0
- data/sorbet/rbi/annotations/actionview.rbi +75 -0
- data/sorbet/rbi/annotations/activejob.rbi +50 -0
- data/sorbet/rbi/annotations/activemodel.rbi +119 -0
- data/sorbet/rbi/annotations/activerecord.rbi +172 -0
- data/sorbet/rbi/annotations/activesupport.rbi +561 -0
- data/sorbet/rbi/annotations/globalid.rbi +30 -0
- data/sorbet/rbi/annotations/minitest.rbi +116 -0
- data/sorbet/rbi/annotations/railties.rbi +104 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/dsl/.gitattributes +1 -0
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +21 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/action_text-trix@2.1.19.rbi +9 -0
- data/sorbet/rbi/gems/actioncable@8.1.3.rbi +9 -0
- data/sorbet/rbi/gems/actionmailbox@8.1.3.rbi +9 -0
- data/sorbet/rbi/gems/actionmailer@8.1.3.rbi +9 -0
- data/sorbet/rbi/gems/actionpack@8.1.3.rbi +20478 -0
- data/sorbet/rbi/gems/actiontext@8.1.3.rbi +9 -0
- data/sorbet/rbi/gems/actionview@8.1.3.rbi +14722 -0
- data/sorbet/rbi/gems/activejob@8.1.3.rbi +9 -0
- data/sorbet/rbi/gems/activemodel@8.1.3.rbi +9 -0
- data/sorbet/rbi/gems/activerecord@8.1.3.rbi +9 -0
- data/sorbet/rbi/gems/activestorage@8.1.3.rbi +9 -0
- data/sorbet/rbi/gems/activesupport@8.1.3.rbi +20153 -0
- data/sorbet/rbi/gems/ast@2.4.3.rbi +550 -0
- data/sorbet/rbi/gems/base64@0.3.0.rbi +545 -0
- data/sorbet/rbi/gems/benchmark@0.5.0.rbi +621 -0
- data/sorbet/rbi/gems/booleans@0.1.3.rbi +31 -0
- data/sorbet/rbi/gems/builder@3.3.0.rbi +9 -0
- data/sorbet/rbi/gems/byebug@12.0.0.rbi +49 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.3.8.rbi +10656 -0
- data/sorbet/rbi/gems/connection_pool@3.0.2.rbi +9 -0
- data/sorbet/rbi/gems/crass@1.0.7.rbi +648 -0
- data/sorbet/rbi/gems/date@3.5.1.rbi +391 -0
- data/sorbet/rbi/gems/drb@2.2.3.rbi +9 -0
- data/sorbet/rbi/gems/erb@6.0.6.rbi +1600 -0
- data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
- data/sorbet/rbi/gems/globalid@1.4.0.rbi +9 -0
- data/sorbet/rbi/gems/i18n@1.15.2.rbi +2285 -0
- data/sorbet/rbi/gems/io-console@0.8.2.rbi +9 -0
- data/sorbet/rbi/gems/json@2.21.1.rbi +2289 -0
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +189 -0
- data/sorbet/rbi/gems/logger@1.7.0.rbi +896 -0
- data/sorbet/rbi/gems/loofah@2.25.2.rbi +1134 -0
- data/sorbet/rbi/gems/mail@2.9.1.rbi +9 -0
- data/sorbet/rbi/gems/marcel@1.2.1.rbi +9 -0
- data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +9 -0
- data/sorbet/rbi/gems/minitest@6.0.6.rbi +1482 -0
- data/sorbet/rbi/gems/net-imap@0.6.4.1.rbi +9 -0
- data/sorbet/rbi/gems/net-pop@0.1.2.rbi +9 -0
- data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +244 -0
- data/sorbet/rbi/gems/net-smtp@0.5.1.rbi +9 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +147 -0
- data/sorbet/rbi/gems/nio4r@2.7.5.rbi +9 -0
- data/sorbet/rbi/gems/nokogiri@1.19.4.rbi +8168 -0
- data/sorbet/rbi/gems/parallel@1.28.0.rbi +270 -0
- data/sorbet/rbi/gems/phlex-rails@2.4.0.rbi +1945 -0
- data/sorbet/rbi/gems/phlex@2.4.1.rbi +1413 -0
- data/sorbet/rbi/gems/pp@0.6.4.rbi +387 -0
- data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +455 -0
- data/sorbet/rbi/gems/prism@1.9.0.rbi +42226 -0
- data/sorbet/rbi/gems/racc@1.8.1.rbi +165 -0
- data/sorbet/rbi/gems/rack-session@2.1.2.rbi +756 -0
- data/sorbet/rbi/gems/rack-test@2.2.0.rbi +681 -0
- data/sorbet/rbi/gems/rack@3.2.6.rbi +4653 -0
- data/sorbet/rbi/gems/rackup@2.3.1.rbi +9 -0
- data/sorbet/rbi/gems/rails-dom-testing@2.3.0.rbi +517 -0
- data/sorbet/rbi/gems/rails-html-sanitizer@1.7.1.rbi +620 -0
- data/sorbet/rbi/gems/rails@8.1.3.rbi +9 -0
- data/sorbet/rbi/gems/railties@8.1.3.rbi +3507 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +362 -0
- data/sorbet/rbi/gems/rake@13.4.2.rbi +3130 -0
- data/sorbet/rbi/gems/rbi@0.4.0.rbi +5706 -0
- data/sorbet/rbi/gems/rbs@4.0.3.rbi +6908 -0
- data/sorbet/rbi/gems/refract@1.1.0.rbi +9 -0
- data/sorbet/rbi/gems/reline@0.6.3.rbi +2446 -0
- data/sorbet/rbi/gems/require-hooks@0.4.0.rbi +152 -0
- data/sorbet/rbi/gems/rexml@3.4.4.rbi +4905 -0
- data/sorbet/rbi/gems/rubocop-espago@1.3.0.rbi +9 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +988 -0
- data/sorbet/rbi/gems/rubydex@0.2.9.rbi +841 -0
- data/sorbet/rbi/gems/securerandom@0.4.1.rbi +75 -0
- data/sorbet/rbi/gems/shoulda-context@2.0.0.rbi +544 -0
- data/sorbet/rbi/gems/spoom@1.8.4.rbi +6738 -0
- data/sorbet/rbi/gems/tapioca@0.19.2.rbi +3599 -0
- data/sorbet/rbi/gems/thor@1.5.0.rbi +3870 -0
- data/sorbet/rbi/gems/timeout@0.6.1.rbi +200 -0
- data/sorbet/rbi/gems/tsort@0.2.0.rbi +389 -0
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5474 -0
- data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +130 -0
- data/sorbet/rbi/gems/unicode-emoji@4.2.0.rbi +332 -0
- data/sorbet/rbi/gems/uri@1.1.1.rbi +2402 -0
- data/sorbet/rbi/gems/useragent@0.16.11.rbi +9 -0
- data/sorbet/rbi/gems/websocket-driver@0.8.2.rbi +9 -0
- data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +9 -0
- data/sorbet/rbi/gems/zeitwerk@2.8.2.rbi +9 -0
- data/sorbet/rbi/shims/gems/parser.rbi +12 -0
- data/sorbet/rbi/shims/gems/rails.rbi +55 -0
- data/sorbet/rbi/shims/gems/refract.rbi +13 -0
- data/sorbet/rbi/shims/gems/shoulda-context.rbi +16 -0
- data/sorbet/tapioca/compilers/phlex_controller.rb +80 -0
- data/sorbet/tapioca/config.yml +26 -0
- data/sorbet/tapioca/extensions/load_gem.rb +1 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +266 -0
|
@@ -0,0 +1,1413 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
# DO NOT EDIT MANUALLY
|
|
4
|
+
# This is an autogenerated file for types exported from the `phlex` gem.
|
|
5
|
+
# Please instead update this file by running `bin/tapioca gem phlex`.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Object < ::BasicObject
|
|
9
|
+
include ::Booleans::KernelExtension
|
|
10
|
+
include ::Kernel
|
|
11
|
+
include ::PP::ObjectMixin
|
|
12
|
+
|
|
13
|
+
private
|
|
14
|
+
|
|
15
|
+
# pkg:gem/phlex#lib/phlex.rb:72
|
|
16
|
+
def 💪; end
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
# pkg:gem/phlex#lib/phlex.rb:7
|
|
20
|
+
module Phlex
|
|
21
|
+
class << self
|
|
22
|
+
# pkg:gem/phlex#lib/phlex.rb:32
|
|
23
|
+
def __expand_attribute_cache__(file_path); end
|
|
24
|
+
|
|
25
|
+
# Generate an HTML string using Phlex’ HTML DSL
|
|
26
|
+
#
|
|
27
|
+
# pkg:gem/phlex#lib/phlex.rb:40
|
|
28
|
+
def html(&block); end
|
|
29
|
+
|
|
30
|
+
# Generate an SVG string using Phlex’ SVG DSL
|
|
31
|
+
#
|
|
32
|
+
# pkg:gem/phlex#lib/phlex.rb:56
|
|
33
|
+
def svg(&block); end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# pkg:gem/phlex#lib/phlex.rb:28
|
|
38
|
+
Phlex::ATTRIBUTE_CACHE = T.let(T.unsafe(nil), Phlex::FIFO)
|
|
39
|
+
|
|
40
|
+
# pkg:gem/phlex#lib/phlex/errors/argument_error.rb:3
|
|
41
|
+
class Phlex::ArgumentError < ::ArgumentError
|
|
42
|
+
include ::Phlex::Error
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# pkg:gem/phlex#lib/phlex.rb:27
|
|
46
|
+
Phlex::CACHED_FILES = T.let(T.unsafe(nil), Set)
|
|
47
|
+
|
|
48
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:3
|
|
49
|
+
class Phlex::CSV
|
|
50
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:12
|
|
51
|
+
def initialize(collection); end
|
|
52
|
+
|
|
53
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:125
|
|
54
|
+
def around_row(*_arg0, **_arg1, &_arg2); end
|
|
55
|
+
|
|
56
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:21
|
|
57
|
+
def call(buffer = T.unsafe(nil), context: T.unsafe(nil), delimiter: T.unsafe(nil)); end
|
|
58
|
+
|
|
59
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:19
|
|
60
|
+
def collection; end
|
|
61
|
+
|
|
62
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:134
|
|
63
|
+
def content_type; end
|
|
64
|
+
|
|
65
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:138
|
|
66
|
+
def delimiter; end
|
|
67
|
+
|
|
68
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:130
|
|
69
|
+
def filename; end
|
|
70
|
+
|
|
71
|
+
private
|
|
72
|
+
|
|
73
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:165
|
|
74
|
+
def __escape__(buffer, value, escape_csv_injection:, strip_whitespace:, escape_regex:); end
|
|
75
|
+
|
|
76
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:142
|
|
77
|
+
def column(header = T.unsafe(nil), value); end
|
|
78
|
+
|
|
79
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:146
|
|
80
|
+
def each_item(&_arg0); end
|
|
81
|
+
|
|
82
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:234
|
|
83
|
+
def ensure_escape_csv_injection_configured!; end
|
|
84
|
+
|
|
85
|
+
# Override and set to `false` to disable CSV injection escapes or `true` to enable.
|
|
86
|
+
#
|
|
87
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:161
|
|
88
|
+
def escape_csv_injection?; end
|
|
89
|
+
|
|
90
|
+
# Handle legacy `view_template` method
|
|
91
|
+
#
|
|
92
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:224
|
|
93
|
+
def method_missing(method_name, *_arg1, **_arg2, &_arg3); end
|
|
94
|
+
|
|
95
|
+
# Override and set to `false` to disable rendering headers.
|
|
96
|
+
#
|
|
97
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:151
|
|
98
|
+
def render_headers?; end
|
|
99
|
+
|
|
100
|
+
# Handle legacy `view_template` method
|
|
101
|
+
#
|
|
102
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:219
|
|
103
|
+
def respond_to_missing?(method_name, include_private); end
|
|
104
|
+
|
|
105
|
+
# Override and set to `true` to strip leading and trailing whitespace from values.
|
|
106
|
+
#
|
|
107
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:156
|
|
108
|
+
def trim_whitespace?; end
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:4
|
|
112
|
+
Phlex::CSV::FORMULA_PREFIXES_MAP = T.let(T.unsafe(nil), Array)
|
|
113
|
+
|
|
114
|
+
# pkg:gem/phlex#lib/phlex/csv.rb:10
|
|
115
|
+
Phlex::CSV::UNDEFINED = T.let(T.unsafe(nil), Object)
|
|
116
|
+
|
|
117
|
+
# pkg:gem/phlex#lib/phlex/compiler.rb:6
|
|
118
|
+
module Phlex::Compiler
|
|
119
|
+
class << self
|
|
120
|
+
# pkg:gem/phlex#lib/phlex/compiler.rb:15
|
|
121
|
+
def compile(component); end
|
|
122
|
+
|
|
123
|
+
# pkg:gem/phlex#lib/phlex/compiler.rb:20
|
|
124
|
+
def compile_file(path); end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# pkg:gem/phlex#lib/phlex/compiler/class_compiler.rb:3
|
|
129
|
+
class Phlex::Compiler::ClassCompiler < ::Refract::Visitor
|
|
130
|
+
# pkg:gem/phlex#lib/phlex/compiler/class_compiler.rb:4
|
|
131
|
+
def initialize(component, path); end
|
|
132
|
+
|
|
133
|
+
# pkg:gem/phlex#lib/phlex/compiler/class_compiler.rb:11
|
|
134
|
+
def compile(node); end
|
|
135
|
+
|
|
136
|
+
# pkg:gem/phlex#lib/phlex/compiler/class_compiler.rb:44
|
|
137
|
+
def visit_block_node(node); end
|
|
138
|
+
|
|
139
|
+
# pkg:gem/phlex#lib/phlex/compiler/class_compiler.rb:36
|
|
140
|
+
def visit_class_node(node); end
|
|
141
|
+
|
|
142
|
+
# pkg:gem/phlex#lib/phlex/compiler/class_compiler.rb:16
|
|
143
|
+
def visit_def_node(node); end
|
|
144
|
+
|
|
145
|
+
# pkg:gem/phlex#lib/phlex/compiler/class_compiler.rb:40
|
|
146
|
+
def visit_module_node(node); end
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# pkg:gem/phlex#lib/phlex/compiler/compactor.rb:3
|
|
150
|
+
class Phlex::Compiler::Compactor < ::Refract::MutationVisitor
|
|
151
|
+
# pkg:gem/phlex#lib/phlex/compiler/compactor.rb:4
|
|
152
|
+
def visit_statements_node(node); end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# pkg:gem/phlex#lib/phlex/compiler.rb:10
|
|
156
|
+
class Phlex::Compiler::Concat < ::Data
|
|
157
|
+
# pkg:gem/phlex#lib/phlex/compiler.rb:12
|
|
158
|
+
def accept(visitor); end
|
|
159
|
+
|
|
160
|
+
# pkg:gem/phlex#lib/phlex/compiler.rb:10
|
|
161
|
+
def node; end
|
|
162
|
+
|
|
163
|
+
# pkg:gem/phlex#lib/phlex/compiler.rb:11
|
|
164
|
+
def start_line; end
|
|
165
|
+
|
|
166
|
+
class << self
|
|
167
|
+
# pkg:gem/phlex#lib/phlex/compiler.rb:10
|
|
168
|
+
def [](*_arg0); end
|
|
169
|
+
|
|
170
|
+
# pkg:gem/phlex#lib/phlex/compiler.rb:10
|
|
171
|
+
def inspect; end
|
|
172
|
+
|
|
173
|
+
# pkg:gem/phlex#lib/phlex/compiler.rb:10
|
|
174
|
+
def members; end
|
|
175
|
+
|
|
176
|
+
# pkg:gem/phlex#lib/phlex/compiler.rb:10
|
|
177
|
+
def new(*_arg0); end
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# pkg:gem/phlex#lib/phlex/compiler.rb:8
|
|
182
|
+
class Phlex::Compiler::Error < ::StandardError; end
|
|
183
|
+
|
|
184
|
+
# pkg:gem/phlex#lib/phlex/compiler/file_compiler.rb:3
|
|
185
|
+
class Phlex::Compiler::FileCompiler < ::Refract::Visitor
|
|
186
|
+
# pkg:gem/phlex#lib/phlex/compiler/file_compiler.rb:6
|
|
187
|
+
def initialize(path); end
|
|
188
|
+
|
|
189
|
+
# pkg:gem/phlex#lib/phlex/compiler/file_compiler.rb:13
|
|
190
|
+
def compile(node); end
|
|
191
|
+
|
|
192
|
+
# pkg:gem/phlex#lib/phlex/compiler/file_compiler.rb:49
|
|
193
|
+
def visit_block_node(node); end
|
|
194
|
+
|
|
195
|
+
# pkg:gem/phlex#lib/phlex/compiler/file_compiler.rb:24
|
|
196
|
+
def visit_class_node(node); end
|
|
197
|
+
|
|
198
|
+
# pkg:gem/phlex#lib/phlex/compiler/file_compiler.rb:45
|
|
199
|
+
def visit_def_node(node); end
|
|
200
|
+
|
|
201
|
+
# pkg:gem/phlex#lib/phlex/compiler/file_compiler.rb:18
|
|
202
|
+
def visit_module_node(node); end
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# pkg:gem/phlex#lib/phlex/compiler/file_compiler.rb:4
|
|
206
|
+
class Phlex::Compiler::FileCompiler::Result < ::Data
|
|
207
|
+
# pkg:gem/phlex#lib/phlex/compiler/file_compiler.rb:4
|
|
208
|
+
def compiled_snippets; end
|
|
209
|
+
|
|
210
|
+
# pkg:gem/phlex#lib/phlex/compiler/file_compiler.rb:4
|
|
211
|
+
def namespace; end
|
|
212
|
+
|
|
213
|
+
class << self
|
|
214
|
+
# pkg:gem/phlex#lib/phlex/compiler/file_compiler.rb:4
|
|
215
|
+
def [](*_arg0); end
|
|
216
|
+
|
|
217
|
+
# pkg:gem/phlex#lib/phlex/compiler/file_compiler.rb:4
|
|
218
|
+
def inspect; end
|
|
219
|
+
|
|
220
|
+
# pkg:gem/phlex#lib/phlex/compiler/file_compiler.rb:4
|
|
221
|
+
def members; end
|
|
222
|
+
|
|
223
|
+
# pkg:gem/phlex#lib/phlex/compiler/file_compiler.rb:4
|
|
224
|
+
def new(*_arg0); end
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# pkg:gem/phlex#lib/phlex/compiler.rb:7
|
|
229
|
+
Phlex::Compiler::MAP = T.let(T.unsafe(nil), Hash)
|
|
230
|
+
|
|
231
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:6
|
|
232
|
+
class Phlex::Compiler::MethodCompiler < ::Refract::MutationVisitor
|
|
233
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:7
|
|
234
|
+
def initialize(component); end
|
|
235
|
+
|
|
236
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:14
|
|
237
|
+
def compile(node); end
|
|
238
|
+
|
|
239
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:218
|
|
240
|
+
def compile_block_body_node(node); end
|
|
241
|
+
|
|
242
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:339
|
|
243
|
+
def compile_comment_helper(node); end
|
|
244
|
+
|
|
245
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:282
|
|
246
|
+
def compile_doctype_helper(node); end
|
|
247
|
+
|
|
248
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:298
|
|
249
|
+
def compile_fragment_helper(node); end
|
|
250
|
+
|
|
251
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:306
|
|
252
|
+
def compile_fragment_helper_block(node); end
|
|
253
|
+
|
|
254
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:247
|
|
255
|
+
def compile_interpolated_string_node(node); end
|
|
256
|
+
|
|
257
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:161
|
|
258
|
+
def compile_phlex_attributes(node); end
|
|
259
|
+
|
|
260
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:192
|
|
261
|
+
def compile_phlex_block(node); end
|
|
262
|
+
|
|
263
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:288
|
|
264
|
+
def compile_plain_helper(node); end
|
|
265
|
+
|
|
266
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:351
|
|
267
|
+
def compile_raw_helper(node); end
|
|
268
|
+
|
|
269
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:123
|
|
270
|
+
def compile_standard_element(node, tag); end
|
|
271
|
+
|
|
272
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:145
|
|
273
|
+
def compile_void_element(node, tag); end
|
|
274
|
+
|
|
275
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:266
|
|
276
|
+
def compile_whitespace_helper(node); end
|
|
277
|
+
|
|
278
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:111
|
|
279
|
+
def visit_block_node(node); end
|
|
280
|
+
|
|
281
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:87
|
|
282
|
+
def visit_call_node(node); end
|
|
283
|
+
|
|
284
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:26
|
|
285
|
+
def visit_class_node(node); end
|
|
286
|
+
|
|
287
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:34
|
|
288
|
+
def visit_def_node(node); end
|
|
289
|
+
|
|
290
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:30
|
|
291
|
+
def visit_module_node(node); end
|
|
292
|
+
|
|
293
|
+
private
|
|
294
|
+
|
|
295
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:401
|
|
296
|
+
def buffer(node); end
|
|
297
|
+
|
|
298
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:530
|
|
299
|
+
def buffer_local; end
|
|
300
|
+
|
|
301
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:502
|
|
302
|
+
def comment_helper?(node); end
|
|
303
|
+
|
|
304
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:490
|
|
305
|
+
def doctype_helper?(node); end
|
|
306
|
+
|
|
307
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:498
|
|
308
|
+
def fragment_helper?(node); end
|
|
309
|
+
|
|
310
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:371
|
|
311
|
+
def interpolate(statements); end
|
|
312
|
+
|
|
313
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:417
|
|
314
|
+
def output_block?(node); end
|
|
315
|
+
|
|
316
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:511
|
|
317
|
+
def own_method_without_scope?(node); end
|
|
318
|
+
|
|
319
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:356
|
|
320
|
+
def plain(value); end
|
|
321
|
+
|
|
322
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:494
|
|
323
|
+
def plain_helper?(node); end
|
|
324
|
+
|
|
325
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:361
|
|
326
|
+
def raw(value); end
|
|
327
|
+
|
|
328
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:506
|
|
329
|
+
def raw_helper?(node); end
|
|
330
|
+
|
|
331
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:548
|
|
332
|
+
def self_local; end
|
|
333
|
+
|
|
334
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:561
|
|
335
|
+
def should_render_local; end
|
|
336
|
+
|
|
337
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:434
|
|
338
|
+
def standard_element?(node); end
|
|
339
|
+
|
|
340
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:515
|
|
341
|
+
def state_local; end
|
|
342
|
+
|
|
343
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:454
|
|
344
|
+
def static_attribute_value_literal?(value); end
|
|
345
|
+
|
|
346
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:429
|
|
347
|
+
def static_content_block?(node); end
|
|
348
|
+
|
|
349
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:475
|
|
350
|
+
def static_token_value_literal?(value); end
|
|
351
|
+
|
|
352
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:444
|
|
353
|
+
def void_element?(node); end
|
|
354
|
+
|
|
355
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:486
|
|
356
|
+
def whitespace_helper?(node); end
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
# pkg:gem/phlex#lib/phlex/compiler/method_compiler.rb:510
|
|
360
|
+
Phlex::Compiler::MethodCompiler::ALLOWED_OWNERS = T.let(T.unsafe(nil), Set)
|
|
361
|
+
|
|
362
|
+
# pkg:gem/phlex#lib/phlex.rb:26
|
|
363
|
+
Phlex::DEPLOYED_AT = T.let(T.unsafe(nil), Integer)
|
|
364
|
+
|
|
365
|
+
# pkg:gem/phlex#lib/phlex/errors/double_render_error.rb:3
|
|
366
|
+
class Phlex::DoubleRenderError < ::RuntimeError
|
|
367
|
+
include ::Phlex::Error
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
# @api private
|
|
371
|
+
#
|
|
372
|
+
# pkg:gem/phlex#lib/phlex/error.rb:4
|
|
373
|
+
module Phlex::Error; end
|
|
374
|
+
|
|
375
|
+
# pkg:gem/phlex#lib/phlex.rb:24
|
|
376
|
+
Phlex::Escape = ERB::Escape
|
|
377
|
+
|
|
378
|
+
# @api private
|
|
379
|
+
#
|
|
380
|
+
# pkg:gem/phlex#lib/phlex/fifo.rb:4
|
|
381
|
+
class Phlex::FIFO
|
|
382
|
+
# pkg:gem/phlex#lib/phlex/fifo.rb:5
|
|
383
|
+
def initialize(max_bytesize: T.unsafe(nil), max_value_bytesize: T.unsafe(nil)); end
|
|
384
|
+
|
|
385
|
+
# pkg:gem/phlex#lib/phlex/fifo.rb:21
|
|
386
|
+
def [](key); end
|
|
387
|
+
|
|
388
|
+
# pkg:gem/phlex#lib/phlex/fifo.rb:26
|
|
389
|
+
def []=(key, value); end
|
|
390
|
+
|
|
391
|
+
# pkg:gem/phlex#lib/phlex/fifo.rb:13
|
|
392
|
+
def bytesize; end
|
|
393
|
+
|
|
394
|
+
# pkg:gem/phlex#lib/phlex/fifo.rb:49
|
|
395
|
+
def clear; end
|
|
396
|
+
|
|
397
|
+
# pkg:gem/phlex#lib/phlex/fifo.rb:15
|
|
398
|
+
def expand(bytes); end
|
|
399
|
+
|
|
400
|
+
# pkg:gem/phlex#lib/phlex/fifo.rb:13
|
|
401
|
+
def max_bytesize; end
|
|
402
|
+
|
|
403
|
+
# pkg:gem/phlex#lib/phlex/fifo.rb:45
|
|
404
|
+
def size; end
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
# An extremely fast in-memory cache store that evicts keys on a first-in-first-out basis.
|
|
408
|
+
#
|
|
409
|
+
# pkg:gem/phlex#lib/phlex/fifo_cache_store.rb:4
|
|
410
|
+
class Phlex::FIFOCacheStore
|
|
411
|
+
# pkg:gem/phlex#lib/phlex/fifo_cache_store.rb:5
|
|
412
|
+
def initialize(max_bytesize: T.unsafe(nil)); end
|
|
413
|
+
|
|
414
|
+
# pkg:gem/phlex#lib/phlex/fifo_cache_store.rb:27
|
|
415
|
+
def clear; end
|
|
416
|
+
|
|
417
|
+
# pkg:gem/phlex#lib/phlex/fifo_cache_store.rb:12
|
|
418
|
+
def fetch(key); end
|
|
419
|
+
|
|
420
|
+
private
|
|
421
|
+
|
|
422
|
+
# pkg:gem/phlex#lib/phlex/fifo_cache_store.rb:31
|
|
423
|
+
def map_key(value); end
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
# pkg:gem/phlex#lib/phlex/html.rb:3
|
|
427
|
+
class Phlex::HTML < ::Phlex::SGML
|
|
428
|
+
include ::Phlex::HTML::StandardElements
|
|
429
|
+
include ::Phlex::HTML::VoidElements
|
|
430
|
+
extend ::Phlex::SGML::Elements
|
|
431
|
+
|
|
432
|
+
# Returns the string "text/html"
|
|
433
|
+
#
|
|
434
|
+
# pkg:gem/phlex#lib/phlex/html.rb:34
|
|
435
|
+
def content_type; end
|
|
436
|
+
|
|
437
|
+
# Output an HTML doctype.
|
|
438
|
+
#
|
|
439
|
+
# pkg:gem/phlex#lib/phlex/html.rb:8
|
|
440
|
+
def doctype; end
|
|
441
|
+
|
|
442
|
+
# Override to provide a filename for the HTML file
|
|
443
|
+
#
|
|
444
|
+
# pkg:gem/phlex#lib/phlex/html.rb:29
|
|
445
|
+
def filename; end
|
|
446
|
+
|
|
447
|
+
# Outputs an `<svg>` tag.
|
|
448
|
+
#
|
|
449
|
+
# [MDN Docs](https://developer.mozilla.org/docs/Web/SVG/Element/svg)
|
|
450
|
+
# [Spec](https://html.spec.whatwg.org/#the-svg-element)
|
|
451
|
+
#
|
|
452
|
+
# pkg:gem/phlex#lib/phlex/html.rb:20
|
|
453
|
+
def svg(*_arg0, **_arg1, &_arg2); end
|
|
454
|
+
|
|
455
|
+
# Output an HTML tag dynamically, e.g:
|
|
456
|
+
#
|
|
457
|
+
# ```ruby
|
|
458
|
+
# @tag_name = :h1
|
|
459
|
+
# tag(@tag_name, class: "title")
|
|
460
|
+
# ```
|
|
461
|
+
#
|
|
462
|
+
# pkg:gem/phlex#lib/phlex/html.rb:44
|
|
463
|
+
def tag(name, **attributes, &_arg2); end
|
|
464
|
+
end
|
|
465
|
+
|
|
466
|
+
# Standard HTML elements accept content and always have a closing tag.
|
|
467
|
+
#
|
|
468
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:4
|
|
469
|
+
module Phlex::HTML::StandardElements
|
|
470
|
+
extend ::Phlex::SGML::Elements
|
|
471
|
+
|
|
472
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:11
|
|
473
|
+
def a(**attributes); end
|
|
474
|
+
|
|
475
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:17
|
|
476
|
+
def abbr(**attributes); end
|
|
477
|
+
|
|
478
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:23
|
|
479
|
+
def address(**attributes); end
|
|
480
|
+
|
|
481
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:29
|
|
482
|
+
def article(**attributes); end
|
|
483
|
+
|
|
484
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:35
|
|
485
|
+
def aside(**attributes); end
|
|
486
|
+
|
|
487
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:42
|
|
488
|
+
def audio(**attributes); end
|
|
489
|
+
|
|
490
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:48
|
|
491
|
+
def b(**attributes); end
|
|
492
|
+
|
|
493
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:54
|
|
494
|
+
def bdi(**attributes); end
|
|
495
|
+
|
|
496
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:60
|
|
497
|
+
def bdo(**attributes); end
|
|
498
|
+
|
|
499
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:66
|
|
500
|
+
def blockquote(**attributes); end
|
|
501
|
+
|
|
502
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:72
|
|
503
|
+
def body(**attributes); end
|
|
504
|
+
|
|
505
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:79
|
|
506
|
+
def button(**attributes); end
|
|
507
|
+
|
|
508
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:85
|
|
509
|
+
def canvas(**attributes); end
|
|
510
|
+
|
|
511
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:91
|
|
512
|
+
def caption(**attributes); end
|
|
513
|
+
|
|
514
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:97
|
|
515
|
+
def cite(**attributes); end
|
|
516
|
+
|
|
517
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:103
|
|
518
|
+
def code(**attributes); end
|
|
519
|
+
|
|
520
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:109
|
|
521
|
+
def colgroup(**attributes); end
|
|
522
|
+
|
|
523
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:115
|
|
524
|
+
def data(**attributes); end
|
|
525
|
+
|
|
526
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:121
|
|
527
|
+
def datalist(**attributes); end
|
|
528
|
+
|
|
529
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:127
|
|
530
|
+
def dd(**attributes); end
|
|
531
|
+
|
|
532
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:133
|
|
533
|
+
def del(**attributes); end
|
|
534
|
+
|
|
535
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:140
|
|
536
|
+
def details(**attributes); end
|
|
537
|
+
|
|
538
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:146
|
|
539
|
+
def dfn(**attributes); end
|
|
540
|
+
|
|
541
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:153
|
|
542
|
+
def dialog(**attributes); end
|
|
543
|
+
|
|
544
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:159
|
|
545
|
+
def div(**attributes); end
|
|
546
|
+
|
|
547
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:165
|
|
548
|
+
def dl(**attributes); end
|
|
549
|
+
|
|
550
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:171
|
|
551
|
+
def dt(**attributes); end
|
|
552
|
+
|
|
553
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:177
|
|
554
|
+
def em(**attributes); end
|
|
555
|
+
|
|
556
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:183
|
|
557
|
+
def fencedframe(**attributes); end
|
|
558
|
+
|
|
559
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:189
|
|
560
|
+
def fieldset(**attributes); end
|
|
561
|
+
|
|
562
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:195
|
|
563
|
+
def figcaption(**attributes); end
|
|
564
|
+
|
|
565
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:201
|
|
566
|
+
def figure(**attributes); end
|
|
567
|
+
|
|
568
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:207
|
|
569
|
+
def footer(**attributes); end
|
|
570
|
+
|
|
571
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:213
|
|
572
|
+
def form(**attributes); end
|
|
573
|
+
|
|
574
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:219
|
|
575
|
+
def h1(**attributes); end
|
|
576
|
+
|
|
577
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:225
|
|
578
|
+
def h2(**attributes); end
|
|
579
|
+
|
|
580
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:231
|
|
581
|
+
def h3(**attributes); end
|
|
582
|
+
|
|
583
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:237
|
|
584
|
+
def h4(**attributes); end
|
|
585
|
+
|
|
586
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:243
|
|
587
|
+
def h5(**attributes); end
|
|
588
|
+
|
|
589
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:249
|
|
590
|
+
def h6(**attributes); end
|
|
591
|
+
|
|
592
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:255
|
|
593
|
+
def head(**attributes); end
|
|
594
|
+
|
|
595
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:261
|
|
596
|
+
def header(**attributes); end
|
|
597
|
+
|
|
598
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:267
|
|
599
|
+
def hgroup(**attributes); end
|
|
600
|
+
|
|
601
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:273
|
|
602
|
+
def html(**attributes); end
|
|
603
|
+
|
|
604
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:279
|
|
605
|
+
def i(**attributes); end
|
|
606
|
+
|
|
607
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:285
|
|
608
|
+
def iframe(**attributes); end
|
|
609
|
+
|
|
610
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:291
|
|
611
|
+
def ins(**attributes); end
|
|
612
|
+
|
|
613
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:297
|
|
614
|
+
def kbd(**attributes); end
|
|
615
|
+
|
|
616
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:303
|
|
617
|
+
def label(**attributes); end
|
|
618
|
+
|
|
619
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:309
|
|
620
|
+
def legend(**attributes); end
|
|
621
|
+
|
|
622
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:315
|
|
623
|
+
def li(**attributes); end
|
|
624
|
+
|
|
625
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:321
|
|
626
|
+
def main(**attributes); end
|
|
627
|
+
|
|
628
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:327
|
|
629
|
+
def map(**attributes); end
|
|
630
|
+
|
|
631
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:333
|
|
632
|
+
def mark(**attributes); end
|
|
633
|
+
|
|
634
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:339
|
|
635
|
+
def menu(**attributes); end
|
|
636
|
+
|
|
637
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:345
|
|
638
|
+
def meter(**attributes); end
|
|
639
|
+
|
|
640
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:351
|
|
641
|
+
def nav(**attributes); end
|
|
642
|
+
|
|
643
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:357
|
|
644
|
+
def noscript(**attributes); end
|
|
645
|
+
|
|
646
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:363
|
|
647
|
+
def object(**attributes); end
|
|
648
|
+
|
|
649
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:369
|
|
650
|
+
def ol(**attributes); end
|
|
651
|
+
|
|
652
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:375
|
|
653
|
+
def optgroup(**attributes); end
|
|
654
|
+
|
|
655
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:381
|
|
656
|
+
def option(**attributes); end
|
|
657
|
+
|
|
658
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:387
|
|
659
|
+
def output(**attributes); end
|
|
660
|
+
|
|
661
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:393
|
|
662
|
+
def p(**attributes); end
|
|
663
|
+
|
|
664
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:400
|
|
665
|
+
def picture(**attributes); end
|
|
666
|
+
|
|
667
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:406
|
|
668
|
+
def pre(**attributes); end
|
|
669
|
+
|
|
670
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:412
|
|
671
|
+
def progress(**attributes); end
|
|
672
|
+
|
|
673
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:418
|
|
674
|
+
def q(**attributes); end
|
|
675
|
+
|
|
676
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:424
|
|
677
|
+
def rp(**attributes); end
|
|
678
|
+
|
|
679
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:430
|
|
680
|
+
def rt(**attributes); end
|
|
681
|
+
|
|
682
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:436
|
|
683
|
+
def ruby(**attributes); end
|
|
684
|
+
|
|
685
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:442
|
|
686
|
+
def s(**attributes); end
|
|
687
|
+
|
|
688
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:448
|
|
689
|
+
def samp(**attributes); end
|
|
690
|
+
|
|
691
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:454
|
|
692
|
+
def script(**attributes); end
|
|
693
|
+
|
|
694
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:461
|
|
695
|
+
def search(**attributes); end
|
|
696
|
+
|
|
697
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:467
|
|
698
|
+
def section(**attributes); end
|
|
699
|
+
|
|
700
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:473
|
|
701
|
+
def select(**attributes); end
|
|
702
|
+
|
|
703
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:480
|
|
704
|
+
def selectedcontent(**attributes); end
|
|
705
|
+
|
|
706
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:486
|
|
707
|
+
def slot(**attributes); end
|
|
708
|
+
|
|
709
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:492
|
|
710
|
+
def small(**attributes); end
|
|
711
|
+
|
|
712
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:498
|
|
713
|
+
def span(**attributes); end
|
|
714
|
+
|
|
715
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:504
|
|
716
|
+
def strong(**attributes); end
|
|
717
|
+
|
|
718
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:510
|
|
719
|
+
def style(**attributes); end
|
|
720
|
+
|
|
721
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:516
|
|
722
|
+
def sub(**attributes); end
|
|
723
|
+
|
|
724
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:523
|
|
725
|
+
def summary(**attributes); end
|
|
726
|
+
|
|
727
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:529
|
|
728
|
+
def sup(**attributes); end
|
|
729
|
+
|
|
730
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:535
|
|
731
|
+
def svg(**attributes); end
|
|
732
|
+
|
|
733
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:541
|
|
734
|
+
def table(**attributes); end
|
|
735
|
+
|
|
736
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:547
|
|
737
|
+
def tbody(**attributes); end
|
|
738
|
+
|
|
739
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:553
|
|
740
|
+
def td(**attributes); end
|
|
741
|
+
|
|
742
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:559
|
|
743
|
+
def template(**attributes); end
|
|
744
|
+
|
|
745
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:565
|
|
746
|
+
def textarea(**attributes); end
|
|
747
|
+
|
|
748
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:571
|
|
749
|
+
def tfoot(**attributes); end
|
|
750
|
+
|
|
751
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:577
|
|
752
|
+
def th(**attributes); end
|
|
753
|
+
|
|
754
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:583
|
|
755
|
+
def thead(**attributes); end
|
|
756
|
+
|
|
757
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:589
|
|
758
|
+
def time(**attributes); end
|
|
759
|
+
|
|
760
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:595
|
|
761
|
+
def title(**attributes); end
|
|
762
|
+
|
|
763
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:601
|
|
764
|
+
def tr(**attributes); end
|
|
765
|
+
|
|
766
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:607
|
|
767
|
+
def u(**attributes); end
|
|
768
|
+
|
|
769
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:613
|
|
770
|
+
def ul(**attributes); end
|
|
771
|
+
|
|
772
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:619
|
|
773
|
+
def var(**attributes); end
|
|
774
|
+
|
|
775
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:626
|
|
776
|
+
def video(**attributes); end
|
|
777
|
+
|
|
778
|
+
# pkg:gem/phlex#lib/phlex/html/standard_elements.rb:632
|
|
779
|
+
def wbr(**attributes); end
|
|
780
|
+
end
|
|
781
|
+
|
|
782
|
+
# Void HTML elements don't accept content and never have a closing tag.
|
|
783
|
+
#
|
|
784
|
+
# pkg:gem/phlex#lib/phlex/html/void_elements.rb:4
|
|
785
|
+
module Phlex::HTML::VoidElements
|
|
786
|
+
extend ::Phlex::SGML::Elements
|
|
787
|
+
|
|
788
|
+
# pkg:gem/phlex#lib/phlex/html/void_elements.rb:10
|
|
789
|
+
def area(**attributes); end
|
|
790
|
+
|
|
791
|
+
# pkg:gem/phlex#lib/phlex/html/void_elements.rb:15
|
|
792
|
+
def base(**attributes); end
|
|
793
|
+
|
|
794
|
+
# pkg:gem/phlex#lib/phlex/html/void_elements.rb:20
|
|
795
|
+
def br(**attributes); end
|
|
796
|
+
|
|
797
|
+
# pkg:gem/phlex#lib/phlex/html/void_elements.rb:25
|
|
798
|
+
def col(**attributes); end
|
|
799
|
+
|
|
800
|
+
# pkg:gem/phlex#lib/phlex/html/void_elements.rb:30
|
|
801
|
+
def embed(**attributes); end
|
|
802
|
+
|
|
803
|
+
# pkg:gem/phlex#lib/phlex/html/void_elements.rb:35
|
|
804
|
+
def hr(**attributes); end
|
|
805
|
+
|
|
806
|
+
# pkg:gem/phlex#lib/phlex/html/void_elements.rb:40
|
|
807
|
+
def img(**attributes); end
|
|
808
|
+
|
|
809
|
+
# pkg:gem/phlex#lib/phlex/html/void_elements.rb:45
|
|
810
|
+
def input(**attributes); end
|
|
811
|
+
|
|
812
|
+
# pkg:gem/phlex#lib/phlex/html/void_elements.rb:50
|
|
813
|
+
def link(**attributes); end
|
|
814
|
+
|
|
815
|
+
# pkg:gem/phlex#lib/phlex/html/void_elements.rb:55
|
|
816
|
+
def meta(**attributes); end
|
|
817
|
+
|
|
818
|
+
# pkg:gem/phlex#lib/phlex/html/void_elements.rb:60
|
|
819
|
+
def source(**attributes); end
|
|
820
|
+
|
|
821
|
+
# pkg:gem/phlex#lib/phlex/html/void_elements.rb:65
|
|
822
|
+
def track(**attributes); end
|
|
823
|
+
end
|
|
824
|
+
|
|
825
|
+
# @api private
|
|
826
|
+
#
|
|
827
|
+
# pkg:gem/phlex#lib/phlex/helpers.rb:4
|
|
828
|
+
module Phlex::Helpers
|
|
829
|
+
private
|
|
830
|
+
|
|
831
|
+
# pkg:gem/phlex#lib/phlex/helpers.rb:44
|
|
832
|
+
def grab(**bindings); end
|
|
833
|
+
|
|
834
|
+
# pkg:gem/phlex#lib/phlex/helpers.rb:5
|
|
835
|
+
def mix(*args); end
|
|
836
|
+
end
|
|
837
|
+
|
|
838
|
+
# pkg:gem/phlex#lib/phlex/kit.rb:3
|
|
839
|
+
module Phlex::Kit
|
|
840
|
+
# pkg:gem/phlex#lib/phlex/kit.rb:47
|
|
841
|
+
def const_added(name); end
|
|
842
|
+
|
|
843
|
+
# pkg:gem/phlex#lib/phlex/kit.rb:35
|
|
844
|
+
def method_missing(name, *_arg1, **_arg2, &_arg3); end
|
|
845
|
+
|
|
846
|
+
private
|
|
847
|
+
|
|
848
|
+
# pkg:gem/phlex#lib/phlex/kit.rb:43
|
|
849
|
+
def respond_to_missing?(name, include_private = T.unsafe(nil)); end
|
|
850
|
+
|
|
851
|
+
class << self
|
|
852
|
+
# pkg:gem/phlex#lib/phlex/kit.rb:22
|
|
853
|
+
def extended(mod); end
|
|
854
|
+
end
|
|
855
|
+
end
|
|
856
|
+
|
|
857
|
+
# pkg:gem/phlex#lib/phlex/kit.rb:4
|
|
858
|
+
module Phlex::Kit::LazyLoader
|
|
859
|
+
# pkg:gem/phlex#lib/phlex/kit.rb:5
|
|
860
|
+
def method_missing(name, *_arg1, **_arg2, &_arg3); end
|
|
861
|
+
|
|
862
|
+
private
|
|
863
|
+
|
|
864
|
+
# pkg:gem/phlex#lib/phlex/kit.rb:15
|
|
865
|
+
def respond_to_missing?(name, include_private = T.unsafe(nil)); end
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
# pkg:gem/phlex#lib/phlex.rb:8
|
|
869
|
+
Phlex::Loader = T.let(T.unsafe(nil), Zeitwerk::GemLoader)
|
|
870
|
+
|
|
871
|
+
# pkg:gem/phlex#lib/phlex/errors/name_error.rb:3
|
|
872
|
+
class Phlex::NameError < ::NameError
|
|
873
|
+
include ::Phlex::Error
|
|
874
|
+
end
|
|
875
|
+
|
|
876
|
+
# pkg:gem/phlex#lib/phlex/errors/runtime_error.rb:3
|
|
877
|
+
class Phlex::RuntimeError < ::RuntimeError
|
|
878
|
+
include ::Phlex::Error
|
|
879
|
+
end
|
|
880
|
+
|
|
881
|
+
# **Standard Generalized Markup Language** for behaviour common to {HTML} and {SVG}.
|
|
882
|
+
#
|
|
883
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:4
|
|
884
|
+
class Phlex::SGML
|
|
885
|
+
include ::Phlex::Helpers
|
|
886
|
+
|
|
887
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:433
|
|
888
|
+
def __map_exception__(exception); end
|
|
889
|
+
|
|
890
|
+
# Cache a block of content.
|
|
891
|
+
#
|
|
892
|
+
# ```ruby
|
|
893
|
+
# @products.each do |product|
|
|
894
|
+
# cache product do
|
|
895
|
+
# h1 { product.name }
|
|
896
|
+
# end
|
|
897
|
+
# end
|
|
898
|
+
# ```
|
|
899
|
+
#
|
|
900
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:236
|
|
901
|
+
def cache(*cache_key, **_arg1, &content); end
|
|
902
|
+
|
|
903
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:38
|
|
904
|
+
def call(buffer = T.unsafe(nil), context: T.unsafe(nil), fragments: T.unsafe(nil), &_arg3); end
|
|
905
|
+
|
|
906
|
+
# Capture the output of the block and returns it as a string.
|
|
907
|
+
#
|
|
908
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:164
|
|
909
|
+
def capture(*args, &block); end
|
|
910
|
+
|
|
911
|
+
# Wrap the output in an HTML comment.
|
|
912
|
+
#
|
|
913
|
+
# [MDN Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Comments)
|
|
914
|
+
#
|
|
915
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:134
|
|
916
|
+
def comment(&_arg0); end
|
|
917
|
+
|
|
918
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:89
|
|
919
|
+
def context; end
|
|
920
|
+
|
|
921
|
+
# Flush the current state to the output buffer.
|
|
922
|
+
#
|
|
923
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:196
|
|
924
|
+
def flush; end
|
|
925
|
+
|
|
926
|
+
# Define a named fragment that can be selectively rendered.
|
|
927
|
+
#
|
|
928
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:175
|
|
929
|
+
def fragment(name); end
|
|
930
|
+
|
|
931
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:50
|
|
932
|
+
def internal_call(parent: T.unsafe(nil), state: T.unsafe(nil), &block); end
|
|
933
|
+
|
|
934
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:288
|
|
935
|
+
def json_escape(string); end
|
|
936
|
+
|
|
937
|
+
# Cache a block of content where you control the entire cache key.
|
|
938
|
+
# If you really know what you’re doing and want to take full control
|
|
939
|
+
# and responsibility for the cache key, use this method.
|
|
940
|
+
#
|
|
941
|
+
# ```ruby
|
|
942
|
+
# low_level_cache([Commonmarker::VERSION, Digest::MD5.hexdigest(@content)]) do
|
|
943
|
+
# markdown(@content)
|
|
944
|
+
# end
|
|
945
|
+
# ```
|
|
946
|
+
#
|
|
947
|
+
# Note: To allow you more control, this method does not take a splat of cache keys.
|
|
948
|
+
# If you need to pass multiple cache keys, you should pass an array.
|
|
949
|
+
#
|
|
950
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:265
|
|
951
|
+
def low_level_cache(cache_key, **options, &content); end
|
|
952
|
+
|
|
953
|
+
# Output plain text.
|
|
954
|
+
#
|
|
955
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:106
|
|
956
|
+
def plain(content); end
|
|
957
|
+
|
|
958
|
+
# Output the given safe object as-is. You may need to use `safe` to mark a string as a safe object.
|
|
959
|
+
#
|
|
960
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:148
|
|
961
|
+
def raw(content); end
|
|
962
|
+
|
|
963
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:200
|
|
964
|
+
def render(renderable = T.unsafe(nil), &_arg1); end
|
|
965
|
+
|
|
966
|
+
# Returns `false` before rendering and `true` once the component has started rendering.
|
|
967
|
+
# It will not reset back to false after rendering.
|
|
968
|
+
#
|
|
969
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:101
|
|
970
|
+
def rendering?; end
|
|
971
|
+
|
|
972
|
+
# Mark the given string as safe for HTML output.
|
|
973
|
+
#
|
|
974
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:184
|
|
975
|
+
def safe(value); end
|
|
976
|
+
|
|
977
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:34
|
|
978
|
+
def to_proc; end
|
|
979
|
+
|
|
980
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:26
|
|
981
|
+
def view_template; end
|
|
982
|
+
|
|
983
|
+
# Output a single space character. If a block is given, a space will be output before and after the block.
|
|
984
|
+
#
|
|
985
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:115
|
|
986
|
+
def whitespace(&_arg0); end
|
|
987
|
+
|
|
988
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:193
|
|
989
|
+
def 🦺(value); end
|
|
990
|
+
|
|
991
|
+
private
|
|
992
|
+
|
|
993
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:371
|
|
994
|
+
def __implicit_output__(content); end
|
|
995
|
+
|
|
996
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:418
|
|
997
|
+
def __render_attributes__(attributes); end
|
|
998
|
+
|
|
999
|
+
# same as __implicit_output__ but escapes even `safe` objects
|
|
1000
|
+
#
|
|
1001
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:396
|
|
1002
|
+
def __text__(content); end
|
|
1003
|
+
|
|
1004
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:335
|
|
1005
|
+
def __yield_content__; end
|
|
1006
|
+
|
|
1007
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:359
|
|
1008
|
+
def __yield_content_with_args__(*a); end
|
|
1009
|
+
|
|
1010
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:347
|
|
1011
|
+
def __yield_content_with_no_yield_args__; end
|
|
1012
|
+
|
|
1013
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:331
|
|
1014
|
+
def after_template; end
|
|
1015
|
+
|
|
1016
|
+
# Override this method to use a different deployment key.
|
|
1017
|
+
#
|
|
1018
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:293
|
|
1019
|
+
def app_version_key; end
|
|
1020
|
+
|
|
1021
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:322
|
|
1022
|
+
def around_template; end
|
|
1023
|
+
|
|
1024
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:327
|
|
1025
|
+
def before_template; end
|
|
1026
|
+
|
|
1027
|
+
# Override this method to use a different cache store.
|
|
1028
|
+
#
|
|
1029
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:298
|
|
1030
|
+
def cache_store; end
|
|
1031
|
+
|
|
1032
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:302
|
|
1033
|
+
def enable_cache_reloading?; end
|
|
1034
|
+
|
|
1035
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:315
|
|
1036
|
+
def format_object(object); end
|
|
1037
|
+
|
|
1038
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:311
|
|
1039
|
+
def render?; end
|
|
1040
|
+
|
|
1041
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:306
|
|
1042
|
+
def vanish(*_arg0, **_arg1, &_arg2); end
|
|
1043
|
+
|
|
1044
|
+
class << self
|
|
1045
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:436
|
|
1046
|
+
def __compile__(method_name); end
|
|
1047
|
+
|
|
1048
|
+
# Render the view to a String. Arguments are delegated to {.new}.
|
|
1049
|
+
#
|
|
1050
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:9
|
|
1051
|
+
def call(*_arg0, **_arg1, &_arg2); end
|
|
1052
|
+
|
|
1053
|
+
# Create a new instance of the component.
|
|
1054
|
+
# @note The block will not be delegated to {#initialize}. Instead, it will be sent to {#view_template} when rendering.
|
|
1055
|
+
#
|
|
1056
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:15
|
|
1057
|
+
def new(*a, **k, &block); end
|
|
1058
|
+
|
|
1059
|
+
private
|
|
1060
|
+
|
|
1061
|
+
# pkg:gem/phlex#lib/phlex/sgml.rb:424
|
|
1062
|
+
def method_added(method_name); end
|
|
1063
|
+
end
|
|
1064
|
+
end
|
|
1065
|
+
|
|
1066
|
+
# pkg:gem/phlex#lib/phlex/sgml/attributes.rb:3
|
|
1067
|
+
module Phlex::SGML::Attributes
|
|
1068
|
+
extend ::Phlex::SGML::Attributes
|
|
1069
|
+
|
|
1070
|
+
# pkg:gem/phlex#lib/phlex/sgml/attributes.rb:171
|
|
1071
|
+
def decode_html_character_references(value); end
|
|
1072
|
+
|
|
1073
|
+
# pkg:gem/phlex#lib/phlex/sgml/attributes.rb:15
|
|
1074
|
+
def generate_attributes(attributes, buffer = T.unsafe(nil)); end
|
|
1075
|
+
|
|
1076
|
+
# Provides the nested-attributes case for serializing out attributes.
|
|
1077
|
+
# This allows us to skip many of the checks the `__attributes__` method must perform.
|
|
1078
|
+
#
|
|
1079
|
+
# pkg:gem/phlex#lib/phlex/sgml/attributes.rb:118
|
|
1080
|
+
def generate_nested_attributes(attributes, base_name, buffer = T.unsafe(nil)); end
|
|
1081
|
+
|
|
1082
|
+
# pkg:gem/phlex#lib/phlex/sgml/attributes.rb:192
|
|
1083
|
+
def generate_nested_tokens(tokens, sep = T.unsafe(nil), gsub_from = T.unsafe(nil), gsub_to = T.unsafe(nil)); end
|
|
1084
|
+
|
|
1085
|
+
# The result is unsafe so should be escaped.
|
|
1086
|
+
#
|
|
1087
|
+
# pkg:gem/phlex#lib/phlex/sgml/attributes.rb:251
|
|
1088
|
+
def generate_styles(styles); end
|
|
1089
|
+
end
|
|
1090
|
+
|
|
1091
|
+
# pkg:gem/phlex#lib/phlex/sgml/attributes.rb:8
|
|
1092
|
+
Phlex::SGML::Attributes::NAMED_CHARACTER_REFERENCES = T.let(T.unsafe(nil), Hash)
|
|
1093
|
+
|
|
1094
|
+
# pkg:gem/phlex#lib/phlex/sgml/attributes.rb:7
|
|
1095
|
+
Phlex::SGML::Attributes::REF_ATTRIBUTES = T.let(T.unsafe(nil), Set)
|
|
1096
|
+
|
|
1097
|
+
# pkg:gem/phlex#lib/phlex/sgml/attributes.rb:6
|
|
1098
|
+
Phlex::SGML::Attributes::UNSAFE_ATTRIBUTES = T.let(T.unsafe(nil), Set)
|
|
1099
|
+
|
|
1100
|
+
# pkg:gem/phlex#lib/phlex/sgml/attributes.rb:13
|
|
1101
|
+
Phlex::SGML::Attributes::UNSAFE_ATTRIBUTE_NAME_CHARS = T.let(T.unsafe(nil), Regexp)
|
|
1102
|
+
|
|
1103
|
+
# pkg:gem/phlex#lib/phlex/sgml/elements.rb:3
|
|
1104
|
+
module Phlex::SGML::Elements
|
|
1105
|
+
# pkg:gem/phlex#lib/phlex/sgml/elements.rb:140
|
|
1106
|
+
def __register_void_element__(method_name, tag: T.unsafe(nil)); end
|
|
1107
|
+
|
|
1108
|
+
# pkg:gem/phlex#lib/phlex/sgml/elements.rb:39
|
|
1109
|
+
def __registered_elements__; end
|
|
1110
|
+
|
|
1111
|
+
# pkg:gem/phlex#lib/phlex/sgml/elements.rb:43
|
|
1112
|
+
def register_element(method_name, tag: T.unsafe(nil)); end
|
|
1113
|
+
end
|
|
1114
|
+
|
|
1115
|
+
# pkg:gem/phlex#lib/phlex/sgml/elements.rb:4
|
|
1116
|
+
Phlex::SGML::Elements::COMMA_SEPARATED_TOKENS = T.let(T.unsafe(nil), Hash)
|
|
1117
|
+
|
|
1118
|
+
# @api private
|
|
1119
|
+
#
|
|
1120
|
+
# pkg:gem/phlex#lib/phlex/sgml/safe_object.rb:4
|
|
1121
|
+
module Phlex::SGML::SafeObject; end
|
|
1122
|
+
|
|
1123
|
+
# pkg:gem/phlex#lib/phlex/sgml/safe_value.rb:3
|
|
1124
|
+
class Phlex::SGML::SafeValue
|
|
1125
|
+
include ::Phlex::SGML::SafeObject
|
|
1126
|
+
|
|
1127
|
+
# pkg:gem/phlex#lib/phlex/sgml/safe_value.rb:6
|
|
1128
|
+
def initialize(to_s); end
|
|
1129
|
+
|
|
1130
|
+
# pkg:gem/phlex#lib/phlex/sgml/safe_value.rb:10
|
|
1131
|
+
def to_s; end
|
|
1132
|
+
end
|
|
1133
|
+
|
|
1134
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:3
|
|
1135
|
+
class Phlex::SGML::State
|
|
1136
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:4
|
|
1137
|
+
def initialize(output_buffer:, fragments:, user_context: T.unsafe(nil)); end
|
|
1138
|
+
|
|
1139
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:19
|
|
1140
|
+
def around_render(component); end
|
|
1141
|
+
|
|
1142
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:36
|
|
1143
|
+
def begin_fragment(id); end
|
|
1144
|
+
|
|
1145
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:17
|
|
1146
|
+
def buffer; end
|
|
1147
|
+
|
|
1148
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:78
|
|
1149
|
+
def caching(&_arg0); end
|
|
1150
|
+
|
|
1151
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:90
|
|
1152
|
+
def caching?; end
|
|
1153
|
+
|
|
1154
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:94
|
|
1155
|
+
def capture; end
|
|
1156
|
+
|
|
1157
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:15
|
|
1158
|
+
def capturing; end
|
|
1159
|
+
|
|
1160
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:15
|
|
1161
|
+
def capturing=(_arg0); end
|
|
1162
|
+
|
|
1163
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:53
|
|
1164
|
+
def end_fragment(id); end
|
|
1165
|
+
|
|
1166
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:114
|
|
1167
|
+
def flush; end
|
|
1168
|
+
|
|
1169
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:17
|
|
1170
|
+
def fragment_depth; end
|
|
1171
|
+
|
|
1172
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:17
|
|
1173
|
+
def fragments; end
|
|
1174
|
+
|
|
1175
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:17
|
|
1176
|
+
def output_buffer; end
|
|
1177
|
+
|
|
1178
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:69
|
|
1179
|
+
def record_fragment(id, offset, length, nested_fragments); end
|
|
1180
|
+
|
|
1181
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:32
|
|
1182
|
+
def should_render?; end
|
|
1183
|
+
|
|
1184
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:15
|
|
1185
|
+
def user_context; end
|
|
1186
|
+
|
|
1187
|
+
# pkg:gem/phlex#lib/phlex/sgml/state.rb:15
|
|
1188
|
+
def user_context=(_arg0); end
|
|
1189
|
+
end
|
|
1190
|
+
|
|
1191
|
+
# pkg:gem/phlex#lib/phlex/svg.rb:3
|
|
1192
|
+
class Phlex::SVG < ::Phlex::SGML
|
|
1193
|
+
include ::Phlex::SVG::StandardElements
|
|
1194
|
+
|
|
1195
|
+
# pkg:gem/phlex#lib/phlex/svg.rb:16
|
|
1196
|
+
def cdata(content = T.unsafe(nil), &block); end
|
|
1197
|
+
|
|
1198
|
+
# Returns the string "image/svg+xml"
|
|
1199
|
+
#
|
|
1200
|
+
# pkg:gem/phlex#lib/phlex/svg.rb:7
|
|
1201
|
+
def content_type; end
|
|
1202
|
+
|
|
1203
|
+
# Override to provide a filename for the SVG file
|
|
1204
|
+
#
|
|
1205
|
+
# pkg:gem/phlex#lib/phlex/svg.rb:12
|
|
1206
|
+
def filename; end
|
|
1207
|
+
|
|
1208
|
+
# pkg:gem/phlex#lib/phlex/svg.rb:30
|
|
1209
|
+
def tag(name, **attributes, &_arg2); end
|
|
1210
|
+
end
|
|
1211
|
+
|
|
1212
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:3
|
|
1213
|
+
module Phlex::SVG::StandardElements
|
|
1214
|
+
extend ::Phlex::SGML::Elements
|
|
1215
|
+
|
|
1216
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:8
|
|
1217
|
+
def a(**attributes); end
|
|
1218
|
+
|
|
1219
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:22
|
|
1220
|
+
def animate(**attributes); end
|
|
1221
|
+
|
|
1222
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:32
|
|
1223
|
+
def animateMotion(**attributes); end
|
|
1224
|
+
|
|
1225
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:57
|
|
1226
|
+
def animateTransform(**attributes); end
|
|
1227
|
+
|
|
1228
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:63
|
|
1229
|
+
def circle(**attributes); end
|
|
1230
|
+
|
|
1231
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:69
|
|
1232
|
+
def clipPath(**attributes); end
|
|
1233
|
+
|
|
1234
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:75
|
|
1235
|
+
def defs(**attributes); end
|
|
1236
|
+
|
|
1237
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:81
|
|
1238
|
+
def desc(**attributes); end
|
|
1239
|
+
|
|
1240
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:87
|
|
1241
|
+
def discard(**attributes); end
|
|
1242
|
+
|
|
1243
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:93
|
|
1244
|
+
def ellipse(**attributes); end
|
|
1245
|
+
|
|
1246
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:99
|
|
1247
|
+
def feBlend(**attributes); end
|
|
1248
|
+
|
|
1249
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:105
|
|
1250
|
+
def feColorMatrix(**attributes); end
|
|
1251
|
+
|
|
1252
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:111
|
|
1253
|
+
def feComponentTransfer(**attributes); end
|
|
1254
|
+
|
|
1255
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:117
|
|
1256
|
+
def feComposite(**attributes); end
|
|
1257
|
+
|
|
1258
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:123
|
|
1259
|
+
def feConvolveMatrix(**attributes); end
|
|
1260
|
+
|
|
1261
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:129
|
|
1262
|
+
def feDiffuseLighting(**attributes); end
|
|
1263
|
+
|
|
1264
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:135
|
|
1265
|
+
def feDisplacementMap(**attributes); end
|
|
1266
|
+
|
|
1267
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:141
|
|
1268
|
+
def feDistantLight(**attributes); end
|
|
1269
|
+
|
|
1270
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:147
|
|
1271
|
+
def feDropShadow(**attributes); end
|
|
1272
|
+
|
|
1273
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:153
|
|
1274
|
+
def feFlood(**attributes); end
|
|
1275
|
+
|
|
1276
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:159
|
|
1277
|
+
def feFuncA(**attributes); end
|
|
1278
|
+
|
|
1279
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:165
|
|
1280
|
+
def feFuncB(**attributes); end
|
|
1281
|
+
|
|
1282
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:171
|
|
1283
|
+
def feFuncG(**attributes); end
|
|
1284
|
+
|
|
1285
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:177
|
|
1286
|
+
def feFuncR(**attributes); end
|
|
1287
|
+
|
|
1288
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:183
|
|
1289
|
+
def feGaussianBlur(**attributes); end
|
|
1290
|
+
|
|
1291
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:189
|
|
1292
|
+
def feImage(**attributes); end
|
|
1293
|
+
|
|
1294
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:195
|
|
1295
|
+
def feMerge(**attributes); end
|
|
1296
|
+
|
|
1297
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:201
|
|
1298
|
+
def feMergeNode(**attributes); end
|
|
1299
|
+
|
|
1300
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:207
|
|
1301
|
+
def feMorphology(**attributes); end
|
|
1302
|
+
|
|
1303
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:213
|
|
1304
|
+
def feOffset(**attributes); end
|
|
1305
|
+
|
|
1306
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:219
|
|
1307
|
+
def fePointLight(**attributes); end
|
|
1308
|
+
|
|
1309
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:225
|
|
1310
|
+
def feSpecularLighting(**attributes); end
|
|
1311
|
+
|
|
1312
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:231
|
|
1313
|
+
def feSpotLight(**attributes); end
|
|
1314
|
+
|
|
1315
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:237
|
|
1316
|
+
def feTile(**attributes); end
|
|
1317
|
+
|
|
1318
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:243
|
|
1319
|
+
def feTurbulence(**attributes); end
|
|
1320
|
+
|
|
1321
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:249
|
|
1322
|
+
def filter(**attributes); end
|
|
1323
|
+
|
|
1324
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:255
|
|
1325
|
+
def foreignObject(**attributes); end
|
|
1326
|
+
|
|
1327
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:261
|
|
1328
|
+
def g(**attributes); end
|
|
1329
|
+
|
|
1330
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:267
|
|
1331
|
+
def image(**attributes); end
|
|
1332
|
+
|
|
1333
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:273
|
|
1334
|
+
def line(**attributes); end
|
|
1335
|
+
|
|
1336
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:279
|
|
1337
|
+
def linearGradient(**attributes); end
|
|
1338
|
+
|
|
1339
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:285
|
|
1340
|
+
def marker(**attributes); end
|
|
1341
|
+
|
|
1342
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:291
|
|
1343
|
+
def mask(**attributes); end
|
|
1344
|
+
|
|
1345
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:297
|
|
1346
|
+
def metadata(**attributes); end
|
|
1347
|
+
|
|
1348
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:303
|
|
1349
|
+
def mpath(**attributes); end
|
|
1350
|
+
|
|
1351
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:309
|
|
1352
|
+
def path(**attributes); end
|
|
1353
|
+
|
|
1354
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:315
|
|
1355
|
+
def pattern(**attributes); end
|
|
1356
|
+
|
|
1357
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:321
|
|
1358
|
+
def polygon(**attributes); end
|
|
1359
|
+
|
|
1360
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:327
|
|
1361
|
+
def polyline(**attributes); end
|
|
1362
|
+
|
|
1363
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:333
|
|
1364
|
+
def radialGradient(**attributes); end
|
|
1365
|
+
|
|
1366
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:339
|
|
1367
|
+
def rect(**attributes); end
|
|
1368
|
+
|
|
1369
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:345
|
|
1370
|
+
def script(**attributes); end
|
|
1371
|
+
|
|
1372
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:351
|
|
1373
|
+
def set(**attributes); end
|
|
1374
|
+
|
|
1375
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:357
|
|
1376
|
+
def stop(**attributes); end
|
|
1377
|
+
|
|
1378
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:363
|
|
1379
|
+
def style(**attributes); end
|
|
1380
|
+
|
|
1381
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:369
|
|
1382
|
+
def svg(**attributes); end
|
|
1383
|
+
|
|
1384
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:375
|
|
1385
|
+
def switch(**attributes); end
|
|
1386
|
+
|
|
1387
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:381
|
|
1388
|
+
def symbol(**attributes); end
|
|
1389
|
+
|
|
1390
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:387
|
|
1391
|
+
def text(**attributes); end
|
|
1392
|
+
|
|
1393
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:393
|
|
1394
|
+
def textPath(**attributes); end
|
|
1395
|
+
|
|
1396
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:399
|
|
1397
|
+
def title(**attributes); end
|
|
1398
|
+
|
|
1399
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:405
|
|
1400
|
+
def tspan(**attributes); end
|
|
1401
|
+
|
|
1402
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:411
|
|
1403
|
+
def use(**attributes); end
|
|
1404
|
+
|
|
1405
|
+
# pkg:gem/phlex#lib/phlex/svg/standard_elements.rb:417
|
|
1406
|
+
def view(**attributes); end
|
|
1407
|
+
end
|
|
1408
|
+
|
|
1409
|
+
# pkg:gem/phlex#lib/phlex.rb:30
|
|
1410
|
+
Phlex::UNBOUND_INSTANCE_METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod)
|
|
1411
|
+
|
|
1412
|
+
# pkg:gem/phlex#lib/phlex/version.rb:4
|
|
1413
|
+
Phlex::VERSION = T.let(T.unsafe(nil), String)
|