ion-oui
Version:
The client library of oui builder for ionic
81 lines (80 loc) • 4.35 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
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;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.OUIIonScrollableParser = exports.OUIIonScrollable = exports.OUIIonRootParser = exports.OUIIonRoot = void 0;
var core_1 = require("@angular/core");
var oui_element_1 = require("../oui-element");
var oui_parser_1 = require("../oui-parser");
var OUIIonRoot = /** @class */ (function (_super) {
__extends(OUIIonRoot, _super);
function OUIIonRoot() {
return _super !== null && _super.apply(this, arguments) || this;
}
OUIIonRoot = __decorate([
(0, core_1.Component)({
selector: 'app-ion-oui-root',
template: "\n <ion-header [mode]=\"mode\" *ngIf=\"data.appBar\" >\n <app-ion-oui [data]=\"data.appBar\" [onClick]=\"click\"></app-ion-oui>\n </ion-header>\n <ion-content>\n <app-ion-oui [mode]=\"mode\" [data]=\"data.body\" [onClick]=\"click\"></app-ion-oui>\n </ion-content>\n <ion-footer [mode]=\"mode\" *ngIf=\"data.bottom\">\n <app-ion-oui [mode]=\"mode\" [data]=\"data.bottom\" [onClick]=\"click\"></app-ion-oui>\n </ion-footer>\n ",
styles: [":host{\n display: flex;\n flex-direction: column;\n height: 100%;\n }"],
styleUrls: ['./o-ui.scss'],
})
], OUIIonRoot);
return OUIIonRoot;
}(oui_element_1.OUIIonElement));
exports.OUIIonRoot = OUIIonRoot;
var OUIIonRootParser = /** @class */ (function (_super) {
__extends(OUIIonRootParser, _super);
function OUIIonRootParser() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.type = 'Root';
_this.componentType = OUIIonRoot;
return _this;
}
return OUIIonRootParser;
}(oui_parser_1.OUIAbstractIonParser));
exports.OUIIonRootParser = OUIIonRootParser;
var OUIIonScrollable = /** @class */ (function (_super) {
__extends(OUIIonScrollable, _super);
function OUIIonScrollable() {
return _super !== null && _super.apply(this, arguments) || this;
}
OUIIonScrollable = __decorate([
(0, core_1.Component)({
selector: 'app-ion-oui-scroll',
styleUrls: ['./o-ui.scss'],
template: "<div>\n <app-ion-oui [mode]=\"mode\" *ngIf=\"data.child\" [data]=\"data.child\" [onClick]=\"click\"></app-ion-oui>\n </div>"
})
], OUIIonScrollable);
return OUIIonScrollable;
}(oui_element_1.OUIIonElement));
exports.OUIIonScrollable = OUIIonScrollable;
var OUIIonScrollableParser = /** @class */ (function (_super) {
__extends(OUIIonScrollableParser, _super);
function OUIIonScrollableParser() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.type = 'SingleChildScrollView';
_this.componentType = OUIIonScrollable;
return _this;
}
return OUIIonScrollableParser;
}(oui_parser_1.OUIAbstractIonParser));
exports.OUIIonScrollableParser = OUIIonScrollableParser;