Mobile first

This commit is contained in:
Eudes Inácio
2021-02-24 10:42:01 +01:00
parent 094bf52e93
commit 4ec53c6452
2044 changed files with 30038 additions and 524787 deletions
+35 -25
View File
@@ -39,21 +39,21 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
/* harmony import */
var _index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./index-44bf8136.js */
"./node_modules/@ionic/core/dist/esm/index-44bf8136.js");
var _index_e806d1f6_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! ./index-e806d1f6.js */
"./node_modules/@ionic/core/dist/esm/index-e806d1f6.js");
/* harmony import */
var _ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./ionic-global-837be8f3.js */
"./node_modules/@ionic/core/dist/esm/ionic-global-837be8f3.js");
var _ionic_global_9d5c8ee3_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! ./ionic-global-9d5c8ee3.js */
"./node_modules/@ionic/core/dist/esm/ionic-global-9d5c8ee3.js");
/* harmony import */
var _haptic_7b8ba70a_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./haptic-7b8ba70a.js */
"./node_modules/@ionic/core/dist/esm/haptic-7b8ba70a.js");
var _haptic_27b3f981_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ./haptic-27b3f981.js */
"./node_modules/@ionic/core/dist/esm/haptic-27b3f981.js");
var reorderIosCss = ":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block;font-size:22px}.reorder-icon{font-size:34px;opacity:0.4}";
var reorderMdCss = ":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block;font-size:22px}.reorder-icon{font-size:31px;opacity:0.3}";
@@ -62,29 +62,39 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
function Reorder(hostRef) {
_classCallCheck(this, Reorder);
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["r"])(this, hostRef);
Object(_index_e806d1f6_js__WEBPACK_IMPORTED_MODULE_0__["r"])(this, hostRef);
}
_createClass(Reorder, [{
key: "onClick",
value: function onClick(ev) {
ev.preventDefault();
ev.stopImmediatePropagation();
var reorderGroup = this.el.closest('ion-reorder-group');
ev.preventDefault(); // Only stop event propagation if the reorder is inside of an enabled
// reorder group. This allows interaction with clickable children components.
if (!reorderGroup || !reorderGroup.disabled) {
ev.stopImmediatePropagation();
}
}
}, {
key: "render",
value: function render() {
var mode = Object(_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["b"])(this);
var mode = Object(_ionic_global_9d5c8ee3_js__WEBPACK_IMPORTED_MODULE_1__["b"])(this);
var reorderIcon = mode === 'ios' ? 'reorder-three-outline' : 'reorder-two-sharp';
return Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["H"], {
return Object(_index_e806d1f6_js__WEBPACK_IMPORTED_MODULE_0__["h"])(_index_e806d1f6_js__WEBPACK_IMPORTED_MODULE_0__["H"], {
"class": mode
}, Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("slot", null, Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("ion-icon", {
}, Object(_index_e806d1f6_js__WEBPACK_IMPORTED_MODULE_0__["h"])("slot", null, Object(_index_e806d1f6_js__WEBPACK_IMPORTED_MODULE_0__["h"])("ion-icon", {
name: reorderIcon,
lazy: false,
"class": "reorder-icon",
part: "icon"
})));
}
}, {
key: "el",
get: function get() {
return Object(_index_e806d1f6_js__WEBPACK_IMPORTED_MODULE_0__["i"])(this);
}
}]);
return Reorder;
@@ -100,8 +110,8 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
function ReorderGroup(hostRef) {
_classCallCheck(this, ReorderGroup);
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["r"])(this, hostRef);
this.ionItemReorder = Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["e"])(this, "ionItemReorder", 7);
Object(_index_e806d1f6_js__WEBPACK_IMPORTED_MODULE_0__["r"])(this, hostRef);
this.ionItemReorder = Object(_index_e806d1f6_js__WEBPACK_IMPORTED_MODULE_0__["e"])(this, "ionItemReorder", 7);
this.lastToIndex = -1;
this.cachedHeights = [];
this.scrollElTop = 0;
@@ -153,8 +163,8 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
case 5:
_context.next = 7;
return Promise.resolve().then(__webpack_require__.bind(null,
/*! ./index-eea61379.js */
"./node_modules/@ionic/core/dist/esm/index-eea61379.js"));
/*! ./index-f49d994d.js */
"./node_modules/@ionic/core/dist/esm/index-f49d994d.js"));
case 7:
this.gesture = _context.sent.createGesture({
@@ -291,7 +301,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
/* Active */
;
item.classList.add(ITEM_REORDER_SELECTED);
Object(_haptic_7b8ba70a_js__WEBPACK_IMPORTED_MODULE_2__["a"])();
Object(_haptic_27b3f981_js__WEBPACK_IMPORTED_MODULE_2__["a"])();
}
}, {
key: "onMove",
@@ -315,7 +325,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
if (toIndex !== this.lastToIndex) {
var fromIndex = indexForItem(selectedItem);
this.lastToIndex = toIndex;
Object(_haptic_7b8ba70a_js__WEBPACK_IMPORTED_MODULE_2__["b"])();
Object(_haptic_27b3f981_js__WEBPACK_IMPORTED_MODULE_2__["b"])();
this.reorderMove(fromIndex, toIndex);
} // Update selected item position
@@ -350,7 +360,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
});
}
Object(_haptic_7b8ba70a_js__WEBPACK_IMPORTED_MODULE_2__["h"])();
Object(_haptic_27b3f981_js__WEBPACK_IMPORTED_MODULE_2__["h"])();
}
}, {
key: "completeSync",
@@ -451,15 +461,15 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
value: function render() {
var _class;
var mode = Object(_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["b"])(this);
return Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["H"], {
var mode = Object(_ionic_global_9d5c8ee3_js__WEBPACK_IMPORTED_MODULE_1__["b"])(this);
return Object(_index_e806d1f6_js__WEBPACK_IMPORTED_MODULE_0__["h"])(_index_e806d1f6_js__WEBPACK_IMPORTED_MODULE_0__["H"], {
"class": (_class = {}, _defineProperty(_class, mode, true), _defineProperty(_class, 'reorder-enabled', !this.disabled), _defineProperty(_class, 'reorder-list-active', this.state !== 0), _class)
});
}
}, {
key: "el",
get: function get() {
return Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["i"])(this);
return Object(_index_e806d1f6_js__WEBPACK_IMPORTED_MODULE_0__["i"])(this);
}
}], [{
key: "watchers",