@refinitiv-ui/efx-grid 6.0.0-next.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/LICENSE +17 -0
- package/README.md +61 -0
- package/lib/column-format-dialog/index.d.ts +1 -0
- package/lib/column-format-dialog/index.js +1 -0
- package/lib/column-format-dialog/lib/column-format-dialog.d.ts +64 -0
- package/lib/column-format-dialog/lib/column-format-dialog.js +2713 -0
- package/lib/column-format-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-de.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-en.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-ja.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-zh-hant.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-format-dialog/lib/locale/translation-zh.js +94 -0
- package/lib/column-format-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/column-format-dialog/lib/locale/translation.js +18 -0
- package/lib/column-format-dialog/lib/preview-table.d.ts +151 -0
- package/lib/column-format-dialog/lib/preview-table.js +995 -0
- package/lib/column-format-dialog/themes/base.less +429 -0
- package/lib/column-format-dialog/themes/elemental/column-format-dialog.less +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/elemental/dark.js +16 -0
- package/lib/column-format-dialog/themes/elemental/defaults.less +1 -0
- package/lib/column-format-dialog/themes/elemental/index.less +5 -0
- package/lib/column-format-dialog/themes/elemental/light/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/elemental/light/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/elemental/light.js +16 -0
- package/lib/column-format-dialog/themes/halo/column-format-dialog.less +6 -0
- package/lib/column-format-dialog/themes/halo/dark/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/halo/dark.js +16 -0
- package/lib/column-format-dialog/themes/halo/defaults.less +1 -0
- package/lib/column-format-dialog/themes/halo/index.less +5 -0
- package/lib/column-format-dialog/themes/halo/light/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/halo/light.js +16 -0
- package/lib/column-format-dialog/themes/luna/column-format-dialog.less +1 -0
- package/lib/column-format-dialog/themes/luna/default/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/luna/default/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/luna/default/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/luna/default/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/luna/default/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/luna/default/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/luna/defaults.less +1 -0
- package/lib/column-format-dialog/themes/luna/index.less +5 -0
- package/lib/column-format-dialog/themes/solar/charcoal/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/solar/charcoal.js +16 -0
- package/lib/column-format-dialog/themes/solar/column-format-dialog.less +6 -0
- package/lib/column-format-dialog/themes/solar/defaults.less +1 -0
- package/lib/column-format-dialog/themes/solar/index.less +5 -0
- package/lib/column-format-dialog/themes/solar/pearl/column-format-dialog.js +4 -0
- package/lib/column-format-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/column-format-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/column-format-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/column-format-dialog/themes/solar/pearl.js +16 -0
- package/lib/column-selection-dialog/index.d.ts +1 -0
- package/lib/column-selection-dialog/index.js +1 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +41 -0
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +1410 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-de.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-en.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-ja.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh-hant.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/column-selection-dialog/lib/locale/translation-zh.js +19 -0
- package/lib/column-selection-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/column-selection-dialog/lib/locale/translation.js +18 -0
- package/lib/column-selection-dialog/themes/base.less +189 -0
- package/lib/column-selection-dialog/themes/elemental/column-selection-dialog.less +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/elemental/dark/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/elemental/dark.js +6 -0
- package/lib/column-selection-dialog/themes/elemental/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/elemental/index.less +5 -0
- package/lib/column-selection-dialog/themes/elemental/light/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/elemental/light/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/elemental/light.js +6 -0
- package/lib/column-selection-dialog/themes/halo/column-selection-dialog.less +22 -0
- package/lib/column-selection-dialog/themes/halo/dark/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/halo/dark.js +6 -0
- package/lib/column-selection-dialog/themes/halo/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/halo/index.less +6 -0
- package/lib/column-selection-dialog/themes/halo/light/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/halo/light.js +6 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/solar/charcoal.js +6 -0
- package/lib/column-selection-dialog/themes/solar/column-selection-dialog.less +1 -0
- package/lib/column-selection-dialog/themes/solar/defaults.less +1 -0
- package/lib/column-selection-dialog/themes/solar/index.less +6 -0
- package/lib/column-selection-dialog/themes/solar/pearl/column-selection-dialog.js +4 -0
- package/lib/column-selection-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/column-selection-dialog/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/column-selection-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/column-selection-dialog/themes/solar/pearl.js +6 -0
- package/lib/core/dist/core.css +1 -0
- package/lib/core/dist/core.js +28075 -0
- package/lib/core/dist/core.min.js +1 -0
- package/lib/core/es6/data/ColumnStats.d.ts +42 -0
- package/lib/core/es6/data/ColumnStats.js +428 -0
- package/lib/core/es6/data/DataCache.d.ts +81 -0
- package/lib/core/es6/data/DataCache.js +1317 -0
- package/lib/core/es6/data/DataTable.d.ts +125 -0
- package/lib/core/es6/data/DataTable.js +1655 -0
- package/lib/core/es6/data/DataView.d.ts +280 -0
- package/lib/core/es6/data/DataView.js +3654 -0
- package/lib/core/es6/data/Segment.d.ts +38 -0
- package/lib/core/es6/data/Segment.js +193 -0
- package/lib/core/es6/data/SegmentCollection.d.ts +58 -0
- package/lib/core/es6/data/SegmentCollection.js +431 -0
- package/lib/core/es6/grid/Core.d.ts +387 -0
- package/lib/core/es6/grid/Core.js +4939 -0
- package/lib/core/es6/grid/ILayoutGrid.d.ts +204 -0
- package/lib/core/es6/grid/ILayoutGrid.js +658 -0
- package/lib/core/es6/grid/LayoutGrid.d.ts +23 -0
- package/lib/core/es6/grid/LayoutGrid.js +2602 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +18 -0
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +907 -0
- package/lib/core/es6/grid/components/Cell.d.ts +50 -0
- package/lib/core/es6/grid/components/Cell.js +740 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +19 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.js +123 -0
- package/lib/core/es6/grid/components/CellSpan.d.ts +18 -0
- package/lib/core/es6/grid/components/CellSpan.js +99 -0
- package/lib/core/es6/grid/components/CellSpans.d.ts +38 -0
- package/lib/core/es6/grid/components/CellSpans.js +341 -0
- package/lib/core/es6/grid/components/Column.d.ts +22 -0
- package/lib/core/es6/grid/components/Column.js +612 -0
- package/lib/core/es6/grid/components/ElementWrapper.d.ts +125 -0
- package/lib/core/es6/grid/components/ElementWrapper.js +714 -0
- package/lib/core/es6/grid/components/HScrollbar.d.ts +24 -0
- package/lib/core/es6/grid/components/HScrollbar.js +222 -0
- package/lib/core/es6/grid/components/Scrollbar.d.ts +61 -0
- package/lib/core/es6/grid/components/Scrollbar.js +1374 -0
- package/lib/core/es6/grid/components/StretchedCells.d.ts +17 -0
- package/lib/core/es6/grid/components/StretchedCells.js +328 -0
- package/lib/core/es6/grid/components/VScrollbar.d.ts +18 -0
- package/lib/core/es6/grid/components/VScrollbar.js +139 -0
- package/lib/core/es6/grid/components/VirtualItems.d.ts +12 -0
- package/lib/core/es6/grid/components/VirtualItems.js +51 -0
- package/lib/core/es6/grid/event/EventDispatcher.d.ts +16 -0
- package/lib/core/es6/grid/event/EventDispatcher.js +138 -0
- package/lib/core/es6/grid/event/EventListeners.d.ts +34 -0
- package/lib/core/es6/grid/event/EventListeners.js +163 -0
- package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.d.ts +24 -0
- package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.js +615 -0
- package/lib/core/es6/grid/plugins/Plugin.d.ts +28 -0
- package/lib/core/es6/grid/plugins/Plugin.js +272 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +127 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +1707 -0
- package/lib/core/es6/grid/util/Conflator.d.ts +32 -0
- package/lib/core/es6/grid/util/Conflator.js +191 -0
- package/lib/core/es6/grid/util/ElementFrameWork.d.ts +18 -0
- package/lib/core/es6/grid/util/ElementFrameWork.js +227 -0
- package/lib/core/es6/grid/util/HttpRequest.d.ts +53 -0
- package/lib/core/es6/grid/util/HttpRequest.js +371 -0
- package/lib/core/es6/grid/util/PercentBar.d.ts +43 -0
- package/lib/core/es6/grid/util/PercentBar.js +390 -0
- package/lib/core/es6/grid/util/PercentBarRenderer.d.ts +41 -0
- package/lib/core/es6/grid/util/PercentBarRenderer.js +316 -0
- package/lib/core/es6/grid/util/RangeBar.d.ts +25 -0
- package/lib/core/es6/grid/util/RangeBar.js +255 -0
- package/lib/core/es6/grid/util/Reverter.d.ts +14 -0
- package/lib/core/es6/grid/util/Reverter.js +79 -0
- package/lib/core/es6/grid/util/SectionSettings.d.ts +79 -0
- package/lib/core/es6/grid/util/SectionSettings.js +674 -0
- package/lib/core/es6/grid/util/SelectionList.d.ts +50 -0
- package/lib/core/es6/grid/util/SelectionList.js +422 -0
- package/lib/core/es6/grid/util/TrackLayout.d.ts +84 -0
- package/lib/core/es6/grid/util/TrackLayout.js +850 -0
- package/lib/core/es6/grid/util/Virtualizer.d.ts +40 -0
- package/lib/core/es6/grid/util/Virtualizer.js +340 -0
- package/lib/core/es6/grid/util/util.d.ts +18 -0
- package/lib/core/es6/grid/util/util.js +450 -0
- package/lib/core/es6/index.d.ts +84 -0
- package/lib/core/es6/index.js +132 -0
- package/lib/core/es6/tr-grid-theme.d.ts +5 -0
- package/lib/core/es6/tr-grid-theme.js +5 -0
- package/lib/filter-dialog/index.d.ts +1 -0
- package/lib/filter-dialog/index.js +1 -0
- package/lib/filter-dialog/lib/checkbox-list.d.ts +27 -0
- package/lib/filter-dialog/lib/checkbox-list.js +336 -0
- package/lib/filter-dialog/lib/filter-dialog.d.ts +53 -0
- package/lib/filter-dialog/lib/filter-dialog.js +860 -0
- package/lib/filter-dialog/lib/locale/translation-de.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-de.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-en.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-en.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-ja.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-ja.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh-hant.js +37 -0
- package/lib/filter-dialog/lib/locale/translation-zh.d.ts +7 -0
- package/lib/filter-dialog/lib/locale/translation-zh.js +37 -0
- package/lib/filter-dialog/lib/locale/translation.d.ts +11 -0
- package/lib/filter-dialog/lib/locale/translation.js +18 -0
- package/lib/filter-dialog/themes/base-checkbox.less +37 -0
- package/lib/filter-dialog/themes/base.less +102 -0
- package/lib/filter-dialog/themes/elemental/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/elemental/dark/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/dark/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/elemental/dark.js +11 -0
- package/lib/filter-dialog/themes/elemental/defaults.less +3 -0
- package/lib/filter-dialog/themes/elemental/filter-dialog.less +1 -0
- package/lib/filter-dialog/themes/elemental/index.less +6 -0
- package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/elemental/light/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/elemental/light/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/light/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/elemental/light/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/elemental/light.js +11 -0
- package/lib/filter-dialog/themes/halo/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/halo/dark/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/dark/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/halo/dark.js +11 -0
- package/lib/filter-dialog/themes/halo/defaults.less +3 -0
- package/lib/filter-dialog/themes/halo/filter-dialog.less +9 -0
- package/lib/filter-dialog/themes/halo/index.less +6 -0
- package/lib/filter-dialog/themes/halo/light/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/halo/light/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/halo/light/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/halo/light/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/light/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/halo/light.js +11 -0
- package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/solar/charcoal.js +11 -0
- package/lib/filter-dialog/themes/solar/checkbox-list.less +3 -0
- package/lib/filter-dialog/themes/solar/defaults.less +3 -0
- package/lib/filter-dialog/themes/solar/filter-dialog.less +5 -0
- package/lib/filter-dialog/themes/solar/index.less +6 -0
- package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +4 -0
- package/lib/filter-dialog/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +4 -0
- package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +5 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/all-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/custom-elements.js +2 -0
- package/lib/filter-dialog/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/filter-dialog/themes/solar/pearl.js +11 -0
- package/lib/formatters/es6/CoralButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/CoralButtonFormatter.js +40 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralCheckboxFormatter.js +45 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralComboBoxFormatter.js +102 -0
- package/lib/formatters/es6/CoralIconFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralIconFormatter.js +45 -0
- package/lib/formatters/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralInputFormatter.js +40 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/CoralRadioButtonFormatter.js +80 -0
- package/lib/formatters/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/CoralSelectFormatter.js +66 -0
- package/lib/formatters/es6/CoralToggleFormatter.d.ts +12 -0
- package/lib/formatters/es6/CoralToggleFormatter.js +47 -0
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.js +119 -0
- package/lib/formatters/es6/EFButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/EFButtonFormatter.js +40 -0
- package/lib/formatters/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFCheckboxFormatter.js +45 -0
- package/lib/formatters/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFComboBoxFormatter.js +68 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EFDateTimePickerFormatter.js +55 -0
- package/lib/formatters/es6/EFIconFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFIconFormatter.js +45 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFNumberFieldFormatter.js +40 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.d.ts +22 -0
- package/lib/formatters/es6/EFRadioButtonFormatter.js +80 -0
- package/lib/formatters/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/formatters/es6/EFSelectFormatter.js +66 -0
- package/lib/formatters/es6/EFTextFieldFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFTextFieldFormatter.js +40 -0
- package/lib/formatters/es6/EFToggleFormatter.d.ts +12 -0
- package/lib/formatters/es6/EFToggleFormatter.js +47 -0
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.js +55 -0
- package/lib/formatters/es6/FormatterBuilder.d.ts +22 -0
- package/lib/formatters/es6/FormatterBuilder.js +334 -0
- package/lib/formatters/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/formatters/es6/NumericInputFormatter.js +64 -0
- package/lib/formatters/es6/PercentBarFormatter.d.ts +25 -0
- package/lib/formatters/es6/PercentBarFormatter.js +62 -0
- package/lib/formatters/es6/SimpleImageFormatter.d.ts +21 -0
- package/lib/formatters/es6/SimpleImageFormatter.js +64 -0
- package/lib/formatters/es6/SimpleInputFormatter.d.ts +12 -0
- package/lib/formatters/es6/SimpleInputFormatter.js +40 -0
- package/lib/formatters/es6/SimpleLinkFormatter.d.ts +21 -0
- package/lib/formatters/es6/SimpleLinkFormatter.js +48 -0
- package/lib/formatters/es6/SimpleTickerFormatter.d.ts +25 -0
- package/lib/formatters/es6/SimpleTickerFormatter.js +65 -0
- package/lib/formatters/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/formatters/es6/SimpleToggleFormatter.js +132 -0
- package/lib/formatters/es6/TextFormatter.d.ts +12 -0
- package/lib/formatters/es6/TextFormatter.js +30 -0
- package/lib/formatters/es6/index.d.ts +43 -0
- package/lib/formatters/es6/index.js +67 -0
- package/lib/grid/index.d.ts +1 -0
- package/lib/grid/index.js +2 -0
- package/lib/grid/lib/efx-grid.d.ts +32 -0
- package/lib/grid/lib/efx-grid.js +469 -0
- package/lib/grid/themes/base.less +134 -0
- package/lib/grid/themes/halo/dark/css/native-elements.css +0 -0
- package/lib/grid/themes/halo/dark/efx-grid.js +4 -0
- package/lib/grid/themes/halo/dark/es5/all-elements.js +2 -0
- package/lib/grid/themes/halo/dark/imports/all-elements.js +1 -0
- package/lib/grid/themes/halo/dark/imports/custom-elements.js +1 -0
- package/lib/grid/themes/halo/dark/imports/native-elements.js +0 -0
- package/lib/grid/themes/halo/dark.js +3 -0
- package/lib/grid/themes/halo/efx-grid.less +92 -0
- package/lib/grid/themes/halo/index.less +3 -0
- package/lib/grid/themes/halo/light/css/native-elements.css +0 -0
- package/lib/grid/themes/halo/light/efx-grid.js +4 -0
- package/lib/grid/themes/halo/light/es5/all-elements.js +2 -0
- package/lib/grid/themes/halo/light/imports/all-elements.js +1 -0
- package/lib/grid/themes/halo/light/imports/custom-elements.js +1 -0
- package/lib/grid/themes/halo/light/imports/native-elements.js +0 -0
- package/lib/grid/themes/halo/light.js +3 -0
- package/lib/grid/themes/solar/charcoal/css/native-elements.css +0 -0
- package/lib/grid/themes/solar/charcoal/efx-grid.js +4 -0
- package/lib/grid/themes/solar/charcoal/es5/all-elements.js +2 -0
- package/lib/grid/themes/solar/charcoal/imports/all-elements.js +1 -0
- package/lib/grid/themes/solar/charcoal/imports/custom-elements.js +1 -0
- package/lib/grid/themes/solar/charcoal/imports/native-elements.js +0 -0
- package/lib/grid/themes/solar/charcoal.js +3 -0
- package/lib/grid/themes/solar/efx-grid.less +27 -0
- package/lib/grid/themes/solar/index.less +3 -0
- package/lib/grid/themes/solar/pearl/css/native-elements.css +0 -0
- package/lib/grid/themes/solar/pearl/efx-grid.js +4 -0
- package/lib/grid/themes/solar/pearl/es5/all-elements.js +2 -0
- package/lib/grid/themes/solar/pearl/imports/all-elements.js +1 -0
- package/lib/grid/themes/solar/pearl/imports/custom-elements.js +1 -0
- package/lib/grid/themes/solar/pearl/imports/native-elements.js +0 -0
- package/lib/grid/themes/solar/pearl.js +3 -0
- package/lib/index.d.ts +102 -0
- package/lib/index.js +102 -0
- package/lib/row-segmenting/es6/RowSegmenting.d.ts +83 -0
- package/lib/row-segmenting/es6/RowSegmenting.js +592 -0
- package/lib/row-segmenting/es6/index.d.ts +1 -0
- package/lib/row-segmenting/es6/index.js +1 -0
- package/lib/rt-grid/dist/rt-grid.js +44672 -0
- package/lib/rt-grid/dist/rt-grid.min.js +1 -0
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +141 -0
- package/lib/rt-grid/es6/ColumnDefinition.js +1074 -0
- package/lib/rt-grid/es6/DataConnector.d.ts +37 -0
- package/lib/rt-grid/es6/DataConnector.js +266 -0
- package/lib/rt-grid/es6/FieldDefinition.d.ts +20 -0
- package/lib/rt-grid/es6/FieldDefinition.js +418 -0
- package/lib/rt-grid/es6/Grid.d.ts +261 -0
- package/lib/rt-grid/es6/Grid.js +2893 -0
- package/lib/rt-grid/es6/PredefinedFormula.d.ts +16 -0
- package/lib/rt-grid/es6/PredefinedFormula.js +33 -0
- package/lib/rt-grid/es6/ReferenceCounter.d.ts +38 -0
- package/lib/rt-grid/es6/ReferenceCounter.js +230 -0
- package/lib/rt-grid/es6/RowDefinition.d.ts +120 -0
- package/lib/rt-grid/es6/RowDefinition.js +873 -0
- package/lib/rt-grid/es6/SnapshotFiller.d.ts +21 -0
- package/lib/rt-grid/es6/SnapshotFiller.js +252 -0
- package/lib/rt-grid/es6/StyleLoader.d.ts +17 -0
- package/lib/rt-grid/es6/StyleLoader.js +47 -0
- package/lib/rt-grid/es6/index.d.ts +8 -0
- package/lib/rt-grid/es6/index.js +43 -0
- package/lib/statistics-row/es6/StatisticsRow.d.ts +67 -0
- package/lib/statistics-row/es6/StatisticsRow.js +786 -0
- package/lib/statistics-row/es6/index.d.ts +1 -0
- package/lib/statistics-row/es6/index.js +1 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.d.ts +45 -0
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.js +431 -0
- package/lib/tr-grid-auto-tooltip/es6/index.d.ts +1 -0
- package/lib/tr-grid-auto-tooltip/es6/index.js +1 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +67 -0
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +1777 -0
- package/lib/tr-grid-cell-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-cell-selection/es6/index.js +1 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +69 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.js +1476 -0
- package/lib/tr-grid-checkbox/es6/index.d.ts +1 -0
- package/lib/tr-grid-checkbox/es6/index.js +1 -0
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.d.ts +56 -0
- package/lib/tr-grid-column-fitter/es6/ColumnFitter.js +1000 -0
- package/lib/tr-grid-column-fitter/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-fitter/es6/index.js +1 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.d.ts +89 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.js +615 -0
- package/lib/tr-grid-column-formatting/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-formatting/es6/index.js +1 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +60 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +913 -0
- package/lib/tr-grid-column-grouping/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-grouping/es6/index.js +1 -0
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.d.ts +68 -0
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.js +1013 -0
- package/lib/tr-grid-column-resizing/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-resizing/es6/index.js +1 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.d.ts +70 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +928 -0
- package/lib/tr-grid-column-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-selection/es6/index.js +1 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +76 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +1227 -0
- package/lib/tr-grid-column-stack/es6/index.d.ts +1 -0
- package/lib/tr-grid-column-stack/es6/index.js +1 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +70 -0
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +947 -0
- package/lib/tr-grid-conditional-coloring/es6/index.d.ts +1 -0
- package/lib/tr-grid-conditional-coloring/es6/index.js +1 -0
- package/lib/tr-grid-content-wrap/es6/ContentWrap.d.ts +43 -0
- package/lib/tr-grid-content-wrap/es6/ContentWrap.js +478 -0
- package/lib/tr-grid-content-wrap/es6/index.d.ts +1 -0
- package/lib/tr-grid-content-wrap/es6/index.js +1 -0
- package/lib/tr-grid-contextmenu/es6/ContextMenu.d.ts +83 -0
- package/lib/tr-grid-contextmenu/es6/ContextMenu.js +471 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.d.ts +22 -0
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.js +133 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.d.ts +39 -0
- package/lib/tr-grid-contextmenu/es6/MenuItem.js +245 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.d.ts +29 -0
- package/lib/tr-grid-contextmenu/es6/PopupMenu.js +292 -0
- package/lib/tr-grid-contextmenu/es6/index.d.ts +1 -0
- package/lib/tr-grid-contextmenu/es6/index.js +1 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.d.ts +57 -0
- package/lib/tr-grid-filter-input/es6/FilterInput.js +928 -0
- package/lib/tr-grid-filter-input/es6/index.d.ts +1 -0
- package/lib/tr-grid-filter-input/es6/index.js +1 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.d.ts +44 -0
- package/lib/tr-grid-heat-map/es6/HeatMap.js +394 -0
- package/lib/tr-grid-heat-map/es6/index.d.ts +1 -0
- package/lib/tr-grid-heat-map/es6/index.js +1 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +129 -0
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +1977 -0
- package/lib/tr-grid-in-cell-editing/es6/index.d.ts +1 -0
- package/lib/tr-grid-in-cell-editing/es6/index.js +1 -0
- package/lib/tr-grid-pagination/es6/Pagination.d.ts +57 -0
- package/lib/tr-grid-pagination/es6/Pagination.js +427 -0
- package/lib/tr-grid-pagination/es6/index.d.ts +1 -0
- package/lib/tr-grid-pagination/es6/index.js +1 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.d.ts +60 -0
- package/lib/tr-grid-percent-bar/es6/PercentBar.js +801 -0
- package/lib/tr-grid-percent-bar/es6/index.d.ts +1 -0
- package/lib/tr-grid-percent-bar/es6/index.js +1 -0
- package/lib/tr-grid-printer/es6/CellWriter.d.ts +49 -0
- package/lib/tr-grid-printer/es6/CellWriter.js +226 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.d.ts +12 -0
- package/lib/tr-grid-printer/es6/ColumnWriter.js +21 -0
- package/lib/tr-grid-printer/es6/GridPrinter.d.ts +32 -0
- package/lib/tr-grid-printer/es6/GridPrinter.js +761 -0
- package/lib/tr-grid-printer/es6/PrintTrait.d.ts +38 -0
- package/lib/tr-grid-printer/es6/PrintTrait.js +481 -0
- package/lib/tr-grid-printer/es6/SectionWriter.d.ts +54 -0
- package/lib/tr-grid-printer/es6/SectionWriter.js +205 -0
- package/lib/tr-grid-printer/es6/index.d.ts +1 -0
- package/lib/tr-grid-printer/es6/index.js +1 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.d.ts +39 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.js +353 -0
- package/lib/tr-grid-range-bar/es6/index.d.ts +1 -0
- package/lib/tr-grid-range-bar/es6/index.js +1 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +53 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +794 -0
- package/lib/tr-grid-row-dragging/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-dragging/es6/index.js +1 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +118 -0
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +1884 -0
- package/lib/tr-grid-row-filtering/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-filtering/es6/index.js +1 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +109 -0
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +1541 -0
- package/lib/tr-grid-row-grouping/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-grouping/es6/index.js +1 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +74 -0
- package/lib/tr-grid-row-selection/es6/RowSelection.js +1202 -0
- package/lib/tr-grid-row-selection/es6/index.d.ts +1 -0
- package/lib/tr-grid-row-selection/es6/index.js +1 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +60 -0
- package/lib/tr-grid-rowcoloring/es6/RowColoring.js +611 -0
- package/lib/tr-grid-rowcoloring/es6/index.d.ts +1 -0
- package/lib/tr-grid-rowcoloring/es6/index.js +1 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +77 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.js +574 -0
- package/lib/tr-grid-textformatting/es6/index.d.ts +1 -0
- package/lib/tr-grid-textformatting/es6/index.js +1 -0
- package/lib/tr-grid-titlewrap/es6/TitleWrap.d.ts +29 -0
- package/lib/tr-grid-titlewrap/es6/TitleWrap.js +431 -0
- package/lib/tr-grid-titlewrap/es6/index.d.ts +1 -0
- package/lib/tr-grid-titlewrap/es6/index.js +1 -0
- package/lib/tr-grid-util/es6/CellPainter.d.ts +136 -0
- package/lib/tr-grid-util/es6/CellPainter.js +1128 -0
- package/lib/tr-grid-util/es6/Conflator.d.ts +34 -0
- package/lib/tr-grid-util/es6/Conflator.js +193 -0
- package/lib/tr-grid-util/es6/CoralItems.d.ts +10 -0
- package/lib/tr-grid-util/es6/CoralItems.js +42 -0
- package/lib/tr-grid-util/es6/DateTime.d.ts +57 -0
- package/lib/tr-grid-util/es6/DateTime.js +508 -0
- package/lib/tr-grid-util/es6/Deferred.d.ts +14 -0
- package/lib/tr-grid-util/es6/Deferred.js +98 -0
- package/lib/tr-grid-util/es6/Delay.d.ts +20 -0
- package/lib/tr-grid-util/es6/Delay.js +85 -0
- package/lib/tr-grid-util/es6/Dom.d.ts +32 -0
- package/lib/tr-grid-util/es6/Dom.js +346 -0
- package/lib/tr-grid-util/es6/ElementObserver.d.ts +10 -0
- package/lib/tr-grid-util/es6/ElementObserver.js +101 -0
- package/lib/tr-grid-util/es6/ElementWrapper.d.ts +23 -0
- package/lib/tr-grid-util/es6/ElementWrapper.js +83 -0
- package/lib/tr-grid-util/es6/ElfDate.d.ts +26 -0
- package/lib/tr-grid-util/es6/ElfDate.js +163 -0
- package/lib/tr-grid-util/es6/ElfUtil.d.ts +33 -0
- package/lib/tr-grid-util/es6/ElfUtil.js +458 -0
- package/lib/tr-grid-util/es6/EventDispatcher.d.ts +26 -0
- package/lib/tr-grid-util/es6/EventDispatcher.js +161 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.d.ts +27 -0
- package/lib/tr-grid-util/es6/ExpanderIcon.js +169 -0
- package/lib/tr-grid-util/es6/Ext.d.ts +10 -0
- package/lib/tr-grid-util/es6/Ext.js +52 -0
- package/lib/tr-grid-util/es6/FieldFormatter.d.ts +55 -0
- package/lib/tr-grid-util/es6/FieldFormatter.js +432 -0
- package/lib/tr-grid-util/es6/FilterBuilder.d.ts +48 -0
- package/lib/tr-grid-util/es6/FilterBuilder.js +521 -0
- package/lib/tr-grid-util/es6/FilterOperators.d.ts +41 -0
- package/lib/tr-grid-util/es6/FilterOperators.js +181 -0
- package/lib/tr-grid-util/es6/GridPlugin.d.ts +72 -0
- package/lib/tr-grid-util/es6/GridPlugin.js +747 -0
- package/lib/tr-grid-util/es6/Icon.d.ts +14 -0
- package/lib/tr-grid-util/es6/Icon.js +61 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +42 -0
- package/lib/tr-grid-util/es6/MouseDownTrait.js +237 -0
- package/lib/tr-grid-util/es6/MultiTableManager.d.ts +32 -0
- package/lib/tr-grid-util/es6/MultiTableManager.js +506 -0
- package/lib/tr-grid-util/es6/NumberFormatter.d.ts +83 -0
- package/lib/tr-grid-util/es6/NumberFormatter.js +471 -0
- package/lib/tr-grid-util/es6/PercentBar.d.ts +71 -0
- package/lib/tr-grid-util/es6/PercentBar.js +600 -0
- package/lib/tr-grid-util/es6/Perf.d.ts +32 -0
- package/lib/tr-grid-util/es6/Perf.js +162 -0
- package/lib/tr-grid-util/es6/Popup.d.ts +84 -0
- package/lib/tr-grid-util/es6/Popup.js +818 -0
- package/lib/tr-grid-util/es6/RangeBar.d.ts +33 -0
- package/lib/tr-grid-util/es6/RangeBar.js +259 -0
- package/lib/tr-grid-util/es6/RequestQueue.d.ts +30 -0
- package/lib/tr-grid-util/es6/RequestQueue.js +239 -0
- package/lib/tr-grid-util/es6/RowPainter.d.ts +23 -0
- package/lib/tr-grid-util/es6/RowPainter.js +188 -0
- package/lib/tr-grid-util/es6/SubTable.d.ts +74 -0
- package/lib/tr-grid-util/es6/SubTable.js +558 -0
- package/lib/tr-grid-util/es6/Table.d.ts +125 -0
- package/lib/tr-grid-util/es6/Table.js +790 -0
- package/lib/tr-grid-util/es6/TextHighlighter.d.ts +18 -0
- package/lib/tr-grid-util/es6/TextHighlighter.js +273 -0
- package/lib/tr-grid-util/es6/TickCodes.d.ts +8 -0
- package/lib/tr-grid-util/es6/TickCodes.js +33 -0
- package/lib/tr-grid-util/es6/Timer.d.ts +16 -0
- package/lib/tr-grid-util/es6/Timer.js +49 -0
- package/lib/tr-grid-util/es6/TouchProxy.d.ts +46 -0
- package/lib/tr-grid-util/es6/TouchProxy.js +212 -0
- package/lib/tr-grid-util/es6/Util.d.ts +65 -0
- package/lib/tr-grid-util/es6/Util.js +528 -0
- package/lib/tr-grid-util/es6/formula/ADCService.d.ts +11 -0
- package/lib/tr-grid-util/es6/formula/ADCService.js +72 -0
- package/lib/tr-grid-util/es6/formula/ADCSubscription.d.ts +17 -0
- package/lib/tr-grid-util/es6/formula/ADCSubscription.js +317 -0
- package/lib/tr-grid-util/es6/formula/AdFinService.d.ts +12 -0
- package/lib/tr-grid-util/es6/formula/AdFinService.js +61 -0
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.d.ts +19 -0
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.js +310 -0
- package/lib/tr-grid-util/es6/formula/Engine.d.ts +56 -0
- package/lib/tr-grid-util/es6/formula/Engine.js +592 -0
- package/lib/tr-grid-util/es6/formula/Formula.d.ts +68 -0
- package/lib/tr-grid-util/es6/formula/Formula.js +882 -0
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.d.ts +16 -0
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.js +165 -0
- package/lib/tr-grid-util/es6/formula/Realtime.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/Realtime.js +279 -0
- package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/RealtimeService.js +203 -0
- package/lib/tr-grid-util/es6/formula/TSIService.d.ts +11 -0
- package/lib/tr-grid-util/es6/formula/TSIService.js +51 -0
- package/lib/tr-grid-util/es6/formula/TSISubscription.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/TSISubscription.js +1015 -0
- package/lib/tr-grid-util/es6/formula/VariableToken.d.ts +30 -0
- package/lib/tr-grid-util/es6/formula/VariableToken.js +314 -0
- package/lib/tr-grid-util/es6/formula/functions/AdFin.d.ts +9 -0
- package/lib/tr-grid-util/es6/formula/functions/AdFin.js +1778 -0
- package/lib/tr-grid-util/es6/formula/functions/Excel.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Excel.js +21 -0
- package/lib/tr-grid-util/es6/formula/functions/Info.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Info.js +192 -0
- package/lib/tr-grid-util/es6/formula/functions/Internal.d.ts +8 -0
- package/lib/tr-grid-util/es6/formula/functions/Internal.js +90 -0
- package/lib/tr-grid-util/es6/formula/functions/Logic.d.ts +12 -0
- package/lib/tr-grid-util/es6/formula/functions/Logic.js +176 -0
- package/lib/tr-grid-util/es6/formula/functions/Math.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/functions/Math.js +1624 -0
- package/lib/tr-grid-util/es6/formula/functions/Statistics.d.ts +18 -0
- package/lib/tr-grid-util/es6/formula/functions/Statistics.js +234 -0
- package/lib/tr-grid-util/es6/formula/functions/Text.d.ts +10 -0
- package/lib/tr-grid-util/es6/formula/functions/Text.js +676 -0
- package/lib/tr-grid-util/es6/index.d.ts +63 -0
- package/lib/tr-grid-util/es6/index.js +99 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +28 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.js +141 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +114 -0
- package/lib/tr-grid-util/es6/jet/DataGenerator.js +827 -0
- package/lib/tr-grid-util/es6/jet/DataSet.d.ts +8 -0
- package/lib/tr-grid-util/es6/jet/DataSet.js +392 -0
- package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +21 -0
- package/lib/tr-grid-util/es6/jet/MockArchive.js +56 -0
- package/lib/tr-grid-util/es6/jet/MockJET.d.ts +25 -0
- package/lib/tr-grid-util/es6/jet/MockJET.js +63 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +37 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes.js +199 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +72 -0
- package/lib/tr-grid-util/es6/jet/MockQuotes2.js +564 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +8 -0
- package/lib/tr-grid-util/es6/jet/MockRTK.js +43 -0
- package/lib/tr-grid-util/es6/jet/index.d.ts +9 -0
- package/lib/tr-grid-util/es6/jet/index.js +18 -0
- package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +11 -0
- package/lib/tr-grid-util/es6/jet/mockDataAPI.js +131 -0
- package/lib/tr-grid-util/es6/locale/translation-de.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-de.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-en.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-en.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-ja.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-ja.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation-zh.d.ts +7 -0
- package/lib/tr-grid-util/es6/locale/translation-zh.js +51 -0
- package/lib/tr-grid-util/es6/locale/translation.d.ts +11 -0
- package/lib/tr-grid-util/es6/locale/translation.js +18 -0
- package/lib/types/es6/AutoTooltip.d.ts +45 -0
- package/lib/types/es6/CellSelection.d.ts +67 -0
- package/lib/types/es6/Checkbox.d.ts +69 -0
- package/lib/types/es6/ColumnFitter.d.ts +56 -0
- package/lib/types/es6/ColumnFormatting.d.ts +90 -0
- package/lib/types/es6/ColumnGrouping.d.ts +60 -0
- package/lib/types/es6/ColumnResizing.d.ts +68 -0
- package/lib/types/es6/ColumnSelection.d.ts +70 -0
- package/lib/types/es6/ColumnStack.d.ts +76 -0
- package/lib/types/es6/CompositeGrid/CollapsibleHeaderPlugin.d.ts +11 -0
- package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +38 -0
- package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +45 -0
- package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +287 -0
- package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +22 -0
- package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +44 -0
- package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +30 -0
- package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +42 -0
- package/lib/types/es6/CompositeGrid/TextWidthCalculator.d.ts +24 -0
- package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +46 -0
- package/lib/types/es6/CompositeGrid/index.d.ts +9 -0
- package/lib/types/es6/ConditionalColoring.d.ts +70 -0
- package/lib/types/es6/ContentWrap.d.ts +43 -0
- package/lib/types/es6/ContextMenu.d.ts +83 -0
- package/lib/types/es6/CoralButtonFormatter.d.ts +22 -0
- package/lib/types/es6/CoralCheckboxFormatter.d.ts +12 -0
- package/lib/types/es6/CoralComboBoxFormatter.d.ts +23 -0
- package/lib/types/es6/CoralIconFormatter.d.ts +23 -0
- package/lib/types/es6/CoralInputFormatter.d.ts +12 -0
- package/lib/types/es6/CoralRadioButtonFormatter.d.ts +22 -0
- package/lib/types/es6/CoralSelectFormatter.d.ts +23 -0
- package/lib/types/es6/CoralToggleFormatter.d.ts +12 -0
- package/lib/types/es6/Core/data/ColumnStats.d.ts +42 -0
- package/lib/types/es6/Core/data/DataCache.d.ts +81 -0
- package/lib/types/es6/Core/data/DataTable.d.ts +125 -0
- package/lib/types/es6/Core/data/DataView.d.ts +280 -0
- package/lib/types/es6/Core/data/Segment.d.ts +38 -0
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +58 -0
- package/lib/types/es6/Core/grid/Core.d.ts +387 -0
- package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +204 -0
- package/lib/types/es6/Core/grid/LayoutGrid.d.ts +23 -0
- package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/Cell.d.ts +50 -0
- package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +19 -0
- package/lib/types/es6/Core/grid/components/CellSpan.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/CellSpans.d.ts +38 -0
- package/lib/types/es6/Core/grid/components/Column.d.ts +22 -0
- package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +125 -0
- package/lib/types/es6/Core/grid/components/HScrollbar.d.ts +24 -0
- package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +61 -0
- package/lib/types/es6/Core/grid/components/StretchedCells.d.ts +17 -0
- package/lib/types/es6/Core/grid/components/VScrollbar.d.ts +18 -0
- package/lib/types/es6/Core/grid/components/VirtualItems.d.ts +12 -0
- package/lib/types/es6/Core/grid/event/EventDispatcher.d.ts +16 -0
- package/lib/types/es6/Core/grid/event/EventListeners.d.ts +34 -0
- package/lib/types/es6/Core/grid/plugins/DragAndDropTitlePlugin.d.ts +24 -0
- package/lib/types/es6/Core/grid/plugins/Plugin.d.ts +28 -0
- package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +127 -0
- package/lib/types/es6/Core/grid/util/Conflator.d.ts +32 -0
- package/lib/types/es6/Core/grid/util/ElementFrameWork.d.ts +18 -0
- package/lib/types/es6/Core/grid/util/HttpRequest.d.ts +53 -0
- package/lib/types/es6/Core/grid/util/PercentBar.d.ts +43 -0
- package/lib/types/es6/Core/grid/util/PercentBarRenderer.d.ts +41 -0
- package/lib/types/es6/Core/grid/util/RangeBar.d.ts +25 -0
- package/lib/types/es6/Core/grid/util/Reverter.d.ts +14 -0
- package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +79 -0
- package/lib/types/es6/Core/grid/util/SelectionList.d.ts +50 -0
- package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +84 -0
- package/lib/types/es6/Core/grid/util/Virtualizer.d.ts +40 -0
- package/lib/types/es6/Core/grid/util/util.d.ts +18 -0
- package/lib/types/es6/Core/index.d.ts +84 -0
- package/lib/types/es6/Core/tr-grid-theme.d.ts +5 -0
- package/lib/types/es6/DuplexEmeraldDateTimePickerFormatter.d.ts +14 -0
- package/lib/types/es6/EFButtonFormatter.d.ts +22 -0
- package/lib/types/es6/EFCheckboxFormatter.d.ts +12 -0
- package/lib/types/es6/EFComboBoxFormatter.d.ts +23 -0
- package/lib/types/es6/EFDateTimePickerFormatter.d.ts +13 -0
- package/lib/types/es6/EFIconFormatter.d.ts +23 -0
- package/lib/types/es6/EFNumberFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFRadioButtonFormatter.d.ts +22 -0
- package/lib/types/es6/EFSelectFormatter.d.ts +23 -0
- package/lib/types/es6/EFTextFieldFormatter.d.ts +12 -0
- package/lib/types/es6/EFToggleFormatter.d.ts +12 -0
- package/lib/types/es6/EmeraldDateTimePickerFormatter.d.ts +13 -0
- package/lib/types/es6/ExtensionColumnOptions.d.ts +41 -0
- package/lib/types/es6/ExtensionOptions.d.ts +52 -0
- package/lib/types/es6/Extensions.d.ts +61 -0
- package/lib/types/es6/FilterInput.d.ts +57 -0
- package/lib/types/es6/FormatterBuilder.d.ts +22 -0
- package/lib/types/es6/GridFormatter.d.ts +63 -0
- package/lib/types/es6/HeatMap.d.ts +44 -0
- package/lib/types/es6/InCellEditing.d.ts +129 -0
- package/lib/types/es6/MenuEventAPI.d.ts +22 -0
- package/lib/types/es6/MenuItem.d.ts +39 -0
- package/lib/types/es6/NumericInputFormatter.d.ts +13 -0
- package/lib/types/es6/Pagination.d.ts +57 -0
- package/lib/types/es6/PercentBar.d.ts +60 -0
- package/lib/types/es6/PercentBarFormatter.d.ts +25 -0
- package/lib/types/es6/PopupMenu.d.ts +29 -0
- package/lib/types/es6/RangeBar.d.ts +39 -0
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +143 -0
- package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +37 -0
- package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +20 -0
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +263 -0
- package/lib/types/es6/RealtimeGrid/PredefinedFormula.d.ts +16 -0
- package/lib/types/es6/RealtimeGrid/ReferenceCounter.d.ts +38 -0
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +120 -0
- package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +21 -0
- package/lib/types/es6/RealtimeGrid/StyleLoader.d.ts +17 -0
- package/lib/types/es6/RealtimeGrid/index.d.ts +8 -0
- package/lib/types/es6/RowColoring.d.ts +60 -0
- package/lib/types/es6/RowDragging.d.ts +53 -0
- package/lib/types/es6/RowFiltering.d.ts +118 -0
- package/lib/types/es6/RowGrouping.d.ts +109 -0
- package/lib/types/es6/RowSegmenting.d.ts +83 -0
- package/lib/types/es6/RowSelection.d.ts +74 -0
- package/lib/types/es6/SimpleImageFormatter.d.ts +21 -0
- package/lib/types/es6/SimpleInputFormatter.d.ts +12 -0
- package/lib/types/es6/SimpleLinkFormatter.d.ts +21 -0
- package/lib/types/es6/SimpleTickerFormatter.d.ts +25 -0
- package/lib/types/es6/SimpleToggleFormatter.d.ts +22 -0
- package/lib/types/es6/StatisticsRow.d.ts +67 -0
- package/lib/types/es6/TextFormatter.d.ts +12 -0
- package/lib/types/es6/TextFormatting.d.ts +77 -0
- package/lib/types/es6/TitleWrap.d.ts +29 -0
- package/lib/types/es6/Zoom.d.ts +51 -0
- package/lib/types/es6/index.d.ts +76 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/versions.json +36 -0
- package/lib/window-exporter.js +13 -0
- package/lib/zoom/es6/Zoom.d.ts +51 -0
- package/lib/zoom/es6/Zoom.js +419 -0
- package/lib/zoom/es6/index.d.ts +1 -0
- package/lib/zoom/es6/index.js +1 -0
- package/package.json +42 -0
@@ -0,0 +1,676 @@
|
|
1
|
+
/**
|
2
|
+
* @namespace Text
|
3
|
+
* @description
|
4
|
+
* {lang=en} Text manipulation functions
|
5
|
+
* {lang=ja} 文字列に関する関数
|
6
|
+
* {lang=zh} 文本控制函数
|
7
|
+
* {lang=ko} 텍스트 조작 함수
|
8
|
+
* {lang=ru} Text manipulation functions
|
9
|
+
*/
|
10
|
+
var Text = {};
|
11
|
+
|
12
|
+
var _toString = function(text) {
|
13
|
+
if(!text && text !== 0) {
|
14
|
+
return "";
|
15
|
+
}
|
16
|
+
|
17
|
+
return text + "";
|
18
|
+
};
|
19
|
+
|
20
|
+
/**
|
21
|
+
* @function EXACT
|
22
|
+
* @memberof Text
|
23
|
+
* @description
|
24
|
+
* {lang=en} The EXACT function returns 1(TRUE) if text string 1 is same as text string 2. Otherwise returns 0(FALSE). Use operand = for a shorthand.
|
25
|
+
* {lang=ja} EXACT 関数は、2つの文字列を比較して同じ場合は 1(TRUE) を返します。異なる場合は 0(FALSE) を返します。オペランド [ = ] を使用します。
|
26
|
+
* {lang=zh} 如果文本字符串 1 与文本字符串 2 相同,则 EXACT 函数返回 1(TRUE)。否则返回 0(FALSE)。快速记录请使用操作符 =
|
27
|
+
* {lang=ko} EXACT 함수는 텍스트 문자열 1이 텍스트 문자열 2와 같으면 1(TRUE)을 반환합니다. 다르면 0(FALSE)을 반환합니다. 약칭으로 피연산자 =를 사용합니다.
|
28
|
+
* {lang=ru} The EXACT function returns 1(TRUE) if text string 1 is same as text string 2. Otherwise returns 0(FALSE). Use operand = for a shorthand.
|
29
|
+
* @param {string} text1
|
30
|
+
* {lang=en} The text string 1.
|
31
|
+
* {lang=ja} 文字列 1
|
32
|
+
* {lang=zh} 文本字符串 1。
|
33
|
+
* {lang=ko} 텍스트 문자열 1.
|
34
|
+
* {lang=ru} The text string 1.
|
35
|
+
* @param {string} text2
|
36
|
+
* {lang=en} The text string 2.
|
37
|
+
* {lang=ja} 文字列 2
|
38
|
+
* {lang=zh} 文本字符串 2。
|
39
|
+
* {lang=ko} 텍스트 문자열 2.
|
40
|
+
* {lang=ru} The text string 2.
|
41
|
+
* @return {number}
|
42
|
+
* @example
|
43
|
+
* =EXACT(CF_CURR,"USD")
|
44
|
+
* =CF_CURR="USD"
|
45
|
+
*/
|
46
|
+
Text["EXACT"] = function(text1, text2) {
|
47
|
+
text1 = text1 + "";
|
48
|
+
text2 = text2 + "";
|
49
|
+
return (text1 === text2) ? 1 : 0;
|
50
|
+
};
|
51
|
+
/**
|
52
|
+
* @function FIND
|
53
|
+
* @memberof Text
|
54
|
+
* @description
|
55
|
+
* {lang=en} The FIND function returns the position of a specified character or sub-string within a supplied text string.
|
56
|
+
* REMARK: The function is case-sensitive. The first character is counted as 0.
|
57
|
+
* {lang=ja} FIND 関数は、指定された文字列内で指定された文字の位置を返します。
|
58
|
+
* 注記: この関数は、大文字と小文字を区別します。最初の文字は [0] としてカウントされます。
|
59
|
+
* {lang=zh} FIND 函数返回指定的字符或子字符串在所提供的文本字符串中的位置。
|
60
|
+
* {lang=ko} FIND 함수는 제공된 텍스트 문자열 내에서 지정된 문자 또는 하위 문자열의 위치를 반환합니다.
|
61
|
+
* {lang=ru} The FIND function returns the position of a specified character or sub-string within a supplied text string.
|
62
|
+
* 注意: 该函数区分大小写。首个字符计为 0。
|
63
|
+
* @param {string} findText
|
64
|
+
* {lang=en} The character or sub-string that you wish to find.
|
65
|
+
* {lang=ja} 検索文字列
|
66
|
+
* {lang=zh} 您希望查找的字符或子字符串。
|
67
|
+
* {lang=ko} 찾으려는 문자나 하위 문자열.
|
68
|
+
* {lang=ru} The character or sub-string that you wish to find.
|
69
|
+
* @param {string} withinText
|
70
|
+
* {lang=en} The text string that is to be searched.
|
71
|
+
* {lang=ja} 検索する文字列
|
72
|
+
* {lang=zh} 要搜索的文本字符串。
|
73
|
+
* {lang=ko} 검색할 텍스트 문자열.
|
74
|
+
* {lang=ru} The text string that is to be searched.
|
75
|
+
* @param {number=} opt_startNum
|
76
|
+
* {lang=en} An optional argument that specifies the position in the within_text string, from which the search should begin.
|
77
|
+
* {lang=ja} 検索文字列内で検索を開始する位置を指定するオプショナル引数。
|
78
|
+
* {lang=zh} 可选参数,指定搜索开始于 within_text 字符串中的位置。
|
79
|
+
* {lang=ko} 검색을 시작해야 하는 within_text 문자열의 위치를 지정하는 선택적 인수.
|
80
|
+
* {lang=ru} An optional argument that specifies the position in the within_text string, from which the search should begin.
|
81
|
+
* @return {number}
|
82
|
+
* @example
|
83
|
+
* =FIND("r","surfthewave",5)
|
84
|
+
*/
|
85
|
+
Text["FIND"] = function(findText, withinText, opt_startNum) {
|
86
|
+
findText = _toString(findText);
|
87
|
+
if(!findText) { // Invalid findText
|
88
|
+
return 0;
|
89
|
+
}
|
90
|
+
withinText = _toString(withinText);
|
91
|
+
if(!withinText) { // Invalid base text
|
92
|
+
return 0;
|
93
|
+
}
|
94
|
+
opt_startNum = +opt_startNum;
|
95
|
+
if (!opt_startNum || opt_startNum < 0) {
|
96
|
+
opt_startNum = 0;
|
97
|
+
}
|
98
|
+
var pos = withinText.indexOf(findText, opt_startNum);
|
99
|
+
return pos;
|
100
|
+
};
|
101
|
+
/**
|
102
|
+
* @function LEFT
|
103
|
+
* @memberof Text
|
104
|
+
* @description
|
105
|
+
* {lang=en} The LEFT function returns a specified number of characters from the start of a supplied text string.
|
106
|
+
* REMARK: If opt_numChars, (the number of returned characters), is more than the length of text string, return the whole string.
|
107
|
+
* {lang=ja} LEFT 関数は、指定された文字列の先頭から指定された数の文字を返します。
|
108
|
+
* 注記: opt_numChars (返される文字数) がテキスト文字列の長さを超えている場合、文字列全体を返します。
|
109
|
+
* {lang=zh} LEFT 函数返回从所提供的文本字符串起始处的指定数量的字符。
|
110
|
+
* 注意: 如果 opt_numChars, (返回的字符数), 多于文本字符串的长度,则返回整个字符串。
|
111
|
+
* {lang=hant} LEFT 函數返回從所提供的文本字符串起始處的指定數量的字符。
|
112
|
+
* 注意: 如果 opt_numChars, (返回的字符數), 多於文本字符串的長度,則返回整個字符串。
|
113
|
+
* {lang=ko} LEFT 함수는 제공된 텍스트 문자열의 시작 부분에서 지정된 수의 문자를 반환합니다.
|
114
|
+
* {lang=ru} The LEFT function returns a specified number of characters from the start of a supplied text string.
|
115
|
+
* {lang=de} Die Funktion LINKS gibt eine bestimmte Anzahl von Zeichen ab dem Beginn einer bereitgestellten Textzeichenfolge zurück.
|
116
|
+
* REMARK: If opt_numChars, (the number of returned characters), is more than the length of text string, return the whole string.
|
117
|
+
* @param {string} text
|
118
|
+
* {lang=en} The original text string.
|
119
|
+
* {lang=ja} 元の文字列
|
120
|
+
* {lang=zh} 初始文本字符串。
|
121
|
+
* {lang=hant} 初始文本字符串。
|
122
|
+
* {lang=ko} 원본 텍스트 문자열.
|
123
|
+
* {lang=ru} The original text string.
|
124
|
+
* {lang=de} Die ursprüngliche Textzeichenfolge.
|
125
|
+
* @param {number} opt_numChars
|
126
|
+
* {lang=en} An optional argument that specifies the number of characters to be returned from the start of the supplied text.
|
127
|
+
* {lang=ja} 指定された文字列の先頭から指定された文字数を返すオプショナル引数です。
|
128
|
+
* {lang=zh} 可选参数,指定从所提供的文本起始处要返回的字符数。
|
129
|
+
* {lang=hant} 可選參數,指定從所提供的文本起始處要返回的字符數。
|
130
|
+
* {lang=ko} 제공된 텍스트의 시작 부분에서 반환할 문자 수를 지정하는 선택적 인수.
|
131
|
+
* {lang=ru} An optional argument that specifies the number of characters to be returned from the start of the supplied text.
|
132
|
+
* {lang=de} Ein optionales Argument, das die Anzahl der Zeichen spezifiziert, die vom Anfang des bereitgestellten Textes zurückgegeben werden sollen.
|
133
|
+
* @return {string}
|
134
|
+
* @example
|
135
|
+
* =LEFT("Surf the Wave",4)
|
136
|
+
*/
|
137
|
+
Text["LEFT"] = function(text, opt_numChars) {
|
138
|
+
opt_numChars = +opt_numChars;
|
139
|
+
if(!opt_numChars) {
|
140
|
+
opt_numChars = 0;
|
141
|
+
}
|
142
|
+
if(opt_numChars < 0) {
|
143
|
+
opt_numChars = 1;
|
144
|
+
}
|
145
|
+
return _toString(text).substr(0, opt_numChars);
|
146
|
+
};
|
147
|
+
/**
|
148
|
+
* @function LENGTH
|
149
|
+
* @memberof Text
|
150
|
+
* @description
|
151
|
+
* {lang=en} The LENGTH function returns a number of characters of a text string.
|
152
|
+
* {lang=ja} LENGTH 関数は、文字列の文字数を返します。
|
153
|
+
* {lang=zh} LENGTH 函数返回文本字符串的一定数量的字符。
|
154
|
+
* {lang=hant} LENGTH 函數返回文本字符串的一定數量的字符。
|
155
|
+
* {lang=ko} LENGTH 함수는 텍스트 문자열의 문자 수를 반환합니다.
|
156
|
+
* {lang=ru} The LENGTH function returns a number of characters of a text string.
|
157
|
+
* {lang=de} Die Funktion LÄNGE gibt eine Anzahl von Zeichen einer Textzeichenfolge zurück.
|
158
|
+
* @param {string} text
|
159
|
+
* {lang=en} Text string.
|
160
|
+
* {lang=ja} 文字列
|
161
|
+
* {lang=zh} 文本字符串。
|
162
|
+
* {lang=hant} 文本字符串。
|
163
|
+
* {lang=ko} 텍스트 문자열.
|
164
|
+
* {lang=ru} Text string.
|
165
|
+
* {lang=de} Textzeichenfolge.
|
166
|
+
* @return {number}
|
167
|
+
* @example
|
168
|
+
* =LENGTH("Markets")
|
169
|
+
*/
|
170
|
+
Text["LENGTH"] = function(text) {
|
171
|
+
return _toString(text).length;
|
172
|
+
};
|
173
|
+
/**
|
174
|
+
* @function LEN
|
175
|
+
* @memberof Text
|
176
|
+
* @description
|
177
|
+
* {lang=en} The LEN function returns a number of characters of a text string.
|
178
|
+
* {lang=ja} LEN 関数は、文字列の文字数を返します。
|
179
|
+
* {lang=zh} LEN 函数返回文本字符串的一定数量的字符。
|
180
|
+
* {lang=hant} LEN 函數返回文本字符串的一定數量的字符。
|
181
|
+
* {lang=ko} LEN 함수는 텍스트 문자열의 문자 수를 반환합니다.
|
182
|
+
* {lang=ru} The LEN function returns a number of characters of a text string.
|
183
|
+
* {lang=de} Die Funktion LEN gibt eine Anzahl von Zeichen einer Textzeichenfolge zurück.
|
184
|
+
* @param {string} text
|
185
|
+
* {lang=en} Text string.
|
186
|
+
* {lang=ja} 文字列
|
187
|
+
* {lang=zh} 文本字符串。
|
188
|
+
* {lang=hant} 文本字符串。
|
189
|
+
* {lang=ko} 텍스트 문자열.
|
190
|
+
* {lang=ru} Text string.
|
191
|
+
* {lang=de} Textzeichenfolge.
|
192
|
+
* @return {number}
|
193
|
+
* @example
|
194
|
+
* =LEN("Markets")
|
195
|
+
*/
|
196
|
+
Text["LEN"] = Text["LENGTH"];
|
197
|
+
|
198
|
+
/**
|
199
|
+
* @function LOWER
|
200
|
+
* @memberof Text
|
201
|
+
* @description
|
202
|
+
* {lang=en} The LOWER function converts all uppercase letters in text string to lowercase.
|
203
|
+
* {lang=ja} LOWER 関数は、文字列のすべての文字を小文字に変換します。
|
204
|
+
* {lang=zh} LOWER 函数将文本字符串中的全部大写字母转换成小写。
|
205
|
+
* {lang=hant} LOWER 函數將文本字符串中的全部大寫字母轉換成小寫。
|
206
|
+
* {lang=ko} LOWER 함수는 텍스트 문자열의 모든 대문자를 소문자로 변환합니다.
|
207
|
+
* {lang=ru} The LOWER function converts all uppercase letters in text string to lowercase.
|
208
|
+
* {lang=de} Die Funktion KLEINBUCHSTABEN konvertiert alle Großbuchstaben in der Textzeichenfolge in Kleinbuchstaben.
|
209
|
+
* @param {string} text
|
210
|
+
* {lang=en} Text string.
|
211
|
+
* {lang=ja} 文字列
|
212
|
+
* {lang=zh} 文本字符串。
|
213
|
+
* {lang=hant} 文本字符串。
|
214
|
+
* {lang=ko} 텍스트 문자열.
|
215
|
+
* {lang=ru} Text string.
|
216
|
+
* {lang=de} Textzeichenfolge.
|
217
|
+
* @return {string}
|
218
|
+
* @example
|
219
|
+
* =LOWER("HELLO WORLD")
|
220
|
+
*/
|
221
|
+
Text["LOWER"] = function(text) {
|
222
|
+
return _toString(text).toLowerCase();
|
223
|
+
};
|
224
|
+
|
225
|
+
/**
|
226
|
+
* @function MID
|
227
|
+
* @memberof Text
|
228
|
+
* @description
|
229
|
+
* {lang=en} The MID function returns a specified number of characters from the middle of a supplied text string.
|
230
|
+
* REMARK: The first character is counted as 0.
|
231
|
+
* {lang=ja} MID 関数は、文字列の指定された位置から指定された数の文字を返します。
|
232
|
+
* 注記: 最初の文字は [0] としてカウントされます。
|
233
|
+
* {lang=zh} MID 函数从所提供的文本字符串的中间返回指定数量的字符。
|
234
|
+
* 注意: 首字符计为 0。
|
235
|
+
* {lang=hant} MID 函數從所提供的文本字符串的中間返回指定數量的字符。
|
236
|
+
* 注意: 首字符計為 0。
|
237
|
+
* {lang=ko} MID 함수는 제공된 텍스트 문자열의 중간 부분에서 지정된 수의 문자를 반환합니다.
|
238
|
+
* {lang=ru} The MID function returns a specified number of characters from the middle of a supplied text string.
|
239
|
+
* REMARK: The first character is counted as 0.
|
240
|
+
* {lang=de} Die Funktion MITTE gibt eine bestimmte Anzahl von Zeichen aus der Mitte einer bereitgestellten Textzeichenfolge zurück.
|
241
|
+
* REMARK: The first character is counted as 0.
|
242
|
+
* @param {string} text
|
243
|
+
* {lang=en} The original text string.
|
244
|
+
* {lang=ja} 元の文字列
|
245
|
+
* {lang=zh} 初始文本字符串。
|
246
|
+
* {lang=hant} 初始文本字符串。
|
247
|
+
* {lang=ko} 원본 텍스트 문자열.
|
248
|
+
* {lang=ru} The original text string.
|
249
|
+
* {lang=de} Die ursprüngliche Textzeichenfolge.
|
250
|
+
* @param {number} startNum
|
251
|
+
* {lang=en} An integer that specifies the position of the first character that you want to be returned.
|
252
|
+
* {lang=ja} 返される最初の文字の位置を指定する整数。
|
253
|
+
* {lang=zh} 一个整数,指定您想要返回的首字符的位置。
|
254
|
+
* {lang=hant} 一個整數,指定您想要返回的首字符的位置。
|
255
|
+
* {lang=ko} 반환할 첫 번째 문자의 위치를 지정하는 정수입니다.
|
256
|
+
* {lang=ru} An integer that specifies the position of the first character that you want to be returned.
|
257
|
+
* {lang=de} Eine Ganzzahl, die die Position des ersten Zeichens angibt, das zurückgegeben werden soll.
|
258
|
+
* @param {number} numChars
|
259
|
+
* {lang=en} An integer that specifies the number of characters (beginning with start_num), to be returned from the supplied text.
|
260
|
+
* {lang=ja} 指定された文字列から返される文字数を指定する整数。
|
261
|
+
* {lang=zh} 一个整数,指定从所提供的文本要返回的字符数 (以 start_num 开头)。
|
262
|
+
* {lang=hant} 一個整數,指定從所提供的文本要返回的字符數 (以 start_num 開頭)。
|
263
|
+
* {lang=ko} 제공된 텍스트에서 반환할 문자 수(start_num으로 시작하는)를 지정하는 정수입니다.
|
264
|
+
* {lang=ru} An integer that specifies the number of characters (beginning with start_num), to be returned from the supplied text.
|
265
|
+
* {lang=de} Eine Ganzzahl, die die Anzahl der Zeichen (beginnend mit start_num) spezifiziert, die vom bereitgestellten Text zurückgegeben werden soll.
|
266
|
+
* @return {string}
|
267
|
+
* @example
|
268
|
+
* =MID("antidisestablishmentarianism",7,13)
|
269
|
+
*/
|
270
|
+
Text["MID"] = function(text, startNum, numChars) {
|
271
|
+
return _toString(text).substr(startNum, numChars);
|
272
|
+
};
|
273
|
+
/**
|
274
|
+
* @function REPLACE
|
275
|
+
* @memberof Text
|
276
|
+
* @description
|
277
|
+
* {lang=en} The REPLACE function replaces all or part of a text string with another string.
|
278
|
+
* {lang=ja} REPLACE 関数は、指定された数の文字を新しい文字で置き換えた文字列を返します。
|
279
|
+
* {lang=zh} REPLACE 函数将全部或部分文本字符串替代为另一字符串。
|
280
|
+
* {lang=hant} REPLACE 函數將全部或部分文本字符串替代為另一字符串。
|
281
|
+
* {lang=ko} REPLACE 함수는 텍스트 문자열 전부 또는 일부를 다른 문자열로 바꿉니다.
|
282
|
+
* {lang=ru} The REPLACE function replaces all or part of a text string with another string.
|
283
|
+
* {lang=de} Die Funktion ERSETZEN tauscht eine Textzeichenfolge ganz oder teilweise mit einer anderen Zeichenfolge aus.
|
284
|
+
* @param {string} oldText
|
285
|
+
* {lang=en} The original text string, that you want to replace a part of.
|
286
|
+
* {lang=ja} 置き換えをする元の文字列。
|
287
|
+
* {lang=zh} 您想要部分替代的初始文本字符串。
|
288
|
+
* {lang=hant} 您想要部分替代的初始文本字符串。
|
289
|
+
* {lang=ko} 일부를 바꾸려는 원본 텍스트 문자열.
|
290
|
+
* {lang=ru} The original text string, that you want to replace a part of.
|
291
|
+
* {lang=de} Die ursprüngliche Textzeichenfolge, von der Sie einen Teil ersetzen möchten.
|
292
|
+
* @param {number} numChars
|
293
|
+
* {lang=en} The number of characters to replace.
|
294
|
+
* {lang=ja} 置き換えをする文字数。
|
295
|
+
* {lang=zh} 要替代的字符数。
|
296
|
+
* {lang=hant} 要替代的字符數。
|
297
|
+
* {lang=ko} 바꿀 문자 수.
|
298
|
+
* {lang=ru} The number of characters to replace.
|
299
|
+
* {lang=de} Die Anzahl der zu ersetzenden Zeichen.
|
300
|
+
* @param {number} startNum
|
301
|
+
* {lang=en} The position, within old_text, of the first character that you want to replace.
|
302
|
+
* {lang=ja} 置き換えをする文字列中で、置き換えを開始する文字の位置。
|
303
|
+
* {lang=zh} 您想要替代的旧文本中首字符的位置。
|
304
|
+
* {lang=hant} 您想要替代的舊文本中首字符的位置。
|
305
|
+
* {lang=ko} old_text 내에서 바꾸려는 첫 번째 문자의 위치.
|
306
|
+
* {lang=ru} The position, within old_text, of the first character that you want to replace.
|
307
|
+
* {lang=de} Die Position, innerhalb von old_text, des ersten Zeichens, das Sie ersetzen möchten.
|
308
|
+
* @param {string} newText
|
309
|
+
* {lang=en} The replacement text.
|
310
|
+
* {lang=ja} 置き換える文字列。
|
311
|
+
* {lang=zh} 替代文本。
|
312
|
+
* {lang=hant} 替代文本。
|
313
|
+
* {lang=ko} 대체 텍스트.
|
314
|
+
* {lang=ru} The replacement text.
|
315
|
+
* {lang=de} Der Ersatztext.
|
316
|
+
* @return {string}
|
317
|
+
* @example
|
318
|
+
* =REPLACE("Rollerblading",7,6,"skates")
|
319
|
+
*/
|
320
|
+
Text["REPLACE"] = function(oldText, numChars, startNum, newText) {
|
321
|
+
newText = newText + "";
|
322
|
+
oldText = _toString(oldText);
|
323
|
+
var arrOldText = oldText.split("");
|
324
|
+
arrOldText.splice(startNum, numChars, newText);
|
325
|
+
return arrOldText.join("");
|
326
|
+
};
|
327
|
+
/**
|
328
|
+
* @function RIGHT
|
329
|
+
* @memberof Text
|
330
|
+
* @description
|
331
|
+
* {lang=en} The RIGHT function returns a specified number of characters from the end of a supplied text string.
|
332
|
+
* {lang=ja} RIGHT 関数は、指定された文字列の末尾から指定された文字数を返します。
|
333
|
+
* {lang=zh} RIGHT 函数从所提供的文本字符串末尾返回指定数量的字符。
|
334
|
+
* {lang=hant} RIGHT 函數從所提供的文本字符串末尾返回指定數量的字符。
|
335
|
+
* {lang=ko} RIGHT 함수는 제공된 텍스트 문자열의 끝부분에서 지정된 수의 문자를 반환합니다.
|
336
|
+
* {lang=ru} The RIGHT function returns a specified number of characters from the end of a supplied text string.
|
337
|
+
* {lang=de} Die Funktion RECHTS gibt eine bestimmte Anzahl von Zeichen vom Ende einer bereitgestellten Textzeichenfolge zurück.
|
338
|
+
* @param {string} text
|
339
|
+
* {lang=en} The original text string.
|
340
|
+
* {lang=ja} 元の文字列。
|
341
|
+
* {lang=zh} 初始文本字符串。
|
342
|
+
* {lang=hant} 初始文本字符串。
|
343
|
+
* {lang=ko} 원본 텍스트 문자열.
|
344
|
+
* {lang=ru} The original text string.
|
345
|
+
* {lang=de} Die ursprüngliche Textzeichenfolge.
|
346
|
+
* @param {number} opt_numChars
|
347
|
+
* {lang=en} An optional argument that specifies the number of characters to be returned from the end of the supplied text.
|
348
|
+
* {lang=ja} 指定された文字列の末尾から指定された文字数を返すオプショナル引数です。
|
349
|
+
* {lang=zh} 可选参数,指定从所提供文本的末尾返回的字符数。
|
350
|
+
* {lang=hant} 可選參數,指定從所提供文本的末尾返回的字符數。
|
351
|
+
* {lang=ko} 제공된 텍스트의 끝부분에서 반환할 문자 수를 지정하는 선택적 인수.
|
352
|
+
* {lang=ru} An optional argument that specifies the number of characters to be returned from the end of the supplied text.
|
353
|
+
* {lang=de} Ein optionales Argument, das die Anzahl der Zeichen spezifiziert, die vom Ende des bereitgestellten Textes zurückgegeben werden sollen.
|
354
|
+
* @return {string}
|
355
|
+
* @example
|
356
|
+
* =RIGHT("Portishead",4)
|
357
|
+
*/
|
358
|
+
Text["RIGHT"] = function(text, opt_numChars) {
|
359
|
+
text = _toString(text);
|
360
|
+
opt_numChars = +opt_numChars;
|
361
|
+
if(!opt_numChars) {
|
362
|
+
opt_numChars = 0;
|
363
|
+
}
|
364
|
+
if(opt_numChars < 0) {
|
365
|
+
opt_numChars = 1;
|
366
|
+
}
|
367
|
+
var startNum = text.length - opt_numChars;
|
368
|
+
return text.substr(startNum, opt_numChars);
|
369
|
+
};
|
370
|
+
/**
|
371
|
+
* @function TRIM
|
372
|
+
* @memberof Text
|
373
|
+
* @description
|
374
|
+
* {lang=en} The TRIM function removes leading, trailing, and consecutive spaces from a string.
|
375
|
+
* {lang=ja} TRIM 関数は、指定された文字列の余分な空白を削除します。
|
376
|
+
* {lang=zh} TRIM 函数从一个字符串中删除开头、结尾与连续的空格。
|
377
|
+
* {lang=hant} TRIM 函數從一個字符串中刪除開頭、結尾與連續的空格。
|
378
|
+
* {lang=ko} TRIM 함수는 문자열에서 앞과 뒤, 연속된 공백을 제거합니다.
|
379
|
+
* {lang=ru} The TRIM function removes leading, trailing, and consecutive spaces from a string.
|
380
|
+
* {lang=de} Die Funktion KÜRZEN entfernt führende, nachfolgende und aufeinanderfolgende Leerzeichen aus einer Zeichenfolge.
|
381
|
+
* @param {string} text
|
382
|
+
* {lang=en} Text string.
|
383
|
+
* {lang=ja} 文字列
|
384
|
+
* {lang=zh} 文本字符串。
|
385
|
+
* {lang=hant} 文本字符串。
|
386
|
+
* {lang=ko} 텍스트 문자열.
|
387
|
+
* {lang=ru} Text string.
|
388
|
+
* {lang=de} Textzeichenfolge.
|
389
|
+
* @return {string}
|
390
|
+
* @example
|
391
|
+
* =TRIM(" Information Management Systems ")
|
392
|
+
*/
|
393
|
+
Text["TRIM"] = function(text) {
|
394
|
+
return _toString(text).trim();
|
395
|
+
};
|
396
|
+
/**
|
397
|
+
* @function UPPER
|
398
|
+
* @memberof Text
|
399
|
+
* @description
|
400
|
+
* {lang=en} The UPPER function converts all lowercase letters in text string to uppercase.
|
401
|
+
* {lang=ja} UPPER 関数は、文字列のすべての小文字を大文字に変換します。
|
402
|
+
* {lang=zh} UPPER 函数将文本字符串中的全部小写字母转换成大写。
|
403
|
+
* {lang=hant} UPPER 函數將文本字符串中的全部小寫字母轉換成大寫。
|
404
|
+
* {lang=ko} UPPER 함수는 텍스트 문자열의 모든 소문자를 대문자로 변환합니다.
|
405
|
+
* {lang=ru} The UPPER function converts all lowercase letters in text string to uppercase.
|
406
|
+
* {lang=de} Die Funktion GROSSBUCHSTABEN konvertiert alle Kleinbuchstaben in der Textzeichenfolge in Großbuchstaben.
|
407
|
+
* @param {string} text
|
408
|
+
* {lang=en} Text string.
|
409
|
+
* {lang=ja} 文字列
|
410
|
+
* {lang=zh} 文本字符串。
|
411
|
+
* {lang=hant} 文本字符串。
|
412
|
+
* {lang=ko} 텍스트 문자열.
|
413
|
+
* {lang=ru} Text string.
|
414
|
+
* {lang=de} Textzeichenfolge.
|
415
|
+
* @return {string}
|
416
|
+
* @example
|
417
|
+
* =UPPER("Hello World")
|
418
|
+
*/
|
419
|
+
Text["UPPER"] = function(text) {
|
420
|
+
return _toString(text).toUpperCase();
|
421
|
+
};
|
422
|
+
/**
|
423
|
+
* @function VALUE
|
424
|
+
* @memberof Text
|
425
|
+
* @description
|
426
|
+
* {lang=en} The VALUE function converts a string to a number.
|
427
|
+
* {lang=ja} VALUE 関数は、文字列を数値に変換します。
|
428
|
+
* {lang=zh} VALUE 函数将字符串转换成数字。
|
429
|
+
* {lang=hant} VALUE 函數將字符串轉換成數字。
|
430
|
+
* {lang=ko} VALUE 함수는 문자열을 숫자로 변환합니다.
|
431
|
+
* {lang=ru} The VALUE function converts a string to a number.
|
432
|
+
* {lang=de} Die Funktion WERT konvertiert eine Zeichenfolge in eine Zahl.
|
433
|
+
* @param {string} text
|
434
|
+
* {lang=en} text
|
435
|
+
* {lang=ja} 文字列
|
436
|
+
* {lang=zh} 文本
|
437
|
+
* {lang=hant} 文本
|
438
|
+
* {lang=ko} 텍스트
|
439
|
+
* {lang=ru} text
|
440
|
+
* {lang=de} Text
|
441
|
+
* @return {number}
|
442
|
+
* @example
|
443
|
+
* =VALUE("987.1")
|
444
|
+
*/
|
445
|
+
Text["VALUE"] = function(text) {
|
446
|
+
return +text;
|
447
|
+
};
|
448
|
+
/**
|
449
|
+
* @function CHAR
|
450
|
+
* @memberof Text
|
451
|
+
* @description
|
452
|
+
* {lang=en} The CHAR function converts a number to an ASCII character.
|
453
|
+
* {lang=ja} CHAR 関数は、数値を ASCII 文字に変換します。
|
454
|
+
* {lang=zh} CHAR 函数将数字转换成 ASCII 字符。
|
455
|
+
* {lang=hant} CHAR 函數將數字轉換成 ASCII 字符。
|
456
|
+
* {lang=ko} CHAR 함수는 숫자를 ASCII 문자로 변환합니다.
|
457
|
+
* {lang=ru} The CHAR function converts a number to an ASCII character.
|
458
|
+
* {lang=de} Die Funktion CHAR konvertiert eine Zahl in ein ASCII-Zeichen.
|
459
|
+
* @param {number} code
|
460
|
+
* {lang=en} character code
|
461
|
+
* {lang=ja} 文字コード
|
462
|
+
* {lang=zh} 字符代码
|
463
|
+
* {lang=hant} 字符代碼
|
464
|
+
* {lang=ko} 문자 코드
|
465
|
+
* {lang=ru} character code
|
466
|
+
* {lang=de} Zeichencode
|
467
|
+
* @return {string}
|
468
|
+
* @example
|
469
|
+
* =CHAR(1)
|
470
|
+
*/
|
471
|
+
Text["CHAR"] = function(code) {
|
472
|
+
var num = +code;
|
473
|
+
return String.fromCharCode(num);
|
474
|
+
};
|
475
|
+
/**
|
476
|
+
* @function CLEAN
|
477
|
+
* @memberof Text
|
478
|
+
* @description
|
479
|
+
* {lang=en} The CLEAN function removes non-ASCII characters, (characters not in the range 32-127 inclusive), from the string.
|
480
|
+
* {lang=ja} CLEAN 関数は、ASCII 以外の文字 (32-127 の範囲にない文字) を文字列から削除します。
|
481
|
+
* {lang=zh} CLEAN 函数从字符串中删除非 ASCII 字符 (不在 32-127 范围中的字符)。
|
482
|
+
* {lang=hant} CLEAN 函數從字符串中刪除非 ASCII 字符 (不在 32-127 範圍中的字符)。
|
483
|
+
* {lang=ko} CLEAN 함수는 문자열에서 비 ASCII 문자(32-127 범위에 없는 문자)를 제거합니다.
|
484
|
+
* {lang=ru} The CLEAN function removes non-ASCII characters, (characters not in the range 32-127 inclusive), from the string.
|
485
|
+
* {lang=de} Die Funktion SÄUBERN entfernt Nicht-ASCII-Zeichen (Zeichen, die nicht im Bereich 32-127 einschließlich liegen) aus der Zeichenfolge.
|
486
|
+
* @param {string} text
|
487
|
+
* {lang=en} Text
|
488
|
+
* {lang=ja} 文字列
|
489
|
+
* {lang=zh} 文本
|
490
|
+
* {lang=hant} 文本
|
491
|
+
* {lang=ko} 텍스트
|
492
|
+
* {lang=ru} Text
|
493
|
+
* {lang=de} Text
|
494
|
+
* @return {string}
|
495
|
+
* @example
|
496
|
+
* =CLEAN("Kobérña")
|
497
|
+
*/
|
498
|
+
Text["CLEAN"] = function(text) {
|
499
|
+
var arrText = _toString(text).split("");
|
500
|
+
for(var i = arrText.length; --i >= 0;) {
|
501
|
+
var ascii = arrText[i].charCodeAt(0);
|
502
|
+
if(ascii < 32 || ascii > 127) {
|
503
|
+
arrText[i] = "";
|
504
|
+
}
|
505
|
+
}
|
506
|
+
return arrText.join("");
|
507
|
+
};
|
508
|
+
/**
|
509
|
+
* @function CODE
|
510
|
+
* @memberof Text
|
511
|
+
* @description
|
512
|
+
* {lang=en} The CODE function returns the ASCII code that corresponds to the first character in a string.
|
513
|
+
* {lang=ja} CODE 関数は、文字列の先頭文字の ASCII コードを返します。
|
514
|
+
* {lang=zh} CODE 函数返回对应字符串中首字符的 ASCII 代码。
|
515
|
+
* {lang=hant} CODE 函數返回對應字符串中首字符的 ASCII 代碼。
|
516
|
+
* {lang=ko} CODE 함수는 문자열의 첫 번째 문자에 해당하는 ASCII 코드를 반환합니다.
|
517
|
+
* {lang=ru} The CODE function returns the ASCII code that corresponds to the first character in a string.
|
518
|
+
* {lang=de} Die Funktion CODE gibt den ASCII-Code zurück, welcher dem ersten Zeichen in einer Zeichenfolge entspricht.
|
519
|
+
* @param {string} text
|
520
|
+
* {lang=en} Text
|
521
|
+
* {lang=ja} 文字列
|
522
|
+
* {lang=zh} 文本
|
523
|
+
* {lang=hant} 文本
|
524
|
+
* {lang=ko} 텍스트
|
525
|
+
* {lang=ru} Text
|
526
|
+
* {lang=de} Text
|
527
|
+
* @return {number}
|
528
|
+
* @example
|
529
|
+
* =CODE("A")
|
530
|
+
*/
|
531
|
+
Text["CODE"] = function(text) {
|
532
|
+
return _toString(text).charCodeAt(0);
|
533
|
+
};
|
534
|
+
/**
|
535
|
+
* @function PROPER
|
536
|
+
* @memberof Text
|
537
|
+
* @description
|
538
|
+
* {lang=en} The PROPER function converts the first letter of all words in sentence to uppercase, and converts all remaining letters to lowercase.
|
539
|
+
* {lang=ja} ROPER 関数は、文中の各単語の先頭文字を大文字に変換し、残りの文字をすべて小文字に変換します。
|
540
|
+
* {lang=zh} PROPER 函数将句子中全部单词的首字母转换成大写,其他字母全部保持小写。
|
541
|
+
* {lang=hant} PROPER 函數將句子中全部單詞的首字母轉換成大寫,其他字母全部保持小寫。
|
542
|
+
* {lang=ko} PROPER 함수는 문장의 모든 단어의 첫 글자를 대문자로 변환하고 나머지 문자를 모두 소문자로 변환합니다.
|
543
|
+
* {lang=ru} The PROPER function converts the first letter of all words in sentence to uppercase, and converts all remaining letters to lowercase.
|
544
|
+
* {lang=de} Die Funktion RICHTIG konvertiert den ersten Buchstaben aller Wörter im Satz in Großbuchstaben und alle verbleibenden Buchstaben in Kleinbuchstaben.
|
545
|
+
* @param {string} text
|
546
|
+
* {lang=en} Text
|
547
|
+
* {lang=ja} 文字列
|
548
|
+
* {lang=zh} 文本
|
549
|
+
* {lang=hant} 文本
|
550
|
+
* {lang=ko} 텍스트
|
551
|
+
* {lang=ru} Text
|
552
|
+
* {lang=de} Text
|
553
|
+
* @return {string}
|
554
|
+
* @example
|
555
|
+
* =PROPER("A STRANGE BLACK CAT ON YOUR PORCH BRINGS PROSPERITY.")
|
556
|
+
*/
|
557
|
+
Text["PROPER"] = function(text) {
|
558
|
+
text = _toString(text);
|
559
|
+
var arrTokens = text.split(/[\W_]/g);
|
560
|
+
var arrSyms = text.match(/[\W_]/g);
|
561
|
+
var arrLen = arrTokens.length;
|
562
|
+
var result = "";
|
563
|
+
for(var i = 0; i < arrLen; i++) {
|
564
|
+
var token = arrTokens[i];
|
565
|
+
var len = token.length;
|
566
|
+
if(len === 1) {
|
567
|
+
result += token.toUpperCase();
|
568
|
+
} else if(len !== 0) {
|
569
|
+
result += token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
|
570
|
+
}
|
571
|
+
|
572
|
+
var sym = arrSyms[i];
|
573
|
+
if(sym) {
|
574
|
+
result += sym;
|
575
|
+
}
|
576
|
+
}
|
577
|
+
return result;
|
578
|
+
};
|
579
|
+
/**
|
580
|
+
* @function REPEAT
|
581
|
+
* @memberof Text
|
582
|
+
* @description
|
583
|
+
* {lang=en} The REPEAT function duplicates the text string in specific times.
|
584
|
+
* {lang=ja} REPEAT 関数は、特定の時刻にテキスト文字を複製します。
|
585
|
+
* {lang=zh} REPEAT 函数将文本字符串重复指定次数。
|
586
|
+
* {lang=hant} REPEAT 函數將文本字符串重複指定次數。
|
587
|
+
* {lang=ko} REPEAT 함수는 텍스트 문자열을 지정된 횟수만큼 복제합니다.
|
588
|
+
* {lang=ru} The REPEAT function duplicates the text string in specific times.
|
589
|
+
* {lang=de} Die Funktion WIEDERHOLEN dupliziert die Textzeichenfolge zu bestimmten Zeiten.
|
590
|
+
* @param {string} text
|
591
|
+
* {lang=en} Text
|
592
|
+
* {lang=ja} 文字列
|
593
|
+
* {lang=zh} 文本
|
594
|
+
* {lang=hant} 文本
|
595
|
+
* {lang=ko} 텍스트
|
596
|
+
* {lang=ru} Text
|
597
|
+
* {lang=de} Text
|
598
|
+
* @param {number} numRep
|
599
|
+
* {lang=en} Number of times
|
600
|
+
* {lang=ja} 回数
|
601
|
+
* {lang=zh} 次数
|
602
|
+
* {lang=hant} 次數
|
603
|
+
* {lang=ko} 횟수
|
604
|
+
* {lang=ru} Number of times
|
605
|
+
* {lang=de} Mehrfach
|
606
|
+
* @return {string}
|
607
|
+
* @example
|
608
|
+
* =REPEAT("Ho! ",3)
|
609
|
+
*/
|
610
|
+
Text["REPEAT"] = function(text, numRep) {
|
611
|
+
numRep = +numRep;
|
612
|
+
if(!numRep || numRep < 0) {
|
613
|
+
return "";
|
614
|
+
}
|
615
|
+
|
616
|
+
text = _toString(text);
|
617
|
+
if(text === "") {
|
618
|
+
return "";
|
619
|
+
}
|
620
|
+
|
621
|
+
var newText = text;
|
622
|
+
for(var i = 1; i < numRep; i++) {
|
623
|
+
newText += text;
|
624
|
+
}
|
625
|
+
return newText;
|
626
|
+
};
|
627
|
+
/**
|
628
|
+
* @function STRING
|
629
|
+
* @memberof Text
|
630
|
+
* @description
|
631
|
+
* {lang=en} The STRING function rounds the number to a specified precision, and then converts it into a string.
|
632
|
+
* {lang=ja} STRING 関数は、数値を指定された少数に処理した後、文字列に返します。
|
633
|
+
* {lang=zh} STRING 函数将数字四舍五入到指定精度,然后将其转换成字符串。
|
634
|
+
* {lang=hant} STRING 函數將數字四捨五入到指定精度,然後將其轉換成字符串。
|
635
|
+
* {lang=ko} STRING 함수는 숫자를 지정된 정밀도로 반올림한 다음 문자열로 변환합니다.
|
636
|
+
* {lang=ru} The STRING function rounds the number to a specified precision, and then converts it into a string.
|
637
|
+
* {lang=de} Die Funktion STRING rundet die Zahl auf eine bestimmte Genauigkeit und konvertiert sie dann in eine Zeichenfolge.
|
638
|
+
* @param {number} num1
|
639
|
+
* {lang=en} Number 1
|
640
|
+
* {lang=ja} 数値 1
|
641
|
+
* {lang=zh} 数字 1
|
642
|
+
* {lang=hant} 數字 1
|
643
|
+
* {lang=ko} 숫자 1
|
644
|
+
* {lang=ru} Number 1
|
645
|
+
* {lang=de} Nummer 1
|
646
|
+
* @param {number} num2
|
647
|
+
* {lang=en} Number 2
|
648
|
+
* {lang=ja} 数値 2
|
649
|
+
* {lang=zh} 数字 2
|
650
|
+
* {lang=hant} 數字 2
|
651
|
+
* {lang=ko} 숫자 2
|
652
|
+
* {lang=ru} Number 2
|
653
|
+
* {lang=de} Nummer 2
|
654
|
+
* @return {string}
|
655
|
+
* @example
|
656
|
+
* =STRING(12.129,2)
|
657
|
+
*/
|
658
|
+
Text["STRING"] = function(num1, num2) {
|
659
|
+
num1 = +num1;
|
660
|
+
num2 = +num2;
|
661
|
+
if(!num1) {
|
662
|
+
return "";
|
663
|
+
}
|
664
|
+
if(!num2 || num2 < 0) {
|
665
|
+
num2 = 0;
|
666
|
+
} else if(num2 > 9) {
|
667
|
+
num2 = 9;
|
668
|
+
}
|
669
|
+
|
670
|
+
return (num1).toFixed(num2);
|
671
|
+
};
|
672
|
+
|
673
|
+
export default Text;
|
674
|
+
export {
|
675
|
+
Text
|
676
|
+
};
|