@farris/jit-engine 1.3.363 → 1.3.364
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/README.md +4 -0
- package/lib/domstructure/devkit/appmodule.js +31 -31
- package/lib/domstructure/devkit/befProxy/bef-proxy-content.js +57 -57
- package/lib/domstructure/devkit/befProxy/bef-proxy-operation-parameter.js +68 -68
- package/lib/domstructure/devkit/befProxy/bef-proxy-operation.js +66 -66
- package/lib/domstructure/devkit/befProxy/bef-proxy-service.js +46 -46
- package/lib/domstructure/devkit/befProxy/bef-proxy.js +34 -34
- package/lib/domstructure/devkit/befProxy/index.js +13 -13
- package/lib/domstructure/devkit/entity/entity.js +182 -182
- package/lib/domstructure/devkit/event/event-command-array.js +20 -20
- package/lib/domstructure/devkit/event/event-command.js +25 -25
- package/lib/domstructure/devkit/event/event-declaraction.js +52 -52
- package/lib/domstructure/devkit/event/event.js +33 -33
- package/lib/domstructure/devkit/event/events-array.js +17 -17
- package/lib/domstructure/devkit/event/subscription.js +63 -63
- package/lib/domstructure/devkit/externalComponent/external-wizard-detail-component.js +11 -11
- package/lib/domstructure/devkit/externalComponent/externalCompoent.js +36 -36
- package/lib/domstructure/devkit/externalComponent/externalComponent-constant.js +6 -6
- package/lib/domstructure/devkit/externalComponent/externalComponent-creator-factory.js +42 -42
- package/lib/domstructure/devkit/externalComponent/externalModalComponent.js +33 -33
- package/lib/domstructure/devkit/externalComponent/externalRouteComponent.js +11 -11
- package/lib/domstructure/devkit/externalComponent/externalsection-component.js +11 -11
- package/lib/domstructure/devkit/externalComponent/externalsidebar-component.js +11 -11
- package/lib/domstructure/devkit/extraImports/extra-import.js +25 -25
- package/lib/domstructure/devkit/extraImports/index.js +13 -13
- package/lib/domstructure/devkit/index.js +33 -33
- package/lib/domstructure/devkit/module/module.js +216 -216
- package/lib/domstructure/devkit/module/module.js.map +1 -1
- package/lib/domstructure/devkit/module-reference/component-apply-range.js +9 -9
- package/lib/domstructure/devkit/module-reference/form-module-reference-range.js +9 -9
- package/lib/domstructure/devkit/module-reference/form-module-reference.js +29 -29
- package/lib/domstructure/devkit/module-reference/index.js +14 -14
- package/lib/domstructure/devkit/module-reference/module-reference.js +26 -26
- package/lib/domstructure/devkit/repository/repository.js +25 -25
- package/lib/domstructure/devkit/routing/routing.js +55 -55
- package/lib/domstructure/devkit/section-toolbar/farris-section-toolbar-item.js +57 -57
- package/lib/domstructure/devkit/section-toolbar/farris-section-toolbar.js +38 -38
- package/lib/domstructure/devkit/section-toolbar/index.js +14 -14
- package/lib/domstructure/devkit/solution.js +59 -59
- package/lib/domstructure/devkit/tab-toolbar/farris-tab-toolbar-Item.js +57 -57
- package/lib/domstructure/devkit/tab-toolbar/farris-tab-toolbar.js +38 -38
- package/lib/domstructure/devkit/tab-toolbar/index.js +14 -14
- package/lib/domstructure/devkit/viewmodel/command/command.js +169 -169
- package/lib/domstructure/devkit/viewmodel/command/shortcut.js +28 -28
- package/lib/domstructure/devkit/viewmodel/component/component-children-route.js +28 -28
- package/lib/domstructure/devkit/viewmodel/component/component-custom-provider.js +6 -6
- package/lib/domstructure/devkit/viewmodel/component/component-provider.js +26 -26
- package/lib/domstructure/devkit/viewmodel/component/index.js +14 -14
- package/lib/domstructure/devkit/viewmodel/form/form.js +169 -169
- package/lib/domstructure/devkit/viewmodel/service/service.js +41 -41
- package/lib/domstructure/devkit/viewmodel/statemachine/statemachine.js +108 -108
- package/lib/domstructure/devkit/viewmodel/states/state.js +100 -100
- package/lib/domstructure/editor-type-enum.js +8 -8
- package/lib/domstructure/i-entity-tojson.js +2 -2
- package/lib/domstructure/i-placeholder-resource.js +2 -2
- package/lib/domstructure/i-replacedid.js +2 -2
- package/lib/domstructure/i18n-resource.js +50 -50
- package/lib/domstructure/index.js +15 -15
- package/lib/domstructure/running-position-enum.js +8 -8
- package/lib/domstructure/ui/appointment-calendar/appoint-calendar.js +104 -104
- package/lib/domstructure/ui/appointment-calendar/index.js +13 -13
- package/lib/domstructure/ui/commands/button_group.js +16 -16
- package/lib/domstructure/ui/commands/command.js +61 -61
- package/lib/domstructure/ui/commands/command_container.js +40 -40
- package/lib/domstructure/ui/commands/context_menu.js +37 -37
- package/lib/domstructure/ui/commands/index.js +21 -21
- package/lib/domstructure/ui/commands/menu.js +16 -16
- package/lib/domstructure/ui/commands/menu_item.js +40 -40
- package/lib/domstructure/ui/commands/toolbar_item.js +42 -42
- package/lib/domstructure/ui/common/absctract_dom.js +2 -2
- package/lib/domstructure/ui/common/appearance.js +35 -35
- package/lib/domstructure/ui/common/background.js +33 -33
- package/lib/domstructure/ui/common/base-title-component.js +46 -46
- package/lib/domstructure/ui/common/basecomponent.js +160 -160
- package/lib/domstructure/ui/common/binding.js +164 -164
- package/lib/domstructure/ui/common/border.js +39 -39
- package/lib/domstructure/ui/common/font.js +38 -38
- package/lib/domstructure/ui/common/index.js +21 -21
- package/lib/domstructure/ui/common/margin.js +39 -39
- package/lib/domstructure/ui/common/padding.js +39 -39
- package/lib/domstructure/ui/common/size.js +34 -34
- package/lib/domstructure/ui/common/visible.js +69 -69
- package/lib/domstructure/ui/component.js +88 -88
- package/lib/domstructure/ui/container/collection_item.js +16 -16
- package/lib/domstructure/ui/container/collepse.js +16 -16
- package/lib/domstructure/ui/container/container.js +43 -43
- package/lib/domstructure/ui/container/content_container.js +64 -64
- package/lib/domstructure/ui/container/dynamic-area-item.js +36 -36
- package/lib/domstructure/ui/container/dynamic-area.js +36 -36
- package/lib/domstructure/ui/container/external_container.js +50 -50
- package/lib/domstructure/ui/container/fieldset.js +36 -36
- package/lib/domstructure/ui/container/flexlayout.js +39 -39
- package/lib/domstructure/ui/container/form.js +36 -36
- package/lib/domstructure/ui/container/form_group.js +16 -16
- package/lib/domstructure/ui/container/hidden-container.js +47 -47
- package/lib/domstructure/ui/container/html_template.js +59 -59
- package/lib/domstructure/ui/container/index.js +43 -43
- package/lib/domstructure/ui/container/item_container.js +40 -40
- package/lib/domstructure/ui/container/loop-container.js +53 -53
- package/lib/domstructure/ui/container/model.js +16 -16
- package/lib/domstructure/ui/container/model_container.js +43 -43
- package/lib/domstructure/ui/container/multi-view/index.js +14 -14
- package/lib/domstructure/ui/container/multi-view/multi-view-base-container.js +28 -28
- package/lib/domstructure/ui/container/multi-view/multi-view-container.js +46 -46
- package/lib/domstructure/ui/container/multi-view/multi-view-item.js +28 -28
- package/lib/domstructure/ui/container/panel.js +16 -16
- package/lib/domstructure/ui/container/plain_container.js +16 -16
- package/lib/domstructure/ui/container/popover.js +16 -16
- package/lib/domstructure/ui/container/qdp_condition_dialog.js +42 -42
- package/lib/domstructure/ui/container/qdp_condition_dialog_tab.js +38 -38
- package/lib/domstructure/ui/container/qdp_framework.js +96 -96
- package/lib/domstructure/ui/container/queryform.js +33 -33
- package/lib/domstructure/ui/container/response-layout/index.js +14 -14
- package/lib/domstructure/ui/container/response-layout/response-layout-item.js +10 -10
- package/lib/domstructure/ui/container/response-layout/response-layout.js +19 -19
- package/lib/domstructure/ui/container/route-container.js +36 -36
- package/lib/domstructure/ui/container/sidebar/farris-sidebar.js +132 -132
- package/lib/domstructure/ui/container/sidebar/index.js +13 -13
- package/lib/domstructure/ui/container/slide_view.js +16 -16
- package/lib/domstructure/ui/container/tab.js +16 -16
- package/lib/domstructure/ui/container/tab_page.js +33 -33
- package/lib/domstructure/ui/data/chart/chart.js +56 -56
- package/lib/domstructure/ui/data/collection/data_collection.js +308 -308
- package/lib/domstructure/ui/data/collection/farris-datagrid/farris-datagrid.js +453 -453
- package/lib/domstructure/ui/data/collection/farris-datagrid/index.js +13 -13
- package/lib/domstructure/ui/data/collection/flat/data_grid.js +76 -76
- package/lib/domstructure/ui/data/collection/flat/flat.js +50 -50
- package/lib/domstructure/ui/data/collection/flat/list_view.js +16 -16
- package/lib/domstructure/ui/data/collection/hierarchy/hierarchy.js +79 -79
- package/lib/domstructure/ui/data/collection/hierarchy/tree_view.js +16 -16
- package/lib/domstructure/ui/data/collection/qdp/spread_sheet.js +62 -62
- package/lib/domstructure/ui/data/data.js +58 -58
- package/lib/domstructure/ui/data/fields/collection/collection_field.js +66 -66
- package/lib/domstructure/ui/data/fields/collection/grid_field.js +93 -93
- package/lib/domstructure/ui/data/fields/collection/tree_grid_field.js +16 -16
- package/lib/domstructure/ui/data/fields/collection/view_field.js +16 -16
- package/lib/domstructure/ui/data/fields/form/datepicker.js +164 -164
- package/lib/domstructure/ui/data/fields/form/display/display_field.js +33 -33
- package/lib/domstructure/ui/data/fields/form/editable/editable_field.js +53 -53
- package/lib/domstructure/ui/data/fields/form/editable/inputs/input_field.js +63 -63
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/external-service-lookup.js +48 -0
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/external-service-lookup.js.map +1 -0
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/lookup_edit.js +174 -174
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/reference_field.js +50 -50
- package/lib/domstructure/ui/data/fields/form/editable/inputs/reference/select.js +49 -49
- package/lib/domstructure/ui/data/fields/form/editable/inputs/text/multi_text_box.js +55 -55
- package/lib/domstructure/ui/data/fields/form/editable/inputs/text/text_box.js +50 -50
- package/lib/domstructure/ui/data/fields/form/editable/inputs/text/text_field.js +49 -49
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/adminorganization-selector.js +44 -44
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/city-selector.js +36 -36
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/date_box.js +49 -49
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/employee-selector.js +80 -80
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/enum_field.js +50 -50
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/ext-intergration.js +33 -33
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/farris-combo-lookup.js +124 -124
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/farris-number-range.js +79 -79
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/farris-number-spinner.js +86 -86
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/language-textbox.js +60 -60
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/lookup_employee.js +80 -80
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/numeric_box.js +53 -53
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/organization-selector.js +49 -49
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/time_box.js +22 -22
- package/lib/domstructure/ui/data/fields/form/editable/inputs/value/value_fields.js +49 -49
- package/lib/domstructure/ui/data/fields/form/editable/switch/check_box.js +48 -48
- package/lib/domstructure/ui/data/fields/form/editable/switch/check_group.js +42 -42
- package/lib/domstructure/ui/data/fields/form/editable/switch/checkbox-group.js +80 -80
- package/lib/domstructure/ui/data/fields/form/editable/switch/collection_switch.js +57 -57
- package/lib/domstructure/ui/data/fields/form/editable/switch/farris-switch.js +57 -57
- package/lib/domstructure/ui/data/fields/form/editable/switch/radio_group.js +58 -58
- package/lib/domstructure/ui/data/fields/form/editable/switch/switch_field.js +40 -40
- package/lib/domstructure/ui/data/fields/form/form_field.js +105 -105
- package/lib/domstructure/ui/data/fields/form/input-group.js +78 -78
- package/lib/domstructure/ui/data/fields/form/rich-textbox.js +69 -69
- package/lib/domstructure/ui/data/fields/form/time-picker.js +67 -67
- package/lib/domstructure/ui/data/fields/form/time-spinner.js +74 -74
- package/lib/domstructure/ui/data/fields/form/tinymce-richtextbox.js +40 -40
- package/lib/domstructure/ui/data/index.js +69 -68
- package/lib/domstructure/ui/data/index.js.map +1 -1
- package/lib/domstructure/ui/data/scrollcollapse/index.js +13 -13
- package/lib/domstructure/ui/data/scrollcollapse/scroll-collapsible-area.js +32 -32
- package/lib/domstructure/ui/discussion/discussion-editor.js +51 -51
- package/lib/domstructure/ui/discussion/discussion-list.js +44 -44
- package/lib/domstructure/ui/discussion/index.js +14 -14
- package/lib/domstructure/ui/farris-avatar/farris-avatar.js +43 -43
- package/lib/domstructure/ui/farris-avatar/index.js +13 -13
- package/lib/domstructure/ui/farris-calendar/farris-calendar.js +36 -36
- package/lib/domstructure/ui/farris-calendar/index.js +13 -13
- package/lib/domstructure/ui/farris-dynamic-control-group/farris-dynamic-control-group.js +35 -35
- package/lib/domstructure/ui/farris-dynamic-control-group/index.js +13 -13
- package/lib/domstructure/ui/farris-file-preview/farris-file-preview.js +86 -86
- package/lib/domstructure/ui/farris-file-preview/index.js +13 -13
- package/lib/domstructure/ui/farris-file-upload/farris-file-upload.js +78 -78
- package/lib/domstructure/ui/farris-file-upload/index.js +13 -13
- package/lib/domstructure/ui/farris-scrollspy/farris-scrollspy.js +83 -83
- package/lib/domstructure/ui/farris-scrollspy/index.js +13 -13
- package/lib/domstructure/ui/farris-ui-footer/farris-ui-footer-header.js +25 -25
- package/lib/domstructure/ui/farris-ui-footer/farris-ui-footer.js +39 -39
- package/lib/domstructure/ui/farris-ui-footer/index.js +13 -13
- package/lib/domstructure/ui/farrisprogressstep/farris-progress-step.js +58 -58
- package/lib/domstructure/ui/farrisprogressstep/farris-progress-stepname-creator.js +9 -9
- package/lib/domstructure/ui/farrisprogressstep/index.js +13 -13
- package/lib/domstructure/ui/farrissplitter/index.js +14 -14
- package/lib/domstructure/ui/farrissplitter/splitter-pane.js +50 -50
- package/lib/domstructure/ui/farrissplitter/splitter.js +43 -43
- package/lib/domstructure/ui/formheader/form-header.js +43 -43
- package/lib/domstructure/ui/formheader/index.js +13 -13
- package/lib/domstructure/ui/header/header.js +43 -43
- package/lib/domstructure/ui/header/index.js +13 -13
- package/lib/domstructure/ui/i-component-title.js +2 -2
- package/lib/domstructure/ui/image/farris-image.js +60 -60
- package/lib/domstructure/ui/image/index.js +13 -13
- package/lib/domstructure/ui/image-upload/image-upload.js +93 -93
- package/lib/domstructure/ui/image-upload/index.js +13 -13
- package/lib/domstructure/ui/index.js +54 -54
- package/lib/domstructure/ui/light-listfilter/farris-light-listfilter.js +83 -83
- package/lib/domstructure/ui/light-listfilter/index.js +13 -13
- package/lib/domstructure/ui/list-filter/farris-list-filter.js +78 -78
- package/lib/domstructure/ui/list-filter/index.js +13 -13
- package/lib/domstructure/ui/list-nav/index.js +13 -13
- package/lib/domstructure/ui/list-nav/listnav.js +64 -64
- package/lib/domstructure/ui/listview/index.js +14 -14
- package/lib/domstructure/ui/listview/list-view-contenttemplate-field.js +34 -34
- package/lib/domstructure/ui/listview/list-view-contenttemplate.js +42 -42
- package/lib/domstructure/ui/listview/list-view-field.js +65 -65
- package/lib/domstructure/ui/listview/list-view-template-generator.js +54 -54
- package/lib/domstructure/ui/listview/list-view-template-toolbar-generator.js +38 -38
- package/lib/domstructure/ui/listview/list-view-toolbar.js +36 -36
- package/lib/domstructure/ui/listview/list-view.js +78 -78
- package/lib/domstructure/ui/modal-footer/index.js +13 -13
- package/lib/domstructure/ui/modal-footer/modal-footer.js +43 -43
- package/lib/domstructure/ui/multi-select/index.js +13 -13
- package/lib/domstructure/ui/multi-select/multi-select.js +85 -85
- package/lib/domstructure/ui/nav-tab/index.js +13 -13
- package/lib/domstructure/ui/nav-tab/nav-tab.js +91 -91
- package/lib/domstructure/ui/oa-relation/index.js +13 -13
- package/lib/domstructure/ui/oa-relation/oa-relation.js +53 -53
- package/lib/domstructure/ui/p-treetable/index.js +13 -13
- package/lib/domstructure/ui/p-treetable/p-treetable.js +105 -105
- package/lib/domstructure/ui/portlet/index.js +13 -13
- package/lib/domstructure/ui/portlet/portlet.js +36 -36
- package/lib/domstructure/ui/qr-code/index.js +13 -13
- package/lib/domstructure/ui/qr-code/qr-code.js +32 -32
- package/lib/domstructure/ui/queryScheme/index.js +13 -13
- package/lib/domstructure/ui/queryScheme/query-scheme.js +78 -78
- package/lib/domstructure/ui/static-control/index.js +13 -13
- package/lib/domstructure/ui/static-control/static-control-attribute.js +57 -57
- package/lib/domstructure/ui/table/farris-table-border.js +6 -6
- package/lib/domstructure/ui/table/farris-table-column.js +75 -75
- package/lib/domstructure/ui/table/farris-table-font.js +6 -6
- package/lib/domstructure/ui/table/farris-table-row.js +49 -49
- package/lib/domstructure/ui/table/farris-table-static-text.js +6 -6
- package/lib/domstructure/ui/table/farris-table.js +82 -82
- package/lib/domstructure/ui/table/index.js +16 -16
- package/lib/domstructure/ui/tabs/farris-tab-page.js +81 -81
- package/lib/domstructure/ui/tabs/index.js +14 -14
- package/lib/domstructure/ui/tag/farris-tag.js +64 -64
- package/lib/domstructure/ui/tag/index.js +13 -13
- package/lib/domstructure/ui/tags/farris-tags.js +35 -35
- package/lib/domstructure/ui/tags/index.js +13 -13
- package/lib/domstructure/ui/view-change/index.js +13 -13
- package/lib/domstructure/ui/view-change/view-change.js +65 -65
- package/lib/domstructure/ui/wizard/farris-wizard-page-detail.js +66 -66
- package/lib/domstructure/ui/wizard/farris-wizard-page.js +46 -46
- package/lib/domstructure/ui/wizard/farris-wizard.js +92 -92
- package/lib/domstructure/ui/wizard/index.js +16 -16
- package/lib/domstructure/ui/wizard/wizard-detail-container.js +46 -46
- package/lib/template/ui/kendo/light-lookup.pug +183 -0
- package/lib/utility/adminorganization-selector-checker.js +57 -57
- package/lib/utility/advanced-component-recognizer.js +75 -0
- package/lib/utility/advanced-component-recognizer.js.map +1 -0
- package/lib/utility/aif-check.js +12 -12
- package/lib/utility/appointment-calendar-checker.js +57 -57
- package/lib/utility/approval-comments-checker.js +41 -41
- package/lib/utility/approval-logs-check.js +42 -42
- package/lib/utility/behavior/behavior-manager.js +319 -319
- package/lib/utility/behavior/behavior-params.js +2 -2
- package/lib/utility/behavior/index.js +13 -13
- package/lib/utility/build-file-version/abstract-build-file-version.js +23 -23
- package/lib/utility/build-file-version/build-file-next-version-generator.js +17 -17
- package/lib/utility/build-file-version/build-file-version-constants.js +18 -18
- package/lib/utility/build-file-version/build-file-version-context.js +6 -6
- package/lib/utility/build-file-version/build-file-version-factory.js +49 -49
- package/lib/utility/build-file-version/build-file-version-manager.js +56 -56
- package/lib/utility/build-file-version/farris-all-css-build-file-version.js +11 -11
- package/lib/utility/build-file-version/favicon-png-build-file-version.js +15 -15
- package/lib/utility/build-file-version/gsp-rtf-core-js-build-file-version.js +11 -11
- package/lib/utility/build-file-version/i-build-file-version.js +2 -2
- package/lib/utility/build-file-version/i18n-build-file-version.js +20 -20
- package/lib/utility/build-file-version/index.js +14 -14
- package/lib/utility/build-file-version/main-js-build-file-version.js +11 -11
- package/lib/utility/build-file-version/material-icons-css-build-file-version.js +11 -11
- package/lib/utility/build-file-version/polyfills-js-build-file-version.js +11 -11
- package/lib/utility/build-file-version/runtime-common-manifest-json-build-file-version.js +10 -10
- package/lib/utility/build-file-version/version-file/version-file-content.js +13 -13
- package/lib/utility/build-file-version/version-file/version-file-helper.js +37 -37
- package/lib/utility/build-file-version/version-file/version-file-manager.js +74 -74
- package/lib/utility/city-selector-checker.js +41 -41
- package/lib/utility/component-adminorganization-selector-parameter-helper.js +10 -10
- package/lib/utility/component-employee-selector-parameter-helper.js +10 -10
- package/lib/utility/component-enum-helper.js +27 -27
- package/lib/utility/component-fileupload-helper.js +10 -10
- package/lib/utility/component-header-helper.js +25 -25
- package/lib/utility/component-organization-selector-parameter-helper.js +10 -10
- package/lib/utility/component-personnel-selector-parameter-helper.js +10 -10
- package/lib/utility/component-title-executor.js +23 -23
- package/lib/utility/componentFrameID-helper.js +41 -41
- package/lib/utility/componentSelector-helper.js +20 -20
- package/lib/utility/config-hepler.js +1 -1
- package/lib/utility/content-type-creator.js +132 -132
- package/lib/utility/content-type-instance-generator.js +38 -38
- package/lib/utility/context-hepler.js +14 -14
- package/lib/utility/crypto/crypto-dhs256.js +42 -42
- package/lib/utility/crypto/crypto-helper.js +23 -23
- package/lib/utility/crypto/crypto-md5.js +42 -42
- package/lib/utility/crypto/crypto-mode.js +8 -8
- package/lib/utility/crypto/i-crypto.js +2 -2
- package/lib/utility/crypto/index.js +14 -14
- package/lib/utility/declaration-trigger.js +4 -1
- package/lib/utility/declaration-trigger.js.map +1 -1
- package/lib/utility/devkit/abstract-dom-creator.js +48 -48
- package/lib/utility/devkit/abstract-dom-map.js +2 -2
- package/lib/utility/devkit/checkgroup-type-creator-factory.js +21 -21
- package/lib/utility/devkit/component-adminorganization-selector-parameter.js +6 -6
- package/lib/utility/devkit/component-appointment-calendar-parameter.js +37 -37
- package/lib/utility/devkit/component-button-parameter.js +13 -13
- package/lib/utility/devkit/component-children-routes-creator.js +59 -59
- package/lib/utility/devkit/component-condition-dialog-parameter.js +28 -28
- package/lib/utility/devkit/component-creator.js +192 -191
- package/lib/utility/devkit/component-creator.js.map +1 -1
- package/lib/utility/devkit/component-employee-selector-parameter.js +6 -6
- package/lib/utility/devkit/component-event.js +2 -2
- package/lib/utility/devkit/component-farris-avatar-parameter-creator.js +14 -14
- package/lib/utility/devkit/component-farris-datagrid-contextmenu-parameter.js +15 -15
- package/lib/utility/devkit/component-farris-datagrid-parameter.js +89 -89
- package/lib/utility/devkit/component-farris-input-group-parameter.js +49 -49
- package/lib/utility/devkit/component-farris-lookup-parameter.js +52 -52
- package/lib/utility/devkit/component-farris-treegrid-parameter.js +21 -21
- package/lib/utility/devkit/component-fileupload-preview-creator.js +22 -22
- package/lib/utility/devkit/component-listview-parameter.js +6 -6
- package/lib/utility/devkit/component-nav-tab-parameter.js +16 -16
- package/lib/utility/devkit/component-number-spinner-range-creator.js +19 -19
- package/lib/utility/devkit/component-number-spinner-range.js +36 -36
- package/lib/utility/devkit/component-organization-selector-parameter.js +6 -6
- package/lib/utility/devkit/component-parameter-collector/abstract-component-parameter-collector.js +6 -6
- package/lib/utility/devkit/component-parameter-collector/combolist-parameter-collector.js +51 -51
- package/lib/utility/devkit/component-parameter-collector/component-adminorganization-selector-parameter-collector.js +45 -45
- package/lib/utility/devkit/component-parameter-collector/component-appointment-calendar-parameter-collector.js +90 -90
- package/lib/utility/devkit/component-parameter-collector/component-button-collector.js +59 -59
- package/lib/utility/devkit/component-parameter-collector/component-condition-dialog-collector.js +34 -34
- package/lib/utility/devkit/component-parameter-collector/component-datebox-parameter-collector.js +46 -46
- package/lib/utility/devkit/component-parameter-collector/component-employee-selector-parameter-collector.js +45 -45
- package/lib/utility/devkit/component-parameter-collector/component-events-collector.js +109 -109
- package/lib/utility/devkit/component-parameter-collector/component-file-upload-parameter-collector.js +202 -202
- package/lib/utility/devkit/component-parameter-collector/component-header-parameter-collector.js +78 -78
- package/lib/utility/devkit/component-parameter-collector/component-languagetextbox-parameter-collector.js +51 -51
- package/lib/utility/devkit/component-parameter-collector/component-listview-parameter-collector.js +100 -100
- package/lib/utility/devkit/component-parameter-collector/component-multitextbox-parameter-collector.js +46 -46
- package/lib/utility/devkit/component-parameter-collector/component-numericbox-parameter-collector.js +46 -46
- package/lib/utility/devkit/component-parameter-collector/component-organization-selector-parameter-collector.js +45 -45
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-manager.js +222 -221
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-manager.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-options-creator.js +14 -14
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-options.js +6 -6
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-type.js +57 -56
- package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-type.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/component-personnel-selector-parameter-collector.js +45 -45
- package/lib/utility/devkit/component-parameter-collector/component-readonly-parameter-collector.js +49 -49
- package/lib/utility/devkit/component-parameter-collector/component-viewchange-parameter-collector.js +70 -70
- package/lib/utility/devkit/component-parameter-collector/enum-field-collector.js +56 -56
- package/lib/utility/devkit/component-parameter-collector/farris-avatar-collector.js +44 -44
- package/lib/utility/devkit/component-parameter-collector/farris-checkbox-group-collector.js +69 -69
- package/lib/utility/devkit/component-parameter-collector/farris-datepicker-collector.js +50 -50
- package/lib/utility/devkit/component-parameter-collector/farris-input-group-collector.js +155 -155
- package/lib/utility/devkit/component-parameter-collector/farris-list-filter-parameter-collector.js +150 -150
- package/lib/utility/devkit/component-parameter-collector/farris-lookup-collector.js +64 -64
- package/lib/utility/devkit/component-parameter-collector/farris-lookup-collector.js.map +1 -1
- package/lib/utility/devkit/component-parameter-collector/farris-nav-tab-parameter-collector.js +82 -82
- package/lib/utility/devkit/component-parameter-collector/farris-radiogroup-collector.js +70 -70
- package/lib/utility/devkit/component-parameter-collector/farris-section-collector.js +128 -128
- package/lib/utility/devkit/component-parameter-collector/farris-tabs-collector.js +124 -124
- package/lib/utility/devkit/component-parameter-collector/farris-tags-parameter-collector.js +49 -49
- package/lib/utility/devkit/component-parameter-collector/farris-timepicker-collector.js +46 -46
- package/lib/utility/devkit/component-parameter-collector/farris-timespinner-parameter-collector.js +46 -46
- package/lib/utility/devkit/component-parameter-collector/farris-treegrid-parameter-collector.js +197 -197
- package/lib/utility/devkit/component-parameter-collector/farris-ui-footer-parameter-collector.js +41 -41
- package/lib/utility/devkit/component-parameter-collector/fieldset-collector.js +47 -47
- package/lib/utility/devkit/component-parameter-collector/i-component-parameter-collector.js +2 -2
- package/lib/utility/devkit/component-parameter-collector/index.js +14 -14
- package/lib/utility/devkit/component-parameter-collector/list-nav-collector.js +31 -31
- package/lib/utility/devkit/component-parameter-collector/number-spinner-range-collector.js +79 -79
- package/lib/utility/devkit/component-parameter-collector/primeng-tree-grid-parameter-collector.js +221 -221
- package/lib/utility/devkit/component-parameter-collector/qdp-framework-collector.js +30 -30
- package/lib/utility/devkit/component-parameter-collector/richtextbox-parameter-collector.js +46 -46
- package/lib/utility/devkit/component-parameter-collector/scrollspy-collector.js +86 -86
- package/lib/utility/devkit/component-parameter-collector/sidebar-parameter-collector.js +34 -34
- package/lib/utility/devkit/component-parameter-collector/textbox-parameter-collector.js +46 -46
- package/lib/utility/devkit/component-parameter-collector/tool-typechange-collector.js +27 -27
- package/lib/utility/devkit/component-parameter-collector/wizard-collector.js +73 -73
- package/lib/utility/devkit/component-parameter-creator.js +9 -9
- package/lib/utility/devkit/component-personnel-selector-parameter.js +6 -6
- package/lib/utility/devkit/component-primeng-treegrid-parameter.js +13 -13
- package/lib/utility/devkit/component-readonly-parameter-creator.js +10 -10
- package/lib/utility/devkit/component-readonly-parameter.js +6 -6
- package/lib/utility/devkit/component-sidebar-toolbar.js +6 -6
- package/lib/utility/devkit/component-viewchange-parameter.js +13 -13
- package/lib/utility/devkit/datagrid-type-creator-factory.js +22 -22
- package/lib/utility/devkit/datebox-type-creator-factory.js +35 -35
- package/lib/utility/devkit/declarationevents-modifier.js +54 -54
- package/lib/utility/devkit/devkit-constant.js +38 -38
- package/lib/utility/devkit/devkit-object-name-creator.js +52 -52
- package/lib/utility/devkit/entities-creator.js +94 -94
- package/lib/utility/devkit/entity-creator.js +47 -47
- package/lib/utility/devkit/entity-name-creator.js +14 -14
- package/lib/utility/devkit/enumfield-type-creator.js +35 -35
- package/lib/utility/devkit/external-component/className-isExternalcomponent-checker.js +19 -19
- package/lib/utility/devkit/external-component/external-component-childroutingpath-generator.js +20 -20
- package/lib/utility/devkit/external-component/external-component-prefix-creator.js +13 -13
- package/lib/utility/devkit/external-component/external-component-publisPath-generator.js +39 -39
- package/lib/utility/devkit/external-component/external-component-uniquecode-creator.js +26 -26
- package/lib/utility/devkit/external-component/external-components-creator.js +41 -41
- package/lib/utility/devkit/external-component/externalComponent-constant.js +15 -15
- package/lib/utility/devkit/external-component/index.js +15 -15
- package/lib/utility/devkit/field-creator.js +265 -265
- package/lib/utility/devkit/form-creator.js +110 -110
- package/lib/utility/devkit/form-file-executor.js +6 -1
- package/lib/utility/devkit/form-file-executor.js.map +1 -1
- package/lib/utility/devkit/form-resource-json-reader.js +21 -21
- package/lib/utility/devkit/handlers-creator.js +38 -38
- package/lib/utility/devkit/index.js +18 -18
- package/lib/utility/devkit/list-filter-type-creator-factory.js +36 -36
- package/lib/utility/devkit/lookup-type-creator-factory.js +52 -52
- package/lib/utility/devkit/module-creator.js +170 -167
- package/lib/utility/devkit/module-creator.js.map +1 -1
- package/lib/utility/devkit/repository-creator.js +60 -60
- package/lib/utility/devkit/response-layout-type-creator-factory.js +22 -22
- package/lib/utility/devkit/richtextbox-type-creator-factory.js +35 -35
- package/lib/utility/devkit/routing-creator.js +21 -21
- package/lib/utility/devkit/statemachine-creator.js +39 -39
- package/lib/utility/devkit/switch-type-creator-factory.js +35 -35
- package/lib/utility/devkit/tab-type-creator-factory.js +45 -45
- package/lib/utility/devkit/treegrid-type-creator-factory.js +36 -36
- package/lib/utility/devkit/viewmodels-creator.js +634 -634
- package/lib/utility/devkit-template-config.js +579 -576
- package/lib/utility/devkit-template-config.js.map +1 -1
- package/lib/utility/directory-file-helper.js +241 -241
- package/lib/utility/employee-selector-checker.js +57 -57
- package/lib/utility/environment-constants.js +45 -45
- package/lib/utility/event-token-generator.js +21 -21
- package/lib/utility/event-viewModel-modifier.js +100 -100
- package/lib/utility/expression/expression-manager.js +21 -21
- package/lib/utility/expression/index.js +13 -13
- package/lib/utility/expression-value-generator.js +22 -22
- package/lib/utility/ext-intergration-checker.js +46 -46
- package/lib/utility/external-service-lookup-checker.js +28 -0
- package/lib/utility/external-service-lookup-checker.js.map +1 -0
- package/lib/utility/externalComponent-type.js +12 -12
- package/lib/utility/farris-datagrid/abstract-editor.js +64 -64
- package/lib/utility/farris-datagrid/abstract-lookup-editor.js +156 -156
- package/lib/utility/farris-datagrid/checkbox-editor.js +18 -18
- package/lib/utility/farris-datagrid/column-editor-manager.js +115 -111
- package/lib/utility/farris-datagrid/column-editor-manager.js.map +1 -1
- package/lib/utility/farris-datagrid/combo-list-editor.js +145 -145
- package/lib/utility/farris-datagrid/command-column-template-generator.js +22 -22
- package/lib/utility/farris-datagrid/datagrid-column-footer-calculationtype-convertor.js +12 -12
- package/lib/utility/farris-datagrid/datagrid-column-footer-options.js +36 -36
- package/lib/utility/farris-datagrid/datagrid-column-footer.js +50 -50
- package/lib/utility/farris-datagrid/datagrid-column-formatter.js +122 -122
- package/lib/utility/farris-datagrid/datagrid-column-groupfooter.js +47 -47
- package/lib/utility/farris-datagrid/date-picker-editor.js +151 -151
- package/lib/utility/farris-datagrid/employee-selector-editor.js +105 -105
- package/lib/utility/farris-datagrid/employeeorg-selector-editor.js +117 -117
- package/lib/utility/farris-datagrid/enum-editor.js +59 -59
- package/lib/utility/farris-datagrid/ext-intergration-editor.js +64 -64
- package/lib/utility/farris-datagrid/external-service-lookup-editor.js +96 -0
- package/lib/utility/farris-datagrid/external-service-lookup-editor.js.map +1 -0
- package/lib/utility/farris-datagrid/farris-grid-column-type-convertor.js +112 -105
- package/lib/utility/farris-datagrid/farris-grid-column-type-convertor.js.map +1 -1
- package/lib/utility/farris-datagrid/index.js +15 -15
- package/lib/utility/farris-datagrid/input-group-editor.js +122 -122
- package/lib/utility/farris-datagrid/language-textbox-generator.js +63 -63
- package/lib/utility/farris-datagrid/number-box-editor.js +131 -131
- package/lib/utility/farris-datagrid/organization-selector-editor.js +118 -118
- package/lib/utility/farris-datagrid/personnel-selector-editor.js +107 -107
- package/lib/utility/farris-datagrid/switch-editor.js +37 -37
- package/lib/utility/farris-datagrid/textarea-editor.js +60 -60
- package/lib/utility/farris-datagrid/textbox-editor.js +36 -36
- package/lib/utility/farris-datagrid/time-picker-editor.js +44 -44
- package/lib/utility/file-operation/abstract-file-operation.js +40 -40
- package/lib/utility/file-operation/command-jsonfile-operation.js +14 -14
- package/lib/utility/file-operation/eapi-jsonfile-operation.js +17 -17
- package/lib/utility/file-operation/file-operation-factory.js +41 -41
- package/lib/utility/file-operation/file-operation-manager.js +14 -14
- package/lib/utility/file-operation/file-operation-options.js +23 -23
- package/lib/utility/file-operation/file-operation-type.js +12 -12
- package/lib/utility/file-operation/frm-jsonfile-operation.js +14 -14
- package/lib/utility/file-operation/i-file-operation.js +2 -2
- package/lib/utility/file-operation/index.js +14 -14
- package/lib/utility/file-operation/page-jsonfile-operation.js +20 -20
- package/lib/utility/file-operation/resource-jsonfile-operation.js +14 -14
- package/lib/utility/file-operation/statemachine-jsonfile-operation.js +15 -15
- package/lib/utility/form-sourcecode-delete/DeleteFormSourceCodeExecutor.js +19 -19
- package/lib/utility/form-sourcecode-delete/service/AbstractSourceCodeService.js +66 -66
- package/lib/utility/form-sourcecode-delete/service/SourceCodeDeleteContext.js +30 -30
- package/lib/utility/form-sourcecode-delete/service/SourceCodeDeleteResult.js +17 -17
- package/lib/utility/form-sourcecode-delete/service/SourceCodeDeleteService.js +2 -2
- package/lib/utility/form-sourcecode-delete/service/SourceCodeDeleteServiceChain.js +26 -26
- package/lib/utility/form-sourcecode-delete/service/SourceCodeDeleteServiceChainExecutor.js +12 -12
- package/lib/utility/form-sourcecode-delete/service/SourceCodeDeleteServiceRegistry.js +42 -42
- package/lib/utility/form-sourcecode-delete/service/impl/ComponentSourceCodeDeleteServiceImpl.js +20 -20
- package/lib/utility/form-sourcecode-delete/service/impl/DefaultSourceCodeDeleteServiceImpl.js +19 -19
- package/lib/utility/form-sourcecode-delete/service/impl/EventSourceCodeDeleteServiceImpl.js +20 -20
- package/lib/utility/form-sourcecode-delete/service/impl/ExpressionSourceCodeDeleteServiceImpl.js +20 -20
- package/lib/utility/form-sourcecode-delete/service/impl/ExternalComponentsSourceCodeDeleteServiceImpl.js +20 -20
- package/lib/utility/form-sourcecode-delete/service/impl/LangSourceCodeDeleteServiceImpl.js +20 -20
- package/lib/utility/form-sourcecode-delete/service/impl/ModelSourceCodeDeleteServiceImpl.js +20 -20
- package/lib/utility/form-sourcecode-delete/service/impl/ServiceSourceCodeDeleteServiceImpl.js +23 -23
- package/lib/utility/form-sourcecode-delete/service/impl/ViewModelSourceCodeDeleteServiceImpl.js +20 -20
- package/lib/utility/formatter/code-formatter.js +97 -97
- package/lib/utility/formatter/index.js +13 -13
- package/lib/utility/getPublishPathAndFileName.js +61 -61
- package/lib/utility/i18n/i18n-resource-manager.js +237 -237
- package/lib/utility/i18n/i18n-resource-manager.js.map +1 -1
- package/lib/utility/i18n/index.js +13 -13
- package/lib/utility/image-upload-checker.js +41 -41
- package/lib/utility/index.js +32 -32
- package/lib/utility/internal-entity/component-parameter/component-combolist-parameter.js +30 -30
- package/lib/utility/internal-entity/component-parameter/component-datebox-parameter.js +30 -30
- package/lib/utility/internal-entity/component-parameter/component-datepicker-parameter.js +30 -30
- package/lib/utility/internal-entity/component-parameter/component-enumfield-parameter.js +30 -30
- package/lib/utility/internal-entity/component-parameter/component-fieldset-parameter.js +24 -24
- package/lib/utility/internal-entity/component-parameter/component-file-upload-parameter.js +24 -24
- package/lib/utility/internal-entity/component-parameter/component-footer-parameter.js +24 -24
- package/lib/utility/internal-entity/component-parameter/component-header-parameter.js +24 -24
- package/lib/utility/internal-entity/component-parameter/component-inputgroup-modalconfig-parameter.js +46 -46
- package/lib/utility/internal-entity/component-parameter/component-language-textbox-parameter.js +37 -37
- package/lib/utility/internal-entity/component-parameter/component-listfilter-parameter.js +59 -59
- package/lib/utility/internal-entity/component-parameter/component-multitextbox-parameter.js +30 -30
- package/lib/utility/internal-entity/component-parameter/component-numericbox-parameter.js +30 -30
- package/lib/utility/internal-entity/component-parameter/component-placeholder-parameter.js +24 -24
- package/lib/utility/internal-entity/component-parameter/component-richtextbox-parameter.js +28 -28
- package/lib/utility/internal-entity/component-parameter/component-tags-parameter.js +31 -31
- package/lib/utility/internal-entity/component-parameter/component-textbox-parameter.js +28 -28
- package/lib/utility/internal-entity/component-parameter/component-timepicker-parameter.js +28 -28
- package/lib/utility/internal-entity/component-parameter/component-timespinner-parameter.js +28 -28
- package/lib/utility/internal-entity/component-parameter/i-component-parameter.js +2 -2
- package/lib/utility/internal-entity/component-parameter/index.js +16 -16
- package/lib/utility/internal-entity/i-project-read-data.js +2 -2
- package/lib/utility/internal-entity/index.js +13 -13
- package/lib/utility/internal-entity/viewmodel-parameter/index.js +13 -13
- package/lib/utility/internal-entity/viewmodel-parameter/viewmodel-pagination-parameter.js +11 -11
- package/lib/utility/jit-constant.js +53 -53
- package/lib/utility/jit-engine-executor/i-jit-engine-executor.js +2 -2
- package/lib/utility/jit-engine-executor/index.js +15 -15
- package/lib/utility/jit-engine-executor/jit-engine-executor-factory.js +30 -30
- package/lib/utility/jit-engine-executor/jit-engine-executor-manager.js +24 -24
- package/lib/utility/jit-engine-executor/jit-engine-executor-request-generator.js +21 -21
- package/lib/utility/jit-engine-executor/jit-engine-executor-request.js +26 -26
- package/lib/utility/jit-engine-executor/jit-engine-executor-response.js +9 -9
- package/lib/utility/jit-engine-executor/jit-engine-executor-type.js +9 -9
- package/lib/utility/jit-engine-executor/mobile-approve-executor.js +15 -15
- package/lib/utility/jit-engine-executor/specific-executor.js +31 -31
- package/lib/utility/jit-ignore/index.js +13 -13
- package/lib/utility/jit-ignore/jit-generate-ignore-manager.js +104 -104
- package/lib/utility/jit-ignore/jit-generate-ignore.js +56 -56
- package/lib/utility/jit-ignore/jit-ignore-json-helper.js +22 -22
- package/lib/utility/jit-path-helper.js +44 -44
- package/lib/utility/json-stringfy-helper/array.js +16 -16
- package/lib/utility/json-stringfy-helper/function.js +237 -237
- package/lib/utility/json-stringfy-helper/index.js +73 -73
- package/lib/utility/json-stringfy-helper/object.js +67 -67
- package/lib/utility/json-stringfy-helper/quote.js +58 -58
- package/lib/utility/json-stringfy-helper/stringify.js +29 -29
- package/lib/utility/json-stringfy-helper/types.js +2 -2
- package/lib/utility/line-reader.js +97 -97
- package/lib/utility/logger/date-format.js +37 -37
- package/lib/utility/logger/index.js +15 -15
- package/lib/utility/logger/logger-helper.js +47 -47
- package/lib/utility/logger/logger-level.js +12 -12
- package/lib/utility/mobile-approve/config-helper/form-jsonfile-reader.js +16 -16
- package/lib/utility/mobile-approve/config-helper/formatter-function-generator.js +67 -67
- package/lib/utility/mobile-approve/entity/attachment-panel-for-mobileapprove.js +51 -51
- package/lib/utility/mobile-approve/entity/base-mobile-approve.js +36 -36
- package/lib/utility/mobile-approve/entity/binding.js +25 -25
- package/lib/utility/mobile-approve/entity/child-detail-template.js +10 -10
- package/lib/utility/mobile-approve/entity/child-table-primary-relation.js +6 -6
- package/lib/utility/mobile-approve/entity/component-ref.js +33 -33
- package/lib/utility/mobile-approve/entity/component.js +55 -55
- package/lib/utility/mobile-approve/entity/content-container.js +42 -42
- package/lib/utility/mobile-approve/entity/detail-header-for-mobileapprove.js +122 -122
- package/lib/utility/mobile-approve/entity/detail-header-item.js +32 -32
- package/lib/utility/mobile-approve/entity/field-binding-parameter.js +24 -24
- package/lib/utility/mobile-approve/entity/fieldset-for-mobileapprove.js +42 -42
- package/lib/utility/mobile-approve/entity/flow-process-for-mobileapprove.js +34 -34
- package/lib/utility/mobile-approve/entity/html-panel-for-mobileapprove.js +48 -48
- package/lib/utility/mobile-approve/entity/html-template.js +25 -25
- package/lib/utility/mobile-approve/entity/index.js +27 -27
- package/lib/utility/mobile-approve/entity/module.js +39 -39
- package/lib/utility/mobile-approve/entity/panel-for-mobileapprove.js +101 -101
- package/lib/utility/mobile-approve/entity/panel-item-for-mobileapprove.js +38 -38
- package/lib/utility/mobile-approve/entity/person-avatar.js +24 -24
- package/lib/utility/mobile-approve/entity/static-text-for-mobileapprove.js +71 -71
- package/lib/utility/mobile-approve/generator/dom-generator.js +20 -20
- package/lib/utility/mobile-approve/mobile-approve-manager.js +50 -50
- package/lib/utility/mobile-approve/recuresive-generate-mobileapprove.js +430 -430
- package/lib/utility/mobile-approve/template-generator/abstract-template-generator.js +6 -6
- package/lib/utility/mobile-approve/template-generator/component-template-generator.js +10 -10
- package/lib/utility/mobile-approve/template-generator/content-container-template-generator.js +10 -10
- package/lib/utility/mobile-approve/template-generator/detailheader-for-mobileapprove-template-generator.js +10 -10
- package/lib/utility/mobile-approve/template-generator/i-template-generator.js +2 -2
- package/lib/utility/mobile-approve/template-generator/index-html-generator.js +582 -582
- package/lib/utility/mobile-approve/template-generator/index.js +13 -13
- package/lib/utility/mobile-approve/template-generator/mobile-approve-templateconfig.js +39 -39
- package/lib/utility/mobile-approve/template-generator/panel-for-mobileapprove-template-generator.js +10 -10
- package/lib/utility/mobile-approve/template-generator/static-text-for-mobileapprove-template-generator.js +10 -10
- package/lib/utility/mobile-approve/template-generator/template-generator-factory.js +39 -39
- package/lib/utility/mobile-approve/template-generator/template-generator-manager.js +31 -31
- package/lib/utility/mobile-approve/template-generator/template-generator-type.js +11 -11
- package/lib/utility/module-reference/index.js +15 -15
- package/lib/utility/module-reference/module-prefix-replace.js +15 -15
- package/lib/utility/module-reference/module-reference-constant.js +9 -9
- package/lib/utility/module-reference/module-reference-manager.js +149 -149
- package/lib/utility/multi-textbox-checker.js +41 -41
- package/lib/utility/oa-relation-checker.js +42 -42
- package/lib/utility/organization-selector-checker.js +57 -57
- package/lib/utility/pageflow/index.js +13 -13
- package/lib/utility/pageflow/pageflowfile-reader.js +21 -21
- package/lib/utility/personnel-selector-checker.js +57 -57
- package/lib/utility/portlet-checker.js +41 -41
- package/lib/utility/primeng-treegrid-checker.js +41 -41
- package/lib/utility/progress-steps-checker.js +40 -40
- package/lib/utility/project-route-validator.js +22 -22
- package/lib/utility/project-version/index.js +13 -13
- package/lib/utility/project-version/project-version-content.js +34 -34
- package/lib/utility/project-version/project-version-filename-generator.js +30 -30
- package/lib/utility/project-version/project-version-manager.js +38 -38
- package/lib/utility/project-version/projectversion-file-reader.js +34 -34
- package/lib/utility/project-version/projectversion-file-writer.js +44 -44
- package/lib/utility/project-version/projectversion.js +91 -91
- package/lib/utility/qdp-jointsearch-generator.js +39 -39
- package/lib/utility/qdpForm-checker.js +63 -63
- package/lib/utility/qrcode-selector-checker.js +57 -57
- package/lib/utility/random-generator.js +26 -26
- package/lib/utility/route-page-executor.js +19 -19
- package/lib/utility/source-code-delete/delete-sourcecode-executor.js +24 -24
- package/lib/utility/template-generator/abstract-template-generator.js +31 -31
- package/lib/utility/template-generator/devkit/befproxy-template-generator.js +126 -126
- package/lib/utility/template-generator/devkit/commandhandler-template-generator.js +94 -94
- package/lib/utility/template-generator/devkit/component-generator/component-adminorganization-selector-parameter-generator.js +20 -20
- package/lib/utility/template-generator/devkit/component-generator/component-appointment-calendar-parameter-generator.js +76 -76
- package/lib/utility/template-generator/devkit/component-generator/component-avatar-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-button-parameter-generator.js +23 -23
- package/lib/utility/template-generator/devkit/component-generator/component-checkgroup-parameter-generator.js +40 -40
- package/lib/utility/template-generator/devkit/component-generator/component-combolist-parameter-generator.js +48 -48
- package/lib/utility/template-generator/devkit/component-generator/component-constructor-parameter-generator.js +68 -68
- package/lib/utility/template-generator/devkit/component-generator/component-datebox-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-datepicker-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-employee-selector-parameter-generator.js +20 -20
- package/lib/utility/template-generator/devkit/component-generator/component-enumfield-parameter-generator.js +42 -42
- package/lib/utility/template-generator/devkit/component-generator/component-external-container-parameter-generator.js +191 -191
- package/lib/utility/template-generator/devkit/component-generator/component-farris-inputgroup-parameter-generator.js +95 -95
- package/lib/utility/template-generator/devkit/component-generator/component-farrisgrid-parameter-generator.js +607 -607
- package/lib/utility/template-generator/devkit/component-generator/component-fieldset-parameter-generator.js +27 -27
- package/lib/utility/template-generator/devkit/component-generator/component-fileupload-parameter-generator.js +228 -228
- package/lib/utility/template-generator/devkit/component-generator/component-footer-parameter-generator.js +23 -23
- package/lib/utility/template-generator/devkit/component-generator/component-header-parameter-generator.js +74 -74
- package/lib/utility/template-generator/devkit/component-generator/component-hostbinding-class-generator.js +31 -31
- package/lib/utility/template-generator/devkit/component-generator/component-import-generator.js +184 -184
- package/lib/utility/template-generator/devkit/component-generator/component-joint-search-parameter-generator.js +15 -15
- package/lib/utility/template-generator/devkit/component-generator/component-keybinding-service-generator.js +18 -18
- package/lib/utility/template-generator/devkit/component-generator/component-languagetextbox-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-listfilter-parameter-generator.js +218 -218
- package/lib/utility/template-generator/devkit/component-generator/component-listnav-parameter-generator.js +14 -14
- package/lib/utility/template-generator/devkit/component-generator/component-lookup-parameter-generator.js +71 -71
- package/lib/utility/template-generator/devkit/component-generator/component-modal-form-controls-generator.js +142 -142
- package/lib/utility/template-generator/devkit/component-generator/component-multitextbox-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-nav-tab-parameter-generator.js +44 -44
- package/lib/utility/template-generator/devkit/component-generator/component-numberspinner-range-parameter-generator.js +52 -52
- package/lib/utility/template-generator/devkit/component-generator/component-numericbox-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-organization-selector-parameter-generator.js +20 -20
- package/lib/utility/template-generator/devkit/component-generator/component-personnel-selector-parameter-generator.js +40 -40
- package/lib/utility/template-generator/devkit/component-generator/component-primeng-treegrid-parameter-generator.js +350 -350
- package/lib/utility/template-generator/devkit/component-generator/component-provider-generator.js +177 -177
- package/lib/utility/template-generator/devkit/component-generator/component-qdpframework-parameter-generator.js +17 -17
- package/lib/utility/template-generator/devkit/component-generator/component-queryschema-parameter-generator.js +385 -385
- package/lib/utility/template-generator/devkit/component-generator/component-radiogroup-parameter-generator.js +47 -47
- package/lib/utility/template-generator/devkit/component-generator/component-readonly-parameter-generator.js +17 -17
- package/lib/utility/template-generator/devkit/component-generator/component-richtextbox-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-scrollspy-parameter-generator.js +64 -64
- package/lib/utility/template-generator/devkit/component-generator/component-selector-generator.js +18 -18
- package/lib/utility/template-generator/devkit/component-generator/component-sidebar-parameter-generator.js +17 -17
- package/lib/utility/template-generator/devkit/component-generator/component-styleurls-generator.js +20 -20
- package/lib/utility/template-generator/devkit/component-generator/component-tags-parameter-generator.js +40 -40
- package/lib/utility/template-generator/devkit/component-generator/component-textbox-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-timepicker-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-timespinner-parameter-generator.js +19 -19
- package/lib/utility/template-generator/devkit/component-generator/component-tooltype-parameter-generator.js +27 -27
- package/lib/utility/template-generator/devkit/component-generator/component-treegrid-parameter-generator.js +281 -281
- package/lib/utility/template-generator/devkit/component-generator/component-verify-parameter-generator.js +44 -44
- package/lib/utility/template-generator/devkit/component-generator/component-viewchange-parameter-generator.js +40 -40
- package/lib/utility/template-generator/devkit/component-generator/component-wizard-parameter-generator.js +59 -59
- package/lib/utility/template-generator/devkit/component-generator/index.js +40 -40
- package/lib/utility/template-generator/devkit/component-template-generator.js +513 -513
- package/lib/utility/template-generator/devkit/entity-template-generator.js +192 -192
- package/lib/utility/template-generator/devkit/event-template-generator.js +46 -46
- package/lib/utility/template-generator/devkit/form-template-generator.js +120 -120
- package/lib/utility/template-generator/devkit/module-generator/index.js +19 -19
- package/lib/utility/template-generator/devkit/module-generator/module-bootstrap-generator.js +23 -23
- package/lib/utility/template-generator/devkit/module-generator/module-declarations-generator.js +27 -27
- package/lib/utility/template-generator/devkit/module-generator/module-entrycomponents-generator.js +23 -23
- package/lib/utility/template-generator/devkit/module-generator/module-exports-generator.js +23 -23
- package/lib/utility/template-generator/devkit/module-generator/module-i18n-generator.js +17 -17
- package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js +304 -303
- package/lib/utility/template-generator/devkit/module-generator/module-import-statement-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js +300 -282
- package/lib/utility/template-generator/devkit/module-generator/module-imports-statement-generator.js.map +1 -1
- package/lib/utility/template-generator/devkit/module-generator/module-providers-generator.js +158 -158
- package/lib/utility/template-generator/devkit/module-template-generator.js +46 -46
- package/lib/utility/template-generator/devkit/repository-template-generator.js +100 -100
- package/lib/utility/template-generator/devkit/router-template-generator.js +110 -110
- package/lib/utility/template-generator/devkit/state-template-generator.js +48 -48
- package/lib/utility/template-generator/devkit/statemachine-template-generator.js +70 -70
- package/lib/utility/template-generator/devkit/validrules-template-generator.js +55 -55
- package/lib/utility/template-generator/devkit/viewmodel-template-generator.js +140 -140
- package/lib/utility/template-generator/devkit-classname-templatetype-convertor.js +59 -59
- package/lib/utility/template-generator/form-jiexi/devkit/component-generator/index.js +15 -15
- package/lib/utility/template-generator/form-jiexi/devkit/component-generator/root-component-html-generator.js +10 -10
- package/lib/utility/template-generator/form-jiexi/devkit/component-generator/root-component-scss-generator.js +10 -10
- package/lib/utility/template-generator/form-jiexi/devkit/component-generator/root-component-ts-generator.js +62 -62
- package/lib/utility/template-generator/form-jiexi/devkit/metadata-generator/form-metadata-generator.js +50 -50
- package/lib/utility/template-generator/form-jiexi/devkit/metadata-generator/indexx.js +13 -13
- package/lib/utility/template-generator/form-jiexi/devkit/module-generator/form-module-generator.js +56 -56
- package/lib/utility/template-generator/form-jiexi/devkit/module-generator/form-module-routing-generator.js +35 -35
- package/lib/utility/template-generator/form-jiexi/devkit/module-generator/index.js +13 -13
- package/lib/utility/template-generator/form-jiexi/form-jiexi-generator-manager.js +81 -81
- package/lib/utility/template-generator/form-jiexi/sourcecode-delete-with-jiexiform.js +19 -19
- package/lib/utility/template-generator/i-template-generator.js +2 -2
- package/lib/utility/template-generator/index.js +16 -16
- package/lib/utility/template-generator/project/angularJson-generator.js +197 -197
- package/lib/utility/template-generator/project/environments/environment-prod-ts-generator.js +17 -17
- package/lib/utility/template-generator/project/environments/environment-ts-generator.js +17 -17
- package/lib/utility/template-generator/project/index-rollup-html-generator.js +109 -109
- package/lib/utility/template-generator/project/mail-ts-generator.js +27 -27
- package/lib/utility/template-generator/project/main-ts-aot-generaor.js +23 -23
- package/lib/utility/template-generator/project/package-json-generator.js +134 -134
- package/lib/utility/template-generator/project/polyfills-ts-generator.js +33 -33
- package/lib/utility/template-generator/project/tsconfig-app-flash-json-generator.js +26 -26
- package/lib/utility/template-generator/project/tsconfig-app-json-generator.js +26 -26
- package/lib/utility/template-generator/project/tsconfig-flash-json-generator.js +56 -56
- package/lib/utility/template-generator/project/tsconfig-json-generator.js +58 -58
- package/lib/utility/template-generator/project/version-check-service-generator.js +85 -85
- package/lib/utility/template-generator/project-app/app-component-scss-generator.js +17 -17
- package/lib/utility/template-generator/project-app/app-component-ts-generator.js +25 -25
- package/lib/utility/template-generator/project-app/app-module-ts-generator.js +151 -151
- package/lib/utility/template-generator/project-app/app-routing-module-generator.js +73 -73
- package/lib/utility/template-generator/project-app/index.js +16 -16
- package/lib/utility/template-generator/project-app/navigate-guard-generator.js +79 -79
- package/lib/utility/template-generator/project-app/systemjs-lc-moduleloader-generator.js +132 -132
- package/lib/utility/template-generator/subcontext-path-generator.js +19 -19
- package/lib/utility/template-generator/template-generator-factory.js +173 -173
- package/lib/utility/template-generator/template-generator-manager.js +119 -119
- package/lib/utility/template-generator/template-type.js +48 -48
- package/lib/utility/template-generator/ui/abstract-ui-template-generator.js +58 -58
- package/lib/utility/template-generator/ui/button-template-generator.js +17 -17
- package/lib/utility/template-generator/ui/html-attribute-name-constants.js +24 -24
- package/lib/utility/template-generator/ui/html-attribute-type.js +8 -8
- package/lib/utility/toolhepler.js +528 -528
- package/lib/utility/validator/IParams-validator.js +2 -2
- package/lib/utility/validator/default-params-validator.js +10 -10
- package/lib/utility/validator/index.js +16 -16
- package/lib/utility/validator/pageflow-json-validator.js +28 -28
- package/lib/utility/validator/params-validate-type.js +8 -8
- package/lib/utility/validator/params-validator-factory.js +54 -54
- package/lib/utility/validator/params-validator-manager.js +12 -12
- package/lib/utility/validator/uiconfig-parameter-validator.js +27 -27
- package/lib/utility/validator/validate-result.js +19 -19
- package/package.json +1 -1
|
@@ -1,238 +1,238 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FunctionParser = exports.dedentFunction = exports.functionToString = exports.USED_METHOD_KEY = void 0;
|
|
4
|
-
const quote_1 = require("./quote");
|
|
5
|
-
const METHOD_NAMES_ARE_QUOTED = {
|
|
6
|
-
" "() {
|
|
7
|
-
}
|
|
8
|
-
}[" "]
|
|
9
|
-
.toString()
|
|
10
|
-
.charAt(0) === '"';
|
|
11
|
-
const FUNCTION_PREFIXES = {
|
|
12
|
-
Function: "function ",
|
|
13
|
-
GeneratorFunction: "function* ",
|
|
14
|
-
AsyncFunction: "async function ",
|
|
15
|
-
AsyncGeneratorFunction: "async function* "
|
|
16
|
-
};
|
|
17
|
-
const METHOD_PREFIXES = {
|
|
18
|
-
Function: "",
|
|
19
|
-
GeneratorFunction: "*",
|
|
20
|
-
AsyncFunction: "async ",
|
|
21
|
-
AsyncGeneratorFunction: "async *"
|
|
22
|
-
};
|
|
23
|
-
const TOKENS_PRECEDING_REGEXPS = new Set(("case delete else in instanceof new return throw typeof void " +
|
|
24
|
-
", ; : + - ! ~ & | ^ * / % < > ? =").split(" "));
|
|
25
|
-
exports.USED_METHOD_KEY = new WeakSet();
|
|
26
|
-
const functionToString = (fn, space, next, key) => {
|
|
27
|
-
const name = typeof key === "string" ? key : undefined;
|
|
28
|
-
if (name !== undefined)
|
|
29
|
-
exports.USED_METHOD_KEY.add(fn);
|
|
30
|
-
return new FunctionParser(fn, space, next, name).stringify();
|
|
31
|
-
};
|
|
32
|
-
exports.functionToString = functionToString;
|
|
33
|
-
function dedentFunction(fnString) {
|
|
34
|
-
let found;
|
|
35
|
-
for (const line of fnString.split("\n").slice(1)) {
|
|
36
|
-
const m = /^[\s\t]+/.exec(line);
|
|
37
|
-
if (!m)
|
|
38
|
-
return fnString;
|
|
39
|
-
const [str] = m;
|
|
40
|
-
if (found === undefined)
|
|
41
|
-
found = str;
|
|
42
|
-
else if (str.length < found.length)
|
|
43
|
-
found = str;
|
|
44
|
-
}
|
|
45
|
-
return found ? fnString.split(`\n${found}`).join("\n") : fnString;
|
|
46
|
-
}
|
|
47
|
-
exports.dedentFunction = dedentFunction;
|
|
48
|
-
class FunctionParser {
|
|
49
|
-
constructor(fn, indent, next, key) {
|
|
50
|
-
this.fn = fn;
|
|
51
|
-
this.indent = indent;
|
|
52
|
-
this.next = next;
|
|
53
|
-
this.key = key;
|
|
54
|
-
this.pos = 0;
|
|
55
|
-
this.hadKeyword = false;
|
|
56
|
-
this.fnString = Function.prototype.toString.call(fn);
|
|
57
|
-
this.fnType = fn.constructor.name;
|
|
58
|
-
this.keyQuote = key === undefined ? "" : quote_1.quoteKey(key, next);
|
|
59
|
-
this.keyPrefix =
|
|
60
|
-
key === undefined ? "" : `${this.keyQuote}:${indent ? " " : ""}`;
|
|
61
|
-
this.isMethodCandidate =
|
|
62
|
-
key === undefined ? false : this.fn.name === "" || this.fn.name === key;
|
|
63
|
-
}
|
|
64
|
-
stringify() {
|
|
65
|
-
const value = this.tryParse();
|
|
66
|
-
if (!value) {
|
|
67
|
-
return `${this.keyPrefix}void ${this.next(this.fnString)}`;
|
|
68
|
-
}
|
|
69
|
-
return dedentFunction(value);
|
|
70
|
-
}
|
|
71
|
-
getPrefix() {
|
|
72
|
-
if (this.isMethodCandidate && !this.hadKeyword) {
|
|
73
|
-
return METHOD_PREFIXES[this.fnType] + this.keyQuote;
|
|
74
|
-
}
|
|
75
|
-
return this.keyPrefix + FUNCTION_PREFIXES[this.fnType];
|
|
76
|
-
}
|
|
77
|
-
tryParse() {
|
|
78
|
-
if (this.fnString[this.fnString.length - 1] !== "}") {
|
|
79
|
-
return this.keyPrefix + this.fnString;
|
|
80
|
-
}
|
|
81
|
-
if (this.fn.name) {
|
|
82
|
-
const result = this.tryStrippingName();
|
|
83
|
-
if (result)
|
|
84
|
-
return result;
|
|
85
|
-
}
|
|
86
|
-
const prevPos = this.pos;
|
|
87
|
-
if (this.consumeSyntax() === "class")
|
|
88
|
-
return this.fnString;
|
|
89
|
-
this.pos = prevPos;
|
|
90
|
-
if (this.tryParsePrefixTokens()) {
|
|
91
|
-
const result = this.tryStrippingName();
|
|
92
|
-
if (result)
|
|
93
|
-
return result;
|
|
94
|
-
let offset = this.pos;
|
|
95
|
-
switch (this.consumeSyntax("WORD_LIKE")) {
|
|
96
|
-
case "WORD_LIKE":
|
|
97
|
-
if (this.isMethodCandidate && !this.hadKeyword) {
|
|
98
|
-
offset = this.pos;
|
|
99
|
-
}
|
|
100
|
-
case "()":
|
|
101
|
-
if (this.fnString.substr(this.pos, 2) === "=>") {
|
|
102
|
-
return this.keyPrefix + this.fnString;
|
|
103
|
-
}
|
|
104
|
-
this.pos = offset;
|
|
105
|
-
case '"':
|
|
106
|
-
case "'":
|
|
107
|
-
case "[]":
|
|
108
|
-
return this.getPrefix() + this.fnString.substr(this.pos);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
tryStrippingName() {
|
|
113
|
-
if (METHOD_NAMES_ARE_QUOTED) {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
let start = this.pos;
|
|
117
|
-
const prefix = this.fnString.substr(this.pos, this.fn.name.length);
|
|
118
|
-
if (prefix === this.fn.name) {
|
|
119
|
-
this.pos += prefix.length;
|
|
120
|
-
if (this.consumeSyntax() === "()" &&
|
|
121
|
-
this.consumeSyntax() === "{}" &&
|
|
122
|
-
this.pos === this.fnString.length) {
|
|
123
|
-
if (this.isMethodCandidate || !quote_1.isValidVariableName(prefix)) {
|
|
124
|
-
start += prefix.length;
|
|
125
|
-
}
|
|
126
|
-
return this.getPrefix() + this.fnString.substr(start);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
this.pos = start;
|
|
130
|
-
}
|
|
131
|
-
tryParsePrefixTokens() {
|
|
132
|
-
let posPrev = this.pos;
|
|
133
|
-
this.hadKeyword = false;
|
|
134
|
-
switch (this.fnType) {
|
|
135
|
-
case "AsyncFunction":
|
|
136
|
-
if (this.consumeSyntax() !== "async")
|
|
137
|
-
return false;
|
|
138
|
-
posPrev = this.pos;
|
|
139
|
-
case "Function":
|
|
140
|
-
if (this.consumeSyntax() === "function") {
|
|
141
|
-
this.hadKeyword = true;
|
|
142
|
-
}
|
|
143
|
-
else {
|
|
144
|
-
this.pos = posPrev;
|
|
145
|
-
}
|
|
146
|
-
return true;
|
|
147
|
-
case "AsyncGeneratorFunction":
|
|
148
|
-
if (this.consumeSyntax() !== "async")
|
|
149
|
-
return false;
|
|
150
|
-
case "GeneratorFunction":
|
|
151
|
-
let token = this.consumeSyntax();
|
|
152
|
-
if (token === "function") {
|
|
153
|
-
token = this.consumeSyntax();
|
|
154
|
-
this.hadKeyword = true;
|
|
155
|
-
}
|
|
156
|
-
return token === "*";
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
consumeSyntax(wordLikeToken) {
|
|
160
|
-
const m = this.consumeMatch(/^(?:([A-Za-z_0-9$\xA0-\uFFFF]+)|=>|\+\+|\-\-|.)/);
|
|
161
|
-
if (!m)
|
|
162
|
-
return;
|
|
163
|
-
const [token, match] = m;
|
|
164
|
-
this.consumeWhitespace();
|
|
165
|
-
if (match)
|
|
166
|
-
return wordLikeToken || match;
|
|
167
|
-
switch (token) {
|
|
168
|
-
case "(":
|
|
169
|
-
return this.consumeSyntaxUntil("(", ")");
|
|
170
|
-
case "[":
|
|
171
|
-
return this.consumeSyntaxUntil("[", "]");
|
|
172
|
-
case "{":
|
|
173
|
-
return this.consumeSyntaxUntil("{", "}");
|
|
174
|
-
case "`":
|
|
175
|
-
return this.consumeTemplate();
|
|
176
|
-
case '"':
|
|
177
|
-
return this.consumeRegExp(/^(?:[^\\"]|\\.)*"/, '"');
|
|
178
|
-
case "'":
|
|
179
|
-
return this.consumeRegExp(/^(?:[^\\']|\\.)*'/, "'");
|
|
180
|
-
}
|
|
181
|
-
return token;
|
|
182
|
-
}
|
|
183
|
-
consumeSyntaxUntil(startToken, endToken) {
|
|
184
|
-
let isRegExpAllowed = true;
|
|
185
|
-
for (;;) {
|
|
186
|
-
const token = this.consumeSyntax();
|
|
187
|
-
if (token === endToken)
|
|
188
|
-
return startToken + endToken;
|
|
189
|
-
if (!token || token === ")" || token === "]" || token === "}")
|
|
190
|
-
return;
|
|
191
|
-
if (token === "/" &&
|
|
192
|
-
isRegExpAllowed &&
|
|
193
|
-
this.consumeMatch(/^(?:\\.|[^\\\/\n[]|\[(?:\\.|[^\]])*\])+\/[a-z]*/)) {
|
|
194
|
-
isRegExpAllowed = false;
|
|
195
|
-
this.consumeWhitespace();
|
|
196
|
-
}
|
|
197
|
-
else {
|
|
198
|
-
isRegExpAllowed = TOKENS_PRECEDING_REGEXPS.has(token);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
consumeMatch(re) {
|
|
203
|
-
const m = re.exec(this.fnString.substr(this.pos));
|
|
204
|
-
if (m)
|
|
205
|
-
this.pos += m[0].length;
|
|
206
|
-
return m;
|
|
207
|
-
}
|
|
208
|
-
consumeRegExp(re, token) {
|
|
209
|
-
const m = re.exec(this.fnString.substr(this.pos));
|
|
210
|
-
if (!m)
|
|
211
|
-
return;
|
|
212
|
-
this.pos += m[0].length;
|
|
213
|
-
this.consumeWhitespace();
|
|
214
|
-
return token;
|
|
215
|
-
}
|
|
216
|
-
consumeTemplate() {
|
|
217
|
-
for (;;) {
|
|
218
|
-
this.consumeMatch(/^(?:[^`$\\]|\\.|\$(?!{))*/);
|
|
219
|
-
if (this.fnString[this.pos] === "`") {
|
|
220
|
-
this.pos++;
|
|
221
|
-
this.consumeWhitespace();
|
|
222
|
-
return "`";
|
|
223
|
-
}
|
|
224
|
-
if (this.fnString.substr(this.pos, 2) === "${") {
|
|
225
|
-
this.pos += 2;
|
|
226
|
-
this.consumeWhitespace();
|
|
227
|
-
if (this.consumeSyntaxUntil("{", "}"))
|
|
228
|
-
continue;
|
|
229
|
-
}
|
|
230
|
-
return;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
consumeWhitespace() {
|
|
234
|
-
this.consumeMatch(/^(?:\s|\/\/.*|\/\*[^]*?\*\/)*/);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
exports.FunctionParser = FunctionParser;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FunctionParser = exports.dedentFunction = exports.functionToString = exports.USED_METHOD_KEY = void 0;
|
|
4
|
+
const quote_1 = require("./quote");
|
|
5
|
+
const METHOD_NAMES_ARE_QUOTED = {
|
|
6
|
+
" "() {
|
|
7
|
+
}
|
|
8
|
+
}[" "]
|
|
9
|
+
.toString()
|
|
10
|
+
.charAt(0) === '"';
|
|
11
|
+
const FUNCTION_PREFIXES = {
|
|
12
|
+
Function: "function ",
|
|
13
|
+
GeneratorFunction: "function* ",
|
|
14
|
+
AsyncFunction: "async function ",
|
|
15
|
+
AsyncGeneratorFunction: "async function* "
|
|
16
|
+
};
|
|
17
|
+
const METHOD_PREFIXES = {
|
|
18
|
+
Function: "",
|
|
19
|
+
GeneratorFunction: "*",
|
|
20
|
+
AsyncFunction: "async ",
|
|
21
|
+
AsyncGeneratorFunction: "async *"
|
|
22
|
+
};
|
|
23
|
+
const TOKENS_PRECEDING_REGEXPS = new Set(("case delete else in instanceof new return throw typeof void " +
|
|
24
|
+
", ; : + - ! ~ & | ^ * / % < > ? =").split(" "));
|
|
25
|
+
exports.USED_METHOD_KEY = new WeakSet();
|
|
26
|
+
const functionToString = (fn, space, next, key) => {
|
|
27
|
+
const name = typeof key === "string" ? key : undefined;
|
|
28
|
+
if (name !== undefined)
|
|
29
|
+
exports.USED_METHOD_KEY.add(fn);
|
|
30
|
+
return new FunctionParser(fn, space, next, name).stringify();
|
|
31
|
+
};
|
|
32
|
+
exports.functionToString = functionToString;
|
|
33
|
+
function dedentFunction(fnString) {
|
|
34
|
+
let found;
|
|
35
|
+
for (const line of fnString.split("\n").slice(1)) {
|
|
36
|
+
const m = /^[\s\t]+/.exec(line);
|
|
37
|
+
if (!m)
|
|
38
|
+
return fnString;
|
|
39
|
+
const [str] = m;
|
|
40
|
+
if (found === undefined)
|
|
41
|
+
found = str;
|
|
42
|
+
else if (str.length < found.length)
|
|
43
|
+
found = str;
|
|
44
|
+
}
|
|
45
|
+
return found ? fnString.split(`\n${found}`).join("\n") : fnString;
|
|
46
|
+
}
|
|
47
|
+
exports.dedentFunction = dedentFunction;
|
|
48
|
+
class FunctionParser {
|
|
49
|
+
constructor(fn, indent, next, key) {
|
|
50
|
+
this.fn = fn;
|
|
51
|
+
this.indent = indent;
|
|
52
|
+
this.next = next;
|
|
53
|
+
this.key = key;
|
|
54
|
+
this.pos = 0;
|
|
55
|
+
this.hadKeyword = false;
|
|
56
|
+
this.fnString = Function.prototype.toString.call(fn);
|
|
57
|
+
this.fnType = fn.constructor.name;
|
|
58
|
+
this.keyQuote = key === undefined ? "" : quote_1.quoteKey(key, next);
|
|
59
|
+
this.keyPrefix =
|
|
60
|
+
key === undefined ? "" : `${this.keyQuote}:${indent ? " " : ""}`;
|
|
61
|
+
this.isMethodCandidate =
|
|
62
|
+
key === undefined ? false : this.fn.name === "" || this.fn.name === key;
|
|
63
|
+
}
|
|
64
|
+
stringify() {
|
|
65
|
+
const value = this.tryParse();
|
|
66
|
+
if (!value) {
|
|
67
|
+
return `${this.keyPrefix}void ${this.next(this.fnString)}`;
|
|
68
|
+
}
|
|
69
|
+
return dedentFunction(value);
|
|
70
|
+
}
|
|
71
|
+
getPrefix() {
|
|
72
|
+
if (this.isMethodCandidate && !this.hadKeyword) {
|
|
73
|
+
return METHOD_PREFIXES[this.fnType] + this.keyQuote;
|
|
74
|
+
}
|
|
75
|
+
return this.keyPrefix + FUNCTION_PREFIXES[this.fnType];
|
|
76
|
+
}
|
|
77
|
+
tryParse() {
|
|
78
|
+
if (this.fnString[this.fnString.length - 1] !== "}") {
|
|
79
|
+
return this.keyPrefix + this.fnString;
|
|
80
|
+
}
|
|
81
|
+
if (this.fn.name) {
|
|
82
|
+
const result = this.tryStrippingName();
|
|
83
|
+
if (result)
|
|
84
|
+
return result;
|
|
85
|
+
}
|
|
86
|
+
const prevPos = this.pos;
|
|
87
|
+
if (this.consumeSyntax() === "class")
|
|
88
|
+
return this.fnString;
|
|
89
|
+
this.pos = prevPos;
|
|
90
|
+
if (this.tryParsePrefixTokens()) {
|
|
91
|
+
const result = this.tryStrippingName();
|
|
92
|
+
if (result)
|
|
93
|
+
return result;
|
|
94
|
+
let offset = this.pos;
|
|
95
|
+
switch (this.consumeSyntax("WORD_LIKE")) {
|
|
96
|
+
case "WORD_LIKE":
|
|
97
|
+
if (this.isMethodCandidate && !this.hadKeyword) {
|
|
98
|
+
offset = this.pos;
|
|
99
|
+
}
|
|
100
|
+
case "()":
|
|
101
|
+
if (this.fnString.substr(this.pos, 2) === "=>") {
|
|
102
|
+
return this.keyPrefix + this.fnString;
|
|
103
|
+
}
|
|
104
|
+
this.pos = offset;
|
|
105
|
+
case '"':
|
|
106
|
+
case "'":
|
|
107
|
+
case "[]":
|
|
108
|
+
return this.getPrefix() + this.fnString.substr(this.pos);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
tryStrippingName() {
|
|
113
|
+
if (METHOD_NAMES_ARE_QUOTED) {
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
let start = this.pos;
|
|
117
|
+
const prefix = this.fnString.substr(this.pos, this.fn.name.length);
|
|
118
|
+
if (prefix === this.fn.name) {
|
|
119
|
+
this.pos += prefix.length;
|
|
120
|
+
if (this.consumeSyntax() === "()" &&
|
|
121
|
+
this.consumeSyntax() === "{}" &&
|
|
122
|
+
this.pos === this.fnString.length) {
|
|
123
|
+
if (this.isMethodCandidate || !quote_1.isValidVariableName(prefix)) {
|
|
124
|
+
start += prefix.length;
|
|
125
|
+
}
|
|
126
|
+
return this.getPrefix() + this.fnString.substr(start);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
this.pos = start;
|
|
130
|
+
}
|
|
131
|
+
tryParsePrefixTokens() {
|
|
132
|
+
let posPrev = this.pos;
|
|
133
|
+
this.hadKeyword = false;
|
|
134
|
+
switch (this.fnType) {
|
|
135
|
+
case "AsyncFunction":
|
|
136
|
+
if (this.consumeSyntax() !== "async")
|
|
137
|
+
return false;
|
|
138
|
+
posPrev = this.pos;
|
|
139
|
+
case "Function":
|
|
140
|
+
if (this.consumeSyntax() === "function") {
|
|
141
|
+
this.hadKeyword = true;
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
this.pos = posPrev;
|
|
145
|
+
}
|
|
146
|
+
return true;
|
|
147
|
+
case "AsyncGeneratorFunction":
|
|
148
|
+
if (this.consumeSyntax() !== "async")
|
|
149
|
+
return false;
|
|
150
|
+
case "GeneratorFunction":
|
|
151
|
+
let token = this.consumeSyntax();
|
|
152
|
+
if (token === "function") {
|
|
153
|
+
token = this.consumeSyntax();
|
|
154
|
+
this.hadKeyword = true;
|
|
155
|
+
}
|
|
156
|
+
return token === "*";
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
consumeSyntax(wordLikeToken) {
|
|
160
|
+
const m = this.consumeMatch(/^(?:([A-Za-z_0-9$\xA0-\uFFFF]+)|=>|\+\+|\-\-|.)/);
|
|
161
|
+
if (!m)
|
|
162
|
+
return;
|
|
163
|
+
const [token, match] = m;
|
|
164
|
+
this.consumeWhitespace();
|
|
165
|
+
if (match)
|
|
166
|
+
return wordLikeToken || match;
|
|
167
|
+
switch (token) {
|
|
168
|
+
case "(":
|
|
169
|
+
return this.consumeSyntaxUntil("(", ")");
|
|
170
|
+
case "[":
|
|
171
|
+
return this.consumeSyntaxUntil("[", "]");
|
|
172
|
+
case "{":
|
|
173
|
+
return this.consumeSyntaxUntil("{", "}");
|
|
174
|
+
case "`":
|
|
175
|
+
return this.consumeTemplate();
|
|
176
|
+
case '"':
|
|
177
|
+
return this.consumeRegExp(/^(?:[^\\"]|\\.)*"/, '"');
|
|
178
|
+
case "'":
|
|
179
|
+
return this.consumeRegExp(/^(?:[^\\']|\\.)*'/, "'");
|
|
180
|
+
}
|
|
181
|
+
return token;
|
|
182
|
+
}
|
|
183
|
+
consumeSyntaxUntil(startToken, endToken) {
|
|
184
|
+
let isRegExpAllowed = true;
|
|
185
|
+
for (;;) {
|
|
186
|
+
const token = this.consumeSyntax();
|
|
187
|
+
if (token === endToken)
|
|
188
|
+
return startToken + endToken;
|
|
189
|
+
if (!token || token === ")" || token === "]" || token === "}")
|
|
190
|
+
return;
|
|
191
|
+
if (token === "/" &&
|
|
192
|
+
isRegExpAllowed &&
|
|
193
|
+
this.consumeMatch(/^(?:\\.|[^\\\/\n[]|\[(?:\\.|[^\]])*\])+\/[a-z]*/)) {
|
|
194
|
+
isRegExpAllowed = false;
|
|
195
|
+
this.consumeWhitespace();
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
isRegExpAllowed = TOKENS_PRECEDING_REGEXPS.has(token);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
consumeMatch(re) {
|
|
203
|
+
const m = re.exec(this.fnString.substr(this.pos));
|
|
204
|
+
if (m)
|
|
205
|
+
this.pos += m[0].length;
|
|
206
|
+
return m;
|
|
207
|
+
}
|
|
208
|
+
consumeRegExp(re, token) {
|
|
209
|
+
const m = re.exec(this.fnString.substr(this.pos));
|
|
210
|
+
if (!m)
|
|
211
|
+
return;
|
|
212
|
+
this.pos += m[0].length;
|
|
213
|
+
this.consumeWhitespace();
|
|
214
|
+
return token;
|
|
215
|
+
}
|
|
216
|
+
consumeTemplate() {
|
|
217
|
+
for (;;) {
|
|
218
|
+
this.consumeMatch(/^(?:[^`$\\]|\\.|\$(?!{))*/);
|
|
219
|
+
if (this.fnString[this.pos] === "`") {
|
|
220
|
+
this.pos++;
|
|
221
|
+
this.consumeWhitespace();
|
|
222
|
+
return "`";
|
|
223
|
+
}
|
|
224
|
+
if (this.fnString.substr(this.pos, 2) === "${") {
|
|
225
|
+
this.pos += 2;
|
|
226
|
+
this.consumeWhitespace();
|
|
227
|
+
if (this.consumeSyntaxUntil("{", "}"))
|
|
228
|
+
continue;
|
|
229
|
+
}
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
consumeWhitespace() {
|
|
234
|
+
this.consumeMatch(/^(?:\s|\/\/.*|\/\*[^]*?\*\/)*/);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
exports.FunctionParser = FunctionParser;
|
|
238
238
|
//# sourceMappingURL=function.js.map
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stringify = void 0;
|
|
4
|
-
const stringify_1 = require("./stringify");
|
|
5
|
-
const quote_1 = require("./quote");
|
|
6
|
-
const ROOT_SENTINEL = Symbol("root");
|
|
7
|
-
function stringify(value, replacer, indent, options = {}) {
|
|
8
|
-
const space = typeof indent === "string" ? indent : " ".repeat(indent || 0);
|
|
9
|
-
const path = [];
|
|
10
|
-
const stack = new Set();
|
|
11
|
-
const tracking = new Map();
|
|
12
|
-
const unpack = new Map();
|
|
13
|
-
let valueCount = 0;
|
|
14
|
-
const { maxDepth = 100, references = false, skipUndefinedProperties = false, maxValues = 100000, noneQuotsString = [] } = options;
|
|
15
|
-
const valueToString = replacerToString(replacer);
|
|
16
|
-
const onNext = (value, key) => {
|
|
17
|
-
if (++valueCount > maxValues)
|
|
18
|
-
return;
|
|
19
|
-
if (skipUndefinedProperties && value === undefined)
|
|
20
|
-
return;
|
|
21
|
-
if (path.length > maxDepth)
|
|
22
|
-
return;
|
|
23
|
-
if (key === undefined)
|
|
24
|
-
return valueToString(value, space, onNext, key, noneQuotsString);
|
|
25
|
-
path.push(key);
|
|
26
|
-
const result = builder(value, key === ROOT_SENTINEL ? undefined : key);
|
|
27
|
-
path.pop();
|
|
28
|
-
return result;
|
|
29
|
-
};
|
|
30
|
-
const builder = references
|
|
31
|
-
? (value, key) => {
|
|
32
|
-
if (value !== null &&
|
|
33
|
-
(typeof value === "object" ||
|
|
34
|
-
typeof value === "function" ||
|
|
35
|
-
typeof value === "symbol")) {
|
|
36
|
-
if (tracking.has(value)) {
|
|
37
|
-
unpack.set(path.slice(1), tracking.get(value));
|
|
38
|
-
return valueToString(undefined, space, onNext, key, noneQuotsString);
|
|
39
|
-
}
|
|
40
|
-
tracking.set(value, path.slice(1));
|
|
41
|
-
}
|
|
42
|
-
return valueToString(value, space, onNext, key, noneQuotsString);
|
|
43
|
-
}
|
|
44
|
-
: (value, key) => {
|
|
45
|
-
if (stack.has(value))
|
|
46
|
-
return;
|
|
47
|
-
stack.add(value);
|
|
48
|
-
const result = valueToString(value, space, onNext, key, noneQuotsString);
|
|
49
|
-
stack.delete(value);
|
|
50
|
-
return result;
|
|
51
|
-
};
|
|
52
|
-
const result = onNext(value, ROOT_SENTINEL);
|
|
53
|
-
if (unpack.size) {
|
|
54
|
-
const sp = space ? " " : "";
|
|
55
|
-
const eol = space ? "\n" : "";
|
|
56
|
-
let wrapper = `var x${sp}=${sp}${result};${eol}`;
|
|
57
|
-
for (const [key, value] of unpack.entries()) {
|
|
58
|
-
const keyPath = quote_1.stringifyPath(key, onNext);
|
|
59
|
-
const valuePath = quote_1.stringifyPath(value, onNext);
|
|
60
|
-
wrapper += `x${keyPath}${sp}=${sp}x${valuePath};${eol}`;
|
|
61
|
-
}
|
|
62
|
-
return `(function${sp}()${sp}{${eol}${wrapper}return x;${eol}}())`;
|
|
63
|
-
}
|
|
64
|
-
return result;
|
|
65
|
-
}
|
|
66
|
-
exports.stringify = stringify;
|
|
67
|
-
function replacerToString(replacer) {
|
|
68
|
-
if (!replacer)
|
|
69
|
-
return stringify_1.toString;
|
|
70
|
-
return (value, space, next, key, noneQuotsString) => {
|
|
71
|
-
return replacer(value, space, (value) => stringify_1.toString(value, space, next, key, noneQuotsString), key, noneQuotsString);
|
|
72
|
-
};
|
|
73
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stringify = void 0;
|
|
4
|
+
const stringify_1 = require("./stringify");
|
|
5
|
+
const quote_1 = require("./quote");
|
|
6
|
+
const ROOT_SENTINEL = Symbol("root");
|
|
7
|
+
function stringify(value, replacer, indent, options = {}) {
|
|
8
|
+
const space = typeof indent === "string" ? indent : " ".repeat(indent || 0);
|
|
9
|
+
const path = [];
|
|
10
|
+
const stack = new Set();
|
|
11
|
+
const tracking = new Map();
|
|
12
|
+
const unpack = new Map();
|
|
13
|
+
let valueCount = 0;
|
|
14
|
+
const { maxDepth = 100, references = false, skipUndefinedProperties = false, maxValues = 100000, noneQuotsString = [] } = options;
|
|
15
|
+
const valueToString = replacerToString(replacer);
|
|
16
|
+
const onNext = (value, key) => {
|
|
17
|
+
if (++valueCount > maxValues)
|
|
18
|
+
return;
|
|
19
|
+
if (skipUndefinedProperties && value === undefined)
|
|
20
|
+
return;
|
|
21
|
+
if (path.length > maxDepth)
|
|
22
|
+
return;
|
|
23
|
+
if (key === undefined)
|
|
24
|
+
return valueToString(value, space, onNext, key, noneQuotsString);
|
|
25
|
+
path.push(key);
|
|
26
|
+
const result = builder(value, key === ROOT_SENTINEL ? undefined : key);
|
|
27
|
+
path.pop();
|
|
28
|
+
return result;
|
|
29
|
+
};
|
|
30
|
+
const builder = references
|
|
31
|
+
? (value, key) => {
|
|
32
|
+
if (value !== null &&
|
|
33
|
+
(typeof value === "object" ||
|
|
34
|
+
typeof value === "function" ||
|
|
35
|
+
typeof value === "symbol")) {
|
|
36
|
+
if (tracking.has(value)) {
|
|
37
|
+
unpack.set(path.slice(1), tracking.get(value));
|
|
38
|
+
return valueToString(undefined, space, onNext, key, noneQuotsString);
|
|
39
|
+
}
|
|
40
|
+
tracking.set(value, path.slice(1));
|
|
41
|
+
}
|
|
42
|
+
return valueToString(value, space, onNext, key, noneQuotsString);
|
|
43
|
+
}
|
|
44
|
+
: (value, key) => {
|
|
45
|
+
if (stack.has(value))
|
|
46
|
+
return;
|
|
47
|
+
stack.add(value);
|
|
48
|
+
const result = valueToString(value, space, onNext, key, noneQuotsString);
|
|
49
|
+
stack.delete(value);
|
|
50
|
+
return result;
|
|
51
|
+
};
|
|
52
|
+
const result = onNext(value, ROOT_SENTINEL);
|
|
53
|
+
if (unpack.size) {
|
|
54
|
+
const sp = space ? " " : "";
|
|
55
|
+
const eol = space ? "\n" : "";
|
|
56
|
+
let wrapper = `var x${sp}=${sp}${result};${eol}`;
|
|
57
|
+
for (const [key, value] of unpack.entries()) {
|
|
58
|
+
const keyPath = quote_1.stringifyPath(key, onNext);
|
|
59
|
+
const valuePath = quote_1.stringifyPath(value, onNext);
|
|
60
|
+
wrapper += `x${keyPath}${sp}=${sp}x${valuePath};${eol}`;
|
|
61
|
+
}
|
|
62
|
+
return `(function${sp}()${sp}{${eol}${wrapper}return x;${eol}}())`;
|
|
63
|
+
}
|
|
64
|
+
return result;
|
|
65
|
+
}
|
|
66
|
+
exports.stringify = stringify;
|
|
67
|
+
function replacerToString(replacer) {
|
|
68
|
+
if (!replacer)
|
|
69
|
+
return stringify_1.toString;
|
|
70
|
+
return (value, space, next, key, noneQuotsString) => {
|
|
71
|
+
return replacer(value, space, (value) => stringify_1.toString(value, space, next, key, noneQuotsString), key, noneQuotsString);
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
74
|
//# sourceMappingURL=index.js.map
|