@startinblox/core 0.17.31 → 0.18.0-beta.1
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/dist/_snowpack/pkg/autolinker.js +3515 -3367
- package/dist/_snowpack/pkg/autolinker.js.map +1 -1
- package/dist/_snowpack/pkg/common/{_baseUnary-217dffb2.js → _baseUnary-c1edb653.js} +16 -40
- package/dist/_snowpack/pkg/common/{_baseUnary-217dffb2.js.map → _baseUnary-c1edb653.js.map} +1 -1
- package/dist/_snowpack/pkg/common/{_commonjsHelpers-8c19dec8.js → _commonjsHelpers-37fa8da4.js} +6 -2
- package/dist/_snowpack/pkg/common/_commonjsHelpers-37fa8da4.js.map +1 -0
- package/dist/_snowpack/pkg/common/{decode-a4c334cf.js → decode-26fbf385.js} +38 -69
- package/dist/_snowpack/pkg/common/decode-26fbf385.js.map +1 -0
- package/dist/_snowpack/pkg/common/lit-html-3647afce.js +1104 -0
- package/dist/_snowpack/pkg/common/lit-html-3647afce.js.map +1 -0
- package/dist/_snowpack/pkg/delta-markdown-for-quill.js +4767 -4246
- package/dist/_snowpack/pkg/delta-markdown-for-quill.js.map +1 -1
- package/dist/_snowpack/pkg/dialog-polyfill.js +107 -139
- package/dist/_snowpack/pkg/dialog-polyfill.js.map +1 -1
- package/dist/_snowpack/pkg/fusejs.js +411 -601
- package/dist/_snowpack/pkg/fusejs.js.map +1 -1
- package/dist/_snowpack/pkg/jsonld-context-parser.js +718 -686
- package/dist/_snowpack/pkg/jsonld-context-parser.js.map +1 -1
- package/dist/_snowpack/pkg/leaflet.markercluster/dist/MarkerCluster.Default.css +59 -59
- package/dist/_snowpack/pkg/leaflet.markercluster/dist/MarkerCluster.Default.css.proxy.js +1 -1
- package/dist/_snowpack/pkg/leaflet.markercluster/dist/MarkerCluster.css +14 -14
- package/dist/_snowpack/pkg/leaflet.markercluster/dist/MarkerCluster.css.proxy.js +1 -1
- package/dist/_snowpack/pkg/lit-html/directives/if-defined.js +13 -14
- package/dist/_snowpack/pkg/lit-html/directives/if-defined.js.map +1 -1
- package/dist/_snowpack/pkg/lit-html/directives/unsafe-html.js +17 -15
- package/dist/_snowpack/pkg/lit-html/directives/unsafe-html.js.map +1 -1
- package/dist/_snowpack/pkg/lit-html/directives/until.js +45 -46
- package/dist/_snowpack/pkg/lit-html/directives/until.js.map +1 -1
- package/dist/_snowpack/pkg/lit-html.js +37 -35
- package/dist/_snowpack/pkg/lit-html.js.map +1 -1
- package/dist/_snowpack/pkg/markdown-it-link-attributes.js +1 -20
- package/dist/_snowpack/pkg/markdown-it-link-attributes.js.map +1 -1
- package/dist/_snowpack/pkg/markdown-it.js +1731 -2284
- package/dist/_snowpack/pkg/markdown-it.js.map +1 -1
- package/dist/_snowpack/pkg/quill-delta-to-markdown.js +236 -294
- package/dist/_snowpack/pkg/quill-delta-to-markdown.js.map +1 -1
- package/dist/_snowpack/pkg/quill.js +12077 -11017
- package/dist/_snowpack/pkg/quill.js.map +1 -1
- package/dist/_snowpack/pkg/slim-select.js +711 -1
- package/dist/_snowpack/pkg/slim-select.js.map +1 -1
- package/dist/_snowpack/pkg/tui-calendar/dist/tui-calendar.css +1 -16
- package/dist/_snowpack/pkg/tui-calendar/dist/tui-calendar.css.proxy.js +1 -1
- package/dist/_snowpack/pkg/tui-calendar.js +44297 -40075
- package/dist/_snowpack/pkg/tui-calendar.js.map +1 -1
- package/dist/components/solid-ac-checker.js +4 -17
- package/dist/components/solid-calendar.js +5 -26
- package/dist/components/solid-delete.js +9 -24
- package/dist/components/solid-display.js +15 -59
- package/dist/components/solid-form-search.js +27 -79
- package/dist/components/solid-form.js +48 -143
- package/dist/components/solid-lang.js +8 -19
- package/dist/components/solid-map.js +26 -64
- package/dist/components/solid-table.js +51 -133
- package/dist/components/solid-widget.js +2 -24
- package/dist/index.js +17 -11
- package/dist/libs/Component.js +4 -10
- package/dist/libs/ComponentFactory.js +6 -34
- package/dist/libs/Compositor.js +8 -15
- package/dist/libs/Sib.js +7 -21
- package/dist/libs/filter.js +184 -0
- package/dist/libs/helpers.js +19 -47
- package/dist/libs/interfaces.js +1 -1
- package/dist/libs/lit-helpers.js +7 -34
- package/dist/libs/polyfills.js +7 -10
- package/dist/libs/store/server-pagination.js +22 -0
- package/dist/libs/store/server-search.js +35 -0
- package/dist/libs/store/store.js +212 -227
- package/dist/mixins/attributeBinderMixin.js +17 -25
- package/dist/mixins/contextMixin.js +5 -7
- package/dist/mixins/counterMixin.js +2 -23
- package/dist/mixins/federationMixin.js +2 -14
- package/dist/mixins/filterMixin.js +60 -100
- package/dist/mixins/grouperMixin.js +11 -18
- package/dist/mixins/highlighterMixin.js +2 -8
- package/dist/mixins/interfaces.js +3 -5
- package/dist/mixins/listMixin.js +12 -43
- package/dist/mixins/nextMixin.js +1 -4
- package/dist/mixins/paginateMixin.js +17 -30
- package/dist/mixins/requiredMixin.js +1 -9
- package/dist/mixins/serverPaginationMixin.js +122 -0
- package/dist/mixins/sorterMixin.js +26 -44
- package/dist/mixins/storeMixin.js +28 -21
- package/dist/mixins/translationMixin.js +2 -12
- package/dist/mixins/validationMixin.js +28 -46
- package/dist/mixins/widgetMixin.js +58 -154
- package/dist/new-widgets/attributeMixins/actionMixin.js +1 -2
- package/dist/new-widgets/attributeMixins/blankMixin.js +1 -4
- package/dist/new-widgets/attributeMixins/booleanMixin.js +1 -4
- package/dist/new-widgets/attributeMixins/index.js +1 -2
- package/dist/new-widgets/attributeMixins/mailtoMixin.js +1 -4
- package/dist/new-widgets/attributeMixins/multipleMixin.js +1 -2
- package/dist/new-widgets/attributeMixins/numberMixin.js +1 -4
- package/dist/new-widgets/attributeMixins/placeholderMixin.js +1 -4
- package/dist/new-widgets/attributeMixins/telMixin.js +1 -4
- package/dist/new-widgets/baseWidgetMixin.js +5 -18
- package/dist/new-widgets/callbackMixins/autocompletionMixin.js +3 -11
- package/dist/new-widgets/callbackMixins/index.js +1 -2
- package/dist/new-widgets/callbackMixins/richtextMixin.js +1 -6
- package/dist/new-widgets/interfaces.js +1 -0
- package/dist/new-widgets/new-widget-factory.js +14 -19
- package/dist/new-widgets/templateAdditionMixins/addableMixin.js +6 -21
- package/dist/new-widgets/templateAdditionMixins/index.js +2 -3
- package/dist/new-widgets/templateAdditionMixins/labelLastMixin.js +5 -18
- package/dist/new-widgets/templateAdditionMixins/labelMixin.js +5 -18
- package/dist/new-widgets/templates/defaultTemplatesDirectory.js +21 -27
- package/dist/new-widgets/templates/displayTemplatesDirectory.js +35 -70
- package/dist/new-widgets/templates/formTemplatesDirectory.js +350 -315
- package/dist/new-widgets/templates/groupTemplatesDirectory.js +5 -15
- package/dist/new-widgets/templates/index.js +1 -2
- package/dist/new-widgets/templates/setTemplatesDirectory.js +4 -37
- package/dist/new-widgets/templatesDependencies/altMixin.js +1 -2
- package/dist/new-widgets/templatesDependencies/editableMixin.js +9 -26
- package/dist/new-widgets/templatesDependencies/filterRangeFormMixin.js +3 -7
- package/dist/new-widgets/templatesDependencies/formCheckboxMixin.js +1 -5
- package/dist/new-widgets/templatesDependencies/formCheckboxesMixin.js +1 -11
- package/dist/new-widgets/templatesDependencies/formDropdownMixin.js +3 -13
- package/dist/new-widgets/templatesDependencies/formFileMixin.js +1 -13
- package/dist/new-widgets/templatesDependencies/formLengthMixin.js +1 -2
- package/dist/new-widgets/templatesDependencies/formMinMaxMixin.js +1 -2
- package/dist/new-widgets/templatesDependencies/formMixin.js +4 -14
- package/dist/new-widgets/templatesDependencies/formNumberMixin.js +1 -5
- package/dist/new-widgets/templatesDependencies/formRadioMixin.js +1 -5
- package/dist/new-widgets/templatesDependencies/formStepMixin.js +1 -2
- package/dist/new-widgets/templatesDependencies/linkTextMixin.js +13 -0
- package/dist/new-widgets/templatesDependencies/multipleFormMixin.js +23 -18
- package/dist/new-widgets/templatesDependencies/multipleselectFormMixin.js +1 -10
- package/dist/new-widgets/templatesDependencies/patternMixin.js +1 -2
- package/dist/new-widgets/templatesDependencies/rangeMixin.js +5 -15
- package/dist/new-widgets/templatesDependencies/setMixin.js +1 -4
- package/dist/new-widgets/templatesDependencies/valueRichtextMixin.js +1 -4
- package/dist/new-widgets/valueTransformationMixins/autolinkMixin.js +1 -5
- package/dist/new-widgets/valueTransformationMixins/dateMixin.js +5 -11
- package/dist/new-widgets/valueTransformationMixins/dateTimeMixin.js +1 -5
- package/dist/new-widgets/valueTransformationMixins/index.js +1 -2
- package/dist/new-widgets/valueTransformationMixins/markdownMixin.js +1 -7
- package/dist/new-widgets/valueTransformationMixins/multilineMixin.js +1 -5
- package/dist/new-widgets/valueTransformationMixins/oembedMixin.js +1 -7
- package/dist/solid-template-element.js +24 -44
- package/dist/widgets/baseWidget.js +21 -85
- package/dist/widgets/widget-factory.js +4 -6
- package/package.json +8 -6
- package/dist/_snowpack/env.js +0 -3
- package/dist/_snowpack/pkg/autolinker.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/common/_baseUnary-217dffb2.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/common/_commonjsHelpers-8c19dec8.js.map +0 -1
- package/dist/_snowpack/pkg/common/_commonjsHelpers-8c19dec8.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/common/decode-a4c334cf.js.map +0 -1
- package/dist/_snowpack/pkg/common/decode-a4c334cf.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/common/lit-html-babd44cd.js +0 -1119
- package/dist/_snowpack/pkg/common/lit-html-babd44cd.js.map +0 -1
- package/dist/_snowpack/pkg/common/lit-html-babd44cd.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/delta-markdown-for-quill.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/dialog-polyfill.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/fusejs.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/jsonld-context-parser.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/lit-html/directives/if-defined.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/lit-html/directives/unsafe-html.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/lit-html/directives/until.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/lit-html.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/markdown-it-link-attributes.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/markdown-it.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/quill-delta-to-markdown.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/quill.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/slim-select.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/tui-calendar.js.map.proxy.js +0 -1
- package/dist/components/solid-ac-checker.js.map +0 -1
- package/dist/components/solid-calendar.js.map +0 -1
- package/dist/components/solid-delete.js.map +0 -1
- package/dist/components/solid-display.js.map +0 -1
- package/dist/components/solid-form-search.js.map +0 -1
- package/dist/components/solid-form.js.map +0 -1
- package/dist/components/solid-lang.js.map +0 -1
- package/dist/components/solid-map.js.map +0 -1
- package/dist/components/solid-table.js.map +0 -1
- package/dist/components/solid-widget.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/libs/Component.js.map +0 -1
- package/dist/libs/ComponentFactory.js.map +0 -1
- package/dist/libs/Compositor.js.map +0 -1
- package/dist/libs/Sib.js.map +0 -1
- package/dist/libs/helpers.js.map +0 -1
- package/dist/libs/interfaces.js.map +0 -1
- package/dist/libs/lit-helpers.js.map +0 -1
- package/dist/libs/polyfills.js.map +0 -1
- package/dist/libs/store/store.js.map +0 -1
- package/dist/mixins/attributeBinderMixin.js.map +0 -1
- package/dist/mixins/contextMixin.js.map +0 -1
- package/dist/mixins/counterMixin.js.map +0 -1
- package/dist/mixins/federationMixin.js.map +0 -1
- package/dist/mixins/filterMixin.js.map +0 -1
- package/dist/mixins/grouperMixin.js.map +0 -1
- package/dist/mixins/highlighterMixin.js.map +0 -1
- package/dist/mixins/interfaces.js.map +0 -1
- package/dist/mixins/listMixin.js.map +0 -1
- package/dist/mixins/nextMixin.js.map +0 -1
- package/dist/mixins/paginateMixin.js.map +0 -1
- package/dist/mixins/requiredMixin.js.map +0 -1
- package/dist/mixins/sorterMixin.js.map +0 -1
- package/dist/mixins/storeMixin.js.map +0 -1
- package/dist/mixins/translationMixin.js.map +0 -1
- package/dist/mixins/validationMixin.js.map +0 -1
- package/dist/mixins/widgetMixin.js.map +0 -1
- package/dist/new-widgets/attributeMixins/actionMixin.js.map +0 -1
- package/dist/new-widgets/attributeMixins/blankMixin.js.map +0 -1
- package/dist/new-widgets/attributeMixins/booleanMixin.js.map +0 -1
- package/dist/new-widgets/attributeMixins/index.js.map +0 -1
- package/dist/new-widgets/attributeMixins/mailtoMixin.js.map +0 -1
- package/dist/new-widgets/attributeMixins/multipleMixin.js.map +0 -1
- package/dist/new-widgets/attributeMixins/numberMixin.js.map +0 -1
- package/dist/new-widgets/attributeMixins/placeholderMixin.js.map +0 -1
- package/dist/new-widgets/attributeMixins/telMixin.js.map +0 -1
- package/dist/new-widgets/baseWidgetMixin.js.map +0 -1
- package/dist/new-widgets/callbackMixins/autocompletionMixin.js.map +0 -1
- package/dist/new-widgets/callbackMixins/index.js.map +0 -1
- package/dist/new-widgets/callbackMixins/richtextMixin.js.map +0 -1
- package/dist/new-widgets/new-widget-factory.js.map +0 -1
- package/dist/new-widgets/templateAdditionMixins/addableMixin.js.map +0 -1
- package/dist/new-widgets/templateAdditionMixins/index.js.map +0 -1
- package/dist/new-widgets/templateAdditionMixins/labelLastMixin.js.map +0 -1
- package/dist/new-widgets/templateAdditionMixins/labelMixin.js.map +0 -1
- package/dist/new-widgets/templates/defaultTemplatesDirectory.js.map +0 -1
- package/dist/new-widgets/templates/displayTemplatesDirectory.js.map +0 -1
- package/dist/new-widgets/templates/formTemplatesDirectory.js.map +0 -1
- package/dist/new-widgets/templates/groupTemplatesDirectory.js.map +0 -1
- package/dist/new-widgets/templates/index.js.map +0 -1
- package/dist/new-widgets/templates/setTemplatesDirectory.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/altMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/editableMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/filterRangeFormMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formCheckboxMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formCheckboxesMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formDropdownMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formFileMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formLengthMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formMinMaxMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formNumberMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formRadioMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formStepMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/multipleFormMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/multipleselectFormMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/patternMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/rangeMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/setMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/valueRichtextMixin.js.map +0 -1
- package/dist/new-widgets/valueTransformationMixins/autolinkMixin.js.map +0 -1
- package/dist/new-widgets/valueTransformationMixins/dateMixin.js.map +0 -1
- package/dist/new-widgets/valueTransformationMixins/dateTimeMixin.js.map +0 -1
- package/dist/new-widgets/valueTransformationMixins/index.js.map +0 -1
- package/dist/new-widgets/valueTransformationMixins/markdownMixin.js.map +0 -1
- package/dist/new-widgets/valueTransformationMixins/multilineMixin.js.map +0 -1
- package/dist/new-widgets/valueTransformationMixins/oembedMixin.js.map +0 -1
- package/dist/solid-template-element.js.map +0 -1
- package/dist/widgets/baseWidget.js.map +0 -1
- package/dist/widgets/widget-factory.js.map +0 -1
|
@@ -1,40 +1,29 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3
4
|
import { evalTemplateString } from '../libs/helpers.js';
|
|
4
5
|
import { store } from '../libs/store/store.js';
|
|
5
6
|
export class BaseWidget extends HTMLElement {
|
|
6
|
-
constructor(
|
|
7
|
-
super(...
|
|
8
|
-
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
9
|
_defineProperty(this, "src", void 0);
|
|
10
|
-
|
|
11
10
|
_defineProperty(this, "multiple", void 0);
|
|
12
|
-
|
|
13
11
|
_defineProperty(this, "editable", void 0);
|
|
14
|
-
|
|
15
12
|
_defineProperty(this, "required", void 0);
|
|
16
|
-
|
|
17
13
|
_defineProperty(this, "resourceId", void 0);
|
|
18
|
-
|
|
19
14
|
_defineProperty(this, "_value", void 0);
|
|
20
|
-
|
|
21
15
|
_defineProperty(this, "_range", void 0);
|
|
22
|
-
|
|
23
16
|
_defineProperty(this, "_context", void 0);
|
|
24
|
-
|
|
25
17
|
_defineProperty(this, "_subscriptions", new Map());
|
|
26
18
|
}
|
|
27
|
-
|
|
28
19
|
connectedCallback() {
|
|
29
20
|
this.render();
|
|
30
21
|
}
|
|
31
|
-
|
|
32
22
|
disconnectedCallback() {
|
|
33
23
|
this._subscriptions.forEach(subscription => {
|
|
34
24
|
PubSub.unsubscribe(subscription);
|
|
35
25
|
});
|
|
36
26
|
}
|
|
37
|
-
|
|
38
27
|
async render() {
|
|
39
28
|
this.innerHTML = await evalTemplateString(this.template, {
|
|
40
29
|
src: this.src,
|
|
@@ -52,146 +41,116 @@ export class BaseWidget extends HTMLElement {
|
|
|
52
41
|
this.addEditButtons();
|
|
53
42
|
this.initChangeEvents();
|
|
54
43
|
}
|
|
55
|
-
|
|
56
44
|
get label() {
|
|
57
45
|
return this.hasAttribute('label') ? this.getAttribute('label') : this.name;
|
|
58
46
|
}
|
|
59
|
-
|
|
60
47
|
set label(label) {
|
|
61
48
|
if (label != null) this.setAttribute('label', label);
|
|
62
49
|
this.render();
|
|
63
50
|
}
|
|
64
|
-
|
|
65
51
|
get placeholder() {
|
|
66
52
|
return this.hasAttribute('placeholder') ? this.getAttribute('placeholder') : this.label;
|
|
67
53
|
}
|
|
68
|
-
|
|
69
54
|
set placeholder(placeholder) {
|
|
70
55
|
if (placeholder != null) this.setAttribute('placeholder', placeholder);
|
|
71
56
|
this.render();
|
|
72
57
|
}
|
|
73
|
-
|
|
74
58
|
get name() {
|
|
75
59
|
return this.getAttribute('name');
|
|
76
60
|
}
|
|
77
|
-
|
|
78
61
|
set name(name) {
|
|
79
62
|
if (name) this.setAttribute('name', name);
|
|
80
63
|
this.render();
|
|
81
64
|
}
|
|
82
|
-
|
|
83
65
|
get value() {
|
|
84
66
|
if (this.dataHolder) {
|
|
85
67
|
let values = this.dataHolder.map(element => {
|
|
86
|
-
if (element instanceof HTMLInputElement && element.type == "checkbox") return element.checked;
|
|
87
|
-
|
|
68
|
+
if (element instanceof HTMLInputElement && element.type == "checkbox") return element.checked;
|
|
69
|
+
// if value is defined, push it in the array
|
|
88
70
|
return this.getValueHolder(element).value;
|
|
89
|
-
});
|
|
90
|
-
|
|
71
|
+
});
|
|
72
|
+
// If only one value, do not return an array
|
|
91
73
|
return values.length === 1 ? values[0] : values;
|
|
92
74
|
}
|
|
93
|
-
|
|
94
75
|
return this._value || '';
|
|
95
76
|
}
|
|
96
|
-
|
|
97
77
|
set value(value) {
|
|
98
78
|
this._value = value; // ... store `value` in the widget
|
|
99
|
-
|
|
100
79
|
if (this._value == null || this._value == undefined) return;
|
|
101
|
-
|
|
102
80
|
if (this.dataHolder && this.dataHolder.length === 1) {
|
|
103
81
|
// if one dataHolder in the widget...
|
|
104
82
|
const element = this.getValueHolder(this.dataHolder[0]);
|
|
105
|
-
|
|
106
83
|
if (element.type == "checkbox") {
|
|
107
84
|
element.checked = value;
|
|
108
85
|
} else {
|
|
109
86
|
element.value = value; // ... set `value` to the dataHolder element
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
|
|
87
|
+
}
|
|
88
|
+
// remove when https://git.happy-dev.fr/startinblox/framework/sib-core/issues/426 fixed
|
|
113
89
|
if (element.dispatchEvent) element.dispatchEvent(new Event('change')); // trigger change manually
|
|
114
90
|
} else if (this.dataHolder && this.dataHolder.length > 1) {
|
|
115
91
|
// if multiple dataHolder in the widget ...
|
|
116
92
|
this.dataHolder.forEach((el, index) => {
|
|
117
93
|
const element = this.getValueHolder(el);
|
|
118
|
-
|
|
119
94
|
if (element.type == "checkbox") {
|
|
120
95
|
element.checked = value ? value[index] : '';
|
|
121
96
|
} else {
|
|
122
97
|
element.value = value ? value[index] : '';
|
|
123
98
|
}
|
|
124
|
-
|
|
125
99
|
element.dispatchEvent(new Event('change')); // trigger change manually
|
|
126
100
|
}); // ... set each `value` to each dataHolder element
|
|
127
101
|
}
|
|
128
102
|
|
|
129
103
|
this.render();
|
|
130
104
|
}
|
|
131
|
-
|
|
132
105
|
get ['each-label']() {
|
|
133
106
|
return this.getAttribute('each-label') || '';
|
|
134
107
|
}
|
|
135
|
-
|
|
136
108
|
set ['each-label'](label) {
|
|
137
109
|
this.setAttribute('each-label', label);
|
|
138
110
|
}
|
|
139
|
-
|
|
140
111
|
set ['add-label'](label) {
|
|
141
112
|
this.setAttribute('add-label', label);
|
|
142
113
|
}
|
|
143
|
-
|
|
144
114
|
set ['remove-label'](label) {
|
|
145
115
|
this.setAttribute('remove-label', label);
|
|
146
116
|
}
|
|
147
|
-
|
|
148
117
|
get dataHolder() {
|
|
149
118
|
const widgetDataHolders = Array.from(this.querySelectorAll('[data-holder]')).filter(element => {
|
|
150
|
-
const dataHolderAncestor = element.parentElement ? element.parentElement.closest('[data-holder]') : null;
|
|
151
|
-
|
|
119
|
+
const dataHolderAncestor = element.parentElement ? element.parentElement.closest('[data-holder]') : null;
|
|
120
|
+
// get the dataHolder of the widget only if no dataHolder ancestor in the current widget
|
|
152
121
|
return dataHolderAncestor === this || !dataHolderAncestor || !this.contains(dataHolderAncestor);
|
|
153
122
|
});
|
|
154
123
|
return widgetDataHolders.length ? widgetDataHolders : null;
|
|
155
124
|
}
|
|
156
|
-
|
|
157
125
|
get template() {
|
|
158
126
|
return '';
|
|
159
127
|
}
|
|
160
|
-
|
|
161
128
|
get childTemplate() {
|
|
162
129
|
return '';
|
|
163
130
|
}
|
|
164
|
-
|
|
165
131
|
get escapedValue() {
|
|
166
132
|
return ('' + this.value).replace(/&/g, '&').replace(/'/g, ''').replace(/"/g, '"');
|
|
167
133
|
}
|
|
168
|
-
|
|
169
134
|
set context(value) {
|
|
170
135
|
this._context = value;
|
|
171
136
|
}
|
|
172
|
-
|
|
173
137
|
get context() {
|
|
174
138
|
return this._context || {};
|
|
175
139
|
}
|
|
176
|
-
|
|
177
140
|
get range() {
|
|
178
141
|
return this.fetchSources(this._range);
|
|
179
142
|
}
|
|
180
|
-
|
|
181
143
|
set range(range) {
|
|
182
144
|
(async () => {
|
|
183
145
|
this._listen(range, async () => this._range = await store.getData(range, this.context));
|
|
184
|
-
|
|
185
146
|
this._range = await store.getData(range, this.context);
|
|
186
147
|
this.render();
|
|
187
148
|
})();
|
|
188
149
|
}
|
|
189
|
-
|
|
190
150
|
async fetchSources(resource) {
|
|
191
151
|
if (!resource || !resource['ldp:contains']) return null;
|
|
192
152
|
let resources = [];
|
|
193
153
|
let index = 0;
|
|
194
|
-
|
|
195
154
|
for (let res of resource['ldp:contains']) {
|
|
196
155
|
if (!res) {
|
|
197
156
|
// child not in cache yet
|
|
@@ -202,41 +161,30 @@ export class BaseWidget extends HTMLElement {
|
|
|
202
161
|
continue;
|
|
203
162
|
}
|
|
204
163
|
}
|
|
205
|
-
|
|
206
|
-
if (res.isContainer()) {
|
|
164
|
+
if (res.isContainer?.()) {
|
|
207
165
|
// if nested container
|
|
208
166
|
let resourcesFromContainer = await store.getData(res['@id'], this.context); // fetch the datas
|
|
209
|
-
|
|
210
167
|
this._listen(res['@id']);
|
|
211
|
-
|
|
212
168
|
if (resourcesFromContainer) resources.push(...resourcesFromContainer['ldp:contains']);
|
|
213
169
|
} else {
|
|
214
170
|
resources.push(res);
|
|
215
171
|
}
|
|
216
|
-
|
|
217
172
|
index++;
|
|
218
173
|
}
|
|
219
|
-
|
|
220
174
|
return resources;
|
|
221
175
|
}
|
|
222
|
-
|
|
223
176
|
get htmlRange() {
|
|
224
177
|
return (async () => {
|
|
225
178
|
let htmlRange = '';
|
|
226
179
|
const rangeResources = await this.range;
|
|
227
180
|
if (!rangeResources) return;
|
|
228
|
-
|
|
229
181
|
for await (let element of rangeResources) {
|
|
230
182
|
element = await store.getData(element['@id'], this.context); // fetch the resource to display the name
|
|
231
|
-
|
|
232
183
|
this._listen(element['@id']);
|
|
233
|
-
|
|
234
184
|
let selected;
|
|
235
|
-
|
|
236
185
|
if (this._value && this._value.isContainer && this._value.isContainer()) {
|
|
237
186
|
// selected options for multiple select
|
|
238
187
|
selected = false;
|
|
239
|
-
|
|
240
188
|
for await (let value of this._value["ldp:contains"]) {
|
|
241
189
|
if (value['@id'] == element['@id']) {
|
|
242
190
|
selected = true;
|
|
@@ -247,52 +195,45 @@ export class BaseWidget extends HTMLElement {
|
|
|
247
195
|
// selected options for simple dropdowns
|
|
248
196
|
selected = this._value ? this._value['@id'] == element['@id'] : false;
|
|
249
197
|
}
|
|
250
|
-
|
|
251
198
|
htmlRange += await evalTemplateString(this.childTemplate, {
|
|
252
199
|
name: await element.name,
|
|
253
200
|
id: element['@id'],
|
|
254
201
|
selected: selected
|
|
255
202
|
});
|
|
256
203
|
}
|
|
257
|
-
|
|
258
204
|
return htmlRange || '';
|
|
259
205
|
})();
|
|
260
206
|
}
|
|
261
|
-
|
|
262
207
|
getValueHolder(element) {
|
|
263
208
|
return element.component ? element.component : element;
|
|
264
209
|
}
|
|
265
|
-
|
|
266
210
|
subscribe(event) {
|
|
267
211
|
this._listen(event);
|
|
268
212
|
}
|
|
269
|
-
|
|
270
|
-
|
|
213
|
+
_listen(id) {
|
|
214
|
+
let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : () => {};
|
|
271
215
|
if (!this._subscriptions.get(id)) {
|
|
272
216
|
this._subscriptions.set(id, PubSub.subscribe(id, async () => {
|
|
273
217
|
await callback();
|
|
274
218
|
this.render();
|
|
275
219
|
}));
|
|
276
220
|
}
|
|
277
|
-
}
|
|
278
|
-
|
|
221
|
+
}
|
|
279
222
|
|
|
223
|
+
// Editable widgets
|
|
280
224
|
addEditButtons() {
|
|
281
225
|
const editableField = this.querySelector('[data-editable]');
|
|
282
|
-
|
|
283
226
|
if (editableField) {
|
|
284
227
|
// Add edit button
|
|
285
228
|
const editButton = document.createElement('button');
|
|
286
229
|
editButton.innerText = "Modifier";
|
|
287
|
-
|
|
288
230
|
editButton.onclick = () => this.activateEditableField(editableField, editButton);
|
|
231
|
+
editableField.insertAdjacentElement('afterend', editButton);
|
|
289
232
|
|
|
290
|
-
|
|
291
|
-
|
|
233
|
+
// Save on focusout
|
|
292
234
|
editableField.addEventListener('focusout', () => this.save(editableField, editButton));
|
|
293
235
|
}
|
|
294
236
|
}
|
|
295
|
-
|
|
296
237
|
activateEditableField(editableField, editButton) {
|
|
297
238
|
editableField.setAttribute('contenteditable', 'true');
|
|
298
239
|
editableField.focus();
|
|
@@ -301,8 +242,6 @@ export class BaseWidget extends HTMLElement {
|
|
|
301
242
|
/**
|
|
302
243
|
* Dispatch change events of data holders from the current widget
|
|
303
244
|
*/
|
|
304
|
-
|
|
305
|
-
|
|
306
245
|
initChangeEvents() {
|
|
307
246
|
if (this.dataHolder) {
|
|
308
247
|
const event = new Event('change', {
|
|
@@ -317,7 +256,6 @@ export class BaseWidget extends HTMLElement {
|
|
|
317
256
|
});
|
|
318
257
|
}
|
|
319
258
|
}
|
|
320
|
-
|
|
321
259
|
save(editableField, editButton) {
|
|
322
260
|
editableField.setAttribute('contenteditable', 'false');
|
|
323
261
|
editButton.removeAttribute("disabled");
|
|
@@ -327,6 +265,4 @@ export class BaseWidget extends HTMLElement {
|
|
|
327
265
|
resource['@context'] = this.context;
|
|
328
266
|
if (this.resourceId && resource) store.patch(resource, this.resourceId);
|
|
329
267
|
}
|
|
330
|
-
|
|
331
|
-
}
|
|
332
|
-
//# sourceMappingURL=baseWidget.js.map
|
|
268
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { BaseWidget } from './baseWidget.js';
|
|
2
2
|
import { defineComponent } from '../libs/helpers.js';
|
|
3
|
-
export const widgetFactory = (tagName, customTemplate
|
|
3
|
+
export const widgetFactory = function (tagName, customTemplate) {
|
|
4
|
+
let childTemplate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
5
|
+
let callback = arguments.length > 3 ? arguments[3] : undefined;
|
|
4
6
|
const registered = customElements.get(tagName);
|
|
5
7
|
if (registered) return registered;
|
|
6
8
|
const cls = class extends BaseWidget {
|
|
@@ -8,17 +10,13 @@ export const widgetFactory = (tagName, customTemplate, childTemplate = '', callb
|
|
|
8
10
|
await super.render();
|
|
9
11
|
if (callback) callback(this);
|
|
10
12
|
}
|
|
11
|
-
|
|
12
13
|
get template() {
|
|
13
14
|
return customTemplate;
|
|
14
15
|
}
|
|
15
|
-
|
|
16
16
|
get childTemplate() {
|
|
17
17
|
return childTemplate;
|
|
18
18
|
}
|
|
19
|
-
|
|
20
19
|
};
|
|
21
20
|
defineComponent(tagName, cls);
|
|
22
21
|
return cls;
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=widget-factory.js.map
|
|
22
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startinblox/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0-beta.1",
|
|
4
4
|
"description": "This is a series of web component respecting both the web components standards and the Linked Data Platform convention.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -14,10 +14,12 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"build": "snowpack build --polyfill-node",
|
|
16
16
|
"watch": "npm run build -- --watch",
|
|
17
|
-
"serve": "node server.js",
|
|
17
|
+
"serve": "node --watch server.js",
|
|
18
|
+
"dev": "concurrently -n 'WATCH,SERVE' -c 'yellow.bold,magenta.bold' 'npm run watch' 'npm run serve'",
|
|
18
19
|
"check-types": "tsc",
|
|
19
20
|
"test": "node server.js --test",
|
|
20
|
-
"cypress": "node server.js --test-ui"
|
|
21
|
+
"cypress": "node server.js --test-ui",
|
|
22
|
+
"cypress:open": "cypress open"
|
|
21
23
|
},
|
|
22
24
|
"repository": {
|
|
23
25
|
"type": "git",
|
|
@@ -82,8 +84,8 @@
|
|
|
82
84
|
"babel-loader": "^8.2.2",
|
|
83
85
|
"babel-plugin-remove-import-js-extension": "0.0.3",
|
|
84
86
|
"body-parser": "^1.19.0",
|
|
85
|
-
"
|
|
86
|
-
"cypress
|
|
87
|
+
"concurrently": "^8.2.0",
|
|
88
|
+
"cypress": "^13.2.0",
|
|
87
89
|
"cypress-plugin-tab": "^1.0.5",
|
|
88
90
|
"delta-markdown-for-quill": "0.0.9",
|
|
89
91
|
"dialog-polyfill": "^0.5.6",
|
|
@@ -93,7 +95,7 @@
|
|
|
93
95
|
"fuse.js": "^6.4.6",
|
|
94
96
|
"jsonld-context-parser": "^1.3.4",
|
|
95
97
|
"leaflet": "1.7.1",
|
|
96
|
-
"leaflet.markercluster": "1.
|
|
98
|
+
"leaflet.markercluster": "1.5.3",
|
|
97
99
|
"lit-html": "^1.3.0",
|
|
98
100
|
"markdown-it": "^12.0.4",
|
|
99
101
|
"markdown-it-link-attributes": "4.0.1",
|
package/dist/_snowpack/env.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default "/_snowpack/pkg/autolinker.js.map";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default "/_snowpack/pkg/common/_baseUnary-217dffb2.js.map";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_commonjsHelpers-8c19dec8.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default "/_snowpack/pkg/common/_commonjsHelpers-8c19dec8.js.map";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decode-a4c334cf.js","sources":["../../../../node_modules/mdurl/encode.js","../../../../node_modules/mdurl/decode.js"],"sourcesContent":["\n'use strict';\n\n\nvar encodeCache = {};\n\n\n// Create a lookup array where anything but characters in `chars` string\n// and alphanumeric chars is percent-encoded.\n//\nfunction getEncodeCache(exclude) {\n var i, ch, cache = encodeCache[exclude];\n if (cache) { return cache; }\n\n cache = encodeCache[exclude] = [];\n\n for (i = 0; i < 128; i++) {\n ch = String.fromCharCode(i);\n\n if (/^[0-9a-z]$/i.test(ch)) {\n // always allow unencoded alphanumeric characters\n cache.push(ch);\n } else {\n cache.push('%' + ('0' + i.toString(16).toUpperCase()).slice(-2));\n }\n }\n\n for (i = 0; i < exclude.length; i++) {\n cache[exclude.charCodeAt(i)] = exclude[i];\n }\n\n return cache;\n}\n\n\n// Encode unsafe characters with percent-encoding, skipping already\n// encoded sequences.\n//\n// - string - string to encode\n// - exclude - list of characters to ignore (in addition to a-zA-Z0-9)\n// - keepEscaped - don't encode '%' in a correct escape sequence (default: true)\n//\nfunction encode(string, exclude, keepEscaped) {\n var i, l, code, nextCode, cache,\n result = '';\n\n if (typeof exclude !== 'string') {\n // encode(string, keepEscaped)\n keepEscaped = exclude;\n exclude = encode.defaultChars;\n }\n\n if (typeof keepEscaped === 'undefined') {\n keepEscaped = true;\n }\n\n cache = getEncodeCache(exclude);\n\n for (i = 0, l = string.length; i < l; i++) {\n code = string.charCodeAt(i);\n\n if (keepEscaped && code === 0x25 /* % */ && i + 2 < l) {\n if (/^[0-9a-f]{2}$/i.test(string.slice(i + 1, i + 3))) {\n result += string.slice(i, i + 3);\n i += 2;\n continue;\n }\n }\n\n if (code < 128) {\n result += cache[code];\n continue;\n }\n\n if (code >= 0xD800 && code <= 0xDFFF) {\n if (code >= 0xD800 && code <= 0xDBFF && i + 1 < l) {\n nextCode = string.charCodeAt(i + 1);\n if (nextCode >= 0xDC00 && nextCode <= 0xDFFF) {\n result += encodeURIComponent(string[i] + string[i + 1]);\n i++;\n continue;\n }\n }\n result += '%EF%BF%BD';\n continue;\n }\n\n result += encodeURIComponent(string[i]);\n }\n\n return result;\n}\n\nencode.defaultChars = \";/?:@&=+$,-_.!~*'()#\";\nencode.componentChars = \"-_.!~*'()\";\n\n\nmodule.exports = encode;\n","\n'use strict';\n\n\n/* eslint-disable no-bitwise */\n\nvar decodeCache = {};\n\nfunction getDecodeCache(exclude) {\n var i, ch, cache = decodeCache[exclude];\n if (cache) { return cache; }\n\n cache = decodeCache[exclude] = [];\n\n for (i = 0; i < 128; i++) {\n ch = String.fromCharCode(i);\n cache.push(ch);\n }\n\n for (i = 0; i < exclude.length; i++) {\n ch = exclude.charCodeAt(i);\n cache[ch] = '%' + ('0' + ch.toString(16).toUpperCase()).slice(-2);\n }\n\n return cache;\n}\n\n\n// Decode percent-encoded string.\n//\nfunction decode(string, exclude) {\n var cache;\n\n if (typeof exclude !== 'string') {\n exclude = decode.defaultChars;\n }\n\n cache = getDecodeCache(exclude);\n\n return string.replace(/(%[a-f0-9]{2})+/gi, function(seq) {\n var i, l, b1, b2, b3, b4, chr,\n result = '';\n\n for (i = 0, l = seq.length; i < l; i += 3) {\n b1 = parseInt(seq.slice(i + 1, i + 3), 16);\n\n if (b1 < 0x80) {\n result += cache[b1];\n continue;\n }\n\n if ((b1 & 0xE0) === 0xC0 && (i + 3 < l)) {\n // 110xxxxx 10xxxxxx\n b2 = parseInt(seq.slice(i + 4, i + 6), 16);\n\n if ((b2 & 0xC0) === 0x80) {\n chr = ((b1 << 6) & 0x7C0) | (b2 & 0x3F);\n\n if (chr < 0x80) {\n result += '\\ufffd\\ufffd';\n } else {\n result += String.fromCharCode(chr);\n }\n\n i += 3;\n continue;\n }\n }\n\n if ((b1 & 0xF0) === 0xE0 && (i + 6 < l)) {\n // 1110xxxx 10xxxxxx 10xxxxxx\n b2 = parseInt(seq.slice(i + 4, i + 6), 16);\n b3 = parseInt(seq.slice(i + 7, i + 9), 16);\n\n if ((b2 & 0xC0) === 0x80 && (b3 & 0xC0) === 0x80) {\n chr = ((b1 << 12) & 0xF000) | ((b2 << 6) & 0xFC0) | (b3 & 0x3F);\n\n if (chr < 0x800 || (chr >= 0xD800 && chr <= 0xDFFF)) {\n result += '\\ufffd\\ufffd\\ufffd';\n } else {\n result += String.fromCharCode(chr);\n }\n\n i += 6;\n continue;\n }\n }\n\n if ((b1 & 0xF8) === 0xF0 && (i + 9 < l)) {\n // 111110xx 10xxxxxx 10xxxxxx 10xxxxxx\n b2 = parseInt(seq.slice(i + 4, i + 6), 16);\n b3 = parseInt(seq.slice(i + 7, i + 9), 16);\n b4 = parseInt(seq.slice(i + 10, i + 12), 16);\n\n if ((b2 & 0xC0) === 0x80 && (b3 & 0xC0) === 0x80 && (b4 & 0xC0) === 0x80) {\n chr = ((b1 << 18) & 0x1C0000) | ((b2 << 12) & 0x3F000) | ((b3 << 6) & 0xFC0) | (b4 & 0x3F);\n\n if (chr < 0x10000 || chr > 0x10FFFF) {\n result += '\\ufffd\\ufffd\\ufffd\\ufffd';\n } else {\n chr -= 0x10000;\n result += String.fromCharCode(0xD800 + (chr >> 10), 0xDC00 + (chr & 0x3FF));\n }\n\n i += 9;\n continue;\n }\n }\n\n result += '\\ufffd';\n }\n\n return result;\n });\n}\n\n\ndecode.defaultChars = ';/?:@&=+$,#';\ndecode.componentChars = '';\n\n\nmodule.exports = decode;\n"],"names":[],"mappings":"AAIA,IAAI,WAAW,GAAG,EAAE,CAAC;AACrB;AACA;AACA;AACA;AACA;AACA,SAAS,cAAc,CAAC,OAAO,EAAE;AACjC,EAAE,IAAI,CAAC,EAAE,EAAE,EAAE,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AAC1C,EAAE,IAAI,KAAK,EAAE,EAAE,OAAO,KAAK,CAAC,EAAE;AAC9B;AACA,EAAE,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;AACpC;AACA,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;AAC5B,IAAI,EAAE,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;AAChC;AACA,IAAI,IAAI,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;AAChC;AACA,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACrB,KAAK,MAAM;AACX,MAAM,KAAK,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,KAAK;AACL,GAAG;AACH;AACA,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AACvC,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,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