neo.mjs 5.18.0 → 6.0.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/apps/ServiceWorker.mjs +2 -2
- package/buildScripts/buildThemes.mjs +89 -192
- package/buildScripts/createClass.mjs +13 -11
- package/buildScripts/watchThemes.mjs +41 -83
- package/examples/ServiceWorker.mjs +2 -2
- package/examples/fieldWithPrefix/MainContainer.mjs +151 -0
- package/examples/fieldWithPrefix/app.mjs +6 -0
- package/examples/fieldWithPrefix/index.html +11 -0
- package/examples/fieldWithPrefix/neo-config.json +7 -0
- package/examples/form/field/fileupload/MainContainer.mjs +1 -1
- package/examples/form/field/fileupload/server.mjs +2 -2
- package/package.json +2 -2
- package/resources/scss/src/Global.scss +7 -7
- package/resources/scss/src/apps/covid/HeaderContainer.scss +25 -25
- package/resources/scss/src/apps/covid/country/Gallery.scss +6 -6
- package/resources/scss/src/apps/covid/country/Helix.scss +8 -8
- package/resources/scss/src/apps/covid/country/LineChartComponent.scss +2 -2
- package/resources/scss/src/apps/docs/ContentTabContainer.scss +3 -3
- package/resources/scss/src/apps/docs/HeaderContainer.scss +8 -8
- package/resources/scss/src/apps/docs/MainContainer.scss +1 -1
- package/resources/scss/src/apps/docs/classdetails/HeaderComponent.scss +1 -1
- package/resources/scss/src/apps/docs/classdetails/MembersList.scss +16 -16
- package/resources/scss/src/apps/docs/classdetails/TutorialComponent.scss +3 -3
- package/resources/scss/src/apps/website/HeaderContainer.scss +9 -9
- package/resources/scss/src/apps/website/MainContainer.scss +3 -3
- package/resources/scss/src/apps/website/blog/Container.scss +3 -3
- package/resources/scss/src/apps/website/blog/List.scss +8 -8
- package/resources/scss/src/apps/website/examples/List.scss +7 -7
- package/resources/scss/src/apps/website/home/TabContainer.scss +5 -5
- package/resources/scss/src/button/Base.scss +101 -101
- package/resources/scss/src/button/Split.scss +3 -3
- package/resources/scss/src/calendar/view/EditEventContainer.scss +4 -4
- package/resources/scss/src/calendar/view/MainContainer.scss +46 -46
- package/resources/scss/src/calendar/view/SettingsContainer.scss +3 -3
- package/resources/scss/src/calendar/view/YearComponent.scss +13 -13
- package/resources/scss/src/calendar/view/calendars/EditContainer.scss +4 -4
- package/resources/scss/src/calendar/view/calendars/List.scss +7 -7
- package/resources/scss/src/calendar/view/month/Component.scss +15 -13
- package/resources/scss/src/calendar/view/week/Component.scss +12 -12
- package/resources/scss/src/calendar/view/week/TimeAxisComponent.scss +4 -4
- package/resources/scss/src/component/BoxLabel.scss +5 -5
- package/resources/scss/src/component/Chip.scss +13 -13
- package/resources/scss/src/component/Circle.scss +2 -2
- package/resources/scss/src/component/DateSelector.scss +28 -28
- package/resources/scss/src/component/Helix.scss +1 -1
- package/resources/scss/src/component/Process.scss +17 -17
- package/resources/scss/src/component/Progress.scss +2 -2
- package/resources/scss/src/component/Splitter.scss +6 -6
- package/resources/scss/src/component/StatusBadge.scss +21 -21
- package/resources/scss/src/component/Timer.scss +9 -9
- package/resources/scss/src/component/Toast.scss +10 -10
- package/resources/scss/src/component/Video.scss +5 -5
- package/resources/scss/src/container/Accordion.scss +3 -3
- package/resources/scss/src/container/AccordionItem.scss +15 -15
- package/resources/scss/src/container/Base.scss +3 -3
- package/resources/scss/src/container/Panel.scss +4 -4
- package/resources/scss/src/container/Viewport.scss +2 -2
- package/resources/scss/src/dialog/Base.scss +8 -8
- package/resources/scss/src/draggable/list/DragZone.scss +2 -2
- package/resources/scss/src/examples/ConfigurationPanel.scss +3 -3
- package/resources/scss/src/examples/calendar/basic/MainContainer.scss +2 -2
- package/resources/scss/src/examples/fieldWithPrefix/MainContainer.scss +25 -0
- package/resources/scss/src/examples/treeSelectionModel/MainContainer.scss +6 -6
- package/resources/scss/src/form/Fieldset.scss +4 -4
- package/resources/scss/src/form/field/CheckBox.scss +10 -10
- package/resources/scss/src/form/field/FileUpload.scss +25 -12
- package/resources/scss/src/form/field/Number.scss +5 -5
- package/resources/scss/src/form/field/Picker.scss +3 -3
- package/resources/scss/src/form/field/Range.scss +5 -5
- package/resources/scss/src/form/field/Search.scss +1 -1
- package/resources/scss/src/form/field/Select.scss +8 -8
- package/resources/scss/src/form/field/Switch.scss +6 -6
- package/resources/scss/src/form/field/Text.scss +78 -78
- package/resources/scss/src/form/field/TextArea.scss +1 -1
- package/resources/scss/src/form/field/trigger/Base.scss +6 -6
- package/resources/scss/src/form/field/trigger/Clear.scss +2 -2
- package/resources/scss/src/form/field/trigger/CopyToClipboard.scss +3 -3
- package/resources/scss/src/form/field/trigger/Time.scss +5 -5
- package/resources/scss/src/grid/Container.scss +6 -6
- package/resources/scss/src/grid/View.scss +11 -11
- package/resources/scss/src/grid/header/Button.scss +5 -5
- package/resources/scss/src/grid/header/Toolbar.scss +2 -2
- package/resources/scss/src/list/Base.scss +11 -11
- package/resources/scss/src/list/Chip.scss +3 -3
- package/resources/scss/src/list/Circle.scss +2 -2
- package/resources/scss/src/menu/List.scss +21 -21
- package/resources/scss/src/menu/Panel.scss +1 -1
- package/resources/scss/src/plugin/PrefixField.scss +5 -0
- package/resources/scss/src/sitemap/Component.scss +2 -2
- package/resources/scss/src/tab/Container.scss +1 -1
- package/resources/scss/src/tab/Strip.scss +7 -7
- package/resources/scss/src/tab/header/Button.scss +26 -26
- package/resources/scss/src/tab/header/Toolbar.scss +18 -18
- package/resources/scss/src/table/Container.scss +16 -16
- package/resources/scss/src/table/View.scss +11 -11
- package/resources/scss/src/table/header/Button.scss +5 -5
- package/resources/scss/src/toolbar/Base.scss +20 -20
- package/resources/scss/src/toolbar/Breadcrumb.scss +1 -1
- package/resources/scss/src/tree/List.scss +5 -5
- package/resources/scss/theme-dark/Global.scss +7 -17
- package/resources/scss/theme-dark/apps/covid/HeaderContainer.scss +10 -23
- package/resources/scss/theme-dark/apps/covid/country/Gallery.scss +7 -17
- package/resources/scss/theme-dark/apps/covid/country/Helix.scss +8 -19
- package/resources/scss/theme-dark/apps/covid/country/LineChartComponent.scss +3 -9
- package/resources/scss/theme-dark/apps/docs/ContentTabContainer.scss +4 -11
- package/resources/scss/theme-dark/apps/docs/HeaderContainer.scss +10 -23
- package/resources/scss/theme-dark/apps/docs/MainContainer.scss +3 -9
- package/resources/scss/theme-dark/apps/docs/classdetails/HeaderComponent.scss +4 -11
- package/resources/scss/theme-dark/apps/docs/classdetails/MembersList.scss +17 -37
- package/resources/scss/theme-dark/apps/docs/classdetails/TutorialComponent.scss +4 -11
- package/resources/scss/theme-dark/apps/website/HeaderContainer.scss +5 -13
- package/resources/scss/theme-dark/apps/website/MainContainer.scss +4 -11
- package/resources/scss/theme-dark/apps/website/blog/Container.scss +3 -9
- package/resources/scss/theme-dark/apps/website/home/TabContainer.scss +4 -11
- package/resources/scss/theme-dark/button/Base.scss +108 -219
- package/resources/scss/theme-dark/calendar/view/EditEventContainer.scss +4 -12
- package/resources/scss/theme-dark/calendar/view/MainContainer.scss +22 -48
- package/resources/scss/theme-dark/calendar/view/SettingsContainer.scss +4 -11
- package/resources/scss/theme-dark/calendar/view/YearComponent.scss +10 -23
- package/resources/scss/theme-dark/calendar/view/calendars/EditContainer.scss +4 -12
- package/resources/scss/theme-dark/calendar/view/calendars/List.scss +2 -8
- package/resources/scss/theme-dark/calendar/view/month/Component.scss +9 -22
- package/resources/scss/theme-dark/calendar/view/week/Component.scss +12 -28
- package/resources/scss/theme-dark/component/BoxLabel.scss +5 -13
- package/resources/scss/theme-dark/component/Chip.scss +14 -31
- package/resources/scss/theme-dark/component/DateSelector.scss +24 -52
- package/resources/scss/theme-dark/component/Process.scss +9 -21
- package/resources/scss/theme-dark/component/Progress.scss +3 -9
- package/resources/scss/theme-dark/component/Splitter.scss +4 -12
- package/resources/scss/theme-dark/component/StatusBadge.scss +19 -41
- package/resources/scss/theme-dark/component/Timer.scss +4 -13
- package/resources/scss/theme-dark/component/Toast.scss +8 -20
- package/resources/scss/theme-dark/component/Video.scss +3 -10
- package/resources/scss/theme-dark/container/Accordion.scss +5 -13
- package/resources/scss/theme-dark/container/AccordionItem.scss +10 -23
- package/resources/scss/theme-dark/container/Base.scss +4 -11
- package/resources/scss/theme-dark/container/Panel.scss +5 -13
- package/resources/scss/theme-dark/container/Viewport.scss +3 -9
- package/resources/scss/theme-dark/dialog/Base.scss +5 -13
- package/resources/scss/theme-dark/examples/ConfigurationPanel.scss +3 -9
- package/resources/scss/theme-dark/examples/calendar/basic/MainContainer.scss +3 -10
- package/resources/scss/theme-dark/form/Fieldset.scss +5 -14
- package/resources/scss/theme-dark/form/field/CheckBox.scss +7 -18
- package/resources/scss/theme-dark/form/field/FileUpload.scss +11 -26
- package/resources/scss/theme-dark/form/field/Picker.scss +5 -13
- package/resources/scss/theme-dark/form/field/Range.scss +4 -11
- package/resources/scss/theme-dark/form/field/Search.scss +3 -9
- package/resources/scss/theme-dark/form/field/Select.scss +8 -20
- package/resources/scss/theme-dark/form/field/Switch.scss +6 -16
- package/resources/scss/theme-dark/form/field/Text.scss +31 -66
- package/resources/scss/theme-dark/form/field/trigger/Base.scss +5 -14
- package/resources/scss/theme-dark/form/field/trigger/Time.scss +3 -10
- package/resources/scss/theme-dark/grid/Container.scss +6 -16
- package/resources/scss/theme-dark/grid/View.scss +12 -28
- package/resources/scss/theme-dark/grid/header/Button.scss +5 -14
- package/resources/scss/theme-dark/list/Base.scss +11 -26
- package/resources/scss/theme-dark/menu/List.scss +20 -44
- package/resources/scss/theme-dark/menu/Panel.scss +2 -8
- package/resources/scss/theme-dark/tab/Container.scss +3 -9
- package/resources/scss/theme-dark/tab/Strip.scss +5 -13
- package/resources/scss/theme-dark/tab/header/Button.scss +29 -62
- package/resources/scss/theme-dark/table/Container.scss +9 -22
- package/resources/scss/theme-dark/table/View.scss +13 -29
- package/resources/scss/theme-dark/table/header/Button.scss +6 -16
- package/resources/scss/theme-dark/toolbar/Base.scss +4 -11
- package/resources/scss/theme-dark/tree/List.scss +4 -11
- package/resources/scss/theme-light/Global.scss +7 -17
- package/resources/scss/theme-light/apps/covid/HeaderContainer.scss +10 -23
- package/resources/scss/theme-light/apps/covid/country/Gallery.scss +7 -17
- package/resources/scss/theme-light/apps/covid/country/Helix.scss +8 -19
- package/resources/scss/theme-light/apps/covid/country/LineChartComponent.scss +3 -9
- package/resources/scss/theme-light/apps/docs/ContentTabContainer.scss +4 -11
- package/resources/scss/theme-light/apps/docs/HeaderContainer.scss +10 -23
- package/resources/scss/theme-light/apps/docs/MainContainer.scss +3 -9
- package/resources/scss/theme-light/apps/docs/classdetails/HeaderComponent.scss +4 -11
- package/resources/scss/theme-light/apps/docs/classdetails/MembersList.scss +17 -37
- package/resources/scss/theme-light/apps/docs/classdetails/TutorialComponent.scss +4 -11
- package/resources/scss/theme-light/apps/website/HeaderContainer.scss +5 -13
- package/resources/scss/theme-light/apps/website/MainContainer.scss +4 -11
- package/resources/scss/theme-light/apps/website/blog/Container.scss +3 -9
- package/resources/scss/theme-light/apps/website/home/TabContainer.scss +4 -11
- package/resources/scss/theme-light/button/Base.scss +107 -218
- package/resources/scss/theme-light/calendar/view/EditEventContainer.scss +4 -12
- package/resources/scss/theme-light/calendar/view/MainContainer.scss +22 -48
- package/resources/scss/theme-light/calendar/view/SettingsContainer.scss +3 -11
- package/resources/scss/theme-light/calendar/view/YearComponent.scss +10 -23
- package/resources/scss/theme-light/calendar/view/calendars/EditContainer.scss +4 -12
- package/resources/scss/theme-light/calendar/view/calendars/List.scss +2 -8
- package/resources/scss/theme-light/calendar/view/month/Component.scss +10 -23
- package/resources/scss/theme-light/calendar/view/week/Component.scss +12 -28
- package/resources/scss/theme-light/component/BoxLabel.scss +5 -13
- package/resources/scss/theme-light/component/Chip.scss +14 -31
- package/resources/scss/theme-light/component/DateSelector.scss +24 -52
- package/resources/scss/theme-light/component/Process.scss +9 -21
- package/resources/scss/theme-light/component/Progress.scss +3 -9
- package/resources/scss/theme-light/component/Splitter.scss +4 -12
- package/resources/scss/theme-light/component/StatusBadge.scss +19 -41
- package/resources/scss/theme-light/component/Timer.scss +5 -14
- package/resources/scss/theme-light/component/Toast.scss +8 -20
- package/resources/scss/theme-light/component/Video.scss +3 -10
- package/resources/scss/theme-light/container/Accordion.scss +5 -13
- package/resources/scss/theme-light/container/AccordionItem.scss +10 -23
- package/resources/scss/theme-light/container/Base.scss +4 -11
- package/resources/scss/theme-light/container/Panel.scss +5 -13
- package/resources/scss/theme-light/container/Viewport.scss +3 -9
- package/resources/scss/theme-light/dialog/Base.scss +5 -13
- package/resources/scss/theme-light/examples/ConfigurationPanel.scss +3 -9
- package/resources/scss/theme-light/examples/calendar/basic/MainContainer.scss +3 -10
- package/resources/scss/theme-light/form/Fieldset.scss +5 -14
- package/resources/scss/theme-light/form/field/CheckBox.scss +7 -18
- package/resources/scss/theme-light/form/field/FileUpload.scss +11 -26
- package/resources/scss/theme-light/form/field/Picker.scss +5 -13
- package/resources/scss/theme-light/form/field/Range.scss +4 -11
- package/resources/scss/theme-light/form/field/Search.scss +3 -9
- package/resources/scss/theme-light/form/field/Select.scss +9 -21
- package/resources/scss/theme-light/form/field/Switch.scss +6 -16
- package/resources/scss/theme-light/form/field/Text.scss +31 -66
- package/resources/scss/theme-light/form/field/trigger/Base.scss +5 -14
- package/resources/scss/theme-light/form/field/trigger/Time.scss +3 -10
- package/resources/scss/theme-light/grid/Container.scss +6 -16
- package/resources/scss/theme-light/grid/View.scss +12 -28
- package/resources/scss/theme-light/grid/header/Button.scss +5 -14
- package/resources/scss/theme-light/list/Base.scss +12 -27
- package/resources/scss/theme-light/menu/List.scss +20 -44
- package/resources/scss/theme-light/menu/Panel.scss +2 -8
- package/resources/scss/theme-light/tab/Container.scss +3 -9
- package/resources/scss/theme-light/tab/Strip.scss +5 -13
- package/resources/scss/theme-light/tab/header/Button.scss +29 -62
- package/resources/scss/theme-light/table/Container.scss +9 -22
- package/resources/scss/theme-light/table/View.scss +13 -29
- package/resources/scss/theme-light/table/header/Button.scss +6 -16
- package/resources/scss/theme-light/toolbar/Base.scss +4 -11
- package/resources/scss/theme-light/tree/List.scss +4 -11
- package/src/DefaultConfig.mjs +2 -2
- package/src/component/Splitter.mjs +0 -1
- package/src/draggable/tab/header/toolbar/SortZone.mjs +3 -3
- package/src/form/field/FileUpload.mjs +32 -5
- package/src/form/field/Text.mjs +1 -1
- package/src/main/DomAccess.mjs +2 -2
- package/src/main/DomEvents.mjs +50 -12
- package/src/manager/DomEvent.mjs +1 -0
- package/src/plugin/PrefixField.mjs +304 -0
- package/src/tab/header/Toolbar.mjs +8 -8
- package/resources/scss/mixins/_all.scss +0 -31
- package/resources/scss/theme-dark/_all.scss +0 -15
- package/resources/scss/theme-dark/apps/_all.scss +0 -3
- package/resources/scss/theme-dark/apps/covid/_all.scss +0 -4
- package/resources/scss/theme-dark/apps/docs/ExamplesTreeList.scss +0 -0
- package/resources/scss/theme-dark/apps/docs/TutorialsTreeList.scss +0 -0
- package/resources/scss/theme-dark/apps/docs/_all.scss +0 -6
- package/resources/scss/theme-dark/apps/docs/classdetails/HierarchyTreeList.scss +0 -0
- package/resources/scss/theme-dark/apps/docs/classdetails/MainContainer.scss +0 -0
- package/resources/scss/theme-dark/apps/docs/classdetails/_all.scss +0 -5
- package/resources/scss/theme-dark/apps/website/_all.scss +0 -4
- package/resources/scss/theme-dark/button/_all.scss +0 -1
- package/resources/scss/theme-dark/calendar/_all.scss +0 -8
- package/resources/scss/theme-dark/component/Circle.scss +0 -0
- package/resources/scss/theme-dark/component/_all.scss +0 -5
- package/resources/scss/theme-dark/container/_all.scss +0 -3
- package/resources/scss/theme-dark/dialog/_all.scss +0 -1
- package/resources/scss/theme-dark/examples/_all.scss +0 -2
- package/resources/scss/theme-dark/form/_all.scss +0 -9
- package/resources/scss/theme-dark/form/field/trigger/Clear.scss +0 -0
- package/resources/scss/theme-dark/form/field/trigger/_all.scss +0 -3
- package/resources/scss/theme-dark/grid/_all.scss +0 -3
- package/resources/scss/theme-dark/grid/header/Toolbar.scss +0 -0
- package/resources/scss/theme-dark/grid/header/_all.scss +0 -2
- package/resources/scss/theme-dark/list/_all.scss +0 -1
- package/resources/scss/theme-dark/menu/_all.scss +0 -2
- package/resources/scss/theme-dark/tab/_all.scss +0 -3
- package/resources/scss/theme-dark/table/_all.scss +0 -3
- package/resources/scss/theme-dark/table/header/Toolbar.scss +0 -0
- package/resources/scss/theme-dark/table/header/_all.scss +0 -2
- package/resources/scss/theme-dark/tree/_all.scss +0 -1
- package/resources/scss/theme-light/_all.scss +0 -15
- package/resources/scss/theme-light/apps/_all.scss +0 -3
- package/resources/scss/theme-light/apps/covid/_all.scss +0 -4
- package/resources/scss/theme-light/apps/docs/ExamplesTreeList.scss +0 -0
- package/resources/scss/theme-light/apps/docs/TutorialsTreeList.scss +0 -0
- package/resources/scss/theme-light/apps/docs/_all.scss +0 -6
- package/resources/scss/theme-light/apps/docs/classdetails/HierarchyTreeList.scss +0 -0
- package/resources/scss/theme-light/apps/docs/classdetails/MainContainer.scss +0 -0
- package/resources/scss/theme-light/apps/docs/classdetails/_all.scss +0 -5
- package/resources/scss/theme-light/apps/website/_all.scss +0 -4
- package/resources/scss/theme-light/button/_all.scss +0 -1
- package/resources/scss/theme-light/calendar/_all.scss +0 -8
- package/resources/scss/theme-light/component/Circle.scss +0 -0
- package/resources/scss/theme-light/component/_all.scss +0 -5
- package/resources/scss/theme-light/container/_all.scss +0 -3
- package/resources/scss/theme-light/dialog/_all.scss +0 -1
- package/resources/scss/theme-light/examples/_all.scss +0 -2
- package/resources/scss/theme-light/form/_all.scss +0 -9
- package/resources/scss/theme-light/form/field/trigger/Clear.scss +0 -0
- package/resources/scss/theme-light/form/field/trigger/_all.scss +0 -3
- package/resources/scss/theme-light/grid/_all.scss +0 -3
- package/resources/scss/theme-light/grid/header/Toolbar.scss +0 -0
- package/resources/scss/theme-light/grid/header/_all.scss +0 -2
- package/resources/scss/theme-light/list/_all.scss +0 -1
- package/resources/scss/theme-light/menu/_all.scss +0 -2
- package/resources/scss/theme-light/tab/_all.scss +0 -3
- package/resources/scss/theme-light/table/_all.scss +0 -3
- package/resources/scss/theme-light/table/header/Toolbar.scss +0 -0
- package/resources/scss/theme-light/table/header/_all.scss +0 -2
- package/resources/scss/theme-light/tree/_all.scss +0 -1
@@ -0,0 +1,151 @@
|
|
1
|
+
import ConfigurationViewport from '../ConfigurationViewport.mjs';
|
2
|
+
|
3
|
+
import PrefixPlugin from '../../src/plugin/PrefixField.mjs';
|
4
|
+
import SelectField from '../../src/form/field/Select.mjs';
|
5
|
+
import TextField from '../../src/form/field/Text.mjs';
|
6
|
+
|
7
|
+
/**
|
8
|
+
* @class Neo.examples.fieldWithPrefix.MainContainer
|
9
|
+
* @extends Neo.examples.ConfigurationViewport
|
10
|
+
*/
|
11
|
+
class MainContainer extends ConfigurationViewport {
|
12
|
+
static config = {
|
13
|
+
className : 'Neo.examples.fieldWithPrefix.MainContainer',
|
14
|
+
autoMount : true,
|
15
|
+
configItemLabelWidth: 100,
|
16
|
+
configItemWidth : 230,
|
17
|
+
layout : {ntype: 'hbox', align: 'stretch'},
|
18
|
+
cls : ['examples-container-accordion']
|
19
|
+
}
|
20
|
+
|
21
|
+
onPluginConfigChange(config, opts) {
|
22
|
+
const textfield = this.exampleComponent.items[0],
|
23
|
+
plugin = textfield.getPlugin({flag: 'prefix'});
|
24
|
+
|
25
|
+
if (config === 'accept') {
|
26
|
+
plugin.accept = opts.record.value;
|
27
|
+
} else {
|
28
|
+
plugin[config] = opts.value;
|
29
|
+
textfield.value = '';
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
createConfigurationComponents() {
|
34
|
+
let me = this,
|
35
|
+
textfield = me.exampleComponent.items[0],
|
36
|
+
plugin = textfield.plugins[0];
|
37
|
+
|
38
|
+
return [{
|
39
|
+
module : TextField,
|
40
|
+
clearable: true,
|
41
|
+
labelText: 'pattern',
|
42
|
+
listeners: {change: me.onPluginConfigChange.bind(me, 'pattern')},
|
43
|
+
value : plugin.pattern,
|
44
|
+
style : {marginTop: '10px'}
|
45
|
+
}, {
|
46
|
+
module : TextField,
|
47
|
+
clearable: true,
|
48
|
+
labelText: 'slots',
|
49
|
+
listeners: {change: me.onPluginConfigChange.bind(me, 'slots')},
|
50
|
+
value : '_',
|
51
|
+
style : {marginTop: '10px'}
|
52
|
+
}, {
|
53
|
+
module: SelectField,
|
54
|
+
store : {
|
55
|
+
model: {fields: [{name: 'id'}, {name: 'name'}, {name: 'value'}]},
|
56
|
+
data : [
|
57
|
+
{id: '0', name: 'empty=/\\d/', value: null},
|
58
|
+
{id: '1', name: '[0-9]', value: '[0-9]'},
|
59
|
+
{id: '2', name: '[A-H]', value: '[A-H]'},
|
60
|
+
{id: '3', name: '/\\w/', value: /\w/},
|
61
|
+
{id: '4', name: '/\\d/', value: /\d/},
|
62
|
+
{id: '5', name: '[0-9a-f]', value: '[0-9a-f]'}
|
63
|
+
]
|
64
|
+
},
|
65
|
+
|
66
|
+
value : '4',
|
67
|
+
displayField: 'name',
|
68
|
+
valueField : 'value',
|
69
|
+
|
70
|
+
clearable: true,
|
71
|
+
labelText: 'accept',
|
72
|
+
listeners: {change: me.onPluginConfigChange.bind(me, 'accept')},
|
73
|
+
style : {marginTop: '10px'}
|
74
|
+
}];
|
75
|
+
}
|
76
|
+
|
77
|
+
/**
|
78
|
+
* @returns {*}
|
79
|
+
*/
|
80
|
+
createExampleComponent() {
|
81
|
+
return Neo.ntype({
|
82
|
+
ntype : 'container',
|
83
|
+
width : 350,
|
84
|
+
cls : ['example-fieldWithPrefix'],
|
85
|
+
layout: {ntype: 'vbox', align: 'stretch'},
|
86
|
+
items : [{
|
87
|
+
module : TextField,
|
88
|
+
labelText: 'Phone Number',
|
89
|
+
plugins : [
|
90
|
+
{
|
91
|
+
module : PrefixPlugin,
|
92
|
+
flag : 'prefix',
|
93
|
+
pattern: '+1 (___) ___-___-____',
|
94
|
+
slots : '_'
|
95
|
+
}
|
96
|
+
]
|
97
|
+
}, {
|
98
|
+
module : TextField,
|
99
|
+
labelText: '[0-9] Date',
|
100
|
+
plugins : [
|
101
|
+
{
|
102
|
+
module : PrefixPlugin,
|
103
|
+
flag : 'prefix',
|
104
|
+
pattern: 'dd/mm/yyyy hh:mm',
|
105
|
+
slots : 'dmyh'
|
106
|
+
}
|
107
|
+
]
|
108
|
+
}, {
|
109
|
+
module : TextField,
|
110
|
+
labelText: '[A-H] MAC Adress',
|
111
|
+
plugins : [
|
112
|
+
{
|
113
|
+
module : PrefixPlugin,
|
114
|
+
flag : 'prefix',
|
115
|
+
pattern: 'XX:XX:XX:XX:XX:XX',
|
116
|
+
slots : 'X',
|
117
|
+
accept : '[A-H]'
|
118
|
+
}
|
119
|
+
]
|
120
|
+
}, {
|
121
|
+
module : TextField,
|
122
|
+
labelText: '/\\w/ Alphanumeric',
|
123
|
+
plugins : [
|
124
|
+
{
|
125
|
+
module : PrefixPlugin,
|
126
|
+
flag : 'prefix',
|
127
|
+
pattern: '__-__-__-____',
|
128
|
+
slots : '_',
|
129
|
+
accept : /\w/
|
130
|
+
}
|
131
|
+
]
|
132
|
+
}, {
|
133
|
+
module : TextField,
|
134
|
+
labelText: '/\\d/ Credit Card',
|
135
|
+
plugins : [
|
136
|
+
{
|
137
|
+
module : PrefixPlugin,
|
138
|
+
flag : 'prefix',
|
139
|
+
pattern: '.... .... .... ....',
|
140
|
+
slots : '.',
|
141
|
+
accept : /\d/
|
142
|
+
}
|
143
|
+
]
|
144
|
+
}]
|
145
|
+
})
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
Neo.applyClassConfig(MainContainer);
|
150
|
+
|
151
|
+
export default MainContainer;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!DOCTYPE HTML>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
<title>Field with Prefix</title>
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<script src="../../src/MicroLoader.mjs" type="module"></script>
|
10
|
+
</body>
|
11
|
+
</html>
|
@@ -105,7 +105,7 @@ class MainContainer extends ConfigurationViewport {
|
|
105
105
|
id : 2,
|
106
106
|
fileName : 'test.pdf',
|
107
107
|
size : 10664885,
|
108
|
-
status : '
|
108
|
+
status : 'AVAILABLE'
|
109
109
|
},
|
110
110
|
uploadUrl : 'http://127.0.0.1:3000/file-upload-test',
|
111
111
|
documentStatusUrl : 'http://127.0.0.1:3000/document-status-not-downloadable?documentId={documentId}',
|
@@ -24,7 +24,7 @@ app.get('/document-status', async(req, res) => {
|
|
24
24
|
res.send('{"status":"SCANNING"}');
|
25
25
|
});
|
26
26
|
|
27
|
-
app.
|
27
|
+
app.delete('/document-delete', async(req, res) => {
|
28
28
|
res.set('Content-Type', 'application/json');
|
29
29
|
res.send('');
|
30
30
|
});
|
@@ -41,7 +41,7 @@ app.get('/document-status-downloadable', async(req, res) => {
|
|
41
41
|
|
42
42
|
app.get('/document-status-not-downloadable', async(req, res) => {
|
43
43
|
res.set('Content-Type', 'application/json');
|
44
|
-
res.send('{"status":"
|
44
|
+
res.send('{"status":"AVAILABLE","fileName":"testfile.pdf","size":9653413}');
|
45
45
|
});
|
46
46
|
|
47
47
|
app.get('/document-status-non-existent', async(req, res) => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "neo.mjs",
|
3
|
-
"version": "
|
3
|
+
"version": "6.0.1",
|
4
4
|
"description": "The webworkers driven UI framework",
|
5
5
|
"type": "module",
|
6
6
|
"repository": {
|
@@ -56,7 +56,7 @@
|
|
56
56
|
"neo-jsdoc": "1.0.1",
|
57
57
|
"neo-jsdoc-x": "1.0.5",
|
58
58
|
"postcss": "^8.4.28",
|
59
|
-
"sass": "^1.66.
|
59
|
+
"sass": "^1.66.1",
|
60
60
|
"showdown": "^2.1.0",
|
61
61
|
"webpack": "^5.88.2",
|
62
62
|
"webpack-cli": "^5.1.4",
|
@@ -10,12 +10,12 @@ html, .neo-body-viewport {
|
|
10
10
|
}
|
11
11
|
|
12
12
|
.neo-body {
|
13
|
-
background-color:
|
14
|
-
color :
|
15
|
-
font-family :
|
13
|
+
background-color: var(--neo-background-color);
|
14
|
+
color : var(--neo-color);
|
15
|
+
font-family : var(--neo-font-family);
|
16
16
|
margin : 0;
|
17
17
|
|
18
|
-
-webkit-font-smoothing:
|
18
|
+
-webkit-font-smoothing: var(--neo-font-smoothing);
|
19
19
|
}
|
20
20
|
|
21
21
|
.neo-body, .neo-body * {
|
@@ -23,7 +23,7 @@ html, .neo-body-viewport {
|
|
23
23
|
}
|
24
24
|
|
25
25
|
.neo-disabled {
|
26
|
-
opacity :
|
26
|
+
opacity : var(--neo-disabled-opacity);
|
27
27
|
pointer-events: none;
|
28
28
|
}
|
29
29
|
|
@@ -32,10 +32,10 @@ html, .neo-body-viewport {
|
|
32
32
|
}
|
33
33
|
|
34
34
|
.neo-link-color {
|
35
|
-
color:
|
35
|
+
color: var(--neo-color);
|
36
36
|
|
37
37
|
a {
|
38
|
-
color:
|
38
|
+
color: var(--neo-color);
|
39
39
|
}
|
40
40
|
}
|
41
41
|
|
@@ -35,62 +35,62 @@
|
|
35
35
|
}
|
36
36
|
|
37
37
|
&.active {
|
38
|
-
background-color:
|
38
|
+
background-color: var(--covid-header-active-background-color);
|
39
39
|
border-left : 5px solid rgb(100, 181, 246);
|
40
40
|
|
41
41
|
&:after {
|
42
|
-
background-color:
|
42
|
+
background-color: var(--covid-header-active-background-color);
|
43
43
|
}
|
44
44
|
|
45
45
|
&:before {
|
46
|
-
border-bottom: 5px solid
|
47
|
-
border-right : 5px solid
|
48
|
-
border-color :
|
46
|
+
border-bottom: 5px solid var(--covid-header-active-background-color);
|
47
|
+
border-right : 5px solid var(--covid-header-active-background-color);
|
48
|
+
border-color : var(--covid-header-active-background-color) transparent transparent var(--covid-header-active-background-color);
|
49
49
|
}
|
50
50
|
}
|
51
51
|
|
52
52
|
&.cases {
|
53
|
-
background-color:
|
53
|
+
background-color: var(--covid-header-cases-background-color);
|
54
54
|
border-left : 5px solid rgb(187, 187, 187);
|
55
55
|
|
56
56
|
&:after {
|
57
|
-
background-color:
|
57
|
+
background-color: var(--covid-header-cases-background-color);
|
58
58
|
}
|
59
59
|
|
60
60
|
&:before {
|
61
|
-
border-bottom: 5px solid
|
62
|
-
border-right : 5px solid
|
63
|
-
border-color :
|
61
|
+
border-bottom: 5px solid var(--covid-header-cases-background-color);
|
62
|
+
border-right : 5px solid var(--covid-header-cases-background-color);
|
63
|
+
border-color : var(--covid-header-cases-background-color) transparent transparent var(--covid-header-cases-background-color);
|
64
64
|
}
|
65
65
|
}
|
66
66
|
|
67
67
|
&.deaths {
|
68
|
-
background-color:
|
68
|
+
background-color: var(--covid-header-deaths-background-color);
|
69
69
|
border-left : 5px solid rgb(251, 103, 103);
|
70
70
|
|
71
71
|
&:after {
|
72
|
-
background-color:
|
72
|
+
background-color: var(--covid-header-deaths-background-color);
|
73
73
|
}
|
74
74
|
|
75
75
|
&:before {
|
76
|
-
border-bottom: 5px solid
|
77
|
-
border-right : 5px solid
|
78
|
-
border-color :
|
76
|
+
border-bottom: 5px solid var(--covid-header-deaths-background-color);
|
77
|
+
border-right : 5px solid var(--covid-header-deaths-background-color);
|
78
|
+
border-color : var(--covid-header-deaths-background-color) transparent transparent var(--covid-header-deaths-background-color);
|
79
79
|
}
|
80
80
|
}
|
81
81
|
|
82
82
|
&.recovered {
|
83
|
-
background-color:
|
83
|
+
background-color: var(--covid-header-recovered-background-color);
|
84
84
|
border-left : 5px solid rgb(40, 218, 111);
|
85
85
|
|
86
86
|
&:after {
|
87
|
-
background-color:
|
87
|
+
background-color: var(--covid-header-recovered-background-color);
|
88
88
|
}
|
89
89
|
|
90
90
|
&:before {
|
91
|
-
border-bottom: 5px solid
|
92
|
-
border-right : 5px solid
|
93
|
-
border-color :
|
91
|
+
border-bottom: 5px solid var(--covid-header-recovered-background-color);
|
92
|
+
border-right : 5px solid var(--covid-header-recovered-background-color);
|
93
|
+
border-color : var(--covid-header-recovered-background-color) transparent transparent var(--covid-header-recovered-background-color);
|
94
94
|
}
|
95
95
|
}
|
96
96
|
}
|
@@ -100,20 +100,20 @@
|
|
100
100
|
margin : 5px 0;
|
101
101
|
|
102
102
|
&.active {
|
103
|
-
color:
|
103
|
+
color: var(--covid-header-active-color);
|
104
104
|
}
|
105
105
|
|
106
106
|
&.cases {
|
107
|
-
color:
|
107
|
+
color: var(--covid-header-cases-color);
|
108
108
|
}
|
109
109
|
|
110
110
|
&.deaths {
|
111
|
-
color:
|
111
|
+
color: var(--covid-header-deaths-color);
|
112
112
|
}
|
113
113
|
|
114
114
|
&.recovered {
|
115
|
-
color:
|
115
|
+
color: var(--covid-header-recovered-color);
|
116
116
|
}
|
117
117
|
}
|
118
118
|
}
|
119
|
-
}
|
119
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.neo-gallery.covid-country-gallery {
|
2
|
-
background-color:
|
3
|
-
border-color :
|
2
|
+
background-color: var(--covid-gallery-background-color);
|
3
|
+
border-color : var(--covid-gallery-border-color);
|
4
4
|
color : #000;
|
5
5
|
text-align : left;
|
6
6
|
|
@@ -23,7 +23,7 @@
|
|
23
23
|
}
|
24
24
|
|
25
25
|
.neo-item-wrapper {
|
26
|
-
background-color :
|
26
|
+
background-color : var(--covid-gallery-item-wrapper-background-color);
|
27
27
|
border-radius : 10px;
|
28
28
|
pointer-events : none;
|
29
29
|
transition-duration: .55s;
|
@@ -33,9 +33,9 @@
|
|
33
33
|
.neo-country-gallery-item {
|
34
34
|
background-color : #fff;
|
35
35
|
border-bottom : 0;
|
36
|
-
border-color :
|
37
|
-
border-left-width :
|
38
|
-
border-right-width :
|
36
|
+
border-color : var(--covid-gallery-item-border-color);
|
37
|
+
border-left-width : var(--covid-gallery-item-border-sides-width);
|
38
|
+
border-right-width : var(--covid-gallery-item-border-sides-width);
|
39
39
|
border-style : solid;
|
40
40
|
border-top-left-radius : 10px;
|
41
41
|
border-top-right-radius: 10px;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.neo-helix.covid-country-helix {
|
2
|
-
background-color:
|
3
|
-
border-color :
|
2
|
+
background-color: var(--covid-helix-background-color);
|
3
|
+
border-color : var(--covid-helix-border-color);
|
4
4
|
color : #000;
|
5
5
|
text-align : left;
|
6
6
|
|
@@ -37,19 +37,19 @@
|
|
37
37
|
}
|
38
38
|
|
39
39
|
.neo-helix-item {
|
40
|
-
background-color:
|
40
|
+
background-color: var(--covid-helix-item-wrapper-background-color);
|
41
41
|
|
42
42
|
&.neo-selected {
|
43
|
-
box-shadow:
|
43
|
+
box-shadow: var(--covid-helix-item-box-shadow-selected);
|
44
44
|
}
|
45
45
|
}
|
46
46
|
|
47
47
|
.neo-country-helix-item {
|
48
48
|
background-color : #fff;
|
49
49
|
border-bottom : 0;
|
50
|
-
border-color :
|
51
|
-
border-left-width :
|
52
|
-
border-right-width :
|
50
|
+
border-color : var(--covid-helix-item-border-color);
|
51
|
+
border-left-width : var(--covid-helix-item-border-sides-width);
|
52
|
+
border-right-width : var(--covid-helix-item-border-sides-width);
|
53
53
|
border-style : solid;
|
54
54
|
border-top-left-radius : 10px;
|
55
55
|
border-top-right-radius: 10px;
|
@@ -70,4 +70,4 @@
|
|
70
70
|
height : 280px;
|
71
71
|
width : 340px;
|
72
72
|
}
|
73
|
-
}
|
73
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
.covid-line-chart {
|
2
|
-
background-color:
|
3
|
-
}
|
2
|
+
background-color: var(--covid-line-chart-background-color);
|
3
|
+
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
overflow: hidden;
|
3
3
|
|
4
4
|
.docs-tab-header-toolbar {
|
5
|
-
background-color:
|
5
|
+
background-color: var(--docs-content-tabcontainer-tab-header-toolbar-background-color);
|
6
6
|
|
7
7
|
.neo-button-glyph {
|
8
8
|
pointer-events: all;
|
@@ -10,7 +10,7 @@
|
|
10
10
|
width : 16px;
|
11
11
|
|
12
12
|
&:hover {
|
13
|
-
color :
|
13
|
+
color : var(--docs-content-tabcontainer-tab-header-toolbar-glyph-color-hover);
|
14
14
|
cursor: pointer;
|
15
15
|
|
16
16
|
&::before {
|
@@ -23,4 +23,4 @@
|
|
23
23
|
.neo-docs-tab-content-container {
|
24
24
|
border: 0;
|
25
25
|
}
|
26
|
-
}
|
26
|
+
}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
.neo-docs-header-container {
|
2
|
-
background-color:
|
3
|
-
background-image:
|
2
|
+
background-color: var(--docs-header-container-background-color);
|
3
|
+
background-image: var(--docs-header-container-background-image);
|
4
4
|
|
5
5
|
.neo-logo-text {
|
6
|
-
background-clip :
|
7
|
-
color :
|
8
|
-
font-size :
|
9
|
-
font-weight :
|
10
|
-
padding :
|
11
|
-
text-shadow :
|
6
|
+
background-clip : var(--docs-header-container-logo-text-background-clip);
|
7
|
+
color : var(--docs-header-container-logo-text-color);
|
8
|
+
font-size : var(--docs-header-container-logo-text-font-size);
|
9
|
+
font-weight : var(--docs-header-container-logo-text-font-weight);
|
10
|
+
padding : var(--docs-header-container-logo-padding);
|
11
|
+
text-shadow : var(--docs-header-container-logo-text-shadow);
|
12
12
|
}
|
13
13
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
.docs-classhierarchy-memberslist {
|
2
|
-
background-color:
|
2
|
+
background-color: var(--docs-classhierarchy-memberslist-background-color);
|
3
3
|
overflow : auto;
|
4
4
|
|
5
5
|
.docs-param-table {
|
@@ -12,16 +12,16 @@
|
|
12
12
|
width : 100%;
|
13
13
|
|
14
14
|
thead {
|
15
|
-
background-color:
|
16
|
-
background-image:
|
15
|
+
background-color: var(--docs-param-table-thead-background-color);
|
16
|
+
background-image: var(--docs-param-table-thead-background-image);
|
17
17
|
}
|
18
18
|
|
19
19
|
thead tr {
|
20
|
-
background-clip:
|
20
|
+
background-clip: var(--docs-param-table-tr-background-clip);
|
21
21
|
border-bottom : 1px solid #282b2b;
|
22
|
-
color :
|
22
|
+
color : var(--docs-param-table-tr-color);
|
23
23
|
font-weight : 800;
|
24
|
-
text-shadow :
|
24
|
+
text-shadow : var(--docs-param-table-tr-text-shadow);
|
25
25
|
}
|
26
26
|
|
27
27
|
td, th {
|
@@ -37,9 +37,9 @@
|
|
37
37
|
}
|
38
38
|
|
39
39
|
.neo-docs-memberlist-group-header {
|
40
|
-
background-color:
|
40
|
+
background-color: var(--docs-memberlist-group-header-background-color);
|
41
41
|
box-shadow : 0 5px 10px rgba(0,0,0,.4);
|
42
|
-
color :
|
42
|
+
color : var(--docs-memberlist-group-header-color);
|
43
43
|
margin : 5px;
|
44
44
|
padding : 10px;
|
45
45
|
position : sticky;
|
@@ -47,8 +47,8 @@
|
|
47
47
|
}
|
48
48
|
|
49
49
|
.neo-list-item {
|
50
|
-
background-color:
|
51
|
-
background-image:
|
50
|
+
background-color: var(--docs-param-table-list-item-background-color);
|
51
|
+
background-image: var(--docs-param-table-list-item-background-image);
|
52
52
|
font-size : 14px;
|
53
53
|
margin : 5px;
|
54
54
|
padding : 10px;
|
@@ -58,23 +58,23 @@
|
|
58
58
|
}
|
59
59
|
|
60
60
|
.neo-list-item-header {
|
61
|
-
background-clip:
|
61
|
+
background-clip: var(--docs-param-table-list-item-header-background-clip);
|
62
62
|
color : rgba(0,0,0,0.6);
|
63
63
|
font-size : 20px;
|
64
64
|
font-weight : 800;
|
65
|
-
text-shadow :
|
65
|
+
text-shadow : var(--docs-param-table-list-item-header-text-shadow);
|
66
66
|
|
67
67
|
.neo-highlight-search {
|
68
|
-
color:
|
68
|
+
color: var(--docs-param-table-list-item-highlight-search-color);
|
69
69
|
}
|
70
70
|
}
|
71
71
|
|
72
72
|
.neo-docs-view-source-link {
|
73
|
-
color :
|
73
|
+
color : var(--docs-param-table-source-link-color);
|
74
74
|
text-decoration: none;
|
75
75
|
|
76
76
|
&:hover {
|
77
|
-
color:
|
77
|
+
color: var(--docs-param-table-source-link-color-hover);
|
78
78
|
}
|
79
79
|
}
|
80
80
|
|
@@ -82,4 +82,4 @@
|
|
82
82
|
margin-bottom: 10px;
|
83
83
|
}
|
84
84
|
}
|
85
|
-
}
|
85
|
+
}
|
@@ -3,9 +3,9 @@
|
|
3
3
|
padding: 10px;
|
4
4
|
|
5
5
|
.neo-header-text-container {
|
6
|
-
background-color:
|
6
|
+
background-color: var(--docs-classdetails-tutorialcomponent-background-color);
|
7
7
|
box-shadow : 0 5px 10px rgba(0,0,0,.4);
|
8
|
-
color :
|
8
|
+
color : var(--docs-classdetails-tutorialcomponent-color);
|
9
9
|
padding-left : 10px;
|
10
10
|
position : sticky;
|
11
11
|
top : -10px;
|
@@ -31,4 +31,4 @@
|
|
31
31
|
hr {
|
32
32
|
border-style: groove;
|
33
33
|
}
|
34
|
-
}
|
34
|
+
}
|