diff --git a/j-Input/component.js b/j-Input/component.js index eb859b4f..ad951c8f 100644 --- a/j-Input/component.js +++ b/j-Input/component.js @@ -14,7 +14,7 @@ COMPONENT('input', 'maxlength:200;innerlabel:0;tabindex:0;dirkey:name;dirvalue:i }; W.ui_input_cache = {}; W.ui_input_cache.tags = { tags: 1, 'tags-lower': 1, 'tags-upper': 1, 'tags-slug': 1, 'tags-email': 1, 'tags-phone': 1, 'tags-url': 1, 'tags-id': 1 }; - W.ui_input_cache.template = Tangular.compile(('{{ if label }}
{{ if icon }}{{ fi }}{{ label | raw }}{{ after | raw }}
{{ fi }}
{{ if ricon || (type === \'number\' && increment) }}
{{ if type === \'number\' && !ricon }}{{ else }}{{ ricon | ui_input_icon }}{{ fi }}
{{ fi }}{{ if licon }}
{{ licon | ui_input_icon }}
{{ fi }}
{{ if placeholder }}
{{ placeholder }}
{{ fi }}{{ if tags }}{{ else if dirsource || type === \'icon\' || type === \'emoji\' || type === \'color\' }}
{{ else }}{{ if type === \'multiline\' }}{{ else }} 0}} maxlength="{{ maxlength }}"{{ fi }}{{ if autofocus }} autofocus{{ fi }} />{{ fi }}{{ fi }}
{{ if error }}{{ fi }}').format(cls)); + W.ui_input_cache.template = Tangular.compile(('{{ if label }}{{ fi }}
{{ if ricon || (type === \'number\' && increment) }}
{{ if type === \'number\' && !ricon }}{{ else }}{{ ricon | ui_input_icon }}{{ fi }}
{{ fi }}{{ if licon }}
{{ licon | ui_input_icon }}
{{ fi }}
{{ if placeholder }}
{{ placeholder }}
{{ fi }}{{ if tags }}{{ else if dirsource || type === \'icon\' || type === \'emoji\' || type === \'color\' }}
{{ else }}{{ if type === \'multiline\' }}{{ else }} 0}} maxlength="{{ maxlength }}"{{ fi }}{{ if autofocus }} autofocus{{ fi }} />{{ fi }}{{ fi }}
{{ if error }}{{ fi }}').format(cls)); }; var dirsourceprepare = function(arr) { @@ -51,6 +51,10 @@ COMPONENT('input', 'maxlength:200;innerlabel:0;tabindex:0;dirkey:name;dirvalue:i if (config.placeholder == 0) config.placeholder = '0'; + config.inputid = 'uiinput' + self.ID; + + var path = self.path ? self.path.toString() : ''; + config.NAME = path.replace(/\?/g, '').replace(/^\./, '').replace(/\./g, '_'); if (config.autofill) { if (typeof(config.autofill) === 'string') { config.NAME = config.autofill; @@ -1277,4 +1281,4 @@ COMPONENT('input', 'maxlength:200;innerlabel:0;tabindex:0;dirkey:name;dirvalue:i return (config.type === 'phone' || config.type === 'email') && (val != null && (type === 'string' && val.length !== 0)); }; -}); \ No newline at end of file +}); diff --git a/j-Input/component.json b/j-Input/component.json index 7aa00c5b..11a38cc0 100644 --- a/j-Input/component.json +++ b/j-Input/component.json @@ -1,6 +1,6 @@ { "datecreated": "2019-01-26T12:34:00.000Z", - "dateupdated": "2026-03-10T14:18:00.000Z", + "dateupdated": "2026-04-18T10:54:00.000Z", "name": "j-Input", "jcomponent": "19|20", "color": "white",