@lblod/ember-rdfa-editor-lblod-plugins 0.1.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 (94) hide show
  1. package/LICENSE.md +9 -0
  2. package/README.md +37 -0
  3. package/addon-main.js +4 -0
  4. package/dist/_app_/components/besluit-type-plugin/besluit-type-select.js +1 -0
  5. package/dist/_app_/components/besluit-type-plugin/toolbar-dropdown.js +1 -0
  6. package/dist/_app_/components/citaten-plugin/citaat-card.js +1 -0
  7. package/dist/_app_/components/citaten-plugin/citaat-insert.js +1 -0
  8. package/dist/_app_/components/citaten-plugin/citations/article-list.js +1 -0
  9. package/dist/_app_/components/citaten-plugin/citations/article-preview.js +1 -0
  10. package/dist/_app_/components/citaten-plugin/citations/decision-detail.js +1 -0
  11. package/dist/_app_/components/citaten-plugin/citations/decision-list.js +1 -0
  12. package/dist/_app_/components/citaten-plugin/citations/decision-preview.js +1 -0
  13. package/dist/_app_/components/citaten-plugin/citations/search-modal.js +1 -0
  14. package/dist/_app_/components/citaten-plugin/helpers/alert-load-error.js +1 -0
  15. package/dist/_app_/components/citaten-plugin/helpers/alert-no-items.js +1 -0
  16. package/dist/_app_/components/import-snippet-plugin/card.js +1 -0
  17. package/dist/_app_/components/rdfa-date-plugin/rdfa-date-plugin-card.js +1 -0
  18. package/dist/_app_/components/rdfa-date-plugin/rdfa-date-plugin-insert.js +1 -0
  19. package/dist/_app_/components/rdfa-date-plugin/rdfa-date-time-picker.js +1 -0
  20. package/dist/_app_/components/standard-template-plugin/template-card.js +1 -0
  21. package/dist/_app_/components/standard-template-plugin/template-provider.js +1 -0
  22. package/dist/_app_/components/table-of-contents-plugin/card.js +1 -0
  23. package/dist/_app_/components/table-of-contents-plugin/inline-components/outline.js +1 -0
  24. package/dist/_app_/components/table-of-contents-plugin/inline-components/table-of-contents.js +1 -0
  25. package/dist/_app_/initializers/plugin-initializer.js +1 -0
  26. package/dist/_app_/models/template.js +1 -0
  27. package/dist/_app_/serializers/application.js +1 -0
  28. package/dist/_app_/services/import-rdfa-snippet.js +1 -0
  29. package/dist/_app_/services/standard-template-plugin.js +1 -0
  30. package/dist/_rollupPluginBabelHelpers-537ad14b.js +48 -0
  31. package/dist/_rollupPluginBabelHelpers-537ad14b.js.map +1 -0
  32. package/dist/components/besluit-type-plugin/besluit-type-select.js +30 -0
  33. package/dist/components/besluit-type-plugin/besluit-type-select.js.map +1 -0
  34. package/dist/components/besluit-type-plugin/toolbar-dropdown.js +292 -0
  35. package/dist/components/besluit-type-plugin/toolbar-dropdown.js.map +1 -0
  36. package/dist/components/citaten-plugin/citaat-card.js +367 -0
  37. package/dist/components/citaten-plugin/citaat-card.js.map +1 -0
  38. package/dist/components/citaten-plugin/citaat-insert.js +84 -0
  39. package/dist/components/citaten-plugin/citaat-insert.js.map +1 -0
  40. package/dist/components/citaten-plugin/citations/article-list.js +10 -0
  41. package/dist/components/citaten-plugin/citations/article-list.js.map +1 -0
  42. package/dist/components/citaten-plugin/citations/article-preview.js +10 -0
  43. package/dist/components/citaten-plugin/citations/article-preview.js.map +1 -0
  44. package/dist/components/citaten-plugin/citations/decision-detail.js +123 -0
  45. package/dist/components/citaten-plugin/citations/decision-detail.js.map +1 -0
  46. package/dist/components/citaten-plugin/citations/decision-list.js +10 -0
  47. package/dist/components/citaten-plugin/citations/decision-list.js.map +1 -0
  48. package/dist/components/citaten-plugin/citations/decision-preview.js +10 -0
  49. package/dist/components/citaten-plugin/citations/decision-preview.js.map +1 -0
  50. package/dist/components/citaten-plugin/citations/search-modal.js +282 -0
  51. package/dist/components/citaten-plugin/citations/search-modal.js.map +1 -0
  52. package/dist/components/citaten-plugin/helpers/alert-load-error.js +10 -0
  53. package/dist/components/citaten-plugin/helpers/alert-load-error.js.map +1 -0
  54. package/dist/components/citaten-plugin/helpers/alert-no-items.js +10 -0
  55. package/dist/components/citaten-plugin/helpers/alert-no-items.js.map +1 -0
  56. package/dist/components/import-snippet-plugin/card.js +99 -0
  57. package/dist/components/import-snippet-plugin/card.js.map +1 -0
  58. package/dist/components/rdfa-date-plugin/rdfa-date-plugin-card.js +85 -0
  59. package/dist/components/rdfa-date-plugin/rdfa-date-plugin-card.js.map +1 -0
  60. package/dist/components/rdfa-date-plugin/rdfa-date-plugin-insert.js +23 -0
  61. package/dist/components/rdfa-date-plugin/rdfa-date-plugin-insert.js.map +1 -0
  62. package/dist/components/rdfa-date-plugin/rdfa-date-time-picker.js +91 -0
  63. package/dist/components/rdfa-date-plugin/rdfa-date-time-picker.js.map +1 -0
  64. package/dist/components/standard-template-plugin/template-card.js +15 -0
  65. package/dist/components/standard-template-plugin/template-card.js.map +1 -0
  66. package/dist/components/standard-template-plugin/template-provider.js +109 -0
  67. package/dist/components/standard-template-plugin/template-provider.js.map +1 -0
  68. package/dist/components/table-of-contents-plugin/card.js +52 -0
  69. package/dist/components/table-of-contents-plugin/card.js.map +1 -0
  70. package/dist/components/table-of-contents-plugin/inline-components/outline.js +10 -0
  71. package/dist/components/table-of-contents-plugin/inline-components/outline.js.map +1 -0
  72. package/dist/components/table-of-contents-plugin/inline-components/table-of-contents.js +92 -0
  73. package/dist/components/table-of-contents-plugin/inline-components/table-of-contents.js.map +1 -0
  74. package/dist/constants-af958fcd.js +12 -0
  75. package/dist/constants-af958fcd.js.map +1 -0
  76. package/dist/index.js +2 -0
  77. package/dist/index.js.map +1 -0
  78. package/dist/initializers/plugin-initializer.js +307 -0
  79. package/dist/initializers/plugin-initializer.js.map +1 -0
  80. package/dist/legislation-types-4d487cb9.js +26 -0
  81. package/dist/legislation-types-4d487cb9.js.map +1 -0
  82. package/dist/models/template.js +48 -0
  83. package/dist/models/template.js.map +1 -0
  84. package/dist/serializers/application.js +10 -0
  85. package/dist/serializers/application.js.map +1 -0
  86. package/dist/services/import-rdfa-snippet.js +178 -0
  87. package/dist/services/import-rdfa-snippet.js.map +1 -0
  88. package/dist/services/standard-template-plugin.js +53 -0
  89. package/dist/services/standard-template-plugin.js.map +1 -0
  90. package/dist/styles/citaten-plugin.scss +50 -0
  91. package/dist/styles/test.css +0 -0
  92. package/dist/vlaamse-codex-187fe526.js +304 -0
  93. package/dist/vlaamse-codex-187fe526.js.map +1 -0
  94. package/package.json +117 -0
@@ -0,0 +1,123 @@
1
+ import { _ as _applyDecoratedDescriptor, a as _initializerDefineProperty, b as _defineProperty } from '../../../_rollupPluginBabelHelpers-537ad14b.js';
2
+ import { setComponentTemplate } from '@ember/component';
3
+ import { hbs } from 'ember-cli-htmlbars';
4
+ import Component from '@glimmer/component';
5
+ import { task, timeout } from 'ember-concurrency';
6
+ import { tracked } from '@glimmer/tracking';
7
+ import { action } from '@ember/object';
8
+ import { a as fetchArticles } from '../../../vlaamse-codex-187fe526.js';
9
+ import { task as task$1 } from 'ember-resources/util/ember-concurrency';
10
+
11
+ var TEMPLATE = hbs("<div class=\"citaten--main-container au-u-flex au-u-flex--column au-u-flex--between\">\n <div class=\"citaten--container-content\">\n {{! Heading with title and actions }}\n <div class=\"citaten--container-header au-u-background-gray-100 au-o-box\">\n <AuHeading @level=\"2\" @skin=\"4\">\n {{capitalize @decision.fullTitle}}\n </AuHeading>\n {{#if @decision.publicationDate}}\n <AuPill\n class=\"au-u-margin-top-small au-u-margin-bottom-small\"\n @skin=\"border\"\n @icon=\"calendar\"\n @iconAlignment=\"left\">\n {{@decision.publicationDate}}\n </AuPill>\n {{/if}}\n <br />\n <AuButton\n @skin=\"primary\"\n @icon=\"plus-text\"\n @iconAlignment=\"left\"\n class=\"au-u-margin-right\"\n {{on \"click\" (fn @insertDecisionCitation @decision)}}>\n {{t \"citaten-plugin.references.refer-whole\"}}\n </AuButton>\n <AuLinkExternal\n @skin=\"primary\"\n @icon=\"link-external\"\n @iconAlignment=\"left\"\n href={{@decision.uri}}\n rel=\"noreferrer noopener\">\n {{t \"citaten-plugin.references.lookup-codex\"}}\n </AuLinkExternal>\n {{! Search field }}\n <AuLabel class=\"au-u-margin-top-small au-margin-bottom-small\" for=\"searchCodex\" @inline={{true}} @required={{false}} @error={{false}} @warning={{false}}>{{t \"citaten-plugin.search.article\"}}</AuLabel>\n <AuInput id=\"searchCodex\" placeholder=\"{{t \"citaten-plugin.citaten-plugin.search.article-placeholder\"}}\" @type=\"text\" @width=\"default\" @icon=\"search\" @iconAlignment=\"right\" @value={{this.articleFilter}} {{on \"input\" (perform this.updateArticleFilter)}}/>\n </div>\n {{! Search results }}\n <div>\n {{#if this.articleResource.isRunning}}\n <div class=\"au-o-box\">\n <AuLoader @padding=\"large\" />\n <span class=\"au-u-hidden-visually\">{{t \"citaten-plugin.alert.loading\"}}</span>\n </div>\n {{else}}\n {{#if this.error}}\n <CitatenPlugin::Helpers::AlertLoadError @fullSize={{true}} @error={{this.error}} class=\"au-o-box\" />\n {{else}}\n <CitatenPlugin::Citations::ArticleList\n @insertArticleCitation={{fn @insertArticleCitation @decision}}\n @articles={{this.articleResource.value}}\n @fullSize={{true}}/>\n {{/if}}\n {{/if}}\n </div>\n </div>\n {{! Footer }}\n <div>\n <div class=\"citaten--container-footer au-u-background-gray-100\">\n <AuToolbar\n @border=\"top\"\n @size=\"large\"\n @nowrap={{true}}>\n <div class=\"au-c-pagination\">\n {{! Always shown, back to main dialog }}\n <div class=\"au-c-pagination__list-item\">\n <AuButton\n @skin=\"link\"\n @icon=\"hierarchical-back\"\n @iconAlignment=\"left\"\n {{on \"click\" this.close}}>\n {{t \"citaten-plugin.search.back\"}}\n </AuButton>\n </div>\n {{! Pagination of articles }}\n {{#if this.articleResource.value.length}}\n <p>\n <span class=\"au-u-hidden-visually\">{{t \"citaten-plugin.search.results\"}}</span>\n <strong>\n {{this.rangeStart}} - {{this.rangeEnd}}\n </strong>\n {{t \"citaten-plugin.pagination.of\"}}\n {{this.totalCount}}\n </p>\n <div class=\"au-c-pagination__list-item\">\n {{#unless this.isFirstPage}}\n <AuButton\n @skin=\"link\"\n @icon=\"nav-left\"\n @iconAlignment=\"left\"\n {{on \"click\" this.previousPage}}>\n {{t \"citaten-plugin.pagination.previous\"}}\n </AuButton>\n {{/unless}}\n {{#unless this.isLastPage}}\n <AuButton\n @skin=\"link\"\n @icon=\"nav-right\"\n @iconAlignment=\"right\"\n {{on \"click\" this.nextPage}}>\n {{t \"citaten-plugin.pagination.next\"}}\n </AuButton>\n {{/unless}}\n </div>\n {{/if}}\n </div>\n </AuToolbar>\n </div>\n </div>\n</div>\n");
12
+
13
+ var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;
14
+ let EditorPluginsCitationsDecisionDetailComponent = (_dec = task({
15
+ restartable: true
16
+ }), _dec2 = task({
17
+ restartable: true
18
+ }), (_class = class EditorPluginsCitationsDecisionDetailComponent extends Component {
19
+ constructor() {
20
+ super(...arguments);
21
+ _initializerDefineProperty(this, "error", _descriptor, this);
22
+ _initializerDefineProperty(this, "pageNumber", _descriptor2, this);
23
+ _initializerDefineProperty(this, "pageSize", _descriptor3, this);
24
+ _initializerDefineProperty(this, "totalCount", _descriptor4, this);
25
+ _initializerDefineProperty(this, "articles", _descriptor5, this);
26
+ _initializerDefineProperty(this, "articleFilter", _descriptor6, this);
27
+ _initializerDefineProperty(this, "articleFilterAfterTimeout", _descriptor7, this);
28
+ _defineProperty(this, "articleResource", task$1(this, this.resourceSearch, () => [this.pageNumber, this.pageSize, this.articleFilterAfterTimeout]));
29
+ }
30
+ *updateArticleFilter() {
31
+ yield timeout(500);
32
+ this.pageNumber = 0;
33
+ this.articleFilterAfterTimeout = this.articleFilter;
34
+ }
35
+ *resourceSearch() {
36
+ this.error = null;
37
+ const abortController = new AbortController();
38
+ const signal = abortController.signal;
39
+ try {
40
+ const results = yield fetchArticles(this.args.decision.uri, this.pageNumber, this.pageSize, this.articleFilterAfterTimeout, signal);
41
+ this.totalCount = results.totalCount;
42
+ return results.articles;
43
+ } catch (e) {
44
+ console.warn(e); // eslint-ignore-line no-console
45
+ this.totalCount = 0;
46
+ this.error = e;
47
+ return [];
48
+ } finally {
49
+ abortController.abort();
50
+ }
51
+ }
52
+ close() {
53
+ this.articleResource.cancel();
54
+ this.args.close();
55
+ }
56
+
57
+ // Pagination
58
+
59
+ previousPage() {
60
+ --this.pageNumber;
61
+ }
62
+ nextPage() {
63
+ ++this.pageNumber;
64
+ }
65
+ get rangeStart() {
66
+ return this.pageNumber * this.pageSize + 1;
67
+ }
68
+ get rangeEnd() {
69
+ const end = this.rangeStart + this.pageSize - 1;
70
+ return end > this.totalCount ? this.totalCount : end;
71
+ }
72
+ get isFirstPage() {
73
+ return this.pageNumber == 0;
74
+ }
75
+ get isLastPage() {
76
+ return this.rangeEnd == this.totalCount;
77
+ }
78
+ }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, "error", [tracked], {
79
+ configurable: true,
80
+ enumerable: true,
81
+ writable: true,
82
+ initializer: null
83
+ }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "pageNumber", [tracked], {
84
+ configurable: true,
85
+ enumerable: true,
86
+ writable: true,
87
+ initializer: function () {
88
+ return 0;
89
+ }
90
+ }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, "pageSize", [tracked], {
91
+ configurable: true,
92
+ enumerable: true,
93
+ writable: true,
94
+ initializer: function () {
95
+ return 5;
96
+ }
97
+ }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, "totalCount", [tracked], {
98
+ configurable: true,
99
+ enumerable: true,
100
+ writable: true,
101
+ initializer: null
102
+ }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, "articles", [tracked], {
103
+ configurable: true,
104
+ enumerable: true,
105
+ writable: true,
106
+ initializer: function () {
107
+ return [];
108
+ }
109
+ }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, "articleFilter", [tracked], {
110
+ configurable: true,
111
+ enumerable: true,
112
+ writable: true,
113
+ initializer: null
114
+ }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, "articleFilterAfterTimeout", [tracked], {
115
+ configurable: true,
116
+ enumerable: true,
117
+ writable: true,
118
+ initializer: null
119
+ }), _applyDecoratedDescriptor(_class.prototype, "updateArticleFilter", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, "updateArticleFilter"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "resourceSearch", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, "resourceSearch"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "close", [action], Object.getOwnPropertyDescriptor(_class.prototype, "close"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "previousPage", [action], Object.getOwnPropertyDescriptor(_class.prototype, "previousPage"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "nextPage", [action], Object.getOwnPropertyDescriptor(_class.prototype, "nextPage"), _class.prototype)), _class));
120
+ setComponentTemplate(TEMPLATE, EditorPluginsCitationsDecisionDetailComponent);
121
+
122
+ export { EditorPluginsCitationsDecisionDetailComponent as default };
123
+ //# sourceMappingURL=decision-detail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decision-detail.js","sources":["../../../../src/components/citaten-plugin/citations/decision-detail.hbs.js","../../../../src/components/citaten-plugin/citations/decision-detail.js"],"sourcesContent":["import { hbs } from 'ember-cli-htmlbars';\nexport default hbs(\"<div class=\\\"citaten--main-container au-u-flex au-u-flex--column au-u-flex--between\\\">\\n <div class=\\\"citaten--container-content\\\">\\n {{! Heading with title and actions }}\\n <div class=\\\"citaten--container-header au-u-background-gray-100 au-o-box\\\">\\n <AuHeading @level=\\\"2\\\" @skin=\\\"4\\\">\\n {{capitalize @decision.fullTitle}}\\n </AuHeading>\\n {{#if @decision.publicationDate}}\\n <AuPill\\n class=\\\"au-u-margin-top-small au-u-margin-bottom-small\\\"\\n @skin=\\\"border\\\"\\n @icon=\\\"calendar\\\"\\n @iconAlignment=\\\"left\\\">\\n {{@decision.publicationDate}}\\n </AuPill>\\n {{/if}}\\n <br />\\n <AuButton\\n @skin=\\\"primary\\\"\\n @icon=\\\"plus-text\\\"\\n @iconAlignment=\\\"left\\\"\\n class=\\\"au-u-margin-right\\\"\\n {{on \\\"click\\\" (fn @insertDecisionCitation @decision)}}>\\n {{t \\\"citaten-plugin.references.refer-whole\\\"}}\\n </AuButton>\\n <AuLinkExternal\\n @skin=\\\"primary\\\"\\n @icon=\\\"link-external\\\"\\n @iconAlignment=\\\"left\\\"\\n href={{@decision.uri}}\\n rel=\\\"noreferrer noopener\\\">\\n {{t \\\"citaten-plugin.references.lookup-codex\\\"}}\\n </AuLinkExternal>\\n {{! Search field }}\\n <AuLabel class=\\\"au-u-margin-top-small au-margin-bottom-small\\\" for=\\\"searchCodex\\\" @inline={{true}} @required={{false}} @error={{false}} @warning={{false}}>{{t \\\"citaten-plugin.search.article\\\"}}</AuLabel>\\n <AuInput id=\\\"searchCodex\\\" placeholder=\\\"{{t \\\"citaten-plugin.citaten-plugin.search.article-placeholder\\\"}}\\\" @type=\\\"text\\\" @width=\\\"default\\\" @icon=\\\"search\\\" @iconAlignment=\\\"right\\\" @value={{this.articleFilter}} {{on \\\"input\\\" (perform this.updateArticleFilter)}}/>\\n </div>\\n {{! Search results }}\\n <div>\\n {{#if this.articleResource.isRunning}}\\n <div class=\\\"au-o-box\\\">\\n <AuLoader @padding=\\\"large\\\" />\\n <span class=\\\"au-u-hidden-visually\\\">{{t \\\"citaten-plugin.alert.loading\\\"}}</span>\\n </div>\\n {{else}}\\n {{#if this.error}}\\n <CitatenPlugin::Helpers::AlertLoadError @fullSize={{true}} @error={{this.error}} class=\\\"au-o-box\\\" />\\n {{else}}\\n <CitatenPlugin::Citations::ArticleList\\n @insertArticleCitation={{fn @insertArticleCitation @decision}}\\n @articles={{this.articleResource.value}}\\n @fullSize={{true}}/>\\n {{/if}}\\n {{/if}}\\n </div>\\n </div>\\n {{! Footer }}\\n <div>\\n <div class=\\\"citaten--container-footer au-u-background-gray-100\\\">\\n <AuToolbar\\n @border=\\\"top\\\"\\n @size=\\\"large\\\"\\n @nowrap={{true}}>\\n <div class=\\\"au-c-pagination\\\">\\n {{! Always shown, back to main dialog }}\\n <div class=\\\"au-c-pagination__list-item\\\">\\n <AuButton\\n @skin=\\\"link\\\"\\n @icon=\\\"hierarchical-back\\\"\\n @iconAlignment=\\\"left\\\"\\n {{on \\\"click\\\" this.close}}>\\n {{t \\\"citaten-plugin.search.back\\\"}}\\n </AuButton>\\n </div>\\n {{! Pagination of articles }}\\n {{#if this.articleResource.value.length}}\\n <p>\\n <span class=\\\"au-u-hidden-visually\\\">{{t \\\"citaten-plugin.search.results\\\"}}</span>\\n <strong>\\n {{this.rangeStart}} - {{this.rangeEnd}}\\n </strong>\\n {{t \\\"citaten-plugin.pagination.of\\\"}}\\n {{this.totalCount}}\\n </p>\\n <div class=\\\"au-c-pagination__list-item\\\">\\n {{#unless this.isFirstPage}}\\n <AuButton\\n @skin=\\\"link\\\"\\n @icon=\\\"nav-left\\\"\\n @iconAlignment=\\\"left\\\"\\n {{on \\\"click\\\" this.previousPage}}>\\n {{t \\\"citaten-plugin.pagination.previous\\\"}}\\n </AuButton>\\n {{/unless}}\\n {{#unless this.isLastPage}}\\n <AuButton\\n @skin=\\\"link\\\"\\n @icon=\\\"nav-right\\\"\\n @iconAlignment=\\\"right\\\"\\n {{on \\\"click\\\" this.nextPage}}>\\n {{t \\\"citaten-plugin.pagination.next\\\"}}\\n </AuButton>\\n {{/unless}}\\n </div>\\n {{/if}}\\n </div>\\n </AuToolbar>\\n </div>\\n </div>\\n</div>\\n\")","import Component from '@glimmer/component';\nimport { timeout } from 'ember-concurrency';\nimport { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { fetchArticles } from '../../../utils/vlaamse-codex';\nimport { task } from 'ember-concurrency';\nimport { task as trackedTask } from 'ember-resources/util/ember-concurrency';\n\nexport default class EditorPluginsCitationsDecisionDetailComponent extends Component {\n @tracked error;\n @tracked pageNumber = 0;\n @tracked pageSize = 5;\n @tracked totalCount;\n @tracked articles = [];\n @tracked articleFilter;\n @tracked articleFilterAfterTimeout;\n\n constructor() {\n super(...arguments);\n }\n\n @task({ restartable: true })\n *updateArticleFilter() {\n yield timeout(500);\n this.pageNumber = 0;\n this.articleFilterAfterTimeout = this.articleFilter;\n }\n\n articleResource = trackedTask(this, this.resourceSearch, () => [\n this.pageNumber,\n this.pageSize,\n this.articleFilterAfterTimeout,\n ]);\n\n @task({ restartable: true })\n *resourceSearch() {\n this.error = null;\n const abortController = new AbortController();\n const signal = abortController.signal;\n try {\n const results = yield fetchArticles(\n this.args.decision.uri,\n this.pageNumber,\n this.pageSize,\n this.articleFilterAfterTimeout,\n signal\n );\n this.totalCount = results.totalCount;\n return results.articles;\n } catch (e) {\n console.warn(e); // eslint-ignore-line no-console\n this.totalCount = 0;\n this.error = e;\n return [];\n } finally {\n abortController.abort();\n }\n }\n\n @action\n close() {\n this.articleResource.cancel();\n this.args.close();\n }\n\n // Pagination\n\n @action\n previousPage() {\n --this.pageNumber;\n }\n\n @action\n nextPage() {\n ++this.pageNumber;\n }\n\n get rangeStart() {\n return this.pageNumber * this.pageSize + 1;\n }\n\n get rangeEnd() {\n const end = this.rangeStart + this.pageSize - 1;\n return end > this.totalCount ? this.totalCount : end;\n }\n\n get isFirstPage() {\n return this.pageNumber == 0;\n }\n\n get isLastPage() {\n return this.rangeEnd == this.totalCount;\n }\n}\n"],"names":["hbs","EditorPluginsCitationsDecisionDetailComponent","task","restartable","Component","constructor","arguments","trackedTask","resourceSearch","pageNumber","pageSize","articleFilterAfterTimeout","updateArticleFilter","timeout","articleFilter","error","abortController","AbortController","signal","results","fetchArticles","args","decision","uri","totalCount","articles","e","console","warn","abort","close","articleResource","cancel","previousPage","nextPage","rangeStart","rangeEnd","end","isFirstPage","isLastPage","tracked","action"],"mappings":";;;;;;;;;;AACA,eAAeA,GAAG,CAAC,syIAAsyI,CAAC;;;ACOryIC,IAAAA,6CAA6C,IAa/DC,IAAAA,GAAAA,IAAI,CAAC;AAAEC,EAAAA,WAAW,EAAE,IAAA;AAAK,CAAC,CAAC,EAa3BD,KAAAA,GAAAA,IAAI,CAAC;AAAEC,EAAAA,W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,MAAA,CAAA,SAAA,CAAA,EAAA,yBAAA,CAAA,MAAA,CAAA,SAAA,EAAA,cAAA,EAAA,CAQNA,MAAM,CAAA,EAAA,MAAA,CAAA,wBAAA,CAAA,MAAA,CAAA,SAAA,EAAA,cAAA,CAAA,EAAA,MAAA,CAAA,SAAA,CAAA,EAAA,yBAAA,CAAA,MAAA,CAAA,SAAA,EAAA,UAAA,EAAA,CAKNA,MAAM,CAAA,EAAA,MAAA,CAAA,wBAAA,CAAA,MAAA,CAAA,SAAA,EAAA,UAAA,CAAA,EAAA,MAAA,CAAA,SAAA,CAAA,GAAA,MAAA,CAAA,EAAA;AAhEyD,oBAAA,CAAA,QAAA,EAAA,6CAAA,CAAA;;;;"}
@@ -0,0 +1,10 @@
1
+ import { setComponentTemplate } from '@ember/component';
2
+ import { hbs } from 'ember-cli-htmlbars';
3
+ import templateOnly from '@ember/component/template-only';
4
+
5
+ var TEMPLATE = hbs("{{#if @decisions.length}}\n <AuList @direction=\"vertical\" @divider={{true}}>\n {{#each @decisions as |decision|}}\n <AuList::Item class=\"au-u-padding-left-small au-u-padding-right-small\">\n <CitatenPlugin::Citations::DecisionPreview\n @decision={{decision}}\n @onCitationInsert={{fn @onCitationInsert decision}}\n @onCitationDetails={{fn @onCitationDetails decision}}\n @fullSize={{@fullSize}} />\n </AuList::Item>\n {{/each}}\n </AuList>\n{{else}}\n <CitatenPlugin::Helpers::AlertNoItems @fullSize={{@fullSize}} class={{if @fullSize \"au-u-margin\"}}/>\n{{/if}}\n");
6
+
7
+ var decisionList = setComponentTemplate(TEMPLATE, templateOnly());
8
+
9
+ export { decisionList as default };
10
+ //# sourceMappingURL=decision-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decision-list.js","sources":["../../../../src/components/citaten-plugin/citations/decision-list.hbs.js","../../../../src/components/citaten-plugin/citations/decision-list.js"],"sourcesContent":["import { hbs } from 'ember-cli-htmlbars';\nexport default hbs(\"{{#if @decisions.length}}\\n <AuList @direction=\\\"vertical\\\" @divider={{true}}>\\n {{#each @decisions as |decision|}}\\n <AuList::Item class=\\\"au-u-padding-left-small au-u-padding-right-small\\\">\\n <CitatenPlugin::Citations::DecisionPreview\\n @decision={{decision}}\\n @onCitationInsert={{fn @onCitationInsert decision}}\\n @onCitationDetails={{fn @onCitationDetails decision}}\\n @fullSize={{@fullSize}} />\\n </AuList::Item>\\n {{/each}}\\n </AuList>\\n{{else}}\\n <CitatenPlugin::Helpers::AlertNoItems @fullSize={{@fullSize}} class={{if @fullSize \\\"au-u-margin\\\"}}/>\\n{{/if}}\\n\")","import templateOnly from '@ember/component/template-only';\nexport default templateOnly();\n"],"names":["hbs","templateOnly"],"mappings":";;;;AACA,eAAeA,GAAG,CAAC,wnBAAwnB,CAAC;;ACA5oB,mBAAA,oBAAA,CAAA,QAAA,EAAeC,YAAY,EAAE,CAAA;;;;"}
@@ -0,0 +1,10 @@
1
+ import { setComponentTemplate } from '@ember/component';
2
+ import { hbs } from 'ember-cli-htmlbars';
3
+ import templateOnly from '@ember/component/template-only';
4
+
5
+ var TEMPLATE = hbs("<div class=\"citaten--decision-list-item {{if @fullSize \"au-u-padding-small\"}}\" ...attributes>\n <p class=\"citaten--decision-title {{if @fullSize \"au-u-h6 au-u-medium\" \"au-u-h-functional\"}}\">\n {{if @fullSize (capitalize @decision.fullTitle) @decision.title}}\n </p>\n {{#if (and @fullSize @decision.publicationDate)}}\n <AuPill\n class=\"au-u-margin-top-small au-u-margin-bottom-small\"\n @skin=\"border\"\n @icon=\"calendar\"\n @iconAlignment=\"left\">\n {{@decision.publicationDate}}\n </AuPill>\n {{/if}}\n {{#if @fullSize}}\n <div>\n <AuButtonGroup @inline={{false}}>\n <AuButton\n @skin=\"primary\"\n @icon=\"plus-text\"\n @iconAlignment=\"left\"\n {{on \"click\" @onCitationInsert}}>\n {{t \"citaten-plugin.references.insert\"}}\n </AuButton>\n <AuButton\n @skin=\"secondary\"\n @icon=\"manual\"\n @iconAlignment=\"left\"\n {{on \"click\" @onCitationDetails}}>\n {{t \"citaten-plugin.references.details\"}}\n </AuButton>\n </AuButtonGroup>\n </div>\n {{else}}\n <div class=\"au-u-flex au-u-flex--row au-u-flex--no-wrap au-u-flex--between au-u-margin-top-tiny\">\n <AuButton\n @skin=\"link-secondary\"\n @icon=\"plus-text\"\n @iconAlignment=\"left\"\n class=\"au-u-h-functional\"\n {{on \"click\" @onCitationInsert}}>\n {{t \"citaten-plugin.references.insert\"}}\n </AuButton>\n <AuButton\n @skin=\"link\"\n @icon=\"manual\"\n @iconAlignment=\"left\"\n class=\"au-u-h-functional\"\n {{on \"click\" @onCitationDetails}}>\n {{t \"citaten-plugin.references.details\"}}\n </AuButton>\n </div>\n {{/if}}\n</div>\n");
6
+
7
+ var decisionPreview = setComponentTemplate(TEMPLATE, templateOnly());
8
+
9
+ export { decisionPreview as default };
10
+ //# sourceMappingURL=decision-preview.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decision-preview.js","sources":["../../../../src/components/citaten-plugin/citations/decision-preview.hbs.js","../../../../src/components/citaten-plugin/citations/decision-preview.js"],"sourcesContent":["import { hbs } from 'ember-cli-htmlbars';\nexport default hbs(\"<div class=\\\"citaten--decision-list-item {{if @fullSize \\\"au-u-padding-small\\\"}}\\\" ...attributes>\\n <p class=\\\"citaten--decision-title {{if @fullSize \\\"au-u-h6 au-u-medium\\\" \\\"au-u-h-functional\\\"}}\\\">\\n {{if @fullSize (capitalize @decision.fullTitle) @decision.title}}\\n </p>\\n {{#if (and @fullSize @decision.publicationDate)}}\\n <AuPill\\n class=\\\"au-u-margin-top-small au-u-margin-bottom-small\\\"\\n @skin=\\\"border\\\"\\n @icon=\\\"calendar\\\"\\n @iconAlignment=\\\"left\\\">\\n {{@decision.publicationDate}}\\n </AuPill>\\n {{/if}}\\n {{#if @fullSize}}\\n <div>\\n <AuButtonGroup @inline={{false}}>\\n <AuButton\\n @skin=\\\"primary\\\"\\n @icon=\\\"plus-text\\\"\\n @iconAlignment=\\\"left\\\"\\n {{on \\\"click\\\" @onCitationInsert}}>\\n {{t \\\"citaten-plugin.references.insert\\\"}}\\n </AuButton>\\n <AuButton\\n @skin=\\\"secondary\\\"\\n @icon=\\\"manual\\\"\\n @iconAlignment=\\\"left\\\"\\n {{on \\\"click\\\" @onCitationDetails}}>\\n {{t \\\"citaten-plugin.references.details\\\"}}\\n </AuButton>\\n </AuButtonGroup>\\n </div>\\n {{else}}\\n <div class=\\\"au-u-flex au-u-flex--row au-u-flex--no-wrap au-u-flex--between au-u-margin-top-tiny\\\">\\n <AuButton\\n @skin=\\\"link-secondary\\\"\\n @icon=\\\"plus-text\\\"\\n @iconAlignment=\\\"left\\\"\\n class=\\\"au-u-h-functional\\\"\\n {{on \\\"click\\\" @onCitationInsert}}>\\n {{t \\\"citaten-plugin.references.insert\\\"}}\\n </AuButton>\\n <AuButton\\n @skin=\\\"link\\\"\\n @icon=\\\"manual\\\"\\n @iconAlignment=\\\"left\\\"\\n class=\\\"au-u-h-functional\\\"\\n {{on \\\"click\\\" @onCitationDetails}}>\\n {{t \\\"citaten-plugin.references.details\\\"}}\\n </AuButton>\\n </div>\\n {{/if}}\\n</div>\\n\")","import templateOnly from '@ember/component/template-only';\nexport default templateOnly();\n"],"names":["hbs","templateOnly"],"mappings":";;;;AACA,eAAeA,GAAG,CAAC,kxDAAkxD,CAAC;;ACAtyD,sBAAA,oBAAA,CAAA,QAAA,EAAeC,YAAY,EAAE,CAAA;;;;"}
@@ -0,0 +1,282 @@
1
+ import { _ as _applyDecoratedDescriptor, a as _initializerDefineProperty, b as _defineProperty } from '../../../_rollupPluginBabelHelpers-537ad14b.js';
2
+ import { setComponentTemplate } from '@ember/component';
3
+ import { hbs } from 'ember-cli-htmlbars';
4
+ import Component from '@glimmer/component';
5
+ import { tracked } from '@glimmer/tracking';
6
+ import { action } from '@ember/object';
7
+ import { task, timeout } from 'ember-concurrency';
8
+ import { inject } from '@ember/service';
9
+ import { capitalize } from '@ember/string';
10
+ import { task as task$1 } from 'ember-resources/util/ember-concurrency';
11
+ import { L as LEGISLATION_TYPES, a as LEGISLATION_TYPE_CONCEPTS } from '../../../legislation-types-4d487cb9.js';
12
+ import { f as fetchDecisions } from '../../../vlaamse-codex-187fe526.js';
13
+
14
+ var TEMPLATE = hbs("<AuModal\n @modalOpen={{true}}\n @closeModal={{fn this.closeModal this.legislationTypeUri this.text}}\n @title={{t \"citaten-plugin.card.title\"}}\n @size=\"large\"\n @padding=\"none\" as |modal|>\n {{#if this.selectedDecision}}\n <modal.Body>\n <CitatenPlugin::Citations::DecisionDetail\n @insertDecisionCitation={{this.insertDecisionCitation}}\n @insertArticleCitation={{this.insertArticleCitation}}\n @close={{this.closeDecisionDetail}}\n @decision={{this.selectedDecision}} />\n </modal.Body>\n {{else}}\n <modal.Body>\n <AuMainContainer class=\"citaten--main-container\" as |mc|>\n <mc.sidebar class=\"citaten--sidebar\" @scroll={{true}}>\n <div class=\"au-c-sidebar\">\n <div class=\"au-c-sidebar__content au-u-padding\">\n <AuLabel class=\"au-margin-bottom-small\" for=\"typeofdocumentexpanded\" @inline={{false}} @required={{false}} @error={{false}} @warning={{false}}>{{t \"citaten-plugin.search.type\"}}</AuLabel>\n <PowerSelect\n id=\"typeofdocumentexpanded\"\n @renderInPlace={{true}}\n @allowClear={{false}}\n @disabled={{false}}\n @searchEnabled={{true}}\n @loadingMessage={{t \"citaten-plugin.alert.loading\"}}\n @noMatchesMessage={{t \"citaten-plugin.alert.no-results\"}}\n @searchMessage={{t \"citaten-plugin.search.placeholder\"}}\n @options={{this.legislationTypes}}\n @selected={{this.legislationSelected}}\n @onChange={{this.selectLegislationType}}\n as |type|>\n {{type}}\n </PowerSelect>\n <AuLabel class=\"au-u-margin-top au-margin-bottom-small\" for=\"searchtermexpanded\" @inline={{false}} @required={{false}} @error={{false}} @warning={{false}}>{{t \"citaten-plugin.search.term\"}}</AuLabel>\n <AuInput\n id=\"searchtermexpanded\"\n @type=\"text\"\n @width=\"block\"\n @icon=\"search\"\n @iconAlignment=\"right\"\n @value={{this.text}}\n placeholder={{t \"citaten-plugin.search.placeholder\"}}\n {{on \"input\" (perform this.updateSearch)}}/>\n <AuHr @size=\"large\" />\n {{! Date of document }}\n <AuLabel class=\"au-u-margin-top au-u-margin-bottom-small\" for=\"search-codex-datum-document-van\" @inline={{false}}>{{t \"citaten-plugin.search.date-document\"}}</AuLabel>\n {{! From }}\n <AuFormRow @alignment=\"pre\" class=\"au-u-margin-bottom-tiny\">\n <AuLabel for=\"search-codex-datum-document-van\" class=\"au-u-hidden-visually\">{{t \"citaten-plugin.search.date-document-from\"}}</AuLabel>\n <AuLabel for=\"search-codex-datum-document-van\" aria-hidden=\"true\" class=\"au-u-1-4\" @inline={{true}}>{{t \"citaten-plugin.search.from\"}}</AuLabel>\n <AuDatePicker\n @id=\"search-codex-datum-document-van\"\n @alignment=\"top\"\n @onChange={{this.updateDocumentDateFrom}}\n @value={{this.documentDateFrom}}\n @min={{this.minDate}}\n @max={{this.maxDate}}\n @localization={{this.datePickerLocalization}} />\n </AuFormRow>\n {{! To }}\n <AuFormRow @alignment=\"pre\">\n <AuLabel for=\"search-codex-datum-document-tot\" class=\"au-u-hidden-visually\">{{t \"citaten-plugin.search.date-document-to\"}}</AuLabel>\n <AuLabel for=\"search-codex-datum-document-tot\" aria-hidden=\"true\" class=\"au-u-1-4\" @inline={{true}}>{{t \"citaten-plugin.search.to\"}}</AuLabel>\n <AuDatePicker\n @id=\"search-codex-datum-document-tot\"\n @alignment=\"top\"\n @onChange={{this.updateDocumentDateTo}}\n @value={{this.documentDateTo}}\n @min={{this.minDate}}\n @max={{this.maxDate}}\n @localization={{this.datePickerLocalization}} />\n </AuFormRow>\n\n {{! Date of staatsblad }}\n <AuLabel class=\"au-u-margin-top au-u-margin-bottom-small\" for=\"search-codex-datum-staatsblad-van\" @inline={{false}}>{{t \"citaten-plugin.search.date-publication\"}}</AuLabel>\n {{! From }}\n <AuFormRow @alignment=\"pre\" class=\"au-u-margin-bottom-tiny\">\n <AuLabel for=\"search-codex-datum-staatsblad-van\" class=\"au-u-hidden-visually\">{{t \"citaten-plugin.search.date-publication-from\"}}</AuLabel>\n <AuLabel for=\"search-codex-datum-staatsblad-van\" aria-hidden=\"true\" class=\"au-u-1-4\" @inline={{true}}>{{t \"citaten-plugin.search.from\"}}</AuLabel>\n <AuDatePicker\n @id=\"search-codex-datum-staatsblad-van\"\n @alignment=\"top\"\n @onChange={{this.updatePublicationDateFrom}}\n @value={{this.publicationDateFrom}}\n @min={{this.minDate}}\n @max={{this.maxDate}}\n @localization={{this.datePickerLocalization}} />\n </AuFormRow>\n {{! To }}\n <AuFormRow @alignment=\"pre\">\n <AuLabel for=\"search-codex-datum-staatsblad-tot\" class=\"au-u-hidden-visually\">{{t \"citaten-plugin.search.date-publication-to\"}}</AuLabel>\n <AuLabel for=\"search-codex-datum-staatsblad-tot\" aria-hidden=\"true\" class=\"au-u-1-4\" @inline={{true}}>{{t \"citaten-plugin.search.to\"}}</AuLabel>\n <AuDatePicker\n @id=\"search-codex-datum-staatsblad-tot\"\n @alignment=\"top\"\n @onChange={{this.updatePublicationDateTo}}\n @value={{this.publicationDateTo}}\n @min={{this.minDate}}\n @max={{this.maxDate}}\n @localization={{this.datePickerLocalization}} />\n </AuFormRow>\n </div>\n </div>\n </mc.sidebar>\n <mc.content>\n {{#if this.decisionResource.isRunning}}\n <div class=\"au-u-margin\">\n <AuLoader @padding=\"large\" />\n <span class=\"au-u-hidden-visually\">{{t \"citaten-plugin.alert.loading\"}}</span>\n </div>\n {{else}}\n {{#if this.error}}\n <CitatenPlugin::Helpers::AlertLoadError @fullSize={{true}} @error={{this.error}} class=\"au-u-margin\"/>\n {{else}}\n {{#if this.decisionResource.value.length}}\n <div class=\"citaten--container-content au-u-padding-top-small au-u-padding-bottom-small\">\n <CitatenPlugin::Citations::DecisionList\n @decisions={{this.decisionResource.value}}\n @onCitationInsert={{this.insertDecisionCitation}}\n @onCitationDetails={{this.openDecisionDetail}}\n @fullSize={{true}} />\n </div>\n {{else}}\n <CitatenPlugin::Helpers::AlertNoItems @fullSize={{true}} class=\"au-u-margin\" />\n {{/if}}\n {{/if}}\n {{/if}}\n {{#if this.decisionResource.value.length}}\n {{! Pagination in the footer of the dialog }}\n <div class=\"citaten--container-footer au-u-background-gray-100\">\n <AuToolbar\n @border=\"top\"\n @size=\"large\"\n @nowrap={{true}}>\n <div class=\"au-c-pagination\">\n <p>\n <span class=\"au-u-hidden-visually\">{{t \"citaten-plugin.search.results\"}}</span>\n <strong>\n {{this.rangeStart}} - {{this.rangeEnd}}\n </strong>\n {{t \"citaten-plugin.pagination.of\"}}\n {{this.totalCount}}\n </p>\n <div class=\"au-c-pagination__list-item\">\n {{#unless this.isFirstPage}}\n <AuButton\n @skin=\"link\"\n @icon=\"nav-left\"\n @iconAlignment=\"left\"\n {{on \"click\" this.previousPage}}>\n {{t \"citaten-plugin.pagination.previous\"}}\n </AuButton>\n {{/unless}}\n {{#unless this.isLastPage}}\n <AuButton\n @skin=\"link\"\n @icon=\"nav-right\"\n @iconAlignment=\"right\"\n {{on \"click\" this.nextPage}}>\n {{t \"citaten-plugin.pagination.next\"}}\n </AuButton>\n {{/unless}}\n </div>\n </div>\n </AuToolbar>\n </div>\n {{/if}}\n </mc.content>\n </AuMainContainer>\n </modal.Body>\n {{/if}}\n</AuModal>\n");
15
+
16
+ var _dec, _dec2, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14;
17
+ function getISODate(date) {
18
+ if (date) {
19
+ // Flatpickr captures the date in local time. Hence date.toISOString() may return the day before the selected date
20
+ // E.g. selected date 2020-04-15 00:00:00 GMT+0200 will become 2020-04-14 22:00:00 UTC
21
+ // We will pretend the selected date is UTC because that's what's meant as date for filtering
22
+ const day = date.getDate().toString().padStart(2, '0');
23
+ const month = (date.getMonth() + 1).toString().padStart(2, '0');
24
+ return `${date.getFullYear()}-${month}-${day}`;
25
+ } else {
26
+ return null;
27
+ }
28
+ }
29
+ let EditorPluginsCitationsSearchModalComponent = (_dec = task({
30
+ restartable: true
31
+ }), _dec2 = task({
32
+ restartable: true
33
+ }), (_class = class EditorPluginsCitationsSearchModalComponent extends Component {
34
+ // Vlaamse Codex currently doesn't contain captions and content of decisions
35
+ // @tracked isEnabledSearchCaption = false
36
+ // @tracked isEnabledSearchContent = false
37
+
38
+ get datePickerLocalization() {
39
+ return {
40
+ buttonLabel: this.intl.t('auDatePicker.buttonLabel'),
41
+ selectedDateMessage: this.intl.t('auDatePicker.selectedDateMessage'),
42
+ prevMonthLabel: this.intl.t('auDatePicker.prevMonthLabel'),
43
+ nextMonthLabel: this.intl.t('auDatePicker.nextMonthLabel'),
44
+ monthSelectLabel: this.intl.t('auDatePicker.monthSelectLabel'),
45
+ yearSelectLabel: this.intl.t('auDatePicker.yearSelectLabel'),
46
+ closeLabel: this.intl.t('auDatePicker.closeLabel'),
47
+ keyboardInstruction: this.intl.t('auDatePicker.keyboardInstruction'),
48
+ calendarHeading: this.intl.t('auDatePicker.calendarHeading'),
49
+ dayNames: getLocalizedDays(this.intl),
50
+ monthNames: getLocalizedMonths(this.intl),
51
+ monthNamesShort: getLocalizedMonths(this.intl, 'short')
52
+ };
53
+ }
54
+ constructor() {
55
+ super(...arguments);
56
+ _initializerDefineProperty(this, "intl", _descriptor, this);
57
+ _initializerDefineProperty(this, "text", _descriptor2, this);
58
+ _initializerDefineProperty(this, "textAfterTimeout", _descriptor3, this);
59
+ _initializerDefineProperty(this, "legislationTypeUri", _descriptor4, this);
60
+ _initializerDefineProperty(this, "pageNumber", _descriptor5, this);
61
+ _initializerDefineProperty(this, "pageSize", _descriptor6, this);
62
+ _initializerDefineProperty(this, "totalCount", _descriptor7, this);
63
+ _initializerDefineProperty(this, "decisions", _descriptor8, this);
64
+ _initializerDefineProperty(this, "error", _descriptor9, this);
65
+ _initializerDefineProperty(this, "selectedDecision", _descriptor10, this);
66
+ _initializerDefineProperty(this, "documentDateFrom", _descriptor11, this);
67
+ _initializerDefineProperty(this, "documentDateTo", _descriptor12, this);
68
+ _initializerDefineProperty(this, "publicationDateFrom", _descriptor13, this);
69
+ _initializerDefineProperty(this, "publicationDateTo", _descriptor14, this);
70
+ _defineProperty(this, "minDate", new Date('1930-01-01T12:00:00'));
71
+ _defineProperty(this, "maxDate", new Date(`${new Date().getFullYear() + 10}-01-01T12:00:00`));
72
+ _defineProperty(this, "decisionResource", task$1(this, this.resourceSearch, () => [this.textAfterTimeout, this.legislationTypeUri, this.pageSize, this.pageNumber, this.documentDateFrom, this.documentDateTo, this.publicationDateFrom, this.publicationDateTo]));
73
+ this.selectedDecision = this.args.selectedDecision;
74
+ this.legislationTypeUri = this.args.legislationTypeUri || LEGISLATION_TYPES['decreet'];
75
+ this.text = this.args.text;
76
+ }
77
+ get legislationTypes() {
78
+ return Object.keys(LEGISLATION_TYPES).map(capitalize);
79
+ }
80
+ get legislationSelected() {
81
+ const found = LEGISLATION_TYPE_CONCEPTS.find(c => c.value === this.legislationTypeUri);
82
+ return capitalize(found ? found.label : LEGISLATION_TYPE_CONCEPTS[0].label);
83
+ }
84
+ *resourceSearch() {
85
+ this.error = null;
86
+ yield undefined; //To prevent retriggering because of the use of this.text later.
87
+ const abortController = new AbortController();
88
+ const signal = abortController.signal;
89
+ try {
90
+ // Split search string by grouping on non-whitespace characters
91
+ // This probably needs to be more complex to search on group of words
92
+ const words = (this.textAfterTimeout || this.text || '').match(/\S+/g) || [];
93
+ const filter = {
94
+ type: this.legislationTypeUri,
95
+ documentDateFrom: getISODate(this.documentDateFrom),
96
+ documentDateTo: getISODate(this.documentDateTo),
97
+ publicationDateFrom: getISODate(this.publicationDateFrom),
98
+ publicationDateTo: getISODate(this.publicationDateTo)
99
+ };
100
+ const results = yield fetchDecisions(words, filter, this.pageNumber, this.pageSize, signal);
101
+ this.totalCount = results.totalCount;
102
+ return results.decisions;
103
+ } catch (e) {
104
+ console.warn(e); // eslint-ignore-line no-console
105
+ this.totalCount = 0;
106
+ this.error = e;
107
+ return [];
108
+ } finally {
109
+ //Abort all requests now that this task has either successfully finished or has been cancelled
110
+ abortController.abort();
111
+ }
112
+ }
113
+ *updateSearch() {
114
+ yield timeout(500);
115
+ this.textAfterTimeout = this.text;
116
+ this.pageNumber = 0;
117
+ }
118
+ selectLegislationType(type) {
119
+ type = type.toLowerCase();
120
+ const found = LEGISLATION_TYPE_CONCEPTS.find(c => c.label.toLowerCase() === type);
121
+ this.legislationTypeUri = found ? found.value : LEGISLATION_TYPE_CONCEPTS[0].value;
122
+ }
123
+ updateDocumentDateFrom(isoDate, date) {
124
+ this.documentDateFrom = date;
125
+ }
126
+ updateDocumentDateTo(isoDate, date) {
127
+ this.documentDateTo = date;
128
+ }
129
+ updatePublicationDateFrom(isoDate, date) {
130
+ this.publicationDateFrom = date;
131
+ }
132
+ updatePublicationDateTo(isoDate, date) {
133
+ this.publicationDateTo = date;
134
+ }
135
+ insertDecisionCitation(decision) {
136
+ this.args.insertDecisionCitation(decision);
137
+ this.closeModal();
138
+ }
139
+ insertArticleCitation(decision, article) {
140
+ this.args.insertArticleCitation(decision, article);
141
+ this.closeModal();
142
+ }
143
+ closeModal(legislationTypeUri, text) {
144
+ this.decisionResource.cancel();
145
+ this.args.closeModal(legislationTypeUri, text);
146
+ }
147
+ closeDecisionDetail() {
148
+ this.selectedDecision = null;
149
+ }
150
+ openDecisionDetail(decision) {
151
+ this.selectedDecision = decision;
152
+ }
153
+
154
+ // Pagination
155
+
156
+ previousPage() {
157
+ --this.pageNumber;
158
+ }
159
+ nextPage() {
160
+ ++this.pageNumber;
161
+ }
162
+ get rangeStart() {
163
+ return this.pageNumber * this.pageSize + 1;
164
+ }
165
+ get rangeEnd() {
166
+ const end = this.rangeStart + this.pageSize - 1;
167
+ return end > this.totalCount ? this.totalCount : end;
168
+ }
169
+ get isFirstPage() {
170
+ return this.pageNumber == 0;
171
+ }
172
+ get isLastPage() {
173
+ return this.rangeEnd == this.totalCount;
174
+ }
175
+ }, (_descriptor = _applyDecoratedDescriptor(_class.prototype, "intl", [inject], {
176
+ configurable: true,
177
+ enumerable: true,
178
+ writable: true,
179
+ initializer: null
180
+ }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "text", [tracked], {
181
+ configurable: true,
182
+ enumerable: true,
183
+ writable: true,
184
+ initializer: null
185
+ }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, "textAfterTimeout", [tracked], {
186
+ configurable: true,
187
+ enumerable: true,
188
+ writable: true,
189
+ initializer: null
190
+ }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, "legislationTypeUri", [tracked], {
191
+ configurable: true,
192
+ enumerable: true,
193
+ writable: true,
194
+ initializer: null
195
+ }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, "pageNumber", [tracked], {
196
+ configurable: true,
197
+ enumerable: true,
198
+ writable: true,
199
+ initializer: function () {
200
+ return 0;
201
+ }
202
+ }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, "pageSize", [tracked], {
203
+ configurable: true,
204
+ enumerable: true,
205
+ writable: true,
206
+ initializer: function () {
207
+ return 5;
208
+ }
209
+ }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, "totalCount", [tracked], {
210
+ configurable: true,
211
+ enumerable: true,
212
+ writable: true,
213
+ initializer: null
214
+ }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, "decisions", [tracked], {
215
+ configurable: true,
216
+ enumerable: true,
217
+ writable: true,
218
+ initializer: function () {
219
+ return [];
220
+ }
221
+ }), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, "error", [tracked], {
222
+ configurable: true,
223
+ enumerable: true,
224
+ writable: true,
225
+ initializer: null
226
+ }), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, "selectedDecision", [tracked], {
227
+ configurable: true,
228
+ enumerable: true,
229
+ writable: true,
230
+ initializer: null
231
+ }), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, "documentDateFrom", [tracked], {
232
+ configurable: true,
233
+ enumerable: true,
234
+ writable: true,
235
+ initializer: function () {
236
+ return null;
237
+ }
238
+ }), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, "documentDateTo", [tracked], {
239
+ configurable: true,
240
+ enumerable: true,
241
+ writable: true,
242
+ initializer: function () {
243
+ return null;
244
+ }
245
+ }), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, "publicationDateFrom", [tracked], {
246
+ configurable: true,
247
+ enumerable: true,
248
+ writable: true,
249
+ initializer: function () {
250
+ return null;
251
+ }
252
+ }), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, "publicationDateTo", [tracked], {
253
+ configurable: true,
254
+ enumerable: true,
255
+ writable: true,
256
+ initializer: function () {
257
+ return null;
258
+ }
259
+ }), _applyDecoratedDescriptor(_class.prototype, "resourceSearch", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, "resourceSearch"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "updateSearch", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, "updateSearch"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "selectLegislationType", [action], Object.getOwnPropertyDescriptor(_class.prototype, "selectLegislationType"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "updateDocumentDateFrom", [action], Object.getOwnPropertyDescriptor(_class.prototype, "updateDocumentDateFrom"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "updateDocumentDateTo", [action], Object.getOwnPropertyDescriptor(_class.prototype, "updateDocumentDateTo"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "updatePublicationDateFrom", [action], Object.getOwnPropertyDescriptor(_class.prototype, "updatePublicationDateFrom"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "updatePublicationDateTo", [action], Object.getOwnPropertyDescriptor(_class.prototype, "updatePublicationDateTo"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "insertDecisionCitation", [action], Object.getOwnPropertyDescriptor(_class.prototype, "insertDecisionCitation"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "insertArticleCitation", [action], Object.getOwnPropertyDescriptor(_class.prototype, "insertArticleCitation"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "closeModal", [action], Object.getOwnPropertyDescriptor(_class.prototype, "closeModal"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "closeDecisionDetail", [action], Object.getOwnPropertyDescriptor(_class.prototype, "closeDecisionDetail"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "openDecisionDetail", [action], Object.getOwnPropertyDescriptor(_class.prototype, "openDecisionDetail"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "previousPage", [action], Object.getOwnPropertyDescriptor(_class.prototype, "previousPage"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "nextPage", [action], Object.getOwnPropertyDescriptor(_class.prototype, "nextPage"), _class.prototype)), _class));
260
+ function getLocalizedMonths(intl, monthFormat = 'long') {
261
+ let someYear = 2021;
262
+ return [...Array(12).keys()].map(monthIndex => {
263
+ let date = new Date(someYear, monthIndex);
264
+ return intl.formatDate(date, {
265
+ month: monthFormat
266
+ });
267
+ });
268
+ }
269
+ function getLocalizedDays(intl, weekdayFormat = 'long') {
270
+ let someSunday = new Date('2021-01-03');
271
+ return [...Array(7).keys()].map(index => {
272
+ let weekday = new Date(someSunday.getTime());
273
+ weekday.setDate(someSunday.getDate() + index);
274
+ return intl.formatDate(weekday, {
275
+ weekday: weekdayFormat
276
+ });
277
+ });
278
+ }
279
+ setComponentTemplate(TEMPLATE, EditorPluginsCitationsSearchModalComponent);
280
+
281
+ export { EditorPluginsCitationsSearchModalComponent as default };
282
+ //# sourceMappingURL=search-modal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-modal.js","sources":["../../../../src/components/citaten-plugin/citations/search-modal.hbs.js","../../../../src/components/citaten-plugin/citations/search-modal.js"],"sourcesContent":["import { hbs } from 'ember-cli-htmlbars';\nexport default hbs(\"<AuModal\\n @modalOpen={{true}}\\n @closeModal={{fn this.closeModal this.legislationTypeUri this.text}}\\n @title={{t \\\"citaten-plugin.card.title\\\"}}\\n @size=\\\"large\\\"\\n @padding=\\\"none\\\" as |modal|>\\n {{#if this.selectedDecision}}\\n <modal.Body>\\n <CitatenPlugin::Citations::DecisionDetail\\n @insertDecisionCitation={{this.insertDecisionCitation}}\\n @insertArticleCitation={{this.insertArticleCitation}}\\n @close={{this.closeDecisionDetail}}\\n @decision={{this.selectedDecision}} />\\n </modal.Body>\\n {{else}}\\n <modal.Body>\\n <AuMainContainer class=\\\"citaten--main-container\\\" as |mc|>\\n <mc.sidebar class=\\\"citaten--sidebar\\\" @scroll={{true}}>\\n <div class=\\\"au-c-sidebar\\\">\\n <div class=\\\"au-c-sidebar__content au-u-padding\\\">\\n <AuLabel class=\\\"au-margin-bottom-small\\\" for=\\\"typeofdocumentexpanded\\\" @inline={{false}} @required={{false}} @error={{false}} @warning={{false}}>{{t \\\"citaten-plugin.search.type\\\"}}</AuLabel>\\n <PowerSelect\\n id=\\\"typeofdocumentexpanded\\\"\\n @renderInPlace={{true}}\\n @allowClear={{false}}\\n @disabled={{false}}\\n @searchEnabled={{true}}\\n @loadingMessage={{t \\\"citaten-plugin.alert.loading\\\"}}\\n @noMatchesMessage={{t \\\"citaten-plugin.alert.no-results\\\"}}\\n @searchMessage={{t \\\"citaten-plugin.search.placeholder\\\"}}\\n @options={{this.legislationTypes}}\\n @selected={{this.legislationSelected}}\\n @onChange={{this.selectLegislationType}}\\n as |type|>\\n {{type}}\\n </PowerSelect>\\n <AuLabel class=\\\"au-u-margin-top au-margin-bottom-small\\\" for=\\\"searchtermexpanded\\\" @inline={{false}} @required={{false}} @error={{false}} @warning={{false}}>{{t \\\"citaten-plugin.search.term\\\"}}</AuLabel>\\n <AuInput\\n id=\\\"searchtermexpanded\\\"\\n @type=\\\"text\\\"\\n @width=\\\"block\\\"\\n @icon=\\\"search\\\"\\n @iconAlignment=\\\"right\\\"\\n @value={{this.text}}\\n placeholder={{t \\\"citaten-plugin.search.placeholder\\\"}}\\n {{on \\\"input\\\" (perform this.updateSearch)}}/>\\n <AuHr @size=\\\"large\\\" />\\n {{! Date of document }}\\n <AuLabel class=\\\"au-u-margin-top au-u-margin-bottom-small\\\" for=\\\"search-codex-datum-document-van\\\" @inline={{false}}>{{t \\\"citaten-plugin.search.date-document\\\"}}</AuLabel>\\n {{! From }}\\n <AuFormRow @alignment=\\\"pre\\\" class=\\\"au-u-margin-bottom-tiny\\\">\\n <AuLabel for=\\\"search-codex-datum-document-van\\\" class=\\\"au-u-hidden-visually\\\">{{t \\\"citaten-plugin.search.date-document-from\\\"}}</AuLabel>\\n <AuLabel for=\\\"search-codex-datum-document-van\\\" aria-hidden=\\\"true\\\" class=\\\"au-u-1-4\\\" @inline={{true}}>{{t \\\"citaten-plugin.search.from\\\"}}</AuLabel>\\n <AuDatePicker\\n @id=\\\"search-codex-datum-document-van\\\"\\n @alignment=\\\"top\\\"\\n @onChange={{this.updateDocumentDateFrom}}\\n @value={{this.documentDateFrom}}\\n @min={{this.minDate}}\\n @max={{this.maxDate}}\\n @localization={{this.datePickerLocalization}} />\\n </AuFormRow>\\n {{! To }}\\n <AuFormRow @alignment=\\\"pre\\\">\\n <AuLabel for=\\\"search-codex-datum-document-tot\\\" class=\\\"au-u-hidden-visually\\\">{{t \\\"citaten-plugin.search.date-document-to\\\"}}</AuLabel>\\n <AuLabel for=\\\"search-codex-datum-document-tot\\\" aria-hidden=\\\"true\\\" class=\\\"au-u-1-4\\\" @inline={{true}}>{{t \\\"citaten-plugin.search.to\\\"}}</AuLabel>\\n <AuDatePicker\\n @id=\\\"search-codex-datum-document-tot\\\"\\n @alignment=\\\"top\\\"\\n @onChange={{this.updateDocumentDateTo}}\\n @value={{this.documentDateTo}}\\n @min={{this.minDate}}\\n @max={{this.maxDate}}\\n @localization={{this.datePickerLocalization}} />\\n </AuFormRow>\\n\\n {{! Date of staatsblad }}\\n <AuLabel class=\\\"au-u-margin-top au-u-margin-bottom-small\\\" for=\\\"search-codex-datum-staatsblad-van\\\" @inline={{false}}>{{t \\\"citaten-plugin.search.date-publication\\\"}}</AuLabel>\\n {{! From }}\\n <AuFormRow @alignment=\\\"pre\\\" class=\\\"au-u-margin-bottom-tiny\\\">\\n <AuLabel for=\\\"search-codex-datum-staatsblad-van\\\" class=\\\"au-u-hidden-visually\\\">{{t \\\"citaten-plugin.search.date-publication-from\\\"}}</AuLabel>\\n <AuLabel for=\\\"search-codex-datum-staatsblad-van\\\" aria-hidden=\\\"true\\\" class=\\\"au-u-1-4\\\" @inline={{true}}>{{t \\\"citaten-plugin.search.from\\\"}}</AuLabel>\\n <AuDatePicker\\n @id=\\\"search-codex-datum-staatsblad-van\\\"\\n @alignment=\\\"top\\\"\\n @onChange={{this.updatePublicationDateFrom}}\\n @value={{this.publicationDateFrom}}\\n @min={{this.minDate}}\\n @max={{this.maxDate}}\\n @localization={{this.datePickerLocalization}} />\\n </AuFormRow>\\n {{! To }}\\n <AuFormRow @alignment=\\\"pre\\\">\\n <AuLabel for=\\\"search-codex-datum-staatsblad-tot\\\" class=\\\"au-u-hidden-visually\\\">{{t \\\"citaten-plugin.search.date-publication-to\\\"}}</AuLabel>\\n <AuLabel for=\\\"search-codex-datum-staatsblad-tot\\\" aria-hidden=\\\"true\\\" class=\\\"au-u-1-4\\\" @inline={{true}}>{{t \\\"citaten-plugin.search.to\\\"}}</AuLabel>\\n <AuDatePicker\\n @id=\\\"search-codex-datum-staatsblad-tot\\\"\\n @alignment=\\\"top\\\"\\n @onChange={{this.updatePublicationDateTo}}\\n @value={{this.publicationDateTo}}\\n @min={{this.minDate}}\\n @max={{this.maxDate}}\\n @localization={{this.datePickerLocalization}} />\\n </AuFormRow>\\n </div>\\n </div>\\n </mc.sidebar>\\n <mc.content>\\n {{#if this.decisionResource.isRunning}}\\n <div class=\\\"au-u-margin\\\">\\n <AuLoader @padding=\\\"large\\\" />\\n <span class=\\\"au-u-hidden-visually\\\">{{t \\\"citaten-plugin.alert.loading\\\"}}</span>\\n </div>\\n {{else}}\\n {{#if this.error}}\\n <CitatenPlugin::Helpers::AlertLoadError @fullSize={{true}} @error={{this.error}} class=\\\"au-u-margin\\\"/>\\n {{else}}\\n {{#if this.decisionResource.value.length}}\\n <div class=\\\"citaten--container-content au-u-padding-top-small au-u-padding-bottom-small\\\">\\n <CitatenPlugin::Citations::DecisionList\\n @decisions={{this.decisionResource.value}}\\n @onCitationInsert={{this.insertDecisionCitation}}\\n @onCitationDetails={{this.openDecisionDetail}}\\n @fullSize={{true}} />\\n </div>\\n {{else}}\\n <CitatenPlugin::Helpers::AlertNoItems @fullSize={{true}} class=\\\"au-u-margin\\\" />\\n {{/if}}\\n {{/if}}\\n {{/if}}\\n {{#if this.decisionResource.value.length}}\\n {{! Pagination in the footer of the dialog }}\\n <div class=\\\"citaten--container-footer au-u-background-gray-100\\\">\\n <AuToolbar\\n @border=\\\"top\\\"\\n @size=\\\"large\\\"\\n @nowrap={{true}}>\\n <div class=\\\"au-c-pagination\\\">\\n <p>\\n <span class=\\\"au-u-hidden-visually\\\">{{t \\\"citaten-plugin.search.results\\\"}}</span>\\n <strong>\\n {{this.rangeStart}} - {{this.rangeEnd}}\\n </strong>\\n {{t \\\"citaten-plugin.pagination.of\\\"}}\\n {{this.totalCount}}\\n </p>\\n <div class=\\\"au-c-pagination__list-item\\\">\\n {{#unless this.isFirstPage}}\\n <AuButton\\n @skin=\\\"link\\\"\\n @icon=\\\"nav-left\\\"\\n @iconAlignment=\\\"left\\\"\\n {{on \\\"click\\\" this.previousPage}}>\\n {{t \\\"citaten-plugin.pagination.previous\\\"}}\\n </AuButton>\\n {{/unless}}\\n {{#unless this.isLastPage}}\\n <AuButton\\n @skin=\\\"link\\\"\\n @icon=\\\"nav-right\\\"\\n @iconAlignment=\\\"right\\\"\\n {{on \\\"click\\\" this.nextPage}}>\\n {{t \\\"citaten-plugin.pagination.next\\\"}}\\n </AuButton>\\n {{/unless}}\\n </div>\\n </div>\\n </AuToolbar>\\n </div>\\n {{/if}}\\n </mc.content>\\n </AuMainContainer>\\n </modal.Body>\\n {{/if}}\\n</AuModal>\\n\")","import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { task, timeout } from 'ember-concurrency';\nimport { inject as service } from '@ember/service';\nimport { capitalize } from '@ember/string';\nimport { task as trackedTask } from 'ember-resources/util/ember-concurrency';\nimport {\n LEGISLATION_TYPES,\n LEGISLATION_TYPE_CONCEPTS,\n} from '../../../utils/legislation-types';\nimport { fetchDecisions } from '../../../utils/vlaamse-codex';\n\nfunction getISODate(date) {\n if (date) {\n // Flatpickr captures the date in local time. Hence date.toISOString() may return the day before the selected date\n // E.g. selected date 2020-04-15 00:00:00 GMT+0200 will become 2020-04-14 22:00:00 UTC\n // We will pretend the selected date is UTC because that's what's meant as date for filtering\n const day = date.getDate().toString().padStart(2, '0');\n const month = (date.getMonth() + 1).toString().padStart(2, '0');\n return `${date.getFullYear()}-${month}-${day}`;\n } else {\n return null;\n }\n}\n\nexport default class EditorPluginsCitationsSearchModalComponent extends Component {\n @service intl;\n @tracked text;\n @tracked textAfterTimeout;\n // Vlaamse Codex currently doesn't contain captions and content of decisions\n // @tracked isEnabledSearchCaption = false\n // @tracked isEnabledSearchContent = false\n @tracked legislationTypeUri;\n @tracked pageNumber = 0;\n @tracked pageSize = 5;\n @tracked totalCount;\n @tracked decisions = [];\n @tracked error;\n @tracked selectedDecision;\n @tracked documentDateFrom = null;\n @tracked documentDateTo = null;\n @tracked publicationDateFrom = null;\n @tracked publicationDateTo = null;\n minDate = new Date('1930-01-01T12:00:00');\n maxDate = new Date(`${new Date().getFullYear() + 10}-01-01T12:00:00`);\n\n get datePickerLocalization() {\n return {\n buttonLabel: this.intl.t('auDatePicker.buttonLabel'),\n selectedDateMessage: this.intl.t('auDatePicker.selectedDateMessage'),\n prevMonthLabel: this.intl.t('auDatePicker.prevMonthLabel'),\n nextMonthLabel: this.intl.t('auDatePicker.nextMonthLabel'),\n monthSelectLabel: this.intl.t('auDatePicker.monthSelectLabel'),\n yearSelectLabel: this.intl.t('auDatePicker.yearSelectLabel'),\n closeLabel: this.intl.t('auDatePicker.closeLabel'),\n keyboardInstruction: this.intl.t('auDatePicker.keyboardInstruction'),\n calendarHeading: this.intl.t('auDatePicker.calendarHeading'),\n dayNames: getLocalizedDays(this.intl),\n monthNames: getLocalizedMonths(this.intl),\n monthNamesShort: getLocalizedMonths(this.intl, 'short'),\n };\n }\n\n constructor() {\n super(...arguments);\n this.selectedDecision = this.args.selectedDecision;\n this.legislationTypeUri =\n this.args.legislationTypeUri || LEGISLATION_TYPES['decreet'];\n this.text = this.args.text;\n }\n\n get legislationTypes() {\n return Object.keys(LEGISLATION_TYPES).map(capitalize);\n }\n\n get legislationSelected() {\n const found = LEGISLATION_TYPE_CONCEPTS.find(\n (c) => c.value === this.legislationTypeUri\n );\n return capitalize(found ? found.label : LEGISLATION_TYPE_CONCEPTS[0].label);\n }\n\n decisionResource = trackedTask(this, this.resourceSearch, () => [\n this.textAfterTimeout,\n this.legislationTypeUri,\n this.pageSize,\n this.pageNumber,\n this.documentDateFrom,\n this.documentDateTo,\n this.publicationDateFrom,\n this.publicationDateTo,\n ]);\n\n @task({ restartable: true })\n *resourceSearch() {\n this.error = null;\n yield undefined; //To prevent retriggering because of the use of this.text later.\n const abortController = new AbortController();\n const signal = abortController.signal;\n try {\n // Split search string by grouping on non-whitespace characters\n // This probably needs to be more complex to search on group of words\n const words =\n (this.textAfterTimeout || this.text || '').match(/\\S+/g) || [];\n const filter = {\n type: this.legislationTypeUri,\n documentDateFrom: getISODate(this.documentDateFrom),\n documentDateTo: getISODate(this.documentDateTo),\n publicationDateFrom: getISODate(this.publicationDateFrom),\n publicationDateTo: getISODate(this.publicationDateTo),\n };\n const results = yield fetchDecisions(\n words,\n filter,\n this.pageNumber,\n this.pageSize,\n signal\n );\n this.totalCount = results.totalCount;\n return results.decisions;\n } catch (e) {\n console.warn(e); // eslint-ignore-line no-console\n this.totalCount = 0;\n this.error = e;\n return [];\n } finally {\n //Abort all requests now that this task has either successfully finished or has been cancelled\n abortController.abort();\n }\n }\n\n @task({ restartable: true })\n *updateSearch() {\n yield timeout(500);\n this.textAfterTimeout = this.text;\n this.pageNumber = 0;\n }\n\n @action\n selectLegislationType(type) {\n type = type.toLowerCase();\n const found = LEGISLATION_TYPE_CONCEPTS.find(\n (c) => c.label.toLowerCase() === type\n );\n this.legislationTypeUri = found\n ? found.value\n : LEGISLATION_TYPE_CONCEPTS[0].value;\n }\n\n @action\n updateDocumentDateFrom(isoDate, date) {\n this.documentDateFrom = date;\n }\n\n @action\n updateDocumentDateTo(isoDate, date) {\n this.documentDateTo = date;\n }\n\n @action\n updatePublicationDateFrom(isoDate, date) {\n this.publicationDateFrom = date;\n }\n\n @action\n updatePublicationDateTo(isoDate, date) {\n this.publicationDateTo = date;\n }\n\n @action\n insertDecisionCitation(decision) {\n this.args.insertDecisionCitation(decision);\n this.closeModal();\n }\n\n @action\n insertArticleCitation(decision, article) {\n this.args.insertArticleCitation(decision, article);\n this.closeModal();\n }\n\n @action\n closeModal(legislationTypeUri, text) {\n this.decisionResource.cancel();\n this.args.closeModal(legislationTypeUri, text);\n }\n\n @action\n closeDecisionDetail() {\n this.selectedDecision = null;\n }\n\n @action\n openDecisionDetail(decision) {\n this.selectedDecision = decision;\n }\n\n // Pagination\n\n @action\n previousPage() {\n --this.pageNumber;\n }\n\n @action\n nextPage() {\n ++this.pageNumber;\n }\n\n get rangeStart() {\n return this.pageNumber * this.pageSize + 1;\n }\n\n get rangeEnd() {\n const end = this.rangeStart + this.pageSize - 1;\n return end > this.totalCount ? this.totalCount : end;\n }\n\n get isFirstPage() {\n return this.pageNumber == 0;\n }\n\n get isLastPage() {\n return this.rangeEnd == this.totalCount;\n }\n}\n\nfunction getLocalizedMonths(intl, monthFormat = 'long') {\n let someYear = 2021;\n return [...Array(12).keys()].map((monthIndex) => {\n let date = new Date(someYear, monthIndex);\n return intl.formatDate(date, { month: monthFormat });\n });\n}\n\nfunction getLocalizedDays(intl, weekdayFormat = 'long') {\n let someSunday = new Date('2021-01-03');\n return [...Array(7).keys()].map((index) => {\n let weekday = new Date(someSunday.getTime());\n weekday.setDate(someSunday.getDate() + index);\n return intl.formatDate(weekday, { weekday: weekdayFormat });\n });\n}\n"],"names":["hbs","getISODate","date","day","getDate","toString","padStart","month","getMonth","getFullYear","EditorPluginsCitationsSearchModalComponent","task","restartable","Component","datePickerLocalization","buttonLabel","intl","t","selectedDateMessage","prevMonthLabel","nextMonthLabel","monthSelectLabel","yearSelectLabel","closeLabel","keyboardInstruction","calendarHeading","dayNames","getLocalizedDays","monthNames","getLocalizedMonths","monthNamesShort","constructor","arguments","Date","trackedTask","resourceSearch","textAfterTimeout","legislationTypeUri","pageSize","pageNumber","documentDateFrom","documentDateTo","publicationDateFrom","publicationDateTo","selectedDecision","args","LEGISLATION_TYPES","text","legislationTypes","Object","keys","map","capitalize","legislationSelected","found","LEGISLATION_TYPE_CONCEPTS","find","c","value","label","error","undefined","abortController","AbortController","signal","words","match","filter","type","results","fetchDecisions","totalCount","decisions","e","console","warn","abort","updateSearch","timeout","selectLegislationType","toLowerCase","updateDocumentDateFrom","isoDate","updateDocumentDateTo","updatePublicationDateFrom","updatePublicationDateTo","insertDecisionCitation","decision","closeModal","insertArticleCitation","article","decisionResource","cancel","closeDecisionDetail","openDecisionDetail","previousPage","nextPage","rangeStart","rangeEnd","end","isFirstPage","isLastPage","service","tracked","action","monthFormat","someYear","Array","monthIndex","formatDate","weekdayFormat","someSunday","index","weekday","getTime","setDate"],"mappings":";;;;;;;;;;;;;AACA,eAAeA,GAAG,CAAC,k3RAAk3R,CAAC;;;ACYt4R,SAASC,UAAU,CAACC,IAAI,EAAE;AACxB,EAAA,IAAIA,IAAI,EAAE;AACR;AACA;AACA;AACA,IAAA,MAAMC,GAAG,GAAGD,IAAI,CAACE,OAAO,EAAE,CAACC,QAAQ,EAAE,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAA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CAAA;AACnB,EAAA,OAAO,CAAC,GAAGC,KAAK,CAAC,EAAE,CAAC,CAACzD,IAAI,EAAE,CAAC,CAACC,GAAG,CAAEyD,UAAU,IAAK;IAC/C,IAAI1G,IAAI,GAAG,IAAI+B,IAAI,CAACyE,QAAQ,EAAEE,UAAU,CAAC,CAAA;AACzC,IAAA,OAAO5F,IAAI,CAAC6F,UAAU,CAAC3G,IAAI,EAAE;AAAEK,MAAAA,KAAK,EAAEkG,WAAAA;AAAY,KAAC,CAAC,CAAA;AACtD,GAAC,CAAC,CAAA;AACJ,CAAA;AAEA,SAAS9E,gBAAgB,CAACX,IAAI,EAAE8F,aAAa,GAAG,MAAM,EAAE;AACtD,EAAA,IAAIC,UAAU,GAAG,IAAI9E,IAAI,CAAC,YAAY,CAAC,CAAA;AACvC,EAAA,OAAO,CAAC,GAAG0E,KAAK,CAAC,CAAC,CAAC,CAACzD,IAAI,EAAE,CAAC,CAACC,GAAG,CAAE6D,KAAK,IAAK;IACzC,IAAIC,OAAO,GAAG,IAAIhF,IAAI,CAAC8E,UAAU,CAACG,OAAO,EAAE,CAAC,CAAA;IAC5CD,OAAO,CAACE,OAAO,CAACJ,UAAU,CAAC3G,OAAO,EAAE,GAAG4G,KAAK,CAAC,CAAA;AAC7C,IAAA,OAAOhG,IAAI,CAAC6F,UAAU,CAACI,OAAO,EAAE;AAAEA,MAAAA,OAAO,EAAEH,aAAAA;AAAc,KAAC,CAAC,CAAA;AAC7D,GAAC,CAAC,CAAA;AACJ,CAAA;AAAC,oBAAA,CAAA,QAAA,EAAA,0CAAA,CAAA;;;;"}
@@ -0,0 +1,10 @@
1
+ import { setComponentTemplate } from '@ember/component';
2
+ import { hbs } from 'ember-cli-htmlbars';
3
+ import templateOnly from '@ember/component/template-only';
4
+
5
+ var TEMPLATE = hbs("<AuAlert\n @alertTitle=\"{{t \"citaten-plugin.citaten-plugin.alert.error-title\"}}\"\n @alertSkin=\"error\"\n @alertIcon=\"alert-triangle\"\n @alertSize=\"{{if @fullSize \"default\" \"small\"}}\"\n @closable={{false}}\n ...attributes>\n <p>{{t \"citaten-plugin.alert.error-intro\"}}</p>\n <code class=\"au-u-error citaten--error-code\">{{@error}}</code>\n <p>\n {{t \"citaten-plugin.alert.error-outro\"}}\n <AuLinkExternal\n href=\"mailto:Gelinkt-Notuleren@vlaanderen.be\"\n @icon=\"mail\"\n @iconAlignment=\"left\">\n {{!-- template-lint-disable no-bare-strings --}}\n Gelinkt-Notuleren@vlaanderen.be\n </AuLinkExternal>.\n </p>\n</AuAlert>\n\n");
6
+
7
+ var alertLoadError = setComponentTemplate(TEMPLATE, templateOnly());
8
+
9
+ export { alertLoadError as default };
10
+ //# sourceMappingURL=alert-load-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert-load-error.js","sources":["../../../../src/components/citaten-plugin/helpers/alert-load-error.hbs.js","../../../../src/components/citaten-plugin/helpers/alert-load-error.js"],"sourcesContent":["import { hbs } from 'ember-cli-htmlbars';\nexport default hbs(\"<AuAlert\\n @alertTitle=\\\"{{t \\\"citaten-plugin.citaten-plugin.alert.error-title\\\"}}\\\"\\n @alertSkin=\\\"error\\\"\\n @alertIcon=\\\"alert-triangle\\\"\\n @alertSize=\\\"{{if @fullSize \\\"default\\\" \\\"small\\\"}}\\\"\\n @closable={{false}}\\n ...attributes>\\n <p>{{t \\\"citaten-plugin.alert.error-intro\\\"}}</p>\\n <code class=\\\"au-u-error citaten--error-code\\\">{{@error}}</code>\\n <p>\\n {{t \\\"citaten-plugin.alert.error-outro\\\"}}\\n <AuLinkExternal\\n href=\\\"mailto:Gelinkt-Notuleren@vlaanderen.be\\\"\\n @icon=\\\"mail\\\"\\n @iconAlignment=\\\"left\\\">\\n {{!-- template-lint-disable no-bare-strings --}}\\n Gelinkt-Notuleren@vlaanderen.be\\n </AuLinkExternal>.\\n </p>\\n</AuAlert>\\n\\n\")","import templateOnly from '@ember/component/template-only';\nexport default templateOnly();\n"],"names":["hbs","templateOnly"],"mappings":";;;;AACA,eAAeA,GAAG,CAAC,orBAAorB,CAAC;;ACAxsB,qBAAA,oBAAA,CAAA,QAAA,EAAeC,YAAY,EAAE,CAAA;;;;"}
@@ -0,0 +1,10 @@
1
+ import { setComponentTemplate } from '@ember/component';
2
+ import { hbs } from 'ember-cli-htmlbars';
3
+ import templateOnly from '@ember/component/template-only';
4
+
5
+ var TEMPLATE = hbs("<AuAlert\n @alertTitle=\"{{t \"citaten-plugin.citaten-plugin.alert.no-results\"}}\"\n @alertSkin=\"warning\"\n @alertIcon=\"cross\"\n @alertSize=\"{{if @fullSize \"default\" \"small\"}}\"\n @closable={{false}}\n class=\"{{unless @fullSize \"au-u-margin-small\"}}\"\n ...attributes>\n</AuAlert>\n\n");
6
+
7
+ var alertNoItems = setComponentTemplate(TEMPLATE, templateOnly());
8
+
9
+ export { alertNoItems as default };
10
+ //# sourceMappingURL=alert-no-items.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert-no-items.js","sources":["../../../../src/components/citaten-plugin/helpers/alert-no-items.hbs.js","../../../../src/components/citaten-plugin/helpers/alert-no-items.js"],"sourcesContent":["import { hbs } from 'ember-cli-htmlbars';\nexport default hbs(\"<AuAlert\\n @alertTitle=\\\"{{t \\\"citaten-plugin.citaten-plugin.alert.no-results\\\"}}\\\"\\n @alertSkin=\\\"warning\\\"\\n @alertIcon=\\\"cross\\\"\\n @alertSize=\\\"{{if @fullSize \\\"default\\\" \\\"small\\\"}}\\\"\\n @closable={{false}}\\n class=\\\"{{unless @fullSize \\\"au-u-margin-small\\\"}}\\\"\\n ...attributes>\\n</AuAlert>\\n\\n\")","import templateOnly from '@ember/component/template-only';\nexport default templateOnly();\n"],"names":["hbs","templateOnly"],"mappings":";;;;AACA,eAAeA,GAAG,CAAC,kTAAkT,CAAC;;ACAtU,mBAAA,oBAAA,CAAA,QAAA,EAAeC,YAAY,EAAE,CAAA;;;;"}