@flexem/fc-gui 3.0.0-alpha.16 → 3.0.0-alpha.160
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/CHANGELOG.md +492 -69
- package/README.md +4 -4
- package/assets/img/alert.svg +18 -18
- package/assets/img/black_first_page.png +0 -0
- package/assets/img/black_last_page.png +0 -0
- package/assets/img/black_next_page.png +0 -0
- package/assets/img/black_previous_page.png +0 -0
- package/assets/img/first_page.svg +19 -19
- package/assets/img/last_page.svg +19 -19
- package/assets/img/next_page.svg +14 -14
- package/assets/img/previous_page.svg +14 -14
- package/bundles/@flexem/fc-gui.umd.js +25472 -20764
- package/bundles/@flexem/fc-gui.umd.js.map +1 -1
- package/bundles/@flexem/fc-gui.umd.min.js +5 -5
- package/bundles/@flexem/fc-gui.umd.min.js.map +1 -1
- package/communication/index.d.ts +1 -1
- package/communication/index.js +1 -1
- package/communication/variable/index.d.ts +5 -5
- package/communication/variable/index.js +4 -4
- package/communication/variable/variable-communicator.d.ts +16 -12
- package/communication/variable/variable-definition.d.ts +10 -10
- package/communication/variable/variable-definition.js +14 -14
- package/communication/variable/variable-state-enum.d.ts +8 -7
- package/communication/variable/variable-state-enum.js +9 -8
- package/communication/variable/variable-state-enum.metadata.json +1 -1
- package/communication/variable/variable-state.d.ts +6 -6
- package/communication/variable/variable-state.js +6 -6
- package/communication/variable/variable-value.d.ts +11 -8
- package/communication/variable/variable-value.js +11 -8
- package/communication/variable/variable-value.metadata.json +1 -1
- package/config/alarm/alarm.store.d.ts +6 -0
- package/config/alarm/alarm.store.js +0 -0
- package/config/alarm/alarm.store.metadata.json +1 -0
- package/config/alarm/get-alarms-args.d.ts +12 -0
- package/config/alarm/get-alarms-args.js +13 -0
- package/config/alarm/get-alarms-args.metadata.json +1 -0
- package/config/alarm/index.d.ts +2 -0
- package/config/alarm/index.js +1 -0
- package/config/alarm/index.metadata.json +1 -0
- package/config/config-store.d.ts +17 -15
- package/config/graph/graph-result.d.ts +9 -9
- package/config/graph/graph-result.js +13 -13
- package/config/graph/graph-store.d.ts +9 -9
- package/config/graph/graph-type.d.ts +4 -4
- package/config/graph/graph-type.js +5 -5
- package/config/graph/graph.d.ts +6 -6
- package/config/graph/graph.js +6 -6
- package/config/gui-feature-config.d.ts +3 -0
- package/config/gui-feature-config.js +3 -0
- package/config/gui-feature-config.metadata.json +1 -0
- package/config/history-data/get-history-data-args.d.ts +22 -22
- package/config/history-data/get-history-data-args.js +21 -21
- package/config/history-data/historical-curve.time-range.d.ts +18 -18
- package/config/history-data/historical-curve.time-range.js +19 -19
- package/config/history-data/history-data-value.d.ts +6 -6
- package/config/history-data/history-data-value.js +6 -6
- package/config/history-data/history-data.model.d.ts +7 -7
- package/config/history-data/history-data.model.js +7 -7
- package/config/history-data/history-data.store.d.ts +10 -10
- package/config/history-data/index.d.ts +4 -4
- package/config/history-data/index.js +3 -3
- package/config/image/image-store.d.ts +6 -6
- package/config/index.d.ts +12 -10
- package/config/index.js +8 -6
- package/config/index.metadata.json +1 -1
- package/config/variable/get-variable-name-args.d.ts +6 -6
- package/config/variable/get-variable-name-args.js +7 -7
- package/config/variable/index.d.ts +2 -2
- package/config/variable/index.js +1 -1
- package/config/variable/variable-store.d.ts +8 -7
- package/config/view/view-store.d.ts +20 -20
- package/config/view/view.model.d.ts +4 -4
- package/config/view/view.model.js +5 -5
- package/core/index.d.ts +1 -1
- package/core/index.js +1 -1
- package/core/stringifying-map.d.ts +11 -11
- package/core/stringifying-map.js +24 -24
- package/core/stringifying-set.d.ts +10 -10
- package/core/stringifying-set.js +21 -21
- package/elements/air-quality/air-quality-element.d.ts +31 -0
- package/elements/air-quality/air-quality-element.js +194 -0
- package/elements/air-quality/air-quality-element.metadata.json +1 -0
- package/elements/alarm/alarm-element.d.ts +69 -0
- package/elements/alarm/alarm-element.js +497 -0
- package/elements/alarm/alarm-element.metadata.json +1 -0
- package/elements/bar-graph-element.d.ts +29 -21
- package/elements/bar-graph-element.js +244 -114
- package/elements/bar-graph-element.metadata.json +1 -1
- package/elements/base/base-element.d.ts +11 -11
- package/elements/base/base-element.js +9 -9
- package/elements/base/conditional-control-element.d.ts +16 -16
- package/elements/base/conditional-control-element.js +87 -87
- package/elements/base/conditional-display-element.d.ts +24 -24
- package/elements/base/conditional-display-element.js +86 -86
- package/elements/base/conditional-dynamic-display-element.d.ts +26 -26
- package/elements/base/conditional-dynamic-display-element.js +142 -142
- package/elements/base/conditional-enable-element.d.ts +21 -21
- package/elements/base/conditional-enable-element.js +100 -100
- package/elements/base/index.d.ts +3 -3
- package/elements/base/index.js +3 -3
- package/elements/base/readable-element.d.ts +20 -15
- package/elements/base/readable-element.js +122 -58
- package/elements/base/readable-element.metadata.json +1 -1
- package/elements/base/state-control-element.d.ts +26 -24
- package/elements/base/state-control-element.js +196 -180
- package/elements/character-display/character-display-element.d.ts +35 -35
- package/elements/character-display/character-display-element.js +312 -311
- package/elements/character-display/character-display-element.metadata.json +1 -1
- package/elements/datetime-display/datetime-display-element.d.ts +22 -21
- package/elements/datetime-display/datetime-display-element.js +140 -132
- package/elements/datetime-display/datetime-display-element.metadata.json +1 -1
- package/elements/datetime-display/time-zone-select-json.d.ts +8 -0
- package/elements/datetime-display/time-zone-select-json.js +558 -0
- package/elements/historical-curve/historical-curve-element-status.d.ts +6 -6
- package/elements/historical-curve/historical-curve-element-status.js +7 -7
- package/elements/historical-curve/historical-curve.element.d.ts +96 -59
- package/elements/historical-curve/historical-curve.element.js +990 -364
- package/elements/historical-curve/historical-curve.element.metadata.json +1 -1
- package/elements/historical-curve/historical-curve.element.option.d.ts +13 -13
- package/elements/historical-curve/historical-curve.time-period.d.ts +4 -4
- package/elements/main-element.d.ts +46 -45
- package/elements/main-element.js +373 -307
- package/elements/main-element.metadata.json +1 -1
- package/elements/meter-element.d.ts +26 -20
- package/elements/meter-element.js +139 -70
- package/elements/meter-element.metadata.json +1 -1
- package/elements/numerical-display/numerical-display-element.d.ts +60 -41
- package/elements/numerical-display/numerical-display-element.js +476 -361
- package/elements/numerical-display/numerical-display-element.metadata.json +1 -1
- package/elements/per-view-variable-communicator.d.ts +20 -17
- package/elements/per-view-variable-communicator.js +59 -45
- package/elements/per-view-variable-communicator.metadata.json +1 -1
- package/elements/pipe/pipe-element.d.ts +19 -19
- package/elements/pipe/pipe-element.js +141 -141
- package/elements/ring-graph/ring-graph-element.d.ts +31 -19
- package/elements/ring-graph/ring-graph-element.js +250 -89
- package/elements/ring-graph/ring-graph-element.metadata.json +1 -1
- package/elements/scroll-alarm/scroll-alarm-element.d.ts +74 -0
- package/elements/scroll-alarm/scroll-alarm-element.js +761 -0
- package/elements/scroll-alarm/scroll-alarm-element.metadata.json +1 -0
- package/elements/shared/graph/graph-state-element.d.ts +28 -27
- package/elements/shared/graph/graph-state-element.js +139 -110
- package/elements/shared/graph/graph-state-element.metadata.json +1 -1
- package/elements/shared/math-utils.d.ts +2 -2
- package/elements/shared/math-utils.js +14 -14
- package/elements/shared/text/text-element.d.ts +22 -8
- package/elements/shared/text/text-element.js +106 -68
- package/elements/shared/text/text-element.metadata.json +1 -1
- package/elements/shared/text/text-state-element.d.ts +58 -23
- package/elements/shared/text/text-state-element.js +286 -136
- package/elements/shared/text/text-state-element.metadata.json +1 -1
- package/elements/shared/text/text-state.model.d.ts +5 -5
- package/elements/shared/text/text-utils.d.ts +5 -5
- package/elements/shared/text/text-utils.js +45 -45
- package/elements/static-elements/hyperlink-element.d.ts +40 -14
- package/elements/static-elements/hyperlink-element.js +197 -48
- package/elements/static-elements/hyperlink-element.metadata.json +1 -1
- package/elements/static-elements/image-element.d.ts +14 -14
- package/elements/static-elements/image-element.js +41 -41
- package/elements/static-elements/text-element.d.ts +42 -16
- package/elements/static-elements/text-element.js +205 -55
- package/elements/static-elements/text-element.metadata.json +1 -1
- package/elements/switch-indicator-light/bit-indicator-light-operator.d.ts +21 -20
- package/elements/switch-indicator-light/bit-indicator-light-operator.js +85 -78
- package/elements/switch-indicator-light/bit-indicator-light-operator.metadata.json +1 -1
- package/elements/switch-indicator-light/bit-switch-operator.d.ts +19 -19
- package/elements/switch-indicator-light/bit-switch-operator.js +107 -107
- package/elements/switch-indicator-light/current-stateId-value.d.ts +6 -6
- package/elements/switch-indicator-light/current-stateId-value.js +8 -8
- package/elements/switch-indicator-light/indicator-light-operator.d.ts +8 -8
- package/elements/switch-indicator-light/switch-indicator-light-element.d.ts +48 -39
- package/elements/switch-indicator-light/switch-indicator-light-element.js +302 -251
- package/elements/switch-indicator-light/switch-indicator-light-element.metadata.json +1 -1
- package/elements/switch-indicator-light/switch-operator.d.ts +6 -6
- package/elements/switch-indicator-light/word-indicator-light-operator.d.ts +19 -18
- package/elements/switch-indicator-light/word-indicator-light-operator.js +72 -65
- package/elements/switch-indicator-light/word-indicator-light-operator.metadata.json +1 -1
- package/elements/switch-indicator-light/word-switch-operator.d.ts +18 -18
- package/elements/switch-indicator-light/word-switch-operator.js +75 -75
- package/elements/table/table-element.d.ts +9 -9
- package/elements/table/table-element.js +6 -6
- package/elements/vector-graphics/ellipse-element.d.ts +9 -9
- package/elements/vector-graphics/ellipse-element.js +6 -6
- package/elements/vector-graphics/poly-line-element.d.ts +12 -12
- package/elements/vector-graphics/poly-line-element.js +19 -19
- package/elements/vector-graphics/polygon-element.d.ts +12 -12
- package/elements/vector-graphics/polygon-element.js +19 -19
- package/elements/vector-graphics/rectangle-element.d.ts +9 -9
- package/elements/vector-graphics/rectangle-element.js +6 -6
- package/elements/vector-graphics/sector-element.d.ts +9 -9
- package/elements/vector-graphics/sector-element.js +6 -6
- package/elements/vector-graphics/straight-line-element.d.ts +12 -12
- package/elements/vector-graphics/straight-line-element.js +19 -19
- package/elements/video/video-element.d.ts +37 -27
- package/elements/video/video-element.js +258 -160
- package/elements/video/video-element.metadata.json +1 -1
- package/elements/view-operation/view-operation.element.d.ts +62 -36
- package/elements/view-operation/view-operation.element.js +348 -194
- package/elements/view-operation/view-operation.element.metadata.json +1 -1
- package/elements/weather/weater-element.d.ts +38 -38
- package/elements/weather/weater-element.js +237 -238
- package/gui/gui-context.d.ts +33 -16
- package/gui/gui-host.d.ts +50 -50
- package/gui/gui-host.js +173 -173
- package/gui/gui-view.d.ts +45 -42
- package/gui/gui-view.js +265 -204
- package/gui/gui-view.metadata.json +1 -1
- package/gui/gui.component.d.ts +45 -42
- package/gui/gui.component.html +3 -3
- package/gui/gui.component.js +240 -227
- package/gui/gui.component.metadata.json +1 -1
- package/gui/interfaces/gui-options.d.ts +6 -6
- package/gui.module.d.ts +2 -2
- package/gui.module.js +78 -78
- package/localization/index.d.ts +2 -2
- package/localization/index.js +2 -2
- package/localization/localization.service.d.ts +62 -51
- package/localization/localization.service.js +61 -50
- package/localization/localization.service.metadata.json +1 -1
- package/localization/localization.service.zh_CN.d.ts +2 -2
- package/localization/localization.service.zh_CN.js +59 -48
- package/localization/localization.service.zh_CN.metadata.json +1 -1
- package/logger/console-logger.service.d.ts +13 -13
- package/logger/console-logger.service.js +38 -38
- package/logger/index.d.ts +2 -2
- package/logger/index.js +2 -2
- package/logger/logger.service.d.ts +14 -14
- package/logger/logger.service.js +2 -2
- package/modal/alert/alert-modal.component.d.ts +10 -10
- package/modal/alert/alert-modal.component.html +11 -11
- package/modal/alert/alert-modal.component.js +38 -38
- package/modal/alert/alert-modal.component.less +59 -59
- package/modal/confirm-operation/confirm-operation-modal.component.d.ts +10 -10
- package/modal/confirm-operation/confirm-operation-modal.component.html +16 -16
- package/modal/confirm-operation/confirm-operation-modal.component.js +41 -41
- package/modal/confirm-operation/confirm-operation-modal.component.less +58 -58
- package/modal/verify-password/verify-password-modal.component.d.ts +18 -18
- package/modal/verify-password/verify-password-modal.component.html +22 -22
- package/modal/verify-password/verify-password-modal.component.js +66 -66
- package/modal/verify-password/verify-password-modal.component.less +65 -65
- package/modal/write-character/write-character-modal-args.d.ts +7 -7
- package/modal/write-character/write-character-modal-args.js +8 -8
- package/modal/write-character/write-character-modal.component.d.ts +25 -25
- package/modal/write-character/write-character-modal.component.html +21 -21
- package/modal/write-character/write-character-modal.component.js +74 -74
- package/modal/write-character/write-character-modal.component.less +49 -49
- package/modal/write-value/write-value-modal-args.d.ts +16 -12
- package/modal/write-value/write-value-modal-args.js +14 -12
- package/modal/write-value/write-value-modal-args.metadata.json +1 -1
- package/modal/write-value/write-value-modal.component.d.ts +60 -54
- package/modal/write-value/write-value-modal.component.html +26 -21
- package/modal/write-value/write-value-modal.component.js +279 -204
- package/modal/write-value/write-value-modal.component.less +56 -56
- package/modal/write-value/write-value-modal.component.metadata.json +1 -1
- package/modal/write-value/write-value-model-result.d.ts +3 -3
- package/model/air-quality/air-quality-info.d.ts +23 -0
- package/model/air-quality/air-quality-info.js +4 -0
- package/model/air-quality/air-quality-info.metadata.json +1 -0
- package/model/air-quality/air-quality.model.d.ts +7 -0
- package/model/air-quality/air-quality.model.js +0 -0
- package/model/air-quality/air-quality.model.metadata.json +1 -0
- package/model/alarm/alarm.model.d.ts +13 -0
- package/model/alarm/alarm.model.js +0 -0
- package/model/alarm/alarm.model.metadata.json +1 -0
- package/model/bar-graph/FontStyleData.d.ts +7 -7
- package/model/bar-graph/bar-graph-direction.d.ts +6 -6
- package/model/bar-graph/bar-graph-direction.js +7 -7
- package/model/bar-graph/bar-graph.d.ts +26 -22
- package/model/base/base-element-model.d.ts +5 -5
- package/model/base/base-element-model.js +2 -2
- package/model/base/conditional-control-model.d.ts +6 -6
- package/model/base/conditional-display-model.d.ts +9 -9
- package/model/base/conditional-dynamic-display-model.d.ts +13 -13
- package/model/base/conditional-enable-model.d.ts +9 -9
- package/model/base/font-setting-model.d.ts +29 -8
- package/model/base/font-setting-model.metadata.json +1 -1
- package/model/base/index.d.ts +7 -7
- package/model/base/index.js +1 -1
- package/model/base/readable-model.d.ts +14 -10
- package/model/base/security-model.d.ts +6 -6
- package/model/character-display/character-display.d.ts +19 -19
- package/model/datetime-display/date-format-type.d.ts +5 -5
- package/model/datetime-display/date-format-type.js +6 -6
- package/model/datetime-display/datetime-display-settings.d.ts +17 -17
- package/model/datetime-display/datetime-display.d.ts +21 -20
- package/model/datetime-display/datetime-separator-type.d.ts +6 -6
- package/model/datetime-display/datetime-separator-type.js +7 -7
- package/model/datetime-display/time-format-type.d.ts +4 -4
- package/model/datetime-display/time-format-type.js +5 -5
- package/model/historical-curve/curve-type.d.ts +5 -5
- package/model/historical-curve/curve-type.js +6 -6
- package/model/historical-curve/historical-curve-axis-settings.d.ts +17 -6
- package/model/historical-curve/historical-curve-axis-settings.js +5 -0
- package/model/historical-curve/historical-curve-axis-settings.metadata.json +1 -1
- package/model/historical-curve/historical-curve-chanel.model.d.ts +22 -14
- package/model/historical-curve/historical-curve.data-settings.d.ts +9 -9
- package/model/historical-curve/historical-curve.display-settings.d.ts +19 -19
- package/model/historical-curve/historical-curve.model.d.ts +8 -8
- package/model/historical-curve/index.d.ts +4 -4
- package/model/hyperlink/hyperlink.model.d.ts +8 -8
- package/model/image/image-fill-type.d.ts +4 -4
- package/model/image/image-fill-type.js +5 -5
- package/model/image/image.d.ts +9 -9
- package/model/index.d.ts +15 -15
- package/model/index.js +8 -8
- package/model/meter/meter.d.ts +17 -13
- package/model/numerical-display/index.d.ts +8 -8
- package/model/numerical-display/index.js +2 -2
- package/model/numerical-display/numerical-display.d.ts +29 -29
- package/model/numerical-display/numerical-operation-settings.d.ts +6 -6
- package/model/numerical-display/numerical-operation-type.d.ts +4 -4
- package/model/numerical-display/numerical-operation-type.js +5 -5
- package/model/numerical-display/numerical-operation.d.ts +19 -11
- package/model/numerical-display/proportional-conversion.d.ts +4 -4
- package/model/numerical-display/type-settings.d.ts +6 -6
- package/model/numerical-display/zoom.d.ts +4 -4
- package/model/pipe/flow-direction-type.d.ts +4 -4
- package/model/pipe/flow-direction-type.js +5 -5
- package/model/pipe/index.d.ts +2 -2
- package/model/pipe/index.js +1 -1
- package/model/pipe/pipe.d.ts +17 -17
- package/model/poly-line/poly-line-model.d.ts +4 -4
- package/model/polygon/polygon-model.d.ts +4 -4
- package/model/ring-graph/ring-graph.model.d.ts +33 -25
- package/model/scroll-alarm/scroll-alarm.model.d.ts +21 -0
- package/model/scroll-alarm/scroll-alarm.model.js +0 -0
- package/model/scroll-alarm/scroll-alarm.model.metadata.json +1 -0
- package/model/settings/background/view-background-fill-type.d.ts +5 -5
- package/model/settings/background/view-background-fill-type.js +6 -6
- package/model/settings/background/view-background.model.d.ts +8 -8
- package/model/settings/index.d.ts +3 -3
- package/model/settings/index.js +2 -2
- package/model/settings/popup/view-popup-backdrop-type.d.ts +4 -4
- package/model/settings/popup/view-popup-backdrop-type.js +5 -5
- package/model/settings/popup/view-popup-location-type.d.ts +4 -4
- package/model/settings/popup/view-popup-location-type.js +5 -5
- package/model/settings/popup/view-popup-setting.model.d.ts +17 -17
- package/model/settings/popup/view-popup-setting.model.js +2 -2
- package/model/settings/view-settings.model.d.ts +6 -6
- package/model/shared/alarm/alarm-range.model.d.ts +6 -6
- package/model/shared/arc.model.d.ts +4 -4
- package/model/shared/binary.d.ts +7 -7
- package/model/shared/binary.js +37 -37
- package/model/shared/condition/bit-condition-item-observer.d.ts +14 -14
- package/model/shared/condition/bit-condition-item-observer.js +53 -53
- package/model/shared/condition/bit-condition-logic.d.ts +4 -4
- package/model/shared/condition/bit-condition-logic.js +5 -5
- package/model/shared/condition/bit-condition-model.d.ts +8 -8
- package/model/shared/condition/bit-condition.d.ts +4 -4
- package/model/shared/condition/condition-control-result-value.d.ts +5 -5
- package/model/shared/condition/condition-helper.d.ts +4 -4
- package/model/shared/condition/condition-helper.js +22 -22
- package/model/shared/condition/condition-item-model.d.ts +10 -10
- package/model/shared/condition/condition-item-observer.d.ts +12 -12
- package/model/shared/condition/condition-item-observer.js +14 -14
- package/model/shared/condition/condition-items-observer.d.ts +5 -5
- package/model/shared/condition/condition-items-result-observer.d.ts +16 -16
- package/model/shared/condition/condition-items-result-observer.js +87 -87
- package/model/shared/condition/condition-model.d.ts +6 -6
- package/model/shared/condition/condition-type.d.ts +4 -4
- package/model/shared/condition/condition-type.js +5 -5
- package/model/shared/condition/convert-condition-model.d.ts +5 -5
- package/model/shared/condition/index.d.ts +11 -11
- package/model/shared/condition/index.js +4 -4
- package/model/shared/condition/relation-condition-result-state.d.ts +6 -6
- package/model/shared/condition/relation-condition-result-state.js +8 -8
- package/model/shared/condition/relation-condition-result.d.ts +8 -8
- package/model/shared/condition/relation-condition-result.js +7 -7
- package/model/shared/condition/relation-type.d.ts +5 -5
- package/model/shared/condition/relation-type.js +6 -6
- package/model/shared/condition/relational-operator.d.ts +8 -8
- package/model/shared/condition/relational-operator.js +9 -9
- package/model/shared/condition/variable-value-logic-model.d.ts +11 -11
- package/model/shared/condition/variable-value-type.d.ts +4 -4
- package/model/shared/condition/variable-value-type.js +5 -5
- package/model/shared/condition/word-condition-item-observer.d.ts +21 -21
- package/model/shared/condition/word-condition-item-observer.js +165 -165
- package/model/shared/condition/word-condition-model.d.ts +8 -8
- package/model/shared/condition/word-condition.d.ts +5 -5
- package/model/shared/data-type/display-data-type.d.ts +5 -5
- package/model/shared/data-type/display-data-type.js +6 -6
- package/model/shared/data-type/fbox-data-type.d.ts +15 -15
- package/model/shared/data-type/fbox-data-type.js +16 -16
- package/model/shared/data-type/fcloud-data-Type.d.ts +8 -8
- package/model/shared/data-type/fcloud-data-Type.js +9 -9
- package/model/shared/dynamic-display/dynamic-behavior-type.d.ts +5 -5
- package/model/shared/dynamic-display/dynamic-behavior-type.js +6 -6
- package/model/shared/dynamic-display/dynamic-display-behavior-model.d.ts +5 -5
- package/model/shared/dynamic-display/dynamic-display-model.d.ts +10 -10
- package/model/shared/dynamic-display/dynamic-display-result-model.d.ts +7 -7
- package/model/shared/dynamic-display/dynamic-display-result-model.js +7 -7
- package/model/shared/dynamic-display/dynamic-display.d.ts +11 -11
- package/model/shared/dynamic-display/dynamic-display.js +35 -35
- package/model/shared/graph/custom-style.d.ts +14 -14
- package/model/shared/graph/graph-setting.d.ts +10 -10
- package/model/shared/index.d.ts +8 -8
- package/model/shared/index.js +3 -3
- package/model/shared/point.model.d.ts +4 -4
- package/model/shared/rotation/rotation-behavior-model.d.ts +4 -4
- package/model/shared/rotation/rotation-behavior.d.ts +9 -9
- package/model/shared/rotation/rotation-behavior.js +101 -101
- package/model/shared/rotation/rotation-direction-type.d.ts +4 -4
- package/model/shared/rotation/rotation-direction-type.js +5 -5
- package/model/shared/rotation/rotation-model.d.ts +14 -14
- package/model/shared/rotation/rotation-observer-model.d.ts +4 -4
- package/model/shared/rotation/rotation-observer.d.ts +11 -11
- package/model/shared/rotation/rotation-observer.js +28 -28
- package/model/shared/scale/scale-mark.model.d.ts +6 -6
- package/model/shared/scale/scale-model.d.ts +20 -20
- package/model/shared/size.model.d.ts +7 -7
- package/model/shared/size.model.js +12 -12
- package/model/shared/state/index.d.ts +1 -1
- package/model/shared/state/index.js +1 -1
- package/model/shared/state/state.d.ts +9 -8
- package/model/shared/state/state.js +10 -9
- package/model/shared/state/state.metadata.json +1 -1
- package/model/shared/text/font.d.ts +10 -10
- package/model/shared/text/index.d.ts +2 -2
- package/model/shared/text/text.d.ts +8 -5
- package/model/shared/translation/translation-behavior-model.d.ts +4 -4
- package/model/shared/translation/translation-behavior.d.ts +12 -12
- package/model/shared/translation/translation-behavior.js +63 -63
- package/model/shared/translation/translation-direction-type.d.ts +4 -4
- package/model/shared/translation/translation-direction-type.js +5 -5
- package/model/shared/translation/translation-model.d.ts +12 -12
- package/model/shared/translation/translation-observer-model.d.ts +4 -4
- package/model/shared/translation/translation-observer.d.ts +10 -10
- package/model/shared/translation/translation-observer.js +27 -27
- package/model/shared/variable/variable-identifier.model.d.ts +5 -5
- package/model/shared/variable/variable-name.model.d.ts +5 -5
- package/model/straight-line/straight-line-model.d.ts +4 -4
- package/model/switch-indicator-light/bit-indicator-light-settings.d.ts +8 -8
- package/model/switch-indicator-light/bit-switch-operation.d.ts +6 -6
- package/model/switch-indicator-light/bit-switch-operation.js +7 -7
- package/model/switch-indicator-light/bit-switch-settings.d.ts +11 -11
- package/model/switch-indicator-light/fault-flicker.d.ts +5 -5
- package/model/switch-indicator-light/flicker.d.ts +5 -5
- package/model/switch-indicator-light/flicker.js +6 -6
- package/model/switch-indicator-light/index.d.ts +14 -14
- package/model/switch-indicator-light/index.js +5 -5
- package/model/switch-indicator-light/indicator-light-fault-flicker.d.ts +5 -5
- package/model/switch-indicator-light/indicator-light-settings.d.ts +7 -7
- package/model/switch-indicator-light/indicator-light-type.d.ts +4 -4
- package/model/switch-indicator-light/indicator-light-type.js +5 -5
- package/model/switch-indicator-light/switch-indicator-light.d.ts +35 -33
- package/model/switch-indicator-light/switch-indicator-state.d.ts +8 -8
- package/model/switch-indicator-light/switch-settings.d.ts +7 -7
- package/model/switch-indicator-light/switch-type.d.ts +4 -4
- package/model/switch-indicator-light/switch-type.js +5 -5
- package/model/switch-indicator-light/word-indicator-light-settings.d.ts +6 -6
- package/model/switch-indicator-light/word-switch-operation.d.ts +5 -5
- package/model/switch-indicator-light/word-switch-operation.js +6 -6
- package/model/switch-indicator-light/word-switch-settings.d.ts +13 -13
- package/model/table/table-model.d.ts +9 -9
- package/model/text/text.model.d.ts +7 -7
- package/model/video/video.model.d.ts +8 -8
- package/model/view-operation/index.d.ts +2 -2
- package/model/view-operation/index.js +1 -1
- package/model/view-operation/view-operation-element.model.d.ts +25 -19
- package/model/view-operation/view-operation-type.d.ts +18 -18
- package/model/view-operation/view-operation-type.js +19 -19
- package/model/weather/weather-info.d.ts +11 -11
- package/model/weather/weather-info.js +2 -2
- package/model/weather/weather.model.d.ts +7 -7
- package/package.json +1 -1
- package/public_api.d.ts +14 -14
- package/public_api.js +12 -11
- package/remote/communication/variable/remote-variable-communicator.d.ts +59 -30
- package/remote/communication/variable/remote-variable-communicator.js +395 -215
- package/remote/communication/variable/remote-variable-communicator.metadata.json +1 -1
- package/remote/communication/variable/remote-variable-protocol.d.ts +18 -13
- package/remote/config/graph/get-released-graph-state-result.d.ts +6 -6
- package/remote/config/graph/get-released-graph-states.d.ts +4 -4
- package/remote/config/graph/graph-state-key.d.ts +6 -6
- package/remote/config/graph/graph-state-result.d.ts +5 -5
- package/remote/config/graph/graph-state.d.ts +4 -4
- package/remote/config/graph/remote-graph-protocol.d.ts +11 -11
- package/remote/config/graph/remote-graph-store.d.ts +16 -16
- package/remote/config/graph/remote-graph-store.js +101 -101
- package/remote/config/image/remote-image-protocol.d.ts +4 -4
- package/remote/config/image/remote-image-store.d.ts +8 -8
- package/remote/config/image/remote-image-store.js +19 -19
- package/remote/config/view/remote-view-protocol.d.ts +8 -8
- package/remote/config/view/remote-view-store.d.ts +13 -13
- package/remote/config/view/remote-view-store.js +39 -39
- package/remote/config/view/view-result.d.ts +4 -4
- package/remote/index.d.ts +14 -14
- package/remote/index.js +4 -4
- package/security/index.d.ts +1 -1
- package/security/security-checker.d.ts +3 -3
- package/service/index.d.ts +8 -4
- package/service/index.js +1 -0
- package/service/index.metadata.json +1 -1
- package/service/language.service.d.ts +37 -0
- package/service/language.service.js +0 -0
- package/service/language.service.metadata.json +1 -0
- package/service/operation-record/create-operation-record-args.d.ts +5 -5
- package/service/operation-record/index.d.ts +3 -3
- package/service/operation-record/operation-record.service.d.ts +4 -4
- package/service/operation-record/variable-option.model.d.ts +5 -5
- package/service/permission-checker.d.ts +3 -3
- package/service/released-variable/index.d.ts +1 -0
- package/service/released-variable/index.js +0 -0
- package/service/released-variable/index.metadata.json +1 -0
- package/service/released-variable/released-variable.service.d.ts +4 -0
- package/service/released-variable/released-variable.service.js +0 -0
- package/service/released-variable/released-variable.service.metadata.json +1 -0
- package/service/system-text-library.service.d.ts +77 -0
- package/service/system-text-library.service.js +29 -0
- package/service/system-text-library.service.metadata.json +1 -0
- package/service/text-library.service.d.ts +49 -0
- package/service/text-library.service.js +0 -0
- package/service/text-library.service.metadata.json +1 -0
- package/service/video/index.d.ts +2 -2
- package/service/video/video-url.d.ts +4 -4
- package/service/video/video.service.d.ts +4 -4
- package/service/weather.service.d.ts +4 -3
- package/settings/display-mode.d.ts +10 -10
- package/settings/display-mode.js +11 -11
- package/settings/global-settings.d.ts +7 -7
- package/settings/global-settings.js +13 -13
- package/settings/index.d.ts +3 -3
- package/settings/index.js +3 -3
- package/settings/view-resize-mode.d.ts +10 -10
- package/settings/view-resize-mode.js +11 -11
- package/shared/config-is-empty-error.d.ts +3 -3
- package/shared/config-is-empty-error.js +7 -7
- package/shared/disposable.d.ts +3 -3
- package/shared/graph-extended-style.d.ts +4 -4
- package/shared/gui-consts.d.ts +33 -30
- package/shared/gui-consts.js +33 -30
- package/shared/gui-consts.metadata.json +1 -1
- package/shared/index.d.ts +5 -5
- package/shared/index.js +3 -3
- package/shared/operation-helper.d.ts +6 -6
- package/shared/operation-helper.js +38 -38
- package/utils/access-permission.d.ts +5 -5
- package/utils/access-permission.js +6 -6
- package/utils/access-permission.service.d.ts +11 -11
- package/utils/access-permission.service.js +30 -30
- package/utils/auto-focus.directive.d.ts +6 -6
- package/utils/auto-focus.directive.js +27 -27
- package/utils/bs-modal-drag.directive.d.ts +7 -7
- package/utils/bs-modal-drag.directive.js +38 -38
- package/utils/data-type/data-type.service.d.ts +57 -57
- package/utils/data-type/data-type.service.js +155 -155
- package/utils/data-type/fbox-data-type.service.d.ts +54 -54
- package/utils/data-type/fbox-data-type.service.js +300 -260
- package/utils/data-type/fcloud-data-type.service.d.ts +55 -55
- package/utils/data-type/fcloud-data-type.service.js +203 -203
- package/utils/fraction-digit.service.d.ts +41 -41
- package/utils/fraction-digit.service.js +133 -133
- package/utils/graph-util.d.ts +5 -5
- package/utils/graph-util.js +19 -19
- package/utils/guid.d.ts +6 -6
- package/utils/guid.js +27 -27
- package/utils/index.d.ts +7 -7
- package/utils/index.js +7 -7
- package/utils/numerical-operation-type.d.ts +4 -4
- package/utils/numerical-operation-type.js +5 -5
- package/utils/numerical-operation.service.d.ts +17 -17
- package/utils/numerical-operation.service.js +201 -177
- package/utils/variable-util.d.ts +5 -5
- package/utils/variable-util.js +11 -11
- package/view/popup-view.service.d.ts +7 -7
- package/view/view.service.d.ts +6 -6
- package/view/view.service.js +20 -20
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { Localization } from '../../localization';
|
|
4
|
-
import { SecurityChecker } from '../../security';
|
|
5
|
-
export declare class VerifyPasswordModalComponent implements OnInit {
|
|
6
|
-
localization: Localization;
|
|
7
|
-
private _onClosed;
|
|
8
|
-
get onClosed(): Observable<Boolean>;
|
|
9
|
-
passwordError: boolean;
|
|
10
|
-
password: string;
|
|
11
|
-
securityChecker: SecurityChecker;
|
|
12
|
-
validationErrorText: string;
|
|
13
|
-
constructor(localization: Localization);
|
|
14
|
-
ngOnInit(): void;
|
|
15
|
-
validate(): void;
|
|
16
|
-
checkSecurity(): void;
|
|
17
|
-
close(modalResult?: boolean): void;
|
|
18
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Localization } from '../../localization';
|
|
4
|
+
import { SecurityChecker } from '../../security';
|
|
5
|
+
export declare class VerifyPasswordModalComponent implements OnInit {
|
|
6
|
+
localization: Localization;
|
|
7
|
+
private _onClosed;
|
|
8
|
+
get onClosed(): Observable<Boolean>;
|
|
9
|
+
passwordError: boolean;
|
|
10
|
+
password: string;
|
|
11
|
+
securityChecker: SecurityChecker;
|
|
12
|
+
validationErrorText: string;
|
|
13
|
+
constructor(localization: Localization);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
validate(): void;
|
|
16
|
+
checkSecurity(): void;
|
|
17
|
+
close(modalResult?: boolean): void;
|
|
18
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<form #verifyPasswordForm="ngForm" novalidate (ngSubmit)="checkSecurity()" bs-modal-drag>
|
|
2
|
-
<div class="modal-header">
|
|
3
|
-
<h4 class="modal-title">
|
|
4
|
-
<span>{{localization.passwordVerify}}</span>
|
|
5
|
-
</h4>
|
|
6
|
-
<button type="button" class="close pull-right" aria-label="Close" (click)="close()">
|
|
7
|
-
<span aria-hidden="true">×</span>
|
|
8
|
-
</button>
|
|
9
|
-
</div>
|
|
10
|
-
<div class="modal-body">
|
|
11
|
-
<span class="password-span">{{localization.password}}:
|
|
12
|
-
</span>
|
|
13
|
-
<input type="password" name="password" autoFocus class="form-control element-password" [(ngModel)]="password" (keyup)="validate()"
|
|
14
|
-
autocomplete="off">
|
|
15
|
-
<span class="help-block text-danger" [hidden]="!passwordError">{{validationErrorText}}</span>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="modal-footer">
|
|
18
|
-
<button type="button" class="btn md-skip btn-cancel" (click)="close()">{{localization.cancel}}
|
|
19
|
-
</button>
|
|
20
|
-
<button type="submit" class="btn md-skip btn-primary" [disabled]="passwordError">{{localization.submit}}</button>
|
|
21
|
-
</div>
|
|
22
|
-
</form>
|
|
1
|
+
<form #verifyPasswordForm="ngForm" novalidate (ngSubmit)="checkSecurity()" bs-modal-drag>
|
|
2
|
+
<div class="modal-header">
|
|
3
|
+
<h4 class="modal-title">
|
|
4
|
+
<span>{{localization.passwordVerify}}</span>
|
|
5
|
+
</h4>
|
|
6
|
+
<button type="button" class="close pull-right" aria-label="Close" (click)="close()">
|
|
7
|
+
<span aria-hidden="true">×</span>
|
|
8
|
+
</button>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="modal-body">
|
|
11
|
+
<span class="password-span">{{localization.password}}:
|
|
12
|
+
</span>
|
|
13
|
+
<input type="password" name="password" autoFocus class="form-control element-password" [(ngModel)]="password" (keyup)="validate()"
|
|
14
|
+
autocomplete="off">
|
|
15
|
+
<span class="help-block text-danger" [hidden]="!passwordError">{{validationErrorText}}</span>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="modal-footer">
|
|
18
|
+
<button type="button" class="btn md-skip btn-cancel" (click)="close()">{{localization.cancel}}
|
|
19
|
+
</button>
|
|
20
|
+
<button type="submit" class="btn md-skip btn-primary" [disabled]="passwordError">{{localization.submit}}</button>
|
|
21
|
+
</div>
|
|
22
|
+
</form>
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
-
};
|
|
13
|
-
import { Component, Inject } from '@angular/core';
|
|
14
|
-
import { Subject } from 'rxjs';
|
|
15
|
-
import { isNil } from 'lodash';
|
|
16
|
-
import { LOCALIZATION } from '../../localization';
|
|
17
|
-
let VerifyPasswordModalComponent = class VerifyPasswordModalComponent {
|
|
18
|
-
constructor(localization) {
|
|
19
|
-
this.localization = localization;
|
|
20
|
-
this._onClosed = new Subject();
|
|
21
|
-
this.passwordError = false;
|
|
22
|
-
}
|
|
23
|
-
get onClosed() {
|
|
24
|
-
return this._onClosed;
|
|
25
|
-
}
|
|
26
|
-
ngOnInit() {
|
|
27
|
-
this.validate();
|
|
28
|
-
}
|
|
29
|
-
validate() {
|
|
30
|
-
if (isNil(this.password) || '' === this.password.trim()) {
|
|
31
|
-
this.passwordError = true;
|
|
32
|
-
this.validationErrorText = this.localization.passwordRequired;
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
this.passwordError = false;
|
|
36
|
-
this.validationErrorText = '';
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
checkSecurity() {
|
|
40
|
-
this.securityChecker.isValid(this.password).then(isValid => {
|
|
41
|
-
if (isValid) {
|
|
42
|
-
this.close(true);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
this.passwordError = true;
|
|
46
|
-
this.validationErrorText = this.localization.passwordToolTip;
|
|
47
|
-
}
|
|
48
|
-
}).catch(() => {
|
|
49
|
-
throw new Error('Failure of the checkSecurity');
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
close(modalResult) {
|
|
53
|
-
this._onClosed.next(modalResult);
|
|
54
|
-
this._onClosed.complete();
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
VerifyPasswordModalComponent = __decorate([
|
|
58
|
-
Component({
|
|
59
|
-
selector: 'verify-password',
|
|
60
|
-
template: "<form #verifyPasswordForm=\"ngForm\" novalidate (ngSubmit)=\"checkSecurity()\" bs-modal-drag> <div class=\"modal-header\"> <h4 class=\"modal-title\"> <span>{{localization.passwordVerify}}</span> </h4> <button type=\"button\" class=\"close pull-right\" aria-label=\"Close\" (click)=\"close()\"> <span aria-hidden=\"true\">×</span> </button> </div> <div class=\"modal-body\"> <span class=\"password-span\">{{localization.password}}: </span> <input type=\"password\" name=\"password\" autoFocus class=\"form-control element-password\" [(ngModel)]=\"password\" (keyup)=\"validate()\" autocomplete=\"off\"> <span class=\"help-block text-danger\" [hidden]=\"!passwordError\">{{validationErrorText}}</span> </div> <div class=\"modal-footer\"> <button type=\"button\" class=\"btn md-skip btn-cancel\" (click)=\"close()\">{{localization.cancel}} </button> <button type=\"submit\" class=\"btn md-skip btn-primary\" [disabled]=\"passwordError\">{{localization.submit}}</button> </div> </form> ",
|
|
61
|
-
styles: [".modal-header { padding: 10px; border-color: transparent; } .modal-body { position: relative; padding: 0px 5px !important; padding-top: 10px !important; } .modal-title { display: unset; margin-left: -6px; font-size: 16px !important; } .form-control { margin: 0 5%; float: none; width: 90%; } .modal-footer { padding: 10px 4px 20px 5px !important; text-align: right; border-color: transparent; color: #fff; } .text-danger { display: block; color: #ed6b75; font-size: 14px; margin: 5px 0px 0px 15px; } .btn-primary { color: #fff; height: 32px; margin-right: 10px; line-height: 0px } .password-span { color: #7f939e; font-size: 14px; margin-left: 15px; } .btn-cancel { color: #fff; height: 32px; min-width: 71px; margin-right: 6px; background-color: #dddddd; line-height: 0px } .element-password { padding-left: 8px; height: 32px; min-width: 71px; margin-left: 16px; } "]
|
|
62
|
-
}),
|
|
63
|
-
__param(0, Inject(LOCALIZATION)),
|
|
64
|
-
__metadata("design:paramtypes", [Object])
|
|
65
|
-
], VerifyPasswordModalComponent);
|
|
66
|
-
export { VerifyPasswordModalComponent };
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { Component, Inject } from '@angular/core';
|
|
14
|
+
import { Subject } from 'rxjs';
|
|
15
|
+
import { isNil } from 'lodash';
|
|
16
|
+
import { LOCALIZATION } from '../../localization';
|
|
17
|
+
let VerifyPasswordModalComponent = class VerifyPasswordModalComponent {
|
|
18
|
+
constructor(localization) {
|
|
19
|
+
this.localization = localization;
|
|
20
|
+
this._onClosed = new Subject();
|
|
21
|
+
this.passwordError = false;
|
|
22
|
+
}
|
|
23
|
+
get onClosed() {
|
|
24
|
+
return this._onClosed;
|
|
25
|
+
}
|
|
26
|
+
ngOnInit() {
|
|
27
|
+
this.validate();
|
|
28
|
+
}
|
|
29
|
+
validate() {
|
|
30
|
+
if (isNil(this.password) || '' === this.password.trim()) {
|
|
31
|
+
this.passwordError = true;
|
|
32
|
+
this.validationErrorText = this.localization.passwordRequired;
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
this.passwordError = false;
|
|
36
|
+
this.validationErrorText = '';
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
checkSecurity() {
|
|
40
|
+
this.securityChecker.isValid(this.password).then(isValid => {
|
|
41
|
+
if (isValid) {
|
|
42
|
+
this.close(true);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
this.passwordError = true;
|
|
46
|
+
this.validationErrorText = this.localization.passwordToolTip;
|
|
47
|
+
}
|
|
48
|
+
}).catch(() => {
|
|
49
|
+
throw new Error('Failure of the checkSecurity');
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
close(modalResult) {
|
|
53
|
+
this._onClosed.next(modalResult);
|
|
54
|
+
this._onClosed.complete();
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
VerifyPasswordModalComponent = __decorate([
|
|
58
|
+
Component({
|
|
59
|
+
selector: 'verify-password',
|
|
60
|
+
template: "<form #verifyPasswordForm=\"ngForm\" novalidate (ngSubmit)=\"checkSecurity()\" bs-modal-drag> <div class=\"modal-header\"> <h4 class=\"modal-title\"> <span>{{localization.passwordVerify}}</span> </h4> <button type=\"button\" class=\"close pull-right\" aria-label=\"Close\" (click)=\"close()\"> <span aria-hidden=\"true\">×</span> </button> </div> <div class=\"modal-body\"> <span class=\"password-span\">{{localization.password}}: </span> <input type=\"password\" name=\"password\" autoFocus class=\"form-control element-password\" [(ngModel)]=\"password\" (keyup)=\"validate()\" autocomplete=\"off\"> <span class=\"help-block text-danger\" [hidden]=\"!passwordError\">{{validationErrorText}}</span> </div> <div class=\"modal-footer\"> <button type=\"button\" class=\"btn md-skip btn-cancel\" (click)=\"close()\">{{localization.cancel}} </button> <button type=\"submit\" class=\"btn md-skip btn-primary\" [disabled]=\"passwordError\">{{localization.submit}}</button> </div> </form> ",
|
|
61
|
+
styles: [".modal-header { padding: 10px; border-color: transparent; } .modal-body { position: relative; padding: 0px 5px !important; padding-top: 10px !important; } .modal-title { display: unset; margin-left: -6px; font-size: 16px !important; } .form-control { margin: 0 5%; float: none; width: 90%; } .modal-footer { padding: 10px 4px 20px 5px !important; text-align: right; border-color: transparent; color: #fff; } .text-danger { display: block; color: #ed6b75; font-size: 14px; margin: 5px 0px 0px 15px; } .btn-primary { color: #fff; height: 32px; margin-right: 10px; line-height: 0px } .password-span { color: #7f939e; font-size: 14px; margin-left: 15px; } .btn-cancel { color: #fff; height: 32px; min-width: 71px; margin-right: 6px; background-color: #dddddd; line-height: 0px } .element-password { padding-left: 8px; height: 32px; min-width: 71px; margin-left: 16px; } "]
|
|
62
|
+
}),
|
|
63
|
+
__param(0, Inject(LOCALIZATION)),
|
|
64
|
+
__metadata("design:paramtypes", [Object])
|
|
65
|
+
], VerifyPasswordModalComponent);
|
|
66
|
+
export { VerifyPasswordModalComponent };
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
.modal-header {
|
|
2
|
-
padding: 10px;
|
|
3
|
-
border-color: transparent;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.modal-body {
|
|
7
|
-
position: relative;
|
|
8
|
-
padding: 0px 5px !important;
|
|
9
|
-
padding-top: 10px !important;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.modal-title {
|
|
13
|
-
display: unset;
|
|
14
|
-
margin-left: -6px;
|
|
15
|
-
font-size: 16px !important;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.form-control {
|
|
19
|
-
margin: 0 5%;
|
|
20
|
-
float: none;
|
|
21
|
-
width: 90%;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.modal-footer {
|
|
25
|
-
padding: 10px 4px 20px 5px !important;
|
|
26
|
-
text-align: right;
|
|
27
|
-
border-color: transparent;
|
|
28
|
-
color: #fff;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.text-danger {
|
|
32
|
-
display: block;
|
|
33
|
-
color: #ed6b75;
|
|
34
|
-
font-size: 14px;
|
|
35
|
-
margin: 5px 0px 0px 15px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.btn-primary {
|
|
39
|
-
color: #fff;
|
|
40
|
-
height: 32px;
|
|
41
|
-
margin-right: 10px;
|
|
42
|
-
line-height: 0px
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.password-span {
|
|
46
|
-
color: #7f939e;
|
|
47
|
-
font-size: 14px;
|
|
48
|
-
margin-left: 15px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.btn-cancel {
|
|
52
|
-
color: #fff;
|
|
53
|
-
height: 32px;
|
|
54
|
-
min-width: 71px;
|
|
55
|
-
margin-right: 6px;
|
|
56
|
-
background-color: #dddddd;
|
|
57
|
-
line-height: 0px
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.element-password {
|
|
61
|
-
padding-left: 8px;
|
|
62
|
-
height: 32px;
|
|
63
|
-
min-width: 71px;
|
|
64
|
-
margin-left: 16px;
|
|
65
|
-
}
|
|
1
|
+
.modal-header {
|
|
2
|
+
padding: 10px;
|
|
3
|
+
border-color: transparent;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.modal-body {
|
|
7
|
+
position: relative;
|
|
8
|
+
padding: 0px 5px !important;
|
|
9
|
+
padding-top: 10px !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.modal-title {
|
|
13
|
+
display: unset;
|
|
14
|
+
margin-left: -6px;
|
|
15
|
+
font-size: 16px !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.form-control {
|
|
19
|
+
margin: 0 5%;
|
|
20
|
+
float: none;
|
|
21
|
+
width: 90%;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.modal-footer {
|
|
25
|
+
padding: 10px 4px 20px 5px !important;
|
|
26
|
+
text-align: right;
|
|
27
|
+
border-color: transparent;
|
|
28
|
+
color: #fff;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.text-danger {
|
|
32
|
+
display: block;
|
|
33
|
+
color: #ed6b75;
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
margin: 5px 0px 0px 15px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.btn-primary {
|
|
39
|
+
color: #fff;
|
|
40
|
+
height: 32px;
|
|
41
|
+
margin-right: 10px;
|
|
42
|
+
line-height: 0px
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.password-span {
|
|
46
|
+
color: #7f939e;
|
|
47
|
+
font-size: 14px;
|
|
48
|
+
margin-left: 15px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.btn-cancel {
|
|
52
|
+
color: #fff;
|
|
53
|
+
height: 32px;
|
|
54
|
+
min-width: 71px;
|
|
55
|
+
margin-right: 6px;
|
|
56
|
+
background-color: #dddddd;
|
|
57
|
+
line-height: 0px
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.element-password {
|
|
61
|
+
padding-left: 8px;
|
|
62
|
+
height: 32px;
|
|
63
|
+
min-width: 71px;
|
|
64
|
+
margin-left: 16px;
|
|
65
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare class WriteCharacterModalArgs {
|
|
2
|
-
variableName: string;
|
|
3
|
-
isPassword: boolean;
|
|
4
|
-
charCount: number;
|
|
5
|
-
originValue: any;
|
|
6
|
-
constructor(variableName: string, isPassword: boolean, charCount: number, originValue: any);
|
|
7
|
-
}
|
|
1
|
+
export declare class WriteCharacterModalArgs {
|
|
2
|
+
variableName: string;
|
|
3
|
+
isPassword: boolean;
|
|
4
|
+
charCount: number;
|
|
5
|
+
originValue: any;
|
|
6
|
+
constructor(variableName: string, isPassword: boolean, charCount: number, originValue: any);
|
|
7
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export class WriteCharacterModalArgs {
|
|
2
|
-
constructor(variableName, isPassword, charCount, originValue) {
|
|
3
|
-
this.variableName = variableName;
|
|
4
|
-
this.isPassword = isPassword;
|
|
5
|
-
this.charCount = charCount;
|
|
6
|
-
this.originValue = originValue;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
export class WriteCharacterModalArgs {
|
|
2
|
+
constructor(variableName, isPassword, charCount, originValue) {
|
|
3
|
+
this.variableName = variableName;
|
|
4
|
+
this.isPassword = isPassword;
|
|
5
|
+
this.charCount = charCount;
|
|
6
|
+
this.originValue = originValue;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { Localization } from '../../localization';
|
|
4
|
-
import { WriteValueModelResult } from '../write-value/write-value-model-result';
|
|
5
|
-
import { WriteCharacterModalArgs } from './write-character-modal-args';
|
|
6
|
-
export declare class WriteCharacterModalComponent implements OnInit {
|
|
7
|
-
localization: Localization;
|
|
8
|
-
private _onClosed;
|
|
9
|
-
get onClosed(): Observable<WriteValueModelResult>;
|
|
10
|
-
args: WriteCharacterModalArgs;
|
|
11
|
-
value: string;
|
|
12
|
-
variableName: string;
|
|
13
|
-
isPassword: boolean;
|
|
14
|
-
charCount: number;
|
|
15
|
-
validationError: boolean;
|
|
16
|
-
validationErrorText: string;
|
|
17
|
-
get invalidErrorText(): string;
|
|
18
|
-
constructor(localization: Localization);
|
|
19
|
-
ngOnInit(): void;
|
|
20
|
-
validate(): void;
|
|
21
|
-
private showValidationErrorInfo;
|
|
22
|
-
private hideValidationErrorInfo;
|
|
23
|
-
save(): void;
|
|
24
|
-
close(modalResult?: WriteValueModelResult): void;
|
|
25
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Localization } from '../../localization';
|
|
4
|
+
import { WriteValueModelResult } from '../write-value/write-value-model-result';
|
|
5
|
+
import { WriteCharacterModalArgs } from './write-character-modal-args';
|
|
6
|
+
export declare class WriteCharacterModalComponent implements OnInit {
|
|
7
|
+
localization: Localization;
|
|
8
|
+
private _onClosed;
|
|
9
|
+
get onClosed(): Observable<WriteValueModelResult>;
|
|
10
|
+
args: WriteCharacterModalArgs;
|
|
11
|
+
value: string;
|
|
12
|
+
variableName: string;
|
|
13
|
+
isPassword: boolean;
|
|
14
|
+
charCount: number;
|
|
15
|
+
validationError: boolean;
|
|
16
|
+
validationErrorText: string;
|
|
17
|
+
get invalidErrorText(): string;
|
|
18
|
+
constructor(localization: Localization);
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
validate(): void;
|
|
21
|
+
private showValidationErrorInfo;
|
|
22
|
+
private hideValidationErrorInfo;
|
|
23
|
+
save(): void;
|
|
24
|
+
close(modalResult?: WriteValueModelResult): void;
|
|
25
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
<form #writeValueForm="ngForm" novalidate (ngSubmit)="save()" bs-modal-drag>
|
|
2
|
-
<div class="modal-header">
|
|
3
|
-
<h4 class="modal-title">
|
|
4
|
-
<span>{{localization.setting}}</span>
|
|
5
|
-
<span>{{variableName}}</span>
|
|
6
|
-
</h4>
|
|
7
|
-
<button type="button" class="close pull-right" aria-label="Close" (click)="close()">
|
|
8
|
-
<span aria-hidden="true">×</span>
|
|
9
|
-
</button>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="modal-body">
|
|
12
|
-
<input type="text" name="characterInput" autoFocus class="form-control write-character-value" [(ngModel)]="value" (keyup)="validate()" *ngIf="!isPassword"
|
|
13
|
-
autocomplete="off">
|
|
14
|
-
<input type="password" name="passwordInput" autoFocus class="form-control write-character-value" [(ngModel)]="value" (keyup)="validate()"
|
|
15
|
-
*ngIf="isPassword" autocomplete="off">
|
|
16
|
-
<span class="help-block text-danger" [hidden]="!validationError">{{validationErrorText}}</span>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="modal-footer">
|
|
19
|
-
<button type="submit" class="btn md-skip btn-primary btn-block" [disabled]="validationError">{{localization.submit}}</button>
|
|
20
|
-
</div>
|
|
21
|
-
</form>
|
|
1
|
+
<form #writeValueForm="ngForm" novalidate (ngSubmit)="save()" bs-modal-drag>
|
|
2
|
+
<div class="modal-header">
|
|
3
|
+
<h4 class="modal-title">
|
|
4
|
+
<span>{{localization.setting}}</span>
|
|
5
|
+
<span>{{variableName}}</span>
|
|
6
|
+
</h4>
|
|
7
|
+
<button type="button" class="close pull-right" aria-label="Close" (click)="close()">
|
|
8
|
+
<span aria-hidden="true">×</span>
|
|
9
|
+
</button>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="modal-body">
|
|
12
|
+
<input type="text" name="characterInput" autoFocus class="form-control write-character-value" [(ngModel)]="value" (keyup)="validate()" *ngIf="!isPassword"
|
|
13
|
+
autocomplete="off">
|
|
14
|
+
<input type="password" name="passwordInput" autoFocus class="form-control write-character-value" [(ngModel)]="value" (keyup)="validate()"
|
|
15
|
+
*ngIf="isPassword" autocomplete="off">
|
|
16
|
+
<span class="help-block text-danger" [hidden]="!validationError">{{validationErrorText}}</span>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="modal-footer">
|
|
19
|
+
<button type="submit" class="btn md-skip btn-primary btn-block" [disabled]="validationError">{{localization.submit}}</button>
|
|
20
|
+
</div>
|
|
21
|
+
</form>
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
-
};
|
|
13
|
-
import { Component, Inject, Output } from '@angular/core';
|
|
14
|
-
import { Subject } from 'rxjs';
|
|
15
|
-
import { LOCALIZATION } from '../../localization';
|
|
16
|
-
let WriteCharacterModalComponent = class WriteCharacterModalComponent {
|
|
17
|
-
constructor(localization) {
|
|
18
|
-
this.localization = localization;
|
|
19
|
-
this._onClosed = new Subject();
|
|
20
|
-
}
|
|
21
|
-
get onClosed() {
|
|
22
|
-
return this._onClosed;
|
|
23
|
-
}
|
|
24
|
-
get invalidErrorText() {
|
|
25
|
-
return this.localization.loadFailed;
|
|
26
|
-
}
|
|
27
|
-
ngOnInit() {
|
|
28
|
-
this.variableName = this.args.variableName;
|
|
29
|
-
this.isPassword = this.args.isPassword ? this.args.isPassword : false;
|
|
30
|
-
this.charCount = this.args.charCount;
|
|
31
|
-
this.value = '';
|
|
32
|
-
this.validate();
|
|
33
|
-
}
|
|
34
|
-
validate() {
|
|
35
|
-
// 校验数值必填
|
|
36
|
-
if (null == this.value || '' === this.value.trim()) {
|
|
37
|
-
return this.showValidationErrorInfo(this.localization.characterInputRequired);
|
|
38
|
-
}
|
|
39
|
-
if (this.value.length > this.charCount) {
|
|
40
|
-
return this.showValidationErrorInfo(this.localization.characterOutofRange);
|
|
41
|
-
}
|
|
42
|
-
this.hideValidationErrorInfo();
|
|
43
|
-
}
|
|
44
|
-
showValidationErrorInfo(errorText) {
|
|
45
|
-
this.validationError = true;
|
|
46
|
-
this.validationErrorText = errorText;
|
|
47
|
-
}
|
|
48
|
-
hideValidationErrorInfo() {
|
|
49
|
-
this.validationError = false;
|
|
50
|
-
this.validationErrorText = '';
|
|
51
|
-
}
|
|
52
|
-
save() {
|
|
53
|
-
this.close({ value: this.value });
|
|
54
|
-
}
|
|
55
|
-
close(modalResult) {
|
|
56
|
-
this._onClosed.next(modalResult);
|
|
57
|
-
this._onClosed.complete();
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
__decorate([
|
|
61
|
-
Output(),
|
|
62
|
-
__metadata("design:type", String),
|
|
63
|
-
__metadata("design:paramtypes", [])
|
|
64
|
-
], WriteCharacterModalComponent.prototype, "invalidErrorText", null);
|
|
65
|
-
WriteCharacterModalComponent = __decorate([
|
|
66
|
-
Component({
|
|
67
|
-
selector: 'writeCharacterModal',
|
|
68
|
-
template: "<form #writeValueForm=\"ngForm\" novalidate (ngSubmit)=\"save()\" bs-modal-drag> <div class=\"modal-header\"> <h4 class=\"modal-title\"> <span>{{localization.setting}}</span> <span>{{variableName}}</span> </h4> <button type=\"button\" class=\"close pull-right\" aria-label=\"Close\" (click)=\"close()\"> <span aria-hidden=\"true\">×</span> </button> </div> <div class=\"modal-body\"> <input type=\"text\" name=\"characterInput\" autoFocus class=\"form-control write-character-value\" [(ngModel)]=\"value\" (keyup)=\"validate()\" *ngIf=\"!isPassword\" autocomplete=\"off\"> <input type=\"password\" name=\"passwordInput\" autoFocus class=\"form-control write-character-value\" [(ngModel)]=\"value\" (keyup)=\"validate()\" *ngIf=\"isPassword\" autocomplete=\"off\"> <span class=\"help-block text-danger\" [hidden]=\"!validationError\">{{validationErrorText}}</span> </div> <div class=\"modal-footer\"> <button type=\"submit\" class=\"btn md-skip btn-primary btn-block\" [disabled]=\"validationError\">{{localization.submit}}</button> </div> </form> ",
|
|
69
|
-
styles: [".modal-header { padding: 10px; border-color: transparent; } .modal-body { position: relative; padding: 0px 5px !important; } .modal-title { display: unset; margin-left: -6px; font-size: 16px !important; } .form-control { margin: 0 5%; float: none; width: 90%; } .modal-footer { padding: 10px 4px 20px 5px !important; text-align: right; border-color: transparent; } .text-danger { display: block; color: #ed6b75; font-size: 14px; margin: 10px 0px 0px 15px; } .btn-primary { background-color: #3B97FC; border-color: #3B97FC; padding: 5px 30px; width: 90%; margin: 0 5%; height: 32px; } .write-character-value { padding-left: 8px; height: 32px; margin-left: 16px; } "]
|
|
70
|
-
}),
|
|
71
|
-
__param(0, Inject(LOCALIZATION)),
|
|
72
|
-
__metadata("design:paramtypes", [Object])
|
|
73
|
-
], WriteCharacterModalComponent);
|
|
74
|
-
export { WriteCharacterModalComponent };
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { Component, Inject, Output } from '@angular/core';
|
|
14
|
+
import { Subject } from 'rxjs';
|
|
15
|
+
import { LOCALIZATION } from '../../localization';
|
|
16
|
+
let WriteCharacterModalComponent = class WriteCharacterModalComponent {
|
|
17
|
+
constructor(localization) {
|
|
18
|
+
this.localization = localization;
|
|
19
|
+
this._onClosed = new Subject();
|
|
20
|
+
}
|
|
21
|
+
get onClosed() {
|
|
22
|
+
return this._onClosed;
|
|
23
|
+
}
|
|
24
|
+
get invalidErrorText() {
|
|
25
|
+
return this.localization.loadFailed;
|
|
26
|
+
}
|
|
27
|
+
ngOnInit() {
|
|
28
|
+
this.variableName = this.args.variableName;
|
|
29
|
+
this.isPassword = this.args.isPassword ? this.args.isPassword : false;
|
|
30
|
+
this.charCount = this.args.charCount;
|
|
31
|
+
this.value = '';
|
|
32
|
+
this.validate();
|
|
33
|
+
}
|
|
34
|
+
validate() {
|
|
35
|
+
// 校验数值必填
|
|
36
|
+
if (null == this.value || '' === this.value.trim()) {
|
|
37
|
+
return this.showValidationErrorInfo(this.localization.characterInputRequired);
|
|
38
|
+
}
|
|
39
|
+
if (this.value.length > this.charCount) {
|
|
40
|
+
return this.showValidationErrorInfo(this.localization.characterOutofRange);
|
|
41
|
+
}
|
|
42
|
+
this.hideValidationErrorInfo();
|
|
43
|
+
}
|
|
44
|
+
showValidationErrorInfo(errorText) {
|
|
45
|
+
this.validationError = true;
|
|
46
|
+
this.validationErrorText = errorText;
|
|
47
|
+
}
|
|
48
|
+
hideValidationErrorInfo() {
|
|
49
|
+
this.validationError = false;
|
|
50
|
+
this.validationErrorText = '';
|
|
51
|
+
}
|
|
52
|
+
save() {
|
|
53
|
+
this.close({ value: this.value });
|
|
54
|
+
}
|
|
55
|
+
close(modalResult) {
|
|
56
|
+
this._onClosed.next(modalResult);
|
|
57
|
+
this._onClosed.complete();
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
__decorate([
|
|
61
|
+
Output(),
|
|
62
|
+
__metadata("design:type", String),
|
|
63
|
+
__metadata("design:paramtypes", [])
|
|
64
|
+
], WriteCharacterModalComponent.prototype, "invalidErrorText", null);
|
|
65
|
+
WriteCharacterModalComponent = __decorate([
|
|
66
|
+
Component({
|
|
67
|
+
selector: 'writeCharacterModal',
|
|
68
|
+
template: "<form #writeValueForm=\"ngForm\" novalidate (ngSubmit)=\"save()\" bs-modal-drag> <div class=\"modal-header\"> <h4 class=\"modal-title\"> <span>{{localization.setting}}</span> <span>{{variableName}}</span> </h4> <button type=\"button\" class=\"close pull-right\" aria-label=\"Close\" (click)=\"close()\"> <span aria-hidden=\"true\">×</span> </button> </div> <div class=\"modal-body\"> <input type=\"text\" name=\"characterInput\" autoFocus class=\"form-control write-character-value\" [(ngModel)]=\"value\" (keyup)=\"validate()\" *ngIf=\"!isPassword\" autocomplete=\"off\"> <input type=\"password\" name=\"passwordInput\" autoFocus class=\"form-control write-character-value\" [(ngModel)]=\"value\" (keyup)=\"validate()\" *ngIf=\"isPassword\" autocomplete=\"off\"> <span class=\"help-block text-danger\" [hidden]=\"!validationError\">{{validationErrorText}}</span> </div> <div class=\"modal-footer\"> <button type=\"submit\" class=\"btn md-skip btn-primary btn-block\" [disabled]=\"validationError\">{{localization.submit}}</button> </div> </form> ",
|
|
69
|
+
styles: [".modal-header { padding: 10px; border-color: transparent; } .modal-body { position: relative; padding: 0px 5px !important; } .modal-title { display: unset; margin-left: -6px; font-size: 16px !important; } .form-control { margin: 0 5%; float: none; width: 90%; } .modal-footer { padding: 10px 4px 20px 5px !important; text-align: right; border-color: transparent; } .text-danger { display: block; color: #ed6b75; font-size: 14px; margin: 10px 0px 0px 15px; } .btn-primary { background-color: #3B97FC; border-color: #3B97FC; padding: 5px 30px; width: 90%; margin: 0 5%; height: 32px; } .write-character-value { padding-left: 8px; height: 32px; margin-left: 16px; } "]
|
|
70
|
+
}),
|
|
71
|
+
__param(0, Inject(LOCALIZATION)),
|
|
72
|
+
__metadata("design:paramtypes", [Object])
|
|
73
|
+
], WriteCharacterModalComponent);
|
|
74
|
+
export { WriteCharacterModalComponent };
|