sidebar-skeleton-compostrap 2.0.7 → 2.0.10

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.
Files changed (42) hide show
  1. package/.github/workflows/build.yml +31 -0
  2. package/.idea/intellij-latte-pro/xmlSources/Latte.dtd +69 -0
  3. package/.idea/intellij-latte-pro/xmlSources/Latte.xml +443 -0
  4. package/.idea/intellij-latte-pro/xmlSources/Latte.xsd +143 -0
  5. package/.idea/intellij-latte-pro/xmlSources/NetteApplication.xml +68 -0
  6. package/.idea/intellij-latte-pro/xmlSources/NetteAssets.xml +33 -0
  7. package/.idea/intellij-latte-pro/xmlSources/NetteForms.xml +43 -0
  8. package/.idea/jsLibraryMappings.xml +7 -0
  9. package/.idea/modules.xml +8 -0
  10. package/.idea/php.xml +19 -0
  11. package/.idea/sidebar-skeleton.iml +9 -0
  12. package/.idea/vcs.xml +6 -0
  13. package/dist/{css/sidebar.css → sidebar.css} +1 -9
  14. package/dist/sidebar.js +5 -0
  15. package/{demo.html → index.html} +4 -5
  16. package/package.json +12 -29
  17. package/readme.md +41 -46
  18. package/src/scss/base/_index.scss +1 -0
  19. package/src/scss/components/_index.scss +1 -0
  20. package/{scss → src/scss}/components/_sidebar.scss +8 -3
  21. package/src/scss/layout/_index.scss +1 -0
  22. package/src/scss/layout/_wrapper.scss +17 -0
  23. package/src/scss/sidebar.scss +9 -0
  24. package/src/scss/themes/_index.scss +1 -0
  25. package/{scss/themes/_colors.scss → src/scss/themes/_theme.scss} +11 -1
  26. package/src/scss/utils/_index.scss +1 -0
  27. package/src/scss/utils/_variables.scss +6 -0
  28. package/src/sidebar.js +11 -0
  29. package/vite.build.js +5 -0
  30. package/vite.config.js +33 -0
  31. package/.travis.yml +0 -10
  32. package/dist/css/sidebar.css.map +0 -1
  33. package/dist/css/sidebar.min.css +0 -5
  34. package/dist/js/sidebar.js +0 -11
  35. package/dist/js/sidebar.min.js +0 -1
  36. package/scss/layout/_wrapper.scss +0 -15
  37. package/scss/sidebar.scss +0 -22
  38. package/scss/themes/_theme.scss +0 -11
  39. package/scss/utils/_functions.scss +0 -8
  40. package/scss/utils/_variables.scss +0 -6
  41. /package/{license.md → license} +0 -0
  42. /package/{scss → src/scss}/base/_body.scss +0 -0
@@ -0,0 +1,31 @@
1
+ name: Node.js Build
2
+
3
+ on:
4
+ push:
5
+ branches: [ "master" ]
6
+ pull_request:
7
+ branches: [ "master" ]
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+
13
+ strategy:
14
+ matrix:
15
+ node-version: [20.19, 22.x]
16
+
17
+ steps:
18
+ - name: Checkout repository
19
+ uses: actions/checkout@v4
20
+
21
+ - name: Setup Node.js
22
+ uses: actions/setup-node@v4
23
+ with:
24
+ node-version: ${{ matrix.node-version }}
25
+ cache: 'npm'
26
+
27
+ - name: Install dependencies
28
+ run: npm ci
29
+
30
+ - name: Build project
31
+ run: npm run build
@@ -0,0 +1,69 @@
1
+ <?xml encoding="UTF-8"?>
2
+
3
+ <!ELEMENT latte (tags,filters,variables,functions)>
4
+ <!ATTLIST latte vendor #REQUIRED>
5
+ <!ATTLIST latte version #REQUIRED>
6
+
7
+ <!ELEMENT tags (tag)+>
8
+
9
+ <!ELEMENT tag (arguments)?>
10
+ <!ATTLIST tag name CDATA #REQUIRED>
11
+ <!ATTLIST tag type (PAIR|UNPAIRED|UNPAIRED_ATTR|ATTR_ONLY|AUTO_EMPTY) #REQUIRED>
12
+ <!ATTLIST tag allowFilters (true|false) #IMPLIED>
13
+ <!ATTLIST tag arguments CDATA #IMPLIED>
14
+ <!ATTLIST tag deprecatedMessage CDATA #IMPLIED>
15
+ <!ATTLIST tag multiLine (true|false) #IMPLIED>
16
+ <!ATTLIST tag description #IMPLIED>
17
+ <!ATTLIST tag documentation #IMPLIED>
18
+ <!ATTLIST tag documentationUrl #IMPLIED>
19
+
20
+ <!ELEMENT arguments (argument)+>
21
+
22
+ <!ELEMENT argument EMPTY>
23
+ <!ATTLIST argument name #REQUIRED>
24
+ <!ATTLIST argument types CDATA #REQUIRED>
25
+ <!ATTLIST argument repeatable (true|false) #IMPLIED>
26
+ <!ATTLIST argument required (true|false) #IMPLIED>
27
+ <!ATTLIST argument type #IMPLIED>
28
+
29
+ <!ELEMENT filters (filter)+>
30
+
31
+ <!ELEMENT filter (filterArguments)?>
32
+ <!ATTLIST filter name #REQUIRED>
33
+ <!ATTLIST filter description CDATA #IMPLIED>
34
+ <!ATTLIST filter inputType #IMPLIED>
35
+ <!ATTLIST filter returnType #IMPLIED>
36
+ <!ATTLIST filter documentation CDATA #IMPLIED>
37
+ <!ATTLIST filter documentationUrl CDATA #IMPLIED>
38
+
39
+ <!ELEMENT filterArguments (filterArgument)+>
40
+
41
+ <!ELEMENT filterArgument EMPTY>
42
+ <!ATTLIST filterArgument name #REQUIRED>
43
+ <!ATTLIST filterArgument type #REQUIRED>
44
+ <!ATTLIST filterArgument defaultValue #IMPLIED>
45
+ <!ATTLIST filterArgument description #IMPLIED>
46
+ <!ATTLIST filterArgument repeatable (true|false) #IMPLIED>
47
+
48
+ <!ELEMENT variables (variable)+>
49
+
50
+ <!ELEMENT variable EMPTY>
51
+ <!ATTLIST variable name #REQUIRED>
52
+ <!ATTLIST variable type CDATA #REQUIRED>
53
+
54
+ <!ELEMENT functions (function)+>
55
+
56
+ <!ELEMENT function (functionArguments)?>
57
+ <!ATTLIST function name #REQUIRED>
58
+ <!ATTLIST function returnType #IMPLIED>
59
+ <!ATTLIST function documentation CDATA #IMPLIED>
60
+ <!ATTLIST function documentationUrl CDATA #IMPLIED>
61
+ <!ATTLIST function deprecatedMessage CDATA #IMPLIED>
62
+
63
+ <!ELEMENT functionArguments (functionArgument)+>
64
+
65
+ <!ELEMENT functionArgument EMPTY>
66
+ <!ATTLIST functionArgument name #REQUIRED>
67
+ <!ATTLIST functionArgument type #REQUIRED>
68
+ <!ATTLIST functionArgument defaultValue #IMPLIED>
69
+ <!ATTLIST functionArgument description #IMPLIED>
@@ -0,0 +1,443 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE latte PUBLIC "-//LATTE//Latte plugin XML V0.0.1//EN" "Latte.xsd">
3
+ <latte vendor="latte" version="1">
4
+ <tags>
5
+ <tag name="_" type="UNPAIRED" allowFilters="true" documentation="prints translated" documentationUrl="https://latte.nette.org/en/tags#toc-translation">
6
+ <arguments>
7
+ <argument name="expression" types="PHP_EXPRESSION" type="string" required="true" />
8
+ </arguments>
9
+ </tag>
10
+ <tag name="=" type="UNPAIRED" allowFilters="true" documentation="prints an escaped variable or expression" documentationUrl="https://latte.nette.org/en/tags#toc-printing">
11
+ <arguments>
12
+ <argument name="expression" types="PHP_EXPRESSION" type="string" required="true" />
13
+ </arguments>
14
+ </tag>
15
+ <tag name="block" type="AUTO_EMPTY" allowFilters="true" multiLine="true" documentation="block definition" documentationUrl="https://latte.nette.org/en/template-inheritance#toc-blocks">
16
+ <arguments>
17
+ <argument name="name" types="PHP_IDENTIFIER,VARIABLE,PHP_EXPRESSION" type="string" required="true" />
18
+ </arguments>
19
+ </tag>
20
+ <tag name="breakIf" type="UNPAIRED" documentation="breaks loop" documentationUrl="https://latte.nette.org/en/tags#toc-continueif-skipif-breakif">
21
+ <arguments>
22
+ <argument name="condition" types="PHP_CONDITION" type="bool" required="true" />
23
+ </arguments>
24
+ </tag>
25
+ <tag name="capture" type="PAIR" allowFilters="true" multiLine="true" documentation="captures a section to a variable" documentationUrl="https://latte.nette.org/en/tags#toc-capture">
26
+ <arguments>
27
+ <argument name="variable" types="VARIABLE_DEFINITION" required="true" />
28
+ </arguments>
29
+ </tag>
30
+ <tag name="case" type="UNPAIRED" documentation="condition switch" documentationUrl="https://latte.nette.org/en/tags#toc-switch-case-default">
31
+ <arguments>
32
+ <argument name="condition" types="PHP_CONDITION" required="true" repeatable="true" />
33
+ </arguments>
34
+ </tag>
35
+ <tag name="catch" type="UNPAIRED" documentation="catching exceptions" documentationUrl="https://latte.nette.org/en/tags#toc-try">
36
+ <arguments>
37
+ <argument name="condition" types="PHP_CONDITION" type="bool" required="true" />
38
+ </arguments>
39
+ </tag>
40
+ <tag name="contentType" type="UNPAIRED" documentation="switches the escaping mode and sends HTTP header" documentationUrl="https://latte.nette.org/en/tags#toc-contenttype">
41
+ <arguments>
42
+ <argument name="content-type" types="CONTENT_TYPE" type="string" required="true" />
43
+ </arguments>
44
+ </tag>
45
+ <tag name="continueIf" type="UNPAIRED" documentation="continue to next iteration" documentationUrl="https://latte.nette.org/en/tags#toc-continueif-skipif-breakif">
46
+ <arguments>
47
+ <argument name="condition" types="PHP_CONDITION" type="bool" required="true" />
48
+ </arguments>
49
+ </tag>
50
+ <tag name="debugbreak" type="UNPAIRED" documentation="sets breakpoint to the code" documentationUrl="https://latte.nette.org/en/tags#toc-debugbreak">
51
+ <arguments>
52
+ <argument name="expression" types="PHP_EXPRESSION" required="true" />
53
+ </arguments>
54
+ </tag>
55
+ <tag name="default" type="UNPAIRED" documentation="default value when variable isn't declared" documentationUrl="https://latte.nette.org/en/tags#toc-var-default">
56
+ <arguments>
57
+ <argument name="variable" types="VARIABLE_DEFINITION_EXPRESSION" required="true" repeatable="true" />
58
+ </arguments>
59
+ </tag>
60
+ <tag name="parameters" type="UNPAIRED" documentation="declares variables, types a default values" documentationUrl="https://latte.nette.org/en/tags#toc-parameters">
61
+ <arguments>
62
+ <argument name="parameter" types="VARIABLE_DEFINITION_EXPRESSION" required="true" repeatable="true" />
63
+ </arguments>
64
+ </tag>
65
+ <tag name="define" multiLine="true" type="PAIR" documentation="block defintion for future use" documentationUrl="https://latte.nette.org/en/template-inheritance#toc-definitions">
66
+ <arguments>
67
+ <argument name="name" types="PHP_IDENTIFIER,VARIABLE,PHP_EXPRESSION" required="true" />
68
+ <argument name="variable" types="VARIABLE_DEFINITION_ITEM" repeatable="true" />
69
+ </arguments>
70
+ </tag>
71
+ <tag name="do" type="UNPAIRED" allowFilters="true" documentation="evaluates an expression without printing it" documentationUrl="https://latte.nette.org/en/tags#toc-do">
72
+ <arguments>
73
+ <argument name="expression" types="PHP_EXPRESSION" required="true" />
74
+ </arguments>
75
+ </tag>
76
+ <tag name="dump" type="UNPAIRED" documentation="dumps variables to the Tracy Bar" documentationUrl="https://latte.nette.org/en/tags#toc-dump">
77
+ <arguments>
78
+ <argument name="expression" types="PHP_EXPRESSION" required="true" />
79
+ </arguments>
80
+ </tag>
81
+ <tag name="else" type="UNPAIRED_ATTR" documentation="condition if" documentationUrl="https://latte.nette.org/en/tags#toc-if-elseif-else" />
82
+ <tag name="elseif" type="UNPAIRED" documentation="condition if" documentationUrl="https://latte.nette.org/en/tags#toc-if-elseif-else">
83
+ <arguments>
84
+ <argument name="condition" types="PHP_CONDITION" type="bool" required="true" />
85
+ </arguments>
86
+ </tag>
87
+ <tag name="elseifset" type="UNPAIRED" documentation="condition ifset" documentationUrl="https://latte.nette.org/en/tags#toc-ifset-elseifset">
88
+ <arguments>
89
+ <argument name="var" types="VARIABLE,BLOCK" type="string" required="true" />
90
+ </arguments>
91
+ </tag>
92
+ <tag name="exitIf" type="UNPAIRED" documentation="Ends the rendering of a template or block when a condition is met (i.e. “early exit”)." documentationUrl="https://latte.nette.org/en/tags#toc-exitif">
93
+ <arguments>
94
+ <argument name="message" types="PHP_IDENTIFIER,VARIABLE,PHP_EXPRESSION" type="string" required="true" />
95
+ </arguments>
96
+ </tag>
97
+ <tag name="extends" type="UNPAIRED" documentation="specifies a layout file" documentationUrl="https://latte.nette.org/en/template-inheritance#toc-layout-inheritance">
98
+ <arguments>
99
+ <argument name="file" types="PHP_IDENTIFIER,VARIABLE,PHP_EXPRESSION,NONE" type="string" required="true" />
100
+ </arguments>
101
+ </tag>
102
+ <tag name="first" type="PAIR" documentation="is it the first iteration?" documentationUrl="https://latte.nette.org/en/tags#toc-first-last-sep">
103
+ <arguments>
104
+ <argument name="width" types="PHP_IDENTIFIER,PHP_EXPRESSION" type="int" required="true" />
105
+ </arguments>
106
+ </tag>
107
+ <tag name="for" type="PAIR" arguments="initialization; condition; afterthought" multiLine="true" documentation="for" documentationUrl="https://latte.nette.org/en/tags#toc-for" />
108
+ <tag name="foreach" type="PAIR" arguments="expression as [$key =>] $value" allowFilters="true" multiLine="true" documentation="foreach" documentationUrl="https://latte.nette.org/en/tags#toc-foreach" />
109
+ <tag name="if" type="PAIR" documentation="condition if" documentationUrl="https://latte.nette.org/en/tags#toc-if-elseif-else">
110
+ <arguments>
111
+ <argument name="condition" types="PHP_CONDITION" type="bool" required="true" />
112
+ </arguments>
113
+ </tag>
114
+ <tag name="ifset" type="PAIR" documentation="condition ifset" documentationUrl="https://latte.nette.org/en/tags#toc-ifset-elseifset">
115
+ <arguments>
116
+ <argument name="var" types="VARIABLE,BLOCK,PHP_EXPRESSION" type="string" required="true" />
117
+ </arguments>
118
+ </tag>
119
+ <tag name="import" type="UNPAIRED" documentation="loads blocks from another template" documentationUrl="https://latte.nette.org/en/template-inheritance#toc-horizontal-reuse">
120
+ <arguments>
121
+ <argument name="file" types="PHP_IDENTIFIER,VARIABLE,PHP_EXPRESSION" type="string" required="true" />
122
+ </arguments>
123
+ </tag>
124
+ <tag name="include" type="UNPAIRED" allowFilters="true" documentation="prints or file" documentationUrl="https://latte.nette.org/en/template-inheritance#toc-printing-blocks">
125
+ <arguments>
126
+ <argument name="file" types="BLOCK,IDENTIFIER,PHP_EXPRESSION" type="string" required="true" />
127
+ <argument name="arguments" types="KEY_VALUE" repeatable="true" />
128
+ </arguments>
129
+ </tag>
130
+ <tag name="l" type="UNPAIRED" documentation="prints { character" />
131
+ <tag name="last" type="PAIR" documentation="is it the last iteration?" documentationUrl="https://latte.nette.org/en/tags#toc-first-last-sep">
132
+ <arguments>
133
+ <argument name="width" types="PHP_IDENTIFIER,PHP_EXPRESSION" type="int" required="true" />
134
+ </arguments>
135
+ </tag>
136
+ <tag name="layout" type="UNPAIRED" documentation="specifies a layout file" documentationUrl="https://latte.nette.org/en/template-inheritance#toc-layout-inheritance">
137
+ <arguments>
138
+ <argument name="file" types="PHP_IDENTIFIER,VARIABLE,PHP_EXPRESSION,NONE" type="string" required="true" />
139
+ </arguments>
140
+ </tag>
141
+ <tag name="class" type="ATTR_ONLY" arguments="class" documentation="smart class attribute" documentationUrl="https://latte.nette.org/en/tags#toc-n-class" />
142
+ <tag name="attr" type="ATTR_ONLY" arguments="attr" documentation="smart HTML attributes" documentationUrl="https://latte.nette.org/en/tags#toc-n-attr" />
143
+ <tag name="ifcontent" type="ATTR_ONLY" documentation="Omit empty HTML tag" documentationUrl="https://latte.nette.org/en/tags#toc-n-ifcontent" />
144
+ <tag name="php" type="UNPAIRED" allowFilters="true" documentation="evaluates an expression without printing it" documentationUrl="https://latte.nette.org/en/tags#toc-do">
145
+ <arguments>
146
+ <argument name="expression" types="PHP_EXPRESSION" required="true" />
147
+ </arguments>
148
+ </tag>
149
+ <tag name="r" type="UNPAIRED" documentation="prints } character" />
150
+ <tag name="sandbox" type="UNPAIRED" documentation="includes a template in sandbox mode" documentationUrl="https://latte.nette.org/en/tags#toc-sandbox">
151
+ <arguments>
152
+ <argument name="file" types="BLOCK,PHP_IDENTIFIER,VARIABLE,PHP_EXPRESSION" type="string" required="true" />
153
+ <argument name="key-value" types="KEY_VALUE" repeatable="true" />
154
+ </arguments>
155
+ </tag>
156
+ <tag name="sep" type="PAIR" documentation="will next iteration follow?" documentationUrl="https://latte.nette.org/en/tags#toc-first-last-sep">
157
+ <arguments>
158
+ <argument name="width" types="PHP_IDENTIFIER,PHP_EXPRESSION" type="int" />
159
+ </arguments>
160
+ </tag>
161
+ <tag name="spaceless" type="PAIR" documentation="removes unnecessary whitespace" documentationUrl="https://latte.nette.org/en/tags#toc-spaceless" />
162
+ <tag name="switch" type="PAIR" multiLine="true" documentation="condition switch" documentationUrl="https://latte.nette.org/en/tags#toc-switch-case-default">
163
+ <arguments>
164
+ <argument name="expression" types="PHP_EXPRESSION" />
165
+ </arguments>
166
+ </tag>
167
+ <tag name="syntax" type="PAIR" arguments="off | double | latte" multiLine="true" documentation="switches the syntax at runtime" documentationUrl="https://latte.nette.org/en/tags#toc-syntax" />
168
+ <tag name="templatePrint" type="UNPAIRED" documentation="generates class with properties" documentationUrl="https://latte.nette.org/en/type-system#toc-templateprint">
169
+ <arguments>
170
+ <argument name="class-name" types="PHP_CLASS_NAME" />
171
+ </arguments>
172
+ </tag>
173
+ <tag name="templateType" type="UNPAIRED" documentation="declares types of variables using class" documentationUrl="https://latte.nette.org/en/type-system#toc-templatetype">
174
+ <arguments>
175
+ <argument name="class-name" types="PHP_CLASS_NAME" required="true" />
176
+ </arguments>
177
+ </tag>
178
+ <tag name="try" type="PAIR" documentation="catching exceptions" documentationUrl="https://latte.nette.org/en/tags#toc-try" />
179
+ <tag name="rollback" type="UNPAIRED" documentation="discards try block" documentationUrl="https://latte.nette.org/en/tags#toc-rollback" />
180
+ <tag name="tag" type="ATTR_ONLY" documentation="dynamic name of HTML element" documentationUrl="https://latte.nette.org/en/tags#toc-n-tag">
181
+ <arguments>
182
+ <argument name="expression" types="PHP_EXPRESSION" required="true" type="string" repeatable="true" />
183
+ </arguments>
184
+ </tag>
185
+ <tag name="translate" type="PAIR" documentation="to make the translation tags work, you need to set up translator. You can also use the translate filter for translation." documentationUrl="https://latte.nette.org/en/tags#toc-translate">
186
+ <arguments>
187
+ <argument name="args" types="PHP_EXPRESSION,KEY_VALUE" type="mixed" repeatable="true" />
188
+ </arguments>
189
+ </tag>
190
+ <tag name="ifchanged" type="PAIR" documentation="test if there has been a change" documentationUrl="https://latte.nette.org/en/tags#toc-ifchanged">
191
+ <arguments>
192
+ <argument name="expression" types="PHP_EXPRESSION" required="true" repeatable="true" />
193
+ </arguments>
194
+ </tag>
195
+ <tag name="skipIf" type="UNPAIRED" documentation="skip the current loop iteration" documentationUrl="https://latte.nette.org/en/tags#toc-continueif-skipif-breakif">
196
+ <arguments>
197
+ <argument name="condition" types="PHP_CONDITION" type="bool" required="true" />
198
+ </arguments>
199
+ </tag>
200
+ <tag name="var" type="UNPAIRED" documentation="variable creation" documentationUrl="https://latte.nette.org/en/tags#toc-var-default">
201
+ <arguments>
202
+ <argument name="variable" types="VARIABLE_DEFINITION_EXPRESSION" required="true" repeatable="true" />
203
+ </arguments>
204
+ </tag>
205
+ <tag name="trace" type="UNPAIRED" documentation="shows stack trace" documentationUrl="https://latte.nette.org/en/tags#toc-trace" />
206
+ <tag name="varPrint" type="UNPAIRED" arguments="all" documentation="suggests types of variables" documentationUrl="https://latte.nette.org/en/type-system#toc-varprint" />
207
+ <tag name="varType" type="UNPAIRED" documentation="declares type of variable" documentationUrl="https://latte.nette.org/en/type-system#toc-vartype">
208
+ <arguments>
209
+ <argument name="file" types="PHP_TYPE" required="true" />
210
+ <argument name="variable" types="VARIABLE_DEFINITION" required="true" />
211
+ </arguments>
212
+ </tag>
213
+ <tag name="while" type="PAIR" multiLine="true" documentation="while" documentationUrl="https://latte.nette.org/en/tags#toc-while">
214
+ <arguments>
215
+ <argument name="condition" types="PHP_CONDITION" type="bool" required="true" />
216
+ </arguments>
217
+ </tag>
218
+ <tag name="iterateWhile" type="PAIR" multiLine="true" documentation="structured foreach" documentationUrl="https://latte.nette.org/en/tags#toc-iteratewhile" />
219
+ <tag name="embed" type="PAIR" multiLine="true" documentation="loads the template or block and allows you to overwrite the blocks" documentationUrl="https://latte.nette.org/en/template-inheritance#toc-unit-inheritance">
220
+ <arguments>
221
+ <argument name="file" types="BLOCK_USAGE,PHP_IDENTIFIER,VARIABLE,PHP_EXPRESSION" type="string" required="true" />
222
+ <argument name="key-value" types="KEY_VALUE" repeatable="true" />
223
+ </arguments>
224
+ </tag>
225
+ <!-- @deprecated - latte -->
226
+ <tag name="assign" type="UNPAIRED" arguments="$variable = expr" deprecatedMessage="Use {var } instead" />
227
+ <tag name="?" type="UNPAIRED" arguments="expression" deprecatedMessage="Tag {? ...} is deprecated in Latte 2.4. For variable definitions use {var ...} or {php ...} in other cases." />
228
+ <tag name="includeblock" arguments="file" type="UNPAIRED" deprecatedMessage="Use {include} instead" />
229
+ </tags>
230
+ <filters>
231
+ <filter name="truncate" description="shortens the length preserving whole words" documentationUrl="https://latte.nette.org/en/filters#toc-truncate">
232
+ <filterArguments>
233
+ <filterArgument name="length" type="int" />
234
+ <filterArgument name="append" type="string" defaultValue="'…'" />
235
+ </filterArguments>
236
+ </filter>
237
+ <filter name="substr" description="returns part of the string" documentationUrl="https://latte.nette.org/en/filters#toc-substr">
238
+ <filterArguments>
239
+ <filterArgument name="offset" type="int" />
240
+ <filterArgument name="length" type="int" defaultValue="null" />
241
+ </filterArguments>
242
+ </filter>
243
+ <filter name="trim" description="strips whitespace or other characters from the beginning and end of the string" documentationUrl="https://latte.nette.org/en/filters#toc-trim">
244
+ <filterArguments>
245
+ <filterArgument name="charlist" type="string" defaultValue="' \t\n\r\0\x0B\u{A0}'" />
246
+ </filterArguments>
247
+ </filter>
248
+ <filter name="translate" description="it translates expressions into other languages. To make the filter available, you need set up translator." documentationUrl="https://latte.nette.org/en/filters#toc-translate">
249
+ <filterArguments>
250
+ <filterArgument name="args" type="mixed" repeatable="true" defaultValue="null" />
251
+ </filterArguments>
252
+ </filter>
253
+ <filter name="stripHtml" description="removes HTML tags and converts HTML entities to text" documentationUrl="https://latte.nette.org/en/filters#toc-striphtml" />
254
+ <filter name="strip" description="removes whitespace" documentationUrl="https://latte.nette.org/en/filters#toc-spaceless" />
255
+ <filter name="indent" description="indents the text from left with number of tabs" documentationUrl="https://latte.nette.org/en/filters#toc-indent">
256
+ <filterArguments>
257
+ <filterArgument name="level" type="int" />
258
+ <filterArgument name="char" type="string" defaultValue="'\t'" />
259
+ </filterArguments>
260
+ </filter>
261
+ <filter name="replace" description="replaces all occurrences of the search string with the replacement" documentationUrl="https://latte.nette.org/en/filters#toc-replace">
262
+ <filterArguments>
263
+ <filterArgument name="search" type="string|array" />
264
+ <filterArgument name="replace" type="string" defaultValue="''" />
265
+ </filterArguments>
266
+ </filter>
267
+ <filter name="replaceRE" inputType="string" description="replaces all occurrences according to regular expression" documentationUrl="https://latte.nette.org/en/filters#toc-replacere">
268
+ <filterArguments>
269
+ <filterArgument name="pattern" type="string" />
270
+ <filterArgument name="replace" type="string" defaultValue="''" />
271
+ </filterArguments>
272
+ </filter>
273
+ <filter name="padLeft" inputType="string|int|bool|float|null" description="completes the string to given length from left" documentationUrl="https://latte.nette.org/en/filters#toc-padleft">
274
+ <filterArguments>
275
+ <filterArgument name="length" type="int" />
276
+ <filterArgument name="pad" type="string" defaultValue="' '" />
277
+ </filterArguments>
278
+ </filter>
279
+ <filter name="padRight" inputType="string|int|bool|float|null" description="completes the string to given length from right" documentationUrl="https://latte.nette.org/en/filters#toc-padright">
280
+ <filterArguments>
281
+ <filterArgument name="length" type="int" />
282
+ <filterArgument name="pad" type="string" defaultValue="' '" />
283
+ </filterArguments>
284
+ </filter>
285
+ <filter name="repeat" description="repeats the string" documentationUrl="https://latte.nette.org/en/filters#toc-repeat">
286
+ <filterArguments>
287
+ <filterArgument name="count" type="int" />
288
+ </filterArguments>
289
+ </filter>
290
+ <filter name="implode" inputType="string[]" description="joins an array to a string" documentationUrl="https://latte.nette.org/en/filters#toc-implode">
291
+ <filterArguments>
292
+ <filterArgument name="glue" type="string" defaultValue="''" />
293
+ </filterArguments>
294
+ </filter>
295
+ <filter name="webalize" description="adjusts the UTF-8 string to the shape used in the URL" documentationUrl="https://latte.nette.org/en/filters#toc-webalize" />
296
+ <filter name="breakLines" description="inserts HTML line breaks before all newlines" documentationUrl="https://latte.nette.org/en/filters#toc-breaklines" />
297
+ <filter name="length" inputType="array|\Countable|\Traversable|string" returnType="int" description="returns length of a string or array" />
298
+ <filter name="sort" inputType="array" returnType="array" description="simply sorts array" documentationUrl="https://latte.nette.org/en/filters#toc-sort" />
299
+ <filter name="reverse" inputType="string|iterable" returnType="string|array" description="reverses an UTF‑8 string or array" documentationUrl="https://latte.nette.org/en/filters#toc-reverse" />
300
+ <filter name="batch" inputType="iterable" returnType="\Generator" description="returns length of a string or array" documentationUrl="https://latte.nette.org/en/filters#toc-batch">
301
+ <filterArguments>
302
+ <filterArgument name="array" type="array"/>
303
+ <filterArgument name="length" type="int"/>
304
+ <filterArgument name="item" type="mixed" defaultValue="null"/>
305
+ </filterArguments>
306
+ </filter>
307
+
308
+ <filter name="clamp" inputType="int|float" returnType="int|float" description="returns value clamped to the inclusive range of min and max." documentationUrl="https://latte.nette.org/en/filters#toc-clamp">
309
+ <filterArguments>
310
+ <filterArgument name="min" type="int|float"/>
311
+ <filterArgument name="max" type="int|float"/>
312
+ </filterArguments>
313
+ </filter>
314
+
315
+ <filter name="lower" inputType="string|int|bool|float|null" description="makes a string lower case" documentationUrl="https://latte.nette.org/en/filters#toc-lower" />
316
+ <filter name="upper" inputType="string|int|bool|float|null" description="makes a string upper case" documentationUrl="https://latte.nette.org/en/filters#toc-upper" />
317
+ <filter name="firstUpper" inputType="string|int|bool|float|null" description="makes the first letter upper case" documentationUrl="https://latte.nette.org/en/filters#toc-firstupper" />
318
+ <filter name="capitalize" inputType="string|int|bool|float|null" description="lower case, the first letter of each word upper case" documentationUrl="https://latte.nette.org/en/filters#toc-capitalize" />
319
+
320
+ <filter name="date" inputType="string|int|\DateTimeInterface|\DateInterval|null" returnType="string|null" description="formats date" documentationUrl="https://latte.nette.org/en/filters#toc-date">
321
+ <filterArguments>
322
+ <filterArgument name="format" type="string"/>
323
+ </filterArguments>
324
+ </filter>
325
+
326
+ <filter name="number" inputType="string|int|float|null" description="format number" documentationUrl="https://latte.nette.org/en/filters#toc-number">
327
+ <filterArguments>
328
+ <filterArgument name="decimals" type="int" defaultValue="0"/>
329
+ <filterArgument name="decPoint" type="string" defaultValue="'.'"/>
330
+ <filterArgument name="thousandsSep" type="string" defaultValue="','"/>
331
+ </filterArguments>
332
+ </filter>
333
+
334
+ <filter name="bytes" inputType="float|int" description="formats size in bytes" documentationUrl="https://latte.nette.org/en/filters#toc-bytes">
335
+ <filterArguments>
336
+ <filterArgument name="precision" type="int" defaultValue="2"/>
337
+ </filterArguments>
338
+ </filter>
339
+
340
+ <filter name="dataStream" inputType="string" description="Data URI protocol conversion" documentationUrl="https://latte.nette.org/en/filters#toc-datastream">
341
+ <filterArguments>
342
+ <filterArgument name="mimeType" type="string" defaultValue="detect"/>
343
+ </filterArguments>
344
+ </filter>
345
+
346
+ <filter name="noescape" description="prints a variable without escaping" documentationUrl="https://latte.nette.org/en/filters#toc-noescape" />
347
+ <filter name="escapeurl" inputType="string" description="escapes parameter in URL" documentationUrl="https://latte.nette.org/en/filters#toc-escapeurl" />
348
+
349
+ <filter name="nocheck" inputType="string" description="prevents automatic URL sanitization" documentationUrl="https://latte.nette.org/en/filters#toc-nocheck" />
350
+ <filter name="checkurl" inputType="string" description="sanitizes string for use inside href attribute" documentationUrl="https://latte.nette.org/en/filters#toc-checkurl" />
351
+
352
+ <filter name="query" inputType="string|array" description="generates a query string in the URL" documentationUrl="https://latte.nette.org/en/filters#toc-query" />
353
+ <filter name="ceil" inputType="float" returnType="float" description="rounds a number up to a given precision" documentationUrl="https://latte.nette.org/en/filters#toc-ceil">
354
+ <filterArguments>
355
+ <filterArgument name="precision" type="int" defaultValue="0" />
356
+ </filterArguments>
357
+ </filter>
358
+
359
+ <filter name="explode" inputType="string" returnType="string[]" description="splits a string by the given delimiter" documentationUrl="https://latte.nette.org/en/filters#toc-explode">
360
+ <filterArguments>
361
+ <filterArgument name="separator" type="string" defaultValue="''"/>
362
+ </filterArguments>
363
+ </filter>
364
+ <filter name="first" inputType="string|array" returnType="mixed" description="returns first element of array or character of string" documentationUrl="https://latte.nette.org/en/filters#toc-first" />
365
+ <filter name="floor" inputType="float" returnType="float" description="rounds a number down to a given precision" documentationUrl="https://latte.nette.org/en/filters#toc-floor">
366
+ <filterArguments>
367
+ <filterArgument name="precision" type="int" defaultValue="0"/>
368
+ </filterArguments>
369
+ </filter>
370
+ <filter name="join" description="joins an array to a string" documentationUrl="https://latte.nette.org/en/filters#toc-implode">
371
+ <filterArguments>
372
+ <filterArgument name="glue" type="string" defaultValue="''"/>
373
+ </filterArguments>
374
+ </filter>
375
+ <filter name="last" inputType="string|array" returnType="mixed" description="returns last element of array or character of string" documentationUrl="https://latte.nette.org/en/filters#toc-last" />
376
+ <filter name="random" inputType="string|array" returnType="mixed" description="returns random element of array or character of string" documentationUrl="https://latte.nette.org/en/filters#toc-random" />
377
+ <filter name="round" inputType="float" returnType="float" description="rounds a number to a given precision" documentationUrl="https://latte.nette.org/en/filters#toc-round">
378
+ <filterArguments>
379
+ <filterArgument name="precision" type="int" defaultValue="0"/>
380
+ </filterArguments>
381
+ </filter>
382
+ <filter name="slice" inputType="string|array" returnType="string|array" description="extracts a slice of an array or a string" documentationUrl="https://latte.nette.org/en/filters#toc-slice">
383
+ <filterArguments>
384
+ <filterArgument name="start" type="int"/>
385
+ <filterArgument name="length" type="int|null" defaultValue="null"/>
386
+ <filterArgument name="preserveKeys" type="bool" defaultValue="false"/>
387
+ </filterArguments>
388
+ </filter>
389
+ <filter name="spaceless" description="removes whitespace similar to {spaceless} tag" documentationUrl="https://latte.nette.org/en/filters#toc-spaceless" />
390
+ <filter name="split" description="splits a string by the given delimiter" documentationUrl="https://latte.nette.org/en/filters#toc-explode">
391
+ <filterArguments>
392
+ <filterArgument name="separator" type="string" defaultValue="''"/>
393
+ </filterArguments>
394
+ </filter>
395
+ </filters>
396
+ <functions>
397
+ <function name="clamp" returnType="int|float" documentation="clamps value to the inclusive range of min and max">
398
+ <functionArguments>
399
+ <functionArgument name="value" type="int|float"/>
400
+ <functionArgument name="min" type="int|float"/>
401
+ <functionArgument name="max" type="int|float"/>
402
+ </functionArguments>
403
+ </function>
404
+ <function name="divisibleBy" returnType="bool" documentation="checks if a variable is divisible by a number">
405
+ <functionArguments>
406
+ <functionArgument name="value" type="int"/>
407
+ </functionArguments>
408
+ </function>
409
+ <function name="even" returnType="bool" documentation="checks if the given number is even">
410
+ <functionArguments>
411
+ <functionArgument name="value" type="int"/>
412
+ </functionArguments>
413
+ </function>
414
+ <function name="hasBlock" returnType="bool" documentation="checks if the block of the specified name exists">
415
+ <functionArguments>
416
+ <functionArgument name="name" type="string"/>
417
+ </functionArguments>
418
+ </function>
419
+ <function name="first" returnType="mixed" documentation="returns first element of array or character of string">
420
+ <functionArguments>
421
+ <functionArgument name="value" type="string|array"/>
422
+ </functionArguments>
423
+ </function>
424
+ <function name="last" returnType="mixed" documentation="returns last element of array or character of string">
425
+ <functionArguments>
426
+ <functionArgument name="value" type="string|array"/>
427
+ </functionArguments>
428
+ </function>
429
+ <function name="odd" returnType="bool" documentation="checks if the given number is odd">
430
+ <functionArguments>
431
+ <functionArgument name="value" type="int"/>
432
+ </functionArguments>
433
+ </function>
434
+ <function name="slice" returnType="string|array" documentation="extracts a slice of an array or a string">
435
+ <functionArguments>
436
+ <functionArgument name="value" type="string|array"/>
437
+ <functionArgument name="start" type="int"/>
438
+ <functionArgument name="length" type="int|null" defaultValue="null"/>
439
+ <functionArgument name="preserveKeys" type="bool" defaultValue="false"/>
440
+ </functionArguments>
441
+ </function>
442
+ </functions>
443
+ </latte>