sidebar-skeleton-compostrap 2.0.10 → 2.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sidebar-skeleton-compostrap",
3
- "version": "2.0.10",
4
- "description": "Simple and fast sidebar skeleton on Bootstrap",
3
+ "version": "2.0.12",
4
+ "description": "Simple and fast sidebar skeleton built on Bootstrap 5.",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "sidebar",
@@ -10,9 +10,9 @@
10
10
  ],
11
11
  "main": "dist/sidebar.js",
12
12
  "style": "dist/sidebar.css",
13
- "sass": "scss/sidebar.scss",
13
+ "sass": "src/scss/sidebar.scss",
14
14
  "devDependencies": {
15
- "sass": "^1.70.0",
15
+ "sass": "^1.97.1",
16
16
  "vite": "^7.3.0"
17
17
  },
18
18
  "peerDependencies": {
package/readme.md CHANGED
@@ -9,11 +9,11 @@ Ideal for dashboards, admin panels, and any layout needing a responsive sidebar.
9
9
 
10
10
  ## Installation
11
11
  ```bash
12
- npm install --save sidebar-skeleton-compostrap
12
+ npm npm install sidebar-skeleton-compostrap
13
13
  ```
14
14
 
15
15
  ## Built on
16
- - Bootstrap: https://getbootstrap.com
16
+ - Bootstrap 5x: https://getbootstrap.com
17
17
 
18
18
  ## Demo
19
19
  Live demo: https://compostrap.github.io/skeleton
@@ -21,45 +21,45 @@ HTML template code: https://raw.githubusercontent.com/compostrap/sidebar-skeleto
21
21
 
22
22
  ## Introduction
23
23
  Simple and fast sidebar skeleton is built on Bootstrap.
24
- You should be familiar with Bootstrap usage and have basic knowledge of Sass, npm, and optionally Grunt.
24
+ You should be familiar with Bootstrap usage and have basic knowledge of Sass, npm.
25
25
 
26
26
  ## Customize sidebar when navbar is used
27
27
  When using a navbar, extend the class called wrapper:
28
28
 
29
- Navbar | Class
30
- ------------ | ----------------------
31
- unused | wrapper
32
- Used | wrapper-navbar-used
33
- Used (fixed) | wrapper-navbar-fixed
29
+ | Navbar | Class |
30
+ |--------------|----------------------|
31
+ | unused | wrapper |
32
+ | Used | wrapper-navbar-used |
33
+ | Used (fixed) | wrapper-navbar-fixed |
34
34
 
35
35
  ## Other classes
36
36
 
37
- Description | Class
38
- ---------------------------- | ---------------------------
39
- Right top rounded in sidebar | sidebar-rounded-top-right
40
- Fixed menu in sidebar | sidebar-menu-fixed
37
+ | Description | Class |
38
+ |------------------------------|---------------------------|
39
+ | Right top rounded in sidebar | sidebar-rounded-top-right |
40
+ | Fixed menu in sidebar | sidebar-menu-fixed |
41
41
 
42
42
  ## Overview of sidebar background colors
43
- Colors match Bootstrap. Add more colors in themes/_theme.scss.
43
+ Colors match Bootstrap.
44
44
 
45
- | Color | Class
46
- | --------------------------------------------------------------- | -----------
47
- | ![#ffffff](https://placehold.co/15x15/ffffff/ffffff.png) | sidebar-bg-white
48
- | ![#f8f9fa](https://placehold.co/15x15/f8f9fa/f8f9fa.png) | sidebar-bg-light
49
- | ![#212529](https://placehold.co/15x15/212529/212529.png) | sidebar-bg-dark
50
- | ![#007bff](https://placehold.co/15x15/007bff/007bff.png) | sidebar-bg-blue
51
- | ![#6f42c1](https://placehold.co/15x15/6f42c1/6f42c1.png) | sidebar-bg-purple
52
- | ![#e83e8c](https://placehold.co/15x15/e83e8c/e83e8c.png) | sidebar-bg-pink
53
- | ![#dc3545](https://placehold.co/15x15/dc3545/dc3545.png) | sidebar-bg-red
54
- | ![#fd7e14](https://placehold.co/15x15/fd7e14/fd7e14.png) | sidebar-bg-orange
55
- | ![#28a745](https://placehold.co/15x15/28a745/28a745.png) | sidebar-bg-green
56
- | ![#20c997](https://placehold.co/15x15/20c997/20c997.png) | sidebar-bg-teal
57
- | ![#17a2b8](https://placehold.co/15x15/17a2b8/17a2b8.png) | sidebar-bg-cyan
45
+ | Color | Class |
46
+ |----------------------------------------------------------|-------------------|
47
+ | ![#ffffff](https://placehold.co/15x15/ffffff/ffffff.png) | sidebar-bg-white |
48
+ | ![#f8f9fa](https://placehold.co/15x15/f8f9fa/f8f9fa.png) | sidebar-bg-light |
49
+ | ![#212529](https://placehold.co/15x15/212529/212529.png) | sidebar-bg-dark |
50
+ | ![#007bff](https://placehold.co/15x15/007bff/007bff.png) | sidebar-bg-blue |
51
+ | ![#6f42c1](https://placehold.co/15x15/6f42c1/6f42c1.png) | sidebar-bg-purple |
52
+ | ![#e83e8c](https://placehold.co/15x15/e83e8c/e83e8c.png) | sidebar-bg-pink |
53
+ | ![#dc3545](https://placehold.co/15x15/dc3545/dc3545.png) | sidebar-bg-red |
54
+ | ![#fd7e14](https://placehold.co/15x15/fd7e14/fd7e14.png) | sidebar-bg-orange |
55
+ | ![#28a745](https://placehold.co/15x15/28a745/28a745.png) | sidebar-bg-green |
56
+ | ![#20c997](https://placehold.co/15x15/20c997/20c997.png) | sidebar-bg-teal |
57
+ | ![#17a2b8](https://placehold.co/15x15/17a2b8/17a2b8.png) | sidebar-bg-cyan |
58
58
 
59
59
  ## Sidebar menu toggle
60
60
  If you want your own toggle button visible at all resolutions, update the class in sidebar.js:
61
61
 
62
- Description | Class
63
- ------------------------ | ------------------------
64
- Visible in small devices | sidebar-toggle
65
- Visible all resolutions | sidebar-toggle-visible
62
+ | Description | Class |
63
+ |--------------------------|------------------------|
64
+ | Visible in small devices | sidebar-toggle |
65
+ | Visible all resolution | sidebar-toggle-visible |
@@ -3,9 +3,9 @@
3
3
  //
4
4
 
5
5
  @use "../utils/index" as utils;
6
- @import "../../../node_modules/bootstrap/scss/functions";
7
- @import "../../../node_modules/bootstrap/scss/variables";
8
- @import "../../../node_modules/bootstrap/scss/mixins";
6
+ @import "bootstrap/scss/functions";
7
+ @import "bootstrap/scss/variables";
8
+ @import "bootstrap/scss/mixins";
9
9
 
10
10
  .sidebar {
11
11
  margin-left: -(utils.$sm-width);
@@ -3,8 +3,8 @@
3
3
  //
4
4
 
5
5
  @use "sass:map";
6
- @import "../../../node_modules/bootstrap/scss/functions";
7
- @import "../../../node_modules/bootstrap/scss/variables";
6
+ @import "bootstrap/scss/functions";
7
+ @import "bootstrap/scss/variables";
8
8
 
9
9
  $theme-colors: (
10
10
  'bg-white': ('sidebar-bg': $white),
package/vite.build.js CHANGED
@@ -2,4 +2,4 @@
2
2
  import './src/scss/sidebar.scss';
3
3
 
4
4
  // JS → sidebar.min.js
5
- import './src/sidebar.js';
5
+ import './src/sidebar';
package/vite.config.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineConfig } from 'vite'
2
- import path from 'path'
1
+ import { defineConfig } from 'vite';
2
+ import path from 'path';
3
3
 
4
4
  export default defineConfig({
5
5
  base: '',
@@ -8,26 +8,31 @@ export default defineConfig({
8
8
  allow: ['.', 'dist']
9
9
  }
10
10
  },
11
+ css: {
12
+ preprocessorOptions: {
13
+ scss: {
14
+ silenceDeprecations: [
15
+ 'import',
16
+ 'if-function',
17
+ 'global-builtin',
18
+ 'color-functions'
19
+ ]
20
+ }
21
+ }
22
+ },
11
23
  build: {
12
24
  outDir: 'dist',
13
25
  emptyOutDir: true,
14
26
  lib: {
15
27
  entry: path.resolve(__dirname, 'vite.build.js'),
16
- formats: ['es'],
17
- fileName: () => 'sidebar.js',
28
+ formats: ['es']
18
29
  },
19
30
  cssMinify: false,
20
31
  rollupOptions: {
21
32
  output: {
22
33
  assetFileNames: 'sidebar.[ext]',
23
- },
24
- },
25
- css: {
26
- preprocessorOptions: {
27
- scss: {
28
- quietDeps: true
29
- },
30
- },
31
- },
32
- },
33
- })
34
+ entryFileNames: 'sidebar.js'
35
+ }
36
+ }
37
+ }
38
+ });
@@ -1,31 +0,0 @@
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
@@ -1,69 +0,0 @@
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>
@@ -1,443 +0,0 @@
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>
@@ -1,143 +0,0 @@
1
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
2
-
3
- <xs:element name="latte">
4
- <xs:complexType>
5
- <xs:sequence>
6
- <xs:element name="tags" type="tagsType"/>
7
- <xs:element name="filters" type="filtersType"/>
8
- <xs:element name="functions" type="functionsType"/>
9
- <xs:element name="variables" type="variablesType"/>
10
- <xs:element name="assets" type="assetsType"/>
11
- </xs:sequence>
12
- <xs:attribute name="vendor" type="xs:string" use="required"/>
13
- <xs:attribute name="version" type="xs:string" use="required"/>
14
- </xs:complexType>
15
- </xs:element>
16
-
17
- <xs:complexType name="tagsType">
18
- <xs:sequence>
19
- <xs:element name="tag" type="tagType" maxOccurs="unbounded"/>
20
- </xs:sequence>
21
- </xs:complexType>
22
-
23
- <xs:complexType name="filtersType">
24
- <xs:sequence>
25
- <xs:element name="filter" type="filterType" maxOccurs="unbounded"/>
26
- </xs:sequence>
27
- </xs:complexType>
28
-
29
- <xs:complexType name="functionsType">
30
- <xs:sequence>
31
- <xs:element name="function" type="functionType" maxOccurs="unbounded"/>
32
- </xs:sequence>
33
- </xs:complexType>
34
-
35
- <xs:complexType name="variablesType">
36
- <xs:sequence>
37
- <xs:element name="variable" type="variableType" maxOccurs="unbounded"/>
38
- </xs:sequence>
39
- </xs:complexType>
40
-
41
- <xs:complexType name="assetsType">
42
- <xs:sequence>
43
- <xs:element name="assetMappings" type="assetMappingsType" minOccurs="0" maxOccurs="1"/>
44
- </xs:sequence>
45
- <xs:attribute name="basePath" type="xs:string" default="%resourceRoot%"/>
46
- </xs:complexType>
47
-
48
- <xs:complexType name="argumentsType">
49
- <xs:sequence>
50
- <xs:element name="argument" type="argumentType" maxOccurs="unbounded"/>
51
- </xs:sequence>
52
- </xs:complexType>
53
-
54
- <xs:complexType name="filterArgumentsType">
55
- <xs:sequence>
56
- <xs:element name="filterArgument" type="filterArgumentType" maxOccurs="unbounded"/>
57
- </xs:sequence>
58
- </xs:complexType>
59
-
60
- <xs:complexType name="functionArgumentsType">
61
- <xs:sequence>
62
- <xs:element name="functionArgument" type="functionArgumentType" maxOccurs="unbounded"/>
63
- </xs:sequence>
64
- </xs:complexType>
65
-
66
- <xs:complexType name="tagType">
67
- <xs:sequence>
68
- <xs:element name="arguments" type="argumentsType" minOccurs="0"/>
69
- </xs:sequence>
70
- <xs:attribute name="name" type="xs:string" use="required"/>
71
- <xs:attribute name="type" type="xs:string" use="required"/>
72
- <xs:attribute name="documentation" type="xs:string"/>
73
- <xs:attribute name="documentationUrl" type="xs:string"/>
74
- <xs:attribute name="deprecatedMessage" type="xs:string"/>
75
- <xs:attribute name="arguments" type="xs:string"/>
76
- <xs:attribute name="allowFilters" type="xs:boolean"/>
77
- <xs:attribute name="multiLine" type="xs:boolean"/>
78
- </xs:complexType>
79
-
80
- <xs:complexType name="filterType">
81
- <xs:sequence>
82
- <xs:element name="filterArguments" type="filterArgumentsType" minOccurs="0"/>
83
- </xs:sequence>
84
- <xs:attribute name="name" type="xs:string" use="required"/>
85
- <xs:attribute name="description" type="xs:string" use="required"/>
86
- <xs:attribute name="inputType" default="string|null" type="xs:string"/>
87
- <xs:attribute name="returnType" default="string" type="xs:string"/>
88
- <xs:attribute name="documentation" type="xs:string"/>
89
- <xs:attribute name="documentationUrl" type="xs:string"/>
90
- </xs:complexType>
91
-
92
- <xs:complexType name="functionType">
93
- <xs:sequence>
94
- <xs:element name="functionArguments" type="functionArgumentsType" minOccurs="0"/>
95
- </xs:sequence>
96
- <xs:attribute name="name" type="xs:string" use="required"/>
97
- <xs:attribute name="returnType" default="mixed" type="xs:string" use="required"/>
98
- <xs:attribute name="documentation" type="xs:string"/>
99
- <xs:attribute name="documentationUrl" type="xs:string"/>
100
- <xs:attribute name="deprecatedMessage" type="xs:string"/>
101
- </xs:complexType>
102
-
103
- <xs:complexType name="variableType">
104
- <xs:attribute name="name" type="xs:string" use="required"/>
105
- <xs:attribute name="type" default="mixed" type="xs:string" use="required"/>
106
- </xs:complexType>
107
-
108
- <xs:complexType name="assetMappingsType">
109
- <xs:sequence>
110
- <xs:element name="assetMapping" type="assetMappingType" minOccurs="0"/>
111
- </xs:sequence>
112
- </xs:complexType>
113
-
114
- <xs:complexType name="argumentType">
115
- <xs:attribute name="name" type="xs:string" use="required"/>
116
- <xs:attribute name="types" type="xs:string" use="required"/>
117
- <xs:attribute name="type" type="xs:string"/>
118
- <xs:attribute name="required" type="xs:boolean"/>
119
- <xs:attribute name="repeatable" type="xs:boolean"/>
120
- </xs:complexType>
121
-
122
- <xs:complexType name="filterArgumentType">
123
- <xs:attribute name="name" type="xs:string" use="required"/>
124
- <xs:attribute name="type" type="xs:string" use="required"/>
125
- <xs:attribute name="defaultValue" type="xs:string"/>
126
- <xs:attribute name="description" type="xs:string"/>
127
- <xs:attribute name="repeatable" type="xs:boolean"/>
128
- </xs:complexType>
129
-
130
- <xs:complexType name="functionArgumentType">
131
- <xs:attribute name="name" type="xs:string" use="required"/>
132
- <xs:attribute name="type" type="xs:string" use="required"/>
133
- <xs:attribute name="defaultValue" type="xs:string"/>
134
- <xs:attribute name="description" type="xs:string"/>
135
- </xs:complexType>
136
-
137
- <xs:complexType name="assetMappingType">
138
- <xs:attribute name="name" type="xs:string" use="required"/>
139
- <xs:attribute name="path" type="xs:string"/>
140
- <xs:attribute name="extensions" type="xs:string"/>
141
- </xs:complexType>
142
-
143
- </xs:schema>
@@ -1,68 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE latte PUBLIC "-//LATTE//Latte plugin configuration XML V0.0.1//EN" "Latte.xsd">
3
- <latte version="1" vendor="nette/application">
4
- <tags>
5
- <!-- nette/application tags -->
6
- <tag name="cache" type="PAIR" arguments="if => expr, key, …" documentation="caches a template section" documentationUrl="https://doc.nette.org/en/caching#toc-caching-in-latte">
7
- <arguments>
8
- <argument name="name[:part]" types="KEY_VALUE" type="string" required="true" />
9
- <argument name="arguments" types="PHP_EXPRESSION" repeatable="true" />
10
- </arguments>
11
- </tag>
12
- <tag name="control" type="UNPAIRED" documentation="prints a component" documentationUrl="https://doc.nette.org/en/application/components#toc-rendering">
13
- <arguments>
14
- <argument name="name[:part]" types="PHP_IDENTIFIER,PHP_EXPRESSION" type="string" required="true" />
15
- <argument name="arguments" types="PHP_EXPRESSION" repeatable="true" />
16
- </arguments>
17
- </tag>
18
- <tag name="link" type="UNPAIRED" documentation="prints a link" documentationUrl="https://doc.nette.org/en/application/creating-links#toc-in-the-presenter-template">
19
- <arguments>
20
- <argument name="destination" types="LINK_DESTINATION,PHP_EXPRESSION" type="string" required="true" />
21
- <argument name="arguments" types="LINK_PARAMETERS" repeatable="true" />
22
- </arguments>
23
- </tag>
24
- <tag name="href" type="ATTR_ONLY" documentation="link in <a> HTML elements" documentationUrl="https://doc.nette.org/en/application/creating-links#toc-in-the-presenter-template">
25
- <arguments>
26
- <argument name="destination" types="LINK_DESTINATION,PHP_EXPRESSION" type="string" required="true" />
27
- <argument name="arguments" types="LINK_PARAMETERS" repeatable="true" />
28
- </arguments>
29
- </tag>
30
- <tag name="nonce" type="ATTR_ONLY" />
31
- <tag name="plink" type="UNPAIRED" documentation="prints a link to a presenter" documentationUrl="https://doc.nette.org/en/application/creating-links#toc-in-the-presenter-template">
32
- <arguments>
33
- <argument name="destination" types="LINK_DESTINATION,PHP_EXPRESSION" type="string" required="true" />
34
- <argument name="arguments" types="LINK_PARAMETERS" repeatable="true" />
35
- </arguments>
36
- </tag>
37
- <tag name="snippet" type="PAIR" multiLine="true" documentation="a template snippet that can be sent by AJAX" documentationUrl="https://doc.nette.org/en/application/ajax#toc-tag-snippet">
38
- <arguments>
39
- <argument name="name" types="PHP_IDENTIFIER,VARIABLE,PHP_EXPRESSION" type="string" />
40
- </arguments>
41
- </tag>
42
- <tag name="snippetArea" type="PAIR" multiLine="true" documentation="snippets envelope">
43
- <arguments>
44
- <argument name="name" types="PHP_IDENTIFIER,PHP_EXPRESSION" type="string" required="true" />
45
- </arguments>
46
- </tag>
47
- <!-- @deprecated - nette/application -->
48
- <tag name="ifCurrent" type="PAIR" deprecatedMessage="Tag {ifCurrent} is deprecated in Latte 2.6. Use custom function isLinkCurrent() instead.">
49
- <arguments>
50
- <argument name="destination" types="LINK_DESTINATION,PHP_EXPRESSION" type="string" required="true" />
51
- <argument name="arguments" types="LINK_PARAMETERS" repeatable="true" />
52
- </arguments>
53
- </tag>
54
- </tags>
55
- <functions>
56
- <function name="isLinkCurrent" returnType="bool">
57
- <functionArguments>
58
- <functionArgument name="destination" type="string"/>
59
- <functionArgument name="args" type="mixed" defaultValue="[]"/>
60
- </functionArguments>
61
- </function>
62
- <function name="isModuleCurrent" returnType="bool">
63
- <functionArguments>
64
- <functionArgument name="moduleName" type="string"/>
65
- </functionArguments>
66
- </function>
67
- </functions>
68
- </latte>
@@ -1,33 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE latte PUBLIC "-//LATTE//Latte plugin configuration XML V0.0.1//EN" "Latte.xsd">
3
- <latte version="1" vendor="nette/assets">
4
- <tags>
5
- <tag name="asset" type="UNPAIRED_ATTR" documentation="Asset management for PHP with versioning, caching and mappers for various storage backends" documentationUrl="https://doc.nette.org/en/assets">
6
- <arguments>
7
- <argument name="file" types="FILE_PATH" type="string" required="true" />
8
- </arguments>
9
- </tag>
10
- <tag name="asset?" type="UNPAIRED_ATTR" documentation="Optional asset" documentationUrl="https://doc.nette.org/en/assets#toc-optional-assets">
11
- <arguments>
12
- <argument name="file" types="FILE_PATH" type="string" required="true" />
13
- </arguments>
14
- </tag>
15
- <tag name="preload" type="UNPAIRED" documentation="Improve page load performance" documentationUrl="https://doc.nette.org/en/assets#toc-preload">
16
- <arguments>
17
- <argument name="file" types="FILE_PATH" type="string" required="true" />
18
- </arguments>
19
- </tag>
20
- </tags>
21
- <functions>
22
- <function name="asset" returnType="string" documentation="Asset management for PHP with versioning, caching and mappers for various storage backends" documentationUrl="https://doc.nette.org/en/assets">
23
- <functionArguments>
24
- <functionArgument name="filePath" type="string"/>
25
- </functionArguments>
26
- </function>
27
- <function name="tryAsset" returnType="bool" documentation="Returns true if asset exists" documentationUrl="https://doc.nette.org/en/assets#toc-optional-assets">
28
- <functionArguments>
29
- <functionArgument name="filePath" type="string"/>
30
- </functionArguments>
31
- </function>
32
- </functions>
33
- </latte>
@@ -1,43 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE latte PUBLIC "-//LATTE//Latte plugin configuration XML V0.0.1//EN" "Latte.xsd">
3
- <latte version="1" vendor="nette/forms">
4
- <tags>
5
- <tag name="form" type="PAIR" multiLine="true" documentation="prints a form element" documentationUrl="https://doc.nette.org/en/forms/rendering#toc-latte">
6
- <arguments>
7
- <argument name="name" types="PHP_IDENTIFIER,VARIABLE,PHP_EXPRESSION" type="string" required="true" />
8
- </arguments>
9
- </tag>
10
- <tag name="formContainer" type="PAIR" multiLine="true" documentation="helps with rendering of inputs inside a form container" documentationUrl="https://doc.nette.org/en/forms/rendering#toc-manual-rendering">
11
- <arguments>
12
- <argument name="name" types="PHP_IDENTIFIER,VARIABLE,PHP_EXPRESSION" type="string" required="true" />
13
- </arguments>
14
- </tag>
15
- <tag name="formPrint" type="UNPAIRED" documentation="generates Latte form blueprint" documentationUrl="https://doc.nette.org/en/forms/rendering#toc-latte">
16
- <arguments>
17
- <argument name="name" types="PHP_IDENTIFIER,VARIABLE,PHP_EXPRESSION" type="string" required="true" />
18
- </arguments>
19
- </tag>
20
- <tag name="formClassPrint" type="UNPAIRED" documentation="prints PHP class for form data" documentationUrl="https://doc.nette.org/en/forms/in-presenter#toc-mapping-to-classes"/>
21
- <tag name="formContext" type="PAIR" documentation="partial form rendering" documentationUrl="https://doc.nette.org/en/forms/rendering#toc-latte" deprecatedMessage="This tag was removed in nette/forms 4.0, there is no replacement."/>
22
- <tag name="input" type="UNPAIRED" documentation="prints a form input element" documentationUrl="https://doc.nette.org/en/forms/rendering#toc-latte">
23
- <arguments>
24
- <argument name="name" types="PHP_IDENTIFIER,VARIABLE,CONTROL,PHP_EXPRESSION" type="string" required="true" />
25
- </arguments>
26
- </tag>
27
- <tag name="inputError" type="UNPAIRED" documentation="prints error message for form input element" documentationUrl="https://doc.nette.org/en/forms/rendering#toc-latte">
28
- <arguments>
29
- <argument name="name" types="PHP_IDENTIFIER,VARIABLE,CONTROL,PHP_EXPRESSION" type="string" required="true" />
30
- </arguments>
31
- </tag>
32
- <tag name="label" type="AUTO_EMPTY" documentation="prints a form input label" documentationUrl="https://doc.nette.org/en/forms/rendering#toc-latte">
33
- <arguments>
34
- <argument name="name" types="PHP_IDENTIFIER,VARIABLE,CONTROL,PHP_EXPRESSION" type="string" required="true" />
35
- </arguments>
36
- </tag>
37
- <tag name="name" type="ATTR_ONLY" documentation="activates an HTML input element" documentationUrl="https://doc.nette.org/en/forms/rendering#toc-latte">
38
- <arguments>
39
- <argument name="name" types="PHP_IDENTIFIER,VARIABLE,CONTROL,PHP_EXPRESSION" type="string" required="true" />
40
- </arguments>
41
- </tag>
42
- </tags>
43
- </latte>
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="JavaScriptLibraryMappings">
4
- <file url="PROJECT" libraries="{bootstrap}" />
5
- <includedPredefinedLibrary name="Node.js Core" />
6
- </component>
7
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/sidebar-skeleton.iml" filepath="$PROJECT_DIR$/.idea/sidebar-skeleton.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/php.xml DELETED
@@ -1,19 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="MessDetectorOptionsConfiguration">
4
- <option name="transferred" value="true" />
5
- </component>
6
- <component name="PHPCSFixerOptionsConfiguration">
7
- <option name="transferred" value="true" />
8
- </component>
9
- <component name="PHPCodeSnifferOptionsConfiguration">
10
- <option name="highlightLevel" value="WARNING" />
11
- <option name="transferred" value="true" />
12
- </component>
13
- <component name="PhpStanOptionsConfiguration">
14
- <option name="transferred" value="true" />
15
- </component>
16
- <component name="PsalmOptionsConfiguration">
17
- <option name="transferred" value="true" />
18
- </component>
19
- </project>
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$" />
5
- <orderEntry type="inheritedJdk" />
6
- <orderEntry type="sourceFolder" forTests="false" />
7
- <orderEntry type="library" name="bootstrap" level="application" />
8
- </component>
9
- </module>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>