@rxap/ngx-localize 18.0.2-dev.2 → 18.0.3-dev.0

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 (106) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -1
  3. package/compodoc/changelog.html +241 -0
  4. package/compodoc/dependencies.html +201 -0
  5. package/compodoc/fonts/ionicons.eot +0 -0
  6. package/compodoc/fonts/ionicons.svg +2090 -0
  7. package/compodoc/fonts/ionicons.ttf +0 -0
  8. package/compodoc/fonts/ionicons.woff +0 -0
  9. package/compodoc/fonts/ionicons.woff2 +0 -0
  10. package/compodoc/fonts/roboto-v15-latin-300.eot +0 -0
  11. package/compodoc/fonts/roboto-v15-latin-300.svg +314 -0
  12. package/compodoc/fonts/roboto-v15-latin-300.ttf +0 -0
  13. package/compodoc/fonts/roboto-v15-latin-300.woff +0 -0
  14. package/compodoc/fonts/roboto-v15-latin-300.woff2 +0 -0
  15. package/compodoc/fonts/roboto-v15-latin-700.eot +0 -0
  16. package/compodoc/fonts/roboto-v15-latin-700.svg +310 -0
  17. package/compodoc/fonts/roboto-v15-latin-700.ttf +0 -0
  18. package/compodoc/fonts/roboto-v15-latin-700.woff +0 -0
  19. package/compodoc/fonts/roboto-v15-latin-700.woff2 +0 -0
  20. package/compodoc/fonts/roboto-v15-latin-italic.eot +0 -0
  21. package/compodoc/fonts/roboto-v15-latin-italic.svg +323 -0
  22. package/compodoc/fonts/roboto-v15-latin-italic.ttf +0 -0
  23. package/compodoc/fonts/roboto-v15-latin-italic.woff +0 -0
  24. package/compodoc/fonts/roboto-v15-latin-italic.woff2 +0 -0
  25. package/compodoc/fonts/roboto-v15-latin-regular.eot +0 -0
  26. package/compodoc/fonts/roboto-v15-latin-regular.svg +308 -0
  27. package/compodoc/fonts/roboto-v15-latin-regular.ttf +0 -0
  28. package/compodoc/fonts/roboto-v15-latin-regular.woff +0 -0
  29. package/compodoc/fonts/roboto-v15-latin-regular.woff2 +0 -0
  30. package/compodoc/graph/dependencies.svg +24 -0
  31. package/compodoc/images/compodoc-vectorise-inverted.png +0 -0
  32. package/compodoc/images/compodoc-vectorise-inverted.svg +201 -0
  33. package/compodoc/images/compodoc-vectorise.png +0 -0
  34. package/compodoc/images/compodoc-vectorise.svg +201 -0
  35. package/compodoc/images/favicon.ico +0 -0
  36. package/compodoc/index.html +190 -0
  37. package/compodoc/injectables/I18nService.html +568 -0
  38. package/compodoc/injectables/LanguageSelectorService.html +528 -0
  39. package/compodoc/js/compodoc.js +14 -0
  40. package/compodoc/js/lazy-load-graphs.js +44 -0
  41. package/compodoc/js/libs/EventDispatcher.js +5 -0
  42. package/compodoc/js/libs/bootstrap-native.js +2 -0
  43. package/compodoc/js/libs/clipboard.min.js +7 -0
  44. package/compodoc/js/libs/custom-elements-es5-adapter.js +15 -0
  45. package/compodoc/js/libs/custom-elements.min.js +38 -0
  46. package/compodoc/js/libs/d3.v3.min.js +2 -0
  47. package/compodoc/js/libs/deep-iterator.js +2 -0
  48. package/compodoc/js/libs/es6-shim.min.js +12 -0
  49. package/compodoc/js/libs/htmlparser.js +23 -0
  50. package/compodoc/js/libs/innersvg.js +9 -0
  51. package/compodoc/js/libs/lit-html.js +1 -0
  52. package/compodoc/js/libs/prism.js +46 -0
  53. package/compodoc/js/libs/promise.min.js +6 -0
  54. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -0
  55. package/compodoc/js/libs/tablesort.min.js +6 -0
  56. package/compodoc/js/libs/tablesort.number.min.js +6 -0
  57. package/compodoc/js/libs/vis.min.js +47 -0
  58. package/compodoc/js/libs/zepto.min.js +2 -0
  59. package/compodoc/js/menu-wc.js +98 -0
  60. package/compodoc/js/menu-wc_es5.js +40 -0
  61. package/compodoc/js/menu.js +270 -0
  62. package/compodoc/js/routes.js +301 -0
  63. package/compodoc/js/search/lunr.min.js +6 -0
  64. package/compodoc/js/search/search-lunr.js +67 -0
  65. package/compodoc/js/search/search.js +283 -0
  66. package/compodoc/js/search/search_index.js +4 -0
  67. package/compodoc/js/sourceCode.js +58 -0
  68. package/compodoc/js/svg-pan-zoom.controls.js +53 -0
  69. package/compodoc/js/tabs.js +21 -0
  70. package/compodoc/js/tree.js +147 -0
  71. package/compodoc/license.html +731 -0
  72. package/compodoc/miscellaneous/functions.html +273 -0
  73. package/compodoc/modules.html +183 -0
  74. package/compodoc/overview.html +193 -0
  75. package/compodoc/properties.html +195 -0
  76. package/compodoc/styles/bootstrap-card.css +219 -0
  77. package/compodoc/styles/bootstrap.min.css +6 -0
  78. package/compodoc/styles/compodoc.css +1124 -0
  79. package/compodoc/styles/dark.css +121 -0
  80. package/compodoc/styles/ionicons.min.css +11 -0
  81. package/compodoc/styles/laravel.css +113 -0
  82. package/compodoc/styles/material.css +131 -0
  83. package/compodoc/styles/original.css +51 -0
  84. package/compodoc/styles/postmark.css +238 -0
  85. package/compodoc/styles/prism.css +301 -0
  86. package/compodoc/styles/readthedocs.css +117 -0
  87. package/compodoc/styles/reset.css +129 -0
  88. package/compodoc/styles/stripe.css +106 -0
  89. package/compodoc/styles/style.css +7 -0
  90. package/compodoc/styles/tablesort.css +33 -0
  91. package/compodoc/styles/vagrant.css +130 -0
  92. package/docs/.nojekyll +1 -0
  93. package/docs/assets/highlight.css +43 -0
  94. package/docs/assets/icons.js +15 -0
  95. package/docs/assets/icons.svg +1 -0
  96. package/docs/assets/main.js +59 -0
  97. package/docs/assets/navigation.js +1 -0
  98. package/docs/assets/search.js +1 -0
  99. package/docs/assets/style.css +1412 -0
  100. package/docs/classes/I18nService.html +7 -0
  101. package/docs/classes/LanguageSelectorService.html +8 -0
  102. package/docs/documentation.json +908 -0
  103. package/docs/functions/LanguageInterceptor.html +1 -0
  104. package/docs/index.html +16 -0
  105. package/docs/modules.html +4 -0
  106. package/package.json +19 -19
@@ -0,0 +1,147 @@
1
+ document.addEventListener('DOMContentLoaded', function() {
2
+ var tabs = document.getElementsByClassName('nav-tabs')[0],
3
+ tabsCollection = tabs.getElementsByTagName('A'),
4
+ treeTab;
5
+ var len = tabsCollection.length;
6
+ for(var i = 0; i < len; i++) {
7
+ if (tabsCollection[i].getAttribute('id') === 'tree-tab') {
8
+ treeTab = tabsCollection[i];
9
+ }
10
+ }
11
+
12
+ // short-circuit if no tree tab
13
+ if (!treeTab) return;
14
+
15
+ var handler = new Tautologistics.NodeHtmlParser.HtmlBuilder(function(error, dom) {
16
+ if (error) {
17
+ console.log('handler ko');
18
+ }
19
+ }),
20
+ parser = new Tautologistics.NodeHtmlParser.Parser(handler),
21
+ currentLocation = window.location;
22
+ parser.parseComplete(COMPONENT_TEMPLATE);
23
+
24
+ var newNodes = [],
25
+ newEdges = [],
26
+ parsedHtml = handler.dom[0],
27
+ nodeCount = 0,
28
+ nodeLevel = 0;
29
+
30
+ newNodes.push({
31
+ _id: 0,
32
+ label: parsedHtml.name,
33
+ type: parsedHtml.type
34
+ })
35
+ //Add id for nodes
36
+ var traverseIds = function(o) {
37
+ for (i in o) {
38
+ if (!!o[i] && typeof(o[i]) == "object") {
39
+ if (!o[i].length && o[i].type === 'tag') {
40
+ nodeCount += 1;
41
+ o[i]._id = nodeCount;
42
+ }
43
+ traverseIds(o[i]);
44
+ }
45
+ }
46
+ }
47
+ parsedHtml._id = 0;
48
+ traverseIds(parsedHtml);
49
+
50
+
51
+ var DeepIterator = deepIterator.default,
52
+ it = DeepIterator(parsedHtml);
53
+ for (let {
54
+ value,
55
+ parent,
56
+ parentNode,
57
+ key,
58
+ type
59
+ } of it) {
60
+ if (type === 'NonIterableObject' && typeof key !== 'undefined' && value.type === 'tag') {
61
+ var newNode = {
62
+ id: value._id,
63
+ label: value.name,
64
+ type: value.type
65
+ };
66
+ for(var i = 0; i < COMPONENTS.length; i++) {
67
+ if (COMPONENTS[i].selector === value.name) {
68
+ newNode.font = {
69
+ multi: 'html'
70
+ };
71
+ newNode.label = '<b>' + newNode.label + '</b>';
72
+ newNode.color = '#FB7E81';
73
+ newNode.name = COMPONENTS[i].name;
74
+ }
75
+ }
76
+ for(var i = 0; i < DIRECTIVES.length; i++) {
77
+ if (value.attributes) {
78
+ for(attr in value.attributes) {
79
+ if (DIRECTIVES[i].selector.indexOf(attr) !== -1) {
80
+ newNode.font = {
81
+ multi: 'html'
82
+ };
83
+ newNode.label = '<b>' + newNode.label + '</b>';
84
+ newNode.color = '#FF9800';
85
+ newNode.name = DIRECTIVES[i].name;
86
+ }
87
+ }
88
+ }
89
+ }
90
+ newNodes.push(newNode);
91
+ newEdges.push({
92
+ from: parentNode._parent._id,
93
+ to: value._id,
94
+ arrows: 'to'
95
+ });
96
+ }
97
+ }
98
+
99
+ newNodes.shift();
100
+
101
+ var container = document.getElementById('tree-container'),
102
+ data = {
103
+ nodes: newNodes,
104
+ edges: newEdges
105
+ },
106
+ options = {
107
+ layout: {
108
+ hierarchical: {
109
+ sortMethod: 'directed',
110
+ enabled: true
111
+ }
112
+ },
113
+ nodes: {
114
+ shape: 'ellipse',
115
+ fixed: true
116
+ }
117
+ },
118
+
119
+ handleClickNode = function(params) {
120
+ var clickeNodeId;
121
+ if (params.nodes.length > 0) {
122
+ clickeNodeId = params.nodes[0];
123
+ for(var i = 0; i < newNodes.length; i++) {
124
+ if (newNodes[i].id === clickeNodeId) {
125
+ for(var j = 0; j < COMPONENTS.length; j++) {
126
+ if (COMPONENTS[j].name === newNodes[i].name) {
127
+ document.location.href = currentLocation.origin + currentLocation.pathname.replace(ACTUAL_COMPONENT.name, newNodes[i].name);
128
+ }
129
+ }
130
+ }
131
+ }
132
+ }
133
+ },
134
+
135
+ loadTree = function () {
136
+ setTimeout(function() {
137
+ container.style.height = document.getElementsByClassName('content')[0].offsetHeight - 140 + 'px';
138
+ var network = new vis.Network(container, data, options);
139
+ network.on('click', handleClickNode);
140
+ }, 200); // Fade is 0.150
141
+ };
142
+
143
+ loadTree();
144
+ treeTab.addEventListener('click', function() {
145
+ loadTree();
146
+ });
147
+ });