@i-novus/n2o-components 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +0 -0
- package/lib/display/Alerts/Alert.d.ts +2 -0
- package/lib/display/Alerts/Alert.js +121 -0
- package/lib/display/Alerts/AlertSection.d.ts +18 -0
- package/lib/display/Alerts/AlertSection.js +64 -0
- package/lib/display/Alerts/AlertWrapper.d.ts +6 -0
- package/lib/display/Alerts/AlertWrapper.js +39 -0
- package/lib/display/Alerts/DefaultAlert.d.ts +6 -0
- package/lib/display/Alerts/DefaultAlert.js +125 -0
- package/lib/display/Alerts/LoaderAlert.d.ts +5 -0
- package/lib/display/Alerts/LoaderAlert.js +36 -0
- package/lib/display/Alerts/types.d.ts +49 -0
- package/lib/display/Alerts/types.js +24 -0
- package/lib/display/Alerts/utils.d.ts +15 -0
- package/lib/display/Alerts/utils.js +102 -0
- package/lib/display/Badge/Badge.d.ts +16 -0
- package/lib/display/Badge/Badge.js +77 -0
- package/lib/display/Badge/enums.d.ts +9 -0
- package/lib/display/Badge/enums.js +23 -0
- package/lib/display/Badge/utils.d.ts +9 -0
- package/lib/display/Badge/utils.js +49 -0
- package/lib/display/Block.d.ts +369 -0
- package/lib/display/Block.js +38 -0
- package/lib/display/CodeViewer/CodeViewer.d.ts +13 -0
- package/lib/display/CodeViewer/CodeViewer.js +96 -0
- package/lib/display/Drawer/Drawer.d.ts +25 -0
- package/lib/display/Drawer/Drawer.js +99 -0
- package/lib/display/DropdownCustomItem.d.ts +7 -0
- package/lib/display/DropdownCustomItem.js +23 -0
- package/lib/display/Filter/Buttons.d.ts +11 -0
- package/lib/display/Filter/Buttons.js +42 -0
- package/lib/display/Filter/Filter.d.ts +8 -0
- package/lib/display/Filter/Filter.js +38 -0
- package/lib/display/HelpPopover.d.ts +16 -0
- package/lib/display/HelpPopover.js +104 -0
- package/lib/display/Html.d.ts +8 -0
- package/lib/display/Html.js +29 -0
- package/lib/display/Icon/Icon.d.ts +11 -0
- package/lib/display/Icon/Icon.js +42 -0
- package/lib/display/Image/Image.d.ts +30 -0
- package/lib/display/Image/Image.js +93 -0
- package/lib/display/Image/ImageInfo.d.ts +7 -0
- package/lib/display/Image/ImageInfo.js +23 -0
- package/lib/display/InputIcon.d.ts +13 -0
- package/lib/display/InputIcon.js +33 -0
- package/lib/display/NavItemImage/NavItemImage.d.ts +9 -0
- package/lib/display/NavItemImage/NavItemImage.js +35 -0
- package/lib/display/OutputList.d.ts +12 -0
- package/lib/display/OutputList.js +46 -0
- package/lib/display/OutputListItem.d.ts +10 -0
- package/lib/display/OutputListItem.js +58 -0
- package/lib/display/OutputText.d.ts +15 -0
- package/lib/display/OutputText.js +170 -0
- package/lib/display/Pagination/Pagination.d.ts +2 -0
- package/lib/display/Pagination/Pagination.js +273 -0
- package/lib/display/Pagination/PaginationButton.d.ts +13 -0
- package/lib/display/Pagination/PaginationButton.js +53 -0
- package/lib/display/Pagination/types.d.ts +62 -0
- package/lib/display/Pagination/types.js +36 -0
- package/lib/display/PopoverConfirm/PopoverConfirm.d.ts +30 -0
- package/lib/display/PopoverConfirm/PopoverConfirm.js +87 -0
- package/lib/display/ProgressControl/ProgressControl.d.ts +17 -0
- package/lib/display/ProgressControl/ProgressControl.js +68 -0
- package/lib/display/Slider.d.ts +23 -0
- package/lib/display/Slider.js +107 -0
- package/lib/display/Status.d.ts +9 -0
- package/lib/display/Status.js +40 -0
- package/lib/display/StatusText/StatusText.d.ts +10 -0
- package/lib/display/StatusText/StatusText.js +35 -0
- package/lib/display/StatusText/types.d.ts +18 -0
- package/lib/display/StatusText/types.js +19 -0
- package/lib/display/StatusText/utils.d.ts +3 -0
- package/lib/display/StatusText/utils.js +29 -0
- package/lib/display/Text.d.ts +12 -0
- package/lib/display/Text.js +38 -0
- package/lib/display/Typography/Base.d.ts +32 -0
- package/lib/display/Typography/Base.js +259 -0
- package/lib/display/Typography/ContentEditable.d.ts +15 -0
- package/lib/display/Typography/ContentEditable.js +86 -0
- package/lib/display/Typography/Paragraph.d.ts +4 -0
- package/lib/display/Typography/Paragraph.js +23 -0
- package/lib/display/Typography/Text.d.ts +9 -0
- package/lib/display/Typography/Text.js +37 -0
- package/lib/display/Typography/Title.d.ts +7 -0
- package/lib/display/Typography/Title.js +28 -0
- package/lib/display/Typography/utils.d.ts +13 -0
- package/lib/display/Typography/utils.js +75 -0
- package/lib/helpers/HelpPopover.d.ts +9 -0
- package/lib/helpers/HelpPopover.js +46 -0
- package/lib/helpers/withRightPlaceholder.d.ts +9 -0
- package/lib/helpers/withRightPlaceholder.js +35 -0
- package/lib/inputs/Checkbox/Checkbox.d.ts +29 -0
- package/lib/inputs/Checkbox/Checkbox.js +117 -0
- package/lib/inputs/Checkbox/CheckboxControl.d.ts +7 -0
- package/lib/inputs/Checkbox/CheckboxControl.js +33 -0
- package/lib/inputs/CheckboxGroup/CheckboxGroup.d.ts +11 -0
- package/lib/inputs/CheckboxGroup/CheckboxGroup.js +84 -0
- package/lib/inputs/CodeEditor/CodeEditor.d.ts +21 -0
- package/lib/inputs/CodeEditor/CodeEditor.js +85 -0
- package/lib/inputs/DatePicker/Calendar.d.ts +65 -0
- package/lib/inputs/DatePicker/Calendar.js +556 -0
- package/lib/inputs/DatePicker/CalendarHeader.d.ts +26 -0
- package/lib/inputs/DatePicker/CalendarHeader.js +213 -0
- package/lib/inputs/DatePicker/Clock.d.ts +10 -0
- package/lib/inputs/DatePicker/Clock.js +45 -0
- package/lib/inputs/DatePicker/DateInput.d.ts +44 -0
- package/lib/inputs/DatePicker/DateInput.js +262 -0
- package/lib/inputs/DatePicker/DateInputGroup.d.ts +20 -0
- package/lib/inputs/DatePicker/DateInputGroup.js +77 -0
- package/lib/inputs/DatePicker/DateInterval.d.ts +24 -0
- package/lib/inputs/DatePicker/DateInterval.js +92 -0
- package/lib/inputs/DatePicker/DatePicker.d.ts +22 -0
- package/lib/inputs/DatePicker/DatePicker.js +36 -0
- package/lib/inputs/DatePicker/DateTimeControl.d.ts +98 -0
- package/lib/inputs/DatePicker/DateTimeControl.js +452 -0
- package/lib/inputs/DatePicker/Day.d.ts +14 -0
- package/lib/inputs/DatePicker/Day.js +50 -0
- package/lib/inputs/DatePicker/PopUp.d.ts +19 -0
- package/lib/inputs/DatePicker/PopUp.js +71 -0
- package/lib/inputs/DatePicker/types.d.ts +31 -0
- package/lib/inputs/DatePicker/types.js +25 -0
- package/lib/inputs/DatePicker/utils.d.ts +39 -0
- package/lib/inputs/DatePicker/utils.js +304 -0
- package/lib/inputs/Input.d.ts +51 -0
- package/lib/inputs/Input.js +200 -0
- package/lib/inputs/InputMask/InputMask.d.ts +23 -0
- package/lib/inputs/InputMask/InputMask.js +310 -0
- package/lib/inputs/InputMoney/InputMoney.d.ts +101 -0
- package/lib/inputs/InputMoney/InputMoney.js +258 -0
- package/lib/inputs/InputNumber/InputNumber.d.ts +29 -0
- package/lib/inputs/InputNumber/InputNumber.js +316 -0
- package/lib/inputs/InputNumber/index.d.ts +1 -0
- package/lib/inputs/InputNumber/index.js +14 -0
- package/lib/inputs/InputNumber/types.d.ts +18 -0
- package/lib/inputs/InputNumber/types.js +14 -0
- package/lib/inputs/InputNumber/utils.d.ts +6 -0
- package/lib/inputs/InputNumber/utils.js +86 -0
- package/lib/inputs/InputPassword/InputPassword.d.ts +10 -0
- package/lib/inputs/InputPassword/InputPassword.js +81 -0
- package/lib/inputs/InputSelect/InputAddon.d.ts +17 -0
- package/lib/inputs/InputSelect/InputAddon.js +31 -0
- package/lib/inputs/InputSelect/InputContent.d.ts +63 -0
- package/lib/inputs/InputSelect/InputContent.js +188 -0
- package/lib/inputs/InputSelect/InputSelect.d.ts +296 -0
- package/lib/inputs/InputSelect/InputSelect.js +795 -0
- package/lib/inputs/InputSelect/InputSelectGroup.d.ts +43 -0
- package/lib/inputs/InputSelect/InputSelectGroup.js +113 -0
- package/lib/inputs/InputSelect/PopupItems.d.ts +55 -0
- package/lib/inputs/InputSelect/PopupItems.js +357 -0
- package/lib/inputs/InputSelect/PopupList.d.ts +82 -0
- package/lib/inputs/InputSelect/PopupList.js +138 -0
- package/lib/inputs/InputSelect/SelectedItems.d.ts +17 -0
- package/lib/inputs/InputSelect/SelectedItems.js +125 -0
- package/lib/inputs/InputSelect/constants.d.ts +4 -0
- package/lib/inputs/InputSelect/constants.js +15 -0
- package/lib/inputs/InputSelect/types.d.ts +16 -0
- package/lib/inputs/InputSelect/types.js +16 -0
- package/lib/inputs/InputSelect/utils.d.ts +9 -0
- package/lib/inputs/InputSelect/utils.js +142 -0
- package/lib/inputs/InputSelectTree/InputSelectTree.d.ts +114 -0
- package/lib/inputs/InputSelectTree/InputSelectTree.js +466 -0
- package/lib/inputs/InputSelectTree/TreeSelectNode.d.ts +36 -0
- package/lib/inputs/InputSelectTree/TreeSelectNode.js +63 -0
- package/lib/inputs/InputSelectTree/allProps.d.ts +123 -0
- package/lib/inputs/InputSelectTree/allProps.js +48 -0
- package/lib/inputs/InputSelectTree/until.d.ts +4 -0
- package/lib/inputs/InputSelectTree/until.js +83 -0
- package/lib/inputs/InputText.d.ts +41 -0
- package/lib/inputs/InputText.js +170 -0
- package/lib/inputs/NumberPicker/NumberPicker.d.ts +15 -0
- package/lib/inputs/NumberPicker/NumberPicker.js +129 -0
- package/lib/inputs/NumberPicker/NumberPickerButton.d.ts +8 -0
- package/lib/inputs/NumberPicker/NumberPickerButton.js +64 -0
- package/lib/inputs/NumberPicker/index.d.ts +1 -0
- package/lib/inputs/NumberPicker/index.js +14 -0
- package/lib/inputs/NumberPicker/utils.d.ts +2 -0
- package/lib/inputs/NumberPicker/utils.js +31 -0
- package/lib/inputs/RadioGroup/default/Group.d.ts +15 -0
- package/lib/inputs/RadioGroup/default/Group.js +63 -0
- package/lib/inputs/RadioGroup/default/Input.d.ts +17 -0
- package/lib/inputs/RadioGroup/default/Input.js +77 -0
- package/lib/inputs/RadioGroup/tabs/Group.d.ts +3 -0
- package/lib/inputs/RadioGroup/tabs/Group.js +24 -0
- package/lib/inputs/RadioGroup/tabs/Input.d.ts +3 -0
- package/lib/inputs/RadioGroup/tabs/Input.js +21 -0
- package/lib/inputs/Rating/Rating.d.ts +30 -0
- package/lib/inputs/Rating/Rating.js +212 -0
- package/lib/inputs/Select/Popup.d.ts +31 -0
- package/lib/inputs/Select/Popup.js +131 -0
- package/lib/inputs/Select/Select.d.ts +225 -0
- package/lib/inputs/Select/Select.js +705 -0
- package/lib/inputs/Select/SelectInput.d.ts +19 -0
- package/lib/inputs/Select/SelectInput.js +85 -0
- package/lib/inputs/Select/utils.d.ts +1 -0
- package/lib/inputs/Select/utils.js +28 -0
- package/lib/inputs/Switch/Switch.d.ts +11 -0
- package/lib/inputs/Switch/Switch.js +41 -0
- package/lib/inputs/TextArea.d.ts +12 -0
- package/lib/inputs/TextArea.js +54 -0
- package/lib/inputs/TextEditor/TextEditor.d.ts +11 -0
- package/lib/inputs/TextEditor/TextEditor.js +89 -0
- package/lib/inputs/TimePicker/TimePicker.d.ts +50 -0
- package/lib/inputs/TimePicker/TimePicker.js +398 -0
- package/lib/inputs/utils.d.ts +5 -0
- package/lib/inputs/utils.js +39 -0
- package/lib/layouts/ScrollContainer.d.ts +218 -0
- package/lib/layouts/ScrollContainer.js +128 -0
- package/lib/layouts/Spinner/CoverSpinner.d.ts +29 -0
- package/lib/layouts/Spinner/CoverSpinner.js +153 -0
- package/lib/layouts/Spinner/InlineSpinner.d.ts +5 -0
- package/lib/layouts/Spinner/InlineSpinner.js +27 -0
- package/lib/layouts/Spinner/Spinner.d.ts +31 -0
- package/lib/layouts/Spinner/Spinner.js +178 -0
- package/lib/styles/components/Calendar.scss +125 -0
- package/lib/styles/components/CalendarHeader.scss +75 -0
- package/lib/styles/components/DateInputGroup.scss +39 -0
- package/lib/styles/components/DatePicker.scss +18 -0
- package/lib/styles/components/Day.scss +29 -0
- package/lib/styles/components/OutputList.scss +14 -0
- package/lib/styles/components/OutputText.scss +50 -0
- package/lib/styles/controls/CodeEditor.scss +4 -0
- package/lib/styles/controls/InputNumber.scss +36 -0
- package/lib/styles/controls/InputPassword.scss +17 -0
- package/lib/styles/controls/InputText.scss +59 -0
- package/lib/styles/controls/NumberPicker.scss +36 -0
- package/lib/styles/controls/ProgressControl.scss +3 -0
- package/lib/styles/controls/Slider.scss +32 -0
- package/lib/styles/controls/Switch.scss +105 -0
- package/lib/styles/controls/TextEditor.scss +23 -0
- package/lib/styles/controls/TimePicker.scss +32 -0
- package/lib/styles/n2o/variables.scss +328 -0
- package/lib/styles/theme/variables.scss +81 -0
- package/lib/styles/variables.scss +10 -0
- package/lib/types.d.ts +25 -0
- package/lib/types.js +6 -0
- package/lib/utils/id.d.ts +3 -0
- package/lib/utils/id.js +46 -0
- package/lib/utils/isEmptyModel.d.ts +1 -0
- package/lib/utils/isEmptyModel.js +21 -0
- package/lib/utils/parseFormatter.js +153 -0
- package/package.json +196 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports.Spinner = exports.SpinnerType = void 0;
|
|
11
|
+
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
+
|
|
14
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
+
|
|
16
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
17
|
+
|
|
18
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
19
|
+
|
|
20
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
21
|
+
|
|
22
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
23
|
+
|
|
24
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
25
|
+
|
|
26
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
27
|
+
|
|
28
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
29
|
+
|
|
30
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
31
|
+
|
|
32
|
+
var _reactstrap = require("reactstrap");
|
|
33
|
+
|
|
34
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
35
|
+
|
|
36
|
+
var _eq = _interopRequireDefault(require("lodash/eq"));
|
|
37
|
+
|
|
38
|
+
var _omit = _interopRequireDefault(require("lodash/omit"));
|
|
39
|
+
|
|
40
|
+
var _excluded = ["children", "className", "text", "title", "transparent", "color", "loading"],
|
|
41
|
+
_excluded2 = ["children", "loading", "className"];
|
|
42
|
+
|
|
43
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
44
|
+
|
|
45
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
46
|
+
|
|
47
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
48
|
+
|
|
49
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
50
|
+
|
|
51
|
+
var SpinnerType;
|
|
52
|
+
exports.SpinnerType = SpinnerType;
|
|
53
|
+
|
|
54
|
+
(function (SpinnerType) {
|
|
55
|
+
SpinnerType["cover"] = "cover";
|
|
56
|
+
SpinnerType["inline"] = "inline";
|
|
57
|
+
})(SpinnerType || (exports.SpinnerType = SpinnerType = {}));
|
|
58
|
+
|
|
59
|
+
var Spinner = /*#__PURE__*/function (_Component) {
|
|
60
|
+
(0, _inherits2["default"])(Spinner, _Component);
|
|
61
|
+
|
|
62
|
+
var _super = _createSuper(Spinner);
|
|
63
|
+
|
|
64
|
+
function Spinner(props) {
|
|
65
|
+
var _this;
|
|
66
|
+
|
|
67
|
+
(0, _classCallCheck2["default"])(this, Spinner);
|
|
68
|
+
_this = _super.call(this, props);
|
|
69
|
+
_this.state = {
|
|
70
|
+
showSpinner: false
|
|
71
|
+
};
|
|
72
|
+
_this.timeoutId = null;
|
|
73
|
+
_this.unmounted = null;
|
|
74
|
+
_this.renderCoverSpinner = _this.renderCoverSpinner.bind((0, _assertThisInitialized2["default"])(_this));
|
|
75
|
+
_this.renderLineSpinner = _this.renderLineSpinner.bind((0, _assertThisInitialized2["default"])(_this));
|
|
76
|
+
return _this;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
(0, _createClass2["default"])(Spinner, [{
|
|
80
|
+
key: "componentDidUpdate",
|
|
81
|
+
value: function componentDidUpdate(prevProps) {
|
|
82
|
+
var _this2 = this;
|
|
83
|
+
|
|
84
|
+
var loading = this.props.loading;
|
|
85
|
+
|
|
86
|
+
if (prevProps.loading !== loading) {
|
|
87
|
+
if (this.timeoutId) {
|
|
88
|
+
clearTimeout(this.timeoutId);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
this.timeoutId = setTimeout(function () {
|
|
92
|
+
var loading = _this2.props.loading;
|
|
93
|
+
|
|
94
|
+
if (!_this2.unmounted) {
|
|
95
|
+
_this2.setState({
|
|
96
|
+
showSpinner: loading
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}, 2000);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}, {
|
|
103
|
+
key: "componentWillUnmount",
|
|
104
|
+
value: function componentWillUnmount() {
|
|
105
|
+
this.unmounted = true;
|
|
106
|
+
}
|
|
107
|
+
}, {
|
|
108
|
+
key: "renderCoverSpinner",
|
|
109
|
+
value: function renderCoverSpinner() {
|
|
110
|
+
var _classNames;
|
|
111
|
+
|
|
112
|
+
var _this$props = this.props,
|
|
113
|
+
children = _this$props.children,
|
|
114
|
+
_this$props$className = _this$props.className,
|
|
115
|
+
className = _this$props$className === void 0 ? '' : _this$props$className,
|
|
116
|
+
text = _this$props.text,
|
|
117
|
+
title = _this$props.title,
|
|
118
|
+
transparent = _this$props.transparent,
|
|
119
|
+
color = _this$props.color,
|
|
120
|
+
loading = _this$props.loading,
|
|
121
|
+
rest = (0, _objectWithoutProperties2["default"])(_this$props, _excluded);
|
|
122
|
+
var showSpinner = this.state.showSpinner;
|
|
123
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
124
|
+
className: (0, _classnames["default"])('n2o-spinner-wrapper', (_classNames = {}, (0, _defineProperty2["default"])(_classNames, className, className), (0, _defineProperty2["default"])(_classNames, 'n2o-disabled-page', loading), _classNames))
|
|
125
|
+
}, showSpinner && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
126
|
+
className: "n2o-spinner-container "
|
|
127
|
+
}, /*#__PURE__*/_react["default"].createElement(_reactstrap.Spinner, (0, _extends2["default"])({
|
|
128
|
+
className: "spinner-border",
|
|
129
|
+
color: color
|
|
130
|
+
}, (0, _omit["default"])(rest, ['loading']))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
131
|
+
className: "loading_title loading_text"
|
|
132
|
+
}, title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
|
+
className: "loading_text"
|
|
134
|
+
}, text)), !transparent ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
135
|
+
className: "spinner-background"
|
|
136
|
+
}) : null), children);
|
|
137
|
+
}
|
|
138
|
+
}, {
|
|
139
|
+
key: "renderLineSpinner",
|
|
140
|
+
value: function renderLineSpinner() {
|
|
141
|
+
var _this$props2 = this.props,
|
|
142
|
+
children = _this$props2.children,
|
|
143
|
+
loading = _this$props2.loading,
|
|
144
|
+
className = _this$props2.className,
|
|
145
|
+
rest = (0, _objectWithoutProperties2["default"])(_this$props2, _excluded2);
|
|
146
|
+
|
|
147
|
+
if (loading) {
|
|
148
|
+
return /*#__PURE__*/_react["default"].createElement(_reactstrap.Spinner, (0, _extends2["default"])({
|
|
149
|
+
className: "spinner"
|
|
150
|
+
}, (0, _omit["default"])(rest, ['type'])));
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (_react["default"].Children.count(children)) {
|
|
154
|
+
return children;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
return null;
|
|
158
|
+
}
|
|
159
|
+
}, {
|
|
160
|
+
key: "render",
|
|
161
|
+
value: function render() {
|
|
162
|
+
var type = this.props.type;
|
|
163
|
+
return (0, _eq["default"])(type, SpinnerType.cover) ? this.renderCoverSpinner() : this.renderLineSpinner();
|
|
164
|
+
}
|
|
165
|
+
}]);
|
|
166
|
+
return Spinner;
|
|
167
|
+
}(_react.Component);
|
|
168
|
+
|
|
169
|
+
exports.Spinner = Spinner;
|
|
170
|
+
(0, _defineProperty2["default"])(Spinner, "defaultProps", {
|
|
171
|
+
loading: true,
|
|
172
|
+
type: 'inline',
|
|
173
|
+
text: '',
|
|
174
|
+
transparent: false,
|
|
175
|
+
color: 'primary',
|
|
176
|
+
minSpinnerTimeToShow: 250
|
|
177
|
+
});
|
|
178
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9sYXlvdXRzL1NwaW5uZXIvU3Bpbm5lci50c3giXSwibmFtZXMiOlsiU3Bpbm5lclR5cGUiLCJTcGlubmVyIiwicHJvcHMiLCJzdGF0ZSIsInNob3dTcGlubmVyIiwidGltZW91dElkIiwidW5tb3VudGVkIiwicmVuZGVyQ292ZXJTcGlubmVyIiwiYmluZCIsInJlbmRlckxpbmVTcGlubmVyIiwicHJldlByb3BzIiwibG9hZGluZyIsImNsZWFyVGltZW91dCIsInNldFRpbWVvdXQiLCJzZXRTdGF0ZSIsImNoaWxkcmVuIiwiY2xhc3NOYW1lIiwidGV4dCIsInRpdGxlIiwidHJhbnNwYXJlbnQiLCJjb2xvciIsInJlc3QiLCJSZWFjdCIsIkNoaWxkcmVuIiwiY291bnQiLCJ0eXBlIiwiY292ZXIiLCJDb21wb25lbnQiLCJtaW5TcGlubmVyVGltZVRvU2hvdyJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTs7QUFDQTs7QUFDQTs7QUFDQTs7QUFDQTs7Ozs7Ozs7Ozs7OztJQUlZQSxXOzs7V0FBQUEsVztBQUFBQSxFQUFBQSxXO0FBQUFBLEVBQUFBLFc7R0FBQUE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AgICAgICAgdGhpcy51bm1vdW50ZWQgPSBudWxsXG5cbiAgICAgICAgdGhpcy5yZW5kZXJDb3ZlclNwaW5uZXIgPSB0aGlzLnJlbmRlckNvdmVyU3Bpbm5lci5iaW5kKHRoaXMpXG4gICAgICAgIHRoaXMucmVuZGVyTGluZVNwaW5uZXIgPSB0aGlzLnJlbmRlckxpbmVTcGlubmVyLmJpbmQodGhpcylcbiAgICB9XG5cbiAgICBjb21wb25lbnREaWRVcGRhdGUocHJldlByb3BzOiBQcm9wcykge1xuICAgICAgICBjb25zdCB7IGxvYWRpbmcgfSA9IHRoaXMucHJvcHNcblxuICAgICAgICBpZiAocHJldlByb3BzLmxvYWRpbmcgIT09IGxvYWRpbmcpIHtcbiAgICAgICAgICAgIGlmICh0aGlzLnRpbWVvdXRJZCkge1xuICAgICAgICAgICAgICAgIGNsZWFyVGltZW91dCh0aGlzLnRpbWVvdXRJZClcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMudGltZW91dElkID0gc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgY29uc3QgeyBsb2FkaW5nIH0gPSB0aGlzLnByb3BzXG5cbiAgICAgICAgICAgICAgICBpZiAoIXRoaXMudW5tb3VudGVkKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0U3RhdGUoeyBzaG93U3Bpbm5lcjogbG9hZGluZyB9KVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sIDIwMDApXG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBjb21wb25lbnRXaWxsVW5tb3VudCgpIHtcbiAgICAgICAgdGhpcy51bm1vdW50ZWQgPSB0cnVlXG4gICAgfVxuXG4gICAgcmVuZGVyQ292ZXJTcGlubmVyKCkge1xuICAgICAgICBjb25zdCB7XG4gICAgICAgICAgICBjaGlsZHJlbixcbiAgICAgICAgICAgIGNsYXNzTmFtZSA9ICcnLFxuICAgICAgICAgICAgdGV4dCxcbiAgICAgICAgICAgIHRpdGxlLFxuICAgICAgICAgICAgdHJhbnNwYXJlbnQsXG4gICAgICAgICAgICBjb2xvcixcbiAgICAgICAgICAgIGxvYWRpbmcsXG4gICAgICAgICAgICAuLi5yZXN0XG4gICAgICAgIH0gPSB0aGlzLnByb3BzXG4gICAgICAgIGNvbnN0IHsgc2hvd1NwaW5uZXIgfSA9IHRoaXMuc3RhdGVcblxuICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgPGRpdlxuICAgICAgICAgICAgICAgIGNsYXNzTmFtZT17Y2xhc3NOYW1lcygnbjJvLXNwaW5uZXItd3JhcHBlcicsIHtcbiAgICAgICAgICAgICAgICAgICAgW2NsYXNzTmFtZV06IGNsYXNzTmFtZSxcbiAgICAgICAgICAgICAgICAgICAgJ24yby1kaXNhYmxlZC1wYWdlJzogbG9hZGluZyxcbiAgICAgICAgICAgICAgICB9KX1cbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICB7c2hvd1NwaW5uZXIgJiYgKFxuICAgICAgICAgICAgICAgICAgICA8PlxuICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzc05hbWU9XCJuMm8tc3Bpbm5lci1jb250YWluZXIgXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPEJhc2VTcGlubmVyIGNsYXNzTmFtZT1cInNwaW5uZXItYm9yZGVyXCIgY29sb3I9e2NvbG9yfSB7Li4ub21pdChyZXN0LCBbJ2xvYWRpbmcnXSl9IC8+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzc05hbWU9XCJsb2FkaW5nX3RpdGxlIGxvYWRpbmdfdGV4dFwiPnt0aXRsZX08L2Rpdj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzTmFtZT1cImxvYWRpbmdfdGV4dFwiPnt0ZXh0fTwvZGl2PlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICAgICAgICB7IXRyYW5zcGFyZW50ID8gPGRpdiBjbGFzc05hbWU9XCJzcGlubmVyLWJhY2tncm91bmRcIiAvPiA6IG51bGx9XG4gICAgICAgICAgICAgICAgICAgIDwvPlxuICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAge2NoaWxkcmVufVxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgIClcbiAgICB9XG5cbiAgICByZW5kZXJMaW5lU3Bpbm5lcigpIHtcbiAgICAgICAgY29uc3Qge1xuICAgICAgICAgICAgY2hpbGRyZW4sXG4gICAgICAgICAgICBsb2FkaW5nLFxuICAgICAgICAgICAgY2xhc3NOYW1lLFxuICAgICAgICAgICAgLi4ucmVzdFxuICAgICAgICB9ID0gdGhpcy5wcm9wc1xuXG4gICAgICAgIGlmIChsb2FkaW5nKSB7XG4gICAgICAgICAgICByZXR1cm4gPEJhc2VTcGlubmVyIGNsYXNzTmFtZT1cInNwaW5uZXJcIiB7Li4ub21pdChyZXN0LCBbJ3R5cGUnXSl9IC8+XG4gICAgICAgIH1cbiAgICAgICAgaWYgKFJlYWN0LkNoaWxkcmVuLmNvdW50KGNoaWxkcmVuKSkge1xuICAgICAgICAgICAgcmV0dXJuIGNoaWxkcmVuXG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gbnVsbFxuICAgIH1cblxuICAgIHJlbmRlcigpIHtcbiAgICAgICAgY29uc3QgeyB0eXBlIH0gPSB0aGlzLnByb3BzXG5cbiAgICAgICAgcmV0dXJuIGVxKHR5cGUsIFNwaW5uZXJUeXBlLmNvdmVyKVxuICAgICAgICAgICAgPyB0aGlzLnJlbmRlckNvdmVyU3Bpbm5lcigpXG4gICAgICAgICAgICA6IHRoaXMucmVuZGVyTGluZVNwaW5uZXIoKVxuICAgIH1cblxuICAgIHN0YXRpYyBkZWZhdWx0UHJvcHMgPSB7XG4gICAgICAgIGxvYWRpbmc6IHRydWUsXG4gICAgICAgIHR5cGU6ICdpbmxpbmUnLFxuICAgICAgICB0ZXh0OiAnJyxcbiAgICAgICAgdHJhbnNwYXJlbnQ6IGZhbHNlLFxuICAgICAgICBjb2xvcjogJ3ByaW1hcnknLFxuICAgICAgICBtaW5TcGlubmVyVGltZVRvU2hvdzogMjUwLFxuICAgIH0gYXMgUHJvcHNcbn1cbiJdfQ==
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
@import '../variables.scss';
|
|
2
|
+
|
|
3
|
+
.n2o-calendar-body-item {
|
|
4
|
+
&.active {
|
|
5
|
+
background-color: $primary;
|
|
6
|
+
color: white;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&:hover:not(.active):not(.other-decade) {
|
|
10
|
+
background-color: $gray-200;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&.other-decade {
|
|
14
|
+
color: $gray-200;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.n2o-calendar {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
background: white;
|
|
22
|
+
min-width: $calendar-min-width;
|
|
23
|
+
max-width: $calendar-max-width;
|
|
24
|
+
min-height: $calendar-height;
|
|
25
|
+
border: 1px solid $gray-200;
|
|
26
|
+
padding: 5px;
|
|
27
|
+
|
|
28
|
+
.n2o-calendar-body {
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-wrap: wrap;
|
|
31
|
+
position: relative;
|
|
32
|
+
bottom: 0;
|
|
33
|
+
flex-grow: 1;
|
|
34
|
+
align-items: stretch;
|
|
35
|
+
|
|
36
|
+
/* stylelint-disable-next-line no-descending-specificity */
|
|
37
|
+
.n2o-calendar-body-item {
|
|
38
|
+
font-size: 0.8rem;
|
|
39
|
+
padding: 3px;
|
|
40
|
+
width: 33%;
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
align-items: center;
|
|
44
|
+
text-align: center;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
margin: 5px 0;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.n2o-calendar-picker {
|
|
52
|
+
display: flex;
|
|
53
|
+
overflow-y: scroll;
|
|
54
|
+
width: 33%;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
text-align: center;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.n2o-calendar-timepicker {
|
|
60
|
+
max-height: 160px;
|
|
61
|
+
display: flex;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.n2o-calendar:focus {
|
|
65
|
+
outline: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.n2o-calendar td {
|
|
69
|
+
text-align: center;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.n2o-calendar thead td {
|
|
73
|
+
color: $gray-400;
|
|
74
|
+
padding: 0 5px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.n2o-picker-dropdown {
|
|
78
|
+
z-index: $zindex-dropdown !important;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.n2o-calendar-month-header .fa {
|
|
82
|
+
font-size: 0.8* $font-size-base;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.n2o-calendar-year-header .fa {
|
|
86
|
+
font-size: 0.8* $font-size-base;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.n2o-calendar-time-buttons {
|
|
90
|
+
display: flex;
|
|
91
|
+
justify-content: space-between;
|
|
92
|
+
margin-top: 8px;
|
|
93
|
+
padding-bottom: 5px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.n2o-calendar-time-unit {
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
|
|
99
|
+
&.active {
|
|
100
|
+
background-color: $primary;
|
|
101
|
+
color: white;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&:hover:not(.active) {
|
|
105
|
+
background-color: $gray-200;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.n2o-calendar-time-container {
|
|
110
|
+
text-align: center;
|
|
111
|
+
margin: 10px auto 0;
|
|
112
|
+
// margin-top: 10px;
|
|
113
|
+
bottom: 5px;
|
|
114
|
+
display: table;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.n2o-calendar-table {
|
|
118
|
+
border-collapse: separate;
|
|
119
|
+
border-spacing: 2px 0;
|
|
120
|
+
margin: auto;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.btn.n2o-calendar-button {
|
|
124
|
+
width: 40px;
|
|
125
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
.n2o-calendar-header {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
width: auto;
|
|
5
|
+
padding: 8px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.n2o-calendar-month-header,
|
|
9
|
+
.n2o-calendar-year-header {
|
|
10
|
+
display: inline-block;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.n2o-calendar-year-header {
|
|
14
|
+
float: right;
|
|
15
|
+
margin-right: 7px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.n2o-calendar-icon {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
|
|
21
|
+
&::before {
|
|
22
|
+
font-size: 1.2rem;
|
|
23
|
+
vertical-align: -webkit-baseline-middle;
|
|
24
|
+
vertical-align: -moz-middle-with-baseline;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.n2o-calendar-dropdown-container {
|
|
29
|
+
display: inline-block;
|
|
30
|
+
position: relative;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.n2o-calendar-dropdown {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
position: absolute;
|
|
37
|
+
z-index: 2000;
|
|
38
|
+
padding: 5px;
|
|
39
|
+
background-color: white;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.n2o-calendar-dropdown-item {
|
|
43
|
+
list-style: none;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
font-size: 10px;
|
|
46
|
+
padding: 1px;
|
|
47
|
+
margin: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.n2o-calendar-dropdown-item:hover {
|
|
51
|
+
background-color: #bce8f1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.n2o-calendar-dropdown-menu {
|
|
55
|
+
margin: 0;
|
|
56
|
+
padding: 0;
|
|
57
|
+
background: white;
|
|
58
|
+
z-index: 1051;
|
|
59
|
+
position: absolute;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.n2o-calendar-current-month,
|
|
63
|
+
.n2o-calendar-current-year {
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.n2o-calendar-current-date {
|
|
68
|
+
display: flex;
|
|
69
|
+
justify-content: space-around;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.n2o-calendar-year,
|
|
73
|
+
.n2o-calendar-month {
|
|
74
|
+
position: relative;
|
|
75
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@import '../variables.scss';
|
|
2
|
+
|
|
3
|
+
.n2o-date-input-group {
|
|
4
|
+
display: flex;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.n2o-calendar-button {
|
|
8
|
+
width: $datepicker-button-width;
|
|
9
|
+
border: none;
|
|
10
|
+
background: transparent;
|
|
11
|
+
margin-left: -$datepicker-button-width;
|
|
12
|
+
|
|
13
|
+
&:focus,
|
|
14
|
+
&:hover,
|
|
15
|
+
&:active {
|
|
16
|
+
outline: 0;
|
|
17
|
+
box-shadow: none;
|
|
18
|
+
|
|
19
|
+
&:not([disabled]) {
|
|
20
|
+
color: $link-hover-color;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.n2o-date-input {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-grow: 1;
|
|
28
|
+
width: 100%;
|
|
29
|
+
|
|
30
|
+
&.n2o-date-input-first {
|
|
31
|
+
width: calc(100% - #{$datepicker-button-width} + 3px);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.n2o-date-input-last {
|
|
35
|
+
> input {
|
|
36
|
+
padding-right: $datepicker-button-width;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.n2o-calendar-container {
|
|
2
|
+
position: absolute;
|
|
3
|
+
left: 0;
|
|
4
|
+
right: 0;
|
|
5
|
+
top: 0;
|
|
6
|
+
bottom: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.n2o-date-picker {
|
|
10
|
+
position: relative;
|
|
11
|
+
display: inline-block;
|
|
12
|
+
width: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.n2o-date-picker-container {
|
|
16
|
+
display: block;
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@import '../variables.scss';
|
|
2
|
+
|
|
3
|
+
.n2o-calendar-day {
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
padding: $datepicker-day-padding;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.n2o-calendar-day:hover:not(.disabled):not(.selected) {
|
|
9
|
+
color: $datepicker-day-color-hover;
|
|
10
|
+
background: $datepicker-day-background-color-hover;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.n2o-calendar-day.other-month {
|
|
14
|
+
color: $gray-300;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.n2o-calendar-day.selected {
|
|
18
|
+
color: $datepicker-day-color-selected;
|
|
19
|
+
background-color: $datepicker-day-background-color-selected;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.n2o-calendar-day.current {
|
|
23
|
+
border: 1px solid $datepicker-day-border-color-current;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.n2o-calendar-day.disabled {
|
|
27
|
+
color: $gray-200;
|
|
28
|
+
cursor: not-allowed;
|
|
29
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@import "../variables";
|
|
2
|
+
|
|
3
|
+
.n2o-output-text {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: flex-start;
|
|
6
|
+
align-content: flex-start;
|
|
7
|
+
justify-content: flex-start;
|
|
8
|
+
flex-wrap: nowrap;
|
|
9
|
+
|
|
10
|
+
.details-label {
|
|
11
|
+
display: inline-block;
|
|
12
|
+
border-bottom: 1px dashed rgba(38, 50, 56, 0.55);
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
margin-left: $input-padding-y;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
> .text {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
order: 2;
|
|
21
|
+
min-height: 1.4rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
> .icon {
|
|
25
|
+
margin-top: 2px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.right {
|
|
29
|
+
> .icon {
|
|
30
|
+
order: 3;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.left {
|
|
35
|
+
> .icon {
|
|
36
|
+
order: 1;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.n2o-output-text--expandable > .text {
|
|
42
|
+
display: block;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.n2o-output-text--ellipsis > .text > span {
|
|
46
|
+
display: block;
|
|
47
|
+
white-space: nowrap;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
text-overflow: ellipsis;
|
|
50
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@import '../variables.scss';
|
|
2
|
+
|
|
3
|
+
.n2o-input-number {
|
|
4
|
+
display: flex;
|
|
5
|
+
position: relative;
|
|
6
|
+
flex-grow: 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.n2o-input-number-buttons {
|
|
10
|
+
position: absolute;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
top: calc($input-padding-y / 2);
|
|
14
|
+
bottom: calc($input-padding-y / 2);
|
|
15
|
+
right: $input-padding-x;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.n2o-input-number-buttons > button {
|
|
19
|
+
display: flex;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
padding: 0;
|
|
22
|
+
flex-grow: 1;
|
|
23
|
+
outline: none;
|
|
24
|
+
border: none;
|
|
25
|
+
background: none;
|
|
26
|
+
color: $gray-300;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.n2o-input-number-buttons > button:hover,
|
|
30
|
+
.n2o-input-number-buttons > button:focus {
|
|
31
|
+
color: $pink;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.n2o-number-interval-description {
|
|
35
|
+
font-size: 0.9rem;
|
|
36
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.n2o-input-password {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
|
|
5
|
+
.n2o-input-password-toggler {
|
|
6
|
+
position: absolute;
|
|
7
|
+
right: 2px;
|
|
8
|
+
top: calc(50% - 16px);
|
|
9
|
+
width: 32px;
|
|
10
|
+
height: 32px;
|
|
11
|
+
opacity: 0.5;
|
|
12
|
+
|
|
13
|
+
&:hover {
|
|
14
|
+
opacity: 0.8;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@import '../variables.scss';
|
|
2
|
+
|
|
3
|
+
.n2o-input-text__affix-wrapper {
|
|
4
|
+
position: relative;
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-width: 0;
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
|
|
9
|
+
.n2o-input-text {
|
|
10
|
+
padding: 0;
|
|
11
|
+
border: none;
|
|
12
|
+
outline: none;
|
|
13
|
+
width: 100%;
|
|
14
|
+
|
|
15
|
+
&:disabled {
|
|
16
|
+
background-color: $input-disabled-bg;
|
|
17
|
+
opacity: 1;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.focused {
|
|
22
|
+
color: $input-focus-color;
|
|
23
|
+
background-color: $input-focus-bg;
|
|
24
|
+
border-color: $input-focus-border-color;
|
|
25
|
+
outline: 0;
|
|
26
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
|
27
|
+
@if $enable-shadows {
|
|
28
|
+
box-shadow: $input-box-shadow, $input-focus-box-shadow;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@else {
|
|
32
|
+
box-shadow: $input-focus-box-shadow;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.disabled {
|
|
37
|
+
background-color: $input-disabled-bg;
|
|
38
|
+
opacity: 1;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.n2o-input-text__prefix,
|
|
43
|
+
.n2o-input-text__suffix {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex: none;
|
|
46
|
+
align-items: center;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.n2o-input-text__prefix {
|
|
50
|
+
margin-right: $input-padding-x;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.n2o-input-text__suffix {
|
|
54
|
+
margin-left: $input-padding-x;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.n2o-input.form-control.n2o-input-text {
|
|
58
|
+
text-overflow: ellipsis;
|
|
59
|
+
}
|