@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,295 +1,3 @@
|
|
|
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\" @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\" @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
1
|
import { FormMixin } from '../templatesDependencies/formMixin.js';
|
|
294
2
|
import { FormCheckboxMixin } from '../templatesDependencies/formCheckboxMixin.js';
|
|
295
3
|
import { FormMinMaxMixin } from '../templatesDependencies/formMinMaxMixin.js';
|
|
@@ -310,88 +18,415 @@ import { html } from '../../_snowpack/pkg/lit-html.js';
|
|
|
310
18
|
import { ifDefined } from '../../_snowpack/pkg/lit-html/directives/if-defined.js';
|
|
311
19
|
export const formTemplates = {
|
|
312
20
|
text: {
|
|
313
|
-
template: (value, attributes) => html
|
|
21
|
+
template: (value, attributes) => html`
|
|
22
|
+
<input
|
|
23
|
+
type="text"
|
|
24
|
+
placeholder=${ifDefined(attributes.placeholder)}
|
|
25
|
+
name=${ifDefined(attributes.name)}
|
|
26
|
+
id=${ifDefined(attributes.id)}
|
|
27
|
+
value=${value || ''}
|
|
28
|
+
pattern=${ifDefined(attributes.pattern)}
|
|
29
|
+
title=${ifDefined(attributes.title)}
|
|
30
|
+
?required=${attributes.required}
|
|
31
|
+
autocomplete=${ifDefined(attributes.autocomplete)}
|
|
32
|
+
data-holder
|
|
33
|
+
maxlength=${ifDefined(attributes.maxlength)}
|
|
34
|
+
minlength=${ifDefined(attributes.minlength)}
|
|
35
|
+
@change=${attributes.onChange}
|
|
36
|
+
/>
|
|
37
|
+
`,
|
|
314
38
|
dependencies: [FormMixin, PatternMixin, FormLengthMixin]
|
|
315
39
|
},
|
|
316
40
|
textarea: {
|
|
317
|
-
template: (value, attributes) => html
|
|
41
|
+
template: (value, attributes) => html`
|
|
42
|
+
<textarea
|
|
43
|
+
name=${ifDefined(attributes.name)}
|
|
44
|
+
id=${ifDefined(attributes.id)}
|
|
45
|
+
placeholder=${ifDefined(attributes.placeholder)}
|
|
46
|
+
data-holder
|
|
47
|
+
?required=${attributes.required}
|
|
48
|
+
autocomplete=${ifDefined(attributes.autocomplete)}
|
|
49
|
+
maxlength=${ifDefined(attributes.maxlength)}
|
|
50
|
+
minlength=${ifDefined(attributes.minlength)}
|
|
51
|
+
@change=${attributes.onChange}
|
|
52
|
+
>${value}</textarea>
|
|
53
|
+
`,
|
|
318
54
|
dependencies: [FormMixin, FormLengthMixin]
|
|
319
55
|
},
|
|
320
56
|
checkbox: {
|
|
321
|
-
template: (value, attributes) => html
|
|
57
|
+
template: (value, attributes) => html`
|
|
58
|
+
<label>
|
|
59
|
+
<input
|
|
60
|
+
data-holder
|
|
61
|
+
type="checkbox"
|
|
62
|
+
name=${ifDefined(attributes.name)}
|
|
63
|
+
?required=${attributes.required}
|
|
64
|
+
?checked=${value === 'true'}
|
|
65
|
+
@change=${attributes.onChange}
|
|
66
|
+
>
|
|
67
|
+
<div>${attributes.label || attributes.name}</div>
|
|
68
|
+
</label>
|
|
69
|
+
`,
|
|
322
70
|
dependencies: [FormCheckboxMixin, FormMixin]
|
|
323
71
|
},
|
|
324
72
|
date: {
|
|
325
|
-
template: (_value, attributes) => html
|
|
73
|
+
template: (_value, attributes) => html`
|
|
74
|
+
<input
|
|
75
|
+
type="date"
|
|
76
|
+
placeholder=${ifDefined(attributes.placeholder)}
|
|
77
|
+
name=${ifDefined(attributes.name)}
|
|
78
|
+
id=${ifDefined(attributes.id)}
|
|
79
|
+
?required=${attributes.required}
|
|
80
|
+
value=${ifDefined(attributes.originalValue)}
|
|
81
|
+
data-holder
|
|
82
|
+
@change=${attributes.onChange}
|
|
83
|
+
/>
|
|
84
|
+
`,
|
|
326
85
|
dependencies: [FormMixin]
|
|
327
86
|
},
|
|
328
87
|
rangedate: {
|
|
329
|
-
template: (_value, attributes) => html
|
|
88
|
+
template: (_value, attributes) => html`
|
|
89
|
+
<input
|
|
90
|
+
data-holder
|
|
91
|
+
type="date"
|
|
92
|
+
name="${attributes.name || ''}-start"
|
|
93
|
+
@change=${attributes.onChange}
|
|
94
|
+
value=${ifDefined(attributes.startValue)}
|
|
95
|
+
/>
|
|
96
|
+
<input
|
|
97
|
+
data-holder
|
|
98
|
+
type="date"
|
|
99
|
+
name="${attributes.name || ''}-end"
|
|
100
|
+
@change=${attributes.onChange}
|
|
101
|
+
value=${ifDefined(attributes.endValue)}
|
|
102
|
+
/>
|
|
103
|
+
`,
|
|
330
104
|
dependencies: [FilterRangeFormMixin, FormMixin]
|
|
331
105
|
},
|
|
332
106
|
number: {
|
|
333
|
-
template: (value, attributes) => html
|
|
107
|
+
template: (value, attributes) => html`
|
|
108
|
+
<input
|
|
109
|
+
type="number"
|
|
110
|
+
placeholder=${ifDefined(attributes.placeholder)}
|
|
111
|
+
name=${ifDefined(attributes.name)}
|
|
112
|
+
id=${ifDefined(attributes.id)}
|
|
113
|
+
value=${value}
|
|
114
|
+
min=${ifDefined(attributes.min)}
|
|
115
|
+
max=${ifDefined(attributes.max)}
|
|
116
|
+
step=${ifDefined(attributes.step)}
|
|
117
|
+
?required=${attributes.required}
|
|
118
|
+
data-holder
|
|
119
|
+
@change=${attributes.onChange}
|
|
120
|
+
/>
|
|
121
|
+
`,
|
|
334
122
|
dependencies: [FormNumberMixin, FormMinMaxMixin, FormMixin, FormStepMixin]
|
|
335
123
|
},
|
|
336
124
|
rangenumber: {
|
|
337
|
-
template: (_value, attributes) => html
|
|
125
|
+
template: (_value, attributes) => html`
|
|
126
|
+
<input
|
|
127
|
+
data-holder
|
|
128
|
+
type="number"
|
|
129
|
+
name="${attributes.name || ''}-start"
|
|
130
|
+
@change=${attributes.onChange}
|
|
131
|
+
value=${ifDefined(attributes.startValue)}
|
|
132
|
+
/>
|
|
133
|
+
<input
|
|
134
|
+
data-holder
|
|
135
|
+
type="number"
|
|
136
|
+
name="${attributes.name || ''}-end"
|
|
137
|
+
@change=${attributes.onChange}
|
|
138
|
+
value=${ifDefined(attributes.endValue)}
|
|
139
|
+
/>
|
|
140
|
+
`,
|
|
338
141
|
dependencies: [FilterRangeFormMixin, FormNumberMixin, FormMixin]
|
|
339
142
|
},
|
|
340
143
|
hidden: {
|
|
341
|
-
template: (value, attributes) => html
|
|
144
|
+
template: (value, attributes) => html`
|
|
145
|
+
<input
|
|
146
|
+
type="hidden"
|
|
147
|
+
name=${ifDefined(attributes.name)}
|
|
148
|
+
value=${value}
|
|
149
|
+
data-holder
|
|
150
|
+
@change=${attributes.onChange}
|
|
151
|
+
/>
|
|
152
|
+
`,
|
|
342
153
|
dependencies: [FormMixin]
|
|
343
154
|
},
|
|
344
155
|
dropdown: {
|
|
345
|
-
template: (value, attributes) => html
|
|
156
|
+
template: (value, attributes) => html`
|
|
157
|
+
<select
|
|
158
|
+
name=${ifDefined(attributes.name)}
|
|
159
|
+
id=${ifDefined(attributes.id)}
|
|
160
|
+
data-holder
|
|
161
|
+
?required=${attributes.required}
|
|
162
|
+
?multiple=${attributes.multiple}
|
|
163
|
+
autocomplete=${ifDefined(attributes.autocomplete)}
|
|
164
|
+
@change=${attributes.onChange}
|
|
165
|
+
>
|
|
166
|
+
${!(attributes.multiple || attributes.autocomplete) ? html`
|
|
167
|
+
<option value="" ?selected=${value === ""}>
|
|
168
|
+
${attributes.placeholder || '-'}
|
|
169
|
+
</option>
|
|
170
|
+
` : ''}
|
|
171
|
+
${(attributes.range || []).map(el => html`
|
|
172
|
+
<option
|
|
173
|
+
value=${el.value}
|
|
174
|
+
?selected=${!attributes.multiple ? value === el.selectedValue : attributes.values.includes(el.selectedValue)}
|
|
175
|
+
>
|
|
176
|
+
${el.label}
|
|
177
|
+
</option>
|
|
178
|
+
`)}
|
|
179
|
+
${Object.entries(attributes.enum || []).map(_ref => {
|
|
180
|
+
let [key, val] = _ref;
|
|
181
|
+
return html`
|
|
182
|
+
<option
|
|
183
|
+
value="${key}"
|
|
184
|
+
?selected=${!attributes.multiple ? value === key : attributes.values.includes(key)}
|
|
185
|
+
>
|
|
186
|
+
${val}
|
|
187
|
+
</option>
|
|
188
|
+
`;
|
|
189
|
+
})}
|
|
190
|
+
</select>
|
|
191
|
+
`,
|
|
346
192
|
dependencies: [FormDropdownMixin, FormMixin, RangeMixin]
|
|
347
193
|
},
|
|
348
194
|
radio: {
|
|
349
|
-
template: (value, attributes) => html
|
|
195
|
+
template: (value, attributes) => html`
|
|
196
|
+
<div
|
|
197
|
+
name=${ifDefined(attributes.name)}
|
|
198
|
+
>
|
|
199
|
+
${(attributes.range || []).map(el => html`
|
|
200
|
+
<label>
|
|
201
|
+
<input
|
|
202
|
+
type="radio"
|
|
203
|
+
name=${ifDefined(attributes.id)}
|
|
204
|
+
value=${el.value}
|
|
205
|
+
?required=${attributes.required}
|
|
206
|
+
?checked=${value === el.selectedValue}
|
|
207
|
+
> <span>${el.label}</span>
|
|
208
|
+
</label>
|
|
209
|
+
`)}
|
|
210
|
+
${Object.entries(attributes.enum || []).map(_ref2 => {
|
|
211
|
+
let [key, val] = _ref2;
|
|
212
|
+
return html`
|
|
213
|
+
<label>
|
|
214
|
+
<input
|
|
215
|
+
type="radio"
|
|
216
|
+
value="${key}"
|
|
217
|
+
name=${ifDefined(attributes.id)}
|
|
218
|
+
?required=${attributes.required}
|
|
219
|
+
?checked=${value === key}
|
|
220
|
+
> <span>${val}</span>
|
|
221
|
+
</label>
|
|
222
|
+
`;
|
|
223
|
+
})}
|
|
224
|
+
`,
|
|
350
225
|
dependencies: [FormRadioMixin, FormMixin, RangeMixin]
|
|
351
226
|
},
|
|
352
227
|
multicheckbox: {
|
|
353
|
-
template: (_value, attributes) => html
|
|
228
|
+
template: (_value, attributes) => html`
|
|
229
|
+
<div
|
|
230
|
+
name=${ifDefined(attributes.name)}
|
|
231
|
+
>
|
|
232
|
+
${(attributes.range || []).map(el => html`
|
|
233
|
+
<label>
|
|
234
|
+
<input
|
|
235
|
+
type="checkbox"
|
|
236
|
+
value=${el.value}
|
|
237
|
+
?checked=${attributes.values.includes(el.selectedValue)}
|
|
238
|
+
/> <span>${el.label}</span>
|
|
239
|
+
</label>
|
|
240
|
+
`)}
|
|
241
|
+
${Object.entries(attributes.enum || []).map(_ref3 => {
|
|
242
|
+
let [key, val] = _ref3;
|
|
243
|
+
return html`
|
|
244
|
+
<label>
|
|
245
|
+
<input type="checkbox"
|
|
246
|
+
value="${key}"
|
|
247
|
+
/> <span>${val}</span>
|
|
248
|
+
</label>
|
|
249
|
+
`;
|
|
250
|
+
})}
|
|
251
|
+
</select>
|
|
252
|
+
`,
|
|
354
253
|
dependencies: [FormCheckboxesMixin, FormMixin, RangeMixin]
|
|
355
254
|
},
|
|
356
255
|
checkboxes: {
|
|
357
|
-
template: (_value, attributes) => html
|
|
256
|
+
template: (_value, attributes) => html`
|
|
257
|
+
<solid-form-multicheckbox
|
|
258
|
+
data-holder
|
|
259
|
+
name=${ifDefined(attributes.name)}
|
|
260
|
+
range=${ifDefined(attributes.range)}
|
|
261
|
+
enum=${ifDefined(attributes.enum)}
|
|
262
|
+
values=${ifDefined(attributes.values)}
|
|
263
|
+
order-asc=${ifDefined(attributes.orderAsc)}
|
|
264
|
+
order-desc=${ifDefined(attributes.orderDesc)}
|
|
265
|
+
?required=${attributes.required}
|
|
266
|
+
></solid-form-multicheckbox>
|
|
267
|
+
`,
|
|
358
268
|
dependencies: [MultipleselectFormMixin, FormMixin]
|
|
359
269
|
},
|
|
360
270
|
multiple: {
|
|
361
|
-
template: (_value, attributes) => html
|
|
271
|
+
template: (_value, attributes) => html`
|
|
272
|
+
${(attributes.children || []).map((child, index) => html`
|
|
273
|
+
<div data-index=${attributes.name + index}>
|
|
274
|
+
${child}
|
|
275
|
+
<button type="button" class=${ifDefined(attributes.removeClass)} @click=${() => attributes.removeItem(index)}>${attributes.removeLabel}</button>
|
|
276
|
+
</div>
|
|
277
|
+
`)}
|
|
278
|
+
<button type="button" class=${ifDefined(attributes.addClass)} @click=${attributes.addItem}>${attributes.addLabel}</button>
|
|
279
|
+
`,
|
|
362
280
|
dependencies: [MultipleFormMixin, FormMixin]
|
|
363
281
|
},
|
|
364
282
|
multipleselect: {
|
|
365
|
-
template: (_value, attributes) => html
|
|
283
|
+
template: (_value, attributes) => html`
|
|
284
|
+
<solid-form-dropdown
|
|
285
|
+
data-holder
|
|
286
|
+
name=${ifDefined(attributes.name)}
|
|
287
|
+
data-id=${ifDefined(attributes.id)}
|
|
288
|
+
range=${ifDefined(attributes.range)}
|
|
289
|
+
values=${ifDefined(attributes.values)}
|
|
290
|
+
order-asc=${ifDefined(attributes.orderAsc)}
|
|
291
|
+
order-desc=${ifDefined(attributes.orderDesc)}
|
|
292
|
+
?required=${attributes.required}
|
|
293
|
+
multiple
|
|
294
|
+
></solid-form-dropdown>
|
|
295
|
+
`,
|
|
366
296
|
dependencies: [MultipleselectFormMixin, FormMixin]
|
|
367
297
|
},
|
|
368
298
|
file: {
|
|
369
|
-
template: (value, attributes) => html
|
|
299
|
+
template: (value, attributes) => html`
|
|
300
|
+
<div>
|
|
301
|
+
<input
|
|
302
|
+
data-holder
|
|
303
|
+
type="text"
|
|
304
|
+
?required=${attributes.required}
|
|
305
|
+
name=${ifDefined(attributes.name)}
|
|
306
|
+
value=${value || ''}
|
|
307
|
+
>
|
|
308
|
+
<input
|
|
309
|
+
type="file"
|
|
310
|
+
id=${ifDefined(attributes.id)}
|
|
311
|
+
value=${ifDefined(attributes.fileValue)}
|
|
312
|
+
@change=${attributes.selectFile}
|
|
313
|
+
/>
|
|
314
|
+
<button
|
|
315
|
+
?hidden=${attributes.resetButtonHidden}
|
|
316
|
+
@click=${attributes.resetFile}
|
|
317
|
+
>×</button>
|
|
318
|
+
<span>${attributes.output}</span>
|
|
319
|
+
</div>
|
|
320
|
+
`,
|
|
370
321
|
dependencies: [FormFileMixin, FormMixin]
|
|
371
322
|
},
|
|
372
323
|
image: {
|
|
373
|
-
template: (value, attributes) => html
|
|
324
|
+
template: (value, attributes) => html`
|
|
325
|
+
<div>
|
|
326
|
+
<input
|
|
327
|
+
data-holder
|
|
328
|
+
type="text"
|
|
329
|
+
name=${ifDefined(attributes.name)}
|
|
330
|
+
value=${value || ''}
|
|
331
|
+
?required=${attributes.required}
|
|
332
|
+
>
|
|
333
|
+
<input
|
|
334
|
+
type="file"
|
|
335
|
+
accept="image/*"
|
|
336
|
+
id=${ifDefined(attributes.id)}
|
|
337
|
+
value=${ifDefined(attributes.fileValue)}
|
|
338
|
+
@change=${attributes.selectFile}
|
|
339
|
+
/>
|
|
340
|
+
<img
|
|
341
|
+
src=${value || ''}
|
|
342
|
+
?hidden=${value === ''}
|
|
343
|
+
/>
|
|
344
|
+
<button
|
|
345
|
+
?hidden=${attributes.resetButtonHidden}
|
|
346
|
+
@click=${attributes.resetFile}
|
|
347
|
+
>×</button>
|
|
348
|
+
<span>${attributes.output}</span>
|
|
349
|
+
</div>
|
|
350
|
+
`,
|
|
374
351
|
dependencies: [FormFileMixin, FormMixin]
|
|
375
352
|
},
|
|
376
353
|
richtext: {
|
|
377
|
-
template: (_value, attributes) => html
|
|
354
|
+
template: (_value, attributes) => html`
|
|
355
|
+
<div
|
|
356
|
+
data-richtext
|
|
357
|
+
name=${ifDefined(attributes.name)}
|
|
358
|
+
data-holder
|
|
359
|
+
></div>
|
|
360
|
+
`,
|
|
378
361
|
dependencies: [ValueRichtextMixin, FormMixin]
|
|
379
362
|
},
|
|
380
363
|
color: {
|
|
381
|
-
template: (_value, attributes) => html
|
|
364
|
+
template: (_value, attributes) => html`
|
|
365
|
+
<input
|
|
366
|
+
type="color"
|
|
367
|
+
placeholder=${ifDefined(attributes.placeholder)}
|
|
368
|
+
id=${ifDefined(attributes.id)}
|
|
369
|
+
name=${ifDefined(attributes.name)}
|
|
370
|
+
?required=${attributes.required}
|
|
371
|
+
value=${ifDefined(attributes.originalValue)}
|
|
372
|
+
data-holder
|
|
373
|
+
@change=${attributes.onChange}
|
|
374
|
+
/>
|
|
375
|
+
`,
|
|
382
376
|
dependencies: [FormMixin]
|
|
383
377
|
},
|
|
384
378
|
email: {
|
|
385
|
-
template: (value, attributes) => html
|
|
379
|
+
template: (value, attributes) => html`
|
|
380
|
+
<input
|
|
381
|
+
type="email"
|
|
382
|
+
placeholder=${ifDefined(attributes.placeholder)}
|
|
383
|
+
id=${ifDefined(attributes.id)}
|
|
384
|
+
name=${ifDefined(attributes.name)}
|
|
385
|
+
value=${value || ''}
|
|
386
|
+
?required=${attributes.required}
|
|
387
|
+
data-holder
|
|
388
|
+
maxlength=${ifDefined(attributes.maxlength)}
|
|
389
|
+
minlength=${ifDefined(attributes.minlength)}
|
|
390
|
+
@change=${attributes.onChange}
|
|
391
|
+
/>
|
|
392
|
+
`,
|
|
386
393
|
dependencies: [FormMixin, FormLengthMixin]
|
|
387
394
|
},
|
|
388
395
|
password: {
|
|
389
|
-
template: (value, attributes) => html
|
|
396
|
+
template: (value, attributes) => html`
|
|
397
|
+
<input
|
|
398
|
+
type="password"
|
|
399
|
+
placeholder=${ifDefined(attributes.placeholder)}
|
|
400
|
+
id=${ifDefined(attributes.id)}
|
|
401
|
+
name=${ifDefined(attributes.name)}
|
|
402
|
+
value=${value || ''}
|
|
403
|
+
?required=${attributes.required}
|
|
404
|
+
pattern=${ifDefined(attributes.pattern)}
|
|
405
|
+
title=${ifDefined(attributes.title)}
|
|
406
|
+
data-holder
|
|
407
|
+
maxlength=${ifDefined(attributes.maxlength)}
|
|
408
|
+
minlength=${ifDefined(attributes.minlength)}
|
|
409
|
+
@change=${attributes.onChange}
|
|
410
|
+
/>
|
|
411
|
+
`,
|
|
390
412
|
dependencies: [FormMixin, PatternMixin, FormLengthMixin]
|
|
391
413
|
},
|
|
392
414
|
time: {
|
|
393
|
-
template: (value, attributes) => html
|
|
415
|
+
template: (value, attributes) => html`
|
|
416
|
+
<input
|
|
417
|
+
type="time"
|
|
418
|
+
placeholder=${ifDefined(attributes.placeholder)}
|
|
419
|
+
name=${ifDefined(attributes.name)}
|
|
420
|
+
id=${ifDefined(attributes.id)}
|
|
421
|
+
value=${value || ''}
|
|
422
|
+
min=${ifDefined(attributes.min)}
|
|
423
|
+
max=${ifDefined(attributes.max)}
|
|
424
|
+
step=${ifDefined(attributes.step)}
|
|
425
|
+
?required=${attributes.required}
|
|
426
|
+
data-holder
|
|
427
|
+
@change=${attributes.onChange}
|
|
428
|
+
/>
|
|
429
|
+
`,
|
|
394
430
|
dependencies: [FormMixin, FormMinMaxMixin, FormStepMixin]
|
|
395
431
|
}
|
|
396
|
-
};
|
|
397
|
-
//# sourceMappingURL=formTemplatesDirectory.js.map
|
|
432
|
+
};
|