@firestitch/content 12.3.4 → 13.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. package/app/consts/index.d.ts +1 -1
  2. package/app/consts/page-types.const.d.ts +5 -5
  3. package/app/enums/editor-type.d.ts +6 -6
  4. package/app/enums/index.d.ts +2 -2
  5. package/app/enums/page-type.enum.d.ts +6 -6
  6. package/app/injectors/content-config.injector.d.ts +2 -2
  7. package/app/injectors/index.d.ts +1 -1
  8. package/app/interfaces/content-config.d.ts +21 -21
  9. package/app/interfaces/content-layout.d.ts +10 -10
  10. package/app/interfaces/content-page.d.ts +14 -14
  11. package/app/interfaces/content-style.d.ts +4 -4
  12. package/app/interfaces/index.d.ts +4 -4
  13. package/app/modules/content/components/content/content.component.d.ts +25 -25
  14. package/app/modules/content/components/content/index.d.ts +1 -1
  15. package/app/modules/content/components/content-renderer/content-renderer.component.d.ts +24 -24
  16. package/app/modules/content/components/content-renderer/index.d.ts +1 -1
  17. package/app/modules/content/fs-content.module.d.ts +10 -10
  18. package/app/modules/content-layouts/components/content-layout/content-layout.component.d.ts +27 -27
  19. package/app/modules/content-layouts/components/content-layout/index.d.ts +1 -1
  20. package/app/modules/content-layouts/components/content-layout-editor/content-layout-editor.component.d.ts +50 -50
  21. package/app/modules/content-layouts/components/content-layout-editor/index.d.ts +1 -1
  22. package/app/modules/content-layouts/components/content-layouts/content-layouts.component.d.ts +21 -21
  23. package/app/modules/content-layouts/components/content-layouts/index.d.ts +1 -1
  24. package/app/modules/content-layouts/components/index.d.ts +3 -3
  25. package/app/modules/content-layouts/fs-content-layouts.module.d.ts +28 -28
  26. package/app/modules/content-pages/components/content-page/content-page.component.d.ts +32 -32
  27. package/app/modules/content-pages/components/content-page/index.d.ts +1 -1
  28. package/app/modules/content-pages/components/content-page-editor/content-page-editor.component.d.ts +56 -55
  29. package/app/modules/content-pages/components/content-page-editor/index.d.ts +1 -1
  30. package/app/modules/content-pages/components/content-pages/content-pages.component.d.ts +24 -24
  31. package/app/modules/content-pages/components/content-pages/index.d.ts +1 -1
  32. package/app/modules/content-pages/components/index.d.ts +3 -3
  33. package/app/modules/content-pages/fs-content-pages.module.d.ts +33 -32
  34. package/app/modules/content-style/components/content-style/content-style.component.d.ts +27 -27
  35. package/app/modules/content-style/components/content-style/index.d.ts +1 -1
  36. package/app/modules/content-style/fs-content-style.module.d.ts +14 -14
  37. package/app/modules/editor/components/editor/editor.component.d.ts +49 -49
  38. package/app/modules/editor/components/editor/index.d.ts +1 -1
  39. package/app/modules/editor/components/editor-label/editor-label.component.d.ts +7 -7
  40. package/app/modules/editor/components/editor-label/index.d.ts +1 -1
  41. package/app/modules/editor/fs-content-editor.module.d.ts +24 -24
  42. package/app/modules/editor/index.d.ts +1 -1
  43. package/{esm2015/app/consts/index.js → esm2020/app/consts/index.mjs} +1 -1
  44. package/{esm2015/app/consts/page-types.const.js → esm2020/app/consts/page-types.const.mjs} +7 -7
  45. package/{esm2015/app/enums/editor-type.js → esm2020/app/enums/editor-type.mjs} +7 -7
  46. package/{esm2015/app/enums/index.js → esm2020/app/enums/index.mjs} +3 -3
  47. package/{esm2015/app/enums/page-type.enum.js → esm2020/app/enums/page-type.enum.mjs} +7 -7
  48. package/{esm2015/app/injectors/content-config.injector.js → esm2020/app/injectors/content-config.injector.mjs} +2 -2
  49. package/{esm2015/app/injectors/index.js → esm2020/app/injectors/index.mjs} +1 -1
  50. package/{esm2015/app/interfaces/content-config.js → esm2020/app/interfaces/content-config.mjs} +1 -1
  51. package/{esm2015/app/interfaces/content-layout.js → esm2020/app/interfaces/content-layout.mjs} +1 -1
  52. package/{esm2015/app/interfaces/content-page.js → esm2020/app/interfaces/content-page.mjs} +1 -1
  53. package/{esm2015/app/interfaces/content-style.js → esm2020/app/interfaces/content-style.mjs} +1 -1
  54. package/{esm2015/app/interfaces/index.js → esm2020/app/interfaces/index.mjs} +5 -5
  55. package/{esm2015/app/modules/content/components/content/content.component.js → esm2020/app/modules/content/components/content/content.component.mjs} +80 -85
  56. package/{esm2015/app/modules/content/components/content/index.js → esm2020/app/modules/content/components/content/index.mjs} +1 -1
  57. package/esm2020/app/modules/content/components/content-renderer/content-renderer.component.mjs +74 -0
  58. package/{esm2015/app/modules/content/components/content-renderer/index.js → esm2020/app/modules/content/components/content-renderer/index.mjs} +1 -1
  59. package/{esm2015/app/modules/content/fs-content.module.js → esm2020/app/modules/content/fs-content.module.mjs} +33 -33
  60. package/esm2020/app/modules/content-layouts/components/content-layout/content-layout.component.mjs +68 -0
  61. package/{esm2015/app/modules/content-layouts/components/content-layout/index.js → esm2020/app/modules/content-layouts/components/content-layout/index.mjs} +1 -1
  62. package/esm2020/app/modules/content-layouts/components/content-layout-editor/content-layout-editor.component.mjs +162 -0
  63. package/{esm2015/app/modules/content-layouts/components/content-layout-editor/index.js → esm2020/app/modules/content-layouts/components/content-layout-editor/index.mjs} +1 -1
  64. package/esm2020/app/modules/content-layouts/components/content-layouts/content-layouts.component.mjs +116 -0
  65. package/{esm2015/app/modules/content-layouts/components/content-layouts/index.js → esm2020/app/modules/content-layouts/components/content-layouts/index.mjs} +1 -1
  66. package/{esm2015/app/modules/content-layouts/components/index.js → esm2020/app/modules/content-layouts/components/index.mjs} +4 -4
  67. package/{esm2015/app/modules/content-layouts/fs-content-layouts.module.js → esm2020/app/modules/content-layouts/fs-content-layouts.module.mjs} +104 -104
  68. package/esm2020/app/modules/content-pages/components/content-page/content-page.component.mjs +81 -0
  69. package/{esm2015/app/modules/content-pages/components/content-page/index.js → esm2020/app/modules/content-pages/components/content-page/index.mjs} +1 -1
  70. package/esm2020/app/modules/content-pages/components/content-page-editor/content-page-editor.component.mjs +179 -0
  71. package/{esm2015/app/modules/content-pages/components/content-page-editor/index.js → esm2020/app/modules/content-pages/components/content-page-editor/index.mjs} +1 -1
  72. package/esm2020/app/modules/content-pages/components/content-pages/content-pages.component.mjs +125 -0
  73. package/{esm2015/app/modules/content-pages/components/content-pages/index.js → esm2020/app/modules/content-pages/components/content-pages/index.mjs} +1 -1
  74. package/{esm2015/app/modules/content-pages/components/index.js → esm2020/app/modules/content-pages/components/index.mjs} +4 -4
  75. package/esm2020/app/modules/content-pages/fs-content-pages.module.mjs +121 -0
  76. package/esm2020/app/modules/content-style/components/content-style/content-style.component.mjs +69 -0
  77. package/{esm2015/app/modules/content-style/components/content-style/index.js → esm2020/app/modules/content-style/components/content-style/index.mjs} +1 -1
  78. package/{esm2015/app/modules/content-style/fs-content-style.module.js → esm2020/app/modules/content-style/fs-content-style.module.mjs} +50 -50
  79. package/esm2020/app/modules/editor/components/editor/editor.component.mjs +144 -0
  80. package/{esm2015/app/modules/editor/components/editor/index.js → esm2020/app/modules/editor/components/editor/index.mjs} +1 -1
  81. package/esm2020/app/modules/editor/components/editor-label/editor-label.component.mjs +16 -0
  82. package/{esm2015/app/modules/editor/components/editor-label/index.js → esm2020/app/modules/editor/components/editor-label/index.mjs} +1 -1
  83. package/{esm2015/app/modules/editor/fs-content-editor.module.js → esm2020/app/modules/editor/fs-content-editor.module.mjs} +89 -89
  84. package/{esm2015/app/modules/editor/index.js → esm2020/app/modules/editor/index.mjs} +1 -1
  85. package/{esm2015/firestitch-content.js → esm2020/firestitch-content.mjs} +4 -4
  86. package/{esm2015/public_api.js → esm2020/public_api.mjs} +10 -10
  87. package/fesm2015/firestitch-content.mjs +1344 -0
  88. package/fesm2015/firestitch-content.mjs.map +1 -0
  89. package/fesm2020/firestitch-content.mjs +1345 -0
  90. package/fesm2020/firestitch-content.mjs.map +1 -0
  91. package/firestitch-content.d.ts +5 -5
  92. package/package.json +21 -8
  93. package/public_api.d.ts +10 -10
  94. package/bundles/firestitch-content.umd.js +0 -1480
  95. package/bundles/firestitch-content.umd.js.map +0 -1
  96. package/esm2015/app/modules/content/components/content-renderer/content-renderer.component.js +0 -77
  97. package/esm2015/app/modules/content-layouts/components/content-layout/content-layout.component.js +0 -72
  98. package/esm2015/app/modules/content-layouts/components/content-layout-editor/content-layout-editor.component.js +0 -160
  99. package/esm2015/app/modules/content-layouts/components/content-layouts/content-layouts.component.js +0 -121
  100. package/esm2015/app/modules/content-pages/components/content-page/content-page.component.js +0 -83
  101. package/esm2015/app/modules/content-pages/components/content-page-editor/content-page-editor.component.js +0 -176
  102. package/esm2015/app/modules/content-pages/components/content-pages/content-pages.component.js +0 -130
  103. package/esm2015/app/modules/content-pages/fs-content-pages.module.js +0 -117
  104. package/esm2015/app/modules/content-style/components/content-style/content-style.component.js +0 -71
  105. package/esm2015/app/modules/editor/components/editor/editor.component.js +0 -149
  106. package/esm2015/app/modules/editor/components/editor-label/editor-label.component.js +0 -21
  107. package/fesm2015/firestitch-content.js +0 -1374
  108. package/fesm2015/firestitch-content.js.map +0 -1
@@ -1,8 +1,8 @@
1
- export var EditorType;
2
- (function (EditorType) {
3
- EditorType["Js"] = "js";
4
- EditorType["Html"] = "html";
5
- EditorType["Scss"] = "scss";
6
- EditorType["GlobalScss"] = "globalScss";
7
- })(EditorType || (EditorType = {}));
1
+ export var EditorType;
2
+ (function (EditorType) {
3
+ EditorType["Js"] = "js";
4
+ EditorType["Html"] = "html";
5
+ EditorType["Scss"] = "scss";
6
+ EditorType["GlobalScss"] = "globalScss";
7
+ })(EditorType || (EditorType = {}));
8
8
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLXR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYXBwL2VudW1zL2VkaXRvci10eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLFVBS1g7QUFMRCxXQUFZLFVBQVU7SUFDcEIsdUJBQVMsQ0FBQTtJQUNULDJCQUFhLENBQUE7SUFDYiwyQkFBYSxDQUFBO0lBQ2IsdUNBQXlCLENBQUE7QUFDM0IsQ0FBQyxFQUxXLFVBQVUsS0FBVixVQUFVLFFBS3JCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gRWRpdG9yVHlwZSB7XG4gIEpzID0gJ2pzJyxcbiAgSHRtbCA9ICdodG1sJyxcbiAgU2NzcyA9ICdzY3NzJyxcbiAgR2xvYmFsU2NzcyA9ICdnbG9iYWxTY3NzJyxcbn1cbiJdfQ==
@@ -1,3 +1,3 @@
1
- export * from './editor-type';
2
- export * from './page-type.enum';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYXBwL2VudW1zL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2VkaXRvci10eXBlJztcbmV4cG9ydCAqIGZyb20gJy4vcGFnZS10eXBlLmVudW0nO1xuIl19
1
+ export * from './editor-type';
2
+ export * from './page-type.enum';
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYXBwL2VudW1zL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsZUFBZSxDQUFDO0FBQzlCLGNBQWMsa0JBQWtCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2VkaXRvci10eXBlJztcclxuZXhwb3J0ICogZnJvbSAnLi9wYWdlLXR5cGUuZW51bSc7XHJcbiJdfQ==
@@ -1,8 +1,8 @@
1
- export var PageType;
2
- (function (PageType) {
3
- PageType["StandardPage"] = "standardPage";
4
- PageType["BlogPost"] = "blogPost";
5
- PageType["HomePage"] = "homePage";
6
- PageType["NotFoundPage"] = "notFoundPage";
7
- })(PageType || (PageType = {}));
1
+ export var PageType;
2
+ (function (PageType) {
3
+ PageType["StandardPage"] = "standardPage";
4
+ PageType["BlogPost"] = "blogPost";
5
+ PageType["HomePage"] = "homePage";
6
+ PageType["NotFoundPage"] = "notFoundPage";
7
+ })(PageType || (PageType = {}));
8
8
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnZS10eXBlLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYXBwL2VudW1zL3BhZ2UtdHlwZS5lbnVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLFFBS1g7QUFMRCxXQUFZLFFBQVE7SUFDbEIseUNBQTZCLENBQUE7SUFDN0IsaUNBQXFCLENBQUE7SUFDckIsaUNBQXFCLENBQUE7SUFDckIseUNBQTZCLENBQUE7QUFDL0IsQ0FBQyxFQUxXLFFBQVEsS0FBUixRQUFRLFFBS25CIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gUGFnZVR5cGUge1xuICBTdGFuZGFyZFBhZ2UgPSAnc3RhbmRhcmRQYWdlJyxcbiAgQmxvZ1Bvc3QgPSAnYmxvZ1Bvc3QnLFxuICBIb21lUGFnZSA9ICdob21lUGFnZScsXG4gIE5vdEZvdW5kUGFnZSA9ICdub3RGb3VuZFBhZ2UnLFxufVxuIl19
@@ -1,3 +1,3 @@
1
- import { InjectionToken } from '@angular/core';
2
- export const FS_CONTENT_CONFIG = new InjectionToken('fs-content-config');
1
+ import { InjectionToken } from '@angular/core';
2
+ export const FS_CONTENT_CONFIG = new InjectionToken('fs-content-config');
3
3
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1jb25maWcuaW5qZWN0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYXBwL2luamVjdG9ycy9jb250ZW50LWNvbmZpZy5pbmplY3Rvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRS9DLE1BQU0sQ0FBQyxNQUFNLGlCQUFpQixHQUFHLElBQUksY0FBYyxDQUFNLG1CQUFtQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3Rpb25Ub2tlbiB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5leHBvcnQgY29uc3QgRlNfQ09OVEVOVF9DT05GSUcgPSBuZXcgSW5qZWN0aW9uVG9rZW48YW55PignZnMtY29udGVudC1jb25maWcnKTtcbiJdfQ==
@@ -1,2 +1,2 @@
1
- export * from './content-config.injector';
1
+ export * from './content-config.injector';
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYXBwL2luamVjdG9ycy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDJCQUEyQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jb250ZW50LWNvbmZpZy5pbmplY3Rvcic7XG4iXX0=
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1jb25maWcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYXBwL2ludGVyZmFjZXMvY29udGVudC1jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE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9ic2VydmFibGU8RnNDb250ZW50U3R5bGU+O1xuICBzYXZlQ29udGVudFN0eWxlOiAoY29udGVudFN0eWxlOiBGc0NvbnRlbnRTdHlsZSkgPT4gT2JzZXJ2YWJsZTxGc0NvbnRlbnRTdHlsZT47XG4gIHNhdmVDb250ZW50TGF5b3V0OiAoY29udGVudExheW91dDogRnNDb250ZW50TGF5b3V0KSA9PiBPYnNlcnZhYmxlPEZzQ29udGVudExheW91dD47XG4gIGRlbGV0ZUNvbnRlbnRMYXlvdXQ6IChjb250ZW50TGF5b3V0OiBGc0NvbnRlbnRMYXlvdXQpID0+IE9ic2VydmFibGU8RnNDb250ZW50TGF5b3V0Pjtcbn1cbiJdfQ==
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1sYXlvdXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYXBwL2ludGVyZmFjZXMvY29udGVudC1sYXlvdXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgRnNDb250ZW50TGF5b3V0IHtcbiAgaWQ/OiBudW1iZXI7XG4gIHN0YXRlPzogc3RyaW5nO1xuICBuYW1lPzogc3RyaW5nO1xuICB0YWc/OiBzdHJpbmc7XG4gIGNvbnRlbnQ/OiBzdHJpbmc7XG4gIHN0eWxlcz86IHN0cmluZztcbiAgY3JlYXRlRGF0ZT86IERhdGU7XG4gIG1vZGlmeURhdGU/OiBEYXRlO1xufSJdfQ==
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1wYWdlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2FwcC9pbnRlcmZhY2VzL2NvbnRlbnQtcGFnZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBGc0NvbnRlbnRQYWdlIHtcbiAgaWQ/OiBudW1iZXI7XG4gIGNvbnRlbnRMYXlvdXRJZD86IG51bWJlcjtcbiAgc3RhdGU/OiBzdHJpbmc7XG4gIHR5cGU/OiBzdHJpbmc7XG4gIHBhdGg/OiBzdHJpbmc7XG4gIGpzPzogc3RyaW5nO1xuICB0aXRsZT86IHN0cmluZztcbiAgY29udGVudD86IHN0cmluZztcbiAgc3R5bGVzPzogc3RyaW5nO1xuICBuYW1lPzogc3RyaW5nO1xuICBjcmVhdGVEYXRlPzogRGF0ZTtcbiAgbW9kaWZ5RGF0ZT86IERhdGU7XG59XG4iXX0=
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1zdHlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hcHAvaW50ZXJmYWNlcy9jb250ZW50LXN0eWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIEZzQ29udGVudFN0eWxlIHtcbiAgc2Nzcz86IHN0cmluZztcbiAgbW9kaWZ5RGF0ZT86IERhdGU7XG59XG4iXX0=
@@ -1,5 +1,5 @@
1
- export * from './content-config';
2
- export * from './content-layout';
3
- export * from './content-page';
4
- export * from './content-style';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYXBwL2ludGVyZmFjZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsZ0JBQWdCLENBQUM7QUFDL0IsY0FBYyxpQkFBaUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29udGVudC1jb25maWcnO1xuZXhwb3J0ICogZnJvbSAnLi9jb250ZW50LWxheW91dCc7XG5leHBvcnQgKiBmcm9tICcuL2NvbnRlbnQtcGFnZSc7XG5leHBvcnQgKiBmcm9tICcuL2NvbnRlbnQtc3R5bGUnO1xuIl19
1
+ export * from './content-config';
2
+ export * from './content-layout';
3
+ export * from './content-page';
4
+ export * from './content-style';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYXBwL2ludGVyZmFjZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsZ0JBQWdCLENBQUM7QUFDL0IsY0FBYyxpQkFBaUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29udGVudC1jb25maWcnO1xyXG5leHBvcnQgKiBmcm9tICcuL2NvbnRlbnQtbGF5b3V0JztcclxuZXhwb3J0ICogZnJvbSAnLi9jb250ZW50LXBhZ2UnO1xyXG5leHBvcnQgKiBmcm9tICcuL2NvbnRlbnQtc3R5bGUnO1xyXG4iXX0=
@@ -1,85 +1,80 @@
1
- import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, } from '@angular/core';
2
- import { Title } from '@angular/platform-browser';
3
- import { NavigationEnd, Router } from '@angular/router';
4
- import { HtmlRenderer } from '@firestitch/html';
5
- import { Subject } from 'rxjs';
6
- import { filter, takeUntil } from 'rxjs/operators';
7
- import { FS_CONTENT_CONFIG } from '../../../../injectors';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "@angular/platform-browser";
10
- import * as i2 from "@angular/router";
11
- import * as i3 from "@firestitch/html";
12
- import * as i4 from "../content-renderer/content-renderer.component";
13
- import * as i5 from "@angular/common";
14
- export class FsContentComponent {
15
- constructor(_config, _title, _cdRef, _router, _el, _htmlRenderer) {
16
- this._config = _config;
17
- this._title = _title;
18
- this._cdRef = _cdRef;
19
- this._router = _router;
20
- this._el = _el;
21
- this._htmlRenderer = _htmlRenderer;
22
- this._destroy$ = new Subject();
23
- }
24
- ngOnInit() {
25
- this._initContent();
26
- this._initStyles();
27
- }
28
- get el() {
29
- return this._el.nativeElement;
30
- }
31
- ngOnDestroy() {
32
- this._destroy$.next();
33
- this._destroy$.complete();
34
- this._title.setTitle('');
35
- }
36
- _initStyles() {
37
- if (this._config.loadContentStyleCss) {
38
- this._config.loadContentStyleCss()
39
- .subscribe((styles) => {
40
- this._htmlRenderer.addStyle(styles, { id: 'content-sytle' });
41
- });
42
- }
43
- }
44
- _initContent() {
45
- this._loadContent();
46
- this._router.events
47
- .pipe(filter((e) => e instanceof NavigationEnd), takeUntil(this._destroy$))
48
- .subscribe((e) => {
49
- this._loadContent();
50
- });
51
- }
52
- _loadContent() {
53
- const path = window.location.pathname;
54
- this._config.loadContent(path)
55
- .subscribe((contentPage) => {
56
- if (contentPage.title) {
57
- this._title.setTitle(contentPage.title);
58
- let ogTitleEl = document.querySelector('head meta[property="og:title"]');
59
- if (!ogTitleEl) {
60
- ogTitleEl = document.createElement('meta');
61
- ogTitleEl.setAttribute('property', 'og:title');
62
- document.getElementsByTagName('head')[0].appendChild(ogTitleEl);
63
- }
64
- ogTitleEl.setAttribute('content', contentPage.title);
65
- }
66
- this.contentPage = contentPage;
67
- this._cdRef.markForCheck();
68
- });
69
- }
70
- }
71
- FsContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentComponent, deps: [{ token: FS_CONTENT_CONFIG }, { token: i1.Title }, { token: i0.ChangeDetectorRef }, { token: i2.Router }, { token: i0.ElementRef }, { token: i3.HtmlRenderer }], target: i0.ɵɵFactoryTarget.Component });
72
- FsContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FsContentComponent, selector: "fs-content", ngImport: i0, template: "<ng-container *ngIf=\"contentPage\">\n <fs-content-renderer [contentPage]=\"contentPage\"></fs-content-renderer>\n</ng-container>", styles: [""], components: [{ type: i4.ContentRendererComponent, selector: "fs-content-renderer", inputs: ["contentPage"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentComponent, decorators: [{
74
- type: Component,
75
- args: [{
76
- selector: 'fs-content',
77
- templateUrl: './content.component.html',
78
- styleUrls: ['./content.component.scss'],
79
- changeDetection: ChangeDetectionStrategy.OnPush,
80
- }]
81
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
82
- type: Inject,
83
- args: [FS_CONTENT_CONFIG]
84
- }] }, { type: i1.Title }, { type: i0.ChangeDetectorRef }, { type: i2.Router }, { type: i0.ElementRef }, { type: i3.HtmlRenderer }]; } });
85
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9jb21wb25lbnRzL2NvbnRlbnQvY29udGVudC5jb21wb25lbnQudHMiLCIuLi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Jyk7XG4gICAgICAgICAgaWYoIW9nVGl0bGVFbCkge1xuICAgICAgICAgICAgb2dUaXRsZUVsID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnbWV0YScpO1xuICAgICAgICAgICAgb2dUaXRsZUVsLnNldEF0dHJpYnV0ZSgncHJvcGVydHknLCdvZzp0aXRsZScpO1xuICAgICAgICAgICAgZG9jdW1lbnQuZ2V0RWxlbWVudHNCeVRhZ05hbWUoJ2hlYWQnKVswXS5hcHBlbmRDaGlsZChvZ1RpdGxlRWwpO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIG9nVGl0bGVFbC5zZXRBdHRyaWJ1dGUoJ2NvbnRlbnQnLGNvbnRlbnRQYWdlLnRpdGxlKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuY29udGVudFBhZ2UgPSBjb250ZW50UGFnZTtcbiAgICAgICAgdGhpcy5fY2RSZWYubWFya0ZvckNoZWNrKCk7XG4gICAgICB9KTtcbiAgfVxuXG59XG4iLCI8bmctY29udGFpbmVyICpuZ0lmPVwiY29udGVudFBhZ2VcIj5cbiAgPGZzLWNvbnRlbnQtcmVuZGVyZXIgW2NvbnRlbnRQYWdlXT1cImNvbnRlbnRQYWdlXCI+PC9mcy1jb250ZW50LXJlbmRlcmVyPlxuPC9uZy1jb250YWluZXI+Il19
1
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, } from '@angular/core';
2
+ import { Title } from '@angular/platform-browser';
3
+ import { NavigationEnd, Router } from '@angular/router';
4
+ import { HtmlRenderer } from '@firestitch/html';
5
+ import { Subject } from 'rxjs';
6
+ import { filter, takeUntil } from 'rxjs/operators';
7
+ import { FS_CONTENT_CONFIG } from '../../../../injectors';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "@angular/platform-browser";
10
+ import * as i2 from "@angular/router";
11
+ import * as i3 from "@firestitch/html";
12
+ import * as i4 from "../content-renderer/content-renderer.component";
13
+ import * as i5 from "@angular/common";
14
+ export class FsContentComponent {
15
+ constructor(_config, _title, _cdRef, _router, _el, _htmlRenderer) {
16
+ this._config = _config;
17
+ this._title = _title;
18
+ this._cdRef = _cdRef;
19
+ this._router = _router;
20
+ this._el = _el;
21
+ this._htmlRenderer = _htmlRenderer;
22
+ this._destroy$ = new Subject();
23
+ }
24
+ ngOnInit() {
25
+ this._initContent();
26
+ this._initStyles();
27
+ }
28
+ get el() {
29
+ return this._el.nativeElement;
30
+ }
31
+ ngOnDestroy() {
32
+ this._destroy$.next();
33
+ this._destroy$.complete();
34
+ this._title.setTitle('');
35
+ }
36
+ _initStyles() {
37
+ if (this._config.loadContentStyleCss) {
38
+ this._config.loadContentStyleCss()
39
+ .subscribe((styles) => {
40
+ this._htmlRenderer.addStyle(styles, { id: 'content-sytle' });
41
+ });
42
+ }
43
+ }
44
+ _initContent() {
45
+ this._loadContent();
46
+ this._router.events
47
+ .pipe(filter((e) => e instanceof NavigationEnd), takeUntil(this._destroy$))
48
+ .subscribe((e) => {
49
+ this._loadContent();
50
+ });
51
+ }
52
+ _loadContent() {
53
+ const path = window.location.pathname;
54
+ this._config.loadContent(path)
55
+ .subscribe((contentPage) => {
56
+ if (contentPage.title) {
57
+ this._title.setTitle(contentPage.title);
58
+ let ogTitleEl = document.querySelector('head meta[property="og:title"]');
59
+ if (!ogTitleEl) {
60
+ ogTitleEl = document.createElement('meta');
61
+ ogTitleEl.setAttribute('property', 'og:title');
62
+ document.getElementsByTagName('head')[0].appendChild(ogTitleEl);
63
+ }
64
+ ogTitleEl.setAttribute('content', contentPage.title);
65
+ }
66
+ this.contentPage = contentPage;
67
+ this._cdRef.markForCheck();
68
+ });
69
+ }
70
+ }
71
+ FsContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentComponent, deps: [{ token: FS_CONTENT_CONFIG }, { token: i1.Title }, { token: i0.ChangeDetectorRef }, { token: i2.Router }, { token: i0.ElementRef }, { token: i3.HtmlRenderer }], target: i0.ɵɵFactoryTarget.Component });
72
+ FsContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: FsContentComponent, selector: "fs-content", ngImport: i0, template: "<ng-container *ngIf=\"contentPage\">\n <fs-content-renderer [contentPage]=\"contentPage\"></fs-content-renderer>\n</ng-container>", styles: [""], components: [{ type: i4.ContentRendererComponent, selector: "fs-content-renderer", inputs: ["contentPage"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentComponent, decorators: [{
74
+ type: Component,
75
+ args: [{ selector: 'fs-content', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"contentPage\">\n <fs-content-renderer [contentPage]=\"contentPage\"></fs-content-renderer>\n</ng-container>", styles: [""] }]
76
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
77
+ type: Inject,
78
+ args: [FS_CONTENT_CONFIG]
79
+ }] }, { type: i1.Title }, { type: i0.ChangeDetectorRef }, { type: i2.Router }, { type: i0.ElementRef }, { type: i3.HtmlRenderer }]; } });
80
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9jb21wb25lbnRzL2NvbnRlbnQvY29udGVudC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9jb21wb25lbnRzL2NvbnRlbnQvY29udGVudC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLE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GVFbCk7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgb2dUaXRsZUVsLnNldEF0dHJpYnV0ZSgnY29udGVudCcsY29udGVudFBhZ2UudGl0bGUpO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5jb250ZW50UGFnZSA9IGNvbnRlbnRQYWdlO1xuICAgICAgICB0aGlzLl9jZFJlZi5tYXJrRm9yQ2hlY2soKTtcbiAgICAgIH0pO1xuICB9XG5cbn1cbiIsIjxuZy1jb250YWluZXIgKm5nSWY9XCJjb250ZW50UGFnZVwiPlxuICA8ZnMtY29udGVudC1yZW5kZXJlciBbY29udGVudFBhZ2VdPVwiY29udGVudFBhZ2VcIj48L2ZzLWNvbnRlbnQtcmVuZGVyZXI+XG48L25nLWNvbnRhaW5lcj4iXX0=
@@ -1,2 +1,2 @@
1
- export * from './content.component';
1
+ export * from './content.component';
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9jb21wb25lbnRzL2NvbnRlbnQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxxQkFBcUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29udGVudC5jb21wb25lbnQnO1xuIl19
@@ -0,0 +1,74 @@
1
+ import { ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild, } from '@angular/core';
2
+ import { DomSanitizer } from '@angular/platform-browser';
3
+ import { Router } from '@angular/router';
4
+ import { HtmlRenderer } from '@firestitch/html';
5
+ import { Subject } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ import * as i1 from "@angular/platform-browser";
8
+ import * as i2 from "@angular/router";
9
+ import * as i3 from "@firestitch/html";
10
+ import * as i4 from "@angular/common";
11
+ export class ContentRendererComponent {
12
+ constructor(_sanitizer, _router, _el, _htmlRenderer) {
13
+ this._sanitizer = _sanitizer;
14
+ this._router = _router;
15
+ this._el = _el;
16
+ this._htmlRenderer = _htmlRenderer;
17
+ this._destroy$ = new Subject();
18
+ }
19
+ ngOnChanges(changes) {
20
+ if (changes.contentPage.currentValue) {
21
+ this._htmlRenderer.addStyle(this.contentPage.styles, { id: 'contentPageStyles' });
22
+ this.content = this._sanitizer.bypassSecurityTrustHtml(this.contentPage.content);
23
+ }
24
+ }
25
+ ngAfterViewChecked() {
26
+ this.registerHrefs();
27
+ if (this.contentPage.js) {
28
+ const script = document.createElement('script');
29
+ script.text = this.contentPage.js;
30
+ this.script.nativeElement.after(script);
31
+ }
32
+ }
33
+ registerHrefs() {
34
+ Array.from(this.el.querySelectorAll('a[href]'))
35
+ .filter((el) => {
36
+ return el.getAttribute('href').match(/^\//);
37
+ })
38
+ .forEach((el) => {
39
+ el.addEventListener('click', (event) => {
40
+ if (!event.shiftKey && !event.ctrlKey) {
41
+ event.preventDefault();
42
+ const href = el.getAttribute('href');
43
+ this._router.navigateByUrl(href);
44
+ }
45
+ });
46
+ });
47
+ }
48
+ get el() {
49
+ return this._el.nativeElement;
50
+ }
51
+ ngOnDestroy() {
52
+ this.removeStyles();
53
+ this._destroy$.next();
54
+ this._destroy$.complete();
55
+ }
56
+ removeStyles() {
57
+ const el = document.querySelector('#contentPageStyles');
58
+ if (el) {
59
+ el.remove();
60
+ }
61
+ }
62
+ }
63
+ ContentRendererComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ContentRendererComponent, deps: [{ token: i1.DomSanitizer }, { token: i2.Router }, { token: i0.ElementRef }, { token: i3.HtmlRenderer }], target: i0.ɵɵFactoryTarget.Component });
64
+ ContentRendererComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: ContentRendererComponent, selector: "fs-content-renderer", inputs: { contentPage: "contentPage" }, viewQueries: [{ propertyName: "script", first: true, predicate: ["script"], descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"content\" [innerHTML]=\"content\"></div>\n<span #script></span>", styles: [""], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ContentRendererComponent, decorators: [{
66
+ type: Component,
67
+ args: [{ selector: 'fs-content-renderer', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"content\" [innerHTML]=\"content\"></div>\n<span #script></span>", styles: [""] }]
68
+ }], ctorParameters: function () { return [{ type: i1.DomSanitizer }, { type: i2.Router }, { type: i0.ElementRef }, { type: i3.HtmlRenderer }]; }, propDecorators: { script: [{
69
+ type: ViewChild,
70
+ args: ['script', { read: ElementRef }]
71
+ }], contentPage: [{
72
+ type: Input
73
+ }] } });
74
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1yZW5kZXJlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9jb21wb25lbnRzL2NvbnRlbnQtcmVuZGVyZXIvY29udGVudC1yZW5kZXJlci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9jb21wb25lbnRzL2NvbnRlbnQtcmVuZGVyZXIvY29udGVudC1yZW5kZXJlci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBRUwsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxVQUFVLEVBQ1YsS0FBS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Z0S2V5ICYmICFldmVudC5jdHJsS2V5KSB7XG4gICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICAgICAgY29uc3QgaHJlZiA9IGVsLmdldEF0dHJpYnV0ZSgnaHJlZicpO1xuICAgICAgICAgICAgdGhpcy5fcm91dGVyLm5hdmlnYXRlQnlVcmwoaHJlZik7XG4gICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICAgIH0pO1xuICB9XG5cbiAgcHVibGljIGdldCBlbCgpOiBhbnkge1xuICAgIHJldHVybiB0aGlzLl9lbC5uYXRpdmVFbGVtZW50O1xuICB9XG5cbiAgcHVibGljIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgIHRoaXMucmVtb3ZlU3R5bGVzKCk7XG4gICAgdGhpcy5fZGVzdHJveSQubmV4dCgpO1xuICAgIHRoaXMuX2Rlc3Ryb3kkLmNvbXBsZXRlKCk7XG4gIH1cblxuICBwdWJsaWMgcmVtb3ZlU3R5bGVzKCk6IHZvaWQge1xuICAgIGNvbnN0IGVsID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvcignI2NvbnRlbnRQYWdlU3R5bGVzJyk7XG4gICAgaWYoZWwpIHtcbiAgICAgIGVsLnJlbW92ZSgpO1xuICAgIH1cbiAgfVxuXG59XG4iLCI8ZGl2ICpuZ0lmPVwiY29udGVudFwiIFtpbm5lckhUTUxdPVwiY29udGVudFwiPjwvZGl2PlxuPHNwYW4gI3NjcmlwdD48L3NwYW4+Il19
@@ -1,2 +1,2 @@
1
- export * from './content-renderer.component';
1
+ export * from './content-renderer.component';
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9jb21wb25lbnRzL2NvbnRlbnQtcmVuZGVyZXIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw4QkFBOEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29udGVudC1yZW5kZXJlci5jb21wb25lbnQnO1xuIl19
@@ -1,33 +1,33 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { FsHtmlEditorModule } from '@firestitch/html-editor';
4
- import { FsContentComponent } from './components/content';
5
- import { ContentRendererComponent } from './components/content-renderer';
6
- import * as i0 from "@angular/core";
7
- export class FsContentModule {
8
- }
9
- FsContentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10
- FsContentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentModule, declarations: [FsContentComponent,
11
- ContentRendererComponent], imports: [CommonModule,
12
- FsHtmlEditorModule], exports: [FsContentComponent] });
13
- FsContentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentModule, imports: [[
14
- CommonModule,
15
- FsHtmlEditorModule,
16
- ]] });
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsContentModule, decorators: [{
18
- type: NgModule,
19
- args: [{
20
- imports: [
21
- CommonModule,
22
- FsHtmlEditorModule,
23
- ],
24
- exports: [
25
- FsContentComponent,
26
- ],
27
- declarations: [
28
- FsContentComponent,
29
- ContentRendererComponent,
30
- ],
31
- }]
32
- }] });
33
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnMtY29udGVudC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMv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c0NvbnRlbnRDb21wb25lbnQgfSBmcm9tICcuL2NvbXBvbmVudHMvY29udGVudCc7XG5pbXBvcnQgeyBDb250ZW50UmVuZGVyZXJDb21wb25lbnQgfSBmcm9tICcuL2NvbXBvbmVudHMvY29udGVudC1yZW5kZXJlcic7XG5cblxuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuXG4gICAgRnNIdG1sRWRpdG9yTW9kdWxlLFxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgRnNDb250ZW50Q29tcG9uZW50LFxuICBdLFxuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBGc0NvbnRlbnRDb21wb25lbnQsXG4gICAgQ29udGVudFJlbmRlcmVyQ29tcG9uZW50LFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBGc0NvbnRlbnRNb2R1bGUge1xufVxuIl19
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { FsHtmlEditorModule } from '@firestitch/html-editor';
4
+ import { FsContentComponent } from './components/content';
5
+ import { ContentRendererComponent } from './components/content-renderer';
6
+ import * as i0 from "@angular/core";
7
+ export class FsContentModule {
8
+ }
9
+ FsContentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10
+ FsContentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentModule, declarations: [FsContentComponent,
11
+ ContentRendererComponent], imports: [CommonModule,
12
+ FsHtmlEditorModule], exports: [FsContentComponent] });
13
+ FsContentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentModule, imports: [[
14
+ CommonModule,
15
+ FsHtmlEditorModule,
16
+ ]] });
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsContentModule, decorators: [{
18
+ type: NgModule,
19
+ args: [{
20
+ imports: [
21
+ CommonModule,
22
+ FsHtmlEditorModule,
23
+ ],
24
+ exports: [
25
+ FsContentComponent,
26
+ ],
27
+ declarations: [
28
+ FsContentComponent,
29
+ ContentRendererComponent,
30
+ ],
31
+ }]
32
+ }] });
33
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnMtY29udGVudC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC9mcy1jb250ZW50Lm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUUvQyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUU3RCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUMxRCxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQzs7QUFrQnpFLE1BQU0sT0FBTyxlQUFlOzs0R0FBZixlQUFlOzZHQUFmLGVBQWUsaUJBSnhCLGtCQUFrQjtRQUNsQix3QkFBd0IsYUFUeEIsWUFBWTtRQUVaLGtCQUFrQixhQUdsQixrQkFBa0I7NkdBT1QsZUFBZSxZQWJqQjtZQUNQLFlBQVk7WUFFWixrQkFBa0I7U0FDbkI7MkZBU1UsZUFBZTtrQkFkM0IsUUFBUTttQkFBQztvQkFDUixPQUFPLEVBQUU7d0JBQ1AsWUFBWTt3QkFFWixrQkFBa0I7cUJBQ25CO29CQUNELE9BQU8sRUFBRTt3QkFDUCxrQkFBa0I7cUJBQ25CO29CQUNELFlBQVksRUFBRTt3QkFDWixrQkFBa0I7d0JBQ2xCLHdCQUF3QjtxQkFDekI7aUJBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcblxuaW1wb3J0IHsgRnNIdG1sRWRpdG9yTW9kdWxlIH0gZnJvbSAnQGZpcmVzdGl0Y2gvaHRtbC1lZGl0b3InO1xuXG5pbXBvcnQgeyBGc0NvbnRlbnRDb21wb25lbnQgfSBmcm9tICcuL2NvbXBvbmVudHMvY29udGVudCc7XG5pbXBvcnQgeyBDb250ZW50UmVuZGVyZXJDb21wb25lbnQgfSBmcm9tICcuL2NvbXBvbmVudHMvY29udGVudC1yZW5kZXJlcic7XG5cblxuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuXG4gICAgRnNIdG1sRWRpdG9yTW9kdWxlLFxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgRnNDb250ZW50Q29tcG9uZW50LFxuICBdLFxuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBGc0NvbnRlbnRDb21wb25lbnQsXG4gICAgQ29udGVudFJlbmRlcmVyQ29tcG9uZW50LFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBGc0NvbnRlbnRNb2R1bGUge1xufVxuIl19
@@ -0,0 +1,68 @@
1
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Inject, QueryList, ViewChildren, } from '@angular/core';
2
+ import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
3
+ import { FsMessage } from '@firestitch/message';
4
+ import { FsTextEditorComponent } from '@firestitch/text-editor';
5
+ import { Subject, of } from 'rxjs';
6
+ import { switchMap, takeUntil, tap } from 'rxjs/operators';
7
+ import { FS_CONTENT_CONFIG } from '../../../../injectors';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "@angular/material/dialog";
10
+ import * as i2 from "@firestitch/message";
11
+ import * as i3 from "@firestitch/dialog";
12
+ import * as i4 from "@angular/material/form-field";
13
+ import * as i5 from "@firestitch/form";
14
+ import * as i6 from "@firestitch/skeleton";
15
+ import * as i7 from "@angular/forms";
16
+ import * as i8 from "@angular/material/input";
17
+ export class ContentLayoutComponent {
18
+ constructor(_config, _data, _dialogRef, _message, _cdRef) {
19
+ this._config = _config;
20
+ this._data = _data;
21
+ this._dialogRef = _dialogRef;
22
+ this._message = _message;
23
+ this._cdRef = _cdRef;
24
+ this.contentLayout = null;
25
+ this.editors = { content: true, styles: true };
26
+ this._destroy$ = new Subject();
27
+ this.save = () => {
28
+ return this._config.saveContentLayout(this.contentLayout)
29
+ .pipe(tap((contentLayout) => {
30
+ this._message.success('Saved Changes');
31
+ this._dialogRef.close(contentLayout);
32
+ }));
33
+ };
34
+ }
35
+ ngOnInit() {
36
+ this._fetchData();
37
+ }
38
+ ngOnDestroy() {
39
+ this._destroy$.next();
40
+ this._destroy$.complete();
41
+ }
42
+ _fetchData() {
43
+ of(this._data.contentLayout)
44
+ .pipe(switchMap((contentLayout) => {
45
+ return of(contentLayout);
46
+ }), takeUntil(this._destroy$))
47
+ .subscribe((contentLayout) => {
48
+ this.contentLayout = { ...contentLayout };
49
+ this._cdRef.markForCheck();
50
+ });
51
+ }
52
+ }
53
+ ContentLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ContentLayoutComponent, deps: [{ token: FS_CONTENT_CONFIG }, { token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }, { token: i2.FsMessage }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
54
+ ContentLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: ContentLayoutComponent, selector: "ng-component", viewQueries: [{ propertyName: "textEditors", predicate: FsTextEditorComponent, descendants: true }], ngImport: i0, template: "<form fsForm [submit]=\"save\" *fsSkeletonForm=\"contentLayout\">\n <fs-dialog>\n <h1 mat-dialog-title>{{contentLayout.id ? 'Layout' : 'Layout Page'}}</h1>\n <div mat-dialog-content>\n <div class=\"fs-column\">\n <mat-form-field>\n <mat-label>Name</mat-label>\n <input\n matInput\n [(ngModel)]=\"contentLayout.name\"\n name=\"name\"\n required>\n </mat-form-field>\n <mat-form-field>\n <mat-label>Tag</mat-label>\n <input\n matInput\n [(ngModel)]=\"contentLayout.tag\"\n name=\"tag\">\n </mat-form-field>\n </div>\n </div>\n\n <div mat-dialog-actions>\n <fs-form-dialog-actions>\n </fs-form-dialog-actions>\n </div>\n </fs-dialog>\n</form>\n", styles: [""], components: [{ type: i3.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode", "mobileButtonPlacement", "mobileWidth", "mode", "buttonLayout"] }, { type: i4.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i5.FsFormDialogActionsComponent, selector: "fs-form-dialog-actions", inputs: ["save", "create", "close", "done", "closeData", "name"] }], directives: [{ type: i6.FsSkeletonFormDirective, selector: "[fsSkeletonForm]", inputs: ["fsSkeletonForm", "fsSkeletonFormLines"] }, { type: i7.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i7.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i7.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i5.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "submit", "successDelay", "errorDelay", "tabGroup", "deactivationGuard"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"], exportAs: ["fsForm"] }, { type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i4.MatLabel, selector: "mat-label" }, { type: i8.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i7.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i5.FsFormRequiredDirective, selector: "[fsFormRequired],[ngModel][required]", inputs: ["fsFormRequired", "required", "fsFormRequiredMessage"] }, { type: i5.FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])" }, { type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ContentLayoutComponent, decorators: [{
56
+ type: Component,
57
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<form fsForm [submit]=\"save\" *fsSkeletonForm=\"contentLayout\">\n <fs-dialog>\n <h1 mat-dialog-title>{{contentLayout.id ? 'Layout' : 'Layout Page'}}</h1>\n <div mat-dialog-content>\n <div class=\"fs-column\">\n <mat-form-field>\n <mat-label>Name</mat-label>\n <input\n matInput\n [(ngModel)]=\"contentLayout.name\"\n name=\"name\"\n required>\n </mat-form-field>\n <mat-form-field>\n <mat-label>Tag</mat-label>\n <input\n matInput\n [(ngModel)]=\"contentLayout.tag\"\n name=\"tag\">\n </mat-form-field>\n </div>\n </div>\n\n <div mat-dialog-actions>\n <fs-form-dialog-actions>\n </fs-form-dialog-actions>\n </div>\n </fs-dialog>\n</form>\n", styles: [""] }]
58
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
59
+ type: Inject,
60
+ args: [FS_CONTENT_CONFIG]
61
+ }] }, { type: undefined, decorators: [{
62
+ type: Inject,
63
+ args: [MAT_DIALOG_DATA]
64
+ }] }, { type: i1.MatDialogRef }, { type: i2.FsMessage }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { textEditors: [{
65
+ type: ViewChildren,
66
+ args: [FsTextEditorComponent]
67
+ }] } });
68
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1sYXlvdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjL2FwcC9tb2R1bGVzL2NvbnRlbnQtbGF5b3V0cy9jb21wb25lbnRzL2NvbnRlbnQtbGF5b3V0L2NvbnRlbnQ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bG9nUmVmPENvbnRlbnRMYXlvdXRDb21wb25lbnQ+LFxuICAgIHByaXZhdGUgX21lc3NhZ2U6IEZzTWVzc2FnZSxcbiAgICBwcml2YXRlIF9jZFJlZjogQ2hhbmdlRGV0ZWN0b3JSZWYsXG4gICkge31cblxuICBwdWJsaWMgbmdPbkluaXQoKTogdm9pZCB7XG4gICAgdGhpcy5fZmV0Y2hEYXRhKCk7XG4gIH1cblxuICBwdWJsaWMgbmdPbkRlc3Ryb3koKTogdm9pZCB7XG4gICAgdGhpcy5fZGVzdHJveSQubmV4dCgpO1xuICAgIHRoaXMuX2Rlc3Ryb3kkLmNvbXBsZXRlKCk7XG4gIH1cblxuICBwdWJsaWMgc2F2ZSA9ICgpID0+IHtcbiAgICByZXR1cm4gdGhpcy5fY29uZmlnLnNhdmVDb250ZW50TGF5b3V0KHRoaXMuY29udGVudExheW91dClcbiAgICAgIC5waXBlKFxuICAgICAgICB0YXAoKGNvbnRlbnRMYXlvdXQpID0+IHtcbiAgICAgICAgICB0aGlzLl9tZXNzYWdlLnN1Y2Nlc3MoJ1NhdmVkIENoYW5nZXMnKTtcbiAgICAgICAgICB0aGlzLl9kaWFsb2dSZWYuY2xvc2UoY29udGVudExheW91dCk7XG4gICAgICAgIH0pLFxuICAgICAgKTtcbiAgfTtcblxuICBwcml2YXRlIF9mZXRjaERhdGEoKTogdm9pZCB7XG4gICAgb2YodGhpcy5fZGF0YS5jb250ZW50TGF5b3V0KVxuICAgICAgLnBpcGUoXG4gICAgICAgIHN3aXRjaE1hcCgoY29udGVudExheW91dCkgPT4ge1xuICAgICAgICAgIHJldHVybiBvZihjb250ZW50TGF5b3V0KTtcbiAgICAgICAgfSksXG4gICAgICAgIHRha2VVbnRpbCh0aGlzLl9kZXN0cm95JCksXG4gICAgICApXG4gICAgICAuc3Vic2NyaWJlKChjb250ZW50TGF5b3V0KSA9PiB7XG4gICAgICAgIHRoaXMuY29udGVudExheW91dCA9IHsgLi4uY29udGVudExheW91dCB9O1xu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GlhbG9nLWFjdGlvbnM+XG4gICAgPC9kaXY+XG4gIDwvZnMtZGlhbG9nPlxuPC9mb3JtPlxuIl19
@@ -1,2 +1,2 @@
1
- export * from './content-layout.component';
1
+ export * from './content-layout.component';
2
2
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvY29udGVudC1sYXlvdXRzL2NvbXBvbmVudHMvY29udGVudC1sYXlvdXQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw0QkFBNEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29udGVudC1sYXlvdXQuY29tcG9uZW50JztcbiJdfQ==