@lblod/ember-rdfa-editor-lblod-plugins 0.3.1 → 0.4.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.
- package/.release-it.json +14 -0
- package/.woodpecker/.release.yml +15 -0
- package/.woodpecker/.test.yml +23 -0
- package/CHANGELOG.md +84 -0
- package/RELEASE.md +60 -0
- package/addon/commands/generate-template-command.js +35 -0
- package/addon/commands/insert-and-collapse.js +32 -0
- package/addon/commands/modify-date-command.js +42 -0
- package/addon/components/besluit-type-plugin/besluit-type-select.hbs +28 -0
- package/addon/components/besluit-type-plugin/besluit-type-select.js +21 -0
- package/addon/components/besluit-type-plugin/toolbar-dropdown.hbs +83 -0
- package/addon/components/besluit-type-plugin/toolbar-dropdown.js +188 -0
- package/addon/components/citaten-plugin/citaat-card.hbs +76 -0
- package/addon/components/citaten-plugin/citaat-card.js +286 -0
- package/addon/components/citaten-plugin/citaat-insert.hbs +20 -0
- package/addon/components/citaten-plugin/citaat-insert.js +68 -0
- package/addon/components/citaten-plugin/citations/article-list.hbs +13 -0
- package/addon/components/citaten-plugin/citations/article-preview.hbs +16 -0
- package/addon/components/citaten-plugin/citations/decision-detail.hbs +110 -0
- package/addon/components/citaten-plugin/citations/decision-detail.js +94 -0
- package/addon/components/citaten-plugin/citations/decision-list.hbs +15 -0
- package/addon/components/citaten-plugin/citations/decision-preview.hbs +53 -0
- package/addon/components/citaten-plugin/citations/search-modal.hbs +175 -0
- package/addon/components/citaten-plugin/citations/search-modal.js +244 -0
- package/addon/components/citaten-plugin/helpers/alert-load-error.hbs +21 -0
- package/addon/components/citaten-plugin/helpers/alert-no-items.hbs +10 -0
- package/addon/components/import-snippet-plugin/card.hbs +17 -0
- package/addon/components/import-snippet-plugin/card.js +95 -0
- package/addon/components/insert-variable-plugin/insert-variable-card.hbs +33 -0
- package/addon/components/insert-variable-plugin/insert-variable-card.js +125 -0
- package/addon/components/rdfa-date-plugin/rdfa-date-plugin-card.hbs +22 -0
- package/addon/components/rdfa-date-plugin/rdfa-date-plugin-card.js +64 -0
- package/addon/components/rdfa-date-plugin/rdfa-date-plugin-insert.hbs +18 -0
- package/addon/components/rdfa-date-plugin/rdfa-date-plugin-insert.js +24 -0
- package/addon/components/rdfa-date-plugin/rdfa-date-time-picker.hbs +21 -0
- package/addon/components/rdfa-date-plugin/rdfa-date-time-picker.js +73 -0
- package/addon/components/roadsign-regulation-plugin/expanded-measure.hbs +44 -0
- package/addon/components/roadsign-regulation-plugin/expanded-measure.js +38 -0
- package/addon/components/roadsign-regulation-plugin/measure-template.hbs +5 -0
- package/addon/components/roadsign-regulation-plugin/measure-template.js +30 -0
- package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.hbs +12 -0
- package/addon/components/roadsign-regulation-plugin/roadsign-regulation-card.js +101 -0
- package/addon/components/roadsign-regulation-plugin/roadsigns-modal.hbs +92 -0
- package/addon/components/roadsign-regulation-plugin/roadsigns-modal.js +268 -0
- package/addon/components/roadsign-regulation-plugin/roadsigns-pagination.hbs +25 -0
- package/addon/components/roadsign-regulation-plugin/roadsigns-pagination.js +55 -0
- package/addon/components/roadsign-regulation-plugin/roadsigns-table.hbs +73 -0
- package/addon/components/roadsign-regulation-plugin/roadsigns-table.js +24 -0
- package/addon/components/standard-template-plugin/template-card.hbs +16 -0
- package/addon/components/standard-template-plugin/template-card.js +7 -0
- package/addon/components/standard-template-plugin/template-provider.hbs +6 -0
- package/addon/components/standard-template-plugin/template-provider.js +75 -0
- package/addon/components/table-of-contents-plugin/card.hbs +5 -0
- package/addon/components/table-of-contents-plugin/card.js +53 -0
- package/addon/components/table-of-contents-plugin/inline-components/outline.hbs +21 -0
- package/addon/components/table-of-contents-plugin/inline-components/table-of-contents.hbs +9 -0
- package/addon/components/table-of-contents-plugin/inline-components/table-of-contents.js +100 -0
- package/addon/components/template-variable-plugin/template-variable-card.hbs +34 -0
- package/addon/components/template-variable-plugin/template-variable-card.js +230 -0
- package/addon/constants.js +24 -0
- package/{dist → addon}/helpers/limit-text.js +1 -4
- package/addon/initializers/plugin-initializer.js +75 -0
- package/addon/inline-components/table-of-contents.js +43 -0
- package/addon/marks/citaten-mark.js +32 -0
- package/addon/models/instruction.js +19 -0
- package/addon/models/measure.js +46 -0
- package/{dist → addon}/models/sign.js +12 -13
- package/addon/models/template.js +9 -0
- package/addon/plugins/besluit-type-plugin.js +16 -0
- package/addon/plugins/citaten-plugin.js +22 -0
- package/addon/plugins/generate-template-plugin.js +16 -0
- package/addon/plugins/import-snippet-plugin.js +16 -0
- package/addon/plugins/insert-variable-plugin.js +19 -0
- package/addon/plugins/rdfa-date-plugin.js +26 -0
- package/addon/plugins/roadsign-regulation-plugin.js +24 -0
- package/addon/plugins/standard-template-plugin.js +33 -0
- package/addon/plugins/table-of-contents-plugin.js +27 -0
- package/addon/plugins/template-variable-plugin.js +21 -0
- package/addon/serializers/application.js +8 -0
- package/{dist → addon}/services/import-rdfa-snippet.js +28 -18
- package/{dist → addon}/services/roadsign-registry.js +67 -121
- package/addon/services/standard-template-plugin.js +45 -0
- package/addon/utils/fetchBesluitTypes.js +90 -0
- package/addon/utils/generate-template-plugin/default-resources.js +9 -0
- package/addon/utils/instantiate-uuids.js +34 -0
- package/addon/utils/legislation-types.js +32 -0
- package/addon/utils/memoize.js +8 -0
- package/addon/utils/processMatch.js +80 -0
- package/addon/utils/roadsign-regulation-plugin/fetchData.js +78 -0
- package/addon/utils/roadsign-regulation-plugin/includeInstructions.js +10 -0
- package/addon/utils/variable-plugins/default-variable-types.js +56 -0
- package/{dist/fetch-data-284bf106.js → addon/utils/variable-plugins/fetch-data.js} +36 -18
- package/{dist/vlaamse-codex-187fe526.js → addon/utils/vlaamse-codex.js} +159 -63
- package/app/components/besluit-type-plugin/besluit-type-select.js +1 -0
- package/app/components/besluit-type-plugin/toolbar-dropdown.js +1 -0
- package/app/components/citaten-plugin/citaat-card.js +1 -0
- package/app/components/citaten-plugin/citaat-insert.js +1 -0
- package/app/components/citaten-plugin/citations/article-list.js +1 -0
- package/app/components/citaten-plugin/citations/article-preview.js +1 -0
- package/app/components/citaten-plugin/citations/decision-detail.js +1 -0
- package/app/components/citaten-plugin/citations/decision-list.js +1 -0
- package/app/components/citaten-plugin/citations/decision-preview.js +1 -0
- package/app/components/citaten-plugin/citations/modal.js +1 -0
- package/app/components/citaten-plugin/citations/search-modal.js +1 -0
- package/app/components/citaten-plugin/helpers/alert-load-error.js +1 -0
- package/app/components/citaten-plugin/helpers/alert-no-items.js +1 -0
- package/app/components/import-snippet-plugin/card.js +1 -0
- package/app/components/insert-variable-plugin/insert-variable-card.js +1 -0
- package/app/components/rdfa-date-plugin/rdfa-date-plugin-card.js +1 -0
- package/app/components/rdfa-date-plugin/rdfa-date-plugin-insert.js +1 -0
- package/app/components/rdfa-date-plugin/rdfa-date-time-picker.js +1 -0
- package/app/components/roadsign-regulation-plugin/expanded-measure.js +1 -0
- package/app/components/roadsign-regulation-plugin/measure-template.js +1 -0
- package/app/components/roadsign-regulation-plugin/roadsign-regulation-card.js +1 -0
- package/app/components/roadsign-regulation-plugin/roadsigns-modal.js +1 -0
- package/app/components/roadsign-regulation-plugin/roadsigns-pagination.js +1 -0
- package/app/components/roadsign-regulation-plugin/roadsigns-table.js +1 -0
- package/app/components/standard-template-plugin/template-card.js +1 -0
- package/app/components/standard-template-plugin/template-provider.js +1 -0
- package/app/components/table-of-contents-plugin/card.js +1 -0
- package/app/components/table-of-contents-plugin/inline-components/outline.js +1 -0
- package/app/components/table-of-contents-plugin/inline-components/table-of-contents.js +1 -0
- package/app/components/template-variable-plugin/template-variable-card.js +1 -0
- package/app/helpers/limit-text.js +4 -0
- package/app/initializers/plugin-initializer.js +4 -0
- package/app/models/instruction.js +1 -0
- package/app/models/measure.js +1 -0
- package/app/models/sign.js +1 -0
- package/app/models/template.js +1 -0
- package/app/serializers/application.js +1 -0
- package/app/services/import-rdfa-snippet.js +1 -0
- package/app/services/rdfa-editor-roadsign-regulation-plugin.js +1 -0
- package/app/services/roadsign-registry.js +1 -0
- package/app/services/standard-template-plugin.js +1 -0
- package/{dist → app}/styles/citaten-plugin.scss +0 -0
- package/config/environment.js +0 -1
- package/index.js +8 -0
- package/package.json +110 -106
- package/tsconfig.json +42 -0
- package/types/dummy/index.d.ts +1 -0
- package/types/ember-data/types/registries/model.d.ts +6 -0
- package/types/global.d.ts +7 -0
- package/addon-main.js +0 -4
- package/dist/_app_/components/besluit-type-plugin/besluit-type-select.js +0 -1
- package/dist/_app_/components/besluit-type-plugin/toolbar-dropdown.js +0 -1
- package/dist/_app_/components/citaten-plugin/citaat-card.js +0 -1
- package/dist/_app_/components/citaten-plugin/citaat-insert.js +0 -1
- package/dist/_app_/components/citaten-plugin/citations/article-list.js +0 -1
- package/dist/_app_/components/citaten-plugin/citations/article-preview.js +0 -1
- package/dist/_app_/components/citaten-plugin/citations/decision-detail.js +0 -1
- package/dist/_app_/components/citaten-plugin/citations/decision-list.js +0 -1
- package/dist/_app_/components/citaten-plugin/citations/decision-preview.js +0 -1
- package/dist/_app_/components/citaten-plugin/citations/search-modal.js +0 -1
- package/dist/_app_/components/citaten-plugin/helpers/alert-load-error.js +0 -1
- package/dist/_app_/components/citaten-plugin/helpers/alert-no-items.js +0 -1
- package/dist/_app_/components/import-snippet-plugin/card.js +0 -1
- package/dist/_app_/components/insert-variable-plugin/insert-variable-card.js +0 -1
- package/dist/_app_/components/rdfa-date-plugin/rdfa-date-plugin-card.js +0 -1
- package/dist/_app_/components/rdfa-date-plugin/rdfa-date-plugin-insert.js +0 -1
- package/dist/_app_/components/rdfa-date-plugin/rdfa-date-time-picker.js +0 -1
- package/dist/_app_/components/roadsign-regulation-plugin/expanded-measure.js +0 -1
- package/dist/_app_/components/roadsign-regulation-plugin/measure-template.js +0 -1
- package/dist/_app_/components/roadsign-regulation-plugin/roadsign-regulation-card.js +0 -1
- package/dist/_app_/components/roadsign-regulation-plugin/roadsigns-modal.js +0 -1
- package/dist/_app_/components/roadsign-regulation-plugin/roadsigns-pagination.js +0 -1
- package/dist/_app_/components/roadsign-regulation-plugin/roadsigns-table.js +0 -1
- package/dist/_app_/components/standard-template-plugin/template-card.js +0 -1
- package/dist/_app_/components/standard-template-plugin/template-provider.js +0 -1
- package/dist/_app_/components/table-of-contents-plugin/card.js +0 -1
- package/dist/_app_/components/table-of-contents-plugin/inline-components/outline.js +0 -1
- package/dist/_app_/components/table-of-contents-plugin/inline-components/table-of-contents.js +0 -1
- package/dist/_app_/components/template-variable-plugin/template-variable-card.js +0 -1
- package/dist/_app_/helpers/limit-text.js +0 -1
- package/dist/_app_/initializers/plugin-initializer.js +0 -1
- package/dist/_app_/models/instruction.js +0 -1
- package/dist/_app_/models/measure.js +0 -1
- package/dist/_app_/models/sign.js +0 -1
- package/dist/_app_/models/template.js +0 -1
- package/dist/_app_/serializers/application.js +0 -1
- package/dist/_app_/services/import-rdfa-snippet.js +0 -1
- package/dist/_app_/services/roadsign-registry.js +0 -1
- package/dist/_app_/services/standard-template-plugin.js +0 -1
- package/dist/_rollupPluginBabelHelpers-537ad14b.js +0 -48
- package/dist/_rollupPluginBabelHelpers-537ad14b.js.map +0 -1
- package/dist/components/besluit-type-plugin/besluit-type-select.js +0 -30
- package/dist/components/besluit-type-plugin/besluit-type-select.js.map +0 -1
- package/dist/components/besluit-type-plugin/toolbar-dropdown.js +0 -292
- package/dist/components/besluit-type-plugin/toolbar-dropdown.js.map +0 -1
- package/dist/components/citaten-plugin/citaat-card.js +0 -367
- package/dist/components/citaten-plugin/citaat-card.js.map +0 -1
- package/dist/components/citaten-plugin/citaat-insert.js +0 -84
- package/dist/components/citaten-plugin/citaat-insert.js.map +0 -1
- package/dist/components/citaten-plugin/citations/article-list.js +0 -10
- package/dist/components/citaten-plugin/citations/article-list.js.map +0 -1
- package/dist/components/citaten-plugin/citations/article-preview.js +0 -10
- package/dist/components/citaten-plugin/citations/article-preview.js.map +0 -1
- package/dist/components/citaten-plugin/citations/decision-detail.js +0 -123
- package/dist/components/citaten-plugin/citations/decision-detail.js.map +0 -1
- package/dist/components/citaten-plugin/citations/decision-list.js +0 -10
- package/dist/components/citaten-plugin/citations/decision-list.js.map +0 -1
- package/dist/components/citaten-plugin/citations/decision-preview.js +0 -10
- package/dist/components/citaten-plugin/citations/decision-preview.js.map +0 -1
- package/dist/components/citaten-plugin/citations/search-modal.js +0 -282
- package/dist/components/citaten-plugin/citations/search-modal.js.map +0 -1
- package/dist/components/citaten-plugin/helpers/alert-load-error.js +0 -10
- package/dist/components/citaten-plugin/helpers/alert-load-error.js.map +0 -1
- package/dist/components/citaten-plugin/helpers/alert-no-items.js +0 -10
- package/dist/components/citaten-plugin/helpers/alert-no-items.js.map +0 -1
- package/dist/components/import-snippet-plugin/card.js +0 -99
- package/dist/components/import-snippet-plugin/card.js.map +0 -1
- package/dist/components/insert-variable-plugin/insert-variable-card.js +0 -190
- package/dist/components/insert-variable-plugin/insert-variable-card.js.map +0 -1
- package/dist/components/rdfa-date-plugin/rdfa-date-plugin-card.js +0 -85
- package/dist/components/rdfa-date-plugin/rdfa-date-plugin-card.js.map +0 -1
- package/dist/components/rdfa-date-plugin/rdfa-date-plugin-insert.js +0 -23
- package/dist/components/rdfa-date-plugin/rdfa-date-plugin-insert.js.map +0 -1
- package/dist/components/rdfa-date-plugin/rdfa-date-time-picker.js +0 -91
- package/dist/components/rdfa-date-plugin/rdfa-date-time-picker.js.map +0 -1
- package/dist/components/roadsign-regulation-plugin/expanded-measure.js +0 -52
- package/dist/components/roadsign-regulation-plugin/expanded-measure.js.map +0 -1
- package/dist/components/roadsign-regulation-plugin/measure-template.js +0 -42
- package/dist/components/roadsign-regulation-plugin/measure-template.js.map +0 -1
- package/dist/components/roadsign-regulation-plugin/roadsign-regulation-card.js +0 -82
- package/dist/components/roadsign-regulation-plugin/roadsign-regulation-card.js.map +0 -1
- package/dist/components/roadsign-regulation-plugin/roadsigns-modal.js +0 -251
- package/dist/components/roadsign-regulation-plugin/roadsigns-modal.js.map +0 -1
- package/dist/components/roadsign-regulation-plugin/roadsigns-pagination.js +0 -71
- package/dist/components/roadsign-regulation-plugin/roadsigns-pagination.js.map +0 -1
- package/dist/components/roadsign-regulation-plugin/roadsigns-table.js +0 -36
- package/dist/components/roadsign-regulation-plugin/roadsigns-table.js.map +0 -1
- package/dist/components/standard-template-plugin/template-card.js +0 -15
- package/dist/components/standard-template-plugin/template-card.js.map +0 -1
- package/dist/components/standard-template-plugin/template-provider.js +0 -109
- package/dist/components/standard-template-plugin/template-provider.js.map +0 -1
- package/dist/components/table-of-contents-plugin/card.js +0 -52
- package/dist/components/table-of-contents-plugin/card.js.map +0 -1
- package/dist/components/table-of-contents-plugin/inline-components/outline.js +0 -10
- package/dist/components/table-of-contents-plugin/inline-components/outline.js.map +0 -1
- package/dist/components/table-of-contents-plugin/inline-components/table-of-contents.js +0 -92
- package/dist/components/table-of-contents-plugin/inline-components/table-of-contents.js.map +0 -1
- package/dist/components/template-variable-plugin/template-variable-card.js +0 -178
- package/dist/components/template-variable-plugin/template-variable-card.js.map +0 -1
- package/dist/constants-c77fd478.js +0 -16
- package/dist/constants-c77fd478.js.map +0 -1
- package/dist/fetch-data-284bf106.js.map +0 -1
- package/dist/helpers/limit-text.js.map +0 -1
- package/dist/includeInstructions-a32c24e6.js +0 -10
- package/dist/includeInstructions-a32c24e6.js.map +0 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +0 -1
- package/dist/initializers/plugin-initializer.js +0 -401
- package/dist/initializers/plugin-initializer.js.map +0 -1
- package/dist/legislation-types-4d487cb9.js +0 -26
- package/dist/legislation-types-4d487cb9.js.map +0 -1
- package/dist/models/instruction.js +0 -18
- package/dist/models/instruction.js.map +0 -1
- package/dist/models/measure.js +0 -41
- package/dist/models/measure.js.map +0 -1
- package/dist/models/sign.js.map +0 -1
- package/dist/models/template.js +0 -48
- package/dist/models/template.js.map +0 -1
- package/dist/serializers/application.js +0 -10
- package/dist/serializers/application.js.map +0 -1
- package/dist/services/import-rdfa-snippet.js.map +0 -1
- package/dist/services/roadsign-registry.js.map +0 -1
- package/dist/services/standard-template-plugin.js +0 -53
- package/dist/services/standard-template-plugin.js.map +0 -1
- package/dist/styles/test.css +0 -0
- package/dist/vlaamse-codex-187fe526.js.map +0 -1
|
@@ -1,36 +0,0 @@
|
|
|
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 { action } from '@ember/object';
|
|
5
|
-
import Component from '@glimmer/component';
|
|
6
|
-
import { tracked } from '@glimmer/tracking';
|
|
7
|
-
import { getOwner } from '@ember/application';
|
|
8
|
-
|
|
9
|
-
var TEMPLATE = hbs("<AuDataTable @isLoading={{@isLoading}} @noDataMessage=\"No data\" as |table|>\n <table.content as |c|>\n <c.header>\n <th class=\"data-table__header-title\">Code</th>\n <th class=\"data-table__header-title\">Afbeelding</th>\n <th class=\"data-table__header-title\">Template</th>\n <th class=\"data-table__header-title\">Category</th>\n <th class=\"data-table__header-title\"></th>\n </c.header>\n {{#if c.body}}\n <tbody>\n {{#if @isLoading}}\n <tr>\n <td colspan=\"100%\" class=\"is-loading-data\">\n <AuLoader />\n <AuHelpText>Aan het laden</AuHelpText>\n </td>\n </tr>\n {{else}}\n {{#each @content as |row|}}\n {{!-- template-lint-disable require-presentational-children --}}\n <tr role=\"button\" class=\"au-c-data-table__clickable-row\" {{on \"click\" (fn this.selectRow row.uri)}}>\n <td>\n <p>{{row.label}}</p>\n </td>\n <td>\n <div class=\"au-o-grid au-o-grid--tiny\">\n {{#each row.signs as |sign|}}\n <div class=\"au-o-grid__item au-u-1-3\">\n <img src={{sign.image}} alt=\"verkeersteken {{sign.code}}\" class=\"au-c-data-table__image\" />\n </div>\n {{/each}}\n </div>\n </td>\n <td>\n <AuHelpText skin=\"secondary\" class=\"au-u-margin-none\"><RoadsignRegulationPlugin::MeasureTemplate @measure={{row.uri}} @template={{row.template}} @limitText={{true}}/></AuHelpText>\n </td>\n <td>\n {{#each row.classifications as |classification|}}\n {{#if classification}}\n <AuPill @skin=\"border\">{{classification}}</AuPill>\n {{/if}}\n {{/each}}\n </td>\n <td>\n {{#if (eq this.selected row.uri)}}\n <AuIcon @icon=\"nav-up\" @ariaHidden={{true}} class=\"au-c-data-table__clickable-row-icon\" />\n {{else}}\n <AuIcon @icon=\"nav-down\" @ariaHidden={{true}} class=\"au-c-data-table__clickable-row-icon\" />\n {{/if}}\n </td>\n </tr>\n {{#if (eq this.selected row.uri)}}\n <RoadsignRegulationPlugin::ExpandedMeasure @measure={{row}} @insert={{@insert}} @selectRow={{this.selectRow}} />\n {{/if}}\n {{else}}\n <tr>\n <td colspan=\"5\" class=\"no-data-message\"><p>Er werden geen maatregelen gevonden.</p></td>\n </tr>\n {{/each}}\n {{/if}}\n </tbody>\n {{/if}}\n </table.content>\n</AuDataTable>\n{{#if @count}}\n<RoadsignRegulationPlugin::RoadsignsPagination\n @goToPage={{@goToPage}}\n @pageSize={{@pageSize}}\n @pageStart={{@pageStart}}\n @count={{@count}}\n/>\n{{/if}}\n");
|
|
10
|
-
|
|
11
|
-
var _class, _descriptor;
|
|
12
|
-
let RoadsignsTable = (_class = class RoadsignsTable extends Component {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
_initializerDefineProperty(this, "selected", _descriptor, this);
|
|
16
|
-
_defineProperty(this, "imageBaseUrl", void 0);
|
|
17
|
-
const config = getOwner(this).resolveRegistration('config:environment');
|
|
18
|
-
this.imageBaseUrl = config.roadsignRegulationPlugin.imageBaseUrl;
|
|
19
|
-
}
|
|
20
|
-
selectRow(id) {
|
|
21
|
-
if (this.selected === id) {
|
|
22
|
-
this.selected = undefined;
|
|
23
|
-
} else {
|
|
24
|
-
this.selected = id;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}, (_descriptor = _applyDecoratedDescriptor(_class.prototype, "selected", [tracked], {
|
|
28
|
-
configurable: true,
|
|
29
|
-
enumerable: true,
|
|
30
|
-
writable: true,
|
|
31
|
-
initializer: null
|
|
32
|
-
}), _applyDecoratedDescriptor(_class.prototype, "selectRow", [action], Object.getOwnPropertyDescriptor(_class.prototype, "selectRow"), _class.prototype)), _class);
|
|
33
|
-
setComponentTemplate(TEMPLATE, RoadsignsTable);
|
|
34
|
-
|
|
35
|
-
export { RoadsignsTable as default };
|
|
36
|
-
//# sourceMappingURL=roadsigns-table.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"roadsigns-table.js","sources":["../../../src/components/roadsign-regulation-plugin/roadsigns-table.hbs.js","../../../src/components/roadsign-regulation-plugin/roadsigns-table.js"],"sourcesContent":["import { hbs } from 'ember-cli-htmlbars';\nexport default hbs(\"<AuDataTable @isLoading={{@isLoading}} @noDataMessage=\\\"No data\\\" as |table|>\\n <table.content as |c|>\\n <c.header>\\n <th class=\\\"data-table__header-title\\\">Code</th>\\n <th class=\\\"data-table__header-title\\\">Afbeelding</th>\\n <th class=\\\"data-table__header-title\\\">Template</th>\\n <th class=\\\"data-table__header-title\\\">Category</th>\\n <th class=\\\"data-table__header-title\\\"></th>\\n </c.header>\\n {{#if c.body}}\\n <tbody>\\n {{#if @isLoading}}\\n <tr>\\n <td colspan=\\\"100%\\\" class=\\\"is-loading-data\\\">\\n <AuLoader />\\n <AuHelpText>Aan het laden</AuHelpText>\\n </td>\\n </tr>\\n {{else}}\\n {{#each @content as |row|}}\\n {{!-- template-lint-disable require-presentational-children --}}\\n <tr role=\\\"button\\\" class=\\\"au-c-data-table__clickable-row\\\" {{on \\\"click\\\" (fn this.selectRow row.uri)}}>\\n <td>\\n <p>{{row.label}}</p>\\n </td>\\n <td>\\n <div class=\\\"au-o-grid au-o-grid--tiny\\\">\\n {{#each row.signs as |sign|}}\\n <div class=\\\"au-o-grid__item au-u-1-3\\\">\\n <img src={{sign.image}} alt=\\\"verkeersteken {{sign.code}}\\\" class=\\\"au-c-data-table__image\\\" />\\n </div>\\n {{/each}}\\n </div>\\n </td>\\n <td>\\n <AuHelpText skin=\\\"secondary\\\" class=\\\"au-u-margin-none\\\"><RoadsignRegulationPlugin::MeasureTemplate @measure={{row.uri}} @template={{row.template}} @limitText={{true}}/></AuHelpText>\\n </td>\\n <td>\\n {{#each row.classifications as |classification|}}\\n {{#if classification}}\\n <AuPill @skin=\\\"border\\\">{{classification}}</AuPill>\\n {{/if}}\\n {{/each}}\\n </td>\\n <td>\\n {{#if (eq this.selected row.uri)}}\\n <AuIcon @icon=\\\"nav-up\\\" @ariaHidden={{true}} class=\\\"au-c-data-table__clickable-row-icon\\\" />\\n {{else}}\\n <AuIcon @icon=\\\"nav-down\\\" @ariaHidden={{true}} class=\\\"au-c-data-table__clickable-row-icon\\\" />\\n {{/if}}\\n </td>\\n </tr>\\n {{#if (eq this.selected row.uri)}}\\n <RoadsignRegulationPlugin::ExpandedMeasure @measure={{row}} @insert={{@insert}} @selectRow={{this.selectRow}} />\\n {{/if}}\\n {{else}}\\n <tr>\\n <td colspan=\\\"5\\\" class=\\\"no-data-message\\\"><p>Er werden geen maatregelen gevonden.</p></td>\\n </tr>\\n {{/each}}\\n {{/if}}\\n </tbody>\\n {{/if}}\\n </table.content>\\n</AuDataTable>\\n{{#if @count}}\\n<RoadsignRegulationPlugin::RoadsignsPagination\\n @goToPage={{@goToPage}}\\n @pageSize={{@pageSize}}\\n @pageStart={{@pageStart}}\\n @count={{@count}}\\n/>\\n{{/if}}\\n\")","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { getOwner } from '@ember/application';\n\nexport default class RoadsignsTable extends Component {\n @tracked selected;\n imageBaseUrl;\n\n constructor() {\n super(...arguments);\n const config = getOwner(this).resolveRegistration('config:environment');\n this.imageBaseUrl = config.roadsignRegulationPlugin.imageBaseUrl;\n }\n\n @action\n selectRow(id) {\n if (this.selected === id) {\n this.selected = undefined;\n } else {\n this.selected = id;\n }\n }\n}\n"],"names":["hbs","RoadsignsTable","Component","constructor","arguments","config","getOwner","resolveRegistration","imageBaseUrl","roadsignRegulationPlugin","selectRow","id","selected","undefined","tracked","action"],"mappings":";;;;;;;;AACA,eAAeA,GAAG,CAAC,03FAA03F,CAAC;;;ACEh2F,IAEzBC,cAAc,IAApB,MAAA,GAAA,MAAMA,cAAc,SAASC,SAAS,CAAC;AAIpDC,EAAAA,WAAW,GAAG;IACZ,KAAK,CAAC,GAAGC,SAAS,CAAC,CAAA;AAAC,IAAA,0BAAA,CAAA,IAAA,EAAA,UAAA,EAAA,WAAA,EAAA,IAAA,CAAA,CAAA;AAAA,IAAA,eAAA,CAAA,IAAA,EAAA,cAAA,EAAA,KAAA,CAAA,CAAA,CAAA;IACpB,MAAMC,MAAM,GAAGC,QAAQ,CAAC,IAAI,CAAC,CAACC,mBAAmB,CAAC,oBAAoB,CAAC,CAAA;AACvE,IAAA,IAAI,CAACC,YAAY,GAAGH,MAAM,CAACI,wBAAwB,CAACD,YAAY,CAAA;AAClE,GAAA;EAGAE,SAAS,CAACC,EAAE,EAAE;AACZ,IAAA,IAAI,IAAI,CAACC,QAAQ,KAAKD,EAAE,EAAE;MACxB,IAAI,CAACC,QAAQ,GAAGC,SAAS,CAAA;AAC3B,KAAC,MAAM;MACL,IAAI,CAACD,QAAQ,GAAGD,EAAE,CAAA;AACpB,KAAA;AACF,GAAA;AACF,CAAC,0EAjBEG,OAAO,CAAA,EAAA;AAAA,EAAA,YAAA,EAAA,IAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,QAAA,EAAA,IAAA;AAAA,EAAA,WAAA,EAAA,IAAA;AAAA,CAAA,CAAA,EAAA,yBAAA,CAAA,MAAA,CAAA,SAAA,EAAA,WAAA,EAAA,CASPC,MAAM,CAAA,EAAA,MAAA,CAAA,wBAAA,CAAA,MAAA,CAAA,SAAA,EAAA,WAAA,CAAA,EAAA,MAAA,CAAA,SAAA,CAAA,GAAA,MAAA,EAAA;AAV0B,oBAAA,CAAA,QAAA,EAAA,cAAA,CAAA;;;;"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { setComponentTemplate } from '@ember/component';
|
|
2
|
-
import { hbs } from 'ember-cli-htmlbars';
|
|
3
|
-
import Component from '@glimmer/component';
|
|
4
|
-
|
|
5
|
-
var TEMPLATE = hbs("<StandardTemplatePlugin::TemplateProvider @controller={{@controller}} as |provider|>\n {{#if provider.hasApplicableTemplates}}\n {{#each provider.applicableTemplates as |template|}}\n <AuList::Item>\n <AuButton\n @skin=\"link\"\n @icon=\"add\"\n @iconAlignment=\"left\"\n {{on \"click\" (fn provider.insert template)}}\n >\n {{template.title}}\n </AuButton>\n </AuList::Item>\n {{/each}}\n {{/if}}\n</StandardTemplatePlugin::TemplateProvider>");
|
|
6
|
-
|
|
7
|
-
class StandardTemplateTemplateCardComponent extends Component {
|
|
8
|
-
get controller() {
|
|
9
|
-
return this.args.controller;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
setComponentTemplate(TEMPLATE, StandardTemplateTemplateCardComponent);
|
|
13
|
-
|
|
14
|
-
export { StandardTemplateTemplateCardComponent as default };
|
|
15
|
-
//# sourceMappingURL=template-card.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"template-card.js","sources":["../../../src/components/standard-template-plugin/template-card.hbs.js","../../../src/components/standard-template-plugin/template-card.js"],"sourcesContent":["import { hbs } from 'ember-cli-htmlbars';\nexport default hbs(\"<StandardTemplatePlugin::TemplateProvider @controller={{@controller}} as |provider|>\\n {{#if provider.hasApplicableTemplates}}\\n {{#each provider.applicableTemplates as |template|}}\\n <AuList::Item>\\n <AuButton\\n @skin=\\\"link\\\"\\n @icon=\\\"add\\\"\\n @iconAlignment=\\\"left\\\"\\n {{on \\\"click\\\" (fn provider.insert template)}}\\n >\\n {{template.title}}\\n </AuButton>\\n </AuList::Item>\\n {{/each}}\\n {{/if}}\\n</StandardTemplatePlugin::TemplateProvider>\")","import Component from '@glimmer/component';\n\nexport default class StandardTemplateTemplateCardComponent extends Component {\n get controller() {\n return this.args.controller;\n }\n}\n"],"names":["hbs","StandardTemplateTemplateCardComponent","Component","controller","args"],"mappings":";;;;AACA,eAAeA,GAAG,CAAC,ghBAAghB,CAAC;;ACCrhB,MAAMC,qCAAqC,SAASC,SAAS,CAAC;AAC3E,EAAA,IAAIC,UAAU,GAAG;AACf,IAAA,OAAO,IAAI,CAACC,IAAI,CAACD,UAAU,CAAA;AAC7B,GAAA;AACF,CAAA;AAAC,oBAAA,CAAA,QAAA,EAJoBF,qCAAqC,CAAA;;;;"}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { _ as _applyDecoratedDescriptor, a as _initializerDefineProperty } 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 { action } from '@ember/object';
|
|
6
|
-
import { tracked } from '@glimmer/tracking';
|
|
7
|
-
import { inject } from '@ember/service';
|
|
8
|
-
import { v4 } from 'uuid';
|
|
9
|
-
|
|
10
|
-
var TEMPLATE = hbs("{{yield (hash\n applicableTemplates=this.applicableTemplates\n hasApplicableTemplates=this.hasApplicableTemplates\n busy=this.busy\n insert=this.insert\n )}}");
|
|
11
|
-
|
|
12
|
-
function memoize(func) {
|
|
13
|
-
let cache = {};
|
|
14
|
-
return function () {
|
|
15
|
-
let args = JSON.stringify(arguments);
|
|
16
|
-
cache[args] = cache[args] || func.apply(this, arguments);
|
|
17
|
-
return cache[args];
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Given a template string, we instantiate uuids by matching
|
|
23
|
-
* ${generateUuid()} pattern in the string and evaluating generateUuid()
|
|
24
|
-
*
|
|
25
|
-
* Note: the general approach is similar to converting a string to a template literal, but since
|
|
26
|
-
* this approach does not work in IE, we had to fall back to plain regex matching.
|
|
27
|
-
*
|
|
28
|
-
* @method instantiateUuids
|
|
29
|
-
* @param {String} templateString
|
|
30
|
-
*
|
|
31
|
-
* @return {String} template string with instantiated uuids
|
|
32
|
-
*
|
|
33
|
-
* @private
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
function determineFunction(string) {
|
|
37
|
-
switch (string) {
|
|
38
|
-
case 'generateUuid()':
|
|
39
|
-
return v4;
|
|
40
|
-
case 'generateBoundUuid()':
|
|
41
|
-
return memoize(v4);
|
|
42
|
-
default:
|
|
43
|
-
throw new Error(`Could not convert ${string} to function`);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
function instantiateUuids(templateString) {
|
|
47
|
-
return templateString.replace(/\$\{.+?}/g, match => {
|
|
48
|
-
//input '${content}' and eval('content')
|
|
49
|
-
return determineFunction(match.substring(2, match.length - 1))();
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
var _class, _descriptor, _descriptor2;
|
|
54
|
-
let TemplateProviderComponent = (_class = class TemplateProviderComponent extends Component {
|
|
55
|
-
constructor() {
|
|
56
|
-
super(...arguments);
|
|
57
|
-
_initializerDefineProperty(this, "standardTemplatePlugin", _descriptor, this);
|
|
58
|
-
_initializerDefineProperty(this, "applicableTemplates", _descriptor2, this);
|
|
59
|
-
this.args.controller.onEvent('selectionChanged', this.trackSelectionChange);
|
|
60
|
-
}
|
|
61
|
-
get busy() {
|
|
62
|
-
return this.standardTemplatePlugin.fetchTemplates.isRunning;
|
|
63
|
-
}
|
|
64
|
-
get controller() {
|
|
65
|
-
return this.args.controller;
|
|
66
|
-
}
|
|
67
|
-
get hasApplicableTemplates() {
|
|
68
|
-
return this.applicableTemplates.length > 0;
|
|
69
|
-
}
|
|
70
|
-
templateIsApplicable(template) {
|
|
71
|
-
const selectedRange = this.controller.selection.lastRange;
|
|
72
|
-
if (!selectedRange) {
|
|
73
|
-
return false;
|
|
74
|
-
}
|
|
75
|
-
const rangeStore = this.controller.datastore.limitToRange(selectedRange, 'rangeIsInside');
|
|
76
|
-
const containsTypes = rangeStore.match(null, 'a').dataset.some(quad => {
|
|
77
|
-
return template.contexts.includes(quad.object.value);
|
|
78
|
-
});
|
|
79
|
-
const containsDisabledTypes = rangeStore.match(null, 'a').dataset.some(quad => template.disabledInContexts.includes(quad.object.value));
|
|
80
|
-
return containsTypes && !containsDisabledTypes;
|
|
81
|
-
}
|
|
82
|
-
trackSelectionChange() {
|
|
83
|
-
this.applicableTemplates = this.standardTemplatePlugin.fetchTemplates.last.value?.filter(template => this.templateIsApplicable(template)) || [];
|
|
84
|
-
}
|
|
85
|
-
async insert(template) {
|
|
86
|
-
await template.reload();
|
|
87
|
-
let insertRange = this.controller.selection.lastRange;
|
|
88
|
-
if (insertRange.getMarks().hasMarkName('highlighted')) {
|
|
89
|
-
insertRange = this.controller.rangeFactory.fromAroundNode(insertRange.getCommonAncestor());
|
|
90
|
-
}
|
|
91
|
-
this.controller.executeCommand('insert-html', instantiateUuids(template.body), insertRange, 'right');
|
|
92
|
-
}
|
|
93
|
-
}, (_descriptor = _applyDecoratedDescriptor(_class.prototype, "standardTemplatePlugin", [inject], {
|
|
94
|
-
configurable: true,
|
|
95
|
-
enumerable: true,
|
|
96
|
-
writable: true,
|
|
97
|
-
initializer: null
|
|
98
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "applicableTemplates", [tracked], {
|
|
99
|
-
configurable: true,
|
|
100
|
-
enumerable: true,
|
|
101
|
-
writable: true,
|
|
102
|
-
initializer: function () {
|
|
103
|
-
return [];
|
|
104
|
-
}
|
|
105
|
-
}), _applyDecoratedDescriptor(_class.prototype, "trackSelectionChange", [action], Object.getOwnPropertyDescriptor(_class.prototype, "trackSelectionChange"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "insert", [action], Object.getOwnPropertyDescriptor(_class.prototype, "insert"), _class.prototype)), _class);
|
|
106
|
-
setComponentTemplate(TEMPLATE, TemplateProviderComponent);
|
|
107
|
-
|
|
108
|
-
export { TemplateProviderComponent as default };
|
|
109
|
-
//# sourceMappingURL=template-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"template-provider.js","sources":["../../../src/components/standard-template-plugin/template-provider.hbs.js","../../../src/utils/memoize.js","../../../src/utils/instantiate-uuids.js","../../../src/components/standard-template-plugin/template-provider.js"],"sourcesContent":["import { hbs } from 'ember-cli-htmlbars';\nexport default hbs(\"{{yield (hash\\n applicableTemplates=this.applicableTemplates\\n hasApplicableTemplates=this.hasApplicableTemplates\\n busy=this.busy\\n insert=this.insert\\n )}}\")","export default function memoize(func) {\n let cache = {};\n return function () {\n let args = JSON.stringify(arguments);\n cache[args] = cache[args] || func.apply(this, arguments);\n return cache[args];\n };\n}\n","import memoize from '../utils/memoize';\nimport { v4 as uuidv4 } from 'uuid';\n\n/**\n * Given a template string, we instantiate uuids by matching\n * ${generateUuid()} pattern in the string and evaluating generateUuid()\n *\n * Note: the general approach is similar to converting a string to a template literal, but since\n * this approach does not work in IE, we had to fall back to plain regex matching.\n *\n * @method instantiateUuids\n * @param {String} templateString\n *\n * @return {String} template string with instantiated uuids\n *\n * @private\n */\n\nfunction determineFunction(string) {\n switch (string) {\n case 'generateUuid()':\n return uuidv4;\n case 'generateBoundUuid()':\n return memoize(uuidv4);\n default:\n throw new Error(`Could not convert ${string} to function`);\n }\n}\nexport default function instantiateUuids(templateString) {\n return templateString.replace(/\\$\\{.+?}/g, (match) => {\n //input '${content}' and eval('content')\n return determineFunction(match.substring(2, match.length - 1))();\n });\n}\n","import Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { tracked } from '@glimmer/tracking';\nimport { inject as service } from '@ember/service';\nimport instantiateUuids from '../../utils/instantiate-uuids';\n\nexport default class TemplateProviderComponent extends Component {\n @service standardTemplatePlugin;\n @tracked applicableTemplates = [];\n\n constructor() {\n super(...arguments);\n this.args.controller.onEvent('selectionChanged', this.trackSelectionChange);\n }\n\n get busy() {\n return this.standardTemplatePlugin.fetchTemplates.isRunning;\n }\n\n get controller() {\n return this.args.controller;\n }\n\n get hasApplicableTemplates() {\n return this.applicableTemplates.length > 0;\n }\n\n templateIsApplicable(template) {\n const selectedRange = this.controller.selection.lastRange;\n if (!selectedRange) {\n return false;\n }\n const rangeStore = this.controller.datastore.limitToRange(\n selectedRange,\n 'rangeIsInside'\n );\n\n const containsTypes = rangeStore.match(null, 'a').dataset.some((quad) => {\n return template.contexts.includes(quad.object.value);\n });\n\n const containsDisabledTypes = rangeStore\n .match(null, 'a')\n .dataset.some((quad) =>\n template.disabledInContexts.includes(quad.object.value)\n );\n\n return containsTypes && !containsDisabledTypes;\n }\n\n @action\n trackSelectionChange() {\n this.applicableTemplates =\n this.standardTemplatePlugin.fetchTemplates.last.value?.filter(\n (template) => this.templateIsApplicable(template)\n ) || [];\n }\n\n @action\n async insert(template) {\n await template.reload();\n let insertRange = this.controller.selection.lastRange;\n if (insertRange.getMarks().hasMarkName('highlighted')) {\n insertRange = this.controller.rangeFactory.fromAroundNode(\n insertRange.getCommonAncestor()\n );\n }\n this.controller.executeCommand(\n 'insert-html',\n instantiateUuids(template.body),\n insertRange,\n 'right'\n );\n }\n}\n"],"names":["hbs","memoize","func","cache","args","JSON","stringify","arguments","apply","determineFunction","string","uuidv4","Error","instantiateUuids","templateString","replace","match","substring","length","TemplateProviderComponent","Component","constructor","controller","onEvent","trackSelectionChange","busy","standardTemplatePlugin","fetchTemplates","isRunning","hasApplicableTemplates","applicableTemplates","templateIsApplicable","template","selectedRange","selection","lastRange","rangeStore","datastore","limitToRange","containsTypes","dataset","some","quad","contexts","includes","object","value","containsDisabledTypes","disabledInContexts","last","filter","insert","reload","insertRange","getMarks","hasMarkName","rangeFactory","fromAroundNode","getCommonAncestor","executeCommand","body","service","tracked","action"],"mappings":";;;;;;;;;AACA,eAAeA,GAAG,CAAC,0MAA0M,CAAC;;ACD/M,SAASC,OAAO,CAACC,IAAI,EAAE;EACpC,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A,IAAA,OAAuB,EAAE,CAAA;AAAA,GAAA;AAAA,CA0ChCC,CAAAA,EAAAA,yBAAAA,CAAAA,MAAAA,CAAAA,SAAAA,EAAAA,sBAAAA,EAAAA,CAAAA,MAAM,wJAQNA,MAAM,CAAA,EAAA,MAAA,CAAA,wBAAA,CAAA,MAAA,CAAA,SAAA,EAAA,QAAA,CAAA,EAAA,MAAA,CAAA,SAAA,CAAA,GAAA,MAAA,EAAA;AApDqC,oBAAA,CAAA,QAAA,EAAA,yBAAA,CAAA;;;;"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { _ as _applyDecoratedDescriptor, a as _initializerDefineProperty } from '../../_rollupPluginBabelHelpers-537ad14b.js';
|
|
2
|
-
import { setComponentTemplate } from '@ember/component';
|
|
3
|
-
import { hbs } from 'ember-cli-htmlbars';
|
|
4
|
-
import { action } from '@ember/object';
|
|
5
|
-
import Component from '@glimmer/component';
|
|
6
|
-
import { tracked } from '@glimmer/tracking';
|
|
7
|
-
|
|
8
|
-
var TEMPLATE = hbs("<AuCard @flex={{true}} @divided={{true}} @expandable={{false}} @shadow={{true}} @size=\"flush\" as |c|>\n <c.content class=\"au-c-content--small\">\n <AuToggleSwitch @label={{t \"table-of-contents-plugin.toggle\" }} @checked={{this.toggled}} @onChange={{this.toggle}} />\n </c.content>\n</AuCard>");
|
|
9
|
-
|
|
10
|
-
var _class, _descriptor;
|
|
11
|
-
let TableOfContentsCardComponent = (_class = class TableOfContentsCardComponent extends Component {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments);
|
|
14
|
-
_initializerDefineProperty(this, "toggled", _descriptor, this);
|
|
15
|
-
this.toggled = this.tableOfContentsInstances.length !== 0;
|
|
16
|
-
this.args.controller.onEvent('modelWritten', () => {
|
|
17
|
-
this.toggled = this.tableOfContentsInstances.length !== 0;
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
get tableOfContentsInstances() {
|
|
21
|
-
return this.args.controller.getComponentInstances({
|
|
22
|
-
componentName: 'table-of-contents-plugin/inline-components/table-of-contents'
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
get tableOfContentsProps() {
|
|
26
|
-
return this.args.widgetArgs.config ? {
|
|
27
|
-
config: this.args.widgetArgs.config
|
|
28
|
-
} : {};
|
|
29
|
-
}
|
|
30
|
-
toggle() {
|
|
31
|
-
if (this.toggled) {
|
|
32
|
-
// Remove instances from table of contents
|
|
33
|
-
this.tableOfContentsInstances.forEach(instance => {
|
|
34
|
-
const model = instance.componentController.model;
|
|
35
|
-
this.args.controller.executeCommand('remove-component', model);
|
|
36
|
-
});
|
|
37
|
-
} else {
|
|
38
|
-
// Add table of contents
|
|
39
|
-
console.log(this.tableOfContentsProps);
|
|
40
|
-
this.args.controller.executeCommand('insert-component', 'table-of-contents-plugin/inline-components/table-of-contents', this.tableOfContentsProps, false, this.args.controller.rangeFactory.fromInElement(this.args.controller.modelRoot, 0, 0));
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}, (_descriptor = _applyDecoratedDescriptor(_class.prototype, "toggled", [tracked], {
|
|
44
|
-
configurable: true,
|
|
45
|
-
enumerable: true,
|
|
46
|
-
writable: true,
|
|
47
|
-
initializer: null
|
|
48
|
-
}), _applyDecoratedDescriptor(_class.prototype, "toggle", [action], Object.getOwnPropertyDescriptor(_class.prototype, "toggle"), _class.prototype)), _class);
|
|
49
|
-
setComponentTemplate(TEMPLATE, TableOfContentsCardComponent);
|
|
50
|
-
|
|
51
|
-
export { TableOfContentsCardComponent as default };
|
|
52
|
-
//# sourceMappingURL=card.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card.js","sources":["../../../src/components/table-of-contents-plugin/card.hbs.js","../../../src/components/table-of-contents-plugin/card.js"],"sourcesContent":["import { hbs } from 'ember-cli-htmlbars';\nexport default hbs(\"<AuCard @flex={{true}} @divided={{true}} @expandable={{false}} @shadow={{true}} @size=\\\"flush\\\" as |c|>\\n <c.content class=\\\"au-c-content--small\\\">\\n <AuToggleSwitch @label={{t \\\"table-of-contents-plugin.toggle\\\" }} @checked={{this.toggled}} @onChange={{this.toggle}} />\\n </c.content>\\n</AuCard>\")","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class TableOfContentsCardComponent extends Component {\n @tracked toggled;\n\n constructor() {\n super(...arguments);\n this.toggled = this.tableOfContentsInstances.length !== 0;\n this.args.controller.onEvent('modelWritten', () => {\n this.toggled = this.tableOfContentsInstances.length !== 0;\n });\n }\n\n get tableOfContentsInstances() {\n return this.args.controller.getComponentInstances({\n componentName:\n 'table-of-contents-plugin/inline-components/table-of-contents',\n });\n }\n\n get tableOfContentsProps() {\n return this.args.widgetArgs.config\n ? { config: this.args.widgetArgs.config }\n : {};\n }\n\n @action\n toggle() {\n if (this.toggled) {\n // Remove instances from table of contents\n this.tableOfContentsInstances.forEach((instance) => {\n const model = instance.componentController.model;\n this.args.controller.executeCommand('remove-component', model);\n });\n } else {\n // Add table of contents\n console.log(this.tableOfContentsProps);\n this.args.controller.executeCommand(\n 'insert-component',\n 'table-of-contents-plugin/inline-components/table-of-contents',\n this.tableOfContentsProps,\n false,\n this.args.controller.rangeFactory.fromInElement(\n this.args.controller.modelRoot,\n 0,\n 0\n )\n );\n }\n }\n}\n"],"names":["hbs","TableOfContentsCardComponent","Component","constructor","arguments","toggled","tableOfContentsInstances","length","args","controller","onEvent","getComponentInstances","componentName","tableOfContentsProps","widgetArgs","config","toggle","forEach","instance","model","componentController","executeCommand","console","log","rangeFactory","fromInElement","modelRoot","tracked","action"],"mappings":";;;;;;;AACA,eAAeA,GAAG,CAAC,+SAA+S,CAAC;;;ACCvR,IAEvBC,4BAA4B,IAAlC,MAAA,GAAA,MAAMA,4BAA4B,SAASC,SAAS,CAAC;AAGlEC,EAAAA,WAAW,GAAG;IACZ,KAAK,CAAC,GAAGC,SAAS,CAAC,CAAA;AAAC,IAAA,0BAAA,CAAA,IAAA,EAAA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,CAACL,IAAI,CAACC,UAAU,CAACe,YAAY,CAACC,aAAa,CAC7C,IAAI,CAACjB,IAAI,CAACC,UAAU,CAACiB,SAAS,EAC9B,CAAC,EACD,CAAC,CACF,CACF,CAAA;AACH,KAAA;AACF,GAAA;AACF,CAAC,yEA/CEC,OAAO,CAAA,EAAA;AAAA,EAAA,YAAA,EAAA,IAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,QAAA,EAAA,IAAA;AAAA,EAAA,WAAA,EAAA,IAAA;AAAA,CAAA,CAAA,EAAA,yBAAA,CAAA,MAAA,CAAA,SAAA,EAAA,QAAA,EAAA,CAuBPC,MAAM,CAAA,EAAA,MAAA,CAAA,wBAAA,CAAA,MAAA,CAAA,SAAA,EAAA,QAAA,CAAA,EAAA,MAAA,CAAA,SAAA,CAAA,GAAA,MAAA,EAAA;AAxBwC,oBAAA,CAAA,QAAA,EAAA,4BAAA,CAAA;;;;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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("<AuList @divider={{true}} class=\'table-of-contents\'>\n {{#each @entries as |outlineEntry|}}\n <AuList::Item>\n <AuButton\n @wrap={{true}}\n {{! template-lint-disable no-capital-arguments }}\n @block={{true}}\n @skin=\'link-secondary\'\n onclick={{fn @onEntryClick outlineEntry.node}}\n >\n {{outlineEntry.content}}\n </AuButton>\n {{#if outlineEntry.children}}\n <TableOfContentsPlugin::InlineComponents::Outline\n @entries={{outlineEntry.children}}\n @onEntryClick={{@onEntryClick}}\n />\n {{/if}}\n </AuList::Item>\n {{/each}}\n</AuList>\n");
|
|
6
|
-
|
|
7
|
-
var outline = setComponentTemplate(TEMPLATE, templateOnly());
|
|
8
|
-
|
|
9
|
-
export { outline as default };
|
|
10
|
-
//# sourceMappingURL=outline.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"outline.js","sources":["../../../../src/components/table-of-contents-plugin/inline-components/outline.hbs.js","../../../../src/components/table-of-contents-plugin/inline-components/outline.js"],"sourcesContent":["import { hbs } from 'ember-cli-htmlbars';\nexport default hbs(\"<AuList @divider={{true}} class=\\'table-of-contents\\'>\\n {{#each @entries as |outlineEntry|}}\\n <AuList::Item>\\n <AuButton\\n @wrap={{true}}\\n {{! template-lint-disable no-capital-arguments }}\\n @block={{true}}\\n @skin=\\'link-secondary\\'\\n onclick={{fn @onEntryClick outlineEntry.node}}\\n >\\n {{outlineEntry.content}}\\n </AuButton>\\n {{#if outlineEntry.children}}\\n <TableOfContentsPlugin::InlineComponents::Outline\\n @entries={{outlineEntry.children}}\\n @onEntryClick={{@onEntryClick}}\\n />\\n {{/if}}\\n </AuList::Item>\\n {{/each}}\\n</AuList>\\n\")","import templateOnly from '@ember/component/template-only';\nexport default templateOnly();\n"],"names":["hbs","templateOnly"],"mappings":";;;;AACA,eAAeA,GAAG,CAAC,4oBAA4oB,CAAC;;ACAhqB,cAAA,oBAAA,CAAA,QAAA,EAAeC,YAAY,EAAE,CAAA;;;;"}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { _ as _applyDecoratedDescriptor, a as _initializerDefineProperty } from '../../../_rollupPluginBabelHelpers-537ad14b.js';
|
|
2
|
-
import { setComponentTemplate } from '@ember/component';
|
|
3
|
-
import { hbs } from 'ember-cli-htmlbars';
|
|
4
|
-
import ModelNode from '@lblod/ember-rdfa-editor/model/model-node';
|
|
5
|
-
import { tracked } from '@glimmer/tracking';
|
|
6
|
-
import ModelNodeUtils from '@lblod/ember-rdfa-editor/model/util/model-node-utils';
|
|
7
|
-
import { action } from '@ember/object';
|
|
8
|
-
import Component from '@glimmer/component';
|
|
9
|
-
import dataFactory from '@rdfjs/data-model';
|
|
10
|
-
import { T as TABLE_OF_CONTENTS_DEFAULT_CONFIG } from '../../../constants-c77fd478.js';
|
|
11
|
-
|
|
12
|
-
var TEMPLATE = hbs("<div class=\'au-u-background-gray-100 au-u-padding-tiny table-of-contents\'>\n <h3>{{t \"table-of-contents-plugin.title\"}}</h3>\n {{#if this.documentOutline}}\n <TableOfContentsPlugin::InlineComponents::Outline\n @entries={{this.documentOutline.entries}}\n @onEntryClick={{this.moveToSection}}\n />\n {{/if}}\n</div>\n");
|
|
13
|
-
|
|
14
|
-
var _class, _descriptor;
|
|
15
|
-
let TableOfContentsComponent = (_class = class TableOfContentsComponent extends Component {
|
|
16
|
-
constructor(owner, args) {
|
|
17
|
-
super(owner, args);
|
|
18
|
-
_initializerDefineProperty(this, "documentOutline", _descriptor, this);
|
|
19
|
-
this.update();
|
|
20
|
-
this.args.editorController.onEvent('contentChanged', this.update.bind(this));
|
|
21
|
-
this.args.editorController.onEvent('modelRead', this.update.bind(this));
|
|
22
|
-
}
|
|
23
|
-
get config() {
|
|
24
|
-
return this.args.componentController.getProperty('config') ?? TABLE_OF_CONTENTS_DEFAULT_CONFIG;
|
|
25
|
-
}
|
|
26
|
-
willDestroy() {
|
|
27
|
-
this.args.editorController.offEvent('contentChanged', this.update.bind(this));
|
|
28
|
-
this.args.editorController.offEvent('modelRead', this.update.bind(this));
|
|
29
|
-
super.willDestroy();
|
|
30
|
-
}
|
|
31
|
-
update() {
|
|
32
|
-
const outline = {
|
|
33
|
-
entries: this.extractOutline(this.args.editorController.modelRoot)
|
|
34
|
-
};
|
|
35
|
-
this.documentOutline = outline;
|
|
36
|
-
}
|
|
37
|
-
extractOutline(node) {
|
|
38
|
-
let result = [];
|
|
39
|
-
if (ModelNode.isModelElement(node)) {
|
|
40
|
-
let parent;
|
|
41
|
-
const attributes = node.getRdfaAttributes();
|
|
42
|
-
if (attributes.properties) {
|
|
43
|
-
for (const tocConfigEntry of this.config) {
|
|
44
|
-
if (attributes.properties.includes(tocConfigEntry.sectionPredicate)) {
|
|
45
|
-
if (typeof tocConfigEntry.value === 'string') {
|
|
46
|
-
parent = {
|
|
47
|
-
content: tocConfigEntry.value,
|
|
48
|
-
node
|
|
49
|
-
};
|
|
50
|
-
break;
|
|
51
|
-
} else {
|
|
52
|
-
const nodes = [...this.args.editorController.datastore.match(`>${attributes.resource}`, dataFactory.namedNode(tocConfigEntry.value.predicate)).asObjectNodeMapping().nodes()];
|
|
53
|
-
if (nodes.length) {
|
|
54
|
-
parent = {
|
|
55
|
-
content: ModelNodeUtils.getTextContent(nodes[0]),
|
|
56
|
-
node
|
|
57
|
-
};
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
const subResults = [];
|
|
65
|
-
node.children.forEach(child => {
|
|
66
|
-
subResults.push(...this.extractOutline(child));
|
|
67
|
-
});
|
|
68
|
-
if (parent) {
|
|
69
|
-
parent.children = subResults;
|
|
70
|
-
result = [parent];
|
|
71
|
-
} else {
|
|
72
|
-
result = subResults;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return result;
|
|
76
|
-
}
|
|
77
|
-
moveToSection(node) {
|
|
78
|
-
console.log('moveToSection');
|
|
79
|
-
const range = this.args.editorController.rangeFactory.fromInNode(node, 0);
|
|
80
|
-
this.args.editorController.selection.selectRange(range);
|
|
81
|
-
this.args.editorController.write(true, true);
|
|
82
|
-
}
|
|
83
|
-
}, (_descriptor = _applyDecoratedDescriptor(_class.prototype, "documentOutline", [tracked], {
|
|
84
|
-
configurable: true,
|
|
85
|
-
enumerable: true,
|
|
86
|
-
writable: true,
|
|
87
|
-
initializer: null
|
|
88
|
-
}), _applyDecoratedDescriptor(_class.prototype, "moveToSection", [action], Object.getOwnPropertyDescriptor(_class.prototype, "moveToSection"), _class.prototype)), _class);
|
|
89
|
-
setComponentTemplate(TEMPLATE, TableOfContentsComponent);
|
|
90
|
-
|
|
91
|
-
export { TableOfContentsComponent as default };
|
|
92
|
-
//# sourceMappingURL=table-of-contents.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table-of-contents.js","sources":["../../../../src/components/table-of-contents-plugin/inline-components/table-of-contents.hbs.js","../../../../src/components/table-of-contents-plugin/inline-components/table-of-contents.js"],"sourcesContent":["import { hbs } from 'ember-cli-htmlbars';\nexport default hbs(\"<div class=\\'au-u-background-gray-100 au-u-padding-tiny table-of-contents\\'>\\n <h3>{{t \\\"table-of-contents-plugin.title\\\"}}</h3>\\n {{#if this.documentOutline}}\\n <TableOfContentsPlugin::InlineComponents::Outline\\n @entries={{this.documentOutline.entries}}\\n @onEntryClick={{this.moveToSection}}\\n />\\n {{/if}}\\n</div>\\n\")","import ModelNode from '@lblod/ember-rdfa-editor/model/model-node';\nimport { tracked } from '@glimmer/tracking';\nimport ModelNodeUtils from '@lblod/ember-rdfa-editor/model/util/model-node-utils';\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport dataFactory from '@rdfjs/data-model';\nimport { TABLE_OF_CONTENTS_DEFAULT_CONFIG } from '../../../constants';\nexport default class TableOfContentsComponent extends Component {\n @tracked\n documentOutline;\n\n constructor(owner, args) {\n super(owner, args);\n this.update();\n\n this.args.editorController.onEvent(\n 'contentChanged',\n this.update.bind(this)\n );\n this.args.editorController.onEvent('modelRead', this.update.bind(this));\n }\n\n get config() {\n return (\n this.args.componentController.getProperty('config') ??\n TABLE_OF_CONTENTS_DEFAULT_CONFIG\n );\n }\n\n willDestroy() {\n this.args.editorController.offEvent(\n 'contentChanged',\n this.update.bind(this)\n );\n this.args.editorController.offEvent('modelRead', this.update.bind(this));\n super.willDestroy();\n }\n\n update() {\n const outline = {\n entries: this.extractOutline(this.args.editorController.modelRoot),\n };\n this.documentOutline = outline;\n }\n\n extractOutline(node) {\n let result = [];\n\n if (ModelNode.isModelElement(node)) {\n let parent;\n const attributes = node.getRdfaAttributes();\n if (attributes.properties) {\n for (const tocConfigEntry of this.config) {\n if (attributes.properties.includes(tocConfigEntry.sectionPredicate)) {\n if (typeof tocConfigEntry.value === 'string') {\n parent = { content: tocConfigEntry.value, node };\n break;\n } else {\n const nodes = [\n ...this.args.editorController.datastore\n .match(\n `>${attributes.resource}`,\n dataFactory.namedNode(tocConfigEntry.value.predicate)\n )\n .asObjectNodeMapping()\n .nodes(),\n ];\n if (nodes.length) {\n parent = {\n content: ModelNodeUtils.getTextContent(nodes[0]),\n node,\n };\n break;\n }\n }\n }\n }\n }\n const subResults = [];\n node.children.forEach((child) => {\n subResults.push(...this.extractOutline(child));\n });\n if (parent) {\n parent.children = subResults;\n result = [parent];\n } else {\n result = subResults;\n }\n }\n return result;\n }\n\n @action\n moveToSection(node) {\n console.log('moveToSection');\n const range = this.args.editorController.rangeFactory.fromInNode(node, 0);\n this.args.editorController.selection.selectRange(range);\n this.args.editorController.write(true, true);\n }\n}\n"],"names":["hbs","TableOfContentsComponent","Component","constructor","owner","args","update","editorController","onEvent","bind","config","componentController","getProperty","TABLE_OF_CONTENTS_DEFAULT_CONFIG","willDestroy","offEvent","outline","entries","extractOutline","modelRoot","documentOutline","node","result","ModelNode","isModelElement","parent","attributes","getRdfaAttributes","properties","tocConfigEntry","includes","sectionPredicate","value","content","nodes","datastore","match","resource","dataFactory","namedNode","predicate","asObjectNodeMapping","length","ModelNodeUtils","getTextContent","subResults","children","forEach","child","push","moveToSection","console","log","range","rangeFactory","fromInNode","selection","selectRange","write","tracked","action"],"mappings":";;;;;;;;;;;AACA,eAAeA,GAAG,CAAC,oVAAoV,CAAC;;;ACKlS,IACjDC,wBAAwB,IAA9B,MAAA,GAAA,MAAMA,wBAAwB,SAASC,SAAS,CAAC;AAI9DC,EAAAA,WAAW,CAACC,KAAK,EAAEC,IAAI,EAAE;AACvB,IAAA,KAAK,CAACD,KAAK,EAAEC,IAAI,CAAC,CAAA;AAAC,IAAA,0BAAA,CAAA,IAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,IAAA,CAAA,CAAA;IACnB,IAAI,CAACC,MAAM,EAAE,CAAA;AAEb,IAAA,IAAI,CAACD,IAAI,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;AACLH,QAAAA,MAAM,GAAGuB,UAAU,CAAA;AACrB,OAAA;AACF,KAAA;AACA,IAAA,OAAOvB,MAAM,CAAA;AACf,GAAA;EAGA4B,aAAa,CAAC7B,IAAI,EAAE;AAClB8B,IAAAA,OAAO,CAACC,GAAG,CAAC,eAAe,CAAC,CAAA;AAC5B,IAAA,MAAMC,KAAK,GAAG,IAAI,CAAChD,IAAI,CAACE,gBAAgB,CAAC+C,YAAY,CAACC,UAAU,CAAClC,IAAI,EAAE,CAAC,CAAC,CAAA;IACzE,IAAI,CAAChB,IAAI,CAACE,gBAAgB,CAACiD,SAAS,CAACC,WAAW,CAACJ,KAAK,CAAC,CAAA;IACvD,IAAI,CAAChD,IAAI,CAACE,gBAAgB,CAACmD,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;AAC9C,GAAA;AACF,CAAC,iFA3FEC,OAAO,CAAA,EAAA;AAAA,EAAA,YAAA,EAAA,IAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,QAAA,EAAA,IAAA;AAAA,EAAA,WAAA,EAAA,IAAA;AAAA,CAAA,CAAA,EAAA,yBAAA,CAAA,MAAA,CAAA,SAAA,EAAA,eAAA,EAAA,CAoFPC,MAAM,CAAA,EAAA,MAAA,CAAA,wBAAA,CAAA,MAAA,CAAA,SAAA,EAAA,eAAA,CAAA,EAAA,MAAA,CAAA,SAAA,CAAA,GAAA,MAAA,EAAA;AArFoC,oBAAA,CAAA,QAAA,EAAA,wBAAA,CAAA;;;;"}
|
|
@@ -1,178 +0,0 @@
|
|
|
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 { getOwner } from '@ember/application';
|
|
8
|
-
import { task } from 'ember-concurrency';
|
|
9
|
-
import { a as fetchCodeListOptions } from '../../fetch-data-284bf106.js';
|
|
10
|
-
import { Z as ZONAL_URI, M as MULTI_SELECT_CODELIST_TYPE } from '../../constants-c77fd478.js';
|
|
11
|
-
|
|
12
|
-
var TEMPLATE = hbs("{{#if this.showCard}}\n <AuCard @flex={{true}} @divided={{true}} @isOpenInitially={{true}} @expandable={{true}} @shadow={{true}} @size=\"small\" as |c|>\n <c.header>\n <AuHeading @level=\"3\" @skin=\"6\">\n Maatregel parameters\n </AuHeading>\n </c.header>\n <c.content>\n {{#if this.multiSelect}}\n <PowerSelectMultiple\n @allowClear={{false}}\n @searchEnabled={{false}}\n @options={{this.variableOptions}}\n @selected={{this.selectedVariable}}\n @onChange={{this.updateVariable}} as |variable|\n >\n {{variable.label}}\n </PowerSelectMultiple>\n {{else}}\n <PowerSelect\n @allowClear={{false}}\n @searchEnabled={{false}}\n @options={{this.variableOptions}}\n @selected={{this.selectedVariable}}\n @onChange={{this.updateVariable}} as |variable|\n >\n {{variable.label}}\n </PowerSelect>\n {{/if}}\n <AuButton {{on \'click\' this.insert}} @disabled={{not this.selectedVariable}}>Voeg in</AuButton>\n </c.content>\n </AuCard>\n{{/if}}\n\n");
|
|
13
|
-
|
|
14
|
-
var _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;
|
|
15
|
-
let EditorPluginsTemplateVariableCardComponent = (_class = class EditorPluginsTemplateVariableCardComponent extends Component {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
_initializerDefineProperty(this, "variableOptions", _descriptor, this);
|
|
19
|
-
_initializerDefineProperty(this, "selectedVariable", _descriptor2, this);
|
|
20
|
-
_initializerDefineProperty(this, "showCard", _descriptor3, this);
|
|
21
|
-
_initializerDefineProperty(this, "multiSelect", _descriptor4, this);
|
|
22
|
-
_defineProperty(this, "mappingUri", void 0);
|
|
23
|
-
const config = getOwner(this).resolveRegistration('config:environment');
|
|
24
|
-
this.zonalLocationCodelistUri = config.templateVariablePlugin.zonalLocationCodelistUri;
|
|
25
|
-
this.endpoint = config.templateVariablePlugin.endpoint;
|
|
26
|
-
this.nonZonalLocationCodelistUri = config.templateVariablePlugin.nonZonalLocationCodelistUri;
|
|
27
|
-
this.args.controller.onEvent('selectionChanged', this.selectionChanged);
|
|
28
|
-
this.liveHighlights = this.args.controller.createLiveMarkSet({
|
|
29
|
-
datastoreQuery: datastore => {
|
|
30
|
-
const limitedDataset = datastore.transformDataset((dataset, termconverter) => {
|
|
31
|
-
const mappings = dataset.match(null, termconverter('a'), termconverter('ext:Mapping'));
|
|
32
|
-
const locations = dataset.match(null, termconverter('>http://purl.org/dc/terms/type'), termconverter('@en-US"location'));
|
|
33
|
-
const codelists = dataset.match(null, termconverter('>http://purl.org/dc/terms/type'), termconverter('@en-US"codelist'));
|
|
34
|
-
const supportedMappings = locations.union(codelists);
|
|
35
|
-
return mappings.filter(quad => supportedMappings.match(quad.subject).size !== 0);
|
|
36
|
-
});
|
|
37
|
-
const matches = limitedDataset.searchTextIn('subject', new RegExp('.*'));
|
|
38
|
-
return matches;
|
|
39
|
-
},
|
|
40
|
-
liveMarkSpecs: ['highlighted']
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
insert() {
|
|
44
|
-
const selectedRange = this.args.controller.selection.lastRange;
|
|
45
|
-
if (!selectedRange) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
const limitedDatastore = this.args.controller.datastore.limitToRange(selectedRange, 'rangeIsInside');
|
|
49
|
-
const mapping = limitedDatastore.match(`>${this.mappingUri}`, 'ext:content', null).asSubjectNodes().next().value;
|
|
50
|
-
const mappingNode = [...mapping.nodes][0];
|
|
51
|
-
let mappingContentNode;
|
|
52
|
-
for (let child of mappingNode.children) {
|
|
53
|
-
if (child.attributeMap.get('property') === 'ext:content') {
|
|
54
|
-
mappingContentNode = child;
|
|
55
|
-
break;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
let textToInsert = '';
|
|
59
|
-
if (this.selectedVariable.length) {
|
|
60
|
-
textToInsert = this.selectedVariable.map(variable => variable.value).join(', ');
|
|
61
|
-
} else {
|
|
62
|
-
textToInsert = this.selectedVariable.value;
|
|
63
|
-
}
|
|
64
|
-
textToInsert = this.wrapVariableInHighlight(textToInsert);
|
|
65
|
-
this.args.controller.executeCommand('insert-and-collapse', this.args.controller, textToInsert, mappingContentNode);
|
|
66
|
-
}
|
|
67
|
-
wrapVariableInHighlight(text) {
|
|
68
|
-
return text.replace(/\$\{(.+?)\}/g, '<span class="mark-highlight-manual">${$1}</span>');
|
|
69
|
-
}
|
|
70
|
-
selectionChanged() {
|
|
71
|
-
this.showCard = false;
|
|
72
|
-
this.selectedVariable = undefined;
|
|
73
|
-
const selectedRange = this.args.controller.selection.lastRange;
|
|
74
|
-
if (!selectedRange) {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
const fullDatastore = this.args.controller.datastore;
|
|
78
|
-
const limitedDatastore = this.args.controller.datastore.limitToRange(selectedRange, 'rangeIsInside');
|
|
79
|
-
const mapping = limitedDatastore.match(null, 'a', 'ext:Mapping').asQuads().next().value;
|
|
80
|
-
console.log('MAPPING: ', mapping);
|
|
81
|
-
if (mapping) {
|
|
82
|
-
const mappingUri = mapping.subject.value;
|
|
83
|
-
this.mappingUri = mappingUri;
|
|
84
|
-
const mappingTypeTriple = fullDatastore.match(`>${mappingUri}`, 'dct:type', null).asQuads().next().value;
|
|
85
|
-
console.log('TRIPLE: ', mappingTypeTriple);
|
|
86
|
-
if (mappingTypeTriple) {
|
|
87
|
-
const mappingType = mappingTypeTriple.object.value;
|
|
88
|
-
if (mappingType === 'codelist') {
|
|
89
|
-
const codelistTriple = fullDatastore.match(`>${mappingUri}`, 'ext:codelist', null).asQuads().next().value;
|
|
90
|
-
const codelistSource = this.getCodelistSource(fullDatastore, mappingUri);
|
|
91
|
-
this.showCard = true;
|
|
92
|
-
const codelistUri = codelistTriple.object.value;
|
|
93
|
-
this.fetchCodeListOptions.perform(codelistSource, codelistUri);
|
|
94
|
-
} else if (mappingType === 'location') {
|
|
95
|
-
const codelistSource = this.getCodelistSource(fullDatastore, mappingUri);
|
|
96
|
-
const measureTriple = limitedDatastore.match(null, 'a', '>https://data.vlaanderen.be/ns/mobiliteit#Mobiliteitsmaatregel').asQuads().next().value;
|
|
97
|
-
const measureUri = measureTriple.subject.value;
|
|
98
|
-
const zonalityTriple = fullDatastore.match(`>${measureUri}`, 'ext:zonality', null).asQuads().next().value;
|
|
99
|
-
const zonalityUri = zonalityTriple.object.value;
|
|
100
|
-
if (zonalityUri === ZONAL_URI) {
|
|
101
|
-
this.fetchCodeListOptions.perform(codelistSource, this.zonalLocationCodelistUri, true);
|
|
102
|
-
} else {
|
|
103
|
-
this.fetchCodeListOptions.perform(codelistSource, this.nonZonalLocationCodelistUri, true);
|
|
104
|
-
}
|
|
105
|
-
this.showCard = true;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
getCodelistSource(fullDatastore, mappingUri) {
|
|
111
|
-
const codelistSourceTriple = fullDatastore.match(`>${mappingUri}`, 'dct:source', null).asQuads().next();
|
|
112
|
-
if (codelistSourceTriple && codelistSourceTriple.value) {
|
|
113
|
-
const codelistSourceTripleValue = codelistSourceTriple.value;
|
|
114
|
-
return codelistSourceTripleValue.object.value;
|
|
115
|
-
} else {
|
|
116
|
-
return this.endpoint;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
updateVariable(variable) {
|
|
120
|
-
this.selectedVariable = variable;
|
|
121
|
-
}
|
|
122
|
-
*fetchCodeListOptions(endpoint, codelistUri, isLocation) {
|
|
123
|
-
const {
|
|
124
|
-
type,
|
|
125
|
-
options
|
|
126
|
-
} = yield fetchCodeListOptions(endpoint, codelistUri);
|
|
127
|
-
if (isLocation) {
|
|
128
|
-
this.variableOptions = options.map(option => ({
|
|
129
|
-
label: option.label,
|
|
130
|
-
value: this.wrapInLocation(option.value)
|
|
131
|
-
}));
|
|
132
|
-
} else {
|
|
133
|
-
this.variableOptions = options;
|
|
134
|
-
}
|
|
135
|
-
if (type === MULTI_SELECT_CODELIST_TYPE) {
|
|
136
|
-
this.multiSelect = true;
|
|
137
|
-
} else {
|
|
138
|
-
this.multiSelect = false;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
wrapInLocation(value) {
|
|
142
|
-
return `
|
|
143
|
-
<span property="https://data.vlaanderen.be/ns/mobiliteit#plaatsbepaling">
|
|
144
|
-
${value}
|
|
145
|
-
</span>
|
|
146
|
-
`;
|
|
147
|
-
}
|
|
148
|
-
}, (_descriptor = _applyDecoratedDescriptor(_class.prototype, "variableOptions", [tracked], {
|
|
149
|
-
configurable: true,
|
|
150
|
-
enumerable: true,
|
|
151
|
-
writable: true,
|
|
152
|
-
initializer: function () {
|
|
153
|
-
return [];
|
|
154
|
-
}
|
|
155
|
-
}), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, "selectedVariable", [tracked], {
|
|
156
|
-
configurable: true,
|
|
157
|
-
enumerable: true,
|
|
158
|
-
writable: true,
|
|
159
|
-
initializer: null
|
|
160
|
-
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, "showCard", [tracked], {
|
|
161
|
-
configurable: true,
|
|
162
|
-
enumerable: true,
|
|
163
|
-
writable: true,
|
|
164
|
-
initializer: function () {
|
|
165
|
-
return false;
|
|
166
|
-
}
|
|
167
|
-
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, "multiSelect", [tracked], {
|
|
168
|
-
configurable: true,
|
|
169
|
-
enumerable: true,
|
|
170
|
-
writable: true,
|
|
171
|
-
initializer: function () {
|
|
172
|
-
return false;
|
|
173
|
-
}
|
|
174
|
-
}), _applyDecoratedDescriptor(_class.prototype, "insert", [action], Object.getOwnPropertyDescriptor(_class.prototype, "insert"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "selectionChanged", [action], Object.getOwnPropertyDescriptor(_class.prototype, "selectionChanged"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "updateVariable", [action], Object.getOwnPropertyDescriptor(_class.prototype, "updateVariable"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, "fetchCodeListOptions", [task], Object.getOwnPropertyDescriptor(_class.prototype, "fetchCodeListOptions"), _class.prototype)), _class);
|
|
175
|
-
setComponentTemplate(TEMPLATE, EditorPluginsTemplateVariableCardComponent);
|
|
176
|
-
|
|
177
|
-
export { EditorPluginsTemplateVariableCardComponent as default };
|
|
178
|
-
//# sourceMappingURL=template-variable-card.js.map
|