@startinblox/core 0.17.21-beta.9 → 0.17.22
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/package.json +2 -2
- package/dist/_snowpack/env.js +0 -3
- package/dist/_snowpack/pkg/autolinker.js +0 -4281
- package/dist/_snowpack/pkg/autolinker.js.map +0 -1
- package/dist/_snowpack/pkg/autolinker.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/common/_baseUnary-217dffb2.js +0 -377
- package/dist/_snowpack/pkg/common/_baseUnary-217dffb2.js.map +0 -1
- package/dist/_snowpack/pkg/common/_baseUnary-217dffb2.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/common/_commonjsHelpers-8c19dec8.js +0 -22
- 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 +0 -216
- 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 +0 -25677
- package/dist/_snowpack/pkg/delta-markdown-for-quill.js.map +0 -1
- package/dist/_snowpack/pkg/delta-markdown-for-quill.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/dialog-polyfill.js +0 -859
- package/dist/_snowpack/pkg/dialog-polyfill.js.map +0 -1
- package/dist/_snowpack/pkg/dialog-polyfill.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/fusejs.js +0 -1783
- package/dist/_snowpack/pkg/fusejs.js.map +0 -1
- package/dist/_snowpack/pkg/fusejs.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/import-map.json +0 -23
- package/dist/_snowpack/pkg/jsonld-context-parser.js +0 -804
- package/dist/_snowpack/pkg/jsonld-context-parser.js.map +0 -1
- package/dist/_snowpack/pkg/jsonld-context-parser.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/leaflet/dist/leaflet.css +0 -640
- package/dist/_snowpack/pkg/leaflet/dist/leaflet.css.proxy.js +0 -10
- package/dist/_snowpack/pkg/leaflet.markercluster/dist/MarkerCluster.Default.css +0 -60
- package/dist/_snowpack/pkg/leaflet.markercluster/dist/MarkerCluster.Default.css.proxy.js +0 -10
- package/dist/_snowpack/pkg/leaflet.markercluster/dist/MarkerCluster.css +0 -14
- package/dist/_snowpack/pkg/leaflet.markercluster/dist/MarkerCluster.css.proxy.js +0 -10
- package/dist/_snowpack/pkg/lit-html/directives/if-defined.js +0 -40
- package/dist/_snowpack/pkg/lit-html/directives/if-defined.js.map +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 +0 -46
- package/dist/_snowpack/pkg/lit-html/directives/unsafe-html.js.map +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 +0 -88
- package/dist/_snowpack/pkg/lit-html/directives/until.js.map +0 -1
- package/dist/_snowpack/pkg/lit-html/directives/until.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/lit-html.js +0 -92
- package/dist/_snowpack/pkg/lit-html.js.map +0 -1
- package/dist/_snowpack/pkg/lit-html.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/markdown-it.js +0 -11860
- package/dist/_snowpack/pkg/markdown-it.js.map +0 -1
- package/dist/_snowpack/pkg/markdown-it.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/quill/dist/quill.snow.css +0 -945
- package/dist/_snowpack/pkg/quill/dist/quill.snow.css.proxy.js +0 -10
- package/dist/_snowpack/pkg/quill-delta-to-markdown.js +0 -1029
- package/dist/_snowpack/pkg/quill-delta-to-markdown.js.map +0 -1
- package/dist/_snowpack/pkg/quill-delta-to-markdown.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/quill.js +0 -13382
- package/dist/_snowpack/pkg/quill.js.map +0 -1
- package/dist/_snowpack/pkg/quill.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/slim-select.js +0 -4
- package/dist/_snowpack/pkg/slim-select.js.map +0 -1
- package/dist/_snowpack/pkg/slim-select.js.map.proxy.js +0 -1
- package/dist/_snowpack/pkg/tui-calendar/dist/tui-calendar.css +0 -1164
- package/dist/_snowpack/pkg/tui-calendar/dist/tui-calendar.css.proxy.js +0 -10
- package/dist/_snowpack/pkg/tui-calendar.js +0 -42285
- package/dist/_snowpack/pkg/tui-calendar.js.map +0 -1
- package/dist/_snowpack/pkg/tui-calendar.js.map.proxy.js +0 -1
- package/dist/components/solid-ac-checker.js +0 -51
- package/dist/components/solid-ac-checker.js.map +0 -1
- package/dist/components/solid-calendar.js +0 -87
- package/dist/components/solid-calendar.js.map +0 -1
- package/dist/components/solid-delete.js +0 -111
- package/dist/components/solid-delete.js.map +0 -1
- package/dist/components/solid-display.js +0 -194
- package/dist/components/solid-display.js.map +0 -1
- package/dist/components/solid-form-search.js +0 -226
- package/dist/components/solid-form-search.js.map +0 -1
- package/dist/components/solid-form.js +0 -354
- package/dist/components/solid-form.js.map +0 -1
- package/dist/components/solid-lang.js +0 -46
- package/dist/components/solid-lang.js.map +0 -1
- package/dist/components/solid-map.js +0 -242
- package/dist/components/solid-map.js.map +0 -1
- package/dist/components/solid-table.js +0 -263
- package/dist/components/solid-table.js.map +0 -1
- package/dist/components/solid-widget.js +0 -94
- package/dist/components/solid-widget.js.map +0 -1
- package/dist/import.css +0 -4
- package/dist/index.js +0 -43
- package/dist/index.js.map +0 -1
- package/dist/libs/Component.js +0 -19
- package/dist/libs/Component.js.map +0 -1
- package/dist/libs/ComponentFactory.js +0 -196
- package/dist/libs/ComponentFactory.js.map +0 -1
- package/dist/libs/Compositor.js +0 -103
- package/dist/libs/Compositor.js.map +0 -1
- package/dist/libs/Sib.js +0 -58
- package/dist/libs/Sib.js.map +0 -1
- package/dist/libs/filter.js +0 -214
- package/dist/libs/filter.js.map +0 -1
- package/dist/libs/helpers.js +0 -219
- package/dist/libs/helpers.js.map +0 -1
- package/dist/libs/interfaces.js +0 -6
- package/dist/libs/interfaces.js.map +0 -1
- package/dist/libs/lit-helpers.js +0 -169
- package/dist/libs/lit-helpers.js.map +0 -1
- package/dist/libs/polyfills.js +0 -40
- package/dist/libs/polyfills.js.map +0 -1
- package/dist/libs/store/store.js +0 -863
- package/dist/libs/store/store.js.map +0 -1
- package/dist/locales/en.json +0 -10
- package/dist/locales/en.json.proxy.js +0 -2
- package/dist/locales/fr.json +0 -10
- package/dist/locales/fr.json.proxy.js +0 -2
- package/dist/mixins/attributeBinderMixin.js +0 -124
- package/dist/mixins/attributeBinderMixin.js.map +0 -1
- package/dist/mixins/contextMixin.js +0 -28
- package/dist/mixins/contextMixin.js.map +0 -1
- package/dist/mixins/counterMixin.js +0 -75
- package/dist/mixins/counterMixin.js.map +0 -1
- package/dist/mixins/federationMixin.js +0 -63
- package/dist/mixins/federationMixin.js.map +0 -1
- package/dist/mixins/filterMixin.js +0 -136
- package/dist/mixins/filterMixin.js.map +0 -1
- package/dist/mixins/grouperMixin.js +0 -80
- package/dist/mixins/grouperMixin.js.map +0 -1
- package/dist/mixins/highlighterMixin.js +0 -42
- package/dist/mixins/highlighterMixin.js.map +0 -1
- package/dist/mixins/interfaces.js +0 -8
- package/dist/mixins/interfaces.js.map +0 -1
- package/dist/mixins/listMixin.js +0 -136
- package/dist/mixins/listMixin.js.map +0 -1
- package/dist/mixins/nextMixin.js +0 -26
- package/dist/mixins/nextMixin.js.map +0 -1
- package/dist/mixins/paginateMixin.js +0 -110
- package/dist/mixins/paginateMixin.js.map +0 -1
- package/dist/mixins/requiredMixin.js +0 -34
- package/dist/mixins/requiredMixin.js.map +0 -1
- package/dist/mixins/sorterMixin.js +0 -149
- package/dist/mixins/sorterMixin.js.map +0 -1
- package/dist/mixins/storeMixin.js +0 -102
- package/dist/mixins/storeMixin.js.map +0 -1
- package/dist/mixins/translationMixin.js +0 -68
- package/dist/mixins/translationMixin.js.map +0 -1
- package/dist/mixins/validationMixin.js +0 -113
- package/dist/mixins/validationMixin.js.map +0 -1
- package/dist/mixins/widgetMixin.js +0 -447
- package/dist/mixins/widgetMixin.js.map +0 -1
- package/dist/new-widgets/attributeMixins/actionMixin.js +0 -14
- package/dist/new-widgets/attributeMixins/actionMixin.js.map +0 -1
- package/dist/new-widgets/attributeMixins/blankMixin.js +0 -10
- package/dist/new-widgets/attributeMixins/blankMixin.js.map +0 -1
- package/dist/new-widgets/attributeMixins/booleanMixin.js +0 -10
- package/dist/new-widgets/attributeMixins/booleanMixin.js.map +0 -1
- package/dist/new-widgets/attributeMixins/index.js +0 -20
- package/dist/new-widgets/attributeMixins/index.js.map +0 -1
- package/dist/new-widgets/attributeMixins/mailtoMixin.js +0 -10
- package/dist/new-widgets/attributeMixins/mailtoMixin.js.map +0 -1
- package/dist/new-widgets/attributeMixins/multipleMixin.js +0 -28
- package/dist/new-widgets/attributeMixins/multipleMixin.js.map +0 -1
- package/dist/new-widgets/attributeMixins/numberMixin.js +0 -10
- package/dist/new-widgets/attributeMixins/numberMixin.js.map +0 -1
- package/dist/new-widgets/attributeMixins/placeholderMixin.js +0 -19
- package/dist/new-widgets/attributeMixins/placeholderMixin.js.map +0 -1
- package/dist/new-widgets/attributeMixins/telMixin.js +0 -10
- package/dist/new-widgets/attributeMixins/telMixin.js.map +0 -1
- package/dist/new-widgets/baseWidgetMixin.js +0 -122
- package/dist/new-widgets/baseWidgetMixin.js.map +0 -1
- package/dist/new-widgets/callbackMixins/autocompletionMixin.js +0 -104
- package/dist/new-widgets/callbackMixins/autocompletionMixin.js.map +0 -1
- package/dist/new-widgets/callbackMixins/index.js +0 -8
- package/dist/new-widgets/callbackMixins/index.js.map +0 -1
- package/dist/new-widgets/callbackMixins/richtextMixin.js +0 -42
- package/dist/new-widgets/callbackMixins/richtextMixin.js.map +0 -1
- package/dist/new-widgets/callbackMixins/slimselect.css +0 -2
- package/dist/new-widgets/callbackMixins/slimselect.css.proxy.js +0 -10
- package/dist/new-widgets/new-widget-factory.js +0 -96
- package/dist/new-widgets/new-widget-factory.js.map +0 -1
- package/dist/new-widgets/templateAdditionMixins/addableMixin.js +0 -41
- package/dist/new-widgets/templateAdditionMixins/addableMixin.js.map +0 -1
- package/dist/new-widgets/templateAdditionMixins/index.js +0 -14
- package/dist/new-widgets/templateAdditionMixins/index.js.map +0 -1
- package/dist/new-widgets/templateAdditionMixins/labelLastMixin.js +0 -29
- package/dist/new-widgets/templateAdditionMixins/labelLastMixin.js.map +0 -1
- package/dist/new-widgets/templateAdditionMixins/labelMixin.js +0 -31
- package/dist/new-widgets/templateAdditionMixins/labelMixin.js.map +0 -1
- package/dist/new-widgets/templates/defaultTemplatesDirectory.js +0 -36
- package/dist/new-widgets/templates/defaultTemplatesDirectory.js.map +0 -1
- package/dist/new-widgets/templates/displayTemplatesDirectory.js +0 -90
- package/dist/new-widgets/templates/displayTemplatesDirectory.js.map +0 -1
- package/dist/new-widgets/templates/formTemplatesDirectory.js +0 -397
- package/dist/new-widgets/templates/formTemplatesDirectory.js.map +0 -1
- package/dist/new-widgets/templates/groupTemplatesDirectory.js +0 -21
- package/dist/new-widgets/templates/groupTemplatesDirectory.js.map +0 -1
- package/dist/new-widgets/templates/index.js +0 -7
- package/dist/new-widgets/templates/index.js.map +0 -1
- package/dist/new-widgets/templates/setTemplatesDirectory.js +0 -49
- package/dist/new-widgets/templates/setTemplatesDirectory.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/altMixin.js +0 -13
- package/dist/new-widgets/templatesDependencies/altMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/editableMixin.js +0 -77
- package/dist/new-widgets/templatesDependencies/editableMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/filterRangeFormMixin.js +0 -38
- package/dist/new-widgets/templatesDependencies/filterRangeFormMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formCheckboxMixin.js +0 -14
- package/dist/new-widgets/templatesDependencies/formCheckboxMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formCheckboxesMixin.js +0 -51
- package/dist/new-widgets/templatesDependencies/formCheckboxesMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formDropdownMixin.js +0 -66
- package/dist/new-widgets/templatesDependencies/formDropdownMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formFileMixin.js +0 -81
- package/dist/new-widgets/templatesDependencies/formFileMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formLengthMixin.js +0 -19
- package/dist/new-widgets/templatesDependencies/formLengthMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formMinMaxMixin.js +0 -19
- package/dist/new-widgets/templatesDependencies/formMinMaxMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formMixin.js +0 -66
- package/dist/new-widgets/templatesDependencies/formMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formNumberMixin.js +0 -14
- package/dist/new-widgets/templatesDependencies/formNumberMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formRadioMixin.js +0 -16
- package/dist/new-widgets/templatesDependencies/formRadioMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/formStepMixin.js +0 -13
- package/dist/new-widgets/templatesDependencies/formStepMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/linkTextMixin.js +0 -14
- package/dist/new-widgets/templatesDependencies/linkTextMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/multipleFormMixin.js +0 -125
- package/dist/new-widgets/templatesDependencies/multipleFormMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/multipleselectFormMixin.js +0 -74
- package/dist/new-widgets/templatesDependencies/multipleselectFormMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/patternMixin.js +0 -19
- package/dist/new-widgets/templatesDependencies/patternMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/rangeMixin.js +0 -110
- package/dist/new-widgets/templatesDependencies/rangeMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/setMixin.js +0 -12
- package/dist/new-widgets/templatesDependencies/setMixin.js.map +0 -1
- package/dist/new-widgets/templatesDependencies/valueRichtextMixin.js +0 -12
- package/dist/new-widgets/templatesDependencies/valueRichtextMixin.js.map +0 -1
- package/dist/new-widgets/valueTransformationMixins/autolinkMixin.js +0 -18
- package/dist/new-widgets/valueTransformationMixins/autolinkMixin.js.map +0 -1
- package/dist/new-widgets/valueTransformationMixins/dateMixin.js +0 -35
- package/dist/new-widgets/valueTransformationMixins/dateMixin.js.map +0 -1
- package/dist/new-widgets/valueTransformationMixins/dateTimeMixin.js +0 -16
- package/dist/new-widgets/valueTransformationMixins/dateTimeMixin.js.map +0 -1
- package/dist/new-widgets/valueTransformationMixins/index.js +0 -16
- package/dist/new-widgets/valueTransformationMixins/index.js.map +0 -1
- package/dist/new-widgets/valueTransformationMixins/markdownMixin.js +0 -25
- package/dist/new-widgets/valueTransformationMixins/markdownMixin.js.map +0 -1
- package/dist/new-widgets/valueTransformationMixins/multilineMixin.js +0 -17
- package/dist/new-widgets/valueTransformationMixins/multilineMixin.js.map +0 -1
- package/dist/new-widgets/valueTransformationMixins/oembedMixin.js +0 -27
- package/dist/new-widgets/valueTransformationMixins/oembedMixin.js.map +0 -1
- package/dist/solid-template-element.js +0 -164
- package/dist/solid-template-element.js.map +0 -1
- package/dist/style/default-theme.css +0 -24
- package/dist/style/default-theme.css.proxy.js +0 -10
- package/dist/widgets/baseWidget.js +0 -332
- package/dist/widgets/baseWidget.js.map +0 -1
- package/dist/widgets/widget-factory.js +0 -24
- package/dist/widgets/widget-factory.js.map +0 -1
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
function _templateObject() {
|
|
2
|
-
const data = _taggedTemplateLiteral(["\n <label for=\"", "\">", "</label>\n ", "\n "]);
|
|
3
|
-
|
|
4
|
-
_templateObject = function () {
|
|
5
|
-
return data;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
return data;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
|
-
|
|
13
|
-
import { html } from '../../_snowpack/pkg/lit-html.js';
|
|
14
|
-
import { uniqID } from '../../libs/helpers.js';
|
|
15
|
-
const LabelMixin = {
|
|
16
|
-
name: 'label-mixin',
|
|
17
|
-
|
|
18
|
-
created() {
|
|
19
|
-
this.listAttributes['id'] = uniqID();
|
|
20
|
-
this.listTemplateAdditions.push(this.addLabel.bind(this));
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
addLabel(template, listTemplateAdditions) {
|
|
24
|
-
const newTemplate = html(_templateObject(), this.listAttributes['id'], this.label || this.name, template);
|
|
25
|
-
const nextProcessor = listTemplateAdditions.shift();
|
|
26
|
-
if (nextProcessor) nextProcessor(newTemplate, listTemplateAdditions);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
export { LabelMixin };
|
|
31
|
-
//# sourceMappingURL=labelMixin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["labelMixin.ts"],"names":["html","uniqID","LabelMixin","name","created","listAttributes","listTemplateAdditions","push","addLabel","bind","template","newTemplate","label","nextProcessor","shift"],"mappings":";;;;;;;;;;;;AAAA,SAASA,IAAT,QAAqB,UAArB;AACA,SAASC,MAAT,QAAuB,oBAAvB;AAEA,MAAMC,UAAU,GAAG;AACjBC,EAAAA,IAAI,EAAE,aADW;;AAEjBC,EAAAA,OAAO,GAAG;AACR,SAAKC,cAAL,CAAoB,IAApB,IAA4BJ,MAAM,EAAlC;AACA,SAAKK,qBAAL,CAA2BC,IAA3B,CAAgC,KAAKC,QAAL,CAAcC,IAAd,CAAmB,IAAnB,CAAhC;AACD,GALgB;;AAMjBD,EAAAA,QAAQ,CAACE,QAAD,EAAWJ,qBAAX,EAA8C;AACpD,UAAMK,WAAW,GAAGX,IAAH,oBACD,KAAKK,cAAL,CAAoB,IAApB,CADC,EAC6B,KAAKO,KAAL,IAAc,KAAKT,IADhD,EAEbO,QAFa,CAAjB;AAKA,UAAMG,aAAa,GAAGP,qBAAqB,CAACQ,KAAtB,EAAtB;AACA,QAAGD,aAAH,EAAkBA,aAAa,CAACF,WAAD,EAAcL,qBAAd,CAAb;AACnB;;AAdgB,CAAnB;AAiBA,SACEJ,UADF","sourcesContent":["import { html } from 'lit-html';\nimport { uniqID } from '../../libs/helpers';\n\nconst LabelMixin = {\n name: 'label-mixin',\n created() {\n this.listAttributes['id'] = uniqID(); \n this.listTemplateAdditions.push(this.addLabel.bind(this));\n },\n addLabel(template, listTemplateAdditions: Function[]) {\n const newTemplate = html`\n <label for=\"${this.listAttributes['id']}\">${this.label || this.name}</label>\n ${template}\n `;\n\n const nextProcessor = listTemplateAdditions.shift();\n if(nextProcessor) nextProcessor(newTemplate, listTemplateAdditions);\n }\n}\n\nexport {\n LabelMixin\n}"]}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
function _templateObject2() {
|
|
2
|
-
const data = _taggedTemplateLiteral(["\n <solid-display\n data-src=", "\n fields=", "\n next=", "\n empty-widget=", "\n ></solid-display>\n "]);
|
|
3
|
-
|
|
4
|
-
_templateObject2 = function () {
|
|
5
|
-
return data;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
return data;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function _templateObject() {
|
|
12
|
-
const data = _taggedTemplateLiteral(["\n <solid-link\n data-src=", "\n next=", "\n id=", "\n link-text=", "\n >\n ", "\n </solid-link>\n "]);
|
|
13
|
-
|
|
14
|
-
_templateObject = function () {
|
|
15
|
-
return data;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
return data;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
22
|
-
|
|
23
|
-
import { html } from '../../_snowpack/pkg/lit-html.js';
|
|
24
|
-
import { ifDefined } from '../../_snowpack/pkg/lit-html/directives/if-defined.js';
|
|
25
|
-
import { LinkTextMixin } from '../templatesDependencies/linkTextMixin.js';
|
|
26
|
-
export const defaultTemplates = {
|
|
27
|
-
action: {
|
|
28
|
-
template: (value, attributes) => html(_templateObject(), ifDefined(attributes.src), ifDefined(value), ifDefined(attributes.id), ifDefined(attributes.linkText), attributes.linkText == null ? attributes.name || '' : attributes.linkText),
|
|
29
|
-
dependencies: [LinkTextMixin]
|
|
30
|
-
},
|
|
31
|
-
multiple: {
|
|
32
|
-
template: (value, attributes) => html(_templateObject2(), value || '', ifDefined(attributes.fields), ifDefined(attributes.next), ifDefined(attributes.emptyWidget)),
|
|
33
|
-
dependencies: []
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=defaultTemplatesDirectory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["defaultTemplatesDirectory.ts"],"names":["html","ifDefined","LinkTextMixin","defaultTemplates","action","template","value","attributes","src","id","linkText","name","dependencies","multiple","fields","next","emptyWidget"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,SAASA,IAAT,QAAqB,UAArB;AACA,SAASC,SAAT,QAA0B,gCAA1B;AACA,SAASC,aAAT,QAA8B,wCAA9B;AAEA,OAAO,MAAMC,gBAAgB,GAAG;AAC9BC,EAAAA,MAAM,EAAE;AACNC,IAAAA,QAAQ,EAAE,CAACC,KAAD,EAAgBC,UAAhB,KAAoCP,IAApC,oBAEKC,SAAS,CAACM,UAAU,CAACC,GAAZ,CAFd,EAGCP,SAAS,CAACK,KAAD,CAHV,EAIDL,SAAS,CAACM,UAAU,CAACE,EAAZ,CAJR,EAKMR,SAAS,CAACM,UAAU,CAACG,QAAZ,CALf,EAOJH,UAAU,CAACG,QAAX,IAAuB,IAAvB,GAA+BH,UAAU,CAACI,IAAX,IAAmB,EAAlD,GAAwDJ,UAAU,CAACG,QAP/D,CADJ;AAWNE,IAAAA,YAAY,EAAE,CAACV,aAAD;AAXR,GADsB;AAc9BW,EAAAA,QAAQ,EAAE;AACRR,IAAAA,QAAQ,EAAE,CAACC,KAAD,EAAgBC,UAAhB,KAAoCP,IAApC,qBAEKM,KAAK,IAAI,EAFd,EAGGL,SAAS,CAACM,UAAU,CAACO,MAAZ,CAHZ,EAICb,SAAS,CAACM,UAAU,CAACQ,IAAZ,CAJV,EAKSd,SAAS,CAACM,UAAU,CAACS,WAAZ,CALlB,CADF;AASRJ,IAAAA,YAAY,EAAE;AATN;AAdoB,CAAzB","sourcesContent":["import { html } from 'lit-html';\nimport { ifDefined } from 'lit-html/directives/if-defined';\nimport { LinkTextMixin } from '../templatesDependencies/linkTextMixin';\n\nexport const defaultTemplates = {\n action: {\n template: (value: string, attributes: any) => html`\n <solid-link\n data-src=${ifDefined(attributes.src)}\n next=${ifDefined(value)}\n id=${ifDefined(attributes.id)}\n link-text=${ifDefined(attributes.linkText)}\n >\n ${attributes.linkText == null ? (attributes.name || '') : attributes.linkText}\n </solid-link>\n `,\n dependencies: [LinkTextMixin]\n },\n multiple: {\n template: (value: string, attributes: any) => html`\n <solid-display\n data-src=${value || ''}\n fields=${ifDefined(attributes.fields)}\n next=${ifDefined(attributes.next)}\n empty-widget=${ifDefined(attributes.emptyWidget)}\n ></solid-display>\n `,\n dependencies: []\n },\n}\n"]}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
function _templateObject6() {
|
|
2
|
-
const data = _taggedTemplateLiteral(["<label>", "</label>"]);
|
|
3
|
-
|
|
4
|
-
_templateObject6 = function () {
|
|
5
|
-
return data;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
return data;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function _templateObject5() {
|
|
12
|
-
const data = _taggedTemplateLiteral(["\n ", "\n "]);
|
|
13
|
-
|
|
14
|
-
_templateObject5 = function () {
|
|
15
|
-
return data;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
return data;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function _templateObject4() {
|
|
22
|
-
const data = _taggedTemplateLiteral(["\n <img\n name=", "\n src=", "\n alt=", "\n style=\"max-width: 100%; max-height: 100%;\"\n />\n "]);
|
|
23
|
-
|
|
24
|
-
_templateObject4 = function () {
|
|
25
|
-
return data;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
return data;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function _templateObject3() {
|
|
32
|
-
const data = _taggedTemplateLiteral(["\n <a\n name=", "\n href=", "\n target=", "\n ?data-editable=", "\n id=", "\n link-text=", "\n >\n ", "\n </a>\n "]);
|
|
33
|
-
|
|
34
|
-
_templateObject3 = function () {
|
|
35
|
-
return data;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
return data;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function _templateObject2() {
|
|
42
|
-
const data = _taggedTemplateLiteral(["\n <div\n name=", "\n ?data-editable=", "\n >\n ", "\n </div>\n "]);
|
|
43
|
-
|
|
44
|
-
_templateObject2 = function () {
|
|
45
|
-
return data;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
return data;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function _templateObject() {
|
|
52
|
-
const data = _taggedTemplateLiteral(["", ""]);
|
|
53
|
-
|
|
54
|
-
_templateObject = function () {
|
|
55
|
-
return data;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
return data;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
62
|
-
|
|
63
|
-
import { EditableMixin } from '../templatesDependencies/editableMixin.js';
|
|
64
|
-
import { AltMixin } from '../templatesDependencies/altMixin.js';
|
|
65
|
-
import { LinkTextMixin } from '../templatesDependencies/linkTextMixin.js';
|
|
66
|
-
import { html } from '../../_snowpack/pkg/lit-html.js';
|
|
67
|
-
import { ifDefined } from '../../_snowpack/pkg/lit-html/directives/if-defined.js';
|
|
68
|
-
export const displayTemplates = {
|
|
69
|
-
value: {
|
|
70
|
-
template: value => html(_templateObject(), value),
|
|
71
|
-
dependencies: []
|
|
72
|
-
},
|
|
73
|
-
div: {
|
|
74
|
-
template: (value, attributes) => html(_templateObject2(), ifDefined(attributes.name), attributes.editable, value),
|
|
75
|
-
dependencies: [EditableMixin]
|
|
76
|
-
},
|
|
77
|
-
link: {
|
|
78
|
-
template: (value, attributes) => html(_templateObject3(), ifDefined(attributes.name), (attributes.mailto || attributes.tel || '') + (value || '#'), ifDefined(attributes.target), attributes.editable, ifDefined(attributes.id), ifDefined(attributes.linkText), attributes.linkText || value || ''),
|
|
79
|
-
dependencies: [EditableMixin, LinkTextMixin]
|
|
80
|
-
},
|
|
81
|
-
img: {
|
|
82
|
-
template: (value, attributes) => html(_templateObject4(), ifDefined(attributes.name), ifDefined(value), ifDefined(attributes.alt)),
|
|
83
|
-
dependencies: [AltMixin]
|
|
84
|
-
},
|
|
85
|
-
boolean: {
|
|
86
|
-
template: (value, attributes) => html(_templateObject5(), value === 'true' ? html(_templateObject6(), attributes.label || attributes.name || '') : ''),
|
|
87
|
-
dependencies: []
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
//# sourceMappingURL=displayTemplatesDirectory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["displayTemplatesDirectory.ts"],"names":["EditableMixin","AltMixin","LinkTextMixin","html","ifDefined","displayTemplates","value","template","dependencies","div","attributes","name","editable","link","mailto","tel","target","id","linkText","img","alt","boolean","label"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAASA,aAAT,QAA8B,wCAA9B;AACA,SAASC,QAAT,QAAyB,mCAAzB;AACA,SAASC,aAAT,QAA8B,wCAA9B;AAEA,SAASC,IAAT,QAAqB,UAArB;AACA,SAASC,SAAT,QAA0B,gCAA1B;AAEA,OAAO,MAAMC,gBAAgB,GAAG;AAC9BC,EAAAA,KAAK,EAAE;AACLC,IAAAA,QAAQ,EAAGD,KAAD,IAAmBH,IAAnB,oBAA0BG,KAA1B,CADL;AAELE,IAAAA,YAAY,EAAE;AAFT,GADuB;AAK9BC,EAAAA,GAAG,EAAE;AACHF,IAAAA,QAAQ,EAAE,CAACD,KAAD,EAAgBI,UAAhB,KAAoCP,IAApC,qBAECC,SAAS,CAACM,UAAU,CAACC,IAAZ,CAFV,EAGWD,UAAU,CAACE,QAHtB,EAKJN,KALI,CADP;AASHE,IAAAA,YAAY,EAAE,CAAER,aAAF;AATX,GALyB;AAgB9Ba,EAAAA,IAAI,EAAE;AACJN,IAAAA,QAAQ,EAAE,CAACD,KAAD,EAAgBI,UAAhB,KAAoCP,IAApC,qBAECC,SAAS,CAACM,UAAU,CAACC,IAAZ,CAFV,EAGC,CAACD,UAAU,CAACI,MAAX,IAAqBJ,UAAU,CAACK,GAAhC,IAAuC,EAAxC,KAA6CT,KAAK,IAAI,GAAtD,CAHD,EAIGF,SAAS,CAACM,UAAU,CAACM,MAAZ,CAJZ,EAKWN,UAAU,CAACE,QALtB,EAMDR,SAAS,CAACM,UAAU,CAACO,EAAZ,CANR,EAOMb,SAAS,CAACM,UAAU,CAACQ,QAAZ,CAPf,EASJR,UAAU,CAACQ,QAAX,IAAuBZ,KAAvB,IAAgC,EAT5B,CADN;AAaJE,IAAAA,YAAY,EAAE,CAAER,aAAF,EAAkBE,aAAlB;AAbV,GAhBwB;AA+B9BiB,EAAAA,GAAG,EAAE;AACHZ,IAAAA,QAAQ,EAAE,CAACD,KAAD,EAAgBI,UAAhB,KAAoCP,IAApC,qBAECC,SAAS,CAACM,UAAU,CAACC,IAAZ,CAFV,EAGAP,SAAS,CAACE,KAAD,CAHT,EAIAF,SAAS,CAACM,UAAU,CAACU,GAAZ,CAJT,CADP;AASHZ,IAAAA,YAAY,EAAE,CAACP,QAAD;AATX,GA/ByB;AA0C9BoB,EAAAA,OAAO,EAAE;AACPd,IAAAA,QAAQ,EAAE,CAACD,KAAD,EAAgBI,UAAhB,KAAoCP,IAApC,qBACNG,KAAK,KAAK,MAAV,GAAmBH,IAAnB,qBAAiCO,UAAU,CAACY,KAAX,IAAoBZ,UAAU,CAACC,IAA/B,IAAuC,EAAxE,IAAuF,EADjF,CADH;AAIPH,IAAAA,YAAY,EAAE;AAJP;AA1CqB,CAAzB","sourcesContent":["import { EditableMixin } from '../templatesDependencies/editableMixin';\nimport { AltMixin } from '../templatesDependencies/altMixin';\nimport { LinkTextMixin } from '../templatesDependencies/linkTextMixin';\n\nimport { html } from 'lit-html';\nimport { ifDefined } from 'lit-html/directives/if-defined';\n\nexport const displayTemplates = {\n value: {\n template: (value: string) => html`${value}`,\n dependencies: []\n },\n div: {\n template: (value: string, attributes: any) => html`\n <div\n name=${ifDefined(attributes.name)}\n ?data-editable=${attributes.editable}\n >\n ${value}\n </div>\n `,\n dependencies: [ EditableMixin ]\n },\n link: {\n template: (value: string, attributes: any) => html`\n <a\n name=${ifDefined(attributes.name)}\n href=${(attributes.mailto || attributes.tel || '')+(value || '#')}\n target=${ifDefined(attributes.target)}\n ?data-editable=${attributes.editable}\n id=${ifDefined(attributes.id)}\n link-text=${ifDefined(attributes.linkText)}\n >\n ${attributes.linkText || value || ''}\n </a>\n `,\n dependencies: [ EditableMixin, LinkTextMixin ]\n },\n img: {\n template: (value: string, attributes: any) => html`\n <img\n name=${ifDefined(attributes.name)}\n src=${ifDefined(value)}\n alt=${ifDefined(attributes.alt)}\n style=\"max-width: 100%; max-height: 100%;\"\n />\n `,\n dependencies: [AltMixin]\n },\n boolean: {\n template: (value: string, attributes: any) => html`\n ${value === 'true' ? html`<label>${attributes.label || attributes.name || ''}</label>` : ''}\n `,\n dependencies: []\n },\n}\n"]}
|
|
@@ -1,397 +0,0 @@
|
|
|
1
|
-
function _templateObject29() {
|
|
2
|
-
const data = _taggedTemplateLiteral(["\n <input\n type=\"time\"\n placeholder=", "\n name=", "\n id=", "\n value=", "\n min=", "\n max=", "\n step=", "\n ?required=", "\n data-holder\n @change=", "\n />\n "]);
|
|
3
|
-
|
|
4
|
-
_templateObject29 = function () {
|
|
5
|
-
return data;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
return data;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function _templateObject28() {
|
|
12
|
-
const data = _taggedTemplateLiteral(["\n <input\n type=\"password\"\n placeholder=", "\n id=", "\n name=", "\n value=", "\n ?required=", "\n pattern=", "\n title=", "\n data-holder\n maxlength=", "\n minlength=", "\n @change=", "\n />\n "]);
|
|
13
|
-
|
|
14
|
-
_templateObject28 = function () {
|
|
15
|
-
return data;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
return data;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function _templateObject27() {
|
|
22
|
-
const data = _taggedTemplateLiteral(["\n <input\n type=\"email\"\n placeholder=", "\n id=", "\n name=", "\n value=", "\n ?required=", "\n data-holder\n maxlength=", "\n minlength=", "\n @change=", "\n />\n "]);
|
|
23
|
-
|
|
24
|
-
_templateObject27 = function () {
|
|
25
|
-
return data;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
return data;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function _templateObject26() {
|
|
32
|
-
const data = _taggedTemplateLiteral(["\n <input\n type=\"color\"\n placeholder=", "\n id=", "\n name=", "\n ?required=", "\n value=", "\n data-holder\n @change=", "\n />\n "]);
|
|
33
|
-
|
|
34
|
-
_templateObject26 = function () {
|
|
35
|
-
return data;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
return data;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function _templateObject25() {
|
|
42
|
-
const data = _taggedTemplateLiteral(["\n <div \n data-richtext\n name=", "\n data-holder\n ></div>\n "]);
|
|
43
|
-
|
|
44
|
-
_templateObject25 = function () {
|
|
45
|
-
return data;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
return data;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function _templateObject24() {
|
|
52
|
-
const data = _taggedTemplateLiteral(["\n <div>\n <input\n data-holder\n type=\"text\"\n name=", "\n value=", "\n ?required=", "\n >\n <input\n type=\"file\"\n accept=\"image/*\"\n id=", "\n value=", "\n @change=", "\n />\n <img\n src=", "\n ?hidden=", "\n />\n <button\n ?hidden=", "\n @click=", "\n >\xD7</button>\n <span>", "</span>\n </div>\n "]);
|
|
53
|
-
|
|
54
|
-
_templateObject24 = function () {
|
|
55
|
-
return data;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
return data;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function _templateObject23() {
|
|
62
|
-
const data = _taggedTemplateLiteral(["\n <div>\n <input\n data-holder\n type=\"text\"\n ?required=", "\n name=", "\n value=", "\n >\n <input\n type=\"file\"\n id=", "\n value=", "\n @change=", "\n />\n <button\n ?hidden=", "\n @click=", "\n >\xD7</button>\n <span>", "</span>\n </div>\n "]);
|
|
63
|
-
|
|
64
|
-
_templateObject23 = function () {
|
|
65
|
-
return data;
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
return data;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function _templateObject22() {
|
|
72
|
-
const data = _taggedTemplateLiteral(["\n <solid-form-dropdown\n data-holder\n name=", "\n data-id=", "\n range=", "\n values=", "\n order-asc=", "\n order-desc=", "\n ?required=", "\n multiple\n ></solid-form-dropdown>\n "]);
|
|
73
|
-
|
|
74
|
-
_templateObject22 = function () {
|
|
75
|
-
return data;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
return data;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
function _templateObject21() {
|
|
82
|
-
const data = _taggedTemplateLiteral(["\n <div data-index=", ">\n ", "\n <button type=\"button\" class=", " @click=", ">", "</button>\n </div>\n "]);
|
|
83
|
-
|
|
84
|
-
_templateObject21 = function () {
|
|
85
|
-
return data;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
return data;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
function _templateObject20() {
|
|
92
|
-
const data = _taggedTemplateLiteral(["\n ", "\n <button type=\"button\" class=", " @click=", ">", "</button>\n "]);
|
|
93
|
-
|
|
94
|
-
_templateObject20 = function () {
|
|
95
|
-
return data;
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
return data;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
function _templateObject19() {
|
|
102
|
-
const data = _taggedTemplateLiteral(["\n <solid-form-multicheckbox\n data-holder\n name=", "\n range=", "\n enum=", "\n values=", "\n order-asc=", "\n order-desc=", "\n ?required=", "\n ></solid-form-multicheckbox>\n "]);
|
|
103
|
-
|
|
104
|
-
_templateObject19 = function () {
|
|
105
|
-
return data;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
return data;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
function _templateObject18() {
|
|
112
|
-
const data = _taggedTemplateLiteral(["\n <label>\n <input type=\"checkbox\"\n value=\"", "\"\n /> <span>", "</span>\n </label>\n "]);
|
|
113
|
-
|
|
114
|
-
_templateObject18 = function () {
|
|
115
|
-
return data;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
return data;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function _templateObject17() {
|
|
122
|
-
const data = _taggedTemplateLiteral(["\n <label>\n <input\n type=\"checkbox\"\n value=", "\n ?checked=", "\n /> <span>", "</span>\n </label>\n "]);
|
|
123
|
-
|
|
124
|
-
_templateObject17 = function () {
|
|
125
|
-
return data;
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
return data;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
function _templateObject16() {
|
|
132
|
-
const data = _taggedTemplateLiteral(["\n <div\n name=", "\n >\n ", "\n ", "\n </select>\n "]);
|
|
133
|
-
|
|
134
|
-
_templateObject16 = function () {
|
|
135
|
-
return data;
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
return data;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
function _templateObject15() {
|
|
142
|
-
const data = _taggedTemplateLiteral(["\n <label>\n <input\n type=\"radio\"\n value=\"", "\"\n name=", "\n ?required=", "\n ?checked=", "\n > <span>", "</span>\n </label>\n "]);
|
|
143
|
-
|
|
144
|
-
_templateObject15 = function () {
|
|
145
|
-
return data;
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
return data;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
function _templateObject14() {
|
|
152
|
-
const data = _taggedTemplateLiteral(["\n <label>\n <input\n type=\"radio\"\n name=", "\n value=", "\n ?required=", "\n ?checked=", "\n > <span>", "</span>\n </label>\n "]);
|
|
153
|
-
|
|
154
|
-
_templateObject14 = function () {
|
|
155
|
-
return data;
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
return data;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
function _templateObject13() {
|
|
162
|
-
const data = _taggedTemplateLiteral(["\n <div\n name=", "\n >\n ", "\n ", "\n "]);
|
|
163
|
-
|
|
164
|
-
_templateObject13 = function () {
|
|
165
|
-
return data;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
return data;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
function _templateObject12() {
|
|
172
|
-
const data = _taggedTemplateLiteral(["\n <option\n value=\"", "\"\n ?selected=", "\n >\n ", "\n </option>\n "]);
|
|
173
|
-
|
|
174
|
-
_templateObject12 = function () {
|
|
175
|
-
return data;
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
return data;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
function _templateObject11() {
|
|
182
|
-
const data = _taggedTemplateLiteral(["\n <option\n value=", "\n ?selected=", "\n >\n ", "\n </option>\n "]);
|
|
183
|
-
|
|
184
|
-
_templateObject11 = function () {
|
|
185
|
-
return data;
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
return data;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
function _templateObject10() {
|
|
192
|
-
const data = _taggedTemplateLiteral(["\n <option value=\"\" ?selected=", ">\n ", "\n </option>\n "]);
|
|
193
|
-
|
|
194
|
-
_templateObject10 = function () {
|
|
195
|
-
return data;
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
return data;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
function _templateObject9() {
|
|
202
|
-
const data = _taggedTemplateLiteral(["\n <select\n name=", "\n id=", "\n data-holder\n ?required=", "\n ?multiple=", "\n autocomplete=", "\n @change=", "\n >\n ", "\n ", "\n ", "\n </select>\n "]);
|
|
203
|
-
|
|
204
|
-
_templateObject9 = function () {
|
|
205
|
-
return data;
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
return data;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
function _templateObject8() {
|
|
212
|
-
const data = _taggedTemplateLiteral(["\n <input\n type=\"hidden\"\n name=", "\n value=", "\n data-holder\n @change=", "\n />\n "]);
|
|
213
|
-
|
|
214
|
-
_templateObject8 = function () {
|
|
215
|
-
return data;
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
return data;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
function _templateObject7() {
|
|
222
|
-
const data = _taggedTemplateLiteral(["\n <input\n data-holder\n type=\"number\"\n name=\"", "-start\"\n @change=", "\n value=", "\n />\n <input\n data-holder\n type=\"number\"\n name=\"", "-end\"\n @change=", "\n value=", "\n />\n "]);
|
|
223
|
-
|
|
224
|
-
_templateObject7 = function () {
|
|
225
|
-
return data;
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
return data;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
function _templateObject6() {
|
|
232
|
-
const data = _taggedTemplateLiteral(["\n <input\n type=\"number\"\n placeholder=", "\n name=", "\n id=", "\n value=", "\n min=", "\n max=", "\n step=", "\n ?required=", "\n data-holder\n @change=", "\n />\n "]);
|
|
233
|
-
|
|
234
|
-
_templateObject6 = function () {
|
|
235
|
-
return data;
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
return data;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
function _templateObject5() {
|
|
242
|
-
const data = _taggedTemplateLiteral(["\n <input\n data-holder\n type=\"date\"\n name=\"", "-start\"\n @change=", "\n value=", "\n />\n <input\n data-holder\n type=\"date\"\n name=\"", "-end\"\n @change=", "\n value=", "\n />\n "]);
|
|
243
|
-
|
|
244
|
-
_templateObject5 = function () {
|
|
245
|
-
return data;
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
return data;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
function _templateObject4() {
|
|
252
|
-
const data = _taggedTemplateLiteral(["\n <input\n type=\"date\"\n placeholder=", "\n name=", "\n id=", "\n ?required=", "\n value=", "\n data-holder\n @change=", "\n />\n "]);
|
|
253
|
-
|
|
254
|
-
_templateObject4 = function () {
|
|
255
|
-
return data;
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
return data;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
function _templateObject3() {
|
|
262
|
-
const data = _taggedTemplateLiteral(["\n <label>\n <input\n data-holder\n type=\"checkbox\"\n name=", "\n ?required=", "\n ?checked=", "\n @change=", "\n >\n <div>", "</div>\n </label>\n "]);
|
|
263
|
-
|
|
264
|
-
_templateObject3 = function () {
|
|
265
|
-
return data;
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
return data;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
function _templateObject2() {
|
|
272
|
-
const data = _taggedTemplateLiteral(["\n <textarea\n name=", "\n id=", "\n placeholder=", "\n data-holder\n ?required=", "\n autocomplete=", "\n maxlength=", "\n minlength=", "\n @change=", "\n >", "</textarea>\n "]);
|
|
273
|
-
|
|
274
|
-
_templateObject2 = function () {
|
|
275
|
-
return data;
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
return data;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
function _templateObject() {
|
|
282
|
-
const data = _taggedTemplateLiteral(["\n <input\n type=\"text\"\n placeholder=", "\n name=", "\n id=", "\n value=", "\n pattern=", "\n title=", "\n ?required=", "\n autocomplete=", "\n data-holder\n maxlength=", "\n minlength=", "\n @change=", "\n />\n "]);
|
|
283
|
-
|
|
284
|
-
_templateObject = function () {
|
|
285
|
-
return data;
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
return data;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
292
|
-
|
|
293
|
-
import { FormMixin } from '../templatesDependencies/formMixin.js';
|
|
294
|
-
import { FormCheckboxMixin } from '../templatesDependencies/formCheckboxMixin.js';
|
|
295
|
-
import { FormMinMaxMixin } from '../templatesDependencies/formMinMaxMixin.js';
|
|
296
|
-
import { FormNumberMixin } from '../templatesDependencies/formNumberMixin.js';
|
|
297
|
-
import { FormDropdownMixin } from '../templatesDependencies/formDropdownMixin.js';
|
|
298
|
-
import { FormCheckboxesMixin } from '../templatesDependencies/formCheckboxesMixin.js';
|
|
299
|
-
import { FormRadioMixin } from '../templatesDependencies/formRadioMixin.js';
|
|
300
|
-
import { FormFileMixin } from '../templatesDependencies/formFileMixin.js';
|
|
301
|
-
import { MultipleFormMixin } from '../templatesDependencies/multipleFormMixin.js';
|
|
302
|
-
import { MultipleselectFormMixin } from '../templatesDependencies/multipleselectFormMixin.js';
|
|
303
|
-
import { RangeMixin } from '../templatesDependencies/rangeMixin.js';
|
|
304
|
-
import { FilterRangeFormMixin } from '../templatesDependencies/filterRangeFormMixin.js';
|
|
305
|
-
import { ValueRichtextMixin } from '../templatesDependencies/valueRichtextMixin.js';
|
|
306
|
-
import { PatternMixin } from '../templatesDependencies/patternMixin.js';
|
|
307
|
-
import { FormStepMixin } from '../templatesDependencies/formStepMixin.js';
|
|
308
|
-
import { FormLengthMixin } from '../templatesDependencies/formLengthMixin.js';
|
|
309
|
-
import { html } from '../../_snowpack/pkg/lit-html.js';
|
|
310
|
-
import { ifDefined } from '../../_snowpack/pkg/lit-html/directives/if-defined.js';
|
|
311
|
-
export const formTemplates = {
|
|
312
|
-
text: {
|
|
313
|
-
template: (value, attributes) => html(_templateObject(), ifDefined(attributes.placeholder), ifDefined(attributes.name), ifDefined(attributes.id), value || '', ifDefined(attributes.pattern), ifDefined(attributes.title), attributes.required, ifDefined(attributes.autocomplete), ifDefined(attributes.maxlength), ifDefined(attributes.minlength), attributes.onChange),
|
|
314
|
-
dependencies: [FormMixin, PatternMixin, FormLengthMixin]
|
|
315
|
-
},
|
|
316
|
-
textarea: {
|
|
317
|
-
template: (value, attributes) => html(_templateObject2(), ifDefined(attributes.name), ifDefined(attributes.id), ifDefined(attributes.placeholder), attributes.required, ifDefined(attributes.autocomplete), ifDefined(attributes.maxlength), ifDefined(attributes.minlength), attributes.onChange, value),
|
|
318
|
-
dependencies: [FormMixin, FormLengthMixin]
|
|
319
|
-
},
|
|
320
|
-
checkbox: {
|
|
321
|
-
template: (value, attributes) => html(_templateObject3(), ifDefined(attributes.name), attributes.required, value === 'true', attributes.onChange, attributes.label || attributes.name),
|
|
322
|
-
dependencies: [FormCheckboxMixin, FormMixin]
|
|
323
|
-
},
|
|
324
|
-
date: {
|
|
325
|
-
template: (_value, attributes) => html(_templateObject4(), ifDefined(attributes.placeholder), ifDefined(attributes.name), ifDefined(attributes.id), attributes.required, ifDefined(attributes.originalValue), attributes.onChange),
|
|
326
|
-
dependencies: [FormMixin]
|
|
327
|
-
},
|
|
328
|
-
rangedate: {
|
|
329
|
-
template: (_value, attributes) => html(_templateObject5(), attributes.name || '', attributes.onChange, ifDefined(attributes.startValue), attributes.name || '', attributes.onChange, ifDefined(attributes.endValue)),
|
|
330
|
-
dependencies: [FilterRangeFormMixin, FormMixin]
|
|
331
|
-
},
|
|
332
|
-
number: {
|
|
333
|
-
template: (value, attributes) => html(_templateObject6(), ifDefined(attributes.placeholder), ifDefined(attributes.name), ifDefined(attributes.id), value, ifDefined(attributes.min), ifDefined(attributes.max), ifDefined(attributes.step), attributes.required, attributes.onChange),
|
|
334
|
-
dependencies: [FormNumberMixin, FormMinMaxMixin, FormMixin, FormStepMixin]
|
|
335
|
-
},
|
|
336
|
-
rangenumber: {
|
|
337
|
-
template: (_value, attributes) => html(_templateObject7(), attributes.name || '', attributes.onChange, ifDefined(attributes.startValue), attributes.name || '', attributes.onChange, ifDefined(attributes.endValue)),
|
|
338
|
-
dependencies: [FilterRangeFormMixin, FormNumberMixin, FormMixin]
|
|
339
|
-
},
|
|
340
|
-
hidden: {
|
|
341
|
-
template: (value, attributes) => html(_templateObject8(), ifDefined(attributes.name), value, attributes.onChange),
|
|
342
|
-
dependencies: [FormMixin]
|
|
343
|
-
},
|
|
344
|
-
dropdown: {
|
|
345
|
-
template: (value, attributes) => html(_templateObject9(), ifDefined(attributes.name), ifDefined(attributes.id), attributes.required, attributes.multiple, ifDefined(attributes.autocomplete), attributes.onChange, !(attributes.multiple || attributes.autocomplete) ? html(_templateObject10(), value === "", attributes.placeholder || '-') : '', (attributes.range || []).map(el => html(_templateObject11(), el.value, !attributes.multiple ? value === el.selectedValue : attributes.values.includes(el.selectedValue), el.label)), Object.entries(attributes.enum || []).map(([key, val]) => html(_templateObject12(), key, !attributes.multiple ? value === key : attributes.values.includes(key), val))),
|
|
346
|
-
dependencies: [FormDropdownMixin, FormMixin, RangeMixin]
|
|
347
|
-
},
|
|
348
|
-
radio: {
|
|
349
|
-
template: (value, attributes) => html(_templateObject13(), ifDefined(attributes.name), (attributes.range || []).map(el => html(_templateObject14(), ifDefined(attributes.id), el.value, attributes.required, value === el.selectedValue, el.label)), Object.entries(attributes.enum || []).map(([key, val]) => html(_templateObject15(), key, ifDefined(attributes.id), attributes.required, value === key, val))),
|
|
350
|
-
dependencies: [FormRadioMixin, FormMixin, RangeMixin]
|
|
351
|
-
},
|
|
352
|
-
multicheckbox: {
|
|
353
|
-
template: (_value, attributes) => html(_templateObject16(), ifDefined(attributes.name), (attributes.range || []).map(el => html(_templateObject17(), el.value, attributes.values.includes(el.selectedValue), el.label)), Object.entries(attributes.enum || []).map(([key, val]) => html(_templateObject18(), key, val))),
|
|
354
|
-
dependencies: [FormCheckboxesMixin, FormMixin, RangeMixin]
|
|
355
|
-
},
|
|
356
|
-
checkboxes: {
|
|
357
|
-
template: (_value, attributes) => html(_templateObject19(), ifDefined(attributes.name), ifDefined(attributes.range), ifDefined(attributes.enum), ifDefined(attributes.values), ifDefined(attributes.orderAsc), ifDefined(attributes.orderDesc), attributes.required),
|
|
358
|
-
dependencies: [MultipleselectFormMixin, FormMixin]
|
|
359
|
-
},
|
|
360
|
-
multiple: {
|
|
361
|
-
template: (_value, attributes) => html(_templateObject20(), (attributes.children || []).map((child, index) => html(_templateObject21(), attributes.name + index, child, ifDefined(attributes.removeClass), () => attributes.removeItem(index), attributes.removeLabel)), ifDefined(attributes.addClass), attributes.addItem, attributes.addLabel),
|
|
362
|
-
dependencies: [MultipleFormMixin, FormMixin]
|
|
363
|
-
},
|
|
364
|
-
multipleselect: {
|
|
365
|
-
template: (_value, attributes) => html(_templateObject22(), ifDefined(attributes.name), ifDefined(attributes.id), ifDefined(attributes.range), ifDefined(attributes.values), ifDefined(attributes.orderAsc), ifDefined(attributes.orderDesc), attributes.required),
|
|
366
|
-
dependencies: [MultipleselectFormMixin, FormMixin]
|
|
367
|
-
},
|
|
368
|
-
file: {
|
|
369
|
-
template: (value, attributes) => html(_templateObject23(), attributes.required, ifDefined(attributes.name), value || '', ifDefined(attributes.id), ifDefined(attributes.fileValue), attributes.selectFile, attributes.resetButtonHidden, attributes.resetFile, attributes.output),
|
|
370
|
-
dependencies: [FormFileMixin, FormMixin]
|
|
371
|
-
},
|
|
372
|
-
image: {
|
|
373
|
-
template: (value, attributes) => html(_templateObject24(), ifDefined(attributes.name), value || '', attributes.required, ifDefined(attributes.id), ifDefined(attributes.fileValue), attributes.selectFile, value || '', value === '', attributes.resetButtonHidden, attributes.resetFile, attributes.output),
|
|
374
|
-
dependencies: [FormFileMixin, FormMixin]
|
|
375
|
-
},
|
|
376
|
-
richtext: {
|
|
377
|
-
template: (_value, attributes) => html(_templateObject25(), ifDefined(attributes.name)),
|
|
378
|
-
dependencies: [ValueRichtextMixin, FormMixin]
|
|
379
|
-
},
|
|
380
|
-
color: {
|
|
381
|
-
template: (_value, attributes) => html(_templateObject26(), ifDefined(attributes.placeholder), ifDefined(attributes.id), ifDefined(attributes.name), attributes.required, ifDefined(attributes.originalValue), attributes.onChange),
|
|
382
|
-
dependencies: [FormMixin]
|
|
383
|
-
},
|
|
384
|
-
email: {
|
|
385
|
-
template: (value, attributes) => html(_templateObject27(), ifDefined(attributes.placeholder), ifDefined(attributes.id), ifDefined(attributes.name), value || '', attributes.required, ifDefined(attributes.maxlength), ifDefined(attributes.minlength), attributes.onChange),
|
|
386
|
-
dependencies: [FormMixin, FormLengthMixin]
|
|
387
|
-
},
|
|
388
|
-
password: {
|
|
389
|
-
template: (value, attributes) => html(_templateObject28(), ifDefined(attributes.placeholder), ifDefined(attributes.id), ifDefined(attributes.name), value || '', attributes.required, ifDefined(attributes.pattern), ifDefined(attributes.title), ifDefined(attributes.maxlength), ifDefined(attributes.minlength), attributes.onChange),
|
|
390
|
-
dependencies: [FormMixin, PatternMixin, FormLengthMixin]
|
|
391
|
-
},
|
|
392
|
-
time: {
|
|
393
|
-
template: (value, attributes) => html(_templateObject29(), ifDefined(attributes.placeholder), ifDefined(attributes.name), ifDefined(attributes.id), value || '', ifDefined(attributes.min), ifDefined(attributes.max), ifDefined(attributes.step), attributes.required, attributes.onChange),
|
|
394
|
-
dependencies: [FormMixin, FormMinMaxMixin, FormStepMixin]
|
|
395
|
-
}
|
|
396
|
-
};
|
|
397
|
-
//# sourceMappingURL=formTemplatesDirectory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["formTemplatesDirectory.ts"],"names":["FormMixin","FormCheckboxMixin","FormMinMaxMixin","FormNumberMixin","FormDropdownMixin","FormCheckboxesMixin","FormRadioMixin","FormFileMixin","MultipleFormMixin","MultipleselectFormMixin","RangeMixin","FilterRangeFormMixin","ValueRichtextMixin","PatternMixin","FormStepMixin","FormLengthMixin","html","ifDefined","formTemplates","text","template","value","attributes","placeholder","name","id","pattern","title","required","autocomplete","maxlength","minlength","onChange","dependencies","textarea","checkbox","label","date","_value","originalValue","rangedate","startValue","endValue","number","min","max","step","rangenumber","hidden","dropdown","multiple","range","map","el","selectedValue","values","includes","Object","entries","enum","key","val","radio","multicheckbox","checkboxes","orderAsc","orderDesc","children","child","index","removeClass","removeItem","removeLabel","addClass","addItem","addLabel","multipleselect","file","fileValue","selectFile","resetButtonHidden","resetFile","output","image","richtext","color","email","password","time"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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YAAY,EAAE,CAAEjC,SAAF,EAAaa,YAAb,EAA2BE,eAA3B;AAjBN,GAhXiB;AAmY3ByE,EAAAA,IAAI,EAAE;AACJpE,IAAAA,QAAQ,EAAE,CAACC,KAAD,EAAgBC,UAAhB,KAAoCN,IAApC,sBAGQC,SAAS,CAACK,UAAU,CAACC,WAAZ,CAHjB,EAICN,SAAS,CAACK,UAAU,CAACE,IAAZ,CAJV,EAKDP,SAAS,CAACK,UAAU,CAACG,EAAZ,CALR,EAMEJ,KAAK,IAAI,EANX,EAOAJ,SAAS,CAACK,UAAU,CAACsB,GAAZ,CAPT,EAQA3B,SAAS,CAACK,UAAU,CAACuB,GAAZ,CART,EASC5B,SAAS,CAACK,UAAU,CAACwB,IAAZ,CATV,EAUMxB,UAAU,CAACM,QAVjB,EAYIN,UAAU,CAACU,QAZf,CADN;AAgBJC,IAAAA,YAAY,EAAE,CAAEjC,SAAF,EAAaE,eAAb,EAA8BY,aAA9B;AAhBV;AAnYqB,CAAtB","sourcesContent":["import { FormMixin } from '../templatesDependencies/formMixin';\nimport { FormCheckboxMixin } from '../templatesDependencies/formCheckboxMixin';\nimport { FormMinMaxMixin } from '../templatesDependencies/formMinMaxMixin';\nimport { FormNumberMixin } from '../templatesDependencies/formNumberMixin';\nimport { FormDropdownMixin } from '../templatesDependencies/formDropdownMixin';\nimport { FormCheckboxesMixin } from '../templatesDependencies/formCheckboxesMixin';\nimport { FormRadioMixin } from '../templatesDependencies/formRadioMixin';\nimport { FormFileMixin } from '../templatesDependencies/formFileMixin';\nimport { MultipleFormMixin } from '../templatesDependencies/multipleFormMixin';\nimport { MultipleselectFormMixin } from '../templatesDependencies/multipleselectFormMixin';\nimport { RangeMixin } from '../templatesDependencies/rangeMixin';\nimport { FilterRangeFormMixin } from '../templatesDependencies/filterRangeFormMixin';\nimport { ValueRichtextMixin } from '../templatesDependencies/valueRichtextMixin';\nimport { PatternMixin } from '../templatesDependencies/patternMixin';\nimport { FormStepMixin } from '../templatesDependencies/formStepMixin';\nimport { FormLengthMixin } from '../templatesDependencies/formLengthMixin';\n\nimport { html } from 'lit-html';\nimport { ifDefined } from 'lit-html/directives/if-defined';\n\nexport const formTemplates = {\n text: {\n template: (value: string, attributes: any) => html`\n <input\n type=\"text\"\n placeholder=${ifDefined(attributes.placeholder)}\n name=${ifDefined(attributes.name)}\n id=${ifDefined(attributes.id)}\n value=${value || ''}\n pattern=${ifDefined(attributes.pattern)}\n title=${ifDefined(attributes.title)}\n ?required=${attributes.required}\n autocomplete=${ifDefined(attributes.autocomplete)}\n data-holder\n maxlength=${ifDefined(attributes.maxlength)}\n minlength=${ifDefined(attributes.minlength)}\n @change=${attributes.onChange}\n />\n `,\n dependencies: [ FormMixin, PatternMixin, FormLengthMixin ]\n },\n textarea: {\n template: (value: string, attributes: any) => html`\n <textarea\n name=${ifDefined(attributes.name)}\n id=${ifDefined(attributes.id)}\n placeholder=${ifDefined(attributes.placeholder)}\n data-holder\n ?required=${attributes.required}\n autocomplete=${ifDefined(attributes.autocomplete)}\n maxlength=${ifDefined(attributes.maxlength)}\n minlength=${ifDefined(attributes.minlength)}\n @change=${attributes.onChange}\n >${value}</textarea>\n `,\n dependencies: [ FormMixin, FormLengthMixin ]\n },\n checkbox: {\n template: (value: string, attributes: any) => html`\n <label>\n <input\n data-holder\n type=\"checkbox\"\n name=${ifDefined(attributes.name)}\n ?required=${attributes.required}\n ?checked=${value === 'true'}\n @change=${attributes.onChange}\n >\n <div>${attributes.label || attributes.name}</div>\n </label>\n `,\n dependencies: [ FormCheckboxMixin, FormMixin ]\n },\n date: {\n template: (_value: string, attributes: any) => html`\n <input\n type=\"date\"\n placeholder=${ifDefined(attributes.placeholder)}\n name=${ifDefined(attributes.name)}\n id=${ifDefined(attributes.id)}\n ?required=${attributes.required}\n value=${ifDefined(attributes.originalValue)}\n data-holder\n @change=${attributes.onChange}\n />\n `,\n dependencies: [ FormMixin ]\n },\n rangedate: {\n template: (_value: string, attributes: any) => html`\n <input\n data-holder\n type=\"date\"\n name=\"${attributes.name || ''}-start\"\n @change=${attributes.onChange}\n value=${ifDefined(attributes.startValue)}\n />\n <input\n data-holder\n type=\"date\"\n name=\"${attributes.name || ''}-end\"\n @change=${attributes.onChange}\n value=${ifDefined(attributes.endValue)}\n />\n `,\n dependencies: [ FilterRangeFormMixin, FormMixin ]\n },\n number: {\n template: (value: string, attributes: any) => html`\n <input\n type=\"number\"\n placeholder=${ifDefined(attributes.placeholder)}\n name=${ifDefined(attributes.name)}\n id=${ifDefined(attributes.id)}\n value=${value}\n min=${ifDefined(attributes.min)}\n max=${ifDefined(attributes.max)}\n step=${ifDefined(attributes.step)}\n ?required=${attributes.required}\n data-holder\n @change=${attributes.onChange}\n />\n `,\n dependencies: [ FormNumberMixin, FormMinMaxMixin, FormMixin, FormStepMixin ]\n },\n rangenumber: {\n template: (_value: string, attributes: any) => html`\n <input\n data-holder\n type=\"number\"\n name=\"${attributes.name || ''}-start\"\n @change=${attributes.onChange}\n value=${ifDefined(attributes.startValue)}\n />\n <input\n data-holder\n type=\"number\"\n name=\"${attributes.name || ''}-end\"\n @change=${attributes.onChange}\n value=${ifDefined(attributes.endValue)}\n />\n `,\n dependencies: [ FilterRangeFormMixin, FormNumberMixin, FormMixin ]\n },\n hidden: {\n template: (value: string, attributes: any) => html`\n <input\n type=\"hidden\"\n name=${ifDefined(attributes.name)}\n value=${value}\n data-holder\n @change=${attributes.onChange}\n />\n `,\n dependencies: [ FormMixin ]\n },\n dropdown: {\n template: (value: string, attributes: any) => html`\n <select\n name=${ifDefined(attributes.name)}\n id=${ifDefined(attributes.id)}\n data-holder\n ?required=${attributes.required}\n ?multiple=${attributes.multiple}\n autocomplete=${ifDefined(attributes.autocomplete)}\n @change=${attributes.onChange}\n >\n ${!(attributes.multiple || attributes.autocomplete) ? html`\n <option value=\"\" ?selected=${value === \"\"}>\n ${attributes.placeholder || '-'}\n </option>\n ` : ''}\n ${(attributes.range || []).map(el => html`\n <option\n value=${el.value}\n ?selected=${!attributes.multiple ? value === el.selectedValue : attributes.values.includes(el.selectedValue)}\n >\n ${el.label}\n </option>\n `)}\n ${Object.entries(attributes.enum || []).map(([key, val]) => html`\n <option\n value=\"${key}\"\n ?selected=${!attributes.multiple ? value === key : attributes.values.includes(key)}\n >\n ${val}\n </option>\n `)}\n </select>\n `,\n dependencies: [ FormDropdownMixin, FormMixin, RangeMixin ]\n },\n radio: {\n template: (value: string, attributes: any) => html`\n <div\n name=${ifDefined(attributes.name)}\n >\n ${(attributes.range || []).map(el => html`\n <label>\n <input\n type=\"radio\"\n name=${ifDefined(attributes.id)}\n value=${el.value}\n ?required=${attributes.required}\n ?checked=${value === el.selectedValue}\n > <span>${el.label}</span>\n </label>\n `)}\n ${Object.entries(attributes.enum || []).map(([key, val]) => html`\n <label>\n <input\n type=\"radio\"\n value=\"${key}\"\n name=${ifDefined(attributes.id)}\n ?required=${attributes.required}\n ?checked=${value === key}\n > <span>${val}</span>\n </label>\n `)}\n `,\n dependencies: [ FormRadioMixin, FormMixin, RangeMixin ]\n },\n multicheckbox: {\n template: (_value: string, attributes: any) => html`\n <div\n name=${ifDefined(attributes.name)}\n >\n ${(attributes.range || []).map(el => html`\n <label>\n <input\n type=\"checkbox\"\n value=${el.value}\n ?checked=${attributes.values.includes(el.selectedValue)}\n /> <span>${el.label}</span>\n </label>\n `)}\n ${Object.entries(attributes.enum || [])\n .map(([key, val]) => html`\n <label>\n <input type=\"checkbox\"\n value=\"${key}\"\n /> <span>${val}</span>\n </label>\n `)}\n </select>\n `,\n dependencies: [ FormCheckboxesMixin, FormMixin, RangeMixin ]\n },\n checkboxes: {\n template: (_value: string, attributes: any) => html`\n <solid-form-multicheckbox\n data-holder\n name=${ifDefined(attributes.name)}\n range=${ifDefined(attributes.range)}\n enum=${ifDefined(attributes.enum)}\n values=${ifDefined(attributes.values)}\n order-asc=${ifDefined(attributes.orderAsc)}\n order-desc=${ifDefined(attributes.orderDesc)}\n ?required=${attributes.required}\n ></solid-form-multicheckbox>\n `,\n dependencies: [ MultipleselectFormMixin, FormMixin ]\n },\n multiple: {\n template: (_value: string, attributes: any) => html`\n ${(attributes.children || []).map((child, index) => html`\n <div data-index=${attributes.name + index}>\n ${child}\n <button type=\"button\" class=${ifDefined(attributes.removeClass)} @click=${() => attributes.removeItem(index)}>${attributes.removeLabel}</button>\n </div>\n `)}\n <button type=\"button\" class=${ifDefined(attributes.addClass)} @click=${attributes.addItem}>${attributes.addLabel}</button>\n `,\n dependencies: [ MultipleFormMixin, FormMixin ]\n },\n multipleselect: {\n template: (_value: string, attributes: any) => html`\n <solid-form-dropdown\n data-holder\n name=${ifDefined(attributes.name)}\n data-id=${ifDefined(attributes.id)}\n range=${ifDefined(attributes.range)}\n values=${ifDefined(attributes.values)}\n order-asc=${ifDefined(attributes.orderAsc)}\n order-desc=${ifDefined(attributes.orderDesc)}\n ?required=${attributes.required}\n multiple\n ></solid-form-dropdown>\n `,\n dependencies: [ MultipleselectFormMixin, FormMixin ]\n },\n file: {\n template: (value: string, attributes: any) => html`\n <div>\n <input\n data-holder\n type=\"text\"\n ?required=${attributes.required}\n name=${ifDefined(attributes.name)}\n value=${value || ''}\n >\n <input\n type=\"file\"\n id=${ifDefined(attributes.id)}\n value=${ifDefined(attributes.fileValue)}\n @change=${attributes.selectFile}\n />\n <button\n ?hidden=${attributes.resetButtonHidden}\n @click=${attributes.resetFile}\n >×</button>\n <span>${attributes.output}</span>\n </div>\n `,\n dependencies: [ FormFileMixin, FormMixin ]\n },\n image: {\n template: (value: string, attributes: any) => html`\n <div>\n <input\n data-holder\n type=\"text\"\n name=${ifDefined(attributes.name)}\n value=${value || ''}\n ?required=${attributes.required}\n >\n <input\n type=\"file\"\n accept=\"image/*\"\n id=${ifDefined(attributes.id)}\n value=${ifDefined(attributes.fileValue)}\n @change=${attributes.selectFile}\n />\n <img\n src=${value || ''}\n ?hidden=${value === ''}\n />\n <button\n ?hidden=${attributes.resetButtonHidden}\n @click=${attributes.resetFile}\n >×</button>\n <span>${attributes.output}</span>\n </div>\n `,\n dependencies: [ FormFileMixin, FormMixin ]\n },\n richtext: {\n template: (_value: string, attributes: any) => html`\n <div \n data-richtext\n name=${ifDefined(attributes.name)}\n data-holder\n ></div>\n `,\n dependencies: [ ValueRichtextMixin, FormMixin ]\n },\n color: {\n template: (_value: string, attributes: any) => html`\n <input\n type=\"color\"\n placeholder=${ifDefined(attributes.placeholder)}\n id=${ifDefined(attributes.id)}\n name=${ifDefined(attributes.name)}\n ?required=${attributes.required}\n value=${ifDefined(attributes.originalValue)}\n data-holder\n @change=${attributes.onChange}\n />\n `,\n dependencies: [ FormMixin ]\n },\n email: {\n template: (value: string, attributes: any) => html`\n <input\n type=\"email\"\n placeholder=${ifDefined(attributes.placeholder)}\n id=${ifDefined(attributes.id)}\n name=${ifDefined(attributes.name)}\n value=${value || ''}\n ?required=${attributes.required}\n data-holder\n maxlength=${ifDefined(attributes.maxlength)}\n minlength=${ifDefined(attributes.minlength)}\n @change=${attributes.onChange}\n />\n `,\n dependencies: [ FormMixin, FormLengthMixin ]\n },\n password: {\n template: (value: string, attributes: any) => html`\n <input\n type=\"password\"\n placeholder=${ifDefined(attributes.placeholder)}\n id=${ifDefined(attributes.id)}\n name=${ifDefined(attributes.name)}\n value=${value || ''}\n ?required=${attributes.required}\n pattern=${ifDefined(attributes.pattern)}\n title=${ifDefined(attributes.title)}\n data-holder\n maxlength=${ifDefined(attributes.maxlength)}\n minlength=${ifDefined(attributes.minlength)}\n @change=${attributes.onChange}\n />\n `,\n dependencies: [ FormMixin, PatternMixin, FormLengthMixin ]\n },\n time: {\n template: (value: string, attributes: any) => html`\n <input\n type=\"time\"\n placeholder=${ifDefined(attributes.placeholder)}\n name=${ifDefined(attributes.name)}\n id=${ifDefined(attributes.id)}\n value=${value || ''}\n min=${ifDefined(attributes.min)}\n max=${ifDefined(attributes.max)}\n step=${ifDefined(attributes.step)}\n ?required=${attributes.required}\n data-holder\n @change=${attributes.onChange}\n />\n `,\n dependencies: [ FormMixin, FormMinMaxMixin, FormStepMixin ]\n },\n}\n"]}
|