@pageboard/html 0.14.18 → 0.14.20

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 (116) hide show
  1. package/elements/accordion.js +1 -1
  2. package/elements/card.js +1 -1
  3. package/elements/fieldsets.js +1 -1
  4. package/elements/form.js +5 -5
  5. package/elements/grid.js +3 -3
  6. package/elements/image.js +3 -3
  7. package/elements/inlines.js +8 -8
  8. package/elements/input-file.js +2 -2
  9. package/elements/input-property.js +1 -1
  10. package/elements/inputs.js +5 -5
  11. package/elements/layout.js +51 -27
  12. package/elements/link.js +3 -3
  13. package/elements/medialist.js +1 -1
  14. package/elements/menu.js +6 -6
  15. package/elements/navigation.js +1 -1
  16. package/elements/page.js +1 -1
  17. package/elements/pagination.js +1 -1
  18. package/elements/paragraph.js +2 -2
  19. package/elements/query-tags.js +1 -1
  20. package/elements/tab.js +1 -1
  21. package/elements/table.js +1 -1
  22. package/elements/template.js +1 -1
  23. package/package.json +3 -8
  24. package/ui/card.css +3 -3
  25. package/ui/components/accordion.css +241 -0
  26. package/ui/components/accordion.js +613 -0
  27. package/ui/components/ad.css +275 -0
  28. package/ui/components/api.js +1167 -0
  29. package/ui/components/breadcrumb.css +122 -0
  30. package/ui/components/button.css +3525 -0
  31. package/ui/components/card.css +939 -0
  32. package/ui/components/checkbox.css +604 -0
  33. package/ui/components/checkbox.js +831 -0
  34. package/ui/components/colorize.js +274 -0
  35. package/ui/components/comment.css +268 -0
  36. package/ui/components/container.css +149 -0
  37. package/ui/components/dimmer.css +224 -0
  38. package/ui/components/dimmer.js +733 -0
  39. package/ui/components/divider.css +253 -0
  40. package/ui/components/dropdown.css +1448 -0
  41. package/ui/components/dropdown.js +3955 -0
  42. package/ui/components/embed.css +160 -0
  43. package/ui/components/embed.js +706 -0
  44. package/ui/components/feed.css +281 -0
  45. package/ui/components/flag.css +1035 -0
  46. package/ui/components/form.css +1011 -0
  47. package/ui/components/form.js +1706 -0
  48. package/ui/components/grid.css +1941 -0
  49. package/ui/components/header.css +719 -0
  50. package/ui/components/icon.css +4777 -0
  51. package/ui/components/image.css +310 -0
  52. package/ui/components/input.css +469 -0
  53. package/ui/components/item.css +464 -0
  54. package/ui/components/label.css +1281 -0
  55. package/ui/components/list.css +943 -0
  56. package/ui/components/loader.css +339 -0
  57. package/ui/components/menu.css +1940 -0
  58. package/ui/components/message.css +468 -0
  59. package/ui/components/modal.css +617 -0
  60. package/ui/components/modal.js +1034 -0
  61. package/ui/components/nag.css +145 -0
  62. package/ui/components/nag.js +507 -0
  63. package/ui/components/placeholder.css +229 -0
  64. package/ui/components/popup.css +640 -0
  65. package/ui/components/popup.js +1532 -0
  66. package/ui/components/progress.css +502 -0
  67. package/ui/components/progress.js +931 -0
  68. package/ui/components/rail.css +152 -0
  69. package/ui/components/rating.css +257 -0
  70. package/ui/components/rating.js +508 -0
  71. package/ui/components/reset.css +476 -0
  72. package/ui/components/reveal.css +260 -0
  73. package/ui/components/search.css +431 -0
  74. package/ui/components/search.js +1505 -0
  75. package/ui/components/segment.css +824 -0
  76. package/ui/components/shape.css +143 -0
  77. package/ui/components/shape.js +921 -0
  78. package/ui/components/sidebar.css +537 -0
  79. package/ui/components/sidebar.js +1033 -0
  80. package/ui/components/site.css +184 -0
  81. package/ui/components/site.js +487 -0
  82. package/ui/components/state.js +708 -0
  83. package/ui/components/statistic.css +534 -0
  84. package/ui/components/step.css +566 -0
  85. package/ui/components/sticky.css +73 -0
  86. package/ui/components/sticky.js +959 -0
  87. package/ui/components/tab.css +89 -0
  88. package/ui/components/tab.js +952 -0
  89. package/ui/components/table.css +1108 -0
  90. package/ui/components/transition.css +1792 -0
  91. package/ui/components/transition.js +1095 -0
  92. package/ui/components/video.css +121 -0
  93. package/ui/components/video.js +532 -0
  94. package/ui/components/visibility.js +1311 -0
  95. package/ui/components/visit.js +517 -0
  96. package/ui/image.js +2 -2
  97. package/ui/item.css +2 -2
  98. package/ui/layout.css +87 -64
  99. package/ui/textarea.js +4 -2
  100. package/ui/themes/default/assets/fonts/brand-icons.eot +0 -0
  101. package/ui/themes/default/assets/fonts/brand-icons.svg +1008 -0
  102. package/ui/themes/default/assets/fonts/brand-icons.ttf +0 -0
  103. package/ui/themes/default/assets/fonts/brand-icons.woff +0 -0
  104. package/ui/themes/default/assets/fonts/brand-icons.woff2 +0 -0
  105. package/ui/themes/default/assets/fonts/icons.eot +0 -0
  106. package/ui/themes/default/assets/fonts/icons.otf +0 -0
  107. package/ui/themes/default/assets/fonts/icons.svg +1518 -0
  108. package/ui/themes/default/assets/fonts/icons.ttf +0 -0
  109. package/ui/themes/default/assets/fonts/icons.woff +0 -0
  110. package/ui/themes/default/assets/fonts/icons.woff2 +0 -0
  111. package/ui/themes/default/assets/fonts/outline-icons.eot +0 -0
  112. package/ui/themes/default/assets/fonts/outline-icons.svg +366 -0
  113. package/ui/themes/default/assets/fonts/outline-icons.ttf +0 -0
  114. package/ui/themes/default/assets/fonts/outline-icons.woff +0 -0
  115. package/ui/themes/default/assets/fonts/outline-icons.woff2 +0 -0
  116. package/ui/themes/default/assets/images/flags.png +0 -0
@@ -0,0 +1,517 @@
1
+ /*!
2
+ * # Semantic UI 2.0.0 - Visit
3
+ * http://github.com/semantic-org/semantic-ui/
4
+ *
5
+ *
6
+ * Copyright 2015 Contributors
7
+ * Released under the MIT license
8
+ * http://opensource.org/licenses/MIT
9
+ *
10
+ */
11
+
12
+ ;(function ($, window, document, undefined) {
13
+
14
+ "use strict";
15
+
16
+ $.visit = $.fn.visit = function(parameters) {
17
+ var
18
+ $allModules = $.isFunction(this)
19
+ ? $(window)
20
+ : $(this),
21
+ moduleSelector = $allModules.selector || '',
22
+
23
+ time = new Date().getTime(),
24
+ performance = [],
25
+
26
+ query = arguments[0],
27
+ methodInvoked = (typeof query == 'string'),
28
+ queryArguments = [].slice.call(arguments, 1),
29
+ returnedValue
30
+ ;
31
+ $allModules
32
+ .each(function() {
33
+ var
34
+ settings = ( $.isPlainObject(parameters) )
35
+ ? $.extend(true, {}, $.fn.visit.settings, parameters)
36
+ : $.extend({}, $.fn.visit.settings),
37
+
38
+ error = settings.error,
39
+ namespace = settings.namespace,
40
+
41
+ eventNamespace = '.' + namespace,
42
+ moduleNamespace = namespace + '-module',
43
+
44
+ $module = $(this),
45
+ $displays = $(),
46
+
47
+ element = this,
48
+ instance = $module.data(moduleNamespace),
49
+ module
50
+ ;
51
+ module = {
52
+
53
+ initialize: function() {
54
+ if(settings.count) {
55
+ module.store(settings.key.count, settings.count);
56
+ }
57
+ else if(settings.id) {
58
+ module.add.id(settings.id);
59
+ }
60
+ else if(settings.increment && methodInvoked !== 'increment') {
61
+ module.increment();
62
+ }
63
+ module.add.display($module);
64
+ module.instantiate();
65
+ },
66
+
67
+ instantiate: function() {
68
+ module.verbose('Storing instance of visit module', module);
69
+ instance = module;
70
+ $module
71
+ .data(moduleNamespace, module)
72
+ ;
73
+ },
74
+
75
+ destroy: function() {
76
+ module.verbose('Destroying instance');
77
+ $module
78
+ .removeData(moduleNamespace)
79
+ ;
80
+ },
81
+
82
+ increment: function(id) {
83
+ var
84
+ currentValue = module.get.count(),
85
+ newValue = +(currentValue) + 1
86
+ ;
87
+ if(id) {
88
+ module.add.id(id);
89
+ }
90
+ else {
91
+ if(newValue > settings.limit && !settings.surpass) {
92
+ newValue = settings.limit;
93
+ }
94
+ module.debug('Incrementing visits', newValue);
95
+ module.store(settings.key.count, newValue);
96
+ }
97
+ },
98
+
99
+ decrement: function(id) {
100
+ var
101
+ currentValue = module.get.count(),
102
+ newValue = +(currentValue) - 1
103
+ ;
104
+ if(id) {
105
+ module.remove.id(id);
106
+ }
107
+ else {
108
+ module.debug('Removing visit');
109
+ module.store(settings.key.count, newValue);
110
+ }
111
+ },
112
+
113
+ get: {
114
+ count: function() {
115
+ return +(module.retrieve(settings.key.count)) || 0;
116
+ },
117
+ idCount: function(ids) {
118
+ ids = ids || module.get.ids();
119
+ return ids.length;
120
+ },
121
+ ids: function(delimitedIDs) {
122
+ var
123
+ idArray = []
124
+ ;
125
+ delimitedIDs = delimitedIDs || module.retrieve(settings.key.ids);
126
+ if(typeof delimitedIDs === 'string') {
127
+ idArray = delimitedIDs.split(settings.delimiter);
128
+ }
129
+ module.verbose('Found visited ID list', idArray);
130
+ return idArray;
131
+ },
132
+ storageOptions: function(data) {
133
+ var
134
+ options = {}
135
+ ;
136
+ if(settings.expires) {
137
+ options.expires = settings.expires;
138
+ }
139
+ if(settings.domain) {
140
+ options.domain = settings.domain;
141
+ }
142
+ if(settings.path) {
143
+ options.path = settings.path;
144
+ }
145
+ return options;
146
+ }
147
+ },
148
+
149
+ has: {
150
+ visited: function(id, ids) {
151
+ var
152
+ visited = false
153
+ ;
154
+ ids = ids || module.get.ids();
155
+ if(id !== undefined && ids) {
156
+ $.each(ids, function(index, value){
157
+ if(value == id) {
158
+ visited = true;
159
+ }
160
+ });
161
+ }
162
+ return visited;
163
+ }
164
+ },
165
+
166
+ set: {
167
+ count: function(value) {
168
+ module.store(settings.key.count, value);
169
+ },
170
+ ids: function(value) {
171
+ module.store(settings.key.ids, value);
172
+ }
173
+ },
174
+
175
+ reset: function() {
176
+ module.store(settings.key.count, 0);
177
+ module.store(settings.key.ids, null);
178
+ },
179
+
180
+ add: {
181
+ id: function(id) {
182
+ var
183
+ currentIDs = module.retrieve(settings.key.ids),
184
+ newIDs = (currentIDs === undefined || currentIDs === '')
185
+ ? id
186
+ : currentIDs + settings.delimiter + id
187
+ ;
188
+ if( module.has.visited(id) ) {
189
+ module.debug('Unique content already visited, not adding visit', id, currentIDs);
190
+ }
191
+ else if(id === undefined) {
192
+ module.debug('ID is not defined');
193
+ }
194
+ else {
195
+ module.debug('Adding visit to unique content', id);
196
+ module.store(settings.key.ids, newIDs);
197
+ }
198
+ module.set.count( module.get.idCount() );
199
+ },
200
+ display: function(selector) {
201
+ var
202
+ $element = $(selector)
203
+ ;
204
+ if($element.length > 0 && !$.isWindow($element[0])) {
205
+ module.debug('Updating visit count for element', $element);
206
+ $displays = ($displays.length > 0)
207
+ ? $displays.add($element)
208
+ : $element
209
+ ;
210
+ }
211
+ }
212
+ },
213
+
214
+ remove: {
215
+ id: function(id) {
216
+ var
217
+ currentIDs = module.get.ids(),
218
+ newIDs = []
219
+ ;
220
+ if(id !== undefined && currentIDs !== undefined) {
221
+ module.debug('Removing visit to unique content', id, currentIDs);
222
+ $.each(currentIDs, function(index, value){
223
+ if(value !== id) {
224
+ newIDs.push(value);
225
+ }
226
+ });
227
+ newIDs = newIDs.join(settings.delimiter);
228
+ module.store(settings.key.ids, newIDs );
229
+ }
230
+ module.set.count( module.get.idCount() );
231
+ }
232
+ },
233
+
234
+ check: {
235
+ limit: function(value) {
236
+ value = value || module.get.count();
237
+ if(settings.limit) {
238
+ if(value >= settings.limit) {
239
+ module.debug('Pages viewed exceeded limit, firing callback', value, settings.limit);
240
+ settings.onLimit.call(element, value);
241
+ }
242
+ module.debug('Limit not reached', value, settings.limit);
243
+ settings.onChange.call(element, value);
244
+ }
245
+ module.update.display(value);
246
+ }
247
+ },
248
+
249
+ update: {
250
+ display: function(value) {
251
+ value = value || module.get.count();
252
+ if($displays.length > 0) {
253
+ module.debug('Updating displayed view count', $displays);
254
+ $displays.html(value);
255
+ }
256
+ }
257
+ },
258
+
259
+ store: function(key, value) {
260
+ var
261
+ options = module.get.storageOptions(value)
262
+ ;
263
+ if(settings.storageMethod == 'localstorage' && window.localStorage !== undefined) {
264
+ window.localStorage.setItem(key, value);
265
+ module.debug('Value stored using local storage', key, value);
266
+ }
267
+ else if($.cookie !== undefined) {
268
+ $.cookie(key, value, options);
269
+ module.debug('Value stored using cookie', key, value, options);
270
+ }
271
+ else {
272
+ module.error(error.noCookieStorage);
273
+ return;
274
+ }
275
+ if(key == settings.key.count) {
276
+ module.check.limit(value);
277
+ }
278
+ },
279
+ retrieve: function(key, value) {
280
+ var
281
+ storedValue
282
+ ;
283
+ if(settings.storageMethod == 'localstorage' && window.localStorage !== undefined) {
284
+ storedValue = window.localStorage.getItem(key);
285
+ }
286
+ // get by cookie
287
+ else if($.cookie !== undefined) {
288
+ storedValue = $.cookie(key);
289
+ }
290
+ else {
291
+ module.error(error.noCookieStorage);
292
+ }
293
+ if(storedValue == 'undefined' || storedValue == 'null' || storedValue === undefined || storedValue === null) {
294
+ storedValue = undefined;
295
+ }
296
+ return storedValue;
297
+ },
298
+
299
+ setting: function(name, value) {
300
+ if( $.isPlainObject(name) ) {
301
+ $.extend(true, settings, name);
302
+ }
303
+ else if(value !== undefined) {
304
+ settings[name] = value;
305
+ }
306
+ else {
307
+ return settings[name];
308
+ }
309
+ },
310
+ internal: function(name, value) {
311
+ module.debug('Changing internal', name, value);
312
+ if(value !== undefined) {
313
+ if( $.isPlainObject(name) ) {
314
+ $.extend(true, module, name);
315
+ }
316
+ else {
317
+ module[name] = value;
318
+ }
319
+ }
320
+ else {
321
+ return module[name];
322
+ }
323
+ },
324
+ debug: function() {
325
+ if(settings.debug) {
326
+ if(settings.performance) {
327
+ module.performance.log(arguments);
328
+ }
329
+ else {
330
+ module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');
331
+ module.debug.apply(console, arguments);
332
+ }
333
+ }
334
+ },
335
+ verbose: function() {
336
+ if(settings.verbose && settings.debug) {
337
+ if(settings.performance) {
338
+ module.performance.log(arguments);
339
+ }
340
+ else {
341
+ module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');
342
+ module.verbose.apply(console, arguments);
343
+ }
344
+ }
345
+ },
346
+ error: function() {
347
+ module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
348
+ module.error.apply(console, arguments);
349
+ },
350
+ performance: {
351
+ log: function(message) {
352
+ var
353
+ currentTime,
354
+ executionTime,
355
+ previousTime
356
+ ;
357
+ if(settings.performance) {
358
+ currentTime = new Date().getTime();
359
+ previousTime = time || currentTime;
360
+ executionTime = currentTime - previousTime;
361
+ time = currentTime;
362
+ performance.push({
363
+ 'Name' : message[0],
364
+ 'Arguments' : [].slice.call(message, 1) || '',
365
+ 'Element' : element,
366
+ 'Execution Time' : executionTime
367
+ });
368
+ }
369
+ clearTimeout(module.performance.timer);
370
+ module.performance.timer = setTimeout(module.performance.display, 500);
371
+ },
372
+ display: function() {
373
+ var
374
+ title = settings.name + ':',
375
+ totalTime = 0
376
+ ;
377
+ time = false;
378
+ clearTimeout(module.performance.timer);
379
+ $.each(performance, function(index, data) {
380
+ totalTime += data['Execution Time'];
381
+ });
382
+ title += ' ' + totalTime + 'ms';
383
+ if(moduleSelector) {
384
+ title += ' \'' + moduleSelector + '\'';
385
+ }
386
+ if($allModules.length > 1) {
387
+ title += ' ' + '(' + $allModules.length + ')';
388
+ }
389
+ if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {
390
+ console.groupCollapsed(title);
391
+ if(console.table) {
392
+ console.table(performance);
393
+ }
394
+ else {
395
+ $.each(performance, function(index, data) {
396
+ console.log(data['Name'] + ': ' + data['Execution Time']+'ms');
397
+ });
398
+ }
399
+ console.groupEnd();
400
+ }
401
+ performance = [];
402
+ }
403
+ },
404
+ invoke: function(query, passedArguments, context) {
405
+ var
406
+ object = instance,
407
+ maxDepth,
408
+ found,
409
+ response
410
+ ;
411
+ passedArguments = passedArguments || queryArguments;
412
+ context = element || context;
413
+ if(typeof query == 'string' && object !== undefined) {
414
+ query = query.split(/[\. ]/);
415
+ maxDepth = query.length - 1;
416
+ $.each(query, function(depth, value) {
417
+ var camelCaseValue = (depth != maxDepth)
418
+ ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
419
+ : query
420
+ ;
421
+ if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {
422
+ object = object[camelCaseValue];
423
+ }
424
+ else if( object[camelCaseValue] !== undefined ) {
425
+ found = object[camelCaseValue];
426
+ return false;
427
+ }
428
+ else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {
429
+ object = object[value];
430
+ }
431
+ else if( object[value] !== undefined ) {
432
+ found = object[value];
433
+ return false;
434
+ }
435
+ else {
436
+ return false;
437
+ }
438
+ });
439
+ }
440
+ if ( $.isFunction( found ) ) {
441
+ response = found.apply(context, passedArguments);
442
+ }
443
+ else if(found !== undefined) {
444
+ response = found;
445
+ }
446
+ if($.isArray(returnedValue)) {
447
+ returnedValue.push(response);
448
+ }
449
+ else if(returnedValue !== undefined) {
450
+ returnedValue = [returnedValue, response];
451
+ }
452
+ else if(response !== undefined) {
453
+ returnedValue = response;
454
+ }
455
+ return found;
456
+ }
457
+ };
458
+ if(methodInvoked) {
459
+ if(instance === undefined) {
460
+ module.initialize();
461
+ }
462
+ module.invoke(query);
463
+ }
464
+ else {
465
+ if(instance !== undefined) {
466
+ instance.invoke('destroy');
467
+ }
468
+ module.initialize();
469
+ }
470
+
471
+ })
472
+ ;
473
+ return (returnedValue !== undefined)
474
+ ? returnedValue
475
+ : this
476
+ ;
477
+ };
478
+
479
+ $.fn.visit.settings = {
480
+
481
+ name : 'Visit',
482
+
483
+ debug : false,
484
+ verbose : false,
485
+ performance : true,
486
+
487
+ namespace : 'visit',
488
+
489
+ increment : false,
490
+ surpass : false,
491
+ count : false,
492
+ limit : false,
493
+
494
+ delimiter : '&',
495
+ storageMethod : 'localstorage',
496
+
497
+ key : {
498
+ count : 'visit-count',
499
+ ids : 'visit-ids'
500
+ },
501
+
502
+ expires : 30,
503
+ domain : false,
504
+ path : '/',
505
+
506
+ onLimit : function() {},
507
+ onChange : function() {},
508
+
509
+ error : {
510
+ method : 'The method you called is not defined',
511
+ missingPersist : 'Using the persist setting requires the inclusion of PersistJS',
512
+ noCookieStorage : 'The default storage cookie requires $.cookie to be included.'
513
+ }
514
+
515
+ };
516
+
517
+ })( jQuery, window , document );
package/ui/image.js CHANGED
@@ -153,11 +153,11 @@ const HTMLElementImageConstructor = Superclass => class extends Superclass {
153
153
  }
154
154
  }
155
155
  captureLoad() {
156
- this.#defer.resolve();
156
+ this.#defer?.resolve();
157
157
  this.classList.remove('loading');
158
158
  }
159
159
  captureError(e) {
160
- this.#defer.reject(e);
160
+ this.#defer?.reject(e);
161
161
  this.classList.remove('loading');
162
162
  this.classList.add('error');
163
163
  this.placeholder(true);
package/ui/item.css CHANGED
@@ -339,7 +339,7 @@
339
339
  margin-right: 0.5em;
340
340
  }
341
341
 
342
- @media only screen and (min-width: 512px) and (max-width: 991px) {
342
+ @media (width >= 512px) and (width <= 991px) {
343
343
  /* Tablet Only */
344
344
  .ui.items > .ui {
345
345
  margin: 1em 0em;
@@ -350,7 +350,7 @@
350
350
  }
351
351
  }
352
352
 
353
- @media only screen and (max-width: 511px) {
353
+ @media (width <= 511px) {
354
354
  /* Mobile Only */
355
355
  .ui.items.stackable > .ui {
356
356
  flex-direction: column;
package/ui/layout.css CHANGED
@@ -1,71 +1,94 @@
1
1
  .layout {
2
2
  display:flex;
3
3
  flex: 0 0 auto;
4
- }
5
- .ui.container.layout {
6
- display:flex;
7
- flex: 1 0 auto;
8
- }
9
- .layout.wrap {
10
- flex-wrap:wrap;
11
- }
12
- .layout.wrap-reverse {
13
- flex-wrap:wrap-reverse;
14
- }
15
- .layout.column {
16
- flex-direction: column;
17
- align-items:stretch;
18
- }
19
- .layout.top {
20
- align-items: flex-start;
21
- }
22
- .layout.vcenter {
23
- align-items: center;
24
- }
25
- .layout.vbaseline {
26
- align-items: baseline;
27
- }
28
- .layout.vstretch {
29
- align-items: stretch;
30
- }
31
- .layout.bottom {
32
- align-items: flex-end;
33
- }
34
- .layout.left {
35
- justify-content: flex-start;
36
- }
37
- .layout.hcenter {
38
- justify-content: center;
39
- }
40
- .layout.hbetween {
41
- justify-content: space-between;
42
- }
43
- .layout.haround {
44
- justify-content: space-around;
45
- }
46
- .layout.right {
47
- justify-content: flex-end;
48
- }
49
- .layout.column > img,
50
- .layout.column.left > img {
51
- align-self:flex-start;
52
- }
53
- .layout.column.hcenter > img {
54
- align-self:center;
55
- }
56
- .layout.column.right > img {
57
- align-self:flex-end;
58
- }
4
+ position:relative;
59
5
 
60
- .layout.fullwidth {
61
- width:100%;
62
- }
6
+ &.overlay {
7
+ position:absolute;
8
+ &.block-start {
9
+ top: 0;
10
+ }
11
+ &.block-end {
12
+ bottom: 0;
13
+ }
14
+ &.inline-start {
15
+ left: 0;
16
+ }
17
+ &.inline-end {
18
+ right: 0;
19
+ }
20
+ }
63
21
 
64
- .inverted.layout {
65
- background: rgb(0 0 0 / 80%);
66
- }
22
+ &.ui.container {
23
+ flex: 1 0 auto;
24
+ }
67
25
 
68
- .inverted.layout p {
69
- color: white;
70
- }
26
+ &.wrap {
27
+ flex-wrap:wrap;
28
+ }
71
29
 
30
+ &.wrap-reverse {
31
+ flex-wrap:wrap-reverse;
32
+ }
33
+
34
+ &.column {
35
+ flex-direction: column;
36
+ align-items:stretch;
37
+ }
38
+
39
+ &.top {
40
+ align-items: flex-start;
41
+ }
42
+ &.vcenter {
43
+ align-items: center;
44
+ }
45
+ &.vbaseline {
46
+ align-items: baseline;
47
+ }
48
+ &.vstretch {
49
+ align-items: stretch;
50
+ }
51
+ &.bottom {
52
+ align-items: flex-end;
53
+ }
54
+ &.left {
55
+ justify-content: flex-start;
56
+ }
57
+ &.hcenter {
58
+ justify-content: center;
59
+ }
60
+ &.hbetween {
61
+ justify-content: space-between;
62
+ }
63
+ &.haround {
64
+ justify-content: space-around;
65
+ }
66
+ &.right {
67
+ justify-content: flex-end;
68
+ }
69
+
70
+ &.column {
71
+ & > img,
72
+ &.left > img {
73
+ align-self:flex-start;
74
+ }
75
+ &.hcenter > img {
76
+ align-self:center;
77
+ }
78
+ &.right > img {
79
+ align-self:flex-end;
80
+ }
81
+ }
82
+
83
+ &.fullwidth {
84
+ width:100%;
85
+ }
86
+
87
+ &.inverted {
88
+ background: rgb(0 0 0 / 80%);
89
+
90
+ p {
91
+ color: white;
92
+ }
93
+ }
94
+ }
package/ui/textarea.js CHANGED
@@ -13,8 +13,10 @@ class HTMLElementTextArea extends Page.create(HTMLTextAreaElement) {
13
13
  delete this.style.height;
14
14
  return;
15
15
  }
16
- this.style.height = 0;
17
- this.style.height = `calc(${this.scrollHeight}px + 1em)`;
16
+ requestAnimationFrame(() => {
17
+ this.style.height = 0;
18
+ this.style.height = `calc(${this.scrollHeight}px + 1em)`;
19
+ });
18
20
  }
19
21
  }
20
22