@knowark/componarkjs 1.7.3

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/Makefile +49 -0
  2. package/README.md +47 -0
  3. package/knowarkjs.code-workspace +29 -0
  4. package/lib/base/component/README.rst +113 -0
  5. package/lib/base/component/component.js +115 -0
  6. package/lib/base/component/component.test.js +327 -0
  7. package/lib/base/component/index.js +3 -0
  8. package/lib/base/index.js +1 -0
  9. package/lib/base/styles/index.js +3 -0
  10. package/lib/base/styles/styles.js +320 -0
  11. package/lib/base/utils/define.js +21 -0
  12. package/lib/base/utils/define.test.js +62 -0
  13. package/lib/base/utils/format.js +24 -0
  14. package/lib/base/utils/format.test.js +19 -0
  15. package/lib/base/utils/helpers.js +96 -0
  16. package/lib/base/utils/helpers.test.js +154 -0
  17. package/lib/base/utils/index.js +5 -0
  18. package/lib/base/utils/slots.js +18 -0
  19. package/lib/base/utils/slots.test.js +52 -0
  20. package/lib/base/utils/uuid.js +9 -0
  21. package/lib/base/utils/uuid.test.js +19 -0
  22. package/lib/components/audio/README.md +22 -0
  23. package/lib/components/audio/components/audio.js +103 -0
  24. package/lib/components/audio/components/audio.test.js +127 -0
  25. package/lib/components/audio/index.js +1 -0
  26. package/lib/components/audio/styles/ark.css.js +83 -0
  27. package/lib/components/audio/styles/index.js +2 -0
  28. package/lib/components/camera/README.md +64 -0
  29. package/lib/components/camera/components/camera.js +85 -0
  30. package/lib/components/camera/components/camera.test.js +104 -0
  31. package/lib/components/camera/index.js +1 -0
  32. package/lib/components/camera/styles/ark.css.js +17 -0
  33. package/lib/components/camera/styles/index.js +2 -0
  34. package/lib/components/capture/components/capture.js +54 -0
  35. package/lib/components/capture/components/capture.test.js +112 -0
  36. package/lib/components/capture/index.js +1 -0
  37. package/lib/components/droparea/README.md +51 -0
  38. package/lib/components/droparea/components/droparea-preview.js +159 -0
  39. package/lib/components/droparea/components/droparea-preview.test.js +105 -0
  40. package/lib/components/droparea/components/droparea.js +165 -0
  41. package/lib/components/droparea/components/droparea.test.js +320 -0
  42. package/lib/components/droparea/index.js +1 -0
  43. package/lib/components/droparea/styles/ark.css.js +235 -0
  44. package/lib/components/droparea/styles/index.js +3 -0
  45. package/lib/components/emit/components/emit.js +33 -0
  46. package/lib/components/emit/components/emit.test.js +138 -0
  47. package/lib/components/emit/index.js +1 -0
  48. package/lib/components/index.js +9 -0
  49. package/lib/components/list/README.md +103 -0
  50. package/lib/components/list/components/item.test.js +93 -0
  51. package/lib/components/list/components/list.item.js +22 -0
  52. package/lib/components/list/components/list.js +96 -0
  53. package/lib/components/list/components/list.test.js +267 -0
  54. package/lib/components/list/index.js +2 -0
  55. package/lib/components/paginator/README.md +32 -0
  56. package/lib/components/paginator/components/paginator.js +110 -0
  57. package/lib/components/paginator/components/paginator.test.js +131 -0
  58. package/lib/components/paginator/index.js +1 -0
  59. package/lib/components/paginator/styles/ark.css.js +196 -0
  60. package/lib/components/paginator/styles/index.js +2 -0
  61. package/lib/components/spinner/README.md +41 -0
  62. package/lib/components/spinner/components/spinner.js +105 -0
  63. package/lib/components/spinner/components/spinner.test.js +50 -0
  64. package/lib/components/spinner/index.js +1 -0
  65. package/lib/components/spinner/styles/ark.css.js +658 -0
  66. package/lib/components/spinner/styles/index.js +2 -0
  67. package/lib/components/splitview/README.md +63 -0
  68. package/lib/components/splitview/components/splitview.detail.js +46 -0
  69. package/lib/components/splitview/components/splitview.detail.test.js +92 -0
  70. package/lib/components/splitview/components/splitview.js +69 -0
  71. package/lib/components/splitview/components/splitview.master.js +26 -0
  72. package/lib/components/splitview/components/splitview.master.test.js +55 -0
  73. package/lib/components/splitview/components/splitview.test.js +76 -0
  74. package/lib/components/splitview/index.js +3 -0
  75. package/lib/components/translate/README.md +56 -0
  76. package/lib/components/translate/components/translate.js +100 -0
  77. package/lib/components/translate/components/translate.test.js +226 -0
  78. package/lib/components/translate/index.js +1 -0
  79. package/lib/index.js +2 -0
  80. package/package.json +68 -0
  81. package/showcase/design/.htaccess +8 -0
  82. package/showcase/design/core/factories/development/development.factory.js +5 -0
  83. package/showcase/design/core/factories/development/index.js +1 -0
  84. package/showcase/design/core/factories/index.js +11 -0
  85. package/showcase/design/core/factories/standard.factory.js +19 -0
  86. package/showcase/design/index.html +22 -0
  87. package/showcase/design/index.js +7 -0
  88. package/showcase/design/screens/base/audio/audioDemo.js +32 -0
  89. package/showcase/design/screens/base/audio/index.js +25 -0
  90. package/showcase/design/screens/base/camera/cameraDemo.js +83 -0
  91. package/showcase/design/screens/base/camera/index.js +25 -0
  92. package/showcase/design/screens/base/droparea/dropareaDemo.js +88 -0
  93. package/showcase/design/screens/base/droparea/index.js +25 -0
  94. package/showcase/design/screens/base/index.js +42 -0
  95. package/showcase/design/screens/base/list/index.js +25 -0
  96. package/showcase/design/screens/base/list/listDemo.js +89 -0
  97. package/showcase/design/screens/base/paginator/index.js +25 -0
  98. package/showcase/design/screens/base/paginator/paginatorDemo.js +82 -0
  99. package/showcase/design/screens/base/root.component.js +294 -0
  100. package/showcase/design/screens/base/root.routes.js +28 -0
  101. package/showcase/design/screens/base/spinner/index.js +25 -0
  102. package/showcase/design/screens/base/spinner/spinnerDemo.js +55 -0
  103. package/showcase/design/screens/base/splitview/detailDemo.js +40 -0
  104. package/showcase/design/screens/base/splitview/index.js +25 -0
  105. package/showcase/design/screens/base/splitview/splitViewDemo.js +58 -0
  106. package/showcase/design/screens/base/translate/index.js +20 -0
  107. package/showcase/design/screens/base/translate/translateDemo.js +43 -0
  108. package/showcase/design/screens/main.js +12 -0
  109. package/showcase/design/screens/screens.routes.js +23 -0
  110. package/showcase/index.html +86 -0
  111. package/showcase/index.js +5 -0
  112. package/showcase/locales/en/default.json +5 -0
  113. package/showcase/locales/es/default.json +5 -0
  114. package/showcase/locales/fr/default.json +5 -0
  115. package/tsconfig.json +23 -0
  116. package/webpack.config.cjs +118 -0
@@ -0,0 +1,658 @@
1
+ const css = String.raw; export default css`
2
+ .ark-spinner .sk-fading-circle {
3
+ width: 40px;
4
+ height: 40px;
5
+ position: relative;
6
+ }
7
+
8
+ .ark-spinner .sk-fading-circle .sk-circle {
9
+ width: 100%;
10
+ height: 100%;
11
+ position: absolute;
12
+ left: 0;
13
+ top: 0;
14
+ }
15
+
16
+ .ark-spinner .sk-fading-circle .sk-circle:before {
17
+ content: "";
18
+ display: block;
19
+ margin: auto;
20
+ width: 15%;
21
+ height: 15%;
22
+ border-radius: 100%;
23
+ -webkit-animation: sk-circleFadeDelay 1.2s infinite ease-in-out both;
24
+ animation: sk-circleFadeDelay 1.2s infinite ease-in-out both;
25
+ background: var(--spinner-color, var(--primary, #333));
26
+ }
27
+
28
+ .ark-spinner .sk-fading-circle .sk-circle2 {
29
+ -webkit-transform: rotate(30deg);
30
+ -ms-transform: rotate(30deg);
31
+ transform: rotate(30deg);
32
+ }
33
+
34
+ .ark-spinner .sk-fading-circle .sk-circle2:before {
35
+ -webkit-animation-delay: -1.1s;
36
+ animation-delay: -1.1s;
37
+ }
38
+
39
+ .ark-spinner .sk-fading-circle .sk-circle3 {
40
+ -webkit-transform: rotate(60deg);
41
+ -ms-transform: rotate(60deg);
42
+ transform: rotate(60deg);
43
+ }
44
+
45
+ .ark-spinner .sk-fading-circle .sk-circle3:before {
46
+ -webkit-animation-delay: -1s;
47
+ animation-delay: -1s;
48
+ }
49
+
50
+ .ark-spinner .sk-fading-circle .sk-circle4 {
51
+ -webkit-transform: rotate(90deg);
52
+ -ms-transform: rotate(90deg);
53
+ transform: rotate(90deg);
54
+ }
55
+
56
+ .ark-spinner .sk-fading-circle .sk-circle4:before {
57
+ -webkit-animation-delay: -0.9s;
58
+ animation-delay: -0.9s;
59
+ }
60
+
61
+ .ark-spinner .sk-fading-circle .sk-circle5 {
62
+ -webkit-transform: rotate(120deg);
63
+ -ms-transform: rotate(120deg);
64
+ transform: rotate(120deg);
65
+ }
66
+
67
+ .ark-spinner .sk-fading-circle .sk-circle5:before {
68
+ -webkit-animation-delay: -0.8s;
69
+ animation-delay: -0.8s;
70
+ }
71
+
72
+ .ark-spinner .sk-fading-circle .sk-circle6 {
73
+ -webkit-transform: rotate(150deg);
74
+ -ms-transform: rotate(150deg);
75
+ transform: rotate(150deg);
76
+ }
77
+
78
+ .ark-spinner .sk-fading-circle .sk-circle6:before {
79
+ -webkit-animation-delay: -0.7s;
80
+ animation-delay: -0.7s;
81
+ }
82
+
83
+ .ark-spinner .sk-fading-circle .sk-circle7 {
84
+ -webkit-transform: rotate(180deg);
85
+ -ms-transform: rotate(180deg);
86
+ transform: rotate(180deg);
87
+ }
88
+
89
+ .ark-spinner .sk-fading-circle .sk-circle7:before {
90
+ -webkit-animation-delay: -0.6s;
91
+ animation-delay: -0.6s;
92
+ }
93
+
94
+ .ark-spinner .sk-fading-circle .sk-circle8 {
95
+ -webkit-transform: rotate(210deg);
96
+ -ms-transform: rotate(210deg);
97
+ transform: rotate(210deg);
98
+ }
99
+
100
+ .ark-spinner .sk-fading-circle .sk-circle8:before {
101
+ -webkit-animation-delay: -0.5s;
102
+ animation-delay: -0.5s;
103
+ }
104
+
105
+ .ark-spinner .sk-fading-circle .sk-circle9 {
106
+ -webkit-transform: rotate(240deg);
107
+ -ms-transform: rotate(240deg);
108
+ transform: rotate(240deg);
109
+ }
110
+
111
+ .ark-spinner .sk-fading-circle .sk-circle9:before {
112
+ -webkit-animation-delay: -0.4s;
113
+ animation-delay: -0.4s;
114
+ }
115
+
116
+ .ark-spinner .sk-fading-circle .sk-circle10 {
117
+ -webkit-transform: rotate(270deg);
118
+ -ms-transform: rotate(270deg);
119
+ transform: rotate(270deg);
120
+ }
121
+
122
+ .ark-spinner .sk-fading-circle .sk-circle10:before {
123
+ -webkit-animation-delay: -0.3s;
124
+ animation-delay: -0.3s;
125
+ }
126
+
127
+ .ark-spinner .sk-fading-circle .sk-circle11 {
128
+ -webkit-transform: rotate(300deg);
129
+ -ms-transform: rotate(300deg);
130
+ transform: rotate(300deg);
131
+ }
132
+
133
+ .ark-spinner .sk-fading-circle .sk-circle11:before {
134
+ -webkit-animation-delay: -0.2s;
135
+ animation-delay: -0.2s;
136
+ }
137
+
138
+ .ark-spinner .sk-fading-circle .sk-circle12 {
139
+ -webkit-transform: rotate(330deg);
140
+ -ms-transform: rotate(330deg);
141
+ transform: rotate(330deg);
142
+ }
143
+
144
+ .ark-spinner .sk-fading-circle .sk-circle12:before {
145
+ -webkit-animation-delay: -0.1s;
146
+ animation-delay: -0.1s;
147
+ }
148
+
149
+ @-webkit-keyframes sk-circleFadeDelay {
150
+
151
+ 0%,
152
+ 39%,
153
+ 100% {
154
+ opacity: 0;
155
+ }
156
+
157
+ 40% {
158
+ opacity: 1;
159
+ }
160
+ }
161
+
162
+ @keyframes sk-circleFadeDelay {
163
+
164
+ 0%,
165
+ 39%,
166
+ 100% {
167
+ opacity: 0;
168
+ }
169
+
170
+ 40% {
171
+ opacity: 1;
172
+ }
173
+ }
174
+
175
+ .ark-spinner .spinner {
176
+ width: 50px;
177
+ height: 40px;
178
+ text-align: center;
179
+ font-size: 10px;
180
+ }
181
+
182
+ .ark-spinner .spinner div {
183
+ height: 100%;
184
+ width: 6px;
185
+ display: inline-block;
186
+ -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
187
+ animation: sk-stretchdelay 1.2s infinite ease-in-out;
188
+ background: var(--spinner-color, var(--primary, #333));
189
+ }
190
+
191
+ .ark-spinner .spinner .rect2 {
192
+ -webkit-animation-delay: -1.1s;
193
+ animation-delay: -1.1s;
194
+ }
195
+
196
+ .ark-spinner .spinner .rect3 {
197
+ -webkit-animation-delay: -1s;
198
+ animation-delay: -1s;
199
+ }
200
+
201
+ .ark-spinner .spinner .rect4 {
202
+ -webkit-animation-delay: -0.9s;
203
+ animation-delay: -0.9s;
204
+ }
205
+
206
+ .ark-spinner .spinner .rect5 {
207
+ -webkit-animation-delay: -0.8s;
208
+ animation-delay: -0.8s;
209
+ }
210
+
211
+ @-webkit-keyframes sk-stretchdelay {
212
+
213
+ 0%,
214
+ 40%,
215
+ 100% {
216
+ -webkit-transform: scaleY(0.4);
217
+ }
218
+
219
+ 20% {
220
+ -webkit-transform: scaleY(1);
221
+ }
222
+ }
223
+
224
+ @keyframes sk-stretchdelay {
225
+
226
+ 0%,
227
+ 40%,
228
+ 100% {
229
+ transform: scaleY(0.4);
230
+ -webkit-transform: scaleY(0.4);
231
+ }
232
+
233
+ 20% {
234
+ transform: scaleY(1);
235
+ -webkit-transform: scaleY(1);
236
+ }
237
+ }
238
+
239
+ .ark-spinner .sk-chase {
240
+ width: 40px;
241
+ height: 40px;
242
+ position: relative;
243
+ animation: sk-chase 2.5s infinite linear both;
244
+ }
245
+
246
+ .ark-spinner .sk-chase-dot {
247
+ width: 100%;
248
+ height: 100%;
249
+ position: absolute;
250
+ left: 0;
251
+ top: 0;
252
+ animation: sk-chase-dot 2s infinite ease-in-out both;
253
+ }
254
+
255
+ .ark-spinner .sk-chase-dot:before {
256
+ content: "";
257
+ display: block;
258
+ width: 25%;
259
+ height: 25%;
260
+ border-radius: 100%;
261
+ animation: sk-chase-dot-before 2s infinite ease-in-out both;
262
+ background: var(--spinner-color, var(--primary, #333));
263
+ }
264
+
265
+ .ark-spinner .sk-chase-dot:nth-child(2) {
266
+ animation-delay: -1s;
267
+ }
268
+
269
+ .ark-spinner .sk-chase-dot:nth-child(1) {
270
+ animation-delay: -1.1s;
271
+ }
272
+
273
+ .ark-spinner .sk-chase-dot:nth-child(3) {
274
+ animation-delay: -0.9s;
275
+ }
276
+
277
+ .ark-spinner .sk-chase-dot:nth-child(4) {
278
+ animation-delay: -0.8s;
279
+ }
280
+
281
+ .ark-spinner .sk-chase-dot:nth-child(5) {
282
+ animation-delay: -0.7s;
283
+ }
284
+
285
+ .ark-spinner .sk-chase-dot:nth-child(6) {
286
+ animation-delay: -0.6s;
287
+ }
288
+
289
+ .ark-spinner .sk-chase-dot:nth-child(1):before {
290
+ animation-delay: -1.1s;
291
+ }
292
+
293
+ .ark-spinner .sk-chase-dot:nth-child(2):before {
294
+ animation-delay: -1s;
295
+ }
296
+
297
+ .ark-spinner .sk-chase-dot:nth-child(3):before {
298
+ animation-delay: -0.9s;
299
+ }
300
+
301
+ .ark-spinner .sk-chase-dot:nth-child(4):before {
302
+ animation-delay: -0.8s;
303
+ }
304
+
305
+ .ark-spinner .sk-chase-dot:nth-child(5):before {
306
+ animation-delay: -0.7s;
307
+ }
308
+
309
+ .ark-spinner .sk-chase-dot:nth-child(6):before {
310
+ animation-delay: -0.6s;
311
+ }
312
+
313
+ @keyframes sk-chase {
314
+ 100% {
315
+ transform: rotate(360deg);
316
+ }
317
+ }
318
+
319
+ @keyframes sk-chase-dot {
320
+
321
+ 80%,
322
+ 100% {
323
+ transform: rotate(360deg);
324
+ }
325
+ }
326
+
327
+ @keyframes sk-chase-dot-before {
328
+ 50% {
329
+ transform: scale(0.4);
330
+ }
331
+
332
+ 100%,
333
+ 0% {
334
+ transform: scale(1);
335
+ }
336
+ }
337
+
338
+ .ark-spinner .lds-spinner {
339
+ display: inline-block;
340
+ position: relative;
341
+ width: 80px;
342
+ height: 80px;
343
+ }
344
+
345
+ .ark-spinner .lds-spinner div {
346
+ transform-origin: 40px 40px;
347
+ animation: lds-spinner 1.2s linear infinite;
348
+ }
349
+
350
+ .ark-spinner .lds-spinner div:after {
351
+ content: " ";
352
+ display: block;
353
+ position: absolute;
354
+ top: 3px;
355
+ left: 37px;
356
+ width: 6px;
357
+ height: 18px;
358
+ border-radius: 20%;
359
+ background: var(--spinner-color, var(--primary, #333));
360
+ }
361
+
362
+ .ark-spinner .lds-spinner div:nth-child(1) {
363
+ transform: rotate(0deg);
364
+ animation-delay: -1.1s;
365
+ }
366
+
367
+ .ark-spinner .lds-spinner div:nth-child(2) {
368
+ transform: rotate(30deg);
369
+ animation-delay: -1s;
370
+ }
371
+
372
+ .ark-spinner .lds-spinner div:nth-child(3) {
373
+ transform: rotate(60deg);
374
+ animation-delay: -0.9s;
375
+ }
376
+
377
+ .ark-spinner .lds-spinner div:nth-child(4) {
378
+ transform: rotate(90deg);
379
+ animation-delay: -0.8s;
380
+ }
381
+
382
+ .ark-spinner .lds-spinner div:nth-child(5) {
383
+ transform: rotate(120deg);
384
+ animation-delay: -0.7s;
385
+ }
386
+
387
+ .ark-spinner .lds-spinner div:nth-child(6) {
388
+ transform: rotate(150deg);
389
+ animation-delay: -0.6s;
390
+ }
391
+
392
+ .ark-spinner .lds-spinner div:nth-child(7) {
393
+ transform: rotate(180deg);
394
+ animation-delay: -0.5s;
395
+ }
396
+
397
+ .ark-spinner .lds-spinner div:nth-child(8) {
398
+ transform: rotate(210deg);
399
+ animation-delay: -0.4s;
400
+ }
401
+
402
+ .ark-spinner .lds-spinner div:nth-child(9) {
403
+ transform: rotate(240deg);
404
+ animation-delay: -0.3s;
405
+ }
406
+
407
+ .ark-spinner .lds-spinner div:nth-child(10) {
408
+ transform: rotate(270deg);
409
+ animation-delay: -0.2s;
410
+ }
411
+
412
+ .ark-spinner .lds-spinner div:nth-child(11) {
413
+ transform: rotate(300deg);
414
+ animation-delay: -0.1s;
415
+ }
416
+
417
+ .ark-spinner .lds-spinner div:nth-child(12) {
418
+ transform: rotate(330deg);
419
+ animation-delay: 0s;
420
+ }
421
+
422
+ @keyframes lds-spinner {
423
+ 0% {
424
+ opacity: 1;
425
+ }
426
+
427
+ 100% {
428
+ opacity: 0;
429
+ }
430
+ }
431
+
432
+ .ark-spinner .bouncer {
433
+ width: 70px;
434
+ text-align: center;
435
+ }
436
+
437
+ .ark-spinner .bouncer div {
438
+ width: 18px;
439
+ height: 18px;
440
+ border-radius: 100%;
441
+ display: inline-block;
442
+ -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
443
+ animation: sk-bouncedelay 1.4s infinite ease-in-out both;
444
+ background: var(--spinner-color, var(--primary, #333));
445
+ }
446
+
447
+ .ark-spinner .bouncer div.bounce1 {
448
+ -webkit-animation-delay: -0.32s;
449
+ animation-delay: -0.32s;
450
+ }
451
+
452
+ .ark-spinner .bouncer div.bounce2 {
453
+ -webkit-animation-delay: -0.16s;
454
+ animation-delay: -0.16s;
455
+ }
456
+
457
+ @-webkit-keyframes sk-bouncedelay {
458
+
459
+ 0%,
460
+ 80%,
461
+ 100% {
462
+ -webkit-transform: scale(0);
463
+ }
464
+
465
+ 40% {
466
+ -webkit-transform: scale(1);
467
+ }
468
+ }
469
+
470
+ @keyframes sk-bouncedelay {
471
+
472
+ 0%,
473
+ 80%,
474
+ 100% {
475
+ -webkit-transform: scale(0);
476
+ transform: scale(0);
477
+ }
478
+
479
+ 40% {
480
+ -webkit-transform: scale(1);
481
+ transform: scale(1);
482
+ }
483
+ }
484
+
485
+ .ark-spinner .round {
486
+ width: 40px;
487
+ height: 40px;
488
+ position: relative;
489
+ }
490
+
491
+ .ark-spinner .round .sk-child {
492
+ position: absolute;
493
+ left: 0;
494
+ top: 0;
495
+ }
496
+
497
+ .ark-spinner .round .sk-child:before {
498
+ content: "";
499
+ display: block;
500
+ width: 15%;
501
+ height: 15%;
502
+ border-radius: 100%;
503
+ -webkit-animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
504
+ animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
505
+ background: var(--spinner-color, var(--primary, #333));
506
+ }
507
+
508
+ .ark-spinner .round2 {
509
+ -webkit-transform: rotate(30deg);
510
+ -ms-transform: rotate(30deg);
511
+ transform: rotate(30deg);
512
+ }
513
+
514
+ .ark-spinner .round2:before {
515
+ -webkit-animation-delay: -1.1s;
516
+ animation-delay: -1.1s;
517
+ }
518
+
519
+ .ark-spinner .round3 {
520
+ -webkit-transform: rotate(60deg);
521
+ -ms-transform: rotate(60deg);
522
+ transform: rotate(60deg);
523
+ }
524
+
525
+ .ark-spinner .round3:before {
526
+ -webkit-animation-delay: -1s;
527
+ animation-delay: -1s;
528
+ }
529
+
530
+ .ark-spinner .round4 {
531
+ -webkit-transform: rotate(90deg);
532
+ -ms-transform: rotate(90deg);
533
+ transform: rotate(90deg);
534
+ }
535
+
536
+ .ark-spinner .round4:before {
537
+ -webkit-animation-delay: -0.9s;
538
+ animation-delay: -0.9s;
539
+ }
540
+
541
+ .ark-spinner .round5 {
542
+ -webkit-transform: rotate(120deg);
543
+ -ms-transform: rotate(120deg);
544
+ transform: rotate(120deg);
545
+ }
546
+
547
+ .ark-spinner .round5:before {
548
+ -webkit-animation-delay: -0.8s;
549
+ animation-delay: -0.8s;
550
+ }
551
+
552
+ .ark-spinner .round6 {
553
+ -webkit-transform: rotate(150deg);
554
+ -ms-transform: rotate(150deg);
555
+ transform: rotate(150deg);
556
+ }
557
+
558
+ .ark-spinner .round6:before {
559
+ -webkit-animation-delay: -0.7s;
560
+ animation-delay: -0.7s;
561
+ }
562
+
563
+ .ark-spinner .round7 {
564
+ -webkit-transform: rotate(180deg);
565
+ -ms-transform: rotate(180deg);
566
+ transform: rotate(180deg);
567
+ }
568
+
569
+ .ark-spinner .round7:before {
570
+ -webkit-animation-delay: -0.6s;
571
+ animation-delay: -0.6s;
572
+ }
573
+
574
+ .ark-spinner .round8 {
575
+ -webkit-transform: rotate(210deg);
576
+ -ms-transform: rotate(210deg);
577
+ transform: rotate(210deg);
578
+ }
579
+
580
+ .ark-spinner .round8:before {
581
+ -webkit-animation-delay: -0.5s;
582
+ animation-delay: -0.5s;
583
+ }
584
+
585
+ .ark-spinner .round9 {
586
+ -webkit-transform: rotate(240deg);
587
+ -ms-transform: rotate(240deg);
588
+ transform: rotate(240deg);
589
+ }
590
+
591
+ .ark-spinner .round9:before {
592
+ -webkit-animation-delay: -0.4s;
593
+ animation-delay: -0.4s;
594
+ }
595
+
596
+ .ark-spinner .round10 {
597
+ -webkit-transform: rotate(270deg);
598
+ -ms-transform: rotate(270deg);
599
+ transform: rotate(270deg);
600
+ }
601
+
602
+ .ark-spinner .round10:before {
603
+ -webkit-animation-delay: -0.3s;
604
+ animation-delay: -0.3s;
605
+ }
606
+
607
+ .ark-spinner .round11 {
608
+ -webkit-transform: rotate(300deg);
609
+ -ms-transform: rotate(300deg);
610
+ transform: rotate(300deg);
611
+ }
612
+
613
+ .ark-spinner .round11:before {
614
+ -webkit-animation-delay: -0.2s;
615
+ animation-delay: -0.2s;
616
+ }
617
+
618
+ .ark-spinner .round12 {
619
+ -webkit-transform: rotate(330deg);
620
+ -ms-transform: rotate(330deg);
621
+ transform: rotate(330deg);
622
+ }
623
+
624
+ .ark-spinner .round12:before {
625
+ -webkit-animation-delay: -0.1s;
626
+ animation-delay: -0.1s;
627
+ }
628
+
629
+ @-webkit-keyframes sk-circleBounceDelay {
630
+
631
+ 0%,
632
+ 80%,
633
+ 100% {
634
+ -webkit-transform: scale(0);
635
+ transform: scale(0);
636
+ }
637
+
638
+ 40% {
639
+ -webkit-transform: scale(1);
640
+ transform: scale(1);
641
+ }
642
+ }
643
+
644
+ @keyframes sk-circleBounceDelay {
645
+
646
+ 0%,
647
+ 80%,
648
+ 100% {
649
+ -webkit-transform: scale(0);
650
+ transform: scale(0);
651
+ }
652
+
653
+ 40% {
654
+ -webkit-transform: scale(1);
655
+ transform: scale(1);
656
+ }
657
+ }
658
+ `
@@ -0,0 +1,2 @@
1
+ import styles from './ark.css.js'
2
+ export default styles
@@ -0,0 +1,63 @@
1
+ SPLITVIEW
2
+ =========
3
+
4
+ The ``ark-splitview`` provides an interface composed of a ``master`` view of list items, clicking this items displays content in the ``detail`` view.
5
+ This component, being responsive, displays two columns on wide screen devices, while on mobile, the ``master`` view as well as the ``detail``, occupies the entire width of the viewport.
6
+
7
+
8
+
9
+ Examples
10
+ --------
11
+
12
+ **The splitview use an** ``ark-splitview`` **element with** ``ark-splitview-master`` **inside that displays the list using an** ``ark-list`` **component.**
13
+ **For the porpose of displaying the details of each item** ``ark-splitview-detail`` **is needed, in this example** ``demo-splitview-detail`` **is a custom component that reaches the specific item information**
14
+
15
+ ```html
16
+ <ark-splitview>
17
+ <ark-splitview-master resize master-event="list:selected">
18
+ <ark-list data-list></ark-list>
19
+ </ark-splitview-master>
20
+
21
+ <ark-splitview-detail title="Demo">
22
+ <ark-icon slot="icon" name='fas fa-chevron-left'></ark-icon>
23
+ <demo-splitview-detail></demo-splitview-detail>
24
+ </ark-splitview-detail>
25
+
26
+ </ark-splitview>
27
+ ```
28
+
29
+ Attributes
30
+ ----------
31
+
32
+ | Component | Name | Type | Default | Description |
33
+ |:------------------------:|:-----:|:------:|:-------:|:--------------------------------:|
34
+ | ``ark-splitview-detail`` | title | string | null | Specifies a title for the detail |
35
+
36
+
37
+ Properties
38
+ ----------
39
+
40
+ | Component | Name | Type | Default | Description |
41
+ |:------------------------:|:-----:|:------:|:-------:|:--------------------------------:|
42
+ | ``ark-splitview-detail`` | title | string | null | Specifies a title for the detail |
43
+
44
+
45
+ Methods
46
+ -------
47
+
48
+ | Component | Name | parameters | Description |
49
+ |:------------------------:|:------:|:----------:|:--------------------------------:|
50
+ | ``ark-splitview-detail`` | show | - | Shows the content in detail view |
51
+ | ``ark-splitview-detail`` | hide | - | Hide the contents of detail view |
52
+ | ``ark-splitview-detail`` | toggle | - | Toggle between show and hide |
53
+
54
+
55
+ Slots
56
+ -----
57
+
58
+ **Add a** ``slot`` **attribute in** ``ark-splitview-detail`` **component to specify the section in wich the content is to be displayed**
59
+
60
+ | Name | Description |
61
+ |:-------:|:------------------------------------------------------------------------------------:|
62
+ | general | Every element that has not a slot specified displays in the body |
63
+ | icon | Slot for displaying a back icon at the top left of the detail view on mobile screens |