You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src_app/app/component/doc/doc.route.component.ts
+86-46Lines changed: 86 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -35,38 +35,54 @@ export class DocComponent {
35
35
readonlysplitDoc={
36
36
inputs: [
37
37
{
38
-
name: 'direction',
38
+
name: 'dir',
39
39
type: 'string',
40
-
default: '"horizontal"',
41
-
details: 'Select split direction: <code>"horizontal"</code> or <code>"vertical"</code>.',
40
+
default: '"ltr"',
41
+
details:
42
+
'Indicates the directionality of the areas: <code>"ltr"</code> (left to right) or <code>"rtl"</code> (right to left).',
42
43
},
43
44
{
44
-
name: 'unit',
45
+
name: 'direction',
45
46
type: 'string',
46
-
default: '"percent"',
47
-
details: `Selected unit you want to use: <code>"percent"</code> or <code>"pixel"</code> to specify area sizes.`,
47
+
default: '"horizontal"',
48
+
details: 'Select split direction: <code>"horizontal"</code> or <code>"vertical"</code>.',
48
49
},
49
-
{name: 'gutterSize',type: 'number',default: '11',details: `Gutters's size (dragging elements) in pixels.`},
50
-
{name: 'gutterStep',type: 'number',default: '1',details: `Gutter step while moving in pixels.`},
51
50
{
52
-
name: 'restrictMove',
51
+
name: 'disabled',
53
52
type: 'boolean',
54
53
default: 'false',
55
-
details: 'Set to <code>true</code> if you want to limit gutter move to adjacent areas only.',
54
+
details:
55
+
'Disable the dragging feature (remove cursor/image on gutters). <code>(gutterClick)</code>/<code>(gutterDblClick)</code> still emits.',
56
56
},
57
57
{
58
-
name: 'disabled',
58
+
name: 'gutterDblClickDuration',
59
+
type: 'number',
60
+
default: '0',
61
+
details: `Milliseconds to detect a double click on a gutter. Set it around 300-500ms if you want to use <code>(gutterDblClick)</code> event.`,
62
+
},
63
+
{
64
+
name: 'gutterSize',
65
+
type: 'number',
66
+
default: '11',
67
+
details: `Gutters's size (dragging elements) in pixels.`,
68
+
},
69
+
{
70
+
name: 'gutterStep',
71
+
type: 'number',
72
+
default: '1',
73
+
details: `Gutter step while moving in pixels.`,
74
+
},
75
+
{
76
+
name: 'restrictMove',
59
77
type: 'boolean',
60
78
default: 'false',
61
-
details:
62
-
'Disable the dragging feature (remove cursor/image on gutters). <code>(gutterClick)</code>/<code>(gutterDblClick)</code> still emits.',
79
+
details: 'Set to <code>true</code> if you want to limit gutter move to adjacent areas only.',
63
80
},
64
81
{
65
-
name: 'dir',
82
+
name: 'unit',
66
83
type: 'string',
67
-
default: '"ltr"',
68
-
details:
69
-
'Indicates the directionality of the areas: <code>"ltr"</code> (left to right) or <code>"rtl"</code> (right to left).',
84
+
default: '"percent"',
85
+
details: `Selected unit you want to use: <code>"percent"</code> or <code>"pixel"</code> to specify area sizes.`,
70
86
},
71
87
{
72
88
name: 'useTransition',
@@ -75,26 +91,28 @@ export class DocComponent {
75
91
details:
76
92
'Add transition when toggling visibility using <code>[visible]</code> or <code>[size]</code> changes.<br><u>Warning: Transitions are not working for <a href="https://github.com/philipwalton/flexbugs#flexbug-16">IE/Edge/Safari</a></u>',
77
93
},
78
-
{
79
-
name: 'gutterDblClickDuration',
80
-
type: 'number',
81
-
default: '0',
82
-
details: `Milliseconds to detect a double click on a gutter. Set it around 300-500ms if you want to use <code>(gutterDblClick)</code> event.`,
83
-
},
84
94
],
85
95
outputs: [
86
-
{name: 'dragStart',value: '{gutterNum: number, sizes: Array<number>}',details: 'Emit when drag starts.'},
87
-
{name: 'dragEnd',value: '{gutterNum: number, sizes: Array<number>}',details: 'Emit when drag ends.'},
details: `Emit when dragging. Replace old <code>(dragProgress)</code> template event for better flexibility about change detection mechanism.<br><u>Warning: Running outside zone by design, if you need to notify angular add</u> <code>this.splitEl.dragProgress$.subscribe(x => this.ngZone.run(() => this.x = x));</code>`,
110
128
},
129
+
{
130
+
name: 'getVisibleAreaSizes()',
131
+
type: '() => Array<number>',
132
+
details: 'Get all <b>visible</b> area sizes.',
133
+
},
111
134
{
112
135
name: 'setVisibleAreaSizes()',
113
136
type: '(Array<number>) => boolean',
114
137
details:
115
138
'Set all <b>visible</b> area sizes in one go, return a boolean to know if input values were correct. Useful when combined with <code>dragProgress$</code> to sync multiple splits.',
116
139
},
117
-
{name: 'getVisibleAreaSizes()',type: '() => Array<number>',details: 'Get all <b>visible</b> area sizes.'},
118
140
],
119
141
}
120
142
121
143
readonlysplitAreaDoc={
122
144
inputs: [
123
145
{
124
-
name: 'size',
146
+
name: 'lockSize',
147
+
type: 'boolean',
148
+
default: 'false',
149
+
details: `Lock area size, same as <code>minSize</code> = <code>maxSize</code> = <code>size</code>.<br><u>Not working when <code>[size]="'*'"</code></u>`,
150
+
},
151
+
{
152
+
name: 'maxSize',
125
153
type: 'number',
126
-
default: '-',
127
-
details: `Size of the area in selected unit (<code>percent</code>/<code>pixel</code>).<br><u>Percent mode:</u> All areas sizes should equal to 100, If not, all areas will have the same size.<br><u>Pixel mode:</u> An area with wildcard size (<code>[size]="'*'"</code>) is mandatory (only one) and can't have <code>[visible]="false"</code> or <code>minSize</code>/<code>maxSize</code>/<code>lockSize</code> properties.`,
154
+
default: 'null',
155
+
details: `Maximum pixel or percent size, can't be bigger than provided <code>size</code>.<br><u>Not working when <code>[size]="'*'"</code></u>`,
128
156
},
129
157
{
130
158
name: 'minSize',
@@ -133,16 +161,16 @@ export class DocComponent {
133
161
details: `Minimum pixel or percent size, can't be smaller than provided <code>size</code>.<br><u>Not working when <code>[size]="'*'"</code></u>`,
134
162
},
135
163
{
136
-
name: 'maxSize',
164
+
name: 'order',
137
165
type: 'number',
138
166
default: 'null',
139
-
details: `Maximum pixel or percent size, can't be bigger than provided <code>size</code>.<br><u>Not working when <code>[size]="'*'"</code></u>`,
167
+
details: `Order of the area. Used to maintain the order of areas when toggling their visibility. Toggling area visibility without specifying an <code>order</code> leads to weird behavior`,
140
168
},
141
169
{
142
-
name: 'lockSize',
143
-
type: 'boolean',
144
-
default: 'false',
145
-
details: `Lock area size, same as <code>minSize</code> = <code>maxSize</code> = <code>size</code>.<br><u>Not working when <code>[size]="'*'"</code></u>`,
170
+
name: 'size',
171
+
type: "number|'*'",
172
+
default: '-',
173
+
details: `Size of the area in selected unit (<code>percent</code>/<code>pixel</code>).<br><u>Percent mode:</u> All areas sizes should equal to 100, If not, all areas will have the same size.<br><u>Pixel mode:</u> An area with wildcard size (<code>[size]="'*'"</code>) is mandatory (only one) and can't have <code>[visible]="false"</code> or <code>minSize</code>/<code>maxSize</code>/<code>lockSize</code> properties.`,
146
174
},
147
175
{
148
176
name: 'visible',
@@ -155,19 +183,31 @@ export class DocComponent {
155
183
156
184
readonlycssClasses={
157
185
split: [
158
-
{name: 'as-init',details: 'Added after component initialization.'},
159
-
{name: 'as-horizontal / as-vertical',details: 'Depends on <code><as-split [direction]="x"></code>.'},
160
-
{name: 'as-disabled',details: 'Added when <code><as-split [disabled]="true"></code>.'},
161
-
{name: 'as-transition',details: 'Added when <code><as-split [useTransition]="true"></code>.'},
162
-
{name: 'as-dragging',details: 'Added while a gutter is dragged.'},
186
+
{name: 'ui-init',details: 'Added after component initialization.'},
187
+
{
188
+
name: 'ui-horizontal / ui-vertical',
189
+
details: 'Depends on <code><ui-split [direction]="x"></code>.',
190
+
},
191
+
{
192
+
name: 'ui-disabled',
193
+
details: 'Added when <code><ui-split [disabled]="true"></code>.',
194
+
},
195
+
{
196
+
name: 'ui-transition',
197
+
details: 'Added when <code><ui-split [useTransition]="true"></code>.',
198
+
},
199
+
{name: 'ui-dragging',details: 'Added while a gutter is dragged.'},
163
200
],
164
201
area: [
165
-
{name: 'as-split-area',details: 'Added on all areas.'},
166
-
{name: 'as-hidden',details: 'Added when <code><as-split-area [visible]="false"></code>.'},
202
+
{name: 'ui-split-area',details: 'Added on all areas.'},
203
+
{
204
+
name: 'ui-hidden',
205
+
details: 'Added when <code><ui-split-area [visible]="false"></code>.',
206
+
},
167
207
],
168
208
gutter: [
169
-
{name: 'as-split-gutter',details: 'Added on all gutters.'},
170
-
{name: 'as-dragged',details: 'Added on gutter while dragged.'},
209
+
{name: 'ui-split-gutter',details: 'Added on all gutters.'},
210
+
{name: 'ui-dragged',details: 'Added on gutter while dragged.'},
0 commit comments