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
@@ -1,29 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
@if $useCssVars == true {
|
16
|
-
:root .neo-theme-light { // .neo-table-view
|
17
|
-
--table-cell-background-color-hover : #{neo(table-cell-background-color-hover)};
|
18
|
-
--table-cellmodel-selected-cell-background-color : #{neo(table-cellmodel-selected-cell-background-color)};
|
19
|
-
--table-cellmodel-selected-cell-color : #{neo(table-cellmodel-selected-cell-color)};
|
20
|
-
--table-cellmodel-selected-column-cell-background-color: #{neo(table-cellmodel-selected-column-cell-background-color)};
|
21
|
-
--table-cellmodel-selected-column-cell-color : #{neo(table-cellmodel-selected-column-cell-color)};
|
22
|
-
--table-cellrowmodel-selected-cell-background-color : #{neo(table-cellrowmodel-selected-cell-background-color)};
|
23
|
-
--table-cellrowmodel-selected-cell-color : #{neo(table-cellrowmodel-selected-cell-color)};
|
24
|
-
--table-cellrowmodel-selected-row-cell-background-color: #{neo(table-cellrowmodel-selected-row-cell-background-color)};
|
25
|
-
--table-cellrowmodel-selected-row-cell-color : #{neo(table-cellrowmodel-selected-row-cell-color)};
|
26
|
-
--table-rowmodel-selected-cell-background-color : #{neo(table-rowmodel-selected-cell-background-color)};
|
27
|
-
--table-rowmodel-selected-cell-color : #{neo(table-rowmodel-selected-cell-color)};
|
28
|
-
}
|
29
|
-
}
|
1
|
+
:root .neo-theme-light { // .neo-table-view
|
2
|
+
--table-cell-background-color-hover : #{lighten(#33343d, 70%)};
|
3
|
+
--table-cellmodel-selected-cell-background-color : #{lighten(#64B5F6, 22%)};
|
4
|
+
--table-cellmodel-selected-cell-color : #2b2b2b;
|
5
|
+
--table-cellmodel-selected-column-cell-background-color: #{lighten(#4f558a, 52%)};
|
6
|
+
--table-cellmodel-selected-column-cell-color : #2b2b2b;
|
7
|
+
--table-cellrowmodel-selected-cell-background-color : #{lighten(#64B5F6, 22%)};
|
8
|
+
--table-cellrowmodel-selected-cell-color : #2b2b2b;
|
9
|
+
--table-cellrowmodel-selected-row-cell-background-color: #{lighten(#4f558a, 52%)};
|
10
|
+
--table-cellrowmodel-selected-row-cell-color : #2b2b2b;
|
11
|
+
--table-rowmodel-selected-cell-background-color : #{lighten(#64B5F6, 22%)};
|
12
|
+
--table-rowmodel-selected-cell-color : #2b2b2b;
|
13
|
+
}
|
@@ -1,17 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
));
|
8
|
-
|
9
|
-
@if $useCssVars == true {
|
10
|
-
:root .neo-theme-light { // .neo-table-header-button
|
11
|
-
--table-header-button-background-color : #{neo(table-header-button-background-color)};
|
12
|
-
--table-header-button-background-image : #{neo(table-header-button-background-image)};
|
13
|
-
--table-header-button-color : #{neo(table-header-button-color)};
|
14
|
-
--table-header-button-glyph-color : #{neo(table-header-button-glyph-color)};
|
15
|
-
--table-header-button-ripple-background-color: #{neo(table-header-button-ripple-background-color)};
|
16
|
-
}
|
1
|
+
:root .neo-theme-light { // .neo-table-header-button
|
2
|
+
--table-header-button-background-color : #5d83a7;
|
3
|
+
--table-header-button-background-image : none;
|
4
|
+
--table-header-button-color : #fff;
|
5
|
+
--table-header-button-glyph-color : #fff;
|
6
|
+
--table-header-button-ripple-background-color: #{darken(#5d83a7, 10%)};
|
17
7
|
}
|
@@ -1,11 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
@if $useCssVars == true {
|
7
|
-
:root .neo-theme-light { // .neo-toolbar
|
8
|
-
--toolbar-background-color: #{neo(toolbar-background-color)};
|
9
|
-
--toolbar-padding : #{neo(toolbar-padding)};
|
10
|
-
}
|
11
|
-
}
|
1
|
+
:root .neo-theme-light { // .neo-toolbar
|
2
|
+
--toolbar-background-color: #fff;
|
3
|
+
--toolbar-padding : 5px;
|
4
|
+
}
|
@@ -1,11 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
@if $useCssVars == true {
|
7
|
-
:root .neo-theme-light { // .neo-tree-list
|
8
|
-
--tree-list-color : #{neo(tree-list-color)};
|
9
|
-
--tree-list-menu-item-color: #{neo(tree-list-menu-item-color)};
|
10
|
-
}
|
11
|
-
}
|
1
|
+
:root .neo-theme-light { // .neo-tree-list
|
2
|
+
--tree-list-color : #666;
|
3
|
+
--tree-list-menu-item-color: #1c60a0;
|
4
|
+
}
|
package/src/DefaultConfig.mjs
CHANGED
@@ -245,12 +245,12 @@ const DefaultConfig = {
|
|
245
245
|
useVdomWorker: true,
|
246
246
|
/**
|
247
247
|
* buildScripts/injectPackageVersion.mjs will update this value
|
248
|
-
* @default '
|
248
|
+
* @default '6.0.1'
|
249
249
|
* @memberOf! module:Neo
|
250
250
|
* @name config.version
|
251
251
|
* @type String
|
252
252
|
*/
|
253
|
-
version: '
|
253
|
+
version: '6.0.1'
|
254
254
|
};
|
255
255
|
|
256
256
|
Object.assign(DefaultConfig, {
|
@@ -31,7 +31,7 @@ class SortZone extends BaseSortZone {
|
|
31
31
|
* @param {Number} toIndex
|
32
32
|
*/
|
33
33
|
moveTo(fromIndex, toIndex) {
|
34
|
-
this.owner.up().moveTo(fromIndex, toIndex)
|
34
|
+
this.owner.up().moveTo(fromIndex, toIndex)
|
35
35
|
}
|
36
36
|
|
37
37
|
/**
|
@@ -47,7 +47,7 @@ class SortZone extends BaseSortZone {
|
|
47
47
|
|
48
48
|
NeoArray.remove(cls, 'neo-no-animation');
|
49
49
|
owner.cls = cls;
|
50
|
-
}, 300)
|
50
|
+
}, 300)
|
51
51
|
}
|
52
52
|
|
53
53
|
/**
|
@@ -61,7 +61,7 @@ class SortZone extends BaseSortZone {
|
|
61
61
|
NeoArray.add(cls, 'neo-no-animation');
|
62
62
|
owner.cls = cls;
|
63
63
|
|
64
|
-
super.onDragStart(data)
|
64
|
+
super.onDragStart(data)
|
65
65
|
}
|
66
66
|
}
|
67
67
|
|
@@ -122,6 +122,10 @@ class FileUpload extends Base {
|
|
122
122
|
tag : 'input',
|
123
123
|
type : 'file'
|
124
124
|
},
|
125
|
+
{
|
126
|
+
cls : 'neo-file-upload-label',
|
127
|
+
tag : 'label'
|
128
|
+
},
|
125
129
|
{
|
126
130
|
cls : 'neo-file-upload-error-message'
|
127
131
|
}
|
@@ -149,7 +153,7 @@ class FileUpload extends Base {
|
|
149
153
|
UPLOADING : 'scanning',
|
150
154
|
|
151
155
|
MALWARE_DETECTED : 'scan-failed',
|
152
|
-
|
156
|
+
AVAILABLE : 'not-downloadable',
|
153
157
|
DOWNLOADABLE : 'downloadable',
|
154
158
|
DELETED : 'deleted'
|
155
159
|
},
|
@@ -281,6 +285,14 @@ class FileUpload extends Base {
|
|
281
285
|
*/
|
282
286
|
documentDeleteUrl_ : null,
|
283
287
|
|
288
|
+
/**
|
289
|
+
* The HTTP method to use when requesting a document deletion using the {@link #member-documentDeleteUrl}.
|
290
|
+
*
|
291
|
+
* Defaults to `DELETE`.
|
292
|
+
* @member {String} documentDeleteMethod
|
293
|
+
*/
|
294
|
+
documentDeleteMethod : 'DELETE',
|
295
|
+
|
284
296
|
/**
|
285
297
|
* @member {String} state_=null
|
286
298
|
*/
|
@@ -303,6 +315,7 @@ class FileUpload extends Base {
|
|
303
315
|
error_ : null,
|
304
316
|
|
305
317
|
// UI strings which can be overridden for other languages
|
318
|
+
chooseFile : 'Choose file',
|
306
319
|
documentText : 'Document',
|
307
320
|
pleaseUseTheseTypes : 'Please use these file types',
|
308
321
|
fileSizeMoreThan : 'File size exceeds',
|
@@ -311,6 +324,7 @@ class FileUpload extends Base {
|
|
311
324
|
documentStatusError : 'Document status service error',
|
312
325
|
uploadFailed : 'Upload failed',
|
313
326
|
scanning : 'Scanning',
|
327
|
+
uploading : 'Uploading...',
|
314
328
|
malwareFoundInFile : 'Malware found in file',
|
315
329
|
pleaseCheck : 'Please check the file and try again',
|
316
330
|
successfullyUploaded : 'Successfully uploaded',
|
@@ -331,6 +345,18 @@ class FileUpload extends Base {
|
|
331
345
|
]);
|
332
346
|
}
|
333
347
|
|
348
|
+
afterSetId(value, oldValue) {
|
349
|
+
const
|
350
|
+
labelEl = this.vdom.cn[4],
|
351
|
+
inputElId = `${this.id}-input`;
|
352
|
+
|
353
|
+
this.getInputEl().id = labelEl.for = inputElId;
|
354
|
+
labelEl.html = this.chooseFile;
|
355
|
+
|
356
|
+
// silent vdom update, the super call will trigger the engine
|
357
|
+
super.afterSetId?.(value, oldValue);
|
358
|
+
}
|
359
|
+
|
334
360
|
/**
|
335
361
|
* @returns {Object}
|
336
362
|
*/
|
@@ -420,7 +446,7 @@ class FileUpload extends Base {
|
|
420
446
|
|
421
447
|
/**
|
422
448
|
* This event fires before every HTTP request is sent to the server via any of the configured URLs.
|
423
|
-
*
|
449
|
+
*
|
424
450
|
* @event beforeRequest
|
425
451
|
* @param {Object} event The event
|
426
452
|
* @param {Object} event.headers An object containing the configured {@link #property-headers}
|
@@ -444,7 +470,7 @@ class FileUpload extends Base {
|
|
444
470
|
|
445
471
|
(vdom.style || (vdom.style = {}))['--upload-progress'] = `${progress}turn`;
|
446
472
|
|
447
|
-
vdom.cn[1].cn[1].innerHTML =
|
473
|
+
vdom.cn[1].cn[1].innerHTML = `${this.uploading}... (${Math.round(progress * 100)}%)`;
|
448
474
|
|
449
475
|
this.uploadSize = loaded;
|
450
476
|
this.update();
|
@@ -545,6 +571,7 @@ class FileUpload extends Base {
|
|
545
571
|
|
546
572
|
// We ask the server to delete using our this.documentId
|
547
573
|
const statusResponse = await fetch(me.documentDeleteUrl, {
|
574
|
+
method : me.documentDeleteMethod,
|
548
575
|
headers
|
549
576
|
});
|
550
577
|
|
@@ -731,13 +758,13 @@ class FileUpload extends Base {
|
|
731
758
|
|
732
759
|
afterSetError(text) {
|
733
760
|
if (text) {
|
734
|
-
this.vdom.cn[
|
761
|
+
this.vdom.cn[5].cn = [{
|
735
762
|
vtype : 'text',
|
736
763
|
html : text
|
737
764
|
}];
|
738
765
|
}
|
739
766
|
else {
|
740
|
-
this.vdom.cn[
|
767
|
+
this.vdom.cn[5].cn = [];
|
741
768
|
}
|
742
769
|
|
743
770
|
this.validate();
|
package/src/form/field/Text.mjs
CHANGED
@@ -665,7 +665,7 @@ class Text extends Base {
|
|
665
665
|
|
666
666
|
me.silentVdomUpdate = true;
|
667
667
|
|
668
|
-
|
668
|
+
me.validate(false);
|
669
669
|
me.changeInputElKey('required', value ? value : null);
|
670
670
|
me.labelText = me.labelText; // apply the optional text if needed
|
671
671
|
|
package/src/main/DomAccess.mjs
CHANGED
@@ -509,8 +509,8 @@ class DomAccess extends Base {
|
|
509
509
|
*/
|
510
510
|
selectNode(data) {
|
511
511
|
let node = this.getElement(data.id),
|
512
|
-
start = Neo.isNumber(data.start)
|
513
|
-
end = Neo.isNumber(data.end)
|
512
|
+
start = Neo.isNumber(data.start) ? data.start : 0,
|
513
|
+
end = Neo.isNumber(data.end) ? data.end : 99999;
|
514
514
|
|
515
515
|
if (node) {
|
516
516
|
node.select();
|
package/src/main/DomEvents.mjs
CHANGED
@@ -118,6 +118,7 @@ class DomEvents extends Base {
|
|
118
118
|
|
119
119
|
let me = this;
|
120
120
|
|
121
|
+
document.addEventListener('selectionchange', me.onSelectionChange .bind(me));
|
121
122
|
document.addEventListener('DOMContentLoaded', me.onDomContentLoaded.bind(me));
|
122
123
|
window .addEventListener('hashchange', me.onHashChange .bind(me));
|
123
124
|
|
@@ -331,6 +332,16 @@ class DomEvents extends Base {
|
|
331
332
|
return path
|
332
333
|
}
|
333
334
|
|
335
|
+
getSelectionPath(path, target) {
|
336
|
+
if (target.parentNode && target.id.split('__').length > 1) {
|
337
|
+
path = this.getSelectionPath(path, target.parentNode);
|
338
|
+
}
|
339
|
+
|
340
|
+
path.push(this.getTargetData(target));
|
341
|
+
|
342
|
+
return path;
|
343
|
+
}
|
344
|
+
|
334
345
|
/**
|
335
346
|
* @param {Object} node
|
336
347
|
* @returns {Object}
|
@@ -388,7 +399,7 @@ class DomEvents extends Base {
|
|
388
399
|
let manager = Neo.worker.Manager;
|
389
400
|
|
390
401
|
manager.appNames.forEach(appName => {
|
391
|
-
manager.broadcast({action
|
402
|
+
manager.broadcast({action: 'disconnect', appName})
|
392
403
|
})
|
393
404
|
}
|
394
405
|
|
@@ -401,11 +412,11 @@ class DomEvents extends Base {
|
|
401
412
|
tagName = target.tagName,
|
402
413
|
value = target.value,
|
403
414
|
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
415
|
+
data = {
|
416
|
+
...me.getEventData(event),
|
417
|
+
valid: target.checkValidity(),
|
418
|
+
value: tagName === 'INPUT' ? StringUtil.escapeHtml(value) : tagName === 'TEXTAREA' ? me.stripHtml(value) : value
|
419
|
+
};
|
409
420
|
|
410
421
|
// input and change events can pass a FileList for input type file
|
411
422
|
if (target.files) {
|
@@ -489,8 +500,8 @@ class DomEvents extends Base {
|
|
489
500
|
manager.sendMessage('app', {
|
490
501
|
action: 'hashChange',
|
491
502
|
data : {
|
492
|
-
appNames
|
493
|
-
hash
|
503
|
+
appNames: manager.appNames,
|
504
|
+
hash : this.parseHash(hashString),
|
494
505
|
hashString
|
495
506
|
}
|
496
507
|
})
|
@@ -575,6 +586,33 @@ class DomEvents extends Base {
|
|
575
586
|
})
|
576
587
|
}
|
577
588
|
|
589
|
+
/**
|
590
|
+
* @param {Object} event
|
591
|
+
*/
|
592
|
+
onSelectionChange(event) {
|
593
|
+
const me = this,
|
594
|
+
target = event.target.activeElement;
|
595
|
+
|
596
|
+
if (target.tagName === 'BODY') return;
|
597
|
+
|
598
|
+
|
599
|
+
const targetData = me.getTargetData(target),
|
600
|
+
path = me.getSelectionPath([], target),
|
601
|
+
outputEvent = {
|
602
|
+
selection: {
|
603
|
+
start : target.selectionStart,
|
604
|
+
end : target.selectionEnd,
|
605
|
+
direction: target.selectionDirection
|
606
|
+
},
|
607
|
+
path : path,
|
608
|
+
target : targetData,
|
609
|
+
timeStamp: event.timeStamp,
|
610
|
+
type : "selectionchange"
|
611
|
+
};
|
612
|
+
|
613
|
+
me.sendMessageToApp(outputEvent);
|
614
|
+
}
|
615
|
+
|
578
616
|
/**
|
579
617
|
* @param {Object} event
|
580
618
|
*/
|
@@ -599,7 +637,7 @@ class DomEvents extends Base {
|
|
599
637
|
}
|
600
638
|
}
|
601
639
|
|
602
|
-
|
640
|
+
if (!preventUpdate) {
|
603
641
|
let {deltaX, deltaY, deltaZ} = event;
|
604
642
|
|
605
643
|
this.sendMessageToApp({
|
@@ -659,7 +697,7 @@ class DomEvents extends Base {
|
|
659
697
|
parts.push('')
|
660
698
|
}
|
661
699
|
|
662
|
-
key
|
700
|
+
key = decodeURIComponent(parts[0]);
|
663
701
|
value = decodeURIComponent(parts[1]);
|
664
702
|
|
665
703
|
if (key.indexOf('[]') !== -1) {
|
@@ -770,10 +808,10 @@ class DomEvents extends Base {
|
|
770
808
|
for (; i < len; i++) {
|
771
809
|
node = path[i];
|
772
810
|
|
773
|
-
for (j=0; j < countTargets; j++) {
|
811
|
+
for (j = 0; j < countTargets; j++) {
|
774
812
|
if (node.classList?.contains(targetArray[j])) {
|
775
813
|
return {
|
776
|
-
cls
|
814
|
+
cls: targetArray[j],
|
777
815
|
node
|
778
816
|
};
|
779
817
|
}
|