@theseam/ui-common 0.3.2 → 0.3.5
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/bundles/theseam-ui-common-dynamic.umd.js +1 -0
- package/bundles/theseam-ui-common-dynamic.umd.js.map +1 -1
- package/bundles/theseam-ui-common-modal.umd.js +59 -10
- package/bundles/theseam-ui-common-modal.umd.js.map +1 -1
- package/bundles/theseam-ui-common-widget.umd.js +3 -1
- package/bundles/theseam-ui-common-widget.umd.js.map +1 -1
- package/esm2015/dynamic/evaluators/jexl-evaluator/jexl-evaluator.js +2 -1
- package/esm2015/modal/modal-container/modal-container.component.js +4 -1
- package/esm2015/modal/modal-ref.js +56 -11
- package/esm2015/widget/widget-content-components/widget-tile/widget-tile.component.js +4 -2
- package/fesm2015/theseam-ui-common-dynamic.js +1 -0
- package/fesm2015/theseam-ui-common-dynamic.js.map +1 -1
- package/fesm2015/theseam-ui-common-modal.js +58 -10
- package/fesm2015/theseam-ui-common-modal.js.map +1 -1
- package/fesm2015/theseam-ui-common-widget.js +3 -1
- package/fesm2015/theseam-ui-common-widget.js.map +1 -1
- package/modal/modal-container/modal-container.component.d.ts +1 -0
- package/modal/modal-ref.d.ts +2 -0
- package/modal/theseam-ui-common-modal.metadata.json +1 -1
- package/package.json +1 -1
- package/widget/styles/_variables.scss +1 -0
- package/widget/theseam-ui-common-widget.metadata.json +1 -1
- package/widget/widget-content-components/widget-tile/widget-tile.component.d.ts +2 -0
- package/widget/widget-content-components/widget-tile/widget-tile.component.scss +1 -1
|
@@ -1259,6 +1259,7 @@
|
|
|
1259
1259
|
function WidgetTileComponent(_elementRef, _focusMonitor, _renderer) {
|
|
1260
1260
|
var _this = _super.call(this, _elementRef, _focusMonitor, _renderer) || this;
|
|
1261
1261
|
_this.grayscaleOnDisable = true;
|
|
1262
|
+
_this.iconType = 'styled-square';
|
|
1262
1263
|
_this._haltDisabledEvents = function (event) {
|
|
1263
1264
|
// A disabled button shouldn't apply any actions
|
|
1264
1265
|
if (_this.disabled) {
|
|
@@ -1329,7 +1330,7 @@
|
|
|
1329
1330
|
WidgetTileComponent.decorators = [
|
|
1330
1331
|
{ type: i0.Component, args: [{
|
|
1331
1332
|
selector: 'seam-widget-tile, a[seam-widget-tile], button[seam-widget-tile]',
|
|
1332
|
-
template: "<div class=\"d-flex flex-row\">\n <div style=\"position: relative\">\n <seam-icon\n [icon]=\"icon\"\n iconType=\"
|
|
1333
|
+
template: "<div class=\"d-flex flex-row\">\n <div style=\"position: relative\">\n <seam-icon\n [icon]=\"icon\"\n [iconType]=\"iconType\"\n [iconClass]=\"iconClass\"\n [disabled]=\"disabled\">\n </seam-icon>\n\n <seam-icon *ngIf=\"notificationIcon\"\n class=\"widget-tile--notification-icon\"\n [icon]=\"notificationIcon\"\n iconType=\"image-fill\"\n [iconClass]=\"notificationIconClass\"\n [disabled]=\"disabled\">\n </seam-icon>\n </div>\n <div class=\"flex-grow-1 text-left pl-2\" style=\"margin: auto 0;\">\n <ng-content></ng-content>\n </div>\n <div *ngIf=\"secondaryIcon\">\n <ng-template [ngTemplateOutlet]=\"secondaryIcon.template\"></ng-template>\n </div>\n</div>\n",
|
|
1333
1334
|
inputs: ['disabled'],
|
|
1334
1335
|
exportAs: 'seamWidgetTile',
|
|
1335
1336
|
encapsulation: i0.ViewEncapsulation.None,
|
|
@@ -1352,6 +1353,7 @@
|
|
|
1352
1353
|
icon: [{ type: i0.Input }],
|
|
1353
1354
|
grayscaleOnDisable: [{ type: i0.Input }],
|
|
1354
1355
|
iconClass: [{ type: i0.Input }],
|
|
1356
|
+
iconType: [{ type: i0.Input }],
|
|
1355
1357
|
notificationIcon: [{ type: i0.Input }],
|
|
1356
1358
|
notificationIconClass: [{ type: i0.Input }],
|
|
1357
1359
|
secondaryIcon: [{ type: i0.ContentChild, args: [WidgetTileSecondaryIconDirective, { static: true },] }]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theseam-ui-common-widget.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../projects/ui-common/widget/directives/widget-drag-handle.directive.ts","../../../projects/ui-common/widget/directives/widget-icon-tpl.directive.ts","../../../projects/ui-common/widget/directives/widget-title-tpl.directive.ts","../../../projects/ui-common/widget/widget-content-components/widget-button-group/widget-button-group.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-button-group/widget-button-group.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-content-header/widget-content-header.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-content-header/widget-content-header.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-description/widget-description.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-description/widget-description.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-empty-label/widget-empty-label.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-empty-label/widget-empty-label.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-footer-link/widget-footer-link.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-footer-link/widget-footer-link.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-footer-text/widget-footer-text.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-footer-text/widget-footer-text.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-header-badge/widget-header-badge.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-header-badge/widget-header-badge.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item-icon-tpl.directive.ts","../../../projects/ui-common/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-list-group/widget-list-group.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-list-group/widget-list-group.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-table/widget-table.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-table/widget-table.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-tile/widget-tile-footer/widget-tile-footer.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-tile/widget-tile-footer-item/widget-tile-footer-item.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-tile/widget-tile-group/widget-tile-group.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-tile/widget-tile-secondary-icon.directive.ts","../../../projects/ui-common/widget/widget-content-components/widget-tile/widget-tile.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-tile/widget-tile.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-tile-list/widget-tile-list.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-tile-list/widget-tile-list.module.ts","../../../projects/ui-common/widget/widget/widget.component.ts","../../../projects/ui-common/widget/widget-footer/widget-footer.component.ts","../../../projects/ui-common/widget/widget-token.ts","../../../projects/ui-common/widget/widget-registry.service.ts","../../../projects/ui-common/widget/widget.module.ts","../../../projects/ui-common/widget/theseam-ui-common-widget.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n 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;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'\nimport { CdkDrag, CdkDragHandle } from '@angular/cdk/drag-drop'\nimport {\n AfterViewInit,\n Directive,\n DoCheck,\n ElementRef,\n EventEmitter,\n Inject,\n InjectionToken,\n Input,\n NgZone,\n OnDestroy,\n OnInit,\n Optional,\n QueryList\n} from '@angular/core'\nimport { BehaviorSubject, Subject } from 'rxjs'\nimport { auditTime, filter, switchMap, take, takeUntil } from 'rxjs/operators'\n\nimport { getClosestWidgetCdkDrag } from '@theseam/ui-common/utils'\n\n//\n// NOTE: This will probably NOT be used long term, unless more of the\n// CdkDragDrop code is rewritten.\n//\n// This directive is meant to be a HACK replacement directive for CdkDragHandle.\n// The reason this was made is because CdkDragHandle doesn't work in child\n// components, since it uses ContentChildren to query for the handles.\n//\n// This could easily break, because I am forcing the handles query list to emit\n// changes manually. So, if the query list actually changes, then my changes\n// will be broken.\n//\n\n\n\n// Helper type that ignores `readonly` properties. This is used in\n// `extendStyles` to ignore the readonly properties on CSSStyleDeclaration\n// since we won't be touching those anyway.\ntype Writeable<T> = { -readonly [P in keyof T]-?: T[P] }\n\n/**\n * Extended CSSStyleDeclaration that includes a couple of drag-related\n * properties that aren't in the built-in TS typings.\n */\ninterface DragCSSStyleDeclaration extends CSSStyleDeclaration {\n webkitUserDrag: string\n MozUserSelect: string // For some reason the Firefox property is in PascalCase.\n msScrollSnapType: string\n scrollSnapType: string\n msUserSelect: string\n}\n\nexport function extendStyles(\n dest: Writeable<CSSStyleDeclaration>,\n source: Partial<DragCSSStyleDeclaration>\n) {\n for (const key in source) {\n if (source.hasOwnProperty(key)) {\n // tslint:disable-next-line: no-non-null-assertion\n dest[key] = source[key]!\n }\n }\n\n return dest\n}\n\nexport function toggleNativeDragInteractions(element: HTMLElement, enable: boolean) {\n const userSelect = enable ? '' : 'none'\n\n extendStyles(element.style, {\n touchAction: enable ? '' : 'none',\n webkitUserDrag: enable ? '' : 'none',\n webkitTapHighlightColor: enable ? '' : 'transparent',\n userSelect: userSelect,\n msUserSelect: userSelect,\n webkitUserSelect: userSelect,\n MozUserSelect: userSelect\n })\n}\n\nexport interface TheSeamWidgetAccessor<TItem> {\n widgetsChange: EventEmitter<TItem[]>\n cdkDragDirectives: QueryList<CdkDrag>\n}\n\nexport const THESEAM_WIDGET_ACCESSOR = new InjectionToken<TheSeamWidgetAccessor<any>>(\n 'TheSeamWidgetAccessor'\n)\n\n@Directive({\n selector: '[seamWidgetDragHandle]',\n host: {\n 'class': 'cdk-drag-handle'\n }\n})\nexport class WidgetDragHandleDirective implements OnInit, OnDestroy, AfterViewInit, DoCheck {\n static ngAcceptInputType_disabled: BooleanInput\n\n private readonly _ngUnsubscribe = new Subject()\n\n private _attachedToDom = new BehaviorSubject<boolean>(false)\n private _doneCheckingAttached = false\n private _knownParentDrag: any /* CdkDrag | undefined */\n\n /** Needed because CdkDrag reads this variable */\n get _parentDrag() { return this.getParentCdkDrag() }\n\n /** Emits when the state of the handle has changed. */\n _stateChanges = new Subject<CdkDragHandle>()\n\n /** Whether starting to drag through this handle is disabled. */\n @Input('cdkDragHandleDisabled')\n get disabled(): boolean { return this._disabled }\n set disabled(value: boolean) {\n this._disabled = coerceBooleanProperty(value)\n this._stateChanges.next(<any>this)\n }\n private _disabled = false\n\n constructor(\n public element: ElementRef<HTMLElement>,\n private _ngZone: NgZone,\n @Optional() @Inject(THESEAM_WIDGET_ACCESSOR) private _dashboardWidgets?: TheSeamWidgetAccessor<any>,\n @Optional() private __parentDrag?: CdkDrag\n ) {\n toggleNativeDragInteractions(element.nativeElement, false)\n }\n\n ngOnInit() {\n if (this._dashboardWidgets) {\n this._dashboardWidgets.widgetsChange.pipe(\n auditTime(0),\n takeUntil(this._ngUnsubscribe)\n ).subscribe(() => {\n if (this._knownParentDrag) {\n const isAttached = this.isAttachedToDom()\n if (isAttached) {\n const parent = <any>this.getParentCdkDrag()\n if (this._knownParentDrag !== parent) {\n this._attachedToDom.next(isAttached)\n }\n }\n\n }\n })\n }\n }\n\n ngAfterViewInit() {\n if (this.__parentDrag || this._dashboardWidgets) {\n // FIXME: This only works until the widget is moved to another template\n // outlet. Now that the component isn't reinitialized when moving between\n // lists the handle needs to now reflex that change to its new CdkDrag\n // parent and possibly tell its previous parent to forget it.\n\n // HACK: This is a hack to allow the `CdkDrag` directive to manage a\n // handle that is not visible to `ContentChildren` query.\n this._ngZone.onStable.asObservable()\n // .pipe(take(1), untilDestroyed(this))\n .pipe(\n take(1),\n // With the weird trick being done to keep widgets initialized when switching columns\n switchMap(() => this._attachedToDom.pipe(filter(v => v === true))),\n // take(1)\n takeUntil(this._ngUnsubscribe)\n )\n .subscribe(() => {\n const parent = <any>this.getParentCdkDrag()\n\n if (this._knownParentDrag && this._knownParentDrag !== parent) {\n this._knownParentDrag._dragRef.disableHandle(this.element.nativeElement)\n this._knownParentDrag = undefined\n }\n\n if (parent) {\n this._knownParentDrag = parent\n parent._handles.reset([ ...parent._handles._results, this ])\n parent._handles.notifyOnChanges()\n parent._dragRef.enableHandle(this.element.nativeElement)\n }\n })\n }\n }\n\n ngOnDestroy() {\n this._stateChanges.complete()\n this._attachedToDom.complete()\n\n this._ngUnsubscribe.next()\n this._ngUnsubscribe.complete()\n }\n\n ngDoCheck() {\n // The attached observable only emits once, so we can stop checking if\n // attached.\n if (this._doneCheckingAttached) { return }\n\n const isAttached = this.isAttachedToDom()\n if (isAttached !== this._attachedToDom.value) {\n this._attachedToDom.next(isAttached)\n this._doneCheckingAttached = true\n }\n }\n\n public isAttachedToDom(): boolean {\n return document.body.contains(this.element.nativeElement)\n }\n\n /** Closest parent draggable instance. */\n public getParentCdkDrag(): CdkDrag | undefined {\n if (this.__parentDrag) {\n return this.__parentDrag\n } else if (this._dashboardWidgets && this._dashboardWidgets.cdkDragDirectives) {\n const dragsArr = this._dashboardWidgets.cdkDragDirectives.toArray()\n const closest = getClosestWidgetCdkDrag(this.element, dragsArr)\n return (closest !== undefined && closest !== null) ? closest : undefined\n }\n }\n\n}\n","import { Directive, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamWidgetIconTpl]'\n})\nexport class WidgetIconTplDirective {\n\n constructor(public template: TemplateRef<any>) { }\n\n}\n","import { Directive, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamWidgetTitleTpl]'\n})\nexport class WidgetTitleTplDirective {\n\n constructor(public template: TemplateRef<any>) { }\n\n}\n","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'\n\n@Component({\n selector: 'seam-widget-button-group',\n templateUrl: './widget-button-group.component.html',\n styleUrls: ['./widget-button-group.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetButtonGroupComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { TheSeamButtonsModule } from '@theseam/ui-common/buttons'\n\nimport { WidgetButtonGroupComponent } from './widget-button-group.component'\n\n@NgModule({\n declarations: [\n WidgetButtonGroupComponent\n ],\n imports: [\n CommonModule,\n TheSeamButtonsModule\n ],\n exports: [\n WidgetButtonGroupComponent,\n\n TheSeamButtonsModule\n ]\n})\nexport class TheSeamWidgetButtonGroupModule { }\n","import { Component, OnInit, ViewEncapsulation } from '@angular/core'\n\n@Component({\n selector: 'seam-widget-content-header',\n templateUrl: './widget-content-header.component.html',\n styleUrls: ['./widget-content-header.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class WidgetContentHeaderComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { WidgetContentHeaderComponent } from './widget-content-header.component'\n\n@NgModule({\n declarations: [\n WidgetContentHeaderComponent\n ],\n imports: [\n CommonModule\n ],\n exports: [\n WidgetContentHeaderComponent\n ]\n})\nexport class TheSeamWidgetContentHeaderModule { }\n","import { ChangeDetectionStrategy, Component } from '@angular/core'\n\n@Component({\n selector: 'seam-widget-description',\n templateUrl: './widget-description.component.html',\n styleUrls: ['./widget-description.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetDescriptionComponent { }\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { WidgetDescriptionComponent } from './widget-description.component'\n\n@NgModule({\n declarations: [\n WidgetDescriptionComponent\n ],\n imports: [\n CommonModule\n ],\n exports: [\n WidgetDescriptionComponent\n ]\n})\nexport class TheSeamWidgetDescriptionModule { }\n","import { Component, ElementRef, HostBinding, Input, OnInit, ViewEncapsulation } from '@angular/core'\n\n@Component({\n selector: 'seam-widget-empty-label,a[seam-widget-empty-label],button[seam-widget-empty-label]',\n templateUrl: './widget-empty-label.component.html',\n styleUrls: ['./widget-empty-label.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class WidgetEmptyLabelComponent implements OnInit {\n\n private _type: string | undefined | null\n\n @HostBinding('class.btn')\n get _btnCss() { return this._isButton() ? true : false }\n\n @HostBinding('class.btn-link')\n get _btnLinkCss() { return this._isButton() ? true : false }\n\n @HostBinding('attr.type')\n get _attrType() {\n return this._type || this._isButton() ? 'button' : undefined\n }\n\n @Input()\n get type(): string | undefined | null { return this._type }\n\n constructor(\n public _elementRef: ElementRef<HTMLElement | HTMLAnchorElement | HTMLButtonElement>\n ) { }\n\n ngOnInit() { }\n\n /** Determines if the component host is a button. */\n private _isButton(): boolean {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'button'\n }\n\n /** Determines if the component host is an anchor. */\n private _isAnchor(): boolean {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'a'\n }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { WidgetEmptyLabelComponent } from './widget-empty-label.component'\n\n@NgModule({\n declarations: [\n WidgetEmptyLabelComponent\n ],\n imports: [\n CommonModule\n ],\n exports: [\n WidgetEmptyLabelComponent\n ]\n})\nexport class TheSeamWidgetEmptyLabelModule { }\n","import { Component, OnInit, ViewEncapsulation } from '@angular/core'\n\n@Component({\n // tslint:disable-next-line:component-selector\n selector: 'a[seam-widget-footer-link]',\n templateUrl: './widget-footer-link.component.html',\n styleUrls: ['./widget-footer-link.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class WidgetFooterLinkComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() { }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { WidgetFooterLinkComponent } from './widget-footer-link.component'\n\n@NgModule({\n declarations: [\n WidgetFooterLinkComponent\n ],\n imports: [\n CommonModule\n ],\n exports: [\n WidgetFooterLinkComponent\n ]\n})\nexport class TheSeamWidgetFooterLinkModule { }\n","import { Component, OnInit, ViewEncapsulation } from '@angular/core'\n\n@Component({\n selector: 'seam-widget-footer-text',\n templateUrl: './widget-footer-text.component.html',\n styleUrls: ['./widget-footer-text.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class WidgetFooterTextComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { WidgetFooterTextComponent } from './widget-footer-text.component'\n\n@NgModule({\n declarations: [\n WidgetFooterTextComponent\n ],\n imports: [\n CommonModule\n ],\n exports: [\n WidgetFooterTextComponent\n ]\n})\nexport class TheSeamWidgetFooterTextModule { }\n","import { ChangeDetectionStrategy, Component, ElementRef, HostBinding, Input, OnInit, Renderer2, ViewEncapsulation } from '@angular/core'\n\nimport {\n CanThemeCtor,\n mixinTheme\n} from '@theseam/ui-common/core'\n\nclass WidgetHeaderBadgeBase {\n\n constructor(\n public _elementRef: ElementRef\n ) { }\n\n}\n\nconst _WidgetHeaderBadgeMixinBase: CanThemeCtor &\n typeof WidgetHeaderBadgeBase = mixinTheme(WidgetHeaderBadgeBase, 'badge')\n\n@Component({\n selector: 'seam-widget-header-badge',\n templateUrl: './widget-header-badge.component.html',\n styleUrls: ['./widget-header-badge.component.scss'],\n // tslint:disable-next-line:use-input-property-decorator\n inputs: [ 'theme' ],\n // tslint:disable-next-line:use-host-property-decorator\n host: {\n 'class': 'badge float-right'\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetHeaderBadgeComponent extends _WidgetHeaderBadgeMixinBase implements OnInit {\n\n constructor(\n _elementRef: ElementRef\n ) { super(_elementRef) }\n\n ngOnInit() { }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { WidgetHeaderBadgeComponent } from './widget-header-badge.component'\n\n@NgModule({\n declarations: [\n WidgetHeaderBadgeComponent\n ],\n imports: [\n CommonModule\n ],\n exports: [\n WidgetHeaderBadgeComponent\n ]\n})\nexport class TheSeamWidgetHeaderBadgeModule { }\n","import { Directive, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamWidgetListGroupItemIconTpl]',\n exportAs: 'seamWidgetListGroupItemIconTpl'\n})\nexport class WidgetListGroupItemIconTplDirective {\n\n constructor(public template: TemplateRef<any>) { }\n\n}\n","import { FocusMonitor } from '@angular/cdk/a11y'\nimport { ChangeDetectionStrategy, Component, ContentChild, Directive, ElementRef, Input, OnDestroy, OnInit, Renderer2 } from '@angular/core'\n\nimport {\n CanBeActive,\n CanBeActiveCtor,\n CanDisable,\n CanDisableCtor,\n CanTheme,\n CanThemeCtor,\n HasElementRef,\n mixinActive,\n mixinDisabled,\n mixinTheme\n} from '@theseam/ui-common/core'\nimport { SeamIcon } from '@theseam/ui-common/icon'\n\nimport { WidgetListGroupItemIconTplDirective } from './widget-list-group-item-icon-tpl.directive'\n\n// tslint:disable-next-line: max-line-length\nconst WIDGET_LIST_GROUP_ITEM_INPUTS = [ 'disabled', 'theme', 'active', 'icon', 'iconClass', 'label', 'secondaryIcon', 'secondaryIconClass', 'secondaryIconTitle' ]\n\n@Directive()\n// tslint:disable-next-line: directive-class-suffix\nclass WidgetListGroupItemBase {\n\n @ContentChild(WidgetListGroupItemIconTplDirective, { static: true }) iconTpl?: WidgetListGroupItemIconTplDirective\n\n icon?: SeamIcon\n iconClass?: string\n secondaryIcon?: SeamIcon\n secondaryIconClass?: string\n secondaryIconTitle?: string\n\n label?: string\n\n constructor(\n public _elementRef: ElementRef,\n public _renderer: Renderer2\n ) { }\n\n /** Focuses the element. */\n focus(): void {\n this._getHostElement().focus()\n }\n\n _getHostElement() {\n return this._elementRef.nativeElement\n }\n}\n\n@Directive()\n// tslint:disable-next-line: directive-class-suffix\nclass WidgetListGroupItemActionableBase extends WidgetListGroupItemBase implements OnDestroy {\n constructor(\n public _elementRef: ElementRef,\n public _focusMonitor: FocusMonitor,\n public _renderer: Renderer2\n ) {\n super(_elementRef, _renderer)\n this._focusMonitor.monitor(this._elementRef, true)\n }\n\n ngOnDestroy() {\n this._focusMonitor.stopMonitoring(this._elementRef)\n }\n}\n\n\nconst _WidgetListGroupItemBase: CanDisableCtor & CanThemeCtor & CanBeActiveCtor &\n typeof WidgetListGroupItemBase = mixinActive(mixinTheme(mixinDisabled(WidgetListGroupItemBase), 'list-group-item'))\n\nconst _WidgetListGroupItemActionableBase: CanDisableCtor & CanThemeCtor & CanBeActiveCtor &\n typeof WidgetListGroupItemActionableBase = mixinActive(mixinTheme(mixinDisabled(WidgetListGroupItemActionableBase), 'list-group-item'))\n\n@Component({\n selector: 'seam-widget-list-group-item',\n templateUrl: './widget-list-group-item.component.html',\n styleUrls: ['./widget-list-group-item.component.scss'],\n exportAs: 'seamWidgetListGroupItem',\n inputs: WIDGET_LIST_GROUP_ITEM_INPUTS,\n host: {\n 'class': 'list-group-item',\n '[class.active]': 'active',\n '[attr.aria-disabled]': 'disabled.toString()',\n '[attr.disabled]': 'disabled || null',\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetListGroupItemComponent extends _WidgetListGroupItemBase\n implements OnInit, HasElementRef, CanTheme, CanDisable, CanBeActive {\n\n constructor(\n public _elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>,\n public _renderer: Renderer2\n ) {\n super(_elementRef, _renderer)\n }\n\n ngOnInit() { }\n\n}\n\n@Component({\n // tslint:disable-next-line:component-selector\n selector: 'button[seam-widget-list-group-item],button[seamWidgetListGroupItem]',\n templateUrl: './widget-list-group-item.component.html',\n styleUrls: ['./widget-list-group-item.component.scss'],\n exportAs: 'seamWidgetListGroupItem',\n inputs: WIDGET_LIST_GROUP_ITEM_INPUTS,\n host: {\n '[attr.type]': 'type',\n 'class': 'list-group-item list-group-item-action',\n '[class.active]': 'active',\n '[attr.aria-disabled]': 'disabled.toString()',\n '[attr.disabled]': 'disabled || null',\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetListGroupItemButtonComponent extends _WidgetListGroupItemActionableBase\n implements OnInit, HasElementRef, CanTheme, CanDisable, CanBeActive, OnDestroy {\n\n /** ARIA type for the button. */\n @Input() type: 'button' | 'submit' | 'reset' | undefined | null = 'button'\n\n constructor(\n public _elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>,\n public _focusMonitor: FocusMonitor,\n public _renderer: Renderer2\n ) {\n super(_elementRef, _focusMonitor, _renderer)\n }\n\n ngOnInit() { }\n\n ngOnDestroy() { super.ngOnDestroy() }\n\n}\n\n@Component({\n // tslint:disable-next-line:component-selector\n selector: 'a[seam-widget-list-group-item],a[seamWidgetListGroupItem]',\n templateUrl: './widget-list-group-item.component.html',\n styleUrls: ['./widget-list-group-item.component.scss'],\n exportAs: 'seamWidgetListGroupItem',\n inputs: WIDGET_LIST_GROUP_ITEM_INPUTS,\n host: {\n 'class': 'list-group-item list-group-item-action',\n '[class.active]': 'active',\n '[attr.tabindex]': 'disabled ? -1 : (tabIndex || 0)',\n '[attr.aria-disabled]': 'disabled.toString()',\n '[attr.disabled]': 'disabled || null',\n '(click)': '_haltDisabledEvents($event)',\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetListGroupItemAnchorComponent extends _WidgetListGroupItemActionableBase\n implements OnInit, HasElementRef, CanTheme, CanDisable, CanBeActive, OnDestroy {\n\n /** Tabindex of the button. */\n @Input() tabIndex: number | undefined | null\n\n constructor(\n public _elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>,\n public _focusMonitor: FocusMonitor,\n public _renderer: Renderer2\n ) {\n super(_elementRef, _focusMonitor, _renderer)\n }\n\n ngOnInit() { }\n\n ngOnDestroy() { super.ngOnDestroy() }\n\n _haltDisabledEvents(event: Event) {\n // A disabled button shouldn't apply any actions\n if (this.disabled) {\n event.preventDefault()\n event.stopImmediatePropagation()\n }\n }\n\n}\n","import { ChangeDetectionStrategy, Component, ContentChild, HostBinding, Input, OnInit } from '@angular/core'\n\n// TODO: Make `ListGroup` a root component and wrap it with `WidgetListGroup`.\n\n@Component({\n selector: 'seam-widget-list-group',\n templateUrl: './widget-list-group.component.html',\n styleUrls: ['./widget-list-group.component.scss'],\n host: {\n 'class': 'list-group'\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetListGroupComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() { }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { TheSeamIconModule } from '@theseam/ui-common/icon'\n\nimport { WidgetListGroupItemIconTplDirective } from './widget-list-group-item/widget-list-group-item-icon-tpl.directive'\nimport {\n WidgetListGroupItemAnchorComponent,\n WidgetListGroupItemButtonComponent,\n WidgetListGroupItemComponent\n} from './widget-list-group-item/widget-list-group-item.component'\nimport { WidgetListGroupComponent } from './widget-list-group.component'\n\n@NgModule({\n declarations: [\n WidgetListGroupComponent,\n WidgetListGroupItemAnchorComponent,\n WidgetListGroupItemButtonComponent,\n WidgetListGroupItemComponent,\n WidgetListGroupItemIconTplDirective\n ],\n imports: [\n CommonModule,\n TheSeamIconModule\n ],\n exports: [\n WidgetListGroupComponent,\n WidgetListGroupItemAnchorComponent,\n WidgetListGroupItemButtonComponent,\n WidgetListGroupItemComponent,\n WidgetListGroupItemIconTplDirective\n ]\n})\nexport class TheSeamWidgetListGroupModule { }\n","import { BooleanInput } from '@angular/cdk/coercion'\nimport { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\nimport type { ITableColumn, TrackByFunction } from '@theseam/ui-common/table'\n\n@Component({\n selector: 'seam-widget-table',\n templateUrl: './widget-table.component.html',\n styleUrls: ['./widget-table.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetTableComponent<T> {\n static ngAcceptInputType_hasHeader: BooleanInput\n\n @Input() columns: (string | ITableColumn)[] | undefined | null\n @Input() rows: T[] | undefined | null = []\n @Input() trackBy: TrackByFunction<T> | undefined | null\n @Input() size: 'sm' | 'md' | undefined | null = 'sm'\n @Input() @InputBoolean() hasHeader: boolean = true\n\n @Output() readonly actionRefreshRequest = new EventEmitter<any>()\n\n constructor() { }\n\n _actionRefreshRequest() {\n this.actionRefreshRequest.emit()\n }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { TheSeamTableModule } from '@theseam/ui-common/table'\nimport { TheSeamTableCellTypesModule } from '@theseam/ui-common/table-cell-types'\n\nimport { WidgetTableComponent } from './widget-table.component'\n\n@NgModule({\n declarations: [\n WidgetTableComponent\n ],\n imports: [\n CommonModule,\n TheSeamTableModule,\n TheSeamTableCellTypesModule\n ],\n exports: [\n WidgetTableComponent\n ]\n})\nexport class TheSeamWidgetTableModule { }\n","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'\n\n@Component({\n selector: 'seam-widget-tile-footer,[seam-widget-tile-footer]',\n templateUrl: './widget-tile-footer.component.html',\n styleUrls: ['./widget-tile-footer.component.scss'],\n host: {\n class: 'd-flex flex-row justify-content-end'\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetTileFooterComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { BooleanInput } from '@angular/cdk/coercion'\nimport { ChangeDetectionStrategy, Component, ElementRef, HostBinding, Input, OnInit } from '@angular/core'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\n\n@Component({\n selector: 'seam-widget-tile-footer-item,a[seam-widget-tile-footer-item],button[seam-widget-tile-footer-item]',\n templateUrl: './widget-tile-footer-item.component.html',\n styleUrls: ['./widget-tile-footer-item.component.scss'],\n host: {\n class: 'btn btn-link py-0 px-1'\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetTileFooterItemComponent implements OnInit {\n static ngAcceptInputType_disabled: BooleanInput\n\n private _type: string | undefined | null\n\n @HostBinding('attr.type')\n get _attrType() {\n return this._type || this._isButton() ? 'button' : undefined\n }\n\n @HostBinding('class.disabled')\n get _DisabledCss() { return this.disabled }\n\n @Input()\n get type(): string | undefined | null { return this._type }\n\n @Input() @InputBoolean() disabled = false\n\n constructor(\n public _elementRef: ElementRef<HTMLElement | HTMLAnchorElement | HTMLButtonElement>\n ) { }\n\n ngOnInit() { }\n\n /** Determines if the component host is a button. */\n private _isButton(): boolean {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'button'\n }\n}\n","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'\n\n@Component({\n selector: 'seam-widget-tile-group',\n templateUrl: './widget-tile-group.component.html',\n styleUrls: ['./widget-tile-group.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetTileGroupComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { Directive, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamWidgetTileSecondaryIcon]',\n exportAs: 'seamWidgetTileSecondaryIcon'\n})\nexport class WidgetTileSecondaryIconDirective {\n\n constructor(public template: TemplateRef<any>) { }\n\n}\n","import { FocusMonitor } from '@angular/cdk/a11y'\nimport { BooleanInput } from '@angular/cdk/coercion'\nimport { Component, ContentChild, ElementRef, HostBinding, Input, OnDestroy, OnInit, Renderer2, ViewEncapsulation } from '@angular/core'\n\nimport { IconProp } from '@fortawesome/fontawesome-svg-core'\n\nimport {\n CanDisableCtor,\n HasElementRef,\n HasRenderer2,\n HasTabIndexCtor,\n InputBoolean,\n mixinDisabled,\n mixinTabIndex,\n} from '@theseam/ui-common/core'\n\nimport { WidgetTileSecondaryIconDirective } from './widget-tile-secondary-icon.directive'\n\n@Component({ template: '' })\n// tslint:disable-next-line: component-class-suffix\nclass TheSeamWidgetTileBase implements OnDestroy, HasRenderer2, HasElementRef {\n constructor(\n public _elementRef: ElementRef,\n public _focusMonitor: FocusMonitor,\n public _renderer: Renderer2\n ) {\n this._focusMonitor.monitor(this._elementRef, true)\n }\n\n ngOnDestroy() {\n this._focusMonitor.stopMonitoring(this._elementRef)\n }\n\n /** Focuses the button. */\n focus(): void {\n this._getHostElement().focus()\n }\n\n _getHostElement() {\n return this._elementRef.nativeElement\n }\n}\n\nconst _TheSeamWidgetTileMixinBase: CanDisableCtor & HasTabIndexCtor &\n typeof TheSeamWidgetTileBase = mixinTabIndex(mixinDisabled(TheSeamWidgetTileBase))\n\n// TODO: Should this component be split into separate components for button and anchor.\n@Component({\n selector: 'seam-widget-tile, a[seam-widget-tile], button[seam-widget-tile]',\n templateUrl: './widget-tile.component.html',\n styleUrls: ['./widget-tile.component.scss'],\n inputs: [ 'disabled' ],\n exportAs: 'seamWidgetTile',\n encapsulation: ViewEncapsulation.None\n})\nexport class WidgetTileComponent extends _TheSeamWidgetTileMixinBase implements OnInit, OnDestroy {\n static ngAcceptInputType_grayscaleOnDisable: BooleanInput\n\n private _clickUnListen: (() => void | undefined | null) | undefined | null\n\n private _type: string | undefined | null\n\n @HostBinding('attr.type')\n get _attrType() {\n return this._type || this._isButton() ? 'button' : undefined\n }\n\n @HostBinding('class.btn')\n get _btnCss() { return this._isButton() ? true : false }\n\n @HostBinding('class.disabled')\n get _disabledCss() { return this.disabled }\n\n @HostBinding('attr.aria-disabled')\n get _ariaDisabled() { return this.disabled.toString() }\n\n @HostBinding('attr.disabled')\n get _attrDisabled() { return this.disabled || null }\n\n @HostBinding('attr.tabindex')\n get _attrTabIndex() { return this.disabled ? -1 : (this.tabIndex || 0) }\n\n @Input()\n get type(): string | undefined | null { return this._type }\n\n @Input() icon: string | IconProp | undefined | null\n\n @Input() @InputBoolean() grayscaleOnDisable: boolean = true\n\n @Input() iconClass: string | undefined | null\n\n @Input() notificationIcon: string | IconProp | undefined | null\n @Input() notificationIconClass: string | undefined | null\n\n @ContentChild(WidgetTileSecondaryIconDirective, { static: true }) secondaryIcon?: WidgetTileSecondaryIconDirective\n\n constructor(\n _elementRef: ElementRef<HTMLElement | HTMLAnchorElement | HTMLButtonElement>,\n _focusMonitor: FocusMonitor,\n _renderer: Renderer2\n ) { super(_elementRef, _focusMonitor, _renderer) }\n\n ngOnInit() {\n if (this._isAnchor()) {\n this._clickUnListen = this._renderer.listen(this._getHostElement(), 'click', this._haltDisabledEvents)\n }\n }\n\n ngOnDestroy() {\n super.ngOnDestroy()\n if (this._clickUnListen) {\n this._clickUnListen()\n }\n }\n\n /** Determines if the component host is a button. */\n private _isButton(): boolean {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'button'\n }\n\n /** Determines if the component host is an anchor. */\n private _isAnchor(): boolean {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'a'\n }\n\n _haltDisabledEvents = (event: Event) => {\n // A disabled button shouldn't apply any actions\n if (this.disabled) {\n event.preventDefault()\n event.stopImmediatePropagation()\n }\n }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { TheSeamIconModule } from '@theseam/ui-common/icon'\n\nimport { WidgetTileFooterItemComponent } from './widget-tile-footer-item/widget-tile-footer-item.component'\nimport { WidgetTileFooterComponent } from './widget-tile-footer/widget-tile-footer.component'\nimport { WidgetTileGroupComponent } from './widget-tile-group/widget-tile-group.component'\nimport { WidgetTileSecondaryIconDirective } from './widget-tile-secondary-icon.directive'\nimport { WidgetTileComponent } from './widget-tile.component'\n\n@NgModule({\n declarations: [\n WidgetTileComponent,\n WidgetTileSecondaryIconDirective,\n WidgetTileFooterComponent,\n WidgetTileGroupComponent,\n WidgetTileFooterItemComponent\n ],\n imports: [\n CommonModule,\n TheSeamIconModule\n ],\n exports: [\n WidgetTileComponent,\n WidgetTileSecondaryIconDirective,\n WidgetTileFooterComponent,\n WidgetTileGroupComponent,\n WidgetTileFooterItemComponent\n ]\n})\nexport class TheSeamWidgetTileModule { }\n","import { Component, OnInit } from '@angular/core'\n\n@Component({\n selector: 'seam-widget-tile-list',\n templateUrl: './widget-tile-list.component.html',\n styleUrls: ['./widget-tile-list.component.scss']\n})\nexport class WidgetTileListComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { TheSeamWidgetTileModule } from '../widget-tile/widget-tile.module'\n\nimport { WidgetTileListComponent } from './widget-tile-list.component'\n\n@NgModule({\n declarations: [\n WidgetTileListComponent\n ],\n imports: [\n CommonModule\n ],\n exports: [\n WidgetTileListComponent,\n TheSeamWidgetTileModule\n ]\n})\nexport class TheSeamWidgetTileListModule { }\n","import { animate, style, transition, trigger } from '@angular/animations'\nimport { BooleanInput } from '@angular/cdk/coercion'\nimport { Component, ContentChild, Input, OnInit, ViewEncapsulation } from '@angular/core'\n\nimport { IconProp } from '@fortawesome/fontawesome-svg-core'\nimport { faAngleDown, faCog } from '@fortawesome/free-solid-svg-icons'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\nimport { SeamIcon } from '@theseam/ui-common/icon'\n\nimport { WidgetIconTplDirective } from '../directives/widget-icon-tpl.directive'\nimport { WidgetTitleTplDirective } from '../directives/widget-title-tpl.directive'\n\n/**\n * Widget\n *\n * Widgets are designed with the intention of being on a dashboard. Other uses\n * may be supported as the need arises.\n *\n * The only HTML/CSS use should be a widget content component, unless there is a\n * case requiring more advanced design. This is so that we can manage a common\n * style for our widgets. If a case requiring non widget content components is\n * used then the situation should be considered for becoming a widget component.\n */\n@Component({\n selector: 'seam-widget',\n templateUrl: './widget.component.html',\n styleUrls: ['./widget.component.scss'],\n encapsulation: ViewEncapsulation.None,\n animations: [\n trigger('loadingAnim', [\n transition(':enter', [\n style({ opacity: 0 }),\n animate('250ms ease-in-out', style({ opacity: 1 }))\n ]),\n transition(':leave', [\n style({ opacity: 1 }),\n animate('250ms ease-in-out', style({ opacity: 0 }))\n ])\n ])\n ]\n})\nexport class WidgetComponent implements OnInit {\n static ngAcceptInputType_hasHeader: BooleanInput\n static ngAcceptInputType_loading: BooleanInput\n static ngAcceptInputType_hasConfig: BooleanInput\n static ngAcceptInputType_canCollapse: BooleanInput\n\n /** @ignore */\n configIcon = faCog\n /** @ignore */\n collapseIcon = faAngleDown\n\n @Input() @InputBoolean() collapsed: boolean = false\n\n /**\n * Toggles the top header bar of a widget. This should be true for most\n * widgets.\n */\n @Input() @InputBoolean() hasHeader: boolean = true\n\n /**\n * Title displayed in the top header.\n *\n * If a more advanced title is needed you can use `seamWidgetTitleTpl`\n * template directive, but text is recommended, because allowing custom styles\n * can lead to inconsitency quickly as different developers keep making\n * tweaks.\n */\n @Input() titleText: string | undefined | null\n\n /**\n * Icon displayed in the top header.\n *\n * If a more advanced icon is needed you can use `seamWidgetIconTpl` template\n * directive, but a `SeamIcon` input is recommended, because allowing custom\n * icons that do not follow the tested types can lead to inconsitency quickly\n * as different developers keep making tweaks.\n */\n @Input()\n get icon(): SeamIcon | undefined { return this._iconUrl || this._iconObj }\n set icon(value: SeamIcon | undefined) {\n if (typeof value === 'string') {\n this._iconUrl = value\n this._iconObj = undefined\n } else {\n this._iconUrl = undefined\n this._iconObj = value\n }\n }\n\n /** @ignore */\n public _iconUrl: string | undefined\n /** @ignore */\n public _iconObj: IconProp | undefined\n\n /** Add a css class to the header icon. */\n @Input() iconClass: string | undefined | null\n\n /** Shows widget loading instead of content. */\n @Input() @InputBoolean() loading = false\n\n /** @ignore */\n // NOTE: Config is still being worked on.\n @Input() @InputBoolean() hasConfig = false\n /** @ignore */\n // NOTE: Collapse is still being worked on.\n @Input() @InputBoolean() canCollapse = false\n\n @ContentChild(WidgetIconTplDirective, { static: true }) iconTpl?: WidgetIconTplDirective\n @ContentChild(WidgetTitleTplDirective, { static: true }) titleTpl?: WidgetTitleTplDirective\n\n /** @ignore */\n constructor() { }\n\n /** @ignore */\n ngOnInit() { }\n\n /**\n * Toggles a widget's collapsed state.\n *\n * NOTE: Collapse is still being worked on.\n * @depracated\n * @ignore\n */\n collapse() {\n this.collapsed = !this.collapsed\n }\n\n}\n","import { ChangeDetectionStrategy, Component, OnInit, ViewEncapsulation } from '@angular/core'\n\n@Component({\n selector: 'seam-widget-footer',\n templateUrl: './widget-footer.component.html',\n styleUrls: ['./widget-footer.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class WidgetFooterComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() { }\n\n}\n","import { InjectionToken } from '@angular/core'\n\nimport { IWidgetRegistryRecord } from './widget-registry.models'\n\nexport const THESEAM_WIDGETS = new InjectionToken<IWidgetRegistryRecord>('TheSeamWidgets')\n","import { ComponentPortal } from '@angular/cdk/portal'\nimport { ComponentFactoryResolver, Inject, Injectable, Injector, ViewContainerRef } from '@angular/core'\nimport { Observable, of, throwError } from 'rxjs'\nimport { map } from 'rxjs/operators'\n\nimport { TheSeamDynamicComponentLoader } from '@theseam/ui-common/dynamic-component-loader'\n\nimport { IWidgetRegistryRecord } from './widget-registry.models'\nimport { THESEAM_WIDGETS } from './widget-token'\n\n/**\n * Registry is to provide a way to manage widgets in a way that we can load them\n * the same way throughout the app, whether the component itself is registered,\n * the component is lazy-loaded, or referenced by an id stored in the database.\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class WidgetRegistryService {\n\n constructor(\n @Inject(THESEAM_WIDGETS) private _widgets: IWidgetRegistryRecord[],\n private _dynamicComponentLoader: TheSeamDynamicComponentLoader\n ) { }\n\n public createWidgetPortal<T>(\n widgetId: string,\n viewContainerRef?: ViewContainerRef | null,\n injector?: Injector | null,\n componentFactoryResolver?: ComponentFactoryResolver | null | undefined\n ): Observable<ComponentPortal<T>> {\n const widgetDef = (this._widgets || []).find(w => w.widgetId === widgetId)\n\n if (!widgetDef) {\n return throwError(`WidgetRegstry: Unknown widgetId \"${widgetId}\"`)\n }\n\n if (typeof widgetDef.componentOrComponentId === 'string') {\n return this._dynamicComponentLoader\n .getComponentFactory<T>(widgetDef.componentOrComponentId)\n .pipe(\n map(componentFactory => {\n let resolver: ComponentFactoryResolver | null | undefined = componentFactoryResolver\n if (!resolver) {\n const m = (<any /* ComponentFactoryBoundToModule */>componentFactory).ngModule\n if (m && m.componentFactoryResolver) {\n resolver = m.componentFactoryResolver\n }\n }\n\n const portal = new ComponentPortal(\n componentFactory.componentType,\n viewContainerRef,\n injector,\n resolver\n )\n\n return portal\n }\n )\n )\n } else {\n const portal = new ComponentPortal(\n widgetDef.componentOrComponentId,\n viewContainerRef,\n injector,\n componentFactoryResolver\n )\n\n return of(portal)\n }\n }\n}\n","import { DragDropModule } from '@angular/cdk/drag-drop'\nimport { CdkTableModule } from '@angular/cdk/table'\nimport { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\nimport { RouterModule } from '@angular/router'\n\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome'\n\nimport { TheSeamButtonsModule } from '@theseam/ui-common/buttons'\nimport { TheSeamIconModule } from '@theseam/ui-common/icon'\nimport { TheSeamLoadingModule } from '@theseam/ui-common/loading'\n\nimport { WidgetDragHandleDirective } from './directives/widget-drag-handle.directive'\nimport { WidgetIconTplDirective } from './directives/widget-icon-tpl.directive'\nimport { WidgetTitleTplDirective } from './directives/widget-title-tpl.directive'\nimport { WidgetFooterComponent } from './widget-footer/widget-footer.component'\nimport { WidgetComponent } from './widget/widget.component'\n\nimport { TheSeamWidgetButtonGroupModule } from './widget-content-components/widget-button-group/widget-button-group.module'\nimport { TheSeamWidgetContentHeaderModule } from './widget-content-components/widget-content-header/widget-content-header.module'\nimport { TheSeamWidgetDescriptionModule } from './widget-content-components/widget-description/widget-description.module'\nimport { TheSeamWidgetEmptyLabelModule } from './widget-content-components/widget-empty-label/widget-empty-label.module'\nimport { TheSeamWidgetFooterLinkModule } from './widget-content-components/widget-footer-link/widget-footer-link.module'\nimport { TheSeamWidgetFooterTextModule } from './widget-content-components/widget-footer-text/widget-footer-text.module'\nimport { TheSeamWidgetHeaderBadgeModule } from './widget-content-components/widget-header-badge/widget-header-badge.module'\nimport { TheSeamWidgetListGroupModule } from './widget-content-components/widget-list-group/widget-list-group.module'\nimport { TheSeamWidgetTableModule } from './widget-content-components/widget-table/widget-table.module'\nimport { TheSeamWidgetTileListModule } from './widget-content-components/widget-tile-list/widget-tile-list.module'\nimport { TheSeamWidgetTileModule } from './widget-content-components/widget-tile/widget-tile.module'\n\nconst contentModules = [\n TheSeamWidgetButtonGroupModule,\n TheSeamWidgetContentHeaderModule,\n TheSeamWidgetDescriptionModule,\n TheSeamWidgetEmptyLabelModule,\n TheSeamWidgetFooterLinkModule,\n TheSeamWidgetFooterTextModule,\n TheSeamWidgetHeaderBadgeModule,\n TheSeamWidgetListGroupModule,\n TheSeamWidgetTableModule,\n TheSeamWidgetTileListModule,\n TheSeamWidgetTileModule\n]\n\n@NgModule({\n declarations: [\n WidgetComponent,\n WidgetIconTplDirective,\n WidgetTitleTplDirective,\n WidgetDragHandleDirective,\n WidgetFooterComponent\n ],\n imports: [\n CommonModule,\n FontAwesomeModule,\n TheSeamIconModule,\n TheSeamLoadingModule,\n DragDropModule,\n TheSeamButtonsModule,\n CdkTableModule,\n\n ...contentModules\n ],\n exports: [\n RouterModule,\n\n WidgetComponent,\n WidgetIconTplDirective,\n WidgetTitleTplDirective,\n WidgetFooterComponent,\n\n ...contentModules\n ]\n})\nexport class TheSeamWidgetModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["InjectionToken","Subject","BehaviorSubject","coerceBooleanProperty","auditTime","takeUntil","take","switchMap","filter","getClosestWidgetCdkDrag","Directive","ElementRef","NgZone","Optional","Inject","CdkDrag","Input","TemplateRef","Component","ChangeDetectionStrategy","NgModule","CommonModule","TheSeamButtonsModule","ViewEncapsulation","HostBinding","mixinTheme","Renderer2","ContentChild","FocusMonitor","mixinActive","mixinDisabled","TheSeamIconModule","EventEmitter","Output","InputBoolean","TheSeamTableModule","TheSeamTableCellTypesModule","mixinTabIndex","faCog","faAngleDown","trigger","transition","style","animate","throwError","map","portal","ComponentPortal","of","Injectable","TheSeamDynamicComponentLoader","FontAwesomeModule","TheSeamLoadingModule","DragDropModule","CdkTableModule","RouterModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;gBAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;oBAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtG,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;aAEc,SAAS,CAAC,CAAC,EAAE,CAAC;QAC1B,IAAI,OAAO,CAAC,KAAK,UAAU,IAAI,CAAC,KAAK,IAAI;YACrC,MAAM,IAAI,SAAS,CAAC,sBAAsB,GAAG,MAAM,CAA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AAa,EAC9B,gBAAgB,EAChB,QAAQ,EACR,QAAQ,CACT,CAAA;oBAED,OAAOD,QAAM,CAAA;iBACd,CACF,CACF,CAAA;aACF;iBAAM;gBACL,IAAMA,QAAM,GAAG,IAAIC,sBAAe,CAChC,SAAS,CAAC,sBAAsB,EAChC,gBAAgB,EAChB,QAAQ,EACR,wBAAwB,CACzB,CAAA;gBAED,OAAOC,OAAE,CAACF,QAAM,CAAC,CAAA;aAClB;SACF;;;;;gBAxDFG,aAAU,SAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;;4CAIInC,SAAM,SAAC,eAAe;gBAhBlBoC,gCAA6B;;;ICyBtC,IAAM,cAAc,GAAG;QACrB,8BAA8B;QAC9B,gCAAgC;QAChC,8BAA8B;QAC9B,6BAA6B;QAC7B,6BAA6B;QAC7B,6BAA6B;QAC7B,8BAA8B;QAC9B,4BAA4B;QAC5B,wBAAwB;QACxB,2BAA2B;QAC3B,uBAAuB;KACxB,CAAA;;QAgCD;;;;;gBA9BC9B,WAAQ,SAAC;oBACR,YAAY,EAAE;wBACZ,eAAe;wBACf,sBAAsB;wBACtB,uBAAuB;wBACvB,yBAAyB;wBACzB,qBAAqB;qBACtB;oBACD,OAAO;wBACLC,mBAAY;wBACZ8B,oCAAiB;wBACjBpB,sBAAiB;wBACjBqB,4BAAoB;wBACpBC,uBAAc;wBACd/B,4BAAoB;wBACpBgC,sBAAc;8BAEX,cAAc,EAClB;oBACD,OAAO;wBACLC,mBAAY;wBAEZ,eAAe;wBACf,sBAAsB;wBACtB,uBAAuB;wBACvB,qBAAqB;8BAElB,cAAc,EAClB;iBACF;;;ICzED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"theseam-ui-common-widget.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../projects/ui-common/widget/directives/widget-drag-handle.directive.ts","../../../projects/ui-common/widget/directives/widget-icon-tpl.directive.ts","../../../projects/ui-common/widget/directives/widget-title-tpl.directive.ts","../../../projects/ui-common/widget/widget-content-components/widget-button-group/widget-button-group.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-button-group/widget-button-group.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-content-header/widget-content-header.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-content-header/widget-content-header.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-description/widget-description.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-description/widget-description.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-empty-label/widget-empty-label.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-empty-label/widget-empty-label.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-footer-link/widget-footer-link.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-footer-link/widget-footer-link.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-footer-text/widget-footer-text.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-footer-text/widget-footer-text.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-header-badge/widget-header-badge.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-header-badge/widget-header-badge.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item-icon-tpl.directive.ts","../../../projects/ui-common/widget/widget-content-components/widget-list-group/widget-list-group-item/widget-list-group-item.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-list-group/widget-list-group.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-list-group/widget-list-group.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-table/widget-table.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-table/widget-table.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-tile/widget-tile-footer/widget-tile-footer.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-tile/widget-tile-footer-item/widget-tile-footer-item.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-tile/widget-tile-group/widget-tile-group.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-tile/widget-tile-secondary-icon.directive.ts","../../../projects/ui-common/widget/widget-content-components/widget-tile/widget-tile.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-tile/widget-tile.module.ts","../../../projects/ui-common/widget/widget-content-components/widget-tile-list/widget-tile-list.component.ts","../../../projects/ui-common/widget/widget-content-components/widget-tile-list/widget-tile-list.module.ts","../../../projects/ui-common/widget/widget/widget.component.ts","../../../projects/ui-common/widget/widget-footer/widget-footer.component.ts","../../../projects/ui-common/widget/widget-token.ts","../../../projects/ui-common/widget/widget-registry.service.ts","../../../projects/ui-common/widget/widget.module.ts","../../../projects/ui-common/widget/theseam-ui-common-widget.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n 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;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'\nimport { CdkDrag, CdkDragHandle } from '@angular/cdk/drag-drop'\nimport {\n AfterViewInit,\n Directive,\n DoCheck,\n ElementRef,\n EventEmitter,\n Inject,\n InjectionToken,\n Input,\n NgZone,\n OnDestroy,\n OnInit,\n Optional,\n QueryList\n} from '@angular/core'\nimport { BehaviorSubject, Subject } from 'rxjs'\nimport { auditTime, filter, switchMap, take, takeUntil } from 'rxjs/operators'\n\nimport { getClosestWidgetCdkDrag } from '@theseam/ui-common/utils'\n\n//\n// NOTE: This will probably NOT be used long term, unless more of the\n// CdkDragDrop code is rewritten.\n//\n// This directive is meant to be a HACK replacement directive for CdkDragHandle.\n// The reason this was made is because CdkDragHandle doesn't work in child\n// components, since it uses ContentChildren to query for the handles.\n//\n// This could easily break, because I am forcing the handles query list to emit\n// changes manually. So, if the query list actually changes, then my changes\n// will be broken.\n//\n\n\n\n// Helper type that ignores `readonly` properties. This is used in\n// `extendStyles` to ignore the readonly properties on CSSStyleDeclaration\n// since we won't be touching those anyway.\ntype Writeable<T> = { -readonly [P in keyof T]-?: T[P] }\n\n/**\n * Extended CSSStyleDeclaration that includes a couple of drag-related\n * properties that aren't in the built-in TS typings.\n */\ninterface DragCSSStyleDeclaration extends CSSStyleDeclaration {\n webkitUserDrag: string\n MozUserSelect: string // For some reason the Firefox property is in PascalCase.\n msScrollSnapType: string\n scrollSnapType: string\n msUserSelect: string\n}\n\nexport function extendStyles(\n dest: Writeable<CSSStyleDeclaration>,\n source: Partial<DragCSSStyleDeclaration>\n) {\n for (const key in source) {\n if (source.hasOwnProperty(key)) {\n // tslint:disable-next-line: no-non-null-assertion\n dest[key] = source[key]!\n }\n }\n\n return dest\n}\n\nexport function toggleNativeDragInteractions(element: HTMLElement, enable: boolean) {\n const userSelect = enable ? '' : 'none'\n\n extendStyles(element.style, {\n touchAction: enable ? '' : 'none',\n webkitUserDrag: enable ? '' : 'none',\n webkitTapHighlightColor: enable ? '' : 'transparent',\n userSelect: userSelect,\n msUserSelect: userSelect,\n webkitUserSelect: userSelect,\n MozUserSelect: userSelect\n })\n}\n\nexport interface TheSeamWidgetAccessor<TItem> {\n widgetsChange: EventEmitter<TItem[]>\n cdkDragDirectives: QueryList<CdkDrag>\n}\n\nexport const THESEAM_WIDGET_ACCESSOR = new InjectionToken<TheSeamWidgetAccessor<any>>(\n 'TheSeamWidgetAccessor'\n)\n\n@Directive({\n selector: '[seamWidgetDragHandle]',\n host: {\n 'class': 'cdk-drag-handle'\n }\n})\nexport class WidgetDragHandleDirective implements OnInit, OnDestroy, AfterViewInit, DoCheck {\n static ngAcceptInputType_disabled: BooleanInput\n\n private readonly _ngUnsubscribe = new Subject()\n\n private _attachedToDom = new BehaviorSubject<boolean>(false)\n private _doneCheckingAttached = false\n private _knownParentDrag: any /* CdkDrag | undefined */\n\n /** Needed because CdkDrag reads this variable */\n get _parentDrag() { return this.getParentCdkDrag() }\n\n /** Emits when the state of the handle has changed. */\n _stateChanges = new Subject<CdkDragHandle>()\n\n /** Whether starting to drag through this handle is disabled. */\n @Input('cdkDragHandleDisabled')\n get disabled(): boolean { return this._disabled }\n set disabled(value: boolean) {\n this._disabled = coerceBooleanProperty(value)\n this._stateChanges.next(<any>this)\n }\n private _disabled = false\n\n constructor(\n public element: ElementRef<HTMLElement>,\n private _ngZone: NgZone,\n @Optional() @Inject(THESEAM_WIDGET_ACCESSOR) private _dashboardWidgets?: TheSeamWidgetAccessor<any>,\n @Optional() private __parentDrag?: CdkDrag\n ) {\n toggleNativeDragInteractions(element.nativeElement, false)\n }\n\n ngOnInit() {\n if (this._dashboardWidgets) {\n this._dashboardWidgets.widgetsChange.pipe(\n auditTime(0),\n takeUntil(this._ngUnsubscribe)\n ).subscribe(() => {\n if (this._knownParentDrag) {\n const isAttached = this.isAttachedToDom()\n if (isAttached) {\n const parent = <any>this.getParentCdkDrag()\n if (this._knownParentDrag !== parent) {\n this._attachedToDom.next(isAttached)\n }\n }\n\n }\n })\n }\n }\n\n ngAfterViewInit() {\n if (this.__parentDrag || this._dashboardWidgets) {\n // FIXME: This only works until the widget is moved to another template\n // outlet. Now that the component isn't reinitialized when moving between\n // lists the handle needs to now reflex that change to its new CdkDrag\n // parent and possibly tell its previous parent to forget it.\n\n // HACK: This is a hack to allow the `CdkDrag` directive to manage a\n // handle that is not visible to `ContentChildren` query.\n this._ngZone.onStable.asObservable()\n // .pipe(take(1), untilDestroyed(this))\n .pipe(\n take(1),\n // With the weird trick being done to keep widgets initialized when switching columns\n switchMap(() => this._attachedToDom.pipe(filter(v => v === true))),\n // take(1)\n takeUntil(this._ngUnsubscribe)\n )\n .subscribe(() => {\n const parent = <any>this.getParentCdkDrag()\n\n if (this._knownParentDrag && this._knownParentDrag !== parent) {\n this._knownParentDrag._dragRef.disableHandle(this.element.nativeElement)\n this._knownParentDrag = undefined\n }\n\n if (parent) {\n this._knownParentDrag = parent\n parent._handles.reset([ ...parent._handles._results, this ])\n parent._handles.notifyOnChanges()\n parent._dragRef.enableHandle(this.element.nativeElement)\n }\n })\n }\n }\n\n ngOnDestroy() {\n this._stateChanges.complete()\n this._attachedToDom.complete()\n\n this._ngUnsubscribe.next()\n this._ngUnsubscribe.complete()\n }\n\n ngDoCheck() {\n // The attached observable only emits once, so we can stop checking if\n // attached.\n if (this._doneCheckingAttached) { return }\n\n const isAttached = this.isAttachedToDom()\n if (isAttached !== this._attachedToDom.value) {\n this._attachedToDom.next(isAttached)\n this._doneCheckingAttached = true\n }\n }\n\n public isAttachedToDom(): boolean {\n return document.body.contains(this.element.nativeElement)\n }\n\n /** Closest parent draggable instance. */\n public getParentCdkDrag(): CdkDrag | undefined {\n if (this.__parentDrag) {\n return this.__parentDrag\n } else if (this._dashboardWidgets && this._dashboardWidgets.cdkDragDirectives) {\n const dragsArr = this._dashboardWidgets.cdkDragDirectives.toArray()\n const closest = getClosestWidgetCdkDrag(this.element, dragsArr)\n return (closest !== undefined && closest !== null) ? closest : undefined\n }\n }\n\n}\n","import { Directive, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamWidgetIconTpl]'\n})\nexport class WidgetIconTplDirective {\n\n constructor(public template: TemplateRef<any>) { }\n\n}\n","import { Directive, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamWidgetTitleTpl]'\n})\nexport class WidgetTitleTplDirective {\n\n constructor(public template: TemplateRef<any>) { }\n\n}\n","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'\n\n@Component({\n selector: 'seam-widget-button-group',\n templateUrl: './widget-button-group.component.html',\n styleUrls: ['./widget-button-group.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetButtonGroupComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { TheSeamButtonsModule } from '@theseam/ui-common/buttons'\n\nimport { WidgetButtonGroupComponent } from './widget-button-group.component'\n\n@NgModule({\n declarations: [\n WidgetButtonGroupComponent\n ],\n imports: [\n CommonModule,\n TheSeamButtonsModule\n ],\n exports: [\n WidgetButtonGroupComponent,\n\n TheSeamButtonsModule\n ]\n})\nexport class TheSeamWidgetButtonGroupModule { }\n","import { Component, OnInit, ViewEncapsulation } from '@angular/core'\n\n@Component({\n selector: 'seam-widget-content-header',\n templateUrl: './widget-content-header.component.html',\n styleUrls: ['./widget-content-header.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class WidgetContentHeaderComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { WidgetContentHeaderComponent } from './widget-content-header.component'\n\n@NgModule({\n declarations: [\n WidgetContentHeaderComponent\n ],\n imports: [\n CommonModule\n ],\n exports: [\n WidgetContentHeaderComponent\n ]\n})\nexport class TheSeamWidgetContentHeaderModule { }\n","import { ChangeDetectionStrategy, Component } from '@angular/core'\n\n@Component({\n selector: 'seam-widget-description',\n templateUrl: './widget-description.component.html',\n styleUrls: ['./widget-description.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetDescriptionComponent { }\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { WidgetDescriptionComponent } from './widget-description.component'\n\n@NgModule({\n declarations: [\n WidgetDescriptionComponent\n ],\n imports: [\n CommonModule\n ],\n exports: [\n WidgetDescriptionComponent\n ]\n})\nexport class TheSeamWidgetDescriptionModule { }\n","import { Component, ElementRef, HostBinding, Input, OnInit, ViewEncapsulation } from '@angular/core'\n\n@Component({\n selector: 'seam-widget-empty-label,a[seam-widget-empty-label],button[seam-widget-empty-label]',\n templateUrl: './widget-empty-label.component.html',\n styleUrls: ['./widget-empty-label.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class WidgetEmptyLabelComponent implements OnInit {\n\n private _type: string | undefined | null\n\n @HostBinding('class.btn')\n get _btnCss() { return this._isButton() ? true : false }\n\n @HostBinding('class.btn-link')\n get _btnLinkCss() { return this._isButton() ? true : false }\n\n @HostBinding('attr.type')\n get _attrType() {\n return this._type || this._isButton() ? 'button' : undefined\n }\n\n @Input()\n get type(): string | undefined | null { return this._type }\n\n constructor(\n public _elementRef: ElementRef<HTMLElement | HTMLAnchorElement | HTMLButtonElement>\n ) { }\n\n ngOnInit() { }\n\n /** Determines if the component host is a button. */\n private _isButton(): boolean {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'button'\n }\n\n /** Determines if the component host is an anchor. */\n private _isAnchor(): boolean {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'a'\n }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { WidgetEmptyLabelComponent } from './widget-empty-label.component'\n\n@NgModule({\n declarations: [\n WidgetEmptyLabelComponent\n ],\n imports: [\n CommonModule\n ],\n exports: [\n WidgetEmptyLabelComponent\n ]\n})\nexport class TheSeamWidgetEmptyLabelModule { }\n","import { Component, OnInit, ViewEncapsulation } from '@angular/core'\n\n@Component({\n // tslint:disable-next-line:component-selector\n selector: 'a[seam-widget-footer-link]',\n templateUrl: './widget-footer-link.component.html',\n styleUrls: ['./widget-footer-link.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class WidgetFooterLinkComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() { }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { WidgetFooterLinkComponent } from './widget-footer-link.component'\n\n@NgModule({\n declarations: [\n WidgetFooterLinkComponent\n ],\n imports: [\n CommonModule\n ],\n exports: [\n WidgetFooterLinkComponent\n ]\n})\nexport class TheSeamWidgetFooterLinkModule { }\n","import { Component, OnInit, ViewEncapsulation } from '@angular/core'\n\n@Component({\n selector: 'seam-widget-footer-text',\n templateUrl: './widget-footer-text.component.html',\n styleUrls: ['./widget-footer-text.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class WidgetFooterTextComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { WidgetFooterTextComponent } from './widget-footer-text.component'\n\n@NgModule({\n declarations: [\n WidgetFooterTextComponent\n ],\n imports: [\n CommonModule\n ],\n exports: [\n WidgetFooterTextComponent\n ]\n})\nexport class TheSeamWidgetFooterTextModule { }\n","import { ChangeDetectionStrategy, Component, ElementRef, HostBinding, Input, OnInit, Renderer2, ViewEncapsulation } from '@angular/core'\n\nimport {\n CanThemeCtor,\n mixinTheme\n} from '@theseam/ui-common/core'\n\nclass WidgetHeaderBadgeBase {\n\n constructor(\n public _elementRef: ElementRef\n ) { }\n\n}\n\nconst _WidgetHeaderBadgeMixinBase: CanThemeCtor &\n typeof WidgetHeaderBadgeBase = mixinTheme(WidgetHeaderBadgeBase, 'badge')\n\n@Component({\n selector: 'seam-widget-header-badge',\n templateUrl: './widget-header-badge.component.html',\n styleUrls: ['./widget-header-badge.component.scss'],\n // tslint:disable-next-line:use-input-property-decorator\n inputs: [ 'theme' ],\n // tslint:disable-next-line:use-host-property-decorator\n host: {\n 'class': 'badge float-right'\n },\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetHeaderBadgeComponent extends _WidgetHeaderBadgeMixinBase implements OnInit {\n\n constructor(\n _elementRef: ElementRef\n ) { super(_elementRef) }\n\n ngOnInit() { }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { WidgetHeaderBadgeComponent } from './widget-header-badge.component'\n\n@NgModule({\n declarations: [\n WidgetHeaderBadgeComponent\n ],\n imports: [\n CommonModule\n ],\n exports: [\n WidgetHeaderBadgeComponent\n ]\n})\nexport class TheSeamWidgetHeaderBadgeModule { }\n","import { Directive, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamWidgetListGroupItemIconTpl]',\n exportAs: 'seamWidgetListGroupItemIconTpl'\n})\nexport class WidgetListGroupItemIconTplDirective {\n\n constructor(public template: TemplateRef<any>) { }\n\n}\n","import { FocusMonitor } from '@angular/cdk/a11y'\nimport { ChangeDetectionStrategy, Component, ContentChild, Directive, ElementRef, Input, OnDestroy, OnInit, Renderer2 } from '@angular/core'\n\nimport {\n CanBeActive,\n CanBeActiveCtor,\n CanDisable,\n CanDisableCtor,\n CanTheme,\n CanThemeCtor,\n HasElementRef,\n mixinActive,\n mixinDisabled,\n mixinTheme\n} from '@theseam/ui-common/core'\nimport { SeamIcon } from '@theseam/ui-common/icon'\n\nimport { WidgetListGroupItemIconTplDirective } from './widget-list-group-item-icon-tpl.directive'\n\n// tslint:disable-next-line: max-line-length\nconst WIDGET_LIST_GROUP_ITEM_INPUTS = [ 'disabled', 'theme', 'active', 'icon', 'iconClass', 'label', 'secondaryIcon', 'secondaryIconClass', 'secondaryIconTitle' ]\n\n@Directive()\n// tslint:disable-next-line: directive-class-suffix\nclass WidgetListGroupItemBase {\n\n @ContentChild(WidgetListGroupItemIconTplDirective, { static: true }) iconTpl?: WidgetListGroupItemIconTplDirective\n\n icon?: SeamIcon\n iconClass?: string\n secondaryIcon?: SeamIcon\n secondaryIconClass?: string\n secondaryIconTitle?: string\n\n label?: string\n\n constructor(\n public _elementRef: ElementRef,\n public _renderer: Renderer2\n ) { }\n\n /** Focuses the element. */\n focus(): void {\n this._getHostElement().focus()\n }\n\n _getHostElement() {\n return this._elementRef.nativeElement\n }\n}\n\n@Directive()\n// tslint:disable-next-line: directive-class-suffix\nclass WidgetListGroupItemActionableBase extends WidgetListGroupItemBase implements OnDestroy {\n constructor(\n public _elementRef: ElementRef,\n public _focusMonitor: FocusMonitor,\n public _renderer: Renderer2\n ) {\n super(_elementRef, _renderer)\n this._focusMonitor.monitor(this._elementRef, true)\n }\n\n ngOnDestroy() {\n this._focusMonitor.stopMonitoring(this._elementRef)\n }\n}\n\n\nconst _WidgetListGroupItemBase: CanDisableCtor & CanThemeCtor & CanBeActiveCtor &\n typeof WidgetListGroupItemBase = mixinActive(mixinTheme(mixinDisabled(WidgetListGroupItemBase), 'list-group-item'))\n\nconst _WidgetListGroupItemActionableBase: CanDisableCtor & CanThemeCtor & CanBeActiveCtor &\n typeof WidgetListGroupItemActionableBase = mixinActive(mixinTheme(mixinDisabled(WidgetListGroupItemActionableBase), 'list-group-item'))\n\n@Component({\n selector: 'seam-widget-list-group-item',\n templateUrl: './widget-list-group-item.component.html',\n styleUrls: ['./widget-list-group-item.component.scss'],\n exportAs: 'seamWidgetListGroupItem',\n inputs: WIDGET_LIST_GROUP_ITEM_INPUTS,\n host: {\n 'class': 'list-group-item',\n '[class.active]': 'active',\n '[attr.aria-disabled]': 'disabled.toString()',\n '[attr.disabled]': 'disabled || null',\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetListGroupItemComponent extends _WidgetListGroupItemBase\n implements OnInit, HasElementRef, CanTheme, CanDisable, CanBeActive {\n\n constructor(\n public _elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>,\n public _renderer: Renderer2\n ) {\n super(_elementRef, _renderer)\n }\n\n ngOnInit() { }\n\n}\n\n@Component({\n // tslint:disable-next-line:component-selector\n selector: 'button[seam-widget-list-group-item],button[seamWidgetListGroupItem]',\n templateUrl: './widget-list-group-item.component.html',\n styleUrls: ['./widget-list-group-item.component.scss'],\n exportAs: 'seamWidgetListGroupItem',\n inputs: WIDGET_LIST_GROUP_ITEM_INPUTS,\n host: {\n '[attr.type]': 'type',\n 'class': 'list-group-item list-group-item-action',\n '[class.active]': 'active',\n '[attr.aria-disabled]': 'disabled.toString()',\n '[attr.disabled]': 'disabled || null',\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetListGroupItemButtonComponent extends _WidgetListGroupItemActionableBase\n implements OnInit, HasElementRef, CanTheme, CanDisable, CanBeActive, OnDestroy {\n\n /** ARIA type for the button. */\n @Input() type: 'button' | 'submit' | 'reset' | undefined | null = 'button'\n\n constructor(\n public _elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>,\n public _focusMonitor: FocusMonitor,\n public _renderer: Renderer2\n ) {\n super(_elementRef, _focusMonitor, _renderer)\n }\n\n ngOnInit() { }\n\n ngOnDestroy() { super.ngOnDestroy() }\n\n}\n\n@Component({\n // tslint:disable-next-line:component-selector\n selector: 'a[seam-widget-list-group-item],a[seamWidgetListGroupItem]',\n templateUrl: './widget-list-group-item.component.html',\n styleUrls: ['./widget-list-group-item.component.scss'],\n exportAs: 'seamWidgetListGroupItem',\n inputs: WIDGET_LIST_GROUP_ITEM_INPUTS,\n host: {\n 'class': 'list-group-item list-group-item-action',\n '[class.active]': 'active',\n '[attr.tabindex]': 'disabled ? -1 : (tabIndex || 0)',\n '[attr.aria-disabled]': 'disabled.toString()',\n '[attr.disabled]': 'disabled || null',\n '(click)': '_haltDisabledEvents($event)',\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetListGroupItemAnchorComponent extends _WidgetListGroupItemActionableBase\n implements OnInit, HasElementRef, CanTheme, CanDisable, CanBeActive, OnDestroy {\n\n /** Tabindex of the button. */\n @Input() tabIndex: number | undefined | null\n\n constructor(\n public _elementRef: ElementRef<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>,\n public _focusMonitor: FocusMonitor,\n public _renderer: Renderer2\n ) {\n super(_elementRef, _focusMonitor, _renderer)\n }\n\n ngOnInit() { }\n\n ngOnDestroy() { super.ngOnDestroy() }\n\n _haltDisabledEvents(event: Event) {\n // A disabled button shouldn't apply any actions\n if (this.disabled) {\n event.preventDefault()\n event.stopImmediatePropagation()\n }\n }\n\n}\n","import { ChangeDetectionStrategy, Component, ContentChild, HostBinding, Input, OnInit } from '@angular/core'\n\n// TODO: Make `ListGroup` a root component and wrap it with `WidgetListGroup`.\n\n@Component({\n selector: 'seam-widget-list-group',\n templateUrl: './widget-list-group.component.html',\n styleUrls: ['./widget-list-group.component.scss'],\n host: {\n 'class': 'list-group'\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetListGroupComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() { }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { TheSeamIconModule } from '@theseam/ui-common/icon'\n\nimport { WidgetListGroupItemIconTplDirective } from './widget-list-group-item/widget-list-group-item-icon-tpl.directive'\nimport {\n WidgetListGroupItemAnchorComponent,\n WidgetListGroupItemButtonComponent,\n WidgetListGroupItemComponent\n} from './widget-list-group-item/widget-list-group-item.component'\nimport { WidgetListGroupComponent } from './widget-list-group.component'\n\n@NgModule({\n declarations: [\n WidgetListGroupComponent,\n WidgetListGroupItemAnchorComponent,\n WidgetListGroupItemButtonComponent,\n WidgetListGroupItemComponent,\n WidgetListGroupItemIconTplDirective\n ],\n imports: [\n CommonModule,\n TheSeamIconModule\n ],\n exports: [\n WidgetListGroupComponent,\n WidgetListGroupItemAnchorComponent,\n WidgetListGroupItemButtonComponent,\n WidgetListGroupItemComponent,\n WidgetListGroupItemIconTplDirective\n ]\n})\nexport class TheSeamWidgetListGroupModule { }\n","import { BooleanInput } from '@angular/cdk/coercion'\nimport { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\nimport type { ITableColumn, TrackByFunction } from '@theseam/ui-common/table'\n\n@Component({\n selector: 'seam-widget-table',\n templateUrl: './widget-table.component.html',\n styleUrls: ['./widget-table.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetTableComponent<T> {\n static ngAcceptInputType_hasHeader: BooleanInput\n\n @Input() columns: (string | ITableColumn)[] | undefined | null\n @Input() rows: T[] | undefined | null = []\n @Input() trackBy: TrackByFunction<T> | undefined | null\n @Input() size: 'sm' | 'md' | undefined | null = 'sm'\n @Input() @InputBoolean() hasHeader: boolean = true\n\n @Output() readonly actionRefreshRequest = new EventEmitter<any>()\n\n constructor() { }\n\n _actionRefreshRequest() {\n this.actionRefreshRequest.emit()\n }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { TheSeamTableModule } from '@theseam/ui-common/table'\nimport { TheSeamTableCellTypesModule } from '@theseam/ui-common/table-cell-types'\n\nimport { WidgetTableComponent } from './widget-table.component'\n\n@NgModule({\n declarations: [\n WidgetTableComponent\n ],\n imports: [\n CommonModule,\n TheSeamTableModule,\n TheSeamTableCellTypesModule\n ],\n exports: [\n WidgetTableComponent\n ]\n})\nexport class TheSeamWidgetTableModule { }\n","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'\n\n@Component({\n selector: 'seam-widget-tile-footer,[seam-widget-tile-footer]',\n templateUrl: './widget-tile-footer.component.html',\n styleUrls: ['./widget-tile-footer.component.scss'],\n host: {\n class: 'd-flex flex-row justify-content-end'\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetTileFooterComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { BooleanInput } from '@angular/cdk/coercion'\nimport { ChangeDetectionStrategy, Component, ElementRef, HostBinding, Input, OnInit } from '@angular/core'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\n\n@Component({\n selector: 'seam-widget-tile-footer-item,a[seam-widget-tile-footer-item],button[seam-widget-tile-footer-item]',\n templateUrl: './widget-tile-footer-item.component.html',\n styleUrls: ['./widget-tile-footer-item.component.scss'],\n host: {\n class: 'btn btn-link py-0 px-1'\n },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetTileFooterItemComponent implements OnInit {\n static ngAcceptInputType_disabled: BooleanInput\n\n private _type: string | undefined | null\n\n @HostBinding('attr.type')\n get _attrType() {\n return this._type || this._isButton() ? 'button' : undefined\n }\n\n @HostBinding('class.disabled')\n get _DisabledCss() { return this.disabled }\n\n @Input()\n get type(): string | undefined | null { return this._type }\n\n @Input() @InputBoolean() disabled = false\n\n constructor(\n public _elementRef: ElementRef<HTMLElement | HTMLAnchorElement | HTMLButtonElement>\n ) { }\n\n ngOnInit() { }\n\n /** Determines if the component host is a button. */\n private _isButton(): boolean {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'button'\n }\n}\n","import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'\n\n@Component({\n selector: 'seam-widget-tile-group',\n templateUrl: './widget-tile-group.component.html',\n styleUrls: ['./widget-tile-group.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class WidgetTileGroupComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { Directive, TemplateRef } from '@angular/core'\n\n@Directive({\n selector: '[seamWidgetTileSecondaryIcon]',\n exportAs: 'seamWidgetTileSecondaryIcon'\n})\nexport class WidgetTileSecondaryIconDirective {\n\n constructor(public template: TemplateRef<any>) { }\n\n}\n","import { FocusMonitor } from '@angular/cdk/a11y'\nimport { BooleanInput } from '@angular/cdk/coercion'\nimport { Component, ContentChild, ElementRef, HostBinding, Input, OnDestroy, OnInit, Renderer2, ViewEncapsulation } from '@angular/core'\n\nimport { IconProp } from '@fortawesome/fontawesome-svg-core'\n\nimport {\n CanDisableCtor,\n HasElementRef,\n HasRenderer2,\n HasTabIndexCtor,\n InputBoolean,\n mixinDisabled,\n mixinTabIndex,\n} from '@theseam/ui-common/core'\nimport { TheSeamIconType } from '@theseam/ui-common/icon'\n\nimport { WidgetTileSecondaryIconDirective } from './widget-tile-secondary-icon.directive'\n\n@Component({ template: '' })\n// tslint:disable-next-line: component-class-suffix\nclass TheSeamWidgetTileBase implements OnDestroy, HasRenderer2, HasElementRef {\n constructor(\n public _elementRef: ElementRef,\n public _focusMonitor: FocusMonitor,\n public _renderer: Renderer2\n ) {\n this._focusMonitor.monitor(this._elementRef, true)\n }\n\n ngOnDestroy() {\n this._focusMonitor.stopMonitoring(this._elementRef)\n }\n\n /** Focuses the button. */\n focus(): void {\n this._getHostElement().focus()\n }\n\n _getHostElement() {\n return this._elementRef.nativeElement\n }\n}\n\nconst _TheSeamWidgetTileMixinBase: CanDisableCtor & HasTabIndexCtor &\n typeof TheSeamWidgetTileBase = mixinTabIndex(mixinDisabled(TheSeamWidgetTileBase))\n\n// TODO: Should this component be split into separate components for button and anchor.\n@Component({\n selector: 'seam-widget-tile, a[seam-widget-tile], button[seam-widget-tile]',\n templateUrl: './widget-tile.component.html',\n styleUrls: ['./widget-tile.component.scss'],\n inputs: [ 'disabled' ],\n exportAs: 'seamWidgetTile',\n encapsulation: ViewEncapsulation.None\n})\nexport class WidgetTileComponent extends _TheSeamWidgetTileMixinBase implements OnInit, OnDestroy {\n static ngAcceptInputType_grayscaleOnDisable: BooleanInput\n\n private _clickUnListen: (() => void | undefined | null) | undefined | null\n\n private _type: string | undefined | null\n\n @HostBinding('attr.type')\n get _attrType() {\n return this._type || this._isButton() ? 'button' : undefined\n }\n\n @HostBinding('class.btn')\n get _btnCss() { return this._isButton() ? true : false }\n\n @HostBinding('class.disabled')\n get _disabledCss() { return this.disabled }\n\n @HostBinding('attr.aria-disabled')\n get _ariaDisabled() { return this.disabled.toString() }\n\n @HostBinding('attr.disabled')\n get _attrDisabled() { return this.disabled || null }\n\n @HostBinding('attr.tabindex')\n get _attrTabIndex() { return this.disabled ? -1 : (this.tabIndex || 0) }\n\n @Input()\n get type(): string | undefined | null { return this._type }\n\n @Input() icon: string | IconProp | undefined | null\n\n @Input() @InputBoolean() grayscaleOnDisable: boolean = true\n\n @Input() iconClass: string | undefined | null\n\n @Input() iconType: TheSeamIconType | undefined | null = 'styled-square'\n\n @Input() notificationIcon: string | IconProp | undefined | null\n @Input() notificationIconClass: string | undefined | null\n\n @ContentChild(WidgetTileSecondaryIconDirective, { static: true }) secondaryIcon?: WidgetTileSecondaryIconDirective\n\n constructor(\n _elementRef: ElementRef<HTMLElement | HTMLAnchorElement | HTMLButtonElement>,\n _focusMonitor: FocusMonitor,\n _renderer: Renderer2\n ) { super(_elementRef, _focusMonitor, _renderer) }\n\n ngOnInit() {\n if (this._isAnchor()) {\n this._clickUnListen = this._renderer.listen(this._getHostElement(), 'click', this._haltDisabledEvents)\n }\n }\n\n ngOnDestroy() {\n super.ngOnDestroy()\n if (this._clickUnListen) {\n this._clickUnListen()\n }\n }\n\n /** Determines if the component host is a button. */\n private _isButton(): boolean {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'button'\n }\n\n /** Determines if the component host is an anchor. */\n private _isAnchor(): boolean {\n return this._elementRef.nativeElement.nodeName.toLowerCase() === 'a'\n }\n\n _haltDisabledEvents = (event: Event) => {\n // A disabled button shouldn't apply any actions\n if (this.disabled) {\n event.preventDefault()\n event.stopImmediatePropagation()\n }\n }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { TheSeamIconModule } from '@theseam/ui-common/icon'\n\nimport { WidgetTileFooterItemComponent } from './widget-tile-footer-item/widget-tile-footer-item.component'\nimport { WidgetTileFooterComponent } from './widget-tile-footer/widget-tile-footer.component'\nimport { WidgetTileGroupComponent } from './widget-tile-group/widget-tile-group.component'\nimport { WidgetTileSecondaryIconDirective } from './widget-tile-secondary-icon.directive'\nimport { WidgetTileComponent } from './widget-tile.component'\n\n@NgModule({\n declarations: [\n WidgetTileComponent,\n WidgetTileSecondaryIconDirective,\n WidgetTileFooterComponent,\n WidgetTileGroupComponent,\n WidgetTileFooterItemComponent\n ],\n imports: [\n CommonModule,\n TheSeamIconModule\n ],\n exports: [\n WidgetTileComponent,\n WidgetTileSecondaryIconDirective,\n WidgetTileFooterComponent,\n WidgetTileGroupComponent,\n WidgetTileFooterItemComponent\n ]\n})\nexport class TheSeamWidgetTileModule { }\n","import { Component, OnInit } from '@angular/core'\n\n@Component({\n selector: 'seam-widget-tile-list',\n templateUrl: './widget-tile-list.component.html',\n styleUrls: ['./widget-tile-list.component.scss']\n})\nexport class WidgetTileListComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() {\n }\n\n}\n","import { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\n\nimport { TheSeamWidgetTileModule } from '../widget-tile/widget-tile.module'\n\nimport { WidgetTileListComponent } from './widget-tile-list.component'\n\n@NgModule({\n declarations: [\n WidgetTileListComponent\n ],\n imports: [\n CommonModule\n ],\n exports: [\n WidgetTileListComponent,\n TheSeamWidgetTileModule\n ]\n})\nexport class TheSeamWidgetTileListModule { }\n","import { animate, style, transition, trigger } from '@angular/animations'\nimport { BooleanInput } from '@angular/cdk/coercion'\nimport { Component, ContentChild, Input, OnInit, ViewEncapsulation } from '@angular/core'\n\nimport { IconProp } from '@fortawesome/fontawesome-svg-core'\nimport { faAngleDown, faCog } from '@fortawesome/free-solid-svg-icons'\n\nimport { InputBoolean } from '@theseam/ui-common/core'\nimport { SeamIcon } from '@theseam/ui-common/icon'\n\nimport { WidgetIconTplDirective } from '../directives/widget-icon-tpl.directive'\nimport { WidgetTitleTplDirective } from '../directives/widget-title-tpl.directive'\n\n/**\n * Widget\n *\n * Widgets are designed with the intention of being on a dashboard. Other uses\n * may be supported as the need arises.\n *\n * The only HTML/CSS use should be a widget content component, unless there is a\n * case requiring more advanced design. This is so that we can manage a common\n * style for our widgets. If a case requiring non widget content components is\n * used then the situation should be considered for becoming a widget component.\n */\n@Component({\n selector: 'seam-widget',\n templateUrl: './widget.component.html',\n styleUrls: ['./widget.component.scss'],\n encapsulation: ViewEncapsulation.None,\n animations: [\n trigger('loadingAnim', [\n transition(':enter', [\n style({ opacity: 0 }),\n animate('250ms ease-in-out', style({ opacity: 1 }))\n ]),\n transition(':leave', [\n style({ opacity: 1 }),\n animate('250ms ease-in-out', style({ opacity: 0 }))\n ])\n ])\n ]\n})\nexport class WidgetComponent implements OnInit {\n static ngAcceptInputType_hasHeader: BooleanInput\n static ngAcceptInputType_loading: BooleanInput\n static ngAcceptInputType_hasConfig: BooleanInput\n static ngAcceptInputType_canCollapse: BooleanInput\n\n /** @ignore */\n configIcon = faCog\n /** @ignore */\n collapseIcon = faAngleDown\n\n @Input() @InputBoolean() collapsed: boolean = false\n\n /**\n * Toggles the top header bar of a widget. This should be true for most\n * widgets.\n */\n @Input() @InputBoolean() hasHeader: boolean = true\n\n /**\n * Title displayed in the top header.\n *\n * If a more advanced title is needed you can use `seamWidgetTitleTpl`\n * template directive, but text is recommended, because allowing custom styles\n * can lead to inconsitency quickly as different developers keep making\n * tweaks.\n */\n @Input() titleText: string | undefined | null\n\n /**\n * Icon displayed in the top header.\n *\n * If a more advanced icon is needed you can use `seamWidgetIconTpl` template\n * directive, but a `SeamIcon` input is recommended, because allowing custom\n * icons that do not follow the tested types can lead to inconsitency quickly\n * as different developers keep making tweaks.\n */\n @Input()\n get icon(): SeamIcon | undefined { return this._iconUrl || this._iconObj }\n set icon(value: SeamIcon | undefined) {\n if (typeof value === 'string') {\n this._iconUrl = value\n this._iconObj = undefined\n } else {\n this._iconUrl = undefined\n this._iconObj = value\n }\n }\n\n /** @ignore */\n public _iconUrl: string | undefined\n /** @ignore */\n public _iconObj: IconProp | undefined\n\n /** Add a css class to the header icon. */\n @Input() iconClass: string | undefined | null\n\n /** Shows widget loading instead of content. */\n @Input() @InputBoolean() loading = false\n\n /** @ignore */\n // NOTE: Config is still being worked on.\n @Input() @InputBoolean() hasConfig = false\n /** @ignore */\n // NOTE: Collapse is still being worked on.\n @Input() @InputBoolean() canCollapse = false\n\n @ContentChild(WidgetIconTplDirective, { static: true }) iconTpl?: WidgetIconTplDirective\n @ContentChild(WidgetTitleTplDirective, { static: true }) titleTpl?: WidgetTitleTplDirective\n\n /** @ignore */\n constructor() { }\n\n /** @ignore */\n ngOnInit() { }\n\n /**\n * Toggles a widget's collapsed state.\n *\n * NOTE: Collapse is still being worked on.\n * @depracated\n * @ignore\n */\n collapse() {\n this.collapsed = !this.collapsed\n }\n\n}\n","import { ChangeDetectionStrategy, Component, OnInit, ViewEncapsulation } from '@angular/core'\n\n@Component({\n selector: 'seam-widget-footer',\n templateUrl: './widget-footer.component.html',\n styleUrls: ['./widget-footer.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class WidgetFooterComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit() { }\n\n}\n","import { InjectionToken } from '@angular/core'\n\nimport { IWidgetRegistryRecord } from './widget-registry.models'\n\nexport const THESEAM_WIDGETS = new InjectionToken<IWidgetRegistryRecord>('TheSeamWidgets')\n","import { ComponentPortal } from '@angular/cdk/portal'\nimport { ComponentFactoryResolver, Inject, Injectable, Injector, ViewContainerRef } from '@angular/core'\nimport { Observable, of, throwError } from 'rxjs'\nimport { map } from 'rxjs/operators'\n\nimport { TheSeamDynamicComponentLoader } from '@theseam/ui-common/dynamic-component-loader'\n\nimport { IWidgetRegistryRecord } from './widget-registry.models'\nimport { THESEAM_WIDGETS } from './widget-token'\n\n/**\n * Registry is to provide a way to manage widgets in a way that we can load them\n * the same way throughout the app, whether the component itself is registered,\n * the component is lazy-loaded, or referenced by an id stored in the database.\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class WidgetRegistryService {\n\n constructor(\n @Inject(THESEAM_WIDGETS) private _widgets: IWidgetRegistryRecord[],\n private _dynamicComponentLoader: TheSeamDynamicComponentLoader\n ) { }\n\n public createWidgetPortal<T>(\n widgetId: string,\n viewContainerRef?: ViewContainerRef | null,\n injector?: Injector | null,\n componentFactoryResolver?: ComponentFactoryResolver | null | undefined\n ): Observable<ComponentPortal<T>> {\n const widgetDef = (this._widgets || []).find(w => w.widgetId === widgetId)\n\n if (!widgetDef) {\n return throwError(`WidgetRegstry: Unknown widgetId \"${widgetId}\"`)\n }\n\n if (typeof widgetDef.componentOrComponentId === 'string') {\n return this._dynamicComponentLoader\n .getComponentFactory<T>(widgetDef.componentOrComponentId)\n .pipe(\n map(componentFactory => {\n let resolver: ComponentFactoryResolver | null | undefined = componentFactoryResolver\n if (!resolver) {\n const m = (<any /* ComponentFactoryBoundToModule */>componentFactory).ngModule\n if (m && m.componentFactoryResolver) {\n resolver = m.componentFactoryResolver\n }\n }\n\n const portal = new ComponentPortal(\n componentFactory.componentType,\n viewContainerRef,\n injector,\n resolver\n )\n\n return portal\n }\n )\n )\n } else {\n const portal = new ComponentPortal(\n widgetDef.componentOrComponentId,\n viewContainerRef,\n injector,\n componentFactoryResolver\n )\n\n return of(portal)\n }\n }\n}\n","import { DragDropModule } from '@angular/cdk/drag-drop'\nimport { CdkTableModule } from '@angular/cdk/table'\nimport { CommonModule } from '@angular/common'\nimport { NgModule } from '@angular/core'\nimport { RouterModule } from '@angular/router'\n\nimport { FontAwesomeModule } from '@fortawesome/angular-fontawesome'\n\nimport { TheSeamButtonsModule } from '@theseam/ui-common/buttons'\nimport { TheSeamIconModule } from '@theseam/ui-common/icon'\nimport { TheSeamLoadingModule } from '@theseam/ui-common/loading'\n\nimport { WidgetDragHandleDirective } from './directives/widget-drag-handle.directive'\nimport { WidgetIconTplDirective } from './directives/widget-icon-tpl.directive'\nimport { WidgetTitleTplDirective } from './directives/widget-title-tpl.directive'\nimport { WidgetFooterComponent } from './widget-footer/widget-footer.component'\nimport { WidgetComponent } from './widget/widget.component'\n\nimport { TheSeamWidgetButtonGroupModule } from './widget-content-components/widget-button-group/widget-button-group.module'\nimport { TheSeamWidgetContentHeaderModule } from './widget-content-components/widget-content-header/widget-content-header.module'\nimport { TheSeamWidgetDescriptionModule } from './widget-content-components/widget-description/widget-description.module'\nimport { TheSeamWidgetEmptyLabelModule } from './widget-content-components/widget-empty-label/widget-empty-label.module'\nimport { TheSeamWidgetFooterLinkModule } from './widget-content-components/widget-footer-link/widget-footer-link.module'\nimport { TheSeamWidgetFooterTextModule } from './widget-content-components/widget-footer-text/widget-footer-text.module'\nimport { TheSeamWidgetHeaderBadgeModule } from './widget-content-components/widget-header-badge/widget-header-badge.module'\nimport { TheSeamWidgetListGroupModule } from './widget-content-components/widget-list-group/widget-list-group.module'\nimport { TheSeamWidgetTableModule } from './widget-content-components/widget-table/widget-table.module'\nimport { TheSeamWidgetTileListModule } from './widget-content-components/widget-tile-list/widget-tile-list.module'\nimport { TheSeamWidgetTileModule } from './widget-content-components/widget-tile/widget-tile.module'\n\nconst contentModules = [\n TheSeamWidgetButtonGroupModule,\n TheSeamWidgetContentHeaderModule,\n TheSeamWidgetDescriptionModule,\n TheSeamWidgetEmptyLabelModule,\n TheSeamWidgetFooterLinkModule,\n TheSeamWidgetFooterTextModule,\n TheSeamWidgetHeaderBadgeModule,\n TheSeamWidgetListGroupModule,\n TheSeamWidgetTableModule,\n TheSeamWidgetTileListModule,\n TheSeamWidgetTileModule\n]\n\n@NgModule({\n declarations: [\n WidgetComponent,\n WidgetIconTplDirective,\n WidgetTitleTplDirective,\n WidgetDragHandleDirective,\n WidgetFooterComponent\n ],\n imports: [\n CommonModule,\n FontAwesomeModule,\n TheSeamIconModule,\n TheSeamLoadingModule,\n DragDropModule,\n TheSeamButtonsModule,\n CdkTableModule,\n\n ...contentModules\n ],\n exports: [\n RouterModule,\n\n WidgetComponent,\n WidgetIconTplDirective,\n WidgetTitleTplDirective,\n WidgetFooterComponent,\n\n ...contentModules\n ]\n})\nexport class TheSeamWidgetModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["InjectionToken","Subject","BehaviorSubject","coerceBooleanProperty","auditTime","takeUntil","take","switchMap","filter","getClosestWidgetCdkDrag","Directive","ElementRef","NgZone","Optional","Inject","CdkDrag","Input","TemplateRef","Component","ChangeDetectionStrategy","NgModule","CommonModule","TheSeamButtonsModule","ViewEncapsulation","HostBinding","mixinTheme","Renderer2","ContentChild","FocusMonitor","mixinActive","mixinDisabled","TheSeamIconModule","EventEmitter","Output","InputBoolean","TheSeamTableModule","TheSeamTableCellTypesModule","mixinTabIndex","faCog","faAngleDown","trigger","transition","style","animate","throwError","map","portal","ComponentPortal","of","Injectable","TheSeamDynamicComponentLoader","FontAwesomeModule","TheSeamLoadingModule","DragDropModule","CdkTableModule","RouterModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;gBAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;oBAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACtG,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;aAEc,SAAS,CAAC,CAAC,EAAE,CAAC;QAC1B,IAAI,OAAO,CAAC,KAAK,UAAU,IAAI,CAAC,KAAK,IAAI;YACrC,MAAM,IAAI,SAAS,CAAC,sBAAsB,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,+BAA+B,CAAC,CA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gB,CAAC,aAAa,EAC9B,gBAAgB,EAChB,QAAQ,EACR,QAAQ,CACT,CAAA;oBAED,OAAOD,QAAM,CAAA;iBACd,CACF,CACF,CAAA;aACF;iBAAM;gBACL,IAAMA,QAAM,GAAG,IAAIC,sBAAe,CAChC,SAAS,CAAC,sBAAsB,EAChC,gBAAgB,EAChB,QAAQ,EACR,wBAAwB,CACzB,CAAA;gBAED,OAAOC,OAAE,CAACF,QAAM,CAAC,CAAA;aAClB;SACF;;;;;gBAxDFG,aAAU,SAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;;4CAIInC,SAAM,SAAC,eAAe;gBAhBlBoC,gCAA6B;;;ICyBtC,IAAM,cAAc,GAAG;QACrB,8BAA8B;QAC9B,gCAAgC;QAChC,8BAA8B;QAC9B,6BAA6B;QAC7B,6BAA6B;QAC7B,6BAA6B;QAC7B,8BAA8B;QAC9B,4BAA4B;QAC5B,wBAAwB;QACxB,2BAA2B;QAC3B,uBAAuB;KACxB,CAAA;;QAgCD;;;;;gBA9BC9B,WAAQ,SAAC;oBACR,YAAY,EAAE;wBACZ,eAAe;wBACf,sBAAsB;wBACtB,uBAAuB;wBACvB,yBAAyB;wBACzB,qBAAqB;qBACtB;oBACD,OAAO;wBACLC,mBAAY;wBACZ8B,oCAAiB;wBACjBpB,sBAAiB;wBACjBqB,4BAAoB;wBACpBC,uBAAc;wBACd/B,4BAAoB;wBACpBgC,sBAAc;8BAEX,cAAc,EAClB;oBACD,OAAO;wBACLC,mBAAY;wBAEZ,eAAe;wBACf,sBAAsB;wBACtB,uBAAuB;wBACvB,qBAAqB;8BAElB,cAAc,EAClB;iBACF;;;ICzED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -14,6 +14,7 @@ export class JexlEvaluator {
|
|
|
14
14
|
this.type = 'jexl';
|
|
15
15
|
this._jexl = new jexl.Jexl();
|
|
16
16
|
this._jexl.addTransform('date', (val, row) => new DatePipe('en-US').transform(val, 'yyyy-MM-dd h:mm aaa'));
|
|
17
|
+
this._jexl.addTransform('length', (val) => val.length);
|
|
17
18
|
}
|
|
18
19
|
eval(value, context) {
|
|
19
20
|
return this._jexl.eval(value.expr, context);
|
|
@@ -26,4 +27,4 @@ JexlEvaluator.decorators = [
|
|
|
26
27
|
{ type: Injectable }
|
|
27
28
|
];
|
|
28
29
|
JexlEvaluator.ctorParameters = () => [];
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiamV4bC1ldmFsdWF0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy91aS1jb21tb24vZHluYW1pYy9ldmFsdWF0b3JzL2pleGwtZXZhbHVhdG9yL2pleGwtZXZhbHVhdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDZFQUE2RTtBQUM3RSwrRUFBK0U7QUFDL0UsOEVBQThFO0FBQzlFLFNBQVM7QUFDVCx5Q0FBeUM7QUFDekMsdUNBQXVDO0FBQ3ZDLHVFQUF1RTtBQUV2RSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0saUJBQWlCLENBQUE7QUFDMUMsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQTtBQUUxQyw0QkFBNEI7QUFDNUIsT0FBTyxJQUFJLE1BQU0sTUFBTSxDQUFBO0FBT3ZCLE1BQU0sT0FBTyxhQUFhO0lBTXhCO1FBSmdCLFNBQUksR0FBRyxNQUFNLENBQUE7UUFFWixVQUFLLEdBQUcsSUFBSSxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUE7UUFHdEMsSUFBSSxDQUFDLEtBQUssQ0FBQyxZQUFZLENBQUMsTUFBTSxFQUFFLENBQUMsR0FBUSxFQUFFLEdBQVEsRUFBRSxFQUFFLEN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