neo.mjs 5.17.1 → 6.0.0
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/component/statusbadge/MainContainer.mjs +160 -45
- package/examples/form/field/fileupload/server.mjs +17 -7
- 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 +42 -2
- 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/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 +4 -4
- 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/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 -0
- 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 -0
- 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/StatusBadge.mjs +434 -7
- package/src/form/field/FileUpload.mjs +9 -0
- package/src/main/DomAccess.mjs +2 -2
- package/src/main/DomEvents.mjs +50 -12
- 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
@@ -1,9 +1,9 @@
|
|
1
|
-
import CheckBox
|
1
|
+
import CheckBox from '../../../src/form/field/CheckBox.mjs';
|
2
2
|
import ConfigurationViewport from '../../ConfigurationViewport.mjs';
|
3
|
-
import NumberField
|
4
|
-
import Radio
|
5
|
-
import StatusBadge
|
6
|
-
import TextField
|
3
|
+
import NumberField from '../../../src/form/field/Number.mjs';
|
4
|
+
import Radio from '../../../src/form/field/Radio.mjs';
|
5
|
+
import StatusBadge from '../../../src/component/StatusBadge.mjs';
|
6
|
+
import TextField from '../../../src/form/field/Text.mjs';
|
7
7
|
|
8
8
|
/**
|
9
9
|
* @class Neo.examples.component.statusbadge.MainContainer
|
@@ -11,58 +11,173 @@ import TextField from '../../../src/form/field/Text.mjs';
|
|
11
11
|
*/
|
12
12
|
class MainContainer extends ConfigurationViewport {
|
13
13
|
static config = {
|
14
|
-
className
|
15
|
-
autoMount
|
14
|
+
className: 'Neo.examples.component.statusbadge.MainContainer',
|
15
|
+
autoMount: true,
|
16
16
|
configItemLabelWidth: 110,
|
17
|
-
configItemWidth
|
18
|
-
layout
|
17
|
+
configItemWidth: 230,
|
18
|
+
layout: { ntype: 'hbox', align: 'stretch' }
|
19
19
|
}
|
20
20
|
|
21
21
|
createConfigurationComponents() {
|
22
22
|
let me = this;
|
23
23
|
|
24
24
|
return [{
|
25
|
-
module
|
26
|
-
checked
|
25
|
+
module: CheckBox,
|
26
|
+
checked: me.exampleComponent.closable,
|
27
27
|
labelText: 'closable',
|
28
|
-
listeners: {change: me.onConfigChange.bind(me, 'closable')}
|
29
|
-
}, {
|
30
|
-
module
|
31
|
-
clearable
|
32
|
-
labelText
|
33
|
-
listeners
|
34
|
-
maxValue
|
35
|
-
minValue
|
36
|
-
stepSize
|
37
|
-
style
|
38
|
-
value
|
39
|
-
}, {
|
40
|
-
module
|
41
|
-
|
28
|
+
listeners: { change: me.onConfigChange.bind(me, 'closable') }
|
29
|
+
}, {
|
30
|
+
module: NumberField,
|
31
|
+
clearable: true,
|
32
|
+
labelText: 'height',
|
33
|
+
listeners: { change: me.onConfigChange.bind(me, 'height') },
|
34
|
+
maxValue: 100,
|
35
|
+
minValue: 20,
|
36
|
+
stepSize: 2,
|
37
|
+
style: { marginTop: '10px' },
|
38
|
+
value: me.exampleComponent.height
|
39
|
+
}, {
|
40
|
+
module: NumberField,
|
41
|
+
clearable: true,
|
42
|
+
labelText: 'width',
|
43
|
+
listeners: { change: me.onConfigChange.bind(me, 'width') },
|
44
|
+
maxValue: 300,
|
45
|
+
minValue: 100,
|
46
|
+
stepSize: 5,
|
47
|
+
style: { marginTop: '10px' },
|
48
|
+
value: me.exampleComponent.width
|
49
|
+
}, {
|
50
|
+
module: TextField,
|
51
|
+
labelText: 'label Alert',
|
52
|
+
listeners: { change: me.onConfigChange.bind(me, 'labelAlert') },
|
53
|
+
style: { marginTop: '20px' },
|
54
|
+
value: me.exampleComponent.labelAlert
|
55
|
+
}, {
|
56
|
+
module: TextField,
|
57
|
+
labelText: 'icon Alert',
|
58
|
+
listeners: { change: me.onConfigChange.bind(me, 'iconAlert') },
|
59
|
+
value: me.exampleComponent.iconAlert
|
60
|
+
}, {
|
61
|
+
module: TextField,
|
62
|
+
labelText: 'side-icon Alert',
|
63
|
+
listeners: { change: me.onConfigChange.bind(me, 'sideIconAlert') },
|
64
|
+
value: me.exampleComponent.sideIconAlert
|
65
|
+
}, {
|
66
|
+
module: TextField,
|
67
|
+
labelText: 'label Error',
|
68
|
+
listeners: { change: me.onConfigChange.bind(me, 'labelError') },
|
69
|
+
style: { marginTop: '10px' },
|
70
|
+
value: me.exampleComponent.labelError
|
71
|
+
}, {
|
72
|
+
module: TextField,
|
73
|
+
labelText: 'icon Error',
|
74
|
+
listeners: { change: me.onConfigChange.bind(me, 'iconError') },
|
75
|
+
value: me.exampleComponent.iconError
|
76
|
+
}, {
|
77
|
+
module: TextField,
|
78
|
+
labelText: 'side-icon Error',
|
79
|
+
listeners: { change: me.onConfigChange.bind(me, 'sideIconError') },
|
80
|
+
value: me.exampleComponent.sideIconError
|
81
|
+
},{
|
82
|
+
module: TextField,
|
83
|
+
labelText: 'label Info',
|
84
|
+
listeners: { change: me.onConfigChange.bind(me, 'labelInfo') },
|
85
|
+
style: { marginTop: '10px' },
|
86
|
+
value: me.exampleComponent.labelInfo
|
87
|
+
}, {
|
88
|
+
module: TextField,
|
89
|
+
labelText: 'icon Info',
|
90
|
+
listeners: { change: me.onConfigChange.bind(me, 'iconInfo') },
|
91
|
+
value: me.exampleComponent.iconInfo
|
92
|
+
}, {
|
93
|
+
module: TextField,
|
94
|
+
labelText: 'side-icon Info',
|
95
|
+
listeners: { change: me.onConfigChange.bind(me, 'sideIconInfo') },
|
96
|
+
value: me.exampleComponent.sideIconInfo
|
97
|
+
}, {
|
98
|
+
module: TextField,
|
99
|
+
labelText: 'label Neutral',
|
100
|
+
listeners: { change: me.onConfigChange.bind(me, 'labelNeutral') },
|
101
|
+
style: { marginTop: '10px' },
|
102
|
+
value: me.exampleComponent.labelNeutral
|
103
|
+
}, {
|
104
|
+
module: TextField,
|
105
|
+
labelText: 'icon Neutral',
|
106
|
+
listeners: { change: me.onConfigChange.bind(me, 'iconNeutral') },
|
107
|
+
value: me.exampleComponent.iconNeutral
|
108
|
+
}, {
|
109
|
+
module: TextField,
|
110
|
+
labelText: 'side-icon Neutral',
|
111
|
+
listeners: { change: me.onConfigChange.bind(me, 'sideIconNeutral') },
|
112
|
+
value: me.exampleComponent.sideIconNeutral
|
113
|
+
}, {
|
114
|
+
module: TextField,
|
115
|
+
labelText: 'label Success',
|
116
|
+
listeners: { change: me.onConfigChange.bind(me, 'labelSuccess') },
|
117
|
+
style: { marginTop: '10px' },
|
118
|
+
value: me.exampleComponent.labelSuccess
|
119
|
+
}, {
|
120
|
+
module: TextField,
|
121
|
+
labelText: 'icon Success',
|
122
|
+
listeners: { change: me.onConfigChange.bind(me, 'iconSuccess') },
|
123
|
+
value: me.exampleComponent.iconSuccess
|
124
|
+
}, {
|
125
|
+
module: TextField,
|
126
|
+
labelText: 'side-icon Success',
|
127
|
+
listeners: { change: me.onConfigChange.bind(me, 'sideIconSuccess') },
|
128
|
+
value: me.exampleComponent.sideIconSuccess
|
129
|
+
}, {
|
130
|
+
module: CheckBox,
|
131
|
+
checked: me.exampleComponent.deactivateStateIcons,
|
132
|
+
labelText: 'deactivate State Icons',
|
133
|
+
style: { marginTop: '20px' },
|
134
|
+
listeners: { change: me.onConfigChange.bind(me, 'deactivateStateIcons') },
|
135
|
+
}, {
|
136
|
+
module: CheckBox,
|
137
|
+
checked: me.exampleComponent.deactivateSideIcons,
|
138
|
+
labelText: 'deactivate Side Icons',
|
139
|
+
listeners: { change: me.onConfigChange.bind(me, 'deactivateSideIcons') },
|
140
|
+
}, {
|
141
|
+
module: Radio,
|
142
|
+
checked: me.exampleComponent.state === 'alert',
|
42
143
|
hideValueLabel: false,
|
43
|
-
labelText
|
44
|
-
listeners
|
45
|
-
name
|
46
|
-
style
|
144
|
+
labelText: 'state',
|
145
|
+
listeners: { change: me.onRadioChange.bind(me, 'state', 'alert') },
|
146
|
+
name: 'state',
|
147
|
+
style: { marginTop: '20px' },
|
148
|
+
valueLabelText: 'alert'
|
149
|
+
}, {
|
150
|
+
module: Radio,
|
151
|
+
checked: me.exampleComponent.state === 'error',
|
152
|
+
hideValueLabel: false,
|
153
|
+
labelText: '',
|
154
|
+
listeners: { change: me.onRadioChange.bind(me, 'state', 'error') },
|
155
|
+
name: 'state',
|
47
156
|
valueLabelText: 'error'
|
48
157
|
}, {
|
49
|
-
module
|
50
|
-
checked
|
158
|
+
module: Radio,
|
159
|
+
checked: me.exampleComponent.state === 'info',
|
51
160
|
hideValueLabel: false,
|
52
|
-
labelText
|
53
|
-
listeners
|
54
|
-
name
|
55
|
-
valueLabelText: '
|
161
|
+
labelText: '',
|
162
|
+
listeners: { change: me.onRadioChange.bind(me, 'state', 'info') },
|
163
|
+
name: 'state',
|
164
|
+
valueLabelText: 'info'
|
165
|
+
}, {
|
166
|
+
module: Radio,
|
167
|
+
checked: me.exampleComponent.state === 'neutral',
|
168
|
+
hideValueLabel: false,
|
169
|
+
labelText: '',
|
170
|
+
listeners: { change: me.onRadioChange.bind(me, 'state', 'neutral') },
|
171
|
+
name: 'state',
|
172
|
+
valueLabelText: 'neutral'
|
56
173
|
}, {
|
57
|
-
module
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
style : {marginTop: '10px'},
|
65
|
-
value : me.exampleComponent.width
|
174
|
+
module: Radio,
|
175
|
+
checked: me.exampleComponent.state === 'success',
|
176
|
+
hideValueLabel: false,
|
177
|
+
labelText: '',
|
178
|
+
listeners: { change: me.onRadioChange.bind(me, 'state', 'success') },
|
179
|
+
name: 'state',
|
180
|
+
valueLabelText: 'success'
|
66
181
|
}]
|
67
182
|
}
|
68
183
|
|
@@ -70,7 +185,7 @@ class MainContainer extends ConfigurationViewport {
|
|
70
185
|
return Neo.create({
|
71
186
|
module: StatusBadge,
|
72
187
|
height: 30,
|
73
|
-
state
|
188
|
+
state: 'info'
|
74
189
|
})
|
75
190
|
}
|
76
191
|
}
|
@@ -9,11 +9,11 @@ app.use(cors());
|
|
9
9
|
app.post('/file-upload-test', async (req, res) => {
|
10
10
|
|
11
11
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
12
|
-
|
12
|
+
|
13
13
|
res.set('Content-Type', 'application/json');
|
14
14
|
res.send('{"success":true,"documentId":"1"}');
|
15
15
|
})
|
16
|
-
|
16
|
+
|
17
17
|
app.post('/file-upload-test-fail', async (req, res) => {
|
18
18
|
res.set('Content-Type', 'application/json');
|
19
19
|
res.send('{"success":false,"message":"Something went wrong"}');
|
@@ -21,27 +21,37 @@ app.post('/file-upload-test-fail', async (req, res) => {
|
|
21
21
|
|
22
22
|
app.get('/document-status', async(req, res) => {
|
23
23
|
res.set('Content-Type', 'application/json');
|
24
|
-
res.send('{"status":"
|
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
|
});
|
31
31
|
|
32
32
|
app.get('/document-status-fail', async(req, res) => {
|
33
33
|
res.set('Content-Type', 'application/json');
|
34
|
-
res.send('{"status":"
|
34
|
+
res.send('{"status":"MALWARE_DETECTED"}');
|
35
35
|
});
|
36
36
|
|
37
37
|
app.get('/document-status-downloadable', async(req, res) => {
|
38
38
|
res.set('Content-Type', 'application/json');
|
39
|
-
res.send('{"status":"
|
39
|
+
res.send('{"status":"DOWNLOADABLE","fileName":"testfile.pdf","size":9653413}');
|
40
40
|
});
|
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":"UN_DOWNLOADABLE","fileName":"testfile.pdf","size":9653413}');
|
45
|
+
});
|
46
|
+
|
47
|
+
app.get('/document-status-non-existent', async(req, res) => {
|
48
|
+
res.set('Content-Type', 'application/json');
|
49
|
+
res.send('{"status":"DELETED","fileName":"testfile.pdf","size":9653413}');
|
50
|
+
});
|
51
|
+
|
52
|
+
app.get('/document-status-fails', async(req, res) => {
|
53
|
+
res.status(500);
|
54
|
+
res.send('');
|
45
55
|
});
|
46
56
|
|
47
57
|
app.listen(port, () => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "neo.mjs",
|
3
|
-
"version": "
|
3
|
+
"version": "6.0.0",
|
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
|
}
|